From 474a07528de90056abf08517e3812a2595bcac58 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:23:42 +0300 Subject: [PATCH 001/121] Implement HUC - Conform to moving the HUC out of Beta - Refactor the iOS bridge - Refactor the RN bridge - Rename interfaces - Move files --- ios/DataModels/ImplementedRNCallbacks.swift | 62 -- ios/DataModels/PrimerErrorRN.swift | 35 - ios/DataModels/PrimerSettingsRN.swift | 84 -- .../RNTPrimerHeadlessUniversalCheckout.m | 62 -- .../RNTPrimerHeadlessUniversalCheckout.swift | 501 ------------ ios/Podfile.lock | 2 +- ios/RNTPrimer.m | 59 -- ios/ReactNative.xcodeproj/project.pbxproj | 40 +- .../DataModels/ImplementedRNCallbacks.swift | 75 ++ .../PrimerCardData+Extension.swift} | 0 ...dlessUniversalCheckout_PaymentMethod.swift | 20 + .../PrimerPhoneNumberData+Extension.swift} | 0 .../PrimerSettings+Extensions.swift | 88 +++ .../DataModels/PrimerThemeRN.swift | 0 ios/Sources/DataModels/RNTNativeError.swift | 22 + .../RNTPrimerCardRedirectData.swift | 0 .../RNTPrimerPaymentMethodAsset.swift | 65 ++ .../DataModels/RNTPrimerRetailerData.swift | 0 .../RNTNativeUIManager.m | 19 + .../RNTNativeUIManager.swift | 63 ++ .../RNTPrimerCardNumberInputElementManager.m | 0 ...adlessUniversalCheckoutCardFormUIManager.m | 0 ...ssUniversalCheckoutCardFormUIManager.swift | 40 +- .../RNTRawDataManager.m} | 3 +- .../RNTRawDataManager.swift} | 22 +- .../Managers/RNTAssetsManager.m | 20 + .../Managers/RNTAssetsManager.swift | 72 ++ .../RNTPrimerHeadlessUniversalCheckout.m | 41 + .../RNTPrimerHeadlessUniversalCheckout.swift | 737 ++++++++++++++++++ ios/Sources/Helpers/Encodable+Extension.swift | 17 + ios/Sources/Helpers/Error+Extensions.swift | 23 + ios/Sources/Helpers/UIColor+Extensions.swift | 32 + ios/Sources/Helpers/UIImage+Extensions.swift | 26 + ios/Sources/RNTPrimer.m | 80 ++ ios/{ => Sources}/RNTPrimer.swift | 35 +- .../Managers/AssetsManager.ts | 44 ++ .../PaymentMethodManagers/NativeUIManager.ts | 31 + .../PaymentMethodManagers/RawDataManager.ts | 153 ++++ .../PrimerHeadlessUniversalCheckout.ts | 332 ++++++++ .../RNPrimerHeadlessUniversalCheckout.ts | 161 +--- src/HeadlessUniversalCheckout/types.ts | 32 + src/Primer.ts | 104 ++- src/RNPrimer.ts | 15 - .../PrimerHeadlessUniversalCheckout.ts | 358 --------- ...HeadlessUniversalCheckoutRawDataManager.ts | 109 --- ...HeadlessUniversalCheckoutRawDataManager.ts | 104 --- src/headless_checkout/types.ts | 32 - src/index.tsx | 29 +- src/models/PrimerAsset.ts | 13 + src/models/PrimerHandlers.ts | 25 + ...rHeadlessUniversalCheckoutPaymentMethod.ts | 5 + src/models/PrimerImplementedRNCallbacks.ts | 20 + src/models/PrimerInputElementType.ts | 10 + src/models/PrimerInterfaces.ts | 27 - src/models/PrimerSettings.ts | 66 +- 55 files changed, 2272 insertions(+), 1743 deletions(-) delete mode 100644 ios/DataModels/ImplementedRNCallbacks.swift delete mode 100644 ios/DataModels/PrimerErrorRN.swift delete mode 100644 ios/DataModels/PrimerSettingsRN.swift delete mode 100644 ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m delete mode 100644 ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift delete mode 100644 ios/RNTPrimer.m create mode 100644 ios/Sources/DataModels/ImplementedRNCallbacks.swift rename ios/{DataModels/RNTPrimerCardData.swift => Sources/DataModels/PrimerCardData+Extension.swift} (100%) create mode 100644 ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift rename ios/{DataModels/RNTPrimerPhoneNumberData.swift => Sources/DataModels/PrimerPhoneNumberData+Extension.swift} (100%) create mode 100644 ios/Sources/DataModels/PrimerSettings+Extensions.swift rename ios/{ => Sources}/DataModels/PrimerThemeRN.swift (100%) create mode 100644 ios/Sources/DataModels/RNTNativeError.swift rename ios/{ => Sources}/DataModels/RNTPrimerCardRedirectData.swift (100%) create mode 100644 ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift rename ios/{ => Sources}/DataModels/RNTPrimerRetailerData.swift (100%) create mode 100644 ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m create mode 100644 ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift rename ios/{Headless Universal Checkout => Sources/Headless Universal Checkout/Managers/Payment Method Managers}/RNTPrimerCardNumberInputElementManager.m (100%) rename ios/{Headless Universal Checkout => Sources/Headless Universal Checkout/Managers/Payment Method Managers}/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m (100%) rename ios/{Headless Universal Checkout => Sources/Headless Universal Checkout/Managers/Payment Method Managers}/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift (73%) rename ios/{Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.m => Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m} (81%) rename ios/{Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.swift => Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift} (91%) create mode 100644 ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m create mode 100644 ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift create mode 100644 ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m create mode 100644 ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift create mode 100644 ios/Sources/Helpers/Encodable+Extension.swift create mode 100644 ios/Sources/Helpers/Error+Extensions.swift create mode 100644 ios/Sources/Helpers/UIColor+Extensions.swift create mode 100644 ios/Sources/Helpers/UIImage+Extensions.swift create mode 100644 ios/Sources/RNTPrimer.m rename ios/{ => Sources}/RNTPrimer.swift (92%) create mode 100644 src/HeadlessUniversalCheckout/Managers/AssetsManager.ts create mode 100644 src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts create mode 100644 src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts create mode 100644 src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts rename src/{headless_checkout => HeadlessUniversalCheckout}/RNPrimerHeadlessUniversalCheckout.ts (52%) create mode 100644 src/HeadlessUniversalCheckout/types.ts delete mode 100644 src/headless_checkout/PrimerHeadlessUniversalCheckout.ts delete mode 100644 src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager.ts delete mode 100644 src/headless_checkout/RNPrimerHeadlessUniversalCheckoutRawDataManager.ts delete mode 100644 src/headless_checkout/types.ts create mode 100644 src/models/PrimerAsset.ts create mode 100644 src/models/PrimerHandlers.ts create mode 100644 src/models/PrimerHeadlessUniversalCheckoutPaymentMethod.ts create mode 100644 src/models/PrimerImplementedRNCallbacks.ts create mode 100644 src/models/PrimerInputElementType.ts diff --git a/ios/DataModels/ImplementedRNCallbacks.swift b/ios/DataModels/ImplementedRNCallbacks.swift deleted file mode 100644 index 542c92756..000000000 --- a/ios/DataModels/ImplementedRNCallbacks.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// ImplementedRNCallbacks.swift -// primer-io-react-native -// -// Created by Evangelos on 20/5/22. -// - -import Foundation - -internal struct ImplementedRNCallbacks: Decodable { - - internal var isOnCheckoutCompleteImplemented: Bool = false - internal var isOnBeforeClientSessionUpdateImplemented: Bool = false - internal var isOnClientSessionUpdateImplemented: Bool = false - internal var isOnBeforePaymentCreateImplemented: Bool = false - internal var isOnErrorImplemented: Bool = false - internal var isOnDismissImplemented: Bool = false - internal var isOnTokenizeSuccessImplemented: Bool = false - internal var isOnResumeSuccessImplemented: Bool = false - internal var isOnResumePendingImplemented: Bool = false - internal var isOnCheckoutReceivedAdditionalInfoImplemented: Bool = false - internal var isOnHUCTokenizeStartImplemented: Bool = false - internal var isOnHUCPrepareStartImplemented: Bool = false - internal var isOnHUCAvailablePaymentMethodsLoadedImplemented: Bool = false - internal var isOnHUCPaymentMethodShowImplemented: Bool = false - - enum CodingKeys: String, CodingKey { - case isOnCheckoutCompleteImplemented = "onCheckoutComplete" - case isOnBeforeClientSessionUpdateImplemented = "onBeforeClientSessionUpdate" - case isOnClientSessionUpdateImplemented = "onClientSessionUpdate" - case isOnBeforePaymentCreateImplemented = "onBeforePaymentCreate" - case isOnErrorImplemented = "onError" - case isOnDismissImplemented = "onDismiss" - case isOnTokenizeSuccessImplemented = "onTokenizeSuccess" - case isOnResumeSuccessImplemented = "onResumeSuccess" - case isOnResumePendingImplemented = "onResumePending" - case isOnCheckoutReceivedAdditionalInfoImplemented = "onCheckoutReceivedAdditionalInfo" - case isOnHUCTokenizeStartImplemented = "onHUCTokenizeStart" - case isOnHUCPrepareStartImplemented = "onHUCPrepareStart" - case isOnHUCAvailablePaymentMethodsLoadedImplemented = "onHUCAvailablePaymentMethodsLoaded" - case isOnHUCPaymentMethodShowImplemented = "onHUCPaymentMethodShow" - } - - init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - self.isOnCheckoutCompleteImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutCompleteImplemented)) ?? false - self.isOnBeforeClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforeClientSessionUpdateImplemented)) ?? false - self.isOnClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnClientSessionUpdateImplemented)) ?? false - self.isOnBeforePaymentCreateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforePaymentCreateImplemented)) ?? false - self.isOnErrorImplemented = (try? container.decode(Bool?.self, forKey: .isOnErrorImplemented)) ?? false - self.isOnDismissImplemented = (try? container.decode(Bool?.self, forKey: .isOnDismissImplemented)) ?? false - self.isOnTokenizeSuccessImplemented = (try? container.decode(Bool?.self, forKey: .isOnTokenizeSuccessImplemented)) ?? false - self.isOnResumeSuccessImplemented = (try? container.decode(Bool?.self, forKey: .isOnResumeSuccessImplemented)) ?? false - self.isOnResumePendingImplemented = (try? container.decode(Bool?.self, forKey: .isOnResumePendingImplemented)) ?? false - self.isOnCheckoutReceivedAdditionalInfoImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutReceivedAdditionalInfoImplemented)) ?? false - self.isOnHUCTokenizeStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnHUCTokenizeStartImplemented)) ?? false - self.isOnHUCPrepareStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnHUCPrepareStartImplemented)) ?? false - self.isOnHUCAvailablePaymentMethodsLoadedImplemented = (try? container.decode(Bool?.self, forKey: .isOnHUCAvailablePaymentMethodsLoadedImplemented)) ?? false - self.isOnHUCPaymentMethodShowImplemented = (try? container.decode(Bool?.self, forKey: .isOnHUCPaymentMethodShowImplemented)) ?? false - } -} diff --git a/ios/DataModels/PrimerErrorRN.swift b/ios/DataModels/PrimerErrorRN.swift deleted file mode 100644 index b3f68ba32..000000000 --- a/ios/DataModels/PrimerErrorRN.swift +++ /dev/null @@ -1,35 +0,0 @@ - -struct NativeError: CustomNSError, LocalizedError, Codable { - - let errorId: String - let errorDescription: String? - let recoverySuggestion: String? - - var rnError: [String: String] { - var json: [String: String] = [ - "errorId": errorId, - "description": errorDescription ?? "Something went wrong" - ] - - if let recoverySuggestion = recoverySuggestion { - json["recoverySuggestion"] = recoverySuggestion - } - - return json - } -} - -internal extension Error { - var rnError: [String: String] { - var json: [String: String] = [ - "errorId": (self as NSError).domain, - "description": localizedDescription - ] - - if let recoverySuggestion = (self as NSError).localizedRecoverySuggestion { - json["recoverySuggestion"] = recoverySuggestion - } - - return json - } -} diff --git a/ios/DataModels/PrimerSettingsRN.swift b/ios/DataModels/PrimerSettingsRN.swift deleted file mode 100644 index 2695d1637..000000000 --- a/ios/DataModels/PrimerSettingsRN.swift +++ /dev/null @@ -1,84 +0,0 @@ -import PrimerSDK - -extension PrimerSettings { - - static func initialize(with settingsStr: String?) throws -> PrimerSettings { - guard let settingsStr = settingsStr, - let settingsData = settingsStr.data(using: .utf8) - else { - return PrimerSettings() - } - - guard let settingsJson = (try JSONSerialization.jsonObject(with: settingsData)) as? [String: Any] - else { - return PrimerSettings() - } - - var paymentHandling: PrimerPaymentHandling = .auto - if let rnPaymentHandling = settingsJson["paymentHandling"] as? String, - rnPaymentHandling == "MANUAL" { - paymentHandling = .manual - } - - let rnLocaleDataLanguageCode = (settingsJson["localeData"] as? [String: Any])?["languageCode"] as? String - let rnLocaleDataLocaleCode = (settingsJson["localeData"] as? [String: Any])?["localeCode"] as? String - let localeData = PrimerLocaleData( - languageCode: rnLocaleDataLanguageCode, - regionCode: rnLocaleDataLocaleCode) - - let rnUrlScheme = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["iOS"] as? [String: Any])?["urlScheme"] as? String - - var applePayOptions: PrimerApplePayOptions? - if let rnApplePayOptions = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["applePayOptions"] as? [String: Any]), - let rnApplePayMerchantIdentifier = rnApplePayOptions["merchantIdentifier"] as? String, - let rnApplePayMerchantName = rnApplePayOptions["merchantName"] as? String { - if let rnApplePayIsCaptureBillingAddressEnabled = rnApplePayOptions["isCaptureBillingAddressEnabled"] as? Bool { - applePayOptions = PrimerApplePayOptions(merchantIdentifier: rnApplePayMerchantIdentifier, merchantName: rnApplePayMerchantName, isCaptureBillingAddressEnabled: rnApplePayIsCaptureBillingAddressEnabled) - } else { - applePayOptions = PrimerApplePayOptions(merchantIdentifier: rnApplePayMerchantIdentifier, merchantName: rnApplePayMerchantName) - } - } - - var klarnaOptions: PrimerKlarnaOptions? - if let rnKlarnaRecurringPaymentDescription = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["klarnaOptions"] as? [String: Any])?["recurringPaymentDescription"] as? String { - klarnaOptions = PrimerKlarnaOptions(recurringPaymentDescription: rnKlarnaRecurringPaymentDescription) - } - - var uiOptions: PrimerUIOptions? - if let rnUIOptions = settingsJson["uiOptions"] as? [String: Any] { - - var theme: PrimerTheme? - if let rnTheme = rnUIOptions["theme"] as? [String: Any] { - let rnThemeData = (try JSONSerialization.data(withJSONObject: rnTheme)) - let rnTheme = try JSONDecoder().decode(PrimerThemeRN.self, from: rnThemeData) - theme = rnTheme.asPrimerTheme() - } - - uiOptions = PrimerUIOptions( - isInitScreenEnabled: rnUIOptions["isInitScreenEnabled"] as? Bool, - isSuccessScreenEnabled: rnUIOptions["isSuccessScreenEnabled"] as? Bool, - isErrorScreenEnabled: rnUIOptions["isErrorScreenEnabled"] as? Bool, - theme: theme) - } - - var debugOptions: PrimerDebugOptions? - if let rnIs3DSSanityCheckEnabled = (settingsJson["debugOptions"] as? [String: Any])?["is3DSSanityCheckEnabled"] as? Bool { - debugOptions = PrimerDebugOptions(is3DSSanityCheckEnabled: rnIs3DSSanityCheckEnabled) - } - - let paymentMethodOptions = PrimerPaymentMethodOptions( - urlScheme: rnUrlScheme, - applePayOptions: applePayOptions, - klarnaOptions: klarnaOptions) - - let settings = PrimerSettings( - paymentHandling: paymentHandling, - localeData: localeData, - paymentMethodOptions: paymentMethodOptions, - uiOptions: uiOptions, - debugOptions: debugOptions) - - - return settings - } -} diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m b/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m deleted file mode 100644 index 9547acdff..000000000 --- a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// RNTPrimerHeadlessUniversalCheckout.m -// primer-io-react-native -// -// Created by Evangelos on 8/3/22. -// - -#import -#import - -@interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckout, RCTEventEmitter) - -RCT_EXTERN_METHOD(startWithClientToken:(NSString *)clientToken settingsStr:(NSString *)settingsStr errorCallback:(RCTResponseSenderBlock)errorCallback successCallback: (RCTResponseSenderBlock)successCallback) - -RCT_EXTERN_METHOD(resumeWithClientToken:(NSString *)resumeToken) - -RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)paymentMethodTypeStr - resolver:(RCTPromiseResolveBlock)resolver - rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(getAssetForPaymentMethodType:(NSString *)paymentMethodTypeStr - assetType:(NSString *)assetTypeStr - errorCallback:(RCTResponseSenderBlock)errorCallback - successCallback: (RCTResponseSenderBlock)successCallback) - -RCT_EXTERN_METHOD(getAssetForCardNetwork:(NSString *)cardNetworkStr - assetType:(NSString *)assetTypeStr - errorCallback:(RCTResponseSenderBlock)errorCallback - successCallback: (RCTResponseSenderBlock)successCallback) - -RCT_EXTERN_METHOD(disposePrimerHeadlessUniversalCheckout) - -// MARK: - HELPERS - -RCT_EXTERN_METHOD(setImplementedRNCallbacks:(NSString *)implementedRNCallbacksStr resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: - DECISION HANDLERS - -// MARK: Tokenization Handlers - -RCT_EXTERN_METHOD(handleTokenizationNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleTokenizationSuccess:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleTokenizationFailure:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: Resume Handlers - -RCT_EXTERN_METHOD(handleResumeWithNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleResumeSuccess:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleResumeFailure:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: Payment Creation Handlers - -RCT_EXTERN_METHOD(handlePaymentCreationAbort:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handlePaymentCreationContinue:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - - -@end diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift deleted file mode 100644 index aee96e920..000000000 --- a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift +++ /dev/null @@ -1,501 +0,0 @@ -// -// RNTPrimerHeadlessUniversalCheckout.swift -// primer-io-react-native -// -// Created by Evangelos on 8/3/22. -// - -import Foundation -import PrimerSDK - -@objc -enum PrimerHeadlessUniversalCheckoutEvents: Int, CaseIterable { - - case onHUCTokenizeStart = 0 - case onHUCPrepareStart - case onHUCAvailablePaymentMethodsLoaded - case onHUCPaymentMethodShow - case onTokenizeSuccess - case onResumeSuccess - case onResumePending - case onCheckoutReceivedAdditionalInfo - case onBeforePaymentCreate - case onBeforeClientSessionUpdate - case onClientSessionUpdate - case onCheckoutComplete - case onError - - var stringValue: String { - switch self { - case .onHUCPrepareStart: - return "onHUCPrepareStart" - case .onHUCTokenizeStart: - return "onHUCTokenizeStart" - case .onHUCPaymentMethodShow: - return "onHUCPaymentMethodShow" - case .onTokenizeSuccess: - return "onTokenizeSuccess" - case .onResumeSuccess: - return "onResumeSuccess" - case .onResumePending: - return "onResumePending" - case .onCheckoutReceivedAdditionalInfo: - return "onCheckoutReceivedAdditionalInfo" - case .onBeforePaymentCreate: - return "onBeforePaymentCreate" - case .onBeforeClientSessionUpdate: - return "onBeforeClientSessionUpdate" - case .onClientSessionUpdate: - return "onClientSessionUpdate" - case .onCheckoutComplete: - return "onCheckoutComplete" - case .onHUCAvailablePaymentMethodsLoaded: - return "onHUCAvailablePaymentMethodsLoaded" - case .onError: - return "onError" - } - } -} - -@objc(PrimerHeadlessUniversalCheckout) -class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { - - private var primerWillCreatePaymentWithDataDecisionHandler: ((_ errorMessage: String?) -> Void)? - private var primerDidTokenizePaymentMethodDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? - private var primerDidResumeWithDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? - private var primerDidFailWithErrorDecisionHandler: ((_ errorMessage: String) -> Void)? - private var implementedRNCallbacks: ImplementedRNCallbacks? - - override class func requiresMainQueueSetup() -> Bool { - return true - } - - override init() { - super.init() - PrimerHeadlessUniversalCheckout.current.delegate = self - PrimerSDK.Primer.shared.integrationOptions = PrimerIntegrationOptions(reactNativeVersion: "2.15.1") - } - - override func supportedEvents() -> [String]! { - return PrimerHeadlessUniversalCheckoutEvents.allCases.compactMap({ $0.stringValue }) - } - - // MARK: - API - - @objc - public func startWithClientToken(_ clientToken: String, - settingsStr: String?, - errorCallback: @escaping RCTResponseSenderBlock, - successCallback: @escaping RCTResponseSenderBlock) - { - var settings: PrimerSettings? - if let settingsStr = settingsStr { - do { - settings = try PrimerSettings.initialize(with: settingsStr) - } catch { - errorCallback([error.rnError]) - return - } - } - - PrimerHeadlessUniversalCheckout.current.start(withClientToken: clientToken, settings: settings, delegate: self) { paymentMethodTypes, err in - if let err = err { - errorCallback([err.rnError]) - } else if let paymentMethodTypes = paymentMethodTypes { - successCallback([paymentMethodTypes]) - } - } - } - - @objc - public func getAssetForPaymentMethodType(_ paymentMethodTypeStr: String, - assetType assetTypeStr: String, - errorCallback: @escaping RCTResponseSenderBlock, - successCallback: @escaping RCTResponseSenderBlock) - { - guard let unwrappedAssetType = PrimerAsset.ImageType(rawValue: assetTypeStr), let image = PrimerHeadlessUniversalCheckout.getAsset(for: paymentMethodTypeStr, assetType: unwrappedAssetType) else { - let err = NativeError(errorId: "missing-asset", errorDescription: "Failed to find \(assetTypeStr) for \(paymentMethodTypeStr)", recoverySuggestion: nil) - errorCallback([err.rnError]) - return - } - - do { - let imageURL = try self.tempStoreImage(image: image, name: paymentMethodTypeStr) - successCallback([imageURL.absoluteString]) - } catch { - errorCallback([error.rnError]) - } - } - - @objc - public func getAssetForCardNetwork(_ cardNetworkStr: String, - assetType assetTypeStr: String, - errorCallback: @escaping RCTResponseSenderBlock, - successCallback: @escaping RCTResponseSenderBlock) - { - guard let cardNetwork = CardNetwork(rawValue: cardNetworkStr) else { - let err = NativeError(errorId: "invalid-card-network", errorDescription: "Card network for \(cardNetworkStr) does not exist, make sure you don't have any typos.", recoverySuggestion: nil) - errorCallback([err.rnError]) - return - } - - guard let unwrappedAssetType = PrimerAsset.ImageType(rawValue: assetTypeStr), let image = PrimerHeadlessUniversalCheckout.getAsset(for: cardNetwork, assetType: unwrappedAssetType) else { - let err = NativeError(errorId: "missing-asset", errorDescription: "Failed to find \(assetTypeStr) for \(cardNetworkStr)", recoverySuggestion: nil) - errorCallback([err.rnError]) - return - } - - do { - let imageURL = try self.tempStoreImage(image: image, name: cardNetworkStr) - successCallback([imageURL.absoluteString]) - } catch { - errorCallback([error.rnError]) - } - } - - @objc - public func showPaymentMethod(_ paymentMethodTypeStr: String, - resolver: RCTPromiseResolveBlock, - rejecter: RCTPromiseRejectBlock) - { - PrimerHeadlessUniversalCheckout.current.showPaymentMethod(paymentMethodTypeStr) - resolver(nil) - } - - @objc - public func disposePrimerHeadlessUniversalCheckout() { - - } - - // MARK: - HELPERS - - private func tempStoreImage(image: UIImage, name: String) throws -> URL { - guard let imageURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("\(name).png") else { - let err = NativeError(errorId: "error", errorDescription: "Failed to create URL for asset", recoverySuggestion: nil) - throw err - } - - guard let pngData = image.pngData() else { - let err = NativeError(errorId: "error", errorDescription: "Failed to get image's PNG data", recoverySuggestion: nil) - throw err - } - - try pngData.write(to: imageURL) - return imageURL - } - - // MARK: - DECISION HANDLERS - - // MARK: Tokenization - - @objc - public func handleTokenizationNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerDidTokenizePaymentMethodDecisionHandler?(newClientToken, nil) - self.primerDidTokenizePaymentMethodDecisionHandler = nil - resolver(nil) - } - } - - @objc - public func handleTokenizationSuccess(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerDidTokenizePaymentMethodDecisionHandler?(nil, nil) - self.primerDidTokenizePaymentMethodDecisionHandler = nil - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "PrimerTokenizationHandler's handleSuccess function is not available on HUC."]) - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - } - } - - @objc - public func handleTokenizationFailure(_ errorMessage: String?, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerDidTokenizePaymentMethodDecisionHandler?(nil, errorMessage ?? "") - self.primerDidTokenizePaymentMethodDecisionHandler = nil - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "PrimerTokenizationHandler's handleFailure function is not available on HUC."]) - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - } - } - - // MARK: Resume Payment - - @objc - public func handleResumeWithNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerDidResumeWithDecisionHandler?(newClientToken, nil) - self.primerDidResumeWithDecisionHandler = nil - resolver(nil) - } - } - - @objc - public func handleResumeSuccess(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "PrimerResumeHandler's handleSuccess function is not available on HUC."]) - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - } - } - - @objc - public func handleResumeFailure(_ errorMessage: String?, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "PrimerResumeHandler's handleFailure function is not available on HUC."]) - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - } - } - - // MARK: Payment Creation - - @objc - public func handlePaymentCreationAbort(_ errorMessage: String?, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerWillCreatePaymentWithDataDecisionHandler?(errorMessage ?? "") - self.primerWillCreatePaymentWithDataDecisionHandler = nil - resolver(nil) - } - } - - @objc - public func handlePaymentCreationContinue(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - self.primerWillCreatePaymentWithDataDecisionHandler?(nil) - self.primerWillCreatePaymentWithDataDecisionHandler = nil - resolver(nil) - } - } - - // MARK: Helpers - - private func detectImplemetedCallbacks() { - sendEvent(withName: PrimerEvents.detectImplementedRNCallbacks.stringValue, body: nil) - } - - @objc - public func setImplementedRNCallbacks(_ implementedRNCallbacksStr: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - do { - guard let implementedRNCallbacksData = implementedRNCallbacksStr.data(using: .utf8) else { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Failed to convert string to data"]) - throw err - } - self.implementedRNCallbacks = try JSONDecoder().decode(ImplementedRNCallbacks.self, from: implementedRNCallbacksData) - resolver(nil) - } catch { - self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: false) - rejecter(error.rnError["errorId"]!, error.rnError["description"], error) - } - } - } - - private func handleRNBridgeError(_ error: Error, checkoutData: PrimerCheckoutData?, stopOnDebug: Bool) { - DispatchQueue.main.async { - if stopOnDebug { - assertionFailure(error.localizedDescription) - } - - var body: [String: Any] = ["error": error.rnError] - if let checkoutData = checkoutData, - let data = try? JSONEncoder().encode(checkoutData), - let json = try? JSONSerialization.jsonObject(with: data){ - body["checkoutData"] = json - } - - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onError.stringValue, body: body) - } - } -} - -// MARK: - EVENTS - -extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDelegate { - - func primerHeadlessUniversalCheckoutPreparationDidStart(for paymentMethodType: String) { - sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPrepareStart.stringValue, body: ["paymentMethodType": paymentMethodType]) - } - - func primerHeadlessUniversalCheckoutTokenizationDidStart(for paymentMethodType: String) { - sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCTokenizeStart.stringValue, body: ["paymentMethodType": paymentMethodType]) - } - - func primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods(_ paymentMethodTypes: [String]) { - sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCAvailablePaymentMethodsLoaded.stringValue, body: ["paymentMethodTypes": paymentMethodTypes]) - } - - func primerHeadlessUniversalCheckoutPaymentMethodDidShow(for paymentMethodType: String) { - sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPaymentMethodShow.stringValue, body: ["paymentMethodType": paymentMethodType]) - } - - func primerHeadlessUniversalCheckoutDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { - if self.implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true { - self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in - DispatchQueue.main.async { - if let errorMessage = errorMessage { - decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) - } else if let newClientToken = newClientToken { - decisionHandler(.continueWithNewClientToken(newClientToken)) - } else { - decisionHandler(.succeed()) - } - } - } - - do { - let data = try JSONEncoder().encode(paymentMethodTokenData) - let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) - DispatchQueue.main.async { - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onTokenizeSuccess.stringValue, body: json) - } - } catch { - self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) - } - } else { - // RN dev hasn't opted in on listening the tokenization callback. - // Throw an error if it's the manual flow, ignore if it's the - // auto flow. - } - } - - func primerHeadlessUniversalCheckoutDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { - if self.implementedRNCallbacks?.isOnResumeSuccessImplemented == true { - self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in - DispatchQueue.main.async { - if let errorMessage = errorMessage { - decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) - } else if let resumeToken = resumeToken { - decisionHandler(.continueWithNewClientToken(resumeToken)) - } else { - decisionHandler(.succeed()) - } - } - } - - DispatchQueue.main.async { - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumeSuccess.stringValue, body: ["resumeToken": resumeToken]) - } - } else { - // RN dev hasn't opted in on listening the tokenization callback. - // Throw an error if it's the manual flow. - } - } - - func primerHeadlessUniversalCheckoutDidFail(withError err: Error) { - if self.implementedRNCallbacks?.isOnErrorImplemented == true { - // Send the error message to the RN bridge. - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) - - } else { - // RN dev hasn't opted in on listening SDK dismiss. - // Ignore! - } - } - - func primerHeadlessUniversalCheckoutDidCompleteCheckoutWithData(_ data: PrimerCheckoutData) { - DispatchQueue.main.async { - if self.implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true { - do { - let checkoutData = try JSONEncoder().encode(data) - let checkoutJson = try JSONSerialization.jsonObject(with: checkoutData, options: .allowFragments) - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutComplete.stringValue, body: checkoutJson) - } catch { - self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: true) - } - } else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutComplete] should be implemented."]) - self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) - } - } - } - - func primerHeadlessUniversalCheckoutDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { - DispatchQueue.main.async { - if self.implementedRNCallbacks?.isOnResumePendingImplemented == true { - do { - let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) - let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumePending.stringValue, body: checkoutAdditionalInfoJson) - } catch { - let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) - self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) - } - } else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onResumePending] should be implemented."]) - let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) - self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) - } - } - } - - func primerHeadlessUniversalCheckoutDidReceiveAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { - DispatchQueue.main.async { - if self.implementedRNCallbacks?.isOnCheckoutReceivedAdditionalInfoImplemented == true { - do { - let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) - let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutReceivedAdditionalInfo.stringValue, body: checkoutAdditionalInfoJson) - } catch { - let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) - self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) - } - } else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutReceivedAdditionalInfo] should be implemented."]) - let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) - self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) - } - } - } - - func primerHeadlessUniversalCheckoutClientSessionWillUpdate() { - if self.implementedRNCallbacks?.isOnBeforeClientSessionUpdateImplemented == true { - DispatchQueue.main.async { - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforeClientSessionUpdate.stringValue, body: nil) - } - } else { - // React Native app hasn't implemented this callback, ignore. - } - } - - func primerHeadlessUniversalCheckoutClientSessionDidUpdate(_ clientSession: PrimerClientSession) { - if self.implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true { - do { - let data = try JSONEncoder().encode(clientSession) - let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) - DispatchQueue.main.async { - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onClientSessionUpdate.stringValue, body: json) - } - } catch { - self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) - } - } else { - // RN Dev hasn't implemented this callback, ignore. - } - } - - func primerHeadlessUniversalCheckoutWillCreatePaymentWithData(_ data: PrimerCheckoutPaymentMethodData, decisionHandler: @escaping (PrimerPaymentCreationDecision) -> Void) { - if self.implementedRNCallbacks?.isOnBeforePaymentCreateImplemented == true { - self.primerWillCreatePaymentWithDataDecisionHandler = { errorMessage in - DispatchQueue.main.async { - if let errorMessage = errorMessage { - decisionHandler(.abortPaymentCreation(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) - } else { - decisionHandler(.continuePaymentCreation()) - } - } - } - - DispatchQueue.main.async { - do { - let checkoutPaymentmethodData = try JSONEncoder().encode(data) - let checkoutPaymentmethodJson = try JSONSerialization.jsonObject(with: checkoutPaymentmethodData, options: .allowFragments) - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforePaymentCreate.stringValue, body: checkoutPaymentmethodJson) - } catch { - self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) - } - } - } else { - // RN Dev hasn't implemented this callback, send a decision to continue the flow. - DispatchQueue.main.async { - decisionHandler(.continuePaymentCreation()) - } - } - } -} diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 14f09eb92..9aa5e49f7 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,3 +1,3 @@ PODFILE CHECKSUM: 0984f720d2439f86374726bfdebe32d895fdcf46 -COCOAPODS: 1.11.2 +COCOAPODS: 1.11.3 diff --git a/ios/RNTPrimer.m b/ios/RNTPrimer.m deleted file mode 100644 index 6327a9677..000000000 --- a/ios/RNTPrimer.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// RNTPrimer.m -// primer-io-react-native -// -// Created by Evangelos on 15/3/22. -// - -#import -#import - -@interface RCT_EXTERN_MODULE(NativePrimer, RCTEventEmitter) - -// MARK: - PRIMER SDK API - -RCT_EXTERN_METHOD(configure:(NSString *)settingsStr resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(showUniversalCheckoutWithClientToken:(NSString *)clientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(showVaultManagerWithClientToken: (NSString *)clientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)paymentMethodTypeStr intent:(NSString *)intentStr clientToken:(NSString *)clientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(dismiss) - -RCT_EXTERN_METHOD(dispose) - -// MARK: - HELPERS - -RCT_EXTERN_METHOD(setImplementedRNCallbacks:(NSString *)implementedRNCallbacksStr resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: - DECISION HANDLERS - -// MARK: Tokenization Handlers - -RCT_EXTERN_METHOD(handleTokenizationNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleTokenizationSuccess:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleTokenizationFailure:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: Resume Handlers - -RCT_EXTERN_METHOD(handleResumeWithNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleResumeSuccess:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handleResumeFailure:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: Payment Creation Handlers - -RCT_EXTERN_METHOD(handlePaymentCreationAbort:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -RCT_EXTERN_METHOD(handlePaymentCreationContinue:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -// MARK: Error Handler - -RCT_EXTERN_METHOD(showErrorMessage:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) - -@end diff --git a/ios/ReactNative.xcodeproj/project.pbxproj b/ios/ReactNative.xcodeproj/project.pbxproj index 00377351d..f32f048ec 100644 --- a/ios/ReactNative.xcodeproj/project.pbxproj +++ b/ios/ReactNative.xcodeproj/project.pbxproj @@ -14,7 +14,7 @@ 1DEBE0FE26C2D875004E3064 /* PrimerSettingsRN.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEBE0FD26C2D875004E3064 /* PrimerSettingsRN.swift */; }; 1DEBE10026C2D88E004E3064 /* PrimerThemeRN.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEBE0FF26C2D88E004E3064 /* PrimerThemeRN.swift */; }; 1DEBE10226C2D8BA004E3064 /* PaymentInstrumentTokenRN.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEBE10126C2D8BA004E3064 /* PaymentInstrumentTokenRN.swift */; }; - 89F0FEEB6413C5D9701E83B6 /* libPods-ReactNative.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BADF4926CED3501185F76198 /* libPods-ReactNative.a */; }; + 3513609F0CAED44C39E307A6 /* libPods-ReactNative.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BC6985820719A2A61EB3DD8 /* libPods-ReactNative.a */; }; F4FF95D7245B92E800C19C63 /* UniversalCheckoutRN.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* UniversalCheckoutRN.swift */; }; /* End PBXBuildFile section */ @@ -32,16 +32,16 @@ /* Begin PBXFileReference section */ 134814201AA4EA6300B7C361 /* libReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 1BC6985820719A2A61EB3DD8 /* libPods-ReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNative.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 1DEBE0F626C2D594004E3064 /* PrimerRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerRN.swift; sourceTree = ""; }; 1DEBE0F926C2D75A004E3064 /* PrimerFlowRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerFlowRN.swift; sourceTree = ""; }; 1DEBE0FB26C2D859004E3064 /* PrimerExceptionRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerExceptionRN.swift; sourceTree = ""; }; 1DEBE0FD26C2D875004E3064 /* PrimerSettingsRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerSettingsRN.swift; sourceTree = ""; }; 1DEBE0FF26C2D88E004E3064 /* PrimerThemeRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerThemeRN.swift; sourceTree = ""; }; 1DEBE10126C2D8BA004E3064 /* PaymentInstrumentTokenRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentInstrumentTokenRN.swift; sourceTree = ""; }; - 838A4233250958211E6C0DD8 /* Pods-ReactNative.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNative.debug.xcconfig"; path = "Target Support Files/Pods-ReactNative/Pods-ReactNative.debug.xcconfig"; sourceTree = ""; }; - A5356B751E3623AFD2BA69A3 /* Pods-ReactNative.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNative.release.xcconfig"; path = "Target Support Files/Pods-ReactNative/Pods-ReactNative.release.xcconfig"; sourceTree = ""; }; + 568A70304A987529851A447E /* Pods-ReactNative.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNative.release.xcconfig"; path = "Target Support Files/Pods-ReactNative/Pods-ReactNative.release.xcconfig"; sourceTree = ""; }; + AED192A9C2698C599CF21663 /* Pods-ReactNative.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNative.debug.xcconfig"; path = "Target Support Files/Pods-ReactNative/Pods-ReactNative.debug.xcconfig"; sourceTree = ""; }; B3E7B5891CC2AC0600A0062D /* ReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReactNative.m; sourceTree = ""; }; - BADF4926CED3501185F76198 /* libPods-ReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNative.a"; sourceTree = BUILT_PRODUCTS_DIR; }; F4FF95D5245B92E700C19C63 /* ReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNative-Bridging-Header.h"; sourceTree = ""; }; F4FF95D6245B92E800C19C63 /* UniversalCheckoutRN.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UniversalCheckoutRN.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -51,13 +51,21 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 89F0FEEB6413C5D9701E83B6 /* libPods-ReactNative.a in Frameworks */, + 3513609F0CAED44C39E307A6 /* libPods-ReactNative.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 11BA866BDA971C4D4B96C2C4 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1BC6985820719A2A61EB3DD8 /* libPods-ReactNative.a */, + ); + name = Frameworks; + sourceTree = ""; + }; 134814211AA4EA7D00B7C361 /* Products */ = { isa = PBXGroup; children = ( @@ -81,8 +89,8 @@ 38076040A533828516C55677 /* Pods */ = { isa = PBXGroup; children = ( - 838A4233250958211E6C0DD8 /* Pods-ReactNative.debug.xcconfig */, - A5356B751E3623AFD2BA69A3 /* Pods-ReactNative.release.xcconfig */, + AED192A9C2698C599CF21663 /* Pods-ReactNative.debug.xcconfig */, + 568A70304A987529851A447E /* Pods-ReactNative.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -97,18 +105,10 @@ F4FF95D5245B92E700C19C63 /* ReactNative-Bridging-Header.h */, 134814211AA4EA7D00B7C361 /* Products */, 38076040A533828516C55677 /* Pods */, - E193973ADE52A4E8D27FFC73 /* Frameworks */, + 11BA866BDA971C4D4B96C2C4 /* Frameworks */, ); sourceTree = ""; }; - E193973ADE52A4E8D27FFC73 /* Frameworks */ = { - isa = PBXGroup; - children = ( - BADF4926CED3501185F76198 /* libPods-ReactNative.a */, - ); - name = Frameworks; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -116,7 +116,7 @@ isa = PBXNativeTarget; buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ReactNative" */; buildPhases = ( - F9651EA2F679750D43349501 /* [CP] Check Pods Manifest.lock */, + 64FF98C09B1E65E78CC7F5BB /* [CP] Check Pods Manifest.lock */, 58B511D71A9E6C8500147676 /* Sources */, 58B511D81A9E6C8500147676 /* Frameworks */, 58B511D91A9E6C8500147676 /* CopyFiles */, @@ -163,7 +163,7 @@ /* End PBXProject section */ /* Begin PBXShellScriptBuildPhase section */ - F9651EA2F679750D43349501 /* [CP] Check Pods Manifest.lock */ = { + 64FF98C09B1E65E78CC7F5BB /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -310,7 +310,7 @@ }; 58B511F01A9E6C8500147676 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 838A4233250958211E6C0DD8 /* Pods-ReactNative.debug.xcconfig */; + baseConfigurationReference = AED192A9C2698C599CF21663 /* Pods-ReactNative.debug.xcconfig */; buildSettings = { HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -330,7 +330,7 @@ }; 58B511F11A9E6C8500147676 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = A5356B751E3623AFD2BA69A3 /* Pods-ReactNative.release.xcconfig */; + baseConfigurationReference = 568A70304A987529851A447E /* Pods-ReactNative.release.xcconfig */; buildSettings = { HEADER_SEARCH_PATHS = ( "$(inherited)", diff --git a/ios/Sources/DataModels/ImplementedRNCallbacks.swift b/ios/Sources/DataModels/ImplementedRNCallbacks.swift new file mode 100644 index 000000000..52e6c23ac --- /dev/null +++ b/ios/Sources/DataModels/ImplementedRNCallbacks.swift @@ -0,0 +1,75 @@ +// +// ImplementedRNCallbacks.swift +// primer-io-react-native +// +// Created by Evangelos on 20/5/22. +// + +import Foundation + +internal struct ImplementedRNCallbacks: Decodable { + + internal var isOnAvailablePaymentMethodsLoadImplemented = false + internal var isOnTokenizationStartImplemented = false + internal var isOnTokenizationSuccessImplemented = false + + internal var isOnCheckoutResumeImplemented = false + internal var isOnCheckoutPendingImplemented = false + internal var isOnCheckoutAdditionalInfoImplemented = false + + internal var isOnErrorImplemented = false + internal var isOnCheckoutCompleteImplemented = false + internal var isOnBeforeClientSessionUpdateImplemented = false + + internal var isOnClientSessionUpdateImplemented = false + internal var isOnBeforePaymentCreateImplemented = false + internal var isOnPreparationStartImplemented = false + + internal var isOnPaymentMethodShowImplemented = false + internal var isOnDismissImplemented = false + + enum CodingKeys: String, CodingKey { + + case isOnAvailablePaymentMethodsLoadImplemented = "onAvailablePaymentMethodsLoad" + case isOnTokenizationStartImplemented = "onTokenizationStart" + case isOnTokenizationSuccessImplemented = "onTokenizationSuccess" + + case isOnCheckoutResumeImplemented = "onCheckoutResume" + case isOnCheckoutPendingImplemented = "onCheckoutPending" + case isOnCheckoutAdditionalInfoImplemented = "onCheckoutAdditionalInfo" + + case isOnErrorImplemented = "onError" + case isOnCheckoutCompleteImplemented = "onCheckoutComplete" + case isOnBeforeClientSessionUpdateImplemented = "onBeforeClientSessionUpdate" + + case isOnClientSessionUpdateImplemented = "onClientSessionUpdate" + case isOnBeforePaymentCreateImplemented = "onBeforePaymentCreate" + case isOnPreparationStartImplemented = "onPreparationStart" + + case isOnPaymentMethodShowImplemented = "onPaymentMethodShow" + case isOnDismissImplemented = "onDismiss" + } + + init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + self.isOnAvailablePaymentMethodsLoadImplemented = (try? container.decode(Bool?.self, forKey: .isOnAvailablePaymentMethodsLoadImplemented)) ?? false + self.isOnTokenizationStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnTokenizationStartImplemented)) ?? false + self.isOnTokenizationSuccessImplemented = (try? container.decode(Bool?.self, forKey: .isOnTokenizationSuccessImplemented)) ?? false + + self.isOnCheckoutResumeImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutResumeImplemented)) ?? false + self.isOnCheckoutPendingImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutPendingImplemented)) ?? false + self.isOnCheckoutAdditionalInfoImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutAdditionalInfoImplemented)) ?? false + + self.isOnErrorImplemented = (try? container.decode(Bool?.self, forKey: .isOnErrorImplemented)) ?? false + self.isOnCheckoutCompleteImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutCompleteImplemented)) ?? false + self.isOnBeforeClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforeClientSessionUpdateImplemented)) ?? false + + self.isOnClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnClientSessionUpdateImplemented)) ?? false + self.isOnBeforePaymentCreateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforePaymentCreateImplemented)) ?? false + self.isOnPreparationStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnPreparationStartImplemented)) ?? false + + self.isOnPaymentMethodShowImplemented = (try? container.decode(Bool?.self, forKey: .isOnPaymentMethodShowImplemented)) ?? false + self.isOnDismissImplemented = (try? container.decode(Bool?.self, forKey: .isOnDismissImplemented)) ?? false + } +} diff --git a/ios/DataModels/RNTPrimerCardData.swift b/ios/Sources/DataModels/PrimerCardData+Extension.swift similarity index 100% rename from ios/DataModels/RNTPrimerCardData.swift rename to ios/Sources/DataModels/PrimerCardData+Extension.swift diff --git a/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift b/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift new file mode 100644 index 000000000..79f9ac6cc --- /dev/null +++ b/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift @@ -0,0 +1,20 @@ +// +// PrimerHeadlessUniversalCheckout_PaymentMethod.swift +// primer-io-react-native +// +// Created by Evangelos on 7/10/22. +// + +import Foundation +import PrimerSDK + +extension PrimerHeadlessUniversalCheckout.PaymentMethod { + + func toJsonObject() -> [String: Any] { + return [ + "paymentMethodType": paymentMethodType, + "supportedPrimerSessionIntents": self.supportedPrimerSessionIntents.compactMap({ $0.rawValue }), + "paymentMethodManagerCategories": self.paymentMethodManagerCategories.compactMap({ $0.rawValue }) + ] + } +} diff --git a/ios/DataModels/RNTPrimerPhoneNumberData.swift b/ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift similarity index 100% rename from ios/DataModels/RNTPrimerPhoneNumberData.swift rename to ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift diff --git a/ios/Sources/DataModels/PrimerSettings+Extensions.swift b/ios/Sources/DataModels/PrimerSettings+Extensions.swift new file mode 100644 index 000000000..a11513f92 --- /dev/null +++ b/ios/Sources/DataModels/PrimerSettings+Extensions.swift @@ -0,0 +1,88 @@ +import PrimerSDK + +extension PrimerSettings { + + convenience init(settingsStr: String?) throws { + if settingsStr == nil { + self.init() + } else { + guard let settingsData = settingsStr!.data(using: .utf8) else { + let err = RNTNativeError(errorId: "invalid-value", errorDescription: "The value of the settings object is invalid.", recoverySuggestion: "Provide a valid settings object") + throw err + } + + let settingsJson = try JSONSerialization.jsonObject(with: settingsData) + + guard let settingsJson = settingsJson as? [String: Any] else { + let err = RNTNativeError(errorId: "invalid-value", errorDescription: "Settings is not a valid JSON", recoverySuggestion: "Provide a valid settings object") + throw err + } + + var paymentHandling: PrimerPaymentHandling = .auto + if let rnPaymentHandling = settingsJson["paymentHandling"] as? String, + rnPaymentHandling == "MANUAL" { + paymentHandling = .manual + } + + let rnLocaleDataLanguageCode = (settingsJson["localeData"] as? [String: Any])?["languageCode"] as? String + let rnLocaleDataLocaleCode = (settingsJson["localeData"] as? [String: Any])?["localeCode"] as? String + let localeData = PrimerLocaleData( + languageCode: rnLocaleDataLanguageCode, + regionCode: rnLocaleDataLocaleCode) + + let rnUrlScheme = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["iOS"] as? [String: Any])?["urlScheme"] as? String + + var applePayOptions: PrimerApplePayOptions? + if let rnApplePayOptions = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["applePayOptions"] as? [String: Any]), + let rnApplePayMerchantIdentifier = rnApplePayOptions["merchantIdentifier"] as? String, + let rnApplePayMerchantName = rnApplePayOptions["merchantName"] as? String { + applePayOptions = PrimerApplePayOptions(merchantIdentifier: rnApplePayMerchantIdentifier, merchantName: rnApplePayMerchantName) + } + + var klarnaOptions: PrimerKlarnaOptions? + if let rnKlarnaRecurringPaymentDescription = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["klarnaOptions"] as? [String: Any])?["recurringPaymentDescription"] as? String { + klarnaOptions = PrimerKlarnaOptions(recurringPaymentDescription: rnKlarnaRecurringPaymentDescription) + } + + var cardPaymentOptions: PrimerCardPaymentOptions? + if let rnIs3DSOnVaultingEnabled = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["cardPaymentOptions"] as? [String: Any])?["is3DSOnVaultingEnabled"] as? Bool { + cardPaymentOptions = PrimerCardPaymentOptions(is3DSOnVaultingEnabled: rnIs3DSOnVaultingEnabled) + } + + var uiOptions: PrimerUIOptions? + if let rnUIOptions = settingsJson["uiOptions"] as? [String: Any] { + + var theme: PrimerTheme? + if let rnTheme = rnUIOptions["theme"] as? [String: Any] { + let rnThemeData = (try JSONSerialization.data(withJSONObject: rnTheme)) + let rnTheme = try JSONDecoder().decode(PrimerThemeRN.self, from: rnThemeData) + theme = rnTheme.asPrimerTheme() + } + + uiOptions = PrimerUIOptions( + isInitScreenEnabled: rnUIOptions["isInitScreenEnabled"] as? Bool, + isSuccessScreenEnabled: rnUIOptions["isSuccessScreenEnabled"] as? Bool, + isErrorScreenEnabled: rnUIOptions["isErrorScreenEnabled"] as? Bool, + theme: theme) + } + + var debugOptions: PrimerDebugOptions? + if let rnIs3DSSanityCheckEnabled = (settingsJson["debugOptions"] as? [String: Any])?["is3DSSanityCheckEnabled"] as? Bool { + debugOptions = PrimerDebugOptions(is3DSSanityCheckEnabled: rnIs3DSSanityCheckEnabled) + } + + let paymentMethodOptions = PrimerPaymentMethodOptions( + urlScheme: rnUrlScheme, + applePayOptions: applePayOptions, + klarnaOptions: klarnaOptions, + cardPaymentOptions: cardPaymentOptions) + + self.init( + paymentHandling: paymentHandling, + localeData: localeData, + paymentMethodOptions: paymentMethodOptions, + uiOptions: uiOptions, + debugOptions: debugOptions) + } + } +} diff --git a/ios/DataModels/PrimerThemeRN.swift b/ios/Sources/DataModels/PrimerThemeRN.swift similarity index 100% rename from ios/DataModels/PrimerThemeRN.swift rename to ios/Sources/DataModels/PrimerThemeRN.swift diff --git a/ios/Sources/DataModels/RNTNativeError.swift b/ios/Sources/DataModels/RNTNativeError.swift new file mode 100644 index 000000000..d4799faab --- /dev/null +++ b/ios/Sources/DataModels/RNTNativeError.swift @@ -0,0 +1,22 @@ + +import Foundation + +struct RNTNativeError: CustomNSError, LocalizedError, Codable { + + let errorId: String + let errorDescription: String? + let recoverySuggestion: String? + + var rnError: [String: String] { + var json: [String: String] = [ + "errorId": errorId, + "description": errorDescription ?? "Something went wrong" + ] + + if let recoverySuggestion = recoverySuggestion { + json["recoverySuggestion"] = recoverySuggestion + } + + return json + } +} diff --git a/ios/DataModels/RNTPrimerCardRedirectData.swift b/ios/Sources/DataModels/RNTPrimerCardRedirectData.swift similarity index 100% rename from ios/DataModels/RNTPrimerCardRedirectData.swift rename to ios/Sources/DataModels/RNTPrimerCardRedirectData.swift diff --git a/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift b/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift new file mode 100644 index 000000000..f0cbe1ee3 --- /dev/null +++ b/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift @@ -0,0 +1,65 @@ +// +// RNTPrimerPaymentMethodAsset.swift +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +import Foundation +import PrimerSDK + +struct RNTPrimerPaymentMethodAsset: Codable { + + let paymentMethodType: String + let paymentMethodLogo: RNTPrimerPaymentMethodLogo + let paymentMethodBackgroundColor: RNTPrimerPaymentMethodBackgroundColor + + init(primerPaymentMethodAsset: PrimerPaymentMethodAsset) { + self.paymentMethodType = primerPaymentMethodAsset.paymentMethodType + self.paymentMethodLogo = RNTPrimerPaymentMethodLogo( + paymentMethodType: primerPaymentMethodAsset.paymentMethodType, + primerPaymentMethodLogo: primerPaymentMethodAsset.paymentMethodLogo) + self.paymentMethodBackgroundColor = RNTPrimerPaymentMethodBackgroundColor( + primerPaymentMethodBackgroundColor: primerPaymentMethodAsset.paymentMethodBackgroundColor) + } +} + +struct RNTPrimerPaymentMethodLogo: Codable { + + let colored: String? + let dark: String? + let light: String? + + init(paymentMethodType: String, primerPaymentMethodLogo: PrimerPaymentMethodLogo) { + self.colored = try? primerPaymentMethodLogo.colored?.store(withName: "\(paymentMethodType)-colored").absoluteString + self.dark = try? primerPaymentMethodLogo.dark?.store(withName: "\(paymentMethodType)-dark").absoluteString + self.light = try? primerPaymentMethodLogo.light?.store(withName: "\(paymentMethodType)-light").absoluteString + } +} + +struct RNTPrimerPaymentMethodBackgroundColor: Codable { + + let colored: String? + let dark: String? + let light: String? + + init(primerPaymentMethodBackgroundColor: PrimerPaymentMethodBackgroundColor) { + if let bgColoredHex = primerPaymentMethodBackgroundColor.colored?.toHex() { + self.colored = "#\(bgColoredHex)" + } else { + self.colored = nil + } + + if let darkColoredHex = primerPaymentMethodBackgroundColor.dark?.toHex() { + self.dark = "#\(darkColoredHex)" + } else { + self.dark = nil + } + + if let lightColoredHex = primerPaymentMethodBackgroundColor.light?.toHex() { + self.light = "#\(lightColoredHex)" + } else { + self.light = nil + } + } +} diff --git a/ios/DataModels/RNTPrimerRetailerData.swift b/ios/Sources/DataModels/RNTPrimerRetailerData.swift similarity index 100% rename from ios/DataModels/RNTPrimerRetailerData.swift rename to ios/Sources/DataModels/RNTPrimerRetailerData.swift diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m new file mode 100644 index 000000000..e76d3591f --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m @@ -0,0 +1,19 @@ +// +// NativeUIManager.m +// primer-io-react-native +// +// Created by Evangelos on 7/10/22. +// + +#import +#import + +@interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager, RCTEventEmitter) + +// MARK: - API + +RCT_EXTERN_METHOD(initialize: (NSString *)paymentMethod resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)intent resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +@end diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift new file mode 100644 index 000000000..aa89dbdfc --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift @@ -0,0 +1,63 @@ +// +// NativeUIManager.swift +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +import Foundation +import PrimerSDK + +@objc(RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager) +class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { + + var paymentMethodNativeUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.NativeUIManager! + + override func supportedEvents() -> [String]! { + return [] + } + + override class func requiresMainQueueSetup() -> Bool { + return true + } + + deinit { + print("DEINIT \(self) \(Unmanaged.passUnretained(self).toOpaque())") + } + + override init() { + super.init() + print("INIT \(self) \(Unmanaged.passUnretained(self).toOpaque())") + } + + @objc + func initialize(_ paymentMethod: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + print("initialize \(self) \(Unmanaged.passUnretained(self).toOpaque())") + do { + self.paymentMethodNativeUIManager = try PrimerSDK.PrimerHeadlessUniversalCheckout.NativeUIManager(paymentMethodType: paymentMethod) + resolver(nil) + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } + + @objc + func showPaymentMethod(_ intent: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + do { + guard let paymentMethodNativeUIManager = paymentMethodNativeUIManager else { + let err = RNTNativeError(errorId: "uninitialized-manager", errorDescription: "The NativeUIManager has not been initialized.", recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") + throw err + } + + guard let intent = PrimerSessionIntent(rawValue: intent) else { + let err = RNTNativeError(errorId: "invalid value", errorDescription: "The NativeUIManager has not been initialized.", recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") + throw err + } + + try paymentMethodNativeUIManager.showPaymentMethod(intent: intent) + + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } +} diff --git a/ios/Headless Universal Checkout/RNTPrimerCardNumberInputElementManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerCardNumberInputElementManager.m similarity index 100% rename from ios/Headless Universal Checkout/RNTPrimerCardNumberInputElementManager.m rename to ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerCardNumberInputElementManager.m diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m similarity index 100% rename from ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m rename to ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift similarity index 73% rename from ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift rename to ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift index 9e0df4af7..00c9618ec 100644 --- a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift @@ -16,9 +16,10 @@ class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { return true } - private lazy var cardFormUIManager: PrimerHeadlessUniversalCheckout.CardFormUIManager = { - return try! PrimerHeadlessUniversalCheckout.CardFormUIManager() + private lazy var cardFormUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager = { + return PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager() }() + private var successCallback: RCTResponseSenderBlock? { didSet { @@ -31,24 +32,14 @@ class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { override init() { super.init() - do { - self.cardFormUIManager = try PrimerHeadlessUniversalCheckout.CardFormUIManager() - self.cardFormUIManager.cardFormUIManagerDelegate = self - } catch { - - } - - print("โญ init: \(self) \(Unmanaged.passUnretained(self).toOpaque())") + self.cardFormUIManager = PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager() + self.cardFormUIManager.delegate = self } @objc override func constantsToExport() -> [AnyHashable : Any]! { return ["message": "Hello from native code"] } - - func cardFormUIManager(_ cardFormUIManager: PrimerHeadlessUniversalCheckout.CardFormUIManager, isCardFormValid: Bool) { - - } @objc func setInputElements(_ inputElements: String, errorCallback: RCTResponseSenderBlock, successCallback: @escaping RCTResponseSenderBlock) { @@ -67,7 +58,7 @@ class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { for tag in tags { if let view = rctUIManager.view(forReactTag: tag) { - if let inputElement = view as? PrimerInputElement { + if let inputElement = view as? PrimerHeadlessUniversalCheckoutInputElement { self.cardFormUIManager.inputElements = [inputElement] } } @@ -83,7 +74,7 @@ class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { } if let view = rctUIManager.view(forReactTag: tag) { - if let inputElement = view as? PrimerInputElement { + if let inputElement = view as? PrimerHeadlessUniversalCheckoutInputElement { self.cardFormUIManager.inputElements = [inputElement] } } @@ -98,20 +89,21 @@ class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { } -extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerInputElementDelegate { +extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerHeadlessUniversalCheckoutCardComponentsUIManagerDelegate { - func inputElementDidFocus(_ sender: PrimerInputElement) { + func cardFormUIManager(_ cardFormUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager, isCardFormValid: Bool) { } - - func inputElementDidBlur(_ sender: PrimerInputElement) { - - } - } -extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerCardFormDelegate { +extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerInputElementDelegate { + func inputElementDidFocus(_ sender: PrimerHeadlessUniversalCheckoutInputElement) { + + } + func inputElementDidBlur(_ sender: PrimerHeadlessUniversalCheckoutInputElement) { + + } } diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m similarity index 81% rename from ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.m rename to ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m index 85791e02c..d9f2cefd8 100644 --- a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m @@ -8,7 +8,7 @@ #import #import -@interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckoutRawDataManager, RCTEventEmitter) +@interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutRawDataManager, RCTEventEmitter) RCT_EXTERN_METHOD(initialize:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) @@ -19,5 +19,6 @@ @interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckoutRawDataManager, RCTE RCT_EXTERN_METHOD(submit:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) RCT_EXTERN_METHOD(configure:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(dispose:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) @end diff --git a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift similarity index 91% rename from ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.swift rename to ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index 25b042f2f..ea1229d39 100644 --- a/ios/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckoutRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -13,7 +13,6 @@ enum PrimerHeadlessUniversalCheckoutRawDataManagerEvents: Int, CaseIterable { case onMetadataChange = 0 case onValidation - case onNativeError var stringValue: String { switch self { @@ -21,13 +20,11 @@ enum PrimerHeadlessUniversalCheckoutRawDataManagerEvents: Int, CaseIterable { return "onMetadataChange" case .onValidation: return "onValidation" - case .onNativeError: - return "onNativeError" } } } -@objc(PrimerHeadlessUniversalCheckoutRawDataManager) +@objc(RNTPrimerHeadlessUniversalCheckoutRawDataManager) class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { private var rawDataManager: PrimerHeadlessUniversalCheckout.RawDataManager! @@ -154,9 +151,24 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rawDataManager.submit() resolver(nil) } + + @objc + public func dispose( + _ resolver: RCTPromiseResolveBlock, + rejecter: RCTPromiseRejectBlock + ) { + guard let rawDataManager = rawDataManager else { + let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.configure function first."]) + rejecter(err.rnError["errorId"]!, err.rnError["description"], err) + return + } + + rawDataManager.submit() + resolver(nil) + } } -extension RNTPrimerHeadlessUniversalCheckoutRawDataManager: PrimerRawDataManagerDelegate { +extension RNTPrimerHeadlessUniversalCheckoutRawDataManager: PrimerHeadlessUniversalCheckoutRawDataManagerDelegate { func primerRawDataManager(_ rawDataManager: PrimerHeadlessUniversalCheckout.RawDataManager, metadataDidChange metadata: [String : Any]?) { DispatchQueue.main.async { diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m new file mode 100644 index 000000000..817011a97 --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m @@ -0,0 +1,20 @@ +// +// RNTAssetsManager.m +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +#import +#import + +@interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutAssetsManager, RCTEventEmitter) + +RCT_EXTERN_METHOD(getPaymentMethodAsset:(NSString *)paymentMethodType + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(getPaymentMethodAssets:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +@end diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift new file mode 100644 index 000000000..94cdec6de --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift @@ -0,0 +1,72 @@ +// +// RNTAssetsManager.swift +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +import Foundation +import PrimerSDK + +@objc(RNTPrimerHeadlessUniversalCheckoutAssetsManager) +class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { + + override func supportedEvents() -> [String]! { + return [] + } + + override class func requiresMainQueueSetup() -> Bool { + return true + } + + @objc + func getPaymentMethodAsset( + _ paymentMethodType: String, + resolver: RCTPromiseResolveBlock, + rejecter: RCTPromiseRejectBlock + ) { + do { + guard let paymentMethodAsset = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getPaymentMethodAsset(for: paymentMethodType) else { + let err = RNTNativeError( + errorId: "missing-asset", + errorDescription: "Failed to find asset of \(paymentMethodType) for this session", + recoverySuggestion: nil) + throw err + } + + if let rntPaymentMethodAsset = try? RNTPrimerPaymentMethodAsset(primerPaymentMethodAsset: paymentMethodAsset).toJsonObject() { + resolver(["paymentMethodAsset": rntPaymentMethodAsset]) + } else { + let err = RNTNativeError( + errorId: "missing-asset", + errorDescription: "Failed to create the RNTPrimerPaymentMethodAsset", + recoverySuggestion: nil) + throw err + } + + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } + + @objc + func getPaymentMethodAssets( + _ resolver: RCTPromiseResolveBlock, + rejecter: RCTPromiseRejectBlock + ) { + do { + let paymentMethodAssets = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getPaymentMethodAssets() + + let rntPaymentMethodAssets = paymentMethodAssets.compactMap({ try? RNTPrimerPaymentMethodAsset(primerPaymentMethodAsset: $0).toJsonObject() }) + guard !rntPaymentMethodAssets.isEmpty else { + let err = RNTNativeError(errorId: "missing-asset", errorDescription: "Failed to find assets for this session", recoverySuggestion: nil) + throw err + } + + resolver(["paymentMethodAssets": rntPaymentMethodAssets]) + + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } +} diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m new file mode 100644 index 000000000..0f560bed4 --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m @@ -0,0 +1,41 @@ +// +// RNTPrimerHeadlessUniversalCheckout.m +// primer-io-react-native +// +// Created by Evangelos on 8/3/22. +// + +#import +#import + +@interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckout, RCTEventEmitter) + +RCT_EXTERN_METHOD(startWithClientToken:(NSString *)clientToken + settingsStr:(NSString *)settingsStr + resolver:(RCTPromiseResolveBlock)resolver + rejecter: (RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(disposePrimerHeadlessUniversalCheckout) + +// MARK: - DECISION HANDLERS + +// MARK: Tokenization & Resume Handlers + +RCT_EXTERN_METHOD(handleTokenizationNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleResumeWithNewClientToken:(NSString *)newClientToken resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleCompleteFlow:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: Payment Creation Handlers + +RCT_EXTERN_METHOD(handlePaymentCreationAbort:(NSString *)errorMessage resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handlePaymentCreationContinue:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: - HELPERS + +RCT_EXTERN_METHOD(setImplementedRNCallbacks:(NSString *)implementedRNCallbacksStr resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) + + +@end diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift new file mode 100644 index 000000000..541f54e7f --- /dev/null +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift @@ -0,0 +1,737 @@ +// +// RNTPrimerHeadlessUniversalCheckout.swift +// primer-io-react-native +// +// Created by Evangelos on 8/3/22. +// + +import Foundation +import PrimerSDK + +@objc +enum PrimerHeadlessUniversalCheckoutEvents: Int, CaseIterable { + + // Delegate + case onAvailablePaymentMethodsLoad = 0 + case onTokenizationStart + case onTokenizationSuccess + case onCheckoutResume + case onCheckoutPending + case onCheckoutAdditionalInfo + case onError + case onCheckoutComplete + case onBeforeClientSessionUpdate + case onClientSessionUpdate + case onBeforePaymentCreate + + // UI Delegate + case onPreparationStart + case onPaymentMethodShow + + var stringValue: String { + switch self { + case .onAvailablePaymentMethodsLoad: + return "onAvailablePaymentMethodsLoad" + case .onTokenizationStart: + return "onTokenizationStart" + case .onTokenizationSuccess: + return "onTokenizationSuccess" + case .onCheckoutResume: + return "onCheckoutResume" + case .onCheckoutPending: + return "onCheckoutPending" + case .onCheckoutAdditionalInfo: + return "onCheckoutAdditionalInfo" + case .onError: + return "onError" + case .onBeforeClientSessionUpdate: + return "onBeforeClientSessionUpdate" + case .onCheckoutComplete: + return "onCheckoutComplete" + case .onBeforePaymentCreate: + return "onBeforePaymentCreate" + case .onClientSessionUpdate: + return "onClientSessionUpdate" + case .onPreparationStart: + return "onPreparationStart" + case .onPaymentMethodShow: + return "onPaymentMethodShow" + } + } +} + +@objc(PrimerHeadlessUniversalCheckout) +class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { + + private var settings: PrimerSettings? + private var primerWillCreatePaymentWithDataDecisionHandler: ((_ errorMessage: String?) -> Void)? + private var primerDidTokenizePaymentMethodDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? + private var primerDidResumeWithDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? + private var implementedRNCallbacks: ImplementedRNCallbacks? + + override class func requiresMainQueueSetup() -> Bool { + return true + } + + override init() { + super.init() + PrimerHeadlessUniversalCheckout.current.delegate = self + PrimerHeadlessUniversalCheckout.current.uiDelegate = self + } + + override func supportedEvents() -> [String]! { + return PrimerHeadlessUniversalCheckoutEvents.allCases.compactMap({ $0.stringValue }) + } + + // MARK: - API + + @objc + public func startWithClientToken(_ clientToken: String, + settingsStr: String?, + resolver: @escaping RCTPromiseResolveBlock, + rejecter: @escaping RCTPromiseRejectBlock) + { + do { + var tmpSettings: PrimerSettings? + if let settingsStr = settingsStr { + tmpSettings = try PrimerSettings(settingsStr: settingsStr) + self.settings = tmpSettings + } + + PrimerHeadlessUniversalCheckout.current.start( + withClientToken: clientToken, + settings: settings, + delegate: self, + uiDelegate: self) { paymentMethods, err in + if let err = err { + rejecter(err.rnError["errorId"]!, err.rnError["description"], err) + } else if let paymentMethods = paymentMethods { + let paymentMethodObjects = paymentMethods.compactMap({ $0.toJsonObject() }) + resolver(["availablePaymentMethods": paymentMethodObjects]) + } + } + + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } + + @objc + public func disposePrimerHeadlessUniversalCheckout() { + + } + + // MARK: - DECISION HANDLERS + + // MARK: Tokenization & Resume Handlers + + @objc + public func handleTokenizationNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + self.primerDidTokenizePaymentMethodDecisionHandler?(newClientToken, nil) + self.primerDidTokenizePaymentMethodDecisionHandler = nil + resolver(nil) + } + } + + @objc + public func handleResumeWithNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + self.primerDidResumeWithDecisionHandler?(newClientToken, nil) + self.primerDidResumeWithDecisionHandler = nil + resolver(nil) + } + } + + @objc + public func handleCompleteFlow(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + self.primerDidResumeWithDecisionHandler?(nil, nil) + self.primerDidResumeWithDecisionHandler = nil + resolver(nil) + } + } + + // MARK: Payment Creation + + @objc + public func handlePaymentCreationAbort(_ errorMessage: String?, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + self.primerWillCreatePaymentWithDataDecisionHandler?(errorMessage ?? "") + self.primerWillCreatePaymentWithDataDecisionHandler = nil + resolver(nil) + } + } + + @objc + public func handlePaymentCreationContinue(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + self.primerWillCreatePaymentWithDataDecisionHandler?(nil) + self.primerWillCreatePaymentWithDataDecisionHandler = nil + resolver(nil) + } + } + + // MARK: Helpers + + private func detectImplemetedCallbacks() { + sendEvent(withName: PrimerEvents.detectImplementedRNCallbacks.stringValue, body: nil) + } + + @objc + public func setImplementedRNCallbacks(_ implementedRNCallbacksStr: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + do { + guard let implementedRNCallbacksData = implementedRNCallbacksStr.data(using: .utf8) else { + let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Failed to convert string to data"]) + throw err + } + self.implementedRNCallbacks = try JSONDecoder().decode(ImplementedRNCallbacks.self, from: implementedRNCallbacksData) + resolver(nil) + } catch { + self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: false) + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } + } + + private func handleRNBridgeError(_ error: Error, checkoutData: PrimerCheckoutData?, stopOnDebug: Bool) { + DispatchQueue.main.async { + if stopOnDebug { + assertionFailure(error.localizedDescription) + } + + var body: [String: Any] = ["error": error.rnError] + if let checkoutData = checkoutData, + let data = try? JSONEncoder().encode(checkoutData), + let json = try? JSONSerialization.jsonObject(with: data){ + body["checkoutData"] = json + } + + self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onError.stringValue, body: body) + } + } +} + +// MARK: - EVENTS + +extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDelegate { + + // case onAvailablePaymentMethodsLoad = 0 + func primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods(_ paymentMethods: [PrimerHeadlessUniversalCheckout.PaymentMethod]) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onAvailablePaymentMethodsLoad.stringValue + + DispatchQueue.main.async { + self.sendEvent( + withName: rnCallbackName, + body: ["availablePaymentMethods": paymentMethods.compactMap({ $0.toJsonObject() })]) + } + } + + // case onTokenizationStart + func primerHeadlessUniversalCheckoutDidStartTokenization(for paymentMethodType: String) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onTokenizationStart.stringValue + + DispatchQueue.main.async { + self.sendEvent( + withName: rnCallbackName, + body: ["paymentMethodType": paymentMethodType]) + } + } + + // case onTokenizationSuccess + func primerHeadlessUniversalCheckoutDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerHeadlessUniversalCheckoutResumeDecision) -> Void) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onTokenizationSuccess.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnTokenizationSuccessImplemented == true { + self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in + DispatchQueue.main.async { + if let newClientToken = newClientToken { + decisionHandler(.continueWithNewClientToken(newClientToken)) + } else { + decisionHandler(.complete()) + } + } + } + + do { + let paymentMethodTokenJson = try paymentMethodTokenData.toJsonObject() + self.sendEvent( + withName: rnCallbackName, + body: ["paymentMethodTokenData": paymentMethodTokenJson]) + + } catch { + self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) + } + } else { + if self.settings?.paymentHandling == .manual { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } + } + + // case onCheckoutResume + func primerHeadlessUniversalCheckoutDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerHeadlessUniversalCheckoutResumeDecision) -> Void) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutResume.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnCheckoutResumeImplemented == true { + self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in + DispatchQueue.main.async { + if let resumeToken = resumeToken { + decisionHandler(.continueWithNewClientToken(resumeToken)) + } else { + decisionHandler(.complete()) + } + } + } + + self.sendEvent( + withName: rnCallbackName, + body: ["resumeToken": resumeToken]) + + } else { + if self.settings?.paymentHandling == .manual { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } + } + + // case onCheckoutPending + func primerHeadlessUniversalCheckoutDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutPending.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnCheckoutPendingImplemented == true { + do { + let checkoutAdditionalInfoJson = try additionalInfo?.toJsonObject() + self.sendEvent(withName: rnCallbackName, body: checkoutAdditionalInfoJson) + } catch { + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) + self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) + } + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) + self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) + } + } + } + + // case onCheckoutAdditionalInfo + func primerHeadlessUniversalCheckoutDidReceiveAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutAdditionalInfo.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnCheckoutAdditionalInfoImplemented == true { + do { + let checkoutAdditionalInfoJson = try additionalInfo?.toJsonObject() + self.sendEvent( + withName: rnCallbackName, + body: checkoutAdditionalInfoJson) + + } catch { + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) + self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) + } + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) + self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) + } + } + } + + // case onError + func primerHeadlessUniversalCheckoutDidFail(withError err: Error, checkoutData: PrimerCheckoutData?) { + if self.implementedRNCallbacks?.isOnErrorImplemented == true { + // Send the error message to the RN bridge. + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + + } else { + // RN dev hasn't opted in on listening SDK errors. + // Ignore! + } + } + + // case onCheckoutComplete + func primerHeadlessUniversalCheckoutDidCompleteCheckoutWithData(_ data: PrimerCheckoutData) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutComplete.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true { + do { + let checkoutJson = try data.toJsonObject() + self.sendEvent(withName: rnCallbackName, body: checkoutJson) + } catch { + self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: true) + } + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) + } + } + } + + // case onBeforeClientSessionUpdate + func primerHeadlessUniversalCheckoutWillUpdateClientSession() { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onBeforeClientSessionUpdate.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnBeforeClientSessionUpdateImplemented == true { + self.sendEvent( + withName: rnCallbackName, + body: nil) + + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)].") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } + + // case onClientSessionUpdate + func primerHeadlessUniversalCheckoutDidUpdateClientSession(_ clientSession: PrimerClientSession) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onClientSessionUpdate.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true { + do { + let json = try clientSession.toJsonObject() + self.sendEvent( + withName: rnCallbackName, + body: ["clientSession": json]) + + } catch { + self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) + } + + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)].") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } + + // case onBeforePaymentCreate + func primerHeadlessUniversalCheckoutWillCreatePaymentWithData(_ data: PrimerCheckoutPaymentMethodData, decisionHandler: @escaping (PrimerPaymentCreationDecision) -> Void) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onBeforePaymentCreate.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnBeforePaymentCreateImplemented == true { + self.primerWillCreatePaymentWithDataDecisionHandler = { errorMessage in + DispatchQueue.main.async { + if let errorMessage = errorMessage { + decisionHandler(.abortPaymentCreation(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) + } else { + decisionHandler(.continuePaymentCreation()) + } + } + } + + do { + print("data: \(data)") + print("try data.toJsonObject(): \(try data.toJsonObject())") + let checkoutPaymentmethodJson = try data.toJsonObject() + self.sendEvent( + withName: rnCallbackName, + body: checkoutPaymentmethodJson) + + } catch { + self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) + } + + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to handle the payment creation.") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + + // RN Dev hasn't implemented this callback,continue the payment flow. + decisionHandler(.continuePaymentCreation()) + } + } + } + +} + +extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutUIDelegate { + + // onPreparationStart + func primerHeadlessUniversalCheckoutUIDidStartPreparation(for paymentMethodType: String) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onPreparationStart.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnPreparationStartImplemented == true { + self.sendEvent( + withName: rnCallbackName, + body: ["paymentMethodType": paymentMethodType]) + + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to get notified when the payment method is getting prepared to be presented.") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } + + func primerHeadlessUniversalCheckoutUIDidShowPaymentMethod(for paymentMethodType: String) { + let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onPaymentMethodShow.stringValue + + DispatchQueue.main.async { + if self.implementedRNCallbacks?.isOnPaymentMethodShowImplemented == true { + self.sendEvent( + withName: rnCallbackName, + body: ["paymentMethodType": paymentMethodType]) + + } else { + let err = RNTNativeError( + errorId: "native-bridge", + errorDescription: "Callback [\(rnCallbackName)] is not implemented.", + recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to get notified when the payment method is getting presented.") + self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + } + } + } +} + + + + + + + + + + + + + + + + +//extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDelegate { +// +// func primerHeadlessUniversalCheckoutPreparationDidStart(for paymentMethodType: String) { +// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPrepareStart.stringValue, body: ["paymentMethodType": paymentMethodType]) +// } +// +// func primerHeadlessUniversalCheckoutTokenizationDidStart(for paymentMethodType: String) { +// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCTokenizeStart.stringValue, body: ["paymentMethodType": paymentMethodType]) +// } +// +// func primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods(_ paymentMethodTypes: [String]) { +// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCAvailablePaymentMethodsLoaded.stringValue, body: ["paymentMethodTypes": paymentMethodTypes]) +// } +// +// func primerHeadlessUniversalCheckoutPaymentMethodDidShow(for paymentMethodType: String) { +// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPaymentMethodShow.stringValue, body: ["paymentMethodType": paymentMethodType]) +// } +// +// func primerHeadlessUniversalCheckoutDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { +// if self.implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true { +// self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in +// DispatchQueue.main.async { +// if let errorMessage = errorMessage { +// decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) +// } else if let newClientToken = newClientToken { +// decisionHandler(.continueWithNewClientToken(newClientToken)) +// } else { +// decisionHandler(.succeed()) +// } +// } +// } +// +// do { +// let data = try JSONEncoder().encode(paymentMethodTokenData) +// let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) +// DispatchQueue.main.async { +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onTokenizeSuccess.stringValue, body: json) +// } +// } catch { +// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) +// } +// } else { +// // RN dev hasn't opted in on listening the tokenization callback. +// // Throw an error if it's the manual flow, ignore if it's the +// // auto flow. +// } +// } +// +// func primerHeadlessUniversalCheckoutDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { +// if self.implementedRNCallbacks?.isOnResumeSuccessImplemented == true { +// self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in +// DispatchQueue.main.async { +// if let errorMessage = errorMessage { +// decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) +// } else if let resumeToken = resumeToken { +// decisionHandler(.continueWithNewClientToken(resumeToken)) +// } else { +// decisionHandler(.succeed()) +// } +// } +// } +// +// DispatchQueue.main.async { +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumeSuccess.stringValue, body: ["resumeToken": resumeToken]) +// } +// } else { +// // RN dev hasn't opted in on listening the tokenization callback. +// // Throw an error if it's the manual flow. +// } +// } +// +// func primerHeadlessUniversalCheckoutDidFail(withError err: Error) { +// if self.implementedRNCallbacks?.isOnErrorImplemented == true { +// // Send the error message to the RN bridge. +// self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) +// +// } else { +// // RN dev hasn't opted in on listening SDK dismiss. +// // Ignore! +// } +// } +// +// func primerHeadlessUniversalCheckoutDidCompleteCheckoutWithData(_ data: PrimerCheckoutData) { +// DispatchQueue.main.async { +// if self.implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true { +// do { +// let checkoutData = try JSONEncoder().encode(data) +// let checkoutJson = try JSONSerialization.jsonObject(with: checkoutData, options: .allowFragments) +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutComplete.stringValue, body: checkoutJson) +// } catch { +// self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: true) +// } +// } else { +// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutComplete] should be implemented."]) +// self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) +// } +// } +// } +// +// func primerHeadlessUniversalCheckoutDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { +// DispatchQueue.main.async { +// if self.implementedRNCallbacks?.isOnResumePendingImplemented == true { +// do { +// let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) +// let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumePending.stringValue, body: checkoutAdditionalInfoJson) +// } catch { +// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) +// self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) +// } +// } else { +// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onResumePending] should be implemented."]) +// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) +// self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) +// } +// } +// } +// +// func primerHeadlessUniversalCheckoutDidReceiveAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { +// DispatchQueue.main.async { +// if self.implementedRNCallbacks?.isOnCheckoutReceivedAdditionalInfoImplemented == true { +// do { +// let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) +// let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutReceivedAdditionalInfo.stringValue, body: checkoutAdditionalInfoJson) +// } catch { +// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) +// self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) +// } +// } else { +// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutReceivedAdditionalInfo] should be implemented."]) +// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) +// self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) +// } +// } +// } +// +// func primerHeadlessUniversalCheckoutClientSessionWillUpdate() { +// if self.implementedRNCallbacks?.isOnBeforeClientSessionUpdateImplemented == true { +// DispatchQueue.main.async { +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforeClientSessionUpdate.stringValue, body: nil) +// } +// } else { +// // React Native app hasn't implemented this callback, ignore. +// } +// } +// +// func primerHeadlessUniversalCheckoutClientSessionDidUpdate(_ clientSession: PrimerClientSession) { +// if self.implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true { +// do { +// let data = try JSONEncoder().encode(clientSession) +// let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) +// DispatchQueue.main.async { +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onClientSessionUpdate.stringValue, body: json) +// } +// } catch { +// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) +// } +// } else { +// // RN Dev hasn't implemented this callback, ignore. +// } +// } +// +// func primerHeadlessUniversalCheckoutWillCreatePaymentWithData(_ data: PrimerCheckoutPaymentMethodData, decisionHandler: @escaping (PrimerPaymentCreationDecision) -> Void) { +// if self.implementedRNCallbacks?.isOnBeforePaymentCreateImplemented == true { +// self.primerWillCreatePaymentWithDataDecisionHandler = { errorMessage in +// DispatchQueue.main.async { +// if let errorMessage = errorMessage { +// decisionHandler(.abortPaymentCreation(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) +// } else { +// decisionHandler(.continuePaymentCreation()) +// } +// } +// } +// +// DispatchQueue.main.async { +// do { +// let checkoutPaymentmethodData = try JSONEncoder().encode(data) +// let checkoutPaymentmethodJson = try JSONSerialization.jsonObject(with: checkoutPaymentmethodData, options: .allowFragments) +// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforePaymentCreate.stringValue, body: checkoutPaymentmethodJson) +// } catch { +// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) +// } +// } +// } else { +// // RN Dev hasn't implemented this callback, send a decision to continue the flow. +// DispatchQueue.main.async { +// decisionHandler(.continuePaymentCreation()) +// } +// } +// } +//} + + diff --git a/ios/Sources/Helpers/Encodable+Extension.swift b/ios/Sources/Helpers/Encodable+Extension.swift new file mode 100644 index 000000000..24826990d --- /dev/null +++ b/ios/Sources/Helpers/Encodable+Extension.swift @@ -0,0 +1,17 @@ +// +// Encodable+Extension.swift +// primer-io-react-native +// +// Created by Evangelos on 7/10/22. +// + +import Foundation + +extension Encodable { + + func toJsonObject() throws -> Any { + let data = try JSONEncoder().encode(self) + let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) + return json + } +} diff --git a/ios/Sources/Helpers/Error+Extensions.swift b/ios/Sources/Helpers/Error+Extensions.swift new file mode 100644 index 000000000..9beb4cd2d --- /dev/null +++ b/ios/Sources/Helpers/Error+Extensions.swift @@ -0,0 +1,23 @@ +// +// Error+Extensions.swift +// primer-io-react-native +// +// Created by Evangelos on 7/10/22. +// + +import Foundation + +internal extension Error { + var rnError: [String: String] { + var json: [String: String] = [ + "errorId": (self as NSError).domain, + "description": localizedDescription + ] + + if let recoverySuggestion = (self as NSError).localizedRecoverySuggestion { + json["recoverySuggestion"] = recoverySuggestion + } + + return json + } +} diff --git a/ios/Sources/Helpers/UIColor+Extensions.swift b/ios/Sources/Helpers/UIColor+Extensions.swift new file mode 100644 index 000000000..c3f4f9dc4 --- /dev/null +++ b/ios/Sources/Helpers/UIColor+Extensions.swift @@ -0,0 +1,32 @@ +// +// UIColor+Extensions.swift +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +import UIKit + +extension UIColor { + + func toHex(alpha: Bool = false) -> String? { + guard let components = cgColor.components, components.count >= 3 else { + return nil + } + + let r = Float(components[0]) + let g = Float(components[1]) + let b = Float(components[2]) + var a = Float(1.0) + + if components.count >= 4 { + a = Float(components[3]) + } + + if alpha { + return String(format: "%02lX%02lX%02lX%02lX", lroundf(r * 255), lroundf(g * 255), lroundf(b * 255), lroundf(a * 255)) + } else { + return String(format: "%02lX%02lX%02lX", lroundf(r * 255), lroundf(g * 255), lroundf(b * 255)) + } + } +} diff --git a/ios/Sources/Helpers/UIImage+Extensions.swift b/ios/Sources/Helpers/UIImage+Extensions.swift new file mode 100644 index 000000000..4c33d3293 --- /dev/null +++ b/ios/Sources/Helpers/UIImage+Extensions.swift @@ -0,0 +1,26 @@ +// +// UIImage+Extensions.swift +// primer-io-react-native +// +// Created by Evangelos on 6/10/22. +// + +import UIKit + +extension UIImage { + + func store(withName name: String) throws -> URL { + guard let imageURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("\(name).png") else { + let err = RNTNativeError(errorId: "error", errorDescription: "Failed to create URL for asset", recoverySuggestion: nil) + throw err + } + + guard let pngData = self.pngData() else { + let err = RNTNativeError(errorId: "error", errorDescription: "Failed to get image's PNG data", recoverySuggestion: nil) + throw err + } + + try pngData.write(to: imageURL) + return imageURL + } +} diff --git a/ios/Sources/RNTPrimer.m b/ios/Sources/RNTPrimer.m new file mode 100644 index 000000000..5c0b60353 --- /dev/null +++ b/ios/Sources/RNTPrimer.m @@ -0,0 +1,80 @@ +// +// RNTPrimer.m +// primer-io-react-native +// +// Created by Evangelos on 15/3/22. +// + +#import +#import + +@interface RCT_EXTERN_MODULE(NativePrimer, RCTEventEmitter) + +// MARK: - PRIMER SDK API + +RCT_EXTERN_METHOD(configure:(NSString *)settingsStr + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(showUniversalCheckoutWithClientToken:(NSString *)clientToken + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(showVaultManagerWithClientToken:(NSString *)clientToken + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(dismiss) + +RCT_EXTERN_METHOD(dispose) + +// MARK: - HELPERS + +RCT_EXTERN_METHOD(setImplementedRNCallbacks:(NSString *)implementedRNCallbacksStr + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: - DECISION HANDLERS + +// MARK: Tokenization Handlers + +RCT_EXTERN_METHOD(handleTokenizationNewClientToken:(NSString *)newClientToken + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleTokenizationSuccess:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleTokenizationFailure:(NSString *)errorMessage + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: Resume Handlers + +RCT_EXTERN_METHOD(handleResumeWithNewClientToken:(NSString *)newClientToken + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleResumeSuccess:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handleResumeFailure:(NSString *)errorMessage + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: Payment Creation Handlers + +RCT_EXTERN_METHOD(handlePaymentCreationAbort:(NSString *)errorMessage + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +RCT_EXTERN_METHOD(handlePaymentCreationContinue:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +// MARK: Error Handler + +RCT_EXTERN_METHOD(showErrorMessage:(NSString *)errorMessage + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + +@end diff --git a/ios/RNTPrimer.swift b/ios/Sources/RNTPrimer.swift similarity index 92% rename from ios/RNTPrimer.swift rename to ios/Sources/RNTPrimer.swift index 212782ab5..c5a953ccd 100644 --- a/ios/RNTPrimer.swift +++ b/ios/Sources/RNTPrimer.swift @@ -125,30 +125,6 @@ class RNTPrimer: RCTEventEmitter { } } - @objc - public func showPaymentMethod(_ paymentMethodTypeStr: String, intent: String, clientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - DispatchQueue.main.async { - do { - guard let primerIntent = PrimerSessionIntent(rawValue: intent) else { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Intent \(intent) is not valid."]) - throw err - } - - PrimerSDK.Primer.shared.showPaymentMethod(paymentMethodTypeStr, withIntent: primerIntent, andClientToken: clientToken) { err in - DispatchQueue.main.async { - if let err = err { - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - } else { - resolver(nil) - } - } - } - } catch { - rejecter(error.rnError["errorId"]!, error.rnError["description"], error) - } - } - } - @objc public func dismiss() { Primer.shared.dismiss() @@ -253,7 +229,7 @@ class RNTPrimer: RCTEventEmitter { // MARK: Helpers private func configure(settingsStr: String? = nil) throws { - try PrimerSDK.Primer.shared.configure(settings: PrimerSettings.initialize(with: settingsStr), delegate: self) + try PrimerSDK.Primer.shared.configure(settings: PrimerSettings(settingsStr: settingsStr), delegate: self) } private func detectImplemetedCallbacks() { @@ -268,6 +244,7 @@ class RNTPrimer: RCTEventEmitter { let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Failed to convert string to data"]) throw err } + self.implementedRNCallbacks = try JSONDecoder().decode(ImplementedRNCallbacks.self, from: implementedRNCallbacksData) resolver(nil) } catch { @@ -320,11 +297,11 @@ extension RNTPrimer: PrimerDelegate { func primerDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { DispatchQueue.main.async { - if self.implementedRNCallbacks?.isOnResumePendingImplemented == true { + if self.implementedRNCallbacks?.isOnCheckoutResumeImplemented == true { do { let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) - self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumePending.stringValue, body: checkoutAdditionalInfoJson) + self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutPending.stringValue, body: checkoutAdditionalInfoJson) } catch { let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) @@ -394,7 +371,7 @@ extension RNTPrimer: PrimerDelegate { } func primerDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { - if self.implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true { + if self.implementedRNCallbacks?.isOnTokenizationSuccessImplemented == true { self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in DispatchQueue.main.async { if let errorMessage = errorMessage { @@ -424,7 +401,7 @@ extension RNTPrimer: PrimerDelegate { } func primerDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { - if self.implementedRNCallbacks?.isOnResumeSuccessImplemented == true { + if self.implementedRNCallbacks?.isOnCheckoutResumeImplemented == true { self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in DispatchQueue.main.async { if let errorMessage = errorMessage { diff --git a/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts new file mode 100644 index 000000000..8caaffe59 --- /dev/null +++ b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts @@ -0,0 +1,44 @@ +import type { PrimerAsset } from '@primer-io/react-native'; +import { NativeModules } from 'react-native'; + +const { RNTPrimerHeadlessUniversalCheckoutAssetsManager } = NativeModules; + +class PrimerHeadlessUniversalCheckoutAssetsManager { + + /////////////////////////////////////////// + // Init + /////////////////////////////////////////// + constructor() {} + + /////////////////////////////////////////// + // Native API + /////////////////////////////////////////// + + async getPaymentMethodAsset(paymentMethodType: string): Promise { + return new Promise(async (resolve, reject) => { + try { + const data = await RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset(paymentMethodType); + const paymentMethodAsset: PrimerAsset = data.paymentMethodAsset; + resolve(paymentMethodAsset); + } catch (err) { + console.error(err); + reject(err); + } + }); + } + + async getPaymentMethodAssets(): Promise { + return new Promise(async (resolve, reject) => { + try { + const data = await RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(); + const paymentMethodAssets: PrimerAsset[] = data.paymentMethodAssets; + resolve(paymentMethodAssets); + } catch (err) { + console.error(err); + reject(err); + } + }); + } +} + +export default PrimerHeadlessUniversalCheckoutAssetsManager; \ No newline at end of file diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts new file mode 100644 index 000000000..72c5dd54a --- /dev/null +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts @@ -0,0 +1,31 @@ +import { NativeModules } from 'react-native'; +import type { PrimerSessionIntent } from 'src/models/PrimerSessionIntent'; + +const { RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager } = NativeModules; + +class PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager { + + /////////////////////////////////////////// + // Init + /////////////////////////////////////////// + constructor() {} + + /////////////////////////////////////////// + // Native API + /////////////////////////////////////////// + + async initialize(paymentMethodType: string): Promise { + try { + await RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.initialize(paymentMethodType); + } catch (err) { + console.error(err); + throw err; + } + } + + async showPaymentMethod(intent: PrimerSessionIntent): Promise { + return RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.showPaymentMethod(intent); + } +} + +export default PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager; \ No newline at end of file diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts new file mode 100644 index 000000000..b4d7b22d2 --- /dev/null +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -0,0 +1,153 @@ +import { NativeEventEmitter, NativeModules, EmitterSubscription } from 'react-native'; +import type { PrimerRawData } from "../../.."; +import { PrimerError } from '../../../models/PrimerError'; +import type { PrimerInputElementType } from '../../../models/PrimerInputElementType'; + +const { RNTPrimerHeadlessUniversalCheckoutRawDataManager } = NativeModules; +const eventEmitter = new NativeEventEmitter(RNTPrimerHeadlessUniversalCheckoutRawDataManager); + +type EventType = + | 'onMetadataChange' + | 'onValidation'; + +const eventTypes: EventType[] = [ + 'onMetadataChange', + 'onValidation' +]; + +export interface RawDataManagerProps { + paymentMethodType: string; + onMetadataChange?: (metadata: any) => void; + onValidation?: (isValid: boolean, errors: PrimerError[] | undefined) => void; +} + +class PrimerHeadlessUniversalCheckoutRawDataManager { + + options?: RawDataManagerProps + + /////////////////////////////////////////// + // Init + /////////////////////////////////////////// + constructor() {} + + /////////////////////////////////////////// + // API + /////////////////////////////////////////// + + async initialize(options: RawDataManagerProps): Promise { + return new Promise(async (resolve, reject) => { + try { + this.options = options; + await this.configureListeners(); + await RNTPrimerHeadlessUniversalCheckoutRawDataManager.initialize(options.paymentMethodType); + resolve(); + + } catch (err) { + reject(err); + } + }); + } + + async configureListeners(): Promise { + return new Promise(async (resolve, reject) => { + if (this.options?.onMetadataChange) { + this.addListener("onMetadataChange", (data) => { + if (this.options?.onMetadataChange) { + this.options.onMetadataChange(data); + } + }); + } + + if (this.options?.onValidation) { + this.addListener("onValidation", (data) => { + if (this.options?.onValidation) { + this.options.onValidation(data.isValid, data.errors); + } + }); + } + + resolve(); + }); + } + + async getRequiredInputElementTypes(): Promise { + return new Promise(async (resolve, reject) => { + if (this.options?.paymentMethodType) { + try { + const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(this.options.paymentMethodType); + const inputElementTypes: PrimerInputElementType[] = data.inputElementTypes; + resolve(inputElementTypes); + } catch (err) { + reject(err); + } + } else { + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + } + + setRawData(rawData: PrimerRawData): Promise { + return new Promise(async (resolve, reject) => { + if (this.options?.paymentMethodType) { + try { + await RNTPrimerHeadlessUniversalCheckoutRawDataManager.setRawData(JSON.stringify(rawData)); + resolve(); + } catch (err) { + reject(err); + } + } else { + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + } + + submit(): Promise { + return new Promise(async (resolve, reject) => { + if (this.options?.paymentMethodType) { + try { + await RNTPrimerHeadlessUniversalCheckoutRawDataManager.submit(); + resolve(); + } catch (err) { + reject(err); + } + } else { + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + } + + dispose(): Promise { + return new Promise(async (resolve, reject) => { + if (this.options?.paymentMethodType) { + try { + await RNTPrimerHeadlessUniversalCheckoutRawDataManager.dispose(); + resolve(); + } catch (err) { + reject(err); + } + } else { + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + } + + + + /////////////////////////////////////////// + // HELPERS + /////////////////////////////////////////// + + async addListener(eventType: EventType, listener: (...args: any[]) => any): Promise { + return eventEmitter.addListener(eventType, listener); + } + + removeListener(eventType: EventType, listener: (...args: any[]) => any): void { + return eventEmitter.removeListener(eventType, listener); + } +} + +export default PrimerHeadlessUniversalCheckoutRawDataManager; diff --git a/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts new file mode 100644 index 000000000..1847cf004 --- /dev/null +++ b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts @@ -0,0 +1,332 @@ +import RNPrimerHeadlessUniversalCheckout from './RNPrimerHeadlessUniversalCheckout'; +import type { PrimerCheckoutData } from '../models/PrimerCheckoutData'; +import type { PrimerCheckoutAdditionalInfo } from '../models/PrimerCheckoutAdditionalInfo'; +import type { PrimerCheckoutPaymentMethodData } from '../models/PrimerCheckoutPaymentMethodData'; +import type { PrimerSettings } from '../models/PrimerSettings'; +import type { PrimerClientSession } from '../models/PrimerClientSession'; +import { PrimerError } from '../models/PrimerError'; +import type { PrimerPaymentMethodTokenData } from '../models/PrimerPaymentMethodTokenData'; +import type { PrimerImplementedRNCallbacks } from 'src/models/PrimerImplementedRNCallbacks'; +import type { IPrimerHeadlessUniversalCheckoutPaymentMethod } from '../models/PrimerHeadlessUniversalCheckoutPaymentMethod'; +import type { PrimerHeadlessUniversalCheckoutResumeHandler, PrimerPaymentCreationHandler } from 'src/models/PrimerHandlers'; + +/////////////////////////////////////////// +// DECISION HANDLERS +/////////////////////////////////////////// + +// Tokenization Handler + +const tokenizationHandler: PrimerHeadlessUniversalCheckoutResumeHandler = { + continueWithNewClientToken: async (newClientToken: string) => { + try { + RNPrimerHeadlessUniversalCheckout.handleTokenizationNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }, + + complete: () => { + RNPrimerHeadlessUniversalCheckout.handleCompleteFlow(); + } +} + +// Resume Handler + +const resumeHandler: PrimerHeadlessUniversalCheckoutResumeHandler = { + continueWithNewClientToken: async (newClientToken: string) => { + try { + RNPrimerHeadlessUniversalCheckout.handleResumeWithNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }, + + complete: () => { + RNPrimerHeadlessUniversalCheckout.handleCompleteFlow(); + } +} + +// Payment Creation Handler + +const paymentCreationHandler: PrimerPaymentCreationHandler = { + abortPaymentCreation: async (errorMessage: string) => { + try { + RNPrimerHeadlessUniversalCheckout.handlePaymentCreationAbort(errorMessage); + } catch (err) { + console.error(err); + } + }, + + continuePaymentCreation: async () => { + try { + RNPrimerHeadlessUniversalCheckout.handlePaymentCreationContinue(); + } catch (err) { + console.error(err); + } + } +} + +export let primerSettings: PrimerSettings | undefined = undefined; + +async function configureListeners(): Promise { + return new Promise(async (resolve, reject) => { + try { + RNPrimerHeadlessUniversalCheckout.removeAllListeners(); + + let implementedRNCallbacks: PrimerImplementedRNCallbacks = { + onAvailablePaymentMethodsLoad: (primerSettings?.headlessUniversalCheckoutCallbacks?.onAvailablePaymentMethodsLoad !== undefined) || false, + onTokenizationStart: (primerSettings?.headlessUniversalCheckoutCallbacks?.onTokenizationStart !== undefined) || false, + onTokenizationSuccess: (primerSettings?.headlessUniversalCheckoutCallbacks?.onTokenizationSuccess !== undefined) || false, + + onCheckoutResume: (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutResume !== undefined) || false, + onCheckoutPending: (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutPending !== undefined) || false, + onCheckoutAdditionalInfo: (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutAdditionalInfo !== undefined) || false, + + onError: (primerSettings?.headlessUniversalCheckoutCallbacks?.onError !== undefined) || false, + onCheckoutComplete: (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutComplete !== undefined) || false, + onBeforeClientSessionUpdate: (primerSettings?.headlessUniversalCheckoutCallbacks?.onBeforeClientSessionUpdate !== undefined) || false, + + onClientSessionUpdate: (primerSettings?.headlessUniversalCheckoutCallbacks?.onClientSessionUpdate !== undefined) || false, + onBeforePaymentCreate: (primerSettings?.headlessUniversalCheckoutCallbacks?.onBeforePaymentCreate !== undefined) || false, + onPreparationStart: (primerSettings?.headlessUniversalCheckoutCallbacks?.onPreparationStart !== undefined) || false, + + onPaymentMethodShow: (primerSettings?.headlessUniversalCheckoutCallbacks?.onPaymentMethodShow !== undefined) || false, + onDismiss: false + }; + + await RNPrimerHeadlessUniversalCheckout.setImplementedRNCallbacks(implementedRNCallbacks); + + if (implementedRNCallbacks.onAvailablePaymentMethodsLoad) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onAvailablePaymentMethodsLoad', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onAvailablePaymentMethodsLoad) { + const availablePaymentMethods: IPrimerHeadlessUniversalCheckoutPaymentMethod[] = data.availablePaymentMethods || []; + primerSettings.headlessUniversalCheckoutCallbacks.onAvailablePaymentMethodsLoad(availablePaymentMethods); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onPreparationStart) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onPreparationStart', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onPreparationStart) { + primerSettings.headlessUniversalCheckoutCallbacks.onPreparationStart(data.paymentMethodType); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onBeforeClientSessionUpdate) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onBeforeClientSessionUpdate', + () => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onBeforeClientSessionUpdate) { + primerSettings.headlessUniversalCheckoutCallbacks.onBeforeClientSessionUpdate(); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onClientSessionUpdate) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onClientSessionUpdate', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onClientSessionUpdate) { + const clientSession: PrimerClientSession = data.clientSession; + primerSettings.headlessUniversalCheckoutCallbacks.onClientSessionUpdate(clientSession); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onBeforePaymentCreate) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onBeforePaymentCreate', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onBeforePaymentCreate) { + const checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData = data; + primerSettings.headlessUniversalCheckoutCallbacks.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onTokenizationStart) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onTokenizationStart', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onTokenizationStart) { + primerSettings.headlessUniversalCheckoutCallbacks.onTokenizationStart(data.paymentMethodType); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onPaymentMethodShow) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onPaymentMethodShow', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onPaymentMethodShow) { + primerSettings.headlessUniversalCheckoutCallbacks.onPaymentMethodShow(data.paymentMethodType); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onTokenizationSuccess) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onTokenizationSuccess', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onTokenizationSuccess) { + const paymentMethodTokenData: PrimerPaymentMethodTokenData = data.paymentMethodTokenData; + primerSettings.headlessUniversalCheckoutCallbacks.onTokenizationSuccess(paymentMethodTokenData, tokenizationHandler); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onCheckoutResume) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onCheckoutResume', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutResume) { + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutResume(data.resumeToken, resumeHandler); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onCheckoutPending) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onCheckoutPending', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutPending) { + const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutPending(checkoutAdditionalInfo); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onCheckoutAdditionalInfo) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onCheckoutAdditionalInfo', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutAdditionalInfo) { + const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutAdditionalInfo(checkoutAdditionalInfo); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onCheckoutComplete) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onCheckoutComplete', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onCheckoutComplete) { + const checkoutData: PrimerCheckoutData = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutComplete(checkoutData); + } else { + // Ignore! + } + } + ); + } + + if (implementedRNCallbacks.onError) { + RNPrimerHeadlessUniversalCheckout.addListener( + 'onError', + (data) => { + if (primerSettings?.headlessUniversalCheckoutCallbacks?.onError) { + if (data && data.error && data.error.errorId && primerSettings) { + const errorId: string = data.error.errorId; + const description: string | undefined = data.error.description; + const recoverySuggestion: string | undefined = data.error.recoverySuggestion; + const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); + + const checkoutData: PrimerCheckoutData = data.checkoutData; + primerSettings.headlessUniversalCheckoutCallbacks.onError(primerError, checkoutData); + } + } else { + // Ignore! + } + } + ); + } + + resolve(); + + } catch (err) { + reject(err); + } + }); +} + +class PrimerHeadlessUniversalCheckoutClass { + + /////////////////////////////////////////// + // Init + /////////////////////////////////////////// + constructor() { + + } + + /////////////////////////////////////////// + // API + /////////////////////////////////////////// + startWithClientToken( + clientToken: string, + settings: PrimerSettings + ): Promise { + primerSettings = settings; + + return new Promise(async (resolve, reject) => { + try { + await configureListeners(); + const res = await RNPrimerHeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + + if (res["availablePaymentMethods"]) { + const availablePaymentMethods: IPrimerHeadlessUniversalCheckoutPaymentMethod[] = res["availablePaymentMethods"]; + resolve(availablePaymentMethods); + } else { + const err = new PrimerError("primer-rn-sdk", "Failed to find availablePaymentMethods", "Create another client session"); + reject(err); + } + } catch (err) { + reject(err); + } + }); + } + + disposePrimerHeadlessUniversalCheckout(): Promise { + return RNPrimerHeadlessUniversalCheckout.disposePrimerHeadlessUniversalCheckout(); + } +} + +export const PrimerHeadlessUniversalCheckout = new PrimerHeadlessUniversalCheckoutClass(); diff --git a/src/headless_checkout/RNPrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts similarity index 52% rename from src/headless_checkout/RNPrimerHeadlessUniversalCheckout.ts rename to src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts index cceb0103a..1d7e5b905 100644 --- a/src/headless_checkout/RNPrimerHeadlessUniversalCheckout.ts +++ b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts @@ -1,38 +1,47 @@ import { NativeEventEmitter, NativeModules } from 'react-native'; +import type { PrimerSettings } from '../models/PrimerSettings'; const { PrimerHeadlessUniversalCheckout } = NativeModules; const eventEmitter = new NativeEventEmitter(PrimerHeadlessUniversalCheckout); type EventType = - | 'onHUCTokenizeStart' - | 'onHUCPrepareStart' - | 'onHUCAvailablePaymentMethodsLoaded' - | 'onHUCPaymentMethodShow' - | 'onTokenizeSuccess' - | 'onResumeSuccess' - | 'onResumePending' - | 'onCheckoutReceivedAdditionalInfo' - | 'onBeforePaymentCreate' + | 'onAvailablePaymentMethodsLoad' + | 'onTokenizationStart' + | 'onTokenizationSuccess' + + | 'onCheckoutResume' + | 'onCheckoutPending' + | 'onCheckoutAdditionalInfo' + + | 'onError' + | 'onCheckoutComplete' | 'onBeforeClientSessionUpdate' + | 'onClientSessionUpdate' - | 'onCheckoutComplete' - | 'onError'; + | 'onBeforePaymentCreate' + | 'onPreparationStart' + + | 'onPaymentMethodShow'; const eventTypes: EventType[] = [ - 'onHUCTokenizeStart', - 'onHUCPrepareStart', - 'onHUCAvailablePaymentMethodsLoaded', - 'onHUCPaymentMethodShow', - 'onTokenizeSuccess', - 'onResumeSuccess', - 'onResumePending', - 'onCheckoutReceivedAdditionalInfo', - 'onBeforePaymentCreate', + 'onAvailablePaymentMethodsLoad', + 'onTokenizationStart', + 'onTokenizationSuccess', + + 'onCheckoutResume', + 'onCheckoutPending', + 'onCheckoutAdditionalInfo', + + 'onError', + 'onCheckoutComplete', 'onBeforeClientSessionUpdate', + 'onClientSessionUpdate', - 'onCheckoutComplete', - 'onError' + 'onBeforePaymentCreate', + 'onPreparationStart', + + 'onPaymentMethodShow' ]; const RNPrimerHeadlessUniversalCheckout = { @@ -58,75 +67,9 @@ const RNPrimerHeadlessUniversalCheckout = { /////////////////////////////////////////// // Native API /////////////////////////////////////////// - getAssetForPaymentMethodType: ( - paymentMethodType: string, - assetType: 'logo' | 'icon' - ): Promise => { - return new Promise((resolve, reject) => { - try { - PrimerHeadlessUniversalCheckout.getAssetForPaymentMethodType( - paymentMethodType, - assetType, - (err: Error) => { - reject(err); - }, - (url: string) => { - resolve(url); - } - ); - } catch (e) { - reject(e); - } - }); - }, - - getAssetForCardNetwork: ( - cardNetwork: string, - assetType: 'logo' | 'icon' - ): Promise => { - return new Promise((resolve, reject) => { - try { - PrimerHeadlessUniversalCheckout.getAssetForCardNetwork( - cardNetwork, - assetType, - (err: Error) => { - reject(err); - }, - (url: string) => { - resolve(url); - } - ); - } catch (e) { - reject(e); - } - }); - }, - startWithClientToken(clientToken: string, settings: any): Promise { - return new Promise((resolve, reject) => { - PrimerHeadlessUniversalCheckout.startWithClientToken( - clientToken, - JSON.stringify(settings), - (err: Error) => { - console.error(err); - reject(err); - }, - (paymentMethodTypes: string[]) => { - resolve({ paymentMethodTypes }); - } - ); - }); - }, - - showPaymentMethod: (paymentMethodType: string): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckout.showPaymentMethod(paymentMethodType); - resolve(); - } catch (err) { - reject(err); - } - }); + startWithClientToken(clientToken: string, settings: PrimerSettings): Promise { + return PrimerHeadlessUniversalCheckout.startWithClientToken(clientToken, JSON.stringify(settings)); }, /////////////////////////////////////////// @@ -146,28 +89,6 @@ const RNPrimerHeadlessUniversalCheckout = { }); }, - handleTokenizationSuccess: (): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckout.handleTokenizationSuccess(); - resolve(); - } catch (err) { - reject(err); - } - }); - }, - - handleTokenizationFailure: (errorMessage: string | null): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckout.handleTokenizationFailure(errorMessage || ""); - resolve(); - } catch (err) { - reject(err); - } - }); - }, - // Resume Handlers handleResumeWithNewClientToken: (newClientToken: string): Promise => { @@ -181,21 +102,10 @@ const RNPrimerHeadlessUniversalCheckout = { }); }, - handleResumeSuccess: (): Promise => { + handleCompleteFlow: (): Promise => { return new Promise(async (resolve, reject) => { try { - await PrimerHeadlessUniversalCheckout.handleResumeSuccess(); - resolve(); - } catch (err) { - reject(err); - } - }); - }, - - handleResumeFailure: (errorMessage: string | null): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckout.handleTokenizationFailure(errorMessage || ""); + await PrimerHeadlessUniversalCheckout.handleCompleteFlow(); resolve(); } catch (err) { reject(err); @@ -240,7 +150,6 @@ const RNPrimerHeadlessUniversalCheckout = { }); }, - disposePrimerHeadlessUniversalCheckout: (): Promise => { return new Promise(async (resolve, reject) => { try { diff --git a/src/HeadlessUniversalCheckout/types.ts b/src/HeadlessUniversalCheckout/types.ts new file mode 100644 index 000000000..65d3867ae --- /dev/null +++ b/src/HeadlessUniversalCheckout/types.ts @@ -0,0 +1,32 @@ +// import type { PrimerCheckoutData } from '../models/PrimerCheckoutData'; +// import type { PrimerCheckoutPaymentMethodData } from '../models/PrimerCheckoutPaymentMethodData'; +// import type { +// PrimerTokenizationHandler, +// PrimerResumeHandler, +// PrimerPaymentCreationHandler, +// PrimerErrorHandler +// } from '../models/PrimerInterfaces'; +// import type { PrimerClientSession } from '../models/PrimerClientSession'; +// import type { PrimerPaymentMethodTokenData } from '../models/PrimerPaymentMethodTokenData'; +// import type { PrimerError } from '../models/PrimerError'; + +// export interface PrimerHeadlessUniversalCheckoutStartResponse { +// paymentMethodTypes: string[]; +// } + +// export interface PrimerHeadlessUniversalCheckoutCallbacks { +// // Common +// onBeforeClientSessionUpdate?: () => void; +// onClientSessionUpdate?: (clientSession: PrimerClientSession) => void; +// onBeforePaymentCreate?: (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => void; +// onCheckoutComplete?: (checkoutData: PrimerCheckoutData) => void; +// onTokenizeSuccess?: (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => void; +// onResumeSuccess?: (resumeToken: string, handler: PrimerResumeHandler) => void; +// onError?: (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => void; + +// // Only on HUC +// onPrepareStart?: (paymentMethodType: string) => void; +// onTokenizeStart?: (paymentMethodType: string) => void; +// onPaymentMethodShow?: (paymentMethodType: string) => void; +// onAvailablePaymentMethodTypesLoad?: (paymentMethodTypes: string[]) => void; +// } diff --git a/src/Primer.ts b/src/Primer.ts index c0886ab86..26f44e1cd 100644 --- a/src/Primer.ts +++ b/src/Primer.ts @@ -1,13 +1,14 @@ import type { PrimerCheckoutData } from './models/PrimerCheckoutData'; -import type { PrimerSessionIntent } from './models/PrimerSessionIntent'; import type { PrimerSettings } from './models/PrimerSettings'; import RNPrimer from './RNPrimer'; import type { PrimerCheckoutPaymentMethodData } from './models/PrimerCheckoutPaymentMethodData'; import type { PrimerClientSession } from './models/PrimerClientSession'; import type { PrimerPaymentMethodTokenData } from './models/PrimerPaymentMethodTokenData'; import { PrimerError } from './models/PrimerError'; -import type { IPrimer, PrimerErrorHandler, PrimerPaymentCreationHandler, PrimerResumeHandler, PrimerTokenizationHandler } from './models/PrimerInterfaces'; import type { PrimerCheckoutAdditionalInfo } from './models/PrimerCheckoutAdditionalInfo'; +import type { PrimerErrorHandler, PrimerPaymentCreationHandler, PrimerResumeHandler, PrimerTokenizationHandler } from './models/PrimerHandlers'; +import type { IPrimer } from './models/PrimerInterfaces'; +import type { PrimerImplementedRNCallbacks } from './models/PrimerImplementedRNCallbacks'; /////////////////////////////////////////// // DECISION HANDLERS @@ -108,80 +109,88 @@ async function configureListeners(): Promise { try { RNPrimer.removeAllListeners(); - let implementedRNCallbacks: any = { - onCheckoutComplete: (primerSettings?.onCheckoutComplete !== undefined), - onBeforePaymentCreate: (primerSettings?.onBeforePaymentCreate !== undefined), - onBeforeClientSessionUpdate: (primerSettings?.onBeforeClientSessionUpdate !== undefined), - onClientSessionUpdate: (primerSettings?.onClientSessionUpdate !== undefined), - onTokenizeSuccess: (primerSettings?.onTokenizeSuccess !== undefined), - onResumeSuccess: (primerSettings?.onResumeSuccess !== undefined), - onResumePending: (primerSettings?.onResumePending !== undefined), - onCheckoutReceivedAdditionalInfo: (primerSettings?.onCheckoutReceivedAdditionalInfo !== undefined), - onDismiss: (primerSettings?.onDismiss !== undefined), - onError: (primerSettings?.onError !== undefined), + let implementedRNCallbacks: PrimerImplementedRNCallbacks = { + onAvailablePaymentMethodsLoad: false, + onTokenizationStart: false, + onTokenizationSuccess: (primerSettings?.primerCallbacks?.onTokenizeSuccess !== undefined) || false, + + onCheckoutResume: (primerSettings?.primerCallbacks?.onResumeSuccess !== undefined) || false, + onCheckoutPending: (primerSettings?.primerCallbacks?.onResumePending !== undefined) || false, + onCheckoutAdditionalInfo: (primerSettings?.primerCallbacks?.onCheckoutReceivedAdditionalInfo !== undefined) || false, + + onError: (primerSettings?.primerCallbacks?.onError !== undefined) || false, + onCheckoutComplete: (primerSettings?.primerCallbacks?.onCheckoutComplete !== undefined) || false, + onBeforeClientSessionUpdate: (primerSettings?.primerCallbacks?.onBeforeClientSessionUpdate !== undefined) || false, + + onClientSessionUpdate: (primerSettings?.primerCallbacks?.onClientSessionUpdate !== undefined) || false, + onBeforePaymentCreate: (primerSettings?.primerCallbacks?.onBeforePaymentCreate !== undefined) || false, + onPreparationStart: false, + + onPaymentMethodShow: false, + onDismiss: (primerSettings?.primerCallbacks?.onDismiss !== undefined) || false }; await RNPrimer.setImplementedRNCallbacks(implementedRNCallbacks); if (implementedRNCallbacks.onCheckoutComplete) { RNPrimer.addListener('onCheckoutComplete', data => { - if (primerSettings && primerSettings.onCheckoutComplete) { + if (primerSettings && primerSettings.primerCallbacks?.onCheckoutComplete) { const checkoutData: PrimerCheckoutData = data; - primerSettings.onCheckoutComplete(checkoutData); + primerSettings.primerCallbacks.onCheckoutComplete(checkoutData); } }); } if (implementedRNCallbacks.onBeforePaymentCreate) { RNPrimer.addListener('onBeforePaymentCreate', data => { - if (primerSettings && primerSettings.onBeforePaymentCreate) { + if (primerSettings && primerSettings.primerCallbacks?.onBeforePaymentCreate) { const checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData = data; - primerSettings.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); + primerSettings.primerCallbacks.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); } }); } if (implementedRNCallbacks.onBeforeClientSessionUpdate) { RNPrimer.addListener('onBeforeClientSessionUpdate', _ => { - if (primerSettings && primerSettings.onBeforeClientSessionUpdate) { - primerSettings.onBeforeClientSessionUpdate(); + if (primerSettings && primerSettings.primerCallbacks?.onBeforeClientSessionUpdate) { + primerSettings.primerCallbacks.onBeforeClientSessionUpdate(); } }); } if (implementedRNCallbacks.onClientSessionUpdate) { RNPrimer.addListener('onClientSessionUpdate', data => { - if (primerSettings && primerSettings.onClientSessionUpdate) { + if (primerSettings && primerSettings.primerCallbacks?.onClientSessionUpdate) { const clientSession: PrimerClientSession = data; - primerSettings.onClientSessionUpdate(clientSession); + primerSettings.primerCallbacks.onClientSessionUpdate(clientSession); } }); } - if (implementedRNCallbacks.onTokenizeSuccess) { + if (implementedRNCallbacks.onTokenizationSuccess) { RNPrimer.addListener('onTokenizeSuccess', data => { - if (primerSettings && primerSettings.onTokenizeSuccess) { + if (primerSettings && primerSettings.primerCallbacks?.onTokenizeSuccess) { const paymentMethodTokenData: PrimerPaymentMethodTokenData = data; - primerSettings.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); + primerSettings.primerCallbacks.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); } }); } - if (implementedRNCallbacks.onResumeSuccess) { + if (implementedRNCallbacks.onCheckoutResume) { RNPrimer.addListener('onResumeSuccess', data => { - if (primerSettings && primerSettings.onResumeSuccess && data.resumeToken) { - primerSettings.onResumeSuccess(data.resumeToken, resumeHandler); + if (primerSettings && primerSettings.primerCallbacks?.onResumeSuccess && data.resumeToken) { + primerSettings.primerCallbacks.onResumeSuccess(data.resumeToken, resumeHandler); } }); } - if (implementedRNCallbacks.onResumePending) { + if (implementedRNCallbacks.onCheckoutPending) { RNPrimer.addListener( 'onResumePending', (additionalInfo) => { - if (primerSettings && primerSettings.onResumePending) { + if (primerSettings && primerSettings.primerCallbacks?.onResumePending) { const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.onResumePending(checkoutAdditionalInfo); + primerSettings.primerCallbacks.onResumePending(checkoutAdditionalInfo); } else { // Ignore! } @@ -189,13 +198,13 @@ async function configureListeners(): Promise { ); } - if (implementedRNCallbacks.onCheckoutReceivedAdditionalInfo) { + if (implementedRNCallbacks.onCheckoutAdditionalInfo) { RNPrimer.addListener( 'onCheckoutReceivedAdditionalInfo', (additionalInfo) => { - if (primerSettings && primerSettings.onCheckoutReceivedAdditionalInfo) { + if (primerSettings && primerSettings.primerCallbacks?.onCheckoutReceivedAdditionalInfo) { const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); + primerSettings.primerCallbacks.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); } else { // Ignore! } @@ -205,25 +214,20 @@ async function configureListeners(): Promise { if (implementedRNCallbacks.onDismiss) { RNPrimer.addListener('onDismiss', _ => { - if (primerSettings && primerSettings.onDismiss) { - primerSettings.onDismiss(); + if (primerSettings && primerSettings.primerCallbacks?.onDismiss) { + primerSettings.primerCallbacks.onDismiss(); } }); } if (implementedRNCallbacks.onError) { RNPrimer.addListener('onError', data => { - if (data && data.error && data.error.errorId && primerSettings && primerSettings.onError) { + if (data && data.error && data.error.errorId && primerSettings && primerSettings.primerCallbacks?.onError) { const errorId: string = data.error.errorId; const description: string | undefined = data.error.description; const recoverySuggestion: string | undefined = data.error.recoverySuggestion; const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); - - if (data.checkoutData) { - primerSettings.onError(primerError, data.checkoutData, errorHandler); - } else { - primerSettings.onError(primerError, null, errorHandler); - } + primerSettings.primerCallbacks.onError(primerError, data.checkoutData || null, errorHandler); } }); } @@ -278,22 +282,6 @@ export const Primer: IPrimer = { }); }, - async showPaymentMethod( - paymentMethodType: string, - intent: PrimerSessionIntent, - clientToken: string - ): Promise { - return new Promise(async (resolve, reject) => { - try { - await configureListeners(); - await RNPrimer.showPaymentMethod(paymentMethodType, intent, clientToken); - resolve(); - } catch (err) { - reject(err); - } - }); - }, - dispose(): void { RNPrimer.removeAllListeners(); RNPrimer.dismiss(); diff --git a/src/RNPrimer.ts b/src/RNPrimer.ts index 48fc13b21..e63191c38 100644 --- a/src/RNPrimer.ts +++ b/src/RNPrimer.ts @@ -95,21 +95,6 @@ const RNPrimer = { }); }, - showPaymentMethod: ( - paymentMethodType: string, - intent: PrimerSessionIntent, - clientToken: string - ): Promise => { - return new Promise(async (resolve, reject) => { - try { - await NativePrimer.showPaymentMethod(paymentMethodType, intent, clientToken); - resolve(); - } catch (err) { - reject(err); - } - }); - }, - dismiss: (): Promise => { return new Promise(async (resolve, reject) => { try { diff --git a/src/headless_checkout/PrimerHeadlessUniversalCheckout.ts b/src/headless_checkout/PrimerHeadlessUniversalCheckout.ts deleted file mode 100644 index d7a3c1b23..000000000 --- a/src/headless_checkout/PrimerHeadlessUniversalCheckout.ts +++ /dev/null @@ -1,358 +0,0 @@ -import RNPrimerHeadlessUniversalCheckout from './RNPrimerHeadlessUniversalCheckout'; -import type { PrimerCheckoutData } from '../models/PrimerCheckoutData'; -import type { PrimerCheckoutAdditionalInfo } from '../models/PrimerCheckoutAdditionalInfo'; -import type { PrimerCheckoutPaymentMethodData } from '../models/PrimerCheckoutPaymentMethodData'; -import type { PrimerTokenizationHandler, PrimerResumeHandler, PrimerPaymentCreationHandler } from '../models/PrimerInterfaces'; -import type { PrimerHeadlessUniversalCheckoutStartResponse } from './types'; -import type { PrimerSettings } from '../models/PrimerSettings'; -import type { PrimerClientSession } from '../models/PrimerClientSession'; -import { PrimerError } from '../models/PrimerError'; -import type { PrimerPaymentMethodTokenData } from '../models/PrimerPaymentMethodTokenData'; - -/////////////////////////////////////////// -// DECISION HANDLERS -/////////////////////////////////////////// - -// Tokenization Handler - -const tokenizationHandler: PrimerTokenizationHandler = { - handleFailure: async (errorMessage: string) => { - try { - RNPrimerHeadlessUniversalCheckout.handleTokenizationFailure(errorMessage); - } catch (err) { - console.error(err); - } - }, - - handleSuccess: async () => { - try { - RNPrimerHeadlessUniversalCheckout.handleTokenizationSuccess(); - } catch (err) { - console.error(err); - } - }, - - continueWithNewClientToken: async (newClientToken: string) => { - try { - RNPrimerHeadlessUniversalCheckout.handleTokenizationNewClientToken(newClientToken); - } catch (err) { - console.error(err); - } - } -} - -// Resume Handler - -const resumeHandler: PrimerResumeHandler = { - handleFailure: async (errorMessage: string) => { - try { - RNPrimerHeadlessUniversalCheckout.handleResumeFailure(errorMessage); - } catch (err) { - console.error(err); - } - }, - - handleSuccess: async () => { - try { - RNPrimerHeadlessUniversalCheckout.handleResumeSuccess(); - } catch (err) { - console.error(err); - } - }, - - continueWithNewClientToken: async (newClientToken: string) => { - try { - RNPrimerHeadlessUniversalCheckout.handleResumeWithNewClientToken(newClientToken); - } catch (err) { - console.error(err); - } - } -} - -// Payment Creation Handler - -const paymentCreationHandler: PrimerPaymentCreationHandler = { - abortPaymentCreation: async (errorMessage: string) => { - try { - RNPrimerHeadlessUniversalCheckout.handlePaymentCreationAbort(errorMessage); - } catch (err) { - console.error(err); - } - }, - - continuePaymentCreation: async () => { - try { - RNPrimerHeadlessUniversalCheckout.handlePaymentCreationContinue(); - } catch (err) { - console.error(err); - } - } -} - -export let primerSettings: PrimerSettings | undefined = undefined; - -async function configureListeners(): Promise { - return new Promise(async (resolve, reject) => { - try { - RNPrimerHeadlessUniversalCheckout.removeAllListeners(); - - let implementedRNCallbacks: any = { - onCheckoutComplete: (primerSettings?.onCheckoutComplete !== undefined), - onBeforePaymentCreate: (primerSettings?.onBeforePaymentCreate !== undefined), - onBeforeClientSessionUpdate: (primerSettings?.onBeforeClientSessionUpdate !== undefined), - onClientSessionUpdate: (primerSettings?.onClientSessionUpdate !== undefined), - onTokenizeSuccess: (primerSettings?.onTokenizeSuccess !== undefined), - onResumeSuccess: (primerSettings?.onResumeSuccess !== undefined), - onResumePending: (primerSettings?.onResumePending !== undefined), - onCheckoutReceivedAdditionalInfo: (primerSettings?.onCheckoutReceivedAdditionalInfo !== undefined), - onDismiss: false, - onError: (primerSettings?.onError !== undefined), - onHUCAvailablePaymentMethodsLoaded: (primerSettings?.onAvailablePaymentMethodsLoad !== undefined), - onHUCPrepareStart: (primerSettings?.onPrepareStart !== undefined), - onHUCTokenizeStart: (primerSettings?.onTokenizeStart !== undefined), - onHUCPaymentMethodShow: (primerSettings?.onPaymentMethodShow !== undefined) - }; - - await RNPrimerHeadlessUniversalCheckout.setImplementedRNCallbacks(implementedRNCallbacks); - - if (implementedRNCallbacks.onCheckoutComplete) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onCheckoutComplete', - (data) => { - console.log('onCheckoutComplete'); - if (primerSettings && primerSettings.onCheckoutComplete) { - const checkoutData: PrimerCheckoutData = data; - primerSettings.onCheckoutComplete(checkoutData); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onResumePending) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onResumePending', - (additionalInfo) => { - if (primerSettings && primerSettings.onResumePending) { - const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.onResumePending(checkoutAdditionalInfo); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onCheckoutReceivedAdditionalInfo) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onCheckoutReceivedAdditionalInfo', - (additionalInfo) => { - if (primerSettings && primerSettings.onCheckoutReceivedAdditionalInfo) { - const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onHUCPrepareStart) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onHUCPrepareStart', - (data) => { - console.log('onHUCPrepareStart'); - if (primerSettings && primerSettings.onPrepareStart) { - primerSettings.onPrepareStart(data.paymentMethodType || 'not implemented'); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onHUCTokenizeStart) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onHUCTokenizeStart', - (data) => { - console.log('onHUCTokenizeStart'); - if (primerSettings && primerSettings.onTokenizeStart) { - primerSettings.onTokenizeStart(data.paymentMethodType || 'not implemented'); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onHUCPaymentMethodShow) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onHUCPaymentMethodShow', - (data) => { - console.log('onHUCPaymentMethodShow'); - if (primerSettings && primerSettings.onPaymentMethodShow) { - primerSettings.onPaymentMethodShow(data.paymentMethodType || 'not implemented'); - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onHUCAvailablePaymentMethodsLoaded) { - RNPrimerHeadlessUniversalCheckout.addListener( - 'onHUCAvailablePaymentMethodsLoaded', - (data) => { - console.log('onHUCAvailablePaymentMethodsLoaded'); - if (primerSettings && primerSettings.onAvailablePaymentMethodsLoad) { - if (data && data.paymentMethodTypes) { - const paymentMethodTypes: string[] = data.paymentMethodTypes; - const availablePaymentMethodTypes = paymentMethodTypes; - primerSettings.onAvailablePaymentMethodsLoad(availablePaymentMethodTypes || ['not implemented']); - } else { - primerSettings.onAvailablePaymentMethodsLoad(['not implemented']); - } - - } else { - // Ignore! - } - } - ); - } - - if (implementedRNCallbacks.onBeforePaymentCreate) { - RNPrimerHeadlessUniversalCheckout.addListener('onBeforePaymentCreate', data => { - if (primerSettings && primerSettings.onBeforePaymentCreate) { - const checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData = data; - primerSettings.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); - } - }); - } - - if (implementedRNCallbacks.onBeforeClientSessionUpdate) { - RNPrimerHeadlessUniversalCheckout.addListener('onBeforeClientSessionUpdate', _ => { - if (primerSettings && primerSettings.onBeforeClientSessionUpdate) { - primerSettings.onBeforeClientSessionUpdate(); - } - }); - } - - if (implementedRNCallbacks.onClientSessionUpdate) { - RNPrimerHeadlessUniversalCheckout.addListener('onClientSessionUpdate', data => { - if (primerSettings && primerSettings.onClientSessionUpdate) { - const clientSession: PrimerClientSession = data; - primerSettings.onClientSessionUpdate(clientSession); - } - }); - } - - if (implementedRNCallbacks.onTokenizeSuccess) { - RNPrimerHeadlessUniversalCheckout.addListener('onTokenizeSuccess', data => { - if (primerSettings && primerSettings.onTokenizeSuccess) { - const paymentMethodTokenData: PrimerPaymentMethodTokenData = data; - primerSettings.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); - } - }); - } - - if (implementedRNCallbacks.onResumeSuccess) { - RNPrimerHeadlessUniversalCheckout.addListener('onResumeSuccess', data => { - if (primerSettings && primerSettings.onResumeSuccess && data.resumeToken) { - primerSettings.onResumeSuccess(data.resumeToken, resumeHandler); - } - }); - } - - if (implementedRNCallbacks.onError) { - RNPrimerHeadlessUniversalCheckout.addListener('onError', data => { - if (data && data.error && data.error.errorId && primerSettings && primerSettings.onError) { - const errorId: string = data.error.errorId; - const description: string | undefined = data.error.description; - const recoverySuggestion: string | undefined = data.error.recoverySuggestion; - const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); - - if (data.checkoutData) { - primerSettings.onError(primerError, data.checkoutData, undefined); - } else { - primerSettings.onError(primerError, null, undefined); - } - } - }); - } - - resolve(); - - } catch (err) { - reject(err); - } - }); -} - -class PrimerHeadlessUniversalCheckoutClass { - - /////////////////////////////////////////// - // Init - /////////////////////////////////////////// - constructor() { - - } - - /////////////////////////////////////////// - // API - /////////////////////////////////////////// - startWithClientToken( - clientToken: string, - settings: PrimerSettings - ): Promise { - primerSettings = settings; - - return new Promise(async (resolve, reject) => { - try { - await configureListeners(); - const hucResponse: PrimerHeadlessUniversalCheckoutStartResponse = await RNPrimerHeadlessUniversalCheckout.startWithClientToken(clientToken, settings); - const availablePaymentMethodTypes: string[] = hucResponse.paymentMethodTypes; - resolve(availablePaymentMethodTypes); - } catch (err) { - reject(err); - } - }); - } - - async showPaymentMethod(paymentMethodType: string): Promise { - return new Promise(async (resolve, reject) => { - try { - await RNPrimerHeadlessUniversalCheckout.showPaymentMethod(paymentMethodType); - resolve(); - } catch (err) { - reject(err); - } - }); - } - - getAssetForPaymentMethodType( - paymentMethodType: string, - assetType: 'logo' | 'icon' - ): Promise { - return RNPrimerHeadlessUniversalCheckout.getAssetForPaymentMethodType( - paymentMethodType, - assetType - ); - } - - getAssetForCardNetwork( - cardNetwork: string, - assetType: 'logo' | 'icon' - ): Promise { - return RNPrimerHeadlessUniversalCheckout.getAssetForCardNetwork( - cardNetwork, - assetType - ); - } - - disposePrimerHeadlessUniversalCheckout(): Promise { - return RNPrimerHeadlessUniversalCheckout.disposePrimerHeadlessUniversalCheckout(); - } -} - -export const PrimerHeadlessUniversalCheckout = new PrimerHeadlessUniversalCheckoutClass(); diff --git a/src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager.ts b/src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager.ts deleted file mode 100644 index e39c1b025..000000000 --- a/src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { PrimerRawData } from ".."; -import RNPrimerHeadlessUniversalCheckoutRawDataManager from "./RNPrimerHeadlessUniversalCheckoutRawDataManager"; -import { primerSettings } from "./PrimerHeadlessUniversalCheckout" -import { PrimerError } from '../models/PrimerError'; -import type { PrimerInitializationData } from "src/models/PrimerInitializationData"; - -let primerHeadlessUniversalCheckoutRawDataManagerOptions: PrimerHeadlessUniversalCheckoutRawDataManagerOptions | undefined; - -async function configureListeners(): Promise { - return new Promise(async (resolve, reject) => { - try { - RNPrimerHeadlessUniversalCheckoutRawDataManager.removeAllListeners(); - - RNPrimerHeadlessUniversalCheckoutRawDataManager.addListener('onMetadataChange', data => { - if (primerHeadlessUniversalCheckoutRawDataManagerOptions && primerHeadlessUniversalCheckoutRawDataManagerOptions.onMetadataChange) { - primerHeadlessUniversalCheckoutRawDataManagerOptions.onMetadataChange(data); - } - }); - - RNPrimerHeadlessUniversalCheckoutRawDataManager.addListener('onValidation', data => { - if (primerHeadlessUniversalCheckoutRawDataManagerOptions && primerHeadlessUniversalCheckoutRawDataManagerOptions.onValidation) { - let errors: PrimerError[] = []; - for (const errData of (data.errors || [])) { - const errorId: string = errData.errorId; - const description: string | undefined = errData.description; - const recoverySuggestion: string | undefined = errData.recoverySuggestion; - const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); - errors.push(primerError); - } - - primerHeadlessUniversalCheckoutRawDataManagerOptions.onValidation(data.isValid, errors.length === 0 ? undefined : errors); - } - }); - - RNPrimerHeadlessUniversalCheckoutRawDataManager.addListener('onNativeError', data => { - if (primerSettings && primerSettings.onError) { - const errorId: string = data.error.errorId; - const description: string | undefined = data.error.description; - const recoverySuggestion: string | undefined = data.error.recoverySuggestion; - const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); - primerSettings.onError(primerError, null, undefined); - } - }); - resolve(); - - } catch (err) { - reject(err); - } - }); -} - -export interface PrimerHeadlessUniversalCheckoutRawDataManagerOptions { - paymentMethodType: string; - onMetadataChange?: (metadata: any) => void; - onValidation?: (isValid: boolean, errors: PrimerError[] | undefined) => void; -} - -class PrimerHeadlessUniversalCheckoutRawDataManagerClass { - - /////////////////////////////////////////// - // Init - /////////////////////////////////////////// - constructor() { - - } - - /////////////////////////////////////////// - // API - /////////////////////////////////////////// - - configure(options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions): Promise { - primerHeadlessUniversalCheckoutRawDataManagerOptions = options; - configureListeners(); - return RNPrimerHeadlessUniversalCheckoutRawDataManager.configure(primerHeadlessUniversalCheckoutRawDataManagerOptions.paymentMethodType); - } - - async getRequiredInputElementTypes(): Promise { - return new Promise(async (resolve, reject) => { - if ( - primerHeadlessUniversalCheckoutRawDataManagerOptions && - primerHeadlessUniversalCheckoutRawDataManagerOptions.paymentMethodType - ) { - try { - const inputElementTypes = await RNPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(primerHeadlessUniversalCheckoutRawDataManagerOptions.paymentMethodType); - resolve(inputElementTypes); - } catch (err) { - reject(err); - } - } else { - const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); - reject(err); - } - }) - } - - setRawData(rawData: PrimerRawData): Promise { - return RNPrimerHeadlessUniversalCheckoutRawDataManager.setRawData(JSON.stringify(rawData)); - } - - submit(): Promise { - return RNPrimerHeadlessUniversalCheckoutRawDataManager.submit(); - } - - disposeRawDataManager(): Promise { - return RNPrimerHeadlessUniversalCheckoutRawDataManager.disposeRawDataManager(); - } -} - -export const PrimerHeadlessUniversalCheckoutRawDataManager = new PrimerHeadlessUniversalCheckoutRawDataManagerClass(); diff --git a/src/headless_checkout/RNPrimerHeadlessUniversalCheckoutRawDataManager.ts b/src/headless_checkout/RNPrimerHeadlessUniversalCheckoutRawDataManager.ts deleted file mode 100644 index 388f3fe4a..000000000 --- a/src/headless_checkout/RNPrimerHeadlessUniversalCheckoutRawDataManager.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { NativeEventEmitter, NativeModules } from 'react-native'; -import type { PrimerInitializationData } from 'src/models/PrimerInitializationData'; - -const { PrimerHeadlessUniversalCheckoutRawDataManager } = NativeModules; -const eventEmitter = new NativeEventEmitter(PrimerHeadlessUniversalCheckoutRawDataManager); - -type EventType = - | 'onMetadataChange' - | 'onValidation' - | 'onNativeError'; - -const eventTypes: EventType[] = [ - 'onMetadataChange', - 'onValidation', - 'onNativeError' -]; - -const RNPrimerHeadlessUniversalCheckoutRawDataManager = { - - /////////////////////////////////////////// - // Event Emitter - /////////////////////////////////////////// - addListener: (eventType: EventType, listener: (...args: any[]) => any) => { - eventEmitter.addListener(eventType, listener); - }, - - removeListener: (eventType: EventType, listener: (...args: any[]) => any) => { - eventEmitter.removeListener(eventType, listener); - }, - - removeAllListenersForEvent(eventType: EventType) { - eventEmitter.removeAllListeners(eventType); - }, - - removeAllListeners() { - eventTypes.forEach((eventType) => RNPrimerHeadlessUniversalCheckoutRawDataManager.removeAllListenersForEvent(eventType)); - }, - - /////////////////////////////////////////// - // Native API - /////////////////////////////////////////// - - configure: (paymentMethodType: string): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckoutRawDataManager.initialize(paymentMethodType); - const initializationData: PrimerInitializationData = await PrimerHeadlessUniversalCheckoutRawDataManager.configure(); - resolve(initializationData); - } catch (e) { - reject(e); - } - }); - }, - - listRequiredInputElementTypesForPaymentMethodType: (paymentMethodType: string): Promise => { - return new Promise(async (resolve, reject) => { - try { - const res = await PrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(paymentMethodType); - if (res.inputElementTypes) { - resolve(res.inputElementTypes); - } else { - resolve([]) - } - } catch (e) { - reject(e); - } - }); - }, - - setRawData: (rawData: string): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckoutRawDataManager.setRawData(rawData); - resolve(); - } catch (e) { - reject(e); - } - }); - }, - - submit: (): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckoutRawDataManager.submit(); - resolve(); - } catch (e) { - reject(e); - } - }); - }, - - disposeRawDataManager: (): Promise => { - return new Promise(async (resolve, reject) => { - try { - await PrimerHeadlessUniversalCheckoutRawDataManager.disposeRawDataManager(); - resolve(); - } catch (e) { - reject(e); - } - }); - }, -} - -export default RNPrimerHeadlessUniversalCheckoutRawDataManager; diff --git a/src/headless_checkout/types.ts b/src/headless_checkout/types.ts deleted file mode 100644 index 4ee3a86f5..000000000 --- a/src/headless_checkout/types.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { PrimerCheckoutData } from '../models/PrimerCheckoutData'; -import type { PrimerCheckoutPaymentMethodData } from '../models/PrimerCheckoutPaymentMethodData'; -import type { - PrimerTokenizationHandler, - PrimerResumeHandler, - PrimerPaymentCreationHandler, - PrimerErrorHandler -} from '../models/PrimerInterfaces'; -import type { PrimerClientSession } from '../models/PrimerClientSession'; -import type { PrimerPaymentMethodTokenData } from '../models/PrimerPaymentMethodTokenData'; -import type { PrimerError } from '../models/PrimerError'; - -export interface PrimerHeadlessUniversalCheckoutStartResponse { - paymentMethodTypes: string[]; -} - -export interface PrimerHeadlessUniversalCheckoutCallbacks { - // Common - onBeforeClientSessionUpdate?: () => void; - onClientSessionUpdate?: (clientSession: PrimerClientSession) => void; - onBeforePaymentCreate?: (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => void; - onCheckoutComplete?: (checkoutData: PrimerCheckoutData) => void; - onTokenizeSuccess?: (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => void; - onResumeSuccess?: (resumeToken: string, handler: PrimerResumeHandler) => void; - onError?: (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => void; - - // Only on HUC - onPrepareStart?: (paymentMethodType: string) => void; - onTokenizeStart?: (paymentMethodType: string) => void; - onPaymentMethodShow?: (paymentMethodType: string) => void; - onAvailablePaymentMethodTypesLoad?: (paymentMethodTypes: string[]) => void; -} diff --git a/src/index.tsx b/src/index.tsx index 5c3799d21..84c4ed1a1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,6 +4,9 @@ export { export { PrimerSettings } from './models/PrimerSettings'; +export { + PrimerInputElementType +} from './models/PrimerInputElementType'; export { PrimerSessionIntent } from './models/PrimerSessionIntent'; @@ -12,7 +15,7 @@ export { PrimerTokenizationHandler, PrimerResumeHandler, PrimerErrorHandler, -} from './models/PrimerInterfaces'; +} from './models/PrimerHandlers'; export { PrimerPaymentMethodTokenData } from './models/PrimerPaymentMethodTokenData'; export { PrimerClientSession, @@ -50,9 +53,25 @@ export { export { PrimerError } from './models/PrimerError'; +export type { + IPrimerAsset as Asset +} from './models/PrimerAsset'; export { PrimerHeadlessUniversalCheckout as HeadlessUniversalCheckout -} from './headless_checkout/PrimerHeadlessUniversalCheckout'; -export { - PrimerHeadlessUniversalCheckoutRawDataManager as HeadlessUniversalCheckoutRawDataManager -} from './headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager'; +} from './HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout'; +export type { + IPrimerHeadlessUniversalCheckoutPaymentMethod as PaymentMethod +} from './models/PrimerHeadlessUniversalCheckoutPaymentMethod'; + +import PrimerHeadlessUniversalCheckoutAssetsManager from './HeadlessUniversalCheckout/Managers/AssetsManager'; +export { + PrimerHeadlessUniversalCheckoutAssetsManager as AssetsManager +} +import PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager from './HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager'; +export { + PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager as NativeUIManager +} +import PrimerHeadlessUniversalCheckoutRawDataManager from './HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager'; +export { + PrimerHeadlessUniversalCheckoutRawDataManager as RawDataManager +} diff --git a/src/models/PrimerAsset.ts b/src/models/PrimerAsset.ts new file mode 100644 index 000000000..acffad42e --- /dev/null +++ b/src/models/PrimerAsset.ts @@ -0,0 +1,13 @@ +export interface IPrimerAsset { + paymentMethodType: string; + paymentMethodLogo: { + colored?: string; + dark?: string; + light?: string; + } + paymentMethodBackgroundColor: { + colored?: string; + dark?: string; + light?: string; + } +} \ No newline at end of file diff --git a/src/models/PrimerHandlers.ts b/src/models/PrimerHandlers.ts new file mode 100644 index 000000000..7502c3caf --- /dev/null +++ b/src/models/PrimerHandlers.ts @@ -0,0 +1,25 @@ +export interface PrimerPaymentCreationHandler { + abortPaymentCreation(errorMessage: string | null): void; + continuePaymentCreation(): void; + } + + export interface PrimerTokenizationHandler { + handleSuccess(): void; + handleFailure(errorMessage: string | null): void; + continueWithNewClientToken(newClientToken: string): void; + } + + export interface PrimerResumeHandler { + handleSuccess(): void; + handleFailure(errorMessage: string | null): void; + continueWithNewClientToken(newClientToken: string): void; + } + + export interface PrimerHeadlessUniversalCheckoutResumeHandler { + continueWithNewClientToken(newClientToken: string): void; + complete(): void; + } + + export interface PrimerErrorHandler { + showErrorMessage(errorMessage: string | null): void; + } \ No newline at end of file diff --git a/src/models/PrimerHeadlessUniversalCheckoutPaymentMethod.ts b/src/models/PrimerHeadlessUniversalCheckoutPaymentMethod.ts new file mode 100644 index 000000000..153544714 --- /dev/null +++ b/src/models/PrimerHeadlessUniversalCheckoutPaymentMethod.ts @@ -0,0 +1,5 @@ +export interface IPrimerHeadlessUniversalCheckoutPaymentMethod { + paymentMethodType: string; + paymentMethodManagerCategories: ("NATIVE_UI" | "RAW_DATA" | "CARD_COMPONENTS")[]; + supportedPrimerSessionIntents: ("CHECKOUT" | "VAULT")[]; +} \ No newline at end of file diff --git a/src/models/PrimerImplementedRNCallbacks.ts b/src/models/PrimerImplementedRNCallbacks.ts new file mode 100644 index 000000000..3a0ffe015 --- /dev/null +++ b/src/models/PrimerImplementedRNCallbacks.ts @@ -0,0 +1,20 @@ +export interface PrimerImplementedRNCallbacks { + onAvailablePaymentMethodsLoad: boolean; + onTokenizationStart: boolean; + onTokenizationSuccess: boolean; + + onCheckoutResume: boolean; + onCheckoutPending: boolean; + onCheckoutAdditionalInfo: boolean; + + onError: boolean; + onCheckoutComplete: boolean; + onBeforeClientSessionUpdate: boolean; + + onClientSessionUpdate: boolean; + onBeforePaymentCreate: boolean; + onPreparationStart: boolean; + + onPaymentMethodShow: boolean; + onDismiss: boolean; +} \ No newline at end of file diff --git a/src/models/PrimerInputElementType.ts b/src/models/PrimerInputElementType.ts new file mode 100644 index 000000000..4fbde9311 --- /dev/null +++ b/src/models/PrimerInputElementType.ts @@ -0,0 +1,10 @@ +export enum PrimerInputElementType { + CARD_NUMBER = "CARD_NUMBER", + EXPIRY_DATE = "EXPIRY_DATE", + CVV = "CVV", + CARDHOLDER_NAME = "CARDHOLDER_NAME", + OTP = "OTP", + POSTAL_CODE = "POSTAL_CODE", + PHONE_NUMBER = "PHONE_NUMBER", + UNKNOWN = "UNKNOWN" +} \ No newline at end of file diff --git a/src/models/PrimerInterfaces.ts b/src/models/PrimerInterfaces.ts index 4fa2ce6e9..216710cd1 100644 --- a/src/models/PrimerInterfaces.ts +++ b/src/models/PrimerInterfaces.ts @@ -1,36 +1,9 @@ -import type { PrimerSessionIntent } from "./PrimerSessionIntent"; import type { PrimerSettings } from "./PrimerSettings"; export interface IPrimer { configure(settings: PrimerSettings): Promise; showUniversalCheckout(clientToken: string): Promise; showVaultManager(clientToken: string): Promise; - showPaymentMethod( - paymentMethodType: string, - intent: PrimerSessionIntent, - clientToken: string - ): Promise dismiss(): void; dispose(): void; } - -export interface PrimerPaymentCreationHandler { - abortPaymentCreation(errorMessage: string | null): void; - continuePaymentCreation(): void; -} - -export interface PrimerTokenizationHandler { - handleSuccess(): void; - handleFailure(errorMessage: string | null): void; - continueWithNewClientToken(newClientToken: string): void; -} - -export interface PrimerResumeHandler { - handleSuccess(): void; - handleFailure(errorMessage: string | null): void; - continueWithNewClientToken(newClientToken: string): void; -} - -export interface PrimerErrorHandler { - showErrorMessage(errorMessage: string | null): void; -} diff --git a/src/models/PrimerSettings.ts b/src/models/PrimerSettings.ts index d2f20b470..787cd9e97 100644 --- a/src/models/PrimerSettings.ts +++ b/src/models/PrimerSettings.ts @@ -1,9 +1,4 @@ -import type { - PrimerErrorHandler, - PrimerPaymentCreationHandler, - PrimerResumeHandler, - PrimerTokenizationHandler -} from "./PrimerInterfaces"; + import type { PrimerCheckoutData } from "./PrimerCheckoutData"; import type { PrimerCheckoutAdditionalInfo } from "./PrimerCheckoutAdditionalInfo"; import type { PrimerCheckoutPaymentMethodData } from "./PrimerCheckoutPaymentMethodData"; @@ -11,6 +6,13 @@ import type { PrimerClientSession } from "./PrimerClientSession"; import type { PrimerPaymentMethodTokenData } from "./PrimerPaymentMethodTokenData"; import type { PrimerError } from "./PrimerError"; import type { IPrimerTheme } from "./PrimerTheme"; +import type { + PrimerPaymentCreationHandler, + PrimerTokenizationHandler, + PrimerResumeHandler, + PrimerErrorHandler, + PrimerHeadlessUniversalCheckoutResumeHandler +} from "./PrimerHandlers"; export type PrimerSettings = IPrimerSettings; @@ -21,26 +23,38 @@ interface IPrimerSettings { uiOptions?: IPrimerUIOptions; debugOptions?: IPrimerDebugOptions; - // Common - onBeforeClientSessionUpdate?: () => void; - onClientSessionUpdate?: (clientSession: PrimerClientSession) => void; - onBeforePaymentCreate?: (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => void; - onCheckoutComplete?: (checkoutData: PrimerCheckoutData) => void; - onTokenizeSuccess?: (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => void; - onResumeSuccess?: (resumeToken: string, handler: PrimerResumeHandler) => void; - onResumePending?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; - onCheckoutReceivedAdditionalInfo?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; - // PrimerErrorHandler will be undefined on the HUC flow. - onError?: (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => void; - - // Only on main SDK - onDismiss?: () => void; - - // Only on HUC - onPrepareStart?: (paymentMethod: string) => void; - onTokenizeStart?: (paymentMethod: string) => void; - onPaymentMethodShow?: (paymentMethod: string) => void; - onAvailablePaymentMethodsLoad?: (paymentMethods: string[]) => void; + primerCallbacks?: { + onBeforeClientSessionUpdate?: () => void; + onClientSessionUpdate?: (clientSession: PrimerClientSession) => void; + onBeforePaymentCreate?: (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => void; + onCheckoutComplete?: (checkoutData: PrimerCheckoutData) => void; + onTokenizeSuccess?: (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => void; + onResumeSuccess?: (resumeToken: string, handler: PrimerResumeHandler) => void; + onResumePending?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; + onCheckoutReceivedAdditionalInfo?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; + onError?: (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => void; + onDismiss?: () => void; + }; + + headlessUniversalCheckoutCallbacks?: { + onAvailablePaymentMethodsLoad?: (availablePaymentMethods: any[]) => void; + onTokenizationStart?: (paymentMethodType: string) => void; + onTokenizationSuccess?: (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerHeadlessUniversalCheckoutResumeHandler) => void; + + onCheckoutResume?: (resumeToken: string, handler: PrimerHeadlessUniversalCheckoutResumeHandler) => void; + onCheckoutPending?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; + onCheckoutAdditionalInfo?: (additionalInfo: PrimerCheckoutAdditionalInfo) => void; + + onError?: (error: PrimerError, checkoutData: PrimerCheckoutData | null) => void; + onCheckoutComplete?: (checkoutData: PrimerCheckoutData) => void; + onBeforeClientSessionUpdate?: () => void; + + onClientSessionUpdate?: (clientSession: PrimerClientSession) => void; + onBeforePaymentCreate?: (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => void; + onPreparationStart?: (paymentMethodType: string) => void; + + onPaymentMethodShow?: (paymentMethodType: string) => void; + } } //---------------------------------------- From f0f8fb6229d7494f162623ff76c7e467f32941cf Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:23:58 +0300 Subject: [PATCH 002/121] Bump example --- example/android/.project | 4 +- example/ios/Podfile | 4 +- example/ios/Podfile.lock | 22 +- .../project.pbxproj | 70 +-- example/src/App.tsx | 10 +- example/src/screens/HUCRawCardDataScreen.tsx | 394 -------------- .../screens/HUCRawPhoneNumberDataScreen.tsx | 429 --------------- .../src/screens/HeadlessCheckoutScreen.tsx | 501 ++++++++---------- example/src/screens/RawCardDataScreen.tsx | 176 ++++++ example/src/screens/SettingsScreen.tsx | 63 +-- 10 files changed, 464 insertions(+), 1209 deletions(-) delete mode 100644 example/src/screens/HUCRawCardDataScreen.tsx delete mode 100644 example/src/screens/HUCRawPhoneNumberDataScreen.tsx create mode 100644 example/src/screens/RawCardDataScreen.tsx diff --git a/example/android/.project b/example/android/.project index 80cf06ad7..92bc189e1 100644 --- a/example/android/.project +++ b/example/android/.project @@ -16,12 +16,12 @@ - 1659508366805 + 1665038267462 30 org.eclipse.core.resources.regexFilterMatcher - node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ diff --git a/example/ios/Podfile b/example/ios/Podfile index 6e56c89be..78956e3a7 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -8,8 +8,8 @@ target 'ReactNativeExample' do use_react_native!(:path => config["reactNativePath"]) - # pod 'primer-io-react-native', :path => '../..' - # pod 'PrimerSDK' + pod 'primer-io-react-native', :path => '../..' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6' pod 'Primer3DS' pod 'PrimerKlarnaSDK' diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 7fc77b39d..a6f212ea9 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -22,15 +22,15 @@ PODS: - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.8.1): - - PrimerSDK (= 2.9.0) + - primer-io-react-native (2.11.0): + - PrimerSDK (= 2.12.0) - React-Core - Primer3DS (1.0.0) - PrimerKlarnaSDK (1.0.1): - KlarnaMobileSDK (= 2.2.2) - - PrimerSDK (2.9.0): - - PrimerSDK/Core (= 2.9.0) - - PrimerSDK/Core (2.9.0) + - PrimerSDK (2.12.0): + - PrimerSDK/Core (= 2.12.0) + - PrimerSDK/Core (2.12.0) - RCTRequired (0.63.4) - RCTTypeSafety (0.63.4): - FBLazyVector (= 0.63.4) @@ -279,7 +279,7 @@ DEPENDENCIES: - primer-io-react-native (from `../..`) - Primer3DS - PrimerKlarnaSDK - - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `release/2.9.0`) + - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - React (from `../node_modules/react-native/`) @@ -330,7 +330,7 @@ EXTERNAL SOURCES: primer-io-react-native: :path: "../.." PrimerSDK: - :branch: release/2.9.0 + :branch: feature/DEVX-6 :git: https://github.com/primer-io/primer-sdk-ios.git RCTRequired: :path: "../node_modules/react-native/Libraries/RCTRequired" @@ -387,7 +387,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: PrimerSDK: - :commit: ca32a07338b7f17ab84a90e7a0f7247ef3f703cf + :commit: 748f9499224ec405b54f273c895d25469a7b6c2c :git: https://github.com/primer-io/primer-sdk-ios.git SPEC CHECKSUMS: @@ -398,10 +398,10 @@ SPEC CHECKSUMS: Folly: b73c3869541e86821df3c387eb0af5f65addfab4 glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: a1028e3cd05f45a2d34d230428f960faa4ee0c34 + primer-io-react-native: 65c9d6039fd431263f581989d9a6e90ae6782895 Primer3DS: 0b298ca54adb07e3f5ae3d74e574b6d3084e8a0d PrimerKlarnaSDK: 3bec0ddf31e01376587b8572ef12e8d5647b5c8a - PrimerSDK: 6b75c648928bceb864619a7e446186a2e5c945b2 + PrimerSDK: 677ecd47e0aebe9a402ab0fb6c16b8d1b7ebfb06 RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 @@ -429,6 +429,6 @@ SPEC CHECKSUMS: RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 -PODFILE CHECKSUM: d16e50ee96586863086b8a845d5779a3d5651ec2 +PODFILE CHECKSUM: fe0ea1920822998dccd8317d2df6155aa262eb4f COCOAPODS: 1.11.3 diff --git a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj index a1ce95f70..caff2bce1 100644 --- a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -8,6 +8,7 @@ /* Begin PBXBuildFile section */ 00E356F31AD99517003FC87E /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; + 0503C1A74CF710225C2DC4D5 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; @@ -17,7 +18,6 @@ 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 2DCD954D1E0B4F2C00145EB5 /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - B5ECF3D348229CFA6447DC82 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C6AC6C4DEC72DD9FD952717F /* libPods-ReactNativeExample.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -51,14 +51,14 @@ 1D14D8CD25C8B20D00206A38 /* ReactNativeExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeExample-Bridging-Header.h"; sourceTree = ""; }; 1D14D8CE25C8B20D00206A38 /* Bridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bridge.swift; sourceTree = ""; }; 1D3922C8270DAADD001BDCCA /* ReactNativeExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeExample.entitlements; path = ReactNativeExample/ReactNativeExample.entitlements; sourceTree = ""; }; - 27B262E686E169EA9746B1AD /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4D8AA1DFC29F83AA08A40C1D /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; - C6AC6C4DEC72DD9FD952717F /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; + BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; + F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -73,7 +73,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - B5ECF3D348229CFA6447DC82 /* libPods-ReactNativeExample.a in Frameworks */, + 0503C1A74CF710225C2DC4D5 /* libPods-ReactNativeExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -131,7 +131,7 @@ children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - C6AC6C4DEC72DD9FD952717F /* libPods-ReactNativeExample.a */, + BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */, ); name = Frameworks; sourceTree = ""; @@ -139,8 +139,8 @@ 6B9684456A2045ADE5A6E47E /* Pods */ = { isa = PBXGroup; children = ( - 27B262E686E169EA9746B1AD /* Pods-ReactNativeExample.debug.xcconfig */, - 4D8AA1DFC29F83AA08A40C1D /* Pods-ReactNativeExample.release.xcconfig */, + F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */, + A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -205,15 +205,15 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; buildPhases = ( - 7B47493417A3AC69F9F79B84 /* [CP] Check Pods Manifest.lock */, + 7BD2ECE14645BA53940749F6 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */, - 105F3BBD722450B4155AEA34 /* [CP] Embed Pods Frameworks */, - FCE237B6074A8E060BB49BA4 /* [CP] Copy Pods Resources */, + 627E849C4DC12F0EA3FB2061 /* [CP] Embed Pods Frameworks */, + 2F140E647BE6FD38C9E26B2C /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -357,7 +357,27 @@ shellPath = /bin/sh; shellScript = "cd $PROJECT_DIR/..\nexport NODE_BINARY=node\n./node_modules/react-native/scripts/react-native-xcode.sh\n"; }; - 105F3BBD722450B4155AEA34 /* [CP] Embed Pods Frameworks */ = { + 2F140E647BE6FD38C9E26B2C /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/PrimerSDK/PrimerResources.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrimerResources.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 627E849C4DC12F0EA3FB2061 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -377,7 +397,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 7B47493417A3AC69F9F79B84 /* [CP] Check Pods Manifest.lock */ = { + 7BD2ECE14645BA53940749F6 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -413,26 +433,6 @@ shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; - FCE237B6074A8E060BB49BA4 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh", - "${PODS_CONFIGURATION_BUILD_DIR}/PrimerSDK/PrimerResources.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrimerResources.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; FD10A7F022414F080027D42C /* Start Packager */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -572,7 +572,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 27B262E686E169EA9746B1AD /* Pods-ReactNativeExample.debug.xcconfig */; + baseConfigurationReference = F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -599,7 +599,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 4D8AA1DFC29F83AA08A40C1D /* Pods-ReactNativeExample.release.xcconfig */; + baseConfigurationReference = A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/example/src/App.tsx b/example/src/App.tsx index a24bbf092..eaecf81b6 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -6,10 +6,7 @@ import CheckoutScreen from './screens/CheckoutScreen'; import ResultScreen from './screens/ResultScreen'; import { HeadlessCheckoutScreen } from './screens/HeadlessCheckoutScreen'; import NewLineItemScreen from './screens/NewLineItemSreen'; -import { HUCRawCardDataScreen } from './screens/HUCRawCardDataScreen'; -import { HUCRawPhoneNumberDataScreen } from './screens/HUCRawPhoneNumberDataScreen'; -import { HUCRawCardRedirectDataScreen } from './screens/HUCRawCardRedirectDataScreen'; -import { HUCRawRetailDataVoucherScreen } from './screens/HUCRawRetailDataVoucherScreen'; +import RawCardDataScreen from './screens/RawCardDataScreen'; const Stack = createNativeStackNavigator(); @@ -23,10 +20,7 @@ const App = () => { - - - - + ); diff --git a/example/src/screens/HUCRawCardDataScreen.tsx b/example/src/screens/HUCRawCardDataScreen.tsx deleted file mode 100644 index 56cf918a3..000000000 --- a/example/src/screens/HUCRawCardDataScreen.tsx +++ /dev/null @@ -1,394 +0,0 @@ -import React, { useEffect, useState } from 'react'; - -import { - Image, - ScrollView, - Text, - TouchableOpacity, - View -} from 'react-native'; -import { createClientSession, createPayment, resumePayment } from '../network/api'; -import { appPaymentParameters } from '../models/IClientSessionRequestBody'; -import type { IPayment } from '../models/IPayment'; -import { getPaymentHandlingStringVal } from '../network/Environment'; -import { ActivityIndicator } from 'react-native'; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerRawCardData -} from '@primer-io/react-native'; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from 'src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager'; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawCardDataScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; - log = combinedLog; - } - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; - - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - } - } - - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); - - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); - } - } - - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io', - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "PAYMENT_CARD", - onMetadataChange: (data) => { - const cardNetwork = data?.cardNetwork; - if (cardNetwork) { - updateLogs(`\nโ„น๏ธ Detected card network ${data.cardNetwork}`); - } - }, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - } - } - await HeadlessUniversalCheckoutRawDataManager.configure(options); - const requiredInputElementTypes = await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerRawCardData = { - cardNumber: "", - expiryMonth: "14", - expiryYear: "2024", - cvv: "1", - cardholderName: "John" - } - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryMonth = "1" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cvv = "123" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4242424242424242" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - - }, 1000); - }, 1000); - }, 1000); - }, 1000); - - - - - // rawCardData.number = "4242424242424242" - // rawCardData.expiryMonth = "12" - // rawCardData.expiryYear = "2024" - // rawCardData.cvv = "123" - // rawCardData.cardholderName = "John" - // PrimerHeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - - {renderLoadingOverlay()} - - ); -}; diff --git a/example/src/screens/HUCRawPhoneNumberDataScreen.tsx b/example/src/screens/HUCRawPhoneNumberDataScreen.tsx deleted file mode 100644 index 6d5ded43a..000000000 --- a/example/src/screens/HUCRawPhoneNumberDataScreen.tsx +++ /dev/null @@ -1,429 +0,0 @@ -import React, { useEffect, useState } from "react"; - -import { Image, ScrollView, Text, TouchableOpacity, View } from "react-native"; -import { - createClientSession, - createPayment, - resumePayment, -} from "../network/api"; -import { appPaymentParameters } from "../models/IClientSessionRequestBody"; -import type { IPayment } from "../models/IPayment"; -import { getPaymentHandlingStringVal } from "../network/Environment"; -import { ActivityIndicator } from "react-native"; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerRawPhoneNumberData, -} from "@primer-io/react-native"; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from "src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager"; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawPhoneNumberDataScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState( - undefined - ); - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ""; - const combinedLog = currentLog + "\n" + str; - log = combinedLog; - }; - - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs( - `\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify( - paymentMethodTypes - )}` - ); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate("Result", checkoutData); - }; - - const onTokenizeSuccess = async ( - paymentMethodTokenData: PrimerPaymentMethodTokenData, - handler: PrimerTokenizationHandler - ) => { - updateLogs( - `\nโœ… onTokenizeSuccess:\n${JSON.stringify( - paymentMethodTokenData, - null, - 2 - )}` - ); - - try { - const payment: IPayment = await createPayment( - paymentMethodTokenData.token - ); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs( - "\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang." - ); - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate("Result", payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate("Result", err); - } - }; - - const onResumeSuccess = async ( - resumeToken: string, - handler: PrimerResumeHandler - ) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate("Result", payment); - setIsLoading(false); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate("Result", err); - setIsLoading(false); - } - }; - - const onError = ( - error: PrimerError, - checkoutData: PrimerCheckoutData | null, - handler: PrimerErrorHandler | undefined - ) => { - updateLogs( - `\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify( - error, - null, - 2 - )}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}` - ); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - }; - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal( - appPaymentParameters.paymentHandling - ), - paymentMethodOptions: { - iOS: { - urlScheme: "merchant://primer.io", - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError, - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - }; - } - - useEffect(() => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - .then((paymentMethodTypes) => { - updateLogs( - `\nโ„น๏ธ Available payment methods:\n${JSON.stringify( - paymentMethodTypes, - null, - 2 - )}` - ); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "XENDIT_OVO", - onMetadataChange: (data) => {}, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - }, - }; - await HeadlessUniversalCheckoutRawDataManager.configure(options); - const requiredInputElementTypes = - await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerRawPhoneNumberData = { - phoneNumber: "", - }; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628"; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628888"; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+62888338"; - await HeadlessUniversalCheckoutRawDataManager.setRawData( - rawCardData - ); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628774494404"; - await HeadlessUniversalCheckoutRawDataManager.setRawData( - rawCardData - ); - await HeadlessUniversalCheckoutRawDataManager.submit(); - setTimeout(async () => { - await HeadlessUniversalCheckoutRawDataManager.disposeRawDataManager() - setIsLoading(false); - - }, 3000); - }, 1000); - }, 1000); - }, 1000); - }, 1000); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return ( - - - - ); - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - {log} - - {renderLoadingOverlay()} - - ); -}; diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 62ec47c2c..9732288be 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -12,276 +12,273 @@ import { appPaymentParameters } from '../models/IClientSessionRequestBody'; import type { IPayment } from '../models/IPayment'; import { getPaymentHandlingStringVal } from '../network/Environment'; import { ActivityIndicator } from 'react-native'; -import { PrimerCheckoutData, PrimerClientSession, PrimerError, PrimerErrorHandler, HeadlessUniversalCheckout, PrimerPaymentMethodTokenData, PrimerResumeHandler, PrimerSettings, PrimerTokenizationHandler } from '@primer-io/react-native'; -import type { PrimerCheckoutAdditionalInfo } from 'lib/typescript/src'; +import { + HeadlessUniversalCheckout, + PrimerSettings, + PrimerSessionIntent, + PaymentMethod, + Asset, + AssetsManager, + NativeUIManager +} from '@primer-io/react-native'; let paymentId: string | null = null; -let log: string | undefined; +let logs: string = ""; + +// @ts-ignore +export const HeadlessCheckoutScreen = ({ navigation }) => { -export const HeadlessCheckoutScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); + const [isLoading, setIsLoading] = useState(false); + const [clientSession, setClientSession] = useState(undefined); + const [availablePaymentMethods, setAvailablePaymentMethods] = useState(undefined); + const [assets, setAssets] = useState(undefined); + const [tmpLogs, setTmpLogs] = useState(""); const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; - log = combinedLog; + const currentLog = logs || ''; + logs = currentLog + '\n' + str; + console.log(logs); + setTmpLogs(logs); } - const getLogo = async (identifier: string) => { - try { - const assetUrl = await HeadlessUniversalCheckout.getAssetForPaymentMethodType( - identifier, - 'logo' - ); - setLocalImageUrl(assetUrl); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; + useEffect(() => { + createClientSession() + .then(session => { + setClientSession(session); - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; + startHeadlessUniversalCheckout(session.clientToken) + .then(() => { - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; + }) + .catch(err => { + console.error(err); + }); + }) + .catch(err => { + console.error(err); + }) + }, []); - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; + const startHeadlessUniversalCheckout = async (clientToken: string): Promise => { + const settings: PrimerSettings = { + paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + }, + }, + headlessUniversalCheckoutCallbacks: { + onAvailablePaymentMethodsLoad: (availablePaymentMethods) => { + updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad: ${JSON.stringify(availablePaymentMethods, null, 2)}`); + }, + onBeforeClientSessionUpdate: () => { + updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); + }, + onClientSessionUpdate: (clientSession) => { + updateLogs(`\nโ„น๏ธ onClientSessionUpdate: ${JSON.stringify(clientSession, null, 2)}`); + }, + onBeforePaymentCreate: (checkoutPaymentData, handler) => { + updateLogs(`\nโ„น๏ธ onBeforePaymentCreate: ${JSON.stringify(checkoutPaymentData, null, 2)}`); + handler.continuePaymentCreation(); + }, + onTokenizationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onTokenizationStart: ${paymentMethodType}`); + }, + onTokenizationSuccess: async (paymentMethodTokenData, handler) => { + updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); + setClientSession(undefined); + + try { + const payment: IPayment = await createPayment(paymentMethodTokenData.token); + + if (payment.requiredAction && payment.requiredAction.clientToken) { + paymentId = payment.id; + + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + } + + paymentId = payment.id; + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + + } else { + setIsLoading(false); + handler.complete(); + } + + } catch (err) { + updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); + console.error(err); + setIsLoading(false); + handler.complete(); + } + }, + onCheckoutResume: async (resumeToken, handler) => { + updateLogs(`\nโœ… onCheckoutResume: ${JSON.stringify(resumeToken)}`); + setClientSession(undefined); + + try { + if (paymentId) { + const payment: IPayment = await resumePayment(paymentId, resumeToken); + setIsLoading(false); + + } else { + const err = new Error("Invalid value for paymentId"); + throw err; + } + paymentId = null; + handler.complete(); + + } catch (err) { + console.error(err); + paymentId = null; + setIsLoading(false); + handler.complete(); + } + }, + onCheckoutAdditionalInfo: (additionalInfo) => { + updateLogs(`\nโ„น๏ธ onCheckoutAdditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}`); + }, + onCheckoutPending: (additionalInfo) => { + updateLogs(`\nโ„น๏ธ onCheckoutPending: ${JSON.stringify(additionalInfo, null, 2)}`); + }, + onCheckoutComplete: (checkoutData) => { + updateLogs(`\nโ„น๏ธ onCheckoutComplete: ${JSON.stringify(checkoutData, null, 2)}`); + setClientSession(undefined); + }, + onError: (error, checkoutData) => { + updateLogs(`\n๐Ÿ›‘ onError: ${JSON.stringify(error, null, 2)} ${JSON.stringify(checkoutData, null, 2)}`); + }, + onPreparationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPreparationStart: ${paymentMethodType}`); + }, + onPaymentMethodShow: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPaymentMethodShow: ${paymentMethodType}`); + }, + } + }; - const onResumePending = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', additionalInfo); - }; + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + } + } - const onCheckoutReceivedAdditionalInfo = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', additionalInfo); - }; + const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + setAvailablePaymentMethods(availablePaymentMethods); + getPaymentMethodAssets(); + } - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); + const getPaymentMethodAssets = (): Promise => { + return new Promise(async (resolve, reject) => { + try { + const assetsManager = new AssetsManager(); + const assets: Asset[] = await assetsManager.getPaymentMethodAssets(); + setAssets(assets); + resolve(); + } catch (err) { + console.error(err); + reject(err); + } + }); + } + const payWithPaymentMethod = async (paymentMethodType: string) => { try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); + if (!clientSession) { + const session = await createClientSession(); + setClientSession(session); + } - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; + const paymentMethod = availablePaymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + if (paymentMethod) { + if (paymentMethod.paymentMethodManagerCategories.includes("NATIVE_UI") && paymentMethod.supportedPrimerSessionIntents.includes("CHECKOUT")) { + const nativeUIManager = new NativeUIManager(); + await nativeUIManager.initialize(paymentMethod.paymentMethodType); + await nativeUIManager.showPaymentMethod(PrimerSessionIntent.CHECKOUT); + return; } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - } - } - - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); - - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; + const err = new Error("Failed to create manager"); + throw err } catch (err) { console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); } - } - - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io' - }, - }, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onPrepareStart: onPrepareStart, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onPaymentMethodShow: onPaymentMethodShow, - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onTokenizeStart: onTokenizeStart, - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onResumePending: onResumePending, - onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, - onError: onError - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); }; const renderPaymentMethods = () => { - if (!paymentMethods) { + if (!assets) { return null; } else { return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} + + { + assets.map(a => { + if (a.paymentMethodType === "PAYMENT_CARD") { + return ( + { + navigation.navigate('RawCardData', { clientSession: clientSession }); + }} + > + + Pay with card + + + ); + } else { + return ( + { + payWithPaymentMethod(a.paymentMethodType); + }} + > + + + ); + } + }) + } - ); + ) } }; - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} + const renderLogBox = () => { + return ( + + + {tmpLogs} - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; + + ); + } const renderLoadingOverlay = () => { if (!isLoading) { @@ -306,38 +303,8 @@ export const HeadlessCheckoutScreen = (props: any) => { return ( {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - - {renderLoadingOverlay()} + {renderLogBox()} + {renderLoadingOverlay()} ); }; diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx new file mode 100644 index 000000000..78f945e1e --- /dev/null +++ b/example/src/screens/RawCardDataScreen.tsx @@ -0,0 +1,176 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + PrimerInputElementType, + PrimerRawCardData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawCardDataScreen = (props: RawCardDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState("4242 4242 4242 4242"); + const [expiryDate, setExpiryDate] = useState("07/2027"); + const [cvv, setCvv] = useState("123"); + const [cardholderName, setCardholderName] = useState("John Smith"); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.initialize({ + paymentMethodType: "PAYMENT_CARD", + onMetadataChange: (data => { + console.log(`\n\nonMetadataChange: ${JSON.stringify(data)}`); + }), + onValidation: ((isVallid, errors) => { + console.log(`\n\nonValidation:\nisValid: ${isVallid}\nerrors:${JSON.stringify(errors)}`); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === PrimerInputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + }} + /> + ); + } else if (et === PrimerInputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + }} + /> + ); + } else if (et === PrimerInputElementType.CVV) { + return ( + { + setCvv(text); + }} + /> + ); + } else if (et === PrimerInputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + const rawCardData: PrimerRawCardData = { + cardNumber: cardNumber, + expiryMonth: "07", + expiryYear: "2027", + cvv: "123" + } + await rawDataManager.setRawData(rawCardData); + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + pay(); + }} + > + + Pay + + + ); + }; + + return ( + + {renderInputs()} + {renderPayButton()} + {renderLoadingOverlay()} + + ); +}; + +export default RawCardDataScreen; diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 9e58d6563..db0816040 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import { ScrollView, Text, - TextInput, TouchableOpacity, useColorScheme, View, @@ -473,7 +472,7 @@ const SettingsScreen = ({ navigation }) => { }} /> - + Address @@ -630,67 +629,9 @@ const SettingsScreen = ({ navigation }) => { - Headless Universal Checkout (Beta) + Headless Universal Checkout - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawCardData'); - }} - > - - HUC Raw Card Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawPhoneNumberData'); - }} - > - - HUC Raw Phone Number Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawCardRedirectDataScreen'); - }} - > - - HUC Raw Card Redirect Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawRetailDataVoucherScreen'); - }} - > - - HUC Raw Retail Data Voucher Screen (Beta) - - - ); } From d63b64014e4ae23678a6bd21daa8afeff58ce00e Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:39:47 +0300 Subject: [PATCH 003/121] Renames --- example/src/screens/CheckoutScreen.tsx | 104 +++++++----------- .../src/screens/HeadlessCheckoutScreen.tsx | 4 +- example/src/screens/RawCardDataScreen.tsx | 14 +-- src/index.tsx | 44 +++----- 4 files changed, 68 insertions(+), 98 deletions(-) diff --git a/example/src/screens/CheckoutScreen.tsx b/example/src/screens/CheckoutScreen.tsx index 3234de9cc..6a5b55d19 100644 --- a/example/src/screens/CheckoutScreen.tsx +++ b/example/src/screens/CheckoutScreen.tsx @@ -1,28 +1,27 @@ import * as React from 'react'; -import { - PrimerCheckoutData, - PrimerCheckoutPaymentMethodData, - Primer, - PrimerErrorHandler, - PrimerPaymentCreationHandler, - PrimerSessionIntent, - PrimerSettings, - PrimerResumeHandler, - PrimerPaymentMethodTokenData, - PrimerTokenizationHandler, - PrimerClientSession, - PrimerError, - PrimerCheckoutAdditionalInfo -} from '@primer-io/react-native'; import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; import { Colors } from 'react-native/Libraries/NewAppScreen'; import { styles } from '../styles'; -import { appPaymentParameters, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; +import { appPaymentParameters } from '../models/IClientSessionRequestBody'; import type { IClientSession } from '../models/IClientSession'; import type { IPayment } from '../models/IPayment'; import { getPaymentHandlingStringVal } from '../network/Environment'; import { createClientSession, createPayment, resumePayment } from '../network/api'; +import { + CheckoutAdditionalInfo, + CheckoutData, + CheckoutPaymentMethodData, + ClientSession, + ErrorHandler, + PaymentCreationHandler, + Primer, + PrimerError, + PrimerPaymentMethodTokenData, + PrimerSettings, + ResumeHandler, + TokenizationHandler +} from '@primer-io/react-native'; let clientToken: string | null = null; @@ -44,25 +43,25 @@ const CheckoutScreen = (props: any) => { setLoadingMessage('onBeforeClientSessionUpdate'); } - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { + const onClientSessionUpdate = (clientSession: ClientSession) => { console.log(`onClientSessionUpdate\n${JSON.stringify(clientSession)}`);; setLoadingMessage('onClientSessionUpdate'); } - const onBeforePaymentCreate = (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => { + const onBeforePaymentCreate = (checkoutPaymentMethodData: CheckoutPaymentMethodData, handler: PaymentCreationHandler) => { console.log(`onBeforePaymentCreate\n${JSON.stringify(checkoutPaymentMethodData)}`); handler.continuePaymentCreation(); setLoadingMessage('onBeforePaymentCreate'); } - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { + const onCheckoutComplete = (checkoutData: CheckoutData) => { console.log(`PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); setLoadingMessage(undefined); setIsLoading(false); props.navigation.navigate('Result', checkoutData); }; - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { + const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: TokenizationHandler) => { console.log(`onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData)}`); try { @@ -91,7 +90,7 @@ const CheckoutScreen = (props: any) => { } } - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { + const onResumeSuccess = async (resumeToken: string, handler: ResumeHandler) => { console.log(`onResumeSuccess:\n${JSON.stringify(resumeToken)}`); try { @@ -117,17 +116,17 @@ const CheckoutScreen = (props: any) => { } } - const onResumePending = async (additionalInfo: PrimerCheckoutAdditionalInfo) => { + const onResumePending = async (additionalInfo: CheckoutAdditionalInfo) => { console.log(`onResumePending:\n${JSON.stringify(additionalInfo)}`); debugger; } - const onCheckoutReceivedAdditionalInfo = async (additionalInfo: PrimerCheckoutAdditionalInfo) => { + const onCheckoutReceivedAdditionalInfo = async (additionalInfo: CheckoutAdditionalInfo) => { console.log(`onCheckoutReceivedAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); debugger; } - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { + const onError = (error: PrimerError, checkoutData: CheckoutData | null, handler: ErrorHandler | undefined) => { console.log(`onError:\n${JSON.stringify(error)}\n\n${JSON.stringify(checkoutData)}`); handler?.showErrorMessage("My RN message"); setLoadingMessage(undefined); @@ -168,37 +167,26 @@ const CheckoutScreen = (props: any) => { debugOptions: { is3DSSanityCheckEnabled: true }, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: onBeforePaymentCreate, - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onResumePending: onResumePending, - onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, - onError: onError, - onDismiss: onDismiss, + primerCallbacks: { + onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, + onClientSessionUpdate: onClientSessionUpdate, + onBeforePaymentCreate: onBeforePaymentCreate, + onCheckoutComplete: onCheckoutComplete, + onTokenizeSuccess: onTokenizeSuccess, + onResumeSuccess: onResumeSuccess, + onResumePending: onResumePending, + onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, + onError: onError, + onDismiss: onDismiss, + } }; - const onApplePayButtonTapped = async () => { - try { - setIsLoading(true); - const clientSession: IClientSession = await createClientSession(); - clientToken = clientSession.clientToken; - await Primer.configure(settings); - await Primer.showPaymentMethod('APPLE_PAY', PrimerSessionIntent.CHECKOUT, clientToken); - - } catch (err) { - setIsLoading(false); - - if (err instanceof Error) { - setError(err); - } else if (typeof err === "string") { - setError(new Error(err)); - } else { - setError(new Error('Unknown error')); - } - } + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + }; } const onVaultManagerButtonTapped = async () => { @@ -247,16 +235,6 @@ const CheckoutScreen = (props: any) => { return ( - - - Apple Pay - - { if (paymentMethod.paymentMethodManagerCategories.includes("NATIVE_UI") && paymentMethod.supportedPrimerSessionIntents.includes("CHECKOUT")) { const nativeUIManager = new NativeUIManager(); await nativeUIManager.initialize(paymentMethod.paymentMethodType); - await nativeUIManager.showPaymentMethod(PrimerSessionIntent.CHECKOUT); + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); return; } } diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 78f945e1e..de82329c2 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -6,8 +6,8 @@ import { } from 'react-native'; import { ActivityIndicator } from 'react-native'; import { - PrimerInputElementType, - PrimerRawCardData, + InputElementType, + RawCardData, RawDataManager, } from '@primer-io/react-native'; import TextField from '../components/TextField'; @@ -55,7 +55,7 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { { requiredInputElementTypes.map(et => { - if (et === PrimerInputElementType.CARD_NUMBER) { + if (et === InputElementType.CARD_NUMBER) { return ( { }} /> ); - } else if (et === PrimerInputElementType.EXPIRY_DATE) { + } else if (et === InputElementType.EXPIRY_DATE) { return ( { }} /> ); - } else if (et === PrimerInputElementType.CVV) { + } else if (et === InputElementType.CVV) { return ( { }} /> ); - } else if (et === PrimerInputElementType.CARDHOLDER_NAME) { + } else if (et === InputElementType.CARDHOLDER_NAME) { return ( { const pay = async () => { try { - const rawCardData: PrimerRawCardData = { + const rawCardData: RawCardData = { cardNumber: cardNumber, expiryMonth: "07", expiryYear: "2027", diff --git a/src/index.tsx b/src/index.tsx index 84c4ed1a1..52ccb3401 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,40 +5,32 @@ export { PrimerSettings } from './models/PrimerSettings'; export { - PrimerInputElementType + PrimerInputElementType as InputElementType } from './models/PrimerInputElementType'; export { - PrimerSessionIntent + PrimerSessionIntent as SessionIntent } from './models/PrimerSessionIntent'; -export { - PrimerPaymentCreationHandler, - PrimerTokenizationHandler, - PrimerResumeHandler, - PrimerErrorHandler, +export { + PrimerPaymentCreationHandler as PaymentCreationHandler, + PrimerTokenizationHandler as TokenizationHandler, + PrimerResumeHandler as ResumeHandler, + PrimerErrorHandler as ErrorHandler, } from './models/PrimerHandlers'; export { PrimerPaymentMethodTokenData } from './models/PrimerPaymentMethodTokenData'; -export { - PrimerClientSession, - PrimerOrder, - PrimerLineItem, - PrimerCustomer, - PrimerAddress, +export { + PrimerClientSession as ClientSession, + PrimerOrder as Order, + PrimerLineItem as LineItem, + PrimerCustomer as Customer, + PrimerAddress as Address, } from './models/PrimerClientSession'; -export { - PrimerRawData, - PrimerRawCardData, - PrimerRawPhoneNumberData, - PrimerRawCardRedirectData, - PrimerBancontactCardRedirectData, - PrimerRawRetailerData +export { + PrimerRawData as RawData, + PrimerRawCardData as RawCardData } from './models/PrimerRawData'; export { - PrimerCheckoutAdditionalInfo, - MultibancoCheckoutAdditionalInfo, - PrimerCheckoutVoucherAdditionalInfo, - XenditCheckoutVoucherAdditionalInfo, - PrimerCheckoutQRCodeInfo, - PromptPayCheckoutAdditionalInfo + PrimerCheckoutAdditionalInfo as CheckoutAdditionalInfo, + MultibancoCheckoutAdditionalInfo } from './models/PrimerCheckoutAdditionalInfo'; export { RetailOutletsRetail From b76adc60a1594e74c3b40fd2679823848850c602 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:52:33 +0300 Subject: [PATCH 004/121] Bump Adyen test creds --- example/src/screens/RawCardDataScreen.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index de82329c2..830107f25 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -25,7 +25,7 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); const [cardNumber, setCardNumber] = useState("4242 4242 4242 4242"); - const [expiryDate, setExpiryDate] = useState("07/2027"); + const [expiryDate, setExpiryDate] = useState("03/2030"); const [cvv, setCvv] = useState("123"); const [cardholderName, setCardholderName] = useState("John Smith"); @@ -115,9 +115,10 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { try { const rawCardData: RawCardData = { cardNumber: cardNumber, - expiryMonth: "07", - expiryYear: "2027", - cvv: "123" + expiryMonth: "03", + expiryYear: "2030", + cvv: "123", + cardholderName: cardholderName } await rawDataManager.setRawData(rawCardData); await rawDataManager.submit(); From b25bde499b00e0faa194c62321fcb6b49c6f922c Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 16:04:15 +0300 Subject: [PATCH 005/121] Bump test creds --- example/src/screens/RawCardDataScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 830107f25..84414ce3a 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -24,7 +24,7 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [cardNumber, setCardNumber] = useState("4242 4242 4242 4242"); + const [cardNumber, setCardNumber] = useState("4111111111111111"); const [expiryDate, setExpiryDate] = useState("03/2030"); const [cvv, setCvv] = useState("123"); const [cardholderName, setCardholderName] = useState("John Smith"); From 9a425662c38611a5f182495a5a82f06c381245a9 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 25 Oct 2022 15:02:52 +0300 Subject: [PATCH 006/121] Set delegate --- .../Managers/Payment Method Managers/RNTRawDataManager.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index ea1229d39..06ed1995d 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -49,8 +49,7 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { self.paymentMethodType = paymentMethodTypeStr do { - self.rawDataManager = try PrimerHeadlessUniversalCheckout.RawDataManager(paymentMethodType: self.paymentMethodType!) - self.rawDataManager.delegate = self + self.rawDataManager = try PrimerHeadlessUniversalCheckout.RawDataManager(paymentMethodType: self.paymentMethodType!, delegate: self) resolver(nil) } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) From c1c568af9f3836fa8ad53b493ad71b919caa1972 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 27 Oct 2022 15:17:53 +0300 Subject: [PATCH 007/121] Bump rebase --- android/.project | 4 ++-- example/ios/Podfile | 2 +- example/ios/Podfile.lock | 22 +++++++++---------- ...ancontactCardRedirectData+Extension.swift} | 1 - .../DataModels/PrimerCardData+Extension.swift | 1 - .../PrimerPhoneNumberData+Extension.swift | 1 - ... => PrimerRawRetailerData+Extension.swift} | 1 - .../PrimerSettings+Extensions.swift | 8 +------ src/index.tsx | 11 ++++++---- 9 files changed, 22 insertions(+), 29 deletions(-) rename ios/Sources/DataModels/{RNTPrimerCardRedirectData.swift => PrimerBancontactCardRedirectData+Extension.swift} (99%) rename ios/Sources/DataModels/{RNTPrimerRetailerData.swift => PrimerRawRetailerData+Extension.swift} (99%) diff --git a/android/.project b/android/.project index 63d7d6f9f..ce2458ae6 100644 --- a/android/.project +++ b/android/.project @@ -16,12 +16,12 @@ - 1659508366811 + 1666872274961 30 org.eclipse.core.resources.regexFilterMatcher - node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ diff --git a/example/ios/Podfile b/example/ios/Podfile index 78956e3a7..83d00e0e3 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -9,7 +9,7 @@ target 'ReactNativeExample' do use_react_native!(:path => config["reactNativePath"]) pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' pod 'Primer3DS' pod 'PrimerKlarnaSDK' diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index a6f212ea9..944a2f950 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -22,15 +22,15 @@ PODS: - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.11.0): - - PrimerSDK (= 2.12.0) + - primer-io-react-native (2.14.0): + - PrimerSDK (= 2.14.0) - React-Core - Primer3DS (1.0.0) - PrimerKlarnaSDK (1.0.1): - KlarnaMobileSDK (= 2.2.2) - - PrimerSDK (2.12.0): - - PrimerSDK/Core (= 2.12.0) - - PrimerSDK/Core (2.12.0) + - PrimerSDK (2.14.0): + - PrimerSDK/Core (= 2.14.0) + - PrimerSDK/Core (2.14.0) - RCTRequired (0.63.4) - RCTTypeSafety (0.63.4): - FBLazyVector (= 0.63.4) @@ -279,7 +279,7 @@ DEPENDENCIES: - primer-io-react-native (from `../..`) - Primer3DS - PrimerKlarnaSDK - - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6`) + - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6_rebase-2.14.0`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - React (from `../node_modules/react-native/`) @@ -330,7 +330,7 @@ EXTERNAL SOURCES: primer-io-react-native: :path: "../.." PrimerSDK: - :branch: feature/DEVX-6 + :branch: feature/DEVX-6_rebase-2.14.0 :git: https://github.com/primer-io/primer-sdk-ios.git RCTRequired: :path: "../node_modules/react-native/Libraries/RCTRequired" @@ -387,7 +387,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: PrimerSDK: - :commit: 748f9499224ec405b54f273c895d25469a7b6c2c + :commit: fbfdfa92b1879ba9477d1154c4e97055264ae64d :git: https://github.com/primer-io/primer-sdk-ios.git SPEC CHECKSUMS: @@ -398,10 +398,10 @@ SPEC CHECKSUMS: Folly: b73c3869541e86821df3c387eb0af5f65addfab4 glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: 65c9d6039fd431263f581989d9a6e90ae6782895 + primer-io-react-native: a22a1ed9f651666c9fe2f5ba565a72069c118307 Primer3DS: 0b298ca54adb07e3f5ae3d74e574b6d3084e8a0d PrimerKlarnaSDK: 3bec0ddf31e01376587b8572ef12e8d5647b5c8a - PrimerSDK: 677ecd47e0aebe9a402ab0fb6c16b8d1b7ebfb06 + PrimerSDK: c974d33a85491d400249d957b968770b5e2580e1 RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 @@ -429,6 +429,6 @@ SPEC CHECKSUMS: RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 -PODFILE CHECKSUM: fe0ea1920822998dccd8317d2df6155aa262eb4f +PODFILE CHECKSUM: d0452f7d4b02293653869dee9d4017e7bdbd593a COCOAPODS: 1.11.3 diff --git a/ios/Sources/DataModels/RNTPrimerCardRedirectData.swift b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift similarity index 99% rename from ios/Sources/DataModels/RNTPrimerCardRedirectData.swift rename to ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift index e453c5c6b..2642c3a66 100644 --- a/ios/Sources/DataModels/RNTPrimerCardRedirectData.swift +++ b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift @@ -33,5 +33,4 @@ extension PrimerBancontactCardRedirectData { return nil } } - } diff --git a/ios/Sources/DataModels/PrimerCardData+Extension.swift b/ios/Sources/DataModels/PrimerCardData+Extension.swift index b7b9ce046..4a4ce969a 100644 --- a/ios/Sources/DataModels/PrimerCardData+Extension.swift +++ b/ios/Sources/DataModels/PrimerCardData+Extension.swift @@ -42,5 +42,4 @@ extension PrimerCardData { return nil } } - } diff --git a/ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift b/ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift index a824b3d10..9676ef72d 100644 --- a/ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift +++ b/ios/Sources/DataModels/PrimerPhoneNumberData+Extension.swift @@ -34,5 +34,4 @@ extension PrimerPhoneNumberData { return nil } } - } diff --git a/ios/Sources/DataModels/RNTPrimerRetailerData.swift b/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift similarity index 99% rename from ios/Sources/DataModels/RNTPrimerRetailerData.swift rename to ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift index 1a7ad239b..575e53ce3 100644 --- a/ios/Sources/DataModels/RNTPrimerRetailerData.swift +++ b/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift @@ -34,5 +34,4 @@ extension PrimerRawRetailerData { return nil } } - } diff --git a/ios/Sources/DataModels/PrimerSettings+Extensions.swift b/ios/Sources/DataModels/PrimerSettings+Extensions.swift index a11513f92..78b44edb5 100644 --- a/ios/Sources/DataModels/PrimerSettings+Extensions.swift +++ b/ios/Sources/DataModels/PrimerSettings+Extensions.swift @@ -44,11 +44,6 @@ extension PrimerSettings { klarnaOptions = PrimerKlarnaOptions(recurringPaymentDescription: rnKlarnaRecurringPaymentDescription) } - var cardPaymentOptions: PrimerCardPaymentOptions? - if let rnIs3DSOnVaultingEnabled = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["cardPaymentOptions"] as? [String: Any])?["is3DSOnVaultingEnabled"] as? Bool { - cardPaymentOptions = PrimerCardPaymentOptions(is3DSOnVaultingEnabled: rnIs3DSOnVaultingEnabled) - } - var uiOptions: PrimerUIOptions? if let rnUIOptions = settingsJson["uiOptions"] as? [String: Any] { @@ -74,8 +69,7 @@ extension PrimerSettings { let paymentMethodOptions = PrimerPaymentMethodOptions( urlScheme: rnUrlScheme, applePayOptions: applePayOptions, - klarnaOptions: klarnaOptions, - cardPaymentOptions: cardPaymentOptions) + klarnaOptions: klarnaOptions) self.init( paymentHandling: paymentHandling, diff --git a/src/index.tsx b/src/index.tsx index 52ccb3401..e37138768 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -26,7 +26,10 @@ export { } from './models/PrimerClientSession'; export { PrimerRawData as RawData, - PrimerRawCardData as RawCardData + PrimerRawCardData as RawCardData, + PrimerBancontactCardRedirectData as BancontactCardRedirectData, + PrimerRawPhoneNumberData as RawPhoneNumberData, + PrimerRawRetailerData as RawRetailerData } from './models/PrimerRawData'; export { PrimerCheckoutAdditionalInfo as CheckoutAdditionalInfo, @@ -36,11 +39,11 @@ export { RetailOutletsRetail } from './models/RetailOutletsRetail'; export { - PrimerCheckoutData, - PrimerCheckoutDataPayment, + PrimerCheckoutData as CheckoutData, + PrimerCheckoutDataPayment as CheckoutDataPayment, } from './models/PrimerCheckoutData'; export { - PrimerCheckoutPaymentMethodData + PrimerCheckoutPaymentMethodData as CheckoutPaymentMethodData } from './models/PrimerCheckoutPaymentMethodData'; export { PrimerError From 8c201c5dc00a55eb4ccb4e24e59df3b1fa2f8ccd Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 10:35:46 +0200 Subject: [PATCH 008/121] Refactor errors --- .../PrimerSettings+Extensions.swift | 4 +- .../RNTNativeUIManager.swift | 10 +- .../RNTRawDataManager.swift | 30 +- .../Managers/RNTAssetsManager.swift | 9 +- .../RNTPrimerHeadlessUniversalCheckout.swift | 265 +----------------- ios/Sources/Helpers/UIImage+Extensions.swift | 10 +- ios/Sources/RNTPrimer.swift | 15 +- 7 files changed, 74 insertions(+), 269 deletions(-) diff --git a/ios/Sources/DataModels/PrimerSettings+Extensions.swift b/ios/Sources/DataModels/PrimerSettings+Extensions.swift index 78b44edb5..f6ffb9b1b 100644 --- a/ios/Sources/DataModels/PrimerSettings+Extensions.swift +++ b/ios/Sources/DataModels/PrimerSettings+Extensions.swift @@ -7,14 +7,14 @@ extension PrimerSettings { self.init() } else { guard let settingsData = settingsStr!.data(using: .utf8) else { - let err = RNTNativeError(errorId: "invalid-value", errorDescription: "The value of the settings object is invalid.", recoverySuggestion: "Provide a valid settings object") + let err = RNTNativeError(errorId: "native-ios", errorDescription: "The value of the 'settings' object is invalid.", recoverySuggestion: "Provide a valid 'settings' object") throw err } let settingsJson = try JSONSerialization.jsonObject(with: settingsData) guard let settingsJson = settingsJson as? [String: Any] else { - let err = RNTNativeError(errorId: "invalid-value", errorDescription: "Settings is not a valid JSON", recoverySuggestion: "Provide a valid settings object") + let err = RNTNativeError(errorId: "native-ios", errorDescription: "The 'settings' object is not a valid JSON", recoverySuggestion: "Provide a valid 'settings' object") throw err } diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift index aa89dbdfc..6bf229696 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift @@ -45,12 +45,18 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { func showPaymentMethod(_ intent: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { do { guard let paymentMethodNativeUIManager = paymentMethodNativeUIManager else { - let err = RNTNativeError(errorId: "uninitialized-manager", errorDescription: "The NativeUIManager has not been initialized.", recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The NativeUIManager has not been initialized.", + recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") throw err } guard let intent = PrimerSessionIntent(rawValue: intent) else { - let err = RNTNativeError(errorId: "invalid value", errorDescription: "The NativeUIManager has not been initialized.", recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Invalid value for 'intent'.", + recoverySuggestion: "'intent' can be 'CHECKOUT' or 'VAULT'.") throw err } diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index 06ed1995d..ff1896fae 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -60,7 +60,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { public func configure(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { guard let rawDataManager = rawDataManager else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.initialize function first."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The RawDataManager has not been initialized", + recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) return } @@ -87,7 +90,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rejecter: RCTPromiseRejectBlock ) { guard let rawDataManager = rawDataManager else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.configure function first."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The RawDataManager has not been initialized", + recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) return } @@ -103,7 +109,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rejecter: RCTPromiseRejectBlock ) { guard let rawDataManager = rawDataManager else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.configure function first."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The RawDataManager has not been initialized", + recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) return } @@ -132,7 +141,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { return } - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Failed to decode RawData on iOS. Make sure you're providing a valid 'PrimerRawData' (or any inherited) object"]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to decode RawData on iOS.", + recoverySuggestion: "Make sure you're providing a valid 'RawData' (or any inherited) object.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) } @@ -142,7 +154,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rejecter: RCTPromiseRejectBlock ) { guard let rawDataManager = rawDataManager else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.configure function first."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The RawDataManager has not been initialized", + recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) return } @@ -157,7 +172,10 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rejecter: RCTPromiseRejectBlock ) { guard let rawDataManager = rawDataManager else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "The PrimerHeadlessUniversalCheckoutRawDataManager has not been initialized. Make sure you have called the PrimerHeadlessUniversalCheckoutRawDataManager.configure function first."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "The RawDataManager has not been initialized", + recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") rejecter(err.rnError["errorId"]!, err.rnError["description"], err) return } diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift index 94cdec6de..1d365367a 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift @@ -28,7 +28,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { do { guard let paymentMethodAsset = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getPaymentMethodAsset(for: paymentMethodType) else { let err = RNTNativeError( - errorId: "missing-asset", + errorId: "native-ios", errorDescription: "Failed to find asset of \(paymentMethodType) for this session", recoverySuggestion: nil) throw err @@ -38,7 +38,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { resolver(["paymentMethodAsset": rntPaymentMethodAsset]) } else { let err = RNTNativeError( - errorId: "missing-asset", + errorId: "native-ios", errorDescription: "Failed to create the RNTPrimerPaymentMethodAsset", recoverySuggestion: nil) throw err @@ -59,7 +59,10 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { let rntPaymentMethodAssets = paymentMethodAssets.compactMap({ try? RNTPrimerPaymentMethodAsset(primerPaymentMethodAsset: $0).toJsonObject() }) guard !rntPaymentMethodAssets.isEmpty else { - let err = RNTNativeError(errorId: "missing-asset", errorDescription: "Failed to find assets for this session", recoverySuggestion: nil) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to find assets for this session", + recoverySuggestion: nil) throw err } diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift index 541f54e7f..ff66c54dc 100644 --- a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift @@ -183,7 +183,10 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { DispatchQueue.main.async { do { guard let implementedRNCallbacksData = implementedRNCallbacksStr.data(using: .utf8) else { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Failed to convert string to data"]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to convert string to data", + recoverySuggestion: nil) throw err } self.implementedRNCallbacks = try JSONDecoder().decode(ImplementedRNCallbacks.self, from: implementedRNCallbacksData) @@ -267,9 +270,9 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } else { if self.settings?.paymentHandling == .manual { let err = RNTNativeError( - errorId: "native-bridge", + errorId: "native-ios", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + recoverySuggestion: "Callback [\(rnCallbackName)] must be implemented.") self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } @@ -299,9 +302,9 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } else { if self.settings?.paymentHandling == .manual { let err = RNTNativeError( - errorId: "native-bridge", + errorId: "native-ios", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + recoverySuggestion: "Callback [\(rnCallbackName)] must be implemented.") self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } @@ -323,9 +326,9 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } else { let err = RNTNativeError( - errorId: "native-bridge", + errorId: "native-ios", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + recoverySuggestion: "Callback [\(rnCallbackName)] must be implemented.") let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) @@ -387,9 +390,9 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } else { let err = RNTNativeError( - errorId: "native-bridge", + errorId: "native-ios", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") + recoverySuggestion: "Callback [\(rnCallbackName)] must be implemented.") self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) } } @@ -405,12 +408,6 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel withName: rnCallbackName, body: nil) - } else { - let err = RNTNativeError( - errorId: "native-bridge", - errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)].") - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } } @@ -431,12 +428,6 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) } - } else { - let err = RNTNativeError( - errorId: "native-bridge", - errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)].") - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } } @@ -470,13 +461,8 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } else { - let err = RNTNativeError( - errorId: "native-bridge", - errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to handle the payment creation.") - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) - - // RN Dev hasn't implemented this callback,continue the payment flow. + // 'primerHeadlessUniversalCheckoutWillCreatePaymentWithData' hasn't + // been implemented on the RN side, continue the payment flow. decisionHandler(.continuePaymentCreation()) } } @@ -495,13 +481,6 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutUID self.sendEvent( withName: rnCallbackName, body: ["paymentMethodType": paymentMethodType]) - - } else { - let err = RNTNativeError( - errorId: "native-bridge", - errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to get notified when the payment method is getting prepared to be presented.") - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } } @@ -515,223 +494,7 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutUID withName: rnCallbackName, body: ["paymentMethodType": paymentMethodType]) - } else { - let err = RNTNativeError( - errorId: "native-bridge", - errorDescription: "Callback [\(rnCallbackName)] is not implemented.", - recoverySuggestion: "[Optional] Consider implementing [\(rnCallbackName)] to get notified when the payment method is getting presented.") - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) } } } } - - - - - - - - - - - - - - - - -//extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDelegate { -// -// func primerHeadlessUniversalCheckoutPreparationDidStart(for paymentMethodType: String) { -// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPrepareStart.stringValue, body: ["paymentMethodType": paymentMethodType]) -// } -// -// func primerHeadlessUniversalCheckoutTokenizationDidStart(for paymentMethodType: String) { -// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCTokenizeStart.stringValue, body: ["paymentMethodType": paymentMethodType]) -// } -// -// func primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods(_ paymentMethodTypes: [String]) { -// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCAvailablePaymentMethodsLoaded.stringValue, body: ["paymentMethodTypes": paymentMethodTypes]) -// } -// -// func primerHeadlessUniversalCheckoutPaymentMethodDidShow(for paymentMethodType: String) { -// sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onHUCPaymentMethodShow.stringValue, body: ["paymentMethodType": paymentMethodType]) -// } -// -// func primerHeadlessUniversalCheckoutDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { -// if self.implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true { -// self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in -// DispatchQueue.main.async { -// if let errorMessage = errorMessage { -// decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) -// } else if let newClientToken = newClientToken { -// decisionHandler(.continueWithNewClientToken(newClientToken)) -// } else { -// decisionHandler(.succeed()) -// } -// } -// } -// -// do { -// let data = try JSONEncoder().encode(paymentMethodTokenData) -// let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) -// DispatchQueue.main.async { -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onTokenizeSuccess.stringValue, body: json) -// } -// } catch { -// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) -// } -// } else { -// // RN dev hasn't opted in on listening the tokenization callback. -// // Throw an error if it's the manual flow, ignore if it's the -// // auto flow. -// } -// } -// -// func primerHeadlessUniversalCheckoutDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerResumeDecision) -> Void) { -// if self.implementedRNCallbacks?.isOnResumeSuccessImplemented == true { -// self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in -// DispatchQueue.main.async { -// if let errorMessage = errorMessage { -// decisionHandler(.fail(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) -// } else if let resumeToken = resumeToken { -// decisionHandler(.continueWithNewClientToken(resumeToken)) -// } else { -// decisionHandler(.succeed()) -// } -// } -// } -// -// DispatchQueue.main.async { -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumeSuccess.stringValue, body: ["resumeToken": resumeToken]) -// } -// } else { -// // RN dev hasn't opted in on listening the tokenization callback. -// // Throw an error if it's the manual flow. -// } -// } -// -// func primerHeadlessUniversalCheckoutDidFail(withError err: Error) { -// if self.implementedRNCallbacks?.isOnErrorImplemented == true { -// // Send the error message to the RN bridge. -// self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) -// -// } else { -// // RN dev hasn't opted in on listening SDK dismiss. -// // Ignore! -// } -// } -// -// func primerHeadlessUniversalCheckoutDidCompleteCheckoutWithData(_ data: PrimerCheckoutData) { -// DispatchQueue.main.async { -// if self.implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true { -// do { -// let checkoutData = try JSONEncoder().encode(data) -// let checkoutJson = try JSONSerialization.jsonObject(with: checkoutData, options: .allowFragments) -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutComplete.stringValue, body: checkoutJson) -// } catch { -// self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: true) -// } -// } else { -// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutComplete] should be implemented."]) -// self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) -// } -// } -// } -// -// func primerHeadlessUniversalCheckoutDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { -// DispatchQueue.main.async { -// if self.implementedRNCallbacks?.isOnResumePendingImplemented == true { -// do { -// let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) -// let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onResumePending.stringValue, body: checkoutAdditionalInfoJson) -// } catch { -// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) -// self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) -// } -// } else { -// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onResumePending] should be implemented."]) -// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) -// self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) -// } -// } -// } -// -// func primerHeadlessUniversalCheckoutDidReceiveAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { -// DispatchQueue.main.async { -// if self.implementedRNCallbacks?.isOnCheckoutReceivedAdditionalInfoImplemented == true { -// do { -// let checkoutAdditionalInfo = try JSONEncoder().encode(additionalInfo) -// let checkoutAdditionalInfoJson = try JSONSerialization.jsonObject(with: checkoutAdditionalInfo, options: .allowFragments) -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onCheckoutReceivedAdditionalInfo.stringValue, body: checkoutAdditionalInfoJson) -// } catch { -// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) -// self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) -// } -// } else { -// let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutReceivedAdditionalInfo] should be implemented."]) -// let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) -// self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) -// } -// } -// } -// -// func primerHeadlessUniversalCheckoutClientSessionWillUpdate() { -// if self.implementedRNCallbacks?.isOnBeforeClientSessionUpdateImplemented == true { -// DispatchQueue.main.async { -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforeClientSessionUpdate.stringValue, body: nil) -// } -// } else { -// // React Native app hasn't implemented this callback, ignore. -// } -// } -// -// func primerHeadlessUniversalCheckoutClientSessionDidUpdate(_ clientSession: PrimerClientSession) { -// if self.implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true { -// do { -// let data = try JSONEncoder().encode(clientSession) -// let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) -// DispatchQueue.main.async { -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onClientSessionUpdate.stringValue, body: json) -// } -// } catch { -// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) -// } -// } else { -// // RN Dev hasn't implemented this callback, ignore. -// } -// } -// -// func primerHeadlessUniversalCheckoutWillCreatePaymentWithData(_ data: PrimerCheckoutPaymentMethodData, decisionHandler: @escaping (PrimerPaymentCreationDecision) -> Void) { -// if self.implementedRNCallbacks?.isOnBeforePaymentCreateImplemented == true { -// self.primerWillCreatePaymentWithDataDecisionHandler = { errorMessage in -// DispatchQueue.main.async { -// if let errorMessage = errorMessage { -// decisionHandler(.abortPaymentCreation(withErrorMessage: errorMessage.isEmpty ? nil : errorMessage)) -// } else { -// decisionHandler(.continuePaymentCreation()) -// } -// } -// } -// -// DispatchQueue.main.async { -// do { -// let checkoutPaymentmethodData = try JSONEncoder().encode(data) -// let checkoutPaymentmethodJson = try JSONSerialization.jsonObject(with: checkoutPaymentmethodData, options: .allowFragments) -// self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onBeforePaymentCreate.stringValue, body: checkoutPaymentmethodJson) -// } catch { -// self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) -// } -// } -// } else { -// // RN Dev hasn't implemented this callback, send a decision to continue the flow. -// DispatchQueue.main.async { -// decisionHandler(.continuePaymentCreation()) -// } -// } -// } -//} - - diff --git a/ios/Sources/Helpers/UIImage+Extensions.swift b/ios/Sources/Helpers/UIImage+Extensions.swift index 4c33d3293..bc8148f95 100644 --- a/ios/Sources/Helpers/UIImage+Extensions.swift +++ b/ios/Sources/Helpers/UIImage+Extensions.swift @@ -11,12 +11,18 @@ extension UIImage { func store(withName name: String) throws -> URL { guard let imageURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("\(name).png") else { - let err = RNTNativeError(errorId: "error", errorDescription: "Failed to create URL for asset", recoverySuggestion: nil) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to create URL for asset", + recoverySuggestion: nil) throw err } guard let pngData = self.pngData() else { - let err = RNTNativeError(errorId: "error", errorDescription: "Failed to get image's PNG data", recoverySuggestion: nil) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to get image's PNG data", + recoverySuggestion: nil) throw err } diff --git a/ios/Sources/RNTPrimer.swift b/ios/Sources/RNTPrimer.swift index c5a953ccd..0ddaa6a7b 100644 --- a/ios/Sources/RNTPrimer.swift +++ b/ios/Sources/RNTPrimer.swift @@ -241,7 +241,10 @@ class RNTPrimer: RCTEventEmitter { DispatchQueue.main.async { do { guard let implementedRNCallbacksData = implementedRNCallbacksStr.data(using: .utf8) else { - let err = NSError(domain: "native-bridge", code: 0, userInfo: [NSLocalizedDescriptionKey: "Failed to convert string to data"]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to convert string to data", + recoverySuggestion: nil) throw err } @@ -289,7 +292,10 @@ extension RNTPrimer: PrimerDelegate { self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: true) } } else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onCheckoutComplete] should be implemented."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Callback [onCheckoutComplete] should be implemented.", + recoverySuggestion: nil) self.handleRNBridgeError(err, checkoutData: data, stopOnDebug: false) } } @@ -307,7 +313,10 @@ extension RNTPrimer: PrimerDelegate { self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) } } else { - let err = NSError(domain: "native-bridge", code: 1, userInfo: [NSLocalizedDescriptionKey: "Callback [onResumePending] should be implemented."]) + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Callback [onResumePending] should be implemented.", + recoverySuggestion: nil) let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) } From 8378c44b849a6cd4a7a37aa7b7460b8b2a0b7573 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 10:56:39 +0200 Subject: [PATCH 009/121] Filter out unsupported implementation --- .../PrimerHeadlessUniversalCheckout_PaymentMethod.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift b/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift index 79f9ac6cc..295468e43 100644 --- a/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift +++ b/ios/Sources/DataModels/PrimerHeadlessUniversalCheckout_PaymentMethod.swift @@ -14,7 +14,7 @@ extension PrimerHeadlessUniversalCheckout.PaymentMethod { return [ "paymentMethodType": paymentMethodType, "supportedPrimerSessionIntents": self.supportedPrimerSessionIntents.compactMap({ $0.rawValue }), - "paymentMethodManagerCategories": self.paymentMethodManagerCategories.compactMap({ $0.rawValue }) + "paymentMethodManagerCategories": self.paymentMethodManagerCategories.compactMap({ $0.rawValue }).filter({ $0 != "CARD_COMPONENTS" }) ] } } From 3f5150e43e5df541e35af5ccea21c0e14916d13b Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 10:56:49 +0200 Subject: [PATCH 010/121] Bump --- .../Managers/PaymentMethodManagers/RawDataManager.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index b4d7b22d2..f6fb45f15 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -1,5 +1,4 @@ import { NativeEventEmitter, NativeModules, EmitterSubscription } from 'react-native'; -import type { PrimerRawData } from "../../.."; import { PrimerError } from '../../../models/PrimerError'; import type { PrimerInputElementType } from '../../../models/PrimerInputElementType'; From 53ced6f626069fbe95f10e733b23833f8145cad1 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:23:58 +0300 Subject: [PATCH 011/121] Bump example --- .../screens/HUCRawCardRedirectDataScreen.tsx | 394 ------------------ .../screens/HUCRawRetailDataVoucherScreen.tsx | 358 ---------------- .../src/screens/HeadlessCheckoutScreen.tsx | 2 +- 3 files changed, 1 insertion(+), 753 deletions(-) delete mode 100644 example/src/screens/HUCRawCardRedirectDataScreen.tsx delete mode 100644 example/src/screens/HUCRawRetailDataVoucherScreen.tsx diff --git a/example/src/screens/HUCRawCardRedirectDataScreen.tsx b/example/src/screens/HUCRawCardRedirectDataScreen.tsx deleted file mode 100644 index c24b9de1d..000000000 --- a/example/src/screens/HUCRawCardRedirectDataScreen.tsx +++ /dev/null @@ -1,394 +0,0 @@ -import React, { useEffect, useState } from 'react'; - -import { - Image, - ScrollView, - Text, - TouchableOpacity, - View -} from 'react-native'; -import { createClientSession, createPayment, resumePayment } from '../network/api'; -import { appPaymentParameters } from '../models/IClientSessionRequestBody'; -import type { IPayment } from '../models/IPayment'; -import { getPaymentHandlingStringVal } from '../network/Environment'; -import { ActivityIndicator } from 'react-native'; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerRawCardRedirectData, - PrimerBancontactCardRedirectData -} from '@primer-io/react-native'; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from 'src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager'; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawCardRedirectDataScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; - log = combinedLog; - } - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; - - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); - handler.handleSuccess(); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - handler.handleFailure("My RN message"); - } - } - - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); - handler.handleSuccess(); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); - handler.handleFailure("My RN message"); - } - } - - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io', - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "ADYEN_BANCONTACT_CARD", - onMetadataChange: (data) => { - const cardNetwork = data?.cardNetwork; - if (cardNetwork) { - updateLogs(`\nโ„น๏ธ Detected card network ${data.cardNetwork}`); - } - }, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - } - } - await HeadlessUniversalCheckoutRawDataManager.configure(options); - const requiredInputElementTypes = await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerBancontactCardRedirectData = { - cardNumber: "", - expiryMonth: "14", - expiryYear: "2024", - cardholderName: "John" - } - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryMonth = "03" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryYear = "2030" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4871049999999910" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - - }, 1000); - }, 1000); - }, 1000); - }, 1000); - - // rawCardData.number = "4242424242424242" - // rawCardData.expiryMonth = "12" - // rawCardData.expiryYear = "2024" - // rawCardData.cvv = "123" - // rawCardData.cardholderName = "John" - // PrimerHeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - - {renderLoadingOverlay()} - - ); -}; diff --git a/example/src/screens/HUCRawRetailDataVoucherScreen.tsx b/example/src/screens/HUCRawRetailDataVoucherScreen.tsx deleted file mode 100644 index b782ada2e..000000000 --- a/example/src/screens/HUCRawRetailDataVoucherScreen.tsx +++ /dev/null @@ -1,358 +0,0 @@ -import React, { useEffect, useState } from "react"; - -import { Image, ScrollView, Text, TouchableOpacity, View } from "react-native"; -import { - createClientSession, - createPayment, - resumePayment, -} from "../network/api"; -import { appPaymentParameters } from "../models/IClientSessionRequestBody"; -import type { IPayment } from "../models/IPayment"; -import { getPaymentHandlingStringVal } from "../network/Environment"; -import { ActivityIndicator } from "react-native"; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerCheckoutAdditionalInfo -} from "@primer-io/react-native"; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from "src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager"; -import type { PrimerRawRetailerData } from "src/models/PrimerRawData"; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawRetailDataVoucherScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState( - undefined - ); - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ""; - const combinedLog = currentLog + "\n" + str; - log = combinedLog; - }; - - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs( - `\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify( - paymentMethodTypes - )}` - ); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… onCheckoutComplete`); - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate("Result", checkoutData); - }; - - const onResumePending = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… onResumePending`); - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - setIsLoading(false); - props.navigation.navigate("Result", additionalInfo); - } - - const onTokenizeSuccess = async ( - paymentMethodTokenData: PrimerPaymentMethodTokenData, - handler: PrimerTokenizationHandler - ) => { - updateLogs( - `\nโœ… onTokenizeSuccess:\n${JSON.stringify( - paymentMethodTokenData, - null, - 2 - )}` - ); - - try { - const payment: IPayment = await createPayment( - paymentMethodTokenData.token - ); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs( - "\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang." - ); - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate("Result", payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate("Result", err); - } - }; - - const onResumeSuccess = async ( - resumeToken: string, - handler: PrimerResumeHandler - ) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate("Result", payment); - setIsLoading(false); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate("Result", err); - setIsLoading(false); - } - }; - - const onError = ( - error: PrimerError, - checkoutData: PrimerCheckoutData | null, - handler: PrimerErrorHandler | undefined - ) => { - updateLogs( - `\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify( - error, - null, - 2 - )}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}` - ); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - }; - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal( - appPaymentParameters.paymentHandling - ), - paymentMethodOptions: { - iOS: { - urlScheme: "merchant://primer.io", - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onResumePending: onResumePending, - onError: onError, - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - }; - } - - useEffect(() => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - .then((paymentMethodTypes) => { - updateLogs( - `\nโ„น๏ธ Available payment methods:\n${JSON.stringify( - paymentMethodTypes, - null, - 2 - )}` - ); - startHUCRawDataManager(); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "XENDIT_RETAIL_OUTLETS", - onMetadataChange: (data) => {}, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - }, - }; - const retailers = await HeadlessUniversalCheckoutRawDataManager.configure(options); - updateLogs(`\n๐Ÿ“๐Ÿ“ Retailer List:\n${JSON.stringify(retailers)}`); - - let rawRetailerData: PrimerRawRetailerData = { - id: "CEBUANA", - }; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawRetailerData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return ( - - - - ); - } - }; - - return ( - - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - {log} - - {renderLoadingOverlay()} - - ); -}; diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 741c601e4..381a15891 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -198,7 +198,7 @@ export const HeadlessCheckoutScreen = ({ navigation }) => { if (paymentMethod.paymentMethodManagerCategories.includes("NATIVE_UI") && paymentMethod.supportedPrimerSessionIntents.includes("CHECKOUT")) { const nativeUIManager = new NativeUIManager(); await nativeUIManager.initialize(paymentMethod.paymentMethodType); - await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + await nativeUIManager.showPaymentMethod(PrimerSessionIntent.CHECKOUT); return; } } From 38ff5b100e359ff88929d21390e9872301c48ca0 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 11 Oct 2022 15:39:47 +0300 Subject: [PATCH 012/121] Renames --- example/src/screens/HeadlessCheckoutScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 381a15891..741c601e4 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -198,7 +198,7 @@ export const HeadlessCheckoutScreen = ({ navigation }) => { if (paymentMethod.paymentMethodManagerCategories.includes("NATIVE_UI") && paymentMethod.supportedPrimerSessionIntents.includes("CHECKOUT")) { const nativeUIManager = new NativeUIManager(); await nativeUIManager.initialize(paymentMethod.paymentMethodType); - await nativeUIManager.showPaymentMethod(PrimerSessionIntent.CHECKOUT); + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); return; } } From bf08fa0ffa9330f4e05d23e721886ad6fff6196f Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 25 Oct 2022 15:02:14 +0300 Subject: [PATCH 013/121] Bump example app --- example/src/network/api.ts | 31 +- .../src/screens/HeadlessCheckoutScreen.tsx | 516 ++++++++++-------- example/src/screens/RawCardDataScreen.tsx | 120 +++- example/src/screens/ResultScreen.tsx | 36 +- example/src/screens/SettingsScreen.tsx | 26 +- .../PaymentMethodManagers/RawDataManager.ts | 3 +- .../PrimerPaymentMethodManagerCategory.ts | 5 + 7 files changed, 491 insertions(+), 246 deletions(-) create mode 100644 src/models/PrimerPaymentMethodManagerCategory.ts diff --git a/example/src/network/api.ts b/example/src/network/api.ts index 06d2aec41..440a8c6fd 100644 --- a/example/src/network/api.ts +++ b/example/src/network/api.ts @@ -3,21 +3,30 @@ import { getEnvironmentStringVal } from './Environment'; import { appPaymentParameters, IClientSessionActionsRequestBody, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; import type { IPayment } from '../models/IPayment'; import { APIVersion, getAPIVersionStringVal } from './APIVersion'; +import { customApiKey, customClientToken } from '../screens/SettingsScreen'; const baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; -let staticHeaders = { +let staticHeaders: { [key: string]: string } = { 'Content-Type': 'application/json', 'environment': getEnvironmentStringVal(appPaymentParameters.environment), } export const createClientSession = async () => { const url = baseUrl + '/client-session'; - const headers = { + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': getAPIVersionStringVal(APIVersion.v3), }; + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + if (customClientToken) { + return { "clientToken": customClientToken }; + } + try { console.log('\n\n'); console.log(`REQUEST:\n ${url}`); @@ -49,7 +58,11 @@ export const createClientSession = async () => { export const setClientSessionActions = async (body: IClientSessionActionsRequestBody) => { const url = baseUrl + '/client-session/actions'; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } try { console.log('\n\n'); @@ -83,7 +96,11 @@ export const setClientSessionActions = async (body: IClientSessionActionsRequest export const createPayment = async (paymentMethodToken: string) => { const url = baseUrl + '/payments'; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } const body = { paymentMethodToken: paymentMethodToken }; try { @@ -118,7 +135,11 @@ export const createPayment = async (paymentMethodToken: string) => { export const resumePayment = async (paymentId: string, resumeToken: string) => { const url = baseUrl + `/payments/${paymentId}/resume`; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } const body = { resumeToken: resumeToken }; diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 741c601e4..b03ebf4e2 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -1,11 +1,10 @@ import React, { useEffect, useState } from 'react'; import { + Alert, Image, - ScrollView, - Text, TouchableOpacity, - View + View, } from 'react-native'; import { createClientSession, createPayment, resumePayment } from '../network/api'; import { appPaymentParameters } from '../models/IClientSessionRequestBody'; @@ -13,270 +12,352 @@ import type { IPayment } from '../models/IPayment'; import { getPaymentHandlingStringVal } from '../network/Environment'; import { ActivityIndicator } from 'react-native'; import { - HeadlessUniversalCheckout, - PrimerSettings, - SessionIntent, - PaymentMethod, Asset, AssetsManager, - NativeUIManager + CheckoutAdditionalInfo, + CheckoutData, + HeadlessUniversalCheckout, + NativeUIManager, + PaymentMethod, + PrimerSettings, + SessionIntent } from '@primer-io/react-native'; -let paymentId: string | null = null; -let logs: string = ""; +let log: string = ""; +let merchantPaymentId: string | null = null; +let merchantCheckoutData: CheckoutData | null = null; +let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; +let merchantPayment: IPayment | null = null; +let merchantPrimerError: Error | unknown | null = null; -// @ts-ignore -export const HeadlessCheckoutScreen = ({ navigation }) => { +const selectImplemetationType = (paymentMethod: PaymentMethod): Promise => { + return new Promise((resolve, reject) => { + const buttons: any[] = []; - const [isLoading, setIsLoading] = useState(false); - const [clientSession, setClientSession] = useState(undefined); - const [availablePaymentMethods, setAvailablePaymentMethods] = useState(undefined); - const [assets, setAssets] = useState(undefined); - const [tmpLogs, setTmpLogs] = useState(""); + paymentMethod.paymentMethodManagerCategories.forEach(category => { + buttons.push({ + text: category, + style: "default", + onPress: () => { + resolve(category); + } + }); + }); - const updateLogs = (str: string) => { - const currentLog = logs || ''; - logs = currentLog + '\n' + str; - console.log(logs); - setTmpLogs(logs); - } + buttons.push({ + text: "Cancel", + style: "cancel", + onPress: () => { + const err = new Error("Operation cancelled"); + reject(err); + } + }); - useEffect(() => { - createClientSession() - .then(session => { - setClientSession(session); + Alert.alert( + "", + "Select implementation to test", + buttons, + { + cancelable: true, + } + ); + }) +} - startHeadlessUniversalCheckout(session.clientToken) - .then(() => { +export const HeadlessCheckoutScreen = (props: any) => { + const [isLoading, setIsLoading] = useState(true); + const [clientSession, setClientSession] = useState(null); + const [paymentMethods, setPaymentMethods] = useState(undefined); + const [paymentMethodsAssets, setPaymentMethodsAssets] = useState(undefined); - }) - .catch(err => { - console.error(err); - }); - }) - .catch(err => { - console.error(err); - }) - }, []); + const updateLogs = (str: string) => { + console.log(str); + const currentLog = log; + const combinedLog = currentLog + "\n" + str; + log = combinedLog; + } - const startHeadlessUniversalCheckout = async (clientToken: string): Promise => { - const settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io' - }, + let settings: PrimerSettings = { + paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' }, - headlessUniversalCheckoutCallbacks: { - onAvailablePaymentMethodsLoad: (availablePaymentMethods) => { - updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad: ${JSON.stringify(availablePaymentMethods, null, 2)}`); - }, - onBeforeClientSessionUpdate: () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }, - onClientSessionUpdate: (clientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate: ${JSON.stringify(clientSession, null, 2)}`); - }, - onBeforePaymentCreate: (checkoutPaymentData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate: ${JSON.stringify(checkoutPaymentData, null, 2)}`); - handler.continuePaymentCreation(); - }, - onTokenizationStart: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onTokenizationStart: ${paymentMethodType}`); - }, - onTokenizationSuccess: async (paymentMethodTokenData, handler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - setClientSession(undefined); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } + }, + headlessUniversalCheckoutCallbacks: { + onAvailablePaymentMethodsLoad: (availablePaymentMethods => { + updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad\n${JSON.stringify(availablePaymentMethods, null, 2)}\n`); + setIsLoading(false); + }), + onPreparationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPreparationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onPaymentMethodShow: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPaymentMethodShow\npaymentMethodType: ${paymentMethodType}\n`); + }, + onTokenizationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onTokenizationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onBeforeClientSessionUpdate: () => { + updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate\n`); + }, + onClientSessionUpdate: (clientSession) => { + updateLogs(`\nโ„น๏ธ onClientSessionUpdate\nclientSession: ${JSON.stringify(clientSession, null, 2)}\n`); + }, + onBeforePaymentCreate: (tmpCheckoutData, handler) => { + updateLogs(`\nโ„น๏ธ onBeforePaymentCreate\ncheckoutData: ${JSON.stringify(tmpCheckoutData, null, 2)}\n`); + handler.continuePaymentCreation(); + }, + onCheckoutAdditionalInfo: (additionalInfo) => { + merchantCheckoutAdditionalInfo = additionalInfo; + updateLogs(`\nโ„น๏ธ onCheckoutPending\nadditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}\n`); + setIsLoading(false); + }, + onCheckoutComplete: (checkoutData) => { + merchantCheckoutData = checkoutData; + updateLogs(`\nโœ… onCheckoutComplete\ncheckoutData: ${JSON.stringify(checkoutData, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onCheckoutPending: (checkoutAdditionalInfo) => { + merchantCheckoutAdditionalInfo = checkoutAdditionalInfo; + updateLogs(`\nโœ… onCheckoutPending\nadditionalInfo: ${JSON.stringify(checkoutAdditionalInfo, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onTokenizationSuccess: async (paymentMethodTokenData, handler) => { + updateLogs(`\nโ„น๏ธ onTokenizationSuccess\npaymentMethodTokenData: ${JSON.stringify(paymentMethodTokenData, null, 2)}\n`); + setIsLoading(false); - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); + try { + const payment: IPayment = await createPayment(paymentMethodTokenData.token); + merchantPayment = payment; - } else { - setIsLoading(false); - handler.complete(); + if (payment.requiredAction && payment.requiredAction.clientToken) { + merchantPaymentId = payment.id; + + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + updateLogs("\nโš ๏ธ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + + } else { setIsLoading(false); handler.complete(); + navigateToResultScreen(); } - }, - onCheckoutResume: async (resumeToken, handler) => { - updateLogs(`\nโœ… onCheckoutResume: ${JSON.stringify(resumeToken)}`); - setClientSession(undefined); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - setIsLoading(false); - - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - handler.complete(); - } catch (err) { - console.error(err); - paymentId = null; - setIsLoading(false); + } catch (err) { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + handler.complete(); + + console.error(err); + navigateToResultScreen(); + } + }, + onCheckoutResume: async (resumeToken, handler) => { + updateLogs(`\nโ„น๏ธ onCheckoutResume\nresumeToken: ${resumeToken}`); + + try { + if (merchantPaymentId) { + const payment: IPayment = await resumePayment(merchantPaymentId, resumeToken); + merchantPayment = payment; handler.complete(); + updateLogs(`\nโœ… Payment resumed\npayment: ${JSON.stringify(payment, null, 2)}`); + setIsLoading(false); + navigateToResultScreen(); + merchantPaymentId = null; + + } else { + const err = new Error("Invalid value for paymentId"); + throw err; } - }, - onCheckoutAdditionalInfo: (additionalInfo) => { - updateLogs(`\nโ„น๏ธ onCheckoutAdditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}`); - }, - onCheckoutPending: (additionalInfo) => { - updateLogs(`\nโ„น๏ธ onCheckoutPending: ${JSON.stringify(additionalInfo, null, 2)}`); - }, - onCheckoutComplete: (checkoutData) => { - updateLogs(`\nโ„น๏ธ onCheckoutComplete: ${JSON.stringify(checkoutData, null, 2)}`); - setClientSession(undefined); - }, - onError: (error, checkoutData) => { - updateLogs(`\n๐Ÿ›‘ onError: ${JSON.stringify(error, null, 2)} ${JSON.stringify(checkoutData, null, 2)}`); - }, - onPreparationStart: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onPreparationStart: ${paymentMethodType}`); - }, - onPaymentMethodShow: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onPaymentMethodShow: ${paymentMethodType}`); - }, - } - }; + + } catch (err) { + console.error(err); + handler.complete(); + updateLogs(`\n๐Ÿ›‘ Payment resume\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName + merchantPaymentId = null; + navigateToResultScreen(); + } + }, + onError: (err) => { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ onError\nerror: ${JSON.stringify(err, null, 2)}`); + console.error(err); + setIsLoading(false); + navigateToResultScreen(); } } + }; - const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); - setAvailablePaymentMethods(availablePaymentMethods); - getPaymentMethodAssets(); + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + } } - const getPaymentMethodAssets = (): Promise => { + useEffect(() => { + createClientSessionIfNeeded() + .then((session) => { + setIsLoading(false); + startHUC(session.clientToken); + }) + .catch(err => { + setIsLoading(false); + console.error(err); + }); + }, []); + + const createClientSessionIfNeeded = (): Promise => { return new Promise(async (resolve, reject) => { try { - const assetsManager = new AssetsManager(); - const assets: Asset[] = await assetsManager.getPaymentMethodAssets(); - setAssets(assets); - resolve(); + if (clientSession === null) { + const newClientSession = await createClientSession(); + setClientSession(newClientSession); + resolve(newClientSession); + } else { + resolve(clientSession); + } } catch (err) { - console.error(err); reject(err); } }); } - const payWithPaymentMethod = async (paymentMethodType: string) => { + const navigateToResultScreen = async () => { try { - if (!clientSession) { - const session = await createClientSession(); - setClientSession(session); - } + props.navigation.navigate("Result", { + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantCheckoutData: merchantCheckoutData, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError + }); + + setClientSession(null); + setIsLoading(true); + await createClientSessionIfNeeded(); - const paymentMethod = availablePaymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); + } catch (err) { + console.error(err); + } + + setIsLoading(false); + } - if (paymentMethod) { - if (paymentMethod.paymentMethodManagerCategories.includes("NATIVE_UI") && paymentMethod.supportedPrimerSessionIntents.includes("CHECKOUT")) { - const nativeUIManager = new NativeUIManager(); - await nativeUIManager.initialize(paymentMethod.paymentMethodType); - await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); - return; - } + const startHUC = async (clientToken: string) => { + try { + const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + setPaymentMethods(availablePaymentMethods); + // updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(availablePaymentMethods, null, 2)}`); + const assetsManager = new AssetsManager(); + const assets = await assetsManager.getPaymentMethodAssets(); + setPaymentMethodsAssets(assets); + + } catch (err) { + console.error(err); + } + } + + const paymentMethodButtonTapped = async (paymentMethodType: string) => { + try { + const paymentMethod = paymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); + + if (!paymentMethod) { + return; } - const err = new Error("Failed to create manager"); - throw err + if (paymentMethod.paymentMethodManagerCategories.length === 1) { + pay(paymentMethod, paymentMethod.paymentMethodManagerCategories[0]); + } else { + const selectedImplementationType = await selectImplemetationType(paymentMethod); + pay(paymentMethod, selectedImplementationType); + } } catch (err) { + updateLogs(`\n๐Ÿ›‘ paymentMethodButtonTapped\nerror: ${JSON.stringify(err, null, 2)}`); console.error(err); } }; - const renderPaymentMethods = () => { - if (!assets) { - return null; - } else { - return ( - - { - assets.map(a => { - if (a.paymentMethodType === "PAYMENT_CARD") { - return ( - { - navigation.navigate('RawCardData', { clientSession: clientSession }); - }} - > - - Pay with card - - - ); - } else { - return ( - { - payWithPaymentMethod(a.paymentMethodType); - }} - > - - - ); + const pay = async (paymentMethod: PaymentMethod, implementationType: string) => { + try { + if (implementationType === "NATIVE_UI") { + setIsLoading(true); + await createClientSessionIfNeeded(); + const nativeUIManager = new NativeUIManager(); + await nativeUIManager.initialize(paymentMethod.paymentMethodType); + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + + } else if (implementationType === "RAW_DATA") { + await createClientSessionIfNeeded(); + props.navigation.navigate('RawCardData'); + + } else { + Alert.alert( + "Warning!", + `${implementationType} is not supported on Headless Universal Checkout yet.`, + [ + { + text: "Cancel", + style: "cancel", + onPress: () => { + } - }) + } + ], + { + cancelable: true, } - - ) + ); + } + + } catch (err) { + updateLogs(`\n๐Ÿ›‘ pay\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + console.error(err); + } + } + + const renderPaymentMethodsUI = () => { + if (!paymentMethodsAssets) { + return null; } - }; - const renderLogBox = () => { return ( - - - {tmpLogs} - - + + {paymentMethodsAssets.map((paymentMethodsAsset) => { + return ( + { + paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); + }} + > + + + ); + })} + ); } @@ -302,9 +383,8 @@ export const HeadlessCheckoutScreen = ({ navigation }) => { return ( - {renderPaymentMethods()} - {renderLogBox()} - {renderLoadingOverlay()} + {renderPaymentMethodsUI()} + {renderLoadingOverlay()} ); }; diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 84414ce3a..1229baaf3 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -23,30 +23,90 @@ const rawDataManager = new RawDataManager(); const RawCardDataScreen = (props: RawCardDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [cardNumber, setCardNumber] = useState("4111111111111111"); - const [expiryDate, setExpiryDate] = useState("03/2030"); - const [cvv, setCvv] = useState("123"); - const [cardholderName, setCardholderName] = useState("John Smith"); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cvv, setCvv] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); useEffect(() => { initialize(); }, []); const initialize = async () => { - await rawDataManager.initialize({ + await rawDataManager.initialize({ paymentMethodType: "PAYMENT_CARD", onMetadataChange: (data => { - console.log(`\n\nonMetadataChange: ${JSON.stringify(data)}`); + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); }), onValidation: ((isVallid, errors) => { - console.log(`\n\nonValidation:\nisValid: ${isVallid}\nerrors:${JSON.stringify(errors)}`); + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); }) }) const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); setRequiredInputElementTypes(requiredInputElementTypes); } + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCvv: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawCardData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cvv: cvv || "", + cardholderName: cardholderName + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCvv) { + rawData.cvv = tmpCvv; + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + const renderInputs = () => { if (!requiredInputElementTypes) { return null; @@ -58,48 +118,56 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { if (et === InputElementType.CARD_NUMBER) { return ( { setCardNumber(text); + setRawData(text, null, null, null); }} /> ); } else if (et === InputElementType.EXPIRY_DATE) { return ( { setExpiryDate(text); + setRawData(null, text, null, null); }} /> ); } else if (et === InputElementType.CVV) { return ( { setCvv(text); + setRawData(null, null, text, null); }} /> ); } else if (et === InputElementType.CARDHOLDER_NAME) { return ( { setCardholderName(text); + setRawData(null, null, null, text); }} /> ); @@ -113,14 +181,6 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { const pay = async () => { try { - const rawCardData: RawCardData = { - cardNumber: cardNumber, - expiryMonth: "03", - expiryYear: "2030", - cvv: "123", - cardholderName: cardholderName - } - await rawDataManager.setRawData(rawCardData); await rawDataManager.submit(); } catch (err) { @@ -151,9 +211,15 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { const renderPayButton = () => { return ( { - pay(); + style={{ + ...styles.button, + marginVertical: 16, + backgroundColor: isCardFormValid ? 'black' : "lightgray" + }} + onPress={e => { + if (isCardFormValid) { + pay(); + } }} > { ); }; + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + return ( {renderInputs()} {renderPayButton()} + {renderEvents()} {renderLoadingOverlay()} ); diff --git a/example/src/screens/ResultScreen.tsx b/example/src/screens/ResultScreen.tsx index d4d7fb0b8..3c4ca9d64 100644 --- a/example/src/screens/ResultScreen.tsx +++ b/example/src/screens/ResultScreen.tsx @@ -17,17 +17,47 @@ const ResultScreen = (props: any) => { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; + const paramsWithoutLogs: any = {}; + + if (props.route.params?.merchantCheckoutData) { + paramsWithoutLogs.merchantCheckoutData = props.route.params.merchantCheckoutData; + } + + if (props.route.params?.merchantCheckoutAdditionalInfo) { + paramsWithoutLogs.merchantCheckoutAdditionalInfo = props.route.params.merchantCheckoutAdditionalInfo; + } + + if (props.route.params?.merchantPayment) { + paramsWithoutLogs.merchantPayment = props.route.params.merchantPayment; + } + + if (props.route.params?.merchantPrimerError) { + paramsWithoutLogs.merchantPrimerError = props.route.params.merchantPrimerError; + } + + let logs: string | undefined = props.route.params?.logs; + return ( - + - {JSON.stringify(props.route.params, null, 4)} + {JSON.stringify(paramsWithoutLogs, null, 4)} - + + { + !logs ? null : + + + {logs} + + + } + + ); }; diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index db0816040..878834fca 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -26,10 +26,15 @@ export interface AppPaymentParameters { merchantName?: string; } +export let customApiKey: string | undefined; +export let customClientToken: string | undefined; + // @ts-ignore const SettingsScreen = ({ navigation }) => { const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Staging); + const [environment, setEnvironment] = React.useState(Environment.Sandbox); + const [apiKey, setApiKey] = React.useState(undefined); + const [clientToken, setClientToken] = React.useState(undefined); const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); const [currency, setCurrency] = React.useState("PHP"); @@ -82,6 +87,25 @@ const SettingsScreen = ({ navigation }) => { setEnvironment(selectedEnvironment); }} /> + { + setApiKey(text); + customApiKey = text; + }} + /> + { + setClientToken(text); + }} + /> ) } diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index f6fb45f15..814c78904 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -1,3 +1,4 @@ +import type { RawData } from '@primer-io/react-native'; import { NativeEventEmitter, NativeModules, EmitterSubscription } from 'react-native'; import { PrimerError } from '../../../models/PrimerError'; import type { PrimerInputElementType } from '../../../models/PrimerInputElementType'; @@ -86,7 +87,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { }); } - setRawData(rawData: PrimerRawData): Promise { + setRawData(rawData: RawData): Promise { return new Promise(async (resolve, reject) => { if (this.options?.paymentMethodType) { try { diff --git a/src/models/PrimerPaymentMethodManagerCategory.ts b/src/models/PrimerPaymentMethodManagerCategory.ts new file mode 100644 index 000000000..4d0828612 --- /dev/null +++ b/src/models/PrimerPaymentMethodManagerCategory.ts @@ -0,0 +1,5 @@ +export enum PrimerPaymentMethodManagerCategory { + CARD_COMPONENTS = "CARD_COMPONENTS", + NATIVE_UI = 'NATIVE_UI', + RAW_DATA = 'RAW_DATA' +} \ No newline at end of file From f7169251d012e48bb18930ffdb9ce85bead01d89 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 27 Oct 2022 17:53:22 +0300 Subject: [PATCH 014/121] Add screens --- example/src/App.tsx | 6 + .../src/screens/HeadlessCheckoutScreen.tsx | 11 +- .../screens/RawAdyenBancontactCardScreen.tsx | 241 ++++++++++++++++++ example/src/screens/RawCardDataScreen.tsx | 2 +- example/src/screens/RawPhoneNumberScreen.tsx | 177 +++++++++++++ example/src/screens/RawRetailOutletScreen.tsx | 177 +++++++++++++ example/src/screens/SettingsScreen.tsx | 10 +- src/index.tsx | 2 +- src/models/PrimerRawData.ts | 2 +- 9 files changed, 619 insertions(+), 9 deletions(-) create mode 100644 example/src/screens/RawAdyenBancontactCardScreen.tsx create mode 100644 example/src/screens/RawPhoneNumberScreen.tsx create mode 100644 example/src/screens/RawRetailOutletScreen.tsx diff --git a/example/src/App.tsx b/example/src/App.tsx index eaecf81b6..4c507225f 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -7,6 +7,8 @@ import ResultScreen from './screens/ResultScreen'; import { HeadlessCheckoutScreen } from './screens/HeadlessCheckoutScreen'; import NewLineItemScreen from './screens/NewLineItemSreen'; import RawCardDataScreen from './screens/RawCardDataScreen'; +import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; +import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; const Stack = createNativeStackNavigator(); @@ -21,6 +23,10 @@ const App = () => { + + + + ); diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index b03ebf4e2..8dfe72632 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -298,7 +298,16 @@ export const HeadlessCheckoutScreen = (props: any) => { } else if (implementationType === "RAW_DATA") { await createClientSessionIfNeeded(); - props.navigation.navigate('RawCardData'); + + if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { + props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL") { + props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { + props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { + props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); + } } else { Alert.alert( diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx new file mode 100644 index 000000000..069be8992 --- /dev/null +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -0,0 +1,241 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawBancontactCardRedirectData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawAdyenBancontactCardScreen = (props: RawCardDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.initialize({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawBancontactCardRedirectData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cardholderName: cardholderName || "" + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + setRawData(text, null, null); + }} + /> + ); + } else if (et === InputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + setRawData(null, text, null); + }} + /> + ); + } else if (et === InputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + setRawData(null, null, text) + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawAdyenBancontactCardScreen; diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 1229baaf3..07fb0acd3 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -38,7 +38,7 @@ const RawCardDataScreen = (props: RawCardDataScreenProps) => { const initialize = async () => { await rawDataManager.initialize({ - paymentMethodType: "PAYMENT_CARD", + paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx new file mode 100644 index 000000000..1ceb627af --- /dev/null +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -0,0 +1,177 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawPhoneNumberData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawPhoneNumberDataScreen = (props: RawCardDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [phoneNumber, setPhoneNumber] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.initialize({ + paymentMethodType: "ADYEN_MBWAY", + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpPhoneNumber: string) => { + let rawData: RawPhoneNumberData = { + phoneNumber: tmpPhoneNumber + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.PHONE_NUMBER) { + return ( + { + setPhoneNumber(text); + setRawData(text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawPhoneNumberDataScreen; diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx new file mode 100644 index 000000000..78837d008 --- /dev/null +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -0,0 +1,177 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawRetailerData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawRetailOutletScreen = (props: RawCardDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [retailOutletId, setRetailOutletId] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.initialize({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpRetailOutletId: string) => { + let rawData: RawRetailerData = { + id: tmpRetailOutletId + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.PHONE_NUMBER) { + return ( + { + setRetailOutletId(text); + setRawData(text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawRetailOutletScreen; diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 878834fca..6d949cc95 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -26,19 +26,19 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined; +export let customApiKey: string | undefined = "8d1c810a-50d6-4182-8cca-387ce46316cf"; export let customClientToken: string | undefined; // @ts-ignore const SettingsScreen = ({ navigation }) => { const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Sandbox); - const [apiKey, setApiKey] = React.useState(undefined); + const [environment, setEnvironment] = React.useState(Environment.Staging); + const [apiKey, setApiKey] = React.useState(customApiKey); const [clientToken, setClientToken] = React.useState(undefined); const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); - const [currency, setCurrency] = React.useState("PHP"); - const [countryCode, setCountryCode] = React.useState("PH"); + const [currency, setCurrency] = React.useState("EUR"); + const [countryCode, setCountryCode] = React.useState("NL"); const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); diff --git a/src/index.tsx b/src/index.tsx index e37138768..f1a362ffb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -27,7 +27,7 @@ export { export { PrimerRawData as RawData, PrimerRawCardData as RawCardData, - PrimerBancontactCardRedirectData as BancontactCardRedirectData, + PrimerRawBancontactCardRedirectData as RawBancontactCardRedirectData, PrimerRawPhoneNumberData as RawPhoneNumberData, PrimerRawRetailerData as RawRetailerData } from './models/PrimerRawData'; diff --git a/src/models/PrimerRawData.ts b/src/models/PrimerRawData.ts index 75992cce1..f47fc6944 100644 --- a/src/models/PrimerRawData.ts +++ b/src/models/PrimerRawData.ts @@ -14,7 +14,7 @@ export interface PrimerRawPhoneNumberData extends PrimerRawData { export interface PrimerRawCardRedirectData extends PrimerRawData {} -export interface PrimerBancontactCardRedirectData extends PrimerRawCardRedirectData { +export interface PrimerRawBancontactCardRedirectData extends PrimerRawCardRedirectData { cardNumber: string; expiryMonth: string; expiryYear: string; From 379aca3d2b1816501ca6c553aa132b89ee9e4710 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 10:00:54 +0200 Subject: [PATCH 015/121] Bump retailer screen --- example/src/App.tsx | 3 ++- example/src/models/IClientSessionRequestBody.ts | 16 ++++++++-------- example/src/models/RawDataScreenProps.ts | 6 ++++++ example/src/screens/HeadlessCheckoutScreen.tsx | 3 +++ .../src/screens/RawAdyenBancontactCardScreen.tsx | 3 ++- example/src/screens/RawCardDataScreen.tsx | 3 ++- example/src/screens/RawPhoneNumberScreen.tsx | 10 +++------- example/src/screens/RawRetailOutletScreen.tsx | 16 ++++++---------- example/src/screens/SettingsScreen.tsx | 6 +++--- src/models/PrimerInputElementType.ts | 1 + 10 files changed, 36 insertions(+), 31 deletions(-) create mode 100644 example/src/models/RawDataScreenProps.ts diff --git a/example/src/App.tsx b/example/src/App.tsx index 4c507225f..0310db07d 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -9,6 +9,7 @@ import NewLineItemScreen from './screens/NewLineItemSreen'; import RawCardDataScreen from './screens/RawCardDataScreen'; import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; +import RawRetailOutletScreen from './screens/RawRetailOutletScreen'; const Stack = createNativeStackNavigator(); @@ -25,7 +26,7 @@ const App = () => { - + diff --git a/example/src/models/IClientSessionRequestBody.ts b/example/src/models/IClientSessionRequestBody.ts index f60b9bcdc..974612984 100644 --- a/example/src/models/IClientSessionRequestBody.ts +++ b/example/src/models/IClientSessionRequestBody.ts @@ -92,19 +92,19 @@ export let appPaymentParameters: AppPaymentParameters = { countryCode: 'GB', lineItems: [ { - amount: 1000, + amount: 10100, quantity: 1, itemId: 'shoes-3213', description: 'Fancy Shoes', discountAmount: 0 }, - { - amount: 1000, - quantity: 1, - itemId: 'hats-3213', - description: 'Cool Hat', - discountAmount: 0 - } + // { + // amount: 1000, + // quantity: 1, + // itemId: 'hats-3213', + // description: 'Cool Hat', + // discountAmount: 0 + // } ] }, customer: { diff --git a/example/src/models/RawDataScreenProps.ts b/example/src/models/RawDataScreenProps.ts new file mode 100644 index 000000000..ba1b52f45 --- /dev/null +++ b/example/src/models/RawDataScreenProps.ts @@ -0,0 +1,6 @@ + +export interface RawDataScreenProps { + navigation: any; + clientSession: any; + route: any; +} \ No newline at end of file diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 8dfe72632..f69b7b471 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -301,10 +301,13 @@ export const HeadlessCheckoutScreen = (props: any) => { if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL") { props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); } diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx index 069be8992..7bac37036 100644 --- a/example/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -13,6 +13,7 @@ import { import TextField from '../components/TextField'; import { styles } from '../styles'; import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; export interface RawCardDataScreenProps { navigation: any; @@ -21,7 +22,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawAdyenBancontactCardScreen = (props: RawCardDataScreenProps) => { +const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 07fb0acd3..1b94e7c13 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -12,6 +12,7 @@ import { } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; export interface RawCardDataScreenProps { navigation: any; @@ -20,7 +21,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawCardDataScreen = (props: RawCardDataScreenProps) => { +const RawCardDataScreen = (props: RawDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx index 1ceb627af..8f22cb5fd 100644 --- a/example/src/screens/RawPhoneNumberScreen.tsx +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -12,15 +12,11 @@ import { } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; - -export interface RawCardDataScreenProps { - navigation: any; - clientSession: any; -} +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawPhoneNumberDataScreen = (props: RawCardDataScreenProps) => { +const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); @@ -35,7 +31,7 @@ const RawPhoneNumberDataScreen = (props: RawCardDataScreenProps) => { const initialize = async () => { await rawDataManager.initialize({ - paymentMethodType: "ADYEN_MBWAY", + paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index 78837d008..8564436cb 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -12,15 +12,11 @@ import { } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; - -export interface RawCardDataScreenProps { - navigation: any; - clientSession: any; -} +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawRetailOutletScreen = (props: RawCardDataScreenProps) => { +const RawRetailOutletScreen = (props: RawDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); @@ -73,14 +69,14 @@ const RawRetailOutletScreen = (props: RawCardDataScreenProps) => { { requiredInputElementTypes.map(et => { - if (et === InputElementType.PHONE_NUMBER) { + if (et === InputElementType.RETAILER) { return ( { setRetailOutletId(text); setRawData(text); diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 6d949cc95..7c8ab6315 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -26,19 +26,19 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined = "8d1c810a-50d6-4182-8cca-387ce46316cf"; +export let customApiKey: string | undefined// = "7ecce42b-b641-4c7d-a605-f786f3e201ce"; export let customClientToken: string | undefined; // @ts-ignore const SettingsScreen = ({ navigation }) => { const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Staging); + const [environment, setEnvironment] = React.useState(Environment.Sandbox); const [apiKey, setApiKey] = React.useState(customApiKey); const [clientToken, setClientToken] = React.useState(undefined); const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); const [currency, setCurrency] = React.useState("EUR"); - const [countryCode, setCountryCode] = React.useState("NL"); + const [countryCode, setCountryCode] = React.useState("PT"); const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); diff --git a/src/models/PrimerInputElementType.ts b/src/models/PrimerInputElementType.ts index 4fbde9311..56346ff9e 100644 --- a/src/models/PrimerInputElementType.ts +++ b/src/models/PrimerInputElementType.ts @@ -6,5 +6,6 @@ export enum PrimerInputElementType { OTP = "OTP", POSTAL_CODE = "POSTAL_CODE", PHONE_NUMBER = "PHONE_NUMBER", + RETAILER = "RETAILER", UNKNOWN = "UNKNOWN" } \ No newline at end of file From 63700794a7d6b16c3d38081d1f6d416e5ceabac6 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 13:16:32 +0200 Subject: [PATCH 016/121] Bump id --- example/src/screens/HeadlessCheckoutScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index f69b7b471..7d12f0734 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -302,7 +302,7 @@ export const HeadlessCheckoutScreen = (props: any) => { if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); - } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL") { + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL_OUTLETS") { props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { From 00e984ea2dfab4deba03e822311202f131e10daa Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 13:46:23 +0200 Subject: [PATCH 017/121] Refactor `configure` function --- .../src/screens/HeadlessCheckoutScreen.tsx | 2 +- .../screens/RawAdyenBancontactCardScreen.tsx | 2 +- example/src/screens/RawCardDataScreen.tsx | 2 +- example/src/screens/RawPhoneNumberScreen.tsx | 2 +- example/src/screens/RawRetailOutletScreen.tsx | 2 +- .../RNTNativeUIManager.m | 2 +- .../RNTNativeUIManager.swift | 16 ++++--------- .../RNTRawDataManager.m | 3 +-- .../RNTRawDataManager.swift | 24 ++++--------------- .../PaymentMethodManagers/NativeUIManager.ts | 4 ++-- .../PaymentMethodManagers/RawDataManager.ts | 11 ++++++--- 11 files changed, 27 insertions(+), 43 deletions(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 7d12f0734..4f956da13 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -293,7 +293,7 @@ export const HeadlessCheckoutScreen = (props: any) => { setIsLoading(true); await createClientSessionIfNeeded(); const nativeUIManager = new NativeUIManager(); - await nativeUIManager.initialize(paymentMethod.paymentMethodType); + await nativeUIManager.configure(paymentMethod.paymentMethodType); await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); } else if (implementationType === "RAW_DATA") { diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx index 7bac37036..090a78245 100644 --- a/example/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -38,7 +38,7 @@ const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { }, []); const initialize = async () => { - await rawDataManager.initialize({ + await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 1b94e7c13..80b1303c2 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -38,7 +38,7 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { }, []); const initialize = async () => { - await rawDataManager.initialize({ + await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx index 8f22cb5fd..f99cb6957 100644 --- a/example/src/screens/RawPhoneNumberScreen.tsx +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -30,7 +30,7 @@ const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { }, []); const initialize = async () => { - await rawDataManager.initialize({ + await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index 8564436cb..36e3b76b5 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -30,7 +30,7 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { }, []); const initialize = async () => { - await rawDataManager.initialize({ + await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m index e76d3591f..7b2f4b80a 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m @@ -12,7 +12,7 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalPaymentMethodNativeUIMana // MARK: - API -RCT_EXTERN_METHOD(initialize: (NSString *)paymentMethod resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) +RCT_EXTERN_METHOD(configure: (NSString *)paymentMethod resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)intent resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift index 6bf229696..5f52967c7 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift @@ -21,18 +21,12 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { return true } - deinit { - print("DEINIT \(self) \(Unmanaged.passUnretained(self).toOpaque())") - } - - override init() { - super.init() - print("INIT \(self) \(Unmanaged.passUnretained(self).toOpaque())") - } - @objc - func initialize(_ paymentMethod: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - print("initialize \(self) \(Unmanaged.passUnretained(self).toOpaque())") + func configure( + _ paymentMethod: String, + resolver: @escaping RCTPromiseResolveBlock, + rejecter: @escaping RCTPromiseRejectBlock + ) { do { self.paymentMethodNativeUIManager = try PrimerSDK.PrimerHeadlessUniversalCheckout.NativeUIManager(paymentMethodType: paymentMethod) resolver(nil) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m index d9f2cefd8..349928bdf 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m @@ -10,7 +10,7 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutRawDataManager, RCTEventEmitter) -RCT_EXTERN_METHOD(initialize:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(configure:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) RCT_EXTERN_METHOD(listRequiredInputElementTypesForPaymentMethodType:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) @@ -18,7 +18,6 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutRawDataManager, R RCT_EXTERN_METHOD(submit:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) -RCT_EXTERN_METHOD(configure:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) RCT_EXTERN_METHOD(dispose:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) @end diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index ff1896fae..dcf4a035c 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -39,36 +39,22 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { } // MARK: - API - + @objc - public func initialize( + public func configure( _ paymentMethodTypeStr: String, - resolver: RCTPromiseResolveBlock, - rejecter: RCTPromiseRejectBlock + resolver: @escaping RCTPromiseResolveBlock, + rejecter: @escaping RCTPromiseRejectBlock ) { self.paymentMethodType = paymentMethodTypeStr do { self.rawDataManager = try PrimerHeadlessUniversalCheckout.RawDataManager(paymentMethodType: self.paymentMethodType!, delegate: self) - resolver(nil) } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } - } - - @objc - public func configure(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { - - guard let rawDataManager = rawDataManager else { - let err = RNTNativeError( - errorId: "native-ios", - errorDescription: "The RawDataManager has not been initialized", - recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - return - } - rawDataManager.configure { data, error in + self.rawDataManager!.configure { data, error in do { guard error == nil else { rejecter(error!.rnError["errorId"]!, error!.rnError["description"], error) diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts index 72c5dd54a..a28061798 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts @@ -14,9 +14,9 @@ class PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager { // Native API /////////////////////////////////////////// - async initialize(paymentMethodType: string): Promise { + async configure(paymentMethodType: string): Promise { try { - await RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.initialize(paymentMethodType); + await RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.configure(paymentMethodType); } catch (err) { console.error(err); throw err; diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index 814c78904..e4e6cadb5 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -1,5 +1,6 @@ import type { RawData } from '@primer-io/react-native'; import { NativeEventEmitter, NativeModules, EmitterSubscription } from 'react-native'; +import type { PrimerInitializationData } from 'src/models/PrimerInitializationData'; import { PrimerError } from '../../../models/PrimerError'; import type { PrimerInputElementType } from '../../../models/PrimerInputElementType'; @@ -34,13 +35,17 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { // API /////////////////////////////////////////// - async initialize(options: RawDataManagerProps): Promise { + async configure(options: RawDataManagerProps): Promise<{initializationData: PrimerInitializationData} | void> { return new Promise(async (resolve, reject) => { try { this.options = options; await this.configureListeners(); - await RNTPrimerHeadlessUniversalCheckoutRawDataManager.initialize(options.paymentMethodType); - resolve(); + const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.configure(options.paymentMethodType); + if (data) { + resolve(data); + } else { + resolve(); + } } catch (err) { reject(err); From 83b14a1a2990bdc790efa5fdd1f9fb1413ca5b24 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 31 Oct 2022 14:42:53 +0200 Subject: [PATCH 018/121] Expose card network icons to RN --- .../Managers/RNTAssetsManager.m | 4 +++ .../Managers/RNTAssetsManager.swift | 32 +++++++++++++++++++ .../Managers/AssetsManager.ts | 22 ++++++++++--- 3 files changed, 53 insertions(+), 5 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m index 817011a97..69ab8fc77 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.m @@ -10,6 +10,10 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutAssetsManager, RCTEventEmitter) +RCT_EXTERN_METHOD(getCardNetworkImage:(NSString *)cardNetworkStr + resolver:(RCTPromiseResolveBlock)resolver + rejecter:(RCTPromiseRejectBlock)rejecter) + RCT_EXTERN_METHOD(getPaymentMethodAsset:(NSString *)paymentMethodType resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift index 1d365367a..e851095d4 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift @@ -19,6 +19,38 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { return true } + @objc + func getCardNetworkImage( + _ cardNetworkStr: String, + resolver: RCTPromiseResolveBlock, + rejecter: RCTPromiseRejectBlock + ) { + do { + + guard let cardNetwork = CardNetwork(rawValue: cardNetworkStr) else { + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to find asset of \(cardNetworkStr).", + recoverySuggestion: nil) + throw err + } + + guard let cardNetworkImage = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getCardNetworkImage(for: cardNetwork) else { + let err = RNTNativeError( + errorId: "native-ios", + errorDescription: "Failed to find asset of \(cardNetworkStr).", + recoverySuggestion: nil) + throw err + } + + let localUrl = try cardNetworkImage.store(withName: cardNetwork.rawValue) + resolver(["cardNetworkImageURL": localUrl.absoluteString]) + + } catch { + rejecter(error.rnError["errorId"]!, error.rnError["description"], error) + } + } + @objc func getPaymentMethodAsset( _ paymentMethodType: String, diff --git a/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts index 8caaffe59..a38811bb5 100644 --- a/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts @@ -1,4 +1,4 @@ -import type { PrimerAsset } from '@primer-io/react-native'; +import type { Asset } from '@primer-io/react-native'; import { NativeModules } from 'react-native'; const { RNTPrimerHeadlessUniversalCheckoutAssetsManager } = NativeModules; @@ -14,11 +14,23 @@ class PrimerHeadlessUniversalCheckoutAssetsManager { // Native API /////////////////////////////////////////// - async getPaymentMethodAsset(paymentMethodType: string): Promise { + async getCardNetworkImageURL(cardNetwork: string): Promise { + return new Promise(async (resolve, reject) => { + try { + const data = await RNTPrimerHeadlessUniversalCheckoutAssetsManager.getCardNetworkImage(cardNetwork); + resolve(data.cardNetworkImageURL); + } catch (err) { + console.error(err); + reject(err); + } + }); + } + + async getPaymentMethodAsset(paymentMethodType: string): Promise { return new Promise(async (resolve, reject) => { try { const data = await RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset(paymentMethodType); - const paymentMethodAsset: PrimerAsset = data.paymentMethodAsset; + const paymentMethodAsset: Asset = data.paymentMethodAsset; resolve(paymentMethodAsset); } catch (err) { console.error(err); @@ -27,11 +39,11 @@ class PrimerHeadlessUniversalCheckoutAssetsManager { }); } - async getPaymentMethodAssets(): Promise { + async getPaymentMethodAssets(): Promise { return new Promise(async (resolve, reject) => { try { const data = await RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(); - const paymentMethodAssets: PrimerAsset[] = data.paymentMethodAssets; + const paymentMethodAssets: Asset[] = data.paymentMethodAssets; resolve(paymentMethodAssets); } catch (err) { console.error(err); From e393dcc43b4df2d3cc02e9662271dab56b4b13d4 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 1 Nov 2022 16:05:41 +0200 Subject: [PATCH 019/121] Remove PrimerSDK button --- example/src/screens/SettingsScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 7c8ab6315..ad284fdd2 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -627,7 +627,7 @@ const SettingsScreen = ({ navigation }) => { const renderActions = () => { return ( - { updateAppPaymentParameters(); @@ -640,7 +640,7 @@ const SettingsScreen = ({ navigation }) => { > Primer SDK - + */} Date: Tue, 1 Nov 2022 16:05:56 +0200 Subject: [PATCH 020/121] Change retail outlets screen --- example/src/screens/RawRetailOutletScreen.tsx | 60 +++++++++++-------- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index 36e3b76b5..e9d17ea1a 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -1,5 +1,6 @@ import React, { useEffect, useState } from 'react'; import { + FlatList, Text, TouchableOpacity, View @@ -21,7 +22,8 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [retailOutletId, setRetailOutletId] = useState(""); + const [retailers, setRetailers] = useState(undefined); + const [selectedRetailOutletId, setSelectedRetailOutletId] = useState(undefined); const [metadataLog, setMetadataLog] = useState(""); const [validationLog, setValidationLog] = useState(""); @@ -30,7 +32,7 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { }, []); const initialize = async () => { - await rawDataManager.configure({ + const response = await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; @@ -48,7 +50,13 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { setValidationLog(log); setIsCardFormValid(isVallid); }) - }) + }); + + if (response?.initializationData) { + const retailers: any[] = response.initializationData.result; + setRetailers(retailers); + } + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); setRequiredInputElementTypes(requiredInputElementTypes); } @@ -58,35 +66,37 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { id: tmpRetailOutletId } + setSelectedRetailOutletId(tmpRetailOutletId); + rawDataManager.setRawData(rawData); } const renderInputs = () => { - if (!requiredInputElementTypes) { + if (!retailers) { return null; } else { return ( - - { - requiredInputElementTypes.map(et => { - if (et === InputElementType.RETAILER) { - return ( - { - setRetailOutletId(text); - setRawData(text); - }} - /> - ); - } - }) - } - + item.id} + renderItem={(data) => { + return ( + { + setRawData(data.item.id); + }} + > + + {data.item.name} + + + ) + }} + /> ); } } From 9438382a38189e6a0d81212b69b9191cb9dbd887 Mon Sep 17 00:00:00 2001 From: semirp <85510694+semirp@users.noreply.github.com> Date: Wed, 2 Nov 2022 09:41:08 +0100 Subject: [PATCH 021/121] Android RN bridge (#131) * [DEVX-6] Added android bridge --- android/build.gradle | 3 +- android/gradle.properties | 2 +- .../PrimerCardNumberEditTextManager.kt | 15 -- .../java/com/primerioreactnative/PrimerRN.kt | 36 +---- .../PrimerRNEventListener.kt | 9 +- .../PrimerRNHeadlessUniversalCheckout.kt | 131 ++---------------- ...imerRNHeadlessUniversalCheckoutListener.kt | 110 +++++++-------- .../primerioreactnative/ReactNativePackage.kt | 8 +- .../assets/AssetsManager.kt | 19 +-- .../assets/CardNetworkImageFileProvider.kt | 23 +++ .../assets/PaymentMethodAssetFileProvider.kt | 24 ++++ ...NHeadlessUniversalCheckoutPaymentMethod.kt | 25 ++++ .../core/PrimerRawPaymentMethodType.kt | 9 ++ .../datamodels/manager/asset/PrimerRNAsset.kt | 99 +++++++++++++ .../manager/raw/card/PrimerRNRawCardData.kt | 2 +- .../PrimerRNPRawCardRedirectData.kt | 2 +- .../phoneNumber/PrimerRNRawPhoneNumberData.kt | 2 +- .../PrimerRNRawRetailOutletData.kt | 2 +- .../raw/retailOutlets/RNRetailOutletsList.kt | 2 +- .../PrimerHeadlessUniversalCheckoutEvent.kt | 17 +++ ...essUniversalCheckoutRawDataManagerEvent.kt | 3 +- ...RNHeadlessUniversalCheckoutAssetManager.kt | 118 ++++++++++++++++ ...eadlessUniversalCheckoutNativeUiManager.kt | 70 ++++++++++ ...erRNHeadlessUniversalCheckoutRawManager.kt | 124 ++++++++--------- ...lessUniversalCheckoutRawManagerListener.kt | 5 +- .../datamodels/PrimerErrorRN.kt | 5 +- .../datamodels/PrimerSettingsRN.kt | 8 -- .../PrimerPaymentMethodOptionsRN.kt | 4 - .../PrimerHeadlessUniversalCheckoutEvent.kt | 15 -- ...UniversalCheckoutImplementedRNCallbacks.kt | 28 ++-- example/android/build.gradle | 15 +- example/android/gradle.properties | 2 +- example/src/App.tsx | 2 - .../src/screens/HeadlessCheckoutScreen.tsx | 11 +- .../screens/RawAdyenBancontactCardScreen.tsx | 7 +- example/src/screens/RawCardDataScreen.tsx | 9 +- example/src/screens/RawPhoneNumberScreen.tsx | 7 +- example/src/screens/SettingsScreen.tsx | 2 +- ...dlessUniversalCheckout_PaymentMethod.swift | 2 +- .../PrimerSettings+Extensions.swift | 28 ++-- .../RNTNativeUIManager.swift | 16 +-- .../RNTRawDataManager.swift | 5 +- .../Managers/RNTAssetsManager.swift | 28 ++-- .../RNTPrimerHeadlessUniversalCheckout.swift | 125 ++++++++--------- ios/Sources/Helpers/UIImage+Extensions.swift | 2 +- .../Managers/AssetsManager.ts | 2 +- .../PaymentMethodManagers/NativeUIManager.ts | 2 +- .../PaymentMethodManagers/RawDataManager.ts | 5 +- src/RNPrimer.ts | 1 - src/index.tsx | 16 +-- src/models/PrimerInputElementType.ts | 2 +- 51 files changed, 687 insertions(+), 522 deletions(-) rename android/src/main/java/com/primerioreactnative/{huc => components}/assets/AssetsManager.kt (67%) create mode 100644 android/src/main/java/com/primerioreactnative/components/assets/CardNetworkImageFileProvider.kt create mode 100644 android/src/main/java/com/primerioreactnative/components/assets/PaymentMethodAssetFileProvider.kt create mode 100644 android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRNHeadlessUniversalCheckoutPaymentMethod.kt create mode 100644 android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRawPaymentMethodType.kt create mode 100644 android/src/main/java/com/primerioreactnative/components/datamodels/manager/asset/PrimerRNAsset.kt rename android/src/main/java/com/primerioreactnative/{huc => components}/datamodels/manager/raw/card/PrimerRNRawCardData.kt (88%) rename android/src/main/java/com/primerioreactnative/{huc => components}/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt (85%) rename android/src/main/java/com/primerioreactnative/{huc => components}/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt (81%) rename android/src/main/java/com/primerioreactnative/{huc => components}/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt (78%) rename android/src/main/java/com/primerioreactnative/{huc => components}/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt (87%) create mode 100644 android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt rename android/src/main/java/com/primerioreactnative/{huc => components}/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt (69%) create mode 100644 android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt create mode 100644 android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt rename android/src/main/java/com/primerioreactnative/{huc => components}/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt (61%) rename android/src/main/java/com/primerioreactnative/{huc => components}/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt (87%) delete mode 100644 android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutEvent.kt diff --git a/android/build.gradle b/android/build.gradle index 26c1e97a4..6130f0009 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,8 +4,8 @@ buildscript { repositories { google() + mavenCentral() mavenLocal() - jcenter() } dependencies { @@ -61,7 +61,6 @@ android { repositories { mavenLocal() mavenCentral() - jcenter() google() def found = false diff --git a/android/gradle.properties b/android/gradle.properties index b81373344..e28ef8716 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,4 +1,4 @@ -ReactNative_kotlinVersion=1.6.21 +ReactNative_kotlinVersion=1.7.10 ReactNative_compileSdkVersion=31 ReactNative_buildToolsVersion=29.0.2 ReactNative_targetSdkVersion=31 diff --git a/android/src/main/java/com/primerioreactnative/PrimerCardNumberEditTextManager.kt b/android/src/main/java/com/primerioreactnative/PrimerCardNumberEditTextManager.kt index 62e1e1863..1dfe74ba0 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerCardNumberEditTextManager.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerCardNumberEditTextManager.kt @@ -1,22 +1,7 @@ package com.primerioreactnative -import android.content.res.ColorStateList -import android.graphics.Color -import android.graphics.drawable.ColorDrawable -import android.graphics.drawable.GradientDrawable -import android.view.ViewGroup -import android.widget.EditText -import android.widget.LinearLayout -import android.widget.TextView -import com.facebook.drawee.backends.pipeline.Fresco -import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.SimpleViewManager import com.facebook.react.uimanager.ThemedReactContext -import com.facebook.react.uimanager.ViewProps -import com.facebook.react.uimanager.annotations.ReactProp -import com.facebook.react.views.image.ReactImageView -import io.primer.android.components.manager.PrimerCardManager -import io.primer.android.components.manager.PrimerUniversalCheckoutCardManagerInterface import io.primer.android.components.ui.widgets.* val listOfTextInputs = mutableListOf() diff --git a/android/src/main/java/com/primerioreactnative/PrimerRN.kt b/android/src/main/java/com/primerioreactnative/PrimerRN.kt index f0f55a0c7..a01f4101f 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRN.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRN.kt @@ -8,14 +8,13 @@ import com.primerioreactnative.utils.PrimerImplementedRNCallbacks import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.Primer -import io.primer.android.PrimerSessionIntent import io.primer.android.data.settings.PrimerSettings import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import org.json.JSONObject -class PrimerRN(private val reactContext: ReactApplicationContext, private val json: Json) : +class PrimerRN(reactContext: ReactApplicationContext, private val json: Json) : ReactContextBaseJavaModule(reactContext) { private var mListener = PrimerRNEventListener() @@ -75,39 +74,6 @@ class PrimerRN(private val reactContext: ReactApplicationContext, private val js } } - @ReactMethod - fun showPaymentMethod( - paymentMethodTypeStr: String, - intentStr: String, - clientToken: String, - promise: Promise - ) { - val intent: PrimerSessionIntent - try { - intent = PrimerSessionIntent.valueOf(intentStr.uppercase()) - } catch (e: Exception) { - val exception = ErrorTypeRN.NativeBridgeFailed errorTo "Intent $intentStr is not valid." - onError(exception) - promise.reject(exception.errorId, exception.description, e) - return - } - - try { - Primer.instance.showPaymentMethod( - reactApplicationContext.applicationContext, - clientToken, - paymentMethodTypeStr, - intent - ) - promise.resolve(null) - } catch (e: Exception) { - val exception = ErrorTypeRN.NativeBridgeFailed errorTo - "Primer SDK failed: ${e.message}" - onError(exception) - promise.reject(exception.errorId, exception.description, e) - } - } - @ReactMethod fun dismiss(promise: Promise) { Primer.instance.dismiss() diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt index 21dc1a6ee..3e5d92119 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt @@ -91,7 +91,12 @@ class PrimerRNEventListener : PrimerCheckoutListener { if (implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true) { sendEvent?.invoke( PrimerEvents.ON_CLIENT_SESSION_UPDATE.eventName, - JSONObject(Json.encodeToString(clientSession.toPrimerClientSessionRN())) + JSONObject().apply { + put( + "clientSession", + JSONObject(Json.encodeToString(clientSession.toPrimerClientSessionRN())) + ) + } ) } else { super.onClientSessionUpdated(clientSession) @@ -147,7 +152,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { } } - override fun onResumePending(additionalInfo: PrimerCheckoutAdditionalInfo?) { + override fun onResumePending(additionalInfo: PrimerCheckoutAdditionalInfo) { if (implementedRNCallbacks?.isOnResumePendingImplemented == true) { if (additionalInfo is MultibancoCheckoutAdditionalInfo) { sendEvent?.invoke( diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt index 2173253ab..6cc920613 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt @@ -1,21 +1,15 @@ package com.primerioreactnative import android.util.Log -import androidx.core.content.ContextCompat import com.facebook.react.bridge.* import com.facebook.react.modules.core.DeviceEventManagerModule import com.primerioreactnative.datamodels.* -import com.primerioreactnative.huc.assets.AssetsManager -import com.primerioreactnative.huc.assets.AssetsManager.drawableToBitmap -import com.primerioreactnative.huc.assets.AssetsManager.getFile -import com.primerioreactnative.huc.events.PrimerHeadlessUniversalCheckoutEvent +import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.utils.PrimerHeadlessUniversalCheckoutImplementedRNCallbacks import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi import io.primer.android.components.PrimerHeadlessUniversalCheckout -import io.primer.android.components.ui.assets.ImageType -import io.primer.android.ui.CardNetwork import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json @@ -44,10 +38,9 @@ class PrimerRNHeadlessUniversalCheckout( fun startWithClientToken( clientToken: String, settingsStr: String?, - errorCallback: Callback, - successCallback: Callback + promise: Promise ) { - listener.successCallback = successCallback + listener.successCallback = promise try { val settings = if (settingsStr.isNullOrBlank()) PrimerSettingsRN() else json.decodeFromString( @@ -57,126 +50,29 @@ class PrimerRNHeadlessUniversalCheckout( reactContext, clientToken, settings.toPrimerSettings(), + listener, listener ) } catch (e: Exception) { - errorCallback.invoke( - json.encodeToString( - ErrorTypeRN.NativeBridgeFailed errorTo - "failed to initialise PrimerHeadlessUniversalCheckout SDK, error: $e", - ) + promise.reject( + ErrorTypeRN.NativeBridgeFailed.errorId, + "failed to initialise PrimerHeadlessUniversalCheckout SDK, error: $e", ) } } - @ReactMethod - fun showPaymentMethod(paymentMethodTypeStr: String, promise: Promise) { - PrimerHeadlessUniversalCheckout.current.showPaymentMethod( - reactContext, - paymentMethodTypeStr - ) - promise.resolve(null) - } - @ReactMethod fun disposePrimerHeadlessUniversalCheckout() { PrimerHeadlessUniversalCheckout.current.cleanup() listener.removeCallbacksAndHandlers() } - @ReactMethod - fun getAssetForPaymentMethodType( - paymentMethodType: String, - assetType: String, - errorCallback: Callback, - successCallback: Callback - ) { - - val type = ImageType.values().find { it.name.equals(assetType, ignoreCase = true) } - when { - type == null -> { - errorCallback.invoke( - json.encodeToString( - ErrorTypeRN.AssetMismatch errorTo - "You have provided assetType=$assetType, but variable assetType can be 'LOGO' or 'ICON'." - ) - ) - } - else -> { - PrimerHeadlessUniversalCheckout.getAsset(paymentMethodType, type)?.let { resourceId -> - val file = getFile(reactContext, paymentMethodType) - AssetsManager.saveBitmapToFile( - file, - drawableToBitmap(ContextCompat.getDrawable(reactContext, resourceId)!!), - ) - successCallback.invoke("file://${file.absolutePath}") - } ?: run { - errorCallback.invoke( - json.encodeToString( - ErrorTypeRN.AssetMissing errorTo - "Failed to find $assetType for $paymentMethodType" - ) - ) - } - } - } - } - - @ReactMethod - fun getAssetForCardNetwork( - cardNetworkStr: String, - assetType: String, - errorCallback: Callback, - successCallback: Callback - ) { - val cardNetwork = CardNetwork.Type.values().find { it.name.equals(cardNetworkStr, ignoreCase = true) } - val type = ImageType.values().find { it.name.equals(assetType, ignoreCase = true) } - when { - cardNetwork == null -> { - errorCallback.invoke( - json.encodeToString( - ErrorTypeRN.InvalidCardNetwork errorTo - "Card network for $cardNetworkStr does not exist, make sure you don't have any typos." - ) - ) - } - type == null -> { - errorCallback.invoke( - json.encodeToString( - ErrorTypeRN.AssetMismatch errorTo - "You have provided assetType=$assetType, but variable assetType can be 'LOGO' or 'ICON'." - ) - ) - } - else -> { - PrimerHeadlessUniversalCheckout.getAsset(cardNetwork).let { resourceId -> - val file = getFile(reactContext, cardNetworkStr) - AssetsManager.saveBitmapToFile( - file, - drawableToBitmap(ContextCompat.getDrawable(reactContext, resourceId)!!), - ) - successCallback.invoke("file://${file.absolutePath}") - } - } - } - } - // region tokenization handlers @ReactMethod fun handleTokenizationNewClientToken(newClientToken: String, promise: Promise) { listener.handleTokenizationNewClientToken(newClientToken) promise.resolve(null) } - - @ReactMethod - fun handleTokenizationSuccess(promise: Promise) { - listener.handleTokenizationSuccess(promise) - } - - @ReactMethod - fun handleTokenizationFailure(errorMessage: String?, promise: Promise) { - listener.handleTokenizationFailure(errorMessage.orEmpty(), promise) - } // endregion // region resume handlers @@ -185,17 +81,14 @@ class PrimerRNHeadlessUniversalCheckout( listener.handleResumeNewClientToken(newClientToken) promise.resolve(null) } + // endregion + // region complete handlers @ReactMethod - fun handleResumeSuccess(promise: Promise) { - listener.handleResumeSuccess(promise) - } - - @ReactMethod - fun handleResumeFailure(errorMessage: String?, promise: Promise) { - listener.handleResumeFailure(errorMessage.orEmpty(), promise) + fun handleCompleteFlow(promise: Promise) { + promise.resolve(null) } - // endregion + // endregion complete handlers // region payment handlers @ReactMethod diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt index fd6fdb8c3..a2ffd6229 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt @@ -1,20 +1,22 @@ package com.primerioreactnative -import com.facebook.react.bridge.Arguments -import com.facebook.react.bridge.Callback import com.facebook.react.bridge.Promise +import com.primerioreactnative.components.datamodels.core.PrimerRNAvailablePaymentMethods +import com.primerioreactnative.components.datamodels.core.toPrimerRNHeadlessUniversalCheckoutPaymentMethod +import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.datamodels.* import com.primerioreactnative.extensions.toCheckoutAdditionalInfoRN import com.primerioreactnative.extensions.toPrimerCheckoutDataRN import com.primerioreactnative.extensions.toPrimerClientSessionRN import com.primerioreactnative.extensions.toPrimerPaymentMethodDataRN -import com.primerioreactnative.huc.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.utils.PrimerHeadlessUniversalCheckoutImplementedRNCallbacks +import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi +import io.primer.android.completion.PrimerHeadlessUniversalCheckoutResumeDecisionHandler import io.primer.android.completion.PrimerPaymentCreationDecisionHandler -import io.primer.android.completion.PrimerResumeDecisionHandler import io.primer.android.components.PrimerHeadlessUniversalCheckoutListener +import io.primer.android.components.PrimerHeadlessUniversalCheckoutUiListener import io.primer.android.components.domain.core.models.PrimerHeadlessUniversalCheckoutPaymentMethod import io.primer.android.domain.PrimerCheckoutData import io.primer.android.domain.action.models.PrimerClientSession @@ -26,11 +28,11 @@ import io.primer.android.domain.tokenization.models.PrimerPaymentMethodData import io.primer.android.domain.tokenization.models.PrimerPaymentMethodTokenData import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json -import org.json.JSONArray import org.json.JSONObject @OptIn(ExperimentalPrimerApi::class) -class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckoutListener { +class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckoutListener, + PrimerHeadlessUniversalCheckoutUiListener { private var paymentCreationDecisionHandler: ((errorMessage: String?) -> Unit)? = null private var tokenizeSuccessDecisionHandler: ((resumeToken: String?, errorMessage: String?) -> Unit)? = null @@ -44,37 +46,44 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou var sendErrorWithCheckoutData: ((error: PrimerErrorRN, checkoutData: PrimerCheckoutDataRN?) -> Unit)? = null - var successCallback: Callback? = null + var successCallback: Promise? = null override fun onAvailablePaymentMethodsLoaded(paymentMethods: List) { + val availablePaymentMethods = + JSONObject( + Json.encodeToString( + PrimerRNAvailablePaymentMethods( + paymentMethods.map { it.toPrimerRNHeadlessUniversalCheckoutPaymentMethod() } + ) + ) + ) + sendEvent?.invoke( - PrimerHeadlessUniversalCheckoutEvent.ON_HUC_AVAILABLE_PAYMENT_METHODS_LOADED.eventName, - JSONObject().apply { - put("paymentMethodTypes", JSONArray(paymentMethods.map { it.paymentMethodType })) - } + PrimerHeadlessUniversalCheckoutEvent.ON_AVAILABLE_PAYMENT_METHODS_LOAD.eventName, + availablePaymentMethods ) - successCallback?.invoke( - Arguments.fromList(paymentMethods.map { it.paymentMethodType }) + successCallback?.resolve( + convertJsonToMap(availablePaymentMethods) ) } override fun onPreparationStarted(paymentMethodType: String) { sendEvent?.invoke( - PrimerHeadlessUniversalCheckoutEvent.ON_HUC_PREPARE_START.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_PREPARE_START.eventName, JSONObject(Json.encodeToString(PrimerPaymentMethodDataRN(paymentMethodType))) ) } override fun onPaymentMethodShowed(paymentMethodType: String) { sendEvent?.invoke( - PrimerHeadlessUniversalCheckoutEvent.ON_HUC_PAYMENT_METHOD_SHOW.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_PAYMENT_METHOD_SHOW.eventName, JSONObject(Json.encodeToString(PrimerPaymentMethodDataRN(paymentMethodType))) ) } override fun onTokenizationStarted(paymentMethodType: String) { sendEvent?.invoke( - PrimerHeadlessUniversalCheckoutEvent.ON_HUC_TOKENIZE_START.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_TOKENIZE_START.eventName, JSONObject(Json.encodeToString(PrimerPaymentMethodDataRN(paymentMethodType))) ) } @@ -132,7 +141,12 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou if (implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true) { sendEvent?.invoke( PrimerHeadlessUniversalCheckoutEvent.ON_CLIENT_SESSION_UPDATE.eventName, - JSONObject(Json.encodeToString(clientSession.toPrimerClientSessionRN())) + JSONObject().apply { + put( + "clientSession", + JSONObject(Json.encodeToString(clientSession.toPrimerClientSessionRN())) + ) + } ) } else { super.onClientSessionUpdated(clientSession) @@ -141,16 +155,14 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou override fun onTokenizeSuccess( paymentMethodTokenData: PrimerPaymentMethodTokenData, - decisionHandler: PrimerResumeDecisionHandler + decisionHandler: PrimerHeadlessUniversalCheckoutResumeDecisionHandler ) { if (implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true) { val token = PrimerPaymentInstrumentTokenRN.fromPaymentMethodToken(paymentMethodTokenData) val request = JSONObject(Json.encodeToString(token)) - tokenizeSuccessDecisionHandler = { newClientToken, err -> + tokenizeSuccessDecisionHandler = { newClientToken, _ -> when { - err != null -> decisionHandler.handleFailure(err.ifBlank { null }) newClientToken != null -> decisionHandler.continueWithNewClientToken(newClientToken) - else -> decisionHandler.handleSuccess() } } sendEvent?.invoke(PrimerHeadlessUniversalCheckoutEvent.ON_TOKENIZE_SUCCESS.eventName, request) @@ -164,35 +176,33 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou override fun onResumeSuccess( resumeToken: String, - decisionHandler: PrimerResumeDecisionHandler + decisionHandler: PrimerHeadlessUniversalCheckoutResumeDecisionHandler ) { - if (implementedRNCallbacks?.isOnResumeSuccessImplemented == true) { - resumeSuccessDecisionHandler = { newClientToken, err -> + if (implementedRNCallbacks?.isOnCheckoutResumeImplemented == true) { + resumeSuccessDecisionHandler = { newClientToken, _ -> when { - err != null -> decisionHandler.handleFailure(err.ifBlank { null }) newClientToken != null -> decisionHandler.continueWithNewClientToken(newClientToken) - else -> decisionHandler.handleSuccess() } } val resumeToken = mapOf(Keys.RESUME_TOKEN to resumeToken) sendEvent?.invoke( - PrimerHeadlessUniversalCheckoutEvent.ON_RESUME_SUCCESS.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_SUCCESS.eventName, JSONObject(Json.encodeToString(resumeToken)) ) } else { sendError?.invoke( ErrorTypeRN.NativeBridgeFailed - errorTo "Callback [onResumeSuccess] should be implemented." + errorTo "Callback ${PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_SUCCESS.eventName} should be implemented." ) } } - override fun onResumePending(additionalInfo: PrimerCheckoutAdditionalInfo?) { - if (implementedRNCallbacks?.isOnResumePendingImplemented == true) { + override fun onResumePending(additionalInfo: PrimerCheckoutAdditionalInfo) { + if (implementedRNCallbacks?.isOnCheckoutPendingImplemented == true) { if (additionalInfo is MultibancoCheckoutAdditionalInfo) { sendEvent?.invoke( - PrimerEvents.ON_RESUME_PENDING.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_PENDING.eventName, JSONObject(Json.encodeToString(additionalInfo.toCheckoutAdditionalInfoRN())).apply { remove("type") } @@ -201,16 +211,17 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou } else { sendError?.invoke( ErrorTypeRN.NativeBridgeFailed - errorTo "Callback [onResumePending] should be implemented." + errorTo "Callback [${PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_PENDING.eventName}] " + + "should be implemented." ) } } override fun onAdditionalInfoReceived(additionalInfo: PrimerCheckoutAdditionalInfo) { - if (implementedRNCallbacks?.isOnCheckoutReceivedAdditionalInfo == true) { + if (implementedRNCallbacks?.isOnCheckoutAdditionalInfoImplemented == true) { if (additionalInfo is PromptPayCheckoutAdditionalInfo) { sendEvent?.invoke( - PrimerEvents.ON_CHECKOUT_RECEIVED_ADDITIONAL_INFO.eventName, + PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_ADDITIONAL_INFO.eventName, JSONObject(Json.encodeToString(additionalInfo.toCheckoutAdditionalInfoRN())).apply { remove("type") } @@ -219,7 +230,8 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou } else { sendError?.invoke( ErrorTypeRN.NativeBridgeFailed - errorTo "Callback [onAdditionalInfoReceived] should be implemented." + errorTo "Callback [${PrimerHeadlessUniversalCheckoutEvent.ON_CHECKOUT_ADDITIONAL_INFO.eventName}]" + + " should be implemented." ) } } @@ -254,20 +266,6 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou tokenizeSuccessDecisionHandler?.invoke(newClientToken, null) tokenizeSuccessDecisionHandler = null } - - fun handleTokenizationSuccess(promise: Promise) { - val error = - ErrorTypeRN.NativeBridgeFailed errorTo "PrimerTokenizationHandler's " + - "handleSuccess function is not available on HUC." - promise.reject(error.errorId, error.description) - } - - fun handleTokenizationFailure(errorMessage: String, promise: Promise) { - val error = - ErrorTypeRN.NativeBridgeFailed errorTo "PrimerTokenizationHandler's " + - "handleFailure function is not available on HUC." - promise.reject(error.errorId, error.description) - } // endregion // region resume handlers @@ -275,20 +273,6 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou resumeSuccessDecisionHandler?.invoke(newClientToken, null) resumeSuccessDecisionHandler = null } - - fun handleResumeSuccess(promise: Promise) { - val error = - ErrorTypeRN.NativeBridgeFailed errorTo "PrimerResumeHandler's " + - "handleSuccess function is not available on HUC." - promise.reject(error.errorId, error.description) - } - - fun handleResumeFailure(errorMessage: String, promise: Promise) { - val error = - ErrorTypeRN.NativeBridgeFailed errorTo "PrimerResumeHandler's " + - "handleFailure function is not available on HUC." - promise.reject(error.errorId, error.description) - } // endregion // region payment create handlers diff --git a/android/src/main/java/com/primerioreactnative/ReactNativePackage.kt b/android/src/main/java/com/primerioreactnative/ReactNativePackage.kt index 8160665ae..267ffdb1f 100644 --- a/android/src/main/java/com/primerioreactnative/ReactNativePackage.kt +++ b/android/src/main/java/com/primerioreactnative/ReactNativePackage.kt @@ -4,7 +4,9 @@ import com.facebook.react.ReactPackage import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.ViewManager -import com.primerioreactnative.huc.manager.raw.PrimerRNHeadlessUniversalCheckoutRawManager +import com.primerioreactnative.components.manager.asset.PrimerRNHeadlessUniversalCheckoutAssetManager +import com.primerioreactnative.components.manager.nativeUi.PrimerRNHeadlessUniversalCheckoutNativeUiManager +import com.primerioreactnative.components.manager.raw.PrimerRNHeadlessUniversalCheckoutRawManager import kotlinx.serialization.json.Json class ReactNativePackage : ReactPackage { @@ -15,7 +17,9 @@ class ReactNativePackage : ReactPackage { return listOf( PrimerRN(reactContext, json), PrimerRNHeadlessUniversalCheckout(reactContext, json), - PrimerRNHeadlessUniversalCheckoutRawManager(reactContext, json) + PrimerRNHeadlessUniversalCheckoutRawManager(reactContext, json), + PrimerRNHeadlessUniversalCheckoutNativeUiManager(reactContext), + PrimerRNHeadlessUniversalCheckoutAssetManager(reactContext) ) } diff --git a/android/src/main/java/com/primerioreactnative/huc/assets/AssetsManager.kt b/android/src/main/java/com/primerioreactnative/components/assets/AssetsManager.kt similarity index 67% rename from android/src/main/java/com/primerioreactnative/huc/assets/AssetsManager.kt rename to android/src/main/java/com/primerioreactnative/components/assets/AssetsManager.kt index 5213da478..cfa0fd137 100644 --- a/android/src/main/java/com/primerioreactnative/huc/assets/AssetsManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/assets/AssetsManager.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.assets +package com.primerioreactnative.components.assets import android.graphics.Bitmap import android.graphics.Canvas @@ -7,11 +7,9 @@ import android.graphics.drawable.Drawable import com.facebook.react.bridge.ReactApplicationContext import java.io.File import java.io.FileOutputStream -import java.util.* internal object AssetsManager { - private const val ASSETS_DIRECTORY = "primer-sdk" private const val COMPRESS_QUALITY = 100 fun drawableToBitmap(drawable: Drawable): Bitmap { @@ -35,22 +33,15 @@ internal object AssetsManager { bitmap: Bitmap, format: Bitmap.CompressFormat = Bitmap.CompressFormat.PNG, ) { - FileOutputStream(file).use { bitmap.compress(format, COMPRESS_QUALITY, it) it.close() } } - fun getFile(context: ReactApplicationContext, path: String): File { - val directory = File(context.filesDir, path) - if (!directory.exists()) directory.mkdirs() - val file = File( - context.filesDir, - ASSETS_DIRECTORY + File.pathSeparator + path.toLowerCase(Locale.ROOT) - ) - if (!file.exists()) file.createNewFile() - return file + internal enum class ImageColorType { + COLORED, + DARK, + LIGHT } - } diff --git a/android/src/main/java/com/primerioreactnative/components/assets/CardNetworkImageFileProvider.kt b/android/src/main/java/com/primerioreactnative/components/assets/CardNetworkImageFileProvider.kt new file mode 100644 index 000000000..4518b8452 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/assets/CardNetworkImageFileProvider.kt @@ -0,0 +1,23 @@ +package com.primerioreactnative.components.assets + +import com.facebook.react.bridge.ReactApplicationContext +import java.io.File + +internal object CardNetworkImageFileProvider { + + private const val ASSETS_DIRECTORY = "primer-react-native-sdk" + + fun getFileForCardNetworkAsset( + context: ReactApplicationContext, + path: String, + ): File { + val directory = File(context.filesDir, ASSETS_DIRECTORY) + if (!directory.exists()) directory.mkdirs() + val file = File( + directory, + path.lowercase() + ) + if (!file.exists()) file.createNewFile() + return file + } +} diff --git a/android/src/main/java/com/primerioreactnative/components/assets/PaymentMethodAssetFileProvider.kt b/android/src/main/java/com/primerioreactnative/components/assets/PaymentMethodAssetFileProvider.kt new file mode 100644 index 000000000..a983178ac --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/assets/PaymentMethodAssetFileProvider.kt @@ -0,0 +1,24 @@ +package com.primerioreactnative.components.assets + +import com.facebook.react.bridge.ReactApplicationContext +import java.io.File + +internal object PaymentMethodAssetFileProvider { + + private const val ASSETS_DIRECTORY = "primer-react-native-sdk" + + fun getFileForPaymentMethodAsset( + context: ReactApplicationContext, + path: String, + type: AssetsManager.ImageColorType + ): File { + val directory = File(context.filesDir, ASSETS_DIRECTORY + File.separator + path) + if (!directory.exists()) directory.mkdirs() + val file = File( + directory, + type.name.lowercase() + ) + if (!file.exists()) file.createNewFile() + return file + } +} diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRNHeadlessUniversalCheckoutPaymentMethod.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRNHeadlessUniversalCheckoutPaymentMethod.kt new file mode 100644 index 000000000..3c7142faa --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRNHeadlessUniversalCheckoutPaymentMethod.kt @@ -0,0 +1,25 @@ +package com.primerioreactnative.components.datamodels.core + +import io.primer.android.PrimerSessionIntent +import io.primer.android.components.domain.core.models.PrimerHeadlessUniversalCheckoutPaymentMethod +import io.primer.android.components.domain.core.models.PrimerPaymentMethodManagerCategory +import kotlinx.serialization.Serializable + +@Serializable +data class PrimerRNAvailablePaymentMethods( + val availablePaymentMethods: List +) + +@Serializable +data class PrimerRNHeadlessUniversalCheckoutPaymentMethod( + val paymentMethodType: String, + val supportedPrimerSessionIntents: List, + val paymentMethodManagerCategories: List, +) + +internal fun PrimerHeadlessUniversalCheckoutPaymentMethod.toPrimerRNHeadlessUniversalCheckoutPaymentMethod() = + PrimerRNHeadlessUniversalCheckoutPaymentMethod( + paymentMethodType, + supportedPrimerSessionIntents, + paymentMethodManagerCategories.minus(PrimerPaymentMethodManagerCategory.CARD_COMPONENTS) + ) diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRawPaymentMethodType.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRawPaymentMethodType.kt new file mode 100644 index 000000000..09346ed99 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/core/PrimerRawPaymentMethodType.kt @@ -0,0 +1,9 @@ +package com.primerioreactnative.components.datamodels.core + +internal enum class PrimerRawPaymentMethodType { + PAYMENT_CARD, + XENDIT_OVO, + ADYEN_MBWAY, + ADYEN_BANCONTACT_CARD, + XENDIT_RETAIL_OUTLETS +} diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/asset/PrimerRNAsset.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/asset/PrimerRNAsset.kt new file mode 100644 index 000000000..c27ce7309 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/asset/PrimerRNAsset.kt @@ -0,0 +1,99 @@ +package com.primerioreactnative.components.datamodels.manager.asset + +import android.graphics.drawable.Drawable +import com.facebook.react.bridge.ReactApplicationContext +import com.primerioreactnative.components.assets.AssetsManager +import com.primerioreactnative.components.assets.AssetsManager.drawableToBitmap +import com.primerioreactnative.components.assets.PaymentMethodAssetFileProvider.getFileForPaymentMethodAsset +import io.primer.android.components.ui.assets.PrimerPaymentMethodAsset +import kotlinx.serialization.Serializable + +@Serializable +data class PrimerRNPaymentMethodAssets( + val paymentMethodAssets: List +) + +@Serializable +data class PrimerRNPaymentMethodAsset( + val paymentMethodType: String, + val paymentMethodLogo: PrimerRNPaymentMethodLogo, + val paymentMethodBackgroundColor: PrimerRNPaymentMethodBackgroundColor +) + +@Serializable +data class PrimerRNPaymentMethodLogo( + val colored: String?, + val light: String?, + val dark: String? +) + +@Serializable +data class PrimerRNPaymentMethodBackgroundColor( + val colored: String?, + val light: String?, + val dark: String? +) + +@Serializable +data class PrimerCardNetworkAsset( + val cardNetworkImageURL: String +) + +internal fun PrimerPaymentMethodAsset.toPrimerRNPaymentMethodLogo( + reactContext: ReactApplicationContext, + paymentMethodType: String, +) = PrimerRNPaymentMethodAsset( + paymentMethodType, + PrimerRNPaymentMethodLogo( + paymentMethodLogo.colored?.let { + getFileUrl( + reactContext, + paymentMethodType, + AssetsManager.ImageColorType.COLORED, + it + ) + }, + paymentMethodLogo.light?.let { + getFileUrl( + reactContext, + paymentMethodType, + AssetsManager.ImageColorType.LIGHT, + it + ) + }, + paymentMethodLogo.dark?.let { + getFileUrl( + reactContext, + paymentMethodType, + AssetsManager.ImageColorType.DARK, + it + ) + } + ), + PrimerRNPaymentMethodBackgroundColor( + paymentMethodBackgroundColor.colored?.let { + String.format("#%06X", (0xFFFFFF and it)) + }, + paymentMethodBackgroundColor.light?.let { + String.format("#%06X", (0xFFFFFF and it)) + }, + paymentMethodBackgroundColor.dark?.let { + String.format("#%06X", (0xFFFFFF and it)) + } + ) +) + + +private fun getFileUrl( + reactContext: ReactApplicationContext, + paymentMethodType: String, + imageColorType: AssetsManager.ImageColorType, + drawable: Drawable, +): String { + val file = getFileForPaymentMethodAsset(reactContext, paymentMethodType, imageColorType) + AssetsManager.saveBitmapToFile( + file, + drawableToBitmap(drawable), + ) + return "file://${file.absolutePath}" +} diff --git a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/card/PrimerRNRawCardData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt similarity index 88% rename from android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/card/PrimerRNRawCardData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt index 780794a95..82a414c05 100644 --- a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/card/PrimerRNRawCardData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.datamodels.manager.raw.card +package com.primerioreactnative.components.datamodels.manager.raw.card import io.primer.android.components.domain.core.models.card.PrimerRawCardData import kotlinx.serialization.Serializable diff --git a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt similarity index 85% rename from android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt index 343c2034e..ef652e9da 100644 --- a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.datamodels.manager.raw.cardRedirect +package com.primerioreactnative.components.datamodels.manager.raw.cardRedirect import io.primer.android.components.domain.core.models.bancontact.PrimerRawBancontactCardData import kotlinx.serialization.Serializable diff --git a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt similarity index 81% rename from android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt index ab45989f1..099764bdf 100644 --- a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.datamodels.manager.raw.phoneNumber +package com.primerioreactnative.components.datamodels.manager.raw.phoneNumber import io.primer.android.components.domain.core.models.phoneNumber.PrimerRawPhoneNumberData import kotlinx.serialization.Serializable diff --git a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt similarity index 78% rename from android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt index d4c57f35a..5d96ed9b2 100644 --- a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.datamodels.manager.raw.retailOutlets +package com.primerioreactnative.components.datamodels.manager.raw.retailOutlets import io.primer.android.components.domain.core.models.retailOutlet.PrimerRawRetailerData import kotlinx.serialization.Serializable diff --git a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt similarity index 87% rename from android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt index 2c3e446be..bb3585c9f 100644 --- a/android/src/main/java/com/primerioreactnative/huc/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/RNRetailOutletsList.kt @@ -1,4 +1,4 @@ -package com.primerioreactnative.huc.datamodels.manager.raw.retailOutlets +package com.primerioreactnative.components.datamodels.manager.raw.retailOutlets import io.primer.android.data.payments.configure.retailOutlets.RetailOutletsList import kotlinx.serialization.Serializable diff --git a/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt new file mode 100644 index 000000000..7c3c65ac4 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt @@ -0,0 +1,17 @@ +package com.primerioreactnative.components.events + +internal enum class PrimerHeadlessUniversalCheckoutEvent(val eventName: String) { + ON_AVAILABLE_PAYMENT_METHODS_LOAD("onAvailablePaymentMethodsLoad"), + ON_PREPARE_START("onPreparationStart"), + ON_PAYMENT_METHOD_SHOW("onPaymentMethodShow"), + ON_TOKENIZE_START("onTokenizeStart"), + ON_CHECKOUT_COMPLETE("onCheckoutComplete"), + ON_CHECKOUT_PENDING("onCheckoutPending"), + ON_BEFORE_CLIENT_SESSION_UPDATE("onBeforeClientSessionUpdate"), + ON_CLIENT_SESSION_UPDATE("onClientSessionUpdate"), + ON_BEFORE_PAYMENT_CREATE("onBeforePaymentCreate"), + ON_TOKENIZE_SUCCESS("onTokenizeSuccess"), + ON_CHECKOUT_SUCCESS("onCheckoutResume"), + ON_CHECKOUT_ADDITIONAL_INFO("onCheckoutAdditionalInfo"), + ON_ERROR("onError"), +} diff --git a/android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt similarity index 69% rename from android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt rename to android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt index 420a24e26..75ddbbf0f 100644 --- a/android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt +++ b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutRawDataManagerEvent.kt @@ -1,7 +1,6 @@ -package com.primerioreactnative.huc.events +package com.primerioreactnative.components.events internal enum class PrimerHeadlessUniversalCheckoutRawDataManagerEvent(val eventName: String) { ON_METADATA_CHANGED("onMetadataChange"), ON_VALIDATION_CHANGED("onValidation"), - ON_NATIVE_ERROR("onNativeError"), } diff --git a/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt new file mode 100644 index 000000000..eb89af709 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt @@ -0,0 +1,118 @@ +package com.primerioreactnative.components.manager.asset + +import androidx.core.content.ContextCompat +import com.facebook.react.bridge.Promise +import com.facebook.react.bridge.ReactApplicationContext +import com.facebook.react.bridge.ReactContextBaseJavaModule +import com.facebook.react.bridge.ReactMethod +import com.primerioreactnative.components.assets.AssetsManager +import com.primerioreactnative.components.assets.AssetsManager.drawableToBitmap +import com.primerioreactnative.components.assets.CardNetworkImageFileProvider.getFileForCardNetworkAsset +import com.primerioreactnative.components.datamodels.manager.asset.PrimerCardNetworkAsset +import com.primerioreactnative.components.datamodels.manager.asset.PrimerRNPaymentMethodAssets +import com.primerioreactnative.components.datamodels.manager.asset.toPrimerRNPaymentMethodLogo +import com.primerioreactnative.datamodels.ErrorTypeRN +import com.primerioreactnative.utils.convertJsonToMap +import com.primerioreactnative.utils.errorTo +import io.primer.android.ExperimentalPrimerApi +import io.primer.android.components.ui.assets.PrimerAssetsManager +import io.primer.android.ui.CardNetwork +import kotlinx.serialization.encodeToString +import kotlinx.serialization.json.Json +import org.json.JSONObject + +@ExperimentalPrimerApi +internal class PrimerRNHeadlessUniversalCheckoutAssetManager( + private val reactContext: ReactApplicationContext, +) : ReactContextBaseJavaModule(reactContext) { + + override fun getName() = "RNTPrimerHeadlessUniversalCheckoutAssetsManager" + + @ReactMethod + fun getCardNetworkImage( + cardNetworkStr: String, + promise: Promise, + ) { + val cardNetwork = + CardNetwork.Type.values().find { it.name.equals(cardNetworkStr, ignoreCase = true) } + when (cardNetwork) { + null -> { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find asset of $cardNetworkStr." + promise.reject(exception.errorId, exception.description) + } + else -> try { + PrimerAssetsManager.getCardNetworkImage(cardNetwork).let { resourceId -> + val file = getFileForCardNetworkAsset(reactContext, cardNetworkStr) + AssetsManager.saveBitmapToFile( + file, + drawableToBitmap(ContextCompat.getDrawable(reactContext, resourceId)!!), + ) + promise.resolve( + convertJsonToMap( + JSONObject( + Json.encodeToString( + PrimerCardNetworkAsset("file://${file.absolutePath}") + ) + ) + ) + ) + } + } catch (e: Exception) { + promise.reject(ErrorTypeRN.NativeBridgeFailed.errorId, e.message, e) + } + } + } + + @ReactMethod + fun getPaymentMethodAsset(paymentMethodTypeStr: String, promise: Promise) { + try { + val paymentMethodAsset = + PrimerAssetsManager.getPaymentMethodAsset(reactContext, paymentMethodTypeStr) + promise.resolve( + convertJsonToMap( + JSONObject().apply { + put( + "paymentMethodAsset", + Json.encodeToString( + paymentMethodAsset.toPrimerRNPaymentMethodLogo( + reactContext, + paymentMethodTypeStr + ) + ) + ) + } + ) + ) + } catch (e: Exception) { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find asset of $paymentMethodTypeStr for this session." + promise.reject(exception.errorId, exception.description) + } + } + + @ReactMethod + fun getPaymentMethodAssets(promise: Promise) { + val paymentMethodAssets = + PrimerAssetsManager.getPaymentMethodAssets(reactContext) + if (paymentMethodAssets.isEmpty()) { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find assets for this session" + promise.reject(exception.errorId, exception.description) + } + promise.resolve( + convertJsonToMap( + JSONObject( + Json.encodeToString( + PrimerRNPaymentMethodAssets(paymentMethodAssets.map { + it.toPrimerRNPaymentMethodLogo( + reactContext, + it.paymentMethodType + ) + }) + ) + ) + ) + ) + } +} diff --git a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt new file mode 100644 index 000000000..0e23d40c4 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt @@ -0,0 +1,70 @@ +package com.primerioreactnative.components.manager.nativeUi + +import com.facebook.react.bridge.Promise +import com.facebook.react.bridge.ReactApplicationContext +import com.facebook.react.bridge.ReactContextBaseJavaModule +import com.facebook.react.bridge.ReactMethod +import com.primerioreactnative.datamodels.ErrorTypeRN +import com.primerioreactnative.datamodels.PrimerErrorRN +import com.primerioreactnative.utils.errorTo +import io.primer.android.ExperimentalPrimerApi +import io.primer.android.PrimerSessionIntent +import io.primer.android.components.manager.native.PrimerNativeUiPaymentMethodManager +import io.primer.android.components.manager.native.PrimerNativeUiPaymentMethodManagerInterface + +@ExperimentalPrimerApi +internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( + private val reactContext: ReactApplicationContext, +) : ReactContextBaseJavaModule(reactContext) { + + private lateinit var nativeUiManager: PrimerNativeUiPaymentMethodManagerInterface + private var paymentMethodTypeStr: String? = null + + override fun getName() = "RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager" + + @ReactMethod + fun configure(paymentMethodTypeStr: String, promise: Promise) { + try { + nativeUiManager = PrimerNativeUiPaymentMethodManager.newInstance( + paymentMethodTypeStr + ) + this.paymentMethodTypeStr = paymentMethodTypeStr + promise.resolve(null) + } catch (e: Exception) { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo e.message.orEmpty() + promise.reject(exception.errorId, exception.description, e) + } + } + + @ReactMethod + fun showPaymentMethod( + intentStr: String, + promise: Promise + ) { + + if (::nativeUiManager.isInitialized.not()) { + val exception = PrimerErrorRN( + ErrorTypeRN.NativeBridgeFailed.errorId, + "The NativeUIManager has not been initialized.", + "Initialize the NativeUIManager by calling the configure function" + + " and providing a payment method type." + ) + promise.reject(exception.errorId, exception.description) + } else if (PrimerSessionIntent.values() + .firstOrNull { intentStr.equals(it.name, true) } == null + ) { + val exception = PrimerErrorRN( + ErrorTypeRN.NativeBridgeFailed.errorId, + "Invalid value for 'intent'.", + "'intent' can be 'CHECKOUT' or 'VAULT'." + ) + promise.reject(exception.errorId, exception.description) + } else { + nativeUiManager.showPaymentMethod( + reactContext, + PrimerSessionIntent.valueOf(intentStr.uppercase()) + ) + } + } +} diff --git a/android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt similarity index 61% rename from android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt rename to android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index e406002d6..77ae9a26c 100644 --- a/android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -1,16 +1,17 @@ -package com.primerioreactnative.huc.manager.raw +package com.primerioreactnative.components.manager.raw import com.facebook.react.bridge.* import com.facebook.react.modules.core.DeviceEventManagerModule import com.primerioreactnative.Keys +import com.primerioreactnative.components.datamodels.core.PrimerRawPaymentMethodType +import com.primerioreactnative.components.datamodels.manager.raw.card.PrimerRNRawCardData +import com.primerioreactnative.components.datamodels.manager.raw.cardRedirect.PrimerRNRawBancontactCardData +import com.primerioreactnative.components.datamodels.manager.raw.phoneNumber.PrimerRNRawPhoneNumberData +import com.primerioreactnative.components.datamodels.manager.raw.retailOutlets.PrimerRNRawRetailOutletData +import com.primerioreactnative.components.datamodels.manager.raw.retailOutlets.toRNRetailOutletsList +import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.datamodels.ErrorTypeRN import com.primerioreactnative.datamodels.PrimerErrorRN -import com.primerioreactnative.huc.datamodels.manager.raw.card.PrimerRNRawCardData -import com.primerioreactnative.huc.datamodels.manager.raw.cardRedirect.PrimerRNRawBancontactCardData -import com.primerioreactnative.huc.datamodels.manager.raw.phoneNumber.PrimerRNRawPhoneNumberData -import com.primerioreactnative.huc.datamodels.manager.raw.retailOutlets.PrimerRNRawRetailOutletData -import com.primerioreactnative.huc.datamodels.manager.raw.retailOutlets.toRNRetailOutletsList -import com.primerioreactnative.huc.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi @@ -37,21 +38,38 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( listener.sendEvent = { eventName, paramsJson -> sendEvent(eventName, paramsJson) } } - override fun getName() = "PrimerHeadlessUniversalCheckoutRawDataManager" + override fun getName() = "RNTPrimerHeadlessUniversalCheckoutRawDataManager" @ReactMethod - fun initialize(paymentMethodTypeStr: String, promise: Promise) { + fun configure(paymentMethodTypeStr: String, promise: Promise) { try { rawManager = PrimerHeadlessUniversalCheckoutRawDataManager.newInstance( paymentMethodTypeStr ) this.paymentMethodTypeStr = paymentMethodTypeStr - rawManager.setManagerListener(listener) - promise.resolve(null) + rawManager.setListener(listener) + rawManager.configure { primerInitializationData, error -> + if (error == null) { + when (primerInitializationData) { + is RetailOutletsList -> { + promise.resolve( + prepareData( + JSONObject( + Json.encodeToString( + primerInitializationData.toRNRetailOutletsList() + ) + ) + ) + ) + } + else -> promise.resolve(null) + } + } else promise.reject(error.errorId, error.description) + } } catch (e: Exception) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo e.message.orEmpty() - promise.reject(exception.errorId, exception.description) + promise.reject(exception.errorId, exception.description, e) } } @@ -62,9 +80,7 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( ) { if (::rawManager.isInitialized.not()) { val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "The PrimerHeadlessUniversalCheckoutRawDataManager" + - " has not been initialized. Make sure you have called the" + - " HeadlessUniversalCheckoutRawDataManager.configure function first." + ErrorTypeRN.NativeBridgeFailed errorTo UNINITIALIZED_ERROR promise.reject(exception.errorId, exception.description) } else { promise.resolve( @@ -84,33 +100,31 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( fun setRawData(rawDataStr: String, promise: Promise) { if (::rawManager.isInitialized.not()) { val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "The PrimerHeadlessUniversalCheckoutRawDataManager" + - " has not been initialized. Make sure you have called the" + - " HeadlessUniversalCheckoutRawDataManager.configure function first." + ErrorTypeRN.NativeBridgeFailed errorTo UNINITIALIZED_ERROR promise.reject(exception.errorId, exception.description) } else { try { - val rawData = when (paymentMethodTypeStr) { - "PAYMENT_CARD" -> json.decodeFromString( + val rawData = when (PrimerRawPaymentMethodType.valueOf(paymentMethodTypeStr.toString())) { + PrimerRawPaymentMethodType.PAYMENT_CARD -> json.decodeFromString( rawDataStr ).toPrimerCardData() - "XENDIT_OVO" -> json.decodeFromString( - rawDataStr - ).toPrimerRawPhoneNumberData() - "ADYEN_BANCONTACT_CARD" -> json.decodeFromString( - rawDataStr - ).toPrimerRawBancontactCardData() - "XENDIT_RETAIL_OUTLETS" -> json.decodeFromString( - rawDataStr - ).toPrimerRawRetailOutletData() - else -> throw IllegalArgumentException("") + PrimerRawPaymentMethodType.XENDIT_OVO, + PrimerRawPaymentMethodType.ADYEN_MBWAY -> + json.decodeFromString(rawDataStr) + .toPrimerRawPhoneNumberData() + PrimerRawPaymentMethodType.ADYEN_BANCONTACT_CARD -> + json.decodeFromString(rawDataStr) + .toPrimerRawBancontactCardData() + PrimerRawPaymentMethodType.XENDIT_RETAIL_OUTLETS -> + json.decodeFromString(rawDataStr) + .toPrimerRawRetailOutletData() } rawManager.setRawData(rawData) promise.resolve(null) } catch (e: Exception) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo "Failed to decode $rawDataStr on Android." + - " Make sure you're providing a valid object" + " Make sure you're providing a valid 'RawData' (or any inherited) object." onError(exception) promise.reject(exception.errorId, exception.description, e) } @@ -121,9 +135,7 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( fun submit(promise: Promise) { if (::rawManager.isInitialized.not()) { val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "The PrimerHeadlessUniversalCheckoutRawDataManager" + - " has not been initialized. Make sure you have called the" + - " HeadlessUniversalCheckoutRawDataManager.configure function first." + ErrorTypeRN.NativeBridgeFailed errorTo UNINITIALIZED_ERROR promise.reject(exception.errorId, exception.description) } else { rawManager.submit() @@ -132,12 +144,10 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } @ReactMethod - fun disposeRawDataManager(promise: Promise) { + fun dispose(promise: Promise) { if (::rawManager.isInitialized.not()) { val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "The PrimerHeadlessUniversalCheckoutRawDataManager" + - " has not been initialized. Make sure you have called the" + - " HeadlessUniversalCheckoutRawDataManager.configure function first." + ErrorTypeRN.NativeBridgeFailed errorTo UNINITIALIZED_ERROR promise.reject(exception.errorId, exception.description) } else { rawManager.cleanup() @@ -145,36 +155,6 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } } - @ReactMethod - fun configure(promise: Promise) { - if (::rawManager.isInitialized.not()) { - val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "The PrimerHeadlessUniversalCheckoutRawDataManager" + - " has not been initialized. Make sure you have called the" + - " HeadlessUniversalCheckoutRawDataManager.configure function first." - promise.reject(exception.errorId, exception.description) - } else { - rawManager.configure { primerInitializationData, error -> - if (error == null) { - when (primerInitializationData) { - is RetailOutletsList -> { - promise.resolve( - prepareData( - JSONObject( - Json.encodeToString( - primerInitializationData.toRNRetailOutletsList() - ) - ) - ) - ) - } - else -> promise.resolve(null) - } - } else promise.reject(error.errorId, error.description) - } - } - } - private fun sendEvent(name: String, params: WritableMap) { reactApplicationContext.getJSModule( DeviceEventManagerModule.RCTDeviceEventEmitter::class.java @@ -199,4 +179,12 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( params.putMap(Keys.ERROR, errorData) sendEvent(PrimerHeadlessUniversalCheckoutEvent.ON_ERROR.eventName, params) } + + private companion object { + const val UNINITIALIZED_ERROR = + """ + The RawDataManager has not been initialized. + Make sure you have initialized the `RawDataManager' first. + """ + } } diff --git a/android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt similarity index 87% rename from android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt rename to android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt index 7fb44acf9..4751d1881 100644 --- a/android/src/main/java/com/primerioreactnative/huc/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt @@ -1,12 +1,11 @@ -package com.primerioreactnative.huc.manager.raw +package com.primerioreactnative.components.manager.raw import com.primerioreactnative.datamodels.PrimerErrorRN -import com.primerioreactnative.huc.events.PrimerHeadlessUniversalCheckoutRawDataManagerEvent +import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutRawDataManagerEvent import io.primer.android.ExperimentalPrimerApi import io.primer.android.components.domain.core.models.card.PrimerCardMetadata import io.primer.android.components.domain.core.models.metadata.PrimerPaymentMethodMetadata import io.primer.android.components.domain.error.PrimerInputValidationError -import io.primer.android.components.manager.raw.PrimerHeadlessUniversalCheckoutRawDataManager import io.primer.android.components.manager.raw.PrimerHeadlessUniversalCheckoutRawDataManagerListener import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt index c35e57254..6322074ba 100644 --- a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt @@ -11,8 +11,5 @@ data class PrimerErrorRN( @Serializable enum class ErrorTypeRN(val errorId: String) { - NativeBridgeFailed("native-bridge"), - AssetMissing("missing-asset"), - AssetMismatch("mismatch-asset"), - InvalidCardNetwork("invalid-card-network") + NativeBridgeFailed("native-android"), } diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt index 0cd2fc3f3..6b4f9aa10 100644 --- a/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt @@ -33,7 +33,6 @@ data class PrimerPaymentMethodOptionsRN( var googlePayOptions: PrimerGooglePayOptionsRN = PrimerGooglePayOptionsRN(), var klarnaOptions: PrimerKlarnaOptionsRN = PrimerKlarnaOptionsRN(), var apayaOptions: PrimerApayaOptionsRN = PrimerApayaOptionsRN(), - var goCardlessOptions: PrimerGoCardlessOptionsRN = PrimerGoCardlessOptionsRN() ) @Serializable @@ -81,13 +80,6 @@ data class PrimerApayaOptionsRN( var webViewTitle: String? = null, ) -@Serializable -@Deprecated("This class is deprecated and will be removed in future release.") -data class PrimerGoCardlessOptionsRN( - var businessName: String? = null, - var businessAddress: String? = null, -) - fun PrimerSettingsRN.toPrimerSettings() = PrimerSettings( paymentHandling, localeData.toLocale(), diff --git a/android/src/main/java/com/primerioreactnative/extensions/PrimerPaymentMethodOptionsRN.kt b/android/src/main/java/com/primerioreactnative/extensions/PrimerPaymentMethodOptionsRN.kt index ef0e7fe9f..bb1c75193 100644 --- a/android/src/main/java/com/primerioreactnative/extensions/PrimerPaymentMethodOptionsRN.kt +++ b/android/src/main/java/com/primerioreactnative/extensions/PrimerPaymentMethodOptionsRN.kt @@ -8,7 +8,6 @@ fun PrimerPaymentMethodOptionsRN.toPrimerPaymentMethodOptions() = PrimerPaymentM googlePayOptions.toPrimerGooglePayOptions(), klarnaOptions.toPrimerKlarnaOptions(), apayaOptions.toPrimerApayaOptions(), - goCardlessOptions.toPrimerGoCardlessOptions() ) fun PrimerGooglePayOptionsRN.toPrimerGooglePayOptions() = @@ -18,6 +17,3 @@ fun PrimerKlarnaOptionsRN.toPrimerKlarnaOptions() = PrimerKlarnaOptions(recurringPaymentDescription, webViewTitle) fun PrimerApayaOptionsRN.toPrimerApayaOptions() = PrimerApayaOptions(webViewTitle) - -fun PrimerGoCardlessOptionsRN.toPrimerGoCardlessOptions() = - PrimerGoCardlessOptions(businessName, businessAddress) diff --git a/android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutEvent.kt b/android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutEvent.kt deleted file mode 100644 index dd707c0f8..000000000 --- a/android/src/main/java/com/primerioreactnative/huc/events/PrimerHeadlessUniversalCheckoutEvent.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.primerioreactnative.huc.events - -internal enum class PrimerHeadlessUniversalCheckoutEvent(val eventName: String) { - ON_HUC_AVAILABLE_PAYMENT_METHODS_LOADED("onHUCAvailablePaymentMethodsLoaded"), - ON_HUC_PREPARE_START("onHUCPrepareStart"), - ON_HUC_PAYMENT_METHOD_SHOW("onHUCPaymentMethodShow"), - ON_HUC_TOKENIZE_START("onHUCTokenizeStart"), - ON_CHECKOUT_COMPLETE("onCheckoutComplete"), - ON_BEFORE_CLIENT_SESSION_UPDATE("onBeforeClientSessionUpdate"), - ON_CLIENT_SESSION_UPDATE("onClientSessionUpdate"), - ON_BEFORE_PAYMENT_CREATE("onBeforePaymentCreate"), - ON_TOKENIZE_SUCCESS("onTokenizeSuccess"), - ON_RESUME_SUCCESS("onResumeSuccess"), - ON_ERROR("onError"), -} diff --git a/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt b/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt index de42a15bb..4857133d7 100644 --- a/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt +++ b/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt @@ -17,18 +17,18 @@ data class PrimerHeadlessUniversalCheckoutImplementedRNCallbacks( val isOnErrorImplemented: Boolean? = null, @SerialName("onTokenizeSuccess") val isOnTokenizeSuccessImplemented: Boolean? = null, - @SerialName("onResumeSuccess") - val isOnResumeSuccessImplemented: Boolean? = null, - @SerialName("onResumePending") - val isOnResumePendingImplemented: Boolean? = null, - @SerialName("onCheckoutReceivedAdditionalInfo") - val isOnCheckoutReceivedAdditionalInfo: Boolean? = null, - @SerialName("onHUCTokenizeStart") - val isOnHUCTokenizeStartsImplemented: Boolean? = null, - @SerialName("onHUCPrepareStart") - val isOnHUCPrepareStartImplemented: Boolean? = null, - @SerialName("onHUCAvailablePaymentMethodsLoaded") - val isOnHUCAvailablePaymentMethodsLoadedImplemented: Boolean? = null, - @SerialName("onHUCPaymentMethodShow") - val isOnHUCPaymentMethodShowImplemented: Boolean? = null, + @SerialName("onCheckoutResume") + val isOnCheckoutResumeImplemented: Boolean? = null, + @SerialName("onCheckoutPending") + val isOnCheckoutPendingImplemented: Boolean? = null, + @SerialName("onCheckoutAdditionalInfo") + val isOnCheckoutAdditionalInfoImplemented: Boolean? = null, + @SerialName("onTokenizationStart") + val isOnTokenizationStartImplemented: Boolean? = null, + @SerialName("onPreparationStart") + val isOnPreparationStartImplemented: Boolean? = null, + @SerialName("onAvailablePaymentMethodsLoad") + val isOnAvailablePaymentMethodsLoadImplemented: Boolean? = null, + @SerialName("onPaymentMethodShow") + val isOnPaymentMethodShowImplemented: Boolean? = null, ) diff --git a/example/android/build.gradle b/example/android/build.gradle index ab822a5ec..64db47685 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -4,16 +4,16 @@ buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 21 - compileSdkVersion = 31 - targetSdkVersion = 31 - kotlin_version = "1.6.21" + compileSdkVersion = 33 + targetSdkVersion = 33 + kotlin_version = "1.7.10" } repositories { google() - jcenter() + mavenCentral() } dependencies { - classpath('com.android.tools.build:gradle:4.0.2') + classpath('com.android.tools.build:gradle:4.2.2') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -23,9 +23,6 @@ buildscript { allprojects { repositories { mavenLocal() -// maven { -// url 'https://dl.bintray.com/primer-api/android/' -// } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") @@ -35,7 +32,7 @@ allprojects { url("$rootDir/../node_modules/jsc-android/dist") } google() - jcenter() + mavenCentral() maven { url 'https://www.jitpack.io' } } } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index a9384f4c4..559cf7867 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro android.useAndroidX=true android.enableJetifier=true -FLIPPER_VERSION=0.54.0 +FLIPPER_VERSION=0.99.0 ARTIFACTORY_3DS_URL=https://primer.jfrog.io/artifactory/primer-android/ diff --git a/example/src/App.tsx b/example/src/App.tsx index 0310db07d..31413eecd 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -11,7 +11,6 @@ import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; import RawRetailOutletScreen from './screens/RawRetailOutletScreen'; - const Stack = createNativeStackNavigator(); const App = () => { @@ -27,7 +26,6 @@ const App = () => { - ); diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 4f956da13..6a544e1b5 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -83,6 +83,9 @@ export const HeadlessCheckoutScreen = (props: any) => { iOS: { urlScheme: 'merchant://primer.io' }, + debugOptions: { + is3DSSanityCheckEnabled: false + } }, headlessUniversalCheckoutCallbacks: { onAvailablePaymentMethodsLoad: (availablePaymentMethods => { @@ -175,7 +178,7 @@ export const HeadlessCheckoutScreen = (props: any) => { const err = new Error("Invalid value for paymentId"); throw err; } - + } catch (err) { console.error(err); handler.complete(); @@ -240,7 +243,7 @@ export const HeadlessCheckoutScreen = (props: any) => { merchantPayment: merchantPayment, merchantPrimerError: merchantPrimerError }); - + setClientSession(null); setIsLoading(true); await createClientSessionIfNeeded(); @@ -248,7 +251,7 @@ export const HeadlessCheckoutScreen = (props: any) => { } catch (err) { console.error(err); } - + setIsLoading(false); } @@ -307,7 +310,7 @@ export const HeadlessCheckoutScreen = (props: any) => { } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); - + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); } diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx index 090a78245..38c708091 100644 --- a/example/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react'; import { Text, TouchableOpacity, - View + View, + ScrollView } from 'react-native'; import { ActivityIndicator } from 'react-native'; import { @@ -214,7 +215,7 @@ const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { const renderEvents = () => { return ( - + {metadataLog} @@ -225,7 +226,7 @@ const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { {validationLog} - + ) } diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 80b1303c2..a11fc7cba 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react'; import { Text, TouchableOpacity, - View + View, + ScrollView } from 'react-native'; import { ActivityIndicator } from 'react-native'; import { @@ -163,7 +164,7 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { { @@ -234,7 +235,7 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { const renderEvents = () => { return ( - + {metadataLog} @@ -245,7 +246,7 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { {validationLog} - + ) } diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx index f99cb6957..bf7eaa2a0 100644 --- a/example/src/screens/RawPhoneNumberScreen.tsx +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react'; import { Text, TouchableOpacity, - View + View, + ScrollView } from 'react-native'; import { ActivityIndicator } from 'react-native'; import { @@ -145,7 +146,7 @@ const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { const renderEvents = () => { return ( - + {metadataLog} @@ -156,7 +157,7 @@ const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { {validationLog} - + ) } diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index ad284fdd2..958f633e8 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -142,7 +142,7 @@ const SettingsScreen = ({ navigation }) => { Currency & Country Code [String: Any] { return [ "paymentMethodType": paymentMethodType, diff --git a/ios/Sources/DataModels/PrimerSettings+Extensions.swift b/ios/Sources/DataModels/PrimerSettings+Extensions.swift index f6ffb9b1b..35b779327 100644 --- a/ios/Sources/DataModels/PrimerSettings+Extensions.swift +++ b/ios/Sources/DataModels/PrimerSettings+Extensions.swift @@ -1,7 +1,7 @@ import PrimerSDK extension PrimerSettings { - + convenience init(settingsStr: String?) throws { if settingsStr == nil { self.init() @@ -10,67 +10,67 @@ extension PrimerSettings { let err = RNTNativeError(errorId: "native-ios", errorDescription: "The value of the 'settings' object is invalid.", recoverySuggestion: "Provide a valid 'settings' object") throw err } - + let settingsJson = try JSONSerialization.jsonObject(with: settingsData) - + guard let settingsJson = settingsJson as? [String: Any] else { let err = RNTNativeError(errorId: "native-ios", errorDescription: "The 'settings' object is not a valid JSON", recoverySuggestion: "Provide a valid 'settings' object") throw err } - + var paymentHandling: PrimerPaymentHandling = .auto if let rnPaymentHandling = settingsJson["paymentHandling"] as? String, rnPaymentHandling == "MANUAL" { paymentHandling = .manual } - + let rnLocaleDataLanguageCode = (settingsJson["localeData"] as? [String: Any])?["languageCode"] as? String let rnLocaleDataLocaleCode = (settingsJson["localeData"] as? [String: Any])?["localeCode"] as? String let localeData = PrimerLocaleData( languageCode: rnLocaleDataLanguageCode, regionCode: rnLocaleDataLocaleCode) - + let rnUrlScheme = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["iOS"] as? [String: Any])?["urlScheme"] as? String - + var applePayOptions: PrimerApplePayOptions? if let rnApplePayOptions = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["applePayOptions"] as? [String: Any]), let rnApplePayMerchantIdentifier = rnApplePayOptions["merchantIdentifier"] as? String, let rnApplePayMerchantName = rnApplePayOptions["merchantName"] as? String { applePayOptions = PrimerApplePayOptions(merchantIdentifier: rnApplePayMerchantIdentifier, merchantName: rnApplePayMerchantName) } - + var klarnaOptions: PrimerKlarnaOptions? if let rnKlarnaRecurringPaymentDescription = ((settingsJson["paymentMethodOptions"] as? [String: Any])?["klarnaOptions"] as? [String: Any])?["recurringPaymentDescription"] as? String { klarnaOptions = PrimerKlarnaOptions(recurringPaymentDescription: rnKlarnaRecurringPaymentDescription) } - + var uiOptions: PrimerUIOptions? if let rnUIOptions = settingsJson["uiOptions"] as? [String: Any] { - + var theme: PrimerTheme? if let rnTheme = rnUIOptions["theme"] as? [String: Any] { let rnThemeData = (try JSONSerialization.data(withJSONObject: rnTheme)) let rnTheme = try JSONDecoder().decode(PrimerThemeRN.self, from: rnThemeData) theme = rnTheme.asPrimerTheme() } - + uiOptions = PrimerUIOptions( isInitScreenEnabled: rnUIOptions["isInitScreenEnabled"] as? Bool, isSuccessScreenEnabled: rnUIOptions["isSuccessScreenEnabled"] as? Bool, isErrorScreenEnabled: rnUIOptions["isErrorScreenEnabled"] as? Bool, theme: theme) } - + var debugOptions: PrimerDebugOptions? if let rnIs3DSSanityCheckEnabled = (settingsJson["debugOptions"] as? [String: Any])?["is3DSSanityCheckEnabled"] as? Bool { debugOptions = PrimerDebugOptions(is3DSSanityCheckEnabled: rnIs3DSSanityCheckEnabled) } - + let paymentMethodOptions = PrimerPaymentMethodOptions( urlScheme: rnUrlScheme, applePayOptions: applePayOptions, klarnaOptions: klarnaOptions) - + self.init( paymentHandling: paymentHandling, localeData: localeData, diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift index 5f52967c7..4819b3d62 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift @@ -10,17 +10,17 @@ import PrimerSDK @objc(RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager) class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { - + var paymentMethodNativeUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.NativeUIManager! - + override func supportedEvents() -> [String]! { return [] } - + override class func requiresMainQueueSetup() -> Bool { return true } - + @objc func configure( _ paymentMethod: String, @@ -34,7 +34,7 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } } - + @objc func showPaymentMethod(_ intent: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { do { @@ -45,7 +45,7 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { recoverySuggestion: "Initialize the NativeUIManager by calling the initialize function and providing a payment method type.") throw err } - + guard let intent = PrimerSessionIntent(rawValue: intent) else { let err = RNTNativeError( errorId: "native-ios", @@ -53,9 +53,9 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { recoverySuggestion: "'intent' can be 'CHECKOUT' or 'VAULT'.") throw err } - + try paymentMethodNativeUIManager.showPaymentMethod(intent: intent) - + } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index dcf4a035c..1dfc9cb61 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -39,7 +39,7 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { } // MARK: - API - + @objc public func configure( _ paymentMethodTypeStr: String, @@ -151,7 +151,7 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rawDataManager.submit() resolver(nil) } - + @objc public func dispose( _ resolver: RCTPromiseResolveBlock, @@ -169,6 +169,7 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { rawDataManager.submit() resolver(nil) } + } extension RNTPrimerHeadlessUniversalCheckoutRawDataManager: PrimerHeadlessUniversalCheckoutRawDataManagerDelegate { diff --git a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift index e851095d4..af1ab6321 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/RNTAssetsManager.swift @@ -10,15 +10,15 @@ import PrimerSDK @objc(RNTPrimerHeadlessUniversalCheckoutAssetsManager) class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { - + override func supportedEvents() -> [String]! { return [] } - + override class func requiresMainQueueSetup() -> Bool { return true } - + @objc func getCardNetworkImage( _ cardNetworkStr: String, @@ -26,7 +26,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { rejecter: RCTPromiseRejectBlock ) { do { - + guard let cardNetwork = CardNetwork(rawValue: cardNetworkStr) else { let err = RNTNativeError( errorId: "native-ios", @@ -34,7 +34,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { recoverySuggestion: nil) throw err } - + guard let cardNetworkImage = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getCardNetworkImage(for: cardNetwork) else { let err = RNTNativeError( errorId: "native-ios", @@ -42,15 +42,15 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { recoverySuggestion: nil) throw err } - + let localUrl = try cardNetworkImage.store(withName: cardNetwork.rawValue) resolver(["cardNetworkImageURL": localUrl.absoluteString]) - + } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } } - + @objc func getPaymentMethodAsset( _ paymentMethodType: String, @@ -65,7 +65,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { recoverySuggestion: nil) throw err } - + if let rntPaymentMethodAsset = try? RNTPrimerPaymentMethodAsset(primerPaymentMethodAsset: paymentMethodAsset).toJsonObject() { resolver(["paymentMethodAsset": rntPaymentMethodAsset]) } else { @@ -75,12 +75,12 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { recoverySuggestion: nil) throw err } - + } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } } - + @objc func getPaymentMethodAssets( _ resolver: RCTPromiseResolveBlock, @@ -88,7 +88,7 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { ) { do { let paymentMethodAssets = try PrimerSDK.PrimerHeadlessUniversalCheckout.AssetsManager.getPaymentMethodAssets() - + let rntPaymentMethodAssets = paymentMethodAssets.compactMap({ try? RNTPrimerPaymentMethodAsset(primerPaymentMethodAsset: $0).toJsonObject() }) guard !rntPaymentMethodAssets.isEmpty else { let err = RNTNativeError( @@ -97,9 +97,9 @@ class RNTPrimerHeadlessUniversalCheckoutAssetsManager: RCTEventEmitter { recoverySuggestion: nil) throw err } - + resolver(["paymentMethodAssets": rntPaymentMethodAssets]) - + } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift index ff66c54dc..fdbf9a0d5 100644 --- a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift @@ -10,7 +10,7 @@ import PrimerSDK @objc enum PrimerHeadlessUniversalCheckoutEvents: Int, CaseIterable { - + // Delegate case onAvailablePaymentMethodsLoad = 0 case onTokenizationStart @@ -23,11 +23,11 @@ enum PrimerHeadlessUniversalCheckoutEvents: Int, CaseIterable { case onBeforeClientSessionUpdate case onClientSessionUpdate case onBeforePaymentCreate - + // UI Delegate case onPreparationStart case onPaymentMethodShow - + var stringValue: String { switch self { case .onAvailablePaymentMethodsLoad: @@ -68,23 +68,23 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { private var primerDidTokenizePaymentMethodDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? private var primerDidResumeWithDecisionHandler: ((_ resumeToken: String?, _ errorMessage: String?) -> Void)? private var implementedRNCallbacks: ImplementedRNCallbacks? - + override class func requiresMainQueueSetup() -> Bool { return true } - + override init() { super.init() PrimerHeadlessUniversalCheckout.current.delegate = self PrimerHeadlessUniversalCheckout.current.uiDelegate = self } - + override func supportedEvents() -> [String]! { return PrimerHeadlessUniversalCheckoutEvents.allCases.compactMap({ $0.stringValue }) } - + // MARK: - API - + @objc public func startWithClientToken(_ clientToken: String, settingsStr: String?, @@ -97,7 +97,7 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { tmpSettings = try PrimerSettings(settingsStr: settingsStr) self.settings = tmpSettings } - + PrimerHeadlessUniversalCheckout.current.start( withClientToken: clientToken, settings: settings, @@ -110,21 +110,21 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(["availablePaymentMethods": paymentMethodObjects]) } } - + } catch { rejecter(error.rnError["errorId"]!, error.rnError["description"], error) } } - + @objc public func disposePrimerHeadlessUniversalCheckout() { - + } - + // MARK: - DECISION HANDLERS - + // MARK: Tokenization & Resume Handlers - + @objc public func handleTokenizationNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -133,7 +133,7 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(nil) } } - + @objc public func handleResumeWithNewClientToken(_ newClientToken: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -142,7 +142,7 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(nil) } } - + @objc public func handleCompleteFlow(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -151,9 +151,9 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(nil) } } - + // MARK: Payment Creation - + @objc public func handlePaymentCreationAbort(_ errorMessage: String?, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -162,7 +162,7 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(nil) } } - + @objc public func handlePaymentCreationContinue(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -171,13 +171,13 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { resolver(nil) } } - + // MARK: Helpers - + private func detectImplemetedCallbacks() { sendEvent(withName: PrimerEvents.detectImplementedRNCallbacks.stringValue, body: nil) } - + @objc public func setImplementedRNCallbacks(_ implementedRNCallbacksStr: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { DispatchQueue.main.async { @@ -197,20 +197,20 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { } } } - + private func handleRNBridgeError(_ error: Error, checkoutData: PrimerCheckoutData?, stopOnDebug: Bool) { DispatchQueue.main.async { if stopOnDebug { assertionFailure(error.localizedDescription) } - + var body: [String: Any] = ["error": error.rnError] if let checkoutData = checkoutData, let data = try? JSONEncoder().encode(checkoutData), let json = try? JSONSerialization.jsonObject(with: data){ body["checkoutData"] = json } - + self.sendEvent(withName: PrimerHeadlessUniversalCheckoutEvents.onError.stringValue, body: body) } } @@ -219,33 +219,33 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { // MARK: - EVENTS extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDelegate { - + // case onAvailablePaymentMethodsLoad = 0 func primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods(_ paymentMethods: [PrimerHeadlessUniversalCheckout.PaymentMethod]) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onAvailablePaymentMethodsLoad.stringValue - + DispatchQueue.main.async { self.sendEvent( withName: rnCallbackName, body: ["availablePaymentMethods": paymentMethods.compactMap({ $0.toJsonObject() })]) } } - + // case onTokenizationStart func primerHeadlessUniversalCheckoutDidStartTokenization(for paymentMethodType: String) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onTokenizationStart.stringValue - + DispatchQueue.main.async { self.sendEvent( withName: rnCallbackName, body: ["paymentMethodType": paymentMethodType]) } } - + // case onTokenizationSuccess func primerHeadlessUniversalCheckoutDidTokenizePaymentMethod(_ paymentMethodTokenData: PrimerPaymentMethodTokenData, decisionHandler: @escaping (PrimerHeadlessUniversalCheckoutResumeDecision) -> Void) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onTokenizationSuccess.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnTokenizationSuccessImplemented == true { self.primerDidTokenizePaymentMethodDecisionHandler = { (newClientToken, errorMessage) in @@ -257,13 +257,13 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } } - + do { let paymentMethodTokenJson = try paymentMethodTokenData.toJsonObject() self.sendEvent( withName: rnCallbackName, body: ["paymentMethodTokenData": paymentMethodTokenJson]) - + } catch { self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) } @@ -278,11 +278,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } } - + // case onCheckoutResume func primerHeadlessUniversalCheckoutDidResumeWith(_ resumeToken: String, decisionHandler: @escaping (PrimerHeadlessUniversalCheckoutResumeDecision) -> Void) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutResume.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnCheckoutResumeImplemented == true { self.primerDidResumeWithDecisionHandler = { (resumeToken, errorMessage) in @@ -294,11 +294,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } } - + self.sendEvent( withName: rnCallbackName, body: ["resumeToken": resumeToken]) - + } else { if self.settings?.paymentHandling == .manual { let err = RNTNativeError( @@ -310,11 +310,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } } - + // case onCheckoutPending func primerHeadlessUniversalCheckoutDidEnterResumePendingWithPaymentAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutPending.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnCheckoutPendingImplemented == true { do { @@ -329,17 +329,17 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel errorId: "native-ios", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", recoverySuggestion: "Callback [\(rnCallbackName)] must be implemented.") - + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) } } } - + // case onCheckoutAdditionalInfo func primerHeadlessUniversalCheckoutDidReceiveAdditionalInfo(_ additionalInfo: PrimerCheckoutAdditionalInfo?) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutAdditionalInfo.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnCheckoutAdditionalInfoImplemented == true { do { @@ -347,7 +347,7 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel self.sendEvent( withName: rnCallbackName, body: checkoutAdditionalInfoJson) - + } catch { let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(error, checkoutData: checkoutData, stopOnDebug: true) @@ -357,13 +357,13 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel errorId: "native-bridge", errorDescription: "Callback [\(rnCallbackName)] is not implemented.", recoverySuggestion: "Callback [\(rnCallbackName)] should be implemented.") - + let checkoutData = PrimerCheckoutData(payment: nil, additionalInfo: additionalInfo) self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) } } } - + // case onError func primerHeadlessUniversalCheckoutDidFail(withError err: Error, checkoutData: PrimerCheckoutData?) { if self.implementedRNCallbacks?.isOnErrorImplemented == true { @@ -375,11 +375,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel // Ignore! } } - + // case onCheckoutComplete func primerHeadlessUniversalCheckoutDidCompleteCheckoutWithData(_ data: PrimerCheckoutData) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onCheckoutComplete.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true { do { @@ -397,25 +397,24 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } } } - + // case onBeforeClientSessionUpdate func primerHeadlessUniversalCheckoutWillUpdateClientSession() { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onBeforeClientSessionUpdate.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnBeforeClientSessionUpdateImplemented == true { self.sendEvent( withName: rnCallbackName, body: nil) - } } } - + // case onClientSessionUpdate func primerHeadlessUniversalCheckoutDidUpdateClientSession(_ clientSession: PrimerClientSession) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onClientSessionUpdate.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnClientSessionUpdateImplemented == true { do { @@ -423,19 +422,18 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel self.sendEvent( withName: rnCallbackName, body: ["clientSession": json]) - + } catch { self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) } - } } } - + // case onBeforePaymentCreate func primerHeadlessUniversalCheckoutWillCreatePaymentWithData(_ data: PrimerCheckoutPaymentMethodData, decisionHandler: @escaping (PrimerPaymentCreationDecision) -> Void) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onBeforePaymentCreate.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnBeforePaymentCreateImplemented == true { self.primerWillCreatePaymentWithDataDecisionHandler = { errorMessage in @@ -455,11 +453,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel self.sendEvent( withName: rnCallbackName, body: checkoutPaymentmethodJson) - + } catch { self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: true) } - + } else { // 'primerHeadlessUniversalCheckoutWillCreatePaymentWithData' hasn't // been implemented on the RN side, continue the payment flow. @@ -471,11 +469,11 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutUIDelegate { - + // onPreparationStart func primerHeadlessUniversalCheckoutUIDidStartPreparation(for paymentMethodType: String) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onPreparationStart.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnPreparationStartImplemented == true { self.sendEvent( @@ -484,16 +482,15 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutUID } } } - + func primerHeadlessUniversalCheckoutUIDidShowPaymentMethod(for paymentMethodType: String) { let rnCallbackName = PrimerHeadlessUniversalCheckoutEvents.onPaymentMethodShow.stringValue - + DispatchQueue.main.async { if self.implementedRNCallbacks?.isOnPaymentMethodShowImplemented == true { self.sendEvent( withName: rnCallbackName, body: ["paymentMethodType": paymentMethodType]) - } } } diff --git a/ios/Sources/Helpers/UIImage+Extensions.swift b/ios/Sources/Helpers/UIImage+Extensions.swift index bc8148f95..b0942e20f 100644 --- a/ios/Sources/Helpers/UIImage+Extensions.swift +++ b/ios/Sources/Helpers/UIImage+Extensions.swift @@ -8,7 +8,7 @@ import UIKit extension UIImage { - + func store(withName name: String) throws -> URL { guard let imageURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("\(name).png") else { let err = RNTNativeError( diff --git a/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts index a38811bb5..7fbabebb1 100644 --- a/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/AssetsManager.ts @@ -53,4 +53,4 @@ class PrimerHeadlessUniversalCheckoutAssetsManager { } } -export default PrimerHeadlessUniversalCheckoutAssetsManager; \ No newline at end of file +export default PrimerHeadlessUniversalCheckoutAssetsManager; diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts index a28061798..39ae844d1 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts @@ -28,4 +28,4 @@ class PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager { } } -export default PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager; \ No newline at end of file +export default PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager; diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index e4e6cadb5..b1911080c 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -46,7 +46,6 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { } else { resolve(); } - } catch (err) { reject(err); } @@ -62,7 +61,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { } }); } - + if (this.options?.onValidation) { this.addListener("onValidation", (data) => { if (this.options?.onValidation) { @@ -149,7 +148,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { async addListener(eventType: EventType, listener: (...args: any[]) => any): Promise { return eventEmitter.addListener(eventType, listener); } - + removeListener(eventType: EventType, listener: (...args: any[]) => any): void { return eventEmitter.removeListener(eventType, listener); } diff --git a/src/RNPrimer.ts b/src/RNPrimer.ts index e63191c38..785cd68f1 100644 --- a/src/RNPrimer.ts +++ b/src/RNPrimer.ts @@ -1,5 +1,4 @@ import { NativeEventEmitter, NativeModules } from 'react-native'; -import type { PrimerSessionIntent } from './models/PrimerSessionIntent'; import type { PrimerSettings } from './models/PrimerSettings'; const { NativePrimer } = NativeModules; diff --git a/src/index.tsx b/src/index.tsx index f1a362ffb..e93a2aad7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,21 +10,21 @@ export { export { PrimerSessionIntent as SessionIntent } from './models/PrimerSessionIntent'; -export { +export { PrimerPaymentCreationHandler as PaymentCreationHandler, PrimerTokenizationHandler as TokenizationHandler, PrimerResumeHandler as ResumeHandler, PrimerErrorHandler as ErrorHandler, } from './models/PrimerHandlers'; export { PrimerPaymentMethodTokenData } from './models/PrimerPaymentMethodTokenData'; -export { +export { PrimerClientSession as ClientSession, PrimerOrder as Order, PrimerLineItem as LineItem, PrimerCustomer as Customer, PrimerAddress as Address, } from './models/PrimerClientSession'; -export { +export { PrimerRawData as RawData, PrimerRawCardData as RawCardData, PrimerRawBancontactCardRedirectData as RawBancontactCardRedirectData, @@ -48,25 +48,25 @@ export { export { PrimerError } from './models/PrimerError'; -export type { +export type { IPrimerAsset as Asset } from './models/PrimerAsset'; export { PrimerHeadlessUniversalCheckout as HeadlessUniversalCheckout } from './HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout'; -export type { +export type { IPrimerHeadlessUniversalCheckoutPaymentMethod as PaymentMethod } from './models/PrimerHeadlessUniversalCheckoutPaymentMethod'; import PrimerHeadlessUniversalCheckoutAssetsManager from './HeadlessUniversalCheckout/Managers/AssetsManager'; -export { +export { PrimerHeadlessUniversalCheckoutAssetsManager as AssetsManager } import PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager from './HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager'; -export { +export { PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager as NativeUIManager } import PrimerHeadlessUniversalCheckoutRawDataManager from './HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager'; -export { +export { PrimerHeadlessUniversalCheckoutRawDataManager as RawDataManager } diff --git a/src/models/PrimerInputElementType.ts b/src/models/PrimerInputElementType.ts index 56346ff9e..3b9b7738c 100644 --- a/src/models/PrimerInputElementType.ts +++ b/src/models/PrimerInputElementType.ts @@ -8,4 +8,4 @@ export enum PrimerInputElementType { PHONE_NUMBER = "PHONE_NUMBER", RETAILER = "RETAILER", UNKNOWN = "UNKNOWN" -} \ No newline at end of file +} From 1bf300c73d01d7424d28fee7e6d2482c1a965721 Mon Sep 17 00:00:00 2001 From: Semir Date: Wed, 2 Nov 2022 13:34:49 +0100 Subject: [PATCH 022/121] Fixed Raw Data Manager init data mapping, removed unnecessary code --- .../PrimerRNHeadlessUniversalCheckoutRawManager.kt | 13 ++++++++----- .../PaymentMethodManagers/RawDataManager.ts | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index 77ae9a26c..e4126c8a6 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -54,11 +54,15 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( is RetailOutletsList -> { promise.resolve( prepareData( - JSONObject( - Json.encodeToString( - primerInitializationData.toRNRetailOutletsList() + JSONObject().apply { + put( + "initializationData", JSONObject( + Json.encodeToString( + primerInitializationData.toRNRetailOutletsList() + ) + ) ) - ) + } ) ) } @@ -75,7 +79,6 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( @ReactMethod fun listRequiredInputElementTypesForPaymentMethodType( - paymentMethodTypeStr: String, promise: Promise ) { if (::rawManager.isInitialized.not()) { diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index b1911080c..c6c660b2d 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -78,7 +78,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { return new Promise(async (resolve, reject) => { if (this.options?.paymentMethodType) { try { - const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(this.options.paymentMethodType); + const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(); const inputElementTypes: PrimerInputElementType[] = data.inputElementTypes; resolve(inputElementTypes); } catch (err) { From 32e959222628124b5aded006d68edca59d1da017 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 2 Nov 2022 14:48:42 +0200 Subject: [PATCH 023/121] Allow line item editing --- example/src/screens/NewLineItemSreen.tsx | 45 +++++++++++++++++------- example/src/screens/SettingsScreen.tsx | 6 ++++ 2 files changed, 39 insertions(+), 12 deletions(-) diff --git a/example/src/screens/NewLineItemSreen.tsx b/example/src/screens/NewLineItemSreen.tsx index e82fb6e0d..792536a9a 100644 --- a/example/src/screens/NewLineItemSreen.tsx +++ b/example/src/screens/NewLineItemSreen.tsx @@ -9,11 +9,13 @@ import { styles } from '../styles'; export interface NewLineItemScreenProps { lineItem?: IClientSessionLineItem; onAddLineItem?: (lineItem: IClientSessionLineItem) => void; + onEditLineItem?: (lineItem: IClientSessionLineItem) => void; onRemoveLineItem?: (lineItem: IClientSessionLineItem) => void; } const NewLineItemScreen = (props: any) => { const newLineItemScreenProps: NewLineItemScreenProps | undefined = props.route.params; + const [isEditing, setIsEditing] = React.useState(newLineItemScreenProps?.lineItem === undefined ? false : true); const [name, setName] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.description); const [quantity, setQuantity] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.quantity); const [unitPrice, setUnitPrice] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.amount); @@ -63,26 +65,45 @@ const NewLineItemScreen = (props: any) => { { - if (name && quantity && unitPrice) { - const newLineItem: IClientSessionLineItem = { - itemId: `item-id-${makeRandomString(8)}`, - description: name, - quantity: quantity, - amount: unitPrice + if (isEditing && newLineItemScreenProps?.lineItem) { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onEditLineItem) { + newLineItemScreenProps.onEditLineItem(newLineItem); + } + + props.navigation.goBack(); } - - if (newLineItemScreenProps?.onAddLineItem) { - newLineItemScreenProps.onAddLineItem(newLineItem); + } else { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onAddLineItem) { + newLineItemScreenProps.onAddLineItem(newLineItem); + } + + props.navigation.goBack(); } - - props.navigation.goBack(); } }} > - Add Line Item + { + isEditing ? "Edit Line Item" : "Add Line Item" + } diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 958f633e8..86c9d8f71 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -234,6 +234,12 @@ const SettingsScreen = ({ navigation }) => { onPress={() => { const newLineItemsScreenProps: NewLineItemScreenProps = { lineItem: item, + onEditLineItem: (editedLineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(item, 0); + currentLineItems[index] = editedLineItem; + setLineItems(currentLineItems); + }, onRemoveLineItem: (lineItem) => { const currentLineItems = [...lineItems]; const index = currentLineItems.indexOf(lineItem, 0); From 550366c360d7decb35c5dcd32e11e9edc69b9b03 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 3 Nov 2022 10:30:16 +0100 Subject: [PATCH 024/121] Added new contries and currencies --- example/src/screens/SettingsScreen.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 86c9d8f71..1bc1bb39f 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -159,6 +159,7 @@ const SettingsScreen = ({ navigation }) => { + @@ -172,12 +173,14 @@ const SettingsScreen = ({ navigation }) => { + + From 75c6f6e5d0be07bef524567678b8130eaaa2431f Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 3 Nov 2022 11:37:19 +0200 Subject: [PATCH 025/121] Fix logs --- example/src/screens/HeadlessCheckoutScreen.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 6a544e1b5..21719a616 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -241,7 +241,8 @@ export const HeadlessCheckoutScreen = (props: any) => { merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, merchantCheckoutData: merchantCheckoutData, merchantPayment: merchantPayment, - merchantPrimerError: merchantPrimerError + merchantPrimerError: merchantPrimerError, + logs: log }); setClientSession(null); From 268dd522fb689b061abf6812834fc1d887fd5c0a Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 3 Nov 2022 11:38:45 +0200 Subject: [PATCH 026/121] Modify function --- .../Managers/Payment Method Managers/RNTRawDataManager.m | 2 +- .../Managers/Payment Method Managers/RNTRawDataManager.swift | 5 ++--- .../Managers/PaymentMethodManagers/RawDataManager.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m index 349928bdf..70a916568 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m @@ -12,7 +12,7 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutRawDataManager, R RCT_EXTERN_METHOD(configure:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) -RCT_EXTERN_METHOD(listRequiredInputElementTypesForPaymentMethodType:(NSString *)paymentMethodTypeStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(listRequiredInputElementTypes:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) RCT_EXTERN_METHOD(setRawData:(NSString *)rawDataStr resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index 1dfc9cb61..89370bff5 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -70,9 +70,8 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { } @objc - public func listRequiredInputElementTypesForPaymentMethodType( - _ paymentMethodTypeStr: String, - resolver: RCTPromiseResolveBlock, + public func listRequiredInputElementTypes( + _ resolver: RCTPromiseResolveBlock, rejecter: RCTPromiseRejectBlock ) { guard let rawDataManager = rawDataManager else { diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index c6c660b2d..f0a971cf0 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -78,7 +78,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { return new Promise(async (resolve, reject) => { if (this.options?.paymentMethodType) { try { - const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypesForPaymentMethodType(); + const data = await RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypes(); const inputElementTypes: PrimerInputElementType[] = data.inputElementTypes; resolve(inputElementTypes); } catch (err) { From dda13d620f3c78931803385d84c906cdcc3fb9eb Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 3 Nov 2022 12:28:21 +0200 Subject: [PATCH 027/121] Change to Klarna vaulting --- example/src/screens/HeadlessCheckoutScreen.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 21719a616..eddaf401d 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -298,7 +298,12 @@ export const HeadlessCheckoutScreen = (props: any) => { await createClientSessionIfNeeded(); const nativeUIManager = new NativeUIManager(); await nativeUIManager.configure(paymentMethod.paymentMethodType); - await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + + if (paymentMethod.paymentMethodType === "KLARNA") { + await nativeUIManager.showPaymentMethod(SessionIntent.VAULT); + } else { + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + } } else if (implementationType === "RAW_DATA") { await createClientSessionIfNeeded(); From 50641757976a327e0b932978af4319e0a09704b6 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 3 Nov 2022 12:28:44 +0200 Subject: [PATCH 028/121] Add `PrimerKlarnaSDK` post install script --- example/ios/Podfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/ios/Podfile b/example/ios/Podfile index 83d00e0e3..409d65550 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -35,6 +35,12 @@ target 'ReactNativeExample' do config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' + + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' end end end From 209893ada34a810afb2504c71b86da2a2c5ad83d Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 3 Nov 2022 12:29:07 +0200 Subject: [PATCH 029/121] Bump --- example/src/screens/RawCardDataScreen.tsx | 3 ++- example/src/screens/RawRetailOutletScreen.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index a11fc7cba..a750a8257 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -57,7 +57,8 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { setValidationLog(log); setIsCardFormValid(isVallid); }) - }) + }); + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); setRequiredInputElementTypes(requiredInputElementTypes); } diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index e9d17ea1a..f14ee9cb2 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -53,6 +53,7 @@ const RawRetailOutletScreen = (props: RawDataScreenProps) => { }); if (response?.initializationData) { + //@ts-ignore const retailers: any[] = response.initializationData.result; setRetailers(retailers); } From 19e2cc3e339017e34aacc3f56b278ea5a1e252d0 Mon Sep 17 00:00:00 2001 From: Dario Carlomagno Date: Thu, 3 Nov 2022 15:18:08 +0100 Subject: [PATCH 030/121] Updated RN example app --- Gemfile.lock | 218 + example/ios/Podfile | 2 +- example/ios/Podfile.lock | 4 +- .../project.pbxproj | 72 +- example/ios/main.jsbundle | 404 + index.js | 1 + package.json | 13 +- pico.save | 1 + yarn.lock | 17510 ++++++++-------- 9 files changed, 9384 insertions(+), 8841 deletions(-) create mode 100644 Gemfile.lock create mode 100644 example/ios/main.jsbundle create mode 100644 index.js create mode 100644 pico.save diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..328997cb9 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,218 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.5) + rexml + addressable (2.8.1) + public_suffix (>= 2.0.2, < 6.0) + artifactory (3.0.15) + atomos (0.1.3) + aws-eventstream (1.2.0) + aws-partitions (1.655.0) + aws-sdk-core (3.166.0) + aws-eventstream (~> 1, >= 1.0.2) + aws-partitions (~> 1, >= 1.651.0) + aws-sigv4 (~> 1.5) + jmespath (~> 1, >= 1.6.1) + aws-sdk-kms (1.59.0) + aws-sdk-core (~> 3, >= 3.165.0) + aws-sigv4 (~> 1.1) + aws-sdk-s3 (1.117.1) + aws-sdk-core (~> 3, >= 3.165.0) + aws-sdk-kms (~> 1) + aws-sigv4 (~> 1.4) + aws-sigv4 (1.5.2) + aws-eventstream (~> 1, >= 1.0.2) + babosa (1.0.4) + claide (1.1.0) + colored (1.2) + colored2 (3.1.2) + commander (4.6.0) + highline (~> 2.0.0) + declarative (0.0.20) + digest-crc (0.6.4) + rake (>= 12.0.0, < 14.0.0) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) + dotenv (2.8.1) + emoji_regex (3.2.3) + excon (0.93.1) + faraday (1.10.2) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0) + faraday-multipart (~> 1.0) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.0) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + faraday-retry (~> 1.0) + ruby2_keywords (>= 0.0.4) + faraday-cookie_jar (0.0.7) + faraday (>= 0.8.0) + http-cookie (~> 1.0.0) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-httpclient (1.0.1) + faraday-multipart (1.0.4) + multipart-post (~> 2) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + faraday-retry (1.0.3) + faraday_middleware (1.2.0) + faraday (~> 1.0) + fastimage (2.2.6) + fastlane (2.210.1) + CFPropertyList (>= 2.3, < 4.0.0) + addressable (>= 2.8, < 3.0.0) + artifactory (~> 3.0) + aws-sdk-s3 (~> 1.0) + babosa (>= 1.0.3, < 2.0.0) + bundler (>= 1.12.0, < 3.0.0) + colored + commander (~> 4.6) + dotenv (>= 2.1.1, < 3.0.0) + emoji_regex (>= 0.1, < 4.0) + excon (>= 0.71.0, < 1.0.0) + faraday (~> 1.0) + faraday-cookie_jar (~> 0.0.6) + faraday_middleware (~> 1.0) + fastimage (>= 2.1.0, < 3.0.0) + gh_inspector (>= 1.1.2, < 2.0.0) + google-apis-androidpublisher_v3 (~> 0.3) + google-apis-playcustomapp_v1 (~> 0.1) + google-cloud-storage (~> 1.31) + highline (~> 2.0) + json (< 3.0.0) + jwt (>= 2.1.0, < 3) + mini_magick (>= 4.9.4, < 5.0.0) + multipart-post (~> 2.0.0) + naturally (~> 2.2) + optparse (~> 0.1.1) + plist (>= 3.1.0, < 4.0.0) + rubyzip (>= 2.0.0, < 3.0.0) + security (= 0.1.3) + simctl (~> 1.6.3) + terminal-notifier (>= 2.0.0, < 3.0.0) + terminal-table (>= 1.4.5, < 2.0.0) + tty-screen (>= 0.6.3, < 1.0.0) + tty-spinner (>= 0.8.0, < 1.0.0) + word_wrap (~> 1.0.0) + xcodeproj (>= 1.13.0, < 2.0.0) + xcpretty (~> 0.3.0) + xcpretty-travis-formatter (>= 0.0.3) + gh_inspector (1.1.3) + google-apis-androidpublisher_v3 (0.30.0) + google-apis-core (>= 0.9.1, < 2.a) + google-apis-core (0.9.1) + addressable (~> 2.5, >= 2.5.1) + googleauth (>= 0.16.2, < 2.a) + httpclient (>= 2.8.1, < 3.a) + mini_mime (~> 1.0) + representable (~> 3.0) + retriable (>= 2.0, < 4.a) + rexml + webrick + google-apis-iamcredentials_v1 (0.16.0) + google-apis-core (>= 0.9.1, < 2.a) + google-apis-playcustomapp_v1 (0.12.0) + google-apis-core (>= 0.9.1, < 2.a) + google-apis-storage_v1 (0.19.0) + google-apis-core (>= 0.9.0, < 2.a) + google-cloud-core (1.6.0) + google-cloud-env (~> 1.0) + google-cloud-errors (~> 1.0) + google-cloud-env (1.6.0) + faraday (>= 0.17.3, < 3.0) + google-cloud-errors (1.3.0) + google-cloud-storage (1.44.0) + addressable (~> 2.8) + digest-crc (~> 0.4) + google-apis-iamcredentials_v1 (~> 0.1) + google-apis-storage_v1 (~> 0.19.0) + google-cloud-core (~> 1.6) + googleauth (>= 0.16.2, < 2.a) + mini_mime (~> 1.0) + googleauth (1.3.0) + faraday (>= 0.17.3, < 3.a) + jwt (>= 1.4, < 3.0) + memoist (~> 0.16) + multi_json (~> 1.11) + os (>= 0.9, < 2.0) + signet (>= 0.16, < 2.a) + highline (2.0.3) + http-cookie (1.0.5) + domain_name (~> 0.5) + httpclient (2.8.3) + jmespath (1.6.1) + json (2.6.2) + jwt (2.5.0) + memoist (0.16.2) + mini_magick (4.11.0) + mini_mime (1.1.2) + multi_json (1.15.0) + multipart-post (2.0.0) + nanaimo (0.3.0) + naturally (2.2.1) + optparse (0.1.1) + os (1.1.4) + plist (3.6.0) + public_suffix (5.0.0) + rake (13.0.6) + representable (3.2.0) + declarative (< 0.1.0) + trailblazer-option (>= 0.1.1, < 0.2.0) + uber (< 0.2.0) + retriable (3.1.2) + rexml (3.2.5) + rouge (2.0.7) + ruby2_keywords (0.0.5) + rubyzip (2.3.2) + security (0.1.3) + signet (0.17.0) + addressable (~> 2.8) + faraday (>= 0.17.5, < 3.a) + jwt (>= 1.5, < 3.0) + multi_json (~> 1.10) + simctl (1.6.8) + CFPropertyList + naturally + terminal-notifier (2.0.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + trailblazer-option (0.1.2) + tty-cursor (0.7.1) + tty-screen (0.8.1) + tty-spinner (0.9.3) + tty-cursor (~> 0.7) + uber (0.1.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.8.2) + unicode-display_width (1.8.0) + webrick (1.7.0) + word_wrap (1.0.0) + xcodeproj (1.22.0) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.3.0) + rexml (~> 3.2.4) + xcpretty (0.3.0) + rouge (~> 2.0.7) + xcpretty-travis-formatter (1.0.1) + xcpretty (~> 0.2, >= 0.0.7) + +PLATFORMS + arm64-darwin-21 + +DEPENDENCIES + fastlane + +BUNDLED WITH + 2.3.7 diff --git a/example/ios/Podfile b/example/ios/Podfile index 409d65550..cb3b5db21 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, '10' +platform :ios, '10.0' target 'ReactNativeExample' do config = use_native_modules! diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 944a2f950..75ac6a363 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -387,7 +387,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: PrimerSDK: - :commit: fbfdfa92b1879ba9477d1154c4e97055264ae64d + :commit: 654863a0498429daf39fb73f12e11a47e75ee8b3 :git: https://github.com/primer-io/primer-sdk-ios.git SPEC CHECKSUMS: @@ -429,6 +429,6 @@ SPEC CHECKSUMS: RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 -PODFILE CHECKSUM: d0452f7d4b02293653869dee9d4017e7bdbd593a +PODFILE CHECKSUM: 63c6210f8fd8d1948ee4d8d73c2691cc17ed3178 COCOAPODS: 1.11.3 diff --git a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj index caff2bce1..b43d189db 100644 --- a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -8,16 +8,17 @@ /* Begin PBXBuildFile section */ 00E356F31AD99517003FC87E /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; - 0503C1A74CF710225C2DC4D5 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 1D14D8CF25C8B20D00206A38 /* Bridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D14D8CE25C8B20D00206A38 /* Bridge.swift */; }; + 2C2230E6291402DE0054E47E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 2DCD954D1E0B4F2C00145EB5 /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + E22E9895ED84F337FC1107E3 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -53,12 +54,12 @@ 1D3922C8270DAADD001BDCCA /* ReactNativeExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeExample.entitlements; path = ReactNativeExample/ReactNativeExample.entitlements; sourceTree = ""; }; 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; - A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; - BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; + 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; - F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -73,7 +74,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 0503C1A74CF710225C2DC4D5 /* libPods-ReactNativeExample.a in Frameworks */, + E22E9895ED84F337FC1107E3 /* libPods-ReactNativeExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -131,7 +132,7 @@ children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - BB7E6578AA9BF15497D97C7A /* libPods-ReactNativeExample.a */, + 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */, ); name = Frameworks; sourceTree = ""; @@ -139,8 +140,8 @@ 6B9684456A2045ADE5A6E47E /* Pods */ = { isa = PBXGroup; children = ( - F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */, - A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */, + 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */, + 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -205,15 +206,15 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; buildPhases = ( - 7BD2ECE14645BA53940749F6 /* [CP] Check Pods Manifest.lock */, + D3627818B8D4E945B6477080 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */, - 627E849C4DC12F0EA3FB2061 /* [CP] Embed Pods Frameworks */, - 2F140E647BE6FD38C9E26B2C /* [CP] Copy Pods Resources */, + 25850717665B0DFEF9A9FBCE /* [CP] Embed Pods Frameworks */, + 19D3A7D73667B8E809E2F6CF /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -320,6 +321,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 2C2230E6291402DE0054E47E /* main.jsbundle in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, ); @@ -355,9 +357,9 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "cd $PROJECT_DIR/..\nexport NODE_BINARY=node\n./node_modules/react-native/scripts/react-native-xcode.sh\n"; + shellScript = "cd $PROJECT_DIR/..\nexport NODE_BINARY=node\nexport NODE_OPTIONS=\"--max_old_space_size=4096\"\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; - 2F140E647BE6FD38C9E26B2C /* [CP] Copy Pods Resources */ = { + 19D3A7D73667B8E809E2F6CF /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -377,7 +379,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 627E849C4DC12F0EA3FB2061 /* [CP] Embed Pods Frameworks */ = { + 25850717665B0DFEF9A9FBCE /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -397,41 +399,41 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 7BD2ECE14645BA53940749F6 /* [CP] Check Pods Manifest.lock */ = { + 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputFileListPaths = ( - ); inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( ); + name = "Bundle React Native Code And Images"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; - 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */ = { + D3627818B8D4E945B6477080 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( ); - name = "Bundle React Native Code And Images"; outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { isa = PBXShellScriptBuildPhase; @@ -572,7 +574,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F47CDD354B3E1A058CE3D967 /* Pods-ReactNativeExample.debug.xcconfig */; + baseConfigurationReference = 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -592,14 +594,14 @@ PRODUCT_NAME = ReactNativeExample; SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeExample-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 4.2; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = A482AFFA1C3F20E251A8103B /* Pods-ReactNativeExample.release.xcconfig */; + baseConfigurationReference = 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -617,7 +619,7 @@ PRODUCT_BUNDLE_IDENTIFIER = io.primer.ReactNativeExample; PRODUCT_NAME = ReactNativeExample; SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeExample-Bridging-Header.h"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 4.2; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; @@ -780,12 +782,13 @@ LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", + "\"$(SDKROOT)/usr/lib/swift\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -834,12 +837,13 @@ LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", + "\"$(SDKROOT)/usr/lib/swift\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_VERSION = 4.2; VALIDATE_PRODUCT = YES; }; name = Release; diff --git a/example/ios/main.jsbundle b/example/ios/main.jsbundle new file mode 100644 index 000000000..bdbc63b14 --- /dev/null +++ b/example/ios/main.jsbundle @@ -0,0 +1,404 @@ +var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; +!(function(r){"use strict";r.__r=i,r[__METRO_GLOBAL_PREFIX__+"__d"]=function(r,n,o){if(null!=e[n])return;var i={dependencyMap:o,factory:r,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};e[n]=i},r.__c=o,r.__registerSegment=function(r,t,n){s[r]=t,n&&n.forEach(function(t){e[t]||v.has(t)||v.set(t,r)})};var e=o(),t={},n={}.hasOwnProperty;function o(){return e=Object.create(null)}function i(r){var t=r,n=e[t];return n&&n.isInitialized?n.publicModule.exports:d(t,n)}function l(r){var n=r;if(e[n]&&e[n].importedDefault!==t)return e[n].importedDefault;var o=i(n),l=o&&o.__esModule?o.default:o;return e[n].importedDefault=l}function u(r){var o=r;if(e[o]&&e[o].importedAll!==t)return e[o].importedAll;var l,u=i(o);if(u&&u.__esModule)l=u;else{if(l={},u)for(var a in u)n.call(u,a)&&(l[a]=u[a]);l.default=u}return e[o].importedAll=l}i.importDefault=l,i.importAll=u,i.context=function(){throw new Error("The experimental Metro feature `require.context` is not enabled in your project.")};var a=!1;function d(e,t){if(!a&&r.ErrorUtils){var n;a=!0;try{n=h(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return a=!1,n}return h(e,t)}var c=16,f=65535;function p(r){return{segmentId:r>>>c,localId:r&f}}i.unpackModuleId=p,i.packModuleId=function(r){return(r.segmentId<0){var o,a=null!==(o=v.get(t))&&void 0!==o?o:0,d=s[a];null!=d&&(d(t),n=e[t],v.delete(t))}var c=r.nativeRequire;if(!n&&c){var f=p(t),h=f.segmentId;c(f.localId,h),n=e[t]}if(!n)throw Error('Requiring unknown module "'+t+'".');if(n.hasError)throw _(t,n.error);n.isInitialized=!0;var m=n,w=m.factory,M=m.dependencyMap;try{var g=n.publicModule;return g.id=t,w(r,i,l,u,g,g.exports,M),n.factory=void 0,n.dependencyMap=void 0,g.exports}catch(r){throw n.hasError=!0,n.error=r,n.isInitialized=!1,n.publicModule.exports=void 0,r}}function _(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+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 f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.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,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.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),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+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 c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(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').substr(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.substr(1,a.length-2),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 0,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 f(n){return null===n}function c(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 b(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={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t';return function(){for(var r=arguments.length,u=new Array(r),e=0;e1?l-1:0),o=1;on.length)&&(t=n.length);for(var l=0,o=new Array(t);lthis.eventPool.length&&this.eventPool.push(e)}function z(e){e.getPooled=R,e.eventPool=[],e.release=C}x(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},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}}),P.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},P.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return x(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=x({},r.Interface,e),t.extend=r.extend,z(t),t},z(P);var N=P.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function Q(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function B(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=Q(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=Q(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=Q(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Q(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Q(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Q(e)},D[n]=t),A.mostRecentTimeStamp=Q(e)}function H(e){var n=D[j(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=Q(e),A.mostRecentTimeStamp=Q(e))}function O(e){var n=D[j(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=Q(e),A.mostRecentTimeStamp=Q(e))}var W,V={instrument:function(e){W=e},recordTouchTrack:function(e,n){if(null!=W&&W(e,n),L(e))n.changedTouches.forEach(H);else if(I(e))n.changedTouches.forEach(B),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(O),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))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.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0i||(a=i),Me(a,e,l)}}}),y=function(e){return Pe.get(e._nativeTag)||null},S=Re,k=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},ie.injection.injectGlobalResponderHandler({onChange:function(e,n,t){null!==n?u.UIManager.setJSResponder(n.stateNode._nativeTag,t):u.UIManager.clearJSResponder()}});var Fe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,De=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),He=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),qe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Xe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ge=Symbol.iterator;function Ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ge&&e[Ge]||e["@@iterator"])?e:null}function Je(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Qe:return"Fragment";case Ae:return"Portal";case Be:return"Profiler";case je:return"StrictMode";case Ve:return"Suspense";case Ye:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Oe:return(e.displayName||"Context")+".Consumer";case He:return(e._context.displayName||"Context")+".Provider";case We:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case qe:return null!==(n=e.displayName||null)?n:Je(e.type)||"Memo";case $e:n=e._payload,e=e._init;try{return Je(e(n))}catch(e){}}return null}function Ze(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Je(n);case 8:return n===je?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function en(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function nn(e){if(en(e)!==e)throw Error("Unable to find node on an unmounted component.")}function tn(e){var n=e.alternate;if(!n){if(null===(n=en(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return nn(l),e;if(a===r)return nn(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function rn(e){return null!==(e=tn(e))?ln(e):null}function ln(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=ln(e);if(null!==n)return n;e=e.sibling}return null}var an={},un=null,on=0,sn={unsafelyIgnoreFunctions:!0};function cn(e,n){return"object"!=typeof n||null===n||u.deepDiffer(e,n,sn)}function dn(e,n,t){if(b(n))for(var r=n.length;r--&&0>>=0)?32:31-(Nn(e)/In|0)|0},Nn=Math.log,In=Math.LN2;var Ln=64,Un=4194304;function Mn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Mn(u):0!==(a&=i)&&(r=Mn(a))}else 0!==(i=t&~l)?r=Mn(i):0!==a&&(r=Mn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Bn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-zn(n)]=t}function Hn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){lt[++at]=e.current,e.current=n}var st={},ct=it(st),dt=it(!1),ft=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(){ut(dt),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(dt,t)}function vt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Ze(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return x({},t,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,ft=ct.current,ot(ct,e),ot(dt,dt.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,ft),r.__reactInternalMemoizedMergedChildContext=e,ut(dt),ut(ct),ot(ct,e)):ut(dt),ot(dt,t)}var St="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},kt=null,wt=!1,Tt=!1;function xt(){if(!Tt&&null!==kt){Tt=!0;var e=0,n=Wn;try{var t=kt;for(Wn=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Qe&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case De:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Qe){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===$e&&fr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=cr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Qe?((a=Yi(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Vi(u.type,u.key,u.props,null,r.mode,o)).ref=cr(r,a,u),o.return=r,r=o)}return i(r);case Ae:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Xi(u,r.mode,o)).return=r,r=a}return i(r);case $e:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Ke(u))return g(r,a,u,o);dr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=$i(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var hr=pr(!0),gr=pr(!1),mr={},vr=it(mr),br=it(mr),yr=it(mr);function Sr(e){if(e===mr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function kr(e,n){ot(yr,n),ot(br,e),ot(vr,mr),ut(vr),ot(vr,{isInAParentText:!1})}function wr(){ut(vr),ut(br),ut(yr)}function Tr(e){Sr(yr.current);var n=Sr(vr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(br,e),ot(vr,t))}function xr(e){br.current===e&&(ut(vr),ut(br))}var Er=it(0);function _r(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Yn()||Yn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(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 Pr=[];function Rr(){for(var e=0;et?t:4,e(!0);var r=zr.transition;zr.transition={};try{e(!1),n()}finally{Wn=t,zr.transition=r}}function hl(){return Hr().memoizedState}function gl(e,n,t){var r=si(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},vl(e)?bl(n,t):(yl(e,n,t),null!==(e=ci(e,r,t=oi()))&&Sl(e,n,r))}function ml(e,n,t){var r=si(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(vl(e))bl(n,l);else{yl(e,n,l);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,St(u,i))return}catch(e){}null!==(e=ci(e,r,t=oi()))&&Sl(e,n,r)}}function vl(e){var n=e.alternate;return e===Ir||null!==n&&n===Ir}function bl(e,n){Fr=Mr=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function yl(e,n,t){fi(e)?(null===(e=n.interleaved)?(t.next=t,null===qt?qt=[n]:qt.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t)}function Sl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,On(e,t)}}var kl={readContext:Yt,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useInsertionEffect:Ar,useLayoutEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useMutableSource:Ar,useSyncExternalStore:Ar,useId:Ar,unstable_isNewReconciler:!1},wl={readContext:Yt,useCallback:function(e,n){return Br().memoizedState=[e,void 0===n?null:n],e},useContext:Yt,useEffect:rl,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,nl(4,4,ul.bind(null,n,e),t)},useLayoutEffect:function(e,n){return nl(4,4,e,n)},useInsertionEffect:function(e,n){return nl(4,2,e,n)},useMemo:function(e,n){var t=Br();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Br();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=gl.bind(null,Ir,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Br().memoizedState=e},useState:Jr,useDebugValue:sl,useDeferredValue:function(e){return Br().memoizedState=e},useTransition:function(){var e=Jr(!1),n=e[0];return e=pl.bind(null,e[1]),Br().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Ir,r=Br(),l=n();if(null===Da)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Nr)||$r(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,rl(Gr.bind(null,t,a,e),[e]),t.flags|=2048,Zr(9,Xr.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Br(),n=Da.identifierPrefix;return n=":"+n+"r"+(Dr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Tl={readContext:Yt,useCallback:cl,useContext:Yt,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:dl,useReducer:Wr,useRef:el,useState:function(){return Wr(Or)},useDebugValue:sl,useDeferredValue:function(e){return fl(Hr(),Lr.memoizedState,e)},useTransition:function(){return[Wr(Or)[0],Hr().memoizedState]},useMutableSource:Yr,useSyncExternalStore:qr,useId:hl,unstable_isNewReconciler:!1},xl={readContext:Yt,useCallback:cl,useContext:Yt,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:dl,useReducer:Vr,useRef:el,useState:function(){return Vr(Or)},useDebugValue:sl,useDeferredValue:function(e){var n=Hr();return null===Lr?n.memoizedState=e:fl(n,Lr.memoizedState,e)},useTransition:function(){return[Vr(Or)[0],Hr().memoizedState]},useMutableSource:Yr,useSyncExternalStore:qr,useId:hl,unstable_isNewReconciler:!1};function El(e,n){return{value:e,source:n,stack:Ft(n)}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function _l(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var Pl="function"==typeof WeakMap?WeakMap:Map;function Rl(e,n,t){(t=Kt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Ja||(Ja=!0,Za=r),_l(e,n)},t}function Cl(e,n,t){(t=Kt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){_l(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){_l(e,n),"function"!=typeof r&&(null===ei?ei=new Set([this]):ei.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function zl(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Pl;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)||(l.add(t),e=Mi.bind(null,e,n,t),n.then(e,e))}var Nl=Fe.ReactCurrentOwner,Il=!1;function Ll(e,n,t,r){n.child=null===e?gr(n,null,t,r):hr(n,e.child,t,r)}function Ul(e,n,t,r,l){t=t.render;var a=n.ref;return Vt(n,l),r=jr(e,n,t,r,a,l),null===e||Il?(n.flags|=1,Ll(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ra(e,n,l))}function Ml(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Hi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Vi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Fl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ut)(i,r)&&e.ref===n.ref)return ra(e,n,l)}return n.flags|=1,(e=Wi(a,r)).ref=n.ref,e.return=n,n.child=e}function Fl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ut(a,r)&&e.ref===n.ref){if(Il=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,ra(e,n,l);0!=(131072&e.flags)&&(Il=!0)}}return Ql(e,n,t,r,l)}function Dl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Ba,ja),ja|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ot(Ba,ja),ja|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,ot(Ba,ja),ja|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(Ba,ja),ja|=r;return Ll(e,n,l,t),n.child}function Al(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Ql(e,n,t,r,l){var a=ht(t)?ft:ct.current;return a=pt(n,a),Vt(n,l),t=jr(e,n,t,r,a,l),null===e||Il?(n.flags|=1,Ll(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ra(e,n,l))}function jl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Vt(n,l),null===n.stateNode)ta(e,n),ur(n,t,r),sr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Yt(s):s=pt(n,s=ht(t)?ft:ct.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&or(n,i,r,s),$t=!1;var f=n.memoizedState;i.state=f,nr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||dt.current||$t?("function"==typeof c&&(lr(n,t,c,r),o=n.memoizedState),(u=$t||ir(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,Gt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Dt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Yt(o):o=pt(n,o=ht(t)?ft:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&or(n,i,r,o),$t=!1,f=n.memoizedState,i.state=f,nr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||dt.current||$t?("function"==typeof p&&(lr(n,t,p,r),h=n.memoizedState),(s=$t||ir(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return Bl(e,n,t,r,a,l)}function Bl(e,n,t,r,l,a){Al(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),ra(e,n,a);r=n.stateNode,Nl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=hr(n,e.child,null,a),n.child=hr(n,null,u,a)):Ll(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function Hl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),kr(e,n.containerInfo)}var Ol,Wl,Vl,Yl,ql={dehydrated:null,treeContext:null,retryLane:0};function $l(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xl(e,n,t){var r,l=n.pendingProps,a=Er.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ot(Er,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Yn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=qi(u,l,0,null),e=Yi(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=$l(t),n.memoizedState=ql,e):Gl(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return Jl(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Wi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Wi(r,i):(i=Yi(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?$l(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ql,l}return e=(i=e.child).sibling,l=Wi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function Gl(e,n){return(n=qi({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Kl(e,n,t,r){return null!==r&&(null===It?It=[r]:It.push(r)),hr(n,e.child,null,t),(e=Gl(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Jl(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,Kl(e,n,i,Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=qi({mode:"visible",children:r.children},t,0,null),(a=Yi(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&hr(n,e.child,null,i),n.child.memoizedState=$l(i),n.memoizedState=ql,a);if(0==(1&n.mode))return Kl(e,n,i,null);if(Yn())return Kl(e,n,i,(a=Yn().errorMessage)?Error(a):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."));if(t=0!=(i&e.childLanes),Il||t){if(null!==(r=Da)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(r=0!=(t&(r.suspendedLanes|i))?0:t)&&r!==a.retryLane&&(a.retryLane=r,ci(e,r,-1))}return xi(),Kl(e,n,i,Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."))}return Yn()?(n.flags|=128,n.child=e.child,Di.bind(null,e),Yn(),null):((e=Gl(n,r.children)).flags|=4096,e)}function Zl(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Wt(e.return,n,t)}function ea(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function na(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Ll(e,n,r.children,t),0!=(2&(r=Er.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zl(e,t,n);else if(19===e.tag)Zl(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(Er,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===_r(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ea(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===_r(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ea(n,!0,t,null,a);break;case"together":ea(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ta(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ra(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Wa|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Wi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Wi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function la(e,n,t){switch(n.tag){case 3:Hl(n);break;case 5:Tr(n);break;case 1:ht(n.type)&&bt(n);break;case 4:kr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;ot(At,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(ot(Er,1&Er.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Xl(e,n,t):(ot(Er,1&Er.current),null!==(e=ra(e,n,t))?e.sibling:null);ot(Er,1&Er.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return na(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),ot(Er,Er.current),r)break;return null;case 22:case 23:return n.lanes=0,Dl(e,n,t)}return ra(e,n,t)}function aa(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ia(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ua(e,n,t){var r=n.pendingProps;switch(Nt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ia(n),null;case 1:return ht(n.type)&>(),ia(n),null;case 3:return t=n.stateNode,wr(),ut(dt),ut(ct),Rr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==It&&(mi(It),It=null)),Wl(e,n),ia(n),null;case 5:xr(n),t=Sr(yr.current);var l=n.type;if(null!==e&&null!=n.stateNode)Vl(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ia(n),null}Sr(vr.current),e=Gn(),l=qn(l);var a=gn(null,an,r,l.validAttributes);u.UIManager.createView(e,l.uiViewClassName,t,a),t=new vn(e,l,n),_e.set(e,n),Pe.set(e,r),Ol(t,n,!1,!1),n.stateNode=t,Jn(t)&&(n.flags|=4),null!==n.ref&&(n.flags|=512)}return ia(n),null;case 6:if(e&&null!=n.stateNode)Yl(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Sr(yr.current),!Sr(vr.current).isInAParentText)throw Error("Text strings must be rendered within a component.");t=Gn(),u.UIManager.createView(t,"RCTRawText",e,{text:r}),_e.set(t,n),n.stateNode=t}return ia(n),null;case 13:if(ut(Er),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,ia(n),l=!1}else null!==It&&(mi(It),It=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Er.current)?0===Ha&&(Ha=3):xi())),null!==n.updateQueue&&(n.flags|=4),ia(n),null);case 4:return wr(),Wl(e,n),ia(n),null;case 10:return Ot(n.type._context),ia(n),null;case 17:return ht(n.type)&>(),ia(n),null;case 19:if(ut(Er),null===(l=n.memoizedState))return ia(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)aa(l,!1);else{if(0!==Ha||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=_r(e))){for(n.flags|=128,aa(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return ot(Er,1&Er.current|2),n.child}e=e.sibling}null!==l.tail&&wn()>Ga&&(n.flags|=128,r=!0,aa(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=_r(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),aa(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return ia(n),null}else 2*wn()-l.renderingStartTime>Ga&&1073741824!==t&&(n.flags|=128,r=!0,aa(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wn(),n.sibling=null,e=Er.current,ot(Er,r?1&e|2:1&e),n):(ia(n),null);case 22:case 23:return Si(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&ja)&&(ia(n),6&n.subtreeFlags&&(n.flags|=8192)):ia(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function oa(e,n){switch(Nt(n),n.tag){case 1:return ht(n.type)&>(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return wr(),ut(dt),ut(ct),Rr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return xr(n),null;case 13:if(ut(Er),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 ut(Er),null;case 4:return wr(),null;case 10:return Ot(n.type._context),null;case 22:case 23:return Si(),null;case 24:default:return null}}Ol=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Wl=function(){},Vl=function(e,n,t,r){e.memoizedProps!==r&&(Sr(vr.current),n.updateQueue=$n)&&(n.flags|=4)},Yl=function(e,n,t,r){t!==r&&(n.flags|=4)};var sa="function"==typeof WeakSet?WeakSet:Set,ca=null;function da(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ui(e,n,t)}else t.current=null}function fa(e,n,t){try{t()}catch(t){Ui(e,n,t)}}var pa=!1;function ha(e,n){for(ca=n;null!==ca;)if(n=(e=ca).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ca=n;else for(;null!==ca;){e=ca;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Dt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default: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.")}}catch(n){Ui(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ca=n;break}ca=e.return}return t=pa,pa=!1,t}function ga(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&fa(n,t,a)}l=l.next}while(l!==r)}}function ma(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function va(e){var n=e.alternate;null!==n&&(e.alternate=null,va(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 ba(e){return 5===e.tag||3===e.tag||4===e.tag}function ya(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ba(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 Sa(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){if("number"==typeof t)throw Error("Container does not support insertBefore operation")}else u.UIManager.setChildren(t,["number"==typeof e?e:e._nativeTag]);else if(4!==r&&null!==(e=e.child))for(Sa(e,n,t),e=e.sibling;null!==e;)Sa(e,n,t),e=e.sibling}function ka(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){var l=(r=t._children).indexOf(e);0<=l?(r.splice(l,1),n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[l],[n],[],[],[])):(n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[n],[]))}else n="number"==typeof e?e:e._nativeTag,0<=(l=(r=t._children).indexOf(e))?(r.splice(l,1),r.push(e),u.UIManager.manageChildren(t._nativeTag,[l],[r.length-1],[],[],[])):(r.push(e),u.UIManager.manageChildren(t._nativeTag,[],[],[n],[r.length-1],[]));else if(4!==r&&null!==(e=e.child))for(ka(e,n,t),e=e.sibling;null!==e;)ka(e,n,t),e=e.sibling}var wa=null,Ta=!1;function xa(e,n,t){for(t=t.child;null!==t;)Ea(e,n,t),t=t.sibling}function Ea(e,n,t){if(Rn&&"function"==typeof Rn.onCommitFiberUnmount)try{Rn.onCommitFiberUnmount(Pn,t)}catch(e){}switch(t.tag){case 5:da(t,n);case 6:var r=wa,l=Ta;wa=null,xa(e,n,t),Ta=l,null!==(wa=r)&&(Ta?(e=wa,Kn(t.stateNode),u.UIManager.manageChildren(e,[],[],[],[],[0])):(e=wa,Kn(n=t.stateNode),n=(t=e._children).indexOf(n),t.splice(n,1),u.UIManager.manageChildren(e._nativeTag,[],[],[],[],[n])));break;case 18:null!==wa&&Yn(t.stateNode);break;case 4:r=wa,l=Ta,wa=t.stateNode.containerInfo,Ta=!0,xa(e,n,t),wa=r,Ta=l;break;case 0:case 11:case 14:case 15:if(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)?fa(t,n,i):0!=(4&a)&&fa(t,n,i)),l=l.next}while(l!==r)}xa(e,n,t);break;case 1:if(da(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Ui(t,n,e)}xa(e,n,t);break;case 21:case 22:xa(e,n,t);break;default:xa(e,n,t)}}function _a(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new sa),n.forEach(function(n){var r=Ai.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Pa(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=wn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ia(r/1960))-r)){e.timeoutHandle=Zn(zi.bind(null,e,$a,Ka),r);break}zi(e,$a,Ka);break;case 5:zi(e,$a,Ka);break;default:throw Error("Unknown root exit status.")}}}return pi(e,wn()),e.callbackNode===t?hi.bind(null,e):null}function gi(e,n){var t=qa;return e.current.memoizedState.isDehydrated&&(ki(e,n).flags|=256),2!==(e=Ei(e,n))&&(n=$a,$a=t,null!==n&&mi(n)),e}function mi(e){null===$a?$a=e:$a.push.apply($a,e)}function vi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ti)var r=!1;else{if(e=ti,ti=null,ri=0,0!=(6&Fa))throw Error("Cannot flush passive effects while already rendering.");var l=Fa;for(Fa|=4,ca=e.current;null!==ca;){var a=ca,i=a.child;if(0!=(16&ca.flags)){var u=a.deletions;if(null!==u){for(var o=0;own()-Xa?ki(e,0):Ya|=t),pi(e,n)}function Fi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Un,0==(130023424&(Un<<=1))&&(Un=4194304)));var t=oi();null!==(e=di(e,n))&&(Bn(e,n,t),pi(e,t))}function Di(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Fi(e,t)}function Ai(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;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Fi(e,t)}function Qi(e,n){return bn(e,n)}function ji(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.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 Bi(e,n,t,r){return new ji(e,n,t,r)}function Hi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oi(e){if("function"==typeof e)return Hi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===We)return 11;if(e===qe)return 14}return 2}function Wi(e,n){var t=e.alternate;return null===t?((t=Bi(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=14680064&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}function Vi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Hi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Qe:return Yi(t.children,l,a,n);case je:i=8,l|=8;break;case Be:return(e=Bi(12,t,n,2|l)).elementType=Be,e.lanes=a,e;case Ve:return(e=Bi(13,t,n,l)).elementType=Ve,e.lanes=a,e;case Ye:return(e=Bi(19,t,n,l)).elementType=Ye,e.lanes=a,e;case Xe:return qi(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case He:i=10;break e;case Oe:i=9;break e;case We:i=11;break e;case qe:i=14;break e;case $e:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Bi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Yi(e,n,t,r){return(e=Bi(7,e,r,n)).lanes=t,e}function qi(e,n,t,r){return(e=Bi(22,e,r,n)).elementType=Xe,e.lanes=t,e.stateNode={},e}function $i(e,n,t){return(e=Bi(6,e,null,n)).lanes=t,e}function Xi(e,n,t){return(n=Bi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Gi(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=l}function Ki(e,n,t){var r=3|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce(function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n},[])}},42,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var p=n(o);if(p&&p.has(t))return p.get(t);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var s=f?Object.getOwnPropertyDescriptor(t,u):null;s&&(s.get||s.set)?Object.defineProperty(c,u,s):c[u]=t[u]}c.default=t,p&&p.set(t,c);return c})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,p=new WeakMap;return(n=function(t){return t?p:o})(t)}r(d[1]);var o=t.getEnforcing('ExceptionsManager'),p={reportFatalException:function(t,n,p){o.reportFatalException(t,n,p)},reportSoftException:function(t,n,p){o.reportSoftException(t,n,p)},updateExceptionMessage:function(t,n,p){o.updateExceptionMessage(t,n,p)},dismissRedbox:function(){},reportException:function(t){o.reportException?o.reportException(t):t.isFatal?p.reportFatalException(t.message,t.stack,t.id):p.reportSoftException(t.message,t.stack,t.id)}},c=p;e.default=c},43,[44,56]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(n){return l(n)},e.getEnforcing=function(n){var u=l(n);return(0,t.default)(null!=u,"TurboModuleRegistry.getEnforcing(...): '"+n+"' could not be found. Verify that a module by this name is registered in the native binary."),u};var t=n(r(d[1])),u=r(d[2]),o=g.__turboModuleProxy;function l(n){if(!0!==g.RN$Bridgeless){var t=u[n];if(null!=t)return t}return null!=o?o(n):null}},44,[2,7,45]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]);function u(t,u){if(!t)return null;var l=n(t,5),c=l[0],v=l[1],h=l[2],y=l[3],C=l[4];if(o(!c.startsWith('RCT')&&!c.startsWith('RK'),"Module name prefixes should've been stripped by the native side but wasn't for "+c),!v&&!h)return{name:c};var b={};return h&&h.forEach(function(n,t){var l=y&&s(y,t)||!1,c=C&&s(C,t)||!1;o(!l||!c,'Cannot have a method that is both async and a sync hook');var v=l?'promise':c?'sync':'async';b[n]=f(u,t,v)}),Object.assign(b,v),null==b.getConstants?b.getConstants=function(){return v||Object.freeze({})}:console.warn("Unable to define method 'getConstants()' on NativeModule '"+c+"'. NativeModule '"+c+"' already has a constant or method called 'getConstants'. Please remove it."),{name:c,module:b}}function l(n,t){o(g.nativeRequireModuleConfig,"Can't lazily create module without nativeRequireModuleConfig");var l=u(g.nativeRequireModuleConfig(n),t);return l&&l.module}function f(n,u,l){var f=null;return(f='promise'===l?function(){for(var o=arguments.length,l=new Array(o),f=0;f0?s[s.length-1]:null,h=s.length>1?s[s.length-2]:null,y='function'==typeof v,C='function'==typeof h;C&&o(y,'Cannot have a non-function arg after a function arg.');var b=y?v:null,M=C?h:null,p=y+C,_=s.slice(0,s.length-p);if('sync'===l)return t.callNativeSyncHook(n,u,_,M,b);t.enqueueNativeCall(n,u,_,M,b)}).type=l,f}function s(n,t){return-1!==n.indexOf(t)}function c(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=u;var v={};if(g.nativeModuleProxy)v=g.nativeModuleProxy;else if(!g.nativeExtensions){var h=g.__fbBatchedBridgeConfig;o(h,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var y=r(d[3]);(h.remoteModuleConfig||[]).forEach(function(n,t){var o=u(n,t);o&&(o.module?v[o.name]=o.module:y(v,o.name,{get:function(){return l(o.name,t)}}))})}m.exports=v},45,[46,50,7,55]); +__d(function(g,r,_i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c,f){return n(c)||t(c,f)||o(c,f)||u()}},46,[47,48,16,49]); +__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(Array.isArray(n))return n}},47,[]); +__d(function(g,r,_i2,a,m,e,d){m.exports=function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],i=!0,l=!1,f=void 0;try{for(var u,y=t[Symbol.iterator]();!(i=(u=y.next()).done)&&(o.push(u.value),!n||o.length!==n);i=!0);}catch(t){l=!0,f=t}finally{try{i||null==y.return||y.return()}finally{if(l)throw f}}return o}}},48,[]); +__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},49,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports=t},50,[51]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),s=r(d[2]),u=r(d[3]),n=(r(d[4]),r(d[5]).default),o=(r(d[6]),r(d[7])),h=r(d[8]),c=(function(){function c(){l(this,c),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 s(c,[{key:"callFunctionReturnFlushedQueue",value:function(t,l,s){var u=this;return this.__guard(function(){u.__callFunction(t,l,s)}),this.flushedQueue()}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(t,l){var s=this;return this.__guard(function(){s.__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 s,u=l;this._lazyCallableModules[t]=function(){return u&&(s=u(),u=null),s}}},{key:"getCallableModule",value:function(t){var l=this._lazyCallableModules[t];return l?l():null}},{key:"callNativeSyncHook",value:function(t,l,s,u,n){return this.processCallbacks(t,l,s,u,n),g.nativeCallSyncHook(t,l,s)}},{key:"processCallbacks",value:function(t,l,s,u,n){(u||n)&&(u&&s.push(this._callID<<1),n&&s.push(this._callID<<1|1),this._successCallbacks.set(this._callID,n),this._failureCallbacks.set(this._callID,u)),this._callID++}},{key:"enqueueNativeCall",value:function(t,l,s,n,o){this.processCallbacks(t,l,s,n,o),this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(s);var h=Date.now();if(g.nativeFlushQueueImmediate&&h-this._lastFlush>=5){var c=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(c)}u.counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){o.reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){u.beginEvent('JSTimers.callReactNativeMicrotasks()'),null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback(),u.endEvent()}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?u.beginEvent(t+"."+l+"("+n(s)+")"):u.beginEvent(t+"."+l+"(...)"),this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var o=this.getCallableModule(t);if(!o){var c=Object.keys(this._lazyCallableModules),_=c.length,v=c.join(', ');h(!1,"Failed to call into JavaScript module method "+t+"."+l+"(). Module has not been registered as callable. Registered callable JavaScript modules (n = "+_+"): "+v+".\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.")}o[l]||h(!1,"Failed to call into JavaScript module method "+t+"."+l+"(). Module exists, but the method is undefined."),o[l].apply(o,s),u.endEvent()}},{key:"__invokeCallback",value:function(l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=l>>>1,n=1&l?this._successCallbacks.get(u):this._failureCallbacks.get(u);n&&(this._successCallbacks.delete(u),this._failureCallbacks.delete(u),n.apply(void 0,t(s)))}}],[{key:"spy",value:function(t){c.prototype.__spy=!0===t?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+(null!=t.module?t.module+'.':'')+t.method+"("+JSON.stringify(t.args)+")")}:!1===t?null:t}}]),c})();m.exports=c},51,[12,18,19,27,52,53,8,54,7]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t}},52,[]); +__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){return n.length>o+"...(truncated)...".length?n.substring(0,o)+"...(truncated)...":n}if('object'!=typeof n||null===n)return n;var u=n;if(Array.isArray(n))h.length>=f?u="[ ... array with "+n.length+" values ... ]":n.length>c&&(u=n.slice(0,c).concat(["... extra "+(n.length-c)+" values truncated ..."]));else{(0,e.default)('object'==typeof n,'This was already found earlier');var l=Object.keys(n);if(h.length>=f)u="{ ... object with "+l.length+" keys ... }";else if(l.length>y){for(var s of(u={},l.slice(0,y)))u[s]=n[s];u['...(truncated keys)...']=l.length-y}}return h.unshift(u),u}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},53,[2,7]); +__d(function(g,r,i,a,m,e,d){m.exports=g.ErrorUtils},54,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}},55,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n={__constants:null,OS:'ios',get Version(){return this.constants.osVersion},get constants(){return null==this.__constants&&(this.__constants=t.default.getConstants()),this.__constants},get isPad(){return'pad'===this.constants.interfaceIdiom},get isTV(){return'tv'===this.constants.interfaceIdiom},get isTesting(){return!1},select:function(t){return'ios'in t?t.ios:'native'in t?t.native:t.default}};m.exports=n},56,[2,57]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('PlatformConstants');e.default=n},57,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var l,n,s=r(d[0]).polyfillGlobal;if(null!=(l=g)&&null!=(n=l.HermesInternal)&&null!=n.hasPromise&&n.hasPromise())g.Promise;else s('Promise',function(){return r(d[1])})},58,[59,60]); +__d(function(g,r,i,a,m,e,d){'use strict';var l=r(d[0]);function o(o,t,n){var c=Object.getOwnPropertyDescriptor(o,t),b=c||{},f=b.enumerable,u=b.writable,p=b.configurable;!c||void 0!==p&&p?l(o,t,{get:n,enumerable:!1!==f,writable:!1!==u}):console.error('Failed to set polyfill. '+t+' is not configurable.')}m.exports={polyfillObjectProperty:o,polyfillGlobal:function(l,t){o(g,l,t)}}},59,[55]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);r(d[1]),m.exports=t},60,[61,63]); +__d(function(g,r,_i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=l(!0),o=l(!1),f=l(null),i=l(void 0),u=l(0),c=l('');function l(t){var o=new n(n._0);return o._V=1,o._W=t,o}n.resolve=function(y){if(y instanceof n)return y;if(null===y)return f;if(void 0===y)return i;if(!0===y)return t;if(!1===y)return o;if(0===y)return u;if(''===y)return c;if('object'==typeof y||'function'==typeof y)try{var p=y.then;if('function'==typeof p)return new n(p.bind(y))}catch(t){return new n(function(n,o){o(t)})}return l(y)};var y=function(n){return'function'==typeof Array.from?(y=Array.from,Array.from(n)):(y=function(n){return Array.prototype.slice.call(n)},Array.prototype.slice.call(n))};n.all=function(t){var o=y(t);return new n(function(t,f){if(0===o.length)return t([]);var i=o.length;function u(c,l){if(l&&('object'==typeof l||'function'==typeof l)){if(l instanceof n&&l.then===n.prototype.then){for(;3===l._V;)l=l._W;return 1===l._V?u(c,l._W):(2===l._V&&f(l._W),void l.then(function(n){u(c,n)},f))}var y=l.then;if('function'==typeof y)return void new n(y.bind(l)).then(function(n){u(c,n)},f)}o[c]=l,0==--i&&t(o)}for(var c=0;c-1}m.exports={isNativeFunction:t,hasNativeConstructor:function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)}}},65,[]); +__d(function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function s(t,n,o,i){var c=n&&n.prototype instanceof b?n:b,u=Object.create(c.prototype),h=new A(i||[]);return u._invoke=P(t,o,h),u}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var y="suspendedStart",v="suspendedYield",w="executing",L="completed",x={};function b(){}function E(){}function _(){}var j={};j[u]=function(){return this};var O=Object.getPrototypeOf,k=O&&O(O(R([])));k&&k!==o&&i.call(k,u)&&(j=k);var G=_.prototype=b.prototype=Object.create(j);function N(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function F(t,n){function o(c,u,h,f){var l=p(t[c],t,u);if("throw"!==l.type){var s=l.arg,y=s.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then(function(t){o("next",t,h,f)},function(t){o("throw",t,h,f)}):n.resolve(y).then(function(t){s.value=t,h(s)},function(t){return o("throw",t,h,f)})}f(l.arg)}var c;this._invoke=function(t,i){function u(){return new n(function(n,c){o(t,i,n,c)})}return c=c?c.then(u,u):u()}}function P(t,n,o){var i=y;return function(c,u){if(i===w)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return Y()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=S(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===y)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=w;var l=p(t,n,o);if("normal"===l.type){if(i=o.done?L:v,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function S(t,o){var i=t.iterator[o.method];if(i===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,S(t,o),"throw"===o.method))return x;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var c=p(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,x;var u=c.arg;return u?u.done?(o[t.resultName]=u.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):u:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:R(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},66,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var n,t,u=r(d[0]).polyfillGlobal,l=r(d[1]).isNativeFunction,c=!0===(null==(n=g.HermesInternal)?void 0:null==n.hasPromise?void 0:n.hasPromise())&&!0===(null==(t=g.HermesInternal)?void 0:null==t.useEngineQueue?void 0:t.useEngineQueue()),o=l(Promise)||c;if(!0!==g.RN$Bridgeless){var s=function(n){u(n,function(){return r(d[2])[n]})};s('setTimeout'),s('clearTimeout'),s('setInterval'),s('clearInterval'),s('requestAnimationFrame'),s('cancelAnimationFrame'),s('requestIdleCallback'),s('cancelIdleCallback')}o?(u('setImmediate',function(){return r(d[3]).setImmediate}),u('clearImmediate',function(){return r(d[3]).clearImmediate})):!0!==g.RN$Bridgeless&&(u('setImmediate',function(){return r(d[2]).queueReactNativeMicrotask}),u('clearImmediate',function(){return r(d[2]).clearReactNativeMicrotask})),u('queueMicrotask',c?function(){var n;return null==(n=g.HermesInternal)?void 0:n.enqueueJob}:function(){return r(d[4]).default})},67,[59,65,68,70,71]); +__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[2]),n=(r(d[3]),r(d[4])),i=16.666666666666668,l=[],o=[],c=[],u=[],f=[],s={},v=1,h=[],T=!1;function k(){var e=c.indexOf(null);return-1===e&&(e=c.length),e}function w(e,t){var n=v++,i=k();return c[i]=n,l[i]=e,o[i]=t,n}function p(e,t,n){e>v&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=c.indexOf(e);if(-1!==u){var f=o[u],s=l[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,i-(g.performance.now()-t))},didTimeout:!!n}):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 N(){if(0===u.length)return!1;var e=u;u=[];for(var t=0;t0}function b(e){c[e]=null,l[e]=null,o[e]=null}function I(e){if(null!=e){var t=c.indexOf(e);if(-1!==t){var n=o[t];b(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&x(e)}}}var q,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){I(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){I(e)},clearInterval:function(e){I(e)},clearReactNativeMicrotask:function(e){I(e);var t=u.indexOf(e);-1!==t&&u.splice(t,1)},cancelAnimationFrame:function(e){I(e)},callTimers:function(e){n(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),h.length=0;for(var t=0;t0){if(i>1)for(var l=1;l0){var t=f;f=[];for(var n=0;n1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(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),t?c._interceptor&&c._interceptor.loadingFailed(e,t):c._interceptor&&c._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 n of Object.keys(e)){var a=e[n],o=n.toLowerCase(),h=s.get(o);h?(h.headerValue+=', '+a,s.set(o,h)):s.set(o,{lowerHeaderName:o,upperHeaderName:n.toUpperCase(),headerValue:a})}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 n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(f.addListener('didSendNetworkData',function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkResponse',function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkData',function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkIncrementalData',function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkDataProgress',function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didCompleteNetworkResponse',function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))}));var a='text';'arraybuffer'===this._responseType&&(a='base64'),'blob'===this._responseType&&(a='blob');var o;o='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),R(s._method,'XMLHttpRequest method needs to be defined (%s).',o),R(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),f.sendRequest(s._method,s._trackingName,s._url,s._headers,e,a,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&f.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){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,s.default)((0,u.default)(c.prototype),"addEventListener",this).call(this,e,t)}}],[{key:"setInterceptor",value:function(e){c._interceptor=e}}]),c})(v.apply(void 0,(0,t.default)(T)));q.UNSENT=E,q.OPENED=b,q.HEADERS_RECEIVED=N,q.LOADING=k,q.DONE=w,q._interceptor=null,m.exports=q},73,[2,12,74,19,18,30,32,35,76,80,83,87,89,7]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);function n(c,f,o){return"undefined"!=typeof Reflect&&Reflect.get?m.exports=n=Reflect.get:m.exports=n=function(n,c,f){var o=t(n,c);if(o){var u=Object.getOwnPropertyDescriptor(o,c);return u.get?u.get.call(f):u.value}},n(c,f,o||c)}m.exports=n},74,[75]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){for(;!Object.prototype.hasOwnProperty.call(n,o)&&null!==(n=t(n)););return n}},75,[35]); +__d(function(g,_r,i,a,m,e,d){var t=_r(d[0]),l=t(_r(d[1])),r=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),u=_r(d[5]),f=_r(d[6]);var c=(function(){function t(){(0,l.default)(this,t)}return(0,r.default)(t,null,[{key:"createFromParts",value:function(l,r){(0,n.default)(o.default,'NativeBlobModule is available.');var f='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)}),c=l.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof u?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),s=c.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(c,f),t.createFromOptions({blobId:f,offset:0,size:s,type:r?r.type:'',lastModified:r?r.lastModified:Date.now()})}},{key:"createFromOptions",value:function(t){return f.register(t.blobId),Object.assign(Object.create(u.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,n.default)(o.default,'NativeBlobModule is available.'),f.unregister(t),f.has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),t})();c.isAvailable=!!o.default,m.exports=c},76,[2,18,19,77,7,78,79]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if("default"!==f&&Object.prototype.hasOwnProperty.call(n,f)){var s=c?Object.getOwnPropertyDescriptor(n,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=n[f]}l.default=n,u&&u.set(n,l);return l})(r(d[0])).get('BlobModule'),o=null,u=null;null!=n&&(u={getConstants:function(){return null==o&&(o=n.getConstants()),o},addNetworkingHandler:function(){n.addNetworkingHandler()},addWebSocketHandler:function(t){n.addWebSocketHandler(t)},removeWebSocketHandler:function(t){n.removeWebSocketHandler(t)},sendOverSocket:function(t,o){n.sendOverSocket(t,o)},createFromParts:function(t,o){n.createFromParts(t,o)},release:function(t){n.release(t)}});var l=u;e.default=l},77,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=(function(){function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;t(this,s);var u=r(d[2]);this.data=u.createFromParts(n,o).data}return n(s,[{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 s=r(d[2]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[2]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),s})();m.exports=s},78,[18,19,76]); +__d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},79,[]); +__d(function(g,r,i,a,m,e,d){var t=(0,r(d[0])(r(d[1])).default)();m.exports=t},80,[2,81]); +__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 _},e.getCurrentTimestamp=void 0;var s,n=t(r(d[1])),o=t(r(d[2])),u=r(d[3]),l=(r(d[4]),{}),h=null!=(s=g.nativeQPLTimestamp)?s:g.performance.now.bind(g.performance);e.getCurrentTimestamp=h;var _=(function(){function t(){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1}return(0,o.default)(t,[{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 h()}},{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]:h(),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]:h(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n},l[t]=u.beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),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),null!=l[t]&&(u.endAsyncEvent(t,l[t]),delete l[t]))}}}]),t})()},81,[2,18,19,27,82]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}},82,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),o={addListener:function(t,s,u){return n.default.addListener(t,s,u)},sendRequest:function(t,n,o,c,f,l,p,q,R,b){var h=(0,u.default)(f);s.default.sendRequest({method:t,url:o,data:Object.assign({},h,{trackingName:n}),headers:c,responseType:l,incrementalUpdates:p,timeout:q,withCredentials:b},R)},abortRequest:function(t){s.default.abortRequest(t)},clearCookies:function(t){s.default.clearCookies(t)}};m.exports=o},83,[2,10,84,85]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Networking');e.default=n},84,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),f=r(d[2]);m.exports=function(s){return'string'==typeof s?{string:s}:s instanceof n?{blob:s.data}:s instanceof f?{formData:s.getParts()}:s instanceof ArrayBuffer||ArrayBuffer.isView(s)?{base64:t(s)}:s}},85,[86,78,88]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),f instanceof Uint8Array)return t.fromByteArray(f);if(!ArrayBuffer.isView(f))throw new Error('data must be ArrayBuffer or typed array');var n=f,y=n.buffer,o=n.byteOffset,u=n.byteLength;return t.fromByteArray(new Uint8Array(y,o,u))}},86,[87]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=i(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,c=i(t),A=c[0],C=c[1],y=new o(f(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=0,f=h-u;if?f:i+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function f(t,n,o){return 3*(n+o)/4-o}function A(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},87,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=(function(){function o(){n(this,o),this._parts=[]}return s(o,[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getAll",value:function(n){return this._parts.filter(function(s){return t(s,1)[0]===n}).map(function(n){return t(n,2)[1]})}},{key:"getParts",value:function(){return this._parts.map(function(n){var s=t(n,2),o=s[0],u=s[1],p={'content-disposition':'form-data; name="'+o+'"'};return'object'==typeof u&&!Array.isArray(u)&&u?('string'==typeof u.name&&(p['content-disposition']+='; filename="'+u.name+'"'),'string'==typeof u.type&&(p['content-type']=u.type),Object.assign({},u,{headers:p,fieldName:o})):{string:String(u),headers:p,fieldName:o}})}}]),o})();m.exports=o},88,[46,18,19]); +__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n-1};function s(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function l(t){var e=new FileReader,o=y(e);return e.readAsArrayBuffer(t),o}function p(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:''});return t.type='error',t};var A=[301,302,303,307,308];T.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError('Invalid status code');return new T(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(n,i){return new Promise(function(s,f){var c=new _(n,i);if(c.signal&&c.signal.aborted)return f(new t.DOMException('Aborted','AbortError'));var y=new XMLHttpRequest;function l(){y.abort()}y.onload=function(){var t,e,o={status:y.status,statusText:y.statusText,headers:(t=y.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}}),e)};o.url='responseURL'in y?y.responseURL:o.headers.get('X-Request-URL');var n='response'in y?y.response:y.responseText;setTimeout(function(){s(new T(n,o))},0)},y.onerror=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.ontimeout=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.onabort=function(){setTimeout(function(){f(new t.DOMException('Aborted','AbortError'))},0)},y.open(c.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(c.url),!0),'include'===c.credentials?y.withCredentials=!0:'omit'===c.credentials&&(y.withCredentials=!1),'responseType'in y&&(o.blob?y.responseType='blob':o.arrayBuffer&&c.headers.get('Content-Type')&&-1!==c.headers.get('Content-Type').indexOf('application/octet-stream')&&(y.responseType='arraybuffer')),!i||'object'!=typeof i.headers||i.headers instanceof u?c.headers.forEach(function(t,e){y.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){y.setRequestHeader(t,h(i.headers[t]))}),c.signal&&(c.signal.addEventListener('abort',l),y.onreadystatechange=function(){4===y.readyState&&c.signal.removeEventListener('abort',l)}),y.send(void 0===c._bodyInit?null:c._bodyInit)})}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=u,e.Request=_,e.Response=T),t.Headers=u,t.Request=_,t.Response=T,t.fetch=B,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})},91,[]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),s=e(r(d[3])),o=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),l=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),y=e(r(d[10])),b=e(r(d[11])),p=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),E=e(r(d[15])),k=e(r(d[16])),S=["headers"];function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var N=0,O=1,w=2,C=3,L=0,T=(function(e){(0,o.default)(R,e);var E,T,A=(E=R,T=I(),function(){var e,t=(0,c.default)(E);if(T){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function R(e,s,o){var u;(0,n.default)(this,R),(u=A.call(this)).CONNECTING=N,u.OPEN=O,u.CLOSING=w,u.CLOSED=C,u.readyState=N,u.url=e,'string'==typeof s&&(s=[s]);var c=o||{},l=c.headers,f=void 0===l?{}:l,y=(0,t.default)(c,S);return y&&'string'==typeof y.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),f.origin=y.origin,delete y.origin),Object.keys(y).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(y).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(s)||(s=null),u._eventEmitter=new h.default('ios'!==b.default.OS?null:p.default),u._socketId=L++,u._registerEvents(),p.default.connect(e,s,{headers:f},u._socketId),u}return(0,s.default)(R,[{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 l.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,y.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 n='number'==typeof e?e:1e3,s='string'==typeof t?t:'';p.default.close(n,s,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 n=t.data;switch(t.type){case'binary':n=_.default.toByteArray(t.data).buffer;break;case'blob':n=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.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 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',{message:t.message})),e._unregisterEvents(),e.close())})]}}]),R})(E.default.apply(void 0,['close','error','message','open']));T.CONNECTING=N,T.OPEN=O,T.CLOSING=w,T.CLOSED=C,m.exports=T},92,[2,93,18,19,30,32,35,78,76,95,86,56,96,97,87,89,7]); +__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(null==n)return{};var l,p,b=t(n,o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(p=0;p=0||Object.prototype.propertyIsEnumerable.call(n,l)&&(b[l]=n[l])}return b}},93,[94]); +__d(function(g,r,_i,a,m,e,d){m.exports=function(n,t){if(null==n)return{};var f,u,i={},o=Object.keys(n);for(u=0;u=0||(i[f]=n[f]);return i}},94,[]); +__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])),v=(function(){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.'))}return(0,l.default)(t,[{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;u1&&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,n).then(function(t){e._aborted||(e._result=t,e._setReadyState(y))},function(t){e._aborted||(e._error=t,e._setReadyState(y))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==c&&this._readyState!==y&&(this._reset(),this._setReadyState(y)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),R})(r(d[8]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));_.EMPTY=c,_.LOADING=h,_.DONE=y,m.exports=_},99,[2,18,19,30,32,35,100,78,89]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('FileReaderModule');e.default=n},100,[44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var n,o=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),h=(r(d[4]),null);if(u.default&&'string'==typeof u.default.getConstants().BLOB_URI_SCHEME){var f=u.default.getConstants();h=f.BLOB_URI_SCHEME+':','string'==typeof f.BLOB_URI_HOST&&(h+="//"+f.BLOB_URI_HOST+"/")}n=Symbol.iterator;var c=(function(){function t(n){var s=this;(0,o.default)(this,t),this._searchParams=[],'object'==typeof n&&Object.keys(n).forEach(function(t){return s.append(t,n[t])})}return(0,s.default)(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:n,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?'':'&')},'')}}]),t})();function l(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.URLSearchParams=c;var p=(function(){function t(n,s){(0,o.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(n))this._url=n,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError("Invalid base URL: "+u)}else u=s.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),n.startsWith('/')||(n="/"+n),u.endsWith(n)&&(n=''),this._url=""+u+n}}return(0,s.default)(t,[{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 c),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===h)throw new Error('Cannot create URL for blob!');return""+h+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),t})();e.URL=p},101,[2,18,19,77,78]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}Object.defineProperty(_e,'__esModule',{value:!0});var c=r(d[5]),f=(function(c){o(y,c);var f,p,s=(f=y,p=u(),function(){var t,e=l(f);if(p){var o=l(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return n(this,t)});function y(){throw t(this,y),s.call(this),new TypeError("AbortSignal cannot be constructed directly")}return e(y,[{key:"aborted",get:function(){var t=b.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),y})(c.EventTarget);c.defineEventAttribute(f.prototype,"abort");var b=new WeakMap;Object.defineProperties(f.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(f.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var p=(function(){function o(){var e;t(this,o),s.set(this,(e=Object.create(f.prototype),c.EventTarget.call(e),b.set(e,!1),e))}return e(o,[{key:"signal",get:function(){return y(this)}},{key:"abort",value:function(){var t;t=y(this),!1===b.get(t)&&(b.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),o})(),s=new WeakMap;function y(t){var e=s.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(p.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(p.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=p,_e.AbortSignal=f,_e.default=p,m.exports=p,m.exports.AbortController=m.exports.default=p,m.exports.AbortSignal=f},102,[18,19,30,32,35,89]); +__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},103,[104]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),s=t(r(d[3])),l=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,l,u){if('ios'===s.default.OS)t.prompt(n,o,l,'default',void 0,void 0,u);else if('android'===s.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:n||'',message:o||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=l?l.slice(0,3):[{text:"OK"}],y=p.pop(),b=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),b&&(v.buttonNegative=b.text||''),y&&(v.buttonPositive=y.text||"OK");c.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?b.onPress&&b.onPress():n===f.buttonPositive&&y.onPress&&y.onPress():t===f.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',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,v=arguments.length>6?arguments[6]:void 0;if('ios'===s.default.OS){var p,y,b=[],h=[];'function'==typeof o?b=[o]:Array.isArray(o)&&o.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?p=String(n):'destructive'===t.style&&(y=String(n)),t.text||n<(o||[]).length-1){var s={};s[n]=t.text||'',h.push(s)}}),l.default.alertWithArgs({title:t||'',message:n||void 0,buttons:h,type:u||void 0,defaultValue:c,cancelButtonKey:p,destructiveButtonKey:y,keyboardType:f,userInterfaceStyle:(null==v?void 0:v.userInterfaceStyle)||void 0},function(t,n){var o=b[t];o&&o(n)})}}}]),t})();m.exports=u},104,[2,18,19,56,105,107]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports={alertWithArgs:function(l,n){null!=t.default&&t.default.alertWithArgs(l,n)}}},105,[2,106]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('AlertManager');e.default=n},106,[44]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DialogManagerAndroid');e.default=n},107,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).polyfillObjectProperty,o=g.navigator;void 0===o&&(g.navigator=o={}),t(o,'product',function(){return'ReactNative'})},108,[59]); +__d(function(g,r,i,a,m,e,d){'use strict';var n;if(!0===g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),!0!==g.RN$Bridgeless&&n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6]).default}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},109,[50,27,68,110,112,114,10,115,80,116,118]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t},110,[2,111]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('JSCHeapCapture');e.default=n},111,[44]); +__d(function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o},112,[113]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=l?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=n[p]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).get('JSCSamplingProfiler');e.default=n},113,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0]),n={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},l=null,t={logIfNoNativeHook:function(o){for(var n=arguments.length,f=new Array(n>1?n-1:0),c=1;c1?c-1:0),s=1;s1?u-1:0),c=1;cthis.eventPool.length&&this.eventPool.push(e)}function C(e){e.getPooled=_,e.eventPool=[],e.release=N}E(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=P)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=P)},persist:function(){this.isPersistent=P},isPersistent:R,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=R,this._dispatchInstances=this._dispatchListeners=null}}),T.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},T.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return E(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=E({},r.Interface,e),t.extend=r.extend,C(t),t},C(T);var z=T.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function j(e){return e.timeStamp||e.timestamp}function H(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Q(e){var n=H(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=j(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=j(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=j(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:j(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:j(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:j(e)},D[n]=t),A.mostRecentTimeStamp=j(e)}function B(e){var n=D[H(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=j(e),A.mostRecentTimeStamp=j(e))}function W(e){var n=D[H(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=j(e),A.mostRecentTimeStamp=j(e))}var O,V={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(Q),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(W),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))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.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0>>=0)?32:31-(Rn(e)/Tn|0)|0},Rn=Math.log,Tn=Math.LN2;var _n=64,Nn=4194304;function Cn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Cn(u):0!==(a&=i)&&(r=Cn(a))}else 0!==(i=t&~l)?r=Cn(i):0!==a&&(r=Cn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Fn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Pn(n)]=t}function Dn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0gt||(e.current=ht[gt],ht[gt]=null,gt--)}function bt(e,n){ht[++gt]=e.current,e.current=n}var yt={},St=mt(yt),kt=mt(!1),wt=yt;function xt(e,n){var t=e.type.contextTypes;if(!t)return yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Et(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pt(){vt(kt),vt(St)}function Rt(e,n,t){if(St.current!==yt)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");bt(St,n),bt(kt,t)}function Tt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Oe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return E({},t,r)}function _t(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yt,wt=St.current,bt(St,e),bt(kt,kt.current),!0}function Nt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=Tt(e,n,wt),r.__reactInternalMemoizedMergedChildContext=e,vt(kt),vt(St),bt(St,e)):vt(kt),bt(kt,t)}var Ct="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},zt=null,It=!1,Lt=!1;function Ut(){if(!Lt&&null!==zt){Lt=!0;var e=0,n=jn;try{var t=zt;for(jn=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Ce&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case _e:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Ce){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===je&&kr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=yr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Ce?((a=Ji(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Gi(u.type,u.key,u.props,null,r.mode,o)).ref=yr(r,a,u),o.return=r,r=o)}return i(r);case Ne:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=eu(u,r.mode,o)).return=r,r=a}return i(r);case je:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Be(u))return g(r,a,u,o);Sr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Zi(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var xr=wr(!0),Er=wr(!1),Pr={},Rr=mt(Pr),Tr=mt(Pr),_r=mt(Pr);function Nr(e){if(e===Pr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Cr(e,n){bt(_r,n),bt(Tr,e),bt(Rr,Pr),vt(Rr),bt(Rr,{isInAParentText:!1})}function zr(){vt(Rr),vt(Tr),vt(_r)}function Ir(e){Nr(_r.current);var n=Nr(Rr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(bt(Tr,e),bt(Rr,t))}function Lr(e){Tr.current===e&&(vt(Rr),vt(Tr))}var Ur=mt(0);function Mr(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(0!=(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 Fr=[];function Dr(){for(var e=0;et?t:4,e(!0);var r=jr.transition;jr.transition={};try{e(!1),n()}finally{jn=t,jr.transition=r}}function xl(){return Jr().memoizedState}function El(e,n,t){var r=hi(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Rl(e)?Tl(n,t):(_l(e,n,t),null!==(e=gi(e,r,t=pi()))&&Nl(e,n,r))}function Pl(e,n,t){var r=hi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Rl(e))Tl(n,l);else{_l(e,n,l);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,Ct(u,i))return}catch(e){}null!==(e=gi(e,r,t=pi()))&&Nl(e,n,r)}}function Rl(e){var n=e.alternate;return e===Qr||null!==n&&n===Qr}function Tl(e,n){Vr=Or=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function _l(e,n,t){vi(e)?(null===(e=n.interleaved)?(t.next=t,null===tr?tr=[n]:tr.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t)}function Nl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,An(e,t)}}var Cl={readContext:nr,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},zl={readContext:nr,useCallback:function(e,n){return Gr().memoizedState=[e,void 0===n?null:n],e},useContext:nr,useEffect:fl,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,cl(4,4,ml.bind(null,n,e),t)},useLayoutEffect:function(e,n){return cl(4,4,e,n)},useInsertionEffect:function(e,n){return cl(4,2,e,n)},useMemo:function(e,n){var t=Gr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Gr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=El.bind(null,Qr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Gr().memoizedState=e},useState:ul,useDebugValue:bl,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=ul(!1),n=e[0];return e=wl.bind(null,e[1]),Gr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Qr,r=Gr(),l=n();if(null===Ba)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Hr)||rl(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,fl(al.bind(null,t,a,e),[e]),t.flags|=2048,ol(9,ll.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Gr(),n=Ba.identifierPrefix;return n=":"+n+"r"+(Yr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Il={readContext:nr,useCallback:yl,useContext:nr,useEffect:pl,useImperativeHandle:vl,useInsertionEffect:hl,useLayoutEffect:gl,useMemo:Sl,useReducer:Zr,useRef:sl,useState:function(){return Zr(Kr)},useDebugValue:bl,useDeferredValue:function(e){return kl(Jr(),Br.memoizedState,e)},useTransition:function(){return[Zr(Kr)[0],Jr().memoizedState]},useMutableSource:nl,useSyncExternalStore:tl,useId:xl,unstable_isNewReconciler:!1},Ll={readContext:nr,useCallback:yl,useContext:nr,useEffect:pl,useImperativeHandle:vl,useInsertionEffect:hl,useLayoutEffect:gl,useMemo:Sl,useReducer:el,useRef:sl,useState:function(){return el(Kr)},useDebugValue:bl,useDeferredValue:function(e){var n=Jr();return null===Br?n.memoizedState=e:kl(n,Br.memoizedState,e)},useTransition:function(){return[el(Kr)[0],Jr().memoizedState]},useMutableSource:nl,useSyncExternalStore:tl,useId:xl,unstable_isNewReconciler:!1};function Ul(e,n){try{var t="",r=n;do{t+=Vt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Ml(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var Fl="function"==typeof WeakMap?WeakMap:Map;function Dl(e,n,t){(t=ir(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ri||(ri=!0,li=r),Ml(e,n)},t}function Al(e,n,t){(t=ir(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Ml(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){Ml(e,n),"function"!=typeof r&&(null===ai?ai=new Set([this]):ai.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function jl(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Fl;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)||(l.add(t),e=Hi.bind(null,e,n,t),n.then(e,e))}var Hl=Te.ReactCurrentOwner,Ql=!1;function Bl(e,n,t,r){n.child=null===e?Er(n,null,t,r):xr(n,e.child,t,r)}function Wl(e,n,t,r,l){t=t.render;var a=n.ref;return er(n,l),r=Xr(e,n,t,r,a,l),null===e||Ql?(n.flags|=1,Bl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,fa(e,n,l))}function Ol(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||qi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Gi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Vl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ot)(i,r)&&e.ref===n.ref)return fa(e,n,l)}return n.flags|=1,(e=Xi(a,r)).ref=n.ref,e.return=n,n.child=e}function Vl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ot(a,r)&&e.ref===n.ref){if(Ql=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,fa(e,n,l);0!=(131072&e.flags)&&(Ql=!0)}}return $l(e,n,t,r,l)}function Yl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},bt(Ya,Va),Va|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,bt(Ya,Va),Va|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,bt(Ya,Va),Va|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,bt(Ya,Va),Va|=r;return Bl(e,n,l,t),n.child}function ql(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function $l(e,n,t,r,l){var a=Et(t)?wt:St.current;return a=xt(n,a),er(n,l),t=Xr(e,n,t,r,a,l),null===e||Ql?(n.flags|=1,Bl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,fa(e,n,l))}function Xl(e,n,t,r,l){if(Et(t)){var a=!0;_t(n)}else a=!1;if(er(n,l),null===n.stateNode)da(e,n),mr(n,t,r),br(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=nr(s):s=xt(n,s=Et(t)?wt:St.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&vr(n,i,r,s),rr=!1;var f=n.memoizedState;i.state=f,cr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||kt.current||rr?("function"==typeof c&&(pr(n,t,c,r),o=n.memoizedState),(u=rr||gr(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,ar(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Yt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=nr(o):o=xt(n,o=Et(t)?wt:St.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&vr(n,i,r,o),rr=!1,f=n.memoizedState,i.state=f,cr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||kt.current||rr?("function"==typeof p&&(pr(n,t,p,r),h=n.memoizedState),(s=rr||gr(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return Gl(e,n,t,r,a,l)}function Gl(e,n,t,r,l,a){ql(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&Nt(n,t,!1),fa(e,n,a);r=n.stateNode,Hl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=xr(n,e.child,null,a),n.child=xr(n,null,u,a)):Bl(e,n,u,a),n.memoizedState=r.state,l&&Nt(n,t,!0),n.child}function Jl(e){var n=e.stateNode;n.pendingContext?Rt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Rt(0,n.context,!1),Cr(e,n.containerInfo)}var Kl,Zl,ea,na,ta={dehydrated:null,treeContext:null,retryLane:0};function ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function la(e,n,t){var r,l=n.pendingProps,a=Ur.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),bt(Ur,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Qn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=Ki(u,l,0,null),e=Ji(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=ra(t),n.memoizedState=ta,e):aa(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return ua(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Xi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Xi(r,i):(i=Ji(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?ra(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ta,l}return e=(i=e.child).sibling,l=Xi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function aa(e,n){return(n=Ki({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function ia(e,n,t,r){return null!==r&&(null===Bt?Bt=[r]:Bt.push(r)),xr(n,e.child,null,t),(e=aa(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ua(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,ia(e,n,i,Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=Ki({mode:"visible",children:r.children},t,0,null),(a=Ji(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&xr(n,e.child,null,i),n.child.memoizedState=ra(i),n.memoizedState=ta,a);if(0==(1&n.mode))return ia(e,n,i,null);if(Qn())return ia(e,n,i,(a=Qn().errorMessage)?Error(a):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."));if(t=0!=(i&e.childLanes),Ql||t){if(null!==(r=Ba)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(r=0!=(t&(r.suspendedLanes|i))?0:t)&&r!==a.retryLane&&(a.retryLane=r,gi(e,r,-1))}return Ni(),ia(e,n,i,Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."))}return Qn()?(n.flags|=128,n.child=e.child,Bi.bind(null,e),Qn(),null):((e=aa(n,r.children)).flags|=4096,e)}function oa(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Zt(e.return,n,t)}function sa(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ca(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Bl(e,n,r.children,t),0!=(2&(r=Ur.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oa(e,t,n);else if(19===e.tag)oa(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bt(Ur,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Mr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),sa(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Mr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}sa(n,!0,t,null,a);break;case"together":sa(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function da(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function fa(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Xa|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Xi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Xi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function pa(e,n,t){switch(n.tag){case 3:Jl(n);break;case 5:Ir(n);break;case 1:Et(n.type)&&_t(n);break;case 4:Cr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;bt(qt,r._currentValue2),r._currentValue2=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(bt(Ur,1&Ur.current),n.flags|=128,null):0!=(t&n.child.childLanes)?la(e,n,t):(bt(Ur,1&Ur.current),null!==(e=fa(e,n,t))?e.sibling:null);bt(Ur,1&Ur.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return ca(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),bt(Ur,Ur.current),r)break;return null;case 22:case 23:return n.lanes=0,Yl(e,n,t)}return fa(e,n,t)}function ha(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}function ga(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=ct(a)),Gn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Gn(e,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),ga(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function ma(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function va(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ba(e,n,t){var r=n.pendingProps;switch(Qt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return va(n),null;case 1:return Et(n.type)&&Pt(),va(n),null;case 3:return t=n.stateNode,zr(),vt(kt),vt(St),Dr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==Bt&&(ki(Bt),Bt=null)),Zl(e,n),va(n),null;case 5:Lr(n),t=Nr(_r.current);var l=n.type;if(null!==e&&null!=n.stateNode)ea(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return va(n),null}Nr(Rr.current),e=at,at+=2,l=lt(l);var a=un(null,Je,r,l.validAttributes);t=Wn(e,l.uiViewClassName,t,a,n),e=new it(e,l,r,n),Kl(e={node:t,canonical:e},n,!1,!1),n.stateNode=e,null!==n.ref&&(n.flags|=512)}return va(n),null;case 6:if(e&&null!=n.stateNode)na(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=Nr(_r.current),t=Nr(Rr.current),n.stateNode=ut(r,e,t,n)}return va(n),null;case 13:if(vt(Ur),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,va(n),l=!1}else null!==Bt&&(ki(Bt),Bt=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Ur.current)?0===qa&&(qa=3):Ni())),null!==n.updateQueue&&(n.flags|=4),va(n),null);case 4:return zr(),Zl(e,n),va(n),null;case 10:return Kt(n.type._context),va(n),null;case 17:return Et(n.type)&&Pt(),va(n),null;case 19:if(vt(Ur),null===(l=n.memoizedState))return va(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)ma(l,!1);else{if(0!==qa||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Mr(e))){for(n.flags|=128,ma(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return bt(Ur,1&Ur.current|2),n.child}e=e.sibling}null!==l.tail&&vn()>ni&&(n.flags|=128,r=!0,ma(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Mr(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),ma(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return va(n),null}else 2*vn()-l.renderingStartTime>ni&&1073741824!==t&&(n.flags|=128,r=!0,ma(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=vn(),n.sibling=null,e=Ur.current,bt(Ur,r?1&e|2:1&e),n):(va(n),null);case 22:case 23:return Pi(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Va)&&va(n):va(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ya(e,n){switch(Qt(n),n.tag){case 1:return Et(n.type)&&Pt(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return zr(),vt(kt),vt(St),Dr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Lr(n),null;case 13:if(vt(Ur),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 vt(Ur),null;case 4:return zr(),null;case 10:return Kt(n.type._context),null;case 22:case 23:return Pi(),null;case 24:default:return null}}Kl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=ct(a)),Xn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Xn(e.node,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Kl(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Zl=function(e,n){var t=n.stateNode;if(!ha(e,n)){e=t.containerInfo;var r=$n(e);ga(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,Jn(e,r)}},ea=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=ha(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;Nr(Rr.current);var i=null;l!==r&&(l=un(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?qn(l,r):On(l):null!==r?Yn(l,r):Vn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:Kl(t,n,!1,!1))}},na=function(e,n,t,r){t!==r?(e=Nr(_r.current),t=Nr(Rr.current),n.stateNode=ut(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Sa="function"==typeof WeakSet?WeakSet:Set,ka=null;function wa(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ji(e,n,t)}else t.current=null}function xa(e,n,t){try{t()}catch(t){ji(e,n,t)}}var Ea=!1;function Pa(e,n){for(ka=n;null!==ka;)if(n=(e=ka).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ka=n;else for(;null!==ka;){e=ka;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Yt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default: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.")}}catch(n){ji(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ka=n;break}ka=e.return}return t=Ea,Ea=!1,t}function Ra(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&xa(n,t,a)}l=l.next}while(l!==r)}}function Ta(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function _a(e){var n=e.alternate;null!==n&&(e.alternate=null,_a(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 Na(e,n,t){for(t=t.child;null!==t;)Ca(e,n,t),t=t.sibling}function Ca(e,n,t){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,t)}catch(e){}switch(t.tag){case 5:wa(t,n);case 6:Na(e,n,t);break;case 18:break;case 4:$n(t.stateNode.containerInfo),Na(e,n,t);break;case 0:case 11:case 14:case 15:var r=t.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)?xa(t,n,i):0!=(4&a)&&xa(t,n,i)),l=l.next}while(l!==r)}Na(e,n,t);break;case 1:if(wa(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){ji(t,n,e)}Na(e,n,t);break;case 21:case 22:Na(e,n,t);break;default:Na(e,n,t)}}function za(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Sa),n.forEach(function(n){var r=Wi.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Ia(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Da(r/1960))-r)){e.timeoutHandle=ot(Mi.bind(null,e,Za,ti),r);break}Mi(e,Za,ti);break;case 5:Mi(e,Za,ti);break;default:throw Error("Unknown root exit status.")}}}return bi(e,vn()),e.callbackNode===t?yi.bind(null,e):null}function Si(e,n){var t=Ka;return e.current.memoizedState.isDehydrated&&(Ri(e,n).flags|=256),2!==(e=Ci(e,n))&&(n=Za,Za=t,null!==n&&ki(n)),e}function ki(e){null===Za?Za=e:Za.push.apply(Za,e)}function wi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ui)var r=!1;else{if(e=ui,ui=null,oi=0,0!=(6&Qa))throw Error("Cannot flush passive effects while already rendering.");var l=Qa;for(Qa|=4,ka=e.current;null!==ka;){var a=ka,i=a.child;if(0!=(16&ka.flags)){var u=a.deletions;if(null!==u){for(var o=0;ovn()-ei?Ri(e,0):Ja|=t),bi(e,n)}function Qi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Nn,0==(130023424&(Nn<<=1))&&(Nn=4194304)));var t=pi();null!==(e=mi(e,n))&&(Fn(e,n,t),bi(e,t))}function Bi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Qi(e,t)}function Wi(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;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Qi(e,t)}function Oi(e,n){return pn(e,n)}function Vi(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.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 Yi(e,n,t,r){return new Vi(e,n,t,r)}function qi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $i(e){if("function"==typeof e)return qi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Me)return 11;if(e===Ae)return 14}return 2}function Xi(e,n){var t=e.alternate;return null===t?((t=Yi(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=14680064&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}function Gi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)qi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ce:return Ji(t.children,l,a,n);case ze:i=8,l|=8;break;case Ie:return(e=Yi(12,t,n,2|l)).elementType=Ie,e.lanes=a,e;case Fe:return(e=Yi(13,t,n,l)).elementType=Fe,e.lanes=a,e;case De:return(e=Yi(19,t,n,l)).elementType=De,e.lanes=a,e;case He:return Ki(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Ue:i=9;break e;case Me:i=11;break e;case Ae:i=14;break e;case je:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Yi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ji(e,n,t,r){return(e=Yi(7,e,r,n)).lanes=t,e}function Ki(e,n,t,r){return(e=Yi(22,e,r,n)).elementType=He,e.lanes=t,e.stateNode={},e}function Zi(e,n,t){return(e=Yi(6,e,null,n)).lanes=t,e}function eu(e,n,t){return(n=Yi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function nu(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mn(0),this.expirationTimes=Mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.identifierPrefix=r,this.onRecoverableError=l}function tu(e,n,t){var r=3>>1,l=n[r];if(!(0>>1;ra(s,t))ca(f,s)?(n[r]=f,n[c]=t,r=c):(n[r]=s,n[o]=t,r=o);else{if(!(ca(f,t)))break n;n[r]=f,n[c]=t,r=c}}}return e}function a(n,e){var t=n.sortIndex-e.sortIndex;return 0!==t?t:n.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;_e.unstable_now=function(){return r.now()}}else{var l=Date,u=l.now();_e.unstable_now=function(){return l.now()-u}}var o=[],s=[],c=1,f=null,b=3,d=!1,v=!1,p=!1,y="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function g(a){for(var r=e(s);null!==r;){if(null===r.callback)t(s);else{if(!(r.startTime<=a))break;t(s),r.sortIndex=r.expirationTime,n(o,r)}r=e(s)}}function h(n){if(p=!1,g(n),!v)if(null!==e(o))v=!0,E(k);else{var t=e(s);null!==t&&N(h,t.startTime-n)}}function k(n,a){v=!1,p&&(p=!1,m(T),T=-1),d=!0;var r=b;try{for(g(a),f=e(o);null!==f&&(!(f.expirationTime>a)||n&&!L());){var l=f.callback;if("function"==typeof l){f.callback=null,b=f.priorityLevel;var u=l(f.expirationTime<=a);a=_e.unstable_now(),"function"==typeof u?f.callback=u:f===e(o)&&t(o),g(a)}else t(o);f=e(o)}if(null!==f)var c=!0;else{var y=e(s);null!==y&&N(h,y.startTime-a),c=!1}return c}finally{f=null,b=r,d=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,x=!1,I=null,T=-1,P=5,C=-1;function L(){return!(_e.unstable_now()-Cn||125l?(t.sortIndex=r,n(s,t),null===e(o)&&t===e(s)&&(p?(m(T),T=-1):p=!0,N(h,r-l))):(t.sortIndex=u,n(o,t),v||d||(v=!0,E(k))),t},_e.unstable_shouldYield=L,_e.unstable_wrapCallback=function(n){var e=b;return function(){var t=b;b=e;try{return n.apply(this,arguments)}finally{b=t}}}},132,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.get=b,e.getWithFallback_DEPRECATED=function(t,u){if(null==n){if(w(t))return b(t,u)}else if(null!=n(t))return b(t,u);var l=function(t){return null};return l.displayName="Fallback("+t+")",l},e.setRuntimeConfigProvider=function(t){(0,s.default)(null==n,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),n=t},e.unstable_hasStaticViewConfig=function(t){var u;return!(null!=(u=null==n?void 0:n(t))?u:{native:!0}).native};var n,u=y(r(d[1])),l=r(d[2]),o=t(r(d[3])),f=t(r(d[4])),c=t(r(d[5])),v=t(r(d[6])),s=t(r(d[7]));y(r(d[8]));function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(p=function(t){return t?u:n})(t)}function y(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=p(n);if(u&&u.has(t))return u.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=o?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}return l.default=t,u&&u.set(t,l),l}function b(t,o){return f.default.register(t,function(){var f,s=null!=(f=null==n?void 0:n(t))?f:{native:!0,strict:!1,verify:!1},p=s.native,y=s.strict,b=s.verify,w=p?(0,c.default)(t):(0,l.createViewConfig)(o());if(b){var O=p?w:(0,c.default)(t),P=p?(0,l.createViewConfig)(o()):w;if(y){var C=u.validate(t,O,P);'invalid'===C.type&&console.error(u.stringifyValidationResult(t,C))}else(0,v.default)(O,P)}return w}),t}function w(t){return(0,s.default)(null==n,'Unexpected invocation!'),null!=o.default.getViewManagerConfig(t)}},133,[2,134,136,149,123,155,167,7,129]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyValidationResult=function(t,u){var s=u.differences;return["StaticViewConfigValidator: Invalid static view config for '"+t+"'.",''].concat((0,n.default)(s.map(function(t){var n=t.type,u=t.path;switch(n){case'missing':return"- '"+u.join('.')+"' is missing.";case'unequal':return"- '"+u.join('.')+"' is the wrong value.";case'unexpected':return"- '"+u.join('.')+"' is present but not expected to be."}})),['']).join('\n')},e.validate=function(t,n,u){var l=[];if(s(l,[],{bubblingEventTypes:n.bubblingEventTypes,directEventTypes:n.directEventTypes,uiViewClassName:n.uiViewClassName,validAttributes:n.validAttributes},{bubblingEventTypes:u.bubblingEventTypes,directEventTypes:u.directEventTypes,uiViewClassName:u.uiViewClassName,validAttributes:u.validAttributes}),0===l.length)return{type:'valid'};return{type:'invalid',differences:l}};var n=t(r(d[1])),u=r(d[2]);function s(t,c,o,p){for(var v in o){var f=o[v];if(p.hasOwnProperty(v)){var y=p[v],b=l(f);if(null!=b){var h=l(y);if(null!=h){c.push(v),s(t,c,b,h),c.pop();continue}}f!==y&&t.push({path:[].concat((0,n.default)(c),[v]),type:'unequal',nativeValue:f,staticValue:y})}else t.push({path:[].concat((0,n.default)(c),[v]),type:'missing',nativeValue:f})}for(var V in p)o.hasOwnProperty(V)||(0,u.isIgnored)(p[V])||t.push({path:[].concat((0,n.default)(c),[V]),type:'unexpected',staticValue:p[V]})}function l(t){return'object'!=typeof t||Array.isArray(t)?null:t}},134,[2,12,135]); +__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&&!0!==g.RN$ViewConfigEventValidAttributesDisabled)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},135,[2,56]); +__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)}},136,[2,137]); +__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},137,[2,138]); +__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=r(d[1]),n=t(r(d[2])),s={topAccessibilityAction:{registrationName:'onAccessibilityAction'},topAccessibilityTap:{registrationName:'onAccessibilityTap'},topMagicTap:{registrationName:'onMagicTap'},topAccessibilityEscape:{registrationName:'onAccessibilityEscape'},topLayout:{registrationName:'onLayout'},onGestureHandlerEvent:(0,o.DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerEvent'}),onGestureHandlerStateChange:(0,o.DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerStateChange'})},p={accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityHint:!0,accessibilityLanguage:!0,accessibilityValue:!0,accessibilityViewIsModal:!0,accessibilityElementsHidden:!0,accessibilityIgnoresInvertColors:!0,testID:!0,backgroundColor:{process:r(d[3])},backfaceVisibility:!0,opacity:!0,shadowColor:{process:r(d[3])},shadowOffset:{diff:r(d[4])},shadowOpacity:!0,shadowRadius:!0,needsOffscreenAlphaCompositing:!0,overflow:!0,shouldRasterizeIOS:!0,transform:{diff:r(d[5])},accessibilityRole:!0,accessibilityState:!0,nativeID:!0,pointerEvents:!0,removeClippedSubviews:!0,borderRadius:!0,borderColor:{process:r(d[3])},borderWidth:!0,borderStyle:!0,hitSlop:{diff:r(d[6])},collapsable:!0,borderTopWidth:!0,borderTopColor:{process:r(d[3])},borderRightWidth:!0,borderRightColor:{process:r(d[3])},borderBottomWidth:!0,borderBottomColor:{process:r(d[3])},borderLeftWidth:!0,borderLeftColor:{process:r(d[3])},borderStartWidth:!0,borderStartColor:{process:r(d[3])},borderEndWidth:!0,borderEndColor:{process:r(d[3])},borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,borderTopEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderBottomEndRadius:!0,display:!0,zIndex:!0,top:!0,right:!0,start:!0,end:!0,bottom:!0,left:!0,width:!0,height:!0,minWidth:!0,maxWidth:!0,minHeight:!0,maxHeight:!0,marginTop:!0,marginRight:!0,marginBottom:!0,marginLeft:!0,marginStart:!0,marginEnd:!0,marginVertical:!0,marginHorizontal:!0,margin:!0,paddingTop:!0,paddingRight:!0,paddingBottom:!0,paddingLeft:!0,paddingStart:!0,paddingEnd:!0,paddingVertical:!0,paddingHorizontal:!0,padding:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,alignItems:!0,alignSelf:!0,alignContent:!0,position:!0,aspectRatio:!0,direction:!0,style:n.default},u=(0,o.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,onPointerUp:!0,onPointerDown:!0,onPointerCancel:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOver:!0,onPointerOut:!0}),c={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'}},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'}}},directEventTypes:s,validAttributes:Object.assign({},p,u)};e.default=c},138,[2,135,139,140,146,147,148]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),f={process:o.default},s={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:!0,borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:f,shadowOffset:{diff:l.default},shadowOpacity:!0,shadowRadius:!0,transform:{process:n.default},backfaceVisibility:!0,backgroundColor:f,borderBottomColor:f,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:f,borderEndColor:f,borderLeftColor:f,borderRadius:!0,borderRightColor:f,borderStartColor:f,borderStyle:!0,borderTopColor:f,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,color:f,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:f,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:f,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,writingDirection:!0,overlayColor:f,resizeMode:!0,tintColor:f};m.exports=s},139,[2,140,144,146]); +__d(function(g,r,i,a,m,e,d){'use strict';r(d[0]);var n=r(d[1]);m.exports=function(t){if(void 0===t||null===t)return t;var o=n(t);if(null!==o&&void 0!==o){if('object'==typeof o){var u=(0,r(d[2]).processColorObject)(o);if(null!=u)return u}return'number'!=typeof o?null:o=(o<<24|o>>>8)>>>0}}},140,[56,141,143]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n){var o=(0,r(d[2]).normalizeColorObject)(n);if(null!=o)return o}if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}},141,[2,142,143]); +__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}var t,u='[-+]?\\d*\\.?\\d+',s="[-+]?\\d*\\.?\\d+%";function c(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function o(r){return(parseFloat(r)%360+360)%360/360}function g(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function h(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function b(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':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'cyan':return 16777215;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':return 2846468607;case'darkgreen':return 6553855;case'darkgrey':return 2846468607;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':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'grey':return 2155905279;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':return 3553874943;case'lightgreen':return 2431553791;case'lightgrey':return 3553874943;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'magenta':return 4278255615;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 p,f=(void 0===t&&(t={rgb:new RegExp('rgb'+c(u,u,u)),rgba:new RegExp('rgba'+c(u,u,u,u)),hsl:new RegExp('hsl'+c(u,s,s)),hsla:new RegExp('hsla'+c(u,s,s,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=f.hex6.exec(r))return parseInt(p[1]+'ff',16)>>>0;var y=b(r);return null!=y?y:(p=f.rgb.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|255)>>>0:(p=f.rgba.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|g(p[4]))>>>0:(p=f.hex3.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+'ff',16)>>>0:(p=f.hex8.exec(r))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(r))?(255|n(o(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(r))?(n(o(p[1]),h(p[2]),h(p[3]))|g(p[4]))>>>0:null}},142,[]); +__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;o.49999*C?[0,2*Math.atan2(s,v)*p,90]:l<-.49999*C?[0,-2*Math.atan2(s,v)*p,-90]:[a.roundTo3Places(Math.atan2(2*s*v-2*c*m,1-2*f-2*M)*p),a.roundTo3Places(Math.atan2(2*c*v-2*s*m,1-2*h-2*M)*p),a.roundTo3Places(Math.asin(2*s*c+2*m*v)*p)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(t){n(16===t.length,'Matrix decomposition needs a list of 3d matrix values, received %s',t);var o=[],i=[],u=[],s=[],c=[];if(t[15]){for(var m=[],v=[],f=0;f<4;f++){m.push([]);for(var h=0;h<4;h++){var M=t[4*f+h]/t[15];m[f].push(M),v.push(3===h?0:M)}}if(v[15]=1,a.determinant(v)){if(0!==m[0][3]||0!==m[1][3]||0!==m[2][3]){var l=[m[0][3],m[1][3],m[2][3],m[3][3]],C=a.inverse(v),p=a.transpose(C);o=a.multiplyVectorByMatrix(l,p)}else o[0]=o[1]=o[2]=0,o[3]=1;for(var x=0;x<3;x++)c[x]=m[3][x];for(var T=[],y=0;y<3;y++)T[y]=[m[y][0],m[y][1],m[y][2]];u[0]=a.v3Length(T[0]),T[0]=a.v3Normalize(T[0],u[0]),s[0]=a.v3Dot(T[0],T[1]),T[1]=a.v3Combine(T[1],T[0],1,-s[0]),u[1]=a.v3Length(T[1]),T[1]=a.v3Normalize(T[1],u[1]),s[0]/=u[1],s[1]=a.v3Dot(T[0],T[2]),T[2]=a.v3Combine(T[2],T[0],1,-s[1]),s[2]=a.v3Dot(T[1],T[2]),T[2]=a.v3Combine(T[2],T[1],1,-s[2]),u[2]=a.v3Length(T[2]),T[2]=a.v3Normalize(T[2],u[2]),s[1]/=u[2],s[2]/=u[2];var S,P=a.v3Cross(T[1],T[2]);if(a.v3Dot(T[0],P)<0)for(var q=0;q<3;q++)u[q]*=-1,T[q][0]*=-1,T[q][1]*=-1,T[q][2]*=-1;return i[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),i[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),i[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),i[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&(i[0]=-i[0]),T[0][2]>T[2][0]&&(i[1]=-i[1]),T[1][0]>T[0][1]&&(i[2]=-i[2]),{rotationDegrees:S=i[0]<.001&&i[0]>=0&&i[1]<.001&&i[1]>=0?[0,0,a.roundTo3Places(180*Math.atan2(T[0][1],T[0][0])/Math.PI)]:a.quaternionToDegreesXYZ(i,m,T),perspective:o,quaternion:i,scale:u,skew:s,translation:c,rotate:S[2],rotateX:S[0],rotateY:S[1],scaleX:u[0],scaleY:u[1],translateX:c[0],translateY:c[1]}}}}};_m.exports=a},145,[46,7]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={width:void 0,height:void 0};m.exports=function(h,n){var o=h||t,u=n||t;return o!==u&&(o.width!==u.width||o.height!==u.height)}},146,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){return!(t===n||t&&n&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[5]===n[5]&&t[10]===n[10]&&t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[11]===n[11]&&t[15]===n[15])}},147,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={top:void 0,left:void 0,right:void 0,bottom:void 0};m.exports=function(o,f){return(o=o||t)!==(f=f||t)&&(o.top!==f.top||o.left!==f.left||o.right!==f.right||o.bottom!==f.bottom)}},148,[]); +__d(function(g,r,i,a,m,e,d){var s=!0===g.RN$Bridgeless?r(d[0]):r(d[1]);m.exports=s},149,[150,152]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=function(n){return"[ReactNative Architecture][JS] '"+n+"' is not available in the new React Native architecture."};m.exports={getViewManagerConfig:function(n){return console.error(o('getViewManagerConfig')+'Use hasViewManagerConfig instead. viewManagerName: '+n),null},hasViewManagerConfig:function(o){return(0,n.unstable_hasComponent)(o)},getConstants:function(){return console.error(o('getConstants')),{}},getConstantsForViewManager:function(n){return console.error(o('getConstantsForViewManager')),{}},getDefaultEventTypes:function(){return console.error(o('getDefaultEventTypes')),[]},lazilyLoadView:function(n){return console.error(o('lazilyLoadView')),{}},createView:function(n,t,u,s){return console.error(o('createView'))},updateView:function(n,t,u){return console.error(o('updateView'))},focus:function(n){return console.error(o('focus'))},blur:function(n){return console.error(o('blur'))},findSubviewIn:function(n,t,u){return console.error(o('findSubviewIn'))},dispatchViewManagerCommand:function(n,t,u){return console.error(o('dispatchViewManagerCommand'))},measure:function(n,t){return console.error(o('measure'))},measureInWindow:function(n,t){return console.error(o('measureInWindow'))},viewIsDescendantOf:function(n,t,u){return console.error(o('viewIsDescendantOf'))},measureLayout:function(n,t,u,s){return console.error(o('measureLayout'))},measureLayoutRelativeToParent:function(n,t,u){return console.error(o('measureLayoutRelativeToParent'))},setJSResponder:function(n,t){return console.error(o('setJSResponder'))},clearJSResponder:function(){},configureNextLayoutAnimation:function(n,t,u){return console.error(o('configureNextLayoutAnimation'))},removeSubviewsFromContainerWithID:function(n){return console.error(o('removeSubviewsFromContainerWithID'))},replaceExistingNonRootView:function(n,t){return console.error(o('replaceExistingNonRootView'))},setChildren:function(n,t){return console.error(o('setChildren'))},manageChildren:function(n,t,u,s,c,l){return console.error(o('manageChildren'))},setLayoutAnimationEnabledExperimental:function(n){console.error(o('setLayoutAnimationEnabledExperimental'))},sendAccessibilityEvent:function(n,t){return console.error(o('sendAccessibilityEvent'))},showPopupMenu:function(n,t,u,s){return console.error(o('showPopupMenu'))},dismissPopupMenu:function(){return console.error(o('dismissPopupMenu'))}}},150,[151]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_hasComponent=function(t){var o=n.get(t);if(null==o){if(!g.__nativeComponentRegistry__hasComponent)throw"unstable_hasComponent('"+t+"'): Global function is not registered";o=g.__nativeComponentRegistry__hasComponent(t),n.set(t,o)}return o};var n=new Map},151,[]); +__d(function(g,r,i,a,m,_e,d){var n=r(d[0])(r(d[1])),e=r(d[2]),t=r(d[3]),o=(r(d[4]),r(d[5])),f={},u=new Set,c={},l=!1;function s(){return l||(c=n.default.getConstants(),l=!0),c}function w(e){if(void 0===f[e]&&g.nativeCallSyncHook&&n.default.getConstantsForViewManager)try{f[e]=n.default.getConstantsForViewManager(e)}catch(n){console.error("NativeUIManager.getConstantsForViewManager('"+e+"') threw an exception.",n),f[e]=null}var t=f[e];if(t)return t;if(!g.nativeCallSyncHook)return t;if(n.default.lazilyLoadView&&!u.has(e)){var o=n.default.lazilyLoadView(e);u.add(e),null!=o&&null!=o.viewConfig&&(s()[e]=o.viewConfig,C(e))}return f[e]}var v=Object.assign({},n.default,{createView:function(e,t,o,u){void 0===f[t]&&w(t),n.default.createView(e,t,o,u)},getConstants:function(){return s()},getViewManagerConfig:function(n){return w(n)},hasViewManagerConfig:function(n){return null!=w(n)}});function C(n){var o=s()[n];f[n]=o,o.Manager&&(t(o,'Constants',{get:function(){var n=e[o.Manager],t={};return n&&Object.keys(n).forEach(function(e){var o=n[e];'function'!=typeof o&&(t[e]=o)}),t}}),t(o,'Commands',{get:function(){var n=e[o.Manager],t={},f=0;return n&&Object.keys(n).forEach(function(e){'function'==typeof n[e]&&(t[e]=f++)}),t}}))}n.default.getViewManagerConfig=v.getViewManagerConfig,Object.keys(s()).forEach(function(n){C(n)}),g.nativeCallSyncHook||Object.keys(s()).forEach(function(e){o.includes(e)||(f[e]||(f[e]=s()[e]),t(n.default,e,{get:function(){return console.warn("Accessing view manager configs directly off UIManager via UIManager['"+e+"'] is no longer supported. Use UIManager.getViewManagerConfig('"+e+"') instead."),v.getViewManagerConfig(e)}}))}),m.exports=v},152,[2,153,45,55,56,154]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('UIManager');e.default=n},153,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dismissPopupMenu','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','removeRootView','removeSubviewsFromContainerWithID','replaceExistingNonRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','showPopupMenu','updateView','viewIsDescendantOf','PopupMenu','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','hasViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']},154,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),s=r(d[2]),u=r(d[3]),o=r(d[4]),c=r(d[5]),l=r(d[6]),v=r(d[7]),b=r(d[8]),f=r(d[9]);function p(n){var t=b.getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=y(n,b.getDefaultEventTypes()):(n.bubblingEventTypes=y(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=y(n.directEventTypes,t.genericDirectEventTypes))}function y(n,t){if(!t)return n;if(!n)return t;for(var s in t)if(t.hasOwnProperty(s)){var u=t[s];if(n.hasOwnProperty(s)){var o=n[s];'object'==typeof u&&'object'==typeof o&&(u=y(o,u))}n[s]=u}return n}function C(n){switch(n){case'CATransform3D':return c;case'CGPoint':return l;case'CGSize':return v;case'UIEdgeInsets':return o;case'Point':return l;case'EdgeInsets':return o}return null}function E(n){switch(n){case'CGColor':case'UIColor':return s;case'CGColorArray':case'UIColorArray':return u;case'CGImage':case'UIImage':case'RCTImageSource':return t;case'Color':return s;case'ColorArray':return u;case'ImageSource':return t}return null}m.exports=function(t){var s,u,o=b.getViewManagerConfig(t);f(null!=o&&null!=o.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',t);var c=o.baseModuleName,l=o.bubblingEventTypes,v=o.directEventTypes,y=o.NativeProps;for(l=null!=(s=l)?s:{},v=null!=(u=v)?u:{};c;){var T=b.getViewManagerConfig(c);T?(l=Object.assign({},T.bubblingEventTypes,l),v=Object.assign({},T.directEventTypes,v),y=Object.assign({},T.NativeProps,y),c=T.baseModuleName):c=null}var I={};for(var w in y){var N=y[w],M=C(N),P=E(N);I[w]=null==M?null==P||{process:P}:null==P?{diff:M}:{diff:M,process:P}}return I.style=n,Object.assign(o,{uiViewClassName:t,validAttributes:I,bubblingEventTypes:l,directEventTypes:v}),p(o),o}},155,[139,156,140,165,148,147,166,146,149,7]); +__d(function(g,r,i,a,m,e,d){'use strict';var t,n,s,u,o=r(d[0]),f=r(d[1]),c=r(d[2]).pickScale;function l(){if(u)return u;var t=g.nativeExtensions&&g.nativeExtensions.SourceCode;return t||(t=r(d[3]).default),u=t.getConstants().scriptURL}function v(){if(void 0===n){var t=l(),s=t&&t.match(/^https?:\/\/.*?\//);n=s?s[0]:null}return n}function p(t){if(t){if(t.startsWith('assets://'))return null;(t=t.substring(0,t.lastIndexOf('/')+1)).includes('://')||(t='file://'+t)}return t}m.exports=function(n){if('object'==typeof n)return n;var u=o.getAssetByID(n);if(!u)return null;var c=new f(v(),(void 0===s&&(s=p(l())),s),u);return t?t(c):c.defaultAsset()},m.exports.pickScale=c,m.exports.setCustomSourceTransformer=function(n){t=n}},156,[157,158,162,164]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}},157,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]),t=r(d[1]),n=r(d[2]),u=r(d[3]).pickScale,o=(r(d[4]),r(d[5])),l=r(d[6]),h=l.getAndroidResourceFolderName,c=l.getAndroidResourceIdentifier,f=l.getBasePath;function v(s){var t=u(s.scales,n.get()),o=1===t?'':'@'+t+'x';return f(s)+'/'+s.name+o+'.'+s.type}var S=(function(){function l(t,n,u){s(this,l),this.serverUrl=t,this.jsbundleUrl=n,this.asset=u}return t(l,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!(!this.jsbundleUrl||!this.jsbundleUrl.startsWith('file://'))}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.scaledAssetURLNearBundle()}},{key:"assetServerURL",value:function(){return o(!!this.serverUrl,'need server to load from'),this.fromSource(this.serverUrl+v(this.asset)+"?platform=ios&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(v(this.asset))}},{key:"scaledAssetURLNearBundle",value:function(){var s=this.jsbundleUrl||'file://';return this.fromSource(s+v(this.asset).replace(/\.\.\//g,'_'))}},{key:"resourceIdentifierWithoutScale",value:function(){return o(!1,'resource identifiers work on Android'),this.fromSource(c(this.asset))}},{key:"drawableFolderInBundle",value:function(){var s,t,o=this.jsbundleUrl||'file://';return this.fromSource(o+(s=this.asset,t=u(s.scales,n.get()),h(s,t)+'/'+c(s)+'.'+s.type))}},{key:"fromSource",value:function(s){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:s,scale:u(this.asset.scales,n.get())}}}]),l})();S.pickScale=u,m.exports=S},158,[18,19,159,162,56,7,163]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=(function(){function o(){t(this,o)}return n(o,null,[{key:"get",value:function(){return u.get('window').scale}},{key:"getFontScale",value:function(){return u.get('window').fontScale||o.get()}},{key:"getPixelSizeForLayoutSize",value:function(t){return Math.round(t*o.get())}},{key:"roundToNearestPixel",value:function(t){var n=o.get();return Math.round(t*n)/n}},{key:"startDetecting",value:function(){}}]),o})();m.exports=o},159,[18,19,160]); +__d(function(g,r,i,a,m,e,d){var n,t=r(d[0]),s=t(r(d[1])),l=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),h=new o.default,v=!1,w=(function(){function t(){(0,s.default)(this,t)}return(0,l.default)(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 s=t.screen,l=t.window,o=t.windowPhysicalPixels;o&&(l={width:o.width/o.scale,height:o.height/o.scale,scale:o.scale,fontScale:o.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=l),n={window:l,screen:s},v?h.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){return(0,f.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),h.addListener(n,t)}}]),t})(),y=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;y||(c.default.addListener('didUpdateDimensions',function(n){w.set(n)}),y=u.default.getConstants().Dimensions),w.set(y),m.exports=w},160,[2,18,19,11,10,161,7]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('DeviceInfo'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},161,[44]); +__d(function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlCacheBreaker=function(){if(null==t)return'';return t},e.pickScale=function(n,t){null==t&&(t=u.default.get());for(var l=0;l=t)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(n){t=n};var t,u=n(r(d[1]))},162,[2,159]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},163,[]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('SourceCode'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},164,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}},165,[2,140]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={x:void 0,y:void 0};m.exports=function(n,o){return(n=n||t)!==(o=o||t)&&(n.x!==o.x||n.y!==o.y)}},166,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o of['validAttributes','bubblingEventTypes','directEventTypes']){var u=Object.keys(f(t[o],n[o]));if(u.length>0){var s,c=null!=(s=n.uiViewClassName)?s:t.uiViewClassName;console.error("'"+c+"' has a view config that does not match native. '"+o+"' is missing: "+u.join(', '))}}},e.getConfigWithoutViewProps=function(t,o){if(!t[o])return{};return Object.keys(t[o]).filter(function(t){return!n.default[o][t]}).reduce(function(n,f){return n[f]=t[o][f],n},{})},e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var n=t(r(d[1])),o=['transform','hitSlop'];function f(t,n){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)o.includes(c)||(n?t.hasOwnProperty(c)&&s(t[c],n[c],c):u[c]={});return u}},167,[2,137]); +__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=e.Commands=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var l=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=l;var c=Object.assign({uiViewClassName:'RCTSinglelineTextInputView'},u.default);e.__INTERNAL_VIEW_CONFIG=c;var p=o.get('RCTSinglelineTextInputView',function(){return c});e.default=p},168,[2,126,169,133]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n={bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topContentSizeChange:{phasedRegistrationNames:{captured:'onContentSizeChangeCapture',bubbled:'onContentSizeChange'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}}},directEventTypes:{topTextInput:{registrationName:'onTextInput'},topKeyPressSync:{registrationName:'onKeyPressSync'},topScroll:{registrationName:'onScroll'},topSelectionChange:{registrationName:'onSelectionChange'},topChangeSync:{registrationName:'onChangeSync'}},validAttributes:Object.assign({fontSize:!0,fontWeight:!0,fontVariant:!0,textShadowOffset:{diff:r(d[1])},allowFontScaling:!0,fontStyle:!0,textTransform:!0,textAlign:!0,fontFamily:!0,lineHeight:!0,isHighlighted:!0,writingDirection:!0,textDecorationLine:!0,textShadowRadius:!0,letterSpacing:!0,textDecorationStyle:!0,textDecorationColor:{process:r(d[2])},color:{process:r(d[2])},maxFontSizeMultiplier:!0,textShadowColor:{process:r(d[2])},editable:!0,inputAccessoryViewID:!0,caretHidden:!0,enablesReturnKeyAutomatically:!0,placeholderTextColor:{process:r(d[2])},clearButtonMode:!0,keyboardType:!0,selection:!0,returnKeyType:!0,blurOnSubmit:!0,mostRecentEventCount:!0,scrollEnabled:!0,selectionColor:{process:r(d[2])},contextMenuHidden:!0,secureTextEntry:!0,placeholder:!0,autoCorrect:!0,multiline:!0,textContentType:!0,maxLength:!0,autoCapitalize:!0,keyboardAppearance:!0,passwordRules:!0,spellCheck:!0,selectTextOnFocus:!0,text:!0,clearTextOnFocus:!0,showSoftInputOnFocus:!0,autoFocus:!0},(0,t.ConditionallyIgnoredEventHandlers)({onChange:!0,onSelectionChange:!0,onContentSizeChange:!0,onScroll:!0,onChangeSync:!0,onKeyPressSync:!0,onTextInput:!0}))};m.exports=n},169,[135,146,140]); +__d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}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 y=o.length;if(u.length!==y)return!0;for(var p=0;p=0||(console.error("'numberOfLines' in must be a non-negative number, received: "+Y+". The value will be set to 0."),Y=0);var Z=(0,p.useContext)(c.default),$=s.default.select({ios:!1!==y,default:y});return Z?(0,R.jsx)(f.NativeVirtualText,Object.assign({},H,Q,{isHighlighted:I,isPressable:V,numberOfLines:Y,selectionColor:U,style:X,ref:S})):(0,R.jsx)(c.default.Provider,{value:!0,children:(0,R.jsx)(f.NativeText,Object.assign({},H,Q,{disabled:W,accessible:$,accessibilityState:A,allowFontScaling:!1!==h,ellipsizeMode:null!=T?T:'tail',isHighlighted:I,numberOfLines:Y,selectionColor:U,style:X,ref:S}))})});function P(n){var o=(0,p.useState)(n),s=(0,t.default)(o,2),l=s[0],u=s[1];return!l&&n&&u(n),l}O.displayName='Text',m.exports=O},193,[2,46,93,56,194,196,180,140,183,203,129,184]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PressabilityDebugView=function(t){return null},e.isEnabled=function(){return!1},e.setEnabled=function(t){};t(r(d[1])),r(d[2]),t(r(d[3])),(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=n(u);if(o&&o.has(t))return o.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,o&&o.set(t,f)})(r(d[4])),r(d[5]);function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:u})(t)}},194,[2,141,195,181,129,184]); +__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}},195,[]); +__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])},196,[2,197,129]); +__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=r(d[3]),_=E(r(d[4])),o=E(r(d[5])),l=r(d[6]),u=E(r(d[7])),s=E(r(d[8])),S=E(r(d[9])),T=((function(E,t){if(!t&&E&&E.__esModule)return E;if(null===E||"object"!=typeof E&&"function"!=typeof E)return{default:E};var n=c(t);if(n&&n.has(E))return n.get(E);var R={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in E)if("default"!==o&&Object.prototype.hasOwnProperty.call(E,o)){var l=_?Object.getOwnPropertyDescriptor(E,o):null;l&&(l.get||l.set)?Object.defineProperty(R,o,l):R[o]=E[o]}R.default=E,n&&n.set(E,R)})(r(d[10])),E(r(d[11])));function c(E){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(E){return E?n:t})(E)}var P=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'}}),O=function(E){return'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},D=function(E){return'RESPONDER_ACTIVE_PRESS_OUT'===E||'RESPONDER_ACTIVE_PRESS_IN'===E},N=function(E){return'RESPONDER_INACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},v=function(E){return'RESPONDER_TERMINATED'===E||'RESPONDER_RELEASE'===E},f=30,h=20,I=20,A=20,p=(function(){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)}return(0,n.default)(E,[{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=E._config.disabled;if(null==t){var n=E._config.onStartShouldSetResponder_DEPRECATED;return null==n||n()}return!t},onResponderGrant:function(t){t.persist(),E._cancelPressOutDelayTimeout(),E._responderID=t.currentTarget,E._touchState='NOT_RESPONDER',E._receiveSignal('RESPONDER_GRANT',t);var n=y(E._config.delayPressIn);n>0?E._pressDelayTimeout=setTimeout(function(){E._receiveSignal('DELAY',t)},n):E._receiveSignal('DELAY',t);var R=y(E._config.delayLongPress,10,500-n);E._longPressDelayTimeout=setTimeout(function(){E._handleLongPress(t)},R+n)},onResponderMove:function(t){var n=E._config.onPressMove;null!=n&&n(t);var R=E._responderRegion;if(null!=R){var _=C(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)>10&&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;if(null==t){var n=E._config.onResponderTerminationRequest_DEPRECATED;return null==n||n()}return t},onClick:function(t){var n=E._config,R=n.onPress,_=n.disabled;null!=R&&!0!==_&&R(t)}};if(T.default.shouldPressibilityUseW3CPointerEventsForHover()){var _={onPointerEnter:void 0,onPointerLeave:void 0},o=this._config,l=o.onHoverIn,u=o.onHoverOut;return null!=l&&(_.onPointerEnter=function(t){if(E._isHovered=!0,E._cancelHoverOutDelayTimeout(),null!=l){var n=y(E._config.delayHoverIn);n>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){l(L(t))},n)):l(L(t))}}),null!=u&&(_.onPointerLeave=function(t){if(E._isHovered&&(E._isHovered=!1,E._cancelHoverInDelayTimeout(),null!=u)){var n=y(E._config.delayHoverOut);n>0?(t.persist(),E._hoverOutDelayTimeout=setTimeout(function(){u(L(t))},n)):u(L(t))}}),Object.assign({},t,n,_)}var S='ios'===s.default.OS||'android'===s.default.OS?null:{onMouseEnter:function(t){if((0,R.isHoverEnabled)()){E._isHovered=!0,E._cancelHoverOutDelayTimeout();var n=E._config.onHoverIn;if(null!=n){var _=y(E._config.delayHoverIn);_>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){n(t)},_)):n(t)}}},onMouseLeave:function(t){if(E._isHovered){E._isHovered=!1,E._cancelHoverInDelayTimeout();var n=E._config.onHoverOut;if(null!=n){var R=y(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,o=null==(n=P[R])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,_.default)(null!=o&&'ERROR'!==o,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,R,'number'==typeof this._responderID?this._responderID:'<>'),R!==o&&(this._performTransitionSideEffects(R,o,E,t),this._touchState=o))}},{key:"_performTransitionSideEffects",value:function(E,t,n,R){v(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var _='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,l=!D(E)&&D(t);if((_||l)&&this._measureResponderRegion(),N(E)&&'LONG_PRESS_DETECTED'===n){var u=this._config.onLongPress;null!=u&&u(R)}var S=O(E),T=O(t);if(!S&&T?this._activate(R):S&&!T&&this._deactivate(R),N(E)&&'RESPONDER_RELEASE'===n){T||S||(this._activate(R),this._deactivate(R));var c=this._config,P=c.onLongPress,f=c.onPress,h=c.android_disableSound;if(null!=f)null!=P&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E&&this._shouldLongPressCancelPress()||('android'===s.default.OS&&!0!==h&&o.default.playTouchSound(),f(R))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=C(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=y(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,y(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?S.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,u=(0,l.normalizeRect)(this._config.hitSlop),s=(0,l.normalizeRect)(this._config.pressRectOffset),S=t.bottom,T=t.left,c=t.right,P=t.top;return null!=u&&(null!=u.bottom&&(S+=u.bottom),null!=u.left&&(T-=u.left),null!=u.right&&(c+=u.right),null!=u.top&&(P-=u.top)),S+=null!=(n=null==s?void 0:s.bottom)?n:f,T-=null!=(R=null==s?void 0:s.left)?R:h,c+=null!=(_=null==s?void 0:s.right)?_:I,P-=null!=(o=null==s?void 0:s.top)?o:A,E.pageX>T&&E.pageXP&&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)}e.default=p;var C=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 L(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}})}},197,[2,18,19,198,7,199,195,201,56,149,129,202]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return t};var t=!1;if('web'===n(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var o=0,u=function(){o=Date.now(),t&&(t=!1)};document.addEventListener('touchstart',u,!0),document.addEventListener('touchmove',u,!0),document.addEventListener('mousemove',function(){t||Date.now()-o<1e3||(t=!0)},!0)}},198,[2,56]); +__d(function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},199,[2,200]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('SoundManager');e.default=n},200,[44]); +__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(){function t(){(0,n.default)(this,t),this._listeners=[]}return(0,s.default)(t,[{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)})}}}]),t})());e.default=u},201,[2,18,19]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={isLayoutAnimationEnabled:function(){return!0},shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1},animatedShouldDebounceQueueFlush:function(){return!1},animatedShouldUseSingleOp:function(){return!1}}},202,[]); +__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=t(r(d[3])),u=(0,o.default)('RCTText',function(){return{validAttributes:Object.assign({},n.default.UIView,{isHighlighted:!0,isPressable:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0}),directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'}});e.NativeText=u;var s=g.RN$Bridgeless||l.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',function(){return{validAttributes:Object.assign({},n.default.UIView,{isHighlighted:!0,isPressable:!0,maxFontSizeMultiplier:!0}),uiViewClassName:'RCTVirtualText'}}):u;e.NativeVirtualText=s},203,[2,204,149,191]); +__d(function(g,r,i,a,m,e,d){'use strict';var s={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessibilityHint:!0,accessibilityLanguage:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,onAccessibilityEscape:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:r(d[0])(r(d[1])).default},c={UIView:s,RCTView:Object.assign({},s,{removeClippedSubviews:!0})};m.exports=c},204,[2,139]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),s=e(r(d[2])),o=e(r(d[3])),n=e(r(d[4])),c=e(r(d[5])),l=e(r(d[6])),p=e(r(d[7])),u=(r(d[8]),r(d[9])),f=e(r(d[10])),h=e(r(d[11])),b=(e(r(d[12])),e(r(d[13]))),y=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=O(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=n?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}o.default=e,s&&s.set(e,o);return o})(r(d[14])),v=e(r(d[15])),P=(r(d[16]),["onBlur","onFocus"]);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(O=function(e){return e?s:t})(e)}function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var S=(function(e){(0,n.default)(S,e);var b,v,O=(b=S,v=F(),function(){var e,t=(0,l.default)(b);if(v){var s=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,c.default)(this,e)});function S(){var e;(0,s.default)(this,S);for(var t=arguments.length,o=new Array(t),n=0;n=23};var R='android'===h.default.OS?function(e,t){return t&&S.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};S.displayName='TouchableNativeFeedback',m.exports=S},205,[2,93,18,19,30,32,35,197,194,182,20,56,181,140,129,7,184]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0]),e=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),n=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),p=t(r(d[7])),u=(r(d[8]),t(r(d[9]))),f=t(r(d[10])),y=t(r(d[11])),h=t(r(d[12])),b=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=O(e);if(s&&s.has(t))return s.get(t);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,s&&s.set(t,o);return o})(r(d[13])),v=r(d[14]),P=["onBlur","onFocus"];function O(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(O=function(t){return t?s:e})(t)}function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var _=(function(t){(0,n.default)(R,t);var b,O,_=(b=R,O=F(),function(){var t,e=(0,l.default)(b);if(O){var s=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function R(){var t;(0,s.default)(this,R);for(var e=arguments.length,o=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return y},event:c.event,createAnimatedComponent:p,attachNativeEvent:o,forkEvent:c.forkEvent,unforkEvent:c.unforkEvent,Event:u}},208,[2,209,219,221,211,212,210,220,236]); +__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])),a=t(_r(d[2])),s=t(_r(d[3])),n=t(_r(d[4])),r=t(_r(d[5])),l=t(_r(d[6])),u=t(_r(d[7])),f=t(_r(d[8])),o=t(_r(d[9])),h=_r(d[10]);function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var v=t(_r(d[11])).default.API,c={r:0,g:0,b:0,a:1},g=1;function b(t){if(void 0===t||null===t)return null;if(y(t))return t;var e=(0,o.default)(t);if(void 0===e||null===e)return null;if('object'==typeof e){var a=(0,h.processColorObject)(e);if(null!=a)return a}else if('number'==typeof e){return{r:(4278190080&e)>>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function y(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 u.default&&t.g instanceof u.default&&t.b instanceof u.default&&t.a instanceof u.default}var C=(function(t){(0,n.default)(C,t);var f,o,h=(f=C,o=_(),function(){var t,e=(0,l.default)(f);if(o){var a=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,r.default)(this,t)});function C(t,a){var s;(0,e.default)(this,C),(s=h.call(this))._listeners={};var n=null!=t?t:c;if(p(n)){var r=n;s.r=r.r,s.g=r.g,s.b=r.b,s.a=r.a}else{var l,f=null!=(l=b(n))?l:c,o=c;y(f)?o=f:s.nativeColor=f,s.r=new u.default(o.r),s.g=new u.default(o.g),s.b=new u.default(o.b),s.a=new u.default(o.a)}return(s.nativeColor||a&&a.useNativeDriver)&&s.__makeNative(),s}return(0,a.default)(C,[{key:"setValue",value:function(t){var e,a=!1;if(this.__isNative){var s=this.__getNativeTag();v.setWaitingForIdentifier(s.toString())}var n=null!=(e=b(t))?e:c;if(y(n)){var r=n;this.r.setValue(r.r),this.g.setValue(r.g),this.b.setValue(r.b),this.a.setValue(r.a),null!=this.nativeColor&&(this.nativeColor=null,a=!0)}else{var l=n;this.nativeColor!==l&&(this.nativeColor=l,a=!0)}if(this.__isNative){var u=this.__getNativeTag();a&&v.updateAnimatedNodeConfig(u,this.__getNativeConfig()),v.unsetWaitingForIdentifier(u.toString())}}},{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:"addListener",value:function(t){var e=this,a=String(g++),s=function(a){a.value;t(e.__getValue())};return this._listeners[a]={r:this.r.addListener(s),g:this.g.addListener(s),b:this.b.addListener(s),a:this.a.addListener(s)},a}},{key:"removeListener",value:function(t){this.r.removeListener(this._listeners[t].r),this.g.removeListener(this._listeners[t].g),this.b.removeListener(this._listeners[t].b),this.a.removeListener(this._listeners[t].a),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}},{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),(0,s.default)((0,l.default)(C.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),(0,s.default)((0,l.default)(C.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),(0,s.default)((0,l.default)(C.prototype),"__makeNative",this).call(this,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}}}]),C})(f.default);_e.default=C},209,[2,18,19,74,30,32,35,210,216,141,143,213]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]),o=r(d[5]);function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var l=r(d[6]),f=r(d[7]),h=r(d[8]),c=r(d[9]).API;function v(t){var e=new Set;!(function t(n){'function'==typeof n.update?e.add(n):n.__getChildren().forEach(t)})(t),e.forEach(function(t){return t.update()})}var p=(function(p){s(V,f);var k,y,N=(k=V,y=_(),function(){var t,e=o(k);if(y){var n=o(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function V(e,n){var s;if(t(this,V),s=N.call(this),'number'!=typeof e)throw new Error('AnimatedValue: Attempting to set value to undefined');return s._startingValue=s._value=e,s._offset=0,s._animation=null,n&&n.useNativeDriver&&s.__makeNative(),s}return e(V,[{key:"__detach",value:function(){var t=this;this.__isNative&&c.getValue(this.__getNativeTag(),function(e){t._value=e-t._offset}),this.stopAnimation(),n(o(V.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){var e,n,s=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),n=function(){return c.setAnimatedNodeValue(s.__getNativeTag(),t)},c.setWaitingForIdentifier(e),n(),c.unsetWaitingForIdentifier(e))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&c.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&c.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&c.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&(this.__isNative?c.getValue(this.__getNativeTag(),t):t(this.__getValue()))}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&c.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new l(this,t)}},{key:"animate",value:function(t,e){var n=this,s=null;t.__isInteraction&&(s=h.createInteractionHandle());var u=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!==s&&h.clearInteractionHandle(s),e&&e(t)},u,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&&v(this),n(o(V.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),V})();m.exports=p},210,[18,19,74,30,32,35,211,216,217,213]); +__d(function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]),e=_r(d[1]),n=_r(d[2]),a=_r(d[3]),r=_r(d[4]),i=_r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}_r(d[6]);var u=_r(d[7]),c=_r(d[8]),f=_r(d[9]),p=_r(d[10]),l=function(t){return t};function h(t){if(t.outputRange&&'string'==typeof t.outputRange[0])return g(t);var e=t.outputRange,n=t.inputRange,a=t.easing||l,r='extend';void 0!==t.extrapolateLeft?r=t.extrapolateLeft:void 0!==t.extrapolate&&(r=t.extrapolate);var i='extend';return void 0!==t.extrapolateRight?i=t.extrapolateRight:void 0!==t.extrapolate&&(i=t.extrapolate),function(t){f('number'==typeof t,'Cannot interpolation an input which is not a number');var o=x(t,n);return s(t,n[o],n[o+1],e[o],e[o+1],a,r,i)}}function s(t,e,n,a,r,i,o,u){var c=t;if(cn){if('identity'===u)return c;'clamp'===u&&(c=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a,c)}function _(t){var e=p(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var v=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function g(t){var e=t.outputRange;f(e.length>=2,'Bad output range'),y(e=e.map(_));var n=e[0].match(v).map(function(){return[]});e.forEach(function(t){t.match(v).forEach(function(t,e){n[e].push(+t)})});var a,r=e[0].match(v).map(function(e,a){return h(Object.assign({},t,{outputRange:n[a]}))}),i='string'==typeof(a=e[0])&&a.startsWith('rgb');return function(t){var n=0;return e[0].replace(v,function(){var e=+r[n++](t);return i&&(e=n<4?Math.round(e):Math.round(1e3*e)/1e3),String(e)})}}function y(t){for(var e=t[0].replace(v,''),n=1;n=t);++n);return n-1}var R=(function(p){a(v,u);var l,s,_=(l=v,s=o(),function(){var t,e=i(l);if(s){var n=i(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(this,t)});function v(e,n){var a;return t(this,v),(a=_.call(this))._parent=e,a._config=n,a._interpolation=h(n),a}return e(v,[{key:"__makeNative",value:function(t){this._parent.__makeNative(t),n(i(v.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return f('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new v(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),n(i(v.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(c.transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),v})();R.__createInterpolation=h,m.exports=R},211,[18,19,74,30,32,35,212,216,213,7,141]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),_=s.API,o=r(d[3]),u=1,l=(function(){function l(){t(this,l),this._listeners={}}return n(l,[{key:"__attach",value:function(){}},{key:"__detach",value:function(){this.__isNative&&null!=this.__nativeTag&&(s.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}},{key:"__getValue",value:function(){}},{key:"__getAnimatedValue",value:function(){return this.__getValue()}},{key:"__addChild",value:function(t){}},{key:"__removeChild",value:function(t){}},{key:"__getChildren",value:function(){return[]}},{key:"__makeNative",value:function(t){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=t,this.hasListeners()&&this._startListeningToNativeValueUpdates()}},{key:"addListener",value:function(t){var n=String(u++);return this._listeners[n]=t,this.__isNative&&this._startListeningToNativeValueUpdates(),n}},{key:"removeListener",value:function(t){delete this._listeners[t],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}},{key:"removeAllListeners",value:function(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}},{key:"hasListeners",value:function(){return!!Object.keys(this._listeners).length}},{key:"_startListeningToNativeValueUpdates",value:function(){var t=this;this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),_.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=s.nativeEventEmitter.addListener('onAnimatedValueUpdate',function(n){n.tag===t.__getNativeTag()&&t.__onAnimatedValueUpdateReceived(n.value)}))}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this.__callListeners(t)}},{key:"__callListeners",value:function(t){for(var n in this._listeners)this._listeners[n]({value:t})}},{key:"_stopListeningForNativeValueUpdates",value:function(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,_.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}},{key:"__getNativeTag",value:function(){var t;s.assertNativeAnimatedModule(),o(this.__isNative,'Attempt to get native tag from node not marked as "native"');var n=null!=(t=this.__nativeTag)?t:s.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=n;var _=this.__getNativeConfig();this._platformConfig&&(_.platformConfig=this._platformConfig),s.API.createAnimatedNode(n,_),this.__shouldUpdateListenersForNewNativeTag=!0}return n}},{key:"__getNativeConfig",value:function(){throw new Error('This JS animated node type cannot be used as native animated node')}},{key:"toJSON",value:function(){return this.__getValue()}},{key:"__getPlatformConfig",value:function(){return this._platformConfig}},{key:"__setPlatformConfig",value:function(t){this._platformConfig=t}}]),l})();m.exports=l},212,[18,19,213,7]); +__d(function(g,r,_i,a,m,e,d){var t,n=r(d[0]),i=n(r(d[1])),o=n(r(d[2])),u=n(r(d[3])),l=n(r(d[4])),s=n(r(d[5])),f=n(r(d[6])),c=n(r(d[7])),p='ios'===l.default.OS&&!0===g.RN$Bridgeless?o.default:i.default,v=1,N=1,A=new Set,b=!1,h=[],O=[],w='android'===l.default.OS&&!(null==p||!p.queueAndExecuteBatchedOperations)&&s.default.animatedShouldUseSingleOp(),V=null,y={},q={},T=null,S=null,R=w?['createAnimatedNode','updateAnimatedNodeConfig','getValue','startListeningToAnimatedNodeValue','stopListeningToAnimatedNodeValue','connectAnimatedNodes','disconnectAnimatedNodes','startAnimatingNode','stopAnimation','setAnimatedNodeValue','setAnimatedNodeOffset','flattenAnimatedNodeOffset','extractAnimatedNodeOffset','connectAnimatedNodeToView','disconnectAnimatedNodeFromView','restoreDefaultValues','dropAnimatedNode','addAnimatedEventToView','removeAnimatedEventFromView','addListener','removeListener'].reduce(function(t,n,i){return t[n]=i+1,t},{}):p,E={getValue:function(t,n){(0,f.default)(R,'Native animated module is not available'),w?(n&&(y[t]=n),E.queueOperation(R.getValue,t)):E.queueOperation(R.getValue,t,n)},setWaitingForIdentifier:function(t){A.add(t),b=!0,s.default.animatedShouldDebounceQueueFlush()&&V&&clearTimeout(V)},unsetWaitingForIdentifier:function(t){A.delete(t),0===A.size&&(b=!1,E.disableQueue())},disableQueue:function(){((0,f.default)(R,'Native animated module is not available'),s.default.animatedShouldDebounceQueueFlush())?(clearImmediate(V),V=setImmediate(E.flushQueue)):E.flushQueue()},flushQueue:function(){if((0,f.default)(p,'Native animated module is not available'),V=null,(!w||0!==O.length)&&(w||0!==h.length))if(w)T&&S||C(),null==p.queueAndExecuteBatchedOperations||p.queueAndExecuteBatchedOperations(O),O.length=0;else{'android'===l.default.OS&&(null==p.startOperationBatch||p.startOperationBatch());for(var t=0,n=h.length;t1?n-1:0),o=1;o0?setTimeout(S,0):setImmediate(S))}function S(){h=0;var n=f.size;l.forEach(function(n){return f.add(n)}),v.forEach(function(n){return f.delete(n)});var o=f.size;if(0!==n&&0===o?s.emit(u.Events.interactionComplete):0===n&&0!==o&&s.emit(u.Events.interactionStart),0===o)for(;p.hasTasksToProcess();)if(p.processNext(),w>0&&t.getEventLoopRunningTime()>=w){E();break}l.clear(),v.clear()}m.exports=u},217,[2,11,50,218,82,7]); +__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),t=r(d[1]),u=(r(d[2]),r(d[3])),s=(function(){function s(t){var u=t.onMoreTasks;e(this,s),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return t(s,[{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():(u('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)})}}]),s})();m.exports=s},218,[18,19,82,7]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),v=r(d[4]),c=r(d[5]),f=r(d[6]),l=r(d[4]).shouldUseNativeDriver;function u(t,n,l,u){var _=[];f(l[0]&&l[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,v){if(n instanceof s)n.__makeNative(u),_.push({nativeEventPath:v,animatedValueTag:n.__getNativeTag()});else if(n instanceof o)t(n.x,v.concat('x')),t(n.y,v.concat('y'));else if('object'==typeof n)for(var c in n)t(n[c],v.concat(c))})(l[0].nativeEvent,[]);var h=c.findNodeHandle(t);return null!=h&&_.forEach(function(t){v.API.addAnimatedEventToView(h,n,t)}),{detach:function(){null!=h&&_.forEach(function(t){v.API.removeAnimatedEventFromView(h,n,t.animatedValueTag)})}}}var _=(function(){function v(n,s){var o=this;t(this,v),this._listeners=[],this._callListeners=function(){for(var t=arguments.length,n=new Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},i=t.iterations,r=void 0===i?-1:i,o=t.resetBeforeIteration,a=void 0===o||o,s=!1,u=0;return{start:function(t){n&&0!==r?n._isUsingNativeDriver()?n._startNativeLoop(r):(function i(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};s||u===r||!1===o.finished?t&&t(o):(u++,a&&n.reset(),n.start(i))})():t&&t({finished:!0})},stop:function(){s=!0,n.stop()},reset:function(){u=0,s=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var r=new i(n,t);return r.__isNative?r:r.__getHandler()},createAnimatedComponent:E,attachNativeEvent:r,forkEvent:function(n,t){return n?n instanceof i?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof i&&n.__removeListener(t)},Event:i}},221,[2,209,219,222,223,224,211,225,226,212,227,228,210,220,229,231,233,236]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),h=r(d[9]),l=(function(l){a(p,h);var f,v,y=(f=p,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function p(e,n){var a;return t(this,p),(a=y.call(this))._a='number'==typeof e?new s(e):e,a._b='number'==typeof n?new s(n):n,a}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(p.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),p})();m.exports=l},222,[18,19,74,30,32,35,211,212,210,216]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),a=r(d[2]),n=r(d[3]),u=r(d[4]),_=r(d[5]);function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),o=(function(o){n(p,s);var h,f,v=(h=p,f=l(),function(){var t,e=_(h);if(f){var a=_(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return u(this,t)});function p(e,a,n){var u;return t(this,p),(u=v.call(this))._a=e,u._min=a,u._max=n,u._value=u._lastValue=u._a.__getValue(),u}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),a(_(p.prototype),"__makeNative",this).call(this,t)}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),a(_(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),p})();m.exports=o},223,[18,19,74,30,32,35,211,212,216]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),a=r(d[4]),_=r(d[5]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=r(d[6]),c=r(d[7]),h=r(d[8]),l=r(d[9]),v=(function(v){o(b,l);var f,y,p=(f=b,y=u(),function(){var t,e=_(f);if(y){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function b(e,n){var o;return t(this,b),(o=p.call(this))._warnedAboutDivideByZero=!1,(0===n||n instanceof c&&0===n.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),o._a='number'==typeof e?new h(e):e,o._b='number'==typeof n?new h(n):n,o}return e(b,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(_(b.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=this._b.__getValue();return 0===e?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,t/e)}},{key:"interpolate",value:function(t){return new s(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(_(b.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),b})();m.exports=v},224,[18,19,74,30,32,35,211,212,210,216]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),u=r(d[2]),n=r(d[3]),a=r(d[4]),o=r(d[5]);function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=r(d[6]),_=(r(d[7]),r(d[8])),l=(function(l){n(y,_);var h,f,v=(h=y,f=c(),function(){var t,e=o(h);if(f){var u=o(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return a(this,t)});function y(e,u){var n;return t(this,y),(n=v.call(this))._a=e,n._modulus=u,n}return e(y,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),u(o(y.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new s(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),u(o(y.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),y})();m.exports=l},225,[18,19,74,30,32,35,211,212,216]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),l=(r(d[7]),r(d[8])),s=r(d[9]),h=(function(h){a(y,s);var f,v,p=(f=y,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function y(e,n){var a;return t(this,y),(a=p.call(this))._a='number'==typeof e?new l(e):e,a._b='number'==typeof n?new l(n):n,a}return e(y,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(y.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(y.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),y})();m.exports=h},226,[18,19,74,30,32,35,211,212,210,216]); +__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),h=r(d[9]),l=(function(l){a(p,h);var f,v,y=(f=p,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function p(e,n){var a;return t(this,p),(a=y.call(this))._a='number'==typeof e?new s(e):e,a._b='number'==typeof n?new s(n):n,a}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(p.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),p})();m.exports=l},227,[18,19,74,30,32,35,211,212,210,216]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),_=r(d[4]),s=r(d[5]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[6]);var l=r(d[7]),c=r(d[8]),h=c.generateNewAnimationId,v=c.shouldUseNativeDriver,f=(function(c){o(k,l);var f,p,y=(f=k,p=u(),function(){var t,e=s(f);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function k(e,n,o,_,s){var u;return t(this,k),(u=y.call(this))._value=e,u._parent=n,u._animationClass=o,u._animationConfig=_,u._useNativeDriver=v(_),u._callback=s,u.__attach(),u}return e(k,[{key:"__makeNative",value:function(t){this.__isNative=!0,this._parent.__makeNative(t),n(s(k.prototype),"__makeNative",this).call(this,t),this._value.__makeNative(t)}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){if(this._parent.__addChild(this),this._useNativeDriver){var t=this._animationConfig.platformConfig;this.__makeNative(t)}}},{key:"__detach",value:function(){this._parent.__removeChild(this),n(s(k.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(Object.assign({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(Object.assign({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:h(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),k})();m.exports=f},228,[18,19,74,30,32,35,210,212,213]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]);function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var u=r(d[6]),_=r(d[7]).shouldUseNativeDriver,h=(function(h){o(y,u);var f,v,p=(f=y,v=l(),function(){var t,e=c(f);if(v){var n=c(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return s(this,t)});function y(e){var n,o,s,c;return t(this,y),(c=p.call(this))._deceleration=null!=(n=e.deceleration)?n:.998,c._velocity=e.velocity,c._useNativeDriver=_(e),c._platformConfig=e.platformConfig,c.__isInteraction=null!=(o=e.isInteraction)?o:!c._useNativeDriver,c.__iterations=null!=(s=e.iterations)?s:1,c}return e(y,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,n,o,s){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(s):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{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.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){n(c(y.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),y})();m.exports=h},229,[18,19,74,30,32,35,230,213]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),o=1,_=(function(){function _(){t(this,_)}return n(_,[{key:"start",value:function(t,n,e,o,_){}},{key:"stop",value:function(){this.__nativeId&&e.API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(t){var n=o+":startAnimation";o+=1,e.API.setWaitingForIdentifier(n);try{var _=this.__getNativeAnimationConfig();t.__makeNative(_.platformConfig),this.__nativeId=e.generateNewAnimationId(),e.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),_,this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{e.API.unsetWaitingForIdentifier(n)}}}]),_})();m.exports=_},230,[18,19,213]); +__d(function(g,r,i,a,_m,_e,d){'use strict';var t=r(d[0]),s=t(r(d[1])),e=t(r(d[2])),n=t(r(d[3])),o=t(r(d[4])),l=t(r(d[5])),h=t(r(d[6]));t(r(d[7]));function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[8]),r(d[9]),r(d[10]);var f=r(d[11]),u=r(d[12]),c=r(d[13]),m=r(d[14]).shouldUseNativeDriver,v=(function(t){(0,o.default)(y,t);var f,v,p=(f=y,v=_(),function(){var t,s=(0,h.default)(f);if(v){var e=(0,h.default)(this).constructor;t=Reflect.construct(s,arguments,e)}else t=s.apply(this,arguments);return(0,l.default)(this,t)});function y(t){var e,n,o,l,h,_,f,v,V,T,b,M;if((0,s.default)(this,y),(V=p.call(this))._overshootClamping=null!=(e=t.overshootClamping)&&e,V._restDisplacementThreshold=null!=(n=t.restDisplacementThreshold)?n:.001,V._restSpeedThreshold=null!=(o=t.restSpeedThreshold)?o:.001,V._initialVelocity=null!=(l=t.velocity)?l:0,V._lastVelocity=null!=(h=t.velocity)?h:0,V._toValue=t.toValue,V._delay=null!=(_=t.delay)?_:0,V._useNativeDriver=m(t),V._platformConfig=t.platformConfig,V.__isInteraction=null!=(f=t.isInteraction)?f:!V._useNativeDriver,V.__iterations=null!=(v=t.iterations)?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)c(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),V._stiffness=null!=(T=t.stiffness)?T:100,V._damping=null!=(b=t.damping)?b:10,V._mass=null!=(M=t.mass)?M:1;else if(void 0!==t.bounciness||void 0!==t.speed){var D,P;c(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var C=u.fromBouncinessAndSpeed(null!=(D=t.bounciness)?D:8,null!=(P=t.speed)?P:12);V._stiffness=C.stiffness,V._damping=C.damping,V._mass=1}else{var S,U,A=u.fromOrigamiTensionAndFriction(null!=(S=t.tension)?S:40,null!=(U=t.friction)?U:7);V._stiffness=A.stiffness,V._damping=A.damping,V._mass=1}return c(V._stiffness>0,'Stiffness value must be greater than 0'),c(V._damping>0,'Damping value must be greater than 0'),c(V._mass>0,'Mass value must be greater than 0'),V}return(0,e.default)(y,[{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}}},{key:"start",value:function(t,s,e,n,o){var l=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof y){var h=n.getInternalState();this._lastPosition=h.lastPosition,this._lastVelocity=h.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=h.lastTime}var _=function(){l._useNativeDriver?l.__startNativeAnimation(o):l.onUpdate()};this._delay?this._timeout=setTimeout(_,this._delay):_()}},{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 s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,l=-this._initialVelocity,h=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),f=_*Math.sqrt(1-h*h),u=this._toValue-this._startPosition,c=0,m=0,v=this._frameTime;if(h<1){var p=Math.exp(-h*_*v);c=this._toValue-p*((l+h*_*u)/f*Math.sin(f*v)+u*Math.cos(f*v)),m=h*_*p*(Math.sin(f*v)*(l+h*_*u)/f+u*Math.cos(f*v))-p*(Math.cos(f*v)*(l+h*_*u)-f*u*Math.sin(f*v))}else{var y=Math.exp(-_*v);c=this._toValue-y*(u+(l+_*u)*v),m=y*(l*(v*_-1)+v*u*(_*_))}if(this._lastTime=t,this._lastPosition=c,this._lastVelocity=m,this._onUpdate(c),this.__active){var V=!1;this._overshootClamping&&0!==this._stiffness&&(V=this._startPositionthis._toValue:c18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},232,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),_=t(r(d[6]));t(r(d[7]));function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[8]),r(d[9]),r(d[10]);var f,h=r(d[11]),c=r(d[12]).shouldUseNativeDriver;function v(){if(!f){var t=r(d[13]);f=t.inOut(t.ease)}return f}var p=(function(t){(0,s.default)(y,t);var f,h,p=(f=y,h=l(),function(){var t,e=(0,_.default)(f);if(h){var n=(0,_.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function y(t){var n,o,s,u,_,l;return(0,e.default)(this,y),(l=p.call(this))._toValue=t.toValue,l._easing=null!=(n=t.easing)?n:v(),l._duration=null!=(o=t.duration)?o:500,l._delay=null!=(s=t.delay)?s:0,l.__iterations=null!=(u=t.iterations)?u:1,l._useNativeDriver=c(t),l._platformConfig=t.platformConfig,l.__isInteraction=null!=(_=t.isInteraction)?_:!l._useNativeDriver,l}return(0,n.default)(y,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=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.__debouncedOnEnd({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(){(0,o.default)((0,_.default)(y.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),y})(h);m.exports=p},233,[2,18,19,74,30,32,35,209,210,220,211,230,213,234]); +__d(function(g,r,i,a,m,e,d){'use strict';var n,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 r(d[0])(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}}};m.exports=t},234,[235]); +__d(function(g,r,_i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,i='function'==typeof Float32Array;function c(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((c(t,u)*n+v(t,u))*n+s(t))*n}function l(n,t,u){return 3*c(t,u)*n*n+2*v(t,u)*n+s(t)}function y(n,t,f,i,c){var v,s,l=0,y=t,b=f;do{(v=w(s=y+(b-y)/2,i,c)-n)>0?b=s:y=s}while(Math.abs(v)>u&&++l=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var v=i?new Float32Array(11):new Array(11);if(n!==u||o!==c)for(var s=0;s<11;++s)v[s]=w(s*f,n,o);function h(u){for(var i=0,c=1;10!==c&&v[c]<=u;++c)i+=f;var s=i+(u-v[--c])/(v[c+1]-v[c])*f,w=l(s,n,o);return w>=t?b(u,s,n,o):0===w?s:y(u,i,i+f,n,o)}return function(t){return n===u&&o===c?t:0===t?0:1===t?1:w(h(t),u,c)}}},235,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t,e=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),p=e(r(d[6])),u=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=l?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=t[s]}o.default=t,n&&n.set(t,o);return o})(r(d[7])),_=r(d[8]),f=["style"],h=["style"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[9]);var A=r(d[10]).AnimatedEvent,k=r(d[11]),b=r(d[12]),N=r(d[13]),R=r(d[14]),P=r(d[15]),C=1;m.exports=null!=(t=u.recordAndRetrieve())?t:function(t){R('function'!=typeof t||t.prototype&&t.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");var e=(function(e){(0,s.default)(R,e);var u,v,b=(u=R,v=y(),function(){var t,e=(0,p.default)(u);if(v){var n=(0,p.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function R(){var t;(0,o.default)(this,R);for(var e=arguments.length,n=new Array(e),l=0;l1){for(var s=[],l=0;l1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,s=R(t.props.numColumns),l=null!=(o=t.props.keyExtractor)?o:f.keyExtractor;return s>1?Array.isArray(e)?e.map(function(e,t){return l(e,n*s+t)}).join(':'):void I(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.",s):l(e,n)},t._renderer=function(e,t,o,s,l){var u=R(s),c=e?'ListItemComponent':'renderItem',f=function(n){return e?(0,h.jsx)(e,Object.assign({},n)):t?t(n):null};return(0,n.default)({},c,function(e){if(u>1){var t=e.item,n=e.index;return I(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,h.jsx)(_,{style:k.compose(P.row,o),children:t.map(function(t,o){var s=f({item:t,index:n*u+o,separators:e.separators});return null!=s?(0,h.jsx)(b.Fragment,{children:s},o):null})})}return f(e)})},t._memoizedRenderer=(0,p.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(t.props.onViewableItemsChanged)}),t}return(0,s.default)(E,[{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){I(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."),I(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),I(!y(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),I(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,o=e.horizontal,s=e.columnWrapperStyle,l=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=R(this.props.numColumns);I(!t&&!n,'FlatList does not support custom data formats.'),c>1?I(!o,'numColumns does not support horizontal.'):I(!s,'columnWrapperStyle not supported for single column lists'),I(!(l&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,o=R(this.props.numColumns),s=null!=(n=this.props.keyExtractor)?n:f.keyExtractor;t.item.forEach(function(n,l){I(null!=t.index,'Missing index!');var u=t.index*o+l;e.push(Object.assign({},t,{item:n,key:s(n,u),index:u}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=R(t.props.numColumns);if(e)if(o>1){var s=[],l=[];n.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(l,e)}),n.changed.forEach(function(e){return t._pushMultiColumnViewable(s,e)}),e({viewableItems:l,changed:s})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,o=n.numColumns,s=n.columnWrapperStyle,l=n.removeClippedSubviews,u=n.strictMode,c=void 0!==u&&u,f=(0,t.default)(n,v),p=c?this._memoizedRenderer:this._renderer;return(0,h.jsx)(w,Object.assign({},f,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=l,null!=e&&e)},p(this.props.ListItemComponent,this.props.renderItem,s,o,this.props.extraData)))}}]),E})(b.PureComponent),P=k.create({row:{flexDirection:'row'}});m.exports=x},243,[2,93,244,18,19,30,32,35,245,246,184,56,170,129,181,247,180,7]); +__d(function(g,r,i,a,m,e,d){m.exports=function(n,t,u){return t in n?Object.defineProperty(n,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[t]=u,n}},244,[]); +__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,o,s,u,v,c,h){var M=o(t);if(0===M)return v;var b=h.offset,x=h.velocity,y=h.visibleLength,w=h.zoomScale,k=void 0===w?1:w,p=Math.max(0,b),O=p+y,_=(u-1)*y,j=x>1?'after':x<-1?'before':'none',L=Math.max(0,p-.5*_),S=Math.max(0,O+.5*_);if(c(M-1).offset*k=F);){var P=N>=s,T=z<=v.first||z>v.last,W=z>R&&(!P||!T),q=B>=v.last||B=z&&z>=0&&B=R&&B<=F&&z<=J.first&&B>=J.last))throw new Error('Bad window calculation '+JSON.stringify({first:z,last:B,itemCount:M,overscanFirst:R,overscanLast:F,visible:J}));return{first:z,last:B}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){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(n)},e.newRangeCount=l;var n=t(r(d[1]));t(r(d[2]));function f(t,n,f){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=[],s=0;s>>1),M=f(h),b=M.offset*l,x=(M.offset+M.length)*l;if(0===h&&ux)){o[s]=h;break}v=h+1}}return o}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}},245,[2,46,7]); +__d(function(g,r,_i2,a,m,e,d){'use strict';var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){if(n.length!==u.length)return!1;for(var i=0;i0&&t>0&&null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0&&!s._hasTriggeredInitialScrollToIndex&&(null==s.props.contentOffset&&s.scrollToIndex({animated:!1,index:s.props.initialScrollIndex}),s._hasTriggeredInitialScrollToIndex=!0),s.props.onContentSizeChange&&s.props.onContentSizeChange(e,t),s._scrollMetrics.contentLength=s._selectLength({height:t,width:e}),s._scheduleCellsToRenderUpdate(),s._maybeCallOnEndReached()},s._convertParentScrollMetrics=function(e){var t=e.offset-s._offsetFromParentVirtualizedList,o=e.visibleLength,n=t-s._scrollMetrics.offset;return{visibleLength:o,contentLength:s._scrollMetrics.contentLength,offset:t,dOffset:n}},s._onScroll=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),s.props.onScroll&&s.props.onScroll(e);var t=e.timeStamp,o=s._selectLength(e.nativeEvent.layoutMeasurement),n=s._selectLength(e.nativeEvent.contentSize),l=s._selectOffset(e.nativeEvent.contentOffset),c=l-s._scrollMetrics.offset;if(s._isNestedWithSameOrientation()){if(0===s._scrollMetrics.contentLength)return;var h=s._convertParentScrollMetrics({visibleLength:o,offset:l});o=h.visibleLength,n=h.contentLength,l=h.offset,c=h.dOffset}var u=s._scrollMetrics.timestamp?Math.max(1,t-s._scrollMetrics.timestamp):1,p=c/u;u>500&&s._scrollMetrics.dt>500&&n>5*o&&!s._hasWarned.perf&&(R("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:u,prevDt:s._scrollMetrics.dt,contentLength:n}),s._hasWarned.perf=!0);var f=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;s._scrollMetrics={contentLength:n,dt:u,dOffset:c,offset:l,timestamp:t,velocity:p,visibleLength:o,zoomScale:f},s._updateViewableItems(s.props.data),s.props&&(s._maybeCallOnEndReached(),0!==p&&s._fillRateHelper.activate(),s._computeBlankness(),s._scheduleCellsToRenderUpdate())},s._onScrollBeginDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),s._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),s._hasInteracted=!0,s.props.onScrollBeginDrag&&s.props.onScrollBeginDrag(e)},s._onScrollEndDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(s._scrollMetrics.velocity=s._selectOffset(t)),s._computeBlankness(),s.props.onScrollEndDrag&&s.props.onScrollEndDrag(e)},s._onMomentumScrollBegin=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollBegin(e)}),s.props.onMomentumScrollBegin&&s.props.onMomentumScrollBegin(e)},s._onMomentumScrollEnd=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollEnd(e)}),s._scrollMetrics.velocity=0,s._computeBlankness(),s.props.onMomentumScrollEnd&&s.props.onMomentumScrollEnd(e)},s._updateCellsToRender=function(){var e=s.props,t=e.data,o=e.getItemCount,n=P(e.onEndReachedThreshold),l=s._isVirtualizationDisabled();s._updateViewableItems(t),t&&s.setState(function(e){var c,h=s._scrollMetrics,u=h.contentLength,f=h.offset,_=h.visibleLength,v=u-_-f;if(l){var y=v0&&u>0&&(!s.props.initialScrollIndex||s._scrollMetrics.offset||Math.abs(v)0)for(var L=c.first,C=c.last,b=L;b<=C;b++){var x=s._indicesToKeys.get(b),S=x&&s._cellKeysToChildListKeys.get(x);if(S){var I=!1;for(var M of S){var R=s._nestedChildLists.get(M);if(R&&R.ref&&R.ref.hasMore()){I=!0;break}}if(I){c.last=b;break}}}return null!=c&&c.first===e.first&&c.last===e.last&&(c=null),c})},s._createViewToken=function(e,t){var o=s.props,n=o.data,l=(0,o.getItem)(n,e);return{index:e,item:l,key:s._keyExtractor(l,e),isViewable:t}},s.__getFrameMetricsApprox=function(e){var t=s._getFrameMetrics(e);if(t&&t.index===e)return t;var o=s.props.getItemLayout;return T(!o,'Should not have to estimate frames when a measurement metrics function is provided'),{length:s._averageCellLength,offset:s._averageCellLength*e}},s._getFrameMetrics=function(e){var t=s.props,o=t.data,n=t.getItem,l=t.getItemCount,c=t.getItemLayout;T(l(o)>e,'Tried to get frame for out of range index '+e);var h=n(o,e),u=h&&s._frames[s._keyExtractor(h,e)];return u&&u.index===e||!c?u:c(o,e)},T(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),T(V(e.windowSize)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),s._fillRateHelper=new w(s._getFrameMetrics),s._updateCellsToRenderBatcher=new S(s._updateCellsToRender,null!=(t=s.props.updateCellsBatchingPeriod)?t:50),s.props.viewabilityConfigCallbackPairs)s._viewabilityTuples=s.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new k(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}});else{var l=s.props,u=l.onViewableItemsChanged,f=l.viewabilityConfig;u&&s._viewabilityTuples.push({viewabilityHelper:new k(f),onViewableItemsChanged:u})}var v={first:s.props.initialScrollIndex||0,last:Math.min(s.props.getItemCount(s.props.data),(s.props.initialScrollIndex||0)+K(s.props.initialNumToRender))-1};if(s._isNestedWithSameOrientation()){var y=s.context.getNestedChildState(s._getListKey());y&&(v=y,s.state=y,s._frames=y.frames)}return s.state=v,s}return(0,s.default)(h,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,o=this.props.getItemCount(this.props.data)-1,s=this.__getFrameMetricsApprox(o),n=Math.max(0,s.offset+s.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(z(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToIndex",value:function(e){var t=this.props,o=t.data,s=t.horizontal,n=t.getItemCount,l=t.getItemLayout,c=t.onScrollToIndexFailed,h=e.animated,u=e.index,p=e.viewOffset,f=e.viewPosition;if(T(u>=0,"scrollToIndex out of range: requested index "+u+" but minimum is 0"),T(n(o)>=1,"scrollToIndex out of range: item length "+n(o)+" but minimum is 1"),T(uthis._highestMeasuredFrameIndex)return T(!!c,"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 c({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:u});var _=this.__getFrameMetricsApprox(u),v=Math.max(0,_.offset-(f||0)*(this._scrollMetrics.visibleLength-_.length))-(p||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(s?{x:v,animated:h}:{y:v,animated:h}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var t=e.item,o=this.props,s=o.data,n=o.getItem,l=(0,o.getItemCount)(s),c=0;c0){E=!1,O='';var R=this._getSpacerKey(!p),w=this.props.initialScrollIndex?-1:K(this.props.initialNumToRender)-1,k=this.state,T=k.first,F=k.last;this._pushCells(L,b,C,0,w,y);var P=Math.max(w+1,T);if(!v&&T>w+1){var V=!1;if(C.size>0)for(var j=l?1:0,N=P-1;N>w;N--)if(C.has(N+j)){var B=this.__getFrameMetricsApprox(w),A=this.__getFrameMetricsApprox(N),H=A.offset-B.offset-(this.props.initialScrollIndex?0:B.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,H)},"$sticky_lead")),this._pushCells(L,b,C,N,N,y);var W=this.__getFrameMetricsApprox(T).offset-(A.offset+A.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,W)},"$sticky_trail")),V=!0;break}if(!V){var U=this.__getFrameMetricsApprox(w),$=this.__getFrameMetricsApprox(T).offset-(U.offset+U.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,$)},"$lead_spacer"))}}if(this._pushCells(L,b,C,P,F,y),!this._hasWarned.keys&&E&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",O),this._hasWarned.keys=!0),!v&&Fp&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state,t=e.first,o=e.last,s=this._scrollMetrics,n=s.offset,l=s.visibleLength,c=s.velocity,h=this.props.getItemCount(this.props.data),u=!1,p=P(this.props.onEndReachedThreshold)*l/2;if(t>0){var f=n-this.__getFrameMetricsApprox(t).offset;u=u||f<0||c<-2&&f2&&_0&&(this._scrollAnimatedValueAttachment=p.default.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,o,t){var n=this.props.stickyHeaderIndices;if(n){var l=S.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,l)){var s=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,s);var c=n[n.indexOf(e)-1];if(null!=c){var u=this._stickyHeaderRefs.get(this._getKeyForIndex(c,l));u&&u.setNextHeaderY&&u.setNextHeaderY(s)}}}}},{key:"render",value:function(){var e=this,t=!0===this.props.horizontal?P:F,n=(0,o.default)(t,2),l=n[0],s=n[1],c=[!0===this.props.horizontal&&U.contentContainerHorizontal,this.props.contentContainerStyle],u=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},p=this.props.stickyHeaderIndices,f=this.props.children;if(null!=p&&p.length>0){var y=S.Children.toArray(this.props.children);f=y.map(function(o,t){var n=o?p.indexOf(t):-1;if(n>-1){var l=o.key,s=p[n+1],c=e.props.StickyHeaderComponent||_.default;return(0,B.jsx)(c,{nativeID:'StickyHeader-'+l,ref:function(o){return e._setStickyHeaderRef(l,o)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(s,y)),onLayout:function(o){return e._onStickyHeaderLayout(t,o,l)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:o},l)}return o})}f=(0,B.jsx)(K.default.Provider,{value:!0===this.props.horizontal?K.HORIZONTAL:K.VERTICAL,children:f});var v=Array.isArray(p)&&p.length>0,R=(0,B.jsx)(s,Object.assign({},u,{ref:this._setInnerViewRef,style:c,removeClippedSubviews:('android'!==h.default.OS||!v)&&this.props.removeClippedSubviews,collapsable:!1,children:f})),w=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,T=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,V=!0===this.props.horizontal?U.baseHorizontal:U.baseVertical,k=Object.assign({},this.props,{alwaysBounceHorizontal:w,alwaysBounceVertical:T,style:b.default.compose(V,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,scrollEventThrottle:v?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:h.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})}),M=this.props.decelerationRate;null!=M&&(k.decelerationRate=(0,E.default)(M));var I=this.props.refreshControl;if(I){if('ios'===h.default.OS)return(0,B.jsxs)(l,Object.assign({},k,{ref:this._setNativeRef,children:[I,R]}));if('android'===h.default.OS){var D=(0,O.default)((0,H.default)(k.style)),x=D.outer,A=D.inner;return S.cloneElement(I,{style:b.default.compose(V,x)},(0,B.jsx)(l,Object.assign({},k,{style:b.default.compose(V,A),ref:this._setNativeRef,children:R})))}}return(0,B.jsx)(l,Object.assign({},k,{ref:this._setNativeRef,children:R}))}}]),N})(S.Component);Y.Context=K.default;var U=b.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function Z(e,o){return(0,B.jsx)(Y,Object.assign({},e,{scrollViewRef:o}))}Z.displayName='ScrollView';var q=S.forwardRef(Z);q.Context=K.default,q.displayName='ScrollView',m.exports=q},252,[2,46,18,19,34,30,32,35,221,160,56,129,20,253,180,181,149,254,258,124,256,171,7,260,261,241,262,263,264,265,266,267,184]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),o=e(r(d[5])),u=e(r(d[6])),p=e(r(d[7])),h=e(r(d[8])),c=(e(r(d[9])),(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Y(t);if(n&&n.has(e))return n.get(e);var l={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=s?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(l,o,u):l[o]=e[o]}l.default=e,n&&n.set(e,l);return l})(r(d[10]))),f=e(r(d[11])),y=e(r(d[12])),v=e(r(d[13])),_=r(d[14]);function Y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Y=function(e){return e?n:t})(e)}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var R=u.default.createAnimatedComponent(y.default),T=(function(e){(0,l.default)(Y,e);var u,f,y=(u=Y,f=L(),function(){var e,t=(0,o.default)(u);if(f){var n=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function Y(){var e;(0,t.default)(this,Y);for(var n=arguments.length,l=new Array(n),s=0;s0){Y.push(T),L.push(0),Y.push(T+1),L.push(1);var H=(v||0)-f-o;H>T&&(Y.push(H,H+1),L.push(H-T,H-T))}}}else{Y.push(y),L.push(0);var x=(v||0)-f;x>=y?(Y.push(x,x+1),L.push(x-y,x-y)):(Y.push(y+1),L.push(1))}this.updateTranslateListener(this.props.scrollAnimatedValue.interpolate({inputRange:Y,outputRange:L}),n,this.props.hiddenOnScroll?new h.default(this.props.scrollAnimatedValue.interpolate({extrapolateLeft:'clamp',inputRange:[y,y+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-this.state.layoutHeight,0):null)}var I=c.Children.only(this.props.children),w=n&&null!=this.state.translateY?{style:{transform:[{translateY:this.state.translateY}]}}:null;return(0,_.jsx)(R,{collapsable:!1,nativeID:this.props.nativeID,onLayout:this._onLayout,ref:this._setComponentRef,style:[I.props.style,V.header,{transform:[{translateY:this._translateY}]}],passthroughAnimatedPropExplicitValues:w,children:c.cloneElement(I,{style:V.fill,onLayout:void 0})})}}]),Y})(c.Component),V=f.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});m.exports=T},253,[2,18,19,30,32,35,221,222,223,212,129,180,181,56,184]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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(){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})}return(0,u.default)(t,[{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'}})}}]),t})();m.exports=new y},254,[2,18,19,95,255,256,56,257]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=n(r(d[1])),u=n(r(d[2])),o=r(d[3]),l=u.default.isLayoutAnimationEnabled();function s(n,u,s){var c,p;if(!t.default.isTesting&&l){var y,f,b=!1,I=function(){b||(b=!0,clearTimeout(O),null==u||u())},O=setTimeout(I,(null!=(c=n.duration)?c:0)+17),E=null==(p=g)?void 0:p.nativeFabricUIManager;if(null!=E&&E.configureNextLayoutAnimation)null==(y=g)||null==(f=y.nativeFabricUIManager)||f.configureNextLayoutAnimation(n,I,null!=s?s:function(){});else null!=o&&o.configureNextLayoutAnimation&&o.configureNextLayoutAnimation(n,null!=I?I:function(){},null!=s?s:function(){})}}function c(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var p={easeInEaseOut:c(300,'easeInEaseOut','opacity'),linear:c(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},y={configureNext:s,create:c,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:p,easeInEaseOut:s.bind(null,p.easeInEaseOut),linear:s.bind(null,p.linear),spring:s.bind(null,p.spring),setEnabled:function(n){l=l}};m.exports=y},255,[2,56,202,149]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){t.blurTextInput(t.currentlyFocusedInput())}},256,[124]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('KeyboardObserver');e.default=n},257,[44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[2]),l={setGlobalOptions:function(l){if(void 0!==l.debug&&o(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var n={debug:!!l.debug,reportStackTraces:!!l.reportStackTraces};t.default.setGlobalOptions(n)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=l},258,[2,259,7]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('FrameRateLogger');e.default=n},259,[44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}},260,[2,56]); +__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':c[n]=s[n];break;default:t[n]=s[n]}return{outer:c,inner:t}}},261,[]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.VERTICAL=e.HORIZONTAL=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=n[c]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).createContext(null);e.default=n;var o=Object.freeze({horizontal:!0});e.HORIZONTAL=o;var f=Object.freeze({horizontal:!1});e.VERTICAL=f},262,[129]); +__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]));!(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=n(o);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u)})(r(d[2]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(n=function(t){return t?f:o})(t)}var f=(0,o.default)({supportedCommands:['flashScrollIndicators','scrollTo','scrollToEnd','zoomToRect']});e.default=f},263,[2,126,129]); +__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 t=(0,o(r(d[1])).default)('AndroidHorizontalScrollContentView');e.default=t},264,[2,189]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var l=t(n);if(l&&l.has(o))return l.get(o);var s={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if("default"!==u&&Object.prototype.hasOwnProperty.call(o,u)){var c=p?Object.getOwnPropertyDescriptor(o,u):null;c&&(c.get||c.set)?Object.defineProperty(s,u,c):s[u]=o[u]}s.default=o,l&&l.set(o,s);return s})(r(d[0]));function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(t=function(o){return o?l:n})(o)}var n={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,endFillColor:{process:r(d[1])},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,scrollEnabled:!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])},borderColor:{process:r(d[1])},borderBottomColor:{process:r(d[1])},borderTopLeftRadius:!0,borderTopColor:{process:r(d[1])},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:r(d[1])},pointerEvents:!0}};e.__INTERNAL_VIEW_CONFIG=n;var l=o.get('AndroidHorizontalScrollView',function(){return n});e.default=l},265,[133,140]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}var o={uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}};e.__INTERNAL_VIEW_CONFIG=o;var u=t.get('RCTScrollContentView',function(){return o});e.default=u},266,[133]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(o,t){if(!t&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var n=l(t);if(n&&n.has(o))return n.get(o);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if("default"!==u&&Object.prototype.hasOwnProperty.call(o,u)){var p=c?Object.getOwnPropertyDescriptor(o,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=o[u]}s.default=o,n&&n.set(o,s);return s})(r(d[1])),n=r(d[2]);function l(o){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(o){return o?n:t})(o)}var s='android'===o(r(d[3])).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[4])},decelerationRate:!0,disableIntervalMomentum:!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,borderStyle:!0,borderRightColor:{process:r(d[5])},borderColor:{process:r(d[5])},borderBottomColor:{process:r(d[5])},persistentScrollbar:!0,endFillColor:{process:r(d[5])},fadingEdgeLength:!0,overScrollMode:!0,borderTopLeftRadius:!0,scrollPerfTag:!0,borderTopColor:{process:r(d[5])},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:r(d[5])},pointerEvents:!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[6])},contentOffset:{diff:r(d[4])},contentInsetAdjustmentBehavior:!0,decelerationRate:!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[6])},scrollToOverflowEnabled:!0,scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,zoomScale:!0},(0,n.ConditionallyIgnoredEventHandlers)({onScrollBeginDrag:!0,onMomentumScrollEnd:!0,onScrollEndDrag:!0,onMomentumScrollBegin:!0,onScrollToTop:!0,onScroll:!0}))};e.__INTERNAL_VIEW_CONFIG=s;var c=t.get('RCTScrollView',function(){return s});e.default=c},267,[2,133,135,56,166,140,148]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]),s=(function(){function s(n,l){t(this,s),this._delay=l,this._callback=n}return n(s,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=l.runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),s})();m.exports=s},268,[18,19,217]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=t(function t(){n(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}),l=[],_=10,o=null,h=(function(){function h(t){n(this,h),this._anyBlankStartTime=null,this._enabled=!1,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(o||0)>Math.random(),this._resetData()}return t(h,[{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_count<_)this._resetData();else{var n=g.performance.now()-t,s=Object.assign({},this._info,{total_time_spent:n});l.forEach(function(t){return t(s)}),this._resetData()}}}},{key:"computeBlankness",value:function(t,n,s){if(!this._enabled||0===t.getItemCount(t.data)||null==this._samplesStartTime)return 0;var l=s.dOffset,_=s.offset,o=s.velocity,h=s.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(h),this._info.pixels_scrolled+=Math.round(Math.abs(l));var u=Math.round(1e3*Math.abs(o)),f=g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=f-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=f-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,k=n.first,y=this._getFrameMetrics(k);k<=n.last&&(!y||!y.inLayout);)y=this._getFrameMetrics(k),k++;y&&k>0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,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 s,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===o&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:function(){l=l.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){o=t}},{key:"setMinSampleCount",value:function(t){_=t}}]),h})();m.exports=h},269,[19,18]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=(function(){function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};n(this,l),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return s(l,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,l,h){var u=this._config,v=u.itemVisiblePercentThreshold,f=u.viewAreaCoveragePercentThreshold,_=null!=f,w=_?f:v;o(null!=w&&null!=v!=(null!=f),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===t)return b;var I=-1,y=h||{first:0,last:t-1},p=y.first,T=y.last;if(T>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:t})),[];for(var k=p;k<=T;k++){var V=l(k);if(V){var M=V.offset-n,C=M+V.length;if(M0)I=k,c(_,w,M,C,s,V.length)&&b.push(k);else if(I>=0)break}}return b}},{key:"onUpdate",value:function(t,n,s,o,l,c,h){var u=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&o(0)){var v=[];if(t&&(v=this.computeViewableItems(t,n,s,o,h)),this._viewableIndices.length!==v.length||!this._viewableIndices.every(function(t,n){return t===v[n]}))if(this._viewableIndices=v,this._config.minimumViewTime){var f=setTimeout(function(){u._timers.delete(f),u._onUpdateSync(v,c,l)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(v,c,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,s,o){var l=this;n=n.filter(function(t){return l._viewableIndices.includes(t)});var c=this._viewableItems,h=new Map(n.map(function(t){var n=o(t,!0);return[n.key,n]})),u=[];for(var v of h){var f=t(v,2),_=f[0],w=f[1];c.has(_)||u.push(w)}for(var b of c){var I=t(b,2),y=I[0],p=I[1];h.has(y)||u.push(Object.assign({},p,{isViewable:!1}))}u.length>0&&(this._viewableItems=h,s({viewableItems:Array.from(h.values()),changed:u,viewabilityConfig:this._config}))}}]),l})();function c(t,n,s,o,l,c){if(u(s,o,l))return!0;var v=h(s,o,l);return 100*(t?v/l:v/c)>=n}function h(t,n,s){var o=Math.min(n,s)-Math.max(t,0);return Math.max(0,o)}function u(t,n,s){return t>=0&&n<=s&&n>t}m.exports=l},270,[46,18,19,7]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},271,[129,272,236]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=w(n);if(o&&o.has(t))return o.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var l=c?Object.getOwnPropertyDescriptor(t,f):null;l&&(l.get||l.set)?Object.defineProperty(u,f,l):u[f]=t[f]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),c=t(r(d[4])),f=t(r(d[5])),l=t(r(d[6])),s=t(r(d[7])),h=t(r(d[8])),p=t(r(d[9])),y=t(r(d[10])),v=r(d[11]);function w(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(w=function(t){return t?o:n})(t)}function b(){return(b=(0,n.default)(function*(t){return yield p.default.queryCache(t)})).apply(this,arguments)}var I=u.forwardRef(function(t,n){var o,u,c=(0,h.default)(t.source)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(c))u=(0,s.default)([M.base,t.style])||{},o=c;else{var f=c.width,p=c.height,w=c.uri;u=(0,s.default)([{width:f,height:p},M.base,t.style])||{},o=[c],''===w&&console.warn('source.uri should not be an empty string')}var b=t.resizeMode||u.resizeMode||'cover',I=u.tintColor;if(null!=t.src&&console.warn('The component requires a `source` property rather than `src`.'),null!=t.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.');return(0,v.jsx)(l.default.Consumer,{children:function(c){return(0,v.jsx)(y.default,Object.assign({},t,{ref:n,style:u,resizeMode:b,tintColor:I,source:o,internal_analyticTag:c}))}})});null!=f.default.unstable_createImageComponent&&(I=f.default.unstable_createImageComponent(I)),I.displayName='Image',I.getSize=function(t,n,u){p.default.getSize(t).then(function(t){var u=(0,o.default)(t,2),c=u[0],f=u[1];return n(c,f)}).catch(u||function(){console.warn('Failed to get size for image '+t)})},I.getSizeWithHeaders=function(t,n,o,u){return p.default.getSizeWithHeaders(t,n).then(function(t){o(t.width,t.height)}).catch(u||function(){console.warn('Failed to get size for image: '+t)})},I.prefetch=function(t){return p.default.prefetchImage(t)},I.prefetchWithMetadata=function(t,n,o){return p.default.prefetchImageWithMetadata?p.default.prefetchImageWithMetadata(t,n,o||0):p.default.prefetchImage(t)},I.queryCache=function(t){return b.apply(this,arguments)},I.resolveAssetSource=h.default;var M=c.default.create({base:{overflow:'hidden'}});m.exports=I},272,[2,4,46,129,180,273,276,171,156,277,274,184]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f)})(r(d[1])),t(r(d[2])),t(r(d[3]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}e.default={unstable_createImageComponent:null}},273,[2,129,274,275]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(o,t){if(!t&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var n=s(t);if(n&&n.has(o))return n.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in o)if("default"!==p&&Object.prototype.hasOwnProperty.call(o,p)){var c=l?Object.getOwnPropertyDescriptor(o,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=o[p]}u.default=o,n&&n.set(o,u);return u})(r(d[1])),n=r(d[2]);function s(o){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(o){return o?n:t})(o)}var u='android'===o(r(d[3])).default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,internal_analyticTag:!0,resizeMode:!0,tintColor:{process:r(d[4])},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,resizeMethod:!0,src:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,defaultSrc:!0,overlayColor:{process:r(d[4])},borderColor:{process:r(d[4])},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])},defaultSource:{process:r(d[6])},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:r(d[4])}},(0,n.ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))};e.__INTERNAL_VIEW_CONFIG=u;var l=t.get('RCTImageView',function(){return u});e.default=l},274,[2,133,135,56,140,148,156]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=n(u);if(o&&o.has(t))return o.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=l?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(f,c,s):f[c]=t[c]}f.default=t,o&&o.set(t,f);return f})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:u})(t)}var u={uiViewClassName:'RCTTextInlineImage',bubblingEventTypes:{},directEventTypes:{},validAttributes:{resizeMode:!0,src:!0,tintColor:{process:r(d[1])},headers:!0}};e.__INTERNAL_VIEW_CONFIG=u;var o=t.get('RCTTextInlineImage',function(){return u});e.default=o},275,[133,140]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(null);e.default=n},276,[129]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ImageLoader');e.default=n},277,[44]); +__d(function(g,r,i,a,m,e,d){var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var l=c?Object.getOwnPropertyDescriptor(t,p):null;l&&(l.get||l.set)?Object.defineProperty(u,p,l):u[p]=t[p]}u.default=t,f&&f.set(t,u);return u})(r(d[0])),n=r(d[1]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var f=r(d[2]),u=r(d[3]),c=t.forwardRef(function(t,o){return(0,n.jsx)(f,Object.assign({scrollEventThrottle:1e-4},t,{ref:o}))});m.exports=u(c)},278,[129,184,252,236]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(n);if(o&&o.has(t))return o.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,o&&o.set(t,f);return f})(r(d[1])),o=t(r(d[2])),f=r(d[3]);function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:n})(t)}var c=r(d[4]),l=n.forwardRef(function(t,n){return(0,f.jsx)(o.default,Object.assign({scrollEventThrottle:1e-4},t,{ref:n}))});m.exports=c(l)},279,[2,129,280,184,236]); +__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])),n=e(r(d[2])),o=e(r(d[3])),f=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),s=e(r(d[7])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=f?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[8])),p=e(r(d[9])),v=r(d[10]),y=["stickySectionHeadersEnabled"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _=(function(e){(0,f.default)(L,e);var l,h,_=(l=L,h=R(),function(){var e,t=(0,c.default)(l);if(h){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function L(){var e;(0,n.default)(this,L);for(var t=arguments.length,o=new Array(t),f=0;f0&&this.props.stickySectionHeadersEnabled)i+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex).length;var o=Object.assign({},e,{viewOffset:i,index:t});this._listRef.scrollToIndex(o)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,i=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,I)),o=this.props.ListHeaderComponent?1:0,l=this.props.stickySectionHeadersEnabled?[]:void 0,s=0;for(var u of this.props.sections)null!=l&&l.push(s+o),s+=2,s+=this.props.getItemCount(u.data);var c=this._renderItem(s);return(0,S.jsx)(v.VirtualizedList,Object.assign({},i,{keyExtractor:this._keyExtractor,stickyHeaderIndices:l,renderItem:c,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return s},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var i=n-1,o=0;o=o(f)+1)t-=o(f)+1;else return-1===t?{section:c,key:h+':header',index:null,header:!0,trailingSection:s[u+1]}:t===o(f)?{section:c,key:h+':footer',index:null,header:!1,trailingSection:s[u+1]}:{section:c,key:h+':'+(c.keyExtractor||l||p.keyExtractor)(i(f,t),t),index:t,leadingItem:i(f,t-1),leadingSection:s[u-1],trailingItem:i(f,t+1),trailingSection:s[u+1]}}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var i=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,l=e===n-1,s=t.index===this.props.getItemCount(t.section.data)-1;return o&&s?o:!i||s||l?null:i}}]),x})(h.PureComponent);function b(e){var n=e.LeadingSeparatorComponent,i=e.SeparatorComponent,o=e.cellKey,l=e.prevCellKey,s=e.setSelfHighlightCallback,u=e.updateHighlightFor,c=e.setSelfUpdatePropsCallback,p=e.updatePropsFor,f=e.item,I=e.index,y=e.section,_=e.inverted,x=h.useState(!1),b=(0,t.default)(x,2),k=b[0],C=b[1],H=h.useState(!1),w=(0,t.default)(H,2),E=w[0],P=w[1],j=h.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),O=(0,t.default)(j,2),F=O[0],R=O[1],M=h.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),V=(0,t.default)(M,2),L=V[0],U=V[1];h.useEffect(function(){return s(o,P),c(o,U),function(){c(o,null),s(o,null)}},[o,s,U,c]);var B={highlight:function(){C(!0),P(!0),null!=l&&u(l,!0)},unhighlight:function(){C(!1),P(!1),null!=l&&u(l,!1)},updateProps:function(e,t){'leading'===e?null!=n?R(Object.assign({},F,t)):null!=l&&p(l,Object.assign({},F,t)):'trailing'===e&&null!=i&&U(Object.assign({},L,t))}},K=e.renderItem({item:f,index:I,section:y,separators:B}),T=null!=n&&(0,S.jsx)(n,Object.assign({highlighted:k},F)),W=null!=i&&(0,S.jsx)(i,Object.assign({highlighted:E},L));return T||W?(0,S.jsxs)(v.View,{children:[!1===_?T:W,K,!1===_?W:T]}):K}m.exports=x},281,[2,46,93,18,19,34,30,32,35,245,7,129,6,184]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},282,[129,193,236]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},283,[129,181,236]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),c=e(r(d[5])),l=k(r(d[6])),f=k(r(d[7])),s=e(r(d[8])),p=e(r(d[9])),h=e(r(d[10])),v=r(d[11]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=u?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}return o.default=e,n&&n.set(e,o),o}function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var O=(function(e){(0,o.default)(k,e);var l,s,y=(l=k,s=I(),function(){var e,t=(0,c.default)(l);if(s){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function k(){var e;(0,t.default)(this,k);for(var n=arguments.length,o=new Array(n),u=0;u is only supported on iOS.'),null)}}]),j})(l.Component),b=s.default.create({container:{position:'absolute'}});m.exports=O},288,[2,18,19,30,32,35,129,56,180,289,184]); +__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=(0,t(r(d[1])).default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']});e.default=n},289,[2,189]); +__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])),s=e(r(d[5])),f=e(r(d[6])),l=e(r(d[7])),c=e(r(d[8])),y=e(r(d[9])),h=e(r(d[10])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=j(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var f=u?Object.getOwnPropertyDescriptor(e,s):null;f&&(f.get||f.set)?Object.defineProperty(o,s,f):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),b=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),O=r(d[15]),k=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function j(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(j=function(e){return e?n:t})(e)}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var w=(function(e){(0,s.default)(C,e);var j,w,R=(j=C,w=L(),function(){var e,t=(0,l.default)(j);if(w){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,f.default)(this,e)});function C(e){var t,u;return(0,o.default)(this,C),(t=R.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecessary()},t._onLayout=(u=(0,n.default)(function*(e){var n=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),n&&(yield t._updateBottomIfNecessary()),t.props.onLayout&&t.props.onLayout(e)}),function(e){return u.apply(this,arguments)}),t._updateBottomIfNecessary=(0,n.default)(function*(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,n=e.duration,o=e.easing,u=e.endCoordinates,s=yield t._relativeKeyboardHeight(u);t.state.bottom!==s&&(n&&o&&y.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:y.default.Types[o]||'keyboard'}}),t.setState({bottom:s}))}else t.setState({bottom:0})}),t.state={bottom:0},t.viewRef=p.createRef(),t}return(0,u.default)(C,[{key:"_relativeKeyboardHeight",value:(function(){var e=(0,n.default)(function*(e){var t,n=this._frame;if(!n||!e)return 0;if('ios'===h.default.OS&&0===e.screenY&&(yield _.default.prefersCrossFadeTransitions()))return 0;var o=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return Math.max(n.y+n.height-o,0)});return function(t){return e.apply(this,arguments)}})()},{key:"componentDidMount",value:function(){'ios'===h.default.OS?this._subscriptions=[c.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[c.default.addListener('keyboardDidHide',this._onKeyboardChange),c.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(e){e.remove()})}},{key:"render",value:function(){var e=this.props,n=e.behavior,o=e.children,u=e.contentContainerStyle,s=e.enabled,f=void 0===s||s,l=(e.keyboardVerticalOffset,e.style),c=(e.onLayout,(0,t.default)(e,k)),y=!0===f?this.state.bottom:0;switch(n){case'height':var h;return null!=this._frame&&this.state.bottom>0&&(h={height:this._initialFrameHeight-y,flex:0}),(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:b.default.compose(l,h),onLayout:this._onLayout},c,{children:o}));case'position':return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:l,onLayout:this._onLayout},c,{children:(0,O.jsx)(v.default,{style:b.default.compose(u,{bottom:y}),children:o})}));case'padding':return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:b.default.compose(l,{paddingBottom:y}),onLayout:this._onLayout},c,{children:o}));default:return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:l},c,{children:o}))}}}]),C})(p.Component);_e.default=w},290,[2,93,4,18,19,30,32,35,254,255,56,129,180,181,9,184]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),o=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=k(t);if(n&&n.has(e))return n.get(e);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=o?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=e[u]}l.default=e,n&&n.set(e,l);return l})(r(d[7])),s=e(r(d[8])),p=e(r(d[9])),h=e(r(d[10])),v=r(d[11]),y=["maskElement","children"];function k(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(k=function(e){return e?n:t})(e)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var w=(function(e){(0,o.default)(b,e);var k,w,O=(k=b,w=j(),function(){var e,t=(0,c.default)(k);if(w){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function b(){var e;(0,n.default)(this,b);for(var t=arguments.length,l=new Array(t),o=0;o=21&&(null!=f||null!=p||null!=v)){var n=(0,l.processColor)(f);(0,t.default)(null==n||'number'==typeof n,'Unexpected color given for Ripple color');var u={type:'RippleAndroid',color:n,borderless:!0===p,rippleRadius:v};return{viewProps:!0===P?{nativeForegroundAndroid:u}:{nativeBackgroundAndroid:u},onPressIn:function(n){var t,l,u=s.current;null!=u&&(o.Commands.hotspotUpdate(u,null!=(t=n.nativeEvent.locationX)?t:0,null!=(l=n.nativeEvent.locationY)?l:0),o.Commands.setPressed(u,!0))},onPressMove:function(n){var t,l,u=s.current;null!=u&&o.Commands.hotspotUpdate(u,null!=(t=n.nativeEvent.locationX)?t:0,null!=(l=n.nativeEvent.locationY)?l:0)},onPressOut:function(n){var t=s.current;null!=t&&o.Commands.setPressed(t,!1)}}}return null},[p,f,P,v,s])};var t=n(r(d[1])),o=r(d[2]),l=r(d[3]),u=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=s(t);if(o&&o.has(n))return o.get(n);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=u?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=n[c]}l.default=n,o&&o.set(n,l);return l})(r(d[4]));function s(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(s=function(n){return n?o:t})(n)}},302,[2,7,182,6,129]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=c(n);if(f&&f.has(t))return f.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var s=u?Object.getOwnPropertyDescriptor(t,p):null;s&&(s.get||s.set)?Object.defineProperty(o,p,s):o[p]=t[p]}o.default=t,f&&f.set(t,o);return o})(r(d[1])),f=t(r(d[2])),o=t(r(d[3])),u=r(d[4]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(c=function(t){return t?f:n})(t)}var p=f.default.create({progressView:{height:2}}),s=n.forwardRef(function(t,n){return(0,u.jsx)(o.default,Object.assign({},t,{style:[p.progressView,t.style],ref:n}))});m.exports=s},303,[2,129,180,304,184]); +__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)('RCTProgressView');e.default=u},304,[2,189]); +__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(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=u(n);if(f&&f.has(t))return f.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,f&&f.set(t,o)})(r(d[2])),t(r(d[3])));function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(u=function(t){return t?f:n})(t)}var o='android'===n.default.OS?f.default:r(d[4]).default;e.default=o},305,[2,56,129,181,306]); +__d(function(g,r,i,a,m,e,d){var f=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,f(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=t},306,[2,189]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=v(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var f=o?Object.getOwnPropertyDescriptor(t,s):null;f&&(f.get||f.set)?Object.defineProperty(u,s,f):u[s]=t[s]}u.default=t,l&&l.set(t,u);return u})(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=r(d[6]),c=["value","minimumValue","maximumValue","step","onValueChange","onSlidingComplete"];function v(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(v=function(t){return t?l:n})(t)}var p,b=l.forwardRef(function(t,l){var v,b=s.default.compose(p.slider,t.style),y=t.value,O=void 0===y?.5:y,S=t.minimumValue,j=void 0===S?0:S,V=t.maximumValue,h=void 0===V?1:V,w=t.step,C=void 0===w?0:w,x=t.onValueChange,P=t.onSlidingComplete,E=(0,n.default)(t,c),M=x?function(t){var n=!0;'android'===u.default.OS&&(n=null!=t.nativeEvent.fromUser&&t.nativeEvent.fromUser),n&&x(t.nativeEvent.value)}:null,R=P?function(t){P(t.nativeEvent.value)}:null,_=!0===t.disabled||!0===(null==(v=t.accessibilityState)?void 0:v.disabled),k=_?Object.assign({},t.accessibilityState,{disabled:!0}):t.accessibilityState;return(0,f.jsx)(o.default,Object.assign({},E,{accessibilityState:k,enabled:!_,disabled:_,maximumValue:h,minimumValue:j,onResponderTerminationRequest:function(){return!1},onSlidingComplete:R,onStartShouldSetResponder:function(){return!0},onValueChange:M,ref:l,step:C,style:b,value:O}))});p='ios'===u.default.OS?s.default.create({slider:{height:40}}):s.default.create({slider:{}}),m.exports=b},307,[2,93,129,56,308,180,184]); +__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=(0,l(r(d[1])).default)('Slider',{interfaceOnly:!0,paperComponentName:'RCTSlider'});e.default=t},308,[2,189]); +__d(function(g,r,i,a,m,_e,d){var t,e=r(d[0]),n=e(r(d[1])),l=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),c=e(r(d[5])),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=o?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=t[u]}l.default=t,n&&n.set(t,l);return l})(r(d[6])),f=e(r(d[7])),p=e(r(d[8])),y=e(r(d[9])),v=e(r(d[10])),k=e(r(d[11]));function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _(t){var e,n,l=null!=(e=t.animated)&&e,o=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:o}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var h=(function(t){(0,o.default)(h,t);var e,s,S=(e=h,s=b(),function(){var t,n=(0,c.default)(e);if(s){var l=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function h(){var t;(0,n.default)(this,h);for(var e=arguments.length,l=new Array(e),o=0;o1&&(Oe=(0,b.jsx)(s.default,{children:Oe})),ce=(0,b.jsx)(T,Object.assign({ref:te},n,ge,{accessible:se,autoCapitalize:me,blurOnSubmit:ie,caretHidden:ve,children:Oe,disableFullscreenUI:n.disableFullscreenUI,focusable:de,mostRecentEventCount:V,onBlur:oe,onChange:ue,onFocus:re,onScroll:ae,onSelectionChange:le,placeholder:xe,selection:z,style:he,text:Y,textBreakStrategy:n.textBreakStrategy}))}return(0,b.jsx)(f.default.Provider,{value:!0,children:ce})}var A=l.forwardRef(function(n,u){var l=n.allowFontScaling,o=void 0===l||l,c=n.rejectResponderTermination,s=void 0===c||c,f=n.underlineColorAndroid,v=void 0===f?'transparent':f,p=(0,t.default)(n,x);return(0,b.jsx)(k,Object.assign({allowFontScaling:o,rejectResponderTermination:s,underlineColorAndroid:v},p,{forwardedRef:u}))});A.State={currentlyFocusedInput:v.default.currentlyFocusedInput,currentlyFocusedField:v.default.currentlyFocusedField,focusTextInput:v.default.focusTextInput,blurTextInput:v.default.blurTextInput};var M=c.default.create({multilineInput:{paddingTop:5}});m.exports=A},316,[2,93,46,129,56,180,193,183,124,7,317,241,196,184,125,168,318]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})},317,[]); +__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=e.Commands=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=l?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=t[s]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var l=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=l;var s=Object.assign({uiViewClassName:'RCTMultilineTextInputView'},u.default,{validAttributes:Object.assign({},u.default.validAttributes,{dataDetectorTypes:!0})});e.__INTERNAL_VIEW_CONFIG=s;var c=o.get('RCTMultilineTextInputView',function(){return s});e.default=c},318,[2,126,169,133]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0]),e=t(r(d[1])),o=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(e);if(o&&o.has(t))return o.get(t);var s={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var l=E?Object.getOwnPropertyDescriptor(t,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=t[n]}s.default=t,o&&o.set(t,s)})(r(d[2])),t(r(d[3]))),s=t(r(d[4])),E=t(r(d[5])),n=t(r(d[6])),l=t(r(d[7]));r(d[8]),r(d[9]);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:e})(t)}var h=function(t){var e=t.touches,o=t.changedTouches,s=e&&e.length>0,E=o&&o.length>0;return!s&&E?o[0]:s?e[0]:t},R='NOT_RESPONDER',_='RESPONDER_INACTIVE_PRESS_IN',c='RESPONDER_INACTIVE_PRESS_OUT',S='RESPONDER_ACTIVE_PRESS_IN',T='RESPONDER_ACTIVE_PRESS_OUT',P='RESPONDER_ACTIVE_LONG_PRESS_IN',D='RESPONDER_ACTIVE_LONG_PRESS_OUT',N='ERROR',O={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},p=Object.assign({},O,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),b=Object.assign({},O,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),A=Object.assign({},O,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),f='DELAY',I='RESPONDER_GRANT',L='RESPONDER_RELEASE',v='RESPONDER_TERMINATED',y='ENTER_PRESS_RECT',C='LEAVE_PRESS_RECT',G='LONG_PRESS_DETECTED',V={NOT_RESPONDER:{DELAY:N,RESPONDER_GRANT:_,RESPONDER_RELEASE:N,RESPONDER_TERMINATED:N,ENTER_PRESS_RECT:N,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_IN:{DELAY:S,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:N},error:{DELAY:R,RESPONDER_GRANT:_,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:R}},H={componentDidMount:function(){s.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=R,this.state.touchable.responderID=e,this._receiveSignal(I,t);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),o):this._handleDelay(t);var s=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;s=isNaN(s)?370:s,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),s+o)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(L,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(v,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,s=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},E=s.left,n=s.top,l=s.right,u=s.bottom,R=this.touchableGetHitSlop?this.touchableGetHitSlop():null;R&&(E+=R.left||0,n+=R.top||0,l+=R.right||0,u+=R.bottom||0);var c=h(t.nativeEvent),S=c&&c.pageX,T=c&&c.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(S,T,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(S>e.left-E&&T>e.top-n&&S>`");s!==E&&(this._performSideEffectsForTransition(s,E,t,e),this.state.touchable.touchState=E)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===S||t===P},_savePressInLocation:function(t){var e=h(t.nativeEvent),o=e&&e.pageX,s=e&&e.pageY,E=e&&e.locationX,n=e&&e.locationY;this.pressInLocation={pageX:o,pageY:s,locationX:E,locationY:n}},_getDistanceBetweenPoints:function(t,e,o,s){var E=t-o,n=e-s;return Math.sqrt(E*E+n*n)},_performSideEffectsForTransition:function(t,e,o,E){var n=this._isHighlight(t),u=this._isHighlight(e);(o===v||o===L)&&this._cancelLongPressDelayTimeout();var h=t===R&&e===_,c=!p[t]&&p[e];if((h||c)&&this._remeasureMetricsOnActivation(),b[t]&&o===G&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),u&&!n?this._startHighlight(E):!u&&n&&this._endHighlight(E),b[t]&&o===L){var S=!!this.props.onLongPress,T=A[t]&&(!S||!this.touchableLongPressCancelsPress());(!A[t]||T)&&this.touchableHandlePress&&(u||n||(this._startHighlight(E),this._endHighlight(E)),'android'!==s.default.OS||this.props.touchSoundDisabled||l.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:{}},M=(H.touchableHandleFocus,H.touchableHandleBlur,(0,e.default)(H,["touchableHandleFocus","touchableHandleBlur"]));H.withoutDefaultFocusAndBlur=M;var w={Mixin:H,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=w},319,[2,93,129,320,56,322,149,199,194,184]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n},320,[2,321]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},o=function(n){(0,t.default)(n instanceof this,'Trying to release an instance into a pool of a different type.'),n.destructor(),this.instancePool.lengthi&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.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};m.exports=n},361,[]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]),n=o(r(d[1])),s=o(r(d[2])),E=o(r(d[3])),A=(o(r(d[4])),o(r(d[5])),o(r(d[6])),r(d[7]),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',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_NOTIFICATION:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),O=new((function(){function o(){(0,s.default)(this,o),this.PERMISSIONS=_,this.RESULTS=A}return(0,E.default)(o,[{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:(function(){var o=(0,n.default)(function*(o,n){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)});return function(n,s){return o.apply(this,arguments)}})()},{key:"request",value:(function(){var o=(0,n.default)(function*(o,n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(this.RESULTS.DENIED)});return function(n,s){return o.apply(this,arguments)}})()},{key:"requestMultiple",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]),o})());m.exports=O},362,[2,4,18,19,107,363,7,56]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PermissionsAndroid');e.default=n},363,[44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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'!==f.default.OS?null:u.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,c.default)(u.default,'PushNotificationManager is not available.'),u.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,c.default)(u.default,'PushNotificationManager is not available.'),u.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,c.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,o){(0,c.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=v.get(t);n&&(n.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,c.default)(u.default,'PushNotificationManager is not available.'),u.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,c.default)('function'==typeof t,'Must provide a valid callback'),(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getInitialNotification().then(function(o){return o&&new t(o)})}},{key:"getAuthorizationStatus",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getAuthorizationStatus(t)}}]),t})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=h},364,[2,18,19,95,365,7,56]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PushNotificationManager');e.default=n},365,[44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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 u('object'==typeof t&&null!==t,'Content to share must be a valid object'),u('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),u('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise(function(n,l){var f=c(o.tintColor);u(null==f||'number'==typeof f,'Unexpected color given for options.tintColor'),u(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 f?f:void 0,excludedActivityTypes:o.excludedActivityTypes},function(t){return l(t)},function(t,o){n(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})})})}}]),t})();l.sharedAction='sharedAction',l.dismissedAction='dismissedAction',m.exports=l},368,[2,18,19,326,369,56,7,140]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ShareModule');e.default=n},369,[44]); +__d(function(g,r,i,a,m,e,d){'use strict';var o={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,p){console.warn('ToastAndroid is not supported on this platform.')}};m.exports=o},370,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.useSyncExternalStore)(function(t){var n=u.default.addChangeListener(t);return function(){return n.remove()}},function(){return u.default.getColorScheme()})};var n=r(d[1]),u=t(r(d[2]))},371,[2,372,327]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},372,[373]); +__d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r(function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})},[t,c,n]),u(function(){return a(f)&&S({inst:f}),t(function(){a(f)&&S({inst:f})})},[t]),s(c),c}},373,[129]); +__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])},374,[2,46,160,129]); +__d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({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",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},375,[52]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(r(d[2]),!1),o=0,u=400;function f(f){var v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||(n=!0,0===f[0]&&(t.default.vibrate(u),f=f.slice(1)),0!==f.length?setTimeout(function(){return l(++o,f,v,1)},f[0]):n=!1)}function l(f,v,c,b){if(n&&f===o){if(t.default.vibrate(u),b>=v.length){if(!c)return void(n=!1);b=0}setTimeout(function(){return l(f,v,c,b+1)},v[b])}}var v={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n)if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');f(o,l)}},cancel:function(){n=!1}};m.exports=v},376,[2,377,56]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Vibration');e.default=n},377,[44]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),u=r(d[3]),c=r(d[4]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var f,l=r(d[5]);r(d[6]);f=(function(f){e(p,f);var l,s,y=(l=p,s=o(),function(){var t,n=c(l);if(s){var e=c(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return u(this,t)});function p(){return t(this,p),y.apply(this,arguments)}return n(p,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),p})(l.Component),m.exports=f},378,[18,19,30,32,35,129,359]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;var t=r(d[0]);e.DynamicColorIOS=function(o){return(0,t.DynamicColorIOSPrivate)({light:o.light,dark:o.dark,highContrastLight:o.highContrastLight,highContrastDark:o.highContrastDark})}},379,[143]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PrimerError=void 0;var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5]));function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var l=(function(t){(0,o.default)(p,t);var l,s,v=(l=p,s=f(),function(){var t,e=(0,c.default)(l);if(s){var n=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function p(t,e,o){var u;return(0,n.default)(this,p),(u=v.call(this,e)).errorId=t,u.description=e,u.recoverySuggestion=o,u}return(0,e.default)(p)})((0,t(r(d[6])).default)(Error));_e.PrimerError=l},380,[2,19,18,30,32,35,36]); +__d(function(g,r,i,a,m,e,d){},381,[]); +__d(function(g,r,i,a,m,e,d){var E;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerInputElementType=void 0,e.PrimerInputElementType=E,(function(E){E.CARD_NUMBER="CARD_NUMBER",E.EXPIRY_DATE="EXPIRY_DATE",E.CVV="CVV",E.CARDHOLDER_NAME="CARDHOLDER_NAME",E.OTP="OTP",E.POSTAL_CODE="POSTAL_CODE",E.PHONE_NUMBER="PHONE_NUMBER",E.RETAILER="RETAILER",E.UNKNOWN="UNKNOWN"})(E||(e.PrimerInputElementType=E={}))},382,[]); +__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerSessionIntent=void 0,e.PrimerSessionIntent=n,(function(n){n.CHECKOUT="CHECKOUT",n.VAULT="VAULT"})(n||(e.PrimerSessionIntent=n={}))},383,[]); +__d(function(g,r,i,a,m,e,d){},384,[]); +__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerTokenType=void 0,e.PrimerTokenType=n,(function(n){n.SINGLE_USE="SINGLE_USE",n.MULTI_USE="MULTI_USE"})(n||(e.PrimerTokenType=n={}))},385,[]); +__d(function(g,r,i,a,m,e,d){},386,[]); +__d(function(g,r,i,a,m,e,d){},387,[]); +__d(function(g,r,i,a,m,e,d){},388,[]); +__d(function(g,r,i,a,m,e,d){},389,[]); +__d(function(g,r,i,a,m,e,d){var n;!(function(n){n.FAILED="payment-failed",n.CANCELLED_BY_CUSTOMER="cancelled-by-customer"})(n||(n={}))},390,[]); +__d(function(g,r,i,a,m,e,d){},391,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.primerSettings=e.PrimerHeadlessUniversalCheckout=void 0;var o=n(r(d[1])),l=n(r(d[2])),t=n(r(d[3])),s=n(r(d[4])),u=r(d[5]),c={continueWithNewClientToken:(function(){var n=(0,t.default)(function*(n){try{s.default.handleTokenizationNewClientToken(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),complete:function(){s.default.handleCompleteFlow()}},h={continueWithNewClientToken:(function(){var n=(0,t.default)(function*(n){try{s.default.handleResumeWithNewClientToken(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),complete:function(){s.default.handleCompleteFlow()}},C={abortPaymentCreation:(function(){var n=(0,t.default)(function*(n){try{s.default.handlePaymentCreationAbort(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),continuePaymentCreation:(function(){var n=(0,t.default)(function*(){try{s.default.handlePaymentCreationContinue()}catch(n){console.error(n)}});return function(){return n.apply(this,arguments)}})()},k=void 0;function v(){return f.apply(this,arguments)}function f(){return(f=(0,t.default)(function*(){return new Promise((n=(0,t.default)(function*(n,o){try{var l,t,v,f,p,U,y,b,P,S,T,M,L,w,A,z,B,I,E,R,N,W,H,_,D,F;s.default.removeAllListeners();var j={onAvailablePaymentMethodsLoad:void 0!==(null==(l=k)?void 0:null==(t=l.headlessUniversalCheckoutCallbacks)?void 0:t.onAvailablePaymentMethodsLoad)||!1,onTokenizationStart:void 0!==(null==(v=k)?void 0:null==(f=v.headlessUniversalCheckoutCallbacks)?void 0:f.onTokenizationStart)||!1,onTokenizationSuccess:void 0!==(null==(p=k)?void 0:null==(U=p.headlessUniversalCheckoutCallbacks)?void 0:U.onTokenizationSuccess)||!1,onCheckoutResume:void 0!==(null==(y=k)?void 0:null==(b=y.headlessUniversalCheckoutCallbacks)?void 0:b.onCheckoutResume)||!1,onCheckoutPending:void 0!==(null==(P=k)?void 0:null==(S=P.headlessUniversalCheckoutCallbacks)?void 0:S.onCheckoutPending)||!1,onCheckoutAdditionalInfo:void 0!==(null==(T=k)?void 0:null==(M=T.headlessUniversalCheckoutCallbacks)?void 0:M.onCheckoutAdditionalInfo)||!1,onError:void 0!==(null==(L=k)?void 0:null==(w=L.headlessUniversalCheckoutCallbacks)?void 0:w.onError)||!1,onCheckoutComplete:void 0!==(null==(A=k)?void 0:null==(z=A.headlessUniversalCheckoutCallbacks)?void 0:z.onCheckoutComplete)||!1,onBeforeClientSessionUpdate:void 0!==(null==(B=k)?void 0:null==(I=B.headlessUniversalCheckoutCallbacks)?void 0:I.onBeforeClientSessionUpdate)||!1,onClientSessionUpdate:void 0!==(null==(E=k)?void 0:null==(R=E.headlessUniversalCheckoutCallbacks)?void 0:R.onClientSessionUpdate)||!1,onBeforePaymentCreate:void 0!==(null==(N=k)?void 0:null==(W=N.headlessUniversalCheckoutCallbacks)?void 0:W.onBeforePaymentCreate)||!1,onPreparationStart:void 0!==(null==(H=k)?void 0:null==(_=H.headlessUniversalCheckoutCallbacks)?void 0:_.onPreparationStart)||!1,onPaymentMethodShow:void 0!==(null==(D=k)?void 0:null==(F=D.headlessUniversalCheckoutCallbacks)?void 0:F.onPaymentMethodShow)||!1,onDismiss:!1};yield s.default.setImplementedRNCallbacks(j),j.onAvailablePaymentMethodsLoad&&s.default.addListener('onAvailablePaymentMethodsLoad',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onAvailablePaymentMethodsLoad){var t=n.availablePaymentMethods||[];k.headlessUniversalCheckoutCallbacks.onAvailablePaymentMethodsLoad(t)}}),j.onPreparationStart&&s.default.addListener('onPreparationStart',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onPreparationStart&&k.headlessUniversalCheckoutCallbacks.onPreparationStart(n.paymentMethodType)}),j.onBeforeClientSessionUpdate&&s.default.addListener('onBeforeClientSessionUpdate',function(){var n,o;null!=(n=k)&&null!=(o=n.headlessUniversalCheckoutCallbacks)&&o.onBeforeClientSessionUpdate&&k.headlessUniversalCheckoutCallbacks.onBeforeClientSessionUpdate()}),j.onClientSessionUpdate&&s.default.addListener('onClientSessionUpdate',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onClientSessionUpdate){var t=n.clientSession;k.headlessUniversalCheckoutCallbacks.onClientSessionUpdate(t)}}),j.onBeforePaymentCreate&&s.default.addListener('onBeforePaymentCreate',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onBeforePaymentCreate){var t=n;k.headlessUniversalCheckoutCallbacks.onBeforePaymentCreate(t,C)}}),j.onTokenizationStart&&s.default.addListener('onTokenizationStart',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onTokenizationStart&&k.headlessUniversalCheckoutCallbacks.onTokenizationStart(n.paymentMethodType)}),j.onPaymentMethodShow&&s.default.addListener('onPaymentMethodShow',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onPaymentMethodShow&&k.headlessUniversalCheckoutCallbacks.onPaymentMethodShow(n.paymentMethodType)}),j.onTokenizationSuccess&&s.default.addListener('onTokenizationSuccess',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onTokenizationSuccess){var t=n.paymentMethodTokenData;k.headlessUniversalCheckoutCallbacks.onTokenizationSuccess(t,c)}}),j.onCheckoutResume&&s.default.addListener('onCheckoutResume',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutResume&&k.headlessUniversalCheckoutCallbacks.onCheckoutResume(n.resumeToken,h)}),j.onCheckoutPending&&s.default.addListener('onCheckoutPending',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutPending){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutPending(t)}}),j.onCheckoutAdditionalInfo&&s.default.addListener('onCheckoutAdditionalInfo',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutAdditionalInfo){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutAdditionalInfo(t)}}),j.onCheckoutComplete&&s.default.addListener('onCheckoutComplete',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutComplete){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutComplete(t)}}),j.onError&&s.default.addListener('onError',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onError&&n&&n.error&&n.error.errorId&&k){var t=n.error.errorId,s=n.error.description,c=n.error.recoverySuggestion,h=new u.PrimerError(t,s||'Unknown error',c),C=n.checkoutData;k.headlessUniversalCheckoutCallbacks.onError(h,C)}}),n()}catch(n){o(n)}}),function(o,l){return n.apply(this,arguments)}));var n})).apply(this,arguments)}e.primerSettings=k;var p=new((function(){function n(){(0,o.default)(this,n)}return(0,l.default)(n,[{key:"startWithClientToken",value:function(n,o){return e.primerSettings=k=o,new Promise((l=(0,t.default)(function*(l,t){try{yield v();var c,h=yield s.default.startWithClientToken(n,o);if(h.availablePaymentMethods)l(h.availablePaymentMethods);else t(new u.PrimerError("primer-rn-sdk","Failed to find availablePaymentMethods","Create another client session"))}catch(c){t(c)}}),function(n,o){return l.apply(this,arguments)}));var l}},{key:"disposePrimerHeadlessUniversalCheckout",value:function(){return s.default.disposePrimerHeadlessUniversalCheckout()}}]),n})());e.PrimerHeadlessUniversalCheckout=p},392,[2,18,19,4,393,380]); +__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])),o=r(d[2]),l=o.NativeModules.PrimerHeadlessUniversalCheckout,u=new o.NativeEventEmitter(l),s=['onAvailablePaymentMethodsLoad','onTokenizationStart','onTokenizationSuccess','onCheckoutResume','onCheckoutPending','onCheckoutAdditionalInfo','onError','onCheckoutComplete','onBeforeClientSessionUpdate','onClientSessionUpdate','onBeforePaymentCreate','onPreparationStart','onPaymentMethodShow'],c={addListener:function(n,t){u.addListener(n,t)},removeListener:function(n,t){u.removeListener(n,t)},removeAllListenersForEvent:function(n){u.removeAllListeners(n)},removeAllListeners:function(){s.forEach(function(n){return c.removeAllListenersForEvent(n)})},startWithClientToken:function(n,t){return l.startWithClientToken(n,JSON.stringify(t))},handleTokenizationNewClientToken:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handleTokenizationNewClientToken(n),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handleResumeWithNewClientToken:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handleResumeWithNewClientToken(n),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handleCompleteFlow:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.handleCompleteFlow(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n},handlePaymentCreationAbort:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handlePaymentCreationAbort(n||""),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handlePaymentCreationContinue:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.handlePaymentCreationContinue(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n},setImplementedRNCallbacks:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.setImplementedRNCallbacks(JSON.stringify(n)),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},disposePrimerHeadlessUniversalCheckout:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.disposePrimerHeadlessUniversalCheckout(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n}},f=c;e.default=f},393,[2,4,6]); +__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])),o=t(r(d[3])),s=r(d[4]).NativeModules.RNTPrimerHeadlessUniversalCheckoutAssetsManager,c=(function(){function t(){(0,u.default)(this,t)}return(0,o.default)(t,[{key:"getCardNetworkImageURL",value:(function(){var t=(0,n.default)(function*(t){return new Promise((u=(0,n.default)(function*(n,u){try{n((yield s.getCardNetworkImage(t)).cardNetworkImageURL)}catch(t){console.error(t),u(t)}}),function(t,n){return u.apply(this,arguments)}));var u});return function(n){return t.apply(this,arguments)}})()},{key:"getPaymentMethodAsset",value:(function(){var t=(0,n.default)(function*(t){return new Promise((u=(0,n.default)(function*(n,u){try{n((yield s.getPaymentMethodAsset(t)).paymentMethodAsset)}catch(t){console.error(t),u(t)}}),function(t,n){return u.apply(this,arguments)}));var u});return function(n){return t.apply(this,arguments)}})()},{key:"getPaymentMethodAssets",value:(function(){var t=(0,n.default)(function*(){return new Promise((t=(0,n.default)(function*(t,n){try{t((yield s.getPaymentMethodAssets()).paymentMethodAssets)}catch(t){console.error(t),n(t)}}),function(n,u){return t.apply(this,arguments)}));var t});return function(){return t.apply(this,arguments)}})()}]),t})();e.default=c},394,[2,4,18,19,6]); +__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])),o=t(r(d[3])),f=r(d[4]).NativeModules.RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager,l=(function(){function t(){(0,u.default)(this,t)}return(0,o.default)(t,[{key:"configure",value:(function(){var t=(0,n.default)(function*(t){try{yield f.configure(t)}catch(t){throw console.error(t),t}});return function(n){return t.apply(this,arguments)}})()},{key:"showPaymentMethod",value:(function(){var t=(0,n.default)(function*(t){return f.showPaymentMethod(t)});return function(n){return t.apply(this,arguments)}})()}]),t})();e.default=l},395,[2,4,18,19,6]); +__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])),o=n(r(d[2])),u=n(r(d[3])),l=r(d[4]),s=r(d[5]),c=l.NativeModules.RNTPrimerHeadlessUniversalCheckoutRawDataManager,f=new l.NativeEventEmitter(c),p=(function(){function n(){(0,o.default)(this,n)}return(0,u.default)(n,[{key:"configure",value:(function(){var n=(0,t.default)(function*(n){var o,u=this;return new Promise((o=(0,t.default)(function*(t,o){try{u.options=n,yield u.configureListeners();var l=yield c.configure(n.paymentMethodType);l?t(l):t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}))});return function(t){return n.apply(this,arguments)}})()},{key:"configureListeners",value:(function(){var n=(0,t.default)(function*(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;null!=(u=o.options)&&u.onMetadataChange&&o.addListener("onMetadataChange",function(n){var t;null!=(t=o.options)&&t.onMetadataChange&&o.options.onMetadataChange(n)}),null!=(l=o.options)&&l.onValidation&&o.addListener("onValidation",function(n){var t;null!=(t=o.options)&&t.onValidation&&o.options.onValidation(n.isValid,n.errors)}),n()}),function(t,o){return n.apply(this,arguments)}))});return function(){return n.apply(this,arguments)}})()},{key:"getRequiredInputElementTypes",value:(function(){var n=(0,t.default)(function*(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{n((yield c.listRequiredInputElementTypes()).inputElementTypes)}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))});return function(){return n.apply(this,arguments)}})()},{key:"setRawData",value:function(n){var o,u=this;return new Promise((o=(0,t.default)(function*(t,o){var l,f;if(null!=(l=u.options)&&l.paymentMethodType)try{yield c.setRawData(JSON.stringify(n)),t()}catch(f){o(f)}else o(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(n,t){return o.apply(this,arguments)}))}},{key:"submit",value:function(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{yield c.submit(),n()}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))}},{key:"dispose",value:function(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{yield c.dispose(),n()}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))}},{key:"addListener",value:(function(){var n=(0,t.default)(function*(n,t){return f.addListener(n,t)});return function(t,o){return n.apply(this,arguments)}})()},{key:"removeListener",value:function(n,t){return f.removeListener(n,t)}}]),n})();e.default=p},396,[2,4,18,19,6,380]); +__r(23); +__r(0); \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 000000000..c3afe68f0 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +require ('./src/index.tsx') diff --git a/package.json b/package.json index 1ad560b34..1ec7eee7b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "release": "release-it", "example": "yarn --cwd example", "pods": "cd example && pod-install --quiet", - "bootstrap": "yarn example && yarn && yarn pods" + "bootstrap": "yarn example && yarn && yarn pods", + "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'" }, "keywords": [ "react-native", @@ -50,7 +51,7 @@ "devDependencies": { "@commitlint/config-conventional": "^11.0.0", "@react-native-community/eslint-config": "^2.0.0", - "@release-it/conventional-changelog": "^2.0.0", + "@release-it/conventional-changelog": "^5.1.1", "@types/jest": "^26.0.0", "@types/react": "^16.9.19", "@types/react-native": "0.62.13", @@ -62,10 +63,10 @@ "jest": "^26.0.1", "pod-install": "^0.1.0", "prettier": "^2.0.5", - "react": "16.13.1", - "react-native": "0.63.4", - "react-native-builder-bob": "^0.17.1", - "release-it": "^14.2.2", + "react": "^18.2.0", + "react-native": "^0.70.4", + "react-native-builder-bob": "^0.20.1", + "release-it": "^15.5.0", "typescript": "^4.1.3" }, "peerDependencies": { diff --git a/pico.save b/pico.save new file mode 100644 index 000000000..397db75f0 --- /dev/null +++ b/pico.save @@ -0,0 +1 @@ +: diff --git a/yarn.lock b/yarn.lock index c9ce15b2f..c64ca6646 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,201 +3,194 @@ "@ampproject/remapping@^2.1.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" - integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + "integrity" "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==" + "resolved" "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz" + "version" "2.2.0" dependencies: "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== - dependencies: - "@babel/highlight" "^7.10.4" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" - integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + "integrity" "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==" + "resolved" "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.0", "@babel/compat-data@^7.20.1": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.5.tgz#86f172690b093373a933223b4745deeb6049e733" - integrity sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g== +"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.19.4", "@babel/compat-data@^7.20.0": + "integrity" "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==" + "resolved" "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz" + "version" "7.20.1" -"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.7.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.5.tgz#45e2114dc6cd4ab167f81daf7820e8fa1250d113" - integrity sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ== +"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.12.0", "@babel/core@^7.13.0", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.18.5", "@babel/core@^7.4.0-0", "@babel/core@^7.7.5": + "integrity" "sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg==" + "resolved" "https://registry.npmjs.org/@babel/core/-/core-7.19.6.tgz" + "version" "7.19.6" dependencies: "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" - "@babel/helper-compilation-targets" "^7.20.0" - "@babel/helper-module-transforms" "^7.20.2" - "@babel/helpers" "^7.20.5" - "@babel/parser" "^7.20.5" + "@babel/generator" "^7.19.6" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-module-transforms" "^7.19.6" + "@babel/helpers" "^7.19.4" + "@babel/parser" "^7.19.6" "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.1" - semver "^6.3.0" - -"@babel/generator@^7.20.5", "@babel/generator@^7.5.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.5.tgz#cb25abee3178adf58d6814b68517c62bdbfdda95" - integrity sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA== - dependencies: - "@babel/types" "^7.20.5" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" + "convert-source-map" "^1.7.0" + "debug" "^4.1.0" + "gensync" "^1.0.0-beta.2" + "json5" "^2.2.1" + "semver" "^6.3.0" + +"@babel/generator@^7.14.0", "@babel/generator@^7.19.6", "@babel/generator@^7.20.1": + "integrity" "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==" + "resolved" "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz" + "version" "7.20.1" + dependencies: + "@babel/types" "^7.20.0" "@jridgewell/gen-mapping" "^0.3.2" - jsesc "^2.5.1" + "jsesc" "^2.5.1" "@babel/helper-annotate-as-pure@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" - integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== + "integrity" "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==" + "resolved" "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" "@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz#acd4edfd7a566d1d51ea975dff38fd52906981bb" - integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== + "integrity" "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==" + "resolved" "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-explode-assignable-expression" "^7.18.6" "@babel/types" "^7.18.9" -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" - integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.19.0", "@babel/helper-compilation-targets@^7.19.3": + "integrity" "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==" + "resolved" "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz" + "version" "7.20.0" dependencies: "@babel/compat-data" "^7.20.0" "@babel/helper-validator-option" "^7.18.6" - browserslist "^4.21.3" - semver "^6.3.0" + "browserslist" "^4.21.3" + "semver" "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.2", "@babel/helper-create-class-features-plugin@^7.20.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.5.tgz#327154eedfb12e977baa4ecc72e5806720a85a06" - integrity sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww== +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": + "integrity" "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==" + "resolved" "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" "@babel/helper-member-expression-to-functions" "^7.18.9" "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-replace-supers" "^7.19.1" + "@babel/helper-replace-supers" "^7.18.9" "@babel/helper-split-export-declaration" "^7.18.6" -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.20.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.20.5.tgz#5ea79b59962a09ec2acf20a963a01ab4d076ccca" - integrity sha512-m68B1lkg3XDGX5yCvGO0kPx3v9WIYLnzjKfPcQiwntEQa5ZeRkPmo2X/ISJc8qxWGfwUr+kvZAeEzAwLec2r2w== +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": + "integrity" "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==" + "resolved" "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" - regexpu-core "^5.2.1" + "regexpu-core" "^5.1.0" "@babel/helper-define-polyfill-provider@^0.3.3": - version "0.3.3" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz#8612e55be5d51f0cd1f36b4a5a83924e89884b7a" - integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== + "integrity" "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==" + "resolved" "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz" + "version" "0.3.3" dependencies: "@babel/helper-compilation-targets" "^7.17.7" "@babel/helper-plugin-utils" "^7.16.7" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - semver "^6.1.2" + "debug" "^4.1.1" + "lodash.debounce" "^4.0.8" + "resolve" "^1.14.2" + "semver" "^6.1.2" "@babel/helper-environment-visitor@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" - integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + "integrity" "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" + "resolved" "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz" + "version" "7.18.9" "@babel/helper-explode-assignable-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz#41f8228ef0a6f1a036b8dfdfec7ce94f9a6bc096" - integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== + "integrity" "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==" + "resolved" "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" "@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" - integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== + "integrity" "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==" + "resolved" "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/template" "^7.18.10" "@babel/types" "^7.19.0" "@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + "integrity" "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==" + "resolved" "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" "@babel/helper-member-expression-to-functions@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" - integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== + "integrity" "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==" + "resolved" "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/types" "^7.18.9" "@babel/helper-module-imports@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" - integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + "integrity" "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==" + "resolved" "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.19.6", "@babel/helper-module-transforms@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz#ac53da669501edd37e658602a21ba14c08748712" - integrity sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA== +"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.19.6": + "integrity" "sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw==" + "resolved" "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-simple-access" "^7.20.2" + "@babel/helper-simple-access" "^7.19.4" "@babel/helper-split-export-declaration" "^7.18.6" "@babel/helper-validator-identifier" "^7.19.1" "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.1" - "@babel/types" "^7.20.2" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" "@babel/helper-optimise-call-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" - integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== + "integrity" "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==" + "resolved" "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629" - integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ== +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + "integrity" "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==" + "resolved" "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz" + "version" "7.19.0" "@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" - integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== + "integrity" "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==" + "resolved" "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-wrap-function" "^7.18.9" "@babel/types" "^7.18.9" -"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" - integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== +"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": + "integrity" "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==" + "resolved" "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz" + "version" "7.19.1" dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-member-expression-to-functions" "^7.18.9" @@ -205,523 +198,516 @@ "@babel/traverse" "^7.19.1" "@babel/types" "^7.19.0" -"@babel/helper-simple-access@^7.19.4", "@babel/helper-simple-access@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" - integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== +"@babel/helper-simple-access@^7.19.4": + "integrity" "sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg==" + "resolved" "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz" + "version" "7.19.4" dependencies: - "@babel/types" "^7.20.2" + "@babel/types" "^7.19.4" "@babel/helper-skip-transparent-expression-wrappers@^7.18.9": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" - integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== + "integrity" "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==" + "resolved" "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz" + "version" "7.20.0" dependencies: "@babel/types" "^7.20.0" "@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + "integrity" "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==" + "resolved" "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/types" "^7.18.6" "@babel/helper-string-parser@^7.19.4": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" - integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== + "integrity" "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" + "resolved" "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz" + "version" "7.19.4" "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== + "integrity" "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + "resolved" "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" + "version" "7.19.1" "@babel/helper-validator-option@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" - integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + "integrity" "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==" + "resolved" "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz" + "version" "7.18.6" "@babel/helper-wrap-function@^7.18.9": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz#75e2d84d499a0ab3b31c33bcfe59d6b8a45f62e3" - integrity sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q== + "integrity" "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==" + "resolved" "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-function-name" "^7.19.0" "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" -"@babel/helpers@^7.20.5": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.6.tgz#e64778046b70e04779dfbdf924e7ebb45992c763" - integrity sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w== +"@babel/helpers@^7.19.4": + "integrity" "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==" + "resolved" "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz" + "version" "7.20.1" dependencies: "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/traverse" "^7.20.1" + "@babel/types" "^7.20.0" -"@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== +"@babel/highlight@^7.18.6": + "integrity" "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==" + "resolved" "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" + "chalk" "^2.0.0" + "js-tokens" "^4.0.0" -"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.20.5", "@babel/parser@^7.7.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.5.tgz#7f3c7335fe417665d929f34ae5dceae4c04015e8" - integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA== +"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": + "integrity" "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==" + "resolved" "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz" + "version" "7.20.1" "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz#da5b8f9a580acdfbe53494dba45ea389fb09a4d2" - integrity sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ== + "integrity" "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz#a11af19aa373d68d561f08e0a57242350ed0ec50" - integrity sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg== + "integrity" "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-proposal-optional-chaining" "^7.18.9" -"@babel/plugin-external-helpers@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-external-helpers/-/plugin-external-helpers-7.18.6.tgz#58f2a6eca8ad05bc130de8cec569c43dc19b6deb" - integrity sha512-wNqc87qjLvsD1PIMQBzLn1bMuTlGzqLzM/1VGQ22Wm51cbCWS9k71ydp5iZS4hjwQNuTWSn/xbZkkusNENwtZg== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-proposal-async-generator-functions@^7.20.1": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" - integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== +"@babel/plugin-proposal-async-generator-functions@^7.0.0", "@babel/plugin-proposal-async-generator-functions@^7.19.1": + "integrity" "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz" + "version" "7.20.1" dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== +"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.17.12", "@babel/plugin-proposal-class-properties@^7.18.6": + "integrity" "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-proposal-class-static-block@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz#8aa81d403ab72d3962fc06c26e222dacfc9b9020" - integrity sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw== + "integrity" "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-proposal-dynamic-import@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz#72bcf8d408799f547d759298c3c27c7e7faa4d94" - integrity sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw== + "integrity" "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-proposal-export-default-from@^7.0.0": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206" - integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== + "integrity" "sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz" + "version" "7.18.10" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-export-default-from" "^7.18.6" "@babel/plugin-proposal-export-namespace-from@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz#5f7313ab348cdb19d590145f9247540e94761203" - integrity sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA== + "integrity" "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" "@babel/plugin-proposal-json-strings@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz#7e8788c1811c393aff762817e7dbf1ebd0c05f0b" - integrity sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ== + "integrity" "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-proposal-logical-assignment-operators@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz#8148cbb350483bf6220af06fa6db3690e14b2e23" - integrity sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q== + "integrity" "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" -"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" - integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== +"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8", "@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6": + "integrity" "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" "@babel/plugin-proposal-numeric-separator@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz#899b14fbafe87f053d2c5ff05b36029c62e13c75" - integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== + "integrity" "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz#a556f59d555f06961df1e572bb5eca864c84022d" - integrity sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ== +"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.19.4": + "integrity" "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz" + "version" "7.19.4" dependencies: - "@babel/compat-data" "^7.20.1" - "@babel/helper-compilation-targets" "^7.20.0" - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/compat-data" "^7.19.4" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.20.1" + "@babel/plugin-transform-parameters" "^7.18.8" "@babel/plugin-proposal-optional-catch-binding@^7.0.0", "@babel/plugin-proposal-optional-catch-binding@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" - integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== + "integrity" "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" - integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== +"@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12", "@babel/plugin-proposal-optional-chaining@^7.18.9": + "integrity" "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-proposal-private-methods@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz#5209de7d213457548a98436fa2882f52f4be6bea" - integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== + "integrity" "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-proposal-private-property-in-object@^7.18.6": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.20.5.tgz#309c7668f2263f1c711aa399b5a9a6291eef6135" - integrity sha512-Vq7b9dUA12ByzB4EjQTPo25sFhY+08pQDBSZRtUAkj7lb7jahaHR5igera16QZ+3my1nYR4dKsNdYj5IjPHilQ== + "integrity" "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.20.5" - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" "@babel/plugin-proposal-unicode-property-regex@^7.18.6", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz#af613d2cd5e643643b65cded64207b15c85cb78e" - integrity sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w== + "integrity" "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==" + "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + "integrity" "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" + "version" "7.8.4" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + "integrity" "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + "integrity" "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" + "version" "7.12.13" dependencies: "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" - integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + "integrity" "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz" + "version" "7.14.5" dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-dynamic-import@^7.0.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" - integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== + "integrity" "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz#8df076711a4818c4ce4f23e61d622b0ba2ff84bc" - integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew== + "integrity" "sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-export-namespace-from@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" - integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== + "integrity" "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.3" "@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" - integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== + "integrity" "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-syntax-import-assertions@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz#bb50e0d4bea0957235390641209394e87bdb9cc4" - integrity sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ== +"@babel/plugin-syntax-import-assertions@^7.18.6": + "integrity" "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz" + "version" "7.20.0" dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-import-meta@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + "integrity" "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" + "version" "7.10.4" dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + "integrity" "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" - integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + "integrity" "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + "integrity" "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" + "version" "7.10.4" dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + "integrity" "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + "integrity" "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" + "version" "7.10.4" dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + "integrity" "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + "integrity" "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-chaining@^7.0.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + "integrity" "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" + "version" "7.8.3" dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" - integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + "integrity" "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz" + "version" "7.14.5" dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + "integrity" "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" + "version" "7.14.5" dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" - integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + "integrity" "sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz" + "version" "7.20.0" dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-arrow-functions@^7.0.0", "@babel/plugin-transform-arrow-functions@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" - integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== + "integrity" "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-async-to-generator@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" - integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== +"@babel/plugin-transform-async-to-generator@^7.0.0", "@babel/plugin-transform-async-to-generator@^7.18.6": + "integrity" "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-module-imports" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-remap-async-to-generator" "^7.18.6" "@babel/plugin-transform-block-scoped-functions@^7.0.0", "@babel/plugin-transform-block-scoped-functions@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" - integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== + "integrity" "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-block-scoping@^7.0.0", "@babel/plugin-transform-block-scoping@^7.20.2": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.5.tgz#401215f9dc13dc5262940e2e527c9536b3d7f237" - integrity sha512-WvpEIW9Cbj9ApF3yJCjIEEf1EiNJLtXagOrL5LNWEZOo3jv8pmPoYTSNJQvqej8OavVlgOoOPw6/htGZro6IkA== +"@babel/plugin-transform-block-scoping@^7.0.0", "@babel/plugin-transform-block-scoping@^7.19.4": + "integrity" "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz" + "version" "7.20.0" dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-plugin-utils" "^7.19.0" -"@babel/plugin-transform-classes@^7.0.0", "@babel/plugin-transform-classes@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz#c0033cf1916ccf78202d04be4281d161f6709bb2" - integrity sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g== +"@babel/plugin-transform-classes@^7.0.0", "@babel/plugin-transform-classes@^7.19.0": + "integrity" "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-compilation-targets" "^7.20.0" + "@babel/helper-compilation-targets" "^7.19.0" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-replace-supers" "^7.19.1" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-replace-supers" "^7.18.9" "@babel/helper-split-export-declaration" "^7.18.6" - globals "^11.1.0" + "globals" "^11.1.0" "@babel/plugin-transform-computed-properties@^7.0.0", "@babel/plugin-transform-computed-properties@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" - integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== + "integrity" "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" -"@babel/plugin-transform-destructuring@^7.0.0", "@babel/plugin-transform-destructuring@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz#c23741cfa44ddd35f5e53896e88c75331b8b2792" - integrity sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw== +"@babel/plugin-transform-destructuring@^7.0.0", "@babel/plugin-transform-destructuring@^7.19.4": + "integrity" "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz" + "version" "7.20.0" dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-dotall-regex@^7.18.6", "@babel/plugin-transform-dotall-regex@^7.4.4": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz#b286b3e7aae6c7b861e45bed0a2fafd6b1a4fef8" - integrity sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg== + "integrity" "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-duplicate-keys@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz#687f15ee3cdad6d85191eb2a372c4528eaa0ae0e" - integrity sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw== + "integrity" "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-exponentiation-operator@^7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz#421c705f4521888c65e91fdd1af951bfefd4dacd" - integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== + "integrity" "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" - integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== + "integrity" "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-flow" "^7.18.6" "@babel/plugin-transform-for-of@^7.0.0", "@babel/plugin-transform-for-of@^7.18.8": - version "7.18.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" - integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== + "integrity" "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz" + "version" "7.18.8" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-function-name@^7.0.0", "@babel/plugin-transform-function-name@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" - integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== + "integrity" "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-compilation-targets" "^7.18.9" "@babel/helper-function-name" "^7.18.9" "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-literals@^7.0.0", "@babel/plugin-transform-literals@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" - integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== + "integrity" "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-member-expression-literals@^7.0.0", "@babel/plugin-transform-member-expression-literals@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" - integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== + "integrity" "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-modules-amd@^7.19.6": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz#aca391801ae55d19c4d8d2ebfeaa33df5f2a2cbd" - integrity sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg== +"@babel/plugin-transform-modules-amd@^7.18.6": + "integrity" "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-module-transforms" "^7.19.6" "@babel/helper-plugin-utils" "^7.19.0" -"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.19.6": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" - integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== +"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.18.6": + "integrity" "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-module-transforms" "^7.19.6" "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-simple-access" "^7.19.4" -"@babel/plugin-transform-modules-systemjs@^7.19.6": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz#59e2a84064b5736a4471b1aa7b13d4431d327e0d" - integrity sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ== +"@babel/plugin-transform-modules-systemjs@^7.19.0": + "integrity" "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-hoist-variables" "^7.18.6" "@babel/helper-module-transforms" "^7.19.6" @@ -729,89 +715,82 @@ "@babel/helper-validator-identifier" "^7.19.1" "@babel/plugin-transform-modules-umd@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz#81d3832d6034b75b54e62821ba58f28ed0aab4b9" - integrity sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ== + "integrity" "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-module-transforms" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-named-capturing-groups-regex@^7.19.1": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz#626298dd62ea51d452c3be58b285d23195ba69a8" - integrity sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA== +"@babel/plugin-transform-named-capturing-groups-regex@^7.0.0", "@babel/plugin-transform-named-capturing-groups-regex@^7.19.1": + "integrity" "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz" + "version" "7.19.1" dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.20.5" - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-create-regexp-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-new-target@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz#d128f376ae200477f37c4ddfcc722a8a1b3246a8" - integrity sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-object-assign@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.18.6.tgz#7830b4b6f83e1374a5afb9f6111bcfaea872cdd2" - integrity sha512-mQisZ3JfqWh2gVXvfqYCAAyRs6+7oev+myBsTwW5RnPhYXOTuCEw2oe3YgxlXMViXUS53lG8koulI7mJ+8JE+A== + "integrity" "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-object-super@^7.0.0", "@babel/plugin-transform-object-super@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" - integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== + "integrity" "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-replace-supers" "^7.18.6" -"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.20.1": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.5.tgz#f8f9186c681d10c3de7620c916156d893c8a019e" - integrity sha512-h7plkOmcndIUWXZFLgpbrh2+fXAi47zcUX7IrOQuZdLD0I0KvjJ6cvo3BEcAOsDOcZhVKGJqv07mkSqK0y2isQ== +"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.18.8": + "integrity" "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz" + "version" "7.20.1" dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-property-literals@^7.0.0", "@babel/plugin-transform-property-literals@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" - integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== + "integrity" "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" - integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== + "integrity" "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-development@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz#dbe5c972811e49c7405b630e4d0d2e1380c0ddc5" - integrity sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA== + "integrity" "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/plugin-transform-react-jsx" "^7.18.6" "@babel/plugin-transform-react-jsx-self@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz#3849401bab7ae8ffa1e3e5687c94a753fc75bda7" - integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig== + "integrity" "sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-source@^7.0.0": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz#88578ae8331e5887e8ce28e4c9dc83fb29da0b86" - integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ== + "integrity" "sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.18.6": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" - integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== + "integrity" "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-module-imports" "^7.18.6" @@ -820,112 +799,112 @@ "@babel/types" "^7.19.0" "@babel/plugin-transform-react-pure-annotations@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz#561af267f19f3e5d59291f9950fd7b9663d0d844" - integrity sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ== + "integrity" "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-regenerator@^7.0.0", "@babel/plugin-transform-regenerator@^7.18.6": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz#57cda588c7ffb7f4f8483cc83bdcea02a907f04d" - integrity sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ== +"@babel/plugin-transform-regenerator@^7.18.6": + "integrity" "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz" + "version" "7.18.6" dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - regenerator-transform "^0.15.1" + "@babel/helper-plugin-utils" "^7.18.6" + "regenerator-transform" "^0.15.0" "@babel/plugin-transform-reserved-words@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz#b1abd8ebf8edaa5f7fe6bbb8d2133d23b6a6f76a" - integrity sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA== + "integrity" "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-runtime@^7.0.0": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz#9d2a9dbf4e12644d6f46e5e75bfbf02b5d6e9194" - integrity sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw== + "integrity" "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz" + "version" "7.19.6" dependencies: "@babel/helper-module-imports" "^7.18.6" "@babel/helper-plugin-utils" "^7.19.0" - babel-plugin-polyfill-corejs2 "^0.3.3" - babel-plugin-polyfill-corejs3 "^0.6.0" - babel-plugin-polyfill-regenerator "^0.4.1" - semver "^6.3.0" + "babel-plugin-polyfill-corejs2" "^0.3.3" + "babel-plugin-polyfill-corejs3" "^0.6.0" + "babel-plugin-polyfill-regenerator" "^0.4.1" + "semver" "^6.3.0" "@babel/plugin-transform-shorthand-properties@^7.0.0", "@babel/plugin-transform-shorthand-properties@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" - integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== + "integrity" "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-spread@^7.0.0", "@babel/plugin-transform-spread@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" - integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== + "integrity" "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz" + "version" "7.19.0" dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-transform-sticky-regex@^7.0.0", "@babel/plugin-transform-sticky-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz#c6706eb2b1524028e317720339583ad0f444adcc" - integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== + "integrity" "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-template-literals@^7.0.0", "@babel/plugin-transform-template-literals@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" - integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== + "integrity" "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-typeof-symbol@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz#c8cea68263e45addcd6afc9091429f80925762c0" - integrity sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw== + "integrity" "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz" + "version" "7.18.9" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.2.tgz#91515527b376fc122ba83b13d70b01af8fe98f3f" - integrity sha512-jvS+ngBfrnTUBfOQq8NfGnSbF9BrqlR6hjJ2yVxMkmO5nL/cdifNbI30EfjRlN4g5wYWNnMPyj5Sa6R1pbLeag== + "integrity" "sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz" + "version" "7.20.0" dependencies: - "@babel/helper-create-class-features-plugin" "^7.20.2" - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-create-class-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-typescript" "^7.20.0" "@babel/plugin-transform-unicode-escapes@^7.18.10": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz#1ecfb0eda83d09bbcb77c09970c2dd55832aa246" - integrity sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ== + "integrity" "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz" + "version" "7.18.10" dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-unicode-regex@^7.0.0", "@babel/plugin-transform-unicode-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz#194317225d8c201bbae103364ffe9e2cea36cdca" - integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== + "integrity" "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==" + "resolved" "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/preset-env@^7.12.11": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.20.2.tgz#9b1642aa47bb9f43a86f9630011780dab7f86506" - integrity sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg== +"@babel/preset-env@^7.1.6", "@babel/preset-env@^7.18.2": + "integrity" "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==" + "resolved" "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz" + "version" "7.19.4" dependencies: - "@babel/compat-data" "^7.20.1" - "@babel/helper-compilation-targets" "^7.20.0" - "@babel/helper-plugin-utils" "^7.20.2" + "@babel/compat-data" "^7.19.4" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.18.6" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.18.9" - "@babel/plugin-proposal-async-generator-functions" "^7.20.1" + "@babel/plugin-proposal-async-generator-functions" "^7.19.1" "@babel/plugin-proposal-class-properties" "^7.18.6" "@babel/plugin-proposal-class-static-block" "^7.18.6" "@babel/plugin-proposal-dynamic-import" "^7.18.6" @@ -934,7 +913,7 @@ "@babel/plugin-proposal-logical-assignment-operators" "^7.18.9" "@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.6" "@babel/plugin-proposal-numeric-separator" "^7.18.6" - "@babel/plugin-proposal-object-rest-spread" "^7.20.2" + "@babel/plugin-proposal-object-rest-spread" "^7.19.4" "@babel/plugin-proposal-optional-catch-binding" "^7.18.6" "@babel/plugin-proposal-optional-chaining" "^7.18.9" "@babel/plugin-proposal-private-methods" "^7.18.6" @@ -945,7 +924,7 @@ "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.20.0" + "@babel/plugin-syntax-import-assertions" "^7.18.6" "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" @@ -958,10 +937,10 @@ "@babel/plugin-transform-arrow-functions" "^7.18.6" "@babel/plugin-transform-async-to-generator" "^7.18.6" "@babel/plugin-transform-block-scoped-functions" "^7.18.6" - "@babel/plugin-transform-block-scoping" "^7.20.2" - "@babel/plugin-transform-classes" "^7.20.2" + "@babel/plugin-transform-block-scoping" "^7.19.4" + "@babel/plugin-transform-classes" "^7.19.0" "@babel/plugin-transform-computed-properties" "^7.18.9" - "@babel/plugin-transform-destructuring" "^7.20.2" + "@babel/plugin-transform-destructuring" "^7.19.4" "@babel/plugin-transform-dotall-regex" "^7.18.6" "@babel/plugin-transform-duplicate-keys" "^7.18.9" "@babel/plugin-transform-exponentiation-operator" "^7.18.6" @@ -969,14 +948,14 @@ "@babel/plugin-transform-function-name" "^7.18.9" "@babel/plugin-transform-literals" "^7.18.9" "@babel/plugin-transform-member-expression-literals" "^7.18.6" - "@babel/plugin-transform-modules-amd" "^7.19.6" - "@babel/plugin-transform-modules-commonjs" "^7.19.6" - "@babel/plugin-transform-modules-systemjs" "^7.19.6" + "@babel/plugin-transform-modules-amd" "^7.18.6" + "@babel/plugin-transform-modules-commonjs" "^7.18.6" + "@babel/plugin-transform-modules-systemjs" "^7.19.0" "@babel/plugin-transform-modules-umd" "^7.18.6" "@babel/plugin-transform-named-capturing-groups-regex" "^7.19.1" "@babel/plugin-transform-new-target" "^7.18.6" "@babel/plugin-transform-object-super" "^7.18.6" - "@babel/plugin-transform-parameters" "^7.20.1" + "@babel/plugin-transform-parameters" "^7.18.8" "@babel/plugin-transform-property-literals" "^7.18.6" "@babel/plugin-transform-regenerator" "^7.18.6" "@babel/plugin-transform-reserved-words" "^7.18.6" @@ -988,37 +967,37 @@ "@babel/plugin-transform-unicode-escapes" "^7.18.10" "@babel/plugin-transform-unicode-regex" "^7.18.6" "@babel/preset-modules" "^0.1.5" - "@babel/types" "^7.20.2" - babel-plugin-polyfill-corejs2 "^0.3.3" - babel-plugin-polyfill-corejs3 "^0.6.0" - babel-plugin-polyfill-regenerator "^0.4.1" - core-js-compat "^3.25.1" - semver "^6.3.0" - -"@babel/preset-flow@^7.12.1": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.18.6.tgz#83f7602ba566e72a9918beefafef8ef16d2810cb" - integrity sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ== + "@babel/types" "^7.19.4" + "babel-plugin-polyfill-corejs2" "^0.3.3" + "babel-plugin-polyfill-corejs3" "^0.6.0" + "babel-plugin-polyfill-regenerator" "^0.4.1" + "core-js-compat" "^3.25.1" + "semver" "^6.3.0" + +"@babel/preset-flow@^7.13.13", "@babel/preset-flow@^7.17.12": + "integrity" "sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ==" + "resolved" "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-transform-flow-strip-types" "^7.18.6" "@babel/preset-modules@^0.1.5": - version "0.1.5" - resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.5.tgz#ef939d6e7f268827e1841638dc6ff95515e115d9" - integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== + "integrity" "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==" + "resolved" "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz" + "version" "0.1.5" dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" "@babel/plugin-transform-dotall-regex" "^7.4.4" "@babel/types" "^7.4.4" - esutils "^2.0.2" + "esutils" "^2.0.2" -"@babel/preset-react@^7.12.10": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.18.6.tgz#979f76d6277048dc19094c217b507f3ad517dd2d" - integrity sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg== +"@babel/preset-react@^7.17.12": + "integrity" "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==" + "resolved" "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" @@ -1027,138 +1006,138 @@ "@babel/plugin-transform-react-jsx-development" "^7.18.6" "@babel/plugin-transform-react-pure-annotations" "^7.18.6" -"@babel/preset-typescript@^7.12.7": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz#ce64be3e63eddc44240c6358daefac17b3186399" - integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ== +"@babel/preset-typescript@^7.13.0", "@babel/preset-typescript@^7.17.12": + "integrity" "sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==" + "resolved" "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz" + "version" "7.18.6" dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-transform-typescript" "^7.18.6" -"@babel/register@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.18.9.tgz#1888b24bc28d5cc41c412feb015e9ff6b96e439c" - integrity sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw== +"@babel/register@^7.13.16": + "integrity" "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==" + "resolved" "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz" + "version" "7.18.9" dependencies: - clone-deep "^4.0.1" - find-cache-dir "^2.0.0" - make-dir "^2.1.0" - pirates "^4.0.5" - source-map-support "^0.5.16" + "clone-deep" "^4.0.1" + "find-cache-dir" "^2.0.0" + "make-dir" "^2.1.0" + "pirates" "^4.0.5" + "source-map-support" "^0.5.16" "@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.8.4": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.6.tgz#facf4879bfed9b5326326273a64220f099b0fce3" - integrity sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA== + "integrity" "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==" + "resolved" "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz" + "version" "7.12.5" dependencies: - regenerator-runtime "^0.13.11" + "regenerator-runtime" "^0.13.4" "@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" - integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== + "integrity" "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==" + "resolved" "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz" + "version" "7.18.10" dependencies: "@babel/code-frame" "^7.18.6" "@babel/parser" "^7.18.10" "@babel/types" "^7.18.10" -"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.20.1", "@babel/traverse@^7.20.5", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.5.tgz#78eb244bea8270fdda1ef9af22a5d5e5b7e57133" - integrity sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ== +"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.19.6", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": + "integrity" "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==" + "resolved" "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz" + "version" "7.20.1" dependencies: "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" + "@babel/generator" "^7.20.1" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" "@babel/helper-hoist-variables" "^7.18.6" "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.20.5" - "@babel/types" "^7.20.5" - debug "^4.1.0" - globals "^11.1.0" + "@babel/parser" "^7.20.1" + "@babel/types" "^7.20.0" + "debug" "^4.1.0" + "globals" "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.5.tgz#e206ae370b5393d94dfd1d04cd687cace53efa84" - integrity sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg== +"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": + "integrity" "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==" + "resolved" "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz" + "version" "7.20.0" dependencies: "@babel/helper-string-parser" "^7.19.4" "@babel/helper-validator-identifier" "^7.19.1" - to-fast-properties "^2.0.0" + "to-fast-properties" "^2.0.0" "@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + "integrity" "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" + "resolved" "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" + "version" "0.2.3" "@cnakazawa/watch@^1.0.3": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" - integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== + "integrity" "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==" + "resolved" "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz" + "version" "1.0.4" dependencies: - exec-sh "^0.3.2" - minimist "^1.2.0" + "exec-sh" "^0.3.2" + "minimist" "^1.2.0" "@commitlint/cli@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-11.0.0.tgz#698199bc52afed50aa28169237758fa14a67b5d3" - integrity sha512-YWZWg1DuqqO5Zjh7vUOeSX76vm0FFyz4y0cpGMFhrhvUi5unc4IVfCXZ6337R9zxuBtmveiRuuhQqnRRer+13g== + "integrity" "sha512-YWZWg1DuqqO5Zjh7vUOeSX76vm0FFyz4y0cpGMFhrhvUi5unc4IVfCXZ6337R9zxuBtmveiRuuhQqnRRer+13g==" + "resolved" "https://registry.npmjs.org/@commitlint/cli/-/cli-11.0.0.tgz" + "version" "11.0.0" dependencies: "@babel/runtime" "^7.11.2" "@commitlint/format" "^11.0.0" "@commitlint/lint" "^11.0.0" "@commitlint/load" "^11.0.0" "@commitlint/read" "^11.0.0" - chalk "4.1.0" - core-js "^3.6.1" - get-stdin "8.0.0" - lodash "^4.17.19" - resolve-from "5.0.0" - resolve-global "1.0.0" - yargs "^15.1.0" + "chalk" "4.1.0" + "core-js" "^3.6.1" + "get-stdin" "8.0.0" + "lodash" "^4.17.19" + "resolve-from" "5.0.0" + "resolve-global" "1.0.0" + "yargs" "^15.1.0" "@commitlint/config-conventional@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz#3fa300a1b639273946de3c3f15e1cda518333422" - integrity sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA== + "integrity" "sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA==" + "resolved" "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz" + "version" "11.0.0" dependencies: - conventional-changelog-conventionalcommits "^4.3.1" + "conventional-changelog-conventionalcommits" "^4.3.1" "@commitlint/ensure@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-11.0.0.tgz#3e796b968ab5b72bc6f8a6040076406306c987fb" - integrity sha512-/T4tjseSwlirKZdnx4AuICMNNlFvRyPQimbZIOYujp9DSO6XRtOy9NrmvWujwHsq9F5Wb80QWi4WMW6HMaENug== + "integrity" "sha512-/T4tjseSwlirKZdnx4AuICMNNlFvRyPQimbZIOYujp9DSO6XRtOy9NrmvWujwHsq9F5Wb80QWi4WMW6HMaENug==" + "resolved" "https://registry.npmjs.org/@commitlint/ensure/-/ensure-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/types" "^11.0.0" - lodash "^4.17.19" + "lodash" "^4.17.19" "@commitlint/execute-rule@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-11.0.0.tgz#3ed60ab7a33019e58d90e2d891b75d7df77b4b4d" - integrity sha512-g01p1g4BmYlZ2+tdotCavrMunnPFPhTzG1ZiLKTCYrooHRbmvqo42ZZn4QMStUEIcn+jfLb6BRZX3JzIwA1ezQ== + "integrity" "sha512-g01p1g4BmYlZ2+tdotCavrMunnPFPhTzG1ZiLKTCYrooHRbmvqo42ZZn4QMStUEIcn+jfLb6BRZX3JzIwA1ezQ==" + "resolved" "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-11.0.0.tgz" + "version" "11.0.0" "@commitlint/format@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/format/-/format-11.0.0.tgz#ac47b0b9ca46540c0082c721b290794e67bdc51b" - integrity sha512-bpBLWmG0wfZH/svzqD1hsGTpm79TKJWcf6EXZllh2J/LSSYKxGlv967lpw0hNojme0sZd4a/97R3qA2QHWWSLg== + "integrity" "sha512-bpBLWmG0wfZH/svzqD1hsGTpm79TKJWcf6EXZllh2J/LSSYKxGlv967lpw0hNojme0sZd4a/97R3qA2QHWWSLg==" + "resolved" "https://registry.npmjs.org/@commitlint/format/-/format-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/types" "^11.0.0" - chalk "^4.0.0" + "chalk" "^4.0.0" "@commitlint/is-ignored@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/is-ignored/-/is-ignored-11.0.0.tgz#7b803eda56276dbe7fec51eb1510676198468f39" - integrity sha512-VLHOUBN+sOlkYC4tGuzE41yNPO2w09sQnOpfS+pSPnBFkNUUHawEuA44PLHtDvQgVuYrMAmSWFQpWabMoP5/Xg== + "integrity" "sha512-VLHOUBN+sOlkYC4tGuzE41yNPO2w09sQnOpfS+pSPnBFkNUUHawEuA44PLHtDvQgVuYrMAmSWFQpWabMoP5/Xg==" + "resolved" "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/types" "^11.0.0" - semver "7.3.2" + "semver" "7.3.2" "@commitlint/lint@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-11.0.0.tgz#01e062cd1b0e7c3d756aa2c246462e0b6a3348a4" - integrity sha512-Q8IIqGIHfwKr8ecVZyYh6NtXFmKw4YSEWEr2GJTB/fTZXgaOGtGFZDWOesCZllQ63f1s/oWJYtVv5RAEuwN8BQ== + "integrity" "sha512-Q8IIqGIHfwKr8ecVZyYh6NtXFmKw4YSEWEr2GJTB/fTZXgaOGtGFZDWOesCZllQ63f1s/oWJYtVv5RAEuwN8BQ==" + "resolved" "https://registry.npmjs.org/@commitlint/lint/-/lint-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/is-ignored" "^11.0.0" "@commitlint/parse" "^11.0.0" @@ -1166,54 +1145,54 @@ "@commitlint/types" "^11.0.0" "@commitlint/load@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-11.0.0.tgz#f736562f0ffa7e773f8808fea93319042ee18211" - integrity sha512-t5ZBrtgvgCwPfxmG811FCp39/o3SJ7L+SNsxFL92OR4WQxPcu6c8taD0CG2lzOHGuRyuMxZ7ps3EbngT2WpiCg== + "integrity" "sha512-t5ZBrtgvgCwPfxmG811FCp39/o3SJ7L+SNsxFL92OR4WQxPcu6c8taD0CG2lzOHGuRyuMxZ7ps3EbngT2WpiCg==" + "resolved" "https://registry.npmjs.org/@commitlint/load/-/load-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/execute-rule" "^11.0.0" "@commitlint/resolve-extends" "^11.0.0" "@commitlint/types" "^11.0.0" - chalk "4.1.0" - cosmiconfig "^7.0.0" - lodash "^4.17.19" - resolve-from "^5.0.0" + "chalk" "4.1.0" + "cosmiconfig" "^7.0.0" + "lodash" "^4.17.19" + "resolve-from" "^5.0.0" "@commitlint/message@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/message/-/message-11.0.0.tgz#83554c3cbbc884fd07b473593bc3e94bcaa3ee05" - integrity sha512-01ObK/18JL7PEIE3dBRtoMmU6S3ecPYDTQWWhcO+ErA3Ai0KDYqV5VWWEijdcVafNpdeUNrEMigRkxXHQLbyJA== + "integrity" "sha512-01ObK/18JL7PEIE3dBRtoMmU6S3ecPYDTQWWhcO+ErA3Ai0KDYqV5VWWEijdcVafNpdeUNrEMigRkxXHQLbyJA==" + "resolved" "https://registry.npmjs.org/@commitlint/message/-/message-11.0.0.tgz" + "version" "11.0.0" "@commitlint/parse@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/parse/-/parse-11.0.0.tgz#d18b08cf67c35d02115207d7009306a2e8e7c901" - integrity sha512-DekKQAIYWAXIcyAZ6/PDBJylWJ1BROTfDIzr9PMVxZRxBPc1gW2TG8fLgjZfBP5mc0cuthPkVi91KQQKGri/7A== + "integrity" "sha512-DekKQAIYWAXIcyAZ6/PDBJylWJ1BROTfDIzr9PMVxZRxBPc1gW2TG8fLgjZfBP5mc0cuthPkVi91KQQKGri/7A==" + "resolved" "https://registry.npmjs.org/@commitlint/parse/-/parse-11.0.0.tgz" + "version" "11.0.0" dependencies: - conventional-changelog-angular "^5.0.0" - conventional-commits-parser "^3.0.0" + "conventional-changelog-angular" "^5.0.0" + "conventional-commits-parser" "^3.0.0" "@commitlint/read@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/read/-/read-11.0.0.tgz#f24240548c63587bba139fa5a364cab926077016" - integrity sha512-37V0V91GSv0aDzMzJioKpCoZw6l0shk7+tRG8RkW1GfZzUIytdg3XqJmM+IaIYpaop0m6BbZtfq+idzUwJnw7g== + "integrity" "sha512-37V0V91GSv0aDzMzJioKpCoZw6l0shk7+tRG8RkW1GfZzUIytdg3XqJmM+IaIYpaop0m6BbZtfq+idzUwJnw7g==" + "resolved" "https://registry.npmjs.org/@commitlint/read/-/read-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/top-level" "^11.0.0" - fs-extra "^9.0.0" - git-raw-commits "^2.0.0" + "fs-extra" "^9.0.0" + "git-raw-commits" "^2.0.0" "@commitlint/resolve-extends@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-11.0.0.tgz#158ecbe27d4a2a51d426111a01478e216fbb1036" - integrity sha512-WinU6Uv6L7HDGLqn/To13KM1CWvZ09VHZqryqxXa1OY+EvJkfU734CwnOEeNlSCK7FVLrB4kmodLJtL1dkEpXw== + "integrity" "sha512-WinU6Uv6L7HDGLqn/To13KM1CWvZ09VHZqryqxXa1OY+EvJkfU734CwnOEeNlSCK7FVLrB4kmodLJtL1dkEpXw==" + "resolved" "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-11.0.0.tgz" + "version" "11.0.0" dependencies: - import-fresh "^3.0.0" - lodash "^4.17.19" - resolve-from "^5.0.0" - resolve-global "^1.0.0" + "import-fresh" "^3.0.0" + "lodash" "^4.17.19" + "resolve-from" "^5.0.0" + "resolve-global" "^1.0.0" "@commitlint/rules@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-11.0.0.tgz#bdb310cc6fc55c9f8d7d917a22b69055c535c375" - integrity sha512-2hD9y9Ep5ZfoNxDDPkQadd2jJeocrwC4vJ98I0g8pNYn/W8hS9+/FuNpolREHN8PhmexXbkjrwyQrWbuC0DVaA== + "integrity" "sha512-2hD9y9Ep5ZfoNxDDPkQadd2jJeocrwC4vJ98I0g8pNYn/W8hS9+/FuNpolREHN8PhmexXbkjrwyQrWbuC0DVaA==" + "resolved" "https://registry.npmjs.org/@commitlint/rules/-/rules-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/ensure" "^11.0.0" "@commitlint/message" "^11.0.0" @@ -1221,134 +1200,92 @@ "@commitlint/types" "^11.0.0" "@commitlint/to-lines@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/to-lines/-/to-lines-11.0.0.tgz#86dea151c10eea41e39ea96fa4de07839258a7fe" - integrity sha512-TIDTB0Y23jlCNubDROUVokbJk6860idYB5cZkLWcRS9tlb6YSoeLn1NLafPlrhhkkkZzTYnlKYzCVrBNVes1iw== + "integrity" "sha512-TIDTB0Y23jlCNubDROUVokbJk6860idYB5cZkLWcRS9tlb6YSoeLn1NLafPlrhhkkkZzTYnlKYzCVrBNVes1iw==" + "resolved" "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-11.0.0.tgz" + "version" "11.0.0" "@commitlint/top-level@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/top-level/-/top-level-11.0.0.tgz#bb2d1b6e5ed3be56874633b59e1f7de118c32783" - integrity sha512-O0nFU8o+Ws+py5pfMQIuyxOtfR/kwtr5ybqTvR+C2lUPer2x6lnQU+OnfD7hPM+A+COIUZWx10mYQvkR3MmtAA== + "integrity" "sha512-O0nFU8o+Ws+py5pfMQIuyxOtfR/kwtr5ybqTvR+C2lUPer2x6lnQU+OnfD7hPM+A+COIUZWx10mYQvkR3MmtAA==" + "resolved" "https://registry.npmjs.org/@commitlint/top-level/-/top-level-11.0.0.tgz" + "version" "11.0.0" dependencies: - find-up "^5.0.0" + "find-up" "^5.0.0" "@commitlint/types@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-11.0.0.tgz#719cf05fcc1abb6533610a2e0f5dd1e61eac14fe" - integrity sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ== - -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== - dependencies: - ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" - -"@hapi/address@2.x.x": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" - integrity sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ== - -"@hapi/bourne@1.x.x": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@hapi/bourne/-/bourne-1.3.2.tgz#0a7095adea067243ce3283e1b56b8a8f453b242a" - integrity sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA== - -"@hapi/hoek@8.x.x", "@hapi/hoek@^8.3.0": - version "8.5.1" - resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-8.5.1.tgz#fde96064ca446dec8c55a8c2f130957b070c6e06" - integrity sha512-yN7kbciD87WzLGc5539Tn0sApjyiGHAJgKvG9W8C7O+6c7qmoQMfVs0W4bX17eqz6C78QJqqFrtgdK5EWf6Qow== - -"@hapi/joi@^15.0.3": - version "15.1.1" - resolved "https://registry.yarnpkg.com/@hapi/joi/-/joi-15.1.1.tgz#c675b8a71296f02833f8d6d243b34c57b8ce19d7" - integrity sha512-entf8ZMOK8sc+8YfeOlM8pCfg3b5+WZIKBfUaaJT8UsjAAPjartzxIYm3TIbjvA4u+u++KbcXD38k682nVHDAQ== - dependencies: - "@hapi/address" "2.x.x" - "@hapi/bourne" "1.x.x" - "@hapi/hoek" "8.x.x" - "@hapi/topo" "3.x.x" - -"@hapi/topo@3.x.x": - version "3.1.6" - resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-3.1.6.tgz#68d935fa3eae7fdd5ab0d7f953f3205d8b2bfc29" - integrity sha512-tAag0jEcjwH+P2quUfipd7liWCNX2F8NvYjQp2wtInsZxnMlypdw0FtAOLxtvvkO+GSRRbmNi8m/5y42PQJYCQ== - dependencies: - "@hapi/hoek" "^8.3.0" - -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== - dependencies: - "@humanwhocodes/object-schema" "^1.2.0" - debug "^4.1.1" - minimatch "^3.0.4" - -"@humanwhocodes/object-schema@^1.2.0": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + "integrity" "sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ==" + "resolved" "https://registry.npmjs.org/@commitlint/types/-/types-11.0.0.tgz" + "version" "11.0.0" + +"@eslint/eslintrc@^0.2.2": + "integrity" "sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ==" + "resolved" "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.2.2.tgz" + "version" "0.2.2" + dependencies: + "ajv" "^6.12.4" + "debug" "^4.1.1" + "espree" "^7.3.0" + "globals" "^12.1.0" + "ignore" "^4.0.6" + "import-fresh" "^3.2.1" + "js-yaml" "^3.13.1" + "lodash" "^4.17.19" + "minimatch" "^3.0.4" + "strip-json-comments" "^3.1.1" + +"@hapi/hoek@^9.0.0": + "integrity" "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + "resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz" + "version" "9.3.0" + +"@hapi/topo@^5.0.0": + "integrity" "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==" + "resolved" "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "@hapi/hoek" "^9.0.0" "@hutson/parse-repository-url@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" - integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== + "integrity" "sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==" + "resolved" "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz" + "version" "3.0.2" "@iarna/toml@2.2.5": - version "2.2.5" - resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c" - integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== + "integrity" "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" + "resolved" "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz" + "version" "2.2.5" "@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + "integrity" "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==" + "resolved" "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" + "version" "1.1.0" dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" + "camelcase" "^5.3.1" + "find-up" "^4.1.0" + "get-package-type" "^0.1.0" + "js-yaml" "^3.13.1" + "resolve-from" "^5.0.0" "@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" - integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== - dependencies: - "@jest/source-map" "^24.9.0" - chalk "^2.0.1" - slash "^2.0.0" + "integrity" "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==" + "resolved" "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz" + "version" "0.1.2" "@jest/console@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2" - integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== + "integrity" "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==" + "resolved" "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^26.6.2" - jest-util "^26.6.2" - slash "^3.0.0" + "chalk" "^4.0.0" + "jest-message-util" "^26.6.2" + "jest-util" "^26.6.2" + "slash" "^3.0.0" "@jest/core@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" - integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== + "integrity" "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==" + "resolved" "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/console" "^26.6.2" "@jest/reporters" "^26.6.2" @@ -1356,551 +1293,647 @@ "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-changed-files "^26.6.2" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-resolve-dependencies "^26.6.3" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - jest-watcher "^26.6.2" - micromatch "^4.0.2" - p-each-series "^2.1.0" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" + "ansi-escapes" "^4.2.1" + "chalk" "^4.0.0" + "exit" "^0.1.2" + "graceful-fs" "^4.2.4" + "jest-changed-files" "^26.6.2" + "jest-config" "^26.6.3" + "jest-haste-map" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-regex-util" "^26.0.0" + "jest-resolve" "^26.6.2" + "jest-resolve-dependencies" "^26.6.3" + "jest-runner" "^26.6.3" + "jest-runtime" "^26.6.3" + "jest-snapshot" "^26.6.2" + "jest-util" "^26.6.2" + "jest-validate" "^26.6.2" + "jest-watcher" "^26.6.2" + "micromatch" "^4.0.2" + "p-each-series" "^2.1.0" + "rimraf" "^3.0.0" + "slash" "^3.0.0" + "strip-ansi" "^6.0.0" + +"@jest/create-cache-key-function@^29.0.3": + "integrity" "sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ==" + "resolved" "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz" + "version" "29.2.1" + dependencies: + "@jest/types" "^29.2.1" "@jest/environment@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c" - integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== + "integrity" "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==" + "resolved" "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - jest-mock "^26.6.2" - -"@jest/fake-timers@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" - integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== - dependencies: - "@jest/types" "^24.9.0" - jest-message-util "^24.9.0" - jest-mock "^24.9.0" + "jest-mock" "^26.6.2" "@jest/fake-timers@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad" - integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== + "integrity" "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==" + "resolved" "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" "@sinonjs/fake-timers" "^6.0.1" "@types/node" "*" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-util "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-mock" "^26.6.2" + "jest-util" "^26.6.2" "@jest/globals@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a" - integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== + "integrity" "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==" + "resolved" "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/environment" "^26.6.2" "@jest/types" "^26.6.2" - expect "^26.6.2" + "expect" "^26.6.2" "@jest/reporters@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" - integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== + "integrity" "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==" + "resolved" "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz" + "version" "26.6.2" dependencies: "@bcoe/v8-coverage" "^0.2.3" "@jest/console" "^26.6.2" "@jest/test-result" "^26.6.2" "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.4" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^4.0.3" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.0.2" - jest-haste-map "^26.6.2" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^7.0.0" + "chalk" "^4.0.0" + "collect-v8-coverage" "^1.0.0" + "exit" "^0.1.2" + "glob" "^7.1.2" + "graceful-fs" "^4.2.4" + "istanbul-lib-coverage" "^3.0.0" + "istanbul-lib-instrument" "^4.0.3" + "istanbul-lib-report" "^3.0.0" + "istanbul-lib-source-maps" "^4.0.0" + "istanbul-reports" "^3.0.2" + "jest-haste-map" "^26.6.2" + "jest-resolve" "^26.6.2" + "jest-util" "^26.6.2" + "jest-worker" "^26.6.2" + "slash" "^3.0.0" + "source-map" "^0.6.0" + "string-length" "^4.0.1" + "terminal-link" "^2.0.0" + "v8-to-istanbul" "^7.0.0" optionalDependencies: - node-notifier "^8.0.0" + "node-notifier" "^8.0.0" -"@jest/source-map@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" - integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== +"@jest/schemas@^29.0.0": + "integrity" "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==" + "resolved" "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz" + "version" "29.0.0" dependencies: - callsites "^3.0.0" - graceful-fs "^4.1.15" - source-map "^0.6.0" + "@sinclair/typebox" "^0.24.1" "@jest/source-map@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535" - integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== + "integrity" "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==" + "resolved" "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz" + "version" "26.6.2" dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.4" - source-map "^0.6.0" - -"@jest/test-result@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca" - integrity sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA== - dependencies: - "@jest/console" "^24.9.0" - "@jest/types" "^24.9.0" - "@types/istanbul-lib-coverage" "^2.0.0" + "callsites" "^3.0.0" + "graceful-fs" "^4.2.4" + "source-map" "^0.6.0" "@jest/test-result@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18" - integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== + "integrity" "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==" + "resolved" "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/console" "^26.6.2" "@jest/types" "^26.6.2" "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" + "collect-v8-coverage" "^1.0.0" "@jest/test-sequencer@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" - integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== + "integrity" "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==" + "resolved" "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/test-result" "^26.6.2" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" + "graceful-fs" "^4.2.4" + "jest-haste-map" "^26.6.2" + "jest-runner" "^26.6.3" + "jest-runtime" "^26.6.3" "@jest/transform@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b" - integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== + "integrity" "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==" + "resolved" "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz" + "version" "26.6.2" dependencies: "@babel/core" "^7.1.0" "@jest/types" "^26.6.2" - babel-plugin-istanbul "^6.0.0" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-regex-util "^26.0.0" - jest-util "^26.6.2" - micromatch "^4.0.2" - pirates "^4.0.1" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" - integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== + "babel-plugin-istanbul" "^6.0.0" + "chalk" "^4.0.0" + "convert-source-map" "^1.4.0" + "fast-json-stable-stringify" "^2.0.0" + "graceful-fs" "^4.2.4" + "jest-haste-map" "^26.6.2" + "jest-regex-util" "^26.0.0" + "jest-util" "^26.6.2" + "micromatch" "^4.0.2" + "pirates" "^4.0.1" + "slash" "^3.0.0" + "source-map" "^0.6.1" + "write-file-atomic" "^3.0.0" + +"@jest/types@^26.6.2": + "integrity" "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==" + "resolved" "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz" + "version" "26.6.2" dependencies: "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^1.1.1" - "@types/yargs" "^13.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + "chalk" "^4.0.0" -"@jest/types@^25.5.0": - version "25.5.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d" - integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw== +"@jest/types@^27.5.1": + "integrity" "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==" + "resolved" "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz" + "version" "27.5.1" dependencies: "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^1.1.1" - "@types/yargs" "^15.0.0" - chalk "^3.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + "chalk" "^4.0.0" -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== +"@jest/types@^29.2.1": + "integrity" "sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw==" + "resolved" "https://registry.npmjs.org/@jest/types/-/types-29.2.1.tgz" + "version" "29.2.1" dependencies: + "@jest/schemas" "^29.0.0" "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" + "@types/yargs" "^17.0.8" + "chalk" "^4.0.0" "@jridgewell/gen-mapping@^0.1.0": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" - integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + "integrity" "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==" + "resolved" "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz" + "version" "0.1.1" dependencies: "@jridgewell/set-array" "^1.0.0" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/gen-mapping@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" - integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + "integrity" "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==" + "resolved" "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz" + "version" "0.3.2" dependencies: "@jridgewell/set-array" "^1.0.1" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" "@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + "integrity" "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + "resolved" "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" + "version" "3.1.0" "@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" - integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + "integrity" "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + "resolved" "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" + "version" "1.1.2" -"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@1.4.14": + "integrity" "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "resolved" "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" + "version" "1.4.14" "@jridgewell/trace-mapping@^0.3.9": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" - integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== + "integrity" "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==" + "resolved" "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz" + "version" "0.3.17" dependencies: "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" "@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + "integrity" "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + "version" "2.1.5" dependencies: "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" + "run-parallel" "^1.1.9" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== +"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": + "integrity" "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + "version" "2.0.5" "@nodelib/fs.walk@^1.2.3": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + "integrity" "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + "version" "1.2.8" dependencies: "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@octokit/auth-token@^2.4.4": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" - integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== - dependencies: - "@octokit/types" "^6.0.3" - -"@octokit/core@^3.5.1": - version "3.6.0" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.6.0.tgz#3376cb9f3008d9b3d110370d90e0a1fcd5fe6085" - integrity sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q== - dependencies: - "@octokit/auth-token" "^2.4.4" - "@octokit/graphql" "^4.5.8" - "@octokit/request" "^5.6.3" - "@octokit/request-error" "^2.0.5" - "@octokit/types" "^6.0.3" - before-after-hook "^2.2.0" - universal-user-agent "^6.0.0" - -"@octokit/endpoint@^6.0.1": - version "6.0.12" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658" - integrity sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA== - dependencies: - "@octokit/types" "^6.0.3" - is-plain-object "^5.0.0" - universal-user-agent "^6.0.0" - -"@octokit/graphql@^4.5.8": - version "4.8.0" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.8.0.tgz#664d9b11c0e12112cbf78e10f49a05959aa22cc3" - integrity sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg== - dependencies: - "@octokit/request" "^5.6.0" - "@octokit/types" "^6.0.3" - universal-user-agent "^6.0.0" - -"@octokit/openapi-types@^12.11.0": - version "12.11.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.11.0.tgz#da5638d64f2b919bca89ce6602d059f1b52d3ef0" - integrity sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ== - -"@octokit/plugin-paginate-rest@^2.16.8": - version "2.21.3" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz#7f12532797775640dbb8224da577da7dc210c87e" - integrity sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw== - dependencies: - "@octokit/types" "^6.40.0" + "fastq" "^1.6.0" + +"@octokit/auth-token@^3.0.0": + "integrity" "sha512-pq7CwIMV1kmzkFTimdwjAINCXKTajZErLB4wMLYapR2nuB/Jpr66+05wOTZMSCBXP6n4DdDWT2W19Bm17vU69Q==" + "resolved" "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "@octokit/types" "^8.0.0" + +"@octokit/core@^4.0.0", "@octokit/core@>=3", "@octokit/core@>=4": + "integrity" "sha512-Czz/59VefU+kKDy+ZfDwtOIYIkFjExOKf+HA92aiTZJ6EfWpFzYQWw0l54ji8bVmyhc+mGaLUbSUmXazG7z5OQ==" + "resolved" "https://registry.npmjs.org/@octokit/core/-/core-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "@octokit/auth-token" "^3.0.0" + "@octokit/graphql" "^5.0.0" + "@octokit/request" "^6.0.0" + "@octokit/request-error" "^3.0.0" + "@octokit/types" "^8.0.0" + "before-after-hook" "^2.2.0" + "universal-user-agent" "^6.0.0" + +"@octokit/endpoint@^7.0.0": + "integrity" "sha512-57gRlb28bwTsdNXq+O3JTQ7ERmBTuik9+LelgcLIVfYwf235VHbN9QNo4kXExtp/h8T423cR5iJThKtFYxC7Lw==" + "resolved" "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.3.tgz" + "version" "7.0.3" + dependencies: + "@octokit/types" "^8.0.0" + "is-plain-object" "^5.0.0" + "universal-user-agent" "^6.0.0" + +"@octokit/graphql@^5.0.0": + "integrity" "sha512-amO1M5QUQgYQo09aStR/XO7KAl13xpigcy/kI8/N1PnZYSS69fgte+xA4+c2DISKqUZfsh0wwjc2FaCt99L41A==" + "resolved" "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.4.tgz" + "version" "5.0.4" + dependencies: + "@octokit/request" "^6.0.0" + "@octokit/types" "^8.0.0" + "universal-user-agent" "^6.0.0" + +"@octokit/openapi-types@^13.11.0": + "integrity" "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==" + "resolved" "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz" + "version" "13.13.1" + +"@octokit/openapi-types@^14.0.0": + "integrity" "sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==" + "resolved" "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-14.0.0.tgz" + "version" "14.0.0" + +"@octokit/plugin-paginate-rest@^4.0.0": + "integrity" "sha512-h8KKxESmSFTcXX409CAxlaOYscEDvN2KGQRsLCGT1NSqRW+D6EXLVQ8vuHhFznS9MuH9QYw1GfsUN30bg8hjVA==" + "resolved" "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.3.1.tgz" + "version" "4.3.1" + dependencies: + "@octokit/types" "^7.5.0" "@octokit/plugin-request-log@^1.0.4": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" - integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== - -"@octokit/plugin-rest-endpoint-methods@^5.12.0": - version "5.16.2" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz#7ee8bf586df97dd6868cf68f641354e908c25342" - integrity sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw== - dependencies: - "@octokit/types" "^6.39.0" - deprecation "^2.3.1" - -"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" - integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg== - dependencies: - "@octokit/types" "^6.0.3" - deprecation "^2.0.0" - once "^1.4.0" - -"@octokit/request@^5.6.0", "@octokit/request@^5.6.3": - version "5.6.3" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0" - integrity sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A== - dependencies: - "@octokit/endpoint" "^6.0.1" - "@octokit/request-error" "^2.1.0" - "@octokit/types" "^6.16.1" - is-plain-object "^5.0.0" - node-fetch "^2.6.7" - universal-user-agent "^6.0.0" - -"@octokit/rest@18.12.0": - version "18.12.0" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881" - integrity sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q== - dependencies: - "@octokit/core" "^3.5.1" - "@octokit/plugin-paginate-rest" "^2.16.8" + "integrity" "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==" + "resolved" "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz" + "version" "1.0.4" + +"@octokit/plugin-rest-endpoint-methods@^6.0.0": + "integrity" "sha512-orxQ0fAHA7IpYhG2flD2AygztPlGYNAdlzYz8yrD8NDgelPfOYoRPROfEyIe035PlxvbYrgkfUZIhSBKju/Cvw==" + "resolved" "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.7.0.tgz" + "version" "6.7.0" + dependencies: + "@octokit/types" "^8.0.0" + "deprecation" "^2.3.1" + +"@octokit/request-error@^3.0.0": + "integrity" "sha512-WMNOFYrSaX8zXWoJg9u/pKgWPo94JXilMLb2VManNOby9EZxrQaBe/QSC4a1TzpAlpxofg2X/jMnCyZgL6y7eg==" + "resolved" "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "@octokit/types" "^8.0.0" + "deprecation" "^2.0.0" + "once" "^1.4.0" + +"@octokit/request@^6.0.0": + "integrity" "sha512-6VDqgj0HMc2FUX2awIs+sM6OwLgwHvAi4KCK3mT2H2IKRt6oH9d0fej5LluF5mck1lRR/rFWN0YIDSYXYSylbw==" + "resolved" "https://registry.npmjs.org/@octokit/request/-/request-6.2.2.tgz" + "version" "6.2.2" + dependencies: + "@octokit/endpoint" "^7.0.0" + "@octokit/request-error" "^3.0.0" + "@octokit/types" "^8.0.0" + "is-plain-object" "^5.0.0" + "node-fetch" "^2.6.7" + "universal-user-agent" "^6.0.0" + +"@octokit/rest@19.0.4": + "integrity" "sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA==" + "resolved" "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz" + "version" "19.0.4" + dependencies: + "@octokit/core" "^4.0.0" + "@octokit/plugin-paginate-rest" "^4.0.0" "@octokit/plugin-request-log" "^1.0.4" - "@octokit/plugin-rest-endpoint-methods" "^5.12.0" - -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0", "@octokit/types@^6.40.0": - version "6.41.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04" - integrity sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg== - dependencies: - "@octokit/openapi-types" "^12.11.0" - -"@react-native-community/cli-debugger-ui@^4.13.1": - version "4.13.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-4.13.1.tgz#07de6d4dab80ec49231de1f1fbf658b4ad39b32c" - integrity sha512-UFnkg5RTq3s2X15fSkrWY9+5BKOFjihNSnJjTV2H5PtTUFbd55qnxxPw8CxSfK0bXb1IrSvCESprk2LEpqr5cg== - dependencies: - serve-static "^1.13.1" - -"@react-native-community/cli-hermes@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-4.13.0.tgz#6243ed9c709dad5e523f1ccd7d21066b32f2899d" - integrity sha512-oG+w0Uby6rSGsUkJGLvMQctZ5eVRLLfhf84lLyz942OEDxFRa9U19YJxOe9FmgCKtotbYiM3P/XhK+SVCuerPQ== - dependencies: - "@react-native-community/cli-platform-android" "^4.13.0" - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" - hermes-profile-transformer "^0.0.6" - ip "^1.1.5" - -"@react-native-community/cli-platform-android@^4.10.0", "@react-native-community/cli-platform-android@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-4.13.0.tgz#922681ec82ee1aadd993598b814df1152118be02" - integrity sha512-3i8sX8GklEytUZwPnojuoFbCjIRzMugCdzDIdZ9UNmi/OhD4/8mLGO0dgXfT4sMWjZwu3qjy45sFfk2zOAgHbA== - dependencies: - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" - execa "^1.0.0" - fs-extra "^8.1.0" - glob "^7.1.3" - jetifier "^1.6.2" - lodash "^4.17.15" - logkitty "^0.7.1" - slash "^3.0.0" - xmldoc "^1.1.2" - -"@react-native-community/cli-platform-ios@^4.10.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-4.13.0.tgz#a738915c68cac86df54e578b59a1311ea62b1aef" - integrity sha512-6THlTu8zp62efkzimfGr3VIuQJ2514o+vScZERJCV1xgEi8XtV7mb/ZKt9o6Y9WGxKKkc0E0b/aVAtgy+L27CA== - dependencies: - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" - glob "^7.1.3" - js-yaml "^3.13.1" - lodash "^4.17.15" - plist "^3.0.1" - xcode "^2.0.0" - -"@react-native-community/cli-server-api@^4.13.1": - version "4.13.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-4.13.1.tgz#bee7ee9702afce848e9d6ca3dcd5669b99b125bd" - integrity sha512-vQzsFKD9CjHthA2ehTQX8c7uIzlI9A7ejaIow1I9RlEnLraPH2QqVDmzIdbdh5Od47UPbRzamCgAP8Bnqv3qwQ== - dependencies: - "@react-native-community/cli-debugger-ui" "^4.13.1" - "@react-native-community/cli-tools" "^4.13.0" - compression "^1.7.1" - connect "^3.6.5" - errorhandler "^1.5.0" - nocache "^2.1.0" - pretty-format "^25.1.0" - serve-static "^1.13.1" - ws "^1.1.0" - -"@react-native-community/cli-tools@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-4.13.0.tgz#b406463d33af16cedc4305a9a9257ed32845cf1b" - integrity sha512-s4f489h5+EJksn4CfheLgv5PGOM0CDmK1UEBLw2t/ncWs3cW2VI7vXzndcd/WJHTv3GntJhXDcJMuL+Z2IAOgg== - dependencies: - chalk "^3.0.0" - lodash "^4.17.15" - mime "^2.4.1" - node-fetch "^2.6.0" - open "^6.2.0" - shell-quote "1.6.1" - -"@react-native-community/cli-types@^4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-4.10.1.tgz#d68a2dcd1649d3b3774823c64e5e9ce55bfbe1c9" - integrity sha512-ael2f1onoPF3vF7YqHGWy7NnafzGu+yp88BbFbP0ydoCP2xGSUzmZVw0zakPTC040Id+JQ9WeFczujMkDy6jYQ== - -"@react-native-community/cli@^4.10.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-4.14.0.tgz#bb106a98341bfa2db36060091ff90bfe82ea4f55" - integrity sha512-EYJKBuxFxAu/iwNUfwDq41FjORpvSh1wvQ3qsHjzcR5uaGlWEOJrd3uNJDuKBAS0TVvbEesLF9NEXipjyRVr4Q== - dependencies: - "@hapi/joi" "^15.0.3" - "@react-native-community/cli-debugger-ui" "^4.13.1" - "@react-native-community/cli-hermes" "^4.13.0" - "@react-native-community/cli-server-api" "^4.13.1" - "@react-native-community/cli-tools" "^4.13.0" - "@react-native-community/cli-types" "^4.10.1" - chalk "^3.0.0" - command-exists "^1.2.8" - commander "^2.19.0" - cosmiconfig "^5.1.0" - deepmerge "^3.2.0" - envinfo "^7.7.2" - execa "^1.0.0" - find-up "^4.1.0" - fs-extra "^8.1.0" - glob "^7.1.3" - graceful-fs "^4.1.3" - inquirer "^3.0.6" - leven "^3.1.0" - lodash "^4.17.15" - metro "^0.59.0" - metro-config "^0.59.0" - metro-core "^0.59.0" - metro-react-native-babel-transformer "^0.59.0" - metro-resolver "^0.59.0" - minimist "^1.2.0" - mkdirp "^0.5.1" - node-stream-zip "^1.9.1" - ora "^3.4.0" - pretty-format "^25.2.0" - semver "^6.3.0" - serve-static "^1.13.1" - strip-ansi "^5.2.0" - sudo-prompt "^9.0.0" - wcwidth "^1.0.1" + "@octokit/plugin-rest-endpoint-methods" "^6.0.0" + +"@octokit/types@^7.5.0": + "integrity" "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==" + "resolved" "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz" + "version" "7.5.1" + dependencies: + "@octokit/openapi-types" "^13.11.0" + +"@octokit/types@^8.0.0": + "integrity" "sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg==" + "resolved" "https://registry.npmjs.org/@octokit/types/-/types-8.0.0.tgz" + "version" "8.0.0" + dependencies: + "@octokit/openapi-types" "^14.0.0" + +"@pnpm/network.ca-file@^1.0.1": + "integrity" "sha512-gkINruT2KUhZLTaiHxwCOh1O4NVnFT0wLjWFBHmTz9vpKag/C/noIMJXBxFe4F0mYpUVX2puLwAieLYFg2NvoA==" + "resolved" "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "graceful-fs" "4.2.10" + +"@pnpm/npm-conf@^1.0.4": + "integrity" "sha512-hD8ml183638O3R6/Txrh0L8VzGOrFXgRtRDG4qQC4tONdZ5Z1M+tlUUDUvrjYdmK6G+JTBTeaCLMna11cXzi8A==" + "resolved" "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-1.0.5.tgz" + "version" "1.0.5" + dependencies: + "@pnpm/network.ca-file" "^1.0.1" + "config-chain" "^1.1.11" + +"@react-native-community/cli-clean@^9.2.1": + "integrity" "sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "execa" "^1.0.0" + "prompts" "^2.4.0" + +"@react-native-community/cli-config@^9.2.1": + "integrity" "sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + "cosmiconfig" "^5.1.0" + "deepmerge" "^3.2.0" + "glob" "^7.1.3" + "joi" "^17.2.1" + +"@react-native-community/cli-debugger-ui@^9.0.0": + "integrity" "sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz" + "version" "9.0.0" + dependencies: + "serve-static" "^1.13.1" + +"@react-native-community/cli-doctor@^9.2.1": + "integrity" "sha512-RpUax0pkKumXJ5hcRG0Qd+oYWsA2RFeMWKY+Npg8q05Cwd1rqDQfWGprkHC576vz26+FPuvwEagoAf6fR2bvJA==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-platform-ios" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "command-exists" "^1.2.8" + "envinfo" "^7.7.2" + "execa" "^1.0.0" + "hermes-profile-transformer" "^0.0.6" + "ip" "^1.1.5" + "node-stream-zip" "^1.9.1" + "ora" "^5.4.1" + "prompts" "^2.4.0" + "semver" "^6.3.0" + "strip-ansi" "^5.2.0" + "sudo-prompt" "^9.0.0" + "wcwidth" "^1.0.1" + +"@react-native-community/cli-hermes@^9.2.1": + "integrity" "sha512-723/NMb7egXzJrbWT1uEkN2hOpw+OOtWTG2zKJ3j7KKgUd8u/pP+/z5jO8xVrq+eYJEMjDK0FBEo1Xj7maR4Sw==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-platform-android" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "hermes-profile-transformer" "^0.0.6" + "ip" "^1.1.5" + +"@react-native-community/cli-platform-android@^9.2.1", "@react-native-community/cli-platform-android@9.2.1": + "integrity" "sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "execa" "^1.0.0" + "fs-extra" "^8.1.0" + "glob" "^7.1.3" + "logkitty" "^0.7.1" + "slash" "^3.0.0" + +"@react-native-community/cli-platform-ios@^9.2.1", "@react-native-community/cli-platform-ios@9.2.1": + "integrity" "sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "execa" "^1.0.0" + "glob" "^7.1.3" + "ora" "^5.4.1" + +"@react-native-community/cli-plugin-metro@^9.2.1": + "integrity" "sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "chalk" "^4.1.2" + "metro" "0.72.3" + "metro-config" "0.72.3" + "metro-core" "0.72.3" + "metro-react-native-babel-transformer" "0.72.3" + "metro-resolver" "0.72.3" + "metro-runtime" "0.72.3" + "readline" "^1.3.0" + +"@react-native-community/cli-server-api@^9.2.1": + "integrity" "sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-tools" "^9.2.1" + "compression" "^1.7.1" + "connect" "^3.6.5" + "errorhandler" "^1.5.0" + "nocache" "^3.0.1" + "pretty-format" "^26.6.2" + "serve-static" "^1.13.1" + "ws" "^7.5.1" + +"@react-native-community/cli-tools@^9.2.1": + "integrity" "sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "appdirsjs" "^1.2.4" + "chalk" "^4.1.2" + "find-up" "^5.0.0" + "mime" "^2.4.1" + "node-fetch" "^2.6.0" + "open" "^6.2.0" + "ora" "^5.4.1" + "semver" "^6.3.0" + "shell-quote" "^1.7.3" + +"@react-native-community/cli-types@^9.1.0": + "integrity" "sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-9.1.0.tgz" + "version" "9.1.0" + dependencies: + "joi" "^17.2.1" + +"@react-native-community/cli@9.2.1": + "integrity" "sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/cli/-/cli-9.2.1.tgz" + "version" "9.2.1" + dependencies: + "@react-native-community/cli-clean" "^9.2.1" + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-doctor" "^9.2.1" + "@react-native-community/cli-hermes" "^9.2.1" + "@react-native-community/cli-plugin-metro" "^9.2.1" + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "@react-native-community/cli-types" "^9.1.0" + "chalk" "^4.1.2" + "commander" "^9.4.0" + "execa" "^1.0.0" + "find-up" "^4.1.0" + "fs-extra" "^8.1.0" + "graceful-fs" "^4.1.3" + "prompts" "^2.4.0" + "semver" "^6.3.0" "@react-native-community/eslint-config@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz#35dcc529a274803fc4e0a6b3d6c274551fb91774" - integrity sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg== + "integrity" "sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg==" + "resolved" "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz" + "version" "2.0.0" dependencies: "@react-native-community/eslint-plugin" "^1.1.0" "@typescript-eslint/eslint-plugin" "^3.1.0" "@typescript-eslint/parser" "^3.1.0" - babel-eslint "^10.1.0" - eslint-config-prettier "^6.10.1" - eslint-plugin-eslint-comments "^3.1.2" - eslint-plugin-flowtype "2.50.3" - eslint-plugin-jest "22.4.1" - eslint-plugin-prettier "3.1.2" - eslint-plugin-react "^7.20.0" - eslint-plugin-react-hooks "^4.0.4" - eslint-plugin-react-native "^3.8.1" - prettier "^2.0.2" + "babel-eslint" "^10.1.0" + "eslint-config-prettier" "^6.10.1" + "eslint-plugin-eslint-comments" "^3.1.2" + "eslint-plugin-flowtype" "2.50.3" + "eslint-plugin-jest" "22.4.1" + "eslint-plugin-prettier" "3.1.2" + "eslint-plugin-react" "^7.20.0" + "eslint-plugin-react-hooks" "^4.0.4" + "eslint-plugin-react-native" "^3.8.1" + "prettier" "^2.0.2" "@react-native-community/eslint-plugin@^1.1.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9" - integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg== - -"@release-it/conventional-changelog@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@release-it/conventional-changelog/-/conventional-changelog-2.0.1.tgz#bdd52ad3ecc0d6e39d637592d6ea2bd6d28e5ecb" - integrity sha512-q67D3Jod935kZt6wThsDeOmhY+RWYPMY7nYyl0YxiXK8vVZzD+9z957fXGz+8Uk3iugmgDaucht7VxTaZlu6nA== - dependencies: - concat-stream "^2.0.0" - conventional-changelog "^3.1.24" - conventional-recommended-bump "^6.1.0" - prepend-file "^2.0.0" - -"@sindresorhus/is@^0.14.0": - version "0.14.0" - resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" - integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== + "integrity" "sha512-W/J0fNYVO01tioHjvYWQ9m6RgndVtbElzYozBq1ZPrHO/iCzlqoySHl4gO/fpCl9QEFjvJfjPgtPMTMlsoq5DQ==" + "resolved" "https://registry.npmjs.org/@react-native-community/eslint-plugin/-/eslint-plugin-1.1.0.tgz" + "version" "1.1.0" + +"@react-native/assets@1.0.0": + "integrity" "sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ==" + "resolved" "https://registry.npmjs.org/@react-native/assets/-/assets-1.0.0.tgz" + "version" "1.0.0" + +"@react-native/normalize-color@2.0.0": + "integrity" "sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw==" + "resolved" "https://registry.npmjs.org/@react-native/normalize-color/-/normalize-color-2.0.0.tgz" + "version" "2.0.0" + +"@react-native/polyfills@2.0.0": + "integrity" "sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ==" + "resolved" "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz" + "version" "2.0.0" + +"@release-it/conventional-changelog@^5.1.1": + "integrity" "sha512-QtbDBe36dQfzexAfDYrbLPvd5Cb5bMWmLcjcGhCOWBss7fe1/gCjoxDULVz+7N7G5Nu2UMeBwHcUp/w8RDh5VQ==" + "resolved" "https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-5.1.1.tgz" + "version" "5.1.1" + dependencies: + "concat-stream" "^2.0.0" + "conventional-changelog" "^3.1.25" + "conventional-recommended-bump" "^6.1.0" + "semver" "7.3.8" + +"@sideway/address@^4.1.3": + "integrity" "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==" + "resolved" "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz" + "version" "4.1.4" + dependencies: + "@hapi/hoek" "^9.0.0" + +"@sideway/formula@^3.0.0": + "integrity" "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" + "resolved" "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz" + "version" "3.0.0" + +"@sideway/pinpoint@^2.0.0": + "integrity" "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + "resolved" "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz" + "version" "2.0.0" + +"@sinclair/typebox@^0.24.1": + "integrity" "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" + "resolved" "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz" + "version" "0.24.51" + +"@sindresorhus/is@^5.2.0": + "integrity" "sha512-CX6t4SYQ37lzxicAqsBtxA3OseeoVrh9cSJ5PFYam0GksYlupRfy1A+Q4aYD3zvcfECLc0zO2u+ZnR2UYKvCrw==" + "resolved" "https://registry.npmjs.org/@sindresorhus/is/-/is-5.3.0.tgz" + "version" "5.3.0" "@sinonjs/commons@^1.7.0": - version "1.8.6" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.6.tgz#80c516a4dc264c2a69115e7578d62581ff455ed9" - integrity sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ== + "integrity" "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==" + "resolved" "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz" + "version" "1.8.1" dependencies: - type-detect "4.0.8" + "type-detect" "4.0.8" "@sinonjs/fake-timers@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" - integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== + "integrity" "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==" + "resolved" "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz" + "version" "6.0.1" dependencies: "@sinonjs/commons" "^1.7.0" -"@szmarczak/http-timer@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" - integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== +"@szmarczak/http-timer@^5.0.1": + "integrity" "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==" + "resolved" "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz" + "version" "5.0.1" dependencies: - defer-to-connect "^1.0.1" + "defer-to-connect" "^2.0.1" "@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + "integrity" "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==" + "resolved" "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz" + "version" "1.1.2" "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": - version "7.1.20" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.20.tgz#e168cdd612c92a2d335029ed62ac94c95b362359" - integrity sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ== + "integrity" "sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==" + "resolved" "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz" + "version" "7.1.12" dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" @@ -1909,709 +1942,642 @@ "@types/babel__traverse" "*" "@types/babel__generator@*": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" - integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== + "integrity" "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==" + "resolved" "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz" + "version" "7.6.2" dependencies: "@babel/types" "^7.0.0" "@types/babel__template@*": - version "7.4.1" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" - integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== + "integrity" "sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==" + "resolved" "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz" + "version" "7.4.0" dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.18.3" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.3.tgz#dfc508a85781e5698d5b33443416b6268c4b3e8d" - integrity sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w== + "integrity" "sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==" + "resolved" "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.0.tgz" + "version" "7.11.0" dependencies: "@babel/types" "^7.3.0" "@types/eslint-visitor-keys@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" - integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + "integrity" "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==" + "resolved" "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz" + "version" "1.0.0" "@types/graceful-fs@^4.1.2": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" - integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== + "integrity" "sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==" + "resolved" "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz" + "version" "4.1.4" dependencies: "@types/node" "*" +"@types/http-cache-semantics@^4.0.1": + "integrity" "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" + "resolved" "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz" + "version" "4.0.1" + "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== + "integrity" "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==" + "resolved" "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz" + "version" "2.0.3" "@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== + "integrity" "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==" + "resolved" "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + "version" "3.0.0" dependencies: "@types/istanbul-lib-coverage" "*" -"@types/istanbul-reports@^1.1.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz#e875cc689e47bce549ec81f3df5e6f6f11cfaeb2" - integrity sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw== - dependencies: - "@types/istanbul-lib-coverage" "*" - "@types/istanbul-lib-report" "*" - "@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== + "integrity" "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==" + "resolved" "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz" + "version" "3.0.0" dependencies: "@types/istanbul-lib-report" "*" "@types/jest@^26.0.0": - version "26.0.24" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" - integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== + "integrity" "sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA==" + "resolved" "https://registry.npmjs.org/@types/jest/-/jest-26.0.20.tgz" + "version" "26.0.20" dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" + "jest-diff" "^26.0.0" + "pretty-format" "^26.0.0" "@types/json-schema@^7.0.3": - version "7.0.11" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" - integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + "integrity" "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==" + "resolved" "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz" + "version" "7.0.6" "@types/minimist@^1.2.0": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" - integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== + "integrity" "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==" + "resolved" "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.1.tgz" + "version" "1.2.1" "@types/node@*": - version "18.11.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17.tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5" - integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng== + "integrity" "sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A==" + "resolved" "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz" + "version" "14.14.20" "@types/normalize-package-data@^2.4.0": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" - integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== + "integrity" "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==" + "resolved" "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz" + "version" "2.4.0" "@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== + "integrity" "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + "resolved" "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz" + "version" "4.0.0" "@types/prettier@^2.0.0": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0" - integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== + "integrity" "sha512-6gOkRe7OIioWAXfnO/2lFiv+SJichKVSys1mSsgyrYHSEjk8Ctv4tSR/Odvnu+HWlH2C8j53dahU03XmQdd5fA==" + "resolved" "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.6.tgz" + "version" "2.1.6" "@types/prop-types@*": - version "15.7.5" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" - integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== + "integrity" "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" + "resolved" "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz" + "version" "15.7.3" "@types/react-native@0.62.13": - version "0.62.13" - resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.62.13.tgz#c688c5ae03e426f927f7e1fa1a59cd067f35d1c2" - integrity sha512-hs4/tSABhcJx+J8pZhVoXHrOQD89WFmbs8QiDLNSA9zNrD46pityAuBWuwk1aMjPk9I3vC5ewkJroVRHgRIfdg== + "integrity" "sha512-hs4/tSABhcJx+J8pZhVoXHrOQD89WFmbs8QiDLNSA9zNrD46pityAuBWuwk1aMjPk9I3vC5ewkJroVRHgRIfdg==" + "resolved" "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.13.tgz" + "version" "0.62.13" dependencies: "@types/react" "*" -"@types/react@*": - version "18.0.26" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.26.tgz#8ad59fc01fef8eaf5c74f4ea392621749f0b7917" - integrity sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug== +"@types/react@*", "@types/react@^16.9.19": + "integrity" "sha512-BzzcAlyDxXl2nANlabtT4thtvbbnhee8hMmH/CcJrISDBVcJS1iOsP1f0OAgSdGE0MsY9tqcrb9YoZcOFv9dbQ==" + "resolved" "https://registry.npmjs.org/@types/react/-/react-16.14.2.tgz" + "version" "16.14.2" dependencies: "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/react@^16.9.19": - version "16.14.34" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.14.34.tgz#d129324ffda312044e1c47aab18696e4ed493282" - integrity sha512-b99nWeGGReLh6aKBppghVqp93dFJtgtDOzc8NXM6hewD8PQ2zZG5kBLgbx+VJr7Q7WBMjHxaIl3dwpwwPIUgyA== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/scheduler@*": - version "0.16.2" - resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" - integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== - -"@types/stack-utils@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" - integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== + "csstype" "^3.0.2" "@types/stack-utils@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" - integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== + "integrity" "sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw==" + "resolved" "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz" + "version" "2.0.0" "@types/yargs-parser@*": - version "21.0.0" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" - integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== + "integrity" "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==" + "resolved" "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz" + "version" "20.2.0" -"@types/yargs@^13.0.0": - version "13.0.12" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.12.tgz#d895a88c703b78af0465a9de88aa92c61430b092" - integrity sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ== +"@types/yargs@^15.0.0": + "integrity" "sha512-f+fD/fQAo3BCbCDlrUpznF1A5Zp9rB0noS5vnoormHSIPFKL0Z2DcUJ3Gxp5ytH4uLRNxy7AwYUC9exZzqGMAw==" + "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.12.tgz" + "version" "15.0.12" dependencies: "@types/yargs-parser" "*" -"@types/yargs@^15.0.0": - version "15.0.14" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06" - integrity sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ== +"@types/yargs@^16.0.0": + "integrity" "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==" + "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz" + "version" "16.0.4" + dependencies: + "@types/yargs-parser" "*" + +"@types/yargs@^17.0.8": + "integrity" "sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg==" + "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.13.tgz" + "version" "17.0.13" dependencies: "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^3.1.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f" - integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== + "integrity" "sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz" + "version" "3.10.1" dependencies: "@typescript-eslint/experimental-utils" "3.10.1" - debug "^4.1.1" - functional-red-black-tree "^1.0.1" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" + "debug" "^4.1.1" + "functional-red-black-tree" "^1.0.1" + "regexpp" "^3.0.0" + "semver" "^7.3.2" + "tsutils" "^3.17.1" "@typescript-eslint/experimental-utils@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" - integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== + "integrity" "sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz" + "version" "3.10.1" dependencies: "@types/json-schema" "^7.0.3" "@typescript-eslint/types" "3.10.1" "@typescript-eslint/typescript-estree" "3.10.1" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" + "eslint-scope" "^5.0.0" + "eslint-utils" "^2.0.0" -"@typescript-eslint/parser@^3.1.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" - integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== +"@typescript-eslint/parser@^3.0.0", "@typescript-eslint/parser@^3.1.0": + "integrity" "sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz" + "version" "3.10.1" dependencies: "@types/eslint-visitor-keys" "^1.0.0" "@typescript-eslint/experimental-utils" "3.10.1" "@typescript-eslint/types" "3.10.1" "@typescript-eslint/typescript-estree" "3.10.1" - eslint-visitor-keys "^1.1.0" + "eslint-visitor-keys" "^1.1.0" "@typescript-eslint/types@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" - integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== + "integrity" "sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz" + "version" "3.10.1" "@typescript-eslint/typescript-estree@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" - integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== + "integrity" "sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz" + "version" "3.10.1" dependencies: "@typescript-eslint/types" "3.10.1" "@typescript-eslint/visitor-keys" "3.10.1" - debug "^4.1.1" - glob "^7.1.6" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" + "debug" "^4.1.1" + "glob" "^7.1.6" + "is-glob" "^4.0.1" + "lodash" "^4.17.15" + "semver" "^7.3.2" + "tsutils" "^3.17.1" "@typescript-eslint/visitor-keys@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" - integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== - dependencies: - eslint-visitor-keys "^1.1.0" - -JSONStream@^1.0.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" - integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== - dependencies: - jsonparse "^1.2.0" - through ">=2.2.7 <3" - -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - -abort-controller@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" - integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== - dependencies: - event-target-shim "^5.0.0" - -absolute-path@^0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" - integrity sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA== - -accepts@~1.3.5, accepts@~1.3.7: - version "1.3.8" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-jsx@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn-walk@^8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== - -acorn@^7.1.1, acorn@^7.4.0: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4, acorn@^8.7.0: - version "8.8.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" - integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== - -add-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" - integrity sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ== - -agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== - dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.1: - version "8.11.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.2.tgz#aecb20b50607acf2569b6382167b65a96008bb78" - integrity sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -anser@^1.4.9: - version "1.4.10" - resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.10.tgz#befa3eddf282684bd03b63dcda3927aef8c2e35b" - integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww== - -ansi-align@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" - integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== - dependencies: - string-width "^4.1.0" - -ansi-colors@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" - integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA== - dependencies: - ansi-wrap "^0.1.0" - -ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-cyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" - integrity sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A== - dependencies: - ansi-wrap "0.1.0" - -ansi-escapes@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" - integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== - -ansi-escapes@^4.2.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-fragments@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/ansi-fragments/-/ansi-fragments-0.2.1.tgz#24409c56c4cc37817c3d7caa99d8969e2de5a05e" - integrity sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w== - dependencies: - colorette "^1.0.7" - slice-ansi "^2.0.0" - strip-ansi "^5.0.0" - -ansi-gray@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" - integrity sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw== - dependencies: - ansi-wrap "0.1.0" - -ansi-red@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" - integrity sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow== - dependencies: - ansi-wrap "0.1.0" - -ansi-regex@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.1.tgz#123d6479e92ad45ad897d4054e3c7ca7db4944e1" - integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw== - -ansi-regex@^4.0.0, ansi-regex@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" - integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== - -ansi-regex@^5.0.0, ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-wrap@0.1.0, ansi-wrap@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" - integrity sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw== - -anymatch@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" - integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== - dependencies: - micromatch "^3.1.4" - normalize-path "^2.1.1" - -anymatch@^3.0.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" - integrity sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q== - dependencies: - arr-flatten "^1.0.1" - array-slice "^0.2.3" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-2.1.0.tgz#20f9eab5ec70f5c7d215b1077b1c39161d292c7d" - integrity sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== - -array-filter@~0.0.0: - version "0.0.1" - resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" - integrity sha512-VW0FpCIhjZdarWjIz8Vpva7U95fl2Jn+b+mmFFMLn8PIVscOQcAgEznwUzTEuUHuqZqIxwzRlcaN/urTFFQoiw== - -array-ify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" - integrity sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng== - -array-includes@^3.1.5, array-includes@^3.1.6: - version "3.1.6" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" - integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" - is-string "^1.0.7" - -array-map@~0.0.0: - version "0.0.1" - resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.1.tgz#d1bf3cc8813a7daaa335e5c8eb21d9d06230c1a7" - integrity sha512-sxHIeJTGEsRC8/hYkZzdJNNPZ41EXHVys7pqMw1iwE/Kx8/hto0UbDuGQsSJ0ujPovj9qUZl6EOY/EiZ2g3d9Q== - -array-reduce@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" - integrity sha512-8jR+StqaC636u7h3ye1co3lQRefgVVUQUhuAmRbDqIMeR2yuXzRvkCNQiQ5J/wbREmoBLNtp13dhaaVpZQDRUw== - -array-slice@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5" - integrity sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q== - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - -array.prototype.flatmap@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" - integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -array.prototype.map@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/array.prototype.map/-/array.prototype.map-1.0.5.tgz#6e43c2fee6c0fb5e4806da2dc92eb00970809e55" - integrity sha512-gfaKntvwqYIuC7mLLyv2wzZIJqrRhn5PZ9EfFejSx6a78sV7iDsGpG9P+3oUPtm1Rerqm6nrKS4FYuTIvWfo3g== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-array-method-boxes-properly "^1.0.0" - is-string "^1.0.7" - -array.prototype.tosorted@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz#ccf44738aa2b5ac56578ffda97c03fd3e23dd532" - integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.1.3" - -arrify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== - -asap@~2.0.3, asap@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== - -ast-types@^0.13.2: - version "0.13.4" - resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.13.4.tgz#ee0d77b343263965ecc3fb62da16e7222b2b6782" - integrity sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w== - dependencies: - tslib "^2.0.1" - -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - -async-retry@1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280" - integrity sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw== - dependencies: - retry "0.13.1" - -async@^2.4.0: - version "2.6.4" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - -async@^3.2.3: - version "3.2.4" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" - integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -babel-eslint@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" - integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== + "integrity" "sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==" + "resolved" "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz" + "version" "3.10.1" + dependencies: + "eslint-visitor-keys" "^1.1.0" + +"abab@^2.0.3", "abab@^2.0.5": + "integrity" "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==" + "resolved" "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz" + "version" "2.0.5" + +"abort-controller@^3.0.0": + "integrity" "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==" + "resolved" "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "event-target-shim" "^5.0.0" + +"absolute-path@^0.0.0": + "integrity" "sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA==" + "resolved" "https://registry.npmjs.org/absolute-path/-/absolute-path-0.0.0.tgz" + "version" "0.0.0" + +"accepts@^1.3.7", "accepts@~1.3.5", "accepts@~1.3.7": + "integrity" "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==" + "resolved" "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + "version" "1.3.8" + dependencies: + "mime-types" "~2.1.34" + "negotiator" "0.6.3" + +"acorn-globals@^6.0.0": + "integrity" "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==" + "resolved" "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "acorn" "^7.1.1" + "acorn-walk" "^7.1.1" + +"acorn-jsx@^5.3.1": + "integrity" "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==" + "resolved" "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz" + "version" "5.3.1" + +"acorn-walk@^7.1.1": + "integrity" "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" + "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" + "version" "7.2.0" + +"acorn-walk@^8.2.0": + "integrity" "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" + "version" "8.2.0" + +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", "acorn@^7.1.1", "acorn@^7.4.0": + "integrity" "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + "resolved" "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" + "version" "7.4.1" + +"acorn@^8.2.4": + "integrity" "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" + "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz" + "version" "8.8.1" + +"acorn@^8.7.0": + "integrity" "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" + "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz" + "version" "8.8.1" + +"add-stream@^1.0.0": + "integrity" "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==" + "resolved" "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz" + "version" "1.0.0" + +"agent-base@^6.0.0", "agent-base@^6.0.2", "agent-base@6": + "integrity" "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==" + "resolved" "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + "version" "6.0.2" + dependencies: + "debug" "4" + +"aggregate-error@^3.0.0": + "integrity" "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==" + "resolved" "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "clean-stack" "^2.0.0" + "indent-string" "^4.0.0" + +"ajv@^6.10.0", "ajv@^6.12.4": + "integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==" + "resolved" "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" + "version" "6.12.6" + dependencies: + "fast-deep-equal" "^3.1.1" + "fast-json-stable-stringify" "^2.0.0" + "json-schema-traverse" "^0.4.1" + "uri-js" "^4.2.2" + +"ajv@^7.0.2": + "integrity" "sha512-R50QRlXSxqXcQP5SvKUrw8VZeypvo12i2IX0EeR5PiZ7bEKeHWgzgo264LDadUsCU42lTJVhFikTqJwNeH34gQ==" + "resolved" "https://registry.npmjs.org/ajv/-/ajv-7.0.3.tgz" + "version" "7.0.3" + dependencies: + "fast-deep-equal" "^3.1.1" + "json-schema-traverse" "^1.0.0" + "require-from-string" "^2.0.2" + "uri-js" "^4.2.2" + +"anser@^1.4.9": + "integrity" "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==" + "resolved" "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz" + "version" "1.4.10" + +"ansi-align@^3.0.1": + "integrity" "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==" + "resolved" "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "string-width" "^4.1.0" + +"ansi-colors@^4.1.1": + "integrity" "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==" + "resolved" "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" + "version" "4.1.1" + +"ansi-escapes@^4.2.1": + "integrity" "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==" + "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz" + "version" "4.3.1" + dependencies: + "type-fest" "^0.11.0" + +"ansi-escapes@^5.0.0": + "integrity" "sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==" + "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "type-fest" "^1.0.2" + +"ansi-fragments@^0.2.1": + "integrity" "sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==" + "resolved" "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz" + "version" "0.2.1" + dependencies: + "colorette" "^1.0.7" + "slice-ansi" "^2.0.0" + "strip-ansi" "^5.0.0" + +"ansi-regex@^4.1.0": + "integrity" "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" + "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz" + "version" "4.1.1" + +"ansi-regex@^5.0.0", "ansi-regex@^5.0.1": + "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + "version" "5.0.1" + +"ansi-regex@^6.0.1": + "integrity" "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" + "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" + "version" "6.0.1" + +"ansi-styles@^3.2.0", "ansi-styles@^3.2.1": + "integrity" "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==" + "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + "version" "3.2.1" + dependencies: + "color-convert" "^1.9.0" + +"ansi-styles@^4.0.0": + "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" + "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + "version" "4.3.0" + dependencies: + "color-convert" "^2.0.1" + +"ansi-styles@^4.1.0": + "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" + "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + "version" "4.3.0" + dependencies: + "color-convert" "^2.0.1" + +"ansi-styles@^6.1.0": + "integrity" "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" + "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" + "version" "6.2.1" + +"anymatch@^2.0.0": + "integrity" "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==" + "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "micromatch" "^3.1.4" + "normalize-path" "^2.1.1" + +"anymatch@^3.0.3": + "integrity" "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==" + "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" + "version" "3.1.1" + dependencies: + "normalize-path" "^3.0.0" + "picomatch" "^2.0.4" + +"appdirsjs@^1.2.4": + "integrity" "sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==" + "resolved" "https://registry.npmjs.org/appdirsjs/-/appdirsjs-1.2.7.tgz" + "version" "1.2.7" + +"argparse@^1.0.7": + "integrity" "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==" + "resolved" "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "sprintf-js" "~1.0.2" + +"arr-diff@^4.0.0": + "integrity" "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==" + "resolved" "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz" + "version" "4.0.0" + +"arr-flatten@^1.1.0": + "integrity" "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + "resolved" "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz" + "version" "1.1.0" + +"arr-union@^3.1.0": + "integrity" "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + "resolved" "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz" + "version" "3.1.0" + +"array-ify@^1.0.0": + "integrity" "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=" + "resolved" "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz" + "version" "1.0.0" + +"array-includes@^3.1.1", "array-includes@^3.1.2": + "integrity" "sha512-w2GspexNQpx+PutG3QpT437/BenZBj0M/MZGn5mzv/MofYqo0xmRHzn4lFsoDlWJ+THYsGJmFlW68WlDFx7VRw==" + "resolved" "https://registry.npmjs.org/array-includes/-/array-includes-3.1.2.tgz" + "version" "3.1.2" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "get-intrinsic" "^1.0.1" + "is-string" "^1.0.5" + +"array-union@^2.1.0": + "integrity" "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + "resolved" "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" + "version" "2.1.0" + +"array-unique@^0.3.2": + "integrity" "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + "resolved" "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz" + "version" "0.3.2" + +"array.prototype.flatmap@^1.2.3": + "integrity" "sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==" + "resolved" "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz" + "version" "1.2.4" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "function-bind" "^1.1.1" + +"array.prototype.map@^1.0.4": + "integrity" "sha512-Qds9QnX7A0qISY7JT5WuJO0NJPE9CMlC6JzHQfhpqAAQQzufVRoeH7EzUY5GcPTx72voG8LV/5eo+b8Qi8hmhA==" + "resolved" "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.4.tgz" + "version" "1.0.4" + dependencies: + "call-bind" "^1.0.2" + "define-properties" "^1.1.3" + "es-abstract" "^1.19.0" + "es-array-method-boxes-properly" "^1.0.0" + "is-string" "^1.0.7" + +"arrify@^1.0.1": + "integrity" "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" + "resolved" "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" + "version" "1.0.1" + +"asap@~2.0.6": + "integrity" "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + "resolved" "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" + "version" "2.0.6" + +"assign-symbols@^1.0.0": + "integrity" "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + "resolved" "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz" + "version" "1.0.0" + +"ast-types@^0.13.2": + "integrity" "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==" + "resolved" "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz" + "version" "0.13.4" + dependencies: + "tslib" "^2.0.1" + +"ast-types@0.14.2": + "integrity" "sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==" + "resolved" "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz" + "version" "0.14.2" + dependencies: + "tslib" "^2.0.1" + +"astral-regex@^1.0.0": + "integrity" "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==" + "resolved" "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz" + "version" "1.0.0" + +"astral-regex@^2.0.0": + "integrity" "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==" + "resolved" "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" + "version" "2.0.0" + +"async-limiter@~1.0.0": + "integrity" "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + "resolved" "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" + "version" "1.0.1" + +"async-retry@1.3.3": + "integrity" "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==" + "resolved" "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz" + "version" "1.3.3" + dependencies: + "retry" "0.13.1" + +"async@^3.2.2": + "integrity" "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + "resolved" "https://registry.npmjs.org/async/-/async-3.2.4.tgz" + "version" "3.2.4" + +"asynckit@^0.4.0": + "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + "version" "0.4.0" + +"at-least-node@^1.0.0": + "integrity" "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" + "resolved" "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" + "version" "1.0.0" + +"atob@^2.1.2": + "integrity" "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + "resolved" "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" + "version" "2.1.2" + +"babel-core@^7.0.0-bridge.0": + "integrity" "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==" + "resolved" "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz" + "version" "7.0.0-bridge.0" + +"babel-eslint@^10.1.0": + "integrity" "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==" + "resolved" "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz" + "version" "10.1.0" dependencies: "@babel/code-frame" "^7.0.0" "@babel/parser" "^7.7.0" "@babel/traverse" "^7.7.0" "@babel/types" "^7.7.0" - eslint-visitor-keys "^1.0.0" - resolve "^1.12.0" + "eslint-visitor-keys" "^1.0.0" + "resolve" "^1.12.0" -babel-jest@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" - integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== +"babel-jest@^26.6.3": + "integrity" "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==" + "resolved" "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/babel__core" "^7.1.7" - babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - slash "^3.0.0" + "babel-plugin-istanbul" "^6.0.0" + "babel-preset-jest" "^26.6.2" + "chalk" "^4.0.0" + "graceful-fs" "^4.2.4" + "slash" "^3.0.0" -babel-plugin-istanbul@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== +"babel-plugin-istanbul@^6.0.0": + "integrity" "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==" + "resolved" "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz" + "version" "6.0.0" dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@istanbuljs/load-nyc-config" "^1.0.0" "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" + "istanbul-lib-instrument" "^4.0.0" + "test-exclude" "^6.0.0" -babel-plugin-jest-hoist@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" - integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== +"babel-plugin-jest-hoist@^26.6.2": + "integrity" "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==" + "resolved" "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz" + "version" "26.6.2" dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" -babel-plugin-polyfill-corejs2@^0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122" - integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== +"babel-plugin-polyfill-corejs2@^0.3.3": + "integrity" "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==" + "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz" + "version" "0.3.3" dependencies: "@babel/compat-data" "^7.17.7" "@babel/helper-define-polyfill-provider" "^0.3.3" - semver "^6.1.1" + "semver" "^6.1.1" -babel-plugin-polyfill-corejs3@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz#56ad88237137eade485a71b52f72dbed57c6230a" - integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA== +"babel-plugin-polyfill-corejs3@^0.6.0": + "integrity" "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==" + "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz" + "version" "0.6.0" dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" - core-js-compat "^3.25.1" + "core-js-compat" "^3.25.1" -babel-plugin-polyfill-regenerator@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz#390f91c38d90473592ed43351e801a9d3e0fd747" - integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== +"babel-plugin-polyfill-regenerator@^0.4.1": + "integrity" "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==" + "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz" + "version" "0.4.1" dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" -babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" - integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== +"babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0": + "integrity" "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==" + "resolved" "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz" + "version" "7.0.0-beta.0" -babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== +"babel-preset-current-node-syntax@^1.0.0": + "integrity" "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==" + "resolved" "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" + "version" "1.0.1" dependencies: "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-bigint" "^7.8.3" @@ -2626,10 +2592,10 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -babel-preset-fbjs@^3.2.0, babel-preset-fbjs@^3.3.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" - integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== +"babel-preset-fbjs@^3.4.0": + "integrity" "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==" + "resolved" "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz" + "version" "3.4.0" dependencies: "@babel/plugin-proposal-class-properties" "^7.0.0" "@babel/plugin-proposal-object-rest-spread" "^7.0.0" @@ -2657,3290 +2623,3194 @@ babel-preset-fbjs@^3.2.0, babel-preset-fbjs@^3.3.0: "@babel/plugin-transform-shorthand-properties" "^7.0.0" "@babel/plugin-transform-spread" "^7.0.0" "@babel/plugin-transform-template-literals" "^7.0.0" - babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" - -babel-preset-jest@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" - integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== - dependencies: - babel-plugin-jest-hoist "^26.6.2" - babel-preset-current-node-syntax "^1.0.0" - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -base64-js@^1.1.2, base64-js@^1.3.1, base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -before-after-hook@^2.2.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c" - integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== - -big-integer@1.6.x: - version "1.6.51" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686" - integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - -boxen@^5.0.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" - integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== - dependencies: - ansi-align "^3.0.0" - camelcase "^6.2.0" - chalk "^4.1.0" - cli-boxes "^2.2.1" - string-width "^4.2.2" - type-fest "^0.20.2" - widest-line "^3.1.0" - wrap-ansi "^7.0.0" - -bplist-creator@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/bplist-creator/-/bplist-creator-0.1.0.tgz#018a2d1b587f769e379ef5519103730f8963ba1e" - integrity sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg== - dependencies: - stream-buffers "2.2.x" - -bplist-parser@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.3.1.tgz#e1c90b2ca2a9f9474cc72f6862bbf3fee8341fd1" - integrity sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA== - dependencies: - big-integer "1.6.x" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browserslist@^4.16.0, browserslist@^4.21.3, browserslist@^4.21.4: - version "4.21.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" - integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== - dependencies: - caniuse-lite "^1.0.30001400" - electron-to-chromium "^1.4.251" - node-releases "^2.0.6" - update-browserslist-db "^1.0.9" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -buffer-crc32@^0.2.13: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -builtins@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" - integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== - -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== - -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -cacheable-request@^6.0.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" - integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== - dependencies: - clone-response "^1.0.2" - get-stream "^5.1.0" - http-cache-semantics "^4.0.0" - keyv "^3.0.0" - lowercase-keys "^2.0.0" - normalize-url "^4.1.0" - responselike "^1.0.2" - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase-keys@^6.2.2: - version "6.2.2" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" - integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== - dependencies: - camelcase "^5.3.1" - map-obj "^4.0.0" - quick-lru "^4.0.1" - -camelcase@^5.0.0, camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0, camelcase@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caniuse-lite@^1.0.30001400: - version "1.0.30001439" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz#ab7371faeb4adff4b74dad1718a6fd122e45d9cb" - integrity sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A== - -capture-exit@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" - integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== - dependencies: - rsvp "^4.8.4" - -chalk@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@4.1.2, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1, chalk@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -chardet@^0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" - integrity sha512-j/Toj7f1z98Hh2cYo2BVr85EpIRWqUi7rtRSGxh/cqUjqrnJe9l9UE7IUGd2vQ2p+kSHLkSzObQPZPLUC6TQwg== - -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" - integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== - -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -ci-info@^3.2.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef" - integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog== - -cjs-module-lexer@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f" - integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -clean-stack@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - -cli-boxes@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" - integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== - -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - integrity sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw== - dependencies: - restore-cursor "^2.0.0" - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-spinners@^2.0.0, cli-spinners@^2.5.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" - integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== - -cli-width@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" - integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== - -cli-width@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" - integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -clone-response@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.3.tgz#af2032aa47816399cf5f0a1d0db902f517abb8c3" - integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== - dependencies: - mimic-response "^1.0.0" - -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - -collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -color-support@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" - integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== - -colorette@^1.0.7: - version "1.4.0" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" - integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -command-exists@^1.2.8: - version "1.2.9" - resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" - integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== - -commander@^2.19.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -commander@~2.13.0: - version "2.13.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" - integrity sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA== - -commitlint@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/commitlint/-/commitlint-11.0.0.tgz#a60f759b938c97c5d601c881cfe71b1d4051d219" - integrity sha512-nTmP1tM52gfi39tDCN8dAlRRWJyVoJY2JuYgVhSONETGJ2MY69K/go0YbCzlIEDO/bUka5ybeI6CJz5ZicvNzg== + "babel-plugin-syntax-trailing-function-commas" "^7.0.0-beta.0" + +"babel-preset-jest@^26.6.2": + "integrity" "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==" + "resolved" "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz" + "version" "26.6.2" + dependencies: + "babel-plugin-jest-hoist" "^26.6.2" + "babel-preset-current-node-syntax" "^1.0.0" + +"balanced-match@^1.0.0": + "integrity" "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" + "version" "1.0.0" + +"base@^0.11.1": + "integrity" "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==" + "resolved" "https://registry.npmjs.org/base/-/base-0.11.2.tgz" + "version" "0.11.2" + dependencies: + "cache-base" "^1.0.1" + "class-utils" "^0.3.5" + "component-emitter" "^1.2.1" + "define-property" "^1.0.0" + "isobject" "^3.0.1" + "mixin-deep" "^1.2.0" + "pascalcase" "^0.1.1" + +"base64-js@^1.1.2", "base64-js@^1.3.1": + "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + "version" "1.5.1" + +"before-after-hook@^2.2.0": + "integrity" "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" + "resolved" "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz" + "version" "2.2.3" + +"bl@^4.1.0": + "integrity" "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==" + "resolved" "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "buffer" "^5.5.0" + "inherits" "^2.0.4" + "readable-stream" "^3.4.0" + +"bl@^5.0.0": + "integrity" "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==" + "resolved" "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "buffer" "^6.0.3" + "inherits" "^2.0.4" + "readable-stream" "^3.4.0" + +"boxen@^7.0.0": + "integrity" "sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==" + "resolved" "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz" + "version" "7.0.0" + dependencies: + "ansi-align" "^3.0.1" + "camelcase" "^7.0.0" + "chalk" "^5.0.1" + "cli-boxes" "^3.0.0" + "string-width" "^5.1.2" + "type-fest" "^2.13.0" + "widest-line" "^4.0.1" + "wrap-ansi" "^8.0.1" + +"brace-expansion@^1.1.7": + "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" + "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + "version" "1.1.11" + dependencies: + "balanced-match" "^1.0.0" + "concat-map" "0.0.1" + +"brace-expansion@^2.0.1": + "integrity" "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==" + "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "balanced-match" "^1.0.0" + +"braces@^2.3.1": + "integrity" "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==" + "resolved" "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz" + "version" "2.3.2" + dependencies: + "arr-flatten" "^1.1.0" + "array-unique" "^0.3.2" + "extend-shallow" "^2.0.1" + "fill-range" "^4.0.0" + "isobject" "^3.0.1" + "repeat-element" "^1.1.2" + "snapdragon" "^0.8.1" + "snapdragon-node" "^2.0.1" + "split-string" "^3.0.2" + "to-regex" "^3.0.1" + +"braces@^3.0.2": + "integrity" "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" + "resolved" "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "fill-range" "^7.0.1" + +"browser-process-hrtime@^1.0.0": + "integrity" "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" + "resolved" "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" + "version" "1.0.0" + +"browserslist@^4.20.4", "browserslist@^4.21.3", "browserslist@^4.21.4", "browserslist@>= 4.21.0": + "integrity" "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==" + "resolved" "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz" + "version" "4.21.4" + dependencies: + "caniuse-lite" "^1.0.30001400" + "electron-to-chromium" "^1.4.251" + "node-releases" "^2.0.6" + "update-browserslist-db" "^1.0.9" + +"bser@2.1.1": + "integrity" "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==" + "resolved" "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" + "version" "2.1.1" + dependencies: + "node-int64" "^0.4.0" + +"buffer-from@^1.0.0": + "integrity" "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + "resolved" "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" + "version" "1.1.1" + +"buffer@^5.5.0": + "integrity" "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==" + "resolved" "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + "version" "5.7.1" + dependencies: + "base64-js" "^1.3.1" + "ieee754" "^1.1.13" + +"buffer@^6.0.3": + "integrity" "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==" + "resolved" "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" + "version" "6.0.3" + dependencies: + "base64-js" "^1.3.1" + "ieee754" "^1.2.1" + +"bytes@3.0.0": + "integrity" "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" + "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" + "version" "3.0.0" + +"bytes@3.1.2": + "integrity" "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + "version" "3.1.2" + +"cache-base@^1.0.1": + "integrity" "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==" + "resolved" "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "collection-visit" "^1.0.0" + "component-emitter" "^1.2.1" + "get-value" "^2.0.6" + "has-value" "^1.0.0" + "isobject" "^3.0.1" + "set-value" "^2.0.0" + "to-object-path" "^0.3.0" + "union-value" "^1.0.0" + "unset-value" "^1.0.0" + +"cacheable-lookup@^7.0.0": + "integrity" "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==" + "resolved" "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz" + "version" "7.0.0" + +"cacheable-request@^10.2.1": + "integrity" "sha512-KxjQZM3UIo7/J6W4sLpwFvu1GB3Whv8NtZ8ZrUL284eiQjiXeeqWTdhixNrp/NLZ/JNuFBo6BD4ZaO8ZJ5BN8Q==" + "resolved" "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.2.tgz" + "version" "10.2.2" + dependencies: + "@types/http-cache-semantics" "^4.0.1" + "get-stream" "^6.0.1" + "http-cache-semantics" "^4.1.0" + "keyv" "^4.5.0" + "mimic-response" "^4.0.0" + "normalize-url" "^7.2.0" + "responselike" "^3.0.0" + +"call-bind@^1.0.0", "call-bind@^1.0.2": + "integrity" "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==" + "resolved" "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "function-bind" "^1.1.1" + "get-intrinsic" "^1.0.2" + +"caller-callsite@^2.0.0": + "integrity" "sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==" + "resolved" "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "callsites" "^2.0.0" + +"caller-path@^2.0.0": + "integrity" "sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==" + "resolved" "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "caller-callsite" "^2.0.0" + +"callsites@^2.0.0": + "integrity" "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==" + "resolved" "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz" + "version" "2.0.0" + +"callsites@^3.0.0": + "integrity" "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" + "resolved" "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" + "version" "3.1.0" + +"camelcase-keys@^6.2.2": + "integrity" "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==" + "resolved" "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz" + "version" "6.2.2" + dependencies: + "camelcase" "^5.3.1" + "map-obj" "^4.0.0" + "quick-lru" "^4.0.1" + +"camelcase@^5.0.0", "camelcase@^5.3.1": + "integrity" "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" + "version" "5.3.1" + +"camelcase@^6.0.0": + "integrity" "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==" + "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz" + "version" "6.2.0" + +"camelcase@^7.0.0": + "integrity" "sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ==" + "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-7.0.0.tgz" + "version" "7.0.0" + +"caniuse-lite@^1.0.30001400": + "integrity" "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==" + "resolved" "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz" + "version" "1.0.30001429" + +"capture-exit@^2.0.0": + "integrity" "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==" + "resolved" "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "rsvp" "^4.8.4" + +"chalk@^2.0.0": + "integrity" "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + "version" "2.4.2" + dependencies: + "ansi-styles" "^3.2.1" + "escape-string-regexp" "^1.0.5" + "supports-color" "^5.3.0" + +"chalk@^4.0.0": + "integrity" "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "ansi-styles" "^4.1.0" + "supports-color" "^7.1.0" + +"chalk@^4.1.0": + "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + "version" "4.1.2" + dependencies: + "ansi-styles" "^4.1.0" + "supports-color" "^7.1.0" + +"chalk@^4.1.2": + "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + "version" "4.1.2" + dependencies: + "ansi-styles" "^4.1.0" + "supports-color" "^7.1.0" + +"chalk@^5.0.0", "chalk@^5.0.1": + "integrity" "sha512-E5CkT4jWURs1Vy5qGJye+XwCkNj7Od3Af7CP6SujMetSMkLs8Do2RWJK5yx1wamHV/op8Rz+9rltjaTQWDnEFQ==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-5.1.2.tgz" + "version" "5.1.2" + +"chalk@4.1.0": + "integrity" "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "ansi-styles" "^4.1.0" + "supports-color" "^7.1.0" + +"chalk@5.0.1": + "integrity" "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz" + "version" "5.0.1" + +"char-regex@^1.0.2": + "integrity" "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==" + "resolved" "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" + "version" "1.0.2" + +"chardet@^0.7.0": + "integrity" "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" + "resolved" "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" + "version" "0.7.0" + +"ci-info@^2.0.0": + "integrity" "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" + "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" + "version" "2.0.0" + +"ci-info@^3.2.0": + "integrity" "sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw==" + "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-3.5.0.tgz" + "version" "3.5.0" + +"cjs-module-lexer@^0.6.0": + "integrity" "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==" + "resolved" "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz" + "version" "0.6.0" + +"class-utils@^0.3.5": + "integrity" "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==" + "resolved" "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz" + "version" "0.3.6" + dependencies: + "arr-union" "^3.1.0" + "define-property" "^0.2.5" + "isobject" "^3.0.0" + "static-extend" "^0.1.1" + +"clean-stack@^2.0.0": + "integrity" "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" + "resolved" "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" + "version" "2.2.0" + +"cli-boxes@^3.0.0": + "integrity" "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==" + "resolved" "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz" + "version" "3.0.0" + +"cli-cursor@^3.1.0": + "integrity" "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==" + "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "restore-cursor" "^3.1.0" + +"cli-cursor@^4.0.0": + "integrity" "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==" + "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "restore-cursor" "^4.0.0" + +"cli-spinners@^2.5.0", "cli-spinners@^2.6.1": + "integrity" "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==" + "resolved" "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz" + "version" "2.7.0" + +"cli-width@^4.0.0": + "integrity" "sha512-ZksGS2xpa/bYkNzN3BAw1wEjsLV/ZKOf/CCrJ/QOBsxx6fOARIkwTutxp1XIOIohi6HKmOFjMoK/XaqDVUpEEw==" + "resolved" "https://registry.npmjs.org/cli-width/-/cli-width-4.0.0.tgz" + "version" "4.0.0" + +"cliui@^6.0.0": + "integrity" "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==" + "resolved" "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "string-width" "^4.2.0" + "strip-ansi" "^6.0.0" + "wrap-ansi" "^6.2.0" + +"cliui@^7.0.2": + "integrity" "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==" + "resolved" "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" + "version" "7.0.4" + dependencies: + "string-width" "^4.2.0" + "strip-ansi" "^6.0.0" + "wrap-ansi" "^7.0.0" + +"cliui@^8.0.1": + "integrity" "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==" + "resolved" "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + "version" "8.0.1" + dependencies: + "string-width" "^4.2.0" + "strip-ansi" "^6.0.1" + "wrap-ansi" "^7.0.0" + +"clone-deep@^4.0.1": + "integrity" "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==" + "resolved" "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz" + "version" "4.0.1" + dependencies: + "is-plain-object" "^2.0.4" + "kind-of" "^6.0.2" + "shallow-clone" "^3.0.0" + +"clone@^1.0.2": + "integrity" "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==" + "resolved" "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" + "version" "1.0.4" + +"co@^4.6.0": + "integrity" "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + "resolved" "https://registry.npmjs.org/co/-/co-4.6.0.tgz" + "version" "4.6.0" + +"collect-v8-coverage@^1.0.0": + "integrity" "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" + "resolved" "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz" + "version" "1.0.1" + +"collection-visit@^1.0.0": + "integrity" "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=" + "resolved" "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "map-visit" "^1.0.0" + "object-visit" "^1.0.0" + +"color-convert@^1.9.0": + "integrity" "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==" + "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + "version" "1.9.3" + dependencies: + "color-name" "1.1.3" + +"color-convert@^2.0.1": + "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" + "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "color-name" "~1.1.4" + +"color-name@~1.1.4": + "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + "version" "1.1.4" + +"color-name@1.1.3": + "integrity" "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + "version" "1.1.3" + +"colorette@^1.0.7": + "integrity" "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" + "resolved" "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz" + "version" "1.4.0" + +"combined-stream@^1.0.8": + "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==" + "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + "version" "1.0.8" + dependencies: + "delayed-stream" "~1.0.0" + +"command-exists@^1.2.8": + "integrity" "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==" + "resolved" "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz" + "version" "1.2.9" + +"commander@^9.4.0": + "integrity" "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==" + "resolved" "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz" + "version" "9.4.1" + +"commander@~2.13.0": + "integrity" "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==" + "resolved" "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz" + "version" "2.13.0" + +"commitlint@^11.0.0": + "integrity" "sha512-nTmP1tM52gfi39tDCN8dAlRRWJyVoJY2JuYgVhSONETGJ2MY69K/go0YbCzlIEDO/bUka5ybeI6CJz5ZicvNzg==" + "resolved" "https://registry.npmjs.org/commitlint/-/commitlint-11.0.0.tgz" + "version" "11.0.0" dependencies: "@commitlint/cli" "^11.0.0" -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -compare-func@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3" - integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA== - dependencies: - array-ify "^1.0.0" - dot-prop "^5.1.0" - -compare-versions@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62" - integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -compressible@~2.0.16: - version "2.0.18" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" - integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== - dependencies: - mime-db ">= 1.43.0 < 2" - -compression@^1.7.1: - version "1.7.4" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" - integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.16" - debug "2.6.9" - on-headers "~1.0.2" - safe-buffer "5.1.2" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -concat-stream@^1.6.0: - version "1.6.2" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" - integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -concat-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" - integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^3.0.2" - typedarray "^0.0.6" - -configstore@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" - integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== - dependencies: - dot-prop "^5.2.0" - graceful-fs "^4.1.2" - make-dir "^3.0.0" - unique-string "^2.0.0" - write-file-atomic "^3.0.0" - xdg-basedir "^4.0.0" - -connect@^3.6.5: - version "3.7.0" - resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" - integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== - dependencies: - debug "2.6.9" - finalhandler "1.1.2" - parseurl "~1.3.3" - utils-merge "1.0.1" - -conventional-changelog-angular@^5.0.0, conventional-changelog-angular@^5.0.12: - version "5.0.13" - resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c" - integrity sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA== - dependencies: - compare-func "^2.0.0" - q "^1.5.1" - -conventional-changelog-atom@^2.0.8: - version "2.0.8" - resolved "https://registry.yarnpkg.com/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz#a759ec61c22d1c1196925fca88fe3ae89fd7d8de" - integrity sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw== - dependencies: - q "^1.5.1" - -conventional-changelog-codemirror@^2.0.8: - version "2.0.8" - resolved "https://registry.yarnpkg.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz#398e9530f08ce34ec4640af98eeaf3022eb1f7dc" - integrity sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw== - dependencies: - q "^1.5.1" - -conventional-changelog-conventionalcommits@^4.3.1, conventional-changelog-conventionalcommits@^4.5.0: - version "4.6.3" - resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz#0765490f56424b46f6cb4db9135902d6e5a36dc2" - integrity sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g== - dependencies: - compare-func "^2.0.0" - lodash "^4.17.15" - q "^1.5.1" - -conventional-changelog-core@^4.2.1: - version "4.2.4" - resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz#e50d047e8ebacf63fac3dc67bf918177001e1e9f" - integrity sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg== - dependencies: - add-stream "^1.0.0" - conventional-changelog-writer "^5.0.0" - conventional-commits-parser "^3.2.0" - dateformat "^3.0.0" - get-pkg-repo "^4.0.0" - git-raw-commits "^2.0.8" - git-remote-origin-url "^2.0.0" - git-semver-tags "^4.1.1" - lodash "^4.17.15" - normalize-package-data "^3.0.0" - q "^1.5.1" - read-pkg "^3.0.0" - read-pkg-up "^3.0.0" - through2 "^4.0.0" - -conventional-changelog-ember@^2.0.9: - version "2.0.9" - resolved "https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz#619b37ec708be9e74a220f4dcf79212ae1c92962" - integrity sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A== - dependencies: - q "^1.5.1" - -conventional-changelog-eslint@^3.0.9: - version "3.0.9" - resolved "https://registry.yarnpkg.com/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz#689bd0a470e02f7baafe21a495880deea18b7cdb" - integrity sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA== - dependencies: - q "^1.5.1" - -conventional-changelog-express@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz#420c9d92a347b72a91544750bffa9387665a6ee8" - integrity sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ== - dependencies: - q "^1.5.1" - -conventional-changelog-jquery@^3.0.11: - version "3.0.11" - resolved "https://registry.yarnpkg.com/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz#d142207400f51c9e5bb588596598e24bba8994bf" - integrity sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw== - dependencies: - q "^1.5.1" - -conventional-changelog-jshint@^2.0.9: - version "2.0.9" - resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz#f2d7f23e6acd4927a238555d92c09b50fe3852ff" - integrity sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA== - dependencies: - compare-func "^2.0.0" - q "^1.5.1" - -conventional-changelog-preset-loader@^2.3.4: - version "2.3.4" - resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz#14a855abbffd59027fd602581f1f34d9862ea44c" - integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== - -conventional-changelog-writer@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz#e0757072f045fe03d91da6343c843029e702f359" - integrity sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ== - dependencies: - conventional-commits-filter "^2.0.7" - dateformat "^3.0.0" - handlebars "^4.7.7" - json-stringify-safe "^5.0.1" - lodash "^4.17.15" - meow "^8.0.0" - semver "^6.0.0" - split "^1.0.0" - through2 "^4.0.0" - -conventional-changelog@^3.1.24: - version "3.1.25" - resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.25.tgz#3e227a37d15684f5aa1fb52222a6e9e2536ccaff" - integrity sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ== - dependencies: - conventional-changelog-angular "^5.0.12" - conventional-changelog-atom "^2.0.8" - conventional-changelog-codemirror "^2.0.8" - conventional-changelog-conventionalcommits "^4.5.0" - conventional-changelog-core "^4.2.1" - conventional-changelog-ember "^2.0.9" - conventional-changelog-eslint "^3.0.9" - conventional-changelog-express "^2.0.6" - conventional-changelog-jquery "^3.0.11" - conventional-changelog-jshint "^2.0.9" - conventional-changelog-preset-loader "^2.3.4" - -conventional-commits-filter@^2.0.7: - version "2.0.7" - resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz#f8d9b4f182fce00c9af7139da49365b136c8a0b3" - integrity sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA== - dependencies: - lodash.ismatch "^4.4.0" - modify-values "^1.0.0" - -conventional-commits-parser@^3.0.0, conventional-commits-parser@^3.2.0: - version "3.2.4" - resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz#a7d3b77758a202a9b2293d2112a8d8052c740972" - integrity sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q== - dependencies: - JSONStream "^1.0.4" - is-text-path "^1.0.1" - lodash "^4.17.15" - meow "^8.0.0" - split2 "^3.0.0" - through2 "^4.0.0" - -conventional-recommended-bump@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz#cfa623285d1de554012f2ffde70d9c8a22231f55" - integrity sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw== - dependencies: - concat-stream "^2.0.0" - conventional-changelog-preset-loader "^2.3.4" - conventional-commits-filter "^2.0.7" - conventional-commits-parser "^3.2.0" - git-raw-commits "^2.0.8" - git-semver-tags "^4.1.1" - meow "^8.0.0" - q "^1.5.1" - -convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -core-js-compat@^3.25.1: - version "3.26.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.26.1.tgz#0e710b09ebf689d719545ac36e49041850f943df" - integrity sha512-622/KzTudvXCDLRw70iHW4KKs1aGpcRcowGWyYJr2DEBfRrd6hNJybxSWJFuZYD4ma86xhrwDDHxmDaIq4EA8A== - dependencies: - browserslist "^4.21.4" - -core-js@^2.4.1: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - -core-js@^3.6.1: - version "3.26.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.26.1.tgz#7a9816dabd9ee846c1c0fe0e8fcad68f3709134e" - integrity sha512-21491RRQVzUn0GGM9Z1Jrpr6PNPxPi+Za8OM9q4tksTSnlbXXGKK1nXNg/QvwFYettXvSX6zWKCtHHfjN4puyA== - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cosmiconfig@7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" - integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cosmiconfig@^5.0.5, cosmiconfig@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== - dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" - -cosmiconfig@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== +"commondir@^1.0.1": + "integrity" "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + "resolved" "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz" + "version" "1.0.1" + +"compare-func@^2.0.0": + "integrity" "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==" + "resolved" "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "array-ify" "^1.0.0" + "dot-prop" "^5.1.0" + +"compare-versions@^3.6.0": + "integrity" "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==" + "resolved" "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz" + "version" "3.6.0" + +"component-emitter@^1.2.1": + "integrity" "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + "resolved" "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz" + "version" "1.3.0" + +"compressible@~2.0.16": + "integrity" "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==" + "resolved" "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" + "version" "2.0.18" + dependencies: + "mime-db" ">= 1.43.0 < 2" + +"compression@^1.7.1": + "integrity" "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==" + "resolved" "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" + "version" "1.7.4" + dependencies: + "accepts" "~1.3.5" + "bytes" "3.0.0" + "compressible" "~2.0.16" + "debug" "2.6.9" + "on-headers" "~1.0.2" + "safe-buffer" "5.1.2" + "vary" "~1.1.2" + +"concat-map@0.0.1": + "integrity" "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + "version" "0.0.1" + +"concat-stream@^2.0.0": + "integrity" "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==" + "resolved" "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "buffer-from" "^1.0.0" + "inherits" "^2.0.3" + "readable-stream" "^3.0.2" + "typedarray" "^0.0.6" + +"config-chain@^1.1.11": + "integrity" "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==" + "resolved" "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz" + "version" "1.1.13" + dependencies: + "ini" "^1.3.4" + "proto-list" "~1.2.1" + +"configstore@^6.0.0": + "integrity" "sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==" + "resolved" "https://registry.npmjs.org/configstore/-/configstore-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "dot-prop" "^6.0.1" + "graceful-fs" "^4.2.6" + "unique-string" "^3.0.0" + "write-file-atomic" "^3.0.3" + "xdg-basedir" "^5.0.1" + +"connect@^3.6.5": + "integrity" "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==" + "resolved" "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz" + "version" "3.7.0" + dependencies: + "debug" "2.6.9" + "finalhandler" "1.1.2" + "parseurl" "~1.3.3" + "utils-merge" "1.0.1" + +"conventional-changelog-angular@^5.0.0", "conventional-changelog-angular@^5.0.12": + "integrity" "sha512-5GLsbnkR/7A89RyHLvvoExbiGbd9xKdKqDTrArnPbOqBqG/2wIosu0fHwpeIRI8Tl94MhVNBXcLJZl92ZQ5USw==" + "resolved" "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz" + "version" "5.0.12" + dependencies: + "compare-func" "^2.0.0" + "q" "^1.5.1" + +"conventional-changelog-atom@^2.0.8": + "integrity" "sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==" + "resolved" "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz" + "version" "2.0.8" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-codemirror@^2.0.8": + "integrity" "sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==" + "resolved" "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz" + "version" "2.0.8" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-conventionalcommits@^4.3.1", "conventional-changelog-conventionalcommits@^4.5.0": + "integrity" "sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw==" + "resolved" "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz" + "version" "4.5.0" + dependencies: + "compare-func" "^2.0.0" + "lodash" "^4.17.15" + "q" "^1.5.1" + +"conventional-changelog-core@^4.2.1": + "integrity" "sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==" + "resolved" "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz" + "version" "4.2.4" + dependencies: + "add-stream" "^1.0.0" + "conventional-changelog-writer" "^5.0.0" + "conventional-commits-parser" "^3.2.0" + "dateformat" "^3.0.0" + "get-pkg-repo" "^4.0.0" + "git-raw-commits" "^2.0.8" + "git-remote-origin-url" "^2.0.0" + "git-semver-tags" "^4.1.1" + "lodash" "^4.17.15" + "normalize-package-data" "^3.0.0" + "q" "^1.5.1" + "read-pkg" "^3.0.0" + "read-pkg-up" "^3.0.0" + "through2" "^4.0.0" + +"conventional-changelog-ember@^2.0.9": + "integrity" "sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==" + "resolved" "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz" + "version" "2.0.9" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-eslint@^3.0.9": + "integrity" "sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==" + "resolved" "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz" + "version" "3.0.9" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-express@^2.0.6": + "integrity" "sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==" + "resolved" "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz" + "version" "2.0.6" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-jquery@^3.0.11": + "integrity" "sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==" + "resolved" "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz" + "version" "3.0.11" + dependencies: + "q" "^1.5.1" + +"conventional-changelog-jshint@^2.0.9": + "integrity" "sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==" + "resolved" "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz" + "version" "2.0.9" + dependencies: + "compare-func" "^2.0.0" + "q" "^1.5.1" + +"conventional-changelog-preset-loader@^2.3.4": + "integrity" "sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==" + "resolved" "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz" + "version" "2.3.4" + +"conventional-changelog-writer@^5.0.0": + "integrity" "sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==" + "resolved" "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "conventional-commits-filter" "^2.0.7" + "dateformat" "^3.0.0" + "handlebars" "^4.7.7" + "json-stringify-safe" "^5.0.1" + "lodash" "^4.17.15" + "meow" "^8.0.0" + "semver" "^6.0.0" + "split" "^1.0.0" + "through2" "^4.0.0" + +"conventional-changelog@^3.1.25": + "integrity" "sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==" + "resolved" "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz" + "version" "3.1.25" + dependencies: + "conventional-changelog-angular" "^5.0.12" + "conventional-changelog-atom" "^2.0.8" + "conventional-changelog-codemirror" "^2.0.8" + "conventional-changelog-conventionalcommits" "^4.5.0" + "conventional-changelog-core" "^4.2.1" + "conventional-changelog-ember" "^2.0.9" + "conventional-changelog-eslint" "^3.0.9" + "conventional-changelog-express" "^2.0.6" + "conventional-changelog-jquery" "^3.0.11" + "conventional-changelog-jshint" "^2.0.9" + "conventional-changelog-preset-loader" "^2.3.4" + +"conventional-commits-filter@^2.0.7": + "integrity" "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==" + "resolved" "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz" + "version" "2.0.7" + dependencies: + "lodash.ismatch" "^4.4.0" + "modify-values" "^1.0.0" + +"conventional-commits-parser@^3.0.0", "conventional-commits-parser@^3.2.0": + "integrity" "sha512-XmJiXPxsF0JhAKyfA2Nn+rZwYKJ60nanlbSWwwkGwLQFbugsc0gv1rzc7VbbUWAzJfR1qR87/pNgv9NgmxtBMQ==" + "resolved" "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.0.tgz" + "version" "3.2.0" + dependencies: + "is-text-path" "^1.0.1" + "JSONStream" "^1.0.4" + "lodash" "^4.17.15" + "meow" "^8.0.0" + "split2" "^2.0.0" + "through2" "^4.0.0" + "trim-off-newlines" "^1.0.0" + +"conventional-recommended-bump@^6.1.0": + "integrity" "sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==" + "resolved" "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz" + "version" "6.1.0" + dependencies: + "concat-stream" "^2.0.0" + "conventional-changelog-preset-loader" "^2.3.4" + "conventional-commits-filter" "^2.0.7" + "conventional-commits-parser" "^3.2.0" + "git-raw-commits" "^2.0.8" + "git-semver-tags" "^4.1.1" + "meow" "^8.0.0" + "q" "^1.5.1" + +"convert-source-map@^1.4.0", "convert-source-map@^1.6.0", "convert-source-map@^1.7.0": + "integrity" "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==" + "resolved" "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz" + "version" "1.7.0" + dependencies: + "safe-buffer" "~5.1.1" + +"copy-descriptor@^0.1.0": + "integrity" "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" + "resolved" "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz" + "version" "0.1.1" + +"core-js-compat@^3.25.1": + "integrity" "sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A==" + "resolved" "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz" + "version" "3.26.0" + dependencies: + "browserslist" "^4.21.4" + +"core-js@^3.6.1": + "integrity" "sha512-FfApuSRgrR6G5s58casCBd9M2k+4ikuu4wbW6pJyYU7bd9zvFc9qf7vr5xmrZOhT9nn+8uwlH1oRR9jTnFoA3A==" + "resolved" "https://registry.npmjs.org/core-js/-/core-js-3.8.2.tgz" + "version" "3.8.2" + +"core-util-is@~1.0.0": + "integrity" "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" + "version" "1.0.2" + +"cosmiconfig@^5.0.5": + "integrity" "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==" + "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" + "version" "5.2.1" + dependencies: + "import-fresh" "^2.0.0" + "is-directory" "^0.3.1" + "js-yaml" "^3.13.1" + "parse-json" "^4.0.0" + +"cosmiconfig@^5.1.0": + "integrity" "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==" + "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" + "version" "5.2.1" + dependencies: + "import-fresh" "^2.0.0" + "is-directory" "^0.3.1" + "js-yaml" "^3.13.1" + "parse-json" "^4.0.0" + +"cosmiconfig@^7.0.0", "cosmiconfig@^7.0.1", "cosmiconfig@7.0.1": + "integrity" "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==" + "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz" + "version" "7.0.1" dependencies: "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -crypto-random-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" - integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -csstype@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9" - integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw== - -dargs@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" - integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== - -data-uri-to-buffer@3: - version "3.0.1" - resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" - integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -dateformat@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" - integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== - -dayjs@^1.8.15: - version "1.11.7" - resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.7.tgz#4b296922642f70999544d1144a2c25730fce63e2" - integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ== - -debug@2.6.9, debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@4, debug@4.3.4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -decamelize-keys@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" - integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decimal.js@^10.2.1: - version "10.4.3" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" - integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== - -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - -decompress-response@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" - integrity sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA== - dependencies: - mimic-response "^1.0.0" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== - -deep-extend@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" - integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" - integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== - -deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== - -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - -defer-to-connect@^1.0.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" - integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== - -define-properties@^1.1.3, define-properties@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" - integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== - dependencies: - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -degenerator@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/degenerator/-/degenerator-3.0.2.tgz#6a61fcc42a702d6e50ff6023fe17bff435f68235" - integrity sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ== - dependencies: - ast-types "^0.13.2" - escodegen "^1.8.1" - esprima "^4.0.0" - vm2 "^3.9.8" - -del@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a" - integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg== - dependencies: - globby "^11.0.1" - graceful-fs "^4.2.4" - is-glob "^4.0.1" - is-path-cwd "^2.2.0" - is-path-inside "^3.0.2" - p-map "^4.0.0" - rimraf "^3.0.2" - slash "^3.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -denodeify@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" - integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -deprecation@^2.0.0, deprecation@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" - integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== - -destroy@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -diff-sequences@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" - integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -dot-prop@^5.1.0, dot-prop@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" - integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== - dependencies: - is-obj "^2.0.0" - -duplexer3@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e" - integrity sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA== - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -ejs@^3.1.5: - version "3.1.8" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.8.tgz#758d32910c78047585c7ef1f92f9ee041c1c190b" - integrity sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ== - dependencies: - jake "^10.8.5" - -electron-to-chromium@^1.4.251: - version "1.4.284" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" - integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== - -emittery@^0.7.1: - version "0.7.2" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" - integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== - -encoding@^0.1.11: - version "0.1.13" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" - integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== - dependencies: - iconv-lite "^0.6.2" - -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -envinfo@^7.7.2: - version "7.8.1" - resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" - integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -error-stack-parser@^2.0.6: - version "2.1.4" - resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" - integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== - dependencies: - stackframe "^1.3.4" - -errorhandler@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91" - integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A== - dependencies: - accepts "~1.3.7" - escape-html "~1.0.3" - -es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.20.4: - version "1.20.5" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.5.tgz#e6dc99177be37cacda5988e692c3fa8b218e95d2" - integrity sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.1.3" - get-symbol-description "^1.0.0" - gopd "^1.0.1" - has "^1.0.3" - has-property-descriptors "^1.0.0" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - is-callable "^1.2.7" - is-negative-zero "^2.0.2" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - is-string "^1.0.7" - is-weakref "^1.0.2" - object-inspect "^1.12.2" - object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.4.3" - safe-regex-test "^1.0.0" - string.prototype.trimend "^1.0.6" - string.prototype.trimstart "^1.0.6" - unbox-primitive "^1.0.2" - -es-array-method-boxes-properly@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" - integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== - -es-get-iterator@^1.0.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.2.tgz#9234c54aba713486d7ebde0220864af5e2b283f7" - integrity sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.0" - has-symbols "^1.0.1" - is-arguments "^1.1.0" - is-map "^2.0.2" - is-set "^2.0.2" - is-string "^1.0.5" - isarray "^2.0.5" - -es-shim-unscopables@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" - integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== - dependencies: - has "^1.0.3" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-goat@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" - integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escodegen@^1.8.1: - version "1.14.3" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" - integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== - dependencies: - esprima "^4.0.1" - estraverse "^4.2.0" - esutils "^2.0.2" - optionator "^0.8.1" + "import-fresh" "^3.2.1" + "parse-json" "^5.0.0" + "path-type" "^4.0.0" + "yaml" "^1.10.0" + +"cross-spawn@^6.0.0": + "integrity" "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==" + "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" + "version" "6.0.5" + dependencies: + "nice-try" "^1.0.4" + "path-key" "^2.0.1" + "semver" "^5.5.0" + "shebang-command" "^1.2.0" + "which" "^1.2.9" + +"cross-spawn@^7.0.0", "cross-spawn@^7.0.2", "cross-spawn@^7.0.3": + "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==" + "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + "version" "7.0.3" + dependencies: + "path-key" "^3.1.0" + "shebang-command" "^2.0.0" + "which" "^2.0.1" + +"crypto-random-string@^4.0.0": + "integrity" "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==" + "resolved" "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "type-fest" "^1.0.1" + +"cssom@^0.4.4": + "integrity" "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" + "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz" + "version" "0.4.4" + +"cssom@~0.3.6": + "integrity" "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz" + "version" "0.3.8" + +"cssstyle@^2.3.0": + "integrity" "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==" + "resolved" "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz" + "version" "2.3.0" + dependencies: + "cssom" "~0.3.6" + +"csstype@^3.0.2": + "integrity" "sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ==" + "resolved" "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz" + "version" "3.0.5" + +"dargs@^7.0.0": + "integrity" "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==" + "resolved" "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz" + "version" "7.0.0" + +"data-uri-to-buffer@^4.0.0": + "integrity" "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" + "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz" + "version" "4.0.0" + +"data-uri-to-buffer@3": + "integrity" "sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==" + "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz" + "version" "3.0.1" + +"data-urls@^2.0.0": + "integrity" "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==" + "resolved" "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "abab" "^2.0.3" + "whatwg-mimetype" "^2.3.0" + "whatwg-url" "^8.0.0" + +"dateformat@^3.0.0": + "integrity" "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==" + "resolved" "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz" + "version" "3.0.3" + +"dayjs@^1.8.15": + "integrity" "sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ==" + "resolved" "https://registry.npmjs.org/dayjs/-/dayjs-1.11.6.tgz" + "version" "1.11.6" + +"debug@^2.2.0": + "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + "version" "2.6.9" + dependencies: + "ms" "2.0.0" + +"debug@^2.3.3": + "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + "version" "2.6.9" + dependencies: + "ms" "2.0.0" + +"debug@^4.0.1", "debug@^4.1.0", "debug@^4.1.1", "debug@4": + "integrity" "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==" + "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz" + "version" "4.3.1" + dependencies: + "ms" "2.1.2" + +"debug@2.6.9": + "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + "version" "2.6.9" + dependencies: + "ms" "2.0.0" + +"decamelize-keys@^1.1.0": + "integrity" "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=" + "resolved" "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz" + "version" "1.1.0" + dependencies: + "decamelize" "^1.1.0" + "map-obj" "^1.0.0" + +"decamelize@^1.1.0", "decamelize@^1.2.0": + "integrity" "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" + "version" "1.2.0" + +"decimal.js@^10.2.1": + "integrity" "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==" + "resolved" "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz" + "version" "10.2.1" + +"decode-uri-component@^0.2.0": + "integrity" "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + "resolved" "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz" + "version" "0.2.0" + +"decompress-response@^6.0.0": + "integrity" "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==" + "resolved" "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "mimic-response" "^3.1.0" + +"dedent@^0.7.0": + "integrity" "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=" + "resolved" "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" + "version" "0.7.0" + +"deep-extend@^0.6.0": + "integrity" "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" + "resolved" "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" + "version" "0.6.0" + +"deep-is@^0.1.3", "deep-is@~0.1.3": + "integrity" "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" + "resolved" "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz" + "version" "0.1.3" + +"deepmerge@^3.2.0": + "integrity" "sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA==" + "resolved" "https://registry.npmjs.org/deepmerge/-/deepmerge-3.3.0.tgz" + "version" "3.3.0" + +"deepmerge@^4.2.2": + "integrity" "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==" + "resolved" "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz" + "version" "4.2.2" + +"defaults@^1.0.3": + "integrity" "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==" + "resolved" "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" + "version" "1.0.4" + dependencies: + "clone" "^1.0.2" + +"defer-to-connect@^2.0.1": + "integrity" "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" + "resolved" "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" + "version" "2.0.1" + +"define-lazy-prop@^2.0.0": + "integrity" "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" + "resolved" "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz" + "version" "2.0.0" + +"define-properties@^1.1.3", "define-properties@^1.1.4": + "integrity" "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==" + "resolved" "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz" + "version" "1.1.4" + dependencies: + "has-property-descriptors" "^1.0.0" + "object-keys" "^1.1.1" + +"define-property@^0.2.5": + "integrity" "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=" + "resolved" "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz" + "version" "0.2.5" + dependencies: + "is-descriptor" "^0.1.0" + +"define-property@^1.0.0": + "integrity" "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=" + "resolved" "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "is-descriptor" "^1.0.0" + +"define-property@^2.0.2": + "integrity" "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==" + "resolved" "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz" + "version" "2.0.2" + dependencies: + "is-descriptor" "^1.0.2" + "isobject" "^3.0.1" + +"degenerator@^3.0.2": + "integrity" "sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ==" + "resolved" "https://registry.npmjs.org/degenerator/-/degenerator-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "ast-types" "^0.13.2" + "escodegen" "^1.8.1" + "esprima" "^4.0.0" + "vm2" "^3.9.8" + +"del@^6.1.1": + "integrity" "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==" + "resolved" "https://registry.npmjs.org/del/-/del-6.1.1.tgz" + "version" "6.1.1" + dependencies: + "globby" "^11.0.1" + "graceful-fs" "^4.2.4" + "is-glob" "^4.0.1" + "is-path-cwd" "^2.2.0" + "is-path-inside" "^3.0.2" + "p-map" "^4.0.0" + "rimraf" "^3.0.2" + "slash" "^3.0.0" + +"delayed-stream@~1.0.0": + "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + "version" "1.0.0" + +"denodeify@^1.2.1": + "integrity" "sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==" + "resolved" "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz" + "version" "1.2.1" + +"depd@2.0.0": + "integrity" "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + "resolved" "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + "version" "2.0.0" + +"deprecation@^2.0.0", "deprecation@^2.3.1": + "integrity" "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" + "resolved" "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz" + "version" "2.3.1" + +"destroy@1.2.0": + "integrity" "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + "resolved" "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + "version" "1.2.0" + +"detect-newline@^3.0.0": + "integrity" "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==" + "resolved" "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" + "version" "3.1.0" + +"diff-sequences@^26.6.2": + "integrity" "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==" + "resolved" "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz" + "version" "26.6.2" + +"dir-glob@^3.0.1": + "integrity" "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==" + "resolved" "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "path-type" "^4.0.0" + +"doctrine@^2.1.0": + "integrity" "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==" + "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "esutils" "^2.0.2" + +"doctrine@^3.0.0": + "integrity" "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==" + "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "esutils" "^2.0.2" + +"domexception@^2.0.1": + "integrity" "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==" + "resolved" "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "webidl-conversions" "^5.0.0" + +"dot-prop@^5.1.0": + "integrity" "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==" + "resolved" "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz" + "version" "5.3.0" + dependencies: + "is-obj" "^2.0.0" + +"dot-prop@^6.0.1": + "integrity" "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==" + "resolved" "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz" + "version" "6.0.1" + dependencies: + "is-obj" "^2.0.0" + +"eastasianwidth@^0.2.0": + "integrity" "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + "resolved" "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" + "version" "0.2.0" + +"ee-first@1.1.1": + "integrity" "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + "resolved" "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + "version" "1.1.1" + +"electron-to-chromium@^1.4.251": + "integrity" "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" + "resolved" "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz" + "version" "1.4.284" + +"emittery@^0.7.1": + "integrity" "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==" + "resolved" "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz" + "version" "0.7.2" + +"emoji-regex@^8.0.0": + "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + "version" "8.0.0" + +"emoji-regex@^9.2.2": + "integrity" "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" + "version" "9.2.2" + +"encodeurl@~1.0.2": + "integrity" "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + "resolved" "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" + "version" "1.0.2" + +"end-of-stream@^1.1.0": + "integrity" "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==" + "resolved" "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" + "version" "1.4.4" + dependencies: + "once" "^1.4.0" + +"enquirer@^2.3.5": + "integrity" "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==" + "resolved" "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" + "version" "2.3.6" + dependencies: + "ansi-colors" "^4.1.1" + +"envinfo@^7.7.2": + "integrity" "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==" + "resolved" "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz" + "version" "7.8.1" + +"error-ex@^1.3.1": + "integrity" "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==" + "resolved" "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" + "version" "1.3.2" + dependencies: + "is-arrayish" "^0.2.1" + +"error-stack-parser@^2.0.6": + "integrity" "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==" + "resolved" "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz" + "version" "2.1.4" + dependencies: + "stackframe" "^1.3.4" + +"errorhandler@^1.5.0": + "integrity" "sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==" + "resolved" "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz" + "version" "1.5.1" + dependencies: + "accepts" "~1.3.7" + "escape-html" "~1.0.3" + +"es-abstract@^1.18.0-next.1", "es-abstract@^1.19.0", "es-abstract@^1.19.1", "es-abstract@^1.19.5": + "integrity" "sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==" + "resolved" "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz" + "version" "1.20.4" + dependencies: + "call-bind" "^1.0.2" + "es-to-primitive" "^1.2.1" + "function-bind" "^1.1.1" + "function.prototype.name" "^1.1.5" + "get-intrinsic" "^1.1.3" + "get-symbol-description" "^1.0.0" + "has" "^1.0.3" + "has-property-descriptors" "^1.0.0" + "has-symbols" "^1.0.3" + "internal-slot" "^1.0.3" + "is-callable" "^1.2.7" + "is-negative-zero" "^2.0.2" + "is-regex" "^1.1.4" + "is-shared-array-buffer" "^1.0.2" + "is-string" "^1.0.7" + "is-weakref" "^1.0.2" + "object-inspect" "^1.12.2" + "object-keys" "^1.1.1" + "object.assign" "^4.1.4" + "regexp.prototype.flags" "^1.4.3" + "safe-regex-test" "^1.0.0" + "string.prototype.trimend" "^1.0.5" + "string.prototype.trimstart" "^1.0.5" + "unbox-primitive" "^1.0.2" + +"es-array-method-boxes-properly@^1.0.0": + "integrity" "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" + "resolved" "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" + "version" "1.0.0" + +"es-get-iterator@^1.0.2": + "integrity" "sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==" + "resolved" "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz" + "version" "1.1.2" + dependencies: + "call-bind" "^1.0.2" + "get-intrinsic" "^1.1.0" + "has-symbols" "^1.0.1" + "is-arguments" "^1.1.0" + "is-map" "^2.0.2" + "is-set" "^2.0.2" + "is-string" "^1.0.5" + "isarray" "^2.0.5" + +"es-to-primitive@^1.2.1": + "integrity" "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==" + "resolved" "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" + "version" "1.2.1" + dependencies: + "is-callable" "^1.1.4" + "is-date-object" "^1.0.1" + "is-symbol" "^1.0.2" + +"escalade@^3.1.1": + "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + "version" "3.1.1" + +"escape-goat@^4.0.0": + "integrity" "sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==" + "resolved" "https://registry.npmjs.org/escape-goat/-/escape-goat-4.0.0.tgz" + "version" "4.0.0" + +"escape-html@~1.0.3": + "integrity" "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + "resolved" "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + "version" "1.0.3" + +"escape-string-regexp@^1.0.5": + "integrity" "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + "version" "1.0.5" + +"escape-string-regexp@^2.0.0": + "integrity" "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" + "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" + "version" "2.0.0" + +"escape-string-regexp@^5.0.0": + "integrity" "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==" + "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" + "version" "5.0.0" + +"escodegen@^1.8.1": + "integrity" "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==" + "resolved" "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" + "version" "1.14.3" + dependencies: + "esprima" "^4.0.1" + "estraverse" "^4.2.0" + "esutils" "^2.0.2" + "optionator" "^0.8.1" optionalDependencies: - source-map "~0.6.1" + "source-map" "~0.6.1" -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== +"escodegen@^2.0.0": + "integrity" "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==" + "resolved" "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz" + "version" "2.0.0" dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" + "esprima" "^4.0.1" + "estraverse" "^5.2.0" + "esutils" "^2.0.2" + "optionator" "^0.8.1" optionalDependencies: - source-map "~0.6.1" + "source-map" "~0.6.1" -eslint-config-prettier@^6.10.1: - version "6.15.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9" - integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== +"eslint-config-prettier@^6.10.1": + "integrity" "sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw==" + "resolved" "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz" + "version" "6.15.0" dependencies: - get-stdin "^6.0.0" + "get-stdin" "^6.0.0" -eslint-config-prettier@^7.0.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" - integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg== +"eslint-config-prettier@^7.0.0": + "integrity" "sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA==" + "resolved" "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz" + "version" "7.1.0" -eslint-plugin-eslint-comments@^3.1.2: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz#9e1cd7b4413526abb313933071d7aba05ca12ffa" - integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== +"eslint-plugin-eslint-comments@^3.1.2": + "integrity" "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==" + "resolved" "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz" + "version" "3.2.0" dependencies: - escape-string-regexp "^1.0.5" - ignore "^5.0.5" + "escape-string-regexp" "^1.0.5" + "ignore" "^5.0.5" -eslint-plugin-flowtype@2.50.3: - version "2.50.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz#61379d6dce1d010370acd6681740fd913d68175f" - integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ== +"eslint-plugin-flowtype@2.50.3": + "integrity" "sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ==" + "resolved" "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz" + "version" "2.50.3" dependencies: - lodash "^4.17.10" + "lodash" "^4.17.10" -eslint-plugin-jest@22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz#a5fd6f7a2a41388d16f527073b778013c5189a9c" - integrity sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg== +"eslint-plugin-jest@22.4.1": + "integrity" "sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg==" + "resolved" "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz" + "version" "22.4.1" -eslint-plugin-prettier@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba" - integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== +"eslint-plugin-prettier@^3.1.3": + "integrity" "sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ==" + "resolved" "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz" + "version" "3.3.1" dependencies: - prettier-linter-helpers "^1.0.0" + "prettier-linter-helpers" "^1.0.0" -eslint-plugin-prettier@^3.1.3: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" - integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== +"eslint-plugin-prettier@3.1.2": + "integrity" "sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA==" + "resolved" "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz" + "version" "3.1.2" dependencies: - prettier-linter-helpers "^1.0.0" + "prettier-linter-helpers" "^1.0.0" -eslint-plugin-react-hooks@^4.0.4: - version "4.6.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" - integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== +"eslint-plugin-react-hooks@^4.0.4": + "integrity" "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==" + "resolved" "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz" + "version" "4.2.0" -eslint-plugin-react-native-globals@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2" - integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g== +"eslint-plugin-react-native-globals@^0.1.1": + "integrity" "sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==" + "resolved" "https://registry.npmjs.org/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz" + "version" "0.1.2" -eslint-plugin-react-native@^3.8.1: - version "3.11.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.11.0.tgz#c73b0886abb397867e5e6689d3a6a418682e6bac" - integrity sha512-7F3OTwrtQPfPFd+VygqKA2VZ0f2fz0M4gJmry/TRE18JBb94/OtMxwbL7Oqwu7FGyrdeIOWnXQbBAveMcSTZIA== +"eslint-plugin-react-native@^3.8.1": + "integrity" "sha512-4f5+hHYYq5wFhB5eptkPEAR7FfvqbS7AzScUOANfAMZtYw5qgnCxRq45bpfBaQF+iyPMim5Q8pubcpvLv75NAg==" + "resolved" "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-3.10.0.tgz" + "version" "3.10.0" dependencies: "@babel/traverse" "^7.7.4" - eslint-plugin-react-native-globals "^0.1.1" - -eslint-plugin-react@^7.20.0: - version "7.31.11" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz#011521d2b16dcf95795df688a4770b4eaab364c8" - integrity sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw== - dependencies: - array-includes "^3.1.6" - array.prototype.flatmap "^1.3.1" - array.prototype.tosorted "^1.1.1" - doctrine "^2.1.0" - estraverse "^5.3.0" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.6" - object.fromentries "^2.0.6" - object.hasown "^1.1.2" - object.values "^1.1.6" - prop-types "^15.8.1" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.8" - -eslint-scope@^5.0.0, eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-utils@^2.0.0, eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint@^7.2.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== - dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.0.1" - doctrine "^3.0.0" - enquirer "^2.3.5" - escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" - globals "^13.6.0" - ignore "^4.0.6" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^3.13.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" - strip-json-comments "^3.1.0" - table "^6.0.9" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== - dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" - -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1, estraverse@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -event-target-shim@^5.0.0, event-target-shim@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" - integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== - -eventemitter3@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" - integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== - -exec-sh@^0.3.2: - version "0.3.6" - resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" - integrity sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w== - -execa@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== - dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^4.0.0, execa@^4.0.2, execa@^4.0.3: - version "4.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" - integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== - dependencies: - cross-spawn "^7.0.0" - get-stream "^5.0.0" - human-signals "^1.1.1" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.0" - onetime "^5.1.0" - signal-exit "^3.0.2" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expect@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" - integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== + "eslint-plugin-react-native-globals" "^0.1.1" + +"eslint-plugin-react@^7.20.0": + "integrity" "sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==" + "resolved" "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz" + "version" "7.22.0" + dependencies: + "array-includes" "^3.1.1" + "array.prototype.flatmap" "^1.2.3" + "doctrine" "^2.1.0" + "has" "^1.0.3" + "jsx-ast-utils" "^2.4.1 || ^3.0.0" + "object.entries" "^1.1.2" + "object.fromentries" "^2.0.2" + "object.values" "^1.1.1" + "prop-types" "^15.7.2" + "resolve" "^1.18.1" + "string.prototype.matchall" "^4.0.2" + +"eslint-scope@^5.0.0", "eslint-scope@^5.1.1": + "integrity" "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==" + "resolved" "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" + "version" "5.1.1" + dependencies: + "esrecurse" "^4.3.0" + "estraverse" "^4.1.1" + +"eslint-utils@^2.0.0", "eslint-utils@^2.1.0": + "integrity" "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==" + "resolved" "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "eslint-visitor-keys" "^1.1.0" + +"eslint-visitor-keys@^1.0.0", "eslint-visitor-keys@^1.1.0", "eslint-visitor-keys@^1.3.0": + "integrity" "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==" + "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" + "version" "1.3.0" + +"eslint-visitor-keys@^2.0.0": + "integrity" "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==" + "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz" + "version" "2.0.0" + +"eslint@*", "eslint@^3 || ^4 || ^5 || ^6 || ^7", "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", "eslint@^3.17.0 || ^4 || ^5 || ^6 || ^7", "eslint@^5.0.0 || ^6.0.0 || ^7.0.0", "eslint@^7.2.0", "eslint@>= 4.12.1", "eslint@>= 5.0.0", "eslint@>=2.0.0", "eslint@>=3.14.1", "eslint@>=4.19.1", "eslint@>=5", "eslint@>=5.0.0", "eslint@>=6", "eslint@>=7.0.0": + "integrity" "sha512-zJk08MiBgwuGoxes5sSQhOtibZ75pz0J35XTRlZOk9xMffhpA9BTbQZxoXZzOl5zMbleShbGwtw+1kGferfFwQ==" + "resolved" "https://registry.npmjs.org/eslint/-/eslint-7.17.0.tgz" + "version" "7.17.0" + dependencies: + "@babel/code-frame" "^7.0.0" + "@eslint/eslintrc" "^0.2.2" + "ajv" "^6.10.0" + "chalk" "^4.0.0" + "cross-spawn" "^7.0.2" + "debug" "^4.0.1" + "doctrine" "^3.0.0" + "enquirer" "^2.3.5" + "eslint-scope" "^5.1.1" + "eslint-utils" "^2.1.0" + "eslint-visitor-keys" "^2.0.0" + "espree" "^7.3.1" + "esquery" "^1.2.0" + "esutils" "^2.0.2" + "file-entry-cache" "^6.0.0" + "functional-red-black-tree" "^1.0.1" + "glob-parent" "^5.0.0" + "globals" "^12.1.0" + "ignore" "^4.0.6" + "import-fresh" "^3.0.0" + "imurmurhash" "^0.1.4" + "is-glob" "^4.0.0" + "js-yaml" "^3.13.1" + "json-stable-stringify-without-jsonify" "^1.0.1" + "levn" "^0.4.1" + "lodash" "^4.17.19" + "minimatch" "^3.0.4" + "natural-compare" "^1.4.0" + "optionator" "^0.9.1" + "progress" "^2.0.0" + "regexpp" "^3.1.0" + "semver" "^7.2.1" + "strip-ansi" "^6.0.0" + "strip-json-comments" "^3.1.0" + "table" "^6.0.4" + "text-table" "^0.2.0" + "v8-compile-cache" "^2.0.3" + +"espree@^7.3.0", "espree@^7.3.1": + "integrity" "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==" + "resolved" "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz" + "version" "7.3.1" + dependencies: + "acorn" "^7.4.0" + "acorn-jsx" "^5.3.1" + "eslint-visitor-keys" "^1.3.0" + +"esprima@^4.0.0", "esprima@^4.0.1", "esprima@~4.0.0": + "integrity" "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "resolved" "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" + "version" "4.0.1" + +"esquery@^1.2.0": + "integrity" "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==" + "resolved" "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz" + "version" "1.3.1" + dependencies: + "estraverse" "^5.1.0" + +"esrecurse@^4.3.0": + "integrity" "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==" + "resolved" "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + "version" "4.3.0" + dependencies: + "estraverse" "^5.2.0" + +"estraverse@^4.1.1", "estraverse@^4.2.0": + "integrity" "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" + "version" "4.3.0" + +"estraverse@^5.1.0": + "integrity" "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==" + "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz" + "version" "5.2.0" + +"estraverse@^5.2.0": + "integrity" "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + "version" "5.3.0" + +"esutils@^2.0.2": + "integrity" "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "resolved" "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + "version" "2.0.3" + +"etag@~1.8.1": + "integrity" "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + "resolved" "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + "version" "1.8.1" + +"event-target-shim@^5.0.0", "event-target-shim@^5.0.1": + "integrity" "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + "resolved" "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" + "version" "5.0.1" + +"exec-sh@^0.3.2": + "integrity" "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==" + "resolved" "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz" + "version" "0.3.4" + +"execa@^1.0.0": + "integrity" "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==" + "resolved" "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "cross-spawn" "^6.0.0" + "get-stream" "^4.0.0" + "is-stream" "^1.1.0" + "npm-run-path" "^2.0.0" + "p-finally" "^1.0.0" + "signal-exit" "^3.0.0" + "strip-eof" "^1.0.0" + +"execa@^4.0.0", "execa@^4.0.3": + "integrity" "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==" + "resolved" "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "cross-spawn" "^7.0.0" + "get-stream" "^5.0.0" + "human-signals" "^1.1.1" + "is-stream" "^2.0.0" + "merge-stream" "^2.0.0" + "npm-run-path" "^4.0.0" + "onetime" "^5.1.0" + "signal-exit" "^3.0.2" + "strip-final-newline" "^2.0.0" + +"execa@^5.1.1": + "integrity" "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==" + "resolved" "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" + "version" "5.1.1" + dependencies: + "cross-spawn" "^7.0.3" + "get-stream" "^6.0.0" + "human-signals" "^2.1.0" + "is-stream" "^2.0.0" + "merge-stream" "^2.0.0" + "npm-run-path" "^4.0.1" + "onetime" "^5.1.2" + "signal-exit" "^3.0.3" + "strip-final-newline" "^2.0.0" + +"execa@6.1.0": + "integrity" "sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==" + "resolved" "https://registry.npmjs.org/execa/-/execa-6.1.0.tgz" + "version" "6.1.0" + dependencies: + "cross-spawn" "^7.0.3" + "get-stream" "^6.0.1" + "human-signals" "^3.0.1" + "is-stream" "^3.0.0" + "merge-stream" "^2.0.0" + "npm-run-path" "^5.1.0" + "onetime" "^6.0.0" + "signal-exit" "^3.0.7" + "strip-final-newline" "^3.0.0" + +"exit@^0.1.2": + "integrity" "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=" + "resolved" "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" + "version" "0.1.2" + +"expand-brackets@^2.1.4": + "integrity" "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=" + "resolved" "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz" + "version" "2.1.4" + dependencies: + "debug" "^2.3.3" + "define-property" "^0.2.5" + "extend-shallow" "^2.0.1" + "posix-character-classes" "^0.1.0" + "regex-not" "^1.0.0" + "snapdragon" "^0.8.1" + "to-regex" "^3.0.1" + +"expect@^26.6.2": + "integrity" "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==" + "resolved" "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - ansi-styles "^4.0.0" - jest-get-type "^26.3.0" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - -extend-shallow@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-1.1.4.tgz#19d6bf94dfc09d76ba711f39b872d21ff4dd9071" - integrity sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw== - dependencies: - kind-of "^1.1.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -external-editor@^2.0.4: - version "2.2.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5" - integrity sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A== - dependencies: - chardet "^0.4.0" - iconv-lite "^0.4.17" - tmp "^0.0.33" - -external-editor@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" - integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -fancy-log@^1.3.2: - version "1.3.3" - resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.3.tgz#dbc19154f558690150a23953a0adbd035be45fc7" - integrity sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw== - dependencies: - ansi-gray "^0.1.1" - color-support "^1.1.3" - parse-node-version "^1.0.0" - time-stamp "^1.0.0" - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== - -fast-glob@^3.1.1, fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== + "ansi-styles" "^4.0.0" + "jest-get-type" "^26.3.0" + "jest-matcher-utils" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-regex-util" "^26.0.0" + +"extend-shallow@^2.0.1": + "integrity" "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=" + "resolved" "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "is-extendable" "^0.1.0" + +"extend-shallow@^3.0.0", "extend-shallow@^3.0.2": + "integrity" "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==" + "resolved" "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "assign-symbols" "^1.0.0" + "is-extendable" "^1.0.1" + +"external-editor@^3.0.3": + "integrity" "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==" + "resolved" "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "chardet" "^0.7.0" + "iconv-lite" "^0.4.24" + "tmp" "^0.0.33" + +"extglob@^2.0.4": + "integrity" "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==" + "resolved" "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz" + "version" "2.0.4" + dependencies: + "array-unique" "^0.3.2" + "define-property" "^1.0.0" + "expand-brackets" "^2.1.4" + "extend-shallow" "^2.0.1" + "fragment-cache" "^0.2.1" + "regex-not" "^1.0.0" + "snapdragon" "^0.8.1" + "to-regex" "^3.0.1" + +"fast-deep-equal@^3.1.1": + "integrity" "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + "version" "3.1.3" + +"fast-diff@^1.1.2": + "integrity" "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" + "resolved" "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" + "version" "1.2.0" + +"fast-glob@^3.2.11", "fast-glob@^3.2.9": + "integrity" "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==" + "resolved" "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" + "version" "3.2.12" dependencies: "@nodelib/fs.stat" "^2.0.2" "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fastq@^1.6.0: - version "1.14.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.14.0.tgz#107f69d7295b11e0fccc264e1fc6389f623731ce" - integrity sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg== - dependencies: - reusify "^1.0.4" - -fb-watchman@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" - integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== - dependencies: - bser "2.1.1" - -fbjs-css-vars@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" - integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== - -fbjs-scripts@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-1.2.0.tgz#069a0c0634242d10031c6460ef1fccefcdae8b27" - integrity sha512-5krZ8T0Bf8uky0abPoCLrfa7Orxd8UH4Qq8hRUF2RZYNMu+FmEOrBc7Ib3YVONmxTXTlLAvyrrdrVmksDb2OqQ== - dependencies: - "@babel/core" "^7.0.0" - ansi-colors "^1.0.1" - babel-preset-fbjs "^3.2.0" - core-js "^2.4.1" - cross-spawn "^5.1.0" - fancy-log "^1.3.2" - object-assign "^4.0.1" - plugin-error "^0.1.2" - semver "^5.1.0" - through2 "^2.0.0" - -fbjs@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a" - integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA== - dependencies: - core-js "^2.4.1" - fbjs-css-vars "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.18" - -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - integrity sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA== - dependencies: - escape-string-regexp "^1.0.5" - -figures@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== - dependencies: - escape-string-regexp "^1.0.5" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -file-uri-to-path@2: - version "2.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz#7b415aeba227d575851e0a5b0c640d7656403fba" - integrity sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg== - -filelist@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" - integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== - dependencies: - minimatch "^5.0.1" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== - -finalhandler@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -find-cache-dir@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" - integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== - dependencies: - commondir "^1.0.1" - make-dir "^2.0.0" - pkg-dir "^3.0.0" - -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== - dependencies: - locate-path "^2.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -find-versions@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-4.0.0.tgz#3c57e573bf97769b8cb8df16934b627915da4965" - integrity sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ== - dependencies: - semver-regex "^3.1.2" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - -form-data@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -fs-extra@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" - integrity sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ== - dependencies: - graceful-fs "^4.1.2" - jsonfile "^2.1.0" - klaw "^1.0.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-extra@^9.0.0, fs-extra@^9.0.1: - version "9.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@^1.2.7: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - -fsevents@^2.1.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -ftp@^0.3.10: - version "0.3.10" - resolved "https://registry.yarnpkg.com/ftp/-/ftp-0.3.10.tgz#9197d861ad8142f3e63d5a83bfe4c59f7330885d" - integrity sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ== - dependencies: - readable-stream "1.1.x" - xregexp "2.0.0" - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -function.prototype.name@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" - integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - functions-have-names "^1.2.2" - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - -functions-have-names@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.1, get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" - integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.3" - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-pkg-repo@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz#75973e1c8050c73f48190c52047c4cee3acbf385" - integrity sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA== + "glob-parent" "^5.1.2" + "merge2" "^1.3.0" + "micromatch" "^4.0.4" + +"fast-json-stable-stringify@^2.0.0": + "integrity" "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "resolved" "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + "version" "2.1.0" + +"fast-levenshtein@^2.0.6", "fast-levenshtein@~2.0.6": + "integrity" "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" + "resolved" "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + "version" "2.0.6" + +"fastq@^1.6.0": + "integrity" "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==" + "resolved" "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz" + "version" "1.13.0" + dependencies: + "reusify" "^1.0.4" + +"fb-watchman@^2.0.0": + "integrity" "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==" + "resolved" "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "bser" "2.1.1" + +"fetch-blob@^3.1.2", "fetch-blob@^3.1.4": + "integrity" "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==" + "resolved" "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz" + "version" "3.2.0" + dependencies: + "node-domexception" "^1.0.0" + "web-streams-polyfill" "^3.0.3" + +"figures@^5.0.0": + "integrity" "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==" + "resolved" "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "escape-string-regexp" "^5.0.0" + "is-unicode-supported" "^1.2.0" + +"file-entry-cache@^6.0.0": + "integrity" "sha512-fqoO76jZ3ZnYrXLDRxBR1YvOvc0k844kcOg40bgsPrE25LAb/PDqTY+ho64Xh2c8ZXgIKldchCFHczG2UVRcWA==" + "resolved" "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "flat-cache" "^3.0.4" + +"file-uri-to-path@2": + "integrity" "sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==" + "resolved" "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz" + "version" "2.0.0" + +"fill-range@^4.0.0": + "integrity" "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==" + "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "extend-shallow" "^2.0.1" + "is-number" "^3.0.0" + "repeat-string" "^1.6.1" + "to-regex-range" "^2.1.0" + +"fill-range@^7.0.1": + "integrity" "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" + "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" + "version" "7.0.1" + dependencies: + "to-regex-range" "^5.0.1" + +"finalhandler@1.1.2": + "integrity" "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==" + "resolved" "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz" + "version" "1.1.2" + dependencies: + "debug" "2.6.9" + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "on-finished" "~2.3.0" + "parseurl" "~1.3.3" + "statuses" "~1.5.0" + "unpipe" "~1.0.0" + +"find-cache-dir@^2.0.0": + "integrity" "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==" + "resolved" "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "commondir" "^1.0.1" + "make-dir" "^2.0.0" + "pkg-dir" "^3.0.0" + +"find-up@^2.0.0": + "integrity" "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "locate-path" "^2.0.0" + +"find-up@^3.0.0": + "integrity" "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "locate-path" "^3.0.0" + +"find-up@^4.0.0": + "integrity" "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "locate-path" "^5.0.0" + "path-exists" "^4.0.0" + +"find-up@^4.1.0": + "integrity" "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "locate-path" "^5.0.0" + "path-exists" "^4.0.0" + +"find-up@^5.0.0": + "integrity" "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "locate-path" "^6.0.0" + "path-exists" "^4.0.0" + +"find-versions@^4.0.0": + "integrity" "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==" + "resolved" "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "semver-regex" "^3.1.2" + +"flat-cache@^3.0.4": + "integrity" "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==" + "resolved" "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" + "version" "3.0.4" + dependencies: + "flatted" "^3.1.0" + "rimraf" "^3.0.2" + +"flatted@^3.1.0": + "integrity" "sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==" + "resolved" "https://registry.npmjs.org/flatted/-/flatted-3.1.0.tgz" + "version" "3.1.0" + +"flow-parser@^0.121.0", "flow-parser@0.*": + "integrity" "sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg==" + "resolved" "https://registry.npmjs.org/flow-parser/-/flow-parser-0.121.0.tgz" + "version" "0.121.0" + +"for-in@^1.0.2": + "integrity" "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" + "resolved" "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz" + "version" "1.0.2" + +"form-data-encoder@^2.1.2": + "integrity" "sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ==" + "resolved" "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.3.tgz" + "version" "2.1.3" + +"form-data@^3.0.0": + "integrity" "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==" + "resolved" "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "asynckit" "^0.4.0" + "combined-stream" "^1.0.8" + "mime-types" "^2.1.12" + +"form-data@4.0.0": + "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" + "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "asynckit" "^0.4.0" + "combined-stream" "^1.0.8" + "mime-types" "^2.1.12" + +"formdata-polyfill@^4.0.10": + "integrity" "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==" + "resolved" "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz" + "version" "4.0.10" + dependencies: + "fetch-blob" "^3.1.2" + +"fragment-cache@^0.2.1": + "integrity" "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=" + "resolved" "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz" + "version" "0.2.1" + dependencies: + "map-cache" "^0.2.2" + +"fresh@0.5.2": + "integrity" "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + "resolved" "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + "version" "0.5.2" + +"fs-extra@^1.0.0": + "integrity" "sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ==" + "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "graceful-fs" "^4.1.2" + "jsonfile" "^2.1.0" + "klaw" "^1.0.0" + +"fs-extra@^10.1.0": + "integrity" "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==" + "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" + "version" "10.1.0" + dependencies: + "graceful-fs" "^4.2.0" + "jsonfile" "^6.0.1" + "universalify" "^2.0.0" + +"fs-extra@^8.1.0": + "integrity" "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==" + "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" + "version" "8.1.0" + dependencies: + "graceful-fs" "^4.2.0" + "jsonfile" "^4.0.0" + "universalify" "^0.1.0" + +"fs-extra@^9.0.0": + "integrity" "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==" + "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz" + "version" "9.0.1" + dependencies: + "at-least-node" "^1.0.0" + "graceful-fs" "^4.2.0" + "jsonfile" "^6.0.1" + "universalify" "^1.0.0" + +"fs.realpath@^1.0.0": + "integrity" "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + "version" "1.0.0" + +"fsevents@^2.1.2": + "integrity" "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==" + "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz" + "version" "2.3.1" + +"ftp@^0.3.10": + "integrity" "sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ==" + "resolved" "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz" + "version" "0.3.10" + dependencies: + "readable-stream" "1.1.x" + "xregexp" "2.0.0" + +"function-bind@^1.1.1": + "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" + "version" "1.1.1" + +"function.prototype.name@^1.1.5": + "integrity" "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==" + "resolved" "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" + "version" "1.1.5" + dependencies: + "call-bind" "^1.0.2" + "define-properties" "^1.1.3" + "es-abstract" "^1.19.0" + "functions-have-names" "^1.2.2" + +"functional-red-black-tree@^1.0.1": + "integrity" "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" + "resolved" "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" + "version" "1.0.1" + +"functions-have-names@^1.2.2": + "integrity" "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + "resolved" "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" + "version" "1.2.3" + +"gensync@^1.0.0-beta.2": + "integrity" "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + "resolved" "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" + "version" "1.0.0-beta.2" + +"get-caller-file@^2.0.1", "get-caller-file@^2.0.5": + "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + "version" "2.0.5" + +"get-intrinsic@^1.0.1", "get-intrinsic@^1.0.2", "get-intrinsic@^1.1.0", "get-intrinsic@^1.1.1", "get-intrinsic@^1.1.3": + "integrity" "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==" + "resolved" "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz" + "version" "1.1.3" + dependencies: + "function-bind" "^1.1.1" + "has" "^1.0.3" + "has-symbols" "^1.0.3" + +"get-package-type@^0.1.0": + "integrity" "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==" + "resolved" "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" + "version" "0.1.0" + +"get-pkg-repo@^4.0.0": + "integrity" "sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==" + "resolved" "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz" + "version" "4.2.1" dependencies: "@hutson/parse-repository-url" "^3.0.0" - hosted-git-info "^4.0.0" - through2 "^2.0.0" - yargs "^16.2.0" + "hosted-git-info" "^4.0.0" + "through2" "^2.0.0" + "yargs" "^16.2.0" -get-stdin@8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" - integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg== +"get-stdin@^6.0.0": + "integrity" "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==" + "resolved" "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz" + "version" "6.0.0" -get-stdin@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" - integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== +"get-stdin@8.0.0": + "integrity" "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==" + "resolved" "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz" + "version" "8.0.0" -get-stream@^4.0.0, get-stream@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== +"get-stream@^4.0.0": + "integrity" "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==" + "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" + "version" "4.1.0" dependencies: - pump "^3.0.0" + "pump" "^3.0.0" -get-stream@^5.0.0, get-stream@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== +"get-stream@^5.0.0": + "integrity" "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==" + "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" + "version" "5.2.0" dependencies: - pump "^3.0.0" + "pump" "^3.0.0" -get-stream@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +"get-stream@^6.0.0": + "integrity" "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" + "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + "version" "6.0.1" -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== +"get-stream@^6.0.1": + "integrity" "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" + "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + "version" "6.0.1" + +"get-symbol-description@^1.0.0": + "integrity" "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==" + "resolved" "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" + "version" "1.0.0" dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" + "call-bind" "^1.0.2" + "get-intrinsic" "^1.1.1" -get-uri@3: - version "3.0.2" - resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-3.0.2.tgz#f0ef1356faabc70e1f9404fa3b66b2ba9bfc725c" - integrity sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg== +"get-uri@3": + "integrity" "sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==" + "resolved" "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz" + "version" "3.0.2" dependencies: "@tootallnate/once" "1" - data-uri-to-buffer "3" - debug "4" - file-uri-to-path "2" - fs-extra "^8.1.0" - ftp "^0.3.10" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== - -gh-got@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/gh-got/-/gh-got-8.1.0.tgz#2378d07ac293f524549c75f8dc6f3604a885ab01" - integrity sha512-Jy7+73XqsAVeAtM5zA0dd+A7mmzkQVIzFuw3xRjFbPsQVqS+aeci8v8H1heOCAPlBYWED5ZYPhlYqZVXdD3Fmg== - dependencies: - got "^9.5.0" - -git-raw-commits@^2.0.0, git-raw-commits@^2.0.8: - version "2.0.11" - resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.11.tgz#bc3576638071d18655e1cc60d7f524920008d723" - integrity sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A== - dependencies: - dargs "^7.0.0" - lodash "^4.17.15" - meow "^8.0.0" - split2 "^3.0.0" - through2 "^4.0.0" - -git-remote-origin-url@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f" - integrity sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw== - dependencies: - gitconfiglocal "^1.0.0" - pify "^2.3.0" - -git-semver-tags@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.1.1.tgz#63191bcd809b0ec3e151ba4751c16c444e5b5780" - integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== - dependencies: - meow "^8.0.0" - semver "^6.0.0" - -git-up@^4.0.0: - version "4.0.5" - resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.5.tgz#e7bb70981a37ea2fb8fe049669800a1f9a01d759" - integrity sha512-YUvVDg/vX3d0syBsk/CKUTib0srcQME0JyHkL5BaYdwLsiCslPWmDSi8PUMo9pXYjrryMcmsCoCgsTpSCJEQaA== - dependencies: - is-ssh "^1.3.0" - parse-url "^6.0.0" - -git-url-parse@11.6.0: - version "11.6.0" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.6.0.tgz#c634b8de7faa66498a2b88932df31702c67df605" - integrity sha512-WWUxvJs5HsyHL6L08wOusa/IXYtMuCAhrMmnTjQPpBU0TTHyDhnOATNH3xNQz7YOQUsqIIPTGr4xiVti1Hsk5g== - dependencies: - git-up "^4.0.0" - -gitconfiglocal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b" - integrity sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ== - dependencies: - ini "^1.3.2" - -github-username@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/github-username/-/github-username-5.0.1.tgz#f4e8c2cd7a3247bd75ae2841f5f69347f5b4c1f0" - integrity sha512-HxFIz5tIQDoiob2ienSKLHoCSFFC6F79IcnM5E5KNAxkxMjvpuUSE7K4fU2n51fwo0idT0ZsMFZIUy4SIPXoVA== - dependencies: - gh-got "^8.1.0" - -glob-parent@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-dirs@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" - integrity sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg== - dependencies: - ini "^1.3.4" - -global-dirs@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.1.tgz#0c488971f066baceda21447aecb1a8b911d22485" - integrity sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA== - dependencies: - ini "2.0.0" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.6.0, globals@^13.9.0: - version "13.19.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.19.0.tgz#7a42de8e6ad4f7242fbcca27ea5b23aca367b5c8" - integrity sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ== - dependencies: - type-fest "^0.20.2" - -globby@11.0.4: - version "11.0.4" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5" - integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.1.1" - ignore "^5.1.4" - merge2 "^1.3.0" - slash "^3.0.0" - -globby@^11.0.1: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -got@9.6.0, got@^9.5.0, got@^9.6.0: - version "9.6.0" - resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" - integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== - dependencies: - "@sindresorhus/is" "^0.14.0" - "@szmarczak/http-timer" "^1.1.2" - cacheable-request "^6.0.0" - decompress-response "^3.3.0" - duplexer3 "^0.1.4" - get-stream "^4.1.0" - lowercase-keys "^1.0.1" - mimic-response "^1.0.1" - p-cancelable "^1.0.0" - to-readable-stream "^1.0.0" - url-parse-lax "^3.0.0" - -graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4: - version "4.2.10" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== - -growly@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" - integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== - -handlebars@^4.7.7: - version "4.7.7" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" - integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== - dependencies: - minimist "^1.2.5" - neo-async "^2.6.0" - source-map "^0.6.1" - wordwrap "^1.0.0" + "data-uri-to-buffer" "3" + "debug" "4" + "file-uri-to-path" "2" + "fs-extra" "^8.1.0" + "ftp" "^0.3.10" + +"get-value@^2.0.3", "get-value@^2.0.6": + "integrity" "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" + "resolved" "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz" + "version" "2.0.6" + +"git-raw-commits@^2.0.0", "git-raw-commits@^2.0.8": + "integrity" "sha512-hSpNpxprVno7IOd4PZ93RQ+gNdzPAIrW0x8av6JQDJGV4k1mR9fE01dl8sEqi2P7aKmmwiGUn1BCPuf16Ae0Qw==" + "resolved" "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.9.tgz" + "version" "2.0.9" + dependencies: + "dargs" "^7.0.0" + "lodash.template" "^4.0.2" + "meow" "^8.0.0" + "split2" "^3.0.0" + "through2" "^4.0.0" + +"git-remote-origin-url@^2.0.0": + "integrity" "sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==" + "resolved" "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "gitconfiglocal" "^1.0.0" + "pify" "^2.3.0" + +"git-semver-tags@^4.1.1": + "integrity" "sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==" + "resolved" "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz" + "version" "4.1.1" + dependencies: + "meow" "^8.0.0" + "semver" "^6.0.0" + +"git-up@^7.0.0": + "integrity" "sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ==" + "resolved" "https://registry.npmjs.org/git-up/-/git-up-7.0.0.tgz" + "version" "7.0.0" + dependencies: + "is-ssh" "^1.4.0" + "parse-url" "^8.1.0" + +"git-url-parse@13.1.0": + "integrity" "sha512-5FvPJP/70WkIprlUZ33bm4UAaFdjcLkJLpWft1BeZKqwR0uhhNGoKwlUaPtVb4LxCSQ++erHapRak9kWGj+FCA==" + "resolved" "https://registry.npmjs.org/git-url-parse/-/git-url-parse-13.1.0.tgz" + "version" "13.1.0" + dependencies: + "git-up" "^7.0.0" + +"gitconfiglocal@^1.0.0": + "integrity" "sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==" + "resolved" "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "ini" "^1.3.2" + +"glob-parent@^5.0.0", "glob-parent@^5.1.2": + "integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==" + "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + "version" "5.1.2" + dependencies: + "is-glob" "^4.0.1" + +"glob@^7.0.0", "glob@^7.1.1", "glob@^7.1.2", "glob@^7.1.3", "glob@^7.1.4", "glob@^7.1.6": + "integrity" "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==" + "resolved" "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" + "version" "7.1.6" + dependencies: + "fs.realpath" "^1.0.0" + "inflight" "^1.0.4" + "inherits" "2" + "minimatch" "^3.0.4" + "once" "^1.3.0" + "path-is-absolute" "^1.0.0" + +"glob@^8.0.3": + "integrity" "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==" + "resolved" "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz" + "version" "8.0.3" + dependencies: + "fs.realpath" "^1.0.0" + "inflight" "^1.0.4" + "inherits" "2" + "minimatch" "^5.0.1" + "once" "^1.3.0" + +"global-dirs@^0.1.1": + "integrity" "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=" + "resolved" "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz" + "version" "0.1.1" + dependencies: + "ini" "^1.3.4" + +"global-dirs@^3.0.0": + "integrity" "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==" + "resolved" "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "ini" "2.0.0" + +"globals@^11.1.0": + "integrity" "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + "resolved" "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" + "version" "11.12.0" + +"globals@^12.1.0": + "integrity" "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==" + "resolved" "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz" + "version" "12.4.0" + dependencies: + "type-fest" "^0.8.1" + +"globby@^11.0.1": + "integrity" "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==" + "resolved" "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" + "version" "11.1.0" + dependencies: + "array-union" "^2.1.0" + "dir-glob" "^3.0.1" + "fast-glob" "^3.2.9" + "ignore" "^5.2.0" + "merge2" "^1.4.1" + "slash" "^3.0.0" + +"globby@13.1.2": + "integrity" "sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==" + "resolved" "https://registry.npmjs.org/globby/-/globby-13.1.2.tgz" + "version" "13.1.2" + dependencies: + "dir-glob" "^3.0.1" + "fast-glob" "^3.2.11" + "ignore" "^5.2.0" + "merge2" "^1.4.1" + "slash" "^4.0.0" + +"got@^12.1.0", "got@12.5.1": + "integrity" "sha512-sD16AK8cCyUoPtKr/NMvLTFFa+T3i3S+zoiuvhq0HP2YiqBZA9AtlBjAdsQBsLBK7slPuvmfE0OxhGi7N5dD4w==" + "resolved" "https://registry.npmjs.org/got/-/got-12.5.1.tgz" + "version" "12.5.1" + dependencies: + "@sindresorhus/is" "^5.2.0" + "@szmarczak/http-timer" "^5.0.1" + "cacheable-lookup" "^7.0.0" + "cacheable-request" "^10.2.1" + "decompress-response" "^6.0.0" + "form-data-encoder" "^2.1.2" + "get-stream" "^6.0.1" + "http2-wrapper" "^2.1.10" + "lowercase-keys" "^3.0.0" + "p-cancelable" "^3.0.0" + "responselike" "^3.0.0" + +"graceful-fs@^4.1.11", "graceful-fs@^4.1.2", "graceful-fs@^4.1.3", "graceful-fs@^4.1.6", "graceful-fs@^4.1.9", "graceful-fs@^4.2.0", "graceful-fs@^4.2.4", "graceful-fs@^4.2.6", "graceful-fs@^4.2.9", "graceful-fs@4.2.10": + "integrity" "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" + "version" "4.2.10" + +"growly@^1.3.0": + "integrity" "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=" + "resolved" "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz" + "version" "1.3.0" + +"handlebars@^4.7.7": + "integrity" "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==" + "resolved" "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz" + "version" "4.7.7" + dependencies: + "minimist" "^1.2.5" + "neo-async" "^2.6.0" + "source-map" "^0.6.1" + "wordwrap" "^1.0.0" optionalDependencies: - uglify-js "^3.1.4" - -hard-rejection@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" - integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" - integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== - dependencies: - get-intrinsic "^1.1.1" - -has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has-yarn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" - integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -hermes-engine@~0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/hermes-engine/-/hermes-engine-0.5.1.tgz#601115e4b1e0a17d9aa91243b96277de4e926e09" - integrity sha512-hLwqh8dejHayjlpvZY40e1aDCDvyP98cWx/L5DhAjSJLH8g4z9Tp08D7y4+3vErDsncPOdf1bxm+zUWpx0/Fxg== - -hermes-profile-transformer@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz#bd0f5ecceda80dd0ddaae443469ab26fb38fc27b" - integrity sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ== - dependencies: - source-map "^0.7.3" - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -hosted-git-info@^4.0.0, hosted-git-info@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== - dependencies: - lru-cache "^6.0.0" - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-cache-semantics@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" - integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-proxy-agent@^4.0.0, http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -https-proxy-agent@5, https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - -husky@^4.2.5: - version "4.3.8" - resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.8.tgz#31144060be963fd6850e5cc8f019a1dfe194296d" - integrity sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow== - dependencies: - chalk "^4.0.0" - ci-info "^2.0.0" - compare-versions "^3.6.0" - cosmiconfig "^7.0.0" - find-versions "^4.0.0" - opencollective-postinstall "^2.0.2" - pkg-dir "^5.0.0" - please-upgrade-node "^3.2.0" - slash "^3.0.0" - which-pm-runs "^1.0.0" - -iconv-lite@0.4.24, iconv-lite@^0.4.17, iconv-lite@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -iconv-lite@^0.6.2: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -ieee754@^1.1.13: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -ignore@^5.0.5, ignore@^5.1.4, ignore@^5.2.0: - version "5.2.4" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - -image-size@^0.6.0: - version "0.6.3" - resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" - integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA== - -import-cwd@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-3.0.0.tgz#20845547718015126ea9b3676b7592fb8bd4cf92" - integrity sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg== - dependencies: - import-from "^3.0.0" - -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" - integrity sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ== - dependencies: - resolve-from "^5.0.0" - -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - integrity sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A== - -import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ini@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" - integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== - -ini@^1.3.2, ini@^1.3.4, ini@~1.3.0: - version "1.3.8" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -inquirer@8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.0.tgz#f44f008dd344bbfc4b30031f45d984e034a3ac3a" - integrity sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ== - dependencies: - ansi-escapes "^4.2.1" - chalk "^4.1.1" - cli-cursor "^3.1.0" - cli-width "^3.0.0" - external-editor "^3.0.3" - figures "^3.0.0" - lodash "^4.17.21" - mute-stream "0.0.8" - ora "^5.4.1" - run-async "^2.4.0" - rxjs "^7.2.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - through "^2.3.6" - -inquirer@^3.0.6: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" - integrity sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ== - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^2.0.4" - figures "^2.0.0" - lodash "^4.3.0" - mute-stream "0.0.7" - run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" - -internal-slot@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz#8551e7baf74a7a6ba5f749cfb16aa60722f0d6f3" - integrity sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ== - dependencies: - get-intrinsic "^1.1.3" - has "^1.0.3" - side-channel "^1.0.4" - -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - -invariant@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -ip@^1.1.5: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" - integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== - -ip@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" - integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== - -is-absolute@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" - integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== - dependencies: - is-relative "^1.0.0" - is-windows "^1.0.1" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-arguments@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" - integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" - -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-callable@^1.1.4, is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== - -is-ci@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" - integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== - dependencies: - ci-info "^3.2.0" - -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - -is-core-module@^2.5.0, is-core-module@^2.9.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" - integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== - dependencies: - has "^1.0.3" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" + "uglify-js" "^3.1.4" + +"hard-rejection@^2.1.0": + "integrity" "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==" + "resolved" "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz" + "version" "2.1.0" + +"has-bigints@^1.0.1", "has-bigints@^1.0.2": + "integrity" "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" + "resolved" "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" + "version" "1.0.2" + +"has-flag@^3.0.0": + "integrity" "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + "version" "3.0.0" + +"has-flag@^4.0.0": + "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + "version" "4.0.0" -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== +"has-property-descriptors@^1.0.0": + "integrity" "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==" + "resolved" "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" + "version" "1.0.0" dependencies: - kind-of "^6.0.0" + "get-intrinsic" "^1.1.1" -is-date-object@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== - dependencies: - has-tostringtag "^1.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" +"has-symbols@^1.0.1", "has-symbols@^1.0.2", "has-symbols@^1.0.3": + "integrity" "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + "resolved" "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + "version" "1.0.3" -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== - -is-docker@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - -is-git-dirty@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-git-dirty/-/is-git-dirty-2.0.1.tgz#29ca82fb0924ccbeaa0bae08de217546df593012" - integrity sha512-zn3CNLDbSR+y7+VDDw7/SwTRRuECn4OpAyelo5MDN+gVxdzM8SUDd51ZwPIOxhljED44Riu0jiiNtC8w0bcLdA== - dependencies: - execa "^4.0.3" - is-git-repository "^2.0.0" - -is-git-repository@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-git-repository/-/is-git-repository-2.0.0.tgz#fa036007fe9697198c2c89dac4dd8304a6101e1c" - integrity sha512-HDO50CG5suIAcmqG4F1buqVXEZRPn+RaXIn9pFKq/947FBo2bCRwK7ZluEVZOy99a4IQyqsjbKEpAiOXCccOHQ== - dependencies: - execa "^4.0.3" - is-absolute "^1.0.0" - -is-glob@^4.0.0, is-glob@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-installed-globally@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520" - integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ== - dependencies: - global-dirs "^3.0.0" - is-path-inside "^3.0.2" - -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - -is-map@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" - integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== - -is-negative-zero@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== - -is-npm@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-5.0.0.tgz#43e8d65cc56e1b67f8d47262cf667099193f45a8" - integrity sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA== - -is-number-object@^1.0.4: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" - integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== - dependencies: - has-tostringtag "^1.0.0" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" - integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== - -is-path-cwd@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" - integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== - -is-path-inside@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-plain-object@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" - integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== - -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-relative@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" - integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== - dependencies: - is-unc-path "^1.0.0" - -is-set@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" - integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== - -is-shared-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" - integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== - dependencies: - call-bind "^1.0.2" - -is-ssh@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" - integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ== - dependencies: - protocols "^2.0.1" - -is-stream@^1.0.1, is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== - -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== - dependencies: - has-symbols "^1.0.2" - -is-text-path@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" - integrity sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w== - dependencies: - text-extensions "^1.0.0" - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unc-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" - integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== - dependencies: - unc-path-regex "^0.1.2" - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-weakref@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== +"has-tostringtag@^1.0.0": + "integrity" "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==" + "resolved" "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" + "version" "1.0.0" dependencies: - call-bind "^1.0.2" - -is-windows@^1.0.1, is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -is-wsl@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" - integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw== + "has-symbols" "^1.0.2" + +"has-value@^0.3.1": + "integrity" "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=" + "resolved" "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz" + "version" "0.3.1" + dependencies: + "get-value" "^2.0.3" + "has-values" "^0.1.4" + "isobject" "^2.0.0" + +"has-value@^1.0.0": + "integrity" "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=" + "resolved" "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "get-value" "^2.0.6" + "has-values" "^1.0.0" + "isobject" "^3.0.0" + +"has-values@^0.1.4": + "integrity" "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" + "resolved" "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz" + "version" "0.1.4" + +"has-values@^1.0.0": + "integrity" "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=" + "resolved" "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "is-number" "^3.0.0" + "kind-of" "^4.0.0" + +"has-yarn@^3.0.0": + "integrity" "sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==" + "resolved" "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz" + "version" "3.0.0" + +"has@^1.0.3": + "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==" + "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz" + "version" "1.0.3" + dependencies: + "function-bind" "^1.1.1" + +"hermes-estree@0.8.0": + "integrity" "sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q==" + "resolved" "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.8.0.tgz" + "version" "0.8.0" + +"hermes-parser@0.8.0": + "integrity" "sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA==" + "resolved" "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.8.0.tgz" + "version" "0.8.0" + dependencies: + "hermes-estree" "0.8.0" + +"hermes-profile-transformer@^0.0.6": + "integrity" "sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==" + "resolved" "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz" + "version" "0.0.6" + dependencies: + "source-map" "^0.7.3" + +"hosted-git-info@^2.1.4": + "integrity" "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" + "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz" + "version" "2.8.9" + +"hosted-git-info@^3.0.6": + "integrity" "sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw==" + "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.8.tgz" + "version" "3.0.8" + dependencies: + "lru-cache" "^6.0.0" + +"hosted-git-info@^4.0.0": + "integrity" "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==" + "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "lru-cache" "^6.0.0" -is-wsl@^2.1.1, is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== +"html-encoding-sniffer@^2.0.1": + "integrity" "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==" + "resolved" "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz" + "version" "2.0.1" dependencies: - is-docker "^2.0.0" - -is-yarn-global@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" - integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== + "whatwg-encoding" "^1.0.5" -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +"html-escaper@^2.0.0": + "integrity" "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" + "resolved" "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" + "version" "2.0.2" -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== +"http-cache-semantics@^4.1.0": + "integrity" "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" + "resolved" "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz" + "version" "4.1.0" -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - integrity sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA== +"http-errors@2.0.0": + "integrity" "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==" + "resolved" "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "depd" "2.0.0" + "inherits" "2.0.4" + "setprototypeof" "1.2.0" + "statuses" "2.0.1" + "toidentifier" "1.0.1" + +"http-proxy-agent@^4.0.0", "http-proxy-agent@^4.0.1": + "integrity" "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==" + "resolved" "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz" + "version" "4.0.1" dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" + "@tootallnate/once" "1" + "agent-base" "6" + "debug" "4" + +"http2-wrapper@^2.1.10": + "integrity" "sha512-aNAk5JzLturWEUiuhAN73Jcbq96R7rTitAoXV54FYMatvihnpD2+6PUgU4ce3D/m5VDbw+F5CsyKSF176ptitQ==" + "resolved" "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.1.11.tgz" + "version" "2.1.11" + dependencies: + "quick-lru" "^5.1.1" + "resolve-alpn" "^1.2.0" + +"https-proxy-agent@^5.0.0", "https-proxy-agent@5": + "integrity" "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==" + "resolved" "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "agent-base" "6" + "debug" "4" + +"human-signals@^1.1.1": + "integrity" "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==" + "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz" + "version" "1.1.1" + +"human-signals@^2.1.0": + "integrity" "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" + "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" + "version" "2.1.0" + +"human-signals@^3.0.1": + "integrity" "sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==" + "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz" + "version" "3.0.1" + +"husky@^4.2.5": + "integrity" "sha512-0fQlcCDq/xypoyYSJvEuzbDPHFf8ZF9IXKJxlrnvxABTSzK1VPT2RKYQKrcgJ+YD39swgoB6sbzywUqFxUiqjw==" + "resolved" "https://registry.npmjs.org/husky/-/husky-4.3.7.tgz" + "version" "4.3.7" + dependencies: + "chalk" "^4.0.0" + "ci-info" "^2.0.0" + "compare-versions" "^3.6.0" + "cosmiconfig" "^7.0.0" + "find-versions" "^4.0.0" + "opencollective-postinstall" "^2.0.2" + "pkg-dir" "^5.0.0" + "please-upgrade-node" "^3.2.0" + "slash" "^3.0.0" + "which-pm-runs" "^1.0.0" + +"iconv-lite@^0.4.24", "iconv-lite@0.4.24": + "integrity" "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==" + "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + "version" "0.4.24" + dependencies: + "safer-buffer" ">= 2.1.2 < 3" + +"ieee754@^1.1.13", "ieee754@^1.2.1": + "integrity" "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + "version" "1.2.1" + +"ignore@^4.0.6": + "integrity" "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==" + "resolved" "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" + "version" "4.0.6" + +"ignore@^5.0.5": + "integrity" "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==" + "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz" + "version" "5.1.8" + +"ignore@^5.2.0": + "integrity" "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==" + "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz" + "version" "5.2.0" + +"image-size@^0.6.0": + "integrity" "sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==" + "resolved" "https://registry.npmjs.org/image-size/-/image-size-0.6.3.tgz" + "version" "0.6.3" + +"import-fresh@^2.0.0": + "integrity" "sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==" + "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "caller-path" "^2.0.0" + "resolve-from" "^3.0.0" + +"import-fresh@^3.0.0", "import-fresh@^3.2.1": + "integrity" "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==" + "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" + "version" "3.3.0" + dependencies: + "parent-module" "^1.0.0" + "resolve-from" "^4.0.0" + +"import-lazy@^4.0.0": + "integrity" "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==" + "resolved" "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz" + "version" "4.0.0" + +"import-local@^3.0.2": + "integrity" "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==" + "resolved" "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "pkg-dir" "^4.2.0" + "resolve-cwd" "^3.0.0" + +"imurmurhash@^0.1.4": + "integrity" "sha1-khi5srkoojixPcT7a21XbyMUU+o=" + "resolved" "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" + "version" "0.1.4" + +"indent-string@^4.0.0": + "integrity" "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + "resolved" "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" + "version" "4.0.0" + +"inflight@^1.0.4": + "integrity" "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" + "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + "version" "1.0.6" + dependencies: + "once" "^1.3.0" + "wrappy" "1" + +"inherits@^2.0.3", "inherits@^2.0.4", "inherits@~2.0.1", "inherits@~2.0.3", "inherits@2", "inherits@2.0.4": + "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + "version" "2.0.4" + +"ini@^1.3.2", "ini@^1.3.4", "ini@~1.3.0": + "integrity" "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + "resolved" "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" + "version" "1.3.8" + +"ini@2.0.0": + "integrity" "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==" + "resolved" "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz" + "version" "2.0.0" + +"inquirer@9.1.2": + "integrity" "sha512-Hj2Ml1WpxKJU2npP2Rj0OURGkHV+GtNW2CwFdHDiXlqUBAUrWTcZHxCkFywX/XHzOS7wrG/kExgJFbUkVgyHzg==" + "resolved" "https://registry.npmjs.org/inquirer/-/inquirer-9.1.2.tgz" + "version" "9.1.2" + dependencies: + "ansi-escapes" "^5.0.0" + "chalk" "^5.0.1" + "cli-cursor" "^4.0.0" + "cli-width" "^4.0.0" + "external-editor" "^3.0.3" + "figures" "^5.0.0" + "lodash" "^4.17.21" + "mute-stream" "0.0.8" + "ora" "^6.1.2" + "run-async" "^2.4.0" + "rxjs" "^7.5.6" + "string-width" "^5.1.2" + "strip-ansi" "^7.0.1" + "through" "^2.3.6" + "wrap-ansi" "^8.0.1" + +"internal-slot@^1.0.2", "internal-slot@^1.0.3": + "integrity" "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==" + "resolved" "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz" + "version" "1.0.3" + dependencies: + "get-intrinsic" "^1.1.0" + "has" "^1.0.3" + "side-channel" "^1.0.4" + +"interpret@^1.0.0": + "integrity" "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" + "resolved" "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz" + "version" "1.4.0" + +"invariant@^2.2.4": + "integrity" "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==" + "resolved" "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz" + "version" "2.2.4" + dependencies: + "loose-envify" "^1.0.0" + +"ip@^1.1.5": + "integrity" "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "resolved" "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz" + "version" "1.1.8" + +"ip@^2.0.0": + "integrity" "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + "resolved" "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz" + "version" "2.0.0" + +"is-absolute@^1.0.0": + "integrity" "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==" + "resolved" "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "is-relative" "^1.0.0" + "is-windows" "^1.0.1" + +"is-accessor-descriptor@^0.1.6": + "integrity" "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=" + "resolved" "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz" + "version" "0.1.6" + dependencies: + "kind-of" "^3.0.2" + +"is-accessor-descriptor@^1.0.0": + "integrity" "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==" + "resolved" "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "kind-of" "^6.0.0" + +"is-arguments@^1.1.0": + "integrity" "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==" + "resolved" "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" + "version" "1.1.1" + dependencies: + "call-bind" "^1.0.2" + "has-tostringtag" "^1.0.0" + +"is-arrayish@^0.2.1": + "integrity" "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" + "resolved" "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" + "version" "0.2.1" + +"is-bigint@^1.0.1": + "integrity" "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==" + "resolved" "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" + "version" "1.0.4" + dependencies: + "has-bigints" "^1.0.1" + +"is-boolean-object@^1.1.0": + "integrity" "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==" + "resolved" "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" + "version" "1.1.2" + dependencies: + "call-bind" "^1.0.2" + "has-tostringtag" "^1.0.0" + +"is-buffer@^1.1.5": + "integrity" "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "resolved" "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" + "version" "1.1.6" + +"is-callable@^1.1.4", "is-callable@^1.2.7": + "integrity" "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" + "resolved" "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" + "version" "1.2.7" + +"is-ci@^2.0.0": + "integrity" "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==" + "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "ci-info" "^2.0.0" + +"is-ci@^3.0.1": + "integrity" "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==" + "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "ci-info" "^3.2.0" + +"is-ci@3.0.1": + "integrity" "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==" + "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "ci-info" "^3.2.0" + +"is-core-module@^2.1.0": + "integrity" "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==" + "resolved" "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz" + "version" "2.2.0" + dependencies: + "has" "^1.0.3" -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" - integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== +"is-data-descriptor@^0.1.4": + "integrity" "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=" + "resolved" "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz" + "version" "0.1.4" + dependencies: + "kind-of" "^3.0.2" -istanbul-lib-instrument@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" - integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== +"is-data-descriptor@^1.0.0": + "integrity" "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==" + "resolved" "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "kind-of" "^6.0.0" + +"is-date-object@^1.0.1": + "integrity" "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" + "resolved" "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz" + "version" "1.0.2" + +"is-descriptor@^0.1.0": + "integrity" "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==" + "resolved" "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz" + "version" "0.1.6" + dependencies: + "is-accessor-descriptor" "^0.1.6" + "is-data-descriptor" "^0.1.4" + "kind-of" "^5.0.0" + +"is-descriptor@^1.0.0", "is-descriptor@^1.0.2": + "integrity" "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==" + "resolved" "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "is-accessor-descriptor" "^1.0.0" + "is-data-descriptor" "^1.0.0" + "kind-of" "^6.0.2" + +"is-directory@^0.3.1": + "integrity" "sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==" + "resolved" "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz" + "version" "0.3.1" + +"is-docker@^2.0.0", "is-docker@^2.1.1": + "integrity" "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==" + "resolved" "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz" + "version" "2.1.1" + +"is-extendable@^0.1.0", "is-extendable@^0.1.1": + "integrity" "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" + "version" "0.1.1" + +"is-extendable@^0.1.1": + "integrity" "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" + "version" "0.1.1" + +"is-extendable@^1.0.1": + "integrity" "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==" + "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "is-plain-object" "^2.0.4" + +"is-extglob@^2.1.1": + "integrity" "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + "resolved" "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + "version" "2.1.1" + +"is-fullwidth-code-point@^2.0.0": + "integrity" "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==" + "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" + "version" "2.0.0" + +"is-fullwidth-code-point@^3.0.0": + "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + "version" "3.0.0" + +"is-generator-fn@^2.0.0": + "integrity" "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==" + "resolved" "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" + "version" "2.1.0" + +"is-git-dirty@^2.0.1": + "integrity" "sha512-zn3CNLDbSR+y7+VDDw7/SwTRRuECn4OpAyelo5MDN+gVxdzM8SUDd51ZwPIOxhljED44Riu0jiiNtC8w0bcLdA==" + "resolved" "https://registry.npmjs.org/is-git-dirty/-/is-git-dirty-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "execa" "^4.0.3" + "is-git-repository" "^2.0.0" + +"is-git-repository@^2.0.0": + "integrity" "sha512-HDO50CG5suIAcmqG4F1buqVXEZRPn+RaXIn9pFKq/947FBo2bCRwK7ZluEVZOy99a4IQyqsjbKEpAiOXCccOHQ==" + "resolved" "https://registry.npmjs.org/is-git-repository/-/is-git-repository-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "execa" "^4.0.3" + "is-absolute" "^1.0.0" + +"is-glob@^4.0.0", "is-glob@^4.0.1": + "integrity" "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==" + "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz" + "version" "4.0.1" + dependencies: + "is-extglob" "^2.1.1" + +"is-installed-globally@^0.4.0": + "integrity" "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==" + "resolved" "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz" + "version" "0.4.0" + dependencies: + "global-dirs" "^3.0.0" + "is-path-inside" "^3.0.2" + +"is-interactive@^1.0.0": + "integrity" "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==" + "resolved" "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" + "version" "1.0.0" + +"is-interactive@^2.0.0": + "integrity" "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==" + "resolved" "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz" + "version" "2.0.0" + +"is-map@^2.0.2": + "integrity" "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==" + "resolved" "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz" + "version" "2.0.2" + +"is-negative-zero@^2.0.2": + "integrity" "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" + "resolved" "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" + "version" "2.0.2" + +"is-npm@^6.0.0": + "integrity" "sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==" + "resolved" "https://registry.npmjs.org/is-npm/-/is-npm-6.0.0.tgz" + "version" "6.0.0" + +"is-number-object@^1.0.4": + "integrity" "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==" + "resolved" "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" + "version" "1.0.7" + dependencies: + "has-tostringtag" "^1.0.0" + +"is-number@^3.0.0": + "integrity" "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=" + "resolved" "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "kind-of" "^3.0.2" + +"is-number@^7.0.0": + "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + "version" "7.0.0" + +"is-obj@^2.0.0": + "integrity" "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" + "resolved" "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz" + "version" "2.0.0" + +"is-path-cwd@^2.2.0": + "integrity" "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" + "resolved" "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz" + "version" "2.2.0" + +"is-path-inside@^3.0.2": + "integrity" "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" + "resolved" "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" + "version" "3.0.3" + +"is-plain-obj@^1.1.0": + "integrity" "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" + "resolved" "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz" + "version" "1.1.0" + +"is-plain-object@^2.0.3", "is-plain-object@^2.0.4": + "integrity" "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==" + "resolved" "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" + "version" "2.0.4" + dependencies: + "isobject" "^3.0.1" + +"is-plain-object@^5.0.0": + "integrity" "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" + "resolved" "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz" + "version" "5.0.0" + +"is-potential-custom-element-name@^1.0.1": + "integrity" "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" + "resolved" "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz" + "version" "1.0.1" + +"is-regex@^1.1.4": + "integrity" "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==" + "resolved" "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" + "version" "1.1.4" + dependencies: + "call-bind" "^1.0.2" + "has-tostringtag" "^1.0.0" + +"is-relative@^1.0.0": + "integrity" "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==" + "resolved" "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "is-unc-path" "^1.0.0" + +"is-set@^2.0.2": + "integrity" "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==" + "resolved" "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz" + "version" "2.0.2" + +"is-shared-array-buffer@^1.0.2": + "integrity" "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==" + "resolved" "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "call-bind" "^1.0.2" + +"is-ssh@^1.4.0": + "integrity" "sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==" + "resolved" "https://registry.npmjs.org/is-ssh/-/is-ssh-1.4.0.tgz" + "version" "1.4.0" + dependencies: + "protocols" "^2.0.1" + +"is-stream@^1.1.0": + "integrity" "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==" + "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" + "version" "1.1.0" + +"is-stream@^2.0.0": + "integrity" "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" + "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz" + "version" "2.0.0" + +"is-stream@^3.0.0": + "integrity" "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==" + "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" + "version" "3.0.0" + +"is-string@^1.0.5", "is-string@^1.0.7": + "integrity" "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==" + "resolved" "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" + "version" "1.0.7" + dependencies: + "has-tostringtag" "^1.0.0" + +"is-symbol@^1.0.2", "is-symbol@^1.0.3": + "integrity" "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==" + "resolved" "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz" + "version" "1.0.3" + dependencies: + "has-symbols" "^1.0.1" + +"is-text-path@^1.0.1": + "integrity" "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=" + "resolved" "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "text-extensions" "^1.0.0" + +"is-typedarray@^1.0.0": + "integrity" "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + "resolved" "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" + "version" "1.0.0" + +"is-unc-path@^1.0.0": + "integrity" "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==" + "resolved" "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "unc-path-regex" "^0.1.2" + +"is-unicode-supported@^0.1.0": + "integrity" "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" + "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" + "version" "0.1.0" + +"is-unicode-supported@^1.1.0": + "integrity" "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==" + "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz" + "version" "1.3.0" + +"is-unicode-supported@^1.2.0": + "integrity" "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==" + "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz" + "version" "1.3.0" + +"is-weakref@^1.0.2": + "integrity" "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==" + "resolved" "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "call-bind" "^1.0.2" + +"is-windows@^1.0.1", "is-windows@^1.0.2": + "integrity" "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" + "resolved" "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" + "version" "1.0.2" + +"is-wsl@^1.1.0": + "integrity" "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==" + "resolved" "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz" + "version" "1.1.0" + +"is-wsl@^2.2.0": + "integrity" "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==" + "resolved" "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" + "version" "2.2.0" + dependencies: + "is-docker" "^2.0.0" + +"is-yarn-global@^0.4.0": + "integrity" "sha512-HneQBCrXGBy15QnaDfcn6OLoU8AQPAa0Qn0IeJR/QCo4E8dNZaGGwxpCwWyEBQC5QvFonP8d6t60iGpAHVAfNA==" + "resolved" "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.0.tgz" + "version" "0.4.0" + +"isarray@^2.0.5": + "integrity" "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + "resolved" "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz" + "version" "2.0.5" + +"isarray@~1.0.0", "isarray@1.0.0": + "integrity" "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "resolved" "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" + "version" "1.0.0" + +"isarray@0.0.1": + "integrity" "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + "resolved" "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + "version" "0.0.1" + +"isexe@^2.0.0": + "integrity" "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + "version" "2.0.0" + +"isobject@^2.0.0": + "integrity" "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=" + "resolved" "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "isarray" "1.0.0" + +"isobject@^3.0.0", "isobject@^3.0.1": + "integrity" "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "resolved" "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" + "version" "3.0.1" + +"istanbul-lib-coverage@^3.0.0": + "integrity" "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==" + "resolved" "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz" + "version" "3.0.0" + +"istanbul-lib-instrument@^4.0.0", "istanbul-lib-instrument@^4.0.3": + "integrity" "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==" + "resolved" "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz" + "version" "4.0.3" dependencies: "@babel/core" "^7.7.5" "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.0.0" - semver "^6.3.0" + "istanbul-lib-coverage" "^3.0.0" + "semver" "^6.3.0" -istanbul-lib-instrument@^5.0.4: - version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== +"istanbul-lib-report@^3.0.0": + "integrity" "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==" + "resolved" "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + "version" "3.0.0" dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.0.2: - version "3.1.5" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" - integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -iterate-iterator@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/iterate-iterator/-/iterate-iterator-1.0.2.tgz#551b804c9eaa15b847ea6a7cdc2f5bf1ec150f91" - integrity sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw== - -iterate-value@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/iterate-value/-/iterate-value-1.0.2.tgz#935115bd37d006a52046535ebc8d07e9c9337f57" - integrity sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ== - dependencies: - es-get-iterator "^1.0.2" - iterate-iterator "^1.0.1" - -jake@^10.8.5: - version "10.8.5" - resolved "https://registry.yarnpkg.com/jake/-/jake-10.8.5.tgz#f2183d2c59382cb274226034543b9c03b8164c46" - integrity sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw== - dependencies: - async "^3.2.3" - chalk "^4.0.2" - filelist "^1.0.1" - minimatch "^3.0.4" - -jest-changed-files@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" - integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== + "istanbul-lib-coverage" "^3.0.0" + "make-dir" "^3.0.0" + "supports-color" "^7.1.0" + +"istanbul-lib-source-maps@^4.0.0": + "integrity" "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==" + "resolved" "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "debug" "^4.1.1" + "istanbul-lib-coverage" "^3.0.0" + "source-map" "^0.6.1" + +"istanbul-reports@^3.0.2": + "integrity" "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==" + "resolved" "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "html-escaper" "^2.0.0" + "istanbul-lib-report" "^3.0.0" + +"iterate-iterator@^1.0.1": + "integrity" "sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==" + "resolved" "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.2.tgz" + "version" "1.0.2" + +"iterate-value@^1.0.2": + "integrity" "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==" + "resolved" "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "es-get-iterator" "^1.0.2" + "iterate-iterator" "^1.0.1" + +"jest-changed-files@^26.6.2": + "integrity" "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==" + "resolved" "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - execa "^4.0.0" - throat "^5.0.0" + "execa" "^4.0.0" + "throat" "^5.0.0" -jest-cli@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" - integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== +"jest-cli@^26.6.3": + "integrity" "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==" + "resolved" "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/core" "^26.6.3" "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - import-local "^3.0.2" - is-ci "^2.0.0" - jest-config "^26.6.3" - jest-util "^26.6.2" - jest-validate "^26.6.2" - prompts "^2.0.1" - yargs "^15.4.1" - -jest-config@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" - integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== + "chalk" "^4.0.0" + "exit" "^0.1.2" + "graceful-fs" "^4.2.4" + "import-local" "^3.0.2" + "is-ci" "^2.0.0" + "jest-config" "^26.6.3" + "jest-util" "^26.6.2" + "jest-validate" "^26.6.2" + "prompts" "^2.0.1" + "yargs" "^15.4.1" + +"jest-config@^26.6.3": + "integrity" "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==" + "resolved" "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz" + "version" "26.6.3" dependencies: "@babel/core" "^7.1.0" "@jest/test-sequencer" "^26.6.3" "@jest/types" "^26.6.2" - babel-jest "^26.6.3" - chalk "^4.0.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.4" - jest-environment-jsdom "^26.6.2" - jest-environment-node "^26.6.2" - jest-get-type "^26.3.0" - jest-jasmine2 "^26.6.3" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - micromatch "^4.0.2" - pretty-format "^26.6.2" - -jest-diff@^26.0.0, jest-diff@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" - integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== - dependencies: - chalk "^4.0.0" - diff-sequences "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-docblock@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" - integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== - dependencies: - detect-newline "^3.0.0" - -jest-each@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" - integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== + "babel-jest" "^26.6.3" + "chalk" "^4.0.0" + "deepmerge" "^4.2.2" + "glob" "^7.1.1" + "graceful-fs" "^4.2.4" + "jest-environment-jsdom" "^26.6.2" + "jest-environment-node" "^26.6.2" + "jest-get-type" "^26.3.0" + "jest-jasmine2" "^26.6.3" + "jest-regex-util" "^26.0.0" + "jest-resolve" "^26.6.2" + "jest-util" "^26.6.2" + "jest-validate" "^26.6.2" + "micromatch" "^4.0.2" + "pretty-format" "^26.6.2" + +"jest-diff@^26.0.0", "jest-diff@^26.6.2": + "integrity" "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==" + "resolved" "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz" + "version" "26.6.2" + dependencies: + "chalk" "^4.0.0" + "diff-sequences" "^26.6.2" + "jest-get-type" "^26.3.0" + "pretty-format" "^26.6.2" + +"jest-docblock@^26.0.0": + "integrity" "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==" + "resolved" "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz" + "version" "26.0.0" + dependencies: + "detect-newline" "^3.0.0" + +"jest-each@^26.6.2": + "integrity" "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==" + "resolved" "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - chalk "^4.0.0" - jest-get-type "^26.3.0" - jest-util "^26.6.2" - pretty-format "^26.6.2" + "chalk" "^4.0.0" + "jest-get-type" "^26.3.0" + "jest-util" "^26.6.2" + "pretty-format" "^26.6.2" -jest-environment-jsdom@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" - integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== +"jest-environment-jsdom@^26.6.2": + "integrity" "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==" + "resolved" "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/environment" "^26.6.2" "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - jsdom "^16.4.0" + "jest-mock" "^26.6.2" + "jest-util" "^26.6.2" + "jsdom" "^16.4.0" -jest-environment-node@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" - integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== +"jest-environment-node@^26.6.2": + "integrity" "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==" + "resolved" "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/environment" "^26.6.2" "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - -jest-get-type@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.9.0.tgz#1684a0c8a50f2e4901b6644ae861f579eed2ef0e" - integrity sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q== - -jest-get-type@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" - integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== - -jest-haste-map@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" - integrity sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ== - dependencies: - "@jest/types" "^24.9.0" - anymatch "^2.0.0" - fb-watchman "^2.0.0" - graceful-fs "^4.1.15" - invariant "^2.2.4" - jest-serializer "^24.9.0" - jest-util "^24.9.0" - jest-worker "^24.9.0" - micromatch "^3.1.10" - sane "^4.0.3" - walker "^1.0.7" - optionalDependencies: - fsevents "^1.2.7" + "jest-mock" "^26.6.2" + "jest-util" "^26.6.2" -jest-haste-map@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa" - integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== +"jest-get-type@^26.3.0": + "integrity" "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==" + "resolved" "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz" + "version" "26.3.0" + +"jest-haste-map@^26.6.2": + "integrity" "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==" + "resolved" "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" "@types/graceful-fs" "^4.1.2" "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.4" - jest-regex-util "^26.0.0" - jest-serializer "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - micromatch "^4.0.2" - sane "^4.0.3" - walker "^1.0.7" + "anymatch" "^3.0.3" + "fb-watchman" "^2.0.0" + "graceful-fs" "^4.2.4" + "jest-regex-util" "^26.0.0" + "jest-serializer" "^26.6.2" + "jest-util" "^26.6.2" + "jest-worker" "^26.6.2" + "micromatch" "^4.0.2" + "sane" "^4.0.3" + "walker" "^1.0.7" optionalDependencies: - fsevents "^2.1.2" + "fsevents" "^2.1.2" -jest-jasmine2@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" - integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== +"jest-jasmine2@^26.6.3": + "integrity" "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==" + "resolved" "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz" + "version" "26.6.3" dependencies: "@babel/traverse" "^7.1.0" "@jest/environment" "^26.6.2" @@ -5948,144 +5818,128 @@ jest-jasmine2@^26.6.3: "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^26.6.2" - is-generator-fn "^2.0.0" - jest-each "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - pretty-format "^26.6.2" - throat "^5.0.0" - -jest-leak-detector@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" - integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== - dependencies: - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-matcher-utils@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a" - integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== - dependencies: - chalk "^4.0.0" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-message-util@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" - integrity sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw== - dependencies: - "@babel/code-frame" "^7.0.0" - "@jest/test-result" "^24.9.0" - "@jest/types" "^24.9.0" - "@types/stack-utils" "^1.0.1" - chalk "^2.0.1" - micromatch "^3.1.10" - slash "^2.0.0" - stack-utils "^1.0.1" - -jest-message-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07" - integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== + "chalk" "^4.0.0" + "co" "^4.6.0" + "expect" "^26.6.2" + "is-generator-fn" "^2.0.0" + "jest-each" "^26.6.2" + "jest-matcher-utils" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-runtime" "^26.6.3" + "jest-snapshot" "^26.6.2" + "jest-util" "^26.6.2" + "pretty-format" "^26.6.2" + "throat" "^5.0.0" + +"jest-leak-detector@^26.6.2": + "integrity" "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==" + "resolved" "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz" + "version" "26.6.2" + dependencies: + "jest-get-type" "^26.3.0" + "pretty-format" "^26.6.2" + +"jest-matcher-utils@^26.6.2": + "integrity" "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==" + "resolved" "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz" + "version" "26.6.2" + dependencies: + "chalk" "^4.0.0" + "jest-diff" "^26.6.2" + "jest-get-type" "^26.3.0" + "pretty-format" "^26.6.2" + +"jest-message-util@^26.6.2": + "integrity" "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==" + "resolved" "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz" + "version" "26.6.2" dependencies: "@babel/code-frame" "^7.0.0" "@jest/types" "^26.6.2" "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.4" - micromatch "^4.0.2" - pretty-format "^26.6.2" - slash "^3.0.0" - stack-utils "^2.0.2" - -jest-mock@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" - integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== - dependencies: - "@jest/types" "^24.9.0" - -jest-mock@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302" - integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== + "chalk" "^4.0.0" + "graceful-fs" "^4.2.4" + "micromatch" "^4.0.2" + "pretty-format" "^26.6.2" + "slash" "^3.0.0" + "stack-utils" "^2.0.2" + +"jest-mock@^26.6.2": + "integrity" "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==" + "resolved" "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" "@types/node" "*" -jest-pnp-resolver@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" - integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== +"jest-pnp-resolver@^1.2.2": + "integrity" "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==" + "resolved" "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz" + "version" "1.2.2" -jest-regex-util@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" - integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== +"jest-regex-util@^26.0.0": + "integrity" "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==" + "resolved" "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz" + "version" "26.0.0" -jest-resolve-dependencies@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" - integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== +"jest-regex-util@^27.0.6": + "integrity" "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==" + "resolved" "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz" + "version" "27.5.1" + +"jest-resolve-dependencies@^26.6.3": + "integrity" "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==" + "resolved" "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/types" "^26.6.2" - jest-regex-util "^26.0.0" - jest-snapshot "^26.6.2" + "jest-regex-util" "^26.0.0" + "jest-snapshot" "^26.6.2" -jest-resolve@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" - integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== +"jest-resolve@*", "jest-resolve@^26.6.2": + "integrity" "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==" + "resolved" "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - jest-pnp-resolver "^1.2.2" - jest-util "^26.6.2" - read-pkg-up "^7.0.1" - resolve "^1.18.1" - slash "^3.0.0" - -jest-runner@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" - integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== + "chalk" "^4.0.0" + "graceful-fs" "^4.2.4" + "jest-pnp-resolver" "^1.2.2" + "jest-util" "^26.6.2" + "read-pkg-up" "^7.0.1" + "resolve" "^1.18.1" + "slash" "^3.0.0" + +"jest-runner@^26.6.3": + "integrity" "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==" + "resolved" "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/console" "^26.6.2" "@jest/environment" "^26.6.2" "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - chalk "^4.0.0" - emittery "^0.7.1" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-docblock "^26.0.0" - jest-haste-map "^26.6.2" - jest-leak-detector "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - jest-runtime "^26.6.3" - jest-util "^26.6.2" - jest-worker "^26.6.2" - source-map-support "^0.5.6" - throat "^5.0.0" - -jest-runtime@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" - integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== + "chalk" "^4.0.0" + "emittery" "^0.7.1" + "exit" "^0.1.2" + "graceful-fs" "^4.2.4" + "jest-config" "^26.6.3" + "jest-docblock" "^26.0.0" + "jest-haste-map" "^26.6.2" + "jest-leak-detector" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-resolve" "^26.6.2" + "jest-runtime" "^26.6.3" + "jest-util" "^26.6.2" + "jest-worker" "^26.6.2" + "source-map-support" "^0.5.6" + "throat" "^5.0.0" + +"jest-runtime@^26.6.3": + "integrity" "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==" + "resolved" "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/console" "^26.6.2" "@jest/environment" "^26.6.2" @@ -6096,679 +5950,725 @@ jest-runtime@^26.6.3: "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/yargs" "^15.0.0" - chalk "^4.0.0" - cjs-module-lexer "^0.6.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.3" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - slash "^3.0.0" - strip-bom "^4.0.0" - yargs "^15.4.1" - -jest-serializer@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.9.0.tgz#e6d7d7ef96d31e8b9079a714754c5d5c58288e73" - integrity sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ== - -jest-serializer@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1" - integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== + "chalk" "^4.0.0" + "cjs-module-lexer" "^0.6.0" + "collect-v8-coverage" "^1.0.0" + "exit" "^0.1.2" + "glob" "^7.1.3" + "graceful-fs" "^4.2.4" + "jest-config" "^26.6.3" + "jest-haste-map" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-mock" "^26.6.2" + "jest-regex-util" "^26.0.0" + "jest-resolve" "^26.6.2" + "jest-snapshot" "^26.6.2" + "jest-util" "^26.6.2" + "jest-validate" "^26.6.2" + "slash" "^3.0.0" + "strip-bom" "^4.0.0" + "yargs" "^15.4.1" + +"jest-serializer@^26.6.2": + "integrity" "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==" + "resolved" "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz" + "version" "26.6.2" dependencies: "@types/node" "*" - graceful-fs "^4.2.4" + "graceful-fs" "^4.2.4" -jest-snapshot@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" - integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== +"jest-serializer@^27.0.6": + "integrity" "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==" + "resolved" "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz" + "version" "27.5.1" + dependencies: + "@types/node" "*" + "graceful-fs" "^4.2.9" + +"jest-snapshot@^26.6.2": + "integrity" "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==" + "resolved" "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz" + "version" "26.6.2" dependencies: "@babel/types" "^7.0.0" "@jest/types" "^26.6.2" "@types/babel__traverse" "^7.0.4" "@types/prettier" "^2.0.0" - chalk "^4.0.0" - expect "^26.6.2" - graceful-fs "^4.2.4" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - jest-haste-map "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - natural-compare "^1.4.0" - pretty-format "^26.6.2" - semver "^7.3.2" - -jest-util@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" - integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== - dependencies: - "@jest/console" "^24.9.0" - "@jest/fake-timers" "^24.9.0" - "@jest/source-map" "^24.9.0" - "@jest/test-result" "^24.9.0" - "@jest/types" "^24.9.0" - callsites "^3.0.0" - chalk "^2.0.1" - graceful-fs "^4.1.15" - is-ci "^2.0.0" - mkdirp "^0.5.1" - slash "^2.0.0" - source-map "^0.6.0" - -jest-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" - integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== + "chalk" "^4.0.0" + "expect" "^26.6.2" + "graceful-fs" "^4.2.4" + "jest-diff" "^26.6.2" + "jest-get-type" "^26.3.0" + "jest-haste-map" "^26.6.2" + "jest-matcher-utils" "^26.6.2" + "jest-message-util" "^26.6.2" + "jest-resolve" "^26.6.2" + "natural-compare" "^1.4.0" + "pretty-format" "^26.6.2" + "semver" "^7.3.2" + +"jest-util@^26.6.2": + "integrity" "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==" + "resolved" "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" "@types/node" "*" - chalk "^4.0.0" - graceful-fs "^4.2.4" - is-ci "^2.0.0" - micromatch "^4.0.2" - -jest-validate@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" - integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== - dependencies: - "@jest/types" "^24.9.0" - camelcase "^5.3.1" - chalk "^2.0.1" - jest-get-type "^24.9.0" - leven "^3.1.0" - pretty-format "^24.9.0" - -jest-validate@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" - integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== + "chalk" "^4.0.0" + "graceful-fs" "^4.2.4" + "is-ci" "^2.0.0" + "micromatch" "^4.0.2" + +"jest-util@^27.2.0": + "integrity" "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==" + "resolved" "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz" + "version" "27.5.1" + dependencies: + "@jest/types" "^27.5.1" + "@types/node" "*" + "chalk" "^4.0.0" + "ci-info" "^3.2.0" + "graceful-fs" "^4.2.9" + "picomatch" "^2.2.3" + +"jest-validate@^26.5.2", "jest-validate@^26.6.2": + "integrity" "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==" + "resolved" "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - camelcase "^6.0.0" - chalk "^4.0.0" - jest-get-type "^26.3.0" - leven "^3.1.0" - pretty-format "^26.6.2" + "camelcase" "^6.0.0" + "chalk" "^4.0.0" + "jest-get-type" "^26.3.0" + "leven" "^3.1.0" + "pretty-format" "^26.6.2" -jest-watcher@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" - integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== +"jest-watcher@^26.6.2": + "integrity" "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==" + "resolved" "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^26.6.2" - string-length "^4.0.1" + "ansi-escapes" "^4.2.1" + "chalk" "^4.0.0" + "jest-util" "^26.6.2" + "string-length" "^4.0.1" -jest-worker@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" - integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== +"jest-worker@^26.6.2": + "integrity" "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==" + "resolved" "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz" + "version" "26.6.2" dependencies: - merge-stream "^2.0.0" - supports-color "^6.1.0" + "@types/node" "*" + "merge-stream" "^2.0.0" + "supports-color" "^7.0.0" -jest-worker@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== +"jest-worker@^27.2.0": + "integrity" "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==" + "resolved" "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz" + "version" "27.5.1" dependencies: "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" + "merge-stream" "^2.0.0" + "supports-color" "^8.0.0" -jest@^26.0.1: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" - integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== +"jest@^26.0.1": + "integrity" "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==" + "resolved" "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz" + "version" "26.6.3" dependencies: "@jest/core" "^26.6.3" - import-local "^3.0.2" - jest-cli "^26.6.3" - -jetifier@^1.6.2, jetifier@^1.6.6: - version "1.6.8" - resolved "https://registry.yarnpkg.com/jetifier/-/jetifier-1.6.8.tgz#e88068697875cbda98c32472902c4d3756247798" - integrity sha512-3Zi16h6L5tXDRQJTb221cnRoVG9/9OvreLdLU2/ZjRv/GILL+2Cemt0IKvkowwkDpvouAU1DQPOJ7qaiHeIdrw== - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsc-android@^245459.0.0: - version "245459.0.0" - resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-245459.0.0.tgz#e584258dd0b04c9159a27fb104cd5d491fd202c9" - integrity sha512-wkjURqwaB1daNkDi2OYYbsLnIdC/lUM2nPXQKRs5pqEU9chDg435bjvo+LSaHotDENygHQDHe+ntUkkw2gwMtg== - -jsdom@^16.4.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== - -json-buffer@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" - integrity sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ== - -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -json-stable-stringify@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz#e06f23128e0bbe342dc996ed5a19e28b57b580e0" - integrity sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g== - dependencies: - jsonify "^0.0.1" - -json-stringify-safe@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== - -json5@^2.1.3, json5@^2.2.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.2.tgz#64471c5bdcc564c18f7c1d4df2e2297f2457c5ab" - integrity sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ== - -jsonfile@^2.1.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" - integrity sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw== + "import-local" "^3.0.2" + "jest-cli" "^26.6.3" + +"jetifier@^2.0.0": + "integrity" "sha512-J4Au9KuT74te+PCCCHKgAjyLlEa+2VyIAEPNCdE5aNkAJ6FAJcAqcdzEkSnzNksIa9NkGmC4tPiClk2e7tCJuQ==" + "resolved" "https://registry.npmjs.org/jetifier/-/jetifier-2.0.0.tgz" + "version" "2.0.0" + +"joi@^17.2.1": + "integrity" "sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg==" + "resolved" "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz" + "version" "17.7.0" + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.0" + "@sideway/pinpoint" "^2.0.0" + +"js-tokens@^3.0.0 || ^4.0.0", "js-tokens@^4.0.0": + "integrity" "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "resolved" "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" + "version" "4.0.0" + +"js-yaml@^3.13.1": + "integrity" "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==" + "resolved" "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" + "version" "3.14.1" + dependencies: + "argparse" "^1.0.7" + "esprima" "^4.0.0" + +"jsc-android@^250230.2.1": + "integrity" "sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q==" + "resolved" "https://registry.npmjs.org/jsc-android/-/jsc-android-250230.2.1.tgz" + "version" "250230.2.1" + +"jscodeshift@^0.13.1": + "integrity" "sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ==" + "resolved" "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.13.1.tgz" + "version" "0.13.1" + dependencies: + "@babel/core" "^7.13.16" + "@babel/parser" "^7.13.16" + "@babel/plugin-proposal-class-properties" "^7.13.0" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8" + "@babel/plugin-proposal-optional-chaining" "^7.13.12" + "@babel/plugin-transform-modules-commonjs" "^7.13.8" + "@babel/preset-flow" "^7.13.13" + "@babel/preset-typescript" "^7.13.0" + "@babel/register" "^7.13.16" + "babel-core" "^7.0.0-bridge.0" + "chalk" "^4.1.2" + "flow-parser" "0.*" + "graceful-fs" "^4.2.4" + "micromatch" "^3.1.10" + "neo-async" "^2.5.0" + "node-dir" "^0.1.17" + "recast" "^0.20.4" + "temp" "^0.8.4" + "write-file-atomic" "^2.3.0" + +"jsdom@^16.4.0": + "integrity" "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==" + "resolved" "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz" + "version" "16.7.0" + dependencies: + "abab" "^2.0.5" + "acorn" "^8.2.4" + "acorn-globals" "^6.0.0" + "cssom" "^0.4.4" + "cssstyle" "^2.3.0" + "data-urls" "^2.0.0" + "decimal.js" "^10.2.1" + "domexception" "^2.0.1" + "escodegen" "^2.0.0" + "form-data" "^3.0.0" + "html-encoding-sniffer" "^2.0.1" + "http-proxy-agent" "^4.0.1" + "https-proxy-agent" "^5.0.0" + "is-potential-custom-element-name" "^1.0.1" + "nwsapi" "^2.2.0" + "parse5" "6.0.1" + "saxes" "^5.0.1" + "symbol-tree" "^3.2.4" + "tough-cookie" "^4.0.0" + "w3c-hr-time" "^1.0.2" + "w3c-xmlserializer" "^2.0.0" + "webidl-conversions" "^6.1.0" + "whatwg-encoding" "^1.0.5" + "whatwg-mimetype" "^2.3.0" + "whatwg-url" "^8.5.0" + "ws" "^7.4.6" + "xml-name-validator" "^3.0.0" + +"jsesc@^2.5.1": + "integrity" "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + "resolved" "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" + "version" "2.5.2" + +"jsesc@~0.5.0": + "integrity" "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" + "resolved" "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz" + "version" "0.5.0" + +"json-buffer@3.0.1": + "integrity" "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" + "resolved" "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" + "version" "3.0.1" + +"json-parse-better-errors@^1.0.1": + "integrity" "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" + "resolved" "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" + "version" "1.0.2" + +"json-parse-even-better-errors@^2.3.0": + "integrity" "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + "resolved" "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" + "version" "2.3.1" + +"json-schema-traverse@^0.4.1": + "integrity" "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + "version" "0.4.1" + +"json-schema-traverse@^1.0.0": + "integrity" "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + "version" "1.0.0" + +"json-stable-stringify-without-jsonify@^1.0.1": + "integrity" "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=" + "resolved" "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + "version" "1.0.1" + +"json-stringify-safe@^5.0.1": + "integrity" "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + "resolved" "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" + "version" "5.0.1" + +"json5@^2.2.1": + "integrity" "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + "resolved" "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz" + "version" "2.2.1" + +"jsonfile@^2.1.0": + "integrity" "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==" + "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz" + "version" "2.4.0" optionalDependencies: - graceful-fs "^4.1.6" + "graceful-fs" "^4.1.6" -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== +"jsonfile@^4.0.0": + "integrity" "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==" + "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" + "version" "4.0.0" optionalDependencies: - graceful-fs "^4.1.6" + "graceful-fs" "^4.1.6" -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== +"jsonfile@^6.0.1": + "integrity" "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==" + "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" + "version" "6.1.0" dependencies: - universalify "^2.0.0" + "universalify" "^2.0.0" optionalDependencies: - graceful-fs "^4.1.6" + "graceful-fs" "^4.1.6" -jsonify@^0.0.1, jsonify@~0.0.0: - version "0.0.1" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" - integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== +"jsonparse@^1.2.0": + "integrity" "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" + "resolved" "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz" + "version" "1.3.1" -jsonparse@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" - integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== +"JSONStream@^1.0.4": + "integrity" "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==" + "resolved" "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz" + "version" "1.3.5" + dependencies: + "jsonparse" "^1.2.0" + "through" ">=2.2.7 <3" "jsx-ast-utils@^2.4.1 || ^3.0.0": - version "3.3.3" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" - integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== + "integrity" "sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==" + "resolved" "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz" + "version" "3.2.0" dependencies: - array-includes "^3.1.5" - object.assign "^4.1.3" + "array-includes" "^3.1.2" + "object.assign" "^4.1.2" -keyv@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" - integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== +"keyv@^4.5.0": + "integrity" "sha512-2YvuMsA+jnFGtBareKqgANOEKe1mk3HKiXu2fRmAfyxG0MJAywNhi5ttWA3PMjl4NmpyjZNbFifR2vNjW1znfA==" + "resolved" "https://registry.npmjs.org/keyv/-/keyv-4.5.0.tgz" + "version" "4.5.0" dependencies: - json-buffer "3.0.0" + "json-buffer" "3.0.1" -kind-of@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44" - integrity sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g== +"kind-of@^3.0.2", "kind-of@^3.0.3": + "integrity" "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=" + "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" + "version" "3.2.2" + dependencies: + "is-buffer" "^1.1.5" -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== +"kind-of@^3.2.0": + "integrity" "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=" + "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" + "version" "3.2.2" dependencies: - is-buffer "^1.1.5" + "is-buffer" "^1.1.5" -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== +"kind-of@^4.0.0": + "integrity" "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=" + "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz" + "version" "4.0.0" dependencies: - is-buffer "^1.1.5" + "is-buffer" "^1.1.5" -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== +"kind-of@^5.0.0": + "integrity" "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz" + "version" "5.1.0" -kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +"kind-of@^6.0.0", "kind-of@^6.0.2", "kind-of@^6.0.3": + "integrity" "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" + "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" + "version" "6.0.3" -klaw@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" - integrity sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw== +"klaw@^1.0.0": + "integrity" "sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==" + "resolved" "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz" + "version" "1.3.1" optionalDependencies: - graceful-fs "^4.1.9" - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -latest-version@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" - integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== - dependencies: - package-json "^6.3.0" - -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -load-json-file@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" - integrity sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw== - dependencies: - graceful-fs "^4.1.2" - parse-json "^4.0.0" - pify "^3.0.0" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.debounce@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== - -lodash.ismatch@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" - integrity sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g== - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash.throttle@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" - integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== - -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - -lodash@4.17.21, lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.21, lodash@^4.3.0, lodash@^4.7.0: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -log-symbols@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== - dependencies: - chalk "^2.0.1" - -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -logkitty@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/logkitty/-/logkitty-0.7.1.tgz#8e8d62f4085a826e8d38987722570234e33c6aa7" - integrity sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ== - dependencies: - ansi-fragments "^0.2.1" - dayjs "^1.8.15" - yargs "^15.1.0" - -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" - integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== - -lowercase-keys@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" - integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== - -lru-cache@^4.0.1: - version "4.1.5" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" - integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" + "graceful-fs" "^4.1.9" + +"kleur@^3.0.3": + "integrity" "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" + "resolved" "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" + "version" "3.0.3" + +"kleur@^4.1.4": + "integrity" "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" + "resolved" "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" + "version" "4.1.5" + +"latest-version@^7.0.0": + "integrity" "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==" + "resolved" "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz" + "version" "7.0.0" + dependencies: + "package-json" "^8.1.0" + +"leven@^3.1.0": + "integrity" "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + "resolved" "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" + "version" "3.1.0" + +"levn@^0.4.1": + "integrity" "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==" + "resolved" "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + "version" "0.4.1" + dependencies: + "prelude-ls" "^1.2.1" + "type-check" "~0.4.0" + +"levn@~0.3.0": + "integrity" "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==" + "resolved" "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz" + "version" "0.3.0" + dependencies: + "prelude-ls" "~1.1.2" + "type-check" "~0.3.2" + +"lines-and-columns@^1.1.6": + "integrity" "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" + "resolved" "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz" + "version" "1.1.6" + +"load-json-file@^4.0.0": + "integrity" "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==" + "resolved" "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "graceful-fs" "^4.1.2" + "parse-json" "^4.0.0" + "pify" "^3.0.0" + "strip-bom" "^3.0.0" + +"locate-path@^2.0.0": + "integrity" "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==" + "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "p-locate" "^2.0.0" + "path-exists" "^3.0.0" + +"locate-path@^3.0.0": + "integrity" "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==" + "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "p-locate" "^3.0.0" + "path-exists" "^3.0.0" + +"locate-path@^5.0.0": + "integrity" "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==" + "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "p-locate" "^4.1.0" + +"locate-path@^6.0.0": + "integrity" "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==" + "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "p-locate" "^5.0.0" + +"lodash._reinterpolate@^3.0.0": + "integrity" "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=" + "resolved" "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz" + "version" "3.0.0" + +"lodash.debounce@^4.0.8": + "integrity" "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + "resolved" "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz" + "version" "4.0.8" + +"lodash.ismatch@^4.4.0": + "integrity" "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=" + "resolved" "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz" + "version" "4.4.0" + +"lodash.template@^4.0.2": + "integrity" "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==" + "resolved" "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz" + "version" "4.5.0" + dependencies: + "lodash._reinterpolate" "^3.0.0" + "lodash.templatesettings" "^4.0.0" + +"lodash.templatesettings@^4.0.0": + "integrity" "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==" + "resolved" "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz" + "version" "4.2.0" + dependencies: + "lodash._reinterpolate" "^3.0.0" + +"lodash.throttle@^4.1.1": + "integrity" "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" + "resolved" "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz" + "version" "4.1.1" + +"lodash@^4.17.10", "lodash@^4.17.15", "lodash@^4.17.19", "lodash@^4.17.20", "lodash@^4.17.21", "lodash@^4.7.0", "lodash@4.17.21": + "integrity" "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + "version" "4.17.21" + +"log-symbols@^4.1.0": + "integrity" "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==" + "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "chalk" "^4.1.0" + "is-unicode-supported" "^0.1.0" + +"log-symbols@^5.1.0": + "integrity" "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==" + "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "chalk" "^5.0.0" + "is-unicode-supported" "^1.1.0" + +"logkitty@^0.7.1": + "integrity" "sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==" + "resolved" "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz" + "version" "0.7.1" + dependencies: + "ansi-fragments" "^0.2.1" + "dayjs" "^1.8.15" + "yargs" "^15.1.0" -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== +"loose-envify@^1.0.0", "loose-envify@^1.1.0", "loose-envify@^1.4.0": + "integrity" "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==" + "resolved" "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" + "version" "1.4.0" dependencies: - yallist "^4.0.0" + "js-tokens" "^3.0.0 || ^4.0.0" -macos-release@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2" - integrity sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g== +"lowercase-keys@^3.0.0": + "integrity" "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==" + "resolved" "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz" + "version" "3.0.0" -make-dir@^2.0.0, make-dir@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" - integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== - dependencies: - pify "^4.0.1" - semver "^5.6.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" +"lru-cache@^5.1.1": + "integrity" "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==" + "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" + "version" "5.1.1" + dependencies: + "yallist" "^3.0.2" -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== +"lru-cache@^6.0.0": + "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==" + "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + "version" "6.0.0" dependencies: - tmpl "1.0.5" + "yallist" "^4.0.0" -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== +"macos-release@^3.0.1": + "integrity" "sha512-/M/R0gCDgM+Cv1IuBG1XGdfTFnMEG6PZeT+KGWHO/OG+imqmaD9CH5vHBTycEM3+Kc4uG2Il+tFAuUWLqQOeUA==" + "resolved" "https://registry.npmjs.org/macos-release/-/macos-release-3.1.0.tgz" + "version" "3.1.0" -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== +"make-dir@^2.0.0": + "integrity" "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==" + "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "pify" "^4.0.1" + "semver" "^5.6.0" -map-obj@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" - integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== +"make-dir@^2.1.0": + "integrity" "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==" + "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "pify" "^4.0.1" + "semver" "^5.6.0" + +"make-dir@^3.0.0": + "integrity" "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==" + "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "semver" "^6.0.0" + +"makeerror@1.0.x": + "integrity" "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=" + "resolved" "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz" + "version" "1.0.11" + dependencies: + "tmpl" "1.0.x" -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== +"map-cache@^0.2.2": + "integrity" "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" + "resolved" "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" + "version" "0.2.2" + +"map-obj@^1.0.0": + "integrity" "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=" + "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz" + "version" "1.0.1" + +"map-obj@^4.0.0": + "integrity" "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==" + "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz" + "version" "4.1.0" + +"map-visit@^1.0.0": + "integrity" "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=" + "resolved" "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz" + "version" "1.0.0" dependencies: - object-visit "^1.0.0" + "object-visit" "^1.0.0" + +"memoize-one@^5.0.0": + "integrity" "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + "resolved" "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz" + "version" "5.2.1" -meow@^8.0.0: - version "8.1.2" - resolved "https://registry.yarnpkg.com/meow/-/meow-8.1.2.tgz#bcbe45bda0ee1729d350c03cffc8395a36c4e897" - integrity sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q== +"meow@^8.0.0": + "integrity" "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==" + "resolved" "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz" + "version" "8.1.2" dependencies: "@types/minimist" "^1.2.0" - camelcase-keys "^6.2.2" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "4.1.0" - normalize-package-data "^3.0.0" - read-pkg-up "^7.0.1" - redent "^3.0.0" - trim-newlines "^3.0.0" - type-fest "^0.18.0" - yargs-parser "^20.2.3" - -merge-stream@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" - integrity sha512-e6RM36aegd4f+r8BZCcYXlO2P3H6xbUM6ktL2Xmf45GAOit9bI4z6/3VU7JwllVO1L7u0UDSg/EhzQ5lmMLolA== - dependencies: - readable-stream "^2.0.1" - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -metro-babel-register@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-babel-register/-/metro-babel-register-0.59.0.tgz#2bcff65641b36794cf083ba732fbc46cf870fb43" - integrity sha512-JtWc29erdsXO/V3loenXKw+aHUXgj7lt0QPaZKPpctLLy8kcEpI/8pfXXgVK9weXICCpCnYtYncIosAyzh0xjg== - dependencies: - "@babel/core" "^7.0.0" - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-proposal-optional-chaining" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/register" "^7.0.0" - escape-string-regexp "^1.0.5" - -metro-babel-transformer@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.59.0.tgz#dda99c75d831b00142c42c020c51c103b29f199d" - integrity sha512-fdZJl8rs54GVFXokxRdD7ZrQ1TJjxWzOi/xSP25VR3E8tbm3nBZqS+/ylu643qSr/IueABR+jrlqAyACwGEf6w== - dependencies: - "@babel/core" "^7.0.0" - metro-source-map "0.59.0" - -metro-cache@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.59.0.tgz#ef3c055f276933979b731455dc8317d7a66f0f2d" - integrity sha512-ryWNkSnpyADfRpHGb8BRhQ3+k8bdT/bsxMH2O0ntlZYZ188d8nnYWmxbRvFmEzToJxe/ol4uDw0tJFAaQsN8KA== - dependencies: - jest-serializer "^24.9.0" - metro-core "0.59.0" - mkdirp "^0.5.1" - rimraf "^2.5.4" - -metro-config@0.59.0, metro-config@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.59.0.tgz#9844e388069321dd7403e49f0d495a81f9aa0fef" - integrity sha512-MDsknFG9vZ4Nb5VR6OUDmGHaWz6oZg/FtE3up1zVBKPVRTXE1Z+k7zypnPtMXjMh3WHs/Sy4+wU1xnceE/zdnA== - dependencies: - cosmiconfig "^5.0.5" - jest-validate "^24.9.0" - metro "0.59.0" - metro-cache "0.59.0" - metro-core "0.59.0" - -metro-core@0.59.0, metro-core@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.59.0.tgz#958cde3fe5c8cd84a78e1899af801ad69e9c83b1" - integrity sha512-kb5LKvV5r2pqMEzGyTid8ai2mIjW13NMduQ8oBmfha7/EPTATcTQ//s+bkhAs1toQD8vqVvjAb0cPNjWQEmcmQ== - dependencies: - jest-haste-map "^24.9.0" - lodash.throttle "^4.1.1" - metro-resolver "0.59.0" - wordwrap "^1.0.0" - -metro-inspector-proxy@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.59.0.tgz#39d1390772d13767fc595be9a1a7074e2425cf8e" - integrity sha512-hPeAuQcofTOH0F+2GEZqWkvkVY1/skezSSlMocDQDaqds+Kw6JgdA7FlZXxnKmQ/jYrWUzff/pl8SUCDwuYthQ== - dependencies: - connect "^3.6.5" - debug "^2.2.0" - ws "^1.1.5" - yargs "^14.2.0" - -metro-minify-uglify@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.59.0.tgz#6491876308d878742f7b894d7fca4af356886dd5" - integrity sha512-7IzVgCVWZMymgZ/quieg/9v5EQ8QmZWAgDc86Zp9j0Vy6tQTjUn6jlU+YAKW3mfMEjMr6iIUzCD8YklX78tFAw== - dependencies: - uglify-es "^3.1.9" - -metro-react-native-babel-preset@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.59.0.tgz#20e020bc6ac9849e1477de1333d303ed42aba225" - integrity sha512-BoO6ncPfceIDReIH8pQ5tQptcGo5yRWQXJGVXfANbiKLq4tfgdZB1C1e2rMUJ6iypmeJU9dzl+EhPmIFKtgREg== + "camelcase-keys" "^6.2.2" + "decamelize-keys" "^1.1.0" + "hard-rejection" "^2.1.0" + "minimist-options" "4.1.0" + "normalize-package-data" "^3.0.0" + "read-pkg-up" "^7.0.1" + "redent" "^3.0.0" + "trim-newlines" "^3.0.0" + "type-fest" "^0.18.0" + "yargs-parser" "^20.2.3" + +"merge-stream@^2.0.0": + "integrity" "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "resolved" "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" + "version" "2.0.0" + +"merge2@^1.3.0", "merge2@^1.4.1": + "integrity" "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + "resolved" "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" + "version" "1.4.1" + +"metro-babel-transformer@0.72.3": + "integrity" "sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw==" + "resolved" "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "@babel/core" "^7.14.0" + "hermes-parser" "0.8.0" + "metro-source-map" "0.72.3" + "nullthrows" "^1.1.1" + +"metro-cache-key@0.72.3": + "integrity" "sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg==" + "resolved" "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.72.3.tgz" + "version" "0.72.3" + +"metro-cache@0.72.3": + "integrity" "sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A==" + "resolved" "https://registry.npmjs.org/metro-cache/-/metro-cache-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "metro-core" "0.72.3" + "rimraf" "^2.5.4" + +"metro-config@0.72.3": + "integrity" "sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw==" + "resolved" "https://registry.npmjs.org/metro-config/-/metro-config-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "cosmiconfig" "^5.0.5" + "jest-validate" "^26.5.2" + "metro" "0.72.3" + "metro-cache" "0.72.3" + "metro-core" "0.72.3" + "metro-runtime" "0.72.3" + +"metro-core@0.72.3": + "integrity" "sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A==" + "resolved" "https://registry.npmjs.org/metro-core/-/metro-core-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "lodash.throttle" "^4.1.1" + "metro-resolver" "0.72.3" + +"metro-file-map@0.72.3": + "integrity" "sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA==" + "resolved" "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "abort-controller" "^3.0.0" + "anymatch" "^3.0.3" + "debug" "^2.2.0" + "fb-watchman" "^2.0.0" + "graceful-fs" "^4.2.4" + "invariant" "^2.2.4" + "jest-regex-util" "^27.0.6" + "jest-serializer" "^27.0.6" + "jest-util" "^27.2.0" + "jest-worker" "^27.2.0" + "micromatch" "^4.0.4" + "walker" "^1.0.7" + optionalDependencies: + "fsevents" "^2.1.2" + +"metro-hermes-compiler@0.72.3": + "integrity" "sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg==" + "resolved" "https://registry.npmjs.org/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz" + "version" "0.72.3" + +"metro-inspector-proxy@0.72.3": + "integrity" "sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw==" + "resolved" "https://registry.npmjs.org/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "connect" "^3.6.5" + "debug" "^2.2.0" + "ws" "^7.5.1" + "yargs" "^15.3.1" + +"metro-minify-uglify@0.72.3": + "integrity" "sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA==" + "resolved" "https://registry.npmjs.org/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "uglify-es" "^3.1.9" + +"metro-react-native-babel-preset@0.72.3": + "integrity" "sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw==" + "resolved" "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz" + "version" "0.72.3" dependencies: + "@babel/core" "^7.14.0" + "@babel/plugin-proposal-async-generator-functions" "^7.0.0" "@babel/plugin-proposal-class-properties" "^7.0.0" "@babel/plugin-proposal-export-default-from" "^7.0.0" "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" @@ -6781,23 +6681,22 @@ metro-react-native-babel-preset@0.59.0: "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0" "@babel/plugin-syntax-optional-chaining" "^7.0.0" "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-async-to-generator" "^7.0.0" "@babel/plugin-transform-block-scoping" "^7.0.0" "@babel/plugin-transform-classes" "^7.0.0" "@babel/plugin-transform-computed-properties" "^7.0.0" "@babel/plugin-transform-destructuring" "^7.0.0" "@babel/plugin-transform-exponentiation-operator" "^7.0.0" "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-for-of" "^7.0.0" "@babel/plugin-transform-function-name" "^7.0.0" "@babel/plugin-transform-literals" "^7.0.0" "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-object-assign" "^7.0.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0" "@babel/plugin-transform-parameters" "^7.0.0" "@babel/plugin-transform-react-display-name" "^7.0.0" "@babel/plugin-transform-react-jsx" "^7.0.0" "@babel/plugin-transform-react-jsx-self" "^7.0.0" "@babel/plugin-transform-react-jsx-source" "^7.0.0" - "@babel/plugin-transform-regenerator" "^7.0.0" "@babel/plugin-transform-runtime" "^7.0.0" "@babel/plugin-transform-shorthand-properties" "^7.0.0" "@babel/plugin-transform-spread" "^7.0.0" @@ -6806,3223 +6705,3238 @@ metro-react-native-babel-preset@0.59.0: "@babel/plugin-transform-typescript" "^7.5.0" "@babel/plugin-transform-unicode-regex" "^7.0.0" "@babel/template" "^7.0.0" - react-refresh "^0.4.0" + "react-refresh" "^0.4.0" + +"metro-react-native-babel-transformer@0.72.3": + "integrity" "sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA==" + "resolved" "https://registry.npmjs.org/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "@babel/core" "^7.14.0" + "babel-preset-fbjs" "^3.4.0" + "hermes-parser" "0.8.0" + "metro-babel-transformer" "0.72.3" + "metro-react-native-babel-preset" "0.72.3" + "metro-source-map" "0.72.3" + "nullthrows" "^1.1.1" -metro-react-native-babel-transformer@0.59.0, metro-react-native-babel-transformer@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.59.0.tgz#9b3dfd6ad35c6ef37fc4ce4d20a2eb67fabbb4be" - integrity sha512-1O3wrnMq4NcPQ1asEcl9lRDn/t+F1Oef6S9WaYVIKEhg9m/EQRGVrrTVP+R6B5Eeaj3+zNKbzM8Dx/NWy1hUbQ== +"metro-resolver@0.72.3": + "integrity" "sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w==" + "resolved" "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.72.3.tgz" + "version" "0.72.3" dependencies: - "@babel/core" "^7.0.0" - babel-preset-fbjs "^3.3.0" - metro-babel-transformer "0.59.0" - metro-react-native-babel-preset "0.59.0" - metro-source-map "0.59.0" + "absolute-path" "^0.0.0" -metro-resolver@0.59.0, metro-resolver@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.59.0.tgz#fbc9d7c95f094c52807877d0011feffb9e896fad" - integrity sha512-lbgiumnwoVosffEI96z0FGuq1ejTorHAj3QYUPmp5dFMfitRxLP7Wm/WP9l4ZZjIptxTExsJwuEff1SLRCPD9w== +"metro-runtime@0.72.3": + "integrity" "sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA==" + "resolved" "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.72.3.tgz" + "version" "0.72.3" dependencies: - absolute-path "^0.0.0" + "@babel/runtime" "^7.0.0" + "react-refresh" "^0.4.0" -metro-source-map@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.59.0.tgz#e9beb9fc51bfb4e060f95820cf1508fc122d23f7" - integrity sha512-0w5CmCM+ybSqXIjqU4RiK40t4bvANL6lafabQ2GP2XD3vSwkLY+StWzCtsb4mPuyi9R/SgoLBel+ZOXHXAH0eQ== +"metro-source-map@0.72.3": + "integrity" "sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ==" + "resolved" "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.72.3.tgz" + "version" "0.72.3" dependencies: - "@babel/traverse" "^7.0.0" + "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" - invariant "^2.2.4" - metro-symbolicate "0.59.0" - ob1 "0.59.0" - source-map "^0.5.6" - vlq "^1.0.0" - -metro-symbolicate@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.59.0.tgz#fc7f93957a42b02c2bfc57ed1e8f393f5f636a54" - integrity sha512-asLaF2A7rndrToGFIknL13aiohwPJ95RKHf0NM3hP/nipiLDoMzXT6ZnQvBqDxkUKyP+51AI75DMtb+Wcyw4Bw== - dependencies: - invariant "^2.2.4" - metro-source-map "0.59.0" - source-map "^0.5.6" - through2 "^2.0.1" - vlq "^1.0.0" - -metro@0.59.0, metro@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro/-/metro-0.59.0.tgz#64a87cd61357814a4f279518e0781b1eab5934b8" - integrity sha512-OpVgYXyuTvouusFZQJ/UYKEbwfLmialrSCUUTGTFaBor6UMUHZgXPYtK86LzesgMqRc8aiuTQVO78iKW2Iz3wg== + "invariant" "^2.2.4" + "metro-symbolicate" "0.72.3" + "nullthrows" "^1.1.1" + "ob1" "0.72.3" + "source-map" "^0.5.6" + "vlq" "^1.0.0" + +"metro-symbolicate@0.72.3": + "integrity" "sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw==" + "resolved" "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "invariant" "^2.2.4" + "metro-source-map" "0.72.3" + "nullthrows" "^1.1.1" + "source-map" "^0.5.6" + "through2" "^2.0.1" + "vlq" "^1.0.0" + +"metro-transform-plugins@0.72.3": + "integrity" "sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg==" + "resolved" "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.14.0" + "nullthrows" "^1.1.1" + +"metro-transform-worker@0.72.3": + "integrity" "sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ==" + "resolved" "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz" + "version" "0.72.3" + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/types" "^7.0.0" + "babel-preset-fbjs" "^3.4.0" + "metro" "0.72.3" + "metro-babel-transformer" "0.72.3" + "metro-cache" "0.72.3" + "metro-cache-key" "0.72.3" + "metro-hermes-compiler" "0.72.3" + "metro-source-map" "0.72.3" + "metro-transform-plugins" "0.72.3" + "nullthrows" "^1.1.1" + +"metro@0.72.3": + "integrity" "sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg==" + "resolved" "https://registry.npmjs.org/metro/-/metro-0.72.3.tgz" + "version" "0.72.3" dependencies: "@babel/code-frame" "^7.0.0" - "@babel/core" "^7.0.0" - "@babel/generator" "^7.5.0" - "@babel/parser" "^7.0.0" - "@babel/plugin-external-helpers" "^7.0.0" + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" "@babel/template" "^7.0.0" - "@babel/traverse" "^7.0.0" + "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" - absolute-path "^0.0.0" - async "^2.4.0" - babel-preset-fbjs "^3.3.0" - buffer-crc32 "^0.2.13" - chalk "^2.4.1" - ci-info "^2.0.0" - concat-stream "^1.6.0" - connect "^3.6.5" - debug "^2.2.0" - denodeify "^1.2.1" - error-stack-parser "^2.0.6" - eventemitter3 "^3.0.0" - fbjs "^1.0.0" - fs-extra "^1.0.0" - graceful-fs "^4.1.3" - image-size "^0.6.0" - invariant "^2.2.4" - jest-haste-map "^24.9.0" - jest-worker "^24.9.0" - json-stable-stringify "^1.0.1" - lodash.throttle "^4.1.1" - merge-stream "^1.0.1" - metro-babel-register "0.59.0" - metro-babel-transformer "0.59.0" - metro-cache "0.59.0" - metro-config "0.59.0" - metro-core "0.59.0" - metro-inspector-proxy "0.59.0" - metro-minify-uglify "0.59.0" - metro-react-native-babel-preset "0.59.0" - metro-resolver "0.59.0" - metro-source-map "0.59.0" - metro-symbolicate "0.59.0" - mime-types "2.1.11" - mkdirp "^0.5.1" - node-fetch "^2.2.0" - nullthrows "^1.1.1" - resolve "^1.5.0" - rimraf "^2.5.4" - serialize-error "^2.1.0" - source-map "^0.5.6" - strip-ansi "^4.0.0" - temp "0.8.3" - throat "^4.1.0" - wordwrap "^1.0.0" - ws "^1.1.5" - xpipe "^1.0.5" - yargs "^14.2.0" - -micromatch@^3.1.10, micromatch@^3.1.4: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-db@~1.23.0: - version "1.23.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.23.0.tgz#a31b4070adaea27d732ea333740a64d0ec9a6659" - integrity sha512-lsX3UhcJITPHDXGOXSglBSPoI2UbcsWMmgX1VTaeXJ11TjjxOSE/DHrCl23zJk75odJc8MVpdZzWxdWt1Csx5Q== - -mime-types@2.1.11: - version "2.1.11" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.11.tgz#c259c471bda808a85d6cd193b430a5fae4473b3c" - integrity sha512-14dD2ItPaGFLVyhddUE/Rrtg+g7v8RmBLjN5Xsb3fJJLKunoZOw3I3bK6csjoJKjaNjcXo8xob9kHDyOpJfgpg== - dependencies: - mime-db "~1.23.0" - -mime-types@2.1.35, mime-types@^2.1.12, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -mime@^2.4.1: - version "2.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" - integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== - -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -mimic-response@^1.0.0, mimic-response@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" - integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== - -min-indent@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - -minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^5.0.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff" - integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg== - dependencies: - brace-expansion "^2.0.1" - -minimist-options@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" - integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - kind-of "^6.0.3" - -minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -modify-values@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" - integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== - -mute-stream@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" - integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== - -nan@^2.12.1: - version "2.17.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - -neo-async@^2.6.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -netmask@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7" - integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== - -new-github-release-url@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/new-github-release-url/-/new-github-release-url-1.0.0.tgz#493847e6fecce39c247e9d89929be773d2e7f777" - integrity sha512-dle7yf655IMjyFUqn6Nxkb18r4AOAkzRcgcZv6WZ0IqrOH4QCEZ8Sm6I7XX21zvHdBeeMeTkhR9qT2Z0EJDx6A== - dependencies: - type-fest "^0.4.1" - -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== - -nocache@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/nocache/-/nocache-2.1.0.tgz#120c9ffec43b5729b1d5de88cd71aa75a0ba491f" - integrity sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q== - -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -node-fetch@^2.2.0, node-fetch@^2.6.0, node-fetch@^2.6.7: - version "2.6.7" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== - -node-notifier@^8.0.0: - version "8.0.2" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" - integrity sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg== - dependencies: - growly "^1.3.0" - is-wsl "^2.2.0" - semver "^7.3.2" - shellwords "^0.1.1" - uuid "^8.3.0" - which "^2.0.2" - -node-releases@^2.0.6: - version "2.0.8" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.8.tgz#0f349cdc8fcfa39a92ac0be9bc48b7706292b9ae" - integrity sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A== - -node-stream-zip@^1.9.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea" - integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== - -normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-package-data@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.3.tgz#dbcc3e2da59509a0983422884cd172eefdfa525e" - integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== - dependencies: - hosted-git-info "^4.0.1" - is-core-module "^2.5.0" - semver "^7.3.4" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w== - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -normalize-url@^4.1.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" - integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== - -normalize-url@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" - integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== - dependencies: - path-key "^2.0.0" - -npm-run-path@^4.0.0, npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -nullthrows@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" - integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== - -nwsapi@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" - integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== - -ob1@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.59.0.tgz#ee103619ef5cb697f2866e3577da6f0ecd565a36" - integrity sha512-opXMTxyWJ9m68ZglCxwo0OPRESIC/iGmKFPXEXzMZqsVIrgoRXOHmoMDkQzz4y3irVjbyPJRAh5pI9fd0MJTFQ== - -object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.12.2, object-inspect@^1.9.0: - version "1.12.2" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" - integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== - -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - -object.assign@^4.1.3, object.assign@^4.1.4: - version "4.1.4" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" - integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - has-symbols "^1.0.3" - object-keys "^1.1.1" - -object.entries@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23" - integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -object.fromentries@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73" - integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -object.hasown@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92" - integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== - dependencies: - define-properties "^1.1.4" - es-abstract "^1.20.4" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - -object.values@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" - integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -on-finished@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" - integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== - dependencies: - ee-first "1.1.1" - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== - dependencies: - ee-first "1.1.1" - -on-headers@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" - integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - integrity sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ== - dependencies: - mimic-fn "^1.0.0" - -onetime@^5.1.0, onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -open@7.4.2: - version "7.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" - integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== - dependencies: - is-docker "^2.0.0" - is-wsl "^2.1.1" - -open@^6.2.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9" - integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg== - dependencies: - is-wsl "^1.1.0" - -opencollective-postinstall@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259" - integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q== - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -options@>=0.0.5: - version "0.0.6" - resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" - integrity sha512-bOj3L1ypm++N+n7CEbbe473A414AB7z+amKYshRb//iuL3MpdDCLhPnw6aVTdKB9g5ZRVHIEp8eUln6L2NUStg== - -ora@5.4.1, ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - -ora@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-3.4.0.tgz#bf0752491059a3ef3ed4c85097531de9fdbcd318" - integrity sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg== - dependencies: - chalk "^2.4.2" - cli-cursor "^2.1.0" - cli-spinners "^2.0.0" - log-symbols "^2.2.0" - strip-ansi "^5.2.0" - wcwidth "^1.0.1" - -os-name@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/os-name/-/os-name-4.0.1.tgz#32cee7823de85a8897647ba4d76db46bf845e555" - integrity sha512-xl9MAoU97MH1Xt5K9ERft2YfCAoaO6msy1OBA0ozxEC0x0TmIoE6K3QvgJMMZA9yKGLmHXNY/YZoDbiGDj4zYw== - dependencies: - macos-release "^2.5.0" - windows-release "^4.0.0" - -os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== - -p-cancelable@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" - integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== - -p-each-series@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" - integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== - dependencies: - p-limit "^1.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== - dependencies: - aggregate-error "^3.0.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== + "absolute-path" "^0.0.0" + "accepts" "^1.3.7" + "async" "^3.2.2" + "chalk" "^4.0.0" + "ci-info" "^2.0.0" + "connect" "^3.6.5" + "debug" "^2.2.0" + "denodeify" "^1.2.1" + "error-stack-parser" "^2.0.6" + "fs-extra" "^1.0.0" + "graceful-fs" "^4.2.4" + "hermes-parser" "0.8.0" + "image-size" "^0.6.0" + "invariant" "^2.2.4" + "jest-worker" "^27.2.0" + "lodash.throttle" "^4.1.1" + "metro-babel-transformer" "0.72.3" + "metro-cache" "0.72.3" + "metro-cache-key" "0.72.3" + "metro-config" "0.72.3" + "metro-core" "0.72.3" + "metro-file-map" "0.72.3" + "metro-hermes-compiler" "0.72.3" + "metro-inspector-proxy" "0.72.3" + "metro-minify-uglify" "0.72.3" + "metro-react-native-babel-preset" "0.72.3" + "metro-resolver" "0.72.3" + "metro-runtime" "0.72.3" + "metro-source-map" "0.72.3" + "metro-symbolicate" "0.72.3" + "metro-transform-plugins" "0.72.3" + "metro-transform-worker" "0.72.3" + "mime-types" "^2.1.27" + "node-fetch" "^2.2.0" + "nullthrows" "^1.1.1" + "rimraf" "^2.5.4" + "serialize-error" "^2.1.0" + "source-map" "^0.5.6" + "strip-ansi" "^6.0.0" + "temp" "0.8.3" + "throat" "^5.0.0" + "ws" "^7.5.1" + "yargs" "^15.3.1" + +"micromatch@^3.1.10": + "integrity" "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==" + "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" + "version" "3.1.10" + dependencies: + "arr-diff" "^4.0.0" + "array-unique" "^0.3.2" + "braces" "^2.3.1" + "define-property" "^2.0.2" + "extend-shallow" "^3.0.2" + "extglob" "^2.0.4" + "fragment-cache" "^0.2.1" + "kind-of" "^6.0.2" + "nanomatch" "^1.2.9" + "object.pick" "^1.3.0" + "regex-not" "^1.0.0" + "snapdragon" "^0.8.1" + "to-regex" "^3.0.2" + +"micromatch@^3.1.4": + "integrity" "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==" + "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" + "version" "3.1.10" + dependencies: + "arr-diff" "^4.0.0" + "array-unique" "^0.3.2" + "braces" "^2.3.1" + "define-property" "^2.0.2" + "extend-shallow" "^3.0.2" + "extglob" "^2.0.4" + "fragment-cache" "^0.2.1" + "kind-of" "^6.0.2" + "nanomatch" "^1.2.9" + "object.pick" "^1.3.0" + "regex-not" "^1.0.0" + "snapdragon" "^0.8.1" + "to-regex" "^3.0.2" + +"micromatch@^4.0.2", "micromatch@^4.0.4": + "integrity" "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==" + "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" + "version" "4.0.5" + dependencies: + "braces" "^3.0.2" + "picomatch" "^2.3.1" + +"mime-db@>= 1.43.0 < 2", "mime-db@1.52.0": + "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + "version" "1.52.0" + +"mime-types@^2.1.12", "mime-types@^2.1.27", "mime-types@~2.1.34", "mime-types@2.1.35": + "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==" + "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + "version" "2.1.35" + dependencies: + "mime-db" "1.52.0" + +"mime@^2.4.1": + "integrity" "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" + "resolved" "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" + "version" "2.6.0" + +"mime@1.6.0": + "integrity" "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "resolved" "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + "version" "1.6.0" + +"mimic-fn@^2.1.0": + "integrity" "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + "version" "2.1.0" + +"mimic-fn@^4.0.0": + "integrity" "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==" + "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" + "version" "4.0.0" + +"mimic-response@^3.1.0": + "integrity" "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" + "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" + "version" "3.1.0" + +"mimic-response@^4.0.0": + "integrity" "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==" + "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz" + "version" "4.0.0" + +"min-indent@^1.0.0": + "integrity" "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" + "resolved" "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" + "version" "1.0.1" + +"minimatch@^3.0.2", "minimatch@^3.0.4": + "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" + "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + "version" "3.1.2" + dependencies: + "brace-expansion" "^1.1.7" + +"minimatch@^5.0.1": + "integrity" "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==" + "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "brace-expansion" "^2.0.1" + +"minimist-options@4.1.0": + "integrity" "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==" + "resolved" "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "arrify" "^1.0.1" + "is-plain-obj" "^1.1.0" + "kind-of" "^6.0.3" + +"minimist@^1.1.1", "minimist@^1.2.0", "minimist@^1.2.5", "minimist@^1.2.6": + "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" + "version" "1.2.7" + +"mixin-deep@^1.2.0": + "integrity" "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==" + "resolved" "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz" + "version" "1.3.2" + dependencies: + "for-in" "^1.0.2" + "is-extendable" "^1.0.1" + +"mkdirp@^0.5.1": + "integrity" "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==" + "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" + "version" "0.5.6" + dependencies: + "minimist" "^1.2.6" + +"modify-values@^1.0.0": + "integrity" "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==" + "resolved" "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz" + "version" "1.0.1" + +"ms@2.0.0": + "integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + "version" "2.0.0" + +"ms@2.1.2": + "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + "version" "2.1.2" + +"ms@2.1.3": + "integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + "version" "2.1.3" + +"mute-stream@0.0.8": + "integrity" "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" + "resolved" "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" + "version" "0.0.8" + +"nanomatch@^1.2.9": + "integrity" "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==" + "resolved" "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz" + "version" "1.2.13" + dependencies: + "arr-diff" "^4.0.0" + "array-unique" "^0.3.2" + "define-property" "^2.0.2" + "extend-shallow" "^3.0.2" + "fragment-cache" "^0.2.1" + "is-windows" "^1.0.2" + "kind-of" "^6.0.2" + "object.pick" "^1.3.0" + "regex-not" "^1.0.0" + "snapdragon" "^0.8.1" + "to-regex" "^3.0.1" + +"natural-compare@^1.4.0": + "integrity" "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=" + "resolved" "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" + "version" "1.4.0" + +"negotiator@0.6.3": + "integrity" "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + "resolved" "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + "version" "0.6.3" + +"neo-async@^2.5.0", "neo-async@^2.6.0": + "integrity" "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + "resolved" "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" + "version" "2.6.2" + +"netmask@^2.0.2": + "integrity" "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==" + "resolved" "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz" + "version" "2.0.2" + +"new-github-release-url@2.0.0": + "integrity" "sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==" + "resolved" "https://registry.npmjs.org/new-github-release-url/-/new-github-release-url-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "type-fest" "^2.5.1" + +"nice-try@^1.0.4": + "integrity" "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + "resolved" "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" + "version" "1.0.5" + +"nocache@^3.0.1": + "integrity" "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==" + "resolved" "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz" + "version" "3.0.4" + +"node-dir@^0.1.17": + "integrity" "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==" + "resolved" "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz" + "version" "0.1.17" + dependencies: + "minimatch" "^3.0.2" + +"node-domexception@^1.0.0": + "integrity" "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" + "resolved" "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" + "version" "1.0.0" + +"node-fetch@^2.2.0", "node-fetch@^2.6.0", "node-fetch@^2.6.7": + "integrity" "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==" + "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" + "version" "2.6.7" + dependencies: + "whatwg-url" "^5.0.0" + +"node-fetch@3.2.10": + "integrity" "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==" + "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz" + "version" "3.2.10" + dependencies: + "data-uri-to-buffer" "^4.0.0" + "fetch-blob" "^3.1.4" + "formdata-polyfill" "^4.0.10" + +"node-int64@^0.4.0": + "integrity" "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=" + "resolved" "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" + "version" "0.4.0" + +"node-notifier@^8.0.0": + "integrity" "sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==" + "resolved" "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.1.tgz" + "version" "8.0.1" + dependencies: + "growly" "^1.3.0" + "is-wsl" "^2.2.0" + "semver" "^7.3.2" + "shellwords" "^0.1.1" + "uuid" "^8.3.0" + "which" "^2.0.2" + +"node-releases@^2.0.6": + "integrity" "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + "resolved" "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz" + "version" "2.0.6" + +"node-stream-zip@^1.9.1": + "integrity" "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==" + "resolved" "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz" + "version" "1.15.0" + +"normalize-package-data@^2.3.2": + "integrity" "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" + "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" + "version" "2.5.0" + dependencies: + "hosted-git-info" "^2.1.4" + "resolve" "^1.10.0" + "semver" "2 || 3 || 4 || 5" + "validate-npm-package-license" "^3.0.1" + +"normalize-package-data@^2.5.0": + "integrity" "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" + "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" + "version" "2.5.0" + dependencies: + "hosted-git-info" "^2.1.4" + "resolve" "^1.10.0" + "semver" "2 || 3 || 4 || 5" + "validate-npm-package-license" "^3.0.1" + +"normalize-package-data@^3.0.0": + "integrity" "sha512-6lUjEI0d3v6kFrtgA/lOx4zHCWULXsFNIjHolnZCKCTLA6m/G625cdn3O7eNmT0iD3jfo6HZ9cdImGZwf21prw==" + "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "hosted-git-info" "^3.0.6" + "resolve" "^1.17.0" + "semver" "^7.3.2" + "validate-npm-package-license" "^3.0.1" + +"normalize-path@^2.1.1": + "integrity" "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=" + "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz" + "version" "2.1.1" + dependencies: + "remove-trailing-separator" "^1.0.1" + +"normalize-path@^3.0.0": + "integrity" "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + "version" "3.0.0" + +"normalize-url@^7.2.0": + "integrity" "sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA==" + "resolved" "https://registry.npmjs.org/normalize-url/-/normalize-url-7.2.0.tgz" + "version" "7.2.0" + +"npm-run-path@^2.0.0": + "integrity" "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==" + "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" + "version" "2.0.2" + dependencies: + "path-key" "^2.0.0" + +"npm-run-path@^4.0.0", "npm-run-path@^4.0.1": + "integrity" "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==" + "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" + "version" "4.0.1" + dependencies: + "path-key" "^3.0.0" + +"npm-run-path@^5.1.0": + "integrity" "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==" + "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "path-key" "^4.0.0" + +"nullthrows@^1.1.1": + "integrity" "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==" + "resolved" "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz" + "version" "1.1.1" + +"nwsapi@^2.2.0": + "integrity" "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==" + "resolved" "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz" + "version" "2.2.0" + +"ob1@0.72.3": + "integrity" "sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg==" + "resolved" "https://registry.npmjs.org/ob1/-/ob1-0.72.3.tgz" + "version" "0.72.3" + +"object-assign@^4.1.1": + "integrity" "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "resolved" "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + "version" "4.1.1" + +"object-copy@^0.1.0": + "integrity" "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=" + "resolved" "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz" + "version" "0.1.0" + dependencies: + "copy-descriptor" "^0.1.0" + "define-property" "^0.2.5" + "kind-of" "^3.0.3" + +"object-inspect@^1.12.2", "object-inspect@^1.9.0": + "integrity" "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + "resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz" + "version" "1.12.2" + +"object-keys@^1.1.1": + "integrity" "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + "resolved" "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" + "version" "1.1.1" + +"object-visit@^1.0.0": + "integrity" "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=" + "resolved" "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "isobject" "^3.0.0" + +"object.assign@^4.1.2", "object.assign@^4.1.4": + "integrity" "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==" + "resolved" "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" + "version" "4.1.4" + dependencies: + "call-bind" "^1.0.2" + "define-properties" "^1.1.4" + "has-symbols" "^1.0.3" + "object-keys" "^1.1.1" + +"object.entries@^1.1.2": + "integrity" "sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg==" + "resolved" "https://registry.npmjs.org/object.entries/-/object.entries-1.1.3.tgz" + "version" "1.1.3" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "has" "^1.0.3" + +"object.fromentries@^2.0.2": + "integrity" "sha512-IDUSMXs6LOSJBWE++L0lzIbSqHl9KDCfff2x/JSEIDtEUavUnyMYC2ZGay/04Zq4UT8lvd4xNhU4/YHKibAOlw==" + "resolved" "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.3.tgz" + "version" "2.0.3" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "has" "^1.0.3" + +"object.pick@^1.3.0": + "integrity" "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=" + "resolved" "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz" + "version" "1.3.0" + dependencies: + "isobject" "^3.0.1" + +"object.values@^1.1.1": + "integrity" "sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag==" + "resolved" "https://registry.npmjs.org/object.values/-/object.values-1.1.2.tgz" + "version" "1.1.2" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "has" "^1.0.3" + +"on-finished@~2.3.0": + "integrity" "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==" + "resolved" "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz" + "version" "2.3.0" + dependencies: + "ee-first" "1.1.1" + +"on-finished@2.4.1": + "integrity" "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==" + "resolved" "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + "version" "2.4.1" + dependencies: + "ee-first" "1.1.1" + +"on-headers@~1.0.2": + "integrity" "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + "resolved" "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + "version" "1.0.2" + +"once@^1.3.0", "once@^1.3.1", "once@^1.4.0": + "integrity" "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" + "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + "version" "1.4.0" + dependencies: + "wrappy" "1" + +"onetime@^5.1.0", "onetime@^5.1.2": + "integrity" "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==" + "resolved" "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + "version" "5.1.2" + dependencies: + "mimic-fn" "^2.1.0" + +"onetime@^6.0.0": + "integrity" "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==" + "resolved" "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "mimic-fn" "^4.0.0" + +"open@^6.2.0": + "integrity" "sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==" + "resolved" "https://registry.npmjs.org/open/-/open-6.4.0.tgz" + "version" "6.4.0" + dependencies: + "is-wsl" "^1.1.0" + +"open@8.4.0": + "integrity" "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==" + "resolved" "https://registry.npmjs.org/open/-/open-8.4.0.tgz" + "version" "8.4.0" + dependencies: + "define-lazy-prop" "^2.0.0" + "is-docker" "^2.1.1" + "is-wsl" "^2.2.0" + +"opencollective-postinstall@^2.0.2": + "integrity" "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==" + "resolved" "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz" + "version" "2.0.3" + +"optionator@^0.8.1": + "integrity" "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==" + "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz" + "version" "0.8.3" + dependencies: + "deep-is" "~0.1.3" + "fast-levenshtein" "~2.0.6" + "levn" "~0.3.0" + "prelude-ls" "~1.1.2" + "type-check" "~0.3.2" + "word-wrap" "~1.2.3" + +"optionator@^0.9.1": + "integrity" "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==" + "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" + "version" "0.9.1" + dependencies: + "deep-is" "^0.1.3" + "fast-levenshtein" "^2.0.6" + "levn" "^0.4.1" + "prelude-ls" "^1.2.1" + "type-check" "^0.4.0" + "word-wrap" "^1.2.3" + +"ora@^5.4.1": + "integrity" "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==" + "resolved" "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" + "version" "5.4.1" + dependencies: + "bl" "^4.1.0" + "chalk" "^4.1.0" + "cli-cursor" "^3.1.0" + "cli-spinners" "^2.5.0" + "is-interactive" "^1.0.0" + "is-unicode-supported" "^0.1.0" + "log-symbols" "^4.1.0" + "strip-ansi" "^6.0.0" + "wcwidth" "^1.0.1" + +"ora@^6.1.2": + "integrity" "sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==" + "resolved" "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz" + "version" "6.1.2" + dependencies: + "bl" "^5.0.0" + "chalk" "^5.0.0" + "cli-cursor" "^4.0.0" + "cli-spinners" "^2.6.1" + "is-interactive" "^2.0.0" + "is-unicode-supported" "^1.1.0" + "log-symbols" "^5.1.0" + "strip-ansi" "^7.0.1" + "wcwidth" "^1.0.1" + +"ora@6.1.2": + "integrity" "sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==" + "resolved" "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz" + "version" "6.1.2" + dependencies: + "bl" "^5.0.0" + "chalk" "^5.0.0" + "cli-cursor" "^4.0.0" + "cli-spinners" "^2.6.1" + "is-interactive" "^2.0.0" + "is-unicode-supported" "^1.1.0" + "log-symbols" "^5.1.0" + "strip-ansi" "^7.0.1" + "wcwidth" "^1.0.1" + +"os-name@5.0.1": + "integrity" "sha512-0EQpaHUHq7olp2/YFUr+0vZi9tMpDTblHGz+Ch5RntKxiRXOAY0JOz1UlxhSjMSksHvkm13eD6elJj3M8Ht/kw==" + "resolved" "https://registry.npmjs.org/os-name/-/os-name-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "macos-release" "^3.0.1" + "windows-release" "^5.0.1" + +"os-tmpdir@^1.0.0", "os-tmpdir@~1.0.2": + "integrity" "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" + "resolved" "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" + "version" "1.0.2" + +"p-cancelable@^3.0.0": + "integrity" "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==" + "resolved" "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz" + "version" "3.0.0" + +"p-each-series@^2.1.0": + "integrity" "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==" + "resolved" "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz" + "version" "2.2.0" + +"p-finally@^1.0.0": + "integrity" "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" + "resolved" "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + "version" "1.0.0" + +"p-limit@^1.1.0": + "integrity" "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==" + "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" + "version" "1.3.0" + dependencies: + "p-try" "^1.0.0" + +"p-limit@^2.0.0": + "integrity" "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==" + "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" + "version" "2.3.0" + dependencies: + "p-try" "^2.0.0" + +"p-limit@^2.2.0": + "integrity" "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==" + "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" + "version" "2.3.0" + dependencies: + "p-try" "^2.0.0" + +"p-limit@^3.0.2": + "integrity" "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==" + "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "yocto-queue" "^0.1.0" + +"p-locate@^2.0.0": + "integrity" "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==" + "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "p-limit" "^1.1.0" + +"p-locate@^3.0.0": + "integrity" "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==" + "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "p-limit" "^2.0.0" + +"p-locate@^4.1.0": + "integrity" "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==" + "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "p-limit" "^2.2.0" + +"p-locate@^5.0.0": + "integrity" "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==" + "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "p-limit" "^3.0.2" -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== +"p-map@^4.0.0": + "integrity" "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==" + "resolved" "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "aggregate-error" "^3.0.0" + +"p-try@^1.0.0": + "integrity" "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==" + "resolved" "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz" + "version" "1.0.0" -pac-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz#b718f76475a6a5415c2efbe256c1c971c84f635e" - integrity sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ== +"p-try@^2.0.0": + "integrity" "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" + "version" "2.2.0" + +"pac-proxy-agent@^5.0.0": + "integrity" "sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ==" + "resolved" "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz" + "version" "5.0.0" dependencies: "@tootallnate/once" "1" - agent-base "6" - debug "4" - get-uri "3" - http-proxy-agent "^4.0.1" - https-proxy-agent "5" - pac-resolver "^5.0.0" - raw-body "^2.2.0" - socks-proxy-agent "5" - -pac-resolver@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/pac-resolver/-/pac-resolver-5.0.1.tgz#c91efa3a9af9f669104fa2f51102839d01cde8e7" - integrity sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q== - dependencies: - degenerator "^3.0.2" - ip "^1.1.5" - netmask "^2.0.2" - -package-json@^6.3.0: - version "6.5.0" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" - integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== - dependencies: - got "^9.6.0" - registry-auth-token "^4.0.0" - registry-url "^5.0.0" - semver "^6.2.0" - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-json@5.2.0, parse-json@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + "agent-base" "6" + "debug" "4" + "get-uri" "3" + "http-proxy-agent" "^4.0.1" + "https-proxy-agent" "5" + "pac-resolver" "^5.0.0" + "raw-body" "^2.2.0" + "socks-proxy-agent" "5" + +"pac-resolver@^5.0.0": + "integrity" "sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q==" + "resolved" "https://registry.npmjs.org/pac-resolver/-/pac-resolver-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "degenerator" "^3.0.2" + "ip" "^1.1.5" + "netmask" "^2.0.2" + +"package-json@^8.1.0": + "integrity" "sha512-hySwcV8RAWeAfPsXb9/HGSPn8lwDnv6fabH+obUZKX169QknRkRhPxd1yMubpKDskLFATkl3jHpNtVtDPFA0Wg==" + "resolved" "https://registry.npmjs.org/package-json/-/package-json-8.1.0.tgz" + "version" "8.1.0" + dependencies: + "got" "^12.1.0" + "registry-auth-token" "^5.0.1" + "registry-url" "^6.0.0" + "semver" "^7.3.7" + +"parent-module@^1.0.0": + "integrity" "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==" + "resolved" "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "callsites" "^3.0.0" + +"parse-json@^4.0.0": + "integrity" "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==" + "resolved" "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "error-ex" "^1.3.1" + "json-parse-better-errors" "^1.0.1" + +"parse-json@^5.0.0": + "integrity" "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==" + "resolved" "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz" + "version" "5.1.0" dependencies: "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - -parse-node-version@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b" - integrity sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA== - -parse-path@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.4.tgz#4bf424e6b743fb080831f03b536af9fc43f0ffea" - integrity sha512-Z2lWUis7jlmXC1jeOG9giRO2+FsuyNipeQ43HAjqAZjwSe3SEf+q/84FGPHoso3kyntbxa4c4i77t3m6fGf8cw== - dependencies: - is-ssh "^1.3.0" - protocols "^1.4.0" - qs "^6.9.4" - query-string "^6.13.8" - -parse-url@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-6.0.5.tgz#4acab8982cef1846a0f8675fa686cef24b2f6f9b" - integrity sha512-e35AeLTSIlkw/5GFq70IN7po8fmDUjpDPY1rIK+VubRfsUvBonjQ+PBZG+vWMACnQSmNlvl524IucoDmcioMxA== - dependencies: - is-ssh "^1.3.0" - normalize-url "^6.1.0" - parse-path "^4.0.0" - protocols "^1.4.0" - -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== - dependencies: - pify "^3.0.0" - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picomatch@^2.0.4, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== - -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pirates@^4.0.1, pirates@^4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== - -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -pkg-dir@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760" - integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== - dependencies: - find-up "^5.0.0" - -please-upgrade-node@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" - integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== - dependencies: - semver-compare "^1.0.0" - -plist@^3.0.1, plist@^3.0.5: - version "3.0.6" - resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.6.tgz#7cfb68a856a7834bca6dbfe3218eb9c7740145d3" - integrity sha512-WiIVYyrp8TD4w8yCvyeIr+lkmrGRd5u0VbRnU+tP/aRLxP/YadJUYOMZJ/6hIa3oUyVCsycXvtNRgd5XBJIbiA== - dependencies: - base64-js "^1.5.1" - xmlbuilder "^15.1.1" - -plugin-error@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/plugin-error/-/plugin-error-0.1.2.tgz#3b9bb3335ccf00f425e07437e19276967da47ace" - integrity sha512-WzZHcm4+GO34sjFMxQMqZbsz3xiNEgonCskQ9v+IroMmYgk/tas8dG+Hr2D6IbRPybZ12oWpzE/w3cGJ6FJzOw== - dependencies: - ansi-cyan "^0.1.1" - ansi-red "^0.1.1" - arr-diff "^1.0.1" - arr-union "^2.0.1" - extend-shallow "^1.1.2" - -pod-install@^0.1.0: - version "0.1.38" - resolved "https://registry.yarnpkg.com/pod-install/-/pod-install-0.1.38.tgz#1c16a800a5fc1abea0cafcc0e190f376368c76ab" - integrity sha512-NeDWGigjJRriOIKBOvpW2/tK2tYLfyUT7ia6C6L+oarCAhBNP+IGODWdU+GEAqvfsseqOApcFclpXAJTL0UPzA== - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - -prepend-file@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/prepend-file/-/prepend-file-2.0.1.tgz#6a624b474a65ab1f87dc24d1757d5a6d989eb2db" - integrity sha512-0hXWjmOpz5YBIk6xujS0lYtCw6IAA0wCR3fw49UGTLc3E9BIhcxgqdMa8rzGvrtt2F8wFiGP42oEpQ8fo9zhRw== - dependencies: - temp-write "^4.0.0" - -prepend-http@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" - integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - -prettier@^2.0.2, prettier@^2.0.5: - version "2.8.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc" - integrity sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg== - -pretty-format@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" - integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== - dependencies: - "@jest/types" "^24.9.0" - ansi-regex "^4.0.0" - ansi-styles "^3.2.0" - react-is "^16.8.4" - -pretty-format@^25.1.0, pretty-format@^25.2.0: - version "25.5.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a" - integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ== - dependencies: - "@jest/types" "^25.5.0" - ansi-regex "^5.0.0" - ansi-styles "^4.0.0" - react-is "^16.12.0" - -pretty-format@^26.0.0, pretty-format@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" - integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== + "error-ex" "^1.3.1" + "json-parse-even-better-errors" "^2.3.0" + "lines-and-columns" "^1.1.6" + +"parse-path@^7.0.0": + "integrity" "sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog==" + "resolved" "https://registry.npmjs.org/parse-path/-/parse-path-7.0.0.tgz" + "version" "7.0.0" + dependencies: + "protocols" "^2.0.0" + +"parse-url@^8.1.0": + "integrity" "sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w==" + "resolved" "https://registry.npmjs.org/parse-url/-/parse-url-8.1.0.tgz" + "version" "8.1.0" + dependencies: + "parse-path" "^7.0.0" + +"parse5@6.0.1": + "integrity" "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + "resolved" "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz" + "version" "6.0.1" + +"parseurl@~1.3.3": + "integrity" "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "resolved" "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + "version" "1.3.3" + +"pascalcase@^0.1.1": + "integrity" "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" + "resolved" "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz" + "version" "0.1.1" + +"path-exists@^3.0.0": + "integrity" "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" + "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" + "version" "3.0.0" + +"path-exists@^4.0.0": + "integrity" "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + "version" "4.0.0" + +"path-is-absolute@^1.0.0": + "integrity" "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + "version" "1.0.1" + +"path-key@^2.0.0", "path-key@^2.0.1": + "integrity" "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==" + "resolved" "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" + "version" "2.0.1" + +"path-key@^3.0.0", "path-key@^3.1.0": + "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + "version" "3.1.1" + +"path-key@^4.0.0": + "integrity" "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==" + "resolved" "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" + "version" "4.0.0" + +"path-parse@^1.0.6": + "integrity" "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + "resolved" "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" + "version" "1.0.7" + +"path-type@^3.0.0": + "integrity" "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==" + "resolved" "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "pify" "^3.0.0" + +"path-type@^4.0.0": + "integrity" "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + "resolved" "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" + "version" "4.0.0" + +"picocolors@^1.0.0": + "integrity" "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "resolved" "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" + "version" "1.0.0" + +"picomatch@^2.0.4", "picomatch@^2.2.3", "picomatch@^2.3.1": + "integrity" "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + "version" "2.3.1" + +"pify@^2.3.0": + "integrity" "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" + "resolved" "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" + "version" "2.3.0" + +"pify@^3.0.0": + "integrity" "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" + "resolved" "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" + "version" "3.0.0" + +"pify@^4.0.1": + "integrity" "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" + "resolved" "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" + "version" "4.0.1" + +"pirates@^4.0.1", "pirates@^4.0.5": + "integrity" "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==" + "resolved" "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz" + "version" "4.0.5" + +"pkg-dir@^3.0.0": + "integrity" "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==" + "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "find-up" "^3.0.0" + +"pkg-dir@^4.2.0": + "integrity" "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==" + "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" + "version" "4.2.0" + dependencies: + "find-up" "^4.0.0" + +"pkg-dir@^5.0.0": + "integrity" "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==" + "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "find-up" "^5.0.0" + +"please-upgrade-node@^3.2.0": + "integrity" "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==" + "resolved" "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz" + "version" "3.2.0" + dependencies: + "semver-compare" "^1.0.0" + +"pod-install@^0.1.0": + "integrity" "sha512-0mkeQ9xobmFXmquA0fLl7/0C3fw+a5iwDN8Rqggmk2xalIdcXkxOimwr+Yj9N7bRnDZfmuMpWBVsot9mFaHnlQ==" + "resolved" "https://registry.npmjs.org/pod-install/-/pod-install-0.1.14.tgz" + "version" "0.1.14" + +"posix-character-classes@^0.1.0": + "integrity" "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" + "resolved" "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz" + "version" "0.1.1" + +"prelude-ls@^1.2.1": + "integrity" "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" + "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" + "version" "1.2.1" + +"prelude-ls@~1.1.2": + "integrity" "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" + "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz" + "version" "1.1.2" + +"prettier-linter-helpers@^1.0.0": + "integrity" "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==" + "resolved" "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "fast-diff" "^1.1.2" + +"prettier@^2.0.2", "prettier@^2.0.5", "prettier@>= 1.13.0", "prettier@>=1.13.0": + "integrity" "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==" + "resolved" "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz" + "version" "2.2.1" + +"pretty-format@^26.0.0", "pretty-format@^26.5.2", "pretty-format@^26.6.2": + "integrity" "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==" + "resolved" "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz" + "version" "26.6.2" dependencies: "@jest/types" "^26.6.2" - ansi-regex "^5.0.0" - ansi-styles "^4.0.0" - react-is "^17.0.1" - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - -promise.allsettled@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/promise.allsettled/-/promise.allsettled-1.0.5.tgz#2443f3d4b2aa8dfa560f6ac2aa6c4ea999d75f53" - integrity sha512-tVDqeZPoBC0SlzJHzWGZ2NKAguVq2oiYj7gbggbiTvH2itHohijTp7njOUA0aQ/nl+0lr/r6egmhoYu63UZ/pQ== - dependencies: - array.prototype.map "^1.0.4" - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - iterate-value "^1.0.2" - -promise@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== - dependencies: - asap "~2.0.3" - -promise@^8.0.3: - version "8.3.0" - resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" - integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== - dependencies: - asap "~2.0.6" - -prompts@^2.0.1, prompts@^2.4.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: - version "15.8.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" - integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.13.1" - -protocols@^1.4.0: - version "1.4.8" - resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" - integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== - -protocols@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" - integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== - -proxy-agent@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-5.0.0.tgz#d31405c10d6e8431fde96cba7a0c027ce01d633b" - integrity sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g== - dependencies: - agent-base "^6.0.0" - debug "4" - http-proxy-agent "^4.0.0" - https-proxy-agent "^5.0.0" - lru-cache "^5.1.1" - pac-proxy-agent "^5.0.0" - proxy-from-env "^1.0.0" - socks-proxy-agent "^5.0.0" - -proxy-from-env@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== - -psl@^1.1.33: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -punycode@^2.1.0, punycode@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -pupa@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" - integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== - dependencies: - escape-goat "^2.0.0" - -q@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" - integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== - -qs@^6.9.4: - version "6.11.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" - integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== - dependencies: - side-channel "^1.0.4" - -query-string@^6.13.8: - version "6.14.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a" - integrity sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" - -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -quick-lru@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" - integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@^2.2.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" - integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== - dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" - -rc@1.2.8, rc@^1.2.8: - version "1.2.8" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" - integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== - dependencies: - deep-extend "^0.6.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -react-devtools-core@^4.6.0: - version "4.27.1" - resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.27.1.tgz#167aa174383c65786cbb7e965a5b39c702f0a2d3" - integrity sha512-qXhcxxDWiFmFAOq48jts9YQYe1+wVoUXzJTlY4jbaATzyio6dd6CUGu3dXBhREeVgpZ+y4kg6vFJzIOZh6vY2w== - dependencies: - shell-quote "^1.6.1" - ws "^7" - -react-is@^16.12.0, react-is@^16.13.1, react-is@^16.8.4: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - -react-native-builder-bob@^0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/react-native-builder-bob/-/react-native-builder-bob-0.17.1.tgz#4bb12f721acf9417d62065232d42e0201b673315" - integrity sha512-vO3PYa/vgIqUFOfXZWNEsqQfjJMiNJAfJ0Sq4ovZa4zb/bnMKF4vDbARo3uhA8eg/wA0h4W6BlceY/Kjo74+6g== - dependencies: - "@babel/core" "^7.12.10" - "@babel/plugin-proposal-class-properties" "^7.12.1" - "@babel/preset-env" "^7.12.11" - "@babel/preset-flow" "^7.12.1" - "@babel/preset-react" "^7.12.10" - "@babel/preset-typescript" "^7.12.7" - browserslist "^4.16.0" - chalk "^4.1.0" - cosmiconfig "^7.0.0" - cross-spawn "^7.0.3" - dedent "^0.7.0" - del "^6.0.0" - ejs "^3.1.5" - fs-extra "^9.0.1" - github-username "^5.0.1" - glob "^7.1.6" - is-git-dirty "^2.0.1" - json5 "^2.1.3" - prompts "^2.4.0" - validate-npm-package-name "^3.0.0" - which "^2.0.2" - yargs "^16.2.0" + "ansi-regex" "^5.0.0" + "ansi-styles" "^4.0.0" + "react-is" "^17.0.1" + +"process-nextick-args@~2.0.0": + "integrity" "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "resolved" "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" + "version" "2.0.1" + +"progress@^2.0.0": + "integrity" "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + "resolved" "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" + "version" "2.0.3" + +"promise.allsettled@1.0.5": + "integrity" "sha512-tVDqeZPoBC0SlzJHzWGZ2NKAguVq2oiYj7gbggbiTvH2itHohijTp7njOUA0aQ/nl+0lr/r6egmhoYu63UZ/pQ==" + "resolved" "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.5.tgz" + "version" "1.0.5" + dependencies: + "array.prototype.map" "^1.0.4" + "call-bind" "^1.0.2" + "define-properties" "^1.1.3" + "es-abstract" "^1.19.1" + "get-intrinsic" "^1.1.1" + "iterate-value" "^1.0.2" + +"promise@^8.0.3": + "integrity" "sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==" + "resolved" "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz" + "version" "8.1.0" + dependencies: + "asap" "~2.0.6" + +"prompts@^2.0.1", "prompts@^2.4.0", "prompts@^2.4.2": + "integrity" "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==" + "resolved" "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" + "version" "2.4.2" + dependencies: + "kleur" "^3.0.3" + "sisteransi" "^1.0.5" + +"prop-types@^15.7.2": + "integrity" "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==" + "resolved" "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz" + "version" "15.7.2" + dependencies: + "loose-envify" "^1.4.0" + "object-assign" "^4.1.1" + "react-is" "^16.8.1" + +"proto-list@~1.2.1": + "integrity" "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" + "resolved" "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" + "version" "1.2.4" + +"protocols@^2.0.0", "protocols@^2.0.1": + "integrity" "sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==" + "resolved" "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz" + "version" "2.0.1" + +"proxy-agent@5.0.0": + "integrity" "sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g==" + "resolved" "https://registry.npmjs.org/proxy-agent/-/proxy-agent-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "agent-base" "^6.0.0" + "debug" "4" + "http-proxy-agent" "^4.0.0" + "https-proxy-agent" "^5.0.0" + "lru-cache" "^5.1.1" + "pac-proxy-agent" "^5.0.0" + "proxy-from-env" "^1.0.0" + "socks-proxy-agent" "^5.0.0" + +"proxy-from-env@^1.0.0": + "integrity" "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + "resolved" "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" + "version" "1.1.0" + +"psl@^1.1.33": + "integrity" "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + "resolved" "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz" + "version" "1.9.0" + +"pump@^3.0.0": + "integrity" "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==" + "resolved" "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "end-of-stream" "^1.1.0" + "once" "^1.3.1" + +"punycode@^2.1.0", "punycode@^2.1.1": + "integrity" "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz" + "version" "2.1.1" + +"pupa@^3.1.0": + "integrity" "sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==" + "resolved" "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "escape-goat" "^4.0.0" + +"q@^1.5.1": + "integrity" "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" + "resolved" "https://registry.npmjs.org/q/-/q-1.5.1.tgz" + "version" "1.5.1" + +"querystringify@^2.1.1": + "integrity" "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + "resolved" "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz" + "version" "2.2.0" + +"queue-microtask@^1.2.2": + "integrity" "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + "resolved" "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + "version" "1.2.3" + +"quick-lru@^4.0.1": + "integrity" "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==" + "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz" + "version" "4.0.1" + +"quick-lru@^5.1.1": + "integrity" "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" + "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" + "version" "5.1.1" + +"range-parser@~1.2.1": + "integrity" "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + "resolved" "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + "version" "1.2.1" + +"raw-body@^2.2.0": + "integrity" "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==" + "resolved" "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" + "version" "2.5.1" + dependencies: + "bytes" "3.1.2" + "http-errors" "2.0.0" + "iconv-lite" "0.4.24" + "unpipe" "1.0.0" + +"rc@1.2.8": + "integrity" "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==" + "resolved" "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" + "version" "1.2.8" + dependencies: + "deep-extend" "^0.6.0" + "ini" "~1.3.0" + "minimist" "^1.2.0" + "strip-json-comments" "~2.0.1" + +"react-devtools-core@4.24.0": + "integrity" "sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg==" + "resolved" "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.24.0.tgz" + "version" "4.24.0" + dependencies: + "shell-quote" "^1.6.1" + "ws" "^7" + +"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", "react-is@^17.0.1": + "integrity" "sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==" + "resolved" "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz" + "version" "17.0.1" + +"react-is@^16.8.1": + "integrity" "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + "resolved" "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" + "version" "16.13.1" + +"react-native-builder-bob@^0.20.1": + "integrity" "sha512-8lTEXe4DqCT4Q3C3AGPI/xrT637pkyfAdeX7SayBP5JbfuPZvX2KCz/RjbRwLN5ecr4FPRcPg5Uhn2U7D9K6rA==" + "resolved" "https://registry.npmjs.org/react-native-builder-bob/-/react-native-builder-bob-0.20.1.tgz" + "version" "0.20.1" + dependencies: + "@babel/core" "^7.18.5" + "@babel/plugin-proposal-class-properties" "^7.17.12" + "@babel/preset-env" "^7.18.2" + "@babel/preset-flow" "^7.17.12" + "@babel/preset-react" "^7.17.12" + "@babel/preset-typescript" "^7.17.12" + "browserslist" "^4.20.4" + "cosmiconfig" "^7.0.1" + "cross-spawn" "^7.0.3" + "dedent" "^0.7.0" + "del" "^6.1.1" + "fs-extra" "^10.1.0" + "glob" "^8.0.3" + "is-git-dirty" "^2.0.1" + "json5" "^2.2.1" + "kleur" "^4.1.4" + "prompts" "^2.4.2" + "which" "^2.0.2" + "yargs" "^17.5.1" optionalDependencies: - jetifier "^1.6.6" - -react-native@0.63.4: - version "0.63.4" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.63.4.tgz#2210fdd404c94a5fa6b423c6de86f8e48810ec36" - integrity sha512-I4kM8kYO2mWEYUFITMcpRulcy4/jd+j9T6PbIzR0FuMcz/xwd+JwHoLPa1HmCesvR1RDOw9o4D+OFLwuXXfmGw== - dependencies: - "@babel/runtime" "^7.0.0" - "@react-native-community/cli" "^4.10.0" - "@react-native-community/cli-platform-android" "^4.10.0" - "@react-native-community/cli-platform-ios" "^4.10.0" - abort-controller "^3.0.0" - anser "^1.4.9" - base64-js "^1.1.2" - event-target-shim "^5.0.1" - fbjs "^1.0.0" - fbjs-scripts "^1.1.0" - hermes-engine "~0.5.0" - invariant "^2.2.4" - jsc-android "^245459.0.0" - metro-babel-register "0.59.0" - metro-react-native-babel-transformer "0.59.0" - metro-source-map "0.59.0" - nullthrows "^1.1.1" - pretty-format "^24.9.0" - promise "^8.0.3" - prop-types "^15.7.2" - react-devtools-core "^4.6.0" - react-refresh "^0.4.0" - regenerator-runtime "^0.13.2" - scheduler "0.19.1" - stacktrace-parser "^0.1.3" - use-subscription "^1.0.0" - whatwg-fetch "^3.0.0" - -react-refresh@^0.4.0: - version "0.4.3" - resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.3.tgz#966f1750c191672e76e16c2efa569150cc73ab53" - integrity sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA== - -react@16.13.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e" - integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w== - dependencies: - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.2" - -read-pkg-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" - integrity sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw== - dependencies: - find-up "^2.0.0" - read-pkg "^3.0.0" - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" - integrity sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA== - dependencies: - load-json-file "^4.0.0" - normalize-package-data "^2.3.2" - path-type "^3.0.0" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== + "jetifier" "^2.0.0" + +"react-native-codegen@^0.70.6": + "integrity" "sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw==" + "resolved" "https://registry.npmjs.org/react-native-codegen/-/react-native-codegen-0.70.6.tgz" + "version" "0.70.6" + dependencies: + "@babel/parser" "^7.14.0" + "flow-parser" "^0.121.0" + "jscodeshift" "^0.13.1" + "nullthrows" "^1.1.1" + +"react-native-gradle-plugin@^0.70.3": + "integrity" "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==" + "resolved" "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz" + "version" "0.70.3" + +"react-native@^0.70.4": + "integrity" "sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA==" + "resolved" "https://registry.npmjs.org/react-native/-/react-native-0.70.4.tgz" + "version" "0.70.4" + dependencies: + "@jest/create-cache-key-function" "^29.0.3" + "@react-native-community/cli" "9.2.1" + "@react-native-community/cli-platform-android" "9.2.1" + "@react-native-community/cli-platform-ios" "9.2.1" + "@react-native/assets" "1.0.0" + "@react-native/normalize-color" "2.0.0" + "@react-native/polyfills" "2.0.0" + "abort-controller" "^3.0.0" + "anser" "^1.4.9" + "base64-js" "^1.1.2" + "event-target-shim" "^5.0.1" + "invariant" "^2.2.4" + "jsc-android" "^250230.2.1" + "memoize-one" "^5.0.0" + "metro-react-native-babel-transformer" "0.72.3" + "metro-runtime" "0.72.3" + "metro-source-map" "0.72.3" + "mkdirp" "^0.5.1" + "nullthrows" "^1.1.1" + "pretty-format" "^26.5.2" + "promise" "^8.0.3" + "react-devtools-core" "4.24.0" + "react-native-codegen" "^0.70.6" + "react-native-gradle-plugin" "^0.70.3" + "react-refresh" "^0.4.0" + "react-shallow-renderer" "^16.15.0" + "regenerator-runtime" "^0.13.2" + "scheduler" "^0.22.0" + "stacktrace-parser" "^0.1.3" + "use-sync-external-store" "^1.0.0" + "whatwg-fetch" "^3.0.0" + "ws" "^6.1.4" + +"react-refresh@^0.4.0": + "integrity" "sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA==" + "resolved" "https://registry.npmjs.org/react-refresh/-/react-refresh-0.4.3.tgz" + "version" "0.4.3" + +"react-shallow-renderer@^16.15.0": + "integrity" "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==" + "resolved" "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz" + "version" "16.15.0" + dependencies: + "object-assign" "^4.1.1" + "react-is" "^16.12.0 || ^17.0.0 || ^18.0.0" + +"react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^18.2.0", "react@18.1.0": + "integrity" "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==" + "resolved" "https://registry.npmjs.org/react/-/react-18.2.0.tgz" + "version" "18.2.0" + dependencies: + "loose-envify" "^1.1.0" + +"read-pkg-up@^3.0.0": + "integrity" "sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==" + "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "find-up" "^2.0.0" + "read-pkg" "^3.0.0" + +"read-pkg-up@^7.0.1": + "integrity" "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==" + "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz" + "version" "7.0.1" + dependencies: + "find-up" "^4.1.0" + "read-pkg" "^5.2.0" + "type-fest" "^0.8.1" + +"read-pkg@^3.0.0": + "integrity" "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==" + "resolved" "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "load-json-file" "^4.0.0" + "normalize-package-data" "^2.3.2" + "path-type" "^3.0.0" + +"read-pkg@^5.2.0": + "integrity" "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==" + "resolved" "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" + "version" "5.2.0" dependencies: "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -readable-stream@1.1.x: - version "1.1.14" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" - integrity sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "0.0.1" - string_decoder "~0.10.x" - -readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.4.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readable-stream@^2.0.1, readable-stream@^2.2.2, readable-stream@~2.3.6: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - -redent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" - integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== - dependencies: - indent-string "^4.0.0" - strip-indent "^3.0.0" - -regenerate-unicode-properties@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" - integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== - dependencies: - regenerate "^1.4.2" - -regenerate@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2: - version "0.13.11" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - -regenerator-transform@^0.15.1: - version "0.15.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.1.tgz#f6c4e99fc1b4591f780db2586328e4d9a9d8dc56" - integrity sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg== + "normalize-package-data" "^2.5.0" + "parse-json" "^5.0.0" + "type-fest" "^0.6.0" + +"readable-stream@^3.0.0", "readable-stream@^3.0.2", "readable-stream@^3.4.0", "readable-stream@3": + "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==" + "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" + "version" "3.6.0" + dependencies: + "inherits" "^2.0.3" + "string_decoder" "^1.1.1" + "util-deprecate" "^1.0.1" + +"readable-stream@~2.3.6": + "integrity" "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==" + "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz" + "version" "2.3.7" + dependencies: + "core-util-is" "~1.0.0" + "inherits" "~2.0.3" + "isarray" "~1.0.0" + "process-nextick-args" "~2.0.0" + "safe-buffer" "~5.1.1" + "string_decoder" "~1.1.1" + "util-deprecate" "~1.0.1" + +"readable-stream@1.1.x": + "integrity" "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==" + "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" + "version" "1.1.14" + dependencies: + "core-util-is" "~1.0.0" + "inherits" "~2.0.1" + "isarray" "0.0.1" + "string_decoder" "~0.10.x" + +"readline@^1.3.0": + "integrity" "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==" + "resolved" "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz" + "version" "1.3.0" + +"recast@^0.20.4": + "integrity" "sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ==" + "resolved" "https://registry.npmjs.org/recast/-/recast-0.20.5.tgz" + "version" "0.20.5" + dependencies: + "ast-types" "0.14.2" + "esprima" "~4.0.0" + "source-map" "~0.6.1" + "tslib" "^2.0.1" + +"rechoir@^0.6.2": + "integrity" "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==" + "resolved" "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz" + "version" "0.6.2" + dependencies: + "resolve" "^1.1.6" + +"redent@^3.0.0": + "integrity" "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==" + "resolved" "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "indent-string" "^4.0.0" + "strip-indent" "^3.0.0" + +"regenerate-unicode-properties@^10.1.0": + "integrity" "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==" + "resolved" "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz" + "version" "10.1.0" + dependencies: + "regenerate" "^1.4.2" + +"regenerate@^1.4.2": + "integrity" "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + "resolved" "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz" + "version" "1.4.2" + +"regenerator-runtime@^0.13.2", "regenerator-runtime@^0.13.4": + "integrity" "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" + "resolved" "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz" + "version" "0.13.7" + +"regenerator-transform@^0.15.0": + "integrity" "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==" + "resolved" "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz" + "version" "0.15.0" dependencies: "@babel/runtime" "^7.8.4" -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== +"regex-not@^1.0.0", "regex-not@^1.0.2": + "integrity" "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==" + "resolved" "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz" + "version" "1.0.2" dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" + "extend-shallow" "^3.0.2" + "safe-regex" "^1.1.0" -regexp.prototype.flags@^1.4.3: - version "1.4.3" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== +"regexp.prototype.flags@^1.3.0", "regexp.prototype.flags@^1.4.3": + "integrity" "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==" + "resolved" "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" + "version" "1.4.3" dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" + "call-bind" "^1.0.2" + "define-properties" "^1.1.3" + "functions-have-names" "^1.2.2" -regexpp@^3.0.0, regexpp@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== +"regexpp@^3.0.0", "regexpp@^3.1.0": + "integrity" "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==" + "resolved" "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz" + "version" "3.1.0" -regexpu-core@^5.2.1: - version "5.2.2" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.2.tgz#3e4e5d12103b64748711c3aad69934d7718e75fc" - integrity sha512-T0+1Zp2wjF/juXMrMxHxidqGYn8U4R+zleSJhX9tQ1PUsS8a9UtYfbsF9LdiVgNX3kiX8RNaKM42nfSgvFJjmw== +"regexpu-core@^5.1.0": + "integrity" "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==" + "resolved" "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz" + "version" "5.2.1" dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.1.0" - regjsgen "^0.7.1" - regjsparser "^0.9.1" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" + "regenerate" "^1.4.2" + "regenerate-unicode-properties" "^10.1.0" + "regjsgen" "^0.7.1" + "regjsparser" "^0.9.1" + "unicode-match-property-ecmascript" "^2.0.0" + "unicode-match-property-value-ecmascript" "^2.0.0" -registry-auth-token@^4.0.0: - version "4.2.2" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.2.tgz#f02d49c3668884612ca031419491a13539e21fac" - integrity sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg== +"registry-auth-token@^5.0.1": + "integrity" "sha512-UfxVOj8seK1yaIOiieV4FIP01vfBDLsY0H9sQzi9EbbUdJiuuBjJgLa1DpImXMNPnVkBD4eVxTEXcrZA6kfpJA==" + "resolved" "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.1.tgz" + "version" "5.0.1" dependencies: - rc "1.2.8" + "@pnpm/npm-conf" "^1.0.4" -registry-url@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" - integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== +"registry-url@^6.0.0": + "integrity" "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==" + "resolved" "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz" + "version" "6.0.1" dependencies: - rc "^1.2.8" + "rc" "1.2.8" -regjsgen@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.7.1.tgz#ee5ef30e18d3f09b7c369b76e7c2373ed25546f6" - integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== +"regjsgen@^0.7.1": + "integrity" "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==" + "resolved" "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz" + "version" "0.7.1" -regjsparser@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" - integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== +"regjsparser@^0.9.1": + "integrity" "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==" + "resolved" "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz" + "version" "0.9.1" dependencies: - jsesc "~0.5.0" + "jsesc" "~0.5.0" -release-it@^14.2.2: - version "14.14.3" - resolved "https://registry.yarnpkg.com/release-it/-/release-it-14.14.3.tgz#f398030bc07d91bf3616b680dcb4140e1023dd9c" - integrity sha512-CU3ySDOzkcdpaJmzKG7QXhimWVOkh9dVqVMr5tBWXhAd5oWvUdH8Lo4Tq37eYOhcVLxoukRR2vrY8mt7wSULSw== +"release-it@^15.4.1", "release-it@^15.5.0": + "integrity" "sha512-/pQo/PwEXAWRBgVGLE+3IQ3hUoeiDZMGAo/Egin1envCyLyjzrU7+0P2w4iZ1Xv5OxhC2AcaPaN5eY1ql47cBA==" + "resolved" "https://registry.npmjs.org/release-it/-/release-it-15.5.0.tgz" + "version" "15.5.0" dependencies: "@iarna/toml" "2.2.5" - "@octokit/rest" "18.12.0" - async-retry "1.3.3" - chalk "4.1.2" - cosmiconfig "7.0.1" - debug "4.3.4" - execa "5.1.1" - form-data "4.0.0" - git-url-parse "11.6.0" - globby "11.0.4" - got "9.6.0" - import-cwd "3.0.0" - inquirer "8.2.0" - is-ci "3.0.1" - lodash "4.17.21" - mime-types "2.1.35" - new-github-release-url "1.0.0" - open "7.4.2" - ora "5.4.1" - os-name "4.0.1" - parse-json "5.2.0" - promise.allsettled "1.0.5" - proxy-agent "5.0.0" - semver "7.3.5" - shelljs "0.8.5" - update-notifier "5.1.0" - url-join "4.0.1" - uuid "8.3.2" - wildcard-match "5.1.2" - yaml "1.10.2" - yargs-parser "20.2.9" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== - -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - -resolve-from@5.0.0, resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-global@1.0.0, resolve-global@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/resolve-global/-/resolve-global-1.0.0.tgz#a2a79df4af2ca3f49bf77ef9ddacd322dad19255" - integrity sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw== - dependencies: - global-dirs "^0.1.1" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.18.1, resolve@^1.5.0: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== - dependencies: - is-core-module "^2.9.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -resolve@^2.0.0-next.3: - version "2.0.0-next.4" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" - integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== - dependencies: - is-core-module "^2.9.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -responselike@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" - integrity sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ== - dependencies: - lowercase-keys "^1.0.0" - -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - integrity sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q== - dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" - -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -retry@0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^2.5.4: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.0, rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rimraf@~2.2.6: - version "2.2.8" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" - integrity sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg== - -rsvp@^4.8.4: - version "4.8.5" - resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" - integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== - -run-async@^2.2.0, run-async@^2.4.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" - integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" - integrity sha512-3xPNZGW93oCjiO7PtKxRK6iOVYBWBvtf9QHDfU23Oc+dLIQmAV//UnyXV/yihv81VS/UqoQPk4NegS8EFi55Hg== - dependencies: - rx-lite "*" - -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - integrity sha512-Cun9QucwK6MIrp3mry/Y7hqD1oFqTYLQ4pGxaHTjIdaFDWRGGLikqp6u8LcWJnzpoALg9hap+JGk8sFIUuEGNA== - -rxjs@^7.2.0: - version "7.8.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.0.tgz#90a938862a82888ff4c7359811a595e14e1e09a4" - integrity sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg== + "@octokit/rest" "19.0.4" + "async-retry" "1.3.3" + "chalk" "5.0.1" + "cosmiconfig" "7.0.1" + "execa" "6.1.0" + "form-data" "4.0.0" + "git-url-parse" "13.1.0" + "globby" "13.1.2" + "got" "12.5.1" + "inquirer" "9.1.2" + "is-ci" "3.0.1" + "lodash" "4.17.21" + "mime-types" "2.1.35" + "new-github-release-url" "2.0.0" + "node-fetch" "3.2.10" + "open" "8.4.0" + "ora" "6.1.2" + "os-name" "5.0.1" + "promise.allsettled" "1.0.5" + "proxy-agent" "5.0.0" + "semver" "7.3.7" + "shelljs" "0.8.5" + "update-notifier" "6.0.2" + "url-join" "5.0.0" + "wildcard-match" "5.1.2" + "yargs-parser" "21.1.1" + +"remove-trailing-separator@^1.0.1": + "integrity" "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + "resolved" "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz" + "version" "1.1.0" + +"repeat-element@^1.1.2": + "integrity" "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" + "resolved" "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz" + "version" "1.1.3" + +"repeat-string@^1.6.1": + "integrity" "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + "resolved" "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" + "version" "1.6.1" + +"require-directory@^2.1.1": + "integrity" "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + "version" "2.1.1" + +"require-from-string@^2.0.2": + "integrity" "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "resolved" "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" + "version" "2.0.2" + +"require-main-filename@^2.0.0": + "integrity" "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + "resolved" "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" + "version" "2.0.0" + +"requires-port@^1.0.0": + "integrity" "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + "resolved" "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" + "version" "1.0.0" + +"resolve-alpn@^1.2.0": + "integrity" "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + "resolved" "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" + "version" "1.2.1" + +"resolve-cwd@^3.0.0": + "integrity" "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==" + "resolved" "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "resolve-from" "^5.0.0" + +"resolve-from@^3.0.0": + "integrity" "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==" + "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" + "version" "3.0.0" + +"resolve-from@^4.0.0": + "integrity" "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" + "version" "4.0.0" + +"resolve-from@^5.0.0", "resolve-from@5.0.0": + "integrity" "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" + "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" + "version" "5.0.0" + +"resolve-global@^1.0.0", "resolve-global@1.0.0": + "integrity" "sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==" + "resolved" "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "global-dirs" "^0.1.1" + +"resolve-url@^0.2.1": + "integrity" "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" + "resolved" "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz" + "version" "0.2.1" + +"resolve@^1.1.6", "resolve@^1.10.0", "resolve@^1.12.0", "resolve@^1.14.2", "resolve@^1.17.0", "resolve@^1.18.1": + "integrity" "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==" + "resolved" "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz" + "version" "1.19.0" + dependencies: + "is-core-module" "^2.1.0" + "path-parse" "^1.0.6" + +"responselike@^3.0.0": + "integrity" "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==" + "resolved" "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "lowercase-keys" "^3.0.0" + +"restore-cursor@^3.1.0": + "integrity" "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==" + "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "onetime" "^5.1.0" + "signal-exit" "^3.0.2" + +"restore-cursor@^4.0.0": + "integrity" "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==" + "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "onetime" "^5.1.0" + "signal-exit" "^3.0.2" + +"ret@~0.1.10": + "integrity" "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + "resolved" "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz" + "version" "0.1.15" + +"retry@0.13.1": + "integrity" "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" + "resolved" "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz" + "version" "0.13.1" + +"reusify@^1.0.4": + "integrity" "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + "resolved" "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" + "version" "1.0.4" + +"rimraf@^2.5.4": + "integrity" "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==" + "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz" + "version" "2.7.1" + dependencies: + "glob" "^7.1.3" + +"rimraf@^3.0.0", "rimraf@^3.0.2": + "integrity" "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" + "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "glob" "^7.1.3" + +"rimraf@~2.2.6": + "integrity" "sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg==" + "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz" + "version" "2.2.8" + +"rimraf@~2.6.2": + "integrity" "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==" + "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz" + "version" "2.6.3" + dependencies: + "glob" "^7.1.3" + +"rsvp@^4.8.4": + "integrity" "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==" + "resolved" "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz" + "version" "4.8.5" + +"run-async@^2.4.0": + "integrity" "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==" + "resolved" "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" + "version" "2.4.1" + +"run-parallel@^1.1.9": + "integrity" "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==" + "resolved" "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" + "version" "1.2.0" + dependencies: + "queue-microtask" "^1.2.2" + +"rxjs@^7.5.6": + "integrity" "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==" + "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz" + "version" "7.5.7" dependencies: - tslib "^2.1.0" - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + "tslib" "^2.1.0" + +"safe-buffer@~5.1.0", "safe-buffer@~5.1.1", "safe-buffer@5.1.2": + "integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + "version" "5.1.2" + +"safe-buffer@~5.2.0": + "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + "version" "5.2.1" -safe-regex-test@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" - integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.3" - is-regex "^1.1.4" +"safe-regex-test@^1.0.0": + "integrity" "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==" + "resolved" "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "call-bind" "^1.0.2" + "get-intrinsic" "^1.1.3" + "is-regex" "^1.1.4" + +"safe-regex@^1.1.0": + "integrity" "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=" + "resolved" "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz" + "version" "1.1.0" + dependencies: + "ret" "~0.1.10" -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" +"safer-buffer@>= 2.1.2 < 3": + "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + "version" "2.1.2" -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sane@^4.0.3: - version "4.1.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" - integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== +"sane@^4.0.3": + "integrity" "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==" + "resolved" "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz" + "version" "4.1.0" dependencies: "@cnakazawa/watch" "^1.0.3" - anymatch "^2.0.0" - capture-exit "^2.0.0" - exec-sh "^0.3.2" - execa "^1.0.0" - fb-watchman "^2.0.0" - micromatch "^3.1.4" - minimist "^1.1.1" - walker "~1.0.5" - -sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -scheduler@0.19.1: - version "0.19.1" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196" - integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA== - dependencies: - loose-envify "^1.1.0" - object-assign "^4.1.1" - -semver-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" - integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow== - -semver-diff@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" - integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== - dependencies: - semver "^6.3.0" - -semver-regex@^3.1.2: - version "3.1.4" - resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-3.1.4.tgz#13053c0d4aa11d070a2f2872b6b1e3ae1e1971b4" - integrity sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA== - -"semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.5.0, semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@7.3.2: - version "7.3.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" - integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== - -semver@7.3.5: - version "7.3.5" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" - integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== - dependencies: - lru-cache "^6.0.0" - -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: - version "7.3.8" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" - integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== - dependencies: - lru-cache "^6.0.0" - -send@0.18.0: - version "0.18.0" - resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" - integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== - dependencies: - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "2.0.0" - mime "1.6.0" - ms "2.1.3" - on-finished "2.4.1" - range-parser "~1.2.1" - statuses "2.0.1" - -serialize-error@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" - integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== - -serve-static@^1.13.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" - integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.18.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== - -setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== - dependencies: - shebang-regex "^1.0.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shell-quote@1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" - integrity sha512-V0iQEZ/uoem3NmD91rD8XiuozJnq9/ZJnbHVXHnWqP1ucAhS3yJ7sLIIzEi57wFFcK3oi3kFUC46uSyWr35mxg== - dependencies: - array-filter "~0.0.0" - array-map "~0.0.0" - array-reduce "~0.0.0" - jsonify "~0.0.0" - -shell-quote@^1.6.1: - version "1.7.4" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" - integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== - -shelljs@0.8.5: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - -shellwords@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" - integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== - -side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - -signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -simple-plist@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/simple-plist/-/simple-plist-1.3.1.tgz#16e1d8f62c6c9b691b8383127663d834112fb017" - integrity sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw== - dependencies: - bplist-creator "0.1.0" - bplist-parser "0.3.1" - plist "^3.0.5" - -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slice-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -smart-buffer@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" - integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -socks-proxy-agent@5, socks-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz#032fb583048a29ebffec2e6a73fca0761f48177e" - integrity sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ== - dependencies: - agent-base "^6.0.2" - debug "4" - socks "^2.3.3" - -socks@^2.3.3: - version "2.7.1" - resolved "https://registry.yarnpkg.com/socks/-/socks-2.7.1.tgz#d8e651247178fde79c0663043e07240196857d55" - integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== - dependencies: - ip "^2.0.0" - smart-buffer "^4.2.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.5.16, source-map-support@^0.5.6: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.7.3: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - -spdx-correct@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" - integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.12" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" - integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== - -split-on-first@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" - integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -split2@^3.0.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" - integrity sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg== - dependencies: - readable-stream "^3.0.0" - -split@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" - integrity sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg== - dependencies: - through "2" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - -stack-utils@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.5.tgz#a19b0b01947e0029c8e451d5d61a498f5bb1471b" - integrity sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ== - dependencies: - escape-string-regexp "^2.0.0" - -stack-utils@^2.0.2: - version "2.0.6" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" - integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== - dependencies: - escape-string-regexp "^2.0.0" - -stackframe@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" - integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== - -stacktrace-parser@^0.1.3: - version "0.1.10" - resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz#29fb0cae4e0d0b85155879402857a1639eb6051a" - integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== - dependencies: - type-fest "^0.7.1" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -statuses@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" - integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== - -statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== - -stream-buffers@2.2.x: - version "2.2.0" - resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" - integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg== - -strict-uri-encode@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" - integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== - -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-width@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string.prototype.matchall@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3" - integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.3" - side-channel "^1.0.4" - -string.prototype.trimend@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" - integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -string.prototype.trimstart@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" - integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~0.10.x: - version "0.10.31" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - integrity sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow== - dependencies: - ansi-regex "^3.0.0" - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== - -sudo-prompt@^9.0.0: - version "9.2.1" - resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" - integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" - integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -table@^6.0.9: - version "6.8.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" - integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== - dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - -temp-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" - integrity sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ== - -temp-write@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-4.0.0.tgz#cd2e0825fc826ae72d201dc26eef3bf7e6fc9320" - integrity sha512-HIeWmj77uOOHb0QX7siN3OtwV3CTntquin6TNVg6SHOqCP3hYKmox90eeFOGaY1MqJ9WYDDjkyZrW6qS5AWpbw== - dependencies: - graceful-fs "^4.1.15" - is-stream "^2.0.0" - make-dir "^3.0.0" - temp-dir "^1.0.0" - uuid "^3.3.2" - -temp@0.8.3: - version "0.8.3" - resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.3.tgz#e0c6bc4d26b903124410e4fed81103014dfc1f59" - integrity sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw== - dependencies: - os-tmpdir "^1.0.0" - rimraf "~2.2.6" - -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + "anymatch" "^2.0.0" + "capture-exit" "^2.0.0" + "exec-sh" "^0.3.2" + "execa" "^1.0.0" + "fb-watchman" "^2.0.0" + "micromatch" "^3.1.4" + "minimist" "^1.1.1" + "walker" "~1.0.5" + +"saxes@^5.0.1": + "integrity" "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==" + "resolved" "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "xmlchars" "^2.2.0" + +"scheduler@^0.22.0": + "integrity" "sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ==" + "resolved" "https://registry.npmjs.org/scheduler/-/scheduler-0.22.0.tgz" + "version" "0.22.0" + dependencies: + "loose-envify" "^1.1.0" + +"semver-compare@^1.0.0": + "integrity" "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=" + "resolved" "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" + "version" "1.0.0" + +"semver-diff@^4.0.0": + "integrity" "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==" + "resolved" "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "semver" "^7.3.5" + +"semver-regex@^3.1.2": + "integrity" "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==" + "resolved" "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz" + "version" "3.1.4" + +"semver@^5.5.0": + "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + "version" "5.7.1" + +"semver@^5.6.0": + "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + "version" "5.7.1" + +"semver@^6.0.0": + "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + "version" "6.3.0" + +"semver@^6.1.1": + "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + "version" "6.3.0" + +"semver@^6.1.2": + "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + "version" "6.3.0" + +"semver@^6.3.0": + "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + "version" "6.3.0" + +"semver@^7.2.1", "semver@^7.3.2": + "integrity" "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz" + "version" "7.3.4" + dependencies: + "lru-cache" "^6.0.0" + +"semver@^7.3.5": + "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" + "version" "7.3.8" + dependencies: + "lru-cache" "^6.0.0" + +"semver@^7.3.7": + "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" + "version" "7.3.8" + dependencies: + "lru-cache" "^6.0.0" + +"semver@2 || 3 || 4 || 5": + "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + "version" "5.7.1" + +"semver@7.3.2": + "integrity" "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz" + "version" "7.3.2" + +"semver@7.3.7": + "integrity" "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz" + "version" "7.3.7" + dependencies: + "lru-cache" "^6.0.0" + +"semver@7.3.8": + "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" + "version" "7.3.8" + dependencies: + "lru-cache" "^6.0.0" + +"send@0.18.0": + "integrity" "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==" + "resolved" "https://registry.npmjs.org/send/-/send-0.18.0.tgz" + "version" "0.18.0" + dependencies: + "debug" "2.6.9" + "depd" "2.0.0" + "destroy" "1.2.0" + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "etag" "~1.8.1" + "fresh" "0.5.2" + "http-errors" "2.0.0" + "mime" "1.6.0" + "ms" "2.1.3" + "on-finished" "2.4.1" + "range-parser" "~1.2.1" + "statuses" "2.0.1" + +"serialize-error@^2.1.0": + "integrity" "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==" + "resolved" "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz" + "version" "2.1.0" + +"serve-static@^1.13.1": + "integrity" "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==" + "resolved" "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" + "version" "1.15.0" + dependencies: + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "parseurl" "~1.3.3" + "send" "0.18.0" + +"set-blocking@^2.0.0": + "integrity" "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + "resolved" "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" + "version" "2.0.0" + +"set-value@^2.0.0", "set-value@^2.0.1": + "integrity" "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==" + "resolved" "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "extend-shallow" "^2.0.1" + "is-extendable" "^0.1.1" + "is-plain-object" "^2.0.3" + "split-string" "^3.0.1" + +"setprototypeof@1.2.0": + "integrity" "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + "resolved" "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + "version" "1.2.0" + +"shallow-clone@^3.0.0": + "integrity" "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==" + "resolved" "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "kind-of" "^6.0.2" + +"shebang-command@^1.2.0": + "integrity" "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==" + "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" + "version" "1.2.0" + dependencies: + "shebang-regex" "^1.0.0" + +"shebang-command@^2.0.0": + "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==" + "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "shebang-regex" "^3.0.0" + +"shebang-regex@^1.0.0": + "integrity" "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==" + "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" + "version" "1.0.0" + +"shebang-regex@^3.0.0": + "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + "version" "3.0.0" + +"shell-quote@^1.6.1", "shell-quote@^1.7.3": + "integrity" "sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==" + "resolved" "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.4.tgz" + "version" "1.7.4" + +"shelljs@0.8.5": + "integrity" "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==" + "resolved" "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz" + "version" "0.8.5" + dependencies: + "glob" "^7.0.0" + "interpret" "^1.0.0" + "rechoir" "^0.6.2" + +"shellwords@^0.1.1": + "integrity" "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==" + "resolved" "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz" + "version" "0.1.1" + +"side-channel@^1.0.3", "side-channel@^1.0.4": + "integrity" "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==" + "resolved" "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" + "version" "1.0.4" + dependencies: + "call-bind" "^1.0.0" + "get-intrinsic" "^1.0.2" + "object-inspect" "^1.9.0" + +"signal-exit@^3.0.0", "signal-exit@^3.0.2", "signal-exit@^3.0.3", "signal-exit@^3.0.7": + "integrity" "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "resolved" "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + "version" "3.0.7" + +"sisteransi@^1.0.5": + "integrity" "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "resolved" "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" + "version" "1.0.5" + +"slash@^3.0.0": + "integrity" "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + "resolved" "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" + "version" "3.0.0" + +"slash@^4.0.0": + "integrity" "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" + "resolved" "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz" + "version" "4.0.0" + +"slice-ansi@^2.0.0": + "integrity" "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==" + "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "ansi-styles" "^3.2.0" + "astral-regex" "^1.0.0" + "is-fullwidth-code-point" "^2.0.0" + +"slice-ansi@^4.0.0": + "integrity" "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==" + "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "ansi-styles" "^4.0.0" + "astral-regex" "^2.0.0" + "is-fullwidth-code-point" "^3.0.0" + +"smart-buffer@^4.2.0": + "integrity" "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + "resolved" "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz" + "version" "4.2.0" + +"snapdragon-node@^2.0.1": + "integrity" "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==" + "resolved" "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz" + "version" "2.1.1" + dependencies: + "define-property" "^1.0.0" + "isobject" "^3.0.0" + "snapdragon-util" "^3.0.1" + +"snapdragon-util@^3.0.1": + "integrity" "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==" + "resolved" "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "kind-of" "^3.2.0" + +"snapdragon@^0.8.1": + "integrity" "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==" + "resolved" "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz" + "version" "0.8.2" + dependencies: + "base" "^0.11.1" + "debug" "^2.2.0" + "define-property" "^0.2.5" + "extend-shallow" "^2.0.1" + "map-cache" "^0.2.2" + "source-map" "^0.5.6" + "source-map-resolve" "^0.5.0" + "use" "^3.1.0" + +"socks-proxy-agent@^5.0.0", "socks-proxy-agent@5": + "integrity" "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==" + "resolved" "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "agent-base" "^6.0.2" + "debug" "4" + "socks" "^2.3.3" + +"socks@^2.3.3": + "integrity" "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==" + "resolved" "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz" + "version" "2.7.1" + dependencies: + "ip" "^2.0.0" + "smart-buffer" "^4.2.0" + +"source-map-resolve@^0.5.0": + "integrity" "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==" + "resolved" "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz" + "version" "0.5.3" + dependencies: + "atob" "^2.1.2" + "decode-uri-component" "^0.2.0" + "resolve-url" "^0.2.1" + "source-map-url" "^0.4.0" + "urix" "^0.1.0" + +"source-map-support@^0.5.16", "source-map-support@^0.5.6": + "integrity" "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==" + "resolved" "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz" + "version" "0.5.19" + dependencies: + "buffer-from" "^1.0.0" + "source-map" "^0.6.0" + +"source-map-url@^0.4.0": + "integrity" "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" + "resolved" "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz" + "version" "0.4.0" + +"source-map@^0.5.6": + "integrity" "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" + "version" "0.5.7" + +"source-map@^0.6.0": + "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + "version" "0.6.1" + +"source-map@^0.6.1": + "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + "version" "0.6.1" + +"source-map@^0.7.3": + "integrity" "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==" + "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" + "version" "0.7.4" + +"source-map@~0.6.1": + "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + "version" "0.6.1" + +"spdx-correct@^3.0.0": + "integrity" "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==" + "resolved" "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz" + "version" "3.1.1" + dependencies: + "spdx-expression-parse" "^3.0.0" + "spdx-license-ids" "^3.0.0" + +"spdx-exceptions@^2.1.0": + "integrity" "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" + "resolved" "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" + "version" "2.3.0" + +"spdx-expression-parse@^3.0.0": + "integrity" "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==" + "resolved" "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz" + "version" "3.0.1" + dependencies: + "spdx-exceptions" "^2.1.0" + "spdx-license-ids" "^3.0.0" + +"spdx-license-ids@^3.0.0": + "integrity" "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==" + "resolved" "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz" + "version" "3.0.7" + +"split-string@^3.0.1", "split-string@^3.0.2": + "integrity" "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==" + "resolved" "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "extend-shallow" "^3.0.0" + +"split@^1.0.0": + "integrity" "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==" + "resolved" "https://registry.npmjs.org/split/-/split-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "through" "2" + +"split2@^2.0.0": + "integrity" "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==" + "resolved" "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz" + "version" "2.2.0" + dependencies: + "through2" "^2.0.2" + +"split2@^3.0.0": + "integrity" "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==" + "resolved" "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz" + "version" "3.2.2" + dependencies: + "readable-stream" "^3.0.0" + +"sprintf-js@~1.0.2": + "integrity" "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" + "version" "1.0.3" + +"stack-utils@^2.0.2": + "integrity" "sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw==" + "resolved" "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz" + "version" "2.0.3" + dependencies: + "escape-string-regexp" "^2.0.0" + +"stackframe@^1.3.4": + "integrity" "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" + "resolved" "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz" + "version" "1.3.4" + +"stacktrace-parser@^0.1.3": + "integrity" "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==" + "resolved" "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz" + "version" "0.1.10" + dependencies: + "type-fest" "^0.7.1" + +"static-extend@^0.1.1": + "integrity" "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=" + "resolved" "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" + "version" "0.1.2" + dependencies: + "define-property" "^0.2.5" + "object-copy" "^0.1.0" + +"statuses@~1.5.0": + "integrity" "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" + "resolved" "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz" + "version" "1.5.0" + +"statuses@2.0.1": + "integrity" "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + "resolved" "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" + "version" "2.0.1" + +"string_decoder@^1.1.1": + "integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==" + "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + "version" "1.3.0" + dependencies: + "safe-buffer" "~5.2.0" + +"string_decoder@~0.10.x": + "integrity" "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" + "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" + "version" "0.10.31" + +"string_decoder@~1.1.1": + "integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==" + "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + "version" "1.1.1" + dependencies: + "safe-buffer" "~5.1.0" + +"string-length@^4.0.1": + "integrity" "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==" + "resolved" "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz" + "version" "4.0.1" + dependencies: + "char-regex" "^1.0.2" + "strip-ansi" "^6.0.0" + +"string-width@^4.1.0", "string-width@^4.2.3": + "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" + "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + "version" "4.2.3" + dependencies: + "emoji-regex" "^8.0.0" + "is-fullwidth-code-point" "^3.0.0" + "strip-ansi" "^6.0.1" + +"string-width@^4.2.0": + "integrity" "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==" + "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz" + "version" "4.2.0" + dependencies: + "emoji-regex" "^8.0.0" + "is-fullwidth-code-point" "^3.0.0" + "strip-ansi" "^6.0.0" + +"string-width@^5.0.1", "string-width@^5.1.2": + "integrity" "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==" + "resolved" "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz" + "version" "5.1.2" + dependencies: + "eastasianwidth" "^0.2.0" + "emoji-regex" "^9.2.2" + "strip-ansi" "^7.0.1" + +"string.prototype.matchall@^4.0.2": + "integrity" "sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw==" + "resolved" "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.3.tgz" + "version" "4.0.3" + dependencies: + "call-bind" "^1.0.0" + "define-properties" "^1.1.3" + "es-abstract" "^1.18.0-next.1" + "has-symbols" "^1.0.1" + "internal-slot" "^1.0.2" + "regexp.prototype.flags" "^1.3.0" + "side-channel" "^1.0.3" + +"string.prototype.trimend@^1.0.5": + "integrity" "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==" + "resolved" "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz" + "version" "1.0.5" + dependencies: + "call-bind" "^1.0.2" + "define-properties" "^1.1.4" + "es-abstract" "^1.19.5" + +"string.prototype.trimstart@^1.0.5": + "integrity" "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==" + "resolved" "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz" + "version" "1.0.5" + dependencies: + "call-bind" "^1.0.2" + "define-properties" "^1.1.4" + "es-abstract" "^1.19.5" + +"strip-ansi@^5.0.0": + "integrity" "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" + "version" "5.2.0" + dependencies: + "ansi-regex" "^4.1.0" + +"strip-ansi@^5.2.0": + "integrity" "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" + "version" "5.2.0" + dependencies: + "ansi-regex" "^4.1.0" + +"strip-ansi@^6.0.0": + "integrity" "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "ansi-regex" "^5.0.0" + +"strip-ansi@^6.0.1": + "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + "version" "6.0.1" + dependencies: + "ansi-regex" "^5.0.1" + +"strip-ansi@^7.0.1": + "integrity" "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz" + "version" "7.0.1" + dependencies: + "ansi-regex" "^6.0.1" + +"strip-bom@^3.0.0": + "integrity" "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" + "resolved" "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" + "version" "3.0.0" + +"strip-bom@^4.0.0": + "integrity" "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==" + "resolved" "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" + "version" "4.0.0" + +"strip-eof@^1.0.0": + "integrity" "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "resolved" "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" + "version" "1.0.0" + +"strip-final-newline@^2.0.0": + "integrity" "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" + "resolved" "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" + "version" "2.0.0" + +"strip-final-newline@^3.0.0": + "integrity" "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==" + "resolved" "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" + "version" "3.0.0" + +"strip-indent@^3.0.0": + "integrity" "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==" + "resolved" "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "min-indent" "^1.0.0" + +"strip-json-comments@^3.1.0", "strip-json-comments@^3.1.1": + "integrity" "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" + "version" "3.1.1" + +"strip-json-comments@~2.0.1": + "integrity" "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" + "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" + "version" "2.0.1" + +"sudo-prompt@^9.0.0": + "integrity" "sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==" + "resolved" "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz" + "version" "9.2.1" + +"supports-color@^5.3.0": + "integrity" "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==" + "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + "version" "5.5.0" dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -text-extensions@^1.0.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26" - integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -throat@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" - integrity sha512-wCVxLDcFxw7ujDxaeJC6nfl2XfHJNYs8yUYJnvMgtPEFlttP9tHSfRUv2vBe6C4hkVFPWoP1P6ZccbYjmSEkKA== - -throat@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" - integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== - -through2@^2.0.0, through2@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" - integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== - dependencies: - readable-stream "~2.3.6" - xtend "~4.0.1" - -through2@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/through2/-/through2-4.0.2.tgz#a7ce3ac2a7a8b0b966c80e7c49f0484c3b239764" - integrity sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw== - dependencies: - readable-stream "3" - -through@2, "through@>=2.2.7 <3", through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== - -time-stamp@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" - integrity sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw== - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== - dependencies: - os-tmpdir "~1.0.2" - -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-readable-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" - integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -toidentifier@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tough-cookie@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" - integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - -trim-newlines@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" - integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.0.1, tslib@^2.1.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" - integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== - -tsutils@^3.17.1: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.18.0: - version "0.18.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" - integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" - integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" - integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== - -typescript@^4.1.3: - version "4.9.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" - integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== - -ua-parser-js@^0.7.18: - version "0.7.32" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz#cd8c639cdca949e30fa68c44b7813ef13e36d211" - integrity sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw== - -uglify-es@^3.1.9: - version "3.3.9" - resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677" - integrity sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ== - dependencies: - commander "~2.13.0" - source-map "~0.6.1" - -uglify-js@^3.1.4: - version "3.17.4" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" - integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== - -ultron@1.0.x: - version "1.0.2" - resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" - integrity sha512-QMpnpVtYaWEeY+MwKDN/UdKlE/LsFZXM5lO1u7GaZzNgmIbGixHEmVMIKT+vqYOALu3m5GYQy9kz4Xu4IVn7Ow== - -unbox-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" - integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== - dependencies: - call-bind "^1.0.2" - has-bigints "^1.0.2" - has-symbols "^1.0.3" - which-boxed-primitive "^1.0.2" - -unc-path-regex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - integrity sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg== - -unicode-canonical-property-names-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" - integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== - -unicode-match-property-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" - integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== - dependencies: - unicode-canonical-property-names-ecmascript "^2.0.0" - unicode-property-aliases-ecmascript "^2.0.0" - -unicode-match-property-value-ecmascript@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0" - integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== - -unicode-property-aliases-ecmascript@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" - integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unique-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" - integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== - dependencies: - crypto-random-string "^2.0.0" - -universal-user-agent@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee" - integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w== - -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - -universalify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" - integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -update-browserslist-db@^1.0.9: - version "1.0.10" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" - integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - -update-notifier@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-5.1.0.tgz#4ab0d7c7f36a231dd7316cf7729313f0214d9ad9" - integrity sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw== - dependencies: - boxen "^5.0.0" - chalk "^4.1.0" - configstore "^5.0.1" - has-yarn "^2.1.0" - import-lazy "^2.1.0" - is-ci "^2.0.0" - is-installed-globally "^0.4.0" - is-npm "^5.0.0" - is-yarn-global "^0.3.0" - latest-version "^5.1.0" - pupa "^2.1.1" - semver "^7.3.4" - semver-diff "^3.1.1" - xdg-basedir "^4.0.0" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - -url-join@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" - integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== - -url-parse-lax@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" - integrity sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ== - dependencies: - prepend-http "^2.0.0" - -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - -use-subscription@^1.0.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.8.0.tgz#f118938c29d263c2bce12fc5585d3fe694d4dbce" - integrity sha512-LISuG0/TmmoDoCRmV5XAqYkd3UCBNM0ML3gGBndze65WITcsExCD3DTvXXTLyNcOC0heFQZzluW88bN/oC1DQQ== - dependencies: - use-sync-external-store "^1.2.0" - -use-sync-external-store@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" - integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -util-deprecate@^1.0.1, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - -uuid@8.3.2, uuid@^8.3.0, uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -v8-compile-cache@^2.0.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== - -v8-to-istanbul@^7.0.0: - version "7.1.2" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz#30898d1a7fa0c84d225a2c1434fb958f290883c1" - integrity sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow== + "has-flag" "^3.0.0" + +"supports-color@^7.0.0": + "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" + "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + "version" "7.2.0" dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" + "has-flag" "^4.0.0" + +"supports-color@^7.1.0": + "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" + "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + "version" "7.2.0" + dependencies: + "has-flag" "^4.0.0" + +"supports-color@^8.0.0": + "integrity" "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==" + "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + "version" "8.1.1" + dependencies: + "has-flag" "^4.0.0" + +"supports-hyperlinks@^2.0.0": + "integrity" "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==" + "resolved" "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "has-flag" "^4.0.0" + "supports-color" "^7.0.0" + +"symbol-tree@^3.2.4": + "integrity" "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" + "resolved" "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz" + "version" "3.2.4" + +"table@^6.0.4": + "integrity" "sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g==" + "resolved" "https://registry.npmjs.org/table/-/table-6.0.7.tgz" + "version" "6.0.7" + dependencies: + "ajv" "^7.0.2" + "lodash" "^4.17.20" + "slice-ansi" "^4.0.0" + "string-width" "^4.2.0" + +"temp@^0.8.4": + "integrity" "sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==" + "resolved" "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz" + "version" "0.8.4" + dependencies: + "rimraf" "~2.6.2" -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" +"temp@0.8.3": + "integrity" "sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw==" + "resolved" "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz" + "version" "0.8.3" + dependencies: + "os-tmpdir" "^1.0.0" + "rimraf" "~2.2.6" + +"terminal-link@^2.0.0": + "integrity" "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==" + "resolved" "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz" + "version" "2.1.1" + dependencies: + "ansi-escapes" "^4.2.1" + "supports-hyperlinks" "^2.0.0" -validate-npm-package-name@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz#5fa912d81eb7d0c74afc140de7317f0ca7df437e" - integrity sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw== - dependencies: - builtins "^1.0.3" +"test-exclude@^6.0.0": + "integrity" "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==" + "resolved" "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "@istanbuljs/schema" "^0.1.2" + "glob" "^7.1.4" + "minimatch" "^3.0.4" -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - -vlq@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" - integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== - -vm2@^3.9.8: - version "3.9.13" - resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.13.tgz#774a1a3d73b9b90b1aa45bcc5f25e349f2eef649" - integrity sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q== - dependencies: - acorn "^8.7.0" - acorn-walk "^8.2.0" - -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7, walker@~1.0.5: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== +"text-extensions@^1.0.0": + "integrity" "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==" + "resolved" "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz" + "version" "1.9.0" + +"text-table@^0.2.0": + "integrity" "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=" + "resolved" "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" + "version" "0.2.0" + +"throat@^5.0.0": + "integrity" "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==" + "resolved" "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz" + "version" "5.0.0" + +"through@^2.3.6", "through@>=2.2.7 <3", "through@2": + "integrity" "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + "resolved" "https://registry.npmjs.org/through/-/through-2.3.8.tgz" + "version" "2.3.8" + +"through2@^2.0.0": + "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" + "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" + "version" "2.0.5" + dependencies: + "readable-stream" "~2.3.6" + "xtend" "~4.0.1" + +"through2@^2.0.1": + "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" + "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" + "version" "2.0.5" + dependencies: + "readable-stream" "~2.3.6" + "xtend" "~4.0.1" + +"through2@^2.0.2": + "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" + "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" + "version" "2.0.5" + dependencies: + "readable-stream" "~2.3.6" + "xtend" "~4.0.1" + +"through2@^4.0.0": + "integrity" "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==" + "resolved" "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz" + "version" "4.0.2" + dependencies: + "readable-stream" "3" + +"tmp@^0.0.33": + "integrity" "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==" + "resolved" "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" + "version" "0.0.33" + dependencies: + "os-tmpdir" "~1.0.2" + +"tmpl@1.0.x": + "integrity" "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + "resolved" "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" + "version" "1.0.5" + +"to-fast-properties@^2.0.0": + "integrity" "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" + "resolved" "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" + "version" "2.0.0" + +"to-object-path@^0.3.0": + "integrity" "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=" + "resolved" "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz" + "version" "0.3.0" + dependencies: + "kind-of" "^3.0.2" + +"to-regex-range@^2.1.0": + "integrity" "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==" + "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz" + "version" "2.1.1" + dependencies: + "is-number" "^3.0.0" + "repeat-string" "^1.6.1" + +"to-regex-range@^5.0.1": + "integrity" "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" + "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "is-number" "^7.0.0" + +"to-regex@^3.0.1", "to-regex@^3.0.2": + "integrity" "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==" + "resolved" "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "define-property" "^2.0.2" + "extend-shallow" "^3.0.2" + "regex-not" "^1.0.2" + "safe-regex" "^1.1.0" + +"toidentifier@1.0.1": + "integrity" "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + "resolved" "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + "version" "1.0.1" + +"tough-cookie@^4.0.0": + "integrity" "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==" + "resolved" "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz" + "version" "4.1.2" + dependencies: + "psl" "^1.1.33" + "punycode" "^2.1.1" + "universalify" "^0.2.0" + "url-parse" "^1.5.3" + +"tr46@^2.1.0": + "integrity" "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==" + "resolved" "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "punycode" "^2.1.1" + +"tr46@~0.0.3": + "integrity" "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "resolved" "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + "version" "0.0.3" + +"trim-newlines@^3.0.0": + "integrity" "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==" + "resolved" "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz" + "version" "3.0.1" + +"trim-off-newlines@^1.0.0": + "integrity" "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==" + "resolved" "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz" + "version" "1.0.3" + +"tslib@^1.8.1": + "integrity" "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "resolved" "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" + "version" "1.14.1" + +"tslib@^2.0.1": + "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" + "version" "2.4.1" + +"tslib@^2.1.0": + "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" + "version" "2.4.1" + +"tsutils@^3.17.1": + "integrity" "sha512-A7BaLUPvcQ1cxVu72YfD+UMI3SQPTDv/w4ol6TOwLyI0hwfG9EC+cYlhdflJTmtYTgZ3KqdPSe/otxU4K3kArg==" + "resolved" "https://registry.npmjs.org/tsutils/-/tsutils-3.19.0.tgz" + "version" "3.19.0" + dependencies: + "tslib" "^1.8.1" + +"type-check@^0.4.0", "type-check@~0.4.0": + "integrity" "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==" + "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" + "version" "0.4.0" + dependencies: + "prelude-ls" "^1.2.1" + +"type-check@~0.3.2": + "integrity" "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==" + "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" + "version" "0.3.2" + dependencies: + "prelude-ls" "~1.1.2" + +"type-detect@4.0.8": + "integrity" "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" + "resolved" "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" + "version" "4.0.8" + +"type-fest@^0.11.0": + "integrity" "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz" + "version" "0.11.0" + +"type-fest@^0.18.0": + "integrity" "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz" + "version" "0.18.1" + +"type-fest@^0.6.0": + "integrity" "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" + "version" "0.6.0" + +"type-fest@^0.7.1": + "integrity" "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz" + "version" "0.7.1" + +"type-fest@^0.8.1": + "integrity" "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" + "version" "0.8.1" + +"type-fest@^1.0.1": + "integrity" "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" + "version" "1.4.0" + +"type-fest@^1.0.2": + "integrity" "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" + "version" "1.4.0" + +"type-fest@^2.13.0": + "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" + "version" "2.19.0" + +"type-fest@^2.5.1": + "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" + "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" + "version" "2.19.0" + +"typedarray-to-buffer@^3.1.5": + "integrity" "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==" + "resolved" "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" + "version" "3.1.5" + dependencies: + "is-typedarray" "^1.0.0" + +"typedarray@^0.0.6": + "integrity" "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" + "resolved" "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" + "version" "0.0.6" + +"typescript@^4.1.3", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta": + "integrity" "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==" + "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz" + "version" "4.1.3" + +"uglify-es@^3.1.9": + "integrity" "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==" + "resolved" "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz" + "version" "3.3.9" + dependencies: + "commander" "~2.13.0" + "source-map" "~0.6.1" + +"uglify-js@^3.1.4": + "integrity" "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==" + "resolved" "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz" + "version" "3.17.4" + +"unbox-primitive@^1.0.2": + "integrity" "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==" + "resolved" "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "call-bind" "^1.0.2" + "has-bigints" "^1.0.2" + "has-symbols" "^1.0.3" + "which-boxed-primitive" "^1.0.2" + +"unc-path-regex@^0.1.2": + "integrity" "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=" + "resolved" "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz" + "version" "0.1.2" + +"unicode-canonical-property-names-ecmascript@^2.0.0": + "integrity" "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" + "resolved" "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz" + "version" "2.0.0" + +"unicode-match-property-ecmascript@^2.0.0": + "integrity" "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==" + "resolved" "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "unicode-canonical-property-names-ecmascript" "^2.0.0" + "unicode-property-aliases-ecmascript" "^2.0.0" + +"unicode-match-property-value-ecmascript@^2.0.0": + "integrity" "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==" + "resolved" "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz" + "version" "2.0.0" + +"unicode-property-aliases-ecmascript@^2.0.0": + "integrity" "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" + "resolved" "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz" + "version" "2.1.0" + +"union-value@^1.0.0": + "integrity" "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==" + "resolved" "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "arr-union" "^3.1.0" + "get-value" "^2.0.6" + "is-extendable" "^0.1.1" + "set-value" "^2.0.1" + +"unique-string@^3.0.0": + "integrity" "sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==" + "resolved" "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "crypto-random-string" "^4.0.0" + +"universal-user-agent@^6.0.0": + "integrity" "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + "resolved" "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz" + "version" "6.0.0" + +"universalify@^0.1.0": + "integrity" "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" + "version" "0.1.2" + +"universalify@^0.2.0": + "integrity" "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==" + "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" + "version" "0.2.0" + +"universalify@^1.0.0": + "integrity" "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==" + "resolved" "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz" + "version" "1.0.0" + +"universalify@^2.0.0": + "integrity" "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" + "resolved" "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" + "version" "2.0.0" + +"unpipe@~1.0.0", "unpipe@1.0.0": + "integrity" "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + "resolved" "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + "version" "1.0.0" + +"unset-value@^1.0.0": + "integrity" "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=" + "resolved" "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "has-value" "^0.3.1" + "isobject" "^3.0.0" + +"update-browserslist-db@^1.0.9": + "integrity" "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==" + "resolved" "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "escalade" "^3.1.1" + "picocolors" "^1.0.0" + +"update-notifier@6.0.2": + "integrity" "sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==" + "resolved" "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz" + "version" "6.0.2" + dependencies: + "boxen" "^7.0.0" + "chalk" "^5.0.1" + "configstore" "^6.0.0" + "has-yarn" "^3.0.0" + "import-lazy" "^4.0.0" + "is-ci" "^3.0.1" + "is-installed-globally" "^0.4.0" + "is-npm" "^6.0.0" + "is-yarn-global" "^0.4.0" + "latest-version" "^7.0.0" + "pupa" "^3.1.0" + "semver" "^7.3.7" + "semver-diff" "^4.0.0" + "xdg-basedir" "^5.1.0" + +"uri-js@^4.2.2": + "integrity" "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==" + "resolved" "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "punycode" "^2.1.0" + +"urix@^0.1.0": + "integrity" "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" + "resolved" "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz" + "version" "0.1.0" + +"url-join@5.0.0": + "integrity" "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==" + "resolved" "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz" + "version" "5.0.0" + +"url-parse@^1.5.3": + "integrity" "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==" + "resolved" "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz" + "version" "1.5.10" + dependencies: + "querystringify" "^2.1.1" + "requires-port" "^1.0.0" + +"use-sync-external-store@^1.0.0": + "integrity" "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==" + "resolved" "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz" + "version" "1.2.0" + +"use@^3.1.0": + "integrity" "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" + "resolved" "https://registry.npmjs.org/use/-/use-3.1.1.tgz" + "version" "3.1.1" + +"util-deprecate@^1.0.1", "util-deprecate@~1.0.1": + "integrity" "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + "version" "1.0.2" + +"utils-merge@1.0.1": + "integrity" "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + "resolved" "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + "version" "1.0.1" + +"uuid@^8.3.0", "uuid@^8.3.2": + "integrity" "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" + "version" "8.3.2" + +"v8-compile-cache@^2.0.3": + "integrity" "sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==" + "resolved" "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz" + "version" "2.2.0" + +"v8-to-istanbul@^7.0.0": + "integrity" "sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g==" + "resolved" "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz" + "version" "7.1.0" dependencies: - makeerror "1.0.12" - -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== - dependencies: - defaults "^1.0.3" - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-fetch@>=0.10.0, whatwg-fetch@^3.0.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - -which-boxed-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== - -which-pm-runs@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.1.0.tgz#35ccf7b1a0fce87bd8b92a478c9d045785d3bf35" - integrity sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA== - -which@^1.2.9: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1, which@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -widest-line@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" - integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== - dependencies: - string-width "^4.0.0" - -wildcard-match@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/wildcard-match/-/wildcard-match-5.1.2.tgz#66b438001391674d8599b45da051e0bd9f33cd2a" - integrity sha512-qNXwI591Z88c8bWxp+yjV60Ch4F8Riawe3iGxbzquhy8Xs9m+0+SLFBGb/0yCTIDElawtaImC37fYZ+dr32KqQ== - -windows-release@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-4.0.0.tgz#4725ec70217d1bf6e02c7772413b29cdde9ec377" - integrity sha512-OxmV4wzDKB1x7AZaZgXMVsdJ1qER1ed83ZrTYd5Bwq2HfJVg3DJS8nqlAG4sMoJ7mu8cuRmLEYyU13BKwctRAg== - dependencies: - execa "^4.0.2" - -word-wrap@^1.2.3, word-wrap@~1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wordwrap@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== - dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^1.1.0, ws@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" - integrity sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w== - dependencies: - options ">=0.0.5" - ultron "1.0.x" - -ws@^7, ws@^7.4.6: - version "7.5.9" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" - integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== - -xcode@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/xcode/-/xcode-2.1.0.tgz#bab64a7e954bb50ca8d19da7e09531c65a43ecfe" - integrity sha512-uCrmPITrqTEzhn0TtT57fJaNaw8YJs1aCzs+P/QqxsDbvPZSv7XMPPwXrKvHtD6pLjBM/NaVwraWJm8q83Y4iQ== - dependencies: - simple-plist "^1.0.0" - uuid "^3.3.2" - -xdg-basedir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" - integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlbuilder@^15.1.1: - version "15.1.1" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-15.1.1.tgz#9dcdce49eea66d8d10b42cae94a79c3c8d0c2ec5" - integrity sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -xmldoc@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/xmldoc/-/xmldoc-1.2.0.tgz#7554371bfd8c138287cff01841ae4566d26e5541" - integrity sha512-2eN8QhjBsMW2uVj7JHLHkMytpvGHLHxKXBy4J3fAT/HujsEtM6yU84iGjpESYGHg6XwK0Vu4l+KgqQ2dv2cCqg== - dependencies: - sax "^1.2.4" - -xpipe@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/xpipe/-/xpipe-1.0.5.tgz#8dd8bf45fc3f7f55f0e054b878f43a62614dafdf" - integrity sha512-tuqoLk8xPl0o+7ny9iPlEZuzjfy1zC5ZJtAGjDDZWmVTVBK5PJP0arMGVu3Y53zSyeYK+YonMVSUv0DJgGN/ig== - -xregexp@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" - integrity sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA== - -xtend@~4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== - -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yaml@1.10.2, yaml@^1.10.0: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - -yargs-parser@20.2.9, yargs-parser@^20.2.2, yargs-parser@^20.2.3: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs-parser@^15.0.1: - version "15.0.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.3.tgz#316e263d5febe8b38eef61ac092b33dfcc9b1115" - integrity sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@^14.2.0: - version "14.2.3" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414" - integrity sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg== - dependencies: - cliui "^5.0.0" - decamelize "^1.2.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^15.0.1" - -yargs@^15.1.0, yargs@^15.4.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + "@types/istanbul-lib-coverage" "^2.0.1" + "convert-source-map" "^1.6.0" + "source-map" "^0.7.3" + +"validate-npm-package-license@^3.0.1": + "integrity" "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==" + "resolved" "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" + "version" "3.0.4" + dependencies: + "spdx-correct" "^3.0.0" + "spdx-expression-parse" "^3.0.0" + +"vary@~1.1.2": + "integrity" "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + "resolved" "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + "version" "1.1.2" + +"vlq@^1.0.0": + "integrity" "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==" + "resolved" "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz" + "version" "1.0.1" + +"vm2@^3.9.8": + "integrity" "sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==" + "resolved" "https://registry.npmjs.org/vm2/-/vm2-3.9.11.tgz" + "version" "3.9.11" + dependencies: + "acorn" "^8.7.0" + "acorn-walk" "^8.2.0" + +"w3c-hr-time@^1.0.2": + "integrity" "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==" + "resolved" "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "browser-process-hrtime" "^1.0.0" + +"w3c-xmlserializer@^2.0.0": + "integrity" "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==" + "resolved" "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "xml-name-validator" "^3.0.0" + +"walker@^1.0.7", "walker@~1.0.5": + "integrity" "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=" + "resolved" "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz" + "version" "1.0.7" + dependencies: + "makeerror" "1.0.x" + +"wcwidth@^1.0.1": + "integrity" "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==" + "resolved" "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "defaults" "^1.0.3" + +"web-streams-polyfill@^3.0.3": + "integrity" "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" + "resolved" "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz" + "version" "3.2.1" + +"webidl-conversions@^3.0.0": + "integrity" "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + "version" "3.0.1" + +"webidl-conversions@^5.0.0": + "integrity" "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==" + "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz" + "version" "5.0.0" + +"webidl-conversions@^6.1.0": + "integrity" "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==" + "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz" + "version" "6.1.0" + +"whatwg-encoding@^1.0.5": + "integrity" "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==" + "resolved" "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz" + "version" "1.0.5" + dependencies: + "iconv-lite" "0.4.24" + +"whatwg-fetch@^3.0.0": + "integrity" "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" + "resolved" "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz" + "version" "3.6.2" + +"whatwg-mimetype@^2.3.0": + "integrity" "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" + "resolved" "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz" + "version" "2.3.0" + +"whatwg-url@^5.0.0": + "integrity" "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==" + "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "tr46" "~0.0.3" + "webidl-conversions" "^3.0.0" + +"whatwg-url@^8.0.0", "whatwg-url@^8.5.0": + "integrity" "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==" + "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz" + "version" "8.7.0" + dependencies: + "lodash" "^4.7.0" + "tr46" "^2.1.0" + "webidl-conversions" "^6.1.0" + +"which-boxed-primitive@^1.0.2": + "integrity" "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==" + "resolved" "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "is-bigint" "^1.0.1" + "is-boolean-object" "^1.1.0" + "is-number-object" "^1.0.4" + "is-string" "^1.0.5" + "is-symbol" "^1.0.3" + +"which-module@^2.0.0": + "integrity" "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" + "resolved" "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" + "version" "2.0.0" + +"which-pm-runs@^1.0.0": + "integrity" "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=" + "resolved" "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz" + "version" "1.0.0" + +"which@^1.2.9": + "integrity" "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==" + "resolved" "https://registry.npmjs.org/which/-/which-1.3.1.tgz" + "version" "1.3.1" + dependencies: + "isexe" "^2.0.0" + +"which@^2.0.1", "which@^2.0.2": + "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==" + "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + "version" "2.0.2" + dependencies: + "isexe" "^2.0.0" + +"widest-line@^4.0.1": + "integrity" "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==" + "resolved" "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz" + "version" "4.0.1" + dependencies: + "string-width" "^5.0.1" + +"wildcard-match@5.1.2": + "integrity" "sha512-qNXwI591Z88c8bWxp+yjV60Ch4F8Riawe3iGxbzquhy8Xs9m+0+SLFBGb/0yCTIDElawtaImC37fYZ+dr32KqQ==" + "resolved" "https://registry.npmjs.org/wildcard-match/-/wildcard-match-5.1.2.tgz" + "version" "5.1.2" + +"windows-release@^5.0.1": + "integrity" "sha512-y1xFdFvdMiDXI3xiOhMbJwt1Y7dUxidha0CWPs1NgjZIjZANTcX7+7bMqNjuezhzb8s5JGEiBAbQjQQYYy7ulw==" + "resolved" "https://registry.npmjs.org/windows-release/-/windows-release-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "execa" "^5.1.1" + +"word-wrap@^1.2.3", "word-wrap@~1.2.3": + "integrity" "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" + "resolved" "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" + "version" "1.2.3" + +"wordwrap@^1.0.0": + "integrity" "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" + "resolved" "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz" + "version" "1.0.0" + +"wrap-ansi@^6.2.0": + "integrity" "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==" + "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" + "version" "6.2.0" + dependencies: + "ansi-styles" "^4.0.0" + "string-width" "^4.1.0" + "strip-ansi" "^6.0.0" + +"wrap-ansi@^7.0.0": + "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==" + "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + "version" "7.0.0" + dependencies: + "ansi-styles" "^4.0.0" + "string-width" "^4.1.0" + "strip-ansi" "^6.0.0" + +"wrap-ansi@^8.0.1": + "integrity" "sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g==" + "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.0.1.tgz" + "version" "8.0.1" + dependencies: + "ansi-styles" "^6.1.0" + "string-width" "^5.0.1" + "strip-ansi" "^7.0.1" + +"wrappy@1": + "integrity" "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + "version" "1.0.2" + +"write-file-atomic@^2.3.0": + "integrity" "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==" + "resolved" "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz" + "version" "2.4.3" + dependencies: + "graceful-fs" "^4.1.11" + "imurmurhash" "^0.1.4" + "signal-exit" "^3.0.2" + +"write-file-atomic@^3.0.0", "write-file-atomic@^3.0.3": + "integrity" "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==" + "resolved" "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" + "version" "3.0.3" + dependencies: + "imurmurhash" "^0.1.4" + "is-typedarray" "^1.0.0" + "signal-exit" "^3.0.2" + "typedarray-to-buffer" "^3.1.5" + +"ws@^6.1.4": + "integrity" "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==" + "resolved" "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz" + "version" "6.2.2" + dependencies: + "async-limiter" "~1.0.0" + +"ws@^7", "ws@^7.4.6", "ws@^7.5.1": + "integrity" "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==" + "resolved" "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" + "version" "7.5.9" + +"xdg-basedir@^5.0.1", "xdg-basedir@^5.1.0": + "integrity" "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==" + "resolved" "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz" + "version" "5.1.0" + +"xml-name-validator@^3.0.0": + "integrity" "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" + "resolved" "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz" + "version" "3.0.0" + +"xmlchars@^2.2.0": + "integrity" "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + "resolved" "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz" + "version" "2.2.0" + +"xregexp@2.0.0": + "integrity" "sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA==" + "resolved" "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz" + "version" "2.0.0" + +"xtend@~4.0.1": + "integrity" "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "resolved" "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + "version" "4.0.2" + +"y18n@^4.0.0": + "integrity" "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==" + "resolved" "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz" + "version" "4.0.1" + +"y18n@^5.0.5": + "integrity" "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" + "resolved" "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + "version" "5.0.8" + +"yallist@^3.0.2": + "integrity" "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "resolved" "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" + "version" "3.1.1" + +"yallist@^4.0.0": + "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" + "version" "4.0.0" + +"yaml@^1.10.0": + "integrity" "sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==" + "resolved" "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz" + "version" "1.10.0" + +"yargs-parser@^18.1.2": + "integrity" "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==" + "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz" + "version" "18.1.3" + dependencies: + "camelcase" "^5.0.0" + "decamelize" "^1.2.0" + +"yargs-parser@^20.2.2", "yargs-parser@^20.2.3": + "integrity" "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==" + "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" + "version" "20.2.4" + +"yargs-parser@^21.0.0": + "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + "version" "21.1.1" + +"yargs-parser@21.1.1": + "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + "version" "21.1.1" + +"yargs@^15.1.0", "yargs@^15.3.1", "yargs@^15.4.1": + "integrity" "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==" + "resolved" "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" + "version" "15.4.1" + dependencies: + "cliui" "^6.0.0" + "decamelize" "^1.2.0" + "find-up" "^4.1.0" + "get-caller-file" "^2.0.1" + "require-directory" "^2.1.1" + "require-main-filename" "^2.0.0" + "set-blocking" "^2.0.0" + "string-width" "^4.2.0" + "which-module" "^2.0.0" + "y18n" "^4.0.0" + "yargs-parser" "^18.1.2" + +"yargs@^16.2.0": + "integrity" "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==" + "resolved" "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" + "version" "16.2.0" + dependencies: + "cliui" "^7.0.2" + "escalade" "^3.1.1" + "get-caller-file" "^2.0.5" + "require-directory" "^2.1.1" + "string-width" "^4.2.0" + "y18n" "^5.0.5" + "yargs-parser" "^20.2.2" + +"yargs@^17.5.1": + "integrity" "sha512-leBuCGrL4dAd6ispNOGsJlhd0uZ6Qehkbu/B9KCR+Pxa/NVdNwi+i31lo0buCm6XxhJQFshXCD0/evfV4xfoUg==" + "resolved" "https://registry.npmjs.org/yargs/-/yargs-17.6.1.tgz" + "version" "17.6.1" + dependencies: + "cliui" "^8.0.1" + "escalade" "^3.1.1" + "get-caller-file" "^2.0.5" + "require-directory" "^2.1.1" + "string-width" "^4.2.3" + "y18n" "^5.0.5" + "yargs-parser" "^21.0.0" + +"yocto-queue@^0.1.0": + "integrity" "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + "resolved" "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" + "version" "0.1.0" From 5aa1d68346e0721cf5f2ca12c270bf2c462e5af0 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 3 Nov 2022 21:12:42 +0100 Subject: [PATCH 031/121] Updated Raw Manager function, added Klarna dependency --- .../raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt | 2 +- example/android/app/build.gradle | 7 +++++-- example/android/app/src/main/AndroidManifest.xml | 6 +++--- .../java/com/example/primerioreactnative/MainActivity.java | 2 +- .../com/example/primerioreactnative/MainApplication.java | 4 +++- example/android/app/src/main/res/values/strings.xml | 2 +- example/android/gradle.properties | 1 + example/src/screens/HeadlessCheckoutScreen.tsx | 6 +++--- example/src/screens/SettingsScreen.tsx | 1 + 9 files changed, 19 insertions(+), 12 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index e4126c8a6..ff67b051d 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -78,7 +78,7 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } @ReactMethod - fun listRequiredInputElementTypesForPaymentMethodType( + fun listRequiredInputElementTypes( promise: Promise ) { if (::rawManager.isInitialized.not()) { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 15ae543c5..dfb80b576 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -95,7 +95,7 @@ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ -def enableProguardInReleaseBuilds = false +def enableProguardInReleaseBuilds = true /** * The preferred build flavor of JavaScriptCore. @@ -183,6 +183,9 @@ repositories { maven { url "${ARTIFACTORY_3DS_URL}" } + maven { + url "${KLARNA_DISTRIBUTION_URL}" + } mavenLocal() } @@ -205,6 +208,7 @@ dependencies { exclude group: 'com.facebook.flipper' } + if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; debugImplementation files(hermesPath + "hermes-debug.aar") @@ -212,7 +216,6 @@ dependencies { } else { implementation jscFlavor } - implementation project(':primerioreactnative') } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index fdf165278..238352a0c 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,10 +1,10 @@ + package="io.primer.reactnativeexample"> - ReactNative Example + Primer RN test app diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 559cf7867..61aa2811c 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -21,3 +21,4 @@ android.useAndroidX=true android.enableJetifier=true FLIPPER_VERSION=0.99.0 ARTIFACTORY_3DS_URL=https://primer.jfrog.io/artifactory/primer-android/ +KLARNA_DISTRIBUTION_URL=https://x.klarnacdn.net/mobile-sdk/ diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index eddaf401d..8808e56f1 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -83,9 +83,9 @@ export const HeadlessCheckoutScreen = (props: any) => { iOS: { urlScheme: 'merchant://primer.io' }, - debugOptions: { - is3DSSanityCheckEnabled: false - } + }, + debugOptions: { + is3DSSanityCheckEnabled: false }, headlessUniversalCheckoutCallbacks: { onAvailablePaymentMethodsLoad: (availablePaymentMethods => { diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 1bc1bb39f..35ab07213 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -171,6 +171,7 @@ const SettingsScreen = ({ navigation }) => { }} > + From 6514b4f0d8ba2d2a9e916c408fce26d902e328b1 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 3 Nov 2022 21:57:12 +0100 Subject: [PATCH 032/121] Fixed events mapping --- .../PrimerRNHeadlessUniversalCheckoutListener.kt | 4 +++- .../components/events/PrimerHeadlessUniversalCheckoutEvent.kt | 4 ++-- .../PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt index a2ffd6229..57d84197c 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt @@ -159,7 +159,9 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou ) { if (implementedRNCallbacks?.isOnTokenizeSuccessImplemented == true) { val token = PrimerPaymentInstrumentTokenRN.fromPaymentMethodToken(paymentMethodTokenData) - val request = JSONObject(Json.encodeToString(token)) + val request = JSONObject().apply { + put("paymentMethodTokenData", JSONObject(Json.encodeToString(token))) + } tokenizeSuccessDecisionHandler = { newClientToken, _ -> when { newClientToken != null -> decisionHandler.continueWithNewClientToken(newClientToken) diff --git a/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt index 7c3c65ac4..6369cae1f 100644 --- a/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt +++ b/android/src/main/java/com/primerioreactnative/components/events/PrimerHeadlessUniversalCheckoutEvent.kt @@ -4,13 +4,13 @@ internal enum class PrimerHeadlessUniversalCheckoutEvent(val eventName: String) ON_AVAILABLE_PAYMENT_METHODS_LOAD("onAvailablePaymentMethodsLoad"), ON_PREPARE_START("onPreparationStart"), ON_PAYMENT_METHOD_SHOW("onPaymentMethodShow"), - ON_TOKENIZE_START("onTokenizeStart"), + ON_TOKENIZE_START("onTokenizationStart"), ON_CHECKOUT_COMPLETE("onCheckoutComplete"), ON_CHECKOUT_PENDING("onCheckoutPending"), ON_BEFORE_CLIENT_SESSION_UPDATE("onBeforeClientSessionUpdate"), ON_CLIENT_SESSION_UPDATE("onClientSessionUpdate"), ON_BEFORE_PAYMENT_CREATE("onBeforePaymentCreate"), - ON_TOKENIZE_SUCCESS("onTokenizeSuccess"), + ON_TOKENIZE_SUCCESS("onTokenizationSuccess"), ON_CHECKOUT_SUCCESS("onCheckoutResume"), ON_CHECKOUT_ADDITIONAL_INFO("onCheckoutAdditionalInfo"), ON_ERROR("onError"), diff --git a/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt b/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt index 4857133d7..a9f6bb558 100644 --- a/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt +++ b/android/src/main/java/com/primerioreactnative/utils/PrimerHeadlessUniversalCheckoutImplementedRNCallbacks.kt @@ -15,7 +15,7 @@ data class PrimerHeadlessUniversalCheckoutImplementedRNCallbacks( val isOnBeforePaymentCreateImplemented: Boolean? = null, @SerialName("onError") val isOnErrorImplemented: Boolean? = null, - @SerialName("onTokenizeSuccess") + @SerialName("onTokenizationSuccess") val isOnTokenizeSuccessImplemented: Boolean? = null, @SerialName("onCheckoutResume") val isOnCheckoutResumeImplemented: Boolean? = null, From 63f43313207d055edfc2323902e2377c5237354c Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 4 Nov 2022 12:55:46 +0200 Subject: [PATCH 033/121] Update to React Native 0.70.4 and Xcode 14.1 --- example/ios/Podfile | 36 ++++- .../project.pbxproj | 86 ++++++------ example/ios/ReactNativeExample/AppDelegate.m | 130 ++++++++++++++---- example/package.json | 41 ++++-- .../DataModels/ImplementedRNCallbacks.swift | 28 ++-- .../RNTPrimerPaymentMethodAsset.swift | 6 +- 6 files changed, 222 insertions(+), 105 deletions(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index cb3b5db21..4531d9822 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,12 +1,30 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, '10.0' +platform :ios, '12.4' +install! 'cocoapods', :deterministic_uuids => false target 'ReactNativeExample' do config = use_native_modules! - use_react_native!(:path => config["reactNativePath"]) + # Flags change depending on the env values. + flags = get_default_flags() + + use_react_native!( + :path => config[:reactNativePath], + # Hermes is now enabled by default. Disable by setting this flag to false. + # Upcoming versions of React Native may rely on get_default_flags(), but + # we make it explicit here to aid in the React Native upgrade process. + :hermes_enabled => false, + :fabric_enabled => flags[:fabric_enabled], + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable the next line. + # :flipper_configuration => FlipperConfiguration.enabled, + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/.." + ) pod 'primer-io-react-native', :path => '../..' pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' @@ -27,7 +45,21 @@ target 'ReactNativeExample' do # Note that if you have use_frameworks! enabled, Primer3DS will not work without # disabling these next few lines. post_install do |installer| + react_native_post_install( + installer, + # Set `mac_catalyst_enabled` to `true` in order to apply patches + # necessary for Mac Catalyst builds + :mac_catalyst_enabled => false + ) + __apply_Xcode_12_5_M1_post_install_workaround(installer) + installer.pods_project.targets.each do |target| + if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" + target.build_configurations.each do |config| + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' + end + end + if target.name == "primer-io-react-native" || target.name == "PrimerSDK" target.build_configurations.each do |config| config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" diff --git a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj index b43d189db..360aedf80 100644 --- a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -18,7 +18,7 @@ 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 2DCD954D1E0B4F2C00145EB5 /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - E22E9895ED84F337FC1107E3 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */; }; + EFE640F7AA5EA0FCD4747313 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -43,6 +43,7 @@ 00E356EE1AD99517003FC87E /* ReactNativeExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeExampleTests.m; sourceTree = ""; }; + 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeExample/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeExample/AppDelegate.m; sourceTree = ""; }; @@ -54,10 +55,9 @@ 1D3922C8270DAADD001BDCCA /* ReactNativeExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeExample.entitlements; path = ReactNativeExample/ReactNativeExample.entitlements; sourceTree = ""; }; 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; + 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; - 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; - 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; /* End PBXFileReference section */ @@ -74,7 +74,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E22E9895ED84F337FC1107E3 /* libPods-ReactNativeExample.a in Frameworks */, + EFE640F7AA5EA0FCD4747313 /* libPods-ReactNativeExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -132,7 +132,7 @@ children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - 6F79E41EB7FF375BF1A53E05 /* libPods-ReactNativeExample.a */, + 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */, ); name = Frameworks; sourceTree = ""; @@ -140,8 +140,8 @@ 6B9684456A2045ADE5A6E47E /* Pods */ = { isa = PBXGroup; children = ( - 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */, - 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */, + 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */, + 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -206,15 +206,15 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; buildPhases = ( - D3627818B8D4E945B6477080 /* [CP] Check Pods Manifest.lock */, + 095A3539812F74CE36028388 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */, - 25850717665B0DFEF9A9FBCE /* [CP] Embed Pods Frameworks */, - 19D3A7D73667B8E809E2F6CF /* [CP] Copy Pods Resources */, + A121F00B38151D231314D62A /* [CP] Embed Pods Frameworks */, + 545EB451D054D7CE2BB587FA /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -359,44 +359,46 @@ shellPath = /bin/sh; shellScript = "cd $PROJECT_DIR/..\nexport NODE_BINARY=node\nexport NODE_OPTIONS=\"--max_old_space_size=4096\"\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; - 19D3A7D73667B8E809E2F6CF /* [CP] Copy Pods Resources */ = { + 095A3539812F74CE36028388 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh", - "${PODS_CONFIGURATION_BUILD_DIR}/PrimerSDK/PrimerResources.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( ); - name = "[CP] Copy Pods Resources"; outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrimerResources.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", + "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 25850717665B0DFEF9A9FBCE /* [CP] Embed Pods Frameworks */ = { + 545EB451D054D7CE2BB587FA /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/KlarnaMobileSDK/full/KlarnaMobileSDK.framework/KlarnaMobileSDK", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/Primer3DS/ThreeDS_SDK.framework/ThreeDS_SDK", + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/PrimerSDK/PrimerResources.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KlarnaMobileSDK.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ThreeDS_SDK.framework", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrimerResources.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */ = { @@ -413,26 +415,24 @@ shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; - D3627818B8D4E945B6477080 /* [CP] Check Pods Manifest.lock */ = { + A121F00B38151D231314D62A /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputFileListPaths = ( - ); inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/KlarnaMobileSDK/full/KlarnaMobileSDK.framework/KlarnaMobileSDK", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/Primer3DS/ThreeDS_SDK.framework/ThreeDS_SDK", ); + name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KlarnaMobileSDK.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ThreeDS_SDK.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { @@ -574,7 +574,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8243BC4438FDDE552F2B55AC /* Pods-ReactNativeExample.debug.xcconfig */; + baseConfigurationReference = 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -601,7 +601,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 92C1D6A1F8B0CB99F1F13409 /* Pods-ReactNativeExample.release.xcconfig */; + baseConfigurationReference = 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -735,7 +735,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -763,6 +763,7 @@ COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -787,6 +788,7 @@ ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_VERSION = 4.2; }; @@ -797,7 +799,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -825,6 +827,7 @@ COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -841,6 +844,7 @@ "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_VERSION = 4.2; diff --git a/example/ios/ReactNativeExample/AppDelegate.m b/example/ios/ReactNativeExample/AppDelegate.m index 74cf84544..a012ce1e3 100644 --- a/example/ios/ReactNativeExample/AppDelegate.m +++ b/example/ios/ReactNativeExample/AppDelegate.m @@ -1,47 +1,56 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - #import "AppDelegate.h" #import #import #import -#ifdef FB_SONARKIT_ENABLED -#import -#import -#import -#import -#import -#import -static void InitializeFlipper(UIApplication *application) { - FlipperClient *client = [FlipperClient sharedClient]; - SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; - [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; - [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; - [client addPlugin:[FlipperKitReactPlugin new]]; - [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; - [client start]; +#import + +#if RCT_NEW_ARCH_ENABLED +#import +#import +#import +#import +#import +#import + +#import + +static NSString *const kRNConcurrentRoot = @"concurrentRoot"; + +@interface AppDelegate () { + RCTTurboModuleManager *_turboModuleManager; + RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; + std::shared_ptr _reactNativeConfig; + facebook::react::ContextContainer::Shared _contextContainer; } +@end #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - #ifdef FB_SONARKIT_ENABLED - InitializeFlipper(application); - #endif + RCTAppSetupPrepareApp(application); + RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; - RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge - moduleName:@"ReactNativeExample" - initialProperties:nil]; - rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; +#if RCT_NEW_ARCH_ENABLED + _contextContainer = std::make_shared(); + _reactNativeConfig = std::make_shared(); + _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); + _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; + bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; +#endif + + NSDictionary *initProps = [self prepareInitialProps]; + UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"ReactNativeExample", initProps); + + if (@available(iOS 13.0, *)) { + rootView.backgroundColor = [UIColor systemBackgroundColor]; + } else { + rootView.backgroundColor = [UIColor whiteColor]; + } self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; @@ -51,13 +60,74 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( return YES; } +/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. +/// +/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html +/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). +/// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. +- (BOOL)concurrentRootEnabled +{ + // Switch this bool to turn on and off the concurrent root + return true; +} + +- (NSDictionary *)prepareInitialProps +{ + NSMutableDictionary *initProps = [NSMutableDictionary new]; + +#ifdef RCT_NEW_ARCH_ENABLED + initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); +#endif + + return initProps; +} + - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } +#if RCT_NEW_ARCH_ENABLED + +#pragma mark - RCTCxxBridgeDelegate + +- (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge +{ + _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge + delegate:self + jsInvoker:bridge.jsCallInvoker]; + return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); +} + +#pragma mark RCTTurboModuleManagerDelegate + +- (Class)getModuleClassFromName:(const char *)name +{ + return RCTCoreModulesClassProvider(name); +} + +- (std::shared_ptr)getTurboModule:(const std::string &)name + jsInvoker:(std::shared_ptr)jsInvoker +{ + return nullptr; +} + +- (std::shared_ptr)getTurboModule:(const std::string &)name + initParams: + (const facebook::react::ObjCTurboModule::InitParams &)params +{ + return nullptr; +} + +- (id)getModuleInstanceFromClass:(Class)moduleClass +{ + return RCTAppSetupDefaultModuleFromClass(moduleClass); +} + +#endif + @end diff --git a/example/package.json b/example/package.json index f7f0d286a..03d45fbae 100644 --- a/example/package.json +++ b/example/package.json @@ -18,25 +18,36 @@ "clean-run-ios": "yarn clean-install && npx react-native run-ios" }, "dependencies": { - "@react-native-masked-view/masked-view": "^0.2.6", - "@react-native-picker/picker": "^2.4.0", + "@react-native-masked-view/masked-view": "^0.2.8", + "@react-native-picker/picker": "^2.4.8", "@react-native-segmented-control/segmented-control": "^2.4.0", - "@react-navigation/native": "^6.0.2", - "@react-navigation/native-stack": "^6.1.0", - "axios": "^0.26.1", - "react": "16.13.1", - "react-native": "0.63.4", - "react-native-loading-spinner-overlay": "^3.0.0", - "react-native-safe-area-context": "^3.3.2", + "@react-navigation/native": "^6.0.13", + "@react-navigation/native-stack": "^6.9.1", + "axios": "^1.1.3", + "react": "18.1.0", + "react-native": "0.70.4", + "react-native-loading-spinner-overlay": "^3.0.1", + "react-native-safe-area-context": "^4.4.1", "react-native-safe-area-view": "^1.1.1", - "react-native-screens": "^3.7.2" + "react-native-screens": "^3.18.2" }, "devDependencies": { - "@babel/core": "^7.12.10", + "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", - "@types/react": "^17.0.24", - "@types/react-native": "^0.65.2", - "babel-plugin-module-resolver": "^4.0.0", - "metro-react-native-babel-preset": "^0.64.0" + "@react-native-community/eslint-config": "^2.0.0", + "@tsconfig/react-native": "^2.0.2", + "@types/jest": "^26.0.23", + "@types/react": "^18.0.21", + "@types/react-native": "^0.70.6", + "@types/react-test-renderer": "^18.0.0", + "@typescript-eslint/eslint-plugin": "^5.37.0", + "@typescript-eslint/parser": "^5.37.0", + "babel-jest": "^26.6.3", + "babel-plugin-module-resolver": "^4.1.0", + "eslint": "^7.32.0", + "jest": "^26.6.3", + "metro-react-native-babel-preset": "0.72.3", + "react-test-renderer": "18.1.0", + "typescript": "^4.8.3" } } diff --git a/ios/Sources/DataModels/ImplementedRNCallbacks.swift b/ios/Sources/DataModels/ImplementedRNCallbacks.swift index 52e6c23ac..73ed6a428 100644 --- a/ios/Sources/DataModels/ImplementedRNCallbacks.swift +++ b/ios/Sources/DataModels/ImplementedRNCallbacks.swift @@ -53,23 +53,23 @@ internal struct ImplementedRNCallbacks: Decodable { init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - self.isOnAvailablePaymentMethodsLoadImplemented = (try? container.decode(Bool?.self, forKey: .isOnAvailablePaymentMethodsLoadImplemented)) ?? false - self.isOnTokenizationStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnTokenizationStartImplemented)) ?? false - self.isOnTokenizationSuccessImplemented = (try? container.decode(Bool?.self, forKey: .isOnTokenizationSuccessImplemented)) ?? false + self.isOnAvailablePaymentMethodsLoadImplemented = (try? container.decode(Bool.self, forKey: .isOnAvailablePaymentMethodsLoadImplemented)) ?? false + self.isOnTokenizationStartImplemented = (try? container.decode(Bool.self, forKey: .isOnTokenizationStartImplemented)) ?? false + self.isOnTokenizationSuccessImplemented = (try? container.decode(Bool.self, forKey: .isOnTokenizationSuccessImplemented)) ?? false - self.isOnCheckoutResumeImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutResumeImplemented)) ?? false - self.isOnCheckoutPendingImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutPendingImplemented)) ?? false - self.isOnCheckoutAdditionalInfoImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutAdditionalInfoImplemented)) ?? false + self.isOnCheckoutResumeImplemented = (try? container.decode(Bool.self, forKey: .isOnCheckoutResumeImplemented)) ?? false + self.isOnCheckoutPendingImplemented = (try? container.decode(Bool.self, forKey: .isOnCheckoutPendingImplemented)) ?? false + self.isOnCheckoutAdditionalInfoImplemented = (try? container.decode(Bool.self, forKey: .isOnCheckoutAdditionalInfoImplemented)) ?? false - self.isOnErrorImplemented = (try? container.decode(Bool?.self, forKey: .isOnErrorImplemented)) ?? false - self.isOnCheckoutCompleteImplemented = (try? container.decode(Bool?.self, forKey: .isOnCheckoutCompleteImplemented)) ?? false - self.isOnBeforeClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforeClientSessionUpdateImplemented)) ?? false + self.isOnErrorImplemented = (try? container.decode(Bool.self, forKey: .isOnErrorImplemented)) ?? false + self.isOnCheckoutCompleteImplemented = (try? container.decode(Bool.self, forKey: .isOnCheckoutCompleteImplemented)) ?? false + self.isOnBeforeClientSessionUpdateImplemented = (try? container.decode(Bool.self, forKey: .isOnBeforeClientSessionUpdateImplemented)) ?? false - self.isOnClientSessionUpdateImplemented = (try? container.decode(Bool?.self, forKey: .isOnClientSessionUpdateImplemented)) ?? false - self.isOnBeforePaymentCreateImplemented = (try? container.decode(Bool?.self, forKey: .isOnBeforePaymentCreateImplemented)) ?? false - self.isOnPreparationStartImplemented = (try? container.decode(Bool?.self, forKey: .isOnPreparationStartImplemented)) ?? false + self.isOnClientSessionUpdateImplemented = (try? container.decode(Bool.self, forKey: .isOnClientSessionUpdateImplemented)) ?? false + self.isOnBeforePaymentCreateImplemented = (try? container.decode(Bool.self, forKey: .isOnBeforePaymentCreateImplemented)) ?? false + self.isOnPreparationStartImplemented = (try? container.decode(Bool.self, forKey: .isOnPreparationStartImplemented)) ?? false - self.isOnPaymentMethodShowImplemented = (try? container.decode(Bool?.self, forKey: .isOnPaymentMethodShowImplemented)) ?? false - self.isOnDismissImplemented = (try? container.decode(Bool?.self, forKey: .isOnDismissImplemented)) ?? false + self.isOnPaymentMethodShowImplemented = (try? container.decode(Bool.self, forKey: .isOnPaymentMethodShowImplemented)) ?? false + self.isOnDismissImplemented = (try? container.decode(Bool.self, forKey: .isOnDismissImplemented)) ?? false } } diff --git a/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift b/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift index f0cbe1ee3..4cd087afd 100644 --- a/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift +++ b/ios/Sources/DataModels/RNTPrimerPaymentMethodAsset.swift @@ -31,9 +31,9 @@ struct RNTPrimerPaymentMethodLogo: Codable { let light: String? init(paymentMethodType: String, primerPaymentMethodLogo: PrimerPaymentMethodLogo) { - self.colored = try? primerPaymentMethodLogo.colored?.store(withName: "\(paymentMethodType)-colored").absoluteString - self.dark = try? primerPaymentMethodLogo.dark?.store(withName: "\(paymentMethodType)-dark").absoluteString - self.light = try? primerPaymentMethodLogo.light?.store(withName: "\(paymentMethodType)-light").absoluteString + self.colored = (try? primerPaymentMethodLogo.colored?.store(withName: "\(paymentMethodType)-colored").absoluteString) ?? nil + self.dark = (try? primerPaymentMethodLogo.dark?.store(withName: "\(paymentMethodType)-dark").absoluteString) ?? nil + self.light = (try? primerPaymentMethodLogo.light?.store(withName: "\(paymentMethodType)-light").absoluteString) ?? nil } } From 27bb6d17efdaf789d1cbc55f1885c950234d7457 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 4 Nov 2022 12:56:14 +0200 Subject: [PATCH 034/121] Bump --- example/ios/Podfile.lock | 546 +- .../src/screens/HeadlessCheckoutScreen.tsx | 1 - example/yarn.lock | 5586 +++++++++++++---- 3 files changed, 4632 insertions(+), 1501 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 75ac6a363..362f4f18a 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,23 +1,15 @@ PODS: - - boost-for-react-native (1.63.0) + - boost (1.76.0) - DoubleConversion (1.1.6) - - FBLazyVector (0.63.4) - - FBReactNativeSpec (0.63.4): - - Folly (= 2020.01.13.00) - - RCTRequired (= 0.63.4) - - RCTTypeSafety (= 0.63.4) - - React-Core (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - Folly (2020.01.13.00): - - boost-for-react-native - - DoubleConversion - - Folly/Default (= 2020.01.13.00) - - glog - - Folly/Default (2020.01.13.00): - - boost-for-react-native - - DoubleConversion - - glog + - FBLazyVector (0.70.4) + - FBReactNativeSpec (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.70.4) + - RCTTypeSafety (= 0.70.4) + - React-Core (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - fmt (6.2.1) - glog (0.3.5) - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) @@ -31,269 +23,326 @@ PODS: - PrimerSDK (2.14.0): - PrimerSDK/Core (= 2.14.0) - PrimerSDK/Core (2.14.0) - - RCTRequired (0.63.4) - - RCTTypeSafety (0.63.4): - - FBLazyVector (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTRequired (= 0.63.4) - - React-Core (= 0.63.4) - - React (0.63.4): - - React-Core (= 0.63.4) - - React-Core/DevSupport (= 0.63.4) - - React-Core/RCTWebSocket (= 0.63.4) - - React-RCTActionSheet (= 0.63.4) - - React-RCTAnimation (= 0.63.4) - - React-RCTBlob (= 0.63.4) - - React-RCTImage (= 0.63.4) - - React-RCTLinking (= 0.63.4) - - React-RCTNetwork (= 0.63.4) - - React-RCTSettings (= 0.63.4) - - React-RCTText (= 0.63.4) - - React-RCTVibration (= 0.63.4) - - React-callinvoker (0.63.4) - - React-Core (0.63.4): - - Folly (= 2020.01.13.00) + - RCT-Folly (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) - glog - - React-Core/Default (= 0.63.4) - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - RCT-Folly/Default (= 2021.07.22.00) + - RCT-Folly/Default (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCTRequired (0.70.4) + - RCTTypeSafety (0.70.4): + - FBLazyVector (= 0.70.4) + - RCTRequired (= 0.70.4) + - React-Core (= 0.70.4) + - React (0.70.4): + - React-Core (= 0.70.4) + - React-Core/DevSupport (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-RCTActionSheet (= 0.70.4) + - React-RCTAnimation (= 0.70.4) + - React-RCTBlob (= 0.70.4) + - React-RCTImage (= 0.70.4) + - React-RCTLinking (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - React-RCTSettings (= 0.70.4) + - React-RCTText (= 0.70.4) + - React-RCTVibration (= 0.70.4) + - React-bridging (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-jsi (= 0.70.4) + - React-callinvoker (0.70.4) + - React-Codegen (0.70.4): + - FBReactNativeSpec (= 0.70.4) + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.70.4) + - RCTTypeSafety (= 0.70.4) + - React-Core (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-Core (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/CoreModulesHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/CoreModulesHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/Default (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/Default (0.70.4): - glog - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/DevSupport (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/DevSupport (0.70.4): - glog - - React-Core/Default (= 0.63.4) - - React-Core/RCTWebSocket (= 0.63.4) - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) - - React-jsinspector (= 0.63.4) + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-jsinspector (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTActionSheetHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTActionSheetHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTAnimationHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTAnimationHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTBlobHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTBlobHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTImageHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTImageHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTLinkingHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTLinkingHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTNetworkHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTNetworkHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTSettingsHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTSettingsHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTTextHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTTextHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTVibrationHeaders (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTVibrationHeaders (0.70.4): - glog + - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-Core/RCTWebSocket (0.63.4): - - Folly (= 2020.01.13.00) + - React-Core/RCTWebSocket (0.70.4): - glog - - React-Core/Default (= 0.63.4) - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsiexecutor (= 0.63.4) + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) - Yoga - - React-CoreModules (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTTypeSafety (= 0.63.4) - - React-Core/CoreModulesHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - React-RCTImage (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-cxxreact (0.63.4): - - boost-for-react-native (= 1.63.0) + - React-CoreModules (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/CoreModulesHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTImage (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-cxxreact (0.70.4): + - boost (= 1.76.0) - DoubleConversion - - Folly (= 2020.01.13.00) - glog - - React-callinvoker (= 0.63.4) - - React-jsinspector (= 0.63.4) - - React-jsi (0.63.4): - - boost-for-react-native (= 1.63.0) + - RCT-Folly (= 2021.07.22.00) + - React-callinvoker (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsinspector (= 0.70.4) + - React-logger (= 0.70.4) + - React-perflogger (= 0.70.4) + - React-runtimeexecutor (= 0.70.4) + - React-jsi (0.70.4): + - boost (= 1.76.0) - DoubleConversion - - Folly (= 2020.01.13.00) - glog - - React-jsi/Default (= 0.63.4) - - React-jsi/Default (0.63.4): - - boost-for-react-native (= 1.63.0) + - RCT-Folly (= 2021.07.22.00) + - React-jsi/Default (= 0.70.4) + - React-jsi/Default (0.70.4): + - boost (= 1.76.0) - DoubleConversion - - Folly (= 2020.01.13.00) - glog - - React-jsiexecutor (0.63.4): + - RCT-Folly (= 2021.07.22.00) + - React-jsiexecutor (0.70.4): - DoubleConversion - - Folly (= 2020.01.13.00) - glog - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - React-jsinspector (0.63.4) - - react-native-safe-area-context (3.4.1): + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-perflogger (= 0.70.4) + - React-jsinspector (0.70.4) + - React-logger (0.70.4): + - glog + - react-native-safe-area-context (4.4.1): + - RCT-Folly + - RCTRequired + - RCTTypeSafety - React-Core + - ReactCommon/turbomodule/core - react-native-segmented-control (2.4.0): - React-Core - - React-RCTActionSheet (0.63.4): - - React-Core/RCTActionSheetHeaders (= 0.63.4) - - React-RCTAnimation (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTTypeSafety (= 0.63.4) - - React-Core/RCTAnimationHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTBlob (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - React-Core/RCTBlobHeaders (= 0.63.4) - - React-Core/RCTWebSocket (= 0.63.4) - - React-jsi (= 0.63.4) - - React-RCTNetwork (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTImage (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTTypeSafety (= 0.63.4) - - React-Core/RCTImageHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - React-RCTNetwork (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTLinking (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - React-Core/RCTLinkingHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTNetwork (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTTypeSafety (= 0.63.4) - - React-Core/RCTNetworkHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTSettings (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - RCTTypeSafety (= 0.63.4) - - React-Core/RCTSettingsHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - React-RCTText (0.63.4): - - React-Core/RCTTextHeaders (= 0.63.4) - - React-RCTVibration (0.63.4): - - FBReactNativeSpec (= 0.63.4) - - Folly (= 2020.01.13.00) - - React-Core/RCTVibrationHeaders (= 0.63.4) - - React-jsi (= 0.63.4) - - ReactCommon/turbomodule/core (= 0.63.4) - - ReactCommon/turbomodule/core (0.63.4): + - React-perflogger (0.70.4) + - React-RCTActionSheet (0.70.4): + - React-Core/RCTActionSheetHeaders (= 0.70.4) + - React-RCTAnimation (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTAnimationHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTBlob (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.70.4) + - React-Core/RCTBlobHeaders (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTImage (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTImageHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTLinking (0.70.4): + - React-Codegen (= 0.70.4) + - React-Core/RCTLinkingHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTNetwork (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTNetworkHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTSettings (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTSettingsHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTText (0.70.4): + - React-Core/RCTTextHeaders (= 0.70.4) + - React-RCTVibration (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.70.4) + - React-Core/RCTVibrationHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-runtimeexecutor (0.70.4): + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (0.70.4): - DoubleConversion - - Folly (= 2020.01.13.00) - glog - - React-callinvoker (= 0.63.4) - - React-Core (= 0.63.4) - - React-cxxreact (= 0.63.4) - - React-jsi (= 0.63.4) - - RNCMaskedView (0.2.6): + - RCT-Folly (= 2021.07.22.00) + - React-bridging (= 0.70.4) + - React-callinvoker (= 0.70.4) + - React-Core (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-logger (= 0.70.4) + - React-perflogger (= 0.70.4) + - RNCMaskedView (0.2.8): - React-Core - - RNCPicker (2.4.0): + - RNCPicker (2.4.8): - React-Core - - RNScreens (3.13.1): + - RNScreens (3.18.2): - React-Core - React-RCTImage - Yoga (1.14.0) DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) - - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) + - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - primer-io-react-native (from `../..`) - Primer3DS - PrimerKlarnaSDK - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6_rebase-2.14.0`) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - React (from `../node_modules/react-native/`) + - React-bridging (from `../node_modules/react-native/ReactCommon`) - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Codegen (from `build/generated/ios`) - React-Core (from `../node_modules/react-native/`) - - React-Core/DevSupport (from `../node_modules/react-native/`) - React-Core/RCTWebSocket (from `../node_modules/react-native/`) - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) - "react-native-segmented-control (from `../node_modules/@react-native-segmented-control/segmented-control`)" + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) @@ -303,6 +352,7 @@ DEPENDENCIES: - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) - React-RCTText (from `../node_modules/react-native/Libraries/Text`) - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - "RNCMaskedView (from `../node_modules/@react-native-masked-view/masked-view`)" - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" @@ -311,20 +361,20 @@ DEPENDENCIES: SPEC REPOS: trunk: - - boost-for-react-native + - fmt - KlarnaMobileSDK - Primer3DS - PrimerKlarnaSDK EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" DoubleConversion: :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" FBLazyVector: :path: "../node_modules/react-native/Libraries/FBLazyVector" FBReactNativeSpec: - :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" - Folly: - :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" + :path: "../node_modules/react-native/React/FBReactNativeSpec" glog: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" primer-io-react-native: @@ -332,14 +382,20 @@ EXTERNAL SOURCES: PrimerSDK: :branch: feature/DEVX-6_rebase-2.14.0 :git: https://github.com/primer-io/primer-sdk-ios.git + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" RCTRequired: :path: "../node_modules/react-native/Libraries/RCTRequired" RCTTypeSafety: :path: "../node_modules/react-native/Libraries/TypeSafety" React: :path: "../node_modules/react-native/" + React-bridging: + :path: "../node_modules/react-native/ReactCommon" React-callinvoker: :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Codegen: + :path: build/generated/ios React-Core: :path: "../node_modules/react-native/" React-CoreModules: @@ -352,10 +408,14 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/jsiexecutor" React-jsinspector: :path: "../node_modules/react-native/ReactCommon/jsinspector" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" react-native-safe-area-context: :path: "../node_modules/react-native-safe-area-context" react-native-segmented-control: :path: "../node_modules/@react-native-segmented-control/segmented-control" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" React-RCTActionSheet: :path: "../node_modules/react-native/Libraries/ActionSheetIOS" React-RCTAnimation: @@ -374,6 +434,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/Libraries/Text" React-RCTVibration: :path: "../node_modules/react-native/Libraries/Vibration" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" ReactCommon: :path: "../node_modules/react-native/ReactCommon" RNCMaskedView: @@ -391,44 +453,50 @@ CHECKOUT OPTIONS: :git: https://github.com/primer-io/primer-sdk-ios.git SPEC CHECKSUMS: - boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c - DoubleConversion: cde416483dac037923206447da6e1454df403714 - FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e - FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e - Folly: b73c3869541e86821df3c387eb0af5f65addfab4 - glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 + boost: a7c83b31436843459a1961bfd74b96033dc77234 + DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 + FBLazyVector: 8a28262f61fbe40c04ce8677b8d835d97c18f1b3 + FBReactNativeSpec: b475991eb2d8da6a4ec32d09a8df31b0247fa87d + fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 + glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 primer-io-react-native: a22a1ed9f651666c9fe2f5ba565a72069c118307 Primer3DS: 0b298ca54adb07e3f5ae3d74e574b6d3084e8a0d PrimerKlarnaSDK: 3bec0ddf31e01376587b8572ef12e8d5647b5c8a PrimerSDK: c974d33a85491d400249d957b968770b5e2580e1 - RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e - RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b - React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 - React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe - React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b - React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 - React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3 - React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 - React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 - React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a - react-native-safe-area-context: 9e40fb181dac02619414ba1294d6c2a807056ab9 + RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda + RCTRequired: 49a2c4d4215580d8b24ed538ae01b6de20b43a76 + RCTTypeSafety: 55d538399fe8b51e5cd862e2ec2f9b135b07e783 + React: 413fd7d791365c2c5742b60493d3ab450ca1a210 + React-bridging: 8e577e404677d57daa0310db63e6a27328a57207 + React-callinvoker: d0ae2f0ea66bcf29a3e42a895428d2f01473d2ea + React-Codegen: 273200ed3b02d35fd1755aebe0eb3319b037d950 + React-Core: f42a10403076c1114f8c50f063ddafc9eea92fff + React-CoreModules: 1ed78c63dad96f40b123d4d4ca455e09ccd8aaed + React-cxxreact: 7d30af80adb5fe6a97646a06540c19e61736aa15 + React-jsi: 9b2b4ac1642b72bffcd74550f0caa0926b3f8a4d + React-jsiexecutor: 4a893fc8f683b91befcaf56c44ad8be4506b6828 + React-jsinspector: 1d5a9e84e419a57cabc23249aec3d837d1b03a80 + React-logger: f8071ad48248781d5afdb8a07f778758529d3019 + react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a react-native-segmented-control: 06607462630512ff8eef652ec560e6235a30cc3e - React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 - React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b - React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 - React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0 - React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2 - React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae - React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a - React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c - React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d - ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b - RNCMaskedView: c298b644a10c0c142055b3ae24d83879ecb13ccd - RNCPicker: 6d5d64e7b90c240c779ee0938ec433c11e2dd758 - RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19 - Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 + React-perflogger: 5e41b01b35d97cc1b0ea177181eb33b5c77623b6 + React-RCTActionSheet: 48949f30b24200c82f3dd27847513be34e06a3ae + React-RCTAnimation: 96af42c97966fcd53ed9c31bee6f969c770312b6 + React-RCTBlob: 22aa326a2b34eea3299a2274ce93e102f8383ed9 + React-RCTImage: 1df0dbdb53609778f68830ccdd07ff3b40812837 + React-RCTLinking: eef4732d9102a10174115a727588d199711e376c + React-RCTNetwork: 18716f00568ec203df2192d35f4a74d1d9b00675 + React-RCTSettings: 1dc8a5e5272cea1bad2f8d9b4e6bac91b846749b + React-RCTText: 17652c6294903677fb3d754b5955ac293347782c + React-RCTVibration: 0e247407238d3bd6b29d922d7b5de0404359431b + React-runtimeexecutor: 5407e26b5aaafa9b01a08e33653255f8247e7c31 + ReactCommon: abf3605a56f98b91671d0d1327addc4ffb87af77 + RNCMaskedView: bc0170f389056201c82a55e242e5d90070e18e5a + RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 + RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d + Yoga: 1f02ef4ce4469aefc36167138441b27d988282b1 -PODFILE CHECKSUM: 63c6210f8fd8d1948ee4d8d73c2691cc17ed3178 +PODFILE CHECKSUM: e50980261055f6b6186233c2551733f6ebe73f05 COCOAPODS: 1.11.3 diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 8808e56f1..2908083ec 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; - import { Alert, Image, diff --git a/example/yarn.lock b/example/yarn.lock index 0af8c87ab..3337e6392 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -9,6 +9,13 @@ dependencies: "@jridgewell/trace-mapping" "^0.3.0" +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== + dependencies: + "@babel/highlight" "^7.10.4" + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" @@ -16,33 +23,54 @@ dependencies: "@babel/highlight" "^7.16.7" +"@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + dependencies: + "@babel/highlight" "^7.18.6" + "@babel/compat-data@^7.13.11", "@babel/compat-data@^7.17.0", "@babel/compat-data@^7.17.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.7.tgz#078d8b833fbbcc95286613be8c716cef2b519fa2" integrity sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ== -"@babel/core@^7.0.0", "@babel/core@^7.12.10": - version "7.17.8" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.8.tgz#3dac27c190ebc3a4381110d46c80e77efe172e1a" - integrity sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ== +"@babel/compat-data@^7.20.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.1.tgz#f2e6ef7790d8c8dbf03d379502dcc246dcce0b30" + integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== + +"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.7.5": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.19.6.tgz#7122ae4f5c5a37c0946c066149abd8e75f81540f" + integrity sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg== dependencies: "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.7" - "@babel/helper-compilation-targets" "^7.17.7" - "@babel/helper-module-transforms" "^7.17.7" - "@babel/helpers" "^7.17.8" - "@babel/parser" "^7.17.8" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.19.6" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-module-transforms" "^7.19.6" + "@babel/helpers" "^7.19.4" + "@babel/parser" "^7.19.6" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.1.2" + json5 "^2.2.1" semver "^6.3.0" -"@babel/generator@^7.17.3", "@babel/generator@^7.17.7", "@babel/generator@^7.5.0": +"@babel/generator@^7.14.0", "@babel/generator@^7.19.6", "@babel/generator@^7.20.1": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.1.tgz#ef32ecd426222624cbd94871a7024639cf61a9fa" + integrity sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg== + dependencies: + "@babel/types" "^7.20.0" + "@jridgewell/gen-mapping" "^0.3.2" + jsesc "^2.5.1" + +"@babel/generator@^7.17.3": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.7.tgz#8da2599beb4a86194a3b24df6c085931d9ee45ad" integrity sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w== @@ -58,6 +86,13 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-annotate-as-pure@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" + integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-builder-binary-assignment-operator-visitor@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz#38d138561ea207f0f69eb1626a418e4f7e6a580b" @@ -66,7 +101,7 @@ "@babel/helper-explode-assignable-expression" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7", "@babel/helper-compilation-targets@^7.17.7": +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.17.7.tgz#a3c2924f5e5f0379b356d4cfb313d1414dc30e46" integrity sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w== @@ -76,6 +111,16 @@ browserslist "^4.17.5" semver "^6.3.0" +"@babel/helper-compilation-targets@^7.19.3": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" + integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== + dependencies: + "@babel/compat-data" "^7.20.0" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.21.3" + semver "^6.3.0" + "@babel/helper-create-class-features-plugin@^7.16.7": version "7.17.6" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.17.6.tgz#3778c1ed09a7f3e65e6d6e0f6fbfcc53809d92c9" @@ -89,6 +134,19 @@ "@babel/helper-replace-supers" "^7.16.7" "@babel/helper-split-export-declaration" "^7.16.7" +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz#bfd6904620df4e46470bae4850d66be1054c404b" + integrity sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-create-regexp-features-plugin@^7.16.7": version "7.17.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz#1dcc7d40ba0c6b6b25618997c5dbfd310f186fe1" @@ -97,6 +155,14 @@ "@babel/helper-annotate-as-pure" "^7.16.7" regexpu-core "^5.0.1" +"@babel/helper-create-regexp-features-plugin@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz#7976aca61c0984202baca73d84e2337a5424a41b" + integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + regexpu-core "^5.1.0" + "@babel/helper-define-polyfill-provider@^0.3.1": version "0.3.1" resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.1.tgz#52411b445bdb2e676869e5a74960d2d3826d2665" @@ -118,6 +184,11 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-environment-visitor@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + "@babel/helper-explode-assignable-expression@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz#12a6d8522fdd834f194e868af6354e8650242b7a" @@ -134,6 +205,14 @@ "@babel/template" "^7.16.7" "@babel/types" "^7.16.7" +"@babel/helper-function-name@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" + integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== + dependencies: + "@babel/template" "^7.18.10" + "@babel/types" "^7.19.0" + "@babel/helper-get-function-arity@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz#ea08ac753117a669f1508ba06ebcc49156387419" @@ -148,6 +227,13 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-member-expression-to-functions@^7.16.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4" @@ -155,6 +241,13 @@ dependencies: "@babel/types" "^7.17.0" +"@babel/helper-member-expression-to-functions@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" + integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== + dependencies: + "@babel/types" "^7.18.9" + "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" @@ -162,6 +255,13 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-module-transforms@^7.17.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.17.7.tgz#3943c7f777139e7954a5355c815263741a9c1cbd" @@ -176,6 +276,20 @@ "@babel/traverse" "^7.17.3" "@babel/types" "^7.17.0" +"@babel/helper-module-transforms@^7.19.6": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz#6c52cc3ac63b70952d33ee987cbee1c9368b533f" + integrity sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.19.4" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.19.1" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" + "@babel/helper-optimise-call-expression@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz#a34e3560605abbd31a18546bd2aad3e6d9a174f2" @@ -183,11 +297,33 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-optimise-call-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" + integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf" + integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== + "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz#aa3a8ab4c3cceff8e65eb9e73d87dc4ff320b2f5" integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA== +"@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" + integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-wrap-function" "^7.18.9" + "@babel/types" "^7.18.9" + "@babel/helper-replace-supers@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz#e9f5f5f32ac90429c1a4bdec0f231ef0c2838ab1" @@ -199,6 +335,17 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" +"@babel/helper-replace-supers@^7.18.9": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" + integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/traverse" "^7.19.1" + "@babel/types" "^7.19.0" + "@babel/helper-simple-access@^7.17.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.17.7.tgz#aaa473de92b7987c6dfa7ce9a7d9674724823367" @@ -206,6 +353,13 @@ dependencies: "@babel/types" "^7.17.0" +"@babel/helper-simple-access@^7.19.4": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz#be553f4951ac6352df2567f7daa19a0ee15668e7" + integrity sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg== + dependencies: + "@babel/types" "^7.19.4" + "@babel/helper-skip-transparent-expression-wrappers@^7.16.0": version "7.16.0" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz#0ee3388070147c3ae051e487eca3ebb0e2e8bb09" @@ -213,6 +367,13 @@ dependencies: "@babel/types" "^7.16.0" +"@babel/helper-skip-transparent-expression-wrappers@^7.18.9": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" + integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== + dependencies: + "@babel/types" "^7.20.0" + "@babel/helper-split-export-declaration@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b" @@ -220,24 +381,65 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-string-parser@^7.19.4": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" + integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== + "@babel/helper-validator-identifier@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== +"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" + integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== + "@babel/helper-validator-option@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== -"@babel/helpers@^7.17.8": - version "7.17.8" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.8.tgz#288450be8c6ac7e4e44df37bcc53d345e07bc106" - integrity sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw== +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + +"@babel/helper-wrap-function@^7.18.9": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz#89f18335cff1152373222f76a4b37799636ae8b1" + integrity sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg== dependencies: - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" + "@babel/helper-function-name" "^7.19.0" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" + +"@babel/helpers@^7.19.4": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.1.tgz#2ab7a0fcb0a03b5bf76629196ed63c2d7311f4c9" + integrity sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg== + dependencies: + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.20.1" + "@babel/types" "^7.20.0" + +"@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" "@babel/highlight@^7.16.7": version "7.16.10" @@ -248,17 +450,25 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.0.0", "@babel/parser@^7.16.7", "@babel/parser@^7.17.3", "@babel/parser@^7.17.8": +"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.1.tgz#3e045a92f7b4623cafc2425eddcb8cf2e54f9cc5" + integrity sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw== + +"@babel/parser@^7.16.7", "@babel/parser@^7.17.3": version "7.17.8" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240" integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ== -"@babel/plugin-external-helpers@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-external-helpers/-/plugin-external-helpers-7.16.7.tgz#dd91e9b22d52f606461e7fcb4dc99a8b3392dd84" - integrity sha512-3MvRbPgl957CR3ZMeW/ukGrKDM3+m5vtTkgrBAKKbUgrAkb1molwjRqUvAYsCnwboN1vXgHStotdhAvTgQS/Gw== +"@babel/plugin-proposal-async-generator-functions@^7.0.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" + integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-remap-async-to-generator" "^7.18.9" + "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-proposal-class-properties@^7.0.0": version "7.16.7" @@ -268,6 +478,14 @@ "@babel/helper-create-class-features-plugin" "^7.16.7" "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-proposal-class-properties@^7.13.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-proposal-export-default-from@^7.0.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.16.7.tgz#a40ab158ca55627b71c5513f03d3469026a9e929" @@ -284,6 +502,14 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" +"@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" + integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-proposal-object-rest-spread@^7.0.0": version "7.17.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.17.3.tgz#d9eb649a54628a51701aef7e0ea3d17e2b9dd390" @@ -312,7 +538,30 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-syntax-class-properties@^7.0.0": +"@babel/plugin-proposal-optional-chaining@^7.13.12": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" + integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-bigint@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== @@ -340,6 +589,27 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-syntax-flow@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" + integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-import-meta@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + "@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz#50b6571d13f764266a113d77c82b4a6508bbe665" @@ -347,6 +617,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" @@ -354,6 +631,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-numeric-separator@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" @@ -375,6 +659,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-top-level-await@^7.8.3": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-typescript@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz#39c9b55ee153151990fb038651d58d3fd03f98f8" @@ -382,6 +673,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-syntax-typescript@^7.20.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" + integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-transform-arrow-functions@^7.0.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz#44125e653d94b98db76369de9c396dc14bef4154" @@ -389,6 +687,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-transform-async-to-generator@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" + integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== + dependencies: + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-remap-async-to-generator" "^7.18.6" + "@babel/plugin-transform-block-scoped-functions@^7.0.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz#4d0d57d9632ef6062cdf354bb717102ee042a620" @@ -447,6 +754,14 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/plugin-syntax-flow" "^7.16.7" +"@babel/plugin-transform-flow-strip-types@^7.18.6": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" + integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-flow" "^7.18.6" + "@babel/plugin-transform-for-of@^7.0.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz#649d639d4617dff502a9a158c479b3b556728d8c" @@ -487,12 +802,22 @@ "@babel/helper-simple-access" "^7.17.7" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-object-assign@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.16.7.tgz#5fe08d63dccfeb6a33aa2638faf98e5c584100f8" - integrity sha512-R8mawvm3x0COTJtveuoqZIjNypn2FjfvXZr4pSQ8VhEFBuQGBz4XhHasZtHXjgXU4XptZ4HtGof3NoYc93ZH9Q== +"@babel/plugin-transform-modules-commonjs@^7.13.8": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" + integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-module-transforms" "^7.19.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-simple-access" "^7.19.4" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.0.0": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz#ec7455bab6cd8fb05c525a94876f435a48128888" + integrity sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-object-super@^7.0.0": version "7.16.7" @@ -548,13 +873,6 @@ "@babel/plugin-syntax-jsx" "^7.16.7" "@babel/types" "^7.17.0" -"@babel/plugin-transform-regenerator@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.16.7.tgz#9e7576dc476cb89ccc5096fff7af659243b4adeb" - integrity sha512-mF7jOgGYCkSJagJ6XCujSQg+6xC1M77/03K2oBmVJWoFGNUtnVJO4WHKJk3dnPC8HCcj4xBQP1Egm8DWh3Pb3Q== - dependencies: - regenerator-transform "^0.14.2" - "@babel/plugin-transform-runtime@^7.0.0": version "7.17.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.17.0.tgz#0a2e08b5e2b2d95c4b1d3b3371a2180617455b70" @@ -596,6 +914,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" +"@babel/plugin-transform-typescript@^7.18.6": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz#2c7ec62b8bfc21482f3748789ba294a46a375169" + integrity sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-typescript" "^7.20.0" + "@babel/plugin-transform-typescript@^7.5.0": version "7.16.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.16.8.tgz#591ce9b6b83504903fa9dd3652c357c2ba7a1ee0" @@ -613,10 +940,28 @@ "@babel/helper-create-regexp-features-plugin" "^7.16.7" "@babel/helper-plugin-utils" "^7.16.7" -"@babel/register@^7.0.0": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.17.7.tgz#5eef3e0f4afc07e25e847720e7b987ae33f08d0b" - integrity sha512-fg56SwvXRifootQEDQAu1mKdjh5uthPzdO0N6t358FktfL4XjAVXuH58ULoiW8mesxiOgNIrxiImqEwv0+hRRA== +"@babel/preset-flow@^7.13.13": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.18.6.tgz#83f7602ba566e72a9918beefafef8ef16d2810cb" + integrity sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + "@babel/plugin-transform-flow-strip-types" "^7.18.6" + +"@babel/preset-typescript@^7.13.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz#ce64be3e63eddc44240c6358daefac17b3186399" + integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + "@babel/plugin-transform-typescript" "^7.18.6" + +"@babel/register@^7.13.16": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.18.9.tgz#1888b24bc28d5cc41c412feb015e9ff6b96e439c" + integrity sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw== dependencies: clone-deep "^4.0.1" find-cache-dir "^2.0.0" @@ -624,7 +969,7 @@ pirates "^4.0.5" source-map-support "^0.5.16" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.8.4": +"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5": version "7.17.8" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.8.tgz#3e56e4aff81befa55ac3ac6a0967349fd1c5bca2" integrity sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA== @@ -640,7 +985,32 @@ "@babel/parser" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/traverse@^7.0.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.17.3": +"@babel/template@^7.18.10", "@babel/template@^7.3.3": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" + integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.10" + "@babel/types" "^7.18.10" + +"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.19.6", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.1.tgz#9b15ccbf882f6d107eeeecf263fbcdd208777ec8" + integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.20.1" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.20.1" + "@babel/types" "^7.20.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.17.3": version "7.17.3" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.17.3.tgz#0ae0f15b27d9a92ba1f2263358ea7c4e7db47b57" integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw== @@ -664,6 +1034,20 @@ "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" +"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.0.tgz#52c94cf8a7e24e89d2a194c25c35b17a64871479" + integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg== + dependencies: + "@babel/helper-string-parser" "^7.19.4" + "@babel/helper-validator-identifier" "^7.19.1" + to-fast-properties "^2.0.0" + +"@bcoe/v8-coverage@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + "@cnakazawa/watch@^1.0.3": version "1.0.4" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" @@ -672,98 +1056,300 @@ exec-sh "^0.3.2" minimist "^1.2.0" -"@hapi/address@2.x.x": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" - integrity sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ== +"@eslint/eslintrc@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" + integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" -"@hapi/bourne@1.x.x": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@hapi/bourne/-/bourne-1.3.2.tgz#0a7095adea067243ce3283e1b56b8a8f453b242a" - integrity sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA== - -"@hapi/hoek@8.x.x", "@hapi/hoek@^8.3.0": - version "8.5.1" - resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-8.5.1.tgz#fde96064ca446dec8c55a8c2f130957b070c6e06" - integrity sha512-yN7kbciD87WzLGc5539Tn0sApjyiGHAJgKvG9W8C7O+6c7qmoQMfVs0W4bX17eqz6C78QJqqFrtgdK5EWf6Qow== - -"@hapi/joi@^15.0.3": - version "15.1.1" - resolved "https://registry.yarnpkg.com/@hapi/joi/-/joi-15.1.1.tgz#c675b8a71296f02833f8d6d243b34c57b8ce19d7" - integrity sha512-entf8ZMOK8sc+8YfeOlM8pCfg3b5+WZIKBfUaaJT8UsjAAPjartzxIYm3TIbjvA4u+u++KbcXD38k682nVHDAQ== - dependencies: - "@hapi/address" "2.x.x" - "@hapi/bourne" "1.x.x" - "@hapi/hoek" "8.x.x" - "@hapi/topo" "3.x.x" - -"@hapi/topo@3.x.x": - version "3.1.6" - resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-3.1.6.tgz#68d935fa3eae7fdd5ab0d7f953f3205d8b2bfc29" - integrity sha512-tAag0jEcjwH+P2quUfipd7liWCNX2F8NvYjQp2wtInsZxnMlypdw0FtAOLxtvvkO+GSRRbmNi8m/5y42PQJYCQ== - dependencies: - "@hapi/hoek" "^8.3.0" - -"@jest/console@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" - integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== - dependencies: - "@jest/source-map" "^24.9.0" - chalk "^2.0.1" - slash "^2.0.0" - -"@jest/fake-timers@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" - integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== - dependencies: - "@jest/types" "^24.9.0" - jest-message-util "^24.9.0" - jest-mock "^24.9.0" - -"@jest/source-map@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" - integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== +"@hapi/hoek@^9.0.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" + integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== + +"@hapi/topo@^5.0.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" + integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@humanwhocodes/config-array@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" + integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== + dependencies: + "@humanwhocodes/object-schema" "^1.2.0" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/object-schema@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/console@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2" + integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "^26.6.2" + jest-util "^26.6.2" + slash "^3.0.0" + +"@jest/core@^26.6.3": + version "26.6.3" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" + integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== + dependencies: + "@jest/console" "^26.6.2" + "@jest/reporters" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-changed-files "^26.6.2" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-resolve-dependencies "^26.6.3" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + jest-watcher "^26.6.2" + micromatch "^4.0.2" + p-each-series "^2.1.0" + rimraf "^3.0.0" + slash "^3.0.0" + strip-ansi "^6.0.0" + +"@jest/create-cache-key-function@^29.0.3": + version "29.2.1" + resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz#5f168051001ffea318b720cd6062daaf0b074913" + integrity sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ== + dependencies: + "@jest/types" "^29.2.1" + +"@jest/environment@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c" + integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== + dependencies: + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + +"@jest/fake-timers@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad" + integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== + dependencies: + "@jest/types" "^26.6.2" + "@sinonjs/fake-timers" "^6.0.1" + "@types/node" "*" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-util "^26.6.2" + +"@jest/globals@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a" + integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/types" "^26.6.2" + expect "^26.6.2" + +"@jest/reporters@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" + integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.2.4" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^4.0.3" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + jest-haste-map "^26.6.2" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + slash "^3.0.0" + source-map "^0.6.0" + string-length "^4.0.1" + terminal-link "^2.0.0" + v8-to-istanbul "^7.0.0" + optionalDependencies: + node-notifier "^8.0.0" + +"@jest/schemas@^29.0.0": + version "29.0.0" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a" + integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== + dependencies: + "@sinclair/typebox" "^0.24.1" + +"@jest/source-map@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535" + integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== dependencies: callsites "^3.0.0" - graceful-fs "^4.1.15" + graceful-fs "^4.2.4" source-map "^0.6.0" -"@jest/test-result@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca" - integrity sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA== +"@jest/test-result@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18" + integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== + dependencies: + "@jest/console" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + +"@jest/test-sequencer@^26.6.3": + version "26.6.3" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" + integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== + dependencies: + "@jest/test-result" "^26.6.2" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" + +"@jest/transform@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b" + integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^26.6.2" + babel-plugin-istanbul "^6.0.0" + chalk "^4.0.0" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-regex-util "^26.0.0" + jest-util "^26.6.2" + micromatch "^4.0.2" + pirates "^4.0.1" + slash "^3.0.0" + source-map "^0.6.1" + write-file-atomic "^3.0.0" + +"@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== dependencies: - "@jest/console" "^24.9.0" - "@jest/types" "^24.9.0" "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" -"@jest/types@^24.9.0": - version "24.9.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" - integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== +"@jest/types@^27.5.1": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^1.1.1" - "@types/yargs" "^13.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" -"@jest/types@^25.5.0": - version "25.5.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d" - integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw== +"@jest/types@^29.2.1": + version "29.2.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.2.1.tgz#ec9c683094d4eb754e41e2119d8bdaef01cf6da0" + integrity sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw== dependencies: + "@jest/schemas" "^29.0.0" "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^1.1.1" - "@types/yargs" "^15.0.0" - chalk "^3.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + +"@jridgewell/gen-mapping@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== "@jridgewell/resolve-uri@^3.0.3": version "3.0.5" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz#68eb521368db76d040a6315cdb24bf2483037b9c" integrity sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew== +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@1.4.14": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.11" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz#771a1d8d744eeb71b6adb35808e1a6c7b9b8c8ec" @@ -777,186 +1363,411 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@react-native-community/cli-debugger-ui@^4.13.1": - version "4.13.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-4.13.1.tgz#07de6d4dab80ec49231de1f1fbf658b4ad39b32c" - integrity sha512-UFnkg5RTq3s2X15fSkrWY9+5BKOFjihNSnJjTV2H5PtTUFbd55qnxxPw8CxSfK0bXb1IrSvCESprk2LEpqr5cg== +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.17" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" + integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@react-native-community/cli-clean@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018" + integrity sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + prompts "^2.4.0" + +"@react-native-community/cli-config@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-config/-/cli-config-9.2.1.tgz#54eb026d53621ccf3a9df8b189ac24f6e56b8750" + integrity sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + cosmiconfig "^5.1.0" + deepmerge "^3.2.0" + glob "^7.1.3" + joi "^17.2.1" + +"@react-native-community/cli-debugger-ui@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz#ea5c5dad6008bccd840d858e160d42bb2ced8793" + integrity sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA== dependencies: serve-static "^1.13.1" -"@react-native-community/cli-hermes@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-4.13.0.tgz#6243ed9c709dad5e523f1ccd7d21066b32f2899d" - integrity sha512-oG+w0Uby6rSGsUkJGLvMQctZ5eVRLLfhf84lLyz942OEDxFRa9U19YJxOe9FmgCKtotbYiM3P/XhK+SVCuerPQ== +"@react-native-community/cli-doctor@^9.2.1": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-9.3.0.tgz#8817a3fd564453467def5b5bc8aecdc4205eff50" + integrity sha512-/fiuG2eDGC2/OrXMOWI5ifq4X1gdYTQhvW2m0TT5Lk1LuFiZsbTCp1lR+XILKekuTvmYNjEGdVpeDpdIWlXdEA== + dependencies: + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-platform-ios" "^9.3.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + command-exists "^1.2.8" + envinfo "^7.7.2" + execa "^1.0.0" + hermes-profile-transformer "^0.0.6" + ip "^1.1.5" + node-stream-zip "^1.9.1" + ora "^5.4.1" + prompts "^2.4.0" + semver "^6.3.0" + strip-ansi "^5.2.0" + sudo-prompt "^9.0.0" + wcwidth "^1.0.1" + +"@react-native-community/cli-hermes@^9.2.1": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-9.3.0.tgz#1707bf9b0bcbaca1386c24bd32fbcfb598d86eb0" + integrity sha512-d5Zf/AcaW2EYSkS/pz/lrzjI90WvcDAJxk5fz/YK7JWGDqUrGP7IwojiOl3wBJiIiTu8M5MQelyxhbPT1AHDsg== dependencies: - "@react-native-community/cli-platform-android" "^4.13.0" - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" + "@react-native-community/cli-platform-android" "^9.3.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" hermes-profile-transformer "^0.0.6" ip "^1.1.5" -"@react-native-community/cli-platform-android@^4.10.0", "@react-native-community/cli-platform-android@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-4.13.0.tgz#922681ec82ee1aadd993598b814df1152118be02" - integrity sha512-3i8sX8GklEytUZwPnojuoFbCjIRzMugCdzDIdZ9UNmi/OhD4/8mLGO0dgXfT4sMWjZwu3qjy45sFfk2zOAgHbA== +"@react-native-community/cli-platform-android@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz#cd73cb6bbaeb478cafbed10bd12dfc01b484d488" + integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg== dependencies: - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" execa "^1.0.0" fs-extra "^8.1.0" glob "^7.1.3" - jetifier "^1.6.2" - lodash "^4.17.15" logkitty "^0.7.1" slash "^3.0.0" - xmldoc "^1.1.2" -"@react-native-community/cli-platform-ios@^4.10.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-4.13.0.tgz#a738915c68cac86df54e578b59a1311ea62b1aef" - integrity sha512-6THlTu8zp62efkzimfGr3VIuQJ2514o+vScZERJCV1xgEi8XtV7mb/ZKt9o6Y9WGxKKkc0E0b/aVAtgy+L27CA== +"@react-native-community/cli-platform-android@^9.3.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.3.0.tgz#9f84c2c2ceec6d097ee44ceb5e5533e371218837" + integrity sha512-4BU6+8tXP450VexoeVdc7rl+H6kz0CnMIFzyY9zcLrwl34CHul2RKLZ/zmVqVVO2sLAYv+HI5LkPUBZD5UeDcg== dependencies: - "@react-native-community/cli-tools" "^4.13.0" - chalk "^3.0.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + fs-extra "^8.1.0" glob "^7.1.3" - js-yaml "^3.13.1" - lodash "^4.17.15" - plist "^3.0.1" - xcode "^2.0.0" + logkitty "^0.7.1" + slash "^3.0.0" + +"@react-native-community/cli-platform-ios@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz#d90740472216ffae5527dfc5f49063ede18a621f" + integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + ora "^5.4.1" + +"@react-native-community/cli-platform-ios@^9.3.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.3.0.tgz#45abde2a395fddd7cf71e8b746c1dc1ee2260f9a" + integrity sha512-nihTX53BhF2Q8p4B67oG3RGe1XwggoGBrMb6vXdcu2aN0WeXJOXdBLgR900DAA1O8g7oy1Sudu6we+JsVTKnjw== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + ora "^5.4.1" -"@react-native-community/cli-server-api@^4.13.1": - version "4.13.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-4.13.1.tgz#bee7ee9702afce848e9d6ca3dcd5669b99b125bd" - integrity sha512-vQzsFKD9CjHthA2ehTQX8c7uIzlI9A7ejaIow1I9RlEnLraPH2QqVDmzIdbdh5Od47UPbRzamCgAP8Bnqv3qwQ== +"@react-native-community/cli-plugin-metro@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz#0ec207e78338e0cc0a3cbe1b43059c24afc66158" + integrity sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ== + dependencies: + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + metro "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-react-native-babel-transformer "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + readline "^1.3.0" + +"@react-native-community/cli-server-api@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz#41ac5916b21d324bccef447f75600c03b2f54fbe" + integrity sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw== dependencies: - "@react-native-community/cli-debugger-ui" "^4.13.1" - "@react-native-community/cli-tools" "^4.13.0" + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-tools" "^9.2.1" compression "^1.7.1" connect "^3.6.5" errorhandler "^1.5.0" - nocache "^2.1.0" - pretty-format "^25.1.0" + nocache "^3.0.1" + pretty-format "^26.6.2" serve-static "^1.13.1" - ws "^1.1.0" + ws "^7.5.1" -"@react-native-community/cli-tools@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-4.13.0.tgz#b406463d33af16cedc4305a9a9257ed32845cf1b" - integrity sha512-s4f489h5+EJksn4CfheLgv5PGOM0CDmK1UEBLw2t/ncWs3cW2VI7vXzndcd/WJHTv3GntJhXDcJMuL+Z2IAOgg== +"@react-native-community/cli-tools@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz#c332324b1ea99f9efdc3643649bce968aa98191c" + integrity sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ== dependencies: - chalk "^3.0.0" - lodash "^4.17.15" + appdirsjs "^1.2.4" + chalk "^4.1.2" + find-up "^5.0.0" mime "^2.4.1" node-fetch "^2.6.0" open "^6.2.0" - shell-quote "1.6.1" - -"@react-native-community/cli-types@^4.10.1": - version "4.10.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-4.10.1.tgz#d68a2dcd1649d3b3774823c64e5e9ce55bfbe1c9" - integrity sha512-ael2f1onoPF3vF7YqHGWy7NnafzGu+yp88BbFbP0ydoCP2xGSUzmZVw0zakPTC040Id+JQ9WeFczujMkDy6jYQ== - -"@react-native-community/cli@^4.10.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-4.14.0.tgz#bb106a98341bfa2db36060091ff90bfe82ea4f55" - integrity sha512-EYJKBuxFxAu/iwNUfwDq41FjORpvSh1wvQ3qsHjzcR5uaGlWEOJrd3uNJDuKBAS0TVvbEesLF9NEXipjyRVr4Q== - dependencies: - "@hapi/joi" "^15.0.3" - "@react-native-community/cli-debugger-ui" "^4.13.1" - "@react-native-community/cli-hermes" "^4.13.0" - "@react-native-community/cli-server-api" "^4.13.1" - "@react-native-community/cli-tools" "^4.13.0" - "@react-native-community/cli-types" "^4.10.1" - chalk "^3.0.0" - command-exists "^1.2.8" - commander "^2.19.0" - cosmiconfig "^5.1.0" - deepmerge "^3.2.0" - envinfo "^7.7.2" + ora "^5.4.1" + semver "^6.3.0" + shell-quote "^1.7.3" + +"@react-native-community/cli-types@^9.1.0": + version "9.1.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-9.1.0.tgz#dcd6a0022f62790fe1f67417f4690db938746aab" + integrity sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g== + dependencies: + joi "^17.2.1" + +"@react-native-community/cli@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-9.2.1.tgz#15cc32531fc323d4232d57b1f2d7c571816305ac" + integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ== + dependencies: + "@react-native-community/cli-clean" "^9.2.1" + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-doctor" "^9.2.1" + "@react-native-community/cli-hermes" "^9.2.1" + "@react-native-community/cli-plugin-metro" "^9.2.1" + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "@react-native-community/cli-types" "^9.1.0" + chalk "^4.1.2" + commander "^9.4.0" execa "^1.0.0" find-up "^4.1.0" fs-extra "^8.1.0" - glob "^7.1.3" graceful-fs "^4.1.3" - inquirer "^3.0.6" - leven "^3.1.0" - lodash "^4.17.15" - metro "^0.59.0" - metro-config "^0.59.0" - metro-core "^0.59.0" - metro-react-native-babel-transformer "^0.59.0" - metro-resolver "^0.59.0" - minimist "^1.2.0" - mkdirp "^0.5.1" - node-stream-zip "^1.9.1" - ora "^3.4.0" - pretty-format "^25.2.0" + prompts "^2.4.0" semver "^6.3.0" - serve-static "^1.13.1" - strip-ansi "^5.2.0" - sudo-prompt "^9.0.0" - wcwidth "^1.0.1" -"@react-native-masked-view/masked-view@^0.2.6": - version "0.2.6" - resolved "https://registry.yarnpkg.com/@react-native-masked-view/masked-view/-/masked-view-0.2.6.tgz#b26c52d5db3ad0926b13deea79c69620966a9221" - integrity sha512-303CxmetUmgiX9NSUxatZkNh9qTYYdiM8xkGf9I3Uj20U3eGY3M78ljeNQ4UVCJA+FNGS5nC1dtS9GjIqvB4dg== +"@react-native-community/eslint-config@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz#35dcc529a274803fc4e0a6b3d6c274551fb91774" + integrity sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg== + dependencies: + "@react-native-community/eslint-plugin" "^1.1.0" + "@typescript-eslint/eslint-plugin" "^3.1.0" + "@typescript-eslint/parser" "^3.1.0" + babel-eslint "^10.1.0" + eslint-config-prettier "^6.10.1" + eslint-plugin-eslint-comments "^3.1.2" + eslint-plugin-flowtype "2.50.3" + eslint-plugin-jest "22.4.1" + eslint-plugin-prettier "3.1.2" + eslint-plugin-react "^7.20.0" + eslint-plugin-react-hooks "^4.0.4" + eslint-plugin-react-native "^3.8.1" + prettier "^2.0.2" + +"@react-native-community/eslint-plugin@^1.1.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9" + integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg== + +"@react-native-masked-view/masked-view@^0.2.8": + version "0.2.8" + resolved "https://registry.yarnpkg.com/@react-native-masked-view/masked-view/-/masked-view-0.2.8.tgz#34405a4361882dae7c81b1b771fe9f5fbd545a97" + integrity sha512-+1holBPDF1yi/y0uc1WB6lA5tSNHhM7PpTMapT3ypvSnKQ9+C6sy/zfjxNxRA/llBQ1Ci6f94EaK56UCKs5lTA== -"@react-native-picker/picker@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.4.0.tgz#7ca2e01a3bdf854ee01ca752762ffa73c0e83313" - integrity sha512-duGZc3a8Qa21YPrA4U3oR9NAUzBA66FTjubGK2CodA6rNjiwN+xC32hOZ5unkf4qD3DqLWeoPjg3fYf54bVMjA== +"@react-native-picker/picker@^2.4.8": + version "2.4.8" + resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.4.8.tgz#a1a21f3d6ecadedbc3f0b691a444ddd7baa081f8" + integrity sha512-5NQ5XPo1B03YNqKFrV6h9L3CQaHlB80wd4ETHUEABRP2iLh7FHLVObX2GfziD+K/VJb8G4KZcZ23NFBFP1f7bg== "@react-native-segmented-control/segmented-control@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@react-native-segmented-control/segmented-control/-/segmented-control-2.4.0.tgz#0a88f22ad2c0fe07ecc002ee1e5d62c55a3dd0ae" integrity sha512-2s1AaT6xk/Do5s6u7ioCXucqesAt02NQlLKBOM28dJWI7PTH9o89x6AwsGHIeMkTe4nQ6iENiJKzO7Y3SGG9Ew== -"@react-navigation/core@^6.2.1": - version "6.2.1" - resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.2.1.tgz#90459f9afd25b71a9471b0706ebea2cdd2534fc4" - integrity sha512-3mjS6ujwGnPA/BC11DN9c2c42gFld6B6dQBgDedxP2djceXESpY2kVTTwISDHuqFnF7WjvRjsrDu3cKBX+JosA== +"@react-native/assets@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@react-native/assets/-/assets-1.0.0.tgz#c6f9bf63d274bafc8e970628de24986b30a55c8e" + integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ== + +"@react-native/normalize-color@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567" + integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw== + +"@react-native/polyfills@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native/polyfills/-/polyfills-2.0.0.tgz#4c40b74655c83982c8cf47530ee7dc13d957b6aa" + integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ== + +"@react-navigation/core@^6.4.0": + version "6.4.0" + resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.4.0.tgz#c44d33a8d8ef010a102c7f831fc8add772678509" + integrity sha512-tpc0Ak/DiHfU3LlYaRmIY7vI4sM/Ru0xCet6runLUh9aABf4wiLgxyFJ5BtoWq6xFF8ymYEA/KWtDhetQ24YiA== dependencies: - "@react-navigation/routers" "^6.1.0" + "@react-navigation/routers" "^6.1.3" escape-string-regexp "^4.0.0" nanoid "^3.1.23" query-string "^7.0.0" react-is "^16.13.0" + use-latest-callback "^0.1.5" -"@react-navigation/elements@^1.3.3": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.3.tgz#9f56b650a9a1a8263a271628be7342c8121d1788" - integrity sha512-Lv2lR7si5gNME8dRsqz57d54m4FJtrwHRjNQLOyQO546ZxO+g864cSvoLC6hQedQU0+IJnPTsZiEI2hHqfpEpw== +"@react-navigation/elements@^1.3.6": + version "1.3.6" + resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.6.tgz#fa700318528db93f05144b1be4b691b9c1dd1abe" + integrity sha512-pNJ8R9JMga6SXOw6wGVN0tjmE6vegwPmJBL45SEMX2fqTfAk2ykDnlJHodRpHpAgsv0DaI8qX76z3A+aqKSU0w== -"@react-navigation/native-stack@^6.1.0": - version "6.6.1" - resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.6.1.tgz#b0fc0dfc6fb21704062ec2820a53f982584feef2" - integrity sha512-JQfM3VWTH241ZQhp+UDJ6dZ/WiKJpGxNO4NFNW9AT+D1mxA3GFC3BBiGZfacPrtMOlLmn9FHf0Kh5rD9JYlvhg== +"@react-navigation/native-stack@^6.9.1": + version "6.9.1" + resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.1.tgz#6013300e4cd0b33e242aa18593e4dff7db2ab3d1" + integrity sha512-aOuJP97ge6NRz8wH6sDKfLTfdygGmraYh0apKrrVbGvMnflbPX4kpjQiAQcUPUpMeas0betH/Su8QubNL8HEkg== dependencies: - "@react-navigation/elements" "^1.3.3" + "@react-navigation/elements" "^1.3.6" warn-once "^0.1.0" -"@react-navigation/native@^6.0.2": - version "6.0.10" - resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-6.0.10.tgz#c58aa176eb0e63f3641c83a65c509faf253e4385" - integrity sha512-H6QhLeiieGxNcAJismIDXIPZgf1myr7Og8v116tezIGmincJTOcWavTd7lPHGnMMXaZg94LlVtbaBRIx9cexqw== +"@react-navigation/native@^6.0.13": + version "6.0.13" + resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-6.0.13.tgz#ec504120e193ea6a7f24ffa765a1338be5a3160a" + integrity sha512-CwaJcAGbhv3p3ECablxBkw8QBCGDWXqVRwQ4QbelajNW623m3sNTC9dOF6kjp8au6Rg9B5e0KmeuY0xWbPk79A== dependencies: - "@react-navigation/core" "^6.2.1" + "@react-navigation/core" "^6.4.0" escape-string-regexp "^4.0.0" fast-deep-equal "^3.1.3" nanoid "^3.1.23" -"@react-navigation/routers@^6.1.0": - version "6.1.0" - resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-6.1.0.tgz#d5682be88f1eb7809527c48f9cd3dedf4f344e40" - integrity sha512-8xJL+djIzpFdRW/sGlKojQ06fWgFk1c5jER9501HYJ12LF5DIJFr/tqBI2TJ6bk+y+QFu0nbNyeRC80OjRlmkA== +"@react-navigation/routers@^6.1.3": + version "6.1.3" + resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-6.1.3.tgz#1df51959e9a67c44367462e8b929b7360a5d2555" + integrity sha512-idJotMEzHc3haWsCh7EvnnZMKxvaS4YF/x2UyFBkNFiEFUaEo/1ioQU6qqmVLspdEv4bI/dLm97hQo7qD8Yl7Q== dependencies: nanoid "^3.1.23" -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== +"@sideway/address@^4.1.3": + version "4.1.4" + resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0" + integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@sideway/formula@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.0.tgz#fe158aee32e6bd5de85044be615bc08478a0a13c" + integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg== + +"@sideway/pinpoint@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df" + integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== + +"@sinclair/typebox@^0.24.1": + version "0.24.51" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" + integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== + +"@sinonjs/commons@^1.7.0": + version "1.8.4" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.4.tgz#d1f2d80f1bd0f2520873f161588bd9b7f8567120" + integrity sha512-RpmQdHVo8hCEHDVpO39zToS9jOhR6nw+/lQAzRNq9ErrGV9IeHM71XCn68svVl/euFeVW6BWX4p35gkhbOcSIQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" + integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== + dependencies: + "@sinonjs/commons" "^1.7.0" + +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + +"@tsconfig/react-native@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-2.0.2.tgz#ac9b8ceb1de91e2f23ab89f915490a1a4afd65a0" + integrity sha512-OY+qydDk8Xw+VONvAFB6WTZAi3OP/KSQWNIeuJgkGFHGV3epw8qlctJQ35+fKGG4919nGbNS9ZI0JuZl1y8w2g== + +"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": + version "7.1.19" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.4" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" + integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.1" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" + integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.2.tgz#235bf339d17185bdec25e024ca19cce257cc7309" + integrity sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg== + dependencies: + "@babel/types" "^7.3.0" + +"@types/eslint-visitor-keys@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + +"@types/graceful-fs@^4.1.2": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" + integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== + dependencies: + "@types/node" "*" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== "@types/istanbul-lib-report@*": version "3.0.0" @@ -965,27 +1776,61 @@ dependencies: "@types/istanbul-lib-coverage" "*" -"@types/istanbul-reports@^1.1.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz#e875cc689e47bce549ec81f3df5e6f6f11cfaeb2" - integrity sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw== +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== dependencies: - "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" +"@types/jest@^26.0.23": + version "26.0.24" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" + integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== + dependencies: + jest-diff "^26.0.0" + pretty-format "^26.0.0" + +"@types/json-schema@^7.0.3", "@types/json-schema@^7.0.9": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + +"@types/node@*": + version "18.11.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4" + integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg== + +"@types/normalize-package-data@^2.4.0": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" + integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== + +"@types/prettier@^2.0.0": + version "2.7.1" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e" + integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== + "@types/prop-types@*": version "15.7.4" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11" integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ== -"@types/react-native@^0.65.2": - version "0.65.21" - resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.65.21.tgz#f731b172765f17e4866473de41e1d3a4890ae536" - integrity sha512-6TmhHLEBH7xMOBG+MIExOILOEI+nq/VHmlAJZ7SynJ+/ezG318EFrrxDPge46WPqWT25ZbnhSR6uxzBn7TDRbQ== +"@types/react-native@^0.70.6": + version "0.70.6" + resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.70.6.tgz#0d1bc3014111f64f13e0df643aec2ab03f021fdb" + integrity sha512-ynQ2jj0km9d7dbnyKqVdQ6Nti7VQ8SLTA/KKkkS5+FnvGyvij2AOo1/xnkBR/jnSNXuzrvGVzw2n0VWfppmfKw== + dependencies: + "@types/react" "*" + +"@types/react-test-renderer@^18.0.0": + version "18.0.0" + resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.0.tgz#7b7f69ca98821ea5501b21ba24ea7b6139da2243" + integrity sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ== dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^17.0.24": +"@types/react@*": version "17.0.43" resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.43.tgz#4adc142887dd4a2601ce730bc56c3436fdb07a55" integrity sha512-8Q+LNpdxf057brvPu1lMtC5Vn7J119xrP1aq4qiaefNioQUYANF/CYeK4NsKorSZyUGJ66g0IM+4bbjwx45o2A== @@ -994,28 +1839,35 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/react@^18.0.21": + version "18.0.24" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.24.tgz#2f79ed5b27f08d05107aab45c17919754cc44c20" + integrity sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/scheduler@*": version "0.16.2" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== -"@types/stack-utils@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" - integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== +"@types/semver@^7.3.12": + version "7.3.13" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" + integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== + +"@types/stack-utils@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" + integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== "@types/yargs-parser@*": version "21.0.0" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@types/yargs@^13.0.0": - version "13.0.12" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.12.tgz#d895a88c703b78af0465a9de88aa92c61430b092" - integrity sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ== - dependencies: - "@types/yargs-parser" "*" - "@types/yargs@^15.0.0": version "15.0.14" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06" @@ -1023,6 +1875,168 @@ dependencies: "@types/yargs-parser" "*" +"@types/yargs@^16.0.0": + version "16.0.4" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + dependencies: + "@types/yargs-parser" "*" + +"@types/yargs@^17.0.8": + version "17.0.13" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.13.tgz#34cced675ca1b1d51fcf4d34c3c6f0fa142a5c76" + integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg== + dependencies: + "@types/yargs-parser" "*" + +"@typescript-eslint/eslint-plugin@^3.1.0": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f" + integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== + dependencies: + "@typescript-eslint/experimental-utils" "3.10.1" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/eslint-plugin@^5.37.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.0.tgz#36a8c0c379870127059889a9cc7e05c260d2aaa5" + integrity sha512-5TJh2AgL6+wpL8H/GTSjNb4WrjKoR2rqvFxR/DDTqYNk6uXn8BJMEcncLSpMbf/XV1aS0jAjYwn98uvVCiAywQ== + dependencies: + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/type-utils" "5.42.0" + "@typescript-eslint/utils" "5.42.0" + debug "^4.3.4" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + regexpp "^3.2.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" + integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@^3.1.0": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" + integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "3.10.1" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/parser@^5.37.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.42.0.tgz#be0ffbe279e1320e3d15e2ef0ad19262f59e9240" + integrity sha512-Ixh9qrOTDRctFg3yIwrLkgf33AHyEIn6lhyf5cCfwwiGtkWhNpVKlEZApi3inGQR/barWnY7qY8FbGKBO7p3JA== + dependencies: + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/typescript-estree" "5.42.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.42.0.tgz#e1f2bb26d3b2a508421ee2e3ceea5396b192f5ef" + integrity sha512-l5/3IBHLH0Bv04y+H+zlcLiEMEMjWGaCX6WyHE5Uk2YkSGAMlgdUPsT/ywTSKgu9D1dmmKMYgYZijObfA39Wow== + dependencies: + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/visitor-keys" "5.42.0" + +"@typescript-eslint/type-utils@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.42.0.tgz#4206d7192d4fe903ddf99d09b41d4ac31b0b7dca" + integrity sha512-HW14TXC45dFVZxnVW8rnUGnvYyRC0E/vxXShFCthcC9VhVTmjqOmtqj6H5rm9Zxv+ORxKA/1aLGD7vmlLsdlOg== + dependencies: + "@typescript-eslint/typescript-estree" "5.42.0" + "@typescript-eslint/utils" "5.42.0" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" + integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== + +"@typescript-eslint/types@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.0.tgz#5aeff9b5eced48f27d5b8139339bf1ef805bad7a" + integrity sha512-t4lzO9ZOAUcHY6bXQYRuu+3SSYdD9TS8ooApZft4WARt4/f2Cj/YpvbTe8A4GuhT4bNW72goDMOy7SW71mZwGw== + +"@typescript-eslint/typescript-estree@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" + integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== + dependencies: + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/visitor-keys" "3.10.1" + debug "^4.1.1" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/typescript-estree@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.0.tgz#2592d24bb5f89bf54a63384ff3494870f95b3fd8" + integrity sha512-2O3vSq794x3kZGtV7i4SCWZWCwjEtkWfVqX4m5fbUBomOsEOyd6OAD1qU2lbvV5S8tgy/luJnOYluNyYVeOTTg== + dependencies: + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/visitor-keys" "5.42.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.0.tgz#f06bd43b9a9a06ed8f29600273240e84a53f2f15" + integrity sha512-JZ++3+h1vbeG1NUECXQZE3hg0kias9kOtcQr3+JVQ3whnjvKuMyktJAAIj6743OeNPnGBmjj7KEmiDL7qsdnCQ== + dependencies: + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/typescript-estree" "5.42.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + semver "^7.3.7" + +"@typescript-eslint/visitor-keys@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" + integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== + dependencies: + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/visitor-keys@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.0.tgz#ee8d62d486f41cfe646632fab790fbf0c1db5bb0" + integrity sha512-QHbu5Hf/2lOEOwy+IUw0GoSCuAzByTAWWrOTKzTzsotiUnWFpuKnXcAhC9YztAf2EElQ0VvIK+pHJUPkM0q7jg== + dependencies: + "@typescript-eslint/types" "5.42.0" + eslint-visitor-keys "^3.3.0" + +abab@^2.0.3, abab@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" + integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== + abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -1035,7 +2049,7 @@ absolute-path@^0.0.0: resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" integrity sha1-p4di+9rftSl76ZsV01p4Wy8JW/c= -accepts@~1.3.5, accepts@~1.3.7: +accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== @@ -1043,29 +2057,77 @@ accepts@~1.3.5, accepts@~1.3.7: mime-types "~2.1.34" negotiator "0.6.3" +acorn-globals@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" + integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== + dependencies: + acorn "^7.1.1" + acorn-walk "^7.1.1" + +acorn-jsx@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn-walk@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + +acorn@^7.1.1, acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.2.4: + version "8.8.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" + integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +ajv@^6.10.0, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.0.1: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + anser@^1.4.9: version "1.4.10" resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.10.tgz#befa3eddf282684bd03b63dcda3927aef8c2e35b" integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww== -ansi-colors@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" - integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA== - dependencies: - ansi-wrap "^0.1.0" +ansi-colors@^4.1.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== -ansi-cyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" - integrity sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM= +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: - ansi-wrap "0.1.0" - -ansi-escapes@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" - integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + type-fest "^0.21.3" ansi-fragments@^0.2.1: version "0.2.1" @@ -1076,26 +2138,7 @@ ansi-fragments@^0.2.1: slice-ansi "^2.0.0" strip-ansi "^5.0.0" -ansi-gray@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" - integrity sha1-KWLPVOyXksSFEKPetSRDaGHvclE= - dependencies: - ansi-wrap "0.1.0" - -ansi-red@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" - integrity sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw= - dependencies: - ansi-wrap "0.1.0" - -ansi-regex@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.1.tgz#123d6479e92ad45ad897d4054e3c7ca7db4944e1" - integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw== - -ansi-regex@^4.0.0, ansi-regex@^4.1.0: +ansi-regex@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== @@ -1119,11 +2162,6 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" -ansi-wrap@0.1.0, ansi-wrap@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" - integrity sha1-qCJQ3bABXponyoLoLqYDu/pF768= - anymatch@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" @@ -1132,6 +2170,19 @@ anymatch@^2.0.0: micromatch "^3.1.4" normalize-path "^2.1.1" +anymatch@^3.0.3: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +appdirsjs@^1.2.4: + version "1.2.7" + resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3" + integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -1139,60 +2190,53 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -arr-diff@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" - integrity sha1-aHwydYFjWI/vfeezb6vklesaOZo= - dependencies: - arr-flatten "^1.0.1" - array-slice "^0.2.3" - arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= -arr-flatten@^1.0.1, arr-flatten@^1.1.0: +arr-flatten@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== -arr-union@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-2.1.0.tgz#20f9eab5ec70f5c7d215b1077b1c39161d292c7d" - integrity sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0= - arr-union@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= -array-filter@~0.0.0: - version "0.0.1" - resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" - integrity sha1-fajPLiZijtcygDWB/SH2fKzS7uw= - -array-map@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" - integrity sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI= - -array-reduce@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" - integrity sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys= +array-includes@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" + integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + get-intrinsic "^1.1.1" + is-string "^1.0.7" -array-slice@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5" - integrity sha1-3Tz7gO15c6dRF82sabC5nshhhvU= +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -asap@~2.0.3, asap@~2.0.6: +array.prototype.flatmap@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + +asap@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= @@ -1202,29 +2246,82 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= +ast-types@0.14.2: + version "0.14.2" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd" + integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA== + dependencies: + tslib "^2.0.1" + astral-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== -async@^2.4.0: - version "2.6.3" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== - dependencies: - lodash "^4.17.14" +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +async@^3.2.2: + version "3.2.4" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== atob@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -axios@^0.26.1: - version "0.26.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" - integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== +axios@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" + integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== + dependencies: + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +babel-core@^7.0.0-bridge.0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== + +babel-eslint@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" + integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== dependencies: - follow-redirects "^1.14.8" + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" + eslint-visitor-keys "^1.0.0" + resolve "^1.12.0" + +babel-jest@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" + integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== + dependencies: + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/babel__core" "^7.1.7" + babel-plugin-istanbul "^6.0.0" + babel-preset-jest "^26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + slash "^3.0.0" babel-plugin-dynamic-import-node@^2.3.3: version "2.3.3" @@ -1233,7 +2330,28 @@ babel-plugin-dynamic-import-node@^2.3.3: dependencies: object.assign "^4.1.0" -babel-plugin-module-resolver@^4.0.0: +babel-plugin-istanbul@^6.0.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" + integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-instrument "^5.0.4" + test-exclude "^6.0.0" + +babel-plugin-jest-hoist@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" + integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.0.0" + "@types/babel__traverse" "^7.0.6" + +babel-plugin-module-resolver@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.1.0.tgz#22a4f32f7441727ec1fbf4967b863e1e3e9f33e2" integrity sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA== @@ -1273,7 +2391,25 @@ babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== -babel-preset-fbjs@^3.2.0, babel-preset-fbjs@^3.3.0: +babel-preset-current-node-syntax@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" + integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + dependencies: + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-bigint" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.8.3" + "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-top-level-await" "^7.8.3" + +babel-preset-fbjs@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== @@ -1306,12 +2442,20 @@ babel-preset-fbjs@^3.2.0, babel-preset-fbjs@^3.3.0: "@babel/plugin-transform-template-literals" "^7.0.0" babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" +babel-preset-jest@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" + integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== + dependencies: + babel-plugin-jest-hoist "^26.6.2" + babel-preset-current-node-syntax "^1.0.0" + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base64-js@^1.1.2, base64-js@^1.5.1: +base64-js@^1.1.2, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== @@ -1329,31 +2473,14 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -big-integer@1.6.x: - version "1.6.51" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686" - integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bplist-creator@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/bplist-creator/-/bplist-creator-0.1.0.tgz#018a2d1b587f769e379ef5519103730f8963ba1e" - integrity sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg== - dependencies: - stream-buffers "2.2.x" - -bplist-parser@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.3.1.tgz#e1c90b2ca2a9f9474cc72f6862bbf3fee8341fd1" - integrity sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA== +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== dependencies: - big-integer "1.6.x" + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" brace-expansion@^1.1.7: version "1.1.11" @@ -1379,6 +2506,18 @@ braces@^2.3.1: split-string "^3.0.2" to-regex "^3.0.1" +braces@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-process-hrtime@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" + integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== + browserslist@^4.17.5, browserslist@^4.19.1: version "4.20.2" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.2.tgz#567b41508757ecd904dab4d1c646c612cd3d4f88" @@ -1390,6 +2529,16 @@ browserslist@^4.17.5, browserslist@^4.19.1: node-releases "^2.0.2" picocolors "^1.0.0" +browserslist@^4.21.3: + version "4.21.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" + integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== + dependencies: + caniuse-lite "^1.0.30001400" + electron-to-chromium "^1.4.251" + node-releases "^2.0.6" + update-browserslist-db "^1.0.9" + bser@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" @@ -1397,16 +2546,19 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" -buffer-crc32@^0.2.13: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI= - buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" @@ -1427,7 +2579,7 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" -call-bind@^1.0.0: +call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== @@ -1464,11 +2616,21 @@ camelcase@^5.0.0, camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== +camelcase@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + caniuse-lite@^1.0.30001317: version "1.0.30001325" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001325.tgz#2b4ad19b77aa36f61f2eaf72e636d7481d55e606" integrity sha512-sB1bZHjseSjDtijV1Hb7PB2Zd58Kyx+n/9EotvZ4Qcz2K3d0lWB8dB4nb8wN/TsOGFq3UuAm0zQZNQ4SoR7TrQ== +caniuse-lite@^1.0.30001400: + version "1.0.30001430" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001430.tgz#638a8ae00b5a8a97e66ff43733b2701f81b101fa" + integrity sha512-IB1BXTZKPDVPM7cnV4iaKaHxckvdr/3xtctB3f7Hmenx3qYBhGtTZ//7EllK66aKXW98Lx0+7Yr0kxBtIt3tzg== + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -1476,7 +2638,7 @@ capture-exit@^2.0.0: dependencies: rsvp "^4.8.4" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1, chalk@^2.4.2: +chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1485,24 +2647,34 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" -chardet@^0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" - integrity sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I= +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== ci-info@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== +ci-info@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.5.0.tgz#bfac2a29263de4c829d806b1ab478e35091e171f" + integrity sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw== + +cjs-module-lexer@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f" + integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== + class-utils@^0.3.5: version "0.3.6" resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" @@ -1513,31 +2685,17 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== dependencies: - restore-cursor "^2.0.0" + restore-cursor "^3.1.0" -cli-spinners@^2.0.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" - integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== - -cli-width@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" - integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" +cli-spinners@^2.5.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== cliui@^6.0.0: version "6.0.0" @@ -1562,6 +2720,16 @@ clone@^1.0.2: resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== + +collect-v8-coverage@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" + integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + collection-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" @@ -1594,25 +2762,27 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-support@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" - integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== - colorette@^1.0.7: version "1.4.0" resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + command-exists@^1.2.8: version "1.2.9" resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== -commander@^2.19.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== +commander@^9.4.0: + version "9.4.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd" + integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== commander@~2.13.0: version "2.13.0" @@ -1654,16 +2824,6 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concat-stream@^1.6.0: - version "1.6.2" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" - integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - connect@^3.6.5: version "3.7.0" resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" @@ -1674,6 +2834,11 @@ connect@^3.6.5: parseurl "~1.3.3" utils-merge "1.0.1" +convert-source-map@^1.4.0, convert-source-map@^1.6.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + convert-source-map@^1.7.0: version "1.8.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" @@ -1694,11 +2859,6 @@ core-js-compat@^3.21.0: browserslist "^4.19.1" semver "7.0.0" -core-js@^2.4.1: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" @@ -1714,15 +2874,6 @@ cosmiconfig@^5.0.5, cosmiconfig@^5.1.0: js-yaml "^3.13.1" parse-json "^4.0.0" -cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -1734,11 +2885,46 @@ cross-spawn@^6.0.0: shebang-command "^1.2.0" which "^1.2.9" +cross-spawn@^7.0.0, cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cssom@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" + integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== + +cssom@~0.3.6: + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" + integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== + dependencies: + cssom "~0.3.6" + csstype@^3.0.2: version "3.0.11" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.11.tgz#d66700c5eacfac1940deb4e3ee5642792d85cd33" integrity sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw== +data-urls@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" + integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== + dependencies: + abab "^2.0.3" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.0.0" + dayjs@^1.8.15: version "1.11.0" resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.0.tgz#009bf7ef2e2ea2d5db2e6583d2d39a4b5061e805" @@ -1751,7 +2937,7 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3: dependencies: ms "2.0.0" -debug@^4.1.0, debug@^4.1.1: +debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1763,16 +2949,31 @@ decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= +decimal.js@^10.2.1: + version "10.4.2" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.2.tgz#0341651d1d997d86065a2ce3a441fbd0d8e8b98e" + integrity sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA== + decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= +deep-is@^0.1.3, deep-is@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + deepmerge@^3.2.0: version "3.3.0" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== +deepmerge@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" @@ -1787,6 +2988,14 @@ define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" + integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -1809,6 +3018,11 @@ define-property@^2.0.2: is-descriptor "^1.0.2" isobject "^3.0.1" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + denodeify@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" @@ -1824,20 +3038,63 @@ destroy@1.2.0: resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" + integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +domexception@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" + integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== + dependencies: + webidl-conversions "^5.0.0" + ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= +electron-to-chromium@^1.4.251: + version "1.4.284" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" + integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== + electron-to-chromium@^1.4.84: version "1.4.103" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.103.tgz#abfe376a4d70fa1e1b4b353b95df5d6dfd05da3a" integrity sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg== -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emittery@^0.7.1: + version "0.7.2" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" + integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== emoji-regex@^8.0.0: version "8.0.0" @@ -1849,13 +3106,6 @@ encodeurl@~1.0.2: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= -encoding@^0.1.11: - version "0.1.13" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" - integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== - dependencies: - iconv-lite "^0.6.2" - end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" @@ -1863,6 +3113,13 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + envinfo@^7.7.2: version "7.8.1" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" @@ -1890,6 +3147,52 @@ errorhandler@^1.5.0: accepts "~1.3.7" escape-html "~1.0.3" +es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.5, es-abstract@^1.20.4: + version "1.20.4" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.4.tgz#1d103f9f8d78d4cf0713edcd6d0ed1a46eed5861" + integrity sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.3" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.2" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.4.3" + safe-regex-test "^1.0.0" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" + +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -1915,13 +3218,218 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -etag@~1.8.1: - version "1.8.1" +escodegen@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" + integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== + dependencies: + esprima "^4.0.1" + estraverse "^5.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +eslint-config-prettier@^6.10.1: + version "6.15.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9" + integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== + dependencies: + get-stdin "^6.0.0" + +eslint-plugin-eslint-comments@^3.1.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz#9e1cd7b4413526abb313933071d7aba05ca12ffa" + integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== + dependencies: + escape-string-regexp "^1.0.5" + ignore "^5.0.5" + +eslint-plugin-flowtype@2.50.3: + version "2.50.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz#61379d6dce1d010370acd6681740fd913d68175f" + integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ== + dependencies: + lodash "^4.17.10" + +eslint-plugin-jest@22.4.1: + version "22.4.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz#a5fd6f7a2a41388d16f527073b778013c5189a9c" + integrity sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg== + +eslint-plugin-prettier@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba" + integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-plugin-react-hooks@^4.0.4: + version "4.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" + integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== + +eslint-plugin-react-native-globals@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2" + integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g== + +eslint-plugin-react-native@^3.8.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.11.0.tgz#c73b0886abb397867e5e6689d3a6a418682e6bac" + integrity sha512-7F3OTwrtQPfPFd+VygqKA2VZ0f2fz0M4gJmry/TRE18JBb94/OtMxwbL7Oqwu7FGyrdeIOWnXQbBAveMcSTZIA== + dependencies: + "@babel/traverse" "^7.7.4" + eslint-plugin-react-native-globals "^0.1.1" + +eslint-plugin-react@^7.20.0: + version "7.31.10" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz#6782c2c7fe91c09e715d536067644bbb9491419a" + integrity sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA== + dependencies: + array-includes "^3.1.5" + array.prototype.flatmap "^1.3.0" + doctrine "^2.1.0" + estraverse "^5.3.0" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.5" + object.fromentries "^2.0.5" + object.hasown "^1.1.1" + object.values "^1.1.5" + prop-types "^15.8.1" + resolve "^2.0.0-next.3" + semver "^6.3.0" + string.prototype.matchall "^4.0.7" + +eslint-scope@^5.0.0, eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^2.0.0, eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== + +eslint@^7.32.0: + version "7.32.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" + integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== + dependencies: + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.3" + "@humanwhocodes/config-array" "^0.5.0" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.1.2" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.9" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== + dependencies: + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" + +esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= @@ -1930,11 +3438,6 @@ event-target-shim@^5.0.0, event-target-shim@^5.0.1: resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== -eventemitter3@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" - integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== - exec-sh@^0.3.2: version "0.3.6" resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" @@ -1953,6 +3456,26 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" +execa@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" + integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== + expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" @@ -1966,12 +3489,17 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" -extend-shallow@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-1.1.4.tgz#19d6bf94dfc09d76ba711f39b872d21ff4dd9071" - integrity sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE= +expect@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" + integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== dependencies: - kind-of "^1.1.0" + "@jest/types" "^26.6.2" + ansi-styles "^4.0.0" + jest-get-type "^26.3.0" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" extend-shallow@^2.0.1: version "2.0.1" @@ -1988,15 +3516,6 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: assign-symbols "^1.0.0" is-extendable "^1.0.1" -external-editor@^2.0.4: - version "2.2.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5" - integrity sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A== - dependencies: - chardet "^0.4.0" - iconv-lite "^0.4.17" - tmp "^0.0.33" - extglob@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" @@ -2011,21 +3530,44 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" -fancy-log@^1.3.2: - version "1.3.3" - resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.3.tgz#dbc19154f558690150a23953a0adbd035be45fc7" - integrity sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw== - dependencies: - ansi-gray "^0.1.1" - color-support "^1.1.3" - parse-node-version "^1.0.0" - time-stamp "^1.0.0" - -fast-deep-equal@^3.1.3: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.2.9: + version "3.2.12" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" + integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -2033,52 +3575,12 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -fbjs-css-vars@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" - integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== - -fbjs-scripts@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-1.2.0.tgz#069a0c0634242d10031c6460ef1fccefcdae8b27" - integrity sha512-5krZ8T0Bf8uky0abPoCLrfa7Orxd8UH4Qq8hRUF2RZYNMu+FmEOrBc7Ib3YVONmxTXTlLAvyrrdrVmksDb2OqQ== - dependencies: - "@babel/core" "^7.0.0" - ansi-colors "^1.0.1" - babel-preset-fbjs "^3.2.0" - core-js "^2.4.1" - cross-spawn "^5.1.0" - fancy-log "^1.3.2" - object-assign "^4.0.1" - plugin-error "^0.1.2" - semver "^5.1.0" - through2 "^2.0.0" - -fbjs@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a" - integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA== - dependencies: - core-js "^2.4.1" - fbjs-css-vars "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.18" - -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: - escape-string-regexp "^1.0.5" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== + flat-cache "^3.0.4" fill-range@^4.0.0: version "4.0.0" @@ -2090,6 +3592,13 @@ fill-range@^4.0.0: repeat-string "^1.6.1" to-regex-range "^2.1.0" +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + filter-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" @@ -2132,7 +3641,7 @@ find-up@^3.0.0: dependencies: locate-path "^3.0.0" -find-up@^4.1.0: +find-up@^4.0.0, find-up@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== @@ -2140,16 +3649,65 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -follow-redirects@^1.14.8: - version "1.14.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7" - integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w== +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flatted@^3.1.0: + version "3.2.7" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" + integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== + +flow-parser@0.*: + version "0.192.0" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.192.0.tgz#e2aa03e0c6a844c4d6ccdb4af2bc83cc589d9c8c" + integrity sha512-FLyei0ikf4ab9xlg+05WNmdpOODiH9XVBuw7iI9OZyjIo+cX2L2OUPTovjbWLYLlI41oGTcprbKdB/f9XwBnKw== + +flow-parser@^0.121.0: + version "0.121.0" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.121.0.tgz#9f9898eaec91a9f7c323e9e992d81ab5c58e618f" + integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== + +follow-redirects@^1.15.0: + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" @@ -2185,19 +3743,36 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@^1.2.7: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" +fsevents@^2.1.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== + +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -2217,6 +3792,25 @@ get-intrinsic@^1.0.2: has "^1.0.3" has-symbols "^1.0.1" +get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" + integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.3" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + get-stream@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" @@ -2224,11 +3818,45 @@ get-stream@^4.0.0: dependencies: pump "^3.0.0" +get-stream@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= +glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@^7.1.1, glob@^7.1.2, glob@^7.1.4: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@^7.1.3, glob@^7.1.6: version "7.2.0" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" @@ -2246,11 +3874,40 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0: +globals@^13.6.0, globals@^13.9.0: + version "13.17.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.17.0.tgz#902eb1e680a41da93945adbdcb5a9f361ba69bd4" + integrity sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw== + dependencies: + type-fest "^0.20.2" + +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== + +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -2261,11 +3918,25 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.0.1: +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + +has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + has-value@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" @@ -2304,10 +3975,17 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -hermes-engine@~0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/hermes-engine/-/hermes-engine-0.5.1.tgz#601115e4b1e0a17d9aa91243b96277de4e926e09" - integrity sha512-hLwqh8dejHayjlpvZY40e1aDCDvyP98cWx/L5DhAjSJLH8g4z9Tp08D7y4+3vErDsncPOdf1bxm+zUWpx0/Fxg== +hermes-estree@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.8.0.tgz#530be27243ca49f008381c1f3e8b18fb26bf9ec0" + integrity sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q== + +hermes-parser@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.8.0.tgz#116dceaba32e45b16d6aefb5c4c830eaeba2d257" + integrity sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA== + dependencies: + hermes-estree "0.8.0" hermes-profile-transformer@^0.0.6: version "0.0.6" @@ -2321,6 +3999,23 @@ hoist-non-react-statics@^2.3.1: resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw== +hosted-git-info@^2.1.4: + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== + +html-encoding-sniffer@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" + integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== + dependencies: + whatwg-encoding "^1.0.5" + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + http-errors@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" @@ -2332,19 +4027,49 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -iconv-lite@^0.4.17: +http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" + integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== + +iconv-lite@0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== dependencies: safer-buffer ">= 2.1.2 < 3" -iconv-lite@^0.6.2: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.0.5, ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== image-size@^0.6.0: version "0.6.3" @@ -2359,6 +4084,27 @@ import-fresh@^2.0.0: caller-path "^2.0.0" resolve-from "^3.0.0" +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-local@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" + integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -2367,30 +4113,19 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@~2.0.3: +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -inquirer@^3.0.6: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" - integrity sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ== +internal-slot@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" + integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^2.0.4" - figures "^2.0.0" - lodash "^4.3.0" - mute-stream "0.0.7" - run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" + get-intrinsic "^1.1.0" + has "^1.0.3" + side-channel "^1.0.4" invariant@^2.2.4: version "2.2.4" @@ -2423,11 +4158,31 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== +is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + is-ci@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" @@ -2442,6 +4197,13 @@ is-core-module@^2.8.1: dependencies: has "^1.0.3" +is-core-module@^2.9.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" + integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== + dependencies: + has "^1.0.3" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -2456,6 +4218,13 @@ is-data-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + is-descriptor@^0.1.0: version "0.1.6" resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" @@ -2479,6 +4248,11 @@ is-directory@^0.3.1: resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= +is-docker@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" @@ -2491,6 +4265,11 @@ is-extendable@^1.0.1: dependencies: is-plain-object "^2.0.4" +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" @@ -2501,6 +4280,35 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" @@ -2508,6 +4316,11 @@ is-number@^3.0.0: dependencies: kind-of "^3.0.2" +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" @@ -2515,11 +4328,67 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-stream@^1.0.1, is-stream@^1.1.0: +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + +is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" @@ -2530,6 +4399,13 @@ is-wsl@^1.1.0: resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -2552,106 +4428,475 @@ isobject@^3.0.0, isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" + integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== + +istanbul-lib-instrument@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" -jest-get-type@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.9.0.tgz#1684a0c8a50f2e4901b6644ae861f579eed2ef0e" - integrity sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q== +istanbul-lib-instrument@^5.0.4: + version "5.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" + integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^6.3.0" -jest-haste-map@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" - integrity sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ== +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== dependencies: - "@jest/types" "^24.9.0" - anymatch "^2.0.0" + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" + integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2: + version "3.1.5" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" + integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jest-changed-files@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" + integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== + dependencies: + "@jest/types" "^26.6.2" + execa "^4.0.0" + throat "^5.0.0" + +jest-cli@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" + integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== + dependencies: + "@jest/core" "^26.6.3" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + import-local "^3.0.2" + is-ci "^2.0.0" + jest-config "^26.6.3" + jest-util "^26.6.2" + jest-validate "^26.6.2" + prompts "^2.0.1" + yargs "^15.4.1" + +jest-config@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" + integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^26.6.3" + "@jest/types" "^26.6.2" + babel-jest "^26.6.3" + chalk "^4.0.0" + deepmerge "^4.2.2" + glob "^7.1.1" + graceful-fs "^4.2.4" + jest-environment-jsdom "^26.6.2" + jest-environment-node "^26.6.2" + jest-get-type "^26.3.0" + jest-jasmine2 "^26.6.3" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + micromatch "^4.0.2" + pretty-format "^26.6.2" + +jest-diff@^26.0.0, jest-diff@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" + integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-docblock@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" + integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== + dependencies: + detect-newline "^3.0.0" + +jest-each@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" + integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== + dependencies: + "@jest/types" "^26.6.2" + chalk "^4.0.0" + jest-get-type "^26.3.0" + jest-util "^26.6.2" + pretty-format "^26.6.2" + +jest-environment-jsdom@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" + integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + jest-util "^26.6.2" + jsdom "^16.4.0" + +jest-environment-node@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" + integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + jest-util "^26.6.2" + +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== + +jest-haste-map@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa" + integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== + dependencies: + "@jest/types" "^26.6.2" + "@types/graceful-fs" "^4.1.2" + "@types/node" "*" + anymatch "^3.0.3" fb-watchman "^2.0.0" - graceful-fs "^4.1.15" - invariant "^2.2.4" - jest-serializer "^24.9.0" - jest-util "^24.9.0" - jest-worker "^24.9.0" - micromatch "^3.1.10" + graceful-fs "^4.2.4" + jest-regex-util "^26.0.0" + jest-serializer "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + micromatch "^4.0.2" sane "^4.0.3" walker "^1.0.7" optionalDependencies: - fsevents "^1.2.7" - -jest-message-util@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" - integrity sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw== + fsevents "^2.1.2" + +jest-jasmine2@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" + integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^26.6.2" + "@jest/source-map" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + expect "^26.6.2" + is-generator-fn "^2.0.0" + jest-each "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + pretty-format "^26.6.2" + throat "^5.0.0" + +jest-leak-detector@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" + integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== + dependencies: + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-matcher-utils@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a" + integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== + dependencies: + chalk "^4.0.0" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-message-util@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07" + integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/test-result" "^24.9.0" - "@jest/types" "^24.9.0" - "@types/stack-utils" "^1.0.1" - chalk "^2.0.1" - micromatch "^3.1.10" - slash "^2.0.0" - stack-utils "^1.0.1" - -jest-mock@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" - integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== - dependencies: - "@jest/types" "^24.9.0" - -jest-serializer@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.9.0.tgz#e6d7d7ef96d31e8b9079a714754c5d5c58288e73" - integrity sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ== - -jest-util@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" - integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== - dependencies: - "@jest/console" "^24.9.0" - "@jest/fake-timers" "^24.9.0" - "@jest/source-map" "^24.9.0" - "@jest/test-result" "^24.9.0" - "@jest/types" "^24.9.0" - callsites "^3.0.0" - chalk "^2.0.1" - graceful-fs "^4.1.15" - is-ci "^2.0.0" - mkdirp "^0.5.1" - slash "^2.0.0" - source-map "^0.6.0" + "@jest/types" "^26.6.2" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.4" + micromatch "^4.0.2" + pretty-format "^26.6.2" + slash "^3.0.0" + stack-utils "^2.0.2" + +jest-mock@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302" + integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + +jest-pnp-resolver@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" + integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== + +jest-regex-util@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" + integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== + +jest-regex-util@^27.0.6: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" + integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== + +jest-resolve-dependencies@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" + integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== + dependencies: + "@jest/types" "^26.6.2" + jest-regex-util "^26.0.0" + jest-snapshot "^26.6.2" + +jest-resolve@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" + integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== + dependencies: + "@jest/types" "^26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + jest-pnp-resolver "^1.2.2" + jest-util "^26.6.2" + read-pkg-up "^7.0.1" + resolve "^1.18.1" + slash "^3.0.0" + +jest-runner@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" + integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== + dependencies: + "@jest/console" "^26.6.2" + "@jest/environment" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.7.1" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-docblock "^26.0.0" + jest-haste-map "^26.6.2" + jest-leak-detector "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + jest-runtime "^26.6.3" + jest-util "^26.6.2" + jest-worker "^26.6.2" + source-map-support "^0.5.6" + throat "^5.0.0" + +jest-runtime@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" + integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== + dependencies: + "@jest/console" "^26.6.2" + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/globals" "^26.6.2" + "@jest/source-map" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + cjs-module-lexer "^0.6.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + slash "^3.0.0" + strip-bom "^4.0.0" + yargs "^15.4.1" -jest-validate@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" - integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== +jest-serializer@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1" + integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== dependencies: - "@jest/types" "^24.9.0" - camelcase "^5.3.1" - chalk "^2.0.1" - jest-get-type "^24.9.0" + "@types/node" "*" + graceful-fs "^4.2.4" + +jest-serializer@^27.0.6: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" + integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== + dependencies: + "@types/node" "*" + graceful-fs "^4.2.9" + +jest-snapshot@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" + integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^26.6.2" + "@types/babel__traverse" "^7.0.4" + "@types/prettier" "^2.0.0" + chalk "^4.0.0" + expect "^26.6.2" + graceful-fs "^4.2.4" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + jest-haste-map "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + natural-compare "^1.4.0" + pretty-format "^26.6.2" + semver "^7.3.2" + +jest-util@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" + integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + +jest-util@^27.2.0: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" + integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== + dependencies: + "@jest/types" "^27.5.1" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + +jest-validate@^26.5.2, jest-validate@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" + integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== + dependencies: + "@jest/types" "^26.6.2" + camelcase "^6.0.0" + chalk "^4.0.0" + jest-get-type "^26.3.0" leven "^3.1.0" - pretty-format "^24.9.0" + pretty-format "^26.6.2" + +jest-watcher@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" + integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== + dependencies: + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + jest-util "^26.6.2" + string-length "^4.0.1" + +jest-worker@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" + integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^7.0.0" -jest-worker@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" - integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== +jest-worker@^27.2.0: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== dependencies: + "@types/node" "*" merge-stream "^2.0.0" - supports-color "^6.1.0" + supports-color "^8.0.0" -jetifier@^1.6.2: - version "1.6.8" - resolved "https://registry.yarnpkg.com/jetifier/-/jetifier-1.6.8.tgz#e88068697875cbda98c32472902c4d3756247798" - integrity sha512-3Zi16h6L5tXDRQJTb221cnRoVG9/9OvreLdLU2/ZjRv/GILL+2Cemt0IKvkowwkDpvouAU1DQPOJ7qaiHeIdrw== +jest@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" + integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== + dependencies: + "@jest/core" "^26.6.3" + import-local "^3.0.2" + jest-cli "^26.6.3" + +joi@^17.2.1: + version "17.7.0" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.7.0.tgz#591a33b1fe1aca2bc27f290bcad9b9c1c570a6b3" + integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.0" + "@sideway/pinpoint" "^2.0.0" "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" @@ -2666,10 +4911,68 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -jsc-android@^245459.0.0: - version "245459.0.0" - resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-245459.0.0.tgz#e584258dd0b04c9159a27fb104cd5d491fd202c9" - integrity sha512-wkjURqwaB1daNkDi2OYYbsLnIdC/lUM2nPXQKRs5pqEU9chDg435bjvo+LSaHotDENygHQDHe+ntUkkw2gwMtg== +jsc-android@^250230.2.1: + version "250230.2.1" + resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-250230.2.1.tgz#3790313a970586a03ab0ad47defbc84df54f1b83" + integrity sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q== + +jscodeshift@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.13.1.tgz#69bfe51e54c831296380585c6d9e733512aecdef" + integrity sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ== + dependencies: + "@babel/core" "^7.13.16" + "@babel/parser" "^7.13.16" + "@babel/plugin-proposal-class-properties" "^7.13.0" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8" + "@babel/plugin-proposal-optional-chaining" "^7.13.12" + "@babel/plugin-transform-modules-commonjs" "^7.13.8" + "@babel/preset-flow" "^7.13.13" + "@babel/preset-typescript" "^7.13.0" + "@babel/register" "^7.13.16" + babel-core "^7.0.0-bridge.0" + chalk "^4.1.2" + flow-parser "0.*" + graceful-fs "^4.2.4" + micromatch "^3.1.10" + neo-async "^2.5.0" + node-dir "^0.1.17" + recast "^0.20.4" + temp "^0.8.4" + write-file-atomic "^2.3.0" + +jsdom@^16.4.0: + version "16.7.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" + integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== + dependencies: + abab "^2.0.5" + acorn "^8.2.4" + acorn-globals "^6.0.0" + cssom "^0.4.4" + cssstyle "^2.3.0" + data-urls "^2.0.0" + decimal.js "^10.2.1" + domexception "^2.0.1" + escodegen "^2.0.0" + form-data "^3.0.0" + html-encoding-sniffer "^2.0.1" + http-proxy-agent "^4.0.1" + https-proxy-agent "^5.0.0" + is-potential-custom-element-name "^1.0.1" + nwsapi "^2.2.0" + parse5 "6.0.1" + saxes "^5.0.1" + symbol-tree "^3.2.4" + tough-cookie "^4.0.0" + w3c-hr-time "^1.0.2" + w3c-xmlserializer "^2.0.0" + webidl-conversions "^6.1.0" + whatwg-encoding "^1.0.5" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.5.0" + ws "^7.4.6" + xml-name-validator "^3.0.0" jsesc@^2.5.1: version "2.5.2" @@ -2686,19 +4989,32 @@ json-parse-better-errors@^1.0.1: resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== -json-stable-stringify@^1.0.1: +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - integrity sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8= - dependencies: - jsonify "~0.0.0" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= -json5@^2.1.2: +json5@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== @@ -2717,15 +5033,13 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - integrity sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM= - -kind-of@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44" - integrity sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ= +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.3" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" + integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== + dependencies: + array-includes "^3.1.5" + object.assign "^4.1.3" kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" @@ -2758,11 +5072,37 @@ klaw@^1.0.0: optionalDependencies: graceful-fs "^4.1.9" +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + leven@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + locate-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" @@ -2778,27 +5118,45 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ= -lodash@^4.17.14, lodash@^4.17.15, lodash@^4.3.0: +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash@^4.17.10, lodash@^4.17.15, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== dependencies: - chalk "^2.0.1" + chalk "^4.1.0" + is-unicode-supported "^0.1.0" logkitty@^0.7.1: version "0.7.1" @@ -2816,13 +5174,12 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" -lru-cache@^4.0.1: - version "4.1.5" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" - integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" + yallist "^4.0.0" make-dir@^2.0.0, make-dir@^2.1.0: version "2.1.0" @@ -2832,6 +5189,13 @@ make-dir@^2.0.0, make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" +make-dir@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -2851,93 +5215,113 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -merge-stream@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" - integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE= - dependencies: - readable-stream "^2.0.1" +memoize-one@^5.0.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e" + integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q== merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -metro-babel-register@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-babel-register/-/metro-babel-register-0.59.0.tgz#2bcff65641b36794cf083ba732fbc46cf870fb43" - integrity sha512-JtWc29erdsXO/V3loenXKw+aHUXgj7lt0QPaZKPpctLLy8kcEpI/8pfXXgVK9weXICCpCnYtYncIosAyzh0xjg== - dependencies: - "@babel/core" "^7.0.0" - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-proposal-optional-chaining" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/register" "^7.0.0" - escape-string-regexp "^1.0.5" +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -metro-babel-transformer@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.59.0.tgz#dda99c75d831b00142c42c020c51c103b29f199d" - integrity sha512-fdZJl8rs54GVFXokxRdD7ZrQ1TJjxWzOi/xSP25VR3E8tbm3nBZqS+/ylu643qSr/IueABR+jrlqAyACwGEf6w== +metro-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz#2c60493a4eb7a8d20cc059f05e0e505dc1684d01" + integrity sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw== dependencies: - "@babel/core" "^7.0.0" - metro-source-map "0.59.0" + "@babel/core" "^7.14.0" + hermes-parser "0.8.0" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + +metro-cache-key@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-cache-key/-/metro-cache-key-0.72.3.tgz#dcc3055b6cb7e35b84b4fe736a148affb4ecc718" + integrity sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg== -metro-cache@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.59.0.tgz#ef3c055f276933979b731455dc8317d7a66f0f2d" - integrity sha512-ryWNkSnpyADfRpHGb8BRhQ3+k8bdT/bsxMH2O0ntlZYZ188d8nnYWmxbRvFmEzToJxe/ol4uDw0tJFAaQsN8KA== +metro-cache@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.72.3.tgz#fd079f90b12a81dd5f1567c607c13b14ae282690" + integrity sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A== dependencies: - jest-serializer "^24.9.0" - metro-core "0.59.0" - mkdirp "^0.5.1" + metro-core "0.72.3" rimraf "^2.5.4" -metro-config@0.59.0, metro-config@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.59.0.tgz#9844e388069321dd7403e49f0d495a81f9aa0fef" - integrity sha512-MDsknFG9vZ4Nb5VR6OUDmGHaWz6oZg/FtE3up1zVBKPVRTXE1Z+k7zypnPtMXjMh3WHs/Sy4+wU1xnceE/zdnA== +metro-config@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.72.3.tgz#c2f1a89537c79cec516b1229aa0550dfa769e2ee" + integrity sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw== dependencies: cosmiconfig "^5.0.5" - jest-validate "^24.9.0" - metro "0.59.0" - metro-cache "0.59.0" - metro-core "0.59.0" + jest-validate "^26.5.2" + metro "0.72.3" + metro-cache "0.72.3" + metro-core "0.72.3" + metro-runtime "0.72.3" -metro-core@0.59.0, metro-core@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.59.0.tgz#958cde3fe5c8cd84a78e1899af801ad69e9c83b1" - integrity sha512-kb5LKvV5r2pqMEzGyTid8ai2mIjW13NMduQ8oBmfha7/EPTATcTQ//s+bkhAs1toQD8vqVvjAb0cPNjWQEmcmQ== +metro-core@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.72.3.tgz#e3a276d54ecc8fe667127347a1bfd3f8c0009ccb" + integrity sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A== dependencies: - jest-haste-map "^24.9.0" lodash.throttle "^4.1.1" - metro-resolver "0.59.0" - wordwrap "^1.0.0" + metro-resolver "0.72.3" + +metro-file-map@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-file-map/-/metro-file-map-0.72.3.tgz#94f6d4969480aa7f47cfe2c5f365ad4e85051f12" + integrity sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA== + dependencies: + abort-controller "^3.0.0" + anymatch "^3.0.3" + debug "^2.2.0" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + invariant "^2.2.4" + jest-regex-util "^27.0.6" + jest-serializer "^27.0.6" + jest-util "^27.2.0" + jest-worker "^27.2.0" + micromatch "^4.0.4" + walker "^1.0.7" + optionalDependencies: + fsevents "^2.1.2" + +metro-hermes-compiler@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz#e9ab4d25419eedcc72c73842c8da681a4a7e691e" + integrity sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg== -metro-inspector-proxy@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.59.0.tgz#39d1390772d13767fc595be9a1a7074e2425cf8e" - integrity sha512-hPeAuQcofTOH0F+2GEZqWkvkVY1/skezSSlMocDQDaqds+Kw6JgdA7FlZXxnKmQ/jYrWUzff/pl8SUCDwuYthQ== +metro-inspector-proxy@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz#8d7ff4240fc414af5b72d86dac2485647fc3cf09" + integrity sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw== dependencies: connect "^3.6.5" debug "^2.2.0" - ws "^1.1.5" - yargs "^14.2.0" + ws "^7.5.1" + yargs "^15.3.1" -metro-minify-uglify@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.59.0.tgz#6491876308d878742f7b894d7fca4af356886dd5" - integrity sha512-7IzVgCVWZMymgZ/quieg/9v5EQ8QmZWAgDc86Zp9j0Vy6tQTjUn6jlU+YAKW3mfMEjMr6iIUzCD8YklX78tFAw== +metro-minify-uglify@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz#a9d4cd27933b29cfe95d8406b40d185567a93d39" + integrity sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA== dependencies: uglify-es "^3.1.9" -metro-react-native-babel-preset@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.59.0.tgz#20e020bc6ac9849e1477de1333d303ed42aba225" - integrity sha512-BoO6ncPfceIDReIH8pQ5tQptcGo5yRWQXJGVXfANbiKLq4tfgdZB1C1e2rMUJ6iypmeJU9dzl+EhPmIFKtgREg== +metro-react-native-babel-preset@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz#e549199fa310fef34364fdf19bd210afd0c89432" + integrity sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw== dependencies: + "@babel/core" "^7.14.0" + "@babel/plugin-proposal-async-generator-functions" "^7.0.0" "@babel/plugin-proposal-class-properties" "^7.0.0" "@babel/plugin-proposal-export-default-from" "^7.0.0" "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" @@ -2950,23 +5334,22 @@ metro-react-native-babel-preset@0.59.0: "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0" "@babel/plugin-syntax-optional-chaining" "^7.0.0" "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-async-to-generator" "^7.0.0" "@babel/plugin-transform-block-scoping" "^7.0.0" "@babel/plugin-transform-classes" "^7.0.0" "@babel/plugin-transform-computed-properties" "^7.0.0" "@babel/plugin-transform-destructuring" "^7.0.0" "@babel/plugin-transform-exponentiation-operator" "^7.0.0" "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-for-of" "^7.0.0" "@babel/plugin-transform-function-name" "^7.0.0" "@babel/plugin-transform-literals" "^7.0.0" "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-object-assign" "^7.0.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0" "@babel/plugin-transform-parameters" "^7.0.0" "@babel/plugin-transform-react-display-name" "^7.0.0" "@babel/plugin-transform-react-jsx" "^7.0.0" "@babel/plugin-transform-react-jsx-self" "^7.0.0" "@babel/plugin-transform-react-jsx-source" "^7.0.0" - "@babel/plugin-transform-regenerator" "^7.0.0" "@babel/plugin-transform-runtime" "^7.0.0" "@babel/plugin-transform-shorthand-properties" "^7.0.0" "@babel/plugin-transform-spread" "^7.0.0" @@ -2977,154 +5360,145 @@ metro-react-native-babel-preset@0.59.0: "@babel/template" "^7.0.0" react-refresh "^0.4.0" -metro-react-native-babel-preset@^0.64.0: - version "0.64.0" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.64.0.tgz#76861408681dfda3c1d962eb31a8994918c976f8" - integrity sha512-HcZ0RWQRuJfpPiaHyFQJzcym+/dDIVUPwUAXWoub/C4GkGu+mPjp8vqK6g0FxokCnnI2TK0gZTza2IDfiNNscQ== - dependencies: - "@babel/core" "^7.0.0" - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-export-default-from" "^7.0.0" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-proposal-object-rest-spread" "^7.0.0" - "@babel/plugin-proposal-optional-catch-binding" "^7.0.0" - "@babel/plugin-proposal-optional-chaining" "^7.0.0" - "@babel/plugin-syntax-dynamic-import" "^7.0.0" - "@babel/plugin-syntax-export-default-from" "^7.0.0" - "@babel/plugin-syntax-flow" "^7.2.0" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-syntax-optional-chaining" "^7.0.0" - "@babel/plugin-transform-arrow-functions" "^7.0.0" - "@babel/plugin-transform-block-scoping" "^7.0.0" - "@babel/plugin-transform-classes" "^7.0.0" - "@babel/plugin-transform-computed-properties" "^7.0.0" - "@babel/plugin-transform-destructuring" "^7.0.0" - "@babel/plugin-transform-exponentiation-operator" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-for-of" "^7.0.0" - "@babel/plugin-transform-function-name" "^7.0.0" - "@babel/plugin-transform-literals" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-object-assign" "^7.0.0" - "@babel/plugin-transform-parameters" "^7.0.0" - "@babel/plugin-transform-react-display-name" "^7.0.0" - "@babel/plugin-transform-react-jsx" "^7.0.0" - "@babel/plugin-transform-react-jsx-self" "^7.0.0" - "@babel/plugin-transform-react-jsx-source" "^7.0.0" - "@babel/plugin-transform-regenerator" "^7.0.0" - "@babel/plugin-transform-runtime" "^7.0.0" - "@babel/plugin-transform-shorthand-properties" "^7.0.0" - "@babel/plugin-transform-spread" "^7.0.0" - "@babel/plugin-transform-sticky-regex" "^7.0.0" - "@babel/plugin-transform-template-literals" "^7.0.0" - "@babel/plugin-transform-typescript" "^7.5.0" - "@babel/plugin-transform-unicode-regex" "^7.0.0" - "@babel/template" "^7.0.0" - react-refresh "^0.4.0" +metro-react-native-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz#f8eda8c07c0082cbdbef47a3293edc41587c6b5a" + integrity sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA== + dependencies: + "@babel/core" "^7.14.0" + babel-preset-fbjs "^3.4.0" + hermes-parser "0.8.0" + metro-babel-transformer "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-source-map "0.72.3" + nullthrows "^1.1.1" -metro-react-native-babel-transformer@0.59.0, metro-react-native-babel-transformer@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.59.0.tgz#9b3dfd6ad35c6ef37fc4ce4d20a2eb67fabbb4be" - integrity sha512-1O3wrnMq4NcPQ1asEcl9lRDn/t+F1Oef6S9WaYVIKEhg9m/EQRGVrrTVP+R6B5Eeaj3+zNKbzM8Dx/NWy1hUbQ== +metro-resolver@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.72.3.tgz#c64ce160454ac850a15431509f54a587cb006540" + integrity sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w== dependencies: - "@babel/core" "^7.0.0" - babel-preset-fbjs "^3.3.0" - metro-babel-transformer "0.59.0" - metro-react-native-babel-preset "0.59.0" - metro-source-map "0.59.0" + absolute-path "^0.0.0" -metro-resolver@0.59.0, metro-resolver@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.59.0.tgz#fbc9d7c95f094c52807877d0011feffb9e896fad" - integrity sha512-lbgiumnwoVosffEI96z0FGuq1ejTorHAj3QYUPmp5dFMfitRxLP7Wm/WP9l4ZZjIptxTExsJwuEff1SLRCPD9w== +metro-runtime@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-runtime/-/metro-runtime-0.72.3.tgz#1485ed7b5f06d09ebb40c83efcf8accc8d30b8b9" + integrity sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA== dependencies: - absolute-path "^0.0.0" + "@babel/runtime" "^7.0.0" + react-refresh "^0.4.0" -metro-source-map@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.59.0.tgz#e9beb9fc51bfb4e060f95820cf1508fc122d23f7" - integrity sha512-0w5CmCM+ybSqXIjqU4RiK40t4bvANL6lafabQ2GP2XD3vSwkLY+StWzCtsb4mPuyi9R/SgoLBel+ZOXHXAH0eQ== +metro-source-map@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.72.3.tgz#5efcf354413804a62ff97864e797f60ef3cc689e" + integrity sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ== dependencies: - "@babel/traverse" "^7.0.0" + "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" invariant "^2.2.4" - metro-symbolicate "0.59.0" - ob1 "0.59.0" + metro-symbolicate "0.72.3" + nullthrows "^1.1.1" + ob1 "0.72.3" source-map "^0.5.6" vlq "^1.0.0" -metro-symbolicate@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.59.0.tgz#fc7f93957a42b02c2bfc57ed1e8f393f5f636a54" - integrity sha512-asLaF2A7rndrToGFIknL13aiohwPJ95RKHf0NM3hP/nipiLDoMzXT6ZnQvBqDxkUKyP+51AI75DMtb+Wcyw4Bw== +metro-symbolicate@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz#093d4f8c7957bcad9ca2ab2047caa90b1ee1b0c1" + integrity sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw== dependencies: invariant "^2.2.4" - metro-source-map "0.59.0" + metro-source-map "0.72.3" + nullthrows "^1.1.1" source-map "^0.5.6" through2 "^2.0.1" vlq "^1.0.0" -metro@0.59.0, metro@^0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/metro/-/metro-0.59.0.tgz#64a87cd61357814a4f279518e0781b1eab5934b8" - integrity sha512-OpVgYXyuTvouusFZQJ/UYKEbwfLmialrSCUUTGTFaBor6UMUHZgXPYtK86LzesgMqRc8aiuTQVO78iKW2Iz3wg== +metro-transform-plugins@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz#b00e5a9f24bff7434ea7a8e9108eebc8386b9ee4" + integrity sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.14.0" + nullthrows "^1.1.1" + +metro-transform-worker@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz#bdc6cc708ea114bc085e11d675b8ff626d7e6db7" + integrity sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/types" "^7.0.0" + babel-preset-fbjs "^3.4.0" + metro "0.72.3" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-hermes-compiler "0.72.3" + metro-source-map "0.72.3" + metro-transform-plugins "0.72.3" + nullthrows "^1.1.1" + +metro@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro/-/metro-0.72.3.tgz#eb587037d62f48a0c33c8d88f26666b4083bb61e" + integrity sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg== dependencies: "@babel/code-frame" "^7.0.0" - "@babel/core" "^7.0.0" - "@babel/generator" "^7.5.0" - "@babel/parser" "^7.0.0" - "@babel/plugin-external-helpers" "^7.0.0" + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" "@babel/template" "^7.0.0" - "@babel/traverse" "^7.0.0" + "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" absolute-path "^0.0.0" - async "^2.4.0" - babel-preset-fbjs "^3.3.0" - buffer-crc32 "^0.2.13" - chalk "^2.4.1" + accepts "^1.3.7" + async "^3.2.2" + chalk "^4.0.0" ci-info "^2.0.0" - concat-stream "^1.6.0" connect "^3.6.5" debug "^2.2.0" denodeify "^1.2.1" error-stack-parser "^2.0.6" - eventemitter3 "^3.0.0" - fbjs "^1.0.0" fs-extra "^1.0.0" - graceful-fs "^4.1.3" + graceful-fs "^4.2.4" + hermes-parser "0.8.0" image-size "^0.6.0" invariant "^2.2.4" - jest-haste-map "^24.9.0" - jest-worker "^24.9.0" - json-stable-stringify "^1.0.1" + jest-worker "^27.2.0" lodash.throttle "^4.1.1" - merge-stream "^1.0.1" - metro-babel-register "0.59.0" - metro-babel-transformer "0.59.0" - metro-cache "0.59.0" - metro-config "0.59.0" - metro-core "0.59.0" - metro-inspector-proxy "0.59.0" - metro-minify-uglify "0.59.0" - metro-react-native-babel-preset "0.59.0" - metro-resolver "0.59.0" - metro-source-map "0.59.0" - metro-symbolicate "0.59.0" - mime-types "2.1.11" - mkdirp "^0.5.1" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-file-map "0.72.3" + metro-hermes-compiler "0.72.3" + metro-inspector-proxy "0.72.3" + metro-minify-uglify "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + metro-symbolicate "0.72.3" + metro-transform-plugins "0.72.3" + metro-transform-worker "0.72.3" + mime-types "^2.1.27" node-fetch "^2.2.0" nullthrows "^1.1.1" - resolve "^1.5.0" rimraf "^2.5.4" serialize-error "^2.1.0" source-map "^0.5.6" - strip-ansi "^4.0.0" + strip-ansi "^6.0.0" temp "0.8.3" - throat "^4.1.0" - wordwrap "^1.0.0" - ws "^1.1.5" - xpipe "^1.0.5" - yargs "^14.2.0" + throat "^5.0.0" + ws "^7.5.1" + yargs "^15.3.1" micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" @@ -3145,24 +5519,20 @@ micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" +micromatch@^4.0.2, micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-db@~1.23.0: - version "1.23.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.23.0.tgz#a31b4070adaea27d732ea333740a64d0ec9a6659" - integrity sha1-oxtAcK2uon1zLqMzdApk0OyaZlk= - -mime-types@2.1.11: - version "2.1.11" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.11.tgz#c259c471bda808a85d6cd193b430a5fae4473b3c" - integrity sha1-wlnEcb2oCKhdbNGTtDCl+uRHOzw= - dependencies: - mime-db "~1.23.0" - -mime-types@~2.1.34: +mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -3179,12 +5549,12 @@ mime@^2.4.1: resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -minimatch@^3.0.4: +minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -3226,16 +5596,6 @@ ms@2.1.3: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= - -nan@^2.12.1: - version "2.15.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee" - integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ== - nanoid@^3.1.23: version "3.3.2" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.2.tgz#c89622fafb4381cd221421c69ec58547a1eec557" @@ -3258,28 +5618,42 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + negotiator@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== +neo-async@^2.5.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + nice-try@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== -nocache@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/nocache/-/nocache-2.1.0.tgz#120c9ffec43b5729b1d5de88cd71aa75a0ba491f" - integrity sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q== +nocache@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/nocache/-/nocache-3.0.4.tgz#5b37a56ec6e09fc7d401dceaed2eab40c8bfdf79" + integrity sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw== -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== +node-dir@^0.1.17: + version "0.1.17" + resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5" + integrity sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg== dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" + minimatch "^3.0.2" node-fetch@^2.2.0, node-fetch@^2.6.0: version "2.6.7" @@ -3293,16 +5667,43 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= +node-notifier@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" + integrity sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg== + dependencies: + growly "^1.3.0" + is-wsl "^2.2.0" + semver "^7.3.2" + shellwords "^0.1.1" + uuid "^8.3.0" + which "^2.0.2" + node-releases@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01" integrity sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg== +node-releases@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" + integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== + node-stream-zip@^1.9.1: version "1.15.0" resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea" integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== +normalize-package-data@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" @@ -3310,6 +5711,11 @@ normalize-path@^2.1.1: dependencies: remove-trailing-separator "^1.0.1" +normalize-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -3317,17 +5723,29 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" +npm-run-path@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + nullthrows@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== -ob1@0.59.0: - version "0.59.0" - resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.59.0.tgz#ee103619ef5cb697f2866e3577da6f0ecd565a36" - integrity sha512-opXMTxyWJ9m68ZglCxwo0OPRESIC/iGmKFPXEXzMZqsVIrgoRXOHmoMDkQzz4y3irVjbyPJRAh5pI9fd0MJTFQ== +nwsapi@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" + integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== -object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +ob1@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.72.3.tgz#fc1efcfe156f12ed23615f2465a796faad8b91e4" + integrity sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg== + +object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= @@ -3341,6 +5759,11 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" +object-inspect@^1.12.2, object-inspect@^1.9.0: + version "1.12.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" + integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== + object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" @@ -3363,6 +5786,42 @@ object.assign@^4.1.0: has-symbols "^1.0.1" object-keys "^1.1.1" +object.assign@^4.1.3, object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.entries@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" + integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.fromentries@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" + integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.hasown@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" + integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== + dependencies: + define-properties "^1.1.4" + es-abstract "^1.19.5" + object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" @@ -3370,6 +5829,15 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" +object.values@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" + integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -3396,12 +5864,12 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= +onetime@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: - mimic-fn "^1.0.0" + mimic-fn "^2.1.0" open@^6.2.0: version "6.4.0" @@ -3410,28 +5878,55 @@ open@^6.2.0: dependencies: is-wsl "^1.1.0" -options@>=0.0.5: - version "0.0.6" - resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" - integrity sha1-7CLTEoBrtT5zF3Pnza788cZDEo8= - -ora@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-3.4.0.tgz#bf0752491059a3ef3ed4c85097531de9fdbcd318" - integrity sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg== - dependencies: - chalk "^2.4.2" - cli-cursor "^2.1.0" - cli-spinners "^2.0.0" - log-symbols "^2.2.0" - strip-ansi "^5.2.0" +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" wcwidth "^1.0.1" -os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: +os-tmpdir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= +p-each-series@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" + integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== + p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -3444,6 +5939,13 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-locate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" @@ -3458,11 +5960,25 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + parse-json@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" @@ -3471,10 +5987,20 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" -parse-node-version@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b" - integrity sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA== +parse-json@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse5@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== parseurl@~1.3.3: version "1.3.3" @@ -3506,22 +6032,37 @@ path-key@^2.0.0, path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== +picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pify@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== -pirates@^4.0.5: +pirates@^4.0.1, pirates@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== @@ -3533,6 +6074,13 @@ pkg-dir@^3.0.0: dependencies: find-up "^3.0.0" +pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + pkg-up@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" @@ -3540,61 +6088,52 @@ pkg-up@^3.1.0: dependencies: find-up "^3.0.0" -plist@^3.0.1, plist@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.5.tgz#2cbeb52d10e3cdccccf0c11a63a85d830970a987" - integrity sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA== - dependencies: - base64-js "^1.5.1" - xmlbuilder "^9.0.7" - -plugin-error@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/plugin-error/-/plugin-error-0.1.2.tgz#3b9bb3335ccf00f425e07437e19276967da47ace" - integrity sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4= - dependencies: - ansi-cyan "^0.1.1" - ansi-red "^0.1.1" - arr-diff "^1.0.1" - arr-union "^2.0.1" - extend-shallow "^1.1.2" - posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= -pretty-format@^24.9.0: - version "24.9.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" - integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== dependencies: - "@jest/types" "^24.9.0" - ansi-regex "^4.0.0" - ansi-styles "^3.2.0" - react-is "^16.8.4" + fast-diff "^1.1.2" + +prettier@^2.0.2: + version "2.7.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" + integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== -pretty-format@^25.1.0, pretty-format@^25.2.0: - version "25.5.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a" - integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ== +pretty-format@^26.0.0, pretty-format@^26.5.2, pretty-format@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" + integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== dependencies: - "@jest/types" "^25.5.0" + "@jest/types" "^26.6.2" ansi-regex "^5.0.0" ansi-styles "^4.0.0" - react-is "^16.12.0" + react-is "^17.0.1" process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -promise@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== - dependencies: - asap "~2.0.3" +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== promise@^8.0.3: version "8.1.0" @@ -3603,7 +6142,15 @@ promise@^8.0.3: dependencies: asap "~2.0.6" -prop-types@^15.6.2, prop-types@^15.7.2: +prompts@^2.0.1, prompts@^2.4.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" + integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.5" + +prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== @@ -3612,10 +6159,15 @@ prop-types@^15.6.2, prop-types@^15.7.2: object-assign "^4.1.1" react-is "^16.13.1" -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +psl@^1.1.33: + version "1.9.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== pump@^3.0.0: version "3.0.0" @@ -3625,6 +6177,11 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + query-string@^7.0.0: version "7.1.1" resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" @@ -3635,15 +6192,25 @@ query-string@^7.0.0: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" +querystringify@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + range-parser@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -react-devtools-core@^4.6.0: - version "4.24.3" - resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.24.3.tgz#371fef3f5c639db0dc59eeef334dd5e10ac61661" - integrity sha512-+htKZxLxDN14jhRG3+IXRiJqNSGHUiPYrMtv9e7qlZxcbKeJjVs+C/hd8kZF5rydp3faBwFN6ZpTaZnLA3/ZGA== +react-devtools-core@4.24.0: + version "4.24.0" + resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.24.0.tgz#7daa196bdc64f3626b3f54f2ff2b96f7c4fdf017" + integrity sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg== dependencies: shell-quote "^1.6.1" ws "^7" @@ -3653,20 +6220,45 @@ react-freeze@^1.0.0: resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.0.tgz#b21c65fe1783743007c8c9a2952b1c8879a77354" integrity sha512-yQaiOqDmoKqks56LN9MTgY06O0qQHgV4FUrikH357DydArSZHQhl0BJFqGKIZoTqi8JizF9Dxhuk1FIZD6qCaw== -react-is@^16.12.0, react-is@^16.13.0, react-is@^16.13.1, react-is@^16.8.4: +"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.1.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" + integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== + +react-is@^16.13.0, react-is@^16.13.1: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -react-native-loading-spinner-overlay@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/react-native-loading-spinner-overlay/-/react-native-loading-spinner-overlay-3.0.0.tgz#20df946b2d6a70a6e957a74473200ff660732e56" - integrity sha512-SmRCmfY795/Jxm9JHoyE0I6ry9uBT7m/RYAPNm0vlfZr9dz39HlzIt4h0MvcZvgSmUjEkHm6DzWnuWSO1yKr4A== +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + +react-native-codegen@^0.70.6: + version "0.70.6" + resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb" + integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== + dependencies: + "@babel/parser" "^7.14.0" + flow-parser "^0.121.0" + jscodeshift "^0.13.1" + nullthrows "^1.1.1" + +react-native-gradle-plugin@^0.70.3: + version "0.70.3" + resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz#cbcf0619cbfbddaa9128701aa2d7b4145f9c4fc8" + integrity sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A== + +react-native-loading-spinner-overlay@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/react-native-loading-spinner-overlay/-/react-native-loading-spinner-overlay-3.0.1.tgz#092481b8cce157d3af5ef942f845ad981f96bd36" + integrity sha512-4GdR54HQnKg2HPSSisVizfTLuyhSh4splY9eb8mKiYF1Ihjn/5EmdNo5bN3S7uKPFRC3WLzIZIouX6G6fXfnjw== -react-native-safe-area-context@^3.3.2: - version "3.4.1" - resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-3.4.1.tgz#c967a52903d55fe010b2428e5368b42f1debc0a7" - integrity sha512-xfpVd0CiZR7oBhuwJ2HcZMehg5bjha1Ohu1XHpcT+9ykula0TgovH2BNU0R5Krzf/jBR1LMjR6VabxdlUjqxcA== +react-native-safe-area-context@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.4.1.tgz#239c60b8a9a80eac70a38a822b04c0f1d15ffc01" + integrity sha512-N9XTjiuD73ZpVlejHrUWIFZc+6Z14co1K/p1IFMkImU7+avD69F3y+lhkqA2hN/+vljdZrBSiOwXPkuo43nFQA== react-native-safe-area-view@^1.1.1: version "1.1.1" @@ -3675,62 +6267,110 @@ react-native-safe-area-view@^1.1.1: dependencies: hoist-non-react-statics "^2.3.1" -react-native-screens@^3.7.2: - version "3.13.1" - resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.13.1.tgz#b3b1c5788dca25a71668909f66d87fb35c5c5241" - integrity sha512-xcrnuUs0qUrGpc2gOTDY4VgHHADQwp80mwR1prU/Q0JqbZN5W3koLhuOsT6FkSRKjR5t40l+4LcjhHdpqRB2HA== +react-native-screens@^3.18.2: + version "3.18.2" + resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.18.2.tgz#d7ab2d145258d3db9fa630fa5379dc4474117866" + integrity sha512-ANUEuvMUlsYJ1QKukEhzhfrvOUO9BVH9Nzg+6eWxpn3cfD/O83yPBOF8Mx6x5H/2+sMy+VS5x/chWOOo/U7QJw== dependencies: react-freeze "^1.0.0" warn-once "^0.1.0" -react-native@0.63.4: - version "0.63.4" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.63.4.tgz#2210fdd404c94a5fa6b423c6de86f8e48810ec36" - integrity sha512-I4kM8kYO2mWEYUFITMcpRulcy4/jd+j9T6PbIzR0FuMcz/xwd+JwHoLPa1HmCesvR1RDOw9o4D+OFLwuXXfmGw== - dependencies: - "@babel/runtime" "^7.0.0" - "@react-native-community/cli" "^4.10.0" - "@react-native-community/cli-platform-android" "^4.10.0" - "@react-native-community/cli-platform-ios" "^4.10.0" +react-native@0.70.4: + version "0.70.4" + resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.70.4.tgz#f2a3a7996431a47a45ce1f5097352c5721417516" + integrity sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA== + dependencies: + "@jest/create-cache-key-function" "^29.0.3" + "@react-native-community/cli" "9.2.1" + "@react-native-community/cli-platform-android" "9.2.1" + "@react-native-community/cli-platform-ios" "9.2.1" + "@react-native/assets" "1.0.0" + "@react-native/normalize-color" "2.0.0" + "@react-native/polyfills" "2.0.0" abort-controller "^3.0.0" anser "^1.4.9" base64-js "^1.1.2" event-target-shim "^5.0.1" - fbjs "^1.0.0" - fbjs-scripts "^1.1.0" - hermes-engine "~0.5.0" invariant "^2.2.4" - jsc-android "^245459.0.0" - metro-babel-register "0.59.0" - metro-react-native-babel-transformer "0.59.0" - metro-source-map "0.59.0" + jsc-android "^250230.2.1" + memoize-one "^5.0.0" + metro-react-native-babel-transformer "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + mkdirp "^0.5.1" nullthrows "^1.1.1" - pretty-format "^24.9.0" + pretty-format "^26.5.2" promise "^8.0.3" - prop-types "^15.7.2" - react-devtools-core "^4.6.0" + react-devtools-core "4.24.0" + react-native-codegen "^0.70.6" + react-native-gradle-plugin "^0.70.3" react-refresh "^0.4.0" + react-shallow-renderer "^16.15.0" regenerator-runtime "^0.13.2" - scheduler "0.19.1" + scheduler "^0.22.0" stacktrace-parser "^0.1.3" - use-subscription "^1.0.0" + use-sync-external-store "^1.0.0" whatwg-fetch "^3.0.0" + ws "^6.1.4" react-refresh@^0.4.0: version "0.4.3" resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.3.tgz#966f1750c191672e76e16c2efa569150cc73ab53" integrity sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA== -react@16.13.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e" - integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w== +react-shallow-renderer@^16.15.0: + version "16.15.0" + resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz#48fb2cf9b23d23cde96708fe5273a7d3446f4457" + integrity sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA== dependencies: - loose-envify "^1.1.0" object-assign "^4.1.1" - prop-types "^15.6.2" + react-is "^16.12.0 || ^17.0.0 || ^18.0.0" + +react-test-renderer@18.1.0: + version "18.1.0" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-18.1.0.tgz#35b75754834cf9ab517b6813db94aee0a6b545c3" + integrity sha512-OfuueprJFW7h69GN+kr4Ywin7stcuqaYAt1g7airM5cUgP0BoF5G5CXsPGmXeDeEkncb2fqYNECO4y18sSqphg== + dependencies: + react-is "^18.1.0" + react-shallow-renderer "^16.15.0" + scheduler "^0.22.0" + +react@18.1.0: + version "18.1.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890" + integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ== + dependencies: + loose-envify "^1.1.0" + +read-pkg-up@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" + integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== + dependencies: + find-up "^4.1.0" + read-pkg "^5.2.0" + type-fest "^0.8.1" + +read-pkg@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" + integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== + dependencies: + "@types/normalize-package-data" "^2.4.0" + normalize-package-data "^2.5.0" + parse-json "^5.0.0" + type-fest "^0.6.0" -readable-stream@^2.0.1, readable-stream@^2.2.2, readable-stream@~2.3.6: +readable-stream@^3.4.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -3743,6 +6383,21 @@ readable-stream@^2.0.1, readable-stream@^2.2.2, readable-stream@~2.3.6: string_decoder "~1.1.1" util-deprecate "~1.0.1" +readline@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c" + integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg== + +recast@^0.20.4: + version "0.20.5" + resolved "https://registry.yarnpkg.com/recast/-/recast-0.20.5.tgz#8e2c6c96827a1b339c634dd232957d230553ceae" + integrity sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ== + dependencies: + ast-types "0.14.2" + esprima "~4.0.0" + source-map "~0.6.1" + tslib "^2.0.1" + regenerate-unicode-properties@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56" @@ -3750,6 +6405,13 @@ regenerate-unicode-properties@^10.0.1: dependencies: regenerate "^1.4.2" +regenerate-unicode-properties@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" + integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== + dependencies: + regenerate "^1.4.2" + regenerate@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" @@ -3760,13 +6422,6 @@ regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== -regenerator-transform@^0.14.2: - version "0.14.5" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.5.tgz#c98da154683671c9c4dcb16ece736517e1b7feb4" - integrity sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw== - dependencies: - "@babel/runtime" "^7.8.4" - regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -3775,6 +6430,20 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" +regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + +regexpp@^3.0.0, regexpp@^3.1.0, regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== + regexpu-core@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.0.1.tgz#c531122a7840de743dcf9c83e923b5560323ced3" @@ -3787,11 +6456,28 @@ regexpu-core@^5.0.1: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.0.0" +regexpu-core@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.1.tgz#a69c26f324c1e962e9ffd0b88b055caba8089139" + integrity sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties "^10.1.0" + regjsgen "^0.7.1" + regjsparser "^0.9.1" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.0.0" + regjsgen@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.6.0.tgz#83414c5354afd7d6627b16af5f10f41c4e71808d" integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA== +regjsgen@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.7.1.tgz#ee5ef30e18d3f09b7c369b76e7c2373ed25546f6" + integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== + regjsparser@^0.8.2: version "0.8.4" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.8.4.tgz#8a14285ffcc5de78c5b95d62bbf413b6bc132d5f" @@ -3799,6 +6485,13 @@ regjsparser@^0.8.2: dependencies: jsesc "~0.5.0" +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== + dependencies: + jsesc "~0.5.0" + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -3819,27 +6512,63 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + require-main-filename@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + reselect@^4.0.0: version "4.1.5" resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.5.tgz#852c361247198da6756d07d9296c2b51eddb79f6" integrity sha512-uVdlz8J7OO+ASpBYoz1Zypgx0KasCY20H+N8JD13oUMtPvSHQuscrHop4KbXrbsBcdB9Ds7lVK7eRkBIfO43vQ== +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== + dependencies: + resolve-from "^5.0.0" + resolve-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" integrity sha1-six699nWiBvItuZTM17rywoYh0g= +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@^1.13.1, resolve@^1.14.2, resolve@^1.5.0: +resolve@^1.10.0, resolve@^1.12.0, resolve@^1.18.1: + version "1.22.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" + integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + dependencies: + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^1.13.1, resolve@^1.14.2: version "1.22.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== @@ -3848,12 +6577,21 @@ resolve@^1.13.1, resolve@^1.14.2, resolve@^1.5.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= +resolve@^2.0.0-next.3: + version "2.0.0-next.4" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" + integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== + dependencies: + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== dependencies: - onetime "^2.0.0" + onetime "^5.1.0" signal-exit "^3.0.2" ret@~0.1.10: @@ -3861,6 +6599,11 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rimraf@^2.5.4: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" @@ -3868,38 +6611,56 @@ rimraf@^2.5.4: dependencies: glob "^7.1.3" +rimraf@^3.0.0, rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + rimraf@~2.2.6: version "2.2.8" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" integrity sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI= +rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + rsvp@^4.8.4: version "4.8.5" resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== -run-async@^2.2.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" - integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== - -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" - integrity sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74= +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: - rx-lite "*" - -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - integrity sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ= + queue-microtask "^1.2.2" safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== +safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" @@ -3907,7 +6668,7 @@ safe-regex@^1.1.0: dependencies: ret "~0.1.10" -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": +"safer-buffer@>= 2.1.2 < 3": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -3927,34 +6688,42 @@ sane@^4.0.3: minimist "^1.1.1" walker "~1.0.5" -sax@^1.2.1: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== +saxes@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" + integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== + dependencies: + xmlchars "^2.2.0" -scheduler@0.19.1: - version "0.19.1" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196" - integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA== +scheduler@^0.22.0: + version "0.22.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.22.0.tgz#83a5d63594edf074add9a7198b1bae76c3db01b8" + integrity sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" + +"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== semver@7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@^5.1.0, semver@^5.5.0, semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: +semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^7.2.1, semver@^7.3.2, semver@^7.3.7: + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== + dependencies: + lru-cache "^6.0.0" + send@0.18.0: version "0.18.0" resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" @@ -4004,11 +6773,6 @@ set-value@^2.0.0, set-value@^2.0.1: is-plain-object "^2.0.3" split-string "^3.0.1" -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= - setprototypeof@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" @@ -4028,44 +6792,56 @@ shebang-command@^1.2.0: dependencies: shebang-regex "^1.0.0" +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= -shell-quote@1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" - integrity sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c= - dependencies: - array-filter "~0.0.0" - array-map "~0.0.0" - array-reduce "~0.0.0" - jsonify "~0.0.0" +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== shell-quote@^1.6.1: version "1.7.3" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== +shell-quote@^1.7.3: + version "1.7.4" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" + integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -simple-plist@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/simple-plist/-/simple-plist-1.3.1.tgz#16e1d8f62c6c9b691b8383127663d834112fb017" - integrity sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw== - dependencies: - bplist-creator "0.1.0" - bplist-parser "0.3.1" - plist "^3.0.5" - -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== +sisteransi@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== slash@^3.0.0: version "3.0.0" @@ -4081,6 +6857,15 @@ slice-ansi@^2.0.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -4122,7 +6907,7 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.16: +source-map-support@^0.5.16, source-map-support@^0.5.6: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -4140,7 +6925,7 @@ source-map@^0.5.0, source-map@^0.5.6: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= -source-map@^0.6.0, source-map@~0.6.1: +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -4150,6 +6935,32 @@ source-map@^0.7.3: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== +spdx-correct@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" + integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" + integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.12" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" + integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== + split-on-first@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" @@ -4167,10 +6978,10 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -stack-utils@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.5.tgz#a19b0b01947e0029c8e451d5d61a498f5bb1471b" - integrity sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ== +stack-utils@^2.0.2: + version "2.0.5" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" + integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA== dependencies: escape-string-regexp "^2.0.0" @@ -4204,34 +7015,20 @@ statuses@~1.5.0: resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= -stream-buffers@2.2.x: - version "2.2.0" - resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" - integrity sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ= - strict-uri-encode@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= -string-width@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== +string-length@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" + integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" + char-regex "^1.0.2" + strip-ansi "^6.0.0" -string-width@^4.1.0, string-width@^4.2.0: +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4240,6 +7037,45 @@ string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string.prototype.matchall@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" + integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + get-intrinsic "^1.1.1" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + regexp.prototype.flags "^1.4.1" + side-channel "^1.0.4" + +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" @@ -4247,14 +7083,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= - dependencies: - ansi-regex "^3.0.0" - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: +strip-ansi@^5.0.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== @@ -4268,11 +7097,26 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1: dependencies: ansi-regex "^5.0.1" +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + sudo-prompt@^9.0.0: version "9.2.1" resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" @@ -4285,25 +7129,49 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -supports-color@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" - integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.1.0: +supports-color@^7.0.0, supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-hyperlinks@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" + integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== + dependencies: + has-flag "^4.0.0" + supports-color "^7.0.0" + supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +table@^6.0.9: + version "6.8.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" + integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + temp@0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.3.tgz#e0c6bc4d26b903124410e4fed81103014dfc1f59" @@ -4312,12 +7180,41 @@ temp@0.8.3: os-tmpdir "^1.0.0" rimraf "~2.2.6" -throat@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" - integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= +temp@^0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.4.tgz#8c97a33a4770072e0a05f919396c7665a7dd59f2" + integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg== + dependencies: + rimraf "~2.6.2" + +terminal-link@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" + integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== + dependencies: + ansi-escapes "^4.2.1" + supports-hyperlinks "^2.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -through2@^2.0.0, through2@^2.0.1: +throat@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" + integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== + +through2@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== @@ -4325,23 +7222,6 @@ through2@^2.0.0, through2@^2.0.1: readable-stream "~2.3.6" xtend "~4.0.1" -through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= - -time-stamp@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" - integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM= - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== - dependencies: - os-tmpdir "~1.0.2" - tmpl@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" @@ -4367,6 +7247,13 @@ to-regex-range@^2.1.0: is-number "^3.0.0" repeat-string "^1.6.1" +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + to-regex@^3.0.1, to-regex@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" @@ -4382,25 +7269,100 @@ toidentifier@1.0.1: resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== +tough-cookie@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" + integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== + dependencies: + psl "^1.1.33" + punycode "^2.1.1" + universalify "^0.2.0" + url-parse "^1.5.3" + +tr46@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" + integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== + dependencies: + punycode "^2.1.1" + tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= +tslib@^1.8.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.0.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + +tsutils@^3.17.1, tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== + dependencies: + tslib "^1.8.1" + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== + dependencies: + prelude-ls "~1.1.2" + +type-detect@4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" + integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== + type-fest@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" -ua-parser-js@^0.7.18: - version "0.7.31" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.31.tgz#649a656b191dffab4f21d5e053e27ca17cbff5c6" - integrity sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ== +typescript@^4.8.3: + version "4.8.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== uglify-es@^3.1.9: version "3.3.9" @@ -4410,10 +7372,15 @@ uglify-es@^3.1.9: commander "~2.13.0" source-map "~0.6.1" -ultron@1.0.x: +unbox-primitive@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" - integrity sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po= + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" @@ -4453,6 +7420,11 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" + integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== + unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -4466,22 +7438,50 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" +update-browserslist-db@^1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" + integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + urix@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= -use-subscription@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.6.0.tgz#86ace4f60675a4c360712975c4933ac95c7e7f35" - integrity sha512-0Y/cTLlZfw547tJhJMoRA16OUbVqRm6DmvGpiGbmLST6BIA5KU5cKlvlz8DVMrACnWpyEjCkgmhLatthP4jUbA== +url-parse@^1.5.3: + version "1.5.10" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== + dependencies: + querystringify "^2.1.1" + requires-port "^1.0.0" + +use-latest-callback@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/use-latest-callback/-/use-latest-callback-0.1.5.tgz#a4a836c08fa72f6608730b5b8f4bbd9c57c04f51" + integrity sha512-HtHatS2U4/h32NlkhupDsPlrbiD27gSH5swBdtXbCAlc6pfOFzaj0FehW/FO12rx8j2Vy4/lJScCiJyM01E+bQ== + +use-sync-external-store@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== -util-deprecate@~1.0.1: +util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= @@ -4491,10 +7491,32 @@ utils-merge@1.0.1: resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +uuid@^8.3.0: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + +v8-to-istanbul@^7.0.0: + version "7.1.2" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz#30898d1a7fa0c84d225a2c1434fb958f290883c1" + integrity sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^1.6.0" + source-map "^0.7.3" + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" vary@~1.1.2: version "1.1.2" @@ -4506,6 +7528,20 @@ vlq@^1.0.0: resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== +w3c-hr-time@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" + integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== + dependencies: + browser-process-hrtime "^1.0.0" + +w3c-xmlserializer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" + integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== + dependencies: + xml-name-validator "^3.0.0" + walker@^1.0.7, walker@~1.0.5: version "1.0.8" resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" @@ -4530,11 +7566,33 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= -whatwg-fetch@>=0.10.0, whatwg-fetch@^3.0.0: +webidl-conversions@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" + integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== + +webidl-conversions@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" + integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== + +whatwg-encoding@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-fetch@^3.0.0: version "3.6.2" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== +whatwg-mimetype@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" @@ -4543,6 +7601,26 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" +whatwg-url@^8.0.0, whatwg-url@^8.5.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" + integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== + dependencies: + lodash "^4.7.0" + tr46 "^2.1.0" + webidl-conversions "^6.1.0" + +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -4555,19 +7633,17 @@ which@^1.2.9: dependencies: isexe "^2.0.0" -wordwrap@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== +which@^2.0.1, which@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" + isexe "^2.0.0" + +word-wrap@^1.2.3, word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== wrap-ansi@^6.2.0: version "6.2.0" @@ -4583,43 +7659,51 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -ws@^1.1.0, ws@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" - integrity sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w== +write-file-atomic@^2.3.0: + version "2.4.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" + integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== dependencies: - options ">=0.0.5" - ultron "1.0.x" + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +ws@^6.1.4: + version "6.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" + integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== + dependencies: + async-limiter "~1.0.0" ws@^7: version "7.5.7" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.7.tgz#9e0ac77ee50af70d58326ecff7e85eb3fa375e67" integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A== -xcode@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/xcode/-/xcode-2.1.0.tgz#bab64a7e954bb50ca8d19da7e09531c65a43ecfe" - integrity sha512-uCrmPITrqTEzhn0TtT57fJaNaw8YJs1aCzs+P/QqxsDbvPZSv7XMPPwXrKvHtD6pLjBM/NaVwraWJm8q83Y4iQ== - dependencies: - simple-plist "^1.0.0" - uuid "^3.3.2" - -xmlbuilder@^9.0.7: - version "9.0.7" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" - integrity sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0= +ws@^7.4.6, ws@^7.5.1: + version "7.5.9" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" + integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -xmldoc@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/xmldoc/-/xmldoc-1.1.2.tgz#6666e029fe25470d599cd30e23ff0d1ed50466d7" - integrity sha512-ruPC/fyPNck2BD1dpz0AZZyrEwMOrWTO5lDdIXS91rs3wtm4j+T8Rp2o+zoOYkkAxJTZRPOSnOGei1egoRmKMQ== - dependencies: - sax "^1.2.1" +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xpipe@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/xpipe/-/xpipe-1.0.5.tgz#8dd8bf45fc3f7f55f0e054b878f43a62614dafdf" - integrity sha1-jdi/Rfw/f1Xw4FS4ePQ6YmFNr98= +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== xtend@~4.0.1: version "4.0.2" @@ -4631,18 +7715,10 @@ y18n@^4.0.0: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= - -yargs-parser@^15.0.1: - version "15.0.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.3.tgz#316e263d5febe8b38eef61ac092b33dfcc9b1115" - integrity sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== yargs-parser@^18.1.2: version "18.1.3" @@ -4652,24 +7728,7 @@ yargs-parser@^18.1.2: camelcase "^5.0.0" decamelize "^1.2.0" -yargs@^14.2.0: - version "14.2.3" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414" - integrity sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg== - dependencies: - cliui "^5.0.0" - decamelize "^1.2.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^15.0.1" - -yargs@^15.1.0: +yargs@^15.1.0, yargs@^15.3.1, yargs@^15.4.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== @@ -4685,3 +7744,8 @@ yargs@^15.1.0: which-module "^2.0.0" y18n "^4.0.0" yargs-parser "^18.1.2" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From bc1d57bd3febb1cbc9a8c6d3ea1c33a758caffdc Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 4 Nov 2022 17:28:57 +0200 Subject: [PATCH 035/121] Add new example app --- ReactNativeExample/.buckconfig | 6 + ReactNativeExample/.eslintrc.js | 16 + ReactNativeExample/.gitignore | 64 + ReactNativeExample/.prettierrc.js | 7 + ReactNativeExample/.watchmanconfig | 1 + ReactNativeExample/App.tsx | 120 + ReactNativeExample/Gemfile | 6 + ReactNativeExample/__tests__/App-test.tsx | 14 + ReactNativeExample/_bundle/config | 2 + ReactNativeExample/_node-version | 1 + ReactNativeExample/_ruby-version | 1 + ReactNativeExample/android/app/_BUCK | 55 + ReactNativeExample/android/app/build.gradle | 313 + ReactNativeExample/android/app/build_defs.bzl | 19 + ReactNativeExample/android/app/debug.keystore | Bin 0 -> 2257 bytes .../android/app/proguard-rules.pro | 10 + .../android/app/src/debug/AndroidManifest.xml | 13 + .../ReactNativeFlipper.java | 73 + .../android/app/src/main/AndroidManifest.xml | 26 + .../com/reactnativeexample/MainActivity.java | 48 + .../reactnativeexample/MainApplication.java | 91 + .../MainApplicationReactNativeHost.java | 116 + .../components/MainComponentsRegistry.java | 36 + ...ApplicationTurboModuleManagerDelegate.java | 48 + .../android/app/src/main/jni/CMakeLists.txt | 7 + .../jni/MainApplicationModuleProvider.cpp | 32 + .../main/jni/MainApplicationModuleProvider.h | 16 + ...nApplicationTurboModuleManagerDelegate.cpp | 45 + ...ainApplicationTurboModuleManagerDelegate.h | 38 + .../src/main/jni/MainComponentsRegistry.cpp | 65 + .../app/src/main/jni/MainComponentsRegistry.h | 32 + .../android/app/src/main/jni/OnLoad.cpp | 11 + .../res/drawable/rn_edit_text_material.xml | 36 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3056 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5024 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2096 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2858 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4569 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7098 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6464 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10676 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9250 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 15523 bytes .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/styles.xml | 9 + ReactNativeExample/android/build.gradle | 51 + ReactNativeExample/android/gradle.properties | 40 + .../android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59821 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 + ReactNativeExample/android/gradlew | 234 + ReactNativeExample/android/gradlew.bat | 89 + ReactNativeExample/android/settings.gradle | 11 + ReactNativeExample/app.json | 4 + ReactNativeExample/babel.config.js | 16 + ReactNativeExample/index.js | 9 + ReactNativeExample/ios/Podfile | 62 + ReactNativeExample/ios/Podfile.lock | 502 ++ .../project.pbxproj | 519 ++ .../xcschemes/ReactNativeExample.xcscheme | 88 + .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../ios/ReactNativeExample/AppDelegate.h | 8 + .../ios/ReactNativeExample/AppDelegate.mm | 133 + .../AppIcon.appiconset/Contents.json | 53 + .../Images.xcassets/Contents.json | 6 + .../ios/ReactNativeExample/Info.plist | 52 + .../LaunchScreen.storyboard | 47 + .../ios/ReactNativeExample/main.m | 10 + .../ios/ReactNativeExampleTests/Info.plist | 24 + .../ReactNativeExampleTests.m | 66 + ReactNativeExample/ios/_xcode.env | 11 + ReactNativeExample/metro.config.js | 40 + ReactNativeExample/package.json | 58 + ReactNativeExample/src/App.tsx | 34 + ReactNativeExample/src/components/Button.tsx | 23 + ReactNativeExample/src/components/Heading.tsx | 50 + .../PrimerCardNumberInputElement.tsx | 3 + ReactNativeExample/src/components/Section.tsx | 44 + .../src/components/TextField.tsx | 42 + ReactNativeExample/src/helpers/helpers.ts | 10 + ReactNativeExample/src/models/Environment.ts | 51 + ReactNativeExample/src/models/IAppSettings.ts | 42 + .../src/models/IClientSession.ts | 4 + .../src/models/IClientSessionRequestBody.ts | 182 + ReactNativeExample/src/models/IPayment.ts | 78 + .../src/models/RawDataScreenProps.ts | 6 + ReactNativeExample/src/models/Section.tsx | 34 + ReactNativeExample/src/network/APIVersion.ts | 22 + ReactNativeExample/src/network/Environment.ts | 89 + ReactNativeExample/src/network/api.ts | 173 + .../src/screens/CheckoutScreen.tsx | 262 + .../src/screens/HeadlessCheckoutScreen.tsx | 410 + .../src/screens/NewLineItemSreen.tsx | 134 + .../screens/RawAdyenBancontactCardScreen.tsx | 243 + .../src/screens/RawCardDataScreen.tsx | 264 + .../src/screens/RawPhoneNumberScreen.tsx | 174 + .../src/screens/RawRetailOutletScreen.tsx | 184 + .../src/screens/ResultScreen.tsx | 65 + .../src/screens/SettingsScreen.tsx | 800 ++ ReactNativeExample/src/styles.tsx | 54 + ReactNativeExample/tsconfig.json | 10 + ReactNativeExample/yarn.lock | 7307 +++++++++++++++++ 102 files changed, 14330 insertions(+) create mode 100644 ReactNativeExample/.buckconfig create mode 100644 ReactNativeExample/.eslintrc.js create mode 100644 ReactNativeExample/.gitignore create mode 100644 ReactNativeExample/.prettierrc.js create mode 100644 ReactNativeExample/.watchmanconfig create mode 100644 ReactNativeExample/App.tsx create mode 100644 ReactNativeExample/Gemfile create mode 100644 ReactNativeExample/__tests__/App-test.tsx create mode 100644 ReactNativeExample/_bundle/config create mode 100644 ReactNativeExample/_node-version create mode 100644 ReactNativeExample/_ruby-version create mode 100644 ReactNativeExample/android/app/_BUCK create mode 100644 ReactNativeExample/android/app/build.gradle create mode 100644 ReactNativeExample/android/app/build_defs.bzl create mode 100644 ReactNativeExample/android/app/debug.keystore create mode 100644 ReactNativeExample/android/app/proguard-rules.pro create mode 100644 ReactNativeExample/android/app/src/debug/AndroidManifest.xml create mode 100644 ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java create mode 100644 ReactNativeExample/android/app/src/main/AndroidManifest.xml create mode 100644 ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java create mode 100644 ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java create mode 100644 ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java create mode 100644 ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java create mode 100644 ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java create mode 100644 ReactNativeExample/android/app/src/main/jni/CMakeLists.txt create mode 100644 ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp create mode 100644 ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h create mode 100644 ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp create mode 100644 ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h create mode 100644 ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp create mode 100644 ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h create mode 100644 ReactNativeExample/android/app/src/main/jni/OnLoad.cpp create mode 100644 ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 ReactNativeExample/android/app/src/main/res/values/strings.xml create mode 100644 ReactNativeExample/android/app/src/main/res/values/styles.xml create mode 100644 ReactNativeExample/android/build.gradle create mode 100644 ReactNativeExample/android/gradle.properties create mode 100644 ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar create mode 100644 ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties create mode 100755 ReactNativeExample/android/gradlew create mode 100644 ReactNativeExample/android/gradlew.bat create mode 100644 ReactNativeExample/android/settings.gradle create mode 100644 ReactNativeExample/app.json create mode 100644 ReactNativeExample/babel.config.js create mode 100644 ReactNativeExample/index.js create mode 100644 ReactNativeExample/ios/Podfile create mode 100644 ReactNativeExample/ios/Podfile.lock create mode 100644 ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj create mode 100644 ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme create mode 100644 ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata create mode 100644 ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 ReactNativeExample/ios/ReactNativeExample/AppDelegate.h create mode 100644 ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm create mode 100644 ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json create mode 100644 ReactNativeExample/ios/ReactNativeExample/Info.plist create mode 100644 ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard create mode 100644 ReactNativeExample/ios/ReactNativeExample/main.m create mode 100644 ReactNativeExample/ios/ReactNativeExampleTests/Info.plist create mode 100644 ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m create mode 100644 ReactNativeExample/ios/_xcode.env create mode 100644 ReactNativeExample/metro.config.js create mode 100644 ReactNativeExample/package.json create mode 100644 ReactNativeExample/src/App.tsx create mode 100644 ReactNativeExample/src/components/Button.tsx create mode 100644 ReactNativeExample/src/components/Heading.tsx create mode 100644 ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx create mode 100644 ReactNativeExample/src/components/Section.tsx create mode 100644 ReactNativeExample/src/components/TextField.tsx create mode 100644 ReactNativeExample/src/helpers/helpers.ts create mode 100644 ReactNativeExample/src/models/Environment.ts create mode 100644 ReactNativeExample/src/models/IAppSettings.ts create mode 100644 ReactNativeExample/src/models/IClientSession.ts create mode 100644 ReactNativeExample/src/models/IClientSessionRequestBody.ts create mode 100644 ReactNativeExample/src/models/IPayment.ts create mode 100644 ReactNativeExample/src/models/RawDataScreenProps.ts create mode 100644 ReactNativeExample/src/models/Section.tsx create mode 100644 ReactNativeExample/src/network/APIVersion.ts create mode 100644 ReactNativeExample/src/network/Environment.ts create mode 100644 ReactNativeExample/src/network/api.ts create mode 100644 ReactNativeExample/src/screens/CheckoutScreen.tsx create mode 100644 ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx create mode 100644 ReactNativeExample/src/screens/NewLineItemSreen.tsx create mode 100644 ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx create mode 100644 ReactNativeExample/src/screens/RawCardDataScreen.tsx create mode 100644 ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx create mode 100644 ReactNativeExample/src/screens/RawRetailOutletScreen.tsx create mode 100644 ReactNativeExample/src/screens/ResultScreen.tsx create mode 100644 ReactNativeExample/src/screens/SettingsScreen.tsx create mode 100644 ReactNativeExample/src/styles.tsx create mode 100644 ReactNativeExample/tsconfig.json create mode 100644 ReactNativeExample/yarn.lock diff --git a/ReactNativeExample/.buckconfig b/ReactNativeExample/.buckconfig new file mode 100644 index 000000000..934256cb2 --- /dev/null +++ b/ReactNativeExample/.buckconfig @@ -0,0 +1,6 @@ + +[android] + target = Google Inc.:Google APIs:23 + +[maven_repositories] + central = https://repo1.maven.org/maven2 diff --git a/ReactNativeExample/.eslintrc.js b/ReactNativeExample/.eslintrc.js new file mode 100644 index 000000000..dcf0be086 --- /dev/null +++ b/ReactNativeExample/.eslintrc.js @@ -0,0 +1,16 @@ +module.exports = { + root: true, + extends: '@react-native-community', + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + overrides: [ + { + files: ['*.ts', '*.tsx'], + rules: { + '@typescript-eslint/no-shadow': ['error'], + 'no-shadow': 'off', + 'no-undef': 'off', + }, + }, + ], +}; diff --git a/ReactNativeExample/.gitignore b/ReactNativeExample/.gitignore new file mode 100644 index 000000000..2423126f7 --- /dev/null +++ b/ReactNativeExample/.gitignore @@ -0,0 +1,64 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# BUCK +buck-out/ +\.buckd/ +*.keystore +!debug.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ diff --git a/ReactNativeExample/.prettierrc.js b/ReactNativeExample/.prettierrc.js new file mode 100644 index 000000000..2b540746a --- /dev/null +++ b/ReactNativeExample/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + arrowParens: 'avoid', + bracketSameLine: true, + bracketSpacing: false, + singleQuote: true, + trailingComma: 'all', +}; diff --git a/ReactNativeExample/.watchmanconfig b/ReactNativeExample/.watchmanconfig new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/ReactNativeExample/.watchmanconfig @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/ReactNativeExample/App.tsx b/ReactNativeExample/App.tsx new file mode 100644 index 000000000..753aeb865 --- /dev/null +++ b/ReactNativeExample/App.tsx @@ -0,0 +1,120 @@ +/** + * Sample React Native App + * https://github.com/facebook/react-native + * + * Generated with the TypeScript template + * https://github.com/react-native-community/react-native-template-typescript + * + * @format + */ + +import React, {type PropsWithChildren} from 'react'; +import { + SafeAreaView, + ScrollView, + StatusBar, + StyleSheet, + Text, + useColorScheme, + View, +} from 'react-native'; + +import { + Colors, + DebugInstructions, + Header, + LearnMoreLinks, + ReloadInstructions, +} from 'react-native/Libraries/NewAppScreen'; + +const Section: React.FC< + PropsWithChildren<{ + title: string; + }> +> = ({children, title}) => { + const isDarkMode = useColorScheme() === 'dark'; + return ( + + + {title} + + + {children} + + + ); +}; + +const App = () => { + const isDarkMode = useColorScheme() === 'dark'; + + const backgroundStyle = { + backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, + }; + + return ( + + + +
+ +
+ Edit App.tsx to change this + screen and then come back to see your edits. +
+
+ +
+
+ +
+
+ Read the docs to discover what to do next: +
+ +
+ + + ); +}; + +const styles = StyleSheet.create({ + sectionContainer: { + marginTop: 32, + paddingHorizontal: 24, + }, + sectionTitle: { + fontSize: 24, + fontWeight: '600', + }, + sectionDescription: { + marginTop: 8, + fontSize: 18, + fontWeight: '400', + }, + highlight: { + fontWeight: '700', + }, +}); + +export default App; diff --git a/ReactNativeExample/Gemfile b/ReactNativeExample/Gemfile new file mode 100644 index 000000000..5efda89f4 --- /dev/null +++ b/ReactNativeExample/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version +ruby '2.7.5' + +gem 'cocoapods', '~> 1.11', '>= 1.11.2' diff --git a/ReactNativeExample/__tests__/App-test.tsx b/ReactNativeExample/__tests__/App-test.tsx new file mode 100644 index 000000000..178476699 --- /dev/null +++ b/ReactNativeExample/__tests__/App-test.tsx @@ -0,0 +1,14 @@ +/** + * @format + */ + +import 'react-native'; +import React from 'react'; +import App from '../App'; + +// Note: test renderer must be required after react-native. +import renderer from 'react-test-renderer'; + +it('renders correctly', () => { + renderer.create(); +}); diff --git a/ReactNativeExample/_bundle/config b/ReactNativeExample/_bundle/config new file mode 100644 index 000000000..848943bb5 --- /dev/null +++ b/ReactNativeExample/_bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/ReactNativeExample/_node-version b/ReactNativeExample/_node-version new file mode 100644 index 000000000..b6a7d89c6 --- /dev/null +++ b/ReactNativeExample/_node-version @@ -0,0 +1 @@ +16 diff --git a/ReactNativeExample/_ruby-version b/ReactNativeExample/_ruby-version new file mode 100644 index 000000000..a603bb50a --- /dev/null +++ b/ReactNativeExample/_ruby-version @@ -0,0 +1 @@ +2.7.5 diff --git a/ReactNativeExample/android/app/_BUCK b/ReactNativeExample/android/app/_BUCK new file mode 100644 index 000000000..209f5ee25 --- /dev/null +++ b/ReactNativeExample/android/app/_BUCK @@ -0,0 +1,55 @@ +# To learn about Buck see [Docs](https://buckbuild.com/). +# To run your application with Buck: +# - install Buck +# - `npm start` - to start the packager +# - `cd android` +# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` +# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck +# - `buck install -r android/app` - compile, install and run application +# + +load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") + +lib_deps = [] + +create_aar_targets(glob(["libs/*.aar"])) + +create_jar_targets(glob(["libs/*.jar"])) + +android_library( + name = "all-libs", + exported_deps = lib_deps, +) + +android_library( + name = "app-code", + srcs = glob([ + "src/main/java/**/*.java", + ]), + deps = [ + ":all-libs", + ":build_config", + ":res", + ], +) + +android_build_config( + name = "build_config", + package = "com.reactnativeexample", +) + +android_resource( + name = "res", + package = "com.reactnativeexample", + res = "src/main/res", +) + +android_binary( + name = "app", + keystore = "//android/keystores:debug", + manifest = "src/main/AndroidManifest.xml", + package_type = "debug", + deps = [ + ":app-code", + ], +) diff --git a/ReactNativeExample/android/app/build.gradle b/ReactNativeExample/android/app/build.gradle new file mode 100644 index 000000000..b6332ca54 --- /dev/null +++ b/ReactNativeExample/android/app/build.gradle @@ -0,0 +1,313 @@ +apply plugin: "com.android.application" + +import com.android.build.OutputFile +import org.apache.tools.ant.taskdefs.condition.Os + +/** + * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets + * and bundleReleaseJsAndAssets). + * These basically call `react-native bundle` with the correct arguments during the Android build + * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the + * bundle directly from the development server. Below you can see all the possible configurations + * and their defaults. If you decide to add a configuration block, make sure to add it before the + * `apply from: "../../node_modules/react-native/react.gradle"` line. + * + * project.ext.react = [ + * // the name of the generated asset file containing your JS bundle + * bundleAssetName: "index.android.bundle", + * + * // the entry file for bundle generation. If none specified and + * // "index.android.js" exists, it will be used. Otherwise "index.js" is + * // default. Can be overridden with ENTRY_FILE environment variable. + * entryFile: "index.android.js", + * + * // https://reactnative.dev/docs/performance#enable-the-ram-format + * bundleCommand: "ram-bundle", + * + * // whether to bundle JS and assets in debug mode + * bundleInDebug: false, + * + * // whether to bundle JS and assets in release mode + * bundleInRelease: true, + * + * // whether to bundle JS and assets in another build variant (if configured). + * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants + * // The configuration property can be in the following formats + * // 'bundleIn${productFlavor}${buildType}' + * // 'bundleIn${buildType}' + * // bundleInFreeDebug: true, + * // bundleInPaidRelease: true, + * // bundleInBeta: true, + * + * // whether to disable dev mode in custom build variants (by default only disabled in release) + * // for example: to disable dev mode in the staging build type (if configured) + * devDisabledInStaging: true, + * // The configuration property can be in the following formats + * // 'devDisabledIn${productFlavor}${buildType}' + * // 'devDisabledIn${buildType}' + * + * // the root of your project, i.e. where "package.json" lives + * root: "../../", + * + * // where to put the JS bundle asset in debug mode + * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", + * + * // where to put the JS bundle asset in release mode + * jsBundleDirRelease: "$buildDir/intermediates/assets/release", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in debug mode + * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in release mode + * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", + * + * // by default the gradle tasks are skipped if none of the JS files or assets change; this means + * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to + * // date; if you have any other folders that you want to ignore for performance reasons (gradle + * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ + * // for example, you might want to remove it from here. + * inputExcludes: ["android/**", "ios/**"], + * + * // override which node gets called and with what additional arguments + * nodeExecutableAndArgs: ["node"], + * + * // supply additional arguments to the packager + * extraPackagerArgs: [] + * ] + */ + +project.ext.react = [ + enableHermes: true, // clean and rebuild if changing +] + +apply from: "../../node_modules/react-native/react.gradle" + +/** + * Set this to true to create two separate APKs instead of one: + * - An APK that only works on ARM devices + * - An APK that only works on x86 devices + * The advantage is the size of the APK is reduced by about 4MB. + * Upload all the APKs to the Play Store and people will download + * the correct one based on the CPU architecture of their device. + */ +def enableSeparateBuildPerCPUArchitecture = false + +/** + * Run Proguard to shrink the Java bytecode in release builds. + */ +def enableProguardInReleaseBuilds = false + +/** + * The preferred build flavor of JavaScriptCore. + * + * For example, to use the international variant, you can use: + * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` + * + * The international variant includes ICU i18n library and necessary data + * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that + * give correct results when using with locales other than en-US. Note that + * this variant is about 6MiB larger per architecture than default. + */ +def jscFlavor = 'org.webkit:android-jsc:+' + +/** + * Whether to enable the Hermes VM. + * + * This should be set on project.ext.react and that value will be read here. If it is not set + * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode + * and the benefits of using Hermes will therefore be sharply reduced. + */ +def enableHermes = project.ext.react.get("enableHermes", false); + +/** + * Architectures to build native code for. + */ +def reactNativeArchitectures() { + def value = project.getProperties().get("reactNativeArchitectures") + return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] +} + +android { + ndkVersion rootProject.ext.ndkVersion + + compileSdkVersion rootProject.ext.compileSdkVersion + + defaultConfig { + applicationId "com.reactnativeexample" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + + if (isNewArchitectureEnabled()) { + // We configure the CMake build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + arguments "-DPROJECT_BUILD_DIR=$buildDir", + "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", + "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", + "-DNODE_MODULES_DIR=$rootDir/../node_modules", + "-DANDROID_STL=c++_shared" + } + } + if (!enableSeparateBuildPerCPUArchitecture) { + ndk { + abiFilters (*reactNativeArchitectures()) + } + } + } + } + + if (isNewArchitectureEnabled()) { + // We configure the NDK build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + path "$projectDir/src/main/jni/CMakeLists.txt" + } + } + def reactAndroidProjectDir = project(':ReactAndroid').projectDir + def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + afterEvaluate { + // If you wish to add a custom TurboModule or component locally, + // you should uncomment this line. + // preBuild.dependsOn("generateCodegenArtifactsFromSchema") + preDebugBuild.dependsOn(packageReactNdkDebugLibs) + preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) + + // Due to a bug inside AGP, we have to explicitly set a dependency + // between configureCMakeDebug* tasks and the preBuild tasks. + // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 + configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) + configureCMakeDebug.dependsOn(preDebugBuild) + reactNativeArchitectures().each { architecture -> + tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { + dependsOn("preDebugBuild") + } + tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { + dependsOn("preReleaseBuild") + } + } + } + } + + splits { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture + universalApk false // If true, also generate a universal APK + include (*reactNativeArchitectures()) + } + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } + + // applicationVariants are e.g. debug, release + applicationVariants.all { variant -> + variant.outputs.each { output -> + // For each separate APK per architecture, set a unique version code as described here: + // https://developer.android.com/studio/build/configure-apk-splits.html + // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. + def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] + def abi = output.getFilter(OutputFile.ABI) + if (abi != null) { // null for the universal-debug, universal-release variants + output.versionCodeOverride = + defaultConfig.versionCode * 1000 + versionCodes.get(abi) + } + + } + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + + //noinspection GradleDynamicVersion + implementation "com.facebook.react:react-native:+" // From node_modules + + implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" + + debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { + exclude group:'com.facebook.fbjni' + } + + debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' + exclude group:'com.squareup.okhttp3', module:'okhttp' + } + + debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' + } + + if (enableHermes) { + //noinspection GradleDynamicVersion + implementation("com.facebook.react:hermes-engine:+") { // From node_modules + exclude group:'com.facebook.fbjni' + } + } else { + implementation jscFlavor + } +} + +if (isNewArchitectureEnabled()) { + // If new architecture is enabled, we let you build RN from source + // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. + // This will be applied to all the imported transtitive dependency. + configurations.all { + resolutionStrategy.dependencySubstitution { + substitute(module("com.facebook.react:react-native")) + .using(project(":ReactAndroid")) + .because("On New Architecture we're building React Native from source") + substitute(module("com.facebook.react:hermes-engine")) + .using(project(":ReactAndroid:hermes-engine")) + .because("On New Architecture we're building Hermes from source") + } + } +} + +// Run this once to be able to run the application with BUCK +// puts all compile dependencies into folder libs for BUCK to use +task copyDownloadableDepsToLibs(type: Copy) { + from configurations.implementation + into 'libs' +} + +apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) + +def isNewArchitectureEnabled() { + // To opt-in for the New Architecture, you can either: + // - Set `newArchEnabled` to true inside the `gradle.properties` file + // - Invoke gradle with `-newArchEnabled=true` + // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` + return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" +} diff --git a/ReactNativeExample/android/app/build_defs.bzl b/ReactNativeExample/android/app/build_defs.bzl new file mode 100644 index 000000000..fff270f8d --- /dev/null +++ b/ReactNativeExample/android/app/build_defs.bzl @@ -0,0 +1,19 @@ +"""Helper definitions to glob .aar and .jar targets""" + +def create_aar_targets(aarfiles): + for aarfile in aarfiles: + name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] + lib_deps.append(":" + name) + android_prebuilt_aar( + name = name, + aar = aarfile, + ) + +def create_jar_targets(jarfiles): + for jarfile in jarfiles: + name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] + lib_deps.append(":" + name) + prebuilt_jar( + name = name, + binary_jar = jarfile, + ) diff --git a/ReactNativeExample/android/app/debug.keystore b/ReactNativeExample/android/app/debug.keystore new file mode 100644 index 0000000000000000000000000000000000000000..364e105ed39fbfd62001429a68140672b06ec0de GIT binary patch literal 2257 zcmchYXEfYt8;7T1^dLH$VOTZ%2NOdOH5j5LYLtZ0q7x-V8_6gU5)#7dkq{HTmsfNq zB3ZqcAxeY^G10@?efK?Q&)M(qInVv!xjx+IKEL}p*K@LYvIzo#AZG>st5|P)KF1_Z;y){W{<7K{nl!CPuE z_^(!C(Ol0n8 zK13*rzAtW>(wULKPRYLd7G18F8#1P`V*9`(Poj26eOXYyBVZPno~Cvvhx7vPjAuZo zF?VD!zB~QG(!zbw#qsxT8%BSpqMZ4f70ZPn-3y$L8{EVbbN9$H`B&Z1quk9tgp5FM zuxp3pJ0b8u|3+#5bkJ4SRnCF2l7#DyLYXYY8*?OuAwK4E6J{0N=O3QNVzQ$L#FKkR zi-c@&!nDvezOV$i$Lr}iF$XEcwnybQ6WZrMKuw8gCL^U#D;q3t&HpTbqyD%vG=TeDlzCT~MXUPC|Leb-Uk+ z=vnMd(|>ld?Fh>V8poP;q;;nc@en$|rnP0ytzD&fFkCeUE^kG9Kx4wUh!!rpjwKDP zyw_e|a^x_w3E zP}}@$g>*LLJ4i0`Gx)qltL}@;mDv}D*xR^oeWcWdPkW@Uu)B^X&4W1$p6}ze!zudJ zyiLg@uggoMIArBr*27EZV7djDg@W1MaL+rcZ-lrANJQ%%>u8)ZMWU@R2qtnmG(acP z0d_^!t>}5W zpT`*2NR+0+SpTHb+6Js4b;%LJB;B_-ChhnU5py}iJtku*hm5F0!iql8Hrpcy1aYbT z1*dKC5ua6pMX@@iONI?Hpr%h;&YaXp9n!ND7-=a%BD7v&g zOO41M6EbE24mJ#S$Ui0-brR5ML%@|ndz^)YLMMV1atna{Fw<;TF@>d&F|!Z>8eg>>hkFrV)W+uv=`^F9^e zzzM2*oOjT9%gLoub%(R57p-`TXFe#oh1_{&N-YN z<}artH|m=d8TQuKSWE)Z%puU|g|^^NFwC#N=@dPhasyYjoy(fdEVfKR@cXKHZV-`06HsP`|Ftx;8(YD$fFXumLWbGnu$GMqRncXYY9mwz9$ap zQtfZB^_BeNYITh^hA7+(XNFox5WMeG_LtJ%*Q}$8VKDI_p8^pqX)}NMb`0e|wgF7D zuQACY_Ua<1ri{;Jwt@_1sW9zzdgnyh_O#8y+C;LcZq6=4e^cs6KvmK@$vVpKFGbQ= z$)Eux5C|Fx;Gtmv9^#Y-g@7Rt7*eLp5n!gJmn7&B_L$G?NCN`AP>cXQEz}%F%K;vUs{+l4Q{}eWW;ATe2 zqvXzxoIDy(u;F2q1JH7Sf;{jy_j})F+cKlIOmNfjBGHoG^CN zM|Ho&&X|L-36f}Q-obEACz`sI%2f&k>z5c$2TyTSj~vmO)BW~+N^kt`Jt@R|s!){H ze1_eCrlNaPkJQhL$WG&iRvF*YG=gXd1IyYQ9ew|iYn7r~g!wOnw;@n42>enAxBv*A zEmV*N#sxdicyNM=A4|yaOC5MByts}s_Hpfj|y<6G=o=!3S@eIFKDdpR7|FY>L&Wat&oW&cm&X~ z5Bt>Fcq(fgnvlvLSYg&o6>&fY`ODg4`V^lWWD=%oJ#Kbad2u~! zLECFS*??>|vDsNR&pH=Ze0Eo`sC_G`OjoEKVHY|wmwlX&(XBE<@sx3Hd^gtd-fNwUHsylg06p`U2y_={u}Bc + + + + + + + + diff --git a/ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java b/ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java new file mode 100644 index 000000000..ff7293243 --- /dev/null +++ b/ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. + */ +package com.reactnativeexample; + +import android.content.Context; +import com.facebook.flipper.android.AndroidFlipperClient; +import com.facebook.flipper.android.utils.FlipperUtils; +import com.facebook.flipper.core.FlipperClient; +import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; +import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; +import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; +import com.facebook.flipper.plugins.inspector.DescriptorMapping; +import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; +import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; +import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; +import com.facebook.flipper.plugins.react.ReactFlipperPlugin; +import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; +import com.facebook.react.ReactInstanceEventListener; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.bridge.ReactContext; +import com.facebook.react.modules.network.NetworkingModule; +import okhttp3.OkHttpClient; + +public class ReactNativeFlipper { + public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { + if (FlipperUtils.shouldEnableFlipper(context)) { + final FlipperClient client = AndroidFlipperClient.getInstance(context); + + client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); + client.addPlugin(new ReactFlipperPlugin()); + client.addPlugin(new DatabasesFlipperPlugin(context)); + client.addPlugin(new SharedPreferencesFlipperPlugin(context)); + client.addPlugin(CrashReporterPlugin.getInstance()); + + NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); + NetworkingModule.setCustomClientBuilder( + new NetworkingModule.CustomClientBuilder() { + @Override + public void apply(OkHttpClient.Builder builder) { + builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); + } + }); + client.addPlugin(networkFlipperPlugin); + client.start(); + + // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized + // Hence we run if after all native modules have been initialized + ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); + if (reactContext == null) { + reactInstanceManager.addReactInstanceEventListener( + new ReactInstanceEventListener() { + @Override + public void onReactContextInitialized(ReactContext reactContext) { + reactInstanceManager.removeReactInstanceEventListener(this); + reactContext.runOnNativeModulesQueueThread( + new Runnable() { + @Override + public void run() { + client.addPlugin(new FrescoFlipperPlugin()); + } + }); + } + }); + } else { + client.addPlugin(new FrescoFlipperPlugin()); + } + } + } +} diff --git a/ReactNativeExample/android/app/src/main/AndroidManifest.xml b/ReactNativeExample/android/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..14e5ce464 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java new file mode 100644 index 000000000..6e725ecd0 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java @@ -0,0 +1,48 @@ +package com.reactnativeexample; + +import com.facebook.react.ReactActivity; +import com.facebook.react.ReactActivityDelegate; +import com.facebook.react.ReactRootView; + +public class MainActivity extends ReactActivity { + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + @Override + protected String getMainComponentName() { + return "ReactNativeExample"; + } + + /** + * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and + * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer + * (Paper). + */ + @Override + protected ReactActivityDelegate createReactActivityDelegate() { + return new MainActivityDelegate(this, getMainComponentName()); + } + + public static class MainActivityDelegate extends ReactActivityDelegate { + public MainActivityDelegate(ReactActivity activity, String mainComponentName) { + super(activity, mainComponentName); + } + + @Override + protected ReactRootView createRootView() { + ReactRootView reactRootView = new ReactRootView(getContext()); + // If you opted-in for the New Architecture, we enable the Fabric Renderer. + reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); + return reactRootView; + } + + @Override + protected boolean isConcurrentRootEnabled() { + // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). + // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html + return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; + } + } +} diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java new file mode 100644 index 000000000..aa8fd270a --- /dev/null +++ b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java @@ -0,0 +1,91 @@ +package com.reactnativeexample; + +import android.app.Application; +import android.content.Context; +import com.facebook.react.PackageList; +import com.facebook.react.ReactApplication; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.ReactNativeHost; +import com.facebook.react.ReactPackage; +import com.facebook.react.config.ReactFeatureFlags; +import com.facebook.soloader.SoLoader; +import com.reactnativeexample.newarchitecture.MainApplicationReactNativeHost; +import java.lang.reflect.InvocationTargetException; +import java.util.List; + +public class MainApplication extends Application implements ReactApplication { + + private final ReactNativeHost mReactNativeHost = + new ReactNativeHost(this) { + @Override + public boolean getUseDeveloperSupport() { + return BuildConfig.DEBUG; + } + + @Override + protected List getPackages() { + @SuppressWarnings("UnnecessaryLocalVariable") + List packages = new PackageList(this).getPackages(); + // Packages that cannot be autolinked yet can be added manually here, for example: + // packages.add(new MyReactNativePackage()); + return packages; + } + + @Override + protected String getJSMainModuleName() { + return "index"; + } + }; + + private final ReactNativeHost mNewArchitectureNativeHost = + new MainApplicationReactNativeHost(this); + + @Override + public ReactNativeHost getReactNativeHost() { + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + return mNewArchitectureNativeHost; + } else { + return mReactNativeHost; + } + } + + @Override + public void onCreate() { + super.onCreate(); + // If you opted-in for the New Architecture, we enable the TurboModule system + ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; + SoLoader.init(this, /* native exopackage */ false); + initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); + } + + /** + * Loads Flipper in React Native templates. Call this in the onCreate method with something like + * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); + * + * @param context + * @param reactInstanceManager + */ + private static void initializeFlipper( + Context context, ReactInstanceManager reactInstanceManager) { + if (BuildConfig.DEBUG) { + try { + /* + We use reflection here to pick up the class that initializes Flipper, + since Flipper library is not available in release mode + */ + Class aClass = Class.forName("com.reactnativeexample.ReactNativeFlipper"); + aClass + .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) + .invoke(null, context, reactInstanceManager); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } + } + } +} diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java new file mode 100644 index 000000000..80cec0c40 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java @@ -0,0 +1,116 @@ +package com.reactnativeexample.newarchitecture; + +import android.app.Application; +import androidx.annotation.NonNull; +import com.facebook.react.PackageList; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.ReactNativeHost; +import com.facebook.react.ReactPackage; +import com.facebook.react.ReactPackageTurboModuleManagerDelegate; +import com.facebook.react.bridge.JSIModulePackage; +import com.facebook.react.bridge.JSIModuleProvider; +import com.facebook.react.bridge.JSIModuleSpec; +import com.facebook.react.bridge.JSIModuleType; +import com.facebook.react.bridge.JavaScriptContextHolder; +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.UIManager; +import com.facebook.react.fabric.ComponentFactory; +import com.facebook.react.fabric.CoreComponentsRegistry; +import com.facebook.react.fabric.FabricJSIModuleProvider; +import com.facebook.react.fabric.ReactNativeConfig; +import com.facebook.react.uimanager.ViewManagerRegistry; +import com.reactnativeexample.BuildConfig; +import com.reactnativeexample.newarchitecture.components.MainComponentsRegistry; +import com.reactnativeexample.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate; +import java.util.ArrayList; +import java.util.List; + +/** + * A {@link ReactNativeHost} that helps you load everything needed for the New Architecture, both + * TurboModule delegates and the Fabric Renderer. + * + *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the + * `newArchEnabled` property). Is ignored otherwise. + */ +public class MainApplicationReactNativeHost extends ReactNativeHost { + public MainApplicationReactNativeHost(Application application) { + super(application); + } + + @Override + public boolean getUseDeveloperSupport() { + return BuildConfig.DEBUG; + } + + @Override + protected List getPackages() { + List packages = new PackageList(this).getPackages(); + // Packages that cannot be autolinked yet can be added manually here, for example: + // packages.add(new MyReactNativePackage()); + // TurboModules must also be loaded here providing a valid TurboReactPackage implementation: + // packages.add(new TurboReactPackage() { ... }); + // If you have custom Fabric Components, their ViewManagers should also be loaded here + // inside a ReactPackage. + return packages; + } + + @Override + protected String getJSMainModuleName() { + return "index"; + } + + @NonNull + @Override + protected ReactPackageTurboModuleManagerDelegate.Builder + getReactPackageTurboModuleManagerDelegateBuilder() { + // Here we provide the ReactPackageTurboModuleManagerDelegate Builder. This is necessary + // for the new architecture and to use TurboModules correctly. + return new MainApplicationTurboModuleManagerDelegate.Builder(); + } + + @Override + protected JSIModulePackage getJSIModulePackage() { + return new JSIModulePackage() { + @Override + public List getJSIModules( + final ReactApplicationContext reactApplicationContext, + final JavaScriptContextHolder jsContext) { + final List specs = new ArrayList<>(); + + // Here we provide a new JSIModuleSpec that will be responsible of providing the + // custom Fabric Components. + specs.add( + new JSIModuleSpec() { + @Override + public JSIModuleType getJSIModuleType() { + return JSIModuleType.UIManager; + } + + @Override + public JSIModuleProvider getJSIModuleProvider() { + final ComponentFactory componentFactory = new ComponentFactory(); + CoreComponentsRegistry.register(componentFactory); + + // Here we register a Components Registry. + // The one that is generated with the template contains no components + // and just provides you the one from React Native core. + MainComponentsRegistry.register(componentFactory); + + final ReactInstanceManager reactInstanceManager = getReactInstanceManager(); + + ViewManagerRegistry viewManagerRegistry = + new ViewManagerRegistry( + reactInstanceManager.getOrCreateViewManagers(reactApplicationContext)); + + return new FabricJSIModuleProvider( + reactApplicationContext, + componentFactory, + ReactNativeConfig.DEFAULT_CONFIG, + viewManagerRegistry); + } + }); + return specs; + } + }; + } +} diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java new file mode 100644 index 000000000..0abdc9a14 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java @@ -0,0 +1,36 @@ +package com.reactnativeexample.newarchitecture.components; + +import com.facebook.jni.HybridData; +import com.facebook.proguard.annotations.DoNotStrip; +import com.facebook.react.fabric.ComponentFactory; +import com.facebook.soloader.SoLoader; + +/** + * Class responsible to load the custom Fabric Components. This class has native methods and needs a + * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ + * folder for you). + * + *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the + * `newArchEnabled` property). Is ignored otherwise. + */ +@DoNotStrip +public class MainComponentsRegistry { + static { + SoLoader.loadLibrary("fabricjni"); + } + + @DoNotStrip private final HybridData mHybridData; + + @DoNotStrip + private native HybridData initHybrid(ComponentFactory componentFactory); + + @DoNotStrip + private MainComponentsRegistry(ComponentFactory componentFactory) { + mHybridData = initHybrid(componentFactory); + } + + @DoNotStrip + public static MainComponentsRegistry register(ComponentFactory componentFactory) { + return new MainComponentsRegistry(componentFactory); + } +} diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java new file mode 100644 index 000000000..37e22521a --- /dev/null +++ b/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java @@ -0,0 +1,48 @@ +package com.reactnativeexample.newarchitecture.modules; + +import com.facebook.jni.HybridData; +import com.facebook.react.ReactPackage; +import com.facebook.react.ReactPackageTurboModuleManagerDelegate; +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.soloader.SoLoader; +import java.util.List; + +/** + * Class responsible to load the TurboModules. This class has native methods and needs a + * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ + * folder for you). + * + *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the + * `newArchEnabled` property). Is ignored otherwise. + */ +public class MainApplicationTurboModuleManagerDelegate + extends ReactPackageTurboModuleManagerDelegate { + + private static volatile boolean sIsSoLibraryLoaded; + + protected MainApplicationTurboModuleManagerDelegate( + ReactApplicationContext reactApplicationContext, List packages) { + super(reactApplicationContext, packages); + } + + protected native HybridData initHybrid(); + + native boolean canCreateTurboModule(String moduleName); + + public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { + protected MainApplicationTurboModuleManagerDelegate build( + ReactApplicationContext context, List packages) { + return new MainApplicationTurboModuleManagerDelegate(context, packages); + } + } + + @Override + protected synchronized void maybeLoadOtherSoLibraries() { + if (!sIsSoLibraryLoaded) { + // If you change the name of your application .so file in the Android.mk file, + // make sure you update the name here as well. + SoLoader.loadLibrary("reactnativeexample_appmodules"); + sIsSoLibraryLoaded = true; + } + } +} diff --git a/ReactNativeExample/android/app/src/main/jni/CMakeLists.txt b/ReactNativeExample/android/app/src/main/jni/CMakeLists.txt new file mode 100644 index 000000000..8c0e3684f --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.13) + +# Define the library name here. +project(reactnativeexample_appmodules) + +# This file includes all the necessary to let you build your application with the New Architecture. +include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp b/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp new file mode 100644 index 000000000..26162dd87 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp @@ -0,0 +1,32 @@ +#include "MainApplicationModuleProvider.h" + +#include +#include + +namespace facebook { +namespace react { + +std::shared_ptr MainApplicationModuleProvider( + const std::string &moduleName, + const JavaTurboModule::InitParams ¶ms) { + // Here you can provide your own module provider for TurboModules coming from + // either your application or from external libraries. The approach to follow + // is similar to the following (for a library called `samplelibrary`: + // + // auto module = samplelibrary_ModuleProvider(moduleName, params); + // if (module != nullptr) { + // return module; + // } + // return rncore_ModuleProvider(moduleName, params); + + // Module providers autolinked by RN CLI + auto rncli_module = rncli_ModuleProvider(moduleName, params); + if (rncli_module != nullptr) { + return rncli_module; + } + + return rncore_ModuleProvider(moduleName, params); +} + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h b/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h new file mode 100644 index 000000000..b38ccf53f --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include + +#include + +namespace facebook { +namespace react { + +std::shared_ptr MainApplicationModuleProvider( + const std::string &moduleName, + const JavaTurboModule::InitParams ¶ms); + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp b/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp new file mode 100644 index 000000000..5fd688c50 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp @@ -0,0 +1,45 @@ +#include "MainApplicationTurboModuleManagerDelegate.h" +#include "MainApplicationModuleProvider.h" + +namespace facebook { +namespace react { + +jni::local_ref +MainApplicationTurboModuleManagerDelegate::initHybrid( + jni::alias_ref) { + return makeCxxInstance(); +} + +void MainApplicationTurboModuleManagerDelegate::registerNatives() { + registerHybrid({ + makeNativeMethod( + "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid), + makeNativeMethod( + "canCreateTurboModule", + MainApplicationTurboModuleManagerDelegate::canCreateTurboModule), + }); +} + +std::shared_ptr +MainApplicationTurboModuleManagerDelegate::getTurboModule( + const std::string &name, + const std::shared_ptr &jsInvoker) { + // Not implemented yet: provide pure-C++ NativeModules here. + return nullptr; +} + +std::shared_ptr +MainApplicationTurboModuleManagerDelegate::getTurboModule( + const std::string &name, + const JavaTurboModule::InitParams ¶ms) { + return MainApplicationModuleProvider(name, params); +} + +bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule( + const std::string &name) { + return getTurboModule(name, nullptr) != nullptr || + getTurboModule(name, {.moduleName = name}) != nullptr; +} + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h b/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h new file mode 100644 index 000000000..91f4760c2 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h @@ -0,0 +1,38 @@ +#include +#include + +#include +#include + +namespace facebook { +namespace react { + +class MainApplicationTurboModuleManagerDelegate + : public jni::HybridClass< + MainApplicationTurboModuleManagerDelegate, + TurboModuleManagerDelegate> { + public: + // Adapt it to the package you used for your Java class. + static constexpr auto kJavaDescriptor = + "Lcom/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; + + static jni::local_ref initHybrid(jni::alias_ref); + + static void registerNatives(); + + std::shared_ptr getTurboModule( + const std::string &name, + const std::shared_ptr &jsInvoker) override; + std::shared_ptr getTurboModule( + const std::string &name, + const JavaTurboModule::InitParams ¶ms) override; + + /** + * Test-only method. Allows user to verify whether a TurboModule can be + * created by instances of this class. + */ + bool canCreateTurboModule(const std::string &name); +}; + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp b/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp new file mode 100644 index 000000000..54f598a48 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp @@ -0,0 +1,65 @@ +#include "MainComponentsRegistry.h" + +#include +#include +#include +#include +#include + +namespace facebook { +namespace react { + +MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {} + +std::shared_ptr +MainComponentsRegistry::sharedProviderRegistry() { + auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); + + // Autolinked providers registered by RN CLI + rncli_registerProviders(providerRegistry); + + // Custom Fabric Components go here. You can register custom + // components coming from your App or from 3rd party libraries here. + // + // providerRegistry->add(concreteComponentDescriptorProvider< + // AocViewerComponentDescriptor>()); + return providerRegistry; +} + +jni::local_ref +MainComponentsRegistry::initHybrid( + jni::alias_ref, + ComponentFactory *delegate) { + auto instance = makeCxxInstance(delegate); + + auto buildRegistryFunction = + [](EventDispatcher::Weak const &eventDispatcher, + ContextContainer::Shared const &contextContainer) + -> ComponentDescriptorRegistry::Shared { + auto registry = MainComponentsRegistry::sharedProviderRegistry() + ->createComponentDescriptorRegistry( + {eventDispatcher, contextContainer}); + + auto mutableRegistry = + std::const_pointer_cast(registry); + + mutableRegistry->setFallbackComponentDescriptor( + std::make_shared( + ComponentDescriptorParameters{ + eventDispatcher, contextContainer, nullptr})); + + return registry; + }; + + delegate->buildRegistryFunction = buildRegistryFunction; + return instance; +} + +void MainComponentsRegistry::registerNatives() { + registerHybrid({ + makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid), + }); +} + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h b/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h new file mode 100644 index 000000000..99064846a --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include +#include + +namespace facebook { +namespace react { + +class MainComponentsRegistry + : public facebook::jni::HybridClass { + public: + // Adapt it to the package you used for your Java class. + constexpr static auto kJavaDescriptor = + "Lcom/reactnativeexample/newarchitecture/components/MainComponentsRegistry;"; + + static void registerNatives(); + + MainComponentsRegistry(ComponentFactory *delegate); + + private: + static std::shared_ptr + sharedProviderRegistry(); + + static jni::local_ref initHybrid( + jni::alias_ref, + ComponentFactory *delegate); +}; + +} // namespace react +} // namespace facebook diff --git a/ReactNativeExample/android/app/src/main/jni/OnLoad.cpp b/ReactNativeExample/android/app/src/main/jni/OnLoad.cpp new file mode 100644 index 000000000..c569b6e86 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/jni/OnLoad.cpp @@ -0,0 +1,11 @@ +#include +#include "MainApplicationTurboModuleManagerDelegate.h" +#include "MainComponentsRegistry.h" + +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { + return facebook::jni::initialize(vm, [] { + facebook::react::MainApplicationTurboModuleManagerDelegate:: + registerNatives(); + facebook::react::MainComponentsRegistry::registerNatives(); + }); +} diff --git a/ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml b/ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml new file mode 100644 index 000000000..f35d99620 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f5908281d070150700378b64a84c7db1f97aa1 GIT binary patch literal 3056 zcmV(P)KhZB4W`O-$6PEY7dL@435|%iVhscI7#HXTET` zzkBaFzt27A{C?*?2n!1>p(V70me4Z57os7_P3wngt7(|N?Oyh#`(O{OZ1{A4;H+Oi zbkJV-pnX%EV7$w+V1moMaYCgzJI-a^GQPsJHL=>Zb!M$&E7r9HyP>8`*Pg_->7CeN zOX|dqbE6DBJL=}Mqt2*1e1I>(L-HP&UhjA?q1x7zSXD}D&D-Om%sC#AMr*KVk>dy;pT>Dpn#K6-YX8)fL(Q8(04+g?ah97XT2i$m2u z-*XXz7%$`O#x&6Oolq?+sA+c; zdg7fXirTUG`+!=-QudtfOZR*6Z3~!#;X;oEv56*-B z&gIGE3os@3O)sFP?zf;Z#kt18-o>IeueS!=#X^8WfI@&mfI@)!F(BkYxSfC*Gb*AM zau9@B_4f3=m1I71l8mRD>8A(lNb6V#dCpSKW%TT@VIMvFvz!K$oN1v#E@%Fp3O_sQ zmbSM-`}i8WCzSyPl?NqS^NqOYg4+tXT52ItLoTA;4mfx3-lev-HadLiA}!)%PwV)f zumi|*v}_P;*hk9-c*ibZqBd_ixhLQA+Xr>akm~QJCpfoT!u5JA_l@4qgMRf+Bi(Gh zBOtYM<*PnDOA}ls-7YrTVWimdA{y^37Q#BV>2&NKUfl(9F9G}lZ{!-VfTnZh-}vANUA=kZz5}{^<2t=| z{D>%{4**GFekzA~Ja)m81w<3IaIXdft(FZDD2oTruW#SJ?{Iv&cKenn!x!z;LfueD zEgN@#Px>AgO$sc`OMv1T5S~rp@e3-U7LqvJvr%uyV7jUKDBZYor^n# zR8bDS*jTTdV4l8ug<>o_Wk~%F&~lzw`sQGMi5{!yoTBs|8;>L zD=nbWe5~W67Tx`B@_@apzLKH@q=Nnj$a1EoQ%5m|;3}WxR@U0q^=umZUcB}dz5n^8 zPRAi!1T)V8qs-eWs$?h4sVncF`)j&1`Rr+-4of)XCppcuoV#0EZ8^>0Z2LYZirw#G7=POO0U*?2*&a7V zn|Dx3WhqT{6j8J_PmD=@ItKmb-GlN>yH5eJe%-WR0D8jh1;m54AEe#}goz`fh*C%j zA@%m2wr3qZET9NLoVZ5wfGuR*)rV2cmQPWftN8L9hzEHxlofT@rc|PhXZ&SGk>mLC z97(xCGaSV+)DeysP_%tl@Oe<6k9|^VIM*mQ(IU5vme)80qz-aOT3T(VOxU><7R4#;RZfTQeI$^m&cw@}f=eBDYZ+b&N$LyX$Au8*J1b9WPC zk_wIhRHgu=f&&@Yxg-Xl1xEnl3xHOm1xE(NEy@oLx8xXme*uJ-7cg)a=lVq}gm3{! z0}fh^fyW*tAa%6Dcq0I5z(K2#0Ga*a*!mkF5#0&|BxSS`fXa(?^Be)lY0}Me1R$45 z6OI7HbFTOffV^;gfOt%b+SH$3e*q)_&;q0p$}uAcAiX>XkqU#c790SX&E2~lkOB_G zKJ`C9ki9?xz)+Cm2tYb{js(c8o9FleQsy}_Ad5d7F((TOP!GQbT(nFhx6IBlIHLQ zgXXeN84Yfl5^NsSQ!kRoGoVyhyQXsYTgXWy@*K>_h02S>)Io^59+E)h zGFV5n!hjqv%Oc>+V;J$A_ekQjz$f-;Uace07pQvY6}%aIZUZ}_m*>DHx|mL$gUlGo zpJtxJ-3l!SVB~J4l=zq>$T4VaQ7?R}!7V7tvO_bJ8`$|ImsvN@kpXGtISd6|N&r&B zkpY!Z%;q4z)rd81@12)8F>qUU_(dxjkWQYX4XAxEmH?G>4ruF!AX<2qpdqxJ3I!SaZj(bdjDpXdS%NK!YvET$}#ao zW-QD5;qF}ZN4;`6g&z16w|Qd=`#4hg+UF^02UgmQka=%|A!5CjRL86{{mwzf=~v{&!Uo zYhJ00Shva@yJ59^Qq~$b)+5%gl79Qv*Gl#YS+BO+RQrr$dmQX)o6o-P_wHC$#H%aa z5o>q~f8c=-2(k3lb!CqFQJ;;7+2h#B$V_anm}>Zr(v{I_-09@zzZ yco6bG9zMVq_|y~s4rIt6QD_M*p(V5oh~@tmE4?#%!pj)|0000T-ViIFIPY+_yk1-RB&z5bHD$YnPieqLK5EI`ThRCq%$YyeCI#k z>wI&j0Rb2DV5|p6T3Syaq)GU^8BR8(!9qaEe6w+TJxLZtBeQf z`>{w%?oW}WhJSMi-;YIE3P2FtzE8p;}`HCT>Lt1o3h65;M`4J@U(hJSYlTt_?Ucf5~AOFjBT-*WTiV_&id z?xIZPQ`>7M-B?*vptTsj)0XBk37V2zTSQ5&6`0#pVU4dg+Hj7pb;*Hq8nfP(P;0i% zZ7k>Q#cTGyguV?0<0^_L$;~g|Qqw58DUr~LB=oigZFOvHc|MCM(KB_4-l{U|t!kPu z{+2Mishq{vnwb2YD{vj{q`%Pz?~D4B&S9Jdt##WlwvtR2)d5RdqcIvrs!MY#BgDI# z+FHxTmgQp-UG66D4?!;I0$Csk<6&IL09jn+yWmHxUf)alPUi3jBIdLtG|Yhn?vga< zJQBnaQ=Z?I+FZj;ke@5f{TVVT$$CMK74HfIhE?eMQ#fvN2%FQ1PrC+PAcEu?B*`Ek zcMD{^pd?8HMV94_qC0g+B1Z0CE-pcWpK=hDdq`{6kCxxq^X`oAYOb3VU6%K=Tx;aG z*aW$1G~wsy!mL})tMisLXN<*g$Kv)zHl{2OA=?^BLb)Q^Vqgm?irrLM$ds;2n7gHt zCDfI8Y=i4)=cx_G!FU+g^_nE(Xu7tj&a&{ln46@U3)^aEf}FHHud~H%_0~Jv>X{Pm z+E&ljy!{$my1j|HYXdy;#&&l9YpovJ;5yoQYJ+hw9>!H{(^6+$(%!(HeR~&MP-UER zPR&hH$w*_)D3}#A2joDlamSP}n%Y3H@pNb1wE=G1TFH_~Lp-&?b+q%;2IF8njO(rq zQVx(bn#@hTaqZZ1V{T#&p)zL%!r8%|p|TJLgSztxmyQo|0P;eUU~a0y&4)u?eEeGZ z9M6iN2(zw9a(WoxvL%S*jx5!2$E`ACG}F|2_)UTkqb*jyXm{3{73tLMlU%IiPK(UR4}Uv87uZIacp(XTRUs?6D25qn)QV%Xe&LZ-4bUJM!ZXtnKhY#Ws)^axZkui_Z=7 zOlc@%Gj$nLul=cEH-leGY`0T)`IQzNUSo}amQtL)O>v* zNJH1}B2znb;t8tf4-S6iL2_WuMVr~! zwa+Are(1_>{zqfTcoYN)&#lg$AVibhUwnFA33`np7$V)-5~MQcS~aE|Ha>IxGu+iU z`5{4rdTNR`nUc;CL5tfPI63~BlehRcnJ!4ecxOkD-b&G%-JG+r+}RH~wwPQoxuR(I z-89hLhH@)Hs}fNDM1>DUEO%{C;roF6#Q7w~76179D?Y9}nIJFZhWtv`=QNbzNiUmk zDSV5#xXQtcn9 zM{aI;AO6EH6GJ4^Qk!^F?$-lTQe+9ENYIeS9}cAj>Ir`dLe`4~Dulck2#9{o}JJ8v+QRsAAp*}|A^ z1PxxbEKFxar-$a&mz95(E1mAEVp{l!eF9?^K43Ol`+3Xh5z`aC(r}oEBpJK~e>zRtQ4J3K*r1f79xFs>v z5yhl1PoYg~%s#*ga&W@K>*NW($n~au>D~{Rrf@Tg z^DN4&Bf0C`6J*kHg5nCZIsyU%2RaiZkklvEqTMo0tFeq7{pp8`8oAs7 z6~-A=MiytuV+rI2R*|N=%Y));j8>F)XBFn`Aua-)_GpV`#%pda&MxsalV15+%Oy#U zg!?Gu&m@yfCi8xHM>9*N8|p5TPNucv?3|1$aN$&X6&Ge#g}?H`)4ncN@1whNDHF7u z2vU*@9OcC-MZK}lJ-H5CC@og69P#Ielf`le^Om4BZ|}OK33~dC z9o-007j1SXiTo3P#6`YJ^T4tN;KHfgA=+Bc0h1?>NT@P?=}W;Z=U;!nqzTHQbbu37 zOawJK2$GYeHtTr7EIjL_BS8~lBKT^)+ba(OWBsQT=QR3Ka((u#*VvW=A35XWkJ#?R zpRksL`?_C~VJ9Vz?VlXr?cJgMlaJZX!yWW}pMZni(bBP>?f&c#+p2KwnKwy;D3V1{ zdcX-Pb`YfI=B5+oN?J5>?Ne>U!2oCNarQ&KW7D61$fu$`2FQEWo&*AF%68{fn%L<4 zOsDg%m|-bklj!%zjsYZr0y6BFY|dpfDvJ0R9Qkr&a*QG0F`u&Rh{8=gq(fuuAaWc8 zRmup;5F zR3altfgBJbCrF7LP7t+8-2#HL9pn&HMVoEnPLE@KqNA~~s+Ze0ilWm}ucD8EVHs;p z@@l_VDhtt@6q zmV7pb1RO&XaRT)NOe-&7x7C>07@CZLYyn0GZl-MhPBNddM0N}0jayB22swGh3C!m6~r;0uCdOJ6>+nYo*R9J7Pzo%#X_imc=P;u^O*#06g*l)^?9O^cwu z>?m{qW(CawISAnzIf^A@vr*J$(bj4fMWG!DVMK9umxeS;rF)rOmvZY8%sF7i3NLrQ zCMI5u5>e<&Y4tpb@?!%PGzlgm_c^Z7Y6cO6C?)qfuF)!vOkifE(aGmXko*nI3Yr5_ zB%dP>Y)esVRQrVbP5?CtAV%1ftbeAX zSO5O8m|H+>?Ag7NFznXY-Y8iI#>Xdz<)ojC6nCuqwTY9Hlxg=lc7i-4fdWA$x8y)$ z1cEAfv{E7mnX=ZTvo30>Vc{EJ_@UqAo91Co;@r;u7&viaAa=(LUNnDMq#?t$WP2mu zy5`rr8b||Z0+BS)Iiwj0lqg10xE8QkK#>Cp6zNdxLb-wi+CW5b7zH2+M4p3Cj%WpQ zvV+J2IY@kOFU_|NN}2O}n#&F1oX*)lDd-WJICcPhckHVB{_D}UMo!YA)`reITkCv& z+h-AyO1k3@ZEIrpHB)j~Z(*sF@TFpx2IVtytZ1!gf7rg2x94b*P|1@%EFX{|BMC&F zgHR4<48Z5Wte`o!m*m@iyK=>9%pqjT=xfgQua>)1| zzH!~jLG!rggat+qAIR%H=jrI#Ppid$J{TDkck^wb>Cbnli}}Mj8!tNfx{tXtDDVA6#7kU4k)m;JoI1>JM_ zq-flQ5dpn>kG~=9u{Kp+hETG^OCq!Y^l7JkwUJNUU7izHmd|F@nB0=X2`Ui?!twzb zGEx%cIl)h?ZV$NTnhB6KFgkkRg&@c7ldg>o!`sBcgi%9RE?paz`QmZ@sF(jo1bt^} zOO5xhg(FXLQ|z)6CE=`kWOCVJNJCs#Lx)8bDSWkN@122J_Z`gpPK4kwk4&%uxnuQ z^m`!#WD#Y$Wd7NSpiP4Y;lHtj;pJ#m@{GmdPp+;QnX&E&oUq!YlgQ%hIuM43b=cWO zKEo!Er{mwD8T1>Qs$i2XjF2i zo0yfpKQUwdThrD(TOIY_s`L@_<}B|w^!j*FThM0+#t0G?oR`l(S(2v&bXR}F6HLMU zhVvD4K!6s}uUD^L;|Sxgrb+kFs%8d8Ma>5A9p~uUO=yF*;%~xvAJiA`lls1pq5J%k z6&-yQ$_vP5`-Tr56ws&75Y&Q2;zD?CB_KpRHxzC9hKCR0889>jef)|@@$A?!QIu3r qa)363hF;Bq?>HxvTY6qhhx>m(`%O(!)s{N|0000xsEBz6iy~SX+W%nrKL2KH{`gFsDCOB6ZW0@Yj?g&st+$-t|2c4&NM7M5Tk(z5p1+IN@y}=N)4$Vmgo_?Y@Ck5u}3=}@K z);Ns<{X)3-we^O|gm)Oh1^>hg6g=|b7E-r?H6QeeKvv7{-kP9)eb76lZ>I5?WDjiX z7Qu}=I4t9`G435HO)Jpt^;4t zottB%?uUE#zt^RaO&$**I5GbJM-Nj&Z#XT#=iLsG7*JO@)I~kH1#tl@P}J@i#`XX! zEUc>l4^`@w2_Fsoa*|Guk5hF2XJq0TQ{QXsjnJ)~K{EG*sHQW(a<^vuQkM07vtNw= z{=^9J-YI<#TM>DTE6u^^Z5vsVZx{Lxr@$j8f2PsXr^)~M97)OdjJOe81=H#lTbl`!5}35~o;+uSbUHP+6L00V99ox@t5JT2~=-{-Zvti4(UkQKDs{%?4V4AV3L`G476;|CgCH%rI z;0kA=z$nkcwu1-wIX=yE5wwUO)D;dT0m~o7z(f`*<1B>zJhsG0hYGMgQ0h>ylQYP; zbY|ogjI;7_P6BwI^6ZstC}cL&6%I8~cYe1LP)2R}amKG>qavWEwL0HNzwt@3hu-i0 z>tX4$uXNRX_<>h#Q`kvWAs3Y+9)i~VyAb3%4t+;Ej~o)%J#d6}9XXtC10QpHH*X!(vYjmZ zlmm6A=sN)+Lnfb)wzL90u6B=liNgkPm2tWfvU)a0y=N2gqg_uRzguCqXO<0 zp@5n^hzkW&E&~|ZnlPAz)<%Cdh;IgaTGMjVcP{dLFnX>K+DJ zd?m)lN&&u@soMY!B-jeeZNHfQIu7I&9N?AgMkXKxIC+JQibV=}9;p)91_6sP0x=oO zd9T#KhN9M8uO4rCDa ze;J+@sfk?@C6ke`KmkokKLLvbpNHGP^1^^YoBV^rxnXe8nl%NfKS}ea`^9weO&eZ` zo3Nb?%LfcmGM4c%PpK;~v#XWF+!|RaTd$6126a6)WGQPmv0E@fm9;I@#QpU0rcGEJ zNS_DL26^sx!>ccJF}F){`A0VIvLan^$?MI%g|@ebIFlrG&W$4|8=~H%Xsb{gawm(u zEgD&|uQgc{a;4k6J|qjRZzat^hbRSXZwu7(c-+?ku6G1X0c*0%*CyUsXxlKf=%wfS z7A!7+`^?MrPvs?yo31D=ZCu!3UU`+dR^S>@R%-y+!b$RlnflhseNn10MV5M=0KfZ+ zl9DEH0jK5}{VOgmzKClJ7?+=AED&7I=*K$;ONIUM3nyT|P}|NXn@Qhn<7H$I*mKw1 axPAxe%7rDusX+w*00006jj zwslyNbxW4-gAj;v!J{u#G1>?8h`uw{1?o<0nB+tYjKOW@kQM}bUbgE7^CRD4K zgurXDRXWsX-Q$uVZ0o5KpKdOl5?!YGV|1Cict&~YiG*r%TU43m2Hf99&})mPEvepe z0_$L1e8*kL@h2~YPCajw6Kkw%Bh1Pp)6B|t06|1rR3xRYjBxjSEUmZk@7wX+2&-~! z!V&EdUw!o7hqZI=T4a)^N1D|a=2scW6oZU|Q=}_)gz4pu#43{muRW1cW2WC&m-ik? zskL0dHaVZ5X4PN*v4ZEAB9m;^6r-#eJH?TnU#SN&MO`Aj%)ybFYE+Pf8Vg^T3ybTl zu50EU=3Q60vA7xg@YQ$UKD-7(jf%}8gWS$_9%)wD1O2xB!_VxzcJdN!_qQ9j8#o^Kb$2+XTKxM8p>Ve{O8LcI(e2O zeg{tPSvIFaM+_Ivk&^FEk!WiV^;s?v8fmLglKG<7EO3ezShZ_0J-`(fM;C#i5~B@w zzx;4Hu{-SKq1{ftxbjc(dX3rj46zWzu02-kR>tAoFYDaylWMJ`>FO2QR%cfi+*^9A z54;@nFhVJEQ{88Q7n&mUvLn33icX`a355bQ=TDRS4Uud|cnpZ?a5X|cXgeBhYN7btgj zfrwP+iKdz4?L7PUDFA_HqCI~GMy`trF@g!KZ#+y6U%p5#-nm5{bUh>vhr^77p~ zq~UTK6@uhDVAQcL4g#8p-`vS4CnD9M_USvfi(M-;7nXjlk)~pr>zOI`{;$VXt;?VTNcCePv4 zgZm`^)VCx8{D=H2c!%Y*Sj3qbx z3Bcvv7qRAl|BGZCts{+>FZrE;#w(Yo2zD#>s3a*Bm!6{}vF_;i)6sl_+)pUj?b%BL!T1ELx|Q*Gi=7{Z_>n0I(uv>N^kh|~nJfab z-B6Q6i-x>YYa_42Hv&m>NNuPj31wOaHZ2`_8f~BtbXc@`9CZpHzaE@9sme%_D-HH! z_+C&VZ5tjE65?}X&u-D4AHRJ|7M{hR!}PYPpANP?7wnur`Z(&LFwzUmDz}m6%m#_` zN1ihq8f|zZ&zTL92M2b-hMpPyjp;j(qwgP9x)qI?EZx@<$g#>i7(MC}@*J1VGXm6J ztz1=RK@?%Qz^vmWNydd0K7oyrXw`TLb`z;fP6eV|NZ@9kKH zIyMqzZ9Y_)PZnC#UgW6&o7RiGXSCtSQvnrvJ07P9WCuE5TE27za*L6r1qX7pIDFiP znSaHYJF8sl^n0|3j!i{?fD%?fpQ8-}VX4%STy1t@8)G-8??Fy}j}~2_iJ79Y<9BW~ z!~)T{3Y|lwcVD5s4z^GP5M=~t`V?*Wng7gTvC9%p>ErZpM)pQVx57>AIcf1j4QFg^w>YYB%MypIj2syoXw9$K!N8%s=iPIw!LE-+6v6*Rm zvCqdN&kwI+@pEX0FTb&P)ujD9Td-sLBVV=A$;?RiFOROnT^LC^+PZR*u<3yl z7b%>viF-e48L=c`4Yhgb^U=+w7snP$R-gzx379%&q-0#fsMgvQlo>14~`1YOv{?^ z*^VYyiSJO8fE65P0FORgqSz#mi#9@40VO@TaPOT7pJq3WTK9*n;Niogu+4zte1FUa zyN7rIFbaQxeK{^RC3Iu@_J~ii&CvyWn^W}4wpexHwV9>GKO$zR3a&*L9&AgL=QfA$ z+G-YMq;1D{;N38`jTdN}Pw77sDCR|$2s+->;9gh-ObE_muwxq>sEpX)ywtgCHKIATY}p&%F4bRV>R9rYpeWbT(xnE7}?(HDXFgNDdC^@gUdK& zk=MolYT3>rpR*$Ell2!`c zjrIZftl&PUxlH2EgV+3VfQy&FjhL&5*Zg&R8xrSx?WgB?YuLO-JDaP3jr*I~qiywy z`-52AwB_6L#X ztms{{yRkRfQLbsb#Ov%`)acN(OCewI3Ex__xed17hg#g4c1blx?sK}UQg%PM@N;5d zsg{y6(|`H1Xfbz@5x{1688tu7TGkzFEBhOPDdFK(H_NQIFf|(>)ltFd!WdnkrY&mp z0y@5yU2;u1_enx%+U9tyY-LNWrd4^Wi?x<^r`QbaLBngWL`HzX@G550 zrdyNjhPTknrrJn#jT0WD0Z)WJRi&3FKJ#Sa&|883%QxM-?S%4niK{~k81<(c11sLk|!_7%s zH>c$`*nP-wA8Dx-K(HE~JG_@Yxxa;J+2yr+*iVlh;2Eiw?e`D1vu6*qY1+XTe8RVu z?RV%L|Mk!wO}j^S)p4H%?G37StD0Rx{_Y00%3a+V^SyOkfV@ZuFlEc;vR9r-D>cYU&plUkXL|M%1AYBQ3DI;;hF%_X@m*cTQAMZ4+FO74@AQB{A*_HtoXT@}l=8awaa7{RHC>07s?E%G{iSeRbh z?h#NM)bP`z`zdp5lij!N*df;4+sgz&U_JEr?N9#1{+UG3^11oQUOvU4W%tD1Cie3; z4zcz0SIrK-PG0(mp9gTYr(4ngx;ieH{NLq{* z;Pd=vS6KZYPV?DLbo^)~2dTpiKVBOh?|v2XNA)li)4V6B6PA!iq#XV5eO{{vL%OmU z0z3ZE2kcEkZ`kK(g^#s)#&#Zn5zw!R93cW^4+g0D=ydf&j4o_ti<@2WbzC>{(QhCL z(=%Zb;Ax8U=sdec9pkk|cW)1Ko;gK{-575HsDZ!w@WOQ^Up)GGorc38cGxe<$8O!6 zmQ`=@;TG{FjWq(s0eBn5I~vVgoE}un8+#YuR$Asq?lobvVAO-`SBs3!&;QEKT>gZ0T)jG^Foo~J2YkV&mi-axlvC}-(J4S2 z;opuO)+FIV#}&4;wwisb>{XU+FJ~tyK7UaG@ZD^C1^brazu7Xkh5Od}&P)GufW=u# zMxOwfWJ3a^MZha>9OmQ)@!Y;v*4@+dg~s~NQ;q@hV~l>lw`P)d`4XF9rE?aEFe(JV zI>11}Ny%^CkO=VN>wCV?P!-?VdT3vWe4zBLV*?6XPqsC%n93bQXvydh0Mo+tXHO4^ zxQ{x0?CG{fmToCyYny7>*-tNh;Sh9=THLzkS~lBiV9)IKa^C~_p8MVZWAUb)Btjt< zVZ;l7?_KnLHelj>)M1|Q_%pk5b?Bod_&86o-#36xIEag%b+8JqlDy@B^*YS*1; zGYT`@5nPgt)S^6Ap@b160C4d9do0iE;wYdn_Tr(vY{MS!ja!t*Z7G=Vz-=j5Z⁣ zwiG+x#%j}{0gU~J8;<|!B1@-XaB@{KORFwrYg_8rOv({b0EO#DbeQRm;B6_9=mXGf z-x|VL{zd`)#@yN}HkCSJbjbNlE|zL3Wm9Q8HY`sV)}3%pgN>cL^67{Z;PPL(*wT8N zUjXU{@|*hvm}({wsAC=x0^ok0%UAz0;sogW{B!nDqk|JJ5x~4NfTDgP49^zeu`csl?5mY@JdQdISc zFs!E{^grmkLnUk9 zny~m)1vws@5BFI<-0Tuo2JWX(0v`W|t(wg;s--L47WTvTMz-8l#TL^=OJNRS2?_Qj z3AKT+gvbyBi#H*-tJ%tWD|>EV3wy|8qxfzS!5RW;Jpl5*zo&^UBU=fG#2}UvRyNkK zA06Dy9;K1ca@r2T>yThYgI!ont$(G{6q#2QT+00r_x0(b)gsE`lBB?2gr55gq^D3Fi&p%E(p9>U%bv zkg1Jco(RbyTX7FDHOnl7-O@ zI$AaIl?9NJKPm(WiBP`1-#CB1QzU>&hKm)fpa5DKE{2$X0hGz-0uZ?cyTk(YC!Y&| zL=1VrNERSA5NA2jq7FACfX4JfPyj5XXl1yv0>~s;eF7L2$>&oMqeTFT2m$y7FlkON z_yurD1yIOvA;5C6016pyxBznGUt0kJ&k5r#;&>Jow`r)sp9R~PmK~lz$3xH%LT*1U zJdOyABZ3!FvNoR*vN$5ykHS8f`jA4zV+|L}i1C4`B2c{R0;UdYxaU|H)2avz@ z=mEYc|2S<+(B2Tj+FkX+2D+yFI!k9lWMA61DJ{)e;lum$(;O87?vGJJe!KtK04+N_ zI*P~t@dUb>9Xh{dbyl{-ZQ(UMgz7$|QfL5XSPkskt^NgctYC#;4WcZB1@%@wy@2t3 z2z0DI7&%b$*Aw~abe?GxE`ez@+6hOh-6*8fHRV{1os$EL@}uUZeG4h1&Be`98q*7j z=3-v+lhIjfWVo12!<>%V^a6lTgW3+_#W6n|p*~==zOH7z$0{LSZk(Tpd7EaD04hnA zL;#fxS0aD{`5^&D`}>0Uq?byDD-l2=!wm_bLcUl4gc(% za1p|itVANvFF>hghAS07Im1;IK;|b*W)}VDyI;BIp2=K*yu2a)j?B|f<44NI$NbmJ z#dE0>jI$fMr&@>4kN8MLFb4&2O9fEKaQg%(QO$4_1rVQywG^CmBLh#}_7gKW3vd?| z2?1^&KWq8}8I^_S0|)MowU_pw$q@nl@Nkn$z>BQq_KA^9yaR`(R3u{{Ig;cwt z@AJ^{ODQCm^neroM9nKNUAXi9RCK`OsP_LuR0PUR(YZCCX5dNF6VzcoK&=b^r`W?ltt|*F zpkoae%ZT{C1h~EcFui~b7fF`vb<<~j_VquuUA$}QqIKYELPp#;{u?q8Dz}WAG-(3; zjrm$i%7UbyZMM(Y{>!uJ#vNB?R~B{6Htp=>e*<{fQQ5W7V(1coCWlOON!MzZxhum| ztZBQpGR z;~#ur^&PockKdV{Q6R>o`Pl{0x!DEbpZ7y9Y;*ZvE!*gU`V1W3znva{f=?WO5I&>B z&hw6}tjECtaghm5z|C#%M;Yf_*pI^};h}Vl=^r9EN=tVDj86D;C$jIJ?K7VP+00000NkvXXu0mjf D5i!M* literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..459ca609d3ae0d3943ab44cdc27feef9256dc6d7 GIT binary patch literal 7098 zcmV;r8%5-aP)U(QdAI7f)tS=AhH53iU?Q%B}x&gA$2B`o|*LCD1jhW zSQpS0{*?u3iXtkY?&2<)$@#zc%$?qDlF1T~d7k&lWaiv^&wbx>zVm(GIrof<%iY)A zm%|rhEg~Z$Te<*wd9Cb1SB{RkOI$-=MBtc%k*xtvYC~Uito}R@3fRUqJvco z|Bt2r9pSOcJocAEd)UN^Tz-82GUZlqsU;wb|2Q_1!4Rms&HO1Xyquft~#6lJoR z`$|}VSy@{k6U652FJ~bnD9(X%>CS6Wp6U>sn;f}te}%WL`rg)qE4Q=4OOhk^@ykw( ziKr^LHnAd4M?#&SQhw8zaC05q#Mc66K^mxY!dZ=W+#Bq1B}cQ6Y8FWd(n>#%{8Di_8$CHibtvP z-x#-g;~Q?y0vJA*8TW>ZxF?fAy1DuFy7%O1ylLF(t=ah7LjZ$=p!;8(ZLjXAhwEkCR{wF`L=hwm>|vLK2=gR&KM1ZEG9R~53yNCZdabQoQ%VsolX zS#WlesPcpJ)7XLo6>Ly$im38oxyiizP&&>***e@KqUk3q3y+LQN^-v?ZmO>9O{Oq@ z{{He$*Z=Kf_FPR>El3iB*FULYFMnLa#Fl^l&|bFg$Omlh{xVVJ7uHm=4WE6)NflH6 z=>z4w{GV&8#MNnEY3*B7pXU!$9v-tZvdjO}9O=9r{3Wxq2QB}(n%%YI$)pS~NEd}U z)n#nv-V)K}kz9M0$hogDLsa<(OS0Hf5^WUKO-%WbR1W1ID$NpAegxHH;em?U$Eyn1 zU{&J2@WqSUn0tav=jR&&taR9XbV+Izb*PwFn|?cv0mksBdOWeGxNb~oR;`~>#w3bp zrOrEQ+BiW_*f&GARyW|nE}~oh0R>>AOH^>NHNKe%%sXLgWRu1Sy3yW0Q#L{8Y6=3d zKd=By=Nb8?#W6|LrpZm>8Ro)`@cLmU;D`d64nKT~6Z!aLOS{m`@oYwD`9yily@}%yr0A>P!6O4G|ImNbBzI`LJ0@=TfLt^f`M07vw_PvXvN{nx%4 zD8vS>8*2N}`lD>M{`v?2!nYnf%+`GRK3`_i+yq#1a1Yx~_1o~-$2@{=r~q11r0oR* zqBhFFVZFx!U0!2CcItqLs)C;|hZ|9zt3k^(2g32!KB-|(RhKbq-vh|uT>jT@tX8dN zH`TT5iytrZT#&8u=9qt=oV`NjC)2gWl%KJ;n63WwAe%-)iz&bK{k`lTSAP`hr)H$Q`Yq8-A4PBBuP*-G#hSKrnmduy6}G zrc+mcVrrxM0WZ__Y#*1$mVa2y=2I`TQ%3Vhk&=y!-?<4~iq8`XxeRG!q?@l&cG8;X zQ(qH=@6{T$$qk~l?Z0@I4HGeTG?fWL67KN#-&&CWpW0fUm}{sBGUm)Xe#=*#W{h_i zohQ=S{=n3jDc1b{h6oTy=gI!(N%ni~O$!nBUig}9u1b^uI8SJ9GS7L#s!j;Xy*CO>N(o6z){ND5WTew%1lr? znp&*SAdJb5{L}y7q#NHbY;N_1vn!a^3TGRzCKjw?i_%$0d2%AR73CwHf z`h4QFmE-7G=psYnw)B!_Cw^{=!UNZeR{(s47|V$`3;-*gneX=;O+eN@+Efd_Zt=@H3T@v&o^%H z7QgDF8g>X~$4t9pv35G{a_8Io>#>uGRHV{2PSk#Ea~^V8!n@9C)ZH#87~ z#{~PUaRR~4K*m4*PI16)rvzdaP|7sE8SyMQYI6!t(%JNebR%?lc$={$s?VBI0Qk!A zvrE4|#asTZA|5tB{>!7BcxOezR?QIo4U_LU?&9Im-liGSc|TrJ>;1=;W?gG)0pQaw z|6o7&I&PH!*Z=c7pNPkp)1(4W`9Z01*QKv44FkvF^2Kdz3gDNpV=A6R;Q}~V-_sZY zB9DB)F8%iFEjK?Gf4$Cwu_hA$98&pkrJM!7{l+}osR_aU2PEx!1CRCKsS`0v$LlKq z{Pg#ZeoBMv@6BcmK$-*|S9nv50or*2&EV`L7PfW$2J7R1!9Q(1SSe42eSWZ5sYU?g z2v{_QB^^jfh$)L?+|M`u-E7D=Hb?7@9O89!bRUSI7uD?Mxh63j5!4e(v)Kc&TUEqy z8;f`#(hwrIeW);FA0CK%YHz6;(WfJz^<&W#y0N3O2&Qh_yxHu?*8z1y9Ua}rECL!5 z7L1AEXx83h^}+)cY*Ko{`^0g3GtTuMP>b$kq;Aqo+2d&+48mc#DP;Sv z*UL^nR*K7J968xR0_eTaZ`N`u_c#9bFUjTj-}0+_57(gtEJT|7PA12W=2Z>#_a z&Wg@_b=$d~wonN3h~?)gS`qxx<4J&`dI*rH9!mTSiQj(0rF-{YoNJRnOqd5IbP7p} ztDaPu$A;#osxf=z2zVe4>tpa(knS_Mp67nKcE<>Cj$G2orP(Z$Oc4;4DPwbXYZsS^ z;b>59s(LgYmx|tkRD?U{+9VZ$T}{S}L6>lQNR^a|&5joAFXtOrI07Do!vk(e$mu@Y zNdN!djB`Hq1*T8mrC@S)MLwZ`&8aM8YYtVj7i)IY{g&D1sJaY`3e=1DSFnjO+jEHH zj+|@r$$4RtpuJ!8=C`n5X;5BjU2slP9VV&m0gr+{O(I}9pYF32AMU?n$k$=x;X^E# zOb-x}p1_`@IOXAj3>HFxnmvBV9M^^9CfD7UlfuH*y^aOD?X6D82p_r*c>DF)m=9>o zgv_SDeSF6WkoVOI<_mX};FlW9rk3WgQP|vr-eVo8!wH!TiX)aiw+I|dBWJX=H6zxx z_tSI2$ChOM+?XlJwEz3!juYU6Z_b+vP-Y|m1!|ahw>Kpjrii-M_wmO@f@7;aK(I;p zqWgn+X^onc-*f)V9Vfu?AHLHHK!p2|M`R&@4H0x4hD5#l1##Plb8KsgqGZ{`d+1Ns zQ7N(V#t49wYIm9drzw`;WSa|+W+VW8Zbbx*Z+aXHSoa!c!@3F_yVww58NPH2->~Ls z2++`lSrKF(rBZLZ5_ts6_LbZG-W-3fDq^qI>|rzbc@21?)H>!?7O*!D?dKlL z6J@yulp7;Yk6Bdytq*J1JaR1!pXZz4aXQ{qfLu0;TyPWebr3|*EzCk5%ImpjUI4cP z7A$bJvo4(n2km-2JTfRKBjI9$mnJG@)LjjE9dnG&O=S;fC)@nq9K&eUHAL%yAPX7OFuD$pb_H9nhd{iE0OiI4#F-);A|&YT z|A3tvFLfR`5NYUkE?Rfr&PyUeFX-VHzcss2i*w06vn4{k1R%1_1+Ygx2oFt*HwfT> zd=PFdfFtrP1+YRs0AVr{YVp4Bnw2HQX-|P$M^9&P7pY6XSC-8;O2Ia4c{=t{NRD=z z0DeYUO3n;p%k zNEmBntbNac&5o#&fkY1QSYA4tKqBb=w~c6yktzjyk_Po)A|?nn8>HdA31amaOf7jX z2qillM8t8V#qv5>19Cg_X`mlU*O5|C#X-kfAXAHAD*q%6+z%IK(*H6olm-N4%Ic)5 zL`?wQgXfD&qQRxWskoO^Ylb>`jelq;*~ZIwKw|#BQjOSLkgc2uy7|oFEVhC?pcnU+ z^7qz}Z2%F!WOp%JO3y*&_7t;uRfU>)drR1q)c7lX?;A1-TuLTR zyr(`7O19`eW{ev;L%`;BvOzh?m|)Rh?W8&I$KVvUTo?@f@K!du&vf=o6kKb?hA z%e6$T0jWS7doVkN%^_k3QOksfV?aC$Ge$a)z(!C@UVs*@qzDw*OFd*JfX#>5LCXjE z_vfUrLF7D`K$U2Ld#OCnh9U!;r7%GlKo$e__Il-oba06ER{H&f#J&W@x^^5j;y$0` zs2`m6pf+{UiDb{Mjsb$rH+MCM6G_wX92so96`ODFYKD>!Xz^0y@U7Tc1uON4L<>2f-oPe%FRPEZ@S#-yd7Md-i?v z)$Kgtq;%4g@>Kap3Nl2I&jnCIfGmRmcF4CXfF1H}3SfhLg8=!a0ucGaUk&c3*Ykgl z2X_L84cs+FD#cjf-nMJkVDH%XzOoh5!X-Q$K5VZx-hGF7MQ=XKBjhZZQ@1Sh zO^vY`WQ`zi21z-+01na%<^niMFIWm-n|!?hm4X2HEHkba4YS|+HRoIR=`#Xck@PFXaPjnP z=hC4A*0lumS+gpK=TUN!G;{WqICbMz-V=-lTP^@a#C|E!qH;T00SZh7u#?+?08g0< zV1s%-U-`T@8wGh!3pO^`zUIY{nAED7kBqg!qi&GfOp>57f2PGTV19m z0qU@1PYkf%4z_%;Sq4IY94rS+ie~pwT@O3+tg?#k_=5PIk6tV@< zwLoqM0wBVLkI#`|1w=eYMnc^aRR!t?lnUng>WekR#X!!9mYXL3g^gC7`)S7mmo{y} z9*N!d$s32Nu{cZp#O|UxEZK7eY<7hGcI=lc;HrSVL|HA|S$rhhu_DBT&l+`75d`Sj3LaM~H)P zZuk2&jor6yipafklSsPL-vMo?0yAYXpH3=LveBhkno-3{4VLWL16I-@!RM$Po>&}} zm&PX3-$i>$*yx-THZmvK2q`8Qm7B`(NMR;>VSgoGw}W|G6Xd6v04Zf;HIZ0DZU?@- z39vPe0N8w(9kl$2?eG4T?tLgY5V&aFl%~g;2)aSpi!dl?{hDgsz|3<-M(gPtwP_!n z2aB4tV?d0k+>X`+(HMYfK@qtfDK|mIJeg+A<_i-n+5wkrexFs#V0N&~+{+qJ(wggC*52o2daaRwcu7r;S!!KwguB3!Ei7?IEY ze4V$m{8B4Q^(VK4~Ea!V@@}Gs0HGbR5 zy~WI*21hZuoiK`=O$2a|Uce-Zi2%A*pB|?{gv)n8+_B+i&u8Ys)ePY+UwhBDlzbC& z+N00*-?a8DTC26*(3pKgeMO`fOau^-+c6Qqq}3-dpTsEEH}ds! zT^}8XAWO>c5%+qF%#M8#x_0gC+N%q8h6-%w;qidS%gai<T)vpfYuCHXRx6O-TbC|fnj87X zBESvn(9XlXFMj6%{&BaNQ&;xixaKP)+jJ|%u&?HXvYficY}{%hf?0rNDS-X-0_Jcr zjfj~n?T;~RL#sd4ZED2Jf{*Vj+*1eP9-H+~8X^#Jb?HHabLY)EH{QD@Yh-$M`XXt@3_f-L8nBo~*C?L4~n6M92PCuzX=KFgM*j!B66er$F! z+*M(Wkk`UI@uhrL#IUz-C{K@@xtd&n-PQz%kc}7YeE{{&$?}-*yW$eG*E4jp>B_U!2`2oZuvvitN& z%RN>tE$+Yhtqb1q+xQHbp=W4uKSiIj_LZppR0=hEiVj>P0^Vcr^hu2+#Hqum+}zzo znqZ|M4oD|qd=y&JX-qob`=uqt?o%FJPIVY2w0M7BH>#sx>s#OM#9JF1(3LxMAe-vi ztJeU*G)aksP`5sP9_%|~>Pp{NmMMcay>&D+cI%H}$uSx{Su(yz$)2e$*pS%*+!Zo>DNp(P7 zI%w^D2ceEFUGCtQPKfsKr`x%^dy;Rh>lMKuhA^btz=071W=vV`_xz&m;cvd0`|!3+ z2M6uga6CNvy)%Pjw_X}5+xf###jc+?=>6chZI{BMH=haH^7ipT>(?9{weF3apk<4; z_nZFsi`@oFBXCZE^k9B1x+cH2)~9d(MnfEm;GJxG*IB zU@ly{cOTWk*K1ryX+T7m!6A>VwB-*qfH;b>`AUP19lLSA9HbfppW!={L0K)??SymOCA^V>=tOBLn2c5e ksm9QK-qMKdW>5J419kFO%DdQj-T(jq07*qoM6N<$f+5oB`~Uy| literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..8ca12fe024be86e868d14e91120a6902f8e88ac6 GIT binary patch literal 6464 zcma)BcR1WZxBl%e)~?{d=GL+&^aKnR?F5^S)H60AiZ4#Zw z<{%@_?XtN*4^Ysr4x}4T^65=zoh0oG>c$Zd1_pX6`i0v}uO|-eB%Q>N^ZQB&#m?tGlYwAcTcjWKhWpN*8Y^z}bpUe!vvcHEUBJgNGK%eQ7S zhw2AoGgwo(_hfBFVRxjN`6%=xzloqs)mKWPrm-faQ&#&tk^eX$WPcm-MNC>-{;_L% z0Jg#L7aw?C*LB0?_s+&330gN5n#G}+dQKW6E7x7oah`krn8p`}BEYImc@?)2KR>sX{@J2`9_`;EMqVM;E7 zM^Nq2M2@Ar`m389gX&t}L90)~SGI8us3tMfYX5};G>SN0A%5fOQLG#PPFJYkJHb1AEB+-$fL!Bd}q*2UB9O6tebS&4I)AHoUFS6a0* zc!_!c#7&?E>%TorPH_y|o9nwb*llir-x$3!^g6R>>Q>K7ACvf%;U5oX>e#-@UpPw1ttpskGPCiy-8# z9;&H8tgeknVpz>p*#TzNZQ1iL9rQenM3(5?rr(4U^UU z#ZlsmgBM9j5@V-B83P3|EhsyhgQ77EsG%NO5A6iB2H; zZ1qN35-DS^?&>n1IF?bU|LVIJ-)a3%TDI*m*gMi7SbayJG$BfYU*G+{~waS#I(h-%@?Js8EohlFK)L6r2&g ztcc$v%L)dK+Xr=`-?FuvAc@{QvVYC$Y>1$RA%NKFcE$38WkS6#MRtHdCdDG)L5@99 zmOB8Tk&uN4!2SZ@A&K>I#Y$pW5tKSmDDM|=;^itso2AsMUGb8M-UB;=iAQLVffx9~ z>9>|ibz#eT>CNXD*NxH55}uwlew*<*!HbMj&m@)MJpB3+`0S~CS*}j%xv0#&!t?KV zvzMowAuAt0aiRnsJX@ELz=6evG5`vT22QVgQ8`R8ZRMFz4b*L1Iea$C{}L-`I@ADV z>6E7u@2*aes?Tbya7q(2B@(_EQ`i{|e`sX<`|EStW0J4wXXu{=AL)Yc~qrWr;0$Pv5 zv>|&Z)9;X%pA)*;27gocc66voVg~qDgTjj+(U9|$GL0^^aT_|nB9A30Cit)kb|vD4 zf)DnEpLD$vFe;2q6HeCdJHy;zdy!J*G$c>?H)mhj)nUnqVZgsd$B3_otq0SLKK#6~ zYesV8{6fs%g73iiThOV6vBCG|%N@T5`sPyJC=Khz2BFm;>TDQsy`9-F*ndRcrY(oR zi`Yl&RS)~S{(6bu*x$_R`!T^Rb*kz$y74i|w!v9dWZch7*u=!*tHWu{H)+?o_5R?j zC3fh6nh%xP1o2@)nCKrOt45=`RDWzlx4E4Vyt~xJp=x(& z&nexdTA1T z8wlsklpvKX6UmIAoqD2{y!U7sJ1pb*!$$7-$WqT`P85GQnY<9f-V#A{D0qB4s( zM}v7W^xaEsAKOKHwfqZjhp--BnCdoIWKR-`Fzd|6nA|kgToLF%fZtoODEB96Wo9H1 z0Sdw%@}akuaT$>wLSecayqMj-91_>92B%+(=`^b?eO-^^iU_rUI1HudU9|kEC)+4kO$7RH+ld1twCmYZY9TvW^5l;Z}B8= z896yWiZZB`qqS&OG0XwC_$cobL16lrJ*2c3&fKbrp9 z%tlJvW_MO`=d4M{%mK#3Z4&l;9YJ1vr(ouTCy`gN^l^_A9NgpWRb8LrAX%Q#*Cmp5 zIwyGcPL%eUjz^{sVkq*vzFy#ta>EToiootr5A5XFi*hI$n2k0Y^t86pm2&3+F0p%mt`GZnV`T}#q!8*EbdK85^V zKmz&wU&?nse8nxapPCARIu14E@L92H30#omJIM-srk(t?deU6h*}Dy7Er~G6)^t#c>Md`*iRFxBLNTD%xZ?*ZX(Eyk@A7-?9%^6Mz+0mZ94+f?$Bjyu# z13t~Gc4k*z$MR-EkcUxB z&qf)13zOI)&aC{oO!Rc0f=E+Fz%3Dh2 zV#s?W#u7wIkKwpC1JpsDx>w@|$yx6)8IuolPXc&F`pg23fo3ut{Vi&9S5ax7tA`Jt zwy+x6 zmAjv170vr2Nqvw^f>!9m2c`;ERAPyYv%geDGY^+1Hu9_Ds%%_dgo`-0nQe|jj?3cV zBs&>A3u~RhH@@aaaJYOi^)d;Q9|^Bvl4*H#aNHs#`I7&5osKp$o#b8(AHEYaGGd5R zbl*pMVCA?^kz#h)fPX{it?;>NPXZ%jYUL7&`7ct>ud@Fafg?^dudINo z(V}0Pzk*<5wlI*`V}S9|VcGUJ>E(Z~SJK!qm!rRVg_iEo}kx(ZP@xbA^ zv5C}~Frbyc79Gf|LEN9bkut~oE_ts|A0;FoQd}xjkal?FrynlE$0~+WvV3FqT7hl& zCex`(-&TN>>hn=Z-GiZcT6`@s4Q={XbGonu=`?IO(DL;a7q4GJT*LFu=i-0%HoxX6 zcE6uWDcb4U{c-Lv)sS5Laat=&7<4^Nx-dI0yhCBphb{EUIOPF!x-K*8?4mhe)ql&=>t&BpmQ+Cro zU}jKu9ZVtI-zmH~&_GitE94R}uPo|TH7Avb>6`bfsw(H5#6i@1eAjnbJ6Jp2`sUyA zT6=~iK`oPTyOJ@B7;4>Mu_)Y5CU8VBR&hfdao**flRo6k_^jd9DVW1T%H662;=ha4 z|GqT_1efxomD2pViCVn>W{AJnZU z@(<&n5>30Xt6qP&C^{bC7HPAF@InDSS1jw5!M7p#vbz_0rOjeBFXm4vp#JW99$+91 zK~k`ZV)&&?=i!OIUJn61H*6??S4i2(>@e9c&~OD1RmDDRjY>mIh*T2~R)d#BYSQSV z<518JITbPK5V-O@m<{jeB0FU^j)M2SbBZhP~{vU%3pN+$M zPFjBIaP?dZdrsD*W5MU`i(Z*;vz&KFc$t|S+`C4<^rOY}L-{km@JPgFI%(Qv?H70{ zP9(GR?QE@2xF!jYE#Jrg{OFtw-!-QSAzzixxGASD;*4GzC9BVbY?)PI#oTH5pQvQJ z4(F%a)-AZ0-&-nz;u$aI*h?4q{mtLHo|Jr5*Lkb{dq_w7;*k-zS^tB-&6zy)_}3%5 z#YH742K~EFB(D`Owc*G|eAtF8K$%DHPrG6svzwbQ@<*;KKD^7`bN~5l%&9~Cbi+P| zQXpl;B@D$-in1g8#<%8;7>E4^pKZ8HRr5AdFu%WEWS)2{ojl|(sLh*GTQywaP()C+ zROOx}G2gr+d;pnbYrt(o>mKCgTM;v)c&`#B0IRr8zUJ*L*P}3@{DzfGART_iQo86R zHn{{%AN^=k;uXF7W4>PgVJM5fpitM`f*h9HOPKY2bTw;d_LcTZZU`(pS?h-dbYI%) zn5N|ig{SC0=wK-w(;;O~Bvz+ik;qp}m8&Qd3L?DdCPqZjy*Dme{|~nQ@oE+@SHf-` zDitu;{#0o+xpG%1N-X}T*Bu)Qg_#35Qtg69;bL(Rfw*LuJ7D5YzR7+LKM(f02I`7C zf?egH(4|Ze+r{VKB|xI%+fGVO?Lj(9psR4H0+jOcad-z!HvLVn2`Hu~b(*nIL+m9I zyUu|_)!0IKHTa4$J7h7LOV!SAp~5}f5M;S@2NAbfSnnITK3_mZ*(^b(;k-_z9a0&^ zD9wz~H~yQr==~xFtiM8@xM$))wCt^b{h%59^VMn|7>SqD3FSPPD;X>Z*TpI-)>p}4 zl9J3_o=A{D4@0OSL{z}-3t}KIP9aZAfIKBMxM9@w>5I+pAQ-f%v=?5 z&Xyg1ftNTz9SDl#6_T1x4b)vosG(9 ze*G{-J=_M#B!k3^sHOas?)yh=l79yE>hAtVo}h~T)f&PmUwfHd^GIgA$#c{9M_K@c zWbZ@sJ{%JeF!chy?#Y6l_884Q)}?y|vx&R~qZDlG#Q$pU2W+U4AQ+gt-ViZ@8*)W| zN}wXeW~TTA#eqe)(vdbZm(Pm3j;>#thsjkQ;WH#a1e>C?-z7B%5go0khC;qQfrA-~ z$^9-bBZi+WMhAW0%y*4FlNC%SvM%a(`BE ze-4>w7)wg(sKN@T-nTl^G~+e{lyeTG(dfoz3U!LKf{rmR=<}+ih`q1*(OB8oS#B&> z;Mf*_o&W5*=YXfgFP}B@p)|WJA7X^OhD8)dnP)jzA@E=&=Ci7QzO`+_Vzsr zPWpZ3Z1>W?dNv6)H}>_%l*Di^aMXFax2)v1ZCxi4OJKTI<)yK_R>n#>Sv$LTRI8cB ziL<^H!Q&(ny#h19ximj|=3WygbFQ9j_4d8yE5}Rvb>DpH^e#I;g6}sM7nZnLmyB3# z!UenLG)cb%%--*pozd3}aX#-Nmu5ptKcp>-zcwRx9se(_2ZQsmWHU!Rgj3QRPn3UF z_sqgJ&Eb=kv+m0$9uW~j-aZ0Hq#b_2f^rS*bL}stW91HXNt0JDK~q-%62AW}++%IT zk!ZO&)BjYf)_bpTye9UB=w_-2M{YgE#ii%`l+(PHe_QjW@$o^e)A&KoW2)+!I9Ohw zDB1e=ELr`L3zwGjsfma_2>Th#A0!7;_??{~*jzt2*T6O%e3V)-7*TMGh!k050cAi2C?f}r2CHy&b8kPa2#6aI1wtOBBfiCCj?OjhctJT zF|t;&c+_-i=lhK}pNiu>8*ZFrt0rJp={`H182b$`Zb>SI(z!@Hq@<+#JSpVAzA3oc z@yEcV|MbQ+i)`%|)klTCzCj&qoC0c7g6FFgsUhcaDowSG{A=DV19LHK*M7TK?HV;a zAAvOV<(8UlC>jP4XE>(OS{6DfL B0*L?s literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..8e19b410a1b15ff180f3dacac19395fe3046cdec GIT binary patch literal 10676 zcmV;lDNELgP)um}xpNhCM7m0FQ}4}N1loz9~lvx)@N$zJd<6*u{W9aHJztU)8d8y;?3WdPz&A7QJeFUv+{E$_OFb457DPov zKYK{O^DFs{ApSuA{FLNz6?vik@>8e5x#1eBfU?k4&SP;lt`%BTxnkw{sDSls^$yvr#7NA*&s?gZVd_>Rv*NEb*6Zkcn zTpQm5+>7kJN$=MTQ_~#;5b!%>j&UU=HX-HtFNaj*ZO3v3%R?+kD&@Hn5iL5pzkc<} z!}Vjz^MoN~xma>UAg`3?HmDQH_r$-+6~29-ynfB8BlXkvm55}{k7TadH<~V$bhW)OZXK@1)CrIKcRnSY`tG*oX}4YC&HgKz~^u7 zD?#%P?L~p~dt3#y(89y}P;ij|-Z#KC;98PvlJCjf6TQbsznsL8#78n~B_kaQl}nsm zLHr7z%-FAGd=-!e?C{q62x5i4g4hNuh)LeqTa4ynfC4h(k*e>okrBlLv;YG%yf8!6 zcN)a^5>rp^4L+myO70z(0m`D}$C(eqfV1GpzM+%$6s6$?xF>~%Gzx|$BUZ$=;f)B8 zoQUrc!zB4kT!wqSvJ=ywY-W)3364w!`U>J+49ZE`H~+{!gaM)zFV!?!H+)k8BnOj3 zGvU93auN}g?X^8c`+PFv|EH=R%m)iUN7gssWyTD~uv7prl1iRfRaCFeJUuA@$(p&K z?D+cmhxf`n9B~!?S#d*TeLb^(q~VYS$3KhjfwfMWtZx&PlTZ(i@5HJ?of_Q)0YX99 z35b?W>?=vlb6gtK1ydcF4<@aH|Hgj8r?~QNOPx(YoKT^Xn=?Q%=1uA&-G(}mXdtsT zQuKACS|@G@uBW(SY(cH%% zq+xr%bpGqOGHyw3=8K7;J&hp^g1UsyG zYT24BGeGQukP?&TlOBE2H$2oH>U#E>GtI-fmc)17uc`7FRxJ3A!c%ADN^Z^oi6tYp zjzE+a{r&jt6z^scbd(feWPVEE!lV1I4lfdLhQ|yLdx&1IEV%l1erB&H8X}3=8lIcc zCNPUis-KRbCC z20@WYl&vVEZo!fLXxXs?{|<|Z=>0^-iX;y6{DT$lSo8b|@FZM3U$+W37(A_9<)fnq zP~11?(AKlHI-Lh(`?-@S?(1{t16bc7ESX->9twFP@t8_XK$XxuSFF#R(g7H(U%XvWa zm}J>%4-suYL=gX7-_MsjD27o?I!G888fxV$koLCfOv+Da&OVTG*@(aC9lz_e>*UGS zrX6f-45hd55ya-p_O{FbHEG%Ee9~i(H-B3RZkv`0ZDn$!>MigMZX06&y3RSk-WnL-{cM1 z1TZr|rc*Xaf|_^y&YLc4KK3<@aWfge2jARbRRg1DfJ~%pV9L_@$UADw3EXC_n%p0v zQO*{=88K@W{T?$wCR#S!M!e+R$aDL~EzovN7pbOBvrk&&ASS=Z43No|jrc>}aXXO5 zrd1<|Qypq-h#J*iORN@8YRc&`17u=lqo&L&YV%p#hL%P*WfIfH%ZUC^o#`?IWWr?w zQ^?EgP7!lqlq}ZM}d*sSVz(mqeQrA_huV@M4iwXa>k+%O-ZHW44JrRxLJy zLoHTuEqw(sMcO38n*lQ6ve97<&+Y50NNmVpW{hed@5EgrWfI~ITFJ0D(<|k)ag-~cV z0@-#S9z8&EUfBL7C_53YJ$)2ix^)vhsH;Q&KDdwe{q{2oJ#~b@#Qr?YGHrh;`rz<> z)F&rNr}J@}p8^N(8hLRH`=jpeT@y z2v7WETpnG{qixxkWWyK7(3QJ)RF-$=`O^k3+oY;O;rNnl^kVc*(j(Jb_99(Dw1w;T z4K8fsKDzn|epoWT|5{~*3bCC1>nd5;@=5lApq%3>^U_gQD>5j-O@WH;uEG+4MSBjJkdgtP;JG2`S&&Sa#_w33(yyAux~lnp7>wMXzD4yy_2#Vh+7&WMkWFl9Ohq06ifTiMWIC(|1Fe(3n}U_0(+jGC_(1c@X4vzk6y`)qzH+WXtj>dhI3=)~1Oi0Omh z^vp^i61ge1rO8;F~ncj_=tk zIvnwqFB-?)jER5LdQ?Hi=Kv5dgPZx%XSjc8VLCd4yYK4E88pIi4AGWzwdmrFf6&AF zI-`N3cpnf!Klj%)afJEC-x{^po?kDKD0@>6(}1f2xkCOMS49E?+5^EenLUrqK%EANgiQdAy8BW0e}Fvw`>)CTcvBeX6ZgjWC~(KdFE9hv+M6*t z?loxF7N3yv+}r*v(>9DX;0V1TP3G)L5r}m~e)RO*pc zv#tyehrK*U7ilRPA zk!aAmm9v3`z|hH7+WJ41!*h~g<2G1sUubFoL9b?dbp>%)pHzUZ-n)Z)W(6jh>jY-3 zUq&n%9=y?`ajN7rr3`t68sL^H^MG_rUDQw2$gj4Jb8MXgAW99^EbKmu9*Pv4Rh3=;vUVF30sUrdj!_n0*+m?WCbo^8q2fo|;?vH3OFh4__< zyaqNQdP4&Q+6R)%gv|^b#b|oW*XMMKLhEgy7(3D!poW*Tk`Qn4f*HUBD@U4+eOL|4 zh+hT+hl`Hx6+v(dZi=hGf|lF9JV};bs&Bm{THmunMOu))>8UdnTYV%TFdKB!dzN+?+5S+WYI><_z_6eDC z+WvMv78tB-j%G_;_de;{^Q7!t>Khj7gp^izaCK?7PmUiHevBXbk=s8{114AjWHDj{ z_(0ZvDUl`5mu8_cWw}Ba6$W+4RbZ4H97I^qQrq9Yd$5A!1wSqDNaUXf_sQ%GF7*wX zXFhfrz!d7zZiDhtgk#HcP(aukNVacB**=V7u3*Xwp&aR_R8vnbd1PGG6$}j(F_VMA?KUK~Jd?J)TjC!h3~KL|i&IYtL40AFtv zb_DC5Vt8aT6JhF5fEI0_FM#^zCX2>a=A#}FVOKjnH_(#+q}Ggy0kU*_?=3Ifjr+H$ z0D{~ZO<8+Sll*k^U-Y6DvsCpBP|v8XH*H@U(US~mumH%)dBJRde1f|G&@1J+MvVi( zla}?vMV%}C?xRQOryKvG8`v3bs)mPaL*v7}=z1;z?uq)tAg6HwY9Ihbhu^awAJU&S zK#m{H4)PVmJ!}eqpy%MRP$Pe(&D;?N7($!Oz=8uTxRyl1Wg*V=gE z5PBge1q~I%qmY6Ol#1^O?u~P=44?CDh*GEXjSmoi`y;!_V+I2o>H!jms@u4HII9l^ z=&`W@f)v#1KQ8O!bY@+=fC3VBA@A7jQt^q~fz}*7i0(grY=jujW3=vAHS&qyN!B3* z;l=MjJrW~O7Sz5xp2Z?EtA`naLM239gw8Ub=%IHPY<00fb5 zozf%j+(s|urpUn~5r5pE7yi0taDcx4`#K81u*kwAk(cvQ$vx_F{wd}8h=eKDCE$M(iD9_QGJh zr0e(Z>QuRZ+`ff^GZPu%;bA#_^$&vsboSa6V!jmN0SV4dBKN4v`C)aESBtZV7J~U( zOc3e47Zx3Ux67y(o?#7;!=y1jxEueEF#$^c_PoxG_pq)GZLU2`d>%!3rdJjkrAK!2 z!2>jNPceo_9v)xpmu)_EgxsU9*GT^QoERVik+LSzH$Z{Ax7_GFY+!HA0MSfDyXT(k z?vob%yRiU**{7No8PKK&w77Z?8j#9IJ#hv1O^!lS%kt0n7@x79#}+R-TuINbiBfotv)O^y=kD0AkUNhrP$U_@qXE zYpkIR$Zgi=#6Os0^$m7rt1kV3&R~;r&xn%>8xzDHk!yob^vyrl^*R$4R_u5eYdHc> zk}^bkAIjLe{t{-Q8+D@9&dz9Q;o$+RGT7l8sx<~c5IBs*Dp_bAwqQRM2olfEe}Vk4 zc9Vt3hx$Z%0|;xNF=aW(Z*%CEmg_ z-riR#1Wjb9t+D^_K$%|E`_m#&XHzQ*&~vzFCzYIJB6Ieap%urgb=%UsC<9^hC4{(B z(3+*N>|JNdhT54KE$HT~okqq-teADE3Vn9^sA!>%+fb|98XIO zePvP!J8>9Ao~cC(u@>UqZhO(v+C!ob_m!fdtCwsACbR*lqtAwwQ@{hCy1%pm)*>|2 z*4U}vUNFO;Lw9~?Rw9)osm$D4f)?XmUvN$e8eWjjsm+Gr-@$~6iMgqWH+%YAV1gAu z7NbW)FU+RvtZ75ADtlW83vAW@YkP-BMr{8tV}A+L9?({@=u8(K9O&F z4CiS*&nHDa>J}36GR;VAs~I41Kfit308jVeg0#zIVj;(cr8EHqE6<OP0C9kbOl`)daY)$O<0J;;?A%Ve z&#H!_rNfB84*1o6aD2oLL(Ywd^#ZTmyK9Dlqg=at2TjDGCcH@qymjUqbf4FvGxc*ap|#6x@}Ug@+NK z6j_PV43T(wmxf+(J5kT~r++|VKw>6X0o1~R#{);Yll!>QeP1cfzTvOK0-Ndpf;nGz znqZirxrk&)Llzz-fKnnEL_I{Lt#O<8-0}IX?!m#sfdv{wY{3p7aF*=sI^w@wUdl;1 zOaQ`8mA(OjeI_2&*O_79989c3v-g+F!6OGyYBVD}5>W|JMvMsd5c6BV0+zUQBP_6V zpc@@&KR+A%>NFy5N0^}idafWHEjUnt=I<|KC5!NPqrW(T!j9Ll{*5Zxa^f&K*Ftjr zawS=CfJrKpWc85)DE8bbv=YBAz#5gkRLaSR_+g6q@-*6f>L^-JT`4CEtE*JX@Z1zF z0E&{AR0fE|??ogjZqfU3(3!I1@j9|~pd0<5UcI0vX5Z_hd1HMA@j|Yv)N2|G^GS;q zXYi@WB9s-#b)He4kH+MtvHHF`8K0kl-oxkemC0RJl}RX;os2R(GXc%6Dn>&D@rZ}- zPb!J(Btl-2B2W+9n6vkmpjV4Bl?F&viUK%NfXXmH_#u%8D2iDWAcFW0m@khVp9{N9 z7&DbP(1Gk7XhlD$GZqiugk2XTu>nJ*bAY;J1CcQR(gq#?Wq4+yGC*3wqY5A{@Bl2z z0I7yYB2tLJe5Lb|+h?DCkK5jdFd$~3g?0d0ShVgG6l4p2kXQKH?S=$M3{jLui1Y>! zz77*W+QP#K5C?de0OAUdGC-Q)A%ZOd%_kz}%W2+>L}>etfq`~pMyi$o5kJUY><4vq zdT;7z-}KnW2H$K&gE`X+Kok~5fVjY;1Q17f6amr&9##OQG7B#?nzXIwwheWiM!)a| zv^^L9r_m3B3^W^?E?~yI`Qf!(wU9Ow3)Pu3odJ?DRk8qag@-*r>fw?ty;X?M?5GeGW6VdRS@X}kbfC>Ph0tSHC!=o7> zcJP1%;)e#h-i!cg0S|z}2#|Ws1LjKvukP!X{cY{zF$mh+!rtD7tND^MV;y)-ur`c4 zFKkU>&&+tOw*1y*YwVu5X8==z0UVItNs(wyMIoAiwTI+0%@V;VuNP&ZIh92y2&-(k zMi0;exUrZe67@)CmgjR)(0ttRFy~A9c}gUif~+K|%mVQAO^-$M_Lq|w4!my^J_<}z zA?b<|Lu5*2A)0rv67|lAMLqF*s7KWjivr(f4{^A5$f4qjg zmxyepp;Y!W2-Y|f2|IZNMV_rib8+3xIZ#3BP@Ul4G|a88M6V}A)%k~vnh0%eYirwy zYwt@rDs5q5-M(vANBrvba>DMCi52-;ZT+q5*4X2*N*nu4*&?uY&0IEM1_>fN{*6zdU!wDfFIgPxZWn<9+^rhhu0i5u{>8eHa7)5yJ`s} z&wJ6fw${~r$vM*&uCCxryLOp0cDzs0u6k{{^!ivQ8f-O~8dg3KgU_SbRiA)C08Qiv zzKj+=kD{M5JWJLGV(;@P`ZkfJkBl^sz+u>GVaJz7K;+rg z!o@{r=UEY;R%DelCy0#G3URLBevOL)`* zqy;>(0F74#5KDMKCSwZ$ri&3ES$H7!lg1Z%!6v&4XYGNurEM%p9@7gz5@*`VqGLzU zLT+15_Xc^?TikPBx22wj=^SZ zs}Z0G&hW4Wh|SoR5uCl&CJhu&k`der5ui5sCU4Xu6TeIXd)x3=z%U;RBc ztv*7s+cIP7jSY}0h}ev6NdZcX;0%u}Krp$FD?Ca7=>U&BKrt%d;n#!acKLYTY21bZ zv@JUu!uL_#BXe+Yf|!Brh+$)}DSJRnnTjC}Ljoio_TWn)VmmNO0IF00kQSrrFee?R z7Bc~)&8WJ1fTFY-RVM%)WCnDP(H}A& zhBl&Y)kS8&w1q_z9gU_85|G-ofg9`TvUE|dcg!}aDQgOV5Q)DNUCuQ)WYLDoh0la$WgJ4Rotv zl73SGB!!5ft4;u_0)Tewlu1aIlv4$e7NhEr2*wDImhcdODhmiee(7;S&)u7m^TJuj zaGUfdZDVciLfWbcO&60EYDq)jov~-{4mK7`pYEYc&w@icvLv$}mP~63fQaCyo2Ss* zQVo!HDH$pO(lRB35g-omfawMe^nP_^y$^poa`|Z9SFjm3X%lhVbe0*eXklR@hpazj z*S1q9FNjjxxVQ}d->$7c!mNdD=TFtot*O#!`|xS|OHuf_lO(fI+uy#9pUO$a*#sOA z$Rylwv>Hv8d{!)xY^h8tQ6spaLFVi$MVo35lV#;3pFwgMqm(I19?9JSfizUeB!pxz zcn=V0Ex3&Ey6Qwt{o0znXyk^^eztLT9tLee+r-Wk{2opI5JWWXJ32UktqpML9XRs6 z#MobUojQtE)E=tWWgF@baOJ{w)?sH(aQZ!{b=ZagG!MYD6E_&Z4eyD-|6~MGQ5j`# z30VOQ`vMH%@f}La~!CD6da+o0vbz|)znwna{EC?cc;6-Qy+!o+g*weOYZHn;7XD^B!GzUq~%s$X>)e$w?x< z)Z{%y9JjKLLjf7F$S-*}(L4YTB*B9jlapkLL@J3tktnH*$W0;n%wWo3O+r{wMM+Xs z312FZ01r9LkcJA*uaczmNv}$!;O~IX;}g9Njo7gI5`{<7<8q*FVrk0oC=PXy=|H#u zKz|QgXXl|oYge50=7$rDoC!A zwmuJZ)k$wFA`CfyIQN20w{F8JJU+C?)xnrU75an-ynV+u_V&K`HPF)1vY*SRA5?qo z4wJ-*MB1#|r!Rm&z+V6}B?l0Pe4bzc2%Dl|*~vO(62cT4m?6OkkScgmqa{JY29NC< zP`3p$kKj5U0CjC6u5(A)29~DgG_&oQS$!%!~kOnUbLrAa(Fytpgg!eRC*soc&G_uG_vu^N8!(Nuj&` z#K5BpB1am;3cv;J?KETBHutTeLYRx~!*UT%eFH@HlYnR~Xd#ZtV2l89$md}MNCP~) z#NEhk{c@q>)Yl@QPDyT$xQ-p4baOh=17y<6kArSxF%WmxdX1ad1CA`8-MhaZCnN0!T$BAvIYd$Ypk2y6B4Si@|dVJW!`?+j>!lxq~SM z3ias|wWr-lH!C{=QINH>!!YMh<{ktaPS&W&jIB2|K;l(L3bab7U{MCX3JClZr|>x|SL)ShO73*>(Um3?TLG`qsoXZfidM1G@Xto|+)Gp=VaS;Q^9D6v=9A zD>#=4Ano&cVAicz1Lcqje*g}Ec0HrKfAs*ZXNAq1<|_lpmo==DKZL81tN)a z-G$7_Zqvrk!pe$hqqYtX!@JFyp6HMtm!DR zlY%zt)46}pc&GU@O5HcDdK3`1gJ_^hRfR&SkCYK(7=R>uMx>}8RhI`yOL*WM)W?DK zd0>f^Fa5DbD2!_Kr?c<^^IC=K{kB<@x5 zk$1vQb~leE3UKtFT;Jvph*;*-lWW8bLCF!qLW$cXy+TXr@ad&Qi)bp0anoS zpc={A)@G=~8PB3aVN#6)WyEEr;5gAbX#X_(I$X6; zYpSX{&_t+i#6PmJ^0%_Jm6*0ZSo(JyIABWG_ol_VE?acLZPV(9(0h|=CK;f}D(n=h zH}=5R*n3cbAWn;2{Pym{R zy1w&fY{!B9--3Im@f>2Rti&3}gO=5fmc5Nk_uLGR9zYUnB;q6423g?ViKSTj!bo(N z;35C#KI82u-qJ4{Gf19eyVUlUW%|^ zZnCIfP7;y+_-`g5|IbPi^%ca4`U?_-{WBAUA;nq3Pmb&tjVjJW{j(BKKdjOErbeS) zu{%)Dotu!~`sIJ|mMlEx{_fPMF3&yt4!*}{=)Lxad&l5N;yDtHBLSza865qC)RtDR zEzNTQ$I=Twxjl$hva*tBC1{|2c0A9QyeEzMpx1&~aRXK^t{J*{-KFPtZ@v9|LL_>( zFq5pc7*d#lFa&5!Sq>Ugk%wTXYPEvD6H=0eMi-=`m$Q@5wh937R(}&TIUbMRpz@FH=p^muMS&k8rPW&v5Uw3|(oN%o@i?AX(9{eMj0e z=|;zbye%X!HEJd)P*|Sr9279#aqQ@Y0n?{$9=Lcxs@J0TE4-I}RLfhl^rG*&<(K_F zUwy@Y^V+`y!q?sCv2DYDAOYd)Z}@Ln_qX4s&#w5cTltGm=(3C6OBdC;FPKx|J8x!c z@AsyKx#Dxexm&kxJ(ymrFTJ)z(*WQ-$UTbhwHv+nPP8mmW^jxPQY+dck!Yn(GBCl| zkS7UDcIeQPG+ujYNI(&)epEv|1C8I--hO0z57$xcyu3ne{CQ(R;BWX0{zm~B2aNYrwV0HSx8{J;1$)?@1OKiJ7vbWif-(1RyDDC0Urd(C)7@ec}NqAJW4iP}%mf zbm-iNbeE}?u#}fR3L^cV^!xa?mYqBIAtni6fpfz(#K5@GYdg|=k%dN4+nB*IQJC7% zz*}ePoH|fP)rD#VciPxq#I!);i-%JJsPv!`K;iJCfOym2c+zupr{{E{*RZ44w4wK4 zhUN){sTFNBOX{3j)0j#J>OV=q>OxJ619fN}DGajWNdM=ZG3C0HJC*5|F-luRx+T-!eR#IDS=86u9ga*$qLhV6wmY2 a9sdtN6eHRrdyqB&0000AvglfA9NypXa{#=A1b*&&-_9nK?6&dOB)k#LUD105bLa$_BV6=HEq#kGmWEawY(P zYgJuY!N_}RGo8TO$oTXsB$&89>#C*cCdYLmNX~ke#Hv9KA93kET{$`$PbI2&f<=QO zbYEuG&fq#8;U|Hp%+iMX($XltD84sh%`HcA9=yrw*x5Rd?dw|aj_wW|b=kga#C;uk zY)LO?99@%_7kX6dzR(&*!tnq4;>`zco!?9(Az&zTo|L_j^WL&gF7wJuI**)H&y&sO z9l;NhRvPV@eM$C25(Y1oLfTY%Qu06J{1!LY%l6`?e{u8in|(1@!4MJk2$1+uIsPqnf+k()k8h#rg7tMJHVtWaqYT zq|_R>T}xsUyk)<9e2b1o1pB702Pc9ve?7kQpF2}x}2=dBPVaUdm7-ZjF+bUL0vak))KQnKW)qx!vgbJE?)QXqi+7Po!iYjGEI9xeX+3}trhX=ZOA z6m<4$ajUa5?TbuamQOsfYFx!_%v5Pca-z3$eHCN9QVeZN0(`DY*CwYcn=Z{IwS{|W zMVA?tHKL`t<(1kV)n+5idi^{`iXLpvnO=;Rx{T4}wriDGR@79T*3GDl#qU(VPNH?_ z+WNh=8;jQwV zM#imv9eB3r+LQaLX%UgUmS$Q-V|+Ygp>ovUbJ{jiX~_q+go2a38CD$M(o|A(oS*f( zh?L!-@KukR?4c%)OIZBg${L2g5L6Pa=XF(yBP@&9b|agsWh)uYDy{MN@*W9zbE^QG zPZ8wOAg?zDskn|*wf&j@!i7Pbw6fw_Jr}n|+l>O-_8a2*TEQA7y+XU@NUD_gnXUKG z2}$1=_w*$M6~;^rw4#*yT22U!%e#`&t(A(xyf|-T(y3T1sVLvn_}AGKzdo!w)-*Uq z)`#%}qna5)jZjh2p>&4DK;ogEbdo#F?UZ%H>ljUbLLNV;50EQ$-zmX5OZ~Oiu>6ZIQR6g&! zPTyC(E=$qrR?zuYogtRne89+%HynZlT2P=QPE)k~RavpYct9<_leX;S(cUYWmJ%5i zw<#|0L;Epc1diZ!djsOtxXCrexN0iPy+W$%xrf_3!-ktsYsF?BfO_-+rz;1%p|X0Z z`xS4h<)pP{yf5Y2%`K?M%L1lRyQRhGg2R@R1BO$0TUeSMPUR$cJ)j;QyWQ-2SYJ1? z%~^ILTzh8y5rPT)29-&Qo@%PiVei|f)aGz{7xO>5>77{OmMi}>lo?rwpOta_aN2a} zZ_L3$CVhl%C4|)F%yc_!V?s)E@;~94fP)o1CTwgW@3F@BcS<{+x8_h1m|gj-8eT8~ z{P{;v_nE3QwfJ#=Vz7jq`qgMV1n|+2J0HNKgTY17#cGz07^gpi;87-UU+o*XC;A3g zg??@@etFPbu_%d$CSm+feh%;vd6_sgJ6ydmIB8OZ2ObCNBuk-&Tg}J-dX|>uJe}kmEmBH)Q7uAac~6f=i$joy zJK0c6OM9t_Ef1k*Ry3>%RVQV4P_zwS5s^T+u`MbCH zd6?wSSFRIE`|C9((s}H4ZYxc^RT{P)UbYCc^d0IW&aSPITSpqAIQF6g6&D^@VVnrOzTa^&s3buD4Zh79z^>7JLQH+- zqYS8QcLF8+03Y|4eD30R)L9O+_7gvyxH&uXehWGsGF8ox(YPKFj0 zeO}1^(}~=Cb++)WmDI6QeKp!MtupG%f{wZCy1$n!&RIBjUrS~HF0dp*p%w3uW|XYcuU?@&lSpJS-nf;@|F$`Umi_6zQo)P* zAN?|yXKv+GF@wL}{Z@+e2fPCrPyKWP%8JnsD4{x0N4};B4)_O}kwrPV3fK?Wi2^1> z9|==dt|saLUjuoB-9|amKlwXh1UO#${B=k&OyF9&!@HCh^(P1Z!t`T$%9BxBE^)o# zrb+Lsi5i*!ebE*rcxuhl)knhZ#ON)wO$oi@$3X1Yo6{S=udP&GmK4bkq;tb{^J~U4q82PKlFy7~0oQfA>1ZE&nMwI&x>vEc6U6l>WUM9Dh&x=`RU*Gbxx! zkNtRQF;b=RUB91-eD(xJv`D~Lmt+aUbpk*|itL0+z!SP00+|E6y z`uA#y)}Obo8;y%<&n3om?p6xzZJ%th-0j>wzfmi#6_%M|?B;=zSIm6DyAoM_apC>I zXM6D8M09ojEP0;(Tm6=+iv(2Opx(Oj#^^AOYqkBr2bn&rSZqFl_g%UyrartZl7oXX z-sf{fs&@{EPIHwb9qDY_<^%-#3soQ%QDuSy?jsU+(Fip2|+_ zGrN|zd*<~MKX{Lbhj???lU_IhSOdz4)6#L*Ah zm&9^`M`a&%BRsm}7gG3v#DiB;WAYz|2o$)P`>;wKw>@5~1xl# znaLk1Gsg9W+FM2frk6^A_#Vca3W3`Oq!4wV08%sw2(tG4QPdzk%6LE|<#%m44u|qJ zyU?M#nQ?*VpSqw3iYXL4`rl88NPi0HtH8TIb5i9co;}~0@H+On_0OFWps8>3b*XNL zROE5^A`ad4h3;CKVSt1Kz|T<$S=!5XFZ%6Vi5u+l>6fg(<F3On}Towx%MlobtMeV$xN86aA@wyIsb zpySR3MZYr<`22Zdh0P(}B+{cDNL&Y~SPHU}if;!Las3k+eLw;apzg$Cn=31tX!;`8 zY=|5HvpA^g-d!i?nHGr%`~;Flh)u-a91db%jAcig`GW_KWahiTTh z{}^LvD}yhSsCAb|MoLE2G})=@*?##ViZEif4M<3V`i@tM!^>(*Rgr=M9E%|@2gR-B zJV|}j_)t9!JI+t<`3J6z`iNgqpaz#UNv`wl%dOPql&jUOM&>{9=QR^_l&7V4>`hsJ z^G|jS@;l#xw>et_W*DeS$UNv7$Yq?LHspOA%H3LWvgs9kgq*9fx_t)_w4AYf&erE; zoUk${(?)h)eonZuyEw`pl=f#;ELYvr!4*#ks>oM})C*(SuXf}-zfb9s0fYSo3g&C* zV=nfhl#iZHZ8A?c#4g7pM_Rrg?|bjeon~Ou(U2Voz^zl1+IZQ!G&%DZFh62aK+ek- zIo}{Z&X;+Mut%Mj>T@fUL(+){SDfT6!du|ddt5){zl^BJmNK30o-LWDrxIFSRRt+6 z!mYbqyWs;|mm8gb++|aKrJtx9R=#Vi=s69%I$3gH4DJ(vBFLcl7y^(vnPL2npvJ^j?o{T3??tCz0EKI&uu8tndn zkP*E{3i=Q?WeHe^H6*-O16$ApV$=)$Nqz3J%o|%deE091F8ElmB!tV*#0J2#d^I^`4ktA5yK?Q)z|RG`a?V z6vH1jHr#*xxAsihWpi)FEq@|s`QcppDIGpfxROKBu0<7Fy{apE5|3#IrOxK5OZfiT zjAMJ0KGV~$kv@fkjt4!>L}(9#^U%fwjj7Soc36XR)nDkQ3%8O)y;4K2VSi!6N4Mh@ zw62zp(^}TOjuhC^j`!miC0|X$=v@bbB+t5$f4<4>B;>4L-dJnDu>0!J6a6@}jJN&h z5e^#-V!s9Wub&ovQDiBRQH|Uc+sDm4EBsD^hoLp{bH0m|`La@aQ;Ug8XOExRXK|8f z^?z9pD!y^tS<2~MSIn4a7XMfypgzG#m*nQ%dM@^@iK_bUx$*elFco$VW}e6F=)=J* z3o<(tO11GJCk*0owwI(!QK`Ukf9T;Pd{7*GdM=q|Klu8W#Ibn*K754KV1q`FWw!Tu zep>9~)rzk~X|!cCM0wh46KQ1GO>+TU8SrsBIj*FPcmY7D$cXZ;q6s*Vh)z%o(t;vn zx!K|qj$8j0+q9$yyXv#dz}`dy+B*;=H54B~0IEX%s9R#o6}K@lXi@`Zn-ymH++KpSwT zEpq>t59b$ORT?+07%Qzh8*}&0C2m>=7z55P?UqIjx=Nd z5_RT#G>kXWDMf$`cv#^@V6=CmHr$UfeA!pUv;qQtHbiC6i2y8QN z_e#fn4t6ytGgXu;d7vVGdnkco*$$)h)0U9bYF(y!vQMeBp4HNebA$vCuS3f%VZdk< zA0N@-iIRCci*VNggbxTXO(${yjlZp>R|r93&dmU$WQz=7>t!z_gTUtPbjoj2-X{Rs zrTA$5Jtrt~@cao#5|vM$p+l3M_HC0Ykiw9@7935K_wf*-^|GKh$%+opV7&;?rh9&P zh@9}XUqp-`JNnPs3e9~OrZBIJ1eel)hsimyfZSIAKa-_e!~q3^y@G=z;FN<65|y#S zIBWtzFv3n-*Aa|5F3Z9=zMs!RG6&8j!J;3)knD|vHy=yM(L#G}?m=jXNQ08rzG{Q? z03L8v^?3q`cxQdd42Z9RVo{e%Ga$C`=^7nqlxSf^lZhCTfwJB*!vD&M6QLv2g3NcE zlLNNSl;_UR5*{d}Kf!uIIF!i1cJDS7fMI##KSPmi=TR$DWZKb=cLBWJrF7#XGuhG7 zjcL@fyIHYDII3IRrCBTavFc^BM=uYdvN&GWBrcfogytsZ#mNX@9K+}pNp_= zk9AV-B>m?U~{NIbky_m^|J@%P=#HgBe^ zDfz`6g|`gOJpKE@q~4TH!vrHVNVb%n^e@&ALm85qj|xaBT5I90Ycp`;(u*rwGoyp? zo42?p->1XHi@SD&m=D5+6}|bUFWFw^Ue~(Ns1WQdWg=ux{zyH+AM91|XPZ%d*fiP0agmU%;tlV*!A{7y5(|3pSIw`dLqLknHv_PQBq$*|@+K4(r z(nO>@f;?%pkIO4xr70*Nk#eL*y7x+_=)8hsToX389#3w1KYRW> z*jT10YzQG%=Q$~Vd?jE*NFJ3Q_1xC`bl#coS5x4+(w)Pk{J+G z!)n>NlV4dtbN2@K)QdPtA{jC87jPU@hGv_JS3`DM&#QrL5o|v9pZ!u|C7l8Y!06X} zo>&23nPdehmmoN^p|A!0tiUTr`CHa7lrfP~sQnxYB!UG1e(yGzf9ed??k|R+753Jl z7|p%-Z;}uZWB`691Y{;z%fht0EQ5I=Q=xM!$55sB}?14LLaJP!Sh9=o6Ct`HH&OJAVuCgBpm0G_>L zLgPblVMON9`^+|EfPcuK*NO!3l?TlBFPGtQ7{6XmmBfL}Lk{{Mr*gyq842232l)y! z&EGfE9#VdjQO(a$U8DtYD6#;quA5M_q9pjqqG3-3XgR=iH5haYfFOE#7*m*WlW+;p z?*(QB<`&=?VN8b*zDdAXk|0u&ChUKnuK~u}^00YLP@tffpKM40h@>0qAv>J$ zJrJO6LoW6nQ;Lt_8TqG$3|&uIySi8pIQWB_=t1;Ew5BRl7J?W_#P#Q!jsiS1)t)R& zBm=TT1+G!Pc}xbIpGmNXV5B}zM2aE|pbfY#^zg<53DRF@)}T12BMzF0(fIJ0A+3Z) zF(FCSsFO`ljPqMasO-{OJsw6GD$89qiidf9!om$onI10;i?xPp_7Zxa02^=nHJfV2 zo}1Yu%99UK)~|dQR05$flJ_LP@??KD=@6^q3rd&zl=sq`D155z=wL0%C|=Gl`rS`{ zw-3XN{PCKN>`Mx4Uux^yLNOaIrkrs#Bqr1f%w1cG$Fdo;T7H<^$r|;|#mdi$cevZ* zdUc9(`eHt8@K+4=->Qr*HrT(({2Uj)Bl+GPr7ru{us3&!JKUzXmE_(`3UuU4d?;JL zc1X3KSL^U^==r@m)sd2}-$!fwYMO+)%E6|CLIK_ z##nHbe&&rMSDpx}2%+?FJ^shJ8yjE97(vftaucYh>*)KEqRD9|NrLKH=hV$e9A!~^ z4bADay5RL!GXeJ2_zHiwLYIYD#U!gVUX?0lWn6r52N(6LN{Xi9iK=_HO>X!U%Sq@l zh^!p)kHb1d(Ot9To5AfPe}~eD)OZ0MoXW((BIk$hb?gir611I2@D$KJ^VOg zT4fSfiCU#LYYL*CDCFNS4@bFDJa-HD&yA+x-IPQdMe7%+($&f?mC=n) z%&EO|+G#XLeHlo%(5I?7ol`ugo-_s0FL0#nkfTIT>6E9z50T3{?rk#sL>rRnNM~|9 zbq!>`l)R){K{#)v-}J)R27GTgA_f4XfzXn2${0y<*>7Svs39Rgf5ulzf}LmgT3Eqn z8G!%JRL1Gwj7k#Zh=Le=U`Dd4zH#;|o}L#6L-c(Lz=^Dm0-V6?8-?W5q)|w-V8|R@XK0f;$q`9@OmGmQp4JO_0Zgzau^3zjqT)q;CKx|;eNzuf>j1twm zQVhYEF@QgguW{CYFS%U=FfSW|H*CE2A+vuEH66-Q#2iU|Hp8DbO&^njfDi(!U@PIK z7gKGe-eQ+t4rUUtOnfvN87~ND%ab5b!x8Kexv=DeQHV%lmmMLXSRR33V1Aty75xeT&9+VL0)Pz zHpe~F;-a3{`62`|2n#wq#ktiRT;Lh?1diJGf-G(W%QRhQ=!Jr8$ZYk3OReu(4&Gvg zpl?-6>j!|kPL7>&DkSoxD|)&8W{jZ2fm<;ybWp=h-n|lrVTDs2KpsZq8Q@_M%r>_G z6KCrGAXxq8UNzXk`cExGjmaZsNdrw!&Z+iI)D|i}mo;laGQ-M%`}Lv&JJzx${Fd2` zs~^QJGpsDcGk=sm8SeA2z~=GbR9j%8fE@kpnk59Gk8>W2JHBvC&t8y~%f9?sa~*MT zzP9Q8+4`#QlH>2jX$MYd!H45&7r$Jq^`E!@tm|Bu+=?c(yux?!x_X7iET(66!RFDJ zzB?@ffQNcw6D-yOq*Rav4dB9dVs+0RBr5E*p3whI*rE4%-H25JcTOP^)Sh)#sZzJ+ z$IbOD+T^K=`N6CDCpfKHwv%aj}rTaikoks1a4O*+M}j{W)R#K&nzKm zPg7psVmbDEy1VO-r#xCjVwX&}+zKNECBJ!QguJUSSN_kOkv4T&}pz(^z6}X zGCV=1#|a(xlOI`HtWV8dgfuF4s$*LghD`Amxfcq5mblTfRr+m0tzen&#b|xUxLu~H zK~RBt!`&v4%R?`#kjuBJ$opo+D?{Uaa{a2hC;Ka(&ON7#V0K>#_J%#LVtBRt)u}`s z=j4Xe0jY2@p+RHv*#26?%g93kteo0Q@0;`x2ZCw zUn4`&W-e{5P}Q($ccv`W$#ILg_$6+&?B*0cJk#%;d`QzBB`qy)(UxZZ&Ov}Yokd3N zj~ERapEhGwAMEX1`=zw)*qz1io2i_F)DBjWB|*PHvd4MRPX+%d*|}3CF{@tXNmMe6 zAljfg2r$`|z9qsViLaWuOHk$mb2UHh%?~=#HPf2CPQh;AUrYWW~ zvTV9=)lS#UB-`B5)Kb!Ylg0RA){o3e`19Jl&hb@~zS>>vrFR-^youk^@6>0S` zToim7wzkY|Yt*;aGUy!o{yxd8=*L;orYQC!H#=|pjn&hO>o9B$tJu8TBHmxPPsm-) zM#T(;Z9_uvy1xq;yeeWQV6|}+=O;1%) zGZyIq}2>crU3z2ri)(ut%F~+%S>FR4^Xw()Y-+~&Xp*Ns z$?%1aydpzNIz2aN98}oth>3boYSifQ)J81Of>6k)!`WQWrB;xxXccBzrWe5V*>oMh zon)MEw$@-*!>L`CK}u@x^9-4gfvepI0b8q5QYVXr96{4Q#s2ZelHXxHv~G{GymRer zqyj7m)3yn3z5i4koiIJ!-u=p6QeL|BN+pWd>}TOFOVi01q839$NZ&I_quqb(n~9Wk id-{KKnnu*>l46e`&P3zgUlQEeAE2(Hqg<+p4E|raIYd(c literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..4c19a13c239cb67b8a2134ddd5f325db1d2d5bee GIT binary patch literal 15523 zcmZu&byQSev_3Py&@gnDfPjP`DLFJqiULXtibx~fLnvK>bPOP+(%nO&(%r2fA>H-( zz4z~1>*iYL?tRWZ_k8=?-?=ADTT_`3j}{LAK&YyspmTRd|F`47?v6Thw%7njTB|C^ zKKGc}$-p)u@1g1$=G5ziQhGf`pecnFHQK@{)H)R`NQF;K%92o17K-93yUfN21$b29 zQwz1oFs@r6GO|&!sP_4*_5J}y@1EmX38MLHp9O5Oe0Nc6{^^wzO4l(d z;mtZ_YZu`gPyE@_DZic*_^gGkxh<(}XliiFNpj1&`$dYO3scX$PHr^OPt}D-`w9aR z4}a$o1nmaz>bV)|i2j5($CXJ<=V0%{^_5JXJ2~-Q=5u(R41}kRaj^33P50Hg*ot1f z?w;RDqu}t{QQ%88FhO3t>0-Sy@ck7!K1c53XC+HJeY@B0BH+W}BTA1!ueRG49Clr? z+R!2Jlc`n)zZ?XWaZO0BnqvRN#k{$*;dYA4UO&o_-b>h3>@8fgSjOUsv0wVwlxy0h z{E1|}P_3K!kMbGZt_qQIF~jd+Km4P8D0dwO{+jQ1;}@_Weti;`V}a_?BkaNJA?PXD zNGH$uRwng<4o9{nk4gW z3E-`-*MB=(J%0*&SA1UclA>pLfP4H?eSsQV$G$t!uXTEio7TY9E35&?0M-ERfX4he z{_Hb&AE`T%j8hIZEp@yBVycpvW2!bHrfxbuu6>_i<^9@?ak)9gHU*#bS~}$sGY*Fi z=%P&i3aH%N`b;I~s8{&6uGo$>-`ukQ<8ri(6aH6p_F`Fhdi6HuacwfQn10HVL7Om1 z4aZpjatkbgjp$L5Mceab#G#C)Hr{^W|TJX~?B3@2buj0;kfuNTf4c3*Au~O^aj=W2$j^4okeCxh#lwexN@eam-u4dNz zN2NIuIM4566{T&^k%4ftShcPk#=im-zXm>QWqH^0>A@?MqlDZCZ@8Wi*@tvhn5p<} zRwFm@gz|WZp91S5Z{}tB^e9|FBg(~Ik+?&_53J6ye_QQOSJ*846~H%s#LD}|O9v9H z1fLrrgoPo_&bs}eqEr}2en3iqAcP^>YsKiez$5-6m6(#3ZZ$@M5Ck=_Vv`QA>1A*v z3w-nJ_;5Nc(0_%`kG91#sotIlhO!*5#|yg+Gx{V;0ty`*=Y9=jCh$l*=fE(~t}%R# zc}iNpO)OZX`P=leQY^?^DF1w%FJh>Dkp}-o5Ig|2!6^E>|W|zc~W7gF;MtxX7 zV~UjQNsUC$EYXpN?~o{83D2c*0~7;Tm~%FRTAnnt3ln{?DcLZ=NsBY|JxwUA-6K3V zP&#|9t#a}Q4{Sg{6v-OmjJBkCh>m)8vLNm4lStMUT$)FZeJG05A)px&o3H)5oAl9= z31@?HyCriHcCDnt628BFN+T;U69Wl#itfvqIDBydMvOJO0Zl?go$cfG5>TK75CMj3 zakLaH3=&J0e}Xmqlav$S0>E@_Yo_V~3SiiXrw)$&!XhrHCDQ%P1BHPusuKr0LthAB zg)mDrLy>2*yevMMOQe6fZ|)%PEb!lC^*9yaX9UMy7-v!fSICssTR|wML0Ic2BhKAq z3I1X~ z7^_!M&;6Z9?br3#HU_&kfJ~%botXQkC1v<}ZZxN5q-T)|Sb2cW3WYUBbDZ`TH{!*^ zrmAeRM+(QI>D+?}guZ+dH*X)@^!O|oL69&Avbtw2^M3HP(+2kV{O$^3BN1RLfrC8nwz7=VhBR%>!;7WR<~;34B_j3A{>^@e@H+Q! zL=UNr1(JvKAQLKT0b}EMn|QUWtY>!>8-t@fVj_&`~gGd{_aPy5W>0u5L$zrsU^rBO=i$`#Xd*>kh)lPf}A znNXSEl`+HlhXtylgS9(#N02A=zVV?#OF?)Gr>(HszVa+1*2VG@qYttJuXaBlzP`Pb zX)ueu?s&}R>xI#^*r4gR?tMFi!_eeKlIM5g)Nk)Y^h=ZCR**xY>$E5knctRrq!zw? zX{2|hwR9LXTY1)pTlKg7U4_ej{dcj2{!+1sZ6<@9^?mn)=37V)DIAvS(}S`IgFO!6 zn({?nYw`Z-@jvt@!q|5z?TI3(dx^1szSn%azAwp>N#fk^kt|=MejKtacAs@Rdku#zT>9$s z=m7ek)`=O7hO2n+2Uj$QUs&2EIqycF{(L9Y#^IyxXA%R@ z&j`VAprIV~d!pH-7~zA+bjwVn3kOB3;rlg{nr&wHV12N}g^i>Upls~=z`VX>9HQ#= zTu&luVb@_Lkz63&&^_M!6(-2^0?GCAX9XKp{O={pd|AlIMGriX6s_Jy8_q9|{5jLc zxd1aj_ucE7Vcti#$r!s~w~W=XpaLQ}#mX`apR7^n9-d3?O+adJYr*L;{c)x@REewM@vZN0njS3iE$88KHPWAkWt((OUMherUnPm?i&8@!9E@ zUW^$%CpdruZR0ohzUq-XQ$KEIB8Sjgs1+wKSUH&Y;=ee%E&O$X18{&979d~K2uJW` zd*8awHCXb;Q>4z$B|sPNv+Zd__f6&@KmS+L`z3H1x+x|Xs7-N-iw|1C=QiJdU)f~z z{vO4hpP`0MyqmwIHN=l?jSq>OKG6CEC#O`*blP`?>)CUWj5j1cB>%6N7;`kfZ1iQV zam~SDB?{uyp^=vF_u|=8xn3S)L;wF8ZRZV{bezM-EH;MC91JQZ{KcZZ$IWJUy?SJGeGUWm6PeuO8-K2|hD~p;Ls~9Y-4lE+?|bF)XaNKUNX(K7 zBQk0Z{n>hrH-CA`bTr$6z0n@Cn9EL$XZ3=X7NopjcI=;z<(X7-oEmK}BId=PxX*!b7Q6oL@ufd%eEPc`_la(}WkT zKe?-YJWn^6b$^{dhdJZ)I!Kn6c}iw%o5mLDyvM7qJZbkGG?zLU;M|W;Wis|A;SuY3{_X53`+>9g^B%O4b{;^t$^;{oKHbo*CY%u91 zp#2d8Pg=I0&UX{qwr=y=o_^BLdk=KYH$=Z8+k|p8V5`ph~3b^{^NnL4m_+4zx( zeoTt@f<$DmsB1}o%R1Hx`ToPuBl+P6cb-?uF{1!z-2WvdR4+vJ*SYTic5@gwnzu%e zD!HF^X=$ha^#1hi*@~^nDL!HQ;MC&e+6=onaJgm-J-+|>PpmU=SIe?EQE5vJiqziw z*K=Z%bWZz_we!qiFqE`I?#$yozNxIE7Ei;csv>++r*?)0bozFpF&oLh94u z-2c2L`5BarP7l>87|f)vxaT*9(!Q`2xBMZ&^JVj-|1)Tg!6OW=lk=w zLwVlr!*<(l*L$a?ox3+%!~UIj3Ej@KD;W>1E_c)1szDi93BC;0K?drOQ>@$yi|DtT zSir}!Yx>znf&b0KS;Lk7VKPDF@e>(qQr0%SNcGQd(p9StjqJ`QSW&c{ggF?5{d22w zlkX%JTUq`;(3WSH+)WHl%qlF)iNG_?}K?ZM3cS7#u5v zZ!apx4Apv=PWsn}eD%MI#=KA)OlNy0)l@~D^1;NC5k@|OPW3wt>WNYDN+8~+gM%E! z$ z`Olr0;eytiK&~O*ps%KV?2vq+DhuRh*!6Ilzu>A;iMe9 zI?zug9nT9CI_o)O}KF_I_U z_Cswu{)3pCYgw{eOt#E?UCqBwkAugSl>5 zX?G=Ci(Lo+r3suuJezyQyDvw*<1b{rx*&ZaY2HlJ>k{Qc%IZeU43pQXw4mh!4I5>l zZ@4$uxaPY#!*IhL4Hctn#!n#S+SiPcZP_PTd5fXf1exhFi5zf3kl`UcW2RUk)F2oF z_ogN`{03PiseQR;fa#{Uy;jeNlJ0Sle`~;ZYhLjkuy>a^!Z_nR~`$&F?NVuIE3HX;i zD82snwlwPb`7yE)ZA_Ndmq5zuSO1{{1}(d9u4#!Fl_|eOuxKBwOfQ*tG`VjCV$-WF zxi0c&+w}Z)rqz{%f46@`ADPdGm#x)+zpT+gyfDi;_P zR{#Ta`Mzd=putKO@5lQJO*aNy(i?}Ltwy^Z;69f|eqi#UCI1$vL!+(#mi?dK`OL$! z3jQnx$_$+Li2<__CL@Wuk4^J7-!n3j2I4N8e#=qpir+iEQcrn3`B4yNOd1BBLEni<(tdRWE>m0I^ zt(^*Td+S3}$5rOzXy=MW>%#MN_qy%5St!>HrGZ~Fq1WKw-&kv@2TrCcPCPzY%2aO- zN?7@+$4?&qA|uv{QHuV)O9haZpG7Jx2f%D)7J@oWTxJ#E_YSq_6qT1tomOD?02(1otT{Hk8{?g(944>h4f% zOJ8tzjecV{x2uWde&6oAP)*({ zFkW0Q%gdI*9@W)oKO65DgP<3F_BIKvRXLAR?Z61&0g2TR6mEZ7OZK?dP7zukdg?s_tNZeuOsh^e1Tmdlz5rIg?LcK|%aQ1FsSDv#W0EnHd z9M)p;gAL_R~Z5cojTdwy+qDsd6R01Vtxmq&FhfPz{wxmB$${zW~z@{Ro_ zK#y5^KqIp!#@or>GD`c+aZ(PV1=`Eo1?a55p6a*WepFgxvmp!^2518YEU-;{F}fLr zD~)=S0m=+px3TUN8-El}Xb}{2ET*_i3-|WlY@V7vr6#&cOr*+oS9?GF?@)K6op>>o z4af0@%KwaLr`{3P&)474<3rDMsd!IM-bepWfhfuMmJt}#0%PgDSx*q(s0m%ZFgWTj zwwvH%2!(i9{RHX~FVUB5qHvF{+ZF}+(bZVPG1)a*Ph>KV;cYNK^aB@R#dS~&`^60V zn2Z24Y{{djzK33}t@q%!v5k)u7jAXB_H{#4Ut2 z1}0j5$RXcTyfazqL9=^Qe%GL`G)=!lirv7AgVRf^=XyEM&kiOe_%JD!O?sXK&hrDo zF}m9B68im!oGshuZluy2H#T$`XPZQu@zf;(nBCZB-cjQ&w*p@Tm_$pe^MTN3EauI) zJG&G^H-4S|1OCd#@A6jO+IcAXG#5M-d9E!^YNmV7Z(=F^?8bfrYf&mLMnRd_22&Q} z2*msbLsrI!XPeOK@|V?n>`kNC`8eSFmekELLr|!-wQRltxZnuRedup<7VflowJ+gC z)F}P6lUSsh^B41?=~0*68YA6z63lKG`W$@{GV!cC2FCl0s<7yz6!3JWoBbUDTgpg% z4VNUk%xblMy7PjLF2We*3XY7K*N(*9Yx!_M zjU$&JXLiNxaTzoa&k@NSbzbLJTn$6bu6SPWYx)Zc1Li~Lqj($GuWsA#;zg85eH{yx zz3IIOea3A4QFGmJCfn7N_d$8a77j+T^W}Sr%0XdVLFf&zJ$s^D5Vrc!iV&GXyb5*A z6mG8d*6EDN7a;=dgVjYI--~4@Fe{{fcJ4B|;_Qg~&%6#?I(?X_$S4rDw{=>=8iZS=M^I#EF!m zXn%K_xXWwmm7R40LKXPo6ZzNZfN1-$S6RuVU=JlC|3#Xjo-%ebJvvC4n%IM)Q8NDh zGXd)L;ay_JMozc^mU*Uifnp=#+if>LD*O9MV#@wB1l``z|tlu(7PJqS6rm)0@ zJzP50{0Vpa`_?92oB;*i(?i225a6tZgT+9Dg?vTh)N4OKA~(c8{$8-ZKz=mb@$4IT9g8>;k11WIT+Y=%Z})`y#OJ zK-~rlEy!T%0h!Qo+jjPF2RQz2Z^B;dbvYg2JS`+@D~OWH{2-EEs^BdnuJskh>CKeT z1b;%8dU6QU%i@z?^6Q-{XESe^qRiw`ka+k!d-{c%&lXM}vCX^T=|?|;t6r?N*h-W4 z?o4Hy%BWqW+5=+md#5^8|49zjM zon_Do@rhzZ4XAb}-m|bMH$Vg<;^Bo6A8cfhUQ>|wFk~j(`>1NgD3sTg)He1pWrUj9WZ8R(Wn5Rr zhc&dXvv_m%HrwwHo9l_))NgdVUff%d&@4^$Pc=MDZdZ^xHL$KX^ z7W1{3UJ%>9v$W{Y3>vBvflE-soDj8{`>#F|8Z$EF%lN$NylORTn5JsI4mTMHWd*%- z2sD(RO(H-&i8&Ge)5i12slI5VekYCZ)s8rv&_)194;vKY2m8DIC2{4<&xTM3HHxwT zd(42n)gCJ$O4I|8sJq07#0U7Yk7PjPK&bMdy-5b)OdhSsBo^|IB_H43@&F@tpdJR0 z#~)=UJdP|=)O{0(rVZnjbTtwHV^}&kfLJQP@R6rda;K;O>9J9bnW$BgbzOZ8aO{D8 zPuJ%=Nqg~rdzk-IW0ZC5I%cc;ek5~=lDXl4?gMOQQ!KE5Aq$9qeGFM6jFP;Xy6)%N zjg{q(E6fnF02P3L*tutbHRR-gyYK3g^y9H?GMtIs;ojG zY~3*C>qD)(8jz}89w|xfb7L`^d>AG#%D-uq=qz}(o9kzzrx0LSBX90ykr*5oM+YmoTRWe+Cj6aq^xnWRymLmE>krCpoC9K%2LT0aK0Y< zt@kUUrrj1WL9rmBB8B;WXqg-BztOiUZX-!`*a&-75+!WZ!R0OPiZz?w`Of4q#+(;m z`${Ea6GnTCY3`V2R8w*}knf)*`RA@(8k{Lp4VP;<+ z9O_z0_{3=HcVi z5)&QGEB_&$)mu@)(Z8zuw#>Gc6C>^O-FUZEo;TO1@$>-xu%`v`tMS3V-8R1pb5w&zP%&rAP2*5h z$k{jqReFXCJhJ?-{x(2j5gH_zQ>;#Ec*@bUqF0u}XB09+U-K}+jQd>)k#AOkr6M8x zHyhrfJ`99@Vzr_B@*p@`DxeJ#`jimavZ9ZV%v{mO0!%9$TY(f%_}BU~3R%QxmSdD1 z2Bp45R0C=8qtx-~+oULrzCMHMof!&H<~~>BhOu9t%ti7ERzy&MfeFI`yIK^$C)AW3 zNQRoy0G}{Z0U#b~iYF^Jc^xOlG#4#C=;O>}m0(@{S^B2chkhuBA^ur)c`E;iGC9@z z7%fqif|WXh26-3;GTi8YpXUOSVWuR&C%jb}s5V4o;X~?V>XaR)8gBIQvmh3-xs)|E z8CExUnh>Ngjb^6YLgG<K?>j`V4Zp4G4%h8vUG^ouv)P!AnMkAWurg1zX2{E)hFp5ex ziBTDWLl+>ihx>1Um{+p<{v-zS?fx&Ioeu#9;aON_P4|J-J)gPF2-0?yt=+nHsn^1G z2bM#YbR1hHRbR9Or49U3T&x=1c0%dKX4HI!55MQv`3gt5ENVMAhhgEp@kG2k+qT|<5K~u`9G7x z?eB%b2B#mq)&K}m$lwDv|MU~=Y(D2jO{j*Box$GUn=$90z6O^7F?7pn=P;{r4C8qa zv1n*5N7uIvTn`8$>}(74>Oqk=E7){#pHUFd5XRJ5ObMhqODTa}=V0;+a(7JZR-4<3 zBTvsqRwLh?*ZF)JWsWOkEq7*XMQ!G3Rmkdh7ZbM#v1~?jt((e2y}u}Ky>1qa&Y7m@ zveIzH@?5Gexr79*?sbZGkVS;s1U<7D(%~7HjAmzj$aDYv_FGl5JX@LW8>w=HCDl6W z%?rsr0)bErYJ5G1v&zjr{8=lW)ZYcstgZAuL}!0~8HAcgOm@nJ9cvOOtL@)Fpl2Dr z8876Lt<|1eF88Jx#C*XyGI)C5z_o!Os!t=Xy0$Kj^4fG1pb@16%g z+<)zJ1n1QO78g#$3yHj+(Smv`HW5y_-PP{h2A1UXMG-c%hMvHLbF6t}G>KA)H# z`AWL~>8JUT(iq7;zJr!Aj)AS+n{mRbA3aM+Gj}b#PhHdTM_NkwQm330EC9waM$=slPfxR1vmr!vf~t_M?a%`@`&tdE}ipY-p#Q#zhLK zd9eFC;PjIEAKLkRkO94{rTuNFqKbNUGtaNZRRbax9;|%2WbnGu!44#64RriY5u0O} z05G^e&JB?Wb*8^g)aM`yt|}~QJkKCipFNeyex~P~SFPVEafD(73rncKmm)m~&`O*YUyY9z7tO%ec7z@wWcoOr-ebP z1k+|y?d{>1jLC=s4B2tEhiTtu->WVJno&%%6bG46KuU9D`GEN!C!9chM>zd=cl0+- z^k>4rpkq7_iWGHtBvy$Q`dja2;1ZdYmF6cANU6{v>l1=fSKRpsTRonp@alC%p{bhU z>g+(%-)&_nDQ~#bq5;xo^06RggA&uH4RMVb6wt;oQI+`m_zt>SiI5hXkfEnn6@ZNk zh9KUr1jtt6lBg$O#TAoTRvwUtWeMP3EjnGoRPQppiNF(sX%|Q4@kIjas|WZWXSENO zfF#2yOb;%XO*LeOoAwlf{u7_39$x(w3xT~)2BNJ2l5u4n3a0NkNLT4yT);7fA?1Vt zCz*`hbw-doYa09E!05zcfOT0EOORY``E@D z5{v%@F~&|UfNt@>vrj66W5f>jy+G_8&VB9D0*>N!7_Nr=-x6N?A)M8>1~q(X34sXp zpA%@w&c};L7u*G3;(Qe=LFL}NbTF$|aX#A%P(h`-N=ZRxCvlG$>Klv}jo0MS|UR8qKq-1FokBJmrbTJjQ!k#Is0tY+0c)m4Gp80YzYD zEGXd~ihaihk;?xUknXNH?rssjzaF+l6?HnDQjVP$i=q}{lp_WbOTKKg}HPKW)2sW`L#NvgmaY0^b2Ldk|t{P6{L{>ym;Xgao1PrudBgEMRFb^ zkPJ6v0h^tJ>K@;maHk_|6Z>yFzq@YvDOeO6Ob_?P4Ey>kHiJv`Wlh_MX4fBY36f%^ zV#2t;$Rg&}!Kwifm z;TVZXMxw3~$--{&A8-6vnUZ#s4`Z-zQ#+y7UI8#Hgsc|ompLUc zqlAG!Ti>t{JzYF^5pM925*PUWUvDuYDGKhC4FMx45c`L#V7%V+88@|khLj|V=J9Un zJEcP5qVCzR6p{FK!nIY~TXo)tJ!{>CG;~&u;EPlnNrwJ=5)ke@hJosN!siM$8b2mM zmc&weo-rY{n1+%c`c<{AT3i zjF{p253Ul-)s5A+!8Dp7?viXAdH1+qlY%mK5pp?{pS1t!3qmmDOq2TnoV`F3<>(XK z1=gfH39N_~8O+~({MZX~+QHyB>vtgwK0@uqGkX^eaf$UFHiO#>LB*7@=c0o6`0muj zmH00_F#p)s3E*$A-zP+p2bvXARTg3)Lxh`tf~9X>7!Z^kHV`uE%V9+BiBG=mxj*)M zr%3rn=)>GR`{#zmwD)$3ToLMx++uqsCx(+50Uk*5QJp2c6msxLD&P-y{c|XK6zZl3 z_Fgu8kp|gKVWv`GS!c56FWPO)ZrCCtYh#*yp-ssus)ot>_~UB zyGfjTjz#fXod{^KEQK1~@jN|;SZw5OgH#0wK78Oe4#vV3*|&XPQU z$r~5u8ziT0<#ICrX^<1){mvtaqT9OqlW?wiSu4X#rOC(0uL{Ownb%i1F_G&d>=l51 zx!FEO4_LK+)W^N6UF+fAccyyp{t)TE`;vF@1irbNjcXF8b?yFh zl5UEB>@;wO`~gMF!QB;h<``+f(lxAb_8B$;&vT7)(bXG(7x_5f%AZ5;h#3WjHisX{ zLTSguapAADXMwWZ&jsD0+K!+8#*6z7-(T+QUk>(~!Q|0&!d)PgEw8F6RK;LkB;!HXg79$+l*KU&-fRF|$o+kR4mJ36k9p&>*uS~RhCV+*Y$3U-k%~M)jxCFW zl9;bQ-fx4HPy)*(bhrKL!81M6*@6p5W?z*W`jb;@JKMFwmic{gQPv*) z?I{Fh)y)}(-6uh^I52xKo!LRZV0c*1X)Z(g+GVFN{2n%vD*@&IkVI{R_0;M28M z8vu?M+xVF-&<{l@1g{PA#hnyAq(gudz4WKSFL5YOr3q!|qrxa7z~F~rEJ29VQKgNe z1*L^m9&acg2p7&`u&V%oY|AKF(Xpv=)wf&j#n|;2UYEaUIHLJuTQw$SbrNn+)38PlfV^0<6s>)|hT#IAAS*T)_^_q@I} z0S%tV-HrXOjzkvW!YSbDjdH=g;=4A@whsDB zI8^aX6n=|ab(?!Ay!)CxH(wC(iX~Q@%FEx>C{Hmp98f2ku$Bsw%lk6v50(U@; zu68Z9U&za}O#-Mv^+!V=eyj6S)5oS{My`1MVs)nlnYl_$xU^QId1_jMf7&K8ij)jQ zJ|+~@l)xpV%~Y{P()$`+nBihkjE|3t3t8PoKU3wZ_Eg%0P<>%(A@oW#*8i$X!nfG& z;&&2ZIKlD~*Gff+p3A7QB!}Ei>RGhUUz^UoEpeJ{`2ov>wH!O@1$VW>A#D#{i2z9l z{d)FK9OYxRY#(6NUMO=q^5Ve7R|72%f}ZDlsm0BN&LzyaSHurXV4p5HGf7|Z)}8)g z5J#S6h{-+_U0m$k#+|N{6_8MYactWzWb+1~ea8wX3zX<@O0>pU*q($J{=R&7)P&jg z6Kb)o=HAnC_MP;cIeBq}{gG^0CZzOUJZ|7C-VjE}!?*UtKTcwwF33v^BYC&}Rq)C* zpAJ07-!{`flYX1@n;ZK-=x4)!o(%(1UqulVmes(D z^`_HNfM#umEYy~=zh$9&+?8$4!l(4rr?d#8hS4iks@9w%E4l`BKmhUtvsm1X-mKC3 z>4(u4yS45OgZIOQ;EQ6s`sjNelo!~mLe7gS69TW2WnFwEKcAwioq2mLXV<9CIa#(0`sQpl>vwW`A$D?!2%nt*HEb;Ga=o?92 zHAOICmXHEQ%Cc{m2>dLjPU1J}^w7zilFIxy9nG(OZbYPtW?3KJyv@A7|1A*NiD_v! zTLC}%E4kI*d?$lQBRL==MPsD#FyN0ZSr`;aeQ4C6a2INH9klU~_gCH;G2%8R4EuHb z44Ej^6301>?c06FP3X~xyP{77p`-3td;HKAGf4mZw1qRd6Z^^L#?qaiAKv~px)*jAV^re~beps9m{kJzb6n(oS8uCt#Lnjofg;Rl z=apY)JsV;^dVkzCW)jDrii_WTT`3iKri(xmCC1^AO}Vqt-1B*wwIlBAmE1AmdRtMc zD!fB@mtwHPHyV-^VIVU??*~*{olz-Ub)NCX941BDj_CKZ+QYQ?+``tyhy_7WFXF}_ z?~CVO#LsDYD!&}cph22{PZ*TK?$K^u`E7%{^na89Rm%!jSZs7vI-D zL1POD!1cu56G)*p1gui3-i^JZPX3tI*_Fq&JRwbz*#8LUSiMRWjuu`zD|uk;+X&d@ zuxF5C2{Zp#O?GtOB+R2~tF>MDI(}%p-W=M>1tEY}8E=b_l*WbOO zY9tCPgL3vMEqz)_eWeqmN{qobq_4)XdXJSe6Hj;Eie0??2ZZ?p;*_K8@(&v~1evu- zxQCA2YYvv@qhzamqdi`?{Z{c*7$arCdz4-4G(`O5It%y&8>d{#Y9Vax^FZ99ZK zUdIPpkNhp8uP3T+W4lhvUIYaoY##y6KtxBFoj3&5^@Q(^{677%C#3YJh$p-Ee2M6F ztJAoQv1N0L!|N8XBD(eAYcB#gRaIX7T8U5xXbx~cJSon~YnC zaJYE%zOj9y?E==_B$*9NiAm{~)2Z}t1$$l?qOYct5Ep5HvqFKvuSE7A5YF$K@2>UE zbQOdTNzjD#zS(L>wa2$K-WK!Pc%pY^8To58;^JaXZ}F30wuYl;WWs~rCoo&vrEtUh zTBLMU??yx1#;-weCPZyOJ%Yeb?14z+OXW0L_E+<)(q=;xz74U-Q~R~n*oC;MxyrJo(74r$y2t;x`D~{nhUw`N{Bbc zo`l5kb`Yy;L=&@MTQ~Ml_%V%){mCIj4WC}5q=A_ACx2^by!4w1rVX6H0ifayJsw;; z=+}5kjC?RG*q)^FA;udd?fK$7vU1x>y0w;A-)YbE%l$J%nRRjAIlrItFPgQvJ7Ytb z%HSFnjF2||X&L_g-Q>1{(mholW_-EJmSzsO%*VVVB4)#OAv<(kOIx2H!f)I9#e_Nyjdb$&*1KN^gM}yFIhi%%BWB}7Ke0M{0WY>CxJQUuL<9GW$I>S z8~;QmE{^wS?I`=DyV^l+MozMPWLoFz=uSLu99tiVHdCN>7jRs~vd13`&Gey!!7_+< z6o@25%!eN~+Eki#7iq@#{Hxl7pF0^`N;~p~#tc6HXJP0g5xvK|AuLSwNHVI2_Y-!& z4hemc%vOM5!ySDypyEGe=lAeFbIp`w8FIUcTqUwens>sTIV-jDhrcKGX7XHFXyazb z^DO8=ZgefY6R6&+)c1_i*WoenjtR5@_JU#Ph;4M8fpmznxE9R`=r@-#_y zkD?Muq|*gg7f*BQeI|Np#}Q|NXLJHM6GE{;SJn8ce`V1Gehym~{8c+M<2~=HcCRuk z-v&$8dc8YG+tK}NYVhwdm1iZ&A#r+T<>Ez88)Eq9j+G5h5D(_u{WQdUTOs+QbA(=? z{F6n6UV8D2*lvb)0vDrca$729KG$xO2aH$jWoWl0drlmefYsTswh)`GjMtmR=vEkJ zN$aTp_@@KL%KQ-VDB2ppbZK@X`6cJA5n`g>sbCTvU_xdid!{9gWA|>Mfs6rtHx6s` z_wMt*FgUTBZ@I2C62&zbs?pPvK9TpatkXzqDqe4YTr^nnQg8gWxjKt*s&eOMEp!Qc zG~PT`>xg76Xqh^dKI-Eu#K*VnvEf9qT{L0yNpVj)eVD#kQzGgVRbTB!5nWY=?t!cggiEGBAcWM2xNtW&9 zZB_6RZ}|a87CuEYRYCRJ`Sg+_gBK$_J@*zoWcJJw>eBw?G9WY(Jw~qN|A3MBR^~jm?>k5oGv7z+0jWOox(co@%nya|* zE-2peyX)#@svgwwDMPJ89dT=iO>}@wtNR@NUQ|cJZ};sX(w2uWP4AE5)@A ziJgy_TIZ+T&vG&xPh@Jmt!OJ|zA6C0ZxfF2 z7>aIZqecbmM$lyvDMwg2?Ipo9b)-WL6K_7(X_rmJgdd$-Qc^ywEw4SThChz6*_yu= z{v~a4V|RJtH-GThc2C0Z|JHPl{II-!?B~7cWnRz&dgP*UqoY!iCo&i-xeM}kl?ID* zKTX`w+;z0+MCdGcl{N?xb|tYb%Id=k++k_@(V%bTS&n09`0{S0)|>IH_F;V@_zrxS-dKDDc7+i`nHN8J z;38w69lzAS*WWa+dnVvk(0-KD3%*)TerLH zSCc}Tjc-mR5|1HAL$C1}oue|Qp&M!hmyDUcg)Cz>GXPEyeYf}+s48kIl*pL{{treP BIP(Ai literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/app/src/main/res/values/strings.xml b/ReactNativeExample/android/app/src/main/res/values/strings.xml new file mode 100644 index 000000000..e79194b52 --- /dev/null +++ b/ReactNativeExample/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + ReactNativeExample + diff --git a/ReactNativeExample/android/app/src/main/res/values/styles.xml b/ReactNativeExample/android/app/src/main/res/values/styles.xml new file mode 100644 index 000000000..7ba83a2ad --- /dev/null +++ b/ReactNativeExample/android/app/src/main/res/values/styles.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/ReactNativeExample/android/build.gradle b/ReactNativeExample/android/build.gradle new file mode 100644 index 000000000..8569fee3a --- /dev/null +++ b/ReactNativeExample/android/build.gradle @@ -0,0 +1,51 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + ext { + buildToolsVersion = "31.0.0" + minSdkVersion = 21 + compileSdkVersion = 31 + targetSdkVersion = 31 + + if (System.properties['os.arch'] == "aarch64") { + // For M1 Users we need to use the NDK 24 which added support for aarch64 + ndkVersion = "24.0.8215888" + } else { + // Otherwise we default to the side-by-side NDK version from AGP. + ndkVersion = "21.4.7075529" + } + } + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle:7.2.1") + classpath("com.facebook.react:react-native-gradle-plugin") + classpath("de.undercouch:gradle-download-task:5.0.1") + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url("$rootDir/../node_modules/react-native/android") + } + maven { + // Android JSC is installed from npm + url("$rootDir/../node_modules/jsc-android/dist") + } + mavenCentral { + // We don't want to fetch react-native from Maven Central as there are + // older versions over there. + content { + excludeGroup "com.facebook.react" + } + } + google() + maven { url 'https://www.jitpack.io' } + } +} diff --git a/ReactNativeExample/android/gradle.properties b/ReactNativeExample/android/gradle.properties new file mode 100644 index 000000000..fa4feae5f --- /dev/null +++ b/ReactNativeExample/android/gradle.properties @@ -0,0 +1,40 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true + +# Version of flipper SDK to use with React Native +FLIPPER_VERSION=0.125.0 + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=false diff --git a/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar b/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..41d9927a4d4fb3f96a785543079b8df6723c946b GIT binary patch literal 59821 zcma&NV|1p`(k7gaZQHhOJ9%QKV?D8LCmq{1JGRYE(y=?XJw0>InKkE~^UnAEs2gk5 zUVGPCwX3dOb!}xiFmPB95NK!+5D<~S0s;d1zn&lrfAn7 zC?Nb-LFlib|DTEqB8oDS5&$(u1<5;wsY!V`2F7^=IR@I9so5q~=3i_(hqqG<9SbL8Q(LqDrz+aNtGYWGJ2;p*{a-^;C>BfGzkz_@fPsK8{pTT~_VzB$E`P@> z7+V1WF2+tSW=`ZRj3&0m&d#x_lfXq`bb-Y-SC-O{dkN2EVM7@!n|{s+2=xSEMtW7( zz~A!cBpDMpQu{FP=y;sO4Le}Z)I$wuFwpugEY3vEGfVAHGqZ-<{vaMv-5_^uO%a{n zE_Zw46^M|0*dZ`;t%^3C19hr=8FvVdDp1>SY>KvG!UfD`O_@weQH~;~W=fXK_!Yc> z`EY^PDJ&C&7LC;CgQJeXH2 zjfM}2(1i5Syj)Jj4EaRyiIl#@&lC5xD{8hS4Wko7>J)6AYPC-(ROpVE-;|Z&u(o=X z2j!*>XJ|>Lo+8T?PQm;SH_St1wxQPz)b)Z^C(KDEN$|-6{A>P7r4J1R-=R7|FX*@! zmA{Ja?XE;AvisJy6;cr9Q5ovphdXR{gE_7EF`ji;n|RokAJ30Zo5;|v!xtJr+}qbW zY!NI6_Wk#6pWFX~t$rAUWi?bAOv-oL6N#1>C~S|7_e4 zF}b9(&a*gHk+4@J26&xpiWYf2HN>P;4p|TD4f586umA2t@cO1=Fx+qd@1Ae#Le>{-?m!PnbuF->g3u)7(n^llJfVI%Q2rMvetfV5 z6g|sGf}pV)3_`$QiKQnqQ<&ghOWz4_{`rA1+7*M0X{y(+?$|{n zs;FEW>YzUWg{sO*+D2l6&qd+$JJP_1Tm;To<@ZE%5iug8vCN3yH{!6u5Hm=#3HJ6J zmS(4nG@PI^7l6AW+cWAo9sFmE`VRcM`sP7X$^vQY(NBqBYU8B|n-PrZdNv8?K?kUTT3|IE`-A8V*eEM2=u*kDhhKsmVPWGns z8QvBk=BPjvu!QLtlF0qW(k+4i+?H&L*qf262G#fks9}D5-L{yiaD10~a;-j!p!>5K zl@Lh+(9D{ePo_S4F&QXv|q_yT`GIPEWNHDD8KEcF*2DdZD;=J6u z|8ICSoT~5Wd!>g%2ovFh`!lTZhAwpIbtchDc{$N%<~e$E<7GWsD42UdJh1fD($89f2on`W`9XZJmr*7lRjAA8K0!(t8-u>2H*xn5cy1EG{J;w;Q-H8Yyx+WW(qoZZM7p(KQx^2-yI6Sw?k<=lVOVwYn zY*eDm%~=|`c{tUupZ^oNwIr!o9T;H3Fr|>NE#By8SvHb&#;cyBmY1LwdXqZwi;qn8 zK+&z{{95(SOPXAl%EdJ3jC5yV^|^}nOT@M0)|$iOcq8G{#*OH7=DlfOb; z#tRO#tcrc*yQB5!{l5AF3(U4>e}nEvkoE_XCX=a3&A6Atwnr&`r&f2d%lDr8f?hBB zr1dKNypE$CFbT9I?n){q<1zHmY>C=5>9_phi79pLJG)f=#dKdQ7We8emMjwR*qIMF zE_P-T*$hX#FUa%bjv4Vm=;oxxv`B*`weqUn}K=^TXjJG=UxdFMSj-QV6fu~;- z|IsUq`#|73M%Yn;VHJUbt<0UHRzbaF{X@76=8*-IRx~bYgSf*H(t?KH=?D@wk*E{| z2@U%jKlmf~C^YxD=|&H?(g~R9-jzEb^y|N5d`p#2-@?BUcHys({pUz4Zto7XwKq2X zSB~|KQGgv_Mh@M!*{nl~2~VV_te&E7K39|WYH zCxfd|v_4!h$Ps2@atm+gj14Ru)DhivY&(e_`eA)!O1>nkGq|F-#-6oo5|XKEfF4hR z%{U%ar7Z8~B!foCd_VRHr;Z1c0Et~y8>ZyVVo9>LLi(qb^bxVkbq-Jq9IF7!FT`(- zTMrf6I*|SIznJLRtlP)_7tQ>J`Um>@pP=TSfaPB(bto$G1C zx#z0$=zNpP-~R);kM4O)9Mqn@5Myv5MmmXOJln312kq#_94)bpSd%fcEo7cD#&|<` zrcal$(1Xv(nDEquG#`{&9Ci~W)-zd_HbH-@2F6+|a4v}P!w!Q*h$#Zu+EcZeY>u&?hn#DCfC zVuye5@Ygr+T)0O2R1*Hvlt>%rez)P2wS}N-i{~IQItGZkp&aeY^;>^m7JT|O^{`78 z$KaK0quwcajja;LU%N|{`2o&QH@u%jtH+j!haGj;*ZCR*`UgOXWE>qpXqHc?g&vA& zt-?_g8k%ZS|D;()0Lf!>7KzTSo-8hUh%OA~i76HKRLudaNiwo*E9HxmzN4y>YpZNO zUE%Q|H_R_UmX=*f=2g=xyP)l-DP}kB@PX|(Ye$NOGN{h+fI6HVw`~Cd0cKqO;s6aiYLy7sl~%gs`~XaL z^KrZ9QeRA{O*#iNmB7_P!=*^pZiJ5O@iE&X2UmUCPz!)`2G3)5;H?d~3#P|)O(OQ_ zua+ZzwWGkWflk4j^Lb=x56M75_p9M*Q50#(+!aT01y80x#rs9##!;b-BH?2Fu&vx} za%4!~GAEDsB54X9wCF~juV@aU}fp_(a<`Ig0Pip8IjpRe#BR?-niYcz@jI+QY zBU9!8dAfq@%p;FX)X=E7?B=qJJNXlJ&7FBsz;4&|*z{^kEE!XbA)(G_O6I9GVzMAF z8)+Un(6od`W7O!!M=0Z)AJuNyN8q>jNaOdC-zAZ31$Iq%{c_SYZe+(~_R`a@ zOFiE*&*o5XG;~UjsuW*ja-0}}rJdd@^VnQD!z2O~+k-OSF%?hqcFPa4e{mV1UOY#J zTf!PM=KMNAzbf(+|AL%K~$ahX0Ol zbAxKu3;v#P{Qia{_WzHl`!@!8c#62XSegM{tW1nu?Ee{sQq(t{0TSq67YfG;KrZ$n z*$S-+R2G?aa*6kRiTvVxqgUhJ{ASSgtepG3hb<3hlM|r>Hr~v_DQ>|Nc%&)r0A9go z&F3Ao!PWKVq~aWOzLQIy&R*xo>}{UTr}?`)KS&2$3NR@a+>+hqK*6r6Uu-H};ZG^| zfq_Vl%YE1*uGwtJ>H*Y(Q9E6kOfLJRlrDNv`N;jnag&f<4#UErM0ECf$8DASxMFF& zK=mZgu)xBz6lXJ~WZR7OYw;4&?v3Kk-QTs;v1r%XhgzSWVf|`Sre2XGdJb}l1!a~z zP92YjnfI7OnF@4~g*LF>G9IZ5c+tifpcm6#m)+BmnZ1kz+pM8iUhwag`_gqr(bnpy zl-noA2L@2+?*7`ZO{P7&UL~ahldjl`r3=HIdo~Hq#d+&Q;)LHZ4&5zuDNug@9-uk; z<2&m#0Um`s=B}_}9s&70Tv_~Va@WJ$n~s`7tVxi^s&_nPI0`QX=JnItlOu*Tn;T@> zXsVNAHd&K?*u~a@u8MWX17VaWuE0=6B93P2IQ{S$-WmT+Yp!9eA>@n~=s>?uDQ4*X zC(SxlKap@0R^z1p9C(VKM>nX8-|84nvIQJ-;9ei0qs{}X>?f%&E#%-)Bpv_p;s4R+ z;PMpG5*rvN&l;i{^~&wKnEhT!S!LQ>udPzta#Hc9)S8EUHK=%x+z@iq!O{)*XM}aI zBJE)vokFFXTeG<2Pq}5Na+kKnu?Ch|YoxdPb&Z{07nq!yzj0=xjzZj@3XvwLF0}Pa zn;x^HW504NNfLY~w!}5>`z=e{nzGB>t4ntE>R}r7*hJF3OoEx}&6LvZz4``m{AZxC zz6V+^73YbuY>6i9ulu)2`ozP(XBY5n$!kiAE_Vf4}Ih)tlOjgF3HW|DF+q-jI_0p%6Voc^e;g28* z;Sr4X{n(X7eEnACWRGNsHqQ_OfWhAHwnSQ87@PvPcpa!xr9`9+{QRn;bh^jgO8q@v zLekO@-cdc&eOKsvXs-eMCH8Y{*~3Iy!+CANy+(WXYS&6XB$&1+tB?!qcL@@) zS7XQ|5=o1fr8yM7r1AyAD~c@Mo`^i~hjx{N17%pDX?j@2bdBEbxY}YZxz!h#)q^1x zpc_RnoC3`V?L|G2R1QbR6pI{Am?yW?4Gy`G-xBYfebXvZ=(nTD7u?OEw>;vQICdPJBmi~;xhVV zisVvnE!bxI5|@IIlDRolo_^tc1{m)XTbIX^<{TQfsUA1Wv(KjJED^nj`r!JjEA%MaEGqPB z9YVt~ol3%e`PaqjZt&-)Fl^NeGmZ)nbL;92cOeLM2H*r-zA@d->H5T_8_;Jut0Q_G zBM2((-VHy2&eNkztIpHk&1H3M3@&wvvU9+$RO%fSEa_d5-qZ!<`-5?L9lQ1@AEpo* z3}Zz~R6&^i9KfRM8WGc6fTFD%PGdruE}`X$tP_*A)_7(uI5{k|LYc-WY*%GJ6JMmw zNBT%^E#IhekpA(i zcB$!EB}#>{^=G%rQ~2;gbObT9PQ{~aVx_W6?(j@)S$&Ja1s}aLT%A*mP}NiG5G93- z_DaRGP77PzLv0s32{UFm##C2LsU!w{vHdKTM1X)}W%OyZ&{3d^2Zu-zw?fT=+zi*q z^fu6CXQ!i?=ljsqSUzw>g#PMk>(^#ejrYp(C)7+@Z1=Mw$Rw!l8c9}+$Uz;9NUO(kCd#A1DX4Lbis0k; z?~pO(;@I6Ajp}PL;&`3+;OVkr3A^dQ(j?`by@A!qQam@_5(w6fG>PvhO`#P(y~2ue zW1BH_GqUY&>PggMhhi@8kAY;XWmj>y1M@c`0v+l~l0&~Kd8ZSg5#46wTLPo*Aom-5 z>qRXyWl}Yda=e@hJ%`x=?I42(B0lRiR~w>n6p8SHN~B6Y>W(MOxLpv>aB)E<1oEcw z%X;#DJpeDaD;CJRLX%u!t23F|cv0ZaE183LXxMq*uWn)cD_ zp!@i5zsmcxb!5uhp^@>U;K>$B|8U@3$65CmhuLlZ2(lF#hHq-<<+7ZN9m3-hFAPgA zKi;jMBa*59ficc#TRbH_l`2r>z(Bm_XEY}rAwyp~c8L>{A<0@Q)j*uXns^q5z~>KI z)43=nMhcU1ZaF;CaBo>hl6;@(2#9yXZ7_BwS4u>gN%SBS<;j{{+p}tbD8y_DFu1#0 zx)h&?`_`=ti_6L>VDH3>PPAc@?wg=Omdoip5j-2{$T;E9m)o2noyFW$5dXb{9CZ?c z);zf3U526r3Fl+{82!z)aHkZV6GM@%OKJB5mS~JcDjieFaVn}}M5rtPnHQVw0Stn- zEHs_gqfT8(0b-5ZCk1%1{QQaY3%b>wU z7lyE?lYGuPmB6jnMI6s$1uxN{Tf_n7H~nKu+h7=%60WK-C&kEIq_d4`wU(*~rJsW< zo^D$-(b0~uNVgC+$J3MUK)(>6*k?92mLgpod{Pd?{os+yHr&t+9ZgM*9;dCQBzE!V zk6e6)9U6Bq$^_`E1xd}d;5O8^6?@bK>QB&7l{vAy^P6FOEO^l7wK4K=lLA45gQ3$X z=$N{GR1{cxO)j;ZxKI*1kZIT9p>%FhoFbRK;M(m&bL?SaN zzkZS9xMf={o@gpG%wE857u@9dq>UKvbaM1SNtMA9EFOp7$BjJQVkIm$wU?-yOOs{i z1^(E(WwZZG{_#aIzfpGc@g5-AtK^?Q&vY#CtVpfLbW?g0{BEX4Vlk(`AO1{-D@31J zce}#=$?Gq+FZG-SD^z)-;wQg9`qEO}Dvo+S9*PUB*JcU)@S;UVIpN7rOqXmEIerWo zP_lk!@RQvyds&zF$Rt>N#_=!?5{XI`Dbo0<@>fIVgcU*9Y+ z)}K(Y&fdgve3ruT{WCNs$XtParmvV;rjr&R(V&_#?ob1LzO0RW3?8_kSw)bjom#0; zeNllfz(HlOJw012B}rgCUF5o|Xp#HLC~of%lg+!pr(g^n;wCX@Yk~SQOss!j9f(KL zDiI1h#k{po=Irl)8N*KU*6*n)A8&i9Wf#7;HUR^5*6+Bzh;I*1cICa|`&`e{pgrdc zs}ita0AXb$c6{tu&hxmT0faMG0GFc)unG8tssRJd%&?^62!_h_kn^HU_kBgp$bSew zqu)M3jTn;)tipv9Wt4Ll#1bmO2n?^)t^ZPxjveoOuK89$oy4(8Ujw{nd*Rs*<+xFi z{k*9v%sl?wS{aBSMMWdazhs0#gX9Has=pi?DhG&_0|cIyRG7c`OBiVG6W#JjYf7-n zIQU*Jc+SYnI8oG^Q8So9SP_-w;Y00$p5+LZ{l+81>v7|qa#Cn->312n=YQd$PaVz8 zL*s?ZU*t-RxoR~4I7e^c!8TA4g>w@R5F4JnEWJpy>|m5la2b#F4d*uoz!m=i1;`L` zB(f>1fAd~;*wf%GEbE8`EA>IO9o6TdgbIC%+en!}(C5PGYqS0{pa?PD)5?ds=j9{w za9^@WBXMZ|D&(yfc~)tnrDd#*;u;0?8=lh4%b-lFPR3ItwVJp};HMdEw#SXg>f-zU zEiaj5H=jzRSy(sWVd%hnLZE{SUj~$xk&TfheSch#23)YTcjrB+IVe0jJqsdz__n{- zC~7L`DG}-Dgrinzf7Jr)e&^tdQ}8v7F+~eF*<`~Vph=MIB|YxNEtLo1jXt#9#UG5` zQ$OSk`u!US+Z!=>dGL>%i#uV<5*F?pivBH@@1idFrzVAzttp5~>Y?D0LV;8Yv`wAa{hewVjlhhBM z_mJhU9yWz9Jexg@G~dq6EW5^nDXe(sU^5{}qbd0*yW2Xq6G37f8{{X&Z>G~dUGDFu zgmsDDZZ5ZmtiBw58CERFPrEG>*)*`_B75!MDsOoK`T1aJ4GZ1avI?Z3OX|Hg?P(xy zSPgO$alKZuXd=pHP6UZy0G>#BFm(np+dekv0l6gd=36FijlT8^kI5; zw?Z*FPsibF2d9T$_L@uX9iw*>y_w9HSh8c=Rm}f>%W+8OS=Hj_wsH-^actull3c@!z@R4NQ4qpytnwMaY z)>!;FUeY?h2N9tD(othc7Q=(dF zZAX&Y1ac1~0n(z}!9{J2kPPnru1?qteJPvA2m!@3Zh%+f1VQt~@leK^$&ZudOpS!+ zw#L0usf!?Df1tB?9=zPZ@q2sG!A#9 zKZL`2cs%|Jf}wG=_rJkwh|5Idb;&}z)JQuMVCZSH9kkG%zvQO01wBN)c4Q`*xnto3 zi7TscilQ>t_SLij{@Fepen*a(`upw#RJAx|JYYXvP1v8f)dTHv9pc3ZUwx!0tOH?c z^Hn=gfjUyo!;+3vZhxNE?LJgP`qYJ`J)umMXT@b z{nU(a^xFfofcxfHN-!Jn*{Dp5NZ&i9#9r{)s^lUFCzs5LQL9~HgxvmU#W|iNs0<3O z%Y2FEgvts4t({%lfX1uJ$w{JwfpV|HsO{ZDl2|Q$-Q?UJd`@SLBsMKGjFFrJ(s?t^ z2Llf`deAe@YaGJf)k2e&ryg*m8R|pcjct@rOXa=64#V9!sp=6tC#~QvYh&M~zmJ;% zr*A}V)Ka^3JE!1pcF5G}b&jdrt;bM^+J;G^#R08x@{|ZWy|547&L|k6)HLG|sN<~o z?y`%kbfRN_vc}pwS!Zr}*q6DG7;be0qmxn)eOcD%s3Wk`=@GM>U3ojhAW&WRppi0e zudTj{ufwO~H7izZJmLJD3uPHtjAJvo6H=)&SJ_2%qRRECN#HEU_RGa(Pefk*HIvOH zW7{=Tt(Q(LZ6&WX_Z9vpen}jqge|wCCaLYpiw@f_%9+-!l{kYi&gT@Cj#D*&rz1%e z@*b1W13bN8^j7IpAi$>`_0c!aVzLe*01DY-AcvwE;kW}=Z{3RJLR|O~^iOS(dNEnL zJJ?Dv^ab++s2v!4Oa_WFDLc4fMspglkh;+vzg)4;LS{%CR*>VwyP4>1Tly+!fA-k? z6$bg!*>wKtg!qGO6GQ=cAmM_RC&hKg$~(m2LdP{{*M+*OVf07P$OHp*4SSj9H;)1p z^b1_4p4@C;8G7cBCB6XC{i@vTB3#55iRBZiml^jc4sYnepCKUD+~k}TiuA;HWC6V3 zV{L5uUAU9CdoU+qsFszEwp;@d^!6XnX~KI|!o|=r?qhs`(-Y{GfO4^d6?8BC0xonf zKtZc1C@dNu$~+p#m%JW*J7alfz^$x`U~)1{c7svkIgQ3~RK2LZ5;2TAx=H<4AjC8{ z;)}8OfkZy7pSzVsdX|wzLe=SLg$W1+`Isf=o&}npxWdVR(i8Rr{uzE516a@28VhVr zVgZ3L&X(Q}J0R2{V(}bbNwCDD5K)<5h9CLM*~!xmGTl{Mq$@;~+|U*O#nc^oHnFOy z9Kz%AS*=iTBY_bSZAAY6wXCI?EaE>8^}WF@|}O@I#i69ljjWQPBJVk zQ_rt#J56_wGXiyItvAShJpLEMtW_)V5JZAuK#BAp6bV3K;IkS zK0AL(3ia99!vUPL#j>?<>mA~Q!mC@F-9I$9Z!96ZCSJO8FDz1SP3gF~m`1c#y!efq8QN}eHd+BHwtm%M5586jlU8&e!CmOC z^N_{YV$1`II$~cTxt*dV{-yp61nUuX5z?N8GNBuZZR}Uy_Y3_~@Y3db#~-&0TX644OuG^D3w_`?Yci{gTaPWST8`LdE)HK5OYv>a=6B%R zw|}>ngvSTE1rh`#1Rey0?LXTq;bCIy>TKm^CTV4BCSqdpx1pzC3^ca*S3fUBbKMzF z6X%OSdtt50)yJw*V_HE`hnBA)1yVN3Ruq3l@lY;%Bu+Q&hYLf_Z@fCUVQY-h4M3)- zE_G|moU)Ne0TMjhg?tscN7#ME6!Rb+y#Kd&-`!9gZ06o3I-VX1d4b1O=bpRG-tDK0 zSEa9y46s7QI%LmhbU3P`RO?w#FDM(}k8T`&>OCU3xD=s5N7}w$GntXF;?jdVfg5w9OR8VPxp5{uw zD+_;Gb}@7Vo_d3UV7PS65%_pBUeEwX_Hwfe2e6Qmyq$%0i8Ewn%F7i%=CNEV)Qg`r|&+$ zP6^Vl(MmgvFq`Zb715wYD>a#si;o+b4j^VuhuN>+sNOq6Qc~Y;Y=T&!Q4>(&^>Z6* zwliz!_16EDLTT;v$@W(s7s0s zi*%p>q#t)`S4j=Ox_IcjcllyT38C4hr&mlr6qX-c;qVa~k$MG;UqdnzKX0wo0Xe-_)b zrHu1&21O$y5828UIHI@N;}J@-9cpxob}zqO#!U%Q*ybZ?BH#~^fOT_|8&xAs_rX24 z^nqn{UWqR?MlY~klh)#Rz-*%&e~9agOg*fIN`P&v!@gcO25Mec23}PhzImkdwVT|@ zFR9dYYmf&HiUF4xO9@t#u=uTBS@k*97Z!&hu@|xQnQDkLd!*N`!0JN7{EUoH%OD85 z@aQ2(w-N)1_M{;FV)C#(a4p!ofIA3XG(XZ2E#%j_(=`IWlJAHWkYM2&(+yY|^2TB0 z>wfC-+I}`)LFOJ%KeBb1?eNxGKeq?AI_eBE!M~$wYR~bB)J3=WvVlT8ZlF2EzIFZt zkaeyj#vmBTGkIL9mM3cEz@Yf>j=82+KgvJ-u_{bBOxE5zoRNQW3+Ahx+eMGem|8xo zL3ORKxY_R{k=f~M5oi-Z>5fgqjEtzC&xJEDQ@`<)*Gh3UsftBJno-y5Je^!D?Im{j za*I>RQ=IvU@5WKsIr?kC$DT+2bgR>8rOf3mtXeMVB~sm%X7W5`s=Tp>FR544tuQ>9qLt|aUSv^io&z93luW$_OYE^sf8DB?gx z4&k;dHMWph>Z{iuhhFJr+PCZ#SiZ9e5xM$A#0yPtVC>yk&_b9I676n|oAH?VeTe*1 z@tDK}QM-%J^3Ns6=_vh*I8hE?+=6n9nUU`}EX|;Mkr?6@NXy8&B0i6h?7%D=%M*Er zivG61Wk7e=v;<%t*G+HKBqz{;0Biv7F+WxGirONRxJij zon5~(a`UR%uUzfEma99QGbIxD(d}~oa|exU5Y27#4k@N|=hE%Y?Y3H%rcT zHmNO#ZJ7nPHRG#y-(-FSzaZ2S{`itkdYY^ZUvyw<7yMBkNG+>$Rfm{iN!gz7eASN9-B3g%LIEyRev|3)kSl;JL zX7MaUL_@~4ot3$woD0UA49)wUeu7#lj77M4ar8+myvO$B5LZS$!-ZXw3w;l#0anYz zDc_RQ0Ome}_i+o~H=CkzEa&r~M$1GC!-~WBiHiDq9Sdg{m|G?o7g`R%f(Zvby5q4; z=cvn`M>RFO%i_S@h3^#3wImmWI4}2x4skPNL9Am{c!WxR_spQX3+;fo!y(&~Palyjt~Xo0uy6d%sX&I`e>zv6CRSm)rc^w!;Y6iVBb3x@Y=`hl9jft zXm5vilB4IhImY5b->x{!MIdCermpyLbsalx8;hIUia%*+WEo4<2yZ6`OyG1Wp%1s$ zh<|KrHMv~XJ9dC8&EXJ`t3ETz>a|zLMx|MyJE54RU(@?K&p2d#x?eJC*WKO9^d17# zdTTKx-Os3k%^=58Sz|J28aCJ}X2-?YV3T7ee?*FoDLOC214J4|^*EX`?cy%+7Kb3(@0@!Q?p zk>>6dWjF~y(eyRPqjXqDOT`4^Qv-%G#Zb2G?&LS-EmO|ixxt79JZlMgd^~j)7XYQ; z62rGGXA=gLfgy{M-%1gR87hbhxq-fL)GSfEAm{yLQP!~m-{4i_jG*JsvUdqAkoc#q6Yd&>=;4udAh#?xa2L z7mFvCjz(hN7eV&cyFb%(U*30H@bQ8-b7mkm!=wh2|;+_4vo=tyHPQ0hL=NR`jbsSiBWtG ztMPPBgHj(JTK#0VcP36Z`?P|AN~ybm=jNbU=^3dK=|rLE+40>w+MWQW%4gJ`>K!^- zx4kM*XZLd(E4WsolMCRsdvTGC=37FofIyCZCj{v3{wqy4OXX-dZl@g`Dv>p2`l|H^ zS_@(8)7gA62{Qfft>vx71stILMuyV4uKb7BbCstG@|e*KWl{P1$=1xg(7E8MRRCWQ1g)>|QPAZot~|FYz_J0T+r zTWTB3AatKyUsTXR7{Uu) z$1J5SSqoJWt(@@L5a)#Q6bj$KvuC->J-q1!nYS6K5&e7vNdtj- zj9;qwbODLgIcObqNRGs1l{8>&7W?BbDd!87=@YD75B2ep?IY|gE~t)$`?XJ45MG@2 zz|H}f?qtEb_p^Xs$4{?nA=Qko3Lc~WrAS`M%9N60FKqL7XI+v_5H-UDiCbRm`fEmv z$pMVH*#@wQqml~MZe+)e4Ts3Gl^!Z0W3y$;|9hI?9(iw29b7en0>Kt2pjFXk@!@-g zTb4}Kw!@u|V!wzk0|qM*zj$*-*}e*ZXs#Y<6E_!BR}3^YtjI_byo{F+w9H9?f%mnBh(uE~!Um7)tgp2Ye;XYdVD95qt1I-fc@X zXHM)BfJ?^g(s3K|{N8B^hamrWAW|zis$`6|iA>M-`0f+vq(FLWgC&KnBDsM)_ez1# zPCTfN8{s^K`_bum2i5SWOn)B7JB0tzH5blC?|x;N{|@ch(8Uy-O{B2)OsfB$q0@FR z27m3YkcVi$KL;;4I*S;Z#6VfZcZFn!D2Npv5pio)sz-`_H*#}ROd7*y4i(y(YlH<4 zh4MmqBe^QV_$)VvzWgMXFy`M(vzyR2u!xx&%&{^*AcVLrGa8J9ycbynjKR~G6zC0e zlEU>zt7yQtMhz>XMnz>ewXS#{Bulz$6HETn?qD5v3td>`qGD;Y8&RmkvN=24=^6Q@DYY zxMt}uh2cSToMkkIWo1_Lp^FOn$+47JXJ*#q=JaeiIBUHEw#IiXz8cStEsw{UYCA5v_%cF@#m^Y!=+qttuH4u}r6gMvO4EAvjBURtLf& z6k!C|OU@hv_!*qear3KJ?VzVXDKqvKRtugefa7^^MSWl0fXXZR$Xb!b6`eY4A1#pk zAVoZvb_4dZ{f~M8fk3o?{xno^znH1t;;E6K#9?erW~7cs%EV|h^K>@&3Im}c7nm%Y zbLozFrwM&tSNp|46)OhP%MJ(5PydzR>8)X%i3!^L%3HCoCF#Y0#9vPI5l&MK*_ z6G8Y>$`~c)VvQle_4L_AewDGh@!bKkJeEs_NTz(yilnM!t}7jz>fmJb89jQo6~)%% z@GNIJ@AShd&K%UdQ5vR#yT<-goR+D@Tg;PuvcZ*2AzSWN&wW$Xc+~vW)pww~O|6hL zBxX?hOyA~S;3rAEfI&jmMT4f!-eVm%n^KF_QT=>!A<5tgXgi~VNBXqsFI(iI$Tu3x0L{<_-%|HMG4Cn?Xs zq~fvBhu;SDOCD7K5(l&i7Py-;Czx5byV*3y%#-Of9rtz?M_owXc2}$OIY~)EZ&2?r zLQ(onz~I7U!w?B%LtfDz)*X=CscqH!UE=mO?d&oYvtj|(u)^yomS;Cd>Men|#2yuD zg&tf(*iSHyo;^A03p&_j*QXay9d}qZ0CgU@rnFNDIT5xLhC5_tlugv()+w%`7;ICf z>;<#L4m@{1}Og76*e zHWFm~;n@B1GqO8s%=qu)+^MR|jp(ULUOi~v;wE8SB6^mK@adSb=o+A_>Itjn13AF& zDZe+wUF9G!JFv|dpj1#d+}BO~s*QTe3381TxA%Q>P*J#z%( z5*8N^QWxgF73^cTKkkvgvIzf*cLEyyKw)Wf{#$n{uS#(rAA~>TS#!asqQ2m_izXe3 z7$Oh=rR;sdmVx3G)s}eImsb<@r2~5?vcw*Q4LU~FFh!y4r*>~S7slAE6)W3Up2OHr z2R)+O<0kKo<3+5vB}v!lB*`%}gFldc+79iahqEx#&Im@NCQU$@PyCZbcTt?K{;o@4 z312O9GB)?X&wAB}*-NEU zn@6`)G`FhT8O^=Cz3y+XtbwO{5+{4-&?z!esFts-C zypwgI^4#tZ74KC+_IW|E@kMI=1pSJkvg$9G3Va(!reMnJ$kcMiZ=30dTJ%(Ws>eUf z;|l--TFDqL!PZbLc_O(XP0QornpP;!)hdT#Ts7tZ9fcQeH&rhP_1L|Z_ha#JOroe^qcsLi`+AoBWHPM7}gD z+mHuPXd14M?nkp|nu9G8hPk;3=JXE-a204Fg!BK|$MX`k-qPeD$2OOqvF;C(l8wm13?>i(pz7kRyYm zM$IEzf`$}B%ezr!$(UO#uWExn%nTCTIZzq&8@i8sP#6r8 z*QMUzZV(LEWZb)wbmf|Li;UpiP;PlTQ(X4zreD`|`RG!7_wc6J^MFD!A=#K*ze>Jg z?9v?p(M=fg_VB0+c?!M$L>5FIfD(KD5ku*djwCp+5GVIs9^=}kM2RFsxx0_5DE%BF zykxwjWvs=rbi4xKIt!z$&v(`msFrl4n>a%NO_4`iSyb!UiAE&mDa+apc zPe)#!ToRW~rqi2e1bdO1RLN5*uUM@{S`KLJhhY-@TvC&5D(c?a(2$mW-&N%h5IfEM zdFI6`6KJiJQIHvFiG-34^BtO3%*$(-Ht_JU*(KddiUYoM{coadlG&LVvke&*p>Cac z^BPy2Zteiq1@ulw0e)e*ot7@A$RJui0$l^{lsCt%R;$){>zuRv9#w@;m=#d%%TJmm zC#%eFOoy$V)|3*d<OC1iP+4R7D z8FE$E8l2Y?(o-i6wG=BKBh0-I?i3WF%hqdD7VCd;vpk|LFP!Et8$@voH>l>U8BY`Q zC*G;&y6|!p=7`G$*+hxCv!@^#+QD3m>^azyZoLS^;o_|plQaj-wx^ zRV&$HcY~p)2|Zqp0SYU?W3zV87s6JP-@D~$t0 zvd;-YL~JWc*8mtHz_s(cXus#XYJc5zdC=&!4MeZ;N3TQ>^I|Pd=HPjVP*j^45rs(n zzB{U4-44=oQ4rNN6@>qYVMH4|GmMIz#z@3UW-1_y#eNa+Q%(41oJ5i(DzvMO^%|?L z^r_+MZtw0DZ0=BT-@?hUtA)Ijk~Kh-N8?~X5%KnRH7cb!?Yrd8gtiEo!v{sGrQk{X zvV>h{8-DqTyuAxIE(hb}jMVtga$;FIrrKm>ye5t%M;p!jcH1(Bbux>4D#MVhgZGd> z=c=nVb%^9T?iDgM&9G(mV5xShc-lBLi*6RShenDqB%`-2;I*;IHg6>#ovKQ$M}dDb z<$USN%LMqa5_5DR7g7@(oAoQ%!~<1KSQr$rmS{UFQJs5&qBhgTEM_Y7|0Wv?fbP`z z)`8~=v;B)+>Jh`V*|$dTxKe`HTBkho^-!!K#@i{9FLn-XqX&fQcGsEAXp)BV7(`Lk zC{4&+Pe-0&<)C0kAa(MTnb|L;ZB5i|b#L1o;J)+?SV8T*U9$Vxhy}dm3%!A}SK9l_6(#5(e*>8|;4gNKk7o_%m_ zEaS=Z(ewk}hBJ>v`jtR=$pm_Wq3d&DU+6`BACU4%qdhH1o^m8hT2&j<4Z8!v=rMCk z-I*?48{2H*&+r<{2?wp$kh@L@=rj8c`EaS~J>W?)trc?zP&4bsNagS4yafuDoXpi5`!{BVqJ1$ZC3`pf$`LIZ(`0&Ik+!_Xa=NJW`R2 zd#Ntgwz`JVwC4A61$FZ&kP)-{T|rGO59`h#1enAa`cWxRR8bKVvvN6jBzAYePrc&5 z+*zr3en|LYB2>qJp479rEALk5d*X-dfKn6|kuNm;2-U2+P3_rma!nWjZQ-y*q3JS? zBE}zE-!1ZBR~G%v!$l#dZ*$UV4$7q}xct}=on+Ba8{b>Y9h*f-GW0D0o#vJ0%ALg( ztG2+AjWlG#d;myA(i&dh8Gp?y9HD@`CTaDAy?c&0unZ%*LbLIg4;m{Kc?)ws3^>M+ zt5>R)%KIJV*MRUg{0$#nW=Lj{#8?dD$yhjBOrAeR#4$H_Dc(eyA4dNjZEz1Xk+Bqt zB&pPl+?R{w8GPv%VI`x`IFOj320F1=cV4aq0(*()Tx!VVxCjua;)t}gTr=b?zY+U! zkb}xjXZ?hMJN{Hjw?w&?gz8Ow`htX z@}WG*_4<%ff8(!S6bf3)p+8h2!Rory>@aob$gY#fYJ=LiW0`+~l7GI%EX_=8 z{(;0&lJ%9)M9{;wty=XvHbIx|-$g4HFij`J$-z~`mW)*IK^MWVN+*>uTNqaDmi!M8 zurj6DGd)g1g(f`A-K^v)3KSOEoZXImXT06apJum-dO_%oR)z6Bam-QC&CNWh7kLOE zcxLdVjYLNO2V?IXWa-ys30Jbxw(Xm?U1{4kDs9`gZQHh8X{*w9=H&Zz&-6RL?uq#R zxN+k~JaL|gdsdvY_u6}}MHC?a@ElFeipA1Lud#M~)pp2SnG#K{a@tSpvXM;A8gz9> zRVDV5T1%%!LsNRDOw~LIuiAiKcj<%7WpgjP7G6mMU1#pFo6a-1>0I5ZdhxnkMX&#L z=Vm}?SDlb_LArobqpnU!WLQE*yVGWgs^4RRy4rrJwoUUWoA~ZJUx$mK>J6}7{CyC4 zv=8W)kKl7TmAnM%m;anEDPv5tzT{A{ON9#FPYF6c=QIc*OrPp96tiY&^Qs+#A1H>Y z<{XtWt2eDwuqM zQ_BI#UIP;2-olOL4LsZ`vTPv-eILtuB7oWosoSefWdM}BcP>iH^HmimR`G`|+9waCO z&M375o@;_My(qYvPNz;N8FBZaoaw3$b#x`yTBJLc8iIP z--la{bzK>YPP|@Mke!{Km{vT8Z4|#An*f=EmL34?!GJfHaDS#41j~8c5KGKmj!GTh&QIH+DjEI*BdbSS2~6VTt}t zhAwNQNT6%c{G`If3?|~Fp7iwee(LaUS)X9@I29cIb61} z$@YBq4hSplr&liE@ye!y&7+7n$fb+8nS~co#^n@oCjCwuKD61x$5|0ShDxhQES5MP z(gH|FO-s6#$++AxnkQR!3YMgKcF)!&aqr^a3^{gAVT`(tY9@tqgY7@ z>>ul3LYy`R({OY7*^Mf}UgJl(N7yyo$ag;RIpYHa_^HKx?DD`%Vf1D0s^ zjk#OCM5oSzuEz(7X`5u~C-Y~n4B}_3*`5B&8tEdND@&h;H{R`o%IFpIJ4~Kw!kUjehGT8W!CD7?d8sg_$KKp%@*dW)#fI1#R<}kvzBVpaog_2&W%c_jJfP` z6)wE+$3+Hdn^4G}(ymPyasc1<*a7s2yL%=3LgtZLXGuA^jdM^{`KDb%%}lr|ONDsl zy~~jEuK|XJ2y<`R{^F)Gx7DJVMvpT>gF<4O%$cbsJqK1;v@GKXm*9l3*~8^_xj*Gs z=Z#2VQ6`H@^~#5Pv##@CddHfm;lbxiQnqy7AYEH(35pTg^;u&J2xs-F#jGLuDw2%z z`a>=0sVMM+oKx4%OnC9zWdbpq*#5^yM;og*EQKpv`^n~-mO_vj=EgFxYnga(7jO?G z`^C87B4-jfB_RgN2FP|IrjOi;W9AM1qS}9W@&1a9Us>PKFQ9~YE!I~wTbl!m3$Th? z)~GjFxmhyyGxN}t*G#1^KGVXm#o(K0xJyverPe}mS=QgJ$#D}emQDw+dHyPu^&Uv> z4O=3gK*HLFZPBY|!VGq60Of6QrAdj`nj1h!$?&a;Hgaj{oo{l0P3TzpJK_q_eW8Ng zP6QF}1{V;xlolCs?pGegPoCSxx@bshb#3ng4Fkp4!7B0=&+1%187izf@}tvsjZ6{m z4;K>sR5rm97HJrJ`w}Y`-MZN$Wv2N%X4KW(N$v2@R1RkRJH2q1Ozs0H`@ zd5)X-{!{<+4Nyd=hQ8Wm3CCd}ujm*a?L79ztfT7@&(?B|!pU5&%9Rl!`i;suAg0+A zxb&UYpo-z}u6CLIndtH~C|yz&!OV_I*L;H#C7ie_5uB1fNRyH*<^d=ww=gxvE%P$p zRHKI{^{nQlB9nLhp9yj-so1is{4^`{Xd>Jl&;dX;J)#- z=fmE5GiV?-&3kcjM1+XG7&tSq;q9Oi4NUuRrIpoyp*Fn&nVNFdUuGQ_g)g>VzXGdneB7`;!aTUE$t* z5iH+8XPxrYl)vFo~+vmcU-2) zq!6R(T0SsoDnB>Mmvr^k*{34_BAK+I=DAGu){p)(ndZqOFT%%^_y;X(w3q-L``N<6 zw9=M zoQ8Lyp>L_j$T20UUUCzYn2-xdN}{e@$8-3vLDN?GbfJ>7*qky{n!wC#1NcYQr~d51 zy;H!am=EI#*S&TCuP{FA3CO)b0AAiN*tLnDbvKwxtMw-l;G2T@EGH)YU?-B`+Y=!$ zypvDn@5V1Tr~y~U0s$ee2+CL3xm_BmxD3w}d_Pd@S%ft#v~_j;6sC6cy%E|dJy@wj z`+(YSh2CrXMxI;yVy*=O@DE2~i5$>nuzZ$wYHs$y`TAtB-ck4fQ!B8a;M=CxY^Nf{ z+UQhn0jopOzvbl(uZZ1R-(IFaprC$9hYK~b=57@ zAJ8*pH%|Tjotzu5(oxZyCQ{5MAw+6L4)NI!9H&XM$Eui-DIoDa@GpNI=I4}m>Hr^r zZjT?xDOea}7cq+TP#wK1p3}sbMK{BV%(h`?R#zNGIP+7u@dV5#zyMau+w}VC1uQ@p zrFUjrJAx6+9%pMhv(IOT52}Dq{B9njh_R`>&j&5Sbub&r*hf4es)_^FTYdDX$8NRk zMi=%I`)hN@N9>X&Gu2RmjKVsUbU>TRUM`gwd?CrL*0zxu-g#uNNnnicYw=kZ{7Vz3 zULaFQ)H=7%Lm5|Z#k?<{ux{o4T{v-e zTLj?F(_qp{FXUzOfJxEyKO15Nr!LQYHF&^jMMBs z`P-}WCyUYIv>K`~)oP$Z85zZr4gw>%aug1V1A)1H(r!8l&5J?ia1x_}Wh)FXTxZUE zs=kI}Ix2cK%Bi_Hc4?mF^m`sr6m8M(n?E+k7Tm^Gn}Kf= zfnqoyVU^*yLypz?s+-XV5(*oOBwn-uhwco5b(@B(hD|vtT8y7#W{>RomA_KchB&Cd zcFNAD9mmqR<341sq+j+2Ra}N5-3wx5IZqg6Wmi6CNO#pLvYPGNER}Q8+PjvIJ42|n zc5r@T*p)R^U=d{cT2AszQcC6SkWiE|hdK)m{7ul^mU+ED1R8G#)#X}A9JSP_ubF5p z8Xxcl;jlGjPwow^p+-f_-a~S;$lztguPE6SceeUCfmRo=Qg zKHTY*O_ z;pXl@z&7hniVYVbGgp+Nj#XP^Aln2T!D*{(Td8h{8Dc?C)KFfjPybiC`Va?Rf)X>y z;5?B{bAhPtbmOMUsAy2Y0RNDQ3K`v`gq)#ns_C&ec-)6cq)d^{5938T`Sr@|7nLl; zcyewuiSUh7Z}q8iIJ@$)L3)m)(D|MbJm_h&tj^;iNk%7K-YR}+J|S?KR|29K?z-$c z<+C4uA43yfSWBv*%z=-0lI{ev`C6JxJ};A5N;lmoR(g{4cjCEn33 z-ef#x^uc%cM-f^_+*dzE?U;5EtEe;&8EOK^K}xITa?GH`tz2F9N$O5;)`Uof4~l+t z#n_M(KkcVP*yMYlk_~5h89o zlf#^qjYG8Wovx+f%x7M7_>@r7xaXa2uXb?_*=QOEe_>ErS(v5-i)mrT3&^`Oqr4c9 zDjP_6T&NQMD`{l#K&sHTm@;}ed_sQ88X3y`ON<=$<8Qq{dOPA&WAc2>EQ+U8%>yWR zK%(whl8tB;{C)yRw|@Gn4%RhT=bbpgMZ6erACc>l5^p)9tR`(2W-D*?Ph6;2=Fr|G- zdF^R&aCqyxqWy#P7#G8>+aUG`pP*ow93N=A?pA=aW0^^+?~#zRWcf_zlKL8q8-80n zqGUm=S8+%4_LA7qrV4Eq{FHm9#9X15%ld`@UKyR7uc1X*>Ebr0+2yCye6b?i=r{MPoqnTnYnq z^?HWgl+G&@OcVx4$(y;{m^TkB5Tnhx2O%yPI=r*4H2f_6Gfyasq&PN^W{#)_Gu7e= zVHBQ8R5W6j;N6P3O(jsRU;hkmLG(Xs_8=F&xh@`*|l{~0OjUVlgm z7opltSHg7Mb%mYamGs*v1-#iW^QMT**f+Nq*AzIvFT~Ur3KTD26OhIw1WQsL(6nGg znHUo-4e15cXBIiyqN};5ydNYJ6zznECVVR44%(P0oW!yQ!YH)FPY?^k{IrtrLo7Zo`?sg%%oMP9E^+H@JLXicr zi?eoI?LODRPcMLl90MH32rf8btf69)ZE~&4d%(&D{C45egC6bF-XQ;6QKkbmqW>_H z{86XDZvjiN2wr&ZPfi;^SM6W+IP0);50m>qBhzx+docpBkkiY@2bSvtPVj~E`CfEu zhQG5G>~J@dni5M5Jmv7GD&@%UR`k3ru-W$$onI259jM&nZ)*d3QFF?Mu?{`+nVzkx z=R*_VH=;yeU?9TzQ3dP)q;P)4sAo&k;{*Eky1+Z!10J<(cJC3zY9>bP=znA=<-0RR zMnt#<9^X7BQ0wKVBV{}oaV=?JA=>R0$az^XE%4WZcA^Em>`m_obQyKbmf-GA;!S-z zK5+y5{xbkdA?2NgZ0MQYF-cfOwV0?3Tzh8tcBE{u%Uy?Ky4^tn^>X}p>4&S(L7amF zpWEio8VBNeZ=l!%RY>oVGOtZh7<>v3?`NcHlYDPUBRzgg z0OXEivCkw<>F(>1x@Zk=IbSOn+frQ^+jI*&qdtf4bbydk-jgVmLAd?5ImK+Sigh?X zgaGUlbf^b-MH2@QbqCawa$H1Vb+uhu{zUG9268pa{5>O&Vq8__Xk5LXDaR1z$g;s~;+Ae82wq#l;wo08tX(9uUX6NJWq1vZLh3QbP$# zL`udY|Qp*4ER`_;$%)2 zmcJLj|FD`(;ts0bD{}Ghq6UAVpEm#>j`S$wHi0-D_|)bEZ}#6) zIiqH7Co;TB`<6KrZi1SF9=lO+>-_3=Hm%Rr7|Zu-EzWLSF{9d(H1v*|UZDWiiqX3} zmx~oQ6%9~$=KjPV_ejzz7aPSvTo+3@-a(OCCoF_u#2dHY&I?`nk zQ@t8#epxAv@t=RUM09u?qnPr6=Y5Pj;^4=7GJ`2)Oq~H)2V)M1sC^S;w?hOB|0zXT zQdf8$)jslO>Q}(4RQ$DPUF#QUJm-k9ysZFEGi9xN*_KqCs9Ng(&<;XONBDe1Joku? z*W!lx(i&gvfXZ4U(AE@)c0FI2UqrFLOO$&Yic|`L;Vyy-kcm49hJ^Mj^H9uY8Fdm2 z?=U1U_5GE_JT;Tx$2#I3rAAs(q@oebIK=19a$N?HNQ4jw0ljtyGJ#D}z3^^Y=hf^Bb--297h6LQxi0-`TB|QY2QPg92TAq$cEQdWE ze)ltSTVMYe0K4wte6;^tE+^>|a>Hit_3QDlFo!3Jd`GQYTwlR#{<^MzG zK!vW&))~RTKq4u29bc<+VOcg7fdorq-kwHaaCQe6tLB{|gW1_W_KtgOD0^$^|`V4C# z*D_S9Dt_DIxpjk3my5cBFdiYaq||#0&0&%_LEN}BOxkb3v*d$4L|S|z z!cZZmfe~_Y`46v=zul=aixZTQCOzb(jx>8&a%S%!(;x{M2!*$od2!Pwfs>RZ-a%GOZdO88rS)ZW~{$656GgW)$Q=@!x;&Nn~!K)lr4gF*%qVO=hlodHA@2)keS2 zC}7O=_64#g&=zY?(zhzFO3)f5=+`dpuyM!Q)zS&otpYB@hhn$lm*iK2DRt+#1n|L%zjM}nB*$uAY^2JIw zV_P)*HCVq%F))^)iaZD#R9n^{sAxBZ?Yvi1SVc*`;8|F2X%bz^+s=yS&AXjysDny)YaU5RMotF-tt~FndTK ziRve_5b!``^ZRLG_ks}y_ye0PKyKQSsQCJuK5()b2ThnKPFU?An4;dK>)T^4J+XjD zEUsW~H?Q&l%K4<1f5^?|?lyCQe(O3?!~OU{_Wxs#|Ff8?a_WPQUKvP7?>1()Cy6oLeA zjEF^d#$6Wb${opCc^%%DjOjll%N2=GeS6D-w=Ap$Ux2+0v#s#Z&s6K*)_h{KFfgKjzO17@p1nKcC4NIgt+3t}&}F z@cV; zZ1r#~?R@ZdSwbFNV(fFl2lWI(Zf#nxa<6f!nBZD>*K)nI&Fun@ngq@Ge!N$O< zySt*mY&0moUXNPe~Fg=%gIu)tJ;asscQ!-AujR@VJBRoNZNk;z4hs4T>Ud!y=1NwGs-k zlTNeBOe}=)Epw=}+dfX;kZ32h$t&7q%Xqdt-&tlYEWc>>c3(hVylsG{Ybh_M8>Cz0ZT_6B|3!_(RwEJus9{;u-mq zW|!`{BCtnao4;kCT8cr@yeV~#rf76=%QQs(J{>Mj?>aISwp3{^BjBO zLV>XSRK+o=oVDBnbv?Y@iK)MiFSl{5HLN@k%SQZ}yhPiu_2jrnI?Kk?HtCv>wN$OM zSe#}2@He9bDZ27hX_fZey=64#SNU#1~=icK`D>a;V-&Km>V6ZdVNj7d2 z-NmAoOQm_aIZ2lXpJhlUeJ95eZt~4_S zIfrDs)S$4UjyxKSaTi#9KGs2P zfSD>(y~r+bU4*#|r`q+be_dopJzKK5JNJ#rR978ikHyJKD>SD@^Bk$~D0*U38Y*IpYcH>aaMdZq|YzQ-Ixd(_KZK!+VL@MWGl zG!k=<%Y-KeqK%``uhx}0#X^@wS+mX@6Ul@90#nmYaKh}?uw>U;GS4fn3|X%AcV@iY z8v+ePk)HxSQ7ZYDtlYj#zJ?5uJ8CeCg3efmc#|a%2=u>+vrGGRg$S@^mk~0f;mIu! zWMA13H1<@hSOVE*o0S5D8y=}RiL#jQpUq42D}vW$z*)VB*FB%C?wl%(3>ANaY)bO@ zW$VFutemwy5Q*&*9HJ603;mJJkB$qp6yxNOY0o_4*y?2`qbN{m&*l{)YMG_QHXXa2 z+hTmlA;=mYwg{Bfusl zyF&}ib2J;#q5tN^e)D62fWW*Lv;Rnb3GO-JVtYG0CgR4jGujFo$Waw zSNLhc{>P~>{KVZE1Vl1!z)|HFuN@J7{`xIp_)6>*5Z27BHg6QIgqLqDJTmKDM+ON* zK0Fh=EG`q13l z+m--9UH0{ZGQ%j=OLO8G2WM*tgfY}bV~>3Grcrpehjj z6Xe<$gNJyD8td3EhkHjpKk}7?k55Tu7?#;5`Qcm~ki;BeOlNr+#PK{kjV>qfE?1No zMA07}b>}Dv!uaS8Hym0TgzxBxh$*RX+Fab6Gm02!mr6u}f$_G4C|^GSXJMniy^b`G z74OC=83m0G7L_dS99qv3a0BU({t$zHQsB-RI_jn1^uK9ka_%aQuE2+~J2o!7`735Z zb?+sTe}Gd??VEkz|KAPMfj(1b{om89p5GIJ^#Aics_6DD%WnNGWAW`I<7jT|Af|8g zZA0^)`p8i#oBvX2|I&`HC8Pn&0>jRuMF4i0s=}2NYLmgkZb=0w9tvpnGiU-gTUQhJ zR6o4W6ZWONuBZAiN77#7;TR1^RKE(>>OL>YU`Yy_;5oj<*}ac99DI(qGCtn6`949f ziMpY4k>$aVfffm{dNH=-=rMg|u?&GIToq-u;@1-W&B2(UOhC-O2N5_px&cF-C^tWp zXvChm9@GXEcxd;+Q6}u;TKy}$JF$B`Ty?|Y3tP$N@Rtoy(*05Wj-Ks32|2y2ZM>bM zi8v8E1os!yorR!FSeP)QxtjIKh=F1ElfR8U7StE#Ika;h{q?b?Q+>%78z^>gTU5+> zxQ$a^rECmETF@Jl8fg>MApu>btHGJ*Q99(tMqsZcG+dZ6Yikx7@V09jWCiQH&nnAv zY)4iR$Ro223F+c3Q%KPyP9^iyzZsP%R%-i^MKxmXQHnW6#6n7%VD{gG$E;7*g86G< zu$h=RN_L2(YHO3@`B<^L(q@^W_0#U%mLC9Q^XEo3LTp*~(I%?P_klu-c~WJxY1zTI z^PqntLIEmdtK~E-v8yc&%U+jVxW5VuA{VMA4Ru1sk#*Srj0Pk#tZuXxkS=5H9?8eb z)t38?JNdP@#xb*yn=<*_pK9^lx%;&yH6XkD6-JXgdddZty8@Mfr9UpGE!I<37ZHUe z_Rd+LKsNH^O)+NW8Ni-V%`@J_QGKA9ZCAMSnsN>Ych9VW zCE7R_1FVy}r@MlkbxZ*TRIGXu`ema##OkqCM9{wkWQJg^%3H${!vUT&vv2250jAWN zw=h)C!b2s`QbWhBMSIYmWqZ_~ReRW;)U#@C&ThctSd_V!=HA=kdGO-Hl57an|M1XC?~3f0{7pyjWY}0mChU z2Fj2(B*r(UpCKm-#(2(ZJD#Y|Or*Vc5VyLpJ8gO1;fCm@EM~{DqpJS5FaZ5%|ALw) zyumBl!i@T57I4ITCFmdbxhaOYud}i!0YkdiNRaQ%5$T5>*HRBhyB~<%-5nj*b8=i= z(8g(LA50%0Zi_eQe}Xypk|bt5e6X{aI^jU2*c?!p*$bGk=?t z+17R){lx~Z{!B34Zip~|A;8l@%*Gc}kT|kC0*Ny$&fI3@%M! zqk_zvN}7bM`x@jqFOtaxI?*^Im5ix@=`QEv;__i;Tek-&7kGm6yP17QANVL>*d0B=4>i^;HKb$k8?DYFMr38IX4azK zBbwjF%$>PqXhJh=*7{zH5=+gi$!nc%SqFZlwRm zmpctOjZh3bwt!Oc>qVJhWQf>`HTwMH2ibK^eE*j!&Z`-bs8=A`Yvnb^?p;5+U=Fb8 z@h>j_3hhazd$y^Z-bt%3%E3vica%nYnLxW+4+?w{%|M_=w^04U{a6^22>M_?{@mXP zS|Qjcn4&F%WN7Z?u&I3fU(UQVw4msFehxR*80dSb=a&UG4zDQp&?r2UGPy@G?0FbY zVUQ?uU9-c;f9z06$O5FO1TOn|P{pLcDGP?rfdt`&uw|(Pm@$n+A?)8 zP$nG(VG&aRU*(_5z#{+yVnntu`6tEq>%9~n^*ao}`F6ph_@6_8|AfAXtFfWee_14` zKKURYV}4}=UJmxv7{RSz5QlwZtzbYQs0;t3?kx*7S%nf-aY&lJ@h?-BAn%~0&&@j) zQd_6TUOLXErJ`A3vE?DJIbLE;s~s%eVt(%fMzUq^UfZV9c?YuhO&6pwKt>j(=2CkgTNEq7&c zfeGN+%5DS@b9HO>zsoRXv@}(EiA|t5LPi}*R3?(-=iASADny<{D0WiQG>*-BSROk4vI6%$R>q64J&v-T+(D<_(b!LD z9GL;DV;;N3!pZYg23mcg81tx>7)=e%f|i{6Mx0GczVpc}{}Mg(W_^=Wh0Rp+xXgX` z@hw|5=Je&nz^Xa>>vclstYt;8c2PY)87Ap;z&S&`yRN>yQVV#K{4&diVR7Rm;S{6m z6<+;jwbm`==`JuC6--u6W7A@o4&ZpJV%5+H)}toy0afF*!)AaG5=pz_i9}@OG%?$O z2cec6#@=%xE3K8;^ps<2{t4SnqH+#607gAHP-G4^+PBiC1s>MXf&bQ|Pa;WBIiErV z?3VFpR9JFl9(W$7p3#xe(Bd?Z93Uu~jHJFo7U3K_x4Ej-=N#=a@f;kPV$>;hiN9i9 z<6elJl?bLI$o=|d6jlihA4~bG;Fm2eEnlGxZL`#H%Cdes>uJfMJ4>@1SGGeQ81DwxGxy7L5 zm05Ik*WpSgZvHh@Wpv|2i|Y#FG?Y$hbRM5ZF0Z7FB3cY0+ei#km9mDSPI}^!<<`vr zuv$SPg2vU{wa)6&QMY)h1hbbxvR2cc_6WcWR`SH& z&KuUQcgu}!iW2Wqvp~|&&LSec9>t(UR_|f$;f-fC&tSO-^-eE0B~Frttnf+XN(#T) z^PsuFV#(pE#6ztaI8(;ywN%CtZh?w&;_)w_s@{JiA-SMjf&pQk+Bw<}f@Q8-xCQMwfaf zMgHsAPU=>>Kw~uDFS(IVRN{$ak(SV(hrO!UqhJ?l{lNnA1>U24!=>|q_p404Xd>M# z7?lh^C&-IfeIr`Dri9If+bc%oU0?|Rh8)%BND5;_9@9tuM)h5Kcw6}$Ca7H_n)nOf0pd`boCXItb`o11 zb`)@}l6I_h>n+;`g+b^RkYs7;voBz&Gv6FLmyvY|2pS)z#P;t8k;lS>49a$XeVDc4 z(tx2Pe3N%Gd(!wM`E7WRBZy)~vh_vRGt&esDa0NCua)rH#_39*H0!gIXpd>~{rGx+ zJKAeXAZ-z5n=mMVqlM5Km;b;B&KSJlScD8n?2t}kS4Wf9@MjIZSJ2R?&=zQn zs_`=+5J$47&mP4s{Y{TU=~O_LzSrXvEP6W?^pz<#Y*6Fxg@$yUGp31d(h+4x>xpb< zH+R639oDST6F*0iH<9NHC^Ep*8D4-%p2^n-kD6YEI<6GYta6-I;V^ZH3n5}syTD=P z3b6z=jBsdP=FlXcUe@I|%=tY4J_2j!EVNEzph_42iO3yfir|Dh>nFl&Lu9!;`!zJB zCis9?_(%DI?$CA(00pkzw^Up`O;>AnPc(uE$C^a9868t$m?5Q)CR%!crI$YZpiYK6m= z!jv}82He`QKF;10{9@roL2Q7CF)OeY{~dBp>J~X#c-Z~{YLAxNmn~kWQW|2u!Yq00 zl5LKbzl39sVCTpm9eDW_T>Z{x@s6#RH|P zA~_lYas7B@SqI`N=>x50Vj@S)QxouKC(f6Aj zz}7e5e*5n?j@GO;mCYEo^Jp_*BmLt3!N)(T>f#L$XHQWzZEVlJo(>qH@7;c%fy zS-jm^Adju9Sm8rOKTxfTU^!&bg2R!7C_-t+#mKb_K?0R72%26ASF;JWA_prJ8_SVW zOSC7C&CpSrgfXRp8r)QK34g<~!1|poTS7F;)NseFsbwO$YfzEeG3oo!qe#iSxQ2S# z1=Fxc9J;2)pCab-9o-m8%BLjf(*mk#JJX3k9}S7Oq)dV0jG)SOMbw7V^Z<5Q0Cy$< z^U0QUVd4(96W03OA1j|x%{sd&BRqIERDb6W{u1p1{J(a;fd6lnWzjeS`d?L3-0#o7 z{Qv&L7!Tm`9|}u=|IbwS_jgH(_V@o`S*R(-XC$O)DVwF~B&5c~m!zl14ydT6sK+Ly zn+}2hQ4RTC^8YvrQ~vk$f9u=pTN{5H_yTOcza9SVE&nt_{`ZC8zkmFji=UyD`G4~f zUfSTR=Kju>6u+y&|Bylb*W&^P|8fvEbQH3+w*DrKq|9xMzq2OiZyM=;(?>~4+O|jn zC_Et05oc>e%}w4ye2Fm%RIR??VvofwZS-}BL@X=_4jdHp}FlMhW_IW?Zh`4$z*Wr!IzQHa3^?1|);~VaWmsIcmc6 zJs{k0YW}OpkfdoTtr4?9F6IX6$!>hhA+^y_y@vvA_Gr7u8T+i-< zDX(~W5W{8mfbbM-en&U%{mINU#Q8GA`byo)iLF7rMVU#wXXY`a3ji3m{4;x53216i z`zA8ap?>_}`tQj7-%$K78uR}R$|@C2)qgop$}o=g(jOv0ishl!E(R73N=i0~%S)6+ z1xFP7|H0yt3Z_Re*_#C2m3_X{=zi1C&3CM7e?9-Y5lCtAlA%RFG9PDD=Quw1dfYnZ zdUL)#+m`hKx@PT`r;mIx_RQ6Txbti+&;xQorP;$H=R2r)gPMO9>l+!p*Mt04VH$$M zSLwJ81IFjQ5N!S#;MyBD^IS`2n04kuYbZ2~4%3%tp0jn^**BZQ05ELp zY%yntZ=52s6U5Y93Aao)v~M3y?6h7mZcVGp63pK*d&!TRjW99rUU;@s#3kYB76Bs$|LRwkH>L!0Xe zE=dz1o}phhnOVYZFsajQsRA^}IYZnk9Wehvo>gHPA=TPI?2A`plIm8=F1%QiHx*Zn zi)*Y@)$aXW0v1J|#+R2=$ysooHZ&NoA|Wa}htd`=Eud!(HD7JlT8ug|yeBZmpry(W z)pS>^1$N#nuo3PnK*>Thmaxz4pLcY?PP2r3AlhJ7jw(TI8V#c}>Ym;$iPaw+83L+* z!_QWpYs{UWYcl0u z(&(bT0Q*S_uUX9$jC;Vk%oUXw=A-1I+!c18ij1CiUlP@pfP9}CHAVm{!P6AEJ(7Dn z?}u#}g`Q?`*|*_0Rrnu8{l4PP?yCI28qC~&zlwgLH2AkfQt1?B#3AOQjW&10%@@)Q zDG?`6$8?Nz(-sChL8mRs#3z^uOA>~G=ZIG*mgUibWmgd{a|Tn4nkRK9O^37E(()Q% zPR0#M4e2Q-)>}RSt1^UOCGuv?dn|IT3#oW_$S(YR+jxAzxCD_L25p_dt|^>g+6Kgj zJhC8n)@wY;Y7JI6?wjU$MQU|_Gw*FIC)x~^Eq1k41BjLmr}U>6#_wxP0-2Ka?uK14u5M-lAFSX$K1K{WH!M1&q}((MWWUp#Uhl#n_yT5dFs4X`>vmM& z*1!p0lACUVqp&sZG1GWATvZEENs^0_7Ymwem~PlFN3hTHVBv(sDuP;+8iH07a)s(# z%a7+p1QM)YkS7>kbo${k2N1&*%jFP*7UABJ2d||c!eSXWM*<4(_uD7;1XFDod@cT$ zP>IC%^fbC${^QrUXy$f)yBwY^g@}}kngZKa1US!lAa+D=G4wklukaY8AEW%GL zh40pnuv*6D>9`_e14@wWD^o#JvxYVG-~P)+<)0fW zP()DuJN?O*3+Ab!CP-tGr8S4;JN-Ye^9D%(%8d{vb_pK#S1z)nZzE^ezD&%L6nYbZ z*62>?u)xQe(Akd=e?vZbyb5)MMNS?RheZDHU?HK<9;PBHdC~r{MvF__%T)-9ifM#cR#2~BjVJYbA>xbPyl9yNX zX)iFVvv-lfm`d?tbfh^j*A|nw)RszyD<#e>llO8X zou=q3$1|M@Ob;F|o4H0554`&y9T&QTa3{yn=w0BLN~l;XhoslF-$4KGNUdRe?-lcV zS4_WmftU*XpP}*wFM^oKT!D%_$HMT#V*j;9weoOq0mjbl1271$F)`Q(C z76*PAw3_TE{vntIkd=|(zw)j^!@j ^tV@s0U~V+mu)vv`xgL$Z9NQLnuRdZ;95D|1)!0Aybwv}XCE#xz1k?ZC zxAU)v@!$Sm*?)t2mWrkevNFbILU9&znoek=d7jn*k+~ptQ)6z`h6e4B&g?Q;IK+aH z)X(BH`n2DOS1#{AJD-a?uL)@Vl+`B=6X3gF(BCm>Q(9+?IMX%?CqgpsvK+b_de%Q> zj-GtHKf!t@p2;Gu*~#}kF@Q2HMevg~?0{^cPxCRh!gdg7MXsS}BLtG_a0IY0G1DVm z2F&O-$Dzzc#M~iN`!j38gAn`6*~h~AP=s_gy2-#LMFoNZ0<3q+=q)a|4}ur7F#><%j1lnr=F42Mbti zi-LYs85K{%NP8wE1*r4Mm+ZuZ8qjovmB;f##!E*M{*A(4^~vg!bblYi1M@7tq^L8- zH7tf_70iWXqcSQgENGdEjvLiSLicUi3l0H*sx=K!!HLxDg^K|s1G}6Tam|KBV>%YeU)Q>zxQe;ddnDTWJZ~^g-kNeycQ?u242mZs`i8cP)9qW`cwqk)Jf?Re0=SD=2z;Gafh(^X-=WJ$i7Z9$Pao56bTwb+?p>L3bi9 zP|qi@;H^1iT+qnNHBp~X>dd=Us6v#FPDTQLb9KTk%z{&OWmkx3uY(c6JYyK3w|z#Q zMY%FPv%ZNg#w^NaW6lZBU+}Znwc|KF(+X0RO~Q6*O{T-P*fi@5cPGLnzWMSyoOPe3 z(J;R#q}3?z5Ve%crTPZQFLTW81cNY-finw!LH9wr$(C)p_@v?(y#b-R^Pv!}_#7t+A?pHEUMY zoQZIwSETTKeS!W{H$lyB1^!jn4gTD{_mgG?#l1Hx2h^HrpCXo95f3utP-b&%w80F} zXFs@Jp$lbIL64@gc?k*gJ;OForPaapOH7zNMB60FdNP<*9<@hEXJk9Rt=XhHR-5_$Ck-R?+1py&J3Y9^sBBZuj?GwSzua;C@9)@JZpaI zE?x6{H8@j9P06%K_m%9#nnp0Li;QAt{jf-7X%Pd2jHoI4As-9!UR=h6Rjc z!3{UPWiSeLG&>1V5RlM@;5HhQW_&-wL2?%k@dvRS<+@B6Yaj*NG>qE5L*w~1ATP$D zmWu6(OE=*EHqy{($~U4zjxAwpPn42_%bdH9dMphiUU|) z*+V@lHaf%*GcXP079>vy5na3h^>X=n;xc;VFx)`AJEk zYZFlS#Nc-GIHc}j06;cOU@ zAD7Egkw<2a8TOcfO9jCp4U4oI*`|jpbqMWo(={gG3BjuM3QTGDG`%y|xithFck}0J zG}N#LyhCr$IYP`#;}tdm-7^9=72+CBfBsOZ0lI=LC_a%U@(t3J_I1t(UdiJ^@NubM zvvA0mGvTC%{fj53M^|Ywv$KbW;n8B-x{9}Z!K6v-tw&Xe_D2{7tX?eVk$sA*0826( zuGz!K7$O#;K;1w<38Tjegl)PmRso`fc&>fAT5s z7hzQe-_`lx`}2=c)jz6;yn(~F6#M@z_7@Z(@GWbIAo6A2&;aFf&>CVHpqoPh5#~=G zav`rZ3mSL2qwNL+Pg>aQv;%V&41e|YU$!fQ9Ksle!XZERpjAowHtX zi#0lnw{(zmk&}t`iFEMmx-y7FWaE*vA{Hh&>ieZg{5u0-3@a8BY)Z47E`j-H$dadu zIP|PXw1gjO@%aSz*O{GqZs_{ke|&S6hV{-dPkl*V|3U4LpqhG0eVdqfeNX28hrafI zE13WOsRE|o?24#`gQJs@v*EwL{@3>Ffa;knvI4@VEG2I>t-L(KRS0ShZ9N!bwXa}e zI0}@2#PwFA&Y9o}>6(ZaSaz>kw{U=@;d{|dYJ~lyjh~@bBL>n}#@KjvXUOhrZ`DbnAtf5bz3LD@0RpmAyC-4cgu<7rZo&C3~A_jA*0)v|Ctcdu} zt@c7nQ6hSDC@76c4hI&*v|5A0Mj4eQ4kVb0$5j^*$@psB zdouR@B?l6E%a-9%i(*YWUAhxTQ(b@z&Z#jmIb9`8bZ3Um3UW!@w4%t0#nxsc;*YrG z@x$D9Yj3EiA(-@|IIzi@!E$N)j?gedGJpW!7wr*7zKZwIFa>j|cy<(1`VV_GzWN=1 zc%OO)o*RRobvTZE<9n1s$#V+~5u8ZwmDaysD^&^cxynksn!_ypmx)Mg^8$jXu5lMo zK3K_8GJh#+7HA1rO2AM8cK(#sXd2e?%3h2D9GD7!hxOEKJZK&T`ZS0e*c9c36Y-6yz2D0>Kvqy(EuiQtUQH^~M*HY!$e z20PGLb2Xq{3Ceg^sn+99K6w)TkprP)YyNU(+^PGU8}4&Vdw*u;(`Bw!Um76gL_aMT z>*82nmA8Tp;~hwi0d3S{vCwD};P(%AVaBr=yJ zqB?DktZ#)_VFh_X69lAHQw(ZNE~ZRo2fZOIP;N6fD)J*3u^YGdgwO(HnI4pb$H#9) zizJ<>qI*a6{+z=j+SibowDLKYI*Je2Y>~=*fL@i*f&8**s~4l&B&}$~nwhtbOTr=G zFx>{y6)dpJPqv={_@*!q0=jgw3^j`qi@!wiWiT_$1`SPUgaG&9z9u9=m5C8`GpMaM zyMRSv2llS4F}L?233!)f?mvcYIZ~U z7mPng^=p)@Z*Fp9owSYA`Fe4OjLiJ`rdM`-U(&z1B1`S`ufK_#T@_BvenxDQU`deH$X5eMVO=;I4EJjh6?kkG2oc6AYF6|(t)L0$ukG}Zn=c+R`Oq;nC)W^ z{ek!A?!nCsfd_5>d&ozG%OJmhmnCOtARwOq&p!FzWl7M))YjqK8|;6sOAc$w2%k|E z`^~kpT!j+Y1lvE0B)mc$Ez_4Rq~df#vC-FmW;n#7E)>@kMA6K30!MdiC19qYFnxQ* z?BKegU_6T37%s`~Gi2^ewVbciy-m5%1P3$88r^`xN-+VdhhyUj4Kzg2 zlKZ|FLUHiJCZL8&<=e=F2A!j@3D@_VN%z?J;uw9MquL`V*f^kYTrpoWZ6iFq00uO+ zD~Zwrs!e4cqGedAtYxZ76Bq3Ur>-h(m1~@{x@^*YExmS*vw9!Suxjlaxyk9P#xaZK z)|opA2v#h=O*T42z>Mub2O3Okd3GL86KZM2zlfbS z{Vps`OO&3efvt->OOSpMx~i7J@GsRtoOfQ%vo&jZ6^?7VhBMbPUo-V^Znt%-4k{I# z8&X)=KY{3lXlQg4^FH^{jw0%t#2%skLNMJ}hvvyd>?_AO#MtdvH;M^Y?OUWU6BdMX zJ(h;PM9mlo@i)lWX&#E@d4h zj4Z0Czj{+ipPeW$Qtz_A52HA<4$F9Qe4CiNQSNE2Q-d1OPObk4?7-&`={{yod5Iy3kB=PK3%0oYSr`Gca120>CHbC#SqE*ivL2R(YmI1A|nAT?JmK*2qj_3p#?0h)$#ixdmP?UejCg9%AS2 z8I(=_QP(a(s)re5bu-kcNQc-&2{QZ%KE*`NBx|v%K2?bK@Ihz_e<5Y(o(gQ-h+s&+ zjpV>uj~?rfJ!UW5Mop~ro^|FP3Z`@B6A=@f{Wn78cm`)3&VJ!QE+P9&$;3SDNH>hI z_88;?|LHr%1kTX0t*xzG-6BU=LRpJFZucRBQ<^zy?O5iH$t>o}C}Fc+kM1EZu$hm% zTTFKrJkXmCylFgrA;QAA(fX5Sia5TNo z?=Ujz7$Q?P%kM$RKqRQisOexvV&L+bolR%`u`k;~!o(HqgzV9I6w9|g*5SVZN6+kT9H$-3@%h%k7BBnB zPn+wmPYNG)V2Jv`&$LoI*6d0EO^&Nh`E* z&1V^!!Szd`8_uf%OK?fuj~! z%p9QLJ?V*T^)72<6p1ONqpmD?Wm((40>W?rhjCDOz?#Ei^sXRt|GM3ULLnoa8cABQ zA)gCqJ%Q5J%D&nJqypG-OX1`JLT+d`R^|0KtfGQU+jw79la&$GHTjKF>*8BI z0}l6TC@XB6`>7<&{6WX2kX4k+0SaI`$I8{{mMHB}tVo*(&H2SmZLmW* z+P8N>(r}tR?f!O)?)df>HIu>$U~e~tflVmwk*+B1;TuqJ+q_^`jwGwCbCgSevBqj$ z<`Fj*izeO)_~fq%wZ0Jfvi6<3v{Afz;l5C^C7!i^(W>%5!R=Ic7nm(0gJ~9NOvHyA zqWH2-6w^YmOy(DY{VrN6ErvZREuUMko@lVbdLDq*{A+_%F>!@6Z)X9kR1VI1+Ler+ zLUPtth=u~23=CqZoAbQ`uGE_91kR(8Ie$mq1p`q|ilkJ`Y-ob_=Nl(RF=o7k{47*I)F%_XMBz9uwRH8q1o$TkV@8Pwl zzi`^7i;K6Ak7o58a_D-V0AWp;H8pSjbEs$4BxoJkkC6UF@QNL)0$NU;Wv0*5 z0Ld;6tm7eR%u=`hnUb)gjHbE2cP?qpo3f4w%5qM0J*W_Kl6&z4YKX?iD@=McR!gTyhpGGYj!ljQm@2GL^J70`q~4CzPv@sz`s80FgiuxjAZ zLq61rHv1O>>w1qOEbVBwGu4%LGS!!muKHJ#JjfT>g`aSn>83Af<9gM3XBdY)Yql|{ zUds}u*;5wuus)D>HmexkC?;R&*Z`yB4;k;4T*(823M&52{pOd1yXvPJ3PPK{Zs>6w zztXy*HSH0scZHn7qIsZ8y-zftJ*uIW;%&-Ka0ExdpijI&xInDg-Bv-Q#Islcbz+R! zq|xz?3}G5W@*7jSd`Hv9q^5N*yN=4?Lh=LXS^5KJC=j|AJ5Y(f_fC-c4YQNtvAvn|(uP9@5Co{dL z?7|=jqTzD8>(6Wr&(XYUEzT~-VVErf@|KeFpKjh=v51iDYN_`Kg&XLOIG;ZI8*U$@ zKig{dy?1H}UbW%3jp@7EVSD>6c%#abQ^YfcO(`)*HuvNc|j( zyUbYozBR15$nNU$0ZAE%ivo4viW?@EprUZr6oX=4Sc!-WvrpJdF`3SwopKPyX~F>L zJ>N>v=_plttTSUq6bYu({&rkq)d94m5n~Sk_MO*gY*tlkPFd2m=Pi>MK)ObVV@Sgs zmXMNMvvcAuz+<$GLR2!j4w&;{)HEkxl{$B^*)lUKIn&p5_huD6+%WDoH4`p}9mkw$ zXCPw6Y7tc%rn$o_vy>%UNBC`0@+Ih-#T05AT)ooKt?94^ROI5;6m2pIM@@tdT=&WP z{u09xEVdD}{(3v}8AYUyT82;LV%P%TaJa%f)c36?=90z>Dzk5mF2}Gs0jYCmufihid8(VFcZWs8#59;JCn{!tHu5kSBbm zL`F{COgE01gg-qcP2Lt~M9}mALg@i?TZp&i9ZM^G<3`WSDh}+Ceb3Q!QecJ|N;Xrs z{wH{D8wQ2+mEfBX#M8)-32+~q4MRVr1UaSPtw}`iwx@x=1Xv-?UT{t}w}W(J&WKAC zrZ%hssvf*T!rs}}#atryn?LB=>0U%PLwA9IQZt$$UYrSw`7++}WR7tfE~*Qg)vRrM zT;(1>Zzka?wIIz8vfrG86oc^rjM@P7^i8D~b(S23AoKYj9HBC(6kq9g`1gN@|9^xO z{~h zbxGMHqGZ@eJ17bgES?HQnwp|G#7I>@p~o2zxWkgZUYSUeB*KT{1Q z*J3xZdWt`eBsA}7(bAHNcMPZf_BZC(WUR5B8wUQa=UV^e21>|yp+uop;$+#JwXD!> zunhJVCIKgaol0AM_AwJNl}_k&q|uD?aTE@{Q*&hxZ=k_>jcwp}KwG6mb5J*pV@K+- zj*`r0WuEU_8O=m&1!|rj9FG7ad<2px63;Gl z9lJrXx$~mPnuiqIH&n$jSt*ReG}1_?r4x&iV#3e_z+B4QbhHwdjiGu^J3vcazPi`| zaty}NFSWe=TDry*a*4XB)F;KDI$5i9!!(5p@5ra4*iW;FlGFV0P;OZXF!HCQ!oLm1 zsK+rY-FnJ?+yTBd0}{*Y6su|hul)wJ>RNQ{eau*;wWM{vWM`d0dTC-}Vwx6@cd#P? zx$Qyk^2*+_ZnMC}q0)+hE-q)PKoox#;pc%DNJ&D5+if6X4j~p$A7-s&AjDkSEV)aM z(<3UOw*&f)+^5F0Mpzw3zB1ZHl*B?C~Cx) zuNg*>5RM9F5{EpU@a2E7hAE`m<89wbQ2Lz&?Egu-^sglNXG5Q;{9n(%&*kEb0vApd zRHrY@22=pkFN81%x)~acZeu`yvK zovAVJNykgxqkEr^hZksHkpxm>2I8FTu2%+XLs@?ym0n;;A~X>i32{g6NOB@o4lk8{ zB}7Z2MNAJi>9u=y%s4QUXaNdt@SlAZr54!S6^ETWoik6gw=k-itu_}Yl_M9!l+Rbv z(S&WD`{_|SE@@(|Wp7bq1Zq}mc4JAG?mr2WN~6}~u`7M_F@J9`sr0frzxfuqSF~mA z$m$(TWAuCIE99yLSwi%R)8geQhs;6VBlRhJb(4Cx zu)QIF%_W9+21xI45U>JknBRaZ9nYkgAcK6~E|Zxo!B&z9zQhjsi^fgwZI%K@rYbMq znWBXg1uCZ+ljGJrsW7@x3h2 z;kn!J!bwCeOrBx;oPkZ}FeP%wExyf4=XMp)N8*lct~SyfK~4^-75EZFpHYO5AnuRM z!>u?>Vj3+j=uiHc<=cD~JWRphDSwxFaINB42-{@ZJTWe85>-RcQ&U%?wK)vjz z5u5fJYkck##j(bP7W0*RdW#BmAIK`D3=(U~?b`cJ&U2jHj}?w6 z_4BM)#EoJ6)2?pcR4AqBd)qAUn@RtNQq})FIQoBK4ie+GB(Vih2D|Ds>RJo2zE~C- z7mI)7p)5(-O6JRh6a@VZ5~piVC+Xv=O-)=0eTMSJsRE^c1@bPQWlr}E31VqO-%739 zdcmE{`1m;5LH8w|7euK>>>U#Iod8l1yivC>;YWsg=z#07E%cU9x1yw#3l6AcIm%79 zGi^zH6rM#CZMow(S(8dcOq#5$kbHnQV6s?MRsU3et!!YK5H?OV9vf2qy-UHCn>}2d zTwI(A_fzmmCtE@10yAGgU7R&|Fl$unZJ_^0BgCEDE6(B*SzfkapE9#0N6adc>}dtH zJ#nt^F~@JMJg4=Pv}OdUHyPt-<<9Z&c0@H@^4U?KwZM&6q0XjXc$>K3c&3iXLD9_%(?)?2kmZ=Ykb;)M`Tw=%_d=e@9eheGG zk0<`4so}r={C{zr|6+_1mA_=a56(XyJq||g6Es1E6%fPg#l{r+vk9;)r6VB7D84nu zE0Z1EIxH{Y@}hT+|#$0xn+CdMy6Uhh80eK~nfMEIpM z`|G1v!USmx81nY8XkhEOSWto}pc#{Ut#`Pqb}9j$FpzkQ7`0<-@5D_!mrLah98Mpr zz(R7;ZcaR-$aKqUaO!j z=7QT;Bu0cvYBi+LDfE_WZ`e@YaE_8CCxoRc?Y_!Xjnz~Gl|aYjN2&NtT5v4#q3od2 zkCQZHe#bn(5P#J**Fj4Py%SaaAKJsmV6}F_6Z7V&n6QAu8UQ#9{gkq+tB=VF_Q6~^ zf(hXvhJ#tC(eYm6g|I>;55Lq-;yY*COpTp4?J}hGQ42MIVI9CgEC{3hYw#CZfFKVG zgD(steIg8veyqX%pYMoulq zMUmbj8I`t>mC`!kZ@A>@PYXy*@NprM@e}W2Q+s?XIRM-U1FHVLM~c60(yz1<46-*j zW*FjTnBh$EzI|B|MRU11^McTPIGVJrzozlv$1nah_|t4~u}Ht^S1@V8r@IXAkN;lH z_s|WHlN90k4X}*#neR5bX%}?;G`X!1#U~@X6bbhgDYKJK17~oFF0&-UB#()c$&V<0 z7o~Pfye$P@$)Lj%T;axz+G1L_YQ*#(qO zQND$QTz(~8EF1c3<%;>dAiD$>8j@7WS$G_+ktE|Z?Cx<}HJb=!aChR&4z ziD&FwsiZ)wxS4k6KTLn>d~!DJ^78yb>?Trmx;GLHrbCBy|Bip<@sWdAfP0I~;(Ybr zoc-@j?wA!$ zIP0m3;LZy+>dl#&Ymws@7|{i1+OFLYf@+8+)w}n?mHUBCqg2=-Hb_sBb?=q))N7Ej zDIL9%@xQFOA!(EQmchHiDN%Omrr;WvlPIN5gW;u#ByV)x2aiOd2smy&;vA2+V!u|D zc~K(OVI8} z0t|e0OQ7h23e01O;%SJ}Q#yeDh`|jZR7j-mL(T4E;{w^}2hzmf_6PF|`gWVj{I?^2T3MBK>{?nMXed4kgNox2DP!jvP9v`;pa6AV)OD zDt*Vd-x7s{-;E?E5}3p-V;Y#dB-@c5vTWfS7<=>E+tN$ME`Z7K$px@!%{5{uV`cH80|IzU! zDs9=$%75P^QKCRQ`mW7$q9U?mU@vrFMvx)NNDrI(uk>xwO;^($EUvqVev#{W&GdtR z0ew;Iwa}(-5D28zABlC{WnN{heSY5Eq5Fc=TN^9X#R}0z53!xP85#@;2E=&oNYHyo z46~#Sf!1M1X!rh}ioe`>G2SkPH{5nCoP`GT@}rH;-LP1Q7U_ypw4+lwsqiBql80aA zJE<(88yw$`xzNiSnU(hsyJqHGac<}{Av)x9lQ=&py9djsh0uc}6QkmKN3{P!TEy;P zzLDVQj4>+0r<9B0owxBt5Uz`!M_VSS|{(?`_e+qD9b=vZHoo6>?u;!IP zM7sqoyP>kWY|=v06gkhaGRUrO8n@zE?Yh8$om@8%=1}*!2wdIWsbrCg@;6HfF?TEN z+B_xtSvT6H3in#8e~jvD7eE|LTQhO_>3b823&O_l$R$CFvP@3~)L7;_A}JpgN@ax{ z2d9Ra)~Yh%75wsmHK8e87yAn-ZMiLo6#=<&PgdFsJw1bby-j&3%&4=9dQFltFR(VB z@=6XmyNN4yr^^o$ON8d{PQ=!OX17^CrdM~7D-;ZrC!||<+FEOxI_WI3 zCA<35va%4v>gcEX-@h8esj=a4szW7x z{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1*nV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q z8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI##W$P9M{B3c3Si9gw^jlPU-JqD~Cye z;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP>rp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ue zg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{lB`9HUl-WWCG|<1XANN3JVAkRYvr5U z4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvxK%p23>M&=KTCgR!Ee8c?DAO2_R?Bkaqr6^BSP!8dHXxj%N1l+V$_%vzHjq zvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rUHfcog>kv3UZAEB*g7Er@t6CF8kHDmK zTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B6~YD=gjJ!043F+&#_;D*mz%Q60=L9O zve|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw-19qI#oB(RSNydn0t~;tAmK!P-d{b-@ z@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^82zk8VXx|3mR^JCcWdA|t{0nPmYFOxN z55#^-rlqobcr==<)bi?E?SPymF*a5oDDeSdO0gx?#KMoOd&G(2O@*W)HgX6y_aa6i zMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H`oa=g0SyiLd~BxAj2~l$zRSDHxvDs; zI4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*(e-417=bO2q{492SWrqDK+L3#ChUHtz z*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEXATx4K*hcO`sY$jk#jN5WD<=C3nvuVs zRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_l3F^#f_rDu8l}l8qcAz0FFa)EAt32I zUy_JLIhU_J^l~FRH&6-iv zSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPmZi-noqS!^Ft zb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@fFGJtW3r>qV>1Z0r|L>7I3un^gcep$ zAAWfZHRvB|E*kktY$qQP_$YG60C z@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn`EgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h z|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czPg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-& zSFp;!k?uFayytV$8HPwuyELSXOs^27XvK-DOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2 zS43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@K^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^ z&X%=?`6lCy~?`&WSWt?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6Vj zA#>1f@EYiS8MRHZphpMA_5`znM=pzUpBPO)pXGYpQ6gkine{ z6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ<1SE2Edkfk9C!0t%}8Yio09^F`YGzp zaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8pT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk z7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{e zSyybt)m<=zXoA^RALYG-2touH|L*BLvmm9cdMmn+KGopyR@4*=&0 z&4g|FLoreZOhRmh=)R0bg~T2(8V_q7~42-zvb)+y959OAv!V$u(O z3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+MWQoJI_r$HxL5km1#6(e@{lK3Udc~n z0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai<6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY z>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF#Mnbr-f55)vXj=^j+#)=s+ThMaV~E`B z8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg%bOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$1 z8Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9SquGh<9<=AO&g6BZte6hn>Qmvv;Rt)*c zJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapiPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wBxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5 zo}_(P;=!y z-AjFrERh%8la!z6Fn@lR?^E~H12D? z8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2wG1|5ikb^qHv&9hT8w83+yv&BQXOQy zMVJSBL(Ky~p)gU3#%|blG?I zR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-}9?*x{y(`509qhCV*B47f2hLrGl^<@S zuRGR!KwHei?!CM10pBKpDIoBNyRuO*>3FU?HjipIE#B~y3FSfOsMfj~F9PNr*H?0o zHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R%rq|ic4fzJ#USpTm;X7K+E%xsT_3VHK ze?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>JmiU#?2^`>arnsl#)*R&nf_%>A+qwl%o z{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVDM8AI6MM2V*^_M^sQ0dmHu11fy^kOqX zqzps-c5efIKWG`=Es(9&S@K@)ZjA{lj3ea7_MBPk(|hBFRjHVMN!sNUkrB;(cTP)T97M$ z0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5I7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy z_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIoIZSVls9kFGsTwvr4{T_LidcWtt$u{k zJlW7moRaH6+A5hW&;;2O#$oKyEN8kx z`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41UwxzRFXt^E2B$domKT@|nNW`EHwyj>&< zJatrLQ=_3X%vd%nHh^z@vIk(<5%IRAa&Hjzw`TSyVMLV^L$N5Kk_i3ey6byDt)F^U zuM+Ub4*8+XZpnnPUSBgu^ijLtQD>}K;eDpe1bNOh=fvIfk`&B61+S8ND<(KC%>y&? z>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xoaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$ zitm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H?n6^}l{D``Me90`^o|q!olsF?UX3YS zq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfwR!gX_%AR=L3BFsf8LxI|K^J}deh0Zd zV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z-G6kzA01M?rba+G_mwNMQD1mbVbNTW zmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bAv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$8p_}t*XIOehezolNa-a2x0BS})Y9}& z*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWKDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~ zVCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjM zsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$) zWL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>Igy8p#i4GN{>#v=pFYUQT(g&b$OeTy- zX_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6NIHrC0H+Qpam1bNa=(`SRKjixBTtm&e z`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_%7SUeH6=TrXt3J@js`4iDD0=I zoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bXa_A{oZ9eG$he;_xYvTbTD#moBy zY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOxXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+p zmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L*&?(77!-=zvnCVW&kUcZMb6;2!83si z518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j(iTaS4HhQ)ldR=r)_7vYFUr%THE}cPF z{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVAdDZRybv?H|>`9f$AKVjFWJ=wegO7hO zOIYCtd?Vj{EYLT*^gl35|HbMX|NAEUf2ra9dy1=O;figB>La=~eA^#>O6n4?EMugV zbbt{Dbfef5l^(;}5kZ@!XaWwF8z0vUr6r|+QN*|WpF z^*osUHzOnE$lHuWYO$G7>}Y)bY0^9UY4eDV`E{s+{}Z$O$2*lMEYl zTA`ki(<0(Yrm~}15V-E^e2W6`*`%ydED-3G@$UFm6$ZtLx z+av`BhsHcAWqdxPWfu2*%{}|Sptax4_=NpDMeWy$* zZM6__s`enB$~0aT1BU^2k`J9F%+n+lL_|8JklWOCVYt*0%o*j4w1CsB_H^tVpYT_LLyKuyk=CV6~1M<7~^FylL*+AIFf3h>J=x$ygY-BG}4LJ z8XxYPY!v7dO3PVwEoY=`)6krokmR^|Mg5ztX_^#QR}ibr^X-|_St#rtv3gukh0(#A=};NPlNz57ZDFJ9hf#NP50zS)+Fo=StX)i@ zWS?W}i6LjB>kAB~lupAPyIjFb)izFgRq*iS*(Jt509jNr3r72{Gj`5DGoj;J&k5G@Rm!dJ($ox>SbxR)fc zz|Phug;~A7!p@?|mMva@rWuf2fSDK_ZxN3vVmlYz>rrf?LpiNs)^z!y{As@`55JC~ zS*GD3#N-ptY!2<613UelAJ;M4EEI$dm)`8#n$|o{ce^dlyoUY3bsy2hgnj-;ovubb zg2h1rZA6Ot}K_cpYBpIuF&CyK~5R0Wv;kG|3A^8K3nk{rw$Be8u@aos#qvKQKJyVU$cX6biw&Ep#+q7upFX z%qo&`WZ){<%zh@BTl{MO@v9#;t+cb7so0Uz49Fmo1e4>y!vUyIHadguZS0T7-x#_drMXz*16*c zymR0u^`ZQpXN}2ofegbpSedL%F9aypdQcrzjzPlBW0j zMlPzC&ePZ@Cq!?d%9oQNEg0`rHALm8l#lUdXMVEqDvb(AID~H(?H9z!e9G98fG@IzhajKr)3{L_Clu1(Bwg`RM!-(MOuZi zbeDsj9I3(~EITsE=3Z)a|l_rn8W92U0DB70gF7YYfO0j!)h?QobY1lSR>0 z_TVw@$eP~3k8r9;%g%RlZzCJ2%f}DvY`rsZ$;ak&^~-`i%B%+O!pnADeVyV!dHj|} zzOj#q4eRx9Q8c2Z7vy9L&fGLj+3_?fp}+8o`Xpwyi(81H|7P8#65%FIS*lOi={o&v z4NV$xu7az4Nb50dRGZv<tdZCx4Ek<_o3!mAT} zL5l*|K3Qr-)W8paaG z&R6{ped_4e2cy}ejD0!dt{*PaC*^L@eB%(1Fmc%Y#4)~!jF#lCGfj#E??4LG-T;!M z>Uha}f;W>ib_ZL-I7-v9KZQls^G!-JmL^w;=^}?!RXK;m4$#MwI2AH-l7M2-0 zVMK8k^+4+>2S0k^N_40EDa#`7c;2!&3-o6MHsnBfRnq@>E@)=hDulVq-g5SQWDWbt zj6H5?QS2gRZ^Zvbs~cW|8jagJV|;^zqC0e=D1oUsQPJ3MCb+eRGw(XgIY9y8v_tXq z9$(xWntWpx_Uronmvho{JfyYdV{L1N$^s^|-Nj`Ll`lUsiWTjm&8fadUGMXreJGw$ zQ**m+Tj|(XG}DyUKY~2?&9&n6SJ@9VKa9Hcayv{ar^pNr0WHy zP$bQv&8O!vd;GoT!pLwod-42qB^`m!b7nP@YTX}^+1hzA$}LSLh}Ln|?`%8xGMazw z8WT!LoYJ-Aq3=2p6ZSP~uMgSSWv3f`&-I06tU}WhZsA^6nr&r17hjQIZE>^pk=yZ% z06}dfR$85MjWJPq)T?OO(RxoaF+E#4{Z7)i9}Xsb;Nf+dzig61HO;@JX1Lf9)R5j9)Oi6vPL{H z&UQ9ln=$Q8jnh6-t;`hKM6pHftdd?$=1Aq16jty4-TF~`Gx=C&R242uxP{Y@Q~%O3 z*(16@x+vJsbW@^3tzY=-5MHi#(kB};CU%Ep`mVY1j$MAPpYJBB3x$ue`%t}wZ-@CG z(lBv36{2HMjxT)2$n%(UtHo{iW9>4HX4>)%k8QNnzIQYXrm-^M%#Qk%9odbUrZDz1YPdY`2Z4w~p!5tb^m(mUfk}kZ9+EsmenQ)5iwiaulcy zCJ#2o4Dz?@%)aAKfVXYMF;3t@aqNh2tBBlBkCdj`F31b=h93y(46zQ-YK@+zX5qM9 z&=KkN&3@Ptp*>UD$^q-WpG|9O)HBXz{D>p!`a36aPKkgz7uxEo0J>-o+4HHVD9!Hn z${LD0d{tuGsW*wvZoHc8mJroAs(3!FK@~<}Pz1+vY|Gw}Lwfxp{4DhgiQ_SSlV)E| zZWZxYZLu2EB1=g_y@(ieCQC_1?WNA0J0*}eMZfxCCs>oL;?kHdfMcKB+A)Qull$v( z2x6(38utR^-(?DG>d1GyU()8>ih3ud0@r&I$`ZSS<*1n6(76=OmP>r_JuNCdS|-8U zxGKXL1)Lc2kWY@`_kVBt^%7t9FyLVYX(g%a6>j=yURS1!V<9ieT$$5R+yT!I>}jI5 z?fem|T=Jq;BfZmsvqz_Ud*m5;&xE66*o*S22vf-L+MosmUPPA}~wy`kntf8rIeP-m;;{`xe}9E~G7J!PYoVH_$q~NzQab?F8vWUja5BJ!T5%5IpyqI#Dkps0B;gQ*z?c#N>spFw|wRE$gY?y4wQbJ zku2sVLh({KQz6e0yo+X!rV#8n8<;bHWd{ZLL_(*9Oi)&*`LBdGWz>h zx+p`Wi00u#V$f=CcMmEmgFjw+KnbK3`mbaKfoCsB{;Q^oJgj*LWnd_(dk9Kcssbj` z?*g8l`%{*LuY!Ls*|Tm`1Gv-tRparW8q4AK(5pfJFY5>@qO( zcY>pt*na>LlB^&O@YBDnWLE$x7>pMdSmb-?qMh79eB+Wa{)$%}^kX@Z3g>fytppz! zl%>pMD(Yw+5=!UgYHLD69JiJ;YhiGeEyZM$Au{ff;i zCBbNQfO{d!b7z^F732XX&qhEsJA1UZtJjJEIPyDq+F`LeAUU_4`%2aTX#3NG3%W8u zC!7OvlB?QJ4s2#Ok^_8SKcu&pBd}L?vLRT8Kow#xARt`5&Cg=ygYuz>>c z4)+Vv$;<$l=is&E{k&4Lf-Lzq#BHuWc;wDfm4Fbd5Sr!40s{UpKT$kzmUi{V0t1yp zPOf%H8ynE$x@dQ_!+ISaI}#%72UcYm7~|D*(Fp8xiFAj$CmQ4oH3C+Q8W=Y_9Sp|B z+k<%5=y{eW=YvTivV(*KvC?qxo)xqcEU9(Te=?ITts~;xA0Jph-vpd4@Zw#?r2!`? zB3#XtIY^wxrpjJv&(7Xjvm>$TIg2ZC&+^j(gT0R|&4cb)=92-2Hti1`& z=+M;*O%_j3>9zW|3h{0Tfh5i)Fa;clGNJpPRcUmgErzC{B+zACiPHbff3SmsCZ&X; zp=tgI=zW-t(5sXFL8;ITHw0?5FL3+*z5F-KcLN130l=jAU6%F=DClRPrzO|zY+HD`zlZ-)JT}X?2g!o zxg4Ld-mx6&*-N0-MQ(z+zJo8c`B39gf{-h2vqH<=^T&o1Dgd>4BnVht+JwLcrjJl1 zsP!8`>3-rSls07q2i1hScM&x0lQyBbk(U=#3hI7Bkh*kj6H*&^p+J?OMiT_3*vw5R zEl&p|QQHZq6f~TlAeDGy(^BC0vUK?V&#ezC0*#R-h}_8Cw8-*${mVfHssathC8%VA zUE^Qd!;Rvym%|f@?-!sEj|73Vg8!$$zj_QBZAOraF5HCFKl=(Ac|_p%-P;6z<2WSf zz(9jF2x7ZR{w+p)ETCW06PVt0YnZ>gW9^sr&~`%a_7j-Ful~*4=o|&TM@k@Px2z>^ t{*Ed16F~3V5p+(suF-++X8+nHtT~NSfJ>UC3v)>lEpV}<+rIR_{{yMcG_L>v literal 0 HcmV?d00001 diff --git a/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties b/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..8fad3f5a9 --- /dev/null +++ b/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/ReactNativeExample/android/gradlew b/ReactNativeExample/android/gradlew new file mode 100755 index 000000000..1b6c78733 --- /dev/null +++ b/ReactNativeExample/android/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright ยฉ 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, +# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; +# * compound commands having a testable exit status, especially ยซcaseยป; +# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/ReactNativeExample/android/gradlew.bat b/ReactNativeExample/android/gradlew.bat new file mode 100644 index 000000000..107acd32c --- /dev/null +++ b/ReactNativeExample/android/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/ReactNativeExample/android/settings.gradle b/ReactNativeExample/android/settings.gradle new file mode 100644 index 000000000..4063da447 --- /dev/null +++ b/ReactNativeExample/android/settings.gradle @@ -0,0 +1,11 @@ +rootProject.name = 'ReactNativeExample' +apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) +include ':app' +includeBuild('../node_modules/react-native-gradle-plugin') + +if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { + include(":ReactAndroid") + project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') + include(":ReactAndroid:hermes-engine") + project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') +} diff --git a/ReactNativeExample/app.json b/ReactNativeExample/app.json new file mode 100644 index 000000000..9f4547483 --- /dev/null +++ b/ReactNativeExample/app.json @@ -0,0 +1,4 @@ +{ + "name": "ReactNativeExample", + "displayName": "ReactNativeExample" +} \ No newline at end of file diff --git a/ReactNativeExample/babel.config.js b/ReactNativeExample/babel.config.js new file mode 100644 index 000000000..db64a007b --- /dev/null +++ b/ReactNativeExample/babel.config.js @@ -0,0 +1,16 @@ +const path = require('path'); +const pak = require('../package.json'); + +module.exports = { + presets: ['module:metro-react-native-babel-preset'], + plugins: [ + [ + 'module-resolver', + { + alias: { + [pak.name]: path.join(__dirname, '..', pak.source), + }, + }, + ], + ], +}; diff --git a/ReactNativeExample/index.js b/ReactNativeExample/index.js new file mode 100644 index 000000000..69303b34d --- /dev/null +++ b/ReactNativeExample/index.js @@ -0,0 +1,9 @@ +/** + * @format + */ + +import {AppRegistry} from 'react-native'; +import App from './src/App'; +import {name as appName} from './app.json'; + +AppRegistry.registerComponent(appName, () => App); diff --git a/ReactNativeExample/ios/Podfile b/ReactNativeExample/ios/Podfile new file mode 100644 index 000000000..5f963fd84 --- /dev/null +++ b/ReactNativeExample/ios/Podfile @@ -0,0 +1,62 @@ +require_relative '../node_modules/react-native/scripts/react_native_pods' +require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' + +platform :ios, '12.4' +install! 'cocoapods', :deterministic_uuids => false + +target 'ReactNativeExample' do + config = use_native_modules! + + # Flags change depending on the env values. + flags = get_default_flags() + + use_react_native!(:path => config[:reactNativePath], + # Hermes is now enabled by default. Disable by setting this flag to false. + # Upcoming versions of React Native may rely on get_default_flags(), but + # we make it explicit here to aid in the React Native upgrade process. + :hermes_enabled => false, + :fabric_enabled => flags[:fabric_enabled], + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable the next line. + # :flipper_configuration => FlipperConfiguration.enabled, + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/..") + + pod 'primer-io-react-native', :path => '../..' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' + pod 'Primer3DS' + pod 'PrimerKlarnaSDK' + + post_install do |installer| + # Set `mac_catalyst_enabled` to `true` in order to apply patches + # necessary for Mac Catalyst builds + react_native_post_install(installer,:mac_catalyst_enabled => false) + __apply_Xcode_12_5_M1_post_install_workaround(installer) + + installer.pods_project.targets.each do |target| + if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" + target.build_configurations.each do |config| + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' + end + end + + if target.name == "primer-io-react-native" || target.name == "PrimerSDK" + target.build_configurations.each do |config| + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' + + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' + end + end + end + end +end diff --git a/ReactNativeExample/ios/Podfile.lock b/ReactNativeExample/ios/Podfile.lock new file mode 100644 index 000000000..811e745a8 --- /dev/null +++ b/ReactNativeExample/ios/Podfile.lock @@ -0,0 +1,502 @@ +PODS: + - boost (1.76.0) + - DoubleConversion (1.1.6) + - FBLazyVector (0.70.4) + - FBReactNativeSpec (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.70.4) + - RCTTypeSafety (= 0.70.4) + - React-Core (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - fmt (6.2.1) + - glog (0.3.5) + - KlarnaMobileSDK (2.2.2): + - KlarnaMobileSDK/full (= 2.2.2) + - KlarnaMobileSDK/full (2.2.2) + - primer-io-react-native (2.14.0): + - PrimerSDK (= 2.14.0) + - React-Core + - Primer3DS (1.0.0) + - PrimerKlarnaSDK (1.0.1): + - KlarnaMobileSDK (= 2.2.2) + - PrimerSDK (2.14.0): + - PrimerSDK/Core (= 2.14.0) + - PrimerSDK/Core (2.14.0) + - RCT-Folly (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Default (= 2021.07.22.00) + - RCT-Folly/Default (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCTRequired (0.70.4) + - RCTTypeSafety (0.70.4): + - FBLazyVector (= 0.70.4) + - RCTRequired (= 0.70.4) + - React-Core (= 0.70.4) + - React (0.70.4): + - React-Core (= 0.70.4) + - React-Core/DevSupport (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-RCTActionSheet (= 0.70.4) + - React-RCTAnimation (= 0.70.4) + - React-RCTBlob (= 0.70.4) + - React-RCTImage (= 0.70.4) + - React-RCTLinking (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - React-RCTSettings (= 0.70.4) + - React-RCTText (= 0.70.4) + - React-RCTVibration (= 0.70.4) + - React-bridging (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-jsi (= 0.70.4) + - React-callinvoker (0.70.4) + - React-Codegen (0.70.4): + - FBReactNativeSpec (= 0.70.4) + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.70.4) + - RCTTypeSafety (= 0.70.4) + - React-Core (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-Core (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/CoreModulesHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/Default (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/DevSupport (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-jsinspector (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTActionSheetHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTAnimationHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTBlobHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTImageHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTLinkingHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTNetworkHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTSettingsHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTTextHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTVibrationHeaders (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-Core/RCTWebSocket (0.70.4): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsiexecutor (= 0.70.4) + - React-perflogger (= 0.70.4) + - Yoga + - React-CoreModules (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/CoreModulesHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTImage (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-cxxreact (0.70.4): + - boost (= 1.76.0) + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-callinvoker (= 0.70.4) + - React-jsi (= 0.70.4) + - React-jsinspector (= 0.70.4) + - React-logger (= 0.70.4) + - React-perflogger (= 0.70.4) + - React-runtimeexecutor (= 0.70.4) + - React-jsi (0.70.4): + - boost (= 1.76.0) + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-jsi/Default (= 0.70.4) + - React-jsi/Default (0.70.4): + - boost (= 1.76.0) + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-jsiexecutor (0.70.4): + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-perflogger (= 0.70.4) + - React-jsinspector (0.70.4) + - React-logger (0.70.4): + - glog + - react-native-safe-area-context (4.4.1): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - ReactCommon/turbomodule/core + - react-native-segmented-control (2.4.0): + - React-Core + - React-perflogger (0.70.4) + - React-RCTActionSheet (0.70.4): + - React-Core/RCTActionSheetHeaders (= 0.70.4) + - React-RCTAnimation (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTAnimationHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTBlob (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.70.4) + - React-Core/RCTBlobHeaders (= 0.70.4) + - React-Core/RCTWebSocket (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTImage (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTImageHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - React-RCTNetwork (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTLinking (0.70.4): + - React-Codegen (= 0.70.4) + - React-Core/RCTLinkingHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTNetwork (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTNetworkHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTSettings (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.70.4) + - React-Codegen (= 0.70.4) + - React-Core/RCTSettingsHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-RCTText (0.70.4): + - React-Core/RCTTextHeaders (= 0.70.4) + - React-RCTVibration (0.70.4): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.70.4) + - React-Core/RCTVibrationHeaders (= 0.70.4) + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (= 0.70.4) + - React-runtimeexecutor (0.70.4): + - React-jsi (= 0.70.4) + - ReactCommon/turbomodule/core (0.70.4): + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-bridging (= 0.70.4) + - React-callinvoker (= 0.70.4) + - React-Core (= 0.70.4) + - React-cxxreact (= 0.70.4) + - React-jsi (= 0.70.4) + - React-logger (= 0.70.4) + - React-perflogger (= 0.70.4) + - RNCMaskedView (0.2.8): + - React-Core + - RNCPicker (2.4.8): + - React-Core + - RNScreens (3.18.2): + - React-Core + - React-RCTImage + - Yoga (1.14.0) + +DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) + - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) + - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - primer-io-react-native (from `../..`) + - Primer3DS + - PrimerKlarnaSDK + - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6_rebase-2.14.0`) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-bridging (from `../node_modules/react-native/ReactCommon`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Codegen (from `build/generated/ios`) + - React-Core (from `../node_modules/react-native/`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - "react-native-segmented-control (from `../node_modules/@react-native-segmented-control/segmented-control`)" + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - "RNCMaskedView (from `../node_modules/@react-native-masked-view/masked-view`)" + - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" + - RNScreens (from `../node_modules/react-native-screens`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +SPEC REPOS: + trunk: + - fmt + - KlarnaMobileSDK + - Primer3DS + - PrimerKlarnaSDK + +EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" + DoubleConversion: + :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + FBReactNativeSpec: + :path: "../node_modules/react-native/React/FBReactNativeSpec" + glog: + :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + primer-io-react-native: + :path: "../.." + PrimerSDK: + :branch: feature/DEVX-6_rebase-2.14.0 + :git: https://github.com/primer-io/primer-sdk-ios.git + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" + RCTRequired: + :path: "../node_modules/react-native/Libraries/RCTRequired" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-bridging: + :path: "../node_modules/react-native/ReactCommon" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Codegen: + :path: build/generated/ios + React-Core: + :path: "../node_modules/react-native/" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + react-native-safe-area-context: + :path: "../node_modules/react-native-safe-area-context" + react-native-segmented-control: + :path: "../node_modules/@react-native-segmented-control/segmented-control" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + RNCMaskedView: + :path: "../node_modules/@react-native-masked-view/masked-view" + RNCPicker: + :path: "../node_modules/@react-native-picker/picker" + RNScreens: + :path: "../node_modules/react-native-screens" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +CHECKOUT OPTIONS: + PrimerSDK: + :commit: 654863a0498429daf39fb73f12e11a47e75ee8b3 + :git: https://github.com/primer-io/primer-sdk-ios.git + +SPEC CHECKSUMS: + boost: a7c83b31436843459a1961bfd74b96033dc77234 + DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 + FBLazyVector: 8a28262f61fbe40c04ce8677b8d835d97c18f1b3 + FBReactNativeSpec: b475991eb2d8da6a4ec32d09a8df31b0247fa87d + fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 + glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b + KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 + primer-io-react-native: a22a1ed9f651666c9fe2f5ba565a72069c118307 + Primer3DS: 0b298ca54adb07e3f5ae3d74e574b6d3084e8a0d + PrimerKlarnaSDK: 3bec0ddf31e01376587b8572ef12e8d5647b5c8a + PrimerSDK: c974d33a85491d400249d957b968770b5e2580e1 + RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda + RCTRequired: 49a2c4d4215580d8b24ed538ae01b6de20b43a76 + RCTTypeSafety: 55d538399fe8b51e5cd862e2ec2f9b135b07e783 + React: 413fd7d791365c2c5742b60493d3ab450ca1a210 + React-bridging: 8e577e404677d57daa0310db63e6a27328a57207 + React-callinvoker: d0ae2f0ea66bcf29a3e42a895428d2f01473d2ea + React-Codegen: 273200ed3b02d35fd1755aebe0eb3319b037d950 + React-Core: f42a10403076c1114f8c50f063ddafc9eea92fff + React-CoreModules: 1ed78c63dad96f40b123d4d4ca455e09ccd8aaed + React-cxxreact: 7d30af80adb5fe6a97646a06540c19e61736aa15 + React-jsi: 9b2b4ac1642b72bffcd74550f0caa0926b3f8a4d + React-jsiexecutor: 4a893fc8f683b91befcaf56c44ad8be4506b6828 + React-jsinspector: 1d5a9e84e419a57cabc23249aec3d837d1b03a80 + React-logger: f8071ad48248781d5afdb8a07f778758529d3019 + react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a + react-native-segmented-control: 06607462630512ff8eef652ec560e6235a30cc3e + React-perflogger: 5e41b01b35d97cc1b0ea177181eb33b5c77623b6 + React-RCTActionSheet: 48949f30b24200c82f3dd27847513be34e06a3ae + React-RCTAnimation: 96af42c97966fcd53ed9c31bee6f969c770312b6 + React-RCTBlob: 22aa326a2b34eea3299a2274ce93e102f8383ed9 + React-RCTImage: 1df0dbdb53609778f68830ccdd07ff3b40812837 + React-RCTLinking: eef4732d9102a10174115a727588d199711e376c + React-RCTNetwork: 18716f00568ec203df2192d35f4a74d1d9b00675 + React-RCTSettings: 1dc8a5e5272cea1bad2f8d9b4e6bac91b846749b + React-RCTText: 17652c6294903677fb3d754b5955ac293347782c + React-RCTVibration: 0e247407238d3bd6b29d922d7b5de0404359431b + React-runtimeexecutor: 5407e26b5aaafa9b01a08e33653255f8247e7c31 + ReactCommon: abf3605a56f98b91671d0d1327addc4ffb87af77 + RNCMaskedView: bc0170f389056201c82a55e242e5d90070e18e5a + RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 + RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d + Yoga: 1f02ef4ce4469aefc36167138441b27d988282b1 + +PODFILE CHECKSUM: 3a08e1a130a93abc4c89a95cbdd5d823d8d51b2f + +COCOAPODS: 1.11.3 diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj new file mode 100644 index 000000000..0f4905a73 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -0,0 +1,519 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */; }; + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + 8460AFD42915662E0045630D /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 8460AFD32915662E0045630D /* main.jsbundle */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeExampleTests.m; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeExample/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ReactNativeExample/AppDelegate.mm; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeExample/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeExample/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeExample/main.m; sourceTree = ""; }; + 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeExample-ReactNativeExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample-ReactNativeExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; + 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; + 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; sourceTree = ""; }; + 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; + 8460AFD32915662E0045630D /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; + 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; sourceTree = ""; }; + ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeExample.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */ = { + isa = PBXGroup; + children = ( + 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */, + 00E356F01AD99517003FC87E /* Supporting Files */, + ); + path = ReactNativeExampleTests; + sourceTree = ""; + }; + 00E356F01AD99517003FC87E /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 00E356F11AD99517003FC87E /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 13B07FAE1A68108700A75B9A /* ReactNativeExample */ = { + isa = PBXGroup; + children = ( + 13B07FAF1A68108700A75B9A /* AppDelegate.h */, + 13B07FB01A68108700A75B9A /* AppDelegate.mm */, + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, + 13B07FB71A68108700A75B9A /* main.m */, + ); + name = ReactNativeExample; + sourceTree = ""; + }; + 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED297162215061F000B7C4FE /* JavaScriptCore.framework */, + 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */, + 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeExample-ReactNativeExampleTests.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + ); + name = Libraries; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + 8460AFD32915662E0045630D /* main.jsbundle */, + 13B07FAE1A68108700A75B9A /* ReactNativeExample */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */, + 83CBBA001A601CBA00E9B192 /* Products */, + 2D16E6871FA4F8E400B85C8A /* Frameworks */, + BBD78D7AC51CEA395F1C20DB /* Pods */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + usesTabs = 0; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */, + ); + name = Products; + sourceTree = ""; + }; + BBD78D7AC51CEA395F1C20DB /* Pods */ = { + isa = PBXGroup; + children = ( + 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */, + 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */, + 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig */, + 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 13B07F861A680F5B00A75B9A /* ReactNativeExample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; + buildPhases = ( + C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, + FD10A7F022414F080027D42C /* Start Packager */, + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */, + E235C05ADACE081382539298 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ReactNativeExample; + productName = ReactNativeExample; + productReference = 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1210; + TargetAttributes = { + 13B07F861A680F5B00A75B9A = { + LastSwiftMigration = 1120; + }; + }; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */; + compatibilityVersion = "Xcode 12.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* ReactNativeExample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8460AFD42915662E0045630D /* main.jsbundle in Resources */, + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(SRCROOT)/.xcode.env.local", + "$(SRCROOT)/.xcode.env", + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; + }; + 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + FD10A7F022414F080027D42C /* Start Packager */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Start Packager"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, + 13B07FC11A68108700A75B9A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = ReactNativeExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = ReactNativeExample; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = ReactNativeExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = ReactNativeExample; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme new file mode 100644 index 000000000..ad7f2f06a --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..694705661 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h b/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h new file mode 100644 index 000000000..ef1de86a2 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h @@ -0,0 +1,8 @@ +#import +#import + +@interface AppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; + +@end diff --git a/ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm b/ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm new file mode 100644 index 000000000..a012ce1e3 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm @@ -0,0 +1,133 @@ +#import "AppDelegate.h" + +#import +#import +#import + +#import + +#if RCT_NEW_ARCH_ENABLED +#import +#import +#import +#import +#import +#import + +#import + +static NSString *const kRNConcurrentRoot = @"concurrentRoot"; + +@interface AppDelegate () { + RCTTurboModuleManager *_turboModuleManager; + RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; + std::shared_ptr _reactNativeConfig; + facebook::react::ContextContainer::Shared _contextContainer; +} +@end +#endif + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + RCTAppSetupPrepareApp(application); + + RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; + +#if RCT_NEW_ARCH_ENABLED + _contextContainer = std::make_shared(); + _reactNativeConfig = std::make_shared(); + _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); + _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; + bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; +#endif + + NSDictionary *initProps = [self prepareInitialProps]; + UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"ReactNativeExample", initProps); + + if (@available(iOS 13.0, *)) { + rootView.backgroundColor = [UIColor systemBackgroundColor]; + } else { + rootView.backgroundColor = [UIColor whiteColor]; + } + + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + UIViewController *rootViewController = [UIViewController new]; + rootViewController.view = rootView; + self.window.rootViewController = rootViewController; + [self.window makeKeyAndVisible]; + return YES; +} + +/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. +/// +/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html +/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). +/// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. +- (BOOL)concurrentRootEnabled +{ + // Switch this bool to turn on and off the concurrent root + return true; +} + +- (NSDictionary *)prepareInitialProps +{ + NSMutableDictionary *initProps = [NSMutableDictionary new]; + +#ifdef RCT_NEW_ARCH_ENABLED + initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); +#endif + + return initProps; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge +{ +#if DEBUG + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; +#endif +} + +#if RCT_NEW_ARCH_ENABLED + +#pragma mark - RCTCxxBridgeDelegate + +- (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge +{ + _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge + delegate:self + jsInvoker:bridge.jsCallInvoker]; + return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); +} + +#pragma mark RCTTurboModuleManagerDelegate + +- (Class)getModuleClassFromName:(const char *)name +{ + return RCTCoreModulesClassProvider(name); +} + +- (std::shared_ptr)getTurboModule:(const std::string &)name + jsInvoker:(std::shared_ptr)jsInvoker +{ + return nullptr; +} + +- (std::shared_ptr)getTurboModule:(const std::string &)name + initParams: + (const facebook::react::ObjCTurboModule::InitParams &)params +{ + return nullptr; +} + +- (id)getModuleInstanceFromClass:(Class)moduleClass +{ + return RCTAppSetupDefaultModuleFromClass(moduleClass); +} + +#endif + +@end diff --git a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..81213230d --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,53 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json new file mode 100644 index 000000000..2d92bd53f --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ReactNativeExample/ios/ReactNativeExample/Info.plist b/ReactNativeExample/ios/ReactNativeExample/Info.plist new file mode 100644 index 000000000..28f84f169 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/Info.plist @@ -0,0 +1,52 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ReactNativeExample + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSExceptionDomains + + localhost + + + + NSLocationWhenInUseUsageDescription + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard b/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard new file mode 100644 index 000000000..147c4d213 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ReactNativeExample/ios/ReactNativeExample/main.m b/ReactNativeExample/ios/ReactNativeExample/main.m new file mode 100644 index 000000000..d645c7246 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExample/main.m @@ -0,0 +1,10 @@ +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/ReactNativeExample/ios/ReactNativeExampleTests/Info.plist b/ReactNativeExample/ios/ReactNativeExampleTests/Info.plist new file mode 100644 index 000000000..ba72822e8 --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExampleTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m b/ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m new file mode 100644 index 000000000..b69ff11fe --- /dev/null +++ b/ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m @@ -0,0 +1,66 @@ +#import +#import + +#import +#import + +#define TIMEOUT_SECONDS 600 +#define TEXT_TO_LOOK_FOR @"Welcome to React" + +@interface ReactNativeExampleTests : XCTestCase + +@end + +@implementation ReactNativeExampleTests + +- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test +{ + if (test(view)) { + return YES; + } + for (UIView *subview in [view subviews]) { + if ([self findSubviewInView:subview matching:test]) { + return YES; + } + } + return NO; +} + +- (void)testRendersWelcomeScreen +{ + UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; + NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; + BOOL foundElement = NO; + + __block NSString *redboxError = nil; +#ifdef DEBUG + RCTSetLogFunction( + ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { + if (level >= RCTLogLevelError) { + redboxError = message; + } + }); +#endif + + while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { + [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + + foundElement = [self findSubviewInView:vc.view + matching:^BOOL(UIView *view) { + if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { + return YES; + } + return NO; + }]; + } + +#ifdef DEBUG + RCTSetLogFunction(RCTDefaultLogFunction); +#endif + + XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); + XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); +} + +@end diff --git a/ReactNativeExample/ios/_xcode.env b/ReactNativeExample/ios/_xcode.env new file mode 100644 index 000000000..3d5782c71 --- /dev/null +++ b/ReactNativeExample/ios/_xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) diff --git a/ReactNativeExample/metro.config.js b/ReactNativeExample/metro.config.js new file mode 100644 index 000000000..d1f468ab0 --- /dev/null +++ b/ReactNativeExample/metro.config.js @@ -0,0 +1,40 @@ +const path = require('path'); +const blacklist = require('metro-config/src/defaults/blacklist'); +const escape = require('escape-string-regexp'); +const pak = require('../package.json'); + +const root = path.resolve(__dirname, '..'); + +const modules = Object.keys({ + ...pak.peerDependencies, +}); + +module.exports = { + projectRoot: __dirname, + watchFolders: [root], + + // We need to make sure that only one version is loaded for peerDependencies + // So we blacklist them at the root, and alias them to the versions in example's node_modules + resolver: { + blacklistRE: blacklist( + modules.map( + (m) => + new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) + ) + ), + + extraNodeModules: modules.reduce((acc, name) => { + acc[name] = path.join(__dirname, 'node_modules', name); + return acc; + }, {}), + }, + + transformer: { + getTransformOptions: async () => ({ + transform: { + experimentalImportSupport: false, + inlineRequires: true, + }, + }), + }, +}; diff --git a/ReactNativeExample/package.json b/ReactNativeExample/package.json new file mode 100644 index 000000000..55b23d689 --- /dev/null +++ b/ReactNativeExample/package.json @@ -0,0 +1,58 @@ +{ + "name": "ReactNativeExample", + "description": "Example app for @primer-io/react-native", + "version": "0.0.1", + "private": true, + "scripts": { + "android": "react-native run-android", + "ios": "react-native run-ios", + "start": "react-native start", + "test": "jest", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "build:ios": "npx react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=true --platform='ios'" + }, + "dependencies": { + "@react-native-masked-view/masked-view": "^0.2.8", + "@react-native-picker/picker": "^2.4.8", + "@react-native-segmented-control/segmented-control": "^2.4.0", + "@react-navigation/native": "^6.0.13", + "@react-navigation/native-stack": "^6.9.1", + "axios": "^1.1.3", + "react": "18.1.0", + "react-native": "0.70.4", + "react-native-loading-spinner-overlay": "^3.0.1", + "react-native-safe-area-context": "^4.4.1", + "react-native-safe-area-view": "^1.1.1", + "react-native-screens": "^3.18.2" + }, + "devDependencies": { + "@babel/core": "^7.12.9", + "@babel/runtime": "^7.12.5", + "@react-native-community/eslint-config": "^2.0.0", + "@tsconfig/react-native": "^2.0.2", + "@types/jest": "^26.0.23", + "@types/react": "^18.0.21", + "@types/react-native": "^0.70.6", + "@types/react-test-renderer": "^18.0.0", + "@typescript-eslint/eslint-plugin": "^5.37.0", + "@typescript-eslint/parser": "^5.37.0", + "babel-jest": "^26.6.3", + "babel-plugin-module-resolver": "^4.1.0", + "eslint": "^7.32.0", + "jest": "^26.6.3", + "metro-react-native-babel-preset": "0.72.3", + "react-test-renderer": "18.1.0", + "typescript": "^4.8.3" + }, + "jest": { + "preset": "react-native", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ] + } +} diff --git a/ReactNativeExample/src/App.tsx b/ReactNativeExample/src/App.tsx new file mode 100644 index 000000000..31413eecd --- /dev/null +++ b/ReactNativeExample/src/App.tsx @@ -0,0 +1,34 @@ +import React from 'react'; +import { NavigationContainer } from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import SettingsScreen from './screens/SettingsScreen'; +import CheckoutScreen from './screens/CheckoutScreen'; +import ResultScreen from './screens/ResultScreen'; +import { HeadlessCheckoutScreen } from './screens/HeadlessCheckoutScreen'; +import NewLineItemScreen from './screens/NewLineItemSreen'; +import RawCardDataScreen from './screens/RawCardDataScreen'; +import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; +import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; +import RawRetailOutletScreen from './screens/RawRetailOutletScreen'; + +const Stack = createNativeStackNavigator(); + +const App = () => { + return ( + + + + + + + + + + + + + + ); +}; + +export default App; diff --git a/ReactNativeExample/src/components/Button.tsx b/ReactNativeExample/src/components/Button.tsx new file mode 100644 index 000000000..a8134191c --- /dev/null +++ b/ReactNativeExample/src/components/Button.tsx @@ -0,0 +1,23 @@ + + +import * as React from 'react'; +import { View, Text, TouchableOpacity } from 'react-native'; +import { styles } from '../styles'; + +const Button = () => { + return ( + + + + Apple Pay + + + + ); +}; + +export default Button; \ No newline at end of file diff --git a/ReactNativeExample/src/components/Heading.tsx b/ReactNativeExample/src/components/Heading.tsx new file mode 100644 index 000000000..31ee1103c --- /dev/null +++ b/ReactNativeExample/src/components/Heading.tsx @@ -0,0 +1,50 @@ +import * as React from 'react'; +import type { StyleProp, TextStyle, ViewStyle } from 'react-native'; +import { + Text, + View, +} from 'react-native'; + +import { styles } from '../styles'; + +export interface HeadingProps { + style?: StyleProp; + title: string; +} + +const Heading = (props: HeadingProps) => { + return ( + + + {props.title} + + + ); +} + +export const Heading1 = (props: HeadingProps) => { + return ( + + ); +} + +export const Heading2 = (props: HeadingProps) => { + return ( + + ); +} + +export const Heading3 = (props: HeadingProps) => { + return ( + + ); +} diff --git a/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx b/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx new file mode 100644 index 000000000..053721fa7 --- /dev/null +++ b/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx @@ -0,0 +1,3 @@ +// MyCustomView.js +import {requireNativeComponent} from 'react-native'; +export const PrimerCardNumberEditText = requireNativeComponent('PrimerCardNumberEditText'); diff --git a/ReactNativeExample/src/components/Section.tsx b/ReactNativeExample/src/components/Section.tsx new file mode 100644 index 000000000..742c16ec6 --- /dev/null +++ b/ReactNativeExample/src/components/Section.tsx @@ -0,0 +1,44 @@ +import * as React from 'react'; +import { StyleProp, Text, ViewStyle } from 'react-native'; +import { + View, +} from 'react-native'; + +export interface SectionProps { + style?: StyleProp; +} +import { styles } from "../styles"; + +export const Section: React.FC<{title: string, style: SectionProps}> = ({ children, title, style }) => { + + const renderChildren = (children: React.ReactNode[]) => { + return children.forEach((child, index) => { + return child; + }) + } + + return ( + + + {title} + + {/* + {children} + */} + + ); +}; \ No newline at end of file diff --git a/ReactNativeExample/src/components/TextField.tsx b/ReactNativeExample/src/components/TextField.tsx new file mode 100644 index 000000000..776659424 --- /dev/null +++ b/ReactNativeExample/src/components/TextField.tsx @@ -0,0 +1,42 @@ +import * as React from 'react'; +import type { StyleProp } from 'react-native'; +import type { ViewStyle } from 'react-native'; +import { + Text, + TextInput, + View, +} from 'react-native'; + +import { styles } from '../styles'; + +export interface TextFieldProps { + keyboardType?: 'numeric' | 'default' + onChangeText?: (text: string) => void; + placeholder?: string; + style?: StyleProp; + title?: string; + value?: string; +} + +const TextField = (props: TextFieldProps) => { + return ( + + { + props.title === undefined ? null : + + {props.title} + + } + + + ); +} + +export default TextField; \ No newline at end of file diff --git a/ReactNativeExample/src/helpers/helpers.ts b/ReactNativeExample/src/helpers/helpers.ts new file mode 100644 index 000000000..ed8df4b80 --- /dev/null +++ b/ReactNativeExample/src/helpers/helpers.ts @@ -0,0 +1,10 @@ +export function makeRandomString(length: number): string { + var result = ''; + var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + var charactersLength = characters.length; + for (var i = 0; i < length; i++) { + result += characters.charAt(Math.floor(Math.random() * + charactersLength)); + } + return result; +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/Environment.ts b/ReactNativeExample/src/models/Environment.ts new file mode 100644 index 000000000..5bb7aba6d --- /dev/null +++ b/ReactNativeExample/src/models/Environment.ts @@ -0,0 +1,51 @@ +export enum Environment { + Dev = 0, + Sandbox, + Staging, + Production, +} + +export function getEnvironmentStringVal(env: Environment): string { + switch (env) { + case Environment.Dev: + return "dev" + case Environment.Sandbox: + return "sandbox" + case Environment.Staging: + return "staging" + case Environment.Production: + return "production" + default: + return "unknown" + } +} + +export function makeEnvironmentFromStringVal(env: string): Environment { + switch (env) { + case "dev": + return Environment.Dev; + case "sandbox": + return Environment.Sandbox; + case "Staging": + return Environment.Staging; + case "production": + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } +} + +export function makeEnvironmentFromIntVal(env: number): Environment { + switch (env) { + case 0: + return Environment.Dev; + case 1: + return Environment.Sandbox; + case 2: + return Environment.Staging; + case 3: + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IAppSettings.ts b/ReactNativeExample/src/models/IAppSettings.ts new file mode 100644 index 000000000..4ab2d55ae --- /dev/null +++ b/ReactNativeExample/src/models/IAppSettings.ts @@ -0,0 +1,42 @@ +export interface IClientSessionParams { + currencyCode: string; + customerId?: string; + order?: IOrder; + orderId?: string; + merchantName?: string; + customer?: ICustomer; +} + +export interface IOrder { + countryCode: string; + lineItems: ILineItem[]; +} + +export interface ILineItem { + amount: number; + quantity: number; + itemId: string; + description: string; + discountAmount?: number; +} + +export interface IAddress { + firstName?: string; + lastName?: string; + postalCode?: string; + addressLine1: string; + addressLine2?: string; + city?: string; + state?: string; + countryCode?: string; +} + +export interface ICustomer { + emailAddress?: string; + mobileNumber?: string; + firstName?: string; + lastName?: string; + billingAddress?: IAddress; + shippingAddress?: IAddress; + nationalDocumentId?: string; +} diff --git a/ReactNativeExample/src/models/IClientSession.ts b/ReactNativeExample/src/models/IClientSession.ts new file mode 100644 index 000000000..36d20e7ae --- /dev/null +++ b/ReactNativeExample/src/models/IClientSession.ts @@ -0,0 +1,4 @@ +export interface IClientSession { + clientToken: string; + clientTokenExpirationDate: string; +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IClientSessionRequestBody.ts b/ReactNativeExample/src/models/IClientSessionRequestBody.ts new file mode 100644 index 000000000..974612984 --- /dev/null +++ b/ReactNativeExample/src/models/IClientSessionRequestBody.ts @@ -0,0 +1,182 @@ +import { makeRandomString } from "../helpers/helpers"; +import { PaymentHandling } from "../network/Environment"; +import type { AppPaymentParameters } from "../screens/SettingsScreen"; +import { Environment } from "./Environment"; + +export interface IClientSessionRequestBody { + customerId?: string; + orderId?: string; + currencyCode?: string; + order?: IClientSessionOrder; + customer?: IClientSessionCustomer; + paymentMethod?: IClientSessionPaymentMethod; +} + +export interface IClientSessionOrder { + countryCode?: string; + lineItems?: Array +} + +export interface IClientSessionCustomer { + emailAddress?: string; + mobileNumber?: string; + firstName?: string; + lastName?: string; + billingAddress?: IClientSessionAddress; + shippingAddress?: IClientSessionAddress; + nationalDocumentId?: string; +} + +export interface IClientSessionAddress { + firstName?: string; + lastName?: string; + postalCode?: string; + addressLine1?: string; + addressLine2?: string; + countryCode?: string; + city?: string; + state?: string; +} + +export interface IClientSessionLineItem { + amount: number; + quantity: number; + itemId: string; + description: string; + discountAmount?: number; +} + +export interface IClientSessionActionsRequestBody { + clientToken: string; + actions: IClientSession_Action[]; +} + +export interface IClientSession_Action { + type: string; + params?: any; +} + +export interface IClientSessionPaymentMethod { + vaultOnSuccess?: boolean; + options?: IClientSessionPaymentMethodOptions; +} + +export interface IClientSessionPaymentMethodOptionsSurcharge { + surcharge: { + amount: number; + } +} + +export interface IClientSessionPaymentMethodOptions { + GOOGLE_PAY?: IClientSessionPaymentMethodOptionsSurcharge; + ADYEN_IDEAL?: IClientSessionPaymentMethodOptionsSurcharge; + ADYEN_SOFORT?: IClientSessionPaymentMethodOptionsSurcharge; + APPLE_PAY?: IClientSessionPaymentMethodOptionsSurcharge; + ADYEN_GIROPAY?: IClientSessionPaymentMethodOptionsSurcharge; + PAYMENT_CARD?: { + networks: { + VISA?: IClientSessionPaymentMethodOptionsSurcharge; + MASTERCARD?: IClientSessionPaymentMethodOptionsSurcharge; + }, + }, +} + +export let appPaymentParameters: AppPaymentParameters = { + environment: Environment.Sandbox, + paymentHandling: PaymentHandling.Auto, + clientSessionRequestBody: { + customerId: `rn-customer-${makeRandomString(8)}`, + orderId: `rn-order-${makeRandomString(8)}`, + currencyCode: 'GBP', + order: { + countryCode: 'GB', + lineItems: [ + { + amount: 10100, + quantity: 1, + itemId: 'shoes-3213', + description: 'Fancy Shoes', + discountAmount: 0 + }, + // { + // amount: 1000, + // quantity: 1, + // itemId: 'hats-3213', + // description: 'Cool Hat', + // discountAmount: 0 + // } + ] + }, + customer: { + emailAddress: 'rn-tester@primer.io', + mobileNumber: '+447821721778', + firstName: 'John', + lastName: 'Smith', + billingAddress: { + firstName: 'John', + lastName: 'Smith', + postalCode: 'SW1H 9HP', + addressLine1: '24 Old Queen St', + addressLine2: undefined, + countryCode: 'GB', + city: 'London', + state: undefined + }, + shippingAddress: { + firstName: 'John', + lastName: 'Smith', + postalCode: 'SW1H 9HP', + addressLine1: '24 Old Queen St', + countryCode: 'GB', + city: 'London', + state: undefined + }, + nationalDocumentId: '78731798237' + }, + paymentMethod: { + vaultOnSuccess: false, + options: { + GOOGLE_PAY: { + surcharge: { + amount: 50, + }, + }, + ADYEN_IDEAL: { + surcharge: { + amount: 50, + }, + }, + ADYEN_GIROPAY: { + surcharge: { + amount: 50, + }, + }, + ADYEN_SOFORT: { + surcharge: { + amount: 50, + }, + }, + APPLE_PAY: { + surcharge: { + amount: 150, + }, + }, + PAYMENT_CARD: { + networks: { + VISA: { + surcharge: { + amount: 100, + }, + }, + MASTERCARD: { + surcharge: { + amount: 200, + }, + }, + }, + }, + }, + } + }, + merchantName: 'Primer Merchant' +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IPayment.ts b/ReactNativeExample/src/models/IPayment.ts new file mode 100644 index 000000000..c74932a18 --- /dev/null +++ b/ReactNativeExample/src/models/IPayment.ts @@ -0,0 +1,78 @@ +export interface IPayment { + amount: number; + currencyCode: string; + customer: IPayment_Customer; + date: string; + id: string; + order: IPayment_Order; + orderId?: string | null; + paymentMethod: IPayment_PaymentMethod; + processor?: IPayment_Processor | null; + requiredAction?: IPayment_RequiredAction; + status: string; + transactions?: any | null; +} + +export interface IPayment_Processor { + amountCaptured?: number | null; + amountRefunded?: number | null; +} + +export interface IPayment_Address { + addressLine1?: string | null; + addressLine2?: string | null; + city?: string | null; + countryCode?: string | null; + firstName?: string | null; + lastName?: string | null; + postalCode?: string | null; + state?: string | null; +} + +export interface IPayment_Customer { + emailAddress?: string; + billingAddress?: IPayment_Address | null; + shippingAddress?: IPayment_Address | null; + nationalDocumentId?: string; +} + +export interface IPayment_LineItem { + amount: number; + description?: string | null; + discountAmount?: number | null; + itemId?: string | null; + quantity?: string | null; +} + +export interface IPayment_Order { + countryCode: string; + fees?: any[] | null; + lineItems: IPayment_LineItem[]; +} + +export interface IPayment_RequiredAction { + name: string; + description: string; + clientToken: string; +} + +export interface IPayment_PaymentMethod { + analyticsId?: string | null; + paymentMethodData?: IPayment_PaymentMethod_PaymentMethodData | null; + paymentMethodToken: string; + paymentMethodType: string; + threeDSecureAuthentication?: IPayment_PaymentMethod_ThreeDSecureAuthentication | null; +} + +export interface IPayment_PaymentMethod_PaymentMethodData { + cardholderName?: string; + expirationMonth?: string; + expirationYear?: string; + isNetworkTokenized?: boolean; + last4Digits?: string; + network?: string; +} + +export interface IPayment_PaymentMethod_ThreeDSecureAuthentication { + responseCode: string; +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/RawDataScreenProps.ts b/ReactNativeExample/src/models/RawDataScreenProps.ts new file mode 100644 index 000000000..ba1b52f45 --- /dev/null +++ b/ReactNativeExample/src/models/RawDataScreenProps.ts @@ -0,0 +1,6 @@ + +export interface RawDataScreenProps { + navigation: any; + clientSession: any; + route: any; +} \ No newline at end of file diff --git a/ReactNativeExample/src/models/Section.tsx b/ReactNativeExample/src/models/Section.tsx new file mode 100644 index 000000000..768192b2a --- /dev/null +++ b/ReactNativeExample/src/models/Section.tsx @@ -0,0 +1,34 @@ +import React from 'react'; +import { Text, useColorScheme, View } from "react-native"; +import { + Colors, +} from 'react-native/Libraries/NewAppScreen'; +import { styles } from "../styles"; + +export const Section: React.FC<{ + title: string; +}> = ({ children, title }) => { + const isDarkMode = useColorScheme() === 'dark'; + return ( + + + {title} + + + {children} + + + ); +}; \ No newline at end of file diff --git a/ReactNativeExample/src/network/APIVersion.ts b/ReactNativeExample/src/network/APIVersion.ts new file mode 100644 index 000000000..14a8b0ae4 --- /dev/null +++ b/ReactNativeExample/src/network/APIVersion.ts @@ -0,0 +1,22 @@ +export enum APIVersion { + v1 = 0, + v2, + v3, + v4, + v5 +} + +export function getAPIVersionStringVal(apiVersion: APIVersion): string | undefined { + switch (apiVersion) { + case APIVersion.v1: + return undefined + case APIVersion.v2: + return "2021-09-27" + case APIVersion.v3: + return "2021-10-19" + case APIVersion.v4: + return "2021-12-01" + case APIVersion.v5: + return "2021-12-10" + } +} diff --git a/ReactNativeExample/src/network/Environment.ts b/ReactNativeExample/src/network/Environment.ts new file mode 100644 index 000000000..14863dda1 --- /dev/null +++ b/ReactNativeExample/src/network/Environment.ts @@ -0,0 +1,89 @@ +export enum Environment { + Dev = 0, + Sandbox, + Staging, + Production, +} + +export function getEnvironmentStringVal(env: Environment): string | undefined { + switch (env) { + case Environment.Dev: + return "dev"; + case Environment.Sandbox: + return "sandbox"; + case Environment.Staging: + return "staging"; + case Environment.Production: + return "production"; + default: + return undefined; + } +} + +export function makeEnvironmentFromStringVal(env: string): Environment { + switch (env) { + case "dev": + return Environment.Dev; + case "sandbox": + return Environment.Sandbox; + case "Staging": + return Environment.Staging; + case "production": + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } +} + +export function makeEnvironmentFromIntVal(env: number): Environment { + switch (env) { + case 0: + return Environment.Dev; + case 1: + return Environment.Sandbox; + case 2: + return Environment.Staging; + case 3: + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } +} + +export enum PaymentHandling { + Auto = 0, + Manual +} + +export function makePaymentHandlingFromIntVal(env: number): PaymentHandling { + switch (env) { + case 0: + return PaymentHandling.Auto; + case 1: + return PaymentHandling.Manual; + default: + throw new Error("Failed to create payment handling."); + } +} + +export function makePaymentHandlingFromStringVal(env: string): PaymentHandling { + switch (env.toUpperCase()) { + case "AUTO": + return PaymentHandling.Auto; + case "MANUAL": + return PaymentHandling.Manual; + default: + throw new Error("Failed to create payment handling."); + } +} + +export function getPaymentHandlingStringVal(env: PaymentHandling): 'AUTO' | 'MANUAL' | undefined { + switch (env) { + case PaymentHandling.Auto: + return "AUTO"; + case PaymentHandling.Manual: + return "MANUAL"; + default: + return undefined; + } +} diff --git a/ReactNativeExample/src/network/api.ts b/ReactNativeExample/src/network/api.ts new file mode 100644 index 000000000..440a8c6fd --- /dev/null +++ b/ReactNativeExample/src/network/api.ts @@ -0,0 +1,173 @@ +import axios from 'axios'; +import { getEnvironmentStringVal } from './Environment'; +import { appPaymentParameters, IClientSessionActionsRequestBody, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; +import type { IPayment } from '../models/IPayment'; +import { APIVersion, getAPIVersionStringVal } from './APIVersion'; +import { customApiKey, customClientToken } from '../screens/SettingsScreen'; + +const baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; + +let staticHeaders: { [key: string]: string } = { + 'Content-Type': 'application/json', + 'environment': getEnvironmentStringVal(appPaymentParameters.environment), +} + +export const createClientSession = async () => { + const url = baseUrl + '/client-session'; + const headers: { [key: string]: string } = { + ...staticHeaders, + 'X-Api-Version': getAPIVersionStringVal(APIVersion.v3), + }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + if (customClientToken) { + return { "clientToken": customClientToken }; + } + + try { + console.log('\n\n'); + console.log(`REQUEST:\n ${url}`); + console.log(`HEADERS:`); + console.log(headers); + console.log(`BODY:`); + console.log(appPaymentParameters.clientSessionRequestBody); + //@ts-ignore + const response = await axios.post(url, appPaymentParameters.clientSessionRequestBody, { headers: headers }); + console.log('\n\n'); + console.log(`RESPONSE:\n [${response.status}] ${url}`); + console.log(`BODY:`); + console.log(response.data); + console.log('\n\n'); + + if (response.status >= 200 && response.status < 300) { + return response.data; + } else { + const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); + console.error(err); + throw err; + } + } catch (err: any) { + console.log(err.response.data); + console.error(err); + throw err; + } +} + +export const setClientSessionActions = async (body: IClientSessionActionsRequestBody) => { + const url = baseUrl + '/client-session/actions'; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + try { + console.log('\n\n'); + console.log(`REQUEST:\n ${url}`); + console.log(`HEADERS:`); + console.log(headers); + console.log(`BODY:`); + console.log(body); + //@ts-ignore + const response = await axios.post(url, body, { headers: headers }); + console.log('\n\n'); + console.log(`RESPONSE:\n [${response.status}] ${url}`); + console.log(`BODY:`); + console.log(body); + console.log('\n\n'); + + if (response.status >= 200 && response.status < 300) { + const clientSession = response.data; + return clientSession; + } else { + const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); + console.error(err); + throw err; + } + } catch (err: any) { + console.log(err.response.data); + console.error(err); + throw err; + } +} + +export const createPayment = async (paymentMethodToken: string) => { + const url = baseUrl + '/payments'; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + const body = { paymentMethodToken: paymentMethodToken }; + try { + console.log('\n\n'); + console.log(`REQUEST:\n ${url}`); + console.log(`HEADERS:`); + console.log(headers); + console.log(`BODY:`); + console.log(body); + //@ts-ignore + const response = await axios.post(url, body, { headers: headers }); + console.log('\n\n'); + console.log(`RESPONSE:\n [${response.status}] ${url}`); + console.log(`BODY:`); + console.log(body); + console.log('\n\n'); + + if (response.status >= 200 && response.status < 300) { + const payment: IPayment = response.data; + return payment; + } else { + const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); + console.error(err); + throw err; + } + } catch (err: any) { + console.log(err.response.data); + console.error(err); + throw err; + } +}; + +export const resumePayment = async (paymentId: string, resumeToken: string) => { + const url = baseUrl + `/payments/${paymentId}/resume`; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + const body = { resumeToken: resumeToken }; + + try { + console.log('\n\n'); + console.log(`REQUEST:\n ${url}`); + console.log(`HEADERS:`); + console.log(headers); + console.log(`BODY:`); + console.log(body); + //@ts-ignore + const response = await axios.post(url, body, { headers: headers }); + console.log('\n\n'); + console.log(`RESPONSE:\n [${response.status}] ${url}`); + console.log(`BODY:`); + console.log(body); + console.log('\n\n'); + + if (response.status >= 200 && response.status < 300) { + return response.data; + } else { + const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); + console.error(err); + throw err; + } + } catch (err: any) { + console.log(err.response.data); + console.error(err); + throw err; + } +} diff --git a/ReactNativeExample/src/screens/CheckoutScreen.tsx b/ReactNativeExample/src/screens/CheckoutScreen.tsx new file mode 100644 index 000000000..6a5b55d19 --- /dev/null +++ b/ReactNativeExample/src/screens/CheckoutScreen.tsx @@ -0,0 +1,262 @@ + +import * as React from 'react'; +import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; +import { Colors } from 'react-native/Libraries/NewAppScreen'; +import { styles } from '../styles'; +import { appPaymentParameters } from '../models/IClientSessionRequestBody'; +import type { IClientSession } from '../models/IClientSession'; +import type { IPayment } from '../models/IPayment'; +import { getPaymentHandlingStringVal } from '../network/Environment'; +import { createClientSession, createPayment, resumePayment } from '../network/api'; +import { + CheckoutAdditionalInfo, + CheckoutData, + CheckoutPaymentMethodData, + ClientSession, + ErrorHandler, + PaymentCreationHandler, + Primer, + PrimerError, + PrimerPaymentMethodTokenData, + PrimerSettings, + ResumeHandler, + TokenizationHandler +} from '@primer-io/react-native'; + +let clientToken: string | null = null; + +const CheckoutScreen = (props: any) => { + const isDarkMode = useColorScheme() === 'dark'; + const [isLoading, setIsLoading] = React.useState(false); + const [loadingMessage, setLoadingMessage] = React.useState('undefined'); + const [error, setError] = React.useState(null); + + const backgroundStyle = { + backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, + }; + + let paymentId: string | null = null; + + const onBeforeClientSessionUpdate = () => { + console.log(`onBeforeClientSessionUpdate`); + setIsLoading(true); + setLoadingMessage('onBeforeClientSessionUpdate'); + } + + const onClientSessionUpdate = (clientSession: ClientSession) => { + console.log(`onClientSessionUpdate\n${JSON.stringify(clientSession)}`);; + setLoadingMessage('onClientSessionUpdate'); + } + + const onBeforePaymentCreate = (checkoutPaymentMethodData: CheckoutPaymentMethodData, handler: PaymentCreationHandler) => { + console.log(`onBeforePaymentCreate\n${JSON.stringify(checkoutPaymentMethodData)}`); + handler.continuePaymentCreation(); + setLoadingMessage('onBeforePaymentCreate'); + } + + const onCheckoutComplete = (checkoutData: CheckoutData) => { + console.log(`PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', checkoutData); + }; + + const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: TokenizationHandler) => { + console.log(`onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData)}`); + + try { + const payment: IPayment = await createPayment(paymentMethodTokenData.token); + + if (payment.requiredAction && payment.requiredAction.clientToken) { + paymentId = payment.id; + + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + console.warn("Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + } + paymentId = payment.id; + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + } else { + props.navigation.navigate('Result', payment); + handler.handleSuccess(); + setLoadingMessage(undefined); + setIsLoading(false); + } + } catch (err) { + console.error(err); + handler.handleFailure("Merchant error"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', err); + } + } + + const onResumeSuccess = async (resumeToken: string, handler: ResumeHandler) => { + console.log(`onResumeSuccess:\n${JSON.stringify(resumeToken)}`); + + try { + if (paymentId) { + const payment: IPayment = await resumePayment(paymentId, resumeToken); + props.navigation.navigate('Result', payment); + handler.handleSuccess(); + setLoadingMessage(undefined); + setIsLoading(false); + } else { + const err = new Error("Invalid value for paymentId"); + throw err; + } + paymentId = null; + + } catch (err) { + console.error(err); + paymentId = null; + handler.handleFailure("RN app error"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', err); + } + } + + const onResumePending = async (additionalInfo: CheckoutAdditionalInfo) => { + console.log(`onResumePending:\n${JSON.stringify(additionalInfo)}`); + debugger; + } + + const onCheckoutReceivedAdditionalInfo = async (additionalInfo: CheckoutAdditionalInfo) => { + console.log(`onCheckoutReceivedAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); + debugger; + } + + const onError = (error: PrimerError, checkoutData: CheckoutData | null, handler: ErrorHandler | undefined) => { + console.log(`onError:\n${JSON.stringify(error)}\n\n${JSON.stringify(checkoutData)}`); + handler?.showErrorMessage("My RN message"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', error); + }; + + const onDismiss = () => { + console.log(`onDismiss`); + clientToken = null; + setLoadingMessage(undefined); + setIsLoading(false); + }; + + let settings: PrimerSettings = { + paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + }, + cardPaymentOptions: { + is3DSOnVaultingEnabled: false + }, + klarnaOptions: { + recurringPaymentDescription: "Recurring payment description" + }, + applePayOptions: { + merchantIdentifier: "merchant.checkout.team", + merchantName: appPaymentParameters.merchantName, + isCaptureBillingAddressEnabled: true + } + }, + uiOptions: { + isInitScreenEnabled: true, + isSuccessScreenEnabled: true, + isErrorScreenEnabled: true + }, + debugOptions: { + is3DSSanityCheckEnabled: true + }, + primerCallbacks: { + onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, + onClientSessionUpdate: onClientSessionUpdate, + onBeforePaymentCreate: onBeforePaymentCreate, + onCheckoutComplete: onCheckoutComplete, + onTokenizeSuccess: onTokenizeSuccess, + onResumeSuccess: onResumeSuccess, + onResumePending: onResumePending, + onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, + onError: onError, + onDismiss: onDismiss, + } + }; + + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + }; + } + + const onVaultManagerButtonTapped = async () => { + try { + setIsLoading(true); + const clientSession: IClientSession = await createClientSession(); + clientToken = clientSession.clientToken; + await Primer.configure(settings); + await Primer.showVaultManager(clientToken); + + } catch (err) { + setIsLoading(false); + + if (err instanceof Error) { + setError(err); + } else if (typeof err === "string") { + setError(new Error(err)); + } else { + setError(new Error('Unknown error')); + } + } + } + + const onUniversalCheckoutButtonTapped = async () => { + try { + setIsLoading(true); + const clientSession: IClientSession = await createClientSession(); + clientToken = clientSession.clientToken; + await Primer.configure(settings); + await Primer.showUniversalCheckout(clientToken); + + } catch (err) { + setIsLoading(false); + + if (err instanceof Error) { + setError(err); + } else if (typeof err === "string") { + setError(new Error(err)); + } else { + setError(new Error('Unknown error')); + } + } + } + + console.log(`RENDER\nisLoading: ${isLoading}`) + return ( + + + + + Vault Manager + + + + + Universal Checkout + + + + ); +}; + +export default CheckoutScreen; diff --git a/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx b/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx new file mode 100644 index 000000000..2908083ec --- /dev/null +++ b/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx @@ -0,0 +1,410 @@ +import React, { useEffect, useState } from 'react'; +import { + Alert, + Image, + TouchableOpacity, + View, +} from 'react-native'; +import { createClientSession, createPayment, resumePayment } from '../network/api'; +import { appPaymentParameters } from '../models/IClientSessionRequestBody'; +import type { IPayment } from '../models/IPayment'; +import { getPaymentHandlingStringVal } from '../network/Environment'; +import { ActivityIndicator } from 'react-native'; +import { + Asset, + AssetsManager, + CheckoutAdditionalInfo, + CheckoutData, + HeadlessUniversalCheckout, + NativeUIManager, + PaymentMethod, + PrimerSettings, + SessionIntent +} from '@primer-io/react-native'; + +let log: string = ""; +let merchantPaymentId: string | null = null; +let merchantCheckoutData: CheckoutData | null = null; +let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; +let merchantPayment: IPayment | null = null; +let merchantPrimerError: Error | unknown | null = null; + +const selectImplemetationType = (paymentMethod: PaymentMethod): Promise => { + return new Promise((resolve, reject) => { + const buttons: any[] = []; + + paymentMethod.paymentMethodManagerCategories.forEach(category => { + buttons.push({ + text: category, + style: "default", + onPress: () => { + resolve(category); + } + }); + }); + + buttons.push({ + text: "Cancel", + style: "cancel", + onPress: () => { + const err = new Error("Operation cancelled"); + reject(err); + } + }); + + Alert.alert( + "", + "Select implementation to test", + buttons, + { + cancelable: true, + } + ); + }) +} + +export const HeadlessCheckoutScreen = (props: any) => { + const [isLoading, setIsLoading] = useState(true); + const [clientSession, setClientSession] = useState(null); + const [paymentMethods, setPaymentMethods] = useState(undefined); + const [paymentMethodsAssets, setPaymentMethodsAssets] = useState(undefined); + + const updateLogs = (str: string) => { + console.log(str); + const currentLog = log; + const combinedLog = currentLog + "\n" + str; + log = combinedLog; + } + + let settings: PrimerSettings = { + paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + }, + }, + debugOptions: { + is3DSSanityCheckEnabled: false + }, + headlessUniversalCheckoutCallbacks: { + onAvailablePaymentMethodsLoad: (availablePaymentMethods => { + updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad\n${JSON.stringify(availablePaymentMethods, null, 2)}\n`); + setIsLoading(false); + }), + onPreparationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPreparationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onPaymentMethodShow: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPaymentMethodShow\npaymentMethodType: ${paymentMethodType}\n`); + }, + onTokenizationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onTokenizationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onBeforeClientSessionUpdate: () => { + updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate\n`); + }, + onClientSessionUpdate: (clientSession) => { + updateLogs(`\nโ„น๏ธ onClientSessionUpdate\nclientSession: ${JSON.stringify(clientSession, null, 2)}\n`); + }, + onBeforePaymentCreate: (tmpCheckoutData, handler) => { + updateLogs(`\nโ„น๏ธ onBeforePaymentCreate\ncheckoutData: ${JSON.stringify(tmpCheckoutData, null, 2)}\n`); + handler.continuePaymentCreation(); + }, + onCheckoutAdditionalInfo: (additionalInfo) => { + merchantCheckoutAdditionalInfo = additionalInfo; + updateLogs(`\nโ„น๏ธ onCheckoutPending\nadditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}\n`); + setIsLoading(false); + }, + onCheckoutComplete: (checkoutData) => { + merchantCheckoutData = checkoutData; + updateLogs(`\nโœ… onCheckoutComplete\ncheckoutData: ${JSON.stringify(checkoutData, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onCheckoutPending: (checkoutAdditionalInfo) => { + merchantCheckoutAdditionalInfo = checkoutAdditionalInfo; + updateLogs(`\nโœ… onCheckoutPending\nadditionalInfo: ${JSON.stringify(checkoutAdditionalInfo, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onTokenizationSuccess: async (paymentMethodTokenData, handler) => { + updateLogs(`\nโ„น๏ธ onTokenizationSuccess\npaymentMethodTokenData: ${JSON.stringify(paymentMethodTokenData, null, 2)}\n`); + setIsLoading(false); + + try { + const payment: IPayment = await createPayment(paymentMethodTokenData.token); + merchantPayment = payment; + + if (payment.requiredAction && payment.requiredAction.clientToken) { + merchantPaymentId = payment.id; + + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + updateLogs("\nโš ๏ธ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + } + + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + + } else { + setIsLoading(false); + handler.complete(); + navigateToResultScreen(); + } + + } catch (err) { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + handler.complete(); + + console.error(err); + navigateToResultScreen(); + } + }, + onCheckoutResume: async (resumeToken, handler) => { + updateLogs(`\nโ„น๏ธ onCheckoutResume\nresumeToken: ${resumeToken}`); + + try { + if (merchantPaymentId) { + const payment: IPayment = await resumePayment(merchantPaymentId, resumeToken); + merchantPayment = payment; + handler.complete(); + updateLogs(`\nโœ… Payment resumed\npayment: ${JSON.stringify(payment, null, 2)}`); + setIsLoading(false); + navigateToResultScreen(); + merchantPaymentId = null; + + } else { + const err = new Error("Invalid value for paymentId"); + throw err; + } + + } catch (err) { + console.error(err); + handler.complete(); + updateLogs(`\n๐Ÿ›‘ Payment resume\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + + merchantPaymentId = null; + navigateToResultScreen(); + } + }, + onError: (err) => { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ onError\nerror: ${JSON.stringify(err, null, 2)}`); + console.error(err); + setIsLoading(false); + navigateToResultScreen(); + } + } + }; + + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + } + } + + useEffect(() => { + createClientSessionIfNeeded() + .then((session) => { + setIsLoading(false); + startHUC(session.clientToken); + }) + .catch(err => { + setIsLoading(false); + console.error(err); + }); + }, []); + + const createClientSessionIfNeeded = (): Promise => { + return new Promise(async (resolve, reject) => { + try { + if (clientSession === null) { + const newClientSession = await createClientSession(); + setClientSession(newClientSession); + resolve(newClientSession); + } else { + resolve(clientSession); + } + } catch (err) { + reject(err); + } + }); + } + + const navigateToResultScreen = async () => { + try { + props.navigation.navigate("Result", { + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantCheckoutData: merchantCheckoutData, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: log + }); + + setClientSession(null); + setIsLoading(true); + await createClientSessionIfNeeded(); + + } catch (err) { + console.error(err); + } + + setIsLoading(false); + } + + const startHUC = async (clientToken: string) => { + try { + const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + setPaymentMethods(availablePaymentMethods); + // updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(availablePaymentMethods, null, 2)}`); + const assetsManager = new AssetsManager(); + const assets = await assetsManager.getPaymentMethodAssets(); + setPaymentMethodsAssets(assets); + + } catch (err) { + console.error(err); + } + } + + const paymentMethodButtonTapped = async (paymentMethodType: string) => { + try { + const paymentMethod = paymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); + + if (!paymentMethod) { + return; + } + + if (paymentMethod.paymentMethodManagerCategories.length === 1) { + pay(paymentMethod, paymentMethod.paymentMethodManagerCategories[0]); + + } else { + const selectedImplementationType = await selectImplemetationType(paymentMethod); + pay(paymentMethod, selectedImplementationType); + } + } catch (err) { + updateLogs(`\n๐Ÿ›‘ paymentMethodButtonTapped\nerror: ${JSON.stringify(err, null, 2)}`); + console.error(err); + } + }; + + const pay = async (paymentMethod: PaymentMethod, implementationType: string) => { + try { + if (implementationType === "NATIVE_UI") { + setIsLoading(true); + await createClientSessionIfNeeded(); + const nativeUIManager = new NativeUIManager(); + await nativeUIManager.configure(paymentMethod.paymentMethodType); + + if (paymentMethod.paymentMethodType === "KLARNA") { + await nativeUIManager.showPaymentMethod(SessionIntent.VAULT); + } else { + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + } + + } else if (implementationType === "RAW_DATA") { + await createClientSessionIfNeeded(); + + if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { + props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL_OUTLETS") { + props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { + props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { + props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); + } + + } else { + Alert.alert( + "Warning!", + `${implementationType} is not supported on Headless Universal Checkout yet.`, + [ + { + text: "Cancel", + style: "cancel", + onPress: () => { + + } + } + ], + { + cancelable: true, + } + ); + } + + } catch (err) { + updateLogs(`\n๐Ÿ›‘ pay\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + console.error(err); + } + } + + const renderPaymentMethodsUI = () => { + if (!paymentMethodsAssets) { + return null; + } + + return ( + + {paymentMethodsAssets.map((paymentMethodsAsset) => { + return ( + { + paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); + }} + > + + + ); + })} + + ); + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + return ( + + {renderPaymentMethodsUI()} + {renderLoadingOverlay()} + + ); +}; diff --git a/ReactNativeExample/src/screens/NewLineItemSreen.tsx b/ReactNativeExample/src/screens/NewLineItemSreen.tsx new file mode 100644 index 000000000..792536a9a --- /dev/null +++ b/ReactNativeExample/src/screens/NewLineItemSreen.tsx @@ -0,0 +1,134 @@ + +import * as React from 'react'; +import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; +import TextField from '../components/TextField'; +import { makeRandomString } from '../helpers/helpers'; +import type { IClientSessionLineItem } from '../models/IClientSessionRequestBody'; +import { styles } from '../styles'; + +export interface NewLineItemScreenProps { + lineItem?: IClientSessionLineItem; + onAddLineItem?: (lineItem: IClientSessionLineItem) => void; + onEditLineItem?: (lineItem: IClientSessionLineItem) => void; + onRemoveLineItem?: (lineItem: IClientSessionLineItem) => void; +} + +const NewLineItemScreen = (props: any) => { + const newLineItemScreenProps: NewLineItemScreenProps | undefined = props.route.params; + const [isEditing, setIsEditing] = React.useState(newLineItemScreenProps?.lineItem === undefined ? false : true); + const [name, setName] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.description); + const [quantity, setQuantity] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.quantity); + const [unitPrice, setUnitPrice] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.amount); + + return ( + + { + setName(text); + }} + /> + { + const tmpQuantity = Number(text); + if (!isNaN(tmpQuantity) && tmpQuantity > 0) { + setQuantity(tmpQuantity); + } else { + setQuantity(undefined); + } + }} + /> + { + const tmpUnitPrice = Number(text); + if (!isNaN(tmpUnitPrice) && tmpUnitPrice > 0) { + setUnitPrice(tmpUnitPrice); + } else { + setUnitPrice(undefined); + } + }} + /> + {/* */} + { + if (isEditing && newLineItemScreenProps?.lineItem) { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onEditLineItem) { + newLineItemScreenProps.onEditLineItem(newLineItem); + } + + props.navigation.goBack(); + } + } else { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onAddLineItem) { + newLineItemScreenProps.onAddLineItem(newLineItem); + } + + props.navigation.goBack(); + } + } + }} + > + + { + isEditing ? "Edit Line Item" : "Add Line Item" + } + + + + { + newLineItemScreenProps?.lineItem === undefined ? null : + { + if (newLineItemScreenProps.onRemoveLineItem && newLineItemScreenProps.lineItem) { + newLineItemScreenProps.onRemoveLineItem(newLineItemScreenProps.lineItem); + } + + props.navigation.goBack(); + }} + > + + Remove Line Item + + + } + + + ); +}; + +export default NewLineItemScreen; diff --git a/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx b/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx new file mode 100644 index 000000000..38c708091 --- /dev/null +++ b/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx @@ -0,0 +1,243 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawBancontactCardRedirectData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawBancontactCardRedirectData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cardholderName: cardholderName || "" + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + setRawData(text, null, null); + }} + /> + ); + } else if (et === InputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + setRawData(null, text, null); + }} + /> + ); + } else if (et === InputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + setRawData(null, null, text) + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawAdyenBancontactCardScreen; diff --git a/ReactNativeExample/src/screens/RawCardDataScreen.tsx b/ReactNativeExample/src/screens/RawCardDataScreen.tsx new file mode 100644 index 000000000..a750a8257 --- /dev/null +++ b/ReactNativeExample/src/screens/RawCardDataScreen.tsx @@ -0,0 +1,264 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawCardData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawCardDataScreen = (props: RawDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cvv, setCvv] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }); + + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCvv: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawCardData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cvv: cvv || "", + cardholderName: cardholderName + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCvv) { + rawData.cvv = tmpCvv; + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + setRawData(text, null, null, null); + }} + /> + ); + } else if (et === InputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + setRawData(null, text, null, null); + }} + /> + ); + } else if (et === InputElementType.CVV) { + return ( + { + setCvv(text); + setRawData(null, null, text, null); + }} + /> + ); + } else if (et === InputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + setRawData(null, null, null, text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawCardDataScreen; diff --git a/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx b/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx new file mode 100644 index 000000000..bf7eaa2a0 --- /dev/null +++ b/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx @@ -0,0 +1,174 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawPhoneNumberData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +const rawDataManager = new RawDataManager(); + +const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [phoneNumber, setPhoneNumber] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpPhoneNumber: string) => { + let rawData: RawPhoneNumberData = { + phoneNumber: tmpPhoneNumber + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.PHONE_NUMBER) { + return ( + { + setPhoneNumber(text); + setRawData(text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawPhoneNumberDataScreen; diff --git a/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx b/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx new file mode 100644 index 000000000..f14ee9cb2 --- /dev/null +++ b/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx @@ -0,0 +1,184 @@ +import React, { useEffect, useState } from 'react'; +import { + FlatList, + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawRetailerData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +const rawDataManager = new RawDataManager(); + +const RawRetailOutletScreen = (props: RawDataScreenProps) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [retailers, setRetailers] = useState(undefined); + const [selectedRetailOutletId, setSelectedRetailOutletId] = useState(undefined); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + const response = await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }); + + if (response?.initializationData) { + //@ts-ignore + const retailers: any[] = response.initializationData.result; + setRetailers(retailers); + } + + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpRetailOutletId: string) => { + let rawData: RawRetailerData = { + id: tmpRetailOutletId + } + + setSelectedRetailOutletId(tmpRetailOutletId); + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!retailers) { + return null; + } else { + return ( + item.id} + renderItem={(data) => { + return ( + { + setRawData(data.item.id); + }} + > + + {data.item.name} + + + ) + }} + /> + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawRetailOutletScreen; diff --git a/ReactNativeExample/src/screens/ResultScreen.tsx b/ReactNativeExample/src/screens/ResultScreen.tsx new file mode 100644 index 000000000..3c4ca9d64 --- /dev/null +++ b/ReactNativeExample/src/screens/ResultScreen.tsx @@ -0,0 +1,65 @@ +import * as React from 'react'; +import { + ScrollView, + Text, + useColorScheme, + View, +} from 'react-native'; + +import { + Colors, +} from 'react-native/Libraries/NewAppScreen'; + +const ResultScreen = (props: any) => { + const isDarkMode = useColorScheme() === 'dark'; + + const backgroundStyle = { + backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, + }; + + const paramsWithoutLogs: any = {}; + + if (props.route.params?.merchantCheckoutData) { + paramsWithoutLogs.merchantCheckoutData = props.route.params.merchantCheckoutData; + } + + if (props.route.params?.merchantCheckoutAdditionalInfo) { + paramsWithoutLogs.merchantCheckoutAdditionalInfo = props.route.params.merchantCheckoutAdditionalInfo; + } + + if (props.route.params?.merchantPayment) { + paramsWithoutLogs.merchantPayment = props.route.params.merchantPayment; + } + + if (props.route.params?.merchantPrimerError) { + paramsWithoutLogs.merchantPrimerError = props.route.params.merchantPrimerError; + } + + let logs: string | undefined = props.route.params?.logs; + + return ( + + + + + {JSON.stringify(paramsWithoutLogs, null, 4)} + + + + { + !logs ? null : + + + {logs} + + + } + + + + ); +}; + +export default ResultScreen; diff --git a/ReactNativeExample/src/screens/SettingsScreen.tsx b/ReactNativeExample/src/screens/SettingsScreen.tsx new file mode 100644 index 000000000..35ab07213 --- /dev/null +++ b/ReactNativeExample/src/screens/SettingsScreen.tsx @@ -0,0 +1,800 @@ +import * as React from 'react'; +import { + ScrollView, + Text, + TouchableOpacity, + useColorScheme, + View, +} from 'react-native'; +import { + Colors, +} from 'react-native/Libraries/NewAppScreen'; +import { styles } from '../styles'; +import SegmentedControl from '@react-native-segmented-control/segmented-control'; +import { Picker } from "@react-native-picker/picker"; +import { Environment, makeEnvironmentFromIntVal, makePaymentHandlingFromIntVal, PaymentHandling } from '../network/Environment'; +import { appPaymentParameters, IClientSessionAddress, IClientSessionCustomer, IClientSessionLineItem, IClientSessionOrder, IClientSessionPaymentMethod, IClientSessionPaymentMethodOptions, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; +import { Switch } from 'react-native'; +import { FlatList } from 'react-native'; +import TextField from '../components/TextField'; +import type { NewLineItemScreenProps } from './NewLineItemSreen'; + +export interface AppPaymentParameters { + environment: Environment; + paymentHandling: PaymentHandling; + clientSessionRequestBody: IClientSessionRequestBody; + merchantName?: string; +} + +export let customApiKey: string | undefined// = "7ecce42b-b641-4c7d-a605-f786f3e201ce"; +export let customClientToken: string | undefined; + +// @ts-ignore +const SettingsScreen = ({ navigation }) => { + const isDarkMode = useColorScheme() === 'dark'; + const [environment, setEnvironment] = React.useState(Environment.Sandbox); + const [apiKey, setApiKey] = React.useState(customApiKey); + const [clientToken, setClientToken] = React.useState(undefined); + const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); + const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); + const [currency, setCurrency] = React.useState("EUR"); + const [countryCode, setCountryCode] = React.useState("PT"); + const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); + + const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); + + const [isCustomerApplied, setIsCustomerApplied] = React.useState(appPaymentParameters.clientSessionRequestBody.customer !== undefined); + const [customerId, setCustomerId] = React.useState(appPaymentParameters.clientSessionRequestBody.customerId); + const [firstName, setFirstName] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.firstName); + const [lastName, setLastName] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.lastName); + const [email, setEmail] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.emailAddress); + const [phoneNumber, setPhoneNumber] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.mobileNumber); + const [nationalDocumentId, setNationalDocumentId] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.nationalDocumentId); + const [isAddressApplied, setIsAddressApplied] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress !== undefined); + const [addressLine1, setAddressLine1] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.addressLine1); + const [addressLine2, setAddressLine2] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.addressLine2); + const [postalCode, setPostalCode] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.postalCode); + const [city, setCity] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.city); + const [state, setState] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.state); + const [customerAddressCountryCode, setCustomerAddressCountryCode] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.countryCode); + + const [isSurchargeApplied, setIsSurchargeApplied] = React.useState(true); + const [applePaySurcharge, setApplePaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.APPLE_PAY?.surcharge.amount); + const [googlePaySurcharge, setGooglePaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.GOOGLE_PAY?.surcharge.amount); + const [adyenGiropaySurcharge, setAdyenGiropaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_GIROPAY?.surcharge.amount); + const [adyenIdealSurcharge, setAdyenIdealSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_IDEAL?.surcharge.amount); + const [adyenSofortSurcharge, setAdyenSofortySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_SOFORT?.surcharge.amount); + const [visaSurcharge, setVisaSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.PAYMENT_CARD?.networks.VISA?.surcharge.amount); + const [masterCardSurcharge, setMasterCardSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.PAYMENT_CARD?.networks.MASTERCARD?.surcharge.amount); + + const backgroundStyle = { + backgroundColor: isDarkMode ? Colors.black : Colors.white + }; + + const renderEnvironmentSection = () => { + return ( + + + Environment + + { + const selectedIndex = event.nativeEvent.selectedSegmentIndex; + let selectedEnvironment = makeEnvironmentFromIntVal(selectedIndex); + setEnvironment(selectedEnvironment); + }} + /> + { + setApiKey(text); + customApiKey = text; + }} + /> + { + setClientToken(text); + }} + /> + + ) + } + + const renderPaymentHandlingSection = () => { + return ( + + + Payment Handling + + { + const selectedIndex = event.nativeEvent.selectedSegmentIndex; + let selectedPaymentHandling = makePaymentHandlingFromIntVal(selectedIndex); + setPaymentHandling(selectedPaymentHandling); + }} + /> + + ); + } + + const renderOrderSection = () => { + return ( + + + Order + + + + + Currency & Country Code + + + { + setCurrency(itemValue); + }} + > + + + + + + + + + + + + + { + setCountryCode(itemValue); + }} + > + + + + + + + + + + + + + + + + + + + {renderLineItems()} + + + { + setOrderId(text); + }} + /> + + + ); + } + + const renderLineItems = () => { + return ( + + + + Line Items + + + { + const newLineItemsScreenProps: NewLineItemScreenProps = { + onAddLineItem: (lineItem) => { + const currentLineItems = [...lineItems]; + currentLineItems.push(lineItem); + setLineItems(currentLineItems); + } + } + + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }} + > + + +Add Line Item + + + + ( + { + const newLineItemsScreenProps: NewLineItemScreenProps = { + lineItem: item, + onEditLineItem: (editedLineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(item, 0); + currentLineItems[index] = editedLineItem; + setLineItems(currentLineItems); + }, + onRemoveLineItem: (lineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(lineItem, 0); + if (index > -1) { + currentLineItems.splice(index, 1); + } + setLineItems(currentLineItems); + } + } + + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }} + > + {item.description} {`x${item.quantity}`} + + {item.amount} + + )} + ListFooterComponent={ + + Total + + {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} + + } + /> + + ); + } + + const renderRequiredSettings = () => { + return ( + + + Required Settings + + + The settings below cannot be left blank. + + + {renderEnvironmentSection()} + + {renderPaymentHandlingSection()} + + {renderOrderSection()} + + ); + } + + const renderSurchargeSection = () => { + return ( + + + + Surcharge + + + { + setIsSurchargeApplied(val); + }} + /> + + { + !isSurchargeApplied ? null : + + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setApplePaySurcharge(tmpSurcharge); + } else { + setApplePaySurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setGooglePaySurcharge(tmpSurcharge); + } else { + setGooglePaySurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenGiropaySurcharge(tmpSurcharge); + } else { + setAdyenGiropaySurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenIdealSurcharge(tmpSurcharge); + } else { + setAdyenIdealSurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenSofortySurcharge(tmpSurcharge); + } else { + setAdyenSofortySurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setVisaSurcharge(tmpSurcharge); + } else { + setVisaSurcharge(undefined); + } + }} + /> + { + const tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setMasterCardSurcharge(tmpSurcharge); + } else { + setMasterCardSurcharge(undefined); + } + }} + /> + + } + + + ); + } + + const renderCustomerSection = () => { + return ( + + + + Customer + + + { + setIsCustomerApplied(val); + }} + /> + + + { + !isCustomerApplied ? null : + + { + setCustomerId(text); + }} + /> + { + setFirstName(text); + }} + /> + { + setLastName(text); + }} + /> + { + setEmail(text); + }} + /> + { + setPhoneNumber(text); + }} + /> + { + setNationalDocumentId(text); + }} + /> + + + + + Address + + + { + setIsAddressApplied(val); + }} + /> + + { + !isAddressApplied ? null : + + { + setAddressLine1(text); + }} + /> + { + setAddressLine2(text); + }} + /> + { + setPostalCode(text); + }} + /> + { + setCity(text); + }} + /> + { + setState(text); + }} + /> + { + setCustomerAddressCountryCode(text); + }} + /> + + } + + + + } + + + ); + }; + + const renderMerchantSection = () => { + return ( + + + Merchant Name + + { + setMerchantName(text); + }} + /> + + ); + } + + const renderOptionalSettings = () => { + return ( + + + Optional Settings + + + These settings are not required, however some payment methods may need them. + + {renderMerchantSection()} + {renderCustomerSection()} + {renderSurchargeSection()} + + ); + } + + const renderActions = () => { + return ( + + {/* { + updateAppPaymentParameters(); + console.log(appPaymentParameters); + navigation.navigate('Checkout'); + }} + > + + Primer SDK + + */} + + { + updateAppPaymentParameters(); + console.log(appPaymentParameters); + navigation.navigate('HUC'); + }} + > + + Headless Universal Checkout + + + + ); + } + + const updateAppPaymentParameters = () => { + appPaymentParameters.merchantName = merchantName; + appPaymentParameters.environment = environment; + appPaymentParameters.paymentHandling = paymentHandling; + + const currentClientSessionRequestBody: IClientSessionRequestBody = { ...appPaymentParameters.clientSessionRequestBody }; + currentClientSessionRequestBody.currencyCode = currency; + + const currentClientSessionOrder: IClientSessionOrder = { ...currentClientSessionRequestBody.order }; + currentClientSessionOrder.countryCode = countryCode; + currentClientSessionOrder.lineItems = lineItems + + currentClientSessionRequestBody.order = currentClientSessionOrder; + + currentClientSessionRequestBody.customerId = customerId; + + let currentCustomer: IClientSessionCustomer | undefined = { ...appPaymentParameters.clientSessionRequestBody.customer }; + if (isCustomerApplied) { + currentCustomer.firstName = firstName; + currentCustomer.lastName = lastName; + currentCustomer.emailAddress = email; + currentCustomer.mobileNumber = phoneNumber; + + let currentAddress: IClientSessionAddress | undefined = { ...appPaymentParameters.clientSessionRequestBody.customer?.billingAddress } + if (isAddressApplied) { + currentAddress.firstName = firstName; + currentAddress.lastName = lastName; + currentAddress.addressLine1 = addressLine1; + currentAddress.addressLine2 = addressLine2; + currentAddress.postalCode = postalCode; + currentAddress.city = city; + currentAddress.state = state; + currentAddress.countryCode = customerAddressCountryCode; + + } else { + currentAddress = undefined; + } + + currentCustomer.billingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; + currentCustomer.shippingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; + + } else { + currentClientSessionRequestBody.customerId = undefined; + currentCustomer = undefined; + } + + currentClientSessionRequestBody.customer = Object.keys(currentCustomer || {}).length === 0 ? undefined : currentCustomer; + + const currentPaymentMethod: IClientSessionPaymentMethod = { ...currentClientSessionRequestBody.paymentMethod } + let currentPaymentMethodOptions: IClientSessionPaymentMethodOptions | undefined = { ...currentPaymentMethod.options } + + if (isSurchargeApplied) { + if (applePaySurcharge) { + currentPaymentMethodOptions.APPLE_PAY = { + surcharge: { + amount: applePaySurcharge + } + } + } else { + currentPaymentMethodOptions.APPLE_PAY = undefined; + } + + if (googlePaySurcharge) { + currentPaymentMethodOptions.GOOGLE_PAY = { + surcharge: { + amount: googlePaySurcharge + } + } + } else { + currentPaymentMethodOptions.GOOGLE_PAY = undefined; + } + + if (adyenGiropaySurcharge) { + currentPaymentMethodOptions.ADYEN_GIROPAY = { + surcharge: { + amount: adyenGiropaySurcharge + } + } + } else { + currentPaymentMethodOptions.ADYEN_GIROPAY = undefined; + } + + if (visaSurcharge) { + currentPaymentMethodOptions.PAYMENT_CARD = { + networks: { + VISA: { + surcharge: { + amount: visaSurcharge + } + } + } + } + } else { + currentPaymentMethodOptions.PAYMENT_CARD = undefined; + } + } else { + currentPaymentMethodOptions = undefined; + } + + + currentPaymentMethod.options = Object.keys(currentPaymentMethodOptions || {}).length === 0 ? undefined : currentPaymentMethodOptions; + currentClientSessionRequestBody.paymentMethod = Object.keys(currentPaymentMethod).length === 0 ? undefined : currentPaymentMethod; + + appPaymentParameters.clientSessionRequestBody = currentClientSessionRequestBody; + } + + return ( + + {/*

*/} + + {renderRequiredSettings()} + {renderOptionalSettings()} + + + + {renderActions()} + + + ); +}; + +export default SettingsScreen; diff --git a/ReactNativeExample/src/styles.tsx b/ReactNativeExample/src/styles.tsx new file mode 100644 index 000000000..1cad1bae3 --- /dev/null +++ b/ReactNativeExample/src/styles.tsx @@ -0,0 +1,54 @@ +import { StyleSheet } from "react-native"; + +export const styles = StyleSheet.create({ + sectionContainer: { + marginTop: 32, + // paddingHorizontal: 24, + }, + sectionTitle: { + fontSize: 24, + fontWeight: '600', + marginBottom: 12 + }, + heading1: { + fontSize: 18, + fontWeight: '600', + }, + heading2: { + fontSize: 14, + fontWeight: '700', + }, + heading3: { + fontSize: 17, + fontWeight: '400', + }, + sectionDescription: { + marginTop: 8, + fontSize: 18, + fontWeight: '400', + }, + highlight: { + fontWeight: '700', + }, + button: { + height: 50, + justifyContent: 'center', + alignItems: 'center', + borderRadius: 4 + }, + buttonText: { + fontSize: 17 + }, + textInput: { + height: 40, + paddingHorizontal: 4, + borderColor: 'black', + borderWidth: 1, + borderRadius: 4 + }, + textFieldTitle: { + fontSize: 14, + color: 'black', + fontWeight: '600' + } + }); \ No newline at end of file diff --git a/ReactNativeExample/tsconfig.json b/ReactNativeExample/tsconfig.json new file mode 100644 index 000000000..0cc9cdd69 --- /dev/null +++ b/ReactNativeExample/tsconfig.json @@ -0,0 +1,10 @@ +// prettier-ignore +{ + "extends": "@tsconfig/react-native/tsconfig.json", /* Recommended React Native TSConfig base */ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig.json to read more about this file */ + + /* Completeness */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +} diff --git a/ReactNativeExample/yarn.lock b/ReactNativeExample/yarn.lock new file mode 100644 index 000000000..873afd05c --- /dev/null +++ b/ReactNativeExample/yarn.lock @@ -0,0 +1,7307 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== + dependencies: + "@babel/highlight" "^7.10.4" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + dependencies: + "@babel/highlight" "^7.18.6" + +"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.19.4", "@babel/compat-data@^7.20.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.1.tgz#f2e6ef7790d8c8dbf03d379502dcc246dcce0b30" + integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== + +"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.7.5": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.19.6.tgz#7122ae4f5c5a37c0946c066149abd8e75f81540f" + integrity sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg== + dependencies: + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.19.6" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-module-transforms" "^7.19.6" + "@babel/helpers" "^7.19.4" + "@babel/parser" "^7.19.6" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" + +"@babel/generator@^7.14.0", "@babel/generator@^7.19.6", "@babel/generator@^7.20.1": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.1.tgz#ef32ecd426222624cbd94871a7024639cf61a9fa" + integrity sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg== + dependencies: + "@babel/types" "^7.20.0" + "@jridgewell/gen-mapping" "^0.3.2" + jsesc "^2.5.1" + +"@babel/helper-annotate-as-pure@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" + integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz#acd4edfd7a566d1d51ea975dff38fd52906981bb" + integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.18.6" + "@babel/types" "^7.18.9" + +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.19.0", "@babel/helper-compilation-targets@^7.19.3": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" + integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== + dependencies: + "@babel/compat-data" "^7.20.0" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.21.3" + semver "^6.3.0" + +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz#bfd6904620df4e46470bae4850d66be1054c404b" + integrity sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz#7976aca61c0984202baca73d84e2337a5424a41b" + integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + regexpu-core "^5.1.0" + +"@babel/helper-define-polyfill-provider@^0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz#8612e55be5d51f0cd1f36b4a5a83924e89884b7a" + integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== + dependencies: + "@babel/helper-compilation-targets" "^7.17.7" + "@babel/helper-plugin-utils" "^7.16.7" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" + +"@babel/helper-environment-visitor@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + +"@babel/helper-explode-assignable-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz#41f8228ef0a6f1a036b8dfdfec7ce94f9a6bc096" + integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" + integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== + dependencies: + "@babel/template" "^7.18.10" + "@babel/types" "^7.19.0" + +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-member-expression-to-functions@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" + integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== + dependencies: + "@babel/types" "^7.18.9" + +"@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-module-transforms@^7.19.6": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz#6c52cc3ac63b70952d33ee987cbee1c9368b533f" + integrity sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.19.4" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.19.1" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.6" + "@babel/types" "^7.19.4" + +"@babel/helper-optimise-call-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" + integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf" + integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== + +"@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" + integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-wrap-function" "^7.18.9" + "@babel/types" "^7.18.9" + +"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" + integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/traverse" "^7.19.1" + "@babel/types" "^7.19.0" + +"@babel/helper-simple-access@^7.19.4": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz#be553f4951ac6352df2567f7daa19a0ee15668e7" + integrity sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg== + dependencies: + "@babel/types" "^7.19.4" + +"@babel/helper-skip-transparent-expression-wrappers@^7.18.9": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" + integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== + dependencies: + "@babel/types" "^7.20.0" + +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-string-parser@^7.19.4": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" + integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== + +"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" + integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== + +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + +"@babel/helper-wrap-function@^7.18.9": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz#89f18335cff1152373222f76a4b37799636ae8b1" + integrity sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg== + dependencies: + "@babel/helper-function-name" "^7.19.0" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" + +"@babel/helpers@^7.19.4": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.1.tgz#2ab7a0fcb0a03b5bf76629196ed63c2d7311f4c9" + integrity sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg== + dependencies: + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.20.1" + "@babel/types" "^7.20.0" + +"@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.1.tgz#3e045a92f7b4623cafc2425eddcb8cf2e54f9cc5" + integrity sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw== + +"@babel/plugin-proposal-async-generator-functions@^7.0.0": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" + integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-remap-async-to-generator" "^7.18.9" + "@babel/plugin-syntax-async-generators" "^7.8.4" + +"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-proposal-export-default-from@^7.0.0": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206" + integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-export-default-from" "^7.18.6" + +"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" + integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + +"@babel/plugin-proposal-object-rest-spread@^7.0.0": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz#a8fc86e8180ff57290c91a75d83fe658189b642d" + integrity sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q== + dependencies: + "@babel/compat-data" "^7.19.4" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.18.8" + +"@babel/plugin-proposal-optional-catch-binding@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" + integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + +"@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" + integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-bigint@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.8.3": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-dynamic-import@^7.0.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" + integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz#8df076711a4818c4ce4f23e61d622b0ba2ff84bc" + integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" + integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-import-meta@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.0.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-top-level-await@^7.8.3": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-typescript@^7.20.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" + integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-arrow-functions@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" + integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-async-to-generator@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" + integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== + dependencies: + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-remap-async-to-generator" "^7.18.6" + +"@babel/plugin-transform-block-scoped-functions@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" + integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-block-scoping@^7.0.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz#91fe5e6ffc9ba13cb6c95ed7f0b1204f68c988c5" + integrity sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-classes@^7.0.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz#0e61ec257fba409c41372175e7c1e606dc79bb20" + integrity sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-compilation-targets" "^7.19.0" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.0.0": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" + integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + +"@babel/plugin-transform-destructuring@^7.0.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz#712829ef4825d9cc04bb379de316f981e9a6f648" + integrity sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-exponentiation-operator@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz#421c705f4521888c65e91fdd1af951bfefd4dacd" + integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" + integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-flow" "^7.18.6" + +"@babel/plugin-transform-for-of@^7.0.0": + version "7.18.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" + integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-function-name@^7.0.0": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" + integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== + dependencies: + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + +"@babel/plugin-transform-literals@^7.0.0": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" + integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + +"@babel/plugin-transform-member-expression-literals@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" + integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" + integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== + dependencies: + "@babel/helper-module-transforms" "^7.19.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-simple-access" "^7.19.4" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.0.0": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz#ec7455bab6cd8fb05c525a94876f435a48128888" + integrity sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-object-super@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" + integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.6" + +"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.18.8": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz#9a5aa370fdcce36f110455e9369db7afca0f9eeb" + integrity sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-property-literals@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" + integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-react-display-name@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" + integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-react-jsx-self@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz#3849401bab7ae8ffa1e3e5687c94a753fc75bda7" + integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-react-jsx-source@^7.0.0": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz#88578ae8331e5887e8ce28e4c9dc83fb29da0b86" + integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-react-jsx@^7.0.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" + integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-jsx" "^7.18.6" + "@babel/types" "^7.19.0" + +"@babel/plugin-transform-runtime@^7.0.0": + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz#9d2a9dbf4e12644d6f46e5e75bfbf02b5d6e9194" + integrity sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw== + dependencies: + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + babel-plugin-polyfill-corejs2 "^0.3.3" + babel-plugin-polyfill-corejs3 "^0.6.0" + babel-plugin-polyfill-regenerator "^0.4.1" + semver "^6.3.0" + +"@babel/plugin-transform-shorthand-properties@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" + integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-spread@^7.0.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" + integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + +"@babel/plugin-transform-sticky-regex@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz#c6706eb2b1524028e317720339583ad0f444adcc" + integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-template-literals@^7.0.0": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" + integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + +"@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz#2c7ec62b8bfc21482f3748789ba294a46a375169" + integrity sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.19.0" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-typescript" "^7.20.0" + +"@babel/plugin-transform-unicode-regex@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz#194317225d8c201bbae103364ffe9e2cea36cdca" + integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/preset-flow@^7.13.13": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.18.6.tgz#83f7602ba566e72a9918beefafef8ef16d2810cb" + integrity sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + "@babel/plugin-transform-flow-strip-types" "^7.18.6" + +"@babel/preset-typescript@^7.13.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz#ce64be3e63eddc44240c6358daefac17b3186399" + integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + "@babel/plugin-transform-typescript" "^7.18.6" + +"@babel/register@^7.13.16": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.18.9.tgz#1888b24bc28d5cc41c412feb015e9ff6b96e439c" + integrity sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw== + dependencies: + clone-deep "^4.0.1" + find-cache-dir "^2.0.0" + make-dir "^2.1.0" + pirates "^4.0.5" + source-map-support "^0.5.16" + +"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.1.tgz#1148bb33ab252b165a06698fde7576092a78b4a9" + integrity sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg== + dependencies: + regenerator-runtime "^0.13.10" + +"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" + integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.10" + "@babel/types" "^7.18.10" + +"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.19.6", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.1.tgz#9b15ccbf882f6d107eeeecf263fbcdd208777ec8" + integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.20.1" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.20.1" + "@babel/types" "^7.20.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.0.tgz#52c94cf8a7e24e89d2a194c25c35b17a64871479" + integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg== + dependencies: + "@babel/helper-string-parser" "^7.19.4" + "@babel/helper-validator-identifier" "^7.19.1" + to-fast-properties "^2.0.0" + +"@bcoe/v8-coverage@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + +"@cnakazawa/watch@^1.0.3": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" + integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== + dependencies: + exec-sh "^0.3.2" + minimist "^1.2.0" + +"@eslint/eslintrc@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" + integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" + +"@hapi/hoek@^9.0.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" + integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== + +"@hapi/topo@^5.0.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" + integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@humanwhocodes/config-array@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" + integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== + dependencies: + "@humanwhocodes/object-schema" "^1.2.0" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/object-schema@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/console@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2" + integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "^26.6.2" + jest-util "^26.6.2" + slash "^3.0.0" + +"@jest/core@^26.6.3": + version "26.6.3" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" + integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== + dependencies: + "@jest/console" "^26.6.2" + "@jest/reporters" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-changed-files "^26.6.2" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-resolve-dependencies "^26.6.3" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + jest-watcher "^26.6.2" + micromatch "^4.0.2" + p-each-series "^2.1.0" + rimraf "^3.0.0" + slash "^3.0.0" + strip-ansi "^6.0.0" + +"@jest/create-cache-key-function@^29.0.3": + version "29.2.1" + resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz#5f168051001ffea318b720cd6062daaf0b074913" + integrity sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ== + dependencies: + "@jest/types" "^29.2.1" + +"@jest/environment@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c" + integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== + dependencies: + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + +"@jest/fake-timers@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad" + integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== + dependencies: + "@jest/types" "^26.6.2" + "@sinonjs/fake-timers" "^6.0.1" + "@types/node" "*" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-util "^26.6.2" + +"@jest/globals@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a" + integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/types" "^26.6.2" + expect "^26.6.2" + +"@jest/reporters@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" + integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.2.4" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^4.0.3" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + jest-haste-map "^26.6.2" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + slash "^3.0.0" + source-map "^0.6.0" + string-length "^4.0.1" + terminal-link "^2.0.0" + v8-to-istanbul "^7.0.0" + optionalDependencies: + node-notifier "^8.0.0" + +"@jest/schemas@^29.0.0": + version "29.0.0" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a" + integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== + dependencies: + "@sinclair/typebox" "^0.24.1" + +"@jest/source-map@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535" + integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== + dependencies: + callsites "^3.0.0" + graceful-fs "^4.2.4" + source-map "^0.6.0" + +"@jest/test-result@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18" + integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== + dependencies: + "@jest/console" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + +"@jest/test-sequencer@^26.6.3": + version "26.6.3" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" + integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== + dependencies: + "@jest/test-result" "^26.6.2" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" + +"@jest/transform@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b" + integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^26.6.2" + babel-plugin-istanbul "^6.0.0" + chalk "^4.0.0" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-regex-util "^26.0.0" + jest-util "^26.6.2" + micromatch "^4.0.2" + pirates "^4.0.1" + slash "^3.0.0" + source-map "^0.6.1" + write-file-atomic "^3.0.0" + +"@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + +"@jest/types@^27.5.1": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" + +"@jest/types@^29.2.1": + version "29.2.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.2.1.tgz#ec9c683094d4eb754e41e2119d8bdaef01cf6da0" + integrity sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw== + dependencies: + "@jest/schemas" "^29.0.0" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/gen-mapping@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + +"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.17" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" + integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@react-native-community/cli-clean@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018" + integrity sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + prompts "^2.4.0" + +"@react-native-community/cli-config@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-config/-/cli-config-9.2.1.tgz#54eb026d53621ccf3a9df8b189ac24f6e56b8750" + integrity sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + cosmiconfig "^5.1.0" + deepmerge "^3.2.0" + glob "^7.1.3" + joi "^17.2.1" + +"@react-native-community/cli-debugger-ui@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz#ea5c5dad6008bccd840d858e160d42bb2ced8793" + integrity sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA== + dependencies: + serve-static "^1.13.1" + +"@react-native-community/cli-doctor@^9.2.1": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-9.3.0.tgz#8817a3fd564453467def5b5bc8aecdc4205eff50" + integrity sha512-/fiuG2eDGC2/OrXMOWI5ifq4X1gdYTQhvW2m0TT5Lk1LuFiZsbTCp1lR+XILKekuTvmYNjEGdVpeDpdIWlXdEA== + dependencies: + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-platform-ios" "^9.3.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + command-exists "^1.2.8" + envinfo "^7.7.2" + execa "^1.0.0" + hermes-profile-transformer "^0.0.6" + ip "^1.1.5" + node-stream-zip "^1.9.1" + ora "^5.4.1" + prompts "^2.4.0" + semver "^6.3.0" + strip-ansi "^5.2.0" + sudo-prompt "^9.0.0" + wcwidth "^1.0.1" + +"@react-native-community/cli-hermes@^9.2.1": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-9.3.0.tgz#1707bf9b0bcbaca1386c24bd32fbcfb598d86eb0" + integrity sha512-d5Zf/AcaW2EYSkS/pz/lrzjI90WvcDAJxk5fz/YK7JWGDqUrGP7IwojiOl3wBJiIiTu8M5MQelyxhbPT1AHDsg== + dependencies: + "@react-native-community/cli-platform-android" "^9.3.0" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + hermes-profile-transformer "^0.0.6" + ip "^1.1.5" + +"@react-native-community/cli-platform-android@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz#cd73cb6bbaeb478cafbed10bd12dfc01b484d488" + integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + fs-extra "^8.1.0" + glob "^7.1.3" + logkitty "^0.7.1" + slash "^3.0.0" + +"@react-native-community/cli-platform-android@^9.3.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.3.0.tgz#9f84c2c2ceec6d097ee44ceb5e5533e371218837" + integrity sha512-4BU6+8tXP450VexoeVdc7rl+H6kz0CnMIFzyY9zcLrwl34CHul2RKLZ/zmVqVVO2sLAYv+HI5LkPUBZD5UeDcg== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + fs-extra "^8.1.0" + glob "^7.1.3" + logkitty "^0.7.1" + slash "^3.0.0" + +"@react-native-community/cli-platform-ios@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz#d90740472216ffae5527dfc5f49063ede18a621f" + integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + ora "^5.4.1" + +"@react-native-community/cli-platform-ios@^9.3.0": + version "9.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.3.0.tgz#45abde2a395fddd7cf71e8b746c1dc1ee2260f9a" + integrity sha512-nihTX53BhF2Q8p4B67oG3RGe1XwggoGBrMb6vXdcu2aN0WeXJOXdBLgR900DAA1O8g7oy1Sudu6we+JsVTKnjw== + dependencies: + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + ora "^5.4.1" + +"@react-native-community/cli-plugin-metro@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz#0ec207e78338e0cc0a3cbe1b43059c24afc66158" + integrity sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ== + dependencies: + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + chalk "^4.1.2" + metro "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-react-native-babel-transformer "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + readline "^1.3.0" + +"@react-native-community/cli-server-api@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz#41ac5916b21d324bccef447f75600c03b2f54fbe" + integrity sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw== + dependencies: + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-tools" "^9.2.1" + compression "^1.7.1" + connect "^3.6.5" + errorhandler "^1.5.0" + nocache "^3.0.1" + pretty-format "^26.6.2" + serve-static "^1.13.1" + ws "^7.5.1" + +"@react-native-community/cli-tools@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz#c332324b1ea99f9efdc3643649bce968aa98191c" + integrity sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ== + dependencies: + appdirsjs "^1.2.4" + chalk "^4.1.2" + find-up "^5.0.0" + mime "^2.4.1" + node-fetch "^2.6.0" + open "^6.2.0" + ora "^5.4.1" + semver "^6.3.0" + shell-quote "^1.7.3" + +"@react-native-community/cli-types@^9.1.0": + version "9.1.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-9.1.0.tgz#dcd6a0022f62790fe1f67417f4690db938746aab" + integrity sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g== + dependencies: + joi "^17.2.1" + +"@react-native-community/cli@9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-9.2.1.tgz#15cc32531fc323d4232d57b1f2d7c571816305ac" + integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ== + dependencies: + "@react-native-community/cli-clean" "^9.2.1" + "@react-native-community/cli-config" "^9.2.1" + "@react-native-community/cli-debugger-ui" "^9.0.0" + "@react-native-community/cli-doctor" "^9.2.1" + "@react-native-community/cli-hermes" "^9.2.1" + "@react-native-community/cli-plugin-metro" "^9.2.1" + "@react-native-community/cli-server-api" "^9.2.1" + "@react-native-community/cli-tools" "^9.2.1" + "@react-native-community/cli-types" "^9.1.0" + chalk "^4.1.2" + commander "^9.4.0" + execa "^1.0.0" + find-up "^4.1.0" + fs-extra "^8.1.0" + graceful-fs "^4.1.3" + prompts "^2.4.0" + semver "^6.3.0" + +"@react-native-community/eslint-config@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz#35dcc529a274803fc4e0a6b3d6c274551fb91774" + integrity sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg== + dependencies: + "@react-native-community/eslint-plugin" "^1.1.0" + "@typescript-eslint/eslint-plugin" "^3.1.0" + "@typescript-eslint/parser" "^3.1.0" + babel-eslint "^10.1.0" + eslint-config-prettier "^6.10.1" + eslint-plugin-eslint-comments "^3.1.2" + eslint-plugin-flowtype "2.50.3" + eslint-plugin-jest "22.4.1" + eslint-plugin-prettier "3.1.2" + eslint-plugin-react "^7.20.0" + eslint-plugin-react-hooks "^4.0.4" + eslint-plugin-react-native "^3.8.1" + prettier "^2.0.2" + +"@react-native-community/eslint-plugin@^1.1.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9" + integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg== + +"@react-native-masked-view/masked-view@^0.2.8": + version "0.2.8" + resolved "https://registry.yarnpkg.com/@react-native-masked-view/masked-view/-/masked-view-0.2.8.tgz#34405a4361882dae7c81b1b771fe9f5fbd545a97" + integrity sha512-+1holBPDF1yi/y0uc1WB6lA5tSNHhM7PpTMapT3ypvSnKQ9+C6sy/zfjxNxRA/llBQ1Ci6f94EaK56UCKs5lTA== + +"@react-native-picker/picker@^2.4.8": + version "2.4.8" + resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.4.8.tgz#a1a21f3d6ecadedbc3f0b691a444ddd7baa081f8" + integrity sha512-5NQ5XPo1B03YNqKFrV6h9L3CQaHlB80wd4ETHUEABRP2iLh7FHLVObX2GfziD+K/VJb8G4KZcZ23NFBFP1f7bg== + +"@react-native-segmented-control/segmented-control@^2.4.0": + version "2.4.0" + resolved "https://registry.yarnpkg.com/@react-native-segmented-control/segmented-control/-/segmented-control-2.4.0.tgz#0a88f22ad2c0fe07ecc002ee1e5d62c55a3dd0ae" + integrity sha512-2s1AaT6xk/Do5s6u7ioCXucqesAt02NQlLKBOM28dJWI7PTH9o89x6AwsGHIeMkTe4nQ6iENiJKzO7Y3SGG9Ew== + +"@react-native/assets@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@react-native/assets/-/assets-1.0.0.tgz#c6f9bf63d274bafc8e970628de24986b30a55c8e" + integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ== + +"@react-native/normalize-color@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567" + integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw== + +"@react-native/polyfills@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@react-native/polyfills/-/polyfills-2.0.0.tgz#4c40b74655c83982c8cf47530ee7dc13d957b6aa" + integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ== + +"@react-navigation/core@^6.4.0": + version "6.4.0" + resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.4.0.tgz#c44d33a8d8ef010a102c7f831fc8add772678509" + integrity sha512-tpc0Ak/DiHfU3LlYaRmIY7vI4sM/Ru0xCet6runLUh9aABf4wiLgxyFJ5BtoWq6xFF8ymYEA/KWtDhetQ24YiA== + dependencies: + "@react-navigation/routers" "^6.1.3" + escape-string-regexp "^4.0.0" + nanoid "^3.1.23" + query-string "^7.0.0" + react-is "^16.13.0" + use-latest-callback "^0.1.5" + +"@react-navigation/elements@^1.3.6": + version "1.3.6" + resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.6.tgz#fa700318528db93f05144b1be4b691b9c1dd1abe" + integrity sha512-pNJ8R9JMga6SXOw6wGVN0tjmE6vegwPmJBL45SEMX2fqTfAk2ykDnlJHodRpHpAgsv0DaI8qX76z3A+aqKSU0w== + +"@react-navigation/native-stack@^6.9.1": + version "6.9.1" + resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.1.tgz#6013300e4cd0b33e242aa18593e4dff7db2ab3d1" + integrity sha512-aOuJP97ge6NRz8wH6sDKfLTfdygGmraYh0apKrrVbGvMnflbPX4kpjQiAQcUPUpMeas0betH/Su8QubNL8HEkg== + dependencies: + "@react-navigation/elements" "^1.3.6" + warn-once "^0.1.0" + +"@react-navigation/native@^6.0.13": + version "6.0.13" + resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-6.0.13.tgz#ec504120e193ea6a7f24ffa765a1338be5a3160a" + integrity sha512-CwaJcAGbhv3p3ECablxBkw8QBCGDWXqVRwQ4QbelajNW623m3sNTC9dOF6kjp8au6Rg9B5e0KmeuY0xWbPk79A== + dependencies: + "@react-navigation/core" "^6.4.0" + escape-string-regexp "^4.0.0" + fast-deep-equal "^3.1.3" + nanoid "^3.1.23" + +"@react-navigation/routers@^6.1.3": + version "6.1.3" + resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-6.1.3.tgz#1df51959e9a67c44367462e8b929b7360a5d2555" + integrity sha512-idJotMEzHc3haWsCh7EvnnZMKxvaS4YF/x2UyFBkNFiEFUaEo/1ioQU6qqmVLspdEv4bI/dLm97hQo7qD8Yl7Q== + dependencies: + nanoid "^3.1.23" + +"@sideway/address@^4.1.3": + version "4.1.4" + resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0" + integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@sideway/formula@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.0.tgz#fe158aee32e6bd5de85044be615bc08478a0a13c" + integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg== + +"@sideway/pinpoint@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df" + integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== + +"@sinclair/typebox@^0.24.1": + version "0.24.51" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" + integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== + +"@sinonjs/commons@^1.7.0": + version "1.8.4" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.4.tgz#d1f2d80f1bd0f2520873f161588bd9b7f8567120" + integrity sha512-RpmQdHVo8hCEHDVpO39zToS9jOhR6nw+/lQAzRNq9ErrGV9IeHM71XCn68svVl/euFeVW6BWX4p35gkhbOcSIQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" + integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== + dependencies: + "@sinonjs/commons" "^1.7.0" + +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + +"@tsconfig/react-native@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-2.0.2.tgz#ac9b8ceb1de91e2f23ab89f915490a1a4afd65a0" + integrity sha512-OY+qydDk8Xw+VONvAFB6WTZAi3OP/KSQWNIeuJgkGFHGV3epw8qlctJQ35+fKGG4919nGbNS9ZI0JuZl1y8w2g== + +"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": + version "7.1.19" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.4" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" + integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.1" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" + integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.2.tgz#235bf339d17185bdec25e024ca19cce257cc7309" + integrity sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg== + dependencies: + "@babel/types" "^7.3.0" + +"@types/eslint-visitor-keys@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + +"@types/graceful-fs@^4.1.2": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" + integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== + dependencies: + "@types/node" "*" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== + +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^26.0.23": + version "26.0.24" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" + integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== + dependencies: + jest-diff "^26.0.0" + pretty-format "^26.0.0" + +"@types/json-schema@^7.0.3", "@types/json-schema@^7.0.9": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + +"@types/node@*": + version "18.11.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4" + integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg== + +"@types/normalize-package-data@^2.4.0": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" + integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== + +"@types/prettier@^2.0.0": + version "2.7.1" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e" + integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== + +"@types/prop-types@*": + version "15.7.5" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" + integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== + +"@types/react-native@^0.70.6": + version "0.70.6" + resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.70.6.tgz#0d1bc3014111f64f13e0df643aec2ab03f021fdb" + integrity sha512-ynQ2jj0km9d7dbnyKqVdQ6Nti7VQ8SLTA/KKkkS5+FnvGyvij2AOo1/xnkBR/jnSNXuzrvGVzw2n0VWfppmfKw== + dependencies: + "@types/react" "*" + +"@types/react-test-renderer@^18.0.0": + version "18.0.0" + resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.0.tgz#7b7f69ca98821ea5501b21ba24ea7b6139da2243" + integrity sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ== + dependencies: + "@types/react" "*" + +"@types/react@*", "@types/react@^18.0.21": + version "18.0.25" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.25.tgz#8b1dcd7e56fe7315535a4af25435e0bb55c8ae44" + integrity sha512-xD6c0KDT4m7n9uD4ZHi02lzskaiqcBxf4zi+tXZY98a04wvc0hi/TcCPC2FOESZi51Nd7tlUeOJY8RofL799/g== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + +"@types/scheduler@*": + version "0.16.2" + resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" + integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== + +"@types/semver@^7.3.12": + version "7.3.13" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" + integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== + +"@types/stack-utils@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" + integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== + +"@types/yargs-parser@*": + version "21.0.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" + integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== + +"@types/yargs@^15.0.0": + version "15.0.14" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06" + integrity sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ== + dependencies: + "@types/yargs-parser" "*" + +"@types/yargs@^16.0.0": + version "16.0.4" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + dependencies: + "@types/yargs-parser" "*" + +"@types/yargs@^17.0.8": + version "17.0.13" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.13.tgz#34cced675ca1b1d51fcf4d34c3c6f0fa142a5c76" + integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg== + dependencies: + "@types/yargs-parser" "*" + +"@typescript-eslint/eslint-plugin@^3.1.0": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f" + integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== + dependencies: + "@typescript-eslint/experimental-utils" "3.10.1" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/eslint-plugin@^5.37.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.0.tgz#36a8c0c379870127059889a9cc7e05c260d2aaa5" + integrity sha512-5TJh2AgL6+wpL8H/GTSjNb4WrjKoR2rqvFxR/DDTqYNk6uXn8BJMEcncLSpMbf/XV1aS0jAjYwn98uvVCiAywQ== + dependencies: + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/type-utils" "5.42.0" + "@typescript-eslint/utils" "5.42.0" + debug "^4.3.4" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + regexpp "^3.2.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" + integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@^3.1.0": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" + integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "3.10.1" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/parser@^5.37.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.42.0.tgz#be0ffbe279e1320e3d15e2ef0ad19262f59e9240" + integrity sha512-Ixh9qrOTDRctFg3yIwrLkgf33AHyEIn6lhyf5cCfwwiGtkWhNpVKlEZApi3inGQR/barWnY7qY8FbGKBO7p3JA== + dependencies: + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/typescript-estree" "5.42.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.42.0.tgz#e1f2bb26d3b2a508421ee2e3ceea5396b192f5ef" + integrity sha512-l5/3IBHLH0Bv04y+H+zlcLiEMEMjWGaCX6WyHE5Uk2YkSGAMlgdUPsT/ywTSKgu9D1dmmKMYgYZijObfA39Wow== + dependencies: + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/visitor-keys" "5.42.0" + +"@typescript-eslint/type-utils@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.42.0.tgz#4206d7192d4fe903ddf99d09b41d4ac31b0b7dca" + integrity sha512-HW14TXC45dFVZxnVW8rnUGnvYyRC0E/vxXShFCthcC9VhVTmjqOmtqj6H5rm9Zxv+ORxKA/1aLGD7vmlLsdlOg== + dependencies: + "@typescript-eslint/typescript-estree" "5.42.0" + "@typescript-eslint/utils" "5.42.0" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" + integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== + +"@typescript-eslint/types@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.0.tgz#5aeff9b5eced48f27d5b8139339bf1ef805bad7a" + integrity sha512-t4lzO9ZOAUcHY6bXQYRuu+3SSYdD9TS8ooApZft4WARt4/f2Cj/YpvbTe8A4GuhT4bNW72goDMOy7SW71mZwGw== + +"@typescript-eslint/typescript-estree@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" + integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== + dependencies: + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/visitor-keys" "3.10.1" + debug "^4.1.1" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/typescript-estree@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.0.tgz#2592d24bb5f89bf54a63384ff3494870f95b3fd8" + integrity sha512-2O3vSq794x3kZGtV7i4SCWZWCwjEtkWfVqX4m5fbUBomOsEOyd6OAD1qU2lbvV5S8tgy/luJnOYluNyYVeOTTg== + dependencies: + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/visitor-keys" "5.42.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.0.tgz#f06bd43b9a9a06ed8f29600273240e84a53f2f15" + integrity sha512-JZ++3+h1vbeG1NUECXQZE3hg0kias9kOtcQr3+JVQ3whnjvKuMyktJAAIj6743OeNPnGBmjj7KEmiDL7qsdnCQ== + dependencies: + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.42.0" + "@typescript-eslint/types" "5.42.0" + "@typescript-eslint/typescript-estree" "5.42.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + semver "^7.3.7" + +"@typescript-eslint/visitor-keys@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" + integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== + dependencies: + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/visitor-keys@5.42.0": + version "5.42.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.0.tgz#ee8d62d486f41cfe646632fab790fbf0c1db5bb0" + integrity sha512-QHbu5Hf/2lOEOwy+IUw0GoSCuAzByTAWWrOTKzTzsotiUnWFpuKnXcAhC9YztAf2EElQ0VvIK+pHJUPkM0q7jg== + dependencies: + "@typescript-eslint/types" "5.42.0" + eslint-visitor-keys "^3.3.0" + +abab@^2.0.3, abab@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" + integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== + +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== + dependencies: + event-target-shim "^5.0.0" + +absolute-path@^0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" + integrity sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA== + +accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-globals@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" + integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== + dependencies: + acorn "^7.1.1" + acorn-walk "^7.1.1" + +acorn-jsx@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn-walk@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + +acorn@^7.1.1, acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.2.4: + version "8.8.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" + integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +ajv@^6.10.0, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.0.1: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +anser@^1.4.9: + version "1.4.10" + resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.10.tgz#befa3eddf282684bd03b63dcda3927aef8c2e35b" + integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww== + +ansi-colors@^4.1.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== + +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-fragments@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansi-fragments/-/ansi-fragments-0.2.1.tgz#24409c56c4cc37817c3d7caa99d8969e2de5a05e" + integrity sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w== + dependencies: + colorette "^1.0.7" + slice-ansi "^2.0.0" + strip-ansi "^5.0.0" + +ansi-regex@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" + integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== + +ansi-regex@^5.0.0, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +anymatch@^3.0.3: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +appdirsjs@^1.2.4: + version "1.2.7" + resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3" + integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== + +array-includes@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" + integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + get-intrinsic "^1.1.1" + is-string "^1.0.7" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== + +array.prototype.flatmap@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + +asap@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== + +ast-types@0.14.2: + version "0.14.2" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd" + integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA== + dependencies: + tslib "^2.0.1" + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +async@^3.2.2: + version "3.2.4" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +atob@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +axios@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" + integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== + dependencies: + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +babel-core@^7.0.0-bridge.0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== + +babel-eslint@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" + integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" + eslint-visitor-keys "^1.0.0" + resolve "^1.12.0" + +babel-jest@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" + integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== + dependencies: + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/babel__core" "^7.1.7" + babel-plugin-istanbul "^6.0.0" + babel-preset-jest "^26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + slash "^3.0.0" + +babel-plugin-istanbul@^6.0.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" + integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-instrument "^5.0.4" + test-exclude "^6.0.0" + +babel-plugin-jest-hoist@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" + integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.0.0" + "@types/babel__traverse" "^7.0.6" + +babel-plugin-module-resolver@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.1.0.tgz#22a4f32f7441727ec1fbf4967b863e1e3e9f33e2" + integrity sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA== + dependencies: + find-babel-config "^1.2.0" + glob "^7.1.6" + pkg-up "^3.1.0" + reselect "^4.0.0" + resolve "^1.13.1" + +babel-plugin-polyfill-corejs2@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122" + integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== + dependencies: + "@babel/compat-data" "^7.17.7" + "@babel/helper-define-polyfill-provider" "^0.3.3" + semver "^6.1.1" + +babel-plugin-polyfill-corejs3@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz#56ad88237137eade485a71b52f72dbed57c6230a" + integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.3" + core-js-compat "^3.25.1" + +babel-plugin-polyfill-regenerator@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz#390f91c38d90473592ed43351e801a9d3e0fd747" + integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.3" + +babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: + version "7.0.0-beta.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" + integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== + +babel-preset-current-node-syntax@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" + integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + dependencies: + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-bigint" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.8.3" + "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-top-level-await" "^7.8.3" + +babel-preset-fbjs@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" + integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== + dependencies: + "@babel/plugin-proposal-class-properties" "^7.0.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/plugin-syntax-class-properties" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-block-scoped-functions" "^7.0.0" + "@babel/plugin-transform-block-scoping" "^7.0.0" + "@babel/plugin-transform-classes" "^7.0.0" + "@babel/plugin-transform-computed-properties" "^7.0.0" + "@babel/plugin-transform-destructuring" "^7.0.0" + "@babel/plugin-transform-flow-strip-types" "^7.0.0" + "@babel/plugin-transform-for-of" "^7.0.0" + "@babel/plugin-transform-function-name" "^7.0.0" + "@babel/plugin-transform-literals" "^7.0.0" + "@babel/plugin-transform-member-expression-literals" "^7.0.0" + "@babel/plugin-transform-modules-commonjs" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.0.0" + "@babel/plugin-transform-parameters" "^7.0.0" + "@babel/plugin-transform-property-literals" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.0.0" + "@babel/plugin-transform-spread" "^7.0.0" + "@babel/plugin-transform-template-literals" "^7.0.0" + babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" + +babel-preset-jest@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" + integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== + dependencies: + babel-plugin-jest-hoist "^26.6.2" + babel-preset-current-node-syntax "^1.0.0" + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base64-js@^1.1.2, base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +braces@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-process-hrtime@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" + integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== + +browserslist@^4.21.3, browserslist@^4.21.4: + version "4.21.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" + integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== + dependencies: + caniuse-lite "^1.0.30001400" + electron-to-chromium "^1.4.251" + node-releases "^2.0.6" + update-browserslist-db "^1.0.9" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +call-bind@^1.0.0, call-bind@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" + integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.2" + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +caniuse-lite@^1.0.30001400: + version "1.0.30001430" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001430.tgz#638a8ae00b5a8a97e66ff43733b2701f81b101fa" + integrity sha512-IB1BXTZKPDVPM7cnV4iaKaHxckvdr/3xtctB3f7Hmenx3qYBhGtTZ//7EllK66aKXW98Lx0+7Yr0kxBtIt3tzg== + +capture-exit@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" + integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== + dependencies: + rsvp "^4.8.4" + +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +ci-info@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.5.0.tgz#bfac2a29263de4c829d806b1ab478e35091e171f" + integrity sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw== + +cjs-module-lexer@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f" + integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-spinners@^2.5.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== + dependencies: + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== + +collect-v8-coverage@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" + integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +colorette@^1.0.7: + version "1.4.0" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" + integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +command-exists@^1.2.8: + version "1.2.9" + resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" + integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== + +commander@^9.4.0: + version "9.4.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd" + integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== + +commander@~2.13.0: + version "2.13.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" + integrity sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + +component-emitter@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" + integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== + +compressible@~2.0.16: + version "2.0.18" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.1: + version "1.7.4" + resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" + integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.16" + debug "2.6.9" + on-headers "~1.0.2" + safe-buffer "5.1.2" + vary "~1.1.2" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +connect@^3.6.5: + version "3.7.0" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" + integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== + dependencies: + debug "2.6.9" + finalhandler "1.1.2" + parseurl "~1.3.3" + utils-merge "1.0.1" + +convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== + +core-js-compat@^3.25.1: + version "3.26.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.26.0.tgz#94e2cf8ba3e63800c4956ea298a6473bc9d62b44" + integrity sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A== + dependencies: + browserslist "^4.21.4" + +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + +cosmiconfig@^5.0.5, cosmiconfig@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^7.0.0, cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cssom@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" + integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== + +cssom@~0.3.6: + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" + integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== + dependencies: + cssom "~0.3.6" + +csstype@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9" + integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw== + +data-urls@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" + integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== + dependencies: + abab "^2.0.3" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.0.0" + +dayjs@^1.8.15: + version "1.11.6" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.6.tgz#2e79a226314ec3ec904e3ee1dd5a4f5e5b1c7afb" + integrity sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ== + +debug@2.6.9, debug@^2.2.0, debug@^2.3.3: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== + +decimal.js@^10.2.1: + version "10.4.2" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.2.tgz#0341651d1d997d86065a2ce3a441fbd0d8e8b98e" + integrity sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA== + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og== + +deep-is@^0.1.3, deep-is@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +deepmerge@^3.2.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" + integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== + +deepmerge@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + +defaults@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== + dependencies: + clone "^1.0.2" + +define-properties@^1.1.3, define-properties@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" + integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +denodeify@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" + integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" + integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +domexception@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" + integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== + dependencies: + webidl-conversions "^5.0.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +electron-to-chromium@^1.4.251: + version "1.4.284" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" + integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== + +emittery@^0.7.1: + version "0.7.2" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" + integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + +envinfo@^7.7.2: + version "7.8.1" + resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" + integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== + +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +error-stack-parser@^2.0.6: + version "2.1.4" + resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" + integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== + dependencies: + stackframe "^1.3.4" + +errorhandler@^1.5.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91" + integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A== + dependencies: + accepts "~1.3.7" + escape-html "~1.0.3" + +es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.5, es-abstract@^1.20.4: + version "1.20.4" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.4.tgz#1d103f9f8d78d4cf0713edcd6d0ed1a46eed5861" + integrity sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.3" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.2" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.4.3" + safe-regex-test "^1.0.0" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" + +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escodegen@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" + integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== + dependencies: + esprima "^4.0.1" + estraverse "^5.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +eslint-config-prettier@^6.10.1: + version "6.15.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9" + integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== + dependencies: + get-stdin "^6.0.0" + +eslint-plugin-eslint-comments@^3.1.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz#9e1cd7b4413526abb313933071d7aba05ca12ffa" + integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== + dependencies: + escape-string-regexp "^1.0.5" + ignore "^5.0.5" + +eslint-plugin-flowtype@2.50.3: + version "2.50.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz#61379d6dce1d010370acd6681740fd913d68175f" + integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ== + dependencies: + lodash "^4.17.10" + +eslint-plugin-jest@22.4.1: + version "22.4.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz#a5fd6f7a2a41388d16f527073b778013c5189a9c" + integrity sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg== + +eslint-plugin-prettier@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba" + integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-plugin-react-hooks@^4.0.4: + version "4.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" + integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== + +eslint-plugin-react-native-globals@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2" + integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g== + +eslint-plugin-react-native@^3.8.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.11.0.tgz#c73b0886abb397867e5e6689d3a6a418682e6bac" + integrity sha512-7F3OTwrtQPfPFd+VygqKA2VZ0f2fz0M4gJmry/TRE18JBb94/OtMxwbL7Oqwu7FGyrdeIOWnXQbBAveMcSTZIA== + dependencies: + "@babel/traverse" "^7.7.4" + eslint-plugin-react-native-globals "^0.1.1" + +eslint-plugin-react@^7.20.0: + version "7.31.10" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz#6782c2c7fe91c09e715d536067644bbb9491419a" + integrity sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA== + dependencies: + array-includes "^3.1.5" + array.prototype.flatmap "^1.3.0" + doctrine "^2.1.0" + estraverse "^5.3.0" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.5" + object.fromentries "^2.0.5" + object.hasown "^1.1.1" + object.values "^1.1.5" + prop-types "^15.8.1" + resolve "^2.0.0-next.3" + semver "^6.3.0" + string.prototype.matchall "^4.0.7" + +eslint-scope@^5.0.0, eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^2.0.0, eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== + +eslint@^7.32.0: + version "7.32.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" + integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== + dependencies: + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.3" + "@humanwhocodes/config-array" "^0.5.0" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.1.2" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.9" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== + dependencies: + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" + +esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +event-target-shim@^5.0.0, event-target-shim@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + +exec-sh@^0.3.2: + version "0.3.6" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" + integrity sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w== + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +execa@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" + integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expect@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" + integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== + dependencies: + "@jest/types" "^26.6.2" + ansi-styles "^4.0.0" + jest-get-type "^26.3.0" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.2.9: + version "3.2.12" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" + integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + +fb-watchman@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" + integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== + dependencies: + bser "2.1.1" + +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +filter-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" + integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== + +finalhandler@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +find-babel-config@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2" + integrity sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA== + dependencies: + json5 "^0.5.1" + path-exists "^3.0.0" + +find-cache-dir@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flatted@^3.1.0: + version "3.2.7" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" + integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== + +flow-parser@0.*: + version "0.192.0" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.192.0.tgz#e2aa03e0c6a844c4d6ccdb4af2bc83cc589d9c8c" + integrity sha512-FLyei0ikf4ab9xlg+05WNmdpOODiH9XVBuw7iI9OZyjIo+cX2L2OUPTovjbWLYLlI41oGTcprbKdB/f9XwBnKw== + +flow-parser@^0.121.0: + version "0.121.0" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.121.0.tgz#9f9898eaec91a9f7c323e9e992d81ab5c58e618f" + integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== + +follow-redirects@^1.15.0: + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== + +for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fs-extra@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" + integrity sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ== + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@^2.1.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== + +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" + integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.3" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + +get-stream@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== + +glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^13.6.0, globals@^13.9.0: + version "13.17.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.17.0.tgz#902eb1e680a41da93945adbdcb5a9f361ba69bd4" + integrity sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw== + dependencies: + type-fest "^0.20.2" + +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: + version "4.2.10" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== + +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + +has-symbols@^1.0.2, has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hermes-estree@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.8.0.tgz#530be27243ca49f008381c1f3e8b18fb26bf9ec0" + integrity sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q== + +hermes-parser@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.8.0.tgz#116dceaba32e45b16d6aefb5c4c830eaeba2d257" + integrity sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA== + dependencies: + hermes-estree "0.8.0" + +hermes-profile-transformer@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz#bd0f5ecceda80dd0ddaae443469ab26fb38fc27b" + integrity sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ== + dependencies: + source-map "^0.7.3" + +hoist-non-react-statics@^2.3.1: + version "2.5.5" + resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" + integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw== + +hosted-git-info@^2.1.4: + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== + +html-encoding-sniffer@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" + integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== + dependencies: + whatwg-encoding "^1.0.5" + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" + integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.0.5, ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + +image-size@^0.6.0: + version "0.6.3" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" + integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA== + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-local@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" + integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +internal-slot@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" + integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== + dependencies: + get-intrinsic "^1.1.0" + has "^1.0.3" + side-channel "^1.0.4" + +invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +ip@^1.1.5: + version "1.1.8" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + +is-ci@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" + integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== + dependencies: + ci-info "^2.0.0" + +is-core-module@^2.9.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" + integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== + dependencies: + has "^1.0.3" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== + +is-docker@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== + dependencies: + kind-of "^3.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw== + +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" + integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== + +istanbul-lib-instrument@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== + dependencies: + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" + +istanbul-lib-instrument@^5.0.4: + version "5.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" + integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^6.3.0" + +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" + integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2: + version "3.1.5" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" + integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jest-changed-files@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" + integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== + dependencies: + "@jest/types" "^26.6.2" + execa "^4.0.0" + throat "^5.0.0" + +jest-cli@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" + integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== + dependencies: + "@jest/core" "^26.6.3" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + import-local "^3.0.2" + is-ci "^2.0.0" + jest-config "^26.6.3" + jest-util "^26.6.2" + jest-validate "^26.6.2" + prompts "^2.0.1" + yargs "^15.4.1" + +jest-config@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" + integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^26.6.3" + "@jest/types" "^26.6.2" + babel-jest "^26.6.3" + chalk "^4.0.0" + deepmerge "^4.2.2" + glob "^7.1.1" + graceful-fs "^4.2.4" + jest-environment-jsdom "^26.6.2" + jest-environment-node "^26.6.2" + jest-get-type "^26.3.0" + jest-jasmine2 "^26.6.3" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + micromatch "^4.0.2" + pretty-format "^26.6.2" + +jest-diff@^26.0.0, jest-diff@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" + integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-docblock@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" + integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== + dependencies: + detect-newline "^3.0.0" + +jest-each@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" + integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== + dependencies: + "@jest/types" "^26.6.2" + chalk "^4.0.0" + jest-get-type "^26.3.0" + jest-util "^26.6.2" + pretty-format "^26.6.2" + +jest-environment-jsdom@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" + integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + jest-util "^26.6.2" + jsdom "^16.4.0" + +jest-environment-node@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" + integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== + dependencies: + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + jest-util "^26.6.2" + +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== + +jest-haste-map@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa" + integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== + dependencies: + "@jest/types" "^26.6.2" + "@types/graceful-fs" "^4.1.2" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + jest-regex-util "^26.0.0" + jest-serializer "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + micromatch "^4.0.2" + sane "^4.0.3" + walker "^1.0.7" + optionalDependencies: + fsevents "^2.1.2" + +jest-jasmine2@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" + integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^26.6.2" + "@jest/source-map" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + expect "^26.6.2" + is-generator-fn "^2.0.0" + jest-each "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + pretty-format "^26.6.2" + throat "^5.0.0" + +jest-leak-detector@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" + integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== + dependencies: + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-matcher-utils@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a" + integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== + dependencies: + chalk "^4.0.0" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-message-util@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07" + integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== + dependencies: + "@babel/code-frame" "^7.0.0" + "@jest/types" "^26.6.2" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.4" + micromatch "^4.0.2" + pretty-format "^26.6.2" + slash "^3.0.0" + stack-utils "^2.0.2" + +jest-mock@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302" + integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + +jest-pnp-resolver@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" + integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== + +jest-regex-util@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" + integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== + +jest-regex-util@^27.0.6: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" + integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== + +jest-resolve-dependencies@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" + integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== + dependencies: + "@jest/types" "^26.6.2" + jest-regex-util "^26.0.0" + jest-snapshot "^26.6.2" + +jest-resolve@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" + integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== + dependencies: + "@jest/types" "^26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + jest-pnp-resolver "^1.2.2" + jest-util "^26.6.2" + read-pkg-up "^7.0.1" + resolve "^1.18.1" + slash "^3.0.0" + +jest-runner@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" + integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== + dependencies: + "@jest/console" "^26.6.2" + "@jest/environment" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.7.1" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-docblock "^26.0.0" + jest-haste-map "^26.6.2" + jest-leak-detector "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + jest-runtime "^26.6.3" + jest-util "^26.6.2" + jest-worker "^26.6.2" + source-map-support "^0.5.6" + throat "^5.0.0" + +jest-runtime@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" + integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== + dependencies: + "@jest/console" "^26.6.2" + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/globals" "^26.6.2" + "@jest/source-map" "^26.6.2" + "@jest/test-result" "^26.6.2" + "@jest/transform" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + cjs-module-lexer "^0.6.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + slash "^3.0.0" + strip-bom "^4.0.0" + yargs "^15.4.1" + +jest-serializer@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1" + integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== + dependencies: + "@types/node" "*" + graceful-fs "^4.2.4" + +jest-serializer@^27.0.6: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" + integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== + dependencies: + "@types/node" "*" + graceful-fs "^4.2.9" + +jest-snapshot@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" + integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^26.6.2" + "@types/babel__traverse" "^7.0.4" + "@types/prettier" "^2.0.0" + chalk "^4.0.0" + expect "^26.6.2" + graceful-fs "^4.2.4" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + jest-haste-map "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + natural-compare "^1.4.0" + pretty-format "^26.6.2" + semver "^7.3.2" + +jest-util@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" + integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== + dependencies: + "@jest/types" "^26.6.2" + "@types/node" "*" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + +jest-util@^27.2.0: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" + integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== + dependencies: + "@jest/types" "^27.5.1" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + +jest-validate@^26.5.2, jest-validate@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" + integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== + dependencies: + "@jest/types" "^26.6.2" + camelcase "^6.0.0" + chalk "^4.0.0" + jest-get-type "^26.3.0" + leven "^3.1.0" + pretty-format "^26.6.2" + +jest-watcher@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" + integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== + dependencies: + "@jest/test-result" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + jest-util "^26.6.2" + string-length "^4.0.1" + +jest-worker@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" + integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^7.0.0" + +jest-worker@^27.2.0: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^8.0.0" + +jest@^26.6.3: + version "26.6.3" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" + integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== + dependencies: + "@jest/core" "^26.6.3" + import-local "^3.0.2" + jest-cli "^26.6.3" + +joi@^17.2.1: + version "17.7.0" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.7.0.tgz#591a33b1fe1aca2bc27f290bcad9b9c1c570a6b3" + integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.0" + "@sideway/pinpoint" "^2.0.0" + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsc-android@^250230.2.1: + version "250230.2.1" + resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-250230.2.1.tgz#3790313a970586a03ab0ad47defbc84df54f1b83" + integrity sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q== + +jscodeshift@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.13.1.tgz#69bfe51e54c831296380585c6d9e733512aecdef" + integrity sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ== + dependencies: + "@babel/core" "^7.13.16" + "@babel/parser" "^7.13.16" + "@babel/plugin-proposal-class-properties" "^7.13.0" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8" + "@babel/plugin-proposal-optional-chaining" "^7.13.12" + "@babel/plugin-transform-modules-commonjs" "^7.13.8" + "@babel/preset-flow" "^7.13.13" + "@babel/preset-typescript" "^7.13.0" + "@babel/register" "^7.13.16" + babel-core "^7.0.0-bridge.0" + chalk "^4.1.2" + flow-parser "0.*" + graceful-fs "^4.2.4" + micromatch "^3.1.10" + neo-async "^2.5.0" + node-dir "^0.1.17" + recast "^0.20.4" + temp "^0.8.4" + write-file-atomic "^2.3.0" + +jsdom@^16.4.0: + version "16.7.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" + integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== + dependencies: + abab "^2.0.5" + acorn "^8.2.4" + acorn-globals "^6.0.0" + cssom "^0.4.4" + cssstyle "^2.3.0" + data-urls "^2.0.0" + decimal.js "^10.2.1" + domexception "^2.0.1" + escodegen "^2.0.0" + form-data "^3.0.0" + html-encoding-sniffer "^2.0.1" + http-proxy-agent "^4.0.1" + https-proxy-agent "^5.0.0" + is-potential-custom-element-name "^1.0.1" + nwsapi "^2.2.0" + parse5 "6.0.1" + saxes "^5.0.1" + symbol-tree "^3.2.4" + tough-cookie "^4.0.0" + w3c-hr-time "^1.0.2" + w3c-xmlserializer "^2.0.0" + webidl-conversions "^6.1.0" + whatwg-encoding "^1.0.5" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.5.0" + ws "^7.4.6" + xml-name-validator "^3.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== + +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw== + +json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + +jsonfile@^2.1.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" + integrity sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw== + optionalDependencies: + graceful-fs "^4.1.6" + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.3" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" + integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== + dependencies: + array-includes "^3.1.5" + object.assign "^4.1.3" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +klaw@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" + integrity sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw== + optionalDependencies: + graceful-fs "^4.1.9" + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +lodash.throttle@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" + integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== + +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash@^4.17.10, lodash@^4.17.15, lodash@^4.7.0: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +logkitty@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/logkitty/-/logkitty-0.7.1.tgz#8e8d62f4085a826e8d38987722570234e33c6aa7" + integrity sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ== + dependencies: + ansi-fragments "^0.2.1" + dayjs "^1.8.15" + yargs "^15.1.0" + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +make-dir@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +makeerror@1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" + integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== + dependencies: + tmpl "1.0.5" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== + dependencies: + object-visit "^1.0.0" + +memoize-one@^5.0.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e" + integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q== + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +metro-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz#2c60493a4eb7a8d20cc059f05e0e505dc1684d01" + integrity sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw== + dependencies: + "@babel/core" "^7.14.0" + hermes-parser "0.8.0" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + +metro-cache-key@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-cache-key/-/metro-cache-key-0.72.3.tgz#dcc3055b6cb7e35b84b4fe736a148affb4ecc718" + integrity sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg== + +metro-cache@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.72.3.tgz#fd079f90b12a81dd5f1567c607c13b14ae282690" + integrity sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A== + dependencies: + metro-core "0.72.3" + rimraf "^2.5.4" + +metro-config@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.72.3.tgz#c2f1a89537c79cec516b1229aa0550dfa769e2ee" + integrity sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw== + dependencies: + cosmiconfig "^5.0.5" + jest-validate "^26.5.2" + metro "0.72.3" + metro-cache "0.72.3" + metro-core "0.72.3" + metro-runtime "0.72.3" + +metro-core@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.72.3.tgz#e3a276d54ecc8fe667127347a1bfd3f8c0009ccb" + integrity sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A== + dependencies: + lodash.throttle "^4.1.1" + metro-resolver "0.72.3" + +metro-file-map@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-file-map/-/metro-file-map-0.72.3.tgz#94f6d4969480aa7f47cfe2c5f365ad4e85051f12" + integrity sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA== + dependencies: + abort-controller "^3.0.0" + anymatch "^3.0.3" + debug "^2.2.0" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + invariant "^2.2.4" + jest-regex-util "^27.0.6" + jest-serializer "^27.0.6" + jest-util "^27.2.0" + jest-worker "^27.2.0" + micromatch "^4.0.4" + walker "^1.0.7" + optionalDependencies: + fsevents "^2.1.2" + +metro-hermes-compiler@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz#e9ab4d25419eedcc72c73842c8da681a4a7e691e" + integrity sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg== + +metro-inspector-proxy@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz#8d7ff4240fc414af5b72d86dac2485647fc3cf09" + integrity sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw== + dependencies: + connect "^3.6.5" + debug "^2.2.0" + ws "^7.5.1" + yargs "^15.3.1" + +metro-minify-uglify@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz#a9d4cd27933b29cfe95d8406b40d185567a93d39" + integrity sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA== + dependencies: + uglify-es "^3.1.9" + +metro-react-native-babel-preset@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz#e549199fa310fef34364fdf19bd210afd0c89432" + integrity sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw== + dependencies: + "@babel/core" "^7.14.0" + "@babel/plugin-proposal-async-generator-functions" "^7.0.0" + "@babel/plugin-proposal-class-properties" "^7.0.0" + "@babel/plugin-proposal-export-default-from" "^7.0.0" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/plugin-proposal-optional-catch-binding" "^7.0.0" + "@babel/plugin-proposal-optional-chaining" "^7.0.0" + "@babel/plugin-syntax-dynamic-import" "^7.0.0" + "@babel/plugin-syntax-export-default-from" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.2.0" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0" + "@babel/plugin-syntax-optional-chaining" "^7.0.0" + "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-async-to-generator" "^7.0.0" + "@babel/plugin-transform-block-scoping" "^7.0.0" + "@babel/plugin-transform-classes" "^7.0.0" + "@babel/plugin-transform-computed-properties" "^7.0.0" + "@babel/plugin-transform-destructuring" "^7.0.0" + "@babel/plugin-transform-exponentiation-operator" "^7.0.0" + "@babel/plugin-transform-flow-strip-types" "^7.0.0" + "@babel/plugin-transform-function-name" "^7.0.0" + "@babel/plugin-transform-literals" "^7.0.0" + "@babel/plugin-transform-modules-commonjs" "^7.0.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0" + "@babel/plugin-transform-parameters" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-react-jsx-self" "^7.0.0" + "@babel/plugin-transform-react-jsx-source" "^7.0.0" + "@babel/plugin-transform-runtime" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.0.0" + "@babel/plugin-transform-spread" "^7.0.0" + "@babel/plugin-transform-sticky-regex" "^7.0.0" + "@babel/plugin-transform-template-literals" "^7.0.0" + "@babel/plugin-transform-typescript" "^7.5.0" + "@babel/plugin-transform-unicode-regex" "^7.0.0" + "@babel/template" "^7.0.0" + react-refresh "^0.4.0" + +metro-react-native-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz#f8eda8c07c0082cbdbef47a3293edc41587c6b5a" + integrity sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA== + dependencies: + "@babel/core" "^7.14.0" + babel-preset-fbjs "^3.4.0" + hermes-parser "0.8.0" + metro-babel-transformer "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + +metro-resolver@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.72.3.tgz#c64ce160454ac850a15431509f54a587cb006540" + integrity sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w== + dependencies: + absolute-path "^0.0.0" + +metro-runtime@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-runtime/-/metro-runtime-0.72.3.tgz#1485ed7b5f06d09ebb40c83efcf8accc8d30b8b9" + integrity sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA== + dependencies: + "@babel/runtime" "^7.0.0" + react-refresh "^0.4.0" + +metro-source-map@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.72.3.tgz#5efcf354413804a62ff97864e797f60ef3cc689e" + integrity sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ== + dependencies: + "@babel/traverse" "^7.14.0" + "@babel/types" "^7.0.0" + invariant "^2.2.4" + metro-symbolicate "0.72.3" + nullthrows "^1.1.1" + ob1 "0.72.3" + source-map "^0.5.6" + vlq "^1.0.0" + +metro-symbolicate@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz#093d4f8c7957bcad9ca2ab2047caa90b1ee1b0c1" + integrity sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw== + dependencies: + invariant "^2.2.4" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + source-map "^0.5.6" + through2 "^2.0.1" + vlq "^1.0.0" + +metro-transform-plugins@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz#b00e5a9f24bff7434ea7a8e9108eebc8386b9ee4" + integrity sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.14.0" + nullthrows "^1.1.1" + +metro-transform-worker@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz#bdc6cc708ea114bc085e11d675b8ff626d7e6db7" + integrity sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/types" "^7.0.0" + babel-preset-fbjs "^3.4.0" + metro "0.72.3" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-hermes-compiler "0.72.3" + metro-source-map "0.72.3" + metro-transform-plugins "0.72.3" + nullthrows "^1.1.1" + +metro@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/metro/-/metro-0.72.3.tgz#eb587037d62f48a0c33c8d88f26666b4083bb61e" + integrity sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.14.0" + "@babel/types" "^7.0.0" + absolute-path "^0.0.0" + accepts "^1.3.7" + async "^3.2.2" + chalk "^4.0.0" + ci-info "^2.0.0" + connect "^3.6.5" + debug "^2.2.0" + denodeify "^1.2.1" + error-stack-parser "^2.0.6" + fs-extra "^1.0.0" + graceful-fs "^4.2.4" + hermes-parser "0.8.0" + image-size "^0.6.0" + invariant "^2.2.4" + jest-worker "^27.2.0" + lodash.throttle "^4.1.1" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-file-map "0.72.3" + metro-hermes-compiler "0.72.3" + metro-inspector-proxy "0.72.3" + metro-minify-uglify "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + metro-symbolicate "0.72.3" + metro-transform-plugins "0.72.3" + metro-transform-worker "0.72.3" + mime-types "^2.1.27" + node-fetch "^2.2.0" + nullthrows "^1.1.1" + rimraf "^2.5.4" + serialize-error "^2.1.0" + source-map "^0.5.6" + strip-ansi "^6.0.0" + temp "0.8.3" + throat "^5.0.0" + ws "^7.5.1" + yargs "^15.3.1" + +micromatch@^3.1.10, micromatch@^3.1.4: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +micromatch@^4.0.2, micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.4.1: + version "2.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" + integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.6: + version "1.2.7" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.1: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +nanoid@^3.1.23: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +neo-async@^2.5.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +nocache@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/nocache/-/nocache-3.0.4.tgz#5b37a56ec6e09fc7d401dceaed2eab40c8bfdf79" + integrity sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw== + +node-dir@^0.1.17: + version "0.1.17" + resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5" + integrity sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg== + dependencies: + minimatch "^3.0.2" + +node-fetch@^2.2.0, node-fetch@^2.6.0: + version "2.6.7" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== + +node-notifier@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" + integrity sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg== + dependencies: + growly "^1.3.0" + is-wsl "^2.2.0" + semver "^7.3.2" + shellwords "^0.1.1" + uuid "^8.3.0" + which "^2.0.2" + +node-releases@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" + integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== + +node-stream-zip@^1.9.1: + version "1.15.0" + resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea" + integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== + +normalize-package-data@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w== + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== + dependencies: + path-key "^2.0.0" + +npm-run-path@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +nullthrows@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" + integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== + +nwsapi@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" + integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== + +ob1@0.72.3: + version "0.72.3" + resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.72.3.tgz#fc1efcfe156f12ed23615f2465a796faad8b91e4" + integrity sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg== + +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-inspect@^1.12.2, object-inspect@^1.9.0: + version "1.12.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" + integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== + +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== + dependencies: + isobject "^3.0.0" + +object.assign@^4.1.3, object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.entries@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" + integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.fromentries@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" + integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.hasown@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" + integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== + dependencies: + define-properties "^1.1.4" + es-abstract "^1.19.5" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== + dependencies: + isobject "^3.0.1" + +object.values@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" + integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +onetime@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +open@^6.2.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9" + integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg== + dependencies: + is-wsl "^1.1.0" + +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +p-each-series@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" + integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + +p-limit@^2.0.0, p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-json@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse5@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pirates@^4.0.1, pirates@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + +pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +pkg-up@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" + integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== + dependencies: + find-up "^3.0.0" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^2.0.2: + version "2.7.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" + integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== + +pretty-format@^26.0.0, pretty-format@^26.5.2, pretty-format@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" + integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== + dependencies: + "@jest/types" "^26.6.2" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^17.0.1" + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise@^8.0.3: + version "8.3.0" + resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" + integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== + dependencies: + asap "~2.0.6" + +prompts@^2.0.1, prompts@^2.4.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" + integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.5" + +prop-types@^15.8.1: + version "15.8.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.13.1" + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +psl@^1.1.33: + version "1.9.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +query-string@^7.0.0: + version "7.1.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" + integrity sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w== + dependencies: + decode-uri-component "^0.2.0" + filter-obj "^1.1.0" + split-on-first "^1.0.0" + strict-uri-encode "^2.0.0" + +querystringify@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +react-devtools-core@4.24.0: + version "4.24.0" + resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.24.0.tgz#7daa196bdc64f3626b3f54f2ff2b96f7c4fdf017" + integrity sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg== + dependencies: + shell-quote "^1.6.1" + ws "^7" + +react-freeze@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.3.tgz#5e3ca90e682fed1d73a7cb50c2c7402b3e85618d" + integrity sha512-ZnXwLQnGzrDpHBHiC56TXFXvmolPeMjTn1UOm610M4EXGzbEDR7oOIyS2ZiItgbs6eZc4oU/a0hpk8PrcKvv5g== + +"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.1.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" + integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== + +react-is@^16.13.0, react-is@^16.13.1: + version "16.13.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + +react-native-codegen@^0.70.6: + version "0.70.6" + resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb" + integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== + dependencies: + "@babel/parser" "^7.14.0" + flow-parser "^0.121.0" + jscodeshift "^0.13.1" + nullthrows "^1.1.1" + +react-native-gradle-plugin@^0.70.3: + version "0.70.3" + resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz#cbcf0619cbfbddaa9128701aa2d7b4145f9c4fc8" + integrity sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A== + +react-native-loading-spinner-overlay@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/react-native-loading-spinner-overlay/-/react-native-loading-spinner-overlay-3.0.1.tgz#092481b8cce157d3af5ef942f845ad981f96bd36" + integrity sha512-4GdR54HQnKg2HPSSisVizfTLuyhSh4splY9eb8mKiYF1Ihjn/5EmdNo5bN3S7uKPFRC3WLzIZIouX6G6fXfnjw== + +react-native-safe-area-context@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.4.1.tgz#239c60b8a9a80eac70a38a822b04c0f1d15ffc01" + integrity sha512-N9XTjiuD73ZpVlejHrUWIFZc+6Z14co1K/p1IFMkImU7+avD69F3y+lhkqA2hN/+vljdZrBSiOwXPkuo43nFQA== + +react-native-safe-area-view@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-1.1.1.tgz#9833e34c384d0513f4831afcd1e54946f13897b2" + integrity sha512-bbLCtF+tqECyPWlgkWbIwx4vDPb0GEufx/ZGcSS4UljMcrpwluachDXoW9DBxhbMCc6k1V0ccqHWN7ntbRdERQ== + dependencies: + hoist-non-react-statics "^2.3.1" + +react-native-screens@^3.18.2: + version "3.18.2" + resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.18.2.tgz#d7ab2d145258d3db9fa630fa5379dc4474117866" + integrity sha512-ANUEuvMUlsYJ1QKukEhzhfrvOUO9BVH9Nzg+6eWxpn3cfD/O83yPBOF8Mx6x5H/2+sMy+VS5x/chWOOo/U7QJw== + dependencies: + react-freeze "^1.0.0" + warn-once "^0.1.0" + +react-native@0.70.4: + version "0.70.4" + resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.70.4.tgz#f2a3a7996431a47a45ce1f5097352c5721417516" + integrity sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA== + dependencies: + "@jest/create-cache-key-function" "^29.0.3" + "@react-native-community/cli" "9.2.1" + "@react-native-community/cli-platform-android" "9.2.1" + "@react-native-community/cli-platform-ios" "9.2.1" + "@react-native/assets" "1.0.0" + "@react-native/normalize-color" "2.0.0" + "@react-native/polyfills" "2.0.0" + abort-controller "^3.0.0" + anser "^1.4.9" + base64-js "^1.1.2" + event-target-shim "^5.0.1" + invariant "^2.2.4" + jsc-android "^250230.2.1" + memoize-one "^5.0.0" + metro-react-native-babel-transformer "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + mkdirp "^0.5.1" + nullthrows "^1.1.1" + pretty-format "^26.5.2" + promise "^8.0.3" + react-devtools-core "4.24.0" + react-native-codegen "^0.70.6" + react-native-gradle-plugin "^0.70.3" + react-refresh "^0.4.0" + react-shallow-renderer "^16.15.0" + regenerator-runtime "^0.13.2" + scheduler "^0.22.0" + stacktrace-parser "^0.1.3" + use-sync-external-store "^1.0.0" + whatwg-fetch "^3.0.0" + ws "^6.1.4" + +react-refresh@^0.4.0: + version "0.4.3" + resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.3.tgz#966f1750c191672e76e16c2efa569150cc73ab53" + integrity sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA== + +react-shallow-renderer@^16.15.0: + version "16.15.0" + resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz#48fb2cf9b23d23cde96708fe5273a7d3446f4457" + integrity sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA== + dependencies: + object-assign "^4.1.1" + react-is "^16.12.0 || ^17.0.0 || ^18.0.0" + +react-test-renderer@18.1.0: + version "18.1.0" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-18.1.0.tgz#35b75754834cf9ab517b6813db94aee0a6b545c3" + integrity sha512-OfuueprJFW7h69GN+kr4Ywin7stcuqaYAt1g7airM5cUgP0BoF5G5CXsPGmXeDeEkncb2fqYNECO4y18sSqphg== + dependencies: + react-is "^18.1.0" + react-shallow-renderer "^16.15.0" + scheduler "^0.22.0" + +react@18.1.0: + version "18.1.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890" + integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ== + dependencies: + loose-envify "^1.1.0" + +read-pkg-up@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" + integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== + dependencies: + find-up "^4.1.0" + read-pkg "^5.2.0" + type-fest "^0.8.1" + +read-pkg@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" + integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== + dependencies: + "@types/normalize-package-data" "^2.4.0" + normalize-package-data "^2.5.0" + parse-json "^5.0.0" + type-fest "^0.6.0" + +readable-stream@^3.4.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@~2.3.6: + version "2.3.7" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readline@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c" + integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg== + +recast@^0.20.4: + version "0.20.5" + resolved "https://registry.yarnpkg.com/recast/-/recast-0.20.5.tgz#8e2c6c96827a1b339c634dd232957d230553ceae" + integrity sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ== + dependencies: + ast-types "0.14.2" + esprima "~4.0.0" + source-map "~0.6.1" + tslib "^2.0.1" + +regenerate-unicode-properties@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" + integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== + dependencies: + regenerate "^1.4.2" + +regenerate@^1.4.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" + integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== + +regenerator-runtime@^0.13.10, regenerator-runtime@^0.13.2: + version "0.13.10" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee" + integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw== + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + +regexpp@^3.0.0, regexpp@^3.1.0, regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== + +regexpu-core@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.1.tgz#a69c26f324c1e962e9ffd0b88b055caba8089139" + integrity sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties "^10.1.0" + regjsgen "^0.7.1" + regjsparser "^0.9.1" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.0.0" + +regjsgen@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.7.1.tgz#ee5ef30e18d3f09b7c369b76e7c2373ed25546f6" + integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== + +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== + dependencies: + jsesc "~0.5.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== + +repeat-element@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" + integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== + +repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +reselect@^4.0.0: + version "4.1.7" + resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.7.tgz#56480d9ff3d3188970ee2b76527bd94a95567a42" + integrity sha512-Zu1xbUt3/OPwsXL46hvOOoQrap2azE7ZQbokq61BQfiXvhewsKDwhMeZjTX9sX0nvw1t/U5Audyn1I9P/m9z0A== + +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== + dependencies: + resolve-from "^5.0.0" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== + +resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.18.1: + version "1.22.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" + integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + dependencies: + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^2.0.0-next.3: + version "2.0.0-next.4" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" + integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== + dependencies: + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rimraf@^2.5.4: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.0, rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +rimraf@~2.2.6: + version "2.2.8" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" + integrity sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg== + +rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rsvp@^4.8.4: + version "4.8.5" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" + integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sane@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" + integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== + dependencies: + "@cnakazawa/watch" "^1.0.3" + anymatch "^2.0.0" + capture-exit "^2.0.0" + exec-sh "^0.3.2" + execa "^1.0.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + +saxes@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" + integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== + dependencies: + xmlchars "^2.2.0" + +scheduler@^0.22.0: + version "0.22.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.22.0.tgz#83a5d63594edf074add9a7198b1bae76c3db01b8" + integrity sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ== + dependencies: + loose-envify "^1.1.0" + +"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.2.1, semver@^7.3.2, semver@^7.3.7: + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== + dependencies: + lru-cache "^6.0.0" + +send@0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-error@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" + integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== + +serve-static@^1.13.1: + version "1.15.0" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shallow-clone@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" + integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== + dependencies: + kind-of "^6.0.2" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== + dependencies: + shebang-regex "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shell-quote@^1.6.1, shell-quote@^1.7.3: + version "1.7.4" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" + integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +sisteransi@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slice-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +source-map-resolve@^0.5.0: + version "0.5.3" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" + integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== + dependencies: + atob "^2.1.2" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.5.16, source-map-support@^0.5.6: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" + integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== + +source-map@^0.5.6: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +spdx-correct@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" + integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" + integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.12" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" + integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== + +split-on-first@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" + integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + +stack-utils@^2.0.2: + version "2.0.5" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" + integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA== + dependencies: + escape-string-regexp "^2.0.0" + +stackframe@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" + integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== + +stacktrace-parser@^0.1.3: + version "0.1.10" + resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz#29fb0cae4e0d0b85155879402857a1639eb6051a" + integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== + dependencies: + type-fest "^0.7.1" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +strict-uri-encode@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" + integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== + +string-length@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" + integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== + dependencies: + char-regex "^1.0.2" + strip-ansi "^6.0.0" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string.prototype.matchall@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" + integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + get-intrinsic "^1.1.1" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + regexp.prototype.flags "^1.4.1" + side-channel "^1.0.4" + +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^5.0.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +sudo-prompt@^9.0.0: + version "9.2.1" + resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" + integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-hyperlinks@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" + integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== + dependencies: + has-flag "^4.0.0" + supports-color "^7.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +table@^6.0.9: + version "6.8.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" + integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + +temp@0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.3.tgz#e0c6bc4d26b903124410e4fed81103014dfc1f59" + integrity sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw== + dependencies: + os-tmpdir "^1.0.0" + rimraf "~2.2.6" + +temp@^0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.4.tgz#8c97a33a4770072e0a05f919396c7665a7dd59f2" + integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg== + dependencies: + rimraf "~2.6.2" + +terminal-link@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" + integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== + dependencies: + ansi-escapes "^4.2.1" + supports-hyperlinks "^2.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + +throat@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" + integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== + +through2@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +tmpl@1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tough-cookie@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" + integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== + dependencies: + psl "^1.1.33" + punycode "^2.1.1" + universalify "^0.2.0" + url-parse "^1.5.3" + +tr46@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" + integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== + dependencies: + punycode "^2.1.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +tslib@^1.8.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.0.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + +tsutils@^3.17.1, tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== + dependencies: + tslib "^1.8.1" + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== + dependencies: + prelude-ls "~1.1.2" + +type-detect@4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" + integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== + +type-fest@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" + integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== + +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.8.3: + version "4.8.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== + +uglify-es@^3.1.9: + version "3.3.9" + resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677" + integrity sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ== + dependencies: + commander "~2.13.0" + source-map "~0.6.1" + +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + +unicode-canonical-property-names-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" + integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== + +unicode-match-property-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" + integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== + dependencies: + unicode-canonical-property-names-ecmascript "^2.0.0" + unicode-property-aliases-ecmascript "^2.0.0" + +unicode-match-property-value-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz#1a01aa57247c14c568b89775a54938788189a714" + integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw== + +unicode-property-aliases-ecmascript@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" + integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +universalify@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" + integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== + +unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +update-browserslist-db@^1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" + integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== + +url-parse@^1.5.3: + version "1.5.10" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== + dependencies: + querystringify "^2.1.1" + requires-port "^1.0.0" + +use-latest-callback@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/use-latest-callback/-/use-latest-callback-0.1.5.tgz#a4a836c08fa72f6608730b5b8f4bbd9c57c04f51" + integrity sha512-HtHatS2U4/h32NlkhupDsPlrbiD27gSH5swBdtXbCAlc6pfOFzaj0FehW/FO12rx8j2Vy4/lJScCiJyM01E+bQ== + +use-sync-external-store@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +uuid@^8.3.0: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + +v8-to-istanbul@^7.0.0: + version "7.1.2" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz#30898d1a7fa0c84d225a2c1434fb958f290883c1" + integrity sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^1.6.0" + source-map "^0.7.3" + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +vlq@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" + integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== + +w3c-hr-time@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" + integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== + dependencies: + browser-process-hrtime "^1.0.0" + +w3c-xmlserializer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" + integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== + dependencies: + xml-name-validator "^3.0.0" + +walker@^1.0.7, walker@~1.0.5: + version "1.0.8" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" + integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== + dependencies: + makeerror "1.0.12" + +warn-once@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.1.tgz#952088f4fb56896e73fd4e6a3767272a3fccce43" + integrity sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q== + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +webidl-conversions@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" + integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== + +webidl-conversions@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" + integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== + +whatwg-encoding@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-fetch@^3.0.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" + integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== + +whatwg-mimetype@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +whatwg-url@^8.0.0, whatwg-url@^8.5.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" + integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== + dependencies: + lodash "^4.7.0" + tr46 "^2.1.0" + webidl-conversions "^6.1.0" + +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== + +which@^1.2.9: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1, which@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@^1.2.3, word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +write-file-atomic@^2.3.0: + version "2.4.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" + integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +ws@^6.1.4: + version "6.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" + integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== + dependencies: + async-limiter "~1.0.0" + +ws@^7, ws@^7.4.6, ws@^7.5.1: + version "7.5.9" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" + integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== + +xtend@~4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +y18n@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs@^15.1.0, yargs@^15.3.1, yargs@^15.4.1: + version "15.4.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" + integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 97b25bd9b9543900140f307528810984495b1b20 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 4 Nov 2022 19:54:10 +0200 Subject: [PATCH 036/121] Fix debug build --- .../project.pbxproj | 10 ++++--- .../xcschemes/ReactNativeExample.xcscheme | 2 +- .../ios/ReactNativeExample/Info.plist | 2 ++ .../screens/RawAdyenBancontactCardScreen.tsx | 2 +- .../src/screens/RawCardDataScreen.tsx | 2 +- .../src/screens/RawPhoneNumberScreen.tsx | 2 +- .../src/screens/RawRetailOutletScreen.tsx | 2 +- .../src/screens/SettingsScreen.tsx | 27 +++++++++---------- 8 files changed, 25 insertions(+), 24 deletions(-) diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj index 0f4905a73..4f2322c11 100644 --- a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -12,7 +12,7 @@ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - 8460AFD42915662E0045630D /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 8460AFD32915662E0045630D /* main.jsbundle */; }; + 849FAA83291588E600CC003E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 849FAA82291588E600CC003E /* main.jsbundle */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -30,7 +30,7 @@ 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; sourceTree = ""; }; 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; - 8460AFD32915662E0045630D /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; + 849FAA82291588E600CC003E /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ @@ -67,6 +67,7 @@ 13B07FAE1A68108700A75B9A /* ReactNativeExample */ = { isa = PBXGroup; children = ( + 849FAA82291588E600CC003E /* main.jsbundle */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 13B07FB51A68108700A75B9A /* Images.xcassets */, @@ -97,7 +98,6 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 8460AFD32915662E0045630D /* main.jsbundle */, 13B07FAE1A68108700A75B9A /* ReactNativeExample */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */, @@ -190,7 +190,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 8460AFD42915662E0045630D /* main.jsbundle in Resources */, + 849FAA83291588E600CC003E /* main.jsbundle in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, ); @@ -312,6 +312,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N8UN9TR5DY; ENABLE_BITCODE = NO; INFOPLIST_FILE = ReactNativeExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -338,6 +339,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N8UN9TR5DY; INFOPLIST_FILE = ReactNativeExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme index ad7f2f06a..647292efc 100644 --- a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme +++ b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme @@ -41,7 +41,7 @@ NSAppTransportSecurity + NSAllowsArbitraryLoads + NSExceptionDomains localhost diff --git a/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx b/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx index 38c708091..7eee80fdf 100644 --- a/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx @@ -23,7 +23,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { +const RawAdyenBancontactCardScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/ReactNativeExample/src/screens/RawCardDataScreen.tsx b/ReactNativeExample/src/screens/RawCardDataScreen.tsx index a750a8257..09f05d3a2 100644 --- a/ReactNativeExample/src/screens/RawCardDataScreen.tsx +++ b/ReactNativeExample/src/screens/RawCardDataScreen.tsx @@ -22,7 +22,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawCardDataScreen = (props: RawDataScreenProps) => { +const RawCardDataScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx b/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx index bf7eaa2a0..2150bdbad 100644 --- a/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx +++ b/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx @@ -17,7 +17,7 @@ import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { +const RawPhoneNumberDataScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx b/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx index f14ee9cb2..a7d92ba12 100644 --- a/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx +++ b/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx @@ -17,7 +17,7 @@ import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawRetailOutletScreen = (props: RawDataScreenProps) => { +const RawRetailOutletScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/ReactNativeExample/src/screens/SettingsScreen.tsx b/ReactNativeExample/src/screens/SettingsScreen.tsx index 35ab07213..00929d265 100644 --- a/ReactNativeExample/src/screens/SettingsScreen.tsx +++ b/ReactNativeExample/src/screens/SettingsScreen.tsx @@ -26,7 +26,7 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined// = "7ecce42b-b641-4c7d-a605-f786f3e201ce"; +export let customApiKey: string | undefined; export let customClientToken: string | undefined; // @ts-ignore @@ -229,9 +229,8 @@ const SettingsScreen = ({ navigation }) => { - ( + { + lineItems.map((item, index) => { { {item.amount} - )} - ListFooterComponent={ - - Total - - {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} - - } - /> + }) + } + + Total + + {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} + ); } From 61e1d721bc328b0d624fa6f5ec11255deb5e3373 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 7 Nov 2022 09:00:50 +0200 Subject: [PATCH 037/121] Move new example app --- ReactNativeExample/android/app/build.gradle | 313 - ReactNativeExample/android/app/debug.keystore | Bin 2257 -> 0 bytes .../android/app/proguard-rules.pro | 10 - .../android/app/src/debug/AndroidManifest.xml | 13 - .../android/app/src/main/AndroidManifest.xml | 26 - .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 3056 -> 0 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 5024 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2096 -> 0 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 2858 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 4569 -> 0 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 7098 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 6464 -> 0 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 10676 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 9250 -> 0 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 15523 -> 0 bytes .../app/src/main/res/values/strings.xml | 3 - .../app/src/main/res/values/styles.xml | 9 - ReactNativeExample/android/build.gradle | 51 - ReactNativeExample/android/gradle.properties | 40 - .../android/gradle/wrapper/gradle-wrapper.jar | Bin 59821 -> 0 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 - ReactNativeExample/android/gradlew | 234 - ReactNativeExample/android/gradlew.bat | 89 - ReactNativeExample/android/settings.gradle | 11 - ReactNativeExample/app.json | 4 - ReactNativeExample/babel.config.js | 16 - ReactNativeExample/ios/Podfile | 62 - ReactNativeExample/ios/Podfile.lock | 502 - .../project.pbxproj | 521 - .../xcschemes/ReactNativeExample.xcscheme | 88 - .../contents.xcworkspacedata | 10 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../ios/ReactNativeExample/AppDelegate.h | 8 - .../AppIcon.appiconset/Contents.json | 53 - .../Images.xcassets/Contents.json | 6 - .../ios/ReactNativeExample/Info.plist | 54 - .../LaunchScreen.storyboard | 47 - .../ios/ReactNativeExample/main.m | 10 - ReactNativeExample/metro.config.js | 40 - ReactNativeExample/package.json | 58 - ReactNativeExample/src/App.tsx | 34 - ReactNativeExample/src/components/Button.tsx | 23 - ReactNativeExample/src/components/Heading.tsx | 50 - .../PrimerCardNumberInputElement.tsx | 3 - ReactNativeExample/src/components/Section.tsx | 44 - .../src/components/TextField.tsx | 42 - ReactNativeExample/src/helpers/helpers.ts | 10 - ReactNativeExample/src/models/Environment.ts | 51 - ReactNativeExample/src/models/IAppSettings.ts | 42 - .../src/models/IClientSession.ts | 4 - .../src/models/IClientSessionRequestBody.ts | 182 - ReactNativeExample/src/models/IPayment.ts | 78 - .../src/models/RawDataScreenProps.ts | 6 - ReactNativeExample/src/models/Section.tsx | 34 - ReactNativeExample/src/network/APIVersion.ts | 22 - ReactNativeExample/src/network/Environment.ts | 89 - ReactNativeExample/src/network/api.ts | 173 - .../src/screens/CheckoutScreen.tsx | 262 - .../src/screens/HeadlessCheckoutScreen.tsx | 410 - .../src/screens/NewLineItemSreen.tsx | 134 - .../screens/RawAdyenBancontactCardScreen.tsx | 243 - .../src/screens/RawCardDataScreen.tsx | 264 - .../src/screens/RawPhoneNumberScreen.tsx | 174 - .../src/screens/RawRetailOutletScreen.tsx | 184 - .../src/screens/ResultScreen.tsx | 65 - .../src/screens/SettingsScreen.tsx | 797 - ReactNativeExample/src/styles.tsx | 54 - ReactNativeExample/yarn.lock | 7307 - {ReactNativeExample => example}/.buckconfig | 0 {ReactNativeExample => example}/.eslintrc.js | 0 {ReactNativeExample => example}/.gitignore | 0 .../.prettierrc.js | 0 .../.watchmanconfig | 0 {ReactNativeExample => example}/App.tsx | 0 {ReactNativeExample => example}/Gemfile | 0 .../__tests__/App-test.tsx | 0 .../_bundle/config | 0 {ReactNativeExample => example}/_node-version | 0 {ReactNativeExample => example}/_ruby-version | 0 example/android/.project | 28 - .../org.eclipse.buildship.core.prefs | 2 - .../android/app/_BUCK | 0 example/android/app/build.gradle | 155 +- .../android/app/build_defs.bzl | 0 example/android/app/proguard-rules.pro | 3 - .../android/app/src/debug/AndroidManifest.xml | 7 +- .../ReactNativeFlipper.java | 69 - .../ReactNativeFlipper.java | 0 .../android/app/src/main/AndroidManifest.xml | 26 +- .../primerioreactnative/MainActivity.java | 15 - .../primerioreactnative/MainApplication.java | 81 - .../com/reactnativeexample/MainActivity.java | 0 .../reactnativeexample/MainApplication.java | 0 .../MainApplicationReactNativeHost.java | 0 .../components/MainComponentsRegistry.java | 0 ...ApplicationTurboModuleManagerDelegate.java | 0 .../android/app/src/main/jni/CMakeLists.txt | 0 .../jni/MainApplicationModuleProvider.cpp | 0 .../main/jni/MainApplicationModuleProvider.h | 0 ...nApplicationTurboModuleManagerDelegate.cpp | 0 ...ainApplicationTurboModuleManagerDelegate.h | 0 .../src/main/jni/MainComponentsRegistry.cpp | 0 .../app/src/main/jni/MainComponentsRegistry.h | 0 .../android/app/src/main/jni/OnLoad.cpp | 0 .../res/drawable/rn_edit_text_material.xml | 0 .../app/src/main/res/values/strings.xml | 2 +- .../app/src/main/res/values/styles.xml | 7 +- example/android/build.gradle | 29 +- example/android/gradle.properties | 26 +- .../android/gradle/wrapper/gradle-wrapper.jar | Bin 55616 -> 59821 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 +- example/android/gradlew | 257 +- example/android/gradlew.bat | 24 +- example/android/settings.gradle | 9 +- example/app.json | 4 +- {ReactNativeExample => example}/index.js | 0 example/index.tsx | 5 - example/ios/Bridge.swift | 8 - example/ios/File.swift | 6 - example/ios/Podfile | 121 +- example/ios/Podfile.lock | 2 +- .../ios/ReactNativeExample-Bridging-Header.h | 3 - .../project.pbxproj | 573 +- .../xcschemes/ReactNativeExample.xcscheme | 27 +- .../xcshareddata/WorkspaceSettings.xcsettings | 8 - example/ios/ReactNativeExample/AppDelegate.h | 7 - example/ios/ReactNativeExample/AppDelegate.m | 133 - .../ios/ReactNativeExample/AppDelegate.mm | 0 example/ios/ReactNativeExample/Info.plist | 22 +- .../LaunchScreen.storyboard | 15 +- .../ReactNativeExample.entitlements | 10 - example/ios/ReactNativeExample/main.m | 10 +- .../ios/ReactNativeExampleTests/Info.plist | 0 .../ReactNativeExampleTests.m | 0 .../ios/_xcode.env | 0 example/ios/main.jsbundle | 115452 ++++++++++++++- example/package-lock.json | 6304 - example/package.json | 25 +- .../screens/RawAdyenBancontactCardScreen.tsx | 4 +- example/src/screens/RawCardDataScreen.tsx | 4 +- example/src/screens/RawPhoneNumberScreen.tsx | 2 +- example/src/screens/RawRetailOutletScreen.tsx | 2 +- example/src/screens/SettingsScreen.tsx | 27 +- {ReactNativeExample => example}/tsconfig.json | 0 example/yarn.lock | 1258 +- 145 files changed, 116014 insertions(+), 21835 deletions(-) delete mode 100644 ReactNativeExample/android/app/build.gradle delete mode 100644 ReactNativeExample/android/app/debug.keystore delete mode 100644 ReactNativeExample/android/app/proguard-rules.pro delete mode 100644 ReactNativeExample/android/app/src/debug/AndroidManifest.xml delete mode 100644 ReactNativeExample/android/app/src/main/AndroidManifest.xml delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png delete mode 100644 ReactNativeExample/android/app/src/main/res/values/strings.xml delete mode 100644 ReactNativeExample/android/app/src/main/res/values/styles.xml delete mode 100644 ReactNativeExample/android/build.gradle delete mode 100644 ReactNativeExample/android/gradle.properties delete mode 100644 ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar delete mode 100644 ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties delete mode 100755 ReactNativeExample/android/gradlew delete mode 100644 ReactNativeExample/android/gradlew.bat delete mode 100644 ReactNativeExample/android/settings.gradle delete mode 100644 ReactNativeExample/app.json delete mode 100644 ReactNativeExample/babel.config.js delete mode 100644 ReactNativeExample/ios/Podfile delete mode 100644 ReactNativeExample/ios/Podfile.lock delete mode 100644 ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj delete mode 100644 ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme delete mode 100644 ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata delete mode 100644 ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 ReactNativeExample/ios/ReactNativeExample/AppDelegate.h delete mode 100644 ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json delete mode 100644 ReactNativeExample/ios/ReactNativeExample/Info.plist delete mode 100644 ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard delete mode 100644 ReactNativeExample/ios/ReactNativeExample/main.m delete mode 100644 ReactNativeExample/metro.config.js delete mode 100644 ReactNativeExample/package.json delete mode 100644 ReactNativeExample/src/App.tsx delete mode 100644 ReactNativeExample/src/components/Button.tsx delete mode 100644 ReactNativeExample/src/components/Heading.tsx delete mode 100644 ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx delete mode 100644 ReactNativeExample/src/components/Section.tsx delete mode 100644 ReactNativeExample/src/components/TextField.tsx delete mode 100644 ReactNativeExample/src/helpers/helpers.ts delete mode 100644 ReactNativeExample/src/models/Environment.ts delete mode 100644 ReactNativeExample/src/models/IAppSettings.ts delete mode 100644 ReactNativeExample/src/models/IClientSession.ts delete mode 100644 ReactNativeExample/src/models/IClientSessionRequestBody.ts delete mode 100644 ReactNativeExample/src/models/IPayment.ts delete mode 100644 ReactNativeExample/src/models/RawDataScreenProps.ts delete mode 100644 ReactNativeExample/src/models/Section.tsx delete mode 100644 ReactNativeExample/src/network/APIVersion.ts delete mode 100644 ReactNativeExample/src/network/Environment.ts delete mode 100644 ReactNativeExample/src/network/api.ts delete mode 100644 ReactNativeExample/src/screens/CheckoutScreen.tsx delete mode 100644 ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx delete mode 100644 ReactNativeExample/src/screens/NewLineItemSreen.tsx delete mode 100644 ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx delete mode 100644 ReactNativeExample/src/screens/RawCardDataScreen.tsx delete mode 100644 ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx delete mode 100644 ReactNativeExample/src/screens/RawRetailOutletScreen.tsx delete mode 100644 ReactNativeExample/src/screens/ResultScreen.tsx delete mode 100644 ReactNativeExample/src/screens/SettingsScreen.tsx delete mode 100644 ReactNativeExample/src/styles.tsx delete mode 100644 ReactNativeExample/yarn.lock rename {ReactNativeExample => example}/.buckconfig (100%) rename {ReactNativeExample => example}/.eslintrc.js (100%) rename {ReactNativeExample => example}/.gitignore (100%) rename {ReactNativeExample => example}/.prettierrc.js (100%) rename {ReactNativeExample => example}/.watchmanconfig (100%) rename {ReactNativeExample => example}/App.tsx (100%) rename {ReactNativeExample => example}/Gemfile (100%) rename {ReactNativeExample => example}/__tests__/App-test.tsx (100%) rename {ReactNativeExample => example}/_bundle/config (100%) rename {ReactNativeExample => example}/_node-version (100%) rename {ReactNativeExample => example}/_ruby-version (100%) delete mode 100644 example/android/.project delete mode 100644 example/android/.settings/org.eclipse.buildship.core.prefs rename {ReactNativeExample => example}/android/app/_BUCK (100%) rename {ReactNativeExample => example}/android/app/build_defs.bzl (100%) delete mode 100644 example/android/app/src/debug/java/com/example/primerioreactnative/ReactNativeFlipper.java rename {ReactNativeExample => example}/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java (100%) delete mode 100644 example/android/app/src/main/java/com/example/primerioreactnative/MainActivity.java delete mode 100644 example/android/app/src/main/java/com/example/primerioreactnative/MainApplication.java rename {ReactNativeExample => example}/android/app/src/main/java/com/reactnativeexample/MainActivity.java (100%) rename {ReactNativeExample => example}/android/app/src/main/java/com/reactnativeexample/MainApplication.java (100%) rename {ReactNativeExample => example}/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java (100%) rename {ReactNativeExample => example}/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java (100%) rename {ReactNativeExample => example}/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/CMakeLists.txt (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainApplicationModuleProvider.cpp (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainApplicationModuleProvider.h (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainComponentsRegistry.cpp (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/MainComponentsRegistry.h (100%) rename {ReactNativeExample => example}/android/app/src/main/jni/OnLoad.cpp (100%) rename {ReactNativeExample => example}/android/app/src/main/res/drawable/rn_edit_text_material.xml (100%) rename {ReactNativeExample => example}/index.js (100%) delete mode 100644 example/index.tsx delete mode 100644 example/ios/Bridge.swift delete mode 100644 example/ios/File.swift delete mode 100644 example/ios/ReactNativeExample-Bridging-Header.h delete mode 100644 example/ios/ReactNativeExample.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings delete mode 100644 example/ios/ReactNativeExample/AppDelegate.m rename {ReactNativeExample => example}/ios/ReactNativeExample/AppDelegate.mm (100%) delete mode 100644 example/ios/ReactNativeExample/ReactNativeExample.entitlements rename {ReactNativeExample => example}/ios/ReactNativeExampleTests/Info.plist (100%) rename {ReactNativeExample => example}/ios/ReactNativeExampleTests/ReactNativeExampleTests.m (100%) rename {ReactNativeExample => example}/ios/_xcode.env (100%) delete mode 100644 example/package-lock.json rename {ReactNativeExample => example}/tsconfig.json (100%) diff --git a/ReactNativeExample/android/app/build.gradle b/ReactNativeExample/android/app/build.gradle deleted file mode 100644 index b6332ca54..000000000 --- a/ReactNativeExample/android/app/build.gradle +++ /dev/null @@ -1,313 +0,0 @@ -apply plugin: "com.android.application" - -import com.android.build.OutputFile -import org.apache.tools.ant.taskdefs.condition.Os - -/** - * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets - * and bundleReleaseJsAndAssets). - * These basically call `react-native bundle` with the correct arguments during the Android build - * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the - * bundle directly from the development server. Below you can see all the possible configurations - * and their defaults. If you decide to add a configuration block, make sure to add it before the - * `apply from: "../../node_modules/react-native/react.gradle"` line. - * - * project.ext.react = [ - * // the name of the generated asset file containing your JS bundle - * bundleAssetName: "index.android.bundle", - * - * // the entry file for bundle generation. If none specified and - * // "index.android.js" exists, it will be used. Otherwise "index.js" is - * // default. Can be overridden with ENTRY_FILE environment variable. - * entryFile: "index.android.js", - * - * // https://reactnative.dev/docs/performance#enable-the-ram-format - * bundleCommand: "ram-bundle", - * - * // whether to bundle JS and assets in debug mode - * bundleInDebug: false, - * - * // whether to bundle JS and assets in release mode - * bundleInRelease: true, - * - * // whether to bundle JS and assets in another build variant (if configured). - * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants - * // The configuration property can be in the following formats - * // 'bundleIn${productFlavor}${buildType}' - * // 'bundleIn${buildType}' - * // bundleInFreeDebug: true, - * // bundleInPaidRelease: true, - * // bundleInBeta: true, - * - * // whether to disable dev mode in custom build variants (by default only disabled in release) - * // for example: to disable dev mode in the staging build type (if configured) - * devDisabledInStaging: true, - * // The configuration property can be in the following formats - * // 'devDisabledIn${productFlavor}${buildType}' - * // 'devDisabledIn${buildType}' - * - * // the root of your project, i.e. where "package.json" lives - * root: "../../", - * - * // where to put the JS bundle asset in debug mode - * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", - * - * // where to put the JS bundle asset in release mode - * jsBundleDirRelease: "$buildDir/intermediates/assets/release", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in debug mode - * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in release mode - * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", - * - * // by default the gradle tasks are skipped if none of the JS files or assets change; this means - * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to - * // date; if you have any other folders that you want to ignore for performance reasons (gradle - * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ - * // for example, you might want to remove it from here. - * inputExcludes: ["android/**", "ios/**"], - * - * // override which node gets called and with what additional arguments - * nodeExecutableAndArgs: ["node"], - * - * // supply additional arguments to the packager - * extraPackagerArgs: [] - * ] - */ - -project.ext.react = [ - enableHermes: true, // clean and rebuild if changing -] - -apply from: "../../node_modules/react-native/react.gradle" - -/** - * Set this to true to create two separate APKs instead of one: - * - An APK that only works on ARM devices - * - An APK that only works on x86 devices - * The advantage is the size of the APK is reduced by about 4MB. - * Upload all the APKs to the Play Store and people will download - * the correct one based on the CPU architecture of their device. - */ -def enableSeparateBuildPerCPUArchitecture = false - -/** - * Run Proguard to shrink the Java bytecode in release builds. - */ -def enableProguardInReleaseBuilds = false - -/** - * The preferred build flavor of JavaScriptCore. - * - * For example, to use the international variant, you can use: - * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` - * - * The international variant includes ICU i18n library and necessary data - * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that - * give correct results when using with locales other than en-US. Note that - * this variant is about 6MiB larger per architecture than default. - */ -def jscFlavor = 'org.webkit:android-jsc:+' - -/** - * Whether to enable the Hermes VM. - * - * This should be set on project.ext.react and that value will be read here. If it is not set - * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode - * and the benefits of using Hermes will therefore be sharply reduced. - */ -def enableHermes = project.ext.react.get("enableHermes", false); - -/** - * Architectures to build native code for. - */ -def reactNativeArchitectures() { - def value = project.getProperties().get("reactNativeArchitectures") - return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] -} - -android { - ndkVersion rootProject.ext.ndkVersion - - compileSdkVersion rootProject.ext.compileSdkVersion - - defaultConfig { - applicationId "com.reactnativeexample" - minSdkVersion rootProject.ext.minSdkVersion - targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0" - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() - - if (isNewArchitectureEnabled()) { - // We configure the CMake build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - arguments "-DPROJECT_BUILD_DIR=$buildDir", - "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", - "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", - "-DNODE_MODULES_DIR=$rootDir/../node_modules", - "-DANDROID_STL=c++_shared" - } - } - if (!enableSeparateBuildPerCPUArchitecture) { - ndk { - abiFilters (*reactNativeArchitectures()) - } - } - } - } - - if (isNewArchitectureEnabled()) { - // We configure the NDK build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - path "$projectDir/src/main/jni/CMakeLists.txt" - } - } - def reactAndroidProjectDir = project(':ReactAndroid').projectDir - def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") - } - def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") - } - afterEvaluate { - // If you wish to add a custom TurboModule or component locally, - // you should uncomment this line. - // preBuild.dependsOn("generateCodegenArtifactsFromSchema") - preDebugBuild.dependsOn(packageReactNdkDebugLibs) - preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) - - // Due to a bug inside AGP, we have to explicitly set a dependency - // between configureCMakeDebug* tasks and the preBuild tasks. - // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 - configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) - configureCMakeDebug.dependsOn(preDebugBuild) - reactNativeArchitectures().each { architecture -> - tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { - dependsOn("preDebugBuild") - } - tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { - dependsOn("preReleaseBuild") - } - } - } - } - - splits { - abi { - reset() - enable enableSeparateBuildPerCPUArchitecture - universalApk false // If true, also generate a universal APK - include (*reactNativeArchitectures()) - } - } - signingConfigs { - debug { - storeFile file('debug.keystore') - storePassword 'android' - keyAlias 'androiddebugkey' - keyPassword 'android' - } - } - buildTypes { - debug { - signingConfig signingConfigs.debug - } - release { - // Caution! In production, you need to generate your own keystore file. - // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug - minifyEnabled enableProguardInReleaseBuilds - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" - } - } - - // applicationVariants are e.g. debug, release - applicationVariants.all { variant -> - variant.outputs.each { output -> - // For each separate APK per architecture, set a unique version code as described here: - // https://developer.android.com/studio/build/configure-apk-splits.html - // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. - def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] - def abi = output.getFilter(OutputFile.ABI) - if (abi != null) { // null for the universal-debug, universal-release variants - output.versionCodeOverride = - defaultConfig.versionCode * 1000 + versionCodes.get(abi) - } - - } - } -} - -dependencies { - implementation fileTree(dir: "libs", include: ["*.jar"]) - - //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:+" // From node_modules - - implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" - - debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { - exclude group:'com.facebook.fbjni' - } - - debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { - exclude group:'com.facebook.flipper' - exclude group:'com.squareup.okhttp3', module:'okhttp' - } - - debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { - exclude group:'com.facebook.flipper' - } - - if (enableHermes) { - //noinspection GradleDynamicVersion - implementation("com.facebook.react:hermes-engine:+") { // From node_modules - exclude group:'com.facebook.fbjni' - } - } else { - implementation jscFlavor - } -} - -if (isNewArchitectureEnabled()) { - // If new architecture is enabled, we let you build RN from source - // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. - // This will be applied to all the imported transtitive dependency. - configurations.all { - resolutionStrategy.dependencySubstitution { - substitute(module("com.facebook.react:react-native")) - .using(project(":ReactAndroid")) - .because("On New Architecture we're building React Native from source") - substitute(module("com.facebook.react:hermes-engine")) - .using(project(":ReactAndroid:hermes-engine")) - .because("On New Architecture we're building Hermes from source") - } - } -} - -// Run this once to be able to run the application with BUCK -// puts all compile dependencies into folder libs for BUCK to use -task copyDownloadableDepsToLibs(type: Copy) { - from configurations.implementation - into 'libs' -} - -apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) - -def isNewArchitectureEnabled() { - // To opt-in for the New Architecture, you can either: - // - Set `newArchEnabled` to true inside the `gradle.properties` file - // - Invoke gradle with `-newArchEnabled=true` - // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` - return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" -} diff --git a/ReactNativeExample/android/app/debug.keystore b/ReactNativeExample/android/app/debug.keystore deleted file mode 100644 index 364e105ed39fbfd62001429a68140672b06ec0de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2257 zcmchYXEfYt8;7T1^dLH$VOTZ%2NOdOH5j5LYLtZ0q7x-V8_6gU5)#7dkq{HTmsfNq zB3ZqcAxeY^G10@?efK?Q&)M(qInVv!xjx+IKEL}p*K@LYvIzo#AZG>st5|P)KF1_Z;y){W{<7K{nl!CPuE z_^(!C(Ol0n8 zK13*rzAtW>(wULKPRYLd7G18F8#1P`V*9`(Poj26eOXYyBVZPno~Cvvhx7vPjAuZo zF?VD!zB~QG(!zbw#qsxT8%BSpqMZ4f70ZPn-3y$L8{EVbbN9$H`B&Z1quk9tgp5FM zuxp3pJ0b8u|3+#5bkJ4SRnCF2l7#DyLYXYY8*?OuAwK4E6J{0N=O3QNVzQ$L#FKkR zi-c@&!nDvezOV$i$Lr}iF$XEcwnybQ6WZrMKuw8gCL^U#D;q3t&HpTbqyD%vG=TeDlzCT~MXUPC|Leb-Uk+ z=vnMd(|>ld?Fh>V8poP;q;;nc@en$|rnP0ytzD&fFkCeUE^kG9Kx4wUh!!rpjwKDP zyw_e|a^x_w3E zP}}@$g>*LLJ4i0`Gx)qltL}@;mDv}D*xR^oeWcWdPkW@Uu)B^X&4W1$p6}ze!zudJ zyiLg@uggoMIArBr*27EZV7djDg@W1MaL+rcZ-lrANJQ%%>u8)ZMWU@R2qtnmG(acP z0d_^!t>}5W zpT`*2NR+0+SpTHb+6Js4b;%LJB;B_-ChhnU5py}iJtku*hm5F0!iql8Hrpcy1aYbT z1*dKC5ua6pMX@@iONI?Hpr%h;&YaXp9n!ND7-=a%BD7v&g zOO41M6EbE24mJ#S$Ui0-brR5ML%@|ndz^)YLMMV1atna{Fw<;TF@>d&F|!Z>8eg>>hkFrV)W+uv=`^F9^e zzzM2*oOjT9%gLoub%(R57p-`TXFe#oh1_{&N-YN z<}artH|m=d8TQuKSWE)Z%puU|g|^^NFwC#N=@dPhasyYjoy(fdEVfKR@cXKHZV-`06HsP`|Ftx;8(YD$fFXumLWbGnu$GMqRncXYY9mwz9$ap zQtfZB^_BeNYITh^hA7+(XNFox5WMeG_LtJ%*Q}$8VKDI_p8^pqX)}NMb`0e|wgF7D zuQACY_Ua<1ri{;Jwt@_1sW9zzdgnyh_O#8y+C;LcZq6=4e^cs6KvmK@$vVpKFGbQ= z$)Eux5C|Fx;Gtmv9^#Y-g@7Rt7*eLp5n!gJmn7&B_L$G?NCN`AP>cXQEz}%F%K;vUs{+l4Q{}eWW;ATe2 zqvXzxoIDy(u;F2q1JH7Sf;{jy_j})F+cKlIOmNfjBGHoG^CN zM|Ho&&X|L-36f}Q-obEACz`sI%2f&k>z5c$2TyTSj~vmO)BW~+N^kt`Jt@R|s!){H ze1_eCrlNaPkJQhL$WG&iRvF*YG=gXd1IyYQ9ew|iYn7r~g!wOnw;@n42>enAxBv*A zEmV*N#sxdicyNM=A4|yaOC5MByts}s_Hpfj|y<6G=o=!3S@eIFKDdpR7|FY>L&Wat&oW&cm&X~ z5Bt>Fcq(fgnvlvLSYg&o6>&fY`ODg4`V^lWWD=%oJ#Kbad2u~! zLECFS*??>|vDsNR&pH=Ze0Eo`sC_G`OjoEKVHY|wmwlX&(XBE<@sx3Hd^gtd-fNwUHsylg06p`U2y_={u}Bc - - - - - - - - diff --git a/ReactNativeExample/android/app/src/main/AndroidManifest.xml b/ReactNativeExample/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 14e5ce464..000000000 --- a/ReactNativeExample/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/ReactNativeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index a2f5908281d070150700378b64a84c7db1f97aa1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3056 zcmV(P)KhZB4W`O-$6PEY7dL@435|%iVhscI7#HXTET` zzkBaFzt27A{C?*?2n!1>p(V70me4Z57os7_P3wngt7(|N?Oyh#`(O{OZ1{A4;H+Oi zbkJV-pnX%EV7$w+V1moMaYCgzJI-a^GQPsJHL=>Zb!M$&E7r9HyP>8`*Pg_->7CeN zOX|dqbE6DBJL=}Mqt2*1e1I>(L-HP&UhjA?q1x7zSXD}D&D-Om%sC#AMr*KVk>dy;pT>Dpn#K6-YX8)fL(Q8(04+g?ah97XT2i$m2u z-*XXz7%$`O#x&6Oolq?+sA+c; zdg7fXirTUG`+!=-QudtfOZR*6Z3~!#;X;oEv56*-B z&gIGE3os@3O)sFP?zf;Z#kt18-o>IeueS!=#X^8WfI@&mfI@)!F(BkYxSfC*Gb*AM zau9@B_4f3=m1I71l8mRD>8A(lNb6V#dCpSKW%TT@VIMvFvz!K$oN1v#E@%Fp3O_sQ zmbSM-`}i8WCzSyPl?NqS^NqOYg4+tXT52ItLoTA;4mfx3-lev-HadLiA}!)%PwV)f zumi|*v}_P;*hk9-c*ibZqBd_ixhLQA+Xr>akm~QJCpfoT!u5JA_l@4qgMRf+Bi(Gh zBOtYM<*PnDOA}ls-7YrTVWimdA{y^37Q#BV>2&NKUfl(9F9G}lZ{!-VfTnZh-}vANUA=kZz5}{^<2t=| z{D>%{4**GFekzA~Ja)m81w<3IaIXdft(FZDD2oTruW#SJ?{Iv&cKenn!x!z;LfueD zEgN@#Px>AgO$sc`OMv1T5S~rp@e3-U7LqvJvr%uyV7jUKDBZYor^n# zR8bDS*jTTdV4l8ug<>o_Wk~%F&~lzw`sQGMi5{!yoTBs|8;>L zD=nbWe5~W67Tx`B@_@apzLKH@q=Nnj$a1EoQ%5m|;3}WxR@U0q^=umZUcB}dz5n^8 zPRAi!1T)V8qs-eWs$?h4sVncF`)j&1`Rr+-4of)XCppcuoV#0EZ8^>0Z2LYZirw#G7=POO0U*?2*&a7V zn|Dx3WhqT{6j8J_PmD=@ItKmb-GlN>yH5eJe%-WR0D8jh1;m54AEe#}goz`fh*C%j zA@%m2wr3qZET9NLoVZ5wfGuR*)rV2cmQPWftN8L9hzEHxlofT@rc|PhXZ&SGk>mLC z97(xCGaSV+)DeysP_%tl@Oe<6k9|^VIM*mQ(IU5vme)80qz-aOT3T(VOxU><7R4#;RZfTQeI$^m&cw@}f=eBDYZ+b&N$LyX$Au8*J1b9WPC zk_wIhRHgu=f&&@Yxg-Xl1xEnl3xHOm1xE(NEy@oLx8xXme*uJ-7cg)a=lVq}gm3{! z0}fh^fyW*tAa%6Dcq0I5z(K2#0Ga*a*!mkF5#0&|BxSS`fXa(?^Be)lY0}Me1R$45 z6OI7HbFTOffV^;gfOt%b+SH$3e*q)_&;q0p$}uAcAiX>XkqU#c790SX&E2~lkOB_G zKJ`C9ki9?xz)+Cm2tYb{js(c8o9FleQsy}_Ad5d7F((TOP!GQbT(nFhx6IBlIHLQ zgXXeN84Yfl5^NsSQ!kRoGoVyhyQXsYTgXWy@*K>_h02S>)Io^59+E)h zGFV5n!hjqv%Oc>+V;J$A_ekQjz$f-;Uace07pQvY6}%aIZUZ}_m*>DHx|mL$gUlGo zpJtxJ-3l!SVB~J4l=zq>$T4VaQ7?R}!7V7tvO_bJ8`$|ImsvN@kpXGtISd6|N&r&B zkpY!Z%;q4z)rd81@12)8F>qUU_(dxjkWQYX4XAxEmH?G>4ruF!AX<2qpdqxJ3I!SaZj(bdjDpXdS%NK!YvET$}#ao zW-QD5;qF}ZN4;`6g&z16w|Qd=`#4hg+UF^02UgmQka=%|A!5CjRL86{{mwzf=~v{&!Uo zYhJ00Shva@yJ59^Qq~$b)+5%gl79Qv*Gl#YS+BO+RQrr$dmQX)o6o-P_wHC$#H%aa z5o>q~f8c=-2(k3lb!CqFQJ;;7+2h#B$V_anm}>Zr(v{I_-09@zzZ yco6bG9zMVq_|y~s4rIt6QD_M*p(V5oh~@tmE4?#%!pj)|0000T-ViIFIPY+_yk1-RB&z5bHD$YnPieqLK5EI`ThRCq%$YyeCI#k z>wI&j0Rb2DV5|p6T3Syaq)GU^8BR8(!9qaEe6w+TJxLZtBeQf z`>{w%?oW}WhJSMi-;YIE3P2FtzE8p;}`HCT>Lt1o3h65;M`4J@U(hJSYlTt_?Ucf5~AOFjBT-*WTiV_&id z?xIZPQ`>7M-B?*vptTsj)0XBk37V2zTSQ5&6`0#pVU4dg+Hj7pb;*Hq8nfP(P;0i% zZ7k>Q#cTGyguV?0<0^_L$;~g|Qqw58DUr~LB=oigZFOvHc|MCM(KB_4-l{U|t!kPu z{+2Mishq{vnwb2YD{vj{q`%Pz?~D4B&S9Jdt##WlwvtR2)d5RdqcIvrs!MY#BgDI# z+FHxTmgQp-UG66D4?!;I0$Csk<6&IL09jn+yWmHxUf)alPUi3jBIdLtG|Yhn?vga< zJQBnaQ=Z?I+FZj;ke@5f{TVVT$$CMK74HfIhE?eMQ#fvN2%FQ1PrC+PAcEu?B*`Ek zcMD{^pd?8HMV94_qC0g+B1Z0CE-pcWpK=hDdq`{6kCxxq^X`oAYOb3VU6%K=Tx;aG z*aW$1G~wsy!mL})tMisLXN<*g$Kv)zHl{2OA=?^BLb)Q^Vqgm?irrLM$ds;2n7gHt zCDfI8Y=i4)=cx_G!FU+g^_nE(Xu7tj&a&{ln46@U3)^aEf}FHHud~H%_0~Jv>X{Pm z+E&ljy!{$my1j|HYXdy;#&&l9YpovJ;5yoQYJ+hw9>!H{(^6+$(%!(HeR~&MP-UER zPR&hH$w*_)D3}#A2joDlamSP}n%Y3H@pNb1wE=G1TFH_~Lp-&?b+q%;2IF8njO(rq zQVx(bn#@hTaqZZ1V{T#&p)zL%!r8%|p|TJLgSztxmyQo|0P;eUU~a0y&4)u?eEeGZ z9M6iN2(zw9a(WoxvL%S*jx5!2$E`ACG}F|2_)UTkqb*jyXm{3{73tLMlU%IiPK(UR4}Uv87uZIacp(XTRUs?6D25qn)QV%Xe&LZ-4bUJM!ZXtnKhY#Ws)^axZkui_Z=7 zOlc@%Gj$nLul=cEH-leGY`0T)`IQzNUSo}amQtL)O>v* zNJH1}B2znb;t8tf4-S6iL2_WuMVr~! zwa+Are(1_>{zqfTcoYN)&#lg$AVibhUwnFA33`np7$V)-5~MQcS~aE|Ha>IxGu+iU z`5{4rdTNR`nUc;CL5tfPI63~BlehRcnJ!4ecxOkD-b&G%-JG+r+}RH~wwPQoxuR(I z-89hLhH@)Hs}fNDM1>DUEO%{C;roF6#Q7w~76179D?Y9}nIJFZhWtv`=QNbzNiUmk zDSV5#xXQtcn9 zM{aI;AO6EH6GJ4^Qk!^F?$-lTQe+9ENYIeS9}cAj>Ir`dLe`4~Dulck2#9{o}JJ8v+QRsAAp*}|A^ z1PxxbEKFxar-$a&mz95(E1mAEVp{l!eF9?^K43Ol`+3Xh5z`aC(r}oEBpJK~e>zRtQ4J3K*r1f79xFs>v z5yhl1PoYg~%s#*ga&W@K>*NW($n~au>D~{Rrf@Tg z^DN4&Bf0C`6J*kHg5nCZIsyU%2RaiZkklvEqTMo0tFeq7{pp8`8oAs7 z6~-A=MiytuV+rI2R*|N=%Y));j8>F)XBFn`Aua-)_GpV`#%pda&MxsalV15+%Oy#U zg!?Gu&m@yfCi8xHM>9*N8|p5TPNucv?3|1$aN$&X6&Ge#g}?H`)4ncN@1whNDHF7u z2vU*@9OcC-MZK}lJ-H5CC@og69P#Ielf`le^Om4BZ|}OK33~dC z9o-007j1SXiTo3P#6`YJ^T4tN;KHfgA=+Bc0h1?>NT@P?=}W;Z=U;!nqzTHQbbu37 zOawJK2$GYeHtTr7EIjL_BS8~lBKT^)+ba(OWBsQT=QR3Ka((u#*VvW=A35XWkJ#?R zpRksL`?_C~VJ9Vz?VlXr?cJgMlaJZX!yWW}pMZni(bBP>?f&c#+p2KwnKwy;D3V1{ zdcX-Pb`YfI=B5+oN?J5>?Ne>U!2oCNarQ&KW7D61$fu$`2FQEWo&*AF%68{fn%L<4 zOsDg%m|-bklj!%zjsYZr0y6BFY|dpfDvJ0R9Qkr&a*QG0F`u&Rh{8=gq(fuuAaWc8 zRmup;5F zR3altfgBJbCrF7LP7t+8-2#HL9pn&HMVoEnPLE@KqNA~~s+Ze0ilWm}ucD8EVHs;p z@@l_VDhtt@6q zmV7pb1RO&XaRT)NOe-&7x7C>07@CZLYyn0GZl-MhPBNddM0N}0jayB22swGh3C!m6~r;0uCdOJ6>+nYo*R9J7Pzo%#X_imc=P;u^O*#06g*l)^?9O^cwu z>?m{qW(CawISAnzIf^A@vr*J$(bj4fMWG!DVMK9umxeS;rF)rOmvZY8%sF7i3NLrQ zCMI5u5>e<&Y4tpb@?!%PGzlgm_c^Z7Y6cO6C?)qfuF)!vOkifE(aGmXko*nI3Yr5_ zB%dP>Y)esVRQrVbP5?CtAV%1ftbeAX zSO5O8m|H+>?Ag7NFznXY-Y8iI#>Xdz<)ojC6nCuqwTY9Hlxg=lc7i-4fdWA$x8y)$ z1cEAfv{E7mnX=ZTvo30>Vc{EJ_@UqAo91Co;@r;u7&viaAa=(LUNnDMq#?t$WP2mu zy5`rr8b||Z0+BS)Iiwj0lqg10xE8QkK#>Cp6zNdxLb-wi+CW5b7zH2+M4p3Cj%WpQ zvV+J2IY@kOFU_|NN}2O}n#&F1oX*)lDd-WJICcPhckHVB{_D}UMo!YA)`reITkCv& z+h-AyO1k3@ZEIrpHB)j~Z(*sF@TFpx2IVtytZ1!gf7rg2x94b*P|1@%EFX{|BMC&F zgHR4<48Z5Wte`o!m*m@iyK=>9%pqjT=xfgQua>)1| zzH!~jLG!rggat+qAIR%H=jrI#Ppid$J{TDkck^wb>Cbnli}}Mj8!tNfx{tXtDDVA6#7kU4k)m;JoI1>JM_ zq-flQ5dpn>kG~=9u{Kp+hETG^OCq!Y^l7JkwUJNUU7izHmd|F@nB0=X2`Ui?!twzb zGEx%cIl)h?ZV$NTnhB6KFgkkRg&@c7ldg>o!`sBcgi%9RE?paz`QmZ@sF(jo1bt^} zOO5xhg(FXLQ|z)6CE=`kWOCVJNJCs#Lx)8bDSWkN@122J_Z`gpPK4kwk4&%uxnuQ z^m`!#WD#Y$Wd7NSpiP4Y;lHtj;pJ#m@{GmdPp+;QnX&E&oUq!YlgQ%hIuM43b=cWO zKEo!Er{mwD8T1>Qs$i2XjF2i zo0yfpKQUwdThrD(TOIY_s`L@_<}B|w^!j*FThM0+#t0G?oR`l(S(2v&bXR}F6HLMU zhVvD4K!6s}uUD^L;|Sxgrb+kFs%8d8Ma>5A9p~uUO=yF*;%~xvAJiA`lls1pq5J%k z6&-yQ$_vP5`-Tr56ws&75Y&Q2;zD?CB_KpRHxzC9hKCR0889>jef)|@@$A?!QIu3r qa)363hF;Bq?>HxvTY6qhhx>m(`%O(!)s{N|0000xsEBz6iy~SX+W%nrKL2KH{`gFsDCOB6ZW0@Yj?g&st+$-t|2c4&NM7M5Tk(z5p1+IN@y}=N)4$Vmgo_?Y@Ck5u}3=}@K z);Ns<{X)3-we^O|gm)Oh1^>hg6g=|b7E-r?H6QeeKvv7{-kP9)eb76lZ>I5?WDjiX z7Qu}=I4t9`G435HO)Jpt^;4t zottB%?uUE#zt^RaO&$**I5GbJM-Nj&Z#XT#=iLsG7*JO@)I~kH1#tl@P}J@i#`XX! zEUc>l4^`@w2_Fsoa*|Guk5hF2XJq0TQ{QXsjnJ)~K{EG*sHQW(a<^vuQkM07vtNw= z{=^9J-YI<#TM>DTE6u^^Z5vsVZx{Lxr@$j8f2PsXr^)~M97)OdjJOe81=H#lTbl`!5}35~o;+uSbUHP+6L00V99ox@t5JT2~=-{-Zvti4(UkQKDs{%?4V4AV3L`G476;|CgCH%rI z;0kA=z$nkcwu1-wIX=yE5wwUO)D;dT0m~o7z(f`*<1B>zJhsG0hYGMgQ0h>ylQYP; zbY|ogjI;7_P6BwI^6ZstC}cL&6%I8~cYe1LP)2R}amKG>qavWEwL0HNzwt@3hu-i0 z>tX4$uXNRX_<>h#Q`kvWAs3Y+9)i~VyAb3%4t+;Ej~o)%J#d6}9XXtC10QpHH*X!(vYjmZ zlmm6A=sN)+Lnfb)wzL90u6B=liNgkPm2tWfvU)a0y=N2gqg_uRzguCqXO<0 zp@5n^hzkW&E&~|ZnlPAz)<%Cdh;IgaTGMjVcP{dLFnX>K+DJ zd?m)lN&&u@soMY!B-jeeZNHfQIu7I&9N?AgMkXKxIC+JQibV=}9;p)91_6sP0x=oO zd9T#KhN9M8uO4rCDa ze;J+@sfk?@C6ke`KmkokKLLvbpNHGP^1^^YoBV^rxnXe8nl%NfKS}ea`^9weO&eZ` zo3Nb?%LfcmGM4c%PpK;~v#XWF+!|RaTd$6126a6)WGQPmv0E@fm9;I@#QpU0rcGEJ zNS_DL26^sx!>ccJF}F){`A0VIvLan^$?MI%g|@ebIFlrG&W$4|8=~H%Xsb{gawm(u zEgD&|uQgc{a;4k6J|qjRZzat^hbRSXZwu7(c-+?ku6G1X0c*0%*CyUsXxlKf=%wfS z7A!7+`^?MrPvs?yo31D=ZCu!3UU`+dR^S>@R%-y+!b$RlnflhseNn10MV5M=0KfZ+ zl9DEH0jK5}{VOgmzKClJ7?+=AED&7I=*K$;ONIUM3nyT|P}|NXn@Qhn<7H$I*mKw1 axPAxe%7rDusX+w*00006jj zwslyNbxW4-gAj;v!J{u#G1>?8h`uw{1?o<0nB+tYjKOW@kQM}bUbgE7^CRD4K zgurXDRXWsX-Q$uVZ0o5KpKdOl5?!YGV|1Cict&~YiG*r%TU43m2Hf99&})mPEvepe z0_$L1e8*kL@h2~YPCajw6Kkw%Bh1Pp)6B|t06|1rR3xRYjBxjSEUmZk@7wX+2&-~! z!V&EdUw!o7hqZI=T4a)^N1D|a=2scW6oZU|Q=}_)gz4pu#43{muRW1cW2WC&m-ik? zskL0dHaVZ5X4PN*v4ZEAB9m;^6r-#eJH?TnU#SN&MO`Aj%)ybFYE+Pf8Vg^T3ybTl zu50EU=3Q60vA7xg@YQ$UKD-7(jf%}8gWS$_9%)wD1O2xB!_VxzcJdN!_qQ9j8#o^Kb$2+XTKxM8p>Ve{O8LcI(e2O zeg{tPSvIFaM+_Ivk&^FEk!WiV^;s?v8fmLglKG<7EO3ezShZ_0J-`(fM;C#i5~B@w zzx;4Hu{-SKq1{ftxbjc(dX3rj46zWzu02-kR>tAoFYDaylWMJ`>FO2QR%cfi+*^9A z54;@nFhVJEQ{88Q7n&mUvLn33icX`a355bQ=TDRS4Uud|cnpZ?a5X|cXgeBhYN7btgj zfrwP+iKdz4?L7PUDFA_HqCI~GMy`trF@g!KZ#+y6U%p5#-nm5{bUh>vhr^77p~ zq~UTK6@uhDVAQcL4g#8p-`vS4CnD9M_USvfi(M-;7nXjlk)~pr>zOI`{;$VXt;?VTNcCePv4 zgZm`^)VCx8{D=H2c!%Y*Sj3qbx z3Bcvv7qRAl|BGZCts{+>FZrE;#w(Yo2zD#>s3a*Bm!6{}vF_;i)6sl_+)pUj?b%BL!T1ELx|Q*Gi=7{Z_>n0I(uv>N^kh|~nJfab z-B6Q6i-x>YYa_42Hv&m>NNuPj31wOaHZ2`_8f~BtbXc@`9CZpHzaE@9sme%_D-HH! z_+C&VZ5tjE65?}X&u-D4AHRJ|7M{hR!}PYPpANP?7wnur`Z(&LFwzUmDz}m6%m#_` zN1ihq8f|zZ&zTL92M2b-hMpPyjp;j(qwgP9x)qI?EZx@<$g#>i7(MC}@*J1VGXm6J ztz1=RK@?%Qz^vmWNydd0K7oyrXw`TLb`z;fP6eV|NZ@9kKH zIyMqzZ9Y_)PZnC#UgW6&o7RiGXSCtSQvnrvJ07P9WCuE5TE27za*L6r1qX7pIDFiP znSaHYJF8sl^n0|3j!i{?fD%?fpQ8-}VX4%STy1t@8)G-8??Fy}j}~2_iJ79Y<9BW~ z!~)T{3Y|lwcVD5s4z^GP5M=~t`V?*Wng7gTvC9%p>ErZpM)pQVx57>AIcf1j4QFg^w>YYB%MypIj2syoXw9$K!N8%s=iPIw!LE-+6v6*Rm zvCqdN&kwI+@pEX0FTb&P)ujD9Td-sLBVV=A$;?RiFOROnT^LC^+PZR*u<3yl z7b%>viF-e48L=c`4Yhgb^U=+w7snP$R-gzx379%&q-0#fsMgvQlo>14~`1YOv{?^ z*^VYyiSJO8fE65P0FORgqSz#mi#9@40VO@TaPOT7pJq3WTK9*n;Niogu+4zte1FUa zyN7rIFbaQxeK{^RC3Iu@_J~ii&CvyWn^W}4wpexHwV9>GKO$zR3a&*L9&AgL=QfA$ z+G-YMq;1D{;N38`jTdN}Pw77sDCR|$2s+->;9gh-ObE_muwxq>sEpX)ywtgCHKIATY}p&%F4bRV>R9rYpeWbT(xnE7}?(HDXFgNDdC^@gUdK& zk=MolYT3>rpR*$Ell2!`c zjrIZftl&PUxlH2EgV+3VfQy&FjhL&5*Zg&R8xrSx?WgB?YuLO-JDaP3jr*I~qiywy z`-52AwB_6L#X ztms{{yRkRfQLbsb#Ov%`)acN(OCewI3Ex__xed17hg#g4c1blx?sK}UQg%PM@N;5d zsg{y6(|`H1Xfbz@5x{1688tu7TGkzFEBhOPDdFK(H_NQIFf|(>)ltFd!WdnkrY&mp z0y@5yU2;u1_enx%+U9tyY-LNWrd4^Wi?x<^r`QbaLBngWL`HzX@G550 zrdyNjhPTknrrJn#jT0WD0Z)WJRi&3FKJ#Sa&|883%QxM-?S%4niK{~k81<(c11sLk|!_7%s zH>c$`*nP-wA8Dx-K(HE~JG_@Yxxa;J+2yr+*iVlh;2Eiw?e`D1vu6*qY1+XTe8RVu z?RV%L|Mk!wO}j^S)p4H%?G37StD0Rx{_Y00%3a+V^SyOkfV@ZuFlEc;vR9r-D>cYU&plUkXL|M%1AYBQ3DI;;hF%_X@m*cTQAMZ4+FO74@AQB{A*_HtoXT@}l=8awaa7{RHC>07s?E%G{iSeRbh z?h#NM)bP`z`zdp5lij!N*df;4+sgz&U_JEr?N9#1{+UG3^11oQUOvU4W%tD1Cie3; z4zcz0SIrK-PG0(mp9gTYr(4ngx;ieH{NLq{* z;Pd=vS6KZYPV?DLbo^)~2dTpiKVBOh?|v2XNA)li)4V6B6PA!iq#XV5eO{{vL%OmU z0z3ZE2kcEkZ`kK(g^#s)#&#Zn5zw!R93cW^4+g0D=ydf&j4o_ti<@2WbzC>{(QhCL z(=%Zb;Ax8U=sdec9pkk|cW)1Ko;gK{-575HsDZ!w@WOQ^Up)GGorc38cGxe<$8O!6 zmQ`=@;TG{FjWq(s0eBn5I~vVgoE}un8+#YuR$Asq?lobvVAO-`SBs3!&;QEKT>gZ0T)jG^Foo~J2YkV&mi-axlvC}-(J4S2 z;opuO)+FIV#}&4;wwisb>{XU+FJ~tyK7UaG@ZD^C1^brazu7Xkh5Od}&P)GufW=u# zMxOwfWJ3a^MZha>9OmQ)@!Y;v*4@+dg~s~NQ;q@hV~l>lw`P)d`4XF9rE?aEFe(JV zI>11}Ny%^CkO=VN>wCV?P!-?VdT3vWe4zBLV*?6XPqsC%n93bQXvydh0Mo+tXHO4^ zxQ{x0?CG{fmToCyYny7>*-tNh;Sh9=THLzkS~lBiV9)IKa^C~_p8MVZWAUb)Btjt< zVZ;l7?_KnLHelj>)M1|Q_%pk5b?Bod_&86o-#36xIEag%b+8JqlDy@B^*YS*1; zGYT`@5nPgt)S^6Ap@b160C4d9do0iE;wYdn_Tr(vY{MS!ja!t*Z7G=Vz-=j5Z⁣ zwiG+x#%j}{0gU~J8;<|!B1@-XaB@{KORFwrYg_8rOv({b0EO#DbeQRm;B6_9=mXGf z-x|VL{zd`)#@yN}HkCSJbjbNlE|zL3Wm9Q8HY`sV)}3%pgN>cL^67{Z;PPL(*wT8N zUjXU{@|*hvm}({wsAC=x0^ok0%UAz0;sogW{B!nDqk|JJ5x~4NfTDgP49^zeu`csl?5mY@JdQdISc zFs!E{^grmkLnUk9 zny~m)1vws@5BFI<-0Tuo2JWX(0v`W|t(wg;s--L47WTvTMz-8l#TL^=OJNRS2?_Qj z3AKT+gvbyBi#H*-tJ%tWD|>EV3wy|8qxfzS!5RW;Jpl5*zo&^UBU=fG#2}UvRyNkK zA06Dy9;K1ca@r2T>yThYgI!ont$(G{6q#2QT+00r_x0(b)gsE`lBB?2gr55gq^D3Fi&p%E(p9>U%bv zkg1Jco(RbyTX7FDHOnl7-O@ zI$AaIl?9NJKPm(WiBP`1-#CB1QzU>&hKm)fpa5DKE{2$X0hGz-0uZ?cyTk(YC!Y&| zL=1VrNERSA5NA2jq7FACfX4JfPyj5XXl1yv0>~s;eF7L2$>&oMqeTFT2m$y7FlkON z_yurD1yIOvA;5C6016pyxBznGUt0kJ&k5r#;&>Jow`r)sp9R~PmK~lz$3xH%LT*1U zJdOyABZ3!FvNoR*vN$5ykHS8f`jA4zV+|L}i1C4`B2c{R0;UdYxaU|H)2avz@ z=mEYc|2S<+(B2Tj+FkX+2D+yFI!k9lWMA61DJ{)e;lum$(;O87?vGJJe!KtK04+N_ zI*P~t@dUb>9Xh{dbyl{-ZQ(UMgz7$|QfL5XSPkskt^NgctYC#;4WcZB1@%@wy@2t3 z2z0DI7&%b$*Aw~abe?GxE`ez@+6hOh-6*8fHRV{1os$EL@}uUZeG4h1&Be`98q*7j z=3-v+lhIjfWVo12!<>%V^a6lTgW3+_#W6n|p*~==zOH7z$0{LSZk(Tpd7EaD04hnA zL;#fxS0aD{`5^&D`}>0Uq?byDD-l2=!wm_bLcUl4gc(% za1p|itVANvFF>hghAS07Im1;IK;|b*W)}VDyI;BIp2=K*yu2a)j?B|f<44NI$NbmJ z#dE0>jI$fMr&@>4kN8MLFb4&2O9fEKaQg%(QO$4_1rVQywG^CmBLh#}_7gKW3vd?| z2?1^&KWq8}8I^_S0|)MowU_pw$q@nl@Nkn$z>BQq_KA^9yaR`(R3u{{Ig;cwt z@AJ^{ODQCm^neroM9nKNUAXi9RCK`OsP_LuR0PUR(YZCCX5dNF6VzcoK&=b^r`W?ltt|*F zpkoae%ZT{C1h~EcFui~b7fF`vb<<~j_VquuUA$}QqIKYELPp#;{u?q8Dz}WAG-(3; zjrm$i%7UbyZMM(Y{>!uJ#vNB?R~B{6Htp=>e*<{fQQ5W7V(1coCWlOON!MzZxhum| ztZBQpGR z;~#ur^&PockKdV{Q6R>o`Pl{0x!DEbpZ7y9Y;*ZvE!*gU`V1W3znva{f=?WO5I&>B z&hw6}tjECtaghm5z|C#%M;Yf_*pI^};h}Vl=^r9EN=tVDj86D;C$jIJ?K7VP+00000NkvXXu0mjf D5i!M* diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png deleted file mode 100644 index 459ca609d3ae0d3943ab44cdc27feef9256dc6d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7098 zcmV;r8%5-aP)U(QdAI7f)tS=AhH53iU?Q%B}x&gA$2B`o|*LCD1jhW zSQpS0{*?u3iXtkY?&2<)$@#zc%$?qDlF1T~d7k&lWaiv^&wbx>zVm(GIrof<%iY)A zm%|rhEg~Z$Te<*wd9Cb1SB{RkOI$-=MBtc%k*xtvYC~Uito}R@3fRUqJvco z|Bt2r9pSOcJocAEd)UN^Tz-82GUZlqsU;wb|2Q_1!4Rms&HO1Xyquft~#6lJoR z`$|}VSy@{k6U652FJ~bnD9(X%>CS6Wp6U>sn;f}te}%WL`rg)qE4Q=4OOhk^@ykw( ziKr^LHnAd4M?#&SQhw8zaC05q#Mc66K^mxY!dZ=W+#Bq1B}cQ6Y8FWd(n>#%{8Di_8$CHibtvP z-x#-g;~Q?y0vJA*8TW>ZxF?fAy1DuFy7%O1ylLF(t=ah7LjZ$=p!;8(ZLjXAhwEkCR{wF`L=hwm>|vLK2=gR&KM1ZEG9R~53yNCZdabQoQ%VsolX zS#WlesPcpJ)7XLo6>Ly$im38oxyiizP&&>***e@KqUk3q3y+LQN^-v?ZmO>9O{Oq@ z{{He$*Z=Kf_FPR>El3iB*FULYFMnLa#Fl^l&|bFg$Omlh{xVVJ7uHm=4WE6)NflH6 z=>z4w{GV&8#MNnEY3*B7pXU!$9v-tZvdjO}9O=9r{3Wxq2QB}(n%%YI$)pS~NEd}U z)n#nv-V)K}kz9M0$hogDLsa<(OS0Hf5^WUKO-%WbR1W1ID$NpAegxHH;em?U$Eyn1 zU{&J2@WqSUn0tav=jR&&taR9XbV+Izb*PwFn|?cv0mksBdOWeGxNb~oR;`~>#w3bp zrOrEQ+BiW_*f&GARyW|nE}~oh0R>>AOH^>NHNKe%%sXLgWRu1Sy3yW0Q#L{8Y6=3d zKd=By=Nb8?#W6|LrpZm>8Ro)`@cLmU;D`d64nKT~6Z!aLOS{m`@oYwD`9yily@}%yr0A>P!6O4G|ImNbBzI`LJ0@=TfLt^f`M07vw_PvXvN{nx%4 zD8vS>8*2N}`lD>M{`v?2!nYnf%+`GRK3`_i+yq#1a1Yx~_1o~-$2@{=r~q11r0oR* zqBhFFVZFx!U0!2CcItqLs)C;|hZ|9zt3k^(2g32!KB-|(RhKbq-vh|uT>jT@tX8dN zH`TT5iytrZT#&8u=9qt=oV`NjC)2gWl%KJ;n63WwAe%-)iz&bK{k`lTSAP`hr)H$Q`Yq8-A4PBBuP*-G#hSKrnmduy6}G zrc+mcVrrxM0WZ__Y#*1$mVa2y=2I`TQ%3Vhk&=y!-?<4~iq8`XxeRG!q?@l&cG8;X zQ(qH=@6{T$$qk~l?Z0@I4HGeTG?fWL67KN#-&&CWpW0fUm}{sBGUm)Xe#=*#W{h_i zohQ=S{=n3jDc1b{h6oTy=gI!(N%ni~O$!nBUig}9u1b^uI8SJ9GS7L#s!j;Xy*CO>N(o6z){ND5WTew%1lr? znp&*SAdJb5{L}y7q#NHbY;N_1vn!a^3TGRzCKjw?i_%$0d2%AR73CwHf z`h4QFmE-7G=psYnw)B!_Cw^{=!UNZeR{(s47|V$`3;-*gneX=;O+eN@+Efd_Zt=@H3T@v&o^%H z7QgDF8g>X~$4t9pv35G{a_8Io>#>uGRHV{2PSk#Ea~^V8!n@9C)ZH#87~ z#{~PUaRR~4K*m4*PI16)rvzdaP|7sE8SyMQYI6!t(%JNebR%?lc$={$s?VBI0Qk!A zvrE4|#asTZA|5tB{>!7BcxOezR?QIo4U_LU?&9Im-liGSc|TrJ>;1=;W?gG)0pQaw z|6o7&I&PH!*Z=c7pNPkp)1(4W`9Z01*QKv44FkvF^2Kdz3gDNpV=A6R;Q}~V-_sZY zB9DB)F8%iFEjK?Gf4$Cwu_hA$98&pkrJM!7{l+}osR_aU2PEx!1CRCKsS`0v$LlKq z{Pg#ZeoBMv@6BcmK$-*|S9nv50or*2&EV`L7PfW$2J7R1!9Q(1SSe42eSWZ5sYU?g z2v{_QB^^jfh$)L?+|M`u-E7D=Hb?7@9O89!bRUSI7uD?Mxh63j5!4e(v)Kc&TUEqy z8;f`#(hwrIeW);FA0CK%YHz6;(WfJz^<&W#y0N3O2&Qh_yxHu?*8z1y9Ua}rECL!5 z7L1AEXx83h^}+)cY*Ko{`^0g3GtTuMP>b$kq;Aqo+2d&+48mc#DP;Sv z*UL^nR*K7J968xR0_eTaZ`N`u_c#9bFUjTj-}0+_57(gtEJT|7PA12W=2Z>#_a z&Wg@_b=$d~wonN3h~?)gS`qxx<4J&`dI*rH9!mTSiQj(0rF-{YoNJRnOqd5IbP7p} ztDaPu$A;#osxf=z2zVe4>tpa(knS_Mp67nKcE<>Cj$G2orP(Z$Oc4;4DPwbXYZsS^ z;b>59s(LgYmx|tkRD?U{+9VZ$T}{S}L6>lQNR^a|&5joAFXtOrI07Do!vk(e$mu@Y zNdN!djB`Hq1*T8mrC@S)MLwZ`&8aM8YYtVj7i)IY{g&D1sJaY`3e=1DSFnjO+jEHH zj+|@r$$4RtpuJ!8=C`n5X;5BjU2slP9VV&m0gr+{O(I}9pYF32AMU?n$k$=x;X^E# zOb-x}p1_`@IOXAj3>HFxnmvBV9M^^9CfD7UlfuH*y^aOD?X6D82p_r*c>DF)m=9>o zgv_SDeSF6WkoVOI<_mX};FlW9rk3WgQP|vr-eVo8!wH!TiX)aiw+I|dBWJX=H6zxx z_tSI2$ChOM+?XlJwEz3!juYU6Z_b+vP-Y|m1!|ahw>Kpjrii-M_wmO@f@7;aK(I;p zqWgn+X^onc-*f)V9Vfu?AHLHHK!p2|M`R&@4H0x4hD5#l1##Plb8KsgqGZ{`d+1Ns zQ7N(V#t49wYIm9drzw`;WSa|+W+VW8Zbbx*Z+aXHSoa!c!@3F_yVww58NPH2->~Ls z2++`lSrKF(rBZLZ5_ts6_LbZG-W-3fDq^qI>|rzbc@21?)H>!?7O*!D?dKlL z6J@yulp7;Yk6Bdytq*J1JaR1!pXZz4aXQ{qfLu0;TyPWebr3|*EzCk5%ImpjUI4cP z7A$bJvo4(n2km-2JTfRKBjI9$mnJG@)LjjE9dnG&O=S;fC)@nq9K&eUHAL%yAPX7OFuD$pb_H9nhd{iE0OiI4#F-);A|&YT z|A3tvFLfR`5NYUkE?Rfr&PyUeFX-VHzcss2i*w06vn4{k1R%1_1+Ygx2oFt*HwfT> zd=PFdfFtrP1+YRs0AVr{YVp4Bnw2HQX-|P$M^9&P7pY6XSC-8;O2Ia4c{=t{NRD=z z0DeYUO3n;p%k zNEmBntbNac&5o#&fkY1QSYA4tKqBb=w~c6yktzjyk_Po)A|?nn8>HdA31amaOf7jX z2qillM8t8V#qv5>19Cg_X`mlU*O5|C#X-kfAXAHAD*q%6+z%IK(*H6olm-N4%Ic)5 zL`?wQgXfD&qQRxWskoO^Ylb>`jelq;*~ZIwKw|#BQjOSLkgc2uy7|oFEVhC?pcnU+ z^7qz}Z2%F!WOp%JO3y*&_7t;uRfU>)drR1q)c7lX?;A1-TuLTR zyr(`7O19`eW{ev;L%`;BvOzh?m|)Rh?W8&I$KVvUTo?@f@K!du&vf=o6kKb?hA z%e6$T0jWS7doVkN%^_k3QOksfV?aC$Ge$a)z(!C@UVs*@qzDw*OFd*JfX#>5LCXjE z_vfUrLF7D`K$U2Ld#OCnh9U!;r7%GlKo$e__Il-oba06ER{H&f#J&W@x^^5j;y$0` zs2`m6pf+{UiDb{Mjsb$rH+MCM6G_wX92so96`ODFYKD>!Xz^0y@U7Tc1uON4L<>2f-oPe%FRPEZ@S#-yd7Md-i?v z)$Kgtq;%4g@>Kap3Nl2I&jnCIfGmRmcF4CXfF1H}3SfhLg8=!a0ucGaUk&c3*Ykgl z2X_L84cs+FD#cjf-nMJkVDH%XzOoh5!X-Q$K5VZx-hGF7MQ=XKBjhZZQ@1Sh zO^vY`WQ`zi21z-+01na%<^niMFIWm-n|!?hm4X2HEHkba4YS|+HRoIR=`#Xck@PFXaPjnP z=hC4A*0lumS+gpK=TUN!G;{WqICbMz-V=-lTP^@a#C|E!qH;T00SZh7u#?+?08g0< zV1s%-U-`T@8wGh!3pO^`zUIY{nAED7kBqg!qi&GfOp>57f2PGTV19m z0qU@1PYkf%4z_%;Sq4IY94rS+ie~pwT@O3+tg?#k_=5PIk6tV@< zwLoqM0wBVLkI#`|1w=eYMnc^aRR!t?lnUng>WekR#X!!9mYXL3g^gC7`)S7mmo{y} z9*N!d$s32Nu{cZp#O|UxEZK7eY<7hGcI=lc;HrSVL|HA|S$rhhu_DBT&l+`75d`Sj3LaM~H)P zZuk2&jor6yipafklSsPL-vMo?0yAYXpH3=LveBhkno-3{4VLWL16I-@!RM$Po>&}} zm&PX3-$i>$*yx-THZmvK2q`8Qm7B`(NMR;>VSgoGw}W|G6Xd6v04Zf;HIZ0DZU?@- z39vPe0N8w(9kl$2?eG4T?tLgY5V&aFl%~g;2)aSpi!dl?{hDgsz|3<-M(gPtwP_!n z2aB4tV?d0k+>X`+(HMYfK@qtfDK|mIJeg+A<_i-n+5wkrexFs#V0N&~+{+qJ(wggC*52o2daaRwcu7r;S!!KwguB3!Ei7?IEY ze4V$m{8B4Q^(VK4~Ea!V@@}Gs0HGbR5 zy~WI*21hZuoiK`=O$2a|Uce-Zi2%A*pB|?{gv)n8+_B+i&u8Ys)ePY+UwhBDlzbC& z+N00*-?a8DTC26*(3pKgeMO`fOau^-+c6Qqq}3-dpTsEEH}ds! zT^}8XAWO>c5%+qF%#M8#x_0gC+N%q8h6-%w;qidS%gai<T)vpfYuCHXRx6O-TbC|fnj87X zBESvn(9XlXFMj6%{&BaNQ&;xixaKP)+jJ|%u&?HXvYficY}{%hf?0rNDS-X-0_Jcr zjfj~n?T;~RL#sd4ZED2Jf{*Vj+*1eP9-H+~8X^#Jb?HHabLY)EH{QD@Yh-$M`XXt@3_f-L8nBo~*C?L4~n6M92PCuzX=KFgM*j!B66er$F! z+*M(Wkk`UI@uhrL#IUz-C{K@@xtd&n-PQz%kc}7YeE{{&$?}-*yW$eG*E4jp>B_U!2`2oZuvvitN& z%RN>tE$+Yhtqb1q+xQHbp=W4uKSiIj_LZppR0=hEiVj>P0^Vcr^hu2+#Hqum+}zzo znqZ|M4oD|qd=y&JX-qob`=uqt?o%FJPIVY2w0M7BH>#sx>s#OM#9JF1(3LxMAe-vi ztJeU*G)aksP`5sP9_%|~>Pp{NmMMcay>&D+cI%H}$uSx{Su(yz$)2e$*pS%*+!Zo>DNp(P7 zI%w^D2ceEFUGCtQPKfsKr`x%^dy;Rh>lMKuhA^btz=071W=vV`_xz&m;cvd0`|!3+ z2M6uga6CNvy)%Pjw_X}5+xf###jc+?=>6chZI{BMH=haH^7ipT>(?9{weF3apk<4; z_nZFsi`@oFBXCZE^k9B1x+cH2)~9d(MnfEm;GJxG*IB zU@ly{cOTWk*K1ryX+T7m!6A>VwB-*qfH;b>`AUP19lLSA9HbfppW!={L0K)??SymOCA^V>=tOBLn2c5e ksm9QK-qMKdW>5J419kFO%DdQj-T(jq07*qoM6N<$f+5oB`~Uy| diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 8ca12fe024be86e868d14e91120a6902f8e88ac6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6464 zcma)BcR1WZxBl%e)~?{d=GL+&^aKnR?F5^S)H60AiZ4#Zw z<{%@_?XtN*4^Ysr4x}4T^65=zoh0oG>c$Zd1_pX6`i0v}uO|-eB%Q>N^ZQB&#m?tGlYwAcTcjWKhWpN*8Y^z}bpUe!vvcHEUBJgNGK%eQ7S zhw2AoGgwo(_hfBFVRxjN`6%=xzloqs)mKWPrm-faQ&#&tk^eX$WPcm-MNC>-{;_L% z0Jg#L7aw?C*LB0?_s+&330gN5n#G}+dQKW6E7x7oah`krn8p`}BEYImc@?)2KR>sX{@J2`9_`;EMqVM;E7 zM^Nq2M2@Ar`m389gX&t}L90)~SGI8us3tMfYX5};G>SN0A%5fOQLG#PPFJYkJHb1AEB+-$fL!Bd}q*2UB9O6tebS&4I)AHoUFS6a0* zc!_!c#7&?E>%TorPH_y|o9nwb*llir-x$3!^g6R>>Q>K7ACvf%;U5oX>e#-@UpPw1ttpskGPCiy-8# z9;&H8tgeknVpz>p*#TzNZQ1iL9rQenM3(5?rr(4U^UU z#ZlsmgBM9j5@V-B83P3|EhsyhgQ77EsG%NO5A6iB2H; zZ1qN35-DS^?&>n1IF?bU|LVIJ-)a3%TDI*m*gMi7SbayJG$BfYU*G+{~waS#I(h-%@?Js8EohlFK)L6r2&g ztcc$v%L)dK+Xr=`-?FuvAc@{QvVYC$Y>1$RA%NKFcE$38WkS6#MRtHdCdDG)L5@99 zmOB8Tk&uN4!2SZ@A&K>I#Y$pW5tKSmDDM|=;^itso2AsMUGb8M-UB;=iAQLVffx9~ z>9>|ibz#eT>CNXD*NxH55}uwlew*<*!HbMj&m@)MJpB3+`0S~CS*}j%xv0#&!t?KV zvzMowAuAt0aiRnsJX@ELz=6evG5`vT22QVgQ8`R8ZRMFz4b*L1Iea$C{}L-`I@ADV z>6E7u@2*aes?Tbya7q(2B@(_EQ`i{|e`sX<`|EStW0J4wXXu{=AL)Yc~qrWr;0$Pv5 zv>|&Z)9;X%pA)*;27gocc66voVg~qDgTjj+(U9|$GL0^^aT_|nB9A30Cit)kb|vD4 zf)DnEpLD$vFe;2q6HeCdJHy;zdy!J*G$c>?H)mhj)nUnqVZgsd$B3_otq0SLKK#6~ zYesV8{6fs%g73iiThOV6vBCG|%N@T5`sPyJC=Khz2BFm;>TDQsy`9-F*ndRcrY(oR zi`Yl&RS)~S{(6bu*x$_R`!T^Rb*kz$y74i|w!v9dWZch7*u=!*tHWu{H)+?o_5R?j zC3fh6nh%xP1o2@)nCKrOt45=`RDWzlx4E4Vyt~xJp=x(& z&nexdTA1T z8wlsklpvKX6UmIAoqD2{y!U7sJ1pb*!$$7-$WqT`P85GQnY<9f-V#A{D0qB4s( zM}v7W^xaEsAKOKHwfqZjhp--BnCdoIWKR-`Fzd|6nA|kgToLF%fZtoODEB96Wo9H1 z0Sdw%@}akuaT$>wLSecayqMj-91_>92B%+(=`^b?eO-^^iU_rUI1HudU9|kEC)+4kO$7RH+ld1twCmYZY9TvW^5l;Z}B8= z896yWiZZB`qqS&OG0XwC_$cobL16lrJ*2c3&fKbrp9 z%tlJvW_MO`=d4M{%mK#3Z4&l;9YJ1vr(ouTCy`gN^l^_A9NgpWRb8LrAX%Q#*Cmp5 zIwyGcPL%eUjz^{sVkq*vzFy#ta>EToiootr5A5XFi*hI$n2k0Y^t86pm2&3+F0p%mt`GZnV`T}#q!8*EbdK85^V zKmz&wU&?nse8nxapPCARIu14E@L92H30#omJIM-srk(t?deU6h*}Dy7Er~G6)^t#c>Md`*iRFxBLNTD%xZ?*ZX(Eyk@A7-?9%^6Mz+0mZ94+f?$Bjyu# z13t~Gc4k*z$MR-EkcUxB z&qf)13zOI)&aC{oO!Rc0f=E+Fz%3Dh2 zV#s?W#u7wIkKwpC1JpsDx>w@|$yx6)8IuolPXc&F`pg23fo3ut{Vi&9S5ax7tA`Jt zwy+x6 zmAjv170vr2Nqvw^f>!9m2c`;ERAPyYv%geDGY^+1Hu9_Ds%%_dgo`-0nQe|jj?3cV zBs&>A3u~RhH@@aaaJYOi^)d;Q9|^Bvl4*H#aNHs#`I7&5osKp$o#b8(AHEYaGGd5R zbl*pMVCA?^kz#h)fPX{it?;>NPXZ%jYUL7&`7ct>ud@Fafg?^dudINo z(V}0Pzk*<5wlI*`V}S9|VcGUJ>E(Z~SJK!qm!rRVg_iEo}kx(ZP@xbA^ zv5C}~Frbyc79Gf|LEN9bkut~oE_ts|A0;FoQd}xjkal?FrynlE$0~+WvV3FqT7hl& zCex`(-&TN>>hn=Z-GiZcT6`@s4Q={XbGonu=`?IO(DL;a7q4GJT*LFu=i-0%HoxX6 zcE6uWDcb4U{c-Lv)sS5Laat=&7<4^Nx-dI0yhCBphb{EUIOPF!x-K*8?4mhe)ql&=>t&BpmQ+Cro zU}jKu9ZVtI-zmH~&_GitE94R}uPo|TH7Avb>6`bfsw(H5#6i@1eAjnbJ6Jp2`sUyA zT6=~iK`oPTyOJ@B7;4>Mu_)Y5CU8VBR&hfdao**flRo6k_^jd9DVW1T%H662;=ha4 z|GqT_1efxomD2pViCVn>W{AJnZU z@(<&n5>30Xt6qP&C^{bC7HPAF@InDSS1jw5!M7p#vbz_0rOjeBFXm4vp#JW99$+91 zK~k`ZV)&&?=i!OIUJn61H*6??S4i2(>@e9c&~OD1RmDDRjY>mIh*T2~R)d#BYSQSV z<518JITbPK5V-O@m<{jeB0FU^j)M2SbBZhP~{vU%3pN+$M zPFjBIaP?dZdrsD*W5MU`i(Z*;vz&KFc$t|S+`C4<^rOY}L-{km@JPgFI%(Qv?H70{ zP9(GR?QE@2xF!jYE#Jrg{OFtw-!-QSAzzixxGASD;*4GzC9BVbY?)PI#oTH5pQvQJ z4(F%a)-AZ0-&-nz;u$aI*h?4q{mtLHo|Jr5*Lkb{dq_w7;*k-zS^tB-&6zy)_}3%5 z#YH742K~EFB(D`Owc*G|eAtF8K$%DHPrG6svzwbQ@<*;KKD^7`bN~5l%&9~Cbi+P| zQXpl;B@D$-in1g8#<%8;7>E4^pKZ8HRr5AdFu%WEWS)2{ojl|(sLh*GTQywaP()C+ zROOx}G2gr+d;pnbYrt(o>mKCgTM;v)c&`#B0IRr8zUJ*L*P}3@{DzfGART_iQo86R zHn{{%AN^=k;uXF7W4>PgVJM5fpitM`f*h9HOPKY2bTw;d_LcTZZU`(pS?h-dbYI%) zn5N|ig{SC0=wK-w(;;O~Bvz+ik;qp}m8&Qd3L?DdCPqZjy*Dme{|~nQ@oE+@SHf-` zDitu;{#0o+xpG%1N-X}T*Bu)Qg_#35Qtg69;bL(Rfw*LuJ7D5YzR7+LKM(f02I`7C zf?egH(4|Ze+r{VKB|xI%+fGVO?Lj(9psR4H0+jOcad-z!HvLVn2`Hu~b(*nIL+m9I zyUu|_)!0IKHTa4$J7h7LOV!SAp~5}f5M;S@2NAbfSnnITK3_mZ*(^b(;k-_z9a0&^ zD9wz~H~yQr==~xFtiM8@xM$))wCt^b{h%59^VMn|7>SqD3FSPPD;X>Z*TpI-)>p}4 zl9J3_o=A{D4@0OSL{z}-3t}KIP9aZAfIKBMxM9@w>5I+pAQ-f%v=?5 z&Xyg1ftNTz9SDl#6_T1x4b)vosG(9 ze*G{-J=_M#B!k3^sHOas?)yh=l79yE>hAtVo}h~T)f&PmUwfHd^GIgA$#c{9M_K@c zWbZ@sJ{%JeF!chy?#Y6l_884Q)}?y|vx&R~qZDlG#Q$pU2W+U4AQ+gt-ViZ@8*)W| zN}wXeW~TTA#eqe)(vdbZm(Pm3j;>#thsjkQ;WH#a1e>C?-z7B%5go0khC;qQfrA-~ z$^9-bBZi+WMhAW0%y*4FlNC%SvM%a(`BE ze-4>w7)wg(sKN@T-nTl^G~+e{lyeTG(dfoz3U!LKf{rmR=<}+ih`q1*(OB8oS#B&> z;Mf*_o&W5*=YXfgFP}B@p)|WJA7X^OhD8)dnP)jzA@E=&=Ci7QzO`+_Vzsr zPWpZ3Z1>W?dNv6)H}>_%l*Di^aMXFax2)v1ZCxi4OJKTI<)yK_R>n#>Sv$LTRI8cB ziL<^H!Q&(ny#h19ximj|=3WygbFQ9j_4d8yE5}Rvb>DpH^e#I;g6}sM7nZnLmyB3# z!UenLG)cb%%--*pozd3}aX#-Nmu5ptKcp>-zcwRx9se(_2ZQsmWHU!Rgj3QRPn3UF z_sqgJ&Eb=kv+m0$9uW~j-aZ0Hq#b_2f^rS*bL}stW91HXNt0JDK~q-%62AW}++%IT zk!ZO&)BjYf)_bpTye9UB=w_-2M{YgE#ii%`l+(PHe_QjW@$o^e)A&KoW2)+!I9Ohw zDB1e=ELr`L3zwGjsfma_2>Th#A0!7;_??{~*jzt2*T6O%e3V)-7*TMGh!k050cAi2C?f}r2CHy&b8kPa2#6aI1wtOBBfiCCj?OjhctJT zF|t;&c+_-i=lhK}pNiu>8*ZFrt0rJp={`H182b$`Zb>SI(z!@Hq@<+#JSpVAzA3oc z@yEcV|MbQ+i)`%|)klTCzCj&qoC0c7g6FFgsUhcaDowSG{A=DV19LHK*M7TK?HV;a zAAvOV<(8UlC>jP4XE>(OS{6DfL B0*L?s diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png deleted file mode 100644 index 8e19b410a1b15ff180f3dacac19395fe3046cdec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10676 zcmV;lDNELgP)um}xpNhCM7m0FQ}4}N1loz9~lvx)@N$zJd<6*u{W9aHJztU)8d8y;?3WdPz&A7QJeFUv+{E$_OFb457DPov zKYK{O^DFs{ApSuA{FLNz6?vik@>8e5x#1eBfU?k4&SP;lt`%BTxnkw{sDSls^$yvr#7NA*&s?gZVd_>Rv*NEb*6Zkcn zTpQm5+>7kJN$=MTQ_~#;5b!%>j&UU=HX-HtFNaj*ZO3v3%R?+kD&@Hn5iL5pzkc<} z!}Vjz^MoN~xma>UAg`3?HmDQH_r$-+6~29-ynfB8BlXkvm55}{k7TadH<~V$bhW)OZXK@1)CrIKcRnSY`tG*oX}4YC&HgKz~^u7 zD?#%P?L~p~dt3#y(89y}P;ij|-Z#KC;98PvlJCjf6TQbsznsL8#78n~B_kaQl}nsm zLHr7z%-FAGd=-!e?C{q62x5i4g4hNuh)LeqTa4ynfC4h(k*e>okrBlLv;YG%yf8!6 zcN)a^5>rp^4L+myO70z(0m`D}$C(eqfV1GpzM+%$6s6$?xF>~%Gzx|$BUZ$=;f)B8 zoQUrc!zB4kT!wqSvJ=ywY-W)3364w!`U>J+49ZE`H~+{!gaM)zFV!?!H+)k8BnOj3 zGvU93auN}g?X^8c`+PFv|EH=R%m)iUN7gssWyTD~uv7prl1iRfRaCFeJUuA@$(p&K z?D+cmhxf`n9B~!?S#d*TeLb^(q~VYS$3KhjfwfMWtZx&PlTZ(i@5HJ?of_Q)0YX99 z35b?W>?=vlb6gtK1ydcF4<@aH|Hgj8r?~QNOPx(YoKT^Xn=?Q%=1uA&-G(}mXdtsT zQuKACS|@G@uBW(SY(cH%% zq+xr%bpGqOGHyw3=8K7;J&hp^g1UsyG zYT24BGeGQukP?&TlOBE2H$2oH>U#E>GtI-fmc)17uc`7FRxJ3A!c%ADN^Z^oi6tYp zjzE+a{r&jt6z^scbd(feWPVEE!lV1I4lfdLhQ|yLdx&1IEV%l1erB&H8X}3=8lIcc zCNPUis-KRbCC z20@WYl&vVEZo!fLXxXs?{|<|Z=>0^-iX;y6{DT$lSo8b|@FZM3U$+W37(A_9<)fnq zP~11?(AKlHI-Lh(`?-@S?(1{t16bc7ESX->9twFP@t8_XK$XxuSFF#R(g7H(U%XvWa zm}J>%4-suYL=gX7-_MsjD27o?I!G888fxV$koLCfOv+Da&OVTG*@(aC9lz_e>*UGS zrX6f-45hd55ya-p_O{FbHEG%Ee9~i(H-B3RZkv`0ZDn$!>MigMZX06&y3RSk-WnL-{cM1 z1TZr|rc*Xaf|_^y&YLc4KK3<@aWfge2jARbRRg1DfJ~%pV9L_@$UADw3EXC_n%p0v zQO*{=88K@W{T?$wCR#S!M!e+R$aDL~EzovN7pbOBvrk&&ASS=Z43No|jrc>}aXXO5 zrd1<|Qypq-h#J*iORN@8YRc&`17u=lqo&L&YV%p#hL%P*WfIfH%ZUC^o#`?IWWr?w zQ^?EgP7!lqlq}ZM}d*sSVz(mqeQrA_huV@M4iwXa>k+%O-ZHW44JrRxLJy zLoHTuEqw(sMcO38n*lQ6ve97<&+Y50NNmVpW{hed@5EgrWfI~ITFJ0D(<|k)ag-~cV z0@-#S9z8&EUfBL7C_53YJ$)2ix^)vhsH;Q&KDdwe{q{2oJ#~b@#Qr?YGHrh;`rz<> z)F&rNr}J@}p8^N(8hLRH`=jpeT@y z2v7WETpnG{qixxkWWyK7(3QJ)RF-$=`O^k3+oY;O;rNnl^kVc*(j(Jb_99(Dw1w;T z4K8fsKDzn|epoWT|5{~*3bCC1>nd5;@=5lApq%3>^U_gQD>5j-O@WH;uEG+4MSBjJkdgtP;JG2`S&&Sa#_w33(yyAux~lnp7>wMXzD4yy_2#Vh+7&WMkWFl9Ohq06ifTiMWIC(|1Fe(3n}U_0(+jGC_(1c@X4vzk6y`)qzH+WXtj>dhI3=)~1Oi0Omh z^vp^i61ge1rO8;F~ncj_=tk zIvnwqFB-?)jER5LdQ?Hi=Kv5dgPZx%XSjc8VLCd4yYK4E88pIi4AGWzwdmrFf6&AF zI-`N3cpnf!Klj%)afJEC-x{^po?kDKD0@>6(}1f2xkCOMS49E?+5^EenLUrqK%EANgiQdAy8BW0e}Fvw`>)CTcvBeX6ZgjWC~(KdFE9hv+M6*t z?loxF7N3yv+}r*v(>9DX;0V1TP3G)L5r}m~e)RO*pc zv#tyehrK*U7ilRPA zk!aAmm9v3`z|hH7+WJ41!*h~g<2G1sUubFoL9b?dbp>%)pHzUZ-n)Z)W(6jh>jY-3 zUq&n%9=y?`ajN7rr3`t68sL^H^MG_rUDQw2$gj4Jb8MXgAW99^EbKmu9*Pv4Rh3=;vUVF30sUrdj!_n0*+m?WCbo^8q2fo|;?vH3OFh4__< zyaqNQdP4&Q+6R)%gv|^b#b|oW*XMMKLhEgy7(3D!poW*Tk`Qn4f*HUBD@U4+eOL|4 zh+hT+hl`Hx6+v(dZi=hGf|lF9JV};bs&Bm{THmunMOu))>8UdnTYV%TFdKB!dzN+?+5S+WYI><_z_6eDC z+WvMv78tB-j%G_;_de;{^Q7!t>Khj7gp^izaCK?7PmUiHevBXbk=s8{114AjWHDj{ z_(0ZvDUl`5mu8_cWw}Ba6$W+4RbZ4H97I^qQrq9Yd$5A!1wSqDNaUXf_sQ%GF7*wX zXFhfrz!d7zZiDhtgk#HcP(aukNVacB**=V7u3*Xwp&aR_R8vnbd1PGG6$}j(F_VMA?KUK~Jd?J)TjC!h3~KL|i&IYtL40AFtv zb_DC5Vt8aT6JhF5fEI0_FM#^zCX2>a=A#}FVOKjnH_(#+q}Ggy0kU*_?=3Ifjr+H$ z0D{~ZO<8+Sll*k^U-Y6DvsCpBP|v8XH*H@U(US~mumH%)dBJRde1f|G&@1J+MvVi( zla}?vMV%}C?xRQOryKvG8`v3bs)mPaL*v7}=z1;z?uq)tAg6HwY9Ihbhu^awAJU&S zK#m{H4)PVmJ!}eqpy%MRP$Pe(&D;?N7($!Oz=8uTxRyl1Wg*V=gE z5PBge1q~I%qmY6Ol#1^O?u~P=44?CDh*GEXjSmoi`y;!_V+I2o>H!jms@u4HII9l^ z=&`W@f)v#1KQ8O!bY@+=fC3VBA@A7jQt^q~fz}*7i0(grY=jujW3=vAHS&qyN!B3* z;l=MjJrW~O7Sz5xp2Z?EtA`naLM239gw8Ub=%IHPY<00fb5 zozf%j+(s|urpUn~5r5pE7yi0taDcx4`#K81u*kwAk(cvQ$vx_F{wd}8h=eKDCE$M(iD9_QGJh zr0e(Z>QuRZ+`ff^GZPu%;bA#_^$&vsboSa6V!jmN0SV4dBKN4v`C)aESBtZV7J~U( zOc3e47Zx3Ux67y(o?#7;!=y1jxEueEF#$^c_PoxG_pq)GZLU2`d>%!3rdJjkrAK!2 z!2>jNPceo_9v)xpmu)_EgxsU9*GT^QoERVik+LSzH$Z{Ax7_GFY+!HA0MSfDyXT(k z?vob%yRiU**{7No8PKK&w77Z?8j#9IJ#hv1O^!lS%kt0n7@x79#}+R-TuINbiBfotv)O^y=kD0AkUNhrP$U_@qXE zYpkIR$Zgi=#6Os0^$m7rt1kV3&R~;r&xn%>8xzDHk!yob^vyrl^*R$4R_u5eYdHc> zk}^bkAIjLe{t{-Q8+D@9&dz9Q;o$+RGT7l8sx<~c5IBs*Dp_bAwqQRM2olfEe}Vk4 zc9Vt3hx$Z%0|;xNF=aW(Z*%CEmg_ z-riR#1Wjb9t+D^_K$%|E`_m#&XHzQ*&~vzFCzYIJB6Ieap%urgb=%UsC<9^hC4{(B z(3+*N>|JNdhT54KE$HT~okqq-teADE3Vn9^sA!>%+fb|98XIO zePvP!J8>9Ao~cC(u@>UqZhO(v+C!ob_m!fdtCwsACbR*lqtAwwQ@{hCy1%pm)*>|2 z*4U}vUNFO;Lw9~?Rw9)osm$D4f)?XmUvN$e8eWjjsm+Gr-@$~6iMgqWH+%YAV1gAu z7NbW)FU+RvtZ75ADtlW83vAW@YkP-BMr{8tV}A+L9?({@=u8(K9O&F z4CiS*&nHDa>J}36GR;VAs~I41Kfit308jVeg0#zIVj;(cr8EHqE6<OP0C9kbOl`)daY)$O<0J;;?A%Ve z&#H!_rNfB84*1o6aD2oLL(Ywd^#ZTmyK9Dlqg=at2TjDGCcH@qymjUqbf4FvGxc*ap|#6x@}Ug@+NK z6j_PV43T(wmxf+(J5kT~r++|VKw>6X0o1~R#{);Yll!>QeP1cfzTvOK0-Ndpf;nGz znqZirxrk&)Llzz-fKnnEL_I{Lt#O<8-0}IX?!m#sfdv{wY{3p7aF*=sI^w@wUdl;1 zOaQ`8mA(OjeI_2&*O_79989c3v-g+F!6OGyYBVD}5>W|JMvMsd5c6BV0+zUQBP_6V zpc@@&KR+A%>NFy5N0^}idafWHEjUnt=I<|KC5!NPqrW(T!j9Ll{*5Zxa^f&K*Ftjr zawS=CfJrKpWc85)DE8bbv=YBAz#5gkRLaSR_+g6q@-*6f>L^-JT`4CEtE*JX@Z1zF z0E&{AR0fE|??ogjZqfU3(3!I1@j9|~pd0<5UcI0vX5Z_hd1HMA@j|Yv)N2|G^GS;q zXYi@WB9s-#b)He4kH+MtvHHF`8K0kl-oxkemC0RJl}RX;os2R(GXc%6Dn>&D@rZ}- zPb!J(Btl-2B2W+9n6vkmpjV4Bl?F&viUK%NfXXmH_#u%8D2iDWAcFW0m@khVp9{N9 z7&DbP(1Gk7XhlD$GZqiugk2XTu>nJ*bAY;J1CcQR(gq#?Wq4+yGC*3wqY5A{@Bl2z z0I7yYB2tLJe5Lb|+h?DCkK5jdFd$~3g?0d0ShVgG6l4p2kXQKH?S=$M3{jLui1Y>! zz77*W+QP#K5C?de0OAUdGC-Q)A%ZOd%_kz}%W2+>L}>etfq`~pMyi$o5kJUY><4vq zdT;7z-}KnW2H$K&gE`X+Kok~5fVjY;1Q17f6amr&9##OQG7B#?nzXIwwheWiM!)a| zv^^L9r_m3B3^W^?E?~yI`Qf!(wU9Ow3)Pu3odJ?DRk8qag@-*r>fw?ty;X?M?5GeGW6VdRS@X}kbfC>Ph0tSHC!=o7> zcJP1%;)e#h-i!cg0S|z}2#|Ws1LjKvukP!X{cY{zF$mh+!rtD7tND^MV;y)-ur`c4 zFKkU>&&+tOw*1y*YwVu5X8==z0UVItNs(wyMIoAiwTI+0%@V;VuNP&ZIh92y2&-(k zMi0;exUrZe67@)CmgjR)(0ttRFy~A9c}gUif~+K|%mVQAO^-$M_Lq|w4!my^J_<}z zA?b<|Lu5*2A)0rv67|lAMLqF*s7KWjivr(f4{^A5$f4qjg zmxyepp;Y!W2-Y|f2|IZNMV_rib8+3xIZ#3BP@Ul4G|a88M6V}A)%k~vnh0%eYirwy zYwt@rDs5q5-M(vANBrvba>DMCi52-;ZT+q5*4X2*N*nu4*&?uY&0IEM1_>fN{*6zdU!wDfFIgPxZWn<9+^rhhu0i5u{>8eHa7)5yJ`s} z&wJ6fw${~r$vM*&uCCxryLOp0cDzs0u6k{{^!ivQ8f-O~8dg3KgU_SbRiA)C08Qiv zzKj+=kD{M5JWJLGV(;@P`ZkfJkBl^sz+u>GVaJz7K;+rg z!o@{r=UEY;R%DelCy0#G3URLBevOL)`* zqy;>(0F74#5KDMKCSwZ$ri&3ES$H7!lg1Z%!6v&4XYGNurEM%p9@7gz5@*`VqGLzU zLT+15_Xc^?TikPBx22wj=^SZ zs}Z0G&hW4Wh|SoR5uCl&CJhu&k`der5ui5sCU4Xu6TeIXd)x3=z%U;RBc ztv*7s+cIP7jSY}0h}ev6NdZcX;0%u}Krp$FD?Ca7=>U&BKrt%d;n#!acKLYTY21bZ zv@JUu!uL_#BXe+Yf|!Brh+$)}DSJRnnTjC}Ljoio_TWn)VmmNO0IF00kQSrrFee?R z7Bc~)&8WJ1fTFY-RVM%)WCnDP(H}A& zhBl&Y)kS8&w1q_z9gU_85|G-ofg9`TvUE|dcg!}aDQgOV5Q)DNUCuQ)WYLDoh0la$WgJ4Rotv zl73SGB!!5ft4;u_0)Tewlu1aIlv4$e7NhEr2*wDImhcdODhmiee(7;S&)u7m^TJuj zaGUfdZDVciLfWbcO&60EYDq)jov~-{4mK7`pYEYc&w@icvLv$}mP~63fQaCyo2Ss* zQVo!HDH$pO(lRB35g-omfawMe^nP_^y$^poa`|Z9SFjm3X%lhVbe0*eXklR@hpazj z*S1q9FNjjxxVQ}d->$7c!mNdD=TFtot*O#!`|xS|OHuf_lO(fI+uy#9pUO$a*#sOA z$Rylwv>Hv8d{!)xY^h8tQ6spaLFVi$MVo35lV#;3pFwgMqm(I19?9JSfizUeB!pxz zcn=V0Ex3&Ey6Qwt{o0znXyk^^eztLT9tLee+r-Wk{2opI5JWWXJ32UktqpML9XRs6 z#MobUojQtE)E=tWWgF@baOJ{w)?sH(aQZ!{b=ZagG!MYD6E_&Z4eyD-|6~MGQ5j`# z30VOQ`vMH%@f}La~!CD6da+o0vbz|)znwna{EC?cc;6-Qy+!o+g*weOYZHn;7XD^B!GzUq~%s$X>)e$w?x< z)Z{%y9JjKLLjf7F$S-*}(L4YTB*B9jlapkLL@J3tktnH*$W0;n%wWo3O+r{wMM+Xs z312FZ01r9LkcJA*uaczmNv}$!;O~IX;}g9Njo7gI5`{<7<8q*FVrk0oC=PXy=|H#u zKz|QgXXl|oYge50=7$rDoC!A zwmuJZ)k$wFA`CfyIQN20w{F8JJU+C?)xnrU75an-ynV+u_V&K`HPF)1vY*SRA5?qo z4wJ-*MB1#|r!Rm&z+V6}B?l0Pe4bzc2%Dl|*~vO(62cT4m?6OkkScgmqa{JY29NC< zP`3p$kKj5U0CjC6u5(A)29~DgG_&oQS$!%!~kOnUbLrAa(Fytpgg!eRC*soc&G_uG_vu^N8!(Nuj&` z#K5BpB1am;3cv;J?KETBHutTeLYRx~!*UT%eFH@HlYnR~Xd#ZtV2l89$md}MNCP~) z#NEhk{c@q>)Yl@QPDyT$xQ-p4baOh=17y<6kArSxF%WmxdX1ad1CA`8-MhaZCnN0!T$BAvIYd$Ypk2y6B4Si@|dVJW!`?+j>!lxq~SM z3ias|wWr-lH!C{=QINH>!!YMh<{ktaPS&W&jIB2|K;l(L3bab7U{MCX3JClZr|>x|SL)ShO73*>(Um3?TLG`qsoXZfidM1G@Xto|+)Gp=VaS;Q^9D6v=9A zD>#=4Ano&cVAicz1Lcqje*g}Ec0HrKfAs*ZXNAq1<|_lpmo==DKZL81tN)a z-G$7_Zqvrk!pe$hqqYtX!@JFyp6HMtm!DR zlY%zt)46}pc&GU@O5HcDdK3`1gJ_^hRfR&SkCYK(7=R>uMx>}8RhI`yOL*WM)W?DK zd0>f^Fa5DbD2!_Kr?c<^^IC=K{kB<@x5 zk$1vQb~leE3UKtFT;Jvph*;*-lWW8bLCF!qLW$cXy+TXr@ad&Qi)bp0anoS zpc={A)@G=~8PB3aVN#6)WyEEr;5gAbX#X_(I$X6; zYpSX{&_t+i#6PmJ^0%_Jm6*0ZSo(JyIABWG_ol_VE?acLZPV(9(0h|=CK;f}D(n=h zH}=5R*n3cbAWn;2{Pym{R zy1w&fY{!B9--3Im@f>2Rti&3}gO=5fmc5Nk_uLGR9zYUnB;q6423g?ViKSTj!bo(N z;35C#KI82u-qJ4{Gf19eyVUlUW%|^ zZnCIfP7;y+_-`g5|IbPi^%ca4`U?_-{WBAUA;nq3Pmb&tjVjJW{j(BKKdjOErbeS) zu{%)Dotu!~`sIJ|mMlEx{_fPMF3&yt4!*}{=)Lxad&l5N;yDtHBLSza865qC)RtDR zEzNTQ$I=Twxjl$hva*tBC1{|2c0A9QyeEzMpx1&~aRXK^t{J*{-KFPtZ@v9|LL_>( zFq5pc7*d#lFa&5!Sq>Ugk%wTXYPEvD6H=0eMi-=`m$Q@5wh937R(}&TIUbMRpz@FH=p^muMS&k8rPW&v5Uw3|(oN%o@i?AX(9{eMj0e z=|;zbye%X!HEJd)P*|Sr9279#aqQ@Y0n?{$9=Lcxs@J0TE4-I}RLfhl^rG*&<(K_F zUwy@Y^V+`y!q?sCv2DYDAOYd)Z}@Ln_qX4s&#w5cTltGm=(3C6OBdC;FPKx|J8x!c z@AsyKx#Dxexm&kxJ(ymrFTJ)z(*WQ-$UTbhwHv+nPP8mmW^jxPQY+dck!Yn(GBCl| zkS7UDcIeQPG+ujYNI(&)epEv|1C8I--hO0z57$xcyu3ne{CQ(R;BWX0{zm~B2aNYrwV0HSx8{J;1$)?@1OKiJ7vbWif-(1RyDDC0Urd(C)7@ec}NqAJW4iP}%mf zbm-iNbeE}?u#}fR3L^cV^!xa?mYqBIAtni6fpfz(#K5@GYdg|=k%dN4+nB*IQJC7% zz*}ePoH|fP)rD#VciPxq#I!);i-%JJsPv!`K;iJCfOym2c+zupr{{E{*RZ44w4wK4 zhUN){sTFNBOX{3j)0j#J>OV=q>OxJ619fN}DGajWNdM=ZG3C0HJC*5|F-luRx+T-!eR#IDS=86u9ga*$qLhV6wmY2 a9sdtN6eHRrdyqB&0000AvglfA9NypXa{#=A1b*&&-_9nK?6&dOB)k#LUD105bLa$_BV6=HEq#kGmWEawY(P zYgJuY!N_}RGo8TO$oTXsB$&89>#C*cCdYLmNX~ke#Hv9KA93kET{$`$PbI2&f<=QO zbYEuG&fq#8;U|Hp%+iMX($XltD84sh%`HcA9=yrw*x5Rd?dw|aj_wW|b=kga#C;uk zY)LO?99@%_7kX6dzR(&*!tnq4;>`zco!?9(Az&zTo|L_j^WL&gF7wJuI**)H&y&sO z9l;NhRvPV@eM$C25(Y1oLfTY%Qu06J{1!LY%l6`?e{u8in|(1@!4MJk2$1+uIsPqnf+k()k8h#rg7tMJHVtWaqYT zq|_R>T}xsUyk)<9e2b1o1pB702Pc9ve?7kQpF2}x}2=dBPVaUdm7-ZjF+bUL0vak))KQnKW)qx!vgbJE?)QXqi+7Po!iYjGEI9xeX+3}trhX=ZOA z6m<4$ajUa5?TbuamQOsfYFx!_%v5Pca-z3$eHCN9QVeZN0(`DY*CwYcn=Z{IwS{|W zMVA?tHKL`t<(1kV)n+5idi^{`iXLpvnO=;Rx{T4}wriDGR@79T*3GDl#qU(VPNH?_ z+WNh=8;jQwV zM#imv9eB3r+LQaLX%UgUmS$Q-V|+Ygp>ovUbJ{jiX~_q+go2a38CD$M(o|A(oS*f( zh?L!-@KukR?4c%)OIZBg${L2g5L6Pa=XF(yBP@&9b|agsWh)uYDy{MN@*W9zbE^QG zPZ8wOAg?zDskn|*wf&j@!i7Pbw6fw_Jr}n|+l>O-_8a2*TEQA7y+XU@NUD_gnXUKG z2}$1=_w*$M6~;^rw4#*yT22U!%e#`&t(A(xyf|-T(y3T1sVLvn_}AGKzdo!w)-*Uq z)`#%}qna5)jZjh2p>&4DK;ogEbdo#F?UZ%H>ljUbLLNV;50EQ$-zmX5OZ~Oiu>6ZIQR6g&! zPTyC(E=$qrR?zuYogtRne89+%HynZlT2P=QPE)k~RavpYct9<_leX;S(cUYWmJ%5i zw<#|0L;Epc1diZ!djsOtxXCrexN0iPy+W$%xrf_3!-ktsYsF?BfO_-+rz;1%p|X0Z z`xS4h<)pP{yf5Y2%`K?M%L1lRyQRhGg2R@R1BO$0TUeSMPUR$cJ)j;QyWQ-2SYJ1? z%~^ILTzh8y5rPT)29-&Qo@%PiVei|f)aGz{7xO>5>77{OmMi}>lo?rwpOta_aN2a} zZ_L3$CVhl%C4|)F%yc_!V?s)E@;~94fP)o1CTwgW@3F@BcS<{+x8_h1m|gj-8eT8~ z{P{;v_nE3QwfJ#=Vz7jq`qgMV1n|+2J0HNKgTY17#cGz07^gpi;87-UU+o*XC;A3g zg??@@etFPbu_%d$CSm+feh%;vd6_sgJ6ydmIB8OZ2ObCNBuk-&Tg}J-dX|>uJe}kmEmBH)Q7uAac~6f=i$joy zJK0c6OM9t_Ef1k*Ry3>%RVQV4P_zwS5s^T+u`MbCH zd6?wSSFRIE`|C9((s}H4ZYxc^RT{P)UbYCc^d0IW&aSPITSpqAIQF6g6&D^@VVnrOzTa^&s3buD4Zh79z^>7JLQH+- zqYS8QcLF8+03Y|4eD30R)L9O+_7gvyxH&uXehWGsGF8ox(YPKFj0 zeO}1^(}~=Cb++)WmDI6QeKp!MtupG%f{wZCy1$n!&RIBjUrS~HF0dp*p%w3uW|XYcuU?@&lSpJS-nf;@|F$`Umi_6zQo)P* zAN?|yXKv+GF@wL}{Z@+e2fPCrPyKWP%8JnsD4{x0N4};B4)_O}kwrPV3fK?Wi2^1> z9|==dt|saLUjuoB-9|amKlwXh1UO#${B=k&OyF9&!@HCh^(P1Z!t`T$%9BxBE^)o# zrb+Lsi5i*!ebE*rcxuhl)knhZ#ON)wO$oi@$3X1Yo6{S=udP&GmK4bkq;tb{^J~U4q82PKlFy7~0oQfA>1ZE&nMwI&x>vEc6U6l>WUM9Dh&x=`RU*Gbxx! zkNtRQF;b=RUB91-eD(xJv`D~Lmt+aUbpk*|itL0+z!SP00+|E6y z`uA#y)}Obo8;y%<&n3om?p6xzZJ%th-0j>wzfmi#6_%M|?B;=zSIm6DyAoM_apC>I zXM6D8M09ojEP0;(Tm6=+iv(2Opx(Oj#^^AOYqkBr2bn&rSZqFl_g%UyrartZl7oXX z-sf{fs&@{EPIHwb9qDY_<^%-#3soQ%QDuSy?jsU+(Fip2|+_ zGrN|zd*<~MKX{Lbhj???lU_IhSOdz4)6#L*Ah zm&9^`M`a&%BRsm}7gG3v#DiB;WAYz|2o$)P`>;wKw>@5~1xl# znaLk1Gsg9W+FM2frk6^A_#Vca3W3`Oq!4wV08%sw2(tG4QPdzk%6LE|<#%m44u|qJ zyU?M#nQ?*VpSqw3iYXL4`rl88NPi0HtH8TIb5i9co;}~0@H+On_0OFWps8>3b*XNL zROE5^A`ad4h3;CKVSt1Kz|T<$S=!5XFZ%6Vi5u+l>6fg(<F3On}Towx%MlobtMeV$xN86aA@wyIsb zpySR3MZYr<`22Zdh0P(}B+{cDNL&Y~SPHU}if;!Las3k+eLw;apzg$Cn=31tX!;`8 zY=|5HvpA^g-d!i?nHGr%`~;Flh)u-a91db%jAcig`GW_KWahiTTh z{}^LvD}yhSsCAb|MoLE2G})=@*?##ViZEif4M<3V`i@tM!^>(*Rgr=M9E%|@2gR-B zJV|}j_)t9!JI+t<`3J6z`iNgqpaz#UNv`wl%dOPql&jUOM&>{9=QR^_l&7V4>`hsJ z^G|jS@;l#xw>et_W*DeS$UNv7$Yq?LHspOA%H3LWvgs9kgq*9fx_t)_w4AYf&erE; zoUk${(?)h)eonZuyEw`pl=f#;ELYvr!4*#ks>oM})C*(SuXf}-zfb9s0fYSo3g&C* zV=nfhl#iZHZ8A?c#4g7pM_Rrg?|bjeon~Ou(U2Voz^zl1+IZQ!G&%DZFh62aK+ek- zIo}{Z&X;+Mut%Mj>T@fUL(+){SDfT6!du|ddt5){zl^BJmNK30o-LWDrxIFSRRt+6 z!mYbqyWs;|mm8gb++|aKrJtx9R=#Vi=s69%I$3gH4DJ(vBFLcl7y^(vnPL2npvJ^j?o{T3??tCz0EKI&uu8tndn zkP*E{3i=Q?WeHe^H6*-O16$ApV$=)$Nqz3J%o|%deE091F8ElmB!tV*#0J2#d^I^`4ktA5yK?Q)z|RG`a?V z6vH1jHr#*xxAsihWpi)FEq@|s`QcppDIGpfxROKBu0<7Fy{apE5|3#IrOxK5OZfiT zjAMJ0KGV~$kv@fkjt4!>L}(9#^U%fwjj7Soc36XR)nDkQ3%8O)y;4K2VSi!6N4Mh@ zw62zp(^}TOjuhC^j`!miC0|X$=v@bbB+t5$f4<4>B;>4L-dJnDu>0!J6a6@}jJN&h z5e^#-V!s9Wub&ovQDiBRQH|Uc+sDm4EBsD^hoLp{bH0m|`La@aQ;Ug8XOExRXK|8f z^?z9pD!y^tS<2~MSIn4a7XMfypgzG#m*nQ%dM@^@iK_bUx$*elFco$VW}e6F=)=J* z3o<(tO11GJCk*0owwI(!QK`Ukf9T;Pd{7*GdM=q|Klu8W#Ibn*K754KV1q`FWw!Tu zep>9~)rzk~X|!cCM0wh46KQ1GO>+TU8SrsBIj*FPcmY7D$cXZ;q6s*Vh)z%o(t;vn zx!K|qj$8j0+q9$yyXv#dz}`dy+B*;=H54B~0IEX%s9R#o6}K@lXi@`Zn-ymH++KpSwT zEpq>t59b$ORT?+07%Qzh8*}&0C2m>=7z55P?UqIjx=Nd z5_RT#G>kXWDMf$`cv#^@V6=CmHr$UfeA!pUv;qQtHbiC6i2y8QN z_e#fn4t6ytGgXu;d7vVGdnkco*$$)h)0U9bYF(y!vQMeBp4HNebA$vCuS3f%VZdk< zA0N@-iIRCci*VNggbxTXO(${yjlZp>R|r93&dmU$WQz=7>t!z_gTUtPbjoj2-X{Rs zrTA$5Jtrt~@cao#5|vM$p+l3M_HC0Ykiw9@7935K_wf*-^|GKh$%+opV7&;?rh9&P zh@9}XUqp-`JNnPs3e9~OrZBIJ1eel)hsimyfZSIAKa-_e!~q3^y@G=z;FN<65|y#S zIBWtzFv3n-*Aa|5F3Z9=zMs!RG6&8j!J;3)knD|vHy=yM(L#G}?m=jXNQ08rzG{Q? z03L8v^?3q`cxQdd42Z9RVo{e%Ga$C`=^7nqlxSf^lZhCTfwJB*!vD&M6QLv2g3NcE zlLNNSl;_UR5*{d}Kf!uIIF!i1cJDS7fMI##KSPmi=TR$DWZKb=cLBWJrF7#XGuhG7 zjcL@fyIHYDII3IRrCBTavFc^BM=uYdvN&GWBrcfogytsZ#mNX@9K+}pNp_= zk9AV-B>m?U~{NIbky_m^|J@%P=#HgBe^ zDfz`6g|`gOJpKE@q~4TH!vrHVNVb%n^e@&ALm85qj|xaBT5I90Ycp`;(u*rwGoyp? zo42?p->1XHi@SD&m=D5+6}|bUFWFw^Ue~(Ns1WQdWg=ux{zyH+AM91|XPZ%d*fiP0agmU%;tlV*!A{7y5(|3pSIw`dLqLknHv_PQBq$*|@+K4(r z(nO>@f;?%pkIO4xr70*Nk#eL*y7x+_=)8hsToX389#3w1KYRW> z*jT10YzQG%=Q$~Vd?jE*NFJ3Q_1xC`bl#coS5x4+(w)Pk{J+G z!)n>NlV4dtbN2@K)QdPtA{jC87jPU@hGv_JS3`DM&#QrL5o|v9pZ!u|C7l8Y!06X} zo>&23nPdehmmoN^p|A!0tiUTr`CHa7lrfP~sQnxYB!UG1e(yGzf9ed??k|R+753Jl z7|p%-Z;}uZWB`691Y{;z%fht0EQ5I=Q=xM!$55sB}?14LLaJP!Sh9=o6Ct`HH&OJAVuCgBpm0G_>L zLgPblVMON9`^+|EfPcuK*NO!3l?TlBFPGtQ7{6XmmBfL}Lk{{Mr*gyq842232l)y! z&EGfE9#VdjQO(a$U8DtYD6#;quA5M_q9pjqqG3-3XgR=iH5haYfFOE#7*m*WlW+;p z?*(QB<`&=?VN8b*zDdAXk|0u&ChUKnuK~u}^00YLP@tffpKM40h@>0qAv>J$ zJrJO6LoW6nQ;Lt_8TqG$3|&uIySi8pIQWB_=t1;Ew5BRl7J?W_#P#Q!jsiS1)t)R& zBm=TT1+G!Pc}xbIpGmNXV5B}zM2aE|pbfY#^zg<53DRF@)}T12BMzF0(fIJ0A+3Z) zF(FCSsFO`ljPqMasO-{OJsw6GD$89qiidf9!om$onI10;i?xPp_7Zxa02^=nHJfV2 zo}1Yu%99UK)~|dQR05$flJ_LP@??KD=@6^q3rd&zl=sq`D155z=wL0%C|=Gl`rS`{ zw-3XN{PCKN>`Mx4Uux^yLNOaIrkrs#Bqr1f%w1cG$Fdo;T7H<^$r|;|#mdi$cevZ* zdUc9(`eHt8@K+4=->Qr*HrT(({2Uj)Bl+GPr7ru{us3&!JKUzXmE_(`3UuU4d?;JL zc1X3KSL^U^==r@m)sd2}-$!fwYMO+)%E6|CLIK_ z##nHbe&&rMSDpx}2%+?FJ^shJ8yjE97(vftaucYh>*)KEqRD9|NrLKH=hV$e9A!~^ z4bADay5RL!GXeJ2_zHiwLYIYD#U!gVUX?0lWn6r52N(6LN{Xi9iK=_HO>X!U%Sq@l zh^!p)kHb1d(Ot9To5AfPe}~eD)OZ0MoXW((BIk$hb?gir611I2@D$KJ^VOg zT4fSfiCU#LYYL*CDCFNS4@bFDJa-HD&yA+x-IPQdMe7%+($&f?mC=n) z%&EO|+G#XLeHlo%(5I?7ol`ugo-_s0FL0#nkfTIT>6E9z50T3{?rk#sL>rRnNM~|9 zbq!>`l)R){K{#)v-}J)R27GTgA_f4XfzXn2${0y<*>7Svs39Rgf5ulzf}LmgT3Eqn z8G!%JRL1Gwj7k#Zh=Le=U`Dd4zH#;|o}L#6L-c(Lz=^Dm0-V6?8-?W5q)|w-V8|R@XK0f;$q`9@OmGmQp4JO_0Zgzau^3zjqT)q;CKx|;eNzuf>j1twm zQVhYEF@QgguW{CYFS%U=FfSW|H*CE2A+vuEH66-Q#2iU|Hp8DbO&^njfDi(!U@PIK z7gKGe-eQ+t4rUUtOnfvN87~ND%ab5b!x8Kexv=DeQHV%lmmMLXSRR33V1Aty75xeT&9+VL0)Pz zHpe~F;-a3{`62`|2n#wq#ktiRT;Lh?1diJGf-G(W%QRhQ=!Jr8$ZYk3OReu(4&Gvg zpl?-6>j!|kPL7>&DkSoxD|)&8W{jZ2fm<;ybWp=h-n|lrVTDs2KpsZq8Q@_M%r>_G z6KCrGAXxq8UNzXk`cExGjmaZsNdrw!&Z+iI)D|i}mo;laGQ-M%`}Lv&JJzx${Fd2` zs~^QJGpsDcGk=sm8SeA2z~=GbR9j%8fE@kpnk59Gk8>W2JHBvC&t8y~%f9?sa~*MT zzP9Q8+4`#QlH>2jX$MYd!H45&7r$Jq^`E!@tm|Bu+=?c(yux?!x_X7iET(66!RFDJ zzB?@ffQNcw6D-yOq*Rav4dB9dVs+0RBr5E*p3whI*rE4%-H25JcTOP^)Sh)#sZzJ+ z$IbOD+T^K=`N6CDCpfKHwv%aj}rTaikoks1a4O*+M}j{W)R#K&nzKm zPg7psVmbDEy1VO-r#xCjVwX&}+zKNECBJ!QguJUSSN_kOkv4T&}pz(^z6}X zGCV=1#|a(xlOI`HtWV8dgfuF4s$*LghD`Amxfcq5mblTfRr+m0tzen&#b|xUxLu~H zK~RBt!`&v4%R?`#kjuBJ$opo+D?{Uaa{a2hC;Ka(&ON7#V0K>#_J%#LVtBRt)u}`s z=j4Xe0jY2@p+RHv*#26?%g93kteo0Q@0;`x2ZCw zUn4`&W-e{5P}Q($ccv`W$#ILg_$6+&?B*0cJk#%;d`QzBB`qy)(UxZZ&Ov}Yokd3N zj~ERapEhGwAMEX1`=zw)*qz1io2i_F)DBjWB|*PHvd4MRPX+%d*|}3CF{@tXNmMe6 zAljfg2r$`|z9qsViLaWuOHk$mb2UHh%?~=#HPf2CPQh;AUrYWW~ zvTV9=)lS#UB-`B5)Kb!Ylg0RA){o3e`19Jl&hb@~zS>>vrFR-^youk^@6>0S` zToim7wzkY|Yt*;aGUy!o{yxd8=*L;orYQC!H#=|pjn&hO>o9B$tJu8TBHmxPPsm-) zM#T(;Z9_uvy1xq;yeeWQV6|}+=O;1%) zGZyIq}2>crU3z2ri)(ut%F~+%S>FR4^Xw()Y-+~&Xp*Ns z$?%1aydpzNIz2aN98}oth>3boYSifQ)J81Of>6k)!`WQWrB;xxXccBzrWe5V*>oMh zon)MEw$@-*!>L`CK}u@x^9-4gfvepI0b8q5QYVXr96{4Q#s2ZelHXxHv~G{GymRer zqyj7m)3yn3z5i4koiIJ!-u=p6QeL|BN+pWd>}TOFOVi01q839$NZ&I_quqb(n~9Wk id-{KKnnu*>l46e`&P3zgUlQEeAE2(Hqg<+p4E|raIYd(c diff --git a/ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/ReactNativeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png deleted file mode 100644 index 4c19a13c239cb67b8a2134ddd5f325db1d2d5bee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15523 zcmZu&byQSev_3Py&@gnDfPjP`DLFJqiULXtibx~fLnvK>bPOP+(%nO&(%r2fA>H-( zz4z~1>*iYL?tRWZ_k8=?-?=ADTT_`3j}{LAK&YyspmTRd|F`47?v6Thw%7njTB|C^ zKKGc}$-p)u@1g1$=G5ziQhGf`pecnFHQK@{)H)R`NQF;K%92o17K-93yUfN21$b29 zQwz1oFs@r6GO|&!sP_4*_5J}y@1EmX38MLHp9O5Oe0Nc6{^^wzO4l(d z;mtZ_YZu`gPyE@_DZic*_^gGkxh<(}XliiFNpj1&`$dYO3scX$PHr^OPt}D-`w9aR z4}a$o1nmaz>bV)|i2j5($CXJ<=V0%{^_5JXJ2~-Q=5u(R41}kRaj^33P50Hg*ot1f z?w;RDqu}t{QQ%88FhO3t>0-Sy@ck7!K1c53XC+HJeY@B0BH+W}BTA1!ueRG49Clr? z+R!2Jlc`n)zZ?XWaZO0BnqvRN#k{$*;dYA4UO&o_-b>h3>@8fgSjOUsv0wVwlxy0h z{E1|}P_3K!kMbGZt_qQIF~jd+Km4P8D0dwO{+jQ1;}@_Weti;`V}a_?BkaNJA?PXD zNGH$uRwng<4o9{nk4gW z3E-`-*MB=(J%0*&SA1UclA>pLfP4H?eSsQV$G$t!uXTEio7TY9E35&?0M-ERfX4he z{_Hb&AE`T%j8hIZEp@yBVycpvW2!bHrfxbuu6>_i<^9@?ak)9gHU*#bS~}$sGY*Fi z=%P&i3aH%N`b;I~s8{&6uGo$>-`ukQ<8ri(6aH6p_F`Fhdi6HuacwfQn10HVL7Om1 z4aZpjatkbgjp$L5Mceab#G#C)Hr{^W|TJX~?B3@2buj0;kfuNTf4c3*Au~O^aj=W2$j^4okeCxh#lwexN@eam-u4dNz zN2NIuIM4566{T&^k%4ftShcPk#=im-zXm>QWqH^0>A@?MqlDZCZ@8Wi*@tvhn5p<} zRwFm@gz|WZp91S5Z{}tB^e9|FBg(~Ik+?&_53J6ye_QQOSJ*846~H%s#LD}|O9v9H z1fLrrgoPo_&bs}eqEr}2en3iqAcP^>YsKiez$5-6m6(#3ZZ$@M5Ck=_Vv`QA>1A*v z3w-nJ_;5Nc(0_%`kG91#sotIlhO!*5#|yg+Gx{V;0ty`*=Y9=jCh$l*=fE(~t}%R# zc}iNpO)OZX`P=leQY^?^DF1w%FJh>Dkp}-o5Ig|2!6^E>|W|zc~W7gF;MtxX7 zV~UjQNsUC$EYXpN?~o{83D2c*0~7;Tm~%FRTAnnt3ln{?DcLZ=NsBY|JxwUA-6K3V zP&#|9t#a}Q4{Sg{6v-OmjJBkCh>m)8vLNm4lStMUT$)FZeJG05A)px&o3H)5oAl9= z31@?HyCriHcCDnt628BFN+T;U69Wl#itfvqIDBydMvOJO0Zl?go$cfG5>TK75CMj3 zakLaH3=&J0e}Xmqlav$S0>E@_Yo_V~3SiiXrw)$&!XhrHCDQ%P1BHPusuKr0LthAB zg)mDrLy>2*yevMMOQe6fZ|)%PEb!lC^*9yaX9UMy7-v!fSICssTR|wML0Ic2BhKAq z3I1X~ z7^_!M&;6Z9?br3#HU_&kfJ~%botXQkC1v<}ZZxN5q-T)|Sb2cW3WYUBbDZ`TH{!*^ zrmAeRM+(QI>D+?}guZ+dH*X)@^!O|oL69&Avbtw2^M3HP(+2kV{O$^3BN1RLfrC8nwz7=VhBR%>!;7WR<~;34B_j3A{>^@e@H+Q! zL=UNr1(JvKAQLKT0b}EMn|QUWtY>!>8-t@fVj_&`~gGd{_aPy5W>0u5L$zrsU^rBO=i$`#Xd*>kh)lPf}A znNXSEl`+HlhXtylgS9(#N02A=zVV?#OF?)Gr>(HszVa+1*2VG@qYttJuXaBlzP`Pb zX)ueu?s&}R>xI#^*r4gR?tMFi!_eeKlIM5g)Nk)Y^h=ZCR**xY>$E5knctRrq!zw? zX{2|hwR9LXTY1)pTlKg7U4_ej{dcj2{!+1sZ6<@9^?mn)=37V)DIAvS(}S`IgFO!6 zn({?nYw`Z-@jvt@!q|5z?TI3(dx^1szSn%azAwp>N#fk^kt|=MejKtacAs@Rdku#zT>9$s z=m7ek)`=O7hO2n+2Uj$QUs&2EIqycF{(L9Y#^IyxXA%R@ z&j`VAprIV~d!pH-7~zA+bjwVn3kOB3;rlg{nr&wHV12N}g^i>Upls~=z`VX>9HQ#= zTu&luVb@_Lkz63&&^_M!6(-2^0?GCAX9XKp{O={pd|AlIMGriX6s_Jy8_q9|{5jLc zxd1aj_ucE7Vcti#$r!s~w~W=XpaLQ}#mX`apR7^n9-d3?O+adJYr*L;{c)x@REewM@vZN0njS3iE$88KHPWAkWt((OUMherUnPm?i&8@!9E@ zUW^$%CpdruZR0ohzUq-XQ$KEIB8Sjgs1+wKSUH&Y;=ee%E&O$X18{&979d~K2uJW` zd*8awHCXb;Q>4z$B|sPNv+Zd__f6&@KmS+L`z3H1x+x|Xs7-N-iw|1C=QiJdU)f~z z{vO4hpP`0MyqmwIHN=l?jSq>OKG6CEC#O`*blP`?>)CUWj5j1cB>%6N7;`kfZ1iQV zam~SDB?{uyp^=vF_u|=8xn3S)L;wF8ZRZV{bezM-EH;MC91JQZ{KcZZ$IWJUy?SJGeGUWm6PeuO8-K2|hD~p;Ls~9Y-4lE+?|bF)XaNKUNX(K7 zBQk0Z{n>hrH-CA`bTr$6z0n@Cn9EL$XZ3=X7NopjcI=;z<(X7-oEmK}BId=PxX*!b7Q6oL@ufd%eEPc`_la(}WkT zKe?-YJWn^6b$^{dhdJZ)I!Kn6c}iw%o5mLDyvM7qJZbkGG?zLU;M|W;Wis|A;SuY3{_X53`+>9g^B%O4b{;^t$^;{oKHbo*CY%u91 zp#2d8Pg=I0&UX{qwr=y=o_^BLdk=KYH$=Z8+k|p8V5`ph~3b^{^NnL4m_+4zx( zeoTt@f<$DmsB1}o%R1Hx`ToPuBl+P6cb-?uF{1!z-2WvdR4+vJ*SYTic5@gwnzu%e zD!HF^X=$ha^#1hi*@~^nDL!HQ;MC&e+6=onaJgm-J-+|>PpmU=SIe?EQE5vJiqziw z*K=Z%bWZz_we!qiFqE`I?#$yozNxIE7Ei;csv>++r*?)0bozFpF&oLh94u z-2c2L`5BarP7l>87|f)vxaT*9(!Q`2xBMZ&^JVj-|1)Tg!6OW=lk=w zLwVlr!*<(l*L$a?ox3+%!~UIj3Ej@KD;W>1E_c)1szDi93BC;0K?drOQ>@$yi|DtT zSir}!Yx>znf&b0KS;Lk7VKPDF@e>(qQr0%SNcGQd(p9StjqJ`QSW&c{ggF?5{d22w zlkX%JTUq`;(3WSH+)WHl%qlF)iNG_?}K?ZM3cS7#u5v zZ!apx4Apv=PWsn}eD%MI#=KA)OlNy0)l@~D^1;NC5k@|OPW3wt>WNYDN+8~+gM%E! z$ z`Olr0;eytiK&~O*ps%KV?2vq+DhuRh*!6Ilzu>A;iMe9 zI?zug9nT9CI_o)O}KF_I_U z_Cswu{)3pCYgw{eOt#E?UCqBwkAugSl>5 zX?G=Ci(Lo+r3suuJezyQyDvw*<1b{rx*&ZaY2HlJ>k{Qc%IZeU43pQXw4mh!4I5>l zZ@4$uxaPY#!*IhL4Hctn#!n#S+SiPcZP_PTd5fXf1exhFi5zf3kl`UcW2RUk)F2oF z_ogN`{03PiseQR;fa#{Uy;jeNlJ0Sle`~;ZYhLjkuy>a^!Z_nR~`$&F?NVuIE3HX;i zD82snwlwPb`7yE)ZA_Ndmq5zuSO1{{1}(d9u4#!Fl_|eOuxKBwOfQ*tG`VjCV$-WF zxi0c&+w}Z)rqz{%f46@`ADPdGm#x)+zpT+gyfDi;_P zR{#Ta`Mzd=putKO@5lQJO*aNy(i?}Ltwy^Z;69f|eqi#UCI1$vL!+(#mi?dK`OL$! z3jQnx$_$+Li2<__CL@Wuk4^J7-!n3j2I4N8e#=qpir+iEQcrn3`B4yNOd1BBLEni<(tdRWE>m0I^ zt(^*Td+S3}$5rOzXy=MW>%#MN_qy%5St!>HrGZ~Fq1WKw-&kv@2TrCcPCPzY%2aO- zN?7@+$4?&qA|uv{QHuV)O9haZpG7Jx2f%D)7J@oWTxJ#E_YSq_6qT1tomOD?02(1otT{Hk8{?g(944>h4f% zOJ8tzjecV{x2uWde&6oAP)*({ zFkW0Q%gdI*9@W)oKO65DgP<3F_BIKvRXLAR?Z61&0g2TR6mEZ7OZK?dP7zukdg?s_tNZeuOsh^e1Tmdlz5rIg?LcK|%aQ1FsSDv#W0EnHd z9M)p;gAL_R~Z5cojTdwy+qDsd6R01Vtxmq&FhfPz{wxmB$${zW~z@{Ro_ zK#y5^KqIp!#@or>GD`c+aZ(PV1=`Eo1?a55p6a*WepFgxvmp!^2518YEU-;{F}fLr zD~)=S0m=+px3TUN8-El}Xb}{2ET*_i3-|WlY@V7vr6#&cOr*+oS9?GF?@)K6op>>o z4af0@%KwaLr`{3P&)474<3rDMsd!IM-bepWfhfuMmJt}#0%PgDSx*q(s0m%ZFgWTj zwwvH%2!(i9{RHX~FVUB5qHvF{+ZF}+(bZVPG1)a*Ph>KV;cYNK^aB@R#dS~&`^60V zn2Z24Y{{djzK33}t@q%!v5k)u7jAXB_H{#4Ut2 z1}0j5$RXcTyfazqL9=^Qe%GL`G)=!lirv7AgVRf^=XyEM&kiOe_%JD!O?sXK&hrDo zF}m9B68im!oGshuZluy2H#T$`XPZQu@zf;(nBCZB-cjQ&w*p@Tm_$pe^MTN3EauI) zJG&G^H-4S|1OCd#@A6jO+IcAXG#5M-d9E!^YNmV7Z(=F^?8bfrYf&mLMnRd_22&Q} z2*msbLsrI!XPeOK@|V?n>`kNC`8eSFmekELLr|!-wQRltxZnuRedup<7VflowJ+gC z)F}P6lUSsh^B41?=~0*68YA6z63lKG`W$@{GV!cC2FCl0s<7yz6!3JWoBbUDTgpg% z4VNUk%xblMy7PjLF2We*3XY7K*N(*9Yx!_M zjU$&JXLiNxaTzoa&k@NSbzbLJTn$6bu6SPWYx)Zc1Li~Lqj($GuWsA#;zg85eH{yx zz3IIOea3A4QFGmJCfn7N_d$8a77j+T^W}Sr%0XdVLFf&zJ$s^D5Vrc!iV&GXyb5*A z6mG8d*6EDN7a;=dgVjYI--~4@Fe{{fcJ4B|;_Qg~&%6#?I(?X_$S4rDw{=>=8iZS=M^I#EF!m zXn%K_xXWwmm7R40LKXPo6ZzNZfN1-$S6RuVU=JlC|3#Xjo-%ebJvvC4n%IM)Q8NDh zGXd)L;ay_JMozc^mU*Uifnp=#+if>LD*O9MV#@wB1l``z|tlu(7PJqS6rm)0@ zJzP50{0Vpa`_?92oB;*i(?i225a6tZgT+9Dg?vTh)N4OKA~(c8{$8-ZKz=mb@$4IT9g8>;k11WIT+Y=%Z})`y#OJ zK-~rlEy!T%0h!Qo+jjPF2RQz2Z^B;dbvYg2JS`+@D~OWH{2-EEs^BdnuJskh>CKeT z1b;%8dU6QU%i@z?^6Q-{XESe^qRiw`ka+k!d-{c%&lXM}vCX^T=|?|;t6r?N*h-W4 z?o4Hy%BWqW+5=+md#5^8|49zjM zon_Do@rhzZ4XAb}-m|bMH$Vg<;^Bo6A8cfhUQ>|wFk~j(`>1NgD3sTg)He1pWrUj9WZ8R(Wn5Rr zhc&dXvv_m%HrwwHo9l_))NgdVUff%d&@4^$Pc=MDZdZ^xHL$KX^ z7W1{3UJ%>9v$W{Y3>vBvflE-soDj8{`>#F|8Z$EF%lN$NylORTn5JsI4mTMHWd*%- z2sD(RO(H-&i8&Ge)5i12slI5VekYCZ)s8rv&_)194;vKY2m8DIC2{4<&xTM3HHxwT zd(42n)gCJ$O4I|8sJq07#0U7Yk7PjPK&bMdy-5b)OdhSsBo^|IB_H43@&F@tpdJR0 z#~)=UJdP|=)O{0(rVZnjbTtwHV^}&kfLJQP@R6rda;K;O>9J9bnW$BgbzOZ8aO{D8 zPuJ%=Nqg~rdzk-IW0ZC5I%cc;ek5~=lDXl4?gMOQQ!KE5Aq$9qeGFM6jFP;Xy6)%N zjg{q(E6fnF02P3L*tutbHRR-gyYK3g^y9H?GMtIs;ojG zY~3*C>qD)(8jz}89w|xfb7L`^d>AG#%D-uq=qz}(o9kzzrx0LSBX90ykr*5oM+YmoTRWe+Cj6aq^xnWRymLmE>krCpoC9K%2LT0aK0Y< zt@kUUrrj1WL9rmBB8B;WXqg-BztOiUZX-!`*a&-75+!WZ!R0OPiZz?w`Of4q#+(;m z`${Ea6GnTCY3`V2R8w*}knf)*`RA@(8k{Lp4VP;<+ z9O_z0_{3=HcVi z5)&QGEB_&$)mu@)(Z8zuw#>Gc6C>^O-FUZEo;TO1@$>-xu%`v`tMS3V-8R1pb5w&zP%&rAP2*5h z$k{jqReFXCJhJ?-{x(2j5gH_zQ>;#Ec*@bUqF0u}XB09+U-K}+jQd>)k#AOkr6M8x zHyhrfJ`99@Vzr_B@*p@`DxeJ#`jimavZ9ZV%v{mO0!%9$TY(f%_}BU~3R%QxmSdD1 z2Bp45R0C=8qtx-~+oULrzCMHMof!&H<~~>BhOu9t%ti7ERzy&MfeFI`yIK^$C)AW3 zNQRoy0G}{Z0U#b~iYF^Jc^xOlG#4#C=;O>}m0(@{S^B2chkhuBA^ur)c`E;iGC9@z z7%fqif|WXh26-3;GTi8YpXUOSVWuR&C%jb}s5V4o;X~?V>XaR)8gBIQvmh3-xs)|E z8CExUnh>Ngjb^6YLgG<K?>j`V4Zp4G4%h8vUG^ouv)P!AnMkAWurg1zX2{E)hFp5ex ziBTDWLl+>ihx>1Um{+p<{v-zS?fx&Ioeu#9;aON_P4|J-J)gPF2-0?yt=+nHsn^1G z2bM#YbR1hHRbR9Or49U3T&x=1c0%dKX4HI!55MQv`3gt5ENVMAhhgEp@kG2k+qT|<5K~u`9G7x z?eB%b2B#mq)&K}m$lwDv|MU~=Y(D2jO{j*Box$GUn=$90z6O^7F?7pn=P;{r4C8qa zv1n*5N7uIvTn`8$>}(74>Oqk=E7){#pHUFd5XRJ5ObMhqODTa}=V0;+a(7JZR-4<3 zBTvsqRwLh?*ZF)JWsWOkEq7*XMQ!G3Rmkdh7ZbM#v1~?jt((e2y}u}Ky>1qa&Y7m@ zveIzH@?5Gexr79*?sbZGkVS;s1U<7D(%~7HjAmzj$aDYv_FGl5JX@LW8>w=HCDl6W z%?rsr0)bErYJ5G1v&zjr{8=lW)ZYcstgZAuL}!0~8HAcgOm@nJ9cvOOtL@)Fpl2Dr z8876Lt<|1eF88Jx#C*XyGI)C5z_o!Os!t=Xy0$Kj^4fG1pb@16%g z+<)zJ1n1QO78g#$3yHj+(Smv`HW5y_-PP{h2A1UXMG-c%hMvHLbF6t}G>KA)H# z`AWL~>8JUT(iq7;zJr!Aj)AS+n{mRbA3aM+Gj}b#PhHdTM_NkwQm330EC9waM$=slPfxR1vmr!vf~t_M?a%`@`&tdE}ipY-p#Q#zhLK zd9eFC;PjIEAKLkRkO94{rTuNFqKbNUGtaNZRRbax9;|%2WbnGu!44#64RriY5u0O} z05G^e&JB?Wb*8^g)aM`yt|}~QJkKCipFNeyex~P~SFPVEafD(73rncKmm)m~&`O*YUyY9z7tO%ec7z@wWcoOr-ebP z1k+|y?d{>1jLC=s4B2tEhiTtu->WVJno&%%6bG46KuU9D`GEN!C!9chM>zd=cl0+- z^k>4rpkq7_iWGHtBvy$Q`dja2;1ZdYmF6cANU6{v>l1=fSKRpsTRonp@alC%p{bhU z>g+(%-)&_nDQ~#bq5;xo^06RggA&uH4RMVb6wt;oQI+`m_zt>SiI5hXkfEnn6@ZNk zh9KUr1jtt6lBg$O#TAoTRvwUtWeMP3EjnGoRPQppiNF(sX%|Q4@kIjas|WZWXSENO zfF#2yOb;%XO*LeOoAwlf{u7_39$x(w3xT~)2BNJ2l5u4n3a0NkNLT4yT);7fA?1Vt zCz*`hbw-doYa09E!05zcfOT0EOORY``E@D z5{v%@F~&|UfNt@>vrj66W5f>jy+G_8&VB9D0*>N!7_Nr=-x6N?A)M8>1~q(X34sXp zpA%@w&c};L7u*G3;(Qe=LFL}NbTF$|aX#A%P(h`-N=ZRxCvlG$>Klv}jo0MS|UR8qKq-1FokBJmrbTJjQ!k#Is0tY+0c)m4Gp80YzYD zEGXd~ihaihk;?xUknXNH?rssjzaF+l6?HnDQjVP$i=q}{lp_WbOTKKg}HPKW)2sW`L#NvgmaY0^b2Ldk|t{P6{L{>ym;Xgao1PrudBgEMRFb^ zkPJ6v0h^tJ>K@;maHk_|6Z>yFzq@YvDOeO6Ob_?P4Ey>kHiJv`Wlh_MX4fBY36f%^ zV#2t;$Rg&}!Kwifm z;TVZXMxw3~$--{&A8-6vnUZ#s4`Z-zQ#+y7UI8#Hgsc|ompLUc zqlAG!Ti>t{JzYF^5pM925*PUWUvDuYDGKhC4FMx45c`L#V7%V+88@|khLj|V=J9Un zJEcP5qVCzR6p{FK!nIY~TXo)tJ!{>CG;~&u;EPlnNrwJ=5)ke@hJosN!siM$8b2mM zmc&weo-rY{n1+%c`c<{AT3i zjF{p253Ul-)s5A+!8Dp7?viXAdH1+qlY%mK5pp?{pS1t!3qmmDOq2TnoV`F3<>(XK z1=gfH39N_~8O+~({MZX~+QHyB>vtgwK0@uqGkX^eaf$UFHiO#>LB*7@=c0o6`0muj zmH00_F#p)s3E*$A-zP+p2bvXARTg3)Lxh`tf~9X>7!Z^kHV`uE%V9+BiBG=mxj*)M zr%3rn=)>GR`{#zmwD)$3ToLMx++uqsCx(+50Uk*5QJp2c6msxLD&P-y{c|XK6zZl3 z_Fgu8kp|gKVWv`GS!c56FWPO)ZrCCtYh#*yp-ssus)ot>_~UB zyGfjTjz#fXod{^KEQK1~@jN|;SZw5OgH#0wK78Oe4#vV3*|&XPQU z$r~5u8ziT0<#ICrX^<1){mvtaqT9OqlW?wiSu4X#rOC(0uL{Ownb%i1F_G&d>=l51 zx!FEO4_LK+)W^N6UF+fAccyyp{t)TE`;vF@1irbNjcXF8b?yFh zl5UEB>@;wO`~gMF!QB;h<``+f(lxAb_8B$;&vT7)(bXG(7x_5f%AZ5;h#3WjHisX{ zLTSguapAADXMwWZ&jsD0+K!+8#*6z7-(T+QUk>(~!Q|0&!d)PgEw8F6RK;LkB;!HXg79$+l*KU&-fRF|$o+kR4mJ36k9p&>*uS~RhCV+*Y$3U-k%~M)jxCFW zl9;bQ-fx4HPy)*(bhrKL!81M6*@6p5W?z*W`jb;@JKMFwmic{gQPv*) z?I{Fh)y)}(-6uh^I52xKo!LRZV0c*1X)Z(g+GVFN{2n%vD*@&IkVI{R_0;M28M z8vu?M+xVF-&<{l@1g{PA#hnyAq(gudz4WKSFL5YOr3q!|qrxa7z~F~rEJ29VQKgNe z1*L^m9&acg2p7&`u&V%oY|AKF(Xpv=)wf&j#n|;2UYEaUIHLJuTQw$SbrNn+)38PlfV^0<6s>)|hT#IAAS*T)_^_q@I} z0S%tV-HrXOjzkvW!YSbDjdH=g;=4A@whsDB zI8^aX6n=|ab(?!Ay!)CxH(wC(iX~Q@%FEx>C{Hmp98f2ku$Bsw%lk6v50(U@; zu68Z9U&za}O#-Mv^+!V=eyj6S)5oS{My`1MVs)nlnYl_$xU^QId1_jMf7&K8ij)jQ zJ|+~@l)xpV%~Y{P()$`+nBihkjE|3t3t8PoKU3wZ_Eg%0P<>%(A@oW#*8i$X!nfG& z;&&2ZIKlD~*Gff+p3A7QB!}Ei>RGhUUz^UoEpeJ{`2ov>wH!O@1$VW>A#D#{i2z9l z{d)FK9OYxRY#(6NUMO=q^5Ve7R|72%f}ZDlsm0BN&LzyaSHurXV4p5HGf7|Z)}8)g z5J#S6h{-+_U0m$k#+|N{6_8MYactWzWb+1~ea8wX3zX<@O0>pU*q($J{=R&7)P&jg z6Kb)o=HAnC_MP;cIeBq}{gG^0CZzOUJZ|7C-VjE}!?*UtKTcwwF33v^BYC&}Rq)C* zpAJ07-!{`flYX1@n;ZK-=x4)!o(%(1UqulVmes(D z^`_HNfM#umEYy~=zh$9&+?8$4!l(4rr?d#8hS4iks@9w%E4l`BKmhUtvsm1X-mKC3 z>4(u4yS45OgZIOQ;EQ6s`sjNelo!~mLe7gS69TW2WnFwEKcAwioq2mLXV<9CIa#(0`sQpl>vwW`A$D?!2%nt*HEb;Ga=o?92 zHAOICmXHEQ%Cc{m2>dLjPU1J}^w7zilFIxy9nG(OZbYPtW?3KJyv@A7|1A*NiD_v! zTLC}%E4kI*d?$lQBRL==MPsD#FyN0ZSr`;aeQ4C6a2INH9klU~_gCH;G2%8R4EuHb z44Ej^6301>?c06FP3X~xyP{77p`-3td;HKAGf4mZw1qRd6Z^^L#?qaiAKv~px)*jAV^re~beps9m{kJzb6n(oS8uCt#Lnjofg;Rl z=apY)JsV;^dVkzCW)jDrii_WTT`3iKri(xmCC1^AO}Vqt-1B*wwIlBAmE1AmdRtMc zD!fB@mtwHPHyV-^VIVU??*~*{olz-Ub)NCX941BDj_CKZ+QYQ?+``tyhy_7WFXF}_ z?~CVO#LsDYD!&}cph22{PZ*TK?$K^u`E7%{^na89Rm%!jSZs7vI-D zL1POD!1cu56G)*p1gui3-i^JZPX3tI*_Fq&JRwbz*#8LUSiMRWjuu`zD|uk;+X&d@ zuxF5C2{Zp#O?GtOB+R2~tF>MDI(}%p-W=M>1tEY}8E=b_l*WbOO zY9tCPgL3vMEqz)_eWeqmN{qobq_4)XdXJSe6Hj;Eie0??2ZZ?p;*_K8@(&v~1evu- zxQCA2YYvv@qhzamqdi`?{Z{c*7$arCdz4-4G(`O5It%y&8>d{#Y9Vax^FZ99ZK zUdIPpkNhp8uP3T+W4lhvUIYaoY##y6KtxBFoj3&5^@Q(^{677%C#3YJh$p-Ee2M6F ztJAoQv1N0L!|N8XBD(eAYcB#gRaIX7T8U5xXbx~cJSon~YnC zaJYE%zOj9y?E==_B$*9NiAm{~)2Z}t1$$l?qOYct5Ep5HvqFKvuSE7A5YF$K@2>UE zbQOdTNzjD#zS(L>wa2$K-WK!Pc%pY^8To58;^JaXZ}F30wuYl;WWs~rCoo&vrEtUh zTBLMU??yx1#;-weCPZyOJ%Yeb?14z+OXW0L_E+<)(q=;xz74U-Q~R~n*oC;MxyrJo(74r$y2t;x`D~{nhUw`N{Bbc zo`l5kb`Yy;L=&@MTQ~Ml_%V%){mCIj4WC}5q=A_ACx2^by!4w1rVX6H0ifayJsw;; z=+}5kjC?RG*q)^FA;udd?fK$7vU1x>y0w;A-)YbE%l$J%nRRjAIlrItFPgQvJ7Ytb z%HSFnjF2||X&L_g-Q>1{(mholW_-EJmSzsO%*VVVB4)#OAv<(kOIx2H!f)I9#e_Nyjdb$&*1KN^gM}yFIhi%%BWB}7Ke0M{0WY>CxJQUuL<9GW$I>S z8~;QmE{^wS?I`=DyV^l+MozMPWLoFz=uSLu99tiVHdCN>7jRs~vd13`&Gey!!7_+< z6o@25%!eN~+Eki#7iq@#{Hxl7pF0^`N;~p~#tc6HXJP0g5xvK|AuLSwNHVI2_Y-!& z4hemc%vOM5!ySDypyEGe=lAeFbIp`w8FIUcTqUwens>sTIV-jDhrcKGX7XHFXyazb z^DO8=ZgefY6R6&+)c1_i*WoenjtR5@_JU#Ph;4M8fpmznxE9R`=r@-#_y zkD?Muq|*gg7f*BQeI|Np#}Q|NXLJHM6GE{;SJn8ce`V1Gehym~{8c+M<2~=HcCRuk z-v&$8dc8YG+tK}NYVhwdm1iZ&A#r+T<>Ez88)Eq9j+G5h5D(_u{WQdUTOs+QbA(=? z{F6n6UV8D2*lvb)0vDrca$729KG$xO2aH$jWoWl0drlmefYsTswh)`GjMtmR=vEkJ zN$aTp_@@KL%KQ-VDB2ppbZK@X`6cJA5n`g>sbCTvU_xdid!{9gWA|>Mfs6rtHx6s` z_wMt*FgUTBZ@I2C62&zbs?pPvK9TpatkXzqDqe4YTr^nnQg8gWxjKt*s&eOMEp!Qc zG~PT`>xg76Xqh^dKI-Eu#K*VnvEf9qT{L0yNpVj)eVD#kQzGgVRbTB!5nWY=?t!cggiEGBAcWM2xNtW&9 zZB_6RZ}|a87CuEYRYCRJ`Sg+_gBK$_J@*zoWcJJw>eBw?G9WY(Jw~qN|A3MBR^~jm?>k5oGv7z+0jWOox(co@%nya|* zE-2peyX)#@svgwwDMPJ89dT=iO>}@wtNR@NUQ|cJZ};sX(w2uWP4AE5)@A ziJgy_TIZ+T&vG&xPh@Jmt!OJ|zA6C0ZxfF2 z7>aIZqecbmM$lyvDMwg2?Ipo9b)-WL6K_7(X_rmJgdd$-Qc^ywEw4SThChz6*_yu= z{v~a4V|RJtH-GThc2C0Z|JHPl{II-!?B~7cWnRz&dgP*UqoY!iCo&i-xeM}kl?ID* zKTX`w+;z0+MCdGcl{N?xb|tYb%Id=k++k_@(V%bTS&n09`0{S0)|>IH_F;V@_zrxS-dKDDc7+i`nHN8J z;38w69lzAS*WWa+dnVvk(0-KD3%*)TerLH zSCc}Tjc-mR5|1HAL$C1}oue|Qp&M!hmyDUcg)Cz>GXPEyeYf}+s48kIl*pL{{treP BIP(Ai diff --git a/ReactNativeExample/android/app/src/main/res/values/strings.xml b/ReactNativeExample/android/app/src/main/res/values/strings.xml deleted file mode 100644 index e79194b52..000000000 --- a/ReactNativeExample/android/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - ReactNativeExample - diff --git a/ReactNativeExample/android/app/src/main/res/values/styles.xml b/ReactNativeExample/android/app/src/main/res/values/styles.xml deleted file mode 100644 index 7ba83a2ad..000000000 --- a/ReactNativeExample/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/ReactNativeExample/android/build.gradle b/ReactNativeExample/android/build.gradle deleted file mode 100644 index 8569fee3a..000000000 --- a/ReactNativeExample/android/build.gradle +++ /dev/null @@ -1,51 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - ext { - buildToolsVersion = "31.0.0" - minSdkVersion = 21 - compileSdkVersion = 31 - targetSdkVersion = 31 - - if (System.properties['os.arch'] == "aarch64") { - // For M1 Users we need to use the NDK 24 which added support for aarch64 - ndkVersion = "24.0.8215888" - } else { - // Otherwise we default to the side-by-side NDK version from AGP. - ndkVersion = "21.4.7075529" - } - } - repositories { - google() - mavenCentral() - } - dependencies { - classpath("com.android.tools.build:gradle:7.2.1") - classpath("com.facebook.react:react-native-gradle-plugin") - classpath("de.undercouch:gradle-download-task:5.0.1") - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - maven { - // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm - url("$rootDir/../node_modules/react-native/android") - } - maven { - // Android JSC is installed from npm - url("$rootDir/../node_modules/jsc-android/dist") - } - mavenCentral { - // We don't want to fetch react-native from Maven Central as there are - // older versions over there. - content { - excludeGroup "com.facebook.react" - } - } - google() - maven { url 'https://www.jitpack.io' } - } -} diff --git a/ReactNativeExample/android/gradle.properties b/ReactNativeExample/android/gradle.properties deleted file mode 100644 index fa4feae5f..000000000 --- a/ReactNativeExample/android/gradle.properties +++ /dev/null @@ -1,40 +0,0 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. - -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html - -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m -org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m - -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true - -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app's APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Automatically convert third-party libraries to use AndroidX -android.enableJetifier=true - -# Version of flipper SDK to use with React Native -FLIPPER_VERSION=0.125.0 - -# Use this property to specify which architecture you want to build. -# You can also override it from the CLI using -# ./gradlew -PreactNativeArchitectures=x86_64 -reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 - -# Use this property to enable support to the new architecture. -# This will allow you to use TurboModules and the Fabric render in -# your application. You should enable this flag either if you want -# to write custom TurboModules/Fabric components OR use libraries that -# are providing them. -newArchEnabled=false diff --git a/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar b/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 41d9927a4d4fb3f96a785543079b8df6723c946b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 59821 zcma&NV|1p`(k7gaZQHhOJ9%QKV?D8LCmq{1JGRYE(y=?XJw0>InKkE~^UnAEs2gk5 zUVGPCwX3dOb!}xiFmPB95NK!+5D<~S0s;d1zn&lrfAn7 zC?Nb-LFlib|DTEqB8oDS5&$(u1<5;wsY!V`2F7^=IR@I9so5q~=3i_(hqqG<9SbL8Q(LqDrz+aNtGYWGJ2;p*{a-^;C>BfGzkz_@fPsK8{pTT~_VzB$E`P@> z7+V1WF2+tSW=`ZRj3&0m&d#x_lfXq`bb-Y-SC-O{dkN2EVM7@!n|{s+2=xSEMtW7( zz~A!cBpDMpQu{FP=y;sO4Le}Z)I$wuFwpugEY3vEGfVAHGqZ-<{vaMv-5_^uO%a{n zE_Zw46^M|0*dZ`;t%^3C19hr=8FvVdDp1>SY>KvG!UfD`O_@weQH~;~W=fXK_!Yc> z`EY^PDJ&C&7LC;CgQJeXH2 zjfM}2(1i5Syj)Jj4EaRyiIl#@&lC5xD{8hS4Wko7>J)6AYPC-(ROpVE-;|Z&u(o=X z2j!*>XJ|>Lo+8T?PQm;SH_St1wxQPz)b)Z^C(KDEN$|-6{A>P7r4J1R-=R7|FX*@! zmA{Ja?XE;AvisJy6;cr9Q5ovphdXR{gE_7EF`ji;n|RokAJ30Zo5;|v!xtJr+}qbW zY!NI6_Wk#6pWFX~t$rAUWi?bAOv-oL6N#1>C~S|7_e4 zF}b9(&a*gHk+4@J26&xpiWYf2HN>P;4p|TD4f586umA2t@cO1=Fx+qd@1Ae#Le>{-?m!PnbuF->g3u)7(n^llJfVI%Q2rMvetfV5 z6g|sGf}pV)3_`$QiKQnqQ<&ghOWz4_{`rA1+7*M0X{y(+?$|{n zs;FEW>YzUWg{sO*+D2l6&qd+$JJP_1Tm;To<@ZE%5iug8vCN3yH{!6u5Hm=#3HJ6J zmS(4nG@PI^7l6AW+cWAo9sFmE`VRcM`sP7X$^vQY(NBqBYU8B|n-PrZdNv8?K?kUTT3|IE`-A8V*eEM2=u*kDhhKsmVPWGns z8QvBk=BPjvu!QLtlF0qW(k+4i+?H&L*qf262G#fks9}D5-L{yiaD10~a;-j!p!>5K zl@Lh+(9D{ePo_S4F&QXv|q_yT`GIPEWNHDD8KEcF*2DdZD;=J6u z|8ICSoT~5Wd!>g%2ovFh`!lTZhAwpIbtchDc{$N%<~e$E<7GWsD42UdJh1fD($89f2on`W`9XZJmr*7lRjAA8K0!(t8-u>2H*xn5cy1EG{J;w;Q-H8Yyx+WW(qoZZM7p(KQx^2-yI6Sw?k<=lVOVwYn zY*eDm%~=|`c{tUupZ^oNwIr!o9T;H3Fr|>NE#By8SvHb&#;cyBmY1LwdXqZwi;qn8 zK+&z{{95(SOPXAl%EdJ3jC5yV^|^}nOT@M0)|$iOcq8G{#*OH7=DlfOb; z#tRO#tcrc*yQB5!{l5AF3(U4>e}nEvkoE_XCX=a3&A6Atwnr&`r&f2d%lDr8f?hBB zr1dKNypE$CFbT9I?n){q<1zHmY>C=5>9_phi79pLJG)f=#dKdQ7We8emMjwR*qIMF zE_P-T*$hX#FUa%bjv4Vm=;oxxv`B*`weqUn}K=^TXjJG=UxdFMSj-QV6fu~;- z|IsUq`#|73M%Yn;VHJUbt<0UHRzbaF{X@76=8*-IRx~bYgSf*H(t?KH=?D@wk*E{| z2@U%jKlmf~C^YxD=|&H?(g~R9-jzEb^y|N5d`p#2-@?BUcHys({pUz4Zto7XwKq2X zSB~|KQGgv_Mh@M!*{nl~2~VV_te&E7K39|WYH zCxfd|v_4!h$Ps2@atm+gj14Ru)DhivY&(e_`eA)!O1>nkGq|F-#-6oo5|XKEfF4hR z%{U%ar7Z8~B!foCd_VRHr;Z1c0Et~y8>ZyVVo9>LLi(qb^bxVkbq-Jq9IF7!FT`(- zTMrf6I*|SIznJLRtlP)_7tQ>J`Um>@pP=TSfaPB(bto$G1C zx#z0$=zNpP-~R);kM4O)9Mqn@5Myv5MmmXOJln312kq#_94)bpSd%fcEo7cD#&|<` zrcal$(1Xv(nDEquG#`{&9Ci~W)-zd_HbH-@2F6+|a4v}P!w!Q*h$#Zu+EcZeY>u&?hn#DCfC zVuye5@Ygr+T)0O2R1*Hvlt>%rez)P2wS}N-i{~IQItGZkp&aeY^;>^m7JT|O^{`78 z$KaK0quwcajja;LU%N|{`2o&QH@u%jtH+j!haGj;*ZCR*`UgOXWE>qpXqHc?g&vA& zt-?_g8k%ZS|D;()0Lf!>7KzTSo-8hUh%OA~i76HKRLudaNiwo*E9HxmzN4y>YpZNO zUE%Q|H_R_UmX=*f=2g=xyP)l-DP}kB@PX|(Ye$NOGN{h+fI6HVw`~Cd0cKqO;s6aiYLy7sl~%gs`~XaL z^KrZ9QeRA{O*#iNmB7_P!=*^pZiJ5O@iE&X2UmUCPz!)`2G3)5;H?d~3#P|)O(OQ_ zua+ZzwWGkWflk4j^Lb=x56M75_p9M*Q50#(+!aT01y80x#rs9##!;b-BH?2Fu&vx} za%4!~GAEDsB54X9wCF~juV@aU}fp_(a<`Ig0Pip8IjpRe#BR?-niYcz@jI+QY zBU9!8dAfq@%p;FX)X=E7?B=qJJNXlJ&7FBsz;4&|*z{^kEE!XbA)(G_O6I9GVzMAF z8)+Un(6od`W7O!!M=0Z)AJuNyN8q>jNaOdC-zAZ31$Iq%{c_SYZe+(~_R`a@ zOFiE*&*o5XG;~UjsuW*ja-0}}rJdd@^VnQD!z2O~+k-OSF%?hqcFPa4e{mV1UOY#J zTf!PM=KMNAzbf(+|AL%K~$ahX0Ol zbAxKu3;v#P{Qia{_WzHl`!@!8c#62XSegM{tW1nu?Ee{sQq(t{0TSq67YfG;KrZ$n z*$S-+R2G?aa*6kRiTvVxqgUhJ{ASSgtepG3hb<3hlM|r>Hr~v_DQ>|Nc%&)r0A9go z&F3Ao!PWKVq~aWOzLQIy&R*xo>}{UTr}?`)KS&2$3NR@a+>+hqK*6r6Uu-H};ZG^| zfq_Vl%YE1*uGwtJ>H*Y(Q9E6kOfLJRlrDNv`N;jnag&f<4#UErM0ECf$8DASxMFF& zK=mZgu)xBz6lXJ~WZR7OYw;4&?v3Kk-QTs;v1r%XhgzSWVf|`Sre2XGdJb}l1!a~z zP92YjnfI7OnF@4~g*LF>G9IZ5c+tifpcm6#m)+BmnZ1kz+pM8iUhwag`_gqr(bnpy zl-noA2L@2+?*7`ZO{P7&UL~ahldjl`r3=HIdo~Hq#d+&Q;)LHZ4&5zuDNug@9-uk; z<2&m#0Um`s=B}_}9s&70Tv_~Va@WJ$n~s`7tVxi^s&_nPI0`QX=JnItlOu*Tn;T@> zXsVNAHd&K?*u~a@u8MWX17VaWuE0=6B93P2IQ{S$-WmT+Yp!9eA>@n~=s>?uDQ4*X zC(SxlKap@0R^z1p9C(VKM>nX8-|84nvIQJ-;9ei0qs{}X>?f%&E#%-)Bpv_p;s4R+ z;PMpG5*rvN&l;i{^~&wKnEhT!S!LQ>udPzta#Hc9)S8EUHK=%x+z@iq!O{)*XM}aI zBJE)vokFFXTeG<2Pq}5Na+kKnu?Ch|YoxdPb&Z{07nq!yzj0=xjzZj@3XvwLF0}Pa zn;x^HW504NNfLY~w!}5>`z=e{nzGB>t4ntE>R}r7*hJF3OoEx}&6LvZz4``m{AZxC zz6V+^73YbuY>6i9ulu)2`ozP(XBY5n$!kiAE_Vf4}Ih)tlOjgF3HW|DF+q-jI_0p%6Voc^e;g28* z;Sr4X{n(X7eEnACWRGNsHqQ_OfWhAHwnSQ87@PvPcpa!xr9`9+{QRn;bh^jgO8q@v zLekO@-cdc&eOKsvXs-eMCH8Y{*~3Iy!+CANy+(WXYS&6XB$&1+tB?!qcL@@) zS7XQ|5=o1fr8yM7r1AyAD~c@Mo`^i~hjx{N17%pDX?j@2bdBEbxY}YZxz!h#)q^1x zpc_RnoC3`V?L|G2R1QbR6pI{Am?yW?4Gy`G-xBYfebXvZ=(nTD7u?OEw>;vQICdPJBmi~;xhVV zisVvnE!bxI5|@IIlDRolo_^tc1{m)XTbIX^<{TQfsUA1Wv(KjJED^nj`r!JjEA%MaEGqPB z9YVt~ol3%e`PaqjZt&-)Fl^NeGmZ)nbL;92cOeLM2H*r-zA@d->H5T_8_;Jut0Q_G zBM2((-VHy2&eNkztIpHk&1H3M3@&wvvU9+$RO%fSEa_d5-qZ!<`-5?L9lQ1@AEpo* z3}Zz~R6&^i9KfRM8WGc6fTFD%PGdruE}`X$tP_*A)_7(uI5{k|LYc-WY*%GJ6JMmw zNBT%^E#IhekpA(i zcB$!EB}#>{^=G%rQ~2;gbObT9PQ{~aVx_W6?(j@)S$&Ja1s}aLT%A*mP}NiG5G93- z_DaRGP77PzLv0s32{UFm##C2LsU!w{vHdKTM1X)}W%OyZ&{3d^2Zu-zw?fT=+zi*q z^fu6CXQ!i?=ljsqSUzw>g#PMk>(^#ejrYp(C)7+@Z1=Mw$Rw!l8c9}+$Uz;9NUO(kCd#A1DX4Lbis0k; z?~pO(;@I6Ajp}PL;&`3+;OVkr3A^dQ(j?`by@A!qQam@_5(w6fG>PvhO`#P(y~2ue zW1BH_GqUY&>PggMhhi@8kAY;XWmj>y1M@c`0v+l~l0&~Kd8ZSg5#46wTLPo*Aom-5 z>qRXyWl}Yda=e@hJ%`x=?I42(B0lRiR~w>n6p8SHN~B6Y>W(MOxLpv>aB)E<1oEcw z%X;#DJpeDaD;CJRLX%u!t23F|cv0ZaE183LXxMq*uWn)cD_ zp!@i5zsmcxb!5uhp^@>U;K>$B|8U@3$65CmhuLlZ2(lF#hHq-<<+7ZN9m3-hFAPgA zKi;jMBa*59ficc#TRbH_l`2r>z(Bm_XEY}rAwyp~c8L>{A<0@Q)j*uXns^q5z~>KI z)43=nMhcU1ZaF;CaBo>hl6;@(2#9yXZ7_BwS4u>gN%SBS<;j{{+p}tbD8y_DFu1#0 zx)h&?`_`=ti_6L>VDH3>PPAc@?wg=Omdoip5j-2{$T;E9m)o2noyFW$5dXb{9CZ?c z);zf3U526r3Fl+{82!z)aHkZV6GM@%OKJB5mS~JcDjieFaVn}}M5rtPnHQVw0Stn- zEHs_gqfT8(0b-5ZCk1%1{QQaY3%b>wU z7lyE?lYGuPmB6jnMI6s$1uxN{Tf_n7H~nKu+h7=%60WK-C&kEIq_d4`wU(*~rJsW< zo^D$-(b0~uNVgC+$J3MUK)(>6*k?92mLgpod{Pd?{os+yHr&t+9ZgM*9;dCQBzE!V zk6e6)9U6Bq$^_`E1xd}d;5O8^6?@bK>QB&7l{vAy^P6FOEO^l7wK4K=lLA45gQ3$X z=$N{GR1{cxO)j;ZxKI*1kZIT9p>%FhoFbRK;M(m&bL?SaN zzkZS9xMf={o@gpG%wE857u@9dq>UKvbaM1SNtMA9EFOp7$BjJQVkIm$wU?-yOOs{i z1^(E(WwZZG{_#aIzfpGc@g5-AtK^?Q&vY#CtVpfLbW?g0{BEX4Vlk(`AO1{-D@31J zce}#=$?Gq+FZG-SD^z)-;wQg9`qEO}Dvo+S9*PUB*JcU)@S;UVIpN7rOqXmEIerWo zP_lk!@RQvyds&zF$Rt>N#_=!?5{XI`Dbo0<@>fIVgcU*9Y+ z)}K(Y&fdgve3ruT{WCNs$XtParmvV;rjr&R(V&_#?ob1LzO0RW3?8_kSw)bjom#0; zeNllfz(HlOJw012B}rgCUF5o|Xp#HLC~of%lg+!pr(g^n;wCX@Yk~SQOss!j9f(KL zDiI1h#k{po=Irl)8N*KU*6*n)A8&i9Wf#7;HUR^5*6+Bzh;I*1cICa|`&`e{pgrdc zs}ita0AXb$c6{tu&hxmT0faMG0GFc)unG8tssRJd%&?^62!_h_kn^HU_kBgp$bSew zqu)M3jTn;)tipv9Wt4Ll#1bmO2n?^)t^ZPxjveoOuK89$oy4(8Ujw{nd*Rs*<+xFi z{k*9v%sl?wS{aBSMMWdazhs0#gX9Has=pi?DhG&_0|cIyRG7c`OBiVG6W#JjYf7-n zIQU*Jc+SYnI8oG^Q8So9SP_-w;Y00$p5+LZ{l+81>v7|qa#Cn->312n=YQd$PaVz8 zL*s?ZU*t-RxoR~4I7e^c!8TA4g>w@R5F4JnEWJpy>|m5la2b#F4d*uoz!m=i1;`L` zB(f>1fAd~;*wf%GEbE8`EA>IO9o6TdgbIC%+en!}(C5PGYqS0{pa?PD)5?ds=j9{w za9^@WBXMZ|D&(yfc~)tnrDd#*;u;0?8=lh4%b-lFPR3ItwVJp};HMdEw#SXg>f-zU zEiaj5H=jzRSy(sWVd%hnLZE{SUj~$xk&TfheSch#23)YTcjrB+IVe0jJqsdz__n{- zC~7L`DG}-Dgrinzf7Jr)e&^tdQ}8v7F+~eF*<`~Vph=MIB|YxNEtLo1jXt#9#UG5` zQ$OSk`u!US+Z!=>dGL>%i#uV<5*F?pivBH@@1idFrzVAzttp5~>Y?D0LV;8Yv`wAa{hewVjlhhBM z_mJhU9yWz9Jexg@G~dq6EW5^nDXe(sU^5{}qbd0*yW2Xq6G37f8{{X&Z>G~dUGDFu zgmsDDZZ5ZmtiBw58CERFPrEG>*)*`_B75!MDsOoK`T1aJ4GZ1avI?Z3OX|Hg?P(xy zSPgO$alKZuXd=pHP6UZy0G>#BFm(np+dekv0l6gd=36FijlT8^kI5; zw?Z*FPsibF2d9T$_L@uX9iw*>y_w9HSh8c=Rm}f>%W+8OS=Hj_wsH-^actull3c@!z@R4NQ4qpytnwMaY z)>!;FUeY?h2N9tD(othc7Q=(dF zZAX&Y1ac1~0n(z}!9{J2kPPnru1?qteJPvA2m!@3Zh%+f1VQt~@leK^$&ZudOpS!+ zw#L0usf!?Df1tB?9=zPZ@q2sG!A#9 zKZL`2cs%|Jf}wG=_rJkwh|5Idb;&}z)JQuMVCZSH9kkG%zvQO01wBN)c4Q`*xnto3 zi7TscilQ>t_SLij{@Fepen*a(`upw#RJAx|JYYXvP1v8f)dTHv9pc3ZUwx!0tOH?c z^Hn=gfjUyo!;+3vZhxNE?LJgP`qYJ`J)umMXT@b z{nU(a^xFfofcxfHN-!Jn*{Dp5NZ&i9#9r{)s^lUFCzs5LQL9~HgxvmU#W|iNs0<3O z%Y2FEgvts4t({%lfX1uJ$w{JwfpV|HsO{ZDl2|Q$-Q?UJd`@SLBsMKGjFFrJ(s?t^ z2Llf`deAe@YaGJf)k2e&ryg*m8R|pcjct@rOXa=64#V9!sp=6tC#~QvYh&M~zmJ;% zr*A}V)Ka^3JE!1pcF5G}b&jdrt;bM^+J;G^#R08x@{|ZWy|547&L|k6)HLG|sN<~o z?y`%kbfRN_vc}pwS!Zr}*q6DG7;be0qmxn)eOcD%s3Wk`=@GM>U3ojhAW&WRppi0e zudTj{ufwO~H7izZJmLJD3uPHtjAJvo6H=)&SJ_2%qRRECN#HEU_RGa(Pefk*HIvOH zW7{=Tt(Q(LZ6&WX_Z9vpen}jqge|wCCaLYpiw@f_%9+-!l{kYi&gT@Cj#D*&rz1%e z@*b1W13bN8^j7IpAi$>`_0c!aVzLe*01DY-AcvwE;kW}=Z{3RJLR|O~^iOS(dNEnL zJJ?Dv^ab++s2v!4Oa_WFDLc4fMspglkh;+vzg)4;LS{%CR*>VwyP4>1Tly+!fA-k? z6$bg!*>wKtg!qGO6GQ=cAmM_RC&hKg$~(m2LdP{{*M+*OVf07P$OHp*4SSj9H;)1p z^b1_4p4@C;8G7cBCB6XC{i@vTB3#55iRBZiml^jc4sYnepCKUD+~k}TiuA;HWC6V3 zV{L5uUAU9CdoU+qsFszEwp;@d^!6XnX~KI|!o|=r?qhs`(-Y{GfO4^d6?8BC0xonf zKtZc1C@dNu$~+p#m%JW*J7alfz^$x`U~)1{c7svkIgQ3~RK2LZ5;2TAx=H<4AjC8{ z;)}8OfkZy7pSzVsdX|wzLe=SLg$W1+`Isf=o&}npxWdVR(i8Rr{uzE516a@28VhVr zVgZ3L&X(Q}J0R2{V(}bbNwCDD5K)<5h9CLM*~!xmGTl{Mq$@;~+|U*O#nc^oHnFOy z9Kz%AS*=iTBY_bSZAAY6wXCI?EaE>8^}WF@|}O@I#i69ljjWQPBJVk zQ_rt#J56_wGXiyItvAShJpLEMtW_)V5JZAuK#BAp6bV3K;IkS zK0AL(3ia99!vUPL#j>?<>mA~Q!mC@F-9I$9Z!96ZCSJO8FDz1SP3gF~m`1c#y!efq8QN}eHd+BHwtm%M5586jlU8&e!CmOC z^N_{YV$1`II$~cTxt*dV{-yp61nUuX5z?N8GNBuZZR}Uy_Y3_~@Y3db#~-&0TX644OuG^D3w_`?Yci{gTaPWST8`LdE)HK5OYv>a=6B%R zw|}>ngvSTE1rh`#1Rey0?LXTq;bCIy>TKm^CTV4BCSqdpx1pzC3^ca*S3fUBbKMzF z6X%OSdtt50)yJw*V_HE`hnBA)1yVN3Ruq3l@lY;%Bu+Q&hYLf_Z@fCUVQY-h4M3)- zE_G|moU)Ne0TMjhg?tscN7#ME6!Rb+y#Kd&-`!9gZ06o3I-VX1d4b1O=bpRG-tDK0 zSEa9y46s7QI%LmhbU3P`RO?w#FDM(}k8T`&>OCU3xD=s5N7}w$GntXF;?jdVfg5w9OR8VPxp5{uw zD+_;Gb}@7Vo_d3UV7PS65%_pBUeEwX_Hwfe2e6Qmyq$%0i8Ewn%F7i%=CNEV)Qg`r|&+$ zP6^Vl(MmgvFq`Zb715wYD>a#si;o+b4j^VuhuN>+sNOq6Qc~Y;Y=T&!Q4>(&^>Z6* zwliz!_16EDLTT;v$@W(s7s0s zi*%p>q#t)`S4j=Ox_IcjcllyT38C4hr&mlr6qX-c;qVa~k$MG;UqdnzKX0wo0Xe-_)b zrHu1&21O$y5828UIHI@N;}J@-9cpxob}zqO#!U%Q*ybZ?BH#~^fOT_|8&xAs_rX24 z^nqn{UWqR?MlY~klh)#Rz-*%&e~9agOg*fIN`P&v!@gcO25Mec23}PhzImkdwVT|@ zFR9dYYmf&HiUF4xO9@t#u=uTBS@k*97Z!&hu@|xQnQDkLd!*N`!0JN7{EUoH%OD85 z@aQ2(w-N)1_M{;FV)C#(a4p!ofIA3XG(XZ2E#%j_(=`IWlJAHWkYM2&(+yY|^2TB0 z>wfC-+I}`)LFOJ%KeBb1?eNxGKeq?AI_eBE!M~$wYR~bB)J3=WvVlT8ZlF2EzIFZt zkaeyj#vmBTGkIL9mM3cEz@Yf>j=82+KgvJ-u_{bBOxE5zoRNQW3+Ahx+eMGem|8xo zL3ORKxY_R{k=f~M5oi-Z>5fgqjEtzC&xJEDQ@`<)*Gh3UsftBJno-y5Je^!D?Im{j za*I>RQ=IvU@5WKsIr?kC$DT+2bgR>8rOf3mtXeMVB~sm%X7W5`s=Tp>FR544tuQ>9qLt|aUSv^io&z93luW$_OYE^sf8DB?gx z4&k;dHMWph>Z{iuhhFJr+PCZ#SiZ9e5xM$A#0yPtVC>yk&_b9I676n|oAH?VeTe*1 z@tDK}QM-%J^3Ns6=_vh*I8hE?+=6n9nUU`}EX|;Mkr?6@NXy8&B0i6h?7%D=%M*Er zivG61Wk7e=v;<%t*G+HKBqz{;0Biv7F+WxGirONRxJij zon5~(a`UR%uUzfEma99QGbIxD(d}~oa|exU5Y27#4k@N|=hE%Y?Y3H%rcT zHmNO#ZJ7nPHRG#y-(-FSzaZ2S{`itkdYY^ZUvyw<7yMBkNG+>$Rfm{iN!gz7eASN9-B3g%LIEyRev|3)kSl;JL zX7MaUL_@~4ot3$woD0UA49)wUeu7#lj77M4ar8+myvO$B5LZS$!-ZXw3w;l#0anYz zDc_RQ0Ome}_i+o~H=CkzEa&r~M$1GC!-~WBiHiDq9Sdg{m|G?o7g`R%f(Zvby5q4; z=cvn`M>RFO%i_S@h3^#3wImmWI4}2x4skPNL9Am{c!WxR_spQX3+;fo!y(&~Palyjt~Xo0uy6d%sX&I`e>zv6CRSm)rc^w!;Y6iVBb3x@Y=`hl9jft zXm5vilB4IhImY5b->x{!MIdCermpyLbsalx8;hIUia%*+WEo4<2yZ6`OyG1Wp%1s$ zh<|KrHMv~XJ9dC8&EXJ`t3ETz>a|zLMx|MyJE54RU(@?K&p2d#x?eJC*WKO9^d17# zdTTKx-Os3k%^=58Sz|J28aCJ}X2-?YV3T7ee?*FoDLOC214J4|^*EX`?cy%+7Kb3(@0@!Q?p zk>>6dWjF~y(eyRPqjXqDOT`4^Qv-%G#Zb2G?&LS-EmO|ixxt79JZlMgd^~j)7XYQ; z62rGGXA=gLfgy{M-%1gR87hbhxq-fL)GSfEAm{yLQP!~m-{4i_jG*JsvUdqAkoc#q6Yd&>=;4udAh#?xa2L z7mFvCjz(hN7eV&cyFb%(U*30H@bQ8-b7mkm!=wh2|;+_4vo=tyHPQ0hL=NR`jbsSiBWtG ztMPPBgHj(JTK#0VcP36Z`?P|AN~ybm=jNbU=^3dK=|rLE+40>w+MWQW%4gJ`>K!^- zx4kM*XZLd(E4WsolMCRsdvTGC=37FofIyCZCj{v3{wqy4OXX-dZl@g`Dv>p2`l|H^ zS_@(8)7gA62{Qfft>vx71stILMuyV4uKb7BbCstG@|e*KWl{P1$=1xg(7E8MRRCWQ1g)>|QPAZot~|FYz_J0T+r zTWTB3AatKyUsTXR7{Uu) z$1J5SSqoJWt(@@L5a)#Q6bj$KvuC->J-q1!nYS6K5&e7vNdtj- zj9;qwbODLgIcObqNRGs1l{8>&7W?BbDd!87=@YD75B2ep?IY|gE~t)$`?XJ45MG@2 zz|H}f?qtEb_p^Xs$4{?nA=Qko3Lc~WrAS`M%9N60FKqL7XI+v_5H-UDiCbRm`fEmv z$pMVH*#@wQqml~MZe+)e4Ts3Gl^!Z0W3y$;|9hI?9(iw29b7en0>Kt2pjFXk@!@-g zTb4}Kw!@u|V!wzk0|qM*zj$*-*}e*ZXs#Y<6E_!BR}3^YtjI_byo{F+w9H9?f%mnBh(uE~!Um7)tgp2Ye;XYdVD95qt1I-fc@X zXHM)BfJ?^g(s3K|{N8B^hamrWAW|zis$`6|iA>M-`0f+vq(FLWgC&KnBDsM)_ez1# zPCTfN8{s^K`_bum2i5SWOn)B7JB0tzH5blC?|x;N{|@ch(8Uy-O{B2)OsfB$q0@FR z27m3YkcVi$KL;;4I*S;Z#6VfZcZFn!D2Npv5pio)sz-`_H*#}ROd7*y4i(y(YlH<4 zh4MmqBe^QV_$)VvzWgMXFy`M(vzyR2u!xx&%&{^*AcVLrGa8J9ycbynjKR~G6zC0e zlEU>zt7yQtMhz>XMnz>ewXS#{Bulz$6HETn?qD5v3td>`qGD;Y8&RmkvN=24=^6Q@DYY zxMt}uh2cSToMkkIWo1_Lp^FOn$+47JXJ*#q=JaeiIBUHEw#IiXz8cStEsw{UYCA5v_%cF@#m^Y!=+qttuH4u}r6gMvO4EAvjBURtLf& z6k!C|OU@hv_!*qear3KJ?VzVXDKqvKRtugefa7^^MSWl0fXXZR$Xb!b6`eY4A1#pk zAVoZvb_4dZ{f~M8fk3o?{xno^znH1t;;E6K#9?erW~7cs%EV|h^K>@&3Im}c7nm%Y zbLozFrwM&tSNp|46)OhP%MJ(5PydzR>8)X%i3!^L%3HCoCF#Y0#9vPI5l&MK*_ z6G8Y>$`~c)VvQle_4L_AewDGh@!bKkJeEs_NTz(yilnM!t}7jz>fmJb89jQo6~)%% z@GNIJ@AShd&K%UdQ5vR#yT<-goR+D@Tg;PuvcZ*2AzSWN&wW$Xc+~vW)pww~O|6hL zBxX?hOyA~S;3rAEfI&jmMT4f!-eVm%n^KF_QT=>!A<5tgXgi~VNBXqsFI(iI$Tu3x0L{<_-%|HMG4Cn?Xs zq~fvBhu;SDOCD7K5(l&i7Py-;Czx5byV*3y%#-Of9rtz?M_owXc2}$OIY~)EZ&2?r zLQ(onz~I7U!w?B%LtfDz)*X=CscqH!UE=mO?d&oYvtj|(u)^yomS;Cd>Men|#2yuD zg&tf(*iSHyo;^A03p&_j*QXay9d}qZ0CgU@rnFNDIT5xLhC5_tlugv()+w%`7;ICf z>;<#L4m@{1}Og76*e zHWFm~;n@B1GqO8s%=qu)+^MR|jp(ULUOi~v;wE8SB6^mK@adSb=o+A_>Itjn13AF& zDZe+wUF9G!JFv|dpj1#d+}BO~s*QTe3381TxA%Q>P*J#z%( z5*8N^QWxgF73^cTKkkvgvIzf*cLEyyKw)Wf{#$n{uS#(rAA~>TS#!asqQ2m_izXe3 z7$Oh=rR;sdmVx3G)s}eImsb<@r2~5?vcw*Q4LU~FFh!y4r*>~S7slAE6)W3Up2OHr z2R)+O<0kKo<3+5vB}v!lB*`%}gFldc+79iahqEx#&Im@NCQU$@PyCZbcTt?K{;o@4 z312O9GB)?X&wAB}*-NEU zn@6`)G`FhT8O^=Cz3y+XtbwO{5+{4-&?z!esFts-C zypwgI^4#tZ74KC+_IW|E@kMI=1pSJkvg$9G3Va(!reMnJ$kcMiZ=30dTJ%(Ws>eUf z;|l--TFDqL!PZbLc_O(XP0QornpP;!)hdT#Ts7tZ9fcQeH&rhP_1L|Z_ha#JOroe^qcsLi`+AoBWHPM7}gD z+mHuPXd14M?nkp|nu9G8hPk;3=JXE-a204Fg!BK|$MX`k-qPeD$2OOqvF;C(l8wm13?>i(pz7kRyYm zM$IEzf`$}B%ezr!$(UO#uWExn%nTCTIZzq&8@i8sP#6r8 z*QMUzZV(LEWZb)wbmf|Li;UpiP;PlTQ(X4zreD`|`RG!7_wc6J^MFD!A=#K*ze>Jg z?9v?p(M=fg_VB0+c?!M$L>5FIfD(KD5ku*djwCp+5GVIs9^=}kM2RFsxx0_5DE%BF zykxwjWvs=rbi4xKIt!z$&v(`msFrl4n>a%NO_4`iSyb!UiAE&mDa+apc zPe)#!ToRW~rqi2e1bdO1RLN5*uUM@{S`KLJhhY-@TvC&5D(c?a(2$mW-&N%h5IfEM zdFI6`6KJiJQIHvFiG-34^BtO3%*$(-Ht_JU*(KddiUYoM{coadlG&LVvke&*p>Cac z^BPy2Zteiq1@ulw0e)e*ot7@A$RJui0$l^{lsCt%R;$){>zuRv9#w@;m=#d%%TJmm zC#%eFOoy$V)|3*d<OC1iP+4R7D z8FE$E8l2Y?(o-i6wG=BKBh0-I?i3WF%hqdD7VCd;vpk|LFP!Et8$@voH>l>U8BY`Q zC*G;&y6|!p=7`G$*+hxCv!@^#+QD3m>^azyZoLS^;o_|plQaj-wx^ zRV&$HcY~p)2|Zqp0SYU?W3zV87s6JP-@D~$t0 zvd;-YL~JWc*8mtHz_s(cXus#XYJc5zdC=&!4MeZ;N3TQ>^I|Pd=HPjVP*j^45rs(n zzB{U4-44=oQ4rNN6@>qYVMH4|GmMIz#z@3UW-1_y#eNa+Q%(41oJ5i(DzvMO^%|?L z^r_+MZtw0DZ0=BT-@?hUtA)Ijk~Kh-N8?~X5%KnRH7cb!?Yrd8gtiEo!v{sGrQk{X zvV>h{8-DqTyuAxIE(hb}jMVtga$;FIrrKm>ye5t%M;p!jcH1(Bbux>4D#MVhgZGd> z=c=nVb%^9T?iDgM&9G(mV5xShc-lBLi*6RShenDqB%`-2;I*;IHg6>#ovKQ$M}dDb z<$USN%LMqa5_5DR7g7@(oAoQ%!~<1KSQr$rmS{UFQJs5&qBhgTEM_Y7|0Wv?fbP`z z)`8~=v;B)+>Jh`V*|$dTxKe`HTBkho^-!!K#@i{9FLn-XqX&fQcGsEAXp)BV7(`Lk zC{4&+Pe-0&<)C0kAa(MTnb|L;ZB5i|b#L1o;J)+?SV8T*U9$Vxhy}dm3%!A}SK9l_6(#5(e*>8|;4gNKk7o_%m_ zEaS=Z(ewk}hBJ>v`jtR=$pm_Wq3d&DU+6`BACU4%qdhH1o^m8hT2&j<4Z8!v=rMCk z-I*?48{2H*&+r<{2?wp$kh@L@=rj8c`EaS~J>W?)trc?zP&4bsNagS4yafuDoXpi5`!{BVqJ1$ZC3`pf$`LIZ(`0&Ik+!_Xa=NJW`R2 zd#Ntgwz`JVwC4A61$FZ&kP)-{T|rGO59`h#1enAa`cWxRR8bKVvvN6jBzAYePrc&5 z+*zr3en|LYB2>qJp479rEALk5d*X-dfKn6|kuNm;2-U2+P3_rma!nWjZQ-y*q3JS? zBE}zE-!1ZBR~G%v!$l#dZ*$UV4$7q}xct}=on+Ba8{b>Y9h*f-GW0D0o#vJ0%ALg( ztG2+AjWlG#d;myA(i&dh8Gp?y9HD@`CTaDAy?c&0unZ%*LbLIg4;m{Kc?)ws3^>M+ zt5>R)%KIJV*MRUg{0$#nW=Lj{#8?dD$yhjBOrAeR#4$H_Dc(eyA4dNjZEz1Xk+Bqt zB&pPl+?R{w8GPv%VI`x`IFOj320F1=cV4aq0(*()Tx!VVxCjua;)t}gTr=b?zY+U! zkb}xjXZ?hMJN{Hjw?w&?gz8Ow`htX z@}WG*_4<%ff8(!S6bf3)p+8h2!Rory>@aob$gY#fYJ=LiW0`+~l7GI%EX_=8 z{(;0&lJ%9)M9{;wty=XvHbIx|-$g4HFij`J$-z~`mW)*IK^MWVN+*>uTNqaDmi!M8 zurj6DGd)g1g(f`A-K^v)3KSOEoZXImXT06apJum-dO_%oR)z6Bam-QC&CNWh7kLOE zcxLdVjYLNO2V?IXWa-ys30Jbxw(Xm?U1{4kDs9`gZQHh8X{*w9=H&Zz&-6RL?uq#R zxN+k~JaL|gdsdvY_u6}}MHC?a@ElFeipA1Lud#M~)pp2SnG#K{a@tSpvXM;A8gz9> zRVDV5T1%%!LsNRDOw~LIuiAiKcj<%7WpgjP7G6mMU1#pFo6a-1>0I5ZdhxnkMX&#L z=Vm}?SDlb_LArobqpnU!WLQE*yVGWgs^4RRy4rrJwoUUWoA~ZJUx$mK>J6}7{CyC4 zv=8W)kKl7TmAnM%m;anEDPv5tzT{A{ON9#FPYF6c=QIc*OrPp96tiY&^Qs+#A1H>Y z<{XtWt2eDwuqM zQ_BI#UIP;2-olOL4LsZ`vTPv-eILtuB7oWosoSefWdM}BcP>iH^HmimR`G`|+9waCO z&M375o@;_My(qYvPNz;N8FBZaoaw3$b#x`yTBJLc8iIP z--la{bzK>YPP|@Mke!{Km{vT8Z4|#An*f=EmL34?!GJfHaDS#41j~8c5KGKmj!GTh&QIH+DjEI*BdbSS2~6VTt}t zhAwNQNT6%c{G`If3?|~Fp7iwee(LaUS)X9@I29cIb61} z$@YBq4hSplr&liE@ye!y&7+7n$fb+8nS~co#^n@oCjCwuKD61x$5|0ShDxhQES5MP z(gH|FO-s6#$++AxnkQR!3YMgKcF)!&aqr^a3^{gAVT`(tY9@tqgY7@ z>>ul3LYy`R({OY7*^Mf}UgJl(N7yyo$ag;RIpYHa_^HKx?DD`%Vf1D0s^ zjk#OCM5oSzuEz(7X`5u~C-Y~n4B}_3*`5B&8tEdND@&h;H{R`o%IFpIJ4~Kw!kUjehGT8W!CD7?d8sg_$KKp%@*dW)#fI1#R<}kvzBVpaog_2&W%c_jJfP` z6)wE+$3+Hdn^4G}(ymPyasc1<*a7s2yL%=3LgtZLXGuA^jdM^{`KDb%%}lr|ONDsl zy~~jEuK|XJ2y<`R{^F)Gx7DJVMvpT>gF<4O%$cbsJqK1;v@GKXm*9l3*~8^_xj*Gs z=Z#2VQ6`H@^~#5Pv##@CddHfm;lbxiQnqy7AYEH(35pTg^;u&J2xs-F#jGLuDw2%z z`a>=0sVMM+oKx4%OnC9zWdbpq*#5^yM;og*EQKpv`^n~-mO_vj=EgFxYnga(7jO?G z`^C87B4-jfB_RgN2FP|IrjOi;W9AM1qS}9W@&1a9Us>PKFQ9~YE!I~wTbl!m3$Th? z)~GjFxmhyyGxN}t*G#1^KGVXm#o(K0xJyverPe}mS=QgJ$#D}emQDw+dHyPu^&Uv> z4O=3gK*HLFZPBY|!VGq60Of6QrAdj`nj1h!$?&a;Hgaj{oo{l0P3TzpJK_q_eW8Ng zP6QF}1{V;xlolCs?pGegPoCSxx@bshb#3ng4Fkp4!7B0=&+1%187izf@}tvsjZ6{m z4;K>sR5rm97HJrJ`w}Y`-MZN$Wv2N%X4KW(N$v2@R1RkRJH2q1Ozs0H`@ zd5)X-{!{<+4Nyd=hQ8Wm3CCd}ujm*a?L79ztfT7@&(?B|!pU5&%9Rl!`i;suAg0+A zxb&UYpo-z}u6CLIndtH~C|yz&!OV_I*L;H#C7ie_5uB1fNRyH*<^d=ww=gxvE%P$p zRHKI{^{nQlB9nLhp9yj-so1is{4^`{Xd>Jl&;dX;J)#- z=fmE5GiV?-&3kcjM1+XG7&tSq;q9Oi4NUuRrIpoyp*Fn&nVNFdUuGQ_g)g>VzXGdneB7`;!aTUE$t* z5iH+8XPxrYl)vFo~+vmcU-2) zq!6R(T0SsoDnB>Mmvr^k*{34_BAK+I=DAGu){p)(ndZqOFT%%^_y;X(w3q-L``N<6 zw9=M zoQ8Lyp>L_j$T20UUUCzYn2-xdN}{e@$8-3vLDN?GbfJ>7*qky{n!wC#1NcYQr~d51 zy;H!am=EI#*S&TCuP{FA3CO)b0AAiN*tLnDbvKwxtMw-l;G2T@EGH)YU?-B`+Y=!$ zypvDn@5V1Tr~y~U0s$ee2+CL3xm_BmxD3w}d_Pd@S%ft#v~_j;6sC6cy%E|dJy@wj z`+(YSh2CrXMxI;yVy*=O@DE2~i5$>nuzZ$wYHs$y`TAtB-ck4fQ!B8a;M=CxY^Nf{ z+UQhn0jopOzvbl(uZZ1R-(IFaprC$9hYK~b=57@ zAJ8*pH%|Tjotzu5(oxZyCQ{5MAw+6L4)NI!9H&XM$Eui-DIoDa@GpNI=I4}m>Hr^r zZjT?xDOea}7cq+TP#wK1p3}sbMK{BV%(h`?R#zNGIP+7u@dV5#zyMau+w}VC1uQ@p zrFUjrJAx6+9%pMhv(IOT52}Dq{B9njh_R`>&j&5Sbub&r*hf4es)_^FTYdDX$8NRk zMi=%I`)hN@N9>X&Gu2RmjKVsUbU>TRUM`gwd?CrL*0zxu-g#uNNnnicYw=kZ{7Vz3 zULaFQ)H=7%Lm5|Z#k?<{ux{o4T{v-e zTLj?F(_qp{FXUzOfJxEyKO15Nr!LQYHF&^jMMBs z`P-}WCyUYIv>K`~)oP$Z85zZr4gw>%aug1V1A)1H(r!8l&5J?ia1x_}Wh)FXTxZUE zs=kI}Ix2cK%Bi_Hc4?mF^m`sr6m8M(n?E+k7Tm^Gn}Kf= zfnqoyVU^*yLypz?s+-XV5(*oOBwn-uhwco5b(@B(hD|vtT8y7#W{>RomA_KchB&Cd zcFNAD9mmqR<341sq+j+2Ra}N5-3wx5IZqg6Wmi6CNO#pLvYPGNER}Q8+PjvIJ42|n zc5r@T*p)R^U=d{cT2AszQcC6SkWiE|hdK)m{7ul^mU+ED1R8G#)#X}A9JSP_ubF5p z8Xxcl;jlGjPwow^p+-f_-a~S;$lztguPE6SceeUCfmRo=Qg zKHTY*O_ z;pXl@z&7hniVYVbGgp+Nj#XP^Aln2T!D*{(Td8h{8Dc?C)KFfjPybiC`Va?Rf)X>y z;5?B{bAhPtbmOMUsAy2Y0RNDQ3K`v`gq)#ns_C&ec-)6cq)d^{5938T`Sr@|7nLl; zcyewuiSUh7Z}q8iIJ@$)L3)m)(D|MbJm_h&tj^;iNk%7K-YR}+J|S?KR|29K?z-$c z<+C4uA43yfSWBv*%z=-0lI{ev`C6JxJ};A5N;lmoR(g{4cjCEn33 z-ef#x^uc%cM-f^_+*dzE?U;5EtEe;&8EOK^K}xITa?GH`tz2F9N$O5;)`Uof4~l+t z#n_M(KkcVP*yMYlk_~5h89o zlf#^qjYG8Wovx+f%x7M7_>@r7xaXa2uXb?_*=QOEe_>ErS(v5-i)mrT3&^`Oqr4c9 zDjP_6T&NQMD`{l#K&sHTm@;}ed_sQ88X3y`ON<=$<8Qq{dOPA&WAc2>EQ+U8%>yWR zK%(whl8tB;{C)yRw|@Gn4%RhT=bbpgMZ6erACc>l5^p)9tR`(2W-D*?Ph6;2=Fr|G- zdF^R&aCqyxqWy#P7#G8>+aUG`pP*ow93N=A?pA=aW0^^+?~#zRWcf_zlKL8q8-80n zqGUm=S8+%4_LA7qrV4Eq{FHm9#9X15%ld`@UKyR7uc1X*>Ebr0+2yCye6b?i=r{MPoqnTnYnq z^?HWgl+G&@OcVx4$(y;{m^TkB5Tnhx2O%yPI=r*4H2f_6Gfyasq&PN^W{#)_Gu7e= zVHBQ8R5W6j;N6P3O(jsRU;hkmLG(Xs_8=F&xh@`*|l{~0OjUVlgm z7opltSHg7Mb%mYamGs*v1-#iW^QMT**f+Nq*AzIvFT~Ur3KTD26OhIw1WQsL(6nGg znHUo-4e15cXBIiyqN};5ydNYJ6zznECVVR44%(P0oW!yQ!YH)FPY?^k{IrtrLo7Zo`?sg%%oMP9E^+H@JLXicr zi?eoI?LODRPcMLl90MH32rf8btf69)ZE~&4d%(&D{C45egC6bF-XQ;6QKkbmqW>_H z{86XDZvjiN2wr&ZPfi;^SM6W+IP0);50m>qBhzx+docpBkkiY@2bSvtPVj~E`CfEu zhQG5G>~J@dni5M5Jmv7GD&@%UR`k3ru-W$$onI259jM&nZ)*d3QFF?Mu?{`+nVzkx z=R*_VH=;yeU?9TzQ3dP)q;P)4sAo&k;{*Eky1+Z!10J<(cJC3zY9>bP=znA=<-0RR zMnt#<9^X7BQ0wKVBV{}oaV=?JA=>R0$az^XE%4WZcA^Em>`m_obQyKbmf-GA;!S-z zK5+y5{xbkdA?2NgZ0MQYF-cfOwV0?3Tzh8tcBE{u%Uy?Ky4^tn^>X}p>4&S(L7amF zpWEio8VBNeZ=l!%RY>oVGOtZh7<>v3?`NcHlYDPUBRzgg z0OXEivCkw<>F(>1x@Zk=IbSOn+frQ^+jI*&qdtf4bbydk-jgVmLAd?5ImK+Sigh?X zgaGUlbf^b-MH2@QbqCawa$H1Vb+uhu{zUG9268pa{5>O&Vq8__Xk5LXDaR1z$g;s~;+Ae82wq#l;wo08tX(9uUX6NJWq1vZLh3QbP$# zL`udY|Qp*4ER`_;$%)2 zmcJLj|FD`(;ts0bD{}Ghq6UAVpEm#>j`S$wHi0-D_|)bEZ}#6) zIiqH7Co;TB`<6KrZi1SF9=lO+>-_3=Hm%Rr7|Zu-EzWLSF{9d(H1v*|UZDWiiqX3} zmx~oQ6%9~$=KjPV_ejzz7aPSvTo+3@-a(OCCoF_u#2dHY&I?`nk zQ@t8#epxAv@t=RUM09u?qnPr6=Y5Pj;^4=7GJ`2)Oq~H)2V)M1sC^S;w?hOB|0zXT zQdf8$)jslO>Q}(4RQ$DPUF#QUJm-k9ysZFEGi9xN*_KqCs9Ng(&<;XONBDe1Joku? z*W!lx(i&gvfXZ4U(AE@)c0FI2UqrFLOO$&Yic|`L;Vyy-kcm49hJ^Mj^H9uY8Fdm2 z?=U1U_5GE_JT;Tx$2#I3rAAs(q@oebIK=19a$N?HNQ4jw0ljtyGJ#D}z3^^Y=hf^Bb--297h6LQxi0-`TB|QY2QPg92TAq$cEQdWE ze)ltSTVMYe0K4wte6;^tE+^>|a>Hit_3QDlFo!3Jd`GQYTwlR#{<^MzG zK!vW&))~RTKq4u29bc<+VOcg7fdorq-kwHaaCQe6tLB{|gW1_W_KtgOD0^$^|`V4C# z*D_S9Dt_DIxpjk3my5cBFdiYaq||#0&0&%_LEN}BOxkb3v*d$4L|S|z z!cZZmfe~_Y`46v=zul=aixZTQCOzb(jx>8&a%S%!(;x{M2!*$od2!Pwfs>RZ-a%GOZdO88rS)ZW~{$656GgW)$Q=@!x;&Nn~!K)lr4gF*%qVO=hlodHA@2)keS2 zC}7O=_64#g&=zY?(zhzFO3)f5=+`dpuyM!Q)zS&otpYB@hhn$lm*iK2DRt+#1n|L%zjM}nB*$uAY^2JIw zV_P)*HCVq%F))^)iaZD#R9n^{sAxBZ?Yvi1SVc*`;8|F2X%bz^+s=yS&AXjysDny)YaU5RMotF-tt~FndTK ziRve_5b!``^ZRLG_ks}y_ye0PKyKQSsQCJuK5()b2ThnKPFU?An4;dK>)T^4J+XjD zEUsW~H?Q&l%K4<1f5^?|?lyCQe(O3?!~OU{_Wxs#|Ff8?a_WPQUKvP7?>1()Cy6oLeA zjEF^d#$6Wb${opCc^%%DjOjll%N2=GeS6D-w=Ap$Ux2+0v#s#Z&s6K*)_h{KFfgKjzO17@p1nKcC4NIgt+3t}&}F z@cV; zZ1r#~?R@ZdSwbFNV(fFl2lWI(Zf#nxa<6f!nBZD>*K)nI&Fun@ngq@Ge!N$O< zySt*mY&0moUXNPe~Fg=%gIu)tJ;asscQ!-AujR@VJBRoNZNk;z4hs4T>Ud!y=1NwGs-k zlTNeBOe}=)Epw=}+dfX;kZ32h$t&7q%Xqdt-&tlYEWc>>c3(hVylsG{Ybh_M8>Cz0ZT_6B|3!_(RwEJus9{;u-mq zW|!`{BCtnao4;kCT8cr@yeV~#rf76=%QQs(J{>Mj?>aISwp3{^BjBO zLV>XSRK+o=oVDBnbv?Y@iK)MiFSl{5HLN@k%SQZ}yhPiu_2jrnI?Kk?HtCv>wN$OM zSe#}2@He9bDZ27hX_fZey=64#SNU#1~=icK`D>a;V-&Km>V6ZdVNj7d2 z-NmAoOQm_aIZ2lXpJhlUeJ95eZt~4_S zIfrDs)S$4UjyxKSaTi#9KGs2P zfSD>(y~r+bU4*#|r`q+be_dopJzKK5JNJ#rR978ikHyJKD>SD@^Bk$~D0*U38Y*IpYcH>aaMdZq|YzQ-Ixd(_KZK!+VL@MWGl zG!k=<%Y-KeqK%``uhx}0#X^@wS+mX@6Ul@90#nmYaKh}?uw>U;GS4fn3|X%AcV@iY z8v+ePk)HxSQ7ZYDtlYj#zJ?5uJ8CeCg3efmc#|a%2=u>+vrGGRg$S@^mk~0f;mIu! zWMA13H1<@hSOVE*o0S5D8y=}RiL#jQpUq42D}vW$z*)VB*FB%C?wl%(3>ANaY)bO@ zW$VFutemwy5Q*&*9HJ603;mJJkB$qp6yxNOY0o_4*y?2`qbN{m&*l{)YMG_QHXXa2 z+hTmlA;=mYwg{Bfusl zyF&}ib2J;#q5tN^e)D62fWW*Lv;Rnb3GO-JVtYG0CgR4jGujFo$Waw zSNLhc{>P~>{KVZE1Vl1!z)|HFuN@J7{`xIp_)6>*5Z27BHg6QIgqLqDJTmKDM+ON* zK0Fh=EG`q13l z+m--9UH0{ZGQ%j=OLO8G2WM*tgfY}bV~>3Grcrpehjj z6Xe<$gNJyD8td3EhkHjpKk}7?k55Tu7?#;5`Qcm~ki;BeOlNr+#PK{kjV>qfE?1No zMA07}b>}Dv!uaS8Hym0TgzxBxh$*RX+Fab6Gm02!mr6u}f$_G4C|^GSXJMniy^b`G z74OC=83m0G7L_dS99qv3a0BU({t$zHQsB-RI_jn1^uK9ka_%aQuE2+~J2o!7`735Z zb?+sTe}Gd??VEkz|KAPMfj(1b{om89p5GIJ^#Aics_6DD%WnNGWAW`I<7jT|Af|8g zZA0^)`p8i#oBvX2|I&`HC8Pn&0>jRuMF4i0s=}2NYLmgkZb=0w9tvpnGiU-gTUQhJ zR6o4W6ZWONuBZAiN77#7;TR1^RKE(>>OL>YU`Yy_;5oj<*}ac99DI(qGCtn6`949f ziMpY4k>$aVfffm{dNH=-=rMg|u?&GIToq-u;@1-W&B2(UOhC-O2N5_px&cF-C^tWp zXvChm9@GXEcxd;+Q6}u;TKy}$JF$B`Ty?|Y3tP$N@Rtoy(*05Wj-Ks32|2y2ZM>bM zi8v8E1os!yorR!FSeP)QxtjIKh=F1ElfR8U7StE#Ika;h{q?b?Q+>%78z^>gTU5+> zxQ$a^rECmETF@Jl8fg>MApu>btHGJ*Q99(tMqsZcG+dZ6Yikx7@V09jWCiQH&nnAv zY)4iR$Ro223F+c3Q%KPyP9^iyzZsP%R%-i^MKxmXQHnW6#6n7%VD{gG$E;7*g86G< zu$h=RN_L2(YHO3@`B<^L(q@^W_0#U%mLC9Q^XEo3LTp*~(I%?P_klu-c~WJxY1zTI z^PqntLIEmdtK~E-v8yc&%U+jVxW5VuA{VMA4Ru1sk#*Srj0Pk#tZuXxkS=5H9?8eb z)t38?JNdP@#xb*yn=<*_pK9^lx%;&yH6XkD6-JXgdddZty8@Mfr9UpGE!I<37ZHUe z_Rd+LKsNH^O)+NW8Ni-V%`@J_QGKA9ZCAMSnsN>Ych9VW zCE7R_1FVy}r@MlkbxZ*TRIGXu`ema##OkqCM9{wkWQJg^%3H${!vUT&vv2250jAWN zw=h)C!b2s`QbWhBMSIYmWqZ_~ReRW;)U#@C&ThctSd_V!=HA=kdGO-Hl57an|M1XC?~3f0{7pyjWY}0mChU z2Fj2(B*r(UpCKm-#(2(ZJD#Y|Or*Vc5VyLpJ8gO1;fCm@EM~{DqpJS5FaZ5%|ALw) zyumBl!i@T57I4ITCFmdbxhaOYud}i!0YkdiNRaQ%5$T5>*HRBhyB~<%-5nj*b8=i= z(8g(LA50%0Zi_eQe}Xypk|bt5e6X{aI^jU2*c?!p*$bGk=?t z+17R){lx~Z{!B34Zip~|A;8l@%*Gc}kT|kC0*Ny$&fI3@%M! zqk_zvN}7bM`x@jqFOtaxI?*^Im5ix@=`QEv;__i;Tek-&7kGm6yP17QANVL>*d0B=4>i^;HKb$k8?DYFMr38IX4azK zBbwjF%$>PqXhJh=*7{zH5=+gi$!nc%SqFZlwRm zmpctOjZh3bwt!Oc>qVJhWQf>`HTwMH2ibK^eE*j!&Z`-bs8=A`Yvnb^?p;5+U=Fb8 z@h>j_3hhazd$y^Z-bt%3%E3vica%nYnLxW+4+?w{%|M_=w^04U{a6^22>M_?{@mXP zS|Qjcn4&F%WN7Z?u&I3fU(UQVw4msFehxR*80dSb=a&UG4zDQp&?r2UGPy@G?0FbY zVUQ?uU9-c;f9z06$O5FO1TOn|P{pLcDGP?rfdt`&uw|(Pm@$n+A?)8 zP$nG(VG&aRU*(_5z#{+yVnntu`6tEq>%9~n^*ao}`F6ph_@6_8|AfAXtFfWee_14` zKKURYV}4}=UJmxv7{RSz5QlwZtzbYQs0;t3?kx*7S%nf-aY&lJ@h?-BAn%~0&&@j) zQd_6TUOLXErJ`A3vE?DJIbLE;s~s%eVt(%fMzUq^UfZV9c?YuhO&6pwKt>j(=2CkgTNEq7&c zfeGN+%5DS@b9HO>zsoRXv@}(EiA|t5LPi}*R3?(-=iASADny<{D0WiQG>*-BSROk4vI6%$R>q64J&v-T+(D<_(b!LD z9GL;DV;;N3!pZYg23mcg81tx>7)=e%f|i{6Mx0GczVpc}{}Mg(W_^=Wh0Rp+xXgX` z@hw|5=Je&nz^Xa>>vclstYt;8c2PY)87Ap;z&S&`yRN>yQVV#K{4&diVR7Rm;S{6m z6<+;jwbm`==`JuC6--u6W7A@o4&ZpJV%5+H)}toy0afF*!)AaG5=pz_i9}@OG%?$O z2cec6#@=%xE3K8;^ps<2{t4SnqH+#607gAHP-G4^+PBiC1s>MXf&bQ|Pa;WBIiErV z?3VFpR9JFl9(W$7p3#xe(Bd?Z93Uu~jHJFo7U3K_x4Ej-=N#=a@f;kPV$>;hiN9i9 z<6elJl?bLI$o=|d6jlihA4~bG;Fm2eEnlGxZL`#H%Cdes>uJfMJ4>@1SGGeQ81DwxGxy7L5 zm05Ik*WpSgZvHh@Wpv|2i|Y#FG?Y$hbRM5ZF0Z7FB3cY0+ei#km9mDSPI}^!<<`vr zuv$SPg2vU{wa)6&QMY)h1hbbxvR2cc_6WcWR`SH& z&KuUQcgu}!iW2Wqvp~|&&LSec9>t(UR_|f$;f-fC&tSO-^-eE0B~Frttnf+XN(#T) z^PsuFV#(pE#6ztaI8(;ywN%CtZh?w&;_)w_s@{JiA-SMjf&pQk+Bw<}f@Q8-xCQMwfaf zMgHsAPU=>>Kw~uDFS(IVRN{$ak(SV(hrO!UqhJ?l{lNnA1>U24!=>|q_p404Xd>M# z7?lh^C&-IfeIr`Dri9If+bc%oU0?|Rh8)%BND5;_9@9tuM)h5Kcw6}$Ca7H_n)nOf0pd`boCXItb`o11 zb`)@}l6I_h>n+;`g+b^RkYs7;voBz&Gv6FLmyvY|2pS)z#P;t8k;lS>49a$XeVDc4 z(tx2Pe3N%Gd(!wM`E7WRBZy)~vh_vRGt&esDa0NCua)rH#_39*H0!gIXpd>~{rGx+ zJKAeXAZ-z5n=mMVqlM5Km;b;B&KSJlScD8n?2t}kS4Wf9@MjIZSJ2R?&=zQn zs_`=+5J$47&mP4s{Y{TU=~O_LzSrXvEP6W?^pz<#Y*6Fxg@$yUGp31d(h+4x>xpb< zH+R639oDST6F*0iH<9NHC^Ep*8D4-%p2^n-kD6YEI<6GYta6-I;V^ZH3n5}syTD=P z3b6z=jBsdP=FlXcUe@I|%=tY4J_2j!EVNEzph_42iO3yfir|Dh>nFl&Lu9!;`!zJB zCis9?_(%DI?$CA(00pkzw^Up`O;>AnPc(uE$C^a9868t$m?5Q)CR%!crI$YZpiYK6m= z!jv}82He`QKF;10{9@roL2Q7CF)OeY{~dBp>J~X#c-Z~{YLAxNmn~kWQW|2u!Yq00 zl5LKbzl39sVCTpm9eDW_T>Z{x@s6#RH|P zA~_lYas7B@SqI`N=>x50Vj@S)QxouKC(f6Aj zz}7e5e*5n?j@GO;mCYEo^Jp_*BmLt3!N)(T>f#L$XHQWzZEVlJo(>qH@7;c%fy zS-jm^Adju9Sm8rOKTxfTU^!&bg2R!7C_-t+#mKb_K?0R72%26ASF;JWA_prJ8_SVW zOSC7C&CpSrgfXRp8r)QK34g<~!1|poTS7F;)NseFsbwO$YfzEeG3oo!qe#iSxQ2S# z1=Fxc9J;2)pCab-9o-m8%BLjf(*mk#JJX3k9}S7Oq)dV0jG)SOMbw7V^Z<5Q0Cy$< z^U0QUVd4(96W03OA1j|x%{sd&BRqIERDb6W{u1p1{J(a;fd6lnWzjeS`d?L3-0#o7 z{Qv&L7!Tm`9|}u=|IbwS_jgH(_V@o`S*R(-XC$O)DVwF~B&5c~m!zl14ydT6sK+Ly zn+}2hQ4RTC^8YvrQ~vk$f9u=pTN{5H_yTOcza9SVE&nt_{`ZC8zkmFji=UyD`G4~f zUfSTR=Kju>6u+y&|Bylb*W&^P|8fvEbQH3+w*DrKq|9xMzq2OiZyM=;(?>~4+O|jn zC_Et05oc>e%}w4ye2Fm%RIR??VvofwZS-}BL@X=_4jdHp}FlMhW_IW?Zh`4$z*Wr!IzQHa3^?1|);~VaWmsIcmc6 zJs{k0YW}OpkfdoTtr4?9F6IX6$!>hhA+^y_y@vvA_Gr7u8T+i-< zDX(~W5W{8mfbbM-en&U%{mINU#Q8GA`byo)iLF7rMVU#wXXY`a3ji3m{4;x53216i z`zA8ap?>_}`tQj7-%$K78uR}R$|@C2)qgop$}o=g(jOv0ishl!E(R73N=i0~%S)6+ z1xFP7|H0yt3Z_Re*_#C2m3_X{=zi1C&3CM7e?9-Y5lCtAlA%RFG9PDD=Quw1dfYnZ zdUL)#+m`hKx@PT`r;mIx_RQ6Txbti+&;xQorP;$H=R2r)gPMO9>l+!p*Mt04VH$$M zSLwJ81IFjQ5N!S#;MyBD^IS`2n04kuYbZ2~4%3%tp0jn^**BZQ05ELp zY%yntZ=52s6U5Y93Aao)v~M3y?6h7mZcVGp63pK*d&!TRjW99rUU;@s#3kYB76Bs$|LRwkH>L!0Xe zE=dz1o}phhnOVYZFsajQsRA^}IYZnk9Wehvo>gHPA=TPI?2A`plIm8=F1%QiHx*Zn zi)*Y@)$aXW0v1J|#+R2=$ysooHZ&NoA|Wa}htd`=Eud!(HD7JlT8ug|yeBZmpry(W z)pS>^1$N#nuo3PnK*>Thmaxz4pLcY?PP2r3AlhJ7jw(TI8V#c}>Ym;$iPaw+83L+* z!_QWpYs{UWYcl0u z(&(bT0Q*S_uUX9$jC;Vk%oUXw=A-1I+!c18ij1CiUlP@pfP9}CHAVm{!P6AEJ(7Dn z?}u#}g`Q?`*|*_0Rrnu8{l4PP?yCI28qC~&zlwgLH2AkfQt1?B#3AOQjW&10%@@)Q zDG?`6$8?Nz(-sChL8mRs#3z^uOA>~G=ZIG*mgUibWmgd{a|Tn4nkRK9O^37E(()Q% zPR0#M4e2Q-)>}RSt1^UOCGuv?dn|IT3#oW_$S(YR+jxAzxCD_L25p_dt|^>g+6Kgj zJhC8n)@wY;Y7JI6?wjU$MQU|_Gw*FIC)x~^Eq1k41BjLmr}U>6#_wxP0-2Ka?uK14u5M-lAFSX$K1K{WH!M1&q}((MWWUp#Uhl#n_yT5dFs4X`>vmM& z*1!p0lACUVqp&sZG1GWATvZEENs^0_7Ymwem~PlFN3hTHVBv(sDuP;+8iH07a)s(# z%a7+p1QM)YkS7>kbo${k2N1&*%jFP*7UABJ2d||c!eSXWM*<4(_uD7;1XFDod@cT$ zP>IC%^fbC${^QrUXy$f)yBwY^g@}}kngZKa1US!lAa+D=G4wklukaY8AEW%GL zh40pnuv*6D>9`_e14@wWD^o#JvxYVG-~P)+<)0fW zP()DuJN?O*3+Ab!CP-tGr8S4;JN-Ye^9D%(%8d{vb_pK#S1z)nZzE^ezD&%L6nYbZ z*62>?u)xQe(Akd=e?vZbyb5)MMNS?RheZDHU?HK<9;PBHdC~r{MvF__%T)-9ifM#cR#2~BjVJYbA>xbPyl9yNX zX)iFVvv-lfm`d?tbfh^j*A|nw)RszyD<#e>llO8X zou=q3$1|M@Ob;F|o4H0554`&y9T&QTa3{yn=w0BLN~l;XhoslF-$4KGNUdRe?-lcV zS4_WmftU*XpP}*wFM^oKT!D%_$HMT#V*j;9weoOq0mjbl1271$F)`Q(C z76*PAw3_TE{vntIkd=|(zw)j^!@j ^tV@s0U~V+mu)vv`xgL$Z9NQLnuRdZ;95D|1)!0Aybwv}XCE#xz1k?ZC zxAU)v@!$Sm*?)t2mWrkevNFbILU9&znoek=d7jn*k+~ptQ)6z`h6e4B&g?Q;IK+aH z)X(BH`n2DOS1#{AJD-a?uL)@Vl+`B=6X3gF(BCm>Q(9+?IMX%?CqgpsvK+b_de%Q> zj-GtHKf!t@p2;Gu*~#}kF@Q2HMevg~?0{^cPxCRh!gdg7MXsS}BLtG_a0IY0G1DVm z2F&O-$Dzzc#M~iN`!j38gAn`6*~h~AP=s_gy2-#LMFoNZ0<3q+=q)a|4}ur7F#><%j1lnr=F42Mbti zi-LYs85K{%NP8wE1*r4Mm+ZuZ8qjovmB;f##!E*M{*A(4^~vg!bblYi1M@7tq^L8- zH7tf_70iWXqcSQgENGdEjvLiSLicUi3l0H*sx=K!!HLxDg^K|s1G}6Tam|KBV>%YeU)Q>zxQe;ddnDTWJZ~^g-kNeycQ?u242mZs`i8cP)9qW`cwqk)Jf?Re0=SD=2z;Gafh(^X-=WJ$i7Z9$Pao56bTwb+?p>L3bi9 zP|qi@;H^1iT+qnNHBp~X>dd=Us6v#FPDTQLb9KTk%z{&OWmkx3uY(c6JYyK3w|z#Q zMY%FPv%ZNg#w^NaW6lZBU+}Znwc|KF(+X0RO~Q6*O{T-P*fi@5cPGLnzWMSyoOPe3 z(J;R#q}3?z5Ve%crTPZQFLTW81cNY-finw!LH9wr$(C)p_@v?(y#b-R^Pv!}_#7t+A?pHEUMY zoQZIwSETTKeS!W{H$lyB1^!jn4gTD{_mgG?#l1Hx2h^HrpCXo95f3utP-b&%w80F} zXFs@Jp$lbIL64@gc?k*gJ;OForPaapOH7zNMB60FdNP<*9<@hEXJk9Rt=XhHR-5_$Ck-R?+1py&J3Y9^sBBZuj?GwSzua;C@9)@JZpaI zE?x6{H8@j9P06%K_m%9#nnp0Li;QAt{jf-7X%Pd2jHoI4As-9!UR=h6Rjc z!3{UPWiSeLG&>1V5RlM@;5HhQW_&-wL2?%k@dvRS<+@B6Yaj*NG>qE5L*w~1ATP$D zmWu6(OE=*EHqy{($~U4zjxAwpPn42_%bdH9dMphiUU|) z*+V@lHaf%*GcXP079>vy5na3h^>X=n;xc;VFx)`AJEk zYZFlS#Nc-GIHc}j06;cOU@ zAD7Egkw<2a8TOcfO9jCp4U4oI*`|jpbqMWo(={gG3BjuM3QTGDG`%y|xithFck}0J zG}N#LyhCr$IYP`#;}tdm-7^9=72+CBfBsOZ0lI=LC_a%U@(t3J_I1t(UdiJ^@NubM zvvA0mGvTC%{fj53M^|Ywv$KbW;n8B-x{9}Z!K6v-tw&Xe_D2{7tX?eVk$sA*0826( zuGz!K7$O#;K;1w<38Tjegl)PmRso`fc&>fAT5s z7hzQe-_`lx`}2=c)jz6;yn(~F6#M@z_7@Z(@GWbIAo6A2&;aFf&>CVHpqoPh5#~=G zav`rZ3mSL2qwNL+Pg>aQv;%V&41e|YU$!fQ9Ksle!XZERpjAowHtX zi#0lnw{(zmk&}t`iFEMmx-y7FWaE*vA{Hh&>ieZg{5u0-3@a8BY)Z47E`j-H$dadu zIP|PXw1gjO@%aSz*O{GqZs_{ke|&S6hV{-dPkl*V|3U4LpqhG0eVdqfeNX28hrafI zE13WOsRE|o?24#`gQJs@v*EwL{@3>Ffa;knvI4@VEG2I>t-L(KRS0ShZ9N!bwXa}e zI0}@2#PwFA&Y9o}>6(ZaSaz>kw{U=@;d{|dYJ~lyjh~@bBL>n}#@KjvXUOhrZ`DbnAtf5bz3LD@0RpmAyC-4cgu<7rZo&C3~A_jA*0)v|Ctcdu} zt@c7nQ6hSDC@76c4hI&*v|5A0Mj4eQ4kVb0$5j^*$@psB zdouR@B?l6E%a-9%i(*YWUAhxTQ(b@z&Z#jmIb9`8bZ3Um3UW!@w4%t0#nxsc;*YrG z@x$D9Yj3EiA(-@|IIzi@!E$N)j?gedGJpW!7wr*7zKZwIFa>j|cy<(1`VV_GzWN=1 zc%OO)o*RRobvTZE<9n1s$#V+~5u8ZwmDaysD^&^cxynksn!_ypmx)Mg^8$jXu5lMo zK3K_8GJh#+7HA1rO2AM8cK(#sXd2e?%3h2D9GD7!hxOEKJZK&T`ZS0e*c9c36Y-6yz2D0>Kvqy(EuiQtUQH^~M*HY!$e z20PGLb2Xq{3Ceg^sn+99K6w)TkprP)YyNU(+^PGU8}4&Vdw*u;(`Bw!Um76gL_aMT z>*82nmA8Tp;~hwi0d3S{vCwD};P(%AVaBr=yJ zqB?DktZ#)_VFh_X69lAHQw(ZNE~ZRo2fZOIP;N6fD)J*3u^YGdgwO(HnI4pb$H#9) zizJ<>qI*a6{+z=j+SibowDLKYI*Je2Y>~=*fL@i*f&8**s~4l&B&}$~nwhtbOTr=G zFx>{y6)dpJPqv={_@*!q0=jgw3^j`qi@!wiWiT_$1`SPUgaG&9z9u9=m5C8`GpMaM zyMRSv2llS4F}L?233!)f?mvcYIZ~U z7mPng^=p)@Z*Fp9owSYA`Fe4OjLiJ`rdM`-U(&z1B1`S`ufK_#T@_BvenxDQU`deH$X5eMVO=;I4EJjh6?kkG2oc6AYF6|(t)L0$ukG}Zn=c+R`Oq;nC)W^ z{ek!A?!nCsfd_5>d&ozG%OJmhmnCOtARwOq&p!FzWl7M))YjqK8|;6sOAc$w2%k|E z`^~kpT!j+Y1lvE0B)mc$Ez_4Rq~df#vC-FmW;n#7E)>@kMA6K30!MdiC19qYFnxQ* z?BKegU_6T37%s`~Gi2^ewVbciy-m5%1P3$88r^`xN-+VdhhyUj4Kzg2 zlKZ|FLUHiJCZL8&<=e=F2A!j@3D@_VN%z?J;uw9MquL`V*f^kYTrpoWZ6iFq00uO+ zD~Zwrs!e4cqGedAtYxZ76Bq3Ur>-h(m1~@{x@^*YExmS*vw9!Suxjlaxyk9P#xaZK z)|opA2v#h=O*T42z>Mub2O3Okd3GL86KZM2zlfbS z{Vps`OO&3efvt->OOSpMx~i7J@GsRtoOfQ%vo&jZ6^?7VhBMbPUo-V^Znt%-4k{I# z8&X)=KY{3lXlQg4^FH^{jw0%t#2%skLNMJ}hvvyd>?_AO#MtdvH;M^Y?OUWU6BdMX zJ(h;PM9mlo@i)lWX&#E@d4h zj4Z0Czj{+ipPeW$Qtz_A52HA<4$F9Qe4CiNQSNE2Q-d1OPObk4?7-&`={{yod5Iy3kB=PK3%0oYSr`Gca120>CHbC#SqE*ivL2R(YmI1A|nAT?JmK*2qj_3p#?0h)$#ixdmP?UejCg9%AS2 z8I(=_QP(a(s)re5bu-kcNQc-&2{QZ%KE*`NBx|v%K2?bK@Ihz_e<5Y(o(gQ-h+s&+ zjpV>uj~?rfJ!UW5Mop~ro^|FP3Z`@B6A=@f{Wn78cm`)3&VJ!QE+P9&$;3SDNH>hI z_88;?|LHr%1kTX0t*xzG-6BU=LRpJFZucRBQ<^zy?O5iH$t>o}C}Fc+kM1EZu$hm% zTTFKrJkXmCylFgrA;QAA(fX5Sia5TNo z?=Ujz7$Q?P%kM$RKqRQisOexvV&L+bolR%`u`k;~!o(HqgzV9I6w9|g*5SVZN6+kT9H$-3@%h%k7BBnB zPn+wmPYNG)V2Jv`&$LoI*6d0EO^&Nh`E* z&1V^!!Szd`8_uf%OK?fuj~! z%p9QLJ?V*T^)72<6p1ONqpmD?Wm((40>W?rhjCDOz?#Ei^sXRt|GM3ULLnoa8cABQ zA)gCqJ%Q5J%D&nJqypG-OX1`JLT+d`R^|0KtfGQU+jw79la&$GHTjKF>*8BI z0}l6TC@XB6`>7<&{6WX2kX4k+0SaI`$I8{{mMHB}tVo*(&H2SmZLmW* z+P8N>(r}tR?f!O)?)df>HIu>$U~e~tflVmwk*+B1;TuqJ+q_^`jwGwCbCgSevBqj$ z<`Fj*izeO)_~fq%wZ0Jfvi6<3v{Afz;l5C^C7!i^(W>%5!R=Ic7nm(0gJ~9NOvHyA zqWH2-6w^YmOy(DY{VrN6ErvZREuUMko@lVbdLDq*{A+_%F>!@6Z)X9kR1VI1+Ler+ zLUPtth=u~23=CqZoAbQ`uGE_91kR(8Ie$mq1p`q|ilkJ`Y-ob_=Nl(RF=o7k{47*I)F%_XMBz9uwRH8q1o$TkV@8Pwl zzi`^7i;K6Ak7o58a_D-V0AWp;H8pSjbEs$4BxoJkkC6UF@QNL)0$NU;Wv0*5 z0Ld;6tm7eR%u=`hnUb)gjHbE2cP?qpo3f4w%5qM0J*W_Kl6&z4YKX?iD@=McR!gTyhpGGYj!ljQm@2GL^J70`q~4CzPv@sz`s80FgiuxjAZ zLq61rHv1O>>w1qOEbVBwGu4%LGS!!muKHJ#JjfT>g`aSn>83Af<9gM3XBdY)Yql|{ zUds}u*;5wuus)D>HmexkC?;R&*Z`yB4;k;4T*(823M&52{pOd1yXvPJ3PPK{Zs>6w zztXy*HSH0scZHn7qIsZ8y-zftJ*uIW;%&-Ka0ExdpijI&xInDg-Bv-Q#Islcbz+R! zq|xz?3}G5W@*7jSd`Hv9q^5N*yN=4?Lh=LXS^5KJC=j|AJ5Y(f_fC-c4YQNtvAvn|(uP9@5Co{dL z?7|=jqTzD8>(6Wr&(XYUEzT~-VVErf@|KeFpKjh=v51iDYN_`Kg&XLOIG;ZI8*U$@ zKig{dy?1H}UbW%3jp@7EVSD>6c%#abQ^YfcO(`)*HuvNc|j( zyUbYozBR15$nNU$0ZAE%ivo4viW?@EprUZr6oX=4Sc!-WvrpJdF`3SwopKPyX~F>L zJ>N>v=_plttTSUq6bYu({&rkq)d94m5n~Sk_MO*gY*tlkPFd2m=Pi>MK)ObVV@Sgs zmXMNMvvcAuz+<$GLR2!j4w&;{)HEkxl{$B^*)lUKIn&p5_huD6+%WDoH4`p}9mkw$ zXCPw6Y7tc%rn$o_vy>%UNBC`0@+Ih-#T05AT)ooKt?94^ROI5;6m2pIM@@tdT=&WP z{u09xEVdD}{(3v}8AYUyT82;LV%P%TaJa%f)c36?=90z>Dzk5mF2}Gs0jYCmufihid8(VFcZWs8#59;JCn{!tHu5kSBbm zL`F{COgE01gg-qcP2Lt~M9}mALg@i?TZp&i9ZM^G<3`WSDh}+Ceb3Q!QecJ|N;Xrs z{wH{D8wQ2+mEfBX#M8)-32+~q4MRVr1UaSPtw}`iwx@x=1Xv-?UT{t}w}W(J&WKAC zrZ%hssvf*T!rs}}#atryn?LB=>0U%PLwA9IQZt$$UYrSw`7++}WR7tfE~*Qg)vRrM zT;(1>Zzka?wIIz8vfrG86oc^rjM@P7^i8D~b(S23AoKYj9HBC(6kq9g`1gN@|9^xO z{~h zbxGMHqGZ@eJ17bgES?HQnwp|G#7I>@p~o2zxWkgZUYSUeB*KT{1Q z*J3xZdWt`eBsA}7(bAHNcMPZf_BZC(WUR5B8wUQa=UV^e21>|yp+uop;$+#JwXD!> zunhJVCIKgaol0AM_AwJNl}_k&q|uD?aTE@{Q*&hxZ=k_>jcwp}KwG6mb5J*pV@K+- zj*`r0WuEU_8O=m&1!|rj9FG7ad<2px63;Gl z9lJrXx$~mPnuiqIH&n$jSt*ReG}1_?r4x&iV#3e_z+B4QbhHwdjiGu^J3vcazPi`| zaty}NFSWe=TDry*a*4XB)F;KDI$5i9!!(5p@5ra4*iW;FlGFV0P;OZXF!HCQ!oLm1 zsK+rY-FnJ?+yTBd0}{*Y6su|hul)wJ>RNQ{eau*;wWM{vWM`d0dTC-}Vwx6@cd#P? zx$Qyk^2*+_ZnMC}q0)+hE-q)PKoox#;pc%DNJ&D5+if6X4j~p$A7-s&AjDkSEV)aM z(<3UOw*&f)+^5F0Mpzw3zB1ZHl*B?C~Cx) zuNg*>5RM9F5{EpU@a2E7hAE`m<89wbQ2Lz&?Egu-^sglNXG5Q;{9n(%&*kEb0vApd zRHrY@22=pkFN81%x)~acZeu`yvK zovAVJNykgxqkEr^hZksHkpxm>2I8FTu2%+XLs@?ym0n;;A~X>i32{g6NOB@o4lk8{ zB}7Z2MNAJi>9u=y%s4QUXaNdt@SlAZr54!S6^ETWoik6gw=k-itu_}Yl_M9!l+Rbv z(S&WD`{_|SE@@(|Wp7bq1Zq}mc4JAG?mr2WN~6}~u`7M_F@J9`sr0frzxfuqSF~mA z$m$(TWAuCIE99yLSwi%R)8geQhs;6VBlRhJb(4Cx zu)QIF%_W9+21xI45U>JknBRaZ9nYkgAcK6~E|Zxo!B&z9zQhjsi^fgwZI%K@rYbMq znWBXg1uCZ+ljGJrsW7@x3h2 z;kn!J!bwCeOrBx;oPkZ}FeP%wExyf4=XMp)N8*lct~SyfK~4^-75EZFpHYO5AnuRM z!>u?>Vj3+j=uiHc<=cD~JWRphDSwxFaINB42-{@ZJTWe85>-RcQ&U%?wK)vjz z5u5fJYkck##j(bP7W0*RdW#BmAIK`D3=(U~?b`cJ&U2jHj}?w6 z_4BM)#EoJ6)2?pcR4AqBd)qAUn@RtNQq})FIQoBK4ie+GB(Vih2D|Ds>RJo2zE~C- z7mI)7p)5(-O6JRh6a@VZ5~piVC+Xv=O-)=0eTMSJsRE^c1@bPQWlr}E31VqO-%739 zdcmE{`1m;5LH8w|7euK>>>U#Iod8l1yivC>;YWsg=z#07E%cU9x1yw#3l6AcIm%79 zGi^zH6rM#CZMow(S(8dcOq#5$kbHnQV6s?MRsU3et!!YK5H?OV9vf2qy-UHCn>}2d zTwI(A_fzmmCtE@10yAGgU7R&|Fl$unZJ_^0BgCEDE6(B*SzfkapE9#0N6adc>}dtH zJ#nt^F~@JMJg4=Pv}OdUHyPt-<<9Z&c0@H@^4U?KwZM&6q0XjXc$>K3c&3iXLD9_%(?)?2kmZ=Ykb;)M`Tw=%_d=e@9eheGG zk0<`4so}r={C{zr|6+_1mA_=a56(XyJq||g6Es1E6%fPg#l{r+vk9;)r6VB7D84nu zE0Z1EIxH{Y@}hT+|#$0xn+CdMy6Uhh80eK~nfMEIpM z`|G1v!USmx81nY8XkhEOSWto}pc#{Ut#`Pqb}9j$FpzkQ7`0<-@5D_!mrLah98Mpr zz(R7;ZcaR-$aKqUaO!j z=7QT;Bu0cvYBi+LDfE_WZ`e@YaE_8CCxoRc?Y_!Xjnz~Gl|aYjN2&NtT5v4#q3od2 zkCQZHe#bn(5P#J**Fj4Py%SaaAKJsmV6}F_6Z7V&n6QAu8UQ#9{gkq+tB=VF_Q6~^ zf(hXvhJ#tC(eYm6g|I>;55Lq-;yY*COpTp4?J}hGQ42MIVI9CgEC{3hYw#CZfFKVG zgD(steIg8veyqX%pYMoulq zMUmbj8I`t>mC`!kZ@A>@PYXy*@NprM@e}W2Q+s?XIRM-U1FHVLM~c60(yz1<46-*j zW*FjTnBh$EzI|B|MRU11^McTPIGVJrzozlv$1nah_|t4~u}Ht^S1@V8r@IXAkN;lH z_s|WHlN90k4X}*#neR5bX%}?;G`X!1#U~@X6bbhgDYKJK17~oFF0&-UB#()c$&V<0 z7o~Pfye$P@$)Lj%T;axz+G1L_YQ*#(qO zQND$QTz(~8EF1c3<%;>dAiD$>8j@7WS$G_+ktE|Z?Cx<}HJb=!aChR&4z ziD&FwsiZ)wxS4k6KTLn>d~!DJ^78yb>?Trmx;GLHrbCBy|Bip<@sWdAfP0I~;(Ybr zoc-@j?wA!$ zIP0m3;LZy+>dl#&Ymws@7|{i1+OFLYf@+8+)w}n?mHUBCqg2=-Hb_sBb?=q))N7Ej zDIL9%@xQFOA!(EQmchHiDN%Omrr;WvlPIN5gW;u#ByV)x2aiOd2smy&;vA2+V!u|D zc~K(OVI8} z0t|e0OQ7h23e01O;%SJ}Q#yeDh`|jZR7j-mL(T4E;{w^}2hzmf_6PF|`gWVj{I?^2T3MBK>{?nMXed4kgNox2DP!jvP9v`;pa6AV)OD zDt*Vd-x7s{-;E?E5}3p-V;Y#dB-@c5vTWfS7<=>E+tN$ME`Z7K$px@!%{5{uV`cH80|IzU! zDs9=$%75P^QKCRQ`mW7$q9U?mU@vrFMvx)NNDrI(uk>xwO;^($EUvqVev#{W&GdtR z0ew;Iwa}(-5D28zABlC{WnN{heSY5Eq5Fc=TN^9X#R}0z53!xP85#@;2E=&oNYHyo z46~#Sf!1M1X!rh}ioe`>G2SkPH{5nCoP`GT@}rH;-LP1Q7U_ypw4+lwsqiBql80aA zJE<(88yw$`xzNiSnU(hsyJqHGac<}{Av)x9lQ=&py9djsh0uc}6QkmKN3{P!TEy;P zzLDVQj4>+0r<9B0owxBt5Uz`!M_VSS|{(?`_e+qD9b=vZHoo6>?u;!IP zM7sqoyP>kWY|=v06gkhaGRUrO8n@zE?Yh8$om@8%=1}*!2wdIWsbrCg@;6HfF?TEN z+B_xtSvT6H3in#8e~jvD7eE|LTQhO_>3b823&O_l$R$CFvP@3~)L7;_A}JpgN@ax{ z2d9Ra)~Yh%75wsmHK8e87yAn-ZMiLo6#=<&PgdFsJw1bby-j&3%&4=9dQFltFR(VB z@=6XmyNN4yr^^o$ON8d{PQ=!OX17^CrdM~7D-;ZrC!||<+FEOxI_WI3 zCA<35va%4v>gcEX-@h8esj=a4szW7x z{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1*nV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q z8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI##W$P9M{B3c3Si9gw^jlPU-JqD~Cye z;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP>rp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ue zg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{lB`9HUl-WWCG|<1XANN3JVAkRYvr5U z4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvxK%p23>M&=KTCgR!Ee8c?DAO2_R?Bkaqr6^BSP!8dHXxj%N1l+V$_%vzHjq zvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rUHfcog>kv3UZAEB*g7Er@t6CF8kHDmK zTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B6~YD=gjJ!043F+&#_;D*mz%Q60=L9O zve|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw-19qI#oB(RSNydn0t~;tAmK!P-d{b-@ z@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^82zk8VXx|3mR^JCcWdA|t{0nPmYFOxN z55#^-rlqobcr==<)bi?E?SPymF*a5oDDeSdO0gx?#KMoOd&G(2O@*W)HgX6y_aa6i zMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H`oa=g0SyiLd~BxAj2~l$zRSDHxvDs; zI4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*(e-417=bO2q{492SWrqDK+L3#ChUHtz z*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEXATx4K*hcO`sY$jk#jN5WD<=C3nvuVs zRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_l3F^#f_rDu8l}l8qcAz0FFa)EAt32I zUy_JLIhU_J^l~FRH&6-iv zSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPmZi-noqS!^Ft zb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@fFGJtW3r>qV>1Z0r|L>7I3un^gcep$ zAAWfZHRvB|E*kktY$qQP_$YG60C z@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn`EgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h z|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czPg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-& zSFp;!k?uFayytV$8HPwuyELSXOs^27XvK-DOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2 zS43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@K^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^ z&X%=?`6lCy~?`&WSWt?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6Vj zA#>1f@EYiS8MRHZphpMA_5`znM=pzUpBPO)pXGYpQ6gkine{ z6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ<1SE2Edkfk9C!0t%}8Yio09^F`YGzp zaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8pT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk z7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{e zSyybt)m<=zXoA^RALYG-2touH|L*BLvmm9cdMmn+KGopyR@4*=&0 z&4g|FLoreZOhRmh=)R0bg~T2(8V_q7~42-zvb)+y959OAv!V$u(O z3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+MWQoJI_r$HxL5km1#6(e@{lK3Udc~n z0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai<6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY z>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF#Mnbr-f55)vXj=^j+#)=s+ThMaV~E`B z8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg%bOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$1 z8Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9SquGh<9<=AO&g6BZte6hn>Qmvv;Rt)*c zJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapiPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wBxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5 zo}_(P;=!y z-AjFrERh%8la!z6Fn@lR?^E~H12D? z8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2wG1|5ikb^qHv&9hT8w83+yv&BQXOQy zMVJSBL(Ky~p)gU3#%|blG?I zR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-}9?*x{y(`509qhCV*B47f2hLrGl^<@S zuRGR!KwHei?!CM10pBKpDIoBNyRuO*>3FU?HjipIE#B~y3FSfOsMfj~F9PNr*H?0o zHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R%rq|ic4fzJ#USpTm;X7K+E%xsT_3VHK ze?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>JmiU#?2^`>arnsl#)*R&nf_%>A+qwl%o z{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVDM8AI6MM2V*^_M^sQ0dmHu11fy^kOqX zqzps-c5efIKWG`=Es(9&S@K@)ZjA{lj3ea7_MBPk(|hBFRjHVMN!sNUkrB;(cTP)T97M$ z0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5I7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy z_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIoIZSVls9kFGsTwvr4{T_LidcWtt$u{k zJlW7moRaH6+A5hW&;;2O#$oKyEN8kx z`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41UwxzRFXt^E2B$domKT@|nNW`EHwyj>&< zJatrLQ=_3X%vd%nHh^z@vIk(<5%IRAa&Hjzw`TSyVMLV^L$N5Kk_i3ey6byDt)F^U zuM+Ub4*8+XZpnnPUSBgu^ijLtQD>}K;eDpe1bNOh=fvIfk`&B61+S8ND<(KC%>y&? z>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xoaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$ zitm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H?n6^}l{D``Me90`^o|q!olsF?UX3YS zq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfwR!gX_%AR=L3BFsf8LxI|K^J}deh0Zd zV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z-G6kzA01M?rba+G_mwNMQD1mbVbNTW zmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bAv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$8p_}t*XIOehezolNa-a2x0BS})Y9}& z*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWKDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~ zVCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjM zsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$) zWL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>Igy8p#i4GN{>#v=pFYUQT(g&b$OeTy- zX_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6NIHrC0H+Qpam1bNa=(`SRKjixBTtm&e z`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_%7SUeH6=TrXt3J@js`4iDD0=I zoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bXa_A{oZ9eG$he;_xYvTbTD#moBy zY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOxXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+p zmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L*&?(77!-=zvnCVW&kUcZMb6;2!83si z518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j(iTaS4HhQ)ldR=r)_7vYFUr%THE}cPF z{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVAdDZRybv?H|>`9f$AKVjFWJ=wegO7hO zOIYCtd?Vj{EYLT*^gl35|HbMX|NAEUf2ra9dy1=O;figB>La=~eA^#>O6n4?EMugV zbbt{Dbfef5l^(;}5kZ@!XaWwF8z0vUr6r|+QN*|WpF z^*osUHzOnE$lHuWYO$G7>}Y)bY0^9UY4eDV`E{s+{}Z$O$2*lMEYl zTA`ki(<0(Yrm~}15V-E^e2W6`*`%ydED-3G@$UFm6$ZtLx z+av`BhsHcAWqdxPWfu2*%{}|Sptax4_=NpDMeWy$* zZM6__s`enB$~0aT1BU^2k`J9F%+n+lL_|8JklWOCVYt*0%o*j4w1CsB_H^tVpYT_LLyKuyk=CV6~1M<7~^FylL*+AIFf3h>J=x$ygY-BG}4LJ z8XxYPY!v7dO3PVwEoY=`)6krokmR^|Mg5ztX_^#QR}ibr^X-|_St#rtv3gukh0(#A=};NPlNz57ZDFJ9hf#NP50zS)+Fo=StX)i@ zWS?W}i6LjB>kAB~lupAPyIjFb)izFgRq*iS*(Jt509jNr3r72{Gj`5DGoj;J&k5G@Rm!dJ($ox>SbxR)fc zz|Phug;~A7!p@?|mMva@rWuf2fSDK_ZxN3vVmlYz>rrf?LpiNs)^z!y{As@`55JC~ zS*GD3#N-ptY!2<613UelAJ;M4EEI$dm)`8#n$|o{ce^dlyoUY3bsy2hgnj-;ovubb zg2h1rZA6Ot}K_cpYBpIuF&CyK~5R0Wv;kG|3A^8K3nk{rw$Be8u@aos#qvKQKJyVU$cX6biw&Ep#+q7upFX z%qo&`WZ){<%zh@BTl{MO@v9#;t+cb7so0Uz49Fmo1e4>y!vUyIHadguZS0T7-x#_drMXz*16*c zymR0u^`ZQpXN}2ofegbpSedL%F9aypdQcrzjzPlBW0j zMlPzC&ePZ@Cq!?d%9oQNEg0`rHALm8l#lUdXMVEqDvb(AID~H(?H9z!e9G98fG@IzhajKr)3{L_Clu1(Bwg`RM!-(MOuZi zbeDsj9I3(~EITsE=3Z)a|l_rn8W92U0DB70gF7YYfO0j!)h?QobY1lSR>0 z_TVw@$eP~3k8r9;%g%RlZzCJ2%f}DvY`rsZ$;ak&^~-`i%B%+O!pnADeVyV!dHj|} zzOj#q4eRx9Q8c2Z7vy9L&fGLj+3_?fp}+8o`Xpwyi(81H|7P8#65%FIS*lOi={o&v z4NV$xu7az4Nb50dRGZv<tdZCx4Ek<_o3!mAT} zL5l*|K3Qr-)W8paaG z&R6{ped_4e2cy}ejD0!dt{*PaC*^L@eB%(1Fmc%Y#4)~!jF#lCGfj#E??4LG-T;!M z>Uha}f;W>ib_ZL-I7-v9KZQls^G!-JmL^w;=^}?!RXK;m4$#MwI2AH-l7M2-0 zVMK8k^+4+>2S0k^N_40EDa#`7c;2!&3-o6MHsnBfRnq@>E@)=hDulVq-g5SQWDWbt zj6H5?QS2gRZ^Zvbs~cW|8jagJV|;^zqC0e=D1oUsQPJ3MCb+eRGw(XgIY9y8v_tXq z9$(xWntWpx_Uronmvho{JfyYdV{L1N$^s^|-Nj`Ll`lUsiWTjm&8fadUGMXreJGw$ zQ**m+Tj|(XG}DyUKY~2?&9&n6SJ@9VKa9Hcayv{ar^pNr0WHy zP$bQv&8O!vd;GoT!pLwod-42qB^`m!b7nP@YTX}^+1hzA$}LSLh}Ln|?`%8xGMazw z8WT!LoYJ-Aq3=2p6ZSP~uMgSSWv3f`&-I06tU}WhZsA^6nr&r17hjQIZE>^pk=yZ% z06}dfR$85MjWJPq)T?OO(RxoaF+E#4{Z7)i9}Xsb;Nf+dzig61HO;@JX1Lf9)R5j9)Oi6vPL{H z&UQ9ln=$Q8jnh6-t;`hKM6pHftdd?$=1Aq16jty4-TF~`Gx=C&R242uxP{Y@Q~%O3 z*(16@x+vJsbW@^3tzY=-5MHi#(kB};CU%Ep`mVY1j$MAPpYJBB3x$ue`%t}wZ-@CG z(lBv36{2HMjxT)2$n%(UtHo{iW9>4HX4>)%k8QNnzIQYXrm-^M%#Qk%9odbUrZDz1YPdY`2Z4w~p!5tb^m(mUfk}kZ9+EsmenQ)5iwiaulcy zCJ#2o4Dz?@%)aAKfVXYMF;3t@aqNh2tBBlBkCdj`F31b=h93y(46zQ-YK@+zX5qM9 z&=KkN&3@Ptp*>UD$^q-WpG|9O)HBXz{D>p!`a36aPKkgz7uxEo0J>-o+4HHVD9!Hn z${LD0d{tuGsW*wvZoHc8mJroAs(3!FK@~<}Pz1+vY|Gw}Lwfxp{4DhgiQ_SSlV)E| zZWZxYZLu2EB1=g_y@(ieCQC_1?WNA0J0*}eMZfxCCs>oL;?kHdfMcKB+A)Qull$v( z2x6(38utR^-(?DG>d1GyU()8>ih3ud0@r&I$`ZSS<*1n6(76=OmP>r_JuNCdS|-8U zxGKXL1)Lc2kWY@`_kVBt^%7t9FyLVYX(g%a6>j=yURS1!V<9ieT$$5R+yT!I>}jI5 z?fem|T=Jq;BfZmsvqz_Ud*m5;&xE66*o*S22vf-L+MosmUPPA}~wy`kntf8rIeP-m;;{`xe}9E~G7J!PYoVH_$q~NzQab?F8vWUja5BJ!T5%5IpyqI#Dkps0B;gQ*z?c#N>spFw|wRE$gY?y4wQbJ zku2sVLh({KQz6e0yo+X!rV#8n8<;bHWd{ZLL_(*9Oi)&*`LBdGWz>h zx+p`Wi00u#V$f=CcMmEmgFjw+KnbK3`mbaKfoCsB{;Q^oJgj*LWnd_(dk9Kcssbj` z?*g8l`%{*LuY!Ls*|Tm`1Gv-tRparW8q4AK(5pfJFY5>@qO( zcY>pt*na>LlB^&O@YBDnWLE$x7>pMdSmb-?qMh79eB+Wa{)$%}^kX@Z3g>fytppz! zl%>pMD(Yw+5=!UgYHLD69JiJ;YhiGeEyZM$Au{ff;i zCBbNQfO{d!b7z^F732XX&qhEsJA1UZtJjJEIPyDq+F`LeAUU_4`%2aTX#3NG3%W8u zC!7OvlB?QJ4s2#Ok^_8SKcu&pBd}L?vLRT8Kow#xARt`5&Cg=ygYuz>>c z4)+Vv$;<$l=is&E{k&4Lf-Lzq#BHuWc;wDfm4Fbd5Sr!40s{UpKT$kzmUi{V0t1yp zPOf%H8ynE$x@dQ_!+ISaI}#%72UcYm7~|D*(Fp8xiFAj$CmQ4oH3C+Q8W=Y_9Sp|B z+k<%5=y{eW=YvTivV(*KvC?qxo)xqcEU9(Te=?ITts~;xA0Jph-vpd4@Zw#?r2!`? zB3#XtIY^wxrpjJv&(7Xjvm>$TIg2ZC&+^j(gT0R|&4cb)=92-2Hti1`& z=+M;*O%_j3>9zW|3h{0Tfh5i)Fa;clGNJpPRcUmgErzC{B+zACiPHbff3SmsCZ&X; zp=tgI=zW-t(5sXFL8;ITHw0?5FL3+*z5F-KcLN130l=jAU6%F=DClRPrzO|zY+HD`zlZ-)JT}X?2g!o zxg4Ld-mx6&*-N0-MQ(z+zJo8c`B39gf{-h2vqH<=^T&o1Dgd>4BnVht+JwLcrjJl1 zsP!8`>3-rSls07q2i1hScM&x0lQyBbk(U=#3hI7Bkh*kj6H*&^p+J?OMiT_3*vw5R zEl&p|QQHZq6f~TlAeDGy(^BC0vUK?V&#ezC0*#R-h}_8Cw8-*${mVfHssathC8%VA zUE^Qd!;Rvym%|f@?-!sEj|73Vg8!$$zj_QBZAOraF5HCFKl=(Ac|_p%-P;6z<2WSf zz(9jF2x7ZR{w+p)ETCW06PVt0YnZ>gW9^sr&~`%a_7j-Ful~*4=o|&TM@k@Px2z>^ t{*Ed16F~3V5p+(suF-++X8+nHtT~NSfJ>UC3v)>lEpV}<+rIR_{{yMcG_L>v diff --git a/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties b/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 8fad3f5a9..000000000 --- a/ReactNativeExample/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/ReactNativeExample/android/gradlew b/ReactNativeExample/android/gradlew deleted file mode 100755 index 1b6c78733..000000000 --- a/ReactNativeExample/android/gradlew +++ /dev/null @@ -1,234 +0,0 @@ -#!/bin/sh - -# -# Copyright ยฉ 2015-2021 the original authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -# -# Gradle start up script for POSIX generated by Gradle. -# -# Important for running: -# -# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -# noncompliant, but you have some other compliant shell such as ksh or -# bash, then to run this script, type that shell name before the whole -# command line, like: -# -# ksh Gradle -# -# Busybox and similar reduced shells will NOT work, because this script -# requires all of these POSIX shell features: -# * functions; -# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, -# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; -# * compound commands having a testable exit status, especially ยซcaseยป; -# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. -# -# Important for patching: -# -# (2) This script targets any POSIX shell, so it avoids extensions provided -# by Bash, Ksh, etc; in particular arrays are avoided. -# -# The "traditional" practice of packing multiple parameters into a -# space-separated string is a well documented source of bugs and security -# problems, so this is (mostly) avoided, by progressively accumulating -# options in "$@", and eventually passing that to Java. -# -# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -# see the in-line comments for details. -# -# There are tweaks for specific operating systems such as AIX, CygWin, -# Darwin, MinGW, and NonStop. -# -# (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -# within the Gradle project. -# -# You can find Gradle at https://github.com/gradle/gradle/. -# -############################################################################## - -# Attempt to set APP_HOME - -# Resolve links: $0 may be a link -app_path=$0 - -# Need this for daisy-chained symlinks. -while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] -do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac -done - -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" -APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { - echo "$*" -} >&2 - -die () { - echo - echo "$*" - echo - exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done -fi - -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. - -set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/ReactNativeExample/android/gradlew.bat b/ReactNativeExample/android/gradlew.bat deleted file mode 100644 index 107acd32c..000000000 --- a/ReactNativeExample/android/gradlew.bat +++ /dev/null @@ -1,89 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/ReactNativeExample/android/settings.gradle b/ReactNativeExample/android/settings.gradle deleted file mode 100644 index 4063da447..000000000 --- a/ReactNativeExample/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -rootProject.name = 'ReactNativeExample' -apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) -include ':app' -includeBuild('../node_modules/react-native-gradle-plugin') - -if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { - include(":ReactAndroid") - project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') - include(":ReactAndroid:hermes-engine") - project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') -} diff --git a/ReactNativeExample/app.json b/ReactNativeExample/app.json deleted file mode 100644 index 9f4547483..000000000 --- a/ReactNativeExample/app.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "ReactNativeExample", - "displayName": "ReactNativeExample" -} \ No newline at end of file diff --git a/ReactNativeExample/babel.config.js b/ReactNativeExample/babel.config.js deleted file mode 100644 index db64a007b..000000000 --- a/ReactNativeExample/babel.config.js +++ /dev/null @@ -1,16 +0,0 @@ -const path = require('path'); -const pak = require('../package.json'); - -module.exports = { - presets: ['module:metro-react-native-babel-preset'], - plugins: [ - [ - 'module-resolver', - { - alias: { - [pak.name]: path.join(__dirname, '..', pak.source), - }, - }, - ], - ], -}; diff --git a/ReactNativeExample/ios/Podfile b/ReactNativeExample/ios/Podfile deleted file mode 100644 index 5f963fd84..000000000 --- a/ReactNativeExample/ios/Podfile +++ /dev/null @@ -1,62 +0,0 @@ -require_relative '../node_modules/react-native/scripts/react_native_pods' -require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' - -platform :ios, '12.4' -install! 'cocoapods', :deterministic_uuids => false - -target 'ReactNativeExample' do - config = use_native_modules! - - # Flags change depending on the env values. - flags = get_default_flags() - - use_react_native!(:path => config[:reactNativePath], - # Hermes is now enabled by default. Disable by setting this flag to false. - # Upcoming versions of React Native may rely on get_default_flags(), but - # we make it explicit here to aid in the React Native upgrade process. - :hermes_enabled => false, - :fabric_enabled => flags[:fabric_enabled], - # Enables Flipper. - # - # Note that if you have use_frameworks! enabled, Flipper will not work and - # you should disable the next line. - # :flipper_configuration => FlipperConfiguration.enabled, - # An absolute path to your application root. - :app_path => "#{Pod::Config.instance.installation_root}/..") - - pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' - pod 'Primer3DS' - pod 'PrimerKlarnaSDK' - - post_install do |installer| - # Set `mac_catalyst_enabled` to `true` in order to apply patches - # necessary for Mac Catalyst builds - react_native_post_install(installer,:mac_catalyst_enabled => false) - __apply_Xcode_12_5_M1_post_install_workaround(installer) - - installer.pods_project.targets.each do |target| - if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" - target.build_configurations.each do |config| - config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' - end - end - - if target.name == "primer-io-react-native" || target.name == "PrimerSDK" - target.build_configurations.each do |config| - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' - - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' - end - end - end - end -end diff --git a/ReactNativeExample/ios/Podfile.lock b/ReactNativeExample/ios/Podfile.lock deleted file mode 100644 index 811e745a8..000000000 --- a/ReactNativeExample/ios/Podfile.lock +++ /dev/null @@ -1,502 +0,0 @@ -PODS: - - boost (1.76.0) - - DoubleConversion (1.1.6) - - FBLazyVector (0.70.4) - - FBReactNativeSpec (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTRequired (= 0.70.4) - - RCTTypeSafety (= 0.70.4) - - React-Core (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - fmt (6.2.1) - - glog (0.3.5) - - KlarnaMobileSDK (2.2.2): - - KlarnaMobileSDK/full (= 2.2.2) - - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.14.0): - - PrimerSDK (= 2.14.0) - - React-Core - - Primer3DS (1.0.0) - - PrimerKlarnaSDK (1.0.1): - - KlarnaMobileSDK (= 2.2.2) - - PrimerSDK (2.14.0): - - PrimerSDK/Core (= 2.14.0) - - PrimerSDK/Core (2.14.0) - - RCT-Folly (2021.07.22.00): - - boost - - DoubleConversion - - fmt (~> 6.2.1) - - glog - - RCT-Folly/Default (= 2021.07.22.00) - - RCT-Folly/Default (2021.07.22.00): - - boost - - DoubleConversion - - fmt (~> 6.2.1) - - glog - - RCTRequired (0.70.4) - - RCTTypeSafety (0.70.4): - - FBLazyVector (= 0.70.4) - - RCTRequired (= 0.70.4) - - React-Core (= 0.70.4) - - React (0.70.4): - - React-Core (= 0.70.4) - - React-Core/DevSupport (= 0.70.4) - - React-Core/RCTWebSocket (= 0.70.4) - - React-RCTActionSheet (= 0.70.4) - - React-RCTAnimation (= 0.70.4) - - React-RCTBlob (= 0.70.4) - - React-RCTImage (= 0.70.4) - - React-RCTLinking (= 0.70.4) - - React-RCTNetwork (= 0.70.4) - - React-RCTSettings (= 0.70.4) - - React-RCTText (= 0.70.4) - - React-RCTVibration (= 0.70.4) - - React-bridging (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - React-jsi (= 0.70.4) - - React-callinvoker (0.70.4) - - React-Codegen (0.70.4): - - FBReactNativeSpec (= 0.70.4) - - RCT-Folly (= 2021.07.22.00) - - RCTRequired (= 0.70.4) - - RCTTypeSafety (= 0.70.4) - - React-Core (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-Core (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.70.4) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/CoreModulesHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/Default (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/DevSupport (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.70.4) - - React-Core/RCTWebSocket (= 0.70.4) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-jsinspector (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTActionSheetHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTAnimationHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTBlobHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTImageHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTLinkingHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTNetworkHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTSettingsHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTTextHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTVibrationHeaders (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-Core/RCTWebSocket (0.70.4): - - glog - - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.70.4) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsiexecutor (= 0.70.4) - - React-perflogger (= 0.70.4) - - Yoga - - React-CoreModules (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.70.4) - - React-Codegen (= 0.70.4) - - React-Core/CoreModulesHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - React-RCTImage (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-cxxreact (0.70.4): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.70.4) - - React-jsi (= 0.70.4) - - React-jsinspector (= 0.70.4) - - React-logger (= 0.70.4) - - React-perflogger (= 0.70.4) - - React-runtimeexecutor (= 0.70.4) - - React-jsi (0.70.4): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.07.22.00) - - React-jsi/Default (= 0.70.4) - - React-jsi/Default (0.70.4): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.07.22.00) - - React-jsiexecutor (0.70.4): - - DoubleConversion - - glog - - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-perflogger (= 0.70.4) - - React-jsinspector (0.70.4) - - React-logger (0.70.4): - - glog - - react-native-safe-area-context (4.4.1): - - RCT-Folly - - RCTRequired - - RCTTypeSafety - - React-Core - - ReactCommon/turbomodule/core - - react-native-segmented-control (2.4.0): - - React-Core - - React-perflogger (0.70.4) - - React-RCTActionSheet (0.70.4): - - React-Core/RCTActionSheetHeaders (= 0.70.4) - - React-RCTAnimation (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.70.4) - - React-Codegen (= 0.70.4) - - React-Core/RCTAnimationHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTBlob (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.70.4) - - React-Core/RCTBlobHeaders (= 0.70.4) - - React-Core/RCTWebSocket (= 0.70.4) - - React-jsi (= 0.70.4) - - React-RCTNetwork (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTImage (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.70.4) - - React-Codegen (= 0.70.4) - - React-Core/RCTImageHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - React-RCTNetwork (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTLinking (0.70.4): - - React-Codegen (= 0.70.4) - - React-Core/RCTLinkingHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTNetwork (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.70.4) - - React-Codegen (= 0.70.4) - - React-Core/RCTNetworkHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTSettings (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.70.4) - - React-Codegen (= 0.70.4) - - React-Core/RCTSettingsHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-RCTText (0.70.4): - - React-Core/RCTTextHeaders (= 0.70.4) - - React-RCTVibration (0.70.4): - - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.70.4) - - React-Core/RCTVibrationHeaders (= 0.70.4) - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (= 0.70.4) - - React-runtimeexecutor (0.70.4): - - React-jsi (= 0.70.4) - - ReactCommon/turbomodule/core (0.70.4): - - DoubleConversion - - glog - - RCT-Folly (= 2021.07.22.00) - - React-bridging (= 0.70.4) - - React-callinvoker (= 0.70.4) - - React-Core (= 0.70.4) - - React-cxxreact (= 0.70.4) - - React-jsi (= 0.70.4) - - React-logger (= 0.70.4) - - React-perflogger (= 0.70.4) - - RNCMaskedView (0.2.8): - - React-Core - - RNCPicker (2.4.8): - - React-Core - - RNScreens (3.18.2): - - React-Core - - React-RCTImage - - Yoga (1.14.0) - -DEPENDENCIES: - - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - - primer-io-react-native (from `../..`) - - Primer3DS - - PrimerKlarnaSDK - - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `feature/DEVX-6_rebase-2.14.0`) - - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - - React (from `../node_modules/react-native/`) - - React-bridging (from `../node_modules/react-native/ReactCommon`) - - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) - - React-Codegen (from `build/generated/ios`) - - React-Core (from `../node_modules/react-native/`) - - React-Core/RCTWebSocket (from `../node_modules/react-native/`) - - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) - - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) - - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) - - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - - React-logger (from `../node_modules/react-native/ReactCommon/logger`) - - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) - - "react-native-segmented-control (from `../node_modules/@react-native-segmented-control/segmented-control`)" - - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) - - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) - - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) - - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) - - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) - - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) - - React-RCTText (from `../node_modules/react-native/Libraries/Text`) - - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) - - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) - - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - - "RNCMaskedView (from `../node_modules/@react-native-masked-view/masked-view`)" - - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" - - RNScreens (from `../node_modules/react-native-screens`) - - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) - -SPEC REPOS: - trunk: - - fmt - - KlarnaMobileSDK - - Primer3DS - - PrimerKlarnaSDK - -EXTERNAL SOURCES: - boost: - :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" - DoubleConversion: - :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" - FBLazyVector: - :path: "../node_modules/react-native/Libraries/FBLazyVector" - FBReactNativeSpec: - :path: "../node_modules/react-native/React/FBReactNativeSpec" - glog: - :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" - primer-io-react-native: - :path: "../.." - PrimerSDK: - :branch: feature/DEVX-6_rebase-2.14.0 - :git: https://github.com/primer-io/primer-sdk-ios.git - RCT-Folly: - :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" - RCTRequired: - :path: "../node_modules/react-native/Libraries/RCTRequired" - RCTTypeSafety: - :path: "../node_modules/react-native/Libraries/TypeSafety" - React: - :path: "../node_modules/react-native/" - React-bridging: - :path: "../node_modules/react-native/ReactCommon" - React-callinvoker: - :path: "../node_modules/react-native/ReactCommon/callinvoker" - React-Codegen: - :path: build/generated/ios - React-Core: - :path: "../node_modules/react-native/" - React-CoreModules: - :path: "../node_modules/react-native/React/CoreModules" - React-cxxreact: - :path: "../node_modules/react-native/ReactCommon/cxxreact" - React-jsi: - :path: "../node_modules/react-native/ReactCommon/jsi" - React-jsiexecutor: - :path: "../node_modules/react-native/ReactCommon/jsiexecutor" - React-jsinspector: - :path: "../node_modules/react-native/ReactCommon/jsinspector" - React-logger: - :path: "../node_modules/react-native/ReactCommon/logger" - react-native-safe-area-context: - :path: "../node_modules/react-native-safe-area-context" - react-native-segmented-control: - :path: "../node_modules/@react-native-segmented-control/segmented-control" - React-perflogger: - :path: "../node_modules/react-native/ReactCommon/reactperflogger" - React-RCTActionSheet: - :path: "../node_modules/react-native/Libraries/ActionSheetIOS" - React-RCTAnimation: - :path: "../node_modules/react-native/Libraries/NativeAnimation" - React-RCTBlob: - :path: "../node_modules/react-native/Libraries/Blob" - React-RCTImage: - :path: "../node_modules/react-native/Libraries/Image" - React-RCTLinking: - :path: "../node_modules/react-native/Libraries/LinkingIOS" - React-RCTNetwork: - :path: "../node_modules/react-native/Libraries/Network" - React-RCTSettings: - :path: "../node_modules/react-native/Libraries/Settings" - React-RCTText: - :path: "../node_modules/react-native/Libraries/Text" - React-RCTVibration: - :path: "../node_modules/react-native/Libraries/Vibration" - React-runtimeexecutor: - :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" - ReactCommon: - :path: "../node_modules/react-native/ReactCommon" - RNCMaskedView: - :path: "../node_modules/@react-native-masked-view/masked-view" - RNCPicker: - :path: "../node_modules/@react-native-picker/picker" - RNScreens: - :path: "../node_modules/react-native-screens" - Yoga: - :path: "../node_modules/react-native/ReactCommon/yoga" - -CHECKOUT OPTIONS: - PrimerSDK: - :commit: 654863a0498429daf39fb73f12e11a47e75ee8b3 - :git: https://github.com/primer-io/primer-sdk-ios.git - -SPEC CHECKSUMS: - boost: a7c83b31436843459a1961bfd74b96033dc77234 - DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 - FBLazyVector: 8a28262f61fbe40c04ce8677b8d835d97c18f1b3 - FBReactNativeSpec: b475991eb2d8da6a4ec32d09a8df31b0247fa87d - fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: a22a1ed9f651666c9fe2f5ba565a72069c118307 - Primer3DS: 0b298ca54adb07e3f5ae3d74e574b6d3084e8a0d - PrimerKlarnaSDK: 3bec0ddf31e01376587b8572ef12e8d5647b5c8a - PrimerSDK: c974d33a85491d400249d957b968770b5e2580e1 - RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda - RCTRequired: 49a2c4d4215580d8b24ed538ae01b6de20b43a76 - RCTTypeSafety: 55d538399fe8b51e5cd862e2ec2f9b135b07e783 - React: 413fd7d791365c2c5742b60493d3ab450ca1a210 - React-bridging: 8e577e404677d57daa0310db63e6a27328a57207 - React-callinvoker: d0ae2f0ea66bcf29a3e42a895428d2f01473d2ea - React-Codegen: 273200ed3b02d35fd1755aebe0eb3319b037d950 - React-Core: f42a10403076c1114f8c50f063ddafc9eea92fff - React-CoreModules: 1ed78c63dad96f40b123d4d4ca455e09ccd8aaed - React-cxxreact: 7d30af80adb5fe6a97646a06540c19e61736aa15 - React-jsi: 9b2b4ac1642b72bffcd74550f0caa0926b3f8a4d - React-jsiexecutor: 4a893fc8f683b91befcaf56c44ad8be4506b6828 - React-jsinspector: 1d5a9e84e419a57cabc23249aec3d837d1b03a80 - React-logger: f8071ad48248781d5afdb8a07f778758529d3019 - react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a - react-native-segmented-control: 06607462630512ff8eef652ec560e6235a30cc3e - React-perflogger: 5e41b01b35d97cc1b0ea177181eb33b5c77623b6 - React-RCTActionSheet: 48949f30b24200c82f3dd27847513be34e06a3ae - React-RCTAnimation: 96af42c97966fcd53ed9c31bee6f969c770312b6 - React-RCTBlob: 22aa326a2b34eea3299a2274ce93e102f8383ed9 - React-RCTImage: 1df0dbdb53609778f68830ccdd07ff3b40812837 - React-RCTLinking: eef4732d9102a10174115a727588d199711e376c - React-RCTNetwork: 18716f00568ec203df2192d35f4a74d1d9b00675 - React-RCTSettings: 1dc8a5e5272cea1bad2f8d9b4e6bac91b846749b - React-RCTText: 17652c6294903677fb3d754b5955ac293347782c - React-RCTVibration: 0e247407238d3bd6b29d922d7b5de0404359431b - React-runtimeexecutor: 5407e26b5aaafa9b01a08e33653255f8247e7c31 - ReactCommon: abf3605a56f98b91671d0d1327addc4ffb87af77 - RNCMaskedView: bc0170f389056201c82a55e242e5d90070e18e5a - RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 - RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d - Yoga: 1f02ef4ce4469aefc36167138441b27d988282b1 - -PODFILE CHECKSUM: 3a08e1a130a93abc4c89a95cbdd5d823d8d51b2f - -COCOAPODS: 1.11.3 diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj deleted file mode 100644 index 4f2322c11..000000000 --- a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ /dev/null @@ -1,521 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXBuildFile section */ - 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */; }; - 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - 849FAA83291588E600CC003E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 849FAA82291588E600CC003E /* main.jsbundle */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeExampleTests.m; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeExample/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ReactNativeExample/AppDelegate.mm; sourceTree = ""; }; - 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeExample/Images.xcassets; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeExample/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeExample/main.m; sourceTree = ""; }; - 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeExample-ReactNativeExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample-ReactNativeExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; - 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; - 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig"; sourceTree = ""; }; - 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; - 849FAA82291588E600CC003E /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample-ReactNativeExampleTests/Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig"; sourceTree = ""; }; - ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeExample.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */ = { - isa = PBXGroup; - children = ( - 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */, - 00E356F01AD99517003FC87E /* Supporting Files */, - ); - path = ReactNativeExampleTests; - sourceTree = ""; - }; - 00E356F01AD99517003FC87E /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 00E356F11AD99517003FC87E /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 13B07FAE1A68108700A75B9A /* ReactNativeExample */ = { - isa = PBXGroup; - children = ( - 849FAA82291588E600CC003E /* main.jsbundle */, - 13B07FAF1A68108700A75B9A /* AppDelegate.h */, - 13B07FB01A68108700A75B9A /* AppDelegate.mm */, - 13B07FB51A68108700A75B9A /* Images.xcassets */, - 13B07FB61A68108700A75B9A /* Info.plist */, - 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, - 13B07FB71A68108700A75B9A /* main.m */, - ); - name = ReactNativeExample; - sourceTree = ""; - }; - 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { - isa = PBXGroup; - children = ( - ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeExample.a */, - 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeExample-ReactNativeExampleTests.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 832341AE1AAA6A7D00B99B32 /* Libraries */ = { - isa = PBXGroup; - children = ( - ); - name = Libraries; - sourceTree = ""; - }; - 83CBB9F61A601CBA00E9B192 = { - isa = PBXGroup; - children = ( - 13B07FAE1A68108700A75B9A /* ReactNativeExample */, - 832341AE1AAA6A7D00B99B32 /* Libraries */, - 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */, - 83CBBA001A601CBA00E9B192 /* Products */, - 2D16E6871FA4F8E400B85C8A /* Frameworks */, - BBD78D7AC51CEA395F1C20DB /* Pods */, - ); - indentWidth = 2; - sourceTree = ""; - tabWidth = 2; - usesTabs = 0; - }; - 83CBBA001A601CBA00E9B192 /* Products */ = { - isa = PBXGroup; - children = ( - 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */, - ); - name = Products; - sourceTree = ""; - }; - BBD78D7AC51CEA395F1C20DB /* Pods */ = { - isa = PBXGroup; - children = ( - 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */, - 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */, - 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeExample-ReactNativeExampleTests.debug.xcconfig */, - 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeExample-ReactNativeExampleTests.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 13B07F861A680F5B00A75B9A /* ReactNativeExample */ = { - isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; - buildPhases = ( - C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, - FD10A7F022414F080027D42C /* Start Packager */, - 13B07F871A680F5B00A75B9A /* Sources */, - 13B07F8C1A680F5B00A75B9A /* Frameworks */, - 13B07F8E1A680F5B00A75B9A /* Resources */, - 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */, - E235C05ADACE081382539298 /* [CP] Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ReactNativeExample; - productName = ReactNativeExample; - productReference = 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 83CBB9F71A601CBA00E9B192 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1210; - TargetAttributes = { - 13B07F861A680F5B00A75B9A = { - LastSwiftMigration = 1120; - }; - }; - }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */; - compatibilityVersion = "Xcode 12.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 83CBB9F61A601CBA00E9B192; - productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 13B07F861A680F5B00A75B9A /* ReactNativeExample */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 13B07F8E1A680F5B00A75B9A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 849FAA83291588E600CC003E /* main.jsbundle in Resources */, - 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "$(SRCROOT)/.xcode.env.local", - "$(SRCROOT)/.xcode.env", - ); - name = "Bundle React Native code and images"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; - }; - 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - FD10A7F022414F080027D42C /* Start Packager */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "Start Packager"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 13B07F871A680F5B00A75B9A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, - 13B07FC11A68108700A75B9A /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 13B07F941A680F5B00A75B9A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-ReactNativeExample.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = N8UN9TR5DY; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = ReactNativeExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = ReactNativeExample; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 13B07F951A680F5B00A75B9A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-ReactNativeExample.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = N8UN9TR5DY; - INFOPLIST_FILE = ReactNativeExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = ReactNativeExample; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; - 83CBBA201A601CBA00E9B192 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++17"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; - LD_RUNPATH_SEARCH_PATHS = ( - /usr/lib/swift, - "$(inherited)", - ); - LIBRARY_SEARCH_PATHS = ( - "\"$(SDKROOT)/usr/lib/swift\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(inherited)\"", - ); - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 83CBBA211A601CBA00E9B192 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++17"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; - LD_RUNPATH_SEARCH_PATHS = ( - /usr/lib/swift, - "$(inherited)", - ); - LIBRARY_SEARCH_PATHS = ( - "\"$(SDKROOT)/usr/lib/swift\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(inherited)\"", - ); - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 13B07F941A680F5B00A75B9A /* Debug */, - 13B07F951A680F5B00A75B9A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83CBBA201A601CBA00E9B192 /* Debug */, - 83CBBA211A601CBA00E9B192 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; -} diff --git a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme deleted file mode 100644 index 647292efc..000000000 --- a/ReactNativeExample/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 694705661..000000000 --- a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/ReactNativeExample/ios/ReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h b/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h deleted file mode 100644 index ef1de86a2..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/AppDelegate.h +++ /dev/null @@ -1,8 +0,0 @@ -#import -#import - -@interface AppDelegate : UIResponder - -@property (nonatomic, strong) UIWindow *window; - -@end diff --git a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 81213230d..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json b/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json deleted file mode 100644 index 2d92bd53f..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/Images.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/ReactNativeExample/ios/ReactNativeExample/Info.plist b/ReactNativeExample/ios/ReactNativeExample/Info.plist deleted file mode 100644 index 2fa84672e..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/Info.plist +++ /dev/null @@ -1,54 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ReactNativeExample - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSAppTransportSecurity - - NSAllowsArbitraryLoads - - NSExceptionDomains - - localhost - - - - NSLocationWhenInUseUsageDescription - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - - diff --git a/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard b/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard deleted file mode 100644 index 147c4d213..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/LaunchScreen.storyboard +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ReactNativeExample/ios/ReactNativeExample/main.m b/ReactNativeExample/ios/ReactNativeExample/main.m deleted file mode 100644 index d645c7246..000000000 --- a/ReactNativeExample/ios/ReactNativeExample/main.m +++ /dev/null @@ -1,10 +0,0 @@ -#import - -#import "AppDelegate.h" - -int main(int argc, char *argv[]) -{ - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/ReactNativeExample/metro.config.js b/ReactNativeExample/metro.config.js deleted file mode 100644 index d1f468ab0..000000000 --- a/ReactNativeExample/metro.config.js +++ /dev/null @@ -1,40 +0,0 @@ -const path = require('path'); -const blacklist = require('metro-config/src/defaults/blacklist'); -const escape = require('escape-string-regexp'); -const pak = require('../package.json'); - -const root = path.resolve(__dirname, '..'); - -const modules = Object.keys({ - ...pak.peerDependencies, -}); - -module.exports = { - projectRoot: __dirname, - watchFolders: [root], - - // We need to make sure that only one version is loaded for peerDependencies - // So we blacklist them at the root, and alias them to the versions in example's node_modules - resolver: { - blacklistRE: blacklist( - modules.map( - (m) => - new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) - ) - ), - - extraNodeModules: modules.reduce((acc, name) => { - acc[name] = path.join(__dirname, 'node_modules', name); - return acc; - }, {}), - }, - - transformer: { - getTransformOptions: async () => ({ - transform: { - experimentalImportSupport: false, - inlineRequires: true, - }, - }), - }, -}; diff --git a/ReactNativeExample/package.json b/ReactNativeExample/package.json deleted file mode 100644 index 55b23d689..000000000 --- a/ReactNativeExample/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "ReactNativeExample", - "description": "Example app for @primer-io/react-native", - "version": "0.0.1", - "private": true, - "scripts": { - "android": "react-native run-android", - "ios": "react-native run-ios", - "start": "react-native start", - "test": "jest", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx", - "build:ios": "npx react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=true --platform='ios'" - }, - "dependencies": { - "@react-native-masked-view/masked-view": "^0.2.8", - "@react-native-picker/picker": "^2.4.8", - "@react-native-segmented-control/segmented-control": "^2.4.0", - "@react-navigation/native": "^6.0.13", - "@react-navigation/native-stack": "^6.9.1", - "axios": "^1.1.3", - "react": "18.1.0", - "react-native": "0.70.4", - "react-native-loading-spinner-overlay": "^3.0.1", - "react-native-safe-area-context": "^4.4.1", - "react-native-safe-area-view": "^1.1.1", - "react-native-screens": "^3.18.2" - }, - "devDependencies": { - "@babel/core": "^7.12.9", - "@babel/runtime": "^7.12.5", - "@react-native-community/eslint-config": "^2.0.0", - "@tsconfig/react-native": "^2.0.2", - "@types/jest": "^26.0.23", - "@types/react": "^18.0.21", - "@types/react-native": "^0.70.6", - "@types/react-test-renderer": "^18.0.0", - "@typescript-eslint/eslint-plugin": "^5.37.0", - "@typescript-eslint/parser": "^5.37.0", - "babel-jest": "^26.6.3", - "babel-plugin-module-resolver": "^4.1.0", - "eslint": "^7.32.0", - "jest": "^26.6.3", - "metro-react-native-babel-preset": "0.72.3", - "react-test-renderer": "18.1.0", - "typescript": "^4.8.3" - }, - "jest": { - "preset": "react-native", - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "jsx", - "json", - "node" - ] - } -} diff --git a/ReactNativeExample/src/App.tsx b/ReactNativeExample/src/App.tsx deleted file mode 100644 index 31413eecd..000000000 --- a/ReactNativeExample/src/App.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import React from 'react'; -import { NavigationContainer } from '@react-navigation/native'; -import { createNativeStackNavigator } from '@react-navigation/native-stack'; -import SettingsScreen from './screens/SettingsScreen'; -import CheckoutScreen from './screens/CheckoutScreen'; -import ResultScreen from './screens/ResultScreen'; -import { HeadlessCheckoutScreen } from './screens/HeadlessCheckoutScreen'; -import NewLineItemScreen from './screens/NewLineItemSreen'; -import RawCardDataScreen from './screens/RawCardDataScreen'; -import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; -import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; -import RawRetailOutletScreen from './screens/RawRetailOutletScreen'; - -const Stack = createNativeStackNavigator(); - -const App = () => { - return ( - - - - - - - - - - - - - - ); -}; - -export default App; diff --git a/ReactNativeExample/src/components/Button.tsx b/ReactNativeExample/src/components/Button.tsx deleted file mode 100644 index a8134191c..000000000 --- a/ReactNativeExample/src/components/Button.tsx +++ /dev/null @@ -1,23 +0,0 @@ - - -import * as React from 'react'; -import { View, Text, TouchableOpacity } from 'react-native'; -import { styles } from '../styles'; - -const Button = () => { - return ( - - - - Apple Pay - - - - ); -}; - -export default Button; \ No newline at end of file diff --git a/ReactNativeExample/src/components/Heading.tsx b/ReactNativeExample/src/components/Heading.tsx deleted file mode 100644 index 31ee1103c..000000000 --- a/ReactNativeExample/src/components/Heading.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import * as React from 'react'; -import type { StyleProp, TextStyle, ViewStyle } from 'react-native'; -import { - Text, - View, -} from 'react-native'; - -import { styles } from '../styles'; - -export interface HeadingProps { - style?: StyleProp; - title: string; -} - -const Heading = (props: HeadingProps) => { - return ( - - - {props.title} - - - ); -} - -export const Heading1 = (props: HeadingProps) => { - return ( - - ); -} - -export const Heading2 = (props: HeadingProps) => { - return ( - - ); -} - -export const Heading3 = (props: HeadingProps) => { - return ( - - ); -} diff --git a/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx b/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx deleted file mode 100644 index 053721fa7..000000000 --- a/ReactNativeExample/src/components/PrimerCardNumberInputElement.tsx +++ /dev/null @@ -1,3 +0,0 @@ -// MyCustomView.js -import {requireNativeComponent} from 'react-native'; -export const PrimerCardNumberEditText = requireNativeComponent('PrimerCardNumberEditText'); diff --git a/ReactNativeExample/src/components/Section.tsx b/ReactNativeExample/src/components/Section.tsx deleted file mode 100644 index 742c16ec6..000000000 --- a/ReactNativeExample/src/components/Section.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import * as React from 'react'; -import { StyleProp, Text, ViewStyle } from 'react-native'; -import { - View, -} from 'react-native'; - -export interface SectionProps { - style?: StyleProp; -} -import { styles } from "../styles"; - -export const Section: React.FC<{title: string, style: SectionProps}> = ({ children, title, style }) => { - - const renderChildren = (children: React.ReactNode[]) => { - return children.forEach((child, index) => { - return child; - }) - } - - return ( - - - {title} - - {/* - {children} - */} - - ); -}; \ No newline at end of file diff --git a/ReactNativeExample/src/components/TextField.tsx b/ReactNativeExample/src/components/TextField.tsx deleted file mode 100644 index 776659424..000000000 --- a/ReactNativeExample/src/components/TextField.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import * as React from 'react'; -import type { StyleProp } from 'react-native'; -import type { ViewStyle } from 'react-native'; -import { - Text, - TextInput, - View, -} from 'react-native'; - -import { styles } from '../styles'; - -export interface TextFieldProps { - keyboardType?: 'numeric' | 'default' - onChangeText?: (text: string) => void; - placeholder?: string; - style?: StyleProp; - title?: string; - value?: string; -} - -const TextField = (props: TextFieldProps) => { - return ( - - { - props.title === undefined ? null : - - {props.title} - - } - - - ); -} - -export default TextField; \ No newline at end of file diff --git a/ReactNativeExample/src/helpers/helpers.ts b/ReactNativeExample/src/helpers/helpers.ts deleted file mode 100644 index ed8df4b80..000000000 --- a/ReactNativeExample/src/helpers/helpers.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function makeRandomString(length: number): string { - var result = ''; - var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; - var charactersLength = characters.length; - for (var i = 0; i < length; i++) { - result += characters.charAt(Math.floor(Math.random() * - charactersLength)); - } - return result; -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/Environment.ts b/ReactNativeExample/src/models/Environment.ts deleted file mode 100644 index 5bb7aba6d..000000000 --- a/ReactNativeExample/src/models/Environment.ts +++ /dev/null @@ -1,51 +0,0 @@ -export enum Environment { - Dev = 0, - Sandbox, - Staging, - Production, -} - -export function getEnvironmentStringVal(env: Environment): string { - switch (env) { - case Environment.Dev: - return "dev" - case Environment.Sandbox: - return "sandbox" - case Environment.Staging: - return "staging" - case Environment.Production: - return "production" - default: - return "unknown" - } -} - -export function makeEnvironmentFromStringVal(env: string): Environment { - switch (env) { - case "dev": - return Environment.Dev; - case "sandbox": - return Environment.Sandbox; - case "Staging": - return Environment.Staging; - case "production": - return Environment.Production; - default: - throw new Error("Failed to create environment."); - } -} - -export function makeEnvironmentFromIntVal(env: number): Environment { - switch (env) { - case 0: - return Environment.Dev; - case 1: - return Environment.Sandbox; - case 2: - return Environment.Staging; - case 3: - return Environment.Production; - default: - throw new Error("Failed to create environment."); - } -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IAppSettings.ts b/ReactNativeExample/src/models/IAppSettings.ts deleted file mode 100644 index 4ab2d55ae..000000000 --- a/ReactNativeExample/src/models/IAppSettings.ts +++ /dev/null @@ -1,42 +0,0 @@ -export interface IClientSessionParams { - currencyCode: string; - customerId?: string; - order?: IOrder; - orderId?: string; - merchantName?: string; - customer?: ICustomer; -} - -export interface IOrder { - countryCode: string; - lineItems: ILineItem[]; -} - -export interface ILineItem { - amount: number; - quantity: number; - itemId: string; - description: string; - discountAmount?: number; -} - -export interface IAddress { - firstName?: string; - lastName?: string; - postalCode?: string; - addressLine1: string; - addressLine2?: string; - city?: string; - state?: string; - countryCode?: string; -} - -export interface ICustomer { - emailAddress?: string; - mobileNumber?: string; - firstName?: string; - lastName?: string; - billingAddress?: IAddress; - shippingAddress?: IAddress; - nationalDocumentId?: string; -} diff --git a/ReactNativeExample/src/models/IClientSession.ts b/ReactNativeExample/src/models/IClientSession.ts deleted file mode 100644 index 36d20e7ae..000000000 --- a/ReactNativeExample/src/models/IClientSession.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface IClientSession { - clientToken: string; - clientTokenExpirationDate: string; -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IClientSessionRequestBody.ts b/ReactNativeExample/src/models/IClientSessionRequestBody.ts deleted file mode 100644 index 974612984..000000000 --- a/ReactNativeExample/src/models/IClientSessionRequestBody.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { makeRandomString } from "../helpers/helpers"; -import { PaymentHandling } from "../network/Environment"; -import type { AppPaymentParameters } from "../screens/SettingsScreen"; -import { Environment } from "./Environment"; - -export interface IClientSessionRequestBody { - customerId?: string; - orderId?: string; - currencyCode?: string; - order?: IClientSessionOrder; - customer?: IClientSessionCustomer; - paymentMethod?: IClientSessionPaymentMethod; -} - -export interface IClientSessionOrder { - countryCode?: string; - lineItems?: Array -} - -export interface IClientSessionCustomer { - emailAddress?: string; - mobileNumber?: string; - firstName?: string; - lastName?: string; - billingAddress?: IClientSessionAddress; - shippingAddress?: IClientSessionAddress; - nationalDocumentId?: string; -} - -export interface IClientSessionAddress { - firstName?: string; - lastName?: string; - postalCode?: string; - addressLine1?: string; - addressLine2?: string; - countryCode?: string; - city?: string; - state?: string; -} - -export interface IClientSessionLineItem { - amount: number; - quantity: number; - itemId: string; - description: string; - discountAmount?: number; -} - -export interface IClientSessionActionsRequestBody { - clientToken: string; - actions: IClientSession_Action[]; -} - -export interface IClientSession_Action { - type: string; - params?: any; -} - -export interface IClientSessionPaymentMethod { - vaultOnSuccess?: boolean; - options?: IClientSessionPaymentMethodOptions; -} - -export interface IClientSessionPaymentMethodOptionsSurcharge { - surcharge: { - amount: number; - } -} - -export interface IClientSessionPaymentMethodOptions { - GOOGLE_PAY?: IClientSessionPaymentMethodOptionsSurcharge; - ADYEN_IDEAL?: IClientSessionPaymentMethodOptionsSurcharge; - ADYEN_SOFORT?: IClientSessionPaymentMethodOptionsSurcharge; - APPLE_PAY?: IClientSessionPaymentMethodOptionsSurcharge; - ADYEN_GIROPAY?: IClientSessionPaymentMethodOptionsSurcharge; - PAYMENT_CARD?: { - networks: { - VISA?: IClientSessionPaymentMethodOptionsSurcharge; - MASTERCARD?: IClientSessionPaymentMethodOptionsSurcharge; - }, - }, -} - -export let appPaymentParameters: AppPaymentParameters = { - environment: Environment.Sandbox, - paymentHandling: PaymentHandling.Auto, - clientSessionRequestBody: { - customerId: `rn-customer-${makeRandomString(8)}`, - orderId: `rn-order-${makeRandomString(8)}`, - currencyCode: 'GBP', - order: { - countryCode: 'GB', - lineItems: [ - { - amount: 10100, - quantity: 1, - itemId: 'shoes-3213', - description: 'Fancy Shoes', - discountAmount: 0 - }, - // { - // amount: 1000, - // quantity: 1, - // itemId: 'hats-3213', - // description: 'Cool Hat', - // discountAmount: 0 - // } - ] - }, - customer: { - emailAddress: 'rn-tester@primer.io', - mobileNumber: '+447821721778', - firstName: 'John', - lastName: 'Smith', - billingAddress: { - firstName: 'John', - lastName: 'Smith', - postalCode: 'SW1H 9HP', - addressLine1: '24 Old Queen St', - addressLine2: undefined, - countryCode: 'GB', - city: 'London', - state: undefined - }, - shippingAddress: { - firstName: 'John', - lastName: 'Smith', - postalCode: 'SW1H 9HP', - addressLine1: '24 Old Queen St', - countryCode: 'GB', - city: 'London', - state: undefined - }, - nationalDocumentId: '78731798237' - }, - paymentMethod: { - vaultOnSuccess: false, - options: { - GOOGLE_PAY: { - surcharge: { - amount: 50, - }, - }, - ADYEN_IDEAL: { - surcharge: { - amount: 50, - }, - }, - ADYEN_GIROPAY: { - surcharge: { - amount: 50, - }, - }, - ADYEN_SOFORT: { - surcharge: { - amount: 50, - }, - }, - APPLE_PAY: { - surcharge: { - amount: 150, - }, - }, - PAYMENT_CARD: { - networks: { - VISA: { - surcharge: { - amount: 100, - }, - }, - MASTERCARD: { - surcharge: { - amount: 200, - }, - }, - }, - }, - }, - } - }, - merchantName: 'Primer Merchant' -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/IPayment.ts b/ReactNativeExample/src/models/IPayment.ts deleted file mode 100644 index c74932a18..000000000 --- a/ReactNativeExample/src/models/IPayment.ts +++ /dev/null @@ -1,78 +0,0 @@ -export interface IPayment { - amount: number; - currencyCode: string; - customer: IPayment_Customer; - date: string; - id: string; - order: IPayment_Order; - orderId?: string | null; - paymentMethod: IPayment_PaymentMethod; - processor?: IPayment_Processor | null; - requiredAction?: IPayment_RequiredAction; - status: string; - transactions?: any | null; -} - -export interface IPayment_Processor { - amountCaptured?: number | null; - amountRefunded?: number | null; -} - -export interface IPayment_Address { - addressLine1?: string | null; - addressLine2?: string | null; - city?: string | null; - countryCode?: string | null; - firstName?: string | null; - lastName?: string | null; - postalCode?: string | null; - state?: string | null; -} - -export interface IPayment_Customer { - emailAddress?: string; - billingAddress?: IPayment_Address | null; - shippingAddress?: IPayment_Address | null; - nationalDocumentId?: string; -} - -export interface IPayment_LineItem { - amount: number; - description?: string | null; - discountAmount?: number | null; - itemId?: string | null; - quantity?: string | null; -} - -export interface IPayment_Order { - countryCode: string; - fees?: any[] | null; - lineItems: IPayment_LineItem[]; -} - -export interface IPayment_RequiredAction { - name: string; - description: string; - clientToken: string; -} - -export interface IPayment_PaymentMethod { - analyticsId?: string | null; - paymentMethodData?: IPayment_PaymentMethod_PaymentMethodData | null; - paymentMethodToken: string; - paymentMethodType: string; - threeDSecureAuthentication?: IPayment_PaymentMethod_ThreeDSecureAuthentication | null; -} - -export interface IPayment_PaymentMethod_PaymentMethodData { - cardholderName?: string; - expirationMonth?: string; - expirationYear?: string; - isNetworkTokenized?: boolean; - last4Digits?: string; - network?: string; -} - -export interface IPayment_PaymentMethod_ThreeDSecureAuthentication { - responseCode: string; -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/RawDataScreenProps.ts b/ReactNativeExample/src/models/RawDataScreenProps.ts deleted file mode 100644 index ba1b52f45..000000000 --- a/ReactNativeExample/src/models/RawDataScreenProps.ts +++ /dev/null @@ -1,6 +0,0 @@ - -export interface RawDataScreenProps { - navigation: any; - clientSession: any; - route: any; -} \ No newline at end of file diff --git a/ReactNativeExample/src/models/Section.tsx b/ReactNativeExample/src/models/Section.tsx deleted file mode 100644 index 768192b2a..000000000 --- a/ReactNativeExample/src/models/Section.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import React from 'react'; -import { Text, useColorScheme, View } from "react-native"; -import { - Colors, -} from 'react-native/Libraries/NewAppScreen'; -import { styles } from "../styles"; - -export const Section: React.FC<{ - title: string; -}> = ({ children, title }) => { - const isDarkMode = useColorScheme() === 'dark'; - return ( - - - {title} - - - {children} - - - ); -}; \ No newline at end of file diff --git a/ReactNativeExample/src/network/APIVersion.ts b/ReactNativeExample/src/network/APIVersion.ts deleted file mode 100644 index 14a8b0ae4..000000000 --- a/ReactNativeExample/src/network/APIVersion.ts +++ /dev/null @@ -1,22 +0,0 @@ -export enum APIVersion { - v1 = 0, - v2, - v3, - v4, - v5 -} - -export function getAPIVersionStringVal(apiVersion: APIVersion): string | undefined { - switch (apiVersion) { - case APIVersion.v1: - return undefined - case APIVersion.v2: - return "2021-09-27" - case APIVersion.v3: - return "2021-10-19" - case APIVersion.v4: - return "2021-12-01" - case APIVersion.v5: - return "2021-12-10" - } -} diff --git a/ReactNativeExample/src/network/Environment.ts b/ReactNativeExample/src/network/Environment.ts deleted file mode 100644 index 14863dda1..000000000 --- a/ReactNativeExample/src/network/Environment.ts +++ /dev/null @@ -1,89 +0,0 @@ -export enum Environment { - Dev = 0, - Sandbox, - Staging, - Production, -} - -export function getEnvironmentStringVal(env: Environment): string | undefined { - switch (env) { - case Environment.Dev: - return "dev"; - case Environment.Sandbox: - return "sandbox"; - case Environment.Staging: - return "staging"; - case Environment.Production: - return "production"; - default: - return undefined; - } -} - -export function makeEnvironmentFromStringVal(env: string): Environment { - switch (env) { - case "dev": - return Environment.Dev; - case "sandbox": - return Environment.Sandbox; - case "Staging": - return Environment.Staging; - case "production": - return Environment.Production; - default: - throw new Error("Failed to create environment."); - } -} - -export function makeEnvironmentFromIntVal(env: number): Environment { - switch (env) { - case 0: - return Environment.Dev; - case 1: - return Environment.Sandbox; - case 2: - return Environment.Staging; - case 3: - return Environment.Production; - default: - throw new Error("Failed to create environment."); - } -} - -export enum PaymentHandling { - Auto = 0, - Manual -} - -export function makePaymentHandlingFromIntVal(env: number): PaymentHandling { - switch (env) { - case 0: - return PaymentHandling.Auto; - case 1: - return PaymentHandling.Manual; - default: - throw new Error("Failed to create payment handling."); - } -} - -export function makePaymentHandlingFromStringVal(env: string): PaymentHandling { - switch (env.toUpperCase()) { - case "AUTO": - return PaymentHandling.Auto; - case "MANUAL": - return PaymentHandling.Manual; - default: - throw new Error("Failed to create payment handling."); - } -} - -export function getPaymentHandlingStringVal(env: PaymentHandling): 'AUTO' | 'MANUAL' | undefined { - switch (env) { - case PaymentHandling.Auto: - return "AUTO"; - case PaymentHandling.Manual: - return "MANUAL"; - default: - return undefined; - } -} diff --git a/ReactNativeExample/src/network/api.ts b/ReactNativeExample/src/network/api.ts deleted file mode 100644 index 440a8c6fd..000000000 --- a/ReactNativeExample/src/network/api.ts +++ /dev/null @@ -1,173 +0,0 @@ -import axios from 'axios'; -import { getEnvironmentStringVal } from './Environment'; -import { appPaymentParameters, IClientSessionActionsRequestBody, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; -import type { IPayment } from '../models/IPayment'; -import { APIVersion, getAPIVersionStringVal } from './APIVersion'; -import { customApiKey, customClientToken } from '../screens/SettingsScreen'; - -const baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; - -let staticHeaders: { [key: string]: string } = { - 'Content-Type': 'application/json', - 'environment': getEnvironmentStringVal(appPaymentParameters.environment), -} - -export const createClientSession = async () => { - const url = baseUrl + '/client-session'; - const headers: { [key: string]: string } = { - ...staticHeaders, - 'X-Api-Version': getAPIVersionStringVal(APIVersion.v3), - }; - - if (customApiKey) { - headers['X-Api-Key'] = customApiKey; - } - - if (customClientToken) { - return { "clientToken": customClientToken }; - } - - try { - console.log('\n\n'); - console.log(`REQUEST:\n ${url}`); - console.log(`HEADERS:`); - console.log(headers); - console.log(`BODY:`); - console.log(appPaymentParameters.clientSessionRequestBody); - //@ts-ignore - const response = await axios.post(url, appPaymentParameters.clientSessionRequestBody, { headers: headers }); - console.log('\n\n'); - console.log(`RESPONSE:\n [${response.status}] ${url}`); - console.log(`BODY:`); - console.log(response.data); - console.log('\n\n'); - - if (response.status >= 200 && response.status < 300) { - return response.data; - } else { - const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); - console.error(err); - throw err; - } - } catch (err: any) { - console.log(err.response.data); - console.error(err); - throw err; - } -} - -export const setClientSessionActions = async (body: IClientSessionActionsRequestBody) => { - const url = baseUrl + '/client-session/actions'; - const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; - - if (customApiKey) { - headers['X-Api-Key'] = customApiKey; - } - - try { - console.log('\n\n'); - console.log(`REQUEST:\n ${url}`); - console.log(`HEADERS:`); - console.log(headers); - console.log(`BODY:`); - console.log(body); - //@ts-ignore - const response = await axios.post(url, body, { headers: headers }); - console.log('\n\n'); - console.log(`RESPONSE:\n [${response.status}] ${url}`); - console.log(`BODY:`); - console.log(body); - console.log('\n\n'); - - if (response.status >= 200 && response.status < 300) { - const clientSession = response.data; - return clientSession; - } else { - const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); - console.error(err); - throw err; - } - } catch (err: any) { - console.log(err.response.data); - console.error(err); - throw err; - } -} - -export const createPayment = async (paymentMethodToken: string) => { - const url = baseUrl + '/payments'; - const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; - - if (customApiKey) { - headers['X-Api-Key'] = customApiKey; - } - - const body = { paymentMethodToken: paymentMethodToken }; - try { - console.log('\n\n'); - console.log(`REQUEST:\n ${url}`); - console.log(`HEADERS:`); - console.log(headers); - console.log(`BODY:`); - console.log(body); - //@ts-ignore - const response = await axios.post(url, body, { headers: headers }); - console.log('\n\n'); - console.log(`RESPONSE:\n [${response.status}] ${url}`); - console.log(`BODY:`); - console.log(body); - console.log('\n\n'); - - if (response.status >= 200 && response.status < 300) { - const payment: IPayment = response.data; - return payment; - } else { - const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); - console.error(err); - throw err; - } - } catch (err: any) { - console.log(err.response.data); - console.error(err); - throw err; - } -}; - -export const resumePayment = async (paymentId: string, resumeToken: string) => { - const url = baseUrl + `/payments/${paymentId}/resume`; - const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; - - if (customApiKey) { - headers['X-Api-Key'] = customApiKey; - } - - const body = { resumeToken: resumeToken }; - - try { - console.log('\n\n'); - console.log(`REQUEST:\n ${url}`); - console.log(`HEADERS:`); - console.log(headers); - console.log(`BODY:`); - console.log(body); - //@ts-ignore - const response = await axios.post(url, body, { headers: headers }); - console.log('\n\n'); - console.log(`RESPONSE:\n [${response.status}] ${url}`); - console.log(`BODY:`); - console.log(body); - console.log('\n\n'); - - if (response.status >= 200 && response.status < 300) { - return response.data; - } else { - const err = new Error(`Request failed with status ${response.status}.\nBody: ${JSON.stringify(response.data)}`); - console.error(err); - throw err; - } - } catch (err: any) { - console.log(err.response.data); - console.error(err); - throw err; - } -} diff --git a/ReactNativeExample/src/screens/CheckoutScreen.tsx b/ReactNativeExample/src/screens/CheckoutScreen.tsx deleted file mode 100644 index 6a5b55d19..000000000 --- a/ReactNativeExample/src/screens/CheckoutScreen.tsx +++ /dev/null @@ -1,262 +0,0 @@ - -import * as React from 'react'; -import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; -import { Colors } from 'react-native/Libraries/NewAppScreen'; -import { styles } from '../styles'; -import { appPaymentParameters } from '../models/IClientSessionRequestBody'; -import type { IClientSession } from '../models/IClientSession'; -import type { IPayment } from '../models/IPayment'; -import { getPaymentHandlingStringVal } from '../network/Environment'; -import { createClientSession, createPayment, resumePayment } from '../network/api'; -import { - CheckoutAdditionalInfo, - CheckoutData, - CheckoutPaymentMethodData, - ClientSession, - ErrorHandler, - PaymentCreationHandler, - Primer, - PrimerError, - PrimerPaymentMethodTokenData, - PrimerSettings, - ResumeHandler, - TokenizationHandler -} from '@primer-io/react-native'; - -let clientToken: string | null = null; - -const CheckoutScreen = (props: any) => { - const isDarkMode = useColorScheme() === 'dark'; - const [isLoading, setIsLoading] = React.useState(false); - const [loadingMessage, setLoadingMessage] = React.useState('undefined'); - const [error, setError] = React.useState(null); - - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, - }; - - let paymentId: string | null = null; - - const onBeforeClientSessionUpdate = () => { - console.log(`onBeforeClientSessionUpdate`); - setIsLoading(true); - setLoadingMessage('onBeforeClientSessionUpdate'); - } - - const onClientSessionUpdate = (clientSession: ClientSession) => { - console.log(`onClientSessionUpdate\n${JSON.stringify(clientSession)}`);; - setLoadingMessage('onClientSessionUpdate'); - } - - const onBeforePaymentCreate = (checkoutPaymentMethodData: CheckoutPaymentMethodData, handler: PaymentCreationHandler) => { - console.log(`onBeforePaymentCreate\n${JSON.stringify(checkoutPaymentMethodData)}`); - handler.continuePaymentCreation(); - setLoadingMessage('onBeforePaymentCreate'); - } - - const onCheckoutComplete = (checkoutData: CheckoutData) => { - console.log(`PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setLoadingMessage(undefined); - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; - - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: TokenizationHandler) => { - console.log(`onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - console.warn("Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - handler.handleSuccess(); - setLoadingMessage(undefined); - setIsLoading(false); - } - } catch (err) { - console.error(err); - handler.handleFailure("Merchant error"); - setLoadingMessage(undefined); - setIsLoading(false); - props.navigation.navigate('Result', err); - } - } - - const onResumeSuccess = async (resumeToken: string, handler: ResumeHandler) => { - console.log(`onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - handler.handleSuccess(); - setLoadingMessage(undefined); - setIsLoading(false); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - - } catch (err) { - console.error(err); - paymentId = null; - handler.handleFailure("RN app error"); - setLoadingMessage(undefined); - setIsLoading(false); - props.navigation.navigate('Result', err); - } - } - - const onResumePending = async (additionalInfo: CheckoutAdditionalInfo) => { - console.log(`onResumePending:\n${JSON.stringify(additionalInfo)}`); - debugger; - } - - const onCheckoutReceivedAdditionalInfo = async (additionalInfo: CheckoutAdditionalInfo) => { - console.log(`onCheckoutReceivedAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; - } - - const onError = (error: PrimerError, checkoutData: CheckoutData | null, handler: ErrorHandler | undefined) => { - console.log(`onError:\n${JSON.stringify(error)}\n\n${JSON.stringify(checkoutData)}`); - handler?.showErrorMessage("My RN message"); - setLoadingMessage(undefined); - setIsLoading(false); - props.navigation.navigate('Result', error); - }; - - const onDismiss = () => { - console.log(`onDismiss`); - clientToken = null; - setLoadingMessage(undefined); - setIsLoading(false); - }; - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io' - }, - cardPaymentOptions: { - is3DSOnVaultingEnabled: false - }, - klarnaOptions: { - recurringPaymentDescription: "Recurring payment description" - }, - applePayOptions: { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - isCaptureBillingAddressEnabled: true - } - }, - uiOptions: { - isInitScreenEnabled: true, - isSuccessScreenEnabled: true, - isErrorScreenEnabled: true - }, - debugOptions: { - is3DSSanityCheckEnabled: true - }, - primerCallbacks: { - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: onBeforePaymentCreate, - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onResumePending: onResumePending, - onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, - onError: onError, - onDismiss: onDismiss, - } - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - }; - } - - const onVaultManagerButtonTapped = async () => { - try { - setIsLoading(true); - const clientSession: IClientSession = await createClientSession(); - clientToken = clientSession.clientToken; - await Primer.configure(settings); - await Primer.showVaultManager(clientToken); - - } catch (err) { - setIsLoading(false); - - if (err instanceof Error) { - setError(err); - } else if (typeof err === "string") { - setError(new Error(err)); - } else { - setError(new Error('Unknown error')); - } - } - } - - const onUniversalCheckoutButtonTapped = async () => { - try { - setIsLoading(true); - const clientSession: IClientSession = await createClientSession(); - clientToken = clientSession.clientToken; - await Primer.configure(settings); - await Primer.showUniversalCheckout(clientToken); - - } catch (err) { - setIsLoading(false); - - if (err instanceof Error) { - setError(err); - } else if (typeof err === "string") { - setError(new Error(err)); - } else { - setError(new Error('Unknown error')); - } - } - } - - console.log(`RENDER\nisLoading: ${isLoading}`) - return ( - - - - - Vault Manager - - - - - Universal Checkout - - - - ); -}; - -export default CheckoutScreen; diff --git a/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx b/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx deleted file mode 100644 index 2908083ec..000000000 --- a/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx +++ /dev/null @@ -1,410 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { - Alert, - Image, - TouchableOpacity, - View, -} from 'react-native'; -import { createClientSession, createPayment, resumePayment } from '../network/api'; -import { appPaymentParameters } from '../models/IClientSessionRequestBody'; -import type { IPayment } from '../models/IPayment'; -import { getPaymentHandlingStringVal } from '../network/Environment'; -import { ActivityIndicator } from 'react-native'; -import { - Asset, - AssetsManager, - CheckoutAdditionalInfo, - CheckoutData, - HeadlessUniversalCheckout, - NativeUIManager, - PaymentMethod, - PrimerSettings, - SessionIntent -} from '@primer-io/react-native'; - -let log: string = ""; -let merchantPaymentId: string | null = null; -let merchantCheckoutData: CheckoutData | null = null; -let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; -let merchantPayment: IPayment | null = null; -let merchantPrimerError: Error | unknown | null = null; - -const selectImplemetationType = (paymentMethod: PaymentMethod): Promise => { - return new Promise((resolve, reject) => { - const buttons: any[] = []; - - paymentMethod.paymentMethodManagerCategories.forEach(category => { - buttons.push({ - text: category, - style: "default", - onPress: () => { - resolve(category); - } - }); - }); - - buttons.push({ - text: "Cancel", - style: "cancel", - onPress: () => { - const err = new Error("Operation cancelled"); - reject(err); - } - }); - - Alert.alert( - "", - "Select implementation to test", - buttons, - { - cancelable: true, - } - ); - }) -} - -export const HeadlessCheckoutScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [clientSession, setClientSession] = useState(null); - const [paymentMethods, setPaymentMethods] = useState(undefined); - const [paymentMethodsAssets, setPaymentMethodsAssets] = useState(undefined); - - const updateLogs = (str: string) => { - console.log(str); - const currentLog = log; - const combinedLog = currentLog + "\n" + str; - log = combinedLog; - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io' - }, - }, - debugOptions: { - is3DSSanityCheckEnabled: false - }, - headlessUniversalCheckoutCallbacks: { - onAvailablePaymentMethodsLoad: (availablePaymentMethods => { - updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad\n${JSON.stringify(availablePaymentMethods, null, 2)}\n`); - setIsLoading(false); - }), - onPreparationStart: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onPreparationStart\npaymentMethodType: ${paymentMethodType}\n`); - }, - onPaymentMethodShow: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onPaymentMethodShow\npaymentMethodType: ${paymentMethodType}\n`); - }, - onTokenizationStart: (paymentMethodType) => { - updateLogs(`\nโ„น๏ธ onTokenizationStart\npaymentMethodType: ${paymentMethodType}\n`); - }, - onBeforeClientSessionUpdate: () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate\n`); - }, - onClientSessionUpdate: (clientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate\nclientSession: ${JSON.stringify(clientSession, null, 2)}\n`); - }, - onBeforePaymentCreate: (tmpCheckoutData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate\ncheckoutData: ${JSON.stringify(tmpCheckoutData, null, 2)}\n`); - handler.continuePaymentCreation(); - }, - onCheckoutAdditionalInfo: (additionalInfo) => { - merchantCheckoutAdditionalInfo = additionalInfo; - updateLogs(`\nโ„น๏ธ onCheckoutPending\nadditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}\n`); - setIsLoading(false); - }, - onCheckoutComplete: (checkoutData) => { - merchantCheckoutData = checkoutData; - updateLogs(`\nโœ… onCheckoutComplete\ncheckoutData: ${JSON.stringify(checkoutData, null, 2)}\n`); - setIsLoading(false); - navigateToResultScreen(); - }, - onCheckoutPending: (checkoutAdditionalInfo) => { - merchantCheckoutAdditionalInfo = checkoutAdditionalInfo; - updateLogs(`\nโœ… onCheckoutPending\nadditionalInfo: ${JSON.stringify(checkoutAdditionalInfo, null, 2)}\n`); - setIsLoading(false); - navigateToResultScreen(); - }, - onTokenizationSuccess: async (paymentMethodTokenData, handler) => { - updateLogs(`\nโ„น๏ธ onTokenizationSuccess\npaymentMethodTokenData: ${JSON.stringify(paymentMethodTokenData, null, 2)}\n`); - setIsLoading(false); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - merchantPayment = payment; - - if (payment.requiredAction && payment.requiredAction.clientToken) { - merchantPaymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\nโš ๏ธ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - - } else { - setIsLoading(false); - handler.complete(); - navigateToResultScreen(); - } - - } catch (err) { - merchantPrimerError = err; - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setIsLoading(false); - handler.complete(); - - console.error(err); - navigateToResultScreen(); - } - }, - onCheckoutResume: async (resumeToken, handler) => { - updateLogs(`\nโ„น๏ธ onCheckoutResume\nresumeToken: ${resumeToken}`); - - try { - if (merchantPaymentId) { - const payment: IPayment = await resumePayment(merchantPaymentId, resumeToken); - merchantPayment = payment; - handler.complete(); - updateLogs(`\nโœ… Payment resumed\npayment: ${JSON.stringify(payment, null, 2)}`); - setIsLoading(false); - navigateToResultScreen(); - merchantPaymentId = null; - - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - - } catch (err) { - console.error(err); - handler.complete(); - updateLogs(`\n๐Ÿ›‘ Payment resume\nerror: ${JSON.stringify(err, null, 2)}`); - setIsLoading(false); - - merchantPaymentId = null; - navigateToResultScreen(); - } - }, - onError: (err) => { - merchantPrimerError = err; - updateLogs(`\n๐Ÿ›‘ onError\nerror: ${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - navigateToResultScreen(); - } - } - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSessionIfNeeded() - .then((session) => { - setIsLoading(false); - startHUC(session.clientToken); - }) - .catch(err => { - setIsLoading(false); - console.error(err); - }); - }, []); - - const createClientSessionIfNeeded = (): Promise => { - return new Promise(async (resolve, reject) => { - try { - if (clientSession === null) { - const newClientSession = await createClientSession(); - setClientSession(newClientSession); - resolve(newClientSession); - } else { - resolve(clientSession); - } - } catch (err) { - reject(err); - } - }); - } - - const navigateToResultScreen = async () => { - try { - props.navigation.navigate("Result", { - merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, - merchantCheckoutData: merchantCheckoutData, - merchantPayment: merchantPayment, - merchantPrimerError: merchantPrimerError, - logs: log - }); - - setClientSession(null); - setIsLoading(true); - await createClientSessionIfNeeded(); - - } catch (err) { - console.error(err); - } - - setIsLoading(false); - } - - const startHUC = async (clientToken: string) => { - try { - const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); - setPaymentMethods(availablePaymentMethods); - // updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(availablePaymentMethods, null, 2)}`); - const assetsManager = new AssetsManager(); - const assets = await assetsManager.getPaymentMethodAssets(); - setPaymentMethodsAssets(assets); - - } catch (err) { - console.error(err); - } - } - - const paymentMethodButtonTapped = async (paymentMethodType: string) => { - try { - const paymentMethod = paymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); - - if (!paymentMethod) { - return; - } - - if (paymentMethod.paymentMethodManagerCategories.length === 1) { - pay(paymentMethod, paymentMethod.paymentMethodManagerCategories[0]); - - } else { - const selectedImplementationType = await selectImplemetationType(paymentMethod); - pay(paymentMethod, selectedImplementationType); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ paymentMethodButtonTapped\nerror: ${JSON.stringify(err, null, 2)}`); - console.error(err); - } - }; - - const pay = async (paymentMethod: PaymentMethod, implementationType: string) => { - try { - if (implementationType === "NATIVE_UI") { - setIsLoading(true); - await createClientSessionIfNeeded(); - const nativeUIManager = new NativeUIManager(); - await nativeUIManager.configure(paymentMethod.paymentMethodType); - - if (paymentMethod.paymentMethodType === "KLARNA") { - await nativeUIManager.showPaymentMethod(SessionIntent.VAULT); - } else { - await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); - } - - } else if (implementationType === "RAW_DATA") { - await createClientSessionIfNeeded(); - - if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { - props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); - - } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL_OUTLETS") { - props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); - - } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { - props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); - - } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { - props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); - } - - } else { - Alert.alert( - "Warning!", - `${implementationType} is not supported on Headless Universal Checkout yet.`, - [ - { - text: "Cancel", - style: "cancel", - onPress: () => { - - } - } - ], - { - cancelable: true, - } - ); - } - - } catch (err) { - updateLogs(`\n๐Ÿ›‘ pay\nerror: ${JSON.stringify(err, null, 2)}`); - setIsLoading(false); - console.error(err); - } - } - - const renderPaymentMethodsUI = () => { - if (!paymentMethodsAssets) { - return null; - } - - return ( - - {paymentMethodsAssets.map((paymentMethodsAsset) => { - return ( - { - paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); - }} - > - - - ); - })} - - ); - } - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - return ( - - {renderPaymentMethodsUI()} - {renderLoadingOverlay()} - - ); -}; diff --git a/ReactNativeExample/src/screens/NewLineItemSreen.tsx b/ReactNativeExample/src/screens/NewLineItemSreen.tsx deleted file mode 100644 index 792536a9a..000000000 --- a/ReactNativeExample/src/screens/NewLineItemSreen.tsx +++ /dev/null @@ -1,134 +0,0 @@ - -import * as React from 'react'; -import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; -import TextField from '../components/TextField'; -import { makeRandomString } from '../helpers/helpers'; -import type { IClientSessionLineItem } from '../models/IClientSessionRequestBody'; -import { styles } from '../styles'; - -export interface NewLineItemScreenProps { - lineItem?: IClientSessionLineItem; - onAddLineItem?: (lineItem: IClientSessionLineItem) => void; - onEditLineItem?: (lineItem: IClientSessionLineItem) => void; - onRemoveLineItem?: (lineItem: IClientSessionLineItem) => void; -} - -const NewLineItemScreen = (props: any) => { - const newLineItemScreenProps: NewLineItemScreenProps | undefined = props.route.params; - const [isEditing, setIsEditing] = React.useState(newLineItemScreenProps?.lineItem === undefined ? false : true); - const [name, setName] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.description); - const [quantity, setQuantity] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.quantity); - const [unitPrice, setUnitPrice] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.amount); - - return ( - - { - setName(text); - }} - /> - { - const tmpQuantity = Number(text); - if (!isNaN(tmpQuantity) && tmpQuantity > 0) { - setQuantity(tmpQuantity); - } else { - setQuantity(undefined); - } - }} - /> - { - const tmpUnitPrice = Number(text); - if (!isNaN(tmpUnitPrice) && tmpUnitPrice > 0) { - setUnitPrice(tmpUnitPrice); - } else { - setUnitPrice(undefined); - } - }} - /> - {/* */} - { - if (isEditing && newLineItemScreenProps?.lineItem) { - if (name && quantity && unitPrice) { - const newLineItem: IClientSessionLineItem = { - itemId: `item-id-${makeRandomString(8)}`, - description: name, - quantity: quantity, - amount: unitPrice - } - - if (newLineItemScreenProps?.onEditLineItem) { - newLineItemScreenProps.onEditLineItem(newLineItem); - } - - props.navigation.goBack(); - } - } else { - if (name && quantity && unitPrice) { - const newLineItem: IClientSessionLineItem = { - itemId: `item-id-${makeRandomString(8)}`, - description: name, - quantity: quantity, - amount: unitPrice - } - - if (newLineItemScreenProps?.onAddLineItem) { - newLineItemScreenProps.onAddLineItem(newLineItem); - } - - props.navigation.goBack(); - } - } - }} - > - - { - isEditing ? "Edit Line Item" : "Add Line Item" - } - - - - { - newLineItemScreenProps?.lineItem === undefined ? null : - { - if (newLineItemScreenProps.onRemoveLineItem && newLineItemScreenProps.lineItem) { - newLineItemScreenProps.onRemoveLineItem(newLineItemScreenProps.lineItem); - } - - props.navigation.goBack(); - }} - > - - Remove Line Item - - - } - - - ); -}; - -export default NewLineItemScreen; diff --git a/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx b/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx deleted file mode 100644 index 7eee80fdf..000000000 --- a/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx +++ /dev/null @@ -1,243 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { - Text, - TouchableOpacity, - View, - ScrollView -} from 'react-native'; -import { ActivityIndicator } from 'react-native'; -import { - InputElementType, - RawBancontactCardRedirectData, - RawDataManager, -} from '@primer-io/react-native'; -import TextField from '../components/TextField'; -import { styles } from '../styles'; -import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; - -export interface RawCardDataScreenProps { - navigation: any; - clientSession: any; -} - -const rawDataManager = new RawDataManager(); - -const RawAdyenBancontactCardScreen = (props: any) => { - - const [isLoading, setIsLoading] = useState(false); - const [isCardFormValid, setIsCardFormValid] = useState(false); - const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [cardNumber, setCardNumber] = useState(""); - const [expiryDate, setExpiryDate] = useState(""); - const [cardholderName, setCardholderName] = useState(""); - const [metadataLog, setMetadataLog] = useState(""); - const [validationLog, setValidationLog] = useState(""); - - useEffect(() => { - initialize(); - }, []); - - const initialize = async () => { - await rawDataManager.configure({ - paymentMethodType: props.route.params.paymentMethodType, - onMetadataChange: (data => { - const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; - console.log(log); - setMetadataLog(log); - }), - onValidation: ((isVallid, errors) => { - let log = `\nonValidation:\nisValid: ${isVallid}\n`; - - if (errors) { - log += `errors:${JSON.stringify(errors, null, 2)}\n`; - } - - console.log(log); - setValidationLog(log); - setIsCardFormValid(isVallid); - }) - }) - const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); - setRequiredInputElementTypes(requiredInputElementTypes); - } - - const setRawData = ( - tmpCardNumber: string | null, - tmpExpiryDate: string | null, - tmpCardholderName: string | null - ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawBancontactCardRedirectData = { - cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", - cardholderName: cardholderName || "" - } - - if (tmpCardNumber) { - rawData.cardNumber = tmpCardNumber; - } - - if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } - } - - if (tmpCardholderName) { - rawData.cardholderName = tmpCardholderName; - } - - rawDataManager.setRawData(rawData); - } - - const renderInputs = () => { - if (!requiredInputElementTypes) { - return null; - } else { - return ( - - { - requiredInputElementTypes.map(et => { - if (et === InputElementType.CARD_NUMBER) { - return ( - { - setCardNumber(text); - setRawData(text, null, null); - }} - /> - ); - } else if (et === InputElementType.EXPIRY_DATE) { - return ( - { - setExpiryDate(text); - setRawData(null, text, null); - }} - /> - ); - } else if (et === InputElementType.CARDHOLDER_NAME) { - return ( - { - setCardholderName(text); - setRawData(null, null, text) - }} - /> - ); - } - }) - } - - ); - } - } - - const pay = async () => { - try { - await rawDataManager.submit(); - - } catch (err) { - console.error(err); - } - } - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - const renderPayButton = () => { - return ( - { - if (isCardFormValid) { - pay(); - } - }} - > - - Pay - - - ); - }; - - const renderEvents = () => { - return ( - - - - {metadataLog} - - - - - {validationLog} - - - - ) - } - - return ( - - {renderInputs()} - {renderPayButton()} - {renderEvents()} - {renderLoadingOverlay()} - - ); -}; - -export default RawAdyenBancontactCardScreen; diff --git a/ReactNativeExample/src/screens/RawCardDataScreen.tsx b/ReactNativeExample/src/screens/RawCardDataScreen.tsx deleted file mode 100644 index 09f05d3a2..000000000 --- a/ReactNativeExample/src/screens/RawCardDataScreen.tsx +++ /dev/null @@ -1,264 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { - Text, - TouchableOpacity, - View, - ScrollView -} from 'react-native'; -import { ActivityIndicator } from 'react-native'; -import { - InputElementType, - RawCardData, - RawDataManager, -} from '@primer-io/react-native'; -import TextField from '../components/TextField'; -import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; - -export interface RawCardDataScreenProps { - navigation: any; - clientSession: any; -} - -const rawDataManager = new RawDataManager(); - -const RawCardDataScreen = (props: any) => { - - const [isLoading, setIsLoading] = useState(false); - const [isCardFormValid, setIsCardFormValid] = useState(false); - const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [cardNumber, setCardNumber] = useState(""); - const [expiryDate, setExpiryDate] = useState(""); - const [cvv, setCvv] = useState(""); - const [cardholderName, setCardholderName] = useState(""); - const [metadataLog, setMetadataLog] = useState(""); - const [validationLog, setValidationLog] = useState(""); - - useEffect(() => { - initialize(); - }, []); - - const initialize = async () => { - await rawDataManager.configure({ - paymentMethodType: props.route.params.paymentMethodType, - onMetadataChange: (data => { - const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; - console.log(log); - setMetadataLog(log); - }), - onValidation: ((isVallid, errors) => { - let log = `\nonValidation:\nisValid: ${isVallid}\n`; - - if (errors) { - log += `errors:${JSON.stringify(errors, null, 2)}\n`; - } - - console.log(log); - setValidationLog(log); - setIsCardFormValid(isVallid); - }) - }); - - const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); - setRequiredInputElementTypes(requiredInputElementTypes); - } - - const setRawData = ( - tmpCardNumber: string | null, - tmpExpiryDate: string | null, - tmpCvv: string | null, - tmpCardholderName: string | null - ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawCardData = { - cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", - cvv: cvv || "", - cardholderName: cardholderName - } - - if (tmpCardNumber) { - rawData.cardNumber = tmpCardNumber; - } - - if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } - } - - if (tmpCvv) { - rawData.cvv = tmpCvv; - } - - if (tmpCardholderName) { - rawData.cardholderName = tmpCardholderName; - } - - rawDataManager.setRawData(rawData); - } - - const renderInputs = () => { - if (!requiredInputElementTypes) { - return null; - } else { - return ( - - { - requiredInputElementTypes.map(et => { - if (et === InputElementType.CARD_NUMBER) { - return ( - { - setCardNumber(text); - setRawData(text, null, null, null); - }} - /> - ); - } else if (et === InputElementType.EXPIRY_DATE) { - return ( - { - setExpiryDate(text); - setRawData(null, text, null, null); - }} - /> - ); - } else if (et === InputElementType.CVV) { - return ( - { - setCvv(text); - setRawData(null, null, text, null); - }} - /> - ); - } else if (et === InputElementType.CARDHOLDER_NAME) { - return ( - { - setCardholderName(text); - setRawData(null, null, null, text); - }} - /> - ); - } - }) - } - - ); - } - } - - const pay = async () => { - try { - await rawDataManager.submit(); - - } catch (err) { - console.error(err); - } - } - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - const renderPayButton = () => { - return ( - { - if (isCardFormValid) { - pay(); - } - }} - > - - Pay - - - ); - }; - - const renderEvents = () => { - return ( - - - - {metadataLog} - - - - - {validationLog} - - - - ) - } - - return ( - - {renderInputs()} - {renderPayButton()} - {renderEvents()} - {renderLoadingOverlay()} - - ); -}; - -export default RawCardDataScreen; diff --git a/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx b/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx deleted file mode 100644 index 2150bdbad..000000000 --- a/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx +++ /dev/null @@ -1,174 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { - Text, - TouchableOpacity, - View, - ScrollView -} from 'react-native'; -import { ActivityIndicator } from 'react-native'; -import { - InputElementType, - RawDataManager, - RawPhoneNumberData, -} from '@primer-io/react-native'; -import TextField from '../components/TextField'; -import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; - -const rawDataManager = new RawDataManager(); - -const RawPhoneNumberDataScreen = (props: any) => { - - const [isLoading, setIsLoading] = useState(false); - const [isCardFormValid, setIsCardFormValid] = useState(false); - const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [phoneNumber, setPhoneNumber] = useState(""); - const [metadataLog, setMetadataLog] = useState(""); - const [validationLog, setValidationLog] = useState(""); - - useEffect(() => { - initialize(); - }, []); - - const initialize = async () => { - await rawDataManager.configure({ - paymentMethodType: props.route.params.paymentMethodType, - onMetadataChange: (data => { - const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; - console.log(log); - setMetadataLog(log); - }), - onValidation: ((isVallid, errors) => { - let log = `\nonValidation:\nisValid: ${isVallid}\n`; - - if (errors) { - log += `errors:${JSON.stringify(errors, null, 2)}\n`; - } - - console.log(log); - setValidationLog(log); - setIsCardFormValid(isVallid); - }) - }) - const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); - setRequiredInputElementTypes(requiredInputElementTypes); - } - - const setRawData = (tmpPhoneNumber: string) => { - let rawData: RawPhoneNumberData = { - phoneNumber: tmpPhoneNumber - } - - rawDataManager.setRawData(rawData); - } - - const renderInputs = () => { - if (!requiredInputElementTypes) { - return null; - } else { - return ( - - { - requiredInputElementTypes.map(et => { - if (et === InputElementType.PHONE_NUMBER) { - return ( - { - setPhoneNumber(text); - setRawData(text); - }} - /> - ); - } - }) - } - - ); - } - } - - const pay = async () => { - try { - await rawDataManager.submit(); - - } catch (err) { - console.error(err); - } - } - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - const renderPayButton = () => { - return ( - { - if (isCardFormValid) { - pay(); - } - }} - > - - Pay - - - ); - }; - - const renderEvents = () => { - return ( - - - - {metadataLog} - - - - - {validationLog} - - - - ) - } - - return ( - - {renderInputs()} - {renderPayButton()} - {renderEvents()} - {renderLoadingOverlay()} - - ); -}; - -export default RawPhoneNumberDataScreen; diff --git a/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx b/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx deleted file mode 100644 index a7d92ba12..000000000 --- a/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx +++ /dev/null @@ -1,184 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { - FlatList, - Text, - TouchableOpacity, - View -} from 'react-native'; -import { ActivityIndicator } from 'react-native'; -import { - InputElementType, - RawDataManager, - RawRetailerData, -} from '@primer-io/react-native'; -import TextField from '../components/TextField'; -import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; - -const rawDataManager = new RawDataManager(); - -const RawRetailOutletScreen = (props: any) => { - - const [isLoading, setIsLoading] = useState(false); - const [isCardFormValid, setIsCardFormValid] = useState(false); - const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); - const [retailers, setRetailers] = useState(undefined); - const [selectedRetailOutletId, setSelectedRetailOutletId] = useState(undefined); - const [metadataLog, setMetadataLog] = useState(""); - const [validationLog, setValidationLog] = useState(""); - - useEffect(() => { - initialize(); - }, []); - - const initialize = async () => { - const response = await rawDataManager.configure({ - paymentMethodType: props.route.params.paymentMethodType, - onMetadataChange: (data => { - const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; - console.log(log); - setMetadataLog(log); - }), - onValidation: ((isVallid, errors) => { - let log = `\nonValidation:\nisValid: ${isVallid}\n`; - - if (errors) { - log += `errors:${JSON.stringify(errors, null, 2)}\n`; - } - - console.log(log); - setValidationLog(log); - setIsCardFormValid(isVallid); - }) - }); - - if (response?.initializationData) { - //@ts-ignore - const retailers: any[] = response.initializationData.result; - setRetailers(retailers); - } - - const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); - setRequiredInputElementTypes(requiredInputElementTypes); - } - - const setRawData = (tmpRetailOutletId: string) => { - let rawData: RawRetailerData = { - id: tmpRetailOutletId - } - - setSelectedRetailOutletId(tmpRetailOutletId); - - rawDataManager.setRawData(rawData); - } - - const renderInputs = () => { - if (!retailers) { - return null; - } else { - return ( - item.id} - renderItem={(data) => { - return ( - { - setRawData(data.item.id); - }} - > - - {data.item.name} - - - ) - }} - /> - ); - } - } - - const pay = async () => { - try { - await rawDataManager.submit(); - - } catch (err) { - console.error(err); - } - } - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - const renderPayButton = () => { - return ( - { - if (isCardFormValid) { - pay(); - } - }} - > - - Pay - - - ); - }; - - const renderEvents = () => { - return ( - - - - {metadataLog} - - - - - {validationLog} - - - - ) - } - - return ( - - {renderInputs()} - {renderPayButton()} - {renderEvents()} - {renderLoadingOverlay()} - - ); -}; - -export default RawRetailOutletScreen; diff --git a/ReactNativeExample/src/screens/ResultScreen.tsx b/ReactNativeExample/src/screens/ResultScreen.tsx deleted file mode 100644 index 3c4ca9d64..000000000 --- a/ReactNativeExample/src/screens/ResultScreen.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import * as React from 'react'; -import { - ScrollView, - Text, - useColorScheme, - View, -} from 'react-native'; - -import { - Colors, -} from 'react-native/Libraries/NewAppScreen'; - -const ResultScreen = (props: any) => { - const isDarkMode = useColorScheme() === 'dark'; - - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, - }; - - const paramsWithoutLogs: any = {}; - - if (props.route.params?.merchantCheckoutData) { - paramsWithoutLogs.merchantCheckoutData = props.route.params.merchantCheckoutData; - } - - if (props.route.params?.merchantCheckoutAdditionalInfo) { - paramsWithoutLogs.merchantCheckoutAdditionalInfo = props.route.params.merchantCheckoutAdditionalInfo; - } - - if (props.route.params?.merchantPayment) { - paramsWithoutLogs.merchantPayment = props.route.params.merchantPayment; - } - - if (props.route.params?.merchantPrimerError) { - paramsWithoutLogs.merchantPrimerError = props.route.params.merchantPrimerError; - } - - let logs: string | undefined = props.route.params?.logs; - - return ( - - - - - {JSON.stringify(paramsWithoutLogs, null, 4)} - - - - { - !logs ? null : - - - {logs} - - - } - - - - ); -}; - -export default ResultScreen; diff --git a/ReactNativeExample/src/screens/SettingsScreen.tsx b/ReactNativeExample/src/screens/SettingsScreen.tsx deleted file mode 100644 index 00929d265..000000000 --- a/ReactNativeExample/src/screens/SettingsScreen.tsx +++ /dev/null @@ -1,797 +0,0 @@ -import * as React from 'react'; -import { - ScrollView, - Text, - TouchableOpacity, - useColorScheme, - View, -} from 'react-native'; -import { - Colors, -} from 'react-native/Libraries/NewAppScreen'; -import { styles } from '../styles'; -import SegmentedControl from '@react-native-segmented-control/segmented-control'; -import { Picker } from "@react-native-picker/picker"; -import { Environment, makeEnvironmentFromIntVal, makePaymentHandlingFromIntVal, PaymentHandling } from '../network/Environment'; -import { appPaymentParameters, IClientSessionAddress, IClientSessionCustomer, IClientSessionLineItem, IClientSessionOrder, IClientSessionPaymentMethod, IClientSessionPaymentMethodOptions, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; -import { Switch } from 'react-native'; -import { FlatList } from 'react-native'; -import TextField from '../components/TextField'; -import type { NewLineItemScreenProps } from './NewLineItemSreen'; - -export interface AppPaymentParameters { - environment: Environment; - paymentHandling: PaymentHandling; - clientSessionRequestBody: IClientSessionRequestBody; - merchantName?: string; -} - -export let customApiKey: string | undefined; -export let customClientToken: string | undefined; - -// @ts-ignore -const SettingsScreen = ({ navigation }) => { - const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Sandbox); - const [apiKey, setApiKey] = React.useState(customApiKey); - const [clientToken, setClientToken] = React.useState(undefined); - const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); - const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); - const [currency, setCurrency] = React.useState("EUR"); - const [countryCode, setCountryCode] = React.useState("PT"); - const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); - - const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); - - const [isCustomerApplied, setIsCustomerApplied] = React.useState(appPaymentParameters.clientSessionRequestBody.customer !== undefined); - const [customerId, setCustomerId] = React.useState(appPaymentParameters.clientSessionRequestBody.customerId); - const [firstName, setFirstName] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.firstName); - const [lastName, setLastName] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.lastName); - const [email, setEmail] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.emailAddress); - const [phoneNumber, setPhoneNumber] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.mobileNumber); - const [nationalDocumentId, setNationalDocumentId] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.nationalDocumentId); - const [isAddressApplied, setIsAddressApplied] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress !== undefined); - const [addressLine1, setAddressLine1] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.addressLine1); - const [addressLine2, setAddressLine2] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.addressLine2); - const [postalCode, setPostalCode] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.postalCode); - const [city, setCity] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.city); - const [state, setState] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.state); - const [customerAddressCountryCode, setCustomerAddressCountryCode] = React.useState(appPaymentParameters.clientSessionRequestBody.customer?.billingAddress?.countryCode); - - const [isSurchargeApplied, setIsSurchargeApplied] = React.useState(true); - const [applePaySurcharge, setApplePaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.APPLE_PAY?.surcharge.amount); - const [googlePaySurcharge, setGooglePaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.GOOGLE_PAY?.surcharge.amount); - const [adyenGiropaySurcharge, setAdyenGiropaySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_GIROPAY?.surcharge.amount); - const [adyenIdealSurcharge, setAdyenIdealSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_IDEAL?.surcharge.amount); - const [adyenSofortSurcharge, setAdyenSofortySurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.ADYEN_SOFORT?.surcharge.amount); - const [visaSurcharge, setVisaSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.PAYMENT_CARD?.networks.VISA?.surcharge.amount); - const [masterCardSurcharge, setMasterCardSurcharge] = React.useState(appPaymentParameters.clientSessionRequestBody.paymentMethod?.options?.PAYMENT_CARD?.networks.MASTERCARD?.surcharge.amount); - - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.black : Colors.white - }; - - const renderEnvironmentSection = () => { - return ( - - - Environment - - { - const selectedIndex = event.nativeEvent.selectedSegmentIndex; - let selectedEnvironment = makeEnvironmentFromIntVal(selectedIndex); - setEnvironment(selectedEnvironment); - }} - /> - { - setApiKey(text); - customApiKey = text; - }} - /> - { - setClientToken(text); - }} - /> - - ) - } - - const renderPaymentHandlingSection = () => { - return ( - - - Payment Handling - - { - const selectedIndex = event.nativeEvent.selectedSegmentIndex; - let selectedPaymentHandling = makePaymentHandlingFromIntVal(selectedIndex); - setPaymentHandling(selectedPaymentHandling); - }} - /> - - ); - } - - const renderOrderSection = () => { - return ( - - - Order - - - - - Currency & Country Code - - - { - setCurrency(itemValue); - }} - > - - - - - - - - - - - - - { - setCountryCode(itemValue); - }} - > - - - - - - - - - - - - - - - - - - - {renderLineItems()} - - - { - setOrderId(text); - }} - /> - - - ); - } - - const renderLineItems = () => { - return ( - - - - Line Items - - - { - const newLineItemsScreenProps: NewLineItemScreenProps = { - onAddLineItem: (lineItem) => { - const currentLineItems = [...lineItems]; - currentLineItems.push(lineItem); - setLineItems(currentLineItems); - } - } - - navigation.navigate('NewLineItem', newLineItemsScreenProps); - }} - > - - +Add Line Item - - - - { - lineItems.map((item, index) => { - { - const newLineItemsScreenProps: NewLineItemScreenProps = { - lineItem: item, - onEditLineItem: (editedLineItem) => { - const currentLineItems = [...lineItems]; - const index = currentLineItems.indexOf(item, 0); - currentLineItems[index] = editedLineItem; - setLineItems(currentLineItems); - }, - onRemoveLineItem: (lineItem) => { - const currentLineItems = [...lineItems]; - const index = currentLineItems.indexOf(lineItem, 0); - if (index > -1) { - currentLineItems.splice(index, 1); - } - setLineItems(currentLineItems); - } - } - - navigation.navigate('NewLineItem', newLineItemsScreenProps); - }} - > - {item.description} {`x${item.quantity}`} - - {item.amount} - - }) - } - - Total - - {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} - - - ); - } - - const renderRequiredSettings = () => { - return ( - - - Required Settings - - - The settings below cannot be left blank. - - - {renderEnvironmentSection()} - - {renderPaymentHandlingSection()} - - {renderOrderSection()} - - ); - } - - const renderSurchargeSection = () => { - return ( - - - - Surcharge - - - { - setIsSurchargeApplied(val); - }} - /> - - { - !isSurchargeApplied ? null : - - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setApplePaySurcharge(tmpSurcharge); - } else { - setApplePaySurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setGooglePaySurcharge(tmpSurcharge); - } else { - setGooglePaySurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setAdyenGiropaySurcharge(tmpSurcharge); - } else { - setAdyenGiropaySurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setAdyenIdealSurcharge(tmpSurcharge); - } else { - setAdyenIdealSurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setAdyenSofortySurcharge(tmpSurcharge); - } else { - setAdyenSofortySurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setVisaSurcharge(tmpSurcharge); - } else { - setVisaSurcharge(undefined); - } - }} - /> - { - const tmpSurcharge = Number(text); - if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { - setMasterCardSurcharge(tmpSurcharge); - } else { - setMasterCardSurcharge(undefined); - } - }} - /> - - } - - - ); - } - - const renderCustomerSection = () => { - return ( - - - - Customer - - - { - setIsCustomerApplied(val); - }} - /> - - - { - !isCustomerApplied ? null : - - { - setCustomerId(text); - }} - /> - { - setFirstName(text); - }} - /> - { - setLastName(text); - }} - /> - { - setEmail(text); - }} - /> - { - setPhoneNumber(text); - }} - /> - { - setNationalDocumentId(text); - }} - /> - - - - - Address - - - { - setIsAddressApplied(val); - }} - /> - - { - !isAddressApplied ? null : - - { - setAddressLine1(text); - }} - /> - { - setAddressLine2(text); - }} - /> - { - setPostalCode(text); - }} - /> - { - setCity(text); - }} - /> - { - setState(text); - }} - /> - { - setCustomerAddressCountryCode(text); - }} - /> - - } - - - - } - - - ); - }; - - const renderMerchantSection = () => { - return ( - - - Merchant Name - - { - setMerchantName(text); - }} - /> - - ); - } - - const renderOptionalSettings = () => { - return ( - - - Optional Settings - - - These settings are not required, however some payment methods may need them. - - {renderMerchantSection()} - {renderCustomerSection()} - {renderSurchargeSection()} - - ); - } - - const renderActions = () => { - return ( - - {/* { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('Checkout'); - }} - > - - Primer SDK - - */} - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUC'); - }} - > - - Headless Universal Checkout - - - - ); - } - - const updateAppPaymentParameters = () => { - appPaymentParameters.merchantName = merchantName; - appPaymentParameters.environment = environment; - appPaymentParameters.paymentHandling = paymentHandling; - - const currentClientSessionRequestBody: IClientSessionRequestBody = { ...appPaymentParameters.clientSessionRequestBody }; - currentClientSessionRequestBody.currencyCode = currency; - - const currentClientSessionOrder: IClientSessionOrder = { ...currentClientSessionRequestBody.order }; - currentClientSessionOrder.countryCode = countryCode; - currentClientSessionOrder.lineItems = lineItems - - currentClientSessionRequestBody.order = currentClientSessionOrder; - - currentClientSessionRequestBody.customerId = customerId; - - let currentCustomer: IClientSessionCustomer | undefined = { ...appPaymentParameters.clientSessionRequestBody.customer }; - if (isCustomerApplied) { - currentCustomer.firstName = firstName; - currentCustomer.lastName = lastName; - currentCustomer.emailAddress = email; - currentCustomer.mobileNumber = phoneNumber; - - let currentAddress: IClientSessionAddress | undefined = { ...appPaymentParameters.clientSessionRequestBody.customer?.billingAddress } - if (isAddressApplied) { - currentAddress.firstName = firstName; - currentAddress.lastName = lastName; - currentAddress.addressLine1 = addressLine1; - currentAddress.addressLine2 = addressLine2; - currentAddress.postalCode = postalCode; - currentAddress.city = city; - currentAddress.state = state; - currentAddress.countryCode = customerAddressCountryCode; - - } else { - currentAddress = undefined; - } - - currentCustomer.billingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; - currentCustomer.shippingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; - - } else { - currentClientSessionRequestBody.customerId = undefined; - currentCustomer = undefined; - } - - currentClientSessionRequestBody.customer = Object.keys(currentCustomer || {}).length === 0 ? undefined : currentCustomer; - - const currentPaymentMethod: IClientSessionPaymentMethod = { ...currentClientSessionRequestBody.paymentMethod } - let currentPaymentMethodOptions: IClientSessionPaymentMethodOptions | undefined = { ...currentPaymentMethod.options } - - if (isSurchargeApplied) { - if (applePaySurcharge) { - currentPaymentMethodOptions.APPLE_PAY = { - surcharge: { - amount: applePaySurcharge - } - } - } else { - currentPaymentMethodOptions.APPLE_PAY = undefined; - } - - if (googlePaySurcharge) { - currentPaymentMethodOptions.GOOGLE_PAY = { - surcharge: { - amount: googlePaySurcharge - } - } - } else { - currentPaymentMethodOptions.GOOGLE_PAY = undefined; - } - - if (adyenGiropaySurcharge) { - currentPaymentMethodOptions.ADYEN_GIROPAY = { - surcharge: { - amount: adyenGiropaySurcharge - } - } - } else { - currentPaymentMethodOptions.ADYEN_GIROPAY = undefined; - } - - if (visaSurcharge) { - currentPaymentMethodOptions.PAYMENT_CARD = { - networks: { - VISA: { - surcharge: { - amount: visaSurcharge - } - } - } - } - } else { - currentPaymentMethodOptions.PAYMENT_CARD = undefined; - } - } else { - currentPaymentMethodOptions = undefined; - } - - - currentPaymentMethod.options = Object.keys(currentPaymentMethodOptions || {}).length === 0 ? undefined : currentPaymentMethodOptions; - currentClientSessionRequestBody.paymentMethod = Object.keys(currentPaymentMethod).length === 0 ? undefined : currentPaymentMethod; - - appPaymentParameters.clientSessionRequestBody = currentClientSessionRequestBody; - } - - return ( - - {/*
*/} - - {renderRequiredSettings()} - {renderOptionalSettings()} - - - - {renderActions()} - - - ); -}; - -export default SettingsScreen; diff --git a/ReactNativeExample/src/styles.tsx b/ReactNativeExample/src/styles.tsx deleted file mode 100644 index 1cad1bae3..000000000 --- a/ReactNativeExample/src/styles.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { StyleSheet } from "react-native"; - -export const styles = StyleSheet.create({ - sectionContainer: { - marginTop: 32, - // paddingHorizontal: 24, - }, - sectionTitle: { - fontSize: 24, - fontWeight: '600', - marginBottom: 12 - }, - heading1: { - fontSize: 18, - fontWeight: '600', - }, - heading2: { - fontSize: 14, - fontWeight: '700', - }, - heading3: { - fontSize: 17, - fontWeight: '400', - }, - sectionDescription: { - marginTop: 8, - fontSize: 18, - fontWeight: '400', - }, - highlight: { - fontWeight: '700', - }, - button: { - height: 50, - justifyContent: 'center', - alignItems: 'center', - borderRadius: 4 - }, - buttonText: { - fontSize: 17 - }, - textInput: { - height: 40, - paddingHorizontal: 4, - borderColor: 'black', - borderWidth: 1, - borderRadius: 4 - }, - textFieldTitle: { - fontSize: 14, - color: 'black', - fontWeight: '600' - } - }); \ No newline at end of file diff --git a/ReactNativeExample/yarn.lock b/ReactNativeExample/yarn.lock deleted file mode 100644 index 873afd05c..000000000 --- a/ReactNativeExample/yarn.lock +++ /dev/null @@ -1,7307 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ampproject/remapping@^2.1.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" - integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== - dependencies: - "@jridgewell/gen-mapping" "^0.1.0" - "@jridgewell/trace-mapping" "^0.3.9" - -"@babel/code-frame@7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== - dependencies: - "@babel/highlight" "^7.10.4" - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" - integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== - dependencies: - "@babel/highlight" "^7.18.6" - -"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.19.4", "@babel/compat-data@^7.20.0": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.1.tgz#f2e6ef7790d8c8dbf03d379502dcc246dcce0b30" - integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== - -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.7.5": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.19.6.tgz#7122ae4f5c5a37c0946c066149abd8e75f81540f" - integrity sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg== - dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.19.6" - "@babel/helper-compilation-targets" "^7.19.3" - "@babel/helper-module-transforms" "^7.19.6" - "@babel/helpers" "^7.19.4" - "@babel/parser" "^7.19.6" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.19.6" - "@babel/types" "^7.19.4" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.1" - semver "^6.3.0" - -"@babel/generator@^7.14.0", "@babel/generator@^7.19.6", "@babel/generator@^7.20.1": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.1.tgz#ef32ecd426222624cbd94871a7024639cf61a9fa" - integrity sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg== - dependencies: - "@babel/types" "^7.20.0" - "@jridgewell/gen-mapping" "^0.3.2" - jsesc "^2.5.1" - -"@babel/helper-annotate-as-pure@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" - integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz#acd4edfd7a566d1d51ea975dff38fd52906981bb" - integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== - dependencies: - "@babel/helper-explode-assignable-expression" "^7.18.6" - "@babel/types" "^7.18.9" - -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.19.0", "@babel/helper-compilation-targets@^7.19.3": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" - integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== - dependencies: - "@babel/compat-data" "^7.20.0" - "@babel/helper-validator-option" "^7.18.6" - browserslist "^4.21.3" - semver "^6.3.0" - -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz#bfd6904620df4e46470bae4850d66be1054c404b" - integrity sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.19.0" - "@babel/helper-member-expression-to-functions" "^7.18.9" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-replace-supers" "^7.18.9" - "@babel/helper-split-export-declaration" "^7.18.6" - -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz#7976aca61c0984202baca73d84e2337a5424a41b" - integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - regexpu-core "^5.1.0" - -"@babel/helper-define-polyfill-provider@^0.3.3": - version "0.3.3" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz#8612e55be5d51f0cd1f36b4a5a83924e89884b7a" - integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== - dependencies: - "@babel/helper-compilation-targets" "^7.17.7" - "@babel/helper-plugin-utils" "^7.16.7" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - semver "^6.1.2" - -"@babel/helper-environment-visitor@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" - integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== - -"@babel/helper-explode-assignable-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz#41f8228ef0a6f1a036b8dfdfec7ce94f9a6bc096" - integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" - integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== - dependencies: - "@babel/template" "^7.18.10" - "@babel/types" "^7.19.0" - -"@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-member-expression-to-functions@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" - integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== - dependencies: - "@babel/types" "^7.18.9" - -"@babel/helper-module-imports@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" - integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-module-transforms@^7.19.6": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz#6c52cc3ac63b70952d33ee987cbee1c9368b533f" - integrity sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw== - dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-simple-access" "^7.19.4" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/helper-validator-identifier" "^7.19.1" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.19.6" - "@babel/types" "^7.19.4" - -"@babel/helper-optimise-call-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" - integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf" - integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== - -"@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" - integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-wrap-function" "^7.18.9" - "@babel/types" "^7.18.9" - -"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" - integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== - dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-member-expression-to-functions" "^7.18.9" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/traverse" "^7.19.1" - "@babel/types" "^7.19.0" - -"@babel/helper-simple-access@^7.19.4": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz#be553f4951ac6352df2567f7daa19a0ee15668e7" - integrity sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg== - dependencies: - "@babel/types" "^7.19.4" - -"@babel/helper-skip-transparent-expression-wrappers@^7.18.9": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" - integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== - dependencies: - "@babel/types" "^7.20.0" - -"@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-string-parser@^7.19.4": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" - integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== - -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/helper-validator-option@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" - integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== - -"@babel/helper-wrap-function@^7.18.9": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz#89f18335cff1152373222f76a4b37799636ae8b1" - integrity sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg== - dependencies: - "@babel/helper-function-name" "^7.19.0" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.19.0" - "@babel/types" "^7.19.0" - -"@babel/helpers@^7.19.4": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.1.tgz#2ab7a0fcb0a03b5bf76629196ed63c2d7311f4c9" - integrity sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg== - dependencies: - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.1" - "@babel/types" "^7.20.0" - -"@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.1.tgz#3e045a92f7b4623cafc2425eddcb8cf2e54f9cc5" - integrity sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw== - -"@babel/plugin-proposal-async-generator-functions@^7.0.0": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" - integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== - dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-remap-async-to-generator" "^7.18.9" - "@babel/plugin-syntax-async-generators" "^7.8.4" - -"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-proposal-export-default-from@^7.0.0": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206" - integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/plugin-syntax-export-default-from" "^7.18.6" - -"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" - integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - -"@babel/plugin-proposal-object-rest-spread@^7.0.0": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz#a8fc86e8180ff57290c91a75d83fe658189b642d" - integrity sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q== - dependencies: - "@babel/compat-data" "^7.19.4" - "@babel/helper-compilation-targets" "^7.19.3" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.18.8" - -"@babel/plugin-proposal-optional-catch-binding@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" - integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - -"@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" - integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== - dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - -"@babel/plugin-syntax-dynamic-import@^7.0.0": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" - integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz#8df076711a4818c4ce4f23e61d622b0ba2ff84bc" - integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" - integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-syntax-import-meta@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" - integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.0.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-typescript@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" - integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-arrow-functions@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" - integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-async-to-generator@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" - integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== - dependencies: - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-remap-async-to-generator" "^7.18.6" - -"@babel/plugin-transform-block-scoped-functions@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" - integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-block-scoping@^7.0.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz#91fe5e6ffc9ba13cb6c95ed7f0b1204f68c988c5" - integrity sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-classes@^7.0.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz#0e61ec257fba409c41372175e7c1e606dc79bb20" - integrity sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-compilation-targets" "^7.19.0" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.19.0" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-replace-supers" "^7.18.9" - "@babel/helper-split-export-declaration" "^7.18.6" - globals "^11.1.0" - -"@babel/plugin-transform-computed-properties@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" - integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - -"@babel/plugin-transform-destructuring@^7.0.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz#712829ef4825d9cc04bb379de316f981e9a6f648" - integrity sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-exponentiation-operator@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz#421c705f4521888c65e91fdd1af951bfefd4dacd" - integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== - dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" - integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/plugin-syntax-flow" "^7.18.6" - -"@babel/plugin-transform-for-of@^7.0.0": - version "7.18.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" - integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-function-name@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" - integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== - dependencies: - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-function-name" "^7.18.9" - "@babel/helper-plugin-utils" "^7.18.9" - -"@babel/plugin-transform-literals@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" - integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - -"@babel/plugin-transform-member-expression-literals@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" - integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" - integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== - dependencies: - "@babel/helper-module-transforms" "^7.19.6" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-simple-access" "^7.19.4" - -"@babel/plugin-transform-named-capturing-groups-regex@^7.0.0": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz#ec7455bab6cd8fb05c525a94876f435a48128888" - integrity sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.19.0" - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-object-super@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" - integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-replace-supers" "^7.18.6" - -"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.18.8": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz#9a5aa370fdcce36f110455e9369db7afca0f9eeb" - integrity sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-property-literals@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" - integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-react-display-name@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" - integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-react-jsx-self@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz#3849401bab7ae8ffa1e3e5687c94a753fc75bda7" - integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-react-jsx-source@^7.0.0": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz#88578ae8331e5887e8ce28e4c9dc83fb29da0b86" - integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - -"@babel/plugin-transform-react-jsx@^7.0.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" - integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/plugin-syntax-jsx" "^7.18.6" - "@babel/types" "^7.19.0" - -"@babel/plugin-transform-runtime@^7.0.0": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz#9d2a9dbf4e12644d6f46e5e75bfbf02b5d6e9194" - integrity sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw== - dependencies: - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.19.0" - babel-plugin-polyfill-corejs2 "^0.3.3" - babel-plugin-polyfill-corejs3 "^0.6.0" - babel-plugin-polyfill-regenerator "^0.4.1" - semver "^6.3.0" - -"@babel/plugin-transform-shorthand-properties@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" - integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-spread@^7.0.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" - integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" - -"@babel/plugin-transform-sticky-regex@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz#c6706eb2b1524028e317720339583ad0f444adcc" - integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-template-literals@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" - integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - -"@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz#2c7ec62b8bfc21482f3748789ba294a46a375169" - integrity sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.19.0" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/plugin-syntax-typescript" "^7.20.0" - -"@babel/plugin-transform-unicode-regex@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz#194317225d8c201bbae103364ffe9e2cea36cdca" - integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/preset-flow@^7.13.13": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.18.6.tgz#83f7602ba566e72a9918beefafef8ef16d2810cb" - integrity sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-validator-option" "^7.18.6" - "@babel/plugin-transform-flow-strip-types" "^7.18.6" - -"@babel/preset-typescript@^7.13.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz#ce64be3e63eddc44240c6358daefac17b3186399" - integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-validator-option" "^7.18.6" - "@babel/plugin-transform-typescript" "^7.18.6" - -"@babel/register@^7.13.16": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.18.9.tgz#1888b24bc28d5cc41c412feb015e9ff6b96e439c" - integrity sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw== - dependencies: - clone-deep "^4.0.1" - find-cache-dir "^2.0.0" - make-dir "^2.1.0" - pirates "^4.0.5" - source-map-support "^0.5.16" - -"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.1.tgz#1148bb33ab252b165a06698fde7576092a78b4a9" - integrity sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg== - dependencies: - regenerator-runtime "^0.13.10" - -"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" - integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.18.10" - "@babel/types" "^7.18.10" - -"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.19.6", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.1.tgz#9b15ccbf882f6d107eeeecf263fbcdd208777ec8" - integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.1" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.19.0" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.20.1" - "@babel/types" "^7.20.0" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.0.tgz#52c94cf8a7e24e89d2a194c25c35b17a64871479" - integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg== - dependencies: - "@babel/helper-string-parser" "^7.19.4" - "@babel/helper-validator-identifier" "^7.19.1" - to-fast-properties "^2.0.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@cnakazawa/watch@^1.0.3": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" - integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== - dependencies: - exec-sh "^0.3.2" - minimist "^1.2.0" - -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== - dependencies: - ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" - -"@hapi/hoek@^9.0.0": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" - integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== - -"@hapi/topo@^5.0.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" - integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== - dependencies: - "@hapi/hoek" "^9.0.0" - -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== - dependencies: - "@humanwhocodes/object-schema" "^1.2.0" - debug "^4.1.1" - minimatch "^3.0.4" - -"@humanwhocodes/object-schema@^1.2.0": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2" - integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^26.6.2" - jest-util "^26.6.2" - slash "^3.0.0" - -"@jest/core@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" - integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== - dependencies: - "@jest/console" "^26.6.2" - "@jest/reporters" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-changed-files "^26.6.2" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-resolve-dependencies "^26.6.3" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - jest-watcher "^26.6.2" - micromatch "^4.0.2" - p-each-series "^2.1.0" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" - -"@jest/create-cache-key-function@^29.0.3": - version "29.2.1" - resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz#5f168051001ffea318b720cd6062daaf0b074913" - integrity sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ== - dependencies: - "@jest/types" "^29.2.1" - -"@jest/environment@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c" - integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== - dependencies: - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - -"@jest/fake-timers@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad" - integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== - dependencies: - "@jest/types" "^26.6.2" - "@sinonjs/fake-timers" "^6.0.1" - "@types/node" "*" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-util "^26.6.2" - -"@jest/globals@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a" - integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/types" "^26.6.2" - expect "^26.6.2" - -"@jest/reporters@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" - integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.4" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^4.0.3" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.0.2" - jest-haste-map "^26.6.2" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^7.0.0" - optionalDependencies: - node-notifier "^8.0.0" - -"@jest/schemas@^29.0.0": - version "29.0.0" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a" - integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== - dependencies: - "@sinclair/typebox" "^0.24.1" - -"@jest/source-map@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535" - integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== - dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.4" - source-map "^0.6.0" - -"@jest/test-result@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18" - integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== - dependencies: - "@jest/console" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" - integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== - dependencies: - "@jest/test-result" "^26.6.2" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" - -"@jest/transform@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b" - integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^26.6.2" - babel-plugin-istanbul "^6.0.0" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-regex-util "^26.0.0" - jest-util "^26.6.2" - micromatch "^4.0.2" - pirates "^4.0.1" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" - -"@jest/types@^29.2.1": - version "29.2.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.2.1.tgz#ec9c683094d4eb754e41e2119d8bdaef01cf6da0" - integrity sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw== - dependencies: - "@jest/schemas" "^29.0.0" - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^17.0.8" - chalk "^4.0.0" - -"@jridgewell/gen-mapping@^0.1.0": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" - integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== - dependencies: - "@jridgewell/set-array" "^1.0.0" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@jridgewell/gen-mapping@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" - integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== - dependencies: - "@jridgewell/set-array" "^1.0.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - -"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" - integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== - -"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - -"@jridgewell/trace-mapping@^0.3.9": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" - integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.3": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@react-native-community/cli-clean@^9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018" - integrity sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - prompts "^2.4.0" - -"@react-native-community/cli-config@^9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-config/-/cli-config-9.2.1.tgz#54eb026d53621ccf3a9df8b189ac24f6e56b8750" - integrity sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - cosmiconfig "^5.1.0" - deepmerge "^3.2.0" - glob "^7.1.3" - joi "^17.2.1" - -"@react-native-community/cli-debugger-ui@^9.0.0": - version "9.0.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz#ea5c5dad6008bccd840d858e160d42bb2ced8793" - integrity sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA== - dependencies: - serve-static "^1.13.1" - -"@react-native-community/cli-doctor@^9.2.1": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-9.3.0.tgz#8817a3fd564453467def5b5bc8aecdc4205eff50" - integrity sha512-/fiuG2eDGC2/OrXMOWI5ifq4X1gdYTQhvW2m0TT5Lk1LuFiZsbTCp1lR+XILKekuTvmYNjEGdVpeDpdIWlXdEA== - dependencies: - "@react-native-community/cli-config" "^9.2.1" - "@react-native-community/cli-platform-ios" "^9.3.0" - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - command-exists "^1.2.8" - envinfo "^7.7.2" - execa "^1.0.0" - hermes-profile-transformer "^0.0.6" - ip "^1.1.5" - node-stream-zip "^1.9.1" - ora "^5.4.1" - prompts "^2.4.0" - semver "^6.3.0" - strip-ansi "^5.2.0" - sudo-prompt "^9.0.0" - wcwidth "^1.0.1" - -"@react-native-community/cli-hermes@^9.2.1": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-9.3.0.tgz#1707bf9b0bcbaca1386c24bd32fbcfb598d86eb0" - integrity sha512-d5Zf/AcaW2EYSkS/pz/lrzjI90WvcDAJxk5fz/YK7JWGDqUrGP7IwojiOl3wBJiIiTu8M5MQelyxhbPT1AHDsg== - dependencies: - "@react-native-community/cli-platform-android" "^9.3.0" - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - hermes-profile-transformer "^0.0.6" - ip "^1.1.5" - -"@react-native-community/cli-platform-android@9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz#cd73cb6bbaeb478cafbed10bd12dfc01b484d488" - integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - fs-extra "^8.1.0" - glob "^7.1.3" - logkitty "^0.7.1" - slash "^3.0.0" - -"@react-native-community/cli-platform-android@^9.3.0": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.3.0.tgz#9f84c2c2ceec6d097ee44ceb5e5533e371218837" - integrity sha512-4BU6+8tXP450VexoeVdc7rl+H6kz0CnMIFzyY9zcLrwl34CHul2RKLZ/zmVqVVO2sLAYv+HI5LkPUBZD5UeDcg== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - fs-extra "^8.1.0" - glob "^7.1.3" - logkitty "^0.7.1" - slash "^3.0.0" - -"@react-native-community/cli-platform-ios@9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz#d90740472216ffae5527dfc5f49063ede18a621f" - integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - glob "^7.1.3" - ora "^5.4.1" - -"@react-native-community/cli-platform-ios@^9.3.0": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.3.0.tgz#45abde2a395fddd7cf71e8b746c1dc1ee2260f9a" - integrity sha512-nihTX53BhF2Q8p4B67oG3RGe1XwggoGBrMb6vXdcu2aN0WeXJOXdBLgR900DAA1O8g7oy1Sudu6we+JsVTKnjw== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - glob "^7.1.3" - ora "^5.4.1" - -"@react-native-community/cli-plugin-metro@^9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz#0ec207e78338e0cc0a3cbe1b43059c24afc66158" - integrity sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ== - dependencies: - "@react-native-community/cli-server-api" "^9.2.1" - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - metro "0.72.3" - metro-config "0.72.3" - metro-core "0.72.3" - metro-react-native-babel-transformer "0.72.3" - metro-resolver "0.72.3" - metro-runtime "0.72.3" - readline "^1.3.0" - -"@react-native-community/cli-server-api@^9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz#41ac5916b21d324bccef447f75600c03b2f54fbe" - integrity sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw== - dependencies: - "@react-native-community/cli-debugger-ui" "^9.0.0" - "@react-native-community/cli-tools" "^9.2.1" - compression "^1.7.1" - connect "^3.6.5" - errorhandler "^1.5.0" - nocache "^3.0.1" - pretty-format "^26.6.2" - serve-static "^1.13.1" - ws "^7.5.1" - -"@react-native-community/cli-tools@^9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz#c332324b1ea99f9efdc3643649bce968aa98191c" - integrity sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ== - dependencies: - appdirsjs "^1.2.4" - chalk "^4.1.2" - find-up "^5.0.0" - mime "^2.4.1" - node-fetch "^2.6.0" - open "^6.2.0" - ora "^5.4.1" - semver "^6.3.0" - shell-quote "^1.7.3" - -"@react-native-community/cli-types@^9.1.0": - version "9.1.0" - resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-9.1.0.tgz#dcd6a0022f62790fe1f67417f4690db938746aab" - integrity sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g== - dependencies: - joi "^17.2.1" - -"@react-native-community/cli@9.2.1": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-9.2.1.tgz#15cc32531fc323d4232d57b1f2d7c571816305ac" - integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ== - dependencies: - "@react-native-community/cli-clean" "^9.2.1" - "@react-native-community/cli-config" "^9.2.1" - "@react-native-community/cli-debugger-ui" "^9.0.0" - "@react-native-community/cli-doctor" "^9.2.1" - "@react-native-community/cli-hermes" "^9.2.1" - "@react-native-community/cli-plugin-metro" "^9.2.1" - "@react-native-community/cli-server-api" "^9.2.1" - "@react-native-community/cli-tools" "^9.2.1" - "@react-native-community/cli-types" "^9.1.0" - chalk "^4.1.2" - commander "^9.4.0" - execa "^1.0.0" - find-up "^4.1.0" - fs-extra "^8.1.0" - graceful-fs "^4.1.3" - prompts "^2.4.0" - semver "^6.3.0" - -"@react-native-community/eslint-config@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz#35dcc529a274803fc4e0a6b3d6c274551fb91774" - integrity sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg== - dependencies: - "@react-native-community/eslint-plugin" "^1.1.0" - "@typescript-eslint/eslint-plugin" "^3.1.0" - "@typescript-eslint/parser" "^3.1.0" - babel-eslint "^10.1.0" - eslint-config-prettier "^6.10.1" - eslint-plugin-eslint-comments "^3.1.2" - eslint-plugin-flowtype "2.50.3" - eslint-plugin-jest "22.4.1" - eslint-plugin-prettier "3.1.2" - eslint-plugin-react "^7.20.0" - eslint-plugin-react-hooks "^4.0.4" - eslint-plugin-react-native "^3.8.1" - prettier "^2.0.2" - -"@react-native-community/eslint-plugin@^1.1.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9" - integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg== - -"@react-native-masked-view/masked-view@^0.2.8": - version "0.2.8" - resolved "https://registry.yarnpkg.com/@react-native-masked-view/masked-view/-/masked-view-0.2.8.tgz#34405a4361882dae7c81b1b771fe9f5fbd545a97" - integrity sha512-+1holBPDF1yi/y0uc1WB6lA5tSNHhM7PpTMapT3ypvSnKQ9+C6sy/zfjxNxRA/llBQ1Ci6f94EaK56UCKs5lTA== - -"@react-native-picker/picker@^2.4.8": - version "2.4.8" - resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.4.8.tgz#a1a21f3d6ecadedbc3f0b691a444ddd7baa081f8" - integrity sha512-5NQ5XPo1B03YNqKFrV6h9L3CQaHlB80wd4ETHUEABRP2iLh7FHLVObX2GfziD+K/VJb8G4KZcZ23NFBFP1f7bg== - -"@react-native-segmented-control/segmented-control@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@react-native-segmented-control/segmented-control/-/segmented-control-2.4.0.tgz#0a88f22ad2c0fe07ecc002ee1e5d62c55a3dd0ae" - integrity sha512-2s1AaT6xk/Do5s6u7ioCXucqesAt02NQlLKBOM28dJWI7PTH9o89x6AwsGHIeMkTe4nQ6iENiJKzO7Y3SGG9Ew== - -"@react-native/assets@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@react-native/assets/-/assets-1.0.0.tgz#c6f9bf63d274bafc8e970628de24986b30a55c8e" - integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ== - -"@react-native/normalize-color@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567" - integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw== - -"@react-native/polyfills@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@react-native/polyfills/-/polyfills-2.0.0.tgz#4c40b74655c83982c8cf47530ee7dc13d957b6aa" - integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ== - -"@react-navigation/core@^6.4.0": - version "6.4.0" - resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.4.0.tgz#c44d33a8d8ef010a102c7f831fc8add772678509" - integrity sha512-tpc0Ak/DiHfU3LlYaRmIY7vI4sM/Ru0xCet6runLUh9aABf4wiLgxyFJ5BtoWq6xFF8ymYEA/KWtDhetQ24YiA== - dependencies: - "@react-navigation/routers" "^6.1.3" - escape-string-regexp "^4.0.0" - nanoid "^3.1.23" - query-string "^7.0.0" - react-is "^16.13.0" - use-latest-callback "^0.1.5" - -"@react-navigation/elements@^1.3.6": - version "1.3.6" - resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.6.tgz#fa700318528db93f05144b1be4b691b9c1dd1abe" - integrity sha512-pNJ8R9JMga6SXOw6wGVN0tjmE6vegwPmJBL45SEMX2fqTfAk2ykDnlJHodRpHpAgsv0DaI8qX76z3A+aqKSU0w== - -"@react-navigation/native-stack@^6.9.1": - version "6.9.1" - resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.1.tgz#6013300e4cd0b33e242aa18593e4dff7db2ab3d1" - integrity sha512-aOuJP97ge6NRz8wH6sDKfLTfdygGmraYh0apKrrVbGvMnflbPX4kpjQiAQcUPUpMeas0betH/Su8QubNL8HEkg== - dependencies: - "@react-navigation/elements" "^1.3.6" - warn-once "^0.1.0" - -"@react-navigation/native@^6.0.13": - version "6.0.13" - resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-6.0.13.tgz#ec504120e193ea6a7f24ffa765a1338be5a3160a" - integrity sha512-CwaJcAGbhv3p3ECablxBkw8QBCGDWXqVRwQ4QbelajNW623m3sNTC9dOF6kjp8au6Rg9B5e0KmeuY0xWbPk79A== - dependencies: - "@react-navigation/core" "^6.4.0" - escape-string-regexp "^4.0.0" - fast-deep-equal "^3.1.3" - nanoid "^3.1.23" - -"@react-navigation/routers@^6.1.3": - version "6.1.3" - resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-6.1.3.tgz#1df51959e9a67c44367462e8b929b7360a5d2555" - integrity sha512-idJotMEzHc3haWsCh7EvnnZMKxvaS4YF/x2UyFBkNFiEFUaEo/1ioQU6qqmVLspdEv4bI/dLm97hQo7qD8Yl7Q== - dependencies: - nanoid "^3.1.23" - -"@sideway/address@^4.1.3": - version "4.1.4" - resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0" - integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw== - dependencies: - "@hapi/hoek" "^9.0.0" - -"@sideway/formula@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.0.tgz#fe158aee32e6bd5de85044be615bc08478a0a13c" - integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg== - -"@sideway/pinpoint@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df" - integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== - -"@sinclair/typebox@^0.24.1": - version "0.24.51" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" - integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== - -"@sinonjs/commons@^1.7.0": - version "1.8.4" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.4.tgz#d1f2d80f1bd0f2520873f161588bd9b7f8567120" - integrity sha512-RpmQdHVo8hCEHDVpO39zToS9jOhR6nw+/lQAzRNq9ErrGV9IeHM71XCn68svVl/euFeVW6BWX4p35gkhbOcSIQ== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" - integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== - dependencies: - "@sinonjs/commons" "^1.7.0" - -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - -"@tsconfig/react-native@^2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-2.0.2.tgz#ac9b8ceb1de91e2f23ab89f915490a1a4afd65a0" - integrity sha512-OY+qydDk8Xw+VONvAFB6WTZAi3OP/KSQWNIeuJgkGFHGV3epw8qlctJQ35+fKGG4919nGbNS9ZI0JuZl1y8w2g== - -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": - version "7.1.19" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" - integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" - integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.1" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" - integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.18.2" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.2.tgz#235bf339d17185bdec25e024ca19cce257cc7309" - integrity sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg== - dependencies: - "@babel/types" "^7.3.0" - -"@types/eslint-visitor-keys@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" - integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== - -"@types/graceful-fs@^4.1.2": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" - integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== - -"@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/jest@^26.0.23": - version "26.0.24" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" - integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== - dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" - -"@types/json-schema@^7.0.3", "@types/json-schema@^7.0.9": - version "7.0.11" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" - integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== - -"@types/node@*": - version "18.11.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4" - integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg== - -"@types/normalize-package-data@^2.4.0": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" - integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== - -"@types/prettier@^2.0.0": - version "2.7.1" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e" - integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== - -"@types/prop-types@*": - version "15.7.5" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" - integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== - -"@types/react-native@^0.70.6": - version "0.70.6" - resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.70.6.tgz#0d1bc3014111f64f13e0df643aec2ab03f021fdb" - integrity sha512-ynQ2jj0km9d7dbnyKqVdQ6Nti7VQ8SLTA/KKkkS5+FnvGyvij2AOo1/xnkBR/jnSNXuzrvGVzw2n0VWfppmfKw== - dependencies: - "@types/react" "*" - -"@types/react-test-renderer@^18.0.0": - version "18.0.0" - resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.0.tgz#7b7f69ca98821ea5501b21ba24ea7b6139da2243" - integrity sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ== - dependencies: - "@types/react" "*" - -"@types/react@*", "@types/react@^18.0.21": - version "18.0.25" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.25.tgz#8b1dcd7e56fe7315535a4af25435e0bb55c8ae44" - integrity sha512-xD6c0KDT4m7n9uD4ZHi02lzskaiqcBxf4zi+tXZY98a04wvc0hi/TcCPC2FOESZi51Nd7tlUeOJY8RofL799/g== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/scheduler@*": - version "0.16.2" - resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" - integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== - -"@types/semver@^7.3.12": - version "7.3.13" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" - integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== - -"@types/stack-utils@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" - integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== - -"@types/yargs-parser@*": - version "21.0.0" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" - integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== - -"@types/yargs@^15.0.0": - version "15.0.14" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06" - integrity sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^16.0.0": - version "16.0.4" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" - integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^17.0.8": - version "17.0.13" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.13.tgz#34cced675ca1b1d51fcf4d34c3c6f0fa142a5c76" - integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg== - dependencies: - "@types/yargs-parser" "*" - -"@typescript-eslint/eslint-plugin@^3.1.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f" - integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== - dependencies: - "@typescript-eslint/experimental-utils" "3.10.1" - debug "^4.1.1" - functional-red-black-tree "^1.0.1" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/eslint-plugin@^5.37.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.0.tgz#36a8c0c379870127059889a9cc7e05c260d2aaa5" - integrity sha512-5TJh2AgL6+wpL8H/GTSjNb4WrjKoR2rqvFxR/DDTqYNk6uXn8BJMEcncLSpMbf/XV1aS0jAjYwn98uvVCiAywQ== - dependencies: - "@typescript-eslint/scope-manager" "5.42.0" - "@typescript-eslint/type-utils" "5.42.0" - "@typescript-eslint/utils" "5.42.0" - debug "^4.3.4" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - regexpp "^3.2.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/experimental-utils@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" - integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== - dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.10.1" - "@typescript-eslint/typescript-estree" "3.10.1" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" - -"@typescript-eslint/parser@^3.1.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" - integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== - dependencies: - "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.10.1" - "@typescript-eslint/types" "3.10.1" - "@typescript-eslint/typescript-estree" "3.10.1" - eslint-visitor-keys "^1.1.0" - -"@typescript-eslint/parser@^5.37.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.42.0.tgz#be0ffbe279e1320e3d15e2ef0ad19262f59e9240" - integrity sha512-Ixh9qrOTDRctFg3yIwrLkgf33AHyEIn6lhyf5cCfwwiGtkWhNpVKlEZApi3inGQR/barWnY7qY8FbGKBO7p3JA== - dependencies: - "@typescript-eslint/scope-manager" "5.42.0" - "@typescript-eslint/types" "5.42.0" - "@typescript-eslint/typescript-estree" "5.42.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.42.0.tgz#e1f2bb26d3b2a508421ee2e3ceea5396b192f5ef" - integrity sha512-l5/3IBHLH0Bv04y+H+zlcLiEMEMjWGaCX6WyHE5Uk2YkSGAMlgdUPsT/ywTSKgu9D1dmmKMYgYZijObfA39Wow== - dependencies: - "@typescript-eslint/types" "5.42.0" - "@typescript-eslint/visitor-keys" "5.42.0" - -"@typescript-eslint/type-utils@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.42.0.tgz#4206d7192d4fe903ddf99d09b41d4ac31b0b7dca" - integrity sha512-HW14TXC45dFVZxnVW8rnUGnvYyRC0E/vxXShFCthcC9VhVTmjqOmtqj6H5rm9Zxv+ORxKA/1aLGD7vmlLsdlOg== - dependencies: - "@typescript-eslint/typescript-estree" "5.42.0" - "@typescript-eslint/utils" "5.42.0" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/types@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" - integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== - -"@typescript-eslint/types@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.0.tgz#5aeff9b5eced48f27d5b8139339bf1ef805bad7a" - integrity sha512-t4lzO9ZOAUcHY6bXQYRuu+3SSYdD9TS8ooApZft4WARt4/f2Cj/YpvbTe8A4GuhT4bNW72goDMOy7SW71mZwGw== - -"@typescript-eslint/typescript-estree@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" - integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== - dependencies: - "@typescript-eslint/types" "3.10.1" - "@typescript-eslint/visitor-keys" "3.10.1" - debug "^4.1.1" - glob "^7.1.6" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/typescript-estree@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.0.tgz#2592d24bb5f89bf54a63384ff3494870f95b3fd8" - integrity sha512-2O3vSq794x3kZGtV7i4SCWZWCwjEtkWfVqX4m5fbUBomOsEOyd6OAD1qU2lbvV5S8tgy/luJnOYluNyYVeOTTg== - dependencies: - "@typescript-eslint/types" "5.42.0" - "@typescript-eslint/visitor-keys" "5.42.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.0.tgz#f06bd43b9a9a06ed8f29600273240e84a53f2f15" - integrity sha512-JZ++3+h1vbeG1NUECXQZE3hg0kias9kOtcQr3+JVQ3whnjvKuMyktJAAIj6743OeNPnGBmjj7KEmiDL7qsdnCQ== - dependencies: - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.42.0" - "@typescript-eslint/types" "5.42.0" - "@typescript-eslint/typescript-estree" "5.42.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - semver "^7.3.7" - -"@typescript-eslint/visitor-keys@3.10.1": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" - integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== - dependencies: - eslint-visitor-keys "^1.1.0" - -"@typescript-eslint/visitor-keys@5.42.0": - version "5.42.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.0.tgz#ee8d62d486f41cfe646632fab790fbf0c1db5bb0" - integrity sha512-QHbu5Hf/2lOEOwy+IUw0GoSCuAzByTAWWrOTKzTzsotiUnWFpuKnXcAhC9YztAf2EElQ0VvIK+pHJUPkM0q7jg== - dependencies: - "@typescript-eslint/types" "5.42.0" - eslint-visitor-keys "^3.3.0" - -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - -abort-controller@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" - integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== - dependencies: - event-target-shim "^5.0.0" - -absolute-path@^0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" - integrity sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA== - -accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7: - version "1.3.8" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-jsx@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn@^7.1.1, acorn@^7.4.0: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4: - version "8.8.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" - integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== - -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.1: - version "8.11.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" - integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -anser@^1.4.9: - version "1.4.10" - resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.10.tgz#befa3eddf282684bd03b63dcda3927aef8c2e35b" - integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww== - -ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-escapes@^4.2.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-fragments@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/ansi-fragments/-/ansi-fragments-0.2.1.tgz#24409c56c4cc37817c3d7caa99d8969e2de5a05e" - integrity sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w== - dependencies: - colorette "^1.0.7" - slice-ansi "^2.0.0" - strip-ansi "^5.0.0" - -ansi-regex@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" - integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== - -ansi-regex@^5.0.0, ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" - integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== - dependencies: - micromatch "^3.1.4" - normalize-path "^2.1.1" - -anymatch@^3.0.3: - version "3.1.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" - integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -appdirsjs@^1.2.4: - version "1.2.7" - resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3" - integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== - -array-includes@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" - integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.19.5" - get-intrinsic "^1.1.1" - is-string "^1.0.7" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - -array.prototype.flatmap@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" - integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -asap@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== - -ast-types@0.14.2: - version "0.14.2" - resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd" - integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA== - dependencies: - tslib "^2.0.1" - -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - -async-limiter@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" - integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== - -async@^3.2.2: - version "3.2.4" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" - integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -axios@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" - integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== - dependencies: - follow-redirects "^1.15.0" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - -babel-core@^7.0.0-bridge.0: - version "7.0.0-bridge.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" - integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== - -babel-eslint@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" - integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== - dependencies: - "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" - eslint-visitor-keys "^1.0.0" - resolve "^1.12.0" - -babel-jest@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" - integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== - dependencies: - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/babel__core" "^7.1.7" - babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - slash "^3.0.0" - -babel-plugin-istanbul@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" - integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - -babel-plugin-module-resolver@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.1.0.tgz#22a4f32f7441727ec1fbf4967b863e1e3e9f33e2" - integrity sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA== - dependencies: - find-babel-config "^1.2.0" - glob "^7.1.6" - pkg-up "^3.1.0" - reselect "^4.0.0" - resolve "^1.13.1" - -babel-plugin-polyfill-corejs2@^0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122" - integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== - dependencies: - "@babel/compat-data" "^7.17.7" - "@babel/helper-define-polyfill-provider" "^0.3.3" - semver "^6.1.1" - -babel-plugin-polyfill-corejs3@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz#56ad88237137eade485a71b52f72dbed57c6230a" - integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.3" - core-js-compat "^3.25.1" - -babel-plugin-polyfill-regenerator@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz#390f91c38d90473592ed43351e801a9d3e0fd747" - integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.3" - -babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" - integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== - -babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" - -babel-preset-fbjs@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" - integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== - dependencies: - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-object-rest-spread" "^7.0.0" - "@babel/plugin-syntax-class-properties" "^7.0.0" - "@babel/plugin-syntax-flow" "^7.0.0" - "@babel/plugin-syntax-jsx" "^7.0.0" - "@babel/plugin-syntax-object-rest-spread" "^7.0.0" - "@babel/plugin-transform-arrow-functions" "^7.0.0" - "@babel/plugin-transform-block-scoped-functions" "^7.0.0" - "@babel/plugin-transform-block-scoping" "^7.0.0" - "@babel/plugin-transform-classes" "^7.0.0" - "@babel/plugin-transform-computed-properties" "^7.0.0" - "@babel/plugin-transform-destructuring" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-for-of" "^7.0.0" - "@babel/plugin-transform-function-name" "^7.0.0" - "@babel/plugin-transform-literals" "^7.0.0" - "@babel/plugin-transform-member-expression-literals" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-object-super" "^7.0.0" - "@babel/plugin-transform-parameters" "^7.0.0" - "@babel/plugin-transform-property-literals" "^7.0.0" - "@babel/plugin-transform-react-display-name" "^7.0.0" - "@babel/plugin-transform-react-jsx" "^7.0.0" - "@babel/plugin-transform-shorthand-properties" "^7.0.0" - "@babel/plugin-transform-spread" "^7.0.0" - "@babel/plugin-transform-template-literals" "^7.0.0" - babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" - -babel-preset-jest@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" - integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== - dependencies: - babel-plugin-jest-hoist "^26.6.2" - babel-preset-current-node-syntax "^1.0.0" - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -base64-js@^1.1.2, base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browserslist@^4.21.3, browserslist@^4.21.4: - version "4.21.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" - integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== - dependencies: - caniuse-lite "^1.0.30001400" - electron-to-chromium "^1.4.251" - node-releases "^2.0.6" - update-browserslist-db "^1.0.9" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^5.0.0, camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caniuse-lite@^1.0.30001400: - version "1.0.30001430" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001430.tgz#638a8ae00b5a8a97e66ff43733b2701f81b101fa" - integrity sha512-IB1BXTZKPDVPM7cnV4iaKaHxckvdr/3xtctB3f7Hmenx3qYBhGtTZ//7EllK66aKXW98Lx0+7Yr0kxBtIt3tzg== - -capture-exit@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" - integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== - dependencies: - rsvp "^4.8.4" - -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -ci-info@^3.2.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.5.0.tgz#bfac2a29263de4c829d806b1ab478e35091e171f" - integrity sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw== - -cjs-module-lexer@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f" - integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-spinners@^2.5.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" - integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - -collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -colorette@^1.0.7: - version "1.4.0" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" - integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -command-exists@^1.2.8: - version "1.2.9" - resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" - integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== - -commander@^9.4.0: - version "9.4.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd" - integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== - -commander@~2.13.0: - version "2.13.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" - integrity sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA== - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -compressible@~2.0.16: - version "2.0.18" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" - integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== - dependencies: - mime-db ">= 1.43.0 < 2" - -compression@^1.7.1: - version "1.7.4" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" - integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.16" - debug "2.6.9" - on-headers "~1.0.2" - safe-buffer "5.1.2" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -connect@^3.6.5: - version "3.7.0" - resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" - integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== - dependencies: - debug "2.6.9" - finalhandler "1.1.2" - parseurl "~1.3.3" - utils-merge "1.0.1" - -convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -core-js-compat@^3.25.1: - version "3.26.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.26.0.tgz#94e2cf8ba3e63800c4956ea298a6473bc9d62b44" - integrity sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A== - dependencies: - browserslist "^4.21.4" - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cosmiconfig@^5.0.5, cosmiconfig@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== - dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.0, cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -csstype@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9" - integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw== - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -dayjs@^1.8.15: - version "1.11.6" - resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.6.tgz#2e79a226314ec3ec904e3ee1dd5a4f5e5b1c7afb" - integrity sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ== - -debug@2.6.9, debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decimal.js@^10.2.1: - version "10.4.2" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.2.tgz#0341651d1d997d86065a2ce3a441fbd0d8e8b98e" - integrity sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA== - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og== - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" - integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== - -deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== - -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - -define-properties@^1.1.3, define-properties@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" - integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== - dependencies: - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -denodeify@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" - integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -destroy@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -diff-sequences@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" - integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -electron-to-chromium@^1.4.251: - version "1.4.284" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" - integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== - -emittery@^0.7.1: - version "0.7.2" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" - integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== - -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -envinfo@^7.7.2: - version "7.8.1" - resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" - integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -error-stack-parser@^2.0.6: - version "2.1.4" - resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" - integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== - dependencies: - stackframe "^1.3.4" - -errorhandler@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91" - integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A== - dependencies: - accepts "~1.3.7" - escape-html "~1.0.3" - -es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.5, es-abstract@^1.20.4: - version "1.20.4" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.4.tgz#1d103f9f8d78d4cf0713edcd6d0ed1a46eed5861" - integrity sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.1.3" - get-symbol-description "^1.0.0" - has "^1.0.3" - has-property-descriptors "^1.0.0" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - is-callable "^1.2.7" - is-negative-zero "^2.0.2" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - is-string "^1.0.7" - is-weakref "^1.0.2" - object-inspect "^1.12.2" - object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.4.3" - safe-regex-test "^1.0.0" - string.prototype.trimend "^1.0.5" - string.prototype.trimstart "^1.0.5" - unbox-primitive "^1.0.2" - -es-shim-unscopables@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" - integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== - dependencies: - has "^1.0.3" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - -eslint-config-prettier@^6.10.1: - version "6.15.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9" - integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== - dependencies: - get-stdin "^6.0.0" - -eslint-plugin-eslint-comments@^3.1.2: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz#9e1cd7b4413526abb313933071d7aba05ca12ffa" - integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== - dependencies: - escape-string-regexp "^1.0.5" - ignore "^5.0.5" - -eslint-plugin-flowtype@2.50.3: - version "2.50.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz#61379d6dce1d010370acd6681740fd913d68175f" - integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ== - dependencies: - lodash "^4.17.10" - -eslint-plugin-jest@22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz#a5fd6f7a2a41388d16f527073b778013c5189a9c" - integrity sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg== - -eslint-plugin-prettier@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba" - integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== - dependencies: - prettier-linter-helpers "^1.0.0" - -eslint-plugin-react-hooks@^4.0.4: - version "4.6.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" - integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== - -eslint-plugin-react-native-globals@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2" - integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g== - -eslint-plugin-react-native@^3.8.1: - version "3.11.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.11.0.tgz#c73b0886abb397867e5e6689d3a6a418682e6bac" - integrity sha512-7F3OTwrtQPfPFd+VygqKA2VZ0f2fz0M4gJmry/TRE18JBb94/OtMxwbL7Oqwu7FGyrdeIOWnXQbBAveMcSTZIA== - dependencies: - "@babel/traverse" "^7.7.4" - eslint-plugin-react-native-globals "^0.1.1" - -eslint-plugin-react@^7.20.0: - version "7.31.10" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz#6782c2c7fe91c09e715d536067644bbb9491419a" - integrity sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA== - dependencies: - array-includes "^3.1.5" - array.prototype.flatmap "^1.3.0" - doctrine "^2.1.0" - estraverse "^5.3.0" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.1" - object.values "^1.1.5" - prop-types "^15.8.1" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.7" - -eslint-scope@^5.0.0, eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-utils@^2.0.0, eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" - integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== - -eslint@^7.32.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== - dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.0.1" - doctrine "^3.0.0" - enquirer "^2.3.5" - escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" - globals "^13.6.0" - ignore "^4.0.6" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^3.13.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" - strip-json-comments "^3.1.0" - table "^6.0.9" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== - dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" - -esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -event-target-shim@^5.0.0, event-target-shim@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" - integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== - -exec-sh@^0.3.2: - version "0.3.6" - resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" - integrity sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w== - -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== - dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" - integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== - dependencies: - cross-spawn "^7.0.0" - get-stream "^5.0.0" - human-signals "^1.1.1" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.0" - onetime "^5.1.0" - signal-exit "^3.0.2" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expect@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" - integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== - dependencies: - "@jest/types" "^26.6.2" - ansi-styles "^4.0.0" - jest-get-type "^26.3.0" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== - -fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fastq@^1.6.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" - integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== - dependencies: - reusify "^1.0.4" - -fb-watchman@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" - integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== - dependencies: - bser "2.1.1" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== - -finalhandler@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -find-babel-config@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2" - integrity sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA== - dependencies: - json5 "^0.5.1" - path-exists "^3.0.0" - -find-cache-dir@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" - integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== - dependencies: - commondir "^1.0.1" - make-dir "^2.0.0" - pkg-dir "^3.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -flow-parser@0.*: - version "0.192.0" - resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.192.0.tgz#e2aa03e0c6a844c4d6ccdb4af2bc83cc589d9c8c" - integrity sha512-FLyei0ikf4ab9xlg+05WNmdpOODiH9XVBuw7iI9OZyjIo+cX2L2OUPTovjbWLYLlI41oGTcprbKdB/f9XwBnKw== - -flow-parser@^0.121.0: - version "0.121.0" - resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.121.0.tgz#9f9898eaec91a9f7c323e9e992d81ab5c58e618f" - integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== - -follow-redirects@^1.15.0: - version "1.15.2" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" - integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -fs-extra@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" - integrity sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ== - dependencies: - graceful-fs "^4.1.2" - jsonfile "^2.1.0" - klaw "^1.0.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@^2.1.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -function.prototype.name@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" - integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - functions-have-names "^1.2.2" - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - -functions-have-names@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" - integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.3" - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-stdin@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" - integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== - -get-stream@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - -get-stream@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== - dependencies: - pump "^3.0.0" - -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== - -glob-parent@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.6.0, globals@^13.9.0: - version "13.17.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.17.0.tgz#902eb1e680a41da93945adbdcb5a9f361ba69bd4" - integrity sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw== - dependencies: - type-fest "^0.20.2" - -globby@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: - version "4.2.10" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== - -growly@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" - integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" - integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== - dependencies: - get-intrinsic "^1.1.1" - -has-symbols@^1.0.2, has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -hermes-estree@0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.8.0.tgz#530be27243ca49f008381c1f3e8b18fb26bf9ec0" - integrity sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q== - -hermes-parser@0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.8.0.tgz#116dceaba32e45b16d6aefb5c4c830eaeba2d257" - integrity sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA== - dependencies: - hermes-estree "0.8.0" - -hermes-profile-transformer@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz#bd0f5ecceda80dd0ddaae443469ab26fb38fc27b" - integrity sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ== - dependencies: - source-map "^0.7.3" - -hoist-non-react-statics@^2.3.1: - version "2.5.5" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" - integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw== - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ieee754@^1.1.13: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -ignore@^5.0.5, ignore@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" - integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== - -image-size@^0.6.0: - version "0.6.3" - resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" - integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA== - -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -internal-slot@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" - integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== - dependencies: - get-intrinsic "^1.1.0" - has "^1.0.3" - side-channel "^1.0.4" - -invariant@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -ip@^1.1.5: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" - integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" - -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-callable@^1.1.4, is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== - -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - -is-core-module@^2.9.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" - integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== - dependencies: - has "^1.0.3" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-date-object@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== - dependencies: - has-tostringtag "^1.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== - -is-docker@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - -is-negative-zero@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== - -is-number-object@^1.0.4: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" - integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== - dependencies: - has-tostringtag "^1.0.0" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-shared-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" - integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== - dependencies: - call-bind "^1.0.2" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== - -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== - dependencies: - has-symbols "^1.0.2" - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-weakref@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== - dependencies: - call-bind "^1.0.2" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -is-wsl@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" - integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw== - -is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" - integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== - -istanbul-lib-instrument@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" - integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== - dependencies: - "@babel/core" "^7.7.5" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.0.0" - semver "^6.3.0" - -istanbul-lib-instrument@^5.0.4: - version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.0.2: - version "3.1.5" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" - integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jest-changed-files@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" - integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== - dependencies: - "@jest/types" "^26.6.2" - execa "^4.0.0" - throat "^5.0.0" - -jest-cli@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" - integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== - dependencies: - "@jest/core" "^26.6.3" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - import-local "^3.0.2" - is-ci "^2.0.0" - jest-config "^26.6.3" - jest-util "^26.6.2" - jest-validate "^26.6.2" - prompts "^2.0.1" - yargs "^15.4.1" - -jest-config@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" - integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== - dependencies: - "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.6.3" - "@jest/types" "^26.6.2" - babel-jest "^26.6.3" - chalk "^4.0.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.4" - jest-environment-jsdom "^26.6.2" - jest-environment-node "^26.6.2" - jest-get-type "^26.3.0" - jest-jasmine2 "^26.6.3" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - micromatch "^4.0.2" - pretty-format "^26.6.2" - -jest-diff@^26.0.0, jest-diff@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" - integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== - dependencies: - chalk "^4.0.0" - diff-sequences "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-docblock@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" - integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== - dependencies: - detect-newline "^3.0.0" - -jest-each@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" - integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== - dependencies: - "@jest/types" "^26.6.2" - chalk "^4.0.0" - jest-get-type "^26.3.0" - jest-util "^26.6.2" - pretty-format "^26.6.2" - -jest-environment-jsdom@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" - integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - jsdom "^16.4.0" - -jest-environment-node@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" - integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - -jest-get-type@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" - integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== - -jest-haste-map@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa" - integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== - dependencies: - "@jest/types" "^26.6.2" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.4" - jest-regex-util "^26.0.0" - jest-serializer "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - micromatch "^4.0.2" - sane "^4.0.3" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.1.2" - -jest-jasmine2@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" - integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== - dependencies: - "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.6.2" - "@jest/source-map" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^26.6.2" - is-generator-fn "^2.0.0" - jest-each "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - pretty-format "^26.6.2" - throat "^5.0.0" - -jest-leak-detector@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" - integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== - dependencies: - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-matcher-utils@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a" - integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== - dependencies: - chalk "^4.0.0" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-message-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07" - integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== - dependencies: - "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.6.2" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.4" - micromatch "^4.0.2" - pretty-format "^26.6.2" - slash "^3.0.0" - stack-utils "^2.0.2" - -jest-mock@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302" - integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - -jest-pnp-resolver@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" - integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== - -jest-regex-util@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" - integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== - -jest-regex-util@^27.0.6: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== - -jest-resolve-dependencies@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" - integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== - dependencies: - "@jest/types" "^26.6.2" - jest-regex-util "^26.0.0" - jest-snapshot "^26.6.2" - -jest-resolve@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" - integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== - dependencies: - "@jest/types" "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - jest-pnp-resolver "^1.2.2" - jest-util "^26.6.2" - read-pkg-up "^7.0.1" - resolve "^1.18.1" - slash "^3.0.0" - -jest-runner@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" - integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== - dependencies: - "@jest/console" "^26.6.2" - "@jest/environment" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.7.1" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-docblock "^26.0.0" - jest-haste-map "^26.6.2" - jest-leak-detector "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - jest-runtime "^26.6.3" - jest-util "^26.6.2" - jest-worker "^26.6.2" - source-map-support "^0.5.6" - throat "^5.0.0" - -jest-runtime@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" - integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== - dependencies: - "@jest/console" "^26.6.2" - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/globals" "^26.6.2" - "@jest/source-map" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - cjs-module-lexer "^0.6.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.3" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - slash "^3.0.0" - strip-bom "^4.0.0" - yargs "^15.4.1" - -jest-serializer@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1" - integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.4" - -jest-serializer@^27.0.6: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - -jest-snapshot@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" - integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== - dependencies: - "@babel/types" "^7.0.0" - "@jest/types" "^26.6.2" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.0.0" - chalk "^4.0.0" - expect "^26.6.2" - graceful-fs "^4.2.4" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - jest-haste-map "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - natural-compare "^1.4.0" - pretty-format "^26.6.2" - semver "^7.3.2" - -jest-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" - integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - graceful-fs "^4.2.4" - is-ci "^2.0.0" - micromatch "^4.0.2" - -jest-util@^27.2.0: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - -jest-validate@^26.5.2, jest-validate@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" - integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== - dependencies: - "@jest/types" "^26.6.2" - camelcase "^6.0.0" - chalk "^4.0.0" - jest-get-type "^26.3.0" - leven "^3.1.0" - pretty-format "^26.6.2" - -jest-watcher@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" - integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== - dependencies: - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^26.6.2" - string-length "^4.0.1" - -jest-worker@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" - -jest-worker@^27.2.0: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jest@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" - integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== - dependencies: - "@jest/core" "^26.6.3" - import-local "^3.0.2" - jest-cli "^26.6.3" - -joi@^17.2.1: - version "17.7.0" - resolved "https://registry.yarnpkg.com/joi/-/joi-17.7.0.tgz#591a33b1fe1aca2bc27f290bcad9b9c1c570a6b3" - integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== - dependencies: - "@hapi/hoek" "^9.0.0" - "@hapi/topo" "^5.0.0" - "@sideway/address" "^4.1.3" - "@sideway/formula" "^3.0.0" - "@sideway/pinpoint" "^2.0.0" - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsc-android@^250230.2.1: - version "250230.2.1" - resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-250230.2.1.tgz#3790313a970586a03ab0ad47defbc84df54f1b83" - integrity sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q== - -jscodeshift@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.13.1.tgz#69bfe51e54c831296380585c6d9e733512aecdef" - integrity sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ== - dependencies: - "@babel/core" "^7.13.16" - "@babel/parser" "^7.13.16" - "@babel/plugin-proposal-class-properties" "^7.13.0" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8" - "@babel/plugin-proposal-optional-chaining" "^7.13.12" - "@babel/plugin-transform-modules-commonjs" "^7.13.8" - "@babel/preset-flow" "^7.13.13" - "@babel/preset-typescript" "^7.13.0" - "@babel/register" "^7.13.16" - babel-core "^7.0.0-bridge.0" - chalk "^4.1.2" - flow-parser "0.*" - graceful-fs "^4.2.4" - micromatch "^3.1.10" - neo-async "^2.5.0" - node-dir "^0.1.17" - recast "^0.20.4" - temp "^0.8.4" - write-file-atomic "^2.3.0" - -jsdom@^16.4.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== - -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - integrity sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw== - -json5@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" - integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== - -jsonfile@^2.1.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" - integrity sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw== - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" - -"jsx-ast-utils@^2.4.1 || ^3.0.0": - version "3.3.3" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" - integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== - dependencies: - array-includes "^3.1.5" - object.assign "^4.1.3" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -klaw@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" - integrity sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw== - optionalDependencies: - graceful-fs "^4.1.9" - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.debounce@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash.throttle@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" - integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== - -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - -lodash@^4.17.10, lodash@^4.17.15, lodash@^4.7.0: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -logkitty@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/logkitty/-/logkitty-0.7.1.tgz#8e8d62f4085a826e8d38987722570234e33c6aa7" - integrity sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ== - dependencies: - ansi-fragments "^0.2.1" - dayjs "^1.8.15" - yargs "^15.1.0" - -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -make-dir@^2.0.0, make-dir@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" - integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== - dependencies: - pify "^4.0.1" - semver "^5.6.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== - dependencies: - tmpl "1.0.5" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== - dependencies: - object-visit "^1.0.0" - -memoize-one@^5.0.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e" - integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q== - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -metro-babel-transformer@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz#2c60493a4eb7a8d20cc059f05e0e505dc1684d01" - integrity sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw== - dependencies: - "@babel/core" "^7.14.0" - hermes-parser "0.8.0" - metro-source-map "0.72.3" - nullthrows "^1.1.1" - -metro-cache-key@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-cache-key/-/metro-cache-key-0.72.3.tgz#dcc3055b6cb7e35b84b4fe736a148affb4ecc718" - integrity sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg== - -metro-cache@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.72.3.tgz#fd079f90b12a81dd5f1567c607c13b14ae282690" - integrity sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A== - dependencies: - metro-core "0.72.3" - rimraf "^2.5.4" - -metro-config@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.72.3.tgz#c2f1a89537c79cec516b1229aa0550dfa769e2ee" - integrity sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw== - dependencies: - cosmiconfig "^5.0.5" - jest-validate "^26.5.2" - metro "0.72.3" - metro-cache "0.72.3" - metro-core "0.72.3" - metro-runtime "0.72.3" - -metro-core@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.72.3.tgz#e3a276d54ecc8fe667127347a1bfd3f8c0009ccb" - integrity sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A== - dependencies: - lodash.throttle "^4.1.1" - metro-resolver "0.72.3" - -metro-file-map@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-file-map/-/metro-file-map-0.72.3.tgz#94f6d4969480aa7f47cfe2c5f365ad4e85051f12" - integrity sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA== - dependencies: - abort-controller "^3.0.0" - anymatch "^3.0.3" - debug "^2.2.0" - fb-watchman "^2.0.0" - graceful-fs "^4.2.4" - invariant "^2.2.4" - jest-regex-util "^27.0.6" - jest-serializer "^27.0.6" - jest-util "^27.2.0" - jest-worker "^27.2.0" - micromatch "^4.0.4" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.1.2" - -metro-hermes-compiler@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz#e9ab4d25419eedcc72c73842c8da681a4a7e691e" - integrity sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg== - -metro-inspector-proxy@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz#8d7ff4240fc414af5b72d86dac2485647fc3cf09" - integrity sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw== - dependencies: - connect "^3.6.5" - debug "^2.2.0" - ws "^7.5.1" - yargs "^15.3.1" - -metro-minify-uglify@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz#a9d4cd27933b29cfe95d8406b40d185567a93d39" - integrity sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA== - dependencies: - uglify-es "^3.1.9" - -metro-react-native-babel-preset@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz#e549199fa310fef34364fdf19bd210afd0c89432" - integrity sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw== - dependencies: - "@babel/core" "^7.14.0" - "@babel/plugin-proposal-async-generator-functions" "^7.0.0" - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-export-default-from" "^7.0.0" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-proposal-object-rest-spread" "^7.0.0" - "@babel/plugin-proposal-optional-catch-binding" "^7.0.0" - "@babel/plugin-proposal-optional-chaining" "^7.0.0" - "@babel/plugin-syntax-dynamic-import" "^7.0.0" - "@babel/plugin-syntax-export-default-from" "^7.0.0" - "@babel/plugin-syntax-flow" "^7.2.0" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0" - "@babel/plugin-syntax-optional-chaining" "^7.0.0" - "@babel/plugin-transform-arrow-functions" "^7.0.0" - "@babel/plugin-transform-async-to-generator" "^7.0.0" - "@babel/plugin-transform-block-scoping" "^7.0.0" - "@babel/plugin-transform-classes" "^7.0.0" - "@babel/plugin-transform-computed-properties" "^7.0.0" - "@babel/plugin-transform-destructuring" "^7.0.0" - "@babel/plugin-transform-exponentiation-operator" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-function-name" "^7.0.0" - "@babel/plugin-transform-literals" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0" - "@babel/plugin-transform-parameters" "^7.0.0" - "@babel/plugin-transform-react-display-name" "^7.0.0" - "@babel/plugin-transform-react-jsx" "^7.0.0" - "@babel/plugin-transform-react-jsx-self" "^7.0.0" - "@babel/plugin-transform-react-jsx-source" "^7.0.0" - "@babel/plugin-transform-runtime" "^7.0.0" - "@babel/plugin-transform-shorthand-properties" "^7.0.0" - "@babel/plugin-transform-spread" "^7.0.0" - "@babel/plugin-transform-sticky-regex" "^7.0.0" - "@babel/plugin-transform-template-literals" "^7.0.0" - "@babel/plugin-transform-typescript" "^7.5.0" - "@babel/plugin-transform-unicode-regex" "^7.0.0" - "@babel/template" "^7.0.0" - react-refresh "^0.4.0" - -metro-react-native-babel-transformer@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz#f8eda8c07c0082cbdbef47a3293edc41587c6b5a" - integrity sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA== - dependencies: - "@babel/core" "^7.14.0" - babel-preset-fbjs "^3.4.0" - hermes-parser "0.8.0" - metro-babel-transformer "0.72.3" - metro-react-native-babel-preset "0.72.3" - metro-source-map "0.72.3" - nullthrows "^1.1.1" - -metro-resolver@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.72.3.tgz#c64ce160454ac850a15431509f54a587cb006540" - integrity sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w== - dependencies: - absolute-path "^0.0.0" - -metro-runtime@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-runtime/-/metro-runtime-0.72.3.tgz#1485ed7b5f06d09ebb40c83efcf8accc8d30b8b9" - integrity sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA== - dependencies: - "@babel/runtime" "^7.0.0" - react-refresh "^0.4.0" - -metro-source-map@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.72.3.tgz#5efcf354413804a62ff97864e797f60ef3cc689e" - integrity sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ== - dependencies: - "@babel/traverse" "^7.14.0" - "@babel/types" "^7.0.0" - invariant "^2.2.4" - metro-symbolicate "0.72.3" - nullthrows "^1.1.1" - ob1 "0.72.3" - source-map "^0.5.6" - vlq "^1.0.0" - -metro-symbolicate@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz#093d4f8c7957bcad9ca2ab2047caa90b1ee1b0c1" - integrity sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw== - dependencies: - invariant "^2.2.4" - metro-source-map "0.72.3" - nullthrows "^1.1.1" - source-map "^0.5.6" - through2 "^2.0.1" - vlq "^1.0.0" - -metro-transform-plugins@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz#b00e5a9f24bff7434ea7a8e9108eebc8386b9ee4" - integrity sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg== - dependencies: - "@babel/core" "^7.14.0" - "@babel/generator" "^7.14.0" - "@babel/template" "^7.0.0" - "@babel/traverse" "^7.14.0" - nullthrows "^1.1.1" - -metro-transform-worker@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz#bdc6cc708ea114bc085e11d675b8ff626d7e6db7" - integrity sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ== - dependencies: - "@babel/core" "^7.14.0" - "@babel/generator" "^7.14.0" - "@babel/parser" "^7.14.0" - "@babel/types" "^7.0.0" - babel-preset-fbjs "^3.4.0" - metro "0.72.3" - metro-babel-transformer "0.72.3" - metro-cache "0.72.3" - metro-cache-key "0.72.3" - metro-hermes-compiler "0.72.3" - metro-source-map "0.72.3" - metro-transform-plugins "0.72.3" - nullthrows "^1.1.1" - -metro@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/metro/-/metro-0.72.3.tgz#eb587037d62f48a0c33c8d88f26666b4083bb61e" - integrity sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg== - dependencies: - "@babel/code-frame" "^7.0.0" - "@babel/core" "^7.14.0" - "@babel/generator" "^7.14.0" - "@babel/parser" "^7.14.0" - "@babel/template" "^7.0.0" - "@babel/traverse" "^7.14.0" - "@babel/types" "^7.0.0" - absolute-path "^0.0.0" - accepts "^1.3.7" - async "^3.2.2" - chalk "^4.0.0" - ci-info "^2.0.0" - connect "^3.6.5" - debug "^2.2.0" - denodeify "^1.2.1" - error-stack-parser "^2.0.6" - fs-extra "^1.0.0" - graceful-fs "^4.2.4" - hermes-parser "0.8.0" - image-size "^0.6.0" - invariant "^2.2.4" - jest-worker "^27.2.0" - lodash.throttle "^4.1.1" - metro-babel-transformer "0.72.3" - metro-cache "0.72.3" - metro-cache-key "0.72.3" - metro-config "0.72.3" - metro-core "0.72.3" - metro-file-map "0.72.3" - metro-hermes-compiler "0.72.3" - metro-inspector-proxy "0.72.3" - metro-minify-uglify "0.72.3" - metro-react-native-babel-preset "0.72.3" - metro-resolver "0.72.3" - metro-runtime "0.72.3" - metro-source-map "0.72.3" - metro-symbolicate "0.72.3" - metro-transform-plugins "0.72.3" - metro-transform-worker "0.72.3" - mime-types "^2.1.27" - node-fetch "^2.2.0" - nullthrows "^1.1.1" - rimraf "^2.5.4" - serialize-error "^2.1.0" - source-map "^0.5.6" - strip-ansi "^6.0.0" - temp "0.8.3" - throat "^5.0.0" - ws "^7.5.1" - yargs "^15.3.1" - -micromatch@^3.1.10, micromatch@^3.1.4: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -mime@^2.4.1: - version "2.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" - integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.6: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -nanoid@^3.1.23: - version "3.3.4" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" - integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - -neo-async@^2.5.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== - -nocache@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/nocache/-/nocache-3.0.4.tgz#5b37a56ec6e09fc7d401dceaed2eab40c8bfdf79" - integrity sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw== - -node-dir@^0.1.17: - version "0.1.17" - resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5" - integrity sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg== - dependencies: - minimatch "^3.0.2" - -node-fetch@^2.2.0, node-fetch@^2.6.0: - version "2.6.7" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== - -node-notifier@^8.0.0: - version "8.0.2" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" - integrity sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg== - dependencies: - growly "^1.3.0" - is-wsl "^2.2.0" - semver "^7.3.2" - shellwords "^0.1.1" - uuid "^8.3.0" - which "^2.0.2" - -node-releases@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" - integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== - -node-stream-zip@^1.9.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea" - integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== - -normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w== - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== - dependencies: - path-key "^2.0.0" - -npm-run-path@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -nullthrows@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" - integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== - -nwsapi@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" - integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== - -ob1@0.72.3: - version "0.72.3" - resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.72.3.tgz#fc1efcfe156f12ed23615f2465a796faad8b91e4" - integrity sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg== - -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.12.2, object-inspect@^1.9.0: - version "1.12.2" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" - integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== - -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - -object.assign@^4.1.3, object.assign@^4.1.4: - version "4.1.4" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" - integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - has-symbols "^1.0.3" - object-keys "^1.1.1" - -object.entries@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" - integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -object.fromentries@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" - integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -object.hasown@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" - integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== - dependencies: - define-properties "^1.1.4" - es-abstract "^1.19.5" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - -object.values@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" - integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -on-finished@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" - integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== - dependencies: - ee-first "1.1.1" - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== - dependencies: - ee-first "1.1.1" - -on-headers@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" - integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -onetime@^5.1.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -open@^6.2.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9" - integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg== - dependencies: - is-wsl "^1.1.0" - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - -os-tmpdir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== - -p-each-series@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" - integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== - -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - -parse-json@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pirates@^4.0.1, pirates@^4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== - -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -pkg-up@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" - integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== - dependencies: - find-up "^3.0.0" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - -prettier@^2.0.2: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== - -pretty-format@^26.0.0, pretty-format@^26.5.2, pretty-format@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" - integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== - dependencies: - "@jest/types" "^26.6.2" - ansi-regex "^5.0.0" - ansi-styles "^4.0.0" - react-is "^17.0.1" - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - -promise@^8.0.3: - version "8.3.0" - resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" - integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== - dependencies: - asap "~2.0.6" - -prompts@^2.0.1, prompts@^2.4.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.8.1: - version "15.8.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" - integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.13.1" - -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -psl@^1.1.33: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -punycode@^2.1.0, punycode@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -query-string@^7.0.0: - version "7.1.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" - integrity sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" - -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -react-devtools-core@4.24.0: - version "4.24.0" - resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.24.0.tgz#7daa196bdc64f3626b3f54f2ff2b96f7c4fdf017" - integrity sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg== - dependencies: - shell-quote "^1.6.1" - ws "^7" - -react-freeze@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.3.tgz#5e3ca90e682fed1d73a7cb50c2c7402b3e85618d" - integrity sha512-ZnXwLQnGzrDpHBHiC56TXFXvmolPeMjTn1UOm610M4EXGzbEDR7oOIyS2ZiItgbs6eZc4oU/a0hpk8PrcKvv5g== - -"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.1.0: - version "18.2.0" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" - integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== - -react-is@^16.13.0, react-is@^16.13.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - -react-native-codegen@^0.70.6: - version "0.70.6" - resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb" - integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== - dependencies: - "@babel/parser" "^7.14.0" - flow-parser "^0.121.0" - jscodeshift "^0.13.1" - nullthrows "^1.1.1" - -react-native-gradle-plugin@^0.70.3: - version "0.70.3" - resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz#cbcf0619cbfbddaa9128701aa2d7b4145f9c4fc8" - integrity sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A== - -react-native-loading-spinner-overlay@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/react-native-loading-spinner-overlay/-/react-native-loading-spinner-overlay-3.0.1.tgz#092481b8cce157d3af5ef942f845ad981f96bd36" - integrity sha512-4GdR54HQnKg2HPSSisVizfTLuyhSh4splY9eb8mKiYF1Ihjn/5EmdNo5bN3S7uKPFRC3WLzIZIouX6G6fXfnjw== - -react-native-safe-area-context@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.4.1.tgz#239c60b8a9a80eac70a38a822b04c0f1d15ffc01" - integrity sha512-N9XTjiuD73ZpVlejHrUWIFZc+6Z14co1K/p1IFMkImU7+avD69F3y+lhkqA2hN/+vljdZrBSiOwXPkuo43nFQA== - -react-native-safe-area-view@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-1.1.1.tgz#9833e34c384d0513f4831afcd1e54946f13897b2" - integrity sha512-bbLCtF+tqECyPWlgkWbIwx4vDPb0GEufx/ZGcSS4UljMcrpwluachDXoW9DBxhbMCc6k1V0ccqHWN7ntbRdERQ== - dependencies: - hoist-non-react-statics "^2.3.1" - -react-native-screens@^3.18.2: - version "3.18.2" - resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.18.2.tgz#d7ab2d145258d3db9fa630fa5379dc4474117866" - integrity sha512-ANUEuvMUlsYJ1QKukEhzhfrvOUO9BVH9Nzg+6eWxpn3cfD/O83yPBOF8Mx6x5H/2+sMy+VS5x/chWOOo/U7QJw== - dependencies: - react-freeze "^1.0.0" - warn-once "^0.1.0" - -react-native@0.70.4: - version "0.70.4" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.70.4.tgz#f2a3a7996431a47a45ce1f5097352c5721417516" - integrity sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA== - dependencies: - "@jest/create-cache-key-function" "^29.0.3" - "@react-native-community/cli" "9.2.1" - "@react-native-community/cli-platform-android" "9.2.1" - "@react-native-community/cli-platform-ios" "9.2.1" - "@react-native/assets" "1.0.0" - "@react-native/normalize-color" "2.0.0" - "@react-native/polyfills" "2.0.0" - abort-controller "^3.0.0" - anser "^1.4.9" - base64-js "^1.1.2" - event-target-shim "^5.0.1" - invariant "^2.2.4" - jsc-android "^250230.2.1" - memoize-one "^5.0.0" - metro-react-native-babel-transformer "0.72.3" - metro-runtime "0.72.3" - metro-source-map "0.72.3" - mkdirp "^0.5.1" - nullthrows "^1.1.1" - pretty-format "^26.5.2" - promise "^8.0.3" - react-devtools-core "4.24.0" - react-native-codegen "^0.70.6" - react-native-gradle-plugin "^0.70.3" - react-refresh "^0.4.0" - react-shallow-renderer "^16.15.0" - regenerator-runtime "^0.13.2" - scheduler "^0.22.0" - stacktrace-parser "^0.1.3" - use-sync-external-store "^1.0.0" - whatwg-fetch "^3.0.0" - ws "^6.1.4" - -react-refresh@^0.4.0: - version "0.4.3" - resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.3.tgz#966f1750c191672e76e16c2efa569150cc73ab53" - integrity sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA== - -react-shallow-renderer@^16.15.0: - version "16.15.0" - resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz#48fb2cf9b23d23cde96708fe5273a7d3446f4457" - integrity sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA== - dependencies: - object-assign "^4.1.1" - react-is "^16.12.0 || ^17.0.0 || ^18.0.0" - -react-test-renderer@18.1.0: - version "18.1.0" - resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-18.1.0.tgz#35b75754834cf9ab517b6813db94aee0a6b545c3" - integrity sha512-OfuueprJFW7h69GN+kr4Ywin7stcuqaYAt1g7airM5cUgP0BoF5G5CXsPGmXeDeEkncb2fqYNECO4y18sSqphg== - dependencies: - react-is "^18.1.0" - react-shallow-renderer "^16.15.0" - scheduler "^0.22.0" - -react@18.1.0: - version "18.1.0" - resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890" - integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ== - dependencies: - loose-envify "^1.1.0" - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -readable-stream@^3.4.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readable-stream@~2.3.6: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readline@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c" - integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg== - -recast@^0.20.4: - version "0.20.5" - resolved "https://registry.yarnpkg.com/recast/-/recast-0.20.5.tgz#8e2c6c96827a1b339c634dd232957d230553ceae" - integrity sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ== - dependencies: - ast-types "0.14.2" - esprima "~4.0.0" - source-map "~0.6.1" - tslib "^2.0.1" - -regenerate-unicode-properties@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" - integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== - dependencies: - regenerate "^1.4.2" - -regenerate@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.13.10, regenerator-runtime@^0.13.2: - version "0.13.10" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee" - integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw== - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: - version "1.4.3" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" - -regexpp@^3.0.0, regexpp@^3.1.0, regexpp@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - -regexpu-core@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.1.tgz#a69c26f324c1e962e9ffd0b88b055caba8089139" - integrity sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.1.0" - regjsgen "^0.7.1" - regjsparser "^0.9.1" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.0.0" - -regjsgen@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.7.1.tgz#ee5ef30e18d3f09b7c369b76e7c2373ed25546f6" - integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== - -regjsparser@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" - integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== - -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -reselect@^4.0.0: - version "4.1.7" - resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.7.tgz#56480d9ff3d3188970ee2b76527bd94a95567a42" - integrity sha512-Zu1xbUt3/OPwsXL46hvOOoQrap2azE7ZQbokq61BQfiXvhewsKDwhMeZjTX9sX0nvw1t/U5Audyn1I9P/m9z0A== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - -resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.18.1: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== - dependencies: - is-core-module "^2.9.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -resolve@^2.0.0-next.3: - version "2.0.0-next.4" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" - integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== - dependencies: - is-core-module "^2.9.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^2.5.4: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.0, rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rimraf@~2.2.6: - version "2.2.8" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" - integrity sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg== - -rimraf@~2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - -rsvp@^4.8.4: - version "4.8.5" - resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" - integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-regex-test@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" - integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.3" - is-regex "^1.1.4" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sane@^4.0.3: - version "4.1.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" - integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== - dependencies: - "@cnakazawa/watch" "^1.0.3" - anymatch "^2.0.0" - capture-exit "^2.0.0" - exec-sh "^0.3.2" - execa "^1.0.0" - fb-watchman "^2.0.0" - micromatch "^3.1.4" - minimist "^1.1.1" - walker "~1.0.5" - -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -scheduler@^0.22.0: - version "0.22.0" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.22.0.tgz#83a5d63594edf074add9a7198b1bae76c3db01b8" - integrity sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ== - dependencies: - loose-envify "^1.1.0" - -"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -semver@^7.2.1, semver@^7.3.2, semver@^7.3.7: - version "7.3.8" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" - integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== - dependencies: - lru-cache "^6.0.0" - -send@0.18.0: - version "0.18.0" - resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" - integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== - dependencies: - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "2.0.0" - mime "1.6.0" - ms "2.1.3" - on-finished "2.4.1" - range-parser "~1.2.1" - statuses "2.0.1" - -serialize-error@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" - integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== - -serve-static@^1.13.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" - integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.18.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== - dependencies: - shebang-regex "^1.0.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shell-quote@^1.6.1, shell-quote@^1.7.3: - version "1.7.4" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" - integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== - -shellwords@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" - integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== - -side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slice-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.5.16, source-map-support@^0.5.6: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.7.3: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - -spdx-correct@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" - integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.12" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" - integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== - -split-on-first@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" - integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - -stack-utils@^2.0.2: - version "2.0.5" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" - integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA== - dependencies: - escape-string-regexp "^2.0.0" - -stackframe@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" - integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== - -stacktrace-parser@^0.1.3: - version "0.1.10" - resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz#29fb0cae4e0d0b85155879402857a1639eb6051a" - integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== - dependencies: - type-fest "^0.7.1" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -statuses@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" - integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== - -statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== - -strict-uri-encode@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" - integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== - -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string.prototype.matchall@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" - integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.1" - side-channel "^1.0.4" - -string.prototype.trimend@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" - integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.19.5" - -string.prototype.trimstart@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" - integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.19.5" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^5.0.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -sudo-prompt@^9.0.0: - version "9.2.1" - resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" - integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^8.0.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -table@^6.0.9: - version "6.8.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" - integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== - dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - -temp@0.8.3: - version "0.8.3" - resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.3.tgz#e0c6bc4d26b903124410e4fed81103014dfc1f59" - integrity sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw== - dependencies: - os-tmpdir "^1.0.0" - rimraf "~2.2.6" - -temp@^0.8.4: - version "0.8.4" - resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.4.tgz#8c97a33a4770072e0a05f919396c7665a7dd59f2" - integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg== - dependencies: - rimraf "~2.6.2" - -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -throat@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" - integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== - -through2@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" - integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== - dependencies: - readable-stream "~2.3.6" - xtend "~4.0.1" - -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -toidentifier@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tough-cookie@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" - integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.0.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" - integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== - -tsutils@^3.17.1, tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" - integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.8.3: - version "4.8.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" - integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== - -uglify-es@^3.1.9: - version "3.3.9" - resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677" - integrity sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ== - dependencies: - commander "~2.13.0" - source-map "~0.6.1" - -unbox-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" - integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== - dependencies: - call-bind "^1.0.2" - has-bigints "^1.0.2" - has-symbols "^1.0.3" - which-boxed-primitive "^1.0.2" - -unicode-canonical-property-names-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" - integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== - -unicode-match-property-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" - integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== - dependencies: - unicode-canonical-property-names-ecmascript "^2.0.0" - unicode-property-aliases-ecmascript "^2.0.0" - -unicode-match-property-value-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz#1a01aa57247c14c568b89775a54938788189a714" - integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw== - -unicode-property-aliases-ecmascript@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" - integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - -unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -update-browserslist-db@^1.0.9: - version "1.0.10" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" - integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - -use-latest-callback@^0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/use-latest-callback/-/use-latest-callback-0.1.5.tgz#a4a836c08fa72f6608730b5b8f4bbd9c57c04f51" - integrity sha512-HtHatS2U4/h32NlkhupDsPlrbiD27gSH5swBdtXbCAlc6pfOFzaj0FehW/FO12rx8j2Vy4/lJScCiJyM01E+bQ== - -use-sync-external-store@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" - integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -util-deprecate@^1.0.1, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - -uuid@^8.3.0: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -v8-compile-cache@^2.0.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== - -v8-to-istanbul@^7.0.0: - version "7.1.2" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz#30898d1a7fa0c84d225a2c1434fb958f290883c1" - integrity sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - -vlq@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" - integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== - -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7, walker@~1.0.5: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== - dependencies: - makeerror "1.0.12" - -warn-once@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.1.tgz#952088f4fb56896e73fd4e6a3767272a3fccce43" - integrity sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q== - -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== - dependencies: - defaults "^1.0.3" - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-fetch@^3.0.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - -which-boxed-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== - -which@^1.2.9: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1, which@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.3, word-wrap@~1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -write-file-atomic@^2.3.0: - version "2.4.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" - integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^6.1.4: - version "6.2.2" - resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" - integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== - dependencies: - async-limiter "~1.0.0" - -ws@^7, ws@^7.4.6, ws@^7.5.1: - version "7.5.9" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" - integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -xtend@~4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== - -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@^15.1.0, yargs@^15.3.1, yargs@^15.4.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/ReactNativeExample/.buckconfig b/example/.buckconfig similarity index 100% rename from ReactNativeExample/.buckconfig rename to example/.buckconfig diff --git a/ReactNativeExample/.eslintrc.js b/example/.eslintrc.js similarity index 100% rename from ReactNativeExample/.eslintrc.js rename to example/.eslintrc.js diff --git a/ReactNativeExample/.gitignore b/example/.gitignore similarity index 100% rename from ReactNativeExample/.gitignore rename to example/.gitignore diff --git a/ReactNativeExample/.prettierrc.js b/example/.prettierrc.js similarity index 100% rename from ReactNativeExample/.prettierrc.js rename to example/.prettierrc.js diff --git a/ReactNativeExample/.watchmanconfig b/example/.watchmanconfig similarity index 100% rename from ReactNativeExample/.watchmanconfig rename to example/.watchmanconfig diff --git a/ReactNativeExample/App.tsx b/example/App.tsx similarity index 100% rename from ReactNativeExample/App.tsx rename to example/App.tsx diff --git a/ReactNativeExample/Gemfile b/example/Gemfile similarity index 100% rename from ReactNativeExample/Gemfile rename to example/Gemfile diff --git a/ReactNativeExample/__tests__/App-test.tsx b/example/__tests__/App-test.tsx similarity index 100% rename from ReactNativeExample/__tests__/App-test.tsx rename to example/__tests__/App-test.tsx diff --git a/ReactNativeExample/_bundle/config b/example/_bundle/config similarity index 100% rename from ReactNativeExample/_bundle/config rename to example/_bundle/config diff --git a/ReactNativeExample/_node-version b/example/_node-version similarity index 100% rename from ReactNativeExample/_node-version rename to example/_node-version diff --git a/ReactNativeExample/_ruby-version b/example/_ruby-version similarity index 100% rename from ReactNativeExample/_ruby-version rename to example/_ruby-version diff --git a/example/android/.project b/example/android/.project deleted file mode 100644 index 92bc189e1..000000000 --- a/example/android/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - android - Project android created by Buildship. - - - - - org.eclipse.buildship.core.gradleprojectbuilder - - - - - - org.eclipse.buildship.core.gradleprojectnature - - - - 1665038267462 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - - diff --git a/example/android/.settings/org.eclipse.buildship.core.prefs b/example/android/.settings/org.eclipse.buildship.core.prefs deleted file mode 100644 index e8895216f..000000000 --- a/example/android/.settings/org.eclipse.buildship.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -connection.project.dir= -eclipse.preferences.version=1 diff --git a/ReactNativeExample/android/app/_BUCK b/example/android/app/_BUCK similarity index 100% rename from ReactNativeExample/android/app/_BUCK rename to example/android/app/_BUCK diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index dfb80b576..4b93b1919 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: "com.android.application" import com.android.build.OutputFile +import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets @@ -15,7 +16,9 @@ import com.android.build.OutputFile * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * - * // the entry file for bundle generation + * // the entry file for bundle generation. If none specified and + * // "index.android.js" exists, it will be used. Otherwise "index.js" is + * // default. Can be overridden with ENTRY_FILE environment variable. * entryFile: "index.android.js", * * // https://reactnative.dev/docs/performance#enable-the-ram-format @@ -37,7 +40,7 @@ import com.android.build.OutputFile * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) - * // for ReactNativeExample: to disable dev mode in the staging build type (if configured) + * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' @@ -64,7 +67,7 @@ import com.android.build.OutputFile * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ - * // for ReactNativeExample, you might want to remove it from here. + * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments @@ -76,8 +79,7 @@ import com.android.build.OutputFile */ project.ext.react = [ - enableHermes: false, // clean and rebuild if changing - entryFile : "index.tsx", + enableHermes: true, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" @@ -95,12 +97,12 @@ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ -def enableProguardInReleaseBuilds = true +def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * - * For ReactNativeExample, to use the international variant, you can use: + * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data @@ -113,7 +115,7 @@ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * - * This should be set on project.ext.react and mirrored here. If it is not set + * This should be set on project.ext.react and that value will be read here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ @@ -179,14 +181,123 @@ android { } } -repositories { - maven { - url "${ARTIFACTORY_3DS_URL}" - } - maven { - url "${KLARNA_DISTRIBUTION_URL}" - } - mavenLocal() +android { + ndkVersion rootProject.ext.ndkVersion + + compileSdkVersion rootProject.ext.compileSdkVersion + + defaultConfig { + applicationId "com.reactnativeexample" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + + if (isNewArchitectureEnabled()) { + // We configure the CMake build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + arguments "-DPROJECT_BUILD_DIR=$buildDir", + "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", + "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", + "-DNODE_MODULES_DIR=$rootDir/../node_modules", + "-DANDROID_STL=c++_shared" + } + } + if (!enableSeparateBuildPerCPUArchitecture) { + ndk { + abiFilters (*reactNativeArchitectures()) + } + } + } + } + + if (isNewArchitectureEnabled()) { + // We configure the NDK build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + path "$projectDir/src/main/jni/CMakeLists.txt" + } + } + def reactAndroidProjectDir = project(':ReactAndroid').projectDir + def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + afterEvaluate { + // If you wish to add a custom TurboModule or component locally, + // you should uncomment this line. + // preBuild.dependsOn("generateCodegenArtifactsFromSchema") + preDebugBuild.dependsOn(packageReactNdkDebugLibs) + preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) + + // Due to a bug inside AGP, we have to explicitly set a dependency + // between configureCMakeDebug* tasks and the preBuild tasks. + // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 + configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) + configureCMakeDebug.dependsOn(preDebugBuild) + reactNativeArchitectures().each { architecture -> + tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { + dependsOn("preDebugBuild") + } + tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { + dependsOn("preReleaseBuild") + } + } + } + } + + splits { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture + universalApk false // If true, also generate a universal APK + include (*reactNativeArchitectures()) + } + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } + + // applicationVariants are e.g. debug, release + applicationVariants.all { variant -> + variant.outputs.each { output -> + // For each separate APK per architecture, set a unique version code as described here: + // https://developer.android.com/studio/build/configure-apk-splits.html + // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. + def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] + def abi = output.getFilter(OutputFile.ABI) + if (abi != null) { // null for the universal-debug, universal-release variants + output.versionCodeOverride = + defaultConfig.versionCode * 1000 + versionCodes.get(abi) + } + + } + } } dependencies { @@ -222,8 +333,16 @@ dependencies { // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { - from configurations.implementation - into 'libs' + from configurations.implementation + into 'libs' } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) + +def isNewArchitectureEnabled() { + // To opt-in for the New Architecture, you can either: + // - Set `newArchEnabled` to true inside the `gradle.properties` file + // - Invoke gradle with `-newArchEnabled=true` + // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` + return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" +} diff --git a/ReactNativeExample/android/app/build_defs.bzl b/example/android/app/build_defs.bzl similarity index 100% rename from ReactNativeExample/android/app/build_defs.bzl rename to example/android/app/build_defs.bzl diff --git a/example/android/app/proguard-rules.pro b/example/android/app/proguard-rules.pro index 2064fe791..11b025724 100644 --- a/example/android/app/proguard-rules.pro +++ b/example/android/app/proguard-rules.pro @@ -8,6 +8,3 @@ # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: - --keep class com.facebook.react.devsupport.** { *; } --dontwarn com.facebook.react.devsupport.** diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index fa26aa56e..4b185bc15 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -4,5 +4,10 @@ - + + + diff --git a/example/android/app/src/debug/java/com/example/primerioreactnative/ReactNativeFlipper.java b/example/android/app/src/debug/java/com/example/primerioreactnative/ReactNativeFlipper.java deleted file mode 100644 index fcd2c5812..000000000 --- a/example/android/app/src/debug/java/com/example/primerioreactnative/ReactNativeFlipper.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - *

This source code is licensed under the MIT license found in the LICENSE file in the root - * directory of this source tree. - */ -package io.primer.ReactNativeExample; - -import android.content.Context; -import com.facebook.flipper.android.AndroidFlipperClient; -import com.facebook.flipper.android.utils.FlipperUtils; -import com.facebook.flipper.core.FlipperClient; -import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; -import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; -import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; -import com.facebook.flipper.plugins.inspector.DescriptorMapping; -import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; -import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; -import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; -import com.facebook.flipper.plugins.react.ReactFlipperPlugin; -import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; -import com.facebook.react.ReactInstanceManager; -import com.facebook.react.bridge.ReactContext; -import com.facebook.react.modules.network.NetworkingModule; -import okhttp3.OkHttpClient; - -public class ReactNativeFlipper { - public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { - if (FlipperUtils.shouldEnableFlipper(context)) { - final FlipperClient client = AndroidFlipperClient.getInstance(context); - client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); - client.addPlugin(new ReactFlipperPlugin()); - client.addPlugin(new DatabasesFlipperPlugin(context)); - client.addPlugin(new SharedPreferencesFlipperPlugin(context)); - client.addPlugin(CrashReporterPlugin.getInstance()); - NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); - NetworkingModule.setCustomClientBuilder( - new NetworkingModule.CustomClientBuilder() { - @Override - public void apply(OkHttpClient.Builder builder) { - builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); - } - }); - client.addPlugin(networkFlipperPlugin); - client.start(); - // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized - // Hence we run if after all native modules have been initialized - ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); - if (reactContext == null) { - reactInstanceManager.addReactInstanceEventListener( - new ReactInstanceManager.ReactInstanceEventListener() { - @Override - public void onReactContextInitialized(ReactContext reactContext) { - reactInstanceManager.removeReactInstanceEventListener(this); - reactContext.runOnNativeModulesQueueThread( - new Runnable() { - @Override - public void run() { - client.addPlugin(new FrescoFlipperPlugin()); - } - }); - } - }); - } else { - client.addPlugin(new FrescoFlipperPlugin()); - } - } - } -} diff --git a/ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java b/example/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java similarity index 100% rename from ReactNativeExample/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java rename to example/android/app/src/debug/java/com/reactnativeexample/ReactNativeFlipper.java diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 238352a0c..14e5ce464 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,40 +1,26 @@ + package="com.reactnativeexample"> + android:windowSoftInputMode="adjustResize" + android:exported="true"> - - - - - - - - - - diff --git a/example/android/app/src/main/java/com/example/primerioreactnative/MainActivity.java b/example/android/app/src/main/java/com/example/primerioreactnative/MainActivity.java deleted file mode 100644 index e35702114..000000000 --- a/example/android/app/src/main/java/com/example/primerioreactnative/MainActivity.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.example.primerioreactnative; - -import com.facebook.react.ReactActivity; - -public class MainActivity extends ReactActivity { - - /** - * Returns the name of the main component registered from JavaScript. This is used to schedule - * rendering of the component. - */ - @Override - protected String getMainComponentName() { - return "ReactNativeExample"; - } -} diff --git a/example/android/app/src/main/java/com/example/primerioreactnative/MainApplication.java b/example/android/app/src/main/java/com/example/primerioreactnative/MainApplication.java deleted file mode 100644 index 8fa08e222..000000000 --- a/example/android/app/src/main/java/com/example/primerioreactnative/MainApplication.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.example.primerioreactnative; - -import android.app.Application; -import android.content.Context; -import com.facebook.react.PackageList; -import com.facebook.react.ReactApplication; -import com.facebook.react.ReactNativeHost; -import com.facebook.react.ReactPackage; -import com.facebook.react.ReactInstanceManager; -import com.facebook.soloader.SoLoader; -import java.lang.reflect.InvocationTargetException; -import java.util.List; - -import com.primerioreactnative.BuildConfig; -import com.primerioreactnative.ReactNativePackage; - -public class MainApplication extends Application implements ReactApplication { - - private final ReactNativeHost mReactNativeHost = - new ReactNativeHost(this) { - @Override - public boolean getUseDeveloperSupport() { - return BuildConfig.DEBUG; - } - - @Override - protected List getPackages() { - @SuppressWarnings("UnnecessaryLocalVariable") - List packages = new PackageList(this).getPackages(); - // Packages that cannot be autolinked yet can be added manually here, for ReactNativeExample: - // packages.add(new MyReactNativePackage()); - packages.add(new ReactNativePackage()); - return packages; - } - - @Override - protected String getJSMainModuleName() { - return "index"; - } - }; - - @Override - public ReactNativeHost getReactNativeHost() { - return mReactNativeHost; - } - - @Override - public void onCreate() { - super.onCreate(); - SoLoader.init(this, /* native exopackage */ false); - initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled - } - - /** - * Loads Flipper in React Native templates. - * - * @param context - */ - private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { - if (BuildConfig.DEBUG) { - try { - /* - We use reflection here to pick up the class that initializes Flipper, - since Flipper library is not available in release mode - */ - Class aClass = Class.forName("com.primerioreactnativeExample.ReactNativeFlipper"); - aClass - .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) - .invoke(null, context, reactInstanceManager); - } catch (ClassNotFoundException e) { - e.printStackTrace(); - } catch (NoSuchMethodException e) { - e.printStackTrace(); - } catch (IllegalAccessException e) { - e.printStackTrace(); - } catch (InvocationTargetException e) { - e.printStackTrace(); - } - } - } -} diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java b/example/android/app/src/main/java/com/reactnativeexample/MainActivity.java similarity index 100% rename from ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainActivity.java rename to example/android/app/src/main/java/com/reactnativeexample/MainActivity.java diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java b/example/android/app/src/main/java/com/reactnativeexample/MainApplication.java similarity index 100% rename from ReactNativeExample/android/app/src/main/java/com/reactnativeexample/MainApplication.java rename to example/android/app/src/main/java/com/reactnativeexample/MainApplication.java diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java b/example/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java similarity index 100% rename from ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java rename to example/android/app/src/main/java/com/reactnativeexample/newarchitecture/MainApplicationReactNativeHost.java diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java b/example/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java similarity index 100% rename from ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java rename to example/android/app/src/main/java/com/reactnativeexample/newarchitecture/components/MainComponentsRegistry.java diff --git a/ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java b/example/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java similarity index 100% rename from ReactNativeExample/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java rename to example/android/app/src/main/java/com/reactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java diff --git a/ReactNativeExample/android/app/src/main/jni/CMakeLists.txt b/example/android/app/src/main/jni/CMakeLists.txt similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/CMakeLists.txt rename to example/android/app/src/main/jni/CMakeLists.txt diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp b/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.cpp rename to example/android/app/src/main/jni/MainApplicationModuleProvider.cpp diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h b/example/android/app/src/main/jni/MainApplicationModuleProvider.h similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainApplicationModuleProvider.h rename to example/android/app/src/main/jni/MainApplicationModuleProvider.h diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp b/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp rename to example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp diff --git a/ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h b/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h rename to example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h diff --git a/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp b/example/android/app/src/main/jni/MainComponentsRegistry.cpp similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.cpp rename to example/android/app/src/main/jni/MainComponentsRegistry.cpp diff --git a/ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h b/example/android/app/src/main/jni/MainComponentsRegistry.h similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/MainComponentsRegistry.h rename to example/android/app/src/main/jni/MainComponentsRegistry.h diff --git a/ReactNativeExample/android/app/src/main/jni/OnLoad.cpp b/example/android/app/src/main/jni/OnLoad.cpp similarity index 100% rename from ReactNativeExample/android/app/src/main/jni/OnLoad.cpp rename to example/android/app/src/main/jni/OnLoad.cpp diff --git a/ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml b/example/android/app/src/main/res/drawable/rn_edit_text_material.xml similarity index 100% rename from ReactNativeExample/android/app/src/main/res/drawable/rn_edit_text_material.xml rename to example/android/app/src/main/res/drawable/rn_edit_text_material.xml diff --git a/example/android/app/src/main/res/values/strings.xml b/example/android/app/src/main/res/values/strings.xml index f62532a32..e79194b52 100644 --- a/example/android/app/src/main/res/values/strings.xml +++ b/example/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - Primer RN test app + ReactNativeExample diff --git a/example/android/app/src/main/res/values/styles.xml b/example/android/app/src/main/res/values/styles.xml index 01b9e970b..7ba83a2ad 100644 --- a/example/android/app/src/main/res/values/styles.xml +++ b/example/android/app/src/main/res/values/styles.xml @@ -1,12 +1,9 @@ - - #000000 - #000000 - diff --git a/example/android/build.gradle b/example/android/build.gradle index 64db47685..8569fee3a 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -2,19 +2,27 @@ buildscript { ext { - buildToolsVersion = "29.0.2" + buildToolsVersion = "31.0.0" minSdkVersion = 21 - compileSdkVersion = 33 - targetSdkVersion = 33 - kotlin_version = "1.7.10" + compileSdkVersion = 31 + targetSdkVersion = 31 + + if (System.properties['os.arch'] == "aarch64") { + // For M1 Users we need to use the NDK 24 which added support for aarch64 + ndkVersion = "24.0.8215888" + } else { + // Otherwise we default to the side-by-side NDK version from AGP. + ndkVersion = "21.4.7075529" + } } repositories { google() mavenCentral() } dependencies { - classpath('com.android.tools.build:gradle:4.2.2') - + classpath("com.android.tools.build:gradle:7.2.1") + classpath("com.facebook.react:react-native-gradle-plugin") + classpath("de.undercouch:gradle-download-task:5.0.1") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -22,7 +30,6 @@ buildscript { allprojects { repositories { - mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") @@ -31,8 +38,14 @@ allprojects { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } + mavenCentral { + // We don't want to fetch react-native from Maven Central as there are + // older versions over there. + content { + excludeGroup "com.facebook.react" + } + } google() - mavenCentral() maven { url 'https://www.jitpack.io' } } } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 61aa2811c..fa4feae5f 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -9,16 +9,32 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx10248m -XX:MaxPermSize=256m -org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX android.enableJetifier=true -FLIPPER_VERSION=0.99.0 -ARTIFACTORY_3DS_URL=https://primer.jfrog.io/artifactory/primer-android/ -KLARNA_DISTRIBUTION_URL=https://x.klarnacdn.net/mobile-sdk/ + +# Version of flipper SDK to use with React Native +FLIPPER_VERSION=0.125.0 + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=false diff --git a/example/android/gradle/wrapper/gradle-wrapper.jar b/example/android/gradle/wrapper/gradle-wrapper.jar index 5c2d1cf016b3885f6930543d57b744ea8c220a1a..41d9927a4d4fb3f96a785543079b8df6723c946b 100644 GIT binary patch delta 26784 zcmY(qQ()d-v^1Q?Nn_i#Z9lPX+tx2m1#f8hrovJLl%y?wftF_nI|p zW>$X_MC~F(1N}F|RLaG&&Tn8~xDa4q%*j8=v621@;W|ljjXJ(Cd05I?9UtkX%%|E)oUGMcKC=et2b3kF`*%WWN1?yG^FzphaRHAj@ z+7)ldMgoEsv*yfZWvC}nQ!}N@76J;sjs@R?Z&O((h^(4uFowol9RI28OmL{pQ`1Y6 zTNGpaT*Hs;s@pDlEbv*h=eyI0P(|VK2G?r(lL}ABoXpGRR?bjNl$=Q$Shb#ct>4hF zFKZf~8PTNT@Ybk*N~6Jcz5b!9l7P3@r#h@KZv-yTlg)iZS1MgY1^(W#43pc3-!{@T z2-%#mB%388qzDSE14?Co8wpKey1}pLxtWx|iXRc0blIAD*;k$}PtTjl(QhLc8o|6e*SqWytp^W){ri{BV{aZ}snt`-mJrXtFZ|*3 zb0gl}U&@ro&beMZ-{zR+RoTzg?&0QJn>IzwuIX*_txi=WofJvbe9yMTihZ9OV^gb! zZAbKn_-Z3J{`4dIep4|V8E{gTgMfqw1A~PH0|OHUv-!qQO$-GFM)BVf7Y-_|2hZooSr3#?kZ4vUtw+ruLV>b8!17 z+!N&=w${aT&oUtS;E}%@1TyXEpIU3)`TK0Z{U!AA!5UQj0+IqlXEPjvg2NWiNMWHg z!@HTd6-{L!H_?knwS^bm_FD%XWO8w|prsj`uEkeU&2 zQ~LjjGW4eq{cfW2XCkJU1c}K6G#dDgB%&zH0@`ANqcfMa#Wgb>H>BKM%}bH}1#O%j z;WJia7hywV>##X>fvo+cRWg*uWO>4F6mxoI#4qmDE6t-RQJt|ngK1rN0N6e2Zfk2A zyn5uFbe%x@HD%qE>A|tF_rxP!z)*((5p{9Scom<<#nGHG!`J4BH6|GCSjv0~P3(1N z?U^WWX-_^y;>Sc?i)M1>sA+k6+p(CXaQcvTcB?UlsMp#8PHnoh$kLf?n4yNRE!HVf zVSqLi552<#>cD!(y=KsZ0wT0SgQn9F^1K#^5-7a5sU00k^Lk{e*VKl}LA^1qseOXQ zwH>Bt?yg*oSts=Ij+qv4?G=1-T{_CG(V0faZTLn&5v51%xNBM)5) zbBum*`j)lPxhEl@C|j+`6qW*Guuyo#1Hy?xO&&MQ#d*1R;12>ifLm>fv0rvHj5rZF zbTGq~VB}7ZQEwKbl%E@OVVSExH(uVWjf%A|9(q)WAwHXyEEm%bTN}0kkB|b1cHex$ zOIZqr&kN5`BlDsij5twQToA$!e;sWGR*klT;UA)exj7Ut!PM$CaZ#pDXg2{ti&nJD z?yp!&ryHWWp{fA|812eI8SUAfm-sHQM`#=u^}_cK7!&H(;&H^NBYZp5gWA~(4!OAt zD!astwBP*^LVQa;G)GUz@+edf*xa{iBOYDafAq-u*q-becbo z+Fq8@stFDvN@Qf=|W9DXPLkjg4)A4W5n$FY(F$mn{%C=of6BHnOgYD14P^A&&)-UR1 z<;CU&?;$oAoi!nfyF(k8V!-iXDuICz7L!dNizy^0E+Hx2V6GE{2HV!ezY4t2d-ea^ zd_e@~IC1=g9YB-;9LZA1Ri$UVD&RY#6-{Y0+#L!4zo{?Sjp9!_-=fdkc)CHeU~7_| zz_VY(x(Bl%N1YDk9FelZ-97;XwXx4f!b+_8?)$EB+_GHejraQ zc|3w-z3Mx+3kqfQFR}R@azxb45^NDh9v6NI&kR4g0~RQ}e!BR%Y3a6^dE_FqLj}qS zd>%!hC;RX~A*Uehmxf&G7(b|owMe4j3hs?^IB!29>}S{y2~Wk&4BYLqe2K@a%H@5l zqSsR&fAq#pXYU*6r%G~-$6B)>qK}JH{I%iFP3V0Mf(+abe1qbIk3JE+zk~t5iMmQL zZGNEQDD&j1SJEuo{uC*PdtwEr6N^vYBCII;aIR?u! zZob*eqjUygzJKGT7XAg6YzKXZ=+mOt&jASr_6O!aJpKO>6o7$)k+85d@vwJKzQ7>@ zN;P)W@HH?#9l5f@EznhEXfSj|Ht@hHHR$1O?DRG97GSja|Rpia@YC?2w zMwS3)!-Su~;XKlhAwGOZhq=e@jwR5SRQb|#`D3bTHa$H&pO(fdt+0@RKxHr3n5T7h zl+|h3L%^{2+z-=8y&9?;4^}Ij$na?-`f9mq!!OJT&9T4#J`7m#yxJ8QI$8q0LFRpL za!Ml=I8TkTa~tp+NnKwExwU!;5vON_svpkPx!$-30$2$c)-@uoSzSU`bBz0@5Hz<- zU6%His|teLVD9)niPui8la9LTac&DV2@MV%B~x&9)xxv=!>#mD&Fd6Sn$gi!lLsa( zGJ{B;TCz!X@AYNzFv9fUu+9K;YMiOsLpHM%6xnvFS62fURacL8*#Y{Z(<2_ZCADmA zhtjN@M(grq#$|%@B&$JnLpm?DU8v2qBHW$Aj#hK5 zUw9*j_Ty|_saDG1x~GF0-yL}D3keCa;tLiBX%Wz>MImmqGoc-Ei$Vuw;?>4cM}_C)=x-s(dYqRw zy~0twJw*lit%8a2`)&Y&n_F4gwBCG}m9vXk@t>nDdrWV86@jX*{TS=Gg_^b8d)sB9 zzv0u*HgmN#K4c#D$2o@#u)FXGtTk5mkJjI1g{&0+B1TzWyPZ=mS>M`4F7V=_9{IGp z0K~$_e!P~JwuoB@%w>f(M835f+9w!}ed*y_bkYxb?}GejX=Wh4`hu&_IWr4%h%#Nt zec_!?E@ot0Qhs+`&Xe+qw(iBUDCn@~acX|EEuMlU&X`zlJOz4g|1nvZpMyM)5^P>d zt2t);^CO(;pAp;zx9T%L=|}Ll_b8M1(m$n9?1c`^_yck>w4UUrgeiCF z4CAKQN8$^5{uL>JuyG6-;{^q^<($n>1Y!+9A(zH3KDHo5XoQW>!Ob zzsE(ZBA2^qUG&z$q-tkmE|*~COfKS}topV-M+u>cex_A~UsPw8r9OTt(Nptx`>gkX za?bxE8IfRJWDQs$YDp(2%-^+-tEa^c0VAa za@UV8Kp7~BpM>^x9uWa2rgzFe?Wj7y6Ho7R)JXP;2rjxvb+b@PvCrJNl_(|qwOP`= z_ot2~4*fRgNc+<#VnAKm+&79;-&roHu-uy0wd?69>k(@>OMyPB$PV5Q7syQ8hr?P*%jrt4KEf^8@(kcXodcYl{nxmuCx8jeg_tSj>5^qN+A; zY0v>wO4`mUkIQU%Db_+t_9={@$DFM_9gj!ZhAPwlZeUQV{Nm9nDLt;R4p;8cu{zbn zwrG#?^SZ5d2<(B7QwL14nsgQ7k1Iu+VS3OvuI+j)PEG?Wu%$=|T-lS>{T{ci@oLMj z^KPy=G-^g@HR6)U_Ol3QYPM3#cJ><@B?y2QM-u~Y^gL>=GZWcTE%>F!e__q4GR!7F zxA%m6t91nG98p1}*5|4!)P0KUxCWFgXq2R2B0N*i?`|kt5l?KnVhB zLw%<9#M(WWT!Q!bU1-u}#AJ;E0;*&5dZ)jX26}ykWn`fIqI+rjZ!q@J-+}~6o#xnc zMu@dX@;gHNjQ5??Z1?_OglV8UK6W?uZk!=FwPS(FlcFfNc`RbPcv3auV}FRyi8|tyt`Q z#!OUr`^FN`_yzTUOF6+=X^IvN46K3*42<-DOBojUpYeJ`2hLk>IaO#(cf0wKU_*9a z0t5@*#A678h5KXtgAj)PE=k)n1YOL#G0%ariK3*OA%!xf%ugG>g`w2FFsyWL4vlv} zq<|65@66u)>8vG}mVK(%)B57`xtCg}DI9c?eUt5f7x0|tcinlC_mJ;)-D>nT?Z%7- z%+r0U&@Rsd-lxK6eFCQ+?bd;nb6?)SC5gRHUEWgD0~Px27R)$;BS0okN$GL|<_+SH zIfi@_ObBNXzfIe%G3G1a(|xUx{D%9#57boZQ*~HX>eo4kM`F2_Mg|CMh}Yi{%uiw3 zYZPUk6e8u-HyG_f5$O(o7j*x|d_SiL_{V1$GGw`FAbFo63MuV9j68$SGoVhZ&NDpB zW%q0jE%%6VaKf)v>7NuX>)(*w)rS=P*WP?jJ$jXoQi%*lu%jfap)6VlvFUq8#kCe- z=;}w(nNg=p>A0in#bs+YeE9ri4N!hafc zUfwi=qN&_fJ)k2+(JM5|tEV}S&Ek7YU%iJSg|9q z=6dQ%rLh=`ofmPWf`pu_W6xtik&9ptFD|hnUZuJfg$16m`F*ha?rv8Luj%mA?*hkB zQHGnF?WL{eTEEqmr)}kia(w$-zsCSyGxY>S?uaRK3a-s5^%bmyQh7m3$K_%hYb>k# zwkM}QbKBkY7@ONO!=f-MoUGI9n;UK#PJT2k)wK{!go9>tb+zT)-M?x9Wd6(Z@1CvC zkIz@<@SdK~;#V0u#Dn`snDU?7PaYRBY%HC{cY7u-@!`35ht3Dis>srDqaPr_M3$tu zTvxO#IvlTyV(4U;U$s(fm{CKzm{B%Q70gs8LsKy0n3bWY38v7omJ&F>Hk&loV&H_^^0o4tc)Y>+J5j+d4JE1JKU93viLgkXGxBZ0(GSoEjR6f})>)u5t&?0|*CL-0 z4z*6Op+iysjoO<{v3SZP1R*6dC4UWny=>#EA;g7 z8OB~p)6Yue>k&R$g}t!BReA&*kKC=`+4X_QE3w&5eEB){}9=_}mgj5h)d?dku5MpqihU<4pD? zQ!-O&g4NE9BBhdegM3-dr@4R3@-K3dStZm z(Yl^Aa{xRV$=an?gaWBu_PAvHN}35-@j93N|EXX7k2 z1N9K;xi-AUhK>^N+F*kTdg^jl4le-<%#Q_cy8I4+iI<1W5j->$Hl325x#wqPp|$Vi za@(0l)ghRskJz2N>m15myzb89$qj9 z>s`wz_uVx7PSG7{uf{>bg99EAg3Lb6q?*t1NkP2wqV||KnveBs_STB?jUd3VnA}~a zc;gH}q1!-!(Y;4~7ONP}Upz(XQY$V$wK29B=0Hb;OZ;!%;rJ9F7M(#|TB5-9%&}QK z(^6=hy@KBZPF!j3EY+}-At>z34B46n7gc-8x?^iiK`2g_) z>6dJH;i@~8K>35Q*S4B=3AD@ca6HEb9oFCvUpf@jGu}+a45<#$)2FaOCEIt#K-q)x z*A02^EW*VX+(5B|8`zEff2eSHcYK_hx{HYwv4<0vGbGRvNq6%>qdP}dl5PZ1G%P^L zkm+7okj*&8x%p4$`%s+&*5GFJB3@d>kDSxEm}4If?K^OLZgDm#&+Mgo>=8J>BZZl5 z5)asnI}tIZve=+M$$?VBW0cDKatGM27>j!j7rx!0TUt3 z{MI4~12eQ{DBQvQ=5JWp=95-nG2nm}$O~q$KY*=?pV1o+Ji8bgty?=Sx<5MD-El}6 zVqf1LTS>~Xfj(+ORjkvB3ub@Hd(rlm!*}Jpw;(&VEq{wmETpeMV zaA~XTh$u}>D=V;Uj7f{^3k8@Pti*-Osl~~u1)rBzTD}63hFS;2_xv(il58O7fa?XH z8F`Q^Wt{~LqXm==ad|!g%pUkfu2A_Od~*C=PrfNvh0eAC_Yo(7S6+s+vAleAzV8K# z+)1%F?S^V@G28g?jnu@EJS2l8MrW_fuaa%MnB^1PCcpbf3YvnxmjK7$Y9J!cBz9$u zZ+H9XPk9P2WwUkkGqFATtaW@OsU$Alg)NKL0W_bYTMq{5xh`qm46b-<}l!PRwV}gAi`YGf$VP<+DMY_={9MvIpxX&SK!~PXHihzI;M=oU$I`1tj zP%~nVP;@bS9%Z?cmsNg?4Odk8&dF{@noe8VD!bP{xBG+CHZCMkTEIg0*K`Hosf2xv z(P=5Sj-s&=a}7k42no>bfTEfQx7}rLfp&T8E9lR^*0%7lO>JwAwDie+x8}W#6pd>k zo}wPNN>w4$JjUQQq3oRNw+~u;v^dqc&eyM)Rle0r&%@lQ`kfJFD-bLU-ztJJg2N_kP_U zBcW=6cb?E+TS;F;3v+$xy+5Ah3NA^wdG8qOE04O~(A8Z-2+R)srPy{NS3;TRB{^a= z7e7vywSmh=FhQCxU3I2*t2K1^l;3&E1HrA{m7yVVe}WseJAHEWA zTh>)QL(`Q_U!bxra(L9{)hrl9Y=j=#hu_sFQUk!ZFb0IBTQ7e92Ae2ziV7?t&&+c;dbb zkyKUV7Ds2TAE@i70XhDhfhR6m1_xe*)OEP!yb!G(W*pBv8o>^E&I#f~Z~iirw!v_9 z1%PT7nxn3?TLmVKP4Q7no^7Q8UctyZ`AJ(>&c-=~qOAGN5BKa-I2b+)rGhca>Eg9_ zuK^mSe+)Z=vuckmaa0g?kh9TQR#5>DN=bc?b=4`wP_FJ-6Js`eB8YhdF^Y4%$uOCe z+}8z?Es0f?YIF_`9fO*0DraX&l7`BC3c#5C!{21_I)?hmxqXD(?pi4vIuga#QmFvW^EsR$I%v;4|z}aF(Pf1_eKXyFSq3CC&=9N!iVh51NVV` z9!A{$QMoZ|o%WsF!v8u&mTsS0Y}H-^rb6@%Tsj>tc&)3CWW@QEQ|L}+;V6}s1;8m- z&sAyazK5rDrt5UJ&ek_sZ)tthpS6$_X>$Unn_3uiUEbuPE4bV39lMfKbw9%>SX2L3 zGj-faM`MjZmtWU+R=mVy!tEsw#yYqJ*KTq*tV(yTs)zbamHSDH&`pkg$=!WlR9@pP zi`_kQ$0JL+odP!yNI#*Zo zaUqRH*=H91i@+chvt9NatmfZ|_7sqBHCYc81cTx|m`mA$c-n=hzhT3AB_VPReq2|q zQ9_>K1+f|md&Tk>+yR0kHWO8uj04grvnAcJh^EPsphB_V3N)+(FT{D~2ec6X+mX2m zIhZ}Qe1k*zbTglSJ|p=c-vU!`Jd|`t&zI(YVB;I+bf@Q@bLc@^(=Pu(4jh`Gcn?Fsjrl#0yt3 zd<_b@F?`hu+s(n@(fLv5(ZRmt^%**uDzbv^WmSYyQs8nLjgu~EHBX}(#GI5!;50DI z8oq*|rXi7DP5cfe3+Mv9Y^*Y}jja-^&&Mjwz$htxTXXGOp$AGRoB@MM&p3YxE(ppQ zA$qshS>bb&3JFDUxAlKIIKmtumCW&%hDtsO6PE{O22#9UoIUTN(BE`Kc|cXm4c`b{ zO+8@bkf@r=AwHd6)Cq?+on6$2E8?!df!VN;w2_jW`)gShTY<5vsR>JM)cz6W%a{s^ zfg(}H*`%2vy4(%dd;q`_z(l-w&ri+&I*e1+rRne6779a($Tqy8y^&{*hHta1)c^iI zJ2SrK#+k8QO04&ENW+Dhx(7SeMlQbUzWnNGd8)g^H1^%yAmZ_wZ^x09$lX+6_cmOd zgp2nA_dzNmB1=E8d?y@a)~|AbKQjl56Jc2No3&<>UQ_D3)*FzkAKN`nyTwVzM)j^i zw)hu|rw_Z(_j_+zoUJjgm`ruUr+-Q=w0ekKVqSYc(l6L-RLB`dp7UCn^+Chce(;BZ zyRk>=pL0R||I{9H3Z|sdUfjH$A-USD+l#i}p*|>mf5~tF;d%YP6LV@4WV-hwqU6?< zPU{Pc8=M(a<&6Qq$S_v$({eKCCwVZz83H&+&`44~>4~-sR;n6Lvx4SWMooN!L^{D} z^U!tIqC3<5sTjU!g{uRm01~6+Q`rhoU|czZO71Iowx3crMF+kucb8U;*Hq=YX3z=z$mIV) zP}VH2F3q}~j^BOg4LDvt5mqQuDzof;M}+-cEBw~a$g%s>Ed~+2Lx`trCk}ym&Bq}d za0*E%kVgMcljB#&Vy@H|!uuUv(JAM-7}Gk)NhZc!d#r&`HGb*CYhfrRar4Viw}goI zZ-7nWq>UE+M`#a*$2@e&tvJh|qOSN?SYEeSDNqJ95^nsc{~_a31Pb3w>fpFBJtzWF z@zdw}#-Dana);w)K*Z>u!E?M7{@ma0zu*1BB{1ZZMeddZzW+bjDfwm`ulWy7H9VZM zYgcA9-2e0XW66bpBG;lQvV2MYC^C6g?Lib$I0}Cf5j2Tiu$Y!4q-)2KZ6Zp=efRPt zsc6D-Y-$&H#hl~@@L@$S-<##LU&;GCuU60QT}>nbuRWxsds)hS&uHNwkdDXi<{etkQi5AxkNm)- zhB|1Ju1AciS9PS?*>Ip*W6EW`Ugb`=M=|=B9@6vgy}xwVBls9S^9kIqcb1soPAa#W zm>%BQ(Yieb1N`a?so>Wm{Fs|3W8Lauw~m-M10VMnzg)fZ3AS&>VBR|liZGCWzrtwv z!y;F`u&B}jQmkeBWJIbgb-UzrTzg5;{LX6$^sYnFAKuyn(f(qs8jHm1cA!Tiw#CX=vmHfmBWiyJF6K)}Q5gPguWTrC2IkPGjj5X<&L3DB4?}aN0}VOSJQXQ40JyA)23pB z_6VAKVBJhdL_u!5QV;xyNqX3RlPC&LpOLsxo@pJGoRk(k+9JzSFRX`>yepOEMJ3(A z3gB4yV>@c<>o3CBJ+@a^un@=|7#(sLf%uBwHA`hr-bP(aCns_-%r&7rg~~tp;#1-N zh+uw2?q@-!#6ar$A-A4reL!LGb~bTd+DK>##0I8GOc#>cT!Porgyl+JSIela&*FUi z=UsfEF@HjI>Z3h9v42Ed#D~>8?+<3!!10Aoa|T+jz^2H9Lf}wAgfP=B%Pda~R$AWXC18ZfAf2 zeq?U7Z3Cw1Li-ebA@$#D5ETfw!PVLo?H2!}0x{Kkfsqc1CB04i^z`l{|P9LT~-JY>WH(mL^La=qHpgk9B6Fu`uAb$SP<8na-@hV3eC2X)qR#|ItRp!Kzk8uO$&qMJJg` z2A)*`tycN;2BVMO?5u&>%*iS}Wg!*q6J0Ss><`i>c?c!5t@EKNoe8grOXh1Tm~RSB zhT_2ERC*p&8ur2IrotOZQvPu7Qj5yO>Y8tkG?bRmDqB(*8N$F_K?fLDl-VqYuPWsy zf2YQ|v9P7IWaP+wx79CXZ+ge(ul4EL_I{eFaZq$IE+k^Ry!2#sDl)+ERHNLwglbbL zrn3T>K-tvIW`Cc$S0!gA0d-4i#){AwL9$k4cOfpq5dDC7&7EU}y!ftr+VbXGH{>H& z#)7kr-G(ow#`!X|ssS8m7*hMDoY*R|dSK8*9H0mD9HvU-(QU$CcOGj55emi#8cf5K z42YWtE}k0;Ngl=3W<}|Gr%sHuuuSJbt}+rSazn_nyOr%qG@TgcVK!Z^90jN}$0k-V zIU#F?yl0CoMz^L<9W8Fis?$+bDjs&N#7$@5vS8KamBz$=rhQ@C$*?P@|(FlO`_*jE+XQzEn7_Jco369f$tv#%Pp zboZa?dDxZOY=D!7`II8kp)>GKCI#<|Y5DnJF}k?6>Br)!adptdjTqE&T1Ufo1$PRi z7`QP@=C_nofyL%Dg@ojr?|6BEQGNy+o`(VxgJnKsyn~a9r^X+Fo3O9>)IrFcux8kh zo^D(a7CBxP)0{KU=F{{%JK3D|Vfi~f?QWN(rHOqZeZUA}amHQH(86TnFe!9ne(^Ee zE?C~wj_TtcNoR*nPPvLji6C1<(QP#Ai>C|CwqSfxuL_MqFP;(nCj@8jz8uXJJ$#DC z^DDTn7d*QfO+JN|jB6+%nA8OW!e~jlZ(jW%syj`el3B1 zJ!qL@mN8>SPb5_xy8R;t1!>Qd+CTl(kWXGh4sb!0e&GzoBPuBwqAAMzS9pNa`Ls{* z#wxOu;Oc1n6P2~Y4R%PmqB_-Udh8LMJm6iH0l@bw24hoBpaKL*reK&>Eozv{$B5GmYI&Ew{ND z%Oj+^xKBhL#Qw5@uB@h=KKO>gRpR{M@N8n~O_2Sj8M~iGuRf1qt!VNfm_Z#CtQU~p zP+DJ6=!c*ueOE#sR&_+y2B!~OK5dIH3H*bSc7;;2CU+e1BwLkjDRG#@A)9N0C&~v) zP~}9oCPh~L5#>VfusL9UO5(Wi1RYTy@-K;JM2FKW&oUaW&hDLWvOZj%$Lnw9dv%CY zen?zGvHAevfMU3;#w(Tr|K^D~gz^RojhxB9t&AgW25NrQ)1Q_Jg=&M^DVXk|wyZF$ z`J#DY%`4*)S~jRJH7ZBq+_jc!x(cs6o~pi38gct=@23*Y!>Q#XZ~{YnT@OIAIpYf= zg>t5z#((k6i2v+Evj4FTnNR^Ae+(_cuii`6N%J6%lsTyNGOUehQ7r313KU4R=y?=t z@URkCc~9zWkfqhinhyBif_2>l-&Oj*LXFX~jXGlUqyI$gemTu+)=CRr5I?C&etcMZ zCT~qAp*_4F{_?r`xZZhw_H&y3I2nips~HeJF2uz`rX@1`9Xc(Z1tSeeeP=^MnuIk` zA4J7vW9#9WFlrCKCCf9K;%DC5D-|F(*z?2%^~g(c8_o<7J~&ew4j6fjds7;YP}Ha0 z;cXHQ+GRd^koM$R{1P3-zoXjraihE*(95{3?eW*6H1+nQ-1mk-HY44f+_*`(W9rcx z1=C9$_Vf0x4|@*3{X_wTPzGVdUw+0?`DY*t4KBpXy;Q_{bSP0F3sdbKpef3{go!Mh zENh!+vo4>ms&QXLP&E{|X$#g!dC*T>AcCjLqpvP1b~}D&n5ef8AUQZq>m1`M%aEUr zx<0!mDVxk-u*?kgB{Qp*r&eCIS&OnB)I5m5B5Yk&mu)WowY>>w%E-R&sd5U6pJ%mR z__Be5ZIv<$v!bk#Q8VC7Vfn;;eMjhmkB(a0Gi;k-YM-I?F^VI!h6?Gyie z#}%hrx*Y3+`lh4Rmasj~%T`iBNY+n|9zhSvTjMrs)$4rqZrOoPsv>7B3TRFhXDw2b z)s}bWBet&VN=X2XoJL~T!XaIk^a@wWh!lnYLaN{|x5Sbo3+$vMmNigWne$-`yFO$9 zW1i}IquWMeM%u)Ywqn)O4@WcRuc-TnV`lyJ&GQj#OkL2e_-zeP?^J?N`BgJbYlSuuLBdEd-q-5B`Z zFlPD}_+Gj_JNVvsH~9a^o9us#zy0<{h?AM>pcjTe_6|BMN2&UT%5A`VQ0xRmko#)W zAhGOAVhAz&s?x0*oUq!h+q>9+&%5eC{cT0a*ezfO)o1e2CmF)BScjW6bQvZb-C;pY zDVlKLg%()9i~Ld?LVZgO1&kW~=s;kBQ*qE7{jr*rrk2g>w5ZmqF47t=nQV;)>tScR z&ZZ}GZnU=7w|4`dH(b)caCYipB`>XHt0u;)c{r$ubbr4Vo!XLaDz!VIBTDZ4L78SP zbOv;;NIG*7-E{*``ot17jh z1RrO~1<+TN3-V(pm-_My)zi_@!q+6m*d#kVHE_%gz{I@f&5jd1K?ru!+Y$R@f!Y7u+Qf(@_jJ!N-|QXt@}6(pjo;`` zOhtg#CxbeE-;a`8LG{~`Y`FTr_P``#y0IMTK6B~O5hh1-2;$c>`#Pp1(iMr0Z3ujg zYZqvmGumI;TT3yWYeKK0)QFFfC^qp#c}j3nlTce1L}jRsb(_ z7QEJ!garS^Y=+c+?Hv2&7rIig|-*S@plk)7y;s;-!)VW`D}$F#7`#@QE>X1bG#CT)*w=uWuh6ZxTlvMy!wjI(!%G`IpMwo1GCpNkwP z9d!?PIihxoDc7J>BMs#Li4JT;{5SHA00T4(S|l|Q$9y&s$q|z={J;I92%~Tpj)QvO zPBw`D$>RJihH{u8A`RYTZq_ZAArWOs=(4*mitG`6?m_$(@(y0;FY4gQQ zAUPRG!NH5v_az*<762a-lp7pIdaEk?W$6uUwQNAV0{=I`RI|G~76AU=iV*aFauQf_ zA~|L^jKWj+~60jVOs zY^?eSz6g0!HmQu&#<=FN3>+e2XUTA6d7p&~Pk38;+Q?NFDlD?Qd7cE!_<34B&+ZWS zfiW1bi4geUTB2cCT6ohe@)APv&fv=!i;j^2p(=l0;_12YI0smC*H3Obk2q@56Y*LBpOj(SUKd8L6_VXH$)pfBA=Z|`s{Ucg0 zbv){pZmTqn2j6z@hQ#-DNGTT;iurUK8^t9@Wfcv29GB?^{U+(_T$dX<^^Wt%A8v~P zLw?rUe~cSt|ACKR*N{oo7%{&``D>U-70g0;C0nM$HLto$27JUpdicpDpJ^m%*7Pqk z83)eJfQE78p)!OzzVRt+c!cJ);JqZwSM5_UEDB=_Sdp7~o^On@bL(>ji_|ne3u))o zxwOfnn#D(JVrf?d4ZLuyE>KzuvHKwa96BvJbP|>0ep)FgUyULF~wBU#hH&jtmZlu=eX;iP=th_rk`sYf{gKe-Ie z_+m~Q74C_k_%d8f5t>bY7rMX_ZDvWH3%`(9@U>xzFYexu?hA9>>2#gidY-%s?>b_Feo7KiNr?nykRq_N5~;E58!KrJLpm!RYe!B6SQ&i^><+|NXd{Q(;lPm|$So z%wS+7|I43Y{x^D8s{`k+zPv1K)yC~3&?W*)9#f3=n+S~yM8g$EGJrz!Z6T<(hk|+h zl;La&AJkGSH==8Y{h#u;qMI&@tvj#+84GWFu@bP{=Gk7`*4paVYTf(Q>14?Uf)4%^ z0=#ds{bmK98NS@EJGqtmKKq9x)DN<17KwzEfGns53{bOjmZXn$bSZ6Oekot7bLQxg z<32ILD(D10vpS_r_GCn#Q6X+d&bw04>w(QC&8|nRJk!5-u70UwW!8gFaJZTyFj>*+ z&Ni3m_`CVx^t}eNksXKQ9PMulzWO7nTs-gG_a5b}zY81+MdjY1`OFI)I%VAF?t<;V zfn6$Lr?gK-KBqlRVW-qg2eJ=OQv1cqpF8I#o@ZXxJ!<8c{*9wfi#C*PL%SQLof26F zgJUVBgn`#7iA-^faor!A2PcNOuxBk1%&Et0xq-7LapZW?N9<*blAGm=(1DSoF1cKA z&xkp<&5XiH3mi87or)XY?V}%j$hVjafPSS~cI$oo+RD z<3hyBwfO55ksLL5w9=*gr|Rai1uZJha!I{O<7j`*djZP$L=Q7M;&NHui8&DB*S2=D zT8u$c?)W0gMN>u@S7ec<9NU7)NPAWW2J$f9^sOg5QPNJOXu=kL$jR|Bu(@`}S+dH1 zkY=N2Ck~fwW1)z+oPbLt+@?81%HWR>(YegT zjl&(wB1UAuQd4!CgAF)HlnZ26uhVSrW5+hgA;?fwKb^Jo!i2z`Ky0b&D@)Iu(E!hH z*YvQiEI__gF%z-wFI}Mo1P-P3M=euNqT%fzwi`FG<3{*2LkhKfGo&Z!&kv!bX9v~B zn|rnQFSNQLCU>u%k9ouPUTNZYk-;YUAccl4XU0Ze23N(2P#1J^Etyf;-@1BzM}TMR z=92uE#O2vE^+Q5$46Mg#ol1@94?h~qbRNkv9%U3y*D@DB^M>^kK$~OpjvIF~f7&n# zlVNG#I3m6Uv4*vY7V}L9J8sdpXo2@GY49xMauX62zImWwMb>>(JRm+n(4df~CHMGt z%)g_Gw`8h-zh-rejAgT?@f-VGI#SkdM|kyU^sg?(gW341On4(oO|hKr8t)?0a&>~l zT1kTP0XWO@T#g}lfX*jMn{C^sGAP6R@3T&B+j6Ppy9rFPGG_+9(pr@t6eCG)mm5Q+ z)Xo@HZDC%84fVkv|2tZ5g$C%Lq=w7UK;u~~2*xlMBZ|eaEljy}+@7l1)scPF#Wu`f>exdVp#VaeL!Hr0fFJ>+YnY4>PN=v!#$iSl zJf&?mXre}Cd%^apMW0plhb`|ibiNrx#V=y}Lz2uAG8+cb`?Skc%ViMkZmS&GU)X0zngVFE9mf>vJ~ zylIf3H*Vg1c*5MLJ!y`7s&O~keT5;1MuzU!%AsXz)unlnoOht%0W--riYZ5W!Rw4b zllVVVnf`(*lEUmMf3R|YmyuxOzu4MZ)i{yRx3g))18-#fC&yfc=mgF!dILLzSmhUG z;6ouJG1%;X4+U}-sb9aWd_Dd$rOlKL);a0r%qX4Fh8@9RmrsqM^h`V?W8$zB@Acpu55-Oc`wm%tFNFkmKf8v^{t^XGPghhs|W_O23m5C`HbU5$87=i|3`W$Y( zfR}D)AR*t}cLNkIbCuhV)o6SOB=_&$JRoy?77hsSTV-(N=$g6Y;$oNKZiVt{20t{v zn}s4RU?YCQeJ$;t7^_}yF@@_^sO91hXnWO_4mhIET=A9D=wdj)bhs@@Oa&X)`*dPn zHq=^f4g;cQ{z<5Td87B!0XowKAeD zY@EoU(505&BhZxjnN~t4yUjs!vEnW2M37xeo|Q)f*WL`^|Nh*WiwW$dB%~H;vvgA+ z7ZueYVo^pHorU40_-dEs?8P$ktED>B-oyWaywLFBGa1~?zYD1NEp^vQiQ6g;pwg@H zg62L5Jf^IlY7@q$zkvpzzd{T-Uee#`LjgvkzF>$ms3^E!9Uy07)4y~r#F)_Ozm-@W(cb^qw9>RqRMowa(cGc~pMv9Qo#CusKm>FC$-iR0`1q&B8F z-AagR85PZfAqp$BMhpRl3yGC;@=gW?!;?wYP%^8kO)G*RQb+EeG-F-Y3{325j1wyv z{L=3>lYhRG#V{2)ri8j|Zab0SC#-z4!72e(bzU#qA6fI8*=~fqjE6`QKtxnV5)Qgn z=WA`m?#rsK&r|p@1s`~`h}LbGu9!CEYU;DTjauGw=T}Olr4RDZzi*eFO}dVz^C!G2 zT`D~74QP4{Mtc{;De)e&Dk&|!PEqb?S7bLkx7ldqrnh%49(9D#>2DK!!f`5Vs=x!1 zWChs#6!=LipSMjxQ_3FhF53SKWVEIDe0Kmo)(&aJx0Ezuqg!7y-dHr&9{|DQV8NZz z6JA4)iJG&E=4G8J$VpsLvLoYe`+5woBjTi{i16g-a$4tu*=(j%m(7pI@e2` zUZ`r^Ds6R@+4{MI1MEFbIh?(+&0U$)awS>VdlO_nyRSx8cSv94Dt|x)Y&NpX36ZE3nYyu z8#l~HB)zBvpDjHPIxtsRxC0EGn;2tS*y%>(#%Fpq~^zxja*Oj z*O@3saw;zy_{@_WKHEJ^1V0J1%MkDbsr9T z;w-6#vjQA#C*O+Z2(>hszg?tosFWnCyV!EoH>Hnw-;NcJ;@-dAohzbgV2Oy;;5tBE zG46kXa#qsLeuct~jy*u9nY)){9{QT(u% z8fBmF>owBj(bZvH`eyzd{>$NeTs||{x#2U;YTVw^!uGaEcb;qbjck~V!&EMNb`AmA zo_~hEuDg&`(ZK_#rg0bOpW&>1eg)fTk$`+|QdwD;u8xRnZ7In3{nnE9ykEYoA9O!g zCH_n9tI2Ol)wcQ6k%OUQ>J!fBaCRwaYQ)!H^&%PVs1uDTvo+HgzVbD{A^C%oj82p7 zC99D4KoDKV87qc(S5O@XW|(5?pQRgO)pou+Iade79tFEFeyu71@-#+%XnM#_{+_hQ z<@tZzBqk|Xq$UR6s=E>4{jta<-+NEWTe5g+ctL*!#gDut6IC)N z-J`axcXL7RYF~vl4Sm8tRbr*u!)JF*!e|NaX;xZ#&Pz;;^OR!Sa)lC-1=p_+2F{%4 zz3?M>r5S=koO50_$b>6z4jCJHdc_rrF`vFHYcs-4t3Q4T_+?>XKHOiRGfelG*Bat8 z-?8_vf(Mg9#I!b4unmY7pm2HzKGj6Yw>!#q>>=2IBT`-jwfmhH!D;Kp;FOtE7W(S7 zOs5IMXE=ly9Eg$^E9Fst0Yq?C`!gR>LMUuxcOwPl>CcY>;T&=@_~3fEl0NKo^T(ty zMCLKEsGXv>z$Gi!^>YqOW^!DSFe<9) zHOKC|i8EakQ~I*0oRZu|%|hLrDSLsAF@Idvpg0ZCMvlrYt|{5Qv$CbQuqyS;`Xx6W zR$9EMMjF`mRY(J(KyK|O)k?Oie$gEnI;ExAhhBFrP(!6*kx!m}6=IW=_kDQ>;TM6z zWq`QH43MH7AN&EA`;sVnD{9^u8O0-Q5e(`@J?~jv8VI55CDIwx6~QdSi->!Uf2>Ex zGL{NiCg7hn$2xPW3qDFB%s zimDiAuCJ>whxy2%%v5wa^Y9&vVw|R(^uSz5Gt$KXHycy(G(9=mD$@{n|uTb!|J8@~kbSIp7UjSdP&kM58;%!5;Fw=7bAp4G2H= zmXV|N1;`K_IIRA;z(j)gwF=+^u6lOK`o)2w8wmOGJSRBR4IQ&+dFK(a8gytX zAFw@2MMk;`o!C4oQtKCJC~r0pbtPwFE!pK2!h2CLDe}vjX}krx?B&ZLjs=-HYS75TZrdBao8MMLF(9Lk!K&Q7M&t$ucEat`7(E^yK z*nWbGi;&mGry3XXS%2`GqEEwS$=J0sQOg&|?1=aiLzGh@6Xv^mv`!||8{X#%*0wYc);6O8-wtO?r~o%%s!-XSK+HH*|j&+$qWRGZ*;LIUzm zA&U6|+xTQY;fYPUW#z<7$d+P_dL{+$U<%d0D{2DXmje^xOozc~$#3?_<2~eK#|XJG z^5f~@#AS2Cf?sv-mUdCPIf0;xW|E^3r*x@ziE3{|*e5qS(LU|KN+<9ir3o92Iev}7 zuk#bU>>1)JcQSXcw$sV{->P@ZTp6G7r@M1YXw@9RC!mS=^4GMB;)NGr%AFB*PBsV;Ym`W)TS{J_@Y9AM*;CEc!^sejDm z5)D8zH7NGrsM;4% zZYNa6q2*GH1s&DL5rad2wmwy&N;RonyV}4Ivl&;M#Vu86h6y{Pi?-zAB(2h*-|Z0O z%%qQp(R|rp8gD$G!%Lu`8p3lbm`rYecF3!$O!EXrELfkxV>BNg} zzgUHYnWZ#}ary;sJ^ih7>l9rNHVC_$N`l1+h!INj75W zM~U=(U6VNux_<=TO(}1_ga2C+zUpqUl`RLrouGY5i~W#2y99tp6oh~(YqI^qC<2*< zF;z2*p5641$`v>$TNol3A~bX~L0xuhMH_gac7=s0Rb@!xKVU+#SsPe&bm7cwF6M_n zvsV0kfL>6wu}=)DI8!~nA)FwlVuPQbTQyc>nZAOIYv;GQ_~V^wnZ@c>7|&$}<2Mr% z2iLQ6`(i)ntgNyZ2-TMBFiKr$g6grLQuRvj> zc9`XB{Pa?#^Q%B>I=n|_T@!N#+QmDM^=|cvmWT+uXb?#{$I~##;8e4F=@ECLQ6|Lw8yw(X26C9h#v4E+rOf>%++#Pq zb_iTaf6BG3QIBr=c*bZvzEFNIzw%((+2p7Hua2L$)656?p@cz?1O`U+w~jA3feuX8 zJOSb_U<#Nrl8^5}4a(Hkp%22=F^po#z$S4QiZ@4KGVuMD%m$m3#v2Dovzep}oG8ND zz%#z6%08rA6jQ23!uwus&3`lwvzd-^ItMa4T==+b2^{5k98JDFlo0zPY;z03?cr$Z zqDm!%EqqqjM*_Kh3qwOTL&al0I!R{=e7{c$k-2=r2G6D9Pv$xJx`W%d66Duj@Hb6jObTRFa zwhX7jAV%%`*;)E^S;WD&wuqI3(e$%{oAp1o=FgP@BlBiYYY$SO*#evj#e#Yqz5_^{XQ^_Stuh^9m>NzdV-%0KF^z?exj4)? zRFx;~_axb4s4+FnbBI-|W01QUHfv7B!J*@3r}@YWJN@@Ea7 zUMO#DRWb7IlBmpFk{M>Fn_@XdtlHZ;E7OYg)rS`HO>_az2GnY!YoXQ#N@guxRPVwU z?StReoLLx!^9Ua7BY5jlwCHjKMdkuYLU`mRjYh{XYiM{8izqT!vgYi_Yp%#JpPTFPb_mfVubV?^b_HRnopQr-Wu^BBVX?2nL&8`XjnR;2TDmzp zLUMNuU|F5#q1;tv)~w6&aM1iG1-pBgWzv&EjIM1lx>K(3n}PmO9#91DH_1~hiV=_5 zAzOO_sKEI6!A3A6_dg-wLb8wOZwx!kj};-^#s)_%=gw70%TF|2lgl~Ftufak+uhju>V)zdM_VJxL-6cn z9;r(VOk0nSihv5)_7)DwSEQV!+8xC*9AgKLtg@8Y8WW{e1~YdyvApm38;FN&Joag8 zDTf`q_k*qUNdCQ-siFg+?pVh;gfYzL^ZFi@R^KmO50hw-LucUtq21FKmm1hyEOJ{v z_Z{apyBVkRUl3LBU3k3FQ~L=O*m0F@cTJ*;D)C7K7^9hg!O0)M7GTN}y{(NfFY1nG zO7yb?2IaFOc}{7ckr)ZS(jrP$EHbqdz@~f$uBgBTBKw!=nM4zS8w%=sZdn5;# z+-KOMNTMSVA#;5|)41PetD}@l+2QLtgEKELn<6B2Iaj|mSVr)knv+g>cw56@%;3%& zyH%<;+#2nD`$f=4O<}QNM*ClpS5KM;w7`)cU{^<3d}KnZ*o8l z1dizkm7zQWh@@O`Tz3^k)UoeQx}9#&ot_wRsFGklb!QkLabj$jYaV@F(m&X!sHtg4 z27LUyQ))O^7wTl9A&Cy881G<=rx7ELeusKTYPVywtfFT7^Xk^OF0H2^!VqS(Wpcp^8 z7b>?;t4BOo*5psgb$YbZq{rIkMp@N!vK}FeB zjVAn{Ij_V<%HPphMj%9uvnbJ)ym3dT5Ar$=Te-?-Est3VY3QwvVp>TuW^6b(ofvLs z1ogh}+@0yB<8WGPL_kW4~g2oaz8ba0ms=I_NsMhd~ifez#nS$A-ZKT|) zRF}z+>BPm{FjRry*H?0CrfP(^t}Oc%^s>ZhRf!d=t<7ds@Wj-ghxr|LesHnF2$@HT zP?L2-mGVxV5s{=+p(3Hej7KmBYPXL5f8dtu(C5Cn^6zavqovYiGE?1)!|haGrn6f zYd0-_g3(AWtp%b3=#H{XSnrbDqt(5|M$^J9c*2|+?0B27E=3jm zYBU>(Cm(#sfJzWdoUQL}EISQ(`BDDIjCZFN{@s>Zjpe~|uFTU)3GOb9H3ci!2!0{- zIB=H*7Xs%7mL+vM$IA@ARtP$5i3ll9NeEZ=(5k@}BZ1FIqd3(dF8tqwoh0k*N{~W5 zzhN(~Earb)A?6glU0U*i86hVWlaAcaw0eM9y@GB2R!(c~dJ~hF%aPEWwnYD8i&|w1 zd(Q9;Os}pK(vDh6oyrk@LtLcNer`+xJPfsmuUPZ2&X16|r*D&w52Y`)^Qb7On@v*sqdIBVY z&THx@Z?RSTt@X3K#WMIL+t4L4z7Z}qnafskiG~sQ*z3?)&LGT%(z>EphPf_4T#sH7 zZW;#b^jq)_p(h5;y|lf_lH&g7?47B$vz3OI^AdrI*V|kpe~8avVXTU#*N}*Etf93d z2_RBq9Z9Uz{??!h0^-OCxZ!f;A5>z%A-7n3()ImT$~{iOM3w-z*p6r#PHs2?58UT$ zhiGr#P-6y%m1Oxr&6Wyp$qKx5jtWh+iSrKQUmhAis@HgC4LRle+xi?`W{qCm5Vbls z@>4Tczs4_C+GXz~q1dupn{9NJq*PEu95O0Y*_Sty-Ya~k*k(nj`i0D>*KNEEbSqh= z;j&|;X;DyXSt_^gtOl*-Gmm&`iD6i2^C_Q;Dq1igK&0rns;|-VyCaP6KZY1j>-lsY zPm}8Dfu5v(wOALIXC%wd)FCz`o+imZiCxwz-~^Q$pw7E37dTk7J&Px{Tp?NNS+1FT zyLC8t)_yA&of}qJ**}5lgK268x=8t*`Rm7$^-toD(!ZmaZ>+=fXQTF4;vC}acCMSo zM``vi(pZR#B6%Fk!(U)#4Tc99XYI5O#|vVW?B4i6Wj-eDu|ZMVvJCurRKEhtWn*~q zZg;pyTSRY=GtUt?lkVk-hE+FWp+NSiHPOQ3*l?{DTDUVO%CgCb=5V0^8c=qor3TbR zTt5%6i|v!>z#mApA3FM02}|gB&f_pWg*N(23-@mzhZxXdVZZA+9Ye(*IUht=pPmOG z@ul&-*_22f=2lBl#g+`zZmLQA`mHirUVQS~+t(?SXvr7((rfH?!7TrAS^w{@q!zOh+vu zrHF}}m|$Yw|Agq5v)1EFe{SP_cL1>My}MM7aG1_yo)1xFe2@%PrNatSTzKC3bBDqY zy+-8ON{U1w(s=1&cho4PUx zyltg;-e*XhN1B3BOF$9N?SP(vvT*v8pF6p0N*lmz`KFrq4i41-`K=p(=zFF*IsMTr zNregqCIFi8qX6B75dbH&Pdv~yFy1>kCkp4l|}`6aU9()BMM{<0*4KamRM#e0O&m? zMSiITP%%j2C8|XEJk6zSkChHNLXxwZEYq3dU+iVRn5{>D!ny8+Au<`chg%N{^YRk! zEAV~AF%mKiq^>pS1Ia%pg_Kb8ljmuRRU4;wR@CfAh2B&n$_xRS5p~K7o~uE)sA|<*UvJaES=m%*K)x_*#?7>m{D3E; z<}%00V#t5sUG$zk`}3>Z7Z3afJ*%|PH7dtE|4>8vi!$JDY@HN1ZR!kcyo9xepOUn?>D<}7*v!~qbV!))N{e@ zCvf_DxtE)v>7ktYW=|Ri4d`hS;n$2CtIA(CY-7Kf{}6cAOjSqK))g{MZveIX1Rw4* z&{jFL_Ok(FX~I-_eae2y@r>z@6HcEuiImZZ8FI7bdYyo<&q?ShI!KJeLa?FyU*3=O zozBb*4O46l#>QCZ$Kk5`tsF_h9(1kvs*M~Rzf{~hX7CVV=tm@XoMEJ8R$RER zEjBwv+%Cw$F%6o*W;d8p4hYiOt9PLsb-gv$H zJnF_`$;2NLLFFq_y?0c>oPD=$eGK0|q<4&5nMZwLMooS=q@CKHB8z2oDBTjB2~hYU zMgYe|DI*N~WMMIsb;(kBDdJIi<=leZM3XHL?{N@bH_slgYT}Y$-q8wCt@0DcukKXr zG>X$7#aI}KsQ?HQ!|${MKh@gPT|e>bWY6DHcO$@5QlhDqvYA+7sn3L4Diu{GoF(NY z(BV$fRd3A|Cp(n%JX<|Hu~~Iu>hf3fP41e}r>G)dq@Bpq9*>qu9+<%hG>=%N^SAu~ z2JA&mm3J8Xl_$s`;|{mRnW@q|2R#^R_=&y2*HYnE$h)MYG=wKi?EI1$NMEOdo((v> z@(B{p*mQUI6Z6-tokNdUFAyQEtFWUNXq?<;&t!}6shNaqpaKscSo~DAV_U??W3bHn z_A6Mnn;Y+VSRS|Bb6}<{vLvfzF7MVInBlgm=z^lI;f+xADuv1$RBw3((>F6j9-prug%UAI{pHCxP71#Yo)p}Kd2E14J#vXfsUr}t z4jDWARhw*cU?HTT?dkO7wU^T^?dXY=~fv}Zn`hqdBPg`IH$TH$n zw~a&hT#+=*m9}7n_lmZ&S@ZdYX7ZVdGj#0d@2o#Iys3jjDjGp<1C|%0yV}2WRKzv| zJh2nGg)_S2be&M_cEwyH9i&vaL^QS%j<8%QqTqoCI+Ch3?Y{L; zcR6_dUYo{Z$HGHUM;1Z#wT{X|qo>FA1k^ud&iHxtX|4pYeh*{}InML~f$ujf3`8Ya zV>{WIy%p!i-(Z?9w!49|b^J&3n)L*`+=r14DCk>i>cAd>U8(5s+*-Lm(JI&Qor(Va zPS^P+7%Kh(-?(YF)30cCD>*99DtpmCg;J|bu5gS=&n4= zua)qTl0)Z)GgoEA9`Vs=l@E`b5mZx%#sk}V2^U(^{!ZcV<&M*eTb)0B{@JMFW9y3lJ_-ZLA^vg?6v6R8k;^C`FK85m|GgOl^M8p6 zpI|{Oqu2!hh_(MW>f>4%=m`7Y!2egf9aJ`kLhz63@;^xsNdHM91!at)5d5R*`Va6P z^*=xuQ1Lhx=xG!WU`X*lp<5iR|9TKedkhbtNclIshD-7hq626!e7N|at1$|K|B>#% z0t2J_XLMZV4-f-Lf1D10!1Fgfdz_fyADZYt`1}700x}_k{*0p#{7dBcUu0oml<42l zK4={X|1Yfrv@?Q5@J|>0|0aD*rJBTlvOa;te|`oi>HT$MWD)+(=Kuc10tUwYPu`2c zU!dRwB1lpJ2lV{rV0HM9`3a;t z$qk6{1YKEBf?%cyKogTlfOAifvL*e8O9$Ze09w0UNZwP*d6R;8SVUmN)XRrzWx8ec@ z#`n+5k3{|jDSG39jz&;GhckEp+t|M$%2_gk|M~F<4+h5nPo7c2U(j&?{@=X1Sv){f z^54+aEC<0q>&t)g%+o+3b5?+a+`rhVISD{~K1d{k79=z;3`i~l1 z`Q;xb$KOXJEZ_lhsy32ugXVpny3Pkp3bbV5k0XD07jC;J?0etPfJM zE$zo5_n#NQZ~g$0fj%vL2DpuYNPEaYdLL%c^oPmxF{vn^@g+P!@f_%A$sFLl08&~O Xz<~N#DSxP(f1I)(LnoPiz^J5ZM}kjaFM%6IT@ej+ta&90g-Q zgNlPU5-y3g)>g2zO1&TfEdgvq+YZSgj810K$;3T}Lh^P8=451Lj40^Byo?0}XR#>b#!kfWj*MIfZVGoxV!0)j z+Z}jU!FzaLhTef?vCS(ugn|st5IJX9hC9I!N+cHty)Km8Rina?%-BvbU3Bz<$Y0>ZqLf+3lDh1@i(FJZ zz(dMg@JxtXs8aDEK4R$J6kl7uL$s^-7@ttZ0`!xnUEzX96`$g0kZ+w9>Uq;x7P)<< z;&XhV;!Au*X#J!{gQP}NL$`<$%Kwpyukj7ldo%1@)pCsz-zX5n#Ywwr7BtItHIpiT z?{dvu<(dyn3w&x<&(CRw6^IK4)xcP;3J==g@ycLI#kcrQr1m|-;Qzc`4Ewk1L%Knm zM-9n#EwwgE*tHktrij`^vhjLMjW-v2s;-&YqM0Gho|bY2?Gh_;H~X;S@>26f3_P@2 zc(<6l*L8%L=5YmeV4lWY@;v#UNrfti;`PKRMfn< zF$_mr21*-59%^b_aW1B0BDtlRWI{Nri|O3V^~MD6Zk3TuNq6arkjI{OJl-UKpewdR zN-aR!kk$t1M&!267wMBcK;LHZ7XlL_kk(`LmZm48XLx80>{r_Cz;Rk5o^U@-(5m_h z7({}e)U6mIEiz^Uq$iV%4~?v0$Lte?a?&4=a-q>0!Zk#)>yT^cSVQNSv<@XM)vz-z zMb#R1jfLak=x);P%7voc*&6nLj78!RMuKQAG)(V%Z^Wg)5PK}lenSs~NKW#SJAqDG z`zZJU!f_D8^wB?!eq6#~EI`9;!djpck^B`u!FuvyH;fSv5XUG|1SCSg8`883k;Mg^ z#7h+AG_9xbGJzI8PvaHRI#Z{@KYNwVUL#3A*mDXd%NUT+Eu+`_56S3%lIiygFy>{= zFiw%^n^R}~XUZx<&*>-V%?(HQtzmx+@tKjQ6QMIwk96oq93JVBP6?7~=!+hx;oxIL z;^AK&N$jWR|2)B=T(m#nY8{8yp#ABUR?yQ+sR@!a0zFEwPtyJj!4`CAq@$r569iaj zO>Yo0?a{$JP`eR&hM0^EHyAtcFX_=W_B!MIf0K;}@eRl2?x`CB002w`001f+Eo@!3SXXUDH*qIQd4(bSlb8WNLgNKg{P)6h=ZHOo#jom%>j zOwdGMglOUq@JAW%l!6U3MfYK6=H7G8J$G*A*YEE?0o=!92NRfe;9}OsTnh6JZek&Y z#T1sz_LhTX+;)(FZ)3&A9ft8|VI1n`3<*Dfzr~O&%bH-gSP5hCy1lz2)EmANQN*jr zDv!3f3eCA6OzKA1qTGg(d)>9RZirZiRj#FCa9_r;Q00iXT7odeid6NWu6QjHK}Yds zQ>fsD?8K4ewWYHHC5EZG&>KYWNL3rig)(MX^z)VX`~weSp@ZR|l8w6z3;xK$t0mKa zwY67dm^%l^;B3mas*3f{^qxLW6^suTX-tyFIi46M8(KFDP1En&mQXhCxhNo@OZ=NS z<}$z}i#AqWn(hNrKiT`!1;0_=MfFqC)rPQ{!9}41Jb!8X#%D()t7!stJU|#hWpAk9s&Bk z%((b;e)zjhixxTVa>{!-mJB}U8i4#k{WXqDQmE_8H;yg)D(%P$C zt8f)=9_QkyZYi|e-y+H{IP*A82FPQmg7%@2;t9ycphI=(_d1} zpPTrLAl{F^RLx%*__F%`br8?tZ-V$+d_^^XS4C-mZ{i<<_(%McfqypfdJvoOFMfZh zfAxTguLkk2__u2OJN_exXYrpV{!3B*TkZ5UMfsY6uPc52M>YSen*USHH&pY6YQCwO zZz-K_nnJVsMNFwMrP2^z5c~02Q~dl&fGlFDo=G=JRS;bgG^IL-YhsyFV@Rzc)tORn z$}$5_7!nG~a#>-@O10}MLslEI#*}}sDQgW`XUh5@hGc^&8%?=I?Hi#cvdNTNO}WjK z&8BQI<#toHn$n;)*k(whAx#3SE0J*A&bXaQIVnM?&rM#QIgs`yorD(~wY{V(s2l7# z-qU-k=iJbt{%BWk581lU+ZXM&xSg12i+XM>F|kij)0s@9JUihH+3~bvO0$2Uwy(eU zNdKW|^jzmrZX%GbO66-ob;sc0!-x9MMY~QPsstKH3dEBW6AtCA>rT28Z4<6N7I)e% zx%Tw5S$4$kO2|@j|o1Ac+RH{3c@|=X)r={FJ2a}f)@uWT0 zw}72H2kwp~V%~m1N5c{tEH;0AF=gA3z}J}^qmp&qv4qo;o*Hr70ed9wDCZ?d?f8)G z#?&}R^m&sp`hUYxDpSSelA3)t=Dt}o){iC=nuzS?e@wB#Z(jZ?9mG+?CG2} z=2%Xw;FgB$z6r-`8|?4ONr@%f4#(n-mSEUpV@frqODQX}WXwr<m#GZ=NP2u+WlY7H4(gLgPxU)W z_Zr$xZ+YELV#1qbEb}?mnM^Ao%;#g|B7fe^4p;fOirTIz5zE?0IHO8cDo~kBdxBL3 zb9&R>blRiS9eaw?6)}G0rVri|DrXZNl{iBVkvw>Ol@ zta1QSKjC=UMeYg5n@rM|Ym4|?XFN`6ZP_{UTaISV^BUQqTMBY^1IGQ0Hzqq0k|j72?~j@zCySn$NH`WRD?tS+ZB!E!ih`TXK)=x9~2!!@^JFXDqo_?ju0u>!d>$ zu`^a&O)SG=%qX5x`yWtEhb5hI(87oCVGA!|jxJD&w`hN#TXIMaTXIB>@?2WN086^$ zm?g)h+mI8M^hmEIeM;LWE2j?h_jL6fi43NgXpy4>1AP&V8j(`ih$JsMZp2Pd+mtiP zqareo3=uCG$s==wiy}v~10!QRh}_snTJf|-`r-~TLoG|iSW%I5L146%S*XM%-Ppr9 zkXpU420GHQxUSGZRz2mNNee%Zk602@R-Ts&mc)OB`B1Ocwo+`owL`;{B?)1v2Is+t zK);~QEt!^wa=BEzc5`7xZ5Dh6l39gva*83y5Z98Fu!{YI1BY9f*J-&}!k1sVybLZ0 zB8qys_3~7_btIM;YdvUtwl_2F5R~bCeHtyB<_2C?wGJMe?hFxhezSfaTCpjoXwUoe zxu$=-T_!N8$fcM!xkTV&sYoK}MN;YM=_GX+i;y-${D>SII-&FR5|J!hGOf9iQMJVb zsFc{3!#x$a%a+WjD%3#MdNBuUR&JDotGeuPYMx>wQ>|GP4YF54wl%P=+mdSAl8Q8J zN$u1BZ7b?p@~}KYEGbjrT?Y$ynGH)J*baYI=JtHulm5RYk{H>1z6CC%1Xfq8ot zyd8om$2;hZ+vzwHe_hdWSi-0Gs8M2Vm&B~=>hp)){Dm(tbzv;#ru4P*Gz-Z~YJYze zIOp$p%NiD6G{X($Z(M4wmgXjk1F?3&o+TH!5UuKW9!m3eI`62hW$roU@6@%lv?RW( zi%c!P?q%;pou#)>+TO)mrmL^0{)RIhYFJ;A61m%J+Ew1nk4rBPS*m)r#Zq1KhfMLs zvrnN(L6hZW$ds=khpWn6@|4fN<8yz7(Nx0(MQ$%%+&O8xQRUmjs8e!bI-t2#u2Y+) z@8YdP?eZrO-zi=?MG=V!W$W?<_p@Wil+ON3Zp>o>8uV>fm!eeiX-fKNJegA0CdMQ> zI_W5^G1xzvOnKQ}A3-qJvsI`}_D-f9g~O_-4!icml)lJKzo}eVOzHaGmMMQ50`#dJ zPb~;l?s}}MspU=G({o3yy0?0T!%o?$QAN3Q+rnG&zHG*qz)pBETkbMV|Efskw%hXm zD3uqWVv>Id+*fAJnMG@gcUknbSo59c=*L*%V)6n*zqgDZ&y;a(xyOidSjUW~esWn= z&O-GLZCpA>3do;*rZ;ph6)S(0ee=(fzs4t%qI*hIh3+X~m0HB3IT3&FhMF_i$Bc1kCZ6;@5&3S+=PJs*{_BVqjrDOb<}6DtUWM?(C{3V z4^!}pS*+{{2QpaI?rUrc`)0A4E??7bgnglK*vMdQ*q6b&cK?5}27JnFH`Qpv?qJoP z>Z(08VSm`nVB_%as*2|^bse{45P1qKKZZ@ATQj(A4x5KVTV`?l%d2WuR$a08)U2x3 z-|AJ>E3kE{>OIe)sqqu23~kGx@suVyd#XtZ+(1ZunpOs{tg87WngVDEo0Ti8GH8C` z=DYQpmJC|M{u_TV!~P7~T5h0`l2? z3fRl}edM@@?%&S@xtG-Y(2N7vi4M+mvOS0{97Z3G(BVfh#L*azvHFfPow}LcJq$}P zo*>85IEfFUA0H*>$1#9caf-4};|n;0FX1e{j0f-)oTGmhr}1^t-oRNAJRp9YlPcI^ zVMM3Ek5Zdjyn=V*M;O$dcovT{aScko!nr4yE)TNSe~f=sl=?ROID0|Ld;~v%pF}lv zyo~p-S3_%F!%xvxpGu5;O0kzqDfY4{RUy@Q67NH$sI<(j_p7M7$&G6a ztT(X3z%zdao;C1(1J4X|#U+~S8|b)6O#_P=2~js`P00)tT?~BS zCJU~9(MnWCRuqibOeVhXvrs8<3Jq}Pak}GR28T{G zhYo*da3plJ^3&+b;8;&{=(rkp`#2u144sIQ*zRi)&i7={+wKqh!hTNn3|BUV`Z734 zhTd1uf0Zi-)XKrqm0_Qh<8JrOVQ4sXN&(ngUZ#pBi{K=K+D}U#$}0%ve;l8nj>^MLsJKb-l{z4c*Gp2Z_nUNOEzDwGP{4y zUM*zIDt%JEmjQf|y1$QQ^b}$4nW9YDQP6&e&ShRSU}9%S3@3)$-94~?i#AT(NU>HstUebHebKmO=2 z(tq92*{t(k+B$vPixyk1c1+I+rotUm-P)H!YX=&JwNx^jbC9eK+adSvzD8AG zT>oE96YBp(P9peivtA_03JIBGHaDjU000e>FfTrTBB2xQXg*^=CsBkc28(7P2}y7u zKmsCgfaSDE2Y0t(Z;z5VJx(RXq}qwo6FVJJPO=psy*R!1>h#`26359uyQkBY1?kK8 zp}CzmZ~j;3y%`>P{NXDAR*3})o}pqho~c5`v*hq>Ioz$_IVvh7xdP8s@H_?2_u~bA zyigK<&Z~G4UhKz9{CKH?dsNg)##&sEi!W30a=b#pD^<*N$*)rJYTPSf?~}u8)mpA zj~w3X$3;Ibsi?&J@@i0aed`Q7%73*-Aog0HIBj;{&K>e$=T z7HL1Sucv+Qkand@a$tkN)K)W@vh}3BUyrAM z4S`U}_O|xkmaa&9TMnl#%d%%*S9@=cI=HBBnLaG+^odaii&sr4J1mR#S&FJ>brE z>aiq^@+J5yFf)9p)MQ7xZVeEx&SP1BK+Pg=*DZl+mm_92ZHvVXu2v6OCKv6Pk&+Yv z#WGF1Ek@poA>B$D{8*T;XEYvbYBduHJ=rgf-RR=ONOO)1SAG?9)<3uym1YU)qkvo5tzVP8Vw*mF+YWw6h|AZVn7c zW#@WDA>u4@UrmISRhc;OPDR#cmL|DO?zk!kLV% z>Pm8zUQoo|P#n(MtU~!RriDw`{BdTb)Ge10NyBd1x3`OHf^y~;5PQxgZT)P{9`c0p z5^a~+8rM^)Hskmjw=Bnh{;55-9zD5JA98YD!8Zg}g(r?`iK<&BwdqD7RC~;{ z6*b)So>_9fR!D(N0}qHc^Gq^s>irt_qDR9Mk=9@%rQs;(*U&_#Lc=%lE&9LsP%?)m zbMP4ovQBf^mZu50e2`h7;oJC*g70eh9==bWQv&6u(lNspSp9z-I}Ja7zz;S22tQWv z6Ah2zr_7@9L)59K1{p*RKf})z{6fPo@hc56JVnD0PH8xSrz-fhhTq_~0&_gf>XPL+ z9_Qh97tT=SmC~WVEA-$P|8CtLY)Pez1hdAHe7~2&9|Y<>n76W4rEE^5znE~YL4U-b z1ho7-qDk(~731Yj!v0x*!Cy4|6@Sz4cNyG&;F^Yi;u_1toy-eskw8_!mVe>ja^GVL z{-fb>{8ynMA;c6#lxe~z$`w(e2}SssPd7M0^wfAx>`f=_Si;CH5?@qmLX}$hj#GI} zR0&OBbE}?Ans%t)ppglNFcg*NZixO09XG8|)+Zs>`OtC8OoXC;Y)QxTlo6_5oT^_@ zkcZvJP8d;J6H`UC6j!5&X_}}N0Y%hlVmi{SG&errnwWuWikPX1SzZVA%QXV)j_OC~cxjw#N%>okUg6LtzEk&`>lNnC>M;-aFEEi>w%da4`gZuyEq; zOB;9~4itAnw-Br;X`z#9=Y<9r^_bFNc;C}%i)E8`_=doLUIlfmD|xOKlut*1VmMaN z^g~{0<0-AnCKjwzpiVo0r+eXgmPXTw!$76vmy@*p@J7?!Rt9Q^c&&YeD;~g2kp6H``Lzu zgJj^*Pv{KX?H=Ag9doP{nz7-dy8+ciy~)^F4X_*;oS93&Svi+iY46=_#TP!?G_0^d#!<-0~v z(KigG*%$O>;6D)bm0w0>Us<54r_UGAdNP=rLG?JfMv|vV@_|v*a%Z5qJXkLG)&+fy z8BA}k7{QEYC8&^EF^ZXFnU%rp41z(f%xU(22mQ-OFjr3IHCHYh!Te@5s5XvbL0_

_` z^@}6Ha3mc$0w%xt_Q*y#N~|f;GCFb;;l9Q|!!R00u#`T`l9uL?#vM{k#ei+7LkE`7 zd}-877YY`Yfb(_KF-ny$zO2Bt*|e&EV*Hl5|1K6K*N(j8s&f1SLfAQomMq^aN8t>X z^KV6(YGf4a`<4#l z_Nx@p9N3V-#``c^5(Arjm$A98tg&YVTZVDRRXV8UA#4@67|E*DHjMU*4ss2DlV=?^ z(OVr1f0?7(5(WqSs$t3ms9_yX(LA1@FvGct+I3LRP6k=(-pIh!aNlX1;jE53&*B`l z@1#{{@g#oDW2(8UPv&1Oe0vqFdkmEd?h17&6spQcXV&08Cl7!Hje)8Rw%v>AZsa-X z$e>fIJ%TRj#!ad$3oa?ll81~G?X_@d2?n@T z$vn8~ESz8}ORlH?50eZz_zG}9;q_w&000RPlMXs6fBAnLWgULr>@m~Lgrc`%9W4Gm5-_T zxK#N>4EN!aa^+La_%uEv1@4#A&o<*QKG%$Kd|ozRQ1L~%{G}MajIYFSr*xLVS7q~n zg0HFgx{3!?d_%=IW9Y=U)i}b>YKJ~9WG7_v<1#A-Oi9-4>Zdp=pr)itsZh`v~O9?K#ghsQ%6WM)EKez*_1iYhTY8~jaC+?$Ct16ZhYr&cqtu${ ztPgI?o6c85AIi!I3yxM+<@yioJDD-^f90^mrgeA9a0Brc+c2_)KIepOIeM0g7?dl?YwO@dVlz9{NaTkHvwBV@5_oST=0tY~3rmbhmf0Kn(!$e>zii zUBmWLy}VfIt^uCduv2t1MsQbJIUL&^k9dEo!F&e557-ZwXQV$0Q~}2*OTkkqG@FfSHlnSBMndCG{f8NOlf#p z&iCNQ8h(PGYIsIAKa*=e$FmB~e`t6P&kIDl^SbM4_=Vg)i&=WD1e(S>q{Whga~kGw zUc(Expx~DpeuWn`yo8rE{2IT}@Ctsb;dj!)tGJuo=rb(Clj`Iduhel*(a`Vl2L*rB z@EZQ4;dT63!(Z@M3O67inbYeOt!#(wcpXLiUNhf8=5%-tJJBtm4jFpEf3bUL^$mHV zH}N+Of0zDmlXtXwsVt%G`j88(Su*C8NR%r9tKdS8GKc3E`aOenz;P=l^ZnGE?3#;% zBb73)p?iK_32bjzxEhw6Md=<&$ePoVGrWVkJWD`Mh4Vpu+Ne*B`Qj>V+f4DUM1v}} zXsOISDyp6nED2nnXjDb(f6HOBS?H^f!-vb75;Y3}&gI0pccS1}Mb9{>dy~8vJ(DpC ztos{S`O}wO(Hk6N{;pOvFg9Q86j|s-T$9x|vG76YtbYrmS;>229_>bnws9CMXdAwj zX(yNSuXRBf%JpffFvKrvjCX7~jLynNfgPQPyh%dddHIn0D>t^|ey#HiO{!T<-S$N7ekG+TqfF|BLE|K|Gi>`^ z1;EV`K-c8}Ao_KenBPH0)V{VgZ~Q#}Dp`RnIe=ew*gT@KDgbsfBZic|kh_<%M2Nqzzt=#jO^?Sawe$U6&@A(?@ zFF}aEJ=ja_TR9p>6BPD0CfCnGByXBUQ?hFop=3Nfi*Pa?nMEWSkIo{RJO|}DN;aXF zZIt@J2K2FQ=Nc_wA3gy1Bk75+n0%?YM?Xz(BO?8Xw=O_Ef1EsvrV^H2Kw&L$WDY5s-7pr9oPiL%Vn~ee?^)PqhmBSKpU(tYf4ZG4O_Q5P$jdA_IZ0MNNKQUP zR-PqOUL{xFAV>Z|&3Diz)?lAlhy5an+e9yJ7ehEm%V{x&0r3C^#j`jdp2v`Q1;gTX z91?G0)Mw!lETi39@Ihuln3mS#c8;RdyNmt@$Um~L%+Z8+27}xcI3iBs01lF+S&_#b zL>nTKe}7^K!wA#I3LK(b1S8baC?D*N(!&^6Zh-m@(hAg;J>p$>LcyKyVx@w^3daA1 z-eU?n-zKoTC>oZ|TK6&~?haA{DL+NP{3>DNnTDCA1p;N%RWocq@3IG5I2mk;8K>$>!3oL&v6aWBpD*yl>lMy-{e=cKeVRLhx zSqXep)zv>Iv%Jah*a9I8>xcxhhaCxsgd|8b2}oFs6yas&B^j9|&b%QBwQ4O^YqhOg zEn3&AXr)z95+I6e)mq%Dt=dhiw$`ejw*40Uil+bb-ppi@3^Np2d;(`5e13Qu=&zMCH484AyI(*!PX(;hCAo+4?A6)thp zRL*sCDVMpalFQ|DmNc`anKO(I@?3@Ixp=<93uMMZH_hZzq<@i%e=FpeIHy)bsVG%Ka46$)nvg)?1TCq4BFHz>Ty#j9O> zmUOIf(=u+9X04lE<8=zJS9pWGp6#YuZgSH~K1bn=ZmJjREBR|K-XtIAN;5~{&2DPs zEedOHZf2h}emAX?e;(aUO`PlE7J0TxGsn$s9B}b@F5W6^2eUcEVG%Ck;&yqSFFZvR zj=8B-6xzzhF#4F|(ri<>!%ac1m8MfBb}77F;jg>te3{$M7s!Hdh`blN=@Y(4J};8D zi^Vh-Df~?)wKg2qqg6pI7Sm%)p6Z$vmFw!(ZmzCvT)U=rfBCw#wW}I7udZCXk}0R| zJZ+m+9@N6E<&8!(5N=(}G`uPjju~3mSg!@+x{EJiat0%(TN$a}X2t7Xg5K#1 z#$$nP`iekMf3NiU^jNH33u`8C<(Vkd9CZQ6IhO>&0b?oCxdmS$*OyCjY_<#6Guf*m zew}G#T_CJC#6!(`bghO#u|UM91=nlQfP5!9?M7PwmYbAuXR%E%2=3j!sID1$bs%Oi zEy^gt2I~ofwgg(^QOyWM!ix(nqX#18q7yNNFMXV;fAF|TK_Wl4j|Q6K^1Ut^WEx?S z59>zxx;3?!lAAuIu}zyZe?enB#56i6qF1L4D*P>U*A4Dwns-bsPam=hJ1eqtbs(Bz zs$XW+-29wCyL>~Jz=_^2%VG-efLSo;iwB|JG=`@Y45U(+$$M;VdM6VH@K*~Mo3^! ze>fSUrqy~h6o|zH!f>L&)F4ilz-xS}-$I4%U!!Y&D;mZOe!T_X3Ta{Zmx>jUXu_)$fBp{i8;ETPgprgWxUHb@9LN}nHE6Op+ph<8 z37*jm%ECk?7B`axSjLyj*9O_5I^a8IV@9tBs18C@pb91cBfM7vTJ zF}01Q<%mf&G9p0==19c=@sA{tRcZYa=Y&*1l6_tpv6^r^q^AP4&1B2&*Ckshf7_FR zFK_7XCWi`Nq40MVz7iqc7isTG3r0+31sQ`>X7()TL31_}T(+QS(XE-rb^i^(z06Z&3M1d;`+)(S@2mTZrvc`9{78eGenSm^U0TyeK~nEfDr< z;Vw*zBB4eknw5EL64}*je?+`32;^S96Nxz3<(-|H*Hwm6qJRHY&F7(8<)8EYqNfK` z-oy7WZ8|CwiM?akBH|5wH4aqX%MYq_E8V8@L%dJrZfJ$u%xWs&GXty?+opS)bv^7gv{1XGZEr`wXe-MPn+16^f8;gVGy{$9otd%R zp6P9mMzGN6@fF zkO7r@#Etf=e1H!sf849`!(#YH_z<#nf3&QOMzt;pnJPa@Z>anjKd$l<^7bTbMz0H! z-OYh;!tn$?Pa!)Wt;`t!yJYR{@U?{^C`D`w=g(L97w`~Jd0ORX_*s>IDM%cbx%|R0 zJwryd##DZee$nT;;f&YuiX#>kFf0bX7X;Z$u(o*sPP+xf2;Cq`~VX1>Y%R0 z1WsN#?27Bbws5RKiwU(3Eo_L>#W6=}>f0N%*`Oo||3eJorj!N(IJ1V~`2>1*CHEEh5b(qTUNu>Lm;A7HY>#Z74 zpp8!txamV;xc9}5e^=?B^e>e^;Hy;rkZ(uuJbJ80iJR;ZpGJ8%=fsb}NgSBwON+}B zzvM8Qj-B+nZ^Xdb1Et}{!Nu3;A^tKz|7kTT)7VV)f8qds*S19?9o88T^}7_!1+}&E zoOzr#6kriY+kyHRRZuwiiemhrNoj}vu>~2A`QBq$f@$-KT*-W;`;DAIY@4ThUIpd^2m>x%tZWYfhe1G7 zg0K$~f6mTu-Y-1H<%=EI^9#N z)7fI?3-cT_gxJQRn$5_5ZYD;2rvF?#CPO#W(Jo&>xr)*|1ExVO1LMn#ve|Nv zBUm&qQVNH}xM6`+S)C}9 znPwap{l!Ufti&jBT5ieKHKu-FNgG&fe+G%VNC%=M>Yx5S(&uE{LqTDqcdlwViUZb~ z_j54|Fd6TtJO$~d8F)K1vQ3NCN1}R7P!GWd0RFJB-f1L02OA^h%?i|I-KRN2TdjLt zPd|)?TmzM-%R1n$>u7j&_<|A9lA{ArTc?v~I~5Xtax_<2k*khq8-$$=#GQY&1RFL+U;nUR1n~l%kS- z#oaWre;&=KhN6dP1YSm0*gf`c%BgV3V@!n;{lh)ZUK-m} zyZl-o_?9;3Vm2Ju-48H+%<1iY5gL@ER4vrIl$TDztATuN8dHQ>lWi|AUq z4piJUkFJM)ZCG1GKctk~P zhm~rU2`woPbXDmd$PM}n*BB!=21q?>ZX%7 zcogZHzF~)pclEvCQMxH#f7D_#)v|&{qum6y&!v&H8PM1Q6KXV-nrSBapeR3`Lak6o zfKI3LXbo+}j3B;3bUsC>3w;++)Kp;$1eDdcLrK|m2F<5C=qKb7p;KzTl=6LNgSq{EUVVu*rk;Py%DW0x>~nLlI2jXed2EGZ2%!Nax#RF*{v%-Pd0*MYVZVs-)NUkBnY zpelH1zi%|8l+$2he~HbveNbW+R<5LO>Vb0hqgOQ*Cp`zyBWlQ|tRpmCp@UNfh}cUH zCq#S+Ius^qN}r~xqLLmeudtVj-^{v^<^oc)H{{GwOi79xo9yVA+t}nNZESLS>>^o( zV=v7UM9#PGrv-abuqiUJdpIm8rlM{U^ zJp!p5Sh0u>;Z3BkNl9NrkDAd--o%r#%(ur(kGtQDZ~Si%OqcU573e<+OWd`_jt3U z-+EI_f;$1=e;Z-Fo2UR>&BFGJ@O~OVp0r>ATN$WO zk!m8@`p~3+d{Ch$8A_P^DFlAX3}3&%-_!Jr6{fR>W20>J9|r7BMGV^0OLdMCSdpzMD2k z$Jq^lTp?n!(o0RCcuvm7Zu*)a43BQw)J^BgV9sW|?16;2fYIgDXg;r{bqS!IOL=JT zf+_BXf8y>z%DNXb?gPknQw8F|azum;P~;ZcgUGZOQRN}5?**l9XsZWs>;<*`2;2u? zj)O4U!=UyEaB~Rm|CnjSb^vk%9P?TFC3L$5$?G{YG_=uVIt=)^u-h7Xo?d{lE9gvm z(e$b-F!yEpHTtfHSzo4COgJA-0pKt&DF7IQf1Q70!Z{cG{5A#W8gjY%u&*m=dHk5W7NZ^M^(&4ipS`$^kN&E4dy zE6(wElb&@aIqbV_yHg&VW3u}sSbvJf0b=6;Fj2-hi$X#Sl}6C-Os^D{U4)Q2UO32- zf1d&pyY7b~9C$7)Ha)5gkCuAd(#a*rO(zwZ=q#B$2k`76yX3VS$zj{Q!zSK_sk8f8 znr7w-(fna-{5*on3$VqDaI%+>hn}Z7(4Me358LHq)*tCl5Ml(vs^l3P*36(c=`B-$ zg(*8Mq(7T>5CMjh?QYh3lk!Bk68Q*2yl#rXFJ9@Tb~x4fO#{YyDB43Ylqw#(bQvCJ55>j7w(X+f zmaA>^D39*yyG}OkkWQER=5al`2SRQ_nvH_HC>iF{4WLT}cNwa;%Tfw#0N4nYe{n-K zqo4{8lrf#&hVtH_Qz7XxdJmM|2dxi~x<3S^50I5UL`M1u^gc!`{{+-NhT=X!_45x? z*=wMe>2x;zh5ibSZ9-x29{mj#ABDX3KK&g#LuV;vUjvF(2D=7y1@u?r%bMqgQ+`DM z1!=?-8Y!RCD1|;&sPzbyD-`Ubf7zs@;ao=0t$-P1_J4dv*;#$Cx+66OAFbw4A1vn> zv=Un+GeslV_$U1jzvLvbm}t)>O`n`lHysab4w?&|vp!0bY(+SZ@( ztX%%zX#WrK{!>(Y|3<}&3^Ux$>mecqQ(Zuf9BEunuX5& zrjH?qBmVC_Lb=?}^e7j0`ZU3G4OWS!m7-$ga94j>>om8RXtLn7rqE{z78LsbgfSE_ zE9FEgcY^p4Fm5?;Ii51hA@MjfY1Nuwk;dXLs4v4}=W#8@d`>K`NCYgWS%76;Z3QG} zN-C!%73gHKEfXF4?h~YAS!YK=&8wju35zbM8HWhlo{W^NvdxvELJ+q8-N2LS zN5r#DTf71dZ*Cb8wgCVDU;_XEIFk_)7LyQQ4U;)u8Glk+OB+EH{?2BztLawbs=e7u zqCUj+vPJsVQV5Dr2)5ATL*FLJkW5^6!(^lQuM`YIANm9Oqe{#65H4Rn%86N+c0z#vKz0e2(%4H+bR(O+m z%yxmJE*!XguSDA;P;?6?+8Ln`?T+AHbKb$Cond+uPwFx16w63Z=1erkVu=r|XE?}u zhEvtCp3z}gSMg-R8uM+siqQ=USAS_do78r6Fm9NPCOmx*?A`}oJ^*&`%-ZLy8?2DH z@|xd7e*jQR0|W{H00;;G002P%9ZJ~Z76$+TTMhsKCX*2o7LyQQ6@O`C8&?%QV@n!Y z9>jK->nrHBoEX!CP_C)*V|Dc@lY~jz){g;JbqVVi?~G>MHMe8I67Te)AN&N$+6AVvVUV1ECpKHvJ877ua`G1`%v{;lMR#=YZBYl_5^#yx+FmOP8k%Vc zs35$mmy8)*0vXQItS7eGg#z8My_G6|aOF!^%%XzX_-O3ZAw%1Cs+)~8F_ zMEjf%r`;Km@pyHl;No!*NB^*uq}>d}pF{LfmnLOWQs|q(m!yxT4{;OxBc79H`TdgT z7J~a1txiL%c!r~L(tV}+${_whOE1r;{i{|8&I$rGQYSGTiuy+kkuK3$kIw&Fur=T4NeX_| zn%dVruz7~1*jE0!vgsH>>!qpo7puQIdoG51j=F*{yuVAWQF+)^@-J485x}Bun7AK5 zd)9R*)_Uq6p-ke6(K}{m?YZ?$+~)^u zzE1Co;qJPxqzFh&k3W+f~FMH?&2pEhV=!@>#UZlto>&uvdfR2$HV&x5Av4ry6mPjcU-luSRCl=nU zat1fa>btM?u5q4^*9LubA*(R7C99W@bK1stD#?8x8T+HlXrbW34RsmWmiV*Q2bm8? z?3;L$M1J1O5R=2KOk3wDiHK4x* zP9dp2JI^w=VF3>*f&=OH>ftL|D)cXpEsuk=)?pvK=%hnO$lP?CeT(-a6#ZuyJN@Vo z)@jXkTus5&1^o^mHu9RkBxTCo|3$avVwZ^ZQ4yZJwZ5)&(rYvi(3|}FL^$s4?&KmO zrSM+oFUqTa6eby4^Le)hBEr01 zDDbpo+wWH_zn|N8Akxs9u2W2Ju+6ssU+JZ)eiAc~-R-T7D%M`ZsU#j8xS~LwH83xc zNbc8(vkCct-(K*^CT749xPIugNSbfB;yPVduTR!az$d&)Hv-->(r@xl@^UJ2AVDxLGDxOcE)GH zjbpeBbm8PlQKUH1%7;s}<*)O;C+;zH1dguYn&e9}^Ir2GY58KBXVn?x>YCuvAB~E* zT5bBe&Zf`)_%S;D3hhf;>R5mrHK#ImjFOTPJ+&0~zVnImJVoLiY-kXaKsb~corgiX zn=y6(N*SuZ+wd%!2~LTu3r*KtSNAH)Wl0K50rO8yTlz7V?R?9!C)aTeuMZP6s#5^7 zh%QXtOjggbTYAeHMd5Yun#)_-kVemr{Is0(<>ICYC;1GCG}KK(Eo-W(y>UuiG22Wo z%2>w1fM*OTfxq4N>q=B-Z!)zF z{mk1xwmufiMywzFvzEUN)|o(pp*Q+~oa4#F5831_E{{?6>Orh3`%U>(*x~jtWuv5s z4!M41uh`CR6u_`D_AKT7+?v?O_5hRaIL z_7*s;oj;Awi;^PS3amy%>dk+Ty=(M(TbAK7nSUkPvnrTYtHc7X}7;i^H1TP|!$M^8#D?A& zcTkBo)d>T&nLR_T*SuL{3i|ceVUMB@%Q;cb=wV-HZhz20N%r0~;*jf1JDTa5bxwNW zl&g?AuPN$-Hit&J$*-Jh|2cQvW@7RHdrWnE@)3@(dznoO5u%}|3xmt#$ie&43oJvj z(hrEbsJnOQDrvtzWPmo%BWCqngcY?BJ$rc7L3m$Paae_nts)OHSGO6Qte$9zVFgCg zJ8m`4^>24sA{7Vi?@ILRN4N%^W=djvV90&ce5k!0<{47NBX^9pM?k;$iY@wFJgrz_ z7q|x1*~i|wd%tjCVEGOz)kY>R8k#tONMizW5@_Jsa|)!_Q{?50QN7J+!HtFZf_Hqo z<`YdanJ_X8oSpO^)U&)FlyN4r7hxP$H_nS2Yf`dC(z8tz-iS^#Z7+4mib=4Gn3x5r zvG89NEJ$4JWW9QnEg=fOzSzY@bM>S%zZdmjJ0XFni$PH%G?2X!*;86|CMWbK zm8z!f1SjW*sEYj+8z8O8j3zMx-G8WXBfEw7na zQyIHmDD6Otl+XHH$AkBEB)>x6eI>!+t9tAx7;~Y8DoV)VxIrWxUgBR>Tvn>5OyMxh z!``AXob>P~{!(vOl|C80QP`t%_t#jO3@s!cK`9}3hux|Wzn}z-$~rcE!mv!kXu@c? zuH9VIq~hm+4OTw;&gAxE$?kH%r{e+tDla>YD_)K9qIrDO&*CDj&*8z){SRumdt_N% z;en=Eo6W=VqAA6z8$LKfhav+MI4Uz1;odv%mL)qZK6)y&T03U`9I#6LBDE6o_3*xJ8USGsx+5m28>4>_4f+M+C0+3-3V*7a`i2f zlGl^_3g+^nvE7Tmd*5S;(EpvTp>N&l7%u(8^<(qNF9gJ*_U8L%P1#)O9<4O#!d&5| z6>lTI?iMBLs83ME%&g)WRsN>g|B*yhW=l0GKz3IPj1Mj;)p5&Q@fA~l_{8}A9NZCU z9Z!VU?_*j$DD90&P;w#rP-jtQ$Ci8M{Y!{YB%1DMvtwrl$JG@@or%3F}h7r-h z!9&&_nj7o`+U^@>$75k*qN076j5;N5h@98kbXrNRy{<#93db)<%>rW0OVA7Pgn7ix z1O1Cb8VSuv386U2#sIpufM0_`YH*+60oLE4`~@#ng+d9OJ2rlDqmL;Tbl|>AQmUms zsThEV9#EbGqg{Sy)QEBchAV{LwC}27um^oAaXnr?c9r--pA?&~_WAv{D%VesC}qUJ zzAaHs%Iyh|1Y`OouWwM5F$r7^H-0(6D6Nzpuz^gXkwUCd(WY}>Ugt9L9K4{)90bT2 zd@8otlqJjzXH=F{RL&tSe)n2k4D07r5Hzfp2#kY}%W|M@lG2S(*xw#F{kcmKJDWu! zyf1SKa($VkDTWZ)q{is8zeAD5?KXboj7>Y%Eb|gytI0QogBLQuJg#n?kX!7f(2RpY z*Sezj9#rjc=h6vozxlVV{T2e+K7?vPGd! zkBBXP-vde$Y<|HH7W!7R=ocz?o3BSCaMQf&9Je)6KcvQl3{p^rbmwq?-|iEsvz4M7 zGw&ZX7*1o#fGk$&wM||rcRyA5l$HT~%$fa5lJCPJamk`-nt7=8WR{I1%wEd>*|Eb% zfz}GSm%98=gb$T#&t(0~Q|wYoujH0h^b|tV?S?!PnB{zgI$y>(SHay~ONcm?g?%qI-#H& zl}tYolx$|+fface?#kLz9R045&n&&b+c1hfEzpr4IGZ+##LRp#ltxoWM}j=h|oq)?KN(>fv!P8N_Iu9v0~lRfqEMiiprOW&~AsZ z1NyI7wwy(}1Z7{#9&V(I`Y`^$jl|T-G1X3fWma=oXvLI8|NJ@kNLWi1u}s;~nfQJ^ zB!enhK%*5tJQX6;fcusC<~q-7EAH%gNq>fgngUiRX_f>ehJ*E zWXc^cagiHs5lR^X2^W1)O`5^Av+gJC*3~cU+P@SGOuaG5CXKvvv!^#ZlXP)jKGF+Y zFtqC9D6w{F_QrP=ZBh;pC`4YK(j|vp{Dowae?RdQzxWWZyyusa4w)@*&ER~)`2K}? zD4f}qu-DACXVa$m%eN|u#`;do+_9=`o~sO)Jae3IAk1s1Mp@7Tv=uRLr+WR$!=o*_kdhUKJR%+0FVt59l2)&>T4&~=Ss#=R(6H#of@ zJKaNvSfzgxsb#5R9QK6YX~>zHB#MLYDR>*Hudq5( zPd+1Ziu&-jSr9od8q&(YbU97(`X#y12W$zIvny$&?7;d*FgMLEMG#63FS zynF6T>%O9M3BK|tFE9So8c9v;{z5)I80$I?Sr%`!T#UoAxE3~?U#$d^)*sXwSgkMHyxgK3SvDFEyZj%(hyE-5pmMH;3i zX(z-KkkQX8EY01$#2OOzmm?*M-|w0P3sZNOk7?1P`w8#X{_@eq9GKZ)}tD$rdtfOiI3XFE-K=l*{)i=v@%0&z3K z0MjfF$PN>5<{$&&nC=0tvtZ~Sne|Zq{y7Q}8d(2=;`o$+8j=wD-y~{iX!QS(sCyxz z4f|i1n-~)?o+kv#kPuKS`0r{O;2a49l~UfSaArEdU=9YVp+l+M!1Dz{=)arQ$0S0)t0sXQ5@`v3$^;_^i%Q0X8XOR&4$7KE=FsbI>FbQD12m?7j`_D5M z6+!+6x8l{J9LUS~ZxIW4u_O%oY7L|>X@Uf7fNx7WAU_*GdRYuqZUZ2^_<^w%LZE9I z0(xkNQYnGcWew2wD_}es3d{yj{1poju>t}4JKt8l3M4=oz(9*Gx9VsR-Yu~kL5TNH zkc9{)FH|EV;JQiy{dZOcl{G-@9|CnRL=br2LW8Svphmx2u`HJOwx9m^RQ$u{UBE4v zlRyPjuE9X)At+S|_`OL8{rBaO2n|i*51R(mzjvr$iqfD!%sLE28h5LXy`cj1wg>^N z4G4%N5vVC*1JpL8K;UGQDDsy_U>eoJng(>0hyt9OFc5RbEflyZ1ftKr71uVUK!mxs z-ab_mp_~%}wp$R8MgDCST^-F|RnWi2D>*S5nmrq8QRa`pa*9wO13rn{X7O47|Cs*AZy{o=|Bn&=ZiyHA i*O30_C`2#}`~jRVQIld|{?*KnI(tyPXN>~T(Ebm|$u)5R diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index edf01bd98..8fad3f5a9 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Wed Sep 22 20:53:23 BST 2021 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip distributionPath=wrapper/dists -zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/example/android/gradlew b/example/android/gradlew index 2fe81a7d9..1b6c78733 100755 --- a/example/android/gradlew +++ b/example/android/gradlew @@ -1,7 +1,7 @@ -#!/usr/bin/env sh +#!/bin/sh # -# Copyright 2015 the original author or authors. +# Copyright ยฉ 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,78 +17,113 @@ # ############################################################################## -## -## Gradle start up script for UN*X -## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, +# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; +# * compound commands having a testable exit status, especially ยซcaseยป; +# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# ############################################################################## # Attempt to set APP_HOME + # Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` +APP_BASE_NAME=${0##*/} # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" +MAX_FD=maximum warn () { echo "$*" -} +} >&2 die () { echo echo "$*" echo exit 1 -} +} >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACMD=$JAVA_HOME/jre/sh/java else - JAVACMD="$JAVA_HOME/bin/java" + JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME @@ -97,7 +132,7 @@ Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else - JAVACMD="java" + JAVACMD=java which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the @@ -105,79 +140,95 @@ location of your Java installation." fi # Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac fi -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) fi - i=`expr $i + 1` + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac fi -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' exec "$JAVACMD" "$@" diff --git a/example/android/gradlew.bat b/example/android/gradlew.bat index b742c9917..107acd32c 100644 --- a/example/android/gradlew.bat +++ b/example/android/gradlew.bat @@ -5,7 +5,7 @@ @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem -@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem https://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable law or agreed to in writing, software @rem distributed under the License is distributed on an "AS IS" BASIS, @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init +if "%ERRORLEVEL%" == "0" goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -54,7 +54,7 @@ goto fail set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe -if exist "%JAVA_EXE%" goto init +if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% @@ -64,28 +64,14 @@ echo location of your Java installation. goto fail -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + @rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell diff --git a/example/android/settings.gradle b/example/android/settings.gradle index a42f7ea06..4063da447 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,6 +1,11 @@ rootProject.name = 'ReactNativeExample' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' +includeBuild('../node_modules/react-native-gradle-plugin') -include ':primerioreactnative' -project(':primerioreactnative').projectDir = new File(rootProject.projectDir, '../../android') +if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { + include(":ReactAndroid") + project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') + include(":ReactAndroid:hermes-engine") + project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') +} diff --git a/example/app.json b/example/app.json index ce51b7d4c..9f4547483 100644 --- a/example/app.json +++ b/example/app.json @@ -1,4 +1,4 @@ { "name": "ReactNativeExample", - "displayName": "ReactNative Example" -} + "displayName": "ReactNativeExample" +} \ No newline at end of file diff --git a/ReactNativeExample/index.js b/example/index.js similarity index 100% rename from ReactNativeExample/index.js rename to example/index.js diff --git a/example/index.tsx b/example/index.tsx deleted file mode 100644 index 9250f395b..000000000 --- a/example/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { AppRegistry } from 'react-native'; -import { name as appName } from './app.json'; -import App from './src/App'; - -AppRegistry.registerComponent(appName, () => App); diff --git a/example/ios/Bridge.swift b/example/ios/Bridge.swift deleted file mode 100644 index cee0ae9ee..000000000 --- a/example/ios/Bridge.swift +++ /dev/null @@ -1,8 +0,0 @@ -// -// Bridge.swift -// ReactNativeExample -// -// Created by Carl Eriksson on 01/02/2021. -// - -import Foundation diff --git a/example/ios/File.swift b/example/ios/File.swift deleted file mode 100644 index 71e4f9f8e..000000000 --- a/example/ios/File.swift +++ /dev/null @@ -1,6 +0,0 @@ -// -// File.swift -// ReactNativeExample -// - -import Foundation diff --git a/example/ios/Podfile b/example/ios/Podfile index 4531d9822..5f963fd84 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -6,76 +6,57 @@ install! 'cocoapods', :deterministic_uuids => false target 'ReactNativeExample' do config = use_native_modules! - + # Flags change depending on the env values. flags = get_default_flags() - - use_react_native!( - :path => config[:reactNativePath], - # Hermes is now enabled by default. Disable by setting this flag to false. - # Upcoming versions of React Native may rely on get_default_flags(), but - # we make it explicit here to aid in the React Native upgrade process. - :hermes_enabled => false, - :fabric_enabled => flags[:fabric_enabled], - # Enables Flipper. - # - # Note that if you have use_frameworks! enabled, Flipper will not work and - # you should disable the next line. - # :flipper_configuration => FlipperConfiguration.enabled, - # An absolute path to your application root. - :app_path => "#{Pod::Config.instance.installation_root}/.." - ) - - pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' - pod 'Primer3DS' - pod 'PrimerKlarnaSDK' - - # Enables Flipper. - # - # Note that if you have use_frameworks! enabled, Flipper will not work and - # you should disable these next few lines. - # use_flipper! - # post_install do |installer| - # flipper_post_install(installer) - # end - - # Enables Primer3DS if it has been added in your podfile. - # - # Note that if you have use_frameworks! enabled, Primer3DS will not work without - # disabling these next few lines. - post_install do |installer| - react_native_post_install( - installer, - # Set `mac_catalyst_enabled` to `true` in order to apply patches - # necessary for Mac Catalyst builds - :mac_catalyst_enabled => false - ) - __apply_Xcode_12_5_M1_post_install_workaround(installer) - - installer.pods_project.targets.each do |target| - if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" - target.build_configurations.each do |config| - config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' - end - end - - if target.name == "primer-io-react-native" || target.name == "PrimerSDK" - target.build_configurations.each do |config| - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' - - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' - end - end - end - end - + + use_react_native!(:path => config[:reactNativePath], + # Hermes is now enabled by default. Disable by setting this flag to false. + # Upcoming versions of React Native may rely on get_default_flags(), but + # we make it explicit here to aid in the React Native upgrade process. + :hermes_enabled => false, + :fabric_enabled => flags[:fabric_enabled], + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable the next line. + # :flipper_configuration => FlipperConfiguration.enabled, + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/..") + + pod 'primer-io-react-native', :path => '../..' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' + pod 'Primer3DS' + pod 'PrimerKlarnaSDK' + + post_install do |installer| + # Set `mac_catalyst_enabled` to `true` in order to apply patches + # necessary for Mac Catalyst builds + react_native_post_install(installer,:mac_catalyst_enabled => false) + __apply_Xcode_12_5_M1_post_install_workaround(installer) + + installer.pods_project.targets.each do |target| + if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" + target.build_configurations.each do |config| + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' + end + end + + if target.name == "primer-io-react-native" || target.name == "PrimerSDK" + target.build_configurations.each do |config| + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' + + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' + end + end + end + end end diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 362f4f18a..3ee4a249f 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -497,6 +497,6 @@ SPEC CHECKSUMS: RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d Yoga: 1f02ef4ce4469aefc36167138441b27d988282b1 -PODFILE CHECKSUM: e50980261055f6b6186233c2551733f6ebe73f05 +PODFILE CHECKSUM: 462c51d6af3876482ac06eabd2888889f7d8c0d6 COCOAPODS: 1.11.3 diff --git a/example/ios/ReactNativeExample-Bridging-Header.h b/example/ios/ReactNativeExample-Bridging-Header.h deleted file mode 100644 index e11d920b1..000000000 --- a/example/ios/ReactNativeExample-Bridging-Header.h +++ /dev/null @@ -1,3 +0,0 @@ -// -// Use this file to import your target's public headers that you would like to expose to Swift. -// diff --git a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj index 360aedf80..562f15ee5 100644 --- a/example/ios/ReactNativeExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeExample.xcodeproj/project.pbxproj @@ -3,92 +3,41 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ - 00E356F31AD99517003FC87E /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 1D14D8CF25C8B20D00206A38 /* Bridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D14D8CE25C8B20D00206A38 /* Bridge.swift */; }; - 2C2230E6291402DE0054E47E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; - 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; - 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 2DCD954D1E0B4F2C00145EB5 /* ReactNativeExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - EFE640F7AA5EA0FCD4747313 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */; }; + 849FAA83291588E600CC003E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 849FAA82291588E600CC003E /* main.jsbundle */; }; + F86806F958820DBEC88B7943 /* libPods-ReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E12AF391740D9E3565C2F4B /* libPods-ReactNativeExample.a */; }; /* End PBXBuildFile section */ -/* Begin PBXContainerItemProxy section */ - 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 13B07F861A680F5B00A75B9A; - remoteInfo = ReactNativeExample; - }; - 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; - remoteInfo = "ReactNativeExample-tvOS"; - }; -/* End PBXContainerItemProxy section */ - /* Begin PBXFileReference section */ - 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 00E356EE1AD99517003FC87E /* ReactNativeExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* ReactNativeExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeExampleTests.m; sourceTree = ""; }; - 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeExample/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeExample/AppDelegate.m; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ReactNativeExample/AppDelegate.mm; sourceTree = ""; }; 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeExample/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeExample/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeExample/main.m; sourceTree = ""; }; - 1D14D8CD25C8B20D00206A38 /* ReactNativeExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeExample-Bridging-Header.h"; sourceTree = ""; }; - 1D14D8CE25C8B20D00206A38 /* Bridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bridge.swift; sourceTree = ""; }; - 1D3922C8270DAADD001BDCCA /* ReactNativeExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeExample.entitlements; path = ReactNativeExample/ReactNativeExample.entitlements; sourceTree = ""; }; - 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; - 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; + 2AAA284F7BD6C05682E7252A /* Pods-ReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.debug.xcconfig"; sourceTree = ""; }; + 555DA8CEF80005A957B6E379 /* Pods-ReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample.release.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeExample/LaunchScreen.storyboard; sourceTree = ""; }; + 849FAA82291588E600CC003E /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; + 9E12AF391740D9E3565C2F4B /* libPods-ReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; - ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 00E356EB1AD99517003FC87E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - EFE640F7AA5EA0FCD4747313 /* libPods-ReactNativeExample.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( + F86806F958820DBEC88B7943 /* libPods-ReactNativeExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -115,10 +64,9 @@ 13B07FAE1A68108700A75B9A /* ReactNativeExample */ = { isa = PBXGroup; children = ( - 1D3922C8270DAADD001BDCCA /* ReactNativeExample.entitlements */, - 008F07F21AC5B25A0029DE68 /* main.jsbundle */, + 849FAA82291588E600CC003E /* main.jsbundle */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, - 13B07FB01A68108700A75B9A /* AppDelegate.m */, + 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 13B07FB51A68108700A75B9A /* Images.xcassets */, 13B07FB61A68108700A75B9A /* Info.plist */, 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, @@ -131,21 +79,11 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - 0ABE12BA3F45C4C4E495BCEA /* libPods-ReactNativeExample.a */, + 9E12AF391740D9E3565C2F4B /* libPods-ReactNativeExample.a */, ); name = Frameworks; sourceTree = ""; }; - 6B9684456A2045ADE5A6E47E /* Pods */ = { - isa = PBXGroup; - children = ( - 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */, - 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; 832341AE1AAA6A7D00B99B32 /* Libraries */ = { isa = PBXGroup; children = ( @@ -156,14 +94,12 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 1D14D8CE25C8B20D00206A38 /* Bridge.swift */, 13B07FAE1A68108700A75B9A /* ReactNativeExample */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* ReactNativeExampleTests */, 83CBBA001A601CBA00E9B192 /* Products */, 2D16E6871FA4F8E400B85C8A /* Frameworks */, - 6B9684456A2045ADE5A6E47E /* Pods */, - 1D14D8CD25C8B20D00206A38 /* ReactNativeExample-Bridging-Header.h */, + BBD78D7AC51CEA395F1C20DB /* Pods */, ); indentWidth = 2; sourceTree = ""; @@ -174,47 +110,34 @@ isa = PBXGroup; children = ( 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */, - 00E356EE1AD99517003FC87E /* ReactNativeExampleTests.xctest */, - 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */, - 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */, ); name = Products; sourceTree = ""; }; + BBD78D7AC51CEA395F1C20DB /* Pods */ = { + isa = PBXGroup; + children = ( + 2AAA284F7BD6C05682E7252A /* Pods-ReactNativeExample.debug.xcconfig */, + 555DA8CEF80005A957B6E379 /* Pods-ReactNativeExample.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 00E356ED1AD99517003FC87E /* ReactNativeExampleTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeExampleTests" */; - buildPhases = ( - 00E356EA1AD99517003FC87E /* Sources */, - 00E356EB1AD99517003FC87E /* Frameworks */, - 00E356EC1AD99517003FC87E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 00E356F51AD99517003FC87E /* PBXTargetDependency */, - ); - name = ReactNativeExampleTests; - productName = ReactNativeExampleTests; - productReference = 00E356EE1AD99517003FC87E /* ReactNativeExampleTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; 13B07F861A680F5B00A75B9A /* ReactNativeExample */ = { isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */; buildPhases = ( - 095A3539812F74CE36028388 /* [CP] Check Pods Manifest.lock */, + EDCC8E1F03E1A24BC88ABC36 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */, - A121F00B38151D231314D62A /* [CP] Embed Pods Frameworks */, - 545EB451D054D7CE2BB587FA /* [CP] Copy Pods Resources */, + 2176EA69C8AE3A1C2826A396 /* [CP] Embed Pods Frameworks */, + 30633C1DF81328D426839D1F /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -225,71 +148,21 @@ productReference = 13B07F961A680F5B00A75B9A /* ReactNativeExample.app */; productType = "com.apple.product-type.application"; }; - 2D02E47A1E0B4A5D006451C7 /* ReactNativeExample-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeExample-tvOS" */; - buildPhases = ( - FD10A7F122414F3F0027D42C /* Start Packager */, - 2D02E4771E0B4A5D006451C7 /* Sources */, - 2D02E4781E0B4A5D006451C7 /* Frameworks */, - 2D02E4791E0B4A5D006451C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "ReactNativeExample-tvOS"; - productName = "ReactNativeExample-tvOS"; - productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeExample-tvOS.app */; - productType = "com.apple.product-type.application"; - }; - 2D02E48F1E0B4A5D006451C7 /* ReactNativeExample-tvOSTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeExample-tvOSTests" */; - buildPhases = ( - 2D02E48C1E0B4A5D006451C7 /* Sources */, - 2D02E48D1E0B4A5D006451C7 /* Frameworks */, - 2D02E48E1E0B4A5D006451C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, - ); - name = "ReactNativeExample-tvOSTests"; - productName = "ReactNativeExample-tvOSTests"; - productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeExample-tvOSTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 83CBB9F71A601CBA00E9B192 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1240; + LastUpgradeCheck = 1210; TargetAttributes = { - 00E356ED1AD99517003FC87E = { - CreatedOnToolsVersion = 6.2; - TestTargetID = 13B07F861A680F5B00A75B9A; - }; 13B07F861A680F5B00A75B9A = { - DevelopmentTeam = N8UN9TR5DY; - LastSwiftMigration = 1240; - }; - 2D02E47A1E0B4A5D006451C7 = { - CreatedOnToolsVersion = 8.2.1; - ProvisioningStyle = Automatic; - }; - 2D02E48F1E0B4A5D006451C7 = { - CreatedOnToolsVersion = 8.2.1; - ProvisioningStyle = Automatic; - TestTargetID = 2D02E47A1E0B4A5D006451C7; + LastSwiftMigration = 1120; }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */; - compatibilityVersion = "Xcode 3.2"; + compatibilityVersion = "Xcode 12.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -302,46 +175,21 @@ projectRoot = ""; targets = ( 13B07F861A680F5B00A75B9A /* ReactNativeExample */, - 00E356ED1AD99517003FC87E /* ReactNativeExampleTests */, - 2D02E47A1E0B4A5D006451C7 /* ReactNativeExample-tvOS */, - 2D02E48F1E0B4A5D006451C7 /* ReactNativeExample-tvOSTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 00E356EC1AD99517003FC87E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F8E1A680F5B00A75B9A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 2C2230E6291402DE0054E47E /* main.jsbundle in Resources */, + 849FAA83291588E600CC003E /* main.jsbundle in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 2D02E4791E0B4A5D006451C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48E1E0B4A5D006451C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -351,91 +199,51 @@ files = ( ); inputPaths = ( + "$(SRCROOT)/.xcode.env.local", + "$(SRCROOT)/.xcode.env", ); name = "Bundle React Native code and images"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "cd $PROJECT_DIR/..\nexport NODE_BINARY=node\nexport NODE_OPTIONS=\"--max_old_space_size=4096\"\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; + shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 095A3539812F74CE36028388 /* [CP] Check Pods Manifest.lock */ = { + 2176EA69C8AE3A1C2826A396 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 545EB451D054D7CE2BB587FA /* [CP] Copy Pods Resources */ = { + 30633C1DF81328D426839D1F /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh", - "${PODS_CONFIGURATION_BUILD_DIR}/PrimerSDK/PrimerResources.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Copy Pods Resources"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrimerResources.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 8C92FEA08BC180BF141B6E57 /* Bundle React Native Code And Images */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Bundle React Native Code And Images"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; - }; - A121F00B38151D231314D62A /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/KlarnaMobileSDK/full/KlarnaMobileSDK.framework/KlarnaMobileSDK", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/Primer3DS/ThreeDS_SDK.framework/ThreeDS_SDK", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KlarnaMobileSDK.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ThreeDS_SDK.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeExample/Pods-ReactNativeExample-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - FD10A7F022414F080027D42C /* Start Packager */ = { + EDCC8E1F03E1A24BC88ABC36 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -443,18 +251,21 @@ inputFileListPaths = ( ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", ); - name = "Start Packager"; + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( ); outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-ReactNativeExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - FD10A7F122414F3F0027D42C /* Start Packager */ = { + FD10A7F022414F080027D42C /* Start Packager */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -476,257 +287,67 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 00E356EA1AD99517003FC87E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 00E356F31AD99517003FC87E /* ReactNativeExampleTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F871A680F5B00A75B9A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, 13B07FC11A68108700A75B9A /* main.m in Sources */, - 1D14D8CF25C8B20D00206A38 /* Bridge.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E4771E0B4A5D006451C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, - 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48C1E0B4A5D006451C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2DCD954D1E0B4F2C00145EB5 /* ReactNativeExampleTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXTargetDependency section */ - 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 13B07F861A680F5B00A75B9A /* ReactNativeExample */; - targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; - }; - 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeExample-tvOS */; - targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - /* Begin XCBuildConfiguration section */ - 00E356F61AD99517003FC87E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = ReactNativeExampleTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "-ObjC", - "-lc++", - "$(inherited)", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.primerioreactnative; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeExample.app/ReactNativeExample"; - }; - name = Debug; - }; - 00E356F71AD99517003FC87E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - COPY_PHASE_STRIP = NO; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = ReactNativeExampleTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "-ObjC", - "-lc++", - "$(inherited)", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.primerioreactnative; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeExample.app/ReactNativeExample"; - }; - name = Release; - }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3A811E3485D7F97968E6B880 /* Pods-ReactNativeExample.debug.xcconfig */; + baseConfigurationReference = 2AAA284F7BD6C05682E7252A /* Pods-ReactNativeExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = ReactNativeExample/ReactNativeExample.entitlements; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = N8UN9TR5DY; ENABLE_BITCODE = NO; - GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = ReactNativeExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = io.primer.ReactNativeExample; + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = ReactNativeExample; - SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeExample-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3559978644F9487C5E185CA1 /* Pods-ReactNativeExample.release.xcconfig */; + baseConfigurationReference = 555DA8CEF80005A957B6E379 /* Pods-ReactNativeExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = ReactNativeExample/ReactNativeExample.entitlements; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = N8UN9TR5DY; - GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = ReactNativeExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = ( + LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", - "-ObjC", - "-lc++", + "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = io.primer.ReactNativeExample; - PRODUCT_NAME = ReactNativeExample; - SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeExample-Bridging-Header.h"; - SWIFT_VERSION = 4.2; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; - 2D02E4971E0B4A5E006451C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "ReactNativeExample-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeExample-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 12.0; - }; - name = Debug; - }; - 2D02E4981E0B4A5E006451C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "ReactNativeExample-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeExample-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 12.0; - }; - name = Release; - }; - 2D02E4991E0B4A5E006451C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "ReactNativeExample-tvOSTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeExample-tvOSTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeExample-tvOS.app/ReactNativeExample-tvOS"; - TVOS_DEPLOYMENT_TARGET = 12.0; - }; - name = Debug; - }; - 2D02E49A1E0B4A5E006451C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "ReactNativeExample-tvOSTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeExample-tvOSTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeExample-tvOS.app/ReactNativeExample-tvOS"; - TVOS_DEPLOYMENT_TARGET = 12.0; + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = ReactNativeExample; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; @@ -779,18 +400,26 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; - LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); LIBRARY_SEARCH_PATHS = ( - "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + ); REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; - SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -836,18 +465,25 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; - LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); LIBRARY_SEARCH_PATHS = ( - "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + ); REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_VERSION = 4.2; VALIDATE_PRODUCT = YES; }; name = Release; @@ -855,15 +491,6 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeExampleTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 00E356F61AD99517003FC87E /* Debug */, - 00E356F71AD99517003FC87E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeExample" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -873,24 +500,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeExample-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2D02E4971E0B4A5E006451C7 /* Debug */, - 2D02E4981E0B4A5E006451C7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeExample-tvOSTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2D02E4991E0B4A5E006451C7 /* Debug */, - 2D02E49A1E0B4A5E006451C7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExample" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme index f0ae3c05a..647292efc 100644 --- a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme +++ b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme @@ -1,6 +1,6 @@ - - - - + + + + - - - - - - - - PreviewsEnabled - - - diff --git a/example/ios/ReactNativeExample/AppDelegate.h b/example/ios/ReactNativeExample/AppDelegate.h index 2726d5e13..ef1de86a2 100644 --- a/example/ios/ReactNativeExample/AppDelegate.h +++ b/example/ios/ReactNativeExample/AppDelegate.h @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - #import #import diff --git a/example/ios/ReactNativeExample/AppDelegate.m b/example/ios/ReactNativeExample/AppDelegate.m deleted file mode 100644 index a012ce1e3..000000000 --- a/example/ios/ReactNativeExample/AppDelegate.m +++ /dev/null @@ -1,133 +0,0 @@ -#import "AppDelegate.h" - -#import -#import -#import - -#import - -#if RCT_NEW_ARCH_ENABLED -#import -#import -#import -#import -#import -#import - -#import - -static NSString *const kRNConcurrentRoot = @"concurrentRoot"; - -@interface AppDelegate () { - RCTTurboModuleManager *_turboModuleManager; - RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; - std::shared_ptr _reactNativeConfig; - facebook::react::ContextContainer::Shared _contextContainer; -} -@end -#endif - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - RCTAppSetupPrepareApp(application); - - RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; - -#if RCT_NEW_ARCH_ENABLED - _contextContainer = std::make_shared(); - _reactNativeConfig = std::make_shared(); - _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); - _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; - bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; -#endif - - NSDictionary *initProps = [self prepareInitialProps]; - UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"ReactNativeExample", initProps); - - if (@available(iOS 13.0, *)) { - rootView.backgroundColor = [UIColor systemBackgroundColor]; - } else { - rootView.backgroundColor = [UIColor whiteColor]; - } - - self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; - UIViewController *rootViewController = [UIViewController new]; - rootViewController.view = rootView; - self.window.rootViewController = rootViewController; - [self.window makeKeyAndVisible]; - return YES; -} - -/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. -/// -/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html -/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). -/// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. -- (BOOL)concurrentRootEnabled -{ - // Switch this bool to turn on and off the concurrent root - return true; -} - -- (NSDictionary *)prepareInitialProps -{ - NSMutableDictionary *initProps = [NSMutableDictionary new]; - -#ifdef RCT_NEW_ARCH_ENABLED - initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); -#endif - - return initProps; -} - -- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge -{ -#if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; -#else - return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; -#endif -} - -#if RCT_NEW_ARCH_ENABLED - -#pragma mark - RCTCxxBridgeDelegate - -- (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge -{ - _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge - delegate:self - jsInvoker:bridge.jsCallInvoker]; - return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); -} - -#pragma mark RCTTurboModuleManagerDelegate - -- (Class)getModuleClassFromName:(const char *)name -{ - return RCTCoreModulesClassProvider(name); -} - -- (std::shared_ptr)getTurboModule:(const std::string &)name - jsInvoker:(std::shared_ptr)jsInvoker -{ - return nullptr; -} - -- (std::shared_ptr)getTurboModule:(const std::string &)name - initParams: - (const facebook::react::ObjCTurboModule::InitParams &)params -{ - return nullptr; -} - -- (id)getModuleInstanceFromClass:(Class)moduleClass -{ - return RCTAppSetupDefaultModuleFromClass(moduleClass); -} - -#endif - -@end diff --git a/ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm b/example/ios/ReactNativeExample/AppDelegate.mm similarity index 100% rename from ReactNativeExample/ios/ReactNativeExample/AppDelegate.mm rename to example/ios/ReactNativeExample/AppDelegate.mm diff --git a/example/ios/ReactNativeExample/Info.plist b/example/ios/ReactNativeExample/Info.plist index bbfb3ed78..2fa84672e 100644 --- a/example/ios/ReactNativeExample/Info.plist +++ b/example/ios/ReactNativeExample/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - ReactNative Example + ReactNativeExample CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -20,21 +20,8 @@ 1.0 CFBundleSignature ???? - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - primer - CFBundleURLSchemes - - primer - - - CFBundleVersion - $(CURRENT_PROJECT_VERSION) + 1 LSRequiresIPhoneOS NSAppTransportSecurity @@ -44,10 +31,7 @@ NSExceptionDomains localhost - - NSExceptionAllowsInsecureHTTPLoads - - + NSLocationWhenInUseUsageDescription diff --git a/example/ios/ReactNativeExample/LaunchScreen.storyboard b/example/ios/ReactNativeExample/LaunchScreen.storyboard index d4cc59906..147c4d213 100644 --- a/example/ios/ReactNativeExample/LaunchScreen.storyboard +++ b/example/ios/ReactNativeExample/LaunchScreen.storyboard @@ -16,32 +16,21 @@ - - - + - - - diff --git a/example/ios/ReactNativeExample/ReactNativeExample.entitlements b/example/ios/ReactNativeExample/ReactNativeExample.entitlements deleted file mode 100644 index a3befc7ac..000000000 --- a/example/ios/ReactNativeExample/ReactNativeExample.entitlements +++ /dev/null @@ -1,10 +0,0 @@ - - - - - com.apple.developer.in-app-payments - - merchant.checkout.team - - - diff --git a/example/ios/ReactNativeExample/main.m b/example/ios/ReactNativeExample/main.m index c316cf816..d645c7246 100644 --- a/example/ios/ReactNativeExample/main.m +++ b/example/ios/ReactNativeExample/main.m @@ -1,15 +1,9 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - #import #import "AppDelegate.h" -int main(int argc, char * argv[]) { +int main(int argc, char *argv[]) +{ @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } diff --git a/ReactNativeExample/ios/ReactNativeExampleTests/Info.plist b/example/ios/ReactNativeExampleTests/Info.plist similarity index 100% rename from ReactNativeExample/ios/ReactNativeExampleTests/Info.plist rename to example/ios/ReactNativeExampleTests/Info.plist diff --git a/ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m b/example/ios/ReactNativeExampleTests/ReactNativeExampleTests.m similarity index 100% rename from ReactNativeExample/ios/ReactNativeExampleTests/ReactNativeExampleTests.m rename to example/ios/ReactNativeExampleTests/ReactNativeExampleTests.m diff --git a/ReactNativeExample/ios/_xcode.env b/example/ios/_xcode.env similarity index 100% rename from ReactNativeExample/ios/_xcode.env rename to example/ios/_xcode.env diff --git a/example/ios/main.jsbundle b/example/ios/main.jsbundle index bdbc63b14..934fa62b6 100644 --- a/example/ios/main.jsbundle +++ b/example/ios/main.jsbundle @@ -1,404 +1,115050 @@ -var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; -!(function(r){"use strict";r.__r=i,r[__METRO_GLOBAL_PREFIX__+"__d"]=function(r,n,o){if(null!=e[n])return;var i={dependencyMap:o,factory:r,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};e[n]=i},r.__c=o,r.__registerSegment=function(r,t,n){s[r]=t,n&&n.forEach(function(t){e[t]||v.has(t)||v.set(t,r)})};var e=o(),t={},n={}.hasOwnProperty;function o(){return e=Object.create(null)}function i(r){var t=r,n=e[t];return n&&n.isInitialized?n.publicModule.exports:d(t,n)}function l(r){var n=r;if(e[n]&&e[n].importedDefault!==t)return e[n].importedDefault;var o=i(n),l=o&&o.__esModule?o.default:o;return e[n].importedDefault=l}function u(r){var o=r;if(e[o]&&e[o].importedAll!==t)return e[o].importedAll;var l,u=i(o);if(u&&u.__esModule)l=u;else{if(l={},u)for(var a in u)n.call(u,a)&&(l[a]=u[a]);l.default=u}return e[o].importedAll=l}i.importDefault=l,i.importAll=u,i.context=function(){throw new Error("The experimental Metro feature `require.context` is not enabled in your project.")};var a=!1;function d(e,t){if(!a&&r.ErrorUtils){var n;a=!0;try{n=h(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return a=!1,n}return h(e,t)}var c=16,f=65535;function p(r){return{segmentId:r>>>c,localId:r&f}}i.unpackModuleId=p,i.packModuleId=function(r){return(r.segmentId<0){var o,a=null!==(o=v.get(t))&&void 0!==o?o:0,d=s[a];null!=d&&(d(t),n=e[t],v.delete(t))}var c=r.nativeRequire;if(!n&&c){var f=p(t),h=f.segmentId;c(f.localId,h),n=e[t]}if(!n)throw Error('Requiring unknown module "'+t+'".');if(n.hasError)throw _(t,n.error);n.isInitialized=!0;var m=n,w=m.factory,M=m.dependencyMap;try{var g=n.publicModule;return g.id=t,w(r,i,l,u,g,g.exports,M),n.factory=void 0,n.dependencyMap=void 0,g.exports}catch(r){throw n.hasError=!0,n.error=r,n.isInitialized=!1,n.publicModule.exports=void 0,r}}function _(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+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 f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.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,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.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),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+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 c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(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').substr(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.substr(1,a.length-2),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 0,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 f(n){return null===n}function c(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 b(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={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t';return function(){for(var r=arguments.length,u=new Array(r),e=0;e1?l-1:0),o=1;on.length)&&(t=n.length);for(var l=0,o=new Array(t);lthis.eventPool.length&&this.eventPool.push(e)}function z(e){e.getPooled=R,e.eventPool=[],e.release=C}x(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},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}}),P.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},P.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return x(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=x({},r.Interface,e),t.extend=r.extend,z(t),t},z(P);var N=P.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function Q(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function B(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=Q(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=Q(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=Q(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Q(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Q(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Q(e)},D[n]=t),A.mostRecentTimeStamp=Q(e)}function H(e){var n=D[j(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=Q(e),A.mostRecentTimeStamp=Q(e))}function O(e){var n=D[j(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=Q(e),A.mostRecentTimeStamp=Q(e))}var W,V={instrument:function(e){W=e},recordTouchTrack:function(e,n){if(null!=W&&W(e,n),L(e))n.changedTouches.forEach(H);else if(I(e))n.changedTouches.forEach(B),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(O),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))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.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0i||(a=i),Me(a,e,l)}}}),y=function(e){return Pe.get(e._nativeTag)||null},S=Re,k=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},ie.injection.injectGlobalResponderHandler({onChange:function(e,n,t){null!==n?u.UIManager.setJSResponder(n.stateNode._nativeTag,t):u.UIManager.clearJSResponder()}});var Fe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,De=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),He=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),qe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Xe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ge=Symbol.iterator;function Ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ge&&e[Ge]||e["@@iterator"])?e:null}function Je(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Qe:return"Fragment";case Ae:return"Portal";case Be:return"Profiler";case je:return"StrictMode";case Ve:return"Suspense";case Ye:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Oe:return(e.displayName||"Context")+".Consumer";case He:return(e._context.displayName||"Context")+".Provider";case We:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case qe:return null!==(n=e.displayName||null)?n:Je(e.type)||"Memo";case $e:n=e._payload,e=e._init;try{return Je(e(n))}catch(e){}}return null}function Ze(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Je(n);case 8:return n===je?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function en(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function nn(e){if(en(e)!==e)throw Error("Unable to find node on an unmounted component.")}function tn(e){var n=e.alternate;if(!n){if(null===(n=en(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return nn(l),e;if(a===r)return nn(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function rn(e){return null!==(e=tn(e))?ln(e):null}function ln(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=ln(e);if(null!==n)return n;e=e.sibling}return null}var an={},un=null,on=0,sn={unsafelyIgnoreFunctions:!0};function cn(e,n){return"object"!=typeof n||null===n||u.deepDiffer(e,n,sn)}function dn(e,n,t){if(b(n))for(var r=n.length;r--&&0>>=0)?32:31-(Nn(e)/In|0)|0},Nn=Math.log,In=Math.LN2;var Ln=64,Un=4194304;function Mn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Mn(u):0!==(a&=i)&&(r=Mn(a))}else 0!==(i=t&~l)?r=Mn(i):0!==a&&(r=Mn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Bn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-zn(n)]=t}function Hn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){lt[++at]=e.current,e.current=n}var st={},ct=it(st),dt=it(!1),ft=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(){ut(dt),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(dt,t)}function vt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Ze(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return x({},t,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,ft=ct.current,ot(ct,e),ot(dt,dt.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,ft),r.__reactInternalMemoizedMergedChildContext=e,ut(dt),ut(ct),ot(ct,e)):ut(dt),ot(dt,t)}var St="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},kt=null,wt=!1,Tt=!1;function xt(){if(!Tt&&null!==kt){Tt=!0;var e=0,n=Wn;try{var t=kt;for(Wn=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Qe&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case De:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Qe){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===$e&&fr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=cr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Qe?((a=Yi(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Vi(u.type,u.key,u.props,null,r.mode,o)).ref=cr(r,a,u),o.return=r,r=o)}return i(r);case Ae:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Xi(u,r.mode,o)).return=r,r=a}return i(r);case $e:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Ke(u))return g(r,a,u,o);dr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=$i(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var hr=pr(!0),gr=pr(!1),mr={},vr=it(mr),br=it(mr),yr=it(mr);function Sr(e){if(e===mr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function kr(e,n){ot(yr,n),ot(br,e),ot(vr,mr),ut(vr),ot(vr,{isInAParentText:!1})}function wr(){ut(vr),ut(br),ut(yr)}function Tr(e){Sr(yr.current);var n=Sr(vr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(br,e),ot(vr,t))}function xr(e){br.current===e&&(ut(vr),ut(br))}var Er=it(0);function _r(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Yn()||Yn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(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 Pr=[];function Rr(){for(var e=0;et?t:4,e(!0);var r=zr.transition;zr.transition={};try{e(!1),n()}finally{Wn=t,zr.transition=r}}function hl(){return Hr().memoizedState}function gl(e,n,t){var r=si(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},vl(e)?bl(n,t):(yl(e,n,t),null!==(e=ci(e,r,t=oi()))&&Sl(e,n,r))}function ml(e,n,t){var r=si(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(vl(e))bl(n,l);else{yl(e,n,l);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,St(u,i))return}catch(e){}null!==(e=ci(e,r,t=oi()))&&Sl(e,n,r)}}function vl(e){var n=e.alternate;return e===Ir||null!==n&&n===Ir}function bl(e,n){Fr=Mr=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function yl(e,n,t){fi(e)?(null===(e=n.interleaved)?(t.next=t,null===qt?qt=[n]:qt.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t)}function Sl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,On(e,t)}}var kl={readContext:Yt,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useInsertionEffect:Ar,useLayoutEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useMutableSource:Ar,useSyncExternalStore:Ar,useId:Ar,unstable_isNewReconciler:!1},wl={readContext:Yt,useCallback:function(e,n){return Br().memoizedState=[e,void 0===n?null:n],e},useContext:Yt,useEffect:rl,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,nl(4,4,ul.bind(null,n,e),t)},useLayoutEffect:function(e,n){return nl(4,4,e,n)},useInsertionEffect:function(e,n){return nl(4,2,e,n)},useMemo:function(e,n){var t=Br();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Br();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=gl.bind(null,Ir,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Br().memoizedState=e},useState:Jr,useDebugValue:sl,useDeferredValue:function(e){return Br().memoizedState=e},useTransition:function(){var e=Jr(!1),n=e[0];return e=pl.bind(null,e[1]),Br().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Ir,r=Br(),l=n();if(null===Da)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Nr)||$r(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,rl(Gr.bind(null,t,a,e),[e]),t.flags|=2048,Zr(9,Xr.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Br(),n=Da.identifierPrefix;return n=":"+n+"r"+(Dr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Tl={readContext:Yt,useCallback:cl,useContext:Yt,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:dl,useReducer:Wr,useRef:el,useState:function(){return Wr(Or)},useDebugValue:sl,useDeferredValue:function(e){return fl(Hr(),Lr.memoizedState,e)},useTransition:function(){return[Wr(Or)[0],Hr().memoizedState]},useMutableSource:Yr,useSyncExternalStore:qr,useId:hl,unstable_isNewReconciler:!1},xl={readContext:Yt,useCallback:cl,useContext:Yt,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:dl,useReducer:Vr,useRef:el,useState:function(){return Vr(Or)},useDebugValue:sl,useDeferredValue:function(e){var n=Hr();return null===Lr?n.memoizedState=e:fl(n,Lr.memoizedState,e)},useTransition:function(){return[Vr(Or)[0],Hr().memoizedState]},useMutableSource:Yr,useSyncExternalStore:qr,useId:hl,unstable_isNewReconciler:!1};function El(e,n){return{value:e,source:n,stack:Ft(n)}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function _l(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var Pl="function"==typeof WeakMap?WeakMap:Map;function Rl(e,n,t){(t=Kt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Ja||(Ja=!0,Za=r),_l(e,n)},t}function Cl(e,n,t){(t=Kt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){_l(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){_l(e,n),"function"!=typeof r&&(null===ei?ei=new Set([this]):ei.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function zl(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Pl;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)||(l.add(t),e=Mi.bind(null,e,n,t),n.then(e,e))}var Nl=Fe.ReactCurrentOwner,Il=!1;function Ll(e,n,t,r){n.child=null===e?gr(n,null,t,r):hr(n,e.child,t,r)}function Ul(e,n,t,r,l){t=t.render;var a=n.ref;return Vt(n,l),r=jr(e,n,t,r,a,l),null===e||Il?(n.flags|=1,Ll(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ra(e,n,l))}function Ml(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Hi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Vi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Fl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ut)(i,r)&&e.ref===n.ref)return ra(e,n,l)}return n.flags|=1,(e=Wi(a,r)).ref=n.ref,e.return=n,n.child=e}function Fl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ut(a,r)&&e.ref===n.ref){if(Il=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,ra(e,n,l);0!=(131072&e.flags)&&(Il=!0)}}return Ql(e,n,t,r,l)}function Dl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Ba,ja),ja|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ot(Ba,ja),ja|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,ot(Ba,ja),ja|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(Ba,ja),ja|=r;return Ll(e,n,l,t),n.child}function Al(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Ql(e,n,t,r,l){var a=ht(t)?ft:ct.current;return a=pt(n,a),Vt(n,l),t=jr(e,n,t,r,a,l),null===e||Il?(n.flags|=1,Ll(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ra(e,n,l))}function jl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Vt(n,l),null===n.stateNode)ta(e,n),ur(n,t,r),sr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Yt(s):s=pt(n,s=ht(t)?ft:ct.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&or(n,i,r,s),$t=!1;var f=n.memoizedState;i.state=f,nr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||dt.current||$t?("function"==typeof c&&(lr(n,t,c,r),o=n.memoizedState),(u=$t||ir(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,Gt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Dt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Yt(o):o=pt(n,o=ht(t)?ft:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&or(n,i,r,o),$t=!1,f=n.memoizedState,i.state=f,nr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||dt.current||$t?("function"==typeof p&&(lr(n,t,p,r),h=n.memoizedState),(s=$t||ir(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return Bl(e,n,t,r,a,l)}function Bl(e,n,t,r,l,a){Al(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),ra(e,n,a);r=n.stateNode,Nl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=hr(n,e.child,null,a),n.child=hr(n,null,u,a)):Ll(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function Hl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),kr(e,n.containerInfo)}var Ol,Wl,Vl,Yl,ql={dehydrated:null,treeContext:null,retryLane:0};function $l(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xl(e,n,t){var r,l=n.pendingProps,a=Er.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ot(Er,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Yn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=qi(u,l,0,null),e=Yi(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=$l(t),n.memoizedState=ql,e):Gl(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return Jl(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Wi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Wi(r,i):(i=Yi(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?$l(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ql,l}return e=(i=e.child).sibling,l=Wi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function Gl(e,n){return(n=qi({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Kl(e,n,t,r){return null!==r&&(null===It?It=[r]:It.push(r)),hr(n,e.child,null,t),(e=Gl(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Jl(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,Kl(e,n,i,Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=qi({mode:"visible",children:r.children},t,0,null),(a=Yi(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&hr(n,e.child,null,i),n.child.memoizedState=$l(i),n.memoizedState=ql,a);if(0==(1&n.mode))return Kl(e,n,i,null);if(Yn())return Kl(e,n,i,(a=Yn().errorMessage)?Error(a):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."));if(t=0!=(i&e.childLanes),Il||t){if(null!==(r=Da)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(r=0!=(t&(r.suspendedLanes|i))?0:t)&&r!==a.retryLane&&(a.retryLane=r,ci(e,r,-1))}return xi(),Kl(e,n,i,Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."))}return Yn()?(n.flags|=128,n.child=e.child,Di.bind(null,e),Yn(),null):((e=Gl(n,r.children)).flags|=4096,e)}function Zl(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Wt(e.return,n,t)}function ea(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function na(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Ll(e,n,r.children,t),0!=(2&(r=Er.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zl(e,t,n);else if(19===e.tag)Zl(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(Er,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===_r(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ea(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===_r(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ea(n,!0,t,null,a);break;case"together":ea(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ta(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ra(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Wa|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Wi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Wi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function la(e,n,t){switch(n.tag){case 3:Hl(n);break;case 5:Tr(n);break;case 1:ht(n.type)&&bt(n);break;case 4:kr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;ot(At,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(ot(Er,1&Er.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Xl(e,n,t):(ot(Er,1&Er.current),null!==(e=ra(e,n,t))?e.sibling:null);ot(Er,1&Er.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return na(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),ot(Er,Er.current),r)break;return null;case 22:case 23:return n.lanes=0,Dl(e,n,t)}return ra(e,n,t)}function aa(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ia(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ua(e,n,t){var r=n.pendingProps;switch(Nt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ia(n),null;case 1:return ht(n.type)&>(),ia(n),null;case 3:return t=n.stateNode,wr(),ut(dt),ut(ct),Rr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==It&&(mi(It),It=null)),Wl(e,n),ia(n),null;case 5:xr(n),t=Sr(yr.current);var l=n.type;if(null!==e&&null!=n.stateNode)Vl(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ia(n),null}Sr(vr.current),e=Gn(),l=qn(l);var a=gn(null,an,r,l.validAttributes);u.UIManager.createView(e,l.uiViewClassName,t,a),t=new vn(e,l,n),_e.set(e,n),Pe.set(e,r),Ol(t,n,!1,!1),n.stateNode=t,Jn(t)&&(n.flags|=4),null!==n.ref&&(n.flags|=512)}return ia(n),null;case 6:if(e&&null!=n.stateNode)Yl(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Sr(yr.current),!Sr(vr.current).isInAParentText)throw Error("Text strings must be rendered within a component.");t=Gn(),u.UIManager.createView(t,"RCTRawText",e,{text:r}),_e.set(t,n),n.stateNode=t}return ia(n),null;case 13:if(ut(Er),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,ia(n),l=!1}else null!==It&&(mi(It),It=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Er.current)?0===Ha&&(Ha=3):xi())),null!==n.updateQueue&&(n.flags|=4),ia(n),null);case 4:return wr(),Wl(e,n),ia(n),null;case 10:return Ot(n.type._context),ia(n),null;case 17:return ht(n.type)&>(),ia(n),null;case 19:if(ut(Er),null===(l=n.memoizedState))return ia(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)aa(l,!1);else{if(0!==Ha||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=_r(e))){for(n.flags|=128,aa(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return ot(Er,1&Er.current|2),n.child}e=e.sibling}null!==l.tail&&wn()>Ga&&(n.flags|=128,r=!0,aa(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=_r(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),aa(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return ia(n),null}else 2*wn()-l.renderingStartTime>Ga&&1073741824!==t&&(n.flags|=128,r=!0,aa(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wn(),n.sibling=null,e=Er.current,ot(Er,r?1&e|2:1&e),n):(ia(n),null);case 22:case 23:return Si(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&ja)&&(ia(n),6&n.subtreeFlags&&(n.flags|=8192)):ia(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function oa(e,n){switch(Nt(n),n.tag){case 1:return ht(n.type)&>(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return wr(),ut(dt),ut(ct),Rr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return xr(n),null;case 13:if(ut(Er),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 ut(Er),null;case 4:return wr(),null;case 10:return Ot(n.type._context),null;case 22:case 23:return Si(),null;case 24:default:return null}}Ol=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Wl=function(){},Vl=function(e,n,t,r){e.memoizedProps!==r&&(Sr(vr.current),n.updateQueue=$n)&&(n.flags|=4)},Yl=function(e,n,t,r){t!==r&&(n.flags|=4)};var sa="function"==typeof WeakSet?WeakSet:Set,ca=null;function da(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ui(e,n,t)}else t.current=null}function fa(e,n,t){try{t()}catch(t){Ui(e,n,t)}}var pa=!1;function ha(e,n){for(ca=n;null!==ca;)if(n=(e=ca).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ca=n;else for(;null!==ca;){e=ca;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Dt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default: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.")}}catch(n){Ui(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ca=n;break}ca=e.return}return t=pa,pa=!1,t}function ga(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&fa(n,t,a)}l=l.next}while(l!==r)}}function ma(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function va(e){var n=e.alternate;null!==n&&(e.alternate=null,va(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 ba(e){return 5===e.tag||3===e.tag||4===e.tag}function ya(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ba(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 Sa(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){if("number"==typeof t)throw Error("Container does not support insertBefore operation")}else u.UIManager.setChildren(t,["number"==typeof e?e:e._nativeTag]);else if(4!==r&&null!==(e=e.child))for(Sa(e,n,t),e=e.sibling;null!==e;)Sa(e,n,t),e=e.sibling}function ka(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){var l=(r=t._children).indexOf(e);0<=l?(r.splice(l,1),n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[l],[n],[],[],[])):(n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[n],[]))}else n="number"==typeof e?e:e._nativeTag,0<=(l=(r=t._children).indexOf(e))?(r.splice(l,1),r.push(e),u.UIManager.manageChildren(t._nativeTag,[l],[r.length-1],[],[],[])):(r.push(e),u.UIManager.manageChildren(t._nativeTag,[],[],[n],[r.length-1],[]));else if(4!==r&&null!==(e=e.child))for(ka(e,n,t),e=e.sibling;null!==e;)ka(e,n,t),e=e.sibling}var wa=null,Ta=!1;function xa(e,n,t){for(t=t.child;null!==t;)Ea(e,n,t),t=t.sibling}function Ea(e,n,t){if(Rn&&"function"==typeof Rn.onCommitFiberUnmount)try{Rn.onCommitFiberUnmount(Pn,t)}catch(e){}switch(t.tag){case 5:da(t,n);case 6:var r=wa,l=Ta;wa=null,xa(e,n,t),Ta=l,null!==(wa=r)&&(Ta?(e=wa,Kn(t.stateNode),u.UIManager.manageChildren(e,[],[],[],[],[0])):(e=wa,Kn(n=t.stateNode),n=(t=e._children).indexOf(n),t.splice(n,1),u.UIManager.manageChildren(e._nativeTag,[],[],[],[],[n])));break;case 18:null!==wa&&Yn(t.stateNode);break;case 4:r=wa,l=Ta,wa=t.stateNode.containerInfo,Ta=!0,xa(e,n,t),wa=r,Ta=l;break;case 0:case 11:case 14:case 15:if(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)?fa(t,n,i):0!=(4&a)&&fa(t,n,i)),l=l.next}while(l!==r)}xa(e,n,t);break;case 1:if(da(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Ui(t,n,e)}xa(e,n,t);break;case 21:case 22:xa(e,n,t);break;default:xa(e,n,t)}}function _a(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new sa),n.forEach(function(n){var r=Ai.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Pa(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=wn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ia(r/1960))-r)){e.timeoutHandle=Zn(zi.bind(null,e,$a,Ka),r);break}zi(e,$a,Ka);break;case 5:zi(e,$a,Ka);break;default:throw Error("Unknown root exit status.")}}}return pi(e,wn()),e.callbackNode===t?hi.bind(null,e):null}function gi(e,n){var t=qa;return e.current.memoizedState.isDehydrated&&(ki(e,n).flags|=256),2!==(e=Ei(e,n))&&(n=$a,$a=t,null!==n&&mi(n)),e}function mi(e){null===$a?$a=e:$a.push.apply($a,e)}function vi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ti)var r=!1;else{if(e=ti,ti=null,ri=0,0!=(6&Fa))throw Error("Cannot flush passive effects while already rendering.");var l=Fa;for(Fa|=4,ca=e.current;null!==ca;){var a=ca,i=a.child;if(0!=(16&ca.flags)){var u=a.deletions;if(null!==u){for(var o=0;own()-Xa?ki(e,0):Ya|=t),pi(e,n)}function Fi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Un,0==(130023424&(Un<<=1))&&(Un=4194304)));var t=oi();null!==(e=di(e,n))&&(Bn(e,n,t),pi(e,t))}function Di(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Fi(e,t)}function Ai(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;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Fi(e,t)}function Qi(e,n){return bn(e,n)}function ji(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.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 Bi(e,n,t,r){return new ji(e,n,t,r)}function Hi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oi(e){if("function"==typeof e)return Hi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===We)return 11;if(e===qe)return 14}return 2}function Wi(e,n){var t=e.alternate;return null===t?((t=Bi(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=14680064&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}function Vi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Hi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Qe:return Yi(t.children,l,a,n);case je:i=8,l|=8;break;case Be:return(e=Bi(12,t,n,2|l)).elementType=Be,e.lanes=a,e;case Ve:return(e=Bi(13,t,n,l)).elementType=Ve,e.lanes=a,e;case Ye:return(e=Bi(19,t,n,l)).elementType=Ye,e.lanes=a,e;case Xe:return qi(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case He:i=10;break e;case Oe:i=9;break e;case We:i=11;break e;case qe:i=14;break e;case $e:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Bi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Yi(e,n,t,r){return(e=Bi(7,e,r,n)).lanes=t,e}function qi(e,n,t,r){return(e=Bi(22,e,r,n)).elementType=Xe,e.lanes=t,e.stateNode={},e}function $i(e,n,t){return(e=Bi(6,e,null,n)).lanes=t,e}function Xi(e,n,t){return(n=Bi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Gi(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=l}function Ki(e,n,t){var r=3|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce(function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n},[])}},42,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var p=n(o);if(p&&p.has(t))return p.get(t);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var s=f?Object.getOwnPropertyDescriptor(t,u):null;s&&(s.get||s.set)?Object.defineProperty(c,u,s):c[u]=t[u]}c.default=t,p&&p.set(t,c);return c})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,p=new WeakMap;return(n=function(t){return t?p:o})(t)}r(d[1]);var o=t.getEnforcing('ExceptionsManager'),p={reportFatalException:function(t,n,p){o.reportFatalException(t,n,p)},reportSoftException:function(t,n,p){o.reportSoftException(t,n,p)},updateExceptionMessage:function(t,n,p){o.updateExceptionMessage(t,n,p)},dismissRedbox:function(){},reportException:function(t){o.reportException?o.reportException(t):t.isFatal?p.reportFatalException(t.message,t.stack,t.id):p.reportSoftException(t.message,t.stack,t.id)}},c=p;e.default=c},43,[44,56]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(n){return l(n)},e.getEnforcing=function(n){var u=l(n);return(0,t.default)(null!=u,"TurboModuleRegistry.getEnforcing(...): '"+n+"' could not be found. Verify that a module by this name is registered in the native binary."),u};var t=n(r(d[1])),u=r(d[2]),o=g.__turboModuleProxy;function l(n){if(!0!==g.RN$Bridgeless){var t=u[n];if(null!=t)return t}return null!=o?o(n):null}},44,[2,7,45]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]);function u(t,u){if(!t)return null;var l=n(t,5),c=l[0],v=l[1],h=l[2],y=l[3],C=l[4];if(o(!c.startsWith('RCT')&&!c.startsWith('RK'),"Module name prefixes should've been stripped by the native side but wasn't for "+c),!v&&!h)return{name:c};var b={};return h&&h.forEach(function(n,t){var l=y&&s(y,t)||!1,c=C&&s(C,t)||!1;o(!l||!c,'Cannot have a method that is both async and a sync hook');var v=l?'promise':c?'sync':'async';b[n]=f(u,t,v)}),Object.assign(b,v),null==b.getConstants?b.getConstants=function(){return v||Object.freeze({})}:console.warn("Unable to define method 'getConstants()' on NativeModule '"+c+"'. NativeModule '"+c+"' already has a constant or method called 'getConstants'. Please remove it."),{name:c,module:b}}function l(n,t){o(g.nativeRequireModuleConfig,"Can't lazily create module without nativeRequireModuleConfig");var l=u(g.nativeRequireModuleConfig(n),t);return l&&l.module}function f(n,u,l){var f=null;return(f='promise'===l?function(){for(var o=arguments.length,l=new Array(o),f=0;f0?s[s.length-1]:null,h=s.length>1?s[s.length-2]:null,y='function'==typeof v,C='function'==typeof h;C&&o(y,'Cannot have a non-function arg after a function arg.');var b=y?v:null,M=C?h:null,p=y+C,_=s.slice(0,s.length-p);if('sync'===l)return t.callNativeSyncHook(n,u,_,M,b);t.enqueueNativeCall(n,u,_,M,b)}).type=l,f}function s(n,t){return-1!==n.indexOf(t)}function c(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=u;var v={};if(g.nativeModuleProxy)v=g.nativeModuleProxy;else if(!g.nativeExtensions){var h=g.__fbBatchedBridgeConfig;o(h,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var y=r(d[3]);(h.remoteModuleConfig||[]).forEach(function(n,t){var o=u(n,t);o&&(o.module?v[o.name]=o.module:y(v,o.name,{get:function(){return l(o.name,t)}}))})}m.exports=v},45,[46,50,7,55]); -__d(function(g,r,_i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c,f){return n(c)||t(c,f)||o(c,f)||u()}},46,[47,48,16,49]); -__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(Array.isArray(n))return n}},47,[]); -__d(function(g,r,_i2,a,m,e,d){m.exports=function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],i=!0,l=!1,f=void 0;try{for(var u,y=t[Symbol.iterator]();!(i=(u=y.next()).done)&&(o.push(u.value),!n||o.length!==n);i=!0);}catch(t){l=!0,f=t}finally{try{i||null==y.return||y.return()}finally{if(l)throw f}}return o}}},48,[]); -__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},49,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports=t},50,[51]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),s=r(d[2]),u=r(d[3]),n=(r(d[4]),r(d[5]).default),o=(r(d[6]),r(d[7])),h=r(d[8]),c=(function(){function c(){l(this,c),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 s(c,[{key:"callFunctionReturnFlushedQueue",value:function(t,l,s){var u=this;return this.__guard(function(){u.__callFunction(t,l,s)}),this.flushedQueue()}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(t,l){var s=this;return this.__guard(function(){s.__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 s,u=l;this._lazyCallableModules[t]=function(){return u&&(s=u(),u=null),s}}},{key:"getCallableModule",value:function(t){var l=this._lazyCallableModules[t];return l?l():null}},{key:"callNativeSyncHook",value:function(t,l,s,u,n){return this.processCallbacks(t,l,s,u,n),g.nativeCallSyncHook(t,l,s)}},{key:"processCallbacks",value:function(t,l,s,u,n){(u||n)&&(u&&s.push(this._callID<<1),n&&s.push(this._callID<<1|1),this._successCallbacks.set(this._callID,n),this._failureCallbacks.set(this._callID,u)),this._callID++}},{key:"enqueueNativeCall",value:function(t,l,s,n,o){this.processCallbacks(t,l,s,n,o),this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(s);var h=Date.now();if(g.nativeFlushQueueImmediate&&h-this._lastFlush>=5){var c=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(c)}u.counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){o.reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){u.beginEvent('JSTimers.callReactNativeMicrotasks()'),null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback(),u.endEvent()}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?u.beginEvent(t+"."+l+"("+n(s)+")"):u.beginEvent(t+"."+l+"(...)"),this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var o=this.getCallableModule(t);if(!o){var c=Object.keys(this._lazyCallableModules),_=c.length,v=c.join(', ');h(!1,"Failed to call into JavaScript module method "+t+"."+l+"(). Module has not been registered as callable. Registered callable JavaScript modules (n = "+_+"): "+v+".\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.")}o[l]||h(!1,"Failed to call into JavaScript module method "+t+"."+l+"(). Module exists, but the method is undefined."),o[l].apply(o,s),u.endEvent()}},{key:"__invokeCallback",value:function(l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=l>>>1,n=1&l?this._successCallbacks.get(u):this._failureCallbacks.get(u);n&&(this._successCallbacks.delete(u),this._failureCallbacks.delete(u),n.apply(void 0,t(s)))}}],[{key:"spy",value:function(t){c.prototype.__spy=!0===t?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+(null!=t.module?t.module+'.':'')+t.method+"("+JSON.stringify(t.args)+")")}:!1===t?null:t}}]),c})();m.exports=c},51,[12,18,19,27,52,53,8,54,7]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t}},52,[]); -__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){return n.length>o+"...(truncated)...".length?n.substring(0,o)+"...(truncated)...":n}if('object'!=typeof n||null===n)return n;var u=n;if(Array.isArray(n))h.length>=f?u="[ ... array with "+n.length+" values ... ]":n.length>c&&(u=n.slice(0,c).concat(["... extra "+(n.length-c)+" values truncated ..."]));else{(0,e.default)('object'==typeof n,'This was already found earlier');var l=Object.keys(n);if(h.length>=f)u="{ ... object with "+l.length+" keys ... }";else if(l.length>y){for(var s of(u={},l.slice(0,y)))u[s]=n[s];u['...(truncated keys)...']=l.length-y}}return h.unshift(u),u}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},53,[2,7]); -__d(function(g,r,i,a,m,e,d){m.exports=g.ErrorUtils},54,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}},55,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n={__constants:null,OS:'ios',get Version(){return this.constants.osVersion},get constants(){return null==this.__constants&&(this.__constants=t.default.getConstants()),this.__constants},get isPad(){return'pad'===this.constants.interfaceIdiom},get isTV(){return'tv'===this.constants.interfaceIdiom},get isTesting(){return!1},select:function(t){return'ios'in t?t.ios:'native'in t?t.native:t.default}};m.exports=n},56,[2,57]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('PlatformConstants');e.default=n},57,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var l,n,s=r(d[0]).polyfillGlobal;if(null!=(l=g)&&null!=(n=l.HermesInternal)&&null!=n.hasPromise&&n.hasPromise())g.Promise;else s('Promise',function(){return r(d[1])})},58,[59,60]); -__d(function(g,r,i,a,m,e,d){'use strict';var l=r(d[0]);function o(o,t,n){var c=Object.getOwnPropertyDescriptor(o,t),b=c||{},f=b.enumerable,u=b.writable,p=b.configurable;!c||void 0!==p&&p?l(o,t,{get:n,enumerable:!1!==f,writable:!1!==u}):console.error('Failed to set polyfill. '+t+' is not configurable.')}m.exports={polyfillObjectProperty:o,polyfillGlobal:function(l,t){o(g,l,t)}}},59,[55]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);r(d[1]),m.exports=t},60,[61,63]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=l(!0),o=l(!1),f=l(null),i=l(void 0),u=l(0),c=l('');function l(t){var o=new n(n._0);return o._V=1,o._W=t,o}n.resolve=function(y){if(y instanceof n)return y;if(null===y)return f;if(void 0===y)return i;if(!0===y)return t;if(!1===y)return o;if(0===y)return u;if(''===y)return c;if('object'==typeof y||'function'==typeof y)try{var p=y.then;if('function'==typeof p)return new n(p.bind(y))}catch(t){return new n(function(n,o){o(t)})}return l(y)};var y=function(n){return'function'==typeof Array.from?(y=Array.from,Array.from(n)):(y=function(n){return Array.prototype.slice.call(n)},Array.prototype.slice.call(n))};n.all=function(t){var o=y(t);return new n(function(t,f){if(0===o.length)return t([]);var i=o.length;function u(c,l){if(l&&('object'==typeof l||'function'==typeof l)){if(l instanceof n&&l.then===n.prototype.then){for(;3===l._V;)l=l._W;return 1===l._V?u(c,l._W):(2===l._V&&f(l._W),void l.then(function(n){u(c,n)},f))}var y=l.then;if('function'==typeof y)return void new n(y.bind(l)).then(function(n){u(c,n)},f)}o[c]=l,0==--i&&t(o)}for(var c=0;c-1}m.exports={isNativeFunction:t,hasNativeConstructor:function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)}}},65,[]); -__d(function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function s(t,n,o,i){var c=n&&n.prototype instanceof b?n:b,u=Object.create(c.prototype),h=new A(i||[]);return u._invoke=P(t,o,h),u}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var y="suspendedStart",v="suspendedYield",w="executing",L="completed",x={};function b(){}function E(){}function _(){}var j={};j[u]=function(){return this};var O=Object.getPrototypeOf,k=O&&O(O(R([])));k&&k!==o&&i.call(k,u)&&(j=k);var G=_.prototype=b.prototype=Object.create(j);function N(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function F(t,n){function o(c,u,h,f){var l=p(t[c],t,u);if("throw"!==l.type){var s=l.arg,y=s.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then(function(t){o("next",t,h,f)},function(t){o("throw",t,h,f)}):n.resolve(y).then(function(t){s.value=t,h(s)},function(t){return o("throw",t,h,f)})}f(l.arg)}var c;this._invoke=function(t,i){function u(){return new n(function(n,c){o(t,i,n,c)})}return c=c?c.then(u,u):u()}}function P(t,n,o){var i=y;return function(c,u){if(i===w)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return Y()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=S(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===y)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=w;var l=p(t,n,o);if("normal"===l.type){if(i=o.done?L:v,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function S(t,o){var i=t.iterator[o.method];if(i===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,S(t,o),"throw"===o.method))return x;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var c=p(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,x;var u=c.arg;return u?u.done?(o[t.resultName]=u.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):u:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:R(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},66,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,t,u=r(d[0]).polyfillGlobal,l=r(d[1]).isNativeFunction,c=!0===(null==(n=g.HermesInternal)?void 0:null==n.hasPromise?void 0:n.hasPromise())&&!0===(null==(t=g.HermesInternal)?void 0:null==t.useEngineQueue?void 0:t.useEngineQueue()),o=l(Promise)||c;if(!0!==g.RN$Bridgeless){var s=function(n){u(n,function(){return r(d[2])[n]})};s('setTimeout'),s('clearTimeout'),s('setInterval'),s('clearInterval'),s('requestAnimationFrame'),s('cancelAnimationFrame'),s('requestIdleCallback'),s('cancelIdleCallback')}o?(u('setImmediate',function(){return r(d[3]).setImmediate}),u('clearImmediate',function(){return r(d[3]).clearImmediate})):!0!==g.RN$Bridgeless&&(u('setImmediate',function(){return r(d[2]).queueReactNativeMicrotask}),u('clearImmediate',function(){return r(d[2]).clearReactNativeMicrotask})),u('queueMicrotask',c?function(){var n;return null==(n=g.HermesInternal)?void 0:n.enqueueJob}:function(){return r(d[4]).default})},67,[59,65,68,70,71]); -__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[2]),n=(r(d[3]),r(d[4])),i=16.666666666666668,l=[],o=[],c=[],u=[],f=[],s={},v=1,h=[],T=!1;function k(){var e=c.indexOf(null);return-1===e&&(e=c.length),e}function w(e,t){var n=v++,i=k();return c[i]=n,l[i]=e,o[i]=t,n}function p(e,t,n){e>v&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=c.indexOf(e);if(-1!==u){var f=o[u],s=l[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,i-(g.performance.now()-t))},didTimeout:!!n}):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 N(){if(0===u.length)return!1;var e=u;u=[];for(var t=0;t0}function b(e){c[e]=null,l[e]=null,o[e]=null}function I(e){if(null!=e){var t=c.indexOf(e);if(-1!==t){var n=o[t];b(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&x(e)}}}var q,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){I(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){I(e)},clearInterval:function(e){I(e)},clearReactNativeMicrotask:function(e){I(e);var t=u.indexOf(e);-1!==t&&u.splice(t,1)},cancelAnimationFrame:function(e){I(e)},callTimers:function(e){n(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),h.length=0;for(var t=0;t0){if(i>1)for(var l=1;l0){var t=f;f=[];for(var n=0;n1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(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),t?c._interceptor&&c._interceptor.loadingFailed(e,t):c._interceptor&&c._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 n of Object.keys(e)){var a=e[n],o=n.toLowerCase(),h=s.get(o);h?(h.headerValue+=', '+a,s.set(o,h)):s.set(o,{lowerHeaderName:o,upperHeaderName:n.toUpperCase(),headerValue:a})}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 n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(f.addListener('didSendNetworkData',function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkResponse',function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkData',function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkIncrementalData',function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didReceiveNetworkDataProgress',function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(f.addListener('didCompleteNetworkResponse',function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))}));var a='text';'arraybuffer'===this._responseType&&(a='base64'),'blob'===this._responseType&&(a='blob');var o;o='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),R(s._method,'XMLHttpRequest method needs to be defined (%s).',o),R(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),f.sendRequest(s._method,s._trackingName,s._url,s._headers,e,a,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&f.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){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,s.default)((0,u.default)(c.prototype),"addEventListener",this).call(this,e,t)}}],[{key:"setInterceptor",value:function(e){c._interceptor=e}}]),c})(v.apply(void 0,(0,t.default)(T)));q.UNSENT=E,q.OPENED=b,q.HEADERS_RECEIVED=N,q.LOADING=k,q.DONE=w,q._interceptor=null,m.exports=q},73,[2,12,74,19,18,30,32,35,76,80,83,87,89,7]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);function n(c,f,o){return"undefined"!=typeof Reflect&&Reflect.get?m.exports=n=Reflect.get:m.exports=n=function(n,c,f){var o=t(n,c);if(o){var u=Object.getOwnPropertyDescriptor(o,c);return u.get?u.get.call(f):u.value}},n(c,f,o||c)}m.exports=n},74,[75]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){for(;!Object.prototype.hasOwnProperty.call(n,o)&&null!==(n=t(n)););return n}},75,[35]); -__d(function(g,_r,i,a,m,e,d){var t=_r(d[0]),l=t(_r(d[1])),r=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),u=_r(d[5]),f=_r(d[6]);var c=(function(){function t(){(0,l.default)(this,t)}return(0,r.default)(t,null,[{key:"createFromParts",value:function(l,r){(0,n.default)(o.default,'NativeBlobModule is available.');var f='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)}),c=l.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof u?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),s=c.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(c,f),t.createFromOptions({blobId:f,offset:0,size:s,type:r?r.type:'',lastModified:r?r.lastModified:Date.now()})}},{key:"createFromOptions",value:function(t){return f.register(t.blobId),Object.assign(Object.create(u.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,n.default)(o.default,'NativeBlobModule is available.'),f.unregister(t),f.has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),t})();c.isAvailable=!!o.default,m.exports=c},76,[2,18,19,77,7,78,79]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if("default"!==f&&Object.prototype.hasOwnProperty.call(n,f)){var s=c?Object.getOwnPropertyDescriptor(n,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=n[f]}l.default=n,u&&u.set(n,l);return l})(r(d[0])).get('BlobModule'),o=null,u=null;null!=n&&(u={getConstants:function(){return null==o&&(o=n.getConstants()),o},addNetworkingHandler:function(){n.addNetworkingHandler()},addWebSocketHandler:function(t){n.addWebSocketHandler(t)},removeWebSocketHandler:function(t){n.removeWebSocketHandler(t)},sendOverSocket:function(t,o){n.sendOverSocket(t,o)},createFromParts:function(t,o){n.createFromParts(t,o)},release:function(t){n.release(t)}});var l=u;e.default=l},77,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=(function(){function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;t(this,s);var u=r(d[2]);this.data=u.createFromParts(n,o).data}return n(s,[{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 s=r(d[2]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[2]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),s})();m.exports=s},78,[18,19,76]); -__d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},79,[]); -__d(function(g,r,i,a,m,e,d){var t=(0,r(d[0])(r(d[1])).default)();m.exports=t},80,[2,81]); -__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 _},e.getCurrentTimestamp=void 0;var s,n=t(r(d[1])),o=t(r(d[2])),u=r(d[3]),l=(r(d[4]),{}),h=null!=(s=g.nativeQPLTimestamp)?s:g.performance.now.bind(g.performance);e.getCurrentTimestamp=h;var _=(function(){function t(){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1}return(0,o.default)(t,[{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 h()}},{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]:h(),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]:h(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n},l[t]=u.beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),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),null!=l[t]&&(u.endAsyncEvent(t,l[t]),delete l[t]))}}}]),t})()},81,[2,18,19,27,82]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}},82,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),o={addListener:function(t,s,u){return n.default.addListener(t,s,u)},sendRequest:function(t,n,o,c,f,l,p,q,R,b){var h=(0,u.default)(f);s.default.sendRequest({method:t,url:o,data:Object.assign({},h,{trackingName:n}),headers:c,responseType:l,incrementalUpdates:p,timeout:q,withCredentials:b},R)},abortRequest:function(t){s.default.abortRequest(t)},clearCookies:function(t){s.default.clearCookies(t)}};m.exports=o},83,[2,10,84,85]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Networking');e.default=n},84,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),f=r(d[2]);m.exports=function(s){return'string'==typeof s?{string:s}:s instanceof n?{blob:s.data}:s instanceof f?{formData:s.getParts()}:s instanceof ArrayBuffer||ArrayBuffer.isView(s)?{base64:t(s)}:s}},85,[86,78,88]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),f instanceof Uint8Array)return t.fromByteArray(f);if(!ArrayBuffer.isView(f))throw new Error('data must be ArrayBuffer or typed array');var n=f,y=n.buffer,o=n.byteOffset,u=n.byteLength;return t.fromByteArray(new Uint8Array(y,o,u))}},86,[87]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=i(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,c=i(t),A=c[0],C=c[1],y=new o(f(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=0,f=h-u;if?f:i+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function f(t,n,o){return 3*(n+o)/4-o}function A(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},87,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=(function(){function o(){n(this,o),this._parts=[]}return s(o,[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getAll",value:function(n){return this._parts.filter(function(s){return t(s,1)[0]===n}).map(function(n){return t(n,2)[1]})}},{key:"getParts",value:function(){return this._parts.map(function(n){var s=t(n,2),o=s[0],u=s[1],p={'content-disposition':'form-data; name="'+o+'"'};return'object'==typeof u&&!Array.isArray(u)&&u?('string'==typeof u.name&&(p['content-disposition']+='; filename="'+u.name+'"'),'string'==typeof u.type&&(p['content-type']=u.type),Object.assign({},u,{headers:p,fieldName:o})):{string:String(u),headers:p,fieldName:o}})}}]),o})();m.exports=o},88,[46,18,19]); -__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n-1};function s(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function l(t){var e=new FileReader,o=y(e);return e.readAsArrayBuffer(t),o}function p(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:''});return t.type='error',t};var A=[301,302,303,307,308];T.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError('Invalid status code');return new T(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(n,i){return new Promise(function(s,f){var c=new _(n,i);if(c.signal&&c.signal.aborted)return f(new t.DOMException('Aborted','AbortError'));var y=new XMLHttpRequest;function l(){y.abort()}y.onload=function(){var t,e,o={status:y.status,statusText:y.statusText,headers:(t=y.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}}),e)};o.url='responseURL'in y?y.responseURL:o.headers.get('X-Request-URL');var n='response'in y?y.response:y.responseText;setTimeout(function(){s(new T(n,o))},0)},y.onerror=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.ontimeout=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.onabort=function(){setTimeout(function(){f(new t.DOMException('Aborted','AbortError'))},0)},y.open(c.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(c.url),!0),'include'===c.credentials?y.withCredentials=!0:'omit'===c.credentials&&(y.withCredentials=!1),'responseType'in y&&(o.blob?y.responseType='blob':o.arrayBuffer&&c.headers.get('Content-Type')&&-1!==c.headers.get('Content-Type').indexOf('application/octet-stream')&&(y.responseType='arraybuffer')),!i||'object'!=typeof i.headers||i.headers instanceof u?c.headers.forEach(function(t,e){y.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){y.setRequestHeader(t,h(i.headers[t]))}),c.signal&&(c.signal.addEventListener('abort',l),y.onreadystatechange=function(){4===y.readyState&&c.signal.removeEventListener('abort',l)}),y.send(void 0===c._bodyInit?null:c._bodyInit)})}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=u,e.Request=_,e.Response=T),t.Headers=u,t.Request=_,t.Response=T,t.fetch=B,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})},91,[]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),s=e(r(d[3])),o=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),l=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),y=e(r(d[10])),b=e(r(d[11])),p=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),E=e(r(d[15])),k=e(r(d[16])),S=["headers"];function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var N=0,O=1,w=2,C=3,L=0,T=(function(e){(0,o.default)(R,e);var E,T,A=(E=R,T=I(),function(){var e,t=(0,c.default)(E);if(T){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function R(e,s,o){var u;(0,n.default)(this,R),(u=A.call(this)).CONNECTING=N,u.OPEN=O,u.CLOSING=w,u.CLOSED=C,u.readyState=N,u.url=e,'string'==typeof s&&(s=[s]);var c=o||{},l=c.headers,f=void 0===l?{}:l,y=(0,t.default)(c,S);return y&&'string'==typeof y.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),f.origin=y.origin,delete y.origin),Object.keys(y).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(y).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(s)||(s=null),u._eventEmitter=new h.default('ios'!==b.default.OS?null:p.default),u._socketId=L++,u._registerEvents(),p.default.connect(e,s,{headers:f},u._socketId),u}return(0,s.default)(R,[{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 l.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,y.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 n='number'==typeof e?e:1e3,s='string'==typeof t?t:'';p.default.close(n,s,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 n=t.data;switch(t.type){case'binary':n=_.default.toByteArray(t.data).buffer;break;case'blob':n=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.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 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',{message:t.message})),e._unregisterEvents(),e.close())})]}}]),R})(E.default.apply(void 0,['close','error','message','open']));T.CONNECTING=N,T.OPEN=O,T.CLOSING=w,T.CLOSED=C,m.exports=T},92,[2,93,18,19,30,32,35,78,76,95,86,56,96,97,87,89,7]); -__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(null==n)return{};var l,p,b=t(n,o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(p=0;p=0||Object.prototype.propertyIsEnumerable.call(n,l)&&(b[l]=n[l])}return b}},93,[94]); -__d(function(g,r,_i,a,m,e,d){m.exports=function(n,t){if(null==n)return{};var f,u,i={},o=Object.keys(n);for(u=0;u=0||(i[f]=n[f]);return i}},94,[]); -__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])),v=(function(){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.'))}return(0,l.default)(t,[{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;u1&&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,n).then(function(t){e._aborted||(e._result=t,e._setReadyState(y))},function(t){e._aborted||(e._error=t,e._setReadyState(y))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==c&&this._readyState!==y&&(this._reset(),this._setReadyState(y)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),R})(r(d[8]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));_.EMPTY=c,_.LOADING=h,_.DONE=y,m.exports=_},99,[2,18,19,30,32,35,100,78,89]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('FileReaderModule');e.default=n},100,[44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var n,o=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),h=(r(d[4]),null);if(u.default&&'string'==typeof u.default.getConstants().BLOB_URI_SCHEME){var f=u.default.getConstants();h=f.BLOB_URI_SCHEME+':','string'==typeof f.BLOB_URI_HOST&&(h+="//"+f.BLOB_URI_HOST+"/")}n=Symbol.iterator;var c=(function(){function t(n){var s=this;(0,o.default)(this,t),this._searchParams=[],'object'==typeof n&&Object.keys(n).forEach(function(t){return s.append(t,n[t])})}return(0,s.default)(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:n,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?'':'&')},'')}}]),t})();function l(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.URLSearchParams=c;var p=(function(){function t(n,s){(0,o.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(n))this._url=n,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError("Invalid base URL: "+u)}else u=s.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),n.startsWith('/')||(n="/"+n),u.endsWith(n)&&(n=''),this._url=""+u+n}}return(0,s.default)(t,[{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 c),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===h)throw new Error('Cannot create URL for blob!');return""+h+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),t})();e.URL=p},101,[2,18,19,77,78]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}Object.defineProperty(_e,'__esModule',{value:!0});var c=r(d[5]),f=(function(c){o(y,c);var f,p,s=(f=y,p=u(),function(){var t,e=l(f);if(p){var o=l(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return n(this,t)});function y(){throw t(this,y),s.call(this),new TypeError("AbortSignal cannot be constructed directly")}return e(y,[{key:"aborted",get:function(){var t=b.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),y})(c.EventTarget);c.defineEventAttribute(f.prototype,"abort");var b=new WeakMap;Object.defineProperties(f.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(f.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var p=(function(){function o(){var e;t(this,o),s.set(this,(e=Object.create(f.prototype),c.EventTarget.call(e),b.set(e,!1),e))}return e(o,[{key:"signal",get:function(){return y(this)}},{key:"abort",value:function(){var t;t=y(this),!1===b.get(t)&&(b.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),o})(),s=new WeakMap;function y(t){var e=s.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(p.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(p.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=p,_e.AbortSignal=f,_e.default=p,m.exports=p,m.exports.AbortController=m.exports.default=p,m.exports.AbortSignal=f},102,[18,19,30,32,35,89]); -__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},103,[104]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),s=t(r(d[3])),l=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,l,u){if('ios'===s.default.OS)t.prompt(n,o,l,'default',void 0,void 0,u);else if('android'===s.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:n||'',message:o||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=l?l.slice(0,3):[{text:"OK"}],y=p.pop(),b=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),b&&(v.buttonNegative=b.text||''),y&&(v.buttonPositive=y.text||"OK");c.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?b.onPress&&b.onPress():n===f.buttonPositive&&y.onPress&&y.onPress():t===f.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',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,v=arguments.length>6?arguments[6]:void 0;if('ios'===s.default.OS){var p,y,b=[],h=[];'function'==typeof o?b=[o]:Array.isArray(o)&&o.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?p=String(n):'destructive'===t.style&&(y=String(n)),t.text||n<(o||[]).length-1){var s={};s[n]=t.text||'',h.push(s)}}),l.default.alertWithArgs({title:t||'',message:n||void 0,buttons:h,type:u||void 0,defaultValue:c,cancelButtonKey:p,destructiveButtonKey:y,keyboardType:f,userInterfaceStyle:(null==v?void 0:v.userInterfaceStyle)||void 0},function(t,n){var o=b[t];o&&o(n)})}}}]),t})();m.exports=u},104,[2,18,19,56,105,107]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports={alertWithArgs:function(l,n){null!=t.default&&t.default.alertWithArgs(l,n)}}},105,[2,106]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('AlertManager');e.default=n},106,[44]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DialogManagerAndroid');e.default=n},107,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).polyfillObjectProperty,o=g.navigator;void 0===o&&(g.navigator=o={}),t(o,'product',function(){return'ReactNative'})},108,[59]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;if(!0===g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),!0!==g.RN$Bridgeless&&n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6]).default}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},109,[50,27,68,110,112,114,10,115,80,116,118]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t},110,[2,111]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('JSCHeapCapture');e.default=n},111,[44]); -__d(function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o},112,[113]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=l?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=n[p]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).get('JSCSamplingProfiler');e.default=n},113,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0]),n={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},l=null,t={logIfNoNativeHook:function(o){for(var n=arguments.length,f=new Array(n>1?n-1:0),c=1;c1?c-1:0),s=1;s1?u-1:0),c=1;cthis.eventPool.length&&this.eventPool.push(e)}function C(e){e.getPooled=_,e.eventPool=[],e.release=N}E(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=P)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=P)},persist:function(){this.isPersistent=P},isPersistent:R,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=R,this._dispatchInstances=this._dispatchListeners=null}}),T.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},T.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return E(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=E({},r.Interface,e),t.extend=r.extend,C(t),t},C(T);var z=T.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function j(e){return e.timeStamp||e.timestamp}function H(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Q(e){var n=H(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=j(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=j(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=j(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:j(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:j(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:j(e)},D[n]=t),A.mostRecentTimeStamp=j(e)}function B(e){var n=D[H(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=j(e),A.mostRecentTimeStamp=j(e))}function W(e){var n=D[H(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=j(e),A.mostRecentTimeStamp=j(e))}var O,V={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(Q),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(W),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))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.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0>>=0)?32:31-(Rn(e)/Tn|0)|0},Rn=Math.log,Tn=Math.LN2;var _n=64,Nn=4194304;function Cn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Cn(u):0!==(a&=i)&&(r=Cn(a))}else 0!==(i=t&~l)?r=Cn(i):0!==a&&(r=Cn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Fn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Pn(n)]=t}function Dn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0gt||(e.current=ht[gt],ht[gt]=null,gt--)}function bt(e,n){ht[++gt]=e.current,e.current=n}var yt={},St=mt(yt),kt=mt(!1),wt=yt;function xt(e,n){var t=e.type.contextTypes;if(!t)return yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Et(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pt(){vt(kt),vt(St)}function Rt(e,n,t){if(St.current!==yt)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");bt(St,n),bt(kt,t)}function Tt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Oe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return E({},t,r)}function _t(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yt,wt=St.current,bt(St,e),bt(kt,kt.current),!0}function Nt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=Tt(e,n,wt),r.__reactInternalMemoizedMergedChildContext=e,vt(kt),vt(St),bt(St,e)):vt(kt),bt(kt,t)}var Ct="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},zt=null,It=!1,Lt=!1;function Ut(){if(!Lt&&null!==zt){Lt=!0;var e=0,n=jn;try{var t=zt;for(jn=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Ce&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case _e:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Ce){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===je&&kr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=yr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Ce?((a=Ji(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Gi(u.type,u.key,u.props,null,r.mode,o)).ref=yr(r,a,u),o.return=r,r=o)}return i(r);case Ne:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=eu(u,r.mode,o)).return=r,r=a}return i(r);case je:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Be(u))return g(r,a,u,o);Sr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Zi(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var xr=wr(!0),Er=wr(!1),Pr={},Rr=mt(Pr),Tr=mt(Pr),_r=mt(Pr);function Nr(e){if(e===Pr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Cr(e,n){bt(_r,n),bt(Tr,e),bt(Rr,Pr),vt(Rr),bt(Rr,{isInAParentText:!1})}function zr(){vt(Rr),vt(Tr),vt(_r)}function Ir(e){Nr(_r.current);var n=Nr(Rr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(bt(Tr,e),bt(Rr,t))}function Lr(e){Tr.current===e&&(vt(Rr),vt(Tr))}var Ur=mt(0);function Mr(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(0!=(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 Fr=[];function Dr(){for(var e=0;et?t:4,e(!0);var r=jr.transition;jr.transition={};try{e(!1),n()}finally{jn=t,jr.transition=r}}function xl(){return Jr().memoizedState}function El(e,n,t){var r=hi(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Rl(e)?Tl(n,t):(_l(e,n,t),null!==(e=gi(e,r,t=pi()))&&Nl(e,n,r))}function Pl(e,n,t){var r=hi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Rl(e))Tl(n,l);else{_l(e,n,l);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,Ct(u,i))return}catch(e){}null!==(e=gi(e,r,t=pi()))&&Nl(e,n,r)}}function Rl(e){var n=e.alternate;return e===Qr||null!==n&&n===Qr}function Tl(e,n){Vr=Or=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function _l(e,n,t){vi(e)?(null===(e=n.interleaved)?(t.next=t,null===tr?tr=[n]:tr.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t)}function Nl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,An(e,t)}}var Cl={readContext:nr,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},zl={readContext:nr,useCallback:function(e,n){return Gr().memoizedState=[e,void 0===n?null:n],e},useContext:nr,useEffect:fl,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,cl(4,4,ml.bind(null,n,e),t)},useLayoutEffect:function(e,n){return cl(4,4,e,n)},useInsertionEffect:function(e,n){return cl(4,2,e,n)},useMemo:function(e,n){var t=Gr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Gr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=El.bind(null,Qr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Gr().memoizedState=e},useState:ul,useDebugValue:bl,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=ul(!1),n=e[0];return e=wl.bind(null,e[1]),Gr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Qr,r=Gr(),l=n();if(null===Ba)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Hr)||rl(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,fl(al.bind(null,t,a,e),[e]),t.flags|=2048,ol(9,ll.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Gr(),n=Ba.identifierPrefix;return n=":"+n+"r"+(Yr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Il={readContext:nr,useCallback:yl,useContext:nr,useEffect:pl,useImperativeHandle:vl,useInsertionEffect:hl,useLayoutEffect:gl,useMemo:Sl,useReducer:Zr,useRef:sl,useState:function(){return Zr(Kr)},useDebugValue:bl,useDeferredValue:function(e){return kl(Jr(),Br.memoizedState,e)},useTransition:function(){return[Zr(Kr)[0],Jr().memoizedState]},useMutableSource:nl,useSyncExternalStore:tl,useId:xl,unstable_isNewReconciler:!1},Ll={readContext:nr,useCallback:yl,useContext:nr,useEffect:pl,useImperativeHandle:vl,useInsertionEffect:hl,useLayoutEffect:gl,useMemo:Sl,useReducer:el,useRef:sl,useState:function(){return el(Kr)},useDebugValue:bl,useDeferredValue:function(e){var n=Jr();return null===Br?n.memoizedState=e:kl(n,Br.memoizedState,e)},useTransition:function(){return[el(Kr)[0],Jr().memoizedState]},useMutableSource:nl,useSyncExternalStore:tl,useId:xl,unstable_isNewReconciler:!1};function Ul(e,n){try{var t="",r=n;do{t+=Vt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Ml(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var Fl="function"==typeof WeakMap?WeakMap:Map;function Dl(e,n,t){(t=ir(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ri||(ri=!0,li=r),Ml(e,n)},t}function Al(e,n,t){(t=ir(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Ml(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){Ml(e,n),"function"!=typeof r&&(null===ai?ai=new Set([this]):ai.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function jl(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Fl;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)||(l.add(t),e=Hi.bind(null,e,n,t),n.then(e,e))}var Hl=Te.ReactCurrentOwner,Ql=!1;function Bl(e,n,t,r){n.child=null===e?Er(n,null,t,r):xr(n,e.child,t,r)}function Wl(e,n,t,r,l){t=t.render;var a=n.ref;return er(n,l),r=Xr(e,n,t,r,a,l),null===e||Ql?(n.flags|=1,Bl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,fa(e,n,l))}function Ol(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||qi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Gi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Vl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ot)(i,r)&&e.ref===n.ref)return fa(e,n,l)}return n.flags|=1,(e=Xi(a,r)).ref=n.ref,e.return=n,n.child=e}function Vl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ot(a,r)&&e.ref===n.ref){if(Ql=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,fa(e,n,l);0!=(131072&e.flags)&&(Ql=!0)}}return $l(e,n,t,r,l)}function Yl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},bt(Ya,Va),Va|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,bt(Ya,Va),Va|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,bt(Ya,Va),Va|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,bt(Ya,Va),Va|=r;return Bl(e,n,l,t),n.child}function ql(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function $l(e,n,t,r,l){var a=Et(t)?wt:St.current;return a=xt(n,a),er(n,l),t=Xr(e,n,t,r,a,l),null===e||Ql?(n.flags|=1,Bl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,fa(e,n,l))}function Xl(e,n,t,r,l){if(Et(t)){var a=!0;_t(n)}else a=!1;if(er(n,l),null===n.stateNode)da(e,n),mr(n,t,r),br(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=nr(s):s=xt(n,s=Et(t)?wt:St.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&vr(n,i,r,s),rr=!1;var f=n.memoizedState;i.state=f,cr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||kt.current||rr?("function"==typeof c&&(pr(n,t,c,r),o=n.memoizedState),(u=rr||gr(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,ar(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Yt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=nr(o):o=xt(n,o=Et(t)?wt:St.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&vr(n,i,r,o),rr=!1,f=n.memoizedState,i.state=f,cr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||kt.current||rr?("function"==typeof p&&(pr(n,t,p,r),h=n.memoizedState),(s=rr||gr(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return Gl(e,n,t,r,a,l)}function Gl(e,n,t,r,l,a){ql(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&Nt(n,t,!1),fa(e,n,a);r=n.stateNode,Hl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=xr(n,e.child,null,a),n.child=xr(n,null,u,a)):Bl(e,n,u,a),n.memoizedState=r.state,l&&Nt(n,t,!0),n.child}function Jl(e){var n=e.stateNode;n.pendingContext?Rt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Rt(0,n.context,!1),Cr(e,n.containerInfo)}var Kl,Zl,ea,na,ta={dehydrated:null,treeContext:null,retryLane:0};function ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function la(e,n,t){var r,l=n.pendingProps,a=Ur.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),bt(Ur,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Qn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=Ki(u,l,0,null),e=Ji(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=ra(t),n.memoizedState=ta,e):aa(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return ua(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Xi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Xi(r,i):(i=Ji(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?ra(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ta,l}return e=(i=e.child).sibling,l=Xi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function aa(e,n){return(n=Ki({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function ia(e,n,t,r){return null!==r&&(null===Bt?Bt=[r]:Bt.push(r)),xr(n,e.child,null,t),(e=aa(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ua(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,ia(e,n,i,Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=Ki({mode:"visible",children:r.children},t,0,null),(a=Ji(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&xr(n,e.child,null,i),n.child.memoizedState=ra(i),n.memoizedState=ta,a);if(0==(1&n.mode))return ia(e,n,i,null);if(Qn())return ia(e,n,i,(a=Qn().errorMessage)?Error(a):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."));if(t=0!=(i&e.childLanes),Ql||t){if(null!==(r=Ba)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(r=0!=(t&(r.suspendedLanes|i))?0:t)&&r!==a.retryLane&&(a.retryLane=r,gi(e,r,-1))}return Ni(),ia(e,n,i,Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."))}return Qn()?(n.flags|=128,n.child=e.child,Bi.bind(null,e),Qn(),null):((e=aa(n,r.children)).flags|=4096,e)}function oa(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Zt(e.return,n,t)}function sa(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ca(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Bl(e,n,r.children,t),0!=(2&(r=Ur.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oa(e,t,n);else if(19===e.tag)oa(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bt(Ur,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Mr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),sa(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Mr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}sa(n,!0,t,null,a);break;case"together":sa(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function da(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function fa(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Xa|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Xi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Xi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function pa(e,n,t){switch(n.tag){case 3:Jl(n);break;case 5:Ir(n);break;case 1:Et(n.type)&&_t(n);break;case 4:Cr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;bt(qt,r._currentValue2),r._currentValue2=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(bt(Ur,1&Ur.current),n.flags|=128,null):0!=(t&n.child.childLanes)?la(e,n,t):(bt(Ur,1&Ur.current),null!==(e=fa(e,n,t))?e.sibling:null);bt(Ur,1&Ur.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return ca(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),bt(Ur,Ur.current),r)break;return null;case 22:case 23:return n.lanes=0,Yl(e,n,t)}return fa(e,n,t)}function ha(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}function ga(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=ct(a)),Gn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Gn(e,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),ga(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function ma(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function va(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ba(e,n,t){var r=n.pendingProps;switch(Qt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return va(n),null;case 1:return Et(n.type)&&Pt(),va(n),null;case 3:return t=n.stateNode,zr(),vt(kt),vt(St),Dr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==Bt&&(ki(Bt),Bt=null)),Zl(e,n),va(n),null;case 5:Lr(n),t=Nr(_r.current);var l=n.type;if(null!==e&&null!=n.stateNode)ea(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return va(n),null}Nr(Rr.current),e=at,at+=2,l=lt(l);var a=un(null,Je,r,l.validAttributes);t=Wn(e,l.uiViewClassName,t,a,n),e=new it(e,l,r,n),Kl(e={node:t,canonical:e},n,!1,!1),n.stateNode=e,null!==n.ref&&(n.flags|=512)}return va(n),null;case 6:if(e&&null!=n.stateNode)na(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=Nr(_r.current),t=Nr(Rr.current),n.stateNode=ut(r,e,t,n)}return va(n),null;case 13:if(vt(Ur),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,va(n),l=!1}else null!==Bt&&(ki(Bt),Bt=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Ur.current)?0===qa&&(qa=3):Ni())),null!==n.updateQueue&&(n.flags|=4),va(n),null);case 4:return zr(),Zl(e,n),va(n),null;case 10:return Kt(n.type._context),va(n),null;case 17:return Et(n.type)&&Pt(),va(n),null;case 19:if(vt(Ur),null===(l=n.memoizedState))return va(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)ma(l,!1);else{if(0!==qa||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Mr(e))){for(n.flags|=128,ma(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return bt(Ur,1&Ur.current|2),n.child}e=e.sibling}null!==l.tail&&vn()>ni&&(n.flags|=128,r=!0,ma(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Mr(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),ma(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return va(n),null}else 2*vn()-l.renderingStartTime>ni&&1073741824!==t&&(n.flags|=128,r=!0,ma(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=vn(),n.sibling=null,e=Ur.current,bt(Ur,r?1&e|2:1&e),n):(va(n),null);case 22:case 23:return Pi(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Va)&&va(n):va(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ya(e,n){switch(Qt(n),n.tag){case 1:return Et(n.type)&&Pt(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return zr(),vt(kt),vt(St),Dr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Lr(n),null;case 13:if(vt(Ur),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 vt(Ur),null;case 4:return zr(),null;case 10:return Kt(n.type._context),null;case 22:case 23:return Pi(),null;case 24:default:return null}}Kl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=ct(a)),Xn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Xn(e.node,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Kl(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Zl=function(e,n){var t=n.stateNode;if(!ha(e,n)){e=t.containerInfo;var r=$n(e);ga(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,Jn(e,r)}},ea=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=ha(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;Nr(Rr.current);var i=null;l!==r&&(l=un(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?qn(l,r):On(l):null!==r?Yn(l,r):Vn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:Kl(t,n,!1,!1))}},na=function(e,n,t,r){t!==r?(e=Nr(_r.current),t=Nr(Rr.current),n.stateNode=ut(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Sa="function"==typeof WeakSet?WeakSet:Set,ka=null;function wa(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ji(e,n,t)}else t.current=null}function xa(e,n,t){try{t()}catch(t){ji(e,n,t)}}var Ea=!1;function Pa(e,n){for(ka=n;null!==ka;)if(n=(e=ka).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ka=n;else for(;null!==ka;){e=ka;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Yt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default: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.")}}catch(n){ji(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ka=n;break}ka=e.return}return t=Ea,Ea=!1,t}function Ra(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&xa(n,t,a)}l=l.next}while(l!==r)}}function Ta(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function _a(e){var n=e.alternate;null!==n&&(e.alternate=null,_a(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 Na(e,n,t){for(t=t.child;null!==t;)Ca(e,n,t),t=t.sibling}function Ca(e,n,t){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,t)}catch(e){}switch(t.tag){case 5:wa(t,n);case 6:Na(e,n,t);break;case 18:break;case 4:$n(t.stateNode.containerInfo),Na(e,n,t);break;case 0:case 11:case 14:case 15:var r=t.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)?xa(t,n,i):0!=(4&a)&&xa(t,n,i)),l=l.next}while(l!==r)}Na(e,n,t);break;case 1:if(wa(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){ji(t,n,e)}Na(e,n,t);break;case 21:case 22:Na(e,n,t);break;default:Na(e,n,t)}}function za(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Sa),n.forEach(function(n){var r=Wi.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Ia(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Da(r/1960))-r)){e.timeoutHandle=ot(Mi.bind(null,e,Za,ti),r);break}Mi(e,Za,ti);break;case 5:Mi(e,Za,ti);break;default:throw Error("Unknown root exit status.")}}}return bi(e,vn()),e.callbackNode===t?yi.bind(null,e):null}function Si(e,n){var t=Ka;return e.current.memoizedState.isDehydrated&&(Ri(e,n).flags|=256),2!==(e=Ci(e,n))&&(n=Za,Za=t,null!==n&&ki(n)),e}function ki(e){null===Za?Za=e:Za.push.apply(Za,e)}function wi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ui)var r=!1;else{if(e=ui,ui=null,oi=0,0!=(6&Qa))throw Error("Cannot flush passive effects while already rendering.");var l=Qa;for(Qa|=4,ka=e.current;null!==ka;){var a=ka,i=a.child;if(0!=(16&ka.flags)){var u=a.deletions;if(null!==u){for(var o=0;ovn()-ei?Ri(e,0):Ja|=t),bi(e,n)}function Qi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Nn,0==(130023424&(Nn<<=1))&&(Nn=4194304)));var t=pi();null!==(e=mi(e,n))&&(Fn(e,n,t),bi(e,t))}function Bi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Qi(e,t)}function Wi(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;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Qi(e,t)}function Oi(e,n){return pn(e,n)}function Vi(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.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 Yi(e,n,t,r){return new Vi(e,n,t,r)}function qi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $i(e){if("function"==typeof e)return qi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Me)return 11;if(e===Ae)return 14}return 2}function Xi(e,n){var t=e.alternate;return null===t?((t=Yi(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=14680064&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}function Gi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)qi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ce:return Ji(t.children,l,a,n);case ze:i=8,l|=8;break;case Ie:return(e=Yi(12,t,n,2|l)).elementType=Ie,e.lanes=a,e;case Fe:return(e=Yi(13,t,n,l)).elementType=Fe,e.lanes=a,e;case De:return(e=Yi(19,t,n,l)).elementType=De,e.lanes=a,e;case He:return Ki(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Ue:i=9;break e;case Me:i=11;break e;case Ae:i=14;break e;case je:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Yi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ji(e,n,t,r){return(e=Yi(7,e,r,n)).lanes=t,e}function Ki(e,n,t,r){return(e=Yi(22,e,r,n)).elementType=He,e.lanes=t,e.stateNode={},e}function Zi(e,n,t){return(e=Yi(6,e,null,n)).lanes=t,e}function eu(e,n,t){return(n=Yi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function nu(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mn(0),this.expirationTimes=Mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.identifierPrefix=r,this.onRecoverableError=l}function tu(e,n,t){var r=3>>1,l=n[r];if(!(0>>1;ra(s,t))ca(f,s)?(n[r]=f,n[c]=t,r=c):(n[r]=s,n[o]=t,r=o);else{if(!(ca(f,t)))break n;n[r]=f,n[c]=t,r=c}}}return e}function a(n,e){var t=n.sortIndex-e.sortIndex;return 0!==t?t:n.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;_e.unstable_now=function(){return r.now()}}else{var l=Date,u=l.now();_e.unstable_now=function(){return l.now()-u}}var o=[],s=[],c=1,f=null,b=3,d=!1,v=!1,p=!1,y="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function g(a){for(var r=e(s);null!==r;){if(null===r.callback)t(s);else{if(!(r.startTime<=a))break;t(s),r.sortIndex=r.expirationTime,n(o,r)}r=e(s)}}function h(n){if(p=!1,g(n),!v)if(null!==e(o))v=!0,E(k);else{var t=e(s);null!==t&&N(h,t.startTime-n)}}function k(n,a){v=!1,p&&(p=!1,m(T),T=-1),d=!0;var r=b;try{for(g(a),f=e(o);null!==f&&(!(f.expirationTime>a)||n&&!L());){var l=f.callback;if("function"==typeof l){f.callback=null,b=f.priorityLevel;var u=l(f.expirationTime<=a);a=_e.unstable_now(),"function"==typeof u?f.callback=u:f===e(o)&&t(o),g(a)}else t(o);f=e(o)}if(null!==f)var c=!0;else{var y=e(s);null!==y&&N(h,y.startTime-a),c=!1}return c}finally{f=null,b=r,d=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,x=!1,I=null,T=-1,P=5,C=-1;function L(){return!(_e.unstable_now()-Cn||125l?(t.sortIndex=r,n(s,t),null===e(o)&&t===e(s)&&(p?(m(T),T=-1):p=!0,N(h,r-l))):(t.sortIndex=u,n(o,t),v||d||(v=!0,E(k))),t},_e.unstable_shouldYield=L,_e.unstable_wrapCallback=function(n){var e=b;return function(){var t=b;b=e;try{return n.apply(this,arguments)}finally{b=t}}}},132,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.get=b,e.getWithFallback_DEPRECATED=function(t,u){if(null==n){if(w(t))return b(t,u)}else if(null!=n(t))return b(t,u);var l=function(t){return null};return l.displayName="Fallback("+t+")",l},e.setRuntimeConfigProvider=function(t){(0,s.default)(null==n,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),n=t},e.unstable_hasStaticViewConfig=function(t){var u;return!(null!=(u=null==n?void 0:n(t))?u:{native:!0}).native};var n,u=y(r(d[1])),l=r(d[2]),o=t(r(d[3])),f=t(r(d[4])),c=t(r(d[5])),v=t(r(d[6])),s=t(r(d[7]));y(r(d[8]));function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(p=function(t){return t?u:n})(t)}function y(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=p(n);if(u&&u.has(t))return u.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=o?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}return l.default=t,u&&u.set(t,l),l}function b(t,o){return f.default.register(t,function(){var f,s=null!=(f=null==n?void 0:n(t))?f:{native:!0,strict:!1,verify:!1},p=s.native,y=s.strict,b=s.verify,w=p?(0,c.default)(t):(0,l.createViewConfig)(o());if(b){var O=p?w:(0,c.default)(t),P=p?(0,l.createViewConfig)(o()):w;if(y){var C=u.validate(t,O,P);'invalid'===C.type&&console.error(u.stringifyValidationResult(t,C))}else(0,v.default)(O,P)}return w}),t}function w(t){return(0,s.default)(null==n,'Unexpected invocation!'),null!=o.default.getViewManagerConfig(t)}},133,[2,134,136,149,123,155,167,7,129]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyValidationResult=function(t,u){var s=u.differences;return["StaticViewConfigValidator: Invalid static view config for '"+t+"'.",''].concat((0,n.default)(s.map(function(t){var n=t.type,u=t.path;switch(n){case'missing':return"- '"+u.join('.')+"' is missing.";case'unequal':return"- '"+u.join('.')+"' is the wrong value.";case'unexpected':return"- '"+u.join('.')+"' is present but not expected to be."}})),['']).join('\n')},e.validate=function(t,n,u){var l=[];if(s(l,[],{bubblingEventTypes:n.bubblingEventTypes,directEventTypes:n.directEventTypes,uiViewClassName:n.uiViewClassName,validAttributes:n.validAttributes},{bubblingEventTypes:u.bubblingEventTypes,directEventTypes:u.directEventTypes,uiViewClassName:u.uiViewClassName,validAttributes:u.validAttributes}),0===l.length)return{type:'valid'};return{type:'invalid',differences:l}};var n=t(r(d[1])),u=r(d[2]);function s(t,c,o,p){for(var v in o){var f=o[v];if(p.hasOwnProperty(v)){var y=p[v],b=l(f);if(null!=b){var h=l(y);if(null!=h){c.push(v),s(t,c,b,h),c.pop();continue}}f!==y&&t.push({path:[].concat((0,n.default)(c),[v]),type:'unequal',nativeValue:f,staticValue:y})}else t.push({path:[].concat((0,n.default)(c),[v]),type:'missing',nativeValue:f})}for(var V in p)o.hasOwnProperty(V)||(0,u.isIgnored)(p[V])||t.push({path:[].concat((0,n.default)(c),[V]),type:'unexpected',staticValue:p[V]})}function l(t){return'object'!=typeof t||Array.isArray(t)?null:t}},134,[2,12,135]); -__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&&!0!==g.RN$ViewConfigEventValidAttributesDisabled)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},135,[2,56]); -__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)}},136,[2,137]); -__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},137,[2,138]); -__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=r(d[1]),n=t(r(d[2])),s={topAccessibilityAction:{registrationName:'onAccessibilityAction'},topAccessibilityTap:{registrationName:'onAccessibilityTap'},topMagicTap:{registrationName:'onMagicTap'},topAccessibilityEscape:{registrationName:'onAccessibilityEscape'},topLayout:{registrationName:'onLayout'},onGestureHandlerEvent:(0,o.DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerEvent'}),onGestureHandlerStateChange:(0,o.DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerStateChange'})},p={accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityHint:!0,accessibilityLanguage:!0,accessibilityValue:!0,accessibilityViewIsModal:!0,accessibilityElementsHidden:!0,accessibilityIgnoresInvertColors:!0,testID:!0,backgroundColor:{process:r(d[3])},backfaceVisibility:!0,opacity:!0,shadowColor:{process:r(d[3])},shadowOffset:{diff:r(d[4])},shadowOpacity:!0,shadowRadius:!0,needsOffscreenAlphaCompositing:!0,overflow:!0,shouldRasterizeIOS:!0,transform:{diff:r(d[5])},accessibilityRole:!0,accessibilityState:!0,nativeID:!0,pointerEvents:!0,removeClippedSubviews:!0,borderRadius:!0,borderColor:{process:r(d[3])},borderWidth:!0,borderStyle:!0,hitSlop:{diff:r(d[6])},collapsable:!0,borderTopWidth:!0,borderTopColor:{process:r(d[3])},borderRightWidth:!0,borderRightColor:{process:r(d[3])},borderBottomWidth:!0,borderBottomColor:{process:r(d[3])},borderLeftWidth:!0,borderLeftColor:{process:r(d[3])},borderStartWidth:!0,borderStartColor:{process:r(d[3])},borderEndWidth:!0,borderEndColor:{process:r(d[3])},borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,borderTopEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderBottomEndRadius:!0,display:!0,zIndex:!0,top:!0,right:!0,start:!0,end:!0,bottom:!0,left:!0,width:!0,height:!0,minWidth:!0,maxWidth:!0,minHeight:!0,maxHeight:!0,marginTop:!0,marginRight:!0,marginBottom:!0,marginLeft:!0,marginStart:!0,marginEnd:!0,marginVertical:!0,marginHorizontal:!0,margin:!0,paddingTop:!0,paddingRight:!0,paddingBottom:!0,paddingLeft:!0,paddingStart:!0,paddingEnd:!0,paddingVertical:!0,paddingHorizontal:!0,padding:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,alignItems:!0,alignSelf:!0,alignContent:!0,position:!0,aspectRatio:!0,direction:!0,style:n.default},u=(0,o.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,onPointerUp:!0,onPointerDown:!0,onPointerCancel:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOver:!0,onPointerOut:!0}),c={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'}},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'}}},directEventTypes:s,validAttributes:Object.assign({},p,u)};e.default=c},138,[2,135,139,140,146,147,148]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),f={process:o.default},s={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:!0,borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:f,shadowOffset:{diff:l.default},shadowOpacity:!0,shadowRadius:!0,transform:{process:n.default},backfaceVisibility:!0,backgroundColor:f,borderBottomColor:f,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:f,borderEndColor:f,borderLeftColor:f,borderRadius:!0,borderRightColor:f,borderStartColor:f,borderStyle:!0,borderTopColor:f,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,color:f,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:f,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:f,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,writingDirection:!0,overlayColor:f,resizeMode:!0,tintColor:f};m.exports=s},139,[2,140,144,146]); -__d(function(g,r,i,a,m,e,d){'use strict';r(d[0]);var n=r(d[1]);m.exports=function(t){if(void 0===t||null===t)return t;var o=n(t);if(null!==o&&void 0!==o){if('object'==typeof o){var u=(0,r(d[2]).processColorObject)(o);if(null!=u)return u}return'number'!=typeof o?null:o=(o<<24|o>>>8)>>>0}}},140,[56,141,143]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n){var o=(0,r(d[2]).normalizeColorObject)(n);if(null!=o)return o}if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}},141,[2,142,143]); -__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}var t,u='[-+]?\\d*\\.?\\d+',s="[-+]?\\d*\\.?\\d+%";function c(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function o(r){return(parseFloat(r)%360+360)%360/360}function g(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function h(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function b(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':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'cyan':return 16777215;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':return 2846468607;case'darkgreen':return 6553855;case'darkgrey':return 2846468607;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':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'grey':return 2155905279;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':return 3553874943;case'lightgreen':return 2431553791;case'lightgrey':return 3553874943;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'magenta':return 4278255615;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 p,f=(void 0===t&&(t={rgb:new RegExp('rgb'+c(u,u,u)),rgba:new RegExp('rgba'+c(u,u,u,u)),hsl:new RegExp('hsl'+c(u,s,s)),hsla:new RegExp('hsla'+c(u,s,s,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=f.hex6.exec(r))return parseInt(p[1]+'ff',16)>>>0;var y=b(r);return null!=y?y:(p=f.rgb.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|255)>>>0:(p=f.rgba.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|g(p[4]))>>>0:(p=f.hex3.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+'ff',16)>>>0:(p=f.hex8.exec(r))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(r))?(255|n(o(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(r))?(n(o(p[1]),h(p[2]),h(p[3]))|g(p[4]))>>>0:null}},142,[]); -__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;o.49999*C?[0,2*Math.atan2(s,v)*p,90]:l<-.49999*C?[0,-2*Math.atan2(s,v)*p,-90]:[a.roundTo3Places(Math.atan2(2*s*v-2*c*m,1-2*f-2*M)*p),a.roundTo3Places(Math.atan2(2*c*v-2*s*m,1-2*h-2*M)*p),a.roundTo3Places(Math.asin(2*s*c+2*m*v)*p)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(t){n(16===t.length,'Matrix decomposition needs a list of 3d matrix values, received %s',t);var o=[],i=[],u=[],s=[],c=[];if(t[15]){for(var m=[],v=[],f=0;f<4;f++){m.push([]);for(var h=0;h<4;h++){var M=t[4*f+h]/t[15];m[f].push(M),v.push(3===h?0:M)}}if(v[15]=1,a.determinant(v)){if(0!==m[0][3]||0!==m[1][3]||0!==m[2][3]){var l=[m[0][3],m[1][3],m[2][3],m[3][3]],C=a.inverse(v),p=a.transpose(C);o=a.multiplyVectorByMatrix(l,p)}else o[0]=o[1]=o[2]=0,o[3]=1;for(var x=0;x<3;x++)c[x]=m[3][x];for(var T=[],y=0;y<3;y++)T[y]=[m[y][0],m[y][1],m[y][2]];u[0]=a.v3Length(T[0]),T[0]=a.v3Normalize(T[0],u[0]),s[0]=a.v3Dot(T[0],T[1]),T[1]=a.v3Combine(T[1],T[0],1,-s[0]),u[1]=a.v3Length(T[1]),T[1]=a.v3Normalize(T[1],u[1]),s[0]/=u[1],s[1]=a.v3Dot(T[0],T[2]),T[2]=a.v3Combine(T[2],T[0],1,-s[1]),s[2]=a.v3Dot(T[1],T[2]),T[2]=a.v3Combine(T[2],T[1],1,-s[2]),u[2]=a.v3Length(T[2]),T[2]=a.v3Normalize(T[2],u[2]),s[1]/=u[2],s[2]/=u[2];var S,P=a.v3Cross(T[1],T[2]);if(a.v3Dot(T[0],P)<0)for(var q=0;q<3;q++)u[q]*=-1,T[q][0]*=-1,T[q][1]*=-1,T[q][2]*=-1;return i[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),i[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),i[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),i[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&(i[0]=-i[0]),T[0][2]>T[2][0]&&(i[1]=-i[1]),T[1][0]>T[0][1]&&(i[2]=-i[2]),{rotationDegrees:S=i[0]<.001&&i[0]>=0&&i[1]<.001&&i[1]>=0?[0,0,a.roundTo3Places(180*Math.atan2(T[0][1],T[0][0])/Math.PI)]:a.quaternionToDegreesXYZ(i,m,T),perspective:o,quaternion:i,scale:u,skew:s,translation:c,rotate:S[2],rotateX:S[0],rotateY:S[1],scaleX:u[0],scaleY:u[1],translateX:c[0],translateY:c[1]}}}}};_m.exports=a},145,[46,7]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={width:void 0,height:void 0};m.exports=function(h,n){var o=h||t,u=n||t;return o!==u&&(o.width!==u.width||o.height!==u.height)}},146,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){return!(t===n||t&&n&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[5]===n[5]&&t[10]===n[10]&&t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[11]===n[11]&&t[15]===n[15])}},147,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={top:void 0,left:void 0,right:void 0,bottom:void 0};m.exports=function(o,f){return(o=o||t)!==(f=f||t)&&(o.top!==f.top||o.left!==f.left||o.right!==f.right||o.bottom!==f.bottom)}},148,[]); -__d(function(g,r,i,a,m,e,d){var s=!0===g.RN$Bridgeless?r(d[0]):r(d[1]);m.exports=s},149,[150,152]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=function(n){return"[ReactNative Architecture][JS] '"+n+"' is not available in the new React Native architecture."};m.exports={getViewManagerConfig:function(n){return console.error(o('getViewManagerConfig')+'Use hasViewManagerConfig instead. viewManagerName: '+n),null},hasViewManagerConfig:function(o){return(0,n.unstable_hasComponent)(o)},getConstants:function(){return console.error(o('getConstants')),{}},getConstantsForViewManager:function(n){return console.error(o('getConstantsForViewManager')),{}},getDefaultEventTypes:function(){return console.error(o('getDefaultEventTypes')),[]},lazilyLoadView:function(n){return console.error(o('lazilyLoadView')),{}},createView:function(n,t,u,s){return console.error(o('createView'))},updateView:function(n,t,u){return console.error(o('updateView'))},focus:function(n){return console.error(o('focus'))},blur:function(n){return console.error(o('blur'))},findSubviewIn:function(n,t,u){return console.error(o('findSubviewIn'))},dispatchViewManagerCommand:function(n,t,u){return console.error(o('dispatchViewManagerCommand'))},measure:function(n,t){return console.error(o('measure'))},measureInWindow:function(n,t){return console.error(o('measureInWindow'))},viewIsDescendantOf:function(n,t,u){return console.error(o('viewIsDescendantOf'))},measureLayout:function(n,t,u,s){return console.error(o('measureLayout'))},measureLayoutRelativeToParent:function(n,t,u){return console.error(o('measureLayoutRelativeToParent'))},setJSResponder:function(n,t){return console.error(o('setJSResponder'))},clearJSResponder:function(){},configureNextLayoutAnimation:function(n,t,u){return console.error(o('configureNextLayoutAnimation'))},removeSubviewsFromContainerWithID:function(n){return console.error(o('removeSubviewsFromContainerWithID'))},replaceExistingNonRootView:function(n,t){return console.error(o('replaceExistingNonRootView'))},setChildren:function(n,t){return console.error(o('setChildren'))},manageChildren:function(n,t,u,s,c,l){return console.error(o('manageChildren'))},setLayoutAnimationEnabledExperimental:function(n){console.error(o('setLayoutAnimationEnabledExperimental'))},sendAccessibilityEvent:function(n,t){return console.error(o('sendAccessibilityEvent'))},showPopupMenu:function(n,t,u,s){return console.error(o('showPopupMenu'))},dismissPopupMenu:function(){return console.error(o('dismissPopupMenu'))}}},150,[151]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_hasComponent=function(t){var o=n.get(t);if(null==o){if(!g.__nativeComponentRegistry__hasComponent)throw"unstable_hasComponent('"+t+"'): Global function is not registered";o=g.__nativeComponentRegistry__hasComponent(t),n.set(t,o)}return o};var n=new Map},151,[]); -__d(function(g,r,i,a,m,_e,d){var n=r(d[0])(r(d[1])),e=r(d[2]),t=r(d[3]),o=(r(d[4]),r(d[5])),f={},u=new Set,c={},l=!1;function s(){return l||(c=n.default.getConstants(),l=!0),c}function w(e){if(void 0===f[e]&&g.nativeCallSyncHook&&n.default.getConstantsForViewManager)try{f[e]=n.default.getConstantsForViewManager(e)}catch(n){console.error("NativeUIManager.getConstantsForViewManager('"+e+"') threw an exception.",n),f[e]=null}var t=f[e];if(t)return t;if(!g.nativeCallSyncHook)return t;if(n.default.lazilyLoadView&&!u.has(e)){var o=n.default.lazilyLoadView(e);u.add(e),null!=o&&null!=o.viewConfig&&(s()[e]=o.viewConfig,C(e))}return f[e]}var v=Object.assign({},n.default,{createView:function(e,t,o,u){void 0===f[t]&&w(t),n.default.createView(e,t,o,u)},getConstants:function(){return s()},getViewManagerConfig:function(n){return w(n)},hasViewManagerConfig:function(n){return null!=w(n)}});function C(n){var o=s()[n];f[n]=o,o.Manager&&(t(o,'Constants',{get:function(){var n=e[o.Manager],t={};return n&&Object.keys(n).forEach(function(e){var o=n[e];'function'!=typeof o&&(t[e]=o)}),t}}),t(o,'Commands',{get:function(){var n=e[o.Manager],t={},f=0;return n&&Object.keys(n).forEach(function(e){'function'==typeof n[e]&&(t[e]=f++)}),t}}))}n.default.getViewManagerConfig=v.getViewManagerConfig,Object.keys(s()).forEach(function(n){C(n)}),g.nativeCallSyncHook||Object.keys(s()).forEach(function(e){o.includes(e)||(f[e]||(f[e]=s()[e]),t(n.default,e,{get:function(){return console.warn("Accessing view manager configs directly off UIManager via UIManager['"+e+"'] is no longer supported. Use UIManager.getViewManagerConfig('"+e+"') instead."),v.getViewManagerConfig(e)}}))}),m.exports=v},152,[2,153,45,55,56,154]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('UIManager');e.default=n},153,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dismissPopupMenu','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','removeRootView','removeSubviewsFromContainerWithID','replaceExistingNonRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','showPopupMenu','updateView','viewIsDescendantOf','PopupMenu','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','hasViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']},154,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),s=r(d[2]),u=r(d[3]),o=r(d[4]),c=r(d[5]),l=r(d[6]),v=r(d[7]),b=r(d[8]),f=r(d[9]);function p(n){var t=b.getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=y(n,b.getDefaultEventTypes()):(n.bubblingEventTypes=y(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=y(n.directEventTypes,t.genericDirectEventTypes))}function y(n,t){if(!t)return n;if(!n)return t;for(var s in t)if(t.hasOwnProperty(s)){var u=t[s];if(n.hasOwnProperty(s)){var o=n[s];'object'==typeof u&&'object'==typeof o&&(u=y(o,u))}n[s]=u}return n}function C(n){switch(n){case'CATransform3D':return c;case'CGPoint':return l;case'CGSize':return v;case'UIEdgeInsets':return o;case'Point':return l;case'EdgeInsets':return o}return null}function E(n){switch(n){case'CGColor':case'UIColor':return s;case'CGColorArray':case'UIColorArray':return u;case'CGImage':case'UIImage':case'RCTImageSource':return t;case'Color':return s;case'ColorArray':return u;case'ImageSource':return t}return null}m.exports=function(t){var s,u,o=b.getViewManagerConfig(t);f(null!=o&&null!=o.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',t);var c=o.baseModuleName,l=o.bubblingEventTypes,v=o.directEventTypes,y=o.NativeProps;for(l=null!=(s=l)?s:{},v=null!=(u=v)?u:{};c;){var T=b.getViewManagerConfig(c);T?(l=Object.assign({},T.bubblingEventTypes,l),v=Object.assign({},T.directEventTypes,v),y=Object.assign({},T.NativeProps,y),c=T.baseModuleName):c=null}var I={};for(var w in y){var N=y[w],M=C(N),P=E(N);I[w]=null==M?null==P||{process:P}:null==P?{diff:M}:{diff:M,process:P}}return I.style=n,Object.assign(o,{uiViewClassName:t,validAttributes:I,bubblingEventTypes:l,directEventTypes:v}),p(o),o}},155,[139,156,140,165,148,147,166,146,149,7]); -__d(function(g,r,i,a,m,e,d){'use strict';var t,n,s,u,o=r(d[0]),f=r(d[1]),c=r(d[2]).pickScale;function l(){if(u)return u;var t=g.nativeExtensions&&g.nativeExtensions.SourceCode;return t||(t=r(d[3]).default),u=t.getConstants().scriptURL}function v(){if(void 0===n){var t=l(),s=t&&t.match(/^https?:\/\/.*?\//);n=s?s[0]:null}return n}function p(t){if(t){if(t.startsWith('assets://'))return null;(t=t.substring(0,t.lastIndexOf('/')+1)).includes('://')||(t='file://'+t)}return t}m.exports=function(n){if('object'==typeof n)return n;var u=o.getAssetByID(n);if(!u)return null;var c=new f(v(),(void 0===s&&(s=p(l())),s),u);return t?t(c):c.defaultAsset()},m.exports.pickScale=c,m.exports.setCustomSourceTransformer=function(n){t=n}},156,[157,158,162,164]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}},157,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]),t=r(d[1]),n=r(d[2]),u=r(d[3]).pickScale,o=(r(d[4]),r(d[5])),l=r(d[6]),h=l.getAndroidResourceFolderName,c=l.getAndroidResourceIdentifier,f=l.getBasePath;function v(s){var t=u(s.scales,n.get()),o=1===t?'':'@'+t+'x';return f(s)+'/'+s.name+o+'.'+s.type}var S=(function(){function l(t,n,u){s(this,l),this.serverUrl=t,this.jsbundleUrl=n,this.asset=u}return t(l,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!(!this.jsbundleUrl||!this.jsbundleUrl.startsWith('file://'))}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.scaledAssetURLNearBundle()}},{key:"assetServerURL",value:function(){return o(!!this.serverUrl,'need server to load from'),this.fromSource(this.serverUrl+v(this.asset)+"?platform=ios&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(v(this.asset))}},{key:"scaledAssetURLNearBundle",value:function(){var s=this.jsbundleUrl||'file://';return this.fromSource(s+v(this.asset).replace(/\.\.\//g,'_'))}},{key:"resourceIdentifierWithoutScale",value:function(){return o(!1,'resource identifiers work on Android'),this.fromSource(c(this.asset))}},{key:"drawableFolderInBundle",value:function(){var s,t,o=this.jsbundleUrl||'file://';return this.fromSource(o+(s=this.asset,t=u(s.scales,n.get()),h(s,t)+'/'+c(s)+'.'+s.type))}},{key:"fromSource",value:function(s){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:s,scale:u(this.asset.scales,n.get())}}}]),l})();S.pickScale=u,m.exports=S},158,[18,19,159,162,56,7,163]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=(function(){function o(){t(this,o)}return n(o,null,[{key:"get",value:function(){return u.get('window').scale}},{key:"getFontScale",value:function(){return u.get('window').fontScale||o.get()}},{key:"getPixelSizeForLayoutSize",value:function(t){return Math.round(t*o.get())}},{key:"roundToNearestPixel",value:function(t){var n=o.get();return Math.round(t*n)/n}},{key:"startDetecting",value:function(){}}]),o})();m.exports=o},159,[18,19,160]); -__d(function(g,r,i,a,m,e,d){var n,t=r(d[0]),s=t(r(d[1])),l=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),h=new o.default,v=!1,w=(function(){function t(){(0,s.default)(this,t)}return(0,l.default)(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 s=t.screen,l=t.window,o=t.windowPhysicalPixels;o&&(l={width:o.width/o.scale,height:o.height/o.scale,scale:o.scale,fontScale:o.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=l),n={window:l,screen:s},v?h.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){return(0,f.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),h.addListener(n,t)}}]),t})(),y=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;y||(c.default.addListener('didUpdateDimensions',function(n){w.set(n)}),y=u.default.getConstants().Dimensions),w.set(y),m.exports=w},160,[2,18,19,11,10,161,7]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('DeviceInfo'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},161,[44]); -__d(function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlCacheBreaker=function(){if(null==t)return'';return t},e.pickScale=function(n,t){null==t&&(t=u.default.get());for(var l=0;l=t)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(n){t=n};var t,u=n(r(d[1]))},162,[2,159]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},163,[]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('SourceCode'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},164,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}},165,[2,140]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={x:void 0,y:void 0};m.exports=function(n,o){return(n=n||t)!==(o=o||t)&&(n.x!==o.x||n.y!==o.y)}},166,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o of['validAttributes','bubblingEventTypes','directEventTypes']){var u=Object.keys(f(t[o],n[o]));if(u.length>0){var s,c=null!=(s=n.uiViewClassName)?s:t.uiViewClassName;console.error("'"+c+"' has a view config that does not match native. '"+o+"' is missing: "+u.join(', '))}}},e.getConfigWithoutViewProps=function(t,o){if(!t[o])return{};return Object.keys(t[o]).filter(function(t){return!n.default[o][t]}).reduce(function(n,f){return n[f]=t[o][f],n},{})},e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var n=t(r(d[1])),o=['transform','hitSlop'];function f(t,n){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)o.includes(c)||(n?t.hasOwnProperty(c)&&s(t[c],n[c],c):u[c]={});return u}},167,[2,137]); -__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=e.Commands=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var l=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=l;var c=Object.assign({uiViewClassName:'RCTSinglelineTextInputView'},u.default);e.__INTERNAL_VIEW_CONFIG=c;var p=o.get('RCTSinglelineTextInputView',function(){return c});e.default=p},168,[2,126,169,133]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n={bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topContentSizeChange:{phasedRegistrationNames:{captured:'onContentSizeChangeCapture',bubbled:'onContentSizeChange'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}}},directEventTypes:{topTextInput:{registrationName:'onTextInput'},topKeyPressSync:{registrationName:'onKeyPressSync'},topScroll:{registrationName:'onScroll'},topSelectionChange:{registrationName:'onSelectionChange'},topChangeSync:{registrationName:'onChangeSync'}},validAttributes:Object.assign({fontSize:!0,fontWeight:!0,fontVariant:!0,textShadowOffset:{diff:r(d[1])},allowFontScaling:!0,fontStyle:!0,textTransform:!0,textAlign:!0,fontFamily:!0,lineHeight:!0,isHighlighted:!0,writingDirection:!0,textDecorationLine:!0,textShadowRadius:!0,letterSpacing:!0,textDecorationStyle:!0,textDecorationColor:{process:r(d[2])},color:{process:r(d[2])},maxFontSizeMultiplier:!0,textShadowColor:{process:r(d[2])},editable:!0,inputAccessoryViewID:!0,caretHidden:!0,enablesReturnKeyAutomatically:!0,placeholderTextColor:{process:r(d[2])},clearButtonMode:!0,keyboardType:!0,selection:!0,returnKeyType:!0,blurOnSubmit:!0,mostRecentEventCount:!0,scrollEnabled:!0,selectionColor:{process:r(d[2])},contextMenuHidden:!0,secureTextEntry:!0,placeholder:!0,autoCorrect:!0,multiline:!0,textContentType:!0,maxLength:!0,autoCapitalize:!0,keyboardAppearance:!0,passwordRules:!0,spellCheck:!0,selectTextOnFocus:!0,text:!0,clearTextOnFocus:!0,showSoftInputOnFocus:!0,autoFocus:!0},(0,t.ConditionallyIgnoredEventHandlers)({onChange:!0,onSelectionChange:!0,onContentSizeChange:!0,onScroll:!0,onChangeSync:!0,onKeyPressSync:!0,onTextInput:!0}))};m.exports=n},169,[135,146,140]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}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 y=o.length;if(u.length!==y)return!0;for(var p=0;p=0||(console.error("'numberOfLines' in must be a non-negative number, received: "+Y+". The value will be set to 0."),Y=0);var Z=(0,p.useContext)(c.default),$=s.default.select({ios:!1!==y,default:y});return Z?(0,R.jsx)(f.NativeVirtualText,Object.assign({},H,Q,{isHighlighted:I,isPressable:V,numberOfLines:Y,selectionColor:U,style:X,ref:S})):(0,R.jsx)(c.default.Provider,{value:!0,children:(0,R.jsx)(f.NativeText,Object.assign({},H,Q,{disabled:W,accessible:$,accessibilityState:A,allowFontScaling:!1!==h,ellipsizeMode:null!=T?T:'tail',isHighlighted:I,numberOfLines:Y,selectionColor:U,style:X,ref:S}))})});function P(n){var o=(0,p.useState)(n),s=(0,t.default)(o,2),l=s[0],u=s[1];return!l&&n&&u(n),l}O.displayName='Text',m.exports=O},193,[2,46,93,56,194,196,180,140,183,203,129,184]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PressabilityDebugView=function(t){return null},e.isEnabled=function(){return!1},e.setEnabled=function(t){};t(r(d[1])),r(d[2]),t(r(d[3])),(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=n(u);if(o&&o.has(t))return o.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,o&&o.set(t,f)})(r(d[4])),r(d[5]);function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:u})(t)}},194,[2,141,195,181,129,184]); -__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}},195,[]); -__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])},196,[2,197,129]); -__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=r(d[3]),_=E(r(d[4])),o=E(r(d[5])),l=r(d[6]),u=E(r(d[7])),s=E(r(d[8])),S=E(r(d[9])),T=((function(E,t){if(!t&&E&&E.__esModule)return E;if(null===E||"object"!=typeof E&&"function"!=typeof E)return{default:E};var n=c(t);if(n&&n.has(E))return n.get(E);var R={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in E)if("default"!==o&&Object.prototype.hasOwnProperty.call(E,o)){var l=_?Object.getOwnPropertyDescriptor(E,o):null;l&&(l.get||l.set)?Object.defineProperty(R,o,l):R[o]=E[o]}R.default=E,n&&n.set(E,R)})(r(d[10])),E(r(d[11])));function c(E){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(E){return E?n:t})(E)}var P=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'}}),O=function(E){return'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},D=function(E){return'RESPONDER_ACTIVE_PRESS_OUT'===E||'RESPONDER_ACTIVE_PRESS_IN'===E},N=function(E){return'RESPONDER_INACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},v=function(E){return'RESPONDER_TERMINATED'===E||'RESPONDER_RELEASE'===E},f=30,h=20,I=20,A=20,p=(function(){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)}return(0,n.default)(E,[{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=E._config.disabled;if(null==t){var n=E._config.onStartShouldSetResponder_DEPRECATED;return null==n||n()}return!t},onResponderGrant:function(t){t.persist(),E._cancelPressOutDelayTimeout(),E._responderID=t.currentTarget,E._touchState='NOT_RESPONDER',E._receiveSignal('RESPONDER_GRANT',t);var n=y(E._config.delayPressIn);n>0?E._pressDelayTimeout=setTimeout(function(){E._receiveSignal('DELAY',t)},n):E._receiveSignal('DELAY',t);var R=y(E._config.delayLongPress,10,500-n);E._longPressDelayTimeout=setTimeout(function(){E._handleLongPress(t)},R+n)},onResponderMove:function(t){var n=E._config.onPressMove;null!=n&&n(t);var R=E._responderRegion;if(null!=R){var _=C(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)>10&&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;if(null==t){var n=E._config.onResponderTerminationRequest_DEPRECATED;return null==n||n()}return t},onClick:function(t){var n=E._config,R=n.onPress,_=n.disabled;null!=R&&!0!==_&&R(t)}};if(T.default.shouldPressibilityUseW3CPointerEventsForHover()){var _={onPointerEnter:void 0,onPointerLeave:void 0},o=this._config,l=o.onHoverIn,u=o.onHoverOut;return null!=l&&(_.onPointerEnter=function(t){if(E._isHovered=!0,E._cancelHoverOutDelayTimeout(),null!=l){var n=y(E._config.delayHoverIn);n>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){l(L(t))},n)):l(L(t))}}),null!=u&&(_.onPointerLeave=function(t){if(E._isHovered&&(E._isHovered=!1,E._cancelHoverInDelayTimeout(),null!=u)){var n=y(E._config.delayHoverOut);n>0?(t.persist(),E._hoverOutDelayTimeout=setTimeout(function(){u(L(t))},n)):u(L(t))}}),Object.assign({},t,n,_)}var S='ios'===s.default.OS||'android'===s.default.OS?null:{onMouseEnter:function(t){if((0,R.isHoverEnabled)()){E._isHovered=!0,E._cancelHoverOutDelayTimeout();var n=E._config.onHoverIn;if(null!=n){var _=y(E._config.delayHoverIn);_>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){n(t)},_)):n(t)}}},onMouseLeave:function(t){if(E._isHovered){E._isHovered=!1,E._cancelHoverInDelayTimeout();var n=E._config.onHoverOut;if(null!=n){var R=y(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,o=null==(n=P[R])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,_.default)(null!=o&&'ERROR'!==o,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,R,'number'==typeof this._responderID?this._responderID:'<>'),R!==o&&(this._performTransitionSideEffects(R,o,E,t),this._touchState=o))}},{key:"_performTransitionSideEffects",value:function(E,t,n,R){v(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var _='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,l=!D(E)&&D(t);if((_||l)&&this._measureResponderRegion(),N(E)&&'LONG_PRESS_DETECTED'===n){var u=this._config.onLongPress;null!=u&&u(R)}var S=O(E),T=O(t);if(!S&&T?this._activate(R):S&&!T&&this._deactivate(R),N(E)&&'RESPONDER_RELEASE'===n){T||S||(this._activate(R),this._deactivate(R));var c=this._config,P=c.onLongPress,f=c.onPress,h=c.android_disableSound;if(null!=f)null!=P&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E&&this._shouldLongPressCancelPress()||('android'===s.default.OS&&!0!==h&&o.default.playTouchSound(),f(R))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=C(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=y(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,y(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?S.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,u=(0,l.normalizeRect)(this._config.hitSlop),s=(0,l.normalizeRect)(this._config.pressRectOffset),S=t.bottom,T=t.left,c=t.right,P=t.top;return null!=u&&(null!=u.bottom&&(S+=u.bottom),null!=u.left&&(T-=u.left),null!=u.right&&(c+=u.right),null!=u.top&&(P-=u.top)),S+=null!=(n=null==s?void 0:s.bottom)?n:f,T-=null!=(R=null==s?void 0:s.left)?R:h,c+=null!=(_=null==s?void 0:s.right)?_:I,P-=null!=(o=null==s?void 0:s.top)?o:A,E.pageX>T&&E.pageXP&&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)}e.default=p;var C=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 L(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}})}},197,[2,18,19,198,7,199,195,201,56,149,129,202]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return t};var t=!1;if('web'===n(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var o=0,u=function(){o=Date.now(),t&&(t=!1)};document.addEventListener('touchstart',u,!0),document.addEventListener('touchmove',u,!0),document.addEventListener('mousemove',function(){t||Date.now()-o<1e3||(t=!0)},!0)}},198,[2,56]); -__d(function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},199,[2,200]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('SoundManager');e.default=n},200,[44]); -__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(){function t(){(0,n.default)(this,t),this._listeners=[]}return(0,s.default)(t,[{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)})}}}]),t})());e.default=u},201,[2,18,19]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={isLayoutAnimationEnabled:function(){return!0},shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1},animatedShouldDebounceQueueFlush:function(){return!1},animatedShouldUseSingleOp:function(){return!1}}},202,[]); -__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=t(r(d[3])),u=(0,o.default)('RCTText',function(){return{validAttributes:Object.assign({},n.default.UIView,{isHighlighted:!0,isPressable:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0}),directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'}});e.NativeText=u;var s=g.RN$Bridgeless||l.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',function(){return{validAttributes:Object.assign({},n.default.UIView,{isHighlighted:!0,isPressable:!0,maxFontSizeMultiplier:!0}),uiViewClassName:'RCTVirtualText'}}):u;e.NativeVirtualText=s},203,[2,204,149,191]); -__d(function(g,r,i,a,m,e,d){'use strict';var s={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessibilityHint:!0,accessibilityLanguage:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,onAccessibilityEscape:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:r(d[0])(r(d[1])).default},c={UIView:s,RCTView:Object.assign({},s,{removeClippedSubviews:!0})};m.exports=c},204,[2,139]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),s=e(r(d[2])),o=e(r(d[3])),n=e(r(d[4])),c=e(r(d[5])),l=e(r(d[6])),p=e(r(d[7])),u=(r(d[8]),r(d[9])),f=e(r(d[10])),h=e(r(d[11])),b=(e(r(d[12])),e(r(d[13]))),y=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=O(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=n?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}o.default=e,s&&s.set(e,o);return o})(r(d[14])),v=e(r(d[15])),P=(r(d[16]),["onBlur","onFocus"]);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(O=function(e){return e?s:t})(e)}function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var S=(function(e){(0,n.default)(S,e);var b,v,O=(b=S,v=F(),function(){var e,t=(0,l.default)(b);if(v){var s=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,c.default)(this,e)});function S(){var e;(0,s.default)(this,S);for(var t=arguments.length,o=new Array(t),n=0;n=23};var R='android'===h.default.OS?function(e,t){return t&&S.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};S.displayName='TouchableNativeFeedback',m.exports=S},205,[2,93,18,19,30,32,35,197,194,182,20,56,181,140,129,7,184]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]),e=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),n=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),p=t(r(d[7])),u=(r(d[8]),t(r(d[9]))),f=t(r(d[10])),y=t(r(d[11])),h=t(r(d[12])),b=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=O(e);if(s&&s.has(t))return s.get(t);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,s&&s.set(t,o);return o})(r(d[13])),v=r(d[14]),P=["onBlur","onFocus"];function O(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(O=function(t){return t?s:e})(t)}function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var _=(function(t){(0,n.default)(R,t);var b,O,_=(b=R,O=F(),function(){var t,e=(0,l.default)(b);if(O){var s=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function R(){var t;(0,s.default)(this,R);for(var e=arguments.length,o=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return y},event:c.event,createAnimatedComponent:p,attachNativeEvent:o,forkEvent:c.forkEvent,unforkEvent:c.unforkEvent,Event:u}},208,[2,209,219,221,211,212,210,220,236]); -__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])),a=t(_r(d[2])),s=t(_r(d[3])),n=t(_r(d[4])),r=t(_r(d[5])),l=t(_r(d[6])),u=t(_r(d[7])),f=t(_r(d[8])),o=t(_r(d[9])),h=_r(d[10]);function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var v=t(_r(d[11])).default.API,c={r:0,g:0,b:0,a:1},g=1;function b(t){if(void 0===t||null===t)return null;if(y(t))return t;var e=(0,o.default)(t);if(void 0===e||null===e)return null;if('object'==typeof e){var a=(0,h.processColorObject)(e);if(null!=a)return a}else if('number'==typeof e){return{r:(4278190080&e)>>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function y(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 u.default&&t.g instanceof u.default&&t.b instanceof u.default&&t.a instanceof u.default}var C=(function(t){(0,n.default)(C,t);var f,o,h=(f=C,o=_(),function(){var t,e=(0,l.default)(f);if(o){var a=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,r.default)(this,t)});function C(t,a){var s;(0,e.default)(this,C),(s=h.call(this))._listeners={};var n=null!=t?t:c;if(p(n)){var r=n;s.r=r.r,s.g=r.g,s.b=r.b,s.a=r.a}else{var l,f=null!=(l=b(n))?l:c,o=c;y(f)?o=f:s.nativeColor=f,s.r=new u.default(o.r),s.g=new u.default(o.g),s.b=new u.default(o.b),s.a=new u.default(o.a)}return(s.nativeColor||a&&a.useNativeDriver)&&s.__makeNative(),s}return(0,a.default)(C,[{key:"setValue",value:function(t){var e,a=!1;if(this.__isNative){var s=this.__getNativeTag();v.setWaitingForIdentifier(s.toString())}var n=null!=(e=b(t))?e:c;if(y(n)){var r=n;this.r.setValue(r.r),this.g.setValue(r.g),this.b.setValue(r.b),this.a.setValue(r.a),null!=this.nativeColor&&(this.nativeColor=null,a=!0)}else{var l=n;this.nativeColor!==l&&(this.nativeColor=l,a=!0)}if(this.__isNative){var u=this.__getNativeTag();a&&v.updateAnimatedNodeConfig(u,this.__getNativeConfig()),v.unsetWaitingForIdentifier(u.toString())}}},{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:"addListener",value:function(t){var e=this,a=String(g++),s=function(a){a.value;t(e.__getValue())};return this._listeners[a]={r:this.r.addListener(s),g:this.g.addListener(s),b:this.b.addListener(s),a:this.a.addListener(s)},a}},{key:"removeListener",value:function(t){this.r.removeListener(this._listeners[t].r),this.g.removeListener(this._listeners[t].g),this.b.removeListener(this._listeners[t].b),this.a.removeListener(this._listeners[t].a),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}},{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),(0,s.default)((0,l.default)(C.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),(0,s.default)((0,l.default)(C.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),(0,s.default)((0,l.default)(C.prototype),"__makeNative",this).call(this,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}}}]),C})(f.default);_e.default=C},209,[2,18,19,74,30,32,35,210,216,141,143,213]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]),o=r(d[5]);function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var l=r(d[6]),f=r(d[7]),h=r(d[8]),c=r(d[9]).API;function v(t){var e=new Set;!(function t(n){'function'==typeof n.update?e.add(n):n.__getChildren().forEach(t)})(t),e.forEach(function(t){return t.update()})}var p=(function(p){s(V,f);var k,y,N=(k=V,y=_(),function(){var t,e=o(k);if(y){var n=o(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function V(e,n){var s;if(t(this,V),s=N.call(this),'number'!=typeof e)throw new Error('AnimatedValue: Attempting to set value to undefined');return s._startingValue=s._value=e,s._offset=0,s._animation=null,n&&n.useNativeDriver&&s.__makeNative(),s}return e(V,[{key:"__detach",value:function(){var t=this;this.__isNative&&c.getValue(this.__getNativeTag(),function(e){t._value=e-t._offset}),this.stopAnimation(),n(o(V.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){var e,n,s=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),n=function(){return c.setAnimatedNodeValue(s.__getNativeTag(),t)},c.setWaitingForIdentifier(e),n(),c.unsetWaitingForIdentifier(e))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&c.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&c.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&c.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&(this.__isNative?c.getValue(this.__getNativeTag(),t):t(this.__getValue()))}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&c.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new l(this,t)}},{key:"animate",value:function(t,e){var n=this,s=null;t.__isInteraction&&(s=h.createInteractionHandle());var u=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!==s&&h.clearInteractionHandle(s),e&&e(t)},u,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&&v(this),n(o(V.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),V})();m.exports=p},210,[18,19,74,30,32,35,211,216,217,213]); -__d(function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]),e=_r(d[1]),n=_r(d[2]),a=_r(d[3]),r=_r(d[4]),i=_r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}_r(d[6]);var u=_r(d[7]),c=_r(d[8]),f=_r(d[9]),p=_r(d[10]),l=function(t){return t};function h(t){if(t.outputRange&&'string'==typeof t.outputRange[0])return g(t);var e=t.outputRange,n=t.inputRange,a=t.easing||l,r='extend';void 0!==t.extrapolateLeft?r=t.extrapolateLeft:void 0!==t.extrapolate&&(r=t.extrapolate);var i='extend';return void 0!==t.extrapolateRight?i=t.extrapolateRight:void 0!==t.extrapolate&&(i=t.extrapolate),function(t){f('number'==typeof t,'Cannot interpolation an input which is not a number');var o=x(t,n);return s(t,n[o],n[o+1],e[o],e[o+1],a,r,i)}}function s(t,e,n,a,r,i,o,u){var c=t;if(cn){if('identity'===u)return c;'clamp'===u&&(c=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a,c)}function _(t){var e=p(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var v=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function g(t){var e=t.outputRange;f(e.length>=2,'Bad output range'),y(e=e.map(_));var n=e[0].match(v).map(function(){return[]});e.forEach(function(t){t.match(v).forEach(function(t,e){n[e].push(+t)})});var a,r=e[0].match(v).map(function(e,a){return h(Object.assign({},t,{outputRange:n[a]}))}),i='string'==typeof(a=e[0])&&a.startsWith('rgb');return function(t){var n=0;return e[0].replace(v,function(){var e=+r[n++](t);return i&&(e=n<4?Math.round(e):Math.round(1e3*e)/1e3),String(e)})}}function y(t){for(var e=t[0].replace(v,''),n=1;n=t);++n);return n-1}var R=(function(p){a(v,u);var l,s,_=(l=v,s=o(),function(){var t,e=i(l);if(s){var n=i(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(this,t)});function v(e,n){var a;return t(this,v),(a=_.call(this))._parent=e,a._config=n,a._interpolation=h(n),a}return e(v,[{key:"__makeNative",value:function(t){this._parent.__makeNative(t),n(i(v.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return f('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new v(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),n(i(v.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(c.transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),v})();R.__createInterpolation=h,m.exports=R},211,[18,19,74,30,32,35,212,216,213,7,141]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),_=s.API,o=r(d[3]),u=1,l=(function(){function l(){t(this,l),this._listeners={}}return n(l,[{key:"__attach",value:function(){}},{key:"__detach",value:function(){this.__isNative&&null!=this.__nativeTag&&(s.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}},{key:"__getValue",value:function(){}},{key:"__getAnimatedValue",value:function(){return this.__getValue()}},{key:"__addChild",value:function(t){}},{key:"__removeChild",value:function(t){}},{key:"__getChildren",value:function(){return[]}},{key:"__makeNative",value:function(t){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=t,this.hasListeners()&&this._startListeningToNativeValueUpdates()}},{key:"addListener",value:function(t){var n=String(u++);return this._listeners[n]=t,this.__isNative&&this._startListeningToNativeValueUpdates(),n}},{key:"removeListener",value:function(t){delete this._listeners[t],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}},{key:"removeAllListeners",value:function(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}},{key:"hasListeners",value:function(){return!!Object.keys(this._listeners).length}},{key:"_startListeningToNativeValueUpdates",value:function(){var t=this;this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),_.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=s.nativeEventEmitter.addListener('onAnimatedValueUpdate',function(n){n.tag===t.__getNativeTag()&&t.__onAnimatedValueUpdateReceived(n.value)}))}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this.__callListeners(t)}},{key:"__callListeners",value:function(t){for(var n in this._listeners)this._listeners[n]({value:t})}},{key:"_stopListeningForNativeValueUpdates",value:function(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,_.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}},{key:"__getNativeTag",value:function(){var t;s.assertNativeAnimatedModule(),o(this.__isNative,'Attempt to get native tag from node not marked as "native"');var n=null!=(t=this.__nativeTag)?t:s.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=n;var _=this.__getNativeConfig();this._platformConfig&&(_.platformConfig=this._platformConfig),s.API.createAnimatedNode(n,_),this.__shouldUpdateListenersForNewNativeTag=!0}return n}},{key:"__getNativeConfig",value:function(){throw new Error('This JS animated node type cannot be used as native animated node')}},{key:"toJSON",value:function(){return this.__getValue()}},{key:"__getPlatformConfig",value:function(){return this._platformConfig}},{key:"__setPlatformConfig",value:function(t){this._platformConfig=t}}]),l})();m.exports=l},212,[18,19,213,7]); -__d(function(g,r,_i,a,m,e,d){var t,n=r(d[0]),i=n(r(d[1])),o=n(r(d[2])),u=n(r(d[3])),l=n(r(d[4])),s=n(r(d[5])),f=n(r(d[6])),c=n(r(d[7])),p='ios'===l.default.OS&&!0===g.RN$Bridgeless?o.default:i.default,v=1,N=1,A=new Set,b=!1,h=[],O=[],w='android'===l.default.OS&&!(null==p||!p.queueAndExecuteBatchedOperations)&&s.default.animatedShouldUseSingleOp(),V=null,y={},q={},T=null,S=null,R=w?['createAnimatedNode','updateAnimatedNodeConfig','getValue','startListeningToAnimatedNodeValue','stopListeningToAnimatedNodeValue','connectAnimatedNodes','disconnectAnimatedNodes','startAnimatingNode','stopAnimation','setAnimatedNodeValue','setAnimatedNodeOffset','flattenAnimatedNodeOffset','extractAnimatedNodeOffset','connectAnimatedNodeToView','disconnectAnimatedNodeFromView','restoreDefaultValues','dropAnimatedNode','addAnimatedEventToView','removeAnimatedEventFromView','addListener','removeListener'].reduce(function(t,n,i){return t[n]=i+1,t},{}):p,E={getValue:function(t,n){(0,f.default)(R,'Native animated module is not available'),w?(n&&(y[t]=n),E.queueOperation(R.getValue,t)):E.queueOperation(R.getValue,t,n)},setWaitingForIdentifier:function(t){A.add(t),b=!0,s.default.animatedShouldDebounceQueueFlush()&&V&&clearTimeout(V)},unsetWaitingForIdentifier:function(t){A.delete(t),0===A.size&&(b=!1,E.disableQueue())},disableQueue:function(){((0,f.default)(R,'Native animated module is not available'),s.default.animatedShouldDebounceQueueFlush())?(clearImmediate(V),V=setImmediate(E.flushQueue)):E.flushQueue()},flushQueue:function(){if((0,f.default)(p,'Native animated module is not available'),V=null,(!w||0!==O.length)&&(w||0!==h.length))if(w)T&&S||C(),null==p.queueAndExecuteBatchedOperations||p.queueAndExecuteBatchedOperations(O),O.length=0;else{'android'===l.default.OS&&(null==p.startOperationBatch||p.startOperationBatch());for(var t=0,n=h.length;t1?n-1:0),o=1;o0?setTimeout(S,0):setImmediate(S))}function S(){h=0;var n=f.size;l.forEach(function(n){return f.add(n)}),v.forEach(function(n){return f.delete(n)});var o=f.size;if(0!==n&&0===o?s.emit(u.Events.interactionComplete):0===n&&0!==o&&s.emit(u.Events.interactionStart),0===o)for(;p.hasTasksToProcess();)if(p.processNext(),w>0&&t.getEventLoopRunningTime()>=w){E();break}l.clear(),v.clear()}m.exports=u},217,[2,11,50,218,82,7]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),t=r(d[1]),u=(r(d[2]),r(d[3])),s=(function(){function s(t){var u=t.onMoreTasks;e(this,s),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return t(s,[{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():(u('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)})}}]),s})();m.exports=s},218,[18,19,82,7]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),v=r(d[4]),c=r(d[5]),f=r(d[6]),l=r(d[4]).shouldUseNativeDriver;function u(t,n,l,u){var _=[];f(l[0]&&l[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,v){if(n instanceof s)n.__makeNative(u),_.push({nativeEventPath:v,animatedValueTag:n.__getNativeTag()});else if(n instanceof o)t(n.x,v.concat('x')),t(n.y,v.concat('y'));else if('object'==typeof n)for(var c in n)t(n[c],v.concat(c))})(l[0].nativeEvent,[]);var h=c.findNodeHandle(t);return null!=h&&_.forEach(function(t){v.API.addAnimatedEventToView(h,n,t)}),{detach:function(){null!=h&&_.forEach(function(t){v.API.removeAnimatedEventFromView(h,n,t.animatedValueTag)})}}}var _=(function(){function v(n,s){var o=this;t(this,v),this._listeners=[],this._callListeners=function(){for(var t=arguments.length,n=new Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},i=t.iterations,r=void 0===i?-1:i,o=t.resetBeforeIteration,a=void 0===o||o,s=!1,u=0;return{start:function(t){n&&0!==r?n._isUsingNativeDriver()?n._startNativeLoop(r):(function i(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};s||u===r||!1===o.finished?t&&t(o):(u++,a&&n.reset(),n.start(i))})():t&&t({finished:!0})},stop:function(){s=!0,n.stop()},reset:function(){u=0,s=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var r=new i(n,t);return r.__isNative?r:r.__getHandler()},createAnimatedComponent:E,attachNativeEvent:r,forkEvent:function(n,t){return n?n instanceof i?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof i&&n.__removeListener(t)},Event:i}},221,[2,209,219,222,223,224,211,225,226,212,227,228,210,220,229,231,233,236]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),h=r(d[9]),l=(function(l){a(p,h);var f,v,y=(f=p,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function p(e,n){var a;return t(this,p),(a=y.call(this))._a='number'==typeof e?new s(e):e,a._b='number'==typeof n?new s(n):n,a}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(p.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),p})();m.exports=l},222,[18,19,74,30,32,35,211,212,210,216]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),a=r(d[2]),n=r(d[3]),u=r(d[4]),_=r(d[5]);function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),o=(function(o){n(p,s);var h,f,v=(h=p,f=l(),function(){var t,e=_(h);if(f){var a=_(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return u(this,t)});function p(e,a,n){var u;return t(this,p),(u=v.call(this))._a=e,u._min=a,u._max=n,u._value=u._lastValue=u._a.__getValue(),u}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),a(_(p.prototype),"__makeNative",this).call(this,t)}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),a(_(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),p})();m.exports=o},223,[18,19,74,30,32,35,211,212,216]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),a=r(d[4]),_=r(d[5]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=r(d[6]),c=r(d[7]),h=r(d[8]),l=r(d[9]),v=(function(v){o(b,l);var f,y,p=(f=b,y=u(),function(){var t,e=_(f);if(y){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function b(e,n){var o;return t(this,b),(o=p.call(this))._warnedAboutDivideByZero=!1,(0===n||n instanceof c&&0===n.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),o._a='number'==typeof e?new h(e):e,o._b='number'==typeof n?new h(n):n,o}return e(b,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(_(b.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=this._b.__getValue();return 0===e?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,t/e)}},{key:"interpolate",value:function(t){return new s(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(_(b.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),b})();m.exports=v},224,[18,19,74,30,32,35,211,212,210,216]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),u=r(d[2]),n=r(d[3]),a=r(d[4]),o=r(d[5]);function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=r(d[6]),_=(r(d[7]),r(d[8])),l=(function(l){n(y,_);var h,f,v=(h=y,f=c(),function(){var t,e=o(h);if(f){var u=o(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return a(this,t)});function y(e,u){var n;return t(this,y),(n=v.call(this))._a=e,n._modulus=u,n}return e(y,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),u(o(y.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new s(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),u(o(y.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),y})();m.exports=l},225,[18,19,74,30,32,35,211,212,216]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),l=(r(d[7]),r(d[8])),s=r(d[9]),h=(function(h){a(y,s);var f,v,p=(f=y,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function y(e,n){var a;return t(this,y),(a=p.call(this))._a='number'==typeof e?new l(e):e,a._b='number'==typeof n?new l(n):n,a}return e(y,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(y.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(y.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),y})();m.exports=h},226,[18,19,74,30,32,35,211,212,210,216]); -__d(function(g,r,i,_a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),u=r(d[5]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c=r(d[6]),s=(r(d[7]),r(d[8])),h=r(d[9]),l=(function(l){a(p,h);var f,v,y=(f=p,v=o(),function(){var t,e=u(f);if(v){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function p(e,n){var a;return t(this,p),(a=y.call(this))._a='number'==typeof e?new s(e):e,a._b='number'==typeof n?new s(n):n,a}return e(p,[{key:"__makeNative",value:function(t){this._a.__makeNative(t),this._b.__makeNative(t),n(u(p.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new c(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),n(u(p.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),p})();m.exports=l},227,[18,19,74,30,32,35,211,212,210,216]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),_=r(d[4]),s=r(d[5]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[6]);var l=r(d[7]),c=r(d[8]),h=c.generateNewAnimationId,v=c.shouldUseNativeDriver,f=(function(c){o(k,l);var f,p,y=(f=k,p=u(),function(){var t,e=s(f);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _(this,t)});function k(e,n,o,_,s){var u;return t(this,k),(u=y.call(this))._value=e,u._parent=n,u._animationClass=o,u._animationConfig=_,u._useNativeDriver=v(_),u._callback=s,u.__attach(),u}return e(k,[{key:"__makeNative",value:function(t){this.__isNative=!0,this._parent.__makeNative(t),n(s(k.prototype),"__makeNative",this).call(this,t),this._value.__makeNative(t)}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){if(this._parent.__addChild(this),this._useNativeDriver){var t=this._animationConfig.platformConfig;this.__makeNative(t)}}},{key:"__detach",value:function(){this._parent.__removeChild(this),n(s(k.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(Object.assign({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(Object.assign({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:h(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),k})();m.exports=f},228,[18,19,74,30,32,35,210,212,213]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]);function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var u=r(d[6]),_=r(d[7]).shouldUseNativeDriver,h=(function(h){o(y,u);var f,v,p=(f=y,v=l(),function(){var t,e=c(f);if(v){var n=c(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return s(this,t)});function y(e){var n,o,s,c;return t(this,y),(c=p.call(this))._deceleration=null!=(n=e.deceleration)?n:.998,c._velocity=e.velocity,c._useNativeDriver=_(e),c._platformConfig=e.platformConfig,c.__isInteraction=null!=(o=e.isInteraction)?o:!c._useNativeDriver,c.__iterations=null!=(s=e.iterations)?s:1,c}return e(y,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,n,o,s){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(s):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{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.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){n(c(y.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),y})();m.exports=h},229,[18,19,74,30,32,35,230,213]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),o=1,_=(function(){function _(){t(this,_)}return n(_,[{key:"start",value:function(t,n,e,o,_){}},{key:"stop",value:function(){this.__nativeId&&e.API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(t){var n=o+":startAnimation";o+=1,e.API.setWaitingForIdentifier(n);try{var _=this.__getNativeAnimationConfig();t.__makeNative(_.platformConfig),this.__nativeId=e.generateNewAnimationId(),e.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),_,this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{e.API.unsetWaitingForIdentifier(n)}}}]),_})();m.exports=_},230,[18,19,213]); -__d(function(g,r,i,a,_m,_e,d){'use strict';var t=r(d[0]),s=t(r(d[1])),e=t(r(d[2])),n=t(r(d[3])),o=t(r(d[4])),l=t(r(d[5])),h=t(r(d[6]));t(r(d[7]));function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[8]),r(d[9]),r(d[10]);var f=r(d[11]),u=r(d[12]),c=r(d[13]),m=r(d[14]).shouldUseNativeDriver,v=(function(t){(0,o.default)(y,t);var f,v,p=(f=y,v=_(),function(){var t,s=(0,h.default)(f);if(v){var e=(0,h.default)(this).constructor;t=Reflect.construct(s,arguments,e)}else t=s.apply(this,arguments);return(0,l.default)(this,t)});function y(t){var e,n,o,l,h,_,f,v,V,T,b,M;if((0,s.default)(this,y),(V=p.call(this))._overshootClamping=null!=(e=t.overshootClamping)&&e,V._restDisplacementThreshold=null!=(n=t.restDisplacementThreshold)?n:.001,V._restSpeedThreshold=null!=(o=t.restSpeedThreshold)?o:.001,V._initialVelocity=null!=(l=t.velocity)?l:0,V._lastVelocity=null!=(h=t.velocity)?h:0,V._toValue=t.toValue,V._delay=null!=(_=t.delay)?_:0,V._useNativeDriver=m(t),V._platformConfig=t.platformConfig,V.__isInteraction=null!=(f=t.isInteraction)?f:!V._useNativeDriver,V.__iterations=null!=(v=t.iterations)?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)c(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),V._stiffness=null!=(T=t.stiffness)?T:100,V._damping=null!=(b=t.damping)?b:10,V._mass=null!=(M=t.mass)?M:1;else if(void 0!==t.bounciness||void 0!==t.speed){var D,P;c(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var C=u.fromBouncinessAndSpeed(null!=(D=t.bounciness)?D:8,null!=(P=t.speed)?P:12);V._stiffness=C.stiffness,V._damping=C.damping,V._mass=1}else{var S,U,A=u.fromOrigamiTensionAndFriction(null!=(S=t.tension)?S:40,null!=(U=t.friction)?U:7);V._stiffness=A.stiffness,V._damping=A.damping,V._mass=1}return c(V._stiffness>0,'Stiffness value must be greater than 0'),c(V._damping>0,'Damping value must be greater than 0'),c(V._mass>0,'Mass value must be greater than 0'),V}return(0,e.default)(y,[{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}}},{key:"start",value:function(t,s,e,n,o){var l=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof y){var h=n.getInternalState();this._lastPosition=h.lastPosition,this._lastVelocity=h.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=h.lastTime}var _=function(){l._useNativeDriver?l.__startNativeAnimation(o):l.onUpdate()};this._delay?this._timeout=setTimeout(_,this._delay):_()}},{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 s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,l=-this._initialVelocity,h=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),f=_*Math.sqrt(1-h*h),u=this._toValue-this._startPosition,c=0,m=0,v=this._frameTime;if(h<1){var p=Math.exp(-h*_*v);c=this._toValue-p*((l+h*_*u)/f*Math.sin(f*v)+u*Math.cos(f*v)),m=h*_*p*(Math.sin(f*v)*(l+h*_*u)/f+u*Math.cos(f*v))-p*(Math.cos(f*v)*(l+h*_*u)-f*u*Math.sin(f*v))}else{var y=Math.exp(-_*v);c=this._toValue-y*(u+(l+_*u)*v),m=y*(l*(v*_-1)+v*u*(_*_))}if(this._lastTime=t,this._lastPosition=c,this._lastVelocity=m,this._onUpdate(c),this.__active){var V=!1;this._overshootClamping&&0!==this._stiffness&&(V=this._startPositionthis._toValue:c18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},232,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),_=t(r(d[6]));t(r(d[7]));function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[8]),r(d[9]),r(d[10]);var f,h=r(d[11]),c=r(d[12]).shouldUseNativeDriver;function v(){if(!f){var t=r(d[13]);f=t.inOut(t.ease)}return f}var p=(function(t){(0,s.default)(y,t);var f,h,p=(f=y,h=l(),function(){var t,e=(0,_.default)(f);if(h){var n=(0,_.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function y(t){var n,o,s,u,_,l;return(0,e.default)(this,y),(l=p.call(this))._toValue=t.toValue,l._easing=null!=(n=t.easing)?n:v(),l._duration=null!=(o=t.duration)?o:500,l._delay=null!=(s=t.delay)?s:0,l.__iterations=null!=(u=t.iterations)?u:1,l._useNativeDriver=c(t),l._platformConfig=t.platformConfig,l.__isInteraction=null!=(_=t.isInteraction)?_:!l._useNativeDriver,l}return(0,n.default)(y,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=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.__debouncedOnEnd({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(){(0,o.default)((0,_.default)(y.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),y})(h);m.exports=p},233,[2,18,19,74,30,32,35,209,210,220,211,230,213,234]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,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 r(d[0])(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}}};m.exports=t},234,[235]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,i='function'==typeof Float32Array;function c(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((c(t,u)*n+v(t,u))*n+s(t))*n}function l(n,t,u){return 3*c(t,u)*n*n+2*v(t,u)*n+s(t)}function y(n,t,f,i,c){var v,s,l=0,y=t,b=f;do{(v=w(s=y+(b-y)/2,i,c)-n)>0?b=s:y=s}while(Math.abs(v)>u&&++l=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var v=i?new Float32Array(11):new Array(11);if(n!==u||o!==c)for(var s=0;s<11;++s)v[s]=w(s*f,n,o);function h(u){for(var i=0,c=1;10!==c&&v[c]<=u;++c)i+=f;var s=i+(u-v[--c])/(v[c+1]-v[c])*f,w=l(s,n,o);return w>=t?b(u,s,n,o):0===w?s:y(u,i,i+f,n,o)}return function(t){return n===u&&o===c?t:0===t?0:1===t?1:w(h(t),u,c)}}},235,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t,e=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),p=e(r(d[6])),u=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=l?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=t[s]}o.default=t,n&&n.set(t,o);return o})(r(d[7])),_=r(d[8]),f=["style"],h=["style"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}r(d[9]);var A=r(d[10]).AnimatedEvent,k=r(d[11]),b=r(d[12]),N=r(d[13]),R=r(d[14]),P=r(d[15]),C=1;m.exports=null!=(t=u.recordAndRetrieve())?t:function(t){R('function'!=typeof t||t.prototype&&t.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");var e=(function(e){(0,s.default)(R,e);var u,v,b=(u=R,v=y(),function(){var t,e=(0,p.default)(u);if(v){var n=(0,p.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function R(){var t;(0,o.default)(this,R);for(var e=arguments.length,n=new Array(e),l=0;l1){for(var s=[],l=0;l1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,s=R(t.props.numColumns),l=null!=(o=t.props.keyExtractor)?o:f.keyExtractor;return s>1?Array.isArray(e)?e.map(function(e,t){return l(e,n*s+t)}).join(':'):void I(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.",s):l(e,n)},t._renderer=function(e,t,o,s,l){var u=R(s),c=e?'ListItemComponent':'renderItem',f=function(n){return e?(0,h.jsx)(e,Object.assign({},n)):t?t(n):null};return(0,n.default)({},c,function(e){if(u>1){var t=e.item,n=e.index;return I(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,h.jsx)(_,{style:k.compose(P.row,o),children:t.map(function(t,o){var s=f({item:t,index:n*u+o,separators:e.separators});return null!=s?(0,h.jsx)(b.Fragment,{children:s},o):null})})}return f(e)})},t._memoizedRenderer=(0,p.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(t.props.onViewableItemsChanged)}),t}return(0,s.default)(E,[{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){I(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."),I(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),I(!y(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),I(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,o=e.horizontal,s=e.columnWrapperStyle,l=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=R(this.props.numColumns);I(!t&&!n,'FlatList does not support custom data formats.'),c>1?I(!o,'numColumns does not support horizontal.'):I(!s,'columnWrapperStyle not supported for single column lists'),I(!(l&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,o=R(this.props.numColumns),s=null!=(n=this.props.keyExtractor)?n:f.keyExtractor;t.item.forEach(function(n,l){I(null!=t.index,'Missing index!');var u=t.index*o+l;e.push(Object.assign({},t,{item:n,key:s(n,u),index:u}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=R(t.props.numColumns);if(e)if(o>1){var s=[],l=[];n.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(l,e)}),n.changed.forEach(function(e){return t._pushMultiColumnViewable(s,e)}),e({viewableItems:l,changed:s})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,o=n.numColumns,s=n.columnWrapperStyle,l=n.removeClippedSubviews,u=n.strictMode,c=void 0!==u&&u,f=(0,t.default)(n,v),p=c?this._memoizedRenderer:this._renderer;return(0,h.jsx)(w,Object.assign({},f,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=l,null!=e&&e)},p(this.props.ListItemComponent,this.props.renderItem,s,o,this.props.extraData)))}}]),E})(b.PureComponent),P=k.create({row:{flexDirection:'row'}});m.exports=x},243,[2,93,244,18,19,30,32,35,245,246,184,56,170,129,181,247,180,7]); -__d(function(g,r,i,a,m,e,d){m.exports=function(n,t,u){return t in n?Object.defineProperty(n,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[t]=u,n}},244,[]); -__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,o,s,u,v,c,h){var M=o(t);if(0===M)return v;var b=h.offset,x=h.velocity,y=h.visibleLength,w=h.zoomScale,k=void 0===w?1:w,p=Math.max(0,b),O=p+y,_=(u-1)*y,j=x>1?'after':x<-1?'before':'none',L=Math.max(0,p-.5*_),S=Math.max(0,O+.5*_);if(c(M-1).offset*k=F);){var P=N>=s,T=z<=v.first||z>v.last,W=z>R&&(!P||!T),q=B>=v.last||B=z&&z>=0&&B=R&&B<=F&&z<=J.first&&B>=J.last))throw new Error('Bad window calculation '+JSON.stringify({first:z,last:B,itemCount:M,overscanFirst:R,overscanLast:F,visible:J}));return{first:z,last:B}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){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(n)},e.newRangeCount=l;var n=t(r(d[1]));t(r(d[2]));function f(t,n,f){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=[],s=0;s>>1),M=f(h),b=M.offset*l,x=(M.offset+M.length)*l;if(0===h&&ux)){o[s]=h;break}v=h+1}}return o}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}},245,[2,46,7]); -__d(function(g,r,_i2,a,m,e,d){'use strict';var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){if(n.length!==u.length)return!1;for(var i=0;i0&&t>0&&null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0&&!s._hasTriggeredInitialScrollToIndex&&(null==s.props.contentOffset&&s.scrollToIndex({animated:!1,index:s.props.initialScrollIndex}),s._hasTriggeredInitialScrollToIndex=!0),s.props.onContentSizeChange&&s.props.onContentSizeChange(e,t),s._scrollMetrics.contentLength=s._selectLength({height:t,width:e}),s._scheduleCellsToRenderUpdate(),s._maybeCallOnEndReached()},s._convertParentScrollMetrics=function(e){var t=e.offset-s._offsetFromParentVirtualizedList,o=e.visibleLength,n=t-s._scrollMetrics.offset;return{visibleLength:o,contentLength:s._scrollMetrics.contentLength,offset:t,dOffset:n}},s._onScroll=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),s.props.onScroll&&s.props.onScroll(e);var t=e.timeStamp,o=s._selectLength(e.nativeEvent.layoutMeasurement),n=s._selectLength(e.nativeEvent.contentSize),l=s._selectOffset(e.nativeEvent.contentOffset),c=l-s._scrollMetrics.offset;if(s._isNestedWithSameOrientation()){if(0===s._scrollMetrics.contentLength)return;var h=s._convertParentScrollMetrics({visibleLength:o,offset:l});o=h.visibleLength,n=h.contentLength,l=h.offset,c=h.dOffset}var u=s._scrollMetrics.timestamp?Math.max(1,t-s._scrollMetrics.timestamp):1,p=c/u;u>500&&s._scrollMetrics.dt>500&&n>5*o&&!s._hasWarned.perf&&(R("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:u,prevDt:s._scrollMetrics.dt,contentLength:n}),s._hasWarned.perf=!0);var f=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;s._scrollMetrics={contentLength:n,dt:u,dOffset:c,offset:l,timestamp:t,velocity:p,visibleLength:o,zoomScale:f},s._updateViewableItems(s.props.data),s.props&&(s._maybeCallOnEndReached(),0!==p&&s._fillRateHelper.activate(),s._computeBlankness(),s._scheduleCellsToRenderUpdate())},s._onScrollBeginDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),s._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),s._hasInteracted=!0,s.props.onScrollBeginDrag&&s.props.onScrollBeginDrag(e)},s._onScrollEndDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(s._scrollMetrics.velocity=s._selectOffset(t)),s._computeBlankness(),s.props.onScrollEndDrag&&s.props.onScrollEndDrag(e)},s._onMomentumScrollBegin=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollBegin(e)}),s.props.onMomentumScrollBegin&&s.props.onMomentumScrollBegin(e)},s._onMomentumScrollEnd=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollEnd(e)}),s._scrollMetrics.velocity=0,s._computeBlankness(),s.props.onMomentumScrollEnd&&s.props.onMomentumScrollEnd(e)},s._updateCellsToRender=function(){var e=s.props,t=e.data,o=e.getItemCount,n=P(e.onEndReachedThreshold),l=s._isVirtualizationDisabled();s._updateViewableItems(t),t&&s.setState(function(e){var c,h=s._scrollMetrics,u=h.contentLength,f=h.offset,_=h.visibleLength,v=u-_-f;if(l){var y=v0&&u>0&&(!s.props.initialScrollIndex||s._scrollMetrics.offset||Math.abs(v)0)for(var L=c.first,C=c.last,b=L;b<=C;b++){var x=s._indicesToKeys.get(b),S=x&&s._cellKeysToChildListKeys.get(x);if(S){var I=!1;for(var M of S){var R=s._nestedChildLists.get(M);if(R&&R.ref&&R.ref.hasMore()){I=!0;break}}if(I){c.last=b;break}}}return null!=c&&c.first===e.first&&c.last===e.last&&(c=null),c})},s._createViewToken=function(e,t){var o=s.props,n=o.data,l=(0,o.getItem)(n,e);return{index:e,item:l,key:s._keyExtractor(l,e),isViewable:t}},s.__getFrameMetricsApprox=function(e){var t=s._getFrameMetrics(e);if(t&&t.index===e)return t;var o=s.props.getItemLayout;return T(!o,'Should not have to estimate frames when a measurement metrics function is provided'),{length:s._averageCellLength,offset:s._averageCellLength*e}},s._getFrameMetrics=function(e){var t=s.props,o=t.data,n=t.getItem,l=t.getItemCount,c=t.getItemLayout;T(l(o)>e,'Tried to get frame for out of range index '+e);var h=n(o,e),u=h&&s._frames[s._keyExtractor(h,e)];return u&&u.index===e||!c?u:c(o,e)},T(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),T(V(e.windowSize)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),s._fillRateHelper=new w(s._getFrameMetrics),s._updateCellsToRenderBatcher=new S(s._updateCellsToRender,null!=(t=s.props.updateCellsBatchingPeriod)?t:50),s.props.viewabilityConfigCallbackPairs)s._viewabilityTuples=s.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new k(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}});else{var l=s.props,u=l.onViewableItemsChanged,f=l.viewabilityConfig;u&&s._viewabilityTuples.push({viewabilityHelper:new k(f),onViewableItemsChanged:u})}var v={first:s.props.initialScrollIndex||0,last:Math.min(s.props.getItemCount(s.props.data),(s.props.initialScrollIndex||0)+K(s.props.initialNumToRender))-1};if(s._isNestedWithSameOrientation()){var y=s.context.getNestedChildState(s._getListKey());y&&(v=y,s.state=y,s._frames=y.frames)}return s.state=v,s}return(0,s.default)(h,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,o=this.props.getItemCount(this.props.data)-1,s=this.__getFrameMetricsApprox(o),n=Math.max(0,s.offset+s.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(z(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToIndex",value:function(e){var t=this.props,o=t.data,s=t.horizontal,n=t.getItemCount,l=t.getItemLayout,c=t.onScrollToIndexFailed,h=e.animated,u=e.index,p=e.viewOffset,f=e.viewPosition;if(T(u>=0,"scrollToIndex out of range: requested index "+u+" but minimum is 0"),T(n(o)>=1,"scrollToIndex out of range: item length "+n(o)+" but minimum is 1"),T(uthis._highestMeasuredFrameIndex)return T(!!c,"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 c({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:u});var _=this.__getFrameMetricsApprox(u),v=Math.max(0,_.offset-(f||0)*(this._scrollMetrics.visibleLength-_.length))-(p||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(s?{x:v,animated:h}:{y:v,animated:h}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var t=e.item,o=this.props,s=o.data,n=o.getItem,l=(0,o.getItemCount)(s),c=0;c0){E=!1,O='';var R=this._getSpacerKey(!p),w=this.props.initialScrollIndex?-1:K(this.props.initialNumToRender)-1,k=this.state,T=k.first,F=k.last;this._pushCells(L,b,C,0,w,y);var P=Math.max(w+1,T);if(!v&&T>w+1){var V=!1;if(C.size>0)for(var j=l?1:0,N=P-1;N>w;N--)if(C.has(N+j)){var B=this.__getFrameMetricsApprox(w),A=this.__getFrameMetricsApprox(N),H=A.offset-B.offset-(this.props.initialScrollIndex?0:B.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,H)},"$sticky_lead")),this._pushCells(L,b,C,N,N,y);var W=this.__getFrameMetricsApprox(T).offset-(A.offset+A.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,W)},"$sticky_trail")),V=!0;break}if(!V){var U=this.__getFrameMetricsApprox(w),$=this.__getFrameMetricsApprox(T).offset-(U.offset+U.length);L.push((0,_.jsx)(x,{style:(0,t.default)({},R,$)},"$lead_spacer"))}}if(this._pushCells(L,b,C,P,F,y),!this._hasWarned.keys&&E&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",O),this._hasWarned.keys=!0),!v&&Fp&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state,t=e.first,o=e.last,s=this._scrollMetrics,n=s.offset,l=s.visibleLength,c=s.velocity,h=this.props.getItemCount(this.props.data),u=!1,p=P(this.props.onEndReachedThreshold)*l/2;if(t>0){var f=n-this.__getFrameMetricsApprox(t).offset;u=u||f<0||c<-2&&f2&&_0&&(this._scrollAnimatedValueAttachment=p.default.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,o,t){var n=this.props.stickyHeaderIndices;if(n){var l=S.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,l)){var s=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,s);var c=n[n.indexOf(e)-1];if(null!=c){var u=this._stickyHeaderRefs.get(this._getKeyForIndex(c,l));u&&u.setNextHeaderY&&u.setNextHeaderY(s)}}}}},{key:"render",value:function(){var e=this,t=!0===this.props.horizontal?P:F,n=(0,o.default)(t,2),l=n[0],s=n[1],c=[!0===this.props.horizontal&&U.contentContainerHorizontal,this.props.contentContainerStyle],u=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},p=this.props.stickyHeaderIndices,f=this.props.children;if(null!=p&&p.length>0){var y=S.Children.toArray(this.props.children);f=y.map(function(o,t){var n=o?p.indexOf(t):-1;if(n>-1){var l=o.key,s=p[n+1],c=e.props.StickyHeaderComponent||_.default;return(0,B.jsx)(c,{nativeID:'StickyHeader-'+l,ref:function(o){return e._setStickyHeaderRef(l,o)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(s,y)),onLayout:function(o){return e._onStickyHeaderLayout(t,o,l)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:o},l)}return o})}f=(0,B.jsx)(K.default.Provider,{value:!0===this.props.horizontal?K.HORIZONTAL:K.VERTICAL,children:f});var v=Array.isArray(p)&&p.length>0,R=(0,B.jsx)(s,Object.assign({},u,{ref:this._setInnerViewRef,style:c,removeClippedSubviews:('android'!==h.default.OS||!v)&&this.props.removeClippedSubviews,collapsable:!1,children:f})),w=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,T=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,V=!0===this.props.horizontal?U.baseHorizontal:U.baseVertical,k=Object.assign({},this.props,{alwaysBounceHorizontal:w,alwaysBounceVertical:T,style:b.default.compose(V,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,scrollEventThrottle:v?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:h.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})}),M=this.props.decelerationRate;null!=M&&(k.decelerationRate=(0,E.default)(M));var I=this.props.refreshControl;if(I){if('ios'===h.default.OS)return(0,B.jsxs)(l,Object.assign({},k,{ref:this._setNativeRef,children:[I,R]}));if('android'===h.default.OS){var D=(0,O.default)((0,H.default)(k.style)),x=D.outer,A=D.inner;return S.cloneElement(I,{style:b.default.compose(V,x)},(0,B.jsx)(l,Object.assign({},k,{style:b.default.compose(V,A),ref:this._setNativeRef,children:R})))}}return(0,B.jsx)(l,Object.assign({},k,{ref:this._setNativeRef,children:R}))}}]),N})(S.Component);Y.Context=K.default;var U=b.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function Z(e,o){return(0,B.jsx)(Y,Object.assign({},e,{scrollViewRef:o}))}Z.displayName='ScrollView';var q=S.forwardRef(Z);q.Context=K.default,q.displayName='ScrollView',m.exports=q},252,[2,46,18,19,34,30,32,35,221,160,56,129,20,253,180,181,149,254,258,124,256,171,7,260,261,241,262,263,264,265,266,267,184]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),o=e(r(d[5])),u=e(r(d[6])),p=e(r(d[7])),h=e(r(d[8])),c=(e(r(d[9])),(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Y(t);if(n&&n.has(e))return n.get(e);var l={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=s?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(l,o,u):l[o]=e[o]}l.default=e,n&&n.set(e,l);return l})(r(d[10]))),f=e(r(d[11])),y=e(r(d[12])),v=e(r(d[13])),_=r(d[14]);function Y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Y=function(e){return e?n:t})(e)}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var R=u.default.createAnimatedComponent(y.default),T=(function(e){(0,l.default)(Y,e);var u,f,y=(u=Y,f=L(),function(){var e,t=(0,o.default)(u);if(f){var n=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function Y(){var e;(0,t.default)(this,Y);for(var n=arguments.length,l=new Array(n),s=0;s0){Y.push(T),L.push(0),Y.push(T+1),L.push(1);var H=(v||0)-f-o;H>T&&(Y.push(H,H+1),L.push(H-T,H-T))}}}else{Y.push(y),L.push(0);var x=(v||0)-f;x>=y?(Y.push(x,x+1),L.push(x-y,x-y)):(Y.push(y+1),L.push(1))}this.updateTranslateListener(this.props.scrollAnimatedValue.interpolate({inputRange:Y,outputRange:L}),n,this.props.hiddenOnScroll?new h.default(this.props.scrollAnimatedValue.interpolate({extrapolateLeft:'clamp',inputRange:[y,y+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-this.state.layoutHeight,0):null)}var I=c.Children.only(this.props.children),w=n&&null!=this.state.translateY?{style:{transform:[{translateY:this.state.translateY}]}}:null;return(0,_.jsx)(R,{collapsable:!1,nativeID:this.props.nativeID,onLayout:this._onLayout,ref:this._setComponentRef,style:[I.props.style,V.header,{transform:[{translateY:this._translateY}]}],passthroughAnimatedPropExplicitValues:w,children:c.cloneElement(I,{style:V.fill,onLayout:void 0})})}}]),Y})(c.Component),V=f.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});m.exports=T},253,[2,18,19,30,32,35,221,222,223,212,129,180,181,56,184]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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(){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})}return(0,u.default)(t,[{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'}})}}]),t})();m.exports=new y},254,[2,18,19,95,255,256,56,257]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=n(r(d[1])),u=n(r(d[2])),o=r(d[3]),l=u.default.isLayoutAnimationEnabled();function s(n,u,s){var c,p;if(!t.default.isTesting&&l){var y,f,b=!1,I=function(){b||(b=!0,clearTimeout(O),null==u||u())},O=setTimeout(I,(null!=(c=n.duration)?c:0)+17),E=null==(p=g)?void 0:p.nativeFabricUIManager;if(null!=E&&E.configureNextLayoutAnimation)null==(y=g)||null==(f=y.nativeFabricUIManager)||f.configureNextLayoutAnimation(n,I,null!=s?s:function(){});else null!=o&&o.configureNextLayoutAnimation&&o.configureNextLayoutAnimation(n,null!=I?I:function(){},null!=s?s:function(){})}}function c(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var p={easeInEaseOut:c(300,'easeInEaseOut','opacity'),linear:c(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},y={configureNext:s,create:c,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:p,easeInEaseOut:s.bind(null,p.easeInEaseOut),linear:s.bind(null,p.linear),spring:s.bind(null,p.spring),setEnabled:function(n){l=l}};m.exports=y},255,[2,56,202,149]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){t.blurTextInput(t.currentlyFocusedInput())}},256,[124]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('KeyboardObserver');e.default=n},257,[44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[2]),l={setGlobalOptions:function(l){if(void 0!==l.debug&&o(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var n={debug:!!l.debug,reportStackTraces:!!l.reportStackTraces};t.default.setGlobalOptions(n)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=l},258,[2,259,7]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('FrameRateLogger');e.default=n},259,[44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}},260,[2,56]); -__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':c[n]=s[n];break;default:t[n]=s[n]}return{outer:c,inner:t}}},261,[]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.VERTICAL=e.HORIZONTAL=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=n[c]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).createContext(null);e.default=n;var o=Object.freeze({horizontal:!0});e.HORIZONTAL=o;var f=Object.freeze({horizontal:!1});e.VERTICAL=f},262,[129]); -__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]));!(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=n(o);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u)})(r(d[2]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(n=function(t){return t?f:o})(t)}var f=(0,o.default)({supportedCommands:['flashScrollIndicators','scrollTo','scrollToEnd','zoomToRect']});e.default=f},263,[2,126,129]); -__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 t=(0,o(r(d[1])).default)('AndroidHorizontalScrollContentView');e.default=t},264,[2,189]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var l=t(n);if(l&&l.has(o))return l.get(o);var s={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if("default"!==u&&Object.prototype.hasOwnProperty.call(o,u)){var c=p?Object.getOwnPropertyDescriptor(o,u):null;c&&(c.get||c.set)?Object.defineProperty(s,u,c):s[u]=o[u]}s.default=o,l&&l.set(o,s);return s})(r(d[0]));function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(t=function(o){return o?l:n})(o)}var n={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,endFillColor:{process:r(d[1])},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,scrollEnabled:!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])},borderColor:{process:r(d[1])},borderBottomColor:{process:r(d[1])},borderTopLeftRadius:!0,borderTopColor:{process:r(d[1])},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:r(d[1])},pointerEvents:!0}};e.__INTERNAL_VIEW_CONFIG=n;var l=o.get('AndroidHorizontalScrollView',function(){return n});e.default=l},265,[133,140]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}var o={uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}};e.__INTERNAL_VIEW_CONFIG=o;var u=t.get('RCTScrollContentView',function(){return o});e.default=u},266,[133]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(o,t){if(!t&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var n=l(t);if(n&&n.has(o))return n.get(o);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if("default"!==u&&Object.prototype.hasOwnProperty.call(o,u)){var p=c?Object.getOwnPropertyDescriptor(o,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=o[u]}s.default=o,n&&n.set(o,s);return s})(r(d[1])),n=r(d[2]);function l(o){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(o){return o?n:t})(o)}var s='android'===o(r(d[3])).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[4])},decelerationRate:!0,disableIntervalMomentum:!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,borderStyle:!0,borderRightColor:{process:r(d[5])},borderColor:{process:r(d[5])},borderBottomColor:{process:r(d[5])},persistentScrollbar:!0,endFillColor:{process:r(d[5])},fadingEdgeLength:!0,overScrollMode:!0,borderTopLeftRadius:!0,scrollPerfTag:!0,borderTopColor:{process:r(d[5])},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:r(d[5])},pointerEvents:!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[6])},contentOffset:{diff:r(d[4])},contentInsetAdjustmentBehavior:!0,decelerationRate:!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[6])},scrollToOverflowEnabled:!0,scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,zoomScale:!0},(0,n.ConditionallyIgnoredEventHandlers)({onScrollBeginDrag:!0,onMomentumScrollEnd:!0,onScrollEndDrag:!0,onMomentumScrollBegin:!0,onScrollToTop:!0,onScroll:!0}))};e.__INTERNAL_VIEW_CONFIG=s;var c=t.get('RCTScrollView',function(){return s});e.default=c},267,[2,133,135,56,166,140,148]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]),s=(function(){function s(n,l){t(this,s),this._delay=l,this._callback=n}return n(s,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=l.runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),s})();m.exports=s},268,[18,19,217]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=t(function t(){n(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}),l=[],_=10,o=null,h=(function(){function h(t){n(this,h),this._anyBlankStartTime=null,this._enabled=!1,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(o||0)>Math.random(),this._resetData()}return t(h,[{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_count<_)this._resetData();else{var n=g.performance.now()-t,s=Object.assign({},this._info,{total_time_spent:n});l.forEach(function(t){return t(s)}),this._resetData()}}}},{key:"computeBlankness",value:function(t,n,s){if(!this._enabled||0===t.getItemCount(t.data)||null==this._samplesStartTime)return 0;var l=s.dOffset,_=s.offset,o=s.velocity,h=s.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(h),this._info.pixels_scrolled+=Math.round(Math.abs(l));var u=Math.round(1e3*Math.abs(o)),f=g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=f-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=f-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,k=n.first,y=this._getFrameMetrics(k);k<=n.last&&(!y||!y.inLayout);)y=this._getFrameMetrics(k),k++;y&&k>0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,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 s,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===o&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:function(){l=l.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){o=t}},{key:"setMinSampleCount",value:function(t){_=t}}]),h})();m.exports=h},269,[19,18]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=(function(){function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};n(this,l),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return s(l,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,l,h){var u=this._config,v=u.itemVisiblePercentThreshold,f=u.viewAreaCoveragePercentThreshold,_=null!=f,w=_?f:v;o(null!=w&&null!=v!=(null!=f),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===t)return b;var I=-1,y=h||{first:0,last:t-1},p=y.first,T=y.last;if(T>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:t})),[];for(var k=p;k<=T;k++){var V=l(k);if(V){var M=V.offset-n,C=M+V.length;if(M0)I=k,c(_,w,M,C,s,V.length)&&b.push(k);else if(I>=0)break}}return b}},{key:"onUpdate",value:function(t,n,s,o,l,c,h){var u=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&o(0)){var v=[];if(t&&(v=this.computeViewableItems(t,n,s,o,h)),this._viewableIndices.length!==v.length||!this._viewableIndices.every(function(t,n){return t===v[n]}))if(this._viewableIndices=v,this._config.minimumViewTime){var f=setTimeout(function(){u._timers.delete(f),u._onUpdateSync(v,c,l)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(v,c,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,s,o){var l=this;n=n.filter(function(t){return l._viewableIndices.includes(t)});var c=this._viewableItems,h=new Map(n.map(function(t){var n=o(t,!0);return[n.key,n]})),u=[];for(var v of h){var f=t(v,2),_=f[0],w=f[1];c.has(_)||u.push(w)}for(var b of c){var I=t(b,2),y=I[0],p=I[1];h.has(y)||u.push(Object.assign({},p,{isViewable:!1}))}u.length>0&&(this._viewableItems=h,s({viewableItems:Array.from(h.values()),changed:u,viewabilityConfig:this._config}))}}]),l})();function c(t,n,s,o,l,c){if(u(s,o,l))return!0;var v=h(s,o,l);return 100*(t?v/l:v/c)>=n}function h(t,n,s){var o=Math.min(n,s)-Math.max(t,0);return Math.max(0,o)}function u(t,n,s){return t>=0&&n<=s&&n>t}m.exports=l},270,[46,18,19,7]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},271,[129,272,236]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=w(n);if(o&&o.has(t))return o.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var l=c?Object.getOwnPropertyDescriptor(t,f):null;l&&(l.get||l.set)?Object.defineProperty(u,f,l):u[f]=t[f]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),c=t(r(d[4])),f=t(r(d[5])),l=t(r(d[6])),s=t(r(d[7])),h=t(r(d[8])),p=t(r(d[9])),y=t(r(d[10])),v=r(d[11]);function w(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(w=function(t){return t?o:n})(t)}function b(){return(b=(0,n.default)(function*(t){return yield p.default.queryCache(t)})).apply(this,arguments)}var I=u.forwardRef(function(t,n){var o,u,c=(0,h.default)(t.source)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(c))u=(0,s.default)([M.base,t.style])||{},o=c;else{var f=c.width,p=c.height,w=c.uri;u=(0,s.default)([{width:f,height:p},M.base,t.style])||{},o=[c],''===w&&console.warn('source.uri should not be an empty string')}var b=t.resizeMode||u.resizeMode||'cover',I=u.tintColor;if(null!=t.src&&console.warn('The component requires a `source` property rather than `src`.'),null!=t.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.');return(0,v.jsx)(l.default.Consumer,{children:function(c){return(0,v.jsx)(y.default,Object.assign({},t,{ref:n,style:u,resizeMode:b,tintColor:I,source:o,internal_analyticTag:c}))}})});null!=f.default.unstable_createImageComponent&&(I=f.default.unstable_createImageComponent(I)),I.displayName='Image',I.getSize=function(t,n,u){p.default.getSize(t).then(function(t){var u=(0,o.default)(t,2),c=u[0],f=u[1];return n(c,f)}).catch(u||function(){console.warn('Failed to get size for image '+t)})},I.getSizeWithHeaders=function(t,n,o,u){return p.default.getSizeWithHeaders(t,n).then(function(t){o(t.width,t.height)}).catch(u||function(){console.warn('Failed to get size for image: '+t)})},I.prefetch=function(t){return p.default.prefetchImage(t)},I.prefetchWithMetadata=function(t,n,o){return p.default.prefetchImageWithMetadata?p.default.prefetchImageWithMetadata(t,n,o||0):p.default.prefetchImage(t)},I.queryCache=function(t){return b.apply(this,arguments)},I.resolveAssetSource=h.default;var M=c.default.create({base:{overflow:'hidden'}});m.exports=I},272,[2,4,46,129,180,273,276,171,156,277,274,184]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f)})(r(d[1])),t(r(d[2])),t(r(d[3]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}e.default={unstable_createImageComponent:null}},273,[2,129,274,275]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(o,t){if(!t&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var n=s(t);if(n&&n.has(o))return n.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in o)if("default"!==p&&Object.prototype.hasOwnProperty.call(o,p)){var c=l?Object.getOwnPropertyDescriptor(o,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=o[p]}u.default=o,n&&n.set(o,u);return u})(r(d[1])),n=r(d[2]);function s(o){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(o){return o?n:t})(o)}var u='android'===o(r(d[3])).default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,internal_analyticTag:!0,resizeMode:!0,tintColor:{process:r(d[4])},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,resizeMethod:!0,src:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,defaultSrc:!0,overlayColor:{process:r(d[4])},borderColor:{process:r(d[4])},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])},defaultSource:{process:r(d[6])},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:r(d[4])}},(0,n.ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))};e.__INTERNAL_VIEW_CONFIG=u;var l=t.get('RCTImageView',function(){return u});e.default=l},274,[2,133,135,56,140,148,156]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;var t=(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=n(u);if(o&&o.has(t))return o.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=l?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(f,c,s):f[c]=t[c]}f.default=t,o&&o.set(t,f);return f})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:u})(t)}var u={uiViewClassName:'RCTTextInlineImage',bubblingEventTypes:{},directEventTypes:{},validAttributes:{resizeMode:!0,src:!0,tintColor:{process:r(d[1])},headers:!0}};e.__INTERNAL_VIEW_CONFIG=u;var o=t.get('RCTTextInlineImage',function(){return u});e.default=o},275,[133,140]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(null);e.default=n},276,[129]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ImageLoader');e.default=n},277,[44]); -__d(function(g,r,i,a,m,e,d){var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var l=c?Object.getOwnPropertyDescriptor(t,p):null;l&&(l.get||l.set)?Object.defineProperty(u,p,l):u[p]=t[p]}u.default=t,f&&f.set(t,u);return u})(r(d[0])),n=r(d[1]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var f=r(d[2]),u=r(d[3]),c=t.forwardRef(function(t,o){return(0,n.jsx)(f,Object.assign({scrollEventThrottle:1e-4},t,{ref:o}))});m.exports=u(c)},278,[129,184,252,236]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(n);if(o&&o.has(t))return o.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,o&&o.set(t,f);return f})(r(d[1])),o=t(r(d[2])),f=r(d[3]);function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:n})(t)}var c=r(d[4]),l=n.forwardRef(function(t,n){return(0,f.jsx)(o.default,Object.assign({scrollEventThrottle:1e-4},t,{ref:n}))});m.exports=c(l)},279,[2,129,280,184,236]); -__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])),n=e(r(d[2])),o=e(r(d[3])),f=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),s=e(r(d[7])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=f?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[8])),p=e(r(d[9])),v=r(d[10]),y=["stickySectionHeadersEnabled"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _=(function(e){(0,f.default)(L,e);var l,h,_=(l=L,h=R(),function(){var e,t=(0,c.default)(l);if(h){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function L(){var e;(0,n.default)(this,L);for(var t=arguments.length,o=new Array(t),f=0;f0&&this.props.stickySectionHeadersEnabled)i+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex).length;var o=Object.assign({},e,{viewOffset:i,index:t});this._listRef.scrollToIndex(o)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,i=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,I)),o=this.props.ListHeaderComponent?1:0,l=this.props.stickySectionHeadersEnabled?[]:void 0,s=0;for(var u of this.props.sections)null!=l&&l.push(s+o),s+=2,s+=this.props.getItemCount(u.data);var c=this._renderItem(s);return(0,S.jsx)(v.VirtualizedList,Object.assign({},i,{keyExtractor:this._keyExtractor,stickyHeaderIndices:l,renderItem:c,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return s},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var i=n-1,o=0;o=o(f)+1)t-=o(f)+1;else return-1===t?{section:c,key:h+':header',index:null,header:!0,trailingSection:s[u+1]}:t===o(f)?{section:c,key:h+':footer',index:null,header:!1,trailingSection:s[u+1]}:{section:c,key:h+':'+(c.keyExtractor||l||p.keyExtractor)(i(f,t),t),index:t,leadingItem:i(f,t-1),leadingSection:s[u-1],trailingItem:i(f,t+1),trailingSection:s[u+1]}}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var i=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,l=e===n-1,s=t.index===this.props.getItemCount(t.section.data)-1;return o&&s?o:!i||s||l?null:i}}]),x})(h.PureComponent);function b(e){var n=e.LeadingSeparatorComponent,i=e.SeparatorComponent,o=e.cellKey,l=e.prevCellKey,s=e.setSelfHighlightCallback,u=e.updateHighlightFor,c=e.setSelfUpdatePropsCallback,p=e.updatePropsFor,f=e.item,I=e.index,y=e.section,_=e.inverted,x=h.useState(!1),b=(0,t.default)(x,2),k=b[0],C=b[1],H=h.useState(!1),w=(0,t.default)(H,2),E=w[0],P=w[1],j=h.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),O=(0,t.default)(j,2),F=O[0],R=O[1],M=h.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),V=(0,t.default)(M,2),L=V[0],U=V[1];h.useEffect(function(){return s(o,P),c(o,U),function(){c(o,null),s(o,null)}},[o,s,U,c]);var B={highlight:function(){C(!0),P(!0),null!=l&&u(l,!0)},unhighlight:function(){C(!1),P(!1),null!=l&&u(l,!1)},updateProps:function(e,t){'leading'===e?null!=n?R(Object.assign({},F,t)):null!=l&&p(l,Object.assign({},F,t)):'trailing'===e&&null!=i&&U(Object.assign({},L,t))}},K=e.renderItem({item:f,index:I,section:y,separators:B}),T=null!=n&&(0,S.jsx)(n,Object.assign({highlighted:k},F)),W=null!=i&&(0,S.jsx)(i,Object.assign({highlighted:E},L));return T||W?(0,S.jsxs)(v.View,{children:[!1===_?T:W,K,!1===_?W:T]}):K}m.exports=x},281,[2,46,93,18,19,34,30,32,35,245,7,129,6,184]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},282,[129,193,236]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}var n=r(d[1]),o=r(d[2]);m.exports=o(n)},283,[129,181,236]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),c=e(r(d[5])),l=k(r(d[6])),f=k(r(d[7])),s=e(r(d[8])),p=e(r(d[9])),h=e(r(d[10])),v=r(d[11]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=u?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}return o.default=e,n&&n.set(e,o),o}function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var O=(function(e){(0,o.default)(k,e);var l,s,y=(l=k,s=I(),function(){var e,t=(0,c.default)(l);if(s){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function k(){var e;(0,t.default)(this,k);for(var n=arguments.length,o=new Array(n),u=0;u is only supported on iOS.'),null)}}]),j})(l.Component),b=s.default.create({container:{position:'absolute'}});m.exports=O},288,[2,18,19,30,32,35,129,56,180,289,184]); -__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=(0,t(r(d[1])).default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']});e.default=n},289,[2,189]); -__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])),s=e(r(d[5])),f=e(r(d[6])),l=e(r(d[7])),c=e(r(d[8])),y=e(r(d[9])),h=e(r(d[10])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=j(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var f=u?Object.getOwnPropertyDescriptor(e,s):null;f&&(f.get||f.set)?Object.defineProperty(o,s,f):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),b=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),O=r(d[15]),k=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function j(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(j=function(e){return e?n:t})(e)}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var w=(function(e){(0,s.default)(C,e);var j,w,R=(j=C,w=L(),function(){var e,t=(0,l.default)(j);if(w){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,f.default)(this,e)});function C(e){var t,u;return(0,o.default)(this,C),(t=R.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecessary()},t._onLayout=(u=(0,n.default)(function*(e){var n=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),n&&(yield t._updateBottomIfNecessary()),t.props.onLayout&&t.props.onLayout(e)}),function(e){return u.apply(this,arguments)}),t._updateBottomIfNecessary=(0,n.default)(function*(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,n=e.duration,o=e.easing,u=e.endCoordinates,s=yield t._relativeKeyboardHeight(u);t.state.bottom!==s&&(n&&o&&y.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:y.default.Types[o]||'keyboard'}}),t.setState({bottom:s}))}else t.setState({bottom:0})}),t.state={bottom:0},t.viewRef=p.createRef(),t}return(0,u.default)(C,[{key:"_relativeKeyboardHeight",value:(function(){var e=(0,n.default)(function*(e){var t,n=this._frame;if(!n||!e)return 0;if('ios'===h.default.OS&&0===e.screenY&&(yield _.default.prefersCrossFadeTransitions()))return 0;var o=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return Math.max(n.y+n.height-o,0)});return function(t){return e.apply(this,arguments)}})()},{key:"componentDidMount",value:function(){'ios'===h.default.OS?this._subscriptions=[c.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[c.default.addListener('keyboardDidHide',this._onKeyboardChange),c.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(e){e.remove()})}},{key:"render",value:function(){var e=this.props,n=e.behavior,o=e.children,u=e.contentContainerStyle,s=e.enabled,f=void 0===s||s,l=(e.keyboardVerticalOffset,e.style),c=(e.onLayout,(0,t.default)(e,k)),y=!0===f?this.state.bottom:0;switch(n){case'height':var h;return null!=this._frame&&this.state.bottom>0&&(h={height:this._initialFrameHeight-y,flex:0}),(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:b.default.compose(l,h),onLayout:this._onLayout},c,{children:o}));case'position':return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:l,onLayout:this._onLayout},c,{children:(0,O.jsx)(v.default,{style:b.default.compose(u,{bottom:y}),children:o})}));case'padding':return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,style:b.default.compose(l,{paddingBottom:y}),onLayout:this._onLayout},c,{children:o}));default:return(0,O.jsx)(v.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:l},c,{children:o}))}}}]),C})(p.Component);_e.default=w},290,[2,93,4,18,19,30,32,35,254,255,56,129,180,181,9,184]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),o=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=k(t);if(n&&n.has(e))return n.get(e);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=o?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=e[u]}l.default=e,n&&n.set(e,l);return l})(r(d[7])),s=e(r(d[8])),p=e(r(d[9])),h=e(r(d[10])),v=r(d[11]),y=["maskElement","children"];function k(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(k=function(e){return e?n:t})(e)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var w=(function(e){(0,o.default)(b,e);var k,w,O=(k=b,w=j(),function(){var e,t=(0,c.default)(k);if(w){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function b(){var e;(0,n.default)(this,b);for(var t=arguments.length,l=new Array(t),o=0;o=21&&(null!=f||null!=p||null!=v)){var n=(0,l.processColor)(f);(0,t.default)(null==n||'number'==typeof n,'Unexpected color given for Ripple color');var u={type:'RippleAndroid',color:n,borderless:!0===p,rippleRadius:v};return{viewProps:!0===P?{nativeForegroundAndroid:u}:{nativeBackgroundAndroid:u},onPressIn:function(n){var t,l,u=s.current;null!=u&&(o.Commands.hotspotUpdate(u,null!=(t=n.nativeEvent.locationX)?t:0,null!=(l=n.nativeEvent.locationY)?l:0),o.Commands.setPressed(u,!0))},onPressMove:function(n){var t,l,u=s.current;null!=u&&o.Commands.hotspotUpdate(u,null!=(t=n.nativeEvent.locationX)?t:0,null!=(l=n.nativeEvent.locationY)?l:0)},onPressOut:function(n){var t=s.current;null!=t&&o.Commands.setPressed(t,!1)}}}return null},[p,f,P,v,s])};var t=n(r(d[1])),o=r(d[2]),l=r(d[3]),u=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=s(t);if(o&&o.has(n))return o.get(n);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=u?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=n[c]}l.default=n,o&&o.set(n,l);return l})(r(d[4]));function s(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(s=function(n){return n?o:t})(n)}},302,[2,7,182,6,129]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=c(n);if(f&&f.has(t))return f.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var s=u?Object.getOwnPropertyDescriptor(t,p):null;s&&(s.get||s.set)?Object.defineProperty(o,p,s):o[p]=t[p]}o.default=t,f&&f.set(t,o);return o})(r(d[1])),f=t(r(d[2])),o=t(r(d[3])),u=r(d[4]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(c=function(t){return t?f:n})(t)}var p=f.default.create({progressView:{height:2}}),s=n.forwardRef(function(t,n){return(0,u.jsx)(o.default,Object.assign({},t,{style:[p.progressView,t.style],ref:n}))});m.exports=s},303,[2,129,180,304,184]); -__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)('RCTProgressView');e.default=u},304,[2,189]); -__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(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=u(n);if(f&&f.has(t))return f.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,f&&f.set(t,o)})(r(d[2])),t(r(d[3])));function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(u=function(t){return t?f:n})(t)}var o='android'===n.default.OS?f.default:r(d[4]).default;e.default=o},305,[2,56,129,181,306]); -__d(function(g,r,i,a,m,e,d){var f=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,f(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=t},306,[2,189]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=v(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var f=o?Object.getOwnPropertyDescriptor(t,s):null;f&&(f.get||f.set)?Object.defineProperty(u,s,f):u[s]=t[s]}u.default=t,l&&l.set(t,u);return u})(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=r(d[6]),c=["value","minimumValue","maximumValue","step","onValueChange","onSlidingComplete"];function v(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(v=function(t){return t?l:n})(t)}var p,b=l.forwardRef(function(t,l){var v,b=s.default.compose(p.slider,t.style),y=t.value,O=void 0===y?.5:y,S=t.minimumValue,j=void 0===S?0:S,V=t.maximumValue,h=void 0===V?1:V,w=t.step,C=void 0===w?0:w,x=t.onValueChange,P=t.onSlidingComplete,E=(0,n.default)(t,c),M=x?function(t){var n=!0;'android'===u.default.OS&&(n=null!=t.nativeEvent.fromUser&&t.nativeEvent.fromUser),n&&x(t.nativeEvent.value)}:null,R=P?function(t){P(t.nativeEvent.value)}:null,_=!0===t.disabled||!0===(null==(v=t.accessibilityState)?void 0:v.disabled),k=_?Object.assign({},t.accessibilityState,{disabled:!0}):t.accessibilityState;return(0,f.jsx)(o.default,Object.assign({},E,{accessibilityState:k,enabled:!_,disabled:_,maximumValue:h,minimumValue:j,onResponderTerminationRequest:function(){return!1},onSlidingComplete:R,onStartShouldSetResponder:function(){return!0},onValueChange:M,ref:l,step:C,style:b,value:O}))});p='ios'===u.default.OS?s.default.create({slider:{height:40}}):s.default.create({slider:{}}),m.exports=b},307,[2,93,129,56,308,180,184]); -__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=(0,l(r(d[1])).default)('Slider',{interfaceOnly:!0,paperComponentName:'RCTSlider'});e.default=t},308,[2,189]); -__d(function(g,r,i,a,m,_e,d){var t,e=r(d[0]),n=e(r(d[1])),l=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),c=e(r(d[5])),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=o?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=t[u]}l.default=t,n&&n.set(t,l);return l})(r(d[6])),f=e(r(d[7])),p=e(r(d[8])),y=e(r(d[9])),v=e(r(d[10])),k=e(r(d[11]));function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _(t){var e,n,l=null!=(e=t.animated)&&e,o=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:o}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var h=(function(t){(0,o.default)(h,t);var e,s,S=(e=h,s=b(),function(){var t,n=(0,c.default)(e);if(s){var l=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function h(){var t;(0,n.default)(this,h);for(var e=arguments.length,l=new Array(e),o=0;o1&&(Oe=(0,b.jsx)(s.default,{children:Oe})),ce=(0,b.jsx)(T,Object.assign({ref:te},n,ge,{accessible:se,autoCapitalize:me,blurOnSubmit:ie,caretHidden:ve,children:Oe,disableFullscreenUI:n.disableFullscreenUI,focusable:de,mostRecentEventCount:V,onBlur:oe,onChange:ue,onFocus:re,onScroll:ae,onSelectionChange:le,placeholder:xe,selection:z,style:he,text:Y,textBreakStrategy:n.textBreakStrategy}))}return(0,b.jsx)(f.default.Provider,{value:!0,children:ce})}var A=l.forwardRef(function(n,u){var l=n.allowFontScaling,o=void 0===l||l,c=n.rejectResponderTermination,s=void 0===c||c,f=n.underlineColorAndroid,v=void 0===f?'transparent':f,p=(0,t.default)(n,x);return(0,b.jsx)(k,Object.assign({allowFontScaling:o,rejectResponderTermination:s,underlineColorAndroid:v},p,{forwardedRef:u}))});A.State={currentlyFocusedInput:v.default.currentlyFocusedInput,currentlyFocusedField:v.default.currentlyFocusedField,focusTextInput:v.default.focusTextInput,blurTextInput:v.default.blurTextInput};var M=c.default.create({multilineInput:{paddingTop:5}});m.exports=A},316,[2,93,46,129,56,180,193,183,124,7,317,241,196,184,125,168,318]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})},317,[]); -__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=e.Commands=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=l?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=t[s]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var l=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=l;var s=Object.assign({uiViewClassName:'RCTMultilineTextInputView'},u.default,{validAttributes:Object.assign({},u.default.validAttributes,{dataDetectorTypes:!0})});e.__INTERNAL_VIEW_CONFIG=s;var c=o.get('RCTMultilineTextInputView',function(){return s});e.default=c},318,[2,126,169,133]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]),e=t(r(d[1])),o=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(e);if(o&&o.has(t))return o.get(t);var s={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var l=E?Object.getOwnPropertyDescriptor(t,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=t[n]}s.default=t,o&&o.set(t,s)})(r(d[2])),t(r(d[3]))),s=t(r(d[4])),E=t(r(d[5])),n=t(r(d[6])),l=t(r(d[7]));r(d[8]),r(d[9]);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:e})(t)}var h=function(t){var e=t.touches,o=t.changedTouches,s=e&&e.length>0,E=o&&o.length>0;return!s&&E?o[0]:s?e[0]:t},R='NOT_RESPONDER',_='RESPONDER_INACTIVE_PRESS_IN',c='RESPONDER_INACTIVE_PRESS_OUT',S='RESPONDER_ACTIVE_PRESS_IN',T='RESPONDER_ACTIVE_PRESS_OUT',P='RESPONDER_ACTIVE_LONG_PRESS_IN',D='RESPONDER_ACTIVE_LONG_PRESS_OUT',N='ERROR',O={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},p=Object.assign({},O,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),b=Object.assign({},O,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),A=Object.assign({},O,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),f='DELAY',I='RESPONDER_GRANT',L='RESPONDER_RELEASE',v='RESPONDER_TERMINATED',y='ENTER_PRESS_RECT',C='LEAVE_PRESS_RECT',G='LONG_PRESS_DETECTED',V={NOT_RESPONDER:{DELAY:N,RESPONDER_GRANT:_,RESPONDER_RELEASE:N,RESPONDER_TERMINATED:N,ENTER_PRESS_RECT:N,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_IN:{DELAY:S,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:N},error:{DELAY:R,RESPONDER_GRANT:_,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:R}},H={componentDidMount:function(){s.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=R,this.state.touchable.responderID=e,this._receiveSignal(I,t);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),o):this._handleDelay(t);var s=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;s=isNaN(s)?370:s,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),s+o)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(L,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(v,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,s=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},E=s.left,n=s.top,l=s.right,u=s.bottom,R=this.touchableGetHitSlop?this.touchableGetHitSlop():null;R&&(E+=R.left||0,n+=R.top||0,l+=R.right||0,u+=R.bottom||0);var c=h(t.nativeEvent),S=c&&c.pageX,T=c&&c.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(S,T,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(S>e.left-E&&T>e.top-n&&S>`");s!==E&&(this._performSideEffectsForTransition(s,E,t,e),this.state.touchable.touchState=E)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===S||t===P},_savePressInLocation:function(t){var e=h(t.nativeEvent),o=e&&e.pageX,s=e&&e.pageY,E=e&&e.locationX,n=e&&e.locationY;this.pressInLocation={pageX:o,pageY:s,locationX:E,locationY:n}},_getDistanceBetweenPoints:function(t,e,o,s){var E=t-o,n=e-s;return Math.sqrt(E*E+n*n)},_performSideEffectsForTransition:function(t,e,o,E){var n=this._isHighlight(t),u=this._isHighlight(e);(o===v||o===L)&&this._cancelLongPressDelayTimeout();var h=t===R&&e===_,c=!p[t]&&p[e];if((h||c)&&this._remeasureMetricsOnActivation(),b[t]&&o===G&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),u&&!n?this._startHighlight(E):!u&&n&&this._endHighlight(E),b[t]&&o===L){var S=!!this.props.onLongPress,T=A[t]&&(!S||!this.touchableLongPressCancelsPress());(!A[t]||T)&&this.touchableHandlePress&&(u||n||(this._startHighlight(E),this._endHighlight(E)),'android'!==s.default.OS||this.props.touchSoundDisabled||l.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:{}},M=(H.touchableHandleFocus,H.touchableHandleBlur,(0,e.default)(H,["touchableHandleFocus","touchableHandleBlur"]));H.withoutDefaultFocusAndBlur=M;var w={Mixin:H,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=w},319,[2,93,129,320,56,322,149,199,194,184]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n},320,[2,321]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},o=function(n){(0,t.default)(n instanceof this,'Trying to release an instance into a pool of a different type.'),n.destructor(),this.instancePool.lengthi&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.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};m.exports=n},361,[]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]),n=o(r(d[1])),s=o(r(d[2])),E=o(r(d[3])),A=(o(r(d[4])),o(r(d[5])),o(r(d[6])),r(d[7]),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',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_NOTIFICATION:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),O=new((function(){function o(){(0,s.default)(this,o),this.PERMISSIONS=_,this.RESULTS=A}return(0,E.default)(o,[{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:(function(){var o=(0,n.default)(function*(o,n){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)});return function(n,s){return o.apply(this,arguments)}})()},{key:"request",value:(function(){var o=(0,n.default)(function*(o,n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(this.RESULTS.DENIED)});return function(n,s){return o.apply(this,arguments)}})()},{key:"requestMultiple",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]),o})());m.exports=O},362,[2,4,18,19,107,363,7,56]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PermissionsAndroid');e.default=n},363,[44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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'!==f.default.OS?null:u.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,c.default)(u.default,'PushNotificationManager is not available.'),u.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,c.default)(u.default,'PushNotificationManager is not available.'),u.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,c.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,o){(0,c.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=v.get(t);n&&(n.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,c.default)(u.default,'PushNotificationManager is not available.'),u.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,c.default)('function'==typeof t,'Must provide a valid callback'),(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getInitialNotification().then(function(o){return o&&new t(o)})}},{key:"getAuthorizationStatus",value:function(t){(0,c.default)(u.default,'PushNotificationManager is not available.'),u.default.getAuthorizationStatus(t)}}]),t})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=h},364,[2,18,19,95,365,7,56]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PushNotificationManager');e.default=n},365,[44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),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 u('object'==typeof t&&null!==t,'Content to share must be a valid object'),u('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),u('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise(function(n,l){var f=c(o.tintColor);u(null==f||'number'==typeof f,'Unexpected color given for options.tintColor'),u(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 f?f:void 0,excludedActivityTypes:o.excludedActivityTypes},function(t){return l(t)},function(t,o){n(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})})})}}]),t})();l.sharedAction='sharedAction',l.dismissedAction='dismissedAction',m.exports=l},368,[2,18,19,326,369,56,7,140]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ShareModule');e.default=n},369,[44]); -__d(function(g,r,i,a,m,e,d){'use strict';var o={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,p){console.warn('ToastAndroid is not supported on this platform.')}};m.exports=o},370,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.useSyncExternalStore)(function(t){var n=u.default.addChangeListener(t);return function(){return n.remove()}},function(){return u.default.getColorScheme()})};var n=r(d[1]),u=t(r(d[2]))},371,[2,372,327]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},372,[373]); -__d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r(function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})},[t,c,n]),u(function(){return a(f)&&S({inst:f}),t(function(){a(f)&&S({inst:f})})},[t]),s(c),c}},373,[129]); -__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])},374,[2,46,160,129]); -__d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({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",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},375,[52]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(r(d[2]),!1),o=0,u=400;function f(f){var v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||(n=!0,0===f[0]&&(t.default.vibrate(u),f=f.slice(1)),0!==f.length?setTimeout(function(){return l(++o,f,v,1)},f[0]):n=!1)}function l(f,v,c,b){if(n&&f===o){if(t.default.vibrate(u),b>=v.length){if(!c)return void(n=!1);b=0}setTimeout(function(){return l(f,v,c,b+1)},v[b])}}var v={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n)if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');f(o,l)}},cancel:function(){n=!1}};m.exports=v},376,[2,377,56]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Vibration');e.default=n},377,[44]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),u=r(d[3]),c=r(d[4]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var f,l=r(d[5]);r(d[6]);f=(function(f){e(p,f);var l,s,y=(l=p,s=o(),function(){var t,n=c(l);if(s){var e=c(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return u(this,t)});function p(){return t(this,p),y.apply(this,arguments)}return n(p,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),p})(l.Component),m.exports=f},378,[18,19,30,32,35,129,359]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;var t=r(d[0]);e.DynamicColorIOS=function(o){return(0,t.DynamicColorIOSPrivate)({light:o.light,dark:o.dark,highContrastLight:o.highContrastLight,highContrastDark:o.highContrastDark})}},379,[143]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PrimerError=void 0;var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5]));function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var l=(function(t){(0,o.default)(p,t);var l,s,v=(l=p,s=f(),function(){var t,e=(0,c.default)(l);if(s){var n=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function p(t,e,o){var u;return(0,n.default)(this,p),(u=v.call(this,e)).errorId=t,u.description=e,u.recoverySuggestion=o,u}return(0,e.default)(p)})((0,t(r(d[6])).default)(Error));_e.PrimerError=l},380,[2,19,18,30,32,35,36]); -__d(function(g,r,i,a,m,e,d){},381,[]); -__d(function(g,r,i,a,m,e,d){var E;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerInputElementType=void 0,e.PrimerInputElementType=E,(function(E){E.CARD_NUMBER="CARD_NUMBER",E.EXPIRY_DATE="EXPIRY_DATE",E.CVV="CVV",E.CARDHOLDER_NAME="CARDHOLDER_NAME",E.OTP="OTP",E.POSTAL_CODE="POSTAL_CODE",E.PHONE_NUMBER="PHONE_NUMBER",E.RETAILER="RETAILER",E.UNKNOWN="UNKNOWN"})(E||(e.PrimerInputElementType=E={}))},382,[]); -__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerSessionIntent=void 0,e.PrimerSessionIntent=n,(function(n){n.CHECKOUT="CHECKOUT",n.VAULT="VAULT"})(n||(e.PrimerSessionIntent=n={}))},383,[]); -__d(function(g,r,i,a,m,e,d){},384,[]); -__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PrimerTokenType=void 0,e.PrimerTokenType=n,(function(n){n.SINGLE_USE="SINGLE_USE",n.MULTI_USE="MULTI_USE"})(n||(e.PrimerTokenType=n={}))},385,[]); -__d(function(g,r,i,a,m,e,d){},386,[]); -__d(function(g,r,i,a,m,e,d){},387,[]); -__d(function(g,r,i,a,m,e,d){},388,[]); -__d(function(g,r,i,a,m,e,d){},389,[]); -__d(function(g,r,i,a,m,e,d){var n;!(function(n){n.FAILED="payment-failed",n.CANCELLED_BY_CUSTOMER="cancelled-by-customer"})(n||(n={}))},390,[]); -__d(function(g,r,i,a,m,e,d){},391,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.primerSettings=e.PrimerHeadlessUniversalCheckout=void 0;var o=n(r(d[1])),l=n(r(d[2])),t=n(r(d[3])),s=n(r(d[4])),u=r(d[5]),c={continueWithNewClientToken:(function(){var n=(0,t.default)(function*(n){try{s.default.handleTokenizationNewClientToken(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),complete:function(){s.default.handleCompleteFlow()}},h={continueWithNewClientToken:(function(){var n=(0,t.default)(function*(n){try{s.default.handleResumeWithNewClientToken(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),complete:function(){s.default.handleCompleteFlow()}},C={abortPaymentCreation:(function(){var n=(0,t.default)(function*(n){try{s.default.handlePaymentCreationAbort(n)}catch(n){console.error(n)}});return function(o){return n.apply(this,arguments)}})(),continuePaymentCreation:(function(){var n=(0,t.default)(function*(){try{s.default.handlePaymentCreationContinue()}catch(n){console.error(n)}});return function(){return n.apply(this,arguments)}})()},k=void 0;function v(){return f.apply(this,arguments)}function f(){return(f=(0,t.default)(function*(){return new Promise((n=(0,t.default)(function*(n,o){try{var l,t,v,f,p,U,y,b,P,S,T,M,L,w,A,z,B,I,E,R,N,W,H,_,D,F;s.default.removeAllListeners();var j={onAvailablePaymentMethodsLoad:void 0!==(null==(l=k)?void 0:null==(t=l.headlessUniversalCheckoutCallbacks)?void 0:t.onAvailablePaymentMethodsLoad)||!1,onTokenizationStart:void 0!==(null==(v=k)?void 0:null==(f=v.headlessUniversalCheckoutCallbacks)?void 0:f.onTokenizationStart)||!1,onTokenizationSuccess:void 0!==(null==(p=k)?void 0:null==(U=p.headlessUniversalCheckoutCallbacks)?void 0:U.onTokenizationSuccess)||!1,onCheckoutResume:void 0!==(null==(y=k)?void 0:null==(b=y.headlessUniversalCheckoutCallbacks)?void 0:b.onCheckoutResume)||!1,onCheckoutPending:void 0!==(null==(P=k)?void 0:null==(S=P.headlessUniversalCheckoutCallbacks)?void 0:S.onCheckoutPending)||!1,onCheckoutAdditionalInfo:void 0!==(null==(T=k)?void 0:null==(M=T.headlessUniversalCheckoutCallbacks)?void 0:M.onCheckoutAdditionalInfo)||!1,onError:void 0!==(null==(L=k)?void 0:null==(w=L.headlessUniversalCheckoutCallbacks)?void 0:w.onError)||!1,onCheckoutComplete:void 0!==(null==(A=k)?void 0:null==(z=A.headlessUniversalCheckoutCallbacks)?void 0:z.onCheckoutComplete)||!1,onBeforeClientSessionUpdate:void 0!==(null==(B=k)?void 0:null==(I=B.headlessUniversalCheckoutCallbacks)?void 0:I.onBeforeClientSessionUpdate)||!1,onClientSessionUpdate:void 0!==(null==(E=k)?void 0:null==(R=E.headlessUniversalCheckoutCallbacks)?void 0:R.onClientSessionUpdate)||!1,onBeforePaymentCreate:void 0!==(null==(N=k)?void 0:null==(W=N.headlessUniversalCheckoutCallbacks)?void 0:W.onBeforePaymentCreate)||!1,onPreparationStart:void 0!==(null==(H=k)?void 0:null==(_=H.headlessUniversalCheckoutCallbacks)?void 0:_.onPreparationStart)||!1,onPaymentMethodShow:void 0!==(null==(D=k)?void 0:null==(F=D.headlessUniversalCheckoutCallbacks)?void 0:F.onPaymentMethodShow)||!1,onDismiss:!1};yield s.default.setImplementedRNCallbacks(j),j.onAvailablePaymentMethodsLoad&&s.default.addListener('onAvailablePaymentMethodsLoad',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onAvailablePaymentMethodsLoad){var t=n.availablePaymentMethods||[];k.headlessUniversalCheckoutCallbacks.onAvailablePaymentMethodsLoad(t)}}),j.onPreparationStart&&s.default.addListener('onPreparationStart',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onPreparationStart&&k.headlessUniversalCheckoutCallbacks.onPreparationStart(n.paymentMethodType)}),j.onBeforeClientSessionUpdate&&s.default.addListener('onBeforeClientSessionUpdate',function(){var n,o;null!=(n=k)&&null!=(o=n.headlessUniversalCheckoutCallbacks)&&o.onBeforeClientSessionUpdate&&k.headlessUniversalCheckoutCallbacks.onBeforeClientSessionUpdate()}),j.onClientSessionUpdate&&s.default.addListener('onClientSessionUpdate',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onClientSessionUpdate){var t=n.clientSession;k.headlessUniversalCheckoutCallbacks.onClientSessionUpdate(t)}}),j.onBeforePaymentCreate&&s.default.addListener('onBeforePaymentCreate',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onBeforePaymentCreate){var t=n;k.headlessUniversalCheckoutCallbacks.onBeforePaymentCreate(t,C)}}),j.onTokenizationStart&&s.default.addListener('onTokenizationStart',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onTokenizationStart&&k.headlessUniversalCheckoutCallbacks.onTokenizationStart(n.paymentMethodType)}),j.onPaymentMethodShow&&s.default.addListener('onPaymentMethodShow',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onPaymentMethodShow&&k.headlessUniversalCheckoutCallbacks.onPaymentMethodShow(n.paymentMethodType)}),j.onTokenizationSuccess&&s.default.addListener('onTokenizationSuccess',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onTokenizationSuccess){var t=n.paymentMethodTokenData;k.headlessUniversalCheckoutCallbacks.onTokenizationSuccess(t,c)}}),j.onCheckoutResume&&s.default.addListener('onCheckoutResume',function(n){var o,l;null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutResume&&k.headlessUniversalCheckoutCallbacks.onCheckoutResume(n.resumeToken,h)}),j.onCheckoutPending&&s.default.addListener('onCheckoutPending',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutPending){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutPending(t)}}),j.onCheckoutAdditionalInfo&&s.default.addListener('onCheckoutAdditionalInfo',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutAdditionalInfo){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutAdditionalInfo(t)}}),j.onCheckoutComplete&&s.default.addListener('onCheckoutComplete',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onCheckoutComplete){var t=n;k.headlessUniversalCheckoutCallbacks.onCheckoutComplete(t)}}),j.onError&&s.default.addListener('onError',function(n){var o,l;if(null!=(o=k)&&null!=(l=o.headlessUniversalCheckoutCallbacks)&&l.onError&&n&&n.error&&n.error.errorId&&k){var t=n.error.errorId,s=n.error.description,c=n.error.recoverySuggestion,h=new u.PrimerError(t,s||'Unknown error',c),C=n.checkoutData;k.headlessUniversalCheckoutCallbacks.onError(h,C)}}),n()}catch(n){o(n)}}),function(o,l){return n.apply(this,arguments)}));var n})).apply(this,arguments)}e.primerSettings=k;var p=new((function(){function n(){(0,o.default)(this,n)}return(0,l.default)(n,[{key:"startWithClientToken",value:function(n,o){return e.primerSettings=k=o,new Promise((l=(0,t.default)(function*(l,t){try{yield v();var c,h=yield s.default.startWithClientToken(n,o);if(h.availablePaymentMethods)l(h.availablePaymentMethods);else t(new u.PrimerError("primer-rn-sdk","Failed to find availablePaymentMethods","Create another client session"))}catch(c){t(c)}}),function(n,o){return l.apply(this,arguments)}));var l}},{key:"disposePrimerHeadlessUniversalCheckout",value:function(){return s.default.disposePrimerHeadlessUniversalCheckout()}}]),n})());e.PrimerHeadlessUniversalCheckout=p},392,[2,18,19,4,393,380]); -__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])),o=r(d[2]),l=o.NativeModules.PrimerHeadlessUniversalCheckout,u=new o.NativeEventEmitter(l),s=['onAvailablePaymentMethodsLoad','onTokenizationStart','onTokenizationSuccess','onCheckoutResume','onCheckoutPending','onCheckoutAdditionalInfo','onError','onCheckoutComplete','onBeforeClientSessionUpdate','onClientSessionUpdate','onBeforePaymentCreate','onPreparationStart','onPaymentMethodShow'],c={addListener:function(n,t){u.addListener(n,t)},removeListener:function(n,t){u.removeListener(n,t)},removeAllListenersForEvent:function(n){u.removeAllListeners(n)},removeAllListeners:function(){s.forEach(function(n){return c.removeAllListenersForEvent(n)})},startWithClientToken:function(n,t){return l.startWithClientToken(n,JSON.stringify(t))},handleTokenizationNewClientToken:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handleTokenizationNewClientToken(n),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handleResumeWithNewClientToken:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handleResumeWithNewClientToken(n),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handleCompleteFlow:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.handleCompleteFlow(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n},handlePaymentCreationAbort:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.handlePaymentCreationAbort(n||""),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},handlePaymentCreationContinue:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.handlePaymentCreationContinue(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n},setImplementedRNCallbacks:function(n){return new Promise((o=(0,t.default)(function*(t,o){try{yield l.setImplementedRNCallbacks(JSON.stringify(n)),t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}));var o},disposePrimerHeadlessUniversalCheckout:function(){return new Promise((n=(0,t.default)(function*(n,t){try{yield l.disposePrimerHeadlessUniversalCheckout(),n()}catch(n){t(n)}}),function(t,o){return n.apply(this,arguments)}));var n}},f=c;e.default=f},393,[2,4,6]); -__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])),o=t(r(d[3])),s=r(d[4]).NativeModules.RNTPrimerHeadlessUniversalCheckoutAssetsManager,c=(function(){function t(){(0,u.default)(this,t)}return(0,o.default)(t,[{key:"getCardNetworkImageURL",value:(function(){var t=(0,n.default)(function*(t){return new Promise((u=(0,n.default)(function*(n,u){try{n((yield s.getCardNetworkImage(t)).cardNetworkImageURL)}catch(t){console.error(t),u(t)}}),function(t,n){return u.apply(this,arguments)}));var u});return function(n){return t.apply(this,arguments)}})()},{key:"getPaymentMethodAsset",value:(function(){var t=(0,n.default)(function*(t){return new Promise((u=(0,n.default)(function*(n,u){try{n((yield s.getPaymentMethodAsset(t)).paymentMethodAsset)}catch(t){console.error(t),u(t)}}),function(t,n){return u.apply(this,arguments)}));var u});return function(n){return t.apply(this,arguments)}})()},{key:"getPaymentMethodAssets",value:(function(){var t=(0,n.default)(function*(){return new Promise((t=(0,n.default)(function*(t,n){try{t((yield s.getPaymentMethodAssets()).paymentMethodAssets)}catch(t){console.error(t),n(t)}}),function(n,u){return t.apply(this,arguments)}));var t});return function(){return t.apply(this,arguments)}})()}]),t})();e.default=c},394,[2,4,18,19,6]); -__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])),o=t(r(d[3])),f=r(d[4]).NativeModules.RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager,l=(function(){function t(){(0,u.default)(this,t)}return(0,o.default)(t,[{key:"configure",value:(function(){var t=(0,n.default)(function*(t){try{yield f.configure(t)}catch(t){throw console.error(t),t}});return function(n){return t.apply(this,arguments)}})()},{key:"showPaymentMethod",value:(function(){var t=(0,n.default)(function*(t){return f.showPaymentMethod(t)});return function(n){return t.apply(this,arguments)}})()}]),t})();e.default=l},395,[2,4,18,19,6]); -__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])),o=n(r(d[2])),u=n(r(d[3])),l=r(d[4]),s=r(d[5]),c=l.NativeModules.RNTPrimerHeadlessUniversalCheckoutRawDataManager,f=new l.NativeEventEmitter(c),p=(function(){function n(){(0,o.default)(this,n)}return(0,u.default)(n,[{key:"configure",value:(function(){var n=(0,t.default)(function*(n){var o,u=this;return new Promise((o=(0,t.default)(function*(t,o){try{u.options=n,yield u.configureListeners();var l=yield c.configure(n.paymentMethodType);l?t(l):t()}catch(n){o(n)}}),function(n,t){return o.apply(this,arguments)}))});return function(t){return n.apply(this,arguments)}})()},{key:"configureListeners",value:(function(){var n=(0,t.default)(function*(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;null!=(u=o.options)&&u.onMetadataChange&&o.addListener("onMetadataChange",function(n){var t;null!=(t=o.options)&&t.onMetadataChange&&o.options.onMetadataChange(n)}),null!=(l=o.options)&&l.onValidation&&o.addListener("onValidation",function(n){var t;null!=(t=o.options)&&t.onValidation&&o.options.onValidation(n.isValid,n.errors)}),n()}),function(t,o){return n.apply(this,arguments)}))});return function(){return n.apply(this,arguments)}})()},{key:"getRequiredInputElementTypes",value:(function(){var n=(0,t.default)(function*(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{n((yield c.listRequiredInputElementTypes()).inputElementTypes)}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))});return function(){return n.apply(this,arguments)}})()},{key:"setRawData",value:function(n){var o,u=this;return new Promise((o=(0,t.default)(function*(t,o){var l,f;if(null!=(l=u.options)&&l.paymentMethodType)try{yield c.setRawData(JSON.stringify(n)),t()}catch(f){o(f)}else o(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(n,t){return o.apply(this,arguments)}))}},{key:"submit",value:function(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{yield c.submit(),n()}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))}},{key:"dispose",value:function(){var n,o=this;return new Promise((n=(0,t.default)(function*(n,t){var u,l;if(null!=(u=o.options)&&u.paymentMethodType)try{yield c.dispose(),n()}catch(l){t(l)}else t(new s.PrimerError("manager-not-configured","HeadlessUniversalCheckoutRawDataManager has not been configured","Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."))}),function(t,o){return n.apply(this,arguments)}))}},{key:"addListener",value:(function(){var n=(0,t.default)(function*(n,t){return f.addListener(n,t)});return function(t,o){return n.apply(this,arguments)}})()},{key:"removeListener",value:function(n,t){return f.removeListener(n,t)}}]),n})();e.default=p},396,[2,4,18,19,6,380]); -__r(23); +var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=true,process=this.process||{},__METRO_GLOBAL_PREFIX__='',__requireCycleIgnorePatterns=[/(^|\/|\\)node_modules($|\/|\\)/];process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"development"; +(function (global) { + "use strict"; + + global.__r = metroRequire; + global[__METRO_GLOBAL_PREFIX__ + "__d"] = define; + global.__c = clear; + global.__registerSegment = registerSegment; + var modules = clear(); + + var EMPTY = {}; + var CYCLE_DETECTED = {}; + var _ref = {}, + hasOwnProperty = _ref.hasOwnProperty; + if (__DEV__) { + global.$RefreshReg$ = function () {}; + global.$RefreshSig$ = function () { + return function (type) { + return type; + }; + }; + } + function clear() { + modules = Object.create(null); + + return modules; + } + if (__DEV__) { + var verboseNamesToModuleIds = Object.create(null); + var initializingModuleIds = []; + } + function define(factory, moduleId, dependencyMap) { + if (modules[moduleId] != null) { + if (__DEV__) { + var inverseDependencies = arguments[4]; + + if (inverseDependencies) { + global.__accept(moduleId, factory, dependencyMap, inverseDependencies); + } + } + + return; + } + var mod = { + dependencyMap: dependencyMap, + factory: factory, + hasError: false, + importedAll: EMPTY, + importedDefault: EMPTY, + isInitialized: false, + publicModule: { + exports: {} + } + }; + modules[moduleId] = mod; + if (__DEV__) { + mod.hot = createHotReloadingObject(); + + var verboseName = arguments[3]; + if (verboseName) { + mod.verboseName = verboseName; + verboseNamesToModuleIds[verboseName] = moduleId; + } + } + } + function metroRequire(moduleId) { + if (__DEV__ && typeof moduleId === "string") { + var verboseName = moduleId; + moduleId = verboseNamesToModuleIds[verboseName]; + if (moduleId == null) { + throw new Error("Unknown named module: \"" + verboseName + "\""); + } else { + console.warn("Requiring module \"" + verboseName + "\" by name is only supported for " + "debugging purposes and will BREAK IN PRODUCTION!"); + } + } + + var moduleIdReallyIsNumber = moduleId; + if (__DEV__) { + var initializingIndex = initializingModuleIds.indexOf(moduleIdReallyIsNumber); + if (initializingIndex !== -1) { + var cycle = initializingModuleIds.slice(initializingIndex).map(function (id) { + return modules[id] ? modules[id].verboseName : "[unknown]"; + }); + if (shouldPrintRequireCycle(cycle)) { + cycle.push(cycle[0]); + + console.warn("Require cycle: " + cycle.join(" -> ") + "\n\n" + "Require cycles are allowed, but can result in uninitialized values. " + "Consider refactoring to remove the need for a cycle."); + } + } + } + var module = modules[moduleIdReallyIsNumber]; + return module && module.isInitialized ? module.publicModule.exports : guardedLoadModule(moduleIdReallyIsNumber, module); + } + + function shouldPrintRequireCycle(modules) { + var regExps = global[__METRO_GLOBAL_PREFIX__ + "__requireCycleIgnorePatterns"]; + if (!Array.isArray(regExps)) { + return true; + } + var isIgnored = function isIgnored(module) { + return module != null && regExps.some(function (regExp) { + return regExp.test(module); + }); + }; + + return modules.every(function (module) { + return !isIgnored(module); + }); + } + function metroImportDefault(moduleId) { + if (__DEV__ && typeof moduleId === "string") { + var verboseName = moduleId; + moduleId = verboseNamesToModuleIds[verboseName]; + } + + var moduleIdReallyIsNumber = moduleId; + if (modules[moduleIdReallyIsNumber] && modules[moduleIdReallyIsNumber].importedDefault !== EMPTY) { + return modules[moduleIdReallyIsNumber].importedDefault; + } + var exports = metroRequire(moduleIdReallyIsNumber); + var importedDefault = exports && exports.__esModule ? exports.default : exports; + + return modules[moduleIdReallyIsNumber].importedDefault = importedDefault; + } + metroRequire.importDefault = metroImportDefault; + function metroImportAll(moduleId) { + if (__DEV__ && typeof moduleId === "string") { + var verboseName = moduleId; + moduleId = verboseNamesToModuleIds[verboseName]; + } + + var moduleIdReallyIsNumber = moduleId; + if (modules[moduleIdReallyIsNumber] && modules[moduleIdReallyIsNumber].importedAll !== EMPTY) { + return modules[moduleIdReallyIsNumber].importedAll; + } + var exports = metroRequire(moduleIdReallyIsNumber); + var importedAll; + if (exports && exports.__esModule) { + importedAll = exports; + } else { + importedAll = {}; + + if (exports) { + for (var key in exports) { + if (hasOwnProperty.call(exports, key)) { + importedAll[key] = exports[key]; + } + } + } + importedAll.default = exports; + } + + return modules[moduleIdReallyIsNumber].importedAll = importedAll; + } + metroRequire.importAll = metroImportAll; + + metroRequire.context = function fallbackRequireContext() { + if (__DEV__) { + throw new Error("The experimental Metro feature `require.context` is not enabled in your project.\nThis can be enabled by setting the `transformer.unstable_allowRequireContext` property to `true` in your Metro configuration."); + } + throw new Error("The experimental Metro feature `require.context` is not enabled in your project."); + }; + var inGuard = false; + function guardedLoadModule(moduleId, module) { + if (!inGuard && global.ErrorUtils) { + inGuard = true; + var returnValue; + try { + returnValue = loadModuleImplementation(moduleId, module); + } catch (e) { + global.ErrorUtils.reportFatalError(e); + } + inGuard = false; + return returnValue; + } else { + return loadModuleImplementation(moduleId, module); + } + } + var ID_MASK_SHIFT = 16; + var LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT; + function unpackModuleId(moduleId) { + var segmentId = moduleId >>> ID_MASK_SHIFT; + var localId = moduleId & LOCAL_ID_MASK; + return { + segmentId: segmentId, + localId: localId + }; + } + metroRequire.unpackModuleId = unpackModuleId; + function packModuleId(value) { + return (value.segmentId << ID_MASK_SHIFT) + value.localId; + } + metroRequire.packModuleId = packModuleId; + var moduleDefinersBySegmentID = []; + var definingSegmentByModuleID = new Map(); + function registerSegment(segmentId, moduleDefiner, moduleIds) { + moduleDefinersBySegmentID[segmentId] = moduleDefiner; + if (__DEV__) { + if (segmentId === 0 && moduleIds) { + throw new Error("registerSegment: Expected moduleIds to be null for main segment"); + } + if (segmentId !== 0 && !moduleIds) { + throw new Error("registerSegment: Expected moduleIds to be passed for segment #" + segmentId); + } + } + if (moduleIds) { + moduleIds.forEach(function (moduleId) { + if (!modules[moduleId] && !definingSegmentByModuleID.has(moduleId)) { + definingSegmentByModuleID.set(moduleId, segmentId); + } + }); + } + } + function loadModuleImplementation(moduleId, module) { + if (!module && moduleDefinersBySegmentID.length > 0) { + var _definingSegmentByMod; + var segmentId = (_definingSegmentByMod = definingSegmentByModuleID.get(moduleId)) !== null && _definingSegmentByMod !== void 0 ? _definingSegmentByMod : 0; + var definer = moduleDefinersBySegmentID[segmentId]; + if (definer != null) { + definer(moduleId); + module = modules[moduleId]; + definingSegmentByModuleID.delete(moduleId); + } + } + var nativeRequire = global.nativeRequire; + if (!module && nativeRequire) { + var _unpackModuleId = unpackModuleId(moduleId), + _segmentId = _unpackModuleId.segmentId, + localId = _unpackModuleId.localId; + nativeRequire(localId, _segmentId); + module = modules[moduleId]; + } + if (!module) { + throw unknownModuleError(moduleId); + } + if (module.hasError) { + throw moduleThrewError(moduleId, module.error); + } + if (__DEV__) { + var Systrace = requireSystrace(); + var Refresh = requireRefresh(); + } + + module.isInitialized = true; + var _module = module, + factory = _module.factory, + dependencyMap = _module.dependencyMap; + if (__DEV__) { + initializingModuleIds.push(moduleId); + } + try { + if (__DEV__) { + Systrace.beginEvent("JS_require_" + (module.verboseName || moduleId)); + } + var moduleObject = module.publicModule; + if (__DEV__) { + moduleObject.hot = module.hot; + var prevRefreshReg = global.$RefreshReg$; + var prevRefreshSig = global.$RefreshSig$; + if (Refresh != null) { + var RefreshRuntime = Refresh; + global.$RefreshReg$ = function (type, id) { + RefreshRuntime.register(type, moduleId + " " + id); + }; + global.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform; + } + } + moduleObject.id = moduleId; + + factory(global, metroRequire, metroImportDefault, metroImportAll, moduleObject, moduleObject.exports, dependencyMap); + + if (!__DEV__) { + module.factory = undefined; + module.dependencyMap = undefined; + } + if (__DEV__) { + Systrace.endEvent(); + if (Refresh != null) { + registerExportsForReactRefresh(Refresh, moduleObject.exports, moduleId); + } + } + return moduleObject.exports; + } catch (e) { + module.hasError = true; + module.error = e; + module.isInitialized = false; + module.publicModule.exports = undefined; + throw e; + } finally { + if (__DEV__) { + if (initializingModuleIds.pop() !== moduleId) { + throw new Error("initializingModuleIds is corrupt; something is terribly wrong"); + } + global.$RefreshReg$ = prevRefreshReg; + global.$RefreshSig$ = prevRefreshSig; + } + } + } + function unknownModuleError(id) { + var message = 'Requiring unknown module "' + id + '".'; + if (__DEV__) { + message += " If you are sure the module exists, try restarting Metro. " + "You may also want to run `yarn` or `npm install`."; + } + return Error(message); + } + function moduleThrewError(id, error) { + var displayName = __DEV__ && modules[id] && modules[id].verboseName || id; + return Error('Requiring module "' + displayName + '", which threw an exception: ' + error); + } + if (__DEV__) { + metroRequire.Systrace = { + beginEvent: function beginEvent() {}, + endEvent: function endEvent() {} + }; + metroRequire.getModules = function () { + return modules; + }; + + var createHotReloadingObject = function createHotReloadingObject() { + var hot = { + _acceptCallback: null, + _disposeCallback: null, + _didAccept: false, + accept: function accept(callback) { + hot._didAccept = true; + hot._acceptCallback = callback; + }, + dispose: function dispose(callback) { + hot._disposeCallback = callback; + } + }; + return hot; + }; + var reactRefreshTimeout = null; + var metroHotUpdateModule = function metroHotUpdateModule(id, factory, dependencyMap, inverseDependencies) { + var mod = modules[id]; + if (!mod) { + if (factory) { + return; + } + throw unknownModuleError(id); + } + if (!mod.hasError && !mod.isInitialized) { + mod.factory = factory; + mod.dependencyMap = dependencyMap; + return; + } + var Refresh = requireRefresh(); + var refreshBoundaryIDs = new Set(); + + var didBailOut = false; + var updatedModuleIDs; + try { + updatedModuleIDs = topologicalSort([id], + function (pendingID) { + var pendingModule = modules[pendingID]; + if (pendingModule == null) { + return []; + } + var pendingHot = pendingModule.hot; + if (pendingHot == null) { + throw new Error("[Refresh] Expected module.hot to always exist in DEV."); + } + + var canAccept = pendingHot._didAccept; + if (!canAccept && Refresh != null) { + var isBoundary = isReactRefreshBoundary(Refresh, pendingModule.publicModule.exports); + if (isBoundary) { + canAccept = true; + refreshBoundaryIDs.add(pendingID); + } + } + if (canAccept) { + return []; + } + + var parentIDs = inverseDependencies[pendingID]; + if (parentIDs.length === 0) { + performFullRefresh("No root boundary", { + source: mod, + failed: pendingModule + }); + didBailOut = true; + return []; + } + + return parentIDs; + }, function () { + return didBailOut; + }).reverse(); + } catch (e) { + if (e === CYCLE_DETECTED) { + performFullRefresh("Dependency cycle", { + source: mod + }); + return; + } + throw e; + } + if (didBailOut) { + return; + } + + var seenModuleIDs = new Set(); + for (var i = 0; i < updatedModuleIDs.length; i++) { + var updatedID = updatedModuleIDs[i]; + if (seenModuleIDs.has(updatedID)) { + continue; + } + seenModuleIDs.add(updatedID); + var updatedMod = modules[updatedID]; + if (updatedMod == null) { + throw new Error("[Refresh] Expected to find the updated module."); + } + var prevExports = updatedMod.publicModule.exports; + var didError = runUpdatedModule(updatedID, updatedID === id ? factory : undefined, updatedID === id ? dependencyMap : undefined); + var nextExports = updatedMod.publicModule.exports; + if (didError) { + return; + } + if (refreshBoundaryIDs.has(updatedID)) { + var isNoLongerABoundary = !isReactRefreshBoundary(Refresh, nextExports); + + var didInvalidate = shouldInvalidateReactRefreshBoundary(Refresh, prevExports, nextExports); + if (isNoLongerABoundary || didInvalidate) { + var parentIDs = inverseDependencies[updatedID]; + if (parentIDs.length === 0) { + performFullRefresh(isNoLongerABoundary ? "No longer a boundary" : "Invalidated boundary", { + source: mod, + failed: updatedMod + }); + return; + } + + for (var j = 0; j < parentIDs.length; j++) { + var parentID = parentIDs[j]; + var parentMod = modules[parentID]; + if (parentMod == null) { + throw new Error("[Refresh] Expected to find parent module."); + } + var canAcceptParent = isReactRefreshBoundary(Refresh, parentMod.publicModule.exports); + if (canAcceptParent) { + refreshBoundaryIDs.add(parentID); + updatedModuleIDs.push(parentID); + } else { + performFullRefresh("Invalidated boundary", { + source: mod, + failed: parentMod + }); + return; + } + } + } + } + } + if (Refresh != null) { + if (reactRefreshTimeout == null) { + reactRefreshTimeout = setTimeout(function () { + reactRefreshTimeout = null; + + Refresh.performReactRefresh(); + }, 30); + } + } + }; + var topologicalSort = function topologicalSort(roots, getEdges, earlyStop) { + var result = []; + var visited = new Set(); + var stack = new Set(); + function traverseDependentNodes(node) { + if (stack.has(node)) { + throw CYCLE_DETECTED; + } + if (visited.has(node)) { + return; + } + visited.add(node); + stack.add(node); + var dependentNodes = getEdges(node); + if (earlyStop(node)) { + stack.delete(node); + return; + } + dependentNodes.forEach(function (dependent) { + traverseDependentNodes(dependent); + }); + stack.delete(node); + result.push(node); + } + roots.forEach(function (root) { + traverseDependentNodes(root); + }); + return result; + }; + var runUpdatedModule = function runUpdatedModule(id, factory, dependencyMap) { + var mod = modules[id]; + if (mod == null) { + throw new Error("[Refresh] Expected to find the module."); + } + var hot = mod.hot; + if (!hot) { + throw new Error("[Refresh] Expected module.hot to always exist in DEV."); + } + if (hot._disposeCallback) { + try { + hot._disposeCallback(); + } catch (error) { + console.error("Error while calling dispose handler for module " + id + ": ", error); + } + } + if (factory) { + mod.factory = factory; + } + if (dependencyMap) { + mod.dependencyMap = dependencyMap; + } + mod.hasError = false; + mod.error = undefined; + mod.importedAll = EMPTY; + mod.importedDefault = EMPTY; + mod.isInitialized = false; + var prevExports = mod.publicModule.exports; + mod.publicModule.exports = {}; + hot._didAccept = false; + hot._acceptCallback = null; + hot._disposeCallback = null; + metroRequire(id); + if (mod.hasError) { + mod.hasError = false; + mod.isInitialized = true; + mod.error = null; + mod.publicModule.exports = prevExports; + + return true; + } + if (hot._acceptCallback) { + try { + hot._acceptCallback(); + } catch (error) { + console.error("Error while calling accept handler for module " + id + ": ", error); + } + } + + return false; + }; + var performFullRefresh = function performFullRefresh(reason, modules) { + if (typeof window !== "undefined" && window.location != null && typeof window.location.reload === "function") { + window.location.reload(); + } else { + var Refresh = requireRefresh(); + if (Refresh != null) { + var _modules$source$verbo, _modules$source, _modules$failed$verbo, _modules$failed; + var sourceName = (_modules$source$verbo = (_modules$source = modules.source) === null || _modules$source === void 0 ? void 0 : _modules$source.verboseName) !== null && _modules$source$verbo !== void 0 ? _modules$source$verbo : "unknown"; + var failedName = (_modules$failed$verbo = (_modules$failed = modules.failed) === null || _modules$failed === void 0 ? void 0 : _modules$failed.verboseName) !== null && _modules$failed$verbo !== void 0 ? _modules$failed$verbo : "unknown"; + Refresh.performFullRefresh("Fast Refresh - " + reason + " <" + sourceName + "> <" + failedName + ">"); + } else { + console.warn("Could not reload the application after an edit."); + } + } + }; + + var isReactRefreshBoundary = function isReactRefreshBoundary(Refresh, moduleExports) { + if (Refresh.isLikelyComponentType(moduleExports)) { + return true; + } + if (moduleExports == null || typeof moduleExports !== "object") { + return false; + } + var hasExports = false; + var areAllExportsComponents = true; + for (var key in moduleExports) { + hasExports = true; + if (key === "__esModule") { + continue; + } + var desc = Object.getOwnPropertyDescriptor(moduleExports, key); + if (desc && desc.get) { + return false; + } + var exportValue = moduleExports[key]; + if (!Refresh.isLikelyComponentType(exportValue)) { + areAllExportsComponents = false; + } + } + return hasExports && areAllExportsComponents; + }; + var shouldInvalidateReactRefreshBoundary = function shouldInvalidateReactRefreshBoundary(Refresh, prevExports, nextExports) { + var prevSignature = getRefreshBoundarySignature(Refresh, prevExports); + var nextSignature = getRefreshBoundarySignature(Refresh, nextExports); + if (prevSignature.length !== nextSignature.length) { + return true; + } + for (var i = 0; i < nextSignature.length; i++) { + if (prevSignature[i] !== nextSignature[i]) { + return true; + } + } + return false; + }; + + var getRefreshBoundarySignature = function getRefreshBoundarySignature(Refresh, moduleExports) { + var signature = []; + signature.push(Refresh.getFamilyByType(moduleExports)); + if (moduleExports == null || typeof moduleExports !== "object") { + return signature; + } + for (var key in moduleExports) { + if (key === "__esModule") { + continue; + } + var desc = Object.getOwnPropertyDescriptor(moduleExports, key); + if (desc && desc.get) { + continue; + } + var exportValue = moduleExports[key]; + signature.push(key); + signature.push(Refresh.getFamilyByType(exportValue)); + } + return signature; + }; + var registerExportsForReactRefresh = function registerExportsForReactRefresh(Refresh, moduleExports, moduleID) { + Refresh.register(moduleExports, moduleID + " %exports%"); + if (moduleExports == null || typeof moduleExports !== "object") { + return; + } + for (var key in moduleExports) { + var desc = Object.getOwnPropertyDescriptor(moduleExports, key); + if (desc && desc.get) { + continue; + } + var exportValue = moduleExports[key]; + var typeID = moduleID + " %exports% " + key; + Refresh.register(exportValue, typeID); + } + }; + global.__accept = metroHotUpdateModule; + } + if (__DEV__) { + var requireSystrace = function requireSystrace() { + return global[__METRO_GLOBAL_PREFIX__ + "__SYSTRACE"] || metroRequire.Systrace; + }; + var requireRefresh = function requireRefresh() { + return global[__METRO_GLOBAL_PREFIX__ + "__ReactRefresh"] || metroRequire.Refresh; + }; + } +})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); +(function (global) { + + var inspect = function () { + + function inspect(obj, opts) { + var ctx = { + seen: [], + formatValueCalls: 0, + stylize: stylizeNoColor + }; + return formatValue(ctx, obj, opts.depth); + } + function stylizeNoColor(str, styleType) { + return str; + } + function arrayToHash(array) { + var hash = {}; + array.forEach(function (val, idx) { + hash[val] = true; + }); + return hash; + } + function formatValue(ctx, value, recurseTimes) { + ctx.formatValueCalls++; + if (ctx.formatValueCalls > 200) { + return "[TOO BIG formatValueCalls " + ctx.formatValueCalls + " exceeded limit of 200]"; + } + + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } + + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { + return formatError(value); + } + + if (keys.length === 0) { + if (isFunction(value)) { + var name = value.name ? ': ' + value.name : ''; + return ctx.stylize('[Function' + name + ']', 'special'); + } + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } + if (isDate(value)) { + return ctx.stylize(Date.prototype.toString.call(value), 'date'); + } + if (isError(value)) { + return formatError(value); + } + } + var base = '', + array = false, + braces = ['{', '}']; + + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } + + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } + + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } + + if (isDate(value)) { + base = ' ' + Date.prototype.toUTCString.call(value); + } + + if (isError(value)) { + base = ' ' + formatError(value); + } + if (keys.length === 0 && (!array || value.length == 0)) { + return braces[0] + base + braces[1]; + } + if (recurseTimes < 0) { + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } else { + return ctx.stylize('[Object]', 'special'); + } + } + ctx.seen.push(value); + var output; + if (array) { + output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); + } else { + output = keys.map(function (key) { + return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); + }); + } + ctx.seen.pop(); + return reduceToSingleString(output, base, braces); + } + function formatPrimitive(ctx, value) { + if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); + if (isString(value)) { + var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; + return ctx.stylize(simple, 'string'); + } + if (isNumber(value)) return ctx.stylize('' + value, 'number'); + if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); + if (isNull(value)) return ctx.stylize('null', 'null'); + } + function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; + } + function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { + var output = []; + for (var i = 0, l = value.length; i < l; ++i) { + if (hasOwnProperty(value, String(i))) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); + } else { + output.push(''); + } + } + keys.forEach(function (key) { + if (!key.match(/^\d+$/)) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); + } + }); + return output; + } + function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { + var name, str, desc; + desc = Object.getOwnPropertyDescriptor(value, key) || { + value: value[key] + }; + if (desc.get) { + if (desc.set) { + str = ctx.stylize('[Getter/Setter]', 'special'); + } else { + str = ctx.stylize('[Getter]', 'special'); + } + } else { + if (desc.set) { + str = ctx.stylize('[Setter]', 'special'); + } + } + if (!hasOwnProperty(visibleKeys, key)) { + name = '[' + key + ']'; + } + if (!str) { + if (ctx.seen.indexOf(desc.value) < 0) { + if (isNull(recurseTimes)) { + str = formatValue(ctx, desc.value, null); + } else { + str = formatValue(ctx, desc.value, recurseTimes - 1); + } + if (str.indexOf('\n') > -1) { + if (array) { + str = str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n').substr(2); + } else { + str = '\n' + str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n'); + } + } + } else { + str = ctx.stylize('[Circular]', 'special'); + } + } + if (isUndefined(name)) { + if (array && key.match(/^\d+$/)) { + return str; + } + name = JSON.stringify('' + key); + if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { + name = name.substr(1, name.length - 2); + name = ctx.stylize(name, 'name'); + } else { + name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); + name = ctx.stylize(name, 'string'); + } + } + return name + ': ' + str; + } + function reduceToSingleString(output, base, braces) { + var numLinesEst = 0; + var length = output.reduce(function (prev, cur) { + numLinesEst++; + if (cur.indexOf('\n') >= 0) numLinesEst++; + return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; + }, 0); + if (length > 60) { + return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; + } + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; + } + + function isArray(ar) { + return Array.isArray(ar); + } + function isBoolean(arg) { + return typeof arg === 'boolean'; + } + function isNull(arg) { + return arg === null; + } + function isNullOrUndefined(arg) { + return arg == null; + } + function isNumber(arg) { + return typeof arg === 'number'; + } + function isString(arg) { + return typeof arg === 'string'; + } + function isSymbol(arg) { + return typeof arg === 'symbol'; + } + function isUndefined(arg) { + return arg === void 0; + } + function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; + } + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; + } + function isError(e) { + return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); + } + function isFunction(arg) { + return typeof arg === 'function'; + } + function objectToString(o) { + return Object.prototype.toString.call(o); + } + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + } + return inspect; + }(); + var OBJECT_COLUMN_NAME = '(index)'; + var LOG_LEVELS = { + trace: 0, + info: 1, + warn: 2, + error: 3 + }; + var INSPECTOR_LEVELS = []; + INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug'; + INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log'; + INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning'; + INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error'; + + var INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1; + function getNativeLogFunction(level) { + return function () { + var str; + if (arguments.length === 1 && typeof arguments[0] === 'string') { + str = arguments[0]; + } else { + str = Array.prototype.map.call(arguments, function (arg) { + return inspect(arg, { + depth: 10 + }); + }).join(', '); + } + + var firstArg = arguments[0]; + var logLevel = level; + if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) { + logLevel = LOG_LEVELS.warn; + } + if (global.__inspectorLog) { + global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP); + } + if (groupStack.length) { + str = groupFormat('', str); + } + global.nativeLoggingHook(str, logLevel); + }; + } + function repeat(element, n) { + return Array.apply(null, Array(n)).map(function () { + return element; + }); + } + function consoleTablePolyfill(rows) { + if (!Array.isArray(rows)) { + var data = rows; + rows = []; + for (var key in data) { + if (data.hasOwnProperty(key)) { + var row = data[key]; + row[OBJECT_COLUMN_NAME] = key; + rows.push(row); + } + } + } + if (rows.length === 0) { + global.nativeLoggingHook('', LOG_LEVELS.info); + return; + } + var columns = Object.keys(rows[0]).sort(); + var stringRows = []; + var columnWidths = []; + + columns.forEach(function (k, i) { + columnWidths[i] = k.length; + for (var j = 0; j < rows.length; j++) { + var cellStr = (rows[j][k] || '?').toString(); + stringRows[j] = stringRows[j] || []; + stringRows[j][i] = cellStr; + columnWidths[i] = Math.max(columnWidths[i], cellStr.length); + } + }); + + function joinRow(row, space) { + var cells = row.map(function (cell, i) { + var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join(''); + return cell + extraSpaces; + }); + space = space || ' '; + return cells.join(space + '|' + space); + } + var separators = columnWidths.map(function (columnWidth) { + return repeat('-', columnWidth).join(''); + }); + var separatorRow = joinRow(separators, '-'); + var header = joinRow(columns); + var table = [header, separatorRow]; + for (var i = 0; i < rows.length; i++) { + table.push(joinRow(stringRows[i])); + } + + global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info); + } + var GROUP_PAD = "\u2502"; + var GROUP_OPEN = "\u2510"; + var GROUP_CLOSE = "\u2518"; + + var groupStack = []; + function groupFormat(prefix, msg) { + return groupStack.join('') + prefix + ' ' + (msg || ''); + } + function consoleGroupPolyfill(label) { + global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info); + groupStack.push(GROUP_PAD); + } + function consoleGroupCollapsedPolyfill(label) { + global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info); + groupStack.push(GROUP_PAD); + } + function consoleGroupEndPolyfill() { + groupStack.pop(); + global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info); + } + function consoleAssertPolyfill(expression, label) { + if (!expression) { + global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error); + } + } + if (global.nativeLoggingHook) { + var originalConsole = global.console; + if (__DEV__ && originalConsole) { + var descriptor = Object.getOwnPropertyDescriptor(global, 'console'); + if (descriptor) { + Object.defineProperty(global, 'originalConsole', descriptor); + } + } + global.console = { + error: getNativeLogFunction(LOG_LEVELS.error), + info: getNativeLogFunction(LOG_LEVELS.info), + log: getNativeLogFunction(LOG_LEVELS.info), + warn: getNativeLogFunction(LOG_LEVELS.warn), + trace: getNativeLogFunction(LOG_LEVELS.trace), + debug: getNativeLogFunction(LOG_LEVELS.trace), + table: consoleTablePolyfill, + group: consoleGroupPolyfill, + groupEnd: consoleGroupEndPolyfill, + groupCollapsed: consoleGroupCollapsedPolyfill, + assert: consoleAssertPolyfill + }; + Object.defineProperty(console, '_isPolyfilled', { + value: true, + enumerable: false + }); + + if (__DEV__ && originalConsole) { + Object.keys(console).forEach(function (methodName) { + var reactNativeMethod = console[methodName]; + if (originalConsole[methodName]) { + console[methodName] = function () { + originalConsole[methodName].apply(originalConsole, arguments); + reactNativeMethod.apply(console, arguments); + }; + } + }); + + ['clear', 'dir', 'dirxml', 'profile', 'profileEnd'].forEach(function (methodName) { + if (typeof originalConsole[methodName] === 'function') { + console[methodName] = function () { + originalConsole[methodName].apply(originalConsole, arguments); + }; + } + }); + } + } else if (!global.console) { + function stub() {} + var log = global.print || stub; + global.console = { + debug: log, + error: log, + info: log, + log: log, + trace: log, + warn: log, + assert: function assert(expression, label) { + if (!expression) { + log('Assertion failed: ' + label); + } + }, + clear: stub, + dir: stub, + dirxml: stub, + group: stub, + groupCollapsed: stub, + groupEnd: stub, + profile: stub, + profileEnd: stub, + table: stub + }; + Object.defineProperty(console, '_isPolyfilled', { + value: true, + enumerable: false + }); + } +})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); +(function (global) { + + var _inGuard = 0; + var _globalHandler = function onError(e, isFatal) { + throw e; + }; + + var ErrorUtils = { + setGlobalHandler: function setGlobalHandler(fun) { + _globalHandler = fun; + }, + getGlobalHandler: function getGlobalHandler() { + return _globalHandler; + }, + reportError: function reportError(error) { + _globalHandler && _globalHandler(error, false); + }, + reportFatalError: function reportFatalError(error) { + _globalHandler && _globalHandler(error, true); + }, + applyWithGuard: function applyWithGuard(fun, context, args, + unused_onError, + unused_name) { + try { + _inGuard++; + return fun.apply(context, args); + } catch (e) { + ErrorUtils.reportError(e); + } finally { + _inGuard--; + } + return null; + }, + applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) { + if (ErrorUtils.inGuard()) { + return fun.apply(context, args); + } else { + ErrorUtils.applyWithGuard(fun, context, args); + } + return null; + }, + inGuard: function inGuard() { + return !!_inGuard; + }, + guard: function guard(fun, name, context) { + var _ref; + if (typeof fun !== 'function') { + console.warn('A function must be passed to ErrorUtils.guard, got ', fun); + return null; + } + var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : ''; + function guarded() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return ErrorUtils.applyWithGuard(fun, context != null ? context : this, args, null, guardName); + } + return guarded; + } + }; + global.ErrorUtils = ErrorUtils; +})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); +(function (global) { + + (function () { + 'use strict'; + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + if (typeof Object.entries !== 'function') { + Object.entries = function (object) { + if (object == null) { + throw new TypeError('Object.entries called on non-object'); + } + var entries = []; + for (var key in object) { + if (hasOwnProperty.call(object, key)) { + entries.push([key, object[key]]); + } + } + return entries; + }; + } + + if (typeof Object.values !== 'function') { + Object.values = function (object) { + if (object == null) { + throw new TypeError('Object.values called on non-object'); + } + var values = []; + for (var key in object) { + if (hasOwnProperty.call(object, key)) { + values.push(object[key]); + } + } + return values; + }; + } + })(); +})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var _App = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./src/App")); + + _reactNative.AppRegistry.registerComponent(_$$_REQUIRE(_dependencyMap[3], "./app.json").name, function () { + return _App.default; + }); +},0,[1,3,471,732],"index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = { + get AccessibilityInfo() { + return _$$_REQUIRE(_dependencyMap[0], "./Libraries/Components/AccessibilityInfo/AccessibilityInfo").default; + }, + get ActivityIndicator() { + return _$$_REQUIRE(_dependencyMap[1], "./Libraries/Components/ActivityIndicator/ActivityIndicator"); + }, + get Button() { + return _$$_REQUIRE(_dependencyMap[2], "./Libraries/Components/Button"); + }, + get DatePickerIOS() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('DatePickerIOS-merged', 'DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + return _$$_REQUIRE(_dependencyMap[4], "./Libraries/Components/DatePicker/DatePickerIOS"); + }, + get DrawerLayoutAndroid() { + return _$$_REQUIRE(_dependencyMap[5], "./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid"); + }, + get FlatList() { + return _$$_REQUIRE(_dependencyMap[6], "./Libraries/Lists/FlatList"); + }, + get Image() { + return _$$_REQUIRE(_dependencyMap[7], "./Libraries/Image/Image"); + }, + get ImageBackground() { + return _$$_REQUIRE(_dependencyMap[8], "./Libraries/Image/ImageBackground"); + }, + get InputAccessoryView() { + return _$$_REQUIRE(_dependencyMap[9], "./Libraries/Components/TextInput/InputAccessoryView"); + }, + get KeyboardAvoidingView() { + return _$$_REQUIRE(_dependencyMap[10], "./Libraries/Components/Keyboard/KeyboardAvoidingView").default; + }, + get MaskedViewIOS() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('maskedviewios-moved', 'MaskedViewIOS 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-masked-view/masked-view' instead of 'react-native'. " + 'See https://github.com/react-native-masked-view/masked-view'); + return _$$_REQUIRE(_dependencyMap[11], "./Libraries/Components/MaskedView/MaskedViewIOS"); + }, + get Modal() { + return _$$_REQUIRE(_dependencyMap[12], "./Libraries/Modal/Modal"); + }, + get Pressable() { + return _$$_REQUIRE(_dependencyMap[13], "./Libraries/Components/Pressable/Pressable").default; + }, + get ProgressBarAndroid() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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'); + return _$$_REQUIRE(_dependencyMap[14], "./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid"); + }, + get ProgressViewIOS() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('progress-view-ios-moved', 'ProgressViewIOS 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-view' instead of 'react-native'. " + 'See https://github.com/react-native-progress-view/progress-view'); + return _$$_REQUIRE(_dependencyMap[15], "./Libraries/Components/ProgressViewIOS/ProgressViewIOS"); + }, + get RefreshControl() { + return _$$_REQUIRE(_dependencyMap[16], "./Libraries/Components/RefreshControl/RefreshControl"); + }, + get SafeAreaView() { + return _$$_REQUIRE(_dependencyMap[17], "./Libraries/Components/SafeAreaView/SafeAreaView").default; + }, + get ScrollView() { + return _$$_REQUIRE(_dependencyMap[18], "./Libraries/Components/ScrollView/ScrollView"); + }, + get SectionList() { + return _$$_REQUIRE(_dependencyMap[19], "./Libraries/Lists/SectionList").default; + }, + get Slider() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('slider-moved', 'Slider 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/slider' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-slider'); + return _$$_REQUIRE(_dependencyMap[20], "./Libraries/Components/Slider/Slider"); + }, + get StatusBar() { + return _$$_REQUIRE(_dependencyMap[21], "./Libraries/Components/StatusBar/StatusBar"); + }, + get Switch() { + return _$$_REQUIRE(_dependencyMap[22], "./Libraries/Components/Switch/Switch").default; + }, + get Text() { + return _$$_REQUIRE(_dependencyMap[23], "./Libraries/Text/Text"); + }, + get TextInput() { + return _$$_REQUIRE(_dependencyMap[24], "./Libraries/Components/TextInput/TextInput"); + }, + get Touchable() { + return _$$_REQUIRE(_dependencyMap[25], "./Libraries/Components/Touchable/Touchable"); + }, + get TouchableHighlight() { + return _$$_REQUIRE(_dependencyMap[26], "./Libraries/Components/Touchable/TouchableHighlight"); + }, + get TouchableNativeFeedback() { + return _$$_REQUIRE(_dependencyMap[27], "./Libraries/Components/Touchable/TouchableNativeFeedback"); + }, + get TouchableOpacity() { + return _$$_REQUIRE(_dependencyMap[28], "./Libraries/Components/Touchable/TouchableOpacity"); + }, + get TouchableWithoutFeedback() { + return _$$_REQUIRE(_dependencyMap[29], "./Libraries/Components/Touchable/TouchableWithoutFeedback"); + }, + get View() { + return _$$_REQUIRE(_dependencyMap[30], "./Libraries/Components/View/View"); + }, + get VirtualizedList() { + return _$$_REQUIRE(_dependencyMap[31], "./Libraries/Lists/VirtualizedList"); + }, + get VirtualizedSectionList() { + return _$$_REQUIRE(_dependencyMap[32], "./Libraries/Lists/VirtualizedSectionList"); + }, + get ActionSheetIOS() { + return _$$_REQUIRE(_dependencyMap[33], "./Libraries/ActionSheetIOS/ActionSheetIOS"); + }, + get Alert() { + return _$$_REQUIRE(_dependencyMap[34], "./Libraries/Alert/Alert"); + }, + get Animated() { + return _$$_REQUIRE(_dependencyMap[35], "./Libraries/Animated/Animated"); + }, + get Appearance() { + return _$$_REQUIRE(_dependencyMap[36], "./Libraries/Utilities/Appearance"); + }, + get AppRegistry() { + return _$$_REQUIRE(_dependencyMap[37], "./Libraries/ReactNative/AppRegistry"); + }, + get AppState() { + return _$$_REQUIRE(_dependencyMap[38], "./Libraries/AppState/AppState"); + }, + get AsyncStorage() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('async-storage-moved', 'AsyncStorage 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-async-storage/async-storage' instead of 'react-native'. " + 'See https://github.com/react-native-async-storage/async-storage'); + return _$$_REQUIRE(_dependencyMap[39], "./Libraries/Storage/AsyncStorage"); + }, + get BackHandler() { + return _$$_REQUIRE(_dependencyMap[40], "./Libraries/Utilities/BackHandler"); + }, + get Clipboard() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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'); + return _$$_REQUIRE(_dependencyMap[41], "./Libraries/Components/Clipboard/Clipboard"); + }, + get DeviceInfo() { + return _$$_REQUIRE(_dependencyMap[42], "./Libraries/Utilities/DeviceInfo"); + }, + get DevSettings() { + return _$$_REQUIRE(_dependencyMap[43], "./Libraries/Utilities/DevSettings"); + }, + get Dimensions() { + return _$$_REQUIRE(_dependencyMap[44], "./Libraries/Utilities/Dimensions"); + }, + get Easing() { + return _$$_REQUIRE(_dependencyMap[45], "./Libraries/Animated/Easing"); + }, + get findNodeHandle() { + return _$$_REQUIRE(_dependencyMap[46], "./Libraries/Renderer/shims/ReactNative").findNodeHandle; + }, + get I18nManager() { + return _$$_REQUIRE(_dependencyMap[47], "./Libraries/ReactNative/I18nManager"); + }, + get ImagePickerIOS() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('imagePickerIOS-moved', 'ImagePickerIOS has been extracted from react-native core and will be removed in a future release. ' + "Please upgrade to use either '@react-native-community/react-native-image-picker' or 'expo-image-picker'. " + "If you cannot upgrade to a different library, please install the deprecated '@react-native-community/image-picker-ios' package. " + 'See https://github.com/rnc-archive/react-native-image-picker-ios'); + return _$$_REQUIRE(_dependencyMap[48], "./Libraries/Image/ImagePickerIOS"); + }, + get InteractionManager() { + return _$$_REQUIRE(_dependencyMap[49], "./Libraries/Interaction/InteractionManager"); + }, + get Keyboard() { + return _$$_REQUIRE(_dependencyMap[50], "./Libraries/Components/Keyboard/Keyboard"); + }, + get LayoutAnimation() { + return _$$_REQUIRE(_dependencyMap[51], "./Libraries/LayoutAnimation/LayoutAnimation"); + }, + get Linking() { + return _$$_REQUIRE(_dependencyMap[52], "./Libraries/Linking/Linking"); + }, + get LogBox() { + return _$$_REQUIRE(_dependencyMap[53], "./Libraries/LogBox/LogBox"); + }, + get NativeDialogManagerAndroid() { + return _$$_REQUIRE(_dependencyMap[54], "./Libraries/NativeModules/specs/NativeDialogManagerAndroid").default; + }, + get NativeEventEmitter() { + return _$$_REQUIRE(_dependencyMap[55], "./Libraries/EventEmitter/NativeEventEmitter").default; + }, + get Networking() { + return _$$_REQUIRE(_dependencyMap[56], "./Libraries/Network/RCTNetworking"); + }, + get PanResponder() { + return _$$_REQUIRE(_dependencyMap[57], "./Libraries/Interaction/PanResponder"); + }, + get PermissionsAndroid() { + return _$$_REQUIRE(_dependencyMap[58], "./Libraries/PermissionsAndroid/PermissionsAndroid"); + }, + get PixelRatio() { + return _$$_REQUIRE(_dependencyMap[59], "./Libraries/Utilities/PixelRatio"); + }, + get PushNotificationIOS() { + _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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/push-notification-ios'); + return _$$_REQUIRE(_dependencyMap[60], "./Libraries/PushNotificationIOS/PushNotificationIOS"); + }, + get Settings() { + return _$$_REQUIRE(_dependencyMap[61], "./Libraries/Settings/Settings"); + }, + get Share() { + return _$$_REQUIRE(_dependencyMap[62], "./Libraries/Share/Share"); + }, + get StyleSheet() { + return _$$_REQUIRE(_dependencyMap[63], "./Libraries/StyleSheet/StyleSheet"); + }, + get Systrace() { + return _$$_REQUIRE(_dependencyMap[64], "./Libraries/Performance/Systrace"); + }, + get ToastAndroid() { + return _$$_REQUIRE(_dependencyMap[65], "./Libraries/Components/ToastAndroid/ToastAndroid"); + }, + get TurboModuleRegistry() { + return _$$_REQUIRE(_dependencyMap[66], "./Libraries/TurboModule/TurboModuleRegistry"); + }, + get UIManager() { + return _$$_REQUIRE(_dependencyMap[67], "./Libraries/ReactNative/UIManager"); + }, + get unstable_batchedUpdates() { + return _$$_REQUIRE(_dependencyMap[46], "./Libraries/Renderer/shims/ReactNative").unstable_batchedUpdates; + }, + get useColorScheme() { + return _$$_REQUIRE(_dependencyMap[68], "./Libraries/Utilities/useColorScheme").default; + }, + get useWindowDimensions() { + return _$$_REQUIRE(_dependencyMap[69], "./Libraries/Utilities/useWindowDimensions").default; + }, + get UTFSequence() { + return _$$_REQUIRE(_dependencyMap[70], "./Libraries/UTFSequence"); + }, + get Vibration() { + return _$$_REQUIRE(_dependencyMap[71], "./Libraries/Vibration/Vibration"); + }, + get YellowBox() { + return _$$_REQUIRE(_dependencyMap[72], "./Libraries/YellowBox/YellowBoxDeprecated"); + }, + get DeviceEventEmitter() { + return _$$_REQUIRE(_dependencyMap[73], "./Libraries/EventEmitter/RCTDeviceEventEmitter").default; + }, + get DynamicColorIOS() { + return _$$_REQUIRE(_dependencyMap[74], "./Libraries/StyleSheet/PlatformColorValueTypesIOS").DynamicColorIOS; + }, + get NativeAppEventEmitter() { + return _$$_REQUIRE(_dependencyMap[75], "./Libraries/EventEmitter/RCTNativeAppEventEmitter"); + }, + get NativeModules() { + return _$$_REQUIRE(_dependencyMap[76], "./Libraries/BatchedBridge/NativeModules"); + }, + get Platform() { + return _$$_REQUIRE(_dependencyMap[77], "./Libraries/Utilities/Platform"); + }, + get PlatformColor() { + return _$$_REQUIRE(_dependencyMap[78], "./Libraries/StyleSheet/PlatformColorValueTypes").PlatformColor; + }, + get processColor() { + return _$$_REQUIRE(_dependencyMap[79], "./Libraries/StyleSheet/processColor"); + }, + get requireNativeComponent() { + return _$$_REQUIRE(_dependencyMap[80], "./Libraries/ReactNative/requireNativeComponent"); + }, + get RootTagContext() { + return _$$_REQUIRE(_dependencyMap[81], "./Libraries/ReactNative/RootTag").RootTagContext; + }, + get unstable_enableLogBox() { + return function () { + return console.warn('LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.'); + }; + }, + get ColorPropType() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ColorPropType has been removed from React Native. Migrate to ' + "ColorPropType exported from 'deprecated-react-native-prop-types'."); + }, + get EdgeInsetsPropType() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'EdgeInsetsPropType has been removed from React Native. Migrate to ' + "EdgeInsetsPropType exported from 'deprecated-react-native-prop-types'."); + }, + get PointPropType() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'PointPropType has been removed from React Native. Migrate to ' + "PointPropType exported from 'deprecated-react-native-prop-types'."); + }, + get ViewPropTypes() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ViewPropTypes has been removed from React Native. Migrate to ' + "ViewPropTypes exported from 'deprecated-react-native-prop-types'."); + } + }; + if (__DEV__) { + Object.defineProperty(module.exports, 'ART', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ART has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " + 'See https://github.com/react-native-art/art'); + } + }); + + Object.defineProperty(module.exports, 'ListView', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-listview`.'); + } + }); + + Object.defineProperty(module.exports, 'SwipeableListView', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'SwipeableListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-swipeable-listview`.'); + } + }); + + Object.defineProperty(module.exports, 'WebView', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'WebView has been removed from React Native. ' + "It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " + 'See https://github.com/react-native-webview/react-native-webview'); + } + }); + + Object.defineProperty(module.exports, 'NetInfo', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'NetInfo has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " + 'See https://github.com/react-native-netinfo/react-native-netinfo'); + } + }); + + Object.defineProperty(module.exports, 'CameraRoll', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'CameraRoll has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. " + 'See https://github.com/react-native-cameraroll/react-native-cameraroll'); + } + }); + + Object.defineProperty(module.exports, 'ImageStore', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ImageStore has been removed from React Native. ' + 'To get a base64-encoded string from a local image use either of the following third-party libraries:' + "* expo-file-system: `readAsStringAsync(filepath, 'base64')`" + "* react-native-fs: `readFile(filepath, 'base64')`"); + } + }); + + Object.defineProperty(module.exports, 'ImageEditor', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ImageEditor has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-image-editor'); + } + }); + + Object.defineProperty(module.exports, 'TimePickerAndroid', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'TimePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + } + }); + + Object.defineProperty(module.exports, 'ToolbarAndroid', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ToolbarAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " + 'See https://github.com/react-native-toolbar-android/toolbar-android'); + } + }); + + Object.defineProperty(module.exports, 'ViewPagerAndroid', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ViewPagerAndroid has been removed from React Native. ' + "It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-pager-view'); + } + }); + + Object.defineProperty(module.exports, 'CheckBox', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'CheckBox has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " + 'See https://github.com/react-native-checkbox/react-native-checkbox'); + } + }); + + Object.defineProperty(module.exports, 'SegmentedControlIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'SegmentedControlIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/segmented-checkbox' instead of 'react-native'." + 'See https://github.com/react-native-segmented-control/segmented-control'); + } + }); + + Object.defineProperty(module.exports, 'StatusBarIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'StatusBarIOS has been removed from React Native. ' + 'Has been merged with StatusBar. ' + 'See https://reactnative.dev/docs/statusbar'); + } + }); + + Object.defineProperty(module.exports, 'PickerIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'PickerIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); + } + }); + + Object.defineProperty(module.exports, 'Picker', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'Picker has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); + } + }); + Object.defineProperty(module.exports, 'DatePickerAndroid', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'DatePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + } + }); + } +},1,[2,243,254,25,346,348,305,334,349,350,352,353,355,387,248,389,326,391,310,342,393,395,398,255,402,405,369,267,268,371,245,309,343,409,143,269,164,411,182,441,417,444,430,169,229,294,34,364,446,279,312,313,448,59,146,134,126,451,453,228,455,457,459,244,28,461,16,213,462,466,72,467,469,4,470,153,18,14,162,159,252,386,17],"node_modules/react-native/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../EventEmitter/RCTDeviceEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); + var _NativeAccessibilityInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAccessibilityInfo")); + var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeAccessibilityManager")); + var _legacySendAccessibilityEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./legacySendAccessibilityEvent")); + + var EventNames = _Platform.default.OS === 'android' ? new Map([['change', 'touchExplorationDidChange'], ['reduceMotionChanged', 'reduceMotionDidChange'], ['screenReaderChanged', 'touchExplorationDidChange'], ['accessibilityServiceChanged', 'accessibilityServiceDidChange']]) : new Map([['announcementFinished', 'announcementFinished'], ['boldTextChanged', 'boldTextChanged'], ['change', 'screenReaderChanged'], ['grayscaleChanged', 'grayscaleChanged'], ['invertColorsChanged', 'invertColorsChanged'], ['reduceMotionChanged', 'reduceMotionChanged'], ['reduceTransparencyChanged', 'reduceTransparencyChanged'], ['screenReaderChanged', 'screenReaderChanged']]); + + var AccessibilityInfo = { + isBoldTextEnabled: function isBoldTextEnabled() { + if (_Platform.default.OS === 'android') { + return Promise.resolve(false); + } else { + return new Promise(function (resolve, reject) { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentBoldTextState(resolve, reject); + } else { + reject(null); + } + }); + } + }, + isGrayscaleEnabled: function isGrayscaleEnabled() { + if (_Platform.default.OS === 'android') { + return Promise.resolve(false); + } else { + return new Promise(function (resolve, reject) { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentGrayscaleState(resolve, reject); + } else { + reject(null); + } + }); + } + }, + isInvertColorsEnabled: function isInvertColorsEnabled() { + if (_Platform.default.OS === 'android') { + return Promise.resolve(false); + } else { + return new Promise(function (resolve, reject) { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentInvertColorsState(resolve, reject); + } else { + reject(null); + } + }); + } + }, + isReduceMotionEnabled: function isReduceMotionEnabled() { + return new Promise(function (resolve, reject) { + if (_Platform.default.OS === 'android') { + if (_NativeAccessibilityInfo.default != null) { + _NativeAccessibilityInfo.default.isReduceMotionEnabled(resolve); + } else { + reject(null); + } + } else { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentReduceMotionState(resolve, reject); + } else { + reject(null); + } + } + }); + }, + prefersCrossFadeTransitions: function prefersCrossFadeTransitions() { + return new Promise(function (resolve, reject) { + if (_Platform.default.OS === 'android') { + return Promise.resolve(false); + } else { + if ((_NativeAccessibilityManager.default == null ? void 0 : _NativeAccessibilityManager.default.getCurrentPrefersCrossFadeTransitionsState) != null) { + _NativeAccessibilityManager.default.getCurrentPrefersCrossFadeTransitionsState(resolve, reject); + } else { + reject(null); + } + } + }); + }, + isReduceTransparencyEnabled: function isReduceTransparencyEnabled() { + if (_Platform.default.OS === 'android') { + return Promise.resolve(false); + } else { + return new Promise(function (resolve, reject) { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentReduceTransparencyState(resolve, reject); + } else { + reject(null); + } + }); + } + }, + isScreenReaderEnabled: function isScreenReaderEnabled() { + return new Promise(function (resolve, reject) { + if (_Platform.default.OS === 'android') { + if (_NativeAccessibilityInfo.default != null) { + _NativeAccessibilityInfo.default.isTouchExplorationEnabled(resolve); + } else { + reject(null); + } + } else { + if (_NativeAccessibilityManager.default != null) { + _NativeAccessibilityManager.default.getCurrentVoiceOverState(resolve, reject); + } else { + reject(null); + } + } + }); + }, + isAccessibilityServiceEnabled: function isAccessibilityServiceEnabled() { + return new Promise(function (resolve, reject) { + if (_Platform.default.OS === 'android') { + if (_NativeAccessibilityInfo.default != null && _NativeAccessibilityInfo.default.isAccessibilityServiceEnabled != null) { + _NativeAccessibilityInfo.default.isAccessibilityServiceEnabled(resolve); + } else { + reject(null); + } + } else { + reject(null); + } + }); + }, + addEventListener: function addEventListener(eventName, + handler) { + var deviceEventName = EventNames.get(eventName); + return deviceEventName == null ? { + remove: function remove() {} + } : _RCTDeviceEventEmitter.default.addListener(deviceEventName, handler); + }, + setAccessibilityFocus: function setAccessibilityFocus(reactTag) { + (0, _legacySendAccessibilityEvent.default)(reactTag, 'focus'); + }, + sendAccessibilityEvent: function sendAccessibilityEvent(handle, eventType) { + if (_Platform.default.OS === 'ios' && eventType === 'click') { + return; + } + (0, _$$_REQUIRE(_dependencyMap[6], "../../Renderer/shims/ReactNative").sendAccessibilityEvent)(handle, eventType); + }, + announceForAccessibility: function announceForAccessibility(announcement) { + if (_Platform.default.OS === 'android') { + _NativeAccessibilityInfo.default == null ? void 0 : _NativeAccessibilityInfo.default.announceForAccessibility(announcement); + } else { + _NativeAccessibilityManager.default == null ? void 0 : _NativeAccessibilityManager.default.announceForAccessibility(announcement); + } + }, + announceForAccessibilityWithOptions: function announceForAccessibilityWithOptions(announcement, options) { + if (_Platform.default.OS === 'android') { + _NativeAccessibilityInfo.default == null ? void 0 : _NativeAccessibilityInfo.default.announceForAccessibility(announcement); + } else { + if (_NativeAccessibilityManager.default != null && _NativeAccessibilityManager.default.announceForAccessibilityWithOptions) { + _NativeAccessibilityManager.default == null ? void 0 : _NativeAccessibilityManager.default.announceForAccessibilityWithOptions(announcement, options); + } else { + _NativeAccessibilityManager.default == null ? void 0 : _NativeAccessibilityManager.default.announceForAccessibility(announcement); + } + } + }, + getRecommendedTimeoutMillis: function getRecommendedTimeoutMillis(originalTimeout) { + if (_Platform.default.OS === 'android') { + return new Promise(function (resolve, reject) { + if (_NativeAccessibilityInfo.default != null && _NativeAccessibilityInfo.default.getRecommendedTimeoutMillis) { + _NativeAccessibilityInfo.default.getRecommendedTimeoutMillis(originalTimeout, resolve); + } else { + resolve(originalTimeout); + } + }); + } else { + return Promise.resolve(originalTimeout); + } + } + }; + var _default = AccessibilityInfo; + exports.default = _default; +},2,[3,4,14,31,32,33,34],"node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; + } + module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; +},3,[],"node_modules/@babel/runtime/helpers/interopRequireDefault.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + var _default = new _EventEmitter.default(); + exports.default = _default; +},4,[3,5],"node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var EventEmitter = function () { + function EventEmitter() { + (0, _classCallCheck2.default)(this, EventEmitter); + this._registry = {}; + } + (0, _createClass2.default)(EventEmitter, [{ + key: "addListener", + value: + function addListener(eventType, listener, context) { + var registrations = allocate(this._registry, eventType); + var registration = { + context: context, + listener: listener, + remove: function remove() { + registrations.delete(registration); + } + }; + registrations.add(registration); + return registration; + } + + }, { + key: "emit", + value: + function emit(eventType) { + var registrations = this._registry[eventType]; + if (registrations != null) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + for (var registration of (0, _toConsumableArray2.default)(registrations)) { + registration.listener.apply(registration.context, args); + } + } + } + + }, { + key: "removeAllListeners", + value: + function removeAllListeners(eventType) { + if (eventType == null) { + this._registry = {}; + } else { + delete this._registry[eventType]; + } + } + + }, { + key: "listenerCount", + value: + function listenerCount(eventType) { + var registrations = this._registry[eventType]; + return registrations == null ? 0 : registrations.size; + } + }]); + return EventEmitter; + }(); + exports.default = EventEmitter; + function allocate(registry, eventType) { + var registrations = registry[eventType]; + if (registrations == null) { + registrations = new Set(); + registry[eventType] = registrations; + } + return registrations; + } +},5,[3,6,12,13],"node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _toConsumableArray(arr) { + return _$$_REQUIRE(_dependencyMap[0], "./arrayWithoutHoles.js")(arr) || _$$_REQUIRE(_dependencyMap[1], "./iterableToArray.js")(arr) || _$$_REQUIRE(_dependencyMap[2], "./unsupportedIterableToArray.js")(arr) || _$$_REQUIRE(_dependencyMap[3], "./nonIterableSpread.js")(); + } + module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; +},6,[7,9,10,11],"node_modules/@babel/runtime/helpers/toConsumableArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _$$_REQUIRE(_dependencyMap[0], "./arrayLikeToArray.js")(arr); + } + module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; +},7,[8],"node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; +},8,[],"node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); + } + module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; +},9,[],"node_modules/@babel/runtime/helpers/iterableToArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _$$_REQUIRE(_dependencyMap[0], "./arrayLikeToArray.js")(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _$$_REQUIRE(_dependencyMap[0], "./arrayLikeToArray.js")(o, minLen); + } + module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; +},10,[8],"node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; +},11,[],"node_modules/@babel/runtime/helpers/nonIterableSpread.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; +},12,[],"node_modules/@babel/runtime/helpers/classCallCheck.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; +},13,[],"node_modules/@babel/runtime/helpers/createClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativePlatformConstantsIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativePlatformConstantsIOS")); + + var Platform = { + __constants: null, + OS: 'ios', + get Version() { + return this.constants.osVersion; + }, + get constants() { + if (this.__constants == null) { + this.__constants = _NativePlatformConstantsIOS.default.getConstants(); + } + return this.__constants; + }, + get isPad() { + return this.constants.interfaceIdiom === 'pad'; + }, + get isTV() { + return this.constants.interfaceIdiom === 'tv'; + }, + get isTesting() { + if (__DEV__) { + return this.constants.isTesting; + } + return false; + }, + select: function select(spec) { + return ( + 'ios' in spec ? spec.ios : 'native' in spec ? spec.native : spec.default + ); + } + }; + module.exports = Platform; +},14,[3,15],"node_modules/react-native/Libraries/Utilities/Platform.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('PlatformConstants'); + exports.default = _default; +},15,[16],"node_modules/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.get = get; + exports.getEnforcing = getEnforcing; + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + var turboModuleProxy = global.__turboModuleProxy; + function requireModule(name) { + if (global.RN$Bridgeless !== true) { + var legacyModule = _$$_REQUIRE(_dependencyMap[2], "../BatchedBridge/NativeModules")[name]; + if (legacyModule != null) { + return legacyModule; + } + } + if (turboModuleProxy != null) { + var module = turboModuleProxy(name); + return module; + } + return null; + } + function get(name) { + return requireModule(name); + } + function getEnforcing(name) { + var module = requireModule(name); + (0, _invariant.default)(module != null, "TurboModuleRegistry.getEnforcing(...): '" + name + "' could not be found. " + 'Verify that a module by this name is registered in the native binary.'); + return module; + } +},16,[3,17,18],"node_modules/react-native/Libraries/TurboModule/TurboModuleRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var invariant = function invariant(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + error.framesToPop = 1; + throw error; + } + }; + module.exports = invariant; +},17,[],"node_modules/invariant/browser.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function genModule(config, moduleID) { + if (!config) { + return null; + } + var _config = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(config, 5), + moduleName = _config[0], + constants = _config[1], + methods = _config[2], + promiseMethods = _config[3], + syncMethods = _config[4]; + _$$_REQUIRE(_dependencyMap[1], "invariant")(!moduleName.startsWith('RCT') && !moduleName.startsWith('RK'), "Module name prefixes should've been stripped by the native side " + "but wasn't for " + moduleName); + if (!constants && !methods) { + return { + name: moduleName + }; + } + var module = {}; + methods && methods.forEach(function (methodName, methodID) { + var isPromise = promiseMethods && arrayContains(promiseMethods, methodID) || false; + var isSync = syncMethods && arrayContains(syncMethods, methodID) || false; + _$$_REQUIRE(_dependencyMap[1], "invariant")(!isPromise || !isSync, 'Cannot have a method that is both async and a sync hook'); + var methodType = isPromise ? 'promise' : isSync ? 'sync' : 'async'; + module[methodName] = genMethod(moduleID, methodID, methodType); + }); + Object.assign(module, constants); + if (module.getConstants == null) { + module.getConstants = function () { + return constants || Object.freeze({}); + }; + } else { + console.warn("Unable to define method 'getConstants()' on NativeModule '" + moduleName + "'. NativeModule '" + moduleName + "' already has a constant or method called 'getConstants'. Please remove it."); + } + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").createDebugLookup(moduleID, moduleName, methods); + } + return { + name: moduleName, + module: module + }; + } + + global.__fbGenNativeModule = genModule; + function loadModule(name, moduleID) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(global.nativeRequireModuleConfig, "Can't lazily create module without nativeRequireModuleConfig"); + var config = global.nativeRequireModuleConfig(name); + var info = genModule(config, moduleID); + return info && info.module; + } + function genMethod(moduleID, methodID, type) { + var fn = null; + if (type === 'promise') { + fn = function promiseMethodWrapper() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + var enqueueingFrameError = new Error(); + return new Promise(function (resolve, reject) { + _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").enqueueNativeCall(moduleID, methodID, args, function (data) { + return resolve(data); + }, function (errorData) { + return reject(updateErrorWithErrorData(errorData, enqueueingFrameError)); + }); + }); + }; + } else { + fn = function nonPromiseMethodWrapper() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + var lastArg = args.length > 0 ? args[args.length - 1] : null; + var secondLastArg = args.length > 1 ? args[args.length - 2] : null; + var hasSuccessCallback = typeof lastArg === 'function'; + var hasErrorCallback = typeof secondLastArg === 'function'; + hasErrorCallback && _$$_REQUIRE(_dependencyMap[1], "invariant")(hasSuccessCallback, 'Cannot have a non-function arg after a function arg.'); + var onSuccess = hasSuccessCallback ? lastArg : null; + var onFail = hasErrorCallback ? secondLastArg : null; + var callbackCount = hasSuccessCallback + hasErrorCallback; + var newArgs = args.slice(0, args.length - callbackCount); + if (type === 'sync') { + return _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").callNativeSyncHook(moduleID, methodID, newArgs, onFail, onSuccess); + } else { + _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").enqueueNativeCall(moduleID, methodID, newArgs, onFail, onSuccess); + } + }; + } + fn.type = type; + return fn; + } + function arrayContains(array, value) { + return array.indexOf(value) !== -1; + } + function updateErrorWithErrorData(errorData, error) { + return Object.assign(error, errorData || {}); + } + var NativeModules = {}; + if (global.nativeModuleProxy) { + NativeModules = global.nativeModuleProxy; + } else if (!global.nativeExtensions) { + var bridgeConfig = global.__fbBatchedBridgeConfig; + _$$_REQUIRE(_dependencyMap[1], "invariant")(bridgeConfig, '__fbBatchedBridgeConfig is not set, cannot invoke native modules'); + var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[3], "../Utilities/defineLazyObjectProperty"); + (bridgeConfig.remoteModuleConfig || []).forEach(function (config, moduleID) { + var info = genModule(config, moduleID); + if (!info) { + return; + } + if (info.module) { + NativeModules[info.name] = info.module; + } + else { + defineLazyObjectProperty(NativeModules, info.name, { + get: function get() { + return loadModule(info.name, moduleID); + } + }); + } + }); + } + module.exports = NativeModules; +},18,[19,17,23,30],"node_modules/react-native/Libraries/BatchedBridge/NativeModules.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _slicedToArray(arr, i) { + return _$$_REQUIRE(_dependencyMap[0], "./arrayWithHoles.js")(arr) || _$$_REQUIRE(_dependencyMap[1], "./iterableToArrayLimit.js")(arr, i) || _$$_REQUIRE(_dependencyMap[2], "./unsupportedIterableToArray.js")(arr, i) || _$$_REQUIRE(_dependencyMap[3], "./nonIterableRest.js")(); + } + module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; +},19,[20,21,10,22],"node_modules/@babel/runtime/helpers/slicedToArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; +},20,[],"node_modules/@babel/runtime/helpers/arrayWithHoles.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _iterableToArrayLimit(arr, i) { + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; + if (_i == null) return; + var _arr = []; + var _n = true; + var _d = false; + var _s, _e; + try { + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; +},21,[],"node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; +},22,[],"node_modules/@babel/runtime/helpers/nonIterableRest.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var BatchedBridge = new (_$$_REQUIRE(_dependencyMap[0], "./MessageQueue"))(); + + Object.defineProperty(global, '__fbBatchedBridge', { + configurable: true, + value: BatchedBridge + }); + module.exports = BatchedBridge; +},23,[24],"node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var TO_JS = 0; + var TO_NATIVE = 1; + var MODULE_IDS = 0; + var METHOD_IDS = 1; + var PARAMS = 2; + var MIN_TIME_BETWEEN_FLUSHES_MS = 5; + + var TRACE_TAG_REACT_APPS = 1 << 17; + var DEBUG_INFO_LIMIT = 32; + var MessageQueue = function () { + function MessageQueue() { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, MessageQueue); + 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; + if (__DEV__) { + this._debugInfo = {}; + this._remoteModuleTable = {}; + this._remoteMethodTable = {}; + } + + this.callFunctionReturnFlushedQueue = + this.callFunctionReturnFlushedQueue.bind(this); + this.flushedQueue = this.flushedQueue.bind(this); + + this.invokeCallbackAndReturnFlushedQueue = + this.invokeCallbackAndReturnFlushedQueue.bind(this); + } + + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(MessageQueue, [{ + key: "callFunctionReturnFlushedQueue", + value: function callFunctionReturnFlushedQueue(module, method, args) { + var _this = this; + this.__guard(function () { + _this.__callFunction(module, method, args); + }); + return this.flushedQueue(); + } + }, { + key: "invokeCallbackAndReturnFlushedQueue", + value: function invokeCallbackAndReturnFlushedQueue(cbID, args) { + var _this2 = this; + this.__guard(function () { + _this2.__invokeCallback(cbID, args); + }); + return this.flushedQueue(); + } + }, { + key: "flushedQueue", + value: function flushedQueue() { + var _this3 = this; + this.__guard(function () { + _this3.__callReactNativeMicrotasks(); + }); + var queue = this._queue; + this._queue = [[], [], [], this._callID]; + return queue[0].length ? queue : null; + } + }, { + key: "getEventLoopRunningTime", + value: function getEventLoopRunningTime() { + return Date.now() - this._eventLoopStartTime; + } + }, { + key: "registerCallableModule", + value: function registerCallableModule(name, module) { + this._lazyCallableModules[name] = function () { + return module; + }; + } + }, { + key: "registerLazyCallableModule", + value: function registerLazyCallableModule(name, factory) { + var module; + var getValue = factory; + this._lazyCallableModules[name] = function () { + if (getValue) { + module = getValue(); + getValue = null; + } + return module; + }; + } + }, { + key: "getCallableModule", + value: function getCallableModule(name) { + var getValue = this._lazyCallableModules[name]; + return getValue ? getValue() : null; + } + }, { + key: "callNativeSyncHook", + value: function callNativeSyncHook(moduleID, methodID, params, onFail, onSucc) { + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(global.nativeCallSyncHook, 'Calling synchronous methods on native ' + 'modules is not supported in Chrome.\n\n Consider providing alternative ' + 'methods to expose this method in debug mode, e.g. by exposing constants ' + 'ahead-of-time.'); + } + this.processCallbacks(moduleID, methodID, params, onFail, onSucc); + return global.nativeCallSyncHook(moduleID, methodID, params); + } + }, { + key: "processCallbacks", + value: function processCallbacks(moduleID, methodID, params, onFail, onSucc) { + var _this4 = this; + if (onFail || onSucc) { + if (__DEV__) { + this._debugInfo[this._callID] = [moduleID, methodID]; + if (this._callID > DEBUG_INFO_LIMIT) { + delete this._debugInfo[this._callID - DEBUG_INFO_LIMIT]; + } + if (this._successCallbacks.size > 500) { + var info = {}; + this._successCallbacks.forEach(function (_, callID) { + var debug = _this4._debugInfo[callID]; + var module = debug && _this4._remoteModuleTable[debug[0]]; + var method = debug && _this4._remoteMethodTable[debug[0]][debug[1]]; + info[callID] = { + module: module, + method: method + }; + }); + _$$_REQUIRE(_dependencyMap[3], "../Utilities/warnOnce")('excessive-number-of-pending-callbacks', "Please report: Excessive number of pending callbacks: " + this._successCallbacks.size + ". Some pending callbacks that might have leaked by never being called from native code: " + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(info)); + } + } + onFail && params.push(this._callID << 1); + onSucc && params.push(this._callID << 1 | 1); + this._successCallbacks.set(this._callID, onSucc); + this._failureCallbacks.set(this._callID, onFail); + } + if (__DEV__) { + global.nativeTraceBeginAsyncFlow && global.nativeTraceBeginAsyncFlow(TRACE_TAG_REACT_APPS, 'native', this._callID); + } + this._callID++; + } + }, { + key: "enqueueNativeCall", + value: function enqueueNativeCall(moduleID, methodID, params, onFail, onSucc) { + this.processCallbacks(moduleID, methodID, params, onFail, onSucc); + this._queue[MODULE_IDS].push(moduleID); + this._queue[METHOD_IDS].push(methodID); + if (__DEV__) { + var isValidArgument = function isValidArgument(val) { + switch (typeof val) { + case 'undefined': + case 'boolean': + case 'string': + return true; + case 'number': + return isFinite(val); + case 'object': + if (val == null) { + return true; + } + if (Array.isArray(val)) { + return val.every(isValidArgument); + } + for (var k in val) { + if (typeof val[k] !== 'function' && !isValidArgument(val[k])) { + return false; + } + } + return true; + case 'function': + return false; + default: + return false; + } + }; + + var replacer = function replacer(key, val) { + var t = typeof val; + if (t === 'function') { + return '<>'; + } else if (t === 'number' && !isFinite(val)) { + return '<<' + val.toString() + '>>'; + } else { + return val; + } + }; + + _$$_REQUIRE(_dependencyMap[2], "invariant")(isValidArgument(params), '%s is not usable as a native method argument', JSON.stringify(params, replacer)); + + _$$_REQUIRE(_dependencyMap[5], "../Utilities/deepFreezeAndThrowOnMutationInDev")(params); + } + this._queue[PARAMS].push(params); + var now = Date.now(); + if (global.nativeFlushQueueImmediate && now - this._lastFlush >= MIN_TIME_BETWEEN_FLUSHES_MS) { + var queue = this._queue; + this._queue = [[], [], [], this._callID]; + this._lastFlush = now; + global.nativeFlushQueueImmediate(queue); + } + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").counterEvent('pending_js_to_native_queue', this._queue[0].length); + if (__DEV__ && this.__spy && isFinite(moduleID)) { + this.__spy({ + type: TO_NATIVE, + module: this._remoteModuleTable[moduleID], + method: this._remoteMethodTable[moduleID][methodID], + args: params + }); + } else if (this.__spy) { + this.__spy({ + type: TO_NATIVE, + module: moduleID + '', + method: methodID, + args: params + }); + } + } + }, { + key: "createDebugLookup", + value: function createDebugLookup(moduleID, name, methods) { + if (__DEV__) { + this._remoteModuleTable[moduleID] = name; + this._remoteMethodTable[moduleID] = methods || []; + } + } + + }, { + key: "setReactNativeMicrotasksCallback", + value: + function setReactNativeMicrotasksCallback(fn) { + this._reactNativeMicrotasksCallback = fn; + } + + }, { + key: "__guard", + value: + + function __guard(fn) { + if (this.__shouldPauseOnThrow()) { + fn(); + } else { + try { + fn(); + } catch (error) { + _$$_REQUIRE(_dependencyMap[7], "../vendor/core/ErrorUtils").reportFatalError(error); + } + } + } + + }, { + key: "__shouldPauseOnThrow", + value: + function __shouldPauseOnThrow() { + return ( + typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true + ); + } + }, { + key: "__callReactNativeMicrotasks", + value: function __callReactNativeMicrotasks() { + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent('JSTimers.callReactNativeMicrotasks()'); + if (this._reactNativeMicrotasksCallback != null) { + this._reactNativeMicrotasksCallback(); + } + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").endEvent(); + } + }, { + key: "__callFunction", + value: function __callFunction(module, method, args) { + this._lastFlush = Date.now(); + this._eventLoopStartTime = this._lastFlush; + if (__DEV__ || this.__spy) { + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(module + "." + method + "(" + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + ")"); + } else { + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(module + "." + method + "(...)"); + } + if (this.__spy) { + this.__spy({ + type: TO_JS, + module: module, + method: method, + args: args + }); + } + var moduleMethods = this.getCallableModule(module); + if (!moduleMethods) { + var callableModuleNames = Object.keys(this._lazyCallableModules); + var n = callableModuleNames.length; + var callableModuleNameList = callableModuleNames.join(', '); + _$$_REQUIRE(_dependencyMap[2], "invariant")(false, "Failed to call into JavaScript module method " + module + "." + method + "(). Module has not been registered as callable. Registered callable JavaScript modules (n = " + n + "): " + callableModuleNameList + ".\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."); + } + if (!moduleMethods[method]) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(false, "Failed to call into JavaScript module method " + module + "." + method + "(). Module exists, but the method is undefined."); + } + moduleMethods[method].apply(moduleMethods, args); + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").endEvent(); + } + }, { + key: "__invokeCallback", + value: function __invokeCallback(cbID, args) { + this._lastFlush = Date.now(); + this._eventLoopStartTime = this._lastFlush; + + var callID = cbID >>> 1; + var isSuccess = cbID & 1; + var callback = isSuccess ? this._successCallbacks.get(callID) : this._failureCallbacks.get(callID); + if (__DEV__) { + var debug = this._debugInfo[callID]; + var _module = debug && this._remoteModuleTable[debug[0]]; + var method = debug && this._remoteMethodTable[debug[0]][debug[1]]; + _$$_REQUIRE(_dependencyMap[2], "invariant")(callback, "No callback found with cbID " + cbID + " and callID " + callID + " for " + (method ? " " + _module + "." + method + " - most likely the callback was already invoked" : "module " + (_module || '')) + (". Args: '" + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + "'")); + var profileName = debug ? '' : cbID; + if (callback && this.__spy) { + this.__spy({ + type: TO_JS, + module: null, + method: profileName, + args: args + }); + } + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent("MessageQueue.invokeCallback(" + profileName + ", " + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + ")"); + } + if (!callback) { + return; + } + this._successCallbacks.delete(callID); + this._failureCallbacks.delete(callID); + callback.apply(void 0, _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/toConsumableArray")(args)); + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").endEvent(); + } + } + }], [{ + key: "spy", + value: + + function spy(spyOrToggle) { + if (spyOrToggle === true) { + MessageQueue.prototype.__spy = function (info) { + console.log((info.type === TO_JS ? 'N->JS' : 'JS->N') + " : " + ("" + (info.module != null ? info.module + '.' : '') + info.method) + ("(" + JSON.stringify(info.args) + ")")); + }; + } else if (spyOrToggle === false) { + MessageQueue.prototype.__spy = null; + } else { + MessageQueue.prototype.__spy = spyOrToggle; + } + } + }]); + return MessageQueue; + }(); + module.exports = MessageQueue; +},24,[12,13,17,25,26,27,28,29,6],"node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var warnedKeys = {}; + + function warnOnce(key, message) { + if (warnedKeys[key]) { + return; + } + console.warn(message); + warnedKeys[key] = true; + } + module.exports = warnOnce; +},25,[],"node_modules/react-native/Libraries/Utilities/warnOnce.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createStringifySafeWithLimits = createStringifySafeWithLimits; + exports.default = void 0; + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + + function createStringifySafeWithLimits(limits) { + var _limits$maxDepth = limits.maxDepth, + maxDepth = _limits$maxDepth === void 0 ? Number.POSITIVE_INFINITY : _limits$maxDepth, + _limits$maxStringLimi = limits.maxStringLimit, + maxStringLimit = _limits$maxStringLimi === void 0 ? Number.POSITIVE_INFINITY : _limits$maxStringLimi, + _limits$maxArrayLimit = limits.maxArrayLimit, + maxArrayLimit = _limits$maxArrayLimit === void 0 ? Number.POSITIVE_INFINITY : _limits$maxArrayLimit, + _limits$maxObjectKeys = limits.maxObjectKeysLimit, + maxObjectKeysLimit = _limits$maxObjectKeys === void 0 ? Number.POSITIVE_INFINITY : _limits$maxObjectKeys; + var stack = []; + function replacer(key, value) { + while (stack.length && this !== stack[0]) { + stack.shift(); + } + if (typeof value === 'string') { + var truncatedString = '...(truncated)...'; + if (value.length > maxStringLimit + truncatedString.length) { + return value.substring(0, maxStringLimit) + truncatedString; + } + return value; + } + if (typeof value !== 'object' || value === null) { + return value; + } + var retval = value; + if (Array.isArray(value)) { + if (stack.length >= maxDepth) { + retval = "[ ... array with " + value.length + " values ... ]"; + } else if (value.length > maxArrayLimit) { + retval = value.slice(0, maxArrayLimit).concat(["... extra " + (value.length - maxArrayLimit) + " values truncated ..."]); + } + } else { + (0, _invariant.default)(typeof value === 'object', 'This was already found earlier'); + var keys = Object.keys(value); + if (stack.length >= maxDepth) { + retval = "{ ... object with " + keys.length + " keys ... }"; + } else if (keys.length > maxObjectKeysLimit) { + retval = {}; + for (var k of keys.slice(0, maxObjectKeysLimit)) { + retval[k] = value[k]; + } + var truncatedKey = '...(truncated keys)...'; + retval[truncatedKey] = keys.length - maxObjectKeysLimit; + } + } + stack.unshift(retval); + return retval; + } + return function stringifySafe(arg) { + if (arg === undefined) { + return 'undefined'; + } else if (arg === null) { + return 'null'; + } else if (typeof arg === 'function') { + try { + return arg.toString(); + } catch (e) { + return '[function unknown]'; + } + } else if (arg instanceof Error) { + return arg.name + ': ' + arg.message; + } else { + try { + var ret = JSON.stringify(arg, replacer); + if (ret === undefined) { + return '["' + typeof arg + '" failed to stringify]'; + } + return ret; + } catch (e) { + if (typeof arg.toString === 'function') { + try { + return arg.toString(); + } catch (E) {} + } + } + } + return '["' + typeof arg + '" failed to stringify]'; + }; + } + var stringifySafe = createStringifySafeWithLimits({ + maxDepth: 10, + maxStringLimit: 100, + maxArrayLimit: 50, + maxObjectKeysLimit: 50 + }); + var _default = stringifySafe; + exports.default = _default; +},26,[3,17],"node_modules/react-native/Libraries/Utilities/stringifySafe.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function deepFreezeAndThrowOnMutationInDev(object) { + if (__DEV__) { + if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) { + return object; + } + + var keys = Object.keys(object); + var _hasOwnProperty = Object.prototype.hasOwnProperty; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (_hasOwnProperty.call(object, key)) { + Object.defineProperty(object, key, { + get: identity.bind(null, object[key]) + }); + Object.defineProperty(object, key, { + set: throwOnImmutableMutation.bind(null, key) + }); + } + } + Object.freeze(object); + Object.seal(object); + for (var _i = 0; _i < keys.length; _i++) { + var _key = keys[_i]; + if (_hasOwnProperty.call(object, _key)) { + deepFreezeAndThrowOnMutationInDev(object[_key]); + } + } + } + return object; + } + + function throwOnImmutableMutation(key, value) { + throw Error('You attempted to set the key `' + key + '` with the value `' + JSON.stringify(value) + '` on an object that is meant to be immutable ' + 'and has been frozen.'); + } + function identity(value) { + return value; + } + module.exports = deepFreezeAndThrowOnMutationInDev; +},27,[],"node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var TRACE_TAG_REACT_APPS = 1 << 17; + var TRACE_TAG_JS_VM_CALLS = 1 << 27; + + var _enabled = false; + var _asyncCookie = 0; + var _markStack = []; + var _markStackIndex = -1; + var _canInstallReactHook = false; + + var REACT_MARKER = "\u269B"; + var userTimingPolyfill = __DEV__ ? { + mark: function mark(markName) { + if (_enabled) { + _markStackIndex++; + _markStack[_markStackIndex] = markName; + var systraceLabel = markName; + if (markName[0] === REACT_MARKER) { + var indexOfId = markName.lastIndexOf(' (#'); + var cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length; + systraceLabel = markName.slice(2, cutoffIndex); + } + Systrace.beginEvent(systraceLabel); + } + }, + measure: function measure(measureName, startMark, endMark) { + if (_enabled) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(typeof measureName === 'string' && typeof startMark === 'string' && typeof endMark === 'undefined', 'Only performance.measure(string, string) overload is supported.'); + var topMark = _markStack[_markStackIndex]; + _$$_REQUIRE(_dependencyMap[0], "invariant")(startMark === topMark, 'There was a mismatching performance.measure() call. ' + 'Expected "%s" but got "%s."', topMark, startMark); + _markStackIndex--; + Systrace.endEvent(); + } + }, + clearMarks: function clearMarks(markName) { + if (_enabled) { + if (_markStackIndex === -1) { + return; + } + if (markName === _markStack[_markStackIndex]) { + if (userTimingPolyfill != null) { + userTimingPolyfill.measure(markName, markName); + } + } + } + }, + clearMeasures: function clearMeasures() { + } + } : null; + function installPerformanceHooks(polyfill) { + if (polyfill) { + if (global.performance === undefined) { + global.performance = {}; + } + Object.keys(polyfill).forEach(function (methodName) { + if (typeof global.performance[methodName] !== 'function') { + global.performance[methodName] = polyfill[methodName]; + } + }); + } + } + var Systrace = { + installReactHook: function installReactHook() { + if (_enabled) { + if (__DEV__) { + installPerformanceHooks(userTimingPolyfill); + } + } + _canInstallReactHook = true; + }, + setEnabled: function setEnabled(enabled) { + if (_enabled !== enabled) { + if (__DEV__) { + if (enabled) { + global.nativeTraceBeginLegacy && global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS); + } else { + global.nativeTraceEndLegacy && global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS); + } + if (_canInstallReactHook) { + if (enabled) { + installPerformanceHooks(userTimingPolyfill); + } + } + } + _enabled = enabled; + } + }, + isEnabled: function isEnabled() { + return _enabled; + }, + beginEvent: function beginEvent(profileName, args) { + if (_enabled) { + var profileNameString = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileNameString, args); + } + }, + endEvent: function endEvent() { + if (_enabled) { + global.nativeTraceEndSection(TRACE_TAG_REACT_APPS); + } + }, + beginAsyncEvent: function beginAsyncEvent(profileName) { + var cookie = _asyncCookie; + if (_enabled) { + _asyncCookie++; + var profileNameString = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileNameString, cookie); + } + return cookie; + }, + endAsyncEvent: function endAsyncEvent(profileName, cookie) { + if (_enabled) { + var profileNameString = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileNameString, cookie); + } + }, + counterEvent: function counterEvent(profileName, value) { + if (_enabled) { + var profileNameString = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceCounter && global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileNameString, value); + } + } + }; + if (__DEV__) { + global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__SYSTRACE'] = Systrace; + } + module.exports = Systrace; +},28,[17],"node_modules/react-native/Libraries/Performance/Systrace.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + module.exports = global.ErrorUtils; +},29,[],"node_modules/react-native/Libraries/vendor/core/ErrorUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function defineLazyObjectProperty(object, name, descriptor) { + var get = descriptor.get; + var enumerable = descriptor.enumerable !== false; + var writable = descriptor.writable !== false; + var value; + var valueSet = false; + function getValue() { + if (!valueSet) { + valueSet = true; + setValue(get()); + } + return value; + } + function setValue(newValue) { + value = newValue; + valueSet = true; + Object.defineProperty(object, name, { + value: newValue, + configurable: true, + enumerable: enumerable, + writable: writable + }); + } + Object.defineProperty(object, name, { + get: getValue, + set: setValue, + configurable: true, + enumerable: enumerable + }); + } + module.exports = defineLazyObjectProperty; +},30,[],"node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('AccessibilityInfo'); + exports.default = _default; +},31,[16],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('AccessibilityManager'); + exports.default = _default; +},32,[16],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAccessibilityManager")); + + function legacySendAccessibilityEvent(reactTag, eventType) { + if (eventType === 'focus' && _NativeAccessibilityManager.default) { + _NativeAccessibilityManager.default.setAccessibilityFocus(reactTag); + } + } + module.exports = legacySendAccessibilityEvent; +},33,[3,32],"node_modules/react-native/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var ReactNative; + if (__DEV__) { + ReactNative = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactNativeRenderer-dev"); + } else { + ReactNative = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactNativeRenderer-prod"); + } + module.exports = ReactNative; +},34,[35,242],"node_modules/react-native/Libraries/Renderer/shims/ReactNative.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (__DEV__) { + (function () { + 'use strict'; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + "use strict"; + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + _$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var ReactNativePrivateInterface = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"); + var Scheduler = _$$_REQUIRE(_dependencyMap[3], "scheduler"); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + + var argsWithFormat = args.map(function (item) { + return String(item); + }); + + argsWithFormat.unshift("Warning: " + format); + + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + } + var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; + { + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + if (typeof document === "undefined" || document === null) { + throw new Error("The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); + } + var evt = document.createEvent("Event"); + var didCall = false; + + var didError = true; + + var windowEvent = window.event; + + var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); + function restoreAfterDispatch() { + fakeNode.removeEventListener(evtType, callCallback, false); + + if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { + window.event = windowEvent; + } + } + + var funcArgs = Array.prototype.slice.call(arguments, 3); + function callCallback() { + didCall = true; + restoreAfterDispatch(); + func.apply(context, funcArgs); + didError = false; + } + + var error; + + var didSetError = false; + var isCrossOriginError = false; + function handleWindowError(event) { + error = event.error; + didSetError = true; + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + if (event.defaultPrevented) { + if (error != null && typeof error === "object") { + try { + error._suppressLogging = true; + } catch (inner) { + } + } + } + } + + var evtType = "react-" + (name ? name : "invokeguardedcallback"); + + window.addEventListener("error", handleWindowError); + fakeNode.addEventListener(evtType, callCallback, false); + + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + if (windowEventDescriptor) { + Object.defineProperty(window, "event", windowEventDescriptor); + } + if (didCall && didError) { + if (!didSetError) { + error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); + } else if (isCrossOriginError) { + error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://reactjs.org/link/crossorigin-error for more information."); + } + this.onError(error); + } + + window.removeEventListener("error", handleWindowError); + if (!didCall) { + restoreAfterDispatch(); + return invokeGuardedCallbackProd.apply(this, arguments); + } + }; + } + } + var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; + var hasError = false; + var caughtError = null; + + var hasRethrowError = false; + var rethrowError = null; + var reporter = { + onError: function onError(error) { + hasError = true; + caughtError = error; + } + }; + + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = false; + caughtError = null; + invokeGuardedCallbackImpl$1.apply(reporter, arguments); + } + + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + var error = clearCaughtError(); + if (!hasRethrowError) { + hasRethrowError = true; + rethrowError = error; + } + } + } + + function rethrowCaughtError() { + if (hasRethrowError) { + var error = rethrowError; + hasRethrowError = false; + rethrowError = null; + throw error; + } + } + function hasCaughtError() { + return hasError; + } + function clearCaughtError() { + if (hasError) { + var error = caughtError; + hasError = false; + caughtError = null; + return error; + } else { + throw new Error("clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); + } + } + var isArrayImpl = Array.isArray; + + function isArray(a) { + return isArrayImpl(a); + } + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { + getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; + getInstanceFromNode = getInstanceFromNodeImpl; + getNodeFromInstance = getNodeFromInstanceImpl; + { + if (!getNodeFromInstance || !getInstanceFromNode) { + error("EventPluginUtils.setComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode."); + } + } + } + var validateEventDispatches; + { + validateEventDispatches = function validateEventDispatches(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { + error("EventPluginUtils: Invalid `event`."); + } + }; + } + + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + + function executeDispatchesInOrder(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, dispatchListeners, dispatchInstances); + } + event._dispatchListeners = null; + event._dispatchInstances = null; + } + + function executeDispatchesInOrderStopAtTrueImpl(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + if (dispatchListeners[i](event, dispatchInstances[i])) { + return dispatchInstances[i]; + } + } + } else if (dispatchListeners) { + if (dispatchListeners(event, dispatchInstances)) { + return dispatchInstances; + } + } + return null; + } + + function executeDispatchesInOrderStopAtTrue(event) { + var ret = executeDispatchesInOrderStopAtTrueImpl(event); + event._dispatchInstances = null; + event._dispatchListeners = null; + return ret; + } + + function executeDirectDispatch(event) { + { + validateEventDispatches(event); + } + var dispatchListener = event._dispatchListeners; + var dispatchInstance = event._dispatchInstances; + if (isArray(dispatchListener)) { + throw new Error("executeDirectDispatch(...): Invalid `event`."); + } + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + var res = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return res; + } + + function hasDispatches(event) { + return !!event._dispatchListeners; + } + var assign = Object.assign; + var EVENT_POOL_SIZE = 10; + + var EventInterface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + function functionThatReturnsTrue() { + return true; + } + function functionThatReturnsFalse() { + return false; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + delete this.isDefaultPrevented; + delete this.isPropagationStopped; + } + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchListeners = null; + this._dispatchInstances = null; + var Interface = this.constructor.Interface; + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + { + delete this[propName]; + } + + var normalize = Interface[propName]; + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === "target") { + this.target = nativeEventTarget; + } else { + this[propName] = nativeEvent[propName]; + } + } + } + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = true; + var event = this.nativeEvent; + if (!event) { + return; + } + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== "unknown") { + event.returnValue = false; + } + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + if (!event) { + return; + } + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== "unknown") { + event.cancelBubble = true; + } + this.isPropagationStopped = functionThatReturnsTrue; + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface; + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } + } + this.dispatchConfig = null; + this._targetInst = null; + this.nativeEvent = null; + this.isDefaultPrevented = functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + this._dispatchListeners = null; + this._dispatchInstances = null; + { + Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); + Object.defineProperty(this, "isDefaultPrevented", getPooledWarningPropertyDefinition("isDefaultPrevented", functionThatReturnsFalse)); + Object.defineProperty(this, "isPropagationStopped", getPooledWarningPropertyDefinition("isPropagationStopped", functionThatReturnsFalse)); + Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); + Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); + } + } + }); + SyntheticEvent.Interface = EventInterface; + + SyntheticEvent.extend = function (Interface) { + var Super = this; + var E = function E() {}; + E.prototype = Super.prototype; + var prototype = new E(); + function Class() { + return Super.apply(this, arguments); + } + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + + function getPooledWarningPropertyDefinition(propName, getVal) { + function set(val) { + var action = isFunction ? "setting the method" : "setting the property"; + warn(action, "This is effectively a no-op"); + return val; + } + function get() { + var action = isFunction ? "accessing the method" : "accessing the property"; + var result = isFunction ? "This is a no-op function" : "This is set to null"; + warn(action, result); + return getVal; + } + function warn(action, result) { + { + error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://reactjs.org/link/event-pooling for more information.", action, propName, result); + } + } + var isFunction = typeof getVal === "function"; + return { + configurable: true, + set: set, + get: get + }; + } + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + function releasePooledEvent(event) { + var EventConstructor = this; + if (!(event instanceof EventConstructor)) { + throw new Error("Trying to release an event instance into a pool of a different type."); + } + event.destructor(); + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory(nativeEvent) { + return null; + } + }); + + var TOP_TOUCH_START = "topTouchStart"; + var TOP_TOUCH_MOVE = "topTouchMove"; + var TOP_TOUCH_END = "topTouchEnd"; + var TOP_TOUCH_CANCEL = "topTouchCancel"; + var TOP_SCROLL = "topScroll"; + var TOP_SELECTION_CHANGE = "topSelectionChange"; + function isStartish(topLevelType) { + return topLevelType === TOP_TOUCH_START; + } + function isMoveish(topLevelType) { + return topLevelType === TOP_TOUCH_MOVE; + } + function isEndish(topLevelType) { + return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; + } + var startDependencies = [TOP_TOUCH_START]; + var moveDependencies = [TOP_TOUCH_MOVE]; + var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + + var MAX_TOUCH_BANK = 20; + var touchBank = []; + var touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function createTouchRecord(touch) { + return { + touchActive: true, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }; + } + function resetTouchRecord(touchRecord, touch) { + touchRecord.touchActive = true; + touchRecord.startPageX = touch.pageX; + touchRecord.startPageY = touch.pageY; + touchRecord.startTimeStamp = timestampForTouch(touch); + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchRecord.previousPageX = touch.pageX; + touchRecord.previousPageY = touch.pageY; + touchRecord.previousTimeStamp = timestampForTouch(touch); + } + function getTouchIdentifier(_ref) { + var identifier = _ref.identifier; + if (identifier == null) { + throw new Error("Touch object is missing identifier."); + } + { + if (identifier > MAX_TOUCH_BANK) { + error("Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK); + } + } + return identifier; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch); + var touchRecord = touchBank[identifier]; + if (touchRecord) { + resetTouchRecord(touchRecord, touch); + } else { + touchBank[identifier] = createTouchRecord(touch); + } + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = true; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = false; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch end without a touch start.\n" + "Touch End: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + } + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); + if (touchBank.length > MAX_TOUCH_BANK) { + printed += " (original size: " + touchBank.length + ")"; + } + return printed; + } + var instrumentationCallback; + var ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (instrumentationCallback != null) { + instrumentationCallback(topLevelType, nativeEvent); + } + if (isMoveish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchMove); + } else if (isStartish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchStart); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; + } + } else if (isEndish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchEnd); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + for (var i = 0; i < touchBank.length; i++) { + var touchTrackToCheck = touchBank[i]; + if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { + touchHistory.indexOfSingleActiveTouch = i; + break; + } + } + { + var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; + if (activeRecord == null || !activeRecord.touchActive) { + error("Cannot find single active touch."); + } + } + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + if (next == null) { + throw new Error("accumulate(...): Accumulated items must not be null or undefined."); + } + if (current == null) { + return next; + } + + if (isArray(current)) { + return current.concat(next); + } + if (isArray(next)) { + return [current].concat(next); + } + return [current, next]; + } + + function accumulateInto(current, next) { + if (next == null) { + throw new Error("accumulateInto(...): Accumulated items must not be null or undefined."); + } + if (current == null) { + return next; + } + + if (isArray(current)) { + if (isArray(next)) { + current.push.apply(current, next); + return current; + } + current.push(next); + return current; + } + if (isArray(next)) { + return [current].concat(next); + } + return [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); + } + } + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; + + var HostRoot = 3; + + var HostPortal = 4; + + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + + var responderInst = null; + + var trackedTouchCount = 0; + var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (ResponderEventPlugin.GlobalResponderHandler !== null) { + ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + }; + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: [TOP_SCROLL] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: [TOP_SELECTION_CHANGE] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; + } + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + var depthB = 0; + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } + + var depth = depthA; + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; + } + instA = getParent(instA); + instB = getParent(instB); + } + return null; + } + + function isAncestor(instA, instB) { + while (instB) { + if (instA === instB || instA === instB.alternate) { + return true; + } + instB = getParent(instB); + } + return false; + } + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent(inst); + } + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + function getListener(inst, registrationName) { + var stateNode = inst.stateNode; + if (stateNode === null) { + return null; + } + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + return null; + } + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + } + return listener; + } + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + function accumulateDirectionalDispatches(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); + } + } + var listener = listenerAtPhase(inst, event, phase); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } + } + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + var parentInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatchesSkipTarget(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); + } + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } + + function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); + + var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; + var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); + shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + if (skipOverBubbleShouldSetFrom) { + accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); + } else { + accumulateTwoPhaseDispatches(shouldSetEvent); + } + var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); + if (!shouldSetEvent.isPersistent()) { + shouldSetEvent.constructor.release(shouldSetEvent); + } + if (!wantsResponderInst || wantsResponderInst === responderInst) { + return null; + } + var extracted; + var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); + grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(grantEvent); + var blockHostResponder = executeDirectDispatch(grantEvent) === true; + if (responderInst) { + var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); + terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminationRequestEvent); + var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); + if (!terminationRequestEvent.isPersistent()) { + terminationRequestEvent.constructor.release(terminationRequestEvent); + } + if (shouldSwitch) { + var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminateEvent); + extracted = accumulate(extracted, [grantEvent, terminateEvent]); + changeResponder(wantsResponderInst, blockHostResponder); + } else { + var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); + rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(rejectEvent); + extracted = accumulate(extracted, rejectEvent); + } + } else { + extracted = accumulate(extracted, grantEvent); + changeResponder(wantsResponderInst, blockHostResponder); + } + return extracted; + } + + function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { + return topLevelInst && ( + topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); + } + + function noResponderTouches(nativeEvent) { + var touches = nativeEvent.touches; + if (!touches || touches.length === 0) { + return true; + } + for (var i = 0; i < touches.length; i++) { + var activeTouch = touches[i]; + var target = activeTouch.target; + if (target !== null && target !== undefined && target !== 0) { + var targetInst = getInstanceFromNode(target); + if (isAncestor(responderInst, targetInst)) { + return false; + } + } + } + return true; + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + if (isStartish(topLevelType)) { + trackedTouchCount += 1; + } else if (isEndish(topLevelType)) { + if (trackedTouchCount >= 0) { + trackedTouchCount -= 1; + } else { + { + warn("Ended a touch event which was not counted in `trackedTouchCount`."); + } + return null; + } + } + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + + var isResponderTouchStart = responderInst && isStartish(topLevelType); + var isResponderTouchMove = responderInst && isMoveish(topLevelType); + var isResponderTouchEnd = responderInst && isEndish(topLevelType); + var incrementalTouch = isResponderTouchStart ? eventTypes.responderStart : isResponderTouchMove ? eventTypes.responderMove : isResponderTouchEnd ? eventTypes.responderEnd : null; + if (incrementalTouch) { + var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); + gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(gesture); + extracted = accumulate(extracted, gesture); + } + var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; + var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); + var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; + if (finalTouch) { + var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); + finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(finalEvent); + extracted = accumulate(extracted, finalEvent); + changeResponder(null); + } + return extracted; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }; + + var eventPluginOrder = null; + + var namesToPlugins = {}; + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + return; + } + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + if (pluginIndex <= -1) { + throw new Error("EventPluginRegistry: Cannot inject event plugins that do not exist in " + ("the plugin ordering, `" + pluginName + "`.")); + } + if (plugins[pluginIndex]) { + continue; + } + if (!pluginModule.extractEvents) { + throw new Error("EventPluginRegistry: Event plugins must implement an `extractEvents` " + ("method, but `" + pluginName + "` does not.")); + } + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + for (var eventName in publishedEvents) { + if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { + throw new Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } + } + } + } + + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("event name, `" + eventName + "`.")); + } + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; + } + return false; + } + + function publishRegistrationName(registrationName, pluginModule, eventName) { + if (registrationNameModules[registrationName]) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("registration name, `" + registrationName + "`.")); + } + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + } + } + + var plugins = []; + + var eventNameDispatchConfigs = {}; + + var registrationNameModules = {}; + + var registrationNameDependencies = {}; + + function injectEventPluginOrder(injectedEventPluginOrder) { + if (eventPluginOrder) { + throw new Error("EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); + } + + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; + } + var pluginModule = injectedNamesToPlugins[pluginName]; + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + if (namesToPlugins[pluginName]) { + throw new Error("EventPluginRegistry: Cannot inject two different event plugins " + ("using the same name, `" + pluginName + "`.")); + } + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } + } + if (isOrderingDirty) { + recomputePluginOrdering(); + } + } + + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (stateNode === null) { + return null; + } + + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + return null; + } + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + } + + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) { + return listener; + } + + var listeners = []; + if (listener) { + listeners.push(listener); + } + + var requestedPhaseIsCapture = phase === "captured"; + var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + + if (stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length > 0) { + var eventListeners = stateNode.canonical._eventListeners[mangledImperativeRegistrationName]; + eventListeners.forEach(function (listenerObj) { + var isCaptureEvent = listenerObj.options.capture != null && listenerObj.options.capture; + if (isCaptureEvent !== requestedPhaseIsCapture) { + return; + } + + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new ReactNativePrivateInterface.CustomEvent(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = true; + + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + + if (listenerObj.options.once) { + listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + + if (!listenerObj.invalidated) { + listenerObj.invalidated = true; + listenerObj.listener.apply(listenerObj, arguments); + } + }); + } else { + listeners.push(listenerFnWrapper); + } + }); + } + if (listeners.length === 0) { + return null; + } + if (listeners.length === 1) { + return listeners[0]; + } + return listeners; + } + var customBubblingEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; + + function listenersAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListeners(inst, registrationName, propagationPhase, true); + } + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArray(listeners) ? listeners.length : 1 : 0; + if (listenersLength > 0) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); + + if (event._dispatchInstances == null && listenersLength === 1) { + event._dispatchInstances = inst; + } else { + event._dispatchInstances = event._dispatchInstances || []; + if (!isArray(event._dispatchInstances)) { + event._dispatchInstances = [event._dispatchInstances]; + } + for (var i = 0; i < listenersLength; i++) { + event._dispatchInstances.push(inst); + } + } + } + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); + } + } + var listeners = listenersAtPhase(inst, event, phase); + accumulateListenersAndInstances(inst, event, listeners); + } + function getParent$1(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; + } + + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent$1(inst); + } + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + if (skipBubbling) { + fn(path[0], "bubbled", arg); + } else { + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, false); + } + } + function accumulateTwoPhaseDispatches$1(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle$1); + } + function accumulateCapturePhaseDispatches(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, true); + } + } + + function accumulateDispatches$1(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listeners = getListeners(inst, registrationName, "bubbled", false); + accumulateListenersAndInstances(inst, event, listeners); + } + } + + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches$1(event._targetInst, null, event); + } + } + function accumulateDirectDispatches$1(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle$1); + } + + var ReactNativeBridgeEventPlugin = { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (targetInst == null) { + return null; + } + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType]; + var directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) { + throw new Error( + 'Unsupported top level event type "' + topLevelType + '" dispatched'); + } + var event = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) { + var skipBubbling = event != null && event.dispatchConfig.phasedRegistrationNames != null && event.dispatchConfig.phasedRegistrationNames.skipBubbling; + if (skipBubbling) { + accumulateCapturePhaseDispatches(event); + } else { + accumulateTwoPhaseDispatches$1(event); + } + } else if (directDispatchConfig) { + accumulateDirectDispatches$1(event); + } else { + return null; + } + return event; + } + }; + var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + + injectEventPluginOrder(ReactNativeEventPluginOrder); + + injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + var instanceCache = new Map(); + var instanceProps = new Map(); + function precacheFiberNode(hostInst, tag) { + instanceCache.set(tag, hostInst); + } + function uncacheFiberNode(tag) { + instanceCache.delete(tag); + instanceProps.delete(tag); + } + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; + } + function getTagFromInstance(inst) { + var nativeInstance = inst.stateNode; + var tag = nativeInstance._nativeTag; + if (tag === undefined) { + nativeInstance = nativeInstance.canonical; + tag = nativeInstance._nativeTag; + } + if (!tag) { + throw new Error("All native instances should have a tag."); + } + return nativeInstance; + } + function getFiberCurrentPropsFromNode$1(stateNode) { + return instanceProps.get(stateNode._nativeTag) || null; + } + function updateFiberProps(tag, props) { + instanceProps.set(tag, props); + } + + var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + }; + var isInsideEventHandler = false; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) { + return fn(bookkeeping); + } + isInsideEventHandler = true; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = false; + } + } + function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { + batchedUpdatesImpl = _batchedUpdatesImpl; + } + + var eventQueue = null; + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { + if (event) { + executeDispatchesInOrder(event); + if (!event.isPersistent()) { + event.constructor.release(event); + } + } + }; + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e); + }; + function runEventsInBatch(events) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } + + var processingEventQueue = eventQueue; + eventQueue = null; + if (!processingEventQueue) { + return; + } + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + if (eventQueue) { + throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + } + + rethrowCaughtError(); + } + + var EMPTY_NATIVE_EVENT = {}; + + var touchSubsequence = function touchSubsequence(touches, indices) { + var ret = []; + for (var i = 0; i < indices.length; i++) { + ret.push(touches[indices[i]]); + } + return ret; + }; + + var removeTouchesAtIndices = function removeTouchesAtIndices(touches, indices) { + var rippedOut = []; + + var temp = touches; + for (var i = 0; i < indices.length; i++) { + var index = indices[i]; + rippedOut.push(touches[index]); + temp[index] = null; + } + var fillAt = 0; + for (var j = 0; j < temp.length; j++) { + var cur = temp[j]; + if (cur !== null) { + temp[fillAt++] = cur; + } + } + temp.length = fillAt; + return rippedOut; + }; + + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT; + var inst = getInstanceFromTag(rootNodeID); + var target = null; + if (inst != null) { + target = inst.stateNode; + } + batchedUpdates(function () { + runExtractedPluginEventsInBatch(topLevelType, inst, nativeEvent, target); + }); + } + + function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + var legacyPlugins = plugins; + for (var i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } + } + return events; + } + function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events); + } + + function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); + } + + function receiveTouches(eventTopLevelType, touches, changedIndices) { + var changedTouches = eventTopLevelType === "topTouchEnd" || eventTopLevelType === "topTouchCancel" ? removeTouchesAtIndices(touches, changedIndices) : touchSubsequence(touches, changedIndices); + for (var jj = 0; jj < changedTouches.length; jj++) { + var touch = changedTouches[jj]; + + touch.changedTouches = changedTouches; + touch.touches = touches; + var nativeEvent = touch; + var rootNodeID = null; + var target = nativeEvent.target; + if (target !== null && target !== undefined) { + if (target < 1) { + { + error("A view is reporting that a touch occurred on tag zero."); + } + } else { + rootNodeID = target; + } + } + + _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); + } + } + + var ReactNativeGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + if (to !== null) { + var tag = to.stateNode._nativeTag; + ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); + } else { + ReactNativePrivateInterface.UIManager.clearJSResponder(); + } + } + }; + + ReactNativePrivateInterface.RCTEventEmitter.register({ + receiveEvent: receiveEvent, + receiveTouches: receiveTouches + }); + setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromTag, getTagFromInstance); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactNativeGlobalResponderHandler); + + function get(key) { + return key._reactInternals; + } + function set(key, value) { + key._reactInternals = value; + } + var enableSchedulingProfiler = false; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var warnAboutStringRefs = false; + var enableSuspenseAvoidThisFallback = false; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + + function getContextName(type) { + return type.displayName || "Context"; + } + + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + + } + } + + return null; + } + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, + type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + return "StrictMode"; + } + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; + } + return null; + } + + var NoFlags = + 0; + var PerformedWork = + 1; + + var Placement = + 2; + var Update = + 4; + var ChildDeletion = + 16; + var ContentReset = + 32; + var Callback = + 64; + var DidCapture = + 128; + var ForceClientRender = + 256; + var Ref = + 512; + var Snapshot = + 1024; + var Passive = + 2048; + var Hydrating = + 4096; + var Visibility = + 8192; + var StoreConsistency = + 16384; + var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; + + var HostEffectMask = + 32767; + + var Incomplete = + 32768; + var ShouldCapture = + 65536; + var ForceUpdateForLegacySuspense = + 131072; + var Forked = + 1048576; + + var RefStatic = + 2097152; + var LayoutStatic = + 4194304; + var PassiveStatic = + 8388608; + + var BeforeMutationMask = + Update | Snapshot | 0; + var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; + var LayoutMask = Update | Callback | Ref | Visibility; + + var PassiveMask = Passive | ChildDeletion; + + var StaticMask = LayoutStatic | PassiveStatic | RefStatic; + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + var nextNode = node; + do { + node = nextNode; + if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + nearestMounted = node.return; + } + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } + } + if (node.tag === HostRoot) { + return nearestMounted; + } + + return null; + } + function isFiberMounted(fiber) { + return getNearestMountedFiber(fiber) === fiber; + } + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + if (!instance._warnedAboutRefsInRender) { + error("%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"); + } + instance._warnedAboutRefsInRender = true; + } + } + var fiber = get(component); + if (!fiber) { + return false; + } + return getNearestMountedFiber(fiber) === fiber; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error("Unable to find node on an unmounted component."); + } + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error("Unable to find node on an unmounted component."); + } + if (nearestMounted !== fiber) { + return null; + } + return fiber; + } + + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + break; + } + var parentB = parentA.alternate; + if (parentB === null) { + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } + + break; + } + + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } + + throw new Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error("Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); + } + } + } + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + + if (a.tag !== HostRoot) { + throw new Error("Unable to find node on an unmounted component."); + } + if (a.stateNode.current === a) { + return fiber; + } + + return alternate; + } + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; + } + function findCurrentHostFiberImpl(node) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } + var child = node.child; + while (child !== null) { + var match = findCurrentHostFiberImpl(child); + if (match !== null) { + return match; + } + child = child.sibling; + } + return null; + } + + var emptyObject = {}; + + var removedKeys = null; + var removedKeyCount = 0; + var deepDifferOptions = { + unsafelyIgnoreFunctions: true + }; + function defaultDiffer(prevProp, nextProp) { + if (typeof nextProp !== "object" || nextProp === null) { + return true; + } else { + return ReactNativePrivateInterface.deepDiffer(prevProp, nextProp, deepDifferOptions); + } + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArray(node)) { + var i = node.length; + while (i-- && removedKeyCount > 0) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } + } else if (node && removedKeyCount > 0) { + var obj = node; + for (var propKey in removedKeys) { + if (!removedKeys[propKey]) { + continue; + } + var nextProp = obj[propKey]; + if (nextProp === undefined) { + continue; + } + var attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; + } + + if (typeof nextProp === "function") { + nextProp = true; + } + if (typeof nextProp === "undefined") { + nextProp = null; + } + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + removedKeys[propKey] = false; + removedKeyCount--; + } + } + } + function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { + var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; + var i; + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); + } + for (; i < prevArray.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); + } + for (; i < nextArray.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); + } + return updatePayload; + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) { + return updatePayload; + } + if (!prevProp || !nextProp) { + if (nextProp) { + return addNestedProperty(updatePayload, nextProp, validAttributes); + } + if (prevProp) { + return clearNestedProperty(updatePayload, prevProp, validAttributes); + } + return updatePayload; + } + if (!isArray(prevProp) && !isArray(nextProp)) { + return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp) && isArray(nextProp)) { + return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp)) { + return diffProperties(updatePayload, + ReactNativePrivateInterface.flattenStyle(prevProp), + nextProp, validAttributes); + } + return diffProperties(updatePayload, prevProp, + ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) { + return updatePayload; + } + if (!isArray(nextProp)) { + return addProperties(updatePayload, nextProp, validAttributes); + } + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) { + return updatePayload; + } + if (!isArray(prevProp)) { + return clearProperties(updatePayload, prevProp, validAttributes); + } + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig; + var nextProp; + var prevProp; + for (var propKey in nextProps) { + attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; + } + + prevProp = prevProps[propKey]; + nextProp = nextProps[propKey]; + + if (typeof nextProp === "function") { + nextProp = true; + + if (typeof prevProp === "function") { + prevProp = true; + } + } + + if (typeof nextProp === "undefined") { + nextProp = null; + if (typeof prevProp === "undefined") { + prevProp = null; + } + } + if (removedKeys) { + removedKeys[propKey] = false; + } + if (updatePayload && updatePayload[propKey] !== undefined) { + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + continue; + } + if (prevProp === nextProp) { + continue; + } + + if (typeof attributeConfig !== "object") { + if (defaultDiffer(prevProp, nextProp)) { + (updatePayload || (updatePayload = {}))[propKey] = nextProp; + } + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); + if (shouldUpdate) { + var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + (updatePayload || (updatePayload = {}))[propKey] = _nextValue; + } + } else { + removedKeys = null; + removedKeyCount = 0; + + updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); + if (removedKeyCount > 0 && updatePayload) { + restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); + removedKeys = null; + } + } + } + + for (var _propKey in prevProps) { + if (nextProps[_propKey] !== undefined) { + continue; + } + + attributeConfig = validAttributes[_propKey]; + if (!attributeConfig) { + continue; + } + + if (updatePayload && updatePayload[_propKey] !== undefined) { + continue; + } + prevProp = prevProps[_propKey]; + if (prevProp === undefined) { + continue; + } + + if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + (updatePayload || (updatePayload = {}))[_propKey] = null; + if (!removedKeys) { + removedKeys = {}; + } + if (!removedKeys[_propKey]) { + removedKeys[_propKey] = true; + removedKeyCount++; + } + } else { + updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); + } + } + return updatePayload; + } + + function addProperties(updatePayload, props, validAttributes) { + return diffProperties(updatePayload, emptyObject, props, validAttributes); + } + + function clearProperties(updatePayload, prevProps, validAttributes) { + return diffProperties(updatePayload, prevProps, emptyObject, validAttributes); + } + function create(props, validAttributes) { + return addProperties(null, + props, validAttributes); + } + function diff(prevProps, nextProps, validAttributes) { + return diffProperties(null, + prevProps, nextProps, validAttributes); + } + + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (!callback) { + return undefined; + } + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } + + return callback.apply(context, arguments); + }; + } + function warnForStyleProps(props, validAttributes) { + { + for (var key in validAttributes.style) { + if (!(validAttributes[key] || props[key] === undefined)) { + error("You are setting the style `{ %s" + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { %s" + ": ... } }`", key, key); + } + } + } + } + var ReactNativeFiberHostComponent = function () { + function ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandleDEV) { + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; + { + this._internalFiberInstanceHandleDEV = internalInstanceHandleDEV; + } + } + var _proto = ReactNativeFiberHostComponent.prototype; + _proto.blur = function blur() { + ReactNativePrivateInterface.TextInputState.blurTextInput(this); + }; + _proto.focus = function focus() { + ReactNativePrivateInterface.TextInputState.focusTextInput(this); + }; + _proto.measure = function measure(callback) { + ReactNativePrivateInterface.UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureInWindow = function measureInWindow(callback) { + ReactNativePrivateInterface.UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) + { + var relativeNode; + if (typeof relativeToNativeNode === "number") { + relativeNode = relativeToNativeNode; + } else { + var nativeNode = relativeToNativeNode; + if (nativeNode._nativeTag) { + relativeNode = nativeNode._nativeTag; + } + } + if (relativeNode == null) { + { + error("Warning: ref.measureLayout must be called with a node handle or a ref to a native component."); + } + return; + } + ReactNativePrivateInterface.UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + }; + _proto.setNativeProps = function setNativeProps(nativeProps) { + { + warnForStyleProps(nativeProps, this.viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, this.viewConfig.validAttributes); + + if (updatePayload != null) { + ReactNativePrivateInterface.UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); + } + }; + return ReactNativeFiberHostComponent; + }(); + + var scheduleCallback = Scheduler.unstable_scheduleCallback; + var cancelCallback = Scheduler.unstable_cancelCallback; + var shouldYield = Scheduler.unstable_shouldYield; + var requestPaint = Scheduler.unstable_requestPaint; + var now = Scheduler.unstable_now; + var ImmediatePriority = Scheduler.unstable_ImmediatePriority; + var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; + var NormalPriority = Scheduler.unstable_NormalPriority; + var IdlePriority = Scheduler.unstable_IdlePriority; + var rendererID = null; + var injectedHook = null; + var hasLoggedError = false; + var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + return false; + } + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) { + return true; + } + if (!hook.supportsFiber) { + { + error("The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://reactjs.org/link/react-devtools"); + } + + return true; + } + try { + if (enableSchedulingProfiler) { + internals = assign({}, internals, { + getLaneLabelMap: getLaneLabelMap, + injectProfilingHooks: injectProfilingHooks + }); + } + rendererID = hook.inject(internals); + + injectedHook = hook; + } catch (err) { + { + error("React instrumentation encountered an error: %s.", err); + } + } + if (hook.checkDCE) { + return true; + } else { + return false; + } + } + function onScheduleRoot(root, children) { + { + if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") { + try { + injectedHook.onScheduleFiberRoot(rendererID, root, children); + } catch (err) { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitRoot(root, eventPriority) { + if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { + try { + var didError = (root.current.flags & DidCapture) === DidCapture; + if (enableProfilerTimer) { + var schedulerPriority; + switch (eventPriority) { + case DiscreteEventPriority: + schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority; + break; + } + injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError); + } else { + injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); + } + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onPostCommitRoot(root) { + if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") { + try { + injectedHook.onPostCommitFiberRoot(rendererID, root); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitUnmount(fiber) { + if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function") { + try { + injectedHook.onCommitFiberUnmount(rendererID, fiber); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function injectProfilingHooks(profilingHooks) {} + function getLaneLabelMap() { + { + return null; + } + } + function markComponentRenderStopped() {} + function markComponentErrored(fiber, thrownValue, lanes) {} + function markComponentSuspended(fiber, wakeable, lanes) {} + var NoMode = + 0; + + var ConcurrentMode = + 1; + var ProfileMode = + 2; + var StrictLegacyMode = + 8; + + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; + + var log = Math.log; + var LN2 = Math.LN2; + function clz32Fallback(x) { + var asUint = x >>> 0; + if (asUint === 0) { + return 32; + } + return 31 - (log(asUint) / LN2 | 0) | 0; + } + + var TotalLanes = 31; + var NoLanes = + 0; + var NoLane = + 0; + var SyncLane = + 1; + var InputContinuousHydrationLane = + 2; + var InputContinuousLane = + 4; + var DefaultHydrationLane = + 8; + var DefaultLane = + 16; + var TransitionHydrationLane = + 32; + var TransitionLanes = + 4194240; + var TransitionLane1 = + 64; + var TransitionLane2 = + 128; + var TransitionLane3 = + 256; + var TransitionLane4 = + 512; + var TransitionLane5 = + 1024; + var TransitionLane6 = + 2048; + var TransitionLane7 = + 4096; + var TransitionLane8 = + 8192; + var TransitionLane9 = + 16384; + var TransitionLane10 = + 32768; + var TransitionLane11 = + 65536; + var TransitionLane12 = + 131072; + var TransitionLane13 = + 262144; + var TransitionLane14 = + 524288; + var TransitionLane15 = + 1048576; + var TransitionLane16 = + 2097152; + var RetryLanes = + 130023424; + var RetryLane1 = + 4194304; + var RetryLane2 = + 8388608; + var RetryLane3 = + 16777216; + var RetryLane4 = + 33554432; + var RetryLane5 = + 67108864; + var SomeRetryLane = RetryLane1; + var SelectiveHydrationLane = + 134217728; + var NonIdleLanes = + 268435455; + var IdleHydrationLane = + 268435456; + var IdleLane = + 536870912; + var OffscreenLane = + 1073741824; + var NoTimestamp = -1; + var nextTransitionLane = TransitionLane1; + var nextRetryLane = RetryLane1; + function getHighestPriorityLanes(lanes) { + switch (getHighestPriorityLane(lanes)) { + case SyncLane: + return SyncLane; + case InputContinuousHydrationLane: + return InputContinuousHydrationLane; + case InputContinuousLane: + return InputContinuousLane; + case DefaultHydrationLane: + return DefaultHydrationLane; + case DefaultLane: + return DefaultLane; + case TransitionHydrationLane: + return TransitionHydrationLane; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return lanes & TransitionLanes; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return lanes & RetryLanes; + case SelectiveHydrationLane: + return SelectiveHydrationLane; + case IdleHydrationLane: + return IdleHydrationLane; + case IdleLane: + return IdleLane; + case OffscreenLane: + return OffscreenLane; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + + return lanes; + } + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (pendingLanes === NoLanes) { + return NoLanes; + } + var nextLanes = NoLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + + var nonIdlePendingLanes = pendingLanes & NonIdleLanes; + if (nonIdlePendingLanes !== NoLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + if (nonIdleUnblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); + } else { + var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; + if (nonIdlePingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); + } + } + } else { + var unblockedLanes = pendingLanes & ~suspendedLanes; + if (unblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(unblockedLanes); + } else { + if (pingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(pingedLanes); + } + } + } + if (nextLanes === NoLanes) { + return NoLanes; + } + + if (wipLanes !== NoLanes && wipLanes !== nextLanes && + (wipLanes & suspendedLanes) === NoLanes) { + var nextLane = getHighestPriorityLane(nextLanes); + var wipLane = getHighestPriorityLane(wipLanes); + if ( + nextLane >= wipLane || + nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) { + return wipLanes; + } + } + if ((nextLanes & InputContinuousLane) !== NoLanes) { + nextLanes |= pendingLanes & DefaultLane; + } + + var entangledLanes = root.entangledLanes; + if (entangledLanes !== NoLanes) { + var entanglements = root.entanglements; + var lanes = nextLanes & entangledLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + nextLanes |= entanglements[index]; + lanes &= ~lane; + } + } + return nextLanes; + } + function getMostRecentEventTime(root, lanes) { + var eventTimes = root.eventTimes; + var mostRecentEventTime = NoTimestamp; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var eventTime = eventTimes[index]; + if (eventTime > mostRecentEventTime) { + mostRecentEventTime = eventTime; + } + lanes &= ~lane; + } + return mostRecentEventTime; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case SyncLane: + case InputContinuousHydrationLane: + case InputContinuousLane: + return currentTime + 250; + case DefaultHydrationLane: + case DefaultLane: + case TransitionHydrationLane: + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return currentTime + 5000; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return NoTimestamp; + case SelectiveHydrationLane: + case IdleHydrationLane: + case IdleLane: + case OffscreenLane: + return NoTimestamp; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + return NoTimestamp; + } + } + function markStarvedLanesAsExpired(root, currentTime) { + var pendingLanes = root.pendingLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + var expirationTimes = root.expirationTimes; + + var lanes = pendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var expirationTime = expirationTimes[index]; + if (expirationTime === NoTimestamp) { + if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { + expirationTimes[index] = computeExpirationTime(lane, currentTime); + } + } else if (expirationTime <= currentTime) { + root.expiredLanes |= lane; + } + lanes &= ~lane; + } + } + function getLanesToRetrySynchronouslyOnError(root) { + var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; + if (everythingButOffscreen !== NoLanes) { + return everythingButOffscreen; + } + if (everythingButOffscreen & OffscreenLane) { + return OffscreenLane; + } + return NoLanes; + } + function includesSyncLane(lanes) { + return (lanes & SyncLane) !== NoLanes; + } + function includesNonIdleWork(lanes) { + return (lanes & NonIdleLanes) !== NoLanes; + } + function includesOnlyRetries(lanes) { + return (lanes & RetryLanes) === lanes; + } + function includesOnlyNonUrgentLanes(lanes) { + var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; + return (lanes & UrgentLanes) === NoLanes; + } + function includesOnlyTransitions(lanes) { + return (lanes & TransitionLanes) === lanes; + } + function includesBlockingLane(root, lanes) { + var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane; + return (lanes & SyncDefaultLanes) !== NoLanes; + } + function includesExpiredLane(root, lanes) { + return (lanes & root.expiredLanes) !== NoLanes; + } + function isTransitionLane(lane) { + return (lane & TransitionLanes) !== NoLanes; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + if ((nextTransitionLane & TransitionLanes) === NoLanes) { + nextTransitionLane = TransitionLane1; + } + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + if ((nextRetryLane & RetryLanes) === NoLanes) { + nextRetryLane = RetryLane1; + } + return lane; + } + function getHighestPriorityLane(lanes) { + return lanes & -lanes; + } + function pickArbitraryLane(lanes) { + return getHighestPriorityLane(lanes); + } + function pickArbitraryLaneIndex(lanes) { + return 31 - clz32(lanes); + } + function laneToIndex(lane) { + return pickArbitraryLaneIndex(lane); + } + function includesSomeLane(a, b) { + return (a & b) !== NoLanes; + } + function isSubsetOfLanes(set, subset) { + return (set & subset) === subset; + } + function mergeLanes(a, b) { + return a | b; + } + function removeLanes(set, subset) { + return set & ~subset; + } + function intersectLanes(a, b) { + return a & b; + } + + function laneToLanes(lane) { + return lane; + } + function createLaneMap(initial) { + var laneMap = []; + for (var i = 0; i < TotalLanes; i++) { + laneMap.push(initial); + } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + + if (updateLane !== IdleLane) { + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + } + var eventTimes = root.eventTimes; + var index = laneToIndex(updateLane); + + eventTimes[index] = eventTime; + } + function markRootSuspended(root, suspendedLanes) { + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + + var expirationTimes = root.expirationTimes; + var lanes = suspendedLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootPinged(root, pingedLanes, eventTime) { + root.pingedLanes |= root.suspendedLanes & pingedLanes; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + var entanglements = root.entanglements; + var eventTimes = root.eventTimes; + var expirationTimes = root.expirationTimes; + + var lanes = noLongerPendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + entanglements[index] = NoLanes; + eventTimes[index] = NoTimestamp; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + var entanglements = root.entanglements; + var lanes = rootEntangledLanes; + while (lanes) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + if ( + lane & entangledLanes | + entanglements[index] & entangledLanes) { + entanglements[index] |= entangledLanes; + } + lanes &= ~lane; + } + } + function getBumpedLaneForHydration(root, renderLanes) { + var renderLane = getHighestPriorityLane(renderLanes); + var lane; + switch (renderLane) { + case InputContinuousLane: + lane = InputContinuousHydrationLane; + break; + case DefaultLane: + lane = DefaultHydrationLane; + break; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + lane = TransitionHydrationLane; + break; + case IdleLane: + lane = IdleHydrationLane; + break; + default: + lane = NoLane; + break; + } + + if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) { + return NoLane; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (!isDevToolsPresent) { + return; + } + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + updaters.add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (!isDevToolsPresent) { + return; + } + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + var memoizedUpdaters = root.memoizedUpdaters; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + if (updaters.size > 0) { + updaters.forEach(function (fiber) { + var alternate = fiber.alternate; + if (alternate === null || !memoizedUpdaters.has(alternate)) { + memoizedUpdaters.add(fiber); + } + }); + updaters.clear(); + } + lanes &= ~lane; + } + } + function getTransitionsForLanes(root, lanes) { + { + return null; + } + } + var DiscreteEventPriority = SyncLane; + var ContinuousEventPriority = InputContinuousLane; + var DefaultEventPriority = DefaultLane; + var IdleEventPriority = IdleLane; + var currentUpdatePriority = NoLane; + function getCurrentUpdatePriority() { + return currentUpdatePriority; + } + function setCurrentUpdatePriority(newPriority) { + currentUpdatePriority = newPriority; + } + function higherEventPriority(a, b) { + return a !== 0 && a < b ? a : b; + } + function lowerEventPriority(a, b) { + return a === 0 || a > b ? a : b; + } + function isHigherEventPriority(a, b) { + return a !== 0 && a < b; + } + function lanesToEventPriority(lanes) { + var lane = getHighestPriorityLane(lanes); + if (!isHigherEventPriority(DiscreteEventPriority, lane)) { + return DiscreteEventPriority; + } + if (!isHigherEventPriority(ContinuousEventPriority, lane)) { + return ContinuousEventPriority; + } + if (includesNonIdleWork(lane)) { + return DefaultEventPriority; + } + return IdleEventPriority; + } + + function shim() { + throw new Error("The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + var isSuspenseInstancePending = shim; + var isSuspenseInstanceFallback = shim; + var getSuspenseInstanceFallbackErrorDetails = shim; + var registerSuspenseInstanceRetry = shim; + var hydrateTextInstance = shim; + var clearSuspenseBoundary = shim; + var clearSuspenseBoundaryFromContainer = shim; + var errorHydratingContainer = shim; + var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; + var UPDATE_SIGNAL = {}; + { + Object.freeze(UPDATE_SIGNAL); + } + + var nextReactTag = 3; + function allocateTag() { + var tag = nextReactTag; + if (tag % 10 === 1) { + tag += 2; + } + nextReactTag = tag + 2; + return tag; + } + function recursivelyUncacheFiberNode(node) { + if (typeof node === "number") { + uncacheFiberNode(node); + } else { + uncacheFiberNode(node._nativeTag); + node._children.forEach(recursivelyUncacheFiberNode); + } + } + function appendInitialChild(parentInstance, child) { + parentInstance._children.push(child); + } + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var tag = allocateTag(); + var viewConfig = getViewConfigForType(type); + { + for (var key in viewConfig.validAttributes) { + if (props.hasOwnProperty(key)) { + ReactNativePrivateInterface.deepFreezeAndThrowOnMutationInDev(props[key]); + } + } + } + var updatePayload = create(props, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.createView(tag, + viewConfig.uiViewClassName, + rootContainerInstance, + updatePayload); + + var component = new ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandle); + precacheFiberNode(internalInstanceHandle, tag); + updateFiberProps(tag, props); + + return component; + } + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + if (!hostContext.isInAParentText) { + throw new Error("Text strings must be rendered within a component."); + } + var tag = allocateTag(); + ReactNativePrivateInterface.UIManager.createView(tag, + "RCTRawText", + rootContainerInstance, + { + text: text + }); + + precacheFiberNode(internalInstanceHandle, tag); + return tag; + } + function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { + if (parentInstance._children.length === 0) { + return false; + } + + var nativeTags = parentInstance._children.map(function (child) { + return typeof child === "number" ? child : child._nativeTag; + }); + ReactNativePrivateInterface.UIManager.setChildren(parentInstance._nativeTag, + nativeTags); + + return false; + } + function getRootHostContext(rootContainerInstance) { + return { + isInAParentText: false + }; + } + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + var prevIsInAParentText = parentHostContext.isInAParentText; + var isInAParentText = type === "AndroidTextInput" || + type === "RCTMultilineTextInputView" || + type === "RCTSinglelineTextInputView" || + type === "RCTText" || type === "RCTVirtualText"; + if (prevIsInAParentText !== isInAParentText) { + return { + isInAParentText: isInAParentText + }; + } else { + return parentHostContext; + } + } + function getPublicInstance(instance) { + return instance; + } + function prepareForCommit(containerInfo) { + return null; + } + function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { + return UPDATE_SIGNAL; + } + function resetAfterCommit(containerInfo) { + } + var scheduleTimeout = setTimeout; + var cancelTimeout = clearTimeout; + var noTimeout = -1; + function shouldSetTextContent(type, props) { + return false; + } + function getCurrentEventPriority() { + return DefaultEventPriority; + } + function appendChild(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + var children = parentInstance._children; + var index = children.indexOf(child); + if (index >= 0) { + children.splice(index, 1); + children.push(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + [index], + [children.length - 1], + [], + [], + []); + } else { + children.push(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + [], + [], + [childTag], + [children.length - 1], + []); + } + } + + function appendChildToContainer(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + ReactNativePrivateInterface.UIManager.setChildren(parentInstance, + [childTag]); + } + + function commitTextUpdate(textInstance, oldText, newText) { + ReactNativePrivateInterface.UIManager.updateView(textInstance, + "RCTRawText", + { + text: newText + }); + } + + function commitUpdate(instance, updatePayloadTODO, type, oldProps, newProps, internalInstanceHandle) { + var viewConfig = instance.viewConfig; + updateFiberProps(instance._nativeTag, newProps); + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); + + if (updatePayload != null) { + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, + viewConfig.uiViewClassName, + updatePayload); + } + } + + function insertBefore(parentInstance, child, beforeChild) { + var children = parentInstance._children; + var index = children.indexOf(child); + + if (index >= 0) { + children.splice(index, 1); + var beforeChildIndex = children.indexOf(beforeChild); + children.splice(beforeChildIndex, 0, child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + [index], + [beforeChildIndex], + [], + [], + []); + } else { + var _beforeChildIndex = children.indexOf(beforeChild); + children.splice(_beforeChildIndex, 0, child); + var childTag = typeof child === "number" ? child : child._nativeTag; + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + [], + [], + [childTag], + [_beforeChildIndex], + []); + } + } + + function insertInContainerBefore(parentInstance, child, beforeChild) { + if (typeof parentInstance === "number") { + throw new Error("Container does not support insertBefore operation"); + } + } + function removeChild(parentInstance, child) { + recursivelyUncacheFiberNode(child); + var children = parentInstance._children; + var index = children.indexOf(child); + children.splice(index, 1); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + [], + [], + [], + [], + [index]); + } + + function removeChildFromContainer(parentInstance, child) { + recursivelyUncacheFiberNode(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance, + [], + [], + [], + [], + [0]); + } + + function resetTextContent(instance) { + } + function hideInstance(instance) { + var viewConfig = instance.viewConfig; + var updatePayload = create({ + style: { + display: "none" + } + }, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + function hideTextInstance(textInstance) { + throw new Error("Not yet implemented."); + } + function unhideInstance(instance, props) { + var viewConfig = instance.viewConfig; + var updatePayload = diff(assign({}, props, { + style: [props.style, { + display: "none" + }] + }), props, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + function clearContainer(container) { + } + function unhideTextInstance(textInstance, text) { + throw new Error("Not yet implemented."); + } + function preparePortalMount(portalInstance) { + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); + } + } + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + function describeComponentFrame(name, source, ownerName) { + var sourceInfo = ""; + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ""); + + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ""); + fileName = folderName + "/" + fileName; + } + } + } + sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")"; + } else if (ownerName) { + sourceInfo = " (created by " + ownerName + ")"; + } + return "\n in " + (name || "Unknown") + sourceInfo; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeFunctionComponentFrame(ctor, source, ownerFn); + } + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + if (!fn) { + return ""; + } + var name = fn.displayName || fn.name || null; + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); + } + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeFunctionComponentFrame(type, source, ownerFn); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type, source, ownerFn); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense", source, ownerFn); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList", source, ownerFn); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render, source, ownerFn); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) {} + } + } + } + return ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + var valueStack = []; + var fiberStack; + { + fiberStack = []; + } + var index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor, fiber) { + if (index < 0) { + { + error("Unexpected pop."); + } + return; + } + { + if (fiber !== fiberStack[index]) { + error("Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; + } + index--; + } + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; + } + var warnedAboutMissingGetChildContext; + { + warnedAboutMissingGetChildContext = {}; + } + var emptyContextObject = {}; + { + Object.freeze(emptyContextObject); + } + + var contextStackCursor = createCursor(emptyContextObject); + + var didPerformWorkStackCursor = createCursor(false); + + var previousContext = emptyContextObject; + function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { + { + if (didPushOwnContextIfProvider && isContextProvider(Component)) { + return previousContext; + } + return contextStackCursor.current; + } + } + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + } + function getMaskedContext(workInProgress, unmaskedContext) { + { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + if (!contextTypes) { + return emptyContextObject; + } + + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + var context = {}; + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + { + var name = getComponentNameFromFiber(workInProgress) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name); + } + + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + return context; + } + } + function hasContextChanged() { + { + return didPerformWorkStackCursor.current; + } + } + function isContextProvider(type) { + { + var childContextTypes = type.childContextTypes; + return childContextTypes !== null && childContextTypes !== undefined; + } + } + function popContext(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function popTopLevelContextObject(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function pushTopLevelContextObject(fiber, context, didChange) { + { + if (contextStackCursor.current !== emptyContextObject) { + throw new Error("Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); + } + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + } + function processChildContext(fiber, type, parentContext) { + { + var instance = fiber.stateNode; + var childContextTypes = type.childContextTypes; + + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentNameFromFiber(fiber) || "Unknown"; + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + error("%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + var childContext = instance.getChildContext(); + for (var contextKey in childContext) { + if (!(contextKey in childContextTypes)) { + throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + } + { + var name = getComponentNameFromFiber(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name); + } + return assign({}, parentContext, childContext); + } + } + function pushContextProvider(workInProgress) { + { + var instance = workInProgress.stateNode; + + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; + + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } + } + function invalidateContextProvider(workInProgress, type, didChange) { + { + var instance = workInProgress.stateNode; + if (!instance) { + throw new Error("Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); + } + if (didChange) { + var mergedContext = processChildContext(workInProgress, type, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } + } + function findCurrentUnmaskedContext(fiber) { + { + if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { + throw new Error("Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var node = fiber; + do { + switch (node.tag) { + case HostRoot: + return node.stateNode.context; + case ClassComponent: + { + var Component = node.type; + if (isContextProvider(Component)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + break; + } + } + node = node.return; + } while (node !== null); + throw new Error("Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + var LegacyRoot = 0; + var ConcurrentRoot = 1; + + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + } + + var objectIs = typeof Object.is === "function" ? Object.is : is; + var syncQueue = null; + var includesLegacySyncCallbacks = false; + var isFlushingSyncQueue = false; + function scheduleSyncCallback(callback) { + if (syncQueue === null) { + syncQueue = [callback]; + } else { + syncQueue.push(callback); + } + } + function scheduleLegacySyncCallback(callback) { + includesLegacySyncCallbacks = true; + scheduleSyncCallback(callback); + } + function flushSyncCallbacksOnlyInLegacyMode() { + if (includesLegacySyncCallbacks) { + flushSyncCallbacks(); + } + } + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && syncQueue !== null) { + isFlushingSyncQueue = true; + var i = 0; + var previousUpdatePriority = getCurrentUpdatePriority(); + try { + var isSync = true; + var queue = syncQueue; + + setCurrentUpdatePriority(DiscreteEventPriority); + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(isSync); + } while (callback !== null); + } + syncQueue = null; + includesLegacySyncCallbacks = false; + } catch (error) { + if (syncQueue !== null) { + syncQueue = syncQueue.slice(i + 1); + } + + scheduleCallback(ImmediatePriority, flushSyncCallbacks); + throw error; + } finally { + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; + } + } + return null; + } + + function isRootDehydrated(root) { + var currentState = root.current.memoizedState; + return currentState.isDehydrated; + } + + var forkStack = []; + var forkStackIndex = 0; + var treeForkProvider = null; + var treeForkCount = 0; + var idStack = []; + var idStackIndex = 0; + var treeContextProvider = null; + var treeContextId = 1; + var treeContextOverflow = ""; + function popTreeContext(workInProgress) { + while (workInProgress === treeForkProvider) { + treeForkProvider = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + treeForkCount = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + } + while (workInProgress === treeContextProvider) { + treeContextProvider = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextOverflow = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextId = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + } + } + var isHydrating = false; + + var didSuspendOrErrorDEV = false; + + var hydrationErrors = null; + function didSuspendOrErrorWhileHydratingDEV() { + { + return didSuspendOrErrorDEV; + } + } + function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) { + { + return false; + } + } + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + { + throw new Error("Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function prepareToHydrateHostTextInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var shouldUpdate = hydrateTextInstance(); + } + function prepareToHydrateHostSuspenseInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function popHydrationState(fiber) { + { + return false; + } + } + function upgradeHydrationErrorsToRecoverable() { + if (hydrationErrors !== null) { + queueRecoverableErrors(hydrationErrors); + hydrationErrors = null; + } + } + function getIsHydrating() { + return isHydrating; + } + function queueHydrationError(error) { + if (hydrationErrors === null) { + hydrationErrors = [error]; + } else { + hydrationErrors.push(error); + } + } + var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + var NoTransition = null; + function requestCurrentTransition() { + return ReactCurrentBatchConfig.transition; + } + + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) { + return true; + } + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + if (keysA.length !== keysB.length) { + return false; + } + + for (var i = 0; i < keysA.length; i++) { + var currentKey = keysA[i]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) { + return false; + } + } + return true; + } + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type, source, owner); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy", source, owner); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense", source, owner); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList", source, owner); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type, source, owner); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render, source, owner); + case ClassComponent: + return describeClassComponentFrame(fiber.type, source, owner); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + var node = workInProgress; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } + } + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } + + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame$1.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function getCurrentFiber() { + { + return current; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + var ReactStrictModeWarnings = { + recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, + flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, + recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, + flushLegacyContextWarning: function flushLegacyContextWarning() {}, + discardPendingWarnings: function discardPendingWarnings() {} + }; + { + var findStrictRoot = function findStrictRoot(fiber) { + var maybeStrictRoot = null; + var node = fiber; + while (node !== null) { + if (node.mode & StrictLegacyMode) { + maybeStrictRoot = node; + } + node = node.return; + } + return maybeStrictRoot; + }; + var setToSortedString = function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + }; + var pendingComponentWillMountWarnings = []; + var pendingUNSAFE_ComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; + + var didWarnAboutUnsafeLifecycles = new Set(); + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + if (typeof instance.componentWillMount === "function" && + instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === "function") { + pendingUNSAFE_ComponentWillMountWarnings.push(fiber); + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === "function") { + pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === "function") { + pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); + } + }; + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + var componentWillMountUniqueNames = new Set(); + if (pendingComponentWillMountWarnings.length > 0) { + pendingComponentWillMountWarnings.forEach(function (fiber) { + componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillMountWarnings = []; + } + var UNSAFE_componentWillMountUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { + pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) { + UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillMountWarnings = []; + } + var componentWillReceivePropsUniqueNames = new Set(); + if (pendingComponentWillReceivePropsWarnings.length > 0) { + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillReceivePropsWarnings = []; + } + var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { + pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) { + UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + } + var componentWillUpdateUniqueNames = new Set(); + if (pendingComponentWillUpdateWarnings.length > 0) { + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillUpdateWarnings = []; + } + var UNSAFE_componentWillUpdateUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { + pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) { + UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillUpdateWarnings = []; + } + + if (UNSAFE_componentWillMountUniqueNames.size > 0) { + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames); + } + if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames); + } + if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + error("Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2); + } + if (componentWillMountUniqueNames.size > 0) { + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + warn("componentWillMount has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames3); + } + if (componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + warn("componentWillReceiveProps has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames4); + } + if (componentWillUpdateUniqueNames.size > 0) { + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + warn("componentWillUpdate has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames5); + } + }; + var pendingLegacyContextWarning = new Map(); + + var didWarnAboutLegacyContext = new Set(); + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + if (strictRoot === null) { + error("Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + warningsForRoot.push(fiber); + } + }; + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + if (fiberArray.length === 0) { + return; + } + var firstFiber = fiberArray[0]; + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + try { + setCurrentFiber(firstFiber); + error("Legacy context API has been detected within a strict-mode tree." + "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames); + } finally { + resetCurrentFiber(); + } + }); + }; + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingUNSAFE_ComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUNSAFE_ComponentWillUpdateWarnings = []; + pendingLegacyContextWarning = new Map(); + }; + } + + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s." + " This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + var props = assign({}, baseProps); + var defaultProps = Component.defaultProps; + for (var propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + return props; + } + return baseProps; + } + var valueCursor = createCursor(null); + var rendererSigil; + { + rendererSigil = {}; + } + var currentlyRenderingFiber = null; + var lastContextDependency = null; + var lastFullyObservedContext = null; + var isDisallowedContextReadInDEV = false; + function resetContextDependencies() { + currentlyRenderingFiber = null; + lastContextDependency = null; + lastFullyObservedContext = null; + { + isDisallowedContextReadInDEV = false; + } + } + function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; + } + } + function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } + } + function pushProvider(providerFiber, context, nextValue) { + { + push(valueCursor, context._currentValue, providerFiber); + context._currentValue = nextValue; + { + if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { + error("Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported."); + } + context._currentRenderer = rendererSigil; + } + } + } + function popProvider(context, providerFiber) { + var currentValue = valueCursor.current; + pop(valueCursor, providerFiber); + { + { + context._currentValue = currentValue; + } + } + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + var node = parent; + while (node !== null) { + var alternate = node.alternate; + if (!isSubsetOfLanes(node.childLanes, renderLanes)) { + node.childLanes = mergeLanes(node.childLanes, renderLanes); + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + if (node === propagationRoot) { + break; + } + node = node.return; + } + { + if (node !== propagationRoot) { + error("Expected to find the propagation root when scheduling context work. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + } + function propagateContextChange(workInProgress, context, renderLanes) { + { + propagateContextChange_eager(workInProgress, context, renderLanes); + } + } + function propagateContextChange_eager(workInProgress, context, renderLanes) { + var fiber = workInProgress.child; + if (fiber !== null) { + fiber.return = workInProgress; + } + while (fiber !== null) { + var nextFiber = void 0; + + var list = fiber.dependencies; + if (list !== null) { + nextFiber = fiber.child; + var dependency = list.firstContext; + while (dependency !== null) { + if (dependency.context === context) { + if (fiber.tag === ClassComponent) { + var lane = pickArbitraryLane(renderLanes); + var update = createUpdate(NoTimestamp, lane); + update.tag = ForceUpdate; + + var updateQueue = fiber.updateQueue; + if (updateQueue === null) ;else { + var sharedQueue = updateQueue.shared; + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + } + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); + + list.lanes = mergeLanes(list.lanes, renderLanes); + + break; + } + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + } else if (fiber.tag === DehydratedFragment) { + var parentSuspense = fiber.return; + if (parentSuspense === null) { + throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); + } + parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes); + var _alternate = parentSuspense.alternate; + if (_alternate !== null) { + _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes); + } + + scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress); + nextFiber = fiber.sibling; + } else { + nextFiber = fiber.child; + } + if (nextFiber !== null) { + nextFiber.return = fiber; + } else { + nextFiber = fiber; + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + var sibling = nextFiber.sibling; + if (sibling !== null) { + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + + nextFiber = nextFiber.return; + } + } + fiber = nextFiber; + } + } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastContextDependency = null; + lastFullyObservedContext = null; + var dependencies = workInProgress.dependencies; + if (dependencies !== null) { + { + var firstContext = dependencies.firstContext; + if (firstContext !== null) { + if (includesSomeLane(dependencies.lanes, renderLanes)) { + markWorkInProgressReceivedUpdate(); + } + + dependencies.firstContext = null; + } + } + } + } + function _readContext(context) { + { + if (isDisallowedContextReadInDEV) { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } + } + var value = context._currentValue; + if (lastFullyObservedContext === context) ;else { + var contextItem = { + context: context, + memoizedValue: value, + next: null + }; + if (lastContextDependency === null) { + if (currentlyRenderingFiber === null) { + throw new Error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } + + lastContextDependency = contextItem; + currentlyRenderingFiber.dependencies = { + lanes: NoLanes, + firstContext: contextItem + }; + } else { + lastContextDependency = lastContextDependency.next = contextItem; + } + } + return value; + } + + var interleavedQueues = null; + function pushInterleavedQueue(queue) { + if (interleavedQueues === null) { + interleavedQueues = [queue]; + } else { + interleavedQueues.push(queue); + } + } + function hasInterleavedUpdates() { + return interleavedQueues !== null; + } + function enqueueInterleavedUpdates() { + if (interleavedQueues !== null) { + for (var i = 0; i < interleavedQueues.length; i++) { + var queue = interleavedQueues[i]; + var lastInterleavedUpdate = queue.interleaved; + if (lastInterleavedUpdate !== null) { + queue.interleaved = null; + var firstInterleavedUpdate = lastInterleavedUpdate.next; + var lastPendingUpdate = queue.pending; + if (lastPendingUpdate !== null) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + lastInterleavedUpdate.next = firstPendingUpdate; + } + queue.pending = lastInterleavedUpdate; + } + } + interleavedQueues = null; + } + } + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; + + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate; + var currentlyProcessingQueue; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + } + function initializeUpdateQueue(fiber) { + var queue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: NoLanes + }, + effects: null + }; + fiber.updateQueue = queue; + } + function cloneUpdateQueue(current, workInProgress) { + var queue = workInProgress.updateQueue; + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + var clone = { + baseState: currentQueue.baseState, + firstBaseUpdate: currentQueue.firstBaseUpdate, + lastBaseUpdate: currentQueue.lastBaseUpdate, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = clone; + } + } + function createUpdate(eventTime, lane) { + var update = { + eventTime: eventTime, + lane: lane, + tag: UpdateState, + payload: null, + callback: null, + next: null + }; + return update; + } + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return; + } + var sharedQueue = updateQueue.shared; + if (isInterleavedUpdate(fiber)) { + var interleaved = sharedQueue.interleaved; + if (interleaved === null) { + update.next = update; + + pushInterleavedQueue(sharedQueue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + sharedQueue.interleaved = update; + } else { + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; + } + } + } + function entangleTransitions(root, fiber, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return; + } + var sharedQueue = updateQueue.shared; + if (isTransitionLane(lane)) { + var queueLanes = sharedQueue.lanes; + + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + + var newQueueLanes = mergeLanes(queueLanes, lane); + sharedQueue.lanes = newQueueLanes; + + markRootEntangled(root, newQueueLanes); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue; + + var current = workInProgress.alternate; + if (current !== null) { + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + var newFirst = null; + var newLast = null; + var firstBaseUpdate = queue.firstBaseUpdate; + if (firstBaseUpdate !== null) { + var update = firstBaseUpdate; + do { + var clone = { + eventTime: update.eventTime, + lane: update.lane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLast === null) { + newFirst = newLast = clone; + } else { + newLast.next = clone; + newLast = clone; + } + update = update.next; + } while (update !== null); + + if (newLast === null) { + newFirst = newLast = capturedUpdate; + } else { + newLast.next = capturedUpdate; + newLast = capturedUpdate; + } + } else { + newFirst = newLast = capturedUpdate; + } + queue = { + baseState: currentQueue.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = queue; + return; + } + } + + var lastBaseUpdate = queue.lastBaseUpdate; + if (lastBaseUpdate === null) { + queue.firstBaseUpdate = capturedUpdate; + } else { + lastBaseUpdate.next = capturedUpdate; + } + queue.lastBaseUpdate = capturedUpdate; + } + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var payload = update.payload; + if (typeof payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + var nextState = payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + return nextState; + } + + return payload; + } + case CaptureUpdate: + { + workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture; + } + + case UpdateState: + { + var _payload = update.payload; + var partialState; + if (typeof _payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + partialState = _payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + } else { + partialState = _payload; + } + if (partialState === null || partialState === undefined) { + return prevState; + } + + return assign({}, prevState, partialState); + } + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + return prevState; + } + function processUpdateQueue(workInProgress, props, instance, renderLanes) { + var queue = workInProgress.updateQueue; + hasForceUpdate = false; + { + currentlyProcessingQueue = queue.shared; + } + var firstBaseUpdate = queue.firstBaseUpdate; + var lastBaseUpdate = queue.lastBaseUpdate; + + var pendingQueue = queue.shared.pending; + if (pendingQueue !== null) { + queue.shared.pending = null; + + var lastPendingUpdate = pendingQueue; + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + + if (lastBaseUpdate === null) { + firstBaseUpdate = firstPendingUpdate; + } else { + lastBaseUpdate.next = firstPendingUpdate; + } + lastBaseUpdate = lastPendingUpdate; + + var current = workInProgress.alternate; + if (current !== null) { + var currentQueue = current.updateQueue; + var currentLastBaseUpdate = currentQueue.lastBaseUpdate; + if (currentLastBaseUpdate !== lastBaseUpdate) { + if (currentLastBaseUpdate === null) { + currentQueue.firstBaseUpdate = firstPendingUpdate; + } else { + currentLastBaseUpdate.next = firstPendingUpdate; + } + currentQueue.lastBaseUpdate = lastPendingUpdate; + } + } + } + + if (firstBaseUpdate !== null) { + var newState = queue.baseState; + + var newLanes = NoLanes; + var newBaseState = null; + var newFirstBaseUpdate = null; + var newLastBaseUpdate = null; + var update = firstBaseUpdate; + do { + var updateLane = update.lane; + var updateEventTime = update.eventTime; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + var clone = { + eventTime: updateEventTime, + lane: updateLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLastBaseUpdate === null) { + newFirstBaseUpdate = newLastBaseUpdate = clone; + newBaseState = newState; + } else { + newLastBaseUpdate = newLastBaseUpdate.next = clone; + } + + newLanes = mergeLanes(newLanes, updateLane); + } else { + if (newLastBaseUpdate !== null) { + var _clone = { + eventTime: updateEventTime, + lane: NoLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + newLastBaseUpdate = newLastBaseUpdate.next = _clone; + } + + newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); + var callback = update.callback; + if (callback !== null && + update.lane !== NoLane) { + workInProgress.flags |= Callback; + var effects = queue.effects; + if (effects === null) { + queue.effects = [update]; + } else { + effects.push(update); + } + } + } + update = update.next; + if (update === null) { + pendingQueue = queue.shared.pending; + if (pendingQueue === null) { + break; + } else { + var _lastPendingUpdate = pendingQueue; + + var _firstPendingUpdate = _lastPendingUpdate.next; + _lastPendingUpdate.next = null; + update = _firstPendingUpdate; + queue.lastBaseUpdate = _lastPendingUpdate; + queue.shared.pending = null; + } + } + } while (true); + if (newLastBaseUpdate === null) { + newBaseState = newState; + } + queue.baseState = newBaseState; + queue.firstBaseUpdate = newFirstBaseUpdate; + queue.lastBaseUpdate = newLastBaseUpdate; + + var lastInterleaved = queue.shared.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + newLanes = mergeLanes(newLanes, interleaved.lane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (firstBaseUpdate === null) { + queue.shared.lanes = NoLanes; + } + + markSkippedUpdateLanes(newLanes); + workInProgress.lanes = newLanes; + workInProgress.memoizedState = newState; + } + { + currentlyProcessingQueue = null; + } + } + function callCallback(callback, context) { + if (typeof callback !== "function") { + throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + callback)); + } + callback.call(context); + } + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + var effects = finishedQueue.effects; + finishedQueue.effects = null; + if (effects !== null) { + for (var i = 0; i < effects.length; i++) { + var effect = effects[i]; + var callback = effect.callback; + if (callback !== null) { + effect.callback = null; + callCallback(callback, instance); + } + } + } + } + var fakeInternalInstance = {}; + + var emptyRefsObject = new React.Component().refs; + var didWarnAboutStateAssignmentForComponent; + var didWarnAboutUninitializedState; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; + var didWarnAboutLegacyLifecyclesAndDerivedState; + var didWarnAboutUndefinedDerivedState; + var warnOnUndefinedDerivedState; + var warnOnInvalidCallback; + var didWarnAboutDirectlyAssigningPropsToState; + var didWarnAboutContextTypeAndContextTypes; + var didWarnAboutInvalidateContextType; + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutDirectlyAssigningPropsToState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + didWarnAboutContextTypeAndContextTypes = new Set(); + didWarnAboutInvalidateContextType = new Set(); + var didWarnOnInvalidCallback = new Set(); + warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + var key = callerName + "_" + callback; + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + error("%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); + } + }; + warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(type, partialState) { + if (partialState === undefined) { + var componentName = getComponentNameFromType(type) || "Component"; + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); + } + } + }; + + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function value() { + throw new Error("_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(ctor, partialState); + } + + var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; + + if (workInProgress.lanes === NoLanes) { + var updateQueue = workInProgress.updateQueue; + updateQueue.baseState = memoizedState; + } + } + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ReplaceState; + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ForceUpdate; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + var instance = workInProgress.stateNode; + if (typeof instance.shouldComponentUpdate === "function") { + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); + { + if (shouldUpdate === undefined) { + error("%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); + } + } + return shouldUpdate; + } + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + return true; + } + function checkClassInstance(workInProgress, ctor, newProps) { + var instance = workInProgress.stateNode; + { + var name = getComponentNameFromType(ctor) || "Component"; + var renderPresent = instance.render; + if (!renderPresent) { + if (ctor.prototype && typeof ctor.prototype.render === "function") { + error("%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); + } else { + error("%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); + } + } + if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { + error("getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name); + } + if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { + error("getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name); + } + if (instance.propTypes) { + error("propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name); + } + if (instance.contextType) { + error("contextType was defined as an instance property on %s. Use a static " + "property to define contextType instead.", name); + } + { + if (instance.contextTypes) { + error("contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name); + } + if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { + didWarnAboutContextTypeAndContextTypes.add(ctor); + error("%s declares both contextTypes and contextType static properties. " + "The legacy contextTypes property will be ignored.", name); + } + } + if (typeof instance.componentShouldUpdate === "function") { + error("%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name); + } + if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + error("%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"); + } + if (typeof instance.componentDidUnmount === "function") { + error("%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name); + } + if (typeof instance.componentDidReceiveProps === "function") { + error("%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name); + } + if (typeof instance.componentWillRecieveProps === "function") { + error("%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name); + } + if (typeof instance.UNSAFE_componentWillRecieveProps === "function") { + error("%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); + } + var hasMutatedProps = instance.props !== newProps; + if (instance.props !== undefined && hasMutatedProps) { + error("%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name); + } + if (instance.defaultProps) { + error("Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name); + } + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); + error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor)); + } + if (typeof instance.getDerivedStateFromProps === "function") { + error("%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof instance.getDerivedStateFromError === "function") { + error("%s: getDerivedStateFromError() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof ctor.getSnapshotBeforeUpdate === "function") { + error("%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name); + } + var _state = instance.state; + if (_state && (typeof _state !== "object" || isArray(_state))) { + error("%s.state: must be set to an object or null", name); + } + if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") { + error("%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name); + } + } + } + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; + + set(instance, workInProgress); + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = false; + var unmaskedContext = emptyContextObject; + var context = emptyContextObject; + var contextType = ctor.contextType; + { + if ("contextType" in ctor) { + var isValid = + contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; + + if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { + didWarnAboutInvalidateContextType.add(ctor); + var addendum = ""; + if (contextType === undefined) { + addendum = " However, it is set to undefined. " + "This can be caused by a typo or by mixing up named and default imports. " + "This can also happen due to a circular dependency, so " + "try moving the createContext() call to a separate file."; + } else if (typeof contextType !== "object") { + addendum = " However, it is set to a " + typeof contextType + "."; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = " Did you accidentally pass the Context.Provider instead?"; + } else if (contextType._context !== undefined) { + addendum = " Did you accidentally pass the Context.Consumer instead?"; + } else { + addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; + } + error("%s defines an invalid contextType. " + "contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(ctor) || "Component", addendum); + } + } + } + if (typeof contextType === "object" && contextType !== null) { + context = _readContext(contextType); + } else { + unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + var contextTypes = ctor.contextTypes; + isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; + context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; + } + var instance = new ctor(props, context); + + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + error("`%s` uses `getDerivedStateFromProps` but its initial state is " + "%s. This is not recommended. Instead, define the initial state by " + "assigning an object to `this.state` in the constructor of `%s`. " + "This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); + } + } + + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentNameFromType(ctor) || "Component"; + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } + } + } + + if (isLegacyContextConsumer) { + cacheContext(workInProgress, unmaskedContext, context); + } + return instance; + } + function callComponentWillMount(workInProgress, instance) { + var oldState = instance.state; + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + if (oldState !== instance.state) { + { + error("%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + var oldState = instance.state; + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, nextContext); + } + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + } + if (instance.state !== oldState) { + { + var componentName = getComponentNameFromFiber(workInProgress) || "Component"; + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + error("%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); + } + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + { + checkClassInstance(workInProgress, ctor, newProps); + } + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + if (typeof contextType === "object" && contextType !== null) { + instance.context = _readContext(contextType); + } else { + var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + instance.context = getMaskedContext(workInProgress, unmaskedContext); + } + { + if (instance.state === newProps) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { + didWarnAboutDirectlyAssigningPropsToState.add(componentName); + error("%s: It is not recommended to assign props directly to state " + "because updates to props won't be reflected in state. " + "In most cases, it is better to use props directly.", componentName); + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); + } + } + instance.state = workInProgress.memoizedState; + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + instance.state = workInProgress.memoizedState; + } + + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress, instance); + + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + instance.state = workInProgress.memoizedState; + } + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } + } + function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + } + if (typeof instance.componentDidMount === "function") { + var _fiberFlags = Update; + workInProgress.flags |= _fiberFlags; + } + } else { + if (typeof instance.componentDidMount === "function") { + var _fiberFlags2 = Update; + workInProgress.flags |= _fiberFlags2; + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + + function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + var unresolvedOldProps = workInProgress.memoizedProps; + var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps); + instance.props = oldProps; + var unresolvedNewProps = workInProgress.pendingProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || + enableLazyContextPropagation; + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, nextContext); + } + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); + } + } + if (typeof instance.componentDidUpdate === "function") { + workInProgress.flags |= Update; + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress.flags |= Snapshot; + } + } else { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + var didWarnAboutMaps; + var didWarnAboutGenerators; + var didWarnAboutStringRefs; + var ownerHasKeyUseWarning; + var ownerHasFunctionTypeWarning; + var warnForMissingKey = function warnForMissingKey(child, returnFiber) {}; + { + didWarnAboutMaps = false; + didWarnAboutGenerators = false; + didWarnAboutStringRefs = {}; + + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + warnForMissingKey = function warnForMissingKey(child, returnFiber) { + if (child === null || typeof child !== "object") { + return; + } + if (!child._store || child._store.validated || child.key != null) { + return; + } + if (typeof child._store !== "object") { + throw new Error("React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); + } + child._store.validated = true; + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasKeyUseWarning[componentName]) { + return; + } + ownerHasKeyUseWarning[componentName] = true; + error("Each child in a list should have a unique " + '"key" prop. See https://reactjs.org/link/warning-keys for ' + "more information."); + }; + } + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && + !(element._owner && element._self && element._owner.stateNode !== element._self)) { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (!didWarnAboutStringRefs[componentName]) { + { + error('A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", mixedRef); + } + didWarnAboutStringRefs[componentName] = true; + } + } + } + if (element._owner) { + var owner = element._owner; + var inst; + if (owner) { + var ownerFiber = owner; + if (ownerFiber.tag !== ClassComponent) { + throw new Error("Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref"); + } + inst = ownerFiber.stateNode; + } + if (!inst) { + throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + "bug in React. Please file an issue."); + } + + var resolvedInst = inst; + { + checkPropStringCoercion(mixedRef, "ref"); + } + var stringRef = "" + mixedRef; + + if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { + return current.ref; + } + var ref = function ref(value) { + var refs = resolvedInst.refs; + if (refs === emptyRefsObject) { + refs = resolvedInst.refs = {}; + } + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + ref._stringRef = stringRef; + return ref; + } else { + if (typeof mixedRef !== "string") { + throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + } + if (!element._owner) { + throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://reactjs.org/link/refs-must-have-owner for more information."); + } + } + } + return mixedRef; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + var childString = Object.prototype.toString.call(newChild); + throw new Error("Objects are not valid as a React child (found: " + (childString === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : childString) + "). " + "If you meant to render a collection of children, use an array " + "instead."); + } + function warnOnFunctionType(returnFiber) { + { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasFunctionTypeWarning[componentName]) { + return; + } + ownerHasFunctionTypeWarning[componentName] = true; + error("Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it."); + } + } + function resolveLazy(lazyType) { + var payload = lazyType._payload; + var init = lazyType._init; + return init(payload); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + return; + } + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [childToDelete]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + return null; + } + + var childToDelete = currentFirstChild; + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + var existingChildren = new Map(); + var existingChild = currentFirstChild; + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + existingChild = existingChild.sibling; + } + return existingChildren; + } + function useFiber(fiber, pendingProps) { + var clone = createWorkInProgress(fiber, pendingProps); + clone.index = 0; + clone.sibling = null; + return clone; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) { + newFiber.flags |= Forked; + return lastPlacedIndex; + } + var current = newFiber.alternate; + if (current !== null) { + var oldIndex = current.index; + if (oldIndex < lastPlacedIndex) { + newFiber.flags |= Placement; + return lastPlacedIndex; + } else { + return oldIndex; + } + } else { + newFiber.flags |= Placement; + return lastPlacedIndex; + } + } + function placeSingleChild(newFiber) { + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.flags |= Placement; + } + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (current === null || current.tag !== HostText) { + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, textContent); + existing.return = returnFiber; + return existing; + } + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + } + if (current !== null) { + if (current.elementType === elementType || + isCompatibleFamilyForHotReloading(current, element) || + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) { + var existing = useFiber(current, element.props); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } + + var created = createFiberFromElement(element, returnFiber.mode, lanes); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, portal.children || []); + existing.return = returnFiber; + return existing; + } + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (current === null || current.tag !== Fragment) { + var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, fragment); + existing.return = returnFiber; + return existing; + } + } + function createChild(returnFiber, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, lanes); + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes); + _created2.return = returnFiber; + return _created2; + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return createChild(returnFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null); + _created3.return = returnFiber; + return _created3; + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = oldFiber !== null ? oldFiber.key : null; + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + if (key !== null) { + return null; + } + return updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + return updateElement(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return updateSlot(returnFiber, oldFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + return updateFragment(returnFiber, oldFiber, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updateElement(returnFiber, _matchedFiber, newChild, lanes); + } + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updatePortal(returnFiber, _matchedFiber2, newChild, lanes); + } + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes); + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + + function warnOnInvalidKey(child, knownKeys, returnFiber) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child, returnFiber); + var key = child.key; + if (typeof key !== "string") { + break; + } + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + error("Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted โ€” the behavior is unsupported and " + "could change in a future version.", key); + break; + case REACT_LAZY_TYPE: + var payload = child._payload; + var init = child._init; + warnOnInvalidKey(init(payload), knownKeys, returnFiber); + break; + } + } + return knownKeys; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + { + var knownKeys = null; + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); + if (_newFiber === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + previousNewFiber = _newFiber; + } + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); + if (_newFiber2 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + previousNewFiber = _newFiber2; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if (typeof iteratorFn !== "function") { + throw new Error("An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); + } + { + if (typeof Symbol === "function" && + newChildrenIterable[Symbol.toStringTag] === "Generator") { + if (!didWarnAboutGenerators) { + error("Using Generators as children is unsupported and will likely yield " + "unexpected results because enumerating a generator mutates it. " + "You may convert it to an array with `Array.from()` or the " + "`[...spread]` operator before rendering. Keep in mind " + "you might need to polyfill these features for older browsers."); + } + didWarnAboutGenerators = true; + } + + if (newChildrenIterable.entries === iteratorFn) { + if (!didWarnAboutMaps) { + error("Using Maps as children is not supported. " + "Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + + var _newChildren = iteratorFn.call(newChildrenIterable); + if (_newChildren) { + var knownKeys = null; + var _step = _newChildren.next(); + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + if (newChildren == null) { + throw new Error("An iterable object provided no iterator."); + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, lanes); + if (_newFiber3 === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + previousNewFiber = _newFiber3; + } + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + previousNewFiber = _newFiber4; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent); + existing.return = returnFiber; + return existing; + } + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) { + var key = element.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + if (child.tag === Fragment) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.props.children); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } else { + if (child.elementType === elementType || + isCompatibleFamilyForHotReloading(child, element) || + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var _existing = useFiber(child, element.props); + _existing.ref = coerceRef(returnFiber, child, element); + _existing.return = returnFiber; + { + _existing._debugSource = element._source; + _existing._debugOwner = element._owner; + } + return _existing; + } + } + + deleteRemainingChildren(returnFiber, child); + break; + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, lanes); + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) { + var key = portal.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || []); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + + return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes); + } + if (isArray(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + } + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, lanes)); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + function cloneChildFibers(current, workInProgress) { + if (current !== null && workInProgress.child !== current.child) { + throw new Error("Resuming work not yet implemented."); + } + if (workInProgress.child === null) { + return; + } + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); + workInProgress.child = newChild; + newChild.return = workInProgress; + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); + newChild.return = workInProgress; + } + newChild.sibling = null; + } + + function resetChildFibers(workInProgress, lanes) { + var child = workInProgress.child; + while (child !== null) { + resetWorkInProgress(child, lanes); + child = child.sibling; + } + } + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) { + throw new Error("Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); + } + return c; + } + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + + push(contextFiberStackCursor, fiber, fiber); + + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(); + + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type); + + if (context === nextContext) { + return; + } + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + function popHostContext(fiber) { + if (contextFiberStackCursor.current !== fiber) { + return; + } + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + var DefaultSuspenseContext = 0; + + var SubtreeSuspenseContextMask = 1; + + var InvisibleParentSuspenseContext = 1; + + var ForceSuspenseFallback = 2; + var suspenseStackCursor = createCursor(DefaultSuspenseContext); + function hasSuspenseContext(parentContext, flag) { + return (parentContext & flag) !== 0; + } + function setDefaultShallowSuspenseContext(parentContext) { + return parentContext & SubtreeSuspenseContextMask; + } + function setShallowSuspenseContext(parentContext, shallowContext) { + return parentContext & SubtreeSuspenseContextMask | shallowContext; + } + function addSubtreeSuspenseContext(parentContext, subtreeContext) { + return parentContext | subtreeContext; + } + function pushSuspenseContext(fiber, newContext) { + push(suspenseStackCursor, newContext, fiber); + } + function popSuspenseContext(fiber) { + pop(suspenseStackCursor, fiber); + } + function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { + var nextState = workInProgress.memoizedState; + if (nextState !== null) { + if (nextState.dehydrated !== null) { + return true; + } + return false; + } + var props = workInProgress.memoizedProps; + + { + return true; + } + } + + function findFirstSuspended(row) { + var node = row; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + var dehydrated = state.dehydrated; + if (dehydrated === null || isSuspenseInstancePending() || isSuspenseInstanceFallback()) { + return node; + } + } + } else if (node.tag === SuspenseListComponent && + node.memoizedProps.revealOrder !== undefined) { + var didSuspend = (node.flags & DidCapture) !== NoFlags; + if (didSuspend) { + return node; + } + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) { + return null; + } + while (node.sibling === null) { + if (node.return === null || node.return === row) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var NoFlags$1 = + 0; + + var HasEffect = + 1; + + var Insertion = + 2; + var Layout = + 4; + var Passive$1 = + 8; + + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + var mutableSource = workInProgressSources[i]; + { + mutableSource._workInProgressVersionPrimary = null; + } + } + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + var didWarnAboutMismatchedHooksForComponent; + var didWarnUncachedGetSnapshot; + { + didWarnAboutMismatchedHooksForComponent = new Set(); + } + + var renderLanes = NoLanes; + + var currentlyRenderingFiber$1 = null; + + var currentHook = null; + var workInProgressHook = null; + + var didScheduleRenderPhaseUpdate = false; + + var didScheduleRenderPhaseUpdateDuringThisPass = false; + + var globalClientIdCounter = 0; + var RE_RENDER_LIMIT = 25; + + var currentHookNameInDev = null; + + var hookTypesDev = null; + var hookTypesUpdateIndexDev = -1; + + var ignorePreviousDependencies = false; + function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } + } + function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } + } + function checkDepsAreArrayDev(deps) { + { + if (deps !== undefined && deps !== null && !isArray(deps)) { + error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps); + } + } + } + function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + if (hookTypesDev !== null) { + var table = ""; + var secondColumnStart = 30; + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + var row = i + 1 + ". " + oldHookName; + + while (row.length < secondColumnStart) { + row += " "; + } + row += newHookName + "\n"; + table += row; + } + error("React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); + } + } + } + } + function throwInvalidHookError() { + throw new 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:\n" + "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + { + if (ignorePreviousDependencies) { + return false; + } + } + if (prevDeps === null) { + { + error("%s received a final argument during this render, but not during " + "the previous render. Even though the final argument is optional, " + "its type cannot change between renders.", currentHookNameInDev); + } + return false; + } + { + if (nextDeps.length !== prevDeps.length) { + error("The final argument passed to %s changed size between renders. The " + "order and size of this array must remain constant.\n\n" + "Previous: %s\n" + "Incoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); + } + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + { + hookTypesDev = current !== null ? current._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; + + ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; + } + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = NoLanes; + + { + if (current !== null && current.memoizedState !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; + } + } + var children = Component(props, secondArg); + + if (didScheduleRenderPhaseUpdateDuringThisPass) { + var numberOfReRenders = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = false; + if (numberOfReRenders >= RE_RENDER_LIMIT) { + throw new Error("Too many re-renders. React limits the number of renders to prevent " + "an infinite loop."); + } + numberOfReRenders += 1; + { + ignorePreviousDependencies = false; + } + + currentHook = null; + workInProgressHook = null; + workInProgress.updateQueue = null; + { + hookTypesUpdateIndexDev = -1; + } + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; + children = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + { + workInProgress._debugHookTypes = hookTypesDev; + } + + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + + if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && + (current.mode & ConcurrentMode) !== NoMode) { + error("Internal React error: Expected static flag was missing. Please " + "notify the React team."); + } + } + didScheduleRenderPhaseUpdate = false; + + if (didRenderTooFewHooks) { + throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental " + "early return statement."); + } + return children; + } + function bailoutHooks(current, workInProgress, lanes) { + workInProgress.updateQueue = current.updateQueue; + + { + workInProgress.flags &= ~(Passive | Update); + } + current.lanes = removeLanes(current.lanes, lanes); + } + function resetHooksAfterThrow() { + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + var hook = currentlyRenderingFiber$1.memoizedState; + while (hook !== null) { + var queue = hook.queue; + if (queue !== null) { + queue.pending = null; + } + hook = hook.next; + } + didScheduleRenderPhaseUpdate = false; + } + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + currentHookNameInDev = null; + isUpdatingOpaqueValueInRenderPhase = false; + } + didScheduleRenderPhaseUpdateDuringThisPass = false; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; + } else { + workInProgressHook = workInProgressHook.next = hook; + } + return workInProgressHook; + } + function updateWorkInProgressHook() { + var nextCurrentHook; + if (currentHook === null) { + var current = currentlyRenderingFiber$1.alternate; + if (current !== null) { + nextCurrentHook = current.memoizedState; + } else { + nextCurrentHook = null; + } + } else { + nextCurrentHook = currentHook.next; + } + var nextWorkInProgressHook; + if (workInProgressHook === null) { + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; + } else { + nextWorkInProgressHook = workInProgressHook.next; + } + if (nextWorkInProgressHook !== null) { + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + currentHook = nextCurrentHook; + } else { + if (nextCurrentHook === null) { + throw new Error("Rendered more hooks than during the previous render."); + } + currentHook = nextCurrentHook; + var newHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; + } else { + workInProgressHook = workInProgressHook.next = newHook; + } + } + return workInProgressHook; + } + function createFunctionComponentUpdateQueue() { + return { + lastEffect: null, + stores: null + }; + } + function basicStateReducer(state, action) { + return typeof action === "function" ? action(state) : action; + } + function mountReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + var initialState; + if (init !== undefined) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + var current = currentHook; + + var baseQueue = current.baseQueue; + + var pendingQueue = queue.pending; + if (pendingQueue !== null) { + if (baseQueue !== null) { + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + { + if (current.baseQueue !== baseQueue) { + error("Internal error: Expected work-in-progress queue to be a clone. " + "This is a bug in React."); + } + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (baseQueue !== null) { + var first = baseQueue.next; + var newState = current.baseState; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + var update = first; + do { + var updateLane = update.lane; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } + + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); + markSkippedUpdateLanes(updateLane); + } else { + if (newBaseQueueLast !== null) { + var _clone = { + lane: NoLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } + + if (update.hasEagerState) { + newState = update.eagerState; + } else { + var action = update.action; + newState = reducer(newState, action); + } + } + update = update.next; + } while (update !== null && update !== first); + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + hook.baseState = newBaseState; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = newState; + } + + var lastInterleaved = queue.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + var interleavedLane = interleaved.lane; + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane); + markSkippedUpdateLanes(interleavedLane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (baseQueue === null) { + queue.lanes = NoLanes; + } + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; + } + function rerenderReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + + var dispatch = queue.dispatch; + var lastRenderPhaseUpdate = queue.pending; + var newState = hook.memoizedState; + if (lastRenderPhaseUpdate !== null) { + queue.pending = null; + var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; + var update = firstRenderPhaseUpdate; + do { + var action = update.action; + newState = reducer(newState, action); + update = update.next; + } while (update !== firstRenderPhaseUpdate); + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + + if (hook.baseQueue === null) { + hook.baseState = newState; + } + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function mountMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function updateMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = mountWorkInProgressHook(); + var nextSnapshot; + { + nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + return nextSnapshot; + } + function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = updateWorkInProgressHook(); + + var nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + var prevSnapshot = hook.memoizedState; + var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot); + if (snapshotChanged) { + hook.memoizedState = nextSnapshot; + markWorkInProgressReceivedUpdate(); + } + var inst = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + + if (inst.getSnapshot !== getSnapshot || snapshotChanged || + workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= StoreConsistency; + var check = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.stores = [check]; + } else { + var stores = componentUpdateQueue.stores; + if (stores === null) { + componentUpdateQueue.stores = [check]; + } else { + stores.push(check); + } + } + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + } + function subscribeToStore(fiber, inst, subscribe) { + var handleStoreChange = function handleStoreChange() { + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + }; + + return subscribe(handleStoreChange); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + var prevValue = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(prevValue, nextValue); + } catch (error) { + return true; + } + } + function forceStoreRerender(fiber) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + if (typeof initialState === "function") { + initialState = initialState(); + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateState(initialState) { + return updateReducer(basicStateReducer); + } + function rerenderState(initialState) { + return rerenderReducer(basicStateReducer); + } + function pushEffect(tag, create, destroy, deps) { + var effect = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var lastEffect = componentUpdateQueue.lastEffect; + if (lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = lastEffect.next; + lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + return effect; + } + function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + { + var _ref2 = { + current: initialValue + }; + hook.memoizedState = _ref2; + return _ref2; + } + } + function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var destroy = undefined; + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + if (areHookInputsEqual(nextDeps, prevDeps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps); + return; + } + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps); + } + function mountEffect(create, deps) { + { + return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + } + } + function updateEffect(create, deps) { + return updateEffectImpl(Passive, Passive$1, create, deps); + } + function mountInsertionEffect(create, deps) { + return mountEffectImpl(Update, Insertion, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(Update, Insertion, create, deps); + } + function mountLayoutEffect(create, deps) { + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(Update, Layout, create, deps); + } + function imperativeHandleEffect(create, ref) { + if (typeof ref === "function") { + var refCallback = ref; + var _inst = create(); + refCallback(_inst); + return function () { + refCallback(null); + }; + } else if (ref !== null && ref !== undefined) { + var refObject = ref; + { + if (!refObject.hasOwnProperty("current")) { + error("Expected useImperativeHandle() first argument to either be a " + "ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}"); + } + } + var _inst2 = create(); + refObject.current = _inst2; + return function () { + refObject.current = null; + }; + } + } + function mountImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function updateImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function mountDebugValue(value, formatterFn) { + } + var updateDebugValue = mountDebugValue; + function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function mountDeferredValue(value) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = value; + return value; + } + function updateDeferredValue(value) { + var hook = updateWorkInProgressHook(); + var resolvedCurrentHook = currentHook; + var prevValue = resolvedCurrentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + function rerenderDeferredValue(value) { + var hook = updateWorkInProgressHook(); + if (currentHook === null) { + hook.memoizedState = value; + return value; + } else { + var prevValue = currentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + } + function updateDeferredValueImpl(hook, prevValue, value) { + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + if (shouldDeferValue) { + if (!objectIs(value, prevValue)) { + var deferredLane = claimNextTransitionLane(); + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); + markSkippedUpdateLanes(deferredLane); + + hook.baseState = true; + } + + return prevValue; + } else { + if (hook.baseState) { + hook.baseState = false; + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = value; + return value; + } + } + function startTransition(setPending, callback, options) { + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority)); + setPending(true); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + var currentTransition = ReactCurrentBatchConfig$1.transition; + { + ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); + } + try { + setPending(false); + callback(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$1.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. " + "If this is due to a subscription please re-write it to use React provided hooks. " + "Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + function mountTransition() { + var _mountState = mountState(false), + isPending = _mountState[0], + setPending = _mountState[1]; + + var start = startTransition.bind(null, setPending); + var hook = mountWorkInProgressHook(); + hook.memoizedState = start; + return [isPending, start]; + } + function updateTransition() { + var _updateState = updateState(), + isPending = _updateState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + function rerenderTransition() { + var _rerenderState = rerenderState(), + isPending = _rerenderState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + var isUpdatingOpaqueValueInRenderPhase = false; + function getIsUpdatingOpaqueValueInRenderPhaseInDEV() { + { + return isUpdatingOpaqueValueInRenderPhase; + } + } + function mountId() { + var hook = mountWorkInProgressHook(); + var root = getWorkInProgressRoot(); + + var identifierPrefix = root.identifierPrefix; + var id; + { + var globalClientId = globalClientIdCounter++; + id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + } + hook.memoizedState = id; + return id; + } + function updateId() { + var hook = updateWorkInProgressHook(); + var id = hook.memoizedState; + return id; + } + function dispatchReducerAction(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + enqueueUpdate$1(fiber, queue, update); + var eventTime = requestEventTime(); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitionUpdate(root, queue, lane); + } + } + } + function dispatchSetState(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + enqueueUpdate$1(fiber, queue, update); + var alternate = fiber.alternate; + if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { + var lastRenderedReducer = queue.lastRenderedReducer; + if (lastRenderedReducer !== null) { + var prevDispatcher; + { + prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + try { + var currentState = queue.lastRenderedState; + var eagerState = lastRenderedReducer(currentState, action); + + update.hasEagerState = true; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + return; + } + } catch (error) { + } finally { + { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + } + } + } + var eventTime = requestEventTime(); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitionUpdate(root, queue, lane); + } + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; + var pending = queue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + queue.pending = update; + } + function enqueueUpdate$1(fiber, queue, update, lane) { + if (isInterleavedUpdate(fiber)) { + var interleaved = queue.interleaved; + if (interleaved === null) { + update.next = update; + + pushInterleavedQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + } else { + var pending = queue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + queue.pending = update; + } + } + function entangleTransitionUpdate(root, queue, lane) { + if (isTransitionLane(lane)) { + var queueLanes = queue.lanes; + + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + + var newQueueLanes = mergeLanes(queueLanes, lane); + queue.lanes = newQueueLanes; + + markRootEntangled(root, newQueueLanes); + } + } + var ContextOnlyDispatcher = { + readContext: _readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: enableNewReconciler + }; + var HooksDispatcherOnMountInDEV = null; + var HooksDispatcherOnMountWithHookTypesInDEV = null; + var HooksDispatcherOnUpdateInDEV = null; + var HooksDispatcherOnRerenderInDEV = null; + var InvalidNestedHooksDispatcherOnMountInDEV = null; + var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + var InvalidNestedHooksDispatcherOnRerenderInDEV = null; + { + var warnInvalidContextAccess = function warnInvalidContextAccess() { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + }; + var warnInvalidHookAccess = function warnInvalidHookAccess() { + error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + "https://reactjs.org/link/rules-of-hooks"); + }; + HooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + } + var now$1 = Scheduler.unstable_now; + var commitTime = 0; + var layoutEffectStartTime = -1; + var profilerStartTime = -1; + var passiveEffectStartTime = -1; + + var currentUpdateIsNested = false; + var nestedUpdateScheduled = false; + function isCurrentUpdateNested() { + return currentUpdateIsNested; + } + function markNestedUpdateScheduled() { + { + nestedUpdateScheduled = true; + } + } + function resetNestedUpdateFlag() { + { + currentUpdateIsNested = false; + nestedUpdateScheduled = false; + } + } + function syncNestedUpdateFlag() { + { + currentUpdateIsNested = nestedUpdateScheduled; + nestedUpdateScheduled = false; + } + } + function getCommitTime() { + return commitTime; + } + function recordCommitTime() { + commitTime = now$1(); + } + function startProfilerTimer(fiber) { + profilerStartTime = now$1(); + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = now$1(); + } + } + function stopProfilerTimerIfRunning(fiber) { + profilerStartTime = -1; + } + function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + if (profilerStartTime >= 0) { + var elapsedTime = now$1() - profilerStartTime; + fiber.actualDuration += elapsedTime; + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + profilerStartTime = -1; + } + } + function recordLayoutEffectDuration(fiber) { + if (layoutEffectStartTime >= 0) { + var elapsedTime = now$1() - layoutEffectStartTime; + layoutEffectStartTime = -1; + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += elapsedTime; + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += elapsedTime; + return; + } + parentFiber = parentFiber.return; + } + } + } + function recordPassiveEffectDuration(fiber) { + if (passiveEffectStartTime >= 0) { + var elapsedTime = now$1() - passiveEffectStartTime; + passiveEffectStartTime = -1; + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + if (root !== null) { + root.passiveEffectDuration += elapsedTime; + } + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + if (parentStateNode !== null) { + parentStateNode.passiveEffectDuration += elapsedTime; + } + return; + } + parentFiber = parentFiber.return; + } + } + } + function startLayoutEffectTimer() { + layoutEffectStartTime = now$1(); + } + function startPassiveEffectTimer() { + passiveEffectStartTime = now$1(); + } + function transferActualDuration(fiber) { + var child = fiber.child; + while (child) { + fiber.actualDuration += child.actualDuration; + child = child.sibling; + } + } + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source) + }; + } + if (typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog !== "function") { + throw new Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + } + function showErrorDialog(boundary, errorInfo) { + var capturedError = { + componentStack: errorInfo.stack !== null ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: boundary !== null && boundary.tag === ClassComponent ? boundary.stateNode : null + }; + return ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(capturedError); + } + function logCapturedError(boundary, errorInfo) { + try { + var logError = showErrorDialog(boundary, errorInfo); + + if (logError === false) { + return; + } + var error = errorInfo.value; + if (true) { + var source = errorInfo.source; + var stack = errorInfo.stack; + var componentStack = stack !== null ? stack : ""; + + if (error != null && error._suppressLogging) { + if (boundary.tag === ClassComponent) { + return; + } + + console["error"](error); + } + + var componentName = source ? getComponentNameFromFiber(source) : null; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage; + if (boundary.tag === HostRoot) { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + } else { + var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } + var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); + + console["error"](combinedMessage); + } else { + console["error"](error); + } + } catch (e) { + setTimeout(function () { + throw e; + }); + } + } + var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + + update.tag = CaptureUpdate; + + update.payload = { + element: null + }; + var error = errorInfo.value; + update.callback = function () { + onUncaughtError(error); + logCapturedError(fiber, errorInfo); + }; + return update; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + update.tag = CaptureUpdate; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if (typeof getDerivedStateFromError === "function") { + var error$1 = errorInfo.value; + update.payload = function () { + return getDerivedStateFromError(error$1); + }; + update.callback = function () { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + if (typeof getDerivedStateFromError !== "function") { + markLegacyErrorBoundaryAsFailed(this); + } + var error$1 = errorInfo.value; + var stack = errorInfo.stack; + this.componentDidCatch(error$1, { + componentStack: stack !== null ? stack : "" + }); + { + if (typeof getDerivedStateFromError !== "function") { + if (!includesSomeLane(fiber.lanes, SyncLane)) { + error("%s: Error boundaries should implement getDerivedStateFromError(). " + "In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); + } + } + } + }; + } + return update; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + var threadIDs; + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap$1(); + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else { + threadIDs = pingCache.get(wakeable); + if (threadIDs === undefined) { + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } + } + if (!threadIDs.has(lanes)) { + threadIDs.add(lanes); + var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); + { + if (isDevToolsPresent) { + restorePendingUpdaters(root, lanes); + } + } + wakeable.then(ping, ping); + } + } + function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { + var wakeables = suspenseBoundary.updateQueue; + if (wakeables === null) { + var updateQueue = new Set(); + updateQueue.add(wakeable); + suspenseBoundary.updateQueue = updateQueue; + } else { + wakeables.add(wakeable); + } + } + function resetSuspendedComponent(sourceFiber, rootRenderLanes) { + + var tag = sourceFiber.tag; + if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { + var currentSource = sourceFiber.alternate; + if (currentSource) { + sourceFiber.updateQueue = currentSource.updateQueue; + sourceFiber.memoizedState = currentSource.memoizedState; + sourceFiber.lanes = currentSource.lanes; + } else { + sourceFiber.updateQueue = null; + sourceFiber.memoizedState = null; + } + } + } + function getNearestSuspenseBoundaryToCapture(returnFiber) { + var node = returnFiber; + do { + if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { + return node; + } + + node = node.return; + } while (node !== null); + return null; + } + function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { + if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { + if (suspenseBoundary === returnFiber) { + suspenseBoundary.flags |= ShouldCapture; + } else { + suspenseBoundary.flags |= DidCapture; + sourceFiber.flags |= ForceUpdateForLegacySuspense; + + sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); + if (sourceFiber.tag === ClassComponent) { + var currentSourceFiber = sourceFiber.alternate; + if (currentSourceFiber === null) { + sourceFiber.tag = IncompleteClassComponent; + } else { + var update = createUpdate(NoTimestamp, SyncLane); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update); + } + } + + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); + } + return suspenseBoundary; + } + + suspenseBoundary.flags |= ShouldCapture; + + suspenseBoundary.lanes = rootRenderLanes; + return suspenseBoundary; + } + function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { + sourceFiber.flags |= Incomplete; + { + if (isDevToolsPresent) { + restorePendingUpdaters(root, rootRenderLanes); + } + } + if (value !== null && typeof value === "object" && typeof value.then === "function") { + var wakeable = value; + resetSuspendedComponent(sourceFiber); + var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); + if (suspenseBoundary !== null) { + suspenseBoundary.flags &= ~ForceClientRender; + markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); + + if (suspenseBoundary.mode & ConcurrentMode) { + attachPingListener(root, wakeable, rootRenderLanes); + } + attachRetryListener(suspenseBoundary, root, wakeable); + return; + } else { + if (!includesSyncLane(rootRenderLanes)) { + attachPingListener(root, wakeable, rootRenderLanes); + renderDidSuspendDelayIfPossible(); + return; + } + + var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); + + value = uncaughtSuspenseError; + } + } + + renderDidError(value); + value = createCapturedValue(value, sourceFiber); + var workInProgress = returnFiber; + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.flags |= ShouldCapture; + var lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + var update = createRootErrorUpdate(workInProgress, _errorInfo, lane); + enqueueCapturedUpdate(workInProgress, update); + return; + } + case ClassComponent: + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.flags |= ShouldCapture; + var _lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); + + var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane); + enqueueCapturedUpdate(workInProgress, _update); + return; + } + break; + } + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + function getSuspendedCache() { + { + return null; + } + } + + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var didReceiveUpdate = false; + var didWarnAboutBadClass; + var didWarnAboutModulePatternComponent; + var didWarnAboutContextTypeOnFunctionComponent; + var didWarnAboutGetDerivedStateOnFunctionComponent; + var didWarnAboutFunctionRefs; + var didWarnAboutReassigningProps; + var didWarnAboutRevealOrder; + var didWarnAboutTailOptions; + { + didWarnAboutBadClass = {}; + didWarnAboutModulePatternComponent = {}; + didWarnAboutContextTypeOnFunctionComponent = {}; + didWarnAboutGetDerivedStateOnFunctionComponent = {}; + didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; + didWarnAboutRevealOrder = {}; + didWarnAboutTailOptions = {}; + } + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + if (current === null) { + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + } + function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); + + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + var render = Component.render; + var ref = workInProgress.ref; + + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (current === null) { + var type = Component.type; + if (isSimpleFunctionComponent(type) && Component.compare === null && + Component.defaultProps === undefined) { + var resolvedType = type; + { + resolvedType = resolveFunctionForHotReloading(type); + } + + workInProgress.tag = SimpleMemoComponent; + workInProgress.type = resolvedType; + { + validateFunctionComponentInDev(workInProgress, type); + } + return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes); + } + { + var innerPropTypes = type.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(type)); + } + } + var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + child.ref = workInProgress.ref; + child.return = workInProgress; + workInProgress.child = child; + return child; + } + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + if (_innerPropTypes) { + checkPropTypes(_innerPropTypes, nextProps, + "prop", getComponentNameFromType(_type)); + } + } + var currentChild = current.child; + + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext) { + var prevProps = currentChild.memoizedProps; + + var compare = Component.compare; + compare = compare !== null ? compare : shallowEqual; + if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + } + + workInProgress.flags |= PerformedWork; + var newChild = createWorkInProgress(currentChild, nextProps); + newChild.ref = workInProgress.ref; + newChild.return = workInProgress; + workInProgress.child = newChild; + return newChild; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerMemoType = workInProgress.elementType; + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + var lazyComponent = outerMemoType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + outerMemoType = init(payload); + } catch (x) { + outerMemoType = null; + } + + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, nextProps, + "prop", getComponentNameFromType(outerMemoType)); + } + } + } + } + if (current !== null) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && + workInProgress.type === current.type) { + didReceiveUpdate = false; + + workInProgress.pendingProps = nextProps = prevProps; + if (!checkScheduledUpdateOrContext(current, renderLanes)) { + workInProgress.lanes = current.lanes; + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } + } + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); + } + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + var prevState = current !== null ? current.memoizedState : null; + if (nextProps.mode === "hidden" || enableLegacyHidden) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + var nextState = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = nextState; + pushRenderLanes(workInProgress, renderLanes); + } else if (!includesSomeLane(renderLanes, OffscreenLane)) { + var spawnedCachePool = null; + + var nextBaseLanes; + if (prevState !== null) { + var prevBaseLanes = prevState.baseLanes; + nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes); + } else { + nextBaseLanes = renderLanes; + } + + workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane); + var _nextState = { + baseLanes: nextBaseLanes, + cachePool: spawnedCachePool, + transitions: null + }; + workInProgress.memoizedState = _nextState; + workInProgress.updateQueue = null; + + pushRenderLanes(workInProgress, nextBaseLanes); + return null; + } else { + var _nextState2 = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = _nextState2; + + var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes; + pushRenderLanes(workInProgress, subtreeRenderLanes); + } + } else { + var _subtreeRenderLanes; + if (prevState !== null) { + _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); + workInProgress.memoizedState = null; + } else { + _subtreeRenderLanes = renderLanes; + } + pushRenderLanes(workInProgress, _subtreeRenderLanes); + } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + + function updateFragment(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateMode(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateProfiler(current, workInProgress, renderLanes) { + { + workInProgress.flags |= Update; + { + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (current === null && ref !== null || current !== null && current.ref !== ref) { + workInProgress.flags |= Ref; + } + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); + context = getMaskedContext(workInProgress, unmaskedContext); + } + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + switch (shouldError(workInProgress)) { + case false: + { + var _instance = workInProgress.stateNode; + var ctor = workInProgress.type; + + var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context); + var state = tempInstance.state; + _instance.updater.enqueueSetState(_instance, state, null); + break; + } + case true: + { + workInProgress.flags |= DidCapture; + workInProgress.flags |= ShouldCapture; + + var error$1 = new Error("Simulated error coming from DevTools"); + var lane = pickArbitraryLane(renderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + + var update = createClassErrorUpdate(workInProgress, createCapturedValue(error$1, workInProgress), lane); + enqueueCapturedUpdate(workInProgress, update); + break; + } + } + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress, renderLanes); + var instance = workInProgress.stateNode; + var shouldUpdate; + if (instance === null) { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + shouldUpdate = true; + } else if (current === null) { + shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes); + } else { + shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes); + } + var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes); + { + var inst = workInProgress.stateNode; + if (shouldUpdate && inst.props !== nextProps) { + if (!didWarnAboutReassigningProps) { + error("It looks like %s is reassigning its own `this.props` while rendering. " + "This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"); + } + didWarnAboutReassigningProps = true; + } + } + return nextUnitOfWork; + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + if (!shouldUpdate && !didCaptureError) { + if (hasContext) { + invalidateContextProvider(workInProgress, Component, false); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + var instance = workInProgress.stateNode; + + ReactCurrentOwner$1.current = workInProgress; + var nextChildren; + if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { + nextChildren = null; + { + stopProfilerTimerIfRunning(); + } + } else { + { + setIsRendering(true); + nextChildren = instance.render(); + setIsRendering(false); + } + } + + workInProgress.flags |= PerformedWork; + if (current !== null && didCaptureError) { + forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + + workInProgress.memoizedState = instance.state; + + if (hasContext) { + invalidateContextProvider(workInProgress, Component, true); + } + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + pushTopLevelContextObject(workInProgress, root.context, false); + } + pushHostContainer(workInProgress, root.containerInfo); + } + function updateHostRoot(current, workInProgress, renderLanes) { + pushHostRootContext(workInProgress); + if (current === null) { + throw new Error("Should have a current fiber. This is a bug in React."); + } + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, nextProps, null, renderLanes); + var nextState = workInProgress.memoizedState; + var root = workInProgress.stateNode; + + var nextChildren = nextState.element; + { + if (nextChildren === prevChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + return workInProgress.child; + } + function updateHostComponent(current, workInProgress, renderLanes) { + pushHostContext(workInProgress); + var type = workInProgress.type; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + var nextChildren = nextProps.children; + if (prevProps !== null && shouldSetTextContent()) { + workInProgress.flags |= ContentReset; + } + markRef(current, workInProgress); + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateHostText(current, workInProgress) { + + return null; + } + function mountLazyComponent(_current, workInProgress, elementType, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var lazyComponent = elementType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + var Component = init(payload); + + workInProgress.type = Component; + var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); + var resolvedProps = resolveDefaultProps(Component, props); + var child; + switch (resolvedTag) { + case FunctionComponent: + { + { + validateFunctionComponentInDev(workInProgress, Component); + workInProgress.type = Component = resolveFunctionForHotReloading(Component); + } + child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ClassComponent: + { + { + workInProgress.type = Component = resolveClassForHotReloading(Component); + } + child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ForwardRef: + { + { + workInProgress.type = Component = resolveForwardRefForHotReloading(Component); + } + child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case MemoComponent: + { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = Component.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, resolvedProps, + "prop", getComponentNameFromType(Component)); + } + } + } + child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), + renderLanes); + return child; + } + } + var hint = ""; + { + if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { + hint = " Did you wrap a component in React.lazy() more than once?"; + } + } + + throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); + } + function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + + workInProgress.tag = ClassComponent; + + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress, renderLanes); + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } + function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, false); + context = getMaskedContext(workInProgress, unmaskedContext); + } + prepareToReadContext(workInProgress, renderLanes); + var value; + { + if (Component.prototype && typeof Component.prototype.render === "function") { + var componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutBadClass[componentName]) { + error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + setIsRendering(true); + ReactCurrentOwner$1.current = workInProgress; + value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes); + setIsRendering(false); + } + workInProgress.flags |= PerformedWork; + { + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + var _componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName, _componentName, _componentName); + didWarnAboutModulePatternComponent[_componentName] = true; + } + } + } + if ( + typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + { + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName2]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); + didWarnAboutModulePatternComponent[_componentName2] = true; + } + } + + workInProgress.tag = ClassComponent; + + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + + var hasContext = false; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + initializeUpdateQueue(workInProgress); + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, Component, props, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } else { + workInProgress.tag = FunctionComponent; + reconcileChildren(null, workInProgress, value, renderLanes); + { + validateFunctionComponentInDev(workInProgress, Component); + } + return workInProgress.child; + } + } + function validateFunctionComponentInDev(workInProgress, Component) { + { + if (Component) { + if (Component.childContextTypes) { + error("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"); + } + } + if (workInProgress.ref !== null) { + var info = ""; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + var warningKey = ownerName || ""; + var debugSource = workInProgress._debugSource; + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + error("Function components cannot be given refs. " + "Attempts to access this ref will fail. " + "Did you mean to use React.forwardRef()?%s", info); + } + } + if (typeof Component.getDerivedStateFromProps === "function") { + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) { + error("%s: Function components do not support getDerivedStateFromProps.", _componentName3); + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; + } + } + if (typeof Component.contextType === "object" && Component.contextType !== null) { + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + error("%s: Function components do not support contextType.", _componentName4); + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + } + } + } + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: NoLane + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: getSuspendedCache(), + transitions: null + }; + } + function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) { + var cachePool = null; + return { + baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes), + cachePool: cachePool, + transitions: prevOffscreenState.transitions + }; + } + + function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) { + if (current !== null) { + var suspenseState = current.memoizedState; + if (suspenseState === null) { + return false; + } + } + + return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + } + function getRemainingWorkInPrimaryTree(current, renderLanes) { + return removeLanes(current.childLanes, renderLanes); + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + + { + if (shouldSuspend(workInProgress)) { + workInProgress.flags |= DidCapture; + } + } + var suspenseContext = suspenseStackCursor.current; + var showFallback = false; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { + showFallback = true; + workInProgress.flags &= ~DidCapture; + } else { + if (current === null || current.memoizedState !== null) { + { + suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); + } + } + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); + + if (current === null) { + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null) { + var dehydrated = suspenseState.dehydrated; + if (dehydrated !== null) { + return mountDehydratedSuspenseComponent(workInProgress); + } + } + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + if (showFallback) { + var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var primaryChildFragment = workInProgress.child; + primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackFragment; + } else { + return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); + } + } else { + var prevState = current.memoizedState; + if (prevState !== null) { + var _dehydrated = prevState.dehydrated; + if (_dehydrated !== null) { + return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes); + } + } + if (showFallback) { + var _nextFallbackChildren = nextProps.fallback; + var _nextPrimaryChildren = nextProps.children; + var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes); + var _primaryChildFragment2 = workInProgress.child; + var prevOffscreenState = current.child.memoizedState; + _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes); + _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } else { + var _nextPrimaryChildren2 = nextProps.children; + var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes); + workInProgress.memoizedState = null; + return _primaryChildFragment3; + } + } + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) { + var mode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + primaryChildFragment.return = workInProgress; + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var progressedPrimaryFragment = workInProgress.child; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + var fallbackChildFragment; + if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = 0; + primaryChildFragment.treeBaseDuration = 0; + } + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } else { + primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) { + return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); + } + function updateWorkInProgressOffscreenFiber(current, offscreenProps) { + return createWorkInProgress(current, offscreenProps); + } + function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) { + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, { + mode: "visible", + children: primaryChildren + }); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + primaryChildFragment.lanes = renderLanes; + } + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = null; + if (currentFallbackChildFragment !== null) { + var deletions = workInProgress.deletions; + if (deletions === null) { + workInProgress.deletions = [currentFallbackChildFragment]; + workInProgress.flags |= ChildDeletion; + } else { + deletions.push(currentFallbackChildFragment); + } + } + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + if ( + (mode & ConcurrentMode) === NoMode && + workInProgress.child !== currentPrimaryChildFragment) { + var progressedPrimaryFragment = workInProgress.child; + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; + primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; + } + + workInProgress.deletions = null; + } else { + primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); + + primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; + } + var fallbackChildFragment; + if (currentFallbackChildFragment !== null) { + fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); + } else { + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + + fallbackChildFragment.flags |= Placement; + } + fallbackChildFragment.return = workInProgress; + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + if (recoverableError !== null) { + queueHydrationError(recoverableError); + } + + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + + var nextProps = workInProgress.pendingProps; + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + + primaryChildFragment.flags |= Placement; + workInProgress.memoizedState = null; + return primaryChildFragment; + } + function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var fiberMode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); + var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); + + fallbackChildFragment.flags |= Placement; + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + } + return fallbackChildFragment; + } + function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + { + error("Cannot hydrate Suspense in legacy mode. Switch from " + "ReactDOM.hydrate(element, container) to " + "ReactDOMClient.hydrateRoot(container, )" + ".render(element) or remove the Suspense components from " + "the server rendered components."); + } + workInProgress.lanes = laneToLanes(SyncLane); + } else if (isSuspenseInstanceFallback()) { + workInProgress.lanes = laneToLanes(DefaultHydrationLane); + } else { + workInProgress.lanes = laneToLanes(OffscreenLane); + } + return null; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (!didSuspend) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, + null); + } + if (isSuspenseInstanceFallback()) { + var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(), + errorMessage = _getSuspenseInstanceF.errorMessage; + var error = errorMessage ? new Error(errorMessage) : new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, error); + } + + var hasContextChanged = includesSomeLane(renderLanes, current.childLanes); + if (didReceiveUpdate || hasContextChanged) { + var root = getWorkInProgressRoot(); + if (root !== null) { + var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes); + if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { + suspenseState.retryLane = attemptHydrationAtLane; + + var eventTime = NoTimestamp; + scheduleUpdateOnFiber(current, attemptHydrationAtLane, eventTime); + } + } + + renderDidSuspendDelayIfPossible(); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); + } else if (isSuspenseInstancePending()) { + workInProgress.flags |= DidCapture; + + workInProgress.child = current.child; + + var retry = retryDehydratedSuspenseBoundary.bind(null, current); + registerSuspenseInstanceRetry(); + return null; + } else { + reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext); + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + + primaryChildFragment.flags |= Hydrating; + return primaryChildFragment; + } + } else { + if (workInProgress.flags & ForceClientRender) { + workInProgress.flags &= ~ForceClientRender; + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); + } else if (workInProgress.memoizedState !== null) { + workInProgress.child = current.child; + + workInProgress.flags |= DidCapture; + return null; + } else { + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var _primaryChildFragment4 = workInProgress.child; + _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } + } + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) { + var node = firstChild; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } + } else if (node.tag === SuspenseListComponent) { + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + function findLastContentRow(firstChild) { + var row = firstChild; + var lastContentRow = null; + while (row !== null) { + var currentRow = row.alternate; + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + lastContentRow = row; + } + row = row.sibling; + } + return lastContentRow; + } + function validateRevealOrder(revealOrder) { + { + if (revealOrder !== undefined && revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "together" && !didWarnAboutRevealOrder[revealOrder]) { + didWarnAboutRevealOrder[revealOrder] = true; + if (typeof revealOrder === "string") { + switch (revealOrder.toLowerCase()) { + case "together": + case "forwards": + case "backwards": + { + error('"%s" is not a valid value for revealOrder on . ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + case "forward": + case "backward": + { + error('"%s" is not a valid value for revealOrder on . ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + default: + error('"%s" is not a supported revealOrder on . ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + break; + } + } else { + error("%s is not a supported value for revealOrder on . " + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + } + } + } + } + function validateTailOptions(tailMode, revealOrder) { + { + if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) { + if (tailMode !== "collapsed" && tailMode !== "hidden") { + didWarnAboutTailOptions[tailMode] = true; + error('"%s" is not a supported value for tail on . ' + 'Did you mean "collapsed" or "hidden"?', tailMode); + } else if (revealOrder !== "forwards" && revealOrder !== "backwards") { + didWarnAboutTailOptions[tailMode] = true; + error(' is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode); + } + } + } + } + function validateSuspenseListNestedChild(childSlot, index) { + { + var isAnArray = isArray(childSlot); + var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function"; + if (isAnArray || isIterable) { + var type = isAnArray ? "array" : "iterable"; + error("A nested %s was passed to row #%s in . Wrap it in " + "an additional SuspenseList to configure its revealOrder: " + " ... " + "{%s} ... " + "", type, index, type); + return false; + } + } + return true; + } + function validateSuspenseListChildren(children, revealOrder) { + { + if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== undefined && children !== null && children !== false) { + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + if (!validateSuspenseListNestedChild(children[i], i)) { + return; + } + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var childrenIterator = iteratorFn.call(children); + if (childrenIterator) { + var step = childrenIterator.next(); + var _i = 0; + for (; !step.done; step = childrenIterator.next()) { + if (!validateSuspenseListNestedChild(step.value, _i)) { + return; + } + _i++; + } + } + } else { + error('A single row was passed to a . ' + "This is not useful since it needs multiple rows. " + "Did you mean to pass multiple children or an array?", revealOrder); + } + } + } + } + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + if (renderState === null) { + workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + }; + } else { + renderState.isBackwards = isBackwards; + renderState.rendering = null; + renderState.renderingStartTime = 0; + renderState.last = lastContentRow; + renderState.tail = tail; + renderState.tailMode = tailMode; + } + } + + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var revealOrder = nextProps.revealOrder; + var tailMode = nextProps.tail; + var newChildren = nextProps.children; + validateRevealOrder(revealOrder); + validateTailOptions(tailMode, revealOrder); + validateSuspenseListChildren(newChildren, revealOrder); + reconcileChildren(current, workInProgress, newChildren, renderLanes); + var suspenseContext = suspenseStackCursor.current; + var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + if (shouldForceFallback) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + workInProgress.flags |= DidCapture; + } else { + var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags; + if (didSuspendBefore) { + propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes); + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + workInProgress.memoizedState = null; + } else { + switch (revealOrder) { + case "forwards": + { + var lastContentRow = findLastContentRow(workInProgress.child); + var tail; + if (lastContentRow === null) { + tail = workInProgress.child; + workInProgress.child = null; + } else { + tail = lastContentRow.sibling; + lastContentRow.sibling = null; + } + initSuspenseListRenderState(workInProgress, false, + tail, lastContentRow, tailMode); + break; + } + case "backwards": + { + var _tail = null; + var row = workInProgress.child; + workInProgress.child = null; + while (row !== null) { + var currentRow = row.alternate; + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + workInProgress.child = row; + break; + } + var nextRow = row.sibling; + row.sibling = _tail; + _tail = row; + row = nextRow; + } + + initSuspenseListRenderState(workInProgress, true, + _tail, null, + tailMode); + break; + } + case "together": + { + initSuspenseListRenderState(workInProgress, false, + null, + null, + undefined); + break; + } + default: + { + workInProgress.memoizedState = null; + } + } + } + return workInProgress.child; + } + function updatePortalComponent(current, workInProgress, renderLanes) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + if (current === null) { + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + return workInProgress.child; + } + var hasWarnedAboutUsingNoValuePropOnContextProvider = false; + function updateContextProvider(current, workInProgress, renderLanes) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = newProps.value; + { + if (!("value" in newProps)) { + if (!hasWarnedAboutUsingNoValuePropOnContextProvider) { + hasWarnedAboutUsingNoValuePropOnContextProvider = true; + error("The `value` prop is required for the ``. Did you misspell it or forget to pass it?"); + } + } + var providerPropTypes = workInProgress.type.propTypes; + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"); + } + } + pushProvider(workInProgress, context, newValue); + { + if (oldProps !== null) { + var oldValue = oldProps.value; + if (objectIs(oldValue, newValue)) { + if (oldProps.children === newProps.children && !hasContextChanged()) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + } else { + propagateContextChange(workInProgress, context, renderLanes); + } + } + } + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; + } + var hasWarnedAboutUsingContextAsConsumer = false; + function updateContextConsumer(current, workInProgress, renderLanes) { + var context = workInProgress.type; + + { + if (context._context === undefined) { + if (context !== context.Consumer) { + if (!hasWarnedAboutUsingContextAsConsumer) { + hasWarnedAboutUsingContextAsConsumer = true; + error("Rendering directly is not supported and will be removed in " + "a future major release. Did you mean to render instead?"); + } + } + } else { + context = context._context; + } + } + var newProps = workInProgress.pendingProps; + var render = newProps.children; + { + if (typeof render !== "function") { + error("A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it."); + } + } + prepareToReadContext(workInProgress, renderLanes); + var newValue = _readContext(context); + var newChildren; + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + newChildren = render(newValue); + setIsRendering(false); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; + } + function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + if (current !== null) { + current.alternate = null; + workInProgress.alternate = null; + + workInProgress.flags |= Placement; + } + } + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + if (current !== null) { + workInProgress.dependencies = current.dependencies; + } + { + stopProfilerTimerIfRunning(); + } + markSkippedUpdateLanes(workInProgress.lanes); + + if (!includesSomeLane(renderLanes, workInProgress.childLanes)) { + { + return null; + } + } + + cloneChildFibers(current, workInProgress); + return workInProgress.child; + } + function remountFiber(current, oldWorkInProgress, newWorkInProgress) { + { + var returnFiber = oldWorkInProgress.return; + if (returnFiber === null) { + throw new Error("Cannot swap the root fiber."); + } + + current.alternate = null; + oldWorkInProgress.alternate = null; + + newWorkInProgress.index = oldWorkInProgress.index; + newWorkInProgress.sibling = oldWorkInProgress.sibling; + newWorkInProgress.return = oldWorkInProgress.return; + newWorkInProgress.ref = oldWorkInProgress.ref; + + if (oldWorkInProgress === returnFiber.child) { + returnFiber.child = newWorkInProgress; + } else { + var prevSibling = returnFiber.child; + if (prevSibling === null) { + throw new Error("Expected parent to have a child."); + } + while (prevSibling.sibling !== oldWorkInProgress) { + prevSibling = prevSibling.sibling; + if (prevSibling === null) { + throw new Error("Expected to find the previous sibling."); + } + } + prevSibling.sibling = newWorkInProgress; + } + + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [current]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(current); + } + newWorkInProgress.flags |= Placement; + + return newWorkInProgress; + } + } + function checkScheduledUpdateOrContext(current, renderLanes) { + var updateLanes = current.lanes; + if (includesSomeLane(updateLanes, renderLanes)) { + return true; + } + + return false; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + var root = workInProgress.stateNode; + break; + case HostComponent: + pushHostContext(workInProgress); + break; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + pushContextProvider(workInProgress); + } + break; + } + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case ContextProvider: + { + var newValue = workInProgress.memoizedProps.value; + var context = workInProgress.type._context; + pushProvider(workInProgress, context, newValue); + break; + } + case Profiler: + { + var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (hasChildWork) { + workInProgress.flags |= Update; + } + { + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + break; + case SuspenseComponent: + { + var state = workInProgress.memoizedState; + if (state !== null) { + if (state.dehydrated !== null) { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + + workInProgress.flags |= DidCapture; + + return null; + } + + var primaryChildFragment = workInProgress.child; + var primaryChildLanes = primaryChildFragment.childLanes; + if (includesSomeLane(renderLanes, primaryChildLanes)) { + return updateSuspenseComponent(current, workInProgress, renderLanes); + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + + var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + if (child !== null) { + return child.sibling; + } else { + return null; + } + } + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + break; + } + case SuspenseListComponent: + { + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (didSuspendBefore) { + if (_hasChildWork) { + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } + + workInProgress.flags |= DidCapture; + } + + var renderState = workInProgress.memoizedState; + if (renderState !== null) { + renderState.rendering = null; + renderState.tail = null; + renderState.lastEffect = null; + } + pushSuspenseContext(workInProgress, suspenseStackCursor.current); + if (_hasChildWork) { + break; + } else { + return null; + } + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + workInProgress.lanes = NoLanes; + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + function beginWork(current, workInProgress, renderLanes) { + { + if (workInProgress._debugNeedsRemount && current !== null) { + return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes)); + } + } + if (current !== null) { + var oldProps = current.memoizedProps; + var newProps = workInProgress.pendingProps; + if (oldProps !== newProps || hasContextChanged() || + workInProgress.type !== current.type) { + didReceiveUpdate = true; + } else { + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext && + (workInProgress.flags & DidCapture) === NoFlags) { + didReceiveUpdate = false; + return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + } + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } else { + didReceiveUpdate = false; + } + } + } else { + didReceiveUpdate = false; + } + + workInProgress.lanes = NoLanes; + switch (workInProgress.tag) { + case IndeterminateComponent: + { + return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes); + } + case LazyComponent: + { + var elementType = workInProgress.elementType; + return mountLazyComponent(current, workInProgress, elementType, renderLanes); + } + case FunctionComponent: + { + var Component = workInProgress.type; + var unresolvedProps = workInProgress.pendingProps; + var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps); + return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes); + } + case ClassComponent: + { + var _Component = workInProgress.type; + var _unresolvedProps = workInProgress.pendingProps; + var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps); + return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes); + } + case HostRoot: + return updateHostRoot(current, workInProgress, renderLanes); + case HostComponent: + return updateHostComponent(current, workInProgress, renderLanes); + case HostText: + return updateHostText(); + case SuspenseComponent: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case HostPortal: + return updatePortalComponent(current, workInProgress, renderLanes); + case ForwardRef: + { + var type = workInProgress.type; + var _unresolvedProps2 = workInProgress.pendingProps; + var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); + return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes); + } + case Fragment: + return updateFragment(current, workInProgress, renderLanes); + case Mode: + return updateMode(current, workInProgress, renderLanes); + case Profiler: + return updateProfiler(current, workInProgress, renderLanes); + case ContextProvider: + return updateContextProvider(current, workInProgress, renderLanes); + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderLanes); + case MemoComponent: + { + var _type2 = workInProgress.type; + var _unresolvedProps3 = workInProgress.pendingProps; + + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = _type2.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, _resolvedProps3, + "prop", getComponentNameFromType(_type2)); + } + } + } + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes); + } + case SimpleMemoComponent: + { + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + } + case IncompleteClassComponent: + { + var _Component2 = workInProgress.type; + var _unresolvedProps4 = workInProgress.pendingProps; + var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4); + return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes); + } + case SuspenseListComponent: + { + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + { + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + } + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); + } + function markUpdate(workInProgress) { + workInProgress.flags |= Update; + } + function markRef$1(workInProgress) { + workInProgress.flags |= Ref; + } + var appendAllChildren; + var updateHostContainer; + var updateHostComponent$1; + var updateHostText$1; + { + appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + var node = workInProgress.child; + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) ;else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function updateHostContainer(current, workInProgress) { + }; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance) { + var oldProps = current.memoizedProps; + if (oldProps === newProps) { + return; + } + + var instance = workInProgress.stateNode; + var currentHostContext = getHostContext(); + + var updatePayload = prepareUpdate(); + + workInProgress.updateQueue = updatePayload; + + if (updatePayload) { + markUpdate(workInProgress); + } + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + markUpdate(workInProgress); + } + }; + } + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + { + var tailNode = renderState.tail; + var lastTailNode = null; + while (tailNode !== null) { + if (tailNode.alternate !== null) { + lastTailNode = tailNode; + } + tailNode = tailNode.sibling; + } + + if (lastTailNode === null) { + renderState.tail = null; + } else { + lastTailNode.sibling = null; + } + break; + } + case "collapsed": + { + var _tailNode = renderState.tail; + var _lastTailNode = null; + while (_tailNode !== null) { + if (_tailNode.alternate !== null) { + _lastTailNode = _tailNode; + } + _tailNode = _tailNode.sibling; + } + + if (_lastTailNode === null) { + if (!hasRenderedATailFallback && renderState.tail !== null) { + renderState.tail.sibling = null; + } else { + renderState.tail = null; + } + } else { + _lastTailNode.sibling = null; + } + break; + } + } + } + function bubbleProperties(completedWork) { + var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; + var newChildLanes = NoLanes; + var subtreeFlags = NoFlags; + if (!didBailout) { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var actualDuration = completedWork.actualDuration; + var treeBaseDuration = completedWork.selfBaseDuration; + var child = completedWork.child; + while (child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); + subtreeFlags |= child.subtreeFlags; + subtreeFlags |= child.flags; + + actualDuration += child.actualDuration; + treeBaseDuration += child.treeBaseDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + completedWork.treeBaseDuration = treeBaseDuration; + } else { + var _child = completedWork.child; + while (_child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); + subtreeFlags |= _child.subtreeFlags; + subtreeFlags |= _child.flags; + + _child.return = completedWork; + _child = _child.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } else { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var _treeBaseDuration = completedWork.selfBaseDuration; + var _child2 = completedWork.child; + while (_child2 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); + + subtreeFlags |= _child2.subtreeFlags & StaticMask; + subtreeFlags |= _child2.flags & StaticMask; + _treeBaseDuration += _child2.treeBaseDuration; + _child2 = _child2.sibling; + } + completedWork.treeBaseDuration = _treeBaseDuration; + } else { + var _child3 = completedWork.child; + while (_child3 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); + + subtreeFlags |= _child3.subtreeFlags & StaticMask; + subtreeFlags |= _child3.flags & StaticMask; + + _child3.return = completedWork; + _child3 = _child3.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) { + var wasHydrated = popHydrationState(); + if (nextState !== null && nextState.dehydrated !== null) { + if (current === null) { + if (!wasHydrated) { + throw new Error("A dehydrated suspense component was completed without a hydrated node. " + "This is probably a bug in React."); + } + prepareToHydrateHostSuspenseInstance(); + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var isTimedOutSuspense = nextState !== null; + if (isTimedOutSuspense) { + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } else { + if ((workInProgress.flags & DidCapture) === NoFlags) { + workInProgress.memoizedState = null; + } + + workInProgress.flags |= Update; + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var _isTimedOutSuspense = nextState !== null; + if (_isTimedOutSuspense) { + var _primaryChildFragment = workInProgress.child; + if (_primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } + } else { + upgradeHydrationErrorsToRecoverable(); + + return true; + } + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case IndeterminateComponent: + case LazyComponent: + case SimpleMemoComponent: + case FunctionComponent: + case ForwardRef: + case Fragment: + case Mode: + case Profiler: + case ContextConsumer: + case MemoComponent: + bubbleProperties(workInProgress); + return null; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case HostRoot: + { + var fiberRoot = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + if (current === null || current.child === null) { + var wasHydrated = popHydrationState(); + if (wasHydrated) { + markUpdate(workInProgress); + } else { + if (current !== null) { + var prevState = current.memoizedState; + if ( + !prevState.isDehydrated || + (workInProgress.flags & ForceClientRender) !== NoFlags) { + workInProgress.flags |= Snapshot; + + upgradeHydrationErrorsToRecoverable(); + } + } + } + } + updateHostContainer(current, workInProgress); + bubbleProperties(workInProgress); + return null; + } + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + if (current !== null && workInProgress.stateNode != null) { + updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance); + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } + + bubbleProperties(workInProgress); + return null; + } + var currentHostContext = getHostContext(); + + var _wasHydrated = popHydrationState(); + if (_wasHydrated) { + if (prepareToHydrateHostInstance()) { + markUpdate(workInProgress); + } + } else { + var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); + appendAllChildren(instance, workInProgress, false, false); + workInProgress.stateNode = instance; + + if (finalizeInitialChildren(instance)) { + markUpdate(workInProgress); + } + } + if (workInProgress.ref !== null) { + markRef$1(workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case HostText: + { + var newText = newProps; + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; + + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== "string") { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } + } + + var _rootContainerInstance = getRootHostContainer(); + var _currentHostContext = getHostContext(); + var _wasHydrated2 = popHydrationState(); + if (_wasHydrated2) { + if (prepareToHydrateHostTextInstance()) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var nextState = workInProgress.memoizedState; + + if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) { + var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState); + if (!fallthroughToNormalSuspensePath) { + if (workInProgress.flags & ShouldCapture) { + return workInProgress; + } else { + return null; + } + } + } + + if ((workInProgress.flags & DidCapture) !== NoFlags) { + workInProgress.lanes = renderLanes; + + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + + return workInProgress; + } + var nextDidTimeout = nextState !== null; + var prevDidTimeout = current !== null && current.memoizedState !== null; + + if (nextDidTimeout !== prevDidTimeout) { + + if (nextDidTimeout) { + var _offscreenFiber2 = workInProgress.child; + _offscreenFiber2.flags |= Visibility; + + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); + if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + renderDidSuspend(); + } else { + renderDidSuspendDelayIfPossible(); + } + } + } + } + var wakeables = workInProgress.updateQueue; + if (wakeables !== null) { + workInProgress.flags |= Update; + } + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + if (nextDidTimeout) { + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return null; + } + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(current, workInProgress); + if (current === null) { + preparePortalMount(workInProgress.stateNode.containerInfo); + } + bubbleProperties(workInProgress); + return null; + case ContextProvider: + var context = workInProgress.type._context; + popProvider(context, workInProgress); + bubbleProperties(workInProgress); + return null; + case IncompleteClassComponent: + { + var _Component = workInProgress.type; + if (isContextProvider(_Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + var renderState = workInProgress.memoizedState; + if (renderState === null) { + bubbleProperties(workInProgress); + return null; + } + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var renderedTail = renderState.rendering; + if (renderedTail === null) { + if (!didSuspendAlready) { + var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags); + if (!cannotBeSuspended) { + var row = workInProgress.child; + while (row !== null) { + var suspended = findFirstSuspended(row); + if (suspended !== null) { + didSuspendAlready = true; + workInProgress.flags |= DidCapture; + cutOffTailIfNeeded(renderState, false); + + var newThenables = suspended.updateQueue; + if (newThenables !== null) { + workInProgress.updateQueue = newThenables; + workInProgress.flags |= Update; + } + + workInProgress.subtreeFlags = NoFlags; + resetChildFibers(workInProgress, renderLanes); + + pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); + + return workInProgress.child; + } + row = row.sibling; + } + } + if (renderState.tail !== null && now() > getRenderTargetTime()) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + + workInProgress.lanes = SomeRetryLane; + } + } else { + cutOffTailIfNeeded(renderState, false); + } + } else { + if (!didSuspendAlready) { + var _suspended = findFirstSuspended(renderedTail); + if (_suspended !== null) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + + var _newThenables = _suspended.updateQueue; + if (_newThenables !== null) { + workInProgress.updateQueue = _newThenables; + workInProgress.flags |= Update; + } + cutOffTailIfNeeded(renderState, true); + + if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating()) { + bubbleProperties(workInProgress); + return null; + } + } else if ( + now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + + workInProgress.lanes = SomeRetryLane; + } + } + if (renderState.isBackwards) { + renderedTail.sibling = workInProgress.child; + workInProgress.child = renderedTail; + } else { + var previousSibling = renderState.last; + if (previousSibling !== null) { + previousSibling.sibling = renderedTail; + } else { + workInProgress.child = renderedTail; + } + renderState.last = renderedTail; + } + } + if (renderState.tail !== null) { + var next = renderState.tail; + renderState.rendering = next; + renderState.tail = next.sibling; + renderState.renderingStartTime = now(); + next.sibling = null; + + var suspenseContext = suspenseStackCursor.current; + if (didSuspendAlready) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + } else { + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); + + return next; + } + bubbleProperties(workInProgress); + return null; + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + popRenderLanes(workInProgress); + var _nextState = workInProgress.memoizedState; + var nextIsHidden = _nextState !== null; + if (current !== null) { + var _prevState = current.memoizedState; + var prevIsHidden = _prevState !== null; + if (prevIsHidden !== nextIsHidden && + !enableLegacyHidden) { + workInProgress.flags |= Visibility; + } + } + if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) { + bubbleProperties(workInProgress); + } else { + if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { + bubbleProperties(workInProgress); + { + if (workInProgress.subtreeFlags & (Placement | Update)) { + workInProgress.flags |= Visibility; + } + } + } + } + return null; + } + case CacheComponent: + { + return null; + } + case TracingMarkerComponent: + { + return null; + } + } + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); + } + function unwindWork(current, workInProgress, renderLanes) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + var flags = workInProgress.flags; + if (flags & ShouldCapture) { + workInProgress.flags = flags & ~ShouldCapture | DidCapture; + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case HostRoot: + { + var root = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + var _flags = workInProgress.flags; + if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { + workInProgress.flags = _flags & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + case HostComponent: + { + popHostContext(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null && suspenseState.dehydrated !== null) { + if (workInProgress.alternate === null) { + throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in " + "React. Please file an issue."); + } + } + var _flags2 = workInProgress.flags; + if (_flags2 & ShouldCapture) { + workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; + + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + + return null; + } + case HostPortal: + popHostContainer(workInProgress); + return null; + case ContextProvider: + var context = workInProgress.type._context; + popProvider(context, workInProgress); + return null; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(workInProgress); + return null; + case CacheComponent: + return null; + default: + return null; + } + } + function unwindInterruptedWork(current, interruptedWork, renderLanes) { + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case ClassComponent: + { + var childContextTypes = interruptedWork.type.childContextTypes; + if (childContextTypes !== null && childContextTypes !== undefined) { + popContext(interruptedWork); + } + break; + } + case HostRoot: + { + var root = interruptedWork.stateNode; + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + resetWorkInProgressVersions(); + break; + } + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + case HostPortal: + popHostContainer(interruptedWork); + break; + case SuspenseComponent: + popSuspenseContext(interruptedWork); + break; + case SuspenseListComponent: + popSuspenseContext(interruptedWork); + break; + case ContextProvider: + var context = interruptedWork.type._context; + popProvider(context, interruptedWork); + break; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(interruptedWork); + break; + } + } + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } + var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; + var nextEffect = null; + + var inProgressLanes = null; + var inProgressRoot = null; + function reportUncaughtErrorInDEV(error) { + { + invokeGuardedCallback(null, function () { + throw error; + }); + clearCaughtError(); + } + } + var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + if (current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentWillUnmount(); + } finally { + recordLayoutEffectDuration(current); + } + } else { + instance.componentWillUnmount(); + } + }; + + function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { + try { + callComponentWillUnmountWithTimer(current, instance); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (ref !== null) { + if (typeof ref === "function") { + var retVal; + try { + if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(null); + } finally { + recordLayoutEffectDuration(current); + } + } else { + retVal = ref(null); + } + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(current)); + } + } + } else { + ref.current = null; + } + } + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var focusedInstanceHandle = null; + var shouldFireAfterActiveInstanceBlur = false; + function commitBeforeMutationEffects(root, firstChild) { + focusedInstanceHandle = prepareForCommit(root.containerInfo); + nextEffect = firstChild; + commitBeforeMutationEffects_begin(); + + var shouldFire = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = false; + focusedInstanceHandle = null; + return shouldFire; + } + function commitBeforeMutationEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + + var child = fiber.child; + if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitBeforeMutationEffects_complete(); + } + } + } + function commitBeforeMutationEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + setCurrentFiber(fiber); + try { + commitBeforeMutationEffectsOnFiber(fiber); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitBeforeMutationEffectsOnFiber(finishedWork) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; + if ((flags & Snapshot) !== NoFlags) { + setCurrentFiber(finishedWork); + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + break; + } + case ClassComponent: + { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + var instance = finishedWork.stateNode; + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + } + case HostRoot: + { + { + var root = finishedWork.stateNode; + clearContainer(root.containerInfo); + } + break; + } + case HostComponent: + case HostText: + case HostPortal: + case IncompleteClassComponent: + break; + default: + { + throw new 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."); + } + } + resetCurrentFiber(); + } + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = undefined; + if (destroy !== undefined) { + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitHookEffectListMount(flags, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var create = effect.create; + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + effect.destroy = create(); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + { + var destroy = effect.destroy; + if (destroy !== undefined && typeof destroy !== "function") { + var hookName = void 0; + if ((effect.tag & Layout) !== NoFlags) { + hookName = "useLayoutEffect"; + } else if ((effect.tag & Insertion) !== NoFlags) { + hookName = "useInsertionEffect"; + } else { + hookName = "useEffect"; + } + var addendum = void 0; + if (destroy === null) { + addendum = " You returned null. If your effect does not require clean " + "up, return undefined (or nothing)."; + } else if (typeof destroy.then === "function") { + addendum = "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. " + "Instead, write the async function inside your effect " + "and call it immediately:\n\n" + hookName + "(() => {\n" + " async function fetchData() {\n" + " // You can await here\n" + " const response = await MyAPI.getData(someId);\n" + " // ...\n" + " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + } else { + addendum = " You returned: " + destroy; + } + error("%s must not return anything besides a function, " + "which is used for clean-up.%s", hookName, addendum); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitPassiveEffectDurations(finishedRoot, finishedWork) { + { + if ((finishedWork.flags & Update) !== NoFlags) { + switch (finishedWork.tag) { + case Profiler: + { + var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onPostCommit = _finishedWork$memoize.onPostCommit; + + var commitTime = getCommitTime(); + var phase = finishedWork.alternate === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onPostCommit === "function") { + onPostCommit(id, phase, passiveEffectDuration, commitTime); + } + + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.passiveEffectDuration += passiveEffectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.passiveEffectDuration += passiveEffectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + break; + } + } + } + } + } + function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) { + if ((finishedWork.flags & LayoutMask) !== NoFlags) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + { + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } + } + break; + } + case ClassComponent: + { + var instance = finishedWork.stateNode; + if (finishedWork.flags & Update) { + { + if (current === null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidMount(); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidMount(); + } + } else { + var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); + var prevState = current.memoizedState; + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } + } + } + } + + var updateQueue = finishedWork.updateQueue; + if (updateQueue !== null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + + commitUpdateQueue(finishedWork, updateQueue, instance); + } + break; + } + case HostRoot: + { + var _updateQueue = finishedWork.updateQueue; + if (_updateQueue !== null) { + var _instance = null; + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + commitUpdateQueue(finishedWork, _updateQueue, _instance); + } + break; + } + case HostComponent: + { + var _instance2 = finishedWork.stateNode; + + if (current === null && finishedWork.flags & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + } + break; + } + case HostText: + { + break; + } + case HostPortal: + { + break; + } + case Profiler: + { + { + var _finishedWork$memoize2 = finishedWork.memoizedProps, + onCommit = _finishedWork$memoize2.onCommit, + onRender = _finishedWork$memoize2.onRender; + var effectDuration = finishedWork.stateNode.effectDuration; + var commitTime = getCommitTime(); + var phase = current === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onRender === "function") { + onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime); + } + { + if (typeof onCommit === "function") { + onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime); + } + + enqueuePendingPassiveProfilerEffect(finishedWork); + + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += effectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += effectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + } + } + break; + } + case SuspenseComponent: + { + break; + } + case SuspenseListComponent: + case IncompleteClassComponent: + case ScopeComponent: + case OffscreenComponent: + case LegacyHiddenComponent: + case TracingMarkerComponent: + { + break; + } + default: + throw new 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 (finishedWork.flags & Ref) { + commitAttachRef(finishedWork); + } + } + } + } + function hideOrUnhideAllChildren(finishedWork, isHidden) { + var hostSubtreeRoot = null; + { + var node = finishedWork; + while (true) { + if (node.tag === HostComponent) { + if (hostSubtreeRoot === null) { + hostSubtreeRoot = node; + try { + var instance = node.stateNode; + if (isHidden) { + hideInstance(instance); + } else { + unhideInstance(node.stateNode, node.memoizedProps); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } else if (node.tag === HostText) { + if (hostSubtreeRoot === null) { + try { + var _instance3 = node.stateNode; + if (isHidden) { + hideTextInstance(_instance3); + } else { + unhideTextInstance(_instance3, node.memoizedProps); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ;else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === finishedWork) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node = node.return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + } + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse; + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + default: + instanceToUse = instance; + } + + if (typeof ref === "function") { + var retVal; + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(instanceToUse); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + retVal = ref(instanceToUse); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(finishedWork)); + } + } + } else { + { + if (!ref.hasOwnProperty("current")) { + error("Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)); + } + } + ref.current = instanceToUse; + } + } + } + function detachFiberMutation(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.return = null; + } + fiber.return = null; + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + fiber.alternate = null; + detachFiberAfterEffects(alternate); + } + + { + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + + if (fiber.tag === HostComponent) { + var hostInstance = fiber.stateNode; + } + fiber.stateNode = null; + + { + fiber._debugOwner = null; + } + { + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + + fiber.updateQueue = null; + } + } + } + function getHostParentFiber(fiber) { + var parent = fiber.return; + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + parent = parent.return; + } + throw new Error("Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); + } + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; + } + function getHostSibling(fiber) { + var node = fiber; + siblings: while (true) { + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) { + if (node.flags & Placement) { + continue siblings; + } + + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; + } + } + + if (!(node.flags & Placement)) { + return node.stateNode; + } + } + } + function commitPlacement(finishedWork) { + var parentFiber = getHostParentFiber(finishedWork); + + switch (parentFiber.tag) { + case HostComponent: + { + var parent = parentFiber.stateNode; + if (parentFiber.flags & ContentReset) { + parentFiber.flags &= ~ContentReset; + } + var before = getHostSibling(finishedWork); + + insertOrAppendPlacementNode(finishedWork, before, parent); + break; + } + case HostRoot: + case HostPortal: + { + var _parent = parentFiber.stateNode.containerInfo; + var _before = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent); + break; + } + + default: + throw new Error("Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); + } + } + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertInContainerBefore(parent); + } else { + appendChildToContainer(parent, stateNode); + } + } else if (tag === HostPortal) ;else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNodeIntoContainer(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNodeIntoContainer(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertBefore(parent, stateNode, before); + } else { + appendChild(parent, stateNode); + } + } else if (tag === HostPortal) ;else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNode(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNode(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + + var hostParent = null; + var hostParentIsContainer = false; + function commitDeletionEffects(root, returnFiber, deletedFiber) { + { + var parent = returnFiber; + findParent: while (parent !== null) { + switch (parent.tag) { + case HostComponent: + { + hostParent = parent.stateNode; + hostParentIsContainer = false; + break findParent; + } + case HostRoot: + { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + case HostPortal: + { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + } + parent = parent.return; + } + if (hostParent === null) { + throw new Error("Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); + } + commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); + hostParent = null; + hostParentIsContainer = false; + } + detachFiberMutation(deletedFiber); + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + var child = parent.child; + while (child !== null) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); + child = child.sibling; + } + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + onCommitUnmount(deletedFiber); + + switch (deletedFiber.tag) { + case HostComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + } + } + + case HostText: + { + { + var prevHostParent = hostParent; + var prevHostParentIsContainer = hostParentIsContainer; + hostParent = null; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + if (hostParent !== null) { + if (hostParentIsContainer) { + removeChildFromContainer(hostParent, deletedFiber.stateNode); + } else { + removeChild(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case DehydratedFragment: + { + + { + if (hostParent !== null) { + if (hostParentIsContainer) { + clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode); + } else { + clearSuspenseBoundary(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case HostPortal: + { + { + var _prevHostParent = hostParent; + var _prevHostParentIsContainer = hostParentIsContainer; + hostParent = deletedFiber.stateNode.containerInfo; + hostParentIsContainer = true; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = _prevHostParent; + hostParentIsContainer = _prevHostParentIsContainer; + } + return; + } + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + { + var updateQueue = deletedFiber.updateQueue; + if (updateQueue !== null) { + var lastEffect = updateQueue.lastEffect; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + var _effect = effect, + destroy = _effect.destroy, + tag = _effect.tag; + if (destroy !== undefined) { + if ((tag & Insertion) !== NoFlags$1) { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } else if ((tag & Layout) !== NoFlags$1) { + if (deletedFiber.mode & ProfileMode) { + startLayoutEffectTimer(); + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + recordLayoutEffectDuration(deletedFiber); + } else { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ClassComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + var instance = deletedFiber.stateNode; + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance); + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ScopeComponent: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case OffscreenComponent: + { + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + break; + } + default: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + } + } + function commitSuspenseCallback(finishedWork) { + var newState = finishedWork.memoizedState; + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (wakeables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet(); + } + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + if (!retryCache.has(wakeable)) { + retryCache.add(wakeable); + { + if (isDevToolsPresent) { + if (inProgressLanes !== null && inProgressRoot !== null) { + restorePendingUpdaters(inProgressRoot, inProgressLanes); + } else { + throw Error("Expected finished root and lanes to be set. This is a bug in React."); + } + } + } + wakeable.then(retry, retry); + } + }); + } + } + function commitMutationEffects(root, finishedWork, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + setCurrentFiber(finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + setCurrentFiber(finishedWork); + inProgressLanes = null; + inProgressRoot = null; + } + function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { + var deletions = parentFiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffects(root, parentFiber, childToDelete); + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + } + var prevDebugFiber = getCurrentFiber(); + if (parentFiber.subtreeFlags & MutationMask) { + var child = parentFiber.child; + while (child !== null) { + setCurrentFiber(child); + commitMutationEffectsOnFiber(child, root); + child = child.sibling; + } + } + setCurrentFiber(prevDebugFiber); + } + function commitMutationEffectsOnFiber(finishedWork, root, lanes) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; + + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + try { + commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return); + commitHookEffectListMount(Insertion | HasEffect, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + recordLayoutEffectDuration(finishedWork); + } else { + try { + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case ClassComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + return; + } + case HostComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + { + if (finishedWork.flags & ContentReset) { + var instance = finishedWork.stateNode; + try { + resetTextContent(instance); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + if (flags & Update) { + var _instance4 = finishedWork.stateNode; + if (_instance4 != null) { + var newProps = finishedWork.memoizedProps; + + var oldProps = current !== null ? current.memoizedProps : newProps; + var type = finishedWork.type; + + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + if (updatePayload !== null) { + try { + commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + } + } + return; + } + case HostText: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + if (finishedWork.stateNode === null) { + throw new Error("This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); + } + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; + + var oldText = current !== null ? current.memoizedProps : newText; + try { + commitTextUpdate(textInstance, oldText, newText); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case HostRoot: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case HostPortal: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case SuspenseComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + var offscreenFiber = finishedWork.child; + if (offscreenFiber.flags & Visibility) { + var newState = offscreenFiber.memoizedState; + var isHidden = newState !== null; + if (isHidden) { + var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; + if (!wasHidden) { + markCommitTimeOfFallback(); + } + } + } + if (flags & Update) { + try { + commitSuspenseCallback(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case OffscreenComponent: + { + var _wasHidden = current !== null && current.memoizedState !== null; + { + recursivelyTraverseMutationEffects(root, finishedWork); + } + commitReconciliationEffects(finishedWork); + if (flags & Visibility) { + var _newState = finishedWork.memoizedState; + var _isHidden = _newState !== null; + var offscreenBoundary = finishedWork; + { + hideOrUnhideAllChildren(offscreenBoundary, _isHidden); + } + } + return; + } + case SuspenseListComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case ScopeComponent: + { + return; + } + default: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + if (flags & Placement) { + try { + commitPlacement(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + + finishedWork.flags &= ~Placement; + } + if (flags & Hydrating) { + finishedWork.flags &= ~Hydrating; + } + } + function commitLayoutEffects(finishedWork, root, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + nextEffect = finishedWork; + commitLayoutEffects_begin(finishedWork, root, committedLanes); + inProgressLanes = null; + inProgressRoot = null; + } + function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { + var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes); + } + } + } + function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & LayoutMask) !== NoFlags) { + var current = fiber.alternate; + setCurrentFiber(fiber); + try { + commitLayoutEffectOnFiber(root, current, fiber, committedLanes); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) { + nextEffect = finishedWork; + commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions); + } + function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions); + } + } + } + function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + try { + commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + try { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } finally { + recordPassiveEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } + break; + } + } + } + function commitPassiveUnmountEffects(firstChild) { + nextEffect = firstChild; + commitPassiveUnmountEffects_begin(); + } + function commitPassiveUnmountEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + var child = fiber.child; + if ((nextEffect.flags & ChildDeletion) !== NoFlags) { + var deletions = fiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + nextEffect = fiberToDelete; + commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); + } + { + var previousFiber = fiber.alternate; + if (previousFiber !== null) { + var detachedChild = previousFiber.child; + if (detachedChild !== null) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (detachedChild !== null); + } + } + } + nextEffect = fiber; + } + } + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffects_complete(); + } + } + } + function commitPassiveUnmountEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + commitPassiveUnmountOnFiber(fiber); + resetCurrentFiber(); + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveUnmountOnFiber(finishedWork) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + recordPassiveEffectDuration(finishedWork); + } else { + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + } + break; + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { + while (nextEffect !== null) { + var fiber = nextEffect; + + setCurrentFiber(fiber); + commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); + resetCurrentFiber(); + var child = fiber.child; + + if (child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot); + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) { + while (nextEffect !== null) { + var fiber = nextEffect; + var sibling = fiber.sibling; + var returnFiber = fiber.return; + { + detachFiberAfterEffects(fiber); + if (fiber === deletedSubtreeRoot) { + nextEffect = null; + return; + } + } + if (sibling !== null) { + sibling.return = returnFiber; + nextEffect = sibling; + return; + } + nextEffect = returnFiber; + } + } + function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) { + switch (current.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (current.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + recordPassiveEffectDuration(current); + } else { + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + } + break; + } + } + } + + var COMPONENT_TYPE = 0; + var HAS_PSEUDO_CLASS_TYPE = 1; + var ROLE_TYPE = 2; + var TEST_NAME_TYPE = 3; + var TEXT_TYPE = 4; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + COMPONENT_TYPE = symbolFor("selector.component"); + HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); + ROLE_TYPE = symbolFor("selector.role"); + TEST_NAME_TYPE = symbolFor("selector.test_id"); + TEXT_TYPE = symbolFor("selector.text"); + } + var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; + function isLegacyActEnvironment(fiber) { + { + var isReactActEnvironmentGlobal = + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; + + var jestIsDefined = typeof jest !== "undefined"; + return jestIsDefined && isReactActEnvironmentGlobal !== false; + } + } + function isConcurrentActEnvironment() { + { + var isReactActEnvironmentGlobal = + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; + if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { + error("The current testing environment is not configured to support " + "act(...)"); + } + return isReactActEnvironmentGlobal; + } + } + var ceil = Math.ceil; + var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; + var NoContext = + 0; + var BatchedContext = + 1; + var RenderContext = + 2; + var CommitContext = + 4; + var RootInProgress = 0; + var RootFatalErrored = 1; + var RootErrored = 2; + var RootSuspended = 3; + var RootSuspendedWithDelay = 4; + var RootCompleted = 5; + var RootDidNotComplete = 6; + + var executionContext = NoContext; + + var workInProgressRoot = null; + + var workInProgress = null; + + var workInProgressRootRenderLanes = NoLanes; + + var subtreeRenderLanes = NoLanes; + var subtreeRenderLanesCursor = createCursor(NoLanes); + + var workInProgressRootExitStatus = RootInProgress; + + var workInProgressRootFatalError = null; + + var workInProgressRootIncludedLanes = NoLanes; + + var workInProgressRootSkippedLanes = NoLanes; + + var workInProgressRootInterleavedUpdatedLanes = NoLanes; + + var workInProgressRootPingedLanes = NoLanes; + + var workInProgressRootConcurrentErrors = null; + + var workInProgressRootRecoverableErrors = null; + + var globalMostRecentFallbackTime = 0; + var FALLBACK_THROTTLE_MS = 500; + + var workInProgressRootRenderTargetTime = Infinity; + + var RENDER_TIMEOUT_MS = 500; + var workInProgressTransitions = null; + function resetRenderTimer() { + workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + } + function getRenderTargetTime() { + return workInProgressRootRenderTargetTime; + } + var hasUncaughtError = false; + var firstUncaughtError = null; + var legacyErrorBoundariesThatAlreadyFailed = null; + var rootDoesHavePassiveEffects = false; + var rootWithPendingPassiveEffects = null; + var pendingPassiveEffectsLanes = NoLanes; + var pendingPassiveProfilerEffects = []; + var pendingPassiveTransitions = null; + + var NESTED_UPDATE_LIMIT = 50; + var nestedUpdateCount = 0; + var rootWithNestedUpdates = null; + var isFlushingPassiveEffects = false; + var didScheduleUpdateDuringPassiveEffects = false; + var NESTED_PASSIVE_UPDATE_LIMIT = 50; + var nestedPassiveUpdateCount = 0; + var rootWithPassiveNestedUpdates = null; + + var currentEventTime = NoTimestamp; + var currentEventTransitionLane = NoLanes; + var isRunningInsertionEffect = false; + function getWorkInProgressRoot() { + return workInProgressRoot; + } + function requestEventTime() { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + return now(); + } + + if (currentEventTime !== NoTimestamp) { + return currentEventTime; + } + + currentEventTime = now(); + return currentEventTime; + } + function requestUpdateLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { + return pickArbitraryLane(workInProgressRootRenderLanes); + } + var isTransition = requestCurrentTransition() !== NoTransition; + if (isTransition) { + if (ReactCurrentBatchConfig$2.transition !== null) { + var transition = ReactCurrentBatchConfig$2.transition; + if (!transition._updatedFibers) { + transition._updatedFibers = new Set(); + } + transition._updatedFibers.add(fiber); + } + + if (currentEventTransitionLane === NoLane) { + currentEventTransitionLane = claimNextTransitionLane(); + } + return currentEventTransitionLane; + } + + var updateLane = getCurrentUpdatePriority(); + if (updateLane !== NoLane) { + return updateLane; + } + + var eventLane = getCurrentEventPriority(); + return eventLane; + } + function requestRetryLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } + return claimNextRetryLane(); + } + function scheduleUpdateOnFiber(fiber, lane, eventTime) { + checkForNestedUpdates(); + { + if (isRunningInsertionEffect) { + error("useInsertionEffect must not schedule updates."); + } + } + var root = markUpdateLaneFromFiberToRoot(fiber, lane); + if (root === null) { + return null; + } + { + if (isFlushingPassiveEffects) { + didScheduleUpdateDuringPassiveEffects = true; + } + } + + markRootUpdated(root, lane, eventTime); + if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { + warnAboutRenderPhaseUpdatesInDEV(fiber); + } else { + { + if (isDevToolsPresent) { + addFiberToLanesMap(root, fiber, lane); + } + } + warnIfUpdatesNotWrappedWithActDEV(fiber); + if (root === workInProgressRoot) { + if ((executionContext & RenderContext) === NoContext) { + workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); + } + if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + markRootSuspended$1(root, workInProgressRootRenderLanes); + } + } + ensureRootIsScheduled(root, eventTime); + if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + return root; + } + + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); + var alternate = sourceFiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, lane); + } + { + if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + + var node = sourceFiber; + var parent = sourceFiber.return; + while (parent !== null) { + parent.childLanes = mergeLanes(parent.childLanes, lane); + alternate = parent.alternate; + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, lane); + } else { + { + if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + } + node = parent; + parent = parent.return; + } + if (node.tag === HostRoot) { + var root = node.stateNode; + return root; + } else { + return null; + } + } + function isInterleavedUpdate(fiber, lane) { + return ( + (workInProgressRoot !== null || + hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && + (executionContext & RenderContext) === NoContext + ); + } + + function ensureRootIsScheduled(root, currentTime) { + var existingCallbackNode = root.callbackNode; + + markStarvedLanesAsExpired(root, currentTime); + + var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (nextLanes === NoLanes) { + if (existingCallbackNode !== null) { + cancelCallback$1(existingCallbackNode); + } + root.callbackNode = null; + root.callbackPriority = NoLane; + return; + } + + var newCallbackPriority = getHighestPriorityLane(nextLanes); + + var existingCallbackPriority = root.callbackPriority; + if (existingCallbackPriority === newCallbackPriority && + !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { + { + if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { + error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); + } + } + + return; + } + if (existingCallbackNode != null) { + cancelCallback$1(existingCallbackNode); + } + + var newCallbackNode; + if (newCallbackPriority === SyncLane) { + if (root.tag === LegacyRoot) { + if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { + ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; + } + scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); + } else { + scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); + } + { + scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); + } + newCallbackNode = null; + } else { + var schedulerPriorityLevel; + switch (lanesToEventPriority(nextLanes)) { + case DiscreteEventPriority: + schedulerPriorityLevel = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriorityLevel = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriorityLevel = NormalPriority; + break; + case IdleEventPriority: + schedulerPriorityLevel = IdlePriority; + break; + default: + schedulerPriorityLevel = NormalPriority; + break; + } + newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = newCallbackPriority; + root.callbackNode = newCallbackNode; + } + + function performConcurrentWorkOnRoot(root, didTimeout) { + { + resetNestedUpdateFlag(); + } + + currentEventTime = NoTimestamp; + currentEventTransitionLane = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + + var originalCallbackNode = root.callbackNode; + var didFlushPassiveEffects = flushPassiveEffects(); + if (didFlushPassiveEffects) { + if (root.callbackNode !== originalCallbackNode) { + return null; + } + } + + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (lanes === NoLanes) { + return null; + } + + var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; + var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + if (exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + markRootSuspended$1(root, lanes); + } else { + var renderWasConcurrent = !includesBlockingLane(root, lanes); + var finishedWork = root.current.alternate; + if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { + exitStatus = renderRootSync(root, lanes); + + if (exitStatus === RootErrored) { + var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (_errorRetryLanes !== NoLanes) { + lanes = _errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); + } + } + + if (exitStatus === RootFatalErrored) { + var _fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw _fatalError; + } + } + + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + finishConcurrentRender(root, exitStatus, lanes); + } + } + ensureRootIsScheduled(root, now()); + if (root.callbackNode === originalCallbackNode) { + return performConcurrentWorkOnRoot.bind(null, root); + } + return null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + if (isRootDehydrated(root)) { + var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); + rootWorkInProgress.flags |= ForceClientRender; + { + errorHydratingContainer(root.containerInfo); + } + } + var exitStatus = renderRootSync(root, errorRetryLanes); + if (exitStatus !== RootErrored) { + var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorsFromFirstAttempt; + + if (errorsFromSecondAttempt !== null) { + queueRecoverableErrors(errorsFromSecondAttempt); + } + } + return exitStatus; + } + function queueRecoverableErrors(errors) { + if (workInProgressRootRecoverableErrors === null) { + workInProgressRootRecoverableErrors = errors; + } else { + workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + } + function finishConcurrentRender(root, exitStatus, lanes) { + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + { + throw new Error("Root did not complete. This is a bug in React."); + } + + case RootErrored: + { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspended: + { + markRootSuspended$1(root, lanes); + + if (includesOnlyRetries(lanes) && + !shouldForceFlushFallbacksInDEV()) { + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); + + if (msUntilTimeout > 10) { + var nextLanes = getNextLanes(root, NoLanes); + if (nextLanes !== NoLanes) { + break; + } + var suspendedLanes = root.suspendedLanes; + if (!isSubsetOfLanes(suspendedLanes, lanes)) { + var eventTime = requestEventTime(); + markRootPinged(root, suspendedLanes); + break; + } + + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); + break; + } + } + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspendedWithDelay: + { + markRootSuspended$1(root, lanes); + if (includesOnlyTransitions(lanes)) { + break; + } + if (!shouldForceFlushFallbacksInDEV()) { + var mostRecentEventTime = getMostRecentEventTime(root, lanes); + var eventTimeMs = mostRecentEventTime; + var timeElapsedMs = now() - eventTimeMs; + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; + + if (_msUntilTimeout > 10) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); + break; + } + } + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootCompleted: + { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + default: + { + throw new Error("Unknown root exit status."); + } + } + } + function isRenderConsistentWithExternalStores(finishedWork) { + var node = finishedWork; + while (true) { + if (node.flags & StoreConsistency) { + var updateQueue = node.updateQueue; + if (updateQueue !== null) { + var checks = updateQueue.stores; + if (checks !== null) { + for (var i = 0; i < checks.length; i++) { + var check = checks[i]; + var getSnapshot = check.getSnapshot; + var renderedValue = check.value; + try { + if (!objectIs(getSnapshot(), renderedValue)) { + return false; + } + } catch (error) { + return false; + } + } + } + } + } + var child = node.child; + if (node.subtreeFlags & StoreConsistency && child !== null) { + child.return = node; + node = child; + continue; + } + if (node === finishedWork) { + return true; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return true; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + + return true; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); + markRootSuspended(root, suspendedLanes); + } + + function performSyncWorkOnRoot(root) { + { + syncNestedUpdateFlag(); + } + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + flushPassiveEffects(); + var lanes = getNextLanes(root, NoLanes); + if (!includesSomeLane(lanes, SyncLane)) { + ensureRootIsScheduled(root, now()); + return null; + } + var exitStatus = renderRootSync(root, lanes); + if (root.tag !== LegacyRoot && exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + throw new Error("Root did not complete. This is a bug in React."); + } + + var finishedWork = root.current.alternate; + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + + ensureRootIsScheduled(root, now()); + return null; + } + function batchedUpdates$1(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext && + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + } + + function flushSync(fn) { + if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { + flushPassiveEffects(); + } + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + if (fn) { + return fn(); + } else { + return undefined; + } + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + executionContext = prevExecutionContext; + + if ((executionContext & (RenderContext | CommitContext)) === NoContext) { + flushSyncCallbacks(); + } + } + } + function pushRenderLanes(fiber, lanes) { + push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber); + subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes); + workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes); + } + function popRenderLanes(fiber) { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor, fiber); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = NoLanes; + var timeoutHandle = root.timeoutHandle; + if (timeoutHandle !== noTimeout) { + root.timeoutHandle = noTimeout; + + cancelTimeout(timeoutHandle); + } + if (workInProgress !== null) { + var interruptedWork = workInProgress.return; + while (interruptedWork !== null) { + var current = interruptedWork.alternate; + unwindInterruptedWork(current, interruptedWork); + interruptedWork = interruptedWork.return; + } + } + workInProgressRoot = root; + var rootWorkInProgress = createWorkInProgress(root.current, null); + workInProgress = rootWorkInProgress; + workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes; + workInProgressRootExitStatus = RootInProgress; + workInProgressRootFatalError = null; + workInProgressRootSkippedLanes = NoLanes; + workInProgressRootInterleavedUpdatedLanes = NoLanes; + workInProgressRootPingedLanes = NoLanes; + workInProgressRootConcurrentErrors = null; + workInProgressRootRecoverableErrors = null; + enqueueInterleavedUpdates(); + { + ReactStrictModeWarnings.discardPendingWarnings(); + } + return rootWorkInProgress; + } + function handleError(root, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + resetHooksAfterThrow(); + resetCurrentFiber(); + + ReactCurrentOwner$2.current = null; + if (erroredWork === null || erroredWork.return === null) { + workInProgressRootExitStatus = RootFatalErrored; + workInProgressRootFatalError = thrownValue; + + workInProgress = null; + return; + } + if (enableProfilerTimer && erroredWork.mode & ProfileMode) { + stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); + } + if (enableSchedulingProfiler) { + markComponentRenderStopped(); + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + var wakeable = thrownValue; + markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes); + } else { + markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); + } + } + throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + if (workInProgress === erroredWork && erroredWork !== null) { + erroredWork = erroredWork.return; + workInProgress = erroredWork; + } else { + erroredWork = workInProgress; + } + continue; + } + + return; + } while (true); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + if (prevDispatcher === null) { + return ContextOnlyDispatcher; + } else { + return prevDispatcher; + } + } + function popDispatcher(prevDispatcher) { + ReactCurrentDispatcher$2.current = prevDispatcher; + } + function markCommitTimeOfFallback() { + globalMostRecentFallbackTime = now(); + } + function markSkippedUpdateLanes(lane) { + workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); + } + function renderDidSuspend() { + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootSuspended; + } + } + function renderDidSuspendDelayIfPossible() { + if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { + workInProgressRootExitStatus = RootSuspendedWithDelay; + } + + if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { + markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + } + function renderDidError(error) { + if (workInProgressRootExitStatus !== RootSuspendedWithDelay) { + workInProgressRootExitStatus = RootErrored; + } + if (workInProgressRootConcurrentErrors === null) { + workInProgressRootConcurrentErrors = [error]; + } else { + workInProgressRootConcurrentErrors.push(error); + } + } + + function renderHasNotSuspendedYet() { + return workInProgressRootExitStatus === RootInProgress; + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } + + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + if (workInProgress !== null) { + throw new Error("Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); + } + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + return workInProgressRootExitStatus; + } + + function workLoopSync() { + while (workInProgress !== null) { + performUnitOfWork(workInProgress); + } + } + function renderRootConcurrent(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } + + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + resetRenderTimer(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + popDispatcher(prevDispatcher); + executionContext = prevExecutionContext; + if (workInProgress !== null) { + return RootInProgress; + } else { + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + + return workInProgressRootExitStatus; + } + } + + function workLoopConcurrent() { + while (workInProgress !== null && !shouldYield()) { + performUnitOfWork(workInProgress); + } + } + function performUnitOfWork(unitOfWork) { + var current = unitOfWork.alternate; + setCurrentFiber(unitOfWork); + var next; + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + startProfilerTimer(unitOfWork); + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); + } else { + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + } + resetCurrentFiber(); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + if (next === null) { + completeUnitOfWork(unitOfWork); + } else { + workInProgress = next; + } + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + var returnFiber = completedWork.return; + + if ((completedWork.flags & Incomplete) === NoFlags) { + setCurrentFiber(completedWork); + var next = void 0; + if ((completedWork.mode & ProfileMode) === NoMode) { + next = completeWork(current, completedWork, subtreeRenderLanes); + } else { + startProfilerTimer(completedWork); + next = completeWork(current, completedWork, subtreeRenderLanes); + + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + } + resetCurrentFiber(); + if (next !== null) { + workInProgress = next; + return; + } + } else { + var _next = unwindWork(current, completedWork); + + if (_next !== null) { + _next.flags &= HostEffectMask; + workInProgress = _next; + return; + } + if ((completedWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + + var actualDuration = completedWork.actualDuration; + var child = completedWork.child; + while (child !== null) { + actualDuration += child.actualDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + } + if (returnFiber !== null) { + returnFiber.flags |= Incomplete; + returnFiber.subtreeFlags = NoFlags; + returnFiber.deletions = null; + } else { + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + return; + } + } + var siblingFiber = completedWork.sibling; + if (siblingFiber !== null) { + workInProgress = siblingFiber; + return; + } + + completedWork = returnFiber; + + workInProgress = completedWork; + } while (completedWork !== null); + + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootCompleted; + } + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition; + setCurrentUpdatePriority(previousUpdateLanePriority); + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + flushPassiveEffects(); + } while (rootWithPendingPassiveEffects !== null); + flushRenderPhaseStrictModeWarningsInDEV(); + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + var finishedWork = root.finishedWork; + var lanes = root.finishedLanes; + if (finishedWork === null) { + return null; + } else { + { + if (lanes === NoLanes) { + error("root.finishedLanes should not be empty during a commit. This is a " + "bug in React."); + } + } + } + root.finishedWork = null; + root.finishedLanes = NoLanes; + if (finishedWork === root.current) { + throw new Error("Cannot commit the same tree as before. This error is likely caused by " + "a bug in React. Please file an issue."); + } + + root.callbackNode = null; + root.callbackPriority = NoLane; + + var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); + markRootFinished(root, remainingLanes); + if (root === workInProgressRoot) { + workInProgressRoot = null; + workInProgress = null; + workInProgressRootRenderLanes = NoLanes; + } + + if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + + pendingPassiveTransitions = transitions; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); + + return null; + }); + } + } + + var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + if (subtreeHasEffects || rootHasEffect) { + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + + ReactCurrentOwner$2.current = null; + + var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork); + { + recordCommitTime(); + } + commitMutationEffects(root, finishedWork, lanes); + resetAfterCommit(root.containerInfo); + + root.current = finishedWork; + + commitLayoutEffects(finishedWork, root, lanes); + + requestPaint(); + executionContext = prevExecutionContext; + + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } else { + root.current = finishedWork; + + { + recordCommitTime(); + } + } + if (rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = false; + rootWithPendingPassiveEffects = root; + pendingPassiveEffectsLanes = lanes; + } else { + { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + } + } + + remainingLanes = root.pendingLanes; + + if (remainingLanes === NoLanes) { + legacyErrorBoundariesThatAlreadyFailed = null; + } + onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + { + if (isDevToolsPresent) { + root.memoizedUpdaters.clear(); + } + } + + ensureRootIsScheduled(root, now()); + if (recoverableErrors !== null) { + var onRecoverableError = root.onRecoverableError; + for (var i = 0; i < recoverableErrors.length; i++) { + var recoverableError = recoverableErrors[i]; + onRecoverableError(recoverableError); + } + } + if (hasUncaughtError) { + hasUncaughtError = false; + var error$1 = firstUncaughtError; + firstUncaughtError = null; + throw error$1; + } + + if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { + flushPassiveEffects(); + } + + remainingLanes = root.pendingLanes; + if (includesSomeLane(remainingLanes, SyncLane)) { + { + markNestedUpdateScheduled(); + } + + if (root === rootWithNestedUpdates) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + rootWithNestedUpdates = root; + } + } else { + nestedUpdateCount = 0; + } + + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (rootWithPendingPassiveEffects !== null) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); + var priority = lowerEventPriority(DefaultEventPriority, renderPriority); + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(priority); + return flushPassiveEffectsImpl(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + + return false; + } + function enqueuePendingPassiveProfilerEffect(fiber) { + { + pendingPassiveProfilerEffects.push(fiber); + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); + return null; + }); + } + } + } + function flushPassiveEffectsImpl() { + if (rootWithPendingPassiveEffects === null) { + return false; + } + + var transitions = pendingPassiveTransitions; + pendingPassiveTransitions = null; + var root = rootWithPendingPassiveEffects; + var lanes = pendingPassiveEffectsLanes; + rootWithPendingPassiveEffects = null; + + pendingPassiveEffectsLanes = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Cannot flush passive effects while already rendering."); + } + { + isFlushingPassiveEffects = true; + didScheduleUpdateDuringPassiveEffects = false; + } + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitPassiveUnmountEffects(root.current); + commitPassiveMountEffects(root, root.current, lanes, transitions); + + { + var profilerEffects = pendingPassiveProfilerEffects; + pendingPassiveProfilerEffects = []; + for (var i = 0; i < profilerEffects.length; i++) { + var _fiber = profilerEffects[i]; + commitPassiveEffectDurations(root, _fiber); + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + { + if (didScheduleUpdateDuringPassiveEffects) { + if (root === rootWithPassiveNestedUpdates) { + nestedPassiveUpdateCount++; + } else { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = root; + } + } else { + nestedPassiveUpdateCount = 0; + } + isFlushingPassiveEffects = false; + didScheduleUpdateDuringPassiveEffects = false; + } + + onPostCommitRoot(root); + { + var stateNode = root.current.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + return true; + } + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + function prepareToThrowUncaughtError(error) { + if (!hasUncaughtError) { + hasUncaughtError = true; + firstUncaughtError = error; + } + } + var onUncaughtError = prepareToThrowUncaughtError; + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + var errorInfo = createCapturedValue(error, sourceFiber); + var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); + enqueueUpdate(rootFiber, update); + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { + { + reportUncaughtErrorInDEV(error$1); + setIsRunningInsertionEffect(false); + } + if (sourceFiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); + return; + } + var fiber = null; + { + fiber = sourceFiber.return; + } + while (fiber !== null) { + if (fiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1); + return; + } else if (fiber.tag === ClassComponent) { + var ctor = fiber.type; + var instance = fiber.stateNode; + if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValue(error$1, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); + enqueueUpdate(fiber, update); + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + return; + } + } + fiber = fiber.return; + } + { + error("Internal React error: Attempted to capture a commit phase error " + "inside a detached tree. This indicates a bug in React. Likely " + "causes include deleting the same fiber more than once, committing an " + "already-finished tree, or an inconsistent return pointer.\n\n" + "Error message:\n\n%s", error$1); + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + if (pingCache !== null) { + pingCache.delete(wakeable); + } + var eventTime = requestEventTime(); + markRootPinged(root, pingedLanes); + warnIfSuspenseResolutionNotWrappedWithActDEV(root); + if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + prepareFreshStack(root, NoLanes); + } else { + workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); + } + } + ensureRootIsScheduled(root, eventTime); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + if (retryLane === NoLane) { + retryLane = requestRetryLane(boundaryFiber); + } + + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + if (root !== null) { + markRootUpdated(root, retryLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState; + var retryLane = NoLane; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = NoLane; + + var retryCache; + switch (boundaryFiber.tag) { + case SuspenseComponent: + retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + break; + case SuspenseListComponent: + retryCache = boundaryFiber.stateNode; + break; + default: + throw new Error("Pinged unknown suspense boundary type. " + "This is probably a bug in React."); + } + if (retryCache !== null) { + retryCache.delete(wakeable); + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + + function jnd(timeElapsed) { + return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + } + function checkForNestedUpdates() { + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + nestedUpdateCount = 0; + rootWithNestedUpdates = null; + throw new Error("Maximum update depth exceeded. This can happen when a component " + "repeatedly calls setState inside componentWillUpdate or " + "componentDidUpdate. React limits the number of nested updates to " + "prevent infinite loops."); + } + { + if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + error("Maximum update depth exceeded. This can happen when a component " + "calls setState inside useEffect, but useEffect either doesn't " + "have a dependency array, or one of the dependencies changes on " + "every render."); + } + } + } + function flushRenderPhaseStrictModeWarningsInDEV() { + { + ReactStrictModeWarnings.flushLegacyContextWarning(); + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + } + } + } + var didWarnStateUpdateForNotYetMountedComponent = null; + function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { + { + if ((executionContext & RenderContext) !== NoContext) { + return; + } + if (!(fiber.mode & ConcurrentMode)) { + return; + } + var tag = fiber.tag; + if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { + return; + } + + var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; + if (didWarnStateUpdateForNotYetMountedComponent !== null) { + if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) { + return; + } + didWarnStateUpdateForNotYetMountedComponent.add(componentName); + } else { + didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]); + } + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("Can't perform a React state update on a component that hasn't mounted yet. " + "This indicates that you have a side-effect in your render function that " + "asynchronously later calls tries to update the component. Move this work to " + "useEffect instead."); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + var beginWork$1; + { + var dummyFiber = null; + beginWork$1 = function beginWork$1(current, unitOfWork, lanes) { + var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); + try { + return beginWork(current, unitOfWork, lanes); + } catch (originalError) { + if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === "object" && typeof originalError.then === "function") { + throw originalError; + } + + resetContextDependencies(); + resetHooksAfterThrow(); + + unwindInterruptedWork(current, unitOfWork); + + assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); + if (unitOfWork.mode & ProfileMode) { + startProfilerTimer(unitOfWork); + } + + invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + if (hasCaughtError()) { + var replayError = clearCaughtError(); + if (typeof replayError === "object" && replayError !== null && replayError._suppressLogging && typeof originalError === "object" && originalError !== null && !originalError._suppressLogging) { + originalError._suppressLogging = true; + } + } + + throw originalError; + } + }; + } + var didWarnAboutUpdateInRender = false; + var didWarnAboutUpdateInRenderForAnotherComponent; + { + didWarnAboutUpdateInRenderForAnotherComponent = new Set(); + } + function warnAboutRenderPhaseUpdatesInDEV(fiber) { + { + if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) { + switch (fiber.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; + + var dedupeKey = renderingComponentName; + if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { + didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); + var setStateComponentName = getComponentNameFromFiber(fiber) || "Unknown"; + error("Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName); + } + break; + } + case ClassComponent: + { + if (!didWarnAboutUpdateInRender) { + error("Cannot update during an existing state transition (such as " + "within `render`). Render methods should be a pure " + "function of props and state."); + didWarnAboutUpdateInRender = true; + } + break; + } + } + } + } + } + function restorePendingUpdaters(root, lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + memoizedUpdaters.forEach(function (schedulingFiber) { + addFiberToLanesMap(root, schedulingFiber, lanes); + }); + } + } + } + + var fakeActCallbackNode = {}; + function scheduleCallback$1(priorityLevel, callback) { + { + var actQueue = ReactCurrentActQueue$1.current; + if (actQueue !== null) { + actQueue.push(callback); + return fakeActCallbackNode; + } else { + return scheduleCallback(priorityLevel, callback); + } + } + } + function cancelCallback$1(callbackNode) { + if (callbackNode === fakeActCallbackNode) { + return; + } + + return cancelCallback(callbackNode); + } + function shouldForceFlushFallbacksInDEV() { + return ReactCurrentActQueue$1.current !== null; + } + function warnIfUpdatesNotWrappedWithActDEV(fiber) { + { + if (fiber.mode & ConcurrentMode) { + if (!isConcurrentActEnvironment()) { + return; + } + } else { + if (!isLegacyActEnvironment()) { + return; + } + if (executionContext !== NoContext) { + return; + } + if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { + return; + } + } + if (ReactCurrentActQueue$1.current === null) { + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("An update to %s inside a test was not wrapped in act(...).\n\n" + "When testing, code that causes React state updates should be " + "wrapped into act(...):\n\n" + "act(() => {\n" + " /* fire events that update state */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + } + function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { + { + if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) { + error("A suspended resource finished loading inside a test, but the event " + "was not wrapped in act(...).\n\n" + "When testing, code that resolves suspended data should be wrapped " + "into act(...):\n\n" + "act(() => {\n" + " /* finish loading suspended data */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act"); + } + } + } + function setIsRunningInsertionEffect(isRunning) { + { + isRunningInsertionEffect = isRunning; + } + } + + var resolveFamily = null; + + var failedBoundaries = null; + var setRefreshHandler = function setRefreshHandler(handler) { + { + resolveFamily = handler; + } + }; + function resolveFunctionForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === undefined) { + return type; + } + + return family.current; + } + } + function resolveClassForHotReloading(type) { + return resolveFunctionForHotReloading(type); + } + function resolveForwardRefForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === undefined) { + if (type !== null && type !== undefined && typeof type.render === "function") { + var currentRender = resolveFunctionForHotReloading(type.render); + if (type.render !== currentRender) { + var syntheticType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: currentRender + }; + if (type.displayName !== undefined) { + syntheticType.displayName = type.displayName; + } + return syntheticType; + } + } + return type; + } + + return family.current; + } + } + function isCompatibleFamilyForHotReloading(fiber, element) { + { + if (resolveFamily === null) { + return false; + } + var prevType = fiber.elementType; + var nextType = element.type; + + var needsCompareFamilies = false; + var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; + switch (fiber.tag) { + case ClassComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } + break; + } + case FunctionComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case ForwardRef: + { + if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case MemoComponent: + case SimpleMemoComponent: + { + if ($$typeofNextType === REACT_MEMO_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + default: + return false; + } + + if (needsCompareFamilies) { + var prevFamily = resolveFamily(prevType); + if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { + return true; + } + } + return false; + } + } + function markFailedErrorBoundaryForHotReloading(fiber) { + { + if (resolveFamily === null) { + return; + } + if (typeof WeakSet !== "function") { + return; + } + if (failedBoundaries === null) { + failedBoundaries = new WeakSet(); + } + failedBoundaries.add(fiber); + } + } + var scheduleRefresh = function scheduleRefresh(root, update) { + { + if (resolveFamily === null) { + return; + } + var staleFamilies = update.staleFamilies, + updatedFamilies = update.updatedFamilies; + flushPassiveEffects(); + flushSync(function () { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }; + var scheduleRoot = function scheduleRoot(root, element) { + { + if (root.context !== emptyContextObject) { + return; + } + flushPassiveEffects(); + flushSync(function () { + updateContainer(element, root, null, null); + }); + } + }; + function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { + { + var alternate = fiber.alternate, + child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + if (resolveFamily === null) { + throw new Error("Expected resolveFamily to be set during hot reload."); + } + var needsRender = false; + var needsRemount = false; + if (candidateType !== null) { + var family = resolveFamily(candidateType); + if (family !== undefined) { + if (staleFamilies.has(family)) { + needsRemount = true; + } else if (updatedFamilies.has(family)) { + if (tag === ClassComponent) { + needsRemount = true; + } else { + needsRender = true; + } + } + } + } + if (failedBoundaries !== null) { + if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { + needsRemount = true; + } + } + if (needsRemount) { + fiber._debugNeedsRemount = true; + } + if (needsRemount || needsRender) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + if (child !== null && !needsRemount) { + scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); + } + if (sibling !== null) { + scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); + } + } + } + var findHostInstancesForRefresh = function findHostInstancesForRefresh(root, families) { + { + var hostInstances = new Set(); + var types = new Set(families.map(function (family) { + return family.current; + })); + findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); + return hostInstances; + } + }; + function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { + { + var child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + var didMatch = false; + if (candidateType !== null) { + if (types.has(candidateType)) { + didMatch = true; + } + } + if (didMatch) { + findHostInstancesForFiberShallowly(fiber, hostInstances); + } else { + if (child !== null) { + findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); + } + } + if (sibling !== null) { + findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); + } + } + } + function findHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); + if (foundHostInstances) { + return; + } + + var node = fiber; + while (true) { + switch (node.tag) { + case HostComponent: + hostInstances.add(node.stateNode); + return; + case HostPortal: + hostInstances.add(node.stateNode.containerInfo); + return; + case HostRoot: + hostInstances.add(node.stateNode.containerInfo); + return; + } + if (node.return === null) { + throw new Error("Expected to reach root first."); + } + node = node.return; + } + } + } + function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var node = fiber; + var foundHostInstances = false; + while (true) { + if (node.tag === HostComponent) { + foundHostInstances = true; + hostInstances.add(node.stateNode); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return foundHostInstances; + } + while (node.sibling === null) { + if (node.return === null || node.return === fiber) { + return foundHostInstances; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return false; + } + var hasBadMapPolyfill; + { + hasBadMapPolyfill = false; + try { + var nonExtensibleObject = Object.preventExtensions({}); + + new Map([[nonExtensibleObject, null]]); + new Set([nonExtensibleObject]); + } catch (e) { + hasBadMapPolyfill = true; + } + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.elementType = null; + this.type = null; + this.stateNode = null; + + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.dependencies = null; + this.mode = mode; + + this.flags = NoFlags; + this.subtreeFlags = NoFlags; + this.deletions = null; + this.lanes = NoLanes; + this.childLanes = NoLanes; + this.alternate = null; + { + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; + + this.actualDuration = 0; + this.actualStartTime = -1; + this.selfBaseDuration = 0; + this.treeBaseDuration = 0; + } + { + this._debugSource = null; + this._debugOwner = null; + this._debugNeedsRemount = false; + this._debugHookTypes = null; + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } + } + } + + var createFiber = function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + }; + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function isSimpleFunctionComponent(type) { + return typeof type === "function" && !shouldConstruct(type) && type.defaultProps === undefined; + } + function resolveLazyComponentTag(Component) { + if (typeof Component === "function") { + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; + } else if (Component !== undefined && Component !== null) { + var $$typeof = Component.$$typeof; + if ($$typeof === REACT_FORWARD_REF_TYPE) { + return ForwardRef; + } + if ($$typeof === REACT_MEMO_TYPE) { + return MemoComponent; + } + } + return IndeterminateComponent; + } + + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + if (workInProgress === null) { + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.elementType = current.elementType; + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + { + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + workInProgress._debugHookTypes = current._debugHookTypes; + } + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; + + workInProgress.type = current.type; + + workInProgress.flags = NoFlags; + + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + { + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = -1; + } + } + + workInProgress.flags = current.flags & StaticMask; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + { + workInProgress._debugNeedsRemount = current._debugNeedsRemount; + switch (workInProgress.tag) { + case IndeterminateComponent: + case FunctionComponent: + case SimpleMemoComponent: + workInProgress.type = resolveFunctionForHotReloading(current.type); + break; + case ClassComponent: + workInProgress.type = resolveClassForHotReloading(current.type); + break; + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; + } + } + return workInProgress; + } + + function resetWorkInProgress(workInProgress, renderLanes) { + workInProgress.flags &= StaticMask | Placement; + + var current = workInProgress.alternate; + if (current === null) { + workInProgress.childLanes = NoLanes; + workInProgress.lanes = renderLanes; + workInProgress.child = null; + workInProgress.subtreeFlags = NoFlags; + workInProgress.memoizedProps = null; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.dependencies = null; + workInProgress.stateNode = null; + { + workInProgress.selfBaseDuration = 0; + workInProgress.treeBaseDuration = 0; + } + } else { + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + + workInProgress.type = current.type; + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + } + return workInProgress; + } + function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) { + var mode; + if (tag === ConcurrentRoot) { + mode = ConcurrentMode; + if (isStrictMode === true) { + mode |= StrictLegacyMode; + } + } else { + mode = NoMode; + } + if (isDevToolsPresent) { + mode |= ProfileMode; + } + return createFiber(HostRoot, null, null, mode); + } + function createFiberFromTypeAndProps(type, + key, pendingProps, owner, mode, lanes) { + var fiberTag = IndeterminateComponent; + + var resolvedType = type; + if (typeof type === "function") { + if (shouldConstruct(type)) { + fiberTag = ClassComponent; + { + resolvedType = resolveClassForHotReloading(resolvedType); + } + } else { + { + resolvedType = resolveFunctionForHotReloading(resolvedType); + } + } + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + getTag: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictLegacyMode; + break; + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_TYPE: + return createFiberFromSuspense(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_LIST_TYPE: + return createFiberFromSuspenseList(pendingProps, mode, lanes, key); + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + case REACT_LEGACY_HIDDEN_TYPE: + + case REACT_SCOPE_TYPE: + + case REACT_CACHE_TYPE: + + case REACT_TRACING_MARKER_TYPE: + + case REACT_DEBUG_TRACING_MODE_TYPE: + + default: + { + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = ContextProvider; + break getTag; + case REACT_CONTEXT_TYPE: + fiberTag = ContextConsumer; + break getTag; + case REACT_FORWARD_REF_TYPE: + fiberTag = ForwardRef; + { + resolvedType = resolveForwardRefForHotReloading(resolvedType); + } + break getTag; + case REACT_MEMO_TYPE: + fiberTag = MemoComponent; + break getTag; + case REACT_LAZY_TYPE: + fiberTag = LazyComponent; + resolvedType = null; + break getTag; + } + } + var info = ""; + { + if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; + } + var ownerName = owner ? getComponentNameFromFiber(owner) : null; + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + throw new Error("Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + ("but got: " + (type == null ? type : typeof type) + "." + info)); + } + } + } + var fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.elementType = type; + fiber.type = resolvedType; + fiber.lanes = lanes; + { + fiber._debugOwner = owner; + } + return fiber; + } + function createFiberFromElement(element, mode, lanes) { + var owner = null; + { + owner = element._owner; + } + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes); + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + return fiber; + } + function createFiberFromFragment(elements, mode, lanes, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromProfiler(pendingProps, mode, lanes, key) { + { + if (typeof pendingProps.id !== "string") { + error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id); + } + } + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.elementType = REACT_PROFILER_TYPE; + fiber.lanes = lanes; + { + fiber.stateNode = { + effectDuration: 0, + passiveEffectDuration: 0 + }; + } + return fiber; + } + function createFiberFromSuspense(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromSuspenseList(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_LIST_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); + fiber.elementType = REACT_OFFSCREEN_TYPE; + fiber.lanes = lanes; + var primaryChildInstance = {}; + fiber.stateNode = primaryChildInstance; + return fiber; + } + function createFiberFromText(content, mode, lanes) { + var fiber = createFiber(HostText, content, null, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromPortal(portal, mode, lanes) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.lanes = lanes; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return fiber; + } + + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + target = createFiber(IndeterminateComponent, null, null, NoMode); + } + + target.tag = source.tag; + target.key = source.key; + target.elementType = source.elementType; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.dependencies = source.dependencies; + target.mode = source.mode; + target.flags = source.flags; + target.subtreeFlags = source.subtreeFlags; + target.deletions = source.deletions; + target.lanes = source.lanes; + target.childLanes = source.childLanes; + target.alternate = source.alternate; + { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseDuration = source.selfBaseDuration; + target.treeBaseDuration = source.treeBaseDuration; + } + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugNeedsRemount = source._debugNeedsRemount; + target._debugHookTypes = source._debugHookTypes; + return target; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.pendingChildren = null; + this.current = null; + this.pingCache = null; + this.finishedWork = null; + this.timeoutHandle = noTimeout; + this.context = null; + this.pendingContext = null; + this.callbackNode = null; + this.callbackPriority = NoLane; + this.eventTimes = createLaneMap(NoLanes); + this.expirationTimes = createLaneMap(NoTimestamp); + this.pendingLanes = NoLanes; + this.suspendedLanes = NoLanes; + this.pingedLanes = NoLanes; + this.expiredLanes = NoLanes; + this.mutableReadLanes = NoLanes; + this.finishedLanes = NoLanes; + this.entangledLanes = NoLanes; + this.entanglements = createLaneMap(NoLanes); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + { + this.effectDuration = 0; + this.passiveEffectDuration = 0; + } + { + this.memoizedUpdaters = new Set(); + var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = []; + for (var _i = 0; _i < TotalLanes; _i++) { + pendingUpdatersLaneMap.push(new Set()); + } + } + { + switch (tag) { + case ConcurrentRoot: + this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; + break; + case LegacyRoot: + this._debugRootType = hydrate ? "hydrate()" : "render()"; + break; + } + } + } + function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, + identifierPrefix, onRecoverableError, transitionCallbacks) { + var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); + + var uninitializedFiber = createHostRootFiber(tag, isStrictMode); + root.current = uninitializedFiber; + uninitializedFiber.stateNode = root; + { + var _initialState = { + element: initialChildren, + isDehydrated: hydrate, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }; + uninitializedFiber.memoizedState = _initialState; + } + initializeUpdateQueue(uninitializedFiber); + return root; + } + var ReactVersion = "18.2.0-next-d300cebde-20220601"; + function createPortal(children, containerInfo, + implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + { + checkKeyStringCoercion(key); + } + return { + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + var didWarnAboutNestedUpdates; + var didWarnAboutFindNodeInStrictMode; + { + didWarnAboutNestedUpdates = false; + didWarnAboutFindNodeInStrictMode = {}; + } + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyContextObject; + } + var fiber = get(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + if (fiber.tag === ClassComponent) { + var Component = fiber.type; + if (isContextProvider(Component)) { + return processChildContext(fiber, Component, parentContext); + } + } + return parentContext; + } + function findHostInstanceWithWarning(component, methodName) { + { + var fiber = get(component); + if (fiber === undefined) { + if (typeof component.render === "function") { + throw new Error("Unable to find node on an unmounted component."); + } else { + var keys = Object.keys(component).join(","); + throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys); + } + } + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; + } + if (hostFiber.mode & StrictLegacyMode) { + var componentName = getComponentNameFromFiber(fiber) || "Component"; + if (!didWarnAboutFindNodeInStrictMode[componentName]) { + didWarnAboutFindNodeInStrictMode[componentName] = true; + var previousFiber = current; + try { + setCurrentFiber(hostFiber); + if (fiber.mode & StrictLegacyMode) { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } else { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } + } finally { + if (previousFiber) { + setCurrentFiber(previousFiber); + } else { + resetCurrentFiber(); + } + } + } + } + return hostFiber.stateNode; + } + } + function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) { + var hydrate = false; + var initialChildren = null; + return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); + } + function updateContainer(element, container, parentComponent, callback) { + { + onScheduleRoot(container, element); + } + var current$1 = container.current; + var eventTime = requestEventTime(); + var lane = requestUpdateLane(current$1); + var context = getContextForSubtree(parentComponent); + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + { + if (isRendering && current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + error("Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); + } + } + var update = createUpdate(eventTime, lane); + + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + if (callback !== null) { + { + if (typeof callback !== "function") { + error("render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback); + } + } + update.callback = callback; + } + enqueueUpdate(current$1, update); + var root = scheduleUpdateOnFiber(current$1, lane, eventTime); + if (root !== null) { + entangleTransitions(root, current$1, lane); + } + return lane; + } + function getPublicRootInstance(container) { + var containerFiber = container.current; + if (!containerFiber.child) { + return null; + } + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + default: + return containerFiber.child.stateNode; + } + } + var shouldErrorImpl = function shouldErrorImpl(fiber) { + return null; + }; + function shouldError(fiber) { + return shouldErrorImpl(fiber); + } + var shouldSuspendImpl = function shouldSuspendImpl(fiber) { + return false; + }; + function shouldSuspend(fiber) { + return shouldSuspendImpl(fiber); + } + var overrideHookState = null; + var overrideHookStateDeletePath = null; + var overrideHookStateRenamePath = null; + var overrideProps = null; + var overridePropsDeletePath = null; + var overridePropsRenamePath = null; + var scheduleUpdate = null; + var setErrorHandler = null; + var setSuspenseHandler = null; + { + var copyWithDeleteImpl = function copyWithDeleteImpl(obj, path, index) { + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === path.length) { + if (isArray(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; + } + return updated; + } + + updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); + return updated; + }; + var copyWithDelete = function copyWithDelete(obj, path) { + return copyWithDeleteImpl(obj, path, 0); + }; + var copyWithRenameImpl = function copyWithRenameImpl(obj, oldPath, newPath, index) { + var oldKey = oldPath[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === oldPath.length) { + var newKey = newPath[index]; + + updated[newKey] = updated[oldKey]; + if (isArray(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + updated[oldKey] = copyWithRenameImpl( + obj[oldKey], oldPath, newPath, index + 1); + } + return updated; + }; + var copyWithRename = function copyWithRename(obj, oldPath, newPath) { + if (oldPath.length !== newPath.length) { + warn("copyWithRename() expects paths of the same length"); + return; + } else { + for (var i = 0; i < newPath.length - 1; i++) { + if (oldPath[i] !== newPath[i]) { + warn("copyWithRename() expects paths to be the same except for the deepest key"); + return; + } + } + } + return copyWithRenameImpl(obj, oldPath, newPath, 0); + }; + var copyWithSetImpl = function copyWithSetImpl(obj, path, index, value) { + if (index >= path.length) { + return value; + } + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + + updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); + return updated; + }; + var copyWithSet = function copyWithSet(obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; + var findHook = function findHook(fiber, id) { + var currentHook = fiber.memoizedState; + while (currentHook !== null && id > 0) { + currentHook = currentHook.next; + id--; + } + return currentHook; + }; + + overrideHookState = function overrideHookState(fiber, id, path, value) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithSet(hook.memoizedState, path, value); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + overrideHookStateDeletePath = function overrideHookStateDeletePath(fiber, id, path) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithDelete(hook.memoizedState, path); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + overrideHookStateRenamePath = function overrideHookStateRenamePath(fiber, id, oldPath, newPath) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithRename(hook.memoizedState, oldPath, newPath); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + + overrideProps = function overrideProps(fiber, path, value) { + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + overridePropsDeletePath = function overridePropsDeletePath(fiber, path) { + fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + overridePropsRenamePath = function overridePropsRenamePath(fiber, oldPath, newPath) { + fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + scheduleUpdate = function scheduleUpdate(fiber) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + setErrorHandler = function setErrorHandler(newShouldErrorImpl) { + shouldErrorImpl = newShouldErrorImpl; + }; + setSuspenseHandler = function setSuspenseHandler(newShouldSuspendImpl) { + shouldSuspendImpl = newShouldSuspendImpl; + }; + } + function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; + } + return hostFiber.stateNode; + } + function emptyFindFiberByHostInstance(instance) { + return null; + } + function getCurrentFiberForDevTools() { + return current; + } + function injectIntoDevTools(devToolsConfig) { + var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals({ + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState: overrideHookState, + overrideHookStateDeletePath: overrideHookStateDeletePath, + overrideHookStateRenamePath: overrideHookStateRenamePath, + overrideProps: overrideProps, + overridePropsDeletePath: overridePropsDeletePath, + overridePropsRenamePath: overridePropsRenamePath, + setErrorHandler: setErrorHandler, + setSuspenseHandler: setSuspenseHandler, + scheduleUpdate: scheduleUpdate, + currentDispatcherRef: ReactCurrentDispatcher, + findHostInstanceByFiber: findHostInstanceByFiber, + findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: findHostInstancesForRefresh, + scheduleRefresh: scheduleRefresh, + scheduleRoot: scheduleRoot, + setRefreshHandler: setRefreshHandler, + getCurrentFiber: getCurrentFiberForDevTools, + reconcilerVersion: ReactVersion + }); + } + var emptyObject$1 = {}; + { + Object.freeze(emptyObject$1); + } + var createHierarchy; + var getHostNode; + var getHostProps; + var lastNonHostInstance; + var getOwnerHierarchy; + var _traverseOwnerTreeUp; + { + createHierarchy = function createHierarchy(fiberHierarchy) { + return fiberHierarchy.map(function (fiber) { + return { + name: getComponentNameFromType(fiber.type), + getInspectorData: function getInspectorData(findNodeHandle) { + return { + props: getHostProps(fiber), + source: fiber._debugSource, + measure: function measure(callback) { + var hostFiber = findCurrentHostFiber(fiber); + var shadowNode = hostFiber != null && hostFiber.stateNode !== null && hostFiber.stateNode.node; + if (shadowNode) { + nativeFabricUIManager.measure(shadowNode, callback); + } else { + return ReactNativePrivateInterface.UIManager.measure(getHostNode(fiber, findNodeHandle), callback); + } + } + }; + } + }; + }); + }; + getHostNode = function getHostNode(fiber, findNodeHandle) { + var hostNode; + + while (fiber) { + if (fiber.stateNode !== null && fiber.tag === HostComponent) { + hostNode = findNodeHandle(fiber.stateNode); + } + if (hostNode) { + return hostNode; + } + fiber = fiber.child; + } + return null; + }; + getHostProps = function getHostProps(fiber) { + var host = findCurrentHostFiber(fiber); + if (host) { + return host.memoizedProps || emptyObject$1; + } + return emptyObject$1; + }; + exports.getInspectorDataForInstance = function (closestInstance) { + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getOwnerHierarchy = function getOwnerHierarchy(instance) { + var hierarchy = []; + _traverseOwnerTreeUp(hierarchy, instance); + return hierarchy; + }; + lastNonHostInstance = function lastNonHostInstance(hierarchy) { + for (var i = hierarchy.length - 1; i > 1; i--) { + var instance = hierarchy[i]; + if (instance.tag !== HostComponent) { + return instance; + } + } + return hierarchy[0]; + }; + _traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { + if (instance) { + hierarchy.unshift(instance); + _traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + }; + } + var getInspectorDataForViewTag; + var getInspectorDataForViewAtPoint; + { + getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { + var closestInstance = getInstanceFromTag(viewTag); + + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getInspectorDataForViewAtPoint = function getInspectorDataForViewAtPoint(findNodeHandle, inspectedView, locationX, locationY, callback) { + var closestInstance = null; + if (inspectedView._internalInstanceHandle != null) { + nativeFabricUIManager.findNodeAtPoint(inspectedView._internalInstanceHandle.stateNode.node, locationX, locationY, function (internalInstanceHandle) { + if (internalInstanceHandle == null) { + callback(assign({ + pointerY: locationY, + frame: { + left: 0, + top: 0, + width: 0, + height: 0 + } + }, exports.getInspectorDataForInstance(closestInstance))); + } + closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; + + var nativeViewTag = internalInstanceHandle.stateNode.canonical._nativeTag; + nativeFabricUIManager.measure(internalInstanceHandle.stateNode.node, function (x, y, width, height, pageX, pageY) { + var inspectorData = exports.getInspectorDataForInstance(closestInstance); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: pageX, + top: pageY, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + }); + } else if (inspectedView._internalFiberInstanceHandleDEV != null) { + ReactNativePrivateInterface.UIManager.findSubviewIn(findNodeHandle(inspectedView), [locationX, locationY], function (nativeViewTag, left, top, width, height) { + var inspectorData = exports.getInspectorDataForInstance(getInstanceFromTag(nativeViewTag)); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: left, + top: top, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + } else { + error("getInspectorDataForViewAtPoint expects to receive a host component"); + return; + } + }; + } + var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; + function findHostInstance_DEPRECATED(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; + } + } + if (componentOrHandle == null) { + return null; + } + if (componentOrHandle._nativeTag) { + return componentOrHandle; + } + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical; + } + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findHostInstance_DEPRECATED"); + } + if (hostInstance == null) { + return hostInstance; + } + if (hostInstance.canonical) { + return hostInstance.canonical; + } + + return hostInstance; + } + function findNodeHandle(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; + } + } + if (componentOrHandle == null) { + return null; + } + if (typeof componentOrHandle === "number") { + return componentOrHandle; + } + if (componentOrHandle._nativeTag) { + return componentOrHandle._nativeTag; + } + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical._nativeTag; + } + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findNodeHandle"); + } + if (hostInstance == null) { + return hostInstance; + } + if (hostInstance.canonical) { + return hostInstance.canonical._nativeTag; + } + return hostInstance._nativeTag; + } + function dispatchCommand(handle, command, args) { + if (handle._nativeTag == null) { + { + error("dispatchCommand was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + } + return; + } + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); + } + } else { + ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args); + } + } + function sendAccessibilityEvent(handle, eventType) { + if (handle._nativeTag == null) { + { + error("sendAccessibilityEvent was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + } + return; + } + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType); + } + } else { + ReactNativePrivateInterface.legacySendAccessibilityEvent(handle._nativeTag, eventType); + } + } + function onRecoverableError(error$1) { + error(error$1); + } + function render(element, containerTag, callback) { + var root = roots.get(containerTag); + if (!root) { + root = createContainer(containerTag, LegacyRoot, null, false, null, "", onRecoverableError); + roots.set(containerTag, root); + } + updateContainer(element, root, null, callback); + + return getPublicRootInstance(root); + } + function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + if (root) { + updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + } + function unmountComponentAtNodeAndRemoveContainer(containerTag) { + unmountComponentAtNode(containerTag); + + ReactNativePrivateInterface.UIManager.removeRootView(containerTag); + } + function createPortal$1(children, containerTag) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + return createPortal(children, containerTag, null, key); + } + setBatchingImplementation(batchedUpdates$1); + function computeComponentStackForErrorReporting(reactTag) { + var fiber = getInstanceFromTag(reactTag); + if (!fiber) { + return ""; + } + return getStackByFiberInDevAndProd(fiber); + } + var roots = new Map(); + var Internals = { + computeComponentStackForErrorReporting: computeComponentStackForErrorReporting + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromTag, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: getInspectorDataForViewTag, + getInspectorDataForViewAtPoint: getInspectorDataForViewAtPoint.bind(null, findNodeHandle) + } + }); + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; + exports.createPortal = createPortal$1; + exports.dispatchCommand = dispatchCommand; + exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; + exports.findNodeHandle = findNodeHandle; + exports.render = render; + exports.sendAccessibilityEvent = sendAccessibilityEvent; + exports.unmountComponentAtNode = unmountComponentAtNode; + exports.unmountComponentAtNodeAndRemoveContainer = unmountComponentAtNodeAndRemoveContainer; + exports.unstable_batchedUpdates = batchedUpdates; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},35,[36,39,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react.development.js"); + } +},36,[37,38],"node_modules/react/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + var l = Symbol.for("react.element"), + n = Symbol.for("react.portal"), + p = Symbol.for("react.fragment"), + q = Symbol.for("react.strict_mode"), + r = Symbol.for("react.profiler"), + t = Symbol.for("react.provider"), + u = Symbol.for("react.context"), + v = Symbol.for("react.forward_ref"), + w = Symbol.for("react.suspense"), + x = Symbol.for("react.memo"), + y = Symbol.for("react.lazy"), + z = Symbol.iterator; + function A(a) { + if (null === a || "object" !== typeof a) return null; + a = z && a[z] || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + var B = { + isMounted: function isMounted() { + return !1; + }, + enqueueForceUpdate: function enqueueForceUpdate() {}, + enqueueReplaceState: function enqueueReplaceState() {}, + enqueueSetState: function enqueueSetState() {} + }, + C = Object.assign, + D = {}; + function E(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + E.prototype.isReactComponent = {}; + E.prototype.setState = function (a, b) { + if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a, b, "setState"); + }; + E.prototype.forceUpdate = function (a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); + }; + function F() {} + F.prototype = E.prototype; + function G(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + var H = G.prototype = new F(); + H.constructor = G; + C(H, E.prototype); + H.isPureReactComponent = !0; + var I = Array.isArray, + J = Object.prototype.hasOwnProperty, + K = { + current: null + }, + L = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }; + function M(a, b, e) { + var d, + c = {}, + k = null, + h = null; + if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) { + J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); + } + var g = arguments.length - 2; + if (1 === g) c.children = e;else if (1 < g) { + for (var f = Array(g), m = 0; m < g; m++) { + f[m] = arguments[m + 2]; + } + c.children = f; + } + if (a && a.defaultProps) for (d in g = a.defaultProps, g) { + void 0 === c[d] && (c[d] = g[d]); + } + return { + $$typeof: l, + type: a, + key: k, + ref: h, + props: c, + _owner: K.current + }; + } + function N(a, b) { + return { + $$typeof: l, + type: a.type, + key: b, + ref: a.ref, + props: a.props, + _owner: a._owner + }; + } + function O(a) { + return "object" === typeof a && null !== a && a.$$typeof === l; + } + function escape(a) { + var b = { + "=": "=0", + ":": "=2" + }; + return "$" + a.replace(/[=:]/g, function (a) { + return b[a]; + }); + } + var P = /\/+/g; + function Q(a, b) { + return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); + } + function R(a, b, e, d, c) { + var k = typeof a; + if ("undefined" === k || "boolean" === k) a = null; + var h = !1; + if (null === a) h = !0;else switch (k) { + case "string": + case "number": + h = !0; + break; + case "object": + switch (a.$$typeof) { + case l: + case n: + h = !0; + } + } + if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function (a) { + return a; + })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1; + h = 0; + d = "" === d ? "." : d + ":"; + if (I(a)) for (var g = 0; g < a.length; g++) { + k = a[g]; + var f = d + Q(k, g); + h += R(k, b, e, f, c); + } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) { + k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c); + } else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + return h; + } + function S(a, b, e) { + if (null == a) return a; + var d = [], + c = 0; + R(a, d, "", "", function (a) { + return b.call(e, a, c++); + }); + return d; + } + function T(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then(function (b) { + if (0 === a._status || -1 === a._status) a._status = 1, a._result = b; + }, function (b) { + if (0 === a._status || -1 === a._status) a._status = 2, a._result = b; + }); + -1 === a._status && (a._status = 0, a._result = b); + } + if (1 === a._status) return a._result.default; + throw a._result; + } + var U = { + current: null + }, + V = { + transition: null + }, + W = { + ReactCurrentDispatcher: U, + ReactCurrentBatchConfig: V, + ReactCurrentOwner: K + }; + exports.Children = { + map: S, + forEach: function forEach(a, b, e) { + S(a, function () { + b.apply(this, arguments); + }, e); + }, + count: function count(a) { + var b = 0; + S(a, function () { + b++; + }); + return b; + }, + toArray: function toArray(a) { + return S(a, function (a) { + return a; + }) || []; + }, + only: function only(a) { + if (!O(a)) throw Error("React.Children.only expected to receive a single React element child."); + return a; + } + }; + exports.Component = E; + exports.Fragment = p; + exports.Profiler = r; + exports.PureComponent = G; + exports.StrictMode = q; + exports.Suspense = w; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; + exports.cloneElement = function (a, b, e) { + if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); + var d = C({}, a.props), + c = a.key, + k = a.ref, + h = a._owner; + if (null != b) { + void 0 !== b.ref && (k = b.ref, h = K.current); + void 0 !== b.key && (c = "" + b.key); + if (a.type && a.type.defaultProps) var g = a.type.defaultProps; + for (f in b) { + J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); + } + } + var f = arguments.length - 2; + if (1 === f) d.children = e;else if (1 < f) { + g = Array(f); + for (var m = 0; m < f; m++) { + g[m] = arguments[m + 2]; + } + d.children = g; + } + return { + $$typeof: l, + type: a.type, + key: c, + ref: k, + props: d, + _owner: h + }; + }; + exports.createContext = function (a) { + a = { + $$typeof: u, + _currentValue: a, + _currentValue2: a, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }; + a.Provider = { + $$typeof: t, + _context: a + }; + return a.Consumer = a; + }; + exports.createElement = M; + exports.createFactory = function (a) { + var b = M.bind(null, a); + b.type = a; + return b; + }; + exports.createRef = function () { + return { + current: null + }; + }; + exports.forwardRef = function (a) { + return { + $$typeof: v, + render: a + }; + }; + exports.isValidElement = O; + exports.lazy = function (a) { + return { + $$typeof: y, + _payload: { + _status: -1, + _result: a + }, + _init: T + }; + }; + exports.memo = function (a, b) { + return { + $$typeof: x, + type: a, + compare: void 0 === b ? null : b + }; + }; + exports.startTransition = function (a) { + var b = V.transition; + V.transition = {}; + try { + a(); + } finally { + V.transition = b; + } + }; + exports.unstable_act = function () { + throw Error("act(...) is not supported in production builds of React."); + }; + exports.useCallback = function (a, b) { + return U.current.useCallback(a, b); + }; + exports.useContext = function (a) { + return U.current.useContext(a); + }; + exports.useDebugValue = function () {}; + exports.useDeferredValue = function (a) { + return U.current.useDeferredValue(a); + }; + exports.useEffect = function (a, b) { + return U.current.useEffect(a, b); + }; + exports.useId = function () { + return U.current.useId(); + }; + exports.useImperativeHandle = function (a, b, e) { + return U.current.useImperativeHandle(a, b, e); + }; + exports.useInsertionEffect = function (a, b) { + return U.current.useInsertionEffect(a, b); + }; + exports.useLayoutEffect = function (a, b) { + return U.current.useLayoutEffect(a, b); + }; + exports.useMemo = function (a, b) { + return U.current.useMemo(a, b); + }; + exports.useReducer = function (a, b, e) { + return U.current.useReducer(a, b, e); + }; + exports.useRef = function (a) { + return U.current.useRef(a); + }; + exports.useState = function (a) { + return U.current.useState(a); + }; + exports.useSyncExternalStore = function (a, b, e) { + return U.current.useSyncExternalStore(a, b, e); + }; + exports.useTransition = function () { + return U.current.useTransition(); + }; + exports.version = "18.1.0"; +},37,[],"node_modules/react/cjs/react.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var ReactVersion = '18.1.0'; + + var enableScopeAPI = false; + var enableCacheElement = false; + var enableTransitionTracing = false; + + var enableLegacyHidden = false; + + var enableDebugTracing = false; + + var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + var REACT_PORTAL_TYPE = Symbol.for('react.portal'); + var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); + var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); + var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); + var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); + var REACT_CONTEXT_TYPE = Symbol.for('react.context'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); + var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); + var REACT_MEMO_TYPE = Symbol.for('react.memo'); + var REACT_LAZY_TYPE = Symbol.for('react.lazy'); + var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + return null; + } + + var ReactCurrentDispatcher = { + current: null + }; + + var ReactCurrentBatchConfig = { + transition: null + }; + var ReactCurrentActQueue = { + current: null, + isBatchingLegacy: false, + didScheduleLegacyUpdate: false + }; + + var ReactCurrentOwner = { + current: null + }; + var ReactDebugCurrentFrame = {}; + var currentExtraStackFrame = null; + function setExtraStackFrame(stack) { + { + currentExtraStackFrame = stack; + } + } + { + ReactDebugCurrentFrame.setExtraStackFrame = function (stack) { + { + currentExtraStackFrame = stack; + } + }; + + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame.getStackAddendum = function () { + var stack = ''; + + if (currentExtraStackFrame) { + stack += currentExtraStackFrame; + } + + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ''; + } + return stack; + }; + } + var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentBatchConfig: ReactCurrentBatchConfig, + ReactCurrentOwner: ReactCurrentOwner + }; + { + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; + } + + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning('warn', format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning('error', format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + + var argsWithFormat = args.map(function (item) { + return String(item); + }); + + argsWithFormat.unshift('Warning: ' + format); + + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var didWarnStateUpdateForUnmountedComponent = {}; + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + + var ReactNoopUpdateQueue = { + isMounted: function isMounted(publicInstance) { + return false; + }, + enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) { + warnNoop(publicInstance, 'forceUpdate'); + }, + enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, 'replaceState'); + }, + enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, 'setState'); + } + }; + var assign = Object.assign; + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + + function Component(props, context, updater) { + this.props = props; + this.context = context; + + this.refs = emptyObject; + + this.updater = updater || ReactNoopUpdateQueue; + } + Component.prototype.isReactComponent = {}; + + Component.prototype.setState = function (partialState, callback) { + if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) { + throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.'); + } + this.updater.enqueueSetState(this, partialState, callback, 'setState'); + }; + + Component.prototype.forceUpdate = function (callback) { + this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); + }; + + { + var deprecatedAPIs = { + isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], + replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] + }; + var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function get() { + warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + return undefined; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + function ComponentDummy() {} + ComponentDummy.prototype = Component.prototype; + + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + + assign(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; + } + var isArrayImpl = Array.isArray; + + function isArray(a) { + return isArrayImpl(a); + } + + function typeName(value) { + { + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; + return type; + } + } + + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return '' + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value)); + return testStringCoercion(value); + } + } + } + + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ''; + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName; + } + + function getContextName(type) { + return type.displayName || 'Context'; + } + + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + if (typeof type === 'string') { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + case REACT_PORTAL_TYPE: + return 'Portal'; + case REACT_PROFILER_TYPE: + return 'Profiler'; + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + '.Consumer'; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + '.Provider'; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || 'Memo'; + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + + } + } + + return null; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== undefined; + } + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== undefined; + } + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function warnAboutAccessingKey() { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); + } + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); + } + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function warnAboutAccessingRef() { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); + } + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); + } + function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + + var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { + var element = { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: ref, + props: props, + _owner: owner + }; + { + element._store = {}; + + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + return element; + }; + + function createElement(type, config, children) { + var propName; + + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = '' + config.key; + } + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } + + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + { + if (key || ref) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + + function cloneElement(element, config, children) { + if (element === null || element === undefined) { + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); + } + var propName; + + var props = assign({}, element.props); + + var key = element.key; + var ref = element.ref; + + var self = element._self; + + var source = element._source; + + var owner = element._owner; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = '' + config.key; + } + + var defaultProps; + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === undefined && defaultProps !== undefined) { + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } + + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + props.children = childArray; + } + return ReactElement(element.type, key, ref, self, source, owner, props); + } + + function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + var SEPARATOR = '.'; + var SUBSEPARATOR = ':'; + + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + '=': '=0', + ':': '=2' + }; + var escapedString = key.replace(escapeRegex, function (match) { + return escaperLookup[match]; + }); + return '$' + escapedString; + } + + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text) { + return text.replace(userProvidedKeyEscapeRegex, '$&/'); + } + + function getElementKey(element, index) { + if (typeof element === 'object' && element !== null && element.key != null) { + { + checkKeyStringCoercion(element.key); + } + return escape('' + element.key); + } + + return index.toString(36); + } + function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { + var type = typeof children; + if (type === 'undefined' || type === 'boolean') { + children = null; + } + var invokeCallback = false; + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case 'string': + case 'number': + invokeCallback = true; + break; + case 'object': + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + } + } + if (invokeCallback) { + var _child = children; + var mappedChild = callback(_child); + + var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; + if (isArray(mappedChild)) { + var escapedChildKey = ''; + if (childKey != null) { + escapedChildKey = escapeUserProvidedKey(childKey) + '/'; + } + mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + { + if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { + checkKeyStringCoercion(mappedChild.key); + } + } + mappedChild = cloneAndReplaceKey(mappedChild, + escapedPrefix + ( + mappedChild.key && (!_child || _child.key !== mappedChild.key) ? + escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey); + } + array.push(mappedChild); + } + return 1; + } + var child; + var nextName; + var subtreeCount = 0; + + var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getElementKey(child, i); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === 'function') { + var iterableChildren = children; + { + if (iteratorFn === iterableChildren.entries) { + if (!didWarnAboutMaps) { + warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.'); + } + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(iterableChildren); + var step; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getElementKey(child, ii++); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else if (type === 'object') { + var childrenString = String(children); + throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); + } + } + return subtreeCount; + } + + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + var result = []; + var count = 0; + mapIntoArray(children, result, '', '', function (child) { + return func.call(context, child, count++); + }); + return result; + } + + function countChildren(children) { + var n = 0; + mapChildren(children, function () { + n++; + }); + + return n; + } + + function forEachChildren(children, forEachFunc, forEachContext) { + mapChildren(children, function () { + forEachFunc.apply(this, arguments); + }, forEachContext); + } + + function toArray(children) { + return mapChildren(children, function (child) { + return child; + }) || []; + } + + function onlyChild(children) { + if (!isValidElement(children)) { + throw new Error('React.Children.only expected to receive a single React element child.'); + } + return children; + } + function createContext(defaultValue) { + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _currentValue: defaultValue, + _currentValue2: defaultValue, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + var hasWarnedAboutDisplayNameOnConsumer = false; + { + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context + }; + + Object.defineProperties(Consumer, { + Provider: { + get: function get() { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + return context.Provider; + }, + set: function set(_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function get() { + return context._currentValue; + }, + set: function set(_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function get() { + return context._currentValue2; + }, + set: function set(_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function get() { + return context._threadCount; + }, + set: function set(_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function get() { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + return context.Consumer; + } + }, + displayName: { + get: function get() { + return context.displayName; + }, + set: function set(displayName) { + if (!hasWarnedAboutDisplayNameOnConsumer) { + warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName); + hasWarnedAboutDisplayNameOnConsumer = true; + } + } + } + }); + + context.Consumer = Consumer; + } + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + return context; + } + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function lazyInitializer(payload) { + if (payload._status === Uninitialized) { + var ctor = payload._result; + var thenable = ctor(); + + thenable.then(function (moduleObject) { + if (payload._status === Pending || payload._status === Uninitialized) { + var resolved = payload; + resolved._status = Resolved; + resolved._result = moduleObject; + } + }, function (error) { + if (payload._status === Pending || payload._status === Uninitialized) { + var rejected = payload; + rejected._status = Rejected; + rejected._result = error; + } + }); + if (payload._status === Uninitialized) { + var pending = payload; + pending._status = Pending; + pending._result = thenable; + } + } + if (payload._status === Resolved) { + var moduleObject = payload._result; + { + if (moduleObject === undefined) { + error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + + 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject); + } + } + { + if (!('default' in moduleObject)) { + error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + + 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject); + } + } + return moduleObject.default; + } else { + throw payload._result; + } + } + function lazy(ctor) { + var payload = { + _status: Uninitialized, + _result: ctor + }; + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: payload, + _init: lazyInitializer + }; + { + var defaultProps; + var propTypes; + + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function get() { + return defaultProps; + }, + set: function set(newDefaultProps) { + error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + defaultProps = newDefaultProps; + + Object.defineProperty(lazyType, 'defaultProps', { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function get() { + return propTypes; + }, + set: function set(newPropTypes) { + error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + propTypes = newPropTypes; + + Object.defineProperty(lazyType, 'propTypes', { + enumerable: true + }); + } + } + }); + } + return lazyType; + } + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); + } else if (typeof render !== 'function') { + error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.'); + } + } + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); + } + } + } + var elementType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; + { + var ownName; + Object.defineProperty(elementType, 'displayName', { + enumerable: false, + configurable: true, + get: function get() { + return ownName; + }, + set: function set(name) { + ownName = name; + + if (!render.name && !render.displayName) { + render.displayName = name; + } + } + }); + } + return elementType; + } + var REACT_MODULE_REFERENCE; + { + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); + } + function isValidElementType(type) { + if (typeof type === 'string' || typeof type === 'function') { + return true; + } + + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { + return true; + } + if (typeof type === 'object' && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { + return true; + } + } + return false; + } + function memo(type, compare) { + { + if (!isValidElementType(type)) { + error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); + } + } + var elementType = { + $$typeof: REACT_MEMO_TYPE, + type: type, + compare: compare === undefined ? null : compare + }; + { + var ownName; + Object.defineProperty(elementType, 'displayName', { + enumerable: false, + configurable: true, + get: function get() { + return ownName; + }, + set: function set(name) { + ownName = name; + + if (!type.name && !type.displayName) { + type.displayName = name; + } + } + }); + } + return elementType; + } + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + { + if (dispatcher === null) { + 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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.'); + } + } + + return dispatcher; + } + function useContext(Context) { + var dispatcher = resolveDispatcher(); + { + if (Context._context !== undefined) { + var realContext = Context._context; + + if (realContext.Consumer === Context) { + error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); + } else if (realContext.Provider === Context) { + error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); + } + } + } + return dispatcher.useContext(Context); + } + function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); + } + function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); + } + function useInsertionEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useInsertionEffect(create, deps); + } + function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); + } + function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + function useTransition() { + var dispatcher = resolveDispatcher(); + return dispatcher.useTransition(); + } + function useDeferredValue(value) { + var dispatcher = resolveDispatcher(); + return dispatcher.useDeferredValue(value); + } + function useId() { + var dispatcher = resolveDispatcher(); + return dispatcher.useId(); + } + function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var dispatcher = resolveDispatcher(); + return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); + } + + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() {} + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + + if (disabledDepth < 0) { + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); + } + } + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === undefined) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ''; + } + } + + return '\n' + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ''; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== undefined) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + + Error.prepareStackTrace = undefined; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher$1.current; + + ReactCurrentDispatcher$1.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function Fake() { + throw Error(); + }; + + Object.defineProperty(Fake.prototype, 'props', { + set: function set() { + throw Error(); + } + }); + if (typeof Reflect === 'object' && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === 'string') { + var sampleLines = sample.stack.split('\n'); + var controlLines = control.stack.split('\n'); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + + if (fn.displayName && _frame.includes('')) { + _frame = _frame.replace('', fn.displayName); + } + { + if (typeof fn === 'function') { + componentFrameCache.set(fn, _frame); + } + } + + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher$1.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + + var name = fn ? fn.displayName || fn.name : ''; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; + { + if (typeof fn === 'function') { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ''; + } + if (typeof type === 'function') { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === 'string') { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame('Suspense'); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame('SuspenseList'); + } + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) {} + } + } + } + return ''; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + + try { + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); + err.name = 'Invariant Violation'; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error('Failed %s type: %s', location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + function setCurrentlyValidatingElement$1(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + setExtraStackFrame(stack); + } else { + setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + return ''; + } + function getSourceInfoErrorAddendum(source) { + if (source !== undefined) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + return ''; + } + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== undefined) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + return ''; + } + + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info; + } + + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + + var childOwner = ''; + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; + } + { + setCurrentlyValidatingElement$1(element); + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + + function validateChildKeys(node, parentType) { + if (typeof node !== 'object') { + return; + } + if (isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === 'function') { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + + function validatePropTypes(element) { + { + var type = element.type; + if (type === null || type === undefined || typeof type === 'string') { + return; + } + var propTypes; + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentNameFromType(type); + checkPropTypes(propTypes, element.props, 'prop', name, element); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + var _name = getComponentNameFromType(type); + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown'); + } + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } + } + } + + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== 'children' && key !== 'key') { + setCurrentlyValidatingElement$1(fragment); + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + setCurrentlyValidatingElement$1(null); + } + } + } + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); + + if (!validType) { + var info = ''; + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + var typeString; + if (type === null) { + typeString = 'null'; + } else if (isArray(type)) { + typeString = 'array'; + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />"; + info = ' Did you accidentally export a JSX literal instead of a component?'; + } else { + typeString = typeof type; + } + { + error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + } + var element = createElement.apply(this, arguments); + + if (element == null) { + return element; + } + + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + return element; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); + } + + Object.defineProperty(validatedFactory, 'type', { + enumerable: false, + get: function get() { + warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + Object.defineProperty(this, 'type', { + value: type + }); + return type; + } + }); + } + return validatedFactory; + } + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + function startTransition(scope, options) { + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = {}; + var currentTransition = ReactCurrentBatchConfig.transition; + { + ReactCurrentBatchConfig.transition._updatedFibers = new Set(); + } + try { + scope(); + } finally { + ReactCurrentBatchConfig.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.'); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + var didWarnAboutMessageChannel = false; + var enqueueTaskImpl = null; + function enqueueTask(task) { + if (enqueueTaskImpl === null) { + try { + var requireString = ('require' + Math.random()).slice(0, 7); + var nodeRequire = module && module[requireString]; + + enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate; + } catch (_err) { + enqueueTaskImpl = function enqueueTaskImpl(callback) { + { + if (didWarnAboutMessageChannel === false) { + didWarnAboutMessageChannel = true; + if (typeof MessageChannel === 'undefined') { + error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.'); + } + } + } + var channel = new MessageChannel(); + channel.port1.onmessage = callback; + channel.port2.postMessage(undefined); + }; + } + } + return enqueueTaskImpl(task); + } + var actScopeDepth = 0; + var didWarnNoAwaitAct = false; + function act(callback) { + { + var prevActScopeDepth = actScopeDepth; + actScopeDepth++; + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + } + var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; + var result; + try { + ReactCurrentActQueue.isBatchingLegacy = true; + result = callback(); + + if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = false; + flushActQueue(queue); + } + } + } catch (error) { + popActScope(prevActScopeDepth); + throw error; + } finally { + ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; + } + if (result !== null && typeof result === 'object' && typeof result.then === 'function') { + var thenableResult = result; + + var wasAwaited = false; + var thenable = { + then: function then(resolve, reject) { + wasAwaited = true; + thenableResult.then(function (returnValue) { + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } else { + resolve(returnValue); + } + }, function (error) { + popActScope(prevActScopeDepth); + reject(error); + }); + } + }; + { + if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') { + Promise.resolve().then(function () {}).then(function () { + if (!wasAwaited) { + didWarnNoAwaitAct = true; + error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);'); + } + }); + } + } + return thenable; + } else { + var returnValue = result; + + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + var _queue = ReactCurrentActQueue.current; + if (_queue !== null) { + flushActQueue(_queue); + ReactCurrentActQueue.current = null; + } + + var _thenable = { + then: function then(resolve, reject) { + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } else { + resolve(returnValue); + } + } + }; + return _thenable; + } else { + var _thenable2 = { + then: function then(resolve, reject) { + resolve(returnValue); + } + }; + return _thenable2; + } + } + } + } + function popActScope(prevActScopeDepth) { + { + if (prevActScopeDepth !== actScopeDepth - 1) { + error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. '); + } + actScopeDepth = prevActScopeDepth; + } + } + function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { + { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + try { + flushActQueue(queue); + enqueueTask(function () { + if (queue.length === 0) { + ReactCurrentActQueue.current = null; + resolve(returnValue); + } else { + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } + }); + } catch (error) { + reject(error); + } + } else { + resolve(returnValue); + } + } + } + var isFlushing = false; + function flushActQueue(queue) { + { + if (!isFlushing) { + isFlushing = true; + var i = 0; + try { + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(true); + } while (callback !== null); + } + queue.length = 0; + } catch (error) { + queue = queue.slice(i + 1); + throw error; + } finally { + isFlushing = false; + } + } + } + } + var createElement$1 = createElementWithValidation; + var cloneElement$1 = cloneElementWithValidation; + var createFactory = createFactoryWithValidation; + var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild + }; + exports.Children = Children; + exports.Component = Component; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.Profiler = REACT_PROFILER_TYPE; + exports.PureComponent = PureComponent; + exports.StrictMode = REACT_STRICT_MODE_TYPE; + exports.Suspense = REACT_SUSPENSE_TYPE; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; + exports.cloneElement = cloneElement$1; + exports.createContext = createContext; + exports.createElement = createElement$1; + exports.createFactory = createFactory; + exports.createRef = createRef; + exports.forwardRef = forwardRef; + exports.isValidElement = isValidElement; + exports.lazy = lazy; + exports.memo = memo; + exports.startTransition = startTransition; + exports.unstable_act = act; + exports.useCallback = useCallback; + exports.useContext = useContext; + exports.useDebugValue = useDebugValue; + exports.useDeferredValue = useDeferredValue; + exports.useEffect = useEffect; + exports.useId = useId; + exports.useImperativeHandle = useImperativeHandle; + exports.useInsertionEffect = useInsertionEffect; + exports.useLayoutEffect = useLayoutEffect; + exports.useMemo = useMemo; + exports.useReducer = useReducer; + exports.useRef = useRef; + exports.useState = useState; + exports.useSyncExternalStore = useSyncExternalStore; + exports.useTransition = useTransition; + exports.version = ReactVersion; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},38,[],"node_modules/react/cjs/react.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + _$$_REQUIRE(_dependencyMap[0], "../Core/InitializeCore"); +},39,[40],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var start = Date.now(); + _$$_REQUIRE(_dependencyMap[0], "./setUpGlobals"); + _$$_REQUIRE(_dependencyMap[1], "./setUpPerformance"); + _$$_REQUIRE(_dependencyMap[2], "./setUpSystrace"); + _$$_REQUIRE(_dependencyMap[3], "./setUpErrorHandling"); + _$$_REQUIRE(_dependencyMap[4], "./polyfillPromise"); + _$$_REQUIRE(_dependencyMap[5], "./setUpRegeneratorRuntime"); + _$$_REQUIRE(_dependencyMap[6], "./setUpTimers"); + _$$_REQUIRE(_dependencyMap[7], "./setUpXHR"); + _$$_REQUIRE(_dependencyMap[8], "./setUpAlert"); + _$$_REQUIRE(_dependencyMap[9], "./setUpNavigator"); + _$$_REQUIRE(_dependencyMap[10], "./setUpBatchedBridge"); + _$$_REQUIRE(_dependencyMap[11], "./setUpSegmentFetcher"); + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[12], "./checkNativeVersion"); + _$$_REQUIRE(_dependencyMap[13], "./setUpDeveloperTools"); + _$$_REQUIRE(_dependencyMap[14], "../LogBox/LogBox").install(); + } + _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_start', _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").currentTimestamp() - (Date.now() - start)); + _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_end'); +},40,[41,42,43,44,77,105,108,113,142,147,148,172,174,177,59,122],"node_modules/react-native/Libraries/Core/InitializeCore.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (global.window === undefined) { + global.window = global; + } + if (global.self === undefined) { + global.self = global; + } + + global.process = global.process || {}; + global.process.env = global.process.env || {}; + if (!global.process.env.NODE_ENV) { + global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; + } +},41,[],"node_modules/react-native/Libraries/Core/setUpGlobals.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (!global.performance) { + global.performance = {}; + } + + if (typeof global.performance.now !== 'function') { + global.performance.now = function () { + var performanceNow = global.nativePerformanceNow || Date.now; + return performanceNow(); + }; + } +},42,[],"node_modules/react-native/Libraries/Core/setUpPerformance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (global.__RCTProfileIsProfiling) { + var Systrace = _$$_REQUIRE(_dependencyMap[0], "../Performance/Systrace"); + Systrace.installReactHook(); + Systrace.setEnabled(true); + } +},43,[28],"node_modules/react-native/Libraries/Core/setUpSystrace.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").installConsoleErrorReporter(); + + if (!global.__fbDisableExceptionsManager) { + var handleError = function handleError(e, isFatal) { + try { + _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException(e, isFatal); + } catch (ee) { + console.log('Failed to print error: ', ee.message); + throw e; + } + }; + var ErrorUtils = _$$_REQUIRE(_dependencyMap[1], "../vendor/core/ErrorUtils"); + ErrorUtils.setGlobalHandler(handleError); + } +},44,[45,29],"node_modules/react-native/Libraries/Core/setUpErrorHandling.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SyntheticError = function (_Error) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(SyntheticError, _Error); + var _super = _createSuper(SyntheticError); + function SyntheticError() { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, SyntheticError); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.name = ''; + return _this; + } + return _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(SyntheticError); + }(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/wrapNativeSuper")(Error)); + var userExceptionDecorator; + var inUserExceptionDecorator = false; + + function unstable_setExceptionDecorator(exceptionDecorator) { + userExceptionDecorator = exceptionDecorator; + } + function preprocessException(data) { + if (userExceptionDecorator && !inUserExceptionDecorator) { + inUserExceptionDecorator = true; + try { + return userExceptionDecorator(data); + } catch (_unused) { + } finally { + inUserExceptionDecorator = false; + } + } + return data; + } + + var exceptionID = 0; + function reportException(e, isFatal, reportToConsole) { + var parseErrorStack = _$$_REQUIRE(_dependencyMap[6], "./Devtools/parseErrorStack"); + var stack = parseErrorStack(e == null ? void 0 : e.stack); + var currentExceptionID = ++exceptionID; + var originalMessage = e.message || ''; + var message = originalMessage; + if (e.componentStack != null) { + message += "\n\nThis error is located at:" + e.componentStack; + } + var namePrefix = e.name == null || e.name === '' ? '' : e.name + ": "; + if (!message.startsWith(namePrefix)) { + message = namePrefix + message; + } + message = e.jsEngine == null ? message : message + ", js engine: " + e.jsEngine; + var data = preprocessException({ + message: message, + originalMessage: message === originalMessage ? null : originalMessage, + name: e.name == null || e.name === '' ? null : e.name, + componentStack: typeof e.componentStack === 'string' ? e.componentStack : null, + stack: stack, + id: currentExceptionID, + isFatal: isFatal, + extraData: { + jsEngine: e.jsEngine, + rawStack: e.stack + } + }); + if (reportToConsole) { + console.error(data.message); + } + if (__DEV__) { + var LogBox = _$$_REQUIRE(_dependencyMap[7], "../LogBox/LogBox"); + LogBox.addException(Object.assign({}, data, { + isComponentError: !!e.isComponentError + })); + } else if (isFatal || e.type !== 'warn') { + var NativeExceptionsManager = _$$_REQUIRE(_dependencyMap[8], "./NativeExceptionsManager").default; + if (NativeExceptionsManager) { + NativeExceptionsManager.reportException(data); + } + } + } + var inExceptionHandler = false; + + function handleException(e, isFatal) { + var error; + if (e instanceof Error) { + error = e; + } else { + error = new SyntheticError(e); + } + try { + inExceptionHandler = true; + reportException(error, isFatal, true); + } finally { + inExceptionHandler = false; + } + } + + function reactConsoleErrorHandler() { + var _console; + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + (_console = console)._errorOriginal.apply(_console, args); + if (!console.reportErrorsAsExceptions) { + return; + } + if (inExceptionHandler) { + return; + } + var error; + var firstArg = args[0]; + if (firstArg != null && firstArg.stack) { + error = firstArg; + } else { + var stringifySafe = _$$_REQUIRE(_dependencyMap[9], "../Utilities/stringifySafe").default; + if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ')) { + return; + } + var message = args.map(function (arg) { + return typeof arg === 'string' ? arg : stringifySafe(arg); + }).join(' '); + error = new SyntheticError(message); + error.name = 'console.error'; + } + reportException( + error, false, + false); + } + + function installConsoleErrorReporter() { + if (console._errorOriginal) { + return; + } + console._errorOriginal = console.error.bind(console); + console.error = reactConsoleErrorHandler; + if (console.reportErrorsAsExceptions === undefined) { + console.reportErrorsAsExceptions = true; + } + } + module.exports = { + handleException: handleException, + installConsoleErrorReporter: installConsoleErrorReporter, + SyntheticError: SyntheticError, + unstable_setExceptionDecorator: unstable_setExceptionDecorator + }; +},45,[46,47,50,12,13,52,56,59,76,26],"node_modules/react-native/Libraries/Core/ExceptionsManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _getPrototypeOf(o) { + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _getPrototypeOf(o); + } + module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; +},46,[],"node_modules/@babel/runtime/helpers/getPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _possibleConstructorReturn(self, call) { + if (call && (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return _$$_REQUIRE(_dependencyMap[1], "./assertThisInitialized.js")(self); + } + module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; +},47,[48,49],"node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); + } + module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; +},48,[],"node_modules/@babel/runtime/helpers/typeof.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; +},49,[],"node_modules/@babel/runtime/helpers/assertThisInitialized.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) _$$_REQUIRE(_dependencyMap[0], "./setPrototypeOf.js")(subClass, superClass); + } + module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; +},50,[51],"node_modules/@babel/runtime/helpers/inherits.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _setPrototypeOf(o, p); + } + module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; +},51,[],"node_modules/@babel/runtime/helpers/setPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (Class === null || !_$$_REQUIRE(_dependencyMap[0], "./isNativeFunction.js")(Class)) return Class; + if (typeof Class !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + _cache.set(Class, Wrapper); + } + function Wrapper() { + return _$$_REQUIRE(_dependencyMap[1], "./construct.js")(Class, arguments, _$$_REQUIRE(_dependencyMap[2], "./getPrototypeOf.js")(this).constructor); + } + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + return _$$_REQUIRE(_dependencyMap[3], "./setPrototypeOf.js")(Wrapper, Class); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _wrapNativeSuper(Class); + } + module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; +},52,[53,54,46,51],"node_modules/@babel/runtime/helpers/wrapNativeSuper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _isNativeFunction(fn) { + return Function.toString.call(fn).indexOf("[native code]") !== -1; + } + module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; +},53,[],"node_modules/@babel/runtime/helpers/isNativeFunction.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _construct(Parent, args, Class) { + if (_$$_REQUIRE(_dependencyMap[0], "./isNativeReflectConstruct.js")()) { + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; + } else { + module.exports = _construct = function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Function.bind.apply(Parent, a); + var instance = new Constructor(); + if (Class) _$$_REQUIRE(_dependencyMap[1], "./setPrototypeOf.js")(instance, Class.prototype); + return instance; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + } + return _construct.apply(null, arguments); + } + module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; +},54,[55,51],"node_modules/@babel/runtime/helpers/construct.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } + } + module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; +},55,[],"node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function convertHermesStack(stack) { + var frames = []; + for (var entry of stack.entries) { + if (entry.type !== 'FRAME') { + continue; + } + var location = entry.location, + functionName = entry.functionName; + if (location.type === 'NATIVE') { + continue; + } + frames.push({ + methodName: functionName, + file: location.sourceUrl, + lineNumber: location.line1Based, + column: location.type === 'SOURCE' ? location.column1Based - 1 : location.virtualOffset0Based + }); + } + return frames; + } + function parseErrorStack(errorStack) { + if (errorStack == null) { + return []; + } + var stacktraceParser = _$$_REQUIRE(_dependencyMap[0], "stacktrace-parser"); + var parsedStack = Array.isArray(errorStack) ? errorStack : global.HermesInternal ? convertHermesStack(_$$_REQUIRE(_dependencyMap[1], "./parseHermesStack")(errorStack)) : stacktraceParser.parse(errorStack).map(function (frame) { + return Object.assign({}, frame, { + column: frame.column != null ? frame.column - 1 : null + }); + }); + return parsedStack; + } + module.exports = parseErrorStack; +},56,[57,58],"node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + var UNKNOWN_FUNCTION = ''; + + function parse(stackString) { + var lines = stackString.split('\n'); + return lines.reduce(function (stack, line) { + var parseResult = parseChrome(line) || parseWinjs(line) || parseGecko(line) || parseNode(line) || parseJSC(line); + if (parseResult) { + stack.push(parseResult); + } + return stack; + }, []); + } + var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i; + var chromeEvalRe = /\((\S*)(?::(\d+))(?::(\d+))\)/; + function parseChrome(line) { + var parts = chromeRe.exec(line); + if (!parts) { + return null; + } + var isNative = parts[2] && parts[2].indexOf('native') === 0; + + var isEval = parts[2] && parts[2].indexOf('eval') === 0; + + var submatch = chromeEvalRe.exec(parts[2]); + if (isEval && submatch != null) { + parts[2] = submatch[1]; + + parts[3] = submatch[2]; + + parts[4] = submatch[3]; + } + + return { + file: !isNative ? parts[2] : null, + methodName: parts[1] || UNKNOWN_FUNCTION, + arguments: isNative ? [parts[2]] : [], + lineNumber: parts[3] ? +parts[3] : null, + column: parts[4] ? +parts[4] : null + }; + } + var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i; + function parseWinjs(line) { + var parts = winjsRe.exec(line); + if (!parts) { + return null; + } + return { + file: parts[2], + methodName: parts[1] || UNKNOWN_FUNCTION, + arguments: [], + lineNumber: +parts[3], + column: parts[4] ? +parts[4] : null + }; + } + var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i; + var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i; + function parseGecko(line) { + var parts = geckoRe.exec(line); + if (!parts) { + return null; + } + var isEval = parts[3] && parts[3].indexOf(' > eval') > -1; + var submatch = geckoEvalRe.exec(parts[3]); + if (isEval && submatch != null) { + parts[3] = submatch[1]; + parts[4] = submatch[2]; + parts[5] = null; + } + + return { + file: parts[3], + methodName: parts[1] || UNKNOWN_FUNCTION, + arguments: parts[2] ? parts[2].split(',') : [], + lineNumber: parts[4] ? +parts[4] : null, + column: parts[5] ? +parts[5] : null + }; + } + var javaScriptCoreRe = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i; + function parseJSC(line) { + var parts = javaScriptCoreRe.exec(line); + if (!parts) { + return null; + } + return { + file: parts[3], + methodName: parts[1] || UNKNOWN_FUNCTION, + arguments: [], + lineNumber: +parts[4], + column: parts[5] ? +parts[5] : null + }; + } + var nodeRe = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i; + function parseNode(line) { + var parts = nodeRe.exec(line); + if (!parts) { + return null; + } + return { + file: parts[2], + methodName: parts[1] || UNKNOWN_FUNCTION, + arguments: [], + lineNumber: +parts[3], + column: parts[4] ? +parts[4] : null + }; + } + exports.parse = parse; +},57,[],"node_modules/stacktrace-parser/dist/stack-trace-parser.cjs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var RE_FRAME = /^ {4}at (.+?)(?: \((native)\)?| \((address at )?(.*?):(\d+):(\d+)\))$/; + + var RE_SKIPPED = /^ {4}... skipping (\d+) frames$/; + function parseLine(line) { + var asFrame = line.match(RE_FRAME); + if (asFrame) { + return { + type: 'FRAME', + functionName: asFrame[1], + location: asFrame[2] === 'native' ? { + type: 'NATIVE' + } : asFrame[3] === 'address at ' ? { + type: 'BYTECODE', + sourceUrl: asFrame[4], + line1Based: Number.parseInt(asFrame[5], 10), + virtualOffset0Based: Number.parseInt(asFrame[6], 10) + } : { + type: 'SOURCE', + sourceUrl: asFrame[4], + line1Based: Number.parseInt(asFrame[5], 10), + column1Based: Number.parseInt(asFrame[6], 10) + } + }; + } + var asSkipped = line.match(RE_SKIPPED); + if (asSkipped) { + return { + type: 'SKIPPED', + count: Number.parseInt(asSkipped[1], 10) + }; + } + } + module.exports = function parseHermesStack(stack) { + var lines = stack.split(/\n/); + var entries = []; + var lastMessageLine = -1; + for (var i = 0; i < lines.length; ++i) { + var line = lines[i]; + if (!line) { + continue; + } + var entry = parseLine(line); + if (entry) { + entries.push(entry); + continue; + } + lastMessageLine = i; + entries = []; + } + var message = lines.slice(0, lastMessageLine + 1).join('\n'); + return { + message: message, + entries: entries + }; + }; +},58,[],"node_modules/react-native/Libraries/Core/Devtools/parseHermesStack.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + var _RCTLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/RCTLog")); + + var LogBox; + if (__DEV__) { + var LogBoxData = _$$_REQUIRE(_dependencyMap[3], "./Data/LogBoxData"); + var _require = _$$_REQUIRE(_dependencyMap[4], "./Data/parseLogBoxLog"), + parseLogBoxLog = _require.parseLogBoxLog, + parseInterpolation = _require.parseInterpolation; + var originalConsoleError; + var originalConsoleWarn; + var consoleErrorImpl; + var consoleWarnImpl; + var isLogBoxInstalled = false; + LogBox = { + install: function install() { + if (isLogBoxInstalled) { + return; + } + isLogBoxInstalled = true; + + _$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeLogBox"); + + var isFirstInstall = originalConsoleError == null; + if (isFirstInstall) { + originalConsoleError = console.error.bind(console); + originalConsoleWarn = console.warn.bind(console); + + console.error = function () { + consoleErrorImpl.apply(void 0, arguments); + }; + console.warn = function () { + consoleWarnImpl.apply(void 0, arguments); + }; + } + consoleErrorImpl = registerError; + consoleWarnImpl = registerWarning; + if (_Platform.default.isTesting) { + LogBoxData.setDisabled(true); + } + _RCTLog.default.setWarningHandler(function () { + registerWarning.apply(void 0, arguments); + }); + }, + uninstall: function uninstall() { + if (!isLogBoxInstalled) { + return; + } + isLogBoxInstalled = false; + + consoleErrorImpl = originalConsoleError; + consoleWarnImpl = originalConsoleWarn; + }, + isInstalled: function isInstalled() { + return isLogBoxInstalled; + }, + ignoreLogs: function ignoreLogs(patterns) { + LogBoxData.addIgnorePatterns(patterns); + }, + ignoreAllLogs: function ignoreAllLogs(value) { + LogBoxData.setDisabled(value == null ? true : value); + }, + clearAllLogs: function clearAllLogs() { + LogBoxData.clear(); + }, + addLog: function addLog(log) { + if (isLogBoxInstalled) { + LogBoxData.addLog(log); + } + }, + addException: function addException(error) { + if (isLogBoxInstalled) { + LogBoxData.addException(error); + } + } + }; + var isRCTLogAdviceWarning = function isRCTLogAdviceWarning() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return typeof args[0] === 'string' && args[0].startsWith('(ADVICE)'); + }; + var isWarningModuleWarning = function isWarningModuleWarning() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + return typeof args[0] === 'string' && args[0].startsWith('Warning: '); + }; + var registerWarning = function registerWarning() { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + if (LogBoxData.isLogBoxErrorMessage(String(args[0]))) { + originalConsoleError.apply(void 0, args); + return; + } + try { + if (!isRCTLogAdviceWarning.apply(void 0, args)) { + var _parseLogBoxLog = parseLogBoxLog(args), + category = _parseLogBoxLog.category, + message = _parseLogBoxLog.message, + componentStack = _parseLogBoxLog.componentStack; + if (!LogBoxData.isMessageIgnored(message.content)) { + originalConsoleWarn.apply(void 0, args); + LogBoxData.addLog({ + level: 'warn', + category: category, + message: message, + componentStack: componentStack + }); + } + } + } catch (err) { + LogBoxData.reportLogBoxError(err); + } + }; + + var registerError = function registerError() { + for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { + args[_key4] = arguments[_key4]; + } + if (LogBoxData.isLogBoxErrorMessage(args[0])) { + originalConsoleError.apply(void 0, args); + return; + } + try { + if (!isWarningModuleWarning.apply(void 0, args)) { + originalConsoleError.apply(void 0, args); + return; + } + var format = args[0].replace('Warning: ', ''); + var filterResult = LogBoxData.checkWarningFilter(format); + if (filterResult.suppressCompletely) { + return; + } + var level = 'error'; + if (filterResult.suppressDialog_LEGACY === true) { + level = 'warn'; + } else if (filterResult.forceDialogImmediately === true) { + level = 'fatal'; + } + + args[0] = "Warning: " + filterResult.finalFormat; + var _parseLogBoxLog2 = parseLogBoxLog(args), + category = _parseLogBoxLog2.category, + message = _parseLogBoxLog2.message, + componentStack = _parseLogBoxLog2.componentStack; + if (!LogBoxData.isMessageIgnored(message.content)) { + var interpolated = parseInterpolation(args); + originalConsoleError(interpolated.message.content); + LogBoxData.addLog({ + level: level, + category: category, + message: message, + componentStack: componentStack + }); + } + } catch (err) { + LogBoxData.reportLogBoxError(err); + } + }; + } else { + LogBox = { + install: function install() { + }, + uninstall: function uninstall() { + }, + isInstalled: function isInstalled() { + return false; + }, + ignoreLogs: function ignoreLogs(patterns) { + }, + ignoreAllLogs: function ignoreAllLogs(value) { + }, + clearAllLogs: function clearAllLogs() { + }, + addLog: function addLog(log) { + }, + addException: function addException(error) { + } + }; + } + module.exports = LogBox; +},59,[3,14,60,61,71,70],"node_modules/react-native/Libraries/LogBox/LogBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var levelsMap = { + log: 'log', + info: 'info', + warn: 'warn', + error: 'error', + fatal: 'error' + }; + var warningHandler = null; + var RCTLog = { + logIfNoNativeHook: function logIfNoNativeHook(level) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + if (typeof global.nativeLoggingHook === 'undefined') { + RCTLog.logToConsole.apply(RCTLog, [level].concat(args)); + } else { + if (warningHandler && level === 'warn') { + warningHandler.apply(void 0, args); + } + } + }, + logToConsole: function logToConsole(level) { + var _console; + var logFn = levelsMap[level]; + _$$_REQUIRE(_dependencyMap[0], "invariant")(logFn, 'Level "' + level + '" not one of ' + Object.keys(levelsMap).toString()); + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + (_console = console)[logFn].apply(_console, args); + }, + setWarningHandler: function setWarningHandler(handler) { + warningHandler = handler; + } + }; + module.exports = RCTLog; +},60,[17],"node_modules/react-native/Libraries/Utilities/RCTLog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.addException = addException; + exports.addIgnorePatterns = addIgnorePatterns; + exports.addLog = addLog; + exports.checkWarningFilter = checkWarningFilter; + exports.clear = clear; + exports.clearErrors = clearErrors; + exports.clearWarnings = clearWarnings; + exports.dismiss = dismiss; + exports.getAppInfo = getAppInfo; + exports.getIgnorePatterns = getIgnorePatterns; + exports.isDisabled = isDisabled; + exports.isLogBoxErrorMessage = isLogBoxErrorMessage; + exports.isMessageIgnored = isMessageIgnored; + exports.observe = observe; + exports.reportLogBoxError = reportLogBoxError; + exports.retrySymbolicateLogNow = retrySymbolicateLogNow; + exports.setAppInfo = setAppInfo; + exports.setDisabled = setDisabled; + exports.setSelectedLog = setSelectedLog; + exports.setWarningFilter = setWarningFilter; + exports.symbolicateLogLazy = symbolicateLogLazy; + exports.symbolicateLogNow = symbolicateLogNow; + exports.withSubscription = withSubscription; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxLog")); + var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Core/Devtools/parseErrorStack")); + var _NativeLogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../NativeModules/specs/NativeLogBox")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + + 'use strict'; + var observers = new Set(); + var ignorePatterns = new Set(); + var appInfo = null; + var logs = new Set(); + var updateTimeout = null; + var _isDisabled = false; + var _selectedIndex = -1; + var warningFilter = function warningFilter(format) { + return { + finalFormat: format, + forceDialogImmediately: false, + suppressDialog_LEGACY: true, + suppressCompletely: false, + monitorEvent: 'unknown', + monitorListVersion: 0, + monitorSampleRate: 1 + }; + }; + var LOGBOX_ERROR_MESSAGE = 'An error was thrown when attempting to render log messages via LogBox.'; + function getNextState() { + return { + logs: logs, + isDisabled: _isDisabled, + selectedLogIndex: _selectedIndex + }; + } + function reportLogBoxError(error, componentStack) { + var ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "../../Core/ExceptionsManager"); + error.message = LOGBOX_ERROR_MESSAGE + "\n\n" + error.message; + if (componentStack != null) { + error.componentStack = componentStack; + } + ExceptionsManager.handleException(error, true); + } + function isLogBoxErrorMessage(message) { + return typeof message === 'string' && message.includes(LOGBOX_ERROR_MESSAGE); + } + function isMessageIgnored(message) { + for (var pattern of ignorePatterns) { + if (pattern instanceof RegExp && pattern.test(message) || typeof pattern === 'string' && message.includes(pattern)) { + return true; + } + } + return false; + } + function handleUpdate() { + if (updateTimeout == null) { + updateTimeout = setImmediate(function () { + updateTimeout = null; + var nextState = getNextState(); + observers.forEach(function (_ref) { + var observer = _ref.observer; + return observer(nextState); + }); + }); + } + } + function appendNewLog(newLog) { + if (isMessageIgnored(newLog.message.content)) { + return; + } + + var lastLog = Array.from(logs).pop(); + if (lastLog && lastLog.category === newLog.category) { + lastLog.incrementCount(); + handleUpdate(); + return; + } + if (newLog.level === 'fatal') { + var OPTIMISTIC_WAIT_TIME = 1000; + var _addPendingLog = function addPendingLog() { + logs.add(newLog); + if (_selectedIndex < 0) { + setSelectedLog(logs.size - 1); + } else { + handleUpdate(); + } + _addPendingLog = null; + }; + var optimisticTimeout = setTimeout(function () { + if (_addPendingLog) { + _addPendingLog(); + } + }, OPTIMISTIC_WAIT_TIME); + newLog.symbolicate(function (status) { + if (_addPendingLog && status !== 'PENDING') { + _addPendingLog(); + clearTimeout(optimisticTimeout); + } else if (status !== 'PENDING') { + handleUpdate(); + } + }); + } else if (newLog.level === 'syntax') { + logs.add(newLog); + setSelectedLog(logs.size - 1); + } else { + logs.add(newLog); + handleUpdate(); + } + } + function addLog(log) { + var errorForStackTrace = new Error(); + + setImmediate(function () { + try { + var stack = (0, _parseErrorStack.default)(errorForStackTrace == null ? void 0 : errorForStackTrace.stack); + appendNewLog(new _LogBoxLog.default({ + level: log.level, + message: log.message, + isComponentError: false, + stack: stack, + category: log.category, + componentStack: log.componentStack + })); + } catch (error) { + reportLogBoxError(error); + } + }); + } + function addException(error) { + setImmediate(function () { + try { + appendNewLog(new _LogBoxLog.default((0, _$$_REQUIRE(_dependencyMap[11], "./parseLogBoxLog").parseLogBoxException)(error))); + } catch (loggingError) { + reportLogBoxError(loggingError); + } + }); + } + function symbolicateLogNow(log) { + log.symbolicate(function () { + handleUpdate(); + }); + } + function retrySymbolicateLogNow(log) { + log.retrySymbolicate(function () { + handleUpdate(); + }); + } + function symbolicateLogLazy(log) { + log.symbolicate(); + } + function clear() { + if (logs.size > 0) { + logs = new Set(); + setSelectedLog(-1); + } + } + function setSelectedLog(proposedNewIndex) { + var oldIndex = _selectedIndex; + var newIndex = proposedNewIndex; + var logArray = Array.from(logs); + var index = logArray.length - 1; + while (index >= 0) { + if (logArray[index].level === 'syntax') { + newIndex = index; + break; + } + index -= 1; + } + _selectedIndex = newIndex; + handleUpdate(); + if (_NativeLogBox.default) { + setTimeout(function () { + if (oldIndex < 0 && newIndex >= 0) { + _NativeLogBox.default.show(); + } else if (oldIndex >= 0 && newIndex < 0) { + _NativeLogBox.default.hide(); + } + }, 0); + } + } + function clearWarnings() { + var newLogs = Array.from(logs).filter(function (log) { + return log.level !== 'warn'; + }); + if (newLogs.length !== logs.size) { + logs = new Set(newLogs); + setSelectedLog(-1); + handleUpdate(); + } + } + function clearErrors() { + var newLogs = Array.from(logs).filter(function (log) { + return log.level !== 'error' && log.level !== 'fatal'; + }); + if (newLogs.length !== logs.size) { + logs = new Set(newLogs); + setSelectedLog(-1); + } + } + function dismiss(log) { + if (logs.has(log)) { + logs.delete(log); + handleUpdate(); + } + } + function setWarningFilter(filter) { + warningFilter = filter; + } + function setAppInfo(info) { + appInfo = info; + } + function getAppInfo() { + return appInfo != null ? appInfo() : null; + } + function checkWarningFilter(format) { + return warningFilter(format); + } + function getIgnorePatterns() { + return Array.from(ignorePatterns); + } + function addIgnorePatterns(patterns) { + var existingSize = ignorePatterns.size; + patterns.forEach(function (pattern) { + if (pattern instanceof RegExp) { + for (var existingPattern of ignorePatterns) { + if (existingPattern instanceof RegExp && existingPattern.toString() === pattern.toString()) { + return; + } + } + ignorePatterns.add(pattern); + } + ignorePatterns.add(pattern); + }); + if (ignorePatterns.size === existingSize) { + return; + } + logs = new Set(Array.from(logs).filter(function (log) { + return !isMessageIgnored(log.message.content); + })); + handleUpdate(); + } + function setDisabled(value) { + if (value === _isDisabled) { + return; + } + _isDisabled = value; + handleUpdate(); + } + function isDisabled() { + return _isDisabled; + } + function observe(observer) { + var subscription = { + observer: observer + }; + observers.add(subscription); + observer(getNextState()); + return { + unsubscribe: function unsubscribe() { + observers.delete(subscription); + } + }; + } + function withSubscription(WrappedComponent) { + var LogBoxStateSubscription = function (_React$Component) { + (0, _inherits2.default)(LogBoxStateSubscription, _React$Component); + var _super = _createSuper(LogBoxStateSubscription); + function LogBoxStateSubscription() { + var _this; + (0, _classCallCheck2.default)(this, LogBoxStateSubscription); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + logs: new Set(), + isDisabled: false, + hasError: false, + selectedLogIndex: -1 + }; + _this._handleDismiss = function () { + var _this$state = _this.state, + selectedLogIndex = _this$state.selectedLogIndex, + stateLogs = _this$state.logs; + var logsArray = Array.from(stateLogs); + if (selectedLogIndex != null) { + if (logsArray.length - 1 <= 0) { + setSelectedLog(-1); + } else if (selectedLogIndex >= logsArray.length - 1) { + setSelectedLog(selectedLogIndex - 1); + } + dismiss(logsArray[selectedLogIndex]); + } + }; + _this._handleMinimize = function () { + setSelectedLog(-1); + }; + _this._handleSetSelectedLog = function (index) { + setSelectedLog(index); + }; + return _this; + } + (0, _createClass2.default)(LogBoxStateSubscription, [{ + key: "componentDidCatch", + value: function componentDidCatch(err, errorInfo) { + reportLogBoxError(err, errorInfo.componentStack); + } + }, { + key: "render", + value: function render() { + if (this.state.hasError) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(WrappedComponent, { + logs: Array.from(this.state.logs), + isDisabled: this.state.isDisabled, + selectedLogIndex: this.state.selectedLogIndex + }); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + this._subscription = observe(function (data) { + _this2.setState(data); + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscription != null) { + this._subscription.unsubscribe(); + } + } + }], [{ + key: "getDerivedStateFromError", + value: function getDerivedStateFromError() { + return { + hasError: true + }; + } + }]); + return LogBoxStateSubscription; + }(React.Component); + return LogBoxStateSubscription; + } +},61,[3,12,13,50,47,46,36,62,56,70,45,71,73],"node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var LogBoxSymbolication = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./LogBoxSymbolication")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var LogBoxLog = function () { + function LogBoxLog(data) { + (0, _classCallCheck2.default)(this, LogBoxLog); + this.symbolicated = { + error: null, + stack: null, + status: 'NONE' + }; + this.level = data.level; + this.type = data.type; + this.message = data.message; + this.stack = data.stack; + this.category = data.category; + this.componentStack = data.componentStack; + this.codeFrame = data.codeFrame; + this.isComponentError = data.isComponentError; + this.count = 1; + } + (0, _createClass2.default)(LogBoxLog, [{ + key: "incrementCount", + value: function incrementCount() { + this.count += 1; + } + }, { + key: "getAvailableStack", + value: function getAvailableStack() { + return this.symbolicated.status === 'COMPLETE' ? this.symbolicated.stack : this.stack; + } + }, { + key: "retrySymbolicate", + value: function retrySymbolicate(callback) { + if (this.symbolicated.status !== 'COMPLETE') { + LogBoxSymbolication.deleteStack(this.stack); + this.handleSymbolicate(callback); + } + } + }, { + key: "symbolicate", + value: function symbolicate(callback) { + if (this.symbolicated.status === 'NONE') { + this.handleSymbolicate(callback); + } + } + }, { + key: "handleSymbolicate", + value: function handleSymbolicate(callback) { + var _this = this; + if (this.symbolicated.status !== 'PENDING') { + this.updateStatus(null, null, null, callback); + LogBoxSymbolication.symbolicate(this.stack).then(function (data) { + _this.updateStatus(null, data == null ? void 0 : data.stack, data == null ? void 0 : data.codeFrame, callback); + }, function (error) { + _this.updateStatus(error, null, null, callback); + }); + } + } + }, { + key: "updateStatus", + value: function updateStatus(error, stack, codeFrame, callback) { + var lastStatus = this.symbolicated.status; + if (error != null) { + this.symbolicated = { + error: error, + stack: null, + status: 'FAILED' + }; + } else if (stack != null) { + if (codeFrame) { + this.codeFrame = codeFrame; + } + this.symbolicated = { + error: null, + stack: stack, + status: 'COMPLETE' + }; + } else { + this.symbolicated = { + error: null, + stack: null, + status: 'PENDING' + }; + } + if (callback && lastStatus !== this.symbolicated.status) { + callback(this.symbolicated.status); + } + } + }]); + return LogBoxLog; + }(); + var _default = LogBoxLog; + exports.default = _default; +},62,[3,12,13,63],"node_modules/react-native/Libraries/LogBox/Data/LogBoxLog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.deleteStack = deleteStack; + exports.symbolicate = symbolicate; + var _symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Core/Devtools/symbolicateStackTrace")); + + var cache = new Map(); + + var sanitize = function sanitize(_ref) { + var maybeStack = _ref.stack, + codeFrame = _ref.codeFrame; + if (!Array.isArray(maybeStack)) { + throw new Error('Expected stack to be an array.'); + } + var stack = []; + for (var maybeFrame of maybeStack) { + var collapse = false; + if ('collapse' in maybeFrame) { + if (typeof maybeFrame.collapse !== 'boolean') { + throw new Error('Expected stack frame `collapse` to be a boolean.'); + } + collapse = maybeFrame.collapse; + } + stack.push({ + column: maybeFrame.column, + file: maybeFrame.file, + lineNumber: maybeFrame.lineNumber, + methodName: maybeFrame.methodName, + collapse: collapse + }); + } + return { + stack: stack, + codeFrame: codeFrame + }; + }; + function deleteStack(stack) { + cache.delete(stack); + } + function symbolicate(stack) { + var promise = cache.get(stack); + if (promise == null) { + promise = (0, _symbolicateStackTrace.default)(stack).then(sanitize); + cache.set(stack, promise); + } + return promise; + } +},63,[3,64],"node_modules/react-native/Libraries/LogBox/Data/LogBoxSymbolication.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function symbolicateStackTrace(_x) { + return _symbolicateStackTrace.apply(this, arguments); + } + function _symbolicateStackTrace() { + _symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/asyncToGenerator")(function* (stack) { + var _global$fetch; + var devServer = _$$_REQUIRE(_dependencyMap[1], "./getDevServer")(); + if (!devServer.bundleLoadedFromServer) { + throw new Error('Bundle was not loaded from Metro.'); + } + + var fetch = (_global$fetch = global.fetch) != null ? _global$fetch : _$$_REQUIRE(_dependencyMap[2], "../../Network/fetch"); + var response = yield fetch(devServer.url + 'symbolicate', { + method: 'POST', + body: JSON.stringify({ + stack: stack + }) + }); + return yield response.json(); + }); + return _symbolicateStackTrace.apply(this, arguments); + } + module.exports = symbolicateStackTrace; +},64,[65,66,68],"node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } + } + function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + _next(undefined); + }); + }; + } + module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; +},65,[],"node_modules/@babel/runtime/helpers/asyncToGenerator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeSourceCode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../NativeModules/specs/NativeSourceCode")); + + var _cachedDevServerURL; + var _cachedFullBundleURL; + var FALLBACK = 'http://localhost:8081/'; + function getDevServer() { + var _cachedDevServerURL2; + if (_cachedDevServerURL === undefined) { + var scriptUrl = _NativeSourceCode.default.getConstants().scriptURL; + var match = scriptUrl.match(/^https?:\/\/.*?\//); + _cachedDevServerURL = match ? match[0] : null; + _cachedFullBundleURL = match ? scriptUrl : null; + } + return { + url: (_cachedDevServerURL2 = _cachedDevServerURL) != null ? _cachedDevServerURL2 : FALLBACK, + fullBundleUrl: _cachedFullBundleURL, + bundleLoadedFromServer: _cachedDevServerURL !== null + }; + } + module.exports = getDevServer; +},66,[3,67],"node_modules/react-native/Libraries/Core/Devtools/getDevServer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var NativeModule = TurboModuleRegistry.getEnforcing('SourceCode'); + var constants = null; + var NativeSourceCode = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + } + }; + var _default = NativeSourceCode; + exports.default = _default; +},67,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeSourceCode.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + _$$_REQUIRE(_dependencyMap[0], "whatwg-fetch"); + module.exports = { + fetch: fetch, + Headers: Headers, + Request: Request, + Response: Response + }; +},68,[69],"node_modules/react-native/Libraries/Network/fetch.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + (function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : factory(global.WHATWGFetch = {}); + })(this, function (exports) { + 'use strict'; + + var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; + var support = { + searchParams: 'URLSearchParams' in global, + iterable: 'Symbol' in global && 'iterator' in Symbol, + blob: 'FileReader' in global && 'Blob' in global && function () { + try { + new Blob(); + return true; + } catch (e) { + return false; + } + }(), + formData: 'FormData' in global, + arrayBuffer: 'ArrayBuffer' in global + }; + function isDataView(obj) { + return obj && DataView.prototype.isPrototypeOf(obj); + } + if (support.arrayBuffer) { + var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; + var isArrayBufferView = ArrayBuffer.isView || function (obj) { + return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1; + }; + } + function normalizeName(name) { + if (typeof name !== 'string') { + name = String(name); + } + if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { + throw new TypeError('Invalid character in header field name: "' + name + '"'); + } + return name.toLowerCase(); + } + function normalizeValue(value) { + if (typeof value !== 'string') { + value = String(value); + } + return value; + } + + function iteratorFor(items) { + var iterator = { + next: function next() { + var value = items.shift(); + return { + done: value === undefined, + value: value + }; + } + }; + if (support.iterable) { + iterator[Symbol.iterator] = function () { + return iterator; + }; + } + return iterator; + } + function Headers(headers) { + this.map = {}; + if (headers instanceof Headers) { + headers.forEach(function (value, name) { + this.append(name, value); + }, this); + } else if (Array.isArray(headers)) { + headers.forEach(function (header) { + this.append(header[0], header[1]); + }, this); + } else if (headers) { + Object.getOwnPropertyNames(headers).forEach(function (name) { + this.append(name, headers[name]); + }, this); + } + } + Headers.prototype.append = function (name, value) { + name = normalizeName(name); + value = normalizeValue(value); + var oldValue = this.map[name]; + this.map[name] = oldValue ? oldValue + ', ' + value : value; + }; + Headers.prototype['delete'] = function (name) { + delete this.map[normalizeName(name)]; + }; + Headers.prototype.get = function (name) { + name = normalizeName(name); + return this.has(name) ? this.map[name] : null; + }; + Headers.prototype.has = function (name) { + return this.map.hasOwnProperty(normalizeName(name)); + }; + Headers.prototype.set = function (name, value) { + this.map[normalizeName(name)] = normalizeValue(value); + }; + Headers.prototype.forEach = function (callback, thisArg) { + for (var name in this.map) { + if (this.map.hasOwnProperty(name)) { + callback.call(thisArg, this.map[name], name, this); + } + } + }; + Headers.prototype.keys = function () { + var items = []; + this.forEach(function (value, name) { + items.push(name); + }); + return iteratorFor(items); + }; + Headers.prototype.values = function () { + var items = []; + this.forEach(function (value) { + items.push(value); + }); + return iteratorFor(items); + }; + Headers.prototype.entries = function () { + var items = []; + this.forEach(function (value, name) { + items.push([name, value]); + }); + return iteratorFor(items); + }; + if (support.iterable) { + Headers.prototype[Symbol.iterator] = Headers.prototype.entries; + } + function consumed(body) { + if (body.bodyUsed) { + return Promise.reject(new TypeError('Already read')); + } + body.bodyUsed = true; + } + function fileReaderReady(reader) { + return new Promise(function (resolve, reject) { + reader.onload = function () { + resolve(reader.result); + }; + reader.onerror = function () { + reject(reader.error); + }; + }); + } + function readBlobAsArrayBuffer(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsArrayBuffer(blob); + return promise; + } + function readBlobAsText(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsText(blob); + return promise; + } + function readArrayBufferAsText(buf) { + var view = new Uint8Array(buf); + var chars = new Array(view.length); + for (var i = 0; i < view.length; i++) { + chars[i] = String.fromCharCode(view[i]); + } + return chars.join(''); + } + function bufferClone(buf) { + if (buf.slice) { + return buf.slice(0); + } else { + var view = new Uint8Array(buf.byteLength); + view.set(new Uint8Array(buf)); + return view.buffer; + } + } + function Body() { + this.bodyUsed = false; + this._initBody = function (body) { + this.bodyUsed = this.bodyUsed; + this._bodyInit = body; + if (!body) { + this._bodyText = ''; + } else if (typeof body === 'string') { + this._bodyText = body; + } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { + this._bodyBlob = body; + } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { + this._bodyFormData = body; + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this._bodyText = body.toString(); + } else if (support.arrayBuffer && support.blob && isDataView(body)) { + this._bodyArrayBuffer = bufferClone(body.buffer); + this._bodyInit = new Blob([this._bodyArrayBuffer]); + } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { + this._bodyArrayBuffer = bufferClone(body); + } else { + this._bodyText = body = Object.prototype.toString.call(body); + } + if (!this.headers.get('content-type')) { + if (typeof body === 'string') { + this.headers.set('content-type', 'text/plain;charset=UTF-8'); + } else if (this._bodyBlob && this._bodyBlob.type) { + this.headers.set('content-type', this._bodyBlob.type); + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + } + } + }; + if (support.blob) { + this.blob = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return Promise.resolve(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as blob'); + } else { + return Promise.resolve(new Blob([this._bodyText])); + } + }; + this.arrayBuffer = function () { + if (this._bodyArrayBuffer) { + var isConsumed = consumed(this); + if (isConsumed) { + return isConsumed; + } + if (ArrayBuffer.isView(this._bodyArrayBuffer)) { + return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)); + } else { + return Promise.resolve(this._bodyArrayBuffer); + } + } else { + return this.blob().then(readBlobAsArrayBuffer); + } + }; + } + this.text = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return readBlobAsText(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as text'); + } else { + return Promise.resolve(this._bodyText); + } + }; + if (support.formData) { + this.formData = function () { + return this.text().then(decode); + }; + } + this.json = function () { + return this.text().then(JSON.parse); + }; + return this; + } + + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + function normalizeMethod(method) { + var upcased = method.toUpperCase(); + return methods.indexOf(upcased) > -1 ? upcased : method; + } + function Request(input, options) { + if (!(this instanceof Request)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + options = options || {}; + var body = options.body; + if (input instanceof Request) { + if (input.bodyUsed) { + throw new TypeError('Already read'); + } + this.url = input.url; + this.credentials = input.credentials; + if (!options.headers) { + this.headers = new Headers(input.headers); + } + this.method = input.method; + this.mode = input.mode; + this.signal = input.signal; + if (!body && input._bodyInit != null) { + body = input._bodyInit; + input.bodyUsed = true; + } + } else { + this.url = String(input); + } + this.credentials = options.credentials || this.credentials || 'same-origin'; + if (options.headers || !this.headers) { + this.headers = new Headers(options.headers); + } + this.method = normalizeMethod(options.method || this.method || 'GET'); + this.mode = options.mode || this.mode || null; + this.signal = options.signal || this.signal; + this.referrer = null; + if ((this.method === 'GET' || this.method === 'HEAD') && body) { + throw new TypeError('Body not allowed for GET or HEAD requests'); + } + this._initBody(body); + if (this.method === 'GET' || this.method === 'HEAD') { + if (options.cache === 'no-store' || options.cache === 'no-cache') { + var reParamSearch = /([?&])_=[^&]*/; + if (reParamSearch.test(this.url)) { + this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); + } else { + var reQueryString = /\?/; + this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); + } + } + } + } + Request.prototype.clone = function () { + return new Request(this, { + body: this._bodyInit + }); + }; + function decode(body) { + var form = new FormData(); + body.trim().split('&').forEach(function (bytes) { + if (bytes) { + var split = bytes.split('='); + var name = split.shift().replace(/\+/g, ' '); + var value = split.join('=').replace(/\+/g, ' '); + form.append(decodeURIComponent(name), decodeURIComponent(value)); + } + }); + return form; + } + function parseHeaders(rawHeaders) { + var headers = new Headers(); + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + preProcessedHeaders.split('\r').map(function (header) { + return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header; + }).forEach(function (line) { + var parts = line.split(':'); + var key = parts.shift().trim(); + if (key) { + var value = parts.join(':').trim(); + headers.append(key, value); + } + }); + return headers; + } + Body.call(Request.prototype); + function Response(bodyInit, options) { + if (!(this instanceof Response)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + if (!options) { + options = {}; + } + this.type = 'default'; + this.status = options.status === undefined ? 200 : options.status; + this.ok = this.status >= 200 && this.status < 300; + this.statusText = options.statusText === undefined ? '' : '' + options.statusText; + this.headers = new Headers(options.headers); + this.url = options.url || ''; + this._initBody(bodyInit); + } + Body.call(Response.prototype); + Response.prototype.clone = function () { + return new Response(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new Headers(this.headers), + url: this.url + }); + }; + Response.error = function () { + var response = new Response(null, { + status: 0, + statusText: '' + }); + response.type = 'error'; + return response; + }; + var redirectStatuses = [301, 302, 303, 307, 308]; + Response.redirect = function (url, status) { + if (redirectStatuses.indexOf(status) === -1) { + throw new RangeError('Invalid status code'); + } + return new Response(null, { + status: status, + headers: { + location: url + } + }); + }; + exports.DOMException = global.DOMException; + try { + new exports.DOMException(); + } catch (err) { + exports.DOMException = function (message, name) { + this.message = message; + this.name = name; + var error = Error(message); + this.stack = error.stack; + }; + exports.DOMException.prototype = Object.create(Error.prototype); + exports.DOMException.prototype.constructor = exports.DOMException; + } + function fetch(input, init) { + return new Promise(function (resolve, reject) { + var request = new Request(input, init); + if (request.signal && request.signal.aborted) { + return reject(new exports.DOMException('Aborted', 'AbortError')); + } + var xhr = new XMLHttpRequest(); + function abortXhr() { + xhr.abort(); + } + xhr.onload = function () { + var options = { + status: xhr.status, + statusText: xhr.statusText, + headers: parseHeaders(xhr.getAllResponseHeaders() || '') + }; + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); + var body = 'response' in xhr ? xhr.response : xhr.responseText; + setTimeout(function () { + resolve(new Response(body, options)); + }, 0); + }; + xhr.onerror = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.ontimeout = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.onabort = function () { + setTimeout(function () { + reject(new exports.DOMException('Aborted', 'AbortError')); + }, 0); + }; + function fixUrl(url) { + try { + return url === '' && global.location.href ? global.location.href : url; + } catch (e) { + return url; + } + } + xhr.open(request.method, fixUrl(request.url), true); + if (request.credentials === 'include') { + xhr.withCredentials = true; + } else if (request.credentials === 'omit') { + xhr.withCredentials = false; + } + if ('responseType' in xhr) { + if (support.blob) { + xhr.responseType = 'blob'; + } else if (support.arrayBuffer && request.headers.get('Content-Type') && request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1) { + xhr.responseType = 'arraybuffer'; + } + } + if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { + Object.getOwnPropertyNames(init.headers).forEach(function (name) { + xhr.setRequestHeader(name, normalizeValue(init.headers[name])); + }); + } else { + request.headers.forEach(function (value, name) { + xhr.setRequestHeader(name, value); + }); + } + if (request.signal) { + request.signal.addEventListener('abort', abortXhr); + xhr.onreadystatechange = function () { + if (xhr.readyState === 4) { + request.signal.removeEventListener('abort', abortXhr); + } + }; + } + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); + }); + } + fetch.polyfill = true; + if (!global.fetch) { + global.fetch = fetch; + global.Headers = Headers; + global.Request = Request; + global.Response = Response; + } + exports.Headers = Headers; + exports.Request = Request; + exports.Response = Response; + exports.fetch = fetch; + Object.defineProperty(exports, '__esModule', { + value: true + }); + }); +},69,[],"node_modules/whatwg-fetch/dist/fetch.umd.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('LogBox'); + exports.default = _default; +},70,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeLogBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.parseComponentStack = parseComponentStack; + exports.parseInterpolation = parseInterpolation; + exports.parseLogBoxException = parseLogBoxException; + exports.parseLogBoxLog = parseLogBoxLog; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); + var _UTFSequence = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../UTFSequence")); + var _stringifySafe = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/stringifySafe")); + var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Core/Devtools/parseErrorStack")); + + var BABEL_TRANSFORM_ERROR_FORMAT = /^(?:TransformError )?(?:SyntaxError: |ReferenceError: )(.*): (.*) \((\d+):(\d+)\)\n\n([\s\S]+)/; + var BABEL_CODE_FRAME_ERROR_FORMAT = /^(?:TransformError )?(?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*):? (?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)(\/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?)\n([ >]{2}[\t-\r 0-9\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+ \|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+|\x1B(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/; + var METRO_ERROR_FORMAT = /^(?:InternalError Metro has encountered an error:) ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*) \(([0-9]+):([0-9]+)\)\n\n((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/; + var SUBSTITUTION = _UTFSequence.default.BOM + '%s'; + function parseInterpolation(args) { + var categoryParts = []; + var contentParts = []; + var substitutionOffsets = []; + var remaining = (0, _toConsumableArray2.default)(args); + if (typeof remaining[0] === 'string') { + var formatString = String(remaining.shift()); + var formatStringParts = formatString.split('%s'); + var substitutionCount = formatStringParts.length - 1; + var substitutions = remaining.splice(0, substitutionCount); + var categoryString = ''; + var contentString = ''; + var substitutionIndex = 0; + for (var formatStringPart of formatStringParts) { + categoryString += formatStringPart; + contentString += formatStringPart; + if (substitutionIndex < substitutionCount) { + if (substitutionIndex < substitutions.length) { + var substitution = typeof substitutions[substitutionIndex] === 'string' ? substitutions[substitutionIndex] : (0, _stringifySafe.default)(substitutions[substitutionIndex]); + substitutionOffsets.push({ + length: substitution.length, + offset: contentString.length + }); + categoryString += SUBSTITUTION; + contentString += substitution; + } else { + substitutionOffsets.push({ + length: 2, + offset: contentString.length + }); + categoryString += '%s'; + contentString += '%s'; + } + substitutionIndex++; + } + } + categoryParts.push(categoryString); + contentParts.push(contentString); + } + var remainingArgs = remaining.map(function (arg) { + return typeof arg === 'string' ? arg : (0, _stringifySafe.default)(arg); + }); + categoryParts.push.apply(categoryParts, (0, _toConsumableArray2.default)(remainingArgs)); + contentParts.push.apply(contentParts, (0, _toConsumableArray2.default)(remainingArgs)); + return { + category: categoryParts.join(' '), + message: { + content: contentParts.join(' '), + substitutions: substitutionOffsets + } + }; + } + function isComponentStack(consoleArgument) { + var isOldComponentStackFormat = / {4}in/.test(consoleArgument); + var isNewComponentStackFormat = / {4}at/.test(consoleArgument); + var isNewJSCComponentStackFormat = /@.*\n/.test(consoleArgument); + return isOldComponentStackFormat || isNewComponentStackFormat || isNewJSCComponentStackFormat; + } + function parseComponentStack(message) { + var stack = (0, _parseErrorStack.default)(message); + if (stack && stack.length > 0) { + return stack.map(function (frame) { + return { + content: frame.methodName, + collapse: frame.collapse || false, + fileName: frame.file == null ? 'unknown' : frame.file, + location: { + column: frame.column == null ? -1 : frame.column, + row: frame.lineNumber == null ? -1 : frame.lineNumber + } + }; + }); + } + return message.split(/\n {4}in /g).map(function (s) { + if (!s) { + return null; + } + var match = s.match(/(.*) \(at (.*\.js):([\d]+)\)/); + if (!match) { + return null; + } + var _match$slice = match.slice(1), + _match$slice2 = (0, _slicedToArray2.default)(_match$slice, 3), + content = _match$slice2[0], + fileName = _match$slice2[1], + row = _match$slice2[2]; + return { + content: content, + fileName: fileName, + location: { + column: -1, + row: parseInt(row, 10) + } + }; + }).filter(Boolean); + } + function parseLogBoxException(error) { + var message = error.originalMessage != null ? error.originalMessage : 'Unknown'; + var metroInternalError = message.match(METRO_ERROR_FORMAT); + if (metroInternalError) { + var _metroInternalError$s = metroInternalError.slice(1), + _metroInternalError$s2 = (0, _slicedToArray2.default)(_metroInternalError$s, 5), + content = _metroInternalError$s2[0], + fileName = _metroInternalError$s2[1], + row = _metroInternalError$s2[2], + column = _metroInternalError$s2[3], + codeFrame = _metroInternalError$s2[4]; + return { + level: 'fatal', + type: 'Metro Error', + stack: [], + isComponentError: false, + componentStack: [], + codeFrame: { + fileName: fileName, + location: { + row: parseInt(row, 10), + column: parseInt(column, 10) + }, + content: codeFrame + }, + message: { + content: content, + substitutions: [] + }, + category: fileName + "-" + row + "-" + column + }; + } + var babelTransformError = message.match(BABEL_TRANSFORM_ERROR_FORMAT); + if (babelTransformError) { + var _babelTransformError$ = babelTransformError.slice(1), + _babelTransformError$2 = (0, _slicedToArray2.default)(_babelTransformError$, 5), + _fileName = _babelTransformError$2[0], + _content = _babelTransformError$2[1], + _row = _babelTransformError$2[2], + _column = _babelTransformError$2[3], + _codeFrame = _babelTransformError$2[4]; + return { + level: 'syntax', + stack: [], + isComponentError: false, + componentStack: [], + codeFrame: { + fileName: _fileName, + location: { + row: parseInt(_row, 10), + column: parseInt(_column, 10) + }, + content: _codeFrame + }, + message: { + content: _content, + substitutions: [] + }, + category: _fileName + "-" + _row + "-" + _column + }; + } + var babelCodeFrameError = message.match(BABEL_CODE_FRAME_ERROR_FORMAT); + if (babelCodeFrameError) { + var _babelCodeFrameError$ = babelCodeFrameError.slice(1), + _babelCodeFrameError$2 = (0, _slicedToArray2.default)(_babelCodeFrameError$, 3), + _fileName2 = _babelCodeFrameError$2[0], + _content2 = _babelCodeFrameError$2[1], + _codeFrame2 = _babelCodeFrameError$2[2]; + return { + level: 'syntax', + stack: [], + isComponentError: false, + componentStack: [], + codeFrame: { + fileName: _fileName2, + location: null, + content: _codeFrame2 + }, + message: { + content: _content2, + substitutions: [] + }, + category: _fileName2 + "-" + 1 + "-" + 1 + }; + } + if (message.match(/^TransformError /)) { + return { + level: 'syntax', + stack: error.stack, + isComponentError: error.isComponentError, + componentStack: [], + message: { + content: message, + substitutions: [] + }, + category: message + }; + } + var componentStack = error.componentStack; + if (error.isFatal || error.isComponentError) { + return Object.assign({ + level: 'fatal', + stack: error.stack, + isComponentError: error.isComponentError, + componentStack: componentStack != null ? parseComponentStack(componentStack) : [] + }, parseInterpolation([message])); + } + if (componentStack != null) { + return Object.assign({ + level: 'error', + stack: error.stack, + isComponentError: error.isComponentError, + componentStack: parseComponentStack(componentStack) + }, parseInterpolation([message])); + } + + return Object.assign({ + level: 'error', + stack: error.stack, + isComponentError: error.isComponentError + }, parseLogBoxLog([message])); + } + function parseLogBoxLog(args) { + var message = args[0]; + var argsWithoutComponentStack = []; + var componentStack = []; + + if (typeof message === 'string' && message.slice(-2) === '%s' && args.length > 0) { + var lastArg = args[args.length - 1]; + if (typeof lastArg === 'string' && isComponentStack(lastArg)) { + argsWithoutComponentStack = args.slice(0, -1); + argsWithoutComponentStack[0] = message.slice(0, -2); + componentStack = parseComponentStack(lastArg); + } + } + if (componentStack.length === 0) { + for (var arg of args) { + if (typeof arg === 'string' && isComponentStack(arg)) { + var messageEndIndex = arg.search(/\n {4}(in|at) /); + if (messageEndIndex < 0) { + messageEndIndex = arg.search(/\n/); + } + if (messageEndIndex > 0) { + argsWithoutComponentStack.push(arg.slice(0, messageEndIndex)); + } + componentStack = parseComponentStack(arg); + } else { + argsWithoutComponentStack.push(arg); + } + } + } + return Object.assign({}, parseInterpolation(argsWithoutComponentStack), { + componentStack: componentStack + }); + } +},71,[3,19,6,72,26,56],"node_modules/react-native/Libraries/LogBox/Data/parseLogBoxLog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var UTFSequence = _$$_REQUIRE(_dependencyMap[0], "./Utilities/deepFreezeAndThrowOnMutationInDev")({ + 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", + NBSP: "\xA0", + PIZZA: "\uD83C\uDF55", + TRIANGLE_LEFT: "\u25C0", + TRIANGLE_RIGHT: "\u25B6" + }); + + module.exports = UTFSequence; +},72,[27],"node_modules/react-native/Libraries/UTFSequence.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-jsx-runtime.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-jsx-runtime.development.js"); + } +},73,[74,75],"node_modules/react/jsx-runtime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + var f = _$$_REQUIRE(_dependencyMap[0], "react"), + k = Symbol.for("react.element"), + l = Symbol.for("react.fragment"), + m = Object.prototype.hasOwnProperty, + n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, + p = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }; + function q(c, a, g) { + var b, + d = {}, + e = null, + h = null; + void 0 !== g && (e = "" + g); + void 0 !== a.key && (e = "" + a.key); + void 0 !== a.ref && (h = a.ref); + for (b in a) { + m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); + } + if (c && c.defaultProps) for (b in a = c.defaultProps, a) { + void 0 === d[b] && (d[b] = a[b]); + } + return { + $$typeof: k, + type: c, + key: e, + ref: h, + props: d, + _owner: n.current + }; + } + exports.Fragment = l; + exports.jsx = q; + exports.jsxs = q; +},74,[36],"node_modules/react/cjs/react-jsx-runtime.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + + var enableScopeAPI = false; + var enableCacheElement = false; + var enableTransitionTracing = false; + + var enableLegacyHidden = false; + + var enableDebugTracing = false; + + var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + var REACT_PORTAL_TYPE = Symbol.for('react.portal'); + var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); + var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); + var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); + var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); + var REACT_CONTEXT_TYPE = Symbol.for('react.context'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); + var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); + var REACT_MEMO_TYPE = Symbol.for('react.memo'); + var REACT_LAZY_TYPE = Symbol.for('react.lazy'); + var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + return null; + } + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning('error', format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + + var argsWithFormat = args.map(function (item) { + return String(item); + }); + + argsWithFormat.unshift('Warning: ' + format); + + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var REACT_MODULE_REFERENCE; + { + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); + } + function isValidElementType(type) { + if (typeof type === 'string' || typeof type === 'function') { + return true; + } + + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { + return true; + } + if (typeof type === 'object' && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { + return true; + } + } + return false; + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ''; + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName; + } + + function getContextName(type) { + return type.displayName || 'Context'; + } + + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + if (typeof type === 'string') { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + case REACT_PORTAL_TYPE: + return 'Portal'; + case REACT_PROFILER_TYPE: + return 'Profiler'; + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + '.Consumer'; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + '.Provider'; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || 'Memo'; + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + + } + } + + return null; + } + var assign = Object.assign; + + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() {} + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + + if (disabledDepth < 0) { + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); + } + } + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === undefined) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ''; + } + } + + return '\n' + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ''; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== undefined) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + + Error.prepareStackTrace = undefined; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher.current; + + ReactCurrentDispatcher.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function Fake() { + throw Error(); + }; + + Object.defineProperty(Fake.prototype, 'props', { + set: function set() { + throw Error(); + } + }); + if (typeof Reflect === 'object' && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === 'string') { + var sampleLines = sample.stack.split('\n'); + var controlLines = control.stack.split('\n'); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + + if (fn.displayName && _frame.includes('')) { + _frame = _frame.replace('', fn.displayName); + } + { + if (typeof fn === 'function') { + componentFrameCache.set(fn, _frame); + } + } + + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + + var name = fn ? fn.displayName || fn.name : ''; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; + { + if (typeof fn === 'function') { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ''; + } + if (typeof type === 'function') { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === 'string') { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame('Suspense'); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame('SuspenseList'); + } + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) {} + } + } + } + return ''; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + + try { + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); + err.name = 'Invariant Violation'; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error('Failed %s type: %s', location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + var isArrayImpl = Array.isArray; + + function isArray(a) { + return isArrayImpl(a); + } + + function typeName(value) { + { + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; + return type; + } + } + + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return '' + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value)); + return testStringCoercion(value); + } + } + } + + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown; + var specialPropRefWarningShown; + var didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== undefined; + } + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== undefined; + } + function warnIfStringRefCannotBeAutoConverted(config, self) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + function defineKeyPropWarningGetter(props, displayName) { + { + var warnAboutAccessingKey = function warnAboutAccessingKey() { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); + } + } + function defineRefPropWarningGetter(props, displayName) { + { + var warnAboutAccessingRef = function warnAboutAccessingRef() { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); + } + } + + var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { + var element = { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: ref, + props: props, + _owner: owner + }; + { + element._store = {}; + + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + return element; + }; + + function jsxDEV(type, config, maybeKey, source, self) { + { + var propName; + + var props = {}; + var key = null; + var ref = null; + + if (maybeKey !== undefined) { + { + checkKeyStringCoercion(maybeKey); + } + key = '' + maybeKey; + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = '' + config.key; + } + if (hasValidRef(config)) { + ref = config.ref; + warnIfStringRefCannotBeAutoConverted(config, self); + } + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + if (key || ref) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement$1(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + + function isValidElement(object) { + { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + } + function getDeclarationErrorAddendum() { + { + if (ReactCurrentOwner$1.current) { + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type); + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + return ''; + } + } + function getSourceInfoErrorAddendum(source) { + { + if (source !== undefined) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + return ''; + } + } + + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + { + var info = getDeclarationErrorAddendum(); + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info; + } + } + + function validateExplicitKey(element, parentType) { + { + if (!element._store || element._store.validated || element.key != null) { + return; + } + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + + var childOwner = ''; + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) { + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; + } + setCurrentlyValidatingElement$1(element); + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + + function validateChildKeys(node, parentType) { + { + if (typeof node !== 'object') { + return; + } + if (isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === 'function') { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + } + + function validatePropTypes(element) { + { + var type = element.type; + if (type === null || type === undefined || typeof type === 'string') { + return; + } + var propTypes; + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentNameFromType(type); + checkPropTypes(propTypes, element.props, 'prop', name, element); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + var _name = getComponentNameFromType(type); + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown'); + } + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } + } + } + + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== 'children' && key !== 'key') { + setCurrentlyValidatingElement$1(fragment); + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + setCurrentlyValidatingElement$1(null); + } + } + } + function jsxWithValidation(type, props, key, isStaticChildren, source, self) { + { + var validType = isValidElementType(type); + + if (!validType) { + var info = ''; + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendum(source); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + var typeString; + if (type === null) { + typeString = 'null'; + } else if (isArray(type)) { + typeString = 'array'; + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />"; + info = ' Did you accidentally export a JSX literal instead of a component?'; + } else { + typeString = typeof type; + } + error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + var element = jsxDEV(type, props, key, source, self); + + if (element == null) { + return element; + } + + if (validType) { + var children = props.children; + if (children !== undefined) { + if (isStaticChildren) { + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + validateChildKeys(children[i], type); + } + if (Object.freeze) { + Object.freeze(children); + } + } else { + error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.'); + } + } else { + validateChildKeys(children, type); + } + } + } + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + return element; + } + } + + function jsxWithValidationStatic(type, props, key) { + { + return jsxWithValidation(type, props, key, true); + } + } + function jsxWithValidationDynamic(type, props, key) { + { + return jsxWithValidation(type, props, key, false); + } + } + var jsx = jsxWithValidationDynamic; + + var jsxs = jsxWithValidationStatic; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.jsx = jsx; + exports.jsxs = jsxs; + })(); + } +},75,[36],"node_modules/react/cjs/react-jsx-runtime.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NativeModule = TurboModuleRegistry.getEnforcing('ExceptionsManager'); + var ExceptionsManager = { + reportFatalException: function reportFatalException(message, stack, exceptionId) { + NativeModule.reportFatalException(message, stack, exceptionId); + }, + reportSoftException: function reportSoftException(message, stack, exceptionId) { + NativeModule.reportSoftException(message, stack, exceptionId); + }, + updateExceptionMessage: function updateExceptionMessage(message, stack, exceptionId) { + NativeModule.updateExceptionMessage(message, stack, exceptionId); + }, + dismissRedbox: function dismissRedbox() { + if ("ios" !== 'ios' && NativeModule.dismissRedbox) { + NativeModule.dismissRedbox(); + } + }, + reportException: function reportException(data) { + if (NativeModule.reportException) { + NativeModule.reportException(data); + return; + } + if (data.isFatal) { + ExceptionsManager.reportFatalException(data.message, data.stack, data.id); + } else { + ExceptionsManager.reportSoftException(data.message, data.stack, data.id); + } + } + }; + var _default = ExceptionsManager; + exports.default = _default; +},76,[16],"node_modules/react-native/Libraries/Core/NativeExceptionsManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _global, _global$HermesInterna; + + if ((_global = global) != null && (_global$HermesInterna = _global.HermesInternal) != null && _global$HermesInterna.hasPromise != null && _global$HermesInterna.hasPromise()) { + var HermesPromise = global.Promise; + if (__DEV__) { + var _global$HermesInterna2; + if (typeof HermesPromise !== 'function') { + console.error('HermesPromise does not exist'); + } + (_global$HermesInterna2 = global.HermesInternal) == null ? void 0 : _global$HermesInterna2.enablePromiseRejectionTracker == null ? void 0 : _global$HermesInterna2.enablePromiseRejectionTracker(_$$_REQUIRE(_dependencyMap[0], "../promiseRejectionTrackingOptions").default); + } + } else { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('Promise', function () { + return _$$_REQUIRE(_dependencyMap[2], "../Promise"); + }); + } +},77,[78,99,100],"node_modules/react-native/Libraries/Core/polyfillPromise.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + + var rejectionTrackingOptions = { + allRejections: true, + onUnhandled: function onUnhandled(id) { + var _message; + var rejection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var message; + var stack; + + var stringValue = Object.prototype.toString.call(rejection); + if (stringValue === '[object Error]') { + message = Error.prototype.toString.call(rejection); + var error = rejection; + stack = error.stack; + } else { + try { + message = _$$_REQUIRE(_dependencyMap[0], "pretty-format")(rejection); + } catch (_unused) { + message = typeof rejection === 'string' ? rejection : JSON.stringify(rejection); + } + } + var warning = "Possible Unhandled Promise Rejection (id: " + id + "):\n" + (((_message = message) != null ? _message : '') + "\n") + (stack == null ? '' : stack); + console.warn(warning); + }, + onHandled: function onHandled(id) { + var warning = "Promise Rejection Handled (id: " + id + ")\n" + 'This means you can ignore any previous messages of the form ' + ("\"Possible Unhandled Promise Rejection (id: " + id + "):\""); + console.warn(warning); + } + }; + var _default = rejectionTrackingOptions; + exports.default = _default; +},78,[79],"node_modules/react-native/Libraries/promiseRejectionTrackingOptions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _ansiStyles = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "ansi-styles")); + var _AsymmetricMatcher = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./plugins/AsymmetricMatcher")); + var _ConvertAnsi = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./plugins/ConvertAnsi")); + var _DOMCollection = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./plugins/DOMCollection")); + var _DOMElement = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./plugins/DOMElement")); + var _Immutable = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./plugins/Immutable")); + var _ReactElement = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "./plugins/ReactElement")); + var _ReactTestComponent = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "./plugins/ReactTestComponent")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + var toString = Object.prototype.toString; + var toISOString = Date.prototype.toISOString; + var errorToString = Error.prototype.toString; + var regExpToString = RegExp.prototype.toString; + + var getConstructorName = function getConstructorName(val) { + return typeof val.constructor === 'function' && val.constructor.name || 'Object'; + }; + + var isWindow = function isWindow(val) { + return typeof window !== 'undefined' && val === window; + }; + var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; + var NEWLINE_REGEXP = /\n/gi; + var PrettyFormatPluginError = function (_Error) { + _$$_REQUIRE(_dependencyMap[10], "@babel/runtime/helpers/inherits")(PrettyFormatPluginError, _Error); + var _super = _createSuper(PrettyFormatPluginError); + function PrettyFormatPluginError(message, stack) { + var _this; + _$$_REQUIRE(_dependencyMap[11], "@babel/runtime/helpers/classCallCheck")(this, PrettyFormatPluginError); + _this = _super.call(this, message); + _this.stack = stack; + _this.name = _this.constructor.name; + return _this; + } + return _$$_REQUIRE(_dependencyMap[12], "@babel/runtime/helpers/createClass")(PrettyFormatPluginError); + }(_$$_REQUIRE(_dependencyMap[13], "@babel/runtime/helpers/wrapNativeSuper")(Error)); + function isToStringedArrayType(toStringed) { + return toStringed === '[object Array]' || toStringed === '[object ArrayBuffer]' || toStringed === '[object DataView]' || toStringed === '[object Float32Array]' || toStringed === '[object Float64Array]' || toStringed === '[object Int8Array]' || toStringed === '[object Int16Array]' || toStringed === '[object Int32Array]' || toStringed === '[object Uint8Array]' || toStringed === '[object Uint8ClampedArray]' || toStringed === '[object Uint16Array]' || toStringed === '[object Uint32Array]'; + } + function printNumber(val) { + return Object.is(val, -0) ? '-0' : String(val); + } + function printBigInt(val) { + return String(val + "n"); + } + function printFunction(val, printFunctionName) { + if (!printFunctionName) { + return '[Function]'; + } + return '[Function ' + (val.name || 'anonymous') + ']'; + } + function printSymbol(val) { + return String(val).replace(SYMBOL_REGEXP, 'Symbol($1)'); + } + function printError(val) { + return '[' + errorToString.call(val) + ']'; + } + + function printBasicValue(val, printFunctionName, escapeRegex, escapeString) { + if (val === true || val === false) { + return '' + val; + } + if (val === undefined) { + return 'undefined'; + } + if (val === null) { + return 'null'; + } + var typeOf = typeof val; + if (typeOf === 'number') { + return printNumber(val); + } + if (typeOf === 'bigint') { + return printBigInt(val); + } + if (typeOf === 'string') { + if (escapeString) { + return '"' + val.replace(/"|\\/g, '\\$&') + '"'; + } + return '"' + val + '"'; + } + if (typeOf === 'function') { + return printFunction(val, printFunctionName); + } + if (typeOf === 'symbol') { + return printSymbol(val); + } + var toStringed = toString.call(val); + if (toStringed === '[object WeakMap]') { + return 'WeakMap {}'; + } + if (toStringed === '[object WeakSet]') { + return 'WeakSet {}'; + } + if (toStringed === '[object Function]' || toStringed === '[object GeneratorFunction]') { + return printFunction(val, printFunctionName); + } + if (toStringed === '[object Symbol]') { + return printSymbol(val); + } + if (toStringed === '[object Date]') { + return isNaN(+val) ? 'Date { NaN }' : toISOString.call(val); + } + if (toStringed === '[object Error]') { + return printError(val); + } + if (toStringed === '[object RegExp]') { + if (escapeRegex) { + return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + } + return regExpToString.call(val); + } + if (val instanceof Error) { + return printError(val); + } + return null; + } + + function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) { + if (refs.indexOf(val) !== -1) { + return '[Circular]'; + } + refs = refs.slice(); + refs.push(val); + var hitMaxDepth = ++depth > config.maxDepth; + var min = config.min; + if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === 'function' && !hasCalledToJSON) { + return printer(val.toJSON(), config, indentation, depth, refs, true); + } + var toStringed = toString.call(val); + if (toStringed === '[object Arguments]') { + return hitMaxDepth ? '[Arguments]' : (min ? '' : 'Arguments ') + '[' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printListItems)(val, config, indentation, depth, refs, printer) + ']'; + } + if (isToStringedArrayType(toStringed)) { + return hitMaxDepth ? '[' + val.constructor.name + ']' : (min ? '' : val.constructor.name + ' ') + '[' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printListItems)(val, config, indentation, depth, refs, printer) + ']'; + } + if (toStringed === '[object Map]') { + return hitMaxDepth ? '[Map]' : 'Map {' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, ' => ') + '}'; + } + if (toStringed === '[object Set]') { + return hitMaxDepth ? '[Set]' : 'Set {' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + '}'; + } + + return hitMaxDepth || isWindow(val) ? '[' + getConstructorName(val) + ']' : (min ? '' : getConstructorName(val) + ' ') + '{' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printObjectProperties)(val, config, indentation, depth, refs, printer) + '}'; + } + function isNewPlugin(plugin) { + return plugin.serialize != null; + } + function printPlugin(plugin, val, config, indentation, depth, refs) { + var printed; + try { + printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, function (valChild) { + return printer(valChild, config, indentation, depth, refs); + }, function (str) { + var indentationNext = indentation + config.indent; + return indentationNext + str.replace(NEWLINE_REGEXP, '\n' + indentationNext); + }, { + edgeSpacing: config.spacingOuter, + min: config.min, + spacing: config.spacingInner + }, config.colors); + } catch (error) { + throw new PrettyFormatPluginError(error.message, error.stack); + } + if (typeof printed !== 'string') { + throw new Error("pretty-format: Plugin must return type \"string\" but instead returned \"" + typeof printed + "\"."); + } + return printed; + } + function findPlugin(plugins, val) { + for (var p = 0; p < plugins.length; p++) { + try { + if (plugins[p].test(val)) { + return plugins[p]; + } + } catch (error) { + throw new PrettyFormatPluginError(error.message, error.stack); + } + } + return null; + } + function printer(val, config, indentation, depth, refs, hasCalledToJSON) { + var plugin = findPlugin(config.plugins, val); + if (plugin !== null) { + return printPlugin(plugin, val, config, indentation, depth, refs); + } + var basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString); + if (basicResult !== null) { + return basicResult; + } + return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON); + } + var DEFAULT_THEME = { + comment: 'gray', + content: 'reset', + prop: 'yellow', + tag: 'cyan', + value: 'green' + }; + var DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME); + var DEFAULT_OPTIONS = { + callToJSON: true, + escapeRegex: false, + escapeString: true, + highlight: false, + indent: 2, + maxDepth: Infinity, + min: false, + plugins: [], + printFunctionName: true, + theme: DEFAULT_THEME + }; + function validateOptions(options) { + Object.keys(options).forEach(function (key) { + if (!DEFAULT_OPTIONS.hasOwnProperty(key)) { + throw new Error("pretty-format: Unknown option \"" + key + "\"."); + } + }); + if (options.min && options.indent !== undefined && options.indent !== 0) { + throw new Error('pretty-format: Options "min" and "indent" cannot be used together.'); + } + if (options.theme !== undefined) { + if (options.theme === null) { + throw new Error("pretty-format: Option \"theme\" must not be null."); + } + if (typeof options.theme !== 'object') { + throw new Error("pretty-format: Option \"theme\" must be of type \"object\" but instead received \"" + typeof options.theme + "\"."); + } + } + } + var getColorsHighlight = function getColorsHighlight(options) { + return DEFAULT_THEME_KEYS.reduce(function (colors, key) { + var value = options.theme && options.theme[key] !== undefined ? options.theme[key] : DEFAULT_THEME[key]; + var color = value && _ansiStyles.default[value]; + if (color && typeof color.close === 'string' && typeof color.open === 'string') { + colors[key] = color; + } else { + throw new Error("pretty-format: Option \"theme\" has a key \"" + key + "\" whose value \"" + value + "\" is undefined in ansi-styles."); + } + return colors; + }, Object.create(null)); + }; + var getColorsEmpty = function getColorsEmpty() { + return DEFAULT_THEME_KEYS.reduce(function (colors, key) { + colors[key] = { + close: '', + open: '' + }; + return colors; + }, Object.create(null)); + }; + var getPrintFunctionName = function getPrintFunctionName(options) { + return options && options.printFunctionName !== undefined ? options.printFunctionName : DEFAULT_OPTIONS.printFunctionName; + }; + var getEscapeRegex = function getEscapeRegex(options) { + return options && options.escapeRegex !== undefined ? options.escapeRegex : DEFAULT_OPTIONS.escapeRegex; + }; + var getEscapeString = function getEscapeString(options) { + return options && options.escapeString !== undefined ? options.escapeString : DEFAULT_OPTIONS.escapeString; + }; + var getConfig = function getConfig(options) { + return { + callToJSON: options && options.callToJSON !== undefined ? options.callToJSON : DEFAULT_OPTIONS.callToJSON, + colors: options && options.highlight ? getColorsHighlight(options) : getColorsEmpty(), + escapeRegex: getEscapeRegex(options), + escapeString: getEscapeString(options), + indent: options && options.min ? '' : createIndent(options && options.indent !== undefined ? options.indent : DEFAULT_OPTIONS.indent), + maxDepth: options && options.maxDepth !== undefined ? options.maxDepth : DEFAULT_OPTIONS.maxDepth, + min: options && options.min !== undefined ? options.min : DEFAULT_OPTIONS.min, + plugins: options && options.plugins !== undefined ? options.plugins : DEFAULT_OPTIONS.plugins, + printFunctionName: getPrintFunctionName(options), + spacingInner: options && options.min ? ' ' : '\n', + spacingOuter: options && options.min ? '' : '\n' + }; + }; + function createIndent(indent) { + return new Array(indent + 1).join(' '); + } + + function prettyFormat(val, options) { + if (options) { + validateOptions(options); + if (options.plugins) { + var plugin = findPlugin(options.plugins, val); + if (plugin !== null) { + return printPlugin(plugin, val, getConfig(options), '', 0, []); + } + } + } + var basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options)); + if (basicResult !== null) { + return basicResult; + } + return printComplexValue(val, getConfig(options), '', 0, []); + } + prettyFormat.plugins = { + AsymmetricMatcher: _AsymmetricMatcher.default, + ConvertAnsi: _ConvertAnsi.default, + DOMCollection: _DOMCollection.default, + DOMElement: _DOMElement.default, + Immutable: _Immutable.default, + ReactElement: _ReactElement.default, + ReactTestComponent: _ReactTestComponent.default + }; + module.exports = prettyFormat; +},79,[46,47,80,85,87,89,90,93,94,98,50,12,13,52,86],"node_modules/pretty-format/build/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var wrapAnsi16 = function wrapAnsi16(fn, offset) { + return function () { + var code = fn.apply(void 0, arguments); + return "\x1B[" + (code + offset) + "m"; + }; + }; + var wrapAnsi256 = function wrapAnsi256(fn, offset) { + return function () { + var code = fn.apply(void 0, arguments); + return "\x1B[" + (38 + offset) + ";5;" + code + "m"; + }; + }; + var wrapAnsi16m = function wrapAnsi16m(fn, offset) { + return function () { + var rgb = fn.apply(void 0, arguments); + return "\x1B[" + (38 + offset) + ";2;" + rgb[0] + ";" + rgb[1] + ";" + rgb[2] + "m"; + }; + }; + var ansi2ansi = function ansi2ansi(n) { + return n; + }; + var rgb2rgb = function rgb2rgb(r, g, b) { + return [r, g, b]; + }; + var setLazyProperty = function setLazyProperty(object, property, _get) { + Object.defineProperty(object, property, { + get: function get() { + var value = _get(); + Object.defineProperty(object, property, { + value: value, + enumerable: true, + configurable: true + }); + return value; + }, + enumerable: true, + configurable: true + }); + }; + + var colorConvert; + var makeDynamicStyles = function makeDynamicStyles(wrap, targetSpace, identity, isBackground) { + if (colorConvert === undefined) { + colorConvert = _$$_REQUIRE(_dependencyMap[0], "color-convert"); + } + var offset = isBackground ? 10 : 0; + var styles = {}; + for (var _ref of Object.entries(colorConvert)) { + var _ref2 = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")(_ref, 2); + var sourceSpace = _ref2[0]; + var suite = _ref2[1]; + var name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace; + if (sourceSpace === targetSpace) { + styles[name] = wrap(identity, offset); + } else if (typeof suite === 'object') { + styles[name] = wrap(suite[targetSpace], offset); + } + } + return styles; + }; + function assembleStyles() { + var codes = new Map(); + var styles = { + modifier: { + reset: [0, 0], + bold: [1, 22], + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + color: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + blackBright: [90, 39], + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] + }, + bgColor: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49], + bgBlackBright: [100, 49], + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] + } + }; + + styles.color.gray = styles.color.blackBright; + styles.bgColor.bgGray = styles.bgColor.bgBlackBright; + styles.color.grey = styles.color.blackBright; + styles.bgColor.bgGrey = styles.bgColor.bgBlackBright; + for (var _ref3 of Object.entries(styles)) { + var _ref4 = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")(_ref3, 2); + var groupName = _ref4[0]; + var group = _ref4[1]; + for (var _ref5 of Object.entries(group)) { + var _ref6 = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")(_ref5, 2); + var styleName = _ref6[0]; + var style = _ref6[1]; + styles[styleName] = { + open: "\x1B[" + style[0] + "m", + close: "\x1B[" + style[1] + "m" + }; + group[styleName] = styles[styleName]; + codes.set(style[0], style[1]); + } + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + } + Object.defineProperty(styles, 'codes', { + value: codes, + enumerable: false + }); + styles.color.close = "\x1B[39m"; + styles.bgColor.close = "\x1B[49m"; + setLazyProperty(styles.color, 'ansi', function () { + return makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false); + }); + setLazyProperty(styles.color, 'ansi256', function () { + return makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false); + }); + setLazyProperty(styles.color, 'ansi16m', function () { + return makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false); + }); + setLazyProperty(styles.bgColor, 'ansi', function () { + return makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true); + }); + setLazyProperty(styles.bgColor, 'ansi256', function () { + return makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true); + }); + setLazyProperty(styles.bgColor, 'ansi16m', function () { + return makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true); + }); + return styles; + } + + Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles + }); +},80,[81,19],"node_modules/ansi-styles/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var convert = {}; + var models = Object.keys(_$$_REQUIRE(_dependencyMap[0], "./conversions")); + function wrapRaw(fn) { + var wrappedFn = function wrappedFn() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + var arg0 = args[0]; + if (arg0 === undefined || arg0 === null) { + return arg0; + } + if (arg0.length > 1) { + args = arg0; + } + return fn(args); + }; + + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } + return wrappedFn; + } + function wrapRounded(fn) { + var wrappedFn = function wrappedFn() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + var arg0 = args[0]; + if (arg0 === undefined || arg0 === null) { + return arg0; + } + if (arg0.length > 1) { + args = arg0; + } + var result = fn(args); + + if (typeof result === 'object') { + for (var len = result.length, i = 0; i < len; i++) { + result[i] = Math.round(result[i]); + } + } + return result; + }; + + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } + return wrappedFn; + } + models.forEach(function (fromModel) { + convert[fromModel] = {}; + Object.defineProperty(convert[fromModel], 'channels', { + value: _$$_REQUIRE(_dependencyMap[0], "./conversions")[fromModel].channels + }); + Object.defineProperty(convert[fromModel], 'labels', { + value: _$$_REQUIRE(_dependencyMap[0], "./conversions")[fromModel].labels + }); + var routes = _$$_REQUIRE(_dependencyMap[1], "./route")(fromModel); + var routeModels = Object.keys(routes); + routeModels.forEach(function (toModel) { + var fn = routes[toModel]; + convert[fromModel][toModel] = wrapRounded(fn); + convert[fromModel][toModel].raw = wrapRaw(fn); + }); + }); + module.exports = convert; +},81,[82,84],"node_modules/color-convert/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var reverseKeywords = {}; + for (var key of Object.keys(_$$_REQUIRE(_dependencyMap[0], "color-name"))) { + reverseKeywords[_$$_REQUIRE(_dependencyMap[0], "color-name")[key]] = key; + } + var convert = { + rgb: { + channels: 3, + labels: 'rgb' + }, + hsl: { + channels: 3, + labels: 'hsl' + }, + hsv: { + channels: 3, + labels: 'hsv' + }, + hwb: { + channels: 3, + labels: 'hwb' + }, + cmyk: { + channels: 4, + labels: 'cmyk' + }, + xyz: { + channels: 3, + labels: 'xyz' + }, + lab: { + channels: 3, + labels: 'lab' + }, + lch: { + channels: 3, + labels: 'lch' + }, + hex: { + channels: 1, + labels: ['hex'] + }, + keyword: { + channels: 1, + labels: ['keyword'] + }, + ansi16: { + channels: 1, + labels: ['ansi16'] + }, + ansi256: { + channels: 1, + labels: ['ansi256'] + }, + hcg: { + channels: 3, + labels: ['h', 'c', 'g'] + }, + apple: { + channels: 3, + labels: ['r16', 'g16', 'b16'] + }, + gray: { + channels: 1, + labels: ['gray'] + } + }; + module.exports = convert; + + for (var model of Object.keys(convert)) { + if (!('channels' in convert[model])) { + throw new Error('missing channels property: ' + model); + } + if (!('labels' in convert[model])) { + throw new Error('missing channel labels property: ' + model); + } + if (convert[model].labels.length !== convert[model].channels) { + throw new Error('channel and label counts mismatch: ' + model); + } + var _convert$model = convert[model], + channels = _convert$model.channels, + labels = _convert$model.labels; + delete convert[model].channels; + delete convert[model].labels; + Object.defineProperty(convert[model], 'channels', { + value: channels + }); + Object.defineProperty(convert[model], 'labels', { + value: labels + }); + } + convert.rgb.hsl = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h; + var s; + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; + } + h = Math.min(h * 60, 360); + if (h < 0) { + h += 360; + } + var l = (min + max) / 2; + if (max === min) { + s = 0; + } else if (l <= 0.5) { + s = delta / (max + min); + } else { + s = delta / (2 - max - min); + } + return [h, s * 100, l * 100]; + }; + convert.rgb.hsv = function (rgb) { + var rdif; + var gdif; + var bdif; + var h; + var s; + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var v = Math.max(r, g, b); + var diff = v - Math.min(r, g, b); + var diffc = function diffc(c) { + return (v - c) / 6 / diff + 1 / 2; + }; + if (diff === 0) { + h = 0; + s = 0; + } else { + s = diff / v; + rdif = diffc(r); + gdif = diffc(g); + bdif = diffc(b); + if (r === v) { + h = bdif - gdif; + } else if (g === v) { + h = 1 / 3 + rdif - bdif; + } else if (b === v) { + h = 2 / 3 + gdif - rdif; + } + if (h < 0) { + h += 1; + } else if (h > 1) { + h -= 1; + } + } + return [h * 360, s * 100, v * 100]; + }; + convert.rgb.hwb = function (rgb) { + var r = rgb[0]; + var g = rgb[1]; + var b = rgb[2]; + var h = convert.rgb.hsl(rgb)[0]; + var w = 1 / 255 * Math.min(r, Math.min(g, b)); + b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); + return [h, w * 100, b * 100]; + }; + convert.rgb.cmyk = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var k = Math.min(1 - r, 1 - g, 1 - b); + var c = (1 - r - k) / (1 - k) || 0; + var m = (1 - g - k) / (1 - k) || 0; + var y = (1 - b - k) / (1 - k) || 0; + return [c * 100, m * 100, y * 100, k * 100]; + }; + function comparativeDistance(x, y) { + return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2); + } + convert.rgb.keyword = function (rgb) { + var reversed = reverseKeywords[rgb]; + if (reversed) { + return reversed; + } + var currentClosestDistance = Infinity; + var currentClosestKeyword; + for (var keyword of Object.keys(_$$_REQUIRE(_dependencyMap[0], "color-name"))) { + var value = _$$_REQUIRE(_dependencyMap[0], "color-name")[keyword]; + + var distance = comparativeDistance(rgb, value); + + if (distance < currentClosestDistance) { + currentClosestDistance = distance; + currentClosestKeyword = keyword; + } + } + return currentClosestKeyword; + }; + convert.keyword.rgb = function (keyword) { + return _$$_REQUIRE(_dependencyMap[0], "color-name")[keyword]; + }; + convert.rgb.xyz = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + + r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92; + g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92; + b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92; + var x = r * 0.4124 + g * 0.3576 + b * 0.1805; + var y = r * 0.2126 + g * 0.7152 + b * 0.0722; + var z = r * 0.0193 + g * 0.1192 + b * 0.9505; + return [x * 100, y * 100, z * 100]; + }; + convert.rgb.lab = function (rgb) { + var xyz = convert.rgb.xyz(rgb); + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + x /= 95.047; + y /= 100; + z /= 108.883; + x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; + y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; + z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + var l = 116 * y - 16; + var a = 500 * (x - y); + var b = 200 * (y - z); + return [l, a, b]; + }; + convert.hsl.rgb = function (hsl) { + var h = hsl[0] / 360; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var t2; + var t3; + var val; + if (s === 0) { + val = l * 255; + return [val, val, val]; + } + if (l < 0.5) { + t2 = l * (1 + s); + } else { + t2 = l + s - l * s; + } + var t1 = 2 * l - t2; + var rgb = [0, 0, 0]; + for (var i = 0; i < 3; i++) { + t3 = h + 1 / 3 * -(i - 1); + if (t3 < 0) { + t3++; + } + if (t3 > 1) { + t3--; + } + if (6 * t3 < 1) { + val = t1 + (t2 - t1) * 6 * t3; + } else if (2 * t3 < 1) { + val = t2; + } else if (3 * t3 < 2) { + val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; + } else { + val = t1; + } + rgb[i] = val * 255; + } + return rgb; + }; + convert.hsl.hsv = function (hsl) { + var h = hsl[0]; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var smin = s; + var lmin = Math.max(l, 0.01); + l *= 2; + s *= l <= 1 ? l : 2 - l; + smin *= lmin <= 1 ? lmin : 2 - lmin; + var v = (l + s) / 2; + var sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s); + return [h, sv * 100, v * 100]; + }; + convert.hsv.rgb = function (hsv) { + var h = hsv[0] / 60; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var hi = Math.floor(h) % 6; + var f = h - Math.floor(h); + var p = 255 * v * (1 - s); + var q = 255 * v * (1 - s * f); + var t = 255 * v * (1 - s * (1 - f)); + v *= 255; + switch (hi) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; + } + }; + convert.hsv.hsl = function (hsv) { + var h = hsv[0]; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var vmin = Math.max(v, 0.01); + var sl; + var l; + l = (2 - s) * v; + var lmin = (2 - s) * vmin; + sl = s * vmin; + sl /= lmin <= 1 ? lmin : 2 - lmin; + sl = sl || 0; + l /= 2; + return [h, sl * 100, l * 100]; + }; + + convert.hwb.rgb = function (hwb) { + var h = hwb[0] / 360; + var wh = hwb[1] / 100; + var bl = hwb[2] / 100; + var ratio = wh + bl; + var f; + + if (ratio > 1) { + wh /= ratio; + bl /= ratio; + } + var i = Math.floor(6 * h); + var v = 1 - bl; + f = 6 * h - i; + if ((i & 0x01) !== 0) { + f = 1 - f; + } + var n = wh + f * (v - wh); + + var r; + var g; + var b; + switch (i) { + default: + case 6: + case 0: + r = v; + g = n; + b = wh; + break; + case 1: + r = n; + g = v; + b = wh; + break; + case 2: + r = wh; + g = v; + b = n; + break; + case 3: + r = wh; + g = n; + b = v; + break; + case 4: + r = n; + g = wh; + b = v; + break; + case 5: + r = v; + g = wh; + b = n; + break; + } + + return [r * 255, g * 255, b * 255]; + }; + convert.cmyk.rgb = function (cmyk) { + var c = cmyk[0] / 100; + var m = cmyk[1] / 100; + var y = cmyk[2] / 100; + var k = cmyk[3] / 100; + var r = 1 - Math.min(1, c * (1 - k) + k); + var g = 1 - Math.min(1, m * (1 - k) + k); + var b = 1 - Math.min(1, y * (1 - k) + k); + return [r * 255, g * 255, b * 255]; + }; + convert.xyz.rgb = function (xyz) { + var x = xyz[0] / 100; + var y = xyz[1] / 100; + var z = xyz[2] / 100; + var r; + var g; + var b; + r = x * 3.2406 + y * -1.5372 + z * -0.4986; + g = x * -0.9689 + y * 1.8758 + z * 0.0415; + b = x * 0.0557 + y * -0.2040 + z * 1.0570; + + r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92; + g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92; + b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92; + r = Math.min(Math.max(0, r), 1); + g = Math.min(Math.max(0, g), 1); + b = Math.min(Math.max(0, b), 1); + return [r * 255, g * 255, b * 255]; + }; + convert.xyz.lab = function (xyz) { + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + x /= 95.047; + y /= 100; + z /= 108.883; + x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; + y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; + z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + var l = 116 * y - 16; + var a = 500 * (x - y); + var b = 200 * (y - z); + return [l, a, b]; + }; + convert.lab.xyz = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var x; + var y; + var z; + y = (l + 16) / 116; + x = a / 500 + y; + z = y - b / 200; + var y2 = Math.pow(y, 3); + var x2 = Math.pow(x, 3); + var z2 = Math.pow(z, 3); + y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; + x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; + z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; + x *= 95.047; + y *= 100; + z *= 108.883; + return [x, y, z]; + }; + convert.lab.lch = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var h; + var hr = Math.atan2(b, a); + h = hr * 360 / 2 / Math.PI; + if (h < 0) { + h += 360; + } + var c = Math.sqrt(a * a + b * b); + return [l, c, h]; + }; + convert.lch.lab = function (lch) { + var l = lch[0]; + var c = lch[1]; + var h = lch[2]; + var hr = h / 360 * 2 * Math.PI; + var a = c * Math.cos(hr); + var b = c * Math.sin(hr); + return [l, a, b]; + }; + convert.rgb.ansi16 = function (args) { + var saturation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var _args = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")(args, 3), + r = _args[0], + g = _args[1], + b = _args[2]; + var value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; + + value = Math.round(value / 50); + if (value === 0) { + return 30; + } + var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255)); + if (value === 2) { + ansi += 60; + } + return ansi; + }; + convert.hsv.ansi16 = function (args) { + return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); + }; + convert.rgb.ansi256 = function (args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + + if (r === g && g === b) { + if (r < 8) { + return 16; + } + if (r > 248) { + return 231; + } + return Math.round((r - 8) / 247 * 24) + 232; + } + var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5); + return ansi; + }; + convert.ansi16.rgb = function (args) { + var color = args % 10; + + if (color === 0 || color === 7) { + if (args > 50) { + color += 3.5; + } + color = color / 10.5 * 255; + return [color, color, color]; + } + var mult = (~~(args > 50) + 1) * 0.5; + var r = (color & 1) * mult * 255; + var g = (color >> 1 & 1) * mult * 255; + var b = (color >> 2 & 1) * mult * 255; + return [r, g, b]; + }; + convert.ansi256.rgb = function (args) { + if (args >= 232) { + var c = (args - 232) * 10 + 8; + return [c, c, c]; + } + args -= 16; + var rem; + var r = Math.floor(args / 36) / 5 * 255; + var g = Math.floor((rem = args % 36) / 6) / 5 * 255; + var b = rem % 6 / 5 * 255; + return [r, g, b]; + }; + convert.rgb.hex = function (args) { + var integer = ((Math.round(args[0]) & 0xFF) << 16) + ((Math.round(args[1]) & 0xFF) << 8) + (Math.round(args[2]) & 0xFF); + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; + }; + convert.hex.rgb = function (args) { + var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match) { + return [0, 0, 0]; + } + var colorString = match[0]; + if (match[0].length === 3) { + colorString = colorString.split('').map(function (char) { + return char + char; + }).join(''); + } + var integer = parseInt(colorString, 16); + var r = integer >> 16 & 0xFF; + var g = integer >> 8 & 0xFF; + var b = integer & 0xFF; + return [r, g, b]; + }; + convert.rgb.hcg = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var max = Math.max(Math.max(r, g), b); + var min = Math.min(Math.min(r, g), b); + var chroma = max - min; + var grayscale; + var hue; + if (chroma < 1) { + grayscale = min / (1 - chroma); + } else { + grayscale = 0; + } + if (chroma <= 0) { + hue = 0; + } else if (max === r) { + hue = (g - b) / chroma % 6; + } else if (max === g) { + hue = 2 + (b - r) / chroma; + } else { + hue = 4 + (r - g) / chroma; + } + hue /= 6; + hue %= 1; + return [hue * 360, chroma * 100, grayscale * 100]; + }; + convert.hsl.hcg = function (hsl) { + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var c = l < 0.5 ? 2.0 * s * l : 2.0 * s * (1.0 - l); + var f = 0; + if (c < 1.0) { + f = (l - 0.5 * c) / (1.0 - c); + } + return [hsl[0], c * 100, f * 100]; + }; + convert.hsv.hcg = function (hsv) { + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var c = s * v; + var f = 0; + if (c < 1.0) { + f = (v - c) / (1 - c); + } + return [hsv[0], c * 100, f * 100]; + }; + convert.hcg.rgb = function (hcg) { + var h = hcg[0] / 360; + var c = hcg[1] / 100; + var g = hcg[2] / 100; + if (c === 0.0) { + return [g * 255, g * 255, g * 255]; + } + var pure = [0, 0, 0]; + var hi = h % 1 * 6; + var v = hi % 1; + var w = 1 - v; + var mg = 0; + + switch (Math.floor(hi)) { + case 0: + pure[0] = 1; + pure[1] = v; + pure[2] = 0; + break; + case 1: + pure[0] = w; + pure[1] = 1; + pure[2] = 0; + break; + case 2: + pure[0] = 0; + pure[1] = 1; + pure[2] = v; + break; + case 3: + pure[0] = 0; + pure[1] = w; + pure[2] = 1; + break; + case 4: + pure[0] = v; + pure[1] = 0; + pure[2] = 1; + break; + default: + pure[0] = 1; + pure[1] = 0; + pure[2] = w; + } + + mg = (1.0 - c) * g; + return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255]; + }; + convert.hcg.hsv = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1.0 - c); + var f = 0; + if (v > 0.0) { + f = c / v; + } + return [hcg[0], f * 100, v * 100]; + }; + convert.hcg.hsl = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var l = g * (1.0 - c) + 0.5 * c; + var s = 0; + if (l > 0.0 && l < 0.5) { + s = c / (2 * l); + } else if (l >= 0.5 && l < 1.0) { + s = c / (2 * (1 - l)); + } + return [hcg[0], s * 100, l * 100]; + }; + convert.hcg.hwb = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1.0 - c); + return [hcg[0], (v - c) * 100, (1 - v) * 100]; + }; + convert.hwb.hcg = function (hwb) { + var w = hwb[1] / 100; + var b = hwb[2] / 100; + var v = 1 - b; + var c = v - w; + var g = 0; + if (c < 1) { + g = (v - c) / (1 - c); + } + return [hwb[0], c * 100, g * 100]; + }; + convert.apple.rgb = function (apple) { + return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255]; + }; + convert.rgb.apple = function (rgb) { + return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535]; + }; + convert.gray.rgb = function (args) { + return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; + }; + convert.gray.hsl = function (args) { + return [0, 0, args[0]]; + }; + convert.gray.hsv = convert.gray.hsl; + convert.gray.hwb = function (gray) { + return [0, 100, gray[0]]; + }; + convert.gray.cmyk = function (gray) { + return [0, 0, 0, gray[0]]; + }; + convert.gray.lab = function (gray) { + return [gray[0], 0, 0]; + }; + convert.gray.hex = function (gray) { + var val = Math.round(gray[0] / 100 * 255) & 0xFF; + var integer = (val << 16) + (val << 8) + val; + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; + }; + convert.rgb.gray = function (rgb) { + var val = (rgb[0] + rgb[1] + rgb[2]) / 3; + return [val / 255 * 100]; + }; +},82,[83,19],"node_modules/color-convert/conversions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] + }; +},83,[],"node_modules/color-name/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + function buildGraph() { + var graph = {}; + var models = Object.keys(_$$_REQUIRE(_dependencyMap[0], "./conversions")); + for (var len = models.length, i = 0; i < len; i++) { + graph[models[i]] = { + distance: -1, + parent: null + }; + } + return graph; + } + + function deriveBFS(fromModel) { + var graph = buildGraph(); + var queue = [fromModel]; + + graph[fromModel].distance = 0; + while (queue.length) { + var current = queue.pop(); + var adjacents = Object.keys(_$$_REQUIRE(_dependencyMap[0], "./conversions")[current]); + for (var len = adjacents.length, i = 0; i < len; i++) { + var adjacent = adjacents[i]; + var node = graph[adjacent]; + if (node.distance === -1) { + node.distance = graph[current].distance + 1; + node.parent = current; + queue.unshift(adjacent); + } + } + } + return graph; + } + function link(from, to) { + return function (args) { + return to(from(args)); + }; + } + function wrapConversion(toModel, graph) { + var path = [graph[toModel].parent, toModel]; + var fn = _$$_REQUIRE(_dependencyMap[0], "./conversions")[graph[toModel].parent][toModel]; + var cur = graph[toModel].parent; + while (graph[cur].parent) { + path.unshift(graph[cur].parent); + fn = link(_$$_REQUIRE(_dependencyMap[0], "./conversions")[graph[cur].parent][cur], fn); + cur = graph[cur].parent; + } + fn.conversion = path; + return fn; + } + module.exports = function (fromModel) { + var graph = deriveBFS(fromModel); + var conversion = {}; + var models = Object.keys(graph); + for (var len = models.length, i = 0; i < len; i++) { + var toModel = models[i]; + var node = graph[toModel]; + if (node.parent === null) { + continue; + } + conversion[toModel] = wrapConversion(toModel, graph); + } + return conversion; + }; +},84,[82],"node_modules/color-convert/route.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.test = exports.serialize = void 0; + var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol; + var asymmetricMatcher = typeof Symbol === 'function' && Symbol.for ? Symbol.for('jest.asymmetricMatcher') : 0x1357a5; + var SPACE = ' '; + var serialize = function serialize(val, config, indentation, depth, refs, printer) { + var stringedValue = val.toString(); + if (stringedValue === 'ArrayContaining' || stringedValue === 'ArrayNotContaining') { + if (++depth > config.maxDepth) { + return '[' + stringedValue + ']'; + } + return stringedValue + SPACE + '[' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printListItems)(val.sample, config, indentation, depth, refs, printer) + ']'; + } + if (stringedValue === 'ObjectContaining' || stringedValue === 'ObjectNotContaining') { + if (++depth > config.maxDepth) { + return '[' + stringedValue + ']'; + } + return stringedValue + SPACE + '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printObjectProperties)(val.sample, config, indentation, depth, refs, printer) + '}'; + } + if (stringedValue === 'StringMatching' || stringedValue === 'StringNotMatching') { + return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs); + } + if (stringedValue === 'StringContaining' || stringedValue === 'StringNotContaining') { + return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs); + } + return val.toAsymmetricMatcher(); + }; + exports.serialize = serialize; + var test = function test(val) { + return val && val.$$typeof === asymmetricMatcher; + }; + exports.test = test; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},85,[86],"node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.printIteratorEntries = printIteratorEntries; + exports.printIteratorValues = printIteratorValues; + exports.printListItems = printListItems; + exports.printObjectProperties = printObjectProperties; + + var getKeysOfEnumerableProperties = function getKeysOfEnumerableProperties(object) { + var keys = Object.keys(object).sort(); + if (Object.getOwnPropertySymbols) { + Object.getOwnPropertySymbols(object).forEach(function (symbol) { + if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) { + keys.push(symbol); + } + }); + } + return keys; + }; + + function printIteratorEntries(iterator, config, indentation, depth, refs, printer) { + var separator = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ': '; + var result = ''; + var current = iterator.next(); + if (!current.done) { + result += config.spacingOuter; + var indentationNext = indentation + config.indent; + while (!current.done) { + var name = printer(current.value[0], config, indentationNext, depth, refs); + var value = printer(current.value[1], config, indentationNext, depth, refs); + result += indentationNext + name + separator + value; + current = iterator.next(); + if (!current.done) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + result += config.spacingOuter + indentation; + } + return result; + } + + function printIteratorValues(iterator, config, indentation, depth, refs, printer) { + var result = ''; + var current = iterator.next(); + if (!current.done) { + result += config.spacingOuter; + var indentationNext = indentation + config.indent; + while (!current.done) { + result += indentationNext + printer(current.value, config, indentationNext, depth, refs); + current = iterator.next(); + if (!current.done) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + result += config.spacingOuter + indentation; + } + return result; + } + + function printListItems(list, config, indentation, depth, refs, printer) { + var result = ''; + if (list.length) { + result += config.spacingOuter; + var indentationNext = indentation + config.indent; + for (var i = 0; i < list.length; i++) { + result += indentationNext + printer(list[i], config, indentationNext, depth, refs); + if (i < list.length - 1) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + result += config.spacingOuter + indentation; + } + return result; + } + + function printObjectProperties(val, config, indentation, depth, refs, printer) { + var result = ''; + var keys = getKeysOfEnumerableProperties(val); + if (keys.length) { + result += config.spacingOuter; + var indentationNext = indentation + config.indent; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var name = printer(key, config, indentationNext, depth, refs); + var value = printer(val[key], config, indentationNext, depth, refs); + result += indentationNext + name + ': ' + value; + if (i < keys.length - 1) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + result += config.spacingOuter + indentation; + } + return result; + } +},86,[],"node_modules/pretty-format/build/collections.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.serialize = exports.test = void 0; + var _ansiRegex = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "ansi-regex")); + var _ansiStyles = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "ansi-styles")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + var toHumanReadableAnsi = function toHumanReadableAnsi(text) { + return text.replace((0, _ansiRegex.default)(), function (match) { + switch (match) { + case _ansiStyles.default.red.close: + case _ansiStyles.default.green.close: + case _ansiStyles.default.cyan.close: + case _ansiStyles.default.gray.close: + case _ansiStyles.default.white.close: + case _ansiStyles.default.yellow.close: + case _ansiStyles.default.bgRed.close: + case _ansiStyles.default.bgGreen.close: + case _ansiStyles.default.bgYellow.close: + case _ansiStyles.default.inverse.close: + case _ansiStyles.default.dim.close: + case _ansiStyles.default.bold.close: + case _ansiStyles.default.reset.open: + case _ansiStyles.default.reset.close: + return ''; + case _ansiStyles.default.red.open: + return ''; + case _ansiStyles.default.green.open: + return ''; + case _ansiStyles.default.cyan.open: + return ''; + case _ansiStyles.default.gray.open: + return ''; + case _ansiStyles.default.white.open: + return ''; + case _ansiStyles.default.yellow.open: + return ''; + case _ansiStyles.default.bgRed.open: + return ''; + case _ansiStyles.default.bgGreen.open: + return ''; + case _ansiStyles.default.bgYellow.open: + return ''; + case _ansiStyles.default.inverse.open: + return ''; + case _ansiStyles.default.dim.open: + return ''; + case _ansiStyles.default.bold.open: + return ''; + default: + return ''; + } + }); + }; + var test = function test(val) { + return typeof val === 'string' && !!val.match((0, _ansiRegex.default)()); + }; + exports.test = test; + var serialize = function serialize(val, config, indentation, depth, refs, printer) { + return printer(toHumanReadableAnsi(val), config, indentation, depth, refs); + }; + exports.serialize = serialize; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},87,[88,80],"node_modules/pretty-format/build/plugins/ConvertAnsi.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function () { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + _ref$onlyFirst = _ref.onlyFirst, + onlyFirst = _ref$onlyFirst === void 0 ? false : _ref$onlyFirst; + var pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|'); + return new RegExp(pattern, onlyFirst ? undefined : 'g'); + }; +},88,[],"node_modules/ansi-regex/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.serialize = exports.test = void 0; + + var SPACE = ' '; + var OBJECT_NAMES = ['DOMStringMap', 'NamedNodeMap']; + var ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/; + var testName = function testName(name) { + return OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name); + }; + var test = function test(val) { + return val && val.constructor && !!val.constructor.name && testName(val.constructor.name); + }; + exports.test = test; + var isNamedNodeMap = function isNamedNodeMap(collection) { + return collection.constructor.name === 'NamedNodeMap'; + }; + var serialize = function serialize(collection, config, indentation, depth, refs, printer) { + var name = collection.constructor.name; + if (++depth > config.maxDepth) { + return '[' + name + ']'; + } + return (config.min ? '' : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce(function (props, attribute) { + props[attribute.name] = attribute.value; + return props; + }, {}) : Object.assign({}, collection), config, indentation, depth, refs, printer) + '}' : '[' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printListItems)(Array.from(collection), config, indentation, depth, refs, printer) + ']'); + }; + exports.serialize = serialize; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},89,[86],"node_modules/pretty-format/build/plugins/DOMCollection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.serialize = exports.test = void 0; + var ELEMENT_NODE = 1; + var TEXT_NODE = 3; + var COMMENT_NODE = 8; + var FRAGMENT_NODE = 11; + var ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/; + var testNode = function testNode(val) { + var _val$hasAttribute; + var constructorName = val.constructor.name; + var nodeType = val.nodeType, + tagName = val.tagName; + var isCustomElement = typeof tagName === 'string' && tagName.includes('-') || ((_val$hasAttribute = val.hasAttribute) === null || _val$hasAttribute === void 0 ? void 0 : _val$hasAttribute.call(val, 'is')); + return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === 'Text' || nodeType === COMMENT_NODE && constructorName === 'Comment' || nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment'; + }; + var test = function test(val) { + var _val$constructor; + return (val === null || val === void 0 ? void 0 : (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val); + }; + exports.test = test; + function nodeIsText(node) { + return node.nodeType === TEXT_NODE; + } + function nodeIsComment(node) { + return node.nodeType === COMMENT_NODE; + } + function nodeIsFragment(node) { + return node.nodeType === FRAGMENT_NODE; + } + var serialize = function serialize(node, config, indentation, depth, refs, printer) { + if (nodeIsText(node)) { + return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printText)(node.data, config); + } + if (nodeIsComment(node)) { + return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printComment)(node.data, config); + } + var type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase(); + if (++depth > config.maxDepth) { + return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printElementAsLeaf)(type, config); + } + return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printElement)(type, (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes).map(function (attr) { + return attr.name; + }).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce(function (props, attribute) { + props[attribute.name] = attribute.value; + return props; + }, {}), config, indentation + config.indent, depth, refs, printer), (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printChildren)(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation); + }; + exports.serialize = serialize; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},90,[91],"node_modules/pretty-format/build/plugins/DOMElement.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printText = exports.printChildren = exports.printProps = void 0; + var _escapeHTML = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./escapeHTML")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + var printProps = function printProps(keys, props, config, indentation, depth, refs, printer) { + var indentationNext = indentation + config.indent; + var colors = config.colors; + return keys.map(function (key) { + var value = props[key]; + var printed = printer(value, config, indentationNext, depth, refs); + if (typeof value !== 'string') { + if (printed.indexOf('\n') !== -1) { + printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation; + } + printed = '{' + printed + '}'; + } + return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + '=' + colors.value.open + printed + colors.value.close; + }).join(''); + }; + + exports.printProps = printProps; + var printChildren = function printChildren(children, config, indentation, depth, refs, printer) { + return children.map(function (child) { + return config.spacingOuter + indentation + (typeof child === 'string' ? printText(child, config) : printer(child, config, indentation, depth, refs)); + }).join(''); + }; + exports.printChildren = printChildren; + var printText = function printText(text, config) { + var contentColor = config.colors.content; + return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close; + }; + exports.printText = printText; + var printComment = function printComment(comment, config) { + var commentColor = config.colors.comment; + return commentColor.open + '' + commentColor.close; + }; + + exports.printComment = printComment; + var printElement = function printElement(type, printedProps, printedChildren, config, indentation) { + var tagColor = config.colors.tag; + return tagColor.open + '<' + type + (printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open) + (printedChildren ? '>' + tagColor.close + printedChildren + config.spacingOuter + indentation + tagColor.open + '' + tagColor.close; + }; + exports.printElement = printElement; + var printElementAsLeaf = function printElementAsLeaf(type, config) { + var tagColor = config.colors.tag; + return tagColor.open + '<' + type + tagColor.close + ' โ€ฆ' + tagColor.open + ' />' + tagColor.close; + }; + exports.printElementAsLeaf = printElementAsLeaf; +},91,[92],"node_modules/pretty-format/build/plugins/lib/markup.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = escapeHTML; + + function escapeHTML(str) { + return str.replace(//g, '>'); + } +},92,[],"node_modules/pretty-format/build/plugins/lib/escapeHTML.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.test = exports.serialize = void 0; + var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@'; + var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@'; + var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@'; + var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@'; + var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@'; + var IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; + + var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@'; + var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@'; + var IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@'; + var getImmutableName = function getImmutableName(name) { + return 'Immutable.' + name; + }; + var printAsLeaf = function printAsLeaf(name) { + return '[' + name + ']'; + }; + var SPACE = ' '; + var LAZY = 'โ€ฆ'; + + var printImmutableEntries = function printImmutableEntries(val, config, indentation, depth, refs, printer, type) { + return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) + '}'; + }; + + function getRecordEntries(val) { + var i = 0; + return { + next: function next() { + if (i < val._keys.length) { + var key = val._keys[i++]; + return { + done: false, + value: [key, val.get(key)] + }; + } + return { + done: true, + value: undefined + }; + } + }; + } + var printImmutableRecord = function printImmutableRecord(val, config, indentation, depth, refs, printer) { + var name = getImmutableName(val._name || 'Record'); + return ++depth > config.maxDepth ? printAsLeaf(name) : name + SPACE + '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer) + '}'; + }; + var printImmutableSeq = function printImmutableSeq(val, config, indentation, depth, refs, printer) { + var name = getImmutableName('Seq'); + if (++depth > config.maxDepth) { + return printAsLeaf(name); + } + if (val[IS_KEYED_SENTINEL]) { + return name + SPACE + '{' + ( + val._iter || val._object ? (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY) + '}'; + } + return name + SPACE + '[' + (val._iter || + val._array || + val._collection || + val._iterable ? (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY) + ']'; + }; + var printImmutableValues = function printImmutableValues(val, config, indentation, depth, refs, printer, type) { + return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + '[' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + ']'; + }; + var serialize = function serialize(val, config, indentation, depth, refs, printer) { + if (val[IS_MAP_SENTINEL]) { + return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? 'OrderedMap' : 'Map'); + } + if (val[IS_LIST_SENTINEL]) { + return printImmutableValues(val, config, indentation, depth, refs, printer, 'List'); + } + if (val[IS_SET_SENTINEL]) { + return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? 'OrderedSet' : 'Set'); + } + if (val[IS_STACK_SENTINEL]) { + return printImmutableValues(val, config, indentation, depth, refs, printer, 'Stack'); + } + if (val[IS_SEQ_SENTINEL]) { + return printImmutableSeq(val, config, indentation, depth, refs, printer); + } + + return printImmutableRecord(val, config, indentation, depth, refs, printer); + }; + + exports.serialize = serialize; + var test = function test(val) { + return val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true); + }; + exports.test = test; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},93,[86],"node_modules/pretty-format/build/plugins/Immutable.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.test = exports.serialize = void 0; + var ReactIs = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react-is")); + function _getRequireWildcardCache() { + if (typeof WeakMap !== 'function') return null; + var cache = new WeakMap(); + _getRequireWildcardCache = function _getRequireWildcardCache() { + return cache; + }; + return cache; + } + function _interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } + if (obj === null || typeof obj !== 'object' && typeof obj !== 'function') { + return { + default: obj + }; + } + var cache = _getRequireWildcardCache(); + if (cache && cache.has(obj)) { + return cache.get(obj); + } + var newObj = {}; + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + if (desc && (desc.get || desc.set)) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + newObj.default = obj; + if (cache) { + cache.set(obj, newObj); + } + return newObj; + } + + var getChildren = function getChildren(arg) { + var children = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + if (Array.isArray(arg)) { + arg.forEach(function (item) { + getChildren(item, children); + }); + } else if (arg != null && arg !== false) { + children.push(arg); + } + return children; + }; + var getType = function getType(element) { + var type = element.type; + if (typeof type === 'string') { + return type; + } + if (typeof type === 'function') { + return type.displayName || type.name || 'Unknown'; + } + if (ReactIs.isFragment(element)) { + return 'React.Fragment'; + } + if (ReactIs.isSuspense(element)) { + return 'React.Suspense'; + } + if (typeof type === 'object' && type !== null) { + if (ReactIs.isContextProvider(element)) { + return 'Context.Provider'; + } + if (ReactIs.isContextConsumer(element)) { + return 'Context.Consumer'; + } + if (ReactIs.isForwardRef(element)) { + if (type.displayName) { + return type.displayName; + } + var functionName = type.render.displayName || type.render.name || ''; + return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; + } + if (ReactIs.isMemo(element)) { + var _functionName = type.displayName || type.type.displayName || type.type.name || ''; + return _functionName !== '' ? 'Memo(' + _functionName + ')' : 'Memo'; + } + } + return 'UNDEFINED'; + }; + var getPropKeys = function getPropKeys(element) { + var props = element.props; + return Object.keys(props).filter(function (key) { + return key !== 'children' && props[key] !== undefined; + }).sort(); + }; + var serialize = function serialize(element, config, indentation, depth, refs, printer) { + return ++depth > config.maxDepth ? (0, _$$_REQUIRE(_dependencyMap[1], "./lib/markup").printElementAsLeaf)(getType(element), config) : (0, _$$_REQUIRE(_dependencyMap[1], "./lib/markup").printElement)(getType(element), (0, _$$_REQUIRE(_dependencyMap[1], "./lib/markup").printProps)(getPropKeys(element), element.props, config, indentation + config.indent, depth, refs, printer), (0, _$$_REQUIRE(_dependencyMap[1], "./lib/markup").printChildren)(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation); + }; + exports.serialize = serialize; + var test = function test(val) { + return val && ReactIs.isElement(val); + }; + exports.test = test; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},94,[95,91],"node_modules/pretty-format/build/plugins/ReactElement.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-is.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-is.development.js"); + } +},95,[96,97],"node_modules/pretty-format/node_modules/react-is/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + var b = 60103, + c = 60106, + d = 60107, + e = 60108, + f = 60114, + g = 60109, + h = 60110, + k = 60112, + l = 60113, + m = 60120, + n = 60115, + p = 60116, + q = 60121, + r = 60122, + u = 60117, + v = 60129, + w = 60131; + if ("function" === typeof Symbol && Symbol.for) { + var x = Symbol.for; + b = x("react.element"); + c = x("react.portal"); + d = x("react.fragment"); + e = x("react.strict_mode"); + f = x("react.profiler"); + g = x("react.provider"); + h = x("react.context"); + k = x("react.forward_ref"); + l = x("react.suspense"); + m = x("react.suspense_list"); + n = x("react.memo"); + p = x("react.lazy"); + q = x("react.block"); + r = x("react.server.block"); + u = x("react.fundamental"); + v = x("react.debug_trace_mode"); + w = x("react.legacy_hidden"); + } + function y(a) { + if ("object" === typeof a && null !== a) { + var t = a.$$typeof; + switch (t) { + case b: + switch (a = a.type, a) { + case d: + case f: + case e: + case l: + case m: + return a; + default: + switch (a = a && a.$$typeof, a) { + case h: + case k: + case p: + case n: + case g: + return a; + default: + return t; + } + } + case c: + return t; + } + } + } + var z = g, + A = b, + B = k, + C = d, + D = p, + E = n, + F = c, + G = f, + H = e, + I = l; + exports.ContextConsumer = h; + exports.ContextProvider = z; + exports.Element = A; + exports.ForwardRef = B; + exports.Fragment = C; + exports.Lazy = D; + exports.Memo = E; + exports.Portal = F; + exports.Profiler = G; + exports.StrictMode = H; + exports.Suspense = I; + exports.isAsyncMode = function () { + return !1; + }; + exports.isConcurrentMode = function () { + return !1; + }; + exports.isContextConsumer = function (a) { + return y(a) === h; + }; + exports.isContextProvider = function (a) { + return y(a) === g; + }; + exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === b; + }; + exports.isForwardRef = function (a) { + return y(a) === k; + }; + exports.isFragment = function (a) { + return y(a) === d; + }; + exports.isLazy = function (a) { + return y(a) === p; + }; + exports.isMemo = function (a) { + return y(a) === n; + }; + exports.isPortal = function (a) { + return y(a) === c; + }; + exports.isProfiler = function (a) { + return y(a) === f; + }; + exports.isStrictMode = function (a) { + return y(a) === e; + }; + exports.isSuspense = function (a) { + return y(a) === l; + }; + exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === d || a === f || a === v || a === e || a === l || a === m || a === w || "object" === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? !0 : !1; + }; + exports.typeOf = y; +},96,[],"node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v17.0.2 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var REACT_ELEMENT_TYPE = 0xeac7; + var REACT_PORTAL_TYPE = 0xeaca; + var REACT_FRAGMENT_TYPE = 0xeacb; + var REACT_STRICT_MODE_TYPE = 0xeacc; + var REACT_PROFILER_TYPE = 0xead2; + var REACT_PROVIDER_TYPE = 0xeacd; + var REACT_CONTEXT_TYPE = 0xeace; + var REACT_FORWARD_REF_TYPE = 0xead0; + var REACT_SUSPENSE_TYPE = 0xead1; + var REACT_SUSPENSE_LIST_TYPE = 0xead8; + var REACT_MEMO_TYPE = 0xead3; + var REACT_LAZY_TYPE = 0xead4; + var REACT_BLOCK_TYPE = 0xead9; + var REACT_SERVER_BLOCK_TYPE = 0xeada; + var REACT_FUNDAMENTAL_TYPE = 0xead5; + var REACT_SCOPE_TYPE = 0xead7; + var REACT_OPAQUE_ID_TYPE = 0xeae0; + var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1; + var REACT_OFFSCREEN_TYPE = 0xeae2; + var REACT_LEGACY_HIDDEN_TYPE = 0xeae3; + if (typeof Symbol === 'function' && Symbol.for) { + var symbolFor = Symbol.for; + REACT_ELEMENT_TYPE = symbolFor('react.element'); + REACT_PORTAL_TYPE = symbolFor('react.portal'); + REACT_FRAGMENT_TYPE = symbolFor('react.fragment'); + REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode'); + REACT_PROFILER_TYPE = symbolFor('react.profiler'); + REACT_PROVIDER_TYPE = symbolFor('react.provider'); + REACT_CONTEXT_TYPE = symbolFor('react.context'); + REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref'); + REACT_SUSPENSE_TYPE = symbolFor('react.suspense'); + REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list'); + REACT_MEMO_TYPE = symbolFor('react.memo'); + REACT_LAZY_TYPE = symbolFor('react.lazy'); + REACT_BLOCK_TYPE = symbolFor('react.block'); + REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block'); + REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); + REACT_SCOPE_TYPE = symbolFor('react.scope'); + REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); + REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode'); + REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen'); + REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); + } + + var enableScopeAPI = false; + + function isValidElementType(type) { + if (typeof type === 'string' || typeof type === 'function') { + return true; + } + + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) { + return true; + } + if (typeof type === 'object' && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) { + return true; + } + } + return false; + } + function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + switch (type) { + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + return type; + default: + var $$typeofType = type && type.$$typeof; + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + default: + return $$typeof; + } + } + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + return undefined; + } + var ContextConsumer = REACT_CONTEXT_TYPE; + var ContextProvider = REACT_PROVIDER_TYPE; + var Element = REACT_ELEMENT_TYPE; + var ForwardRef = REACT_FORWARD_REF_TYPE; + var Fragment = REACT_FRAGMENT_TYPE; + var Lazy = REACT_LAZY_TYPE; + var Memo = REACT_MEMO_TYPE; + var Portal = REACT_PORTAL_TYPE; + var Profiler = REACT_PROFILER_TYPE; + var StrictMode = REACT_STRICT_MODE_TYPE; + var Suspense = REACT_SUSPENSE_TYPE; + var hasWarnedAboutDeprecatedIsAsyncMode = false; + var hasWarnedAboutDeprecatedIsConcurrentMode = false; + + function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); + } + } + return false; + } + function isConcurrentMode(object) { + { + if (!hasWarnedAboutDeprecatedIsConcurrentMode) { + hasWarnedAboutDeprecatedIsConcurrentMode = true; + + console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); + } + } + return false; + } + function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; + } + function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; + } + function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; + } + function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; + } + function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; + } + function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; + } + function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; + } + function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; + } + function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; + } + function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; + } + exports.ContextConsumer = ContextConsumer; + exports.ContextProvider = ContextProvider; + exports.Element = Element; + exports.ForwardRef = ForwardRef; + exports.Fragment = Fragment; + exports.Lazy = Lazy; + exports.Memo = Memo; + exports.Portal = Portal; + exports.Profiler = Profiler; + exports.StrictMode = StrictMode; + exports.Suspense = Suspense; + exports.isAsyncMode = isAsyncMode; + exports.isConcurrentMode = isConcurrentMode; + exports.isContextConsumer = isContextConsumer; + exports.isContextProvider = isContextProvider; + exports.isElement = isElement; + exports.isForwardRef = isForwardRef; + exports.isFragment = isFragment; + exports.isLazy = isLazy; + exports.isMemo = isMemo; + exports.isPortal = isPortal; + exports.isProfiler = isProfiler; + exports.isStrictMode = isStrictMode; + exports.isSuspense = isSuspense; + exports.isValidElementType = isValidElementType; + exports.typeOf = typeOf; + })(); + } +},97,[],"node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + exports.default = exports.test = exports.serialize = void 0; + var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol; + var testSymbol = typeof Symbol === 'function' && Symbol.for ? Symbol.for('react.test.json') : 0xea71357; + var getPropKeys = function getPropKeys(object) { + var props = object.props; + return props ? Object.keys(props).filter(function (key) { + return props[key] !== undefined; + }).sort() : []; + }; + var serialize = function serialize(object, config, indentation, depth, refs, printer) { + return ++depth > config.maxDepth ? (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printElementAsLeaf)(object.type, config) : (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printElement)(object.type, object.props ? (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printProps)(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : '', object.children ? (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printChildren)(object.children, config, indentation + config.indent, depth, refs, printer) : '', config, indentation); + }; + exports.serialize = serialize; + var test = function test(val) { + return val && val.$$typeof === testSymbol; + }; + exports.test = test; + var plugin = { + serialize: serialize, + test: test + }; + var _default = plugin; + exports.default = _default; +},98,[91],"node_modules/pretty-format/build/plugins/ReactTestComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function polyfillObjectProperty(object, name, getValue) { + var descriptor = Object.getOwnPropertyDescriptor(object, name); + if (__DEV__ && descriptor) { + var backupName = "original" + name[0].toUpperCase() + name.substr(1); + Object.defineProperty(object, backupName, descriptor); + } + var _ref = descriptor || {}, + enumerable = _ref.enumerable, + writable = _ref.writable, + _ref$configurable = _ref.configurable, + configurable = _ref$configurable === void 0 ? false : _ref$configurable; + if (descriptor && !configurable) { + console.error('Failed to set polyfill. ' + name + ' is not configurable.'); + return; + } + _$$_REQUIRE(_dependencyMap[0], "./defineLazyObjectProperty")(object, name, { + get: getValue, + enumerable: enumerable !== false, + writable: writable !== false + }); + } + function polyfillGlobal(name, getValue) { + polyfillObjectProperty(global, name, getValue); + } + module.exports = { + polyfillObjectProperty: polyfillObjectProperty, + polyfillGlobal: polyfillGlobal + }; +},99,[30],"node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + _$$_REQUIRE(_dependencyMap[0], "promise/setimmediate/finally"); + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[1], "promise/setimmediate/rejection-tracking").enable(_$$_REQUIRE(_dependencyMap[2], "./promiseRejectionTrackingOptions").default); + } + module.exports = _$$_REQUIRE(_dependencyMap[3], "promise/setimmediate/es6-extensions"); +},100,[101,103,78,104],"node_modules/react-native/Libraries/Promise.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "./core.js"); + _$$_REQUIRE(_dependencyMap[0], "./core.js").prototype.finally = function (f) { + return this.then(function (value) { + return _$$_REQUIRE(_dependencyMap[0], "./core.js").resolve(f()).then(function () { + return value; + }); + }, function (err) { + return _$$_REQUIRE(_dependencyMap[0], "./core.js").resolve(f()).then(function () { + throw err; + }); + }); + }; +},101,[102],"node_modules/promise/setimmediate/finally.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function noop() {} + + var LAST_ERROR = null; + var IS_ERROR = {}; + function getThen(obj) { + try { + return obj.then; + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + function tryCallOne(fn, a) { + try { + return fn(a); + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + function tryCallTwo(fn, a, b) { + try { + fn(a, b); + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + module.exports = Promise; + function Promise(fn) { + if (typeof this !== 'object') { + throw new TypeError('Promises must be constructed via new'); + } + if (typeof fn !== 'function') { + throw new TypeError('Promise constructor\'s argument is not a function'); + } + this._x = 0; + this._y = 0; + this._z = null; + this._A = null; + if (fn === noop) return; + doResolve(fn, this); + } + Promise._B = null; + Promise._C = null; + Promise._D = noop; + Promise.prototype.then = function (onFulfilled, onRejected) { + if (this.constructor !== Promise) { + return safeThen(this, onFulfilled, onRejected); + } + var res = new Promise(noop); + handle(this, new Handler(onFulfilled, onRejected, res)); + return res; + }; + function safeThen(self, onFulfilled, onRejected) { + return new self.constructor(function (resolve, reject) { + var res = new Promise(noop); + res.then(resolve, reject); + handle(self, new Handler(onFulfilled, onRejected, res)); + }); + } + function handle(self, deferred) { + while (self._y === 3) { + self = self._z; + } + if (Promise._B) { + Promise._B(self); + } + if (self._y === 0) { + if (self._x === 0) { + self._x = 1; + self._A = deferred; + return; + } + if (self._x === 1) { + self._x = 2; + self._A = [self._A, deferred]; + return; + } + self._A.push(deferred); + return; + } + handleResolved(self, deferred); + } + function handleResolved(self, deferred) { + setImmediate(function () { + var cb = self._y === 1 ? deferred.onFulfilled : deferred.onRejected; + if (cb === null) { + if (self._y === 1) { + resolve(deferred.promise, self._z); + } else { + reject(deferred.promise, self._z); + } + return; + } + var ret = tryCallOne(cb, self._z); + if (ret === IS_ERROR) { + reject(deferred.promise, LAST_ERROR); + } else { + resolve(deferred.promise, ret); + } + }); + } + function resolve(self, newValue) { + if (newValue === self) { + return reject(self, new TypeError('A promise cannot be resolved with itself.')); + } + if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) { + var then = getThen(newValue); + if (then === IS_ERROR) { + return reject(self, LAST_ERROR); + } + if (then === self.then && newValue instanceof Promise) { + self._y = 3; + self._z = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(then.bind(newValue), self); + return; + } + } + self._y = 1; + self._z = newValue; + finale(self); + } + function reject(self, newValue) { + self._y = 2; + self._z = newValue; + if (Promise._C) { + Promise._C(self, newValue); + } + finale(self); + } + function finale(self) { + if (self._x === 1) { + handle(self, self._A); + self._A = null; + } + if (self._x === 2) { + for (var i = 0; i < self._A.length; i++) { + handle(self, self._A[i]); + } + self._A = null; + } + } + function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; + } + + function doResolve(fn, promise) { + var done = false; + var res = tryCallTwo(fn, function (value) { + if (done) return; + done = true; + resolve(promise, value); + }, function (reason) { + if (done) return; + done = true; + reject(promise, reason); + }); + if (!done && res === IS_ERROR) { + done = true; + reject(promise, LAST_ERROR); + } + } +},102,[],"node_modules/promise/setimmediate/core.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var DEFAULT_WHITELIST = [ReferenceError, TypeError, RangeError]; + var enabled = false; + exports.disable = disable; + function disable() { + enabled = false; + _$$_REQUIRE(_dependencyMap[0], "./core")._B = null; + _$$_REQUIRE(_dependencyMap[0], "./core")._C = null; + } + exports.enable = enable; + function enable(options) { + options = options || {}; + if (enabled) disable(); + enabled = true; + var id = 0; + var displayId = 0; + var rejections = {}; + _$$_REQUIRE(_dependencyMap[0], "./core")._B = function (promise) { + if (promise._y === 2 && + rejections[promise._E]) { + if (rejections[promise._E].logged) { + onHandled(promise._E); + } else { + clearTimeout(rejections[promise._E].timeout); + } + delete rejections[promise._E]; + } + }; + _$$_REQUIRE(_dependencyMap[0], "./core")._C = function (promise, err) { + if (promise._x === 0) { + promise._E = id++; + rejections[promise._E] = { + displayId: null, + error: err, + timeout: setTimeout(onUnhandled.bind(null, promise._E), + matchWhitelist(err, DEFAULT_WHITELIST) ? 100 : 2000), + logged: false + }; + } + }; + function onUnhandled(id) { + if (options.allRejections || matchWhitelist(rejections[id].error, options.whitelist || DEFAULT_WHITELIST)) { + rejections[id].displayId = displayId++; + if (options.onUnhandled) { + rejections[id].logged = true; + options.onUnhandled(rejections[id].displayId, rejections[id].error); + } else { + rejections[id].logged = true; + logError(rejections[id].displayId, rejections[id].error); + } + } + } + function onHandled(id) { + if (rejections[id].logged) { + if (options.onHandled) { + options.onHandled(rejections[id].displayId, rejections[id].error); + } else if (!rejections[id].onUnhandled) { + console.warn('Promise Rejection Handled (id: ' + rejections[id].displayId + '):'); + console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + rejections[id].displayId + '.'); + } + } + } + } + function logError(id, error) { + console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); + var errStr = (error && (error.stack || error)) + ''; + errStr.split('\n').forEach(function (line) { + console.warn(' ' + line); + }); + } + function matchWhitelist(error, list) { + return list.some(function (cls) { + return error instanceof cls; + }); + } +},103,[102],"node_modules/promise/setimmediate/rejection-tracking.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "./core.js"); + + var TRUE = valuePromise(true); + var FALSE = valuePromise(false); + var NULL = valuePromise(null); + var UNDEFINED = valuePromise(undefined); + var ZERO = valuePromise(0); + var EMPTYSTRING = valuePromise(''); + function valuePromise(value) { + var p = new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(_$$_REQUIRE(_dependencyMap[0], "./core.js")._D); + p._y = 1; + p._z = value; + return p; + } + _$$_REQUIRE(_dependencyMap[0], "./core.js").resolve = function (value) { + if (value instanceof _$$_REQUIRE(_dependencyMap[0], "./core.js")) return value; + if (value === null) return NULL; + if (value === undefined) return UNDEFINED; + if (value === true) return TRUE; + if (value === false) return FALSE; + if (value === 0) return ZERO; + if (value === '') return EMPTYSTRING; + if (typeof value === 'object' || typeof value === 'function') { + try { + var then = value.then; + if (typeof then === 'function') { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(then.bind(value)); + } + } catch (ex) { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(function (resolve, reject) { + reject(ex); + }); + } + } + return valuePromise(value); + }; + var _iterableToArray = function iterableToArray(iterable) { + if (typeof Array.from === 'function') { + _iterableToArray = Array.from; + return Array.from(iterable); + } + + _iterableToArray = function iterableToArray(x) { + return Array.prototype.slice.call(x); + }; + return Array.prototype.slice.call(iterable); + }; + _$$_REQUIRE(_dependencyMap[0], "./core.js").all = function (arr) { + var args = _iterableToArray(arr); + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(function (resolve, reject) { + if (args.length === 0) return resolve([]); + var remaining = args.length; + function res(i, val) { + if (val && (typeof val === 'object' || typeof val === 'function')) { + if (val instanceof _$$_REQUIRE(_dependencyMap[0], "./core.js") && val.then === _$$_REQUIRE(_dependencyMap[0], "./core.js").prototype.then) { + while (val._y === 3) { + val = val._z; + } + if (val._y === 1) return res(i, val._z); + if (val._y === 2) reject(val._z); + val.then(function (val) { + res(i, val); + }, reject); + return; + } else { + var then = val.then; + if (typeof then === 'function') { + var p = new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(then.bind(val)); + p.then(function (val) { + res(i, val); + }, reject); + return; + } + } + } + args[i] = val; + if (--remaining === 0) { + resolve(args); + } + } + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); + }; + function onSettledFulfill(value) { + return { + status: 'fulfilled', + value: value + }; + } + function onSettledReject(reason) { + return { + status: 'rejected', + reason: reason + }; + } + function mapAllSettled(item) { + if (item && (typeof item === 'object' || typeof item === 'function')) { + if (item instanceof _$$_REQUIRE(_dependencyMap[0], "./core.js") && item.then === _$$_REQUIRE(_dependencyMap[0], "./core.js").prototype.then) { + return item.then(onSettledFulfill, onSettledReject); + } + var then = item.then; + if (typeof then === 'function') { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(then.bind(item)).then(onSettledFulfill, onSettledReject); + } + } + return onSettledFulfill(item); + } + _$$_REQUIRE(_dependencyMap[0], "./core.js").allSettled = function (iterable) { + return _$$_REQUIRE(_dependencyMap[0], "./core.js").all(_iterableToArray(iterable).map(mapAllSettled)); + }; + _$$_REQUIRE(_dependencyMap[0], "./core.js").reject = function (value) { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(function (resolve, reject) { + reject(value); + }); + }; + _$$_REQUIRE(_dependencyMap[0], "./core.js").race = function (values) { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(function (resolve, reject) { + _iterableToArray(values).forEach(function (value) { + _$$_REQUIRE(_dependencyMap[0], "./core.js").resolve(value).then(resolve, reject); + }); + }); + }; + + _$$_REQUIRE(_dependencyMap[0], "./core.js").prototype['catch'] = function (onRejected) { + return this.then(null, onRejected); + }; + function getAggregateError(errors) { + if (typeof AggregateError === 'function') { + return new AggregateError(errors, 'All promises were rejected'); + } + var error = new Error('All promises were rejected'); + error.name = 'AggregateError'; + error.errors = errors; + return error; + } + _$$_REQUIRE(_dependencyMap[0], "./core.js").any = function promiseAny(values) { + return new (_$$_REQUIRE(_dependencyMap[0], "./core.js"))(function (resolve, reject) { + var promises = _iterableToArray(values); + var hasResolved = false; + var rejectionReasons = []; + function resolveOnce(value) { + if (!hasResolved) { + hasResolved = true; + resolve(value); + } + } + function rejectionCheck(reason) { + rejectionReasons.push(reason); + if (rejectionReasons.length === promises.length) { + reject(getAggregateError(rejectionReasons)); + } + } + if (promises.length === 0) { + reject(getAggregateError(rejectionReasons)); + } else { + promises.forEach(function (value) { + _$$_REQUIRE(_dependencyMap[0], "./core.js").resolve(value).then(resolveOnce, rejectionCheck); + }); + } + }); + }; +},104,[102],"node_modules/promise/setimmediate/es6-extensions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var hasNativeGenerator; + try { + hasNativeGenerator = _$$_REQUIRE(_dependencyMap[0], "../Utilities/FeatureDetection").hasNativeConstructor(function* () {}, 'GeneratorFunction'); + } catch (_unused) { + hasNativeGenerator = false; + } + + if (!hasNativeGenerator) { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('regeneratorRuntime', function () { + delete global.regeneratorRuntime; + + return _$$_REQUIRE(_dependencyMap[2], "regenerator-runtime/runtime"); + }); + } +},105,[106,99,107],"node_modules/react-native/Libraries/Core/setUpRegeneratorRuntime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + function isNativeFunction(f) { + return typeof f === 'function' && f.toString().indexOf('[native code]') > -1; + } + + function hasNativeConstructor(o, expectedName) { + var con = Object.getPrototypeOf(o).constructor; + return con.name === expectedName && isNativeFunction(con); + } + module.exports = { + isNativeFunction: isNativeFunction, + hasNativeConstructor: hasNativeConstructor + }; +},106,[],"node_modules/react-native/Libraries/Utilities/FeatureDetection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var runtime = function (exports) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var defineProperty = Object.defineProperty || function (obj, key, desc) { + obj[key] = desc.value; + }; + var undefined; + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + function define(obj, key, value) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + return obj[key]; + } + try { + define({}, ""); + } catch (err) { + define = function define(obj, key, value) { + return obj[key] = value; + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + defineProperty(generator, "_invoke", { + value: makeInvokeMethod(innerFn, self, context) + }); + return generator; + } + exports.wrap = wrap; + + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + var ContinueSentinel = {}; + + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + IteratorPrototype = NativeIteratorPrototype; + } + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = GeneratorFunctionPrototype; + defineProperty(Gp, "constructor", { + value: GeneratorFunctionPrototype, + configurable: true + }); + defineProperty(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: true + }); + GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); + + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + exports.isGeneratorFunction = function (genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor ? ctor === GeneratorFunction || + (ctor.displayName || ctor.name) === "GeneratorFunction" : false; + }; + exports.mark = function (genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + define(genFun, toStringTagSymbol, "GeneratorFunction"); + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + exports.awrap = function (arg) { + return { + __await: arg + }; + }; + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && typeof value === "object" && hasOwn.call(value, "__await")) { + return PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }); + } + return PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped; + resolve(result); + }, function (error) { + return invoke("throw", error, resolve, reject); + }); + } + } + var previousPromise; + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return previousPromise = + previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, + callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + + defineProperty(this, "_invoke", { + value: enqueue + }); + } + defineIteratorMethods(AsyncIterator.prototype); + define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }); + exports.AsyncIterator = AsyncIterator; + + exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + if (PromiseImpl === void 0) PromiseImpl = Promise; + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }; + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + return doneResult(); + } + context.method = method; + context.arg = arg; + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if (context.method === "next") { + context.sent = context._sent = context.arg; + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + context.dispatchException(context.arg); + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + state = GenStateExecuting; + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + state = context.done ? GenStateCompleted : GenStateSuspendedYield; + if (record.arg === ContinueSentinel) { + continue; + } + return { + value: record.arg, + done: context.done + }; + } else if (record.type === "throw") { + state = GenStateCompleted; + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + context.delegate = null; + if (context.method === "throw") { + if (delegate.iterator["return"]) { + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + if (context.method === "throw") { + return ContinueSentinel; + } + } + context.method = "throw"; + context.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return ContinueSentinel; + } + var record = tryCatch(method, delegate.iterator, context.arg); + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + var info = record.arg; + if (!info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + if (info.done) { + context[delegate.resultName] = info.value; + + context.next = delegate.nextLoc; + + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + } else { + return info; + } + + context.delegate = null; + return ContinueSentinel; + } + + defineIteratorMethods(Gp); + define(Gp, toStringTagSymbol, "Generator"); + + define(Gp, iteratorSymbol, function () { + return this; + }); + define(Gp, "toString", function () { + return "[object Generator]"; + }); + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + if (1 in locs) { + entry.catchLoc = locs[1]; + } + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + exports.keys = function (val) { + var object = Object(val); + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + next.done = true; + return next; + }; + }; + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + if (typeof iterable.next === "function") { + return iterable; + } + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + next.value = undefined; + next.done = true; + return next; + }; + return next.next = next; + } + } + + return { + next: doneResult + }; + } + exports.values = values; + function doneResult() { + return { + value: undefined, + done: true + }; + } + Context.prototype = { + constructor: Context, + reset: function reset(skipTempReset) { + this.prev = 0; + this.next = 0; + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + this.method = "next"; + this.arg = undefined; + this.tryEntries.forEach(resetTryEntry); + if (!skipTempReset) { + for (var name in this) { + if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + stop: function stop() { + this.done = true; + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + return this.rval; + }, + dispatchException: function dispatchException(exception) { + if (this.done) { + throw exception; + } + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + if (caught) { + context.method = "next"; + context.arg = undefined; + } + return !!caught; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + if (entry.tryLoc === "root") { + return handle("end"); + } + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + abrupt: function abrupt(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { + finallyEntry = null; + } + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + return this.complete(record); + }, + complete: function complete(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + if (record.type === "break" || record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + return ContinueSentinel; + }, + finish: function finish(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + "catch": function _catch(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + throw new Error("illegal catch attempt"); + }, + delegateYield: function delegateYield(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + if (this.method === "next") { + this.arg = undefined; + } + return ContinueSentinel; + } + }; + + return exports; + }( + typeof module === "object" ? module.exports : {}); + try { + regeneratorRuntime = runtime; + } catch (accidentalStrictMode) { + if (typeof globalThis === "object") { + globalThis.regeneratorRuntime = runtime; + } else { + Function("r", "regeneratorRuntime = r")(runtime); + } + } +},107,[],"node_modules/regenerator-runtime/runtime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _global$HermesInterna, _global$HermesInterna2; + if (__DEV__) { + if (typeof global.Promise !== 'function') { + console.error('Promise should exist before setting up timers.'); + } + } + + var hasHermesPromiseQueuedToJSVM = ((_global$HermesInterna = global.HermesInternal) == null ? void 0 : _global$HermesInterna.hasPromise == null ? void 0 : _global$HermesInterna.hasPromise()) === true && ((_global$HermesInterna2 = global.HermesInternal) == null ? void 0 : _global$HermesInterna2.useEngineQueue == null ? void 0 : _global$HermesInterna2.useEngineQueue()) === true; + var hasNativePromise = _$$_REQUIRE(_dependencyMap[0], "../Utilities/FeatureDetection").isNativeFunction(Promise); + var hasPromiseQueuedToJSVM = hasNativePromise || hasHermesPromiseQueuedToJSVM; + + if (global.RN$Bridgeless !== true) { + var defineLazyTimer = function defineLazyTimer(name) { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal(name, function () { + return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers")[name]; + }); + }; + defineLazyTimer('setTimeout'); + defineLazyTimer('clearTimeout'); + defineLazyTimer('setInterval'); + defineLazyTimer('clearInterval'); + defineLazyTimer('requestAnimationFrame'); + defineLazyTimer('cancelAnimationFrame'); + defineLazyTimer('requestIdleCallback'); + defineLazyTimer('cancelIdleCallback'); + } + + if (hasPromiseQueuedToJSVM) { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('setImmediate', function () { + return _$$_REQUIRE(_dependencyMap[3], "./Timers/immediateShim").setImmediate; + }); + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('clearImmediate', function () { + return _$$_REQUIRE(_dependencyMap[3], "./Timers/immediateShim").clearImmediate; + }); + } else { + if (global.RN$Bridgeless !== true) { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('setImmediate', function () { + return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers").queueReactNativeMicrotask; + }); + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('clearImmediate', function () { + return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers").clearReactNativeMicrotask; + }); + } + } + + if (hasHermesPromiseQueuedToJSVM) { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('queueMicrotask', function () { + var _global$HermesInterna3; + return (_global$HermesInterna3 = global.HermesInternal) == null ? void 0 : _global$HermesInterna3.enqueueJob; + }); + } else { + _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('queueMicrotask', function () { + return _$$_REQUIRE(_dependencyMap[4], "./Timers/queueMicrotask.js").default; + }); + } +},108,[106,99,109,111,112],"node_modules/react-native/Libraries/Core/setUpTimers.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeTiming = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeTiming")); + var FRAME_DURATION = 1000 / 60; + var IDLE_CALLBACK_FRAME_DEADLINE = 1; + + var callbacks = []; + var types = []; + var timerIDs = []; + var reactNativeMicrotasks = []; + var requestIdleCallbacks = []; + var requestIdleCallbackTimeouts = {}; + var GUID = 1; + var errors = []; + var hasEmittedTimeDriftWarning = false; + + function _getFreeIndex() { + var freeIndex = timerIDs.indexOf(null); + if (freeIndex === -1) { + freeIndex = timerIDs.length; + } + return freeIndex; + } + function _allocateCallback(func, type) { + var id = GUID++; + var freeIndex = _getFreeIndex(); + timerIDs[freeIndex] = id; + callbacks[freeIndex] = func; + types[freeIndex] = type; + return id; + } + + function _callTimer(timerID, frameTime, didTimeout) { + if (timerID > GUID) { + console.warn('Tried to call timer with ID %s but no such timer exists.', timerID); + } + + var timerIndex = timerIDs.indexOf(timerID); + if (timerIndex === -1) { + return; + } + var type = types[timerIndex]; + var callback = callbacks[timerIndex]; + if (!callback || !type) { + console.error('No callback found for timerID ' + timerID); + return; + } + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").beginEvent(type + ' [invoke]'); + } + + if (type !== 'setInterval') { + _clearIndex(timerIndex); + } + try { + if (type === 'setTimeout' || type === 'setInterval' || type === 'queueReactNativeMicrotask') { + callback(); + } else if (type === 'requestAnimationFrame') { + callback(global.performance.now()); + } else if (type === 'requestIdleCallback') { + callback({ + timeRemaining: function timeRemaining() { + return Math.max(0, FRAME_DURATION - (global.performance.now() - frameTime)); + }, + didTimeout: !!didTimeout + }); + } else { + console.error('Tried to call a callback with invalid type: ' + type); + } + } catch (e) { + errors.push(e); + } + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").endEvent(); + } + } + + function _callReactNativeMicrotasksPass() { + if (reactNativeMicrotasks.length === 0) { + return false; + } + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").beginEvent('callReactNativeMicrotasksPass()'); + } + + var passReactNativeMicrotasks = reactNativeMicrotasks; + reactNativeMicrotasks = []; + + for (var i = 0; i < passReactNativeMicrotasks.length; ++i) { + _callTimer(passReactNativeMicrotasks[i], 0); + } + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").endEvent(); + } + return reactNativeMicrotasks.length > 0; + } + function _clearIndex(i) { + timerIDs[i] = null; + callbacks[i] = null; + types[i] = null; + } + function _freeCallback(timerID) { + if (timerID == null) { + return; + } + var index = timerIDs.indexOf(timerID); + if (index !== -1) { + var type = types[index]; + _clearIndex(index); + if (type !== 'queueReactNativeMicrotask' && type !== 'requestIdleCallback') { + deleteTimer(timerID); + } + } + } + + var JSTimers = { + setTimeout: function setTimeout(func, duration) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'setTimeout'); + createTimer(id, duration || 0, Date.now(), false); + return id; + }, + setInterval: function setInterval(func, duration) { + for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'setInterval'); + createTimer(id, duration || 0, Date.now(), true); + return id; + }, + queueReactNativeMicrotask: function queueReactNativeMicrotask(func) { + for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { + args[_key3 - 1] = arguments[_key3]; + } + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'queueReactNativeMicrotask'); + reactNativeMicrotasks.push(id); + return id; + }, + requestAnimationFrame: function requestAnimationFrame(func) { + var id = _allocateCallback(func, 'requestAnimationFrame'); + createTimer(id, 1, Date.now(), false); + return id; + }, + requestIdleCallback: function requestIdleCallback(func, options) { + if (requestIdleCallbacks.length === 0) { + setSendIdleEvents(true); + } + var timeout = options && options.timeout; + var id = _allocateCallback(timeout != null ? function (deadline) { + var timeoutId = requestIdleCallbackTimeouts[id]; + if (timeoutId) { + JSTimers.clearTimeout(timeoutId); + delete requestIdleCallbackTimeouts[id]; + } + return func(deadline); + } : func, 'requestIdleCallback'); + requestIdleCallbacks.push(id); + if (timeout != null) { + var timeoutId = JSTimers.setTimeout(function () { + var index = requestIdleCallbacks.indexOf(id); + if (index > -1) { + requestIdleCallbacks.splice(index, 1); + _callTimer(id, global.performance.now(), true); + } + delete requestIdleCallbackTimeouts[id]; + if (requestIdleCallbacks.length === 0) { + setSendIdleEvents(false); + } + }, timeout); + requestIdleCallbackTimeouts[id] = timeoutId; + } + return id; + }, + cancelIdleCallback: function cancelIdleCallback(timerID) { + _freeCallback(timerID); + var index = requestIdleCallbacks.indexOf(timerID); + if (index !== -1) { + requestIdleCallbacks.splice(index, 1); + } + var timeoutId = requestIdleCallbackTimeouts[timerID]; + if (timeoutId) { + JSTimers.clearTimeout(timeoutId); + delete requestIdleCallbackTimeouts[timerID]; + } + if (requestIdleCallbacks.length === 0) { + setSendIdleEvents(false); + } + }, + clearTimeout: function clearTimeout(timerID) { + _freeCallback(timerID); + }, + clearInterval: function clearInterval(timerID) { + _freeCallback(timerID); + }, + clearReactNativeMicrotask: function clearReactNativeMicrotask(timerID) { + _freeCallback(timerID); + var index = reactNativeMicrotasks.indexOf(timerID); + if (index !== -1) { + reactNativeMicrotasks.splice(index, 1); + } + }, + cancelAnimationFrame: function cancelAnimationFrame(timerID) { + _freeCallback(timerID); + }, + callTimers: function callTimers(timersToCall) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(timersToCall.length !== 0, 'Cannot call `callTimers` with an empty list of IDs.'); + errors.length = 0; + for (var i = 0; i < timersToCall.length; i++) { + _callTimer(timersToCall[i], 0); + } + var errorCount = errors.length; + if (errorCount > 0) { + if (errorCount > 1) { + for (var ii = 1; ii < errorCount; ii++) { + JSTimers.setTimeout(function (error) { + throw error; + }.bind(null, errors[ii]), 0); + } + } + throw errors[0]; + } + }, + callIdleCallbacks: function callIdleCallbacks(frameTime) { + if (FRAME_DURATION - (global.performance.now() - frameTime) < IDLE_CALLBACK_FRAME_DEADLINE) { + return; + } + errors.length = 0; + if (requestIdleCallbacks.length > 0) { + var passIdleCallbacks = requestIdleCallbacks; + requestIdleCallbacks = []; + for (var i = 0; i < passIdleCallbacks.length; ++i) { + _callTimer(passIdleCallbacks[i], frameTime); + } + } + if (requestIdleCallbacks.length === 0) { + setSendIdleEvents(false); + } + errors.forEach(function (error) { + return JSTimers.setTimeout(function () { + throw error; + }, 0); + }); + }, + callReactNativeMicrotasks: function callReactNativeMicrotasks() { + errors.length = 0; + while (_callReactNativeMicrotasksPass()) {} + errors.forEach(function (error) { + return JSTimers.setTimeout(function () { + throw error; + }, 0); + }); + }, + emitTimeDriftWarning: function emitTimeDriftWarning(warningMessage) { + if (hasEmittedTimeDriftWarning) { + return; + } + hasEmittedTimeDriftWarning = true; + console.warn(warningMessage); + } + }; + function createTimer(callbackID, duration, jsSchedulingTime, repeats) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeTiming.default, 'NativeTiming is available'); + _NativeTiming.default.createTimer(callbackID, duration, jsSchedulingTime, repeats); + } + function deleteTimer(timerID) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeTiming.default, 'NativeTiming is available'); + _NativeTiming.default.deleteTimer(timerID); + } + function setSendIdleEvents(sendIdleEvents) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeTiming.default, 'NativeTiming is available'); + _NativeTiming.default.setSendIdleEvents(sendIdleEvents); + } + var ExportedJSTimers; + if (!_NativeTiming.default) { + console.warn("Timing native module is not available, can't set timers."); + ExportedJSTimers = { + callReactNativeMicrotasks: JSTimers.callReactNativeMicrotasks, + queueReactNativeMicrotask: JSTimers.queueReactNativeMicrotask + }; + } else { + ExportedJSTimers = JSTimers; + } + _$$_REQUIRE(_dependencyMap[4], "../../BatchedBridge/BatchedBridge").setReactNativeMicrotasksCallback(JSTimers.callReactNativeMicrotasks); + module.exports = ExportedJSTimers; +},109,[3,110,28,17,23],"node_modules/react-native/Libraries/Core/Timers/JSTimers.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('Timing'); + exports.default = _default; +},110,[16],"node_modules/react-native/Libraries/Core/Timers/NativeTiming.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var GUIID = 1; + + var clearedImmediates = new Set(); + + function setImmediate(callback) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + if (arguments.length < 1) { + throw new TypeError('setImmediate must be called with at least one argument (a function to call)'); + } + if (typeof callback !== 'function') { + throw new TypeError('The first argument to setImmediate must be a function.'); + } + var id = GUIID++; + if (clearedImmediates.has(id)) { + clearedImmediates.delete(id); + } + global.queueMicrotask(function () { + if (!clearedImmediates.has(id)) { + callback.apply(undefined, args); + } else { + clearedImmediates.delete(id); + } + }); + return id; + } + + function clearImmediate(immediateID) { + clearedImmediates.add(immediateID); + } + var immediateShim = { + setImmediate: setImmediate, + clearImmediate: clearImmediate + }; + module.exports = immediateShim; +},111,[],"node_modules/react-native/Libraries/Core/Timers/immediateShim.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = queueMicrotask; + var resolvedPromise; + + function queueMicrotask(callback) { + if (arguments.length < 1) { + throw new TypeError('queueMicrotask must be called with at least one argument (a function to call)'); + } + if (typeof callback !== 'function') { + throw new TypeError('The argument to queueMicrotask must be a function.'); + } + + (resolvedPromise || (resolvedPromise = Promise.resolve())).then(callback).catch(function (error) { + return ( + setTimeout(function () { + throw error; + }, 0) + ); + }); + } +},112,[],"node_modules/react-native/Libraries/Core/Timers/queueMicrotask.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('XMLHttpRequest', function () { + return _$$_REQUIRE(_dependencyMap[1], "../Network/XMLHttpRequest"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('FormData', function () { + return _$$_REQUIRE(_dependencyMap[2], "../Network/FormData"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('fetch', function () { + return _$$_REQUIRE(_dependencyMap[3], "../Network/fetch").fetch; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('Headers', function () { + return _$$_REQUIRE(_dependencyMap[3], "../Network/fetch").Headers; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('Request', function () { + return _$$_REQUIRE(_dependencyMap[3], "../Network/fetch").Request; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('Response', function () { + return _$$_REQUIRE(_dependencyMap[3], "../Network/fetch").Response; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('WebSocket', function () { + return _$$_REQUIRE(_dependencyMap[4], "../WebSocket/WebSocket"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('Blob', function () { + return _$$_REQUIRE(_dependencyMap[5], "../Blob/Blob"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('File', function () { + return _$$_REQUIRE(_dependencyMap[6], "../Blob/File"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('FileReader', function () { + return _$$_REQUIRE(_dependencyMap[7], "../Blob/FileReader"); + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('URL', function () { + return _$$_REQUIRE(_dependencyMap[8], "../Blob/URL").URL; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('URLSearchParams', function () { + return _$$_REQUIRE(_dependencyMap[8], "../Blob/URL").URLSearchParams; + }); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('AbortController', function () { + return _$$_REQUIRE(_dependencyMap[9], "abort-controller/dist/abort-controller").AbortController; + }); + + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('AbortSignal', function () { + return _$$_REQUIRE(_dependencyMap[9], "abort-controller/dist/abort-controller").AbortSignal; + }); +},113,[99,114,129,68,131,119,137,138,140,141],"node_modules/react-native/Libraries/Core/setUpXHR.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/get")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var DEBUG_NETWORK_SEND_DELAY = false; + + if (_$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").isAvailable) { + _$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").addNetworkingHandler(); + } + var UNSENT = 0; + var OPENED = 1; + var HEADERS_RECEIVED = 2; + var LOADING = 3; + var DONE = 4; + var SUPPORTED_RESPONSE_TYPES = { + arraybuffer: typeof global.ArrayBuffer === 'function', + blob: typeof global.Blob === 'function', + document: false, + json: true, + text: true, + '': true + }; + var REQUEST_EVENTS = ['abort', 'error', 'load', 'loadstart', 'progress', 'timeout', 'loadend']; + var XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange'); + var XMLHttpRequestEventTarget = function (_ref) { + (0, _inherits2.default)(XMLHttpRequestEventTarget, _ref); + var _super = _createSuper(XMLHttpRequestEventTarget); + function XMLHttpRequestEventTarget() { + (0, _classCallCheck2.default)(this, XMLHttpRequestEventTarget); + return _super.apply(this, arguments); + } + return (0, _createClass2.default)(XMLHttpRequestEventTarget); + }(_$$_REQUIRE(_dependencyMap[9], "event-target-shim").apply(void 0, REQUEST_EVENTS)); + var XMLHttpRequest = function (_ref2) { + (0, _inherits2.default)(XMLHttpRequest, _ref2); + var _super2 = _createSuper(XMLHttpRequest); + function XMLHttpRequest() { + var _this; + (0, _classCallCheck2.default)(this, XMLHttpRequest); + _this = _super2.call(this); + _this.UNSENT = UNSENT; + _this.OPENED = OPENED; + _this.HEADERS_RECEIVED = HEADERS_RECEIVED; + _this.LOADING = LOADING; + _this.DONE = DONE; + _this.readyState = UNSENT; + _this.status = 0; + _this.timeout = 0; + _this.withCredentials = true; + _this.upload = new XMLHttpRequestEventTarget(); + _this._aborted = false; + _this._hasError = false; + _this._method = null; + _this._perfKey = null; + _this._response = ''; + _this._url = null; + _this._timedOut = false; + _this._trackingName = 'unknown'; + _this._incrementalEvents = false; + _this._performanceLogger = _$$_REQUIRE(_dependencyMap[10], "../Utilities/GlobalPerformanceLogger"); + _this._reset(); + return _this; + } + (0, _createClass2.default)(XMLHttpRequest, [{ + key: "_reset", + value: function _reset() { + this.readyState = this.UNSENT; + this.responseHeaders = undefined; + this.status = 0; + delete this.responseURL; + this._requestId = null; + this._cachedResponse = undefined; + this._hasError = false; + this._headers = {}; + this._response = ''; + this._responseType = ''; + this._sent = false; + this._lowerCaseResponseHeaders = {}; + this._clearSubscriptions(); + this._timedOut = false; + } + }, { + key: "responseType", + get: function get() { + return this._responseType; + }, + set: function set(responseType) { + 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.'); + } + if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) { + console.warn("The provided value '" + responseType + "' is not a valid 'responseType'."); + return; + } + + _$$_REQUIRE(_dependencyMap[11], "invariant")(SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document', "The provided value '" + responseType + "' is unsupported in this environment."); + if (responseType === 'blob') { + _$$_REQUIRE(_dependencyMap[11], "invariant")(_$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").isAvailable, 'Native module BlobModule is required for blob support'); + } + this._responseType = responseType; + } + }, { + key: "responseText", + get: function get() { + if (this._responseType !== '' && this._responseType !== 'text') { + throw new Error("The 'responseText' property is only available if 'responseType' " + ("is set to '' or 'text', but it is '" + this._responseType + "'.")); + } + if (this.readyState < LOADING) { + return ''; + } + return this._response; + } + }, { + key: "response", + get: function get() { + var responseType = this.responseType; + if (responseType === '' || responseType === 'text') { + return this.readyState < LOADING || this._hasError ? '' : this._response; + } + if (this.readyState !== DONE) { + return null; + } + if (this._cachedResponse !== undefined) { + return this._cachedResponse; + } + switch (responseType) { + case 'document': + this._cachedResponse = null; + break; + case 'arraybuffer': + this._cachedResponse = _$$_REQUIRE(_dependencyMap[12], "base64-js").toByteArray(this._response).buffer; + break; + case 'blob': + if (typeof this._response === 'object' && this._response) { + this._cachedResponse = _$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").createFromOptions(this._response); + } else if (this._response === '') { + this._cachedResponse = _$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").createFromParts([]); + } else { + throw new Error("Invalid response for blob: " + this._response); + } + break; + case 'json': + try { + this._cachedResponse = JSON.parse(this._response); + } catch (_) { + this._cachedResponse = null; + } + break; + default: + this._cachedResponse = null; + } + return this._cachedResponse; + } + + }, { + key: "__didCreateRequest", + value: + function __didCreateRequest(requestId) { + this._requestId = requestId; + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.requestSent(requestId, this._url || '', this._method || 'GET', this._headers); + } + + }, { + key: "__didUploadProgress", + value: + function __didUploadProgress(requestId, progress, total) { + if (requestId === this._requestId) { + this.upload.dispatchEvent({ + type: 'progress', + lengthComputable: true, + loaded: progress, + total: total + }); + } + } + }, { + key: "__didReceiveResponse", + value: function __didReceiveResponse(requestId, status, responseHeaders, responseURL) { + if (requestId === this._requestId) { + this._perfKey != null && this._performanceLogger.stopTimespan(this._perfKey); + this.status = status; + this.setResponseHeaders(responseHeaders); + this.setReadyState(this.HEADERS_RECEIVED); + if (responseURL || responseURL === '') { + this.responseURL = responseURL; + } else { + delete this.responseURL; + } + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.responseReceived(requestId, responseURL || this._url || '', status, responseHeaders || {}); + } + } + }, { + key: "__didReceiveData", + value: function __didReceiveData(requestId, response) { + if (requestId !== this._requestId) { + return; + } + this._response = response; + this._cachedResponse = undefined; + this.setReadyState(this.LOADING); + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, response); + } + }, { + key: "__didReceiveIncrementalData", + value: function __didReceiveIncrementalData(requestId, responseText, progress, total) { + if (requestId !== this._requestId) { + return; + } + if (!this._response) { + this._response = responseText; + } else { + this._response += responseText; + } + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, responseText); + this.setReadyState(this.LOADING); + this.__didReceiveDataProgress(requestId, progress, total); + } + }, { + key: "__didReceiveDataProgress", + value: function __didReceiveDataProgress(requestId, loaded, total) { + if (requestId !== this._requestId) { + return; + } + this.dispatchEvent({ + type: 'progress', + lengthComputable: total >= 0, + loaded: loaded, + total: total + }); + } + + }, { + key: "__didCompleteResponse", + value: + function __didCompleteResponse(requestId, error, timeOutError) { + if (requestId === this._requestId) { + if (error) { + if (this._responseType === '' || this._responseType === 'text') { + this._response = error; + } + this._hasError = true; + if (timeOutError) { + this._timedOut = true; + } + } + this._clearSubscriptions(); + this._requestId = null; + this.setReadyState(this.DONE); + if (error) { + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFailed(requestId, error); + } else { + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFinished(requestId, this._response.length); + } + } + } + }, { + key: "_clearSubscriptions", + value: function _clearSubscriptions() { + (this._subscriptions || []).forEach(function (sub) { + if (sub) { + sub.remove(); + } + }); + this._subscriptions = []; + } + }, { + key: "getAllResponseHeaders", + value: function getAllResponseHeaders() { + if (!this.responseHeaders) { + return null; + } + + var responseHeaders = this.responseHeaders; + var unsortedHeaders = new Map(); + for (var rawHeaderName of Object.keys(responseHeaders)) { + var headerValue = responseHeaders[rawHeaderName]; + var lowerHeaderName = rawHeaderName.toLowerCase(); + var header = unsortedHeaders.get(lowerHeaderName); + if (header) { + header.headerValue += ', ' + headerValue; + unsortedHeaders.set(lowerHeaderName, header); + } else { + unsortedHeaders.set(lowerHeaderName, { + lowerHeaderName: lowerHeaderName, + upperHeaderName: rawHeaderName.toUpperCase(), + headerValue: headerValue + }); + } + } + + var sortedHeaders = (0, _toConsumableArray2.default)(unsortedHeaders.values()).sort(function (a, b) { + if (a.upperHeaderName < b.upperHeaderName) { + return -1; + } + if (a.upperHeaderName > b.upperHeaderName) { + return 1; + } + return 0; + }); + + return sortedHeaders.map(function (header) { + return header.lowerHeaderName + ': ' + header.headerValue; + }).join('\r\n') + '\r\n'; + } + }, { + key: "getResponseHeader", + value: function getResponseHeader(header) { + var value = this._lowerCaseResponseHeaders[header.toLowerCase()]; + return value !== undefined ? value : null; + } + }, { + key: "setRequestHeader", + value: function setRequestHeader(header, value) { + if (this.readyState !== this.OPENED) { + throw new Error('Request has not been opened'); + } + this._headers[header.toLowerCase()] = String(value); + } + + }, { + key: "setTrackingName", + value: + function setTrackingName(trackingName) { + this._trackingName = trackingName; + return this; + } + + }, { + key: "setPerformanceLogger", + value: + function setPerformanceLogger(performanceLogger) { + this._performanceLogger = performanceLogger; + return this; + } + }, { + key: "open", + value: function open(method, url, async) { + if (this.readyState !== this.UNSENT) { + throw new Error('Cannot open, already sending'); + } + if (async !== undefined && !async) { + throw new Error('Synchronous http requests are not supported'); + } + if (!url) { + throw new Error('Cannot load an empty url'); + } + this._method = method.toUpperCase(); + this._url = url; + this._aborted = false; + this.setReadyState(this.OPENED); + } + }, { + key: "send", + value: function send(data) { + var _this2 = 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 = true; + var incrementalEvents = this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress; + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didSendNetworkData', function (args) { + return _this2.__didUploadProgress.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkResponse', function (args) { + return _this2.__didReceiveResponse.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkData', function (args) { + return _this2.__didReceiveData.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkIncrementalData', function (args) { + return _this2.__didReceiveIncrementalData.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkDataProgress', function (args) { + return _this2.__didReceiveDataProgress.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didCompleteNetworkResponse', function (args) { + return _this2.__didCompleteResponse.apply(_this2, (0, _toConsumableArray2.default)(args)); + })); + var nativeResponseType = 'text'; + if (this._responseType === 'arraybuffer') { + nativeResponseType = 'base64'; + } + if (this._responseType === 'blob') { + nativeResponseType = 'blob'; + } + var doSend = function doSend() { + var friendlyName = _this2._trackingName !== 'unknown' ? _this2._trackingName : _this2._url; + _this2._perfKey = 'network_XMLHttpRequest_' + String(friendlyName); + _this2._performanceLogger.startTimespan(_this2._perfKey); + _$$_REQUIRE(_dependencyMap[11], "invariant")(_this2._method, 'XMLHttpRequest method needs to be defined (%s).', friendlyName); + _$$_REQUIRE(_dependencyMap[11], "invariant")(_this2._url, 'XMLHttpRequest URL needs to be defined (%s).', friendlyName); + _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").sendRequest(_this2._method, _this2._trackingName, _this2._url, _this2._headers, data, + nativeResponseType, incrementalEvents, _this2.timeout, + _this2.__didCreateRequest.bind(_this2), _this2.withCredentials); + }; + if (DEBUG_NETWORK_SEND_DELAY) { + setTimeout(doSend, DEBUG_NETWORK_SEND_DELAY); + } else { + doSend(); + } + } + }, { + key: "abort", + value: function abort() { + this._aborted = true; + if (this._requestId) { + _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").abortRequest(this._requestId); + } + if (!(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 setResponseHeaders(responseHeaders) { + this.responseHeaders = responseHeaders || null; + var headers = responseHeaders || {}; + this._lowerCaseResponseHeaders = Object.keys(headers).reduce(function (lcaseHeaders, headerName) { + lcaseHeaders[headerName.toLowerCase()] = headers[headerName]; + return lcaseHeaders; + }, {}); + } + }, { + key: "setReadyState", + value: function setReadyState(newState) { + this.readyState = newState; + this.dispatchEvent({ + type: 'readystatechange' + }); + if (newState === this.DONE) { + if (this._aborted) { + this.dispatchEvent({ + type: 'abort' + }); + } else if (this._hasError) { + if (this._timedOut) { + this.dispatchEvent({ + type: 'timeout' + }); + } else { + this.dispatchEvent({ + type: 'error' + }); + } + } else { + this.dispatchEvent({ + type: 'load' + }); + } + this.dispatchEvent({ + type: 'loadend' + }); + } + } + + }, { + key: "addEventListener", + value: + function addEventListener(type, listener) { + if (type === 'readystatechange' || type === 'progress') { + this._incrementalEvents = true; + } + (0, _get2.default)((0, _getPrototypeOf2.default)(XMLHttpRequest.prototype), "addEventListener", this).call(this, type, listener); + } + }], [{ + key: "setInterceptor", + value: function setInterceptor(interceptor) { + XMLHttpRequest._interceptor = interceptor; + } + }]); + return XMLHttpRequest; + }(_$$_REQUIRE(_dependencyMap[9], "event-target-shim").apply(void 0, (0, _toConsumableArray2.default)(XHR_EVENTS))); + XMLHttpRequest.UNSENT = UNSENT; + XMLHttpRequest.OPENED = OPENED; + XMLHttpRequest.HEADERS_RECEIVED = HEADERS_RECEIVED; + XMLHttpRequest.LOADING = LOADING; + XMLHttpRequest.DONE = DONE; + XMLHttpRequest._interceptor = null; + module.exports = XMLHttpRequest; +},114,[3,6,115,13,12,50,47,46,117,121,122,17,125,126],"node_modules/react-native/Libraries/Network/XMLHttpRequest.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _get() { + if (typeof Reflect !== "undefined" && Reflect.get) { + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; + } else { + module.exports = _get = function _get(target, property, receiver) { + var base = _$$_REQUIRE(_dependencyMap[0], "./superPropBase.js")(target, property); + if (!base) return; + var desc = Object.getOwnPropertyDescriptor(base, property); + if (desc.get) { + return desc.get.call(arguments.length < 3 ? target : receiver); + } + return desc.value; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + } + return _get.apply(this, arguments); + } + module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; +},115,[116],"node_modules/@babel/runtime/helpers/get.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = _$$_REQUIRE(_dependencyMap[0], "./getPrototypeOf.js")(object); + if (object === null) break; + } + return object; + } + module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; +},116,[46],"node_modules/@babel/runtime/helpers/superPropBase.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeBlobModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeBlobModule")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); + + function uuidv4() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { + var r = Math.random() * 16 | 0, + v = c == 'x' ? r : r & 0x3 | 0x8; + return v.toString(16); + }); + } + + function createBlobCollector(blobId) { + if (global.__blobCollectorProvider == null) { + return null; + } else { + return global.__blobCollectorProvider(blobId); + } + } + + var BlobManager = function () { + function BlobManager() { + (0, _classCallCheck2.default)(this, BlobManager); + } + (0, _createClass2.default)(BlobManager, null, [{ + key: "createFromParts", + value: + + function createFromParts(parts, options) { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + var blobId = uuidv4(); + var items = parts.map(function (part) { + if (part instanceof ArrayBuffer || global.ArrayBufferView && part instanceof global.ArrayBufferView) { + throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported"); + } + if (part instanceof _$$_REQUIRE(_dependencyMap[5], "./Blob")) { + return { + data: part.data, + type: 'blob' + }; + } else { + return { + data: String(part), + type: 'string' + }; + } + }); + var size = items.reduce(function (acc, curr) { + if (curr.type === 'string') { + return acc + global.unescape(encodeURI(curr.data)).length; + } else { + return acc + curr.data.size; + } + }, 0); + _NativeBlobModule.default.createFromParts(items, blobId); + return BlobManager.createFromOptions({ + blobId: blobId, + offset: 0, + size: size, + type: options ? options.type : '', + lastModified: options ? options.lastModified : Date.now() + }); + } + + }, { + key: "createFromOptions", + value: + function createFromOptions(options) { + _$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").register(options.blobId); + return Object.assign(Object.create(_$$_REQUIRE(_dependencyMap[5], "./Blob").prototype), { + data: + options.__collector == null ? Object.assign({}, options, { + __collector: createBlobCollector(options.blobId) + }) : options + }); + } + + }, { + key: "release", + value: + function release(blobId) { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + _$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").unregister(blobId); + if (_$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").has(blobId)) { + return; + } + _NativeBlobModule.default.release(blobId); + } + + }, { + key: "addNetworkingHandler", + value: + function addNetworkingHandler() { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + _NativeBlobModule.default.addNetworkingHandler(); + } + + }, { + key: "addWebSocketHandler", + value: + function addWebSocketHandler(socketId) { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + _NativeBlobModule.default.addWebSocketHandler(socketId); + } + + }, { + key: "removeWebSocketHandler", + value: + function removeWebSocketHandler(socketId) { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + _NativeBlobModule.default.removeWebSocketHandler(socketId); + } + + }, { + key: "sendOverSocket", + value: + function sendOverSocket(blob, socketId) { + (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); + _NativeBlobModule.default.sendOverSocket(blob.data, socketId); + } + }]); + return BlobManager; + }(); + BlobManager.isAvailable = !!_NativeBlobModule.default; + module.exports = BlobManager; +},117,[3,12,13,118,17,119,120],"node_modules/react-native/Libraries/Blob/BlobManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var NativeModule = TurboModuleRegistry.get('BlobModule'); + var constants = null; + var NativeBlobModule = null; + if (NativeModule != null) { + NativeBlobModule = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + }, + addNetworkingHandler: function addNetworkingHandler() { + NativeModule.addNetworkingHandler(); + }, + addWebSocketHandler: function addWebSocketHandler(id) { + NativeModule.addWebSocketHandler(id); + }, + removeWebSocketHandler: function removeWebSocketHandler(id) { + NativeModule.removeWebSocketHandler(id); + }, + sendOverSocket: function sendOverSocket(blob, socketID) { + NativeModule.sendOverSocket(blob, socketID); + }, + createFromParts: function createFromParts(parts, withId) { + NativeModule.createFromParts(parts, withId); + }, + release: function release(blobId) { + NativeModule.release(blobId); + } + }; + } + var _default = NativeBlobModule; + exports.default = _default; +},118,[16],"node_modules/react-native/Libraries/Blob/NativeBlobModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var Blob = function () { + function Blob() { + var parts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var options = arguments.length > 1 ? arguments[1] : undefined; + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, Blob); + var BlobManager = _$$_REQUIRE(_dependencyMap[1], "./BlobManager"); + this.data = BlobManager.createFromParts(parts, options).data; + } + + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")(Blob, [{ + key: "data", + get: + function get() { + if (!this._data) { + throw new Error('Blob has been closed and is no longer available'); + } + return this._data; + }, + set: + function set(data) { + this._data = data; + } + + }, { + key: "slice", + value: function slice(start, end) { + var BlobManager = _$$_REQUIRE(_dependencyMap[1], "./BlobManager"); + var _this$data = this.data, + offset = _this$data.offset, + size = _this$data.size; + if (typeof start === 'number') { + if (start > size) { + start = size; + } + offset += start; + size -= start; + if (typeof end === 'number') { + if (end < 0) { + end = this.size + end; + } + size = end - start; + } + } + return BlobManager.createFromOptions({ + blobId: this.data.blobId, + offset: offset, + size: size + }); + } + + }, { + key: "close", + value: + function close() { + var BlobManager = _$$_REQUIRE(_dependencyMap[1], "./BlobManager"); + BlobManager.release(this.data.blobId); + this.data = null; + } + + }, { + key: "size", + get: + function get() { + return this.data.size; + } + + }, { + key: "type", + get: + function get() { + return this.data.type || ''; + } + }]); + return Blob; + }(); + module.exports = Blob; +},119,[12,117,13],"node_modules/react-native/Libraries/Blob/Blob.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var registry = {}; + var register = function register(id) { + if (registry[id]) { + registry[id]++; + } else { + registry[id] = 1; + } + }; + var unregister = function unregister(id) { + if (registry[id]) { + registry[id]--; + if (registry[id] <= 0) { + delete registry[id]; + } + } + }; + var has = function has(id) { + return registry[id] && registry[id] > 0; + }; + module.exports = { + register: register, + unregister: unregister, + has: has + }; +},120,[],"node_modules/react-native/Libraries/Blob/BlobRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + + var privateData = new WeakMap(); + + var wrappers = new WeakMap(); + + function pd(event) { + var retv = privateData.get(event); + console.assert(retv != null, "'this' is expected an Event object, but got", event); + return retv; + } + + function setCancelFlag(data) { + if (data.passiveListener != null) { + if (typeof console !== "undefined" && typeof console.error === "function") { + console.error("Unable to preventDefault inside passive event listener invocation.", data.passiveListener); + } + return; + } + if (!data.event.cancelable) { + return; + } + data.canceled = true; + if (typeof data.event.preventDefault === "function") { + data.event.preventDefault(); + } + } + + function Event(eventTarget, event) { + privateData.set(this, { + eventTarget: eventTarget, + event: event, + eventPhase: 2, + currentTarget: eventTarget, + canceled: false, + stopped: false, + immediateStopped: false, + passiveListener: null, + timeStamp: event.timeStamp || Date.now() + }); + + Object.defineProperty(this, "isTrusted", { + value: false, + enumerable: true + }); + + var keys = Object.keys(event); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!(key in this)) { + Object.defineProperty(this, key, defineRedirectDescriptor(key)); + } + } + } + + Event.prototype = { + get type() { + return pd(this).event.type; + }, + get target() { + return pd(this).eventTarget; + }, + get currentTarget() { + return pd(this).currentTarget; + }, + composedPath: function composedPath() { + var currentTarget = pd(this).currentTarget; + if (currentTarget == null) { + return []; + } + return [currentTarget]; + }, + get NONE() { + return 0; + }, + get CAPTURING_PHASE() { + return 1; + }, + get AT_TARGET() { + return 2; + }, + get BUBBLING_PHASE() { + return 3; + }, + get eventPhase() { + return pd(this).eventPhase; + }, + stopPropagation: function stopPropagation() { + var data = pd(this); + data.stopped = true; + if (typeof data.event.stopPropagation === "function") { + data.event.stopPropagation(); + } + }, + stopImmediatePropagation: function stopImmediatePropagation() { + var data = pd(this); + data.stopped = true; + data.immediateStopped = true; + if (typeof data.event.stopImmediatePropagation === "function") { + data.event.stopImmediatePropagation(); + } + }, + get bubbles() { + return Boolean(pd(this).event.bubbles); + }, + get cancelable() { + return Boolean(pd(this).event.cancelable); + }, + preventDefault: function preventDefault() { + setCancelFlag(pd(this)); + }, + get defaultPrevented() { + return pd(this).canceled; + }, + get composed() { + return Boolean(pd(this).event.composed); + }, + get timeStamp() { + return pd(this).timeStamp; + }, + get srcElement() { + return pd(this).eventTarget; + }, + get cancelBubble() { + return pd(this).stopped; + }, + set cancelBubble(value) { + if (!value) { + return; + } + var data = pd(this); + data.stopped = true; + if (typeof data.event.cancelBubble === "boolean") { + data.event.cancelBubble = true; + } + }, + get returnValue() { + return !pd(this).canceled; + }, + set returnValue(value) { + if (!value) { + setCancelFlag(pd(this)); + } + }, + initEvent: function initEvent() { + } + }; + + Object.defineProperty(Event.prototype, "constructor", { + value: Event, + configurable: true, + writable: true + }); + + if (typeof window !== "undefined" && typeof window.Event !== "undefined") { + Object.setPrototypeOf(Event.prototype, window.Event.prototype); + + wrappers.set(window.Event.prototype, Event); + } + + function defineRedirectDescriptor(key) { + return { + get: function get() { + return pd(this).event[key]; + }, + set: function set(value) { + pd(this).event[key] = value; + }, + configurable: true, + enumerable: true + }; + } + + function defineCallDescriptor(key) { + return { + value: function value() { + var event = pd(this).event; + return event[key].apply(event, arguments); + }, + configurable: true, + enumerable: true + }; + } + + function defineWrapper(BaseEvent, proto) { + var keys = Object.keys(proto); + if (keys.length === 0) { + return BaseEvent; + } + + function CustomEvent(eventTarget, event) { + BaseEvent.call(this, eventTarget, event); + } + CustomEvent.prototype = Object.create(BaseEvent.prototype, { + constructor: { + value: CustomEvent, + configurable: true, + writable: true + } + }); + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!(key in BaseEvent.prototype)) { + var descriptor = Object.getOwnPropertyDescriptor(proto, key); + var isFunc = typeof descriptor.value === "function"; + Object.defineProperty(CustomEvent.prototype, key, isFunc ? defineCallDescriptor(key) : defineRedirectDescriptor(key)); + } + } + return CustomEvent; + } + + function getWrapper(proto) { + if (proto == null || proto === Object.prototype) { + return Event; + } + var wrapper = wrappers.get(proto); + if (wrapper == null) { + wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto); + wrappers.set(proto, wrapper); + } + return wrapper; + } + + function wrapEvent(eventTarget, event) { + var Wrapper = getWrapper(Object.getPrototypeOf(event)); + return new Wrapper(eventTarget, event); + } + + function isStopped(event) { + return pd(event).immediateStopped; + } + + function setEventPhase(event, eventPhase) { + pd(event).eventPhase = eventPhase; + } + + function setCurrentTarget(event, currentTarget) { + pd(event).currentTarget = currentTarget; + } + + function setPassiveListener(event, passiveListener) { + pd(event).passiveListener = passiveListener; + } + + var listenersMap = new WeakMap(); + + var CAPTURE = 1; + var BUBBLE = 2; + var ATTRIBUTE = 3; + + function isObject(x) { + return x !== null && typeof x === "object"; + } + + function getListeners(eventTarget) { + var listeners = listenersMap.get(eventTarget); + if (listeners == null) { + throw new TypeError("'this' is expected an EventTarget object, but got another value."); + } + return listeners; + } + + function defineEventAttributeDescriptor(eventName) { + return { + get: function get() { + var listeners = getListeners(this); + var node = listeners.get(eventName); + while (node != null) { + if (node.listenerType === ATTRIBUTE) { + return node.listener; + } + node = node.next; + } + return null; + }, + set: function set(listener) { + if (typeof listener !== "function" && !isObject(listener)) { + listener = null; + } + + var listeners = getListeners(this); + + var prev = null; + var node = listeners.get(eventName); + while (node != null) { + if (node.listenerType === ATTRIBUTE) { + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + } else { + prev = node; + } + node = node.next; + } + + if (listener !== null) { + var newNode = { + listener: listener, + listenerType: ATTRIBUTE, + passive: false, + once: false, + next: null + }; + if (prev === null) { + listeners.set(eventName, newNode); + } else { + prev.next = newNode; + } + } + }, + configurable: true, + enumerable: true + }; + } + + function defineEventAttribute(eventTargetPrototype, eventName) { + Object.defineProperty(eventTargetPrototype, "on" + eventName, defineEventAttributeDescriptor(eventName)); + } + + function defineCustomEventTarget(eventNames) { + function CustomEventTarget() { + EventTarget.call(this); + } + CustomEventTarget.prototype = Object.create(EventTarget.prototype, { + constructor: { + value: CustomEventTarget, + configurable: true, + writable: true + } + }); + for (var i = 0; i < eventNames.length; ++i) { + defineEventAttribute(CustomEventTarget.prototype, eventNames[i]); + } + return CustomEventTarget; + } + + function EventTarget() { + if (this instanceof EventTarget) { + listenersMap.set(this, new Map()); + return; + } + if (arguments.length === 1 && Array.isArray(arguments[0])) { + return defineCustomEventTarget(arguments[0]); + } + if (arguments.length > 0) { + var types = new Array(arguments.length); + for (var i = 0; i < arguments.length; ++i) { + types[i] = arguments[i]; + } + return defineCustomEventTarget(types); + } + throw new TypeError("Cannot call a class as a function"); + } + + EventTarget.prototype = { + addEventListener: function addEventListener(eventName, listener, options) { + if (listener == null) { + return; + } + if (typeof listener !== "function" && !isObject(listener)) { + throw new TypeError("'listener' should be a function or an object."); + } + var listeners = getListeners(this); + var optionsIsObj = isObject(options); + var capture = optionsIsObj ? Boolean(options.capture) : Boolean(options); + var listenerType = capture ? CAPTURE : BUBBLE; + var newNode = { + listener: listener, + listenerType: listenerType, + passive: optionsIsObj && Boolean(options.passive), + once: optionsIsObj && Boolean(options.once), + next: null + }; + + var node = listeners.get(eventName); + if (node === undefined) { + listeners.set(eventName, newNode); + return; + } + + var prev = null; + while (node != null) { + if (node.listener === listener && node.listenerType === listenerType) { + return; + } + prev = node; + node = node.next; + } + + prev.next = newNode; + }, + removeEventListener: function removeEventListener(eventName, listener, options) { + if (listener == null) { + return; + } + var listeners = getListeners(this); + var capture = isObject(options) ? Boolean(options.capture) : Boolean(options); + var listenerType = capture ? CAPTURE : BUBBLE; + var prev = null; + var node = listeners.get(eventName); + while (node != null) { + if (node.listener === listener && node.listenerType === listenerType) { + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + return; + } + prev = node; + node = node.next; + } + }, + dispatchEvent: function dispatchEvent(event) { + if (event == null || typeof event.type !== "string") { + throw new TypeError('"event.type" should be a string.'); + } + + var listeners = getListeners(this); + var eventName = event.type; + var node = listeners.get(eventName); + if (node == null) { + return true; + } + + var wrappedEvent = wrapEvent(this, event); + + var prev = null; + while (node != null) { + if (node.once) { + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + } else { + prev = node; + } + + setPassiveListener(wrappedEvent, node.passive ? node.listener : null); + if (typeof node.listener === "function") { + try { + node.listener.call(this, wrappedEvent); + } catch (err) { + if (typeof console !== "undefined" && typeof console.error === "function") { + console.error(err); + } + } + } else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === "function") { + node.listener.handleEvent(wrappedEvent); + } + + if (isStopped(wrappedEvent)) { + break; + } + node = node.next; + } + setPassiveListener(wrappedEvent, null); + setEventPhase(wrappedEvent, 0); + setCurrentTarget(wrappedEvent, null); + return !wrappedEvent.defaultPrevented; + } + }; + + Object.defineProperty(EventTarget.prototype, "constructor", { + value: EventTarget, + configurable: true, + writable: true + }); + + if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") { + Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype); + } + exports.defineEventAttribute = defineEventAttribute; + exports.EventTarget = EventTarget; + exports.default = EventTarget; + module.exports = EventTarget; + module.exports.EventTarget = module.exports["default"] = EventTarget; + module.exports.defineEventAttribute = defineEventAttribute; +},121,[],"node_modules/event-target-shim/dist/event-target-shim.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./createPerformanceLogger")); + + var GlobalPerformanceLogger = (0, _createPerformanceLogger.default)(); + module.exports = GlobalPerformanceLogger; +},122,[3,123],"node_modules/react-native/Libraries/Utilities/GlobalPerformanceLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createPerformanceLogger; + exports.getCurrentTimestamp = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _global$nativeQPLTime; + var _cookies = {}; + var PRINT_TO_CONSOLE = false; + + var getCurrentTimestamp = (_global$nativeQPLTime = global.nativeQPLTimestamp) != null ? _global$nativeQPLTime : global.performance.now.bind(global.performance); + exports.getCurrentTimestamp = getCurrentTimestamp; + var PerformanceLogger = function () { + function PerformanceLogger() { + (0, _classCallCheck2.default)(this, PerformanceLogger); + this._timespans = {}; + this._extras = {}; + this._points = {}; + this._pointExtras = {}; + this._closed = false; + } + (0, _createClass2.default)(PerformanceLogger, [{ + key: "addTimespan", + value: function addTimespan(key, startTime, endTime, startExtras, endExtras) { + if (this._closed) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: addTimespan - has closed ignoring: ', key); + } + return; + } + if (this._timespans[key]) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to add a timespan that already exists ', key); + } + return; + } + this._timespans[key] = { + startTime: startTime, + endTime: endTime, + totalTime: endTime - (startTime || 0), + startExtras: startExtras, + endExtras: endExtras + }; + } + }, { + key: "append", + value: function append(performanceLogger) { + this._timespans = Object.assign({}, performanceLogger.getTimespans(), this._timespans); + this._extras = Object.assign({}, performanceLogger.getExtras(), this._extras); + this._points = Object.assign({}, performanceLogger.getPoints(), this._points); + this._pointExtras = Object.assign({}, performanceLogger.getPointExtras(), this._pointExtras); + } + }, { + key: "clear", + value: function clear() { + this._timespans = {}; + this._extras = {}; + this._points = {}; + if (PRINT_TO_CONSOLE) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'clear'); + } + } + }, { + key: "clearCompleted", + value: function clearCompleted() { + for (var _key in this._timespans) { + var _this$_timespans$_key; + if (((_this$_timespans$_key = this._timespans[_key]) == null ? void 0 : _this$_timespans$_key.totalTime) != null) { + delete this._timespans[_key]; + } + } + this._extras = {}; + this._points = {}; + if (PRINT_TO_CONSOLE) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'clearCompleted'); + } + } + }, { + key: "close", + value: function close() { + this._closed = true; + } + }, { + key: "currentTimestamp", + value: function currentTimestamp() { + return getCurrentTimestamp(); + } + }, { + key: "getExtras", + value: function getExtras() { + return this._extras; + } + }, { + key: "getPoints", + value: function getPoints() { + return this._points; + } + }, { + key: "getPointExtras", + value: function getPointExtras() { + return this._pointExtras; + } + }, { + key: "getTimespans", + value: function getTimespans() { + return this._timespans; + } + }, { + key: "hasTimespan", + value: function hasTimespan(key) { + return !!this._timespans[key]; + } + }, { + key: "isClosed", + value: function isClosed() { + return this._closed; + } + }, { + key: "logEverything", + value: function logEverything() { + if (PRINT_TO_CONSOLE) { + for (var _key2 in this._timespans) { + var _this$_timespans$_key2; + if (((_this$_timespans$_key2 = this._timespans[_key2]) == null ? void 0 : _this$_timespans$_key2.totalTime) != null) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")(_key2 + ': ' + this._timespans[_key2].totalTime + 'ms'); + } + } + + _$$_REQUIRE(_dependencyMap[3], "./infoLog")(this._extras); + + for (var _key3 in this._points) { + if (this._points[_key3] != null) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")(_key3 + ': ' + this._points[_key3] + 'ms'); + } + } + } + } + }, { + key: "markPoint", + value: function markPoint(key) { + var timestamp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentTimestamp(); + var extras = arguments.length > 2 ? arguments[2] : undefined; + if (this._closed) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: markPoint - has closed ignoring: ', key); + } + return; + } + if (this._points[key] != null) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to mark a point that has been already logged ', key); + } + return; + } + this._points[key] = timestamp; + if (extras) { + this._pointExtras[key] = extras; + } + } + }, { + key: "removeExtra", + value: function removeExtra(key) { + var value = this._extras[key]; + delete this._extras[key]; + return value; + } + }, { + key: "setExtra", + value: function setExtra(key, value) { + if (this._closed) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: setExtra - has closed ignoring: ', key); + } + return; + } + if (this._extras.hasOwnProperty(key)) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to set an extra that already exists ', { + key: key, + currentValue: this._extras[key], + attemptedValue: value + }); + } + return; + } + this._extras[key] = value; + } + }, { + key: "startTimespan", + value: function startTimespan(key) { + var timestamp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentTimestamp(); + var extras = arguments.length > 2 ? arguments[2] : undefined; + if (this._closed) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: startTimespan - has closed ignoring: ', key); + } + return; + } + if (this._timespans[key]) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to start a timespan that already exists ', key); + } + return; + } + this._timespans[key] = { + startTime: timestamp, + startExtras: extras + }; + _cookies[key] = _$$_REQUIRE(_dependencyMap[4], "../Performance/Systrace").beginAsyncEvent(key); + if (PRINT_TO_CONSOLE) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'start: ' + key); + } + } + }, { + key: "stopTimespan", + value: function stopTimespan(key) { + var timestamp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentTimestamp(); + var extras = arguments.length > 2 ? arguments[2] : undefined; + if (this._closed) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: stopTimespan - has closed ignoring: ', key); + } + return; + } + var timespan = this._timespans[key]; + if (!timespan || timespan.startTime == null) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to end a timespan that has not started ', key); + } + return; + } + if (timespan.endTime != null) { + if (PRINT_TO_CONSOLE && __DEV__) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to end a timespan that has already ended ', key); + } + return; + } + timespan.endExtras = extras; + timespan.endTime = timestamp; + timespan.totalTime = timespan.endTime - (timespan.startTime || 0); + if (PRINT_TO_CONSOLE) { + _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'end: ' + key); + } + if (_cookies[key] != null) { + _$$_REQUIRE(_dependencyMap[4], "../Performance/Systrace").endAsyncEvent(key, _cookies[key]); + delete _cookies[key]; + } + } + }]); + return PerformanceLogger; + }(); + function createPerformanceLogger() { + return new PerformanceLogger(); + } +},123,[3,12,13,124,28],"node_modules/react-native/Libraries/Utilities/createPerformanceLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function infoLog() { + var _console; + return (_console = console).log.apply(_console, arguments); + } + module.exports = infoLog; +},124,[],"node_modules/react-native/Libraries/Utilities/infoLog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + exports.byteLength = byteLength; + exports.toByteArray = toByteArray; + exports.fromByteArray = fromByteArray; + var lookup = []; + var revLookup = []; + var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; + var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i]; + revLookup[code.charCodeAt(i)] = i; + } + + revLookup['-'.charCodeAt(0)] = 62; + revLookup['_'.charCodeAt(0)] = 63; + function getLens(b64) { + var len = b64.length; + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4'); + } + + var validLen = b64.indexOf('='); + if (validLen === -1) validLen = len; + var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; + return [validLen, placeHoldersLen]; + } + + function byteLength(b64) { + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + function _byteLength(b64, validLen, placeHoldersLen) { + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + function toByteArray(b64) { + var tmp; + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); + var curByte = 0; + + var len = placeHoldersLen > 0 ? validLen - 4 : validLen; + var i; + for (i = 0; i < len; i += 4) { + tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)]; + arr[curByte++] = tmp >> 16 & 0xFF; + arr[curByte++] = tmp >> 8 & 0xFF; + arr[curByte++] = tmp & 0xFF; + } + if (placeHoldersLen === 2) { + tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4; + arr[curByte++] = tmp & 0xFF; + } + if (placeHoldersLen === 1) { + tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2; + arr[curByte++] = tmp >> 8 & 0xFF; + arr[curByte++] = tmp & 0xFF; + } + return arr; + } + function tripletToBase64(num) { + return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]; + } + function encodeChunk(uint8, start, end) { + var tmp; + var output = []; + for (var i = start; i < end; i += 3) { + tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF); + output.push(tripletToBase64(tmp)); + } + return output.join(''); + } + function fromByteArray(uint8) { + var tmp; + var len = uint8.length; + var extraBytes = len % 3; + var parts = []; + var maxChunkLength = 16383; + + for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { + parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength)); + } + + if (extraBytes === 1) { + tmp = uint8[len - 1]; + parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1]; + parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '='); + } + return parts.join(''); + } +},125,[],"node_modules/base64-js/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeNetworkingIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeNetworkingIOS")); + var _convertRequestBody = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./convertRequestBody")); + var RCTNetworking = { + addListener: function addListener(eventType, listener, context) { + return _RCTDeviceEventEmitter.default.addListener(eventType, listener, context); + }, + sendRequest: function sendRequest(method, trackingName, url, headers, data, responseType, incrementalUpdates, timeout, callback, withCredentials) { + var body = (0, _convertRequestBody.default)(data); + _NativeNetworkingIOS.default.sendRequest({ + method: method, + url: url, + data: Object.assign({}, body, { + trackingName: trackingName + }), + headers: headers, + responseType: responseType, + incrementalUpdates: incrementalUpdates, + timeout: timeout, + withCredentials: withCredentials + }, callback); + }, + abortRequest: function abortRequest(requestId) { + _NativeNetworkingIOS.default.abortRequest(requestId); + }, + clearCookies: function clearCookies(callback) { + _NativeNetworkingIOS.default.clearCookies(callback); + } + }; + module.exports = RCTNetworking; +},126,[3,4,127,128],"node_modules/react-native/Libraries/Network/RCTNetworking.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('Networking'); + exports.default = _default; +},127,[16],"node_modules/react-native/Libraries/Network/NativeNetworkingIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function convertRequestBody(body) { + if (typeof body === 'string') { + return { + string: body + }; + } + if (body instanceof _$$_REQUIRE(_dependencyMap[0], "../Blob/Blob")) { + return { + blob: body.data + }; + } + if (body instanceof _$$_REQUIRE(_dependencyMap[1], "./FormData")) { + return { + formData: body.getParts() + }; + } + if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) { + return { + base64: _$$_REQUIRE(_dependencyMap[2], "../Utilities/binaryToBase64")(body) + }; + } + return body; + } + module.exports = convertRequestBody; +},128,[119,129,130],"node_modules/react-native/Libraries/Network/convertRequestBody.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var FormData = function () { + function FormData() { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, FormData); + this._parts = []; + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(FormData, [{ + key: "append", + value: function append(key, value) { + this._parts.push([key, value]); + } + }, { + key: "getAll", + value: function getAll(key) { + return this._parts.filter(function (_ref) { + var _ref2 = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")(_ref, 1), + name = _ref2[0]; + return name === key; + }).map(function (_ref3) { + var _ref4 = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")(_ref3, 2), + value = _ref4[1]; + return value; + }); + } + }, { + key: "getParts", + value: function getParts() { + return this._parts.map(function (_ref5) { + var _ref6 = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")(_ref5, 2), + name = _ref6[0], + value = _ref6[1]; + var contentDisposition = 'form-data; name="' + name + '"'; + var headers = { + 'content-disposition': contentDisposition + }; + + if (typeof value === 'object' && !Array.isArray(value) && value) { + if (typeof value.name === 'string') { + headers['content-disposition'] += '; filename="' + value.name + '"'; + } + if (typeof value.type === 'string') { + headers['content-type'] = value.type; + } + return Object.assign({}, value, { + headers: headers, + fieldName: name + }); + } + return { + string: String(value), + headers: headers, + fieldName: name + }; + }); + } + }]); + return FormData; + }(); + module.exports = FormData; +},129,[12,13,19],"node_modules/react-native/Libraries/Network/FormData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function binaryToBase64(data) { + if (data instanceof ArrayBuffer) { + data = new Uint8Array(data); + } + if (data instanceof Uint8Array) { + return _$$_REQUIRE(_dependencyMap[0], "base64-js").fromByteArray(data); + } + if (!ArrayBuffer.isView(data)) { + throw new Error('data must be ArrayBuffer or typed array'); + } + var _ref = data, + buffer = _ref.buffer, + byteOffset = _ref.byteOffset, + byteLength = _ref.byteLength; + return _$$_REQUIRE(_dependencyMap[0], "base64-js").fromByteArray(new Uint8Array(buffer, byteOffset, byteLength)); + } + module.exports = binaryToBase64; +},130,[125],"node_modules/react-native/Libraries/Utilities/binaryToBase64.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Blob = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Blob/Blob")); + var _BlobManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../EventEmitter/NativeEventEmitter")); + var _binaryToBase = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../Utilities/binaryToBase64")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../Utilities/Platform")); + var _NativeWebSocketModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./NativeWebSocketModule")); + var _WebSocketEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./WebSocketEvent")); + var _base64Js = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "base64-js")); + var _eventTargetShim = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "event-target-shim")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "invariant")); + var _excluded = ["headers"]; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var CONNECTING = 0; + var OPEN = 1; + var CLOSING = 2; + var CLOSED = 3; + var CLOSE_NORMAL = 1000; + var WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open']; + var nextWebSocketId = 0; + var WebSocket = function (_ref) { + (0, _inherits2.default)(WebSocket, _ref); + var _super = _createSuper(WebSocket); + function WebSocket(url, protocols, options) { + var _this; + (0, _classCallCheck2.default)(this, WebSocket); + _this = _super.call(this); + _this.CONNECTING = CONNECTING; + _this.OPEN = OPEN; + _this.CLOSING = CLOSING; + _this.CLOSED = CLOSED; + _this.readyState = CONNECTING; + _this.url = url; + if (typeof protocols === 'string') { + protocols = [protocols]; + } + var _ref2 = options || {}, + _ref2$headers = _ref2.headers, + headers = _ref2$headers === void 0 ? {} : _ref2$headers, + unrecognized = (0, _objectWithoutProperties2.default)(_ref2, _excluded); + + if (unrecognized && typeof unrecognized.origin === 'string') { + console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'); + headers.origin = unrecognized.origin; + delete unrecognized.origin; + } + + if (Object.keys(unrecognized).length > 0) { + console.warn('Unrecognized WebSocket connection option(s) `' + Object.keys(unrecognized).join('`, `') + '`. ' + 'Did you mean to put these under `headers`?'); + } + if (!Array.isArray(protocols)) { + protocols = null; + } + _this._eventEmitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeWebSocketModule.default); + _this._socketId = nextWebSocketId++; + _this._registerEvents(); + _NativeWebSocketModule.default.connect(url, protocols, { + headers: headers + }, _this._socketId); + return _this; + } + (0, _createClass2.default)(WebSocket, [{ + key: "binaryType", + get: function get() { + return this._binaryType; + }, + set: function set(binaryType) { + if (binaryType !== 'blob' && binaryType !== 'arraybuffer') { + throw new Error("binaryType must be either 'blob' or 'arraybuffer'"); + } + if (this._binaryType === 'blob' || binaryType === 'blob') { + (0, _invariant.default)(_BlobManager.default.isAvailable, 'Native module BlobModule is required for blob support'); + if (binaryType === 'blob') { + _BlobManager.default.addWebSocketHandler(this._socketId); + } else { + _BlobManager.default.removeWebSocketHandler(this._socketId); + } + } + this._binaryType = binaryType; + } + }, { + key: "close", + value: function close(code, reason) { + if (this.readyState === this.CLOSING || this.readyState === this.CLOSED) { + return; + } + this.readyState = this.CLOSING; + this._close(code, reason); + } + }, { + key: "send", + value: function send(data) { + if (this.readyState === this.CONNECTING) { + throw new Error('INVALID_STATE_ERR'); + } + if (data instanceof _Blob.default) { + (0, _invariant.default)(_BlobManager.default.isAvailable, 'Native module BlobModule is required for blob support'); + _BlobManager.default.sendOverSocket(data, this._socketId); + return; + } + if (typeof data === 'string') { + _NativeWebSocketModule.default.send(data, this._socketId); + return; + } + if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) { + _NativeWebSocketModule.default.sendBinary((0, _binaryToBase.default)(data), this._socketId); + return; + } + throw new Error('Unsupported data type'); + } + }, { + key: "ping", + value: function ping() { + if (this.readyState === this.CONNECTING) { + throw new Error('INVALID_STATE_ERR'); + } + _NativeWebSocketModule.default.ping(this._socketId); + } + }, { + key: "_close", + value: function _close(code, reason) { + var statusCode = typeof code === 'number' ? code : CLOSE_NORMAL; + var closeReason = typeof reason === 'string' ? reason : ''; + _NativeWebSocketModule.default.close(statusCode, closeReason, this._socketId); + if (_BlobManager.default.isAvailable && this._binaryType === 'blob') { + _BlobManager.default.removeWebSocketHandler(this._socketId); + } + } + }, { + key: "_unregisterEvents", + value: function _unregisterEvents() { + this._subscriptions.forEach(function (e) { + return e.remove(); + }); + this._subscriptions = []; + } + }, { + key: "_registerEvents", + value: function _registerEvents() { + var _this2 = this; + this._subscriptions = [this._eventEmitter.addListener('websocketMessage', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + var data = ev.data; + switch (ev.type) { + case 'binary': + data = _base64Js.default.toByteArray(ev.data).buffer; + break; + case 'blob': + data = _BlobManager.default.createFromOptions(ev.data); + break; + } + _this2.dispatchEvent(new _WebSocketEvent.default('message', { + data: data + })); + }), this._eventEmitter.addListener('websocketOpen', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + _this2.readyState = _this2.OPEN; + _this2.protocol = ev.protocol; + _this2.dispatchEvent(new _WebSocketEvent.default('open')); + }), this._eventEmitter.addListener('websocketClosed', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + _this2.readyState = _this2.CLOSED; + _this2.dispatchEvent(new _WebSocketEvent.default('close', { + code: ev.code, + reason: ev.reason + })); + _this2._unregisterEvents(); + _this2.close(); + }), this._eventEmitter.addListener('websocketFailed', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + _this2.readyState = _this2.CLOSED; + _this2.dispatchEvent(new _WebSocketEvent.default('error', { + message: ev.message + })); + _this2.dispatchEvent(new _WebSocketEvent.default('close', { + message: ev.message + })); + _this2._unregisterEvents(); + _this2.close(); + })]; + } + }]); + return WebSocket; + }(_eventTargetShim.default.apply(void 0, WEBSOCKET_EVENTS)); + WebSocket.CONNECTING = CONNECTING; + WebSocket.OPEN = OPEN; + WebSocket.CLOSING = CLOSING; + WebSocket.CLOSED = CLOSED; + module.exports = WebSocket; +},131,[3,132,12,13,50,47,46,119,117,134,130,14,135,136,125,121,17],"node_modules/react-native/Libraries/WebSocket/WebSocket.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _$$_REQUIRE(_dependencyMap[0], "./objectWithoutPropertiesLoose.js")(source, excluded); + var key, i; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + return target; + } + module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; +},132,[133],"node_modules/@babel/runtime/helpers/objectWithoutProperties.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; + } + module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; +},133,[],"node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./RCTDeviceEventEmitter")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); + var NativeEventEmitter = function () { + function NativeEventEmitter(nativeModule) { + (0, _classCallCheck2.default)(this, NativeEventEmitter); + if (_Platform.default.OS === 'ios') { + (0, _invariant.default)(nativeModule != null, '`new NativeEventEmitter()` requires a non-null argument.'); + } + var hasAddListener = + !!nativeModule && typeof nativeModule.addListener === 'function'; + var hasRemoveListeners = + !!nativeModule && typeof nativeModule.removeListeners === 'function'; + if (nativeModule && hasAddListener && hasRemoveListeners) { + this._nativeModule = nativeModule; + } else if (nativeModule != null) { + if (!hasAddListener) { + console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'); + } + if (!hasRemoveListeners) { + console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'); + } + } + } + (0, _createClass2.default)(NativeEventEmitter, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + var _this$_nativeModule, + _this = this; + (_this$_nativeModule = this._nativeModule) == null ? void 0 : _this$_nativeModule.addListener(eventType); + var subscription = _RCTDeviceEventEmitter.default.addListener(eventType, listener, context); + return { + remove: function remove() { + if (subscription != null) { + var _this$_nativeModule2; + (_this$_nativeModule2 = _this._nativeModule) == null ? void 0 : _this$_nativeModule2.removeListeners(1); + subscription.remove(); + subscription = null; + } + } + }; + } + }, { + key: "emit", + value: function emit(eventType) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + _RCTDeviceEventEmitter.default.emit.apply(_RCTDeviceEventEmitter.default, [eventType].concat(args)); + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + var _this$_nativeModule3; + (0, _invariant.default)(eventType != null, '`NativeEventEmitter.removeAllListener()` requires a non-null argument.'); + (_this$_nativeModule3 = this._nativeModule) == null ? void 0 : _this$_nativeModule3.removeListeners(this.listenerCount(eventType)); + _RCTDeviceEventEmitter.default.removeAllListeners(eventType); + } + }, { + key: "listenerCount", + value: function listenerCount(eventType) { + return _RCTDeviceEventEmitter.default.listenerCount(eventType); + } + }]); + return NativeEventEmitter; + }(); + exports.default = NativeEventEmitter; +},134,[3,12,13,14,4,17],"node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('WebSocketModule'); + exports.default = _default; +},135,[16],"node_modules/react-native/Libraries/WebSocket/NativeWebSocketModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var WebSocketEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function WebSocketEvent(type, eventInitDict) { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, WebSocketEvent); + this.type = type.toString(); + Object.assign(this, eventInitDict); + }); + module.exports = WebSocketEvent; +},136,[13,12],"node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var File = function (_Blob) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(File, _Blob); + var _super = _createSuper(File); + function File(parts, name, options) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, File); + _$$_REQUIRE(_dependencyMap[4], "invariant")(parts != null && name != null, 'Failed to construct `File`: Must pass both `parts` and `name` arguments.'); + _this = _super.call(this, parts, options); + _this.data.name = name; + return _this; + } + + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(File, [{ + key: "name", + get: + function get() { + _$$_REQUIRE(_dependencyMap[4], "invariant")(this.data.name != null, 'Files must have a name set.'); + return this.data.name; + } + + }, { + key: "lastModified", + get: + function get() { + return this.data.lastModified || 0; + } + }]); + return File; + }(_$$_REQUIRE(_dependencyMap[6], "./Blob")); + module.exports = File; +},137,[46,47,50,12,17,13,119],"node_modules/react-native/Libraries/Blob/File.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeFileReaderModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeFileReaderModule")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var READER_EVENTS = ['abort', 'error', 'load', 'loadstart', 'loadend', 'progress']; + var EMPTY = 0; + var LOADING = 1; + var DONE = 2; + var FileReader = function (_ref) { + (0, _inherits2.default)(FileReader, _ref); + var _super = _createSuper(FileReader); + function FileReader() { + var _this; + (0, _classCallCheck2.default)(this, FileReader); + _this = _super.call(this); + _this.EMPTY = EMPTY; + _this.LOADING = LOADING; + _this.DONE = DONE; + _this._aborted = false; + _this._reset(); + return _this; + } + (0, _createClass2.default)(FileReader, [{ + key: "_reset", + value: function _reset() { + this._readyState = EMPTY; + this._error = null; + this._result = null; + } + }, { + key: "_setReadyState", + value: function _setReadyState(newState) { + this._readyState = newState; + this.dispatchEvent({ + type: 'readystatechange' + }); + if (newState === DONE) { + if (this._aborted) { + this.dispatchEvent({ + type: 'abort' + }); + } else if (this._error) { + this.dispatchEvent({ + type: 'error' + }); + } else { + this.dispatchEvent({ + type: 'load' + }); + } + this.dispatchEvent({ + type: 'loadend' + }); + } + } + }, { + key: "readAsArrayBuffer", + value: function readAsArrayBuffer() { + throw new Error('FileReader.readAsArrayBuffer is not implemented'); + } + }, { + key: "readAsDataURL", + value: function readAsDataURL(blob) { + var _this2 = this; + this._aborted = false; + if (blob == null) { + throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'"); + } + _NativeFileReaderModule.default.readAsDataURL(blob.data).then(function (text) { + if (_this2._aborted) { + return; + } + _this2._result = text; + _this2._setReadyState(DONE); + }, function (error) { + if (_this2._aborted) { + return; + } + _this2._error = error; + _this2._setReadyState(DONE); + }); + } + }, { + key: "readAsText", + value: function readAsText(blob) { + var _this3 = this; + var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'UTF-8'; + this._aborted = false; + if (blob == null) { + throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'"); + } + _NativeFileReaderModule.default.readAsText(blob.data, encoding).then(function (text) { + if (_this3._aborted) { + return; + } + _this3._result = text; + _this3._setReadyState(DONE); + }, function (error) { + if (_this3._aborted) { + return; + } + _this3._error = error; + _this3._setReadyState(DONE); + }); + } + }, { + key: "abort", + value: function abort() { + this._aborted = true; + if (this._readyState !== EMPTY && this._readyState !== DONE) { + this._reset(); + this._setReadyState(DONE); + } + this._reset(); + } + }, { + key: "readyState", + get: function get() { + return this._readyState; + } + }, { + key: "error", + get: function get() { + return this._error; + } + }, { + key: "result", + get: function get() { + return this._result; + } + }]); + return FileReader; + }(_$$_REQUIRE(_dependencyMap[7], "event-target-shim").apply(void 0, READER_EVENTS)); + FileReader.EMPTY = EMPTY; + FileReader.LOADING = LOADING; + FileReader.DONE = DONE; + module.exports = FileReader; +},138,[3,12,13,50,47,46,139,121],"node_modules/react-native/Libraries/Blob/FileReader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('FileReaderModule'); + exports.default = _default; +},139,[16],"node_modules/react-native/Libraries/Blob/NativeFileReaderModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.URLSearchParams = exports.URL = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeBlobModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeBlobModule")); + var _Symbol$iterator; + var BLOB_URL_PREFIX = null; + if (_NativeBlobModule.default && typeof _NativeBlobModule.default.getConstants().BLOB_URI_SCHEME === 'string') { + var constants = _NativeBlobModule.default.getConstants(); + BLOB_URL_PREFIX = constants.BLOB_URI_SCHEME + ':'; + if (typeof constants.BLOB_URI_HOST === 'string') { + BLOB_URL_PREFIX += "//" + constants.BLOB_URI_HOST + "/"; + } + } + + _Symbol$iterator = Symbol.iterator; + var URLSearchParams = function () { + function URLSearchParams(params) { + var _this = this; + (0, _classCallCheck2.default)(this, URLSearchParams); + this._searchParams = []; + if (typeof params === 'object') { + Object.keys(params).forEach(function (key) { + return _this.append(key, params[key]); + }); + } + } + (0, _createClass2.default)(URLSearchParams, [{ + key: "append", + value: function append(key, value) { + this._searchParams.push([key, value]); + } + }, { + key: "delete", + value: function _delete(name) { + throw new Error('URLSearchParams.delete is not implemented'); + } + }, { + key: "get", + value: function get(name) { + throw new Error('URLSearchParams.get is not implemented'); + } + }, { + key: "getAll", + value: function getAll(name) { + throw new Error('URLSearchParams.getAll is not implemented'); + } + }, { + key: "has", + value: function has(name) { + throw new Error('URLSearchParams.has is not implemented'); + } + }, { + key: "set", + value: function set(name, value) { + throw new Error('URLSearchParams.set is not implemented'); + } + }, { + key: "sort", + value: function sort() { + throw new Error('URLSearchParams.sort is not implemented'); + } + + }, { + key: _Symbol$iterator, + value: + function value() { + return this._searchParams[Symbol.iterator](); + } + }, { + key: "toString", + value: function toString() { + if (this._searchParams.length === 0) { + return ''; + } + var last = this._searchParams.length - 1; + return this._searchParams.reduce(function (acc, curr, index) { + return acc + encodeURIComponent(curr[0]) + '=' + encodeURIComponent(curr[1]) + (index === last ? '' : '&'); + }, ''); + } + }]); + return URLSearchParams; + }(); + exports.URLSearchParams = URLSearchParams; + function validateBaseUrl(url) { + 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(url); + } + var URL = function () { + function URL(url, base) { + (0, _classCallCheck2.default)(this, URL); + this._searchParamsInstance = null; + var baseUrl = null; + if (!base || validateBaseUrl(url)) { + this._url = url; + if (!this._url.endsWith('/')) { + this._url += '/'; + } + } else { + if (typeof base === 'string') { + baseUrl = base; + if (!validateBaseUrl(baseUrl)) { + throw new TypeError("Invalid base URL: " + baseUrl); + } + } else { + baseUrl = base.toString(); + } + if (baseUrl.endsWith('/')) { + baseUrl = baseUrl.slice(0, baseUrl.length - 1); + } + if (!url.startsWith('/')) { + url = "/" + url; + } + if (baseUrl.endsWith(url)) { + url = ''; + } + this._url = "" + baseUrl + url; + } + } + (0, _createClass2.default)(URL, [{ + key: "hash", + get: function get() { + throw new Error('URL.hash is not implemented'); + } + }, { + key: "host", + get: function get() { + throw new Error('URL.host is not implemented'); + } + }, { + key: "hostname", + get: function get() { + throw new Error('URL.hostname is not implemented'); + } + }, { + key: "href", + get: function get() { + return this.toString(); + } + }, { + key: "origin", + get: function get() { + throw new Error('URL.origin is not implemented'); + } + }, { + key: "password", + get: function get() { + throw new Error('URL.password is not implemented'); + } + }, { + key: "pathname", + get: function get() { + throw new Error('URL.pathname not implemented'); + } + }, { + key: "port", + get: function get() { + throw new Error('URL.port is not implemented'); + } + }, { + key: "protocol", + get: function get() { + throw new Error('URL.protocol is not implemented'); + } + }, { + key: "search", + get: function get() { + throw new Error('URL.search is not implemented'); + } + }, { + key: "searchParams", + get: function get() { + if (this._searchParamsInstance == null) { + this._searchParamsInstance = new URLSearchParams(); + } + return this._searchParamsInstance; + } + }, { + key: "toJSON", + value: function toJSON() { + return this.toString(); + } + }, { + key: "toString", + value: function toString() { + if (this._searchParamsInstance === null) { + return this._url; + } + var instanceString = this._searchParamsInstance.toString(); + var separator = this._url.indexOf('?') > -1 ? '&' : '?'; + return this._url + separator + instanceString; + } + }, { + key: "username", + get: function get() { + throw new Error('URL.username is not implemented'); + } + }], [{ + key: "createObjectURL", + value: function createObjectURL(blob) { + if (BLOB_URL_PREFIX === null) { + throw new Error('Cannot create URL for blob!'); + } + return "" + BLOB_URL_PREFIX + blob.data.blobId + "?offset=" + blob.data.offset + "&size=" + blob.size; + } + }, { + key: "revokeObjectURL", + value: function revokeObjectURL(url) { + } + }]); + return URL; + }(); + exports.URL = URL; +},140,[3,12,13,118],"node_modules/react-native/Libraries/Blob/URL.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + Object.defineProperty(exports, '__esModule', { + value: true + }); + var AbortSignal = function (_eventTargetShim$Even) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AbortSignal, _eventTargetShim$Even); + var _super = _createSuper(AbortSignal); + function AbortSignal() { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AbortSignal); + _this = _super.call(this); + throw new TypeError("AbortSignal cannot be constructed directly"); + return _this; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AbortSignal, [{ + key: "aborted", + get: + function get() { + var aborted = abortedFlags.get(this); + if (typeof aborted !== "boolean") { + throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + (this === null ? "null" : typeof this)); + } + return aborted; + } + }]); + return AbortSignal; + }(_$$_REQUIRE(_dependencyMap[5], "event-target-shim").EventTarget); + _$$_REQUIRE(_dependencyMap[5], "event-target-shim").defineEventAttribute(AbortSignal.prototype, "abort"); + function createAbortSignal() { + var signal = Object.create(AbortSignal.prototype); + _$$_REQUIRE(_dependencyMap[5], "event-target-shim").EventTarget.call(signal); + abortedFlags.set(signal, false); + return signal; + } + function abortSignal(signal) { + if (abortedFlags.get(signal) !== false) { + return; + } + abortedFlags.set(signal, true); + signal.dispatchEvent({ + type: "abort" + }); + } + var abortedFlags = new WeakMap(); + Object.defineProperties(AbortSignal.prototype, { + aborted: { + enumerable: true + } + }); + if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortSignal" + }); + } + + var AbortController = function () { + function AbortController() { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AbortController); + signals.set(this, createAbortSignal()); + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AbortController, [{ + key: "signal", + get: + function get() { + return getSignal(this); + } + }, { + key: "abort", + value: + function abort() { + abortSignal(getSignal(this)); + } + }]); + return AbortController; + }(); + var signals = new WeakMap(); + function getSignal(controller) { + var signal = signals.get(controller); + if (signal == null) { + throw new TypeError("Expected 'this' to be an 'AbortController' object, but got " + (controller === null ? "null" : typeof controller)); + } + return signal; + } + Object.defineProperties(AbortController.prototype, { + signal: { + enumerable: true + }, + abort: { + enumerable: true + } + }); + if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortController" + }); + } + exports.AbortController = AbortController; + exports.AbortSignal = AbortSignal; + exports.default = AbortController; + module.exports = AbortController; + module.exports.AbortController = module.exports["default"] = AbortController; + module.exports.AbortSignal = AbortSignal; +},141,[46,47,50,12,13,121],"node_modules/abort-controller/dist/abort-controller.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (!global.alert) { + global.alert = function (text) { + _$$_REQUIRE(_dependencyMap[0], "../Alert/Alert").alert('Alert', '' + text); + }; + } +},142,[143],"node_modules/react-native/Libraries/Core/setUpAlert.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + var _RCTAlertManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./RCTAlertManager")); + var Alert = function () { + function Alert() { + (0, _classCallCheck2.default)(this, Alert); + } + (0, _createClass2.default)(Alert, null, [{ + key: "alert", + value: function alert(title, message, buttons, options) { + if (_Platform.default.OS === 'ios') { + Alert.prompt(title, message, buttons, 'default', undefined, undefined, options); + } else if (_Platform.default.OS === 'android') { + var NativeDialogManagerAndroid = _$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeDialogManagerAndroid").default; + if (!NativeDialogManagerAndroid) { + return; + } + var constants = NativeDialogManagerAndroid.getConstants(); + var config = { + title: title || '', + message: message || '', + cancelable: false + }; + if (options && options.cancelable) { + config.cancelable = options.cancelable; + } + var defaultPositiveText = 'OK'; + var validButtons = buttons ? buttons.slice(0, 3) : [{ + text: defaultPositiveText + }]; + var buttonPositive = validButtons.pop(); + var buttonNegative = validButtons.pop(); + var buttonNeutral = validButtons.pop(); + if (buttonNeutral) { + config.buttonNeutral = buttonNeutral.text || ''; + } + if (buttonNegative) { + config.buttonNegative = buttonNegative.text || ''; + } + if (buttonPositive) { + config.buttonPositive = buttonPositive.text || defaultPositiveText; + } + + var onAction = function onAction(action, buttonKey) { + if (action === constants.buttonClicked) { + if (buttonKey === constants.buttonNeutral) { + buttonNeutral.onPress && buttonNeutral.onPress(); + } else if (buttonKey === constants.buttonNegative) { + buttonNegative.onPress && buttonNegative.onPress(); + } else if (buttonKey === constants.buttonPositive) { + buttonPositive.onPress && buttonPositive.onPress(); + } + } else if (action === constants.dismissed) { + options && options.onDismiss && options.onDismiss(); + } + }; + var onError = function onError(errorMessage) { + return console.warn(errorMessage); + }; + NativeDialogManagerAndroid.showAlert(config, onError, onAction); + } + } + }, { + key: "prompt", + value: function prompt(title, message, callbackOrButtons) { + var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'plain-text'; + var defaultValue = arguments.length > 4 ? arguments[4] : undefined; + var keyboardType = arguments.length > 5 ? arguments[5] : undefined; + var options = arguments.length > 6 ? arguments[6] : undefined; + if (_Platform.default.OS === 'ios') { + var callbacks = []; + var buttons = []; + var cancelButtonKey; + var destructiveButtonKey; + if (typeof callbackOrButtons === 'function') { + callbacks = [callbackOrButtons]; + } else if (Array.isArray(callbackOrButtons)) { + callbackOrButtons.forEach(function (btn, index) { + callbacks[index] = btn.onPress; + if (btn.style === 'cancel') { + cancelButtonKey = String(index); + } else if (btn.style === 'destructive') { + destructiveButtonKey = String(index); + } + if (btn.text || index < (callbackOrButtons || []).length - 1) { + var btnDef = {}; + btnDef[index] = btn.text || ''; + buttons.push(btnDef); + } + }); + } + _RCTAlertManager.default.alertWithArgs({ + title: title || '', + message: message || undefined, + buttons: buttons, + type: type || undefined, + defaultValue: defaultValue, + cancelButtonKey: cancelButtonKey, + destructiveButtonKey: destructiveButtonKey, + keyboardType: keyboardType, + userInterfaceStyle: (options == null ? void 0 : options.userInterfaceStyle) || undefined + }, function (id, value) { + var cb = callbacks[id]; + cb && cb(value); + }); + } + } + }]); + return Alert; + }(); + module.exports = Alert; +},143,[3,12,13,14,144,146],"node_modules/react-native/Libraries/Alert/Alert.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeAlertManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAlertManager")); + + module.exports = { + alertWithArgs: function alertWithArgs(args, callback) { + if (_NativeAlertManager.default == null) { + return; + } + _NativeAlertManager.default.alertWithArgs(args, callback); + } + }; +},144,[3,145],"node_modules/react-native/Libraries/Alert/RCTAlertManager.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('AlertManager'); + exports.default = _default; +},145,[16],"node_modules/react-native/Libraries/Alert/NativeAlertManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('DialogManagerAndroid'); + exports.default = _default; +},146,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var navigator = global.navigator; + if (navigator === undefined) { + global.navigator = navigator = {}; + } + + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillObjectProperty(navigator, 'product', function () { + return 'ReactNative'; + }); +},147,[99],"node_modules/react-native/Libraries/Core/setUpNavigator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var registerModule; + if (global.RN$Bridgeless === true && global.RN$registerCallableModule) { + registerModule = global.RN$registerCallableModule; + } else { + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge"); + registerModule = function registerModule(moduleName, + factory) { + return BatchedBridge.registerLazyCallableModule(moduleName, factory); + }; + } + registerModule('Systrace', function () { + return _$$_REQUIRE(_dependencyMap[1], "../Performance/Systrace"); + }); + if (!(global.RN$Bridgeless === true)) { + registerModule('JSTimers', function () { + return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers"); + }); + } + registerModule('HeapCapture', function () { + return _$$_REQUIRE(_dependencyMap[3], "../HeapCapture/HeapCapture"); + }); + registerModule('SamplingProfiler', function () { + return _$$_REQUIRE(_dependencyMap[4], "../Performance/SamplingProfiler"); + }); + registerModule('RCTLog', function () { + return _$$_REQUIRE(_dependencyMap[5], "../Utilities/RCTLog"); + }); + registerModule('RCTDeviceEventEmitter', function () { + return _$$_REQUIRE(_dependencyMap[6], "../EventEmitter/RCTDeviceEventEmitter").default; + }); + registerModule('RCTNativeAppEventEmitter', function () { + return _$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTNativeAppEventEmitter"); + }); + registerModule('GlobalPerformanceLogger', function () { + return _$$_REQUIRE(_dependencyMap[8], "../Utilities/GlobalPerformanceLogger"); + }); + registerModule('JSDevSupportModule', function () { + return _$$_REQUIRE(_dependencyMap[9], "../Utilities/JSDevSupportModule"); + }); + if (__DEV__ && !global.__RCTProfileIsProfiling) { + registerModule('HMRClient', function () { + return _$$_REQUIRE(_dependencyMap[10], "../Utilities/HMRClient"); + }); + } else { + registerModule('HMRClient', function () { + return _$$_REQUIRE(_dependencyMap[11], "../Utilities/HMRClientProdShim"); + }); + } +},148,[23,28,109,149,151,60,4,153,122,154,156,171],"node_modules/react-native/Libraries/Core/setUpBatchedBridge.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeJSCHeapCapture = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeJSCHeapCapture")); + + var HeapCapture = { + captureHeap: function captureHeap(path) { + var error = null; + try { + global.nativeCaptureHeap(path); + console.log('HeapCapture.captureHeap succeeded: ' + path); + } catch (e) { + console.log('HeapCapture.captureHeap error: ' + e.toString()); + error = e.toString(); + } + if (_NativeJSCHeapCapture.default) { + _NativeJSCHeapCapture.default.captureComplete(path, error); + } + } + }; + module.exports = HeapCapture; +},149,[3,150],"node_modules/react-native/Libraries/HeapCapture/HeapCapture.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('JSCHeapCapture'); + exports.default = _default; +},150,[16],"node_modules/react-native/Libraries/HeapCapture/NativeJSCHeapCapture.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var SamplingProfiler = { + poke: function poke(token) { + var error = null; + var result = null; + try { + result = global.pokeSamplingProfiler(); + if (result === null) { + console.log('The JSC Sampling Profiler has started'); + } else { + console.log('The JSC Sampling Profiler has stopped'); + } + } catch (e) { + console.log('Error occurred when restarting Sampling Profiler: ' + e.toString()); + error = e.toString(); + } + var NativeJSCSamplingProfiler = _$$_REQUIRE(_dependencyMap[0], "./NativeJSCSamplingProfiler").default; + if (NativeJSCSamplingProfiler) { + NativeJSCSamplingProfiler.operationComplete(token, result, error); + } + } + }; + module.exports = SamplingProfiler; +},151,[152],"node_modules/react-native/Libraries/Performance/SamplingProfiler.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('JSCSamplingProfiler'); + exports.default = _default; +},152,[16],"node_modules/react-native/Libraries/Performance/NativeJSCSamplingProfiler.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./RCTDeviceEventEmitter")); + + var RCTNativeAppEventEmitter = _RCTDeviceEventEmitter.default; + module.exports = RCTNativeAppEventEmitter; +},153,[3,4],"node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeJSDevSupport = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeJSDevSupport")); + var JSDevSupportModule = { + getJSHierarchy: function getJSHierarchy(tag) { + if (_NativeJSDevSupport.default) { + var constants = _NativeJSDevSupport.default.getConstants(); + try { + var computeComponentStackForErrorReporting = _$$_REQUIRE(_dependencyMap[2], "../Renderer/shims/ReactNative").__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.computeComponentStackForErrorReporting; + var componentStack = computeComponentStackForErrorReporting(tag); + if (!componentStack) { + _NativeJSDevSupport.default.onFailure(constants.ERROR_CODE_VIEW_NOT_FOUND, "Component stack doesn't exist for tag " + tag); + } else { + _NativeJSDevSupport.default.onSuccess(componentStack); + } + } catch (e) { + _NativeJSDevSupport.default.onFailure(constants.ERROR_CODE_EXCEPTION, e.message); + } + } + } + }; + module.exports = JSDevSupportModule; +},154,[3,155,34],"node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('JSDevSupport'); + exports.default = _default; +},155,[16],"node_modules/react-native/Libraries/Utilities/NativeJSDevSupport.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _getDevServer2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Core/Devtools/getDevServer")); + var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../NativeModules/specs/NativeRedBox")); + var _LogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../LogBox/LogBox")); + var pendingEntryPoints = []; + var hmrClient = null; + var hmrUnavailableReason = null; + var currentCompileErrorMessage = null; + var didConnect = false; + var pendingLogs = []; + var HMRClient = { + enable: function enable() { + if (hmrUnavailableReason !== null) { + throw new Error(hmrUnavailableReason); + } + _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); + var LoadingView = _$$_REQUIRE(_dependencyMap[6], "./LoadingView"); + + hmrClient.send(JSON.stringify({ + type: 'log-opt-in' + })); + + var hasUpdates = hmrClient.hasPendingUpdates(); + if (hasUpdates) { + LoadingView.showMessage('Refreshing...', 'refresh'); + } + try { + hmrClient.enable(); + } finally { + if (hasUpdates) { + LoadingView.hide(); + } + } + + showCompileError(); + }, + disable: function disable() { + _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); + hmrClient.disable(); + }, + registerBundle: function registerBundle(requestUrl) { + _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); + pendingEntryPoints.push(requestUrl); + registerBundleEntryPoints(hmrClient); + }, + log: function log(level, data) { + if (!hmrClient) { + pendingLogs.push([level, data]); + if (pendingLogs.length > 100) { + pendingLogs.shift(); + } + return; + } + try { + hmrClient.send(JSON.stringify({ + type: 'log', + level: level, + mode: global.RN$Bridgeless === true ? 'NOBRIDGE' : 'BRIDGE', + data: data.map(function (item) { + return typeof item === 'string' ? item : _$$_REQUIRE(_dependencyMap[7], "pretty-format")(item, { + escapeString: true, + highlight: true, + maxDepth: 3, + min: true, + plugins: [_$$_REQUIRE(_dependencyMap[7], "pretty-format").plugins.ReactElement] + }); + }) + })); + } catch (error) { + } + }, + setup: function setup(platform, bundleEntry, host, port, isEnabled) { + var scheme = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'http'; + _$$_REQUIRE(_dependencyMap[5], "invariant")(platform, 'Missing required parameter `platform`'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(bundleEntry, 'Missing required parameter `bundleEntry`'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(host, 'Missing required parameter `host`'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(!hmrClient, 'Cannot initialize hmrClient twice'); + + var LoadingView = _$$_REQUIRE(_dependencyMap[6], "./LoadingView"); + var serverHost = port !== null && port !== '' ? host + ":" + port : host; + var serverScheme = scheme; + var client = new (_$$_REQUIRE(_dependencyMap[8], "metro-runtime/src/modules/HMRClient"))(serverScheme + "://" + serverHost + "/hot"); + hmrClient = client; + var _getDevServer = (0, _getDevServer2.default)(), + fullBundleUrl = _getDevServer.fullBundleUrl; + pendingEntryPoints.push(fullBundleUrl != null ? fullBundleUrl : serverScheme + "://" + serverHost + "/hot?bundleEntry=" + bundleEntry + "&platform=" + platform); + client.on('connection-error', function (e) { + var error = "Cannot connect to Metro.\n\nTry the following to fix the issue:\n- Ensure that Metro is running and available on the same network"; + if ("ios" === 'ios') { + error += "\n- Ensure that the Metro URL is correctly set in AppDelegate"; + } else { + error += "\n- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device\n- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081"; + } + error += "\n\nURL: " + host + ":" + port + "\n\nError: " + e.message; + setHMRUnavailableReason(error); + }); + client.on('update-start', function (_ref) { + var isInitialUpdate = _ref.isInitialUpdate; + currentCompileErrorMessage = null; + didConnect = true; + if (client.isEnabled() && !isInitialUpdate) { + LoadingView.showMessage('Refreshing...', 'refresh'); + } + }); + client.on('update', function (_ref2) { + var isInitialUpdate = _ref2.isInitialUpdate; + if (client.isEnabled() && !isInitialUpdate) { + dismissRedbox(); + _LogBox.default.clearAllLogs(); + } + }); + client.on('update-done', function () { + LoadingView.hide(); + }); + client.on('error', function (data) { + LoadingView.hide(); + if (data.type === 'GraphNotFoundError') { + client.close(); + setHMRUnavailableReason('Metro has restarted since the last edit. Reload to reconnect.'); + } else if (data.type === 'RevisionNotFoundError') { + client.close(); + setHMRUnavailableReason('Metro and the client are out of sync. Reload to reconnect.'); + } else { + currentCompileErrorMessage = data.type + " " + data.message; + if (client.isEnabled()) { + showCompileError(); + } + } + }); + client.on('close', function (data) { + LoadingView.hide(); + setHMRUnavailableReason('Disconnected from Metro.'); + }); + if (isEnabled) { + HMRClient.enable(); + } else { + HMRClient.disable(); + } + registerBundleEntryPoints(hmrClient); + flushEarlyLogs(hmrClient); + } + }; + function setHMRUnavailableReason(reason) { + _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); + if (hmrUnavailableReason !== null) { + return; + } + hmrUnavailableReason = reason; + + if (hmrClient.isEnabled() && didConnect) { + console.warn(reason); + } + } + + function registerBundleEntryPoints(client) { + if (hmrUnavailableReason != null) { + _$$_REQUIRE(_dependencyMap[9], "./DevSettings").reload('Bundle Splitting โ€“ Metro disconnected'); + return; + } + if (pendingEntryPoints.length > 0) { + client.send(JSON.stringify({ + type: 'register-entrypoints', + entryPoints: pendingEntryPoints + })); + pendingEntryPoints.length = 0; + } + } + function flushEarlyLogs(client) { + try { + pendingLogs.forEach(function (_ref3) { + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2), + level = _ref4[0], + data = _ref4[1]; + HMRClient.log(level, data); + }); + } finally { + pendingLogs.length = 0; + } + } + function dismissRedbox() { + if ("ios" === 'ios' && _NativeRedBox.default != null && _NativeRedBox.default.dismiss != null) { + _NativeRedBox.default.dismiss(); + } else { + var NativeExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "../Core/NativeExceptionsManager").default; + NativeExceptionsManager && NativeExceptionsManager.dismissRedbox && NativeExceptionsManager.dismissRedbox(); + } + } + function showCompileError() { + if (currentCompileErrorMessage === null) { + return; + } + + dismissRedbox(); + var message = currentCompileErrorMessage; + currentCompileErrorMessage = null; + + var error = new Error(message); + error.preventSymbolication = true; + throw error; + } + module.exports = HMRClient; +},156,[3,19,66,157,59,17,158,79,167,169,76],"node_modules/react-native/Libraries/Utilities/HMRClient.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('RedBox'); + exports.default = _default; +},157,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeRedBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../StyleSheet/processColor")); + var _NativeDevLoadingView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeDevLoadingView")); + var _Appearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./Appearance")); + + module.exports = { + showMessage: function showMessage(message, type) { + if (_NativeDevLoadingView.default) { + if (type === 'refresh') { + var backgroundColor = (0, _processColor.default)('#2584e8'); + var textColor = (0, _processColor.default)('#ffffff'); + _NativeDevLoadingView.default.showMessage(message, typeof textColor === 'number' ? textColor : null, typeof backgroundColor === 'number' ? backgroundColor : null); + } else if (type === 'load') { + var _backgroundColor; + var _textColor; + if (_Appearance.default.getColorScheme() === 'dark') { + _backgroundColor = (0, _processColor.default)('#fafafa'); + _textColor = (0, _processColor.default)('#242526'); + } else { + _backgroundColor = (0, _processColor.default)('#404040'); + _textColor = (0, _processColor.default)('#ffffff'); + } + _NativeDevLoadingView.default.showMessage(message, typeof _textColor === 'number' ? _textColor : null, typeof _backgroundColor === 'number' ? _backgroundColor : null); + } + } + }, + hide: function hide() { + _NativeDevLoadingView.default && _NativeDevLoadingView.default.hide(); + } + }; +},158,[3,159,163,164],"node_modules/react-native/Libraries/Utilities/LoadingView.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function processColor(color) { + if (color === undefined || color === null) { + return color; + } + var normalizedColor = _$$_REQUIRE(_dependencyMap[0], "./normalizeColor")(color); + if (normalizedColor === null || normalizedColor === undefined) { + return undefined; + } + if (typeof normalizedColor === 'object') { + var processColorObject = _$$_REQUIRE(_dependencyMap[1], "./PlatformColorValueTypes").processColorObject; + var processedColorObj = processColorObject(normalizedColor); + if (processedColorObj != null) { + return processedColorObj; + } + } + if (typeof normalizedColor !== 'number') { + return null; + } + + normalizedColor = (normalizedColor << 24 | normalizedColor >>> 8) >>> 0; + if ("ios" === 'android') { + normalizedColor = normalizedColor | 0x0; + } + return normalizedColor; + } + module.exports = processColor; +},159,[160,162],"node_modules/react-native/Libraries/StyleSheet/processColor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _normalizeColor2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@react-native/normalize-color")); + + function normalizeColor(color) { + if (typeof color === 'object' && color != null) { + var _require = _$$_REQUIRE(_dependencyMap[2], "./PlatformColorValueTypes"), + normalizeColorObject = _require.normalizeColorObject; + var normalizedColor = normalizeColorObject(color); + if (normalizedColor != null) { + return normalizedColor; + } + } + if (typeof color === 'string' || typeof color === 'number') { + return (0, _normalizeColor2.default)(color); + } + } + module.exports = normalizeColor; +},160,[3,161,162],"node_modules/react-native/Libraries/StyleSheet/normalizeColor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function normalizeColor(color) { + if (typeof color === 'number') { + if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) { + return color; + } + return null; + } + if (typeof color !== 'string') { + return null; + } + var matchers = getMatchers(); + var match; + + if (match = matchers.hex6.exec(color)) { + return parseInt(match[1] + 'ff', 16) >>> 0; + } + var colorFromKeyword = normalizeKeyword(color); + if (colorFromKeyword != null) { + return colorFromKeyword; + } + if (match = matchers.rgb.exec(color)) { + return (parse255(match[1]) << 24 | + parse255(match[2]) << 16 | + parse255(match[3]) << 8 | + 0x000000ff) >>> + 0; + } + if (match = matchers.rgba.exec(color)) { + return (parse255(match[1]) << 24 | + parse255(match[2]) << 16 | + parse255(match[3]) << 8 | + parse1(match[4])) >>> + 0; + } + if (match = matchers.hex3.exec(color)) { + return parseInt(match[1] + match[1] + + match[2] + match[2] + + match[3] + match[3] + + 'ff', + 16) >>> 0; + } + + if (match = matchers.hex8.exec(color)) { + return parseInt(match[1], 16) >>> 0; + } + if (match = matchers.hex4.exec(color)) { + return parseInt(match[1] + match[1] + + match[2] + match[2] + + match[3] + match[3] + + match[4] + match[4], + 16) >>> 0; + } + if (match = matchers.hsl.exec(color)) { + return (hslToRgb(parse360(match[1]), + parsePercentage(match[2]), + parsePercentage(match[3])) | 0x000000ff) >>> + 0; + } + if (match = matchers.hsla.exec(color)) { + return (hslToRgb(parse360(match[1]), + parsePercentage(match[2]), + parsePercentage(match[3])) | parse1(match[4])) >>> + 0; + } + return null; + } + function hue2rgb(p, q, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p + (q - p) * 6 * t; + } + if (t < 1 / 2) { + return q; + } + if (t < 2 / 3) { + return p + (q - p) * (2 / 3 - t) * 6; + } + return p; + } + function hslToRgb(h, s, l) { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + var r = hue2rgb(p, q, h + 1 / 3); + var g = hue2rgb(p, q, h); + var b = hue2rgb(p, q, h - 1 / 3); + return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; + } + var NUMBER = '[-+]?\\d*\\.?\\d+'; + var PERCENTAGE = NUMBER + '%'; + function call() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; + } + var cachedMatchers; + function getMatchers() { + if (cachedMatchers === undefined) { + cachedMatchers = { + rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), + rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)), + hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), + hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)), + hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#([0-9a-fA-F]{6})$/, + hex8: /^#([0-9a-fA-F]{8})$/ + }; + } + return cachedMatchers; + } + function parse255(str) { + var int = parseInt(str, 10); + if (int < 0) { + return 0; + } + if (int > 255) { + return 255; + } + return int; + } + function parse360(str) { + var int = parseFloat(str); + return (int % 360 + 360) % 360 / 360; + } + function parse1(str) { + var num = parseFloat(str); + if (num < 0) { + return 0; + } + if (num > 1) { + return 255; + } + return Math.round(num * 255); + } + function parsePercentage(str) { + var int = parseFloat(str); + if (int < 0) { + return 0; + } + if (int > 100) { + return 1; + } + return int / 100; + } + function normalizeKeyword(name) { + switch (name) { + case 'transparent': + return 0x00000000; + case 'aliceblue': + return 0xf0f8ffff; + case 'antiquewhite': + return 0xfaebd7ff; + case 'aqua': + return 0x00ffffff; + case 'aquamarine': + return 0x7fffd4ff; + case 'azure': + return 0xf0ffffff; + case 'beige': + return 0xf5f5dcff; + case 'bisque': + return 0xffe4c4ff; + case 'black': + return 0x000000ff; + case 'blanchedalmond': + return 0xffebcdff; + case 'blue': + return 0x0000ffff; + case 'blueviolet': + return 0x8a2be2ff; + case 'brown': + return 0xa52a2aff; + case 'burlywood': + return 0xdeb887ff; + case 'burntsienna': + return 0xea7e5dff; + case 'cadetblue': + return 0x5f9ea0ff; + case 'chartreuse': + return 0x7fff00ff; + case 'chocolate': + return 0xd2691eff; + case 'coral': + return 0xff7f50ff; + case 'cornflowerblue': + return 0x6495edff; + case 'cornsilk': + return 0xfff8dcff; + case 'crimson': + return 0xdc143cff; + case 'cyan': + return 0x00ffffff; + case 'darkblue': + return 0x00008bff; + case 'darkcyan': + return 0x008b8bff; + case 'darkgoldenrod': + return 0xb8860bff; + case 'darkgray': + return 0xa9a9a9ff; + case 'darkgreen': + return 0x006400ff; + case 'darkgrey': + return 0xa9a9a9ff; + case 'darkkhaki': + return 0xbdb76bff; + case 'darkmagenta': + return 0x8b008bff; + case 'darkolivegreen': + return 0x556b2fff; + case 'darkorange': + return 0xff8c00ff; + case 'darkorchid': + return 0x9932ccff; + case 'darkred': + return 0x8b0000ff; + case 'darksalmon': + return 0xe9967aff; + case 'darkseagreen': + return 0x8fbc8fff; + case 'darkslateblue': + return 0x483d8bff; + case 'darkslategray': + return 0x2f4f4fff; + case 'darkslategrey': + return 0x2f4f4fff; + case 'darkturquoise': + return 0x00ced1ff; + case 'darkviolet': + return 0x9400d3ff; + case 'deeppink': + return 0xff1493ff; + case 'deepskyblue': + return 0x00bfffff; + case 'dimgray': + return 0x696969ff; + case 'dimgrey': + return 0x696969ff; + case 'dodgerblue': + return 0x1e90ffff; + case 'firebrick': + return 0xb22222ff; + case 'floralwhite': + return 0xfffaf0ff; + case 'forestgreen': + return 0x228b22ff; + case 'fuchsia': + return 0xff00ffff; + case 'gainsboro': + return 0xdcdcdcff; + case 'ghostwhite': + return 0xf8f8ffff; + case 'gold': + return 0xffd700ff; + case 'goldenrod': + return 0xdaa520ff; + case 'gray': + return 0x808080ff; + case 'green': + return 0x008000ff; + case 'greenyellow': + return 0xadff2fff; + case 'grey': + return 0x808080ff; + case 'honeydew': + return 0xf0fff0ff; + case 'hotpink': + return 0xff69b4ff; + case 'indianred': + return 0xcd5c5cff; + case 'indigo': + return 0x4b0082ff; + case 'ivory': + return 0xfffff0ff; + case 'khaki': + return 0xf0e68cff; + case 'lavender': + return 0xe6e6faff; + case 'lavenderblush': + return 0xfff0f5ff; + case 'lawngreen': + return 0x7cfc00ff; + case 'lemonchiffon': + return 0xfffacdff; + case 'lightblue': + return 0xadd8e6ff; + case 'lightcoral': + return 0xf08080ff; + case 'lightcyan': + return 0xe0ffffff; + case 'lightgoldenrodyellow': + return 0xfafad2ff; + case 'lightgray': + return 0xd3d3d3ff; + case 'lightgreen': + return 0x90ee90ff; + case 'lightgrey': + return 0xd3d3d3ff; + case 'lightpink': + return 0xffb6c1ff; + case 'lightsalmon': + return 0xffa07aff; + case 'lightseagreen': + return 0x20b2aaff; + case 'lightskyblue': + return 0x87cefaff; + case 'lightslategray': + return 0x778899ff; + case 'lightslategrey': + return 0x778899ff; + case 'lightsteelblue': + return 0xb0c4deff; + case 'lightyellow': + return 0xffffe0ff; + case 'lime': + return 0x00ff00ff; + case 'limegreen': + return 0x32cd32ff; + case 'linen': + return 0xfaf0e6ff; + case 'magenta': + return 0xff00ffff; + case 'maroon': + return 0x800000ff; + case 'mediumaquamarine': + return 0x66cdaaff; + case 'mediumblue': + return 0x0000cdff; + case 'mediumorchid': + return 0xba55d3ff; + case 'mediumpurple': + return 0x9370dbff; + case 'mediumseagreen': + return 0x3cb371ff; + case 'mediumslateblue': + return 0x7b68eeff; + case 'mediumspringgreen': + return 0x00fa9aff; + case 'mediumturquoise': + return 0x48d1ccff; + case 'mediumvioletred': + return 0xc71585ff; + case 'midnightblue': + return 0x191970ff; + case 'mintcream': + return 0xf5fffaff; + case 'mistyrose': + return 0xffe4e1ff; + case 'moccasin': + return 0xffe4b5ff; + case 'navajowhite': + return 0xffdeadff; + case 'navy': + return 0x000080ff; + case 'oldlace': + return 0xfdf5e6ff; + case 'olive': + return 0x808000ff; + case 'olivedrab': + return 0x6b8e23ff; + case 'orange': + return 0xffa500ff; + case 'orangered': + return 0xff4500ff; + case 'orchid': + return 0xda70d6ff; + case 'palegoldenrod': + return 0xeee8aaff; + case 'palegreen': + return 0x98fb98ff; + case 'paleturquoise': + return 0xafeeeeff; + case 'palevioletred': + return 0xdb7093ff; + case 'papayawhip': + return 0xffefd5ff; + case 'peachpuff': + return 0xffdab9ff; + case 'peru': + return 0xcd853fff; + case 'pink': + return 0xffc0cbff; + case 'plum': + return 0xdda0ddff; + case 'powderblue': + return 0xb0e0e6ff; + case 'purple': + return 0x800080ff; + case 'rebeccapurple': + return 0x663399ff; + case 'red': + return 0xff0000ff; + case 'rosybrown': + return 0xbc8f8fff; + case 'royalblue': + return 0x4169e1ff; + case 'saddlebrown': + return 0x8b4513ff; + case 'salmon': + return 0xfa8072ff; + case 'sandybrown': + return 0xf4a460ff; + case 'seagreen': + return 0x2e8b57ff; + case 'seashell': + return 0xfff5eeff; + case 'sienna': + return 0xa0522dff; + case 'silver': + return 0xc0c0c0ff; + case 'skyblue': + return 0x87ceebff; + case 'slateblue': + return 0x6a5acdff; + case 'slategray': + return 0x708090ff; + case 'slategrey': + return 0x708090ff; + case 'snow': + return 0xfffafaff; + case 'springgreen': + return 0x00ff7fff; + case 'steelblue': + return 0x4682b4ff; + case 'tan': + return 0xd2b48cff; + case 'teal': + return 0x008080ff; + case 'thistle': + return 0xd8bfd8ff; + case 'tomato': + return 0xff6347ff; + case 'turquoise': + return 0x40e0d0ff; + case 'violet': + return 0xee82eeff; + case 'wheat': + return 0xf5deb3ff; + case 'white': + return 0xffffffff; + case 'whitesmoke': + return 0xf5f5f5ff; + case 'yellow': + return 0xffff00ff; + case 'yellowgreen': + return 0x9acd32ff; + } + return null; + } + module.exports = normalizeColor; +},161,[],"node_modules/@react-native/normalize-color/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.processColorObject = exports.normalizeColorObject = exports.PlatformColor = exports.DynamicColorIOSPrivate = void 0; + + var PlatformColor = function PlatformColor() { + for (var _len = arguments.length, names = new Array(_len), _key = 0; _key < _len; _key++) { + names[_key] = arguments[_key]; + } + return { + semantic: names + }; + }; + exports.PlatformColor = PlatformColor; + var DynamicColorIOSPrivate = function DynamicColorIOSPrivate(tuple) { + return { + dynamic: { + light: tuple.light, + dark: tuple.dark, + highContrastLight: tuple.highContrastLight, + highContrastDark: tuple.highContrastDark + } + }; + }; + exports.DynamicColorIOSPrivate = DynamicColorIOSPrivate; + var normalizeColorObject = function normalizeColorObject(color) { + if ('semantic' in color) { + return color; + } else if ('dynamic' in color && color.dynamic !== undefined) { + var normalizeColor = _$$_REQUIRE(_dependencyMap[0], "./normalizeColor"); + + var dynamic = color.dynamic; + var dynamicColor = { + dynamic: { + light: normalizeColor(dynamic.light), + dark: normalizeColor(dynamic.dark), + highContrastLight: normalizeColor(dynamic.highContrastLight), + highContrastDark: normalizeColor(dynamic.highContrastDark) + } + }; + return dynamicColor; + } + return null; + }; + exports.normalizeColorObject = normalizeColorObject; + var processColorObject = function processColorObject(color) { + if ('dynamic' in color && color.dynamic != null) { + var processColor = _$$_REQUIRE(_dependencyMap[1], "./processColor"); + var dynamic = color.dynamic; + var dynamicColor = { + dynamic: { + light: processColor(dynamic.light), + dark: processColor(dynamic.dark), + highContrastLight: processColor(dynamic.highContrastLight), + highContrastDark: processColor(dynamic.highContrastDark) + } + }; + return dynamicColor; + } + return color; + }; + exports.processColorObject = processColorObject; +},162,[160,159],"node_modules/react-native/Libraries/StyleSheet/PlatformColorValueTypes.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('DevLoadingView'); + exports.default = _default; +},163,[16],"node_modules/react-native/Libraries/Utilities/NativeDevLoadingView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../EventEmitter/NativeEventEmitter")); + var _NativeAppearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAppearance")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/Platform")); + + var eventEmitter = new _EventEmitter.default(); + if (_NativeAppearance.default) { + var nativeEventEmitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeAppearance.default); + nativeEventEmitter.addListener('appearanceChanged', function (newAppearance) { + var colorScheme = newAppearance.colorScheme; + (0, _invariant.default)(colorScheme === 'dark' || colorScheme === 'light' || colorScheme == null, "Unrecognized color scheme. Did you mean 'dark' or 'light'?"); + eventEmitter.emit('change', { + colorScheme: colorScheme + }); + }); + } + module.exports = { + getColorScheme: function getColorScheme() { + if (__DEV__) { + if (_$$_REQUIRE(_dependencyMap[6], "./DebugEnvironment").isAsyncDebugging) { + return 'light'; + } + } + + var nativeColorScheme = _NativeAppearance.default == null ? null : _NativeAppearance.default.getColorScheme() || null; + (0, _invariant.default)(nativeColorScheme === 'dark' || nativeColorScheme === 'light' || nativeColorScheme == null, "Unrecognized color scheme. Did you mean 'dark' or 'light'?"); + return nativeColorScheme; + }, + addChangeListener: function addChangeListener(listener) { + return eventEmitter.addListener('change', listener); + } + }; +},164,[3,5,134,165,17,14,166],"node_modules/react-native/Libraries/Utilities/Appearance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('Appearance'); + exports.default = _default; +},165,[16],"node_modules/react-native/Libraries/Utilities/NativeAppearance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isAsyncDebugging = void 0; + + var isAsyncDebugging = false; + exports.isAsyncDebugging = isAsyncDebugging; + if (__DEV__) { + exports.isAsyncDebugging = isAsyncDebugging = !global.nativeExtensions && !global.nativeCallSyncHook && !global.RN$Bridgeless; + } +},166,[],"node_modules/react-native/Libraries/Utilities/DebugEnvironment.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var inject = function inject(_ref) { + var _ref$module = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")(_ref.module, 2), + id = _ref$module[0], + code = _ref$module[1], + sourceURL = _ref.sourceURL; + if (global.globalEvalWithSourceUrl) { + global.globalEvalWithSourceUrl(code, sourceURL); + } else { + eval(code); + } + }; + var injectUpdate = function injectUpdate(update) { + update.added.forEach(inject); + update.modified.forEach(inject); + }; + var HMRClient = function (_EventEmitter) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(HMRClient, _EventEmitter); + var _super = _createSuper(HMRClient); + function HMRClient(url) { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, HMRClient); + _this = _super.call(this); + _this._isEnabled = false; + _this._pendingUpdate = null; + _this._queue = []; + _this._state = "opening"; + + _this._ws = new global.WebSocket(url); + _this._ws.onopen = function () { + _this._state = "open"; + _this.emit("open"); + _this._flushQueue(); + }; + _this._ws.onerror = function (error) { + _this.emit("connection-error", error); + }; + _this._ws.onclose = function () { + _this._state = "closed"; + _this.emit("close"); + }; + _this._ws.onmessage = function (message) { + var data = JSON.parse(String(message.data)); + switch (data.type) { + case "bundle-registered": + _this.emit("bundle-registered"); + break; + case "update-start": + _this.emit("update-start", data.body); + break; + case "update": + _this.emit("update", data.body); + break; + case "update-done": + _this.emit("update-done"); + break; + case "error": + _this.emit("error", data.body); + break; + default: + _this.emit("error", { + type: "unknown-message", + message: data + }); + } + }; + _this.on("update", function (update) { + if (_this._isEnabled) { + injectUpdate(update); + } else if (_this._pendingUpdate == null) { + _this._pendingUpdate = update; + } else { + _this._pendingUpdate = mergeUpdates(_this._pendingUpdate, update); + } + }); + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(HMRClient, [{ + key: "close", + value: function close() { + this._ws.close(); + } + }, { + key: "send", + value: function send(message) { + switch (this._state) { + case "opening": + this._queue.push(message); + break; + case "open": + this._ws.send(message); + break; + case "closed": + break; + default: + throw new Error("[WebSocketHMRClient] Unknown state: " + this._state); + } + } + }, { + key: "_flushQueue", + value: function _flushQueue() { + var _this2 = this; + this._queue.forEach(function (message) { + return _this2.send(message); + }); + this._queue.length = 0; + } + }, { + key: "enable", + value: function enable() { + this._isEnabled = true; + var update = this._pendingUpdate; + this._pendingUpdate = null; + if (update != null) { + injectUpdate(update); + } + } + }, { + key: "disable", + value: function disable() { + this._isEnabled = false; + } + }, { + key: "isEnabled", + value: function isEnabled() { + return this._isEnabled; + } + }, { + key: "hasPendingUpdates", + value: function hasPendingUpdates() { + return this._pendingUpdate != null; + } + }]); + return HMRClient; + }(_$$_REQUIRE(_dependencyMap[6], "./vendor/eventemitter3")); + function mergeUpdates(base, next) { + var addedIDs = new Set(); + var deletedIDs = new Set(); + var moduleMap = new Map(); + + applyUpdateLocally(base); + applyUpdateLocally(next); + function applyUpdateLocally(update) { + update.deleted.forEach(function (id) { + if (addedIDs.has(id)) { + addedIDs.delete(id); + } else { + deletedIDs.add(id); + } + moduleMap.delete(id); + }); + update.added.forEach(function (item) { + var id = item.module[0]; + if (deletedIDs.has(id)) { + deletedIDs.delete(id); + } else { + addedIDs.add(id); + } + moduleMap.set(id, item); + }); + update.modified.forEach(function (item) { + var id = item.module[0]; + moduleMap.set(id, item); + }); + } + + var result = { + isInitialUpdate: next.isInitialUpdate, + revisionId: next.revisionId, + added: [], + modified: [], + deleted: [] + }; + deletedIDs.forEach(function (id) { + result.deleted.push(id); + }); + moduleMap.forEach(function (item, id) { + if (deletedIDs.has(id)) { + return; + } + if (addedIDs.has(id)) { + result.added.push(item); + } else { + result.modified.push(item); + } + }); + return result; + } + module.exports = HMRClient; +},167,[46,47,19,50,12,13,168],"node_modules/metro-runtime/src/modules/HMRClient.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + "use strict"; + + var has = Object.prototype.hasOwnProperty, + prefix = "~"; + + function Events() {} + + if (Object.create) { + Events.prototype = Object.create(null); + + if (!new Events().__proto__) prefix = false; + } + + function EE(fn, context, once) { + this.fn = fn; + this.context = context; + this.once = once || false; + } + + function addListener(emitter, event, fn, context, once) { + if (typeof fn !== "function") { + throw new TypeError("The listener must be a function"); + } + var listener = new EE(fn, context || emitter, once), + evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; + } + + function EventEmitter() { + this._events = new Events(); + this._eventsCount = 0; + } + + EventEmitter.prototype.eventNames = function eventNames() { + var names = [], + events, + name; + if (this._eventsCount === 0) return names; + for (name in events = this._events) { + if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); + } + if (Object.getOwnPropertySymbols) { + return names.concat(Object.getOwnPropertySymbols(events)); + } + return names; + }; + + EventEmitter.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, + handlers = this._events[evt]; + if (!handlers) return []; + if (handlers.fn) return [handlers.fn]; + for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { + ee[i] = handlers[i].fn; + } + return ee; + }; + + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, + listeners = this._events[evt]; + if (!listeners) return 0; + if (listeners.fn) return 1; + return listeners.length; + }; + + EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return false; + var listeners = this._events[evt], + len = arguments.length, + args, + i; + if (listeners.fn) { + if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + case 2: + return listeners.fn.call(listeners.context, a1), true; + case 3: + return listeners.fn.call(listeners.context, a1, a2), true; + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), true; + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; + } + for (i = 1, args = new Array(len - 1); i < len; i++) { + args[i - 1] = arguments[i]; + } + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, + j; + for (i = 0; i < length; i++) { + if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); + switch (len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + case 3: + listeners[i].fn.call(listeners[i].context, a1, a2); + break; + case 4: + listeners[i].fn.call(listeners[i].context, a1, a2, a3); + break; + default: + if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) { + args[j - 1] = arguments[j]; + } + listeners[i].fn.apply(listeners[i].context, args); + } + } + } + return true; + }; + + EventEmitter.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, false); + }; + + EventEmitter.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, true); + }; + + EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return this; + if (!fn) { + clearEvent(this, evt); + return this; + } + var listeners = this._events[evt]; + if (listeners.fn) { + if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { + clearEvent(this, evt); + } + } else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) { + if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { + events.push(listeners[i]); + } + } + + if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); + } + return this; + }; + + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + return this; + }; + + EventEmitter.prototype.off = EventEmitter.prototype.removeListener; + EventEmitter.prototype.addListener = EventEmitter.prototype.on; + + EventEmitter.prefixed = prefix; + + EventEmitter.EventEmitter = EventEmitter; + + if ("undefined" !== typeof module) { + module.exports = EventEmitter; + } +},168,[],"node_modules/metro-runtime/src/modules/vendor/eventemitter3.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeDevSettings = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../NativeModules/specs/NativeDevSettings")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../EventEmitter/NativeEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + + var DevSettings = { + addMenuItem: function addMenuItem(title, handler) {}, + reload: function reload(reason) {}, + onFastRefresh: function onFastRefresh() {} + }; + if (__DEV__) { + var emitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeDevSettings.default); + var subscriptions = new Map(); + DevSettings = { + addMenuItem: function addMenuItem(title, handler) { + var subscription = subscriptions.get(title); + if (subscription != null) { + subscription.remove(); + } else { + _NativeDevSettings.default.addMenuItem(title); + } + subscription = emitter.addListener('didPressMenuItem', function (event) { + if (event.title === title) { + handler(); + } + }); + subscriptions.set(title, subscription); + }, + reload: function reload(reason) { + if (_NativeDevSettings.default.reloadWithReason != null) { + _NativeDevSettings.default.reloadWithReason(reason != null ? reason : 'Uncategorized from JS'); + } else { + _NativeDevSettings.default.reload(); + } + }, + onFastRefresh: function onFastRefresh() { + _NativeDevSettings.default.onFastRefresh == null ? void 0 : _NativeDevSettings.default.onFastRefresh(); + } + }; + } + module.exports = DevSettings; +},169,[3,170,134,14],"node_modules/react-native/Libraries/Utilities/DevSettings.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('DevSettings'); + exports.default = _default; +},170,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeDevSettings.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var HMRClientProdShim = { + setup: function setup() {}, + enable: function enable() { + console.error('Fast Refresh is disabled in JavaScript bundles built in production mode. ' + 'Did you forget to run Metro?'); + }, + disable: function disable() {}, + registerBundle: function registerBundle() {}, + log: function log() {} + }; + module.exports = HMRClientProdShim; +},171,[],"node_modules/react-native/Libraries/Utilities/HMRClientProdShim.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function __fetchSegment(segmentId, options, callback) { + var SegmentFetcher = _$$_REQUIRE(_dependencyMap[0], "./SegmentFetcher/NativeSegmentFetcher").default; + SegmentFetcher.fetchSegment(segmentId, options, function (errorObject) { + if (errorObject) { + var error = new Error(errorObject.message); + error.code = errorObject.code; + callback(error); + } + callback(null); + }); + } + global.__fetchSegment = __fetchSegment; + function __getSegment(segmentId, options, callback) { + var SegmentFetcher = _$$_REQUIRE(_dependencyMap[0], "./SegmentFetcher/NativeSegmentFetcher").default; + if (!SegmentFetcher.getSegment) { + throw new Error('SegmentFetcher.getSegment must be defined'); + } + SegmentFetcher.getSegment(segmentId, options, function (errorObject, path) { + if (errorObject) { + var error = new Error(errorObject.message); + error.code = errorObject.code; + callback(error); + } + callback(null, path); + }); + } + global.__getSegment = __getSegment; +},172,[173],"node_modules/react-native/Libraries/Core/setUpSegmentFetcher.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('SegmentFetcher'); + exports.default = _default; +},173,[16],"node_modules/react-native/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + _$$_REQUIRE(_dependencyMap[0], "./ReactNativeVersionCheck").checkVersions(); +},174,[175],"node_modules/react-native/Libraries/Core/checkNativeVersion.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + exports.checkVersions = function checkVersions() { + var nativeVersion = _Platform.default.constants.reactNativeVersion; + if (_$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version.major !== nativeVersion.major || _$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version.minor !== nativeVersion.minor) { + console.error("React Native version mismatch.\n\nJavaScript version: " + _formatVersion(_$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version) + "\n" + ("Native version: " + _formatVersion(nativeVersion) + "\n\n") + 'Make sure that you have rebuilt the native code. If the problem ' + 'persists try clearing the Watchman and packager caches with ' + '`watchman watch-del-all && react-native start --reset-cache`.'); + } + }; + function _formatVersion(version) { + return version.major + "." + version.minor + "." + version.patch + ( + version.prerelease != undefined ? "-" + version.prerelease : ''); + } +},175,[3,14,176],"node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + exports.version = { + major: 0, + minor: 70, + patch: 4, + prerelease: null + }; +},176,[],"node_modules/react-native/Libraries/Core/ReactNativeVersion.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + _$$_REQUIRE(_dependencyMap[2], "./setUpReactDevTools"); + + var JSInspector = _$$_REQUIRE(_dependencyMap[3], "../JSInspector/JSInspector"); + JSInspector.registerAgent(_$$_REQUIRE(_dependencyMap[4], "../JSInspector/NetworkAgent")); + } + + var isLikelyARealBrowser = global.navigator != null && + global.navigator.appName === 'Netscape'; + + if (!_Platform.default.isTesting) { + var HMRClient = _$$_REQUIRE(_dependencyMap[5], "../Utilities/HMRClient"); + if (console._isPolyfilled) { + ['trace', 'info', 'warn', 'error', 'log', 'group', 'groupCollapsed', 'groupEnd', 'debug'].forEach(function (level) { + var originalFunction = console[level]; + console[level] = function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + HMRClient.log(level, args); + originalFunction.apply(console, args); + }; + }); + } else { + HMRClient.log('log', ["JavaScript logs will appear in your " + (isLikelyARealBrowser ? 'browser' : 'environment') + " console"]); + } + } + _$$_REQUIRE(_dependencyMap[6], "./setUpReactRefresh"); + } +},177,[3,14,178,190,191,156,193],"node_modules/react-native/Libraries/Core/setUpDeveloperTools.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (__DEV__) { + var isWebSocketOpen = false; + var ws = null; + var reactDevTools = _$$_REQUIRE(_dependencyMap[0], "react-devtools-core"); + var connectToDevTools = function connectToDevTools() { + if (ws !== null && isWebSocketOpen) { + return; + } + + if (!window.document) { + var AppState = _$$_REQUIRE(_dependencyMap[1], "../AppState/AppState"); + var getDevServer = _$$_REQUIRE(_dependencyMap[2], "./Devtools/getDevServer"); + + var isAppActive = function isAppActive() { + return AppState.currentState !== 'background'; + }; + + var devServer = getDevServer(); + var host = devServer.bundleLoadedFromServer ? devServer.url.replace(/https?:\/\//, '').replace(/\/$/, '').split(':')[0] : 'localhost'; + + var port = window.__REACT_DEVTOOLS_PORT__ != null ? window.__REACT_DEVTOOLS_PORT__ : 8097; + var WebSocket = _$$_REQUIRE(_dependencyMap[3], "../WebSocket/WebSocket"); + ws = new WebSocket('ws://' + host + ':' + port); + ws.addEventListener('close', function (event) { + isWebSocketOpen = false; + }); + ws.addEventListener('open', function (event) { + isWebSocketOpen = true; + }); + var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[4], "../Components/View/ReactNativeStyleAttributes"); + reactDevTools.connectToDevTools({ + isAppActive: isAppActive, + resolveRNStyle: _$$_REQUIRE(_dependencyMap[5], "../StyleSheet/flattenStyle"), + nativeStyleEditorValidAttributes: Object.keys(ReactNativeStyleAttributes), + websocket: ws + }); + } + }; + var RCTNativeAppEventEmitter = _$$_REQUIRE(_dependencyMap[6], "../EventEmitter/RCTNativeAppEventEmitter"); + RCTNativeAppEventEmitter.addListener('RCTDevMenuShown', connectToDevTools); + connectToDevTools(); + } +},178,[179,182,66,131,185,189,153],"node_modules/react-native/Libraries/Core/setUpReactDevTools.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + (function webpackUniversalModuleDefinition(root, factory) { + if (typeof exports === 'object' && typeof module === 'object') module.exports = factory();else if (typeof define === 'function' && define.amd) define([], factory);else if (typeof exports === 'object') exports["ReactDevToolsBackend"] = factory();else root["ReactDevToolsBackend"] = factory(); + })(window, function () { + return function (modules) { + var installedModules = {}; + function __webpack_require__(moduleId) { + if (installedModules[moduleId]) { + return installedModules[moduleId].exports; + } + var module = installedModules[moduleId] = { + i: moduleId, + l: false, + exports: {} + }; + modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + module.l = true; + return module.exports; + } + __webpack_require__.m = modules; + __webpack_require__.c = installedModules; + __webpack_require__.d = function (exports, name, getter) { + if (!__webpack_require__.o(exports, name)) { + Object.defineProperty(exports, name, { + enumerable: true, + get: getter + }); + } + }; + __webpack_require__.r = function (exports) { + if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { + value: 'Module' + }); + } + Object.defineProperty(exports, '__esModule', { + value: true + }); + }; + __webpack_require__.t = function (value, mode) { + if (mode & 1) value = __webpack_require__(value); + if (mode & 8) return value; + if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value; + var ns = Object.create(null); + __webpack_require__.r(ns); + Object.defineProperty(ns, 'default', { + enumerable: true, + value: value + }); + if (mode & 2 && typeof value != 'string') for (var key in value) { + __webpack_require__.d(ns, key, function (key) { + return value[key]; + }.bind(null, key)); + } + return ns; + }; + __webpack_require__.n = function (module) { + var getter = module && module.__esModule ? function getDefault() { + return module['default']; + } : function getModuleExports() { + return module; + }; + __webpack_require__.d(getter, 'a', getter); + return getter; + }; + __webpack_require__.o = function (object, property) { + return Object.prototype.hasOwnProperty.call(object, property); + }; + __webpack_require__.p = ""; + return __webpack_require__(__webpack_require__.s = 32); + } + ([ + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "s", function () { + return __DEBUG__; + }); + __webpack_require__.d(__webpack_exports__, "l", function () { + return TREE_OPERATION_ADD; + }); + __webpack_require__.d(__webpack_exports__, "m", function () { + return TREE_OPERATION_REMOVE; + }); + __webpack_require__.d(__webpack_exports__, "o", function () { + return TREE_OPERATION_REORDER_CHILDREN; + }); + __webpack_require__.d(__webpack_exports__, "r", function () { + return TREE_OPERATION_UPDATE_TREE_BASE_DURATION; + }); + __webpack_require__.d(__webpack_exports__, "q", function () { + return TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS; + }); + __webpack_require__.d(__webpack_exports__, "n", function () { + return TREE_OPERATION_REMOVE_ROOT; + }); + __webpack_require__.d(__webpack_exports__, "p", function () { + return TREE_OPERATION_SET_SUBTREE_MODE; + }); + __webpack_require__.d(__webpack_exports__, "g", function () { + return PROFILING_FLAG_BASIC_SUPPORT; + }); + __webpack_require__.d(__webpack_exports__, "h", function () { + return PROFILING_FLAG_TIMELINE_SUPPORT; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return LOCAL_STORAGE_FILTER_PREFERENCES_KEY; + }); + __webpack_require__.d(__webpack_exports__, "i", function () { + return SESSION_STORAGE_LAST_SELECTION_KEY; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return LOCAL_STORAGE_OPEN_IN_EDITOR_URL; + }); + __webpack_require__.d(__webpack_exports__, "j", function () { + return SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY; + }); + __webpack_require__.d(__webpack_exports__, "k", function () { + return SESSION_STORAGE_RELOAD_AND_PROFILE_KEY; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS; + }); + __webpack_require__.d(__webpack_exports__, "e", function () { + return LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY; + }); + __webpack_require__.d(__webpack_exports__, "f", function () { + return LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE; + }); + var CHROME_WEBSTORE_EXTENSION_ID = 'fmkadmapgofadopljbjfkapdkoienihi'; + var INTERNAL_EXTENSION_ID = 'dnjnjgbfilfphmojnmhliehogmojhclc'; + var LOCAL_EXTENSION_ID = 'ikiahnapldjmdmpkmfhjdjilojjhgcbf'; + + var __DEBUG__ = false; + + var __PERFORMANCE_PROFILE__ = false; + var TREE_OPERATION_ADD = 1; + var TREE_OPERATION_REMOVE = 2; + var TREE_OPERATION_REORDER_CHILDREN = 3; + var TREE_OPERATION_UPDATE_TREE_BASE_DURATION = 4; + var TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS = 5; + var TREE_OPERATION_REMOVE_ROOT = 6; + var TREE_OPERATION_SET_SUBTREE_MODE = 7; + var PROFILING_FLAG_BASIC_SUPPORT = 1; + var PROFILING_FLAG_TIMELINE_SUPPORT = 2; + var LOCAL_STORAGE_DEFAULT_TAB_KEY = 'React::DevTools::defaultTab'; + var LOCAL_STORAGE_FILTER_PREFERENCES_KEY = 'React::DevTools::componentFilters'; + var SESSION_STORAGE_LAST_SELECTION_KEY = 'React::DevTools::lastSelection'; + var LOCAL_STORAGE_OPEN_IN_EDITOR_URL = 'React::DevTools::openInEditorUrl'; + var LOCAL_STORAGE_PARSE_HOOK_NAMES_KEY = 'React::DevTools::parseHookNames'; + var SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY = 'React::DevTools::recordChangeDescriptions'; + var SESSION_STORAGE_RELOAD_AND_PROFILE_KEY = 'React::DevTools::reloadAndProfile'; + var LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS = 'React::DevTools::breakOnConsoleErrors'; + var LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY = 'React::DevTools::appendComponentStack'; + var LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY = 'React::DevTools::showInlineWarningsAndErrors'; + var LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY = 'React::DevTools::traceUpdatesEnabled'; + var LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE = 'React::DevTools::hideConsoleLogsInStrictMode'; + var PROFILER_EXPORT_VERSION = 5; + var CHANGE_LOG_URL = 'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md'; + var UNSUPPORTED_VERSION_URL = 'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back'; + var REACT_DEVTOOLS_WORKPLACE_URL = 'https://fburl.com/react-devtools-workplace-group'; + var THEME_STYLES = { + light: { + '--color-attribute-name': '#ef6632', + '--color-attribute-name-not-editable': '#23272f', + '--color-attribute-name-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-attribute-value': '#1a1aa6', + '--color-attribute-value-inverted': '#ffffff', + '--color-attribute-editable-value': '#1a1aa6', + '--color-background': '#ffffff', + '--color-background-hover': 'rgba(0, 136, 250, 0.1)', + '--color-background-inactive': '#e5e5e5', + '--color-background-invalid': '#fff0f0', + '--color-background-selected': '#0088fa', + '--color-button-background': '#ffffff', + '--color-button-background-focus': '#ededed', + '--color-button': '#5f6673', + '--color-button-disabled': '#cfd1d5', + '--color-button-active': '#0088fa', + '--color-button-focus': '#23272f', + '--color-button-hover': '#23272f', + '--color-border': '#eeeeee', + '--color-commit-did-not-render-fill': '#cfd1d5', + '--color-commit-did-not-render-fill-text': '#000000', + '--color-commit-did-not-render-pattern': '#cfd1d5', + '--color-commit-did-not-render-pattern-text': '#333333', + '--color-commit-gradient-0': '#37afa9', + '--color-commit-gradient-1': '#63b19e', + '--color-commit-gradient-2': '#80b393', + '--color-commit-gradient-3': '#97b488', + '--color-commit-gradient-4': '#abb67d', + '--color-commit-gradient-5': '#beb771', + '--color-commit-gradient-6': '#cfb965', + '--color-commit-gradient-7': '#dfba57', + '--color-commit-gradient-8': '#efbb49', + '--color-commit-gradient-9': '#febc38', + '--color-commit-gradient-text': '#000000', + '--color-component-name': '#6a51b2', + '--color-component-name-inverted': '#ffffff', + '--color-component-badge-background': 'rgba(0, 0, 0, 0.1)', + '--color-component-badge-background-inverted': 'rgba(255, 255, 255, 0.25)', + '--color-component-badge-count': '#777d88', + '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-console-error-badge-text': '#ffffff', + '--color-console-error-background': '#fff0f0', + '--color-console-error-border': '#ffd6d6', + '--color-console-error-icon': '#eb3941', + '--color-console-error-text': '#fe2e31', + '--color-console-warning-badge-text': '#000000', + '--color-console-warning-background': '#fffbe5', + '--color-console-warning-border': '#fff5c1', + '--color-console-warning-icon': '#f4bd00', + '--color-console-warning-text': '#64460c', + '--color-context-background': 'rgba(0,0,0,.9)', + '--color-context-background-hover': 'rgba(255, 255, 255, 0.1)', + '--color-context-background-selected': '#178fb9', + '--color-context-border': '#3d424a', + '--color-context-text': '#ffffff', + '--color-context-text-selected': '#ffffff', + '--color-dim': '#777d88', + '--color-dimmer': '#cfd1d5', + '--color-dimmest': '#eff0f1', + '--color-error-background': 'hsl(0, 100%, 97%)', + '--color-error-border': 'hsl(0, 100%, 92%)', + '--color-error-text': '#ff0000', + '--color-expand-collapse-toggle': '#777d88', + '--color-link': '#0000ff', + '--color-modal-background': 'rgba(255, 255, 255, 0.75)', + '--color-bridge-version-npm-background': '#eff0f1', + '--color-bridge-version-npm-text': '#000000', + '--color-bridge-version-number': '#0088fa', + '--color-primitive-hook-badge-background': '#e5e5e5', + '--color-primitive-hook-badge-text': '#5f6673', + '--color-record-active': '#fc3a4b', + '--color-record-hover': '#3578e5', + '--color-record-inactive': '#0088fa', + '--color-resize-bar': '#eeeeee', + '--color-resize-bar-active': '#dcdcdc', + '--color-resize-bar-border': '#d1d1d1', + '--color-resize-bar-dot': '#333333', + '--color-timeline-internal-module': '#d1d1d1', + '--color-timeline-internal-module-hover': '#c9c9c9', + '--color-timeline-internal-module-text': '#444', + '--color-timeline-native-event': '#ccc', + '--color-timeline-native-event-hover': '#aaa', + '--color-timeline-network-primary': '#fcf3dc', + '--color-timeline-network-primary-hover': '#f0e7d1', + '--color-timeline-network-secondary': '#efc457', + '--color-timeline-network-secondary-hover': '#e3ba52', + '--color-timeline-priority-background': '#f6f6f6', + '--color-timeline-priority-border': '#eeeeee', + '--color-timeline-user-timing': '#c9cacd', + '--color-timeline-user-timing-hover': '#93959a', + '--color-timeline-react-idle': '#d3e5f6', + '--color-timeline-react-idle-hover': '#c3d9ef', + '--color-timeline-react-render': '#9fc3f3', + '--color-timeline-react-render-hover': '#83afe9', + '--color-timeline-react-render-text': '#11365e', + '--color-timeline-react-commit': '#c88ff0', + '--color-timeline-react-commit-hover': '#b281d6', + '--color-timeline-react-commit-text': '#3e2c4a', + '--color-timeline-react-layout-effects': '#b281d6', + '--color-timeline-react-layout-effects-hover': '#9d71bd', + '--color-timeline-react-layout-effects-text': '#3e2c4a', + '--color-timeline-react-passive-effects': '#b281d6', + '--color-timeline-react-passive-effects-hover': '#9d71bd', + '--color-timeline-react-passive-effects-text': '#3e2c4a', + '--color-timeline-react-schedule': '#9fc3f3', + '--color-timeline-react-schedule-hover': '#2683E2', + '--color-timeline-react-suspense-rejected': '#f1cc14', + '--color-timeline-react-suspense-rejected-hover': '#ffdf37', + '--color-timeline-react-suspense-resolved': '#a6e59f', + '--color-timeline-react-suspense-resolved-hover': '#89d281', + '--color-timeline-react-suspense-unresolved': '#c9cacd', + '--color-timeline-react-suspense-unresolved-hover': '#93959a', + '--color-timeline-thrown-error': '#ee1638', + '--color-timeline-thrown-error-hover': '#da1030', + '--color-timeline-text-color': '#000000', + '--color-timeline-text-dim-color': '#ccc', + '--color-timeline-react-work-border': '#eeeeee', + '--color-search-match': 'yellow', + '--color-search-match-current': '#f7923b', + '--color-selected-tree-highlight-active': 'rgba(0, 136, 250, 0.1)', + '--color-selected-tree-highlight-inactive': 'rgba(0, 0, 0, 0.05)', + '--color-scroll-caret': 'rgba(150, 150, 150, 0.5)', + '--color-tab-selected-border': '#0088fa', + '--color-text': '#000000', + '--color-text-invalid': '#ff0000', + '--color-text-selected': '#ffffff', + '--color-toggle-background-invalid': '#fc3a4b', + '--color-toggle-background-on': '#0088fa', + '--color-toggle-background-off': '#cfd1d5', + '--color-toggle-text': '#ffffff', + '--color-warning-background': '#fb3655', + '--color-warning-background-hover': '#f82042', + '--color-warning-text-color': '#ffffff', + '--color-warning-text-color-inverted': '#fd4d69', + '--color-scroll-thumb': '#c2c2c2', + '--color-scroll-track': '#fafafa', + '--color-tooltip-background': 'rgba(0, 0, 0, 0.9)', + '--color-tooltip-text': '#ffffff' + }, + dark: { + '--color-attribute-name': '#9d87d2', + '--color-attribute-name-not-editable': '#ededed', + '--color-attribute-name-inverted': '#282828', + '--color-attribute-value': '#cedae0', + '--color-attribute-value-inverted': '#ffffff', + '--color-attribute-editable-value': 'yellow', + '--color-background': '#282c34', + '--color-background-hover': 'rgba(255, 255, 255, 0.1)', + '--color-background-inactive': '#3d424a', + '--color-background-invalid': '#5c0000', + '--color-background-selected': '#178fb9', + '--color-button-background': '#282c34', + '--color-button-background-focus': '#3d424a', + '--color-button': '#afb3b9', + '--color-button-active': '#61dafb', + '--color-button-disabled': '#4f5766', + '--color-button-focus': '#a2e9fc', + '--color-button-hover': '#ededed', + '--color-border': '#3d424a', + '--color-commit-did-not-render-fill': '#777d88', + '--color-commit-did-not-render-fill-text': '#000000', + '--color-commit-did-not-render-pattern': '#666c77', + '--color-commit-did-not-render-pattern-text': '#ffffff', + '--color-commit-gradient-0': '#37afa9', + '--color-commit-gradient-1': '#63b19e', + '--color-commit-gradient-2': '#80b393', + '--color-commit-gradient-3': '#97b488', + '--color-commit-gradient-4': '#abb67d', + '--color-commit-gradient-5': '#beb771', + '--color-commit-gradient-6': '#cfb965', + '--color-commit-gradient-7': '#dfba57', + '--color-commit-gradient-8': '#efbb49', + '--color-commit-gradient-9': '#febc38', + '--color-commit-gradient-text': '#000000', + '--color-component-name': '#61dafb', + '--color-component-name-inverted': '#282828', + '--color-component-badge-background': 'rgba(255, 255, 255, 0.25)', + '--color-component-badge-background-inverted': 'rgba(0, 0, 0, 0.25)', + '--color-component-badge-count': '#8f949d', + '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-console-error-badge-text': '#000000', + '--color-console-error-background': '#290000', + '--color-console-error-border': '#5c0000', + '--color-console-error-icon': '#eb3941', + '--color-console-error-text': '#fc7f7f', + '--color-console-warning-badge-text': '#000000', + '--color-console-warning-background': '#332b00', + '--color-console-warning-border': '#665500', + '--color-console-warning-icon': '#f4bd00', + '--color-console-warning-text': '#f5f2ed', + '--color-context-background': 'rgba(255,255,255,.95)', + '--color-context-background-hover': 'rgba(0, 136, 250, 0.1)', + '--color-context-background-selected': '#0088fa', + '--color-context-border': '#eeeeee', + '--color-context-text': '#000000', + '--color-context-text-selected': '#ffffff', + '--color-dim': '#8f949d', + '--color-dimmer': '#777d88', + '--color-dimmest': '#4f5766', + '--color-error-background': '#200', + '--color-error-border': '#900', + '--color-error-text': '#f55', + '--color-expand-collapse-toggle': '#8f949d', + '--color-link': '#61dafb', + '--color-modal-background': 'rgba(0, 0, 0, 0.75)', + '--color-bridge-version-npm-background': 'rgba(0, 0, 0, 0.25)', + '--color-bridge-version-npm-text': '#ffffff', + '--color-bridge-version-number': 'yellow', + '--color-primitive-hook-badge-background': 'rgba(0, 0, 0, 0.25)', + '--color-primitive-hook-badge-text': 'rgba(255, 255, 255, 0.7)', + '--color-record-active': '#fc3a4b', + '--color-record-hover': '#a2e9fc', + '--color-record-inactive': '#61dafb', + '--color-resize-bar': '#282c34', + '--color-resize-bar-active': '#31363f', + '--color-resize-bar-border': '#3d424a', + '--color-resize-bar-dot': '#cfd1d5', + '--color-timeline-internal-module': '#303542', + '--color-timeline-internal-module-hover': '#363b4a', + '--color-timeline-internal-module-text': '#7f8899', + '--color-timeline-native-event': '#b2b2b2', + '--color-timeline-native-event-hover': '#949494', + '--color-timeline-network-primary': '#fcf3dc', + '--color-timeline-network-primary-hover': '#e3dbc5', + '--color-timeline-network-secondary': '#efc457', + '--color-timeline-network-secondary-hover': '#d6af4d', + '--color-timeline-priority-background': '#1d2129', + '--color-timeline-priority-border': '#282c34', + '--color-timeline-user-timing': '#c9cacd', + '--color-timeline-user-timing-hover': '#93959a', + '--color-timeline-react-idle': '#3d485b', + '--color-timeline-react-idle-hover': '#465269', + '--color-timeline-react-render': '#2683E2', + '--color-timeline-react-render-hover': '#1a76d4', + '--color-timeline-react-render-text': '#11365e', + '--color-timeline-react-commit': '#731fad', + '--color-timeline-react-commit-hover': '#611b94', + '--color-timeline-react-commit-text': '#e5c1ff', + '--color-timeline-react-layout-effects': '#611b94', + '--color-timeline-react-layout-effects-hover': '#51167a', + '--color-timeline-react-layout-effects-text': '#e5c1ff', + '--color-timeline-react-passive-effects': '#611b94', + '--color-timeline-react-passive-effects-hover': '#51167a', + '--color-timeline-react-passive-effects-text': '#e5c1ff', + '--color-timeline-react-schedule': '#2683E2', + '--color-timeline-react-schedule-hover': '#1a76d4', + '--color-timeline-react-suspense-rejected': '#f1cc14', + '--color-timeline-react-suspense-rejected-hover': '#e4c00f', + '--color-timeline-react-suspense-resolved': '#a6e59f', + '--color-timeline-react-suspense-resolved-hover': '#89d281', + '--color-timeline-react-suspense-unresolved': '#c9cacd', + '--color-timeline-react-suspense-unresolved-hover': '#93959a', + '--color-timeline-thrown-error': '#fb3655', + '--color-timeline-thrown-error-hover': '#f82042', + '--color-timeline-text-color': '#282c34', + '--color-timeline-text-dim-color': '#555b66', + '--color-timeline-react-work-border': '#3d424a', + '--color-search-match': 'yellow', + '--color-search-match-current': '#f7923b', + '--color-selected-tree-highlight-active': 'rgba(23, 143, 185, 0.15)', + '--color-selected-tree-highlight-inactive': 'rgba(255, 255, 255, 0.05)', + '--color-scroll-caret': '#4f5766', + '--color-shadow': 'rgba(0, 0, 0, 0.5)', + '--color-tab-selected-border': '#178fb9', + '--color-text': '#ffffff', + '--color-text-invalid': '#ff8080', + '--color-text-selected': '#ffffff', + '--color-toggle-background-invalid': '#fc3a4b', + '--color-toggle-background-on': '#178fb9', + '--color-toggle-background-off': '#777d88', + '--color-toggle-text': '#ffffff', + '--color-warning-background': '#ee1638', + '--color-warning-background-hover': '#da1030', + '--color-warning-text-color': '#ffffff', + '--color-warning-text-color-inverted': '#ee1638', + '--color-scroll-thumb': '#afb3b9', + '--color-scroll-track': '#313640', + '--color-tooltip-background': 'rgba(255, 255, 255, 0.95)', + '--color-tooltip-text': '#000000' + }, + compact: { + '--font-size-monospace-small': '9px', + '--font-size-monospace-normal': '11px', + '--font-size-monospace-large': '15px', + '--font-size-sans-small': '10px', + '--font-size-sans-normal': '12px', + '--font-size-sans-large': '14px', + '--line-height-data': '18px' + }, + comfortable: { + '--font-size-monospace-small': '10px', + '--font-size-monospace-normal': '13px', + '--font-size-monospace-large': '17px', + '--font-size-sans-small': '12px', + '--font-size-sans-normal': '14px', + '--font-size-sans-large': '16px', + '--line-height-data': '22px' + } + }; + + var COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable['--line-height-data'], 10); + var COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact['--line-height-data'], 10); + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "e", function () { + return ElementTypeClass; + }); + __webpack_require__.d(__webpack_exports__, "f", function () { + return ElementTypeContext; + }); + __webpack_require__.d(__webpack_exports__, "h", function () { + return ElementTypeFunction; + }); + __webpack_require__.d(__webpack_exports__, "g", function () { + return ElementTypeForwardRef; + }); + __webpack_require__.d(__webpack_exports__, "i", function () { + return ElementTypeHostComponent; + }); + __webpack_require__.d(__webpack_exports__, "j", function () { + return ElementTypeMemo; + }); + __webpack_require__.d(__webpack_exports__, "k", function () { + return ElementTypeOtherOrUnknown; + }); + __webpack_require__.d(__webpack_exports__, "l", function () { + return ElementTypeProfiler; + }); + __webpack_require__.d(__webpack_exports__, "m", function () { + return ElementTypeRoot; + }); + __webpack_require__.d(__webpack_exports__, "n", function () { + return ElementTypeSuspense; + }); + __webpack_require__.d(__webpack_exports__, "o", function () { + return ElementTypeSuspenseList; + }); + __webpack_require__.d(__webpack_exports__, "p", function () { + return ElementTypeTracingMarker; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return ComponentFilterElementType; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return ComponentFilterDisplayName; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return ComponentFilterLocation; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return ComponentFilterHOC; + }); + __webpack_require__.d(__webpack_exports__, "q", function () { + return StrictMode; + }); + var ElementTypeClass = 1; + var ElementTypeContext = 2; + var ElementTypeFunction = 5; + var ElementTypeForwardRef = 6; + var ElementTypeHostComponent = 7; + var ElementTypeMemo = 8; + var ElementTypeOtherOrUnknown = 9; + var ElementTypeProfiler = 10; + var ElementTypeRoot = 11; + var ElementTypeSuspense = 12; + var ElementTypeSuspenseList = 13; + var ElementTypeTracingMarker = 14; + + var ComponentFilterElementType = 1; + var ComponentFilterDisplayName = 2; + var ComponentFilterLocation = 3; + var ComponentFilterHOC = 4; + var StrictMode = 1; + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + (function (process) { + __webpack_require__.d(__webpack_exports__, "c", function () { + return getAllEnumerableKeys; + }); + __webpack_require__.d(__webpack_exports__, "f", function () { + return getDisplayName; + }); + __webpack_require__.d(__webpack_exports__, "i", function () { + return getUID; + }); + __webpack_require__.d(__webpack_exports__, "m", function () { + return utfEncodeString; + }); + __webpack_require__.d(__webpack_exports__, "j", function () { + return printOperationsArray; + }); + __webpack_require__.d(__webpack_exports__, "e", function () { + return getDefaultComponentFilters; + }); + __webpack_require__.d(__webpack_exports__, "h", function () { + return getInObject; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return deletePathInObject; + }); + __webpack_require__.d(__webpack_exports__, "k", function () { + return renamePathInObject; + }); + __webpack_require__.d(__webpack_exports__, "l", function () { + return setInObject; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return getDataType; + }); + __webpack_require__.d(__webpack_exports__, "g", function () { + return getDisplayNameForReactElement; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return formatDataForPreview; + }); + var lru_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); + var lru_cache__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(lru_cache__WEBPACK_IMPORTED_MODULE_0__); + var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); + var react_is__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__); + var shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); + var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); + var react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); + var _storage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5); + var _hydration__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11); + var _isArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6); + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); + } + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); + } + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + + var cachedDisplayNames = new WeakMap(); + + var encodedStringCache = new lru_cache__WEBPACK_IMPORTED_MODULE_0___default.a({ + max: 1000 + }); + function alphaSortKeys(a, b) { + if (a.toString() > b.toString()) { + return 1; + } else if (b.toString() > a.toString()) { + return -1; + } else { + return 0; + } + } + function getAllEnumerableKeys(obj) { + var keys = new Set(); + var current = obj; + var _loop = function _loop() { + var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current))); + var descriptors = Object.getOwnPropertyDescriptors(current); + currentKeys.forEach(function (key) { + if (descriptors[key].enumerable) { + keys.add(key); + } + }); + current = Object.getPrototypeOf(current); + }; + while (current != null) { + _loop(); + } + return keys; + } + function getDisplayName(type) { + var fallbackName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Anonymous'; + var nameFromCache = cachedDisplayNames.get(type); + if (nameFromCache != null) { + return nameFromCache; + } + var displayName = fallbackName; + + if (typeof type.displayName === 'string') { + displayName = type.displayName; + } else if (typeof type.name === 'string' && type.name !== '') { + displayName = type.name; + } + cachedDisplayNames.set(type, displayName); + return displayName; + } + var uidCounter = 0; + function getUID() { + return ++uidCounter; + } + function utfDecodeString(array) { + var string = ''; + for (var i = 0; i < array.length; i++) { + var char = array[i]; + string += String.fromCodePoint(char); + } + return string; + } + function surrogatePairToCodePoint(charCode1, charCode2) { + return ((charCode1 & 0x3ff) << 10) + (charCode2 & 0x3ff) + 0x10000; + } + + function utfEncodeString(string) { + var cached = encodedStringCache.get(string); + if (cached !== undefined) { + return cached; + } + var encoded = []; + var i = 0; + var charCode; + while (i < string.length) { + charCode = string.charCodeAt(i); + + if ((charCode & 0xf800) === 0xd800) { + encoded.push(surrogatePairToCodePoint(charCode, string.charCodeAt(++i))); + } else { + encoded.push(charCode); + } + ++i; + } + encodedStringCache.set(string, encoded); + return encoded; + } + function printOperationsArray(operations) { + var rendererID = operations[0]; + var rootID = operations[1]; + var logs = ["operations for renderer:".concat(rendererID, " and root:").concat(rootID)]; + var i = 2; + + var stringTable = [null]; + + var stringTableSize = operations[i++]; + var stringTableEnd = i + stringTableSize; + while (i < stringTableEnd) { + var nextLength = operations[i++]; + var nextString = utfDecodeString(operations.slice(i, i + nextLength)); + stringTable.push(nextString); + i += nextLength; + } + while (i < operations.length) { + var operation = operations[i]; + switch (operation) { + case _constants__WEBPACK_IMPORTED_MODULE_3__["l"]: + { + var _id = operations[i + 1]; + var type = operations[i + 2]; + i += 3; + if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["m"]) { + logs.push("Add new root node ".concat(_id)); + i++; + + i++; + + i++; + + i++; + } else { + var parentID = operations[i]; + i++; + i++; + + var displayNameStringID = operations[i]; + var displayName = stringTable[displayNameStringID]; + i++; + i++; + + logs.push("Add node ".concat(_id, " (").concat(displayName || 'null', ") as child of ").concat(parentID)); + } + break; + } + case _constants__WEBPACK_IMPORTED_MODULE_3__["m"]: + { + var removeLength = operations[i + 1]; + i += 2; + for (var removeIndex = 0; removeIndex < removeLength; removeIndex++) { + var _id2 = operations[i]; + i += 1; + logs.push("Remove node ".concat(_id2)); + } + break; + } + case _constants__WEBPACK_IMPORTED_MODULE_3__["n"]: + { + i += 1; + logs.push("Remove root ".concat(rootID)); + break; + } + case _constants__WEBPACK_IMPORTED_MODULE_3__["p"]: + { + var _id3 = operations[i + 1]; + var mode = operations[i + 1]; + i += 3; + logs.push("Mode ".concat(mode, " set for subtree with root ").concat(_id3)); + break; + } + case _constants__WEBPACK_IMPORTED_MODULE_3__["o"]: + { + var _id4 = operations[i + 1]; + var numChildren = operations[i + 2]; + i += 3; + var children = operations.slice(i, i + numChildren); + i += numChildren; + logs.push("Re-order node ".concat(_id4, " children ").concat(children.join(','))); + break; + } + case _constants__WEBPACK_IMPORTED_MODULE_3__["r"]: + i += 3; + break; + case _constants__WEBPACK_IMPORTED_MODULE_3__["q"]: + var id = operations[i + 1]; + var numErrors = operations[i + 2]; + var numWarnings = operations[i + 3]; + i += 4; + logs.push("Node ".concat(id, " has ").concat(numErrors, " errors and ").concat(numWarnings, " warnings")); + break; + default: + throw Error("Unsupported Bridge operation \"".concat(operation, "\"")); + } + } + console.log(logs.join('\n ')); + } + function getDefaultComponentFilters() { + return [{ + type: react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["b"], + value: react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["i"], + isEnabled: true + }]; + } + function getSavedComponentFilters() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["a"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return getDefaultComponentFilters(); + } + function saveComponentFilters(componentFilters) { + Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["a"], JSON.stringify(componentFilters)); + } + function getAppendComponentStack() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["e"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return true; + } + function setAppendComponentStack(value) { + Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["e"], JSON.stringify(value)); + } + function getBreakOnConsoleErrors() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["d"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return false; + } + function setBreakOnConsoleErrors(value) { + Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["d"], JSON.stringify(value)); + } + function getHideConsoleLogsInStrictMode() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["b"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return false; + } + function sethideConsoleLogsInStrictMode(value) { + Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["b"], JSON.stringify(value)); + } + function getShowInlineWarningsAndErrors() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["f"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return true; + } + function setShowInlineWarningsAndErrors(value) { + Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["f"], JSON.stringify(value)); + } + function getDefaultOpenInEditorURL() { + return typeof process.env.EDITOR_URL === 'string' ? process.env.EDITOR_URL : ''; + } + function getOpenInEditorURL() { + try { + var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["c"]); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return getDefaultOpenInEditorURL(); + } + function separateDisplayNameAndHOCs(displayName, type) { + if (displayName === null) { + return [null, null]; + } + var hocDisplayNames = null; + switch (type) { + case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["e"]: + case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["g"]: + case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["h"]: + case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["j"]: + if (displayName.indexOf('(') >= 0) { + var matches = displayName.match(/[^()]+/g); + if (matches != null) { + displayName = matches.pop(); + hocDisplayNames = matches; + } + } + break; + default: + break; + } + if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["j"]) { + if (hocDisplayNames === null) { + hocDisplayNames = ['Memo']; + } else { + hocDisplayNames.unshift('Memo'); + } + } else if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["g"]) { + if (hocDisplayNames === null) { + hocDisplayNames = ['ForwardRef']; + } else { + hocDisplayNames.unshift('ForwardRef'); + } + } + return [displayName, hocDisplayNames]; + } + + function shallowDiffers(prev, next) { + for (var attribute in prev) { + if (!(attribute in next)) { + return true; + } + } + for (var _attribute in next) { + if (prev[_attribute] !== next[_attribute]) { + return true; + } + } + return false; + } + function getInObject(object, path) { + return path.reduce(function (reduced, attr) { + if (reduced) { + if (hasOwnProperty.call(reduced, attr)) { + return reduced[attr]; + } + if (typeof reduced[Symbol.iterator] === 'function') { + return Array.from(reduced)[attr]; + } + } + return null; + }, object); + } + function deletePathInObject(object, path) { + var length = path.length; + var last = path[length - 1]; + if (object != null) { + var parent = getInObject(object, path.slice(0, length - 1)); + if (parent) { + if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(parent)) { + parent.splice(last, 1); + } else { + delete parent[last]; + } + } + } + } + function renamePathInObject(object, oldPath, newPath) { + var length = oldPath.length; + if (object != null) { + var parent = getInObject(object, oldPath.slice(0, length - 1)); + if (parent) { + var lastOld = oldPath[length - 1]; + var lastNew = newPath[length - 1]; + parent[lastNew] = parent[lastOld]; + if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(parent)) { + parent.splice(lastOld, 1); + } else { + delete parent[lastOld]; + } + } + } + } + function setInObject(object, path, value) { + var length = path.length; + var last = path[length - 1]; + if (object != null) { + var parent = getInObject(object, path.slice(0, length - 1)); + if (parent) { + parent[last] = value; + } + } + } + + function getDataType(data) { + if (data === null) { + return 'null'; + } else if (data === undefined) { + return 'undefined'; + } + if (Object(react_is__WEBPACK_IMPORTED_MODULE_1__["isElement"])(data)) { + return 'react_element'; + } + if (typeof HTMLElement !== 'undefined' && data instanceof HTMLElement) { + return 'html_element'; + } + var type = _typeof(data); + switch (type) { + case 'bigint': + return 'bigint'; + case 'boolean': + return 'boolean'; + case 'function': + return 'function'; + case 'number': + if (Number.isNaN(data)) { + return 'nan'; + } else if (!Number.isFinite(data)) { + return 'infinity'; + } else { + return 'number'; + } + case 'object': + if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(data)) { + return 'array'; + } else if (ArrayBuffer.isView(data)) { + return hasOwnProperty.call(data.constructor, 'BYTES_PER_ELEMENT') ? 'typed_array' : 'data_view'; + } else if (data.constructor && data.constructor.name === 'ArrayBuffer') { + return 'array_buffer'; + } else if (typeof data[Symbol.iterator] === 'function') { + var iterator = data[Symbol.iterator](); + if (!iterator) { + } else { + return iterator === data ? 'opaque_iterator' : 'iterator'; + } + } else if (data.constructor && data.constructor.name === 'RegExp') { + return 'regexp'; + } else { + var toStringValue = Object.prototype.toString.call(data); + if (toStringValue === '[object Date]') { + return 'date'; + } else if (toStringValue === '[object HTMLAllCollection]') { + return 'html_all_collection'; + } + } + return 'object'; + case 'string': + return 'string'; + case 'symbol': + return 'symbol'; + case 'undefined': + if (Object.prototype.toString.call(data) === '[object HTMLAllCollection]') { + return 'html_all_collection'; + } + return 'undefined'; + default: + return 'unknown'; + } + } + function getDisplayNameForReactElement(element) { + var elementType = Object(react_is__WEBPACK_IMPORTED_MODULE_1__["typeOf"])(element); + switch (elementType) { + case react_is__WEBPACK_IMPORTED_MODULE_1__["ContextConsumer"]: + return 'ContextConsumer'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["ContextProvider"]: + return 'ContextProvider'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["ForwardRef"]: + return 'ForwardRef'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Fragment"]: + return 'Fragment'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Lazy"]: + return 'Lazy'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Memo"]: + return 'Memo'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Portal"]: + return 'Portal'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Profiler"]: + return 'Profiler'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["StrictMode"]: + return 'StrictMode'; + case react_is__WEBPACK_IMPORTED_MODULE_1__["Suspense"]: + return 'Suspense'; + case shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__["a"]: + return 'SuspenseList'; + case shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__["b"]: + return 'TracingMarker'; + default: + var type = element.type; + if (typeof type === 'string') { + return type; + } else if (typeof type === 'function') { + return getDisplayName(type, 'Anonymous'); + } else if (type != null) { + return 'NotImplementedInDevtools'; + } else { + return 'Element'; + } + } + } + var MAX_PREVIEW_STRING_LENGTH = 50; + function truncateForDisplay(string) { + var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MAX_PREVIEW_STRING_LENGTH; + if (string.length > length) { + return string.substr(0, length) + 'โ€ฆ'; + } else { + return string; + } + } + + function formatDataForPreview(data, showFormattedValue) { + if (data != null && hasOwnProperty.call(data, _hydration__WEBPACK_IMPORTED_MODULE_6__["b"].type)) { + return showFormattedValue ? data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].preview_long] : data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].preview_short]; + } + var type = getDataType(data); + switch (type) { + case 'html_element': + return "<".concat(truncateForDisplay(data.tagName.toLowerCase()), " />"); + case 'function': + return truncateForDisplay("\u0192 ".concat(typeof data.name === 'function' ? '' : data.name, "() {}")); + case 'string': + return "\"".concat(data, "\""); + case 'bigint': + return truncateForDisplay(data.toString() + 'n'); + case 'regexp': + return truncateForDisplay(data.toString()); + case 'symbol': + return truncateForDisplay(data.toString()); + case 'react_element': + return "<".concat(truncateForDisplay(getDisplayNameForReactElement(data) || 'Unknown'), " />"); + case 'array_buffer': + return "ArrayBuffer(".concat(data.byteLength, ")"); + case 'data_view': + return "DataView(".concat(data.buffer.byteLength, ")"); + case 'array': + if (showFormattedValue) { + var formatted = ''; + for (var i = 0; i < data.length; i++) { + if (i > 0) { + formatted += ', '; + } + formatted += formatDataForPreview(data[i], false); + if (formatted.length > MAX_PREVIEW_STRING_LENGTH) { + break; + } + } + return "[".concat(truncateForDisplay(formatted), "]"); + } else { + var length = hasOwnProperty.call(data, _hydration__WEBPACK_IMPORTED_MODULE_6__["b"].size) ? data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].size] : data.length; + return "Array(".concat(length, ")"); + } + case 'typed_array': + var shortName = "".concat(data.constructor.name, "(").concat(data.length, ")"); + if (showFormattedValue) { + var _formatted = ''; + for (var _i = 0; _i < data.length; _i++) { + if (_i > 0) { + _formatted += ', '; + } + _formatted += data[_i]; + if (_formatted.length > MAX_PREVIEW_STRING_LENGTH) { + break; + } + } + return "".concat(shortName, " [").concat(truncateForDisplay(_formatted), "]"); + } else { + return shortName; + } + case 'iterator': + var name = data.constructor.name; + if (showFormattedValue) { + var array = Array.from(data); + var _formatted2 = ''; + for (var _i2 = 0; _i2 < array.length; _i2++) { + var entryOrEntries = array[_i2]; + if (_i2 > 0) { + _formatted2 += ', '; + } + + if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(entryOrEntries)) { + var key = formatDataForPreview(entryOrEntries[0], true); + var value = formatDataForPreview(entryOrEntries[1], false); + _formatted2 += "".concat(key, " => ").concat(value); + } else { + _formatted2 += formatDataForPreview(entryOrEntries, false); + } + if (_formatted2.length > MAX_PREVIEW_STRING_LENGTH) { + break; + } + } + return "".concat(name, "(").concat(data.size, ") {").concat(truncateForDisplay(_formatted2), "}"); + } else { + return "".concat(name, "(").concat(data.size, ")"); + } + case 'opaque_iterator': + { + return data[Symbol.toStringTag]; + } + case 'date': + return data.toString(); + case 'object': + if (showFormattedValue) { + var keys = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys); + var _formatted3 = ''; + for (var _i3 = 0; _i3 < keys.length; _i3++) { + var _key = keys[_i3]; + if (_i3 > 0) { + _formatted3 += ', '; + } + _formatted3 += "".concat(_key.toString(), ": ").concat(formatDataForPreview(data[_key], false)); + if (_formatted3.length > MAX_PREVIEW_STRING_LENGTH) { + break; + } + } + return "{".concat(truncateForDisplay(_formatted3), "}"); + } else { + return '{โ€ฆ}'; + } + case 'boolean': + case 'number': + case 'infinity': + case 'nan': + case 'null': + case 'undefined': + return data; + default: + try { + return truncateForDisplay(String(data)); + } catch (error) { + return 'unserializable'; + } + } + } + }).call(this, __webpack_require__(16)); + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return CONCURRENT_MODE_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return CONCURRENT_MODE_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return CONTEXT_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return CONTEXT_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "r", function () { + return SERVER_CONTEXT_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "e", function () { + return DEPRECATED_ASYNC_MODE_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "f", function () { + return FORWARD_REF_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "g", function () { + return FORWARD_REF_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "h", function () { + return LAZY_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "i", function () { + return LAZY_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "j", function () { + return MEMO_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "k", function () { + return MEMO_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "l", function () { + return PROFILER_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "m", function () { + return PROFILER_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "n", function () { + return PROVIDER_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "o", function () { + return PROVIDER_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "p", function () { + return SCOPE_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "q", function () { + return SCOPE_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "s", function () { + return STRICT_MODE_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "t", function () { + return STRICT_MODE_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "w", function () { + return SUSPENSE_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "x", function () { + return SUSPENSE_SYMBOL_STRING; + }); + __webpack_require__.d(__webpack_exports__, "u", function () { + return SUSPENSE_LIST_NUMBER; + }); + __webpack_require__.d(__webpack_exports__, "v", function () { + return SUSPENSE_LIST_SYMBOL_STRING; + }); + var CONCURRENT_MODE_NUMBER = 0xeacf; + var CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)'; + var CONTEXT_NUMBER = 0xeace; + var CONTEXT_SYMBOL_STRING = 'Symbol(react.context)'; + var SERVER_CONTEXT_SYMBOL_STRING = 'Symbol(react.server_context)'; + var DEPRECATED_ASYNC_MODE_SYMBOL_STRING = 'Symbol(react.async_mode)'; + var ELEMENT_NUMBER = 0xeac7; + var ELEMENT_SYMBOL_STRING = 'Symbol(react.element)'; + var DEBUG_TRACING_MODE_NUMBER = 0xeae1; + var DEBUG_TRACING_MODE_SYMBOL_STRING = 'Symbol(react.debug_trace_mode)'; + var FORWARD_REF_NUMBER = 0xead0; + var FORWARD_REF_SYMBOL_STRING = 'Symbol(react.forward_ref)'; + var FRAGMENT_NUMBER = 0xeacb; + var FRAGMENT_SYMBOL_STRING = 'Symbol(react.fragment)'; + var LAZY_NUMBER = 0xead4; + var LAZY_SYMBOL_STRING = 'Symbol(react.lazy)'; + var MEMO_NUMBER = 0xead3; + var MEMO_SYMBOL_STRING = 'Symbol(react.memo)'; + var PORTAL_NUMBER = 0xeaca; + var PORTAL_SYMBOL_STRING = 'Symbol(react.portal)'; + var PROFILER_NUMBER = 0xead2; + var PROFILER_SYMBOL_STRING = 'Symbol(react.profiler)'; + var PROVIDER_NUMBER = 0xeacd; + var PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)'; + var SCOPE_NUMBER = 0xead7; + var SCOPE_SYMBOL_STRING = 'Symbol(react.scope)'; + var STRICT_MODE_NUMBER = 0xeacc; + var STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)'; + var SUSPENSE_NUMBER = 0xead1; + var SUSPENSE_SYMBOL_STRING = 'Symbol(react.suspense)'; + var SUSPENSE_LIST_NUMBER = 0xead8; + var SUSPENSE_LIST_SYMBOL_STRING = 'Symbol(react.suspense_list)'; + var SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED_SYMBOL_STRING = 'Symbol(react.server_context.defaultValue)'; + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return cleanForBridge; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return copyToClipboard; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return copyWithDelete; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return copyWithRename; + }); + __webpack_require__.d(__webpack_exports__, "e", function () { + return copyWithSet; + }); + __webpack_require__.d(__webpack_exports__, "g", function () { + return getEffectDurations; + }); + __webpack_require__.d(__webpack_exports__, "f", function () { + return format; + }); + __webpack_require__.d(__webpack_exports__, "h", function () { + return isSynchronousXHRSupported; + }); + var clipboard_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); + var clipboard_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(clipboard_js__WEBPACK_IMPORTED_MODULE_0__); + var _hydration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); + var shared_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + function cleanForBridge(data, isPathAllowed) { + var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + if (data !== null) { + var cleanedPaths = []; + var unserializablePaths = []; + var cleanedData = Object(_hydration__WEBPACK_IMPORTED_MODULE_1__["a"])(data, cleanedPaths, unserializablePaths, path, isPathAllowed); + return { + data: cleanedData, + cleaned: cleanedPaths, + unserializable: unserializablePaths + }; + } else { + return null; + } + } + function copyToClipboard(value) { + var safeToCopy = serializeToString(value); + var text = safeToCopy === undefined ? 'undefined' : safeToCopy; + var clipboardCopyText = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.clipboardCopyText; + + if (typeof clipboardCopyText === 'function') { + clipboardCopyText(text).catch(function (err) {}); + } else { + Object(clipboard_js__WEBPACK_IMPORTED_MODULE_0__["copy"])(text); + } + } + function copyWithDelete(obj, path) { + var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var key = path[index]; + var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); + if (index + 1 === path.length) { + if (Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; + } + } else { + updated[key] = copyWithDelete(obj[key], path, index + 1); + } + return updated; + } + + function copyWithRename(obj, oldPath, newPath) { + var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + var oldKey = oldPath[index]; + var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); + if (index + 1 === oldPath.length) { + var newKey = newPath[index]; + + updated[newKey] = updated[oldKey]; + if (Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + updated[oldKey] = copyWithRename(obj[oldKey], oldPath, newPath, index + 1); + } + return updated; + } + function copyWithSet(obj, path, value) { + var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + if (index >= path.length) { + return value; + } + var key = path[index]; + var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); + + updated[key] = copyWithSet(obj[key], path, value, index + 1); + return updated; + } + function getEffectDurations(root) { + var effectDuration = null; + var passiveEffectDuration = null; + var hostRoot = root.current; + if (hostRoot != null) { + var stateNode = hostRoot.stateNode; + if (stateNode != null) { + effectDuration = stateNode.effectDuration != null ? stateNode.effectDuration : null; + passiveEffectDuration = stateNode.passiveEffectDuration != null ? stateNode.passiveEffectDuration : null; + } + } + return { + effectDuration: effectDuration, + passiveEffectDuration: passiveEffectDuration + }; + } + function serializeToString(data) { + var cache = new Set(); + + return JSON.stringify(data, function (key, value) { + if (_typeof(value) === 'object' && value !== null) { + if (cache.has(value)) { + return; + } + cache.add(value); + } + + if (typeof value === 'bigint') { + return value.toString() + 'n'; + } + return value; + }); + } + + function format(maybeMessage) { + for (var _len = arguments.length, inputArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + inputArgs[_key - 1] = arguments[_key]; + } + var args = inputArgs.slice(); + var formatted = String(maybeMessage); + + if (typeof maybeMessage === 'string') { + if (args.length) { + var REGEXP = /(%?)(%([jds]))/g; + formatted = formatted.replace(REGEXP, function (match, escaped, ptn, flag) { + var arg = args.shift(); + switch (flag) { + case 's': + arg += ''; + break; + case 'd': + case 'i': + arg = parseInt(arg, 10).toString(); + break; + case 'f': + arg = parseFloat(arg).toString(); + break; + } + if (!escaped) { + return arg; + } + args.unshift(arg); + return match; + }); + } + } + + if (args.length) { + for (var i = 0; i < args.length; i++) { + formatted += ' ' + String(args[i]); + } + } + + formatted = formatted.replace(/%{2,2}/g, '%'); + return String(formatted); + } + function isSynchronousXHRSupported() { + return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature('sync-xhr')); + } + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return localStorageGetItem; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return localStorageSetItem; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return sessionStorageGetItem; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return sessionStorageRemoveItem; + }); + __webpack_require__.d(__webpack_exports__, "e", function () { + return sessionStorageSetItem; + }); + function localStorageGetItem(key) { + try { + return localStorage.getItem(key); + } catch (error) { + return null; + } + } + function localStorageRemoveItem(key) { + try { + localStorage.removeItem(key); + } catch (error) {} + } + function localStorageSetItem(key, value) { + try { + return localStorage.setItem(key, value); + } catch (error) {} + } + function sessionStorageGetItem(key) { + try { + return sessionStorage.getItem(key); + } catch (error) { + return null; + } + } + function sessionStorageRemoveItem(key) { + try { + sessionStorage.removeItem(key); + } catch (error) {} + } + function sessionStorageSetItem(key, value) { + try { + return sessionStorage.setItem(key, value); + } catch (error) {} + } + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + var isArray = Array.isArray; + __webpack_exports__["a"] = isArray; + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + if (true) { + module.exports = __webpack_require__(26); + } else {} + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + var isArrayImpl = Array.isArray; + + function isArray(a) { + return isArrayImpl(a); + } + + __webpack_exports__["a"] = isArray; + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + (function (global) { + __webpack_require__.d(__webpack_exports__, "c", function () { + return registerRenderer; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return patch; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return patchForStrictMode; + }); + __webpack_require__.d(__webpack_exports__, "d", function () { + return unpatchForStrictMode; + }); + var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); + var _renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); + var _DevToolsFiberComponentStack__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21); + var react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12); + function _createForOfIteratorHelper(o, allowArrayLike) { + var it; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function F() {}; + return { + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e) { + throw _e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function e(_e2) { + didErr = true; + err = _e2; + }, + f: function f() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + + var OVERRIDE_CONSOLE_METHODS = ['error', 'trace', 'warn']; + var DIMMED_NODE_CONSOLE_COLOR = '\x1b[2m%s\x1b[0m'; + + var PREFIX_REGEX = /\s{4}(in|at)\s{1}/; + + var ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/; + function isStringComponentStack(text) { + return PREFIX_REGEX.test(text) || ROW_COLUMN_NUMBER_REGEX.test(text); + } + var STYLE_DIRECTIVE_REGEX = /^%c/; + + function isStrictModeOverride(args, method) { + return args.length === 2 && STYLE_DIRECTIVE_REGEX.test(args[0]) && args[1] === "color: ".concat(getConsoleColor(method) || ''); + } + function getConsoleColor(method) { + switch (method) { + case 'warn': + return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; + case 'error': + return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; + case 'log': + default: + return consoleSettingsRef.browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; + } + } + var injectedRenderers = new Map(); + var targetConsole = console; + var targetConsoleMethods = {}; + for (var method in console) { + targetConsoleMethods[method] = console[method]; + } + var unpatchFn = null; + var isNode = false; + try { + isNode = undefined === global; + } catch (error) {} + + function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { + targetConsole = targetConsoleForTesting; + targetConsoleMethods = {}; + for (var _method in targetConsole) { + targetConsoleMethods[_method] = console[_method]; + } + } + + function registerRenderer(renderer, onErrorOrWarning) { + var currentDispatcherRef = renderer.currentDispatcherRef, + getCurrentFiber = renderer.getCurrentFiber, + findFiberByHostInstance = renderer.findFiberByHostInstance, + version = renderer.version; + + if (typeof findFiberByHostInstance !== 'function') { + return; + } + + if (currentDispatcherRef != null && typeof getCurrentFiber === 'function') { + var _getInternalReactCons = Object(_renderer__WEBPACK_IMPORTED_MODULE_1__["b"])(version), + ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork; + injectedRenderers.set(renderer, { + currentDispatcherRef: currentDispatcherRef, + getCurrentFiber: getCurrentFiber, + workTagMap: ReactTypeOfWork, + onErrorOrWarning: onErrorOrWarning + }); + } + } + var consoleSettingsRef = { + appendComponentStack: false, + breakOnConsoleErrors: false, + showInlineWarningsAndErrors: false, + hideConsoleLogsInStrictMode: false, + browserTheme: 'dark' + }; + + function patch(_ref) { + var appendComponentStack = _ref.appendComponentStack, + breakOnConsoleErrors = _ref.breakOnConsoleErrors, + showInlineWarningsAndErrors = _ref.showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, + browserTheme = _ref.browserTheme; + consoleSettingsRef.appendComponentStack = appendComponentStack; + consoleSettingsRef.breakOnConsoleErrors = breakOnConsoleErrors; + consoleSettingsRef.showInlineWarningsAndErrors = showInlineWarningsAndErrors; + consoleSettingsRef.hideConsoleLogsInStrictMode = hideConsoleLogsInStrictMode; + consoleSettingsRef.browserTheme = browserTheme; + if (appendComponentStack || breakOnConsoleErrors || showInlineWarningsAndErrors) { + if (unpatchFn !== null) { + return; + } + var originalConsoleMethods = {}; + unpatchFn = function unpatchFn() { + for (var _method2 in originalConsoleMethods) { + try { + targetConsole[_method2] = originalConsoleMethods[_method2]; + } catch (error) {} + } + }; + OVERRIDE_CONSOLE_METHODS.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ : targetConsole[method]; + var overrideMethod = function overrideMethod() { + var shouldAppendWarningStack = false; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + if (method !== 'log') { + if (consoleSettingsRef.appendComponentStack) { + var lastArg = args.length > 0 ? args[args.length - 1] : null; + var alreadyHasComponentStack = typeof lastArg === 'string' && isStringComponentStack(lastArg); + + shouldAppendWarningStack = !alreadyHasComponentStack; + } + } + var shouldShowInlineWarningsAndErrors = consoleSettingsRef.showInlineWarningsAndErrors && (method === 'error' || method === 'warn'); + + var _iterator = _createForOfIteratorHelper(injectedRenderers.values()), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var _step$value = _step.value, + currentDispatcherRef = _step$value.currentDispatcherRef, + getCurrentFiber = _step$value.getCurrentFiber, + onErrorOrWarning = _step$value.onErrorOrWarning, + workTagMap = _step$value.workTagMap; + var current = getCurrentFiber(); + if (current != null) { + try { + if (shouldShowInlineWarningsAndErrors) { + if (typeof onErrorOrWarning === 'function') { + onErrorOrWarning(current, method, + args.slice()); + } + } + if (shouldAppendWarningStack) { + var componentStack = Object(_DevToolsFiberComponentStack__WEBPACK_IMPORTED_MODULE_2__["a"])(workTagMap, current, currentDispatcherRef); + if (componentStack !== '') { + if (isStrictModeOverride(args, method)) { + args[0] = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["f"])(args[0], componentStack); + } else { + args.push(componentStack); + } + } + } + } catch (error) { + setTimeout(function () { + throw error; + }, 0); + } finally { + break; + } + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + if (consoleSettingsRef.breakOnConsoleErrors) { + debugger; + } + originalMethod.apply(void 0, args); + }; + overrideMethod.__REACT_DEVTOOLS_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_OVERRIDE_METHOD__ = overrideMethod; + + targetConsole[method] = overrideMethod; + } catch (error) {} + }); + } else { + unpatch(); + } + } + + function unpatch() { + if (unpatchFn !== null) { + unpatchFn(); + unpatchFn = null; + } + } + var unpatchForStrictModeFn = null; + + function patchForStrictMode() { + if (react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__["a"]) { + var overrideConsoleMethods = ['error', 'trace', 'warn', 'log']; + if (unpatchForStrictModeFn !== null) { + return; + } + var originalConsoleMethods = {}; + unpatchForStrictModeFn = function unpatchForStrictModeFn() { + for (var _method3 in originalConsoleMethods) { + try { + targetConsole[_method3] = originalConsoleMethods[_method3]; + } catch (error) {} + } + }; + overrideConsoleMethods.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; + var overrideMethod = function overrideMethod() { + if (!consoleSettingsRef.hideConsoleLogsInStrictMode) { + if (isNode) { + originalMethod(DIMMED_NODE_CONSOLE_COLOR, _utils__WEBPACK_IMPORTED_MODULE_0__["f"].apply(void 0, arguments)); + } else { + var color = getConsoleColor(method); + if (color) { + originalMethod("%c".concat(_utils__WEBPACK_IMPORTED_MODULE_0__["f"].apply(void 0, arguments)), "color: ".concat(color)); + } else { + throw Error('Console color is not defined'); + } + } + } + }; + overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; + + targetConsole[method] = overrideMethod; + } catch (error) {} + }); + } + } + + function unpatchForStrictMode() { + if (react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__["a"]) { + if (unpatchForStrictModeFn !== null) { + unpatchForStrictModeFn(); + unpatchForStrictModeFn = null; + } + } + } + }).call(this, __webpack_require__(13)); + + }, + function (module, exports, __webpack_require__) { + (function (process) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + exports = module.exports = SemVer; + var debug; + + if ((typeof process === "undefined" ? "undefined" : _typeof(process)) === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) { + debug = function debug() { + var args = Array.prototype.slice.call(arguments, 0); + args.unshift('SEMVER'); + console.log.apply(console, args); + }; + } else { + debug = function debug() {}; + } + + exports.SEMVER_SPEC_VERSION = '2.0.0'; + var MAX_LENGTH = 256; + var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || + 9007199254740991; + + var MAX_SAFE_COMPONENT_LENGTH = 16; + + var re = exports.re = []; + var src = exports.src = []; + var t = exports.tokens = {}; + var R = 0; + function tok(n) { + t[n] = R++; + } + + tok('NUMERICIDENTIFIER'); + src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'; + tok('NUMERICIDENTIFIERLOOSE'); + src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'; + + tok('NONNUMERICIDENTIFIER'); + src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'; + + tok('MAINVERSION'); + src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + '(' + src[t.NUMERICIDENTIFIER] + ')'; + tok('MAINVERSIONLOOSE'); + src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'; + + tok('PRERELEASEIDENTIFIER'); + src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + '|' + src[t.NONNUMERICIDENTIFIER] + ')'; + tok('PRERELEASEIDENTIFIERLOOSE'); + src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + '|' + src[t.NONNUMERICIDENTIFIER] + ')'; + + tok('PRERELEASE'); + src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'; + tok('PRERELEASELOOSE'); + src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'; + + tok('BUILDIDENTIFIER'); + src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'; + + tok('BUILD'); + src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'; + + tok('FULL'); + tok('FULLPLAIN'); + src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + src[t.PRERELEASE] + '?' + src[t.BUILD] + '?'; + src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'; + + tok('LOOSEPLAIN'); + src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + '?' + src[t.BUILD] + '?'; + tok('LOOSE'); + src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'; + tok('GTLT'); + src[t.GTLT] = '((?:<|>)?=?)'; + + tok('XRANGEIDENTIFIERLOOSE'); + src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'; + tok('XRANGEIDENTIFIER'); + src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'; + tok('XRANGEPLAIN'); + src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:' + src[t.PRERELEASE] + ')?' + src[t.BUILD] + '?' + ')?)?'; + tok('XRANGEPLAINLOOSE'); + src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:' + src[t.PRERELEASELOOSE] + ')?' + src[t.BUILD] + '?' + ')?)?'; + tok('XRANGE'); + src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'; + tok('XRANGELOOSE'); + src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'; + + tok('COERCE'); + src[t.COERCE] = '(^|[^\\d])' + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:$|[^\\d])'; + tok('COERCERTL'); + re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g'); + + tok('LONETILDE'); + src[t.LONETILDE] = '(?:~>?)'; + tok('TILDETRIM'); + src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'; + re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g'); + var tildeTrimReplace = '$1~'; + tok('TILDE'); + src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'; + tok('TILDELOOSE'); + src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'; + + tok('LONECARET'); + src[t.LONECARET] = '(?:\\^)'; + tok('CARETTRIM'); + src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'; + re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g'); + var caretTrimReplace = '$1^'; + tok('CARET'); + src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'; + tok('CARETLOOSE'); + src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'; + + tok('COMPARATORLOOSE'); + src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'; + tok('COMPARATOR'); + src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'; + + tok('COMPARATORTRIM'); + src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'; + + re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g'); + var comparatorTrimReplace = '$1$2$3'; + + tok('HYPHENRANGE'); + src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + '\\s+-\\s+' + '(' + src[t.XRANGEPLAIN] + ')' + '\\s*$'; + tok('HYPHENRANGELOOSE'); + src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s+-\\s+' + '(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s*$'; + + tok('STAR'); + src[t.STAR] = '(<|>)?=?\\s*\\*'; + + for (var i = 0; i < R; i++) { + debug(i, src[i]); + if (!re[i]) { + re[i] = new RegExp(src[i]); + } + } + exports.parse = parse; + function parse(version, options) { + if (!options || _typeof(options) !== 'object') { + options = { + loose: !!options, + includePrerelease: false + }; + } + if (version instanceof SemVer) { + return version; + } + if (typeof version !== 'string') { + return null; + } + if (version.length > MAX_LENGTH) { + return null; + } + var r = options.loose ? re[t.LOOSE] : re[t.FULL]; + if (!r.test(version)) { + return null; + } + try { + return new SemVer(version, options); + } catch (er) { + return null; + } + } + exports.valid = valid; + function valid(version, options) { + var v = parse(version, options); + return v ? v.version : null; + } + exports.clean = clean; + function clean(version, options) { + var s = parse(version.trim().replace(/^[=v]+/, ''), options); + return s ? s.version : null; + } + exports.SemVer = SemVer; + function SemVer(version, options) { + if (!options || _typeof(options) !== 'object') { + options = { + loose: !!options, + includePrerelease: false + }; + } + if (version instanceof SemVer) { + if (version.loose === options.loose) { + return version; + } else { + version = version.version; + } + } else if (typeof version !== 'string') { + throw new TypeError('Invalid Version: ' + version); + } + if (version.length > MAX_LENGTH) { + throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters'); + } + if (!(this instanceof SemVer)) { + return new SemVer(version, options); + } + debug('SemVer', version, options); + this.options = options; + this.loose = !!options.loose; + var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); + if (!m) { + throw new TypeError('Invalid Version: ' + version); + } + this.raw = version; + + this.major = +m[1]; + this.minor = +m[2]; + this.patch = +m[3]; + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version'); + } + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version'); + } + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version'); + } + + if (!m[4]) { + this.prerelease = []; + } else { + this.prerelease = m[4].split('.').map(function (id) { + if (/^[0-9]+$/.test(id)) { + var num = +id; + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num; + } + } + return id; + }); + } + this.build = m[5] ? m[5].split('.') : []; + this.format(); + } + SemVer.prototype.format = function () { + this.version = this.major + '.' + this.minor + '.' + this.patch; + if (this.prerelease.length) { + this.version += '-' + this.prerelease.join('.'); + } + return this.version; + }; + SemVer.prototype.toString = function () { + return this.version; + }; + SemVer.prototype.compare = function (other) { + debug('SemVer.compare', this.version, this.options, other); + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options); + } + return this.compareMain(other) || this.comparePre(other); + }; + SemVer.prototype.compareMain = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options); + } + return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); + }; + SemVer.prototype.comparePre = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options); + } + + if (this.prerelease.length && !other.prerelease.length) { + return -1; + } else if (!this.prerelease.length && other.prerelease.length) { + return 1; + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0; + } + var i = 0; + do { + var a = this.prerelease[i]; + var b = other.prerelease[i]; + debug('prerelease compare', i, a, b); + if (a === undefined && b === undefined) { + return 0; + } else if (b === undefined) { + return 1; + } else if (a === undefined) { + return -1; + } else if (a === b) { + continue; + } else { + return compareIdentifiers(a, b); + } + } while (++i); + }; + SemVer.prototype.compareBuild = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options); + } + var i = 0; + do { + var a = this.build[i]; + var b = other.build[i]; + debug('prerelease compare', i, a, b); + if (a === undefined && b === undefined) { + return 0; + } else if (b === undefined) { + return 1; + } else if (a === undefined) { + return -1; + } else if (a === b) { + continue; + } else { + return compareIdentifiers(a, b); + } + } while (++i); + }; + + SemVer.prototype.inc = function (release, identifier) { + switch (release) { + case 'premajor': + this.prerelease.length = 0; + this.patch = 0; + this.minor = 0; + this.major++; + this.inc('pre', identifier); + break; + case 'preminor': + this.prerelease.length = 0; + this.patch = 0; + this.minor++; + this.inc('pre', identifier); + break; + case 'prepatch': + this.prerelease.length = 0; + this.inc('patch', identifier); + this.inc('pre', identifier); + break; + + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier); + } + this.inc('pre', identifier); + break; + case 'major': + if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { + this.major++; + } + this.minor = 0; + this.patch = 0; + this.prerelease = []; + break; + case 'minor': + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++; + } + this.patch = 0; + this.prerelease = []; + break; + case 'patch': + if (this.prerelease.length === 0) { + this.patch++; + } + this.prerelease = []; + break; + + case 'pre': + if (this.prerelease.length === 0) { + this.prerelease = [0]; + } else { + var i = this.prerelease.length; + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++; + i = -2; + } + } + if (i === -1) { + this.prerelease.push(0); + } + } + if (identifier) { + if (this.prerelease[0] === identifier) { + if (isNaN(this.prerelease[1])) { + this.prerelease = [identifier, 0]; + } + } else { + this.prerelease = [identifier, 0]; + } + } + break; + default: + throw new Error('invalid increment argument: ' + release); + } + this.format(); + this.raw = this.version; + return this; + }; + exports.inc = inc; + function inc(version, release, loose, identifier) { + if (typeof loose === 'string') { + identifier = loose; + loose = undefined; + } + try { + return new SemVer(version, loose).inc(release, identifier).version; + } catch (er) { + return null; + } + } + exports.diff = diff; + function diff(version1, version2) { + if (eq(version1, version2)) { + return null; + } else { + var v1 = parse(version1); + var v2 = parse(version2); + var prefix = ''; + if (v1.prerelease.length || v2.prerelease.length) { + prefix = 'pre'; + var defaultResult = 'prerelease'; + } + for (var key in v1) { + if (key === 'major' || key === 'minor' || key === 'patch') { + if (v1[key] !== v2[key]) { + return prefix + key; + } + } + } + return defaultResult; + } + } + + exports.compareIdentifiers = compareIdentifiers; + var numeric = /^[0-9]+$/; + function compareIdentifiers(a, b) { + var anum = numeric.test(a); + var bnum = numeric.test(b); + if (anum && bnum) { + a = +a; + b = +b; + } + return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; + } + exports.rcompareIdentifiers = rcompareIdentifiers; + function rcompareIdentifiers(a, b) { + return compareIdentifiers(b, a); + } + exports.major = major; + function major(a, loose) { + return new SemVer(a, loose).major; + } + exports.minor = minor; + function minor(a, loose) { + return new SemVer(a, loose).minor; + } + exports.patch = patch; + function patch(a, loose) { + return new SemVer(a, loose).patch; + } + exports.compare = compare; + function compare(a, b, loose) { + return new SemVer(a, loose).compare(new SemVer(b, loose)); + } + exports.compareLoose = compareLoose; + function compareLoose(a, b) { + return compare(a, b, true); + } + exports.compareBuild = compareBuild; + function compareBuild(a, b, loose) { + var versionA = new SemVer(a, loose); + var versionB = new SemVer(b, loose); + return versionA.compare(versionB) || versionA.compareBuild(versionB); + } + exports.rcompare = rcompare; + function rcompare(a, b, loose) { + return compare(b, a, loose); + } + exports.sort = sort; + function sort(list, loose) { + return list.sort(function (a, b) { + return exports.compareBuild(a, b, loose); + }); + } + exports.rsort = rsort; + function rsort(list, loose) { + return list.sort(function (a, b) { + return exports.compareBuild(b, a, loose); + }); + } + exports.gt = gt; + function gt(a, b, loose) { + return compare(a, b, loose) > 0; + } + exports.lt = lt; + function lt(a, b, loose) { + return compare(a, b, loose) < 0; + } + exports.eq = eq; + function eq(a, b, loose) { + return compare(a, b, loose) === 0; + } + exports.neq = neq; + function neq(a, b, loose) { + return compare(a, b, loose) !== 0; + } + exports.gte = gte; + function gte(a, b, loose) { + return compare(a, b, loose) >= 0; + } + exports.lte = lte; + function lte(a, b, loose) { + return compare(a, b, loose) <= 0; + } + exports.cmp = cmp; + function cmp(a, op, b, loose) { + switch (op) { + case '===': + if (_typeof(a) === 'object') a = a.version; + if (_typeof(b) === 'object') b = b.version; + return a === b; + case '!==': + if (_typeof(a) === 'object') a = a.version; + if (_typeof(b) === 'object') b = b.version; + return a !== b; + case '': + case '=': + case '==': + return eq(a, b, loose); + case '!=': + return neq(a, b, loose); + case '>': + return gt(a, b, loose); + case '>=': + return gte(a, b, loose); + case '<': + return lt(a, b, loose); + case '<=': + return lte(a, b, loose); + default: + throw new TypeError('Invalid operator: ' + op); + } + } + exports.Comparator = Comparator; + function Comparator(comp, options) { + if (!options || _typeof(options) !== 'object') { + options = { + loose: !!options, + includePrerelease: false + }; + } + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp; + } else { + comp = comp.value; + } + } + if (!(this instanceof Comparator)) { + return new Comparator(comp, options); + } + debug('comparator', comp, options); + this.options = options; + this.loose = !!options.loose; + this.parse(comp); + if (this.semver === ANY) { + this.value = ''; + } else { + this.value = this.operator + this.semver.version; + } + debug('comp', this); + } + var ANY = {}; + Comparator.prototype.parse = function (comp) { + var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; + var m = comp.match(r); + if (!m) { + throw new TypeError('Invalid comparator: ' + comp); + } + this.operator = m[1] !== undefined ? m[1] : ''; + if (this.operator === '=') { + this.operator = ''; + } + + if (!m[2]) { + this.semver = ANY; + } else { + this.semver = new SemVer(m[2], this.options.loose); + } + }; + Comparator.prototype.toString = function () { + return this.value; + }; + Comparator.prototype.test = function (version) { + debug('Comparator.test', version, this.options.loose); + if (this.semver === ANY || version === ANY) { + return true; + } + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options); + } catch (er) { + return false; + } + } + return cmp(version, this.operator, this.semver, this.options); + }; + Comparator.prototype.intersects = function (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required'); + } + if (!options || _typeof(options) !== 'object') { + options = { + loose: !!options, + includePrerelease: false + }; + } + var rangeTmp; + if (this.operator === '') { + if (this.value === '') { + return true; + } + rangeTmp = new Range(comp.value, options); + return satisfies(this.value, rangeTmp, options); + } else if (comp.operator === '') { + if (comp.value === '') { + return true; + } + rangeTmp = new Range(this.value, options); + return satisfies(comp.semver, rangeTmp, options); + } + var sameDirectionIncreasing = (this.operator === '>=' || this.operator === '>') && (comp.operator === '>=' || comp.operator === '>'); + var sameDirectionDecreasing = (this.operator === '<=' || this.operator === '<') && (comp.operator === '<=' || comp.operator === '<'); + var sameSemVer = this.semver.version === comp.semver.version; + var differentDirectionsInclusive = (this.operator === '>=' || this.operator === '<=') && (comp.operator === '>=' || comp.operator === '<='); + var oppositeDirectionsLessThan = cmp(this.semver, '<', comp.semver, options) && (this.operator === '>=' || this.operator === '>') && (comp.operator === '<=' || comp.operator === '<'); + var oppositeDirectionsGreaterThan = cmp(this.semver, '>', comp.semver, options) && (this.operator === '<=' || this.operator === '<') && (comp.operator === '>=' || comp.operator === '>'); + return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; + }; + exports.Range = Range; + function Range(range, options) { + if (!options || _typeof(options) !== 'object') { + options = { + loose: !!options, + includePrerelease: false + }; + } + if (range instanceof Range) { + if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { + return range; + } else { + return new Range(range.raw, options); + } + } + if (range instanceof Comparator) { + return new Range(range.value, options); + } + if (!(this instanceof Range)) { + return new Range(range, options); + } + this.options = options; + this.loose = !!options.loose; + this.includePrerelease = !!options.includePrerelease; + + this.raw = range; + this.set = range.split(/\s*\|\|\s*/).map(function (range) { + return this.parseRange(range.trim()); + }, this).filter(function (c) { + return c.length; + }); + if (!this.set.length) { + throw new TypeError('Invalid SemVer Range: ' + range); + } + this.format(); + } + Range.prototype.format = function () { + this.range = this.set.map(function (comps) { + return comps.join(' ').trim(); + }).join('||').trim(); + return this.range; + }; + Range.prototype.toString = function () { + return this.range; + }; + Range.prototype.parseRange = function (range) { + var loose = this.options.loose; + range = range.trim(); + + var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; + range = range.replace(hr, hyphenReplace); + debug('hyphen replace', range); + + range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); + debug('comparator trim', range, re[t.COMPARATORTRIM]); + + range = range.replace(re[t.TILDETRIM], tildeTrimReplace); + + range = range.replace(re[t.CARETTRIM], caretTrimReplace); + + range = range.split(/\s+/).join(' '); + + var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; + var set = range.split(' ').map(function (comp) { + return parseComparator(comp, this.options); + }, this).join(' ').split(/\s+/); + if (this.options.loose) { + set = set.filter(function (comp) { + return !!comp.match(compRe); + }); + } + set = set.map(function (comp) { + return new Comparator(comp, this.options); + }, this); + return set; + }; + Range.prototype.intersects = function (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required'); + } + return this.set.some(function (thisComparators) { + return isSatisfiable(thisComparators, options) && range.set.some(function (rangeComparators) { + return isSatisfiable(rangeComparators, options) && thisComparators.every(function (thisComparator) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options); + }); + }); + }); + }); + }; + + function isSatisfiable(comparators, options) { + var result = true; + var remainingComparators = comparators.slice(); + var testComparator = remainingComparators.pop(); + while (result && remainingComparators.length) { + result = remainingComparators.every(function (otherComparator) { + return testComparator.intersects(otherComparator, options); + }); + testComparator = remainingComparators.pop(); + } + return result; + } + + exports.toComparators = toComparators; + function toComparators(range, options) { + return new Range(range, options).set.map(function (comp) { + return comp.map(function (c) { + return c.value; + }).join(' ').trim().split(' '); + }); + } + + function parseComparator(comp, options) { + debug('comp', comp, options); + comp = replaceCarets(comp, options); + debug('caret', comp); + comp = replaceTildes(comp, options); + debug('tildes', comp); + comp = replaceXRanges(comp, options); + debug('xrange', comp); + comp = replaceStars(comp, options); + debug('stars', comp); + return comp; + } + function isX(id) { + return !id || id.toLowerCase() === 'x' || id === '*'; + } + + function replaceTildes(comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceTilde(comp, options); + }).join(' '); + } + function replaceTilde(comp, options) { + var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; + return comp.replace(r, function (_, M, m, p, pr) { + debug('tilde', comp, _, M, m, p, pr); + var ret; + if (isX(M)) { + ret = ''; + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; + } else if (isX(p)) { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; + } else if (pr) { + debug('replaceTilde pr', pr); + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + (+m + 1) + '.0'; + } else { + ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0'; + } + debug('tilde return', ret); + return ret; + }); + } + + function replaceCarets(comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceCaret(comp, options); + }).join(' '); + } + function replaceCaret(comp, options) { + debug('caret', comp, options); + var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]; + return comp.replace(r, function (_, M, m, p, pr) { + debug('caret', comp, _, M, m, p, pr); + var ret; + if (isX(M)) { + ret = ''; + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; + } else if (isX(p)) { + if (M === '0') { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; + } else { + ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'; + } + } else if (pr) { + debug('replaceCaret pr', pr); + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + m + '.' + (+p + 1); + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + (+m + 1) + '.0'; + } + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + (+M + 1) + '.0.0'; + } + } else { + debug('no pr'); + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + m + '.' + (+p + 1); + } else { + ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0'; + } + } else { + ret = '>=' + M + '.' + m + '.' + p + ' <' + (+M + 1) + '.0.0'; + } + } + debug('caret return', ret); + return ret; + }); + } + function replaceXRanges(comp, options) { + debug('replaceXRanges', comp, options); + return comp.split(/\s+/).map(function (comp) { + return replaceXRange(comp, options); + }).join(' '); + } + function replaceXRange(comp, options) { + comp = comp.trim(); + var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; + return comp.replace(r, function (ret, gtlt, M, m, p, pr) { + debug('xRange', comp, ret, gtlt, M, m, p, pr); + var xM = isX(M); + var xm = xM || isX(m); + var xp = xm || isX(p); + var anyX = xp; + if (gtlt === '=' && anyX) { + gtlt = ''; + } + + pr = options.includePrerelease ? '-0' : ''; + if (xM) { + if (gtlt === '>' || gtlt === '<') { + ret = '<0.0.0-0'; + } else { + ret = '*'; + } + } else if (gtlt && anyX) { + if (xm) { + m = 0; + } + p = 0; + if (gtlt === '>') { + gtlt = '>='; + if (xm) { + M = +M + 1; + m = 0; + p = 0; + } else { + m = +m + 1; + p = 0; + } + } else if (gtlt === '<=') { + gtlt = '<'; + if (xm) { + M = +M + 1; + } else { + m = +m + 1; + } + } + ret = gtlt + M + '.' + m + '.' + p + pr; + } else if (xm) { + ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr; + } else if (xp) { + ret = '>=' + M + '.' + m + '.0' + pr + ' <' + M + '.' + (+m + 1) + '.0' + pr; + } + debug('xRange return', ret); + return ret; + }); + } + + function replaceStars(comp, options) { + debug('replaceStars', comp, options); + + return comp.trim().replace(re[t.STAR], ''); + } + + function hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) { + if (isX(fM)) { + from = ''; + } else if (isX(fm)) { + from = '>=' + fM + '.0.0'; + } else if (isX(fp)) { + from = '>=' + fM + '.' + fm + '.0'; + } else { + from = '>=' + from; + } + if (isX(tM)) { + to = ''; + } else if (isX(tm)) { + to = '<' + (+tM + 1) + '.0.0'; + } else if (isX(tp)) { + to = '<' + tM + '.' + (+tm + 1) + '.0'; + } else if (tpr) { + to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr; + } else { + to = '<=' + to; + } + return (from + ' ' + to).trim(); + } + + Range.prototype.test = function (version) { + if (!version) { + return false; + } + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options); + } catch (er) { + return false; + } + } + for (var i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true; + } + } + return false; + }; + function testSet(set, version, options) { + for (var i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false; + } + } + if (version.prerelease.length && !options.includePrerelease) { + for (i = 0; i < set.length; i++) { + debug(set[i].semver); + if (set[i].semver === ANY) { + continue; + } + if (set[i].semver.prerelease.length > 0) { + var allowed = set[i].semver; + if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) { + return true; + } + } + } + + return false; + } + return true; + } + exports.satisfies = satisfies; + function satisfies(version, range, options) { + try { + range = new Range(range, options); + } catch (er) { + return false; + } + return range.test(version); + } + exports.maxSatisfying = maxSatisfying; + function maxSatisfying(versions, range, options) { + var max = null; + var maxSV = null; + try { + var rangeObj = new Range(range, options); + } catch (er) { + return null; + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + if (!max || maxSV.compare(v) === -1) { + max = v; + maxSV = new SemVer(max, options); + } + } + }); + return max; + } + exports.minSatisfying = minSatisfying; + function minSatisfying(versions, range, options) { + var min = null; + var minSV = null; + try { + var rangeObj = new Range(range, options); + } catch (er) { + return null; + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + if (!min || minSV.compare(v) === 1) { + min = v; + minSV = new SemVer(min, options); + } + } + }); + return min; + } + exports.minVersion = minVersion; + function minVersion(range, loose) { + range = new Range(range, loose); + var minver = new SemVer('0.0.0'); + if (range.test(minver)) { + return minver; + } + minver = new SemVer('0.0.0-0'); + if (range.test(minver)) { + return minver; + } + minver = null; + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i]; + comparators.forEach(function (comparator) { + var compver = new SemVer(comparator.semver.version); + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++; + } else { + compver.prerelease.push(0); + } + compver.raw = compver.format(); + + case '': + case '>=': + if (!minver || gt(minver, compver)) { + minver = compver; + } + break; + case '<': + case '<=': + break; + + default: + throw new Error('Unexpected operation: ' + comparator.operator); + } + }); + } + if (minver && range.test(minver)) { + return minver; + } + return null; + } + exports.validRange = validRange; + function validRange(range, options) { + try { + return new Range(range, options).range || '*'; + } catch (er) { + return null; + } + } + + exports.ltr = ltr; + function ltr(version, range, options) { + return outside(version, range, '<', options); + } + + exports.gtr = gtr; + function gtr(version, range, options) { + return outside(version, range, '>', options); + } + exports.outside = outside; + function outside(version, range, hilo, options) { + version = new SemVer(version, options); + range = new Range(range, options); + var gtfn, ltefn, ltfn, comp, ecomp; + switch (hilo) { + case '>': + gtfn = gt; + ltefn = lte; + ltfn = lt; + comp = '>'; + ecomp = '>='; + break; + case '<': + gtfn = lt; + ltefn = gte; + ltfn = gt; + comp = '<'; + ecomp = '<='; + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"'); + } + + if (satisfies(version, range, options)) { + return false; + } + + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i]; + var high = null; + var low = null; + comparators.forEach(function (comparator) { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0'); + } + high = high || comparator; + low = low || comparator; + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator; + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator; + } + }); + + if (high.operator === comp || high.operator === ecomp) { + return false; + } + + if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) { + return false; + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false; + } + } + return true; + } + exports.prerelease = prerelease; + function prerelease(version, options) { + var parsed = parse(version, options); + return parsed && parsed.prerelease.length ? parsed.prerelease : null; + } + exports.intersects = intersects; + function intersects(r1, r2, options) { + r1 = new Range(r1, options); + r2 = new Range(r2, options); + return r1.intersects(r2); + } + exports.coerce = coerce; + function coerce(version, options) { + if (version instanceof SemVer) { + return version; + } + if (typeof version === 'number') { + version = String(version); + } + if (typeof version !== 'string') { + return null; + } + options = options || {}; + var match = null; + if (!options.rtl) { + match = version.match(re[t.COERCE]); + } else { + var next; + while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { + if (!match || next.index + next[0].length !== match.index + match[0].length) { + match = next; + } + re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; + } + + re[t.COERCERTL].lastIndex = -1; + } + if (match === null) { + return null; + } + return parse(match[2] + '.' + (match[3] || '0') + '.' + (match[4] || '0'), options); + } + }).call(this, __webpack_require__(16)); + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "b", function () { + return meta; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return dehydrate; + }); + var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + var meta = { + inspectable: Symbol('inspectable'), + inspected: Symbol('inspected'), + name: Symbol('name'), + preview_long: Symbol('preview_long'), + preview_short: Symbol('preview_short'), + readonly: Symbol('readonly'), + size: Symbol('size'), + type: Symbol('type'), + unserializable: Symbol('unserializable') + }; + var LEVEL_THRESHOLD = 2; + + function createDehydrated(type, inspectable, data, cleaned, path) { + cleaned.push(path); + var dehydrated = { + inspectable: inspectable, + type: type, + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name + }; + if (type === 'array' || type === 'typed_array') { + dehydrated.size = data.length; + } else if (type === 'object') { + dehydrated.size = Object.keys(data).length; + } + if (type === 'iterator' || type === 'typed_array') { + dehydrated.readonly = true; + } + return dehydrated; + } + + function dehydrate(data, cleaned, unserializable, path, isPathAllowed) { + var level = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + var type = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["d"])(data); + var isPathAllowedCheck; + switch (type) { + case 'html_element': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data.tagName, + type: type + }; + case 'function': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: typeof data.name === 'function' || !data.name ? 'function' : data.name, + type: type + }; + case 'string': + isPathAllowedCheck = isPathAllowed(path); + if (isPathAllowedCheck) { + return data; + } else { + return data.length <= 500 ? data : data.slice(0, 500) + '...'; + } + case 'bigint': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data.toString(), + type: type + }; + case 'symbol': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data.toString(), + type: type + }; + + case 'react_element': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["g"])(data) || 'Unknown', + type: type + }; + + case 'array_buffer': + case 'data_view': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: type === 'data_view' ? 'DataView' : 'ArrayBuffer', + size: data.byteLength, + type: type + }; + case 'array': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } + return data.map(function (item, i) { + return dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + case 'html_all_collection': + case 'typed_array': + case 'iterator': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } else { + var unserializableValue = { + unserializable: true, + type: type, + readonly: true, + size: type === 'typed_array' ? data.length : undefined, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name + }; + + Array.from(data).forEach(function (item, i) { + return unserializableValue[i] = dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + unserializable.push(path); + return unserializableValue; + } + case 'opaque_iterator': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data[Symbol.toStringTag], + type: type + }; + case 'date': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data.toString(), + type: type + }; + case 'regexp': + cleaned.push(path); + return { + inspectable: false, + preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), + preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), + name: data.toString(), + type: type + }; + case 'object': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } else { + var object = {}; + Object(_utils__WEBPACK_IMPORTED_MODULE_0__["c"])(data).forEach(function (key) { + var name = key.toString(); + object[name] = dehydrate(data[key], cleaned, unserializable, path.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + return object; + } + case 'infinity': + case 'nan': + case 'undefined': + cleaned.push(path); + return { + type: type + }; + default: + return data; + } + } + function fillInPath(object, data, path, value) { + var target = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path); + if (target != null) { + if (!target[meta.unserializable]) { + delete target[meta.inspectable]; + delete target[meta.inspected]; + delete target[meta.name]; + delete target[meta.preview_long]; + delete target[meta.preview_short]; + delete target[meta.readonly]; + delete target[meta.size]; + delete target[meta.type]; + } + } + if (value !== null && data.unserializable.length > 0) { + var unserializablePath = data.unserializable[0]; + var isMatch = unserializablePath.length === path.length; + for (var i = 0; i < path.length; i++) { + if (path[i] !== unserializablePath[i]) { + isMatch = false; + break; + } + } + if (isMatch) { + upgradeUnserializable(value, value); + } + } + Object(_utils__WEBPACK_IMPORTED_MODULE_0__["l"])(object, path, value); + } + function hydrate(object, cleaned, unserializable) { + cleaned.forEach(function (path) { + var length = path.length; + var last = path[length - 1]; + var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path.slice(0, length - 1)); + if (!parent || !parent.hasOwnProperty(last)) { + return; + } + var value = parent[last]; + if (!value) { + return; + } else if (value.type === 'infinity') { + parent[last] = Infinity; + } else if (value.type === 'nan') { + parent[last] = NaN; + } else if (value.type === 'undefined') { + parent[last] = undefined; + } else { + var replaced = {}; + replaced[meta.inspectable] = !!value.inspectable; + replaced[meta.inspected] = false; + replaced[meta.name] = value.name; + replaced[meta.preview_long] = value.preview_long; + replaced[meta.preview_short] = value.preview_short; + replaced[meta.size] = value.size; + replaced[meta.readonly] = !!value.readonly; + replaced[meta.type] = value.type; + parent[last] = replaced; + } + }); + unserializable.forEach(function (path) { + var length = path.length; + var last = path[length - 1]; + var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path.slice(0, length - 1)); + if (!parent || !parent.hasOwnProperty(last)) { + return; + } + var node = parent[last]; + var replacement = _objectSpread({}, node); + upgradeUnserializable(replacement, node); + parent[last] = replacement; + }); + return object; + } + function upgradeUnserializable(destination, source) { + var _Object$definePropert; + Object.defineProperties(destination, (_Object$definePropert = {}, _defineProperty(_Object$definePropert, meta.inspected, { + configurable: true, + enumerable: false, + value: !!source.inspected + }), _defineProperty(_Object$definePropert, meta.name, { + configurable: true, + enumerable: false, + value: source.name + }), _defineProperty(_Object$definePropert, meta.preview_long, { + configurable: true, + enumerable: false, + value: source.preview_long + }), _defineProperty(_Object$definePropert, meta.preview_short, { + configurable: true, + enumerable: false, + value: source.preview_short + }), _defineProperty(_Object$definePropert, meta.size, { + configurable: true, + enumerable: false, + value: source.size + }), _defineProperty(_Object$definePropert, meta.readonly, { + configurable: true, + enumerable: false, + value: !!source.readonly + }), _defineProperty(_Object$definePropert, meta.type, { + configurable: true, + enumerable: false, + value: source.type + }), _defineProperty(_Object$definePropert, meta.unserializable, { + configurable: true, + enumerable: false, + value: !!source.unserializable + }), _Object$definePropert)); + delete destination.inspected; + delete destination.name; + delete destination.preview_long; + delete destination.preview_short; + delete destination.size; + delete destination.readonly; + delete destination.type; + delete destination.unserializable; + } + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return consoleManagedByDevToolsDuringStrictMode; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return enableProfilerChangedHookIndices; + }); + __webpack_require__.d(__webpack_exports__, "c", function () { + return enableStyleXFeatures; + }); + + var consoleManagedByDevToolsDuringStrictMode = false; + var enableLogger = false; + var enableNamedHooksFeature = true; + var enableProfilerChangedHookIndices = true; + var enableStyleXFeatures = false; + var isInternalFacebookBuild = false; + + null; + + }, + function (module, exports) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var g; + + g = function () { + return this; + }(); + try { + g = g || new Function("return this")(); + } catch (e) { + if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window; + } + + module.exports = g; + + }, + function (module, exports, __webpack_require__) { + (function (global) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + var FUNC_ERROR_TEXT = 'Expected a function'; + + var NAN = 0 / 0; + + var symbolTag = '[object Symbol]'; + + var reTrim = /^\s+|\s+$/g; + + var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + + var reIsBinary = /^0b[01]+$/i; + + var reIsOctal = /^0o[0-7]+$/i; + + var freeParseInt = parseInt; + + var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global; + + var freeSelf = (typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self && self.Object === Object && self; + + var root = freeGlobal || freeSelf || Function('return this')(); + + var objectProto = Object.prototype; + + var objectToString = objectProto.toString; + + var nativeMax = Math.max, + nativeMin = Math.min; + + var now = function now() { + return root.Date.now(); + }; + + function debounce(func, wait, options) { + var lastArgs, + lastThis, + maxWait, + result, + timerId, + lastCallTime, + lastInvokeTime = 0, + leading = false, + maxing = false, + trailing = true; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + wait = toNumber(wait) || 0; + if (isObject(options)) { + leading = !!options.leading; + maxing = 'maxWait' in options; + maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + function invokeFunc(time) { + var args = lastArgs, + thisArg = lastThis; + lastArgs = lastThis = undefined; + lastInvokeTime = time; + result = func.apply(thisArg, args); + return result; + } + function leadingEdge(time) { + lastInvokeTime = time; + + timerId = setTimeout(timerExpired, wait); + + return leading ? invokeFunc(time) : result; + } + function remainingWait(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime, + result = wait - timeSinceLastCall; + return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; + } + function shouldInvoke(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime; + + return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; + } + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) { + return trailingEdge(time); + } + + timerId = setTimeout(timerExpired, remainingWait(time)); + } + function trailingEdge(time) { + timerId = undefined; + + if (trailing && lastArgs) { + return invokeFunc(time); + } + lastArgs = lastThis = undefined; + return result; + } + function cancel() { + if (timerId !== undefined) { + clearTimeout(timerId); + } + lastInvokeTime = 0; + lastArgs = lastCallTime = lastThis = timerId = undefined; + } + function flush() { + return timerId === undefined ? result : trailingEdge(now()); + } + function debounced() { + var time = now(), + isInvoking = shouldInvoke(time); + lastArgs = arguments; + lastThis = this; + lastCallTime = time; + if (isInvoking) { + if (timerId === undefined) { + return leadingEdge(lastCallTime); + } + if (maxing) { + timerId = setTimeout(timerExpired, wait); + return invokeFunc(lastCallTime); + } + } + if (timerId === undefined) { + timerId = setTimeout(timerExpired, wait); + } + return result; + } + debounced.cancel = cancel; + debounced.flush = flush; + return debounced; + } + + function throttle(func, wait, options) { + var leading = true, + trailing = true; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + if (isObject(options)) { + leading = 'leading' in options ? !!options.leading : leading; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + return debounce(func, wait, { + 'leading': leading, + 'maxWait': wait, + 'trailing': trailing + }); + } + + function isObject(value) { + var type = _typeof(value); + return !!value && (type == 'object' || type == 'function'); + } + + function isObjectLike(value) { + return !!value && _typeof(value) == 'object'; + } + + function isSymbol(value) { + return _typeof(value) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag; + } + + function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? other + '' : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; + } + module.exports = throttle; + }).call(this, __webpack_require__(13)); + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "b", function () { + return getInternalReactConstants; + }); + __webpack_require__.d(__webpack_exports__, "a", function () { + return attach; + }); + + var semver = __webpack_require__(10); + + var types = __webpack_require__(1); + + var utils = __webpack_require__(2); + + var storage = __webpack_require__(5); + + var backend_utils = __webpack_require__(4); + + var constants = __webpack_require__(0); + + var react_debug_tools = __webpack_require__(20); + + var backend_console = __webpack_require__(9); + + var ReactSymbols = __webpack_require__(3); + + var DevToolsFeatureFlags_core_oss = __webpack_require__(12); + + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + } + + var objectIs = typeof Object.is === 'function' ? Object.is : is; + var shared_objectIs = objectIs; + var isArray = __webpack_require__(8); + + var hasOwnProperty_hasOwnProperty = Object.prototype.hasOwnProperty; + var shared_hasOwnProperty = hasOwnProperty_hasOwnProperty; + var src_isArray = __webpack_require__(6); + + var cachedStyleNameToValueMap = new Map(); + function getStyleXData(data) { + var sources = new Set(); + var resolvedStyles = {}; + crawlData(data, sources, resolvedStyles); + return { + sources: Array.from(sources).sort(), + resolvedStyles: resolvedStyles + }; + } + function crawlData(data, sources, resolvedStyles) { + if (data == null) { + return; + } + if (Object(src_isArray["a"])(data)) { + data.forEach(function (entry) { + if (entry == null) { + return; + } + if (Object(src_isArray["a"])(entry)) { + crawlData(entry, sources, resolvedStyles); + } else { + crawlObjectProperties(entry, sources, resolvedStyles); + } + }); + } else { + crawlObjectProperties(data, sources, resolvedStyles); + } + resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort()); + } + function crawlObjectProperties(entry, sources, resolvedStyles) { + var keys = Object.keys(entry); + keys.forEach(function (key) { + var value = entry[key]; + if (typeof value === 'string') { + if (key === value) { + sources.add(key); + } else { + resolvedStyles[key] = getPropertyValueForStyleName(value); + } + } else { + var nestedStyle = {}; + resolvedStyles[key] = nestedStyle; + crawlData([value], sources, nestedStyle); + } + }); + } + function getPropertyValueForStyleName(styleName) { + if (cachedStyleNameToValueMap.has(styleName)) { + return cachedStyleNameToValueMap.get(styleName); + } + for (var styleSheetIndex = 0; styleSheetIndex < document.styleSheets.length; styleSheetIndex++) { + var styleSheet = document.styleSheets[styleSheetIndex]; + + var rules = styleSheet.rules || styleSheet.cssRules; + for (var ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) { + var rule = rules[ruleIndex]; + + var cssText = rule.cssText, + selectorText = rule.selectorText, + style = rule.style; + if (selectorText != null) { + if (selectorText.startsWith(".".concat(styleName))) { + var match = cssText.match(/{ *([a-z\-]+):/); + if (match !== null) { + var property = match[1]; + var value = style.getPropertyValue(property); + cachedStyleNameToValueMap.set(styleName, value); + return value; + } else { + return null; + } + } + } + } + } + return null; + } + + var REACT_TOTAL_NUM_LANES = 31; + + var SCHEDULING_PROFILER_VERSION = 1; + var SNAPSHOT_MAX_HEIGHT = 60; + function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); + } + function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function _iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + var TIME_OFFSET = 10; + var performanceTarget = null; + + var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function'; + var supportsUserTimingV3 = false; + if (supportsUserTiming) { + var CHECK_V3_MARK = '__v3'; + var markOptions = {}; + + Object.defineProperty(markOptions, 'startTime', { + get: function get() { + supportsUserTimingV3 = true; + return 0; + }, + set: function set() {} + }); + try { + performance.mark(CHECK_V3_MARK, markOptions); + } catch (error) { + } finally { + performance.clearMarks(CHECK_V3_MARK); + } + } + if (supportsUserTimingV3) { + performanceTarget = performance; + } + + var getCurrentTime = (typeof performance === "undefined" ? "undefined" : _typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + + function setPerformanceMock_ONLY_FOR_TESTING(performanceMock) { + performanceTarget = performanceMock; + supportsUserTiming = performanceMock !== null; + supportsUserTimingV3 = performanceMock !== null; + } + function createProfilingHooks(_ref) { + var getDisplayNameForFiber = _ref.getDisplayNameForFiber, + getIsProfiling = _ref.getIsProfiling, + getLaneLabelMap = _ref.getLaneLabelMap, + reactVersion = _ref.reactVersion; + var currentBatchUID = 0; + var currentReactComponentMeasure = null; + var currentReactMeasuresStack = []; + var currentTimelineData = null; + var isProfiling = false; + var nextRenderShouldStartNewBatch = false; + function getRelativeTime() { + var currentTime = getCurrentTime(); + if (currentTimelineData) { + if (currentTimelineData.startTime === 0) { + currentTimelineData.startTime = currentTime - TIME_OFFSET; + } + return currentTime - currentTimelineData.startTime; + } + return 0; + } + function getInternalModuleRanges() { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges === 'function') { + var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges(); + + if (Object(isArray["a"])(ranges)) { + return ranges; + } + } + return null; + } + function getTimelineData() { + return currentTimelineData; + } + function laneToLanesArray(lanes) { + var lanesArray = []; + var lane = 1; + for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { + if (lane & lanes) { + lanesArray.push(lane); + } + lane *= 2; + } + return lanesArray; + } + var laneToLabelMap = typeof getLaneLabelMap === 'function' ? getLaneLabelMap() : null; + function markMetadata() { + markAndClear("--react-version-".concat(reactVersion)); + markAndClear("--profiler-version-".concat(SCHEDULING_PROFILER_VERSION)); + var ranges = getInternalModuleRanges(); + if (ranges) { + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + if (Object(isArray["a"])(range) && range.length === 2) { + var _ranges$i = _slicedToArray(ranges[i], 2), + startStackFrame = _ranges$i[0], + stopStackFrame = _ranges$i[1]; + markAndClear("--react-internal-module-start-".concat(startStackFrame)); + markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); + } + } + } + if (laneToLabelMap != null) { + var labels = Array.from(laneToLabelMap.values()).join(','); + markAndClear("--react-lane-labels-".concat(labels)); + } + } + function markAndClear(markName) { + performanceTarget.mark(markName); + performanceTarget.clearMarks(markName); + } + function recordReactMeasureStarted(type, lanes) { + var depth = 0; + if (currentReactMeasuresStack.length > 0) { + var top = currentReactMeasuresStack[currentReactMeasuresStack.length - 1]; + depth = top.type === 'render-idle' ? top.depth : top.depth + 1; + } + var lanesArray = laneToLanesArray(lanes); + var reactMeasure = { + type: type, + batchUID: currentBatchUID, + depth: depth, + lanes: lanesArray, + timestamp: getRelativeTime(), + duration: 0 + }; + currentReactMeasuresStack.push(reactMeasure); + if (currentTimelineData) { + var _currentTimelineData = currentTimelineData, + batchUIDToMeasuresMap = _currentTimelineData.batchUIDToMeasuresMap, + laneToReactMeasureMap = _currentTimelineData.laneToReactMeasureMap; + var reactMeasures = batchUIDToMeasuresMap.get(currentBatchUID); + if (reactMeasures != null) { + reactMeasures.push(reactMeasure); + } else { + batchUIDToMeasuresMap.set(currentBatchUID, [reactMeasure]); + } + lanesArray.forEach(function (lane) { + reactMeasures = laneToReactMeasureMap.get(lane); + if (reactMeasures) { + reactMeasures.push(reactMeasure); + } + }); + } + } + function recordReactMeasureCompleted(type) { + var currentTime = getRelativeTime(); + if (currentReactMeasuresStack.length === 0) { + console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.', type, currentTime); + + return; + } + var top = currentReactMeasuresStack.pop(); + if (top.type !== type) { + console.error('Unexpected type "%s" completed at %sms before "%s" completed.', type, currentTime, top.type); + } + + top.duration = currentTime - top.timestamp; + if (currentTimelineData) { + currentTimelineData.duration = getRelativeTime() + TIME_OFFSET; + } + } + function markCommitStarted(lanes) { + if (isProfiling) { + recordReactMeasureStarted('commit', lanes); + + nextRenderShouldStartNewBatch = true; + } + if (supportsUserTimingV3) { + markAndClear("--commit-start-".concat(lanes)); + + markMetadata(); + } + } + function markCommitStopped() { + if (isProfiling) { + recordReactMeasureCompleted('commit'); + recordReactMeasureCompleted('render-idle'); + } + if (supportsUserTimingV3) { + markAndClear('--commit-stop'); + } + } + function markComponentRenderStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'render', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-render-start-".concat(componentName)); + } + } + } + function markComponentRenderStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } + currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-render-stop'); + } + } + function markComponentLayoutEffectMountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'layout-effect-mount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-layout-effect-mount-start-".concat(componentName)); + } + } + } + function markComponentLayoutEffectMountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } + currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-layout-effect-mount-stop'); + } + } + function markComponentLayoutEffectUnmountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'layout-effect-unmount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-layout-effect-unmount-start-".concat(componentName)); + } + } + } + function markComponentLayoutEffectUnmountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } + currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-layout-effect-unmount-stop'); + } + } + function markComponentPassiveEffectMountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'passive-effect-mount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-passive-effect-mount-start-".concat(componentName)); + } + } + } + function markComponentPassiveEffectMountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } + currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-passive-effect-mount-stop'); + } + } + function markComponentPassiveEffectUnmountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'passive-effect-unmount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-passive-effect-unmount-start-".concat(componentName)); + } + } + } + function markComponentPassiveEffectUnmountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } + currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-passive-effect-unmount-stop'); + } + } + function markComponentErrored(fiber, thrownValue, lanes) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + var phase = fiber.alternate === null ? 'mount' : 'update'; + var message = ''; + if (thrownValue !== null && _typeof(thrownValue) === 'object' && typeof thrownValue.message === 'string') { + message = thrownValue.message; + } else if (typeof thrownValue === 'string') { + message = thrownValue; + } + if (isProfiling) { + if (currentTimelineData) { + currentTimelineData.thrownErrors.push({ + componentName: componentName, + message: message, + phase: phase, + timestamp: getRelativeTime(), + type: 'thrown-error' + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--error-".concat(componentName, "-").concat(phase, "-").concat(message)); + } + } + } + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + + var wakeableIDs = new PossiblyWeakMap(); + var wakeableID = 0; + function getWakeableID(wakeable) { + if (!wakeableIDs.has(wakeable)) { + wakeableIDs.set(wakeable, wakeableID++); + } + return wakeableIDs.get(wakeable); + } + function markComponentSuspended(fiber, wakeable, lanes) { + if (isProfiling || supportsUserTimingV3) { + var eventType = wakeableIDs.has(wakeable) ? 'resuspend' : 'suspend'; + var id = getWakeableID(wakeable); + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + var phase = fiber.alternate === null ? 'mount' : 'update'; + + var displayName = wakeable.displayName || ''; + var suspenseEvent = null; + if (isProfiling) { + suspenseEvent = { + componentName: componentName, + depth: 0, + duration: 0, + id: "".concat(id), + phase: phase, + promiseName: displayName, + resolution: 'unresolved', + timestamp: getRelativeTime(), + type: 'suspense', + warning: null + }; + if (currentTimelineData) { + currentTimelineData.suspenseEvents.push(suspenseEvent); + } + } + if (supportsUserTimingV3) { + markAndClear("--suspense-".concat(eventType, "-").concat(id, "-").concat(componentName, "-").concat(phase, "-").concat(lanes, "-").concat(displayName)); + } + wakeable.then(function () { + if (suspenseEvent) { + suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; + suspenseEvent.resolution = 'resolved'; + } + if (supportsUserTimingV3) { + markAndClear("--suspense-resolved-".concat(id, "-").concat(componentName)); + } + }, function () { + if (suspenseEvent) { + suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; + suspenseEvent.resolution = 'rejected'; + } + if (supportsUserTimingV3) { + markAndClear("--suspense-rejected-".concat(id, "-").concat(componentName)); + } + }); + } + } + function markLayoutEffectsStarted(lanes) { + if (isProfiling) { + recordReactMeasureStarted('layout-effects', lanes); + } + if (supportsUserTimingV3) { + markAndClear("--layout-effects-start-".concat(lanes)); + } + } + function markLayoutEffectsStopped() { + if (isProfiling) { + recordReactMeasureCompleted('layout-effects'); + } + if (supportsUserTimingV3) { + markAndClear('--layout-effects-stop'); + } + } + function markPassiveEffectsStarted(lanes) { + if (isProfiling) { + recordReactMeasureStarted('passive-effects', lanes); + } + if (supportsUserTimingV3) { + markAndClear("--passive-effects-start-".concat(lanes)); + } + } + function markPassiveEffectsStopped() { + if (isProfiling) { + recordReactMeasureCompleted('passive-effects'); + } + if (supportsUserTimingV3) { + markAndClear('--passive-effects-stop'); + } + } + function markRenderStarted(lanes) { + if (isProfiling) { + if (nextRenderShouldStartNewBatch) { + nextRenderShouldStartNewBatch = false; + currentBatchUID++; + } + + if (currentReactMeasuresStack.length === 0 || currentReactMeasuresStack[currentReactMeasuresStack.length - 1].type !== 'render-idle') { + recordReactMeasureStarted('render-idle', lanes); + } + recordReactMeasureStarted('render', lanes); + } + if (supportsUserTimingV3) { + markAndClear("--render-start-".concat(lanes)); + } + } + function markRenderYielded() { + if (isProfiling) { + recordReactMeasureCompleted('render'); + } + if (supportsUserTimingV3) { + markAndClear('--render-yield'); + } + } + function markRenderStopped() { + if (isProfiling) { + recordReactMeasureCompleted('render'); + } + if (supportsUserTimingV3) { + markAndClear('--render-stop'); + } + } + function markRenderScheduled(lane) { + if (isProfiling) { + if (currentTimelineData) { + currentTimelineData.schedulingEvents.push({ + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-render', + warning: null + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-render-".concat(lane)); + } + } + function markForceUpdateScheduled(fiber, lane) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (currentTimelineData) { + currentTimelineData.schedulingEvents.push({ + componentName: componentName, + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-force-update', + warning: null + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-forced-update-".concat(lane, "-").concat(componentName)); + } + } + } + function markStateUpdateScheduled(fiber, lane) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + if (currentTimelineData) { + currentTimelineData.schedulingEvents.push({ + componentName: componentName, + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-state-update', + warning: null + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-state-update-".concat(lane, "-").concat(componentName)); + } + } + } + function toggleProfilingStatus(value) { + if (isProfiling !== value) { + isProfiling = value; + if (isProfiling) { + var internalModuleSourceToRanges = new Map(); + if (supportsUserTimingV3) { + var ranges = getInternalModuleRanges(); + if (ranges) { + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + if (Object(isArray["a"])(range) && range.length === 2) { + var _ranges$i2 = _slicedToArray(ranges[i], 2), + startStackFrame = _ranges$i2[0], + stopStackFrame = _ranges$i2[1]; + markAndClear("--react-internal-module-start-".concat(startStackFrame)); + markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); + } + } + } + } + var laneToReactMeasureMap = new Map(); + var lane = 1; + for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { + laneToReactMeasureMap.set(lane, []); + lane *= 2; + } + currentBatchUID = 0; + currentReactComponentMeasure = null; + currentReactMeasuresStack = []; + currentTimelineData = { + internalModuleSourceToRanges: internalModuleSourceToRanges, + laneToLabelMap: laneToLabelMap || new Map(), + reactVersion: reactVersion, + componentMeasures: [], + schedulingEvents: [], + suspenseEvents: [], + thrownErrors: [], + batchUIDToMeasuresMap: new Map(), + duration: 0, + laneToReactMeasureMap: laneToReactMeasureMap, + startTime: 0, + flamechart: [], + nativeEvents: [], + networkMeasures: [], + otherUserTimingMarks: [], + snapshots: [], + snapshotHeight: 0 + }; + nextRenderShouldStartNewBatch = true; + } + } + } + return { + getTimelineData: getTimelineData, + profilingHooks: { + markCommitStarted: markCommitStarted, + markCommitStopped: markCommitStopped, + markComponentRenderStarted: markComponentRenderStarted, + markComponentRenderStopped: markComponentRenderStopped, + markComponentPassiveEffectMountStarted: markComponentPassiveEffectMountStarted, + markComponentPassiveEffectMountStopped: markComponentPassiveEffectMountStopped, + markComponentPassiveEffectUnmountStarted: markComponentPassiveEffectUnmountStarted, + markComponentPassiveEffectUnmountStopped: markComponentPassiveEffectUnmountStopped, + markComponentLayoutEffectMountStarted: markComponentLayoutEffectMountStarted, + markComponentLayoutEffectMountStopped: markComponentLayoutEffectMountStopped, + markComponentLayoutEffectUnmountStarted: markComponentLayoutEffectUnmountStarted, + markComponentLayoutEffectUnmountStopped: markComponentLayoutEffectUnmountStopped, + markComponentErrored: markComponentErrored, + markComponentSuspended: markComponentSuspended, + markLayoutEffectsStarted: markLayoutEffectsStarted, + markLayoutEffectsStopped: markLayoutEffectsStopped, + markPassiveEffectsStarted: markPassiveEffectsStarted, + markPassiveEffectsStopped: markPassiveEffectsStopped, + markRenderStarted: markRenderStarted, + markRenderYielded: markRenderYielded, + markRenderStopped: markRenderStopped, + markRenderScheduled: markRenderScheduled, + markForceUpdateScheduled: markForceUpdateScheduled, + markStateUpdateScheduled: markStateUpdateScheduled + }, + toggleProfilingStatus: toggleProfilingStatus + }; + } + function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + return target; + } + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; + } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + function renderer_slicedToArray(arr, i) { + return renderer_arrayWithHoles(arr) || renderer_iterableToArrayLimit(arr, i) || renderer_unsupportedIterableToArray(arr, i) || renderer_nonIterableRest(); + } + function renderer_nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function renderer_iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + function renderer_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || renderer_unsupportedIterableToArray(arr) || _nonIterableSpread(); + } + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); + } + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return renderer_arrayLikeToArray(arr); + } + function _createForOfIteratorHelper(o, allowArrayLike) { + var it; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = renderer_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function F() {}; + return { + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e2) { + throw _e2; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function e(_e3) { + didErr = true; + err = _e3; + }, + f: function f() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } + function renderer_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return renderer_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return renderer_arrayLikeToArray(o, minLen); + } + function renderer_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function renderer_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + renderer_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + renderer_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return renderer_typeof(obj); + } + + function getFiberFlags(fiber) { + return fiber.flags !== undefined ? fiber.flags : fiber.effectTag; + } + + var renderer_getCurrentTime = (typeof performance === "undefined" ? "undefined" : renderer_typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + function getInternalReactConstants(version) { + var ReactTypeOfSideEffect = { + DidCapture: 128, + NoFlags: 0, + PerformedWork: 1, + Placement: 2, + Incomplete: 8192, + Hydrating: 4096 + }; + + var ReactPriorityLevels = { + ImmediatePriority: 99, + UserBlockingPriority: 98, + NormalPriority: 97, + LowPriority: 96, + IdlePriority: 95, + NoPriority: 90 + }; + if (Object(semver["gt"])(version, '17.0.2')) { + ReactPriorityLevels = { + ImmediatePriority: 1, + UserBlockingPriority: 2, + NormalPriority: 3, + LowPriority: 4, + IdlePriority: 5, + NoPriority: 0 + }; + } + var StrictModeBits = 0; + if (Object(semver["gte"])(version, '18.0.0-alpha')) { + StrictModeBits = 24; + } else if (Object(semver["gte"])(version, '16.9.0')) { + StrictModeBits = 1; + } else if (Object(semver["gte"])(version, '16.3.0')) { + StrictModeBits = 2; + } + var ReactTypeOfWork = null; + + if (Object(semver["gt"])(version, '17.0.1')) { + ReactTypeOfWork = { + CacheComponent: 24, + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + DehydratedSuspenseComponent: 18, + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: 23, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: 22, + Profiler: 12, + ScopeComponent: 21, + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + TracingMarkerComponent: 25, + YieldComponent: -1 + }; + } else if (Object(semver["gte"])(version, '17.0.0-alpha')) { + ReactTypeOfWork = { + CacheComponent: -1, + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + DehydratedSuspenseComponent: 18, + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: 24, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: 23, + Profiler: 12, + ScopeComponent: 21, + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + TracingMarkerComponent: -1, + YieldComponent: -1 + }; + } else if (Object(semver["gte"])(version, '16.6.0-beta.0')) { + ReactTypeOfWork = { + CacheComponent: -1, + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + DehydratedSuspenseComponent: 18, + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: -1, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: -1, + Profiler: 12, + ScopeComponent: -1, + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + TracingMarkerComponent: -1, + YieldComponent: -1 + }; + } else if (Object(semver["gte"])(version, '16.4.3-alpha')) { + ReactTypeOfWork = { + CacheComponent: -1, + ClassComponent: 2, + ContextConsumer: 11, + ContextProvider: 12, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + DehydratedSuspenseComponent: -1, + ForwardRef: 13, + Fragment: 9, + FunctionComponent: 0, + HostComponent: 7, + HostPortal: 6, + HostRoot: 5, + HostText: 8, + IncompleteClassComponent: -1, + IndeterminateComponent: 4, + LazyComponent: -1, + LegacyHiddenComponent: -1, + MemoComponent: -1, + Mode: 10, + OffscreenComponent: -1, + Profiler: 15, + ScopeComponent: -1, + SimpleMemoComponent: -1, + SuspenseComponent: 16, + SuspenseListComponent: -1, + TracingMarkerComponent: -1, + YieldComponent: -1 + }; + } else { + ReactTypeOfWork = { + CacheComponent: -1, + ClassComponent: 2, + ContextConsumer: 12, + ContextProvider: 13, + CoroutineComponent: 7, + CoroutineHandlerPhase: 8, + DehydratedSuspenseComponent: -1, + ForwardRef: 14, + Fragment: 10, + FunctionComponent: 1, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: -1, + IndeterminateComponent: 0, + LazyComponent: -1, + LegacyHiddenComponent: -1, + MemoComponent: -1, + Mode: 11, + OffscreenComponent: -1, + Profiler: 15, + ScopeComponent: -1, + SimpleMemoComponent: -1, + SuspenseComponent: 16, + SuspenseListComponent: -1, + TracingMarkerComponent: -1, + YieldComponent: 9 + }; + } + + function getTypeSymbol(type) { + var symbolOrNumber = renderer_typeof(type) === 'object' && type !== null ? type.$$typeof : type; + + return renderer_typeof(symbolOrNumber) === 'symbol' ? symbolOrNumber.toString() : symbolOrNumber; + } + var _ReactTypeOfWork = ReactTypeOfWork, + CacheComponent = _ReactTypeOfWork.CacheComponent, + ClassComponent = _ReactTypeOfWork.ClassComponent, + IncompleteClassComponent = _ReactTypeOfWork.IncompleteClassComponent, + FunctionComponent = _ReactTypeOfWork.FunctionComponent, + IndeterminateComponent = _ReactTypeOfWork.IndeterminateComponent, + ForwardRef = _ReactTypeOfWork.ForwardRef, + HostRoot = _ReactTypeOfWork.HostRoot, + HostComponent = _ReactTypeOfWork.HostComponent, + HostPortal = _ReactTypeOfWork.HostPortal, + HostText = _ReactTypeOfWork.HostText, + Fragment = _ReactTypeOfWork.Fragment, + LazyComponent = _ReactTypeOfWork.LazyComponent, + LegacyHiddenComponent = _ReactTypeOfWork.LegacyHiddenComponent, + MemoComponent = _ReactTypeOfWork.MemoComponent, + OffscreenComponent = _ReactTypeOfWork.OffscreenComponent, + Profiler = _ReactTypeOfWork.Profiler, + ScopeComponent = _ReactTypeOfWork.ScopeComponent, + SimpleMemoComponent = _ReactTypeOfWork.SimpleMemoComponent, + SuspenseComponent = _ReactTypeOfWork.SuspenseComponent, + SuspenseListComponent = _ReactTypeOfWork.SuspenseListComponent, + TracingMarkerComponent = _ReactTypeOfWork.TracingMarkerComponent; + function resolveFiberType(type) { + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case ReactSymbols["j"]: + case ReactSymbols["k"]: + return resolveFiberType(type.type); + case ReactSymbols["f"]: + case ReactSymbols["g"]: + return type.render; + default: + return type; + } + } + + function getDisplayNameForFiber(fiber) { + var elementType = fiber.elementType, + type = fiber.type, + tag = fiber.tag; + var resolvedType = type; + if (renderer_typeof(type) === 'object' && type !== null) { + resolvedType = resolveFiberType(type); + } + var resolvedContext = null; + switch (tag) { + case CacheComponent: + return 'Cache'; + case ClassComponent: + case IncompleteClassComponent: + return Object(utils["f"])(resolvedType); + case FunctionComponent: + case IndeterminateComponent: + return Object(utils["f"])(resolvedType); + case ForwardRef: + return type && type.displayName || Object(utils["f"])(resolvedType, 'Anonymous'); + case HostRoot: + var fiberRoot = fiber.stateNode; + if (fiberRoot != null && fiberRoot._debugRootType !== null) { + return fiberRoot._debugRootType; + } + return null; + case HostComponent: + return type; + case HostPortal: + case HostText: + case Fragment: + return null; + case LazyComponent: + return 'Lazy'; + case MemoComponent: + case SimpleMemoComponent: + return elementType && elementType.displayName || type && type.displayName || Object(utils["f"])(resolvedType, 'Anonymous'); + case SuspenseComponent: + return 'Suspense'; + case LegacyHiddenComponent: + return 'LegacyHidden'; + case OffscreenComponent: + return 'Offscreen'; + case ScopeComponent: + return 'Scope'; + case SuspenseListComponent: + return 'SuspenseList'; + case Profiler: + return 'Profiler'; + case TracingMarkerComponent: + return 'TracingMarker'; + default: + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case ReactSymbols["a"]: + case ReactSymbols["b"]: + case ReactSymbols["e"]: + return null; + case ReactSymbols["n"]: + case ReactSymbols["o"]: + resolvedContext = fiber.type._context || fiber.type.context; + return "".concat(resolvedContext.displayName || 'Context', ".Provider"); + case ReactSymbols["c"]: + case ReactSymbols["d"]: + case ReactSymbols["r"]: + resolvedContext = fiber.type._context || fiber.type; + + return "".concat(resolvedContext.displayName || 'Context', ".Consumer"); + case ReactSymbols["s"]: + case ReactSymbols["t"]: + return null; + case ReactSymbols["l"]: + case ReactSymbols["m"]: + return "Profiler(".concat(fiber.memoizedProps.id, ")"); + case ReactSymbols["p"]: + case ReactSymbols["q"]: + return 'Scope'; + default: + return null; + } + } + } + return { + getDisplayNameForFiber: getDisplayNameForFiber, + getTypeSymbol: getTypeSymbol, + ReactPriorityLevels: ReactPriorityLevels, + ReactTypeOfWork: ReactTypeOfWork, + ReactTypeOfSideEffect: ReactTypeOfSideEffect, + StrictModeBits: StrictModeBits + }; + } + function attach(hook, rendererID, renderer, global) { + var version = renderer.reconcilerVersion || renderer.version; + var _getInternalReactCons = getInternalReactConstants(version), + getDisplayNameForFiber = _getInternalReactCons.getDisplayNameForFiber, + getTypeSymbol = _getInternalReactCons.getTypeSymbol, + ReactPriorityLevels = _getInternalReactCons.ReactPriorityLevels, + ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, + ReactTypeOfSideEffect = _getInternalReactCons.ReactTypeOfSideEffect, + StrictModeBits = _getInternalReactCons.StrictModeBits; + var DidCapture = ReactTypeOfSideEffect.DidCapture, + Hydrating = ReactTypeOfSideEffect.Hydrating, + NoFlags = ReactTypeOfSideEffect.NoFlags, + PerformedWork = ReactTypeOfSideEffect.PerformedWork, + Placement = ReactTypeOfSideEffect.Placement; + var CacheComponent = ReactTypeOfWork.CacheComponent, + ClassComponent = ReactTypeOfWork.ClassComponent, + ContextConsumer = ReactTypeOfWork.ContextConsumer, + DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, + ForwardRef = ReactTypeOfWork.ForwardRef, + Fragment = ReactTypeOfWork.Fragment, + FunctionComponent = ReactTypeOfWork.FunctionComponent, + HostRoot = ReactTypeOfWork.HostRoot, + HostPortal = ReactTypeOfWork.HostPortal, + HostComponent = ReactTypeOfWork.HostComponent, + HostText = ReactTypeOfWork.HostText, + IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, + IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, + LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, + MemoComponent = ReactTypeOfWork.MemoComponent, + OffscreenComponent = ReactTypeOfWork.OffscreenComponent, + SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, + SuspenseComponent = ReactTypeOfWork.SuspenseComponent, + SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent, + TracingMarkerComponent = ReactTypeOfWork.TracingMarkerComponent; + var ImmediatePriority = ReactPriorityLevels.ImmediatePriority, + UserBlockingPriority = ReactPriorityLevels.UserBlockingPriority, + NormalPriority = ReactPriorityLevels.NormalPriority, + LowPriority = ReactPriorityLevels.LowPriority, + IdlePriority = ReactPriorityLevels.IdlePriority, + NoPriority = ReactPriorityLevels.NoPriority; + var getLaneLabelMap = renderer.getLaneLabelMap, + injectProfilingHooks = renderer.injectProfilingHooks, + overrideHookState = renderer.overrideHookState, + overrideHookStateDeletePath = renderer.overrideHookStateDeletePath, + overrideHookStateRenamePath = renderer.overrideHookStateRenamePath, + overrideProps = renderer.overrideProps, + overridePropsDeletePath = renderer.overridePropsDeletePath, + overridePropsRenamePath = renderer.overridePropsRenamePath, + scheduleRefresh = renderer.scheduleRefresh, + setErrorHandler = renderer.setErrorHandler, + setSuspenseHandler = renderer.setSuspenseHandler, + scheduleUpdate = renderer.scheduleUpdate; + var supportsTogglingError = typeof setErrorHandler === 'function' && typeof scheduleUpdate === 'function'; + var supportsTogglingSuspense = typeof setSuspenseHandler === 'function' && typeof scheduleUpdate === 'function'; + if (typeof scheduleRefresh === 'function') { + renderer.scheduleRefresh = function () { + try { + hook.emit('fastRefreshScheduled'); + } finally { + return scheduleRefresh.apply(void 0, arguments); + } + }; + } + var getTimelineData = null; + var toggleProfilingStatus = null; + if (typeof injectProfilingHooks === 'function') { + var response = createProfilingHooks({ + getDisplayNameForFiber: getDisplayNameForFiber, + getIsProfiling: function getIsProfiling() { + return isProfiling; + }, + getLaneLabelMap: getLaneLabelMap, + reactVersion: version + }); + + injectProfilingHooks(response.profilingHooks); + + getTimelineData = response.getTimelineData; + toggleProfilingStatus = response.toggleProfilingStatus; + } + + var fibersWithChangedErrorOrWarningCounts = new Set(); + var pendingFiberToErrorsMap = new Map(); + var pendingFiberToWarningsMap = new Map(); + + var fiberIDToErrorsMap = new Map(); + var fiberIDToWarningsMap = new Map(); + function clearErrorsAndWarnings() { + var _iterator = _createForOfIteratorHelper(fiberIDToErrorsMap.keys()), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var id = _step.value; + var _fiber = idToArbitraryFiberMap.get(id); + if (_fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(_fiber); + updateMostRecentlyInspectedElementIfNecessary(id); + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + var _iterator2 = _createForOfIteratorHelper(fiberIDToWarningsMap.keys()), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var _id = _step2.value; + var _fiber2 = idToArbitraryFiberMap.get(_id); + if (_fiber2 != null) { + fibersWithChangedErrorOrWarningCounts.add(_fiber2); + updateMostRecentlyInspectedElementIfNecessary(_id); + } + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + fiberIDToErrorsMap.clear(); + fiberIDToWarningsMap.clear(); + flushPendingEvents(); + } + function clearMessageCountHelper(fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + pendingFiberToErrorsMap.delete(fiber); + if (fiberIDToMessageCountMap.has(fiberID)) { + fiberIDToMessageCountMap.delete(fiberID); + + fibersWithChangedErrorOrWarningCounts.add(fiber); + flushPendingEvents(); + updateMostRecentlyInspectedElementIfNecessary(fiberID); + } else { + fibersWithChangedErrorOrWarningCounts.delete(fiber); + } + } + } + function clearErrorsForFiberID(fiberID) { + clearMessageCountHelper(fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); + } + function clearWarningsForFiberID(fiberID) { + clearMessageCountHelper(fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); + } + function updateMostRecentlyInspectedElementIfNecessary(fiberID) { + if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === fiberID) { + hasElementUpdatedSinceLastInspected = true; + } + } + + function onErrorOrWarning(fiber, type, args) { + if (type === 'error') { + var maybeID = getFiberIDUnsafe(fiber); + + if (maybeID != null && forceErrorForFiberIDs.get(maybeID) === true) { + return; + } + } + var message = backend_utils["f"].apply(void 0, _toConsumableArray(args)); + if (constants["s"]) { + debug('onErrorOrWarning', fiber, null, "".concat(type, ": \"").concat(message, "\"")); + } + + fibersWithChangedErrorOrWarningCounts.add(fiber); + + var fiberMap = type === 'error' ? pendingFiberToErrorsMap : pendingFiberToWarningsMap; + var messageMap = fiberMap.get(fiber); + if (messageMap != null) { + var count = messageMap.get(message) || 0; + messageMap.set(message, count + 1); + } else { + fiberMap.set(fiber, new Map([[message, 1]])); + } + + flushPendingErrorsAndWarningsAfterDelay(); + } + + if (true) { + Object(backend_console["c"])(renderer, onErrorOrWarning); + + var appendComponentStack = window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ !== false; + var breakOnConsoleErrors = window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true; + var showInlineWarningsAndErrors = window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false; + var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; + var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; + Object(backend_console["a"])({ + appendComponentStack: appendComponentStack, + breakOnConsoleErrors: breakOnConsoleErrors, + showInlineWarningsAndErrors: showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + } + var debug = function debug(name, fiber, parentFiber) { + var extraString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ''; + if (constants["s"]) { + var displayName = fiber.tag + ':' + (getDisplayNameForFiber(fiber) || 'null'); + var maybeID = getFiberIDUnsafe(fiber) || ''; + var parentDisplayName = parentFiber ? parentFiber.tag + ':' + (getDisplayNameForFiber(parentFiber) || 'null') : ''; + var maybeParentID = parentFiber ? getFiberIDUnsafe(parentFiber) || '' : ''; + console.groupCollapsed("[renderer] %c".concat(name, " %c").concat(displayName, " (").concat(maybeID, ") %c").concat(parentFiber ? "".concat(parentDisplayName, " (").concat(maybeParentID, ")") : '', " %c").concat(extraString), 'color: red; font-weight: bold;', 'color: blue;', 'color: purple;', 'color: black;'); + console.log(new Error().stack.split('\n').slice(1).join('\n')); + console.groupEnd(); + } + }; + + var hideElementsWithDisplayNames = new Set(); + var hideElementsWithPaths = new Set(); + var hideElementsWithTypes = new Set(); + + var traceUpdatesEnabled = false; + var traceUpdatesForNodes = new Set(); + function applyComponentFilters(componentFilters) { + hideElementsWithTypes.clear(); + hideElementsWithDisplayNames.clear(); + hideElementsWithPaths.clear(); + componentFilters.forEach(function (componentFilter) { + if (!componentFilter.isEnabled) { + return; + } + switch (componentFilter.type) { + case types["a"]: + if (componentFilter.isValid && componentFilter.value !== '') { + hideElementsWithDisplayNames.add(new RegExp(componentFilter.value, 'i')); + } + break; + case types["b"]: + hideElementsWithTypes.add(componentFilter.value); + break; + case types["d"]: + if (componentFilter.isValid && componentFilter.value !== '') { + hideElementsWithPaths.add(new RegExp(componentFilter.value, 'i')); + } + break; + case types["c"]: + hideElementsWithDisplayNames.add(new RegExp('\\(')); + break; + default: + console.warn("Invalid component filter type \"".concat(componentFilter.type, "\"")); + break; + } + }); + } + + if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ != null) { + applyComponentFilters(window.__REACT_DEVTOOLS_COMPONENT_FILTERS__); + } else { + applyComponentFilters(Object(utils["e"])()); + } + + function updateComponentFilters(componentFilters) { + if (isProfiling) { + throw Error('Cannot modify filter preferences while profiling'); + } + + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); + + pushOperation(constants["n"]); + flushPendingEvents(root); + currentRootID = -1; + }); + applyComponentFilters(componentFilters); + + rootDisplayNameCounter.clear(); + + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); + setRootPseudoKey(currentRootID, root.current); + mountFiberRecursively(root.current, null, false, false); + flushPendingEvents(root); + currentRootID = -1; + }); + + reevaluateErrorsAndWarnings(); + flushPendingEvents(); + } + + function shouldFilterFiber(fiber) { + var _debugSource = fiber._debugSource, + tag = fiber.tag, + type = fiber.type; + switch (tag) { + case DehydratedSuspenseComponent: + return true; + case HostPortal: + case HostText: + case Fragment: + case LegacyHiddenComponent: + case OffscreenComponent: + return true; + case HostRoot: + return false; + default: + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case ReactSymbols["a"]: + case ReactSymbols["b"]: + case ReactSymbols["e"]: + case ReactSymbols["s"]: + case ReactSymbols["t"]: + return true; + default: + break; + } + } + var elementType = getElementTypeForFiber(fiber); + if (hideElementsWithTypes.has(elementType)) { + return true; + } + if (hideElementsWithDisplayNames.size > 0) { + var displayName = getDisplayNameForFiber(fiber); + if (displayName != null) { + var _iterator3 = _createForOfIteratorHelper(hideElementsWithDisplayNames), + _step3; + try { + for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { + var displayNameRegExp = _step3.value; + if (displayNameRegExp.test(displayName)) { + return true; + } + } + } catch (err) { + _iterator3.e(err); + } finally { + _iterator3.f(); + } + } + } + if (_debugSource != null && hideElementsWithPaths.size > 0) { + var fileName = _debugSource.fileName; + + var _iterator4 = _createForOfIteratorHelper(hideElementsWithPaths), + _step4; + try { + for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { + var pathRegExp = _step4.value; + if (pathRegExp.test(fileName)) { + return true; + } + } + } catch (err) { + _iterator4.e(err); + } finally { + _iterator4.f(); + } + } + return false; + } + + function getElementTypeForFiber(fiber) { + var type = fiber.type, + tag = fiber.tag; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + return types["e"]; + + case FunctionComponent: + case IndeterminateComponent: + return types["h"]; + + case ForwardRef: + return types["g"]; + + case HostRoot: + return types["m"]; + + case HostComponent: + return types["i"]; + + case HostPortal: + case HostText: + case Fragment: + return types["k"]; + + case MemoComponent: + case SimpleMemoComponent: + return types["j"]; + + case SuspenseComponent: + return types["n"]; + + case SuspenseListComponent: + return types["o"]; + + case TracingMarkerComponent: + return types["p"]; + + default: + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case ReactSymbols["a"]: + case ReactSymbols["b"]: + case ReactSymbols["e"]: + return types["k"]; + + case ReactSymbols["n"]: + case ReactSymbols["o"]: + return types["f"]; + + case ReactSymbols["c"]: + case ReactSymbols["d"]: + return types["f"]; + + case ReactSymbols["s"]: + case ReactSymbols["t"]: + return types["k"]; + + case ReactSymbols["l"]: + case ReactSymbols["m"]: + return types["l"]; + + default: + return types["k"]; + } + } + } + + var fiberToIDMap = new Map(); + + var idToArbitraryFiberMap = new Map(); + + var idToTreeBaseDurationMap = new Map(); + + var idToRootMap = new Map(); + + var currentRootID = -1; + + function getOrGenerateFiberID(fiber) { + var id = null; + if (fiberToIDMap.has(fiber)) { + id = fiberToIDMap.get(fiber); + } else { + var _alternate = fiber.alternate; + if (_alternate !== null && fiberToIDMap.has(_alternate)) { + id = fiberToIDMap.get(_alternate); + } + } + var didGenerateID = false; + if (id === null) { + didGenerateID = true; + id = Object(utils["i"])(); + } + + var refinedID = id; + + if (!fiberToIDMap.has(fiber)) { + fiberToIDMap.set(fiber, refinedID); + idToArbitraryFiberMap.set(refinedID, fiber); + } + + var alternate = fiber.alternate; + if (alternate !== null) { + if (!fiberToIDMap.has(alternate)) { + fiberToIDMap.set(alternate, refinedID); + } + } + if (constants["s"]) { + if (didGenerateID) { + debug('getOrGenerateFiberID()', fiber, fiber.return, 'Generated a new UID'); + } + } + return refinedID; + } + + function getFiberIDThrows(fiber) { + var maybeID = getFiberIDUnsafe(fiber); + if (maybeID !== null) { + return maybeID; + } + throw Error("Could not find ID for Fiber \"".concat(getDisplayNameForFiber(fiber) || '', "\"")); + } + + function getFiberIDUnsafe(fiber) { + if (fiberToIDMap.has(fiber)) { + return fiberToIDMap.get(fiber); + } else { + var alternate = fiber.alternate; + if (alternate !== null && fiberToIDMap.has(alternate)) { + return fiberToIDMap.get(alternate); + } + } + return null; + } + + function untrackFiberID(fiber) { + if (constants["s"]) { + debug('untrackFiberID()', fiber, fiber.return, 'schedule after delay'); + } + + untrackFibersSet.add(fiber); + + var alternate = fiber.alternate; + if (alternate !== null) { + untrackFibersSet.add(alternate); + } + if (untrackFibersTimeoutID === null) { + untrackFibersTimeoutID = setTimeout(untrackFibers, 1000); + } + } + var untrackFibersSet = new Set(); + var untrackFibersTimeoutID = null; + function untrackFibers() { + if (untrackFibersTimeoutID !== null) { + clearTimeout(untrackFibersTimeoutID); + untrackFibersTimeoutID = null; + } + untrackFibersSet.forEach(function (fiber) { + var fiberID = getFiberIDUnsafe(fiber); + if (fiberID !== null) { + idToArbitraryFiberMap.delete(fiberID); + + clearErrorsForFiberID(fiberID); + clearWarningsForFiberID(fiberID); + } + fiberToIDMap.delete(fiber); + var alternate = fiber.alternate; + if (alternate !== null) { + fiberToIDMap.delete(alternate); + } + if (forceErrorForFiberIDs.has(fiberID)) { + forceErrorForFiberIDs.delete(fiberID); + if (forceErrorForFiberIDs.size === 0 && setErrorHandler != null) { + setErrorHandler(shouldErrorFiberAlwaysNull); + } + } + }); + untrackFibersSet.clear(); + } + function getChangeDescription(prevFiber, nextFiber) { + switch (getElementTypeForFiber(nextFiber)) { + case types["e"]: + case types["h"]: + case types["j"]: + case types["g"]: + if (prevFiber === null) { + return { + context: null, + didHooksChange: false, + isFirstMount: true, + props: null, + state: null + }; + } else { + var data = { + context: getContextChangedKeys(nextFiber), + didHooksChange: false, + isFirstMount: false, + props: getChangedKeys(prevFiber.memoizedProps, nextFiber.memoizedProps), + state: getChangedKeys(prevFiber.memoizedState, nextFiber.memoizedState) + }; + + if (DevToolsFeatureFlags_core_oss["b"]) { + var indices = getChangedHooksIndices(prevFiber.memoizedState, nextFiber.memoizedState); + data.hooks = indices; + data.didHooksChange = indices !== null && indices.length > 0; + } else { + data.didHooksChange = didHooksChange(prevFiber.memoizedState, nextFiber.memoizedState); + } + return data; + } + default: + return null; + } + } + function updateContextsForFiber(fiber) { + switch (getElementTypeForFiber(fiber)) { + case types["e"]: + case types["g"]: + case types["h"]: + case types["j"]: + if (idToContextsMap !== null) { + var id = getFiberIDThrows(fiber); + var contexts = getContextsForFiber(fiber); + if (contexts !== null) { + idToContextsMap.set(id, contexts); + } + } + break; + default: + break; + } + } + + var NO_CONTEXT = {}; + function getContextsForFiber(fiber) { + var legacyContext = NO_CONTEXT; + var modernContext = NO_CONTEXT; + switch (getElementTypeForFiber(fiber)) { + case types["e"]: + var instance = fiber.stateNode; + if (instance != null) { + if (instance.constructor && instance.constructor.contextType != null) { + modernContext = instance.context; + } else { + legacyContext = instance.context; + if (legacyContext && Object.keys(legacyContext).length === 0) { + legacyContext = NO_CONTEXT; + } + } + } + return [legacyContext, modernContext]; + case types["g"]: + case types["h"]: + case types["j"]: + var dependencies = fiber.dependencies; + if (dependencies && dependencies.firstContext) { + modernContext = dependencies.firstContext; + } + return [legacyContext, modernContext]; + default: + return null; + } + } + + function crawlToInitializeContextsMap(fiber) { + var id = getFiberIDUnsafe(fiber); + + if (id !== null) { + updateContextsForFiber(fiber); + var current = fiber.child; + while (current !== null) { + crawlToInitializeContextsMap(current); + current = current.sibling; + } + } + } + function getContextChangedKeys(fiber) { + if (idToContextsMap !== null) { + var id = getFiberIDThrows(fiber); + var prevContexts = idToContextsMap.has(id) ? idToContextsMap.get(id) : null; + var nextContexts = getContextsForFiber(fiber); + if (prevContexts == null || nextContexts == null) { + return null; + } + var _prevContexts = renderer_slicedToArray(prevContexts, 2), + prevLegacyContext = _prevContexts[0], + prevModernContext = _prevContexts[1]; + var _nextContexts = renderer_slicedToArray(nextContexts, 2), + nextLegacyContext = _nextContexts[0], + nextModernContext = _nextContexts[1]; + switch (getElementTypeForFiber(fiber)) { + case types["e"]: + if (prevContexts && nextContexts) { + if (nextLegacyContext !== NO_CONTEXT) { + return getChangedKeys(prevLegacyContext, nextLegacyContext); + } else if (nextModernContext !== NO_CONTEXT) { + return prevModernContext !== nextModernContext; + } + } + break; + case types["g"]: + case types["h"]: + case types["j"]: + if (nextModernContext !== NO_CONTEXT) { + var prevContext = prevModernContext; + var nextContext = nextModernContext; + while (prevContext && nextContext) { + if (!shared_objectIs(prevContext.memoizedValue, nextContext.memoizedValue)) { + return true; + } + prevContext = prevContext.next; + nextContext = nextContext.next; + } + return false; + } + break; + default: + break; + } + } + return null; + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (prevDeps === null) { + return false; + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (shared_objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; + } + function isEffect(memoizedState) { + if (memoizedState === null || renderer_typeof(memoizedState) !== 'object') { + return false; + } + var deps = memoizedState.deps; + var boundHasOwnProperty = shared_hasOwnProperty.bind(memoizedState); + return boundHasOwnProperty('create') && boundHasOwnProperty('destroy') && boundHasOwnProperty('deps') && boundHasOwnProperty('next') && boundHasOwnProperty('tag') && (deps === null || Object(isArray["a"])(deps)); + } + function didHookChange(prev, next) { + var prevMemoizedState = prev.memoizedState; + var nextMemoizedState = next.memoizedState; + if (isEffect(prevMemoizedState) && isEffect(nextMemoizedState)) { + return prevMemoizedState !== nextMemoizedState && !areHookInputsEqual(nextMemoizedState.deps, prevMemoizedState.deps); + } + return nextMemoizedState !== prevMemoizedState; + } + function didHooksChange(prev, next) { + if (prev == null || next == null) { + return false; + } + + if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { + while (next !== null) { + if (didHookChange(prev, next)) { + return true; + } else { + next = next.next; + prev = prev.next; + } + } + } + return false; + } + function getChangedHooksIndices(prev, next) { + if (DevToolsFeatureFlags_core_oss["b"]) { + if (prev == null || next == null) { + return null; + } + var indices = []; + var index = 0; + if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { + while (next !== null) { + if (didHookChange(prev, next)) { + indices.push(index); + } + next = next.next; + prev = prev.next; + index++; + } + } + return indices; + } + return null; + } + function getChangedKeys(prev, next) { + if (prev == null || next == null) { + return null; + } + + if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { + return null; + } + var keys = new Set([].concat(_toConsumableArray(Object.keys(prev)), _toConsumableArray(Object.keys(next)))); + var changedKeys = []; + + var _iterator5 = _createForOfIteratorHelper(keys), + _step5; + try { + for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { + var key = _step5.value; + if (prev[key] !== next[key]) { + changedKeys.push(key); + } + } + } catch (err) { + _iterator5.e(err); + } finally { + _iterator5.f(); + } + return changedKeys; + } + + function didFiberRender(prevFiber, nextFiber) { + switch (nextFiber.tag) { + case ClassComponent: + case FunctionComponent: + case ContextConsumer: + case MemoComponent: + case SimpleMemoComponent: + return (getFiberFlags(nextFiber) & PerformedWork) === PerformedWork; + + default: + return prevFiber.memoizedProps !== nextFiber.memoizedProps || prevFiber.memoizedState !== nextFiber.memoizedState || prevFiber.ref !== nextFiber.ref; + } + } + var pendingOperations = []; + var pendingRealUnmountedIDs = []; + var pendingSimulatedUnmountedIDs = []; + var pendingOperationsQueue = []; + var pendingStringTable = new Map(); + var pendingStringTableLength = 0; + var pendingUnmountedRootID = null; + function pushOperation(op) { + if (false) {} + pendingOperations.push(op); + } + function shouldBailoutWithPendingOperations() { + if (isProfiling) { + if (currentCommitProfilingMetadata != null && currentCommitProfilingMetadata.durations.length > 0) { + return false; + } + } + return pendingOperations.length === 0 && pendingRealUnmountedIDs.length === 0 && pendingSimulatedUnmountedIDs.length === 0 && pendingUnmountedRootID === null; + } + function flushOrQueueOperations(operations) { + if (shouldBailoutWithPendingOperations()) { + return; + } + if (pendingOperationsQueue !== null) { + pendingOperationsQueue.push(operations); + } else { + hook.emit('operations', operations); + } + } + var flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + function clearPendingErrorsAndWarningsAfterDelay() { + if (flushPendingErrorsAndWarningsAfterDelayTimeoutID !== null) { + clearTimeout(flushPendingErrorsAndWarningsAfterDelayTimeoutID); + flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + } + } + function flushPendingErrorsAndWarningsAfterDelay() { + clearPendingErrorsAndWarningsAfterDelay(); + flushPendingErrorsAndWarningsAfterDelayTimeoutID = setTimeout(function () { + flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + if (pendingOperations.length > 0) { + return; + } + recordPendingErrorsAndWarnings(); + if (shouldBailoutWithPendingOperations()) { + return; + } + + var operations = new Array(3 + pendingOperations.length); + operations[0] = rendererID; + operations[1] = currentRootID; + operations[2] = 0; + + for (var j = 0; j < pendingOperations.length; j++) { + operations[3 + j] = pendingOperations[j]; + } + flushOrQueueOperations(operations); + pendingOperations.length = 0; + }, 1000); + } + function reevaluateErrorsAndWarnings() { + fibersWithChangedErrorOrWarningCounts.clear(); + fiberIDToErrorsMap.forEach(function (countMap, fiberID) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(fiber); + } + }); + fiberIDToWarningsMap.forEach(function (countMap, fiberID) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(fiber); + } + }); + recordPendingErrorsAndWarnings(); + } + function mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { + var newCount = 0; + var messageCountMap = fiberIDToMessageCountMap.get(fiberID); + var pendingMessageCountMap = pendingFiberToMessageCountMap.get(fiber); + if (pendingMessageCountMap != null) { + if (messageCountMap == null) { + messageCountMap = pendingMessageCountMap; + fiberIDToMessageCountMap.set(fiberID, pendingMessageCountMap); + } else { + var refinedMessageCountMap = messageCountMap; + pendingMessageCountMap.forEach(function (pendingCount, message) { + var previousCount = refinedMessageCountMap.get(message) || 0; + refinedMessageCountMap.set(message, previousCount + pendingCount); + }); + } + } + if (!shouldFilterFiber(fiber)) { + if (messageCountMap != null) { + messageCountMap.forEach(function (count) { + newCount += count; + }); + } + } + pendingFiberToMessageCountMap.delete(fiber); + return newCount; + } + function recordPendingErrorsAndWarnings() { + clearPendingErrorsAndWarningsAfterDelay(); + fibersWithChangedErrorOrWarningCounts.forEach(function (fiber) { + var fiberID = getFiberIDUnsafe(fiber); + if (fiberID === null) { + } else { + var errorCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); + var warningCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); + pushOperation(constants["q"]); + pushOperation(fiberID); + pushOperation(errorCount); + pushOperation(warningCount); + } + + pendingFiberToErrorsMap.delete(fiber); + pendingFiberToWarningsMap.delete(fiber); + }); + fibersWithChangedErrorOrWarningCounts.clear(); + } + function flushPendingEvents(root) { + recordPendingErrorsAndWarnings(); + if (shouldBailoutWithPendingOperations()) { + return; + } + var numUnmountIDs = pendingRealUnmountedIDs.length + pendingSimulatedUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); + var operations = new Array( + 2 + + 1 + + pendingStringTableLength + ( + numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + + pendingOperations.length); + + var i = 0; + operations[i++] = rendererID; + operations[i++] = currentRootID; + + operations[i++] = pendingStringTableLength; + pendingStringTable.forEach(function (entry, stringKey) { + var encodedString = entry.encodedString; + + var length = encodedString.length; + operations[i++] = length; + for (var j = 0; j < length; j++) { + operations[i + j] = encodedString[j]; + } + i += length; + }); + if (numUnmountIDs > 0) { + operations[i++] = constants["m"]; + + operations[i++] = numUnmountIDs; + + for (var j = pendingRealUnmountedIDs.length - 1; j >= 0; j--) { + operations[i++] = pendingRealUnmountedIDs[j]; + } + + for (var _j = 0; _j < pendingSimulatedUnmountedIDs.length; _j++) { + operations[i + _j] = pendingSimulatedUnmountedIDs[_j]; + } + i += pendingSimulatedUnmountedIDs.length; + + if (pendingUnmountedRootID !== null) { + operations[i] = pendingUnmountedRootID; + i++; + } + } + + for (var _j2 = 0; _j2 < pendingOperations.length; _j2++) { + operations[i + _j2] = pendingOperations[_j2]; + } + i += pendingOperations.length; + + flushOrQueueOperations(operations); + + pendingOperations.length = 0; + pendingRealUnmountedIDs.length = 0; + pendingSimulatedUnmountedIDs.length = 0; + pendingUnmountedRootID = null; + pendingStringTable.clear(); + pendingStringTableLength = 0; + } + function getStringID(string) { + if (string === null) { + return 0; + } + var existingEntry = pendingStringTable.get(string); + if (existingEntry !== undefined) { + return existingEntry.id; + } + var id = pendingStringTable.size + 1; + var encodedString = Object(utils["m"])(string); + pendingStringTable.set(string, { + encodedString: encodedString, + id: id + }); + + pendingStringTableLength += encodedString.length + 1; + return id; + } + function recordMount(fiber, parentFiber) { + var isRoot = fiber.tag === HostRoot; + var id = getOrGenerateFiberID(fiber); + if (constants["s"]) { + debug('recordMount()', fiber, parentFiber); + } + var hasOwnerMetadata = fiber.hasOwnProperty('_debugOwner'); + var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); + + var profilingFlags = 0; + if (isProfilingSupported) { + profilingFlags = constants["g"]; + + if (typeof injectProfilingHooks === 'function') { + profilingFlags |= constants["h"]; + } + } + + if (isRoot) { + pushOperation(constants["l"]); + pushOperation(id); + pushOperation(types["m"]); + pushOperation((fiber.mode & StrictModeBits) !== 0 ? 1 : 0); + pushOperation(profilingFlags); + pushOperation(StrictModeBits !== 0 ? 1 : 0); + pushOperation(hasOwnerMetadata ? 1 : 0); + if (isProfiling) { + if (displayNamesByRootID !== null) { + displayNamesByRootID.set(id, getDisplayNameForRoot(fiber)); + } + } + } else { + var key = fiber.key; + var displayName = getDisplayNameForFiber(fiber); + var elementType = getElementTypeForFiber(fiber); + var _debugOwner = fiber._debugOwner; + + var ownerID = _debugOwner != null ? getOrGenerateFiberID(_debugOwner) : 0; + var parentID = parentFiber ? getFiberIDThrows(parentFiber) : 0; + var displayNameStringID = getStringID(displayName); + + var keyString = key === null ? null : String(key); + var keyStringID = getStringID(keyString); + pushOperation(constants["l"]); + pushOperation(id); + pushOperation(elementType); + pushOperation(parentID); + pushOperation(ownerID); + pushOperation(displayNameStringID); + pushOperation(keyStringID); + + if ((fiber.mode & StrictModeBits) !== 0 && (parentFiber.mode & StrictModeBits) === 0) { + pushOperation(constants["p"]); + pushOperation(id); + pushOperation(types["q"]); + } + } + + if (isProfilingSupported) { + idToRootMap.set(id, currentRootID); + recordProfilingDurations(fiber); + } + } + function recordUnmount(fiber, isSimulated) { + if (constants["s"]) { + debug('recordUnmount()', fiber, null, isSimulated ? 'unmount is simulated' : ''); + } + if (trackedPathMatchFiber !== null) { + if (fiber === trackedPathMatchFiber || fiber === trackedPathMatchFiber.alternate) { + setTrackedPath(null); + } + } + var unsafeID = getFiberIDUnsafe(fiber); + if (unsafeID === null) { + return; + } + + var id = unsafeID; + var isRoot = fiber.tag === HostRoot; + if (isRoot) { + pendingUnmountedRootID = id; + } else if (!shouldFilterFiber(fiber)) { + if (isSimulated) { + pendingSimulatedUnmountedIDs.push(id); + } else { + pendingRealUnmountedIDs.push(id); + } + } + if (!fiber._debugNeedsRemount) { + untrackFiberID(fiber); + var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); + if (isProfilingSupported) { + idToRootMap.delete(id); + idToTreeBaseDurationMap.delete(id); + } + } + } + function mountFiberRecursively(firstChild, parentFiber, traverseSiblings, traceNearestHostComponentUpdate) { + var fiber = firstChild; + while (fiber !== null) { + getOrGenerateFiberID(fiber); + if (constants["s"]) { + debug('mountFiberRecursively()', fiber, parentFiber); + } + + var mightSiblingsBeOnTrackedPath = updateTrackedPathStateBeforeMount(fiber); + var shouldIncludeInTree = !shouldFilterFiber(fiber); + if (shouldIncludeInTree) { + recordMount(fiber, parentFiber); + } + if (traceUpdatesEnabled) { + if (traceNearestHostComponentUpdate) { + var elementType = getElementTypeForFiber(fiber); + + if (elementType === types["i"]) { + traceUpdatesForNodes.add(fiber.stateNode); + traceNearestHostComponentUpdate = false; + } + } + } + + var isSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent; + if (isSuspense) { + var isTimedOut = fiber.memoizedState !== null; + if (isTimedOut) { + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; + if (fallbackChild !== null) { + mountFiberRecursively(fallbackChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } else { + var primaryChild = null; + var areSuspenseChildrenConditionallyWrapped = OffscreenComponent === -1; + if (areSuspenseChildrenConditionallyWrapped) { + primaryChild = fiber.child; + } else if (fiber.child !== null) { + primaryChild = fiber.child.child; + } + if (primaryChild !== null) { + mountFiberRecursively(primaryChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } + } else { + if (fiber.child !== null) { + mountFiberRecursively(fiber.child, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } + + updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath); + fiber = traverseSiblings ? fiber.sibling : null; + } + } + + function unmountFiberChildrenRecursively(fiber) { + if (constants["s"]) { + debug('unmountFiberChildrenRecursively()', fiber); + } + + var isTimedOutSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent && fiber.memoizedState !== null; + var child = fiber.child; + if (isTimedOutSuspense) { + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + + child = fallbackChildFragment ? fallbackChildFragment.child : null; + } + while (child !== null) { + if (child.return !== null) { + unmountFiberChildrenRecursively(child); + recordUnmount(child, true); + } + child = child.sibling; + } + } + function recordProfilingDurations(fiber) { + var id = getFiberIDThrows(fiber); + var actualDuration = fiber.actualDuration, + treeBaseDuration = fiber.treeBaseDuration; + idToTreeBaseDurationMap.set(id, treeBaseDuration || 0); + if (isProfiling) { + var alternate = fiber.alternate; + + if (alternate == null || treeBaseDuration !== alternate.treeBaseDuration) { + var convertedTreeBaseDuration = Math.floor((treeBaseDuration || 0) * 1000); + pushOperation(constants["r"]); + pushOperation(id); + pushOperation(convertedTreeBaseDuration); + } + if (alternate == null || didFiberRender(alternate, fiber)) { + if (actualDuration != null) { + var selfDuration = actualDuration; + var child = fiber.child; + while (child !== null) { + selfDuration -= child.actualDuration || 0; + child = child.sibling; + } + + var metadata = currentCommitProfilingMetadata; + metadata.durations.push(id, actualDuration, selfDuration); + metadata.maxActualDuration = Math.max(metadata.maxActualDuration, actualDuration); + if (recordChangeDescriptions) { + var changeDescription = getChangeDescription(alternate, fiber); + if (changeDescription !== null) { + if (metadata.changeDescriptions !== null) { + metadata.changeDescriptions.set(id, changeDescription); + } + } + updateContextsForFiber(fiber); + } + } + } + } + } + function recordResetChildren(fiber, childSet) { + if (constants["s"]) { + debug('recordResetChildren()', childSet, fiber); + } + + var nextChildren = []; + + var child = childSet; + while (child !== null) { + findReorderedChildrenRecursively(child, nextChildren); + child = child.sibling; + } + var numChildren = nextChildren.length; + if (numChildren < 2) { + return; + } + pushOperation(constants["o"]); + pushOperation(getFiberIDThrows(fiber)); + pushOperation(numChildren); + for (var i = 0; i < nextChildren.length; i++) { + pushOperation(nextChildren[i]); + } + } + function findReorderedChildrenRecursively(fiber, nextChildren) { + if (!shouldFilterFiber(fiber)) { + nextChildren.push(getFiberIDThrows(fiber)); + } else { + var child = fiber.child; + var isTimedOutSuspense = fiber.tag === SuspenseComponent && fiber.memoizedState !== null; + if (isTimedOutSuspense) { + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; + if (fallbackChild !== null) { + child = fallbackChild; + } + } + while (child !== null) { + findReorderedChildrenRecursively(child, nextChildren); + child = child.sibling; + } + } + } + + function updateFiberRecursively(nextFiber, prevFiber, parentFiber, traceNearestHostComponentUpdate) { + var id = getOrGenerateFiberID(nextFiber); + if (constants["s"]) { + debug('updateFiberRecursively()', nextFiber, parentFiber); + } + if (traceUpdatesEnabled) { + var elementType = getElementTypeForFiber(nextFiber); + if (traceNearestHostComponentUpdate) { + if (elementType === types["i"]) { + traceUpdatesForNodes.add(nextFiber.stateNode); + traceNearestHostComponentUpdate = false; + } + } else { + if (elementType === types["h"] || elementType === types["e"] || elementType === types["f"] || elementType === types["j"] || elementType === types["g"]) { + traceNearestHostComponentUpdate = didFiberRender(prevFiber, nextFiber); + } + } + } + if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id && didFiberRender(prevFiber, nextFiber)) { + hasElementUpdatedSinceLastInspected = true; + } + var shouldIncludeInTree = !shouldFilterFiber(nextFiber); + var isSuspense = nextFiber.tag === SuspenseComponent; + var shouldResetChildren = false; + + var prevDidTimeout = isSuspense && prevFiber.memoizedState !== null; + var nextDidTimeOut = isSuspense && nextFiber.memoizedState !== null; + + if (prevDidTimeout && nextDidTimeOut) { + var nextFiberChild = nextFiber.child; + var nextFallbackChildSet = nextFiberChild ? nextFiberChild.sibling : null; + + var prevFiberChild = prevFiber.child; + var prevFallbackChildSet = prevFiberChild ? prevFiberChild.sibling : null; + if (nextFallbackChildSet != null && prevFallbackChildSet != null && updateFiberRecursively(nextFallbackChildSet, prevFallbackChildSet, nextFiber, traceNearestHostComponentUpdate)) { + shouldResetChildren = true; + } + } else if (prevDidTimeout && !nextDidTimeOut) { + var nextPrimaryChildSet = nextFiber.child; + if (nextPrimaryChildSet !== null) { + mountFiberRecursively(nextPrimaryChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); + } + shouldResetChildren = true; + } else if (!prevDidTimeout && nextDidTimeOut) { + unmountFiberChildrenRecursively(prevFiber); + + var _nextFiberChild = nextFiber.child; + var _nextFallbackChildSet = _nextFiberChild ? _nextFiberChild.sibling : null; + if (_nextFallbackChildSet != null) { + mountFiberRecursively(_nextFallbackChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); + shouldResetChildren = true; + } + } else { + if (nextFiber.child !== prevFiber.child) { + var nextChild = nextFiber.child; + var prevChildAtSameIndex = prevFiber.child; + while (nextChild) { + if (nextChild.alternate) { + var prevChild = nextChild.alternate; + if (updateFiberRecursively(nextChild, prevChild, shouldIncludeInTree ? nextFiber : parentFiber, traceNearestHostComponentUpdate)) { + shouldResetChildren = true; + } + + if (prevChild !== prevChildAtSameIndex) { + shouldResetChildren = true; + } + } else { + mountFiberRecursively(nextChild, shouldIncludeInTree ? nextFiber : parentFiber, false, traceNearestHostComponentUpdate); + shouldResetChildren = true; + } + + nextChild = nextChild.sibling; + + if (!shouldResetChildren && prevChildAtSameIndex !== null) { + prevChildAtSameIndex = prevChildAtSameIndex.sibling; + } + } + + if (prevChildAtSameIndex !== null) { + shouldResetChildren = true; + } + } else { + if (traceUpdatesEnabled) { + if (traceNearestHostComponentUpdate) { + var hostFibers = findAllCurrentHostFibers(getFiberIDThrows(nextFiber)); + hostFibers.forEach(function (hostFiber) { + traceUpdatesForNodes.add(hostFiber.stateNode); + }); + } + } + } + } + if (shouldIncludeInTree) { + var isProfilingSupported = nextFiber.hasOwnProperty('treeBaseDuration'); + if (isProfilingSupported) { + recordProfilingDurations(nextFiber); + } + } + if (shouldResetChildren) { + if (shouldIncludeInTree) { + var nextChildSet = nextFiber.child; + if (nextDidTimeOut) { + var _nextFiberChild2 = nextFiber.child; + nextChildSet = _nextFiberChild2 ? _nextFiberChild2.sibling : null; + } + if (nextChildSet != null) { + recordResetChildren(nextFiber, nextChildSet); + } + + return false; + } else { + return true; + } + } else { + return false; + } + } + function cleanup() { + } + function rootSupportsProfiling(root) { + if (root.memoizedInteractions != null) { + return true; + } else if (root.current != null && root.current.hasOwnProperty('treeBaseDuration')) { + return true; + } else { + return false; + } + } + function flushInitialOperations() { + var localPendingOperationsQueue = pendingOperationsQueue; + pendingOperationsQueue = null; + if (localPendingOperationsQueue !== null && localPendingOperationsQueue.length > 0) { + localPendingOperationsQueue.forEach(function (operations) { + hook.emit('operations', operations); + }); + } else { + if (trackedPath !== null) { + mightBeOnTrackedPath = true; + } + + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); + setRootPseudoKey(currentRootID, root.current); + + if (isProfiling && rootSupportsProfiling(root)) { + currentCommitProfilingMetadata = { + changeDescriptions: recordChangeDescriptions ? new Map() : null, + durations: [], + commitTime: renderer_getCurrentTime() - profilingStartTime, + maxActualDuration: 0, + priorityLevel: null, + updaters: getUpdatersList(root), + effectDuration: null, + passiveEffectDuration: null + }; + } + mountFiberRecursively(root.current, null, false, false); + flushPendingEvents(root); + currentRootID = -1; + }); + } + } + function getUpdatersList(root) { + return root.memoizedUpdaters != null ? Array.from(root.memoizedUpdaters).filter(function (fiber) { + return getFiberIDUnsafe(fiber) !== null; + }).map(fiberToSerializedElement) : null; + } + function handleCommitFiberUnmount(fiber) { + recordUnmount(fiber, false); + } + function handlePostCommitFiberRoot(root) { + if (isProfiling && rootSupportsProfiling(root)) { + if (currentCommitProfilingMetadata !== null) { + var _getEffectDurations = Object(backend_utils["g"])(root), + effectDuration = _getEffectDurations.effectDuration, + passiveEffectDuration = _getEffectDurations.passiveEffectDuration; + currentCommitProfilingMetadata.effectDuration = effectDuration; + currentCommitProfilingMetadata.passiveEffectDuration = passiveEffectDuration; + } + } + } + function handleCommitFiberRoot(root, priorityLevel) { + var current = root.current; + var alternate = current.alternate; + + untrackFibers(); + currentRootID = getOrGenerateFiberID(current); + + if (trackedPath !== null) { + mightBeOnTrackedPath = true; + } + if (traceUpdatesEnabled) { + traceUpdatesForNodes.clear(); + } + + var isProfilingSupported = rootSupportsProfiling(root); + if (isProfiling && isProfilingSupported) { + currentCommitProfilingMetadata = { + changeDescriptions: recordChangeDescriptions ? new Map() : null, + durations: [], + commitTime: renderer_getCurrentTime() - profilingStartTime, + maxActualDuration: 0, + priorityLevel: priorityLevel == null ? null : formatPriorityLevel(priorityLevel), + updaters: getUpdatersList(root), + effectDuration: null, + passiveEffectDuration: null + }; + } + if (alternate) { + var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null; + var isMounted = current.memoizedState != null && current.memoizedState.element != null; + if (!wasMounted && isMounted) { + setRootPseudoKey(currentRootID, current); + mountFiberRecursively(current, null, false, false); + } else if (wasMounted && isMounted) { + updateFiberRecursively(current, alternate, null, false); + } else if (wasMounted && !isMounted) { + removeRootPseudoKey(currentRootID); + recordUnmount(current, false); + } + } else { + setRootPseudoKey(currentRootID, current); + mountFiberRecursively(current, null, false, false); + } + if (isProfiling && isProfilingSupported) { + if (!shouldBailoutWithPendingOperations()) { + var commitProfilingMetadata = rootToCommitProfilingMetadataMap.get(currentRootID); + if (commitProfilingMetadata != null) { + commitProfilingMetadata.push(currentCommitProfilingMetadata); + } else { + rootToCommitProfilingMetadataMap.set(currentRootID, [currentCommitProfilingMetadata]); + } + } + } + + flushPendingEvents(root); + if (traceUpdatesEnabled) { + hook.emit('traceUpdates', traceUpdatesForNodes); + } + currentRootID = -1; + } + function findAllCurrentHostFibers(id) { + var fibers = []; + var fiber = findCurrentFiberUsingSlowPathById(id); + if (!fiber) { + return fibers; + } + + var node = fiber; + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + fibers.push(node); + } else if (node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return fibers; + } + while (!node.sibling) { + if (!node.return || node.return === fiber) { + return fibers; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + + return fibers; + } + function findNativeNodesForFiberID(id) { + try { + var _fiber3 = findCurrentFiberUsingSlowPathById(id); + if (_fiber3 === null) { + return null; + } + + var isTimedOutSuspense = _fiber3.tag === SuspenseComponent && _fiber3.memoizedState !== null; + if (isTimedOutSuspense) { + var maybeFallbackFiber = _fiber3.child && _fiber3.child.sibling; + if (maybeFallbackFiber != null) { + _fiber3 = maybeFallbackFiber; + } + } + var hostFibers = findAllCurrentHostFibers(id); + return hostFibers.map(function (hostFiber) { + return hostFiber.stateNode; + }).filter(Boolean); + } catch (err) { + return null; + } + } + function getDisplayNameForFiberID(id) { + var fiber = idToArbitraryFiberMap.get(id); + return fiber != null ? getDisplayNameForFiber(fiber) : null; + } + function getFiberIDForNative(hostInstance) { + var findNearestUnfilteredAncestor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var fiber = renderer.findFiberByHostInstance(hostInstance); + if (fiber != null) { + if (findNearestUnfilteredAncestor) { + while (fiber !== null && shouldFilterFiber(fiber)) { + fiber = fiber.return; + } + } + return getFiberIDThrows(fiber); + } + return null; + } + + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error('Unable to find node on an unmounted component.'); + } + } + + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + var nextNode = node; + do { + node = nextNode; + if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + nearestMounted = node.return; + } + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } + } + if (node.tag === HostRoot) { + return nearestMounted; + } + + return null; + } + + function findCurrentFiberUsingSlowPathById(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return null; + } + var alternate = fiber.alternate; + if (!alternate) { + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error('Unable to find node on an unmounted component.'); + } + if (nearestMounted !== fiber) { + return null; + } + return fiber; + } + + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + break; + } + var parentB = parentA.alternate; + if (parentB === null) { + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } + + break; + } + + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } + + throw new Error('Unable to find node on an unmounted component.'); + } + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.'); + } + } + } + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. " + 'This error is likely caused by a bug in React. Please file an issue.'); + } + } + + if (a.tag !== HostRoot) { + throw new Error('Unable to find node on an unmounted component.'); + } + if (a.stateNode.current === a) { + return fiber; + } + + return alternate; + } + + function prepareViewAttributeSource(id, path) { + if (isMostRecentlyInspectedElement(id)) { + window.$attribute = Object(utils["h"])(mostRecentlyInspectedElement, path); + } + } + function prepareViewElementSource(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var elementType = fiber.elementType, + tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case FunctionComponent: + global.$type = type; + break; + case ForwardRef: + global.$type = type.render; + break; + case MemoComponent: + case SimpleMemoComponent: + global.$type = elementType != null && elementType.type != null ? elementType.type : type; + break; + default: + global.$type = null; + break; + } + } + function fiberToSerializedElement(fiber) { + return { + displayName: getDisplayNameForFiber(fiber) || 'Anonymous', + id: getFiberIDThrows(fiber), + key: fiber.key, + type: getElementTypeForFiber(fiber) + }; + } + function getOwnersList(id) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber == null) { + return null; + } + var _debugOwner = fiber._debugOwner; + var owners = [fiberToSerializedElement(fiber)]; + if (_debugOwner) { + var owner = _debugOwner; + while (owner !== null) { + owners.unshift(fiberToSerializedElement(owner)); + owner = owner._debugOwner || null; + } + } + return owners; + } + + function getInstanceAndStyle(id) { + var instance = null; + var style = null; + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + instance = fiber.stateNode; + if (fiber.memoizedProps !== null) { + style = fiber.memoizedProps.style; + } + } + return { + instance: instance, + style: style + }; + } + function isErrorBoundary(fiber) { + var tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + var instance = fiber.stateNode; + return typeof type.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function'; + default: + return false; + } + } + function getNearestErrorBoundaryID(fiber) { + var parent = fiber.return; + while (parent !== null) { + if (isErrorBoundary(parent)) { + return getFiberIDUnsafe(parent); + } + parent = parent.return; + } + return null; + } + function inspectElementRaw(id) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber == null) { + return null; + } + var _debugOwner = fiber._debugOwner, + _debugSource = fiber._debugSource, + stateNode = fiber.stateNode, + key = fiber.key, + memoizedProps = fiber.memoizedProps, + memoizedState = fiber.memoizedState, + dependencies = fiber.dependencies, + tag = fiber.tag, + type = fiber.type; + var elementType = getElementTypeForFiber(fiber); + var usesHooks = (tag === FunctionComponent || tag === SimpleMemoComponent || tag === ForwardRef) && (!!memoizedState || !!dependencies); + + var showState = !usesHooks && tag !== CacheComponent; + var typeSymbol = getTypeSymbol(type); + var canViewSource = false; + var context = null; + if (tag === ClassComponent || tag === FunctionComponent || tag === IncompleteClassComponent || tag === IndeterminateComponent || tag === MemoComponent || tag === ForwardRef || tag === SimpleMemoComponent) { + canViewSource = true; + if (stateNode && stateNode.context != null) { + var shouldHideContext = elementType === types["e"] && !(type.contextTypes || type.contextType); + if (!shouldHideContext) { + context = stateNode.context; + } + } + } else if (typeSymbol === ReactSymbols["c"] || typeSymbol === ReactSymbols["d"]) { + var consumerResolvedContext = type._context || type; + + context = consumerResolvedContext._currentValue || null; + + var _current = fiber.return; + while (_current !== null) { + var currentType = _current.type; + var currentTypeSymbol = getTypeSymbol(currentType); + if (currentTypeSymbol === ReactSymbols["n"] || currentTypeSymbol === ReactSymbols["o"]) { + var providerResolvedContext = currentType._context || currentType.context; + if (providerResolvedContext === consumerResolvedContext) { + context = _current.memoizedProps.value; + break; + } + } + _current = _current.return; + } + } + var hasLegacyContext = false; + if (context !== null) { + hasLegacyContext = !!type.contextTypes; + + context = { + value: context + }; + } + var owners = null; + if (_debugOwner) { + owners = []; + var owner = _debugOwner; + while (owner !== null) { + owners.push(fiberToSerializedElement(owner)); + owner = owner._debugOwner || null; + } + } + var isTimedOutSuspense = tag === SuspenseComponent && memoizedState !== null; + var hooks = null; + if (usesHooks) { + var originalConsoleMethods = {}; + + for (var method in console) { + try { + originalConsoleMethods[method] = console[method]; + + console[method] = function () {}; + } catch (error) {} + } + try { + hooks = Object(react_debug_tools["inspectHooksOfFiber"])(fiber, renderer.currentDispatcherRef, true); + } finally { + for (var _method in originalConsoleMethods) { + try { + console[_method] = originalConsoleMethods[_method]; + } catch (error) {} + } + } + } + var rootType = null; + var current = fiber; + while (current.return !== null) { + current = current.return; + } + var fiberRoot = current.stateNode; + if (fiberRoot != null && fiberRoot._debugRootType !== null) { + rootType = fiberRoot._debugRootType; + } + var errors = fiberIDToErrorsMap.get(id) || new Map(); + var warnings = fiberIDToWarningsMap.get(id) || new Map(); + var isErrored = (fiber.flags & DidCapture) !== NoFlags || forceErrorForFiberIDs.get(id) === true; + var targetErrorBoundaryID; + if (isErrorBoundary(fiber)) { + targetErrorBoundaryID = isErrored ? id : getNearestErrorBoundaryID(fiber); + } else { + targetErrorBoundaryID = getNearestErrorBoundaryID(fiber); + } + var plugins = { + stylex: null + }; + if (DevToolsFeatureFlags_core_oss["c"]) { + if (memoizedProps.hasOwnProperty('xstyle')) { + plugins.stylex = getStyleXData(memoizedProps.xstyle); + } + } + return { + id: id, + canEditHooks: typeof overrideHookState === 'function', + canEditFunctionProps: typeof overrideProps === 'function', + canEditHooksAndDeletePaths: typeof overrideHookStateDeletePath === 'function', + canEditHooksAndRenamePaths: typeof overrideHookStateRenamePath === 'function', + canEditFunctionPropsDeletePaths: typeof overridePropsDeletePath === 'function', + canEditFunctionPropsRenamePaths: typeof overridePropsRenamePath === 'function', + canToggleError: supportsTogglingError && targetErrorBoundaryID != null, + isErrored: isErrored, + targetErrorBoundaryID: targetErrorBoundaryID, + canToggleSuspense: supportsTogglingSuspense && ( + !isTimedOutSuspense || + forceFallbackForSuspenseIDs.has(id)), + canViewSource: canViewSource, + hasLegacyContext: hasLegacyContext, + key: key != null ? key : null, + displayName: getDisplayNameForFiber(fiber), + type: elementType, + context: context, + hooks: hooks, + props: memoizedProps, + state: showState ? memoizedState : null, + errors: Array.from(errors.entries()), + warnings: Array.from(warnings.entries()), + owners: owners, + source: _debugSource || null, + rootType: rootType, + rendererPackageName: renderer.rendererPackageName, + rendererVersion: renderer.version, + plugins: plugins + }; + } + var mostRecentlyInspectedElement = null; + var hasElementUpdatedSinceLastInspected = false; + var currentlyInspectedPaths = {}; + function isMostRecentlyInspectedElement(id) { + return mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id; + } + function isMostRecentlyInspectedElementCurrent(id) { + return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected; + } + + function mergeInspectedPaths(path) { + var current = currentlyInspectedPaths; + path.forEach(function (key) { + if (!current[key]) { + current[key] = {}; + } + current = current[key]; + }); + } + function createIsPathAllowed(key, secondaryCategory) { + return function isPathAllowed(path) { + switch (secondaryCategory) { + case 'hooks': + if (path.length === 1) { + return true; + } + if (path[path.length - 2] === 'hookSource' && path[path.length - 1] === 'fileName') { + return true; + } + if (path[path.length - 1] === 'subHooks' || path[path.length - 2] === 'subHooks') { + return true; + } + break; + default: + break; + } + var current = key === null ? currentlyInspectedPaths : currentlyInspectedPaths[key]; + if (!current) { + return false; + } + for (var i = 0; i < path.length; i++) { + current = current[path[i]]; + if (!current) { + return false; + } + } + return true; + }; + } + function updateSelectedElement(inspectedElement) { + var hooks = inspectedElement.hooks, + id = inspectedElement.id, + props = inspectedElement.props; + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var elementType = fiber.elementType, + stateNode = fiber.stateNode, + tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + global.$r = stateNode; + break; + case FunctionComponent: + global.$r = { + hooks: hooks, + props: props, + type: type + }; + break; + case ForwardRef: + global.$r = { + hooks: hooks, + props: props, + type: type.render + }; + break; + case MemoComponent: + case SimpleMemoComponent: + global.$r = { + hooks: hooks, + props: props, + type: elementType != null && elementType.type != null ? elementType.type : type + }; + break; + default: + global.$r = null; + break; + } + } + function storeAsGlobal(id, path, count) { + if (isMostRecentlyInspectedElement(id)) { + var value = Object(utils["h"])(mostRecentlyInspectedElement, path); + var key = "$reactTemp".concat(count); + window[key] = value; + console.log(key); + console.log(value); + } + } + function copyElementPath(id, path) { + if (isMostRecentlyInspectedElement(id)) { + Object(backend_utils["b"])(Object(utils["h"])(mostRecentlyInspectedElement, path)); + } + } + function inspectElement(requestID, id, path, forceFullData) { + if (path !== null) { + mergeInspectedPaths(path); + } + if (isMostRecentlyInspectedElement(id) && !forceFullData) { + if (!hasElementUpdatedSinceLastInspected) { + if (path !== null) { + var secondaryCategory = null; + if (path[0] === 'hooks') { + secondaryCategory = 'hooks'; + } + + return { + id: id, + responseID: requestID, + type: 'hydrated-path', + path: path, + value: Object(backend_utils["a"])(Object(utils["h"])(mostRecentlyInspectedElement, path), createIsPathAllowed(null, secondaryCategory), path) + }; + } else { + return { + id: id, + responseID: requestID, + type: 'no-change' + }; + } + } + } else { + currentlyInspectedPaths = {}; + } + hasElementUpdatedSinceLastInspected = false; + try { + mostRecentlyInspectedElement = inspectElementRaw(id); + } catch (error) { + console.error('Error inspecting element.\n\n', error); + return { + type: 'error', + id: id, + responseID: requestID, + message: error.message, + stack: error.stack + }; + } + if (mostRecentlyInspectedElement === null) { + return { + id: id, + responseID: requestID, + type: 'not-found' + }; + } + + updateSelectedElement(mostRecentlyInspectedElement); + + var cleanedInspectedElement = _objectSpread({}, mostRecentlyInspectedElement); + cleanedInspectedElement.context = Object(backend_utils["a"])(cleanedInspectedElement.context, createIsPathAllowed('context', null)); + cleanedInspectedElement.hooks = Object(backend_utils["a"])(cleanedInspectedElement.hooks, createIsPathAllowed('hooks', 'hooks')); + cleanedInspectedElement.props = Object(backend_utils["a"])(cleanedInspectedElement.props, createIsPathAllowed('props', null)); + cleanedInspectedElement.state = Object(backend_utils["a"])(cleanedInspectedElement.state, createIsPathAllowed('state', null)); + return { + id: id, + responseID: requestID, + type: 'full-data', + value: cleanedInspectedElement + }; + } + function logElementToConsole(id) { + var result = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id); + if (result === null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var supportsGroup = typeof console.groupCollapsed === 'function'; + if (supportsGroup) { + console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), + 'color: var(--dom-tag-name-color); font-weight: normal;'); + } + if (result.props !== null) { + console.log('Props:', result.props); + } + if (result.state !== null) { + console.log('State:', result.state); + } + if (result.hooks !== null) { + console.log('Hooks:', result.hooks); + } + var nativeNodes = findNativeNodesForFiberID(id); + if (nativeNodes !== null) { + console.log('Nodes:', nativeNodes); + } + if (result.source !== null) { + console.log('Location:', result.source); + } + if (window.chrome || /firefox/i.test(navigator.userAgent)) { + console.log('Right-click any value to save it as a global variable for further inspection.'); + } + if (supportsGroup) { + console.groupEnd(); + } + } + function deletePath(type, id, hookID, path) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + path = path.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (path.length === 0) { + } else { + Object(utils["a"])(instance.context, path); + } + instance.forceUpdate(); + break; + case FunctionComponent: + break; + } + break; + case 'hooks': + if (typeof overrideHookStateDeletePath === 'function') { + overrideHookStateDeletePath(fiber, hookID, path); + } + break; + case 'props': + if (instance === null) { + if (typeof overridePropsDeletePath === 'function') { + overridePropsDeletePath(fiber, path); + } + } else { + fiber.pendingProps = Object(backend_utils["c"])(instance.props, path); + instance.forceUpdate(); + } + break; + case 'state': + Object(utils["a"])(instance.state, path); + instance.forceUpdate(); + break; + } + } + } + function renamePath(type, id, hookID, oldPath, newPath) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + oldPath = oldPath.slice(1); + newPath = newPath.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (oldPath.length === 0) { + } else { + Object(utils["k"])(instance.context, oldPath, newPath); + } + instance.forceUpdate(); + break; + case FunctionComponent: + break; + } + break; + case 'hooks': + if (typeof overrideHookStateRenamePath === 'function') { + overrideHookStateRenamePath(fiber, hookID, oldPath, newPath); + } + break; + case 'props': + if (instance === null) { + if (typeof overridePropsRenamePath === 'function') { + overridePropsRenamePath(fiber, oldPath, newPath); + } + } else { + fiber.pendingProps = Object(backend_utils["d"])(instance.props, oldPath, newPath); + instance.forceUpdate(); + } + break; + case 'state': + Object(utils["k"])(instance.state, oldPath, newPath); + instance.forceUpdate(); + break; + } + } + } + function overrideValueAtPath(type, id, hookID, path, value) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + path = path.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (path.length === 0) { + instance.context = value; + } else { + Object(utils["l"])(instance.context, path, value); + } + instance.forceUpdate(); + break; + case FunctionComponent: + break; + } + break; + case 'hooks': + if (typeof overrideHookState === 'function') { + overrideHookState(fiber, hookID, path, value); + } + break; + case 'props': + switch (fiber.tag) { + case ClassComponent: + fiber.pendingProps = Object(backend_utils["e"])(instance.props, path, value); + instance.forceUpdate(); + break; + default: + if (typeof overrideProps === 'function') { + overrideProps(fiber, path, value); + } + break; + } + break; + case 'state': + switch (fiber.tag) { + case ClassComponent: + Object(utils["l"])(instance.state, path, value); + instance.forceUpdate(); + break; + } + break; + } + } + } + var currentCommitProfilingMetadata = null; + var displayNamesByRootID = null; + var idToContextsMap = null; + var initialTreeBaseDurationsMap = null; + var initialIDToRootMap = null; + var isProfiling = false; + var profilingStartTime = 0; + var recordChangeDescriptions = false; + var rootToCommitProfilingMetadataMap = null; + function getProfilingData() { + var dataForRoots = []; + if (rootToCommitProfilingMetadataMap === null) { + throw Error('getProfilingData() called before any profiling data was recorded'); + } + rootToCommitProfilingMetadataMap.forEach(function (commitProfilingMetadata, rootID) { + var commitData = []; + var initialTreeBaseDurations = []; + var displayName = displayNamesByRootID !== null && displayNamesByRootID.get(rootID) || 'Unknown'; + if (initialTreeBaseDurationsMap != null) { + initialTreeBaseDurationsMap.forEach(function (treeBaseDuration, id) { + if (initialIDToRootMap != null && initialIDToRootMap.get(id) === rootID) { + initialTreeBaseDurations.push([id, treeBaseDuration]); + } + }); + } + commitProfilingMetadata.forEach(function (commitProfilingData, commitIndex) { + var changeDescriptions = commitProfilingData.changeDescriptions, + durations = commitProfilingData.durations, + effectDuration = commitProfilingData.effectDuration, + maxActualDuration = commitProfilingData.maxActualDuration, + passiveEffectDuration = commitProfilingData.passiveEffectDuration, + priorityLevel = commitProfilingData.priorityLevel, + commitTime = commitProfilingData.commitTime, + updaters = commitProfilingData.updaters; + var fiberActualDurations = []; + var fiberSelfDurations = []; + for (var i = 0; i < durations.length; i += 3) { + var fiberID = durations[i]; + fiberActualDurations.push([fiberID, durations[i + 1]]); + fiberSelfDurations.push([fiberID, durations[i + 2]]); + } + commitData.push({ + changeDescriptions: changeDescriptions !== null ? Array.from(changeDescriptions.entries()) : null, + duration: maxActualDuration, + effectDuration: effectDuration, + fiberActualDurations: fiberActualDurations, + fiberSelfDurations: fiberSelfDurations, + passiveEffectDuration: passiveEffectDuration, + priorityLevel: priorityLevel, + timestamp: commitTime, + updaters: updaters + }); + }); + dataForRoots.push({ + commitData: commitData, + displayName: displayName, + initialTreeBaseDurations: initialTreeBaseDurations, + rootID: rootID + }); + }); + var timelineData = null; + if (typeof getTimelineData === 'function') { + var currentTimelineData = getTimelineData(); + if (currentTimelineData) { + var batchUIDToMeasuresMap = currentTimelineData.batchUIDToMeasuresMap, + internalModuleSourceToRanges = currentTimelineData.internalModuleSourceToRanges, + laneToLabelMap = currentTimelineData.laneToLabelMap, + laneToReactMeasureMap = currentTimelineData.laneToReactMeasureMap, + rest = _objectWithoutProperties(currentTimelineData, ["batchUIDToMeasuresMap", "internalModuleSourceToRanges", "laneToLabelMap", "laneToReactMeasureMap"]); + timelineData = _objectSpread(_objectSpread({}, rest), {}, { + batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()), + internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()), + laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()), + laneToReactMeasureKeyValueArray: Array.from(laneToReactMeasureMap.entries()) + }); + } + } + return { + dataForRoots: dataForRoots, + rendererID: rendererID, + timelineData: timelineData + }; + } + function startProfiling(shouldRecordChangeDescriptions) { + if (isProfiling) { + return; + } + recordChangeDescriptions = shouldRecordChangeDescriptions; + + displayNamesByRootID = new Map(); + initialTreeBaseDurationsMap = new Map(idToTreeBaseDurationMap); + initialIDToRootMap = new Map(idToRootMap); + idToContextsMap = new Map(); + hook.getFiberRoots(rendererID).forEach(function (root) { + var rootID = getFiberIDThrows(root.current); + displayNamesByRootID.set(rootID, getDisplayNameForRoot(root.current)); + if (shouldRecordChangeDescriptions) { + crawlToInitializeContextsMap(root.current); + } + }); + isProfiling = true; + profilingStartTime = renderer_getCurrentTime(); + rootToCommitProfilingMetadataMap = new Map(); + if (toggleProfilingStatus !== null) { + toggleProfilingStatus(true); + } + } + function stopProfiling() { + isProfiling = false; + recordChangeDescriptions = false; + if (toggleProfilingStatus !== null) { + toggleProfilingStatus(false); + } + } + + if (Object(storage["c"])(constants["k"]) === 'true') { + startProfiling(Object(storage["c"])(constants["j"]) === 'true'); + } + + function shouldErrorFiberAlwaysNull() { + return null; + } + + var forceErrorForFiberIDs = new Map(); + function shouldErrorFiberAccordingToMap(fiber) { + if (typeof setErrorHandler !== 'function') { + throw new Error('Expected overrideError() to not get called for earlier React versions.'); + } + var id = getFiberIDUnsafe(fiber); + if (id === null) { + return null; + } + var status = null; + if (forceErrorForFiberIDs.has(id)) { + status = forceErrorForFiberIDs.get(id); + if (status === false) { + forceErrorForFiberIDs.delete(id); + if (forceErrorForFiberIDs.size === 0) { + setErrorHandler(shouldErrorFiberAlwaysNull); + } + } + } + return status; + } + function overrideError(id, forceError) { + if (typeof setErrorHandler !== 'function' || typeof scheduleUpdate !== 'function') { + throw new Error('Expected overrideError() to not get called for earlier React versions.'); + } + forceErrorForFiberIDs.set(id, forceError); + if (forceErrorForFiberIDs.size === 1) { + setErrorHandler(shouldErrorFiberAccordingToMap); + } + var fiber = idToArbitraryFiberMap.get(id); + if (fiber != null) { + scheduleUpdate(fiber); + } + } + function shouldSuspendFiberAlwaysFalse() { + return false; + } + var forceFallbackForSuspenseIDs = new Set(); + function shouldSuspendFiberAccordingToSet(fiber) { + var maybeID = getFiberIDUnsafe(fiber); + return maybeID !== null && forceFallbackForSuspenseIDs.has(maybeID); + } + function overrideSuspense(id, forceFallback) { + if (typeof setSuspenseHandler !== 'function' || typeof scheduleUpdate !== 'function') { + throw new Error('Expected overrideSuspense() to not get called for earlier React versions.'); + } + if (forceFallback) { + forceFallbackForSuspenseIDs.add(id); + if (forceFallbackForSuspenseIDs.size === 1) { + setSuspenseHandler(shouldSuspendFiberAccordingToSet); + } + } else { + forceFallbackForSuspenseIDs.delete(id); + if (forceFallbackForSuspenseIDs.size === 0) { + setSuspenseHandler(shouldSuspendFiberAlwaysFalse); + } + } + var fiber = idToArbitraryFiberMap.get(id); + if (fiber != null) { + scheduleUpdate(fiber); + } + } + + var trackedPath = null; + var trackedPathMatchFiber = null; + var trackedPathMatchDepth = -1; + var mightBeOnTrackedPath = false; + function setTrackedPath(path) { + if (path === null) { + trackedPathMatchFiber = null; + trackedPathMatchDepth = -1; + mightBeOnTrackedPath = false; + } + trackedPath = path; + } + + function updateTrackedPathStateBeforeMount(fiber) { + if (trackedPath === null || !mightBeOnTrackedPath) { + return false; + } + var returnFiber = fiber.return; + var returnAlternate = returnFiber !== null ? returnFiber.alternate : null; + + if (trackedPathMatchFiber === returnFiber || trackedPathMatchFiber === returnAlternate && returnAlternate !== null) { + var actualFrame = getPathFrame(fiber); + var expectedFrame = trackedPath[trackedPathMatchDepth + 1]; + if (expectedFrame === undefined) { + throw new Error('Expected to see a frame at the next depth.'); + } + if (actualFrame.index === expectedFrame.index && actualFrame.key === expectedFrame.key && actualFrame.displayName === expectedFrame.displayName) { + trackedPathMatchFiber = fiber; + trackedPathMatchDepth++; + + if (trackedPathMatchDepth === trackedPath.length - 1) { + mightBeOnTrackedPath = false; + } else { + mightBeOnTrackedPath = true; + } + + return false; + } + } + + mightBeOnTrackedPath = false; + + return true; + } + function updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath) { + mightBeOnTrackedPath = mightSiblingsBeOnTrackedPath; + } + + var rootPseudoKeys = new Map(); + var rootDisplayNameCounter = new Map(); + function setRootPseudoKey(id, fiber) { + var name = getDisplayNameForRoot(fiber); + var counter = rootDisplayNameCounter.get(name) || 0; + rootDisplayNameCounter.set(name, counter + 1); + var pseudoKey = "".concat(name, ":").concat(counter); + rootPseudoKeys.set(id, pseudoKey); + } + function removeRootPseudoKey(id) { + var pseudoKey = rootPseudoKeys.get(id); + if (pseudoKey === undefined) { + throw new Error('Expected root pseudo key to be known.'); + } + var name = pseudoKey.substring(0, pseudoKey.lastIndexOf(':')); + var counter = rootDisplayNameCounter.get(name); + if (counter === undefined) { + throw new Error('Expected counter to be known.'); + } + if (counter > 1) { + rootDisplayNameCounter.set(name, counter - 1); + } else { + rootDisplayNameCounter.delete(name); + } + rootPseudoKeys.delete(id); + } + function getDisplayNameForRoot(fiber) { + var preferredDisplayName = null; + var fallbackDisplayName = null; + var child = fiber.child; + + for (var i = 0; i < 3; i++) { + if (child === null) { + break; + } + var displayName = getDisplayNameForFiber(child); + if (displayName !== null) { + if (typeof child.type === 'function') { + preferredDisplayName = displayName; + } else if (fallbackDisplayName === null) { + fallbackDisplayName = displayName; + } + } + if (preferredDisplayName !== null) { + break; + } + child = child.child; + } + return preferredDisplayName || fallbackDisplayName || 'Anonymous'; + } + function getPathFrame(fiber) { + var key = fiber.key; + var displayName = getDisplayNameForFiber(fiber); + var index = fiber.index; + switch (fiber.tag) { + case HostRoot: + var id = getFiberIDThrows(fiber); + var pseudoKey = rootPseudoKeys.get(id); + if (pseudoKey === undefined) { + throw new Error('Expected mounted root to have known pseudo key.'); + } + displayName = pseudoKey; + break; + case HostComponent: + displayName = fiber.type; + break; + default: + break; + } + return { + displayName: displayName, + key: key, + index: index + }; + } + + function getPathForElement(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + return null; + } + var keyPath = []; + while (fiber !== null) { + keyPath.push(getPathFrame(fiber)); + fiber = fiber.return; + } + keyPath.reverse(); + return keyPath; + } + function getBestMatchForTrackedPath() { + if (trackedPath === null) { + return null; + } + if (trackedPathMatchFiber === null) { + return null; + } + + var fiber = trackedPathMatchFiber; + while (fiber !== null && shouldFilterFiber(fiber)) { + fiber = fiber.return; + } + if (fiber === null) { + return null; + } + return { + id: getFiberIDThrows(fiber), + isFullMatch: trackedPathMatchDepth === trackedPath.length - 1 + }; + } + var formatPriorityLevel = function formatPriorityLevel(priorityLevel) { + if (priorityLevel == null) { + return 'Unknown'; + } + switch (priorityLevel) { + case ImmediatePriority: + return 'Immediate'; + case UserBlockingPriority: + return 'User-Blocking'; + case NormalPriority: + return 'Normal'; + case LowPriority: + return 'Low'; + case IdlePriority: + return 'Idle'; + case NoPriority: + default: + return 'Unknown'; + } + }; + function setTraceUpdatesEnabled(isEnabled) { + traceUpdatesEnabled = isEnabled; + } + return { + cleanup: cleanup, + clearErrorsAndWarnings: clearErrorsAndWarnings, + clearErrorsForFiberID: clearErrorsForFiberID, + clearWarningsForFiberID: clearWarningsForFiberID, + copyElementPath: copyElementPath, + deletePath: deletePath, + findNativeNodesForFiberID: findNativeNodesForFiberID, + flushInitialOperations: flushInitialOperations, + getBestMatchForTrackedPath: getBestMatchForTrackedPath, + getDisplayNameForFiberID: getDisplayNameForFiberID, + getFiberIDForNative: getFiberIDForNative, + getInstanceAndStyle: getInstanceAndStyle, + getOwnersList: getOwnersList, + getPathForElement: getPathForElement, + getProfilingData: getProfilingData, + handleCommitFiberRoot: handleCommitFiberRoot, + handleCommitFiberUnmount: handleCommitFiberUnmount, + handlePostCommitFiberRoot: handlePostCommitFiberRoot, + inspectElement: inspectElement, + logElementToConsole: logElementToConsole, + patchConsoleForStrictMode: backend_console["b"], + prepareViewAttributeSource: prepareViewAttributeSource, + prepareViewElementSource: prepareViewElementSource, + overrideError: overrideError, + overrideSuspense: overrideSuspense, + overrideValueAtPath: overrideValueAtPath, + renamePath: renamePath, + renderer: renderer, + setTraceUpdatesEnabled: setTraceUpdatesEnabled, + setTrackedPath: setTrackedPath, + startProfiling: startProfiling, + stopProfiling: stopProfiling, + storeAsGlobal: storeAsGlobal, + unpatchConsoleForStrictMode: backend_console["d"], + updateComponentFilters: updateComponentFilters + }; + } + + }, + function (module, exports) { + var process = module.exports = {}; + + var cachedSetTimeout; + var cachedClearTimeout; + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); + } + function defaultClearTimeout() { + throw new Error('clearTimeout has not been defined'); + } + (function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + })(); + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + return setTimeout(fun, 0); + } + + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + return cachedSetTimeout(fun, 0); + } catch (e) { + try { + return cachedSetTimeout.call(null, fun, 0); + } catch (e) { + return cachedSetTimeout.call(this, fun, 0); + } + } + } + function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + return clearTimeout(marker); + } + + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + return cachedClearTimeout(marker); + } catch (e) { + try { + return cachedClearTimeout.call(null, marker); + } catch (e) { + return cachedClearTimeout.call(this, marker); + } + } + } + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = -1; + function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } + } + function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + var len = queue.length; + while (len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); + } + process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } + }; + + function Item(fun, array) { + this.fun = fun; + this.array = array; + } + Item.prototype.run = function () { + this.fun.apply(null, this.array); + }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; + + process.versions = {}; + function noop() {} + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + process.listeners = function (name) { + return []; + }; + process.binding = function (name) { + throw new Error('process.binding is not supported'); + }; + process.cwd = function () { + return '/'; + }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }; + process.umask = function () { + return 0; + }; + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return REACT_SUSPENSE_LIST_TYPE; + }); + __webpack_require__.d(__webpack_exports__, "b", function () { + return REACT_TRACING_MARKER_TYPE; + }); + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + var REACT_PORTAL_TYPE = Symbol.for('react.portal'); + var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); + var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); + var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); + var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); + var REACT_CONTEXT_TYPE = Symbol.for('react.context'); + var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); + var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); + var REACT_MEMO_TYPE = Symbol.for('react.memo'); + var REACT_LAZY_TYPE = Symbol.for('react.lazy'); + var REACT_SCOPE_TYPE = Symbol.for('react.scope'); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode'); + var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden'); + var REACT_CACHE_TYPE = Symbol.for('react.cache'); + var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker'); + var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value'); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || _typeof(maybeIterable) !== 'object') { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + return null; + } + + }, + function (module, exports, __webpack_require__) { + (function (setImmediate) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + (function (name, definition) { + if (true) { + module.exports = definition(); + } else {} + })("clipboard", function () { + if (typeof document === 'undefined' || !document.addEventListener) { + return null; + } + var clipboard = {}; + clipboard.copy = function () { + var _intercept = false; + var _data = null; + + var _bogusSelection = false; + function cleanup() { + _intercept = false; + _data = null; + if (_bogusSelection) { + window.getSelection().removeAllRanges(); + } + _bogusSelection = false; + } + document.addEventListener("copy", function (e) { + if (_intercept) { + for (var key in _data) { + e.clipboardData.setData(key, _data[key]); + } + e.preventDefault(); + } + }); + + function bogusSelect() { + var sel = document.getSelection(); + + if (!document.queryCommandEnabled("copy") && sel.isCollapsed) { + var range = document.createRange(); + range.selectNodeContents(document.body); + sel.removeAllRanges(); + sel.addRange(range); + _bogusSelection = true; + } + } + ; + return function (data) { + return new Promise(function (resolve, reject) { + _intercept = true; + if (typeof data === "string") { + _data = { + "text/plain": data + }; + } else if (data instanceof Node) { + _data = { + "text/html": new XMLSerializer().serializeToString(data) + }; + } else if (data instanceof Object) { + _data = data; + } else { + reject("Invalid data type. Must be string, DOM node, or an object mapping MIME types to strings."); + } + function triggerCopy(tryBogusSelect) { + try { + if (document.execCommand("copy")) { + cleanup(); + resolve(); + } else { + if (!tryBogusSelect) { + bogusSelect(); + triggerCopy(true); + } else { + cleanup(); + throw new Error("Unable to copy. Perhaps it's not available in your browser?"); + } + } + } catch (e) { + cleanup(); + reject(e); + } + } + triggerCopy(false); + }); + }; + }(); + clipboard.paste = function () { + var _intercept = false; + var _resolve; + var _dataType; + document.addEventListener("paste", function (e) { + if (_intercept) { + _intercept = false; + e.preventDefault(); + var resolve = _resolve; + _resolve = null; + resolve(e.clipboardData.getData(_dataType)); + } + }); + return function (dataType) { + return new Promise(function (resolve, reject) { + _intercept = true; + _resolve = resolve; + _dataType = dataType || "text/plain"; + try { + if (!document.execCommand("paste")) { + _intercept = false; + reject(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")); + } + } catch (e) { + _intercept = false; + reject(new Error(e)); + } + }); + }; + }(); + + if (typeof ClipboardEvent === "undefined" && typeof window.clipboardData !== "undefined" && typeof window.clipboardData.setData !== "undefined") { + (function (a) { + function b(a, b) { + return function () { + a.apply(b, arguments); + }; + } + function c(a) { + if ("object" != _typeof(this)) throw new TypeError("Promises must be constructed via new"); + if ("function" != typeof a) throw new TypeError("not a function"); + this._state = null, this._value = null, this._deferreds = [], i(a, b(e, this), b(f, this)); + } + function d(a) { + var b = this; + return null === this._state ? void this._deferreds.push(a) : void j(function () { + var c = b._state ? a.onFulfilled : a.onRejected; + if (null === c) return void (b._state ? a.resolve : a.reject)(b._value); + var d; + try { + d = c(b._value); + } catch (e) { + return void a.reject(e); + } + a.resolve(d); + }); + } + function e(a) { + try { + if (a === this) throw new TypeError("A promise cannot be resolved with itself."); + if (a && ("object" == _typeof(a) || "function" == typeof a)) { + var c = a.then; + if ("function" == typeof c) return void i(b(c, a), b(e, this), b(f, this)); + } + this._state = !0, this._value = a, g.call(this); + } catch (d) { + f.call(this, d); + } + } + function f(a) { + this._state = !1, this._value = a, g.call(this); + } + function g() { + for (var a = 0, b = this._deferreds.length; b > a; a++) { + d.call(this, this._deferreds[a]); + } + this._deferreds = null; + } + function h(a, b, c, d) { + this.onFulfilled = "function" == typeof a ? a : null, this.onRejected = "function" == typeof b ? b : null, this.resolve = c, this.reject = d; + } + function i(a, b, c) { + var d = !1; + try { + a(function (a) { + d || (d = !0, b(a)); + }, function (a) { + d || (d = !0, c(a)); + }); + } catch (e) { + if (d) return; + d = !0, c(e); + } + } + var j = c.immediateFn || "function" == typeof setImmediate && setImmediate || function (a) { + setTimeout(a, 1); + }, + k = Array.isArray || function (a) { + return "[object Array]" === Object.prototype.toString.call(a); + }; + c.prototype["catch"] = function (a) { + return this.then(null, a); + }, c.prototype.then = function (a, b) { + var e = this; + return new c(function (c, f) { + d.call(e, new h(a, b, c, f)); + }); + }, c.all = function () { + var a = Array.prototype.slice.call(1 === arguments.length && k(arguments[0]) ? arguments[0] : arguments); + return new c(function (b, c) { + function d(f, g) { + try { + if (g && ("object" == _typeof(g) || "function" == typeof g)) { + var h = g.then; + if ("function" == typeof h) return void h.call(g, function (a) { + d(f, a); + }, c); + } + a[f] = g, 0 === --e && b(a); + } catch (i) { + c(i); + } + } + if (0 === a.length) return b([]); + for (var e = a.length, f = 0; f < a.length; f++) { + d(f, a[f]); + } + }); + }, c.resolve = function (a) { + return a && "object" == _typeof(a) && a.constructor === c ? a : new c(function (b) { + b(a); + }); + }, c.reject = function (a) { + return new c(function (b, c) { + c(a); + }); + }, c.race = function (a) { + return new c(function (b, c) { + for (var d = 0, e = a.length; e > d; d++) { + a[d].then(b, c); + } + }); + }, true && module.exports ? module.exports = c : a.Promise || (a.Promise = c); + })(this); + clipboard.copy = function (data) { + return new Promise(function (resolve, reject) { + if (typeof data !== "string" && !("text/plain" in data)) { + throw new Error("You must provide a text/plain type."); + } + var strData = typeof data === "string" ? data : data["text/plain"]; + var copySucceeded = window.clipboardData.setData("Text", strData); + if (copySucceeded) { + resolve(); + } else { + reject(new Error("Copying was rejected.")); + } + }); + }; + clipboard.paste = function () { + return new Promise(function (resolve, reject) { + var strData = window.clipboardData.getData("Text"); + if (strData) { + resolve(strData); + } else { + reject(new Error("Pasting was rejected.")); + } + }); + }; + } + return clipboard; + }); + }).call(this, __webpack_require__(22).setImmediate); + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + var Yallist = __webpack_require__(24); + var MAX = Symbol('max'); + var LENGTH = Symbol('length'); + var LENGTH_CALCULATOR = Symbol('lengthCalculator'); + var ALLOW_STALE = Symbol('allowStale'); + var MAX_AGE = Symbol('maxAge'); + var DISPOSE = Symbol('dispose'); + var NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet'); + var LRU_LIST = Symbol('lruList'); + var CACHE = Symbol('cache'); + var UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet'); + var naiveLength = function naiveLength() { + return 1; + }; + + var LRUCache = function () { + function LRUCache(options) { + _classCallCheck(this, LRUCache); + if (typeof options === 'number') options = { + max: options + }; + if (!options) options = {}; + if (options.max && (typeof options.max !== 'number' || options.max < 0)) throw new TypeError('max must be a non-negative number'); + + var max = this[MAX] = options.max || Infinity; + var lc = options.length || naiveLength; + this[LENGTH_CALCULATOR] = typeof lc !== 'function' ? naiveLength : lc; + this[ALLOW_STALE] = options.stale || false; + if (options.maxAge && typeof options.maxAge !== 'number') throw new TypeError('maxAge must be a number'); + this[MAX_AGE] = options.maxAge || 0; + this[DISPOSE] = options.dispose; + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; + this.reset(); + } + + _createClass(LRUCache, [{ + key: "rforEach", + value: function rforEach(fn, thisp) { + thisp = thisp || this; + for (var walker = this[LRU_LIST].tail; walker !== null;) { + var prev = walker.prev; + forEachStep(this, fn, walker, thisp); + walker = prev; + } + } + }, { + key: "forEach", + value: function forEach(fn, thisp) { + thisp = thisp || this; + for (var walker = this[LRU_LIST].head; walker !== null;) { + var next = walker.next; + forEachStep(this, fn, walker, thisp); + walker = next; + } + } + }, { + key: "keys", + value: function keys() { + return this[LRU_LIST].toArray().map(function (k) { + return k.key; + }); + } + }, { + key: "values", + value: function values() { + return this[LRU_LIST].toArray().map(function (k) { + return k.value; + }); + } + }, { + key: "reset", + value: function reset() { + var _this = this; + if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { + this[LRU_LIST].forEach(function (hit) { + return _this[DISPOSE](hit.key, hit.value); + }); + } + this[CACHE] = new Map(); + + this[LRU_LIST] = new Yallist(); + + this[LENGTH] = 0; + } + }, { + key: "dump", + value: function dump() { + var _this2 = this; + return this[LRU_LIST].map(function (hit) { + return isStale(_this2, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }; + }).toArray().filter(function (h) { + return h; + }); + } + }, { + key: "dumpLru", + value: function dumpLru() { + return this[LRU_LIST]; + } + }, { + key: "set", + value: function set(key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE]; + if (maxAge && typeof maxAge !== 'number') throw new TypeError('maxAge must be a number'); + var now = maxAge ? Date.now() : 0; + var len = this[LENGTH_CALCULATOR](value, key); + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + _del(this, this[CACHE].get(key)); + return false; + } + var node = this[CACHE].get(key); + var item = node.value; + + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value); + } + item.now = now; + item.maxAge = maxAge; + item.value = value; + this[LENGTH] += len - item.length; + item.length = len; + this.get(key); + trim(this); + return true; + } + var hit = new Entry(key, value, len, now, maxAge); + + if (hit.length > this[MAX]) { + if (this[DISPOSE]) this[DISPOSE](key, value); + return false; + } + this[LENGTH] += hit.length; + this[LRU_LIST].unshift(hit); + this[CACHE].set(key, this[LRU_LIST].head); + trim(this); + return true; + } + }, { + key: "has", + value: function has(key) { + if (!this[CACHE].has(key)) return false; + var hit = this[CACHE].get(key).value; + return !isStale(this, hit); + } + }, { + key: "get", + value: function get(key) { + return _get(this, key, true); + } + }, { + key: "peek", + value: function peek(key) { + return _get(this, key, false); + } + }, { + key: "pop", + value: function pop() { + var node = this[LRU_LIST].tail; + if (!node) return null; + _del(this, node); + return node.value; + } + }, { + key: "del", + value: function del(key) { + _del(this, this[CACHE].get(key)); + } + }, { + key: "load", + value: function load(arr) { + this.reset(); + var now = Date.now(); + + for (var l = arr.length - 1; l >= 0; l--) { + var hit = arr[l]; + var expiresAt = hit.e || 0; + if (expiresAt === 0) + this.set(hit.k, hit.v);else { + var maxAge = expiresAt - now; + + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge); + } + } + } + } + }, { + key: "prune", + value: function prune() { + var _this3 = this; + this[CACHE].forEach(function (value, key) { + return _get(_this3, key, false); + }); + } + }, { + key: "max", + set: function set(mL) { + if (typeof mL !== 'number' || mL < 0) throw new TypeError('max must be a non-negative number'); + this[MAX] = mL || Infinity; + trim(this); + }, + get: function get() { + return this[MAX]; + } + }, { + key: "allowStale", + set: function set(allowStale) { + this[ALLOW_STALE] = !!allowStale; + }, + get: function get() { + return this[ALLOW_STALE]; + } + }, { + key: "maxAge", + set: function set(mA) { + if (typeof mA !== 'number') throw new TypeError('maxAge must be a non-negative number'); + this[MAX_AGE] = mA; + trim(this); + }, + get: function get() { + return this[MAX_AGE]; + } + }, { + key: "lengthCalculator", + set: function set(lC) { + var _this4 = this; + if (typeof lC !== 'function') lC = naiveLength; + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC; + this[LENGTH] = 0; + this[LRU_LIST].forEach(function (hit) { + hit.length = _this4[LENGTH_CALCULATOR](hit.value, hit.key); + _this4[LENGTH] += hit.length; + }); + } + trim(this); + }, + get: function get() { + return this[LENGTH_CALCULATOR]; + } + }, { + key: "length", + get: function get() { + return this[LENGTH]; + } + }, { + key: "itemCount", + get: function get() { + return this[LRU_LIST].length; + } + }]); + return LRUCache; + }(); + var _get = function _get(self, key, doUse) { + var node = self[CACHE].get(key); + if (node) { + var hit = node.value; + if (isStale(self, hit)) { + _del(self, node); + if (!self[ALLOW_STALE]) return undefined; + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now(); + self[LRU_LIST].unshiftNode(node); + } + } + return hit.value; + } + }; + var isStale = function isStale(self, hit) { + if (!hit || !hit.maxAge && !self[MAX_AGE]) return false; + var diff = Date.now() - hit.now; + return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE]; + }; + var trim = function trim(self) { + if (self[LENGTH] > self[MAX]) { + for (var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) { + var prev = walker.prev; + _del(self, walker); + walker = prev; + } + } + }; + var _del = function _del(self, node) { + if (node) { + var hit = node.value; + if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value); + self[LENGTH] -= hit.length; + self[CACHE].delete(hit.key); + self[LRU_LIST].removeNode(node); + } + }; + var Entry = function Entry(key, value, length, now, maxAge) { + _classCallCheck(this, Entry); + this.key = key; + this.value = value; + this.length = length; + this.now = now; + this.maxAge = maxAge || 0; + }; + var forEachStep = function forEachStep(self, fn, node, thisp) { + var hit = node.value; + if (isStale(self, hit)) { + _del(self, node); + if (!self[ALLOW_STALE]) hit = undefined; + } + if (hit) fn.call(thisp, hit.value, hit.key, self); + }; + module.exports = LRUCache; + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + if (true) { + module.exports = __webpack_require__(27); + } else {} + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.d(__webpack_exports__, "a", function () { + return getStackByFiberInDevAndProd; + }); + + var ReactSymbols = __webpack_require__(3); + + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() {} + disabledLog.__reactDisabledLog = true; + function disableLogs() { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + + Object.defineProperties(console, { + log: _objectSpread(_objectSpread({}, props), {}, { + value: prevLog + }), + info: _objectSpread(_objectSpread({}, props), {}, { + value: prevInfo + }), + warn: _objectSpread(_objectSpread({}, props), {}, { + value: prevWarn + }), + error: _objectSpread(_objectSpread({}, props), {}, { + value: prevError + }), + group: _objectSpread(_objectSpread({}, props), {}, { + value: prevGroup + }), + groupCollapsed: _objectSpread(_objectSpread({}, props), {}, { + value: prevGroupCollapsed + }), + groupEnd: _objectSpread(_objectSpread({}, props), {}, { + value: prevGroupEnd + }) + }); + } + + if (disabledDepth < 0) { + console.error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); + } + } + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + if (prefix === undefined) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ''; + } + } + + return '\n' + prefix + name; + } + var reentry = false; + var componentFrameCache; + if (false) { + var PossiblyWeakMap; + } + function describeNativeComponentFrame(fn, construct, currentDispatcherRef) { + if (!fn || reentry) { + return ''; + } + if (false) { + var frame; + } + var control; + var previousPrepareStackTrace = Error.prepareStackTrace; + + Error.prepareStackTrace = undefined; + reentry = true; + + var previousDispatcher = currentDispatcherRef.current; + currentDispatcherRef.current = null; + disableLogs(); + try { + if (construct) { + var Fake = function Fake() { + throw Error(); + }; + + Object.defineProperty(Fake.prototype, 'props', { + set: function set() { + throw Error(); + } + }); + if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === 'string') { + var sampleLines = sample.stack.split('\n'); + var controlLines = control.stack.split('\n'); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + if (false) {} + + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + Error.prepareStackTrace = previousPrepareStackTrace; + currentDispatcherRef.current = previousDispatcher; + reenableLogs(); + } + + var name = fn ? fn.displayName || fn.name : ''; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; + if (false) {} + return syntheticFrame; + } + function describeClassComponentFrame(ctor, source, ownerFn, currentDispatcherRef) { + return describeNativeComponentFrame(ctor, true, currentDispatcherRef); + } + function describeFunctionComponentFrame(fn, source, ownerFn, currentDispatcherRef) { + return describeNativeComponentFrame(fn, false, currentDispatcherRef); + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn, currentDispatcherRef) { + if (true) { + return ''; + } + if (type == null) { + return ''; + } + if (typeof type === 'function') { + return describeNativeComponentFrame(type, shouldConstruct(type), currentDispatcherRef); + } + if (typeof type === 'string') { + return describeBuiltInComponentFrame(type, source, ownerFn); + } + switch (type) { + case ReactSymbols["w"]: + case ReactSymbols["x"]: + return describeBuiltInComponentFrame('Suspense', source, ownerFn); + case ReactSymbols["u"]: + case ReactSymbols["v"]: + return describeBuiltInComponentFrame('SuspenseList', source, ownerFn); + } + if (_typeof(type) === 'object') { + switch (type.$$typeof) { + case ReactSymbols["f"]: + case ReactSymbols["g"]: + return describeFunctionComponentFrame(type.render, source, ownerFn, currentDispatcherRef); + case ReactSymbols["j"]: + case ReactSymbols["k"]: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn, currentDispatcherRef); + case ReactSymbols["h"]: + case ReactSymbols["i"]: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn, currentDispatcherRef); + } catch (x) {} + } + } + } + return ''; + } + + function describeFiber(workTagMap, workInProgress, currentDispatcherRef) { + var HostComponent = workTagMap.HostComponent, + LazyComponent = workTagMap.LazyComponent, + SuspenseComponent = workTagMap.SuspenseComponent, + SuspenseListComponent = workTagMap.SuspenseListComponent, + FunctionComponent = workTagMap.FunctionComponent, + IndeterminateComponent = workTagMap.IndeterminateComponent, + SimpleMemoComponent = workTagMap.SimpleMemoComponent, + ForwardRef = workTagMap.ForwardRef, + ClassComponent = workTagMap.ClassComponent; + var owner = false ? undefined : null; + var source = false ? undefined : null; + switch (workInProgress.tag) { + case HostComponent: + return describeBuiltInComponentFrame(workInProgress.type, source, owner); + case LazyComponent: + return describeBuiltInComponentFrame('Lazy', source, owner); + case SuspenseComponent: + return describeBuiltInComponentFrame('Suspense', source, owner); + case SuspenseListComponent: + return describeBuiltInComponentFrame('SuspenseList', source, owner); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(workInProgress.type, source, owner, currentDispatcherRef); + case ForwardRef: + return describeFunctionComponentFrame(workInProgress.type.render, source, owner, currentDispatcherRef); + case ClassComponent: + return describeClassComponentFrame(workInProgress.type, source, owner, currentDispatcherRef); + default: + return ''; + } + } + function getStackByFiberInDevAndProd(workTagMap, workInProgress, currentDispatcherRef) { + try { + var info = ''; + var node = workInProgress; + do { + info += describeFiber(workTagMap, node, currentDispatcherRef); + node = node.return; + } while (node); + return info; + } catch (x) { + return '\nError generating stack: ' + x.message + '\n' + x.stack; + } + } + + }, + function (module, exports, __webpack_require__) { + (function (global) { + var scope = typeof global !== "undefined" && global || typeof self !== "undefined" && self || window; + var apply = Function.prototype.apply; + + exports.setTimeout = function () { + return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout); + }; + exports.setInterval = function () { + return new Timeout(apply.call(setInterval, scope, arguments), clearInterval); + }; + exports.clearTimeout = exports.clearInterval = function (timeout) { + if (timeout) { + timeout.close(); + } + }; + function Timeout(id, clearFn) { + this._id = id; + this._clearFn = clearFn; + } + Timeout.prototype.unref = Timeout.prototype.ref = function () {}; + Timeout.prototype.close = function () { + this._clearFn.call(scope, this._id); + }; + + exports.enroll = function (item, msecs) { + clearTimeout(item._idleTimeoutId); + item._idleTimeout = msecs; + }; + exports.unenroll = function (item) { + clearTimeout(item._idleTimeoutId); + item._idleTimeout = -1; + }; + exports._unrefActive = exports.active = function (item) { + clearTimeout(item._idleTimeoutId); + var msecs = item._idleTimeout; + if (msecs >= 0) { + item._idleTimeoutId = setTimeout(function onTimeout() { + if (item._onTimeout) item._onTimeout(); + }, msecs); + } + }; + + __webpack_require__(23); + + exports.setImmediate = typeof self !== "undefined" && self.setImmediate || typeof global !== "undefined" && global.setImmediate || this && this.setImmediate; + exports.clearImmediate = typeof self !== "undefined" && self.clearImmediate || typeof global !== "undefined" && global.clearImmediate || this && this.clearImmediate; + }).call(this, __webpack_require__(13)); + + }, + function (module, exports, __webpack_require__) { + (function (global, process) { + (function (global, undefined) { + "use strict"; + + if (global.setImmediate) { + return; + } + var nextHandle = 1; + + var tasksByHandle = {}; + var currentlyRunningATask = false; + var doc = global.document; + var registerImmediate; + function setImmediate(callback) { + if (typeof callback !== "function") { + callback = new Function("" + callback); + } + + var args = new Array(arguments.length - 1); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i + 1]; + } + + var task = { + callback: callback, + args: args + }; + tasksByHandle[nextHandle] = task; + registerImmediate(nextHandle); + return nextHandle++; + } + function clearImmediate(handle) { + delete tasksByHandle[handle]; + } + function run(task) { + var callback = task.callback; + var args = task.args; + switch (args.length) { + case 0: + callback(); + break; + case 1: + callback(args[0]); + break; + case 2: + callback(args[0], args[1]); + break; + case 3: + callback(args[0], args[1], args[2]); + break; + default: + callback.apply(undefined, args); + break; + } + } + function runIfPresent(handle) { + if (currentlyRunningATask) { + setTimeout(runIfPresent, 0, handle); + } else { + var task = tasksByHandle[handle]; + if (task) { + currentlyRunningATask = true; + try { + run(task); + } finally { + clearImmediate(handle); + currentlyRunningATask = false; + } + } + } + } + function installNextTickImplementation() { + registerImmediate = function registerImmediate(handle) { + process.nextTick(function () { + runIfPresent(handle); + }); + }; + } + function canUsePostMessage() { + if (global.postMessage && !global.importScripts) { + var postMessageIsAsynchronous = true; + var oldOnMessage = global.onmessage; + global.onmessage = function () { + postMessageIsAsynchronous = false; + }; + global.postMessage("", "*"); + global.onmessage = oldOnMessage; + return postMessageIsAsynchronous; + } + } + function installPostMessageImplementation() { + var messagePrefix = "setImmediate$" + Math.random() + "$"; + var onGlobalMessage = function onGlobalMessage(event) { + if (event.source === global && typeof event.data === "string" && event.data.indexOf(messagePrefix) === 0) { + runIfPresent(+event.data.slice(messagePrefix.length)); + } + }; + if (global.addEventListener) { + global.addEventListener("message", onGlobalMessage, false); + } else { + global.attachEvent("onmessage", onGlobalMessage); + } + registerImmediate = function registerImmediate(handle) { + global.postMessage(messagePrefix + handle, "*"); + }; + } + function installMessageChannelImplementation() { + var channel = new MessageChannel(); + channel.port1.onmessage = function (event) { + var handle = event.data; + runIfPresent(handle); + }; + registerImmediate = function registerImmediate(handle) { + channel.port2.postMessage(handle); + }; + } + function installReadyStateChangeImplementation() { + var html = doc.documentElement; + registerImmediate = function registerImmediate(handle) { + var script = doc.createElement("script"); + script.onreadystatechange = function () { + runIfPresent(handle); + script.onreadystatechange = null; + html.removeChild(script); + script = null; + }; + html.appendChild(script); + }; + } + function installSetTimeoutImplementation() { + registerImmediate = function registerImmediate(handle) { + setTimeout(runIfPresent, 0, handle); + }; + } + + var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global); + attachTo = attachTo && attachTo.setTimeout ? attachTo : global; + + if ({}.toString.call(global.process) === "[object process]") { + installNextTickImplementation(); + } else if (canUsePostMessage()) { + installPostMessageImplementation(); + } else if (global.MessageChannel) { + installMessageChannelImplementation(); + } else if (doc && "onreadystatechange" in doc.createElement("script")) { + installReadyStateChangeImplementation(); + } else { + installSetTimeoutImplementation(); + } + attachTo.setImmediate = setImmediate; + attachTo.clearImmediate = clearImmediate; + })(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self); + }).call(this, __webpack_require__(13), __webpack_require__(16)); + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + module.exports = Yallist; + Yallist.Node = Node; + Yallist.create = Yallist; + function Yallist(list) { + var self = this; + if (!(self instanceof Yallist)) { + self = new Yallist(); + } + self.tail = null; + self.head = null; + self.length = 0; + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item); + }); + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]); + } + } + return self; + } + Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list'); + } + var next = node.next; + var prev = node.prev; + if (next) { + next.prev = prev; + } + if (prev) { + prev.next = next; + } + if (node === this.head) { + this.head = next; + } + if (node === this.tail) { + this.tail = prev; + } + node.list.length--; + node.next = null; + node.prev = null; + node.list = null; + return next; + }; + Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return; + } + if (node.list) { + node.list.removeNode(node); + } + var head = this.head; + node.list = this; + node.next = head; + if (head) { + head.prev = node; + } + this.head = node; + if (!this.tail) { + this.tail = node; + } + this.length++; + }; + Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return; + } + if (node.list) { + node.list.removeNode(node); + } + var tail = this.tail; + node.list = this; + node.prev = tail; + if (tail) { + tail.next = node; + } + this.tail = node; + if (!this.head) { + this.head = node; + } + this.length++; + }; + Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]); + } + return this.length; + }; + Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]); + } + return this.length; + }; + Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined; + } + var res = this.tail.value; + this.tail = this.tail.prev; + if (this.tail) { + this.tail.next = null; + } else { + this.head = null; + } + this.length--; + return res; + }; + Yallist.prototype.shift = function () { + if (!this.head) { + return undefined; + } + var res = this.head.value; + this.head = this.head.next; + if (this.head) { + this.head.prev = null; + } else { + this.tail = null; + } + this.length--; + return res; + }; + Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this); + walker = walker.next; + } + }; + Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this); + walker = walker.prev; + } + }; + Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + walker = walker.next; + } + if (i === n && walker !== null) { + return walker.value; + } + }; + Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + walker = walker.prev; + } + if (i === n && walker !== null) { + return walker.value; + } + }; + Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this; + var res = new Yallist(); + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)); + walker = walker.next; + } + return res; + }; + Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this; + var res = new Yallist(); + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)); + walker = walker.prev; + } + return res; + }; + Yallist.prototype.reduce = function (fn, initial) { + var acc; + var walker = this.head; + if (arguments.length > 1) { + acc = initial; + } else if (this.head) { + walker = this.head.next; + acc = this.head.value; + } else { + throw new TypeError('Reduce of empty list with no initial value'); + } + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i); + walker = walker.next; + } + return acc; + }; + Yallist.prototype.reduceReverse = function (fn, initial) { + var acc; + var walker = this.tail; + if (arguments.length > 1) { + acc = initial; + } else if (this.tail) { + walker = this.tail.prev; + acc = this.tail.value; + } else { + throw new TypeError('Reduce of empty list with no initial value'); + } + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i); + walker = walker.prev; + } + return acc; + }; + Yallist.prototype.toArray = function () { + var arr = new Array(this.length); + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value; + walker = walker.next; + } + return arr; + }; + Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length); + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value; + walker = walker.prev; + } + return arr; + }; + Yallist.prototype.slice = function (from, to) { + to = to || this.length; + if (to < 0) { + to += this.length; + } + from = from || 0; + if (from < 0) { + from += this.length; + } + var ret = new Yallist(); + if (to < from || to < 0) { + return ret; + } + if (from < 0) { + from = 0; + } + if (to > this.length) { + to = this.length; + } + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next; + } + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value); + } + return ret; + }; + Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length; + if (to < 0) { + to += this.length; + } + from = from || 0; + if (from < 0) { + from += this.length; + } + var ret = new Yallist(); + if (to < from || to < 0) { + return ret; + } + if (from < 0) { + from = 0; + } + if (to > this.length) { + to = this.length; + } + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev; + } + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value); + } + return ret; + }; + Yallist.prototype.splice = function (start, deleteCount + ) { + if (start > this.length) { + start = this.length - 1; + } + if (start < 0) { + start = this.length + start; + } + for (var i = 0, walker = this.head; walker !== null && i < start; i++) { + walker = walker.next; + } + var ret = []; + for (var i = 0; walker && i < deleteCount; i++) { + ret.push(walker.value); + walker = this.removeNode(walker); + } + if (walker === null) { + walker = this.tail; + } + if (walker !== this.head && walker !== this.tail) { + walker = walker.prev; + } + for (var i = 2; i < arguments.length; i++) { + walker = insert(this, walker, arguments[i]); + } + return ret; + }; + Yallist.prototype.reverse = function () { + var head = this.head; + var tail = this.tail; + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev; + walker.prev = walker.next; + walker.next = p; + } + this.head = tail; + this.tail = head; + return this; + }; + function insert(self, node, value) { + var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self); + if (inserted.next === null) { + self.tail = inserted; + } + if (inserted.prev === null) { + self.head = inserted; + } + self.length++; + return inserted; + } + function push(self, item) { + self.tail = new Node(item, self.tail, null, self); + if (!self.head) { + self.head = self.tail; + } + self.length++; + } + function unshift(self, item) { + self.head = new Node(item, null, self.head, self); + if (!self.tail) { + self.tail = self.head; + } + self.length++; + } + function Node(value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list); + } + this.list = list; + this.value = value; + if (prev) { + prev.next = this; + this.prev = prev; + } else { + this.prev = null; + } + if (next) { + next.prev = this; + this.next = next; + } else { + this.next = null; + } + } + try { + __webpack_require__(25)(Yallist); + } catch (er) {} + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/regenerator").mark(function _callee() { + var walker; + return _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/regenerator").wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + walker = this.head; + case 1: + if (!walker) { + _context.next = 7; + break; + } + _context.next = 4; + return walker.value; + case 4: + walker = walker.next; + _context.next = 1; + break; + case 7: + case "end": + return _context.stop(); + } + } + }, _callee, this); + }); + }; + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + /** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var b = Symbol.for("react.element"), + c = Symbol.for("react.portal"), + d = Symbol.for("react.fragment"), + e = Symbol.for("react.strict_mode"), + f = Symbol.for("react.profiler"), + g = Symbol.for("react.provider"), + h = Symbol.for("react.context"), + k = Symbol.for("react.server_context"), + l = Symbol.for("react.forward_ref"), + m = Symbol.for("react.suspense"), + n = Symbol.for("react.suspense_list"), + p = Symbol.for("react.memo"), + q = Symbol.for("react.lazy"), + t = Symbol.for("react.offscreen"), + u = Symbol.for("react.cache"), + v = Symbol.for("react.module.reference"); + function w(a) { + if ("object" === _typeof(a) && null !== a) { + var r = a.$$typeof; + switch (r) { + case b: + switch (a = a.type, a) { + case d: + case f: + case e: + case m: + case n: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case h: + case l: + case q: + case p: + case g: + return a; + default: + return r; + } + } + case c: + return r; + } + } + } + exports.ContextConsumer = h; + exports.ContextProvider = g; + exports.Element = b; + exports.ForwardRef = l; + exports.Fragment = d; + exports.Lazy = q; + exports.Memo = p; + exports.Portal = c; + exports.Profiler = f; + exports.StrictMode = e; + exports.Suspense = m; + exports.SuspenseList = n; + exports.isAsyncMode = function () { + return !1; + }; + exports.isConcurrentMode = function () { + return !1; + }; + exports.isContextConsumer = function (a) { + return w(a) === h; + }; + exports.isContextProvider = function (a) { + return w(a) === g; + }; + exports.isElement = function (a) { + return "object" === _typeof(a) && null !== a && a.$$typeof === b; + }; + exports.isForwardRef = function (a) { + return w(a) === l; + }; + exports.isFragment = function (a) { + return w(a) === d; + }; + exports.isLazy = function (a) { + return w(a) === q; + }; + exports.isMemo = function (a) { + return w(a) === p; + }; + exports.isPortal = function (a) { + return w(a) === c; + }; + exports.isProfiler = function (a) { + return w(a) === f; + }; + exports.isStrictMode = function (a) { + return w(a) === e; + }; + exports.isSuspense = function (a) { + return w(a) === m; + }; + exports.isSuspenseList = function (a) { + return w(a) === n; + }; + exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || a === u || "object" === _typeof(a) && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === v || void 0 !== a.getModuleId) ? !0 : !1; + }; + exports.typeOf = w; + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + /** + * @license React + * react-debug-tools.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var h = __webpack_require__(28), + l = __webpack_require__(30), + q = Object.assign, + w = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + x = [], + y = null; + function z() { + if (null === y) { + var a = new Map(); + try { + A.useContext({ + _currentValue: null + }), A.useState(null), A.useReducer(function (a) { + return a; + }, null), A.useRef(null), "function" === typeof A.useCacheRefresh && A.useCacheRefresh(), A.useLayoutEffect(function () {}), A.useInsertionEffect(function () {}), A.useEffect(function () {}), A.useImperativeHandle(void 0, function () { + return null; + }), A.useDebugValue(null), A.useCallback(function () {}), A.useMemo(function () { + return null; + }); + } finally { + var b = x; + x = []; + } + for (var e = 0; e < b.length; e++) { + var f = b[e]; + a.set(f.primitive, h.parse(f.stackError)); + } + y = a; + } + return y; + } + var B = null; + function C() { + var a = B; + null !== a && (B = a.next); + return a; + } + var A = { + getCacheForType: function getCacheForType() { + throw Error("Not implemented."); + }, + readContext: function readContext(a) { + return a._currentValue; + }, + useCacheRefresh: function useCacheRefresh() { + var a = C(); + x.push({ + primitive: "CacheRefresh", + stackError: Error(), + value: null !== a ? a.memoizedState : function () {} + }); + return function () {}; + }, + useCallback: function useCallback(a) { + var b = C(); + x.push({ + primitive: "Callback", + stackError: Error(), + value: null !== b ? b.memoizedState[0] : a + }); + return a; + }, + useContext: function useContext(a) { + x.push({ + primitive: "Context", + stackError: Error(), + value: a._currentValue + }); + return a._currentValue; + }, + useEffect: function useEffect(a) { + C(); + x.push({ + primitive: "Effect", + stackError: Error(), + value: a + }); + }, + useImperativeHandle: function useImperativeHandle(a) { + C(); + var b = void 0; + null !== a && "object" === _typeof(a) && (b = a.current); + x.push({ + primitive: "ImperativeHandle", + stackError: Error(), + value: b + }); + }, + useDebugValue: function useDebugValue(a, b) { + x.push({ + primitive: "DebugValue", + stackError: Error(), + value: "function" === typeof b ? b(a) : a + }); + }, + useLayoutEffect: function useLayoutEffect(a) { + C(); + x.push({ + primitive: "LayoutEffect", + stackError: Error(), + value: a + }); + }, + useInsertionEffect: function useInsertionEffect(a) { + C(); + x.push({ + primitive: "InsertionEffect", + stackError: Error(), + value: a + }); + }, + useMemo: function useMemo(a) { + var b = C(); + a = null !== b ? b.memoizedState[0] : a(); + x.push({ + primitive: "Memo", + stackError: Error(), + value: a + }); + return a; + }, + useReducer: function useReducer(a, b, e) { + a = C(); + b = null !== a ? a.memoizedState : void 0 !== e ? e(b) : b; + x.push({ + primitive: "Reducer", + stackError: Error(), + value: b + }); + return [b, function () {}]; + }, + useRef: function useRef(a) { + var b = C(); + a = null !== b ? b.memoizedState : { + current: a + }; + x.push({ + primitive: "Ref", + stackError: Error(), + value: a.current + }); + return a; + }, + useState: function useState(a) { + var b = C(); + a = null !== b ? b.memoizedState : "function" === typeof a ? a() : a; + x.push({ + primitive: "State", + stackError: Error(), + value: a + }); + return [a, function () {}]; + }, + useTransition: function useTransition() { + C(); + C(); + x.push({ + primitive: "Transition", + stackError: Error(), + value: void 0 + }); + return [!1, function () {}]; + }, + useMutableSource: function useMutableSource(a, b) { + C(); + C(); + C(); + C(); + a = b(a._source); + x.push({ + primitive: "MutableSource", + stackError: Error(), + value: a + }); + return a; + }, + useSyncExternalStore: function useSyncExternalStore(a, b) { + C(); + C(); + a = b(); + x.push({ + primitive: "SyncExternalStore", + stackError: Error(), + value: a + }); + return a; + }, + useDeferredValue: function useDeferredValue(a) { + C(); + C(); + x.push({ + primitive: "DeferredValue", + stackError: Error(), + value: a + }); + return a; + }, + useId: function useId() { + var a = C(); + a = null !== a ? a.memoizedState : ""; + x.push({ + primitive: "Id", + stackError: Error(), + value: a + }); + return a; + } + }, + D = 0; + function E(a, b, e) { + var f = b[e].source, + c = 0; + a: for (; c < a.length; c++) { + if (a[c].source === f) { + for (var m = e + 1, r = c + 1; m < b.length && r < a.length; m++, r++) { + if (a[r].source !== b[m].source) continue a; + } + return c; + } + } + return -1; + } + function F(a, b) { + if (!a) return !1; + b = "use" + b; + return a.length < b.length ? !1 : a.lastIndexOf(b) === a.length - b.length; + } + function G(a, b, e) { + for (var f = [], c = null, m = f, r = 0, t = [], v = 0; v < b.length; v++) { + var u = b[v]; + var d = a; + var k = h.parse(u.stackError); + b: { + var n = k, + p = E(n, d, D); + if (-1 !== p) d = p;else { + for (var g = 0; g < d.length && 5 > g; g++) { + if (p = E(n, d, g), -1 !== p) { + D = g; + d = p; + break b; + } + } + d = -1; + } + } + b: { + n = k; + p = z().get(u.primitive); + if (void 0 !== p) for (g = 0; g < p.length && g < n.length; g++) { + if (p[g].source !== n[g].source) { + g < n.length - 1 && F(n[g].functionName, u.primitive) && g++; + g < n.length - 1 && F(n[g].functionName, u.primitive) && g++; + n = g; + break b; + } + } + n = -1; + } + k = -1 === d || -1 === n || 2 > d - n ? null : k.slice(n, d - 1); + if (null !== k) { + d = 0; + if (null !== c) { + for (; d < k.length && d < c.length && k[k.length - d - 1].source === c[c.length - d - 1].source;) { + d++; + } + for (c = c.length - 1; c > d; c--) { + m = t.pop(); + } + } + for (c = k.length - d - 1; 1 <= c; c--) { + d = [], n = k[c], (p = k[c - 1].functionName) ? (g = p.lastIndexOf("."), -1 === g && (g = 0), "use" === p.substr(g, 3) && (g += 3), p = p.substr(g)) : p = "", p = { + id: null, + isStateEditable: !1, + name: p, + value: void 0, + subHooks: d + }, e && (p.hookSource = { + lineNumber: n.lineNumber, + columnNumber: n.columnNumber, + functionName: n.functionName, + fileName: n.fileName + }), m.push(p), t.push(m), m = d; + } + c = k; + } + d = u.primitive; + u = { + id: "Context" === d || "DebugValue" === d ? null : r++, + isStateEditable: "Reducer" === d || "State" === d, + name: d, + value: u.value, + subHooks: [] + }; + e && (d = { + lineNumber: null, + functionName: null, + fileName: null, + columnNumber: null + }, k && 1 <= k.length && (k = k[0], d.lineNumber = k.lineNumber, d.functionName = k.functionName, d.fileName = k.fileName, d.columnNumber = k.columnNumber), u.hookSource = d); + m.push(u); + } + H(f, null); + return f; + } + function H(a, b) { + for (var e = [], f = 0; f < a.length; f++) { + var c = a[f]; + "DebugValue" === c.name && 0 === c.subHooks.length ? (a.splice(f, 1), f--, e.push(c)) : H(c.subHooks, c); + } + null !== b && (1 === e.length ? b.value = e[0].value : 1 < e.length && (b.value = e.map(function (a) { + return a.value; + }))); + } + function I(a, b, e) { + var f = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1; + null == e && (e = w.ReactCurrentDispatcher); + var c = e.current; + e.current = A; + try { + var m = Error(); + a(b); + } finally { + var r = x; + x = []; + e.current = c; + } + c = h.parse(m); + return G(c, r, f); + } + function J(a) { + a.forEach(function (a, e) { + return e._currentValue = a; + }); + } + exports.inspectHooks = I; + exports.inspectHooksOfFiber = function (a, b) { + var e = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1; + null == b && (b = w.ReactCurrentDispatcher); + if (0 !== a.tag && 15 !== a.tag && 11 !== a.tag) throw Error("Unknown Fiber. Needs to be a function component to inspect hooks."); + z(); + var f = a.type, + c = a.memoizedProps; + if (f !== a.elementType && f && f.defaultProps) { + c = q({}, c); + var m = f.defaultProps; + for (r in m) { + void 0 === c[r] && (c[r] = m[r]); + } + } + B = a.memoizedState; + var r = new Map(); + try { + for (m = a; m;) { + if (10 === m.tag) { + var t = m.type._context; + r.has(t) || (r.set(t, t._currentValue), t._currentValue = m.memoizedProps.value); + } + m = m.return; + } + if (11 === a.tag) { + var v = f.render; + f = c; + var u = a.ref; + t = b; + var d = t.current; + t.current = A; + try { + var k = Error(); + v(f, u); + } finally { + var n = x; + x = []; + t.current = d; + } + var p = h.parse(k); + return G(p, n, e); + } + return I(f, c, b, e); + } finally { + B = null, J(r); + } + }; + + }, + function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + (function (root, factory) { + 'use strict'; + + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(29)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + })(this, function ErrorStackParser(StackFrame) { + 'use strict'; + + var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/; + var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m; + var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/; + return { + parse: function ErrorStackParser$$parse(error) { + if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') { + return this.parseOpera(error); + } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) { + return this.parseV8OrIE(error); + } else if (error.stack) { + return this.parseFFOrSafari(error); + } else { + throw new Error('Cannot parse given Error object'); + } + }, + extractLocation: function ErrorStackParser$$extractLocation(urlLike) { + if (urlLike.indexOf(':') === -1) { + return [urlLike]; + } + var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; + var parts = regExp.exec(urlLike.replace(/[()]/g, '')); + return [parts[1], parts[2] || undefined, parts[3] || undefined]; + }, + parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !!line.match(CHROME_IE_STACK_REGEXP); + }, this); + return filtered.map(function (line) { + if (line.indexOf('(eval ') > -1) { + line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, ''); + } + var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '('); + + var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/); + + sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine; + var tokens = sanitizedLine.split(/\s+/).slice(1); + + var locationParts = this.extractLocation(location ? location[1] : tokens.pop()); + var functionName = tokens.join(' ') || undefined; + var fileName = ['eval', ''].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0]; + return new StackFrame({ + functionName: functionName, + fileName: fileName, + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + }, this); + }, + parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !line.match(SAFARI_NATIVE_CODE_REGEXP); + }, this); + return filtered.map(function (line) { + if (line.indexOf(' > eval') > -1) { + line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1'); + } + if (line.indexOf('@') === -1 && line.indexOf(':') === -1) { + return new StackFrame({ + functionName: line + }); + } else { + var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/; + var matches = line.match(functionNameRegex); + var functionName = matches && matches[1] ? matches[1] : undefined; + var locationParts = this.extractLocation(line.replace(functionNameRegex, '')); + return new StackFrame({ + functionName: functionName, + fileName: locationParts[0], + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + } + }, this); + }, + parseOpera: function ErrorStackParser$$parseOpera(e) { + if (!e.stacktrace || e.message.indexOf('\n') > -1 && e.message.split('\n').length > e.stacktrace.split('\n').length) { + return this.parseOpera9(e); + } else if (!e.stack) { + return this.parseOpera10(e); + } else { + return this.parseOpera11(e); + } + }, + parseOpera9: function ErrorStackParser$$parseOpera9(e) { + var lineRE = /Line (\d+).*script (?:in )?(\S+)/i; + var lines = e.message.split('\n'); + var result = []; + for (var i = 2, len = lines.length; i < len; i += 2) { + var match = lineRE.exec(lines[i]); + if (match) { + result.push(new StackFrame({ + fileName: match[2], + lineNumber: match[1], + source: lines[i] + })); + } + } + return result; + }, + parseOpera10: function ErrorStackParser$$parseOpera10(e) { + var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i; + var lines = e.stacktrace.split('\n'); + var result = []; + for (var i = 0, len = lines.length; i < len; i += 2) { + var match = lineRE.exec(lines[i]); + if (match) { + result.push(new StackFrame({ + functionName: match[3] || undefined, + fileName: match[2], + lineNumber: match[1], + source: lines[i] + })); + } + } + return result; + }, + parseOpera11: function ErrorStackParser$$parseOpera11(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/); + }, this); + return filtered.map(function (line) { + var tokens = line.split('@'); + var locationParts = this.extractLocation(tokens.pop()); + var functionCall = tokens.shift() || ''; + var functionName = functionCall.replace(//, '$2').replace(/\([^)]*\)/g, '') || undefined; + var argsRaw; + if (functionCall.match(/\(([^)]*)\)/)) { + argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1'); + } + var args = argsRaw === undefined || argsRaw === '[arguments not available]' ? undefined : argsRaw.split(','); + return new StackFrame({ + functionName: functionName, + args: args, + fileName: locationParts[0], + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + }, this); + } + }; + }); + + }, + function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + (function (root, factory) { + 'use strict'; + + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + })(this, function () { + 'use strict'; + + function _isNumber(n) { + return !isNaN(parseFloat(n)) && isFinite(n); + } + function _capitalize(str) { + return str.charAt(0).toUpperCase() + str.substring(1); + } + function _getter(p) { + return function () { + return this[p]; + }; + } + var booleanProps = ['isConstructor', 'isEval', 'isNative', 'isToplevel']; + var numericProps = ['columnNumber', 'lineNumber']; + var stringProps = ['fileName', 'functionName', 'source']; + var arrayProps = ['args']; + var props = booleanProps.concat(numericProps, stringProps, arrayProps); + function StackFrame(obj) { + if (!obj) return; + for (var i = 0; i < props.length; i++) { + if (obj[props[i]] !== undefined) { + this['set' + _capitalize(props[i])](obj[props[i]]); + } + } + } + StackFrame.prototype = { + getArgs: function getArgs() { + return this.args; + }, + setArgs: function setArgs(v) { + if (Object.prototype.toString.call(v) !== '[object Array]') { + throw new TypeError('Args must be an Array'); + } + this.args = v; + }, + getEvalOrigin: function getEvalOrigin() { + return this.evalOrigin; + }, + setEvalOrigin: function setEvalOrigin(v) { + if (v instanceof StackFrame) { + this.evalOrigin = v; + } else if (v instanceof Object) { + this.evalOrigin = new StackFrame(v); + } else { + throw new TypeError('Eval Origin must be an Object or StackFrame'); + } + }, + toString: function toString() { + var fileName = this.getFileName() || ''; + var lineNumber = this.getLineNumber() || ''; + var columnNumber = this.getColumnNumber() || ''; + var functionName = this.getFunctionName() || ''; + if (this.getIsEval()) { + if (fileName) { + return '[eval] (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; + } + return '[eval]:' + lineNumber + ':' + columnNumber; + } + if (functionName) { + return functionName + ' (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; + } + return fileName + ':' + lineNumber + ':' + columnNumber; + } + }; + StackFrame.fromString = function StackFrame$$fromString(str) { + var argsStartIndex = str.indexOf('('); + var argsEndIndex = str.lastIndexOf(')'); + var functionName = str.substring(0, argsStartIndex); + var args = str.substring(argsStartIndex + 1, argsEndIndex).split(','); + var locationString = str.substring(argsEndIndex + 1); + if (locationString.indexOf('@') === 0) { + var parts = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(locationString, ''); + var fileName = parts[1]; + var lineNumber = parts[2]; + var columnNumber = parts[3]; + } + return new StackFrame({ + functionName: functionName, + args: args || undefined, + fileName: fileName, + lineNumber: lineNumber || undefined, + columnNumber: columnNumber || undefined + }); + }; + for (var i = 0; i < booleanProps.length; i++) { + StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); + StackFrame.prototype['set' + _capitalize(booleanProps[i])] = function (p) { + return function (v) { + this[p] = Boolean(v); + }; + }(booleanProps[i]); + } + for (var j = 0; j < numericProps.length; j++) { + StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); + StackFrame.prototype['set' + _capitalize(numericProps[j])] = function (p) { + return function (v) { + if (!_isNumber(v)) { + throw new TypeError(p + ' must be a Number'); + } + this[p] = Number(v); + }; + }(numericProps[j]); + } + for (var k = 0; k < stringProps.length; k++) { + StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); + StackFrame.prototype['set' + _capitalize(stringProps[k])] = function (p) { + return function (v) { + this[p] = String(v); + }; + }(stringProps[k]); + } + return StackFrame; + }); + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + if (true) { + module.exports = __webpack_require__(31); + } else {} + + }, + function (module, exports, __webpack_require__) { + "use strict"; + + /** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var l = Symbol.for("react.element"), + n = Symbol.for("react.portal"), + p = Symbol.for("react.fragment"), + q = Symbol.for("react.strict_mode"), + r = Symbol.for("react.profiler"), + t = Symbol.for("react.provider"), + u = Symbol.for("react.context"), + v = Symbol.for("react.server_context"), + w = Symbol.for("react.forward_ref"), + x = Symbol.for("react.suspense"), + y = Symbol.for("react.suspense_list"), + z = Symbol.for("react.memo"), + A = Symbol.for("react.lazy"), + B = Symbol.for("react.debug_trace_mode"), + C = Symbol.for("react.offscreen"), + aa = Symbol.for("react.cache"), + D = Symbol.for("react.default_value"), + E = Symbol.iterator; + function ba(a) { + if (null === a || "object" !== _typeof(a)) return null; + a = E && a[E] || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + var F = { + isMounted: function isMounted() { + return !1; + }, + enqueueForceUpdate: function enqueueForceUpdate() {}, + enqueueReplaceState: function enqueueReplaceState() {}, + enqueueSetState: function enqueueSetState() {} + }, + G = Object.assign, + H = {}; + function I(a, b, d) { + this.props = a; + this.context = b; + this.refs = H; + this.updater = d || F; + } + I.prototype.isReactComponent = {}; + I.prototype.setState = function (a, b) { + if ("object" !== _typeof(a) && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a, b, "setState"); + }; + I.prototype.forceUpdate = function (a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); + }; + function J() {} + J.prototype = I.prototype; + function K(a, b, d) { + this.props = a; + this.context = b; + this.refs = H; + this.updater = d || F; + } + var L = K.prototype = new J(); + L.constructor = K; + G(L, I.prototype); + L.isPureReactComponent = !0; + var M = Array.isArray, + N = Object.prototype.hasOwnProperty, + O = { + current: null + }, + P = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }; + function Q(a, b, d) { + var c, + e = {}, + k = null, + h = null; + if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) { + N.call(b, c) && !P.hasOwnProperty(c) && (e[c] = b[c]); + } + var g = arguments.length - 2; + if (1 === g) e.children = d;else if (1 < g) { + for (var f = Array(g), m = 0; m < g; m++) { + f[m] = arguments[m + 2]; + } + e.children = f; + } + if (a && a.defaultProps) for (c in g = a.defaultProps, g) { + void 0 === e[c] && (e[c] = g[c]); + } + return { + $$typeof: l, + type: a, + key: k, + ref: h, + props: e, + _owner: O.current + }; + } + function ca(a, b) { + return { + $$typeof: l, + type: a.type, + key: b, + ref: a.ref, + props: a.props, + _owner: a._owner + }; + } + function R(a) { + return "object" === _typeof(a) && null !== a && a.$$typeof === l; + } + function escape(a) { + var b = { + "=": "=0", + ":": "=2" + }; + return "$" + a.replace(/[=:]/g, function (a) { + return b[a]; + }); + } + var S = /\/+/g; + function T(a, b) { + return "object" === _typeof(a) && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); + } + function U(a, b, d, c, e) { + var k = _typeof(a); + if ("undefined" === k || "boolean" === k) a = null; + var h = !1; + if (null === a) h = !0;else switch (k) { + case "string": + case "number": + h = !0; + break; + case "object": + switch (a.$$typeof) { + case l: + case n: + h = !0; + } + } + if (h) return h = a, e = e(h), a = "" === c ? "." + T(h, 0) : c, M(e) ? (d = "", null != a && (d = a.replace(S, "$&/") + "/"), U(e, b, d, "", function (a) { + return a; + })) : null != e && (R(e) && (e = ca(e, d + (!e.key || h && h.key === e.key ? "" : ("" + e.key).replace(S, "$&/") + "/") + a)), b.push(e)), 1; + h = 0; + c = "" === c ? "." : c + ":"; + if (M(a)) for (var g = 0; g < a.length; g++) { + k = a[g]; + var f = c + T(k, g); + h += U(k, b, d, f, e); + } else if (f = ba(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) { + k = k.value, f = c + T(k, g++), h += U(k, b, d, f, e); + } else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + return h; + } + function V(a, b, d) { + if (null == a) return a; + var c = [], + e = 0; + U(a, c, "", "", function (a) { + return b.call(d, a, e++); + }); + return c; + } + function da(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then(function (b) { + if (0 === a._status || -1 === a._status) a._status = 1, a._result = b; + }, function (b) { + if (0 === a._status || -1 === a._status) a._status = 2, a._result = b; + }); + -1 === a._status && (a._status = 0, a._result = b); + } + if (1 === a._status) return a._result.default; + throw a._result; + } + var W = { + current: null + }, + X = { + transition: null + }, + Y = { + ReactCurrentDispatcher: W, + ReactCurrentBatchConfig: X, + ReactCurrentOwner: O, + ContextRegistry: {} + }, + Z = Y.ContextRegistry; + exports.Children = { + map: V, + forEach: function forEach(a, b, d) { + V(a, function () { + b.apply(this, arguments); + }, d); + }, + count: function count(a) { + var b = 0; + V(a, function () { + b++; + }); + return b; + }, + toArray: function toArray(a) { + return V(a, function (a) { + return a; + }) || []; + }, + only: function only(a) { + if (!R(a)) throw Error("React.Children.only expected to receive a single React element child."); + return a; + } + }; + exports.Component = I; + exports.Fragment = p; + exports.Profiler = r; + exports.PureComponent = K; + exports.StrictMode = q; + exports.Suspense = x; + exports.SuspenseList = y; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y; + exports.cloneElement = function (a, b, d) { + if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); + var c = G({}, a.props), + e = a.key, + k = a.ref, + h = a._owner; + if (null != b) { + void 0 !== b.ref && (k = b.ref, h = O.current); + void 0 !== b.key && (e = "" + b.key); + if (a.type && a.type.defaultProps) var g = a.type.defaultProps; + for (f in b) { + N.call(b, f) && !P.hasOwnProperty(f) && (c[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); + } + } + var f = arguments.length - 2; + if (1 === f) c.children = d;else if (1 < f) { + g = Array(f); + for (var m = 0; m < f; m++) { + g[m] = arguments[m + 2]; + } + c.children = g; + } + return { + $$typeof: l, + type: a.type, + key: e, + ref: k, + props: c, + _owner: h + }; + }; + exports.createContext = function (a) { + a = { + $$typeof: u, + _currentValue: a, + _currentValue2: a, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }; + a.Provider = { + $$typeof: t, + _context: a + }; + return a.Consumer = a; + }; + exports.createElement = Q; + exports.createFactory = function (a) { + var b = Q.bind(null, a); + b.type = a; + return b; + }; + exports.createRef = function () { + return { + current: null + }; + }; + exports.createServerContext = function (a, b) { + var d = !0; + if (!Z[a]) { + d = !1; + var c = { + $$typeof: v, + _currentValue: b, + _currentValue2: b, + _defaultValue: b, + _threadCount: 0, + Provider: null, + Consumer: null, + _globalName: a + }; + c.Provider = { + $$typeof: t, + _context: c + }; + Z[a] = c; + } + c = Z[a]; + if (c._defaultValue === D) c._defaultValue = b, c._currentValue === D && (c._currentValue = b), c._currentValue2 === D && (c._currentValue2 = b);else if (d) throw Error("ServerContext: " + a + " already defined"); + return c; + }; + exports.forwardRef = function (a) { + return { + $$typeof: w, + render: a + }; + }; + exports.isValidElement = R; + exports.lazy = function (a) { + return { + $$typeof: A, + _payload: { + _status: -1, + _result: a + }, + _init: da + }; + }; + exports.memo = function (a, b) { + return { + $$typeof: z, + type: a, + compare: void 0 === b ? null : b + }; + }; + exports.startTransition = function (a) { + var b = X.transition; + X.transition = {}; + try { + a(); + } finally { + X.transition = b; + } + }; + exports.unstable_Cache = aa; + exports.unstable_DebugTracingMode = B; + exports.unstable_Offscreen = C; + exports.unstable_act = function () { + throw Error("act(...) is not supported in production builds of React."); + }; + exports.unstable_createMutableSource = function (a, b) { + return { + _getVersion: b, + _source: a, + _workInProgressVersionPrimary: null, + _workInProgressVersionSecondary: null + }; + }; + exports.unstable_getCacheForType = function (a) { + return W.current.getCacheForType(a); + }; + exports.unstable_getCacheSignal = function () { + return W.current.getCacheSignal(); + }; + exports.unstable_useCacheRefresh = function () { + return W.current.useCacheRefresh(); + }; + exports.useCallback = function (a, b) { + return W.current.useCallback(a, b); + }; + exports.useContext = function (a) { + return W.current.useContext(a); + }; + exports.useDebugValue = function () {}; + exports.useDeferredValue = function (a) { + return W.current.useDeferredValue(a); + }; + exports.useEffect = function (a, b) { + return W.current.useEffect(a, b); + }; + exports.useId = function () { + return W.current.useId(); + }; + exports.useImperativeHandle = function (a, b, d) { + return W.current.useImperativeHandle(a, b, d); + }; + exports.useInsertionEffect = function (a, b) { + return W.current.useInsertionEffect(a, b); + }; + exports.useLayoutEffect = function (a, b) { + return W.current.useLayoutEffect(a, b); + }; + exports.useMemo = function (a, b) { + return W.current.useMemo(a, b); + }; + exports.useReducer = function (a, b, d) { + return W.current.useReducer(a, b, d); + }; + exports.useRef = function (a) { + return W.current.useRef(a); + }; + exports.useState = function (a) { + return W.current.useState(a); + }; + exports.useSyncExternalStore = function (a, b, d) { + return W.current.useSyncExternalStore(a, b, d); + }; + exports.useTransition = function () { + return W.current.useTransition(); + }; + exports.version = "18.0.0-rc.2-experimental-82762bea5-20220310"; + + }, + function (module, __webpack_exports__, __webpack_require__) { + "use strict"; + + __webpack_require__.r(__webpack_exports__); + + __webpack_require__.d(__webpack_exports__, "connectToDevTools", function () { + return connectToDevTools; + }); + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + var EventEmitter = function () { + function EventEmitter() { + _classCallCheck(this, EventEmitter); + _defineProperty(this, "listenersMap", new Map()); + } + _createClass(EventEmitter, [{ + key: "addListener", + value: function addListener(event, listener) { + var listeners = this.listenersMap.get(event); + if (listeners === undefined) { + this.listenersMap.set(event, [listener]); + } else { + var index = listeners.indexOf(listener); + if (index < 0) { + listeners.push(listener); + } + } + } + }, { + key: "emit", + value: function emit(event) { + var listeners = this.listenersMap.get(event); + if (listeners !== undefined) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + if (listeners.length === 1) { + var listener = listeners[0]; + listener.apply(null, args); + } else { + var didThrow = false; + var caughtError = null; + var clonedListeners = Array.from(listeners); + for (var i = 0; i < clonedListeners.length; i++) { + var _listener = clonedListeners[i]; + try { + _listener.apply(null, args); + } catch (error) { + if (caughtError === null) { + didThrow = true; + caughtError = error; + } + } + } + if (didThrow) { + throw caughtError; + } + } + } + } + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this.listenersMap.clear(); + } + }, { + key: "removeListener", + value: function removeListener(event, listener) { + var listeners = this.listenersMap.get(event); + if (listeners !== undefined) { + var index = listeners.indexOf(listener); + if (index >= 0) { + listeners.splice(index, 1); + } + } + } + }]); + return EventEmitter; + }(); + + var lodash_throttle = __webpack_require__(14); + var lodash_throttle_default = __webpack_require__.n(lodash_throttle); + + var constants = __webpack_require__(0); + + var storage = __webpack_require__(5); + + var simpleIsEqual = function simpleIsEqual(a, b) { + return a === b; + }; + + var esm = function esm(resultFn) { + var isEqual = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : simpleIsEqual; + var lastThis = void 0; + var lastArgs = []; + var lastResult = void 0; + var calledOnce = false; + var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) { + return isEqual(newArg, lastArgs[index]); + }; + var result = function result() { + for (var _len = arguments.length, newArgs = Array(_len), _key = 0; _key < _len; _key++) { + newArgs[_key] = arguments[_key]; + } + if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) { + return lastResult; + } + calledOnce = true; + lastThis = this; + lastArgs = newArgs; + lastResult = resultFn.apply(this, newArgs); + return lastResult; + }; + return result; + }; + function getOwnerWindow(node) { + if (!node.ownerDocument) { + return null; + } + return node.ownerDocument.defaultView; + } + + function getOwnerIframe(node) { + var nodeWindow = getOwnerWindow(node); + if (nodeWindow) { + return nodeWindow.frameElement; + } + return null; + } + + function getBoundingClientRectWithBorderOffset(node) { + var dimensions = getElementDimensions(node); + return mergeRectOffsets([node.getBoundingClientRect(), { + top: dimensions.borderTop, + left: dimensions.borderLeft, + bottom: dimensions.borderBottom, + right: dimensions.borderRight, + width: 0, + height: 0 + }]); + } + + function mergeRectOffsets(rects) { + return rects.reduce(function (previousRect, rect) { + if (previousRect == null) { + return rect; + } + return { + top: previousRect.top + rect.top, + left: previousRect.left + rect.left, + width: previousRect.width, + height: previousRect.height, + bottom: previousRect.bottom + rect.bottom, + right: previousRect.right + rect.right + }; + }); + } + + function getNestedBoundingClientRect(node, boundaryWindow) { + var ownerIframe = getOwnerIframe(node); + if (ownerIframe && ownerIframe !== boundaryWindow) { + var rects = [node.getBoundingClientRect()]; + var currentIframe = ownerIframe; + var onlyOneMore = false; + while (currentIframe) { + var rect = getBoundingClientRectWithBorderOffset(currentIframe); + rects.push(rect); + currentIframe = getOwnerIframe(currentIframe); + if (onlyOneMore) { + break; + } + + if (currentIframe && getOwnerWindow(currentIframe) === boundaryWindow) { + onlyOneMore = true; + } + } + return mergeRectOffsets(rects); + } else { + return node.getBoundingClientRect(); + } + } + function getElementDimensions(domElement) { + var calculatedStyle = window.getComputedStyle(domElement); + return { + borderLeft: parseInt(calculatedStyle.borderLeftWidth, 10), + borderRight: parseInt(calculatedStyle.borderRightWidth, 10), + borderTop: parseInt(calculatedStyle.borderTopWidth, 10), + borderBottom: parseInt(calculatedStyle.borderBottomWidth, 10), + marginLeft: parseInt(calculatedStyle.marginLeft, 10), + marginRight: parseInt(calculatedStyle.marginRight, 10), + marginTop: parseInt(calculatedStyle.marginTop, 10), + marginBottom: parseInt(calculatedStyle.marginBottom, 10), + paddingLeft: parseInt(calculatedStyle.paddingLeft, 10), + paddingRight: parseInt(calculatedStyle.paddingRight, 10), + paddingTop: parseInt(calculatedStyle.paddingTop, 10), + paddingBottom: parseInt(calculatedStyle.paddingBottom, 10) + }; + } + function _createForOfIteratorHelper(o, allowArrayLike) { + var it; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function F() {}; + return { + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e) { + throw _e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function e(_e2) { + didErr = true; + err = _e2; + }, + f: function f() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function Overlay_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function Overlay_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function Overlay_createClass(Constructor, protoProps, staticProps) { + if (protoProps) Overlay_defineProperties(Constructor.prototype, protoProps); + if (staticProps) Overlay_defineProperties(Constructor, staticProps); + return Constructor; + } + + var Overlay_assign = Object.assign; + + var OverlayRect = function () { + function OverlayRect(doc, container) { + Overlay_classCallCheck(this, OverlayRect); + this.node = doc.createElement('div'); + this.border = doc.createElement('div'); + this.padding = doc.createElement('div'); + this.content = doc.createElement('div'); + this.border.style.borderColor = overlayStyles.border; + this.padding.style.borderColor = overlayStyles.padding; + this.content.style.backgroundColor = overlayStyles.background; + Overlay_assign(this.node.style, { + borderColor: overlayStyles.margin, + pointerEvents: 'none', + position: 'fixed' + }); + this.node.style.zIndex = '10000000'; + this.node.appendChild(this.border); + this.border.appendChild(this.padding); + this.padding.appendChild(this.content); + container.appendChild(this.node); + } + Overlay_createClass(OverlayRect, [{ + key: "remove", + value: function remove() { + if (this.node.parentNode) { + this.node.parentNode.removeChild(this.node); + } + } + }, { + key: "update", + value: function update(box, dims) { + boxWrap(dims, 'margin', this.node); + boxWrap(dims, 'border', this.border); + boxWrap(dims, 'padding', this.padding); + Overlay_assign(this.content.style, { + height: box.height - dims.borderTop - dims.borderBottom - dims.paddingTop - dims.paddingBottom + 'px', + width: box.width - dims.borderLeft - dims.borderRight - dims.paddingLeft - dims.paddingRight + 'px' + }); + Overlay_assign(this.node.style, { + top: box.top - dims.marginTop + 'px', + left: box.left - dims.marginLeft + 'px' + }); + } + }]); + return OverlayRect; + }(); + var OverlayTip = function () { + function OverlayTip(doc, container) { + Overlay_classCallCheck(this, OverlayTip); + this.tip = doc.createElement('div'); + Overlay_assign(this.tip.style, { + display: 'flex', + flexFlow: 'row nowrap', + backgroundColor: '#333740', + borderRadius: '2px', + fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace', + fontWeight: 'bold', + padding: '3px 5px', + pointerEvents: 'none', + position: 'fixed', + fontSize: '12px', + whiteSpace: 'nowrap' + }); + this.nameSpan = doc.createElement('span'); + this.tip.appendChild(this.nameSpan); + Overlay_assign(this.nameSpan.style, { + color: '#ee78e6', + borderRight: '1px solid #aaaaaa', + paddingRight: '0.5rem', + marginRight: '0.5rem' + }); + this.dimSpan = doc.createElement('span'); + this.tip.appendChild(this.dimSpan); + Overlay_assign(this.dimSpan.style, { + color: '#d7d7d7' + }); + this.tip.style.zIndex = '10000000'; + container.appendChild(this.tip); + } + Overlay_createClass(OverlayTip, [{ + key: "remove", + value: function remove() { + if (this.tip.parentNode) { + this.tip.parentNode.removeChild(this.tip); + } + } + }, { + key: "updateText", + value: function updateText(name, width, height) { + this.nameSpan.textContent = name; + this.dimSpan.textContent = Math.round(width) + 'px ร— ' + Math.round(height) + 'px'; + } + }, { + key: "updatePosition", + value: function updatePosition(dims, bounds) { + var tipRect = this.tip.getBoundingClientRect(); + var tipPos = findTipPos(dims, bounds, { + width: tipRect.width, + height: tipRect.height + }); + Overlay_assign(this.tip.style, tipPos.style); + } + }]); + return OverlayTip; + }(); + var Overlay_Overlay = function () { + function Overlay() { + Overlay_classCallCheck(this, Overlay); + + var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + this.window = currentWindow; + + var tipBoundsWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + this.tipBoundsWindow = tipBoundsWindow; + var doc = currentWindow.document; + this.container = doc.createElement('div'); + this.container.style.zIndex = '10000000'; + this.tip = new OverlayTip(doc, this.container); + this.rects = []; + doc.body.appendChild(this.container); + } + Overlay_createClass(Overlay, [{ + key: "remove", + value: function remove() { + this.tip.remove(); + this.rects.forEach(function (rect) { + rect.remove(); + }); + this.rects.length = 0; + if (this.container.parentNode) { + this.container.parentNode.removeChild(this.container); + } + } + }, { + key: "inspect", + value: function inspect(nodes, name) { + var _this = this; + + var elements = nodes.filter(function (node) { + return node.nodeType === Node.ELEMENT_NODE; + }); + while (this.rects.length > elements.length) { + var rect = this.rects.pop(); + rect.remove(); + } + if (elements.length === 0) { + return; + } + while (this.rects.length < elements.length) { + this.rects.push(new OverlayRect(this.window.document, this.container)); + } + var outerBox = { + top: Number.POSITIVE_INFINITY, + right: Number.NEGATIVE_INFINITY, + bottom: Number.NEGATIVE_INFINITY, + left: Number.POSITIVE_INFINITY + }; + elements.forEach(function (element, index) { + var box = getNestedBoundingClientRect(element, _this.window); + var dims = getElementDimensions(element); + outerBox.top = Math.min(outerBox.top, box.top - dims.marginTop); + outerBox.right = Math.max(outerBox.right, box.left + box.width + dims.marginRight); + outerBox.bottom = Math.max(outerBox.bottom, box.top + box.height + dims.marginBottom); + outerBox.left = Math.min(outerBox.left, box.left - dims.marginLeft); + var rect = _this.rects[index]; + rect.update(box, dims); + }); + if (!name) { + name = elements[0].nodeName.toLowerCase(); + var node = elements[0]; + var hook = node.ownerDocument.defaultView.__REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook != null && hook.rendererInterfaces != null) { + var ownerName = null; + + var _iterator = _createForOfIteratorHelper(hook.rendererInterfaces.values()), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var rendererInterface = _step.value; + var id = rendererInterface.getFiberIDForNative(node, true); + if (id !== null) { + ownerName = rendererInterface.getDisplayNameForFiberID(id, true); + break; + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + if (ownerName) { + name += ' (in ' + ownerName + ')'; + } + } + } + this.tip.updateText(name, outerBox.right - outerBox.left, outerBox.bottom - outerBox.top); + var tipBounds = getNestedBoundingClientRect(this.tipBoundsWindow.document.documentElement, this.window); + this.tip.updatePosition({ + top: outerBox.top, + left: outerBox.left, + height: outerBox.bottom - outerBox.top, + width: outerBox.right - outerBox.left + }, { + top: tipBounds.top + this.tipBoundsWindow.scrollY, + left: tipBounds.left + this.tipBoundsWindow.scrollX, + height: this.tipBoundsWindow.innerHeight, + width: this.tipBoundsWindow.innerWidth + }); + } + }]); + return Overlay; + }(); + function findTipPos(dims, bounds, tipSize) { + var tipHeight = Math.max(tipSize.height, 20); + var tipWidth = Math.max(tipSize.width, 60); + var margin = 5; + var top; + if (dims.top + dims.height + tipHeight <= bounds.top + bounds.height) { + if (dims.top + dims.height < bounds.top + 0) { + top = bounds.top + margin; + } else { + top = dims.top + dims.height + margin; + } + } else if (dims.top - tipHeight <= bounds.top + bounds.height) { + if (dims.top - tipHeight - margin < bounds.top + margin) { + top = bounds.top + margin; + } else { + top = dims.top - tipHeight - margin; + } + } else { + top = bounds.top + bounds.height - tipHeight - margin; + } + var left = dims.left + margin; + if (dims.left < bounds.left) { + left = bounds.left + margin; + } + if (dims.left + tipWidth > bounds.left + bounds.width) { + left = bounds.left + bounds.width - tipWidth - margin; + } + top += 'px'; + left += 'px'; + return { + style: { + top: top, + left: left + } + }; + } + function boxWrap(dims, what, node) { + Overlay_assign(node.style, { + borderTopWidth: dims[what + 'Top'] + 'px', + borderLeftWidth: dims[what + 'Left'] + 'px', + borderRightWidth: dims[what + 'Right'] + 'px', + borderBottomWidth: dims[what + 'Bottom'] + 'px', + borderStyle: 'solid' + }); + } + var overlayStyles = { + background: 'rgba(120, 170, 210, 0.7)', + padding: 'rgba(77, 200, 0, 0.3)', + margin: 'rgba(255, 155, 0, 0.3)', + border: 'rgba(255, 200, 50, 0.3)' + }; + + var SHOW_DURATION = 2000; + var timeoutID = null; + var overlay = null; + function hideOverlay() { + timeoutID = null; + if (overlay !== null) { + overlay.remove(); + overlay = null; + } + } + function showOverlay(elements, componentName, hideAfterTimeout) { + if (window.document == null) { + return; + } + if (timeoutID !== null) { + clearTimeout(timeoutID); + } + if (elements == null) { + return; + } + if (overlay === null) { + overlay = new Overlay_Overlay(); + } + overlay.inspect(elements, componentName); + if (hideAfterTimeout) { + timeoutID = setTimeout(hideOverlay, SHOW_DURATION); + } + } + + var iframesListeningTo = new Set(); + function setupHighlighter(bridge, agent) { + bridge.addListener('clearNativeElementHighlight', clearNativeElementHighlight); + bridge.addListener('highlightNativeElement', highlightNativeElement); + bridge.addListener('shutdown', stopInspectingNative); + bridge.addListener('startInspectingNative', startInspectingNative); + bridge.addListener('stopInspectingNative', stopInspectingNative); + function startInspectingNative() { + registerListenersOnWindow(window); + } + function registerListenersOnWindow(window) { + if (window && typeof window.addEventListener === 'function') { + window.addEventListener('click', onClick, true); + window.addEventListener('mousedown', onMouseEvent, true); + window.addEventListener('mouseover', onMouseEvent, true); + window.addEventListener('mouseup', onMouseEvent, true); + window.addEventListener('pointerdown', onPointerDown, true); + window.addEventListener('pointerover', onPointerOver, true); + window.addEventListener('pointerup', onPointerUp, true); + } + } + function stopInspectingNative() { + hideOverlay(); + removeListenersOnWindow(window); + iframesListeningTo.forEach(function (frame) { + try { + removeListenersOnWindow(frame.contentWindow); + } catch (error) { + } + }); + iframesListeningTo = new Set(); + } + function removeListenersOnWindow(window) { + if (window && typeof window.removeEventListener === 'function') { + window.removeEventListener('click', onClick, true); + window.removeEventListener('mousedown', onMouseEvent, true); + window.removeEventListener('mouseover', onMouseEvent, true); + window.removeEventListener('mouseup', onMouseEvent, true); + window.removeEventListener('pointerdown', onPointerDown, true); + window.removeEventListener('pointerover', onPointerOver, true); + window.removeEventListener('pointerup', onPointerUp, true); + } + } + function clearNativeElementHighlight() { + hideOverlay(); + } + function highlightNativeElement(_ref) { + var displayName = _ref.displayName, + hideAfterTimeout = _ref.hideAfterTimeout, + id = _ref.id, + openNativeElementsPanel = _ref.openNativeElementsPanel, + rendererID = _ref.rendererID, + scrollIntoView = _ref.scrollIntoView; + var renderer = agent.rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } + var nodes = null; + if (renderer != null) { + nodes = renderer.findNativeNodesForFiberID(id); + } + if (nodes != null && nodes[0] != null) { + var node = nodes[0]; + if (scrollIntoView && typeof node.scrollIntoView === 'function') { + node.scrollIntoView({ + block: 'nearest', + inline: 'nearest' + }); + } + showOverlay(nodes, displayName, hideAfterTimeout); + if (openNativeElementsPanel) { + window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 = node; + bridge.send('syncSelectionToNativeElementsPanel'); + } + } else { + hideOverlay(); + } + } + function onClick(event) { + event.preventDefault(); + event.stopPropagation(); + stopInspectingNative(); + bridge.send('stopInspectingNative', true); + } + function onMouseEvent(event) { + event.preventDefault(); + event.stopPropagation(); + } + function onPointerDown(event) { + event.preventDefault(); + event.stopPropagation(); + selectFiberForNode(event.target); + } + function onPointerOver(event) { + event.preventDefault(); + event.stopPropagation(); + var target = event.target; + if (target.tagName === 'IFRAME') { + var iframe = target; + try { + if (!iframesListeningTo.has(iframe)) { + var _window = iframe.contentWindow; + registerListenersOnWindow(_window); + iframesListeningTo.add(iframe); + } + } catch (error) { + } + } + + showOverlay([target], null, false); + selectFiberForNode(target); + } + function onPointerUp(event) { + event.preventDefault(); + event.stopPropagation(); + } + var selectFiberForNode = lodash_throttle_default()(esm(function (node) { + var id = agent.getIDForNode(node); + if (id !== null) { + bridge.send('selectFiber', id); + } + }), 200, + { + leading: false + }); + } + var OUTLINE_COLOR = '#f0f0f0'; + + var COLORS = ['#37afa9', '#63b19e', '#80b393', '#97b488', '#abb67d', '#beb771', '#cfb965', '#dfba57', '#efbb49', '#febc38']; + var canvas = null; + function draw(nodeToData) { + if (canvas === null) { + initialize(); + } + var canvasFlow = canvas; + canvasFlow.width = window.innerWidth; + canvasFlow.height = window.innerHeight; + var context = canvasFlow.getContext('2d'); + context.clearRect(0, 0, canvasFlow.width, canvasFlow.height); + nodeToData.forEach(function (_ref) { + var count = _ref.count, + rect = _ref.rect; + if (rect !== null) { + var colorIndex = Math.min(COLORS.length - 1, count - 1); + var color = COLORS[colorIndex]; + drawBorder(context, rect, color); + } + }); + } + function drawBorder(context, rect, color) { + var height = rect.height, + left = rect.left, + top = rect.top, + width = rect.width; + + context.lineWidth = 1; + context.strokeStyle = OUTLINE_COLOR; + context.strokeRect(left - 1, top - 1, width + 2, height + 2); + + context.lineWidth = 1; + context.strokeStyle = OUTLINE_COLOR; + context.strokeRect(left + 1, top + 1, width - 1, height - 1); + context.strokeStyle = color; + context.setLineDash([0]); + + context.lineWidth = 1; + context.strokeRect(left, top, width - 1, height - 1); + context.setLineDash([0]); + } + function destroy() { + if (canvas !== null) { + if (canvas.parentNode != null) { + canvas.parentNode.removeChild(canvas); + } + canvas = null; + } + } + function initialize() { + canvas = window.document.createElement('canvas'); + canvas.style.cssText = "\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n "; + var root = window.document.documentElement; + root.insertBefore(canvas, root.firstChild); + } + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + var DISPLAY_DURATION = 250; + + var MAX_DISPLAY_DURATION = 3000; + + var REMEASUREMENT_AFTER_DURATION = 250; + + var getCurrentTime = (typeof performance === "undefined" ? "undefined" : _typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + var nodeToData = new Map(); + var TraceUpdates_agent = null; + var drawAnimationFrameID = null; + var isEnabled = false; + var redrawTimeoutID = null; + function TraceUpdates_initialize(injectedAgent) { + TraceUpdates_agent = injectedAgent; + TraceUpdates_agent.addListener('traceUpdates', traceUpdates); + } + function toggleEnabled(value) { + isEnabled = value; + if (!isEnabled) { + nodeToData.clear(); + if (drawAnimationFrameID !== null) { + cancelAnimationFrame(drawAnimationFrameID); + drawAnimationFrameID = null; + } + if (redrawTimeoutID !== null) { + clearTimeout(redrawTimeoutID); + redrawTimeoutID = null; + } + destroy(); + } + } + function traceUpdates(nodes) { + if (!isEnabled) { + return; + } + nodes.forEach(function (node) { + var data = nodeToData.get(node); + var now = getCurrentTime(); + var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0; + var rect = data != null ? data.rect : null; + if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now) { + lastMeasuredAt = now; + rect = measureNode(node); + } + nodeToData.set(node, { + count: data != null ? data.count + 1 : 1, + expirationTime: data != null ? Math.min(now + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now + DISPLAY_DURATION, + lastMeasuredAt: lastMeasuredAt, + rect: rect + }); + }); + if (redrawTimeoutID !== null) { + clearTimeout(redrawTimeoutID); + redrawTimeoutID = null; + } + if (drawAnimationFrameID === null) { + drawAnimationFrameID = requestAnimationFrame(prepareToDraw); + } + } + function prepareToDraw() { + drawAnimationFrameID = null; + redrawTimeoutID = null; + var now = getCurrentTime(); + var earliestExpiration = Number.MAX_VALUE; + + nodeToData.forEach(function (data, node) { + if (data.expirationTime < now) { + nodeToData.delete(node); + } else { + earliestExpiration = Math.min(earliestExpiration, data.expirationTime); + } + }); + draw(nodeToData); + if (earliestExpiration !== Number.MAX_VALUE) { + redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now); + } + } + function measureNode(node) { + if (!node || typeof node.getBoundingClientRect !== 'function') { + return null; + } + var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + return getNestedBoundingClientRect(node, currentWindow); + } + var backend_console = __webpack_require__(9); + + function bridge_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + bridge_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + bridge_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return bridge_typeof(obj); + } + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || bridge_unsupportedIterableToArray(arr) || _nonIterableSpread(); + } + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function bridge_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return bridge_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bridge_arrayLikeToArray(o, minLen); + } + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); + } + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return bridge_arrayLikeToArray(arr); + } + function bridge_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function bridge_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function bridge_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function bridge_createClass(Constructor, protoProps, staticProps) { + if (protoProps) bridge_defineProperties(Constructor.prototype, protoProps); + if (staticProps) bridge_defineProperties(Constructor, staticProps); + return Constructor; + } + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = _isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = _getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + if (call && (bridge_typeof(call) === "object" || typeof call === "function")) { + return call; + } + return _assertThisInitialized(self); + } + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + return true; + } catch (e) { + return false; + } + } + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + function bridge_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + var BATCH_DURATION = 100; + + var BRIDGE_PROTOCOL = [ + { + version: 0, + minNpmVersion: '"<4.11.0"', + maxNpmVersion: '"<4.11.0"' + }, { + version: 1, + minNpmVersion: '4.13.0', + maxNpmVersion: '4.21.0' + }, + { + version: 2, + minNpmVersion: '4.22.0', + maxNpmVersion: null + }]; + var currentBridgeProtocol = BRIDGE_PROTOCOL[BRIDGE_PROTOCOL.length - 1]; + var Bridge = function (_EventEmitter) { + _inherits(Bridge, _EventEmitter); + var _super = _createSuper(Bridge); + function Bridge(wall) { + var _this; + bridge_classCallCheck(this, Bridge); + _this = _super.call(this); + bridge_defineProperty(_assertThisInitialized(_this), "_isShutdown", false); + bridge_defineProperty(_assertThisInitialized(_this), "_messageQueue", []); + bridge_defineProperty(_assertThisInitialized(_this), "_timeoutID", null); + bridge_defineProperty(_assertThisInitialized(_this), "_wallUnlisten", null); + bridge_defineProperty(_assertThisInitialized(_this), "_flush", function () { + if (_this._timeoutID !== null) { + clearTimeout(_this._timeoutID); + _this._timeoutID = null; + } + if (_this._messageQueue.length) { + for (var i = 0; i < _this._messageQueue.length; i += 2) { + var _this$_wall; + (_this$_wall = _this._wall).send.apply(_this$_wall, [_this._messageQueue[i]].concat(_toConsumableArray(_this._messageQueue[i + 1]))); + } + _this._messageQueue.length = 0; + + _this._timeoutID = setTimeout(_this._flush, BATCH_DURATION); + } + }); + bridge_defineProperty(_assertThisInitialized(_this), "overrideValueAtPath", function (_ref) { + var id = _ref.id, + path = _ref.path, + rendererID = _ref.rendererID, + type = _ref.type, + value = _ref.value; + switch (type) { + case 'context': + _this.send('overrideContext', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'hooks': + _this.send('overrideHookState', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'props': + _this.send('overrideProps', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'state': + _this.send('overrideState', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + } + }); + _this._wall = wall; + _this._wallUnlisten = wall.listen(function (message) { + if (message && message.event) { + _assertThisInitialized(_this).emit(message.event, message.payload); + } + }) || null; + + _this.addListener('overrideValueAtPath', _this.overrideValueAtPath); + return _this; + } + + bridge_createClass(Bridge, [{ + key: "send", + value: function send(event) { + if (this._isShutdown) { + console.warn("Cannot send message \"".concat(event, "\" through a Bridge that has been shutdown.")); + return; + } + + for (var _len = arguments.length, payload = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + payload[_key - 1] = arguments[_key]; + } + this._messageQueue.push(event, payload); + if (!this._timeoutID) { + this._timeoutID = setTimeout(this._flush, 0); + } + } + }, { + key: "shutdown", + value: function shutdown() { + if (this._isShutdown) { + console.warn('Bridge was already shutdown.'); + return; + } + + this.send('shutdown'); + + this._isShutdown = true; + + this.addListener = function () {}; + + this.emit = function () {}; + + this.removeAllListeners(); + + var wallUnlisten = this._wallUnlisten; + if (wallUnlisten) { + wallUnlisten(); + } + + do { + this._flush(); + } while (this._messageQueue.length); + + if (this._timeoutID !== null) { + clearTimeout(this._timeoutID); + this._timeoutID = null; + } + } + }, { + key: "wall", + get: function get() { + return this._wall; + } + }]); + return Bridge; + }(EventEmitter); + + var src_bridge = Bridge; + var utils = __webpack_require__(4); + + function agent_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + agent_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + agent_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return agent_typeof(obj); + } + function agent_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function agent_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function agent_createClass(Constructor, protoProps, staticProps) { + if (protoProps) agent_defineProperties(Constructor.prototype, protoProps); + if (staticProps) agent_defineProperties(Constructor, staticProps); + return Constructor; + } + function agent_inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) agent_setPrototypeOf(subClass, superClass); + } + function agent_setPrototypeOf(o, p) { + agent_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return agent_setPrototypeOf(o, p); + } + function agent_createSuper(Derived) { + var hasNativeReflectConstruct = agent_isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = agent_getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = agent_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return agent_possibleConstructorReturn(this, result); + }; + } + function agent_possibleConstructorReturn(self, call) { + if (call && (agent_typeof(call) === "object" || typeof call === "function")) { + return call; + } + return agent_assertThisInitialized(self); + } + function agent_assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + function agent_isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + return true; + } catch (e) { + return false; + } + } + function agent_getPrototypeOf(o) { + agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return agent_getPrototypeOf(o); + } + function agent_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + var agent_debug = function debug(methodName) { + if (constants["s"]) { + var _console; + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + (_console = console).log.apply(_console, ["%cAgent %c".concat(methodName), 'color: purple; font-weight: bold;', 'font-weight: bold;'].concat(args)); + } + }; + var agent_Agent = function (_EventEmitter) { + agent_inherits(Agent, _EventEmitter); + var _super = agent_createSuper(Agent); + function Agent(bridge) { + var _this; + agent_classCallCheck(this, Agent); + _this = _super.call(this); + agent_defineProperty(agent_assertThisInitialized(_this), "_isProfiling", false); + agent_defineProperty(agent_assertThisInitialized(_this), "_recordChangeDescriptions", false); + agent_defineProperty(agent_assertThisInitialized(_this), "_rendererInterfaces", {}); + agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelection", null); + agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelectionMatch", null); + agent_defineProperty(agent_assertThisInitialized(_this), "_traceUpdatesEnabled", false); + agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsAndWarnings", function (_ref) { + var rendererID = _ref.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + renderer.clearErrorsAndWarnings(); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsForFiberID", function (_ref2) { + var id = _ref2.id, + rendererID = _ref2.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + renderer.clearErrorsForFiberID(id); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "clearWarningsForFiberID", function (_ref3) { + var id = _ref3.id, + rendererID = _ref3.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + renderer.clearWarningsForFiberID(id); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "copyElementPath", function (_ref4) { + var id = _ref4.id, + path = _ref4.path, + rendererID = _ref4.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.copyElementPath(id, path); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "deletePath", function (_ref5) { + var hookID = _ref5.hookID, + id = _ref5.id, + path = _ref5.path, + rendererID = _ref5.rendererID, + type = _ref5.type; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.deletePath(type, id, hookID, path); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getBackendVersion", function () { + var version = "4.24.0-82762bea5"; + if (version) { + _this._bridge.send('backendVersion', version); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getBridgeProtocol", function () { + _this._bridge.send('bridgeProtocol', currentBridgeProtocol); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingData", function (_ref6) { + var rendererID = _ref6.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } + _this._bridge.send('profilingData', renderer.getProfilingData()); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingStatus", function () { + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getOwnersList", function (_ref7) { + var id = _ref7.id, + rendererID = _ref7.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + var owners = renderer.getOwnersList(id); + _this._bridge.send('ownersList', { + id: id, + owners: owners + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "inspectElement", function (_ref8) { + var forceFullData = _ref8.forceFullData, + id = _ref8.id, + path = _ref8.path, + rendererID = _ref8.rendererID, + requestID = _ref8.requestID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + _this._bridge.send('inspectedElement', renderer.inspectElement(requestID, id, path, forceFullData)); + + if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) { + _this._persistedSelection = null; + _this._persistedSelectionMatch = null; + renderer.setTrackedPath(null); + _this._throttledPersistSelection(rendererID, id); + } + } + }); + + agent_defineProperty(agent_assertThisInitialized(_this), "logElementToConsole", function (_ref9) { + var id = _ref9.id, + rendererID = _ref9.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.logElementToConsole(id); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideError", function (_ref10) { + var id = _ref10.id, + rendererID = _ref10.rendererID, + forceError = _ref10.forceError; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideError(id, forceError); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideSuspense", function (_ref11) { + var id = _ref11.id, + rendererID = _ref11.rendererID, + forceFallback = _ref11.forceFallback; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideSuspense(id, forceFallback); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideValueAtPath", function (_ref12) { + var hookID = _ref12.hookID, + id = _ref12.id, + path = _ref12.path, + rendererID = _ref12.rendererID, + type = _ref12.type, + value = _ref12.value; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideValueAtPath(type, id, hookID, path, value); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideContext", function (_ref13) { + var id = _ref13.id, + path = _ref13.path, + rendererID = _ref13.rendererID, + wasForwarded = _ref13.wasForwarded, + value = _ref13.value; + + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'context', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideHookState", function (_ref14) { + var id = _ref14.id, + hookID = _ref14.hookID, + path = _ref14.path, + rendererID = _ref14.rendererID, + wasForwarded = _ref14.wasForwarded, + value = _ref14.value; + + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'hooks', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideProps", function (_ref15) { + var id = _ref15.id, + path = _ref15.path, + rendererID = _ref15.rendererID, + wasForwarded = _ref15.wasForwarded, + value = _ref15.value; + + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'props', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideState", function (_ref16) { + var id = _ref16.id, + path = _ref16.path, + rendererID = _ref16.rendererID, + wasForwarded = _ref16.wasForwarded, + value = _ref16.value; + + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'state', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "reloadAndProfile", function (recordChangeDescriptions) { + Object(storage["e"])(constants["k"], 'true'); + Object(storage["e"])(constants["j"], recordChangeDescriptions ? 'true' : 'false'); + + _this._bridge.send('reloadAppForProfiling'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "renamePath", function (_ref17) { + var hookID = _ref17.hookID, + id = _ref17.id, + newPath = _ref17.newPath, + oldPath = _ref17.oldPath, + rendererID = _ref17.rendererID, + type = _ref17.type; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.renamePath(type, id, hookID, oldPath, newPath); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "setTraceUpdatesEnabled", function (traceUpdatesEnabled) { + _this._traceUpdatesEnabled = traceUpdatesEnabled; + toggleEnabled(traceUpdatesEnabled); + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.setTraceUpdatesEnabled(traceUpdatesEnabled); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "syncSelectionFromNativeElementsPanel", function () { + var target = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0; + if (target == null) { + return; + } + _this.selectNode(target); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "shutdown", function () { + _this.emit('shutdown'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "startProfiling", function (recordChangeDescriptions) { + _this._recordChangeDescriptions = recordChangeDescriptions; + _this._isProfiling = true; + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.startProfiling(recordChangeDescriptions); + } + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "stopProfiling", function () { + _this._isProfiling = false; + _this._recordChangeDescriptions = false; + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.stopProfiling(); + } + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "storeAsGlobal", function (_ref18) { + var count = _ref18.count, + id = _ref18.id, + path = _ref18.path, + rendererID = _ref18.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.storeAsGlobal(id, path, count); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "updateConsolePatchSettings", function (_ref19) { + var appendComponentStack = _ref19.appendComponentStack, + breakOnConsoleErrors = _ref19.breakOnConsoleErrors, + showInlineWarningsAndErrors = _ref19.showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode = _ref19.hideConsoleLogsInStrictMode, + browserTheme = _ref19.browserTheme; + Object(backend_console["a"])({ + appendComponentStack: appendComponentStack, + breakOnConsoleErrors: breakOnConsoleErrors, + showInlineWarningsAndErrors: showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "updateComponentFilters", function (componentFilters) { + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.updateComponentFilters(componentFilters); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "viewAttributeSource", function (_ref20) { + var id = _ref20.id, + path = _ref20.path, + rendererID = _ref20.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.prepareViewAttributeSource(id, path); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "viewElementSource", function (_ref21) { + var id = _ref21.id, + rendererID = _ref21.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.prepareViewElementSource(id); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "onTraceUpdates", function (nodes) { + _this.emit('traceUpdates', nodes); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "onFastRefreshScheduled", function () { + if (constants["s"]) { + agent_debug('onFastRefreshScheduled'); + } + _this._bridge.send('fastRefreshScheduled'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "onHookOperations", function (operations) { + if (constants["s"]) { + agent_debug('onHookOperations', "(".concat(operations.length, ") [").concat(operations.join(', '), "]")); + } + + _this._bridge.send('operations', operations); + if (_this._persistedSelection !== null) { + var rendererID = operations[0]; + if (_this._persistedSelection.rendererID === rendererID) { + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + var prevMatch = _this._persistedSelectionMatch; + var nextMatch = renderer.getBestMatchForTrackedPath(); + _this._persistedSelectionMatch = nextMatch; + var prevMatchID = prevMatch !== null ? prevMatch.id : null; + var nextMatchID = nextMatch !== null ? nextMatch.id : null; + if (prevMatchID !== nextMatchID) { + if (nextMatchID !== null) { + _this._bridge.send('selectFiber', nextMatchID); + } + } + if (nextMatch !== null && nextMatch.isFullMatch) { + _this._persistedSelection = null; + _this._persistedSelectionMatch = null; + renderer.setTrackedPath(null); + } + } + } + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "_throttledPersistSelection", lodash_throttle_default()(function (rendererID, id) { + var renderer = _this._rendererInterfaces[rendererID]; + var path = renderer != null ? renderer.getPathForElement(id) : null; + if (path !== null) { + Object(storage["e"])(constants["i"], JSON.stringify({ + rendererID: rendererID, + path: path + })); + } else { + Object(storage["d"])(constants["i"]); + } + }, 1000)); + if (Object(storage["c"])(constants["k"]) === 'true') { + _this._recordChangeDescriptions = Object(storage["c"])(constants["j"]) === 'true'; + _this._isProfiling = true; + Object(storage["d"])(constants["j"]); + Object(storage["d"])(constants["k"]); + } + + var persistedSelectionString = Object(storage["c"])(constants["i"]); + + if (persistedSelectionString != null) { + _this._persistedSelection = JSON.parse(persistedSelectionString); + } + _this._bridge = bridge; + bridge.addListener('clearErrorsAndWarnings', _this.clearErrorsAndWarnings); + bridge.addListener('clearErrorsForFiberID', _this.clearErrorsForFiberID); + bridge.addListener('clearWarningsForFiberID', _this.clearWarningsForFiberID); + bridge.addListener('copyElementPath', _this.copyElementPath); + bridge.addListener('deletePath', _this.deletePath); + bridge.addListener('getBackendVersion', _this.getBackendVersion); + bridge.addListener('getBridgeProtocol', _this.getBridgeProtocol); + bridge.addListener('getProfilingData', _this.getProfilingData); + bridge.addListener('getProfilingStatus', _this.getProfilingStatus); + bridge.addListener('getOwnersList', _this.getOwnersList); + bridge.addListener('inspectElement', _this.inspectElement); + bridge.addListener('logElementToConsole', _this.logElementToConsole); + bridge.addListener('overrideError', _this.overrideError); + bridge.addListener('overrideSuspense', _this.overrideSuspense); + bridge.addListener('overrideValueAtPath', _this.overrideValueAtPath); + bridge.addListener('reloadAndProfile', _this.reloadAndProfile); + bridge.addListener('renamePath', _this.renamePath); + bridge.addListener('setTraceUpdatesEnabled', _this.setTraceUpdatesEnabled); + bridge.addListener('startProfiling', _this.startProfiling); + bridge.addListener('stopProfiling', _this.stopProfiling); + bridge.addListener('storeAsGlobal', _this.storeAsGlobal); + bridge.addListener('syncSelectionFromNativeElementsPanel', _this.syncSelectionFromNativeElementsPanel); + bridge.addListener('shutdown', _this.shutdown); + bridge.addListener('updateConsolePatchSettings', _this.updateConsolePatchSettings); + bridge.addListener('updateComponentFilters', _this.updateComponentFilters); + bridge.addListener('viewAttributeSource', _this.viewAttributeSource); + bridge.addListener('viewElementSource', _this.viewElementSource); + + bridge.addListener('overrideContext', _this.overrideContext); + bridge.addListener('overrideHookState', _this.overrideHookState); + bridge.addListener('overrideProps', _this.overrideProps); + bridge.addListener('overrideState', _this.overrideState); + if (_this._isProfiling) { + bridge.send('profilingStatus', true); + } + + var _version = "4.24.0-82762bea5"; + if (_version) { + _this._bridge.send('backendVersion', _version); + } + _this._bridge.send('bridgeProtocol', currentBridgeProtocol); + + var isBackendStorageAPISupported = false; + try { + localStorage.getItem('test'); + isBackendStorageAPISupported = true; + } catch (error) {} + bridge.send('isBackendStorageAPISupported', isBackendStorageAPISupported); + bridge.send('isSynchronousXHRSupported', Object(utils["h"])()); + setupHighlighter(bridge, agent_assertThisInitialized(_this)); + TraceUpdates_initialize(agent_assertThisInitialized(_this)); + return _this; + } + agent_createClass(Agent, [{ + key: "getInstanceAndStyle", + value: function getInstanceAndStyle(_ref22) { + var id = _ref22.id, + rendererID = _ref22.rendererID; + var renderer = this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + return null; + } + return renderer.getInstanceAndStyle(id); + } + }, { + key: "getIDForNode", + value: function getIDForNode(node) { + for (var rendererID in this._rendererInterfaces) { + var renderer = this._rendererInterfaces[rendererID]; + try { + var id = renderer.getFiberIDForNative(node, true); + if (id !== null) { + return id; + } + } catch (error) { + } + } + return null; + } + }, { + key: "selectNode", + value: function selectNode(target) { + var id = this.getIDForNode(target); + if (id !== null) { + this._bridge.send('selectFiber', id); + } + } + }, { + key: "setRendererInterface", + value: function setRendererInterface(rendererID, rendererInterface) { + this._rendererInterfaces[rendererID] = rendererInterface; + if (this._isProfiling) { + rendererInterface.startProfiling(this._recordChangeDescriptions); + } + rendererInterface.setTraceUpdatesEnabled(this._traceUpdatesEnabled); + + var selection = this._persistedSelection; + if (selection !== null && selection.rendererID === rendererID) { + rendererInterface.setTrackedPath(selection.path); + } + } + }, { + key: "onUnsupportedRenderer", + value: function onUnsupportedRenderer(rendererID) { + this._bridge.send('unsupportedRendererVersion', rendererID); + } + }, { + key: "rendererInterfaces", + get: function get() { + return this._rendererInterfaces; + } + }]); + return Agent; + }(EventEmitter); + + function installHook(target) { + if (target.hasOwnProperty('__REACT_DEVTOOLS_GLOBAL_HOOK__')) { + return null; + } + var targetConsole = console; + var targetConsoleMethods = {}; + for (var method in console) { + targetConsoleMethods[method] = console[method]; + } + function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { + targetConsole = targetConsoleForTesting; + targetConsoleMethods = {}; + for (var _method in targetConsole) { + targetConsoleMethods[_method] = console[_method]; + } + } + function detectReactBuildType(renderer) { + try { + if (typeof renderer.version === 'string') { + if (renderer.bundleType > 0) { + return 'development'; + } + + return 'production'; + } + + var _toString = Function.prototype.toString; + if (renderer.Mount && renderer.Mount._renderNewRootComponent) { + var renderRootCode = _toString.call(renderer.Mount._renderNewRootComponent); + + if (renderRootCode.indexOf('function') !== 0) { + return 'production'; + } + + if (renderRootCode.indexOf('storedMeasure') !== -1) { + return 'development'; + } + + if (renderRootCode.indexOf('should be a pure function') !== -1) { + if (renderRootCode.indexOf('NODE_ENV') !== -1) { + return 'development'; + } + + if (renderRootCode.indexOf('development') !== -1) { + return 'development'; + } + + if (renderRootCode.indexOf('true') !== -1) { + return 'development'; + } + + if ( + renderRootCode.indexOf('nextElement') !== -1 || + renderRootCode.indexOf('nextComponent') !== -1) { + return 'unminified'; + } else { + return 'development'; + } + } + + if ( + renderRootCode.indexOf('nextElement') !== -1 || + renderRootCode.indexOf('nextComponent') !== -1) { + return 'unminified'; + } + + return 'outdated'; + } + } catch (err) { + } + return 'production'; + } + function checkDCE(fn) { + try { + var _toString2 = Function.prototype.toString; + var code = _toString2.call(fn); + + if (code.indexOf('^_^') > -1) { + hasDetectedBadDCE = true; + + setTimeout(function () { + throw new Error('React is running in production mode, but dead code ' + 'elimination has not been applied. Read how to correctly ' + 'configure React for production: ' + 'https://reactjs.org/link/perf-use-production-build'); + }); + } + } catch (err) {} + } + + function format(maybeMessage) { + for (var _len = arguments.length, inputArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + inputArgs[_key - 1] = arguments[_key]; + } + var args = inputArgs.slice(); + + var formatted = String(maybeMessage); + + if (typeof maybeMessage === 'string') { + if (args.length) { + var REGEXP = /(%?)(%([jds]))/g; + formatted = formatted.replace(REGEXP, function (match, escaped, ptn, flag) { + var arg = args.shift(); + switch (flag) { + case 's': + arg += ''; + break; + case 'd': + case 'i': + arg = parseInt(arg, 10).toString(); + break; + case 'f': + arg = parseFloat(arg).toString(); + break; + } + if (!escaped) { + return arg; + } + args.unshift(arg); + return match; + }); + } + } + + if (args.length) { + for (var i = 0; i < args.length; i++) { + formatted += ' ' + String(args[i]); + } + } + + formatted = formatted.replace(/%{2,2}/g, '%'); + return String(formatted); + } + var unpatchFn = null; + + function patchConsoleForInitialRenderInStrictMode(_ref) { + var hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, + browserTheme = _ref.browserTheme; + var overrideConsoleMethods = ['error', 'trace', 'warn', 'log']; + if (unpatchFn !== null) { + return; + } + var originalConsoleMethods = {}; + unpatchFn = function unpatchFn() { + for (var _method2 in originalConsoleMethods) { + try { + targetConsole[_method2] = originalConsoleMethods[_method2]; + } catch (error) {} + } + }; + overrideConsoleMethods.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; + var overrideMethod = function overrideMethod() { + if (!hideConsoleLogsInStrictMode) { + var color; + switch (method) { + case 'warn': + color = browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; + break; + case 'error': + color = browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; + break; + case 'log': + default: + color = browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; + break; + } + if (color) { + originalMethod("%c".concat(format.apply(void 0, arguments)), "color: ".concat(color)); + } else { + throw Error('Console color is not defined'); + } + } + }; + overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; + + targetConsole[method] = overrideMethod; + } catch (error) {} + }); + } + + function unpatchConsoleForInitialRenderInStrictMode() { + if (unpatchFn !== null) { + unpatchFn(); + unpatchFn = null; + } + } + var uidCounter = 0; + function inject(renderer) { + var id = ++uidCounter; + renderers.set(id, renderer); + var reactBuildType = hasDetectedBadDCE ? 'deadcode' : detectReactBuildType(renderer); + + if (true) { + try { + var appendComponentStack = window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ !== false; + var breakOnConsoleErrors = window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true; + var showInlineWarningsAndErrors = window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false; + var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; + var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; + + Object(backend_console["c"])(renderer); + Object(backend_console["a"])({ + appendComponentStack: appendComponentStack, + breakOnConsoleErrors: breakOnConsoleErrors, + showInlineWarningsAndErrors: showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + } catch (error) {} + } + + var attach = target.__REACT_DEVTOOLS_ATTACH__; + if (typeof attach === 'function') { + var rendererInterface = attach(hook, id, renderer, target); + hook.rendererInterfaces.set(id, rendererInterface); + } + hook.emit('renderer', { + id: id, + renderer: renderer, + reactBuildType: reactBuildType + }); + return id; + } + var hasDetectedBadDCE = false; + function sub(event, fn) { + hook.on(event, fn); + return function () { + return hook.off(event, fn); + }; + } + function on(event, fn) { + if (!listeners[event]) { + listeners[event] = []; + } + listeners[event].push(fn); + } + function off(event, fn) { + if (!listeners[event]) { + return; + } + var index = listeners[event].indexOf(fn); + if (index !== -1) { + listeners[event].splice(index, 1); + } + if (!listeners[event].length) { + delete listeners[event]; + } + } + function emit(event, data) { + if (listeners[event]) { + listeners[event].map(function (fn) { + return fn(data); + }); + } + } + function getFiberRoots(rendererID) { + var roots = fiberRoots; + if (!roots[rendererID]) { + roots[rendererID] = new Set(); + } + return roots[rendererID]; + } + function onCommitFiberUnmount(rendererID, fiber) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handleCommitFiberUnmount(fiber); + } + } + function onCommitFiberRoot(rendererID, root, priorityLevel) { + var mountedRoots = hook.getFiberRoots(rendererID); + var current = root.current; + var isKnownRoot = mountedRoots.has(root); + var isUnmounting = current.memoizedState == null || current.memoizedState.element == null; + + if (!isKnownRoot && !isUnmounting) { + mountedRoots.add(root); + } else if (isKnownRoot && isUnmounting) { + mountedRoots.delete(root); + } + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handleCommitFiberRoot(root, priorityLevel); + } + } + function onPostCommitFiberRoot(rendererID, root) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handlePostCommitFiberRoot(root); + } + } + function setStrictMode(rendererID, isStrictMode) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + if (isStrictMode) { + rendererInterface.patchConsoleForStrictMode(); + } else { + rendererInterface.unpatchConsoleForStrictMode(); + } + } else { + if (isStrictMode) { + var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; + var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; + patchConsoleForInitialRenderInStrictMode({ + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + } else { + unpatchConsoleForInitialRenderInStrictMode(); + } + } + } + var openModuleRangesStack = []; + var moduleRanges = []; + function getTopStackFrameString(error) { + var frames = error.stack.split('\n'); + var frame = frames.length > 1 ? frames[1] : null; + return frame; + } + function getInternalModuleRanges() { + return moduleRanges; + } + function registerInternalModuleStart(error) { + var startStackFrame = getTopStackFrameString(error); + if (startStackFrame !== null) { + openModuleRangesStack.push(startStackFrame); + } + } + function registerInternalModuleStop(error) { + if (openModuleRangesStack.length > 0) { + var startStackFrame = openModuleRangesStack.pop(); + var stopStackFrame = getTopStackFrameString(error); + if (stopStackFrame !== null) { + moduleRanges.push([startStackFrame, stopStackFrame]); + } + } + } + + var fiberRoots = {}; + var rendererInterfaces = new Map(); + var listeners = {}; + var renderers = new Map(); + var hook = { + rendererInterfaces: rendererInterfaces, + listeners: listeners, + renderers: renderers, + emit: emit, + getFiberRoots: getFiberRoots, + inject: inject, + on: on, + off: off, + sub: sub, + supportsFiber: true, + checkDCE: checkDCE, + onCommitFiberUnmount: onCommitFiberUnmount, + onCommitFiberRoot: onCommitFiberRoot, + onPostCommitFiberRoot: onPostCommitFiberRoot, + setStrictMode: setStrictMode, + getInternalModuleRanges: getInternalModuleRanges, + registerInternalModuleStart: registerInternalModuleStart, + registerInternalModuleStop: registerInternalModuleStop + }; + if (false) {} + Object.defineProperty(target, '__REACT_DEVTOOLS_GLOBAL_HOOK__', { + configurable: false, + enumerable: false, + get: function get() { + return hook; + } + }); + return hook; + } + var backend_renderer = __webpack_require__(15); + + var types = __webpack_require__(1); + + var src_utils = __webpack_require__(2); + + function decorate(object, attr, fn) { + var old = object[attr]; + object[attr] = function (instance) { + return fn.call(this, old, arguments); + }; + return old; + } + function decorateMany(source, fns) { + var olds = {}; + for (var name in fns) { + olds[name] = decorate(source, name, fns[name]); + } + return olds; + } + function restoreMany(source, olds) { + for (var name in olds) { + source[name] = olds[name]; + } + } + function forceUpdate(instance) { + if (typeof instance.forceUpdate === 'function') { + instance.forceUpdate(); + } else if (instance.updater != null && typeof instance.updater.enqueueForceUpdate === 'function') { + instance.updater.enqueueForceUpdate(this, function () {}, 'forceUpdate'); + } + } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + renderer_defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function renderer_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + function renderer_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + renderer_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + renderer_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return renderer_typeof(obj); + } + + function getData(internalInstance) { + var displayName = null; + var key = null; + + if (internalInstance._currentElement != null) { + if (internalInstance._currentElement.key) { + key = String(internalInstance._currentElement.key); + } + var elementType = internalInstance._currentElement.type; + if (typeof elementType === 'string') { + displayName = elementType; + } else if (typeof elementType === 'function') { + displayName = Object(src_utils["f"])(elementType); + } + } + return { + displayName: displayName, + key: key + }; + } + function getElementType(internalInstance) { + if (internalInstance._currentElement != null) { + var elementType = internalInstance._currentElement.type; + if (typeof elementType === 'function') { + var publicInstance = internalInstance.getPublicInstance(); + if (publicInstance !== null) { + return types["e"]; + } else { + return types["h"]; + } + } else if (typeof elementType === 'string') { + return types["i"]; + } + } + + return types["k"]; + } + + function getChildren(internalInstance) { + var children = []; + + if (renderer_typeof(internalInstance) !== 'object') { + } else if (internalInstance._currentElement === null || internalInstance._currentElement === false) { + } else if (internalInstance._renderedComponent) { + var child = internalInstance._renderedComponent; + if (getElementType(child) !== types["k"]) { + children.push(child); + } + } else if (internalInstance._renderedChildren) { + var renderedChildren = internalInstance._renderedChildren; + for (var name in renderedChildren) { + var _child = renderedChildren[name]; + if (getElementType(_child) !== types["k"]) { + children.push(_child); + } + } + } + + return children; + } + function renderer_attach(hook, rendererID, renderer, global) { + var idToInternalInstanceMap = new Map(); + var internalInstanceToIDMap = new WeakMap(); + var internalInstanceToRootIDMap = new WeakMap(); + var getInternalIDForNative = null; + var findNativeNodeForInternalID; + if (renderer.ComponentTree) { + getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { + var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node); + return internalInstanceToIDMap.get(internalInstance) || null; + }; + findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { + var internalInstance = idToInternalInstanceMap.get(id); + return renderer.ComponentTree.getNodeFromInstance(internalInstance); + }; + } else if (renderer.Mount.getID && renderer.Mount.getNode) { + getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { + return null; + }; + findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { + return null; + }; + } + function getDisplayNameForFiberID(id) { + var internalInstance = idToInternalInstanceMap.get(id); + return internalInstance ? getData(internalInstance).displayName : null; + } + function getID(internalInstance) { + if (renderer_typeof(internalInstance) !== 'object' || internalInstance === null) { + throw new Error('Invalid internal instance: ' + internalInstance); + } + if (!internalInstanceToIDMap.has(internalInstance)) { + var _id = Object(src_utils["i"])(); + + internalInstanceToIDMap.set(internalInstance, _id); + idToInternalInstanceMap.set(_id, internalInstance); + } + return internalInstanceToIDMap.get(internalInstance); + } + function areEqualArrays(a, b) { + if (a.length !== b.length) { + return false; + } + for (var i = 0; i < a.length; i++) { + if (a[i] !== b[i]) { + return false; + } + } + return true; + } + + var parentIDStack = []; + var oldReconcilerMethods = null; + if (renderer.Reconciler) { + oldReconcilerMethods = decorateMany(renderer.Reconciler, { + mountComponent: function mountComponent(fn, args) { + var internalInstance = args[0]; + var hostContainerInfo = args[3]; + if (getElementType(internalInstance) === types["k"]) { + return fn.apply(this, args); + } + if (hostContainerInfo._topLevelWrapper === undefined) { + return fn.apply(this, args); + } + var id = getID(internalInstance); + + var parentID = parentIDStack.length > 0 ? parentIDStack[parentIDStack.length - 1] : 0; + recordMount(internalInstance, id, parentID); + parentIDStack.push(id); + + internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper)); + try { + var result = fn.apply(this, args); + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + performUpdateIfNecessary: function performUpdateIfNecessary(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === types["k"]) { + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + var prevChildren = getChildren(internalInstance); + try { + var result = fn.apply(this, args); + var nextChildren = getChildren(internalInstance); + if (!areEqualArrays(prevChildren, nextChildren)) { + recordReorder(internalInstance, id, nextChildren); + } + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + receiveComponent: function receiveComponent(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === types["k"]) { + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + var prevChildren = getChildren(internalInstance); + try { + var result = fn.apply(this, args); + var nextChildren = getChildren(internalInstance); + if (!areEqualArrays(prevChildren, nextChildren)) { + recordReorder(internalInstance, id, nextChildren); + } + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + unmountComponent: function unmountComponent(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === types["k"]) { + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + try { + var result = fn.apply(this, args); + parentIDStack.pop(); + + recordUnmount(internalInstance, id); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + } + }); + } + function cleanup() { + if (oldReconcilerMethods !== null) { + if (renderer.Component) { + restoreMany(renderer.Component.Mixin, oldReconcilerMethods); + } else { + restoreMany(renderer.Reconciler, oldReconcilerMethods); + } + } + oldReconcilerMethods = null; + } + function recordMount(internalInstance, id, parentID) { + var isRoot = parentID === 0; + if (constants["s"]) { + console.log('%crecordMount()', 'color: green; font-weight: bold;', id, getData(internalInstance).displayName); + } + if (isRoot) { + var hasOwnerMetadata = internalInstance._currentElement != null && internalInstance._currentElement._owner != null; + pushOperation(constants["l"]); + pushOperation(id); + pushOperation(types["m"]); + pushOperation(0); + + pushOperation(0); + + pushOperation(0); + + pushOperation(hasOwnerMetadata ? 1 : 0); + } else { + var type = getElementType(internalInstance); + var _getData = getData(internalInstance), + displayName = _getData.displayName, + key = _getData.key; + var ownerID = internalInstance._currentElement != null && internalInstance._currentElement._owner != null ? getID(internalInstance._currentElement._owner) : 0; + var displayNameStringID = getStringID(displayName); + var keyStringID = getStringID(key); + pushOperation(constants["l"]); + pushOperation(id); + pushOperation(type); + pushOperation(parentID); + pushOperation(ownerID); + pushOperation(displayNameStringID); + pushOperation(keyStringID); + } + } + function recordReorder(internalInstance, id, nextChildren) { + pushOperation(constants["o"]); + pushOperation(id); + var nextChildIDs = nextChildren.map(getID); + pushOperation(nextChildIDs.length); + for (var i = 0; i < nextChildIDs.length; i++) { + pushOperation(nextChildIDs[i]); + } + } + function recordUnmount(internalInstance, id) { + pendingUnmountedIDs.push(id); + idToInternalInstanceMap.delete(id); + } + function crawlAndRecordInitialMounts(id, parentID, rootID) { + if (constants["s"]) { + console.group('crawlAndRecordInitialMounts() id:', id); + } + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + internalInstanceToRootIDMap.set(internalInstance, rootID); + recordMount(internalInstance, id, parentID); + getChildren(internalInstance).forEach(function (child) { + return crawlAndRecordInitialMounts(getID(child), id, rootID); + }); + } + if (constants["s"]) { + console.groupEnd(); + } + } + function flushInitialOperations() { + var roots = renderer.Mount._instancesByReactRootID || renderer.Mount._instancesByContainerID; + for (var key in roots) { + var internalInstance = roots[key]; + var _id2 = getID(internalInstance); + crawlAndRecordInitialMounts(_id2, 0, _id2); + flushPendingEvents(_id2); + } + } + var pendingOperations = []; + var pendingStringTable = new Map(); + var pendingUnmountedIDs = []; + var pendingStringTableLength = 0; + var pendingUnmountedRootID = null; + function flushPendingEvents(rootID) { + if (pendingOperations.length === 0 && pendingUnmountedIDs.length === 0 && pendingUnmountedRootID === null) { + return; + } + var numUnmountIDs = pendingUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); + var operations = new Array( + 2 + + 1 + + pendingStringTableLength + ( + numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + + pendingOperations.length); + + var i = 0; + operations[i++] = rendererID; + operations[i++] = rootID; + + operations[i++] = pendingStringTableLength; + pendingStringTable.forEach(function (value, key) { + operations[i++] = key.length; + var encodedKey = Object(src_utils["m"])(key); + for (var j = 0; j < encodedKey.length; j++) { + operations[i + j] = encodedKey[j]; + } + i += key.length; + }); + if (numUnmountIDs > 0) { + operations[i++] = constants["m"]; + + operations[i++] = numUnmountIDs; + + for (var j = 0; j < pendingUnmountedIDs.length; j++) { + operations[i++] = pendingUnmountedIDs[j]; + } + + if (pendingUnmountedRootID !== null) { + operations[i] = pendingUnmountedRootID; + i++; + } + } + + for (var _j = 0; _j < pendingOperations.length; _j++) { + operations[i + _j] = pendingOperations[_j]; + } + i += pendingOperations.length; + if (constants["s"]) { + Object(src_utils["j"])(operations); + } + + hook.emit('operations', operations); + pendingOperations.length = 0; + pendingUnmountedIDs = []; + pendingUnmountedRootID = null; + pendingStringTable.clear(); + pendingStringTableLength = 0; + } + function pushOperation(op) { + if (false) {} + pendingOperations.push(op); + } + function getStringID(str) { + if (str === null) { + return 0; + } + var existingID = pendingStringTable.get(str); + if (existingID !== undefined) { + return existingID; + } + var stringID = pendingStringTable.size + 1; + pendingStringTable.set(str, stringID); + + pendingStringTableLength += str.length + 1; + return stringID; + } + var currentlyInspectedElementID = null; + var currentlyInspectedPaths = {}; + + function mergeInspectedPaths(path) { + var current = currentlyInspectedPaths; + path.forEach(function (key) { + if (!current[key]) { + current[key] = {}; + } + current = current[key]; + }); + } + function createIsPathAllowed(key) { + return function isPathAllowed(path) { + var current = currentlyInspectedPaths[key]; + if (!current) { + return false; + } + for (var i = 0; i < path.length; i++) { + current = current[path[i]]; + if (!current) { + return false; + } + } + return true; + }; + } + + function getInstanceAndStyle(id) { + var instance = null; + var style = null; + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + instance = internalInstance._instance || null; + var element = internalInstance._currentElement; + if (element != null && element.props != null) { + style = element.props.style || null; + } + } + return { + instance: instance, + style: style + }; + } + function updateSelectedElement(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + console.warn("Could not find instance with id \"".concat(id, "\"")); + return; + } + switch (getElementType(internalInstance)) { + case types["e"]: + global.$r = internalInstance._instance; + break; + case types["h"]: + var element = internalInstance._currentElement; + if (element == null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + global.$r = { + props: element.props, + type: element.type + }; + break; + default: + global.$r = null; + break; + } + } + function storeAsGlobal(id, path, count) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + var value = Object(src_utils["h"])(inspectedElement, path); + var key = "$reactTemp".concat(count); + window[key] = value; + console.log(key); + console.log(value); + } + } + function copyElementPath(id, path) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + Object(utils["b"])(Object(src_utils["h"])(inspectedElement, path)); + } + } + function inspectElement(requestID, id, path, forceFullData) { + if (forceFullData || currentlyInspectedElementID !== id) { + currentlyInspectedElementID = id; + currentlyInspectedPaths = {}; + } + var inspectedElement = inspectElementRaw(id); + if (inspectedElement === null) { + return { + id: id, + responseID: requestID, + type: 'not-found' + }; + } + if (path !== null) { + mergeInspectedPaths(path); + } + + updateSelectedElement(id); + inspectedElement.context = Object(utils["a"])(inspectedElement.context, createIsPathAllowed('context')); + inspectedElement.props = Object(utils["a"])(inspectedElement.props, createIsPathAllowed('props')); + inspectedElement.state = Object(utils["a"])(inspectedElement.state, createIsPathAllowed('state')); + return { + id: id, + responseID: requestID, + type: 'full-data', + value: inspectedElement + }; + } + function inspectElementRaw(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + return null; + } + var _getData2 = getData(internalInstance), + displayName = _getData2.displayName, + key = _getData2.key; + var type = getElementType(internalInstance); + var context = null; + var owners = null; + var props = null; + var state = null; + var source = null; + var element = internalInstance._currentElement; + if (element !== null) { + props = element.props; + source = element._source != null ? element._source : null; + var owner = element._owner; + if (owner) { + owners = []; + while (owner != null) { + owners.push({ + displayName: getData(owner).displayName || 'Unknown', + id: getID(owner), + key: element.key, + type: getElementType(owner) + }); + if (owner._currentElement) { + owner = owner._currentElement._owner; + } + } + } + } + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + context = publicInstance.context || null; + state = publicInstance.state || null; + } + + var errors = []; + var warnings = []; + return { + id: id, + canEditHooks: false, + canEditFunctionProps: false, + canEditHooksAndDeletePaths: false, + canEditHooksAndRenamePaths: false, + canEditFunctionPropsDeletePaths: false, + canEditFunctionPropsRenamePaths: false, + canToggleError: false, + isErrored: false, + targetErrorBoundaryID: null, + canToggleSuspense: false, + canViewSource: type === types["e"] || type === types["h"], + + hasLegacyContext: true, + displayName: displayName, + type: type, + key: key != null ? key : null, + context: context, + hooks: null, + props: props, + state: state, + errors: errors, + warnings: warnings, + owners: owners, + source: source, + rootType: null, + rendererPackageName: null, + rendererVersion: null, + plugins: { + stylex: null + } + }; + } + function logElementToConsole(id) { + var result = inspectElementRaw(id); + if (result === null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + var supportsGroup = typeof console.groupCollapsed === 'function'; + if (supportsGroup) { + console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), + 'color: var(--dom-tag-name-color); font-weight: normal;'); + } + if (result.props !== null) { + console.log('Props:', result.props); + } + if (result.state !== null) { + console.log('State:', result.state); + } + if (result.context !== null) { + console.log('Context:', result.context); + } + var nativeNode = findNativeNodeForInternalID(id); + if (nativeNode !== null) { + console.log('Node:', nativeNode); + } + if (window.chrome || /firefox/i.test(navigator.userAgent)) { + console.log('Right-click any value to save it as a global variable for further inspection.'); + } + if (supportsGroup) { + console.groupEnd(); + } + } + function prepareViewAttributeSource(id, path) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + window.$attribute = Object(src_utils["h"])(inspectedElement, path); + } + } + function prepareViewElementSource(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + console.warn("Could not find instance with id \"".concat(id, "\"")); + return; + } + var element = internalInstance._currentElement; + if (element == null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + global.$type = element.type; + } + function deletePath(type, id, hookID, path) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + Object(src_utils["a"])(publicInstance.context, path); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { + props: Object(utils["c"])(element.props, path) + }); + forceUpdate(publicInstance); + break; + case 'state': + Object(src_utils["a"])(publicInstance.state, path); + forceUpdate(publicInstance); + break; + } + } + } + } + function renamePath(type, id, hookID, oldPath, newPath) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + Object(src_utils["k"])(publicInstance.context, oldPath, newPath); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { + props: Object(utils["d"])(element.props, oldPath, newPath) + }); + forceUpdate(publicInstance); + break; + case 'state': + Object(src_utils["k"])(publicInstance.state, oldPath, newPath); + forceUpdate(publicInstance); + break; + } + } + } + } + function overrideValueAtPath(type, id, hookID, path, value) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + Object(src_utils["l"])(publicInstance.context, path, value); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { + props: Object(utils["e"])(element.props, path, value) + }); + forceUpdate(publicInstance); + break; + case 'state': + Object(src_utils["l"])(publicInstance.state, path, value); + forceUpdate(publicInstance); + break; + } + } + } + } + + var getProfilingData = function getProfilingData() { + throw new Error('getProfilingData not supported by this renderer'); + }; + var handleCommitFiberRoot = function handleCommitFiberRoot() { + throw new Error('handleCommitFiberRoot not supported by this renderer'); + }; + var handleCommitFiberUnmount = function handleCommitFiberUnmount() { + throw new Error('handleCommitFiberUnmount not supported by this renderer'); + }; + var handlePostCommitFiberRoot = function handlePostCommitFiberRoot() { + throw new Error('handlePostCommitFiberRoot not supported by this renderer'); + }; + var overrideError = function overrideError() { + throw new Error('overrideError not supported by this renderer'); + }; + var overrideSuspense = function overrideSuspense() { + throw new Error('overrideSuspense not supported by this renderer'); + }; + var startProfiling = function startProfiling() { + }; + var stopProfiling = function stopProfiling() { + }; + function getBestMatchForTrackedPath() { + return null; + } + function getPathForElement(id) { + return null; + } + function updateComponentFilters(componentFilters) { + } + function setTraceUpdatesEnabled(enabled) { + } + function setTrackedPath(path) { + } + function getOwnersList(id) { + return null; + } + function clearErrorsAndWarnings() { + } + function clearErrorsForFiberID(id) { + } + function clearWarningsForFiberID(id) { + } + function patchConsoleForStrictMode() {} + function unpatchConsoleForStrictMode() {} + return { + clearErrorsAndWarnings: clearErrorsAndWarnings, + clearErrorsForFiberID: clearErrorsForFiberID, + clearWarningsForFiberID: clearWarningsForFiberID, + cleanup: cleanup, + copyElementPath: copyElementPath, + deletePath: deletePath, + flushInitialOperations: flushInitialOperations, + getBestMatchForTrackedPath: getBestMatchForTrackedPath, + getDisplayNameForFiberID: getDisplayNameForFiberID, + getFiberIDForNative: getInternalIDForNative, + getInstanceAndStyle: getInstanceAndStyle, + findNativeNodesForFiberID: function findNativeNodesForFiberID(id) { + var nativeNode = findNativeNodeForInternalID(id); + return nativeNode == null ? null : [nativeNode]; + }, + getOwnersList: getOwnersList, + getPathForElement: getPathForElement, + getProfilingData: getProfilingData, + handleCommitFiberRoot: handleCommitFiberRoot, + handleCommitFiberUnmount: handleCommitFiberUnmount, + handlePostCommitFiberRoot: handlePostCommitFiberRoot, + inspectElement: inspectElement, + logElementToConsole: logElementToConsole, + overrideError: overrideError, + overrideSuspense: overrideSuspense, + overrideValueAtPath: overrideValueAtPath, + renamePath: renamePath, + patchConsoleForStrictMode: patchConsoleForStrictMode, + prepareViewAttributeSource: prepareViewAttributeSource, + prepareViewElementSource: prepareViewElementSource, + renderer: renderer, + setTraceUpdatesEnabled: setTraceUpdatesEnabled, + setTrackedPath: setTrackedPath, + startProfiling: startProfiling, + stopProfiling: stopProfiling, + storeAsGlobal: storeAsGlobal, + unpatchConsoleForStrictMode: unpatchConsoleForStrictMode, + updateComponentFilters: updateComponentFilters + }; + } + + function initBackend(hook, agent, global) { + if (hook == null) { + return function () {}; + } + var subs = [hook.sub('renderer-attached', function (_ref) { + var id = _ref.id, + renderer = _ref.renderer, + rendererInterface = _ref.rendererInterface; + agent.setRendererInterface(id, rendererInterface); + + rendererInterface.flushInitialOperations(); + }), hook.sub('unsupported-renderer-version', function (id) { + agent.onUnsupportedRenderer(id); + }), hook.sub('fastRefreshScheduled', agent.onFastRefreshScheduled), hook.sub('operations', agent.onHookOperations), hook.sub('traceUpdates', agent.onTraceUpdates)]; + + var attachRenderer = function attachRenderer(id, renderer) { + var rendererInterface = hook.rendererInterfaces.get(id); + + if (rendererInterface == null) { + if (typeof renderer.findFiberByHostInstance === 'function') { + rendererInterface = Object(backend_renderer["a"])(hook, id, renderer, global); + } else if (renderer.ComponentTree) { + rendererInterface = renderer_attach(hook, id, renderer, global); + } else { + } + if (rendererInterface != null) { + hook.rendererInterfaces.set(id, rendererInterface); + } + } + + if (rendererInterface != null) { + hook.emit('renderer-attached', { + id: id, + renderer: renderer, + rendererInterface: rendererInterface + }); + } else { + hook.emit('unsupported-renderer-version', id); + } + }; + + hook.renderers.forEach(function (renderer, id) { + attachRenderer(id, renderer); + }); + + subs.push(hook.sub('renderer', function (_ref2) { + var id = _ref2.id, + renderer = _ref2.renderer; + attachRenderer(id, renderer); + })); + hook.emit('react-devtools', agent); + hook.reactDevtoolsAgent = agent; + var onAgentShutdown = function onAgentShutdown() { + subs.forEach(function (fn) { + return fn(); + }); + hook.rendererInterfaces.forEach(function (rendererInterface) { + rendererInterface.cleanup(); + }); + hook.reactDevtoolsAgent = null; + }; + agent.addListener('shutdown', onAgentShutdown); + subs.push(function () { + agent.removeListener('shutdown', onAgentShutdown); + }); + return function () { + subs.forEach(function (fn) { + return fn(); + }); + }; + } + + function resolveBoxStyle(prefix, style) { + var hasParts = false; + var result = { + bottom: 0, + left: 0, + right: 0, + top: 0 + }; + var styleForAll = style[prefix]; + if (styleForAll != null) { + for (var _i = 0, _Object$keys = Object.keys(result); _i < _Object$keys.length; _i++) { + var key = _Object$keys[_i]; + result[key] = styleForAll; + } + hasParts = true; + } + var styleForHorizontal = style[prefix + 'Horizontal']; + if (styleForHorizontal != null) { + result.left = styleForHorizontal; + result.right = styleForHorizontal; + hasParts = true; + } else { + var styleForLeft = style[prefix + 'Left']; + if (styleForLeft != null) { + result.left = styleForLeft; + hasParts = true; + } + var styleForRight = style[prefix + 'Right']; + if (styleForRight != null) { + result.right = styleForRight; + hasParts = true; + } + var styleForEnd = style[prefix + 'End']; + if (styleForEnd != null) { + result.right = styleForEnd; + hasParts = true; + } + var styleForStart = style[prefix + 'Start']; + if (styleForStart != null) { + result.left = styleForStart; + hasParts = true; + } + } + var styleForVertical = style[prefix + 'Vertical']; + if (styleForVertical != null) { + result.bottom = styleForVertical; + result.top = styleForVertical; + hasParts = true; + } else { + var styleForBottom = style[prefix + 'Bottom']; + if (styleForBottom != null) { + result.bottom = styleForBottom; + hasParts = true; + } + var styleForTop = style[prefix + 'Top']; + if (styleForTop != null) { + result.top = styleForTop; + hasParts = true; + } + } + return hasParts ? result : null; + } + var isArray = __webpack_require__(6); + + function setupNativeStyleEditor_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + setupNativeStyleEditor_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + setupNativeStyleEditor_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return setupNativeStyleEditor_typeof(obj); + } + function setupNativeStyleEditor_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + function setupNativeStyleEditor(bridge, agent, resolveNativeStyle, validAttributes) { + bridge.addListener('NativeStyleEditor_measure', function (_ref) { + var id = _ref.id, + rendererID = _ref.rendererID; + measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); + }); + bridge.addListener('NativeStyleEditor_renameAttribute', function (_ref2) { + var id = _ref2.id, + rendererID = _ref2.rendererID, + oldName = _ref2.oldName, + newName = _ref2.newName, + value = _ref2.value; + renameStyle(agent, id, rendererID, oldName, newName, value); + setTimeout(function () { + return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); + }); + }); + bridge.addListener('NativeStyleEditor_setValue', function (_ref3) { + var id = _ref3.id, + rendererID = _ref3.rendererID, + name = _ref3.name, + value = _ref3.value; + setStyle(agent, id, rendererID, name, value); + setTimeout(function () { + return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); + }); + }); + bridge.send('isNativeStyleEditorSupported', { + isSupported: true, + validAttributes: validAttributes + }); + } + var EMPTY_BOX_STYLE = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + var componentIDToStyleOverrides = new Map(); + function measureStyle(agent, bridge, resolveNativeStyle, id, rendererID) { + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID + }); + if (!data || !data.style) { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: null + }); + return; + } + var instance = data.instance, + style = data.style; + var resolvedStyle = resolveNativeStyle(style); + + var styleOverrides = componentIDToStyleOverrides.get(id); + if (styleOverrides != null) { + resolvedStyle = Object.assign({}, resolvedStyle, styleOverrides); + } + if (!instance || typeof instance.measure !== 'function') { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: resolvedStyle || null + }); + return; + } + + instance.measure(function (x, y, width, height, left, top) { + if (typeof x !== 'number') { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: resolvedStyle || null + }); + return; + } + var margin = resolvedStyle != null && resolveBoxStyle('margin', resolvedStyle) || EMPTY_BOX_STYLE; + var padding = resolvedStyle != null && resolveBoxStyle('padding', resolvedStyle) || EMPTY_BOX_STYLE; + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: { + x: x, + y: y, + width: width, + height: height, + left: left, + top: top, + margin: margin, + padding: padding + }, + style: resolvedStyle || null + }); + }); + } + function shallowClone(object) { + var cloned = {}; + for (var n in object) { + cloned[n] = object[n]; + } + return cloned; + } + function renameStyle(agent, id, rendererID, oldName, newName, value) { + var _ref4; + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID + }); + if (!data || !data.style) { + return; + } + var instance = data.instance, + style = data.style; + var newStyle = newName ? (_ref4 = {}, setupNativeStyleEditor_defineProperty(_ref4, oldName, undefined), setupNativeStyleEditor_defineProperty(_ref4, newName, value), _ref4) : setupNativeStyleEditor_defineProperty({}, oldName, undefined); + var customStyle; + + if (instance !== null && typeof instance.setNativeProps === 'function') { + var styleOverrides = componentIDToStyleOverrides.get(id); + if (!styleOverrides) { + componentIDToStyleOverrides.set(id, newStyle); + } else { + Object.assign(styleOverrides, newStyle); + } + + instance.setNativeProps({ + style: newStyle + }); + } else if (Object(isArray["a"])(style)) { + var lastIndex = style.length - 1; + if (setupNativeStyleEditor_typeof(style[lastIndex]) === 'object' && !Object(isArray["a"])(style[lastIndex])) { + customStyle = shallowClone(style[lastIndex]); + delete customStyle[oldName]; + if (newName) { + customStyle[newName] = value; + } else { + customStyle[oldName] = undefined; + } + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style', lastIndex], + value: customStyle + }); + } else { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: style.concat([newStyle]) + }); + } + } else if (setupNativeStyleEditor_typeof(style) === 'object') { + customStyle = shallowClone(style); + delete customStyle[oldName]; + if (newName) { + customStyle[newName] = value; + } else { + customStyle[oldName] = undefined; + } + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: customStyle + }); + } else { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: [style, newStyle] + }); + } + agent.emit('hideNativeHighlight'); + } + function setStyle(agent, id, rendererID, name, value) { + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID + }); + if (!data || !data.style) { + return; + } + var instance = data.instance, + style = data.style; + var newStyle = setupNativeStyleEditor_defineProperty({}, name, value); + + if (instance !== null && typeof instance.setNativeProps === 'function') { + var styleOverrides = componentIDToStyleOverrides.get(id); + if (!styleOverrides) { + componentIDToStyleOverrides.set(id, newStyle); + } else { + Object.assign(styleOverrides, newStyle); + } + + instance.setNativeProps({ + style: newStyle + }); + } else if (Object(isArray["a"])(style)) { + var lastLength = style.length - 1; + if (setupNativeStyleEditor_typeof(style[lastLength]) === 'object' && !Object(isArray["a"])(style[lastLength])) { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style', lastLength, name], + value: value + }); + } else { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: style.concat([newStyle]) + }); + } + } else { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: [style, newStyle] + }); + } + agent.emit('hideNativeHighlight'); + } + + installHook(window); + var backend_hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var savedComponentFilters = Object(src_utils["e"])(); + + function backend_debug(methodName) { + if (constants["s"]) { + var _console; + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + (_console = console).log.apply(_console, ["%c[core/backend] %c".concat(methodName), 'color: teal; font-weight: bold;', 'font-weight: bold;'].concat(args)); + } + } + function connectToDevTools(options) { + if (backend_hook == null) { + return; + } + var _ref = options || {}, + _ref$host = _ref.host, + host = _ref$host === void 0 ? 'localhost' : _ref$host, + nativeStyleEditorValidAttributes = _ref.nativeStyleEditorValidAttributes, + _ref$useHttps = _ref.useHttps, + useHttps = _ref$useHttps === void 0 ? false : _ref$useHttps, + _ref$port = _ref.port, + port = _ref$port === void 0 ? 8097 : _ref$port, + websocket = _ref.websocket, + _ref$resolveRNStyle = _ref.resolveRNStyle, + resolveRNStyle = _ref$resolveRNStyle === void 0 ? null : _ref$resolveRNStyle, + _ref$retryConnectionD = _ref.retryConnectionDelay, + retryConnectionDelay = _ref$retryConnectionD === void 0 ? 2000 : _ref$retryConnectionD, + _ref$isAppActive = _ref.isAppActive, + isAppActive = _ref$isAppActive === void 0 ? function () { + return true; + } : _ref$isAppActive; + var protocol = useHttps ? 'wss' : 'ws'; + var retryTimeoutID = null; + function scheduleRetry() { + if (retryTimeoutID === null) { + retryTimeoutID = setTimeout(function () { + return connectToDevTools(options); + }, retryConnectionDelay); + } + } + if (!isAppActive()) { + scheduleRetry(); + return; + } + var bridge = null; + var messageListeners = []; + var uri = protocol + '://' + host + ':' + port; + + var ws = websocket ? websocket : new window.WebSocket(uri); + ws.onclose = handleClose; + ws.onerror = handleFailed; + ws.onmessage = handleMessage; + ws.onopen = function () { + bridge = new src_bridge({ + listen: function listen(fn) { + messageListeners.push(fn); + return function () { + var index = messageListeners.indexOf(fn); + if (index >= 0) { + messageListeners.splice(index, 1); + } + }; + }, + send: function send(event, payload, transferable) { + if (ws.readyState === ws.OPEN) { + if (constants["s"]) { + backend_debug('wall.send()', event, payload); + } + ws.send(JSON.stringify({ + event: event, + payload: payload + })); + } else { + if (constants["s"]) { + backend_debug('wall.send()', 'Shutting down bridge because of closed WebSocket connection'); + } + if (bridge !== null) { + bridge.shutdown(); + } + scheduleRetry(); + } + } + }); + bridge.addListener('inspectElement', function (_ref2) { + var id = _ref2.id, + rendererID = _ref2.rendererID; + var renderer = agent.rendererInterfaces[rendererID]; + if (renderer != null) { + var nodes = renderer.findNativeNodesForFiberID(id); + if (nodes != null && nodes[0] != null) { + agent.emit('showNativeHighlight', nodes[0]); + } + } + }); + bridge.addListener('updateComponentFilters', function (componentFilters) { + savedComponentFilters = componentFilters; + }); + + if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ == null) { + bridge.send('overrideComponentFilters', savedComponentFilters); + } + + var agent = new agent_Agent(bridge); + agent.addListener('shutdown', function () { + backend_hook.emit('shutdown'); + }); + initBackend(backend_hook, agent, window); + + if (resolveRNStyle != null || backend_hook.resolveRNStyle != null) { + setupNativeStyleEditor(bridge, agent, resolveRNStyle || backend_hook.resolveRNStyle, nativeStyleEditorValidAttributes || backend_hook.nativeStyleEditorValidAttributes || null); + } else { + var lazyResolveRNStyle; + var lazyNativeStyleEditorValidAttributes; + var initAfterTick = function initAfterTick() { + if (bridge !== null) { + setupNativeStyleEditor(bridge, agent, lazyResolveRNStyle, lazyNativeStyleEditorValidAttributes); + } + }; + if (!backend_hook.hasOwnProperty('resolveRNStyle')) { + Object.defineProperty(backend_hook, 'resolveRNStyle', { + enumerable: false, + get: function get() { + return lazyResolveRNStyle; + }, + set: function set(value) { + lazyResolveRNStyle = value; + initAfterTick(); + } + }); + } + if (!backend_hook.hasOwnProperty('nativeStyleEditorValidAttributes')) { + Object.defineProperty(backend_hook, 'nativeStyleEditorValidAttributes', { + enumerable: false, + get: function get() { + return lazyNativeStyleEditorValidAttributes; + }, + set: function set(value) { + lazyNativeStyleEditorValidAttributes = value; + initAfterTick(); + } + }); + } + } + }; + function handleClose() { + if (constants["s"]) { + backend_debug('WebSocket.onclose'); + } + if (bridge !== null) { + bridge.emit('shutdown'); + } + scheduleRetry(); + } + function handleFailed() { + if (constants["s"]) { + backend_debug('WebSocket.onerror'); + } + scheduleRetry(); + } + function handleMessage(event) { + var data; + try { + if (typeof event.data === 'string') { + data = JSON.parse(event.data); + if (constants["s"]) { + backend_debug('WebSocket.onmessage', data); + } + } else { + throw Error(); + } + } catch (e) { + console.error('[React DevTools] Failed to parse JSON: ' + event.data); + return; + } + messageListeners.forEach(function (fn) { + try { + fn(data); + } catch (error) { + console.log('[React DevTools] Error calling listener', data); + console.log('error:', error); + throw error; + } + }); + } + } + + } + ]); + }); +},179,[180],"node_modules/react-devtools-core/dist/backend.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var runtime = _$$_REQUIRE(_dependencyMap[0], "../helpers/regeneratorRuntime")(); + module.exports = runtime; + + try { + regeneratorRuntime = runtime; + } catch (accidentalStrictMode) { + if (typeof globalThis === "object") { + globalThis.regeneratorRuntime = runtime; + } else { + Function("r", "regeneratorRuntime = r")(runtime); + } + } +},180,[181],"node_modules/@babel/runtime/regenerator/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _regeneratorRuntime() { + "use strict"; + + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { + return exports; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + var exports = {}, + Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + defineProperty = Object.defineProperty || function (obj, key, desc) { + obj[key] = desc.value; + }, + $Symbol = "function" == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || "@@iterator", + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + function define(obj, key, value) { + return Object.defineProperty(obj, key, { + value: value, + enumerable: !0, + configurable: !0, + writable: !0 + }), obj[key]; + } + try { + define({}, ""); + } catch (err) { + define = function define(obj, key, value) { + return obj[key] = value; + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return defineProperty(generator, "_invoke", { + value: makeInvokeMethod(innerFn, self, context) + }), generator; + } + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + exports.wrap = wrap; + var ContinueSentinel = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if ("throw" !== record.type) { + var result = record.arg, + value = result.value; + return value && "object" == _$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }) : PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped, resolve(result); + }, function (error) { + return invoke("throw", error, resolve, reject); + }); + } + reject(record.arg); + } + var previousPromise; + defineProperty(this, "_invoke", { + value: function value(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + }); + } + function makeInvokeMethod(innerFn, self, context) { + var state = "suspendedStart"; + return function (method, arg) { + if ("executing" === state) throw new Error("Generator is already running"); + if ("completed" === state) { + if ("throw" === method) throw arg; + return doneResult(); + } + for (context.method = method, context.arg = arg;;) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { + if ("suspendedStart" === state) throw state = "completed", context.arg; + context.dispatchException(context.arg); + } else "return" === context.method && context.abrupt("return", context.arg); + state = "executing"; + var record = tryCatch(innerFn, self, context); + if ("normal" === record.type) { + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; + return { + value: record.arg, + done: context.done + }; + } + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); + } + }; + } + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (undefined === method) { + if (context.delegate = null, "throw" === context.method) { + if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; + context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return ContinueSentinel; + } + var record = tryCatch(method, delegate.iterator, context.arg); + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; + var info = record.arg; + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); + } + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal", delete record.arg, entry.completion = record; + } + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); + } + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) return iteratorMethod.call(iterable); + if ("function" == typeof iterable.next) return iterable; + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + for (; ++i < iterable.length;) { + if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; + } + return next.value = undefined, next.done = !0, next; + }; + return next.next = next; + } + } + return { + next: doneResult + }; + } + function doneResult() { + return { + value: undefined, + done: !0 + }; + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { + value: GeneratorFunctionPrototype, + configurable: !0 + }), defineProperty(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: !0 + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { + var ctor = "function" == typeof genFun && genFun.constructor; + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); + }, exports.mark = function (genFun) { + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; + }, exports.awrap = function (arg) { + return { + __await: arg + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { + return this; + }), define(Gp, "toString", function () { + return "[object Generator]"; + }), exports.keys = function (val) { + var object = Object(val), + keys = []; + for (var key in object) { + keys.push(key); + } + return keys.reverse(), function next() { + for (; keys.length;) { + var key = keys.pop(); + if (key in object) return next.value = key, next.done = !1, next; + } + return next.done = !0, next; + }; + }, exports.values = values, Context.prototype = { + constructor: Context, + reset: function reset(skipTempReset) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { + "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); + } + }, + stop: function stop() { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ("throw" === rootRecord.type) throw rootRecord.arg; + return this.rval; + }, + dispatchException: function dispatchException(exception) { + if (this.done) throw exception; + var context = this; + function handle(loc, caught) { + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i], + record = entry.completion; + if ("root" === entry.tryLoc) return handle("end"); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"), + hasFinally = hasOwn.call(entry, "finallyLoc"); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } else if (hasCatch) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + } else { + if (!hasFinally) throw new Error("try statement without catch or finally"); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } + } + } + }, + abrupt: function abrupt(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); + var record = finallyEntry ? finallyEntry.completion : {}; + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); + }, + complete: function complete(record, afterLoc) { + if ("throw" === record.type) throw record.arg; + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; + }, + finish: function finish(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + } + }, + "catch": function _catch(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if ("throw" === record.type) { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function delegateYield(iterable, resultName, nextLoc) { + return this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; + } + }, exports; + } + module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; +},181,[48],"node_modules/@babel/runtime/helpers/regeneratorRuntime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); + var _logError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/logError")); + var _NativeAppState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeAppState")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); + var AppState = function () { + function AppState() { + var _this = this; + (0, _classCallCheck2.default)(this, AppState); + this.currentState = null; + if (_NativeAppState.default == null) { + this.isAvailable = false; + } else { + this.isAvailable = true; + var emitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeAppState.default); + this._emitter = emitter; + this.currentState = _NativeAppState.default.getConstants().initialAppState; + var eventUpdated = false; + + emitter.addListener('appStateDidChange', function (appStateData) { + eventUpdated = true; + _this.currentState = appStateData.app_state; + }); + + _NativeAppState.default.getCurrentAppState(function (appStateData) { + if (!eventUpdated && _this.currentState !== appStateData.app_state) { + _this.currentState = appStateData.app_state; + emitter.emit('appStateDidChange', appStateData); + } + }, _logError.default); + } + } + + (0, _createClass2.default)(AppState, [{ + key: "addEventListener", + value: + function addEventListener(type, handler) { + var emitter = this._emitter; + if (emitter == null) { + throw new Error('Cannot use AppState when `isAvailable` is false.'); + } + switch (type) { + case 'change': + var changeHandler = handler; + return emitter.addListener('appStateDidChange', function (appStateData) { + changeHandler(appStateData.app_state); + }); + case 'memoryWarning': + var memoryWarningHandler = handler; + return emitter.addListener('memoryWarning', memoryWarningHandler); + case 'blur': + case 'focus': + var focusOrBlurHandler = handler; + return emitter.addListener('appStateFocusChange', function (hasFocus) { + if (type === 'blur' && !hasFocus) { + focusOrBlurHandler(); + } + if (type === 'focus' && hasFocus) { + focusOrBlurHandler(); + } + }); + } + throw new Error('Trying to subscribe to unknown event: ' + type); + } + }]); + return AppState; + }(); + module.exports = new AppState(); +},182,[3,12,13,134,183,184,14],"node_modules/react-native/Libraries/AppState/AppState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var logError = function logError() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + if (args.length === 1 && args[0] instanceof Error) { + var err = args[0]; + console.error('Error: "' + err.message + '". Stack:\n' + err.stack); + } else { + console.error.apply(console, args); + } + }; + module.exports = logError; +},183,[],"node_modules/react-native/Libraries/Utilities/logError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('AppState'); + exports.default = _default; +},184,[16],"node_modules/react-native/Libraries/AppState/NativeAppState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor")); + var _processTransform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/processTransform")); + var _sizesDiffer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/sizesDiffer")); + + var colorAttributes = { + process: _processColor.default + }; + var ReactNativeStyleAttributes = { + alignContent: true, + alignItems: true, + alignSelf: true, + aspectRatio: true, + borderBottomWidth: true, + borderEndWidth: true, + borderLeftWidth: true, + borderRightWidth: true, + borderStartWidth: true, + borderTopWidth: true, + borderWidth: true, + bottom: true, + direction: true, + display: true, + end: true, + flex: true, + flexBasis: true, + flexDirection: true, + flexGrow: true, + flexShrink: true, + flexWrap: true, + height: true, + justifyContent: true, + left: true, + margin: true, + marginBottom: true, + marginEnd: true, + marginHorizontal: true, + marginLeft: true, + marginRight: true, + marginStart: true, + marginTop: true, + marginVertical: true, + maxHeight: true, + maxWidth: true, + minHeight: true, + minWidth: true, + overflow: true, + padding: true, + paddingBottom: true, + paddingEnd: true, + paddingHorizontal: true, + paddingLeft: true, + paddingRight: true, + paddingStart: true, + paddingTop: true, + paddingVertical: true, + position: true, + right: true, + start: true, + top: true, + width: true, + zIndex: true, + elevation: true, + shadowColor: colorAttributes, + shadowOffset: { + diff: _sizesDiffer.default + }, + shadowOpacity: true, + shadowRadius: true, + transform: { + process: _processTransform.default + }, + backfaceVisibility: true, + backgroundColor: colorAttributes, + borderBottomColor: colorAttributes, + borderBottomEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderColor: colorAttributes, + borderEndColor: colorAttributes, + borderLeftColor: colorAttributes, + borderRadius: true, + borderRightColor: colorAttributes, + borderStartColor: colorAttributes, + borderStyle: true, + borderTopColor: colorAttributes, + borderTopEndRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + opacity: true, + color: colorAttributes, + fontFamily: true, + fontSize: true, + fontStyle: true, + fontVariant: true, + fontWeight: true, + includeFontPadding: true, + letterSpacing: true, + lineHeight: true, + textAlign: true, + textAlignVertical: true, + textDecorationColor: colorAttributes, + textDecorationLine: true, + textDecorationStyle: true, + textShadowColor: colorAttributes, + textShadowOffset: true, + textShadowRadius: true, + textTransform: true, + writingDirection: true, + overlayColor: colorAttributes, + resizeMode: true, + tintColor: colorAttributes + }; + module.exports = ReactNativeStyleAttributes; +},185,[3,159,186,188],"node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function processTransform(transform) { + if (__DEV__) { + _validateTransforms(transform); + } + + if ("ios" === 'android' || "ios" === 'ios') { + return transform; + } + var result = _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").createIdentityMatrix(); + transform.forEach(function (transformation) { + var key = Object.keys(transformation)[0]; + var value = transformation[key]; + switch (key) { + case 'matrix': + _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").multiplyInto(result, result, value); + break; + case 'perspective': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reusePerspectiveCommand, [value]); + break; + case 'rotateX': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateXCommand, [_convertToRadians(value)]); + break; + case 'rotateY': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateYCommand, [_convertToRadians(value)]); + break; + case 'rotate': + case 'rotateZ': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateZCommand, [_convertToRadians(value)]); + break; + case 'scale': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleCommand, [value]); + break; + case 'scaleX': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleXCommand, [value]); + break; + case 'scaleY': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleYCommand, [value]); + break; + case 'translate': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate3dCommand, [value[0], value[1], value[2] || 0]); + break; + case 'translateX': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate2dCommand, [value, 0]); + break; + case 'translateY': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate2dCommand, [0, value]); + break; + case 'skewX': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseSkewXCommand, [_convertToRadians(value)]); + break; + case 'skewY': + _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseSkewYCommand, [_convertToRadians(value)]); + break; + default: + throw new Error('Invalid transform name: ' + key); + } + }); + return result; + } + + function _multiplyTransform(result, matrixMathFunction, args) { + var matrixToApply = _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").createIdentityMatrix(); + var argsWithIdentity = [matrixToApply].concat(args); + matrixMathFunction.apply(this, argsWithIdentity); + _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").multiplyInto(result, result, matrixToApply); + } + + function _convertToRadians(value) { + var floatValue = parseFloat(value); + return value.indexOf('rad') > -1 ? floatValue : floatValue * Math.PI / 180; + } + function _validateTransforms(transform) { + transform.forEach(function (transformation) { + var keys = Object.keys(transformation); + _$$_REQUIRE(_dependencyMap[1], "invariant")(keys.length === 1, 'You must specify exactly one property per transform object. Passed properties: %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + var key = keys[0]; + var value = transformation[key]; + _validateTransform(key, value, transformation); + }); + } + function _validateTransform(key, value, transformation) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(!value.getValue, 'You passed an Animated.Value to a normal component. ' + 'You need to wrap that component in an Animated. For example, ' + 'replace by .'); + var multivalueTransforms = ['matrix', 'translate']; + if (multivalueTransforms.indexOf(key) !== -1) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(Array.isArray(value), 'Transform with key of %s must have an array as the value: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + } + switch (key) { + case 'matrix': + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', + value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'translate': + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', + value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'rotateX': + case 'rotateY': + case 'rotateZ': + case 'rotate': + case 'skewX': + case 'skewY': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'string', 'Transform with key of "%s" must be a string: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.indexOf('deg') > -1 || value.indexOf('rad') > -1, 'Rotate transform must be expressed in degrees (deg) or radians ' + '(rad): %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'perspective': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + _$$_REQUIRE(_dependencyMap[1], "invariant")(value !== 0, 'Transform with key of "%s" cannot be zero: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'translateX': + case 'translateY': + case 'scale': + case 'scaleX': + case 'scaleY': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + default: + _$$_REQUIRE(_dependencyMap[1], "invariant")(false, 'Invalid transform %s: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + } + } + module.exports = processTransform; +},186,[187,17,26],"node_modules/react-native/Libraries/StyleSheet/processTransform.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var MatrixMath = { + createIdentityMatrix: function createIdentityMatrix() { + return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; + }, + createCopy: function createCopy(m) { + return [m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]]; + }, + createOrthographic: function createOrthographic(left, right, bottom, top, near, far) { + var a = 2 / (right - left); + var b = 2 / (top - bottom); + var c = -2 / (far - near); + var tx = -(right + left) / (right - left); + var ty = -(top + bottom) / (top - bottom); + var tz = -(far + near) / (far - near); + return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1]; + }, + createFrustum: function createFrustum(left, right, bottom, top, near, far) { + var r_width = 1 / (right - left); + var r_height = 1 / (top - bottom); + var r_depth = 1 / (near - far); + var x = 2 * (near * r_width); + var y = 2 * (near * r_height); + var A = (right + left) * r_width; + var B = (top + bottom) * r_height; + var C = (far + near) * r_depth; + var D = 2 * (far * near * r_depth); + return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0]; + }, + createPerspective: function createPerspective(fovInRadians, aspect, near, far) { + var h = 1 / Math.tan(fovInRadians / 2); + var r_depth = 1 / (near - far); + var C = (far + near) * r_depth; + var D = 2 * (far * near * r_depth); + return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0]; + }, + createTranslate2d: function createTranslate2d(x, y) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseTranslate2dCommand(mat, x, y); + return mat; + }, + reuseTranslate2dCommand: function reuseTranslate2dCommand(matrixCommand, x, y) { + matrixCommand[12] = x; + matrixCommand[13] = y; + }, + reuseTranslate3dCommand: function reuseTranslate3dCommand(matrixCommand, x, y, z) { + matrixCommand[12] = x; + matrixCommand[13] = y; + matrixCommand[14] = z; + }, + createScale: function createScale(factor) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseScaleCommand(mat, factor); + return mat; + }, + reuseScaleCommand: function reuseScaleCommand(matrixCommand, factor) { + matrixCommand[0] = factor; + matrixCommand[5] = factor; + }, + reuseScale3dCommand: function reuseScale3dCommand(matrixCommand, x, y, z) { + matrixCommand[0] = x; + matrixCommand[5] = y; + matrixCommand[10] = z; + }, + reusePerspectiveCommand: function reusePerspectiveCommand(matrixCommand, p) { + matrixCommand[11] = -1 / p; + }, + reuseScaleXCommand: function reuseScaleXCommand(matrixCommand, factor) { + matrixCommand[0] = factor; + }, + reuseScaleYCommand: function reuseScaleYCommand(matrixCommand, factor) { + matrixCommand[5] = factor; + }, + reuseScaleZCommand: function reuseScaleZCommand(matrixCommand, factor) { + matrixCommand[10] = factor; + }, + reuseRotateXCommand: function reuseRotateXCommand(matrixCommand, radians) { + matrixCommand[5] = Math.cos(radians); + matrixCommand[6] = Math.sin(radians); + matrixCommand[9] = -Math.sin(radians); + matrixCommand[10] = Math.cos(radians); + }, + reuseRotateYCommand: function reuseRotateYCommand(matrixCommand, amount) { + matrixCommand[0] = Math.cos(amount); + matrixCommand[2] = -Math.sin(amount); + matrixCommand[8] = Math.sin(amount); + matrixCommand[10] = Math.cos(amount); + }, + reuseRotateZCommand: function reuseRotateZCommand(matrixCommand, radians) { + matrixCommand[0] = Math.cos(radians); + matrixCommand[1] = Math.sin(radians); + matrixCommand[4] = -Math.sin(radians); + matrixCommand[5] = Math.cos(radians); + }, + createRotateZ: function createRotateZ(radians) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseRotateZCommand(mat, radians); + return mat; + }, + reuseSkewXCommand: function reuseSkewXCommand(matrixCommand, radians) { + matrixCommand[4] = Math.tan(radians); + }, + reuseSkewYCommand: function reuseSkewYCommand(matrixCommand, radians) { + matrixCommand[1] = Math.tan(radians); + }, + multiplyInto: function multiplyInto(out, a, b) { + var a00 = a[0], + a01 = a[1], + a02 = a[2], + a03 = a[3], + a10 = a[4], + a11 = a[5], + a12 = a[6], + a13 = a[7], + a20 = a[8], + a21 = a[9], + a22 = a[10], + a23 = a[11], + a30 = a[12], + a31 = a[13], + a32 = a[14], + a33 = a[15]; + var b0 = b[0], + b1 = b[1], + b2 = b[2], + b3 = b[3]; + out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[4]; + b1 = b[5]; + b2 = b[6]; + b3 = b[7]; + out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[8]; + b1 = b[9]; + b2 = b[10]; + b3 = b[11]; + out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[12]; + b1 = b[13]; + b2 = b[14]; + b3 = b[15]; + out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + }, + determinant: function determinant(matrix) { + var _matrix = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(matrix, 16), + m00 = _matrix[0], + m01 = _matrix[1], + m02 = _matrix[2], + m03 = _matrix[3], + m10 = _matrix[4], + m11 = _matrix[5], + m12 = _matrix[6], + m13 = _matrix[7], + m20 = _matrix[8], + m21 = _matrix[9], + m22 = _matrix[10], + m23 = _matrix[11], + m30 = _matrix[12], + m31 = _matrix[13], + m32 = _matrix[14], + m33 = _matrix[15]; + return m03 * m12 * m21 * m30 - m02 * m13 * m21 * m30 - m03 * m11 * m22 * m30 + m01 * m13 * m22 * m30 + m02 * m11 * m23 * m30 - m01 * m12 * m23 * m30 - m03 * m12 * m20 * m31 + m02 * m13 * m20 * m31 + m03 * m10 * m22 * m31 - m00 * m13 * m22 * m31 - m02 * m10 * m23 * m31 + m00 * m12 * m23 * m31 + m03 * m11 * m20 * m32 - m01 * m13 * m20 * m32 - m03 * m10 * m21 * m32 + m00 * m13 * m21 * m32 + m01 * m10 * m23 * m32 - m00 * m11 * m23 * m32 - m02 * m11 * m20 * m33 + m01 * m12 * m20 * m33 + m02 * m10 * m21 * m33 - m00 * m12 * m21 * m33 - m01 * m10 * m22 * m33 + m00 * m11 * m22 * m33; + }, + inverse: function inverse(matrix) { + var det = MatrixMath.determinant(matrix); + if (!det) { + return matrix; + } + var _matrix2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(matrix, 16), + m00 = _matrix2[0], + m01 = _matrix2[1], + m02 = _matrix2[2], + m03 = _matrix2[3], + m10 = _matrix2[4], + m11 = _matrix2[5], + m12 = _matrix2[6], + m13 = _matrix2[7], + m20 = _matrix2[8], + m21 = _matrix2[9], + m22 = _matrix2[10], + m23 = _matrix2[11], + m30 = _matrix2[12], + m31 = _matrix2[13], + m32 = _matrix2[14], + m33 = _matrix2[15]; + return [(m12 * m23 * m31 - m13 * m22 * m31 + m13 * m21 * m32 - m11 * m23 * m32 - m12 * m21 * m33 + m11 * m22 * m33) / det, (m03 * m22 * m31 - m02 * m23 * m31 - m03 * m21 * m32 + m01 * m23 * m32 + m02 * m21 * m33 - m01 * m22 * m33) / det, (m02 * m13 * m31 - m03 * m12 * m31 + m03 * m11 * m32 - m01 * m13 * m32 - m02 * m11 * m33 + m01 * m12 * m33) / det, (m03 * m12 * m21 - m02 * m13 * m21 - m03 * m11 * m22 + m01 * m13 * m22 + m02 * m11 * m23 - m01 * m12 * m23) / det, (m13 * m22 * m30 - m12 * m23 * m30 - m13 * m20 * m32 + m10 * m23 * m32 + m12 * m20 * m33 - m10 * m22 * m33) / det, (m02 * m23 * m30 - m03 * m22 * m30 + m03 * m20 * m32 - m00 * m23 * m32 - m02 * m20 * m33 + m00 * m22 * m33) / det, (m03 * m12 * m30 - m02 * m13 * m30 - m03 * m10 * m32 + m00 * m13 * m32 + m02 * m10 * m33 - m00 * m12 * m33) / det, (m02 * m13 * m20 - m03 * m12 * m20 + m03 * m10 * m22 - m00 * m13 * m22 - m02 * m10 * m23 + m00 * m12 * m23) / det, (m11 * m23 * m30 - m13 * m21 * m30 + m13 * m20 * m31 - m10 * m23 * m31 - m11 * m20 * m33 + m10 * m21 * m33) / det, (m03 * m21 * m30 - m01 * m23 * m30 - m03 * m20 * m31 + m00 * m23 * m31 + m01 * m20 * m33 - m00 * m21 * m33) / det, (m01 * m13 * m30 - m03 * m11 * m30 + m03 * m10 * m31 - m00 * m13 * m31 - m01 * m10 * m33 + m00 * m11 * m33) / det, (m03 * m11 * m20 - m01 * m13 * m20 - m03 * m10 * m21 + m00 * m13 * m21 + m01 * m10 * m23 - m00 * m11 * m23) / det, (m12 * m21 * m30 - m11 * m22 * m30 - m12 * m20 * m31 + m10 * m22 * m31 + m11 * m20 * m32 - m10 * m21 * m32) / det, (m01 * m22 * m30 - m02 * m21 * m30 + m02 * m20 * m31 - m00 * m22 * m31 - m01 * m20 * m32 + m00 * m21 * m32) / det, (m02 * m11 * m30 - m01 * m12 * m30 - m02 * m10 * m31 + m00 * m12 * m31 + m01 * m10 * m32 - m00 * m11 * m32) / det, (m01 * m12 * m20 - m02 * m11 * m20 + m02 * m10 * m21 - m00 * m12 * m21 - m01 * m10 * m22 + m00 * m11 * m22) / det]; + }, + transpose: function transpose(m) { + return [m[0], m[4], m[8], m[12], m[1], m[5], m[9], m[13], m[2], m[6], m[10], m[14], m[3], m[7], m[11], m[15]]; + }, + multiplyVectorByMatrix: function multiplyVectorByMatrix(v, m) { + var _v = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(v, 4), + vx = _v[0], + vy = _v[1], + vz = _v[2], + vw = _v[3]; + return [vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12], vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13], vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14], vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15]]; + }, + v3Length: function v3Length(a) { + return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]); + }, + v3Normalize: function v3Normalize(vector, v3Length) { + var im = 1 / (v3Length || MatrixMath.v3Length(vector)); + return [vector[0] * im, vector[1] * im, vector[2] * im]; + }, + v3Dot: function v3Dot(a, b) { + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; + }, + v3Combine: function v3Combine(a, b, aScale, bScale) { + return [aScale * a[0] + bScale * b[0], aScale * a[1] + bScale * b[1], aScale * a[2] + bScale * b[2]]; + }, + v3Cross: function v3Cross(a, b) { + return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; + }, + quaternionToDegreesXYZ: function quaternionToDegreesXYZ(q, matrix, row) { + var _q = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(q, 4), + qx = _q[0], + qy = _q[1], + qz = _q[2], + qw = _q[3]; + var qw2 = qw * qw; + var qx2 = qx * qx; + var qy2 = qy * qy; + var qz2 = qz * qz; + var test = qx * qy + qz * qw; + var unit = qw2 + qx2 + qy2 + qz2; + var conv = 180 / Math.PI; + if (test > 0.49999 * unit) { + return [0, 2 * Math.atan2(qx, qw) * conv, 90]; + } + if (test < -0.49999 * unit) { + return [0, -2 * Math.atan2(qx, qw) * conv, -90]; + } + return [MatrixMath.roundTo3Places(Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv)]; + }, + roundTo3Places: function roundTo3Places(n) { + var arr = n.toString().split('e'); + return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001; + }, + decomposeMatrix: function decomposeMatrix(transformMatrix) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(transformMatrix.length === 16, 'Matrix decomposition needs a list of 3d matrix values, received %s', transformMatrix); + + var perspective = []; + var quaternion = []; + var scale = []; + var skew = []; + var translation = []; + + if (!transformMatrix[15]) { + return; + } + var matrix = []; + var perspectiveMatrix = []; + for (var i = 0; i < 4; i++) { + matrix.push([]); + for (var j = 0; j < 4; j++) { + var value = transformMatrix[i * 4 + j] / transformMatrix[15]; + matrix[i].push(value); + perspectiveMatrix.push(j === 3 ? 0 : value); + } + } + perspectiveMatrix[15] = 1; + + if (!MatrixMath.determinant(perspectiveMatrix)) { + return; + } + + if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) { + var rightHandSide = [matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]]; + + var inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix); + var transposedInversePerspectiveMatrix = MatrixMath.transpose(inversePerspectiveMatrix); + perspective = MatrixMath.multiplyVectorByMatrix(rightHandSide, transposedInversePerspectiveMatrix); + } else { + perspective[0] = perspective[1] = perspective[2] = 0; + perspective[3] = 1; + } + + for (var _i = 0; _i < 3; _i++) { + translation[_i] = matrix[3][_i]; + } + + var row = []; + for (var _i2 = 0; _i2 < 3; _i2++) { + row[_i2] = [matrix[_i2][0], matrix[_i2][1], matrix[_i2][2]]; + } + + scale[0] = MatrixMath.v3Length(row[0]); + row[0] = MatrixMath.v3Normalize(row[0], scale[0]); + + skew[0] = MatrixMath.v3Dot(row[0], row[1]); + row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); + + scale[1] = MatrixMath.v3Length(row[1]); + row[1] = MatrixMath.v3Normalize(row[1], scale[1]); + skew[0] /= scale[1]; + + skew[1] = MatrixMath.v3Dot(row[0], row[2]); + row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]); + skew[2] = MatrixMath.v3Dot(row[1], row[2]); + row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]); + + scale[2] = MatrixMath.v3Length(row[2]); + row[2] = MatrixMath.v3Normalize(row[2], scale[2]); + skew[1] /= scale[2]; + skew[2] /= scale[2]; + + var pdum3 = MatrixMath.v3Cross(row[1], row[2]); + if (MatrixMath.v3Dot(row[0], pdum3) < 0) { + for (var _i3 = 0; _i3 < 3; _i3++) { + scale[_i3] *= -1; + row[_i3][0] *= -1; + row[_i3][1] *= -1; + row[_i3][2] *= -1; + } + } + + quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0)); + quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0)); + quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0)); + quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0)); + if (row[2][1] > row[1][2]) { + quaternion[0] = -quaternion[0]; + } + if (row[0][2] > row[2][0]) { + quaternion[1] = -quaternion[1]; + } + if (row[1][0] > row[0][1]) { + quaternion[2] = -quaternion[2]; + } + + var rotationDegrees; + if (quaternion[0] < 0.001 && quaternion[0] >= 0 && quaternion[1] < 0.001 && quaternion[1] >= 0) { + rotationDegrees = [0, 0, MatrixMath.roundTo3Places(Math.atan2(row[0][1], row[0][0]) * 180 / Math.PI)]; + } else { + rotationDegrees = MatrixMath.quaternionToDegreesXYZ(quaternion, matrix, row); + } + + return { + rotationDegrees: rotationDegrees, + perspective: perspective, + quaternion: quaternion, + scale: scale, + skew: skew, + translation: translation, + rotate: rotationDegrees[2], + rotateX: rotationDegrees[0], + rotateY: rotationDegrees[1], + scaleX: scale[0], + scaleY: scale[1], + translateX: translation[0], + translateY: translation[1] + }; + } + }; + module.exports = MatrixMath; +},187,[19,17],"node_modules/react-native/Libraries/Utilities/MatrixMath.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var dummySize = { + width: undefined, + height: undefined + }; + var sizesDiffer = function sizesDiffer(one, two) { + var defaultedOne = one || dummySize; + var defaultedTwo = two || dummySize; + return defaultedOne !== defaultedTwo && (defaultedOne.width !== defaultedTwo.width || defaultedOne.height !== defaultedTwo.height); + }; + module.exports = sizesDiffer; +},188,[],"node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function flattenStyle(style) { + if (style === null || typeof style !== 'object') { + return undefined; + } + if (!Array.isArray(style)) { + return style; + } + var result = {}; + for (var i = 0, styleLength = style.length; i < styleLength; ++i) { + var computedStyle = flattenStyle(style[i]); + if (computedStyle) { + for (var key in computedStyle) { + result[key] = computedStyle[key]; + } + } + } + return result; + } + module.exports = flattenStyle; +},189,[],"node_modules/react-native/Libraries/StyleSheet/flattenStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var JSInspector = { + registerAgent: function registerAgent(type) { + if (global.__registerInspectorAgent) { + global.__registerInspectorAgent(type); + } + }, + getTimestamp: function getTimestamp() { + return global.__inspectorTimestamp(); + } + }; + module.exports = JSInspector; +},190,[],"node_modules/react-native/Libraries/JSInspector/JSInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var Interceptor = function () { + function Interceptor(agent) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, Interceptor); + this._agent = agent; + this._requests = new Map(); + } + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(Interceptor, [{ + key: "getData", + value: function getData(requestId) { + return this._requests.get(requestId); + } + }, { + key: "requestSent", + value: function requestSent(id, url, method, headers) { + var requestId = String(id); + this._requests.set(requestId, ''); + var request = { + url: url, + method: method, + headers: headers, + initialPriority: 'Medium' + }; + var event = { + requestId: requestId, + documentURL: '', + frameId: '1', + loaderId: '1', + request: request, + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + initiator: { + type: 'other' + }, + type: 'Other' + }; + this._agent.sendEvent('requestWillBeSent', event); + } + }, { + key: "responseReceived", + value: function responseReceived(id, url, status, headers) { + var requestId = String(id); + var response = { + url: url, + status: status, + statusText: String(status), + headers: headers, + requestHeaders: {}, + mimeType: this._getMimeType(headers), + connectionReused: false, + connectionId: -1, + encodedDataLength: 0, + securityState: 'unknown' + }; + var event = { + requestId: requestId, + frameId: '1', + loaderId: '1', + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + type: 'Other', + response: response + }; + this._agent.sendEvent('responseReceived', event); + } + }, { + key: "dataReceived", + value: function dataReceived(id, data) { + var requestId = String(id); + var existingData = this._requests.get(requestId) || ''; + this._requests.set(requestId, existingData.concat(data)); + var event = { + requestId: requestId, + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + dataLength: data.length, + encodedDataLength: data.length + }; + this._agent.sendEvent('dataReceived', event); + } + }, { + key: "loadingFinished", + value: function loadingFinished(id, encodedDataLength) { + var event = { + requestId: String(id), + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + encodedDataLength: encodedDataLength + }; + this._agent.sendEvent('loadingFinished', event); + } + }, { + key: "loadingFailed", + value: function loadingFailed(id, error) { + var event = { + requestId: String(id), + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + type: 'Other', + errorText: error + }; + this._agent.sendEvent('loadingFailed', event); + } + }, { + key: "_getMimeType", + value: function _getMimeType(headers) { + var contentType = headers['Content-Type'] || ''; + return contentType.split(';')[0]; + } + }]); + return Interceptor; + }(); + var NetworkAgent = function (_InspectorAgent) { + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")(NetworkAgent, _InspectorAgent); + var _super = _createSuper(NetworkAgent); + function NetworkAgent() { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, NetworkAgent); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(NetworkAgent, [{ + key: "enable", + value: function enable(_ref) { + var maxResourceBufferSize = _ref.maxResourceBufferSize, + maxTotalBufferSize = _ref.maxTotalBufferSize; + this._interceptor = new Interceptor(this); + _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(this._interceptor); + } + }, { + key: "disable", + value: function disable() { + _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(null); + this._interceptor = null; + } + }, { + key: "getResponseBody", + value: function getResponseBody(_ref2) { + var requestId = _ref2.requestId; + return { + body: this.interceptor().getData(requestId), + base64Encoded: false + }; + } + }, { + key: "interceptor", + value: function interceptor() { + if (this._interceptor) { + return this._interceptor; + } else { + throw Error('_interceptor can not be null'); + } + } + }]); + return NetworkAgent; + }(_$$_REQUIRE(_dependencyMap[7], "./InspectorAgent")); + NetworkAgent.DOMAIN = 'Network'; + module.exports = NetworkAgent; +},191,[46,47,12,13,190,50,114,192],"node_modules/react-native/Libraries/JSInspector/NetworkAgent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var InspectorAgent = function () { + function InspectorAgent(eventSender) { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, InspectorAgent); + this._eventSender = eventSender; + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(InspectorAgent, [{ + key: "sendEvent", + value: function sendEvent(name, params) { + this._eventSender(name, params); + } + }]); + return InspectorAgent; + }(); + module.exports = InspectorAgent; +},192,[12,13],"node_modules/react-native/Libraries/JSInspector/InspectorAgent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (__DEV__) { + var DevSettings = _$$_REQUIRE(_dependencyMap[0], "../Utilities/DevSettings"); + if (typeof DevSettings.reload !== 'function') { + throw new Error('Could not find the reload() implementation.'); + } + + var ReactRefreshRuntime = _$$_REQUIRE(_dependencyMap[1], "react-refresh/runtime"); + ReactRefreshRuntime.injectIntoGlobalHook(global); + var Refresh = { + performFullRefresh: function performFullRefresh(reason) { + DevSettings.reload(reason); + }, + createSignatureFunctionForTransform: ReactRefreshRuntime.createSignatureFunctionForTransform, + isLikelyComponentType: ReactRefreshRuntime.isLikelyComponentType, + getFamilyByType: ReactRefreshRuntime.getFamilyByType, + register: ReactRefreshRuntime.register, + performReactRefresh: function performReactRefresh() { + if (ReactRefreshRuntime.hasUnrecoverableErrors()) { + DevSettings.reload('Fast Refresh - Unrecoverable'); + return; + } + ReactRefreshRuntime.performReactRefresh(); + DevSettings.onFastRefresh(); + } + }; + + global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__ReactRefresh'] = Refresh; + } +},193,[169,194],"node_modules/react-native/Libraries/Core/setUpReactRefresh.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-refresh-runtime.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-refresh-runtime.development.js"); + } +},194,[195,196],"node_modules/react-refresh/runtime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React vundefined + * react-refresh-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + throw Error("React Refresh runtime should not be included in the production bundle."); +},195,[],"node_modules/react-refresh/cjs/react-refresh-runtime.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React vundefined + * react-refresh-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + + var allFamiliesByID = new Map(); + var allFamiliesByType = new PossiblyWeakMap(); + var allSignaturesByType = new PossiblyWeakMap(); + + var updatedFamiliesByType = new PossiblyWeakMap(); + + var pendingUpdates = []; + + var helpersByRendererID = new Map(); + var helpersByRoot = new Map(); + + var mountedRoots = new Set(); + + var failedRoots = new Map(); + var didSomeRootFailOnMount = false; + function computeFullKey(signature) { + if (signature.fullKey !== null) { + return signature.fullKey; + } + var fullKey = signature.ownKey; + var hooks; + try { + hooks = signature.getCustomHooks(); + } catch (err) { + signature.forceReset = true; + signature.fullKey = fullKey; + return fullKey; + } + for (var i = 0; i < hooks.length; i++) { + var hook = hooks[i]; + if (typeof hook !== 'function') { + signature.forceReset = true; + signature.fullKey = fullKey; + return fullKey; + } + var nestedHookSignature = allSignaturesByType.get(hook); + if (nestedHookSignature === undefined) { + continue; + } + var nestedHookKey = computeFullKey(nestedHookSignature); + if (nestedHookSignature.forceReset) { + signature.forceReset = true; + } + fullKey += '\n---\n' + nestedHookKey; + } + signature.fullKey = fullKey; + return fullKey; + } + function haveEqualSignatures(prevType, nextType) { + var prevSignature = allSignaturesByType.get(prevType); + var nextSignature = allSignaturesByType.get(nextType); + if (prevSignature === undefined && nextSignature === undefined) { + return true; + } + if (prevSignature === undefined || nextSignature === undefined) { + return false; + } + if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) { + return false; + } + if (nextSignature.forceReset) { + return false; + } + return true; + } + function isReactClass(type) { + return type.prototype && type.prototype.isReactComponent; + } + function canPreserveStateBetween(prevType, nextType) { + if (isReactClass(prevType) || isReactClass(nextType)) { + return false; + } + if (haveEqualSignatures(prevType, nextType)) { + return true; + } + return false; + } + function resolveFamily(type) { + return updatedFamiliesByType.get(type); + } + function performReactRefresh() { + { + if (pendingUpdates.length === 0) { + return null; + } + var staleFamilies = new Set(); + var updatedFamilies = new Set(); + var updates = pendingUpdates; + pendingUpdates = []; + updates.forEach(function (_ref) { + var family = _ref[0], + nextType = _ref[1]; + var prevType = family.current; + updatedFamiliesByType.set(prevType, family); + updatedFamiliesByType.set(nextType, family); + family.current = nextType; + + if (canPreserveStateBetween(prevType, nextType)) { + updatedFamilies.add(family); + } else { + staleFamilies.add(family); + } + }); + + var update = { + updatedFamilies: updatedFamilies, + staleFamilies: staleFamilies + }; + + helpersByRendererID.forEach(function (helpers) { + helpers.setRefreshHandler(resolveFamily); + }); + var didError = false; + var firstError = null; + failedRoots.forEach(function (element, root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); + } + try { + helpers.scheduleRoot(root, element); + } catch (err) { + if (!didError) { + didError = true; + firstError = err; + } + } + }); + + mountedRoots.forEach(function (root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); + } + try { + helpers.scheduleRefresh(root, update); + } catch (err) { + if (!didError) { + didError = true; + firstError = err; + } + } + }); + + if (didError) { + throw firstError; + } + return update; + } + } + function register(type, id) { + { + if (type === null) { + return; + } + if (typeof type !== 'function' && typeof type !== 'object') { + return; + } + + if (allFamiliesByType.has(type)) { + return; + } + + var family = allFamiliesByID.get(id); + if (family === undefined) { + family = { + current: type + }; + allFamiliesByID.set(id, family); + } else { + pendingUpdates.push([family, type]); + } + allFamiliesByType.set(type, family); + + if (typeof type === 'object' && type !== null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + register(type.render, id + '$render'); + break; + case REACT_MEMO_TYPE: + register(type.type, id + '$type'); + break; + } + } + } + } + function setSignature(type, key) { + var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined; + { + allSignaturesByType.set(type, { + forceReset: forceReset, + ownKey: key, + fullKey: null, + getCustomHooks: getCustomHooks || function () { + return []; + } + }); + } + } + + function collectCustomHooksForSignature(type) { + { + var signature = allSignaturesByType.get(type); + if (signature !== undefined) { + computeFullKey(signature); + } + } + } + function getFamilyByID(id) { + { + return allFamiliesByID.get(id); + } + } + function getFamilyByType(type) { + { + return allFamiliesByType.get(type); + } + } + function findAffectedHostInstances(families) { + { + var affectedInstances = new Set(); + mountedRoots.forEach(function (root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); + } + var instancesForRoot = helpers.findHostInstancesForRefresh(root, families); + instancesForRoot.forEach(function (inst) { + affectedInstances.add(inst); + }); + }); + return affectedInstances; + } + } + function injectIntoGlobalHook(globalObject) { + { + var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook === undefined) { + var nextID = 0; + globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = { + supportsFiber: true, + inject: function inject(injected) { + return nextID++; + }, + onCommitFiberRoot: function onCommitFiberRoot(id, root, maybePriorityLevel, didError) {}, + onCommitFiberUnmount: function onCommitFiberUnmount() {} + }; + } + + var oldInject = hook.inject; + hook.inject = function (injected) { + var id = oldInject.apply(this, arguments); + if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') { + helpersByRendererID.set(id, injected); + } + return id; + }; + + var oldOnCommitFiberRoot = hook.onCommitFiberRoot; + hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) { + var helpers = helpersByRendererID.get(id); + if (helpers === undefined) { + return; + } + helpersByRoot.set(root, helpers); + var current = root.current; + var alternate = current.alternate; + + if (alternate !== null) { + var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null; + var isMounted = current.memoizedState != null && current.memoizedState.element != null; + if (!wasMounted && isMounted) { + mountedRoots.add(root); + failedRoots.delete(root); + } else if (wasMounted && isMounted) { + } else if (wasMounted && !isMounted) { + mountedRoots.delete(root); + if (didError) { + failedRoots.set(root, alternate.memoizedState.element); + } else { + helpersByRoot.delete(root); + } + } else if (!wasMounted && !isMounted) { + if (didError && !failedRoots.has(root)) { + didSomeRootFailOnMount = true; + } + } + } else { + mountedRoots.add(root); + } + return oldOnCommitFiberRoot.apply(this, arguments); + }; + } + } + function hasUnrecoverableErrors() { + return didSomeRootFailOnMount; + } + + function _getMountedRootCount() { + { + return mountedRoots.size; + } + } + + function createSignatureFunctionForTransform() { + { + var status = 'needsSignature'; + var savedType; + var hasCustomHooks; + return function (type, key, forceReset, getCustomHooks) { + switch (status) { + case 'needsSignature': + if (type !== undefined) { + savedType = type; + hasCustomHooks = typeof getCustomHooks === 'function'; + setSignature(type, key, forceReset, getCustomHooks); + + status = 'needsCustomHooks'; + } + break; + case 'needsCustomHooks': + if (hasCustomHooks) { + collectCustomHooksForSignature(savedType); + } + status = 'resolved'; + break; + case 'resolved': + break; + } + return type; + }; + } + } + function isLikelyComponentType(type) { + { + switch (typeof type) { + case 'function': + { + if (type.prototype != null) { + if (type.prototype.isReactComponent) { + return true; + } + var ownNames = Object.getOwnPropertyNames(type.prototype); + if (ownNames.length > 1 || ownNames[0] !== 'constructor') { + return false; + } + + if (type.prototype.__proto__ !== Object.prototype) { + return false; + } + } + + var name = type.name || type.displayName; + return typeof name === 'string' && /^[A-Z]/.test(name); + } + case 'object': + { + if (type != null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + case REACT_MEMO_TYPE: + return true; + default: + return false; + } + } + return false; + } + default: + { + return false; + } + } + } + } + var ReactFreshRuntime = Object.freeze({ + performReactRefresh: performReactRefresh, + register: register, + setSignature: setSignature, + collectCustomHooksForSignature: collectCustomHooksForSignature, + getFamilyByID: getFamilyByID, + getFamilyByType: getFamilyByType, + findAffectedHostInstances: findAffectedHostInstances, + injectIntoGlobalHook: injectIntoGlobalHook, + hasUnrecoverableErrors: hasUnrecoverableErrors, + _getMountedRootCount: _getMountedRootCount, + createSignatureFunctionForTransform: createSignatureFunctionForTransform, + isLikelyComponentType: isLikelyComponentType + }); + + var runtime = ReactFreshRuntime.default || ReactFreshRuntime; + module.exports = runtime; + })(); + } +},196,[],"node_modules/react-refresh/cjs/react-refresh-runtime.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + module.exports = { + get BatchedBridge() { + return _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge"); + }, + get ExceptionsManager() { + return _$$_REQUIRE(_dependencyMap[1], "../Core/ExceptionsManager"); + }, + get Platform() { + return _$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform"); + }, + get RCTEventEmitter() { + return _$$_REQUIRE(_dependencyMap[3], "../EventEmitter/RCTEventEmitter"); + }, + get ReactNativeViewConfigRegistry() { + return _$$_REQUIRE(_dependencyMap[4], "../Renderer/shims/ReactNativeViewConfigRegistry"); + }, + get TextInputState() { + return _$$_REQUIRE(_dependencyMap[5], "../Components/TextInput/TextInputState"); + }, + get UIManager() { + return _$$_REQUIRE(_dependencyMap[6], "../ReactNative/UIManager"); + }, + get deepDiffer() { + return _$$_REQUIRE(_dependencyMap[7], "../Utilities/differ/deepDiffer"); + }, + get deepFreezeAndThrowOnMutationInDev() { + return _$$_REQUIRE(_dependencyMap[8], "../Utilities/deepFreezeAndThrowOnMutationInDev"); + }, + get flattenStyle() { + return _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/flattenStyle"); + }, + get ReactFiberErrorDialog() { + return _$$_REQUIRE(_dependencyMap[10], "../Core/ReactFiberErrorDialog").default; + }, + get legacySendAccessibilityEvent() { + return _$$_REQUIRE(_dependencyMap[11], "../Components/AccessibilityInfo/legacySendAccessibilityEvent"); + }, + get RawEventEmitter() { + return _$$_REQUIRE(_dependencyMap[12], "../Core/RawEventEmitter").default; + }, + get CustomEvent() { + return _$$_REQUIRE(_dependencyMap[13], "../Events/CustomEvent").default; + } + }; +},197,[23,45,14,198,199,200,213,237,27,189,238,33,239,240],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var RCTEventEmitter = { + register: function register(eventEmitter) { + if (global.RN$Bridgeless) { + global.RN$registerCallableModule('RCTEventEmitter', function () { + return eventEmitter; + }); + } else { + _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge").registerCallableModule('RCTEventEmitter', eventEmitter); + } + } + }; + module.exports = RCTEventEmitter; +},198,[23],"node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + var customBubblingEventTypes = {}; + var customDirectEventTypes = {}; + exports.customBubblingEventTypes = customBubblingEventTypes; + exports.customDirectEventTypes = customDirectEventTypes; + var viewConfigCallbacks = new Map(); + var viewConfigs = new Map(); + function processEventTypes(viewConfig) { + var bubblingEventTypes = viewConfig.bubblingEventTypes, + directEventTypes = viewConfig.directEventTypes; + if (__DEV__) { + if (bubblingEventTypes != null && directEventTypes != null) { + for (var topLevelType in directEventTypes) { + (0, _invariant.default)(bubblingEventTypes[topLevelType] == null, 'Event cannot be both direct and bubbling: %s', topLevelType); + } + } + } + if (bubblingEventTypes != null) { + for (var _topLevelType in bubblingEventTypes) { + if (customBubblingEventTypes[_topLevelType] == null) { + customBubblingEventTypes[_topLevelType] = bubblingEventTypes[_topLevelType]; + } + } + } + if (directEventTypes != null) { + for (var _topLevelType2 in directEventTypes) { + if (customDirectEventTypes[_topLevelType2] == null) { + customDirectEventTypes[_topLevelType2] = directEventTypes[_topLevelType2]; + } + } + } + } + + exports.register = function (name, callback) { + (0, _invariant.default)(!viewConfigCallbacks.has(name), 'Tried to register two views with the same name %s', name); + (0, _invariant.default)(typeof callback === 'function', 'View config getter callback for component `%s` must be a function (received `%s`)', name, callback === null ? 'null' : typeof callback); + viewConfigCallbacks.set(name, callback); + return name; + }; + + exports.get = function (name) { + var viewConfig; + if (!viewConfigs.has(name)) { + var callback = viewConfigCallbacks.get(name); + if (typeof callback !== 'function') { + (0, _invariant.default)(false, 'View config getter callback for component `%s` must be a function (received `%s`).%s', name, callback === null ? 'null' : typeof callback, typeof name[0] === 'string' && /[a-z]/.test(name[0]) ? ' Make sure to start component names with a capital letter.' : ''); + } + viewConfig = callback(); + processEventTypes(viewConfig); + viewConfigs.set(name, viewConfig); + + viewConfigCallbacks.set(name, null); + } else { + viewConfig = viewConfigs.get(name); + } + (0, _invariant.default)(viewConfig, 'View config not found for name %s', name); + return viewConfig; + }; +},199,[3,17],"node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + var currentlyFocusedInputRef = null; + var inputs = new Set(); + function currentlyFocusedInput() { + return currentlyFocusedInputRef; + } + + function currentlyFocusedField() { + if (__DEV__) { + console.error('currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput'); + } + return _$$_REQUIRE(_dependencyMap[1], "../../Renderer/shims/ReactNative").findNodeHandle(currentlyFocusedInputRef); + } + function focusInput(textField) { + if (currentlyFocusedInputRef !== textField && textField != null) { + currentlyFocusedInputRef = textField; + } + } + function blurInput(textField) { + if (currentlyFocusedInputRef === textField && textField != null) { + currentlyFocusedInputRef = null; + } + } + function focusField(textFieldID) { + if (__DEV__) { + console.error('focusField no longer works. Use focusInput'); + } + return; + } + function blurField(textFieldID) { + if (__DEV__) { + console.error('blurField no longer works. Use blurInput'); + } + return; + } + + function focusTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('focusTextInput must be called with a host component. Passing a react tag is deprecated.'); + } + return; + } + if (textField != null) { + var _textField$currentPro; + var fieldCanBeFocused = currentlyFocusedInputRef !== textField && + ((_textField$currentPro = textField.currentProps) == null ? void 0 : _textField$currentPro.editable) !== false; + if (!fieldCanBeFocused) { + return; + } + focusInput(textField); + if ("ios" === 'ios') { + _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.focus(textField); + } else if ("ios" === 'android') { + _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.focus(textField); + } + } + } + + function blurTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('blurTextInput must be called with a host component. Passing a react tag is deprecated.'); + } + return; + } + if (currentlyFocusedInputRef === textField && textField != null) { + blurInput(textField); + if ("ios" === 'ios') { + _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.blur(textField); + } else if ("ios" === 'android') { + _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.blur(textField); + } + } + } + function registerInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('registerInput must be called with a host component. Passing a react tag is deprecated.'); + } + return; + } + inputs.add(textField); + } + function unregisterInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('unregisterInput must be called with a host component. Passing a react tag is deprecated.'); + } + return; + } + inputs.delete(textField); + } + function isTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('isTextInput must be called with a host component. Passing a react tag is deprecated.'); + } + return false; + } + return inputs.has(textField); + } + module.exports = { + currentlyFocusedInput: currentlyFocusedInput, + focusInput: focusInput, + blurInput: blurInput, + currentlyFocusedField: currentlyFocusedField, + focusField: focusField, + blurField: blurField, + focusTextInput: focusTextInput, + blurTextInput: blurTextInput, + registerInput: registerInput, + unregisterInput: unregisterInput, + isTextInput: isTextInput + }; +},200,[36,34,201,236],"node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var _RCTTextInputViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./RCTTextInputViewConfig")); + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['focus', 'blur', 'setTextAndSelection'] + }); + exports.Commands = Commands; + var __INTERNAL_VIEW_CONFIG = Object.assign({ + uiViewClassName: 'RCTSinglelineTextInputView' + }, _RCTTextInputViewConfig.default); + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var SinglelineTextInputNativeComponent = NativeComponentRegistry.get('RCTSinglelineTextInputView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + + var _default = SinglelineTextInputNativeComponent; + exports.default = _default; +},201,[3,202,209,211],"node_modules/react-native/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + + var dispatchCommand; + if (global.RN$Bridgeless) { + dispatchCommand = _$$_REQUIRE(_dependencyMap[0], "../../Libraries/Renderer/shims/ReactFabric").dispatchCommand; + } else { + dispatchCommand = _$$_REQUIRE(_dependencyMap[1], "../../Libraries/Renderer/shims/ReactNative").dispatchCommand; + } + function codegenNativeCommands(options) { + var commandObj = {}; + options.supportedCommands.forEach(function (command) { + commandObj[command] = function (ref) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + dispatchCommand(ref, command, args); + }; + }); + return commandObj; + } + var _default = codegenNativeCommands; + exports.default = _default; +},202,[203,34],"node_modules/react-native/Libraries/Utilities/codegenNativeCommands.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var ReactFabric; + if (__DEV__) { + ReactFabric = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactFabric-dev"); + } else { + ReactFabric = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactFabric-prod"); + } + if (global.RN$Bridgeless) { + global.RN$stopSurface = ReactFabric.stopSurface; + } else { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); + } + module.exports = ReactFabric; +},203,[204,208,197],"node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + if (__DEV__) { + (function () { + 'use strict'; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + "use strict"; + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + _$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var ReactNativePrivateInterface = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"); + var Scheduler = _$$_REQUIRE(_dependencyMap[3], "scheduler"); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + + var argsWithFormat = args.map(function (item) { + return String(item); + }); + + argsWithFormat.unshift("Warning: " + format); + + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + } + var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; + { + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + if (typeof document === "undefined" || document === null) { + throw new Error("The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); + } + var evt = document.createEvent("Event"); + var didCall = false; + + var didError = true; + + var windowEvent = window.event; + + var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); + function restoreAfterDispatch() { + fakeNode.removeEventListener(evtType, callCallback, false); + + if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { + window.event = windowEvent; + } + } + + var funcArgs = Array.prototype.slice.call(arguments, 3); + function callCallback() { + didCall = true; + restoreAfterDispatch(); + func.apply(context, funcArgs); + didError = false; + } + + var error; + + var didSetError = false; + var isCrossOriginError = false; + function handleWindowError(event) { + error = event.error; + didSetError = true; + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + if (event.defaultPrevented) { + if (error != null && typeof error === "object") { + try { + error._suppressLogging = true; + } catch (inner) { + } + } + } + } + + var evtType = "react-" + (name ? name : "invokeguardedcallback"); + + window.addEventListener("error", handleWindowError); + fakeNode.addEventListener(evtType, callCallback, false); + + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + if (windowEventDescriptor) { + Object.defineProperty(window, "event", windowEventDescriptor); + } + if (didCall && didError) { + if (!didSetError) { + error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); + } else if (isCrossOriginError) { + error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://reactjs.org/link/crossorigin-error for more information."); + } + this.onError(error); + } + + window.removeEventListener("error", handleWindowError); + if (!didCall) { + restoreAfterDispatch(); + return invokeGuardedCallbackProd.apply(this, arguments); + } + }; + } + } + var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; + var hasError = false; + var caughtError = null; + + var hasRethrowError = false; + var rethrowError = null; + var reporter = { + onError: function onError(error) { + hasError = true; + caughtError = error; + } + }; + + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = false; + caughtError = null; + invokeGuardedCallbackImpl$1.apply(reporter, arguments); + } + + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + var error = clearCaughtError(); + if (!hasRethrowError) { + hasRethrowError = true; + rethrowError = error; + } + } + } + + function rethrowCaughtError() { + if (hasRethrowError) { + var error = rethrowError; + hasRethrowError = false; + rethrowError = null; + throw error; + } + } + function hasCaughtError() { + return hasError; + } + function clearCaughtError() { + if (hasError) { + var error = caughtError; + hasError = false; + caughtError = null; + return error; + } else { + throw new Error("clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); + } + } + var isArrayImpl = Array.isArray; + + function isArray(a) { + return isArrayImpl(a); + } + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { + getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; + getInstanceFromNode = getInstanceFromNodeImpl; + getNodeFromInstance = getNodeFromInstanceImpl; + { + if (!getNodeFromInstance || !getInstanceFromNode) { + error("EventPluginUtils.setComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode."); + } + } + } + var validateEventDispatches; + { + validateEventDispatches = function validateEventDispatches(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { + error("EventPluginUtils: Invalid `event`."); + } + }; + } + + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + + function executeDispatchesInOrder(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, dispatchListeners, dispatchInstances); + } + event._dispatchListeners = null; + event._dispatchInstances = null; + } + + function executeDispatchesInOrderStopAtTrueImpl(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + if (dispatchListeners[i](event, dispatchInstances[i])) { + return dispatchInstances[i]; + } + } + } else if (dispatchListeners) { + if (dispatchListeners(event, dispatchInstances)) { + return dispatchInstances; + } + } + return null; + } + + function executeDispatchesInOrderStopAtTrue(event) { + var ret = executeDispatchesInOrderStopAtTrueImpl(event); + event._dispatchInstances = null; + event._dispatchListeners = null; + return ret; + } + + function executeDirectDispatch(event) { + { + validateEventDispatches(event); + } + var dispatchListener = event._dispatchListeners; + var dispatchInstance = event._dispatchInstances; + if (isArray(dispatchListener)) { + throw new Error("executeDirectDispatch(...): Invalid `event`."); + } + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + var res = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return res; + } + + function hasDispatches(event) { + return !!event._dispatchListeners; + } + var assign = Object.assign; + var EVENT_POOL_SIZE = 10; + + var EventInterface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + function functionThatReturnsTrue() { + return true; + } + function functionThatReturnsFalse() { + return false; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + delete this.isDefaultPrevented; + delete this.isPropagationStopped; + } + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchListeners = null; + this._dispatchInstances = null; + var Interface = this.constructor.Interface; + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + { + delete this[propName]; + } + + var normalize = Interface[propName]; + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === "target") { + this.target = nativeEventTarget; + } else { + this[propName] = nativeEvent[propName]; + } + } + } + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = true; + var event = this.nativeEvent; + if (!event) { + return; + } + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== "unknown") { + event.returnValue = false; + } + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + if (!event) { + return; + } + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== "unknown") { + event.cancelBubble = true; + } + this.isPropagationStopped = functionThatReturnsTrue; + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface; + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } + } + this.dispatchConfig = null; + this._targetInst = null; + this.nativeEvent = null; + this.isDefaultPrevented = functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + this._dispatchListeners = null; + this._dispatchInstances = null; + { + Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); + Object.defineProperty(this, "isDefaultPrevented", getPooledWarningPropertyDefinition("isDefaultPrevented", functionThatReturnsFalse)); + Object.defineProperty(this, "isPropagationStopped", getPooledWarningPropertyDefinition("isPropagationStopped", functionThatReturnsFalse)); + Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); + Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); + } + } + }); + SyntheticEvent.Interface = EventInterface; + + SyntheticEvent.extend = function (Interface) { + var Super = this; + var E = function E() {}; + E.prototype = Super.prototype; + var prototype = new E(); + function Class() { + return Super.apply(this, arguments); + } + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + + function getPooledWarningPropertyDefinition(propName, getVal) { + function set(val) { + var action = isFunction ? "setting the method" : "setting the property"; + warn(action, "This is effectively a no-op"); + return val; + } + function get() { + var action = isFunction ? "accessing the method" : "accessing the property"; + var result = isFunction ? "This is a no-op function" : "This is set to null"; + warn(action, result); + return getVal; + } + function warn(action, result) { + { + error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://reactjs.org/link/event-pooling for more information.", action, propName, result); + } + } + var isFunction = typeof getVal === "function"; + return { + configurable: true, + set: set, + get: get + }; + } + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + function releasePooledEvent(event) { + var EventConstructor = this; + if (!(event instanceof EventConstructor)) { + throw new Error("Trying to release an event instance into a pool of a different type."); + } + event.destructor(); + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory(nativeEvent) { + return null; + } + }); + + var TOP_TOUCH_START = "topTouchStart"; + var TOP_TOUCH_MOVE = "topTouchMove"; + var TOP_TOUCH_END = "topTouchEnd"; + var TOP_TOUCH_CANCEL = "topTouchCancel"; + var TOP_SCROLL = "topScroll"; + var TOP_SELECTION_CHANGE = "topSelectionChange"; + function isStartish(topLevelType) { + return topLevelType === TOP_TOUCH_START; + } + function isMoveish(topLevelType) { + return topLevelType === TOP_TOUCH_MOVE; + } + function isEndish(topLevelType) { + return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; + } + var startDependencies = [TOP_TOUCH_START]; + var moveDependencies = [TOP_TOUCH_MOVE]; + var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + + var MAX_TOUCH_BANK = 20; + var touchBank = []; + var touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function createTouchRecord(touch) { + return { + touchActive: true, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }; + } + function resetTouchRecord(touchRecord, touch) { + touchRecord.touchActive = true; + touchRecord.startPageX = touch.pageX; + touchRecord.startPageY = touch.pageY; + touchRecord.startTimeStamp = timestampForTouch(touch); + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchRecord.previousPageX = touch.pageX; + touchRecord.previousPageY = touch.pageY; + touchRecord.previousTimeStamp = timestampForTouch(touch); + } + function getTouchIdentifier(_ref) { + var identifier = _ref.identifier; + if (identifier == null) { + throw new Error("Touch object is missing identifier."); + } + { + if (identifier > MAX_TOUCH_BANK) { + error("Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK); + } + } + return identifier; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch); + var touchRecord = touchBank[identifier]; + if (touchRecord) { + resetTouchRecord(touchRecord, touch); + } else { + touchBank[identifier] = createTouchRecord(touch); + } + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = true; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = false; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch end without a touch start.\n" + "Touch End: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + } + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); + if (touchBank.length > MAX_TOUCH_BANK) { + printed += " (original size: " + touchBank.length + ")"; + } + return printed; + } + var instrumentationCallback; + var ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (instrumentationCallback != null) { + instrumentationCallback(topLevelType, nativeEvent); + } + if (isMoveish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchMove); + } else if (isStartish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchStart); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; + } + } else if (isEndish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchEnd); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + for (var i = 0; i < touchBank.length; i++) { + var touchTrackToCheck = touchBank[i]; + if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { + touchHistory.indexOfSingleActiveTouch = i; + break; + } + } + { + var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; + if (activeRecord == null || !activeRecord.touchActive) { + error("Cannot find single active touch."); + } + } + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + if (next == null) { + throw new Error("accumulate(...): Accumulated items must not be null or undefined."); + } + if (current == null) { + return next; + } + + if (isArray(current)) { + return current.concat(next); + } + if (isArray(next)) { + return [current].concat(next); + } + return [current, next]; + } + + function accumulateInto(current, next) { + if (next == null) { + throw new Error("accumulateInto(...): Accumulated items must not be null or undefined."); + } + if (current == null) { + return next; + } + + if (isArray(current)) { + if (isArray(next)) { + current.push.apply(current, next); + return current; + } + current.push(next); + return current; + } + if (isArray(next)) { + return [current].concat(next); + } + return [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); + } + } + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; + + var HostRoot = 3; + + var HostPortal = 4; + + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + + var responderInst = null; + + var trackedTouchCount = 0; + var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (ResponderEventPlugin.GlobalResponderHandler !== null) { + ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + }; + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: [TOP_SCROLL] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: [TOP_SELECTION_CHANGE] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; + } + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + var depthB = 0; + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } + + var depth = depthA; + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; + } + instA = getParent(instA); + instB = getParent(instB); + } + return null; + } + + function isAncestor(instA, instB) { + while (instB) { + if (instA === instB || instA === instB.alternate) { + return true; + } + instB = getParent(instB); + } + return false; + } + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent(inst); + } + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + function getListener(inst, registrationName) { + var stateNode = inst.stateNode; + if (stateNode === null) { + return null; + } + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + return null; + } + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + } + return listener; + } + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + function accumulateDirectionalDispatches(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); + } + } + var listener = listenerAtPhase(inst, event, phase); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } + } + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + var parentInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatchesSkipTarget(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); + } + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } + + function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); + + var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; + var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); + shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + if (skipOverBubbleShouldSetFrom) { + accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); + } else { + accumulateTwoPhaseDispatches(shouldSetEvent); + } + var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); + if (!shouldSetEvent.isPersistent()) { + shouldSetEvent.constructor.release(shouldSetEvent); + } + if (!wantsResponderInst || wantsResponderInst === responderInst) { + return null; + } + var extracted; + var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); + grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(grantEvent); + var blockHostResponder = executeDirectDispatch(grantEvent) === true; + if (responderInst) { + var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); + terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminationRequestEvent); + var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); + if (!terminationRequestEvent.isPersistent()) { + terminationRequestEvent.constructor.release(terminationRequestEvent); + } + if (shouldSwitch) { + var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminateEvent); + extracted = accumulate(extracted, [grantEvent, terminateEvent]); + changeResponder(wantsResponderInst, blockHostResponder); + } else { + var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); + rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(rejectEvent); + extracted = accumulate(extracted, rejectEvent); + } + } else { + extracted = accumulate(extracted, grantEvent); + changeResponder(wantsResponderInst, blockHostResponder); + } + return extracted; + } + + function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { + return topLevelInst && ( + topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); + } + + function noResponderTouches(nativeEvent) { + var touches = nativeEvent.touches; + if (!touches || touches.length === 0) { + return true; + } + for (var i = 0; i < touches.length; i++) { + var activeTouch = touches[i]; + var target = activeTouch.target; + if (target !== null && target !== undefined && target !== 0) { + var targetInst = getInstanceFromNode(target); + if (isAncestor(responderInst, targetInst)) { + return false; + } + } + } + return true; + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + if (isStartish(topLevelType)) { + trackedTouchCount += 1; + } else if (isEndish(topLevelType)) { + if (trackedTouchCount >= 0) { + trackedTouchCount -= 1; + } else { + { + warn("Ended a touch event which was not counted in `trackedTouchCount`."); + } + return null; + } + } + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + + var isResponderTouchStart = responderInst && isStartish(topLevelType); + var isResponderTouchMove = responderInst && isMoveish(topLevelType); + var isResponderTouchEnd = responderInst && isEndish(topLevelType); + var incrementalTouch = isResponderTouchStart ? eventTypes.responderStart : isResponderTouchMove ? eventTypes.responderMove : isResponderTouchEnd ? eventTypes.responderEnd : null; + if (incrementalTouch) { + var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); + gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(gesture); + extracted = accumulate(extracted, gesture); + } + var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; + var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); + var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; + if (finalTouch) { + var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); + finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(finalEvent); + extracted = accumulate(extracted, finalEvent); + changeResponder(null); + } + return extracted; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }; + + var eventPluginOrder = null; + + var namesToPlugins = {}; + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + return; + } + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + if (pluginIndex <= -1) { + throw new Error("EventPluginRegistry: Cannot inject event plugins that do not exist in " + ("the plugin ordering, `" + pluginName + "`.")); + } + if (plugins[pluginIndex]) { + continue; + } + if (!pluginModule.extractEvents) { + throw new Error("EventPluginRegistry: Event plugins must implement an `extractEvents` " + ("method, but `" + pluginName + "` does not.")); + } + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + for (var eventName in publishedEvents) { + if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { + throw new Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } + } + } + } + + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("event name, `" + eventName + "`.")); + } + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; + } + return false; + } + + function publishRegistrationName(registrationName, pluginModule, eventName) { + if (registrationNameModules[registrationName]) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("registration name, `" + registrationName + "`.")); + } + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + } + } + + var plugins = []; + + var eventNameDispatchConfigs = {}; + + var registrationNameModules = {}; + + var registrationNameDependencies = {}; + + function injectEventPluginOrder(injectedEventPluginOrder) { + if (eventPluginOrder) { + throw new Error("EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); + } + + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; + } + var pluginModule = injectedNamesToPlugins[pluginName]; + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + if (namesToPlugins[pluginName]) { + throw new Error("EventPluginRegistry: Cannot inject two different event plugins " + ("using the same name, `" + pluginName + "`.")); + } + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } + } + if (isOrderingDirty) { + recomputePluginOrdering(); + } + } + + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (stateNode === null) { + return null; + } + + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + return null; + } + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + } + + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) { + return listener; + } + + var listeners = []; + if (listener) { + listeners.push(listener); + } + + var requestedPhaseIsCapture = phase === "captured"; + var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + + if (stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length > 0) { + var eventListeners = stateNode.canonical._eventListeners[mangledImperativeRegistrationName]; + eventListeners.forEach(function (listenerObj) { + var isCaptureEvent = listenerObj.options.capture != null && listenerObj.options.capture; + if (isCaptureEvent !== requestedPhaseIsCapture) { + return; + } + + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new ReactNativePrivateInterface.CustomEvent(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = true; + + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + + if (listenerObj.options.once) { + listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + + if (!listenerObj.invalidated) { + listenerObj.invalidated = true; + listenerObj.listener.apply(listenerObj, arguments); + } + }); + } else { + listeners.push(listenerFnWrapper); + } + }); + } + if (listeners.length === 0) { + return null; + } + if (listeners.length === 1) { + return listeners[0]; + } + return listeners; + } + var customBubblingEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; + + function listenersAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListeners(inst, registrationName, propagationPhase, true); + } + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArray(listeners) ? listeners.length : 1 : 0; + if (listenersLength > 0) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); + + if (event._dispatchInstances == null && listenersLength === 1) { + event._dispatchInstances = inst; + } else { + event._dispatchInstances = event._dispatchInstances || []; + if (!isArray(event._dispatchInstances)) { + event._dispatchInstances = [event._dispatchInstances]; + } + for (var i = 0; i < listenersLength; i++) { + event._dispatchInstances.push(inst); + } + } + } + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); + } + } + var listeners = listenersAtPhase(inst, event, phase); + accumulateListenersAndInstances(inst, event, listeners); + } + function getParent$1(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; + } + + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent$1(inst); + } + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + if (skipBubbling) { + fn(path[0], "bubbled", arg); + } else { + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, false); + } + } + function accumulateTwoPhaseDispatches$1(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle$1); + } + function accumulateCapturePhaseDispatches(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, true); + } + } + + function accumulateDispatches$1(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listeners = getListeners(inst, registrationName, "bubbled", false); + accumulateListenersAndInstances(inst, event, listeners); + } + } + + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches$1(event._targetInst, null, event); + } + } + function accumulateDirectDispatches$1(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle$1); + } + + var ReactNativeBridgeEventPlugin = { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (targetInst == null) { + return null; + } + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType]; + var directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) { + throw new Error( + 'Unsupported top level event type "' + topLevelType + '" dispatched'); + } + var event = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) { + var skipBubbling = event != null && event.dispatchConfig.phasedRegistrationNames != null && event.dispatchConfig.phasedRegistrationNames.skipBubbling; + if (skipBubbling) { + accumulateCapturePhaseDispatches(event); + } else { + accumulateTwoPhaseDispatches$1(event); + } + } else if (directDispatchConfig) { + accumulateDirectDispatches$1(event); + } else { + return null; + } + return event; + } + }; + var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + + injectEventPluginOrder(ReactNativeEventPluginOrder); + + injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; + } + function getTagFromInstance(inst) { + var nativeInstance = inst.stateNode.canonical; + if (!nativeInstance._nativeTag) { + throw new Error("All native instances should have a tag."); + } + return nativeInstance; + } + function getFiberCurrentPropsFromNode$1(inst) { + return inst.canonical.currentProps; + } + + var ReactFabricGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + var fromOrTo = from || to; + var fromOrToStateNode = fromOrTo && fromOrTo.stateNode; + var isFabric = !!(fromOrToStateNode && fromOrToStateNode.canonical._internalInstanceHandle); + if (isFabric) { + if (from) { + nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false, blockNativeResponder || false); + } + if (to) { + nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true, blockNativeResponder || false); + } + } else { + if (to !== null) { + var tag = to.stateNode.canonical._nativeTag; + ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); + } else { + ReactNativePrivateInterface.UIManager.clearJSResponder(); + } + } + } + }; + setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromInstance, getTagFromInstance); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactFabricGlobalResponderHandler); + + function get(key) { + return key._reactInternals; + } + function set(key, value) { + key._reactInternals = value; + } + var enableSchedulingProfiler = false; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var warnAboutStringRefs = false; + var enableSuspenseAvoidThisFallback = false; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + + function getContextName(type) { + return type.displayName || "Context"; + } + + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + + } + } + + return null; + } + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, + type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + return "StrictMode"; + } + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; + } + return null; + } + + var NoFlags = + 0; + var PerformedWork = + 1; + + var Placement = + 2; + var Update = + 4; + var ChildDeletion = + 16; + var ContentReset = + 32; + var Callback = + 64; + var DidCapture = + 128; + var ForceClientRender = + 256; + var Ref = + 512; + var Snapshot = + 1024; + var Passive = + 2048; + var Hydrating = + 4096; + var Visibility = + 8192; + var StoreConsistency = + 16384; + var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; + + var HostEffectMask = + 32767; + + var Incomplete = + 32768; + var ShouldCapture = + 65536; + var ForceUpdateForLegacySuspense = + 131072; + var Forked = + 1048576; + + var RefStatic = + 2097152; + var LayoutStatic = + 4194304; + var PassiveStatic = + 8388608; + + var BeforeMutationMask = + Update | Snapshot | 0; + var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; + var LayoutMask = Update | Callback | Ref | Visibility; + + var PassiveMask = Passive | ChildDeletion; + + var StaticMask = LayoutStatic | PassiveStatic | RefStatic; + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + var nextNode = node; + do { + node = nextNode; + if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + nearestMounted = node.return; + } + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } + } + if (node.tag === HostRoot) { + return nearestMounted; + } + + return null; + } + function isFiberMounted(fiber) { + return getNearestMountedFiber(fiber) === fiber; + } + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + if (!instance._warnedAboutRefsInRender) { + error("%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"); + } + instance._warnedAboutRefsInRender = true; + } + } + var fiber = get(component); + if (!fiber) { + return false; + } + return getNearestMountedFiber(fiber) === fiber; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error("Unable to find node on an unmounted component."); + } + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error("Unable to find node on an unmounted component."); + } + if (nearestMounted !== fiber) { + return null; + } + return fiber; + } + + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + break; + } + var parentB = parentA.alternate; + if (parentB === null) { + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } + + break; + } + + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } + + throw new Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error("Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); + } + } + } + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + + if (a.tag !== HostRoot) { + throw new Error("Unable to find node on an unmounted component."); + } + if (a.stateNode.current === a) { + return fiber; + } + + return alternate; + } + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; + } + function findCurrentHostFiberImpl(node) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } + var child = node.child; + while (child !== null) { + var match = findCurrentHostFiberImpl(child); + if (match !== null) { + return match; + } + child = child.sibling; + } + return null; + } + + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (!callback) { + return undefined; + } + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } + + return callback.apply(context, arguments); + }; + } + + var emptyObject = {}; + + var removedKeys = null; + var removedKeyCount = 0; + var deepDifferOptions = { + unsafelyIgnoreFunctions: true + }; + function defaultDiffer(prevProp, nextProp) { + if (typeof nextProp !== "object" || nextProp === null) { + return true; + } else { + return ReactNativePrivateInterface.deepDiffer(prevProp, nextProp, deepDifferOptions); + } + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArray(node)) { + var i = node.length; + while (i-- && removedKeyCount > 0) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } + } else if (node && removedKeyCount > 0) { + var obj = node; + for (var propKey in removedKeys) { + if (!removedKeys[propKey]) { + continue; + } + var nextProp = obj[propKey]; + if (nextProp === undefined) { + continue; + } + var attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; + } + + if (typeof nextProp === "function") { + nextProp = true; + } + if (typeof nextProp === "undefined") { + nextProp = null; + } + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + removedKeys[propKey] = false; + removedKeyCount--; + } + } + } + function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { + var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; + var i; + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); + } + for (; i < prevArray.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); + } + for (; i < nextArray.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); + } + return updatePayload; + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) { + return updatePayload; + } + if (!prevProp || !nextProp) { + if (nextProp) { + return addNestedProperty(updatePayload, nextProp, validAttributes); + } + if (prevProp) { + return clearNestedProperty(updatePayload, prevProp, validAttributes); + } + return updatePayload; + } + if (!isArray(prevProp) && !isArray(nextProp)) { + return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp) && isArray(nextProp)) { + return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp)) { + return diffProperties(updatePayload, + ReactNativePrivateInterface.flattenStyle(prevProp), + nextProp, validAttributes); + } + return diffProperties(updatePayload, prevProp, + ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) { + return updatePayload; + } + if (!isArray(nextProp)) { + return addProperties(updatePayload, nextProp, validAttributes); + } + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) { + return updatePayload; + } + if (!isArray(prevProp)) { + return clearProperties(updatePayload, prevProp, validAttributes); + } + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig; + var nextProp; + var prevProp; + for (var propKey in nextProps) { + attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; + } + + prevProp = prevProps[propKey]; + nextProp = nextProps[propKey]; + + if (typeof nextProp === "function") { + nextProp = true; + + if (typeof prevProp === "function") { + prevProp = true; + } + } + + if (typeof nextProp === "undefined") { + nextProp = null; + if (typeof prevProp === "undefined") { + prevProp = null; + } + } + if (removedKeys) { + removedKeys[propKey] = false; + } + if (updatePayload && updatePayload[propKey] !== undefined) { + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + continue; + } + if (prevProp === nextProp) { + continue; + } + + if (typeof attributeConfig !== "object") { + if (defaultDiffer(prevProp, nextProp)) { + (updatePayload || (updatePayload = {}))[propKey] = nextProp; + } + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); + if (shouldUpdate) { + var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + (updatePayload || (updatePayload = {}))[propKey] = _nextValue; + } + } else { + removedKeys = null; + removedKeyCount = 0; + + updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); + if (removedKeyCount > 0 && updatePayload) { + restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); + removedKeys = null; + } + } + } + + for (var _propKey in prevProps) { + if (nextProps[_propKey] !== undefined) { + continue; + } + + attributeConfig = validAttributes[_propKey]; + if (!attributeConfig) { + continue; + } + + if (updatePayload && updatePayload[_propKey] !== undefined) { + continue; + } + prevProp = prevProps[_propKey]; + if (prevProp === undefined) { + continue; + } + + if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + (updatePayload || (updatePayload = {}))[_propKey] = null; + if (!removedKeys) { + removedKeys = {}; + } + if (!removedKeys[_propKey]) { + removedKeys[_propKey] = true; + removedKeyCount++; + } + } else { + updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); + } + } + return updatePayload; + } + + function addProperties(updatePayload, props, validAttributes) { + return diffProperties(updatePayload, emptyObject, props, validAttributes); + } + + function clearProperties(updatePayload, prevProps, validAttributes) { + return diffProperties(updatePayload, prevProps, emptyObject, validAttributes); + } + function create(props, validAttributes) { + return addProperties(null, + props, validAttributes); + } + function diff(prevProps, nextProps, validAttributes) { + return diffProperties(null, + prevProps, nextProps, validAttributes); + } + + var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + }; + var isInsideEventHandler = false; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) { + return fn(bookkeeping); + } + isInsideEventHandler = true; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = false; + } + } + function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { + batchedUpdatesImpl = _batchedUpdatesImpl; + } + + var eventQueue = null; + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { + if (event) { + executeDispatchesInOrder(event); + if (!event.isPersistent()) { + event.constructor.release(event); + } + } + }; + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e); + }; + function runEventsInBatch(events) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } + + var processingEventQueue = eventQueue; + eventQueue = null; + if (!processingEventQueue) { + return; + } + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + if (eventQueue) { + throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + } + + rethrowCaughtError(); + } + + function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + var legacyPlugins = plugins; + for (var i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } + } + return events; + } + function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events); + } + function dispatchEvent(target, topLevelType, nativeEvent) { + var targetFiber = target; + var eventTarget = null; + if (targetFiber != null) { + var stateNode = targetFiber.stateNode; + + if (stateNode != null) { + eventTarget = stateNode.canonical; + } + } + batchedUpdates(function () { + var event = { + eventName: topLevelType, + nativeEvent: nativeEvent + }; + ReactNativePrivateInterface.RawEventEmitter.emit(topLevelType, event); + ReactNativePrivateInterface.RawEventEmitter.emit("*", event); + + runExtractedPluginEventsInBatch(topLevelType, targetFiber, nativeEvent, eventTarget); + }); + } + + var scheduleCallback = Scheduler.unstable_scheduleCallback; + var cancelCallback = Scheduler.unstable_cancelCallback; + var shouldYield = Scheduler.unstable_shouldYield; + var requestPaint = Scheduler.unstable_requestPaint; + var now = Scheduler.unstable_now; + var ImmediatePriority = Scheduler.unstable_ImmediatePriority; + var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; + var NormalPriority = Scheduler.unstable_NormalPriority; + var IdlePriority = Scheduler.unstable_IdlePriority; + var rendererID = null; + var injectedHook = null; + var hasLoggedError = false; + var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + return false; + } + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) { + return true; + } + if (!hook.supportsFiber) { + { + error("The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://reactjs.org/link/react-devtools"); + } + + return true; + } + try { + if (enableSchedulingProfiler) { + internals = assign({}, internals, { + getLaneLabelMap: getLaneLabelMap, + injectProfilingHooks: injectProfilingHooks + }); + } + rendererID = hook.inject(internals); + + injectedHook = hook; + } catch (err) { + { + error("React instrumentation encountered an error: %s.", err); + } + } + if (hook.checkDCE) { + return true; + } else { + return false; + } + } + function onScheduleRoot(root, children) { + { + if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") { + try { + injectedHook.onScheduleFiberRoot(rendererID, root, children); + } catch (err) { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitRoot(root, eventPriority) { + if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { + try { + var didError = (root.current.flags & DidCapture) === DidCapture; + if (enableProfilerTimer) { + var schedulerPriority; + switch (eventPriority) { + case DiscreteEventPriority: + schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority; + break; + } + injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError); + } else { + injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); + } + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onPostCommitRoot(root) { + if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") { + try { + injectedHook.onPostCommitFiberRoot(rendererID, root); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitUnmount(fiber) { + if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function") { + try { + injectedHook.onCommitFiberUnmount(rendererID, fiber); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function injectProfilingHooks(profilingHooks) {} + function getLaneLabelMap() { + { + return null; + } + } + function markComponentRenderStopped() {} + function markComponentErrored(fiber, thrownValue, lanes) {} + function markComponentSuspended(fiber, wakeable, lanes) {} + var NoMode = + 0; + + var ConcurrentMode = + 1; + var ProfileMode = + 2; + var StrictLegacyMode = + 8; + + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; + + var log = Math.log; + var LN2 = Math.LN2; + function clz32Fallback(x) { + var asUint = x >>> 0; + if (asUint === 0) { + return 32; + } + return 31 - (log(asUint) / LN2 | 0) | 0; + } + + var TotalLanes = 31; + var NoLanes = + 0; + var NoLane = + 0; + var SyncLane = + 1; + var InputContinuousHydrationLane = + 2; + var InputContinuousLane = + 4; + var DefaultHydrationLane = + 8; + var DefaultLane = + 16; + var TransitionHydrationLane = + 32; + var TransitionLanes = + 4194240; + var TransitionLane1 = + 64; + var TransitionLane2 = + 128; + var TransitionLane3 = + 256; + var TransitionLane4 = + 512; + var TransitionLane5 = + 1024; + var TransitionLane6 = + 2048; + var TransitionLane7 = + 4096; + var TransitionLane8 = + 8192; + var TransitionLane9 = + 16384; + var TransitionLane10 = + 32768; + var TransitionLane11 = + 65536; + var TransitionLane12 = + 131072; + var TransitionLane13 = + 262144; + var TransitionLane14 = + 524288; + var TransitionLane15 = + 1048576; + var TransitionLane16 = + 2097152; + var RetryLanes = + 130023424; + var RetryLane1 = + 4194304; + var RetryLane2 = + 8388608; + var RetryLane3 = + 16777216; + var RetryLane4 = + 33554432; + var RetryLane5 = + 67108864; + var SomeRetryLane = RetryLane1; + var SelectiveHydrationLane = + 134217728; + var NonIdleLanes = + 268435455; + var IdleHydrationLane = + 268435456; + var IdleLane = + 536870912; + var OffscreenLane = + 1073741824; + var NoTimestamp = -1; + var nextTransitionLane = TransitionLane1; + var nextRetryLane = RetryLane1; + function getHighestPriorityLanes(lanes) { + switch (getHighestPriorityLane(lanes)) { + case SyncLane: + return SyncLane; + case InputContinuousHydrationLane: + return InputContinuousHydrationLane; + case InputContinuousLane: + return InputContinuousLane; + case DefaultHydrationLane: + return DefaultHydrationLane; + case DefaultLane: + return DefaultLane; + case TransitionHydrationLane: + return TransitionHydrationLane; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return lanes & TransitionLanes; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return lanes & RetryLanes; + case SelectiveHydrationLane: + return SelectiveHydrationLane; + case IdleHydrationLane: + return IdleHydrationLane; + case IdleLane: + return IdleLane; + case OffscreenLane: + return OffscreenLane; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + + return lanes; + } + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (pendingLanes === NoLanes) { + return NoLanes; + } + var nextLanes = NoLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + + var nonIdlePendingLanes = pendingLanes & NonIdleLanes; + if (nonIdlePendingLanes !== NoLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + if (nonIdleUnblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); + } else { + var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; + if (nonIdlePingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); + } + } + } else { + var unblockedLanes = pendingLanes & ~suspendedLanes; + if (unblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(unblockedLanes); + } else { + if (pingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(pingedLanes); + } + } + } + if (nextLanes === NoLanes) { + return NoLanes; + } + + if (wipLanes !== NoLanes && wipLanes !== nextLanes && + (wipLanes & suspendedLanes) === NoLanes) { + var nextLane = getHighestPriorityLane(nextLanes); + var wipLane = getHighestPriorityLane(wipLanes); + if ( + nextLane >= wipLane || + nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) { + return wipLanes; + } + } + if ((nextLanes & InputContinuousLane) !== NoLanes) { + nextLanes |= pendingLanes & DefaultLane; + } + + var entangledLanes = root.entangledLanes; + if (entangledLanes !== NoLanes) { + var entanglements = root.entanglements; + var lanes = nextLanes & entangledLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + nextLanes |= entanglements[index]; + lanes &= ~lane; + } + } + return nextLanes; + } + function getMostRecentEventTime(root, lanes) { + var eventTimes = root.eventTimes; + var mostRecentEventTime = NoTimestamp; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var eventTime = eventTimes[index]; + if (eventTime > mostRecentEventTime) { + mostRecentEventTime = eventTime; + } + lanes &= ~lane; + } + return mostRecentEventTime; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case SyncLane: + case InputContinuousHydrationLane: + case InputContinuousLane: + return currentTime + 250; + case DefaultHydrationLane: + case DefaultLane: + case TransitionHydrationLane: + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return currentTime + 5000; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return NoTimestamp; + case SelectiveHydrationLane: + case IdleHydrationLane: + case IdleLane: + case OffscreenLane: + return NoTimestamp; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + return NoTimestamp; + } + } + function markStarvedLanesAsExpired(root, currentTime) { + var pendingLanes = root.pendingLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + var expirationTimes = root.expirationTimes; + + var lanes = pendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var expirationTime = expirationTimes[index]; + if (expirationTime === NoTimestamp) { + if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { + expirationTimes[index] = computeExpirationTime(lane, currentTime); + } + } else if (expirationTime <= currentTime) { + root.expiredLanes |= lane; + } + lanes &= ~lane; + } + } + function getLanesToRetrySynchronouslyOnError(root) { + var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; + if (everythingButOffscreen !== NoLanes) { + return everythingButOffscreen; + } + if (everythingButOffscreen & OffscreenLane) { + return OffscreenLane; + } + return NoLanes; + } + function includesSyncLane(lanes) { + return (lanes & SyncLane) !== NoLanes; + } + function includesNonIdleWork(lanes) { + return (lanes & NonIdleLanes) !== NoLanes; + } + function includesOnlyRetries(lanes) { + return (lanes & RetryLanes) === lanes; + } + function includesOnlyNonUrgentLanes(lanes) { + var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; + return (lanes & UrgentLanes) === NoLanes; + } + function includesOnlyTransitions(lanes) { + return (lanes & TransitionLanes) === lanes; + } + function includesBlockingLane(root, lanes) { + var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane; + return (lanes & SyncDefaultLanes) !== NoLanes; + } + function includesExpiredLane(root, lanes) { + return (lanes & root.expiredLanes) !== NoLanes; + } + function isTransitionLane(lane) { + return (lane & TransitionLanes) !== NoLanes; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + if ((nextTransitionLane & TransitionLanes) === NoLanes) { + nextTransitionLane = TransitionLane1; + } + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + if ((nextRetryLane & RetryLanes) === NoLanes) { + nextRetryLane = RetryLane1; + } + return lane; + } + function getHighestPriorityLane(lanes) { + return lanes & -lanes; + } + function pickArbitraryLane(lanes) { + return getHighestPriorityLane(lanes); + } + function pickArbitraryLaneIndex(lanes) { + return 31 - clz32(lanes); + } + function laneToIndex(lane) { + return pickArbitraryLaneIndex(lane); + } + function includesSomeLane(a, b) { + return (a & b) !== NoLanes; + } + function isSubsetOfLanes(set, subset) { + return (set & subset) === subset; + } + function mergeLanes(a, b) { + return a | b; + } + function removeLanes(set, subset) { + return set & ~subset; + } + function intersectLanes(a, b) { + return a & b; + } + + function laneToLanes(lane) { + return lane; + } + function createLaneMap(initial) { + var laneMap = []; + for (var i = 0; i < TotalLanes; i++) { + laneMap.push(initial); + } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + + if (updateLane !== IdleLane) { + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + } + var eventTimes = root.eventTimes; + var index = laneToIndex(updateLane); + + eventTimes[index] = eventTime; + } + function markRootSuspended(root, suspendedLanes) { + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + + var expirationTimes = root.expirationTimes; + var lanes = suspendedLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootPinged(root, pingedLanes, eventTime) { + root.pingedLanes |= root.suspendedLanes & pingedLanes; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + var entanglements = root.entanglements; + var eventTimes = root.eventTimes; + var expirationTimes = root.expirationTimes; + + var lanes = noLongerPendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + entanglements[index] = NoLanes; + eventTimes[index] = NoTimestamp; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + var entanglements = root.entanglements; + var lanes = rootEntangledLanes; + while (lanes) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + if ( + lane & entangledLanes | + entanglements[index] & entangledLanes) { + entanglements[index] |= entangledLanes; + } + lanes &= ~lane; + } + } + function getBumpedLaneForHydration(root, renderLanes) { + var renderLane = getHighestPriorityLane(renderLanes); + var lane; + switch (renderLane) { + case InputContinuousLane: + lane = InputContinuousHydrationLane; + break; + case DefaultLane: + lane = DefaultHydrationLane; + break; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + lane = TransitionHydrationLane; + break; + case IdleLane: + lane = IdleHydrationLane; + break; + default: + lane = NoLane; + break; + } + + if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) { + return NoLane; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (!isDevToolsPresent) { + return; + } + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + updaters.add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (!isDevToolsPresent) { + return; + } + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + var memoizedUpdaters = root.memoizedUpdaters; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + if (updaters.size > 0) { + updaters.forEach(function (fiber) { + var alternate = fiber.alternate; + if (alternate === null || !memoizedUpdaters.has(alternate)) { + memoizedUpdaters.add(fiber); + } + }); + updaters.clear(); + } + lanes &= ~lane; + } + } + function getTransitionsForLanes(root, lanes) { + { + return null; + } + } + var DiscreteEventPriority = SyncLane; + var ContinuousEventPriority = InputContinuousLane; + var DefaultEventPriority = DefaultLane; + var IdleEventPriority = IdleLane; + var currentUpdatePriority = NoLane; + function getCurrentUpdatePriority() { + return currentUpdatePriority; + } + function setCurrentUpdatePriority(newPriority) { + currentUpdatePriority = newPriority; + } + function higherEventPriority(a, b) { + return a !== 0 && a < b ? a : b; + } + function lowerEventPriority(a, b) { + return a === 0 || a > b ? a : b; + } + function isHigherEventPriority(a, b) { + return a !== 0 && a < b; + } + function lanesToEventPriority(lanes) { + var lane = getHighestPriorityLane(lanes); + if (!isHigherEventPriority(DiscreteEventPriority, lane)) { + return DiscreteEventPriority; + } + if (!isHigherEventPriority(ContinuousEventPriority, lane)) { + return ContinuousEventPriority; + } + if (includesNonIdleWork(lane)) { + return DefaultEventPriority; + } + return IdleEventPriority; + } + + function shim() { + throw new Error("The current renderer does not support mutation. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + var commitMount = shim; + + function shim$1() { + throw new Error("The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + var isSuspenseInstancePending = shim$1; + var isSuspenseInstanceFallback = shim$1; + var getSuspenseInstanceFallbackErrorDetails = shim$1; + var registerSuspenseInstanceRetry = shim$1; + var hydrateTextInstance = shim$1; + var errorHydratingContainer = shim$1; + var _nativeFabricUIManage = nativeFabricUIManager, + createNode = _nativeFabricUIManage.createNode, + cloneNode = _nativeFabricUIManage.cloneNode, + cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, + cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, + cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, + createChildNodeSet = _nativeFabricUIManage.createChildSet, + appendChildNode = _nativeFabricUIManage.appendChild, + appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, + completeRoot = _nativeFabricUIManage.completeRoot, + registerEventHandler = _nativeFabricUIManage.registerEventHandler, + fabricMeasure = _nativeFabricUIManage.measure, + fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, + fabricMeasureLayout = _nativeFabricUIManage.measureLayout, + FabricDefaultPriority = _nativeFabricUIManage.unstable_DefaultEventPriority, + FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, + fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority; + var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; + + var nextReactTag = 2; + + if (registerEventHandler) { + registerEventHandler(dispatchEvent); + } + + var ReactFabricHostComponent = function () { + function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + this._internalInstanceHandle = internalInstanceHandle; + } + var _proto = ReactFabricHostComponent.prototype; + _proto.blur = function blur() { + ReactNativePrivateInterface.TextInputState.blurTextInput(this); + }; + _proto.focus = function focus() { + ReactNativePrivateInterface.TextInputState.focusTextInput(this); + }; + _proto.measure = function measure(callback) { + var stateNode = this._internalInstanceHandle.stateNode; + if (stateNode != null) { + fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + } + }; + _proto.measureInWindow = function measureInWindow(callback) { + var stateNode = this._internalInstanceHandle.stateNode; + if (stateNode != null) { + fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + } + }; + _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) + { + if (typeof relativeToNativeNode === "number" || !(relativeToNativeNode instanceof ReactFabricHostComponent)) { + { + error("Warning: ref.measureLayout must be called with a ref to a native component."); + } + return; + } + var toStateNode = this._internalInstanceHandle.stateNode; + var fromStateNode = relativeToNativeNode._internalInstanceHandle.stateNode; + if (toStateNode != null && fromStateNode != null) { + fabricMeasureLayout(toStateNode.node, fromStateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + } + }; + _proto.setNativeProps = function setNativeProps(nativeProps) { + { + error("Warning: setNativeProps is not currently supported in Fabric"); + } + return; + }; + + _proto.addEventListener_unstable = function addEventListener_unstable(eventType, listener, options) { + if (typeof eventType !== "string") { + throw new Error("addEventListener_unstable eventType must be a string"); + } + if (typeof listener !== "function") { + throw new Error("addEventListener_unstable listener must be a function"); + } + + var optionsObj = typeof options === "object" && options !== null ? options : {}; + var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; + var once = optionsObj.once || false; + var passive = optionsObj.passive || false; + var signal = null; + + var eventListeners = this._eventListeners || {}; + if (this._eventListeners == null) { + this._eventListeners = eventListeners; + } + var namedEventListeners = eventListeners[eventType] || []; + if (eventListeners[eventType] == null) { + eventListeners[eventType] = namedEventListeners; + } + namedEventListeners.push({ + listener: listener, + invalidated: false, + options: { + capture: capture, + once: once, + passive: passive, + signal: signal + } + }); + }; + + _proto.removeEventListener_unstable = function removeEventListener_unstable(eventType, listener, options) { + var optionsObj = typeof options === "object" && options !== null ? options : {}; + var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; + + var eventListeners = this._eventListeners; + if (!eventListeners) { + return; + } + var namedEventListeners = eventListeners[eventType]; + if (!namedEventListeners) { + return; + } + + eventListeners[eventType] = namedEventListeners.filter(function (listenerObj) { + return !(listenerObj.listener === listener && listenerObj.options.capture === capture); + }); + }; + return ReactFabricHostComponent; + }(); + function appendInitialChild(parentInstance, child) { + appendChildNode(parentInstance.node, child.node); + } + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var tag = nextReactTag; + nextReactTag += 2; + var viewConfig = getViewConfigForType(type); + { + for (var key in viewConfig.validAttributes) { + if (props.hasOwnProperty(key)) { + ReactNativePrivateInterface.deepFreezeAndThrowOnMutationInDev(props[key]); + } + } + } + var updatePayload = create(props, viewConfig.validAttributes); + var node = createNode(tag, + viewConfig.uiViewClassName, + rootContainerInstance, + updatePayload, + internalInstanceHandle); + + var component = new ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle); + return { + node: node, + canonical: component + }; + } + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + { + if (!hostContext.isInAParentText) { + error("Text strings must be rendered within a component."); + } + } + var tag = nextReactTag; + nextReactTag += 2; + var node = createNode(tag, + "RCTRawText", + rootContainerInstance, + { + text: text + }, + internalInstanceHandle); + + return { + node: node + }; + } + function getRootHostContext(rootContainerInstance) { + return { + isInAParentText: false + }; + } + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + var prevIsInAParentText = parentHostContext.isInAParentText; + var isInAParentText = type === "AndroidTextInput" || + type === "RCTMultilineTextInputView" || + type === "RCTSinglelineTextInputView" || + type === "RCTText" || type === "RCTVirtualText"; + + if (prevIsInAParentText !== isInAParentText) { + return { + isInAParentText: isInAParentText + }; + } else { + return parentHostContext; + } + } + function getPublicInstance(instance) { + return instance.canonical; + } + function prepareForCommit(containerInfo) { + return null; + } + function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { + var viewConfig = instance.canonical.viewConfig; + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); + + instance.canonical.currentProps = newProps; + return updatePayload; + } + function resetAfterCommit(containerInfo) { + } + function shouldSetTextContent(type, props) { + return false; + } + function getCurrentEventPriority() { + var currentEventPriority = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; + if (currentEventPriority != null) { + switch (currentEventPriority) { + case FabricDiscretePriority: + return DiscreteEventPriority; + case FabricDefaultPriority: + default: + return DefaultEventPriority; + } + } + return DefaultEventPriority; + } + + var warnsIfNotActing = false; + var scheduleTimeout = setTimeout; + var cancelTimeout = clearTimeout; + var noTimeout = -1; + function cloneInstance(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle, keepChildren, recyclableInstance) { + var node = instance.node; + var clone; + if (keepChildren) { + if (updatePayload !== null) { + clone = cloneNodeWithNewProps(node, updatePayload); + } else { + clone = cloneNode(node); + } + } else { + if (updatePayload !== null) { + clone = cloneNodeWithNewChildrenAndProps(node, updatePayload); + } else { + clone = cloneNodeWithNewChildren(node); + } + } + return { + node: clone, + canonical: instance.canonical + }; + } + function cloneHiddenInstance(instance, type, props, internalInstanceHandle) { + var viewConfig = instance.canonical.viewConfig; + var node = instance.node; + var updatePayload = create({ + style: { + display: "none" + } + }, viewConfig.validAttributes); + return { + node: cloneNodeWithNewProps(node, updatePayload), + canonical: instance.canonical + }; + } + function cloneHiddenTextInstance(instance, text, internalInstanceHandle) { + throw new Error("Not yet implemented."); + } + function createContainerChildSet(container) { + return createChildNodeSet(container); + } + function appendChildToContainerChildSet(childSet, child) { + appendChildNodeToSet(childSet, child.node); + } + function finalizeContainerChildren(container, newChildren) { + completeRoot(container, newChildren); + } + function replaceContainerChildren(container, newChildren) {} + function preparePortalMount(portalInstance) { + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); + } + } + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + function describeComponentFrame(name, source, ownerName) { + var sourceInfo = ""; + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ""); + + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ""); + fileName = folderName + "/" + fileName; + } + } + } + sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")"; + } else if (ownerName) { + sourceInfo = " (created by " + ownerName + ")"; + } + return "\n in " + (name || "Unknown") + sourceInfo; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeFunctionComponentFrame(ctor, source, ownerFn); + } + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + if (!fn) { + return ""; + } + var name = fn.displayName || fn.name || null; + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); + } + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeFunctionComponentFrame(type, source, ownerFn); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type, source, ownerFn); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense", source, ownerFn); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList", source, ownerFn); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render, source, ownerFn); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) {} + } + } + } + return ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + var valueStack = []; + var fiberStack; + { + fiberStack = []; + } + var index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor, fiber) { + if (index < 0) { + { + error("Unexpected pop."); + } + return; + } + { + if (fiber !== fiberStack[index]) { + error("Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; + } + index--; + } + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; + } + var warnedAboutMissingGetChildContext; + { + warnedAboutMissingGetChildContext = {}; + } + var emptyContextObject = {}; + { + Object.freeze(emptyContextObject); + } + + var contextStackCursor = createCursor(emptyContextObject); + + var didPerformWorkStackCursor = createCursor(false); + + var previousContext = emptyContextObject; + function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { + { + if (didPushOwnContextIfProvider && isContextProvider(Component)) { + return previousContext; + } + return contextStackCursor.current; + } + } + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + } + function getMaskedContext(workInProgress, unmaskedContext) { + { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + if (!contextTypes) { + return emptyContextObject; + } + + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + var context = {}; + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + { + var name = getComponentNameFromFiber(workInProgress) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name); + } + + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + return context; + } + } + function hasContextChanged() { + { + return didPerformWorkStackCursor.current; + } + } + function isContextProvider(type) { + { + var childContextTypes = type.childContextTypes; + return childContextTypes !== null && childContextTypes !== undefined; + } + } + function popContext(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function popTopLevelContextObject(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function pushTopLevelContextObject(fiber, context, didChange) { + { + if (contextStackCursor.current !== emptyContextObject) { + throw new Error("Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); + } + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + } + function processChildContext(fiber, type, parentContext) { + { + var instance = fiber.stateNode; + var childContextTypes = type.childContextTypes; + + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentNameFromFiber(fiber) || "Unknown"; + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + error("%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + var childContext = instance.getChildContext(); + for (var contextKey in childContext) { + if (!(contextKey in childContextTypes)) { + throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + } + { + var name = getComponentNameFromFiber(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name); + } + return assign({}, parentContext, childContext); + } + } + function pushContextProvider(workInProgress) { + { + var instance = workInProgress.stateNode; + + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; + + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } + } + function invalidateContextProvider(workInProgress, type, didChange) { + { + var instance = workInProgress.stateNode; + if (!instance) { + throw new Error("Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); + } + if (didChange) { + var mergedContext = processChildContext(workInProgress, type, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } + } + function findCurrentUnmaskedContext(fiber) { + { + if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { + throw new Error("Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var node = fiber; + do { + switch (node.tag) { + case HostRoot: + return node.stateNode.context; + case ClassComponent: + { + var Component = node.type; + if (isContextProvider(Component)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + break; + } + } + node = node.return; + } while (node !== null); + throw new Error("Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + var LegacyRoot = 0; + var ConcurrentRoot = 1; + + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + } + + var objectIs = typeof Object.is === "function" ? Object.is : is; + var syncQueue = null; + var includesLegacySyncCallbacks = false; + var isFlushingSyncQueue = false; + function scheduleSyncCallback(callback) { + if (syncQueue === null) { + syncQueue = [callback]; + } else { + syncQueue.push(callback); + } + } + function scheduleLegacySyncCallback(callback) { + includesLegacySyncCallbacks = true; + scheduleSyncCallback(callback); + } + function flushSyncCallbacksOnlyInLegacyMode() { + if (includesLegacySyncCallbacks) { + flushSyncCallbacks(); + } + } + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && syncQueue !== null) { + isFlushingSyncQueue = true; + var i = 0; + var previousUpdatePriority = getCurrentUpdatePriority(); + try { + var isSync = true; + var queue = syncQueue; + + setCurrentUpdatePriority(DiscreteEventPriority); + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(isSync); + } while (callback !== null); + } + syncQueue = null; + includesLegacySyncCallbacks = false; + } catch (error) { + if (syncQueue !== null) { + syncQueue = syncQueue.slice(i + 1); + } + + scheduleCallback(ImmediatePriority, flushSyncCallbacks); + throw error; + } finally { + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; + } + } + return null; + } + + function isRootDehydrated(root) { + var currentState = root.current.memoizedState; + return currentState.isDehydrated; + } + + var forkStack = []; + var forkStackIndex = 0; + var treeForkProvider = null; + var treeForkCount = 0; + var idStack = []; + var idStackIndex = 0; + var treeContextProvider = null; + var treeContextId = 1; + var treeContextOverflow = ""; + function popTreeContext(workInProgress) { + while (workInProgress === treeForkProvider) { + treeForkProvider = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + treeForkCount = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + } + while (workInProgress === treeContextProvider) { + treeContextProvider = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextOverflow = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextId = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + } + } + var isHydrating = false; + + var didSuspendOrErrorDEV = false; + + var hydrationErrors = null; + function didSuspendOrErrorWhileHydratingDEV() { + { + return didSuspendOrErrorDEV; + } + } + function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) { + { + return false; + } + } + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + { + throw new Error("Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function prepareToHydrateHostTextInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var shouldUpdate = hydrateTextInstance(); + } + function prepareToHydrateHostSuspenseInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function popHydrationState(fiber) { + { + return false; + } + } + function upgradeHydrationErrorsToRecoverable() { + if (hydrationErrors !== null) { + queueRecoverableErrors(hydrationErrors); + hydrationErrors = null; + } + } + function getIsHydrating() { + return isHydrating; + } + function queueHydrationError(error) { + if (hydrationErrors === null) { + hydrationErrors = [error]; + } else { + hydrationErrors.push(error); + } + } + var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + var NoTransition = null; + function requestCurrentTransition() { + return ReactCurrentBatchConfig.transition; + } + + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) { + return true; + } + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + if (keysA.length !== keysB.length) { + return false; + } + + for (var i = 0; i < keysA.length; i++) { + var currentKey = keysA[i]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) { + return false; + } + } + return true; + } + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type, source, owner); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy", source, owner); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense", source, owner); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList", source, owner); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type, source, owner); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render, source, owner); + case ClassComponent: + return describeClassComponentFrame(fiber.type, source, owner); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + var node = workInProgress; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } + } + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } + + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame$1.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function getCurrentFiber() { + { + return current; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + var ReactStrictModeWarnings = { + recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, + flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, + recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, + flushLegacyContextWarning: function flushLegacyContextWarning() {}, + discardPendingWarnings: function discardPendingWarnings() {} + }; + { + var findStrictRoot = function findStrictRoot(fiber) { + var maybeStrictRoot = null; + var node = fiber; + while (node !== null) { + if (node.mode & StrictLegacyMode) { + maybeStrictRoot = node; + } + node = node.return; + } + return maybeStrictRoot; + }; + var setToSortedString = function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + }; + var pendingComponentWillMountWarnings = []; + var pendingUNSAFE_ComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; + + var didWarnAboutUnsafeLifecycles = new Set(); + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + if (typeof instance.componentWillMount === "function" && + instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === "function") { + pendingUNSAFE_ComponentWillMountWarnings.push(fiber); + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === "function") { + pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === "function") { + pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); + } + }; + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + var componentWillMountUniqueNames = new Set(); + if (pendingComponentWillMountWarnings.length > 0) { + pendingComponentWillMountWarnings.forEach(function (fiber) { + componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillMountWarnings = []; + } + var UNSAFE_componentWillMountUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { + pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) { + UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillMountWarnings = []; + } + var componentWillReceivePropsUniqueNames = new Set(); + if (pendingComponentWillReceivePropsWarnings.length > 0) { + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillReceivePropsWarnings = []; + } + var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { + pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) { + UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + } + var componentWillUpdateUniqueNames = new Set(); + if (pendingComponentWillUpdateWarnings.length > 0) { + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillUpdateWarnings = []; + } + var UNSAFE_componentWillUpdateUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { + pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) { + UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillUpdateWarnings = []; + } + + if (UNSAFE_componentWillMountUniqueNames.size > 0) { + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames); + } + if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames); + } + if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + error("Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2); + } + if (componentWillMountUniqueNames.size > 0) { + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + warn("componentWillMount has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames3); + } + if (componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + warn("componentWillReceiveProps has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames4); + } + if (componentWillUpdateUniqueNames.size > 0) { + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + warn("componentWillUpdate has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames5); + } + }; + var pendingLegacyContextWarning = new Map(); + + var didWarnAboutLegacyContext = new Set(); + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + if (strictRoot === null) { + error("Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + warningsForRoot.push(fiber); + } + }; + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + if (fiberArray.length === 0) { + return; + } + var firstFiber = fiberArray[0]; + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + try { + setCurrentFiber(firstFiber); + error("Legacy context API has been detected within a strict-mode tree." + "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames); + } finally { + resetCurrentFiber(); + } + }); + }; + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingUNSAFE_ComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUNSAFE_ComponentWillUpdateWarnings = []; + pendingLegacyContextWarning = new Map(); + }; + } + + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s." + " This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + var props = assign({}, baseProps); + var defaultProps = Component.defaultProps; + for (var propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + return props; + } + return baseProps; + } + var valueCursor = createCursor(null); + var rendererSigil; + { + rendererSigil = {}; + } + var currentlyRenderingFiber = null; + var lastContextDependency = null; + var lastFullyObservedContext = null; + var isDisallowedContextReadInDEV = false; + function resetContextDependencies() { + currentlyRenderingFiber = null; + lastContextDependency = null; + lastFullyObservedContext = null; + { + isDisallowedContextReadInDEV = false; + } + } + function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; + } + } + function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } + } + function pushProvider(providerFiber, context, nextValue) { + { + push(valueCursor, context._currentValue2, providerFiber); + context._currentValue2 = nextValue; + { + if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) { + error("Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported."); + } + context._currentRenderer2 = rendererSigil; + } + } + } + function popProvider(context, providerFiber) { + var currentValue = valueCursor.current; + pop(valueCursor, providerFiber); + { + { + context._currentValue2 = currentValue; + } + } + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + var node = parent; + while (node !== null) { + var alternate = node.alternate; + if (!isSubsetOfLanes(node.childLanes, renderLanes)) { + node.childLanes = mergeLanes(node.childLanes, renderLanes); + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + if (node === propagationRoot) { + break; + } + node = node.return; + } + { + if (node !== propagationRoot) { + error("Expected to find the propagation root when scheduling context work. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + } + function propagateContextChange(workInProgress, context, renderLanes) { + { + propagateContextChange_eager(workInProgress, context, renderLanes); + } + } + function propagateContextChange_eager(workInProgress, context, renderLanes) { + var fiber = workInProgress.child; + if (fiber !== null) { + fiber.return = workInProgress; + } + while (fiber !== null) { + var nextFiber = void 0; + + var list = fiber.dependencies; + if (list !== null) { + nextFiber = fiber.child; + var dependency = list.firstContext; + while (dependency !== null) { + if (dependency.context === context) { + if (fiber.tag === ClassComponent) { + var lane = pickArbitraryLane(renderLanes); + var update = createUpdate(NoTimestamp, lane); + update.tag = ForceUpdate; + + var updateQueue = fiber.updateQueue; + if (updateQueue === null) ;else { + var sharedQueue = updateQueue.shared; + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + } + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); + + list.lanes = mergeLanes(list.lanes, renderLanes); + + break; + } + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + } else if (fiber.tag === DehydratedFragment) { + var parentSuspense = fiber.return; + if (parentSuspense === null) { + throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); + } + parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes); + var _alternate = parentSuspense.alternate; + if (_alternate !== null) { + _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes); + } + + scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress); + nextFiber = fiber.sibling; + } else { + nextFiber = fiber.child; + } + if (nextFiber !== null) { + nextFiber.return = fiber; + } else { + nextFiber = fiber; + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + var sibling = nextFiber.sibling; + if (sibling !== null) { + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + + nextFiber = nextFiber.return; + } + } + fiber = nextFiber; + } + } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastContextDependency = null; + lastFullyObservedContext = null; + var dependencies = workInProgress.dependencies; + if (dependencies !== null) { + { + var firstContext = dependencies.firstContext; + if (firstContext !== null) { + if (includesSomeLane(dependencies.lanes, renderLanes)) { + markWorkInProgressReceivedUpdate(); + } + + dependencies.firstContext = null; + } + } + } + } + function _readContext(context) { + { + if (isDisallowedContextReadInDEV) { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } + } + var value = context._currentValue2; + if (lastFullyObservedContext === context) ;else { + var contextItem = { + context: context, + memoizedValue: value, + next: null + }; + if (lastContextDependency === null) { + if (currentlyRenderingFiber === null) { + throw new Error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } + + lastContextDependency = contextItem; + currentlyRenderingFiber.dependencies = { + lanes: NoLanes, + firstContext: contextItem + }; + } else { + lastContextDependency = lastContextDependency.next = contextItem; + } + } + return value; + } + + var interleavedQueues = null; + function pushInterleavedQueue(queue) { + if (interleavedQueues === null) { + interleavedQueues = [queue]; + } else { + interleavedQueues.push(queue); + } + } + function hasInterleavedUpdates() { + return interleavedQueues !== null; + } + function enqueueInterleavedUpdates() { + if (interleavedQueues !== null) { + for (var i = 0; i < interleavedQueues.length; i++) { + var queue = interleavedQueues[i]; + var lastInterleavedUpdate = queue.interleaved; + if (lastInterleavedUpdate !== null) { + queue.interleaved = null; + var firstInterleavedUpdate = lastInterleavedUpdate.next; + var lastPendingUpdate = queue.pending; + if (lastPendingUpdate !== null) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + lastInterleavedUpdate.next = firstPendingUpdate; + } + queue.pending = lastInterleavedUpdate; + } + } + interleavedQueues = null; + } + } + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; + + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate; + var currentlyProcessingQueue; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + } + function initializeUpdateQueue(fiber) { + var queue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: NoLanes + }, + effects: null + }; + fiber.updateQueue = queue; + } + function cloneUpdateQueue(current, workInProgress) { + var queue = workInProgress.updateQueue; + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + var clone = { + baseState: currentQueue.baseState, + firstBaseUpdate: currentQueue.firstBaseUpdate, + lastBaseUpdate: currentQueue.lastBaseUpdate, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = clone; + } + } + function createUpdate(eventTime, lane) { + var update = { + eventTime: eventTime, + lane: lane, + tag: UpdateState, + payload: null, + callback: null, + next: null + }; + return update; + } + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return; + } + var sharedQueue = updateQueue.shared; + if (isInterleavedUpdate(fiber)) { + var interleaved = sharedQueue.interleaved; + if (interleaved === null) { + update.next = update; + + pushInterleavedQueue(sharedQueue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + sharedQueue.interleaved = update; + } else { + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; + } + } + } + function entangleTransitions(root, fiber, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return; + } + var sharedQueue = updateQueue.shared; + if (isTransitionLane(lane)) { + var queueLanes = sharedQueue.lanes; + + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + + var newQueueLanes = mergeLanes(queueLanes, lane); + sharedQueue.lanes = newQueueLanes; + + markRootEntangled(root, newQueueLanes); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue; + + var current = workInProgress.alternate; + if (current !== null) { + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + var newFirst = null; + var newLast = null; + var firstBaseUpdate = queue.firstBaseUpdate; + if (firstBaseUpdate !== null) { + var update = firstBaseUpdate; + do { + var clone = { + eventTime: update.eventTime, + lane: update.lane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLast === null) { + newFirst = newLast = clone; + } else { + newLast.next = clone; + newLast = clone; + } + update = update.next; + } while (update !== null); + + if (newLast === null) { + newFirst = newLast = capturedUpdate; + } else { + newLast.next = capturedUpdate; + newLast = capturedUpdate; + } + } else { + newFirst = newLast = capturedUpdate; + } + queue = { + baseState: currentQueue.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = queue; + return; + } + } + + var lastBaseUpdate = queue.lastBaseUpdate; + if (lastBaseUpdate === null) { + queue.firstBaseUpdate = capturedUpdate; + } else { + lastBaseUpdate.next = capturedUpdate; + } + queue.lastBaseUpdate = capturedUpdate; + } + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var payload = update.payload; + if (typeof payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + var nextState = payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + return nextState; + } + + return payload; + } + case CaptureUpdate: + { + workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture; + } + + case UpdateState: + { + var _payload = update.payload; + var partialState; + if (typeof _payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + partialState = _payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + } else { + partialState = _payload; + } + if (partialState === null || partialState === undefined) { + return prevState; + } + + return assign({}, prevState, partialState); + } + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + return prevState; + } + function processUpdateQueue(workInProgress, props, instance, renderLanes) { + var queue = workInProgress.updateQueue; + hasForceUpdate = false; + { + currentlyProcessingQueue = queue.shared; + } + var firstBaseUpdate = queue.firstBaseUpdate; + var lastBaseUpdate = queue.lastBaseUpdate; + + var pendingQueue = queue.shared.pending; + if (pendingQueue !== null) { + queue.shared.pending = null; + + var lastPendingUpdate = pendingQueue; + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + + if (lastBaseUpdate === null) { + firstBaseUpdate = firstPendingUpdate; + } else { + lastBaseUpdate.next = firstPendingUpdate; + } + lastBaseUpdate = lastPendingUpdate; + + var current = workInProgress.alternate; + if (current !== null) { + var currentQueue = current.updateQueue; + var currentLastBaseUpdate = currentQueue.lastBaseUpdate; + if (currentLastBaseUpdate !== lastBaseUpdate) { + if (currentLastBaseUpdate === null) { + currentQueue.firstBaseUpdate = firstPendingUpdate; + } else { + currentLastBaseUpdate.next = firstPendingUpdate; + } + currentQueue.lastBaseUpdate = lastPendingUpdate; + } + } + } + + if (firstBaseUpdate !== null) { + var newState = queue.baseState; + + var newLanes = NoLanes; + var newBaseState = null; + var newFirstBaseUpdate = null; + var newLastBaseUpdate = null; + var update = firstBaseUpdate; + do { + var updateLane = update.lane; + var updateEventTime = update.eventTime; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + var clone = { + eventTime: updateEventTime, + lane: updateLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLastBaseUpdate === null) { + newFirstBaseUpdate = newLastBaseUpdate = clone; + newBaseState = newState; + } else { + newLastBaseUpdate = newLastBaseUpdate.next = clone; + } + + newLanes = mergeLanes(newLanes, updateLane); + } else { + if (newLastBaseUpdate !== null) { + var _clone = { + eventTime: updateEventTime, + lane: NoLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + newLastBaseUpdate = newLastBaseUpdate.next = _clone; + } + + newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); + var callback = update.callback; + if (callback !== null && + update.lane !== NoLane) { + workInProgress.flags |= Callback; + var effects = queue.effects; + if (effects === null) { + queue.effects = [update]; + } else { + effects.push(update); + } + } + } + update = update.next; + if (update === null) { + pendingQueue = queue.shared.pending; + if (pendingQueue === null) { + break; + } else { + var _lastPendingUpdate = pendingQueue; + + var _firstPendingUpdate = _lastPendingUpdate.next; + _lastPendingUpdate.next = null; + update = _firstPendingUpdate; + queue.lastBaseUpdate = _lastPendingUpdate; + queue.shared.pending = null; + } + } + } while (true); + if (newLastBaseUpdate === null) { + newBaseState = newState; + } + queue.baseState = newBaseState; + queue.firstBaseUpdate = newFirstBaseUpdate; + queue.lastBaseUpdate = newLastBaseUpdate; + + var lastInterleaved = queue.shared.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + newLanes = mergeLanes(newLanes, interleaved.lane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (firstBaseUpdate === null) { + queue.shared.lanes = NoLanes; + } + + markSkippedUpdateLanes(newLanes); + workInProgress.lanes = newLanes; + workInProgress.memoizedState = newState; + } + { + currentlyProcessingQueue = null; + } + } + function callCallback(callback, context) { + if (typeof callback !== "function") { + throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + callback)); + } + callback.call(context); + } + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + var effects = finishedQueue.effects; + finishedQueue.effects = null; + if (effects !== null) { + for (var i = 0; i < effects.length; i++) { + var effect = effects[i]; + var callback = effect.callback; + if (callback !== null) { + effect.callback = null; + callCallback(callback, instance); + } + } + } + } + var fakeInternalInstance = {}; + + var emptyRefsObject = new React.Component().refs; + var didWarnAboutStateAssignmentForComponent; + var didWarnAboutUninitializedState; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; + var didWarnAboutLegacyLifecyclesAndDerivedState; + var didWarnAboutUndefinedDerivedState; + var warnOnUndefinedDerivedState; + var warnOnInvalidCallback; + var didWarnAboutDirectlyAssigningPropsToState; + var didWarnAboutContextTypeAndContextTypes; + var didWarnAboutInvalidateContextType; + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutDirectlyAssigningPropsToState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + didWarnAboutContextTypeAndContextTypes = new Set(); + didWarnAboutInvalidateContextType = new Set(); + var didWarnOnInvalidCallback = new Set(); + warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + var key = callerName + "_" + callback; + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + error("%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); + } + }; + warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(type, partialState) { + if (partialState === undefined) { + var componentName = getComponentNameFromType(type) || "Component"; + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); + } + } + }; + + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function value() { + throw new Error("_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(ctor, partialState); + } + + var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; + + if (workInProgress.lanes === NoLanes) { + var updateQueue = workInProgress.updateQueue; + updateQueue.baseState = memoizedState; + } + } + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ReplaceState; + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ForceUpdate; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); + } + update.callback = callback; + } + enqueueUpdate(fiber, update); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitions(root, fiber, lane); + } + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + var instance = workInProgress.stateNode; + if (typeof instance.shouldComponentUpdate === "function") { + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); + { + if (shouldUpdate === undefined) { + error("%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); + } + } + return shouldUpdate; + } + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + return true; + } + function checkClassInstance(workInProgress, ctor, newProps) { + var instance = workInProgress.stateNode; + { + var name = getComponentNameFromType(ctor) || "Component"; + var renderPresent = instance.render; + if (!renderPresent) { + if (ctor.prototype && typeof ctor.prototype.render === "function") { + error("%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); + } else { + error("%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); + } + } + if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { + error("getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name); + } + if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { + error("getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name); + } + if (instance.propTypes) { + error("propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name); + } + if (instance.contextType) { + error("contextType was defined as an instance property on %s. Use a static " + "property to define contextType instead.", name); + } + { + if (instance.contextTypes) { + error("contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name); + } + if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { + didWarnAboutContextTypeAndContextTypes.add(ctor); + error("%s declares both contextTypes and contextType static properties. " + "The legacy contextTypes property will be ignored.", name); + } + } + if (typeof instance.componentShouldUpdate === "function") { + error("%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name); + } + if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + error("%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"); + } + if (typeof instance.componentDidUnmount === "function") { + error("%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name); + } + if (typeof instance.componentDidReceiveProps === "function") { + error("%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name); + } + if (typeof instance.componentWillRecieveProps === "function") { + error("%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name); + } + if (typeof instance.UNSAFE_componentWillRecieveProps === "function") { + error("%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); + } + var hasMutatedProps = instance.props !== newProps; + if (instance.props !== undefined && hasMutatedProps) { + error("%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name); + } + if (instance.defaultProps) { + error("Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name); + } + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); + error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor)); + } + if (typeof instance.getDerivedStateFromProps === "function") { + error("%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof instance.getDerivedStateFromError === "function") { + error("%s: getDerivedStateFromError() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof ctor.getSnapshotBeforeUpdate === "function") { + error("%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name); + } + var _state = instance.state; + if (_state && (typeof _state !== "object" || isArray(_state))) { + error("%s.state: must be set to an object or null", name); + } + if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") { + error("%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name); + } + } + } + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; + + set(instance, workInProgress); + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = false; + var unmaskedContext = emptyContextObject; + var context = emptyContextObject; + var contextType = ctor.contextType; + { + if ("contextType" in ctor) { + var isValid = + contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; + + if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { + didWarnAboutInvalidateContextType.add(ctor); + var addendum = ""; + if (contextType === undefined) { + addendum = " However, it is set to undefined. " + "This can be caused by a typo or by mixing up named and default imports. " + "This can also happen due to a circular dependency, so " + "try moving the createContext() call to a separate file."; + } else if (typeof contextType !== "object") { + addendum = " However, it is set to a " + typeof contextType + "."; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = " Did you accidentally pass the Context.Provider instead?"; + } else if (contextType._context !== undefined) { + addendum = " Did you accidentally pass the Context.Consumer instead?"; + } else { + addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; + } + error("%s defines an invalid contextType. " + "contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(ctor) || "Component", addendum); + } + } + } + if (typeof contextType === "object" && contextType !== null) { + context = _readContext(contextType); + } else { + unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + var contextTypes = ctor.contextTypes; + isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; + context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; + } + var instance = new ctor(props, context); + + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + error("`%s` uses `getDerivedStateFromProps` but its initial state is " + "%s. This is not recommended. Instead, define the initial state by " + "assigning an object to `this.state` in the constructor of `%s`. " + "This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); + } + } + + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentNameFromType(ctor) || "Component"; + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } + } + } + + if (isLegacyContextConsumer) { + cacheContext(workInProgress, unmaskedContext, context); + } + return instance; + } + function callComponentWillMount(workInProgress, instance) { + var oldState = instance.state; + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + if (oldState !== instance.state) { + { + error("%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + var oldState = instance.state; + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, nextContext); + } + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + } + if (instance.state !== oldState) { + { + var componentName = getComponentNameFromFiber(workInProgress) || "Component"; + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + error("%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); + } + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + { + checkClassInstance(workInProgress, ctor, newProps); + } + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + if (typeof contextType === "object" && contextType !== null) { + instance.context = _readContext(contextType); + } else { + var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + instance.context = getMaskedContext(workInProgress, unmaskedContext); + } + { + if (instance.state === newProps) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { + didWarnAboutDirectlyAssigningPropsToState.add(componentName); + error("%s: It is not recommended to assign props directly to state " + "because updates to props won't be reflected in state. " + "In most cases, it is better to use props directly.", componentName); + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); + } + } + instance.state = workInProgress.memoizedState; + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + instance.state = workInProgress.memoizedState; + } + + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress, instance); + + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + instance.state = workInProgress.memoizedState; + } + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } + } + function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + } + if (typeof instance.componentDidMount === "function") { + var _fiberFlags = Update; + workInProgress.flags |= _fiberFlags; + } + } else { + if (typeof instance.componentDidMount === "function") { + var _fiberFlags2 = Update; + workInProgress.flags |= _fiberFlags2; + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + + function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + var unresolvedOldProps = workInProgress.memoizedProps; + var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps); + instance.props = oldProps; + var unresolvedNewProps = workInProgress.pendingProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || + enableLazyContextPropagation; + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, nextContext); + } + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); + } + } + if (typeof instance.componentDidUpdate === "function") { + workInProgress.flags |= Update; + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress.flags |= Snapshot; + } + } else { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + var didWarnAboutMaps; + var didWarnAboutGenerators; + var didWarnAboutStringRefs; + var ownerHasKeyUseWarning; + var ownerHasFunctionTypeWarning; + var warnForMissingKey = function warnForMissingKey(child, returnFiber) {}; + { + didWarnAboutMaps = false; + didWarnAboutGenerators = false; + didWarnAboutStringRefs = {}; + + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + warnForMissingKey = function warnForMissingKey(child, returnFiber) { + if (child === null || typeof child !== "object") { + return; + } + if (!child._store || child._store.validated || child.key != null) { + return; + } + if (typeof child._store !== "object") { + throw new Error("React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); + } + child._store.validated = true; + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasKeyUseWarning[componentName]) { + return; + } + ownerHasKeyUseWarning[componentName] = true; + error("Each child in a list should have a unique " + '"key" prop. See https://reactjs.org/link/warning-keys for ' + "more information."); + }; + } + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && + !(element._owner && element._self && element._owner.stateNode !== element._self)) { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (!didWarnAboutStringRefs[componentName]) { + { + error('A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", mixedRef); + } + didWarnAboutStringRefs[componentName] = true; + } + } + } + if (element._owner) { + var owner = element._owner; + var inst; + if (owner) { + var ownerFiber = owner; + if (ownerFiber.tag !== ClassComponent) { + throw new Error("Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref"); + } + inst = ownerFiber.stateNode; + } + if (!inst) { + throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + "bug in React. Please file an issue."); + } + + var resolvedInst = inst; + { + checkPropStringCoercion(mixedRef, "ref"); + } + var stringRef = "" + mixedRef; + + if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { + return current.ref; + } + var ref = function ref(value) { + var refs = resolvedInst.refs; + if (refs === emptyRefsObject) { + refs = resolvedInst.refs = {}; + } + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + ref._stringRef = stringRef; + return ref; + } else { + if (typeof mixedRef !== "string") { + throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + } + if (!element._owner) { + throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://reactjs.org/link/refs-must-have-owner for more information."); + } + } + } + return mixedRef; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + var childString = Object.prototype.toString.call(newChild); + throw new Error("Objects are not valid as a React child (found: " + (childString === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : childString) + "). " + "If you meant to render a collection of children, use an array " + "instead."); + } + function warnOnFunctionType(returnFiber) { + { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasFunctionTypeWarning[componentName]) { + return; + } + ownerHasFunctionTypeWarning[componentName] = true; + error("Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it."); + } + } + function resolveLazy(lazyType) { + var payload = lazyType._payload; + var init = lazyType._init; + return init(payload); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + return; + } + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [childToDelete]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + return null; + } + + var childToDelete = currentFirstChild; + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + var existingChildren = new Map(); + var existingChild = currentFirstChild; + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + existingChild = existingChild.sibling; + } + return existingChildren; + } + function useFiber(fiber, pendingProps) { + var clone = createWorkInProgress(fiber, pendingProps); + clone.index = 0; + clone.sibling = null; + return clone; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) { + newFiber.flags |= Forked; + return lastPlacedIndex; + } + var current = newFiber.alternate; + if (current !== null) { + var oldIndex = current.index; + if (oldIndex < lastPlacedIndex) { + newFiber.flags |= Placement; + return lastPlacedIndex; + } else { + return oldIndex; + } + } else { + newFiber.flags |= Placement; + return lastPlacedIndex; + } + } + function placeSingleChild(newFiber) { + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.flags |= Placement; + } + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (current === null || current.tag !== HostText) { + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, textContent); + existing.return = returnFiber; + return existing; + } + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + } + if (current !== null) { + if (current.elementType === elementType || + isCompatibleFamilyForHotReloading(current, element) || + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) { + var existing = useFiber(current, element.props); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } + + var created = createFiberFromElement(element, returnFiber.mode, lanes); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, portal.children || []); + existing.return = returnFiber; + return existing; + } + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (current === null || current.tag !== Fragment) { + var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, fragment); + existing.return = returnFiber; + return existing; + } + } + function createChild(returnFiber, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, lanes); + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes); + _created2.return = returnFiber; + return _created2; + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return createChild(returnFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null); + _created3.return = returnFiber; + return _created3; + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = oldFiber !== null ? oldFiber.key : null; + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + if (key !== null) { + return null; + } + return updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + return updateElement(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return updateSlot(returnFiber, oldFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + return updateFragment(returnFiber, oldFiber, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updateElement(returnFiber, _matchedFiber, newChild, lanes); + } + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updatePortal(returnFiber, _matchedFiber2, newChild, lanes); + } + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes); + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + + function warnOnInvalidKey(child, knownKeys, returnFiber) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child, returnFiber); + var key = child.key; + if (typeof key !== "string") { + break; + } + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + error("Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted โ€” the behavior is unsupported and " + "could change in a future version.", key); + break; + case REACT_LAZY_TYPE: + var payload = child._payload; + var init = child._init; + warnOnInvalidKey(init(payload), knownKeys, returnFiber); + break; + } + } + return knownKeys; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + { + var knownKeys = null; + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); + if (_newFiber === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + previousNewFiber = _newFiber; + } + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); + if (_newFiber2 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + previousNewFiber = _newFiber2; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if (typeof iteratorFn !== "function") { + throw new Error("An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); + } + { + if (typeof Symbol === "function" && + newChildrenIterable[Symbol.toStringTag] === "Generator") { + if (!didWarnAboutGenerators) { + error("Using Generators as children is unsupported and will likely yield " + "unexpected results because enumerating a generator mutates it. " + "You may convert it to an array with `Array.from()` or the " + "`[...spread]` operator before rendering. Keep in mind " + "you might need to polyfill these features for older browsers."); + } + didWarnAboutGenerators = true; + } + + if (newChildrenIterable.entries === iteratorFn) { + if (!didWarnAboutMaps) { + error("Using Maps as children is not supported. " + "Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + + var _newChildren = iteratorFn.call(newChildrenIterable); + if (_newChildren) { + var knownKeys = null; + var _step = _newChildren.next(); + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + if (newChildren == null) { + throw new Error("An iterable object provided no iterator."); + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, lanes); + if (_newFiber3 === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + previousNewFiber = _newFiber3; + } + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + previousNewFiber = _newFiber4; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent); + existing.return = returnFiber; + return existing; + } + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) { + var key = element.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + if (child.tag === Fragment) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.props.children); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } else { + if (child.elementType === elementType || + isCompatibleFamilyForHotReloading(child, element) || + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var _existing = useFiber(child, element.props); + _existing.ref = coerceRef(returnFiber, child, element); + _existing.return = returnFiber; + { + _existing._debugSource = element._source; + _existing._debugOwner = element._owner; + } + return _existing; + } + } + + deleteRemainingChildren(returnFiber, child); + break; + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, lanes); + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) { + var key = portal.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || []); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + + return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes); + } + if (isArray(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + } + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, lanes)); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + function cloneChildFibers(current, workInProgress) { + if (current !== null && workInProgress.child !== current.child) { + throw new Error("Resuming work not yet implemented."); + } + if (workInProgress.child === null) { + return; + } + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); + workInProgress.child = newChild; + newChild.return = workInProgress; + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); + newChild.return = workInProgress; + } + newChild.sibling = null; + } + + function resetChildFibers(workInProgress, lanes) { + var child = workInProgress.child; + while (child !== null) { + resetWorkInProgress(child, lanes); + child = child.sibling; + } + } + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) { + throw new Error("Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); + } + return c; + } + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + + push(contextFiberStackCursor, fiber, fiber); + + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(); + + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type); + + if (context === nextContext) { + return; + } + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + function popHostContext(fiber) { + if (contextFiberStackCursor.current !== fiber) { + return; + } + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + var DefaultSuspenseContext = 0; + + var SubtreeSuspenseContextMask = 1; + + var InvisibleParentSuspenseContext = 1; + + var ForceSuspenseFallback = 2; + var suspenseStackCursor = createCursor(DefaultSuspenseContext); + function hasSuspenseContext(parentContext, flag) { + return (parentContext & flag) !== 0; + } + function setDefaultShallowSuspenseContext(parentContext) { + return parentContext & SubtreeSuspenseContextMask; + } + function setShallowSuspenseContext(parentContext, shallowContext) { + return parentContext & SubtreeSuspenseContextMask | shallowContext; + } + function addSubtreeSuspenseContext(parentContext, subtreeContext) { + return parentContext | subtreeContext; + } + function pushSuspenseContext(fiber, newContext) { + push(suspenseStackCursor, newContext, fiber); + } + function popSuspenseContext(fiber) { + pop(suspenseStackCursor, fiber); + } + function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { + var nextState = workInProgress.memoizedState; + if (nextState !== null) { + if (nextState.dehydrated !== null) { + return true; + } + return false; + } + var props = workInProgress.memoizedProps; + + { + return true; + } + } + + function findFirstSuspended(row) { + var node = row; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + var dehydrated = state.dehydrated; + if (dehydrated === null || isSuspenseInstancePending() || isSuspenseInstanceFallback()) { + return node; + } + } + } else if (node.tag === SuspenseListComponent && + node.memoizedProps.revealOrder !== undefined) { + var didSuspend = (node.flags & DidCapture) !== NoFlags; + if (didSuspend) { + return node; + } + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) { + return null; + } + while (node.sibling === null) { + if (node.return === null || node.return === row) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var NoFlags$1 = + 0; + + var HasEffect = + 1; + + var Insertion = + 2; + var Layout = + 4; + var Passive$1 = + 8; + + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + var mutableSource = workInProgressSources[i]; + { + mutableSource._workInProgressVersionSecondary = null; + } + } + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + var didWarnAboutMismatchedHooksForComponent; + var didWarnUncachedGetSnapshot; + { + didWarnAboutMismatchedHooksForComponent = new Set(); + } + + var renderLanes = NoLanes; + + var currentlyRenderingFiber$1 = null; + + var currentHook = null; + var workInProgressHook = null; + + var didScheduleRenderPhaseUpdate = false; + + var didScheduleRenderPhaseUpdateDuringThisPass = false; + + var globalClientIdCounter = 0; + var RE_RENDER_LIMIT = 25; + + var currentHookNameInDev = null; + + var hookTypesDev = null; + var hookTypesUpdateIndexDev = -1; + + var ignorePreviousDependencies = false; + function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } + } + function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } + } + function checkDepsAreArrayDev(deps) { + { + if (deps !== undefined && deps !== null && !isArray(deps)) { + error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps); + } + } + } + function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + if (hookTypesDev !== null) { + var table = ""; + var secondColumnStart = 30; + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + var row = i + 1 + ". " + oldHookName; + + while (row.length < secondColumnStart) { + row += " "; + } + row += newHookName + "\n"; + table += row; + } + error("React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); + } + } + } + } + function throwInvalidHookError() { + throw new 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:\n" + "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + { + if (ignorePreviousDependencies) { + return false; + } + } + if (prevDeps === null) { + { + error("%s received a final argument during this render, but not during " + "the previous render. Even though the final argument is optional, " + "its type cannot change between renders.", currentHookNameInDev); + } + return false; + } + { + if (nextDeps.length !== prevDeps.length) { + error("The final argument passed to %s changed size between renders. The " + "order and size of this array must remain constant.\n\n" + "Previous: %s\n" + "Incoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); + } + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + { + hookTypesDev = current !== null ? current._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; + + ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; + } + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = NoLanes; + + { + if (current !== null && current.memoizedState !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; + } + } + var children = Component(props, secondArg); + + if (didScheduleRenderPhaseUpdateDuringThisPass) { + var numberOfReRenders = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = false; + if (numberOfReRenders >= RE_RENDER_LIMIT) { + throw new Error("Too many re-renders. React limits the number of renders to prevent " + "an infinite loop."); + } + numberOfReRenders += 1; + { + ignorePreviousDependencies = false; + } + + currentHook = null; + workInProgressHook = null; + workInProgress.updateQueue = null; + { + hookTypesUpdateIndexDev = -1; + } + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; + children = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + { + workInProgress._debugHookTypes = hookTypesDev; + } + + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + + if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && + (current.mode & ConcurrentMode) !== NoMode) { + error("Internal React error: Expected static flag was missing. Please " + "notify the React team."); + } + } + didScheduleRenderPhaseUpdate = false; + + if (didRenderTooFewHooks) { + throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental " + "early return statement."); + } + return children; + } + function bailoutHooks(current, workInProgress, lanes) { + workInProgress.updateQueue = current.updateQueue; + + { + workInProgress.flags &= ~(Passive | Update); + } + current.lanes = removeLanes(current.lanes, lanes); + } + function resetHooksAfterThrow() { + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + var hook = currentlyRenderingFiber$1.memoizedState; + while (hook !== null) { + var queue = hook.queue; + if (queue !== null) { + queue.pending = null; + } + hook = hook.next; + } + didScheduleRenderPhaseUpdate = false; + } + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + currentHookNameInDev = null; + isUpdatingOpaqueValueInRenderPhase = false; + } + didScheduleRenderPhaseUpdateDuringThisPass = false; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; + } else { + workInProgressHook = workInProgressHook.next = hook; + } + return workInProgressHook; + } + function updateWorkInProgressHook() { + var nextCurrentHook; + if (currentHook === null) { + var current = currentlyRenderingFiber$1.alternate; + if (current !== null) { + nextCurrentHook = current.memoizedState; + } else { + nextCurrentHook = null; + } + } else { + nextCurrentHook = currentHook.next; + } + var nextWorkInProgressHook; + if (workInProgressHook === null) { + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; + } else { + nextWorkInProgressHook = workInProgressHook.next; + } + if (nextWorkInProgressHook !== null) { + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + currentHook = nextCurrentHook; + } else { + if (nextCurrentHook === null) { + throw new Error("Rendered more hooks than during the previous render."); + } + currentHook = nextCurrentHook; + var newHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; + } else { + workInProgressHook = workInProgressHook.next = newHook; + } + } + return workInProgressHook; + } + function createFunctionComponentUpdateQueue() { + return { + lastEffect: null, + stores: null + }; + } + function basicStateReducer(state, action) { + return typeof action === "function" ? action(state) : action; + } + function mountReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + var initialState; + if (init !== undefined) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + var current = currentHook; + + var baseQueue = current.baseQueue; + + var pendingQueue = queue.pending; + if (pendingQueue !== null) { + if (baseQueue !== null) { + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + { + if (current.baseQueue !== baseQueue) { + error("Internal error: Expected work-in-progress queue to be a clone. " + "This is a bug in React."); + } + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (baseQueue !== null) { + var first = baseQueue.next; + var newState = current.baseState; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + var update = first; + do { + var updateLane = update.lane; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } + + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); + markSkippedUpdateLanes(updateLane); + } else { + if (newBaseQueueLast !== null) { + var _clone = { + lane: NoLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } + + if (update.hasEagerState) { + newState = update.eagerState; + } else { + var action = update.action; + newState = reducer(newState, action); + } + } + update = update.next; + } while (update !== null && update !== first); + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + hook.baseState = newBaseState; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = newState; + } + + var lastInterleaved = queue.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + var interleavedLane = interleaved.lane; + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane); + markSkippedUpdateLanes(interleavedLane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (baseQueue === null) { + queue.lanes = NoLanes; + } + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; + } + function rerenderReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + + var dispatch = queue.dispatch; + var lastRenderPhaseUpdate = queue.pending; + var newState = hook.memoizedState; + if (lastRenderPhaseUpdate !== null) { + queue.pending = null; + var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; + var update = firstRenderPhaseUpdate; + do { + var action = update.action; + newState = reducer(newState, action); + update = update.next; + } while (update !== firstRenderPhaseUpdate); + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + + if (hook.baseQueue === null) { + hook.baseState = newState; + } + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function mountMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function updateMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = mountWorkInProgressHook(); + var nextSnapshot; + { + nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + return nextSnapshot; + } + function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = updateWorkInProgressHook(); + + var nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + var prevSnapshot = hook.memoizedState; + var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot); + if (snapshotChanged) { + hook.memoizedState = nextSnapshot; + markWorkInProgressReceivedUpdate(); + } + var inst = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + + if (inst.getSnapshot !== getSnapshot || snapshotChanged || + workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= StoreConsistency; + var check = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.stores = [check]; + } else { + var stores = componentUpdateQueue.stores; + if (stores === null) { + componentUpdateQueue.stores = [check]; + } else { + stores.push(check); + } + } + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + } + function subscribeToStore(fiber, inst, subscribe) { + var handleStoreChange = function handleStoreChange() { + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + }; + + return subscribe(handleStoreChange); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + var prevValue = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(prevValue, nextValue); + } catch (error) { + return true; + } + } + function forceStoreRerender(fiber) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + if (typeof initialState === "function") { + initialState = initialState(); + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateState(initialState) { + return updateReducer(basicStateReducer); + } + function rerenderState(initialState) { + return rerenderReducer(basicStateReducer); + } + function pushEffect(tag, create, destroy, deps) { + var effect = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var lastEffect = componentUpdateQueue.lastEffect; + if (lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = lastEffect.next; + lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + return effect; + } + function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + { + var _ref2 = { + current: initialValue + }; + hook.memoizedState = _ref2; + return _ref2; + } + } + function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var destroy = undefined; + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + if (areHookInputsEqual(nextDeps, prevDeps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps); + return; + } + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps); + } + function mountEffect(create, deps) { + { + return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + } + } + function updateEffect(create, deps) { + return updateEffectImpl(Passive, Passive$1, create, deps); + } + function mountInsertionEffect(create, deps) { + return mountEffectImpl(Update, Insertion, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(Update, Insertion, create, deps); + } + function mountLayoutEffect(create, deps) { + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(Update, Layout, create, deps); + } + function imperativeHandleEffect(create, ref) { + if (typeof ref === "function") { + var refCallback = ref; + var _inst = create(); + refCallback(_inst); + return function () { + refCallback(null); + }; + } else if (ref !== null && ref !== undefined) { + var refObject = ref; + { + if (!refObject.hasOwnProperty("current")) { + error("Expected useImperativeHandle() first argument to either be a " + "ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}"); + } + } + var _inst2 = create(); + refObject.current = _inst2; + return function () { + refObject.current = null; + }; + } + } + function mountImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function updateImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function mountDebugValue(value, formatterFn) { + } + var updateDebugValue = mountDebugValue; + function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function mountDeferredValue(value) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = value; + return value; + } + function updateDeferredValue(value) { + var hook = updateWorkInProgressHook(); + var resolvedCurrentHook = currentHook; + var prevValue = resolvedCurrentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + function rerenderDeferredValue(value) { + var hook = updateWorkInProgressHook(); + if (currentHook === null) { + hook.memoizedState = value; + return value; + } else { + var prevValue = currentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + } + function updateDeferredValueImpl(hook, prevValue, value) { + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + if (shouldDeferValue) { + if (!objectIs(value, prevValue)) { + var deferredLane = claimNextTransitionLane(); + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); + markSkippedUpdateLanes(deferredLane); + + hook.baseState = true; + } + + return prevValue; + } else { + if (hook.baseState) { + hook.baseState = false; + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = value; + return value; + } + } + function startTransition(setPending, callback, options) { + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority)); + setPending(true); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + var currentTransition = ReactCurrentBatchConfig$1.transition; + { + ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); + } + try { + setPending(false); + callback(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$1.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. " + "If this is due to a subscription please re-write it to use React provided hooks. " + "Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + function mountTransition() { + var _mountState = mountState(false), + isPending = _mountState[0], + setPending = _mountState[1]; + + var start = startTransition.bind(null, setPending); + var hook = mountWorkInProgressHook(); + hook.memoizedState = start; + return [isPending, start]; + } + function updateTransition() { + var _updateState = updateState(), + isPending = _updateState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + function rerenderTransition() { + var _rerenderState = rerenderState(), + isPending = _rerenderState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + var isUpdatingOpaqueValueInRenderPhase = false; + function getIsUpdatingOpaqueValueInRenderPhaseInDEV() { + { + return isUpdatingOpaqueValueInRenderPhase; + } + } + function mountId() { + var hook = mountWorkInProgressHook(); + var root = getWorkInProgressRoot(); + + var identifierPrefix = root.identifierPrefix; + var id; + { + var globalClientId = globalClientIdCounter++; + id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + } + hook.memoizedState = id; + return id; + } + function updateId() { + var hook = updateWorkInProgressHook(); + var id = hook.memoizedState; + return id; + } + function dispatchReducerAction(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + enqueueUpdate$1(fiber, queue, update); + var eventTime = requestEventTime(); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitionUpdate(root, queue, lane); + } + } + } + function dispatchSetState(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + enqueueUpdate$1(fiber, queue, update); + var alternate = fiber.alternate; + if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { + var lastRenderedReducer = queue.lastRenderedReducer; + if (lastRenderedReducer !== null) { + var prevDispatcher; + { + prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + try { + var currentState = queue.lastRenderedState; + var eagerState = lastRenderedReducer(currentState, action); + + update.hasEagerState = true; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + return; + } + } catch (error) { + } finally { + { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + } + } + } + var eventTime = requestEventTime(); + var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + if (root !== null) { + entangleTransitionUpdate(root, queue, lane); + } + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; + var pending = queue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + queue.pending = update; + } + function enqueueUpdate$1(fiber, queue, update, lane) { + if (isInterleavedUpdate(fiber)) { + var interleaved = queue.interleaved; + if (interleaved === null) { + update.next = update; + + pushInterleavedQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + } else { + var pending = queue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + queue.pending = update; + } + } + function entangleTransitionUpdate(root, queue, lane) { + if (isTransitionLane(lane)) { + var queueLanes = queue.lanes; + + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + + var newQueueLanes = mergeLanes(queueLanes, lane); + queue.lanes = newQueueLanes; + + markRootEntangled(root, newQueueLanes); + } + } + var ContextOnlyDispatcher = { + readContext: _readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: enableNewReconciler + }; + var HooksDispatcherOnMountInDEV = null; + var HooksDispatcherOnMountWithHookTypesInDEV = null; + var HooksDispatcherOnUpdateInDEV = null; + var HooksDispatcherOnRerenderInDEV = null; + var InvalidNestedHooksDispatcherOnMountInDEV = null; + var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + var InvalidNestedHooksDispatcherOnRerenderInDEV = null; + { + var warnInvalidContextAccess = function warnInvalidContextAccess() { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + }; + var warnInvalidHookAccess = function warnInvalidHookAccess() { + error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + "https://reactjs.org/link/rules-of-hooks"); + }; + HooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + } + var now$1 = Scheduler.unstable_now; + var commitTime = 0; + var layoutEffectStartTime = -1; + var profilerStartTime = -1; + var passiveEffectStartTime = -1; + + var currentUpdateIsNested = false; + var nestedUpdateScheduled = false; + function isCurrentUpdateNested() { + return currentUpdateIsNested; + } + function markNestedUpdateScheduled() { + { + nestedUpdateScheduled = true; + } + } + function resetNestedUpdateFlag() { + { + currentUpdateIsNested = false; + nestedUpdateScheduled = false; + } + } + function syncNestedUpdateFlag() { + { + currentUpdateIsNested = nestedUpdateScheduled; + nestedUpdateScheduled = false; + } + } + function getCommitTime() { + return commitTime; + } + function recordCommitTime() { + commitTime = now$1(); + } + function startProfilerTimer(fiber) { + profilerStartTime = now$1(); + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = now$1(); + } + } + function stopProfilerTimerIfRunning(fiber) { + profilerStartTime = -1; + } + function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + if (profilerStartTime >= 0) { + var elapsedTime = now$1() - profilerStartTime; + fiber.actualDuration += elapsedTime; + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + profilerStartTime = -1; + } + } + function recordLayoutEffectDuration(fiber) { + if (layoutEffectStartTime >= 0) { + var elapsedTime = now$1() - layoutEffectStartTime; + layoutEffectStartTime = -1; + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += elapsedTime; + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += elapsedTime; + return; + } + parentFiber = parentFiber.return; + } + } + } + function recordPassiveEffectDuration(fiber) { + if (passiveEffectStartTime >= 0) { + var elapsedTime = now$1() - passiveEffectStartTime; + passiveEffectStartTime = -1; + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + if (root !== null) { + root.passiveEffectDuration += elapsedTime; + } + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + if (parentStateNode !== null) { + parentStateNode.passiveEffectDuration += elapsedTime; + } + return; + } + parentFiber = parentFiber.return; + } + } + } + function startLayoutEffectTimer() { + layoutEffectStartTime = now$1(); + } + function startPassiveEffectTimer() { + passiveEffectStartTime = now$1(); + } + function transferActualDuration(fiber) { + var child = fiber.child; + while (child) { + fiber.actualDuration += child.actualDuration; + child = child.sibling; + } + } + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source) + }; + } + if (typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog !== "function") { + throw new Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + } + function showErrorDialog(boundary, errorInfo) { + var capturedError = { + componentStack: errorInfo.stack !== null ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: boundary !== null && boundary.tag === ClassComponent ? boundary.stateNode : null + }; + return ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(capturedError); + } + function logCapturedError(boundary, errorInfo) { + try { + var logError = showErrorDialog(boundary, errorInfo); + + if (logError === false) { + return; + } + var error = errorInfo.value; + if (true) { + var source = errorInfo.source; + var stack = errorInfo.stack; + var componentStack = stack !== null ? stack : ""; + + if (error != null && error._suppressLogging) { + if (boundary.tag === ClassComponent) { + return; + } + + console["error"](error); + } + + var componentName = source ? getComponentNameFromFiber(source) : null; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage; + if (boundary.tag === HostRoot) { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + } else { + var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } + var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); + + console["error"](combinedMessage); + } else { + console["error"](error); + } + } catch (e) { + setTimeout(function () { + throw e; + }); + } + } + var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + + update.tag = CaptureUpdate; + + update.payload = { + element: null + }; + var error = errorInfo.value; + update.callback = function () { + onUncaughtError(error); + logCapturedError(fiber, errorInfo); + }; + return update; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + update.tag = CaptureUpdate; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if (typeof getDerivedStateFromError === "function") { + var error$1 = errorInfo.value; + update.payload = function () { + return getDerivedStateFromError(error$1); + }; + update.callback = function () { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + if (typeof getDerivedStateFromError !== "function") { + markLegacyErrorBoundaryAsFailed(this); + } + var error$1 = errorInfo.value; + var stack = errorInfo.stack; + this.componentDidCatch(error$1, { + componentStack: stack !== null ? stack : "" + }); + { + if (typeof getDerivedStateFromError !== "function") { + if (!includesSomeLane(fiber.lanes, SyncLane)) { + error("%s: Error boundaries should implement getDerivedStateFromError(). " + "In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); + } + } + } + }; + } + return update; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + var threadIDs; + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap$1(); + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else { + threadIDs = pingCache.get(wakeable); + if (threadIDs === undefined) { + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } + } + if (!threadIDs.has(lanes)) { + threadIDs.add(lanes); + var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); + { + if (isDevToolsPresent) { + restorePendingUpdaters(root, lanes); + } + } + wakeable.then(ping, ping); + } + } + function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { + var wakeables = suspenseBoundary.updateQueue; + if (wakeables === null) { + var updateQueue = new Set(); + updateQueue.add(wakeable); + suspenseBoundary.updateQueue = updateQueue; + } else { + wakeables.add(wakeable); + } + } + function resetSuspendedComponent(sourceFiber, rootRenderLanes) { + + var tag = sourceFiber.tag; + if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { + var currentSource = sourceFiber.alternate; + if (currentSource) { + sourceFiber.updateQueue = currentSource.updateQueue; + sourceFiber.memoizedState = currentSource.memoizedState; + sourceFiber.lanes = currentSource.lanes; + } else { + sourceFiber.updateQueue = null; + sourceFiber.memoizedState = null; + } + } + } + function getNearestSuspenseBoundaryToCapture(returnFiber) { + var node = returnFiber; + do { + if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { + return node; + } + + node = node.return; + } while (node !== null); + return null; + } + function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { + if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { + if (suspenseBoundary === returnFiber) { + suspenseBoundary.flags |= ShouldCapture; + } else { + suspenseBoundary.flags |= DidCapture; + sourceFiber.flags |= ForceUpdateForLegacySuspense; + + sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); + if (sourceFiber.tag === ClassComponent) { + var currentSourceFiber = sourceFiber.alternate; + if (currentSourceFiber === null) { + sourceFiber.tag = IncompleteClassComponent; + } else { + var update = createUpdate(NoTimestamp, SyncLane); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update); + } + } + + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); + } + return suspenseBoundary; + } + + suspenseBoundary.flags |= ShouldCapture; + + suspenseBoundary.lanes = rootRenderLanes; + return suspenseBoundary; + } + function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { + sourceFiber.flags |= Incomplete; + { + if (isDevToolsPresent) { + restorePendingUpdaters(root, rootRenderLanes); + } + } + if (value !== null && typeof value === "object" && typeof value.then === "function") { + var wakeable = value; + resetSuspendedComponent(sourceFiber); + var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); + if (suspenseBoundary !== null) { + suspenseBoundary.flags &= ~ForceClientRender; + markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); + + if (suspenseBoundary.mode & ConcurrentMode) { + attachPingListener(root, wakeable, rootRenderLanes); + } + attachRetryListener(suspenseBoundary, root, wakeable); + return; + } else { + if (!includesSyncLane(rootRenderLanes)) { + attachPingListener(root, wakeable, rootRenderLanes); + renderDidSuspendDelayIfPossible(); + return; + } + + var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); + + value = uncaughtSuspenseError; + } + } + + renderDidError(value); + value = createCapturedValue(value, sourceFiber); + var workInProgress = returnFiber; + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.flags |= ShouldCapture; + var lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + var update = createRootErrorUpdate(workInProgress, _errorInfo, lane); + enqueueCapturedUpdate(workInProgress, update); + return; + } + case ClassComponent: + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.flags |= ShouldCapture; + var _lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); + + var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane); + enqueueCapturedUpdate(workInProgress, _update); + return; + } + break; + } + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + function getSuspendedCache() { + { + return null; + } + } + + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var didReceiveUpdate = false; + var didWarnAboutBadClass; + var didWarnAboutModulePatternComponent; + var didWarnAboutContextTypeOnFunctionComponent; + var didWarnAboutGetDerivedStateOnFunctionComponent; + var didWarnAboutFunctionRefs; + var didWarnAboutReassigningProps; + var didWarnAboutRevealOrder; + var didWarnAboutTailOptions; + { + didWarnAboutBadClass = {}; + didWarnAboutModulePatternComponent = {}; + didWarnAboutContextTypeOnFunctionComponent = {}; + didWarnAboutGetDerivedStateOnFunctionComponent = {}; + didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; + didWarnAboutRevealOrder = {}; + didWarnAboutTailOptions = {}; + } + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + if (current === null) { + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + } + function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); + + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + var render = Component.render; + var ref = workInProgress.ref; + + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (current === null) { + var type = Component.type; + if (isSimpleFunctionComponent(type) && Component.compare === null && + Component.defaultProps === undefined) { + var resolvedType = type; + { + resolvedType = resolveFunctionForHotReloading(type); + } + + workInProgress.tag = SimpleMemoComponent; + workInProgress.type = resolvedType; + { + validateFunctionComponentInDev(workInProgress, type); + } + return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes); + } + { + var innerPropTypes = type.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(type)); + } + } + var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + child.ref = workInProgress.ref; + child.return = workInProgress; + workInProgress.child = child; + return child; + } + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + if (_innerPropTypes) { + checkPropTypes(_innerPropTypes, nextProps, + "prop", getComponentNameFromType(_type)); + } + } + var currentChild = current.child; + + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext) { + var prevProps = currentChild.memoizedProps; + + var compare = Component.compare; + compare = compare !== null ? compare : shallowEqual; + if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + } + + workInProgress.flags |= PerformedWork; + var newChild = createWorkInProgress(currentChild, nextProps); + newChild.ref = workInProgress.ref; + newChild.return = workInProgress; + workInProgress.child = newChild; + return newChild; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerMemoType = workInProgress.elementType; + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + var lazyComponent = outerMemoType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + outerMemoType = init(payload); + } catch (x) { + outerMemoType = null; + } + + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, nextProps, + "prop", getComponentNameFromType(outerMemoType)); + } + } + } + } + if (current !== null) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && + workInProgress.type === current.type) { + didReceiveUpdate = false; + + workInProgress.pendingProps = nextProps = prevProps; + if (!checkScheduledUpdateOrContext(current, renderLanes)) { + workInProgress.lanes = current.lanes; + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } + } + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); + } + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + var prevState = current !== null ? current.memoizedState : null; + if (nextProps.mode === "hidden" || enableLegacyHidden) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + var nextState = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = nextState; + pushRenderLanes(workInProgress, renderLanes); + } else if (!includesSomeLane(renderLanes, OffscreenLane)) { + var spawnedCachePool = null; + + var nextBaseLanes; + if (prevState !== null) { + var prevBaseLanes = prevState.baseLanes; + nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes); + } else { + nextBaseLanes = renderLanes; + } + + workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane); + var _nextState = { + baseLanes: nextBaseLanes, + cachePool: spawnedCachePool, + transitions: null + }; + workInProgress.memoizedState = _nextState; + workInProgress.updateQueue = null; + + pushRenderLanes(workInProgress, nextBaseLanes); + return null; + } else { + var _nextState2 = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = _nextState2; + + var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes; + pushRenderLanes(workInProgress, subtreeRenderLanes); + } + } else { + var _subtreeRenderLanes; + if (prevState !== null) { + _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); + workInProgress.memoizedState = null; + } else { + _subtreeRenderLanes = renderLanes; + } + pushRenderLanes(workInProgress, _subtreeRenderLanes); + } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + + function updateFragment(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateMode(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateProfiler(current, workInProgress, renderLanes) { + { + workInProgress.flags |= Update; + { + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (current === null && ref !== null || current !== null && current.ref !== ref) { + workInProgress.flags |= Ref; + } + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); + context = getMaskedContext(workInProgress, unmaskedContext); + } + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + switch (shouldError(workInProgress)) { + case false: + { + var _instance = workInProgress.stateNode; + var ctor = workInProgress.type; + + var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context); + var state = tempInstance.state; + _instance.updater.enqueueSetState(_instance, state, null); + break; + } + case true: + { + workInProgress.flags |= DidCapture; + workInProgress.flags |= ShouldCapture; + + var error$1 = new Error("Simulated error coming from DevTools"); + var lane = pickArbitraryLane(renderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + + var update = createClassErrorUpdate(workInProgress, createCapturedValue(error$1, workInProgress), lane); + enqueueCapturedUpdate(workInProgress, update); + break; + } + } + if (workInProgress.type !== workInProgress.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + "prop", getComponentNameFromType(Component)); + } + } + } + + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress, renderLanes); + var instance = workInProgress.stateNode; + var shouldUpdate; + if (instance === null) { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + shouldUpdate = true; + } else if (current === null) { + shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes); + } else { + shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes); + } + var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes); + { + var inst = workInProgress.stateNode; + if (shouldUpdate && inst.props !== nextProps) { + if (!didWarnAboutReassigningProps) { + error("It looks like %s is reassigning its own `this.props` while rendering. " + "This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"); + } + didWarnAboutReassigningProps = true; + } + } + return nextUnitOfWork; + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + if (!shouldUpdate && !didCaptureError) { + if (hasContext) { + invalidateContextProvider(workInProgress, Component, false); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + var instance = workInProgress.stateNode; + + ReactCurrentOwner$1.current = workInProgress; + var nextChildren; + if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { + nextChildren = null; + { + stopProfilerTimerIfRunning(); + } + } else { + { + setIsRendering(true); + nextChildren = instance.render(); + setIsRendering(false); + } + } + + workInProgress.flags |= PerformedWork; + if (current !== null && didCaptureError) { + forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + + workInProgress.memoizedState = instance.state; + + if (hasContext) { + invalidateContextProvider(workInProgress, Component, true); + } + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + pushTopLevelContextObject(workInProgress, root.context, false); + } + pushHostContainer(workInProgress, root.containerInfo); + } + function updateHostRoot(current, workInProgress, renderLanes) { + pushHostRootContext(workInProgress); + if (current === null) { + throw new Error("Should have a current fiber. This is a bug in React."); + } + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, nextProps, null, renderLanes); + var nextState = workInProgress.memoizedState; + var root = workInProgress.stateNode; + + var nextChildren = nextState.element; + { + if (nextChildren === prevChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + return workInProgress.child; + } + function updateHostComponent(current, workInProgress, renderLanes) { + pushHostContext(workInProgress); + var type = workInProgress.type; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + var nextChildren = nextProps.children; + if (prevProps !== null && shouldSetTextContent()) { + workInProgress.flags |= ContentReset; + } + markRef(current, workInProgress); + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateHostText(current, workInProgress) { + + return null; + } + function mountLazyComponent(_current, workInProgress, elementType, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var lazyComponent = elementType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + var Component = init(payload); + + workInProgress.type = Component; + var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); + var resolvedProps = resolveDefaultProps(Component, props); + var child; + switch (resolvedTag) { + case FunctionComponent: + { + { + validateFunctionComponentInDev(workInProgress, Component); + workInProgress.type = Component = resolveFunctionForHotReloading(Component); + } + child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ClassComponent: + { + { + workInProgress.type = Component = resolveClassForHotReloading(Component); + } + child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ForwardRef: + { + { + workInProgress.type = Component = resolveForwardRefForHotReloading(Component); + } + child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case MemoComponent: + { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = Component.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, resolvedProps, + "prop", getComponentNameFromType(Component)); + } + } + } + child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), + renderLanes); + return child; + } + } + var hint = ""; + { + if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { + hint = " Did you wrap a component in React.lazy() more than once?"; + } + } + + throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); + } + function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + + workInProgress.tag = ClassComponent; + + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress, renderLanes); + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } + function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, false); + context = getMaskedContext(workInProgress, unmaskedContext); + } + prepareToReadContext(workInProgress, renderLanes); + var value; + { + if (Component.prototype && typeof Component.prototype.render === "function") { + var componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutBadClass[componentName]) { + error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + setIsRendering(true); + ReactCurrentOwner$1.current = workInProgress; + value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes); + setIsRendering(false); + } + workInProgress.flags |= PerformedWork; + { + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + var _componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName, _componentName, _componentName); + didWarnAboutModulePatternComponent[_componentName] = true; + } + } + } + if ( + typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + { + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName2]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); + didWarnAboutModulePatternComponent[_componentName2] = true; + } + } + + workInProgress.tag = ClassComponent; + + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + + var hasContext = false; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + initializeUpdateQueue(workInProgress); + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, Component, props, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } else { + workInProgress.tag = FunctionComponent; + reconcileChildren(null, workInProgress, value, renderLanes); + { + validateFunctionComponentInDev(workInProgress, Component); + } + return workInProgress.child; + } + } + function validateFunctionComponentInDev(workInProgress, Component) { + { + if (Component) { + if (Component.childContextTypes) { + error("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"); + } + } + if (workInProgress.ref !== null) { + var info = ""; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + var warningKey = ownerName || ""; + var debugSource = workInProgress._debugSource; + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + error("Function components cannot be given refs. " + "Attempts to access this ref will fail. " + "Did you mean to use React.forwardRef()?%s", info); + } + } + if (typeof Component.getDerivedStateFromProps === "function") { + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) { + error("%s: Function components do not support getDerivedStateFromProps.", _componentName3); + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; + } + } + if (typeof Component.contextType === "object" && Component.contextType !== null) { + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + error("%s: Function components do not support contextType.", _componentName4); + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + } + } + } + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: NoLane + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: getSuspendedCache(), + transitions: null + }; + } + function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) { + var cachePool = null; + return { + baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes), + cachePool: cachePool, + transitions: prevOffscreenState.transitions + }; + } + + function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) { + if (current !== null) { + var suspenseState = current.memoizedState; + if (suspenseState === null) { + return false; + } + } + + return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + } + function getRemainingWorkInPrimaryTree(current, renderLanes) { + return removeLanes(current.childLanes, renderLanes); + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + + { + if (shouldSuspend(workInProgress)) { + workInProgress.flags |= DidCapture; + } + } + var suspenseContext = suspenseStackCursor.current; + var showFallback = false; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { + showFallback = true; + workInProgress.flags &= ~DidCapture; + } else { + if (current === null || current.memoizedState !== null) { + { + suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); + } + } + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); + + if (current === null) { + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null) { + var dehydrated = suspenseState.dehydrated; + if (dehydrated !== null) { + return mountDehydratedSuspenseComponent(workInProgress); + } + } + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + if (showFallback) { + var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var primaryChildFragment = workInProgress.child; + primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackFragment; + } else { + return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); + } + } else { + var prevState = current.memoizedState; + if (prevState !== null) { + var _dehydrated = prevState.dehydrated; + if (_dehydrated !== null) { + return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes); + } + } + if (showFallback) { + var _nextFallbackChildren = nextProps.fallback; + var _nextPrimaryChildren = nextProps.children; + var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes); + var _primaryChildFragment2 = workInProgress.child; + var prevOffscreenState = current.child.memoizedState; + _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes); + _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } else { + var _nextPrimaryChildren2 = nextProps.children; + var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes); + workInProgress.memoizedState = null; + return _primaryChildFragment3; + } + } + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) { + var mode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + primaryChildFragment.return = workInProgress; + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var progressedPrimaryFragment = workInProgress.child; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + var fallbackChildFragment; + if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = 0; + primaryChildFragment.treeBaseDuration = 0; + } + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } else { + primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) { + return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); + } + function updateWorkInProgressOffscreenFiber(current, offscreenProps) { + return createWorkInProgress(current, offscreenProps); + } + function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) { + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, { + mode: "visible", + children: primaryChildren + }); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + primaryChildFragment.lanes = renderLanes; + } + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = null; + if (currentFallbackChildFragment !== null) { + var deletions = workInProgress.deletions; + if (deletions === null) { + workInProgress.deletions = [currentFallbackChildFragment]; + workInProgress.flags |= ChildDeletion; + } else { + deletions.push(currentFallbackChildFragment); + } + } + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + if ( + (mode & ConcurrentMode) === NoMode && + workInProgress.child !== currentPrimaryChildFragment) { + var progressedPrimaryFragment = workInProgress.child; + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; + primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; + } + + workInProgress.deletions = null; + } else { + primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); + + primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; + } + var fallbackChildFragment; + if (currentFallbackChildFragment !== null) { + fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); + } else { + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + + fallbackChildFragment.flags |= Placement; + } + fallbackChildFragment.return = workInProgress; + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + if (recoverableError !== null) { + queueHydrationError(recoverableError); + } + + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + + var nextProps = workInProgress.pendingProps; + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + + primaryChildFragment.flags |= Placement; + workInProgress.memoizedState = null; + return primaryChildFragment; + } + function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var fiberMode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); + var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); + + fallbackChildFragment.flags |= Placement; + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + } + return fallbackChildFragment; + } + function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + { + error("Cannot hydrate Suspense in legacy mode. Switch from " + "ReactDOM.hydrate(element, container) to " + "ReactDOMClient.hydrateRoot(container, )" + ".render(element) or remove the Suspense components from " + "the server rendered components."); + } + workInProgress.lanes = laneToLanes(SyncLane); + } else if (isSuspenseInstanceFallback()) { + workInProgress.lanes = laneToLanes(DefaultHydrationLane); + } else { + workInProgress.lanes = laneToLanes(OffscreenLane); + } + return null; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (!didSuspend) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, + null); + } + if (isSuspenseInstanceFallback()) { + var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(), + errorMessage = _getSuspenseInstanceF.errorMessage; + var error = errorMessage ? new Error(errorMessage) : new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, error); + } + + var hasContextChanged = includesSomeLane(renderLanes, current.childLanes); + if (didReceiveUpdate || hasContextChanged) { + var root = getWorkInProgressRoot(); + if (root !== null) { + var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes); + if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { + suspenseState.retryLane = attemptHydrationAtLane; + + var eventTime = NoTimestamp; + scheduleUpdateOnFiber(current, attemptHydrationAtLane, eventTime); + } + } + + renderDidSuspendDelayIfPossible(); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); + } else if (isSuspenseInstancePending()) { + workInProgress.flags |= DidCapture; + + workInProgress.child = current.child; + + var retry = retryDehydratedSuspenseBoundary.bind(null, current); + registerSuspenseInstanceRetry(); + return null; + } else { + reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext); + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + + primaryChildFragment.flags |= Hydrating; + return primaryChildFragment; + } + } else { + if (workInProgress.flags & ForceClientRender) { + workInProgress.flags &= ~ForceClientRender; + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); + } else if (workInProgress.memoizedState !== null) { + workInProgress.child = current.child; + + workInProgress.flags |= DidCapture; + return null; + } else { + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var _primaryChildFragment4 = workInProgress.child; + _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } + } + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) { + var node = firstChild; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } + } else if (node.tag === SuspenseListComponent) { + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + function findLastContentRow(firstChild) { + var row = firstChild; + var lastContentRow = null; + while (row !== null) { + var currentRow = row.alternate; + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + lastContentRow = row; + } + row = row.sibling; + } + return lastContentRow; + } + function validateRevealOrder(revealOrder) { + { + if (revealOrder !== undefined && revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "together" && !didWarnAboutRevealOrder[revealOrder]) { + didWarnAboutRevealOrder[revealOrder] = true; + if (typeof revealOrder === "string") { + switch (revealOrder.toLowerCase()) { + case "together": + case "forwards": + case "backwards": + { + error('"%s" is not a valid value for revealOrder on . ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + case "forward": + case "backward": + { + error('"%s" is not a valid value for revealOrder on . ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + default: + error('"%s" is not a supported revealOrder on . ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + break; + } + } else { + error("%s is not a supported value for revealOrder on . " + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + } + } + } + } + function validateTailOptions(tailMode, revealOrder) { + { + if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) { + if (tailMode !== "collapsed" && tailMode !== "hidden") { + didWarnAboutTailOptions[tailMode] = true; + error('"%s" is not a supported value for tail on . ' + 'Did you mean "collapsed" or "hidden"?', tailMode); + } else if (revealOrder !== "forwards" && revealOrder !== "backwards") { + didWarnAboutTailOptions[tailMode] = true; + error(' is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode); + } + } + } + } + function validateSuspenseListNestedChild(childSlot, index) { + { + var isAnArray = isArray(childSlot); + var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function"; + if (isAnArray || isIterable) { + var type = isAnArray ? "array" : "iterable"; + error("A nested %s was passed to row #%s in . Wrap it in " + "an additional SuspenseList to configure its revealOrder: " + " ... " + "{%s} ... " + "", type, index, type); + return false; + } + } + return true; + } + function validateSuspenseListChildren(children, revealOrder) { + { + if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== undefined && children !== null && children !== false) { + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + if (!validateSuspenseListNestedChild(children[i], i)) { + return; + } + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var childrenIterator = iteratorFn.call(children); + if (childrenIterator) { + var step = childrenIterator.next(); + var _i = 0; + for (; !step.done; step = childrenIterator.next()) { + if (!validateSuspenseListNestedChild(step.value, _i)) { + return; + } + _i++; + } + } + } else { + error('A single row was passed to a . ' + "This is not useful since it needs multiple rows. " + "Did you mean to pass multiple children or an array?", revealOrder); + } + } + } + } + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + if (renderState === null) { + workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + }; + } else { + renderState.isBackwards = isBackwards; + renderState.rendering = null; + renderState.renderingStartTime = 0; + renderState.last = lastContentRow; + renderState.tail = tail; + renderState.tailMode = tailMode; + } + } + + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var revealOrder = nextProps.revealOrder; + var tailMode = nextProps.tail; + var newChildren = nextProps.children; + validateRevealOrder(revealOrder); + validateTailOptions(tailMode, revealOrder); + validateSuspenseListChildren(newChildren, revealOrder); + reconcileChildren(current, workInProgress, newChildren, renderLanes); + var suspenseContext = suspenseStackCursor.current; + var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + if (shouldForceFallback) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + workInProgress.flags |= DidCapture; + } else { + var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags; + if (didSuspendBefore) { + propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes); + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + workInProgress.memoizedState = null; + } else { + switch (revealOrder) { + case "forwards": + { + var lastContentRow = findLastContentRow(workInProgress.child); + var tail; + if (lastContentRow === null) { + tail = workInProgress.child; + workInProgress.child = null; + } else { + tail = lastContentRow.sibling; + lastContentRow.sibling = null; + } + initSuspenseListRenderState(workInProgress, false, + tail, lastContentRow, tailMode); + break; + } + case "backwards": + { + var _tail = null; + var row = workInProgress.child; + workInProgress.child = null; + while (row !== null) { + var currentRow = row.alternate; + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + workInProgress.child = row; + break; + } + var nextRow = row.sibling; + row.sibling = _tail; + _tail = row; + row = nextRow; + } + + initSuspenseListRenderState(workInProgress, true, + _tail, null, + tailMode); + break; + } + case "together": + { + initSuspenseListRenderState(workInProgress, false, + null, + null, + undefined); + break; + } + default: + { + workInProgress.memoizedState = null; + } + } + } + return workInProgress.child; + } + function updatePortalComponent(current, workInProgress, renderLanes) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + if (current === null) { + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + return workInProgress.child; + } + var hasWarnedAboutUsingNoValuePropOnContextProvider = false; + function updateContextProvider(current, workInProgress, renderLanes) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = newProps.value; + { + if (!("value" in newProps)) { + if (!hasWarnedAboutUsingNoValuePropOnContextProvider) { + hasWarnedAboutUsingNoValuePropOnContextProvider = true; + error("The `value` prop is required for the ``. Did you misspell it or forget to pass it?"); + } + } + var providerPropTypes = workInProgress.type.propTypes; + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"); + } + } + pushProvider(workInProgress, context, newValue); + { + if (oldProps !== null) { + var oldValue = oldProps.value; + if (objectIs(oldValue, newValue)) { + if (oldProps.children === newProps.children && !hasContextChanged()) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + } else { + propagateContextChange(workInProgress, context, renderLanes); + } + } + } + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; + } + var hasWarnedAboutUsingContextAsConsumer = false; + function updateContextConsumer(current, workInProgress, renderLanes) { + var context = workInProgress.type; + + { + if (context._context === undefined) { + if (context !== context.Consumer) { + if (!hasWarnedAboutUsingContextAsConsumer) { + hasWarnedAboutUsingContextAsConsumer = true; + error("Rendering directly is not supported and will be removed in " + "a future major release. Did you mean to render instead?"); + } + } + } else { + context = context._context; + } + } + var newProps = workInProgress.pendingProps; + var render = newProps.children; + { + if (typeof render !== "function") { + error("A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it."); + } + } + prepareToReadContext(workInProgress, renderLanes); + var newValue = _readContext(context); + var newChildren; + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + newChildren = render(newValue); + setIsRendering(false); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; + } + function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + if (current !== null) { + current.alternate = null; + workInProgress.alternate = null; + + workInProgress.flags |= Placement; + } + } + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + if (current !== null) { + workInProgress.dependencies = current.dependencies; + } + { + stopProfilerTimerIfRunning(); + } + markSkippedUpdateLanes(workInProgress.lanes); + + if (!includesSomeLane(renderLanes, workInProgress.childLanes)) { + { + return null; + } + } + + cloneChildFibers(current, workInProgress); + return workInProgress.child; + } + function remountFiber(current, oldWorkInProgress, newWorkInProgress) { + { + var returnFiber = oldWorkInProgress.return; + if (returnFiber === null) { + throw new Error("Cannot swap the root fiber."); + } + + current.alternate = null; + oldWorkInProgress.alternate = null; + + newWorkInProgress.index = oldWorkInProgress.index; + newWorkInProgress.sibling = oldWorkInProgress.sibling; + newWorkInProgress.return = oldWorkInProgress.return; + newWorkInProgress.ref = oldWorkInProgress.ref; + + if (oldWorkInProgress === returnFiber.child) { + returnFiber.child = newWorkInProgress; + } else { + var prevSibling = returnFiber.child; + if (prevSibling === null) { + throw new Error("Expected parent to have a child."); + } + while (prevSibling.sibling !== oldWorkInProgress) { + prevSibling = prevSibling.sibling; + if (prevSibling === null) { + throw new Error("Expected to find the previous sibling."); + } + } + prevSibling.sibling = newWorkInProgress; + } + + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [current]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(current); + } + newWorkInProgress.flags |= Placement; + + return newWorkInProgress; + } + } + function checkScheduledUpdateOrContext(current, renderLanes) { + var updateLanes = current.lanes; + if (includesSomeLane(updateLanes, renderLanes)) { + return true; + } + + return false; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + var root = workInProgress.stateNode; + break; + case HostComponent: + pushHostContext(workInProgress); + break; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + pushContextProvider(workInProgress); + } + break; + } + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case ContextProvider: + { + var newValue = workInProgress.memoizedProps.value; + var context = workInProgress.type._context; + pushProvider(workInProgress, context, newValue); + break; + } + case Profiler: + { + var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (hasChildWork) { + workInProgress.flags |= Update; + } + { + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + break; + case SuspenseComponent: + { + var state = workInProgress.memoizedState; + if (state !== null) { + if (state.dehydrated !== null) { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + + workInProgress.flags |= DidCapture; + + return null; + } + + var primaryChildFragment = workInProgress.child; + var primaryChildLanes = primaryChildFragment.childLanes; + if (includesSomeLane(renderLanes, primaryChildLanes)) { + return updateSuspenseComponent(current, workInProgress, renderLanes); + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + + var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + if (child !== null) { + return child.sibling; + } else { + return null; + } + } + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + break; + } + case SuspenseListComponent: + { + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (didSuspendBefore) { + if (_hasChildWork) { + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } + + workInProgress.flags |= DidCapture; + } + + var renderState = workInProgress.memoizedState; + if (renderState !== null) { + renderState.rendering = null; + renderState.tail = null; + renderState.lastEffect = null; + } + pushSuspenseContext(workInProgress, suspenseStackCursor.current); + if (_hasChildWork) { + break; + } else { + return null; + } + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + workInProgress.lanes = NoLanes; + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + function beginWork(current, workInProgress, renderLanes) { + { + if (workInProgress._debugNeedsRemount && current !== null) { + return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes)); + } + } + if (current !== null) { + var oldProps = current.memoizedProps; + var newProps = workInProgress.pendingProps; + if (oldProps !== newProps || hasContextChanged() || + workInProgress.type !== current.type) { + didReceiveUpdate = true; + } else { + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext && + (workInProgress.flags & DidCapture) === NoFlags) { + didReceiveUpdate = false; + return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + } + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } else { + didReceiveUpdate = false; + } + } + } else { + didReceiveUpdate = false; + } + + workInProgress.lanes = NoLanes; + switch (workInProgress.tag) { + case IndeterminateComponent: + { + return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes); + } + case LazyComponent: + { + var elementType = workInProgress.elementType; + return mountLazyComponent(current, workInProgress, elementType, renderLanes); + } + case FunctionComponent: + { + var Component = workInProgress.type; + var unresolvedProps = workInProgress.pendingProps; + var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps); + return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes); + } + case ClassComponent: + { + var _Component = workInProgress.type; + var _unresolvedProps = workInProgress.pendingProps; + var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps); + return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes); + } + case HostRoot: + return updateHostRoot(current, workInProgress, renderLanes); + case HostComponent: + return updateHostComponent(current, workInProgress, renderLanes); + case HostText: + return updateHostText(); + case SuspenseComponent: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case HostPortal: + return updatePortalComponent(current, workInProgress, renderLanes); + case ForwardRef: + { + var type = workInProgress.type; + var _unresolvedProps2 = workInProgress.pendingProps; + var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); + return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes); + } + case Fragment: + return updateFragment(current, workInProgress, renderLanes); + case Mode: + return updateMode(current, workInProgress, renderLanes); + case Profiler: + return updateProfiler(current, workInProgress, renderLanes); + case ContextProvider: + return updateContextProvider(current, workInProgress, renderLanes); + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderLanes); + case MemoComponent: + { + var _type2 = workInProgress.type; + var _unresolvedProps3 = workInProgress.pendingProps; + + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = _type2.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, _resolvedProps3, + "prop", getComponentNameFromType(_type2)); + } + } + } + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes); + } + case SimpleMemoComponent: + { + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + } + case IncompleteClassComponent: + { + var _Component2 = workInProgress.type; + var _unresolvedProps4 = workInProgress.pendingProps; + var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4); + return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes); + } + case SuspenseListComponent: + { + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + { + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + } + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); + } + function markUpdate(workInProgress) { + workInProgress.flags |= Update; + } + function markRef$1(workInProgress) { + workInProgress.flags |= Ref; + } + function hadNoMutationsEffects(current, completedWork) { + var didBailout = current !== null && current.child === completedWork.child; + if (didBailout) { + return true; + } + if ((completedWork.flags & ChildDeletion) !== NoFlags) { + return false; + } + + var child = completedWork.child; + while (child !== null) { + if ((child.flags & MutationMask) !== NoFlags || (child.subtreeFlags & MutationMask) !== NoFlags) { + return false; + } + child = child.sibling; + } + return true; + } + var _appendAllChildren; + var updateHostContainer; + var updateHostComponent$1; + var updateHostText$1; + { + _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + var node = workInProgress.child; + while (node !== null) { + if (node.tag === HostComponent) { + var instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + var props = node.memoizedProps; + var type = node.type; + instance = cloneHiddenInstance(instance); + } + appendInitialChild(parent, instance); + } else if (node.tag === HostText) { + var _instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + var text = node.memoizedProps; + _instance = cloneHiddenTextInstance(); + } + appendInitialChild(parent, _instance); + } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { + var child = node.child; + if (child !== null) { + child.return = node; + } + _appendAllChildren(parent, node, true, true); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + node = node; + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + + var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { + var node = workInProgress.child; + while (node !== null) { + if (node.tag === HostComponent) { + var instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + var props = node.memoizedProps; + var type = node.type; + instance = cloneHiddenInstance(instance); + } + appendChildToContainerChildSet(containerChildSet, instance); + } else if (node.tag === HostText) { + var _instance2 = node.stateNode; + if (needsVisibilityToggle && isHidden) { + var text = node.memoizedProps; + _instance2 = cloneHiddenTextInstance(); + } + appendChildToContainerChildSet(containerChildSet, _instance2); + } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { + var child = node.child; + if (child !== null) { + child.return = node; + } + appendAllChildrenToContainer(containerChildSet, node, true, true); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + node = node; + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function updateHostContainer(current, workInProgress) { + var portalOrRoot = workInProgress.stateNode; + var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); + if (childrenUnchanged) ;else { + var container = portalOrRoot.containerInfo; + var newChildSet = createContainerChildSet(container); + + appendAllChildrenToContainer(newChildSet, workInProgress, false, false); + portalOrRoot.pendingChildren = newChildSet; + + markUpdate(workInProgress); + finalizeContainerChildren(container, newChildSet); + } + }; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance) { + var currentInstance = current.stateNode; + var oldProps = current.memoizedProps; + + var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); + if (childrenUnchanged && oldProps === newProps) { + workInProgress.stateNode = currentInstance; + return; + } + var recyclableInstance = workInProgress.stateNode; + var currentHostContext = getHostContext(); + var updatePayload = null; + if (oldProps !== newProps) { + updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps); + } + if (childrenUnchanged && updatePayload === null) { + workInProgress.stateNode = currentInstance; + return; + } + var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged); + workInProgress.stateNode = newInstance; + if (childrenUnchanged) { + markUpdate(workInProgress); + } else { + _appendAllChildren(newInstance, workInProgress, false, false); + } + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + var rootContainerInstance = getRootHostContainer(); + var currentHostContext = getHostContext(); + workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); + + markUpdate(workInProgress); + } else { + workInProgress.stateNode = current.stateNode; + } + }; + } + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + { + var tailNode = renderState.tail; + var lastTailNode = null; + while (tailNode !== null) { + if (tailNode.alternate !== null) { + lastTailNode = tailNode; + } + tailNode = tailNode.sibling; + } + + if (lastTailNode === null) { + renderState.tail = null; + } else { + lastTailNode.sibling = null; + } + break; + } + case "collapsed": + { + var _tailNode = renderState.tail; + var _lastTailNode = null; + while (_tailNode !== null) { + if (_tailNode.alternate !== null) { + _lastTailNode = _tailNode; + } + _tailNode = _tailNode.sibling; + } + + if (_lastTailNode === null) { + if (!hasRenderedATailFallback && renderState.tail !== null) { + renderState.tail.sibling = null; + } else { + renderState.tail = null; + } + } else { + _lastTailNode.sibling = null; + } + break; + } + } + } + function bubbleProperties(completedWork) { + var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; + var newChildLanes = NoLanes; + var subtreeFlags = NoFlags; + if (!didBailout) { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var actualDuration = completedWork.actualDuration; + var treeBaseDuration = completedWork.selfBaseDuration; + var child = completedWork.child; + while (child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); + subtreeFlags |= child.subtreeFlags; + subtreeFlags |= child.flags; + + actualDuration += child.actualDuration; + treeBaseDuration += child.treeBaseDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + completedWork.treeBaseDuration = treeBaseDuration; + } else { + var _child = completedWork.child; + while (_child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); + subtreeFlags |= _child.subtreeFlags; + subtreeFlags |= _child.flags; + + _child.return = completedWork; + _child = _child.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } else { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var _treeBaseDuration = completedWork.selfBaseDuration; + var _child2 = completedWork.child; + while (_child2 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); + + subtreeFlags |= _child2.subtreeFlags & StaticMask; + subtreeFlags |= _child2.flags & StaticMask; + _treeBaseDuration += _child2.treeBaseDuration; + _child2 = _child2.sibling; + } + completedWork.treeBaseDuration = _treeBaseDuration; + } else { + var _child3 = completedWork.child; + while (_child3 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); + + subtreeFlags |= _child3.subtreeFlags & StaticMask; + subtreeFlags |= _child3.flags & StaticMask; + + _child3.return = completedWork; + _child3 = _child3.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) { + var wasHydrated = popHydrationState(); + if (nextState !== null && nextState.dehydrated !== null) { + if (current === null) { + if (!wasHydrated) { + throw new Error("A dehydrated suspense component was completed without a hydrated node. " + "This is probably a bug in React."); + } + prepareToHydrateHostSuspenseInstance(); + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var isTimedOutSuspense = nextState !== null; + if (isTimedOutSuspense) { + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } else { + if ((workInProgress.flags & DidCapture) === NoFlags) { + workInProgress.memoizedState = null; + } + + workInProgress.flags |= Update; + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var _isTimedOutSuspense = nextState !== null; + if (_isTimedOutSuspense) { + var _primaryChildFragment = workInProgress.child; + if (_primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } + } else { + upgradeHydrationErrorsToRecoverable(); + + return true; + } + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case IndeterminateComponent: + case LazyComponent: + case SimpleMemoComponent: + case FunctionComponent: + case ForwardRef: + case Fragment: + case Mode: + case Profiler: + case ContextConsumer: + case MemoComponent: + bubbleProperties(workInProgress); + return null; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case HostRoot: + { + var fiberRoot = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + if (current === null || current.child === null) { + var wasHydrated = popHydrationState(); + if (wasHydrated) { + markUpdate(workInProgress); + } else { + if (current !== null) { + var prevState = current.memoizedState; + if ( + !prevState.isDehydrated || + (workInProgress.flags & ForceClientRender) !== NoFlags) { + workInProgress.flags |= Snapshot; + + upgradeHydrationErrorsToRecoverable(); + } + } + } + } + updateHostContainer(current, workInProgress); + bubbleProperties(workInProgress); + return null; + } + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + if (current !== null && workInProgress.stateNode != null) { + updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance); + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } + + bubbleProperties(workInProgress); + return null; + } + var currentHostContext = getHostContext(); + + var _wasHydrated = popHydrationState(); + if (_wasHydrated) { + if (prepareToHydrateHostInstance()) { + markUpdate(workInProgress); + } + } else { + var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); + _appendAllChildren(instance, workInProgress, false, false); + workInProgress.stateNode = instance; + } + + if (workInProgress.ref !== null) { + markRef$1(workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case HostText: + { + var newText = newProps; + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; + + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== "string") { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } + } + + var _rootContainerInstance = getRootHostContainer(); + var _currentHostContext = getHostContext(); + var _wasHydrated2 = popHydrationState(); + if (_wasHydrated2) { + if (prepareToHydrateHostTextInstance()) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var nextState = workInProgress.memoizedState; + + if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) { + var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState); + if (!fallthroughToNormalSuspensePath) { + if (workInProgress.flags & ShouldCapture) { + return workInProgress; + } else { + return null; + } + } + } + + if ((workInProgress.flags & DidCapture) !== NoFlags) { + workInProgress.lanes = renderLanes; + + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + + return workInProgress; + } + var nextDidTimeout = nextState !== null; + var prevDidTimeout = current !== null && current.memoizedState !== null; + + if (nextDidTimeout !== prevDidTimeout) { + + if (nextDidTimeout) { + var _offscreenFiber2 = workInProgress.child; + _offscreenFiber2.flags |= Visibility; + + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); + if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + renderDidSuspend(); + } else { + renderDidSuspendDelayIfPossible(); + } + } + } + } + var wakeables = workInProgress.updateQueue; + if (wakeables !== null) { + workInProgress.flags |= Update; + } + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + if (nextDidTimeout) { + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return null; + } + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(current, workInProgress); + if (current === null) { + preparePortalMount(workInProgress.stateNode.containerInfo); + } + bubbleProperties(workInProgress); + return null; + case ContextProvider: + var context = workInProgress.type._context; + popProvider(context, workInProgress); + bubbleProperties(workInProgress); + return null; + case IncompleteClassComponent: + { + var _Component = workInProgress.type; + if (isContextProvider(_Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + var renderState = workInProgress.memoizedState; + if (renderState === null) { + bubbleProperties(workInProgress); + return null; + } + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var renderedTail = renderState.rendering; + if (renderedTail === null) { + if (!didSuspendAlready) { + var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags); + if (!cannotBeSuspended) { + var row = workInProgress.child; + while (row !== null) { + var suspended = findFirstSuspended(row); + if (suspended !== null) { + didSuspendAlready = true; + workInProgress.flags |= DidCapture; + cutOffTailIfNeeded(renderState, false); + + var newThenables = suspended.updateQueue; + if (newThenables !== null) { + workInProgress.updateQueue = newThenables; + workInProgress.flags |= Update; + } + + workInProgress.subtreeFlags = NoFlags; + resetChildFibers(workInProgress, renderLanes); + + pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); + + return workInProgress.child; + } + row = row.sibling; + } + } + if (renderState.tail !== null && now() > getRenderTargetTime()) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + + workInProgress.lanes = SomeRetryLane; + } + } else { + cutOffTailIfNeeded(renderState, false); + } + } else { + if (!didSuspendAlready) { + var _suspended = findFirstSuspended(renderedTail); + if (_suspended !== null) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + + var _newThenables = _suspended.updateQueue; + if (_newThenables !== null) { + workInProgress.updateQueue = _newThenables; + workInProgress.flags |= Update; + } + cutOffTailIfNeeded(renderState, true); + + if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating()) { + bubbleProperties(workInProgress); + return null; + } + } else if ( + now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + + workInProgress.lanes = SomeRetryLane; + } + } + if (renderState.isBackwards) { + renderedTail.sibling = workInProgress.child; + workInProgress.child = renderedTail; + } else { + var previousSibling = renderState.last; + if (previousSibling !== null) { + previousSibling.sibling = renderedTail; + } else { + workInProgress.child = renderedTail; + } + renderState.last = renderedTail; + } + } + if (renderState.tail !== null) { + var next = renderState.tail; + renderState.rendering = next; + renderState.tail = next.sibling; + renderState.renderingStartTime = now(); + next.sibling = null; + + var suspenseContext = suspenseStackCursor.current; + if (didSuspendAlready) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + } else { + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); + + return next; + } + bubbleProperties(workInProgress); + return null; + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + popRenderLanes(workInProgress); + var _nextState = workInProgress.memoizedState; + var nextIsHidden = _nextState !== null; + if (current !== null) { + var _prevState = current.memoizedState; + var prevIsHidden = _prevState !== null; + if (prevIsHidden !== nextIsHidden && + !enableLegacyHidden) { + workInProgress.flags |= Visibility; + } + } + if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) { + bubbleProperties(workInProgress); + } else { + if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { + bubbleProperties(workInProgress); + } + } + return null; + } + case CacheComponent: + { + return null; + } + case TracingMarkerComponent: + { + return null; + } + } + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); + } + function unwindWork(current, workInProgress, renderLanes) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + var flags = workInProgress.flags; + if (flags & ShouldCapture) { + workInProgress.flags = flags & ~ShouldCapture | DidCapture; + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case HostRoot: + { + var root = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + var _flags = workInProgress.flags; + if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { + workInProgress.flags = _flags & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + case HostComponent: + { + popHostContext(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null && suspenseState.dehydrated !== null) { + if (workInProgress.alternate === null) { + throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in " + "React. Please file an issue."); + } + } + var _flags2 = workInProgress.flags; + if (_flags2 & ShouldCapture) { + workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; + + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + + return null; + } + case HostPortal: + popHostContainer(workInProgress); + return null; + case ContextProvider: + var context = workInProgress.type._context; + popProvider(context, workInProgress); + return null; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(workInProgress); + return null; + case CacheComponent: + return null; + default: + return null; + } + } + function unwindInterruptedWork(current, interruptedWork, renderLanes) { + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case ClassComponent: + { + var childContextTypes = interruptedWork.type.childContextTypes; + if (childContextTypes !== null && childContextTypes !== undefined) { + popContext(interruptedWork); + } + break; + } + case HostRoot: + { + var root = interruptedWork.stateNode; + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + resetWorkInProgressVersions(); + break; + } + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + case HostPortal: + popHostContainer(interruptedWork); + break; + case SuspenseComponent: + popSuspenseContext(interruptedWork); + break; + case SuspenseListComponent: + popSuspenseContext(interruptedWork); + break; + case ContextProvider: + var context = interruptedWork.type._context; + popProvider(context, interruptedWork); + break; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(interruptedWork); + break; + } + } + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } + var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; + var nextEffect = null; + + var inProgressLanes = null; + var inProgressRoot = null; + function reportUncaughtErrorInDEV(error) { + { + invokeGuardedCallback(null, function () { + throw error; + }); + clearCaughtError(); + } + } + var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + if (current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentWillUnmount(); + } finally { + recordLayoutEffectDuration(current); + } + } else { + instance.componentWillUnmount(); + } + }; + + function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { + try { + callComponentWillUnmountWithTimer(current, instance); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (ref !== null) { + if (typeof ref === "function") { + var retVal; + try { + if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(null); + } finally { + recordLayoutEffectDuration(current); + } + } else { + retVal = ref(null); + } + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(current)); + } + } + } else { + ref.current = null; + } + } + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var focusedInstanceHandle = null; + var shouldFireAfterActiveInstanceBlur = false; + function commitBeforeMutationEffects(root, firstChild) { + focusedInstanceHandle = prepareForCommit(root.containerInfo); + nextEffect = firstChild; + commitBeforeMutationEffects_begin(); + + var shouldFire = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = false; + focusedInstanceHandle = null; + return shouldFire; + } + function commitBeforeMutationEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + + var child = fiber.child; + if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitBeforeMutationEffects_complete(); + } + } + } + function commitBeforeMutationEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + setCurrentFiber(fiber); + try { + commitBeforeMutationEffectsOnFiber(fiber); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitBeforeMutationEffectsOnFiber(finishedWork) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; + if ((flags & Snapshot) !== NoFlags) { + setCurrentFiber(finishedWork); + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + break; + } + case ClassComponent: + { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + var instance = finishedWork.stateNode; + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + } + case HostRoot: + { + break; + } + case HostComponent: + case HostText: + case HostPortal: + case IncompleteClassComponent: + break; + default: + { + throw new 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."); + } + } + resetCurrentFiber(); + } + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = undefined; + if (destroy !== undefined) { + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitHookEffectListMount(flags, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var create = effect.create; + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + effect.destroy = create(); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + { + var destroy = effect.destroy; + if (destroy !== undefined && typeof destroy !== "function") { + var hookName = void 0; + if ((effect.tag & Layout) !== NoFlags) { + hookName = "useLayoutEffect"; + } else if ((effect.tag & Insertion) !== NoFlags) { + hookName = "useInsertionEffect"; + } else { + hookName = "useEffect"; + } + var addendum = void 0; + if (destroy === null) { + addendum = " You returned null. If your effect does not require clean " + "up, return undefined (or nothing)."; + } else if (typeof destroy.then === "function") { + addendum = "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. " + "Instead, write the async function inside your effect " + "and call it immediately:\n\n" + hookName + "(() => {\n" + " async function fetchData() {\n" + " // You can await here\n" + " const response = await MyAPI.getData(someId);\n" + " // ...\n" + " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + } else { + addendum = " You returned: " + destroy; + } + error("%s must not return anything besides a function, " + "which is used for clean-up.%s", hookName, addendum); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitPassiveEffectDurations(finishedRoot, finishedWork) { + { + if ((finishedWork.flags & Update) !== NoFlags) { + switch (finishedWork.tag) { + case Profiler: + { + var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onPostCommit = _finishedWork$memoize.onPostCommit; + + var commitTime = getCommitTime(); + var phase = finishedWork.alternate === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onPostCommit === "function") { + onPostCommit(id, phase, passiveEffectDuration, commitTime); + } + + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.passiveEffectDuration += passiveEffectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.passiveEffectDuration += passiveEffectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + break; + } + } + } + } + } + function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) { + if ((finishedWork.flags & LayoutMask) !== NoFlags) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + { + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } + } + break; + } + case ClassComponent: + { + var instance = finishedWork.stateNode; + if (finishedWork.flags & Update) { + { + if (current === null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidMount(); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidMount(); + } + } else { + var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); + var prevState = current.memoizedState; + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } + } + } + } + + var updateQueue = finishedWork.updateQueue; + if (updateQueue !== null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + + commitUpdateQueue(finishedWork, updateQueue, instance); + } + break; + } + case HostRoot: + { + var _updateQueue = finishedWork.updateQueue; + if (_updateQueue !== null) { + var _instance = null; + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + commitUpdateQueue(finishedWork, _updateQueue, _instance); + } + break; + } + case HostComponent: + { + var _instance2 = finishedWork.stateNode; + + if (current === null && finishedWork.flags & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + commitMount(); + } + break; + } + case HostText: + { + break; + } + case HostPortal: + { + break; + } + case Profiler: + { + { + var _finishedWork$memoize2 = finishedWork.memoizedProps, + onCommit = _finishedWork$memoize2.onCommit, + onRender = _finishedWork$memoize2.onRender; + var effectDuration = finishedWork.stateNode.effectDuration; + var commitTime = getCommitTime(); + var phase = current === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onRender === "function") { + onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime); + } + { + if (typeof onCommit === "function") { + onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime); + } + + enqueuePendingPassiveProfilerEffect(finishedWork); + + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += effectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += effectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + } + } + break; + } + case SuspenseComponent: + { + break; + } + case SuspenseListComponent: + case IncompleteClassComponent: + case ScopeComponent: + case OffscreenComponent: + case LegacyHiddenComponent: + case TracingMarkerComponent: + { + break; + } + default: + throw new 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 (finishedWork.flags & Ref) { + commitAttachRef(finishedWork); + } + } + } + } + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse; + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + default: + instanceToUse = instance; + } + + if (typeof ref === "function") { + var retVal; + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(instanceToUse); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + retVal = ref(instanceToUse); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(finishedWork)); + } + } + } else { + { + if (!ref.hasOwnProperty("current")) { + error("Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)); + } + } + ref.current = instanceToUse; + } + } + } + function detachFiberMutation(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.return = null; + } + fiber.return = null; + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + fiber.alternate = null; + detachFiberAfterEffects(alternate); + } + + { + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + + if (fiber.tag === HostComponent) { + var hostInstance = fiber.stateNode; + } + fiber.stateNode = null; + + { + fiber._debugOwner = null; + } + { + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + + fiber.updateQueue = null; + } + } + } + function emptyPortalContainer(current) { + var portal = current.stateNode; + var containerInfo = portal.containerInfo; + var emptyChildSet = createContainerChildSet(containerInfo); + } + function commitPlacement(finishedWork) { + { + return; + } + } + + function commitDeletionEffects(root, returnFiber, deletedFiber) { + { + commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); + } + detachFiberMutation(deletedFiber); + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + var child = parent.child; + while (child !== null) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); + child = child.sibling; + } + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + onCommitUnmount(deletedFiber); + + switch (deletedFiber.tag) { + case HostComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + } + } + + case HostText: + { + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + return; + } + case DehydratedFragment: + { + return; + } + case HostPortal: + { + { + emptyPortalContainer(deletedFiber); + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + return; + } + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + { + var updateQueue = deletedFiber.updateQueue; + if (updateQueue !== null) { + var lastEffect = updateQueue.lastEffect; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + var _effect = effect, + destroy = _effect.destroy, + tag = _effect.tag; + if (destroy !== undefined) { + if ((tag & Insertion) !== NoFlags$1) { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } else if ((tag & Layout) !== NoFlags$1) { + if (deletedFiber.mode & ProfileMode) { + startLayoutEffectTimer(); + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + recordLayoutEffectDuration(deletedFiber); + } else { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ClassComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + var instance = deletedFiber.stateNode; + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance); + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ScopeComponent: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case OffscreenComponent: + { + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + break; + } + default: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + } + } + function commitSuspenseCallback(finishedWork) { + var newState = finishedWork.memoizedState; + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (wakeables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet(); + } + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + if (!retryCache.has(wakeable)) { + retryCache.add(wakeable); + { + if (isDevToolsPresent) { + if (inProgressLanes !== null && inProgressRoot !== null) { + restorePendingUpdaters(inProgressRoot, inProgressLanes); + } else { + throw Error("Expected finished root and lanes to be set. This is a bug in React."); + } + } + } + wakeable.then(retry, retry); + } + }); + } + } + function commitMutationEffects(root, finishedWork, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + setCurrentFiber(finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + setCurrentFiber(finishedWork); + inProgressLanes = null; + inProgressRoot = null; + } + function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { + var deletions = parentFiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffects(root, parentFiber, childToDelete); + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + } + var prevDebugFiber = getCurrentFiber(); + if (parentFiber.subtreeFlags & MutationMask) { + var child = parentFiber.child; + while (child !== null) { + setCurrentFiber(child); + commitMutationEffectsOnFiber(child, root); + child = child.sibling; + } + } + setCurrentFiber(prevDebugFiber); + } + function commitMutationEffectsOnFiber(finishedWork, root, lanes) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; + + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + try { + commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return); + commitHookEffectListMount(Insertion | HasEffect, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + recordLayoutEffectDuration(finishedWork); + } else { + try { + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case ClassComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + return; + } + case HostComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + return; + } + case HostText: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case HostRoot: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + var containerInfo = root.containerInfo; + var pendingChildren = root.pendingChildren; + try { + replaceContainerChildren(containerInfo, pendingChildren); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case HostPortal: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + var portal = finishedWork.stateNode; + var _containerInfo = portal.containerInfo; + var _pendingChildren = portal.pendingChildren; + try { + replaceContainerChildren(_containerInfo, _pendingChildren); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case SuspenseComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + var offscreenFiber = finishedWork.child; + if (offscreenFiber.flags & Visibility) { + var newState = offscreenFiber.memoizedState; + var isHidden = newState !== null; + if (isHidden) { + var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; + if (!wasHidden) { + markCommitTimeOfFallback(); + } + } + } + if (flags & Update) { + try { + commitSuspenseCallback(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case OffscreenComponent: + { + var _wasHidden = current !== null && current.memoizedState !== null; + { + recursivelyTraverseMutationEffects(root, finishedWork); + } + commitReconciliationEffects(finishedWork); + if (flags & Visibility) { + var _newState = finishedWork.memoizedState; + } + return; + } + case SuspenseListComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case ScopeComponent: + { + return; + } + default: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + if (flags & Placement) { + try { + commitPlacement(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + + finishedWork.flags &= ~Placement; + } + if (flags & Hydrating) { + finishedWork.flags &= ~Hydrating; + } + } + function commitLayoutEffects(finishedWork, root, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + nextEffect = finishedWork; + commitLayoutEffects_begin(finishedWork, root, committedLanes); + inProgressLanes = null; + inProgressRoot = null; + } + function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { + var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes); + } + } + } + function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & LayoutMask) !== NoFlags) { + var current = fiber.alternate; + setCurrentFiber(fiber); + try { + commitLayoutEffectOnFiber(root, current, fiber, committedLanes); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) { + nextEffect = finishedWork; + commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions); + } + function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions); + } + } + } + function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + try { + commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + try { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } finally { + recordPassiveEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } + break; + } + } + } + function commitPassiveUnmountEffects(firstChild) { + nextEffect = firstChild; + commitPassiveUnmountEffects_begin(); + } + function commitPassiveUnmountEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + var child = fiber.child; + if ((nextEffect.flags & ChildDeletion) !== NoFlags) { + var deletions = fiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + nextEffect = fiberToDelete; + commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); + } + { + var previousFiber = fiber.alternate; + if (previousFiber !== null) { + var detachedChild = previousFiber.child; + if (detachedChild !== null) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (detachedChild !== null); + } + } + } + nextEffect = fiber; + } + } + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffects_complete(); + } + } + } + function commitPassiveUnmountEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + commitPassiveUnmountOnFiber(fiber); + resetCurrentFiber(); + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveUnmountOnFiber(finishedWork) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + recordPassiveEffectDuration(finishedWork); + } else { + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + } + break; + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { + while (nextEffect !== null) { + var fiber = nextEffect; + + setCurrentFiber(fiber); + commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); + resetCurrentFiber(); + var child = fiber.child; + + if (child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot); + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) { + while (nextEffect !== null) { + var fiber = nextEffect; + var sibling = fiber.sibling; + var returnFiber = fiber.return; + { + detachFiberAfterEffects(fiber); + if (fiber === deletedSubtreeRoot) { + nextEffect = null; + return; + } + } + if (sibling !== null) { + sibling.return = returnFiber; + nextEffect = sibling; + return; + } + nextEffect = returnFiber; + } + } + function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) { + switch (current.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (current.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + recordPassiveEffectDuration(current); + } else { + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + } + break; + } + } + } + + var COMPONENT_TYPE = 0; + var HAS_PSEUDO_CLASS_TYPE = 1; + var ROLE_TYPE = 2; + var TEST_NAME_TYPE = 3; + var TEXT_TYPE = 4; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + COMPONENT_TYPE = symbolFor("selector.component"); + HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); + ROLE_TYPE = symbolFor("selector.role"); + TEST_NAME_TYPE = symbolFor("selector.test_id"); + TEXT_TYPE = symbolFor("selector.text"); + } + var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; + function isLegacyActEnvironment(fiber) { + { + var isReactActEnvironmentGlobal = + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; + return warnsIfNotActing; + } + } + function isConcurrentActEnvironment() { + { + var isReactActEnvironmentGlobal = + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; + if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { + error("The current testing environment is not configured to support " + "act(...)"); + } + return isReactActEnvironmentGlobal; + } + } + var ceil = Math.ceil; + var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; + var NoContext = + 0; + var BatchedContext = + 1; + var RenderContext = + 2; + var CommitContext = + 4; + var RootInProgress = 0; + var RootFatalErrored = 1; + var RootErrored = 2; + var RootSuspended = 3; + var RootSuspendedWithDelay = 4; + var RootCompleted = 5; + var RootDidNotComplete = 6; + + var executionContext = NoContext; + + var workInProgressRoot = null; + + var workInProgress = null; + + var workInProgressRootRenderLanes = NoLanes; + + var subtreeRenderLanes = NoLanes; + var subtreeRenderLanesCursor = createCursor(NoLanes); + + var workInProgressRootExitStatus = RootInProgress; + + var workInProgressRootFatalError = null; + + var workInProgressRootIncludedLanes = NoLanes; + + var workInProgressRootSkippedLanes = NoLanes; + + var workInProgressRootInterleavedUpdatedLanes = NoLanes; + + var workInProgressRootPingedLanes = NoLanes; + + var workInProgressRootConcurrentErrors = null; + + var workInProgressRootRecoverableErrors = null; + + var globalMostRecentFallbackTime = 0; + var FALLBACK_THROTTLE_MS = 500; + + var workInProgressRootRenderTargetTime = Infinity; + + var RENDER_TIMEOUT_MS = 500; + var workInProgressTransitions = null; + function resetRenderTimer() { + workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + } + function getRenderTargetTime() { + return workInProgressRootRenderTargetTime; + } + var hasUncaughtError = false; + var firstUncaughtError = null; + var legacyErrorBoundariesThatAlreadyFailed = null; + var rootDoesHavePassiveEffects = false; + var rootWithPendingPassiveEffects = null; + var pendingPassiveEffectsLanes = NoLanes; + var pendingPassiveProfilerEffects = []; + var pendingPassiveTransitions = null; + + var NESTED_UPDATE_LIMIT = 50; + var nestedUpdateCount = 0; + var rootWithNestedUpdates = null; + var isFlushingPassiveEffects = false; + var didScheduleUpdateDuringPassiveEffects = false; + var NESTED_PASSIVE_UPDATE_LIMIT = 50; + var nestedPassiveUpdateCount = 0; + var rootWithPassiveNestedUpdates = null; + + var currentEventTime = NoTimestamp; + var currentEventTransitionLane = NoLanes; + var isRunningInsertionEffect = false; + function getWorkInProgressRoot() { + return workInProgressRoot; + } + function requestEventTime() { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + return now(); + } + + if (currentEventTime !== NoTimestamp) { + return currentEventTime; + } + + currentEventTime = now(); + return currentEventTime; + } + function requestUpdateLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { + return pickArbitraryLane(workInProgressRootRenderLanes); + } + var isTransition = requestCurrentTransition() !== NoTransition; + if (isTransition) { + if (ReactCurrentBatchConfig$2.transition !== null) { + var transition = ReactCurrentBatchConfig$2.transition; + if (!transition._updatedFibers) { + transition._updatedFibers = new Set(); + } + transition._updatedFibers.add(fiber); + } + + if (currentEventTransitionLane === NoLane) { + currentEventTransitionLane = claimNextTransitionLane(); + } + return currentEventTransitionLane; + } + + var updateLane = getCurrentUpdatePriority(); + if (updateLane !== NoLane) { + return updateLane; + } + + var eventLane = getCurrentEventPriority(); + return eventLane; + } + function requestRetryLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } + return claimNextRetryLane(); + } + function scheduleUpdateOnFiber(fiber, lane, eventTime) { + checkForNestedUpdates(); + { + if (isRunningInsertionEffect) { + error("useInsertionEffect must not schedule updates."); + } + } + var root = markUpdateLaneFromFiberToRoot(fiber, lane); + if (root === null) { + return null; + } + { + if (isFlushingPassiveEffects) { + didScheduleUpdateDuringPassiveEffects = true; + } + } + + markRootUpdated(root, lane, eventTime); + if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { + warnAboutRenderPhaseUpdatesInDEV(fiber); + } else { + { + if (isDevToolsPresent) { + addFiberToLanesMap(root, fiber, lane); + } + } + warnIfUpdatesNotWrappedWithActDEV(fiber); + if (root === workInProgressRoot) { + if ((executionContext & RenderContext) === NoContext) { + workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); + } + if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + markRootSuspended$1(root, workInProgressRootRenderLanes); + } + } + ensureRootIsScheduled(root, eventTime); + if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + return root; + } + + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); + var alternate = sourceFiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, lane); + } + { + if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + + var node = sourceFiber; + var parent = sourceFiber.return; + while (parent !== null) { + parent.childLanes = mergeLanes(parent.childLanes, lane); + alternate = parent.alternate; + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, lane); + } else { + { + if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + } + node = parent; + parent = parent.return; + } + if (node.tag === HostRoot) { + var root = node.stateNode; + return root; + } else { + return null; + } + } + function isInterleavedUpdate(fiber, lane) { + return ( + (workInProgressRoot !== null || + hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && + (executionContext & RenderContext) === NoContext + ); + } + + function ensureRootIsScheduled(root, currentTime) { + var existingCallbackNode = root.callbackNode; + + markStarvedLanesAsExpired(root, currentTime); + + var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (nextLanes === NoLanes) { + if (existingCallbackNode !== null) { + cancelCallback$1(existingCallbackNode); + } + root.callbackNode = null; + root.callbackPriority = NoLane; + return; + } + + var newCallbackPriority = getHighestPriorityLane(nextLanes); + + var existingCallbackPriority = root.callbackPriority; + if (existingCallbackPriority === newCallbackPriority && + !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { + { + if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { + error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); + } + } + + return; + } + if (existingCallbackNode != null) { + cancelCallback$1(existingCallbackNode); + } + + var newCallbackNode; + if (newCallbackPriority === SyncLane) { + if (root.tag === LegacyRoot) { + if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { + ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; + } + scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); + } else { + scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); + } + { + scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); + } + newCallbackNode = null; + } else { + var schedulerPriorityLevel; + switch (lanesToEventPriority(nextLanes)) { + case DiscreteEventPriority: + schedulerPriorityLevel = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriorityLevel = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriorityLevel = NormalPriority; + break; + case IdleEventPriority: + schedulerPriorityLevel = IdlePriority; + break; + default: + schedulerPriorityLevel = NormalPriority; + break; + } + newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = newCallbackPriority; + root.callbackNode = newCallbackNode; + } + + function performConcurrentWorkOnRoot(root, didTimeout) { + { + resetNestedUpdateFlag(); + } + + currentEventTime = NoTimestamp; + currentEventTransitionLane = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + + var originalCallbackNode = root.callbackNode; + var didFlushPassiveEffects = flushPassiveEffects(); + if (didFlushPassiveEffects) { + if (root.callbackNode !== originalCallbackNode) { + return null; + } + } + + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (lanes === NoLanes) { + return null; + } + + var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; + var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + if (exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + markRootSuspended$1(root, lanes); + } else { + var renderWasConcurrent = !includesBlockingLane(root, lanes); + var finishedWork = root.current.alternate; + if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { + exitStatus = renderRootSync(root, lanes); + + if (exitStatus === RootErrored) { + var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (_errorRetryLanes !== NoLanes) { + lanes = _errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); + } + } + + if (exitStatus === RootFatalErrored) { + var _fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw _fatalError; + } + } + + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + finishConcurrentRender(root, exitStatus, lanes); + } + } + ensureRootIsScheduled(root, now()); + if (root.callbackNode === originalCallbackNode) { + return performConcurrentWorkOnRoot.bind(null, root); + } + return null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + if (isRootDehydrated(root)) { + var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); + rootWorkInProgress.flags |= ForceClientRender; + { + errorHydratingContainer(root.containerInfo); + } + } + var exitStatus = renderRootSync(root, errorRetryLanes); + if (exitStatus !== RootErrored) { + var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorsFromFirstAttempt; + + if (errorsFromSecondAttempt !== null) { + queueRecoverableErrors(errorsFromSecondAttempt); + } + } + return exitStatus; + } + function queueRecoverableErrors(errors) { + if (workInProgressRootRecoverableErrors === null) { + workInProgressRootRecoverableErrors = errors; + } else { + workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + } + function finishConcurrentRender(root, exitStatus, lanes) { + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + { + throw new Error("Root did not complete. This is a bug in React."); + } + + case RootErrored: + { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspended: + { + markRootSuspended$1(root, lanes); + + if (includesOnlyRetries(lanes) && + !shouldForceFlushFallbacksInDEV()) { + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); + + if (msUntilTimeout > 10) { + var nextLanes = getNextLanes(root, NoLanes); + if (nextLanes !== NoLanes) { + break; + } + var suspendedLanes = root.suspendedLanes; + if (!isSubsetOfLanes(suspendedLanes, lanes)) { + var eventTime = requestEventTime(); + markRootPinged(root, suspendedLanes); + break; + } + + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); + break; + } + } + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspendedWithDelay: + { + markRootSuspended$1(root, lanes); + if (includesOnlyTransitions(lanes)) { + break; + } + if (!shouldForceFlushFallbacksInDEV()) { + var mostRecentEventTime = getMostRecentEventTime(root, lanes); + var eventTimeMs = mostRecentEventTime; + var timeElapsedMs = now() - eventTimeMs; + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; + + if (_msUntilTimeout > 10) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); + break; + } + } + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootCompleted: + { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + default: + { + throw new Error("Unknown root exit status."); + } + } + } + function isRenderConsistentWithExternalStores(finishedWork) { + var node = finishedWork; + while (true) { + if (node.flags & StoreConsistency) { + var updateQueue = node.updateQueue; + if (updateQueue !== null) { + var checks = updateQueue.stores; + if (checks !== null) { + for (var i = 0; i < checks.length; i++) { + var check = checks[i]; + var getSnapshot = check.getSnapshot; + var renderedValue = check.value; + try { + if (!objectIs(getSnapshot(), renderedValue)) { + return false; + } + } catch (error) { + return false; + } + } + } + } + } + var child = node.child; + if (node.subtreeFlags & StoreConsistency && child !== null) { + child.return = node; + node = child; + continue; + } + if (node === finishedWork) { + return true; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return true; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + + return true; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); + markRootSuspended(root, suspendedLanes); + } + + function performSyncWorkOnRoot(root) { + { + syncNestedUpdateFlag(); + } + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + flushPassiveEffects(); + var lanes = getNextLanes(root, NoLanes); + if (!includesSomeLane(lanes, SyncLane)) { + ensureRootIsScheduled(root, now()); + return null; + } + var exitStatus = renderRootSync(root, lanes); + if (root.tag !== LegacyRoot && exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + throw new Error("Root did not complete. This is a bug in React."); + } + + var finishedWork = root.current.alternate; + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + + ensureRootIsScheduled(root, now()); + return null; + } + function batchedUpdates$1(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext && + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + } + + function flushSync(fn) { + if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { + flushPassiveEffects(); + } + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + if (fn) { + return fn(); + } else { + return undefined; + } + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + executionContext = prevExecutionContext; + + if ((executionContext & (RenderContext | CommitContext)) === NoContext) { + flushSyncCallbacks(); + } + } + } + function pushRenderLanes(fiber, lanes) { + push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber); + subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes); + workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes); + } + function popRenderLanes(fiber) { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor, fiber); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = NoLanes; + var timeoutHandle = root.timeoutHandle; + if (timeoutHandle !== noTimeout) { + root.timeoutHandle = noTimeout; + + cancelTimeout(timeoutHandle); + } + if (workInProgress !== null) { + var interruptedWork = workInProgress.return; + while (interruptedWork !== null) { + var current = interruptedWork.alternate; + unwindInterruptedWork(current, interruptedWork); + interruptedWork = interruptedWork.return; + } + } + workInProgressRoot = root; + var rootWorkInProgress = createWorkInProgress(root.current, null); + workInProgress = rootWorkInProgress; + workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes; + workInProgressRootExitStatus = RootInProgress; + workInProgressRootFatalError = null; + workInProgressRootSkippedLanes = NoLanes; + workInProgressRootInterleavedUpdatedLanes = NoLanes; + workInProgressRootPingedLanes = NoLanes; + workInProgressRootConcurrentErrors = null; + workInProgressRootRecoverableErrors = null; + enqueueInterleavedUpdates(); + { + ReactStrictModeWarnings.discardPendingWarnings(); + } + return rootWorkInProgress; + } + function handleError(root, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + resetHooksAfterThrow(); + resetCurrentFiber(); + + ReactCurrentOwner$2.current = null; + if (erroredWork === null || erroredWork.return === null) { + workInProgressRootExitStatus = RootFatalErrored; + workInProgressRootFatalError = thrownValue; + + workInProgress = null; + return; + } + if (enableProfilerTimer && erroredWork.mode & ProfileMode) { + stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); + } + if (enableSchedulingProfiler) { + markComponentRenderStopped(); + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + var wakeable = thrownValue; + markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes); + } else { + markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); + } + } + throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + if (workInProgress === erroredWork && erroredWork !== null) { + erroredWork = erroredWork.return; + workInProgress = erroredWork; + } else { + erroredWork = workInProgress; + } + continue; + } + + return; + } while (true); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + if (prevDispatcher === null) { + return ContextOnlyDispatcher; + } else { + return prevDispatcher; + } + } + function popDispatcher(prevDispatcher) { + ReactCurrentDispatcher$2.current = prevDispatcher; + } + function markCommitTimeOfFallback() { + globalMostRecentFallbackTime = now(); + } + function markSkippedUpdateLanes(lane) { + workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); + } + function renderDidSuspend() { + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootSuspended; + } + } + function renderDidSuspendDelayIfPossible() { + if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { + workInProgressRootExitStatus = RootSuspendedWithDelay; + } + + if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { + markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + } + function renderDidError(error) { + if (workInProgressRootExitStatus !== RootSuspendedWithDelay) { + workInProgressRootExitStatus = RootErrored; + } + if (workInProgressRootConcurrentErrors === null) { + workInProgressRootConcurrentErrors = [error]; + } else { + workInProgressRootConcurrentErrors.push(error); + } + } + + function renderHasNotSuspendedYet() { + return workInProgressRootExitStatus === RootInProgress; + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } + + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + if (workInProgress !== null) { + throw new Error("Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); + } + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + return workInProgressRootExitStatus; + } + + function workLoopSync() { + while (workInProgress !== null) { + performUnitOfWork(workInProgress); + } + } + function renderRootConcurrent(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } + + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + resetRenderTimer(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + popDispatcher(prevDispatcher); + executionContext = prevExecutionContext; + if (workInProgress !== null) { + return RootInProgress; + } else { + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + + return workInProgressRootExitStatus; + } + } + + function workLoopConcurrent() { + while (workInProgress !== null && !shouldYield()) { + performUnitOfWork(workInProgress); + } + } + function performUnitOfWork(unitOfWork) { + var current = unitOfWork.alternate; + setCurrentFiber(unitOfWork); + var next; + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + startProfilerTimer(unitOfWork); + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); + } else { + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + } + resetCurrentFiber(); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + if (next === null) { + completeUnitOfWork(unitOfWork); + } else { + workInProgress = next; + } + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + var returnFiber = completedWork.return; + + if ((completedWork.flags & Incomplete) === NoFlags) { + setCurrentFiber(completedWork); + var next = void 0; + if ((completedWork.mode & ProfileMode) === NoMode) { + next = completeWork(current, completedWork, subtreeRenderLanes); + } else { + startProfilerTimer(completedWork); + next = completeWork(current, completedWork, subtreeRenderLanes); + + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + } + resetCurrentFiber(); + if (next !== null) { + workInProgress = next; + return; + } + } else { + var _next = unwindWork(current, completedWork); + + if (_next !== null) { + _next.flags &= HostEffectMask; + workInProgress = _next; + return; + } + if ((completedWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + + var actualDuration = completedWork.actualDuration; + var child = completedWork.child; + while (child !== null) { + actualDuration += child.actualDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + } + if (returnFiber !== null) { + returnFiber.flags |= Incomplete; + returnFiber.subtreeFlags = NoFlags; + returnFiber.deletions = null; + } else { + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + return; + } + } + var siblingFiber = completedWork.sibling; + if (siblingFiber !== null) { + workInProgress = siblingFiber; + return; + } + + completedWork = returnFiber; + + workInProgress = completedWork; + } while (completedWork !== null); + + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootCompleted; + } + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition; + setCurrentUpdatePriority(previousUpdateLanePriority); + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + flushPassiveEffects(); + } while (rootWithPendingPassiveEffects !== null); + flushRenderPhaseStrictModeWarningsInDEV(); + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + var finishedWork = root.finishedWork; + var lanes = root.finishedLanes; + if (finishedWork === null) { + return null; + } else { + { + if (lanes === NoLanes) { + error("root.finishedLanes should not be empty during a commit. This is a " + "bug in React."); + } + } + } + root.finishedWork = null; + root.finishedLanes = NoLanes; + if (finishedWork === root.current) { + throw new Error("Cannot commit the same tree as before. This error is likely caused by " + "a bug in React. Please file an issue."); + } + + root.callbackNode = null; + root.callbackPriority = NoLane; + + var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); + markRootFinished(root, remainingLanes); + if (root === workInProgressRoot) { + workInProgressRoot = null; + workInProgress = null; + workInProgressRootRenderLanes = NoLanes; + } + + if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + + pendingPassiveTransitions = transitions; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); + + return null; + }); + } + } + + var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + if (subtreeHasEffects || rootHasEffect) { + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + + ReactCurrentOwner$2.current = null; + + var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork); + { + recordCommitTime(); + } + commitMutationEffects(root, finishedWork, lanes); + resetAfterCommit(root.containerInfo); + + root.current = finishedWork; + + commitLayoutEffects(finishedWork, root, lanes); + + requestPaint(); + executionContext = prevExecutionContext; + + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } else { + root.current = finishedWork; + + { + recordCommitTime(); + } + } + if (rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = false; + rootWithPendingPassiveEffects = root; + pendingPassiveEffectsLanes = lanes; + } else { + { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + } + } + + remainingLanes = root.pendingLanes; + + if (remainingLanes === NoLanes) { + legacyErrorBoundariesThatAlreadyFailed = null; + } + onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + { + if (isDevToolsPresent) { + root.memoizedUpdaters.clear(); + } + } + + ensureRootIsScheduled(root, now()); + if (recoverableErrors !== null) { + var onRecoverableError = root.onRecoverableError; + for (var i = 0; i < recoverableErrors.length; i++) { + var recoverableError = recoverableErrors[i]; + onRecoverableError(recoverableError); + } + } + if (hasUncaughtError) { + hasUncaughtError = false; + var error$1 = firstUncaughtError; + firstUncaughtError = null; + throw error$1; + } + + if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { + flushPassiveEffects(); + } + + remainingLanes = root.pendingLanes; + if (includesSomeLane(remainingLanes, SyncLane)) { + { + markNestedUpdateScheduled(); + } + + if (root === rootWithNestedUpdates) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + rootWithNestedUpdates = root; + } + } else { + nestedUpdateCount = 0; + } + + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (rootWithPendingPassiveEffects !== null) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); + var priority = lowerEventPriority(DefaultEventPriority, renderPriority); + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(priority); + return flushPassiveEffectsImpl(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + + return false; + } + function enqueuePendingPassiveProfilerEffect(fiber) { + { + pendingPassiveProfilerEffects.push(fiber); + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); + return null; + }); + } + } + } + function flushPassiveEffectsImpl() { + if (rootWithPendingPassiveEffects === null) { + return false; + } + + var transitions = pendingPassiveTransitions; + pendingPassiveTransitions = null; + var root = rootWithPendingPassiveEffects; + var lanes = pendingPassiveEffectsLanes; + rootWithPendingPassiveEffects = null; + + pendingPassiveEffectsLanes = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Cannot flush passive effects while already rendering."); + } + { + isFlushingPassiveEffects = true; + didScheduleUpdateDuringPassiveEffects = false; + } + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitPassiveUnmountEffects(root.current); + commitPassiveMountEffects(root, root.current, lanes, transitions); + + { + var profilerEffects = pendingPassiveProfilerEffects; + pendingPassiveProfilerEffects = []; + for (var i = 0; i < profilerEffects.length; i++) { + var _fiber = profilerEffects[i]; + commitPassiveEffectDurations(root, _fiber); + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + { + if (didScheduleUpdateDuringPassiveEffects) { + if (root === rootWithPassiveNestedUpdates) { + nestedPassiveUpdateCount++; + } else { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = root; + } + } else { + nestedPassiveUpdateCount = 0; + } + isFlushingPassiveEffects = false; + didScheduleUpdateDuringPassiveEffects = false; + } + + onPostCommitRoot(root); + { + var stateNode = root.current.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + return true; + } + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + function prepareToThrowUncaughtError(error) { + if (!hasUncaughtError) { + hasUncaughtError = true; + firstUncaughtError = error; + } + } + var onUncaughtError = prepareToThrowUncaughtError; + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + var errorInfo = createCapturedValue(error, sourceFiber); + var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); + enqueueUpdate(rootFiber, update); + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { + { + reportUncaughtErrorInDEV(error$1); + setIsRunningInsertionEffect(false); + } + if (sourceFiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); + return; + } + var fiber = null; + { + fiber = sourceFiber.return; + } + while (fiber !== null) { + if (fiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1); + return; + } else if (fiber.tag === ClassComponent) { + var ctor = fiber.type; + var instance = fiber.stateNode; + if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValue(error$1, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); + enqueueUpdate(fiber, update); + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + return; + } + } + fiber = fiber.return; + } + { + error("Internal React error: Attempted to capture a commit phase error " + "inside a detached tree. This indicates a bug in React. Likely " + "causes include deleting the same fiber more than once, committing an " + "already-finished tree, or an inconsistent return pointer.\n\n" + "Error message:\n\n%s", error$1); + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + if (pingCache !== null) { + pingCache.delete(wakeable); + } + var eventTime = requestEventTime(); + markRootPinged(root, pingedLanes); + warnIfSuspenseResolutionNotWrappedWithActDEV(root); + if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + prepareFreshStack(root, NoLanes); + } else { + workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); + } + } + ensureRootIsScheduled(root, eventTime); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + if (retryLane === NoLane) { + retryLane = requestRetryLane(boundaryFiber); + } + + var eventTime = requestEventTime(); + var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + if (root !== null) { + markRootUpdated(root, retryLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState; + var retryLane = NoLane; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = NoLane; + + var retryCache; + switch (boundaryFiber.tag) { + case SuspenseComponent: + retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + break; + case SuspenseListComponent: + retryCache = boundaryFiber.stateNode; + break; + default: + throw new Error("Pinged unknown suspense boundary type. " + "This is probably a bug in React."); + } + if (retryCache !== null) { + retryCache.delete(wakeable); + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + + function jnd(timeElapsed) { + return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + } + function checkForNestedUpdates() { + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + nestedUpdateCount = 0; + rootWithNestedUpdates = null; + throw new Error("Maximum update depth exceeded. This can happen when a component " + "repeatedly calls setState inside componentWillUpdate or " + "componentDidUpdate. React limits the number of nested updates to " + "prevent infinite loops."); + } + { + if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + error("Maximum update depth exceeded. This can happen when a component " + "calls setState inside useEffect, but useEffect either doesn't " + "have a dependency array, or one of the dependencies changes on " + "every render."); + } + } + } + function flushRenderPhaseStrictModeWarningsInDEV() { + { + ReactStrictModeWarnings.flushLegacyContextWarning(); + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + } + } + } + var didWarnStateUpdateForNotYetMountedComponent = null; + function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { + { + if ((executionContext & RenderContext) !== NoContext) { + return; + } + if (!(fiber.mode & ConcurrentMode)) { + return; + } + var tag = fiber.tag; + if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { + return; + } + + var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; + if (didWarnStateUpdateForNotYetMountedComponent !== null) { + if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) { + return; + } + didWarnStateUpdateForNotYetMountedComponent.add(componentName); + } else { + didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]); + } + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("Can't perform a React state update on a component that hasn't mounted yet. " + "This indicates that you have a side-effect in your render function that " + "asynchronously later calls tries to update the component. Move this work to " + "useEffect instead."); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + var beginWork$1; + { + var dummyFiber = null; + beginWork$1 = function beginWork$1(current, unitOfWork, lanes) { + var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); + try { + return beginWork(current, unitOfWork, lanes); + } catch (originalError) { + if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === "object" && typeof originalError.then === "function") { + throw originalError; + } + + resetContextDependencies(); + resetHooksAfterThrow(); + + unwindInterruptedWork(current, unitOfWork); + + assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); + if (unitOfWork.mode & ProfileMode) { + startProfilerTimer(unitOfWork); + } + + invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + if (hasCaughtError()) { + var replayError = clearCaughtError(); + if (typeof replayError === "object" && replayError !== null && replayError._suppressLogging && typeof originalError === "object" && originalError !== null && !originalError._suppressLogging) { + originalError._suppressLogging = true; + } + } + + throw originalError; + } + }; + } + var didWarnAboutUpdateInRender = false; + var didWarnAboutUpdateInRenderForAnotherComponent; + { + didWarnAboutUpdateInRenderForAnotherComponent = new Set(); + } + function warnAboutRenderPhaseUpdatesInDEV(fiber) { + { + if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) { + switch (fiber.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; + + var dedupeKey = renderingComponentName; + if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { + didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); + var setStateComponentName = getComponentNameFromFiber(fiber) || "Unknown"; + error("Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName); + } + break; + } + case ClassComponent: + { + if (!didWarnAboutUpdateInRender) { + error("Cannot update during an existing state transition (such as " + "within `render`). Render methods should be a pure " + "function of props and state."); + didWarnAboutUpdateInRender = true; + } + break; + } + } + } + } + } + function restorePendingUpdaters(root, lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + memoizedUpdaters.forEach(function (schedulingFiber) { + addFiberToLanesMap(root, schedulingFiber, lanes); + }); + } + } + } + + var fakeActCallbackNode = {}; + function scheduleCallback$1(priorityLevel, callback) { + { + var actQueue = ReactCurrentActQueue$1.current; + if (actQueue !== null) { + actQueue.push(callback); + return fakeActCallbackNode; + } else { + return scheduleCallback(priorityLevel, callback); + } + } + } + function cancelCallback$1(callbackNode) { + if (callbackNode === fakeActCallbackNode) { + return; + } + + return cancelCallback(callbackNode); + } + function shouldForceFlushFallbacksInDEV() { + return ReactCurrentActQueue$1.current !== null; + } + function warnIfUpdatesNotWrappedWithActDEV(fiber) { + { + if (fiber.mode & ConcurrentMode) { + if (!isConcurrentActEnvironment()) { + return; + } + } else { + if (!isLegacyActEnvironment()) { + return; + } + if (executionContext !== NoContext) { + return; + } + if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { + return; + } + } + if (ReactCurrentActQueue$1.current === null) { + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("An update to %s inside a test was not wrapped in act(...).\n\n" + "When testing, code that causes React state updates should be " + "wrapped into act(...):\n\n" + "act(() => {\n" + " /* fire events that update state */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + } + function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { + { + if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) { + error("A suspended resource finished loading inside a test, but the event " + "was not wrapped in act(...).\n\n" + "When testing, code that resolves suspended data should be wrapped " + "into act(...):\n\n" + "act(() => {\n" + " /* finish loading suspended data */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act"); + } + } + } + function setIsRunningInsertionEffect(isRunning) { + { + isRunningInsertionEffect = isRunning; + } + } + + var resolveFamily = null; + + var failedBoundaries = null; + var setRefreshHandler = function setRefreshHandler(handler) { + { + resolveFamily = handler; + } + }; + function resolveFunctionForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === undefined) { + return type; + } + + return family.current; + } + } + function resolveClassForHotReloading(type) { + return resolveFunctionForHotReloading(type); + } + function resolveForwardRefForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === undefined) { + if (type !== null && type !== undefined && typeof type.render === "function") { + var currentRender = resolveFunctionForHotReloading(type.render); + if (type.render !== currentRender) { + var syntheticType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: currentRender + }; + if (type.displayName !== undefined) { + syntheticType.displayName = type.displayName; + } + return syntheticType; + } + } + return type; + } + + return family.current; + } + } + function isCompatibleFamilyForHotReloading(fiber, element) { + { + if (resolveFamily === null) { + return false; + } + var prevType = fiber.elementType; + var nextType = element.type; + + var needsCompareFamilies = false; + var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; + switch (fiber.tag) { + case ClassComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } + break; + } + case FunctionComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case ForwardRef: + { + if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case MemoComponent: + case SimpleMemoComponent: + { + if ($$typeofNextType === REACT_MEMO_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + default: + return false; + } + + if (needsCompareFamilies) { + var prevFamily = resolveFamily(prevType); + if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { + return true; + } + } + return false; + } + } + function markFailedErrorBoundaryForHotReloading(fiber) { + { + if (resolveFamily === null) { + return; + } + if (typeof WeakSet !== "function") { + return; + } + if (failedBoundaries === null) { + failedBoundaries = new WeakSet(); + } + failedBoundaries.add(fiber); + } + } + var scheduleRefresh = function scheduleRefresh(root, update) { + { + if (resolveFamily === null) { + return; + } + var staleFamilies = update.staleFamilies, + updatedFamilies = update.updatedFamilies; + flushPassiveEffects(); + flushSync(function () { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }; + var scheduleRoot = function scheduleRoot(root, element) { + { + if (root.context !== emptyContextObject) { + return; + } + flushPassiveEffects(); + flushSync(function () { + updateContainer(element, root, null, null); + }); + } + }; + function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { + { + var alternate = fiber.alternate, + child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + if (resolveFamily === null) { + throw new Error("Expected resolveFamily to be set during hot reload."); + } + var needsRender = false; + var needsRemount = false; + if (candidateType !== null) { + var family = resolveFamily(candidateType); + if (family !== undefined) { + if (staleFamilies.has(family)) { + needsRemount = true; + } else if (updatedFamilies.has(family)) { + if (tag === ClassComponent) { + needsRemount = true; + } else { + needsRender = true; + } + } + } + } + if (failedBoundaries !== null) { + if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { + needsRemount = true; + } + } + if (needsRemount) { + fiber._debugNeedsRemount = true; + } + if (needsRemount || needsRender) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + if (child !== null && !needsRemount) { + scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); + } + if (sibling !== null) { + scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); + } + } + } + var findHostInstancesForRefresh = function findHostInstancesForRefresh(root, families) { + { + var hostInstances = new Set(); + var types = new Set(families.map(function (family) { + return family.current; + })); + findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); + return hostInstances; + } + }; + function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { + { + var child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + var didMatch = false; + if (candidateType !== null) { + if (types.has(candidateType)) { + didMatch = true; + } + } + if (didMatch) { + findHostInstancesForFiberShallowly(fiber, hostInstances); + } else { + if (child !== null) { + findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); + } + } + if (sibling !== null) { + findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); + } + } + } + function findHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); + if (foundHostInstances) { + return; + } + + var node = fiber; + while (true) { + switch (node.tag) { + case HostComponent: + hostInstances.add(node.stateNode); + return; + case HostPortal: + hostInstances.add(node.stateNode.containerInfo); + return; + case HostRoot: + hostInstances.add(node.stateNode.containerInfo); + return; + } + if (node.return === null) { + throw new Error("Expected to reach root first."); + } + node = node.return; + } + } + } + function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var node = fiber; + var foundHostInstances = false; + while (true) { + if (node.tag === HostComponent) { + foundHostInstances = true; + hostInstances.add(node.stateNode); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return foundHostInstances; + } + while (node.sibling === null) { + if (node.return === null || node.return === fiber) { + return foundHostInstances; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return false; + } + var hasBadMapPolyfill; + { + hasBadMapPolyfill = false; + try { + var nonExtensibleObject = Object.preventExtensions({}); + + new Map([[nonExtensibleObject, null]]); + new Set([nonExtensibleObject]); + } catch (e) { + hasBadMapPolyfill = true; + } + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.elementType = null; + this.type = null; + this.stateNode = null; + + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.dependencies = null; + this.mode = mode; + + this.flags = NoFlags; + this.subtreeFlags = NoFlags; + this.deletions = null; + this.lanes = NoLanes; + this.childLanes = NoLanes; + this.alternate = null; + { + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; + + this.actualDuration = 0; + this.actualStartTime = -1; + this.selfBaseDuration = 0; + this.treeBaseDuration = 0; + } + { + this._debugSource = null; + this._debugOwner = null; + this._debugNeedsRemount = false; + this._debugHookTypes = null; + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } + } + } + + var createFiber = function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + }; + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function isSimpleFunctionComponent(type) { + return typeof type === "function" && !shouldConstruct(type) && type.defaultProps === undefined; + } + function resolveLazyComponentTag(Component) { + if (typeof Component === "function") { + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; + } else if (Component !== undefined && Component !== null) { + var $$typeof = Component.$$typeof; + if ($$typeof === REACT_FORWARD_REF_TYPE) { + return ForwardRef; + } + if ($$typeof === REACT_MEMO_TYPE) { + return MemoComponent; + } + } + return IndeterminateComponent; + } + + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + if (workInProgress === null) { + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.elementType = current.elementType; + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + { + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + workInProgress._debugHookTypes = current._debugHookTypes; + } + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; + + workInProgress.type = current.type; + + workInProgress.flags = NoFlags; + + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + { + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = -1; + } + } + + workInProgress.flags = current.flags & StaticMask; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + { + workInProgress._debugNeedsRemount = current._debugNeedsRemount; + switch (workInProgress.tag) { + case IndeterminateComponent: + case FunctionComponent: + case SimpleMemoComponent: + workInProgress.type = resolveFunctionForHotReloading(current.type); + break; + case ClassComponent: + workInProgress.type = resolveClassForHotReloading(current.type); + break; + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; + } + } + return workInProgress; + } + + function resetWorkInProgress(workInProgress, renderLanes) { + workInProgress.flags &= StaticMask | Placement; + + var current = workInProgress.alternate; + if (current === null) { + workInProgress.childLanes = NoLanes; + workInProgress.lanes = renderLanes; + workInProgress.child = null; + workInProgress.subtreeFlags = NoFlags; + workInProgress.memoizedProps = null; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.dependencies = null; + workInProgress.stateNode = null; + { + workInProgress.selfBaseDuration = 0; + workInProgress.treeBaseDuration = 0; + } + } else { + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + + workInProgress.type = current.type; + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + } + return workInProgress; + } + function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) { + var mode; + if (tag === ConcurrentRoot) { + mode = ConcurrentMode; + if (isStrictMode === true) { + mode |= StrictLegacyMode; + } + } else { + mode = NoMode; + } + if (isDevToolsPresent) { + mode |= ProfileMode; + } + return createFiber(HostRoot, null, null, mode); + } + function createFiberFromTypeAndProps(type, + key, pendingProps, owner, mode, lanes) { + var fiberTag = IndeterminateComponent; + + var resolvedType = type; + if (typeof type === "function") { + if (shouldConstruct(type)) { + fiberTag = ClassComponent; + { + resolvedType = resolveClassForHotReloading(resolvedType); + } + } else { + { + resolvedType = resolveFunctionForHotReloading(resolvedType); + } + } + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + getTag: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictLegacyMode; + break; + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_TYPE: + return createFiberFromSuspense(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_LIST_TYPE: + return createFiberFromSuspenseList(pendingProps, mode, lanes, key); + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + case REACT_LEGACY_HIDDEN_TYPE: + + case REACT_SCOPE_TYPE: + + case REACT_CACHE_TYPE: + + case REACT_TRACING_MARKER_TYPE: + + case REACT_DEBUG_TRACING_MODE_TYPE: + + default: + { + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = ContextProvider; + break getTag; + case REACT_CONTEXT_TYPE: + fiberTag = ContextConsumer; + break getTag; + case REACT_FORWARD_REF_TYPE: + fiberTag = ForwardRef; + { + resolvedType = resolveForwardRefForHotReloading(resolvedType); + } + break getTag; + case REACT_MEMO_TYPE: + fiberTag = MemoComponent; + break getTag; + case REACT_LAZY_TYPE: + fiberTag = LazyComponent; + resolvedType = null; + break getTag; + } + } + var info = ""; + { + if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; + } + var ownerName = owner ? getComponentNameFromFiber(owner) : null; + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + throw new Error("Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + ("but got: " + (type == null ? type : typeof type) + "." + info)); + } + } + } + var fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.elementType = type; + fiber.type = resolvedType; + fiber.lanes = lanes; + { + fiber._debugOwner = owner; + } + return fiber; + } + function createFiberFromElement(element, mode, lanes) { + var owner = null; + { + owner = element._owner; + } + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes); + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + return fiber; + } + function createFiberFromFragment(elements, mode, lanes, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromProfiler(pendingProps, mode, lanes, key) { + { + if (typeof pendingProps.id !== "string") { + error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id); + } + } + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.elementType = REACT_PROFILER_TYPE; + fiber.lanes = lanes; + { + fiber.stateNode = { + effectDuration: 0, + passiveEffectDuration: 0 + }; + } + return fiber; + } + function createFiberFromSuspense(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromSuspenseList(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_LIST_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); + fiber.elementType = REACT_OFFSCREEN_TYPE; + fiber.lanes = lanes; + var primaryChildInstance = {}; + fiber.stateNode = primaryChildInstance; + return fiber; + } + function createFiberFromText(content, mode, lanes) { + var fiber = createFiber(HostText, content, null, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromPortal(portal, mode, lanes) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.lanes = lanes; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return fiber; + } + + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + target = createFiber(IndeterminateComponent, null, null, NoMode); + } + + target.tag = source.tag; + target.key = source.key; + target.elementType = source.elementType; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.dependencies = source.dependencies; + target.mode = source.mode; + target.flags = source.flags; + target.subtreeFlags = source.subtreeFlags; + target.deletions = source.deletions; + target.lanes = source.lanes; + target.childLanes = source.childLanes; + target.alternate = source.alternate; + { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseDuration = source.selfBaseDuration; + target.treeBaseDuration = source.treeBaseDuration; + } + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugNeedsRemount = source._debugNeedsRemount; + target._debugHookTypes = source._debugHookTypes; + return target; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.pendingChildren = null; + this.current = null; + this.pingCache = null; + this.finishedWork = null; + this.timeoutHandle = noTimeout; + this.context = null; + this.pendingContext = null; + this.callbackNode = null; + this.callbackPriority = NoLane; + this.eventTimes = createLaneMap(NoLanes); + this.expirationTimes = createLaneMap(NoTimestamp); + this.pendingLanes = NoLanes; + this.suspendedLanes = NoLanes; + this.pingedLanes = NoLanes; + this.expiredLanes = NoLanes; + this.mutableReadLanes = NoLanes; + this.finishedLanes = NoLanes; + this.entangledLanes = NoLanes; + this.entanglements = createLaneMap(NoLanes); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + { + this.effectDuration = 0; + this.passiveEffectDuration = 0; + } + { + this.memoizedUpdaters = new Set(); + var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = []; + for (var _i = 0; _i < TotalLanes; _i++) { + pendingUpdatersLaneMap.push(new Set()); + } + } + { + switch (tag) { + case ConcurrentRoot: + this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; + break; + case LegacyRoot: + this._debugRootType = hydrate ? "hydrate()" : "render()"; + break; + } + } + } + function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, + identifierPrefix, onRecoverableError, transitionCallbacks) { + var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); + + var uninitializedFiber = createHostRootFiber(tag, isStrictMode); + root.current = uninitializedFiber; + uninitializedFiber.stateNode = root; + { + var _initialState = { + element: initialChildren, + isDehydrated: hydrate, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }; + uninitializedFiber.memoizedState = _initialState; + } + initializeUpdateQueue(uninitializedFiber); + return root; + } + var ReactVersion = "18.2.0-next-d300cebde-20220601"; + function createPortal(children, containerInfo, + implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + { + checkKeyStringCoercion(key); + } + return { + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + var didWarnAboutNestedUpdates; + var didWarnAboutFindNodeInStrictMode; + { + didWarnAboutNestedUpdates = false; + didWarnAboutFindNodeInStrictMode = {}; + } + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyContextObject; + } + var fiber = get(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + if (fiber.tag === ClassComponent) { + var Component = fiber.type; + if (isContextProvider(Component)) { + return processChildContext(fiber, Component, parentContext); + } + } + return parentContext; + } + function findHostInstanceWithWarning(component, methodName) { + { + var fiber = get(component); + if (fiber === undefined) { + if (typeof component.render === "function") { + throw new Error("Unable to find node on an unmounted component."); + } else { + var keys = Object.keys(component).join(","); + throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys); + } + } + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; + } + if (hostFiber.mode & StrictLegacyMode) { + var componentName = getComponentNameFromFiber(fiber) || "Component"; + if (!didWarnAboutFindNodeInStrictMode[componentName]) { + didWarnAboutFindNodeInStrictMode[componentName] = true; + var previousFiber = current; + try { + setCurrentFiber(hostFiber); + if (fiber.mode & StrictLegacyMode) { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } else { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } + } finally { + if (previousFiber) { + setCurrentFiber(previousFiber); + } else { + resetCurrentFiber(); + } + } + } + } + return hostFiber.stateNode; + } + } + function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) { + var hydrate = false; + var initialChildren = null; + return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); + } + function updateContainer(element, container, parentComponent, callback) { + { + onScheduleRoot(container, element); + } + var current$1 = container.current; + var eventTime = requestEventTime(); + var lane = requestUpdateLane(current$1); + var context = getContextForSubtree(parentComponent); + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + { + if (isRendering && current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + error("Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); + } + } + var update = createUpdate(eventTime, lane); + + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + if (callback !== null) { + { + if (typeof callback !== "function") { + error("render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback); + } + } + update.callback = callback; + } + enqueueUpdate(current$1, update); + var root = scheduleUpdateOnFiber(current$1, lane, eventTime); + if (root !== null) { + entangleTransitions(root, current$1, lane); + } + return lane; + } + function getPublicRootInstance(container) { + var containerFiber = container.current; + if (!containerFiber.child) { + return null; + } + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + default: + return containerFiber.child.stateNode; + } + } + var shouldErrorImpl = function shouldErrorImpl(fiber) { + return null; + }; + function shouldError(fiber) { + return shouldErrorImpl(fiber); + } + var shouldSuspendImpl = function shouldSuspendImpl(fiber) { + return false; + }; + function shouldSuspend(fiber) { + return shouldSuspendImpl(fiber); + } + var overrideHookState = null; + var overrideHookStateDeletePath = null; + var overrideHookStateRenamePath = null; + var overrideProps = null; + var overridePropsDeletePath = null; + var overridePropsRenamePath = null; + var scheduleUpdate = null; + var setErrorHandler = null; + var setSuspenseHandler = null; + { + var copyWithDeleteImpl = function copyWithDeleteImpl(obj, path, index) { + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === path.length) { + if (isArray(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; + } + return updated; + } + + updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); + return updated; + }; + var copyWithDelete = function copyWithDelete(obj, path) { + return copyWithDeleteImpl(obj, path, 0); + }; + var copyWithRenameImpl = function copyWithRenameImpl(obj, oldPath, newPath, index) { + var oldKey = oldPath[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === oldPath.length) { + var newKey = newPath[index]; + + updated[newKey] = updated[oldKey]; + if (isArray(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + updated[oldKey] = copyWithRenameImpl( + obj[oldKey], oldPath, newPath, index + 1); + } + return updated; + }; + var copyWithRename = function copyWithRename(obj, oldPath, newPath) { + if (oldPath.length !== newPath.length) { + warn("copyWithRename() expects paths of the same length"); + return; + } else { + for (var i = 0; i < newPath.length - 1; i++) { + if (oldPath[i] !== newPath[i]) { + warn("copyWithRename() expects paths to be the same except for the deepest key"); + return; + } + } + } + return copyWithRenameImpl(obj, oldPath, newPath, 0); + }; + var copyWithSetImpl = function copyWithSetImpl(obj, path, index, value) { + if (index >= path.length) { + return value; + } + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + + updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); + return updated; + }; + var copyWithSet = function copyWithSet(obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; + var findHook = function findHook(fiber, id) { + var currentHook = fiber.memoizedState; + while (currentHook !== null && id > 0) { + currentHook = currentHook.next; + id--; + } + return currentHook; + }; + + overrideHookState = function overrideHookState(fiber, id, path, value) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithSet(hook.memoizedState, path, value); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + overrideHookStateDeletePath = function overrideHookStateDeletePath(fiber, id, path) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithDelete(hook.memoizedState, path); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + overrideHookStateRenamePath = function overrideHookStateRenamePath(fiber, id, oldPath, newPath) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithRename(hook.memoizedState, oldPath, newPath); + hook.memoizedState = newState; + hook.baseState = newState; + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + } + }; + + overrideProps = function overrideProps(fiber, path, value) { + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + overridePropsDeletePath = function overridePropsDeletePath(fiber, path) { + fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + overridePropsRenamePath = function overridePropsRenamePath(fiber, oldPath, newPath) { + fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + scheduleUpdate = function scheduleUpdate(fiber) { + scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }; + setErrorHandler = function setErrorHandler(newShouldErrorImpl) { + shouldErrorImpl = newShouldErrorImpl; + }; + setSuspenseHandler = function setSuspenseHandler(newShouldSuspendImpl) { + shouldSuspendImpl = newShouldSuspendImpl; + }; + } + function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; + } + return hostFiber.stateNode; + } + function emptyFindFiberByHostInstance(instance) { + return null; + } + function getCurrentFiberForDevTools() { + return current; + } + function injectIntoDevTools(devToolsConfig) { + var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals({ + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState: overrideHookState, + overrideHookStateDeletePath: overrideHookStateDeletePath, + overrideHookStateRenamePath: overrideHookStateRenamePath, + overrideProps: overrideProps, + overridePropsDeletePath: overridePropsDeletePath, + overridePropsRenamePath: overridePropsRenamePath, + setErrorHandler: setErrorHandler, + setSuspenseHandler: setSuspenseHandler, + scheduleUpdate: scheduleUpdate, + currentDispatcherRef: ReactCurrentDispatcher, + findHostInstanceByFiber: findHostInstanceByFiber, + findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: findHostInstancesForRefresh, + scheduleRefresh: scheduleRefresh, + scheduleRoot: scheduleRoot, + setRefreshHandler: setRefreshHandler, + getCurrentFiber: getCurrentFiberForDevTools, + reconcilerVersion: ReactVersion + }); + } + var instanceCache = new Map(); + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; + } + var emptyObject$1 = {}; + { + Object.freeze(emptyObject$1); + } + var createHierarchy; + var getHostNode; + var getHostProps; + var lastNonHostInstance; + var getOwnerHierarchy; + var _traverseOwnerTreeUp; + { + createHierarchy = function createHierarchy(fiberHierarchy) { + return fiberHierarchy.map(function (fiber) { + return { + name: getComponentNameFromType(fiber.type), + getInspectorData: function getInspectorData(findNodeHandle) { + return { + props: getHostProps(fiber), + source: fiber._debugSource, + measure: function measure(callback) { + var hostFiber = findCurrentHostFiber(fiber); + var shadowNode = hostFiber != null && hostFiber.stateNode !== null && hostFiber.stateNode.node; + if (shadowNode) { + nativeFabricUIManager.measure(shadowNode, callback); + } else { + return ReactNativePrivateInterface.UIManager.measure(getHostNode(fiber, findNodeHandle), callback); + } + } + }; + } + }; + }); + }; + getHostNode = function getHostNode(fiber, findNodeHandle) { + var hostNode; + + while (fiber) { + if (fiber.stateNode !== null && fiber.tag === HostComponent) { + hostNode = findNodeHandle(fiber.stateNode); + } + if (hostNode) { + return hostNode; + } + fiber = fiber.child; + } + return null; + }; + getHostProps = function getHostProps(fiber) { + var host = findCurrentHostFiber(fiber); + if (host) { + return host.memoizedProps || emptyObject$1; + } + return emptyObject$1; + }; + exports.getInspectorDataForInstance = function (closestInstance) { + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getOwnerHierarchy = function getOwnerHierarchy(instance) { + var hierarchy = []; + _traverseOwnerTreeUp(hierarchy, instance); + return hierarchy; + }; + lastNonHostInstance = function lastNonHostInstance(hierarchy) { + for (var i = hierarchy.length - 1; i > 1; i--) { + var instance = hierarchy[i]; + if (instance.tag !== HostComponent) { + return instance; + } + } + return hierarchy[0]; + }; + _traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { + if (instance) { + hierarchy.unshift(instance); + _traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + }; + } + var getInspectorDataForViewTag; + var getInspectorDataForViewAtPoint; + { + getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { + var closestInstance = getInstanceFromTag(viewTag); + + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getInspectorDataForViewAtPoint = function getInspectorDataForViewAtPoint(findNodeHandle, inspectedView, locationX, locationY, callback) { + var closestInstance = null; + if (inspectedView._internalInstanceHandle != null) { + nativeFabricUIManager.findNodeAtPoint(inspectedView._internalInstanceHandle.stateNode.node, locationX, locationY, function (internalInstanceHandle) { + if (internalInstanceHandle == null) { + callback(assign({ + pointerY: locationY, + frame: { + left: 0, + top: 0, + width: 0, + height: 0 + } + }, exports.getInspectorDataForInstance(closestInstance))); + } + closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; + + var nativeViewTag = internalInstanceHandle.stateNode.canonical._nativeTag; + nativeFabricUIManager.measure(internalInstanceHandle.stateNode.node, function (x, y, width, height, pageX, pageY) { + var inspectorData = exports.getInspectorDataForInstance(closestInstance); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: pageX, + top: pageY, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + }); + } else if (inspectedView._internalFiberInstanceHandleDEV != null) { + ReactNativePrivateInterface.UIManager.findSubviewIn(findNodeHandle(inspectedView), [locationX, locationY], function (nativeViewTag, left, top, width, height) { + var inspectorData = exports.getInspectorDataForInstance(getInstanceFromTag(nativeViewTag)); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: left, + top: top, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + } else { + error("getInspectorDataForViewAtPoint expects to receive a host component"); + return; + } + }; + } + var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; + function findHostInstance_DEPRECATED(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; + } + } + if (componentOrHandle == null) { + return null; + } + + if (componentOrHandle._nativeTag) { + return componentOrHandle; + } + + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical; + } + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findHostInstance_DEPRECATED"); + } + if (hostInstance == null) { + return hostInstance; + } + if (hostInstance.canonical) { + return hostInstance.canonical; + } + + return hostInstance; + } + function findNodeHandle(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; + } + } + if (componentOrHandle == null) { + return null; + } + if (typeof componentOrHandle === "number") { + return componentOrHandle; + } + if (componentOrHandle._nativeTag) { + return componentOrHandle._nativeTag; + } + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical._nativeTag; + } + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findNodeHandle"); + } + if (hostInstance == null) { + return hostInstance; + } + + if (hostInstance.canonical) { + return hostInstance.canonical._nativeTag; + } + return hostInstance._nativeTag; + } + function dispatchCommand(handle, command, args) { + if (handle._nativeTag == null) { + { + error("dispatchCommand was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + } + return; + } + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); + } + } else { + ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args); + } + } + function sendAccessibilityEvent(handle, eventType) { + if (handle._nativeTag == null) { + { + error("sendAccessibilityEvent was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + } + return; + } + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType); + } + } else { + ReactNativePrivateInterface.legacySendAccessibilityEvent(handle._nativeTag, eventType); + } + } + function onRecoverableError(error$1) { + error(error$1); + } + function render(element, containerTag, callback, concurrentRoot) { + var root = roots.get(containerTag); + if (!root) { + root = createContainer(containerTag, concurrentRoot ? ConcurrentRoot : LegacyRoot, null, false, null, "", onRecoverableError); + roots.set(containerTag, root); + } + updateContainer(element, root, null, callback); + + return getPublicRootInstance(root); + } + function unmountComponentAtNode(containerTag) { + this.stopSurface(containerTag); + } + function stopSurface(containerTag) { + var root = roots.get(containerTag); + if (root) { + updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + } + function createPortal$1(children, containerTag) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + return createPortal(children, containerTag, null, key); + } + setBatchingImplementation(batchedUpdates$1); + var roots = new Map(); + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromInstance, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: getInspectorDataForViewTag, + getInspectorDataForViewAtPoint: getInspectorDataForViewAtPoint.bind(null, findNodeHandle) + } + }); + exports.createPortal = createPortal$1; + exports.dispatchCommand = dispatchCommand; + exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; + exports.findNodeHandle = findNodeHandle; + exports.render = render; + exports.sendAccessibilityEvent = sendAccessibilityEvent; + exports.stopSurface = stopSurface; + exports.unmountComponentAtNode = unmountComponentAtNode; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},204,[36,39,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/scheduler.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/scheduler.development.js"); + } +},205,[206,207],"node_modules/scheduler/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + function f(a, b) { + var c = a.length; + a.push(b); + a: for (; 0 < c;) { + var d = c - 1 >>> 1, + e = a[d]; + if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;else break a; + } + } + function h(a) { + return 0 === a.length ? null : a[0]; + } + function k(a) { + if (0 === a.length) return null; + var b = a[0], + c = a.pop(); + if (c !== b) { + a[0] = c; + a: for (var d = 0, e = a.length, w = e >>> 1; d < w;) { + var m = 2 * (d + 1) - 1, + C = a[m], + n = m + 1, + x = a[n]; + if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n;else break a; + } + } + return b; + } + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; + } + if ("object" === typeof performance && "function" === typeof performance.now) { + var l = performance; + exports.unstable_now = function () { + return l.now(); + }; + } else { + var p = Date, + q = p.now(); + exports.unstable_now = function () { + return p.now() - q; + }; + } + var r = [], + t = [], + u = 1, + v = null, + y = 3, + z = !1, + A = !1, + B = !1, + D = "function" === typeof setTimeout ? setTimeout : null, + E = "function" === typeof clearTimeout ? clearTimeout : null, + F = "undefined" !== typeof setImmediate ? setImmediate : null; + "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); + function G(a) { + for (var b = h(t); null !== b;) { + if (null === b.callback) k(t);else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b);else break; + b = h(t); + } + } + function H(a) { + B = !1; + G(a); + if (!A) if (null !== h(r)) A = !0, I(J);else { + var b = h(t); + null !== b && K(H, b.startTime - a); + } + } + function J(a, b) { + A = !1; + B && (B = !1, E(L), L = -1); + z = !0; + var c = y; + try { + G(b); + for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M());) { + var d = v.callback; + if ("function" === typeof d) { + v.callback = null; + y = v.priorityLevel; + var e = d(v.expirationTime <= b); + b = exports.unstable_now(); + "function" === typeof e ? v.callback = e : v === h(r) && k(r); + G(b); + } else k(r); + v = h(r); + } + if (null !== v) var w = !0;else { + var m = h(t); + null !== m && K(H, m.startTime - b); + w = !1; + } + return w; + } finally { + v = null, y = c, z = !1; + } + } + var N = !1, + O = null, + L = -1, + P = 5, + Q = -1; + function M() { + return exports.unstable_now() - Q < P ? !1 : !0; + } + function R() { + if (null !== O) { + var a = exports.unstable_now(); + Q = a; + var b = !0; + try { + b = O(!0, a); + } finally { + b ? S() : (N = !1, O = null); + } + } else N = !1; + } + var S; + if ("function" === typeof F) S = function S() { + F(R); + };else if ("undefined" !== typeof MessageChannel) { + var T = new MessageChannel(), + U = T.port2; + T.port1.onmessage = R; + S = function S() { + U.postMessage(null); + }; + } else S = function S() { + D(R, 0); + }; + function I(a) { + O = a; + N || (N = !0, S()); + } + function K(a, b) { + L = D(function () { + a(exports.unstable_now()); + }, b); + } + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_cancelCallback = function (a) { + a.callback = null; + }; + exports.unstable_continueExecution = function () { + A || z || (A = !0, I(J)); + }; + exports.unstable_forceFrameRate = function (a) { + 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1E3 / a) : 5; + }; + exports.unstable_getCurrentPriorityLevel = function () { + return y; + }; + exports.unstable_getFirstCallbackNode = function () { + return h(r); + }; + exports.unstable_next = function (a) { + switch (y) { + case 1: + case 2: + case 3: + var b = 3; + break; + default: + b = y; + } + var c = y; + y = b; + try { + return a(); + } finally { + y = c; + } + }; + exports.unstable_pauseExecution = function () {}; + exports.unstable_requestPaint = function () {}; + exports.unstable_runWithPriority = function (a, b) { + switch (a) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + a = 3; + } + var c = y; + y = a; + try { + return b(); + } finally { + y = c; + } + }; + exports.unstable_scheduleCallback = function (a, b, c) { + var d = exports.unstable_now(); + "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1E4; + break; + default: + e = 5E3; + } + e = c + e; + a = { + id: u++, + callback: b, + priorityLevel: a, + startTime: c, + expirationTime: e, + sortIndex: -1 + }; + c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = !0, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = !0, I(J))); + return a; + }; + exports.unstable_shouldYield = M; + exports.unstable_wrapCallback = function (a) { + var b = y; + return function () { + var c = y; + y = b; + try { + return a.apply(this, arguments); + } finally { + y = c; + } + }; + }; +},206,[],"node_modules/scheduler/cjs/scheduler.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * scheduler.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var enableSchedulerDebugging = false; + var enableProfiling = false; + var frameYieldMs = 5; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; + } + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + return first; + } + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + return; + } + } + } + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; + + if (compare(left, node) < 0) { + if (rightIndex < length && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + return; + } + } + } + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) {} + + var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function'; + if (hasPerformanceNow) { + var localPerformance = performance; + exports.unstable_now = function () { + return localPerformance.now(); + }; + } else { + var localDate = Date; + var initialTime = localDate.now(); + exports.unstable_now = function () { + return localDate.now() - initialTime; + }; + } + + var maxSigned31BitInt = 1073741823; + + var IMMEDIATE_PRIORITY_TIMEOUT = -1; + + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5000; + var LOW_PRIORITY_TIMEOUT = 10000; + + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + + var taskQueue = []; + var timerQueue = []; + + var taskIdCounter = 1; + var currentTask = null; + var currentPriorityLevel = NormalPriority; + + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + + var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; + var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; + var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; + + var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function advanceTimers(currentTime) { + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + return; + } + timer = peek(timerQueue); + } + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + function flushWork(hasTimeRemaining, initialTime) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime); + } catch (error) { + if (currentTask !== null) { + var currentTime = exports.unstable_now(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + throw error; + } + } else { + return workLoop(hasTimeRemaining, initialTime); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + } + } + function workLoop(hasTimeRemaining, initialTime) { + var currentTime = initialTime; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + break; + } + var callback = currentTask.callback; + if (typeof callback === 'function') { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = exports.unstable_now(); + if (typeof continuationCallback === 'function') { + currentTask.callback = continuationCallback; + } else { + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + currentTask = peek(taskQueue); + } + + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + return false; + } + } + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + default: + priorityLevel = NormalPriority; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_next(eventHandler) { + var priorityLevel; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + priorityLevel = NormalPriority; + break; + default: + priorityLevel = currentPriorityLevel; + break; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function () { + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = exports.unstable_now(); + var startTime; + if (typeof options === 'object' && options !== null) { + var delay = options.delay; + if (typeof delay === 'number' && delay > 0) { + startTime = currentTime + delay; + } else { + startTime = currentTime; + } + } else { + startTime = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime + timeout; + var newTask = { + id: taskIdCounter++, + callback: callback, + priorityLevel: priorityLevel, + startTime: startTime, + expirationTime: expirationTime, + sortIndex: -1 + }; + if (startTime > currentTime) { + newTask.sortIndex = startTime; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + if (isHostTimeoutScheduled) { + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } + + requestHostTimeout(handleTimeout, startTime - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; + } + function unstable_pauseExecution() {} + function unstable_continueExecution() { + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + function unstable_cancelCallback(task) { + + task.callback = null; + } + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; + + var frameInterval = frameYieldMs; + var startTime = -1; + function shouldYieldToHost() { + var timeElapsed = exports.unstable_now() - startTime; + if (timeElapsed < frameInterval) { + return false; + } + + return true; + } + function requestPaint() {} + function forceFrameRate(fps) { + if (fps < 0 || fps > 125) { + console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported'); + return; + } + if (fps > 0) { + frameInterval = Math.floor(1000 / fps); + } else { + frameInterval = frameYieldMs; + } + } + var performWorkUntilDeadline = function performWorkUntilDeadline() { + if (scheduledHostCallback !== null) { + var currentTime = exports.unstable_now(); + + startTime = currentTime; + var hasTimeRemaining = true; + + var hasMoreWork = true; + try { + hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + } finally { + if (hasMoreWork) { + schedulePerformWorkUntilDeadline(); + } else { + isMessageLoopRunning = false; + scheduledHostCallback = null; + } + } + } else { + isMessageLoopRunning = false; + } + }; + + var schedulePerformWorkUntilDeadline; + if (typeof localSetImmediate === 'function') { + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + localSetImmediate(performWorkUntilDeadline); + }; + } else if (typeof MessageChannel !== 'undefined') { + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + port.postMessage(null); + }; + } else { + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + localSetTimeout(performWorkUntilDeadline, 0); + }; + } + function requestHostCallback(callback) { + scheduledHostCallback = callback; + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + schedulePerformWorkUntilDeadline(); + } + } + function requestHostTimeout(callback, ms) { + taskTimeoutID = localSetTimeout(function () { + callback(exports.unstable_now()); + }, ms); + } + function cancelHostTimeout() { + localClearTimeout(taskTimeoutID); + taskTimeoutID = -1; + } + var unstable_requestPaint = requestPaint; + var unstable_Profiling = null; + exports.unstable_IdlePriority = IdlePriority; + exports.unstable_ImmediatePriority = ImmediatePriority; + exports.unstable_LowPriority = LowPriority; + exports.unstable_NormalPriority = NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = UserBlockingPriority; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_forceFrameRate = forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = unstable_requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_shouldYield = shouldYieldToHost; + exports.unstable_wrapCallback = unstable_wrapCallback; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},207,[],"node_modules/scheduler/cjs/scheduler.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + "use strict"; + + _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var React = _$$_REQUIRE(_dependencyMap[1], "react"); + function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + } + var hasError = !1, + caughtError = null, + hasRethrowError = !1, + rethrowError = null, + reporter = { + onError: function onError(error) { + hasError = !0; + caughtError = error; + } + }; + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = !1; + caughtError = null; + invokeGuardedCallbackImpl.apply(reporter, arguments); + } + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + if (hasError) { + var error = caughtError; + hasError = !1; + caughtError = null; + } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + hasRethrowError || (hasRethrowError = !0, rethrowError = error); + } + } + var isArrayImpl = Array.isArray, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); + event.currentTarget = null; + } + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + var assign = Object.assign; + function functionThatReturnsTrue() { + return !0; + } + function functionThatReturnsFalse() { + return !1; + } + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchInstances = this._dispatchListeners = null; + dispatchConfig = this.constructor.Interface; + for (var propName in dispatchConfig) { + dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + } + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + for (propName in Interface) { + this[propName] = null; + } + this.nativeEvent = this._targetInst = this.dispatchConfig = null; + this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; + this._dispatchInstances = this._dispatchListeners = null; + } + }); + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + SyntheticEvent.extend = function (Interface) { + function E() {} + function Class() { + return Super.apply(this, arguments); + } + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + function releasePooledEvent(event) { + if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; + } + }); + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + if (null == _ref) throw Error("Touch object is missing identifier."); + return _ref; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + var instrumentationCallback, + ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { + if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } + } + }, + touchHistory: touchHistory + }; + function accumulate(current, next) { + if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); + return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function accumulateInto(current, next) { + if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + if (isArrayImpl(current)) { + if (isArrayImpl(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + return isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + var responderInst = null, + trackedTouchCount = 0; + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: ["topScroll"] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: ["topSelectionChange"] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + function getParent(inst) { + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + return inst ? inst : null; + } + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) { + path.push(inst), inst = getParent(inst); + } + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + function getListener(inst, registrationName) { + inst = inst.stateNode; + if (null === inst) return null; + inst = getFiberCurrentPropsFromNode(inst); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + return inst; + } + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); + } + } + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp = responderInst; + for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) { + depthA++; + } + tempA = 0; + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { + tempA++; + } + for (; 0 < depthA - tempA;) { + JSCompiler_temp = getParent(JSCompiler_temp), depthA--; + } + for (; 0 < tempA - depthA;) { + targetInst = getParent(targetInst), tempA--; + } + for (; depthA--;) { + if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; + JSCompiler_temp = getParent(JSCompiler_temp); + targetInst = getParent(targetInst); + } + JSCompiler_temp = null; + } else JSCompiler_temp = targetInst; + targetInst = JSCompiler_temp; + JSCompiler_temp = targetInst === responderInst; + shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); + shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; + JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); + b: { + JSCompiler_temp = shouldSetEventType._dispatchListeners; + targetInst = shouldSetEventType._dispatchInstances; + if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + shouldSetEventType._dispatchInstances = null; + shouldSetEventType._dispatchListeners = null; + shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); + if (JSCompiler_temp && JSCompiler_temp !== responderInst) { + if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { + if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { + depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; + forEachAccumulated(depthA, accumulateDirectDispatchesSingle); + var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); + changeResponder(JSCompiler_temp, targetInst); + } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); + } else JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = null; + shouldSetEventType = responderInst && isStartish(topLevelType); + JSCompiler_temp = responderInst && isMoveish(topLevelType); + targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) { + if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { + depthA = getInstanceFromNode(targetInst); + b: { + for (targetInst = responderInst; depthA;) { + if (targetInst === depthA || targetInst === depthA.alternate) { + targetInst = !0; + break b; + } + depthA = getParent(depthA); + } + targetInst = !1; + } + if (targetInst) { + topLevelType = !1; + break a; + } + } + } + topLevelType = !0; + } + if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); + return JSCompiler_temp$jscomp$0; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }, + eventPluginOrder = null, + namesToPlugins = {}; + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); + if (!plugins[pluginIndex]) { + if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + eventName$jscomp$0 = eventName; + if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) { + phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + } + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } + } + } + } + function publishRegistrationName(registrationName, pluginModule) { + if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); + registrationNameModules[registrationName] = pluginModule; + } + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}; + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (null === stateNode) return null; + inst = getFiberCurrentPropsFromNode(stateNode); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; + var listeners = []; + inst && listeners.push(inst); + var requestedPhaseIsCapture = "captured" === phase, + mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { + if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = !0; + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + listenerObj.options.once ? listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); + }) : listeners.push(listenerFnWrapper); + } + }); + return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; + } + var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; + if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) { + event._dispatchInstances.push(inst); + } + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); + accumulateListenersAndInstances(inst, event, phase); + } + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + for (var path = []; inst;) { + path.push(inst); + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + inst = inst ? inst : null; + } + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); + } + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); + accumulateListenersAndInstances(inst, event, listeners); + } + } + } + if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + recomputePluginOrdering(); + var injectedNamesToPlugins$jscomp$inline_218 = { + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], + directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; + return topLevelType; + } + } + }, + isOrderingDirty$jscomp$inline_219 = !1, + pluginName$jscomp$inline_220; + for (pluginName$jscomp$inline_220 in injectedNamesToPlugins$jscomp$inline_218) { + if (injectedNamesToPlugins$jscomp$inline_218.hasOwnProperty(pluginName$jscomp$inline_220)) { + var pluginModule$jscomp$inline_221 = injectedNamesToPlugins$jscomp$inline_218[pluginName$jscomp$inline_220]; + if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_220) || namesToPlugins[pluginName$jscomp$inline_220] !== pluginModule$jscomp$inline_221) { + if (namesToPlugins[pluginName$jscomp$inline_220]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_220 + "`.")); + namesToPlugins[pluginName$jscomp$inline_220] = pluginModule$jscomp$inline_221; + isOrderingDirty$jscomp$inline_219 = !0; + } + } + } + isOrderingDirty$jscomp$inline_219 && recomputePluginOrdering(); + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; + } + getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(inst) { + return inst.canonical.currentProps; + }; + getInstanceFromNode = getInstanceFromInstance; + getNodeFromInstance = function getNodeFromInstance(inst) { + inst = inst.stateNode.canonical; + if (!inst._nativeTag) throw Error("All native instances should have a tag."); + return inst; + }; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + var fromOrTo = from || to; + (fromOrTo = fromOrTo && fromOrTo.stateNode) && fromOrTo.canonical._internalInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.stateNode.node, !1, blockNativeResponder || !1), to && nativeFabricUIManager.setIsJSResponder(to.stateNode.node, !0, blockNativeResponder || !1)) : null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); + } + }); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"); + Symbol.for("react.scope"); + Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + Symbol.for("react.legacy_hidden"); + Symbol.for("react.cache"); + Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if ("object" === typeof type) switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); + return type; + case REACT_MEMO_TYPE: + return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + } + return null; + } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return;) { + node = node.return; + } else { + fiber = node; + do { + node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; + } while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate;;) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB;) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) a = parentA, b = parentB;else { + for (var didFindChild = !1, child$0 = parentA.child; child$0;) { + if (child$0 === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (child$0 === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + child$0 = child$0.sibling; + } + if (!didFindChild) { + for (child$0 = parentB.child; child$0;) { + if (child$0 === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (child$0 === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + child$0 = child$0.sibling; + } + if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + if (5 === node.tag || 6 === node.tag) return node; + for (node = node.child; null !== node;) { + var match = findCurrentHostFiberImpl(node); + if (null !== match) return match; + node = node.sibling; + } + return null; + } + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); + }; + } + var emptyObject = {}, + removedKeys = null, + removedKeyCount = 0, + deepDifferOptions = { + unsafelyIgnoreFunctions: !0 + }; + function defaultDiffer(prevProp, nextProp) { + return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } else if (node && 0 < removedKeyCount) for (i in removedKeys) { + if (removedKeys[i]) { + var nextProp = node[i]; + if (void 0 !== nextProp) { + var attributeConfig = validAttributes[i]; + if (attributeConfig) { + "function" === typeof nextProp && (nextProp = !0); + "undefined" === typeof nextProp && (nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; + removedKeys[i] = !1; + removedKeyCount--; + } + } + } + } + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + } + for (; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + for (; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); + } + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + return updatePayload; + } + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + for (propKey in nextProps) { + if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + } + for (var propKey$2 in prevProps) { + void 0 === nextProps[propKey$2] && (!(attributeConfig = validAttributes[propKey$2]) || updatePayload && void 0 !== updatePayload[propKey$2] || (prevProp = prevProps[propKey$2], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$2] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$2] || (removedKeys[propKey$2] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + } + return updatePayload; + } + function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + } + var isInsideEventHandler = !1; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) return fn(bookkeeping); + isInsideEventHandler = !0; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = !1; + } + } + var eventQueue = null; + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { + executeDispatch(e, dispatchListeners[i], dispatchInstances[i]); + } else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + function dispatchEvent(target, topLevelType, nativeEvent) { + var eventTarget = null; + if (null != target) { + var stateNode = target.stateNode; + null != stateNode && (eventTarget = stateNode.canonical); + } + batchedUpdates(function () { + var event = { + eventName: topLevelType, + nativeEvent: nativeEvent + }; + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit(topLevelType, event); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit("*", event); + event = eventTarget; + for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, target, nativeEvent, event)) && (events = accumulateInto(events, possiblePlugin)); + } + event = events; + null !== event && (eventQueue = accumulateInto(eventQueue, event)); + event = eventQueue; + eventQueue = null; + if (event) { + forEachAccumulated(event, executeDispatchesAndReleaseTopLevel); + if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); + if (hasRethrowError) throw event = rethrowError, hasRethrowError = !1, rethrowError = null, event; + } + }); + } + var rendererID = null, + injectedHook = null; + function onCommitRoot(root) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { + injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); + } catch (err) {} + } + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, + log = Math.log, + LN2 = Math.LN2; + function clz32Fallback(x) { + x >>>= 0; + return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; + } + var nextTransitionLane = 64, + nextRetryLane = 4194304; + function getHighestPriorityLanes(lanes) { + switch (lanes & -lanes) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return lanes & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return lanes; + } + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + nonIdlePendingLanes = pendingLanes & 268435455; + if (0 !== nonIdlePendingLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); + } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); + if (0 === nextLanes) return 0; + if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; + 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); + wipLanes = root.entangledLanes; + if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) { + pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; + } + return nextLanes; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + return currentTime + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } + } + function getLanesToRetrySynchronouslyOnError(root) { + root = root.pendingLanes & -1073741825; + return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) { + laneMap.push(initial); + } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); + root = root.eventTimes; + updateLane = 31 - clz32(updateLane); + root[updateLane] = eventTime; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + remainingLanes = root.entanglements; + var eventTimes = root.eventTimes; + for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { + var index$7 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$7; + remainingLanes[index$7] = 0; + eventTimes[index$7] = -1; + root[index$7] = -1; + noLongerPendingLanes &= ~lane; + } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + for (root = root.entanglements; rootEntangledLanes;) { + var index$8 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$8; + lane & entangledLanes | root[index$8] & entangledLanes && (root[index$8] |= entangledLanes); + rootEntangledLanes &= ~lane; + } + } + var currentUpdatePriority = 0; + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; + } + function shim$1() { + throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); + } + var _nativeFabricUIManage = nativeFabricUIManager, + createNode = _nativeFabricUIManage.createNode, + cloneNode = _nativeFabricUIManage.cloneNode, + cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, + cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, + cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, + createChildNodeSet = _nativeFabricUIManage.createChildSet, + appendChildNode = _nativeFabricUIManage.appendChild, + appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, + completeRoot = _nativeFabricUIManage.completeRoot, + registerEventHandler = _nativeFabricUIManage.registerEventHandler, + fabricMeasure = _nativeFabricUIManage.measure, + fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, + fabricMeasureLayout = _nativeFabricUIManage.measureLayout, + FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, + fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority, + getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, + nextReactTag = 2; + registerEventHandler && registerEventHandler(dispatchEvent); + var ReactFabricHostComponent = function () { + function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + this._internalInstanceHandle = internalInstanceHandle; + } + var _proto = ReactFabricHostComponent.prototype; + _proto.blur = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); + }; + _proto.focus = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); + }; + _proto.measure = function (callback) { + var stateNode = this._internalInstanceHandle.stateNode; + null != stateNode && fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureInWindow = function (callback) { + var stateNode = this._internalInstanceHandle.stateNode; + null != stateNode && fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + if ("number" !== typeof relativeToNativeNode && relativeToNativeNode instanceof ReactFabricHostComponent) { + var toStateNode = this._internalInstanceHandle.stateNode; + relativeToNativeNode = relativeToNativeNode._internalInstanceHandle.stateNode; + null != toStateNode && null != relativeToNativeNode && fabricMeasureLayout(toStateNode.node, relativeToNativeNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + } + }; + _proto.setNativeProps = function () {}; + _proto.addEventListener_unstable = function (eventType, listener, options) { + if ("string" !== typeof eventType) throw Error("addEventListener_unstable eventType must be a string"); + if ("function" !== typeof listener) throw Error("addEventListener_unstable listener must be a function"); + var optionsObj = "object" === typeof options && null !== options ? options : {}; + options = ("boolean" === typeof options ? options : optionsObj.capture) || !1; + var once = optionsObj.once || !1; + optionsObj = optionsObj.passive || !1; + var eventListeners = this._eventListeners || {}; + null == this._eventListeners && (this._eventListeners = eventListeners); + var namedEventListeners = eventListeners[eventType] || []; + null == eventListeners[eventType] && (eventListeners[eventType] = namedEventListeners); + namedEventListeners.push({ + listener: listener, + invalidated: !1, + options: { + capture: options, + once: once, + passive: optionsObj, + signal: null + } + }); + }; + _proto.removeEventListener_unstable = function (eventType, listener, options) { + var optionsObj = "object" === typeof options && null !== options ? options : {}, + capture = ("boolean" === typeof options ? options : optionsObj.capture) || !1; + (options = this._eventListeners) && (optionsObj = options[eventType]) && (options[eventType] = optionsObj.filter(function (listenerObj) { + return !(listenerObj.listener === listener && listenerObj.options.capture === capture); + })); + }; + return ReactFabricHostComponent; + }(); + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + hostContext = nextReactTag; + nextReactTag += 2; + return { + node: createNode(hostContext, "RCTRawText", rootContainerInstance, { + text: text + }, internalInstanceHandle) + }; + } + var scheduleTimeout = setTimeout, + cancelTimeout = clearTimeout; + function cloneHiddenInstance(instance) { + var node = instance.node; + var JSCompiler_inline_result = diffProperties(null, emptyObject, { + style: { + display: "none" + } + }, instance.canonical.viewConfig.validAttributes); + return { + node: cloneNodeWithNewProps(node, JSCompiler_inline_result), + canonical: instance.canonical + }; + } + function describeComponentFrame(name, source, ownerName) { + source = ""; + ownerName && (source = " (created by " + ownerName + ")"); + return "\n in " + (name || "Unknown") + source; + } + function describeFunctionComponentFrame(fn, source) { + return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty, + valueStack = [], + index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + var emptyContextObject = {}, + contextStackCursor = createCursor(emptyContextObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyContextObject; + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyContextObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + for (key in contextTypes) { + context[key] = unmaskedContext[key]; + } + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + function isContextProvider(type) { + type = type.childContextTypes; + return null !== type && void 0 !== type; + } + function popContext() { + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + } + function pushTopLevelContextObject(fiber, context, didChange) { + if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context); + push(didPerformWorkStackCursor, didChange); + } + function processChildContext(fiber, type, parentContext) { + var instance = fiber.stateNode; + type = type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + for (var contextKey in instance) { + if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); + push(didPerformWorkStackCursor, didChange); + } + function is(x, y) { + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; + } + var objectIs = "function" === typeof Object.is ? Object.is : is, + syncQueue = null, + includesLegacySyncCallbacks = !1, + isFlushingSyncQueue = !1; + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && null !== syncQueue) { + isFlushingSyncQueue = !0; + var i = 0, + previousUpdatePriority = currentUpdatePriority; + try { + var queue = syncQueue; + for (currentUpdatePriority = 1; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(!0); + } while (null !== callback); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + } catch (error) { + throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; + } finally { + currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; + } + } + return null; + } + var forkStack = [], + forkStackIndex = 0, + treeForkProvider = null, + idStack = [], + idStackIndex = 0, + treeContextProvider = null; + function popTreeContext(workInProgress) { + for (; workInProgress === treeForkProvider;) { + treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; + } + for (; workInProgress === treeContextProvider;) { + treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; + } + } + var hydrationErrors = null, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + for (keysB = 0; keysB < keysA.length; keysB++) { + var currentKey = keysA[keysB]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; + } + return !0; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 5: + return describeComponentFrame(fiber.type, null, null); + case 16: + return describeComponentFrame("Lazy", null, null); + case 13: + return describeComponentFrame("Suspense", null, null); + case 19: + return describeComponentFrame("SuspenseList", null, null); + case 0: + case 2: + case 15: + return describeFunctionComponentFrame(fiber.type, null); + case 11: + return describeFunctionComponentFrame(fiber.type.render, null); + case 1: + return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; + default: + return ""; + } + } + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + baseProps = assign({}, baseProps); + Component = Component.defaultProps; + for (var propName in Component) { + void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); + } + return baseProps; + } + return baseProps; + } + var valueCursor = createCursor(null), + currentlyRenderingFiber = null, + lastContextDependency = null, + lastFullyObservedContext = null; + function resetContextDependencies() { + lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; + } + function popProvider(context) { + var currentValue = valueCursor.current; + pop(valueCursor); + context._currentValue2 = currentValue; + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + for (; null !== parent;) { + var alternate = parent.alternate; + (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); + if (parent === propagationRoot) break; + parent = parent.return; + } + } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastFullyObservedContext = lastContextDependency = null; + workInProgress = workInProgress.dependencies; + null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); + } + function readContext(context) { + var value = context._currentValue2; + if (lastFullyObservedContext !== context) if (context = { + context: context, + memoizedValue: value, + next: null + }, null === lastContextDependency) { + if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + lastContextDependency = context; + currentlyRenderingFiber.dependencies = { + lanes: 0, + firstContext: context + }; + } else lastContextDependency = lastContextDependency.next = context; + return value; + } + var interleavedQueues = null, + hasForceUpdate = !1; + function initializeUpdateQueue(fiber) { + fiber.updateQueue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; + } + function cloneUpdateQueue(current, workInProgress) { + current = current.updateQueue; + workInProgress.updateQueue === current && (workInProgress.updateQueue = { + baseState: current.baseState, + firstBaseUpdate: current.firstBaseUpdate, + lastBaseUpdate: current.lastBaseUpdate, + shared: current.shared, + effects: current.effects + }); + } + function createUpdate(eventTime, lane) { + return { + eventTime: eventTime, + lane: lane, + tag: 0, + payload: null, + callback: null, + next: null + }; + } + function enqueueUpdate(fiber, update) { + var updateQueue = fiber.updateQueue; + null !== updateQueue && (updateQueue = updateQueue.shared, isInterleavedUpdate(fiber) ? (fiber = updateQueue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [updateQueue] : interleavedQueues.push(updateQueue)) : (update.next = fiber.next, fiber.next = update), updateQueue.interleaved = update) : (fiber = updateQueue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), updateQueue.pending = update)); + } + function entangleTransitions(root, fiber, lane) { + fiber = fiber.updateQueue; + if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { + var queueLanes = fiber.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + fiber.lanes = lane; + markRootEntangled(root, lane); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue, + current = workInProgress.alternate; + if (null !== current && (current = current.updateQueue, queue === current)) { + var newFirst = null, + newLast = null; + queue = queue.firstBaseUpdate; + if (null !== queue) { + do { + var clone = { + eventTime: queue.eventTime, + lane: queue.lane, + tag: queue.tag, + payload: queue.payload, + callback: queue.callback, + next: null + }; + null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; + queue = queue.next; + } while (null !== queue); + null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; + } else newFirst = newLast = capturedUpdate; + queue = { + baseState: current.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: current.shared, + effects: current.effects + }; + workInProgress.updateQueue = queue; + return; + } + workInProgress = queue.lastBaseUpdate; + null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; + queue.lastBaseUpdate = capturedUpdate; + } + function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { + var queue = workInProgress$jscomp$0.updateQueue; + hasForceUpdate = !1; + var firstBaseUpdate = queue.firstBaseUpdate, + lastBaseUpdate = queue.lastBaseUpdate, + pendingQueue = queue.shared.pending; + if (null !== pendingQueue) { + queue.shared.pending = null; + var lastPendingUpdate = pendingQueue, + firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; + lastBaseUpdate = lastPendingUpdate; + var current = workInProgress$jscomp$0.alternate; + null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); + } + if (null !== firstBaseUpdate) { + var newState = queue.baseState; + lastBaseUpdate = 0; + current = firstPendingUpdate = lastPendingUpdate = null; + pendingQueue = firstBaseUpdate; + do { + var updateLane = pendingQueue.lane, + updateEventTime = pendingQueue.eventTime; + if ((renderLanes & updateLane) === updateLane) { + null !== current && (current = current.next = { + eventTime: updateEventTime, + lane: 0, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }); + a: { + var workInProgress = workInProgress$jscomp$0, + update = pendingQueue; + updateLane = props; + updateEventTime = instance; + switch (update.tag) { + case 1: + workInProgress = update.payload; + if ("function" === typeof workInProgress) { + newState = workInProgress.call(updateEventTime, newState, updateLane); + break a; + } + newState = workInProgress; + break a; + case 3: + workInProgress.flags = workInProgress.flags & -65537 | 128; + case 0: + workInProgress = update.payload; + updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; + if (null === updateLane || void 0 === updateLane) break a; + newState = assign({}, newState, updateLane); + break a; + case 2: + hasForceUpdate = !0; + } + } + null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); + } else updateEventTime = { + eventTime: updateEventTime, + lane: updateLane, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; + pendingQueue = pendingQueue.next; + if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; + } while (1); + null === current && (lastPendingUpdate = newState); + queue.baseState = lastPendingUpdate; + queue.firstBaseUpdate = firstPendingUpdate; + queue.lastBaseUpdate = current; + props = queue.shared.interleaved; + if (null !== props) { + queue = props; + do { + lastBaseUpdate |= queue.lane, queue = queue.next; + } while (queue !== props); + } else null === firstBaseUpdate && (queue.shared.lanes = 0); + workInProgressRootSkippedLanes |= lastBaseUpdate; + workInProgress$jscomp$0.lanes = lastBaseUpdate; + workInProgress$jscomp$0.memoizedState = newState; + } + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + finishedWork = finishedQueue.effects; + finishedQueue.effects = null; + if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { + var effect = finishedWork[finishedQueue], + callback = effect.callback; + if (null !== callback) { + effect.callback = null; + if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); + callback.call(instance); + } + } + } + var emptyRefsObject = new React.Component().refs; + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + ctor = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); + getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); + workInProgress.memoizedState = getDerivedStateFromProps; + 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); + } + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + payload = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== payload && entangleTransitions(payload, inst, lane); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + payload = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== payload && entangleTransitions(payload, inst, lane); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + callback = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== callback && entangleTransitions(callback, inst, lane); + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + workInProgress = workInProgress.stateNode; + return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = !1, + unmaskedContext = emptyContextObject; + var context = ctor.contextType; + "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); + ctor = new ctor(props, context); + workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; + ctor.updater = classComponentUpdater; + workInProgress.stateNode = ctor; + ctor._reactInternals = workInProgress; + isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return ctor; + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); + instance.state = workInProgress.memoizedState; + contextType = ctor.getDerivedStateFromProps; + "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); + "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); + } + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + if (element) { + if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + var inst = element.stateNode; + } + if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); + var resolvedInst = inst, + stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + current = function current(value) { + var refs = resolvedInst.refs; + refs === emptyRefsObject && (refs = resolvedInst.refs = {}); + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + current._stringRef = stringRef; + return current; + } + if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + return returnFiber; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + returnFiber = Object.prototype.toString.call(newChild); + throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); + } + function resolveLazy(lazyType) { + var init = lazyType._init; + return init(lazyType._payload); + } + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var deletions = returnFiber.deletions; + null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + for (; null !== currentFirstChild;) { + deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) { + null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + return returnFiber; + } + function useFiber(fiber, pendingProps) { + fiber = createWorkInProgress(fiber, pendingProps); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; + newFiber.flags |= 2; + return lastPlacedIndex; + } + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, textContent); + current.return = returnFiber; + return current; + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; + lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); + lanes.ref = coerceRef(returnFiber, current, element); + lanes.return = returnFiber; + return lanes; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, portal.children || []); + current.return = returnFiber; + return current; + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; + current = useFiber(current, fragment); + current.return = returnFiber; + return current; + } + function createChild(returnFiber, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + case REACT_LAZY_TYPE: + var init = newChild._init; + return createChild(returnFiber, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_LAZY_TYPE: + return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); + case REACT_LAZY_TYPE: + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) { + oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + } + return resultingFirstChild; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { + nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + } + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) { + step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + return iteratorFn; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { + step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return iteratorFn; + } + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + for (var key = newChild.key, child = currentFirstChild; null !== child;) { + if (child.key === key) { + key = newChild.type; + if (key === REACT_FRAGMENT_TYPE) { + if (7 === child.tag) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props.children); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props); + currentFirstChild.ref = coerceRef(returnFiber, child, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + deleteRemainingChildren(returnFiber, child); + break; + } else deleteChild(returnFiber, child); + child = child.sibling; + } + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); + } + return placeSingleChild(returnFiber); + case REACT_PORTAL_TYPE: + a: { + for (child = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === child) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || []); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + return placeSingleChild(returnFiber); + case REACT_LAZY_TYPE: + return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); + } + if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + throwOnInvalidObjectType(returnFiber, newChild); + } + return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance); + push(contextFiberStackCursor, fiber); + push(contextStackCursor$1, NO_CONTEXT); + pop(contextStackCursor$1); + push(contextStackCursor$1, { + isInAParentText: !1 + }); + } + function popHostContainer() { + pop(contextStackCursor$1); + pop(contextFiberStackCursor); + pop(rootInstanceStackCursor); + } + function pushHostContext(fiber) { + requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var JSCompiler_inline_result = fiber.type; + JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; + JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { + isInAParentText: JSCompiler_inline_result + } : context; + context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); + } + var suspenseStackCursor = createCursor(0); + function findFirstSuspended(row) { + for (var node = row; null !== node;) { + if (13 === node.tag) { + var state = node.memoizedState; + if (null !== state && (null === state.dehydrated || shim$1() || shim$1())) return node; + } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { + if (0 !== (node.flags & 128)) return node; + } else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === row) return null; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + workInProgressSources[i]._workInProgressVersionSecondary = null; + } + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes = 0, + currentlyRenderingFiber$1 = null, + currentHook = null, + workInProgressHook = null, + didScheduleRenderPhaseUpdate = !1, + didScheduleRenderPhaseUpdateDuringThisPass = !1, + globalClientIdCounter = 0; + function throwInvalidHookError() { + 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (null === prevDeps) return !1; + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (!objectIs(nextDeps[i], prevDeps[i])) return !1; + } + return !0; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = 0; + ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; + current = Component(props, secondArg); + if (didScheduleRenderPhaseUpdateDuringThisPass) { + nextRenderLanes = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = !1; + if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + nextRenderLanes += 1; + workInProgressHook = currentHook = null; + workInProgress.updateQueue = null; + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; + current = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + workInProgress = null !== currentHook && null !== currentHook.next; + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdate = !1; + if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + return current; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; + return workInProgressHook; + } + function updateWorkInProgressHook() { + if (null === currentHook) { + var nextCurrentHook = currentlyRenderingFiber$1.alternate; + nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; + } else nextCurrentHook = currentHook.next; + var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; + if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { + if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); + currentHook = nextCurrentHook; + nextCurrentHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; + } + return workInProgressHook; + } + function basicStateReducer(state, action) { + return "function" === typeof action ? action(state) : action; + } + function updateReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var current = currentHook, + baseQueue = current.baseQueue, + pendingQueue = queue.pending; + if (null !== pendingQueue) { + if (null !== baseQueue) { + var baseFirst = baseQueue.next; + baseQueue.next = pendingQueue.next; + pendingQueue.next = baseFirst; + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (null !== baseQueue) { + pendingQueue = baseQueue.next; + current = current.baseState; + var newBaseQueueFirst = baseFirst = null, + newBaseQueueLast = null, + update = pendingQueue; + do { + var updateLane = update.lane; + if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { + lane: 0, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; + currentlyRenderingFiber$1.lanes |= updateLane; + workInProgressRootSkippedLanes |= updateLane; + } + update = update.next; + } while (null !== update && update !== pendingQueue); + null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; + objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = current; + hook.baseState = baseFirst; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = current; + } + reducer = queue.interleaved; + if (null !== reducer) { + baseQueue = reducer; + do { + pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; + } while (baseQueue !== reducer); + } else null === baseQueue && (queue.lanes = 0); + return [hook.memoizedState, queue.dispatch]; + } + function rerenderReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var dispatch = queue.dispatch, + lastRenderPhaseUpdate = queue.pending, + newState = hook.memoizedState; + if (null !== lastRenderPhaseUpdate) { + queue.pending = null; + var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + do { + newState = reducer(newState, update.action), update = update.next; + } while (update !== lastRenderPhaseUpdate); + objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = newState; + null === hook.baseQueue && (hook.baseState = newState); + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function updateMutableSource() {} + function updateSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = updateWorkInProgressHook(), + nextSnapshot = getSnapshot(), + snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); + snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); + hook = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); + if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= 16384; + fiber = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + getSnapshot = currentlyRenderingFiber$1.updateQueue; + null === getSnapshot ? (getSnapshot = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); + } + function subscribeToStore(fiber, inst, subscribe) { + return subscribe(function () { + checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); + }); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + inst = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(inst, nextValue); + } catch (error) { + return !0; + } + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + "function" === typeof initialState && (initialState = initialState()); + hook.memoizedState = hook.baseState = initialState; + initialState = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = initialState; + initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); + return [hook.memoizedState, initialState]; + } + function pushEffect(tag, create, destroy, deps) { + tag = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + create = currentlyRenderingFiber$1.updateQueue; + null === create ? (create = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); + return tag; + } + function updateRef() { + return updateWorkInProgressHook().memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var destroy = void 0; + if (null !== currentHook) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); + return; + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); + } + function mountEffect(create, deps) { + return mountEffectImpl(8390656, 8, create, deps); + } + function updateEffect(create, deps) { + return updateEffectImpl(2048, 8, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(4, 2, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(4, 4, create, deps); + } + function imperativeHandleEffect(create, ref) { + if ("function" === typeof ref) return create = create(), ref(create), function () { + ref(null); + }; + if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { + ref.current = null; + }; + } + function updateImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + } + function mountDebugValue() {} + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + hook.memoizedState = [callback, deps]; + return callback; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + } + function updateDeferredValueImpl(hook, prevValue, value) { + if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; + objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); + return prevValue; + } + function startTransition(setPending, callback) { + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + setPending(!0); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + try { + setPending(!1), callback(); + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; + } + } + function updateId() { + return updateWorkInProgressHook().memoizedState; + } + function dispatchReducerAction(fiber, queue, action) { + var lane = requestUpdateLane(fiber); + action = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (enqueueUpdate$1(fiber, queue, action), action = requestEventTime(), fiber = scheduleUpdateOnFiber(fiber, lane, action), null !== fiber && entangleTransitionUpdate(fiber, queue, lane)); + } + function dispatchSetState(fiber, queue, action) { + var lane = requestUpdateLane(fiber), + update = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { + enqueueUpdate$1(fiber, queue, update); + var alternate = fiber.alternate; + if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { + var currentState = queue.lastRenderedState, + eagerState = alternate(currentState, action); + update.hasEagerState = !0; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) return; + } catch (error) {} finally {} + action = requestEventTime(); + fiber = scheduleUpdateOnFiber(fiber, lane, action); + null !== fiber && entangleTransitionUpdate(fiber, queue, lane); + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; + var pending = queue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + queue.pending = update; + } + function enqueueUpdate$1(fiber, queue, update) { + isInterleavedUpdate(fiber) ? (fiber = queue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [queue] : interleavedQueues.push(queue)) : (update.next = fiber.next, fiber.next = update), queue.interleaved = update) : (fiber = queue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), queue.pending = update); + } + function entangleTransitionUpdate(root, queue, lane) { + if (0 !== (lane & 4194240)) { + var queueLanes = queue.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + queue.lanes = lane; + markRootEntangled(root, lane); + } + } + var ContextOnlyDispatcher = { + readContext: readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnMount = { + readContext: readContext, + useCallback: function useCallback(callback, deps) { + mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; + return callback; + }, + useContext: readContext, + useEffect: mountEffect, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + return mountEffectImpl(4, 4, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + return mountEffectImpl(4, 2, create, deps); + }, + useMemo: function useMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + }, + useReducer: function useReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + initialArg = void 0 !== init ? init(initialArg) : initialArg; + hook.memoizedState = hook.baseState = initialArg; + reducer = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialArg + }; + hook.queue = reducer; + reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); + return [hook.memoizedState, reducer]; + }, + useRef: function useRef(initialValue) { + var hook = mountWorkInProgressHook(); + initialValue = { + current: initialValue + }; + return hook.memoizedState = initialValue; + }, + useState: mountState, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + return mountWorkInProgressHook().memoizedState = value; + }, + useTransition: function useTransition() { + var _mountState = mountState(!1), + isPending = _mountState[0]; + _mountState = startTransition.bind(null, _mountState[1]); + mountWorkInProgressHook().memoizedState = _mountState; + return [isPending, _mountState]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = mountWorkInProgressHook(); + var nextSnapshot = getSnapshot(); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + return nextSnapshot; + }, + useId: function useId() { + var hook = mountWorkInProgressHook(), + identifierPrefix = workInProgressRoot.identifierPrefix, + globalClientId = globalClientIdCounter++; + identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + return hook.memoizedState = identifierPrefix; + }, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnUpdate = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: updateReducer, + useRef: updateRef, + useState: function useState() { + return updateReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = updateReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnRerender = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: rerenderReducer, + useRef: updateRef, + useState: function useState() { + return rerenderReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = rerenderReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }; + function createCapturedValue(value, source) { + try { + var info = "", + node = source; + do { + info += describeFiber(node), node = node.return; + } while (node); + var JSCompiler_inline_result = info; + } catch (x) { + JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; + } + return { + value: value, + source: source, + stack: JSCompiler_inline_result + }; + } + if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + function logCapturedError(boundary, errorInfo) { + try { + !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ + componentStack: null !== errorInfo.stack ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null + }) && console.error(errorInfo.value); + } catch (e) { + setTimeout(function () { + throw e; + }); + } + } + var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + lane.payload = { + element: null + }; + var error = errorInfo.value; + lane.callback = function () { + hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); + logCapturedError(fiber, errorInfo); + }; + return lane; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if ("function" === typeof getDerivedStateFromError) { + var error = errorInfo.value; + lane.payload = function () { + return getDerivedStateFromError(error); + }; + lane.callback = function () { + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { + logCapturedError(fiber, errorInfo); + "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); + var stack = errorInfo.stack; + this.componentDidCatch(errorInfo.value, { + componentStack: null !== stack ? stack : "" + }); + }); + return lane; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + if (null === pingCache) { + pingCache = root.pingCache = new PossiblyWeakMap(); + var threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); + threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, + didReceiveUpdate = !1; + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + Component = Component.render; + var ref = workInProgress.ref; + prepareToReadContext(workInProgress, renderLanes); + nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, nextProps, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null === current) { + var type = Component.type; + if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); + current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + type = current.child; + if (0 === (current.lanes & renderLanes)) { + var prevProps = type.memoizedProps; + Component = Component.compare; + Component = null !== Component ? Component : shallowEqual; + if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= 1; + current = createWorkInProgress(type, nextProps); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null !== current) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); + } + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + nextChildren = nextProps.children, + prevState = null !== current ? current.memoizedState : null; + if ("hidden" === nextProps.mode) { + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { + if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { + baseLanes: current, + cachePool: null, + transitions: null + }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; + workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + nextProps = null !== prevState ? prevState.baseLanes : renderLanes; + push(subtreeRenderLanesCursor, subtreeRenderLanes); + subtreeRenderLanes |= nextProps; + } + } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + prepareToReadContext(workInProgress, renderLanes); + Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, Component, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + prepareToReadContext(workInProgress, renderLanes); + if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { + var instance = workInProgress.stateNode, + oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context, + contextType = Component.contextType; + "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); + var getDerivedStateFromProps = Component.getDerivedStateFromProps, + hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; + hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + oldContext = workInProgress.memoizedState; + oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); + } else { + instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + oldProps = workInProgress.memoizedProps; + contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); + instance.props = contextType; + hasNewLifecycles = workInProgress.pendingProps; + oldState = instance.context; + oldContext = Component.contextType; + "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); + var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; + (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); + hasForceUpdate = !1; + oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + var newState = workInProgress.memoizedState; + oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); + } + return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.flags & 128); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner$1.current = workInProgress; + var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); + workInProgress.flags |= 1; + null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); + workInProgress.memoizedState = shouldUpdate.state; + hasContext && invalidateContextProvider(workInProgress, Component, !0); + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: 0 + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: null, + transitions: null + }; + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + suspenseContext = suspenseStackCursor.current, + showFallback = !1, + didSuspend = 0 !== (workInProgress.flags & 128), + JSCompiler_temp; + (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); + if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; + push(suspenseStackCursor, suspenseContext & 1); + if (null === current) { + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim$1() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; + didSuspend = nextProps.children; + current = nextProps.fallback; + return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { + mode: "hidden", + children: didSuspend + }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); + } + suspenseContext = current.memoizedState; + if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); + if (showFallback) { + showFallback = nextProps.fallback; + didSuspend = workInProgress.mode; + suspenseContext = current.child; + JSCompiler_temp = suspenseContext.sibling; + var primaryChildProps = { + mode: "hidden", + children: nextProps.children + }; + 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); + null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); + showFallback.return = workInProgress; + nextProps.return = workInProgress; + nextProps.sibling = showFallback; + workInProgress.child = nextProps; + nextProps = showFallback; + showFallback = workInProgress.child; + didSuspend = current.child.memoizedState; + didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { + baseLanes: didSuspend.baseLanes | renderLanes, + cachePool: null, + transitions: didSuspend.transitions + }; + showFallback.memoizedState = didSuspend; + showFallback.childLanes = current.childLanes & ~renderLanes; + workInProgress.memoizedState = SUSPENDED_MARKER; + return nextProps; + } + showFallback = current.child; + current = showFallback.sibling; + nextProps = createWorkInProgress(showFallback, { + mode: "visible", + children: nextProps.children + }); + 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); + nextProps.return = workInProgress; + nextProps.sibling = null; + null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); + workInProgress.child = nextProps; + workInProgress.memoizedState = null; + return nextProps; + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { + primaryChildren = createFiberFromOffscreen({ + mode: "visible", + children: primaryChildren + }, workInProgress.mode, 0, null); + primaryChildren.return = workInProgress; + return workInProgress.child = primaryChildren; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); + current.flags |= 2; + workInProgress.memoizedState = null; + return current; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (didSuspend) { + if (workInProgress.flags & 256) return workInProgress.flags &= -257, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); + if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; + suspenseState = nextProps.fallback; + didSuspend = workInProgress.mode; + nextProps = createFiberFromOffscreen({ + mode: "visible", + children: nextProps.children + }, didSuspend, 0, null); + suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); + suspenseState.flags |= 2; + nextProps.return = workInProgress; + suspenseState.return = workInProgress; + nextProps.sibling = suspenseState; + workInProgress.child = nextProps; + 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); + workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return suspenseState; + } + if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); + if (shim$1()) return suspenseState = shim$1().errorMessage, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState ? Error(suspenseState) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")); + didSuspend = 0 !== (renderLanes & current.childLanes); + if (didReceiveUpdate || didSuspend) { + nextProps = workInProgressRoot; + if (null !== nextProps) { + switch (renderLanes & -renderLanes) { + case 4: + didSuspend = 2; + break; + case 16: + didSuspend = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + didSuspend = 32; + break; + case 536870912: + didSuspend = 268435456; + break; + default: + didSuspend = 0; + } + nextProps = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; + 0 !== nextProps && nextProps !== suspenseState.retryLane && (suspenseState.retryLane = nextProps, scheduleUpdateOnFiber(current, nextProps, -1)); + } + renderDidSuspendDelayIfPossible(); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + } + if (shim$1()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim$1(), null; + current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); + current.flags |= 4096; + return current; + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes |= renderLanes; + var alternate = fiber.alternate; + null !== alternate && (alternate.lanes |= renderLanes); + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + null === renderState ? workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); + } + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + revealOrder = nextProps.revealOrder, + tailMode = nextProps.tail; + reconcileChildren(current, workInProgress, nextProps.children, renderLanes); + nextProps = suspenseStackCursor.current; + if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { + if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { + if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { + current.child.return = current; + current = current.child; + continue; + } + if (current === workInProgress) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === workInProgress) break a; + current = current.return; + } + current.sibling.return = current.return; + current = current.sibling; + } + nextProps &= 1; + } + push(suspenseStackCursor, nextProps); + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { + case "forwards": + renderLanes = workInProgress.child; + for (revealOrder = null; null !== renderLanes;) { + current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + } + renderLanes = revealOrder; + null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); + initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); + break; + case "backwards": + renderLanes = null; + revealOrder = workInProgress.child; + for (workInProgress.child = null; null !== revealOrder;) { + current = revealOrder.alternate; + if (null !== current && null === findFirstSuspended(current)) { + workInProgress.child = revealOrder; + break; + } + current = revealOrder.sibling; + revealOrder.sibling = renderLanes; + renderLanes = revealOrder; + revealOrder = current; + } + initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); + break; + case "together": + initSuspenseListRenderState(workInProgress, !1, null, null, void 0); + break; + default: + workInProgress.memoizedState = null; + } + return workInProgress.child; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + null !== current && (workInProgress.dependencies = current.dependencies); + workInProgressRootSkippedLanes |= workInProgress.lanes; + if (0 === (renderLanes & workInProgress.childLanes)) return null; + if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); + if (null !== workInProgress.child) { + current = workInProgress.child; + renderLanes = createWorkInProgress(current, current.pendingProps); + workInProgress.child = renderLanes; + for (renderLanes.return = workInProgress; null !== current.sibling;) { + current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; + } + renderLanes.sibling = null; + } + return workInProgress.child; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + case 5: + pushHostContext(workInProgress); + break; + case 1: + isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); + break; + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case 10: + var context = workInProgress.type._context, + nextValue = workInProgress.memoizedProps.value; + push(valueCursor, context._currentValue2); + context._currentValue2 = nextValue; + break; + case 13: + context = workInProgress.memoizedState; + if (null !== context) { + if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; + if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); + push(suspenseStackCursor, suspenseStackCursor.current & 1); + current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + return null !== current ? current.sibling : null; + } + push(suspenseStackCursor, suspenseStackCursor.current & 1); + break; + case 19: + context = 0 !== (renderLanes & workInProgress.childLanes); + if (0 !== (current.flags & 128)) { + if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); + workInProgress.flags |= 128; + } + nextValue = workInProgress.memoizedState; + null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); + push(suspenseStackCursor, suspenseStackCursor.current); + if (context) break;else return null; + case 22: + case 23: + return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + function hadNoMutationsEffects(current, completedWork) { + if (null !== current && current.child === completedWork.child) return !0; + if (0 !== (completedWork.flags & 16)) return !1; + for (current = completedWork.child; null !== current;) { + if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854)) return !1; + current = current.sibling; + } + return !0; + } + var _appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; + _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag) { + var instance = node.stateNode; + needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); + appendChildNode(parent.node, instance.node); + } else if (6 === node.tag) { + instance = node.stateNode; + if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); + appendChildNode(parent.node, instance.node); + } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), _appendAllChildren(parent, node, !0, !0);else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag) { + var instance = node.stateNode; + needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); + appendChildNodeToSet(containerChildSet, instance.node); + } else if (6 === node.tag) { + instance = node.stateNode; + if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); + appendChildNodeToSet(containerChildSet, instance.node); + } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), appendAllChildrenToContainer(containerChildSet, node, !0, !0);else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + updateHostContainer = function updateHostContainer(current, workInProgress) { + var portalOrRoot = workInProgress.stateNode; + if (!hadNoMutationsEffects(current, workInProgress)) { + current = portalOrRoot.containerInfo; + var newChildSet = createChildNodeSet(current); + appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1); + portalOrRoot.pendingChildren = newChildSet; + workInProgress.flags |= 4; + completeRoot(current, newChildSet); + } + }; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { + type = current.stateNode; + var oldProps = current.memoizedProps; + if ((current = hadNoMutationsEffects(current, workInProgress)) && oldProps === newProps) workInProgress.stateNode = type;else { + var recyclableInstance = workInProgress.stateNode; + requiredContext(contextStackCursor$1.current); + var updatePayload = null; + oldProps !== newProps && (oldProps = diffProperties(null, oldProps, newProps, recyclableInstance.canonical.viewConfig.validAttributes), recyclableInstance.canonical.currentProps = newProps, updatePayload = oldProps); + current && null === updatePayload ? workInProgress.stateNode = type : (newProps = updatePayload, oldProps = type.node, type = { + node: current ? null !== newProps ? cloneNodeWithNewProps(oldProps, newProps) : cloneNode(oldProps) : null !== newProps ? cloneNodeWithNewChildrenAndProps(oldProps, newProps) : cloneNodeWithNewChildren(oldProps), + canonical: type.canonical + }, workInProgress.stateNode = type, current ? workInProgress.flags |= 4 : _appendAllChildren(type, workInProgress, !1, !1)); + } + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText ? (current = requiredContext(rootInstanceStackCursor.current), oldText = requiredContext(contextStackCursor$1.current), workInProgress.stateNode = createTextInstance(newText, current, oldText, workInProgress), workInProgress.flags |= 4) : workInProgress.stateNode = current.stateNode; + }; + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + hasRenderedATailFallback = renderState.tail; + for (var lastTailNode = null; null !== hasRenderedATailFallback;) { + null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + } + null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; + break; + case "collapsed": + lastTailNode = renderState.tail; + for (var lastTailNode$60 = null; null !== lastTailNode;) { + null !== lastTailNode.alternate && (lastTailNode$60 = lastTailNode), lastTailNode = lastTailNode.sibling; + } + null === lastTailNode$60 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$60.sibling = null; + } + } + function bubbleProperties(completedWork) { + var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, + newChildLanes = 0, + subtreeFlags = 0; + if (didBailout) for (var child$61 = completedWork.child; null !== child$61;) { + newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags & 14680064, subtreeFlags |= child$61.flags & 14680064, child$61.return = completedWork, child$61 = child$61.sibling; + } else for (child$61 = completedWork.child; null !== child$61;) { + newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags, subtreeFlags |= child$61.flags, child$61.return = completedWork, child$61 = child$61.sibling; + } + completedWork.subtreeFlags |= subtreeFlags; + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return bubbleProperties(workInProgress), null; + case 1: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 3: + return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 5: + popHostContext(workInProgress); + renderLanes = requiredContext(rootInstanceStackCursor.current); + var type = workInProgress.type; + if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { + if (!newProps) { + if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + bubbleProperties(workInProgress); + return null; + } + requiredContext(contextStackCursor$1.current); + current = nextReactTag; + nextReactTag += 2; + type = getViewConfigForType(type); + var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); + renderLanes = createNode(current, type.uiViewClassName, renderLanes, updatePayload, workInProgress); + current = new ReactFabricHostComponent(current, type, newProps, workInProgress); + current = { + node: renderLanes, + canonical: current + }; + _appendAllChildren(current, workInProgress, !1, !1); + workInProgress.stateNode = current; + null !== workInProgress.ref && (workInProgress.flags |= 512); + } + bubbleProperties(workInProgress); + return null; + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + current = requiredContext(rootInstanceStackCursor.current); + renderLanes = requiredContext(contextStackCursor$1.current); + workInProgress.stateNode = createTextInstance(newProps, current, renderLanes, workInProgress); + } + bubbleProperties(workInProgress); + return null; + case 13: + pop(suspenseStackCursor); + newProps = workInProgress.memoizedState; + if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { + if (null !== newProps && null !== newProps.dehydrated) { + if (null === current) { + throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); + workInProgress.flags |= 4; + bubbleProperties(workInProgress); + type = !1; + } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; + if (!type) return workInProgress.flags & 65536 ? workInProgress : null; + } + if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; + renderLanes = null !== newProps; + renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); + null !== workInProgress.updateQueue && (workInProgress.flags |= 4); + bubbleProperties(workInProgress); + return null; + case 4: + return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 10: + return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; + case 17: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 19: + pop(suspenseStackCursor); + type = workInProgress.memoizedState; + if (null === type) return bubbleProperties(workInProgress), null; + newProps = 0 !== (workInProgress.flags & 128); + updatePayload = type.rendering; + if (null === updatePayload) { + if (newProps) cutOffTailIfNeeded(type, !1);else { + if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { + updatePayload = findFirstSuspended(current); + if (null !== updatePayload) { + workInProgress.flags |= 128; + cutOffTailIfNeeded(type, !1); + current = updatePayload.updateQueue; + null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); + workInProgress.subtreeFlags = 0; + current = renderLanes; + for (renderLanes = workInProgress.child; null !== renderLanes;) { + newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { + lanes: type.lanes, + firstContext: type.firstContext + }), renderLanes = renderLanes.sibling; + } + push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); + return workInProgress.child; + } + current = current.sibling; + } + null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + } + } else { + if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { + if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; + } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); + } + if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; + bubbleProperties(workInProgress); + return null; + case 22: + case 23: + return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && bubbleProperties(workInProgress) : bubbleProperties(workInProgress), null; + case 24: + return null; + case 25: + return null; + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function unwindWork(current, workInProgress) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 1: + return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 3: + return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 5: + return popHostContext(workInProgress), null; + case 13: + pop(suspenseStackCursor); + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + current = workInProgress.flags; + return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 19: + return pop(suspenseStackCursor), null; + case 4: + return popHostContainer(), null; + case 10: + return popProvider(workInProgress.type._context), null; + case 22: + case 23: + return popRenderLanes(), null; + case 24: + return null; + default: + return null; + } + } + var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, + nextEffect = null; + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } else ref.current = null; + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var shouldFireAfterActiveInstanceBlur = !1; + function commitBeforeMutationEffects(root, firstChild) { + for (nextEffect = firstChild; null !== nextEffect;) { + if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { + root = nextEffect; + try { + var current = root.alternate; + if (0 !== (root.flags & 1024)) switch (root.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = root.stateNode, + snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + case 3: + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + 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."); + } + } catch (error) { + captureCommitPhaseError(root, root.return, error); + } + firstChild = root.sibling; + if (null !== firstChild) { + firstChild.return = root.return; + nextEffect = firstChild; + break; + } + nextEffect = root.return; + } + } + current = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = !1; + return current; + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; + if (null !== updateQueue) { + var effect = updateQueue = updateQueue.next; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = void 0; + void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + } + effect = effect.next; + } while (effect !== updateQueue); + } + } + function commitHookEffectListMount(flags, finishedWork) { + finishedWork = finishedWork.updateQueue; + finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; + if (null !== finishedWork) { + var effect = finishedWork = finishedWork.next; + do { + if ((effect.tag & flags) === flags) { + var create$73 = effect.create; + effect.destroy = create$73(); + } + effect = effect.next; + } while (effect !== finishedWork); + } + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + fiber.stateNode = null; + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + fiber.updateQueue = null; + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + for (parent = parent.child; null !== parent;) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; + } + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { + injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); + } catch (err) {} + switch (deletedFiber.tag) { + case 5: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + case 6: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 18: + break; + case 4: + createChildNodeSet(deletedFiber.stateNode.containerInfo); + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 0: + case 11: + case 14: + case 15: + var updateQueue = deletedFiber.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.lastEffect, null !== updateQueue)) { + var effect = updateQueue = updateQueue.next; + do { + var _effect = effect, + destroy = _effect.destroy; + _effect = _effect.tag; + void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); + effect = effect.next; + } while (effect !== updateQueue); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 1: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + updateQueue = deletedFiber.stateNode; + if ("function" === typeof updateQueue.componentWillUnmount) try { + updateQueue.props = deletedFiber.memoizedProps, updateQueue.state = deletedFiber.memoizedState, updateQueue.componentWillUnmount(); + } catch (error) { + captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 21: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 22: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + default: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (null !== wakeables) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); + }); + } + } + function recursivelyTraverseMutationEffects(root, parentFiber) { + var deletions = parentFiber.deletions; + if (null !== deletions) for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffectsOnFiber(root, parentFiber, childToDelete); + var alternate = childToDelete.alternate; + null !== alternate && (alternate.return = null); + childToDelete.return = null; + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) { + commitMutationEffectsOnFiber(parentFiber, root), parentFiber = parentFiber.sibling; + } + } + function commitMutationEffectsOnFiber(finishedWork, root) { + var current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + try { + commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + try { + commitHookEffectListUnmount(5, finishedWork, finishedWork.return); + } catch (error$77) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$77); + } + } + break; + case 1: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 5: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 6: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 3: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 4: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 13: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + root = finishedWork.child; + root.flags & 8192 && null !== root.memoizedState && (null === root.alternate || null === root.alternate.memoizedState) && (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 22: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 19: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 21: + break; + default: + recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + flags & 2 && (finishedWork.flags &= -3); + flags & 4096 && (finishedWork.flags &= -4097); + } + function commitLayoutEffects(finishedWork) { + for (nextEffect = finishedWork; null !== nextEffect;) { + var fiber = nextEffect, + firstChild = fiber.child; + if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { + firstChild = nextEffect; + if (0 !== (firstChild.flags & 8772)) { + var current = firstChild.alternate; + try { + if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(5, firstChild); + break; + case 1: + var instance = firstChild.stateNode; + if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { + var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); + instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = firstChild.updateQueue; + null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); + break; + case 3: + var updateQueue$74 = firstChild.updateQueue; + if (null !== updateQueue$74) { + current = null; + if (null !== firstChild.child) switch (firstChild.child.tag) { + case 5: + current = firstChild.child.stateNode.canonical; + break; + case 1: + current = firstChild.child.stateNode; + } + commitUpdateQueue(firstChild, updateQueue$74, current); + } + break; + case 5: + if (null === current && firstChild.flags & 4) throw Error("The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."); + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + 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 (firstChild.flags & 512) { + current = void 0; + var ref = firstChild.ref; + if (null !== ref) { + var instance$jscomp$0 = firstChild.stateNode; + switch (firstChild.tag) { + case 5: + current = instance$jscomp$0.canonical; + break; + default: + current = instance$jscomp$0; + } + "function" === typeof ref ? ref(current) : ref.current = current; + } + } + } catch (error) { + captureCommitPhaseError(firstChild, firstChild.return, error); + } + } + if (firstChild === fiber) { + nextEffect = null; + break; + } + current = firstChild.sibling; + if (null !== current) { + current.return = firstChild.return; + nextEffect = current; + break; + } + nextEffect = firstChild.return; + } + } + } + var ceil = Math.ceil, + ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + executionContext = 0, + workInProgressRoot = null, + workInProgress = null, + workInProgressRootRenderLanes = 0, + subtreeRenderLanes = 0, + subtreeRenderLanesCursor = createCursor(0), + workInProgressRootExitStatus = 0, + workInProgressRootFatalError = null, + workInProgressRootSkippedLanes = 0, + workInProgressRootInterleavedUpdatedLanes = 0, + workInProgressRootPingedLanes = 0, + workInProgressRootConcurrentErrors = null, + workInProgressRootRecoverableErrors = null, + globalMostRecentFallbackTime = 0, + workInProgressRootRenderTargetTime = Infinity, + workInProgressTransitions = null, + hasUncaughtError = !1, + firstUncaughtError = null, + legacyErrorBoundariesThatAlreadyFailed = null, + rootDoesHavePassiveEffects = !1, + rootWithPendingPassiveEffects = null, + pendingPassiveEffectsLanes = 0, + nestedUpdateCount = 0, + rootWithNestedUpdates = null, + currentEventTime = -1, + currentEventTransitionLane = 0; + function requestEventTime() { + return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); + } + function requestUpdateLane(fiber) { + if (0 === (fiber.mode & 1)) return 1; + if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; + if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; + fiber = currentUpdatePriority; + if (0 === fiber) a: { + fiber = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; + if (null != fiber) switch (fiber) { + case FabricDiscretePriority: + fiber = 1; + break a; + } + fiber = 16; + } + return fiber; + } + function scheduleUpdateOnFiber(fiber, lane, eventTime) { + if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + var root = markUpdateLaneFromFiberToRoot(fiber, lane); + if (null === root) return null; + markRootUpdated(root, lane, eventTime); + if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + return root; + } + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes |= lane; + var alternate = sourceFiber.alternate; + null !== alternate && (alternate.lanes |= lane); + alternate = sourceFiber; + for (sourceFiber = sourceFiber.return; null !== sourceFiber;) { + sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; + } + return 3 === alternate.tag ? alternate.stateNode : null; + } + function isInterleavedUpdate(fiber) { + return (null !== workInProgressRoot || null !== interleavedQueues) && 0 !== (fiber.mode & 1) && 0 === (executionContext & 2); + } + function ensureRootIsScheduled(root, currentTime) { + for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5, + expirationTime = expirationTimes[index$5]; + if (-1 === expirationTime) { + if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + } else expirationTime <= currentTime && (root.expiredLanes |= lane); + lanes &= ~lane; + } + suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { + null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); + if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { + switch (lanesToEventPriority(suspendedLanes)) { + case 1: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; + break; + case 4: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; + break; + case 16: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + break; + case 536870912: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; + break; + default: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + } + existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = currentTime; + root.callbackNode = existingCallbackNode; + } + } + function performConcurrentWorkOnRoot(root, didTimeout) { + currentEventTime = -1; + currentEventTransitionLane = 0; + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + var originalCallbackNode = root.callbackNode; + if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === lanes) return null; + if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { + didTimeout = lanes; + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (1); + resetContextDependencies(); + ReactCurrentDispatcher$2.current = prevDispatcher; + executionContext = prevExecutionContext; + null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); + } + if (0 !== didTimeout) { + 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); + if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + if (6 === didTimeout) markRootSuspended$1(root, lanes);else { + prevExecutionContext = root.current.alternate; + if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + root.finishedWork = prevExecutionContext; + root.finishedLanes = lanes; + switch (didTimeout) { + case 0: + case 1: + throw Error("Root did not complete. This is a bug in React."); + case 2: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 3: + markRootSuspended$1(root, lanes); + if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { + if (0 !== getNextLanes(root, 0)) break; + prevExecutionContext = root.suspendedLanes; + if ((prevExecutionContext & lanes) !== lanes) { + requestEventTime(); + root.pingedLanes |= root.suspendedLanes & prevExecutionContext; + break; + } + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 4: + markRootSuspended$1(root, lanes); + if ((lanes & 4194240) === lanes) break; + didTimeout = root.eventTimes; + for (prevExecutionContext = -1; 0 < lanes;) { + var index$4 = 31 - clz32(lanes); + prevDispatcher = 1 << index$4; + index$4 = didTimeout[index$4]; + index$4 > prevExecutionContext && (prevExecutionContext = index$4); + lanes &= ~prevDispatcher; + } + lanes = prevExecutionContext; + lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; + lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; + if (10 < lanes) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 5: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + default: + throw Error("Unknown root exit status."); + } + } + } + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); + root = renderRootSync(root, errorRetryLanes); + 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); + return root; + } + function queueRecoverableErrors(errors) { + null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + function isRenderConsistentWithExternalStores(finishedWork) { + for (var node = finishedWork;;) { + if (node.flags & 16384) { + var updateQueue = node.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { + var check = updateQueue[i], + getSnapshot = check.getSnapshot; + check = check.value; + try { + if (!objectIs(getSnapshot(), check)) return !1; + } catch (error) { + return !1; + } + } + } + updateQueue = node.child; + if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { + if (node === finishedWork) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === finishedWork) return !0; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return !0; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes &= ~workInProgressRootPingedLanes; + suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + for (root = root.expirationTimes; 0 < suspendedLanes;) { + var index$6 = 31 - clz32(suspendedLanes), + lane = 1 << index$6; + root[index$6] = -1; + suspendedLanes &= ~lane; + } + } + function performSyncWorkOnRoot(root) { + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + flushPassiveEffects(); + var lanes = getNextLanes(root, 0); + if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; + var exitStatus = renderRootSync(root, lanes); + if (0 !== root.tag && 2 === exitStatus) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); + } + if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; + if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); + root.finishedWork = root.current.alternate; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return null; + } + function popRenderLanes() { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = 0; + var timeoutHandle = root.timeoutHandle; + -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); + if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { + var interruptedWork = timeoutHandle; + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case 1: + interruptedWork = interruptedWork.type.childContextTypes; + null !== interruptedWork && void 0 !== interruptedWork && popContext(); + break; + case 3: + popHostContainer(); + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + resetWorkInProgressVersions(); + break; + case 5: + popHostContext(interruptedWork); + break; + case 4: + popHostContainer(); + break; + case 13: + pop(suspenseStackCursor); + break; + case 19: + pop(suspenseStackCursor); + break; + case 10: + popProvider(interruptedWork.type._context); + break; + case 22: + case 23: + popRenderLanes(); + } + timeoutHandle = timeoutHandle.return; + } + workInProgressRoot = root; + workInProgress = root = createWorkInProgress(root.current, null); + workInProgressRootRenderLanes = subtreeRenderLanes = lanes; + workInProgressRootExitStatus = 0; + workInProgressRootFatalError = null; + workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; + workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; + if (null !== interleavedQueues) { + for (lanes = 0; lanes < interleavedQueues.length; lanes++) { + if (timeoutHandle = interleavedQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { + timeoutHandle.interleaved = null; + var firstInterleavedUpdate = interruptedWork.next, + lastPendingUpdate = timeoutHandle.pending; + if (null !== lastPendingUpdate) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + interruptedWork.next = firstPendingUpdate; + } + timeoutHandle.pending = interruptedWork; + } + } + interleavedQueues = null; + } + return root; + } + function handleError(root$jscomp$0, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { + var queue = hook.queue; + null !== queue && (queue.pending = null); + hook = hook.next; + } + didScheduleRenderPhaseUpdate = !1; + } + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdateDuringThisPass = !1; + ReactCurrentOwner$2.current = null; + if (null === erroredWork || null === erroredWork.return) { + workInProgressRootExitStatus = 1; + workInProgressRootFatalError = thrownValue; + workInProgress = null; + break; + } + a: { + var root = root$jscomp$0, + returnFiber = erroredWork.return, + sourceFiber = erroredWork, + value = thrownValue; + thrownValue = workInProgressRootRenderLanes; + sourceFiber.flags |= 32768; + if (null !== value && "object" === typeof value && "function" === typeof value.then) { + var wakeable = value, + sourceFiber$jscomp$0 = sourceFiber, + tag = sourceFiber$jscomp$0.tag; + if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { + var currentSource = sourceFiber$jscomp$0.alternate; + currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); + } + b: { + sourceFiber$jscomp$0 = returnFiber; + do { + var JSCompiler_temp; + if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { + var nextState = sourceFiber$jscomp$0.memoizedState; + JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; + } + if (JSCompiler_temp) { + var suspenseBoundary = sourceFiber$jscomp$0; + break b; + } + sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; + } while (null !== sourceFiber$jscomp$0); + suspenseBoundary = null; + } + if (null !== suspenseBoundary) { + suspenseBoundary.flags &= -257; + value = suspenseBoundary; + sourceFiber$jscomp$0 = thrownValue; + if (0 === (value.mode & 1)) { + if (value === returnFiber) value.flags |= 65536;else { + value.flags |= 128; + sourceFiber.flags |= 131072; + sourceFiber.flags &= -52805; + if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { + var update = createUpdate(-1, 1); + update.tag = 2; + enqueueUpdate(sourceFiber, update); + } + sourceFiber.lanes |= 1; + } + } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; + suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); + thrownValue = suspenseBoundary; + root = wakeable; + var wakeables = thrownValue.updateQueue; + if (null === wakeables) { + var updateQueue = new Set(); + updateQueue.add(root); + thrownValue.updateQueue = updateQueue; + } else wakeables.add(root); + break a; + } else { + if (0 === (thrownValue & 1)) { + attachPingListener(root, wakeable, thrownValue); + renderDidSuspendDelayIfPossible(); + break a; + } + value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + } + } + root = value; + 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); + null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); + value = createCapturedValue(value, sourceFiber); + root = returnFiber; + do { + switch (root.tag) { + case 3: + wakeable = value; + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$jscomp$0); + break a; + case 1: + wakeable = value; + var ctor = root.type, + instance = root.stateNode; + if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$32 = createClassErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$32); + break a; + } + } + root = root.return; + } while (null !== root); + } + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); + continue; + } + break; + } while (1); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; + } + function renderDidSuspendDelayIfPossible() { + if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; + null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (1); + resetContextDependencies(); + executionContext = prevExecutionContext; + ReactCurrentDispatcher$2.current = prevDispatcher; + if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + return workInProgressRootExitStatus; + } + function workLoopSync() { + for (; null !== workInProgress;) { + performUnitOfWork(workInProgress); + } + } + function workLoopConcurrent() { + for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) { + performUnitOfWork(workInProgress); + } + } + function performUnitOfWork(unitOfWork) { + var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + unitOfWork = completedWork.return; + if (0 === (completedWork.flags & 32768)) { + if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { + workInProgress = current; + return; + } + } else { + current = unwindWork(current, completedWork); + if (null !== current) { + current.flags &= 32767; + workInProgress = current; + return; + } + if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { + workInProgressRootExitStatus = 6; + workInProgress = null; + return; + } + } + completedWork = completedWork.sibling; + if (null !== completedWork) { + workInProgress = completedWork; + return; + } + workInProgress = completedWork = unitOfWork; + } while (null !== completedWork); + 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = currentUpdatePriority, + prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + flushPassiveEffects(); + } while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + transitions = root.finishedWork; + var lanes = root.finishedLanes; + if (null === transitions) return null; + root.finishedWork = null; + root.finishedLanes = 0; + if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + root.callbackNode = null; + root.callbackPriority = 0; + var remainingLanes = transitions.lanes | transitions.childLanes; + markRootFinished(root, remainingLanes); + root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); + 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { + flushPassiveEffects(); + return null; + })); + remainingLanes = 0 !== (transitions.flags & 15990); + if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { + remainingLanes = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 1; + var prevExecutionContext = executionContext; + executionContext |= 4; + ReactCurrentOwner$2.current = null; + commitBeforeMutationEffects(root, transitions); + commitMutationEffectsOnFiber(transitions, root); + root.current = transitions; + commitLayoutEffects(transitions, root, lanes); + _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); + executionContext = prevExecutionContext; + currentUpdatePriority = previousPriority; + ReactCurrentBatchConfig$2.transition = remainingLanes; + } else root.current = transitions; + rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); + remainingLanes = root.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + onCommitRoot(transitions.stateNode, renderPriorityLevel); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) { + renderPriorityLevel(recoverableErrors[transitions]); + } + if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; + 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); + remainingLanes = root.pendingLanes; + 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (null !== rootWithPendingPassiveEffects) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), + prevTransition = ReactCurrentBatchConfig$2.transition, + previousPriority = currentUpdatePriority; + try { + ReactCurrentBatchConfig$2.transition = null; + currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; + if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { + renderPriority = rootWithPendingPassiveEffects; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsLanes = 0; + if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); + var prevExecutionContext = executionContext; + executionContext |= 4; + for (nextEffect = renderPriority.current; null !== nextEffect;) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (nextEffect.flags & 16)) { + var deletions = fiber.deletions; + if (null !== deletions) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + for (nextEffect = fiberToDelete; null !== nextEffect;) { + var fiber$jscomp$0 = nextEffect; + switch (fiber$jscomp$0.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); + } + var child$jscomp$0 = fiber$jscomp$0.child; + if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { + fiber$jscomp$0 = nextEffect; + var sibling = fiber$jscomp$0.sibling, + returnFiber = fiber$jscomp$0.return; + detachFiberAfterEffects(fiber$jscomp$0); + if (fiber$jscomp$0 === fiberToDelete) { + nextEffect = null; + break; + } + if (null !== sibling) { + sibling.return = returnFiber; + nextEffect = sibling; + break; + } + nextEffect = returnFiber; + } + } + } + var previousFiber = fiber.alternate; + if (null !== previousFiber) { + var detachedChild = previousFiber.child; + if (null !== detachedChild) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (null !== detachedChild); + } + } + nextEffect = fiber; + } + } + if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { + fiber = nextEffect; + if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(9, fiber, fiber.return); + } + var sibling$jscomp$0 = fiber.sibling; + if (null !== sibling$jscomp$0) { + sibling$jscomp$0.return = fiber.return; + nextEffect = sibling$jscomp$0; + break b; + } + nextEffect = fiber.return; + } + } + var finishedWork = renderPriority.current; + for (nextEffect = finishedWork; null !== nextEffect;) { + child = nextEffect; + var firstChild = child.child; + if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { + deletions = nextEffect; + if (0 !== (deletions.flags & 2048)) try { + switch (deletions.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(9, deletions); + } + } catch (error) { + captureCommitPhaseError(deletions, deletions.return, error); + } + if (deletions === child) { + nextEffect = null; + break b; + } + var sibling$jscomp$1 = deletions.sibling; + if (null !== sibling$jscomp$1) { + sibling$jscomp$1.return = deletions.return; + nextEffect = sibling$jscomp$1; + break b; + } + nextEffect = deletions.return; + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { + injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); + } catch (err) {} + JSCompiler_inline_result = !0; + } + return JSCompiler_inline_result; + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + return !1; + } + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + sourceFiber = createCapturedValue(error, sourceFiber); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); + enqueueUpdate(rootFiber, sourceFiber); + sourceFiber = requestEventTime(); + rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1); + null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { + if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { + if (3 === nearestMountedAncestor.tag) { + captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); + break; + } else if (1 === nearestMountedAncestor.tag) { + var instance = nearestMountedAncestor.stateNode; + if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + sourceFiber = createCapturedValue(error, sourceFiber); + sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); + enqueueUpdate(nearestMountedAncestor, sourceFiber); + sourceFiber = requestEventTime(); + nearestMountedAncestor = markUpdateLaneFromFiberToRoot(nearestMountedAncestor, 1); + null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); + break; + } + } + nearestMountedAncestor = nearestMountedAncestor.return; + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + null !== pingCache && pingCache.delete(wakeable); + wakeable = requestEventTime(); + root.pingedLanes |= root.suspendedLanes & pingedLanes; + workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); + ensureRootIsScheduled(root, wakeable); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + var eventTime = requestEventTime(); + boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState, + retryLane = 0; + null !== suspenseState && (retryLane = suspenseState.retryLane); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = 0; + switch (boundaryFiber.tag) { + case 13: + var retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + null !== suspenseState && (retryLane = suspenseState.retryLane); + break; + case 19: + retryCache = boundaryFiber.stateNode; + break; + default: + throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + null !== retryCache && retryCache.delete(wakeable); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + var beginWork$1; + beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { + if (null !== current) { + if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { + if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; + } + } else didReceiveUpdate = !1; + workInProgress.lanes = 0; + switch (workInProgress.tag) { + case 2: + var Component = workInProgress.type; + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + var context = getMaskedContext(workInProgress, contextStackCursor.current); + prepareToReadContext(workInProgress, renderLanes); + context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); + workInProgress.flags |= 1; + if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { + workInProgress.tag = 1; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; + initializeUpdateQueue(workInProgress); + context.updater = classComponentUpdater; + workInProgress.stateNode = context; + context._reactInternals = workInProgress; + mountClassInstance(workInProgress, Component, current, renderLanes); + workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); + } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; + return workInProgress; + case 16: + Component = workInProgress.elementType; + a: { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + context = Component._init; + Component = context(Component._payload); + workInProgress.type = Component; + context = workInProgress.tag = resolveLazyComponentTag(Component); + current = resolveDefaultProps(Component, current); + switch (context) { + case 0: + workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 1: + workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 11: + workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); + break a; + case 14: + workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); + break a; + } + throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); + } + return workInProgress; + case 0: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); + case 1: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); + case 3: + pushHostRootContext(workInProgress); + if (null === current) throw Error("Should have a current fiber. This is a bug in React."); + context = workInProgress.pendingProps; + Component = workInProgress.memoizedState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, context, null, renderLanes); + context = workInProgress.memoizedState.element; + context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); + return workInProgress; + case 5: + return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 6: + return null; + case 13: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 11: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); + case 7: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; + case 8: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 12: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 10: + a: { + Component = workInProgress.type._context; + context = workInProgress.pendingProps; + hasContext = workInProgress.memoizedProps; + var newValue = context.value; + push(valueCursor, Component._currentValue2); + Component._currentValue2 = newValue; + if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { + if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { + workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + break a; + } + } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { + var list = hasContext.dependencies; + if (null !== list) { + newValue = hasContext.child; + for (var dependency = list.firstContext; null !== dependency;) { + if (dependency.context === Component) { + if (1 === hasContext.tag) { + dependency = createUpdate(-1, renderLanes & -renderLanes); + dependency.tag = 2; + var updateQueue = hasContext.updateQueue; + if (null !== updateQueue) { + updateQueue = updateQueue.shared; + var pending = updateQueue.pending; + null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); + updateQueue.pending = dependency; + } + } + hasContext.lanes |= renderLanes; + dependency = hasContext.alternate; + null !== dependency && (dependency.lanes |= renderLanes); + scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); + list.lanes |= renderLanes; + break; + } + dependency = dependency.next; + } + } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { + newValue = hasContext.return; + if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); + newValue.lanes |= renderLanes; + list = newValue.alternate; + null !== list && (list.lanes |= renderLanes); + scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); + newValue = hasContext.sibling; + } else newValue = hasContext.child; + if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { + if (newValue === workInProgress) { + newValue = null; + break; + } + hasContext = newValue.sibling; + if (null !== hasContext) { + hasContext.return = newValue.return; + newValue = hasContext; + break; + } + newValue = newValue.return; + } + hasContext = newValue; + } + reconcileChildren(current, workInProgress, context.children, renderLanes); + workInProgress = workInProgress.child; + } + return workInProgress; + case 9: + return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 14: + return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); + case 15: + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + case 17: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); + case 19: + return updateSuspenseListComponent(current, workInProgress, renderLanes); + case 22: + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + }; + function scheduleCallback$1(priorityLevel, callback) { + return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + } + function shouldConstruct(Component) { + Component = Component.prototype; + return !(!Component || !Component.isReactComponent); + } + function resolveLazyComponentTag(Component) { + if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; + if (void 0 !== Component && null !== Component) { + Component = Component.$$typeof; + if (Component === REACT_FORWARD_REF_TYPE) return 11; + if (Component === REACT_MEMO_TYPE) return 14; + } + return 2; + } + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); + workInProgress.flags = current.flags & 14680064; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + pendingProps = current.dependencies; + workInProgress.dependencies = null === pendingProps ? null : { + lanes: pendingProps.lanes, + firstContext: pendingProps.firstContext + }; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { + var fiberTag = 2; + owner = type; + if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = 8; + mode |= 8; + break; + case REACT_PROFILER_TYPE: + return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_TYPE: + return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_LIST_TYPE: + return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + default: + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = 10; + break a; + case REACT_CONTEXT_TYPE: + fiberTag = 9; + break a; + case REACT_FORWARD_REF_TYPE: + fiberTag = 11; + break a; + case REACT_MEMO_TYPE: + fiberTag = 14; + break a; + case REACT_LAZY_TYPE: + fiberTag = 16; + owner = null; + break a; + } + throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); + } + key = createFiber(fiberTag, pendingProps, key, mode); + key.elementType = type; + key.type = owner; + key.lanes = lanes; + return key; + } + function createFiberFromFragment(elements, mode, lanes, key) { + elements = createFiber(7, elements, key, mode); + elements.lanes = lanes; + return elements; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + pendingProps = createFiber(22, pendingProps, key, mode); + pendingProps.elementType = REACT_OFFSCREEN_TYPE; + pendingProps.lanes = lanes; + pendingProps.stateNode = {}; + return pendingProps; + } + function createFiberFromText(content, mode, lanes) { + content = createFiber(6, content, null, mode); + content.lanes = lanes; + return content; + } + function createFiberFromPortal(portal, mode, lanes) { + mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.lanes = lanes; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = createLaneMap(0); + this.expirationTimes = createLaneMap(-1); + this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; + this.entanglements = createLaneMap(0); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + } + function createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + function findHostInstance(component) { + var fiber = component._reactInternals; + if (void 0 === fiber) { + if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); + component = Object.keys(component).join(","); + throw Error("Argument appears to not be a ReactComponent. Keys: " + component); + } + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + eventTime = requestEventTime(), + lane = requestUpdateLane(current); + a: if (parentComponent) { + parentComponent = parentComponent._reactInternals; + b: { + if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + var JSCompiler_inline_result = parentComponent; + do { + switch (JSCompiler_inline_result.tag) { + case 3: + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; + break b; + case 1: + if (isContextProvider(JSCompiler_inline_result.type)) { + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + } + JSCompiler_inline_result = JSCompiler_inline_result.return; + } while (null !== JSCompiler_inline_result); + throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + if (1 === parentComponent.tag) { + var Component = parentComponent.type; + if (isContextProvider(Component)) { + parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); + break a; + } + } + parentComponent = JSCompiler_inline_result; + } else parentComponent = emptyContextObject; + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = createUpdate(eventTime, lane); + container.payload = { + element: element + }; + callback = void 0 === callback ? null : callback; + null !== callback && (container.callback = callback); + enqueueUpdate(current, container); + element = scheduleUpdateOnFiber(current, lane, eventTime); + null !== element && entangleTransitions(element, current, lane); + return lane; + } + function emptyFindFiberByHostInstance() { + return null; + } + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + function onRecoverableError(error) { + console.error(error); + } + batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= 1; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + } + }; + var roots = new Map(), + devToolsConfig$jscomp$inline_925 = { + findFiberByHostInstance: getInstanceFromInstance, + bundleType: 0, + version: "18.2.0-next-d300cebde-20220601", + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: function getInspectorDataForViewTag() { + throw Error("getInspectorDataForViewTag() is not available in production"); + }, + getInspectorDataForViewAtPoint: function () { + throw Error("getInspectorDataForViewAtPoint() is not available in production."); + }.bind(null, findNodeHandle) + } + }; + var internals$jscomp$inline_1171 = { + bundleType: devToolsConfig$jscomp$inline_925.bundleType, + version: devToolsConfig$jscomp$inline_925.version, + rendererPackageName: devToolsConfig$jscomp$inline_925.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_925.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: devToolsConfig$jscomp$inline_925.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "18.2.0-next-d300cebde-20220601" + }; + if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + var hook$jscomp$inline_1172 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!hook$jscomp$inline_1172.isDisabled && hook$jscomp$inline_1172.supportsFiber) try { + rendererID = hook$jscomp$inline_1172.inject(internals$jscomp$inline_1171), injectedHook = hook$jscomp$inline_1172; + } catch (err) {} + } + exports.createPortal = function (children, containerTag) { + return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }; + exports.dispatchCommand = function (handle, command, args) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); + }; + exports.findHostInstance_DEPRECATED = function (componentOrHandle) { + if (null == componentOrHandle) return null; + if (componentOrHandle._nativeTag) return componentOrHandle; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; + }; + exports.findNodeHandle = findNodeHandle; + exports.getInspectorDataForInstance = void 0; + exports.render = function (element, containerTag, callback, concurrentRoot) { + var root = roots.get(containerTag); + root || (root = concurrentRoot ? 1 : 0, concurrentRoot = new FiberRootNode(containerTag, root, !1, "", onRecoverableError), root = createFiber(3, null, null, 1 === root ? 1 : 0), concurrentRoot.current = root, root.stateNode = concurrentRoot, root.memoizedState = { + element: null, + isDehydrated: !1, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }, initializeUpdateQueue(root), root = concurrentRoot, roots.set(containerTag, root)); + updateContainer(element, root, null, callback); + a: if (element = root.current, element.child) switch (element.child.tag) { + case 5: + element = element.child.stateNode.canonical; + break a; + default: + element = element.child.stateNode; + } else element = null; + return element; + }; + exports.sendAccessibilityEvent = function (handle, eventType) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); + }; + exports.stopSurface = function (containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + }; + exports.unmountComponentAtNode = function (containerTag) { + this.stopSurface(containerTag); + }; +},208,[39,36,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var RCTTextInputViewConfig = { + bubblingEventTypes: { + topBlur: { + phasedRegistrationNames: { + bubbled: 'onBlur', + captured: 'onBlurCapture' + } + }, + topChange: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' + } + }, + topContentSizeChange: { + phasedRegistrationNames: { + captured: 'onContentSizeChangeCapture', + bubbled: 'onContentSizeChange' + } + }, + topEndEditing: { + phasedRegistrationNames: { + bubbled: 'onEndEditing', + captured: 'onEndEditingCapture' + } + }, + topFocus: { + phasedRegistrationNames: { + bubbled: 'onFocus', + captured: 'onFocusCapture' + } + }, + topKeyPress: { + phasedRegistrationNames: { + bubbled: 'onKeyPress', + captured: 'onKeyPressCapture' + } + }, + topSubmitEditing: { + phasedRegistrationNames: { + bubbled: 'onSubmitEditing', + captured: 'onSubmitEditingCapture' + } + }, + topTouchCancel: { + phasedRegistrationNames: { + bubbled: 'onTouchCancel', + captured: 'onTouchCancelCapture' + } + }, + topTouchEnd: { + phasedRegistrationNames: { + bubbled: 'onTouchEnd', + captured: 'onTouchEndCapture' + } + }, + topTouchMove: { + phasedRegistrationNames: { + bubbled: 'onTouchMove', + captured: 'onTouchMoveCapture' + } + } + }, + directEventTypes: { + topTextInput: { + registrationName: 'onTextInput' + }, + topKeyPressSync: { + registrationName: 'onKeyPressSync' + }, + topScroll: { + registrationName: 'onScroll' + }, + topSelectionChange: { + registrationName: 'onSelectionChange' + }, + topChangeSync: { + registrationName: 'onChangeSync' + } + }, + validAttributes: Object.assign({ + fontSize: true, + fontWeight: true, + fontVariant: true, + textShadowOffset: { + diff: _$$_REQUIRE(_dependencyMap[0], "../../Utilities/differ/sizesDiffer") + }, + allowFontScaling: true, + fontStyle: true, + textTransform: true, + textAlign: true, + fontFamily: true, + lineHeight: true, + isHighlighted: true, + writingDirection: true, + textDecorationLine: true, + textShadowRadius: true, + letterSpacing: true, + textDecorationStyle: true, + textDecorationColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + color: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + maxFontSizeMultiplier: true, + textShadowColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + editable: true, + inputAccessoryViewID: true, + caretHidden: true, + enablesReturnKeyAutomatically: true, + placeholderTextColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + clearButtonMode: true, + keyboardType: true, + selection: true, + returnKeyType: true, + blurOnSubmit: true, + mostRecentEventCount: true, + scrollEnabled: true, + selectionColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + contextMenuHidden: true, + secureTextEntry: true, + placeholder: true, + autoCorrect: true, + multiline: true, + textContentType: true, + maxLength: true, + autoCapitalize: true, + keyboardAppearance: true, + passwordRules: true, + spellCheck: true, + selectTextOnFocus: true, + text: true, + clearTextOnFocus: true, + showSoftInputOnFocus: true, + autoFocus: true + }, (0, _$$_REQUIRE(_dependencyMap[2], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onChange: true, + onSelectionChange: true, + onContentSizeChange: true, + onScroll: true, + onChangeSync: true, + onKeyPressSync: true, + onTextInput: true + })) + }; + module.exports = RCTTextInputViewConfig; +},209,[188,159,210],"node_modules/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ConditionallyIgnoredEventHandlers = ConditionallyIgnoredEventHandlers; + exports.DynamicallyInjectedByGestureHandler = DynamicallyInjectedByGestureHandler; + exports.isIgnored = isIgnored; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + + var ignoredViewConfigProps = new WeakSet(); + + function DynamicallyInjectedByGestureHandler(object) { + ignoredViewConfigProps.add(object); + return object; + } + + function ConditionallyIgnoredEventHandlers(value) { + if (_Platform.default.OS === 'ios' && !(global.RN$ViewConfigEventValidAttributesDisabled === true)) { + return value; + } + return undefined; + } + function isIgnored(value) { + if (typeof value === 'object' && value != null) { + return ignoredViewConfigProps.has(value); + } + return false; + } +},210,[3,14],"node_modules/react-native/Libraries/NativeComponent/ViewConfigIgnore.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.get = get; + exports.getWithFallback_DEPRECATED = getWithFallback_DEPRECATED; + exports.setRuntimeConfigProvider = setRuntimeConfigProvider; + exports.unstable_hasStaticViewConfig = unstable_hasStaticViewConfig; + var StaticViewConfigValidator = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "./StaticViewConfigValidator")); + var _UIManager = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + var _ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/ReactNativeViewConfigRegistry")); + var _getNativeComponentAttributes = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../ReactNative/getNativeComponentAttributes")); + var _verifyComponentAttributeEquivalence = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/verifyComponentAttributeEquivalence")); + var _invariant = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var getRuntimeConfig; + + function setRuntimeConfigProvider(runtimeConfigProvider) { + (0, _invariant.default)(getRuntimeConfig == null, 'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'); + getRuntimeConfig = runtimeConfigProvider; + } + + function get(name, viewConfigProvider) { + _ReactNativeViewConfigRegistry.default.register(name, function () { + var _getRuntimeConfig; + var _ref = (_getRuntimeConfig = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig : { + native: true, + strict: false, + verify: false + }, + native = _ref.native, + strict = _ref.strict, + verify = _ref.verify; + var viewConfig = native ? (0, _getNativeComponentAttributes.default)(name) : (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()); + if (verify) { + var nativeViewConfig = native ? viewConfig : (0, _getNativeComponentAttributes.default)(name); + var staticViewConfig = native ? (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()) : viewConfig; + if (strict) { + var validationOutput = StaticViewConfigValidator.validate(name, nativeViewConfig, staticViewConfig); + if (validationOutput.type === 'invalid') { + console.error(StaticViewConfigValidator.stringifyValidationResult(name, validationOutput)); + } + } else { + (0, _verifyComponentAttributeEquivalence.default)(nativeViewConfig, staticViewConfig); + } + } + return viewConfig; + }); + + return name; + } + + function getWithFallback_DEPRECATED(name, viewConfigProvider) { + if (getRuntimeConfig == null) { + if (hasNativeViewConfig(name)) { + return get(name, viewConfigProvider); + } + } else { + if (getRuntimeConfig(name) != null) { + return get(name, viewConfigProvider); + } + } + var FallbackNativeComponent = function FallbackNativeComponent(props) { + return null; + }; + FallbackNativeComponent.displayName = "Fallback(" + name + ")"; + return FallbackNativeComponent; + } + function hasNativeViewConfig(name) { + (0, _invariant.default)(getRuntimeConfig == null, 'Unexpected invocation!'); + return _UIManager.default.getViewManagerConfig(name) != null; + } + + function unstable_hasStaticViewConfig(name) { + var _getRuntimeConfig2; + var _ref2 = (_getRuntimeConfig2 = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig2 : { + native: true + }, + native = _ref2.native; + return !native; + } +},211,[212,3,213,199,219,232,17,36,235],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.stringifyValidationResult = stringifyValidationResult; + exports.validate = validate; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + + function validate(name, nativeViewConfig, staticViewConfig) { + var differences = []; + accumulateDifferences(differences, [], { + bubblingEventTypes: nativeViewConfig.bubblingEventTypes, + directEventTypes: nativeViewConfig.directEventTypes, + uiViewClassName: nativeViewConfig.uiViewClassName, + validAttributes: nativeViewConfig.validAttributes + }, { + bubblingEventTypes: staticViewConfig.bubblingEventTypes, + directEventTypes: staticViewConfig.directEventTypes, + uiViewClassName: staticViewConfig.uiViewClassName, + validAttributes: staticViewConfig.validAttributes + }); + if (differences.length === 0) { + return { + type: 'valid' + }; + } + return { + type: 'invalid', + differences: differences + }; + } + function stringifyValidationResult(name, validationResult) { + var differences = validationResult.differences; + return ["StaticViewConfigValidator: Invalid static view config for '" + name + "'.", ''].concat((0, _toConsumableArray2.default)(differences.map(function (difference) { + var type = difference.type, + path = difference.path; + switch (type) { + case 'missing': + return "- '" + path.join('.') + "' is missing."; + case 'unequal': + return "- '" + path.join('.') + "' is the wrong value."; + case 'unexpected': + return "- '" + path.join('.') + "' is present but not expected to be."; + } + })), ['']).join('\n'); + } + function accumulateDifferences(differences, path, nativeObject, staticObject) { + for (var nativeKey in nativeObject) { + var nativeValue = nativeObject[nativeKey]; + if (!staticObject.hasOwnProperty(nativeKey)) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), + type: 'missing', + nativeValue: nativeValue + }); + continue; + } + var staticValue = staticObject[nativeKey]; + var nativeValueIfObject = ifObject(nativeValue); + if (nativeValueIfObject != null) { + var staticValueIfObject = ifObject(staticValue); + if (staticValueIfObject != null) { + path.push(nativeKey); + accumulateDifferences(differences, path, nativeValueIfObject, staticValueIfObject); + path.pop(); + continue; + } + } + if (nativeValue !== staticValue) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), + type: 'unequal', + nativeValue: nativeValue, + staticValue: staticValue + }); + } + } + for (var staticKey in staticObject) { + if (!nativeObject.hasOwnProperty(staticKey) && !(0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").isIgnored)(staticObject[staticKey])) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [staticKey]), + type: 'unexpected', + staticValue: staticObject[staticKey] + }); + } + } + } + function ifObject(value) { + return typeof value === 'object' && !Array.isArray(value) ? value : null; + } +},212,[3,6,210],"node_modules/react-native/Libraries/NativeComponent/StaticViewConfigValidator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var UIManager = global.RN$Bridgeless === true ? _$$_REQUIRE(_dependencyMap[0], "./BridgelessUIManager") : _$$_REQUIRE(_dependencyMap[1], "./PaperUIManager"); + module.exports = UIManager; +},213,[214,216],"node_modules/react-native/Libraries/ReactNative/UIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var errorMessageForMethod = function errorMessageForMethod(methodName) { + return "[ReactNative Architecture][JS] '" + methodName + "' is not available in the new React Native architecture."; + }; + module.exports = { + getViewManagerConfig: function getViewManagerConfig(viewManagerName) { + console.error(errorMessageForMethod('getViewManagerConfig') + 'Use hasViewManagerConfig instead. viewManagerName: ' + viewManagerName); + return null; + }, + hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { + return (0, _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable").unstable_hasComponent)(viewManagerName); + }, + getConstants: function getConstants() { + console.error(errorMessageForMethod('getConstants')); + return {}; + }, + getConstantsForViewManager: function getConstantsForViewManager(viewManagerName) { + console.error(errorMessageForMethod('getConstantsForViewManager')); + return {}; + }, + getDefaultEventTypes: function getDefaultEventTypes() { + console.error(errorMessageForMethod('getDefaultEventTypes')); + return []; + }, + lazilyLoadView: function lazilyLoadView(name) { + console.error(errorMessageForMethod('lazilyLoadView')); + return {}; + }, + createView: function createView(reactTag, viewName, rootTag, props) { + return console.error(errorMessageForMethod('createView')); + }, + updateView: function updateView(reactTag, viewName, props) { + return console.error(errorMessageForMethod('updateView')); + }, + focus: function focus(reactTag) { + return console.error(errorMessageForMethod('focus')); + }, + blur: function blur(reactTag) { + return console.error(errorMessageForMethod('blur')); + }, + findSubviewIn: function findSubviewIn(reactTag, point, callback) { + return console.error(errorMessageForMethod('findSubviewIn')); + }, + dispatchViewManagerCommand: function dispatchViewManagerCommand(reactTag, commandID, commandArgs) { + return console.error(errorMessageForMethod('dispatchViewManagerCommand')); + }, + measure: function measure(reactTag, callback) { + return console.error(errorMessageForMethod('measure')); + }, + measureInWindow: function measureInWindow(reactTag, callback) { + return console.error(errorMessageForMethod('measureInWindow')); + }, + viewIsDescendantOf: function viewIsDescendantOf(reactTag, ancestorReactTag, callback) { + return console.error(errorMessageForMethod('viewIsDescendantOf')); + }, + measureLayout: function measureLayout(reactTag, ancestorReactTag, errorCallback, callback) { + return console.error(errorMessageForMethod('measureLayout')); + }, + measureLayoutRelativeToParent: function measureLayoutRelativeToParent(reactTag, errorCallback, callback) { + return console.error(errorMessageForMethod('measureLayoutRelativeToParent')); + }, + setJSResponder: function setJSResponder(reactTag, blockNativeResponder) { + return console.error(errorMessageForMethod('setJSResponder')); + }, + clearJSResponder: function clearJSResponder() {}, + configureNextLayoutAnimation: function configureNextLayoutAnimation(config, callback, errorCallback) { + return console.error(errorMessageForMethod('configureNextLayoutAnimation')); + }, + removeSubviewsFromContainerWithID: function removeSubviewsFromContainerWithID(containerID) { + return console.error(errorMessageForMethod('removeSubviewsFromContainerWithID')); + }, + replaceExistingNonRootView: function replaceExistingNonRootView(reactTag, newReactTag) { + return console.error(errorMessageForMethod('replaceExistingNonRootView')); + }, + setChildren: function setChildren(containerTag, reactTags) { + return console.error(errorMessageForMethod('setChildren')); + }, + manageChildren: function manageChildren(containerTag, moveFromIndices, moveToIndices, addChildReactTags, addAtIndices, removeAtIndices) { + return console.error(errorMessageForMethod('manageChildren')); + }, + setLayoutAnimationEnabledExperimental: function setLayoutAnimationEnabledExperimental(enabled) { + console.error(errorMessageForMethod('setLayoutAnimationEnabledExperimental')); + }, + sendAccessibilityEvent: function sendAccessibilityEvent(reactTag, eventType) { + return console.error(errorMessageForMethod('sendAccessibilityEvent')); + }, + showPopupMenu: function showPopupMenu(reactTag, items, error, success) { + return console.error(errorMessageForMethod('showPopupMenu')); + }, + dismissPopupMenu: function dismissPopupMenu() { + return console.error(errorMessageForMethod('dismissPopupMenu')); + } + }; +},214,[215],"node_modules/react-native/Libraries/ReactNative/BridgelessUIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.unstable_hasComponent = unstable_hasComponent; + + var componentNameToExists = new Map(); + + function unstable_hasComponent(name) { + var hasNativeComponent = componentNameToExists.get(name); + if (hasNativeComponent == null) { + if (global.__nativeComponentRegistry__hasComponent) { + hasNativeComponent = global.__nativeComponentRegistry__hasComponent(name); + componentNameToExists.set(name, hasNativeComponent); + } else { + throw "unstable_hasComponent('" + name + "'): Global function is not registered"; + } + } + return hasNativeComponent; + } +},215,[],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeUIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeUIManager")); + var viewManagerConfigs = {}; + var triedLoadingConfig = new Set(); + var NativeUIManagerConstants = {}; + var isNativeUIManagerConstantsSet = false; + function _getConstants() { + if (!isNativeUIManagerConstantsSet) { + NativeUIManagerConstants = _NativeUIManager.default.getConstants(); + isNativeUIManagerConstantsSet = true; + } + return NativeUIManagerConstants; + } + function _getViewManagerConfig(viewManagerName) { + if (viewManagerConfigs[viewManagerName] === undefined && global.nativeCallSyncHook && + _NativeUIManager.default.getConstantsForViewManager) { + try { + viewManagerConfigs[viewManagerName] = _NativeUIManager.default.getConstantsForViewManager(viewManagerName); + } catch (e) { + console.error("NativeUIManager.getConstantsForViewManager('" + viewManagerName + "') threw an exception.", e); + viewManagerConfigs[viewManagerName] = null; + } + } + var config = viewManagerConfigs[viewManagerName]; + if (config) { + return config; + } + + if (!global.nativeCallSyncHook) { + return config; + } + if (_NativeUIManager.default.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) { + var result = _NativeUIManager.default.lazilyLoadView(viewManagerName); + triedLoadingConfig.add(viewManagerName); + if (result != null && result.viewConfig != null) { + _getConstants()[viewManagerName] = result.viewConfig; + lazifyViewManagerConfig(viewManagerName); + } + } + return viewManagerConfigs[viewManagerName]; + } + + var UIManagerJS = Object.assign({}, _NativeUIManager.default, { + createView: function createView(reactTag, viewName, rootTag, props) { + if ("ios" === 'ios' && viewManagerConfigs[viewName] === undefined) { + _getViewManagerConfig(viewName); + } + _NativeUIManager.default.createView(reactTag, viewName, rootTag, props); + }, + getConstants: function getConstants() { + return _getConstants(); + }, + getViewManagerConfig: function getViewManagerConfig(viewManagerName) { + return _getViewManagerConfig(viewManagerName); + }, + hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { + return _getViewManagerConfig(viewManagerName) != null; + } + }); + + _NativeUIManager.default.getViewManagerConfig = UIManagerJS.getViewManagerConfig; + function lazifyViewManagerConfig(viewName) { + var viewConfig = _getConstants()[viewName]; + viewManagerConfigs[viewName] = viewConfig; + if (viewConfig.Manager) { + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Constants', { + get: function get() { + var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; + var constants = {}; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + if (typeof value !== 'function') { + constants[key] = value; + } + }); + return constants; + } + }); + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Commands', { + get: function get() { + var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; + var commands = {}; + var index = 0; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + if (typeof value === 'function') { + commands[key] = index++; + } + }); + return commands; + } + }); + } + } + + if ("ios" === 'ios') { + Object.keys(_getConstants()).forEach(function (viewName) { + lazifyViewManagerConfig(viewName); + }); + } else if (_getConstants().ViewManagerNames) { + _NativeUIManager.default.getConstants().ViewManagerNames.forEach(function (viewManagerName) { + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { + get: function get() { + return _NativeUIManager.default.getConstantsForViewManager(viewManagerName); + } + }); + }); + } + if (!global.nativeCallSyncHook) { + Object.keys(_getConstants()).forEach(function (viewManagerName) { + if (!_$$_REQUIRE(_dependencyMap[4], "./UIManagerProperties").includes(viewManagerName)) { + if (!viewManagerConfigs[viewManagerName]) { + viewManagerConfigs[viewManagerName] = _getConstants()[viewManagerName]; + } + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { + get: function get() { + console.warn("Accessing view manager configs directly off UIManager via UIManager['" + viewManagerName + "'] " + ("is no longer supported. Use UIManager.getViewManagerConfig('" + viewManagerName + "') instead.")); + return UIManagerJS.getViewManagerConfig(viewManagerName); + } + }); + } + }); + } + module.exports = UIManagerJS; +},216,[3,217,30,18,218],"node_modules/react-native/Libraries/ReactNative/PaperUIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('UIManager'); + exports.default = _default; +},217,[16],"node_modules/react-native/Libraries/ReactNative/NativeUIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = ['clearJSResponder', 'configureNextLayoutAnimation', 'createView', 'dismissPopupMenu', 'dispatchViewManagerCommand', 'findSubviewIn', 'getConstantsForViewManager', 'getDefaultEventTypes', 'manageChildren', 'measure', 'measureInWindow', 'measureLayout', 'measureLayoutRelativeToParent', 'removeRootView', 'removeSubviewsFromContainerWithID', 'replaceExistingNonRootView', 'sendAccessibilityEvent', 'setChildren', 'setJSResponder', 'setLayoutAnimationEnabledExperimental', 'showPopupMenu', 'updateView', 'viewIsDescendantOf', 'PopupMenu', 'LazyViewManagersEnabled', 'ViewManagerNames', 'StyleConstants', 'AccessibilityEventTypes', 'UIView', 'getViewManagerConfig', 'hasViewManagerConfig', 'blur', 'focus', 'genericBubblingEventTypes', 'genericDirectEventTypes', 'lazilyLoadView']; +},218,[],"node_modules/react-native/Libraries/ReactNative/UIManagerProperties.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function getNativeComponentAttributes(uiViewClassName) { + var _bubblingEventTypes, _directEventTypes; + var viewConfig = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(uiViewClassName); + _$$_REQUIRE(_dependencyMap[1], "invariant")(viewConfig != null && viewConfig.NativeProps != null, 'requireNativeComponent: "%s" was not found in the UIManager.', uiViewClassName); + + var baseModuleName = viewConfig.baseModuleName, + bubblingEventTypes = viewConfig.bubblingEventTypes, + directEventTypes = viewConfig.directEventTypes; + var nativeProps = viewConfig.NativeProps; + bubblingEventTypes = (_bubblingEventTypes = bubblingEventTypes) != null ? _bubblingEventTypes : {}; + directEventTypes = (_directEventTypes = directEventTypes) != null ? _directEventTypes : {}; + while (baseModuleName) { + var baseModule = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(baseModuleName); + if (!baseModule) { + baseModuleName = null; + } else { + bubblingEventTypes = Object.assign({}, baseModule.bubblingEventTypes, bubblingEventTypes); + directEventTypes = Object.assign({}, baseModule.directEventTypes, directEventTypes); + nativeProps = Object.assign({}, baseModule.NativeProps, nativeProps); + baseModuleName = baseModule.baseModuleName; + } + } + var validAttributes = {}; + for (var key in nativeProps) { + var typeName = nativeProps[key]; + var diff = getDifferForType(typeName); + var process = getProcessorForType(typeName); + + validAttributes[key] = diff == null ? process == null ? true : { + process: process + } : process == null ? { + diff: diff + } : { + diff: diff, + process: process + }; + } + + validAttributes.style = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes"); + Object.assign(viewConfig, { + uiViewClassName: uiViewClassName, + validAttributes: validAttributes, + bubblingEventTypes: bubblingEventTypes, + directEventTypes: directEventTypes + }); + attachDefaultEventTypes(viewConfig); + return viewConfig; + } + function attachDefaultEventTypes(viewConfig) { + var constants = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getConstants(); + if (constants.ViewManagerNames || constants.LazyViewManagersEnabled) { + viewConfig = merge(viewConfig, _$$_REQUIRE(_dependencyMap[0], "./UIManager").getDefaultEventTypes()); + } else { + viewConfig.bubblingEventTypes = merge(viewConfig.bubblingEventTypes, constants.genericBubblingEventTypes); + viewConfig.directEventTypes = merge(viewConfig.directEventTypes, constants.genericDirectEventTypes); + } + } + + function merge(destination, source) { + if (!source) { + return destination; + } + if (!destination) { + return source; + } + for (var key in source) { + if (!source.hasOwnProperty(key)) { + continue; + } + var sourceValue = source[key]; + if (destination.hasOwnProperty(key)) { + var destinationValue = destination[key]; + if (typeof sourceValue === 'object' && typeof destinationValue === 'object') { + sourceValue = merge(destinationValue, sourceValue); + } + } + destination[key] = sourceValue; + } + return destination; + } + function getDifferForType(typeName) { + switch (typeName) { + case 'CATransform3D': + return _$$_REQUIRE(_dependencyMap[3], "../Utilities/differ/matricesDiffer"); + case 'CGPoint': + return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); + case 'CGSize': + return _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/sizesDiffer"); + case 'UIEdgeInsets': + return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); + case 'Point': + return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); + case 'EdgeInsets': + return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); + } + return null; + } + function getProcessorForType(typeName) { + switch (typeName) { + case 'CGColor': + case 'UIColor': + return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor"); + case 'CGColorArray': + case 'UIColorArray': + return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); + case 'CGImage': + case 'UIImage': + case 'RCTImageSource': + return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); + case 'Color': + return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor"); + case 'ColorArray': + return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); + case 'ImageSource': + return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); + } + return null; + } + module.exports = getNativeComponentAttributes; +},219,[213,17,185,220,221,188,222,159,223,224],"node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var matricesDiffer = function matricesDiffer(one, two) { + if (one === two) { + return false; + } + return !one || !two || one[12] !== two[12] || one[13] !== two[13] || one[14] !== two[14] || one[5] !== two[5] || one[10] !== two[10] || one[0] !== two[0] || one[1] !== two[1] || one[2] !== two[2] || one[3] !== two[3] || one[4] !== two[4] || one[6] !== two[6] || one[7] !== two[7] || one[8] !== two[8] || one[9] !== two[9] || one[11] !== two[11] || one[15] !== two[15]; + }; + module.exports = matricesDiffer; +},220,[],"node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var dummyPoint = { + x: undefined, + y: undefined + }; + var pointsDiffer = function pointsDiffer(one, two) { + one = one || dummyPoint; + two = two || dummyPoint; + return one !== two && (one.x !== two.x || one.y !== two.y); + }; + module.exports = pointsDiffer; +},221,[],"node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var dummyInsets = { + top: undefined, + left: undefined, + right: undefined, + bottom: undefined + }; + var insetsDiffer = function insetsDiffer(one, two) { + one = one || dummyInsets; + two = two || dummyInsets; + return one !== two && (one.top !== two.top || one.left !== two.left || one.right !== two.right || one.bottom !== two.bottom); + }; + module.exports = insetsDiffer; +},222,[],"node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./processColor")); + var TRANSPARENT = 0; + + function processColorArray(colors) { + return colors == null ? null : colors.map(processColorElement); + } + function processColorElement(color) { + var value = (0, _processColor.default)(color); + if (value == null) { + console.error('Invalid value in color array:', color); + return TRANSPARENT; + } + return value; + } + module.exports = processColorArray; +},223,[3,159],"node_modules/react-native/Libraries/StyleSheet/processColorArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _customSourceTransformer, _serverURL, _scriptURL; + var _sourceCodeScriptURL; + function getSourceCodeScriptURL() { + if (_sourceCodeScriptURL) { + return _sourceCodeScriptURL; + } + var sourceCode = global.nativeExtensions && global.nativeExtensions.SourceCode; + if (!sourceCode) { + sourceCode = _$$_REQUIRE(_dependencyMap[0], "../NativeModules/specs/NativeSourceCode").default; + } + _sourceCodeScriptURL = sourceCode.getConstants().scriptURL; + return _sourceCodeScriptURL; + } + function getDevServerURL() { + if (_serverURL === undefined) { + var sourceCodeScriptURL = getSourceCodeScriptURL(); + var match = sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\/\/.*?\//); + if (match) { + _serverURL = match[0]; + } else { + _serverURL = null; + } + } + return _serverURL; + } + function _coerceLocalScriptURL(scriptURL) { + if (scriptURL) { + if (scriptURL.startsWith('assets://')) { + return null; + } + scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1); + if (!scriptURL.includes('://')) { + scriptURL = 'file://' + scriptURL; + } + } + return scriptURL; + } + function getScriptURL() { + if (_scriptURL === undefined) { + _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL()); + } + return _scriptURL; + } + function setCustomSourceTransformer(transformer) { + _customSourceTransformer = transformer; + } + + function resolveAssetSource(source) { + if (typeof source === 'object') { + return source; + } + var asset = _$$_REQUIRE(_dependencyMap[1], "@react-native/assets/registry").getAssetByID(source); + if (!asset) { + return null; + } + var resolver = new (_$$_REQUIRE(_dependencyMap[2], "./AssetSourceResolver"))(getDevServerURL(), getScriptURL(), asset); + if (_customSourceTransformer) { + return _customSourceTransformer(resolver); + } + return resolver.defaultAsset(); + } + module.exports = resolveAssetSource; + module.exports.pickScale = _$$_REQUIRE(_dependencyMap[3], "./AssetUtils").pickScale; + module.exports.setCustomSourceTransformer = setCustomSourceTransformer; +},224,[67,225,226,227],"node_modules/react-native/Libraries/Image/resolveAssetSource.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var assets = []; + function registerAsset(asset) { + return assets.push(asset); + } + function getAssetByID(assetId) { + return assets[assetId - 1]; + } + module.exports = { + registerAsset: registerAsset, + getAssetByID: getAssetByID + }; +},225,[],"node_modules/@react-native/assets/registry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function getScaledAssetPath(asset) { + var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()); + var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; + var assetDir = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getBasePath(asset); + return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type; + } + + function getAssetPathInDrawableFolder(asset) { + var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()); + var drawbleFolder = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceFolderName(asset, scale); + var fileName = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceIdentifier(asset); + return drawbleFolder + '/' + fileName + '.' + asset.type; + } + var AssetSourceResolver = function () { + + function AssetSourceResolver(serverUrl, jsbundleUrl, asset) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AssetSourceResolver); + this.serverUrl = serverUrl; + this.jsbundleUrl = jsbundleUrl; + this.asset = asset; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AssetSourceResolver, [{ + key: "isLoadedFromServer", + value: function isLoadedFromServer() { + return !!this.serverUrl; + } + }, { + key: "isLoadedFromFileSystem", + value: function isLoadedFromFileSystem() { + return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://')); + } + }, { + key: "defaultAsset", + value: function defaultAsset() { + if (this.isLoadedFromServer()) { + return this.assetServerURL(); + } + if ("ios" === 'android') { + return this.isLoadedFromFileSystem() ? this.drawableFolderInBundle() : this.resourceIdentifierWithoutScale(); + } else { + return this.scaledAssetURLNearBundle(); + } + } + + }, { + key: "assetServerURL", + value: + function assetServerURL() { + _$$_REQUIRE(_dependencyMap[5], "invariant")(!!this.serverUrl, 'need server to load from'); + return this.fromSource(this.serverUrl + getScaledAssetPath(this.asset) + '?platform=' + "ios" + '&hash=' + this.asset.hash); + } + + }, { + key: "scaledAssetPath", + value: + function scaledAssetPath() { + return this.fromSource(getScaledAssetPath(this.asset)); + } + + }, { + key: "scaledAssetURLNearBundle", + value: + function scaledAssetURLNearBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource( + path + getScaledAssetPath(this.asset).replace(/\.\.\//g, '_')); + } + + }, { + key: "resourceIdentifierWithoutScale", + value: + function resourceIdentifierWithoutScale() { + _$$_REQUIRE(_dependencyMap[5], "invariant")("ios" === 'android', 'resource identifiers work on Android'); + return this.fromSource(_$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceIdentifier(this.asset)); + } + + }, { + key: "drawableFolderInBundle", + value: + function drawableFolderInBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource(path + getAssetPathInDrawableFolder(this.asset)); + } + }, { + key: "fromSource", + value: function fromSource(source) { + return { + __packager_asset: true, + width: this.asset.width, + height: this.asset.height, + uri: source, + scale: _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(this.asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()) + }; + } + }]); + return AssetSourceResolver; + }(); + AssetSourceResolver.pickScale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale; + module.exports = AssetSourceResolver; +},226,[227,228,231,12,13,17],"node_modules/react-native/Libraries/Image/AssetSourceResolver.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getUrlCacheBreaker = getUrlCacheBreaker; + exports.pickScale = pickScale; + exports.setUrlCacheBreaker = setUrlCacheBreaker; + var _PixelRatio = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio")); + + var cacheBreaker; + var warnIfCacheBreakerUnset = true; + function pickScale(scales, deviceScale) { + if (deviceScale == null) { + deviceScale = _PixelRatio.default.get(); + } + for (var i = 0; i < scales.length; i++) { + if (scales[i] >= deviceScale) { + return scales[i]; + } + } + + return scales[scales.length - 1] || 1; + } + function setUrlCacheBreaker(appendage) { + cacheBreaker = appendage; + } + function getUrlCacheBreaker() { + if (cacheBreaker == null) { + if (__DEV__ && warnIfCacheBreakerUnset) { + warnIfCacheBreakerUnset = false; + console.warn('AssetUtils.getUrlCacheBreaker: Cache breaker value is unset'); + } + return ''; + } + return cacheBreaker; + } +},227,[3,228],"node_modules/react-native/Libraries/Image/AssetUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var PixelRatio = function () { + function PixelRatio() { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, PixelRatio); + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(PixelRatio, null, [{ + key: "get", + value: + function get() { + return _$$_REQUIRE(_dependencyMap[2], "./Dimensions").get('window').scale; + } + + }, { + key: "getFontScale", + value: + function getFontScale() { + return _$$_REQUIRE(_dependencyMap[2], "./Dimensions").get('window').fontScale || PixelRatio.get(); + } + + }, { + key: "getPixelSizeForLayoutSize", + value: + function getPixelSizeForLayoutSize(layoutSize) { + return Math.round(layoutSize * PixelRatio.get()); + } + + }, { + key: "roundToNearestPixel", + value: + function roundToNearestPixel(layoutSize) { + var ratio = PixelRatio.get(); + return Math.round(layoutSize * ratio) / ratio; + } + + }, { + key: "startDetecting", + value: + function startDetecting() {} + }]); + return PixelRatio; + }(); + module.exports = PixelRatio; +},228,[12,13,229],"node_modules/react-native/Libraries/Utilities/PixelRatio.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../vendor/emitter/EventEmitter")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeDeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeDeviceInfo")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + + var eventEmitter = new _EventEmitter.default(); + var dimensionsInitialized = false; + var dimensions; + var Dimensions = function () { + function Dimensions() { + (0, _classCallCheck2.default)(this, Dimensions); + } + (0, _createClass2.default)(Dimensions, null, [{ + key: "get", + value: + function get(dim) { + (0, _invariant.default)(dimensions[dim], 'No dimension set for key ' + dim); + return dimensions[dim]; + } + + }, { + key: "set", + value: + function set(dims) { + var screen = dims.screen, + window = dims.window; + var windowPhysicalPixels = dims.windowPhysicalPixels; + if (windowPhysicalPixels) { + window = { + width: windowPhysicalPixels.width / windowPhysicalPixels.scale, + height: windowPhysicalPixels.height / windowPhysicalPixels.scale, + scale: windowPhysicalPixels.scale, + fontScale: windowPhysicalPixels.fontScale + }; + } + var screenPhysicalPixels = dims.screenPhysicalPixels; + if (screenPhysicalPixels) { + screen = { + width: screenPhysicalPixels.width / screenPhysicalPixels.scale, + height: screenPhysicalPixels.height / screenPhysicalPixels.scale, + scale: screenPhysicalPixels.scale, + fontScale: screenPhysicalPixels.fontScale + }; + } else if (screen == null) { + screen = window; + } + dimensions = { + window: window, + screen: screen + }; + if (dimensionsInitialized) { + eventEmitter.emit('change', dimensions); + } else { + dimensionsInitialized = true; + } + } + + }, { + key: "addEventListener", + value: + function addEventListener(type, handler) { + (0, _invariant.default)(type === 'change', 'Trying to subscribe to unknown event: "%s"', type); + return eventEmitter.addListener(type, handler); + } + }]); + return Dimensions; + }(); + var initialDims = global.nativeExtensions && global.nativeExtensions.DeviceInfo && global.nativeExtensions.DeviceInfo.Dimensions; + if (!initialDims) { + _RCTDeviceEventEmitter.default.addListener('didUpdateDimensions', function (update) { + Dimensions.set(update); + }); + initialDims = _NativeDeviceInfo.default.getConstants().Dimensions; + } + Dimensions.set(initialDims); + module.exports = Dimensions; +},229,[3,12,13,5,4,230,17],"node_modules/react-native/Libraries/Utilities/Dimensions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var NativeModule = TurboModuleRegistry.getEnforcing('DeviceInfo'); + var constants = null; + var NativeDeviceInfo = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + } + }; + var _default = NativeDeviceInfo; + exports.default = _default; +},230,[16],"node_modules/react-native/Libraries/Utilities/NativeDeviceInfo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var androidScaleSuffix = { + '0.75': 'ldpi', + '1': 'mdpi', + '1.5': 'hdpi', + '2': 'xhdpi', + '3': 'xxhdpi', + '4': 'xxxhdpi' + }; + + function getAndroidAssetSuffix(scale) { + if (scale.toString() in androidScaleSuffix) { + return androidScaleSuffix[scale.toString()]; + } + throw new Error('no such scale ' + scale.toString()); + } + + var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'png', 'svg', 'webp', 'xml']); + function getAndroidResourceFolderName(asset, scale) { + if (!drawableFileTypes.has(asset.type)) { + return 'raw'; + } + var suffix = getAndroidAssetSuffix(scale); + if (!suffix) { + throw new Error("Don't know which android drawable suffix to use for scale: " + scale + '\nAsset: ' + JSON.stringify(asset, null, '\t') + '\nPossible scales are:' + JSON.stringify(androidScaleSuffix, null, '\t')); + } + return 'drawable-' + suffix; + } + function getAndroidResourceIdentifier(asset) { + return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, ''); + } + + function getBasePath(asset) { + var basePath = asset.httpServerLocation; + return basePath.startsWith('/') ? basePath.substr(1) : basePath; + } + module.exports = { + getAndroidResourceFolderName: getAndroidResourceFolderName, + getAndroidResourceIdentifier: getAndroidResourceIdentifier, + getBasePath: getBasePath + }; +},231,[],"node_modules/@react-native/assets/path-support.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = verifyComponentAttributeEquivalence; + exports.getConfigWithoutViewProps = getConfigWithoutViewProps; + exports.stringifyViewConfig = stringifyViewConfig; + var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../NativeComponent/PlatformBaseViewConfig")); + + var IGNORED_KEYS = ['transform', 'hitSlop']; + + function verifyComponentAttributeEquivalence(nativeViewConfig, staticViewConfig) { + for (var prop of ['validAttributes', 'bubblingEventTypes', 'directEventTypes']) { + var diff = Object.keys(lefthandObjectDiff(nativeViewConfig[prop], staticViewConfig[prop])); + if (diff.length > 0) { + var _staticViewConfig$uiV; + var name = (_staticViewConfig$uiV = staticViewConfig.uiViewClassName) != null ? _staticViewConfig$uiV : nativeViewConfig.uiViewClassName; + console.error("'" + name + "' has a view config that does not match native. " + ("'" + prop + "' is missing: " + diff.join(', '))); + } + } + } + + function lefthandObjectDiff(leftObj, rightObj) { + var differentKeys = {}; + function compare(leftItem, rightItem, key) { + if (typeof leftItem !== typeof rightItem && leftItem != null) { + differentKeys[key] = rightItem; + return; + } + if (typeof leftItem === 'object') { + var objDiff = lefthandObjectDiff(leftItem, rightItem); + if (Object.keys(objDiff).length > 1) { + differentKeys[key] = objDiff; + } + return; + } + if (leftItem !== rightItem) { + differentKeys[key] = rightItem; + return; + } + } + for (var key in leftObj) { + if (IGNORED_KEYS.includes(key)) { + continue; + } + if (!rightObj) { + differentKeys[key] = {}; + } else if (leftObj.hasOwnProperty(key)) { + compare(leftObj[key], rightObj[key], key); + } + } + return differentKeys; + } + function getConfigWithoutViewProps(viewConfig, propName) { + if (!viewConfig[propName]) { + return {}; + } + return Object.keys(viewConfig[propName]).filter(function (prop) { + return !_PlatformBaseViewConfig.default[propName][prop]; + }).reduce(function (obj, prop) { + obj[prop] = viewConfig[propName][prop]; + return obj; + }, {}); + } + function stringifyViewConfig(viewConfig) { + return JSON.stringify(viewConfig, function (key, val) { + if (typeof val === 'function') { + return "\u0192 " + val.name; + } + return val; + }, 2); + } +},232,[3,233],"node_modules/react-native/Libraries/Utilities/verifyComponentAttributeEquivalence.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _BaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./BaseViewConfig")); + + var PlatformBaseViewConfig = _BaseViewConfig.default; + + var _default = PlatformBaseViewConfig; + exports.default = _default; +},233,[3,234],"node_modules/react-native/Libraries/NativeComponent/PlatformBaseViewConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/ReactNativeStyleAttributes")); + + var 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' + } + }, + 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: true + } + }, + topPointerLeave: { + phasedRegistrationNames: { + captured: 'onPointerLeaveCapture', + bubbled: 'onPointerLeave', + skipBubbling: true + } + }, + topPointerOver: { + phasedRegistrationNames: { + captured: 'onPointerOverCapture', + bubbled: 'onPointerOver' + } + }, + topPointerOut: { + phasedRegistrationNames: { + captured: 'onPointerOutCapture', + bubbled: 'onPointerOut' + } + } + }; + var directEventTypes = { + topAccessibilityAction: { + registrationName: 'onAccessibilityAction' + }, + topAccessibilityTap: { + registrationName: 'onAccessibilityTap' + }, + topMagicTap: { + registrationName: 'onMagicTap' + }, + topAccessibilityEscape: { + registrationName: 'onAccessibilityEscape' + }, + topLayout: { + registrationName: 'onLayout' + }, + onGestureHandlerEvent: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ + registrationName: 'onGestureHandlerEvent' + }), + onGestureHandlerStateChange: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ + registrationName: 'onGestureHandlerStateChange' + }) + }; + var validAttributesForNonEventProps = { + accessible: true, + accessibilityActions: true, + accessibilityLabel: true, + accessibilityHint: true, + accessibilityLanguage: true, + accessibilityValue: true, + accessibilityViewIsModal: true, + accessibilityElementsHidden: true, + accessibilityIgnoresInvertColors: true, + testID: true, + backgroundColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + backfaceVisibility: true, + opacity: true, + shadowColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + shadowOffset: { + diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/sizesDiffer") + }, + shadowOpacity: true, + shadowRadius: true, + needsOffscreenAlphaCompositing: true, + overflow: true, + shouldRasterizeIOS: true, + transform: { + diff: _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/matricesDiffer") + }, + accessibilityRole: true, + accessibilityState: true, + nativeID: true, + pointerEvents: true, + removeClippedSubviews: true, + borderRadius: true, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderWidth: true, + borderStyle: true, + hitSlop: { + diff: _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer") + }, + collapsable: true, + borderTopWidth: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderRightWidth: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderBottomWidth: true, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderLeftWidth: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderStartWidth: true, + borderStartColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderEndWidth: true, + borderEndColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + borderTopEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderBottomEndRadius: true, + display: true, + zIndex: true, + top: true, + right: true, + start: true, + end: true, + bottom: true, + left: true, + width: true, + height: true, + minWidth: true, + maxWidth: true, + minHeight: true, + maxHeight: true, + + marginTop: true, + marginRight: true, + marginBottom: true, + marginLeft: true, + marginStart: true, + marginEnd: true, + marginVertical: true, + marginHorizontal: true, + margin: true, + paddingTop: true, + paddingRight: true, + paddingBottom: true, + paddingLeft: true, + paddingStart: true, + paddingEnd: true, + paddingVertical: true, + paddingHorizontal: true, + padding: true, + flex: true, + flexGrow: true, + flexShrink: true, + flexBasis: true, + flexDirection: true, + flexWrap: true, + justifyContent: true, + alignItems: true, + alignSelf: true, + alignContent: true, + position: true, + aspectRatio: true, + + direction: true, + style: _ReactNativeStyleAttributes.default + }; + + var validAttributesForEventProps = (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onLayout: true, + onMagicTap: true, + onAccessibilityAction: true, + onAccessibilityEscape: true, + onAccessibilityTap: true, + onMoveShouldSetResponder: true, + onMoveShouldSetResponderCapture: true, + onStartShouldSetResponder: true, + onStartShouldSetResponderCapture: true, + onResponderGrant: true, + onResponderReject: true, + onResponderStart: true, + onResponderEnd: true, + onResponderRelease: true, + onResponderMove: true, + onResponderTerminate: true, + onResponderTerminationRequest: true, + onShouldBlockNativeResponder: true, + onTouchStart: true, + onTouchMove: true, + onTouchEnd: true, + onTouchCancel: true, + onPointerUp: true, + onPointerDown: true, + onPointerCancel: true, + onPointerEnter: true, + onPointerMove: true, + onPointerLeave: true, + onPointerOver: true, + onPointerOut: true + }); + + var PlatformBaseViewConfigIos = { + bubblingEventTypes: bubblingEventTypes, + directEventTypes: directEventTypes, + validAttributes: Object.assign({}, validAttributesForNonEventProps, validAttributesForEventProps) + }; + var _default = PlatformBaseViewConfigIos; + exports.default = _default; +},234,[3,185,210,159,188,220,222],"node_modules/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createViewConfig = createViewConfig; + var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PlatformBaseViewConfig")); + + function createViewConfig(partialViewConfig) { + return { + uiViewClassName: partialViewConfig.uiViewClassName, + Commands: {}, + bubblingEventTypes: composeIndexers(_PlatformBaseViewConfig.default.bubblingEventTypes, partialViewConfig.bubblingEventTypes), + directEventTypes: composeIndexers(_PlatformBaseViewConfig.default.directEventTypes, partialViewConfig.directEventTypes), + validAttributes: composeIndexers( + _PlatformBaseViewConfig.default.validAttributes, + partialViewConfig.validAttributes) + }; + } + function composeIndexers(maybeA, maybeB) { + var _ref; + return maybeA == null || maybeB == null ? (_ref = maybeA != null ? maybeA : maybeB) != null ? _ref : {} : Object.assign({}, maybeA, maybeB); + } +},235,[3,233],"node_modules/react-native/Libraries/NativeComponent/ViewConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['focus', 'blur', 'setTextAndSelection'] + }); + exports.Commands = Commands; + var __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' + } + }, + topTextInput: { + phasedRegistrationNames: { + bubbled: 'onTextInput', + captured: 'onTextInputCapture' + } + } + }, + directEventTypes: { + topScroll: { + registrationName: 'onScroll' + } + }, + validAttributes: { + maxFontSizeMultiplier: true, + adjustsFontSizeToFit: true, + minimumFontScale: true, + autoFocus: true, + placeholder: true, + inlineImagePadding: true, + contextMenuHidden: true, + textShadowColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + maxLength: true, + selectTextOnFocus: true, + textShadowRadius: true, + underlineColorAndroid: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + textDecorationLine: true, + blurOnSubmit: true, + textAlignVertical: true, + fontStyle: true, + textShadowOffset: true, + selectionColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + selection: true, + placeholderTextColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + importantForAutofill: true, + lineHeight: true, + textTransform: true, + returnKeyType: true, + keyboardType: true, + multiline: true, + color: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + autoComplete: true, + numberOfLines: true, + letterSpacing: true, + returnKeyLabel: true, + fontSize: true, + onKeyPress: true, + cursorColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + text: true, + showSoftInputOnFocus: true, + textAlign: true, + autoCapitalize: true, + autoCorrect: true, + caretHidden: true, + secureTextEntry: true, + textBreakStrategy: true, + onScroll: true, + onContentSizeChange: true, + disableFullscreenUI: true, + includeFontPadding: true, + fontWeight: true, + fontFamily: true, + allowFontScaling: true, + onSelectionChange: true, + mostRecentEventCount: true, + inlineImageLeft: true, + editable: true, + fontVariant: true, + borderBottomRightRadius: true, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + borderRadius: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + borderTopRightRadius: true, + borderStyle: true, + borderBottomLeftRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + }, + borderTopLeftRadius: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") + } + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var AndroidTextInputNativeComponent = NativeComponentRegistry.get('AndroidTextInput', function () { + return __INTERNAL_VIEW_CONFIG; + }); + + var _default = AndroidTextInputNativeComponent; + exports.default = _default; +},236,[3,202,211,159],"node_modules/react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var logListeners; + function unstable_setLogListeners(listeners) { + logListeners = listeners; + } + + var deepDiffer = function deepDiffer(one, two) { + var maxDepthOrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; + var maybeOptions = arguments.length > 3 ? arguments[3] : undefined; + var options = typeof maxDepthOrOptions === 'number' ? maybeOptions : maxDepthOrOptions; + var maxDepth = typeof maxDepthOrOptions === 'number' ? maxDepthOrOptions : -1; + if (maxDepth === 0) { + return true; + } + if (one === two) { + return false; + } + if (typeof one === 'function' && typeof two === 'function') { + var unsafelyIgnoreFunctions = options == null ? void 0 : options.unsafelyIgnoreFunctions; + if (unsafelyIgnoreFunctions == null) { + if (logListeners && logListeners.onDifferentFunctionsIgnored && (!options || !('unsafelyIgnoreFunctions' in options))) { + logListeners.onDifferentFunctionsIgnored(one.name, two.name); + } + unsafelyIgnoreFunctions = true; + } + return !unsafelyIgnoreFunctions; + } + if (typeof one !== 'object' || one === null) { + return one !== two; + } + if (typeof two !== 'object' || two === null) { + return true; + } + if (one.constructor !== two.constructor) { + return true; + } + if (Array.isArray(one)) { + var len = one.length; + if (two.length !== len) { + return true; + } + for (var ii = 0; ii < len; ii++) { + if (deepDiffer(one[ii], two[ii], maxDepth - 1, options)) { + return true; + } + } + } else { + for (var key in one) { + if (deepDiffer(one[key], two[key], maxDepth - 1, options)) { + return true; + } + } + for (var twoKey in two) { + if (one[twoKey] === undefined && two[twoKey] !== undefined) { + return true; + } + } + } + return false; + }; + module.exports = deepDiffer; + module.exports.unstable_setLogListeners = unstable_setLogListeners; +},237,[],"node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + + var ReactFiberErrorDialog = { + showErrorDialog: function showErrorDialog(_ref) { + var componentStack = _ref.componentStack, + errorValue = _ref.error; + var error; + + if (errorValue instanceof Error) { + error = errorValue; + } else if (typeof errorValue === 'string') { + error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)(errorValue); + } else { + error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)('Unspecified error'); + } + try { + error.componentStack = componentStack; + error.isComponentError = true; + } catch (_unused) { + } + (0, _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException)(error, false); + + return false; + } + }; + var _default = ReactFiberErrorDialog; + exports.default = _default; +},238,[45],"node_modules/react-native/Libraries/Core/ReactFiberErrorDialog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + + var RawEventEmitter = new _EventEmitter.default(); + + var _default = RawEventEmitter; + exports.default = _default; +},239,[3,5],"node_modules/react-native/Libraries/Core/RawEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _EventPolyfill2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./EventPolyfill")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var CustomEvent = function (_EventPolyfill) { + (0, _inherits2.default)(CustomEvent, _EventPolyfill); + var _super = _createSuper(CustomEvent); + function CustomEvent(typeArg, options) { + var _this; + (0, _classCallCheck2.default)(this, CustomEvent); + var bubbles = options.bubbles, + cancelable = options.cancelable, + composed = options.composed; + _this = _super.call(this, typeArg, { + bubbles: bubbles, + cancelable: cancelable, + composed: composed + }); + _this.detail = options.detail; + return _this; + } + return (0, _createClass2.default)(CustomEvent); + }(_EventPolyfill2.default); + var _default = CustomEvent; + exports.default = _default; +},240,[3,13,12,50,47,46,241],"node_modules/react-native/Libraries/Events/CustomEvent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var EventPolyfill = function () { + + function EventPolyfill(type, eventInitDict) { + (0, _classCallCheck2.default)(this, EventPolyfill); + this.type = type; + this.bubbles = !!(eventInitDict != null && eventInitDict.bubbles || false); + this.cancelable = !!(eventInitDict != null && eventInitDict.cancelable || false); + this.composed = !!(eventInitDict != null && eventInitDict.composed || false); + this.scoped = !!(eventInitDict != null && eventInitDict.scoped || false); + + this.isTrusted = false; + + this.timeStamp = Date.now(); + this.defaultPrevented = false; + + this.NONE = 0; + this.AT_TARGET = 1; + this.BUBBLING_PHASE = 2; + this.CAPTURING_PHASE = 3; + this.eventPhase = this.NONE; + + this.currentTarget = null; + this.target = null; + this.srcElement = null; + } + (0, _createClass2.default)(EventPolyfill, [{ + key: "composedPath", + value: function composedPath() { + throw new Error('TODO: not yet implemented'); + } + }, { + key: "preventDefault", + value: function preventDefault() { + this.defaultPrevented = true; + if (this._syntheticEvent != null) { + this._syntheticEvent.preventDefault(); + } + } + }, { + key: "initEvent", + value: function initEvent(type, bubbles, cancelable) { + throw new Error('TODO: not yet implemented. This method is also deprecated.'); + } + }, { + key: "stopImmediatePropagation", + value: function stopImmediatePropagation() { + throw new Error('TODO: not yet implemented'); + } + }, { + key: "stopPropagation", + value: function stopPropagation() { + if (this._syntheticEvent != null) { + this._syntheticEvent.stopPropagation(); + } + } + }, { + key: "setSyntheticEvent", + value: function setSyntheticEvent(value) { + this._syntheticEvent = value; + } + }]); + return EventPolyfill; + }(); + + global.Event = EventPolyfill; + var _default = EventPolyfill; + exports.default = _default; +},241,[3,12,13],"node_modules/react-native/Libraries/Events/EventPolyfill.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + "use strict"; + + _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var React = _$$_REQUIRE(_dependencyMap[1], "react"); + function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + } + var hasError = !1, + caughtError = null, + hasRethrowError = !1, + rethrowError = null, + reporter = { + onError: function onError(error) { + hasError = !0; + caughtError = error; + } + }; + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = !1; + caughtError = null; + invokeGuardedCallbackImpl.apply(reporter, arguments); + } + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + if (hasError) { + var error = caughtError; + hasError = !1; + caughtError = null; + } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + hasRethrowError || (hasRethrowError = !0, rethrowError = error); + } + } + var isArrayImpl = Array.isArray, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); + event.currentTarget = null; + } + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + var assign = Object.assign; + function functionThatReturnsTrue() { + return !0; + } + function functionThatReturnsFalse() { + return !1; + } + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchInstances = this._dispatchListeners = null; + dispatchConfig = this.constructor.Interface; + for (var propName in dispatchConfig) { + dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + } + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + for (propName in Interface) { + this[propName] = null; + } + this.nativeEvent = this._targetInst = this.dispatchConfig = null; + this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; + this._dispatchInstances = this._dispatchListeners = null; + } + }); + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + SyntheticEvent.extend = function (Interface) { + function E() {} + function Class() { + return Super.apply(this, arguments); + } + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + function releasePooledEvent(event) { + if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; + } + }); + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + if (null == _ref) throw Error("Touch object is missing identifier."); + return _ref; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + var instrumentationCallback, + ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { + if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } + } + }, + touchHistory: touchHistory + }; + function accumulate(current, next) { + if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); + return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function accumulateInto(current, next) { + if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + if (isArrayImpl(current)) { + if (isArrayImpl(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + return isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + var responderInst = null, + trackedTouchCount = 0; + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: ["topScroll"] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: ["topSelectionChange"] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + function getParent(inst) { + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + return inst ? inst : null; + } + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) { + path.push(inst), inst = getParent(inst); + } + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + function getListener(inst, registrationName) { + inst = inst.stateNode; + if (null === inst) return null; + inst = getFiberCurrentPropsFromNode(inst); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + return inst; + } + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); + } + } + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp = responderInst; + for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) { + depthA++; + } + tempA = 0; + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { + tempA++; + } + for (; 0 < depthA - tempA;) { + JSCompiler_temp = getParent(JSCompiler_temp), depthA--; + } + for (; 0 < tempA - depthA;) { + targetInst = getParent(targetInst), tempA--; + } + for (; depthA--;) { + if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; + JSCompiler_temp = getParent(JSCompiler_temp); + targetInst = getParent(targetInst); + } + JSCompiler_temp = null; + } else JSCompiler_temp = targetInst; + targetInst = JSCompiler_temp; + JSCompiler_temp = targetInst === responderInst; + shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); + shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; + JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); + b: { + JSCompiler_temp = shouldSetEventType._dispatchListeners; + targetInst = shouldSetEventType._dispatchInstances; + if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + shouldSetEventType._dispatchInstances = null; + shouldSetEventType._dispatchListeners = null; + shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); + if (JSCompiler_temp && JSCompiler_temp !== responderInst) { + if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { + if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { + depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; + forEachAccumulated(depthA, accumulateDirectDispatchesSingle); + var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); + changeResponder(JSCompiler_temp, targetInst); + } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); + } else JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = null; + shouldSetEventType = responderInst && isStartish(topLevelType); + JSCompiler_temp = responderInst && isMoveish(topLevelType); + targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) { + if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { + depthA = getInstanceFromNode(targetInst); + b: { + for (targetInst = responderInst; depthA;) { + if (targetInst === depthA || targetInst === depthA.alternate) { + targetInst = !0; + break b; + } + depthA = getParent(depthA); + } + targetInst = !1; + } + if (targetInst) { + topLevelType = !1; + break a; + } + } + } + topLevelType = !0; + } + if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); + return JSCompiler_temp$jscomp$0; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }, + eventPluginOrder = null, + namesToPlugins = {}; + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); + if (!plugins[pluginIndex]) { + if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + eventName$jscomp$0 = eventName; + if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) { + phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + } + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } + } + } + } + function publishRegistrationName(registrationName, pluginModule) { + if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); + registrationNameModules[registrationName] = pluginModule; + } + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}; + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (null === stateNode) return null; + inst = getFiberCurrentPropsFromNode(stateNode); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; + var listeners = []; + inst && listeners.push(inst); + var requestedPhaseIsCapture = "captured" === phase, + mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { + if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = !0; + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + listenerObj.options.once ? listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); + }) : listeners.push(listenerFnWrapper); + } + }); + return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; + } + var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; + if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) { + event._dispatchInstances.push(inst); + } + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); + accumulateListenersAndInstances(inst, event, phase); + } + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + for (var path = []; inst;) { + path.push(inst); + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + inst = inst ? inst : null; + } + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); + } + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); + accumulateListenersAndInstances(inst, event, listeners); + } + } + } + if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + recomputePluginOrdering(); + var injectedNamesToPlugins$jscomp$inline_225 = { + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], + directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; + return topLevelType; + } + } + }, + isOrderingDirty$jscomp$inline_226 = !1, + pluginName$jscomp$inline_227; + for (pluginName$jscomp$inline_227 in injectedNamesToPlugins$jscomp$inline_225) { + if (injectedNamesToPlugins$jscomp$inline_225.hasOwnProperty(pluginName$jscomp$inline_227)) { + var pluginModule$jscomp$inline_228 = injectedNamesToPlugins$jscomp$inline_225[pluginName$jscomp$inline_227]; + if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_227) || namesToPlugins[pluginName$jscomp$inline_227] !== pluginModule$jscomp$inline_228) { + if (namesToPlugins[pluginName$jscomp$inline_227]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_227 + "`.")); + namesToPlugins[pluginName$jscomp$inline_227] = pluginModule$jscomp$inline_228; + isOrderingDirty$jscomp$inline_226 = !0; + } + } + } + isOrderingDirty$jscomp$inline_226 && recomputePluginOrdering(); + var instanceCache = new Map(), + instanceProps = new Map(); + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; + } + function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + } + var isInsideEventHandler = !1; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) return fn(bookkeeping); + isInsideEventHandler = !0; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = !1; + } + } + var eventQueue = null; + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { + executeDispatch(e, dispatchListeners[i], dispatchInstances[i]); + } else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + var EMPTY_NATIVE_EVENT = {}; + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT, + inst = getInstanceFromTag(rootNodeID), + target = null; + null != inst && (target = inst.stateNode); + batchedUpdates(function () { + var JSCompiler_inline_result = target; + for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, inst, nativeEvent, JSCompiler_inline_result)) && (events = accumulateInto(events, possiblePlugin)); + } + JSCompiler_inline_result = events; + null !== JSCompiler_inline_result && (eventQueue = accumulateInto(eventQueue, JSCompiler_inline_result)); + JSCompiler_inline_result = eventQueue; + eventQueue = null; + if (JSCompiler_inline_result) { + forEachAccumulated(JSCompiler_inline_result, executeDispatchesAndReleaseTopLevel); + if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); + if (hasRethrowError) throw JSCompiler_inline_result = rethrowError, hasRethrowError = !1, rethrowError = null, JSCompiler_inline_result; + } + }); + } + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RCTEventEmitter.register({ + receiveEvent: function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); + }, + receiveTouches: function receiveTouches(eventTopLevelType, touches, changedIndices) { + if ("topTouchEnd" === eventTopLevelType || "topTouchCancel" === eventTopLevelType) { + var JSCompiler_temp = []; + for (var i = 0; i < changedIndices.length; i++) { + var index$0 = changedIndices[i]; + JSCompiler_temp.push(touches[index$0]); + touches[index$0] = null; + } + for (i = changedIndices = 0; i < touches.length; i++) { + index$0 = touches[i], null !== index$0 && (touches[changedIndices++] = index$0); + } + touches.length = changedIndices; + } else for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++) { + JSCompiler_temp.push(touches[changedIndices[i]]); + } + for (changedIndices = 0; changedIndices < JSCompiler_temp.length; changedIndices++) { + i = JSCompiler_temp[changedIndices]; + i.changedTouches = JSCompiler_temp; + i.touches = touches; + index$0 = null; + var target = i.target; + null === target || void 0 === target || 1 > target || (index$0 = target); + _receiveRootNodeIDEvent(index$0, eventTopLevelType, i); + } + } + }); + getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(stateNode) { + return instanceProps.get(stateNode._nativeTag) || null; + }; + getInstanceFromNode = getInstanceFromTag; + getNodeFromInstance = function getNodeFromInstance(inst) { + inst = inst.stateNode; + var tag = inst._nativeTag; + void 0 === tag && (inst = inst.canonical, tag = inst._nativeTag); + if (!tag) throw Error("All native instances should have a tag."); + return inst; + }; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); + } + }); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"); + Symbol.for("react.scope"); + Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + Symbol.for("react.legacy_hidden"); + Symbol.for("react.cache"); + Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if ("object" === typeof type) switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); + return type; + case REACT_MEMO_TYPE: + return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + } + return null; + } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return;) { + node = node.return; + } else { + fiber = node; + do { + node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; + } while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate;;) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB;) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) a = parentA, b = parentB;else { + for (var didFindChild = !1, child$1 = parentA.child; child$1;) { + if (child$1 === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (child$1 === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + child$1 = child$1.sibling; + } + if (!didFindChild) { + for (child$1 = parentB.child; child$1;) { + if (child$1 === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (child$1 === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + child$1 = child$1.sibling; + } + if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + if (5 === node.tag || 6 === node.tag) return node; + for (node = node.child; null !== node;) { + var match = findCurrentHostFiberImpl(node); + if (null !== match) return match; + node = node.sibling; + } + return null; + } + var emptyObject = {}, + removedKeys = null, + removedKeyCount = 0, + deepDifferOptions = { + unsafelyIgnoreFunctions: !0 + }; + function defaultDiffer(prevProp, nextProp) { + return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } else if (node && 0 < removedKeyCount) for (i in removedKeys) { + if (removedKeys[i]) { + var nextProp = node[i]; + if (void 0 !== nextProp) { + var attributeConfig = validAttributes[i]; + if (attributeConfig) { + "function" === typeof nextProp && (nextProp = !0); + "undefined" === typeof nextProp && (nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; + removedKeys[i] = !1; + removedKeyCount--; + } + } + } + } + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + } + for (; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + for (; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); + } + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; + } + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + return updatePayload; + } + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + for (propKey in nextProps) { + if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + } + for (var propKey$3 in prevProps) { + void 0 === nextProps[propKey$3] && (!(attributeConfig = validAttributes[propKey$3]) || updatePayload && void 0 !== updatePayload[propKey$3] || (prevProp = prevProps[propKey$3], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$3] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$3] || (removedKeys[propKey$3] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + } + return updatePayload; + } + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); + }; + } + var ReactNativeFiberHostComponent = function () { + function ReactNativeFiberHostComponent(tag, viewConfig) { + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; + } + var _proto = ReactNativeFiberHostComponent.prototype; + _proto.blur = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); + }; + _proto.focus = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); + }; + _proto.measure = function (callback) { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureInWindow = function (callback) { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + if ("number" === typeof relativeToNativeNode) var relativeNode = relativeToNativeNode;else relativeToNativeNode._nativeTag && (relativeNode = relativeToNativeNode._nativeTag); + null != relativeNode && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + }; + _proto.setNativeProps = function (nativeProps) { + nativeProps = diffProperties(null, emptyObject, nativeProps, this.viewConfig.validAttributes); + null != nativeProps && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); + }; + return ReactNativeFiberHostComponent; + }(), + rendererID = null, + injectedHook = null; + function onCommitRoot(root) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { + injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); + } catch (err) {} + } + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, + log = Math.log, + LN2 = Math.LN2; + function clz32Fallback(x) { + x >>>= 0; + return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; + } + var nextTransitionLane = 64, + nextRetryLane = 4194304; + function getHighestPriorityLanes(lanes) { + switch (lanes & -lanes) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return lanes & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return lanes; + } + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + nonIdlePendingLanes = pendingLanes & 268435455; + if (0 !== nonIdlePendingLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); + } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); + if (0 === nextLanes) return 0; + if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; + 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); + wipLanes = root.entangledLanes; + if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) { + pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; + } + return nextLanes; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + return currentTime + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } + } + function getLanesToRetrySynchronouslyOnError(root) { + root = root.pendingLanes & -1073741825; + return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) { + laneMap.push(initial); + } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); + root = root.eventTimes; + updateLane = 31 - clz32(updateLane); + root[updateLane] = eventTime; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + remainingLanes = root.entanglements; + var eventTimes = root.eventTimes; + for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { + var index$8 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$8; + remainingLanes[index$8] = 0; + eventTimes[index$8] = -1; + root[index$8] = -1; + noLongerPendingLanes &= ~lane; + } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + for (root = root.entanglements; rootEntangledLanes;) { + var index$9 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$9; + lane & entangledLanes | root[index$9] & entangledLanes && (root[index$9] |= entangledLanes); + rootEntangledLanes &= ~lane; + } + } + var currentUpdatePriority = 0; + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; + } + function shim() { + throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); + } + var getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, + UPDATE_SIGNAL = {}, + nextReactTag = 3; + function allocateTag() { + var tag = nextReactTag; + 1 === tag % 10 && (tag += 2); + nextReactTag = tag + 2; + return tag; + } + function recursivelyUncacheFiberNode(node) { + if ("number" === typeof node) instanceCache.delete(node), instanceProps.delete(node);else { + var tag = node._nativeTag; + instanceCache.delete(tag); + instanceProps.delete(tag); + node._children.forEach(recursivelyUncacheFiberNode); + } + } + function finalizeInitialChildren(parentInstance) { + if (0 === parentInstance._children.length) return !1; + var nativeTags = parentInstance._children.map(function (child) { + return "number" === typeof child ? child : child._nativeTag; + }); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parentInstance._nativeTag, nativeTags); + return !1; + } + var scheduleTimeout = setTimeout, + cancelTimeout = clearTimeout; + function describeComponentFrame(name, source, ownerName) { + source = ""; + ownerName && (source = " (created by " + ownerName + ")"); + return "\n in " + (name || "Unknown") + source; + } + function describeFunctionComponentFrame(fn, source) { + return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty, + valueStack = [], + index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + var emptyContextObject = {}, + contextStackCursor = createCursor(emptyContextObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyContextObject; + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyContextObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + for (key in contextTypes) { + context[key] = unmaskedContext[key]; + } + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + function isContextProvider(type) { + type = type.childContextTypes; + return null !== type && void 0 !== type; + } + function popContext() { + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + } + function pushTopLevelContextObject(fiber, context, didChange) { + if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context); + push(didPerformWorkStackCursor, didChange); + } + function processChildContext(fiber, type, parentContext) { + var instance = fiber.stateNode; + type = type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + for (var contextKey in instance) { + if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); + push(didPerformWorkStackCursor, didChange); + } + function is(x, y) { + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; + } + var objectIs = "function" === typeof Object.is ? Object.is : is, + syncQueue = null, + includesLegacySyncCallbacks = !1, + isFlushingSyncQueue = !1; + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && null !== syncQueue) { + isFlushingSyncQueue = !0; + var i = 0, + previousUpdatePriority = currentUpdatePriority; + try { + var queue = syncQueue; + for (currentUpdatePriority = 1; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(!0); + } while (null !== callback); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + } catch (error) { + throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; + } finally { + currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; + } + } + return null; + } + var forkStack = [], + forkStackIndex = 0, + treeForkProvider = null, + idStack = [], + idStackIndex = 0, + treeContextProvider = null; + function popTreeContext(workInProgress) { + for (; workInProgress === treeForkProvider;) { + treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; + } + for (; workInProgress === treeContextProvider;) { + treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; + } + } + var hydrationErrors = null, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + for (keysB = 0; keysB < keysA.length; keysB++) { + var currentKey = keysA[keysB]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; + } + return !0; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 5: + return describeComponentFrame(fiber.type, null, null); + case 16: + return describeComponentFrame("Lazy", null, null); + case 13: + return describeComponentFrame("Suspense", null, null); + case 19: + return describeComponentFrame("SuspenseList", null, null); + case 0: + case 2: + case 15: + return describeFunctionComponentFrame(fiber.type, null); + case 11: + return describeFunctionComponentFrame(fiber.type.render, null); + case 1: + return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress), workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + baseProps = assign({}, baseProps); + Component = Component.defaultProps; + for (var propName in Component) { + void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); + } + return baseProps; + } + return baseProps; + } + var valueCursor = createCursor(null), + currentlyRenderingFiber = null, + lastContextDependency = null, + lastFullyObservedContext = null; + function resetContextDependencies() { + lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; + } + function popProvider(context) { + var currentValue = valueCursor.current; + pop(valueCursor); + context._currentValue = currentValue; + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + for (; null !== parent;) { + var alternate = parent.alternate; + (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); + if (parent === propagationRoot) break; + parent = parent.return; + } + } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastFullyObservedContext = lastContextDependency = null; + workInProgress = workInProgress.dependencies; + null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); + } + function readContext(context) { + var value = context._currentValue; + if (lastFullyObservedContext !== context) if (context = { + context: context, + memoizedValue: value, + next: null + }, null === lastContextDependency) { + if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + lastContextDependency = context; + currentlyRenderingFiber.dependencies = { + lanes: 0, + firstContext: context + }; + } else lastContextDependency = lastContextDependency.next = context; + return value; + } + var interleavedQueues = null, + hasForceUpdate = !1; + function initializeUpdateQueue(fiber) { + fiber.updateQueue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; + } + function cloneUpdateQueue(current, workInProgress) { + current = current.updateQueue; + workInProgress.updateQueue === current && (workInProgress.updateQueue = { + baseState: current.baseState, + firstBaseUpdate: current.firstBaseUpdate, + lastBaseUpdate: current.lastBaseUpdate, + shared: current.shared, + effects: current.effects + }); + } + function createUpdate(eventTime, lane) { + return { + eventTime: eventTime, + lane: lane, + tag: 0, + payload: null, + callback: null, + next: null + }; + } + function enqueueUpdate(fiber, update) { + var updateQueue = fiber.updateQueue; + null !== updateQueue && (updateQueue = updateQueue.shared, isInterleavedUpdate(fiber) ? (fiber = updateQueue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [updateQueue] : interleavedQueues.push(updateQueue)) : (update.next = fiber.next, fiber.next = update), updateQueue.interleaved = update) : (fiber = updateQueue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), updateQueue.pending = update)); + } + function entangleTransitions(root, fiber, lane) { + fiber = fiber.updateQueue; + if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { + var queueLanes = fiber.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + fiber.lanes = lane; + markRootEntangled(root, lane); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue, + current = workInProgress.alternate; + if (null !== current && (current = current.updateQueue, queue === current)) { + var newFirst = null, + newLast = null; + queue = queue.firstBaseUpdate; + if (null !== queue) { + do { + var clone = { + eventTime: queue.eventTime, + lane: queue.lane, + tag: queue.tag, + payload: queue.payload, + callback: queue.callback, + next: null + }; + null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; + queue = queue.next; + } while (null !== queue); + null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; + } else newFirst = newLast = capturedUpdate; + queue = { + baseState: current.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: current.shared, + effects: current.effects + }; + workInProgress.updateQueue = queue; + return; + } + workInProgress = queue.lastBaseUpdate; + null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; + queue.lastBaseUpdate = capturedUpdate; + } + function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { + var queue = workInProgress$jscomp$0.updateQueue; + hasForceUpdate = !1; + var firstBaseUpdate = queue.firstBaseUpdate, + lastBaseUpdate = queue.lastBaseUpdate, + pendingQueue = queue.shared.pending; + if (null !== pendingQueue) { + queue.shared.pending = null; + var lastPendingUpdate = pendingQueue, + firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; + lastBaseUpdate = lastPendingUpdate; + var current = workInProgress$jscomp$0.alternate; + null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); + } + if (null !== firstBaseUpdate) { + var newState = queue.baseState; + lastBaseUpdate = 0; + current = firstPendingUpdate = lastPendingUpdate = null; + pendingQueue = firstBaseUpdate; + do { + var updateLane = pendingQueue.lane, + updateEventTime = pendingQueue.eventTime; + if ((renderLanes & updateLane) === updateLane) { + null !== current && (current = current.next = { + eventTime: updateEventTime, + lane: 0, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }); + a: { + var workInProgress = workInProgress$jscomp$0, + update = pendingQueue; + updateLane = props; + updateEventTime = instance; + switch (update.tag) { + case 1: + workInProgress = update.payload; + if ("function" === typeof workInProgress) { + newState = workInProgress.call(updateEventTime, newState, updateLane); + break a; + } + newState = workInProgress; + break a; + case 3: + workInProgress.flags = workInProgress.flags & -65537 | 128; + case 0: + workInProgress = update.payload; + updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; + if (null === updateLane || void 0 === updateLane) break a; + newState = assign({}, newState, updateLane); + break a; + case 2: + hasForceUpdate = !0; + } + } + null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); + } else updateEventTime = { + eventTime: updateEventTime, + lane: updateLane, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; + pendingQueue = pendingQueue.next; + if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; + } while (1); + null === current && (lastPendingUpdate = newState); + queue.baseState = lastPendingUpdate; + queue.firstBaseUpdate = firstPendingUpdate; + queue.lastBaseUpdate = current; + props = queue.shared.interleaved; + if (null !== props) { + queue = props; + do { + lastBaseUpdate |= queue.lane, queue = queue.next; + } while (queue !== props); + } else null === firstBaseUpdate && (queue.shared.lanes = 0); + workInProgressRootSkippedLanes |= lastBaseUpdate; + workInProgress$jscomp$0.lanes = lastBaseUpdate; + workInProgress$jscomp$0.memoizedState = newState; + } + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + finishedWork = finishedQueue.effects; + finishedQueue.effects = null; + if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { + var effect = finishedWork[finishedQueue], + callback = effect.callback; + if (null !== callback) { + effect.callback = null; + if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); + callback.call(instance); + } + } + } + var emptyRefsObject = new React.Component().refs; + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + ctor = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); + getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); + workInProgress.memoizedState = getDerivedStateFromProps; + 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); + } + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + payload = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== payload && entangleTransitions(payload, inst, lane); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + payload = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== payload && entangleTransitions(payload, inst, lane); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update); + callback = scheduleUpdateOnFiber(inst, lane, eventTime); + null !== callback && entangleTransitions(callback, inst, lane); + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + workInProgress = workInProgress.stateNode; + return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = !1, + unmaskedContext = emptyContextObject; + var context = ctor.contextType; + "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); + ctor = new ctor(props, context); + workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; + ctor.updater = classComponentUpdater; + workInProgress.stateNode = ctor; + ctor._reactInternals = workInProgress; + isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return ctor; + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); + instance.state = workInProgress.memoizedState; + contextType = ctor.getDerivedStateFromProps; + "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); + "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); + } + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + if (element) { + if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + var inst = element.stateNode; + } + if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); + var resolvedInst = inst, + stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + current = function current(value) { + var refs = resolvedInst.refs; + refs === emptyRefsObject && (refs = resolvedInst.refs = {}); + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + current._stringRef = stringRef; + return current; + } + if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + return returnFiber; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + returnFiber = Object.prototype.toString.call(newChild); + throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); + } + function resolveLazy(lazyType) { + var init = lazyType._init; + return init(lazyType._payload); + } + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var deletions = returnFiber.deletions; + null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + for (; null !== currentFirstChild;) { + deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) { + null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + return returnFiber; + } + function useFiber(fiber, pendingProps) { + fiber = createWorkInProgress(fiber, pendingProps); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; + newFiber.flags |= 2; + return lastPlacedIndex; + } + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, textContent); + current.return = returnFiber; + return current; + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; + lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); + lanes.ref = coerceRef(returnFiber, current, element); + lanes.return = returnFiber; + return lanes; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, portal.children || []); + current.return = returnFiber; + return current; + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; + current = useFiber(current, fragment); + current.return = returnFiber; + return current; + } + function createChild(returnFiber, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + case REACT_LAZY_TYPE: + var init = newChild._init; + return createChild(returnFiber, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_LAZY_TYPE: + return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); + case REACT_LAZY_TYPE: + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) { + oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + } + return resultingFirstChild; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { + nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + } + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) { + step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + return iteratorFn; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { + step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return iteratorFn; + } + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + for (var key = newChild.key, child = currentFirstChild; null !== child;) { + if (child.key === key) { + key = newChild.type; + if (key === REACT_FRAGMENT_TYPE) { + if (7 === child.tag) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props.children); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props); + currentFirstChild.ref = coerceRef(returnFiber, child, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + deleteRemainingChildren(returnFiber, child); + break; + } else deleteChild(returnFiber, child); + child = child.sibling; + } + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); + } + return placeSingleChild(returnFiber); + case REACT_PORTAL_TYPE: + a: { + for (child = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === child) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || []); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + return placeSingleChild(returnFiber); + case REACT_LAZY_TYPE: + return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); + } + if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + throwOnInvalidObjectType(returnFiber, newChild); + } + return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance); + push(contextFiberStackCursor, fiber); + push(contextStackCursor$1, NO_CONTEXT); + pop(contextStackCursor$1); + push(contextStackCursor$1, { + isInAParentText: !1 + }); + } + function popHostContainer() { + pop(contextStackCursor$1); + pop(contextFiberStackCursor); + pop(rootInstanceStackCursor); + } + function pushHostContext(fiber) { + requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var JSCompiler_inline_result = fiber.type; + JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; + JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { + isInAParentText: JSCompiler_inline_result + } : context; + context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); + } + var suspenseStackCursor = createCursor(0); + function findFirstSuspended(row) { + for (var node = row; null !== node;) { + if (13 === node.tag) { + var state = node.memoizedState; + if (null !== state && (null === state.dehydrated || shim() || shim())) return node; + } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { + if (0 !== (node.flags & 128)) return node; + } else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === row) return null; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + workInProgressSources[i]._workInProgressVersionPrimary = null; + } + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes = 0, + currentlyRenderingFiber$1 = null, + currentHook = null, + workInProgressHook = null, + didScheduleRenderPhaseUpdate = !1, + didScheduleRenderPhaseUpdateDuringThisPass = !1, + globalClientIdCounter = 0; + function throwInvalidHookError() { + 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (null === prevDeps) return !1; + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (!objectIs(nextDeps[i], prevDeps[i])) return !1; + } + return !0; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = 0; + ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; + current = Component(props, secondArg); + if (didScheduleRenderPhaseUpdateDuringThisPass) { + nextRenderLanes = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = !1; + if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + nextRenderLanes += 1; + workInProgressHook = currentHook = null; + workInProgress.updateQueue = null; + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; + current = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + workInProgress = null !== currentHook && null !== currentHook.next; + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdate = !1; + if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + return current; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; + return workInProgressHook; + } + function updateWorkInProgressHook() { + if (null === currentHook) { + var nextCurrentHook = currentlyRenderingFiber$1.alternate; + nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; + } else nextCurrentHook = currentHook.next; + var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; + if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { + if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); + currentHook = nextCurrentHook; + nextCurrentHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; + } + return workInProgressHook; + } + function basicStateReducer(state, action) { + return "function" === typeof action ? action(state) : action; + } + function updateReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var current = currentHook, + baseQueue = current.baseQueue, + pendingQueue = queue.pending; + if (null !== pendingQueue) { + if (null !== baseQueue) { + var baseFirst = baseQueue.next; + baseQueue.next = pendingQueue.next; + pendingQueue.next = baseFirst; + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (null !== baseQueue) { + pendingQueue = baseQueue.next; + current = current.baseState; + var newBaseQueueFirst = baseFirst = null, + newBaseQueueLast = null, + update = pendingQueue; + do { + var updateLane = update.lane; + if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { + lane: 0, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; + currentlyRenderingFiber$1.lanes |= updateLane; + workInProgressRootSkippedLanes |= updateLane; + } + update = update.next; + } while (null !== update && update !== pendingQueue); + null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; + objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = current; + hook.baseState = baseFirst; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = current; + } + reducer = queue.interleaved; + if (null !== reducer) { + baseQueue = reducer; + do { + pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; + } while (baseQueue !== reducer); + } else null === baseQueue && (queue.lanes = 0); + return [hook.memoizedState, queue.dispatch]; + } + function rerenderReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var dispatch = queue.dispatch, + lastRenderPhaseUpdate = queue.pending, + newState = hook.memoizedState; + if (null !== lastRenderPhaseUpdate) { + queue.pending = null; + var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + do { + newState = reducer(newState, update.action), update = update.next; + } while (update !== lastRenderPhaseUpdate); + objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = newState; + null === hook.baseQueue && (hook.baseState = newState); + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function updateMutableSource() {} + function updateSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = updateWorkInProgressHook(), + nextSnapshot = getSnapshot(), + snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); + snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); + hook = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); + if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= 16384; + fiber = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + getSnapshot = currentlyRenderingFiber$1.updateQueue; + null === getSnapshot ? (getSnapshot = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); + } + function subscribeToStore(fiber, inst, subscribe) { + return subscribe(function () { + checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); + }); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + inst = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(inst, nextValue); + } catch (error) { + return !0; + } + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + "function" === typeof initialState && (initialState = initialState()); + hook.memoizedState = hook.baseState = initialState; + initialState = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = initialState; + initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); + return [hook.memoizedState, initialState]; + } + function pushEffect(tag, create, destroy, deps) { + tag = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + create = currentlyRenderingFiber$1.updateQueue; + null === create ? (create = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); + return tag; + } + function updateRef() { + return updateWorkInProgressHook().memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var destroy = void 0; + if (null !== currentHook) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); + return; + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); + } + function mountEffect(create, deps) { + return mountEffectImpl(8390656, 8, create, deps); + } + function updateEffect(create, deps) { + return updateEffectImpl(2048, 8, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(4, 2, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(4, 4, create, deps); + } + function imperativeHandleEffect(create, ref) { + if ("function" === typeof ref) return create = create(), ref(create), function () { + ref(null); + }; + if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { + ref.current = null; + }; + } + function updateImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + } + function mountDebugValue() {} + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + hook.memoizedState = [callback, deps]; + return callback; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + } + function updateDeferredValueImpl(hook, prevValue, value) { + if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; + objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); + return prevValue; + } + function startTransition(setPending, callback) { + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + setPending(!0); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + try { + setPending(!1), callback(); + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; + } + } + function updateId() { + return updateWorkInProgressHook().memoizedState; + } + function dispatchReducerAction(fiber, queue, action) { + var lane = requestUpdateLane(fiber); + action = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (enqueueUpdate$1(fiber, queue, action), action = requestEventTime(), fiber = scheduleUpdateOnFiber(fiber, lane, action), null !== fiber && entangleTransitionUpdate(fiber, queue, lane)); + } + function dispatchSetState(fiber, queue, action) { + var lane = requestUpdateLane(fiber), + update = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { + enqueueUpdate$1(fiber, queue, update); + var alternate = fiber.alternate; + if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { + var currentState = queue.lastRenderedState, + eagerState = alternate(currentState, action); + update.hasEagerState = !0; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) return; + } catch (error) {} finally {} + action = requestEventTime(); + fiber = scheduleUpdateOnFiber(fiber, lane, action); + null !== fiber && entangleTransitionUpdate(fiber, queue, lane); + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; + var pending = queue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + queue.pending = update; + } + function enqueueUpdate$1(fiber, queue, update) { + isInterleavedUpdate(fiber) ? (fiber = queue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [queue] : interleavedQueues.push(queue)) : (update.next = fiber.next, fiber.next = update), queue.interleaved = update) : (fiber = queue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), queue.pending = update); + } + function entangleTransitionUpdate(root, queue, lane) { + if (0 !== (lane & 4194240)) { + var queueLanes = queue.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + queue.lanes = lane; + markRootEntangled(root, lane); + } + } + var ContextOnlyDispatcher = { + readContext: readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnMount = { + readContext: readContext, + useCallback: function useCallback(callback, deps) { + mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; + return callback; + }, + useContext: readContext, + useEffect: mountEffect, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + return mountEffectImpl(4, 4, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + return mountEffectImpl(4, 2, create, deps); + }, + useMemo: function useMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + }, + useReducer: function useReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + initialArg = void 0 !== init ? init(initialArg) : initialArg; + hook.memoizedState = hook.baseState = initialArg; + reducer = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialArg + }; + hook.queue = reducer; + reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); + return [hook.memoizedState, reducer]; + }, + useRef: function useRef(initialValue) { + var hook = mountWorkInProgressHook(); + initialValue = { + current: initialValue + }; + return hook.memoizedState = initialValue; + }, + useState: mountState, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + return mountWorkInProgressHook().memoizedState = value; + }, + useTransition: function useTransition() { + var _mountState = mountState(!1), + isPending = _mountState[0]; + _mountState = startTransition.bind(null, _mountState[1]); + mountWorkInProgressHook().memoizedState = _mountState; + return [isPending, _mountState]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = mountWorkInProgressHook(); + var nextSnapshot = getSnapshot(); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + return nextSnapshot; + }, + useId: function useId() { + var hook = mountWorkInProgressHook(), + identifierPrefix = workInProgressRoot.identifierPrefix, + globalClientId = globalClientIdCounter++; + identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + return hook.memoizedState = identifierPrefix; + }, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnUpdate = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: updateReducer, + useRef: updateRef, + useState: function useState() { + return updateReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = updateReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnRerender = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: rerenderReducer, + useRef: updateRef, + useState: function useState() { + return rerenderReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = rerenderReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }; + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source) + }; + } + if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + function logCapturedError(boundary, errorInfo) { + try { + !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ + componentStack: null !== errorInfo.stack ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null + }) && console.error(errorInfo.value); + } catch (e) { + setTimeout(function () { + throw e; + }); + } + } + var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + lane.payload = { + element: null + }; + var error = errorInfo.value; + lane.callback = function () { + hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); + logCapturedError(fiber, errorInfo); + }; + return lane; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if ("function" === typeof getDerivedStateFromError) { + var error = errorInfo.value; + lane.payload = function () { + return getDerivedStateFromError(error); + }; + lane.callback = function () { + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { + logCapturedError(fiber, errorInfo); + "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); + var stack = errorInfo.stack; + this.componentDidCatch(errorInfo.value, { + componentStack: null !== stack ? stack : "" + }); + }); + return lane; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + if (null === pingCache) { + pingCache = root.pingCache = new PossiblyWeakMap(); + var threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); + threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, + didReceiveUpdate = !1; + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + Component = Component.render; + var ref = workInProgress.ref; + prepareToReadContext(workInProgress, renderLanes); + nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, nextProps, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null === current) { + var type = Component.type; + if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); + current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + type = current.child; + if (0 === (current.lanes & renderLanes)) { + var prevProps = type.memoizedProps; + Component = Component.compare; + Component = null !== Component ? Component : shallowEqual; + if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= 1; + current = createWorkInProgress(type, nextProps); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null !== current) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); + } + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + nextChildren = nextProps.children, + prevState = null !== current ? current.memoizedState : null; + if ("hidden" === nextProps.mode) { + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { + if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { + baseLanes: current, + cachePool: null, + transitions: null + }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; + workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + nextProps = null !== prevState ? prevState.baseLanes : renderLanes; + push(subtreeRenderLanesCursor, subtreeRenderLanes); + subtreeRenderLanes |= nextProps; + } + } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + prepareToReadContext(workInProgress, renderLanes); + Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, Component, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + prepareToReadContext(workInProgress, renderLanes); + if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { + var instance = workInProgress.stateNode, + oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context, + contextType = Component.contextType; + "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); + var getDerivedStateFromProps = Component.getDerivedStateFromProps, + hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; + hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + oldContext = workInProgress.memoizedState; + oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); + } else { + instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + oldProps = workInProgress.memoizedProps; + contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); + instance.props = contextType; + hasNewLifecycles = workInProgress.pendingProps; + oldState = instance.context; + oldContext = Component.contextType; + "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); + var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; + (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); + hasForceUpdate = !1; + oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + var newState = workInProgress.memoizedState; + oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); + } + return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.flags & 128); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner$1.current = workInProgress; + var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); + workInProgress.flags |= 1; + null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); + workInProgress.memoizedState = shouldUpdate.state; + hasContext && invalidateContextProvider(workInProgress, Component, !0); + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: 0 + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: null, + transitions: null + }; + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + suspenseContext = suspenseStackCursor.current, + showFallback = !1, + didSuspend = 0 !== (workInProgress.flags & 128), + JSCompiler_temp; + (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); + if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; + push(suspenseStackCursor, suspenseContext & 1); + if (null === current) { + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; + didSuspend = nextProps.children; + current = nextProps.fallback; + return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { + mode: "hidden", + children: didSuspend + }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); + } + suspenseContext = current.memoizedState; + if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); + if (showFallback) { + showFallback = nextProps.fallback; + didSuspend = workInProgress.mode; + suspenseContext = current.child; + JSCompiler_temp = suspenseContext.sibling; + var primaryChildProps = { + mode: "hidden", + children: nextProps.children + }; + 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); + null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); + showFallback.return = workInProgress; + nextProps.return = workInProgress; + nextProps.sibling = showFallback; + workInProgress.child = nextProps; + nextProps = showFallback; + showFallback = workInProgress.child; + didSuspend = current.child.memoizedState; + didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { + baseLanes: didSuspend.baseLanes | renderLanes, + cachePool: null, + transitions: didSuspend.transitions + }; + showFallback.memoizedState = didSuspend; + showFallback.childLanes = current.childLanes & ~renderLanes; + workInProgress.memoizedState = SUSPENDED_MARKER; + return nextProps; + } + showFallback = current.child; + current = showFallback.sibling; + nextProps = createWorkInProgress(showFallback, { + mode: "visible", + children: nextProps.children + }); + 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); + nextProps.return = workInProgress; + nextProps.sibling = null; + null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); + workInProgress.child = nextProps; + workInProgress.memoizedState = null; + return nextProps; + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { + primaryChildren = createFiberFromOffscreen({ + mode: "visible", + children: primaryChildren + }, workInProgress.mode, 0, null); + primaryChildren.return = workInProgress; + return workInProgress.child = primaryChildren; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); + current.flags |= 2; + workInProgress.memoizedState = null; + return current; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (didSuspend) { + if (workInProgress.flags & 256) return workInProgress.flags &= -257, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); + if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; + suspenseState = nextProps.fallback; + didSuspend = workInProgress.mode; + nextProps = createFiberFromOffscreen({ + mode: "visible", + children: nextProps.children + }, didSuspend, 0, null); + suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); + suspenseState.flags |= 2; + nextProps.return = workInProgress; + suspenseState.return = workInProgress; + nextProps.sibling = suspenseState; + workInProgress.child = nextProps; + 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); + workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return suspenseState; + } + if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); + if (shim()) return suspenseState = shim().errorMessage, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState ? Error(suspenseState) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")); + didSuspend = 0 !== (renderLanes & current.childLanes); + if (didReceiveUpdate || didSuspend) { + nextProps = workInProgressRoot; + if (null !== nextProps) { + switch (renderLanes & -renderLanes) { + case 4: + didSuspend = 2; + break; + case 16: + didSuspend = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + didSuspend = 32; + break; + case 536870912: + didSuspend = 268435456; + break; + default: + didSuspend = 0; + } + nextProps = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; + 0 !== nextProps && nextProps !== suspenseState.retryLane && (suspenseState.retryLane = nextProps, scheduleUpdateOnFiber(current, nextProps, -1)); + } + renderDidSuspendDelayIfPossible(); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + } + if (shim()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim(), null; + current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); + current.flags |= 4096; + return current; + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes |= renderLanes; + var alternate = fiber.alternate; + null !== alternate && (alternate.lanes |= renderLanes); + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + null === renderState ? workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); + } + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + revealOrder = nextProps.revealOrder, + tailMode = nextProps.tail; + reconcileChildren(current, workInProgress, nextProps.children, renderLanes); + nextProps = suspenseStackCursor.current; + if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { + if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { + if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { + current.child.return = current; + current = current.child; + continue; + } + if (current === workInProgress) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === workInProgress) break a; + current = current.return; + } + current.sibling.return = current.return; + current = current.sibling; + } + nextProps &= 1; + } + push(suspenseStackCursor, nextProps); + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { + case "forwards": + renderLanes = workInProgress.child; + for (revealOrder = null; null !== renderLanes;) { + current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + } + renderLanes = revealOrder; + null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); + initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); + break; + case "backwards": + renderLanes = null; + revealOrder = workInProgress.child; + for (workInProgress.child = null; null !== revealOrder;) { + current = revealOrder.alternate; + if (null !== current && null === findFirstSuspended(current)) { + workInProgress.child = revealOrder; + break; + } + current = revealOrder.sibling; + revealOrder.sibling = renderLanes; + renderLanes = revealOrder; + revealOrder = current; + } + initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); + break; + case "together": + initSuspenseListRenderState(workInProgress, !1, null, null, void 0); + break; + default: + workInProgress.memoizedState = null; + } + return workInProgress.child; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + null !== current && (workInProgress.dependencies = current.dependencies); + workInProgressRootSkippedLanes |= workInProgress.lanes; + if (0 === (renderLanes & workInProgress.childLanes)) return null; + if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); + if (null !== workInProgress.child) { + current = workInProgress.child; + renderLanes = createWorkInProgress(current, current.pendingProps); + workInProgress.child = renderLanes; + for (renderLanes.return = workInProgress; null !== current.sibling;) { + current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; + } + renderLanes.sibling = null; + } + return workInProgress.child; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + case 5: + pushHostContext(workInProgress); + break; + case 1: + isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); + break; + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case 10: + var context = workInProgress.type._context, + nextValue = workInProgress.memoizedProps.value; + push(valueCursor, context._currentValue); + context._currentValue = nextValue; + break; + case 13: + context = workInProgress.memoizedState; + if (null !== context) { + if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; + if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); + push(suspenseStackCursor, suspenseStackCursor.current & 1); + current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + return null !== current ? current.sibling : null; + } + push(suspenseStackCursor, suspenseStackCursor.current & 1); + break; + case 19: + context = 0 !== (renderLanes & workInProgress.childLanes); + if (0 !== (current.flags & 128)) { + if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); + workInProgress.flags |= 128; + } + nextValue = workInProgress.memoizedState; + null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); + push(suspenseStackCursor, suspenseStackCursor.current); + if (context) break;else return null; + case 22: + case 23: + return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + var appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; + appendAllChildren = function appendAllChildren(parent, workInProgress) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);else if (4 !== node.tag && null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function updateHostContainer() {}; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { + current.memoizedProps !== newProps && (requiredContext(contextStackCursor$1.current), workInProgress.updateQueue = UPDATE_SIGNAL) && (workInProgress.flags |= 4); + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText && (workInProgress.flags |= 4); + }; + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + hasRenderedATailFallback = renderState.tail; + for (var lastTailNode = null; null !== hasRenderedATailFallback;) { + null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + } + null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; + break; + case "collapsed": + lastTailNode = renderState.tail; + for (var lastTailNode$60 = null; null !== lastTailNode;) { + null !== lastTailNode.alternate && (lastTailNode$60 = lastTailNode), lastTailNode = lastTailNode.sibling; + } + null === lastTailNode$60 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$60.sibling = null; + } + } + function bubbleProperties(completedWork) { + var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, + newChildLanes = 0, + subtreeFlags = 0; + if (didBailout) for (var child$61 = completedWork.child; null !== child$61;) { + newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags & 14680064, subtreeFlags |= child$61.flags & 14680064, child$61.return = completedWork, child$61 = child$61.sibling; + } else for (child$61 = completedWork.child; null !== child$61;) { + newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags, subtreeFlags |= child$61.flags, child$61.return = completedWork, child$61 = child$61.sibling; + } + completedWork.subtreeFlags |= subtreeFlags; + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return bubbleProperties(workInProgress), null; + case 1: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 3: + return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 5: + popHostContext(workInProgress); + renderLanes = requiredContext(rootInstanceStackCursor.current); + var type = workInProgress.type; + if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { + if (!newProps) { + if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + bubbleProperties(workInProgress); + return null; + } + requiredContext(contextStackCursor$1.current); + current = allocateTag(); + type = getViewConfigForType(type); + var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(current, type.uiViewClassName, renderLanes, updatePayload); + renderLanes = new ReactNativeFiberHostComponent(current, type, workInProgress); + instanceCache.set(current, workInProgress); + instanceProps.set(current, newProps); + appendAllChildren(renderLanes, workInProgress, !1, !1); + workInProgress.stateNode = renderLanes; + finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4); + null !== workInProgress.ref && (workInProgress.flags |= 512); + } + bubbleProperties(workInProgress); + return null; + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + current = requiredContext(rootInstanceStackCursor.current); + if (!requiredContext(contextStackCursor$1.current).isInAParentText) throw Error("Text strings must be rendered within a component."); + renderLanes = allocateTag(); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(renderLanes, "RCTRawText", current, { + text: newProps + }); + instanceCache.set(renderLanes, workInProgress); + workInProgress.stateNode = renderLanes; + } + bubbleProperties(workInProgress); + return null; + case 13: + pop(suspenseStackCursor); + newProps = workInProgress.memoizedState; + if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { + if (null !== newProps && null !== newProps.dehydrated) { + if (null === current) { + throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); + workInProgress.flags |= 4; + bubbleProperties(workInProgress); + type = !1; + } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; + if (!type) return workInProgress.flags & 65536 ? workInProgress : null; + } + if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; + renderLanes = null !== newProps; + renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); + null !== workInProgress.updateQueue && (workInProgress.flags |= 4); + bubbleProperties(workInProgress); + return null; + case 4: + return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 10: + return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; + case 17: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 19: + pop(suspenseStackCursor); + type = workInProgress.memoizedState; + if (null === type) return bubbleProperties(workInProgress), null; + newProps = 0 !== (workInProgress.flags & 128); + updatePayload = type.rendering; + if (null === updatePayload) { + if (newProps) cutOffTailIfNeeded(type, !1);else { + if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { + updatePayload = findFirstSuspended(current); + if (null !== updatePayload) { + workInProgress.flags |= 128; + cutOffTailIfNeeded(type, !1); + current = updatePayload.updateQueue; + null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); + workInProgress.subtreeFlags = 0; + current = renderLanes; + for (renderLanes = workInProgress.child; null !== renderLanes;) { + newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { + lanes: type.lanes, + firstContext: type.firstContext + }), renderLanes = renderLanes.sibling; + } + push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); + return workInProgress.child; + } + current = current.sibling; + } + null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + } + } else { + if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { + if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; + } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); + } + if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; + bubbleProperties(workInProgress); + return null; + case 22: + case 23: + return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), null; + case 24: + return null; + case 25: + return null; + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function unwindWork(current, workInProgress) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 1: + return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 3: + return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 5: + return popHostContext(workInProgress), null; + case 13: + pop(suspenseStackCursor); + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + current = workInProgress.flags; + return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 19: + return pop(suspenseStackCursor), null; + case 4: + return popHostContainer(), null; + case 10: + return popProvider(workInProgress.type._context), null; + case 22: + case 23: + return popRenderLanes(), null; + case 24: + return null; + default: + return null; + } + } + var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, + nextEffect = null; + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } else ref.current = null; + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var shouldFireAfterActiveInstanceBlur = !1; + function commitBeforeMutationEffects(root, firstChild) { + for (nextEffect = firstChild; null !== nextEffect;) { + if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { + root = nextEffect; + try { + var current = root.alternate; + if (0 !== (root.flags & 1024)) switch (root.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = root.stateNode, + snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + case 3: + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + 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."); + } + } catch (error) { + captureCommitPhaseError(root, root.return, error); + } + firstChild = root.sibling; + if (null !== firstChild) { + firstChild.return = root.return; + nextEffect = firstChild; + break; + } + nextEffect = root.return; + } + } + current = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = !1; + return current; + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; + if (null !== updateQueue) { + var effect = updateQueue = updateQueue.next; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = void 0; + void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + } + effect = effect.next; + } while (effect !== updateQueue); + } + } + function commitHookEffectListMount(flags, finishedWork) { + finishedWork = finishedWork.updateQueue; + finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; + if (null !== finishedWork) { + var effect = finishedWork = finishedWork.next; + do { + if ((effect.tag & flags) === flags) { + var create$73 = effect.create; + effect.destroy = create$73(); + } + effect = effect.next; + } while (effect !== finishedWork); + } + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + fiber.stateNode = null; + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + fiber.updateQueue = null; + } + function isHostParent(fiber) { + return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; + } + function getHostSibling(fiber) { + a: for (;;) { + for (; null === fiber.sibling;) { + if (null === fiber.return || isHostParent(fiber.return)) return null; + fiber = fiber.return; + } + fiber.sibling.return = fiber.return; + for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;) { + if (fiber.flags & 2) continue a; + if (null === fiber.child || 4 === fiber.tag) continue a;else fiber.child.return = fiber, fiber = fiber.child; + } + if (!(fiber.flags & 2)) return fiber.stateNode; + } + } + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + if (5 === tag || 6 === tag) { + if (node = node.stateNode, before) { + if ("number" === typeof parent) throw Error("Container does not support insertBefore operation"); + } else _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parent, ["number" === typeof node ? node : node._nativeTag]); + } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node;) { + insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; + } + } + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + if (5 === tag || 6 === tag) { + if (node = node.stateNode, before) { + tag = parent._children; + var index = tag.indexOf(node); + 0 <= index ? (tag.splice(index, 1), before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [before], [], [], [])) : (before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], ["number" === typeof node ? node : node._nativeTag], [before], [])); + } else before = "number" === typeof node ? node : node._nativeTag, tag = parent._children, index = tag.indexOf(node), 0 <= index ? (tag.splice(index, 1), tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [tag.length - 1], [], [], [])) : (tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], [before], [tag.length - 1], [])); + } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node;) { + insertOrAppendPlacementNode(node, before, parent), node = node.sibling; + } + } + var hostParent = null, + hostParentIsContainer = !1; + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + for (parent = parent.child; null !== parent;) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; + } + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { + injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); + } catch (err) {} + switch (deletedFiber.tag) { + case 5: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + case 6: + var prevHostParent = hostParent, + prevHostParentIsContainer = hostParentIsContainer; + hostParent = null; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, recursivelyUncacheFiberNode(deletedFiber.stateNode), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot, [], [], [], [], [0])) : (finishedRoot = hostParent, nearestMountedAncestor = deletedFiber.stateNode, recursivelyUncacheFiberNode(nearestMountedAncestor), deletedFiber = finishedRoot._children, nearestMountedAncestor = deletedFiber.indexOf(nearestMountedAncestor), deletedFiber.splice(nearestMountedAncestor, 1), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot._nativeTag, [], [], [], [], [nearestMountedAncestor]))); + break; + case 18: + null !== hostParent && shim(hostParent, deletedFiber.stateNode); + break; + case 4: + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; + hostParent = deletedFiber.stateNode.containerInfo; + hostParentIsContainer = !0; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + break; + case 0: + case 11: + case 14: + case 15: + prevHostParent = deletedFiber.updateQueue; + if (null !== prevHostParent && (prevHostParent = prevHostParent.lastEffect, null !== prevHostParent)) { + prevHostParentIsContainer = prevHostParent = prevHostParent.next; + do { + var _effect = prevHostParentIsContainer, + destroy = _effect.destroy; + _effect = _effect.tag; + void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); + prevHostParentIsContainer = prevHostParentIsContainer.next; + } while (prevHostParentIsContainer !== prevHostParent); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 1: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + prevHostParent = deletedFiber.stateNode; + if ("function" === typeof prevHostParent.componentWillUnmount) try { + prevHostParent.props = deletedFiber.memoizedProps, prevHostParent.state = deletedFiber.memoizedState, prevHostParent.componentWillUnmount(); + } catch (error) { + captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 21: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 22: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + default: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (null !== wakeables) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); + }); + } + } + function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { + var deletions = parentFiber.deletions; + if (null !== deletions) for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + var root = root$jscomp$0, + returnFiber = parentFiber, + parent = returnFiber; + a: for (; null !== parent;) { + switch (parent.tag) { + case 5: + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + case 3: + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = !0; + break a; + case 4: + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = !0; + break a; + } + parent = parent.return; + } + if (null === hostParent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); + hostParent = null; + hostParentIsContainer = !1; + var alternate = childToDelete.alternate; + null !== alternate && (alternate.return = null); + childToDelete.return = null; + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) { + commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; + } + } + function commitMutationEffectsOnFiber(finishedWork, root) { + var current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + try { + commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + try { + commitHookEffectListUnmount(5, finishedWork, finishedWork.return); + } catch (error$83) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$83); + } + } + break; + case 1: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 5: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + if (flags & 4) { + var instance$85 = finishedWork.stateNode; + if (null != instance$85) { + var newProps = finishedWork.memoizedProps, + oldProps = null !== current ? current.memoizedProps : newProps, + updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + if (null !== updatePayload) try { + var viewConfig = instance$85.viewConfig; + instanceProps.set(instance$85._nativeTag, newProps); + var updatePayload$jscomp$0 = diffProperties(null, oldProps, newProps, viewConfig.validAttributes); + null != updatePayload$jscomp$0 && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$85._nativeTag, viewConfig.uiViewClassName, updatePayload$jscomp$0); + } catch (error$86) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$86); + } + } + } + break; + case 6: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + viewConfig = finishedWork.stateNode; + updatePayload$jscomp$0 = finishedWork.memoizedProps; + try { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(viewConfig, "RCTRawText", { + text: updatePayload$jscomp$0 + }); + } catch (error$87) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$87); + } + } + break; + case 3: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 4: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 13: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + viewConfig = finishedWork.child; + viewConfig.flags & 8192 && null !== viewConfig.memoizedState && (null === viewConfig.alternate || null === viewConfig.alternate.memoizedState) && (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 22: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 8192) a: for (viewConfig = null !== finishedWork.memoizedState, updatePayload$jscomp$0 = null, current = finishedWork;;) { + if (5 === current.tag) { + if (null === updatePayload$jscomp$0) { + updatePayload$jscomp$0 = current; + try { + if (instance$85 = current.stateNode, viewConfig) newProps = instance$85.viewConfig, oldProps = diffProperties(null, emptyObject, { + style: { + display: "none" + } + }, newProps.validAttributes), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$85._nativeTag, newProps.uiViewClassName, oldProps);else { + updatePayload = current.stateNode; + var props = current.memoizedProps, + viewConfig$jscomp$0 = updatePayload.viewConfig, + prevProps = assign({}, props, { + style: [props.style, { + display: "none" + }] + }); + var updatePayload$jscomp$1 = diffProperties(null, prevProps, props, viewConfig$jscomp$0.validAttributes); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(updatePayload._nativeTag, viewConfig$jscomp$0.uiViewClassName, updatePayload$jscomp$1); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } else if (6 === current.tag) { + if (null === updatePayload$jscomp$0) try { + throw Error("Not yet implemented."); + } catch (error$78) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$78); + } + } else if ((22 !== current.tag && 23 !== current.tag || null === current.memoizedState || current === finishedWork) && null !== current.child) { + current.child.return = current; + current = current.child; + continue; + } + if (current === finishedWork) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === finishedWork) break a; + updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); + current = current.return; + } + updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); + current.sibling.return = current.return; + current = current.sibling; + } + break; + case 19: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 21: + break; + default: + recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + if (flags & 2) { + try { + a: { + for (var parent = finishedWork.return; null !== parent;) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; + } + parent = parent.return; + } + throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + } + switch (JSCompiler_inline_result.tag) { + case 5: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && (JSCompiler_inline_result.flags &= -33); + var before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 3: + case 4: + var parent$79 = JSCompiler_inline_result.stateNode.containerInfo, + before$80 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer(finishedWork, before$80, parent$79); + break; + default: + throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + finishedWork.flags &= -3; + } + flags & 4096 && (finishedWork.flags &= -4097); + } + function commitLayoutEffects(finishedWork) { + for (nextEffect = finishedWork; null !== nextEffect;) { + var fiber = nextEffect, + firstChild = fiber.child; + if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { + firstChild = nextEffect; + if (0 !== (firstChild.flags & 8772)) { + var current = firstChild.alternate; + try { + if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(5, firstChild); + break; + case 1: + var instance = firstChild.stateNode; + if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { + var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); + instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = firstChild.updateQueue; + null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); + break; + case 3: + var updateQueue$74 = firstChild.updateQueue; + if (null !== updateQueue$74) { + current = null; + if (null !== firstChild.child) switch (firstChild.child.tag) { + case 5: + current = firstChild.child.stateNode; + break; + case 1: + current = firstChild.child.stateNode; + } + commitUpdateQueue(firstChild, updateQueue$74, current); + } + break; + case 5: + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + 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 (firstChild.flags & 512) { + current = void 0; + var ref = firstChild.ref; + if (null !== ref) { + var instance$jscomp$0 = firstChild.stateNode; + switch (firstChild.tag) { + case 5: + current = instance$jscomp$0; + break; + default: + current = instance$jscomp$0; + } + "function" === typeof ref ? ref(current) : ref.current = current; + } + } + } catch (error) { + captureCommitPhaseError(firstChild, firstChild.return, error); + } + } + if (firstChild === fiber) { + nextEffect = null; + break; + } + current = firstChild.sibling; + if (null !== current) { + current.return = firstChild.return; + nextEffect = current; + break; + } + nextEffect = firstChild.return; + } + } + } + var ceil = Math.ceil, + ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + executionContext = 0, + workInProgressRoot = null, + workInProgress = null, + workInProgressRootRenderLanes = 0, + subtreeRenderLanes = 0, + subtreeRenderLanesCursor = createCursor(0), + workInProgressRootExitStatus = 0, + workInProgressRootFatalError = null, + workInProgressRootSkippedLanes = 0, + workInProgressRootInterleavedUpdatedLanes = 0, + workInProgressRootPingedLanes = 0, + workInProgressRootConcurrentErrors = null, + workInProgressRootRecoverableErrors = null, + globalMostRecentFallbackTime = 0, + workInProgressRootRenderTargetTime = Infinity, + workInProgressTransitions = null, + hasUncaughtError = !1, + firstUncaughtError = null, + legacyErrorBoundariesThatAlreadyFailed = null, + rootDoesHavePassiveEffects = !1, + rootWithPendingPassiveEffects = null, + pendingPassiveEffectsLanes = 0, + nestedUpdateCount = 0, + rootWithNestedUpdates = null, + currentEventTime = -1, + currentEventTransitionLane = 0; + function requestEventTime() { + return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); + } + function requestUpdateLane(fiber) { + if (0 === (fiber.mode & 1)) return 1; + if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; + if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; + fiber = currentUpdatePriority; + return 0 !== fiber ? fiber : 16; + } + function scheduleUpdateOnFiber(fiber, lane, eventTime) { + if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + var root = markUpdateLaneFromFiberToRoot(fiber, lane); + if (null === root) return null; + markRootUpdated(root, lane, eventTime); + if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + return root; + } + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes |= lane; + var alternate = sourceFiber.alternate; + null !== alternate && (alternate.lanes |= lane); + alternate = sourceFiber; + for (sourceFiber = sourceFiber.return; null !== sourceFiber;) { + sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; + } + return 3 === alternate.tag ? alternate.stateNode : null; + } + function isInterleavedUpdate(fiber) { + return (null !== workInProgressRoot || null !== interleavedQueues) && 0 !== (fiber.mode & 1) && 0 === (executionContext & 2); + } + function ensureRootIsScheduled(root, currentTime) { + for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6, + expirationTime = expirationTimes[index$6]; + if (-1 === expirationTime) { + if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + } else expirationTime <= currentTime && (root.expiredLanes |= lane); + lanes &= ~lane; + } + suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { + null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); + if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { + switch (lanesToEventPriority(suspendedLanes)) { + case 1: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; + break; + case 4: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; + break; + case 16: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + break; + case 536870912: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; + break; + default: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + } + existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = currentTime; + root.callbackNode = existingCallbackNode; + } + } + function performConcurrentWorkOnRoot(root, didTimeout) { + currentEventTime = -1; + currentEventTransitionLane = 0; + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + var originalCallbackNode = root.callbackNode; + if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === lanes) return null; + if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { + didTimeout = lanes; + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (1); + resetContextDependencies(); + ReactCurrentDispatcher$2.current = prevDispatcher; + executionContext = prevExecutionContext; + null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); + } + if (0 !== didTimeout) { + 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); + if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + if (6 === didTimeout) markRootSuspended$1(root, lanes);else { + prevExecutionContext = root.current.alternate; + if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + root.finishedWork = prevExecutionContext; + root.finishedLanes = lanes; + switch (didTimeout) { + case 0: + case 1: + throw Error("Root did not complete. This is a bug in React."); + case 2: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 3: + markRootSuspended$1(root, lanes); + if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { + if (0 !== getNextLanes(root, 0)) break; + prevExecutionContext = root.suspendedLanes; + if ((prevExecutionContext & lanes) !== lanes) { + requestEventTime(); + root.pingedLanes |= root.suspendedLanes & prevExecutionContext; + break; + } + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 4: + markRootSuspended$1(root, lanes); + if ((lanes & 4194240) === lanes) break; + didTimeout = root.eventTimes; + for (prevExecutionContext = -1; 0 < lanes;) { + var index$5 = 31 - clz32(lanes); + prevDispatcher = 1 << index$5; + index$5 = didTimeout[index$5]; + index$5 > prevExecutionContext && (prevExecutionContext = index$5); + lanes &= ~prevDispatcher; + } + lanes = prevExecutionContext; + lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; + lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; + if (10 < lanes) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 5: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + default: + throw Error("Unknown root exit status."); + } + } + } + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); + root = renderRootSync(root, errorRetryLanes); + 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); + return root; + } + function queueRecoverableErrors(errors) { + null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + function isRenderConsistentWithExternalStores(finishedWork) { + for (var node = finishedWork;;) { + if (node.flags & 16384) { + var updateQueue = node.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { + var check = updateQueue[i], + getSnapshot = check.getSnapshot; + check = check.value; + try { + if (!objectIs(getSnapshot(), check)) return !1; + } catch (error) { + return !1; + } + } + } + updateQueue = node.child; + if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { + if (node === finishedWork) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === finishedWork) return !0; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return !0; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes &= ~workInProgressRootPingedLanes; + suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + for (root = root.expirationTimes; 0 < suspendedLanes;) { + var index$7 = 31 - clz32(suspendedLanes), + lane = 1 << index$7; + root[index$7] = -1; + suspendedLanes &= ~lane; + } + } + function performSyncWorkOnRoot(root) { + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + flushPassiveEffects(); + var lanes = getNextLanes(root, 0); + if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; + var exitStatus = renderRootSync(root, lanes); + if (0 !== root.tag && 2 === exitStatus) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); + } + if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; + if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); + root.finishedWork = root.current.alternate; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return null; + } + function popRenderLanes() { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = 0; + var timeoutHandle = root.timeoutHandle; + -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); + if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { + var interruptedWork = timeoutHandle; + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case 1: + interruptedWork = interruptedWork.type.childContextTypes; + null !== interruptedWork && void 0 !== interruptedWork && popContext(); + break; + case 3: + popHostContainer(); + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + resetWorkInProgressVersions(); + break; + case 5: + popHostContext(interruptedWork); + break; + case 4: + popHostContainer(); + break; + case 13: + pop(suspenseStackCursor); + break; + case 19: + pop(suspenseStackCursor); + break; + case 10: + popProvider(interruptedWork.type._context); + break; + case 22: + case 23: + popRenderLanes(); + } + timeoutHandle = timeoutHandle.return; + } + workInProgressRoot = root; + workInProgress = root = createWorkInProgress(root.current, null); + workInProgressRootRenderLanes = subtreeRenderLanes = lanes; + workInProgressRootExitStatus = 0; + workInProgressRootFatalError = null; + workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; + workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; + if (null !== interleavedQueues) { + for (lanes = 0; lanes < interleavedQueues.length; lanes++) { + if (timeoutHandle = interleavedQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { + timeoutHandle.interleaved = null; + var firstInterleavedUpdate = interruptedWork.next, + lastPendingUpdate = timeoutHandle.pending; + if (null !== lastPendingUpdate) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + interruptedWork.next = firstPendingUpdate; + } + timeoutHandle.pending = interruptedWork; + } + } + interleavedQueues = null; + } + return root; + } + function handleError(root$jscomp$0, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { + var queue = hook.queue; + null !== queue && (queue.pending = null); + hook = hook.next; + } + didScheduleRenderPhaseUpdate = !1; + } + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdateDuringThisPass = !1; + ReactCurrentOwner$2.current = null; + if (null === erroredWork || null === erroredWork.return) { + workInProgressRootExitStatus = 1; + workInProgressRootFatalError = thrownValue; + workInProgress = null; + break; + } + a: { + var root = root$jscomp$0, + returnFiber = erroredWork.return, + sourceFiber = erroredWork, + value = thrownValue; + thrownValue = workInProgressRootRenderLanes; + sourceFiber.flags |= 32768; + if (null !== value && "object" === typeof value && "function" === typeof value.then) { + var wakeable = value, + sourceFiber$jscomp$0 = sourceFiber, + tag = sourceFiber$jscomp$0.tag; + if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { + var currentSource = sourceFiber$jscomp$0.alternate; + currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); + } + b: { + sourceFiber$jscomp$0 = returnFiber; + do { + var JSCompiler_temp; + if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { + var nextState = sourceFiber$jscomp$0.memoizedState; + JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; + } + if (JSCompiler_temp) { + var suspenseBoundary = sourceFiber$jscomp$0; + break b; + } + sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; + } while (null !== sourceFiber$jscomp$0); + suspenseBoundary = null; + } + if (null !== suspenseBoundary) { + suspenseBoundary.flags &= -257; + value = suspenseBoundary; + sourceFiber$jscomp$0 = thrownValue; + if (0 === (value.mode & 1)) { + if (value === returnFiber) value.flags |= 65536;else { + value.flags |= 128; + sourceFiber.flags |= 131072; + sourceFiber.flags &= -52805; + if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { + var update = createUpdate(-1, 1); + update.tag = 2; + enqueueUpdate(sourceFiber, update); + } + sourceFiber.lanes |= 1; + } + } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; + suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); + thrownValue = suspenseBoundary; + root = wakeable; + var wakeables = thrownValue.updateQueue; + if (null === wakeables) { + var updateQueue = new Set(); + updateQueue.add(root); + thrownValue.updateQueue = updateQueue; + } else wakeables.add(root); + break a; + } else { + if (0 === (thrownValue & 1)) { + attachPingListener(root, wakeable, thrownValue); + renderDidSuspendDelayIfPossible(); + break a; + } + value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + } + } + root = value; + 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); + null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); + value = createCapturedValue(value, sourceFiber); + root = returnFiber; + do { + switch (root.tag) { + case 3: + wakeable = value; + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$jscomp$0); + break a; + case 1: + wakeable = value; + var ctor = root.type, + instance = root.stateNode; + if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$34 = createClassErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$34); + break a; + } + } + root = root.return; + } while (null !== root); + } + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); + continue; + } + break; + } while (1); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; + } + function renderDidSuspendDelayIfPossible() { + if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; + null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (1); + resetContextDependencies(); + executionContext = prevExecutionContext; + ReactCurrentDispatcher$2.current = prevDispatcher; + if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + return workInProgressRootExitStatus; + } + function workLoopSync() { + for (; null !== workInProgress;) { + performUnitOfWork(workInProgress); + } + } + function workLoopConcurrent() { + for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) { + performUnitOfWork(workInProgress); + } + } + function performUnitOfWork(unitOfWork) { + var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + unitOfWork = completedWork.return; + if (0 === (completedWork.flags & 32768)) { + if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { + workInProgress = current; + return; + } + } else { + current = unwindWork(current, completedWork); + if (null !== current) { + current.flags &= 32767; + workInProgress = current; + return; + } + if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { + workInProgressRootExitStatus = 6; + workInProgress = null; + return; + } + } + completedWork = completedWork.sibling; + if (null !== completedWork) { + workInProgress = completedWork; + return; + } + workInProgress = completedWork = unitOfWork; + } while (null !== completedWork); + 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = currentUpdatePriority, + prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + flushPassiveEffects(); + } while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + transitions = root.finishedWork; + var lanes = root.finishedLanes; + if (null === transitions) return null; + root.finishedWork = null; + root.finishedLanes = 0; + if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + root.callbackNode = null; + root.callbackPriority = 0; + var remainingLanes = transitions.lanes | transitions.childLanes; + markRootFinished(root, remainingLanes); + root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); + 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { + flushPassiveEffects(); + return null; + })); + remainingLanes = 0 !== (transitions.flags & 15990); + if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { + remainingLanes = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 1; + var prevExecutionContext = executionContext; + executionContext |= 4; + ReactCurrentOwner$2.current = null; + commitBeforeMutationEffects(root, transitions); + commitMutationEffectsOnFiber(transitions, root); + root.current = transitions; + commitLayoutEffects(transitions, root, lanes); + _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); + executionContext = prevExecutionContext; + currentUpdatePriority = previousPriority; + ReactCurrentBatchConfig$2.transition = remainingLanes; + } else root.current = transitions; + rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); + remainingLanes = root.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + onCommitRoot(transitions.stateNode, renderPriorityLevel); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) { + renderPriorityLevel(recoverableErrors[transitions]); + } + if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; + 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); + remainingLanes = root.pendingLanes; + 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (null !== rootWithPendingPassiveEffects) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), + prevTransition = ReactCurrentBatchConfig$2.transition, + previousPriority = currentUpdatePriority; + try { + ReactCurrentBatchConfig$2.transition = null; + currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; + if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { + renderPriority = rootWithPendingPassiveEffects; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsLanes = 0; + if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); + var prevExecutionContext = executionContext; + executionContext |= 4; + for (nextEffect = renderPriority.current; null !== nextEffect;) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (nextEffect.flags & 16)) { + var deletions = fiber.deletions; + if (null !== deletions) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + for (nextEffect = fiberToDelete; null !== nextEffect;) { + var fiber$jscomp$0 = nextEffect; + switch (fiber$jscomp$0.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); + } + var child$jscomp$0 = fiber$jscomp$0.child; + if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { + fiber$jscomp$0 = nextEffect; + var sibling = fiber$jscomp$0.sibling, + returnFiber = fiber$jscomp$0.return; + detachFiberAfterEffects(fiber$jscomp$0); + if (fiber$jscomp$0 === fiberToDelete) { + nextEffect = null; + break; + } + if (null !== sibling) { + sibling.return = returnFiber; + nextEffect = sibling; + break; + } + nextEffect = returnFiber; + } + } + } + var previousFiber = fiber.alternate; + if (null !== previousFiber) { + var detachedChild = previousFiber.child; + if (null !== detachedChild) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (null !== detachedChild); + } + } + nextEffect = fiber; + } + } + if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { + fiber = nextEffect; + if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(9, fiber, fiber.return); + } + var sibling$jscomp$0 = fiber.sibling; + if (null !== sibling$jscomp$0) { + sibling$jscomp$0.return = fiber.return; + nextEffect = sibling$jscomp$0; + break b; + } + nextEffect = fiber.return; + } + } + var finishedWork = renderPriority.current; + for (nextEffect = finishedWork; null !== nextEffect;) { + child = nextEffect; + var firstChild = child.child; + if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { + deletions = nextEffect; + if (0 !== (deletions.flags & 2048)) try { + switch (deletions.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(9, deletions); + } + } catch (error) { + captureCommitPhaseError(deletions, deletions.return, error); + } + if (deletions === child) { + nextEffect = null; + break b; + } + var sibling$jscomp$1 = deletions.sibling; + if (null !== sibling$jscomp$1) { + sibling$jscomp$1.return = deletions.return; + nextEffect = sibling$jscomp$1; + break b; + } + nextEffect = deletions.return; + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { + injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); + } catch (err) {} + JSCompiler_inline_result = !0; + } + return JSCompiler_inline_result; + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + return !1; + } + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + sourceFiber = createCapturedValue(error, sourceFiber); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); + enqueueUpdate(rootFiber, sourceFiber); + sourceFiber = requestEventTime(); + rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1); + null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { + if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { + if (3 === nearestMountedAncestor.tag) { + captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); + break; + } else if (1 === nearestMountedAncestor.tag) { + var instance = nearestMountedAncestor.stateNode; + if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + sourceFiber = createCapturedValue(error, sourceFiber); + sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); + enqueueUpdate(nearestMountedAncestor, sourceFiber); + sourceFiber = requestEventTime(); + nearestMountedAncestor = markUpdateLaneFromFiberToRoot(nearestMountedAncestor, 1); + null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); + break; + } + } + nearestMountedAncestor = nearestMountedAncestor.return; + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + null !== pingCache && pingCache.delete(wakeable); + wakeable = requestEventTime(); + root.pingedLanes |= root.suspendedLanes & pingedLanes; + workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); + ensureRootIsScheduled(root, wakeable); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + var eventTime = requestEventTime(); + boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState, + retryLane = 0; + null !== suspenseState && (retryLane = suspenseState.retryLane); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = 0; + switch (boundaryFiber.tag) { + case 13: + var retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + null !== suspenseState && (retryLane = suspenseState.retryLane); + break; + case 19: + retryCache = boundaryFiber.stateNode; + break; + default: + throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + null !== retryCache && retryCache.delete(wakeable); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + var beginWork$1; + beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { + if (null !== current) { + if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { + if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; + } + } else didReceiveUpdate = !1; + workInProgress.lanes = 0; + switch (workInProgress.tag) { + case 2: + var Component = workInProgress.type; + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + var context = getMaskedContext(workInProgress, contextStackCursor.current); + prepareToReadContext(workInProgress, renderLanes); + context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); + workInProgress.flags |= 1; + if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { + workInProgress.tag = 1; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; + initializeUpdateQueue(workInProgress); + context.updater = classComponentUpdater; + workInProgress.stateNode = context; + context._reactInternals = workInProgress; + mountClassInstance(workInProgress, Component, current, renderLanes); + workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); + } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; + return workInProgress; + case 16: + Component = workInProgress.elementType; + a: { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + context = Component._init; + Component = context(Component._payload); + workInProgress.type = Component; + context = workInProgress.tag = resolveLazyComponentTag(Component); + current = resolveDefaultProps(Component, current); + switch (context) { + case 0: + workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 1: + workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 11: + workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); + break a; + case 14: + workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); + break a; + } + throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); + } + return workInProgress; + case 0: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); + case 1: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); + case 3: + pushHostRootContext(workInProgress); + if (null === current) throw Error("Should have a current fiber. This is a bug in React."); + context = workInProgress.pendingProps; + Component = workInProgress.memoizedState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, context, null, renderLanes); + context = workInProgress.memoizedState.element; + context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); + return workInProgress; + case 5: + return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 6: + return null; + case 13: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 11: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); + case 7: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; + case 8: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 12: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 10: + a: { + Component = workInProgress.type._context; + context = workInProgress.pendingProps; + hasContext = workInProgress.memoizedProps; + var newValue = context.value; + push(valueCursor, Component._currentValue); + Component._currentValue = newValue; + if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { + if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { + workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + break a; + } + } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { + var list = hasContext.dependencies; + if (null !== list) { + newValue = hasContext.child; + for (var dependency = list.firstContext; null !== dependency;) { + if (dependency.context === Component) { + if (1 === hasContext.tag) { + dependency = createUpdate(-1, renderLanes & -renderLanes); + dependency.tag = 2; + var updateQueue = hasContext.updateQueue; + if (null !== updateQueue) { + updateQueue = updateQueue.shared; + var pending = updateQueue.pending; + null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); + updateQueue.pending = dependency; + } + } + hasContext.lanes |= renderLanes; + dependency = hasContext.alternate; + null !== dependency && (dependency.lanes |= renderLanes); + scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); + list.lanes |= renderLanes; + break; + } + dependency = dependency.next; + } + } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { + newValue = hasContext.return; + if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); + newValue.lanes |= renderLanes; + list = newValue.alternate; + null !== list && (list.lanes |= renderLanes); + scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); + newValue = hasContext.sibling; + } else newValue = hasContext.child; + if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { + if (newValue === workInProgress) { + newValue = null; + break; + } + hasContext = newValue.sibling; + if (null !== hasContext) { + hasContext.return = newValue.return; + newValue = hasContext; + break; + } + newValue = newValue.return; + } + hasContext = newValue; + } + reconcileChildren(current, workInProgress, context.children, renderLanes); + workInProgress = workInProgress.child; + } + return workInProgress; + case 9: + return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 14: + return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); + case 15: + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + case 17: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); + case 19: + return updateSuspenseListComponent(current, workInProgress, renderLanes); + case 22: + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + }; + function scheduleCallback$1(priorityLevel, callback) { + return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + } + function shouldConstruct(Component) { + Component = Component.prototype; + return !(!Component || !Component.isReactComponent); + } + function resolveLazyComponentTag(Component) { + if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; + if (void 0 !== Component && null !== Component) { + Component = Component.$$typeof; + if (Component === REACT_FORWARD_REF_TYPE) return 11; + if (Component === REACT_MEMO_TYPE) return 14; + } + return 2; + } + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); + workInProgress.flags = current.flags & 14680064; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + pendingProps = current.dependencies; + workInProgress.dependencies = null === pendingProps ? null : { + lanes: pendingProps.lanes, + firstContext: pendingProps.firstContext + }; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { + var fiberTag = 2; + owner = type; + if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = 8; + mode |= 8; + break; + case REACT_PROFILER_TYPE: + return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_TYPE: + return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_LIST_TYPE: + return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + default: + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = 10; + break a; + case REACT_CONTEXT_TYPE: + fiberTag = 9; + break a; + case REACT_FORWARD_REF_TYPE: + fiberTag = 11; + break a; + case REACT_MEMO_TYPE: + fiberTag = 14; + break a; + case REACT_LAZY_TYPE: + fiberTag = 16; + owner = null; + break a; + } + throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); + } + key = createFiber(fiberTag, pendingProps, key, mode); + key.elementType = type; + key.type = owner; + key.lanes = lanes; + return key; + } + function createFiberFromFragment(elements, mode, lanes, key) { + elements = createFiber(7, elements, key, mode); + elements.lanes = lanes; + return elements; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + pendingProps = createFiber(22, pendingProps, key, mode); + pendingProps.elementType = REACT_OFFSCREEN_TYPE; + pendingProps.lanes = lanes; + pendingProps.stateNode = {}; + return pendingProps; + } + function createFiberFromText(content, mode, lanes) { + content = createFiber(6, content, null, mode); + content.lanes = lanes; + return content; + } + function createFiberFromPortal(portal, mode, lanes) { + mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.lanes = lanes; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = createLaneMap(0); + this.expirationTimes = createLaneMap(-1); + this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; + this.entanglements = createLaneMap(0); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + } + function createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + function findHostInstance(component) { + var fiber = component._reactInternals; + if (void 0 === fiber) { + if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); + component = Object.keys(component).join(","); + throw Error("Argument appears to not be a ReactComponent. Keys: " + component); + } + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + eventTime = requestEventTime(), + lane = requestUpdateLane(current); + a: if (parentComponent) { + parentComponent = parentComponent._reactInternals; + b: { + if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + var JSCompiler_inline_result = parentComponent; + do { + switch (JSCompiler_inline_result.tag) { + case 3: + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; + break b; + case 1: + if (isContextProvider(JSCompiler_inline_result.type)) { + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + } + JSCompiler_inline_result = JSCompiler_inline_result.return; + } while (null !== JSCompiler_inline_result); + throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + if (1 === parentComponent.tag) { + var Component = parentComponent.type; + if (isContextProvider(Component)) { + parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); + break a; + } + } + parentComponent = JSCompiler_inline_result; + } else parentComponent = emptyContextObject; + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = createUpdate(eventTime, lane); + container.payload = { + element: element + }; + callback = void 0 === callback ? null : callback; + null !== callback && (container.callback = callback); + enqueueUpdate(current, container); + element = scheduleUpdateOnFiber(current, lane, eventTime); + null !== element && entangleTransitions(element, current, lane); + return lane; + } + function emptyFindFiberByHostInstance() { + return null; + } + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + function onRecoverableError(error) { + console.error(error); + } + function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= 1; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + } + }; + var roots = new Map(), + devToolsConfig$jscomp$inline_967 = { + findFiberByHostInstance: getInstanceFromTag, + bundleType: 0, + version: "18.2.0-next-d300cebde-20220601", + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: function getInspectorDataForViewTag() { + throw Error("getInspectorDataForViewTag() is not available in production"); + }, + getInspectorDataForViewAtPoint: function () { + throw Error("getInspectorDataForViewAtPoint() is not available in production."); + }.bind(null, findNodeHandle) + } + }; + var internals$jscomp$inline_1239 = { + bundleType: devToolsConfig$jscomp$inline_967.bundleType, + version: devToolsConfig$jscomp$inline_967.version, + rendererPackageName: devToolsConfig$jscomp$inline_967.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_967.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: devToolsConfig$jscomp$inline_967.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "18.2.0-next-d300cebde-20220601" + }; + if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!hook$jscomp$inline_1240.isDisabled && hook$jscomp$inline_1240.supportsFiber) try { + rendererID = hook$jscomp$inline_1240.inject(internals$jscomp$inline_1239), injectedHook = hook$jscomp$inline_1240; + } catch (err) {} + } + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { + computeComponentStackForErrorReporting: function computeComponentStackForErrorReporting(reactTag) { + return (reactTag = getInstanceFromTag(reactTag)) ? getStackByFiberInDevAndProd(reactTag) : ""; + } + }; + exports.createPortal = function (children, containerTag) { + return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }; + exports.dispatchCommand = function (handle, command, args) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); + }; + exports.findHostInstance_DEPRECATED = function (componentOrHandle) { + if (null == componentOrHandle) return null; + if (componentOrHandle._nativeTag) return componentOrHandle; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; + }; + exports.findNodeHandle = findNodeHandle; + exports.getInspectorDataForInstance = void 0; + exports.render = function (element, containerTag, callback) { + var root = roots.get(containerTag); + if (!root) { + root = new FiberRootNode(containerTag, 0, !1, "", onRecoverableError); + var JSCompiler_inline_result = createFiber(3, null, null, 0); + root.current = JSCompiler_inline_result; + JSCompiler_inline_result.stateNode = root; + JSCompiler_inline_result.memoizedState = { + element: null, + isDehydrated: !1, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }; + initializeUpdateQueue(JSCompiler_inline_result); + roots.set(containerTag, root); + } + updateContainer(element, root, null, callback); + a: if (element = root.current, element.child) switch (element.child.tag) { + case 5: + element = element.child.stateNode; + break a; + default: + element = element.child.stateNode; + } else element = null; + return element; + }; + exports.sendAccessibilityEvent = function (handle, eventType) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); + }; + exports.unmountComponentAtNode = unmountComponentAtNode; + exports.unmountComponentAtNodeAndRemoveContainer = function (containerTag) { + unmountComponentAtNode(containerTag); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.removeRootView(containerTag); + }; + exports.unstable_batchedUpdates = batchedUpdates; +},242,[39,36,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../View/View")); + var _excluded = ["animating", "color", "hidesWhenStopped", "onLayout", "size", "style"]; + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var PlatformActivityIndicator = _Platform.default.OS === 'android' ? _$$_REQUIRE(_dependencyMap[6], "../ProgressBarAndroid/ProgressBarAndroid") : _$$_REQUIRE(_dependencyMap[7], "./ActivityIndicatorViewNativeComponent").default; + var GRAY = '#999999'; + var ActivityIndicator = function ActivityIndicator(_ref, forwardedRef) { + var _ref$animating = _ref.animating, + animating = _ref$animating === void 0 ? true : _ref$animating, + _ref$color = _ref.color, + color = _ref$color === void 0 ? _Platform.default.OS === 'ios' ? GRAY : null : _ref$color, + _ref$hidesWhenStopped = _ref.hidesWhenStopped, + hidesWhenStopped = _ref$hidesWhenStopped === void 0 ? true : _ref$hidesWhenStopped, + onLayout = _ref.onLayout, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'small' : _ref$size, + style = _ref.style, + restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var sizeStyle; + var sizeProp; + switch (size) { + case 'small': + sizeStyle = styles.sizeSmall; + sizeProp = 'small'; + break; + case 'large': + sizeStyle = styles.sizeLarge; + sizeProp = 'large'; + break; + default: + sizeStyle = { + height: size, + width: size + }; + break; + } + var nativeProps = Object.assign({ + animating: animating, + color: color, + hidesWhenStopped: hidesWhenStopped + }, restProps, { + ref: forwardedRef, + style: sizeStyle, + size: sizeProp + }); + var androidProps = { + styleAttr: 'Normal', + indeterminate: true + }; + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + onLayout: onLayout, + style: _StyleSheet.default.compose(styles.container, style), + children: _Platform.default.OS === 'android' ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps, androidProps)) : (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps)) + }); + }; + + var ActivityIndicatorWithRef = React.forwardRef(ActivityIndicator); + ActivityIndicatorWithRef.displayName = 'ActivityIndicator'; + var styles = _StyleSheet.default.create({ + container: { + alignItems: 'center', + justifyContent: 'center' + }, + sizeSmall: { + width: 20, + height: 20 + }, + sizeLarge: { + width: 36, + height: 36 + } + }); + module.exports = ActivityIndicatorWithRef; +},243,[3,132,36,14,244,245,248,250,73],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var hairlineWidth = _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").roundToNearestPixel(0.4); + if (hairlineWidth === 0) { + hairlineWidth = 1 / _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").get(); + } + var absoluteFill = { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + if (__DEV__) { + Object.freeze(absoluteFill); + } + + module.exports = { + hairlineWidth: hairlineWidth, + absoluteFill: absoluteFill, + + absoluteFillObject: absoluteFill, + compose: function compose(style1, style2) { + if (style1 != null && style2 != null) { + return [style1, style2]; + } else { + return style1 != null ? style1 : style2; + } + }, + flatten: _$$_REQUIRE(_dependencyMap[1], "./flattenStyle"), + setStyleAttributePreprocessor: function setStyleAttributePreprocessor(property, process) { + var _ReactNativeStyleAttr, _ReactNativeStyleAttr2; + var value; + if (_$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === true) { + value = { + process: process + }; + } else if (typeof _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === 'object') { + value = Object.assign({}, _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property], { + process: process + }); + } else { + console.error(property + " is not a valid style attribute"); + return; + } + if (__DEV__ && typeof value.process === 'function' && typeof ((_ReactNativeStyleAttr = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr.process) === 'function' && value.process !== ((_ReactNativeStyleAttr2 = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr2.process)) { + console.warn("Overwriting " + property + " style attribute preprocessor"); + } + _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] = value; + }, + create: function create(obj) { + if (__DEV__) { + for (var _key in obj) { + if (obj[_key]) { + Object.freeze(obj[_key]); + } + } + } + return obj; + } + }; +},244,[228,189,185],"node_modules/react-native/Libraries/StyleSheet/StyleSheet.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _ViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./ViewNativeComponent")); + var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Text/TextAncestor")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/View/View.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var View = React.forwardRef(function (props, forwardedRef) { + return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { + value: false, + children: (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_ViewNativeComponent.default, Object.assign({}, props, { + ref: forwardedRef + })) + }); + }); + View.displayName = 'View'; + module.exports = View; +},245,[3,246,247,36,73],"node_modules/react-native/Libraries/Components/View/View.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeCommands")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTView', + validAttributes: { + removeClippedSubviews: true, + accessible: true, + hasTVPreferredFocus: true, + nextFocusDown: true, + nextFocusForward: true, + nextFocusLeft: true, + nextFocusRight: true, + nextFocusUp: true, + borderRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderBottomRightRadius: true, + borderBottomLeftRadius: true, + borderTopStartRadius: true, + borderTopEndRadius: true, + borderBottomStartRadius: true, + borderBottomEndRadius: true, + borderStyle: true, + hitSlop: true, + pointerEvents: true, + nativeBackgroundAndroid: true, + nativeForegroundAndroid: true, + needsOffscreenAlphaCompositing: true, + borderWidth: true, + borderLeftWidth: true, + borderRightWidth: true, + borderTopWidth: true, + borderBottomWidth: true, + borderStartWidth: true, + borderEndWidth: true, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderStartColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + borderEndColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") + }, + focusable: true, + overflow: true, + backfaceVisibility: true + } + } : { + uiViewClassName: 'RCTView' + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ViewNativeComponent = NativeComponentRegistry.get('RCTView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['hotspotUpdate', 'setPressed'] + }); + exports.Commands = Commands; + var _default = ViewNativeComponent; + exports.default = _default; +},246,[211,3,202,14,36,159],"node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + + var TextAncestorContext = React.createContext(false); + if (__DEV__) { + TextAncestorContext.displayName = 'TextAncestorContext'; + } + module.exports = TextAncestorContext; +},247,[36],"node_modules/react-native/Libraries/Text/TextAncestor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "../UnimplementedViews/UnimplementedView"); +},248,[249],"node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../StyleSheet/StyleSheet")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var UnimplementedView = function (_React$Component) { + (0, _inherits2.default)(UnimplementedView, _React$Component); + var _super = _createSuper(UnimplementedView); + function UnimplementedView() { + (0, _classCallCheck2.default)(this, UnimplementedView); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(UnimplementedView, [{ + key: "render", + value: function render() { + var View = _$$_REQUIRE(_dependencyMap[8], "../View/View"); + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(View, { + style: [styles.unimplementedView, this.props.style], + children: this.props.children + }); + } + }]); + return UnimplementedView; + }(React.Component); + var styles = _StyleSheet.default.create({ + unimplementedView: __DEV__ ? { + alignSelf: 'flex-start', + borderColor: 'red', + borderWidth: 1 + } : {} + }); + module.exports = UnimplementedView; +},249,[3,12,13,50,47,46,36,244,245,73],"node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('ActivityIndicatorView', { + paperComponentName: 'RCTActivityIndicatorView' + }); + exports.default = _default; +},250,[3,251],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _requireNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Libraries/ReactNative/requireNativeComponent")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + + function codegenNativeComponent(componentName, options) { + if (global.RN$Bridgeless === true) { + var errorMessage = "Native Component '" + componentName + "' that calls codegenNativeComponent was not code generated at build time. Please check its definition."; + console.error(errorMessage); + } + var componentNameInUse = options && options.paperComponentName != null ? options.paperComponentName : componentName; + if (options != null && options.paperComponentNameDeprecated != null) { + if (_UIManager.default.hasViewManagerConfig(componentName)) { + componentNameInUse = componentName; + } else if (options.paperComponentNameDeprecated != null && _UIManager.default.hasViewManagerConfig(options.paperComponentNameDeprecated)) { + componentNameInUse = options.paperComponentNameDeprecated; + } else { + var _options$paperCompone; + throw new Error("Failed to find native component for either " + componentName + " or " + ((_options$paperCompone = options.paperComponentNameDeprecated) != null ? _options$paperCompone : '(unknown)')); + } + } + return (0, _requireNativeComponent.default)(componentNameInUse); + } + var _default = codegenNativeComponent; + exports.default = _default; +},251,[3,252,213],"node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var requireNativeComponent = function requireNativeComponent(uiViewClassName) { + return _$$_REQUIRE(_dependencyMap[0], "../Renderer/shims/createReactNativeComponentClass")(uiViewClassName, function () { + return _$$_REQUIRE(_dependencyMap[1], "./getNativeComponentAttributes")(uiViewClassName); + }); + }; + module.exports = requireNativeComponent; +},252,[253,219],"node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var register = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.register; + + var createReactNativeComponentClass = function createReactNativeComponentClass(name, callback) { + return register(name, callback); + }; + module.exports = createReactNativeComponentClass; +},253,[197],"node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../Text/Text")); + var _TouchableNativeFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./Touchable/TouchableNativeFeedback")); + var _TouchableOpacity = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./Touchable/TouchableOpacity")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./View/View")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "invariant")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Button.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var Button = function (_React$Component) { + (0, _inherits2.default)(Button, _React$Component); + var _super = _createSuper(Button); + function Button() { + (0, _classCallCheck2.default)(this, Button); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(Button, [{ + key: "render", + value: function render() { + var _this$props$accessibi, _this$props$accessibi2; + var _this$props = this.props, + accessibilityLabel = _this$props.accessibilityLabel, + color = _this$props.color, + onPress = _this$props.onPress, + touchSoundDisabled = _this$props.touchSoundDisabled, + title = _this$props.title, + hasTVPreferredFocus = _this$props.hasTVPreferredFocus, + nextFocusDown = _this$props.nextFocusDown, + nextFocusForward = _this$props.nextFocusForward, + nextFocusLeft = _this$props.nextFocusLeft, + nextFocusRight = _this$props.nextFocusRight, + nextFocusUp = _this$props.nextFocusUp, + testID = _this$props.testID, + accessible = _this$props.accessible, + accessibilityActions = _this$props.accessibilityActions, + accessibilityHint = _this$props.accessibilityHint, + accessibilityLanguage = _this$props.accessibilityLanguage, + onAccessibilityAction = _this$props.onAccessibilityAction; + var buttonStyles = [styles.button]; + var textStyles = [styles.text]; + if (color) { + if (_Platform.default.OS === 'ios') { + textStyles.push({ + color: color + }); + } else { + buttonStyles.push({ + backgroundColor: color + }); + } + } + var disabled = this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled; + var accessibilityState = disabled !== ((_this$props$accessibi2 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi2.disabled) ? Object.assign({}, this.props.accessibilityState, { + disabled: disabled + }) : this.props.accessibilityState; + if (disabled) { + buttonStyles.push(styles.buttonDisabled); + textStyles.push(styles.textDisabled); + } + (0, _invariant.default)(typeof title === 'string', 'The title prop of a Button must be a string'); + var formattedTitle = _Platform.default.OS === 'android' ? title.toUpperCase() : title; + var Touchable = _Platform.default.OS === 'android' ? _TouchableNativeFeedback.default : _TouchableOpacity.default; + return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(Touchable, { + accessible: accessible, + accessibilityActions: accessibilityActions, + onAccessibilityAction: onAccessibilityAction, + accessibilityLabel: accessibilityLabel, + accessibilityHint: accessibilityHint, + accessibilityLanguage: accessibilityLanguage, + accessibilityRole: "button", + accessibilityState: accessibilityState, + hasTVPreferredFocus: hasTVPreferredFocus, + nextFocusDown: nextFocusDown, + nextFocusForward: nextFocusForward, + nextFocusLeft: nextFocusLeft, + nextFocusRight: nextFocusRight, + nextFocusUp: nextFocusUp, + testID: testID, + disabled: disabled, + onPress: onPress, + touchSoundDisabled: touchSoundDisabled, + children: (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_View.default, { + style: buttonStyles, + children: (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_Text.default, { + style: textStyles, + disabled: disabled, + children: formattedTitle + }) + }) + }); + } + }]); + return Button; + }(React.Component); + var styles = _StyleSheet.default.create({ + button: _Platform.default.select({ + ios: {}, + android: { + elevation: 4, + backgroundColor: '#2196F3', + borderRadius: 2 + } + }), + text: Object.assign({ + textAlign: 'center', + margin: 8 + }, _Platform.default.select({ + ios: { + color: '#007AFF', + fontSize: 18 + }, + android: { + color: 'white', + fontWeight: '500' + } + })), + buttonDisabled: _Platform.default.select({ + ios: {}, + android: { + elevation: 0, + backgroundColor: '#dfdfdf' + } + }), + textDisabled: _Platform.default.select({ + ios: { + color: '#cdcdcd' + }, + android: { + color: '#a1a1a1' + } + }) + }); + module.exports = Button; +},254,[3,12,13,50,47,46,36,14,244,255,267,268,245,17,73],"node_modules/react-native/Libraries/Components/Button.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + var PressabilityDebug = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "../Pressability/PressabilityDebug")); + var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Pressability/usePressability")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../StyleSheet/StyleSheet")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor")); + var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./TextAncestor")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _excluded = ["accessible", "allowFontScaling", "ellipsizeMode", "onLongPress", "onPress", "onPressIn", "onPressOut", "onResponderGrant", "onResponderMove", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "onStartShouldSetResponder", "pressRetentionOffset", "suppressHighlighting"]; + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Text/Text.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Text = React.forwardRef(function (props, forwardedRef) { + var _props$accessibilityS, _props$accessibilityS2; + var accessible = props.accessible, + allowFontScaling = props.allowFontScaling, + ellipsizeMode = props.ellipsizeMode, + onLongPress = props.onLongPress, + onPress = props.onPress, + _onPressIn = props.onPressIn, + _onPressOut = props.onPressOut, + _onResponderGrant = props.onResponderGrant, + _onResponderMove = props.onResponderMove, + _onResponderRelease = props.onResponderRelease, + _onResponderTerminate = props.onResponderTerminate, + onResponderTerminationRequest = props.onResponderTerminationRequest, + onStartShouldSetResponder = props.onStartShouldSetResponder, + pressRetentionOffset = props.pressRetentionOffset, + suppressHighlighting = props.suppressHighlighting, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var _useState = (0, React.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isHighlighted = _useState2[0], + setHighlighted = _useState2[1]; + var _disabled = restProps.disabled != null ? restProps.disabled : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled; + var _accessibilityState = _disabled !== ((_props$accessibilityS2 = props.accessibilityState) == null ? void 0 : _props$accessibilityS2.disabled) ? Object.assign({}, props.accessibilityState, { + disabled: _disabled + }) : props.accessibilityState; + var isPressable = (onPress != null || onLongPress != null || onStartShouldSetResponder != null) && _disabled !== true; + var initialized = useLazyInitialization(isPressable); + var config = (0, React.useMemo)(function () { + return initialized ? { + disabled: !isPressable, + pressRectOffset: pressRetentionOffset, + onLongPress: onLongPress, + onPress: onPress, + onPressIn: function onPressIn(event) { + setHighlighted(!suppressHighlighting); + _onPressIn == null ? void 0 : _onPressIn(event); + }, + onPressOut: function onPressOut(event) { + setHighlighted(false); + _onPressOut == null ? void 0 : _onPressOut(event); + }, + onResponderTerminationRequest_DEPRECATED: onResponderTerminationRequest, + onStartShouldSetResponder_DEPRECATED: onStartShouldSetResponder + } : null; + }, [initialized, isPressable, pressRetentionOffset, onLongPress, onPress, _onPressIn, _onPressOut, onResponderTerminationRequest, onStartShouldSetResponder, suppressHighlighting]); + var eventHandlers = (0, _usePressability.default)(config); + var eventHandlersForText = (0, React.useMemo)(function () { + return eventHandlers == null ? null : { + onResponderGrant: function onResponderGrant(event) { + eventHandlers.onResponderGrant(event); + if (_onResponderGrant != null) { + _onResponderGrant(event); + } + }, + onResponderMove: function onResponderMove(event) { + eventHandlers.onResponderMove(event); + if (_onResponderMove != null) { + _onResponderMove(event); + } + }, + onResponderRelease: function onResponderRelease(event) { + eventHandlers.onResponderRelease(event); + if (_onResponderRelease != null) { + _onResponderRelease(event); + } + }, + onResponderTerminate: function onResponderTerminate(event) { + eventHandlers.onResponderTerminate(event); + if (_onResponderTerminate != null) { + _onResponderTerminate(event); + } + }, + onClick: eventHandlers.onClick, + onResponderTerminationRequest: eventHandlers.onResponderTerminationRequest, + onStartShouldSetResponder: eventHandlers.onStartShouldSetResponder + }; + }, [eventHandlers, _onResponderGrant, _onResponderMove, _onResponderRelease, _onResponderTerminate]); + + var selectionColor = restProps.selectionColor == null ? null : (0, _processColor.default)(restProps.selectionColor); + var style = restProps.style; + if (__DEV__) { + if (PressabilityDebug.isEnabled() && onPress != null) { + style = _StyleSheet.default.compose(restProps.style, { + color: 'magenta' + }); + } + } + var numberOfLines = restProps.numberOfLines; + if (numberOfLines != null && !(numberOfLines >= 0)) { + console.error("'numberOfLines' in must be a non-negative number, received: " + numberOfLines + ". The value will be set to 0."); + numberOfLines = 0; + } + var hasTextAncestor = (0, React.useContext)(_TextAncestor.default); + var _accessible = _Platform.default.select({ + ios: accessible !== false, + default: accessible + }); + return hasTextAncestor ? (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeVirtualText, Object.assign({}, restProps, eventHandlersForText, { + isHighlighted: isHighlighted, + isPressable: isPressable, + numberOfLines: numberOfLines, + selectionColor: selectionColor, + style: style, + ref: forwardedRef + })) : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { + value: true, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeText, Object.assign({}, restProps, eventHandlersForText, { + disabled: _disabled, + accessible: _accessible, + accessibilityState: _accessibilityState, + allowFontScaling: allowFontScaling !== false, + ellipsizeMode: ellipsizeMode != null ? ellipsizeMode : 'tail', + isHighlighted: isHighlighted, + numberOfLines: numberOfLines, + selectionColor: selectionColor, + style: style, + ref: forwardedRef + })) + }); + }); + Text.displayName = 'Text'; + + function useLazyInitialization(newValue) { + var _useState3 = (0, React.useState)(newValue), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + oldValue = _useState4[0], + setValue = _useState4[1]; + if (!oldValue && newValue) { + setValue(newValue); + } + return oldValue; + } + module.exports = Text; +},255,[3,19,132,14,256,258,244,159,247,36,73,265],"node_modules/react-native/Libraries/Text/Text.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PressabilityDebugView = PressabilityDebugView; + exports.isEnabled = isEnabled; + exports.setEnabled = setEnabled; + var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../StyleSheet/normalizeColor")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Components/View/View")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function PressabilityDebugView(props) { + if (__DEV__) { + if (isEnabled()) { + var _hitSlop$bottom, _hitSlop$left, _hitSlop$right, _hitSlop$top; + var normalizedColor = (0, _normalizeColor.default)(props.color); + if (typeof normalizedColor !== 'number') { + return null; + } + var baseColor = '#' + (normalizedColor != null ? normalizedColor : 0).toString(16).padStart(8, '0'); + var hitSlop = (0, _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/Rect").normalizeRect)(props.hitSlop); + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_View.default, { + pointerEvents: "none", + style: + { + backgroundColor: baseColor.slice(0, -2) + '0F', + borderColor: baseColor.slice(0, -2) + '55', + borderStyle: 'dashed', + borderWidth: 1, + bottom: -((_hitSlop$bottom = hitSlop == null ? void 0 : hitSlop.bottom) != null ? _hitSlop$bottom : 0), + left: -((_hitSlop$left = hitSlop == null ? void 0 : hitSlop.left) != null ? _hitSlop$left : 0), + position: 'absolute', + right: -((_hitSlop$right = hitSlop == null ? void 0 : hitSlop.right) != null ? _hitSlop$right : 0), + top: -((_hitSlop$top = hitSlop == null ? void 0 : hitSlop.top) != null ? _hitSlop$top : 0) + } + }); + } + } + return null; + } + var isDebugEnabled = false; + function isEnabled() { + if (__DEV__) { + return isDebugEnabled; + } + return false; + } + function setEnabled(value) { + if (__DEV__) { + isDebugEnabled = value; + } + } +},256,[3,160,245,36,257,73],"node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createSquare = createSquare; + exports.normalizeRect = normalizeRect; + + function createSquare(size) { + return { + bottom: size, + left: size, + right: size, + top: size + }; + } + function normalizeRect(rectOrSize) { + return typeof rectOrSize === 'number' ? createSquare(rectOrSize) : rectOrSize; + } +},257,[],"node_modules/react-native/Libraries/StyleSheet/Rect.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = usePressability; + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Pressability")); + var _react = _$$_REQUIRE(_dependencyMap[2], "react"); + + function usePressability(config) { + var pressabilityRef = (0, _react.useRef)(null); + if (config != null && pressabilityRef.current == null) { + pressabilityRef.current = new _Pressability.default(config); + } + var pressability = pressabilityRef.current; + + (0, _react.useEffect)(function () { + if (config != null && pressability != null) { + pressability.configure(config); + } + }, [config, pressability]); + + (0, _react.useEffect)(function () { + if (pressability != null) { + return function () { + pressability.reset(); + }; + } + }, [pressability]); + return pressability == null ? null : pressability.getEventHandlers(); + } +},258,[3,259,36],"node_modules/react-native/Libraries/Pressability/usePressability.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); + var _SoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Components/Sound/SoundManager")); + var _PressabilityPerformanceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./PressabilityPerformanceEventEmitter.js")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../ReactNative/UIManager")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../ReactNative/ReactNativeFeatureFlags")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Transitions = 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' + } + }); + var isActiveSignal = function isActiveSignal(signal) { + return signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; + }; + var isActivationSignal = function isActivationSignal(signal) { + return signal === 'RESPONDER_ACTIVE_PRESS_OUT' || signal === 'RESPONDER_ACTIVE_PRESS_IN'; + }; + var isPressInSignal = function isPressInSignal(signal) { + return signal === 'RESPONDER_INACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; + }; + var isTerminalSignal = function isTerminalSignal(signal) { + return signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE'; + }; + var DEFAULT_LONG_PRESS_DELAY_MS = 500; + var DEFAULT_PRESS_RECT_OFFSETS = { + bottom: 30, + left: 20, + right: 20, + top: 20 + }; + var DEFAULT_MIN_PRESS_DURATION = 130; + + var Pressability = function () { + function Pressability(config) { + var _this = this; + (0, _classCallCheck2.default)(this, Pressability); + this._eventHandlers = null; + this._hoverInDelayTimeout = null; + this._hoverOutDelayTimeout = null; + this._isHovered = false; + this._longPressDelayTimeout = null; + this._pressDelayTimeout = null; + this._pressOutDelayTimeout = null; + this._responderID = null; + this._responderRegion = null; + this._touchState = 'NOT_RESPONDER'; + this._measureCallback = function (left, top, width, height, pageX, pageY) { + if (!left && !top && !width && !height && !pageX && !pageY) { + return; + } + _this._responderRegion = { + bottom: pageY + height, + left: pageX, + right: pageX + width, + top: pageY + }; + }; + this.configure(config); + } + (0, _createClass2.default)(Pressability, [{ + key: "configure", + value: function configure(config) { + this._config = config; + } + + }, { + key: "reset", + value: + function reset() { + this._cancelHoverInDelayTimeout(); + this._cancelHoverOutDelayTimeout(); + this._cancelLongPressDelayTimeout(); + this._cancelPressDelayTimeout(); + this._cancelPressOutDelayTimeout(); + + this._config = Object.freeze({}); + } + + }, { + key: "getEventHandlers", + value: + function getEventHandlers() { + if (this._eventHandlers == null) { + this._eventHandlers = this._createEventHandlers(); + } + return this._eventHandlers; + } + }, { + key: "_createEventHandlers", + value: function _createEventHandlers() { + var _this2 = this; + var focusEventHandlers = { + onBlur: function onBlur(event) { + var onBlur = _this2._config.onBlur; + if (onBlur != null) { + onBlur(event); + } + }, + onFocus: function onFocus(event) { + var onFocus = _this2._config.onFocus; + if (onFocus != null) { + onFocus(event); + } + } + }; + var responderEventHandlers = { + onStartShouldSetResponder: function onStartShouldSetResponder() { + var disabled = _this2._config.disabled; + if (disabled == null) { + var onStartShouldSetResponder_DEPRECATED = _this2._config.onStartShouldSetResponder_DEPRECATED; + return onStartShouldSetResponder_DEPRECATED == null ? true : onStartShouldSetResponder_DEPRECATED(); + } + return !disabled; + }, + onResponderGrant: function onResponderGrant(event) { + event.persist(); + _this2._cancelPressOutDelayTimeout(); + _this2._responderID = event.currentTarget; + _this2._touchState = 'NOT_RESPONDER'; + _this2._receiveSignal('RESPONDER_GRANT', event); + var delayPressIn = normalizeDelay(_this2._config.delayPressIn); + if (delayPressIn > 0) { + _this2._pressDelayTimeout = setTimeout(function () { + _this2._receiveSignal('DELAY', event); + }, delayPressIn); + } else { + _this2._receiveSignal('DELAY', event); + } + var delayLongPress = normalizeDelay(_this2._config.delayLongPress, 10, DEFAULT_LONG_PRESS_DELAY_MS - delayPressIn); + _this2._longPressDelayTimeout = setTimeout(function () { + _this2._handleLongPress(event); + }, delayLongPress + delayPressIn); + }, + onResponderMove: function onResponderMove(event) { + var onPressMove = _this2._config.onPressMove; + if (onPressMove != null) { + onPressMove(event); + } + + var responderRegion = _this2._responderRegion; + if (responderRegion == null) { + return; + } + var touch = getTouchFromPressEvent(event); + if (touch == null) { + _this2._cancelLongPressDelayTimeout(); + _this2._receiveSignal('LEAVE_PRESS_RECT', event); + return; + } + if (_this2._touchActivatePosition != null) { + var deltaX = _this2._touchActivatePosition.pageX - touch.pageX; + var deltaY = _this2._touchActivatePosition.pageY - touch.pageY; + if (Math.hypot(deltaX, deltaY) > 10) { + _this2._cancelLongPressDelayTimeout(); + } + } + if (_this2._isTouchWithinResponderRegion(touch, responderRegion)) { + _this2._receiveSignal('ENTER_PRESS_RECT', event); + } else { + _this2._cancelLongPressDelayTimeout(); + _this2._receiveSignal('LEAVE_PRESS_RECT', event); + } + }, + onResponderRelease: function onResponderRelease(event) { + _this2._receiveSignal('RESPONDER_RELEASE', event); + }, + onResponderTerminate: function onResponderTerminate(event) { + _this2._receiveSignal('RESPONDER_TERMINATED', event); + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + var cancelable = _this2._config.cancelable; + if (cancelable == null) { + var onResponderTerminationRequest_DEPRECATED = _this2._config.onResponderTerminationRequest_DEPRECATED; + return onResponderTerminationRequest_DEPRECATED == null ? true : onResponderTerminationRequest_DEPRECATED(); + } + return cancelable; + }, + onClick: function onClick(event) { + var _this2$_config = _this2._config, + onPress = _this2$_config.onPress, + disabled = _this2$_config.disabled; + if (onPress != null && disabled !== true) { + onPress(event); + } + } + }; + if (process.env.NODE_ENV === 'test') { + responderEventHandlers.onStartShouldSetResponder.testOnly_pressabilityConfig = function () { + return _this2._config; + }; + } + if (_ReactNativeFeatureFlags.default.shouldPressibilityUseW3CPointerEventsForHover()) { + var hoverPointerEvents = { + onPointerEnter: undefined, + onPointerLeave: undefined + }; + var _this$_config = this._config, + onHoverIn = _this$_config.onHoverIn, + onHoverOut = _this$_config.onHoverOut; + if (onHoverIn != null) { + hoverPointerEvents.onPointerEnter = function (event) { + _this2._isHovered = true; + _this2._cancelHoverOutDelayTimeout(); + if (onHoverIn != null) { + var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); + if (delayHoverIn > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + onHoverIn(convertPointerEventToMouseEvent(event)); + }, delayHoverIn); + } else { + onHoverIn(convertPointerEventToMouseEvent(event)); + } + } + }; + } + if (onHoverOut != null) { + hoverPointerEvents.onPointerLeave = function (event) { + if (_this2._isHovered) { + _this2._isHovered = false; + _this2._cancelHoverInDelayTimeout(); + if (onHoverOut != null) { + var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); + if (delayHoverOut > 0) { + event.persist(); + _this2._hoverOutDelayTimeout = setTimeout(function () { + onHoverOut(convertPointerEventToMouseEvent(event)); + }, delayHoverOut); + } else { + onHoverOut(convertPointerEventToMouseEvent(event)); + } + } + } + }; + } + return Object.assign({}, focusEventHandlers, responderEventHandlers, hoverPointerEvents); + } else { + var mouseEventHandlers = _Platform.default.OS === 'ios' || _Platform.default.OS === 'android' ? null : { + onMouseEnter: function onMouseEnter(event) { + if ((0, _$$_REQUIRE(_dependencyMap[10], "./HoverState").isHoverEnabled)()) { + _this2._isHovered = true; + _this2._cancelHoverOutDelayTimeout(); + var _onHoverIn = _this2._config.onHoverIn; + if (_onHoverIn != null) { + var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); + if (delayHoverIn > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + _onHoverIn(event); + }, delayHoverIn); + } else { + _onHoverIn(event); + } + } + } + }, + onMouseLeave: function onMouseLeave(event) { + if (_this2._isHovered) { + _this2._isHovered = false; + _this2._cancelHoverInDelayTimeout(); + var _onHoverOut = _this2._config.onHoverOut; + if (_onHoverOut != null) { + var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); + if (delayHoverOut > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + _onHoverOut(event); + }, delayHoverOut); + } else { + _onHoverOut(event); + } + } + } + } + }; + return Object.assign({}, focusEventHandlers, responderEventHandlers, mouseEventHandlers); + } + } + + }, { + key: "_receiveSignal", + value: + function _receiveSignal(signal, event) { + var _Transitions$prevStat; + if (event.nativeEvent.timestamp != null) { + _PressabilityPerformanceEventEmitter.default.emitEvent(function () { + return { + signal: signal, + nativeTimestamp: event.nativeEvent.timestamp + }; + }); + } + var prevState = this._touchState; + var nextState = (_Transitions$prevStat = Transitions[prevState]) == null ? void 0 : _Transitions$prevStat[signal]; + if (this._responderID == null && signal === 'RESPONDER_RELEASE') { + return; + } + (0, _invariant.default)(nextState != null && nextState !== 'ERROR', 'Pressability: Invalid signal `%s` for state `%s` on responder: %s', signal, prevState, typeof this._responderID === 'number' ? this._responderID : '<>'); + if (prevState !== nextState) { + this._performTransitionSideEffects(prevState, nextState, signal, event); + this._touchState = nextState; + } + } + + }, { + key: "_performTransitionSideEffects", + value: + function _performTransitionSideEffects(prevState, nextState, signal, event) { + if (isTerminalSignal(signal)) { + this._touchActivatePosition = null; + this._cancelLongPressDelayTimeout(); + } + var isInitialTransition = prevState === 'NOT_RESPONDER' && nextState === 'RESPONDER_INACTIVE_PRESS_IN'; + var isActivationTransition = !isActivationSignal(prevState) && isActivationSignal(nextState); + if (isInitialTransition || isActivationTransition) { + this._measureResponderRegion(); + } + if (isPressInSignal(prevState) && signal === 'LONG_PRESS_DETECTED') { + var onLongPress = this._config.onLongPress; + if (onLongPress != null) { + onLongPress(event); + } + } + var isPrevActive = isActiveSignal(prevState); + var isNextActive = isActiveSignal(nextState); + if (!isPrevActive && isNextActive) { + this._activate(event); + } else if (isPrevActive && !isNextActive) { + this._deactivate(event); + } + if (isPressInSignal(prevState) && signal === 'RESPONDER_RELEASE') { + if (!isNextActive && !isPrevActive) { + this._activate(event); + this._deactivate(event); + } + var _this$_config2 = this._config, + _onLongPress = _this$_config2.onLongPress, + onPress = _this$_config2.onPress, + android_disableSound = _this$_config2.android_disableSound; + if (onPress != null) { + var isPressCanceledByLongPress = _onLongPress != null && prevState === 'RESPONDER_ACTIVE_LONG_PRESS_IN' && this._shouldLongPressCancelPress(); + if (!isPressCanceledByLongPress) { + if (_Platform.default.OS === 'android' && android_disableSound !== true) { + _SoundManager.default.playTouchSound(); + } + onPress(event); + } + } + } + this._cancelPressDelayTimeout(); + } + }, { + key: "_activate", + value: function _activate(event) { + var onPressIn = this._config.onPressIn; + var _getTouchFromPressEve = getTouchFromPressEvent(event), + pageX = _getTouchFromPressEve.pageX, + pageY = _getTouchFromPressEve.pageY; + this._touchActivatePosition = { + pageX: pageX, + pageY: pageY + }; + this._touchActivateTime = Date.now(); + if (onPressIn != null) { + onPressIn(event); + } + } + }, { + key: "_deactivate", + value: function _deactivate(event) { + var onPressOut = this._config.onPressOut; + if (onPressOut != null) { + var _this$_touchActivateT; + var minPressDuration = normalizeDelay(this._config.minPressDuration, 0, DEFAULT_MIN_PRESS_DURATION); + var pressDuration = Date.now() - ((_this$_touchActivateT = this._touchActivateTime) != null ? _this$_touchActivateT : 0); + var delayPressOut = Math.max(minPressDuration - pressDuration, normalizeDelay(this._config.delayPressOut)); + if (delayPressOut > 0) { + event.persist(); + this._pressOutDelayTimeout = setTimeout(function () { + onPressOut(event); + }, delayPressOut); + } else { + onPressOut(event); + } + } + this._touchActivateTime = null; + } + }, { + key: "_measureResponderRegion", + value: function _measureResponderRegion() { + if (this._responderID == null) { + return; + } + if (typeof this._responderID === 'number') { + _UIManager.default.measure(this._responderID, this._measureCallback); + } else { + this._responderID.measure(this._measureCallback); + } + } + }, { + key: "_isTouchWithinResponderRegion", + value: function _isTouchWithinResponderRegion(touch, responderRegion) { + var _pressRectOffset$bott, _pressRectOffset$left, _pressRectOffset$righ, _pressRectOffset$top; + var hitSlop = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.hitSlop); + var pressRectOffset = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.pressRectOffset); + var regionBottom = responderRegion.bottom; + var regionLeft = responderRegion.left; + var regionRight = responderRegion.right; + var regionTop = responderRegion.top; + if (hitSlop != null) { + if (hitSlop.bottom != null) { + regionBottom += hitSlop.bottom; + } + if (hitSlop.left != null) { + regionLeft -= hitSlop.left; + } + if (hitSlop.right != null) { + regionRight += hitSlop.right; + } + if (hitSlop.top != null) { + regionTop -= hitSlop.top; + } + } + regionBottom += (_pressRectOffset$bott = pressRectOffset == null ? void 0 : pressRectOffset.bottom) != null ? _pressRectOffset$bott : DEFAULT_PRESS_RECT_OFFSETS.bottom; + regionLeft -= (_pressRectOffset$left = pressRectOffset == null ? void 0 : pressRectOffset.left) != null ? _pressRectOffset$left : DEFAULT_PRESS_RECT_OFFSETS.left; + regionRight += (_pressRectOffset$righ = pressRectOffset == null ? void 0 : pressRectOffset.right) != null ? _pressRectOffset$righ : DEFAULT_PRESS_RECT_OFFSETS.right; + regionTop -= (_pressRectOffset$top = pressRectOffset == null ? void 0 : pressRectOffset.top) != null ? _pressRectOffset$top : DEFAULT_PRESS_RECT_OFFSETS.top; + return touch.pageX > regionLeft && touch.pageX < regionRight && touch.pageY > regionTop && touch.pageY < regionBottom; + } + }, { + key: "_handleLongPress", + value: function _handleLongPress(event) { + if (this._touchState === 'RESPONDER_ACTIVE_PRESS_IN' || this._touchState === 'RESPONDER_ACTIVE_LONG_PRESS_IN') { + this._receiveSignal('LONG_PRESS_DETECTED', event); + } + } + }, { + key: "_shouldLongPressCancelPress", + value: function _shouldLongPressCancelPress() { + return this._config.onLongPressShouldCancelPress_DEPRECATED == null || this._config.onLongPressShouldCancelPress_DEPRECATED(); + } + }, { + key: "_cancelHoverInDelayTimeout", + value: function _cancelHoverInDelayTimeout() { + if (this._hoverInDelayTimeout != null) { + clearTimeout(this._hoverInDelayTimeout); + this._hoverInDelayTimeout = null; + } + } + }, { + key: "_cancelHoverOutDelayTimeout", + value: function _cancelHoverOutDelayTimeout() { + if (this._hoverOutDelayTimeout != null) { + clearTimeout(this._hoverOutDelayTimeout); + this._hoverOutDelayTimeout = null; + } + } + }, { + key: "_cancelLongPressDelayTimeout", + value: function _cancelLongPressDelayTimeout() { + if (this._longPressDelayTimeout != null) { + clearTimeout(this._longPressDelayTimeout); + this._longPressDelayTimeout = null; + } + } + }, { + key: "_cancelPressDelayTimeout", + value: function _cancelPressDelayTimeout() { + if (this._pressDelayTimeout != null) { + clearTimeout(this._pressDelayTimeout); + this._pressDelayTimeout = null; + } + } + }, { + key: "_cancelPressOutDelayTimeout", + value: function _cancelPressOutDelayTimeout() { + if (this._pressOutDelayTimeout != null) { + clearTimeout(this._pressOutDelayTimeout); + this._pressOutDelayTimeout = null; + } + } + }]); + return Pressability; + }(); + exports.default = Pressability; + function normalizeDelay(delay) { + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + return Math.max(min, delay != null ? delay : fallback); + } + var getTouchFromPressEvent = function getTouchFromPressEvent(event) { + var _event$nativeEvent = event.nativeEvent, + changedTouches = _event$nativeEvent.changedTouches, + touches = _event$nativeEvent.touches; + if (touches != null && touches.length > 0) { + return touches[0]; + } + if (changedTouches != null && changedTouches.length > 0) { + return changedTouches[0]; + } + return event.nativeEvent; + }; + function convertPointerEventToMouseEvent(input) { + var _input$nativeEvent = input.nativeEvent, + clientX = _input$nativeEvent.clientX, + clientY = _input$nativeEvent.clientY; + return Object.assign({}, input, { + nativeEvent: { + clientX: clientX, + clientY: clientY, + pageX: clientX, + pageY: clientY, + timestamp: input.timeStamp + } + }); + } +},259,[3,12,13,17,260,262,14,213,36,263,264,257],"node_modules/react-native/Libraries/Pressability/Pressability.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeSoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeSoundManager")); + + var SoundManager = { + playTouchSound: function playTouchSound() { + if (_NativeSoundManager.default) { + _NativeSoundManager.default.playTouchSound(); + } + } + }; + module.exports = SoundManager; +},260,[3,261],"node_modules/react-native/Libraries/Components/Sound/SoundManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('SoundManager'); + exports.default = _default; +},261,[16],"node_modules/react-native/Libraries/Components/Sound/NativeSoundManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var PressabilityPerformanceEventEmitter = function () { + function PressabilityPerformanceEventEmitter() { + (0, _classCallCheck2.default)(this, PressabilityPerformanceEventEmitter); + this._listeners = []; + } + (0, _createClass2.default)(PressabilityPerformanceEventEmitter, [{ + key: "addListener", + value: function addListener(listener) { + this._listeners.push(listener); + } + }, { + key: "removeListener", + value: function removeListener(listener) { + var index = this._listeners.indexOf(listener); + if (index > -1) { + this._listeners.splice(index, 1); + } + } + }, { + key: "emitEvent", + value: function emitEvent(constructEvent) { + if (this._listeners.length === 0) { + return; + } + var event = constructEvent(); + this._listeners.forEach(function (listener) { + return listener(event); + }); + } + }]); + return PressabilityPerformanceEventEmitter; + }(); + var PressabilityPerformanceEventEmitterSingleton = new PressabilityPerformanceEventEmitter(); + var _default = PressabilityPerformanceEventEmitterSingleton; + exports.default = _default; +},262,[3,12,13],"node_modules/react-native/Libraries/Pressability/PressabilityPerformanceEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var ReactNativeFeatureFlags = { + isLayoutAnimationEnabled: function isLayoutAnimationEnabled() { + return true; + }, + shouldEmitW3CPointerEvents: function shouldEmitW3CPointerEvents() { + return false; + }, + shouldPressibilityUseW3CPointerEventsForHover: function shouldPressibilityUseW3CPointerEventsForHover() { + return false; + }, + animatedShouldDebounceQueueFlush: function animatedShouldDebounceQueueFlush() { + return false; + }, + animatedShouldUseSingleOp: function animatedShouldUseSingleOp() { + return false; + } + }; + module.exports = ReactNativeFeatureFlags; +},263,[],"node_modules/react-native/Libraries/ReactNative/ReactNativeFeatureFlags.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isHoverEnabled = isHoverEnabled; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + + var isEnabled = false; + if (_Platform.default.OS === 'web') { + var canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement); + if (canUseDOM) { + var HOVER_THRESHOLD_MS = 1000; + var lastTouchTimestamp = 0; + var enableHover = function enableHover() { + if (isEnabled || Date.now() - lastTouchTimestamp < HOVER_THRESHOLD_MS) { + return; + } + isEnabled = true; + }; + var disableHover = function disableHover() { + lastTouchTimestamp = Date.now(); + if (isEnabled) { + isEnabled = false; + } + }; + document.addEventListener('touchstart', disableHover, true); + document.addEventListener('touchmove', disableHover, true); + document.addEventListener('mousemove', enableHover, true); + } + } + function isHoverEnabled() { + return isEnabled; + } +},264,[3,14],"node_modules/react-native/Libraries/Pressability/HoverState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NativeVirtualText = exports.NativeText = void 0; + var _ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/ReactNativeViewAttributes")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + var _createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/createReactNativeComponentClass")); + + var NativeText = (0, _createReactNativeComponentClass.default)('RCTText', function () { + return { + validAttributes: Object.assign({}, _ReactNativeViewAttributes.default.UIView, { + isHighlighted: true, + isPressable: true, + numberOfLines: true, + ellipsizeMode: true, + allowFontScaling: true, + maxFontSizeMultiplier: true, + disabled: true, + selectable: true, + selectionColor: true, + adjustsFontSizeToFit: true, + minimumFontScale: true, + textBreakStrategy: true, + onTextLayout: true, + onInlineViewLayout: true, + dataDetectorType: true, + android_hyphenationFrequency: true + }), + directEventTypes: { + topTextLayout: { + registrationName: 'onTextLayout' + }, + topInlineViewLayout: { + registrationName: 'onInlineViewLayout' + } + }, + uiViewClassName: 'RCTText' + }; + }); + exports.NativeText = NativeText; + var NativeVirtualText = !global.RN$Bridgeless && !_UIManager.default.hasViewManagerConfig('RCTVirtualText') ? NativeText : (0, _createReactNativeComponentClass.default)('RCTVirtualText', function () { + return { + validAttributes: Object.assign({}, _ReactNativeViewAttributes.default.UIView, { + isHighlighted: true, + isPressable: true, + maxFontSizeMultiplier: true + }), + uiViewClassName: 'RCTVirtualText' + }; + }); + exports.NativeVirtualText = NativeVirtualText; +},265,[3,266,213,253],"node_modules/react-native/Libraries/Text/TextNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./ReactNativeStyleAttributes")); + var UIView = { + pointerEvents: true, + accessible: true, + accessibilityActions: true, + accessibilityLabel: true, + accessibilityLiveRegion: true, + accessibilityRole: true, + accessibilityState: true, + accessibilityValue: true, + accessibilityHint: true, + accessibilityLanguage: true, + importantForAccessibility: true, + nativeID: true, + testID: true, + renderToHardwareTextureAndroid: true, + shouldRasterizeIOS: true, + onLayout: true, + onAccessibilityAction: true, + onAccessibilityTap: true, + onMagicTap: true, + onAccessibilityEscape: true, + collapsable: true, + needsOffscreenAlphaCompositing: true, + style: _ReactNativeStyleAttributes.default + }; + var RCTView = Object.assign({}, UIView, { + removeClippedSubviews: true + }); + var ReactNativeViewAttributes = { + UIView: UIView, + RCTView: RCTView + }; + module.exports = ReactNativeViewAttributes; +},266,[3,185],"node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); + var _ReactNative = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "react-native/Libraries/Renderer/shims/ReactNative")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Platform")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Components/View/View")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/processColor")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "invariant")); + var _excluded = ["onBlur", "onFocus"]; + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var TouchableNativeFeedback = function (_React$Component) { + (0, _inherits2.default)(TouchableNativeFeedback, _React$Component); + var _super = _createSuper(TouchableNativeFeedback); + function TouchableNativeFeedback() { + var _this; + (0, _classCallCheck2.default)(this, TouchableNativeFeedback); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + pressability: new _Pressability.default(_this._createPressabilityConfig()) + }; + return _this; + } + (0, _createClass2.default)(TouchableNativeFeedback, [{ + key: "_createPressabilityConfig", + value: function _createPressabilityConfig() { + var _this$props$accessibi, + _this2 = this; + return { + cancelable: !this.props.rejectResponderTermination, + disabled: this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, + hitSlop: this.props.hitSlop, + delayLongPress: this.props.delayLongPress, + delayPressIn: this.props.delayPressIn, + delayPressOut: this.props.delayPressOut, + minPressDuration: 0, + pressRectOffset: this.props.pressRetentionOffset, + android_disableSound: this.props.touchSoundDisabled, + onLongPress: this.props.onLongPress, + onPress: this.props.onPress, + onPressIn: function onPressIn(event) { + if (_Platform.default.OS === 'android') { + _this2._dispatchHotspotUpdate(event); + _this2._dispatchPressedStateChange(true); + } + if (_this2.props.onPressIn != null) { + _this2.props.onPressIn(event); + } + }, + onPressMove: function onPressMove(event) { + if (_Platform.default.OS === 'android') { + _this2._dispatchHotspotUpdate(event); + } + }, + onPressOut: function onPressOut(event) { + if (_Platform.default.OS === 'android') { + _this2._dispatchPressedStateChange(false); + } + if (_this2.props.onPressOut != null) { + _this2.props.onPressOut(event); + } + } + }; + } + }, { + key: "_dispatchPressedStateChange", + value: function _dispatchPressedStateChange(pressed) { + if (_Platform.default.OS === 'android') { + var hostComponentRef = _ReactNative.default.findHostInstance_DEPRECATED(this); + if (hostComponentRef == null) { + console.warn('Touchable: Unable to find HostComponent instance. ' + 'Has your Touchable component been unmounted?'); + } else { + _$$_REQUIRE(_dependencyMap[14], "react-native/Libraries/Components/View/ViewNativeComponent").Commands.setPressed(hostComponentRef, pressed); + } + } + } + }, { + key: "_dispatchHotspotUpdate", + value: function _dispatchHotspotUpdate(event) { + if (_Platform.default.OS === 'android') { + var _event$nativeEvent = event.nativeEvent, + locationX = _event$nativeEvent.locationX, + locationY = _event$nativeEvent.locationY; + var hostComponentRef = _ReactNative.default.findHostInstance_DEPRECATED(this); + if (hostComponentRef == null) { + console.warn('Touchable: Unable to find HostComponent instance. ' + 'Has your Touchable component been unmounted?'); + } else { + _$$_REQUIRE(_dependencyMap[14], "react-native/Libraries/Components/View/ViewNativeComponent").Commands.hotspotUpdate(hostComponentRef, locationX != null ? locationX : 0, locationY != null ? locationY : 0); + } + } + } + }, { + key: "render", + value: function render() { + var element = React.Children.only(this.props.children); + var children = [element.props.children]; + if (__DEV__) { + if (element.type === _View.default) { + children.push((0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[16], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "brown", + hitSlop: this.props.hitSlop + })); + } + } + + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { + disabled: this.props.disabled + }) : this.props.accessibilityState; + return React.cloneElement.apply(React, [element, Object.assign({}, eventHandlersWithoutBlurAndFocus, getBackgroundProp(this.props.background === undefined ? TouchableNativeFeedback.SelectableBackground() : this.props.background, this.props.useForeground === true), { + accessible: this.props.accessible !== false, + accessibilityHint: this.props.accessibilityHint, + accessibilityLanguage: this.props.accessibilityLanguage, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityRole: this.props.accessibilityRole, + accessibilityState: accessibilityState, + accessibilityActions: this.props.accessibilityActions, + onAccessibilityAction: this.props.onAccessibilityAction, + accessibilityValue: this.props.accessibilityValue, + importantForAccessibility: this.props.importantForAccessibility, + accessibilityLiveRegion: this.props.accessibilityLiveRegion, + accessibilityViewIsModal: this.props.accessibilityViewIsModal, + accessibilityElementsHidden: this.props.accessibilityElementsHidden, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + hitSlop: this.props.hitSlop, + focusable: this.props.focusable !== false && this.props.onPress !== undefined && !this.props.disabled, + nativeID: this.props.nativeID, + nextFocusDown: this.props.nextFocusDown, + nextFocusForward: this.props.nextFocusForward, + nextFocusLeft: this.props.nextFocusLeft, + nextFocusRight: this.props.nextFocusRight, + nextFocusUp: this.props.nextFocusUp, + onLayout: this.props.onLayout, + testID: this.props.testID + })].concat(children)); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + this.state.pressability.configure(this._createPressabilityConfig()); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.state.pressability.reset(); + } + }]); + return TouchableNativeFeedback; + }(React.Component); + TouchableNativeFeedback.SelectableBackground = function (rippleRadius) { + return { + type: 'ThemeAttrAndroid', + attribute: 'selectableItemBackground', + rippleRadius: rippleRadius + }; + }; + TouchableNativeFeedback.SelectableBackgroundBorderless = function (rippleRadius) { + return { + type: 'ThemeAttrAndroid', + attribute: 'selectableItemBackgroundBorderless', + rippleRadius: rippleRadius + }; + }; + TouchableNativeFeedback.Ripple = function (color, borderless, rippleRadius) { + var processedColor = (0, _processColor.default)(color); + (0, _invariant.default)(processedColor == null || typeof processedColor === 'number', 'Unexpected color given for Ripple color'); + return { + type: 'RippleAndroid', + color: processedColor, + borderless: borderless, + rippleRadius: rippleRadius + }; + }; + TouchableNativeFeedback.canUseNativeForeground = function () { + return _Platform.default.OS === 'android' && _Platform.default.Version >= 23; + }; + var getBackgroundProp = _Platform.default.OS === 'android' ? + function (background, useForeground) { + return useForeground && TouchableNativeFeedback.canUseNativeForeground() ? { + nativeForegroundAndroid: background + } : { + nativeBackgroundAndroid: background + }; + } : + function (background, useForeground) { + return null; + }; + TouchableNativeFeedback.displayName = 'TouchableNativeFeedback'; + module.exports = TouchableNativeFeedback; +},267,[3,132,12,13,50,47,46,259,34,14,245,159,36,17,246,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); + var _Animated = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "react-native/Libraries/Animated/Animated")); + var _Easing = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/Animated/Easing")); + var _flattenStyle4 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "react-native/Libraries/StyleSheet/flattenStyle")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js", + _this3 = this; + var _excluded = ["onBlur", "onFocus"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var TouchableOpacity = function (_React$Component) { + (0, _inherits2.default)(TouchableOpacity, _React$Component); + var _super = _createSuper(TouchableOpacity); + function TouchableOpacity() { + var _this; + (0, _classCallCheck2.default)(this, TouchableOpacity); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + anim: new _Animated.default.Value(_this._getChildStyleOpacityWithDefault()), + pressability: new _Pressability.default(_this._createPressabilityConfig()) + }; + return _this; + } + (0, _createClass2.default)(TouchableOpacity, [{ + key: "_createPressabilityConfig", + value: function _createPressabilityConfig() { + var _this$props$disabled, + _this$props$accessibi, + _this2 = this; + return { + cancelable: !this.props.rejectResponderTermination, + disabled: (_this$props$disabled = this.props.disabled) != null ? _this$props$disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, + hitSlop: this.props.hitSlop, + delayLongPress: this.props.delayLongPress, + delayPressIn: this.props.delayPressIn, + delayPressOut: this.props.delayPressOut, + minPressDuration: 0, + pressRectOffset: this.props.pressRetentionOffset, + onBlur: function onBlur(event) { + if (_Platform.default.isTV) { + _this2._opacityInactive(250); + } + if (_this2.props.onBlur != null) { + _this2.props.onBlur(event); + } + }, + onFocus: function onFocus(event) { + if (_Platform.default.isTV) { + _this2._opacityActive(150); + } + if (_this2.props.onFocus != null) { + _this2.props.onFocus(event); + } + }, + onLongPress: this.props.onLongPress, + onPress: this.props.onPress, + onPressIn: function onPressIn(event) { + _this2._opacityActive(event.dispatchConfig.registrationName === 'onResponderGrant' ? 0 : 150); + if (_this2.props.onPressIn != null) { + _this2.props.onPressIn(event); + } + }, + onPressOut: function onPressOut(event) { + _this2._opacityInactive(250); + if (_this2.props.onPressOut != null) { + _this2.props.onPressOut(event); + } + } + }; + } + + }, { + key: "_setOpacityTo", + value: + function _setOpacityTo(toValue, duration) { + _Animated.default.timing(this.state.anim, { + toValue: toValue, + duration: duration, + easing: _Easing.default.inOut(_Easing.default.quad), + useNativeDriver: true + }).start(); + } + }, { + key: "_opacityActive", + value: function _opacityActive(duration) { + var _this$props$activeOpa; + this._setOpacityTo((_this$props$activeOpa = this.props.activeOpacity) != null ? _this$props$activeOpa : 0.2, duration); + } + }, { + key: "_opacityInactive", + value: function _opacityInactive(duration) { + this._setOpacityTo(this._getChildStyleOpacityWithDefault(), duration); + } + }, { + key: "_getChildStyleOpacityWithDefault", + value: function _getChildStyleOpacityWithDefault() { + var _flattenStyle; + var opacity = (_flattenStyle = (0, _flattenStyle4.default)(this.props.style)) == null ? void 0 : _flattenStyle.opacity; + return typeof opacity === 'number' ? opacity : 1; + } + }, { + key: "render", + value: function render() { + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { + disabled: this.props.disabled + }) : this.props.accessibilityState; + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Animated.default.View, Object.assign({ + accessible: this.props.accessible !== false, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityHint: this.props.accessibilityHint, + accessibilityLanguage: this.props.accessibilityLanguage, + accessibilityRole: this.props.accessibilityRole, + accessibilityState: accessibilityState, + accessibilityActions: this.props.accessibilityActions, + onAccessibilityAction: this.props.onAccessibilityAction, + accessibilityValue: this.props.accessibilityValue, + importantForAccessibility: this.props.importantForAccessibility, + accessibilityLiveRegion: this.props.accessibilityLiveRegion, + accessibilityViewIsModal: this.props.accessibilityViewIsModal, + accessibilityElementsHidden: this.props.accessibilityElementsHidden, + style: [this.props.style, { + opacity: this.state.anim + }], + nativeID: this.props.nativeID, + testID: this.props.testID, + onLayout: this.props.onLayout, + nextFocusDown: this.props.nextFocusDown, + nextFocusForward: this.props.nextFocusForward, + nextFocusLeft: this.props.nextFocusLeft, + nextFocusRight: this.props.nextFocusRight, + nextFocusUp: this.props.nextFocusUp, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + hitSlop: this.props.hitSlop, + focusable: this.props.focusable !== false && this.props.onPress !== undefined, + ref: this.props.hostRef + }, eventHandlersWithoutBlurAndFocus, { + children: [this.props.children, __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "cyan", + hitSlop: this.props.hitSlop + }) : null] + })); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + var _flattenStyle2, _flattenStyle3; + this.state.pressability.configure(this._createPressabilityConfig()); + if (this.props.disabled !== prevProps.disabled || ((_flattenStyle2 = (0, _flattenStyle4.default)(prevProps.style)) == null ? void 0 : _flattenStyle2.opacity) !== ((_flattenStyle3 = (0, _flattenStyle4.default)(this.props.style)) == null ? void 0 : _flattenStyle3.opacity) !== undefined) { + this._opacityInactive(250); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.state.pressability.reset(); + } + }]); + return TouchableOpacity; + }(React.Component); + var Touchable = React.forwardRef(function (props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(TouchableOpacity, Object.assign({}, props, { + hostRef: ref + })); + }); + Touchable.displayName = 'TouchableOpacity'; + module.exports = Touchable; +},268,[3,132,12,13,50,47,46,259,269,294,189,14,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + var AnimatedMock = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "./AnimatedMock")); + var AnimatedImplementation = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./AnimatedImplementation")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Animated = _Platform.default.isTesting ? AnimatedMock : AnimatedImplementation; + module.exports = Object.assign({ + get FlatList() { + return _$$_REQUIRE(_dependencyMap[4], "./components/AnimatedFlatList"); + }, + get Image() { + return _$$_REQUIRE(_dependencyMap[5], "./components/AnimatedImage"); + }, + get ScrollView() { + return _$$_REQUIRE(_dependencyMap[6], "./components/AnimatedScrollView"); + }, + get SectionList() { + return _$$_REQUIRE(_dependencyMap[7], "./components/AnimatedSectionList"); + }, + get Text() { + return _$$_REQUIRE(_dependencyMap[8], "./components/AnimatedText"); + }, + get View() { + return _$$_REQUIRE(_dependencyMap[9], "./components/AnimatedView"); + } + }, Animated); +},269,[3,14,270,282,304,333,340,341,344,345],"node_modules/react-native/Libraries/Animated/Animated.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedColor")); + + var inAnimationCallback = false; + function mockAnimationStart(start) { + return function (callback) { + var guardedCallback = callback == null ? callback : function () { + if (inAnimationCallback) { + console.warn('Ignoring recursive animation callback when running mock animations'); + return; + } + inAnimationCallback = true; + try { + callback.apply(void 0, arguments); + } finally { + inAnimationCallback = false; + } + }; + start(guardedCallback); + }; + } + var emptyAnimation = { + start: function start() {}, + stop: function stop() {}, + reset: function reset() {}, + _startNativeLoop: function _startNativeLoop() {}, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + var mockCompositeAnimation = function mockCompositeAnimation(animations) { + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + animations.forEach(function (animation) { + return animation.start(); + }); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var spring = function spring(value, config) { + var anyValue = value; + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + anyValue.setValue(config.toValue); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var timing = function timing(value, config) { + var anyValue = value; + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + anyValue.setValue(config.toValue); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var decay = function decay(value, config) { + return emptyAnimation; + }; + var sequence = function sequence(animations) { + return mockCompositeAnimation(animations); + }; + var parallel = function parallel(animations, config) { + return mockCompositeAnimation(animations); + }; + var delay = function delay(time) { + return emptyAnimation; + }; + var stagger = function stagger(time, animations) { + return mockCompositeAnimation(animations); + }; + var loop = function loop(animation) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$iterations = _ref.iterations, + iterations = _ref$iterations === void 0 ? -1 : _ref$iterations; + return emptyAnimation; + }; + module.exports = { + Value: _$$_REQUIRE(_dependencyMap[2], "./nodes/AnimatedValue"), + ValueXY: _$$_REQUIRE(_dependencyMap[3], "./nodes/AnimatedValueXY"), + Color: _AnimatedColor.default, + Interpolation: _$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedInterpolation"), + Node: _$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedNode"), + decay: decay, + timing: timing, + spring: spring, + add: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").add, + subtract: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").subtract, + divide: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").divide, + multiply: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").multiply, + modulo: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").modulo, + diffClamp: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").diffClamp, + delay: delay, + sequence: sequence, + parallel: parallel, + stagger: stagger, + loop: loop, + event: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").event, + createAnimatedComponent: _$$_REQUIRE(_dependencyMap[7], "./createAnimatedComponent"), + attachNativeEvent: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").attachNativeEvent, + forkEvent: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").forkEvent, + unforkEvent: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").unforkEvent, + Event: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").AnimatedEvent + }; +},270,[3,271,272,281,276,278,282,298,297],"node_modules/react-native/Libraries/Animated/AnimatedMock.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../StyleSheet/normalizeColor")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../NativeAnimatedHelper")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var NativeAnimatedAPI = _NativeAnimatedHelper.default.API; + var defaultColor = { + r: 0, + g: 0, + b: 0, + a: 1.0 + }; + var _uniqueId = 1; + + function processColor(color) { + if (color === undefined || color === null) { + return null; + } + if (isRgbaValue(color)) { + return color; + } + var normalizedColor = (0, _normalizeColor.default)( + color); + if (normalizedColor === undefined || normalizedColor === null) { + return null; + } + if (typeof normalizedColor === 'object') { + var processedColorObj = (0, _$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/PlatformColorValueTypes").processColorObject)(normalizedColor); + if (processedColorObj != null) { + return processedColorObj; + } + } else if (typeof normalizedColor === 'number') { + var r = (normalizedColor & 0xff000000) >>> 24; + var g = (normalizedColor & 0x00ff0000) >>> 16; + var b = (normalizedColor & 0x0000ff00) >>> 8; + var a = (normalizedColor & 0x000000ff) / 255; + return { + r: r, + g: g, + b: b, + a: a + }; + } + return null; + } + function isRgbaValue(value) { + return value && typeof value.r === 'number' && typeof value.g === 'number' && typeof value.b === 'number' && typeof value.a === 'number'; + } + function isRgbaAnimatedValue(value) { + return value && value.r instanceof _AnimatedValue.default && value.g instanceof _AnimatedValue.default && value.b instanceof _AnimatedValue.default && value.a instanceof _AnimatedValue.default; + } + var AnimatedColor = function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedColor, _AnimatedWithChildren); + var _super = _createSuper(AnimatedColor); + function AnimatedColor(valueIn, config) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedColor); + _this = _super.call(this); + _this._listeners = {}; + var value = valueIn != null ? valueIn : defaultColor; + if (isRgbaAnimatedValue(value)) { + var rgbaAnimatedValue = value; + _this.r = rgbaAnimatedValue.r; + _this.g = rgbaAnimatedValue.g; + _this.b = rgbaAnimatedValue.b; + _this.a = rgbaAnimatedValue.a; + } else { + var _processColor; + var processedColor = (_processColor = processColor(value)) != null ? _processColor : defaultColor; + var initColor = defaultColor; + if (isRgbaValue(processedColor)) { + initColor = processedColor; + } else { + _this.nativeColor = processedColor; + } + _this.r = new _AnimatedValue.default(initColor.r); + _this.g = new _AnimatedValue.default(initColor.g); + _this.b = new _AnimatedValue.default(initColor.b); + _this.a = new _AnimatedValue.default(initColor.a); + } + if (_this.nativeColor || config && config.useNativeDriver) { + _this.__makeNative(); + } + return _this; + } + + (0, _createClass2.default)(AnimatedColor, [{ + key: "setValue", + value: + function setValue(value) { + var _processColor2; + var shouldUpdateNodeConfig = false; + if (this.__isNative) { + var nativeTag = this.__getNativeTag(); + NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString()); + } + var processedColor = (_processColor2 = processColor(value)) != null ? _processColor2 : defaultColor; + if (isRgbaValue(processedColor)) { + var rgbaValue = processedColor; + this.r.setValue(rgbaValue.r); + this.g.setValue(rgbaValue.g); + this.b.setValue(rgbaValue.b); + this.a.setValue(rgbaValue.a); + if (this.nativeColor != null) { + this.nativeColor = null; + shouldUpdateNodeConfig = true; + } + } else { + var nativeColor = processedColor; + if (this.nativeColor !== nativeColor) { + this.nativeColor = nativeColor; + shouldUpdateNodeConfig = true; + } + } + if (this.__isNative) { + var _nativeTag = this.__getNativeTag(); + if (shouldUpdateNodeConfig) { + NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()); + } + NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString()); + } + } + + }, { + key: "setOffset", + value: + function setOffset(offset) { + this.r.setOffset(offset.r); + this.g.setOffset(offset.g); + this.b.setOffset(offset.b); + this.a.setOffset(offset.a); + } + + }, { + key: "flattenOffset", + value: + function flattenOffset() { + this.r.flattenOffset(); + this.g.flattenOffset(); + this.b.flattenOffset(); + this.a.flattenOffset(); + } + + }, { + key: "extractOffset", + value: + function extractOffset() { + this.r.extractOffset(); + this.g.extractOffset(); + this.b.extractOffset(); + this.a.extractOffset(); + } + + }, { + key: "addListener", + value: + function addListener(callback) { + var _this2 = this; + var id = String(_uniqueId++); + var jointCallback = function jointCallback(_ref) { + var number = _ref.value; + callback(_this2.__getValue()); + }; + this._listeners[id] = { + r: this.r.addListener(jointCallback), + g: this.g.addListener(jointCallback), + b: this.b.addListener(jointCallback), + a: this.a.addListener(jointCallback) + }; + return id; + } + + }, { + key: "removeListener", + value: + function removeListener(id) { + this.r.removeListener(this._listeners[id].r); + this.g.removeListener(this._listeners[id].g); + this.b.removeListener(this._listeners[id].b); + this.a.removeListener(this._listeners[id].a); + delete this._listeners[id]; + } + + }, { + key: "removeAllListeners", + value: + function removeAllListeners() { + this.r.removeAllListeners(); + this.g.removeAllListeners(); + this.b.removeAllListeners(); + this.a.removeAllListeners(); + this._listeners = {}; + } + + }, { + key: "stopAnimation", + value: + function stopAnimation(callback) { + this.r.stopAnimation(); + this.g.stopAnimation(); + this.b.stopAnimation(); + this.a.stopAnimation(); + callback && callback(this.__getValue()); + } + + }, { + key: "resetAnimation", + value: + function resetAnimation(callback) { + this.r.resetAnimation(); + this.g.resetAnimation(); + this.b.resetAnimation(); + this.a.resetAnimation(); + callback && callback(this.__getValue()); + } + }, { + key: "__getValue", + value: function __getValue() { + if (this.nativeColor != null) { + return this.nativeColor; + } else { + return "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")"; + } + } + }, { + key: "__attach", + value: function __attach() { + this.r.__addChild(this); + this.g.__addChild(this); + this.b.__addChild(this); + this.a.__addChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__attach", this).call(this); + } + }, { + key: "__detach", + value: function __detach() { + this.r.__removeChild(this); + this.g.__removeChild(this); + this.b.__removeChild(this); + this.a.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__detach", this).call(this); + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.r.__makeNative(platformConfig); + this.g.__makeNative(platformConfig); + this.b.__makeNative(platformConfig); + this.a.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'color', + r: this.r.__getNativeTag(), + g: this.g.__getNativeTag(), + b: this.b.__getNativeTag(), + a: this.a.__getNativeTag(), + nativeColor: this.nativeColor + }; + } + }]); + return AnimatedColor; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedColor; +},271,[3,12,13,115,50,47,46,272,277,160,273,162],"node_modules/react-native/Libraries/Animated/nodes/AnimatedColor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + function _flush(rootNode) { + var animatedStyles = new Set(); + function findAnimatedStyles(node) { + if (typeof node.update === 'function') { + animatedStyles.add(node); + } else { + node.__getChildren().forEach(findAnimatedStyles); + } + } + findAnimatedStyles(rootNode); + animatedStyles.forEach(function (animatedStyle) { + return animatedStyle.update(); + }); + } + + function _executeAsAnimatedBatch(id, operation) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setWaitingForIdentifier(id); + operation(); + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.unsetWaitingForIdentifier(id); + } + + var AnimatedValue = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(AnimatedValue, _AnimatedWithChildren); + var _super = _createSuper(AnimatedValue); + function AnimatedValue(value, config) { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, AnimatedValue); + _this = _super.call(this); + if (typeof value !== 'number') { + throw new Error('AnimatedValue: Attempting to set value to undefined'); + } + _this._startingValue = _this._value = value; + _this._offset = 0; + _this._animation = null; + if (config && config.useNativeDriver) { + _this.__makeNative(); + } + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedValue, [{ + key: "__detach", + value: function __detach() { + var _this2 = this; + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.getValue(this.__getNativeTag(), function (value) { + _this2._value = value - _this2._offset; + }); + } + this.stopAnimation(); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValue.prototype), "__detach", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._value + this._offset; + } + + }, { + key: "setValue", + value: + function setValue(value) { + var _this3 = this; + if (this._animation) { + this._animation.stop(); + this._animation = null; + } + this._updateValue(value, !this.__isNative); + + if (this.__isNative) { + _executeAsAnimatedBatch(this.__getNativeTag().toString(), function () { + return _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeValue(_this3.__getNativeTag(), value); + }); + } + } + + }, { + key: "setOffset", + value: + function setOffset(offset) { + this._offset = offset; + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeOffset(this.__getNativeTag(), offset); + } + } + + }, { + key: "flattenOffset", + value: + function flattenOffset() { + this._value += this._offset; + this._offset = 0; + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.flattenAnimatedNodeOffset(this.__getNativeTag()); + } + } + + }, { + key: "extractOffset", + value: + function extractOffset() { + this._offset += this._value; + this._value = 0; + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.extractAnimatedNodeOffset(this.__getNativeTag()); + } + } + + }, { + key: "stopAnimation", + value: + function stopAnimation(callback) { + this.stopTracking(); + this._animation && this._animation.stop(); + this._animation = null; + if (callback) { + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.getValue(this.__getNativeTag(), callback); + } else { + callback(this.__getValue()); + } + } + } + + }, { + key: "resetAnimation", + value: + function resetAnimation(callback) { + this.stopAnimation(callback); + this._value = this._startingValue; + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeValue(this.__getNativeTag(), this._startingValue); + } + } + }, { + key: "__onAnimatedValueUpdateReceived", + value: function __onAnimatedValueUpdateReceived(value) { + this._updateValue(value, false); + } + + }, { + key: "interpolate", + value: + function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); + } + + }, { + key: "animate", + value: + function animate(animation, callback) { + var _this4 = this; + var handle = null; + if (animation.__isInteraction) { + handle = _$$_REQUIRE(_dependencyMap[8], "../../Interaction/InteractionManager").createInteractionHandle(); + } + var previousAnimation = this._animation; + this._animation && this._animation.stop(); + this._animation = animation; + animation.start(this._value, function (value) { + _this4._updateValue(value, true); + }, function (result) { + _this4._animation = null; + if (handle !== null) { + _$$_REQUIRE(_dependencyMap[8], "../../Interaction/InteractionManager").clearInteractionHandle(handle); + } + callback && callback(result); + }, previousAnimation, this); + } + + }, { + key: "stopTracking", + value: + function stopTracking() { + this._tracking && this._tracking.__detach(); + this._tracking = null; + } + + }, { + key: "track", + value: + function track(tracking) { + this.stopTracking(); + this._tracking = tracking; + this._tracking && this._tracking.update(); + } + }, { + key: "_updateValue", + value: function _updateValue(value, flush) { + if (value === undefined) { + throw new Error('AnimatedValue: Attempting to set value to undefined'); + } + this._value = value; + if (flush) { + _flush(this); + } + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValue.prototype), "__callListeners", this).call(this, this.__getValue()); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'value', + value: this._value, + offset: this._offset + }; + } + }]); + return AnimatedValue; + }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + module.exports = AnimatedValue; +},272,[46,47,273,50,12,13,115,276,279,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValue.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeAnimatedModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAnimatedModule")); + var _NativeAnimatedTurboModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeAnimatedTurboModule")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/Platform")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../ReactNative/ReactNativeFeatureFlags")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTDeviceEventEmitter")); + + var NativeAnimatedModule = _Platform.default.OS === 'ios' && global.RN$Bridgeless === true ? _NativeAnimatedTurboModule.default : _NativeAnimatedModule.default; + var __nativeAnimatedNodeTagCount = 1; + var __nativeAnimationIdCount = 1; + + var nativeEventEmitter; + var waitingForQueuedOperations = new Set(); + var queueOperations = false; + var queue = []; + var singleOpQueue = []; + var useSingleOpBatching = _Platform.default.OS === 'android' && !!(NativeAnimatedModule != null && NativeAnimatedModule.queueAndExecuteBatchedOperations) && _ReactNativeFeatureFlags.default.animatedShouldUseSingleOp(); + var flushQueueTimeout = null; + var eventListenerGetValueCallbacks = {}; + var eventListenerAnimationFinishedCallbacks = {}; + var globalEventEmitterGetValueListener = null; + var globalEventEmitterAnimationFinishedListener = null; + var nativeOps = useSingleOpBatching ? function () { + var apis = ['createAnimatedNode', + 'updateAnimatedNodeConfig', + 'getValue', + 'startListeningToAnimatedNodeValue', + 'stopListeningToAnimatedNodeValue', + 'connectAnimatedNodes', + 'disconnectAnimatedNodes', + 'startAnimatingNode', + 'stopAnimation', + 'setAnimatedNodeValue', + 'setAnimatedNodeOffset', + 'flattenAnimatedNodeOffset', + 'extractAnimatedNodeOffset', + 'connectAnimatedNodeToView', + 'disconnectAnimatedNodeFromView', + 'restoreDefaultValues', + 'dropAnimatedNode', + 'addAnimatedEventToView', + 'removeAnimatedEventFromView', + 'addListener', + 'removeListener']; + + return apis.reduce(function (acc, functionName, i) { + acc[functionName] = i + 1; + return acc; + }, {}); + }() : NativeAnimatedModule; + + var API = { + getValue: function getValue(tag, saveValueCallback) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (useSingleOpBatching) { + if (saveValueCallback) { + eventListenerGetValueCallbacks[tag] = saveValueCallback; + } + API.queueOperation(nativeOps.getValue, tag); + } else { + API.queueOperation(nativeOps.getValue, tag, saveValueCallback); + } + }, + setWaitingForIdentifier: function setWaitingForIdentifier(id) { + waitingForQueuedOperations.add(id); + queueOperations = true; + if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush() && flushQueueTimeout) { + clearTimeout(flushQueueTimeout); + } + }, + unsetWaitingForIdentifier: function unsetWaitingForIdentifier(id) { + waitingForQueuedOperations.delete(id); + if (waitingForQueuedOperations.size === 0) { + queueOperations = false; + API.disableQueue(); + } + }, + disableQueue: function disableQueue() { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush()) { + var prevTimeout = flushQueueTimeout; + clearImmediate(prevTimeout); + flushQueueTimeout = setImmediate(API.flushQueue); + } else { + API.flushQueue(); + } + }, + flushQueue: function flushQueue() { + (0, _invariant.default)(NativeAnimatedModule, 'Native animated module is not available'); + flushQueueTimeout = null; + + if (useSingleOpBatching && singleOpQueue.length === 0) { + return; + } + if (!useSingleOpBatching && queue.length === 0) { + return; + } + if (useSingleOpBatching) { + if (!globalEventEmitterGetValueListener || !globalEventEmitterAnimationFinishedListener) { + setupGlobalEventEmitterListeners(); + } + NativeAnimatedModule.queueAndExecuteBatchedOperations == null ? void 0 : NativeAnimatedModule.queueAndExecuteBatchedOperations(singleOpQueue); + singleOpQueue.length = 0; + } else { + _Platform.default.OS === 'android' && (NativeAnimatedModule.startOperationBatch == null ? void 0 : NativeAnimatedModule.startOperationBatch()); + for (var q = 0, l = queue.length; q < l; q++) { + queue[q](); + } + queue.length = 0; + _Platform.default.OS === 'android' && (NativeAnimatedModule.finishOperationBatch == null ? void 0 : NativeAnimatedModule.finishOperationBatch()); + } + }, + queueOperation: function queueOperation(fn) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + if (useSingleOpBatching) { + singleOpQueue.push.apply(singleOpQueue, [fn].concat(args)); + return; + } + + if (queueOperations || queue.length !== 0) { + queue.push(function () { + return fn.apply(void 0, args); + }); + } else { + fn.apply(void 0, args); + } + }, + createAnimatedNode: function createAnimatedNode(tag, config) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.createAnimatedNode, tag, config); + }, + updateAnimatedNodeConfig: function updateAnimatedNodeConfig(tag, config) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (nativeOps.updateAnimatedNodeConfig) { + API.queueOperation(nativeOps.updateAnimatedNodeConfig, tag, config); + } + }, + startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.startListeningToAnimatedNodeValue, tag); + }, + stopListeningToAnimatedNodeValue: function stopListeningToAnimatedNodeValue(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.stopListeningToAnimatedNodeValue, tag); + }, + connectAnimatedNodes: function connectAnimatedNodes(parentTag, childTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.connectAnimatedNodes, parentTag, childTag); + }, + disconnectAnimatedNodes: function disconnectAnimatedNodes(parentTag, childTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.disconnectAnimatedNodes, parentTag, childTag); + }, + startAnimatingNode: function startAnimatingNode(animationId, nodeTag, config, endCallback) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (useSingleOpBatching) { + if (endCallback) { + eventListenerAnimationFinishedCallbacks[animationId] = endCallback; + } + API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config); + } else { + API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config, endCallback); + } + }, + stopAnimation: function stopAnimation(animationId) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.stopAnimation, animationId); + }, + setAnimatedNodeValue: function setAnimatedNodeValue(nodeTag, value) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.setAnimatedNodeValue, nodeTag, value); + }, + setAnimatedNodeOffset: function setAnimatedNodeOffset(nodeTag, offset) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.setAnimatedNodeOffset, nodeTag, offset); + }, + flattenAnimatedNodeOffset: function flattenAnimatedNodeOffset(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.flattenAnimatedNodeOffset, nodeTag); + }, + extractAnimatedNodeOffset: function extractAnimatedNodeOffset(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.extractAnimatedNodeOffset, nodeTag); + }, + connectAnimatedNodeToView: function connectAnimatedNodeToView(nodeTag, viewTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.connectAnimatedNodeToView, nodeTag, viewTag); + }, + disconnectAnimatedNodeFromView: function disconnectAnimatedNodeFromView(nodeTag, viewTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.disconnectAnimatedNodeFromView, nodeTag, viewTag); + }, + restoreDefaultValues: function restoreDefaultValues(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (nativeOps.restoreDefaultValues != null) { + API.queueOperation(nativeOps.restoreDefaultValues, nodeTag); + } + }, + dropAnimatedNode: function dropAnimatedNode(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.dropAnimatedNode, tag); + }, + addAnimatedEventToView: function addAnimatedEventToView(viewTag, eventName, eventMapping) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.addAnimatedEventToView, viewTag, eventName, eventMapping); + }, + removeAnimatedEventFromView: function removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.removeAnimatedEventFromView, viewTag, eventName, animatedNodeTag); + } + }; + function setupGlobalEventEmitterListeners() { + globalEventEmitterGetValueListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleGetValue', function (params) { + var tag = params.tag; + var callback = eventListenerGetValueCallbacks[tag]; + if (!callback) { + return; + } + callback(params.value); + delete eventListenerGetValueCallbacks[tag]; + }); + globalEventEmitterAnimationFinishedListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleAnimationFinished', function (params) { + var animationId = params.animationId; + var callback = eventListenerAnimationFinishedCallbacks[animationId]; + if (!callback) { + return; + } + callback(params); + delete eventListenerAnimationFinishedCallbacks[animationId]; + }); + } + + var SUPPORTED_COLOR_STYLES = { + backgroundColor: true, + borderBottomColor: true, + borderColor: true, + borderEndColor: true, + borderLeftColor: true, + borderRightColor: true, + borderStartColor: true, + borderTopColor: true, + color: true, + tintColor: true + }; + var SUPPORTED_STYLES = Object.assign({}, SUPPORTED_COLOR_STYLES, { + borderBottomEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderRadius: true, + borderTopEndRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + elevation: true, + opacity: true, + transform: true, + zIndex: true, + shadowOpacity: true, + shadowRadius: true, + scaleX: true, + scaleY: true, + translateX: true, + translateY: true + }); + var SUPPORTED_TRANSFORMS = { + translateX: true, + translateY: true, + scale: true, + scaleX: true, + scaleY: true, + rotate: true, + rotateX: true, + rotateY: true, + rotateZ: true, + perspective: true + }; + var SUPPORTED_INTERPOLATION_PARAMS = { + inputRange: true, + outputRange: true, + extrapolate: true, + extrapolateRight: true, + extrapolateLeft: true + }; + function addWhitelistedStyleProp(prop) { + SUPPORTED_STYLES[prop] = true; + } + function addWhitelistedTransformProp(prop) { + SUPPORTED_TRANSFORMS[prop] = true; + } + function addWhitelistedInterpolationParam(param) { + SUPPORTED_INTERPOLATION_PARAMS[param] = true; + } + function isSupportedColorStyleProp(prop) { + return SUPPORTED_COLOR_STYLES.hasOwnProperty(prop); + } + function isSupportedStyleProp(prop) { + return SUPPORTED_STYLES.hasOwnProperty(prop); + } + function isSupportedTransformProp(prop) { + return SUPPORTED_TRANSFORMS.hasOwnProperty(prop); + } + function isSupportedInterpolationParam(param) { + return SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(param); + } + function validateTransform(configs) { + configs.forEach(function (config) { + if (!isSupportedTransformProp(config.property)) { + throw new Error("Property '" + config.property + "' is not supported by native animated module"); + } + }); + } + function validateStyles(styles) { + for (var _key2 in styles) { + if (!isSupportedStyleProp(_key2)) { + throw new Error("Style property '" + _key2 + "' is not supported by native animated module"); + } + } + } + function validateInterpolation(config) { + for (var _key3 in config) { + if (!isSupportedInterpolationParam(_key3)) { + throw new Error("Interpolation property '" + _key3 + "' is not supported by native animated module"); + } + } + } + function generateNewNodeTag() { + return __nativeAnimatedNodeTagCount++; + } + function generateNewAnimationId() { + return __nativeAnimationIdCount++; + } + function assertNativeAnimatedModule() { + (0, _invariant.default)(NativeAnimatedModule, 'Native animated module is not available'); + } + var _warnedMissingNativeAnimated = false; + function shouldUseNativeDriver(config) { + if (config.useNativeDriver == null) { + console.warn('Animated: `useNativeDriver` was not specified. This is a required ' + 'option and must be explicitly set to `true` or `false`'); + } + if (config.useNativeDriver === true && !NativeAnimatedModule) { + if (!_warnedMissingNativeAnimated) { + console.warn('Animated: `useNativeDriver` is not supported because the native ' + 'animated module is missing. Falling back to JS-based animation. To ' + 'resolve this, add `RCTAnimation` module to this app, or remove ' + '`useNativeDriver`. ' + 'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md'); + _warnedMissingNativeAnimated = true; + } + return false; + } + return config.useNativeDriver || false; + } + function transformDataType(value) { + if (typeof value !== 'string') { + return value; + } + if (/deg$/.test(value)) { + var degrees = parseFloat(value) || 0; + var radians = degrees * Math.PI / 180.0; + return radians; + } else { + return value; + } + } + module.exports = { + API: API, + isSupportedColorStyleProp: isSupportedColorStyleProp, + isSupportedStyleProp: isSupportedStyleProp, + isSupportedTransformProp: isSupportedTransformProp, + isSupportedInterpolationParam: isSupportedInterpolationParam, + addWhitelistedStyleProp: addWhitelistedStyleProp, + addWhitelistedTransformProp: addWhitelistedTransformProp, + addWhitelistedInterpolationParam: addWhitelistedInterpolationParam, + validateStyles: validateStyles, + validateTransform: validateTransform, + validateInterpolation: validateInterpolation, + generateNewNodeTag: generateNewNodeTag, + generateNewAnimationId: generateNewAnimationId, + assertNativeAnimatedModule: assertNativeAnimatedModule, + shouldUseNativeDriver: shouldUseNativeDriver, + transformDataType: transformDataType, + get nativeEventEmitter() { + if (!nativeEventEmitter) { + nativeEventEmitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : NativeAnimatedModule); + } + return nativeEventEmitter; + } + }; +},273,[3,274,275,134,14,263,17,4],"node_modules/react-native/Libraries/Animated/NativeAnimatedHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('NativeAnimatedModule'); + exports.default = _default; +},274,[16],"node_modules/react-native/Libraries/Animated/NativeAnimatedModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('NativeAnimatedTurboModule'); + exports.default = _default; +},275,[16],"node_modules/react-native/Libraries/Animated/NativeAnimatedTurboModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var linear = function linear(t) { + return t; + }; + + function createInterpolation(config) { + if (config.outputRange && typeof config.outputRange[0] === 'string') { + return createInterpolationFromStringOutputRange(config); + } + var outputRange = config.outputRange; + var inputRange = config.inputRange; + if (__DEV__) { + checkInfiniteRange('outputRange', outputRange); + checkInfiniteRange('inputRange', inputRange); + checkValidInputRange(inputRange); + _$$_REQUIRE(_dependencyMap[2], "invariant")(inputRange.length === outputRange.length, 'inputRange (' + inputRange.length + ') and outputRange (' + outputRange.length + ') must have the same length'); + } + var easing = config.easing || linear; + var extrapolateLeft = 'extend'; + if (config.extrapolateLeft !== undefined) { + extrapolateLeft = config.extrapolateLeft; + } else if (config.extrapolate !== undefined) { + extrapolateLeft = config.extrapolate; + } + var extrapolateRight = 'extend'; + if (config.extrapolateRight !== undefined) { + extrapolateRight = config.extrapolateRight; + } else if (config.extrapolate !== undefined) { + extrapolateRight = config.extrapolate; + } + return function (input) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof input === 'number', 'Cannot interpolation an input which is not a number'); + var range = findRange(input, inputRange); + return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight); + }; + } + function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) { + var result = input; + + if (result < inputMin) { + if (extrapolateLeft === 'identity') { + return result; + } else if (extrapolateLeft === 'clamp') { + result = inputMin; + } else if (extrapolateLeft === 'extend') { + } + } + if (result > inputMax) { + if (extrapolateRight === 'identity') { + return result; + } else if (extrapolateRight === 'clamp') { + result = inputMax; + } else if (extrapolateRight === 'extend') { + } + } + if (outputMin === outputMax) { + return outputMin; + } + if (inputMin === inputMax) { + if (input <= inputMin) { + return outputMin; + } + return outputMax; + } + + if (inputMin === -Infinity) { + result = -result; + } else if (inputMax === Infinity) { + result = result - inputMin; + } else { + result = (result - inputMin) / (inputMax - inputMin); + } + + result = easing(result); + + if (outputMin === -Infinity) { + result = -result; + } else if (outputMax === Infinity) { + result = result + outputMin; + } else { + result = result * (outputMax - outputMin) + outputMin; + } + return result; + } + function colorToRgba(input) { + var normalizedColor = _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/normalizeColor")(input); + if (normalizedColor === null || typeof normalizedColor !== 'number') { + return input; + } + normalizedColor = normalizedColor || 0; + var r = (normalizedColor & 0xff000000) >>> 24; + var g = (normalizedColor & 0x00ff0000) >>> 16; + var b = (normalizedColor & 0x0000ff00) >>> 8; + var a = (normalizedColor & 0x000000ff) / 255; + return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")"; + } + var stringShapeRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g; + + function createInterpolationFromStringOutputRange(config) { + var outputRange = config.outputRange; + _$$_REQUIRE(_dependencyMap[2], "invariant")(outputRange.length >= 2, 'Bad output range'); + outputRange = outputRange.map(colorToRgba); + checkPattern(outputRange); + + var outputRanges = outputRange[0].match(stringShapeRegex).map(function () { + return []; + }); + outputRange.forEach(function (value) { + value.match(stringShapeRegex).forEach(function (number, i) { + outputRanges[i].push(+number); + }); + }); + var interpolations = outputRange[0].match(stringShapeRegex) + .map(function (value, i) { + return createInterpolation(Object.assign({}, config, { + outputRange: outputRanges[i] + })); + }); + + var shouldRound = isRgbOrRgba(outputRange[0]); + return function (input) { + var i = 0; + return outputRange[0].replace(stringShapeRegex, function () { + var val = +interpolations[i++](input); + if (shouldRound) { + val = i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000; + } + return String(val); + }); + }; + } + function isRgbOrRgba(range) { + return typeof range === 'string' && range.startsWith('rgb'); + } + function checkPattern(arr) { + var pattern = arr[0].replace(stringShapeRegex, ''); + for (var i = 1; i < arr.length; ++i) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(pattern === arr[i].replace(stringShapeRegex, ''), 'invalid pattern ' + arr[0] + ' and ' + arr[i]); + } + } + function findRange(input, inputRange) { + var i; + for (i = 1; i < inputRange.length - 1; ++i) { + if (inputRange[i] >= input) { + break; + } + } + return i - 1; + } + function checkValidInputRange(arr) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length >= 2, 'inputRange must have at least 2 elements'); + var message = 'inputRange must be monotonically non-decreasing ' + String(arr); + for (var i = 1; i < arr.length; ++i) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(arr[i] >= arr[i - 1], message); + } + } + function checkInfiniteRange(name, arr) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length >= 2, name + ' must have at least 2 elements'); + _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, + name + 'cannot be ]-infinity;+infinity[ ' + arr); + } + var AnimatedInterpolation = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")(AnimatedInterpolation, _AnimatedWithChildren); + var _super = _createSuper(AnimatedInterpolation); + + function AnimatedInterpolation(parent, config) { + var _this; + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/classCallCheck")(this, AnimatedInterpolation); + _this = _super.call(this); + _this._parent = parent; + _this._config = config; + _this._interpolation = createInterpolation(config); + return _this; + } + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedInterpolation, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._parent.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedInterpolation.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + var parentValue = this._parent.__getValue(); + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.'); + return this._interpolation(parentValue); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedInterpolation.prototype), "__detach", this).call(this); + } + }, { + key: "__transformDataType", + value: function __transformDataType(range) { + return range.map(_$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").transformDataType); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").validateInterpolation(this._config); + } + return { + inputRange: this._config.inputRange, + outputRange: this.__transformDataType(this._config.outputRange), + extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', + extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || 'extend', + type: 'interpolation' + }; + } + }]); + return AnimatedInterpolation; + }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + AnimatedInterpolation.__createInterpolation = createInterpolation; + module.exports = AnimatedInterpolation; +},276,[46,47,17,160,50,12,13,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedWithChildren = function (_AnimatedNode) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedWithChildren, _AnimatedNode); + var _super = _createSuper(AnimatedWithChildren); + function AnimatedWithChildren() { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedWithChildren); + _this = _super.call(this); + _this._children = []; + return _this; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedWithChildren, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + if (!this.__isNative) { + this.__isNative = true; + for (var child of this._children) { + child.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + } + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedWithChildren.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__addChild", + value: function __addChild(child) { + if (this._children.length === 0) { + this.__attach(); + } + this._children.push(child); + if (this.__isNative) { + child.__makeNative(this.__getPlatformConfig()); + _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + } + }, { + key: "__removeChild", + value: function __removeChild(child) { + var index = this._children.indexOf(child); + if (index === -1) { + console.warn("Trying to remove a child that doesn't exist"); + return; + } + if (this.__isNative && child.__isNative) { + _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + this._children.splice(index, 1); + if (this._children.length === 0) { + this.__detach(); + } + } + }, { + key: "__getChildren", + value: function __getChildren() { + return this._children; + } + }, { + key: "__callListeners", + value: function __callListeners(value) { + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedWithChildren.prototype), "__callListeners", this).call(this, value); + if (!this.__isNative) { + for (var child of this._children) { + if (child.__getValue) { + child.__callListeners(child.__getValue()); + } + } + } + } + }]); + return AnimatedWithChildren; + }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")); + module.exports = AnimatedWithChildren; +},277,[46,47,50,12,13,273,115,278],"node_modules/react-native/Libraries/Animated/nodes/AnimatedWithChildren.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _uniqueId = 1; + + var AnimatedNode = function () { + function AnimatedNode() { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, AnimatedNode); + this._listeners = {}; + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(AnimatedNode, [{ + key: "__attach", + value: function __attach() {} + }, { + key: "__detach", + value: function __detach() { + if (this.__isNative && this.__nativeTag != null) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.dropAnimatedNode(this.__nativeTag); + this.__nativeTag = undefined; + } + } + }, { + key: "__getValue", + value: function __getValue() {} + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this.__getValue(); + } + }, { + key: "__addChild", + value: function __addChild(child) {} + }, { + key: "__removeChild", + value: function __removeChild(child) {} + }, { + key: "__getChildren", + value: function __getChildren() { + return []; + } + + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + if (!this.__isNative) { + throw new Error('This node cannot be made a "native" animated node'); + } + this._platformConfig = platformConfig; + if (this.hasListeners()) { + this._startListeningToNativeValueUpdates(); + } + } + + }, { + key: "addListener", + value: + function addListener(callback) { + var id = String(_uniqueId++); + this._listeners[id] = callback; + if (this.__isNative) { + this._startListeningToNativeValueUpdates(); + } + return id; + } + + }, { + key: "removeListener", + value: + function removeListener(id) { + delete this._listeners[id]; + if (this.__isNative && !this.hasListeners()) { + this._stopListeningForNativeValueUpdates(); + } + } + + }, { + key: "removeAllListeners", + value: + function removeAllListeners() { + this._listeners = {}; + if (this.__isNative) { + this._stopListeningForNativeValueUpdates(); + } + } + }, { + key: "hasListeners", + value: function hasListeners() { + return !!Object.keys(this._listeners).length; + } + }, { + key: "_startListeningToNativeValueUpdates", + value: function _startListeningToNativeValueUpdates() { + var _this = this; + if (this.__nativeAnimatedValueListener && !this.__shouldUpdateListenersForNewNativeTag) { + return; + } + if (this.__shouldUpdateListenersForNewNativeTag) { + this.__shouldUpdateListenersForNewNativeTag = false; + this._stopListeningForNativeValueUpdates(); + } + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.startListeningToAnimatedNodeValue(this.__getNativeTag()); + this.__nativeAnimatedValueListener = _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").nativeEventEmitter.addListener('onAnimatedValueUpdate', function (data) { + if (data.tag !== _this.__getNativeTag()) { + return; + } + _this.__onAnimatedValueUpdateReceived(data.value); + }); + } + }, { + key: "__onAnimatedValueUpdateReceived", + value: function __onAnimatedValueUpdateReceived(value) { + this.__callListeners(value); + } + }, { + key: "__callListeners", + value: function __callListeners(value) { + for (var _key in this._listeners) { + this._listeners[_key]({ + value: value + }); + } + } + }, { + key: "_stopListeningForNativeValueUpdates", + value: function _stopListeningForNativeValueUpdates() { + if (!this.__nativeAnimatedValueListener) { + return; + } + this.__nativeAnimatedValueListener.remove(); + this.__nativeAnimatedValueListener = null; + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.stopListeningToAnimatedNodeValue(this.__getNativeTag()); + } + }, { + key: "__getNativeTag", + value: function __getNativeTag() { + var _this$__nativeTag; + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").assertNativeAnimatedModule(); + _$$_REQUIRE(_dependencyMap[3], "invariant")(this.__isNative, 'Attempt to get native tag from node not marked as "native"'); + var nativeTag = (_this$__nativeTag = this.__nativeTag) != null ? _this$__nativeTag : _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").generateNewNodeTag(); + if (this.__nativeTag == null) { + this.__nativeTag = nativeTag; + var config = this.__getNativeConfig(); + if (this._platformConfig) { + config.platformConfig = this._platformConfig; + } + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.createAnimatedNode(nativeTag, config); + this.__shouldUpdateListenersForNewNativeTag = true; + } + return nativeTag; + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + throw new Error('This JS animated node type cannot be used as native animated node'); + } + }, { + key: "toJSON", + value: function toJSON() { + return this.__getValue(); + } + }, { + key: "__getPlatformConfig", + value: function __getPlatformConfig() { + return this._platformConfig; + } + }, { + key: "__setPlatformConfig", + value: function __setPlatformConfig(platformConfig) { + this._platformConfig = platformConfig; + } + }]); + return AnimatedNode; + }(); + module.exports = AnimatedNode; +},278,[12,13,273,17],"node_modules/react-native/Libraries/Animated/nodes/AnimatedNode.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + var _emitter = new _EventEmitter.default(); + var DEBUG_DELAY = 0; + var DEBUG = false; + + var InteractionManager = { + Events: { + interactionStart: 'interactionStart', + interactionComplete: 'interactionComplete' + }, + runAfterInteractions: function runAfterInteractions(task) { + var tasks = []; + var promise = new Promise(function (resolve) { + _scheduleUpdate(); + if (task) { + tasks.push(task); + } + tasks.push({ + run: resolve, + name: 'resolve ' + (task && task.name || '?') + }); + _taskQueue.enqueueTasks(tasks); + }); + return { + then: promise.then.bind(promise), + cancel: function cancel() { + _taskQueue.cancelTasks(tasks); + } + }; + }, + createInteractionHandle: function createInteractionHandle() { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: create interaction handle'); + _scheduleUpdate(); + var handle = ++_inc; + _addInteractionSet.add(handle); + return handle; + }, + clearInteractionHandle: function clearInteractionHandle(handle) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: clear interaction handle'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(!!handle, 'InteractionManager: Must provide a handle to clear.'); + _scheduleUpdate(); + _addInteractionSet.delete(handle); + _deleteInteractionSet.add(handle); + }, + addListener: _emitter.addListener.bind(_emitter), + setDeadline: function setDeadline(deadline) { + _deadline = deadline; + } + }; + var _interactionSet = new Set(); + var _addInteractionSet = new Set(); + var _deleteInteractionSet = new Set(); + var _taskQueue = new (_$$_REQUIRE(_dependencyMap[4], "./TaskQueue"))({ + onMoreTasks: _scheduleUpdate + }); + var _nextUpdateHandle = 0; + var _inc = 0; + var _deadline = -1; + + function _scheduleUpdate() { + if (!_nextUpdateHandle) { + if (_deadline > 0) { + _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY); + } else { + _nextUpdateHandle = setImmediate(_processUpdate); + } + } + } + + function _processUpdate() { + _nextUpdateHandle = 0; + var interactionCount = _interactionSet.size; + _addInteractionSet.forEach(function (handle) { + return _interactionSet.add(handle); + }); + _deleteInteractionSet.forEach(function (handle) { + return _interactionSet.delete(handle); + }); + var nextInteractionCount = _interactionSet.size; + if (interactionCount !== 0 && nextInteractionCount === 0) { + _emitter.emit(InteractionManager.Events.interactionComplete); + } else if (interactionCount === 0 && nextInteractionCount !== 0) { + _emitter.emit(InteractionManager.Events.interactionStart); + } + + if (nextInteractionCount === 0) { + while (_taskQueue.hasTasksToProcess()) { + _taskQueue.processNext(); + if (_deadline > 0 && _$$_REQUIRE(_dependencyMap[5], "../BatchedBridge/BatchedBridge").getEventLoopRunningTime() >= _deadline) { + _scheduleUpdate(); + break; + } + } + } + _addInteractionSet.clear(); + _deleteInteractionSet.clear(); + } + module.exports = InteractionManager; +},279,[3,5,124,17,280,23],"node_modules/react-native/Libraries/Interaction/InteractionManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var DEBUG = false; + + var TaskQueue = function () { + function TaskQueue(_ref) { + var onMoreTasks = _ref.onMoreTasks; + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, TaskQueue); + this._onMoreTasks = onMoreTasks; + this._queueStack = [{ + tasks: [], + popable: false + }]; + } + + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(TaskQueue, [{ + key: "enqueue", + value: + function enqueue(task) { + this._getCurrentQueue().push(task); + } + }, { + key: "enqueueTasks", + value: function enqueueTasks(tasks) { + var _this = this; + tasks.forEach(function (task) { + return _this.enqueue(task); + }); + } + }, { + key: "cancelTasks", + value: function cancelTasks(tasksToCancel) { + this._queueStack = this._queueStack.map(function (queue) { + return Object.assign({}, queue, { + tasks: queue.tasks.filter(function (task) { + return tasksToCancel.indexOf(task) === -1; + }) + }); + }).filter(function (queue, idx) { + return queue.tasks.length > 0 || idx === 0; + }); + } + + }, { + key: "hasTasksToProcess", + value: + function hasTasksToProcess() { + return this._getCurrentQueue().length > 0; + } + + }, { + key: "processNext", + value: + function processNext() { + var queue = this._getCurrentQueue(); + if (queue.length) { + var task = queue.shift(); + try { + if (typeof task === 'object' && task.gen) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: genPromise for task ' + task.name); + this._genPromise(task); + } else if (typeof task === 'object' && task.run) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run task ' + task.name); + task.run(); + } else { + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof task === 'function', 'Expected Function, SimpleTask, or PromiseTask, but got:\n' + JSON.stringify(task, null, 2)); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run anonymous task'); + task(); + } + } catch (e) { + e.message = 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message; + throw e; + } + } + } + }, { + key: "_getCurrentQueue", + value: function _getCurrentQueue() { + var stackIdx = this._queueStack.length - 1; + var queue = this._queueStack[stackIdx]; + if (queue.popable && queue.tasks.length === 0 && this._queueStack.length > 1) { + this._queueStack.pop(); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: popped queue: ', { + stackIdx: stackIdx, + queueStackSize: this._queueStack.length + }); + return this._getCurrentQueue(); + } else { + return queue.tasks; + } + } + }, { + key: "_genPromise", + value: function _genPromise(task) { + var _this2 = this; + this._queueStack.push({ + tasks: [], + popable: false + }); + var stackIdx = this._queueStack.length - 1; + var stackItem = this._queueStack[stackIdx]; + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: push new queue: ', { + stackIdx: stackIdx + }); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: exec gen task ' + task.name); + task.gen().then(function () { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: onThen for gen task ' + task.name, { + stackIdx: stackIdx, + queueStackSize: _this2._queueStack.length + }); + stackItem.popable = true; + _this2.hasTasksToProcess() && _this2._onMoreTasks(); + }).catch(function (ex) { + setTimeout(function () { + ex.message = "TaskQueue: Error resolving Promise in task " + task.name + ": " + ex.message; + throw ex; + }, 0); + }); + } + }]); + return TaskQueue; + }(); + module.exports = TaskQueue; +},280,[12,13,124,17],"node_modules/react-native/Libraries/Interaction/TaskQueue.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _uniqueId = 1; + + var AnimatedValueXY = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedValueXY, _AnimatedWithChildren); + var _super = _createSuper(AnimatedValueXY); + function AnimatedValueXY(valueIn, config) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedValueXY); + _this = _super.call(this); + var value = valueIn || { + x: 0, + y: 0 + }; + if (typeof value.x === 'number' && typeof value.y === 'number') { + _this.x = new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(value.x); + _this.y = new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(value.y); + } else { + _$$_REQUIRE(_dependencyMap[5], "invariant")(value.x instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedValue") && value.y instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"), 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.'); + _this.x = value.x; + _this.y = value.y; + } + _this._listeners = {}; + if (config && config.useNativeDriver) { + _this.__makeNative(); + } + return _this; + } + + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedValueXY, [{ + key: "setValue", + value: + function setValue(value) { + this.x.setValue(value.x); + this.y.setValue(value.y); + } + + }, { + key: "setOffset", + value: + function setOffset(offset) { + this.x.setOffset(offset.x); + this.y.setOffset(offset.y); + } + + }, { + key: "flattenOffset", + value: + function flattenOffset() { + this.x.flattenOffset(); + this.y.flattenOffset(); + } + + }, { + key: "extractOffset", + value: + function extractOffset() { + this.x.extractOffset(); + this.y.extractOffset(); + } + }, { + key: "__getValue", + value: function __getValue() { + return { + x: this.x.__getValue(), + y: this.y.__getValue() + }; + } + + }, { + key: "resetAnimation", + value: + function resetAnimation(callback) { + this.x.resetAnimation(); + this.y.resetAnimation(); + callback && callback(this.__getValue()); + } + + }, { + key: "stopAnimation", + value: + function stopAnimation(callback) { + this.x.stopAnimation(); + this.y.stopAnimation(); + callback && callback(this.__getValue()); + } + + }, { + key: "addListener", + value: + function addListener(callback) { + var _this2 = this; + var id = String(_uniqueId++); + var jointCallback = function jointCallback(_ref) { + var number = _ref.value; + callback(_this2.__getValue()); + }; + this._listeners[id] = { + x: this.x.addListener(jointCallback), + y: this.y.addListener(jointCallback) + }; + return id; + } + + }, { + key: "removeListener", + value: + function removeListener(id) { + this.x.removeListener(this._listeners[id].x); + this.y.removeListener(this._listeners[id].y); + delete this._listeners[id]; + } + + }, { + key: "removeAllListeners", + value: + function removeAllListeners() { + this.x.removeAllListeners(); + this.y.removeAllListeners(); + this._listeners = {}; + } + + }, { + key: "getLayout", + value: + function getLayout() { + return { + left: this.x, + top: this.y + }; + } + + }, { + key: "getTranslateTransform", + value: + function getTranslateTransform() { + return [{ + translateX: this.x + }, { + translateY: this.y + }]; + } + }, { + key: "__attach", + value: function __attach() { + this.x.__addChild(this); + this.y.__addChild(this); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__attach", this).call(this); + } + }, { + key: "__detach", + value: function __detach() { + this.x.__removeChild(this); + this.y.__removeChild(this); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__detach", this).call(this); + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.x.__makeNative(platformConfig); + this.y.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__makeNative", this).call(this, platformConfig); + } + }]); + return AnimatedValueXY; + }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + module.exports = AnimatedValueXY; +},281,[46,47,50,12,272,17,13,115,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValueXY.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedColor")); + var add = function add(a, b) { + return new (_$$_REQUIRE(_dependencyMap[2], "./nodes/AnimatedAddition"))(a, b); + }; + var subtract = function subtract(a, b) { + return new (_$$_REQUIRE(_dependencyMap[3], "./nodes/AnimatedSubtraction"))(a, b); + }; + var divide = function divide(a, b) { + return new (_$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedDivision"))(a, b); + }; + var multiply = function multiply(a, b) { + return new (_$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedMultiplication"))(a, b); + }; + var modulo = function modulo(a, modulus) { + return new (_$$_REQUIRE(_dependencyMap[6], "./nodes/AnimatedModulo"))(a, modulus); + }; + var diffClamp = function diffClamp(a, min, max) { + return new (_$$_REQUIRE(_dependencyMap[7], "./nodes/AnimatedDiffClamp"))(a, min, max); + }; + var _combineCallbacks = function _combineCallbacks(callback, config) { + if (callback && config.onComplete) { + return function () { + config.onComplete && config.onComplete.apply(config, arguments); + callback && callback.apply(void 0, arguments); + }; + } else { + return callback || config.onComplete; + } + }; + var maybeVectorAnim = function maybeVectorAnim(value, config, anim) { + if (value instanceof _$$_REQUIRE(_dependencyMap[8], "./nodes/AnimatedValueXY")) { + var configX = Object.assign({}, config); + var configY = Object.assign({}, config); + for (var key in config) { + var _config$key = config[key], + x = _config$key.x, + y = _config$key.y; + if (x !== undefined && y !== undefined) { + configX[key] = x; + configY[key] = y; + } + } + var aX = anim(value.x, configX); + var aY = anim(value.y, configY); + return parallel([aX, aY], { + stopTogether: false + }); + } else if (value instanceof _AnimatedColor.default) { + var configR = Object.assign({}, config); + var configG = Object.assign({}, config); + var configB = Object.assign({}, config); + var configA = Object.assign({}, config); + for (var _key in config) { + var _config$_key = config[_key], + r = _config$_key.r, + g = _config$_key.g, + b = _config$_key.b, + a = _config$_key.a; + if (r !== undefined && g !== undefined && b !== undefined && a !== undefined) { + configR[_key] = r; + configG[_key] = g; + configB[_key] = b; + configA[_key] = a; + } + } + var aR = anim(value.r, configR); + var aG = anim(value.g, configG); + var aB = anim(value.b, configB); + var aA = anim(value.a, configA); + return parallel([aR, aG, aB, aA], { + stopTogether: false + }); + } + return null; + }; + var spring = function spring(value, config) { + var _start = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + if (configuration.toValue instanceof _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode")) { + singleValue.track(new (_$$_REQUIRE(_dependencyMap[10], "./nodes/AnimatedTracking"))(singleValue, configuration.toValue, _$$_REQUIRE(_dependencyMap[11], "./animations/SpringAnimation"), singleConfig, callback)); + } else { + singleValue.animate(new (_$$_REQUIRE(_dependencyMap[11], "./animations/SpringAnimation"))(singleConfig), callback); + } + }; + return maybeVectorAnim(value, config, spring) || { + start: function start(callback) { + _start(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var timing = function timing(value, config) { + var _start2 = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + if (configuration.toValue instanceof _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode")) { + singleValue.track(new (_$$_REQUIRE(_dependencyMap[10], "./nodes/AnimatedTracking"))(singleValue, configuration.toValue, _$$_REQUIRE(_dependencyMap[12], "./animations/TimingAnimation"), singleConfig, callback)); + } else { + singleValue.animate(new (_$$_REQUIRE(_dependencyMap[12], "./animations/TimingAnimation"))(singleConfig), callback); + } + }; + return maybeVectorAnim(value, config, timing) || { + start: function start(callback) { + _start2(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start2(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var decay = function decay(value, config) { + var _start3 = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + singleValue.animate(new (_$$_REQUIRE(_dependencyMap[13], "./animations/DecayAnimation"))(singleConfig), callback); + }; + return maybeVectorAnim(value, config, decay) || { + start: function start(callback) { + _start3(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start3(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var sequence = function sequence(animations) { + var current = 0; + return { + start: function start(callback) { + var onComplete = function onComplete(result) { + if (!result.finished) { + callback && callback(result); + return; + } + current++; + if (current === animations.length) { + callback && callback(result); + return; + } + animations[current].start(onComplete); + }; + if (animations.length === 0) { + callback && callback({ + finished: true + }); + } else { + animations[current].start(onComplete); + } + }, + stop: function stop() { + if (current < animations.length) { + animations[current].stop(); + } + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + if (idx <= current) { + animation.reset(); + } + }); + current = 0; + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.sequence animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + }; + var parallel = function parallel(animations, config) { + var doneCount = 0; + var hasEnded = {}; + var stopTogether = !(config && config.stopTogether === false); + var result = { + start: function start(callback) { + if (doneCount === animations.length) { + callback && callback({ + finished: true + }); + return; + } + animations.forEach(function (animation, idx) { + var cb = function cb(endResult) { + hasEnded[idx] = true; + doneCount++; + if (doneCount === animations.length) { + doneCount = 0; + callback && callback(endResult); + return; + } + if (!endResult.finished && stopTogether) { + result.stop(); + } + }; + if (!animation) { + cb({ + finished: true + }); + } else { + animation.start(cb); + } + }); + }, + stop: function stop() { + animations.forEach(function (animation, idx) { + !hasEnded[idx] && animation.stop(); + hasEnded[idx] = true; + }); + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + animation.reset(); + hasEnded[idx] = false; + doneCount = 0; + }); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.parallel animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + return result; + }; + var delay = function delay(time) { + return timing(new (_$$_REQUIRE(_dependencyMap[14], "./nodes/AnimatedValue"))(0), { + toValue: 0, + delay: time, + duration: 0, + useNativeDriver: false + }); + }; + var stagger = function stagger(time, animations) { + return parallel(animations.map(function (animation, i) { + return sequence([delay(time * i), animation]); + })); + }; + var loop = function loop(animation) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$iterations = _ref.iterations, + iterations = _ref$iterations === void 0 ? -1 : _ref$iterations, + _ref$resetBeforeItera = _ref.resetBeforeIteration, + resetBeforeIteration = _ref$resetBeforeItera === void 0 ? true : _ref$resetBeforeItera; + var isFinished = false; + var iterationsSoFar = 0; + return { + start: function start(callback) { + var restart = function restart() { + var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + finished: true + }; + if (isFinished || iterationsSoFar === iterations || result.finished === false) { + callback && callback(result); + } else { + iterationsSoFar++; + resetBeforeIteration && animation.reset(); + animation.start(restart); + } + }; + if (!animation || iterations === 0) { + callback && callback({ + finished: true + }); + } else { + if (animation._isUsingNativeDriver()) { + animation._startNativeLoop(iterations); + } else { + restart(); + } + } + }, + + stop: function stop() { + isFinished = true; + animation.stop(); + }, + reset: function reset() { + iterationsSoFar = 0; + isFinished = false; + animation.reset(); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.loop animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return animation._isUsingNativeDriver(); + } + }; + }; + function forkEvent(event, listener) { + if (!event) { + return listener; + } else if (event instanceof _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent) { + event.__addListener(listener); + return event; + } else { + return function () { + typeof event === 'function' && event.apply(void 0, arguments); + listener.apply(void 0, arguments); + }; + } + } + function unforkEvent(event, listener) { + if (event && event instanceof _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent) { + event.__removeListener(listener); + } + } + var event = function event(argMapping, config) { + var animatedEvent = new (_$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent)(argMapping, config); + if (animatedEvent.__isNative) { + return animatedEvent; + } else { + return animatedEvent.__getHandler(); + } + }; + + module.exports = { + Value: _$$_REQUIRE(_dependencyMap[14], "./nodes/AnimatedValue"), + ValueXY: _$$_REQUIRE(_dependencyMap[8], "./nodes/AnimatedValueXY"), + Color: _AnimatedColor.default, + Interpolation: _$$_REQUIRE(_dependencyMap[16], "./nodes/AnimatedInterpolation"), + Node: _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode"), + decay: decay, + timing: timing, + spring: spring, + add: add, + subtract: subtract, + divide: divide, + multiply: multiply, + modulo: modulo, + diffClamp: diffClamp, + delay: delay, + sequence: sequence, + parallel: parallel, + stagger: stagger, + loop: loop, + event: event, + createAnimatedComponent: _$$_REQUIRE(_dependencyMap[17], "./createAnimatedComponent"), + attachNativeEvent: _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").attachNativeEvent, + forkEvent: forkEvent, + unforkEvent: unforkEvent, + Event: _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent + }; +},282,[3,271,283,284,285,286,287,288,281,278,289,290,293,296,272,297,276,298],"node_modules/react-native/Libraries/Animated/AnimatedImplementation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedAddition = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedAddition, _AnimatedWithChildren); + var _super = _createSuper(AnimatedAddition); + function AnimatedAddition(a, b) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedAddition); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; + _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedAddition, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedAddition.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() + this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedAddition.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'addition', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedAddition; + }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + module.exports = AnimatedAddition; +},283,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedAddition.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedSubtraction = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedSubtraction, _AnimatedWithChildren); + var _super = _createSuper(AnimatedSubtraction); + function AnimatedSubtraction(a, b) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedSubtraction); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; + _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedSubtraction, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedSubtraction.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() - this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedSubtraction.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'subtraction', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedSubtraction; + }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + module.exports = AnimatedSubtraction; +},284,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedSubtraction.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedDivision = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedDivision, _AnimatedWithChildren); + var _super = _createSuper(AnimatedDivision); + function AnimatedDivision(a, b) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedDivision); + _this = _super.call(this); + _this._warnedAboutDivideByZero = false; + if (b === 0 || b instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedNode") && b.__getValue() === 0) { + console.error('Detected potential division by zero in AnimatedDivision'); + } + _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedValue"))(a) : a; + _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedValue"))(b) : b; + return _this; + } + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedDivision, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDivision.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + var a = this._a.__getValue(); + var b = this._b.__getValue(); + if (b === 0) { + if (!this._warnedAboutDivideByZero) { + console.error('Detected division by zero in AnimatedDivision'); + this._warnedAboutDivideByZero = true; + } + return 0; + } + this._warnedAboutDivideByZero = false; + return a / b; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[8], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDivision.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'division', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedDivision; + }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + module.exports = AnimatedDivision; +},285,[46,47,50,12,278,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDivision.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedMultiplication = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedMultiplication, _AnimatedWithChildren); + var _super = _createSuper(AnimatedMultiplication); + function AnimatedMultiplication(a, b) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedMultiplication); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; + _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedMultiplication, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedMultiplication.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() * this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedMultiplication.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'multiplication', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedMultiplication; + }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + module.exports = AnimatedMultiplication; +},286,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedMultiplication.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedModulo = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedModulo, _AnimatedWithChildren); + var _super = _createSuper(AnimatedModulo); + function AnimatedModulo(a, modulus) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedModulo); + _this = _super.call(this); + _this._a = a; + _this._modulus = modulus; + return _this; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedModulo, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedModulo.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[6], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedModulo.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'modulus', + input: this._a.__getNativeTag(), + modulus: this._modulus + }; + } + }]); + return AnimatedModulo; + }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedWithChildren")); + module.exports = AnimatedModulo; +},287,[46,47,50,12,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedModulo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedDiffClamp = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedDiffClamp, _AnimatedWithChildren); + var _super = _createSuper(AnimatedDiffClamp); + function AnimatedDiffClamp(a, min, max) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedDiffClamp); + _this = _super.call(this); + _this._a = a; + _this._min = min; + _this._max = max; + _this._value = _this._lastValue = _this._a.__getValue(); + return _this; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedDiffClamp, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDiffClamp.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new (_$$_REQUIRE(_dependencyMap[6], "./AnimatedInterpolation"))(this, config); + } + }, { + key: "__getValue", + value: function __getValue() { + var value = this._a.__getValue(); + var diff = value - this._lastValue; + this._lastValue = value; + this._value = Math.min(Math.max(this._value + diff, this._min), this._max); + return this._value; + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDiffClamp.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'diffclamp', + input: this._a.__getNativeTag(), + min: this._min, + max: this._max + }; + } + }]); + return AnimatedDiffClamp; + }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedWithChildren")); + module.exports = AnimatedDiffClamp; +},288,[46,47,50,12,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDiffClamp.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedTracking = function (_AnimatedNode) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedTracking, _AnimatedNode); + var _super = _createSuper(AnimatedTracking); + function AnimatedTracking(value, parent, animationClass, animationConfig, callback) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedTracking); + _this = _super.call(this); + _this._value = value; + _this._parent = parent; + _this._animationClass = animationClass; + _this._animationConfig = animationConfig; + _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").shouldUseNativeDriver(animationConfig); + _this._callback = callback; + _this.__attach(); + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedTracking, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.__isNative = true; + this._parent.__makeNative(platformConfig); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTracking.prototype), "__makeNative", this).call(this, platformConfig); + this._value.__makeNative(platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._parent.__getValue(); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + if (this._useNativeDriver) { + var platformConfig = this._animationConfig.platformConfig; + this.__makeNative(platformConfig); + } + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTracking.prototype), "__detach", this).call(this); + } + }, { + key: "update", + value: function update() { + this._value.animate(new this._animationClass(Object.assign({}, this._animationConfig, { + toValue: this._animationConfig.toValue.__getValue() + })), this._callback); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var animation = new this._animationClass(Object.assign({}, this._animationConfig, { + toValue: undefined + })); + var animationConfig = animation.__getNativeAnimationConfig(); + return { + type: 'tracking', + animationId: _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").generateNewAnimationId(), + animationConfig: animationConfig, + toValue: this._parent.__getNativeTag(), + value: this._value.__getNativeTag() + }; + } + }]); + return AnimatedTracking; + }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")); + module.exports = AnimatedTracking; +},289,[46,47,50,12,273,13,115,278],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTracking.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../nodes/AnimatedColor")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SpringAnimation = function (_Animation) { + (0, _inherits2.default)(SpringAnimation, _Animation); + var _super = _createSuper(SpringAnimation); + function SpringAnimation(config) { + var _config$overshootClam, _config$restDisplacem, _config$restSpeedThre, _config$velocity, _config$velocity2, _config$delay, _config$isInteraction, _config$iterations; + var _this; + (0, _classCallCheck2.default)(this, SpringAnimation); + _this = _super.call(this); + _this._overshootClamping = (_config$overshootClam = config.overshootClamping) != null ? _config$overshootClam : false; + _this._restDisplacementThreshold = (_config$restDisplacem = config.restDisplacementThreshold) != null ? _config$restDisplacem : 0.001; + _this._restSpeedThreshold = (_config$restSpeedThre = config.restSpeedThreshold) != null ? _config$restSpeedThre : 0.001; + _this._initialVelocity = (_config$velocity = config.velocity) != null ? _config$velocity : 0; + _this._lastVelocity = (_config$velocity2 = config.velocity) != null ? _config$velocity2 : 0; + _this._toValue = config.toValue; + _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; + _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + if (config.stiffness !== undefined || config.damping !== undefined || config.mass !== undefined) { + var _config$stiffness, _config$damping, _config$mass; + _$$_REQUIRE(_dependencyMap[9], "invariant")(config.bounciness === undefined && config.speed === undefined && config.tension === undefined && config.friction === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + _this._stiffness = (_config$stiffness = config.stiffness) != null ? _config$stiffness : 100; + _this._damping = (_config$damping = config.damping) != null ? _config$damping : 10; + _this._mass = (_config$mass = config.mass) != null ? _config$mass : 1; + } else if (config.bounciness !== undefined || config.speed !== undefined) { + var _config$bounciness, _config$speed; + _$$_REQUIRE(_dependencyMap[9], "invariant")(config.tension === undefined && config.friction === undefined && config.stiffness === undefined && config.damping === undefined && config.mass === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + var springConfig = _$$_REQUIRE(_dependencyMap[10], "../SpringConfig").fromBouncinessAndSpeed((_config$bounciness = config.bounciness) != null ? _config$bounciness : 8, (_config$speed = config.speed) != null ? _config$speed : 12); + _this._stiffness = springConfig.stiffness; + _this._damping = springConfig.damping; + _this._mass = 1; + } else { + var _config$tension, _config$friction; + var _springConfig = _$$_REQUIRE(_dependencyMap[10], "../SpringConfig").fromOrigamiTensionAndFriction((_config$tension = config.tension) != null ? _config$tension : 40, (_config$friction = config.friction) != null ? _config$friction : 7); + _this._stiffness = _springConfig.stiffness; + _this._damping = _springConfig.damping; + _this._mass = 1; + } + _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._stiffness > 0, 'Stiffness value must be greater than 0'); + _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._damping > 0, 'Damping value must be greater than 0'); + _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._mass > 0, 'Mass value must be greater than 0'); + return _this; + } + (0, _createClass2.default)(SpringAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + var _this$_initialVelocit; + return { + type: 'spring', + overshootClamping: this._overshootClamping, + restDisplacementThreshold: this._restDisplacementThreshold, + restSpeedThreshold: this._restSpeedThreshold, + stiffness: this._stiffness, + damping: this._damping, + mass: this._mass, + initialVelocity: (_this$_initialVelocit = this._initialVelocity) != null ? _this$_initialVelocit : this._lastVelocity, + toValue: this._toValue, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + this.__active = true; + this._startPosition = fromValue; + this._lastPosition = this._startPosition; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._lastTime = Date.now(); + this._frameTime = 0.0; + if (previousAnimation instanceof SpringAnimation) { + var internalState = previousAnimation.getInternalState(); + this._lastPosition = internalState.lastPosition; + this._lastVelocity = internalState.lastVelocity; + this._initialVelocity = this._lastVelocity; + this._lastTime = internalState.lastTime; + } + var start = function start() { + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2.onUpdate(); + } + }; + + if (this._delay) { + this._timeout = setTimeout(start, this._delay); + } else { + start(); + } + } + }, { + key: "getInternalState", + value: function getInternalState() { + return { + lastPosition: this._lastPosition, + lastVelocity: this._lastVelocity, + lastTime: this._lastTime + }; + } + + }, { + key: "onUpdate", + value: + function onUpdate() { + var MAX_STEPS = 64; + var now = Date.now(); + if (now > this._lastTime + MAX_STEPS) { + now = this._lastTime + MAX_STEPS; + } + var deltaTime = (now - this._lastTime) / 1000; + this._frameTime += deltaTime; + var c = this._damping; + var m = this._mass; + var k = this._stiffness; + var v0 = -this._initialVelocity; + var zeta = c / (2 * Math.sqrt(k * m)); + var omega0 = Math.sqrt(k / m); + var omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); + var x0 = this._toValue - this._startPosition; + + var position = 0.0; + var velocity = 0.0; + var t = this._frameTime; + if (zeta < 1) { + var envelope = Math.exp(-zeta * omega0 * t); + position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)); + velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t)); + } else { + var _envelope = Math.exp(-omega0 * t); + position = this._toValue - _envelope * (x0 + (v0 + omega0 * x0) * t); + velocity = _envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0)); + } + this._lastTime = now; + this._lastPosition = position; + this._lastVelocity = velocity; + this._onUpdate(position); + if (!this.__active) { + return; + } + + var isOvershooting = false; + if (this._overshootClamping && this._stiffness !== 0) { + if (this._startPosition < this._toValue) { + isOvershooting = position > this._toValue; + } else { + isOvershooting = position < this._toValue; + } + } + var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold; + var isDisplacement = true; + if (this._stiffness !== 0) { + isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold; + } + if (isOvershooting || isVelocity && isDisplacement) { + if (this._stiffness !== 0) { + this._lastPosition = this._toValue; + this._lastVelocity = 0; + this._onUpdate(this._toValue); + } + this.__debouncedOnEnd({ + finished: true + }); + return; + } + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + }, { + key: "stop", + value: function stop() { + (0, _get2.default)((0, _getPrototypeOf2.default)(SpringAnimation.prototype), "stop", this).call(this); + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + return SpringAnimation; + }(_$$_REQUIRE(_dependencyMap[11], "./Animation")); + module.exports = SpringAnimation; +},290,[3,12,13,115,50,47,46,271,273,17,291,292],"node_modules/react-native/Libraries/Animated/animations/SpringAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function stiffnessFromOrigamiValue(oValue) { + return (oValue - 30) * 3.62 + 194; + } + function dampingFromOrigamiValue(oValue) { + return (oValue - 8) * 3 + 25; + } + function fromOrigamiTensionAndFriction(tension, friction) { + return { + stiffness: stiffnessFromOrigamiValue(tension), + damping: dampingFromOrigamiValue(friction) + }; + } + function fromBouncinessAndSpeed(bounciness, speed) { + function normalize(value, startValue, endValue) { + return (value - startValue) / (endValue - startValue); + } + function projectNormal(n, start, end) { + return start + n * (end - start); + } + function linearInterpolation(t, start, end) { + return t * end + (1 - t) * start; + } + function quadraticOutInterpolation(t, start, end) { + return linearInterpolation(2 * t - t * t, start, end); + } + function b3Friction1(x) { + return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28; + } + function b3Friction2(x) { + return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2; + } + function b3Friction3(x) { + return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84; + } + function b3Nobounce(tension) { + if (tension <= 18) { + return b3Friction1(tension); + } else if (tension > 18 && tension <= 44) { + return b3Friction2(tension); + } else { + return b3Friction3(tension); + } + } + var b = normalize(bounciness / 1.7, 0, 20); + b = projectNormal(b, 0, 0.8); + var s = normalize(speed / 1.7, 0, 20); + var bouncyTension = projectNormal(s, 0.5, 200); + var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01); + return { + stiffness: stiffnessFromOrigamiValue(bouncyTension), + damping: dampingFromOrigamiValue(bouncyFriction) + }; + } + module.exports = { + fromOrigamiTensionAndFriction: fromOrigamiTensionAndFriction, + fromBouncinessAndSpeed: fromBouncinessAndSpeed + }; +},291,[],"node_modules/react-native/Libraries/Animated/SpringConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var startNativeAnimationNextId = 1; + + var Animation = function () { + function Animation() { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, Animation); + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(Animation, [{ + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} + }, { + key: "stop", + value: function stop() { + if (this.__nativeId) { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.stopAnimation(this.__nativeId); + } + } + }, { + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + throw new Error('This animation type cannot be offloaded to native'); + } + }, { + key: "__debouncedOnEnd", + value: + function __debouncedOnEnd(result) { + var onEnd = this.__onEnd; + this.__onEnd = null; + onEnd && onEnd(result); + } + }, { + key: "__startNativeAnimation", + value: function __startNativeAnimation(animatedValue) { + var startNativeAnimationWaitId = startNativeAnimationNextId + ":startAnimation"; + startNativeAnimationNextId += 1; + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setWaitingForIdentifier(startNativeAnimationWaitId); + try { + var config = this.__getNativeAnimationConfig(); + animatedValue.__makeNative(config.platformConfig); + this.__nativeId = _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").generateNewAnimationId(); + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.startAnimatingNode(this.__nativeId, animatedValue.__getNativeTag(), config, + this.__debouncedOnEnd.bind(this)); + } catch (e) { + throw e; + } finally { + _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.unsetWaitingForIdentifier(startNativeAnimationWaitId); + } + } + }]); + return Animation; + }(); + module.exports = Animation; +},292,[12,13,273],"node_modules/react-native/Libraries/Animated/animations/Animation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../nodes/AnimatedColor")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _easeInOut; + function easeInOut() { + if (!_easeInOut) { + var Easing = _$$_REQUIRE(_dependencyMap[8], "../Easing"); + _easeInOut = Easing.inOut(Easing.ease); + } + return _easeInOut; + } + var TimingAnimation = function (_Animation) { + (0, _inherits2.default)(TimingAnimation, _Animation); + var _super = _createSuper(TimingAnimation); + function TimingAnimation(config) { + var _config$easing, _config$duration, _config$delay, _config$iterations, _config$isInteraction; + var _this; + (0, _classCallCheck2.default)(this, TimingAnimation); + _this = _super.call(this); + _this._toValue = config.toValue; + _this._easing = (_config$easing = config.easing) != null ? _config$easing : easeInOut(); + _this._duration = (_config$duration = config.duration) != null ? _config$duration : 500; + _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[9], "../NativeAnimatedHelper").shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + return _this; + } + (0, _createClass2.default)(TimingAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + var frameDuration = 1000.0 / 60.0; + var frames = []; + var numFrames = Math.round(this._duration / frameDuration); + for (var frame = 0; frame < numFrames; frame++) { + frames.push(this._easing(frame / numFrames)); + } + frames.push(this._easing(1)); + return { + type: 'frames', + frames: frames, + toValue: this._toValue, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + this.__active = true; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + var start = function start() { + if (_this2._duration === 0 && !_this2._useNativeDriver) { + _this2._onUpdate(_this2._toValue); + _this2.__debouncedOnEnd({ + finished: true + }); + } else { + _this2._startTime = Date.now(); + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2._animationFrame = requestAnimationFrame( + _this2.onUpdate.bind(_this2)); + } + } + }; + if (this._delay) { + this._timeout = setTimeout(start, this._delay); + } else { + start(); + } + } + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + if (now >= this._startTime + this._duration) { + if (this._duration === 0) { + this._onUpdate(this._toValue); + } else { + this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)); + } + this.__debouncedOnEnd({ + finished: true + }); + return; + } + this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)); + if (this.__active) { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "stop", + value: function stop() { + (0, _get2.default)((0, _getPrototypeOf2.default)(TimingAnimation.prototype), "stop", this).call(this); + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + return TimingAnimation; + }(_$$_REQUIRE(_dependencyMap[10], "./Animation")); + module.exports = TimingAnimation; +},293,[3,12,13,115,50,47,46,271,294,273,292],"node_modules/react-native/Libraries/Animated/animations/TimingAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _ease; + + var Easing = { + step0: function step0(n) { + return n > 0 ? 1 : 0; + }, + step1: function step1(n) { + return n >= 1 ? 1 : 0; + }, + linear: function linear(t) { + return t; + }, + ease: function ease(t) { + if (!_ease) { + _ease = Easing.bezier(0.42, 0, 1, 1); + } + return _ease(t); + }, + quad: function quad(t) { + return t * t; + }, + cubic: function cubic(t) { + return t * t * t; + }, + poly: function poly(n) { + return function (t) { + return Math.pow(t, n); + }; + }, + sin: function sin(t) { + return 1 - Math.cos(t * Math.PI / 2); + }, + circle: function circle(t) { + return 1 - Math.sqrt(1 - t * t); + }, + exp: function exp(t) { + return Math.pow(2, 10 * (t - 1)); + }, + elastic: function elastic() { + var bounciness = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var p = bounciness * Math.PI; + return function (t) { + return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); + }; + }, + back: function back() { + var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1.70158; + return function (t) { + return t * t * ((s + 1) * t - s); + }; + }, + bounce: function bounce(t) { + if (t < 1 / 2.75) { + return 7.5625 * t * t; + } + if (t < 2 / 2.75) { + var _t = t - 1.5 / 2.75; + return 7.5625 * _t * _t + 0.75; + } + if (t < 2.5 / 2.75) { + var _t2 = t - 2.25 / 2.75; + return 7.5625 * _t2 * _t2 + 0.9375; + } + var t2 = t - 2.625 / 2.75; + return 7.5625 * t2 * t2 + 0.984375; + }, + bezier: function bezier(x1, y1, x2, y2) { + var _bezier = _$$_REQUIRE(_dependencyMap[0], "./bezier"); + return _bezier(x1, y1, x2, y2); + }, + in: function _in(easing) { + return easing; + }, + out: function out(easing) { + return function (t) { + return 1 - easing(1 - t); + }; + }, + inOut: function inOut(easing) { + return function (t) { + if (t < 0.5) { + return easing(t * 2) / 2; + } + return 1 - easing((1 - t) * 2) / 2; + }; + } + }; + module.exports = Easing; +},294,[295],"node_modules/react-native/Libraries/Animated/Easing.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var NEWTON_ITERATIONS = 4; + var NEWTON_MIN_SLOPE = 0.001; + var SUBDIVISION_PRECISION = 0.0000001; + var SUBDIVISION_MAX_ITERATIONS = 10; + var kSplineTableSize = 11; + var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); + var float32ArraySupported = typeof Float32Array === 'function'; + function A(aA1, aA2) { + return 1.0 - 3.0 * aA2 + 3.0 * aA1; + } + function B(aA1, aA2) { + return 3.0 * aA2 - 6.0 * aA1; + } + function C(aA1) { + return 3.0 * aA1; + } + + function calcBezier(aT, aA1, aA2) { + return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; + } + + function getSlope(aT, aA1, aA2) { + return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); + } + function binarySubdivide(aX, _aA, _aB, mX1, mX2) { + var currentX, + currentT, + i = 0, + aA = _aA, + aB = _aB; + do { + currentT = aA + (aB - aA) / 2.0; + currentX = calcBezier(currentT, mX1, mX2) - aX; + if (currentX > 0.0) { + aB = currentT; + } else { + aA = currentT; + } + } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); + return currentT; + } + function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) { + var aGuessT = _aGuessT; + for (var i = 0; i < NEWTON_ITERATIONS; ++i) { + var currentSlope = getSlope(aGuessT, mX1, mX2); + if (currentSlope === 0.0) { + return aGuessT; + } + var currentX = calcBezier(aGuessT, mX1, mX2) - aX; + aGuessT -= currentX / currentSlope; + } + return aGuessT; + } + module.exports = function bezier(mX1, mY1, mX2, mY2) { + if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) { + throw new Error('bezier x values must be in [0, 1] range'); + } + + var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize); + if (mX1 !== mY1 || mX2 !== mY2) { + for (var i = 0; i < kSplineTableSize; ++i) { + sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); + } + } + function getTForX(aX) { + var intervalStart = 0.0; + var currentSample = 1; + var lastSample = kSplineTableSize - 1; + for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { + intervalStart += kSampleStepSize; + } + --currentSample; + + var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); + var guessForT = intervalStart + dist * kSampleStepSize; + var initialSlope = getSlope(guessForT, mX1, mX2); + if (initialSlope >= NEWTON_MIN_SLOPE) { + return newtonRaphsonIterate(aX, guessForT, mX1, mX2); + } else if (initialSlope === 0.0) { + return guessForT; + } else { + return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); + } + } + return function BezierEasing(x) { + if (mX1 === mY1 && mX2 === mY2) { + return x; + } + if (x === 0) { + return 0; + } + if (x === 1) { + return 1; + } + return calcBezier(getTForX(x), mY1, mY2); + }; + }; +},295,[],"node_modules/react-native/Libraries/Animated/bezier.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var DecayAnimation = function (_Animation) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(DecayAnimation, _Animation); + var _super = _createSuper(DecayAnimation); + function DecayAnimation(config) { + var _config$deceleration, _config$isInteraction, _config$iterations; + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, DecayAnimation); + _this = _super.call(this); + _this._deceleration = (_config$deceleration = config.deceleration) != null ? _config$deceleration : 0.998; + _this._velocity = config.velocity; + _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(DecayAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + return { + type: 'decay', + deceleration: this._deceleration, + velocity: this._velocity, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + this.__active = true; + this._lastValue = fromValue; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._startTime = Date.now(); + if (this._useNativeDriver) { + this.__startNativeAnimation(animatedValue); + } else { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + var value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime))); + this._onUpdate(value); + if (Math.abs(this._lastValue - value) < 0.1) { + this.__debouncedOnEnd({ + finished: true + }); + return; + } + this._lastValue = value; + if (this.__active) { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "stop", + value: function stop() { + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(DecayAnimation.prototype), "stop", this).call(this); + this.__active = false; + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + return DecayAnimation; + }(_$$_REQUIRE(_dependencyMap[7], "./Animation")); + module.exports = DecayAnimation; +},296,[46,47,50,12,273,13,115,292],"node_modules/react-native/Libraries/Animated/animations/DecayAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function attachNativeEvent(viewRef, eventName, argMapping, platformConfig) { + var eventMappings = []; + var traverse = function traverse(value, path) { + if (value instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { + value.__makeNative(platformConfig); + eventMappings.push({ + nativeEventPath: path, + animatedValueTag: value.__getNativeTag() + }); + } else if (value instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { + traverse(value.x, path.concat('x')); + traverse(value.y, path.concat('y')); + } else if (typeof value === 'object') { + for (var _key in value) { + traverse(value[_key], path.concat(_key)); + } + } + }; + _$$_REQUIRE(_dependencyMap[2], "invariant")(argMapping[0] && argMapping[0].nativeEvent, 'Native driven events only support animated values contained inside `nativeEvent`.'); + + traverse(argMapping[0].nativeEvent, []); + var viewTag = _$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/ReactNative").findNodeHandle(viewRef); + if (viewTag != null) { + eventMappings.forEach(function (mapping) { + _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").API.addAnimatedEventToView(viewTag, eventName, mapping); + }); + } + return { + detach: function detach() { + if (viewTag != null) { + eventMappings.forEach(function (mapping) { + _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").API.removeAnimatedEventFromView(viewTag, eventName, + mapping.animatedValueTag); + }); + } + } + }; + } + function validateMapping(argMapping, args) { + var validate = function validate(recMapping, recEvt, key) { + if (recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt === 'number', 'Bad mapping of event key ' + key + ', should be number but got ' + typeof recEvt); + return; + } + if (recMapping instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt.x === 'number' && typeof recEvt.y === 'number', 'Bad mapping of event key ' + key + ', should be XY but got ' + recEvt); + return; + } + if (typeof recEvt === 'number') { + _$$_REQUIRE(_dependencyMap[2], "invariant")(recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue"), 'Bad mapping of type ' + typeof recMapping + ' for key ' + key + ', event value must map to AnimatedValue'); + return; + } + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recMapping === 'object', 'Bad mapping of type ' + typeof recMapping + ' for key ' + key); + _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt === 'object', 'Bad event of type ' + typeof recEvt + ' for key ' + key); + for (var mappingKey in recMapping) { + validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey); + } + }; + _$$_REQUIRE(_dependencyMap[2], "invariant")(args.length >= argMapping.length, 'Event has less arguments than mapping'); + argMapping.forEach(function (mapping, idx) { + validate(mapping, args[idx], 'arg' + idx); + }); + } + var AnimatedEvent = function () { + function AnimatedEvent(argMapping, config) { + var _this = this; + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/classCallCheck")(this, AnimatedEvent); + this._listeners = []; + this._callListeners = function () { + for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { + args[_key2] = arguments[_key2]; + } + _this._listeners.forEach(function (listener) { + return listener.apply(void 0, args); + }); + }; + this._argMapping = argMapping; + if (config == null) { + console.warn('Animated.event now requires a second argument for options'); + config = { + useNativeDriver: false + }; + } + if (config.listener) { + this.__addListener(config.listener); + } + this._attachedEvent = null; + this.__isNative = _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").shouldUseNativeDriver(config); + this.__platformConfig = config.platformConfig; + } + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedEvent, [{ + key: "__addListener", + value: function __addListener(callback) { + this._listeners.push(callback); + } + }, { + key: "__removeListener", + value: function __removeListener(callback) { + this._listeners = this._listeners.filter(function (listener) { + return listener !== callback; + }); + } + }, { + key: "__attach", + value: function __attach(viewRef, eventName) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(this.__isNative, 'Only native driven events need to be attached.'); + this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping, this.__platformConfig); + } + }, { + key: "__detach", + value: function __detach(viewTag, eventName) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(this.__isNative, 'Only native driven events need to be detached.'); + this._attachedEvent && this._attachedEvent.detach(); + } + }, { + key: "__getHandler", + value: function __getHandler() { + var _this2 = this; + if (this.__isNative) { + if (__DEV__) { + var _validatedMapping = false; + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { + args[_key3] = arguments[_key3]; + } + if (!_validatedMapping) { + validateMapping(_this2._argMapping, args); + _validatedMapping = true; + } + _this2._callListeners.apply(_this2, args); + }; + } else { + return this._callListeners; + } + } + var validatedMapping = false; + return function () { + for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { + args[_key4] = arguments[_key4]; + } + if (__DEV__ && !validatedMapping) { + validateMapping(_this2._argMapping, args); + validatedMapping = true; + } + var traverse = function traverse(recMapping, recEvt) { + if (recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { + if (typeof recEvt === 'number') { + recMapping.setValue(recEvt); + } + } else if (recMapping instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { + if (typeof recEvt === 'object') { + traverse(recMapping.x, recEvt.x); + traverse(recMapping.y, recEvt.y); + } + } else if (typeof recMapping === 'object') { + for (var mappingKey in recMapping) { + traverse(recMapping[mappingKey], recEvt[mappingKey]); + } + } + }; + _this2._argMapping.forEach(function (mapping, idx) { + traverse(mapping, args[idx]); + }); + _this2._callListeners.apply(_this2, args); + }; + } + }]); + return AnimatedEvent; + }(); + module.exports = { + AnimatedEvent: AnimatedEvent, + attachNativeEvent: attachNativeEvent + }; +},297,[272,281,17,34,273,12,13],"node_modules/react-native/Libraries/Animated/AnimatedEvent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var createAnimatedComponentInjection = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./createAnimatedComponentInjection")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js", + _createAnimatedCompon; + var _excluded = ["style"], + _excluded2 = ["style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[8], "react"); + var animatedComponentNextId = 1; + function createAnimatedComponent(Component) { + _$$_REQUIRE(_dependencyMap[9], "invariant")(typeof Component !== 'function' || Component.prototype && Component.prototype.isReactComponent, '`createAnimatedComponent` does not support stateless functional components; ' + 'use a class component instead.'); + var AnimatedComponent = function (_React$Component) { + (0, _inherits2.default)(AnimatedComponent, _React$Component); + var _super = _createSuper(AnimatedComponent); + function AnimatedComponent() { + var _this; + (0, _classCallCheck2.default)(this, AnimatedComponent); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._invokeAnimatedPropsCallbackOnMount = false; + _this._eventDetachers = []; + _this._animatedComponentId = animatedComponentNextId++ + ":animatedComponent"; + _this._isFabric = function () { + var _this$_component$_int, _this$_component$_int2, _this$_component$getN, _this$_component$getN2, _this$_component$getS, _this$_component$getS2; + if (_this._component == null) { + return false; + } + return ( + ((_this$_component$_int = _this._component['_internalInstanceHandle']) == null ? void 0 : (_this$_component$_int2 = _this$_component$_int.stateNode) == null ? void 0 : _this$_component$_int2.canonical) != null || + _this._component.getNativeScrollRef != null && _this._component.getNativeScrollRef() != null && + ((_this$_component$getN = _this._component.getNativeScrollRef()['_internalInstanceHandle']) == null ? void 0 : (_this$_component$getN2 = _this$_component$getN.stateNode) == null ? void 0 : _this$_component$getN2.canonical) != null || _this._component.getScrollResponder != null && _this._component.getScrollResponder() != null && _this._component.getScrollResponder().getNativeScrollRef != null && _this._component.getScrollResponder().getNativeScrollRef() != null && ((_this$_component$getS = _this._component.getScrollResponder().getNativeScrollRef()[ + '_internalInstanceHandle']) == null ? void 0 : (_this$_component$getS2 = _this$_component$getS.stateNode) == null ? void 0 : _this$_component$getS2.canonical) != null + ); + }; + _this._waitForUpdate = function () { + if (_this._isFabric()) { + _$$_REQUIRE(_dependencyMap[10], "./NativeAnimatedHelper").API.setWaitingForIdentifier(_this._animatedComponentId); + } + }; + _this._markUpdateComplete = function () { + if (_this._isFabric()) { + _$$_REQUIRE(_dependencyMap[10], "./NativeAnimatedHelper").API.unsetWaitingForIdentifier(_this._animatedComponentId); + } + }; + _this._animatedPropsCallback = function () { + if (_this._component == null) { + _this._invokeAnimatedPropsCallbackOnMount = true; + } else if (process.env.NODE_ENV === 'test' || + typeof _this._component.setNativeProps !== 'function' || + _this._isFabric()) { + _this.forceUpdate(); + } else if (!_this._propsAnimated.__isNative) { + _this._component.setNativeProps(_this._propsAnimated.__getAnimatedValue()); + } else { + 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`'); + } + }; + _this._setComponentRef = _$$_REQUIRE(_dependencyMap[11], "../Utilities/setAndForwardRef")({ + getForwardedRef: function getForwardedRef() { + return _this.props.forwardedRef; + }, + setLocalRef: function setLocalRef(ref) { + _this._prevComponent = _this._component; + _this._component = ref; + } + }); + return _this; + } + (0, _createClass2.default)(AnimatedComponent, [{ + key: "_attachNativeEvents", + value: function _attachNativeEvents() { + var _this$_component, + _this2 = this; + var scrollableNode = (_this$_component = this._component) != null && _this$_component.getScrollableNode ? this._component.getScrollableNode() : this._component; + var _loop = function _loop(key) { + var prop = _this2.props[key]; + if (prop instanceof _$$_REQUIRE(_dependencyMap[12], "./AnimatedEvent").AnimatedEvent && prop.__isNative) { + prop.__attach(scrollableNode, key); + _this2._eventDetachers.push(function () { + return prop.__detach(scrollableNode, key); + }); + } + }; + for (var key in this.props) { + _loop(key); + } + } + }, { + key: "_detachNativeEvents", + value: function _detachNativeEvents() { + this._eventDetachers.forEach(function (remove) { + return remove(); + }); + this._eventDetachers = []; + } + }, { + key: "_attachProps", + value: function _attachProps(nextProps) { + var oldPropsAnimated = this._propsAnimated; + this._propsAnimated = new (_$$_REQUIRE(_dependencyMap[13], "./nodes/AnimatedProps"))(nextProps, this._animatedPropsCallback); + this._propsAnimated.__attach(); + + if (oldPropsAnimated) { + oldPropsAnimated.__restoreDefaultValues(); + oldPropsAnimated.__detach(); + } + } + }, { + key: "render", + value: function render() { + var initialPropsIfFabric = this._isFabric() ? this._initialAnimatedProps : null; + var animatedProps = this._propsAnimated.__getValue(initialPropsIfFabric) || {}; + if (!this._initialAnimatedProps) { + this._initialAnimatedProps = animatedProps; + } + var _animatedProps$style = animatedProps.style, + style = _animatedProps$style === void 0 ? {} : _animatedProps$style, + props = (0, _objectWithoutProperties2.default)(animatedProps, _excluded); + var _ref = this.props.passthroughAnimatedPropExplicitValues || {}, + _ref$style = _ref.style, + passthruStyle = _ref$style === void 0 ? {} : _ref$style, + passthruProps = (0, _objectWithoutProperties2.default)(_ref, _excluded2); + var mergedStyle = Object.assign({}, style, passthruStyle); + + return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(Component, Object.assign({}, props, passthruProps, { + collapsable: false, + style: mergedStyle, + ref: this._setComponentRef + })); + } + }, { + key: "UNSAFE_componentWillMount", + value: function UNSAFE_componentWillMount() { + this._waitForUpdate(); + this._attachProps(this.props); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this._invokeAnimatedPropsCallbackOnMount) { + this._invokeAnimatedPropsCallbackOnMount = false; + this._animatedPropsCallback(); + } + this._propsAnimated.setNativeView(this._component); + this._attachNativeEvents(); + this._markUpdateComplete(); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this._waitForUpdate(); + this._attachProps(newProps); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this._component !== this._prevComponent) { + this._propsAnimated.setNativeView(this._component); + } + if (this._component !== this._prevComponent || prevProps !== this.props) { + this._detachNativeEvents(); + this._attachNativeEvents(); + } + this._markUpdateComplete(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._propsAnimated && this._propsAnimated.__detach(); + this._detachNativeEvents(); + this._markUpdateComplete(); + this._component = null; + this._prevComponent = null; + } + }]); + return AnimatedComponent; + }(React.Component); + return React.forwardRef(function AnimatedComponentWrapper(props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(AnimatedComponent, Object.assign({}, props, ref == null ? null : { + forwardedRef: ref + })); + }); + } + + module.exports = (_createAnimatedCompon = createAnimatedComponentInjection.recordAndRetrieve()) != null ? _createAnimatedCompon : createAnimatedComponent; +},298,[3,132,12,13,50,47,46,299,36,17,273,300,297,301,73],"node_modules/react-native/Libraries/Animated/createAnimatedComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.inject = inject; + exports.recordAndRetrieve = recordAndRetrieve; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var injected; + + function inject(newInjected) { + if (injected !== undefined) { + if (__DEV__) { + console.error('createAnimatedComponentInjection: ' + (injected == null ? 'Must be called before `createAnimatedComponent`.' : 'Cannot be called more than once.')); + } + return; + } + injected = newInjected; + } + + function recordAndRetrieve() { + if (injected === undefined) { + injected = null; + } + return injected; + } +},299,[36],"node_modules/react-native/Libraries/Animated/createAnimatedComponentInjection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function setAndForwardRef(_ref) { + var getForwardedRef = _ref.getForwardedRef, + setLocalRef = _ref.setLocalRef; + return function forwardRef(ref) { + var forwardedRef = getForwardedRef(); + setLocalRef(ref); + + if (typeof forwardedRef === 'function') { + forwardedRef(ref); + } else if (typeof forwardedRef === 'object' && forwardedRef != null) { + forwardedRef.current = ref; + } + }; + } + module.exports = setAndForwardRef; +},300,[],"node_modules/react-native/Libraries/Utilities/setAndForwardRef.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedProps = function (_AnimatedNode) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedProps, _AnimatedNode); + var _super = _createSuper(AnimatedProps); + function AnimatedProps(props, callback) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedProps); + _this = _super.call(this); + if (props.style) { + props = Object.assign({}, props, { + style: new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedStyle"))(props.style) + }); + } + _this._props = props; + _this._callback = callback; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedProps, [{ + key: "__getValue", + value: function __getValue(initialProps) { + var props = {}; + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + if (value instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedStyle")) { + props[key] = value.__getValue(initialProps == null ? void 0 : initialProps.style); + } else if (!initialProps || !value.__isNative) { + props[key] = value.__getValue(); + } else if (initialProps.hasOwnProperty(key)) { + props[key] = initialProps[key]; + } + } else if (value instanceof _$$_REQUIRE(_dependencyMap[7], "../AnimatedEvent").AnimatedEvent) { + props[key] = value.__getHandler(); + } else { + props[key] = value; + } + } + return props; + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + var props = {}; + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + props[key] = value.__getAnimatedValue(); + } + } + return props; + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + value.__addChild(this); + } + } + } + }, { + key: "__detach", + value: function __detach() { + if (this.__isNative && this._animatedView) { + this.__disconnectAnimatedView(); + } + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + value.__removeChild(this); + } + } + _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedProps.prototype), "__detach", this).call(this); + } + }, { + key: "update", + value: function update() { + this._callback(); + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + if (!this.__isNative) { + this.__isNative = true; + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + value.__makeNative(platformConfig); + } + } + + _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedProps.prototype), "__setPlatformConfig", this).call(this, platformConfig); + if (this._animatedView) { + this.__connectAnimatedView(); + } + } + } + }, { + key: "setNativeView", + value: function setNativeView(animatedView) { + if (this._animatedView === animatedView) { + return; + } + this._animatedView = animatedView; + if (this.__isNative) { + this.__connectAnimatedView(); + } + } + }, { + key: "__connectAnimatedView", + value: function __connectAnimatedView() { + _$$_REQUIRE(_dependencyMap[9], "invariant")(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = _$$_REQUIRE(_dependencyMap[10], "../../Renderer/shims/ReactNative").findNodeHandle(this._animatedView); + _$$_REQUIRE(_dependencyMap[9], "invariant")(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag); + } + }, { + key: "__disconnectAnimatedView", + value: function __disconnectAnimatedView() { + _$$_REQUIRE(_dependencyMap[9], "invariant")(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = _$$_REQUIRE(_dependencyMap[10], "../../Renderer/shims/ReactNative").findNodeHandle(this._animatedView); + _$$_REQUIRE(_dependencyMap[9], "invariant")(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag); + } + }, { + key: "__restoreDefaultValues", + value: function __restoreDefaultValues() { + if (this.__isNative) { + _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.restoreDefaultValues(this.__getNativeTag()); + } + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var propsConfig = {}; + for (var propKey in this._props) { + var value = this._props[propKey]; + if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { + value.__makeNative(this.__getPlatformConfig()); + propsConfig[propKey] = value.__getNativeTag(); + } + } + return { + type: 'props', + props: propsConfig + }; + } + }]); + return AnimatedProps; + }(_$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")); + module.exports = AnimatedProps; +},301,[46,47,50,12,302,13,278,297,115,17,34,273],"node_modules/react-native/Libraries/Animated/nodes/AnimatedProps.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedStyle = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedStyle, _AnimatedWithChildren); + var _super = _createSuper(AnimatedStyle); + function AnimatedStyle(style) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedStyle); + _this = _super.call(this); + style = _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/flattenStyle")(style) || {}; + if (style.transform) { + style = Object.assign({}, style, { + transform: new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedTransform"))(style.transform) + }); + } + _this._style = style; + return _this; + } + + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedStyle, [{ + key: "_walkStyleAndGetValues", + value: + function _walkStyleAndGetValues(style, initialStyle) { + var updatedStyle = {}; + for (var key in style) { + var value = style[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + if (!initialStyle || !value.__isNative) { + updatedStyle[key] = value.__getValue(); + } else if (initialStyle.hasOwnProperty(key)) { + updatedStyle[key] = initialStyle[key]; + } + } else if (value && !Array.isArray(value) && typeof value === 'object') { + updatedStyle[key] = this._walkStyleAndGetValues(value, initialStyle); + } else { + updatedStyle[key] = value; + } + } + return updatedStyle; + } + }, { + key: "__getValue", + value: function __getValue(initialStyle) { + return this._walkStyleAndGetValues(this._style, initialStyle); + } + + }, { + key: "_walkStyleAndGetAnimatedValues", + value: + function _walkStyleAndGetAnimatedValues(style) { + var updatedStyle = {}; + for (var key in style) { + var value = style[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + updatedStyle[key] = value.__getAnimatedValue(); + } else if (value && !Array.isArray(value) && typeof value === 'object') { + updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value); + } + } + return updatedStyle; + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._walkStyleAndGetAnimatedValues(this._style); + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + value.__addChild(this); + } + } + } + }, { + key: "__detach", + value: function __detach() { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + value.__removeChild(this); + } + } + _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedStyle.prototype), "__detach", this).call(this); + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + value.__makeNative(platformConfig); + } + } + _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedStyle.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var styleConfig = {}; + for (var styleKey in this._style) { + if (this._style[styleKey] instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { + var style = this._style[styleKey]; + style.__makeNative(this.__getPlatformConfig()); + styleConfig[styleKey] = style.__getNativeTag(); + } + } + + _$$_REQUIRE(_dependencyMap[9], "../NativeAnimatedHelper").validateStyles(styleConfig); + return { + type: 'style', + style: styleConfig + }; + } + }]); + return AnimatedStyle; + }(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); + module.exports = AnimatedStyle; +},302,[46,47,50,12,189,303,13,278,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedTransform = function (_AnimatedWithChildren) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedTransform, _AnimatedWithChildren); + var _super = _createSuper(AnimatedTransform); + function AnimatedTransform(transforms) { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedTransform); + _this = _super.call(this); + _this._transforms = transforms; + return _this; + } + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedTransform, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + value.__makeNative(platformConfig); + } + } + }); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTransform.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._transforms.map(function (transform) { + var result = {}; + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + result[key] = value.__getValue(); + } else { + result[key] = value; + } + } + return result; + }); + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._transforms.map(function (transform) { + var result = {}; + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + result[key] = value.__getAnimatedValue(); + } else { + result[key] = value; + } + } + return result; + }); + } + }, { + key: "__attach", + value: function __attach() { + var _this2 = this; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + value.__addChild(_this2); + } + } + }); + } + }, { + key: "__detach", + value: function __detach() { + var _this3 = this; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + value.__removeChild(_this3); + } + } + }); + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTransform.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var transConfigs = []; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { + transConfigs.push({ + type: 'animated', + property: key, + nodeTag: value.__getNativeTag() + }); + } else { + transConfigs.push({ + type: 'static', + property: key, + value: _$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper").transformDataType(value) + }); + } + } + }); + _$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper").validateTransform(transConfigs); + return { + type: 'transform', + transforms: transConfigs + }; + } + }]); + return AnimatedTransform; + }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + module.exports = AnimatedTransform; +},303,[46,47,50,12,13,278,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTransform.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var FlatListWithEventThrottle = React.forwardRef(function (props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "../../Lists/FlatList"), Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: ref + })); + }); + module.exports = _$$_REQUIRE(_dependencyMap[3], "../createAnimatedComponent")(FlatListWithEventThrottle); +},304,[36,73,305,298],"node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/defineProperty")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); + var _memoizeOne = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "memoize-one")); + var _excluded = ["numColumns", "columnWrapperStyle", "removeClippedSubviews", "strictMode"]; + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/FlatList.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[10], "react"); + + function removeClippedSubviewsOrDefault(removeClippedSubviews) { + return removeClippedSubviews != null ? removeClippedSubviews : "ios" === 'android'; + } + + function numColumnsOrDefault(numColumns) { + return numColumns != null ? numColumns : 1; + } + var FlatList = function (_React$PureComponent) { + (0, _inherits2.default)(FlatList, _React$PureComponent); + var _super = _createSuper(FlatList); + function FlatList(_props) { + var _this; + (0, _classCallCheck2.default)(this, FlatList); + _this = _super.call(this, _props); + _this._virtualizedListPairs = []; + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + _this._getItem = function (data, index) { + var numColumns = numColumnsOrDefault(_this.props.numColumns); + if (numColumns > 1) { + var ret = []; + for (var kk = 0; kk < numColumns; kk++) { + var _item = data[index * numColumns + kk]; + if (_item != null) { + ret.push(_item); + } + } + return ret; + } else { + return data[index]; + } + }; + _this._getItemCount = function (data) { + if (data) { + var numColumns = numColumnsOrDefault(_this.props.numColumns); + return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length; + } else { + return 0; + } + }; + _this._keyExtractor = function (items, index) { + var _this$props$keyExtrac; + var numColumns = numColumnsOrDefault(_this.props.numColumns); + var keyExtractor = (_this$props$keyExtrac = _this.props.keyExtractor) != null ? _this$props$keyExtrac : _$$_REQUIRE(_dependencyMap[11], "./VirtualizeUtils").keyExtractor; + if (numColumns > 1) { + if (Array.isArray(items)) { + return items.map(function (item, kk) { + return keyExtractor(item, index * numColumns + kk); + }).join(':'); + } else { + _$$_REQUIRE(_dependencyMap[12], "invariant")(Array.isArray(items), 'FlatList: Encountered internal consistency error, expected each item to consist of an ' + 'array with 1-%s columns; instead, received a single item.', numColumns); + } + } else { + return keyExtractor(items, index); + } + }; + _this._renderer = function (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) { + var cols = numColumnsOrDefault(numColumns); + var virtualizedListRenderKey = ListItemComponent ? 'ListItemComponent' : 'renderItem'; + var renderer = function renderer(props) { + if (ListItemComponent) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ListItemComponent, Object.assign({}, props)); + } else if (renderItem) { + return renderItem(props); + } else { + return null; + } + }; + return (0, _defineProperty2.default)({}, virtualizedListRenderKey, function (info) { + if (cols > 1) { + var _item2 = info.item, + _index = info.index; + _$$_REQUIRE(_dependencyMap[12], "invariant")(Array.isArray(_item2), 'Expected array of items with numColumns > 1'); + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../Components/View/View"), { + style: _$$_REQUIRE(_dependencyMap[15], "../StyleSheet/StyleSheet").compose(styles.row, columnWrapperStyle), + children: _item2.map(function (it, kk) { + var element = renderer({ + item: it, + index: _index * cols + kk, + separators: info.separators + }); + return element != null ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(React.Fragment, { + children: element + }, kk) : null; + }) + }); + } else { + return renderer(info); + } + }); + }; + _this._memoizedRenderer = (0, _memoizeOne.default)(_this._renderer); + _this._checkProps(_this.props); + if (_this.props.viewabilityConfigCallbackPairs) { + _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityConfig: pair.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged) + }; + }); + } else if (_this.props.onViewableItemsChanged) { + _this._virtualizedListPairs.push({ + viewabilityConfig: _this.props.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged) + }); + } + return _this; + } + (0, _createClass2.default)(FlatList, [{ + key: "scrollToEnd", + value: + function scrollToEnd(params) { + if (this._listRef) { + this._listRef.scrollToEnd(params); + } + } + + }, { + key: "scrollToIndex", + value: + function scrollToIndex(params) { + if (this._listRef) { + this._listRef.scrollToIndex(params); + } + } + + }, { + key: "scrollToItem", + value: + function scrollToItem(params) { + if (this._listRef) { + this._listRef.scrollToItem(params); + } + } + + }, { + key: "scrollToOffset", + value: + function scrollToOffset(params) { + if (this._listRef) { + this._listRef.scrollToOffset(params); + } + } + + }, { + key: "recordInteraction", + value: + function recordInteraction() { + if (this._listRef) { + this._listRef.recordInteraction(); + } + } + + }, { + key: "flashScrollIndicators", + value: + function flashScrollIndicators() { + if (this._listRef) { + this._listRef.flashScrollIndicators(); + } + } + + }, { + key: "getScrollResponder", + value: + function getScrollResponder() { + if (this._listRef) { + return this._listRef.getScrollResponder(); + } + } + + }, { + key: "getNativeScrollRef", + value: + function getNativeScrollRef() { + if (this._listRef) { + return this._listRef.getScrollRef(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._listRef) { + return this._listRef.getScrollableNode(); + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._listRef) { + this._listRef.setNativeProps(props); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.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.'); + _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, 'Changing onViewableItemsChanged on the fly is not supported'); + _$$_REQUIRE(_dependencyMap[12], "invariant")(!_$$_REQUIRE(_dependencyMap[16], "../Utilities/differ/deepDiffer")(prevProps.viewabilityConfig, this.props.viewabilityConfig), 'Changing viewabilityConfig on the fly is not supported'); + _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, 'Changing viewabilityConfigCallbackPairs on the fly is not supported'); + this._checkProps(this.props); + } + }, { + key: "_checkProps", + value: function _checkProps(props) { + var getItem = props.getItem, + getItemCount = props.getItemCount, + horizontal = props.horizontal, + columnWrapperStyle = props.columnWrapperStyle, + onViewableItemsChanged = props.onViewableItemsChanged, + viewabilityConfigCallbackPairs = props.viewabilityConfigCallbackPairs; + var numColumns = numColumnsOrDefault(this.props.numColumns); + _$$_REQUIRE(_dependencyMap[12], "invariant")(!getItem && !getItemCount, 'FlatList does not support custom data formats.'); + if (numColumns > 1) { + _$$_REQUIRE(_dependencyMap[12], "invariant")(!horizontal, 'numColumns does not support horizontal.'); + } else { + _$$_REQUIRE(_dependencyMap[12], "invariant")(!columnWrapperStyle, 'columnWrapperStyle not supported for single column lists'); + } + _$$_REQUIRE(_dependencyMap[12], "invariant")(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), 'FlatList does not support setting both onViewableItemsChanged and ' + 'viewabilityConfigCallbackPairs.'); + } + }, { + key: "_pushMultiColumnViewable", + value: function _pushMultiColumnViewable(arr, v) { + var _this$props$keyExtrac2; + var numColumns = numColumnsOrDefault(this.props.numColumns); + var keyExtractor = (_this$props$keyExtrac2 = this.props.keyExtractor) != null ? _this$props$keyExtrac2 : _$$_REQUIRE(_dependencyMap[11], "./VirtualizeUtils").keyExtractor; + v.item.forEach(function (item, ii) { + _$$_REQUIRE(_dependencyMap[12], "invariant")(v.index != null, 'Missing index!'); + var index = v.index * numColumns + ii; + arr.push(Object.assign({}, v, { + item: item, + key: keyExtractor(item, index), + index: index + })); + }); + } + }, { + key: "_createOnViewableItemsChanged", + value: function _createOnViewableItemsChanged(onViewableItemsChanged) { + var _this2 = this; + return function (info) { + var numColumns = numColumnsOrDefault(_this2.props.numColumns); + if (onViewableItemsChanged) { + if (numColumns > 1) { + var changed = []; + var viewableItems = []; + info.viewableItems.forEach(function (v) { + return _this2._pushMultiColumnViewable(viewableItems, v); + }); + info.changed.forEach(function (v) { + return _this2._pushMultiColumnViewable(changed, v); + }); + onViewableItemsChanged({ + viewableItems: viewableItems, + changed: changed + }); + } else { + onViewableItemsChanged(info); + } + } + }; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + numColumns = _this$props.numColumns, + columnWrapperStyle = _this$props.columnWrapperStyle, + _removeClippedSubviews = _this$props.removeClippedSubviews, + _this$props$strictMod = _this$props.strictMode, + strictMode = _this$props$strictMod === void 0 ? false : _this$props$strictMod, + restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var renderer = strictMode ? this._memoizedRenderer : this._renderer; + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[17], "./VirtualizedList"), Object.assign({}, restProps, { + getItem: this._getItem, + getItemCount: this._getItemCount, + keyExtractor: this._keyExtractor, + ref: this._captureRef, + viewabilityConfigCallbackPairs: this._virtualizedListPairs, + removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews) + }, renderer(this.props.ListItemComponent, this.props.renderItem, columnWrapperStyle, numColumns, this.props.extraData))); + } + }]); + return FlatList; + }(React.PureComponent); + var styles = _$$_REQUIRE(_dependencyMap[15], "../StyleSheet/StyleSheet").create({ + row: { + flexDirection: 'row' + } + }); + module.exports = FlatList; +},305,[3,132,306,12,13,49,50,47,46,307,36,308,17,73,245,244,237,309],"node_modules/react-native/Libraries/Lists/FlatList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; +},306,[],"node_modules/@babel/runtime/helpers/defineProperty.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var safeIsNaN = Number.isNaN || function ponyfill(value) { + return typeof value === 'number' && value !== value; + }; + function isEqual(first, second) { + if (first === second) { + return true; + } + if (safeIsNaN(first) && safeIsNaN(second)) { + return true; + } + return false; + } + function areInputsEqual(newInputs, lastInputs) { + if (newInputs.length !== lastInputs.length) { + return false; + } + for (var i = 0; i < newInputs.length; i++) { + if (!isEqual(newInputs[i], lastInputs[i])) { + return false; + } + } + return true; + } + function memoizeOne(resultFn, isEqual) { + if (isEqual === void 0) { + isEqual = areInputsEqual; + } + var lastThis; + var lastArgs = []; + var lastResult; + var calledOnce = false; + function memoized() { + var newArgs = []; + for (var _i = 0; _i < arguments.length; _i++) { + newArgs[_i] = arguments[_i]; + } + if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) { + return lastResult; + } + lastResult = resultFn.apply(this, newArgs); + calledOnce = true; + lastThis = this; + lastArgs = newArgs; + return lastResult; + } + return memoized; + } + module.exports = memoizeOne; +},307,[],"node_modules/memoize-one/dist/memoize-one.cjs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.computeWindowedRenderLimits = computeWindowedRenderLimits; + exports.elementsThatOverlapOffsets = elementsThatOverlapOffsets; + exports.keyExtractor = keyExtractor; + exports.newRangeCount = newRangeCount; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "invariant")); + function elementsThatOverlapOffsets(offsets, itemCount, getFrameMetrics) { + var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + var result = []; + for (var offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) { + var currentOffset = offsets[offsetIndex]; + var left = 0; + var right = itemCount - 1; + while (left <= right) { + var mid = left + (right - left >>> 1); + var frame = getFrameMetrics(mid); + var scaledOffsetStart = frame.offset * zoomScale; + var scaledOffsetEnd = (frame.offset + frame.length) * zoomScale; + + if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) { + right = mid - 1; + } else if (currentOffset > scaledOffsetEnd) { + left = mid + 1; + } else { + result[offsetIndex] = mid; + break; + } + } + } + return result; + } + + function newRangeCount(prev, next) { + return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first)); + } + + function computeWindowedRenderLimits(data, getItemCount, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) { + var itemCount = getItemCount(data); + if (itemCount === 0) { + return prev; + } + var offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength, + _scrollMetrics$zoomSc = scrollMetrics.zoomScale, + zoomScale = _scrollMetrics$zoomSc === void 0 ? 1 : _scrollMetrics$zoomSc; + + var visibleBegin = Math.max(0, offset); + var visibleEnd = visibleBegin + visibleLength; + var overscanLength = (windowSize - 1) * visibleLength; + + var leadFactor = 0.5; + + var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none'; + var overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength); + var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength); + var lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset * zoomScale; + if (lastItemOffset < overscanBegin) { + return { + first: Math.max(0, itemCount - 1 - maxToRenderPerBatch), + last: itemCount - 1 + }; + } + + var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], itemCount, getFrameMetricsApprox, zoomScale), + _elementsThatOverlapO2 = (0, _slicedToArray2.default)(_elementsThatOverlapO, 4), + overscanFirst = _elementsThatOverlapO2[0], + first = _elementsThatOverlapO2[1], + last = _elementsThatOverlapO2[2], + overscanLast = _elementsThatOverlapO2[3]; + overscanFirst = overscanFirst == null ? 0 : overscanFirst; + first = first == null ? Math.max(0, overscanFirst) : first; + overscanLast = overscanLast == null ? itemCount - 1 : overscanLast; + last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last; + var visible = { + first: first, + last: last + }; + + var newCellCount = newRangeCount(prev, visible); + while (true) { + if (first <= overscanFirst && last >= overscanLast) { + break; + } + var maxNewCells = newCellCount >= maxToRenderPerBatch; + var firstWillAddMore = first <= prev.first || first > prev.last; + var firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore); + var lastWillAddMore = last >= prev.last || last < prev.first; + var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore); + if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) { + break; + } + if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) { + if (firstWillAddMore) { + newCellCount++; + } + first--; + } + if (lastShouldIncrement && !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)) { + if (lastWillAddMore) { + newCellCount++; + } + last++; + } + } + if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) { + throw new Error('Bad window calculation ' + JSON.stringify({ + first: first, + last: last, + itemCount: itemCount, + overscanFirst: overscanFirst, + overscanLast: overscanLast, + visible: visible + })); + } + return { + first: first, + last: last + }; + } + function keyExtractor(item, index) { + if (typeof item === 'object' && (item == null ? void 0 : item.key) != null) { + return item.key; + } + if (typeof item === 'object' && (item == null ? void 0 : item.id) != null) { + return item.id; + } + return String(index); + } +},308,[3,19,17],"node_modules/react-native/Libraries/Lists/VirtualizeUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var ON_END_REACHED_EPSILON = 0.001; + var _usedIndexForKey = false; + var _keylessItemComponentName = ''; + + function horizontalOrDefault(horizontal) { + return horizontal != null ? horizontal : false; + } + + function initialNumToRenderOrDefault(initialNumToRender) { + return initialNumToRender != null ? initialNumToRender : 10; + } + + function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) { + return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10; + } + + function onEndReachedThresholdOrDefault(onEndReachedThreshold) { + return onEndReachedThreshold != null ? onEndReachedThreshold : 2; + } + + function scrollEventThrottleOrDefault(scrollEventThrottle) { + return scrollEventThrottle != null ? scrollEventThrottle : 50; + } + + function windowSizeOrDefault(windowSize) { + return windowSize != null ? windowSize : 21; + } + + var VirtualizedList = function (_React$PureComponent) { + (0, _inherits2.default)(VirtualizedList, _React$PureComponent); + var _super = _createSuper(VirtualizedList); + function VirtualizedList(_props) { + var _this$props$updateCel; + var _this; + (0, _classCallCheck2.default)(this, VirtualizedList); + _this = _super.call(this, _props); + _this._getScrollMetrics = function () { + return _this._scrollMetrics; + }; + _this._getOutermostParentListRef = function () { + if (_this._isNestedWithSameOrientation()) { + return _this.context.getOutermostParentListRef(); + } else { + return (0, _assertThisInitialized2.default)(_this); + } + }; + _this._getNestedChildState = function (key) { + var existingChildData = _this._nestedChildLists.get(key); + return existingChildData && existingChildData.state; + }; + _this._registerAsNestedChild = function (childList) { + var childListsInCell = _this._cellKeysToChildListKeys.get(childList.cellKey) || new Set(); + childListsInCell.add(childList.key); + _this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell); + var existingChildData = _this._nestedChildLists.get(childList.key); + if (existingChildData && existingChildData.ref !== null) { + console.error('A VirtualizedList contains a cell which itself contains ' + 'more than one VirtualizedList of the same orientation as the parent ' + 'list. You must pass a unique listKey prop to each sibling list.\n\n' + describeNestedLists(Object.assign({}, childList, { + horizontal: !!childList.ref.props.horizontal + }))); + } + _this._nestedChildLists.set(childList.key, { + ref: childList.ref, + state: null + }); + if (_this._hasInteracted) { + childList.ref.recordInteraction(); + } + }; + _this._unregisterAsNestedChild = function (childList) { + _this._nestedChildLists.set(childList.key, { + ref: null, + state: childList.state + }); + }; + _this._onUpdateSeparators = function (keys, newProps) { + keys.forEach(function (key) { + var ref = key != null && _this._cellRefs[key]; + ref && ref.updateSeparatorProps(newProps); + }); + }; + _this._getSpacerKey = function (isVertical) { + return isVertical ? 'height' : 'width'; + }; + _this._averageCellLength = 0; + _this._cellKeysToChildListKeys = new Map(); + _this._cellRefs = {}; + _this._frames = {}; + _this._footerLength = 0; + _this._hasTriggeredInitialScrollToIndex = false; + _this._hasInteracted = false; + _this._hasMore = false; + _this._hasWarned = {}; + _this._headerLength = 0; + _this._hiPriInProgress = false; + _this._highestMeasuredFrameIndex = 0; + _this._indicesToKeys = new Map(); + _this._nestedChildLists = new Map(); + _this._offsetFromParentVirtualizedList = 0; + _this._prevParentOffset = 0; + _this._scrollMetrics = { + contentLength: 0, + dOffset: 0, + dt: 10, + offset: 0, + timestamp: 0, + velocity: 0, + visibleLength: 0, + zoomScale: 1 + }; + _this._scrollRef = null; + _this._sentEndForContentLength = 0; + _this._totalCellLength = 0; + _this._totalCellsMeasured = 0; + _this._viewabilityTuples = []; + _this._captureScrollRef = function (ref) { + _this._scrollRef = ref; + }; + _this._defaultRenderScrollComponent = function (props) { + var onRefresh = props.onRefresh; + if (_this._isNestedWithSameOrientation()) { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), Object.assign({}, props)); + } else if (onRefresh) { + var _props$refreshing; + _$$_REQUIRE(_dependencyMap[11], "invariant")(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify((_props$refreshing = props.refreshing) != null ? _props$refreshing : 'undefined') + '`'); + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), Object.assign({}, props, { + refreshControl: props.refreshControl == null ? (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../Components/RefreshControl/RefreshControl"), { + refreshing: props.refreshing, + onRefresh: onRefresh, + progressViewOffset: props.progressViewOffset + }) : props.refreshControl + })); + } else { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), Object.assign({}, props)); + } + }; + _this._onCellLayout = function (e, cellKey, index) { + var layout = e.nativeEvent.layout; + var next = { + offset: _this._selectOffset(layout), + length: _this._selectLength(layout), + index: index, + inLayout: true + }; + var curr = _this._frames[cellKey]; + if (!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index) { + _this._totalCellLength += next.length - (curr ? curr.length : 0); + _this._totalCellsMeasured += curr ? 0 : 1; + _this._averageCellLength = _this._totalCellLength / _this._totalCellsMeasured; + _this._frames[cellKey] = next; + _this._highestMeasuredFrameIndex = Math.max(_this._highestMeasuredFrameIndex, index); + _this._scheduleCellsToRenderUpdate(); + } else { + _this._frames[cellKey].inLayout = true; + } + _this._triggerRemeasureForChildListsInCell(cellKey); + _this._computeBlankness(); + _this._updateViewableItems(_this.props.data); + }; + _this._onCellUnmount = function (cellKey) { + var curr = _this._frames[cellKey]; + if (curr) { + _this._frames[cellKey] = Object.assign({}, curr, { + inLayout: false + }); + } + }; + _this._onLayout = function (e) { + if (_this._isNestedWithSameOrientation()) { + _this.measureLayoutRelativeToContainingList(); + } else { + _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout); + } + _this.props.onLayout && _this.props.onLayout(e); + _this._scheduleCellsToRenderUpdate(); + _this._maybeCallOnEndReached(); + }; + _this._onLayoutEmpty = function (e) { + _this.props.onLayout && _this.props.onLayout(e); + }; + _this._onLayoutFooter = function (e) { + _this._triggerRemeasureForChildListsInCell(_this._getFooterCellKey()); + _this._footerLength = _this._selectLength(e.nativeEvent.layout); + }; + _this._onLayoutHeader = function (e) { + _this._headerLength = _this._selectLength(e.nativeEvent.layout); + }; + _this._onContentSizeChange = function (width, height) { + if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasTriggeredInitialScrollToIndex) { + if (_this.props.contentOffset == null) { + _this.scrollToIndex({ + animated: false, + index: _this.props.initialScrollIndex + }); + } + _this._hasTriggeredInitialScrollToIndex = true; + } + if (_this.props.onContentSizeChange) { + _this.props.onContentSizeChange(width, height); + } + _this._scrollMetrics.contentLength = _this._selectLength({ + height: height, + width: width + }); + _this._scheduleCellsToRenderUpdate(); + _this._maybeCallOnEndReached(); + }; + _this._convertParentScrollMetrics = function (metrics) { + var offset = metrics.offset - _this._offsetFromParentVirtualizedList; + var visibleLength = metrics.visibleLength; + var dOffset = offset - _this._scrollMetrics.offset; + var contentLength = _this._scrollMetrics.contentLength; + return { + visibleLength: visibleLength, + contentLength: contentLength, + offset: offset, + dOffset: dOffset + }; + }; + _this._onScroll = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onScroll(e); + }); + if (_this.props.onScroll) { + _this.props.onScroll(e); + } + var timestamp = e.timeStamp; + var visibleLength = _this._selectLength(e.nativeEvent.layoutMeasurement); + var contentLength = _this._selectLength(e.nativeEvent.contentSize); + var offset = _this._selectOffset(e.nativeEvent.contentOffset); + var dOffset = offset - _this._scrollMetrics.offset; + if (_this._isNestedWithSameOrientation()) { + if (_this._scrollMetrics.contentLength === 0) { + return; + } + var _this$_convertParentS = _this._convertParentScrollMetrics({ + visibleLength: visibleLength, + offset: offset + }); + visibleLength = _this$_convertParentS.visibleLength; + contentLength = _this$_convertParentS.contentLength; + offset = _this$_convertParentS.offset; + dOffset = _this$_convertParentS.dOffset; + } + var dt = _this._scrollMetrics.timestamp ? Math.max(1, timestamp - _this._scrollMetrics.timestamp) : 1; + var velocity = dOffset / dt; + if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) { + _$$_REQUIRE(_dependencyMap[14], "../Utilities/infoLog")('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: dt, + prevDt: _this._scrollMetrics.dt, + contentLength: contentLength + }); + _this._hasWarned.perf = true; + } + + var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale; + _this._scrollMetrics = { + contentLength: contentLength, + dt: dt, + dOffset: dOffset, + offset: offset, + timestamp: timestamp, + velocity: velocity, + visibleLength: visibleLength, + zoomScale: zoomScale + }; + _this._updateViewableItems(_this.props.data); + if (!_this.props) { + return; + } + _this._maybeCallOnEndReached(); + if (velocity !== 0) { + _this._fillRateHelper.activate(); + } + _this._computeBlankness(); + _this._scheduleCellsToRenderUpdate(); + }; + _this._onScrollBeginDrag = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onScrollBeginDrag(e); + }); + _this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.recordInteraction(); + }); + _this._hasInteracted = true; + _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); + }; + _this._onScrollEndDrag = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onScrollEndDrag(e); + }); + var velocity = e.nativeEvent.velocity; + if (velocity) { + _this._scrollMetrics.velocity = _this._selectOffset(velocity); + } + _this._computeBlankness(); + _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); + }; + _this._onMomentumScrollBegin = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onMomentumScrollBegin(e); + }); + _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); + }; + _this._onMomentumScrollEnd = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onMomentumScrollEnd(e); + }); + _this._scrollMetrics.velocity = 0; + _this._computeBlankness(); + _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); + }; + _this._updateCellsToRender = function () { + var _this$props = _this.props, + data = _this$props.data, + getItemCount = _this$props.getItemCount, + _onEndReachedThreshold = _this$props.onEndReachedThreshold; + var onEndReachedThreshold = onEndReachedThresholdOrDefault(_onEndReachedThreshold); + var isVirtualizationDisabled = _this._isVirtualizationDisabled(); + _this._updateViewableItems(data); + if (!data) { + return; + } + _this.setState(function (state) { + var newState; + var _this$_scrollMetrics = _this._scrollMetrics, + contentLength = _this$_scrollMetrics.contentLength, + offset = _this$_scrollMetrics.offset, + visibleLength = _this$_scrollMetrics.visibleLength; + var distanceFromEnd = contentLength - visibleLength - offset; + if (!isVirtualizationDisabled) { + if (visibleLength > 0 && contentLength > 0) { + + if (!_this.props.initialScrollIndex || _this._scrollMetrics.offset || Math.abs(distanceFromEnd) < Number.EPSILON) { + newState = (0, _$$_REQUIRE(_dependencyMap[15], "./VirtualizeUtils").computeWindowedRenderLimits)(_this.props.data, _this.props.getItemCount, maxToRenderPerBatchOrDefault(_this.props.maxToRenderPerBatch), windowSizeOrDefault(_this.props.windowSize), state, _this.__getFrameMetricsApprox, _this._scrollMetrics); + } + } + } else { + var renderAhead = distanceFromEnd < onEndReachedThreshold * visibleLength ? maxToRenderPerBatchOrDefault(_this.props.maxToRenderPerBatch) : 0; + newState = { + first: 0, + last: Math.min(state.last + renderAhead, getItemCount(data) - 1) + }; + } + if (newState && _this._nestedChildLists.size > 0) { + var newFirst = newState.first; + var newLast = newState.last; + for (var ii = newFirst; ii <= newLast; ii++) { + var cellKeyForIndex = _this._indicesToKeys.get(ii); + var childListKeys = cellKeyForIndex && _this._cellKeysToChildListKeys.get(cellKeyForIndex); + if (!childListKeys) { + continue; + } + var someChildHasMore = false; + for (var childKey of childListKeys) { + var childList = _this._nestedChildLists.get(childKey); + if (childList && childList.ref && childList.ref.hasMore()) { + someChildHasMore = true; + break; + } + } + if (someChildHasMore) { + newState.last = ii; + break; + } + } + } + if (newState != null && newState.first === state.first && newState.last === state.last) { + newState = null; + } + return newState; + }); + }; + _this._createViewToken = function (index, isViewable) { + var _this$props2 = _this.props, + data = _this$props2.data, + getItem = _this$props2.getItem; + var item = getItem(data, index); + return { + index: index, + item: item, + key: _this._keyExtractor(item, index), + isViewable: isViewable + }; + }; + _this.__getFrameMetricsApprox = function (index) { + var frame = _this._getFrameMetrics(index); + if (frame && frame.index === index) { + return frame; + } else { + var getItemLayout = _this.props.getItemLayout; + _$$_REQUIRE(_dependencyMap[11], "invariant")(!getItemLayout, 'Should not have to estimate frames when a measurement metrics function is provided'); + return { + length: _this._averageCellLength, + offset: _this._averageCellLength * index + }; + } + }; + _this._getFrameMetrics = function (index) { + var _this$props3 = _this.props, + data = _this$props3.data, + getItem = _this$props3.getItem, + getItemCount = _this$props3.getItemCount, + getItemLayout = _this$props3.getItemLayout; + _$$_REQUIRE(_dependencyMap[11], "invariant")(getItemCount(data) > index, 'Tried to get frame for out of range index ' + index); + var item = getItem(data, index); + var frame = item && _this._frames[_this._keyExtractor(item, index)]; + if (!frame || frame.index !== index) { + if (getItemLayout) { + return getItemLayout(data, index); + } + } + return frame; + }; + _$$_REQUIRE(_dependencyMap[11], "invariant")( + !_props.onScroll || !_props.onScroll.__isNative, 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' + 'to support native onScroll events with useNativeDriver'); + _$$_REQUIRE(_dependencyMap[11], "invariant")(windowSizeOrDefault(_props.windowSize) > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'); + _this._fillRateHelper = new (_$$_REQUIRE(_dependencyMap[16], "./FillRateHelper"))(_this._getFrameMetrics); + _this._updateCellsToRenderBatcher = new (_$$_REQUIRE(_dependencyMap[17], "../Interaction/Batchinator"))(_this._updateCellsToRender, (_this$props$updateCel = _this.props.updateCellsBatchingPeriod) != null ? _this$props$updateCel : 50); + if (_this.props.viewabilityConfigCallbackPairs) { + _this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityHelper: new (_$$_REQUIRE(_dependencyMap[18], "./ViewabilityHelper"))(pair.viewabilityConfig), + onViewableItemsChanged: pair.onViewableItemsChanged + }; + }); + } else { + var _this$props4 = _this.props, + onViewableItemsChanged = _this$props4.onViewableItemsChanged, + viewabilityConfig = _this$props4.viewabilityConfig; + if (onViewableItemsChanged) { + _this._viewabilityTuples.push({ + viewabilityHelper: new (_$$_REQUIRE(_dependencyMap[18], "./ViewabilityHelper"))(viewabilityConfig), + onViewableItemsChanged: onViewableItemsChanged + }); + } + } + var initialState = { + first: _this.props.initialScrollIndex || 0, + last: Math.min(_this.props.getItemCount(_this.props.data), (_this.props.initialScrollIndex || 0) + initialNumToRenderOrDefault(_this.props.initialNumToRender)) - 1 + }; + if (_this._isNestedWithSameOrientation()) { + var storedState = _this.context.getNestedChildState(_this._getListKey()); + if (storedState) { + initialState = storedState; + _this.state = storedState; + _this._frames = storedState.frames; + } + } + _this.state = initialState; + return _this; + } + (0, _createClass2.default)(VirtualizedList, [{ + key: "scrollToEnd", + value: + function scrollToEnd(params) { + var animated = params ? params.animated : true; + var veryLast = this.props.getItemCount(this.props.data) - 1; + var frame = this.__getFrameMetricsApprox(veryLast); + var offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength); + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); + return; + } + this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + + }, { + key: "scrollToIndex", + value: + function scrollToIndex(params) { + var _this$props5 = this.props, + data = _this$props5.data, + horizontal = _this$props5.horizontal, + getItemCount = _this$props5.getItemCount, + getItemLayout = _this$props5.getItemLayout, + onScrollToIndexFailed = _this$props5.onScrollToIndexFailed; + var animated = params.animated, + index = params.index, + viewOffset = params.viewOffset, + viewPosition = params.viewPosition; + _$$_REQUIRE(_dependencyMap[11], "invariant")(index >= 0, "scrollToIndex out of range: requested index " + index + " but minimum is 0"); + _$$_REQUIRE(_dependencyMap[11], "invariant")(getItemCount(data) >= 1, "scrollToIndex out of range: item length " + getItemCount(data) + " but minimum is 1"); + _$$_REQUIRE(_dependencyMap[11], "invariant")(index < getItemCount(data), "scrollToIndex out of range: requested index " + index + " is out of 0 to " + (getItemCount(data) - 1)); + if (!getItemLayout && index > this._highestMeasuredFrameIndex) { + _$$_REQUIRE(_dependencyMap[11], "invariant")(!!onScrollToIndexFailed, '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.'); + onScrollToIndexFailed({ + averageItemLength: this._averageCellLength, + highestMeasuredFrameIndex: this._highestMeasuredFrameIndex, + index: index + }); + return; + } + var frame = this.__getFrameMetricsApprox(index); + var offset = Math.max(0, frame.offset - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0); + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); + return; + } + this._scrollRef.scrollTo(horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + + }, { + key: "scrollToItem", + value: + function scrollToItem(params) { + var item = params.item; + var _this$props6 = this.props, + data = _this$props6.data, + getItem = _this$props6.getItem, + getItemCount = _this$props6.getItemCount; + var itemCount = getItemCount(data); + for (var _index = 0; _index < itemCount; _index++) { + if (getItem(data, _index) === item) { + this.scrollToIndex(Object.assign({}, params, { + index: _index + })); + break; + } + } + } + + }, { + key: "scrollToOffset", + value: + function scrollToOffset(params) { + var animated = params.animated, + offset = params.offset; + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); + return; + } + this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + }, { + key: "recordInteraction", + value: function recordInteraction() { + this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref.recordInteraction(); + }); + this._viewabilityTuples.forEach(function (t) { + t.viewabilityHelper.recordInteraction(); + }); + this._updateViewableItems(this.props.data); + } + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + if (this._scrollRef == null) { + return; + } + this._scrollRef.flashScrollIndicators(); + } + + }, { + key: "getScrollResponder", + value: + function getScrollResponder() { + if (this._scrollRef && this._scrollRef.getScrollResponder) { + return this._scrollRef.getScrollResponder(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._scrollRef && this._scrollRef.getScrollableNode) { + return this._scrollRef.getScrollableNode(); + } else { + return _$$_REQUIRE(_dependencyMap[19], "../Renderer/shims/ReactNative").findNodeHandle(this._scrollRef); + } + } + }, { + key: "getScrollRef", + value: function getScrollRef() { + if (this._scrollRef && this._scrollRef.getScrollRef) { + return this._scrollRef.getScrollRef(); + } else { + return this._scrollRef; + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._scrollRef) { + this._scrollRef.setNativeProps(props); + } + } + }, { + key: "_getCellKey", + value: function _getCellKey() { + var _this$context; + return ((_this$context = this.context) == null ? void 0 : _this$context.cellKey) || 'rootList'; + } + }, { + key: "_getListKey", + value: function _getListKey() { + return this.props.listKey || this._getCellKey(); + } + }, { + key: "_getDebugInfo", + value: function _getDebugInfo() { + var _this$context2; + return { + listKey: this._getListKey(), + cellKey: this._getCellKey(), + horizontal: horizontalOrDefault(this.props.horizontal), + parent: (_this$context2 = this.context) == null ? void 0 : _this$context2.debugInfo + }; + } + }, { + key: "hasMore", + value: function hasMore() { + return this._hasMore; + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this._isNestedWithSameOrientation()) { + this.context.registerAsNestedChild({ + cellKey: this._getCellKey(), + key: this._getListKey(), + ref: this, + parentDebugInfo: this.context.debugInfo + }); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._isNestedWithSameOrientation()) { + this.context.unregisterAsNestedChild({ + key: this._getListKey(), + state: { + first: this.state.first, + last: this.state.last, + frames: this._frames + } + }); + } + this._updateViewableItems(null); + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.dispose(); + }); + this._fillRateHelper.deactivateAndFlush(); + } + }, { + key: "_pushCells", + value: function _pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, first, last, inversionStyle) { + var _this2 = this; + var _this$props7 = this.props, + CellRendererComponent = _this$props7.CellRendererComponent, + ItemSeparatorComponent = _this$props7.ItemSeparatorComponent, + ListHeaderComponent = _this$props7.ListHeaderComponent, + ListItemComponent = _this$props7.ListItemComponent, + data = _this$props7.data, + debug = _this$props7.debug, + getItem = _this$props7.getItem, + getItemCount = _this$props7.getItemCount, + getItemLayout = _this$props7.getItemLayout, + horizontal = _this$props7.horizontal, + renderItem = _this$props7.renderItem; + var stickyOffset = ListHeaderComponent ? 1 : 0; + var end = getItemCount(data) - 1; + var prevCellKey; + last = Math.min(end, last); + var _loop = function _loop(ii) { + var item = getItem(data, ii); + var key = _this2._keyExtractor(item, ii); + _this2._indicesToKeys.set(ii, key); + if (stickyIndicesFromProps.has(ii + stickyOffset)) { + stickyHeaderIndices.push(cells.length); + } + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(CellRenderer, { + CellRendererComponent: CellRendererComponent, + ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined, + ListItemComponent: ListItemComponent, + cellKey: key, + debug: debug, + fillRateHelper: _this2._fillRateHelper, + getItemLayout: getItemLayout, + horizontal: horizontal, + index: ii, + inversionStyle: inversionStyle, + item: item, + prevCellKey: prevCellKey, + onCellLayout: _this2._onCellLayout, + onUpdateSeparators: _this2._onUpdateSeparators, + onUnmount: _this2._onCellUnmount, + ref: function ref(_ref) { + _this2._cellRefs[key] = _ref; + }, + renderItem: renderItem + }, key)); + prevCellKey = key; + }; + for (var ii = first; ii <= last; ii++) { + _loop(ii); + } + } + }, { + key: "_isVirtualizationDisabled", + value: function _isVirtualizationDisabled() { + return this.props.disableVirtualization || false; + } + }, { + key: "_isNestedWithSameOrientation", + value: function _isNestedWithSameOrientation() { + var nestedContext = this.context; + return !!(nestedContext && !!nestedContext.horizontal === horizontalOrDefault(this.props.horizontal)); + } + }, { + key: "_keyExtractor", + value: function _keyExtractor(item, index) { + if (this.props.keyExtractor != null) { + return this.props.keyExtractor(item, index); + } + var key = (0, _$$_REQUIRE(_dependencyMap[15], "./VirtualizeUtils").keyExtractor)(item, index); + if (key === String(index)) { + _usedIndexForKey = true; + if (item.type && item.type.displayName) { + _keylessItemComponentName = item.type.displayName; + } + } + return key; + } + }, { + key: "render", + value: function render() { + var _this3 = this; + if (__DEV__) { + var flatStyles = _$$_REQUIRE(_dependencyMap[20], "../StyleSheet/flattenStyle")(this.props.contentContainerStyle); + if (flatStyles != null && flatStyles.flexWrap === 'wrap') { + console.warn('`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' + 'Consider using `numColumns` with `FlatList` instead.'); + } + } + var _this$props8 = this.props, + ListEmptyComponent = _this$props8.ListEmptyComponent, + ListFooterComponent = _this$props8.ListFooterComponent, + ListHeaderComponent = _this$props8.ListHeaderComponent; + var _this$props9 = this.props, + data = _this$props9.data, + horizontal = _this$props9.horizontal; + var isVirtualizationDisabled = this._isVirtualizationDisabled(); + var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles.horizontallyInverted : styles.verticallyInverted : null; + var cells = []; + var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices); + var stickyHeaderIndices = []; + if (ListHeaderComponent) { + if (stickyIndicesFromProps.has(0)) { + stickyHeaderIndices.push(0); + } + var element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListHeaderComponent, {}); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this._getCellKey() + '-header', + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + onLayout: this._onLayoutHeader, + style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, this.props.ListHeaderComponentStyle), + children: + element + }) + }, "$header")); + } + var itemCount = this.props.getItemCount(data); + if (itemCount > 0) { + _usedIndexForKey = false; + _keylessItemComponentName = ''; + var spacerKey = this._getSpacerKey(!horizontal); + var lastInitialIndex = this.props.initialScrollIndex ? -1 : initialNumToRenderOrDefault(this.props.initialNumToRender) - 1; + var _this$state = this.state, + first = _this$state.first, + last = _this$state.last; + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, 0, lastInitialIndex, inversionStyle); + var firstAfterInitial = Math.max(lastInitialIndex + 1, first); + if (!isVirtualizationDisabled && first > lastInitialIndex + 1) { + var insertedStickySpacer = false; + if (stickyIndicesFromProps.size > 0) { + var stickyOffset = ListHeaderComponent ? 1 : 0; + for (var ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) { + if (stickyIndicesFromProps.has(ii + stickyOffset)) { + var initBlock = this.__getFrameMetricsApprox(lastInitialIndex); + var stickyBlock = this.__getFrameMetricsApprox(ii); + var leadSpace = stickyBlock.offset - initBlock.offset - (this.props.initialScrollIndex ? 0 : initBlock.length); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: (0, _defineProperty2.default)({}, spacerKey, leadSpace) + }, "$sticky_lead")); + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, ii, ii, inversionStyle); + var trailSpace = this.__getFrameMetricsApprox(first).offset - (stickyBlock.offset + stickyBlock.length); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: (0, _defineProperty2.default)({}, spacerKey, trailSpace) + }, "$sticky_trail")); + insertedStickySpacer = true; + break; + } + } + } + if (!insertedStickySpacer) { + var _initBlock = this.__getFrameMetricsApprox(lastInitialIndex); + var firstSpace = this.__getFrameMetricsApprox(first).offset - (_initBlock.offset + _initBlock.length); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: (0, _defineProperty2.default)({}, spacerKey, firstSpace) + }, "$lead_spacer")); + } + } + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, firstAfterInitial, last, inversionStyle); + if (!this._hasWarned.keys && _usedIndexForKey) { + console.warn('VirtualizedList: missing keys for items, make sure to specify a key or id property on each ' + 'item or provide a custom keyExtractor.', _keylessItemComponentName); + this._hasWarned.keys = true; + } + if (!isVirtualizationDisabled && last < itemCount - 1) { + var lastFrame = this.__getFrameMetricsApprox(last); + var end = this.props.getItemLayout ? itemCount - 1 : Math.min(itemCount - 1, this._highestMeasuredFrameIndex); + var endFrame = this.__getFrameMetricsApprox(end); + var tailSpacerLength = endFrame.offset + endFrame.length - (lastFrame.offset + lastFrame.length); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: (0, _defineProperty2.default)({}, spacerKey, tailSpacerLength) + }, "$tail_spacer")); + } + } else if (ListEmptyComponent) { + var _element = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListEmptyComponent, {}); + cells.push(React.cloneElement(_element, { + key: '$empty', + onLayout: function onLayout(event) { + _this3._onLayoutEmpty(event); + if (_element.props.onLayout) { + _element.props.onLayout(event); + } + }, + style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, _element.props.style) + })); + } + if (ListFooterComponent) { + var _element2 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListFooterComponent, {}); + cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this._getFooterCellKey(), + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + onLayout: this._onLayoutFooter, + style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, this.props.ListFooterComponentStyle), + children: + _element2 + }) + }, "$footer")); + } + var scrollProps = 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: scrollEventThrottleOrDefault(this.props.scrollEventThrottle), + invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted, + stickyHeaderIndices: stickyHeaderIndices, + style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style + }); + this._hasMore = this.state.last < this.props.getItemCount(this.props.data) - 1; + var innerRet = (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListContextProvider, { + value: { + cellKey: null, + getScrollMetrics: this._getScrollMetrics, + horizontal: horizontalOrDefault(this.props.horizontal), + getOutermostParentListRef: this._getOutermostParentListRef, + getNestedChildState: this._getNestedChildState, + registerAsNestedChild: this._registerAsNestedChild, + unregisterAsNestedChild: this._unregisterAsNestedChild, + debugInfo: this._getDebugInfo() + }, + children: React.cloneElement((this.props.renderScrollComponent || this._defaultRenderScrollComponent)(scrollProps), { + ref: this._captureScrollRef + }, cells) + }); + var ret = innerRet; + if (__DEV__) { + ret = (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView").Context.Consumer, { + children: function children(scrollContext) { + if (scrollContext != null && !scrollContext.horizontal === !horizontalOrDefault(_this3.props.horizontal) && !_this3._hasWarned.nesting && _this3.context == null) { + console.error('VirtualizedLists should never be nested inside plain ScrollViews with the same ' + 'orientation because it can break windowing and other functionality - use another ' + 'VirtualizedList-backed container instead.'); + _this3._hasWarned.nesting = true; + } + return innerRet; + } + }); + } + if (this.props.debug) { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: styles.debug, + children: [ret, this._renderDebugOverlay()] + }); + } else { + return ret; + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props10 = this.props, + data = _this$props10.data, + extraData = _this$props10.extraData; + if (data !== prevProps.data || extraData !== prevProps.extraData) { + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.resetViewableIndices(); + }); + } + var hiPriInProgress = this._hiPriInProgress; + this._scheduleCellsToRenderUpdate(); + if (hiPriInProgress) { + this._hiPriInProgress = false; + } + } + }, { + key: "_computeBlankness", + value: function _computeBlankness() { + this._fillRateHelper.computeBlankness(this.props, this.state, this._scrollMetrics); + } + + }, { + key: "_triggerRemeasureForChildListsInCell", + value: function _triggerRemeasureForChildListsInCell(cellKey) { + var childListKeys = this._cellKeysToChildListKeys.get(cellKey); + if (childListKeys) { + for (var childKey of childListKeys) { + var childList = this._nestedChildLists.get(childKey); + childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); + } + } + } + }, { + key: "measureLayoutRelativeToContainingList", + value: function measureLayoutRelativeToContainingList() { + var _this4 = this; + try { + if (!this._scrollRef) { + return; + } + this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) { + _this4._offsetFromParentVirtualizedList = _this4._selectOffset({ + x: x, + y: y + }); + _this4._scrollMetrics.contentLength = _this4._selectLength({ + width: width, + height: height + }); + var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.getScrollMetrics()); + var metricsChanged = _this4._scrollMetrics.visibleLength !== scrollMetrics.visibleLength || _this4._scrollMetrics.offset !== scrollMetrics.offset; + if (metricsChanged) { + _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength; + _this4._scrollMetrics.offset = scrollMetrics.offset; + + _this4._cellKeysToChildListKeys.forEach(function (childListKeys) { + if (childListKeys) { + for (var childKey of childListKeys) { + var childList = _this4._nestedChildLists.get(childKey); + childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); + } + } + }); + } + }, function (error) { + console.warn("VirtualizedList: Encountered an error while measuring a list's" + ' offset from its containing VirtualizedList.'); + }); + } catch (error) { + console.warn('measureLayoutRelativeToContainingList threw an error', error.stack); + } + } + }, { + key: "_getFooterCellKey", + value: function _getFooterCellKey() { + return this._getCellKey() + '-footer'; + } + }, { + key: "_renderDebugOverlay", + value: function _renderDebugOverlay() { + var _this5 = this; + var normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1); + var framesInLayout = []; + var itemCount = this.props.getItemCount(this.props.data); + for (var ii = 0; ii < itemCount; ii++) { + var frame = this.__getFrameMetricsApprox(ii); + if (frame.inLayout) { + framesInLayout.push(frame); + } + } + var windowTop = this.__getFrameMetricsApprox(this.state.first).offset; + var frameLast = this.__getFrameMetricsApprox(this.state.last); + var windowLen = frameLast.offset + frameLast.length - windowTop; + var visTop = this._scrollMetrics.offset; + var visLen = this._scrollMetrics.visibleLength; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: [styles.debugOverlayBase, styles.debugOverlay], + children: [framesInLayout.map(function (f, ii) { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: [styles.debugOverlayBase, styles.debugOverlayFrame, { + top: f.offset * normalize, + height: f.length * normalize + }] + }, 'f' + ii); + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: [styles.debugOverlayBase, styles.debugOverlayFrameLast, { + top: windowTop * normalize, + height: windowLen * normalize + }] + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: [styles.debugOverlayBase, styles.debugOverlayFrameVis, { + top: visTop * normalize, + height: visLen * normalize + }] + })] + }); + } + }, { + key: "_selectLength", + value: function _selectLength(metrics) { + return !horizontalOrDefault(this.props.horizontal) ? metrics.height : metrics.width; + } + }, { + key: "_selectOffset", + value: function _selectOffset(metrics) { + return !horizontalOrDefault(this.props.horizontal) ? metrics.y : metrics.x; + } + }, { + key: "_maybeCallOnEndReached", + value: function _maybeCallOnEndReached() { + var _this$props11 = this.props, + data = _this$props11.data, + getItemCount = _this$props11.getItemCount, + onEndReached = _this$props11.onEndReached, + onEndReachedThreshold = _this$props11.onEndReachedThreshold; + var _this$_scrollMetrics2 = this._scrollMetrics, + contentLength = _this$_scrollMetrics2.contentLength, + visibleLength = _this$_scrollMetrics2.visibleLength, + offset = _this$_scrollMetrics2.offset; + var distanceFromEnd = contentLength - visibleLength - offset; + + if (distanceFromEnd < ON_END_REACHED_EPSILON) { + distanceFromEnd = 0; + } + + var threshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : 2; + if (onEndReached && this.state.last === getItemCount(data) - 1 && distanceFromEnd <= threshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) { + this._sentEndForContentLength = this._scrollMetrics.contentLength; + onEndReached({ + distanceFromEnd: distanceFromEnd + }); + } else if (distanceFromEnd > threshold) { + this._sentEndForContentLength = 0; + } + } + }, { + key: "_scheduleCellsToRenderUpdate", + value: function _scheduleCellsToRenderUpdate() { + var _this$state2 = this.state, + first = _this$state2.first, + last = _this$state2.last; + var _this$_scrollMetrics3 = this._scrollMetrics, + offset = _this$_scrollMetrics3.offset, + visibleLength = _this$_scrollMetrics3.visibleLength, + velocity = _this$_scrollMetrics3.velocity; + var itemCount = this.props.getItemCount(this.props.data); + var hiPri = false; + var onEndReachedThreshold = onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold); + var scrollingThreshold = onEndReachedThreshold * visibleLength / 2; + if (first > 0) { + var distTop = offset - this.__getFrameMetricsApprox(first).offset; + hiPri = hiPri || distTop < 0 || velocity < -2 && distTop < scrollingThreshold; + } + if (last < itemCount - 1) { + var distBottom = this.__getFrameMetricsApprox(last).offset - (offset + visibleLength); + hiPri = hiPri || distBottom < 0 || velocity > 2 && distBottom < scrollingThreshold; + } + if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) { + this._hiPriInProgress = true; + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + this._updateCellsToRender(); + return; + } else { + this._updateCellsToRenderBatcher.schedule(); + } + } + }, { + key: "_updateViewableItems", + value: function _updateViewableItems(data) { + var _this6 = this; + var getItemCount = this.props.getItemCount; + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.onUpdate(getItemCount(data), _this6._scrollMetrics.offset, _this6._scrollMetrics.visibleLength, _this6._getFrameMetrics, _this6._createViewToken, tuple.onViewableItemsChanged, _this6.state); + }); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(newProps, prevState) { + var data = newProps.data, + getItemCount = newProps.getItemCount; + var maxToRenderPerBatch = maxToRenderPerBatchOrDefault(newProps.maxToRenderPerBatch); + return { + first: Math.max(0, Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch)), + last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)) + }; + } + }]); + return VirtualizedList; + }(React.PureComponent); + VirtualizedList.contextType = _$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListContext; + var CellRenderer = function (_React$Component) { + (0, _inherits2.default)(CellRenderer, _React$Component); + var _super2 = _createSuper(CellRenderer); + function CellRenderer() { + var _this7; + (0, _classCallCheck2.default)(this, CellRenderer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this7 = _super2.call.apply(_super2, [this].concat(args)); + _this7.state = { + separatorProps: { + highlighted: false, + leadingItem: _this7.props.item + } + }; + _this7._separators = { + highlight: function highlight() { + var _this7$props = _this7.props, + cellKey = _this7$props.cellKey, + prevCellKey = _this7$props.prevCellKey; + _this7.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: true + }); + }, + unhighlight: function unhighlight() { + var _this7$props2 = _this7.props, + cellKey = _this7$props2.cellKey, + prevCellKey = _this7$props2.prevCellKey; + _this7.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: false + }); + }, + updateProps: function updateProps(select, newProps) { + var _this7$props3 = _this7.props, + cellKey = _this7$props3.cellKey, + prevCellKey = _this7$props3.prevCellKey; + _this7.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps); + } + }; + _this7._onLayout = function (nativeEvent) { + _this7.props.onCellLayout && _this7.props.onCellLayout(nativeEvent, _this7.props.cellKey, _this7.props.index); + }; + return _this7; + } + (0, _createClass2.default)(CellRenderer, [{ + key: "updateSeparatorProps", + value: function updateSeparatorProps(newProps) { + this.setState(function (state) { + return { + separatorProps: Object.assign({}, state.separatorProps, newProps) + }; + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.props.onUnmount(this.props.cellKey); + } + }, { + key: "_renderElement", + value: function _renderElement(renderItem, ListItemComponent, item, index) { + if (renderItem && ListItemComponent) { + console.warn('VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take' + ' precedence over renderItem.'); + } + if (ListItemComponent) { + return React.createElement(ListItemComponent, { + item: item, + index: index, + separators: this._separators + }); + } + if (renderItem) { + return renderItem({ + item: item, + index: index, + separators: this._separators + }); + } + _$$_REQUIRE(_dependencyMap[11], "invariant")(false, 'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.'); + } + }, { + key: "render", + value: function render() { + var _this$props12 = this.props, + CellRendererComponent = _this$props12.CellRendererComponent, + ItemSeparatorComponent = _this$props12.ItemSeparatorComponent, + ListItemComponent = _this$props12.ListItemComponent, + debug = _this$props12.debug, + fillRateHelper = _this$props12.fillRateHelper, + getItemLayout = _this$props12.getItemLayout, + horizontal = _this$props12.horizontal, + item = _this$props12.item, + index = _this$props12.index, + inversionStyle = _this$props12.inversionStyle, + renderItem = _this$props12.renderItem; + var element = this._renderElement(renderItem, ListItemComponent, item, index); + var onLayout = getItemLayout && !debug && !fillRateHelper.enabled() || !this.props.onCellLayout ? undefined : this._onLayout; + var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps)); + var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle; + var result = !CellRendererComponent ? (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { + style: cellStyle, + onLayout: onLayout, + children: [element, itemSeparator] + }) : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(CellRendererComponent, Object.assign({}, this.props, { + style: cellStyle, + onLayout: onLayout, + children: [element, itemSeparator] + })); + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this.props.cellKey, + children: result + }); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, prevState) { + return { + separatorProps: Object.assign({}, prevState.separatorProps, { + leadingItem: props.item + }) + }; + } + + }]); + return CellRenderer; + }(React.Component); + function describeNestedLists(childList) { + var trace = 'VirtualizedList trace:\n' + (" Child (" + (childList.horizontal ? 'horizontal' : 'vertical') + "):\n") + (" listKey: " + childList.key + "\n") + (" cellKey: " + childList.cellKey); + var debugInfo = childList.parentDebugInfo; + while (debugInfo) { + trace += "\n Parent (" + (debugInfo.horizontal ? 'horizontal' : 'vertical') + "):\n" + (" listKey: " + debugInfo.listKey + "\n") + (" cellKey: " + debugInfo.cellKey); + debugInfo = debugInfo.parent; + } + return trace; + } + var styles = _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").create({ + verticallyInverted: { + transform: [{ + scaleY: -1 + }] + }, + horizontallyInverted: { + transform: [{ + scaleX: -1 + }] + }, + row: { + flexDirection: 'row' + }, + rowReverse: { + flexDirection: 'row-reverse' + }, + columnReverse: { + flexDirection: 'column-reverse' + }, + 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 + } + }); + module.exports = VirtualizedList; +},309,[3,306,12,13,49,50,47,46,36,73,245,17,310,326,124,308,329,330,331,34,189,332,244],"node_modules/react-native/Libraries/Lists/VirtualizedList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Animated/AnimatedImplementation")); + var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Dimensions")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _ReactNative = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../Renderer/shims/ReactNative")); + var _ScrollViewStickyHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./ScrollViewStickyHeader")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "../View/View")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "../../ReactNative/UIManager")); + var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "../Keyboard/Keyboard")); + var _FrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "../../Interaction/FrameRateLogger")); + var _TextInputState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "../TextInput/TextInputState")); + var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[20], "../../Utilities/dismissKeyboard")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[21], "../../StyleSheet/flattenStyle")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[22], "invariant")); + var _processDecelerationRate = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[23], "./processDecelerationRate")); + var _splitLayoutProps2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[24], "../../StyleSheet/splitLayoutProps")); + var _setAndForwardRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[25], "../../Utilities/setAndForwardRef")); + var _ScrollViewContext = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[26], "./ScrollViewContext")); + var _ScrollViewCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[27], "./ScrollViewCommands")); + var _AndroidHorizontalScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[28], "./AndroidHorizontalScrollContentViewNativeComponent")); + var _AndroidHorizontalScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[29], "./AndroidHorizontalScrollViewNativeComponent")); + var _ScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[30], "./ScrollContentViewNativeComponent")); + var _ScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[31], "./ScrollViewNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + _$$_REQUIRE(_dependencyMap[12], "../../Renderer/shims/ReactNative"); + + var _ref = _Platform.default.OS === 'android' ? { + NativeHorizontalScrollViewTuple: [_AndroidHorizontalScrollViewNativeComponent.default, _AndroidHorizontalScrollContentViewNativeComponent.default], + NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _View.default] + } : { + NativeHorizontalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default], + NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default] + }, + NativeHorizontalScrollViewTuple = _ref.NativeHorizontalScrollViewTuple, + NativeVerticalScrollViewTuple = _ref.NativeVerticalScrollViewTuple; + + var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; + var ScrollView = function (_React$Component) { + (0, _inherits2.default)(ScrollView, _React$Component); + var _super = _createSuper(ScrollView); + function ScrollView(props) { + var _this$props$contentOf, _this$props$contentOf2, _this$props$contentIn, _this$props$contentIn2; + var _this; + (0, _classCallCheck2.default)(this, ScrollView); + _this = _super.call(this, props); + _this._scrollAnimatedValueAttachment = null; + _this._stickyHeaderRefs = new Map(); + _this._headerLayoutYs = new Map(); + _this._keyboardMetrics = null; + _this._additionalScrollOffset = 0; + _this._isTouching = false; + _this._lastMomentumScrollBeginTime = 0; + _this._lastMomentumScrollEndTime = 0; + _this._observedScrollSinceBecomingResponder = false; + _this._becameResponderWhileAnimating = false; + _this._preventNegativeScrollOffset = null; + _this._animated = null; + _this._subscriptionKeyboardWillShow = null; + _this._subscriptionKeyboardWillHide = null; + _this._subscriptionKeyboardDidShow = null; + _this._subscriptionKeyboardDidHide = null; + _this.state = { + layoutHeight: null + }; + _this._setNativeRef = (0, _setAndForwardRef.default)({ + getForwardedRef: function getForwardedRef() { + return _this.props.scrollViewRef; + }, + setLocalRef: function setLocalRef(ref) { + _this._scrollViewRef = ref; + + if (ref) { + ref.getScrollResponder = _this.getScrollResponder; + ref.getScrollableNode = _this.getScrollableNode; + ref.getInnerViewNode = _this.getInnerViewNode; + ref.getInnerViewRef = _this.getInnerViewRef; + ref.getNativeScrollRef = _this.getNativeScrollRef; + ref.scrollTo = _this.scrollTo; + ref.scrollToEnd = _this.scrollToEnd; + ref.flashScrollIndicators = _this.flashScrollIndicators; + ref.scrollResponderZoomTo = _this.scrollResponderZoomTo; + ref.scrollResponderScrollNativeHandleToKeyboard = _this.scrollResponderScrollNativeHandleToKeyboard; + } + } + }); + _this.getScrollResponder = function () { + return (0, _assertThisInitialized2.default)(_this); + }; + _this.getScrollableNode = function () { + return _ReactNative.default.findNodeHandle(_this._scrollViewRef); + }; + _this.getInnerViewNode = function () { + return _ReactNative.default.findNodeHandle(_this._innerViewRef); + }; + _this.getInnerViewRef = function () { + return _this._innerViewRef; + }; + _this.getNativeScrollRef = function () { + return _this._scrollViewRef; + }; + _this.scrollTo = function (options, deprecatedX, deprecatedAnimated) { + var x, y, animated; + if (typeof options === 'number') { + console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' + 'animated: true})` instead.'); + y = options; + x = deprecatedX; + animated = deprecatedAnimated; + } else if (options) { + y = options.y; + x = options.x; + animated = options.animated; + } + if (_this._scrollViewRef == null) { + return; + } + _ScrollViewCommands.default.scrollTo(_this._scrollViewRef, x || 0, y || 0, animated !== false); + }; + _this.scrollToEnd = function (options) { + var animated = (options && options.animated) !== false; + if (_this._scrollViewRef == null) { + return; + } + _ScrollViewCommands.default.scrollToEnd(_this._scrollViewRef, animated); + }; + _this.flashScrollIndicators = function () { + if (_this._scrollViewRef == null) { + return; + } + _ScrollViewCommands.default.flashScrollIndicators(_this._scrollViewRef); + }; + _this.scrollResponderScrollNativeHandleToKeyboard = function (nodeHandle, additionalOffset, preventNegativeScrollOffset) { + _this._additionalScrollOffset = additionalOffset || 0; + _this._preventNegativeScrollOffset = !!preventNegativeScrollOffset; + if (_this._innerViewRef == null) { + return; + } + if (typeof nodeHandle === 'number') { + _UIManager.default.measureLayout(nodeHandle, _ReactNative.default.findNodeHandle((0, _assertThisInitialized2.default)(_this)), + _this._textInputFocusError, _this._inputMeasureAndScrollToKeyboard); + } else { + nodeHandle.measureLayout(_this._innerViewRef, _this._inputMeasureAndScrollToKeyboard, + _this._textInputFocusError); + } + }; + _this.scrollResponderZoomTo = function (rect, animated) { + (0, _invariant.default)(_Platform.default.OS === 'ios', 'zoomToRect is not implemented'); + if ('animated' in rect) { + _this._animated = rect.animated; + delete rect.animated; + } else if (typeof animated !== 'undefined') { + console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead'); + } + if (_this._scrollViewRef == null) { + return; + } + _ScrollViewCommands.default.zoomToRect(_this._scrollViewRef, rect, animated !== false); + }; + _this._inputMeasureAndScrollToKeyboard = function (left, top, width, height) { + var keyboardScreenY = _Dimensions.default.get('window').height; + var scrollTextInputIntoVisibleRect = function scrollTextInputIntoVisibleRect() { + if (_this._keyboardMetrics != null) { + keyboardScreenY = _this._keyboardMetrics.screenY; + } + var scrollOffsetY = top - keyboardScreenY + height + _this._additionalScrollOffset; + + if (_this._preventNegativeScrollOffset === true) { + scrollOffsetY = Math.max(0, scrollOffsetY); + } + _this.scrollTo({ + x: 0, + y: scrollOffsetY, + animated: true + }); + _this._additionalScrollOffset = 0; + _this._preventNegativeScrollOffset = false; + }; + if (_this._keyboardMetrics == null) { + setTimeout(function () { + scrollTextInputIntoVisibleRect(); + }, 0); + } else { + scrollTextInputIntoVisibleRect(); + } + }; + _this._handleScroll = function (e) { + if (__DEV__) { + if (_this.props.onScroll && _this.props.scrollEventThrottle == null && _Platform.default.OS === 'ios') { + console.log('You specified `onScroll` on a but not ' + '`scrollEventThrottle`. You will only receive one event. ' + 'Using `16` you get all the events but be aware that it may ' + "cause frame drops, use a bigger number if you don't need as " + 'much precision.'); + } + } + _this._observedScrollSinceBecomingResponder = true; + _this.props.onScroll && _this.props.onScroll(e); + }; + _this._handleLayout = function (e) { + if (_this.props.invertStickyHeaders === true) { + _this.setState({ + layoutHeight: e.nativeEvent.layout.height + }); + } + if (_this.props.onLayout) { + _this.props.onLayout(e); + } + }; + _this._handleContentOnLayout = function (e) { + var _e$nativeEvent$layout = e.nativeEvent.layout, + width = _e$nativeEvent$layout.width, + height = _e$nativeEvent$layout.height; + _this.props.onContentSizeChange && _this.props.onContentSizeChange(width, height); + }; + _this._scrollViewRef = null; + _this._innerViewRef = null; + _this._setInnerViewRef = (0, _setAndForwardRef.default)({ + getForwardedRef: function getForwardedRef() { + return _this.props.innerViewRef; + }, + setLocalRef: function setLocalRef(ref) { + _this._innerViewRef = ref; + } + }); + _this.scrollResponderKeyboardWillShow = function (e) { + _this._keyboardMetrics = e.endCoordinates; + _this.props.onKeyboardWillShow && _this.props.onKeyboardWillShow(e); + }; + _this.scrollResponderKeyboardWillHide = function (e) { + _this._keyboardMetrics = null; + _this.props.onKeyboardWillHide && _this.props.onKeyboardWillHide(e); + }; + _this.scrollResponderKeyboardDidShow = function (e) { + _this._keyboardMetrics = e.endCoordinates; + _this.props.onKeyboardDidShow && _this.props.onKeyboardDidShow(e); + }; + _this.scrollResponderKeyboardDidHide = function (e) { + _this._keyboardMetrics = null; + _this.props.onKeyboardDidHide && _this.props.onKeyboardDidHide(e); + }; + _this._handleMomentumScrollBegin = function (e) { + _this._lastMomentumScrollBeginTime = global.performance.now(); + _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); + }; + _this._handleMomentumScrollEnd = function (e) { + _FrameRateLogger.default.endScroll(); + _this._lastMomentumScrollEndTime = global.performance.now(); + _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); + }; + _this._handleScrollBeginDrag = function (e) { + _FrameRateLogger.default.beginScroll(); + + if (_Platform.default.OS === 'android' && _this.props.keyboardDismissMode === 'on-drag') { + (0, _dismissKeyboard.default)(); + } + _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); + }; + _this._handleScrollEndDrag = function (e) { + var velocity = e.nativeEvent.velocity; + if (!_this._isAnimating() && (!velocity || velocity.x === 0 && velocity.y === 0)) { + _FrameRateLogger.default.endScroll(); + } + _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); + }; + _this._isAnimating = function () { + var now = global.performance.now(); + var timeSinceLastMomentumScrollEnd = now - _this._lastMomentumScrollEndTime; + var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || _this._lastMomentumScrollEndTime < _this._lastMomentumScrollBeginTime; + return isAnimating; + }; + _this._handleResponderGrant = function (e) { + _this._observedScrollSinceBecomingResponder = false; + _this.props.onResponderGrant && _this.props.onResponderGrant(e); + _this._becameResponderWhileAnimating = _this._isAnimating(); + }; + _this._handleResponderReject = function () {}; + _this._handleResponderRelease = function (e) { + _this._isTouching = e.nativeEvent.touches.length !== 0; + _this.props.onResponderRelease && _this.props.onResponderRelease(e); + if (typeof e.target === 'number') { + if (__DEV__) { + console.error('Did not expect event target to be a number. Should have been a native component'); + } + return; + } + + var currentlyFocusedTextInput = _TextInputState.default.currentlyFocusedInput(); + if (_this.props.keyboardShouldPersistTaps !== true && _this.props.keyboardShouldPersistTaps !== 'always' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedTextInput && !_this._observedScrollSinceBecomingResponder && !_this._becameResponderWhileAnimating) { + _TextInputState.default.blurTextInput(currentlyFocusedTextInput); + } + }; + _this._handleResponderTerminationRequest = function () { + return !_this._observedScrollSinceBecomingResponder; + }; + _this._handleScrollShouldSetResponder = function () { + if (_this.props.disableScrollViewPanResponder === true) { + return false; + } + return _this._isTouching; + }; + _this._handleStartShouldSetResponder = function (e) { + if (_this.props.disableScrollViewPanResponder === true) { + return false; + } + var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); + if (_this.props.keyboardShouldPersistTaps === 'handled' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedInput) { + return true; + } + return false; + }; + _this._handleStartShouldSetResponderCapture = function (e) { + if (_this._isAnimating()) { + return true; + } + + if (_this.props.disableScrollViewPanResponder === true) { + return false; + } + + var keyboardShouldPersistTaps = _this.props.keyboardShouldPersistTaps; + var keyboardNeverPersistTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; + if (typeof e.target === 'number') { + if (__DEV__) { + console.error('Did not expect event target to be a number. Should have been a native component'); + } + return false; + } + if (keyboardNeverPersistTaps && _this._keyboardIsDismissible() && e.target != null && + !_TextInputState.default.isTextInput(e.target)) { + return true; + } + return false; + }; + _this._keyboardIsDismissible = function () { + var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); + + var hasFocusedTextInput = currentlyFocusedInput != null && _TextInputState.default.isTextInput(currentlyFocusedInput); + + var softKeyboardMayBeOpen = _this._keyboardMetrics != null || _Platform.default.OS === 'android'; + return hasFocusedTextInput && softKeyboardMayBeOpen; + }; + _this._handleTouchEnd = function (e) { + var nativeEvent = e.nativeEvent; + _this._isTouching = nativeEvent.touches.length !== 0; + _this.props.onTouchEnd && _this.props.onTouchEnd(e); + }; + _this._handleTouchCancel = function (e) { + _this._isTouching = false; + _this.props.onTouchCancel && _this.props.onTouchCancel(e); + }; + _this._handleTouchStart = function (e) { + _this._isTouching = true; + _this.props.onTouchStart && _this.props.onTouchStart(e); + }; + _this._handleTouchMove = function (e) { + _this.props.onTouchMove && _this.props.onTouchMove(e); + }; + _this._scrollAnimatedValue = new _AnimatedImplementation.default.Value((_this$props$contentOf = (_this$props$contentOf2 = _this.props.contentOffset) == null ? void 0 : _this$props$contentOf2.y) != null ? _this$props$contentOf : 0); + _this._scrollAnimatedValue.setOffset((_this$props$contentIn = (_this$props$contentIn2 = _this.props.contentInset) == null ? void 0 : _this$props$contentIn2.top) != null ? _this$props$contentIn : 0); + return _this; + } + (0, _createClass2.default)(ScrollView, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (typeof this.props.keyboardShouldPersistTaps === 'boolean') { + console.warn("'keyboardShouldPersistTaps={" + (this.props.keyboardShouldPersistTaps === true ? 'true' : 'false') + "}' is deprecated. " + ("Use 'keyboardShouldPersistTaps=\"" + (this.props.keyboardShouldPersistTaps ? 'always' : 'never') + "\"' instead")); + } + this._keyboardMetrics = _Keyboard.default.metrics(); + this._additionalScrollOffset = 0; + this._subscriptionKeyboardWillShow = _Keyboard.default.addListener('keyboardWillShow', this.scrollResponderKeyboardWillShow); + this._subscriptionKeyboardWillHide = _Keyboard.default.addListener('keyboardWillHide', this.scrollResponderKeyboardWillHide); + this._subscriptionKeyboardDidShow = _Keyboard.default.addListener('keyboardDidShow', this.scrollResponderKeyboardDidShow); + this._subscriptionKeyboardDidHide = _Keyboard.default.addListener('keyboardDidHide', this.scrollResponderKeyboardDidHide); + this._updateAnimatedNodeAttachment(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var prevContentInsetTop = prevProps.contentInset ? prevProps.contentInset.top : 0; + var newContentInsetTop = this.props.contentInset ? this.props.contentInset.top : 0; + if (prevContentInsetTop !== newContentInsetTop) { + this._scrollAnimatedValue.setOffset(newContentInsetTop || 0); + } + this._updateAnimatedNodeAttachment(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscriptionKeyboardWillShow != null) { + this._subscriptionKeyboardWillShow.remove(); + } + if (this._subscriptionKeyboardWillHide != null) { + this._subscriptionKeyboardWillHide.remove(); + } + if (this._subscriptionKeyboardDidShow != null) { + this._subscriptionKeyboardDidShow.remove(); + } + if (this._subscriptionKeyboardDidHide != null) { + this._subscriptionKeyboardDidHide.remove(); + } + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); + } + } + }, { + key: "_textInputFocusError", + value: function _textInputFocusError() { + console.warn('Error measuring text field.'); + } + + }, { + key: "_getKeyForIndex", + value: function _getKeyForIndex(index, childArray) { + var child = childArray[index]; + return child && child.key; + } + }, { + key: "_updateAnimatedNodeAttachment", + value: function _updateAnimatedNodeAttachment() { + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); + } + if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { + this._scrollAnimatedValueAttachment = _AnimatedImplementation.default.attachNativeEvent(this._scrollViewRef, 'onScroll', [{ + nativeEvent: { + contentOffset: { + y: this._scrollAnimatedValue + } + } + }]); + } + } + }, { + key: "_setStickyHeaderRef", + value: function _setStickyHeaderRef(key, ref) { + if (ref) { + this._stickyHeaderRefs.set(key, ref); + } else { + this._stickyHeaderRefs.delete(key); + } + } + }, { + key: "_onStickyHeaderLayout", + value: function _onStickyHeaderLayout(index, event, key) { + var stickyHeaderIndices = this.props.stickyHeaderIndices; + if (!stickyHeaderIndices) { + return; + } + var childArray = React.Children.toArray(this.props.children); + if (key !== this._getKeyForIndex(index, childArray)) { + return; + } + var layoutY = event.nativeEvent.layout.y; + this._headerLayoutYs.set(key, layoutY); + var indexOfIndex = stickyHeaderIndices.indexOf(index); + var previousHeaderIndex = stickyHeaderIndices[indexOfIndex - 1]; + if (previousHeaderIndex != null) { + var previousHeader = this._stickyHeaderRefs.get(this._getKeyForIndex(previousHeaderIndex, childArray)); + previousHeader && previousHeader.setNextHeaderY && previousHeader.setNextHeaderY(layoutY); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + var _ref2 = this.props.horizontal === true ? NativeHorizontalScrollViewTuple : NativeVerticalScrollViewTuple, + _ref3 = (0, _slicedToArray2.default)(_ref2, 2), + NativeDirectionalScrollView = _ref3[0], + NativeDirectionalScrollContentView = _ref3[1]; + var contentContainerStyle = [this.props.horizontal === true && styles.contentContainerHorizontal, this.props.contentContainerStyle]; + if (__DEV__ && this.props.style !== undefined) { + var style = (0, _flattenStyle.default)(this.props.style); + var childLayoutProps = ['alignItems', 'justifyContent'].filter(function (prop) { + return style && style[prop] !== undefined; + }); + (0, _invariant.default)(childLayoutProps.length === 0, 'ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); + } + var contentSizeChangeProps = this.props.onContentSizeChange == null ? null : { + onLayout: this._handleContentOnLayout + }; + var stickyHeaderIndices = this.props.stickyHeaderIndices; + var children = this.props.children; + if (stickyHeaderIndices != null && stickyHeaderIndices.length > 0) { + var childArray = React.Children.toArray(this.props.children); + children = childArray.map(function (child, index) { + var indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1; + if (indexOfIndex > -1) { + var key = child.key; + var nextIndex = stickyHeaderIndices[indexOfIndex + 1]; + var StickyHeaderComponent = _this2.props.StickyHeaderComponent || _ScrollViewStickyHeader.default; + return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(StickyHeaderComponent, { + nativeID: 'StickyHeader-' + key, + ref: function ref(_ref4) { + return _this2._setStickyHeaderRef(key, _ref4); + }, + nextHeaderLayoutY: _this2._headerLayoutYs.get(_this2._getKeyForIndex(nextIndex, childArray)), + onLayout: function onLayout(event) { + return _this2._onStickyHeaderLayout(index, event, key); + }, + scrollAnimatedValue: _this2._scrollAnimatedValue, + inverted: _this2.props.invertStickyHeaders, + hiddenOnScroll: _this2.props.stickyHeaderHiddenOnScroll, + scrollViewHeight: _this2.state.layoutHeight, + children: child + }, key); + } else { + return child; + } + }); + } + children = (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(_ScrollViewContext.default.Provider, { + value: this.props.horizontal === true ? _ScrollViewContext.HORIZONTAL : _ScrollViewContext.VERTICAL, + children: children + }); + var hasStickyHeaders = Array.isArray(stickyHeaderIndices) && stickyHeaderIndices.length > 0; + var contentContainer = (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollContentView, Object.assign({}, contentSizeChangeProps, { + ref: this._setInnerViewRef, + style: contentContainerStyle, + removeClippedSubviews: + _Platform.default.OS === 'android' && hasStickyHeaders ? false : this.props.removeClippedSubviews, + collapsable: false, + children: children + })); + var alwaysBounceHorizontal = this.props.alwaysBounceHorizontal !== undefined ? this.props.alwaysBounceHorizontal : this.props.horizontal; + var alwaysBounceVertical = this.props.alwaysBounceVertical !== undefined ? this.props.alwaysBounceVertical : !this.props.horizontal; + var baseStyle = this.props.horizontal === true ? styles.baseHorizontal : styles.baseVertical; + var props = Object.assign({}, this.props, { + alwaysBounceHorizontal: alwaysBounceHorizontal, + alwaysBounceVertical: alwaysBounceVertical, + style: _StyleSheet.default.compose(baseStyle, 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, + scrollEventThrottle: hasStickyHeaders ? 1 : this.props.scrollEventThrottle, + sendMomentumEvents: this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd ? true : false, + snapToStart: this.props.snapToStart !== false, + snapToEnd: this.props.snapToEnd !== false, + pagingEnabled: _Platform.default.select({ + ios: this.props.pagingEnabled === true && this.props.snapToInterval == null && this.props.snapToOffsets == null, + android: this.props.pagingEnabled === true || this.props.snapToInterval != null || this.props.snapToOffsets != null + }) + }); + var decelerationRate = this.props.decelerationRate; + if (decelerationRate != null) { + props.decelerationRate = (0, _processDecelerationRate.default)(decelerationRate); + } + var refreshControl = this.props.refreshControl; + if (refreshControl) { + if (_Platform.default.OS === 'ios') { + return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsxs)(NativeDirectionalScrollView, Object.assign({}, props, { + ref: this._setNativeRef, + children: [refreshControl, contentContainer] + })); + } else if (_Platform.default.OS === 'android') { + var _splitLayoutProps = (0, _splitLayoutProps2.default)((0, _flattenStyle.default)(props.style)), + outer = _splitLayoutProps.outer, + inner = _splitLayoutProps.inner; + return React.cloneElement(refreshControl, { + style: _StyleSheet.default.compose(baseStyle, outer) + }, (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { + style: _StyleSheet.default.compose(baseStyle, inner), + ref: this._setNativeRef, + children: contentContainer + }))); + } + } + return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { + ref: this._setNativeRef, + children: contentContainer + })); + } + }]); + return ScrollView; + }(React.Component); + ScrollView.Context = _ScrollViewContext.default; + var styles = _StyleSheet.default.create({ + baseVertical: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'column', + overflow: 'scroll' + }, + baseHorizontal: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'row', + overflow: 'scroll' + }, + contentContainerHorizontal: { + flexDirection: 'row' + } + }); + + function Wrapper(props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(ScrollView, Object.assign({}, props, { + scrollViewRef: ref + })); + } + Wrapper.displayName = 'ScrollView'; + var ForwardedScrollView = React.forwardRef(Wrapper); + + ForwardedScrollView.Context = _ScrollViewContext.default; + ForwardedScrollView.displayName = 'ScrollView'; + module.exports = ForwardedScrollView; +},310,[3,19,12,13,49,50,47,46,282,229,14,36,34,311,244,245,213,312,316,200,314,189,17,318,319,300,320,321,322,323,324,325,73],"node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Animated/AnimatedImplementation")); + var _AnimatedAddition = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Animated/nodes/AnimatedAddition")); + var _AnimatedDiffClamp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Animated/nodes/AnimatedDiffClamp")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Animated/nodes/AnimatedNode")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../View/View")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../../Utilities/Platform")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedView = _AnimatedImplementation.default.createAnimatedComponent(_View.default); + var ScrollViewStickyHeader = function (_React$Component) { + (0, _inherits2.default)(ScrollViewStickyHeader, _React$Component); + var _super = _createSuper(ScrollViewStickyHeader); + function ScrollViewStickyHeader() { + var _this; + (0, _classCallCheck2.default)(this, ScrollViewStickyHeader); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + measured: false, + layoutY: 0, + layoutHeight: 0, + nextHeaderLayoutY: _this.props.nextHeaderLayoutY, + translateY: null + }; + _this._translateY = null; + _this._shouldRecreateTranslateY = true; + _this._haveReceivedInitialZeroTranslateY = true; + _this._debounceTimeout = _Platform.default.OS === 'android' ? 15 : 64; + _this.setNextHeaderY = function (y) { + _this._shouldRecreateTranslateY = true; + _this.setState({ + nextHeaderLayoutY: y + }); + }; + _this._onLayout = function (event) { + var layoutY = event.nativeEvent.layout.y; + var layoutHeight = event.nativeEvent.layout.height; + var measured = true; + if (layoutY !== _this.state.layoutY || layoutHeight !== _this.state.layoutHeight || measured !== _this.state.measured) { + _this._shouldRecreateTranslateY = true; + } + _this.setState({ + measured: measured, + layoutY: layoutY, + layoutHeight: layoutHeight + }); + _this.props.onLayout(event); + var child = React.Children.only(_this.props.children); + if (child.props.onCellLayout) { + child.props.onCellLayout(event, child.props.cellKey, child.props.index); + } else if (child.props.onLayout) { + child.props.onLayout(event); + } + }; + _this._setComponentRef = function (ref) { + _this._ref = ref; + }; + return _this; + } + (0, _createClass2.default)(ScrollViewStickyHeader, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._translateY != null && this._animatedValueListenerId != null) { + this._translateY.removeListener(this._animatedValueListenerId); + } + if (this._timer) { + clearTimeout(this._timer); + } + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + if (nextProps.scrollViewHeight !== this.props.scrollViewHeight || nextProps.scrollAnimatedValue !== this.props.scrollAnimatedValue || nextProps.inverted !== this.props.inverted) { + this._shouldRecreateTranslateY = true; + } + } + }, { + key: "updateTranslateListener", + value: function updateTranslateListener(translateY, isFabric, offset) { + var _this2 = this; + if (this._translateY != null && this._animatedValueListenerId != null) { + this._translateY.removeListener(this._animatedValueListenerId); + } + offset ? this._translateY = new _AnimatedAddition.default(translateY, offset) : this._translateY = translateY; + this._shouldRecreateTranslateY = false; + if (!isFabric) { + return; + } + if (!this._animatedValueListener) { + this._animatedValueListener = function (_ref) { + var value = _ref.value; + if (value === 0 && !_this2._haveReceivedInitialZeroTranslateY) { + _this2._haveReceivedInitialZeroTranslateY = true; + return; + } + if (_this2._timer) { + clearTimeout(_this2._timer); + } + _this2._timer = setTimeout(function () { + if (value !== _this2.state.translateY) { + _this2.setState({ + translateY: value + }); + } + }, _this2._debounceTimeout); + }; + } + if (this.state.translateY !== 0 && this.state.translateY != null) { + this._haveReceivedInitialZeroTranslateY = false; + } + this._animatedValueListenerId = translateY.addListener(this._animatedValueListener); + } + }, { + key: "render", + value: function render() { + var _this$_ref$_internalI, _this$_ref$_internalI2; + var isFabric = !!( + this._ref && (_this$_ref$_internalI = this._ref['_internalInstanceHandle']) != null && (_this$_ref$_internalI2 = _this$_ref$_internalI.stateNode) != null && _this$_ref$_internalI2.canonical); + if (this._shouldRecreateTranslateY) { + var _this$props = this.props, + inverted = _this$props.inverted, + scrollViewHeight = _this$props.scrollViewHeight; + var _this$state = this.state, + measured = _this$state.measured, + layoutHeight = _this$state.layoutHeight, + layoutY = _this$state.layoutY, + nextHeaderLayoutY = _this$state.nextHeaderLayoutY; + var inputRange = [-1, 0]; + var outputRange = [0, 0]; + if (measured) { + if (inverted) { + if (scrollViewHeight != null) { + var stickStartPoint = layoutY + layoutHeight - scrollViewHeight; + if (stickStartPoint > 0) { + inputRange.push(stickStartPoint); + outputRange.push(0); + inputRange.push(stickStartPoint + 1); + outputRange.push(1); + var collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight; + if (collisionPoint > stickStartPoint) { + inputRange.push(collisionPoint, collisionPoint + 1); + outputRange.push(collisionPoint - stickStartPoint, collisionPoint - stickStartPoint); + } + } + } + } else { + inputRange.push(layoutY); + outputRange.push(0); + var _collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight; + if (_collisionPoint >= layoutY) { + inputRange.push(_collisionPoint, _collisionPoint + 1); + outputRange.push(_collisionPoint - layoutY, _collisionPoint - layoutY); + } else { + inputRange.push(layoutY + 1); + outputRange.push(1); + } + } + } + this.updateTranslateListener(this.props.scrollAnimatedValue.interpolate({ + inputRange: inputRange, + outputRange: outputRange + }), isFabric, this.props.hiddenOnScroll ? new _AnimatedDiffClamp.default(this.props.scrollAnimatedValue.interpolate({ + extrapolateLeft: 'clamp', + inputRange: [layoutY, layoutY + 1], + outputRange: [0, 1] + }).interpolate({ + inputRange: [0, 1], + outputRange: [0, -1] + }), -this.state.layoutHeight, 0) : null); + } + var child = React.Children.only(this.props.children); + + var passthroughAnimatedPropExplicitValues = isFabric && this.state.translateY != null ? { + style: { + transform: [{ + translateY: this.state.translateY + }] + } + } : null; + return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(AnimatedView, { + collapsable: false, + nativeID: this.props.nativeID, + onLayout: this._onLayout, + ref: this._setComponentRef, + style: [child.props.style, styles.header, { + transform: [{ + translateY: this._translateY + }] + }], + passthroughAnimatedPropExplicitValues: passthroughAnimatedPropExplicitValues, + children: React.cloneElement(child, { + style: styles.fill, + onLayout: undefined + }) + }); + } + }]); + return ScrollViewStickyHeader; + }(React.Component); + var styles = _StyleSheet.default.create({ + header: { + zIndex: 10, + position: 'relative' + }, + fill: { + flex: 1 + } + }); + module.exports = ScrollViewStickyHeader; +},311,[3,12,13,50,47,46,282,283,288,278,36,244,245,14,73],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../EventEmitter/NativeEventEmitter")); + var _LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../LayoutAnimation/LayoutAnimation")); + var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/dismissKeyboard")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); + var _NativeKeyboardObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./NativeKeyboardObserver")); + var Keyboard = function () { + function Keyboard() { + var _this = this; + (0, _classCallCheck2.default)(this, Keyboard); + this._emitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeKeyboardObserver.default); + this.addListener('keyboardDidShow', function (ev) { + _this._currentlyShowing = ev; + }); + this.addListener('keyboardDidHide', function (_ev) { + _this._currentlyShowing = null; + }); + } + + (0, _createClass2.default)(Keyboard, [{ + key: "addListener", + value: + function addListener(eventType, listener, context) { + return this._emitter.addListener(eventType, listener); + } + + }, { + key: "removeAllListeners", + value: + function removeAllListeners(eventType) { + this._emitter.removeAllListeners(eventType); + } + + }, { + key: "dismiss", + value: + function dismiss() { + (0, _dismissKeyboard.default)(); + } + + }, { + key: "isVisible", + value: + function isVisible() { + return !!this._currentlyShowing; + } + + }, { + key: "metrics", + value: + function metrics() { + var _this$_currentlyShowi; + return (_this$_currentlyShowi = this._currentlyShowing) == null ? void 0 : _this$_currentlyShowi.endCoordinates; + } + + }, { + key: "scheduleLayoutAnimation", + value: + function scheduleLayoutAnimation(event) { + var duration = event.duration, + easing = event.easing; + if (duration != null && duration !== 0) { + _LayoutAnimation.default.configureNext({ + duration: duration, + update: { + duration: duration, + type: easing != null && _LayoutAnimation.default.Types[easing] || 'keyboard' + } + }); + } + } + }]); + return Keyboard; + }(); + module.exports = new Keyboard(); +},312,[3,12,13,134,313,314,14,315],"node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/ReactNativeFeatureFlags")); + var isLayoutAnimationEnabled = _ReactNativeFeatureFlags.default.isLayoutAnimationEnabled(); + function setEnabled(value) { + isLayoutAnimationEnabled = isLayoutAnimationEnabled; + } + + function configureNext(config, onAnimationDidEnd, onAnimationDidFail) { + var _config$duration, _global; + if (_Platform.default.isTesting) { + return; + } + if (!isLayoutAnimationEnabled) { + return; + } + + var animationCompletionHasRun = false; + var onAnimationComplete = function onAnimationComplete() { + if (animationCompletionHasRun) { + return; + } + animationCompletionHasRun = true; + clearTimeout(raceWithAnimationId); + onAnimationDidEnd == null ? void 0 : onAnimationDidEnd(); + }; + var raceWithAnimationId = setTimeout(onAnimationComplete, ((_config$duration = config.duration) != null ? _config$duration : 0) + 17); + + var FabricUIManager = (_global = global) == null ? void 0 : _global.nativeFabricUIManager; + if (FabricUIManager != null && FabricUIManager.configureNextLayoutAnimation) { + var _global2, _global2$nativeFabric; + (_global2 = global) == null ? void 0 : (_global2$nativeFabric = _global2.nativeFabricUIManager) == null ? void 0 : _global2$nativeFabric.configureNextLayoutAnimation(config, onAnimationComplete, onAnimationDidFail != null ? onAnimationDidFail : function () {}); + return; + } + + if (_$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager") != null && _$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager").configureNextLayoutAnimation) { + _$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager").configureNextLayoutAnimation(config, onAnimationComplete != null ? onAnimationComplete : function () {}, onAnimationDidFail != null ? onAnimationDidFail : function () {}); + } + } + function create(duration, type, property) { + return { + duration: duration, + create: { + type: type, + property: property + }, + update: { + type: type + }, + delete: { + type: type, + property: property + } + }; + } + var Presets = { + easeInEaseOut: create(300, 'easeInEaseOut', 'opacity'), + linear: create(500, 'linear', 'opacity'), + spring: { + duration: 700, + create: { + type: 'linear', + property: 'opacity' + }, + update: { + type: 'spring', + springDamping: 0.4 + }, + delete: { + type: 'linear', + property: 'opacity' + } + } + }; + + var LayoutAnimation = { + configureNext: configureNext, + create: create, + 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 checkConfig() { + console.error('LayoutAnimation.checkConfig(...) has been disabled.'); + }, + Presets: Presets, + easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut), + linear: configureNext.bind(null, Presets.linear), + spring: configureNext.bind(null, Presets.spring), + setEnabled: setEnabled + }; + module.exports = LayoutAnimation; +},313,[3,14,263,213],"node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function dismissKeyboard() { + _$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").blurTextInput(_$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").currentlyFocusedInput()); + } + module.exports = dismissKeyboard; +},314,[200],"node_modules/react-native/Libraries/Utilities/dismissKeyboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('KeyboardObserver'); + exports.default = _default; +},315,[16],"node_modules/react-native/Libraries/Components/Keyboard/NativeKeyboardObserver.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeFrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeFrameRateLogger")); + var FrameRateLogger = { + setGlobalOptions: function setGlobalOptions(options) { + if (options.debug !== undefined) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(_NativeFrameRateLogger.default, 'Trying to debug FrameRateLogger without the native module!'); + } + if (_NativeFrameRateLogger.default) { + var optionsClone = { + debug: !!options.debug, + reportStackTraces: !!options.reportStackTraces + }; + _NativeFrameRateLogger.default.setGlobalOptions(optionsClone); + } + }, + setContext: function setContext(context) { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.setContext(context); + }, + beginScroll: function beginScroll() { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.beginScroll(); + }, + endScroll: function endScroll() { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.endScroll(); + } + }; + module.exports = FrameRateLogger; +},316,[3,317,17],"node_modules/react-native/Libraries/Interaction/FrameRateLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('FrameRateLogger'); + exports.default = _default; +},317,[16],"node_modules/react-native/Libraries/Interaction/NativeFrameRateLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); + + function processDecelerationRate(decelerationRate) { + if (decelerationRate === 'normal') { + return _Platform.default.select({ + ios: 0.998, + android: 0.985 + }); + } else if (decelerationRate === 'fast') { + return _Platform.default.select({ + ios: 0.99, + android: 0.9 + }); + } + return decelerationRate; + } + module.exports = processDecelerationRate; +},318,[3,14],"node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = splitLayoutProps; + + function splitLayoutProps(props) { + var outer = null; + var inner = null; + if (props != null) { + outer = {}; + inner = {}; + for (var prop of Object.keys(props)) { + switch (prop) { + 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': + outer[prop] = props[prop]; + break; + default: + inner[prop] = props[prop]; + break; + } + } + } + return { + outer: outer, + inner: inner + }; + } +},319,[],"node_modules/react-native/Libraries/StyleSheet/splitLayoutProps.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.VERTICAL = exports.HORIZONTAL = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var ScrollViewContext = React.createContext(null); + if (__DEV__) { + ScrollViewContext.displayName = 'ScrollViewContext'; + } + var _default = ScrollViewContext; + exports.default = _default; + var HORIZONTAL = Object.freeze({ + horizontal: true + }); + exports.HORIZONTAL = HORIZONTAL; + var VERTICAL = Object.freeze({ + horizontal: false + }); + exports.VERTICAL = VERTICAL; +},320,[36],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = (0, _codegenNativeCommands.default)({ + supportedCommands: ['flashScrollIndicators', 'scrollTo', 'scrollToEnd', 'zoomToRect'] + }); + exports.default = _default; +},321,[3,202,36],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewCommands.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('AndroidHorizontalScrollContentView'); + exports.default = _default; +},322,[3,251],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'AndroidHorizontalScrollView', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: { + decelerationRate: true, + disableIntervalMomentum: true, + endFillColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + fadingEdgeLength: true, + nestedScrollEnabled: true, + overScrollMode: true, + pagingEnabled: true, + persistentScrollbar: true, + scrollEnabled: true, + scrollPerfTag: true, + sendMomentumEvents: true, + showsHorizontalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToStart: true, + snapToOffsets: true, + contentOffset: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderRadius: true, + borderStyle: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + borderTopLeftRadius: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + removeClippedSubviews: true, + borderTopRightRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + }, + pointerEvents: true + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var AndroidHorizontalScrollViewNativeComponent = NativeComponentRegistry.get('AndroidHorizontalScrollView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = AndroidHorizontalScrollViewNativeComponent; + exports.default = _default; +},323,[211,159],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'RCTScrollContentView', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: {} + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ScrollContentViewNativeComponent = NativeComponentRegistry.get('RCTScrollContentView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ScrollContentViewNativeComponent; + exports.default = _default; +},324,[211],"node_modules/react-native/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTScrollView', + bubblingEventTypes: {}, + directEventTypes: { + topMomentumScrollBegin: { + registrationName: 'onMomentumScrollBegin' + }, + topMomentumScrollEnd: { + registrationName: 'onMomentumScrollEnd' + }, + topScroll: { + registrationName: 'onScroll' + }, + topScrollBeginDrag: { + registrationName: 'onScrollBeginDrag' + }, + topScrollEndDrag: { + registrationName: 'onScrollEndDrag' + } + }, + validAttributes: { + contentOffset: { + diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") + }, + decelerationRate: true, + disableIntervalMomentum: true, + pagingEnabled: true, + scrollEnabled: true, + showsVerticalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToOffsets: true, + snapToStart: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + sendMomentumEvents: true, + borderRadius: true, + nestedScrollEnabled: true, + borderStyle: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + persistentScrollbar: true, + endFillColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + fadingEdgeLength: true, + overScrollMode: true, + borderTopLeftRadius: true, + scrollPerfTag: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + removeClippedSubviews: true, + borderTopRightRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") + }, + pointerEvents: true + } + } : { + 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: true, + alwaysBounceVertical: true, + automaticallyAdjustContentInsets: true, + automaticallyAdjustKeyboardInsets: true, + automaticallyAdjustsScrollIndicatorInsets: true, + bounces: true, + bouncesZoom: true, + canCancelContentTouches: true, + centerContent: true, + contentInset: { + diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") + }, + contentOffset: { + diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") + }, + contentInsetAdjustmentBehavior: true, + decelerationRate: true, + directionalLockEnabled: true, + disableIntervalMomentum: true, + indicatorStyle: true, + inverted: true, + keyboardDismissMode: true, + maintainVisibleContentPosition: true, + maximumZoomScale: true, + minimumZoomScale: true, + pagingEnabled: true, + pinchGestureEnabled: true, + scrollEnabled: true, + scrollEventThrottle: true, + scrollIndicatorInsets: { + diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") + }, + scrollToOverflowEnabled: true, + scrollsToTop: true, + showsHorizontalScrollIndicator: true, + showsVerticalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToOffsets: true, + snapToStart: true, + zoomScale: true + }, (0, _$$_REQUIRE(_dependencyMap[6], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onScrollBeginDrag: true, + onMomentumScrollEnd: true, + onScrollEndDrag: true, + onMomentumScrollBegin: true, + onScrollToTop: true, + onScroll: true + })) + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ScrollViewNativeComponent = NativeComponentRegistry.get('RCTScrollView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ScrollViewNativeComponent; + exports.default = _default; +},325,[211,3,14,221,159,222,210],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AndroidSwipeRefreshLayoutNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./AndroidSwipeRefreshLayoutNativeComponent")); + var _PullToRefreshViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./PullToRefreshViewNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"; + var _excluded = ["enabled", "colors", "progressBackgroundColor", "size"], + _excluded2 = ["tintColor", "titleColor", "title"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[9], "react"); + var RefreshControl = function (_React$Component) { + (0, _inherits2.default)(RefreshControl, _React$Component); + var _super = _createSuper(RefreshControl); + function RefreshControl() { + var _this; + (0, _classCallCheck2.default)(this, RefreshControl); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._lastNativeRefreshing = false; + _this._onRefresh = function () { + _this._lastNativeRefreshing = true; + _this.props.onRefresh && _this.props.onRefresh(); + + _this.forceUpdate(); + }; + _this._setNativeRef = function (ref) { + _this._nativeRef = ref; + }; + return _this; + } + (0, _createClass2.default)(RefreshControl, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._lastNativeRefreshing = this.props.refreshing; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.refreshing !== prevProps.refreshing) { + this._lastNativeRefreshing = this.props.refreshing; + } else if (this.props.refreshing !== this._lastNativeRefreshing && this._nativeRef) { + if ("ios" === 'android') { + _AndroidSwipeRefreshLayoutNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); + } else { + _PullToRefreshViewNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); + } + this._lastNativeRefreshing = this.props.refreshing; + } + } + }, { + key: "render", + value: function render() { + if ("ios" === 'ios') { + var _this$props = this.props, + enabled = _this$props.enabled, + colors = _this$props.colors, + progressBackgroundColor = _this$props.progressBackgroundColor, + size = _this$props.size, + props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_PullToRefreshViewNativeComponent.default, Object.assign({}, props, { + ref: this._setNativeRef, + onRefresh: this._onRefresh + })); + } else { + var _this$props2 = this.props, + tintColor = _this$props2.tintColor, + titleColor = _this$props2.titleColor, + title = _this$props2.title, + _props = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2); + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_AndroidSwipeRefreshLayoutNativeComponent.default, Object.assign({}, _props, { + ref: this._setNativeRef, + onRefresh: this._onRefresh + })); + } + } + }]); + return RefreshControl; + }(React.Component); + module.exports = RefreshControl; +},326,[3,132,12,13,50,47,46,327,328,36,73],"node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/codegenNativeComponent")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeRefreshing'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('AndroidSwipeRefreshLayout'); + exports.default = _default; +},327,[36,3,202,251],"node_modules/react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeCommands")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeRefreshing'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('PullToRefreshView', { + paperComponentName: 'RCTRefreshControl', + excludedPlatforms: ['android'] + }); + exports.default = _default; +},328,[36,3,251,202],"node_modules/react-native/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var Info = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function Info() { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, Info); + 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; + }); + var DEBUG = false; + var _listeners = []; + var _minSampleCount = 10; + var _sampleRate = DEBUG ? 1 : null; + + var FillRateHelper = function () { + function FillRateHelper(getFrameMetrics) { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, FillRateHelper); + this._anyBlankStartTime = null; + this._enabled = false; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; + this._getFrameMetrics = getFrameMetrics; + this._enabled = (_sampleRate || 0) > Math.random(); + this._resetData(); + } + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(FillRateHelper, [{ + key: "activate", + value: function activate() { + if (this._enabled && this._samplesStartTime == null) { + DEBUG && console.debug('FillRateHelper: activate'); + this._samplesStartTime = global.performance.now(); + } + } + }, { + key: "deactivateAndFlush", + value: function deactivateAndFlush() { + if (!this._enabled) { + return; + } + var start = this._samplesStartTime; + if (start == null) { + DEBUG && console.debug('FillRateHelper: bail on deactivate with no start time'); + return; + } + if (this._info.sample_count < _minSampleCount) { + this._resetData(); + return; + } + var total_time_spent = global.performance.now() - start; + var info = Object.assign({}, this._info, { + total_time_spent: total_time_spent + }); + if (DEBUG) { + var derived = { + avg_blankness: this._info.pixels_blank / this._info.pixels_sampled, + avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000), + avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count, + any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1000 / 60), + any_blank_time_frac: this._info.any_blank_ms / total_time_spent, + mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1000 / 60), + mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent + }; + for (var key in derived) { + derived[key] = Math.round(1000 * derived[key]) / 1000; + } + console.debug('FillRateHelper deactivateAndFlush: ', { + derived: derived, + info: info + }); + } + _listeners.forEach(function (listener) { + return listener(info); + }); + this._resetData(); + } + }, { + key: "computeBlankness", + value: function computeBlankness(props, state, scrollMetrics) { + if (!this._enabled || props.getItemCount(props.data) === 0 || this._samplesStartTime == null) { + return 0; + } + var dOffset = scrollMetrics.dOffset, + offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength; + + this._info.sample_count++; + this._info.pixels_sampled += Math.round(visibleLength); + this._info.pixels_scrolled += Math.round(Math.abs(dOffset)); + var scrollSpeed = Math.round(Math.abs(velocity) * 1000); + + var now = global.performance.now(); + if (this._anyBlankStartTime != null) { + this._info.any_blank_ms += now - this._anyBlankStartTime; + } + this._anyBlankStartTime = null; + if (this._mostlyBlankStartTime != null) { + this._info.mostly_blank_ms += now - this._mostlyBlankStartTime; + } + this._mostlyBlankStartTime = null; + var blankTop = 0; + var first = state.first; + var firstFrame = this._getFrameMetrics(first); + while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) { + firstFrame = this._getFrameMetrics(first); + first++; + } + if (firstFrame && first > 0) { + blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset)); + } + var blankBottom = 0; + var last = state.last; + var lastFrame = this._getFrameMetrics(last); + while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) { + lastFrame = this._getFrameMetrics(last); + last--; + } + if (lastFrame && last < props.getItemCount(props.data) - 1) { + var bottomEdge = lastFrame.offset + lastFrame.length; + blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge)); + } + var pixels_blank = Math.round(blankTop + blankBottom); + var blankness = pixels_blank / visibleLength; + if (blankness > 0) { + this._anyBlankStartTime = now; + this._info.any_blank_speed_sum += scrollSpeed; + this._info.any_blank_count++; + this._info.pixels_blank += pixels_blank; + if (blankness > 0.5) { + this._mostlyBlankStartTime = now; + this._info.mostly_blank_count++; + } + } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) { + this.deactivateAndFlush(); + } + return blankness; + } + }, { + key: "enabled", + value: function enabled() { + return this._enabled; + } + }, { + key: "_resetData", + value: function _resetData() { + this._anyBlankStartTime = null; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; + } + }], [{ + key: "addListener", + value: function addListener(callback) { + if (_sampleRate === null) { + console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'); + } + _listeners.push(callback); + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); + } + }; + } + }, { + key: "setSampleRate", + value: function setSampleRate(sampleRate) { + _sampleRate = sampleRate; + } + }, { + key: "setMinSampleCount", + value: function setMinSampleCount(minSampleCount) { + _minSampleCount = minSampleCount; + } + }]); + return FillRateHelper; + }(); + module.exports = FillRateHelper; +},329,[13,12],"node_modules/react-native/Libraries/Lists/FillRateHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var Batchinator = function () { + function Batchinator(callback, delayMS) { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, Batchinator); + this._delay = delayMS; + this._callback = callback; + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(Batchinator, [{ + key: "dispose", + value: + function dispose() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + abort: false + }; + if (this._taskHandle) { + this._taskHandle.cancel(); + if (!options.abort) { + this._callback(); + } + this._taskHandle = null; + } + } + }, { + key: "schedule", + value: function schedule() { + var _this = this; + if (this._taskHandle) { + return; + } + var timeoutHandle = setTimeout(function () { + _this._taskHandle = _$$_REQUIRE(_dependencyMap[2], "./InteractionManager").runAfterInteractions(function () { + _this._taskHandle = null; + _this._callback(); + }); + }, this._delay); + this._taskHandle = { + cancel: function cancel() { + return clearTimeout(timeoutHandle); + } + }; + } + }]); + return Batchinator; + }(); + module.exports = Batchinator; +},330,[12,13,279],"node_modules/react-native/Libraries/Interaction/Batchinator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var ViewabilityHelper = function () { + function ViewabilityHelper() { + var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + viewAreaCoveragePercentThreshold: 0 + }; + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, ViewabilityHelper); + this._hasInteracted = false; + this._timers = new Set(); + this._viewableIndices = []; + this._viewableItems = new Map(); + this._config = config; + } + + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(ViewabilityHelper, [{ + key: "dispose", + value: + function dispose() { + this._timers.forEach(clearTimeout); + } + + }, { + key: "computeViewableItems", + value: + function computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, + renderRange) { + var _this$_config = this._config, + itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold, + viewAreaCoveragePercentThreshold = _this$_config.viewAreaCoveragePercentThreshold; + var viewAreaMode = viewAreaCoveragePercentThreshold != null; + var viewablePercentThreshold = viewAreaMode ? viewAreaCoveragePercentThreshold : itemVisiblePercentThreshold; + _$$_REQUIRE(_dependencyMap[2], "invariant")(viewablePercentThreshold != null && itemVisiblePercentThreshold != null !== (viewAreaCoveragePercentThreshold != null), 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold'); + var viewableIndices = []; + if (itemCount === 0) { + return viewableIndices; + } + var firstVisible = -1; + var _ref = renderRange || { + first: 0, + last: itemCount - 1 + }, + first = _ref.first, + last = _ref.last; + if (last >= itemCount) { + console.warn('Invalid render range computing viewability ' + JSON.stringify({ + renderRange: renderRange, + itemCount: itemCount + })); + return []; + } + for (var idx = first; idx <= last; idx++) { + var metrics = getFrameMetrics(idx); + if (!metrics) { + continue; + } + var top = metrics.offset - scrollOffset; + var bottom = top + metrics.length; + if (top < viewportHeight && bottom > 0) { + firstVisible = idx; + if (_isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, metrics.length)) { + viewableIndices.push(idx); + } + } else if (firstVisible >= 0) { + break; + } + } + return viewableIndices; + } + + }, { + key: "onUpdate", + value: + function onUpdate(itemCount, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, + renderRange) { + var _this = this; + if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0)) { + return; + } + var viewableIndices = []; + if (itemCount) { + viewableIndices = this.computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange); + } + if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) { + return v === viewableIndices[ii]; + })) { + return; + } + this._viewableIndices = viewableIndices; + if (this._config.minimumViewTime) { + var handle = setTimeout(function () { + _this._timers.delete(handle); + _this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); + }, this._config.minimumViewTime); + this._timers.add(handle); + } else { + this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); + } + } + + }, { + key: "resetViewableIndices", + value: + function resetViewableIndices() { + this._viewableIndices = []; + } + + }, { + key: "recordInteraction", + value: + function recordInteraction() { + this._hasInteracted = true; + } + }, { + key: "_onUpdateSync", + value: function _onUpdateSync(viewableIndicesToCheck, onViewableItemsChanged, createViewToken) { + var _this2 = this; + viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) { + return _this2._viewableIndices.includes(ii); + }); + var prevItems = this._viewableItems; + var nextItems = new Map(viewableIndicesToCheck.map(function (ii) { + var viewable = createViewToken(ii, true); + return [viewable.key, viewable]; + })); + var changed = []; + for (var _ref2 of nextItems) { + var _ref3 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref2, 2); + var key = _ref3[0]; + var viewable = _ref3[1]; + if (!prevItems.has(key)) { + changed.push(viewable); + } + } + for (var _ref4 of prevItems) { + var _ref5 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref4, 2); + var _key = _ref5[0]; + var _viewable = _ref5[1]; + if (!nextItems.has(_key)) { + changed.push(Object.assign({}, _viewable, { + isViewable: false + })); + } + } + if (changed.length > 0) { + this._viewableItems = nextItems; + onViewableItemsChanged({ + viewableItems: Array.from(nextItems.values()), + changed: changed, + viewabilityConfig: this._config + }); + } + } + }]); + return ViewabilityHelper; + }(); + function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) { + if (_isEntirelyVisible(top, bottom, viewportHeight)) { + return true; + } else { + var pixels = _getPixelsVisible(top, bottom, viewportHeight); + var percent = 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength); + return percent >= viewablePercentThreshold; + } + } + function _getPixelsVisible(top, bottom, viewportHeight) { + var visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0); + return Math.max(0, visibleHeight); + } + function _isEntirelyVisible(top, bottom, viewportHeight) { + return top >= 0 && bottom <= viewportHeight && bottom > top; + } + module.exports = ViewabilityHelper; +},331,[12,13,17,19],"node_modules/react-native/Libraries/Lists/ViewabilityHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VirtualizedListCellContextProvider = VirtualizedListCellContextProvider; + exports.VirtualizedListContext = void 0; + exports.VirtualizedListContextProvider = VirtualizedListContextProvider; + exports.VirtualizedListContextResetter = VirtualizedListContextResetter; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedListContext.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var VirtualizedListContext = React.createContext(null); + exports.VirtualizedListContext = VirtualizedListContext; + if (__DEV__) { + VirtualizedListContext.displayName = 'VirtualizedListContext'; + } + + function VirtualizedListContextResetter(_ref) { + var children = _ref.children; + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: null, + children: children + }); + } + + function VirtualizedListContextProvider(_ref2) { + var children = _ref2.children, + value = _ref2.value; + var context = (0, React.useMemo)(function () { + return { + cellKey: null, + getScrollMetrics: value.getScrollMetrics, + horizontal: value.horizontal, + getOutermostParentListRef: value.getOutermostParentListRef, + getNestedChildState: value.getNestedChildState, + registerAsNestedChild: value.registerAsNestedChild, + unregisterAsNestedChild: value.unregisterAsNestedChild, + debugInfo: { + cellKey: value.debugInfo.cellKey, + horizontal: value.debugInfo.horizontal, + listKey: value.debugInfo.listKey, + parent: value.debugInfo.parent + } + }; + }, [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.getNestedChildState, value.registerAsNestedChild, value.unregisterAsNestedChild, value.debugInfo.cellKey, value.debugInfo.horizontal, value.debugInfo.listKey, value.debugInfo.parent]); + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: context, + children: children + }); + } + + function VirtualizedListCellContextProvider(_ref3) { + var cellKey = _ref3.cellKey, + children = _ref3.children; + var currContext = (0, React.useContext)(VirtualizedListContext); + var context = (0, React.useMemo)(function () { + return currContext == null ? null : Object.assign({}, currContext, { + cellKey: cellKey + }); + }, [currContext, cellKey]); + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: context, + children: children + }); + } +},332,[36,73],"node_modules/react-native/Libraries/Lists/VirtualizedListContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Image/Image")); +},333,[36,298,334],"node_modules/react-native/Libraries/Animated/components/AnimatedImage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../StyleSheet/StyleSheet")); + var _ImageInjection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./ImageInjection")); + var _ImageAnalyticsTagContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./ImageAnalyticsTagContext")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../StyleSheet/flattenStyle")); + var _resolveAssetSource = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./resolveAssetSource")); + var _NativeImageLoaderIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeImageLoaderIOS")); + var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./ImageViewNativeComponent")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Image/Image.ios.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getSize(uri, success, failure) { + _NativeImageLoaderIOS.default.getSize(uri).then(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + width = _ref2[0], + height = _ref2[1]; + return success(width, height); + }).catch(failure || function () { + console.warn('Failed to get size for image ' + uri); + }); + } + function getSizeWithHeaders(uri, headers, success, failure) { + return _NativeImageLoaderIOS.default.getSizeWithHeaders(uri, headers).then(function (sizes) { + success(sizes.width, sizes.height); + }).catch(failure || function () { + console.warn('Failed to get size for image: ' + uri); + }); + } + function prefetchWithMetadata(url, queryRootName, rootTag) { + if (_NativeImageLoaderIOS.default.prefetchImageWithMetadata) { + return _NativeImageLoaderIOS.default.prefetchImageWithMetadata(url, queryRootName, + rootTag ? rootTag : 0); + } else { + return _NativeImageLoaderIOS.default.prefetchImage(url); + } + } + function prefetch(url) { + return _NativeImageLoaderIOS.default.prefetchImage(url); + } + function queryCache(_x) { + return _queryCache.apply(this, arguments); + } + function _queryCache() { + _queryCache = (0, _asyncToGenerator2.default)(function* (urls) { + return yield _NativeImageLoaderIOS.default.queryCache(urls); + }); + return _queryCache.apply(this, arguments); + } + var BaseImage = function BaseImage(props, forwardedRef) { + var source = (0, _resolveAssetSource.default)(props.source) || { + uri: undefined, + width: undefined, + height: undefined + }; + var sources; + var style; + if (Array.isArray(source)) { + style = (0, _flattenStyle.default)([styles.base, props.style]) || {}; + sources = source; + } else { + var _width = source.width, + _height = source.height, + uri = source.uri; + style = (0, _flattenStyle.default)([{ + width: _width, + height: _height + }, styles.base, props.style]) || {}; + sources = [source]; + if (uri === '') { + console.warn('source.uri should not be an empty string'); + } + } + var resizeMode = props.resizeMode || style.resizeMode || 'cover'; + var tintColor = style.tintColor; + if (props.src != null) { + console.warn('The component requires a `source` property rather than `src`.'); + } + if (props.children != null) { + 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.'); + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_ImageAnalyticsTagContext.default.Consumer, { + children: function children(analyticTag) { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_ImageViewNativeComponent.default, Object.assign({}, props, { + ref: forwardedRef, + style: style, + resizeMode: resizeMode, + tintColor: tintColor, + source: sources, + internal_analyticTag: analyticTag + })); + } + }); + }; + var ImageForwardRef = React.forwardRef(BaseImage); + var Image = ImageForwardRef; + if (_ImageInjection.default.unstable_createImageComponent != null) { + Image = _ImageInjection.default.unstable_createImageComponent(Image); + } + Image.displayName = 'Image'; + + Image.getSize = getSize; + + Image.getSizeWithHeaders = getSizeWithHeaders; + + Image.prefetch = prefetch; + + Image.prefetchWithMetadata = prefetchWithMetadata; + + Image.queryCache = queryCache; + + Image.resolveAssetSource = _resolveAssetSource.default; + var styles = _StyleSheet.default.create({ + base: { + overflow: 'hidden' + } + }); + module.exports = Image; +},334,[3,65,19,36,244,335,338,189,224,339,336,73],"node_modules/react-native/Libraries/Image/Image.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./ImageViewNativeComponent")); + var _TextInlineImageNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./TextInlineImageNativeComponent")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = { + unstable_createImageComponent: null + }; + exports.default = _default; +},335,[36,3,336,337],"node_modules/react-native/Libraries/Image/ImageInjection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTImageView', + bubblingEventTypes: {}, + directEventTypes: { + topLoadStart: { + registrationName: 'onLoadStart' + }, + topProgress: { + registrationName: 'onProgress' + }, + topError: { + registrationName: 'onError' + }, + topLoad: { + registrationName: 'onLoad' + }, + topLoadEnd: { + registrationName: 'onLoadEnd' + } + }, + validAttributes: { + blurRadius: true, + internal_analyticTag: true, + resizeMode: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderBottomLeftRadius: true, + borderTopLeftRadius: true, + resizeMethod: true, + src: true, + borderRadius: true, + headers: true, + shouldNotifyLoadEvents: true, + defaultSrc: true, + overlayColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + }, + accessible: true, + progressiveRenderingEnabled: true, + fadeDuration: true, + borderBottomRightRadius: true, + borderTopRightRadius: true, + loadingIndicatorSrc: true + } + } : { + 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: true, + capInsets: { + diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/insetsDiffer") + }, + defaultSource: { + process: _$$_REQUIRE(_dependencyMap[5], "./resolveAssetSource") + }, + internal_analyticTag: true, + resizeMode: true, + source: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") + } + }, (0, _$$_REQUIRE(_dependencyMap[6], "../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onLoadStart: true, + onLoad: true, + onLoadEnd: true, + onProgress: true, + onError: true, + onPartialLoad: true + })) + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ImageViewNativeComponent = NativeComponentRegistry.get('RCTImageView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ImageViewNativeComponent; + exports.default = _default; +},336,[211,3,14,159,222,224,210],"node_modules/react-native/Libraries/Image/ImageViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'RCTTextInlineImage', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: { + resizeMode: true, + src: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../StyleSheet/processColor") + }, + headers: true + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var TextInlineImage = NativeComponentRegistry.get('RCTTextInlineImage', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = TextInlineImage; + exports.default = _default; +},337,[211,159],"node_modules/react-native/Libraries/Image/TextInlineImageNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Context = React.createContext(null); + if (__DEV__) { + Context.displayName = 'ImageAnalyticsTagContext'; + } + var _default = Context; + exports.default = _default; +},338,[36],"node_modules/react-native/Libraries/Image/ImageAnalyticsTagContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('ImageLoader'); + exports.default = _default; +},339,[16],"node_modules/react-native/Libraries/Image/NativeImageLoaderIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ScrollViewWithEventThrottle = React.forwardRef(function (props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "../../Components/ScrollView/ScrollView"), Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: ref + })); + }); + module.exports = _$$_REQUIRE(_dependencyMap[3], "../createAnimatedComponent")(ScrollViewWithEventThrottle); +},340,[36,73,310,298],"node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _SectionList = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Lists/SectionList")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var SectionListWithEventThrottle = React.forwardRef(function (props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_SectionList.default, Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: ref + })); + }); + module.exports = _$$_REQUIRE(_dependencyMap[4], "../createAnimatedComponent")(SectionListWithEventThrottle); +},341,[36,3,342,73,298],"node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _VirtualizedSectionList = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./VirtualizedSectionList")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/SectionList.js"; + var _excluded = ["stickySectionHeadersEnabled"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SectionList = function (_React$PureComponent) { + (0, _inherits2.default)(SectionList, _React$PureComponent); + var _super = _createSuper(SectionList); + function SectionList() { + var _this; + (0, _classCallCheck2.default)(this, SectionList); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._captureRef = function (ref) { + _this._wrapperListRef = ref; + }; + return _this; + } + (0, _createClass2.default)(SectionList, [{ + key: "scrollToLocation", + value: + function scrollToLocation(params) { + if (this._wrapperListRef != null) { + this._wrapperListRef.scrollToLocation(params); + } + } + + }, { + key: "recordInteraction", + value: + function recordInteraction() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + listRef && listRef.recordInteraction(); + } + + }, { + key: "flashScrollIndicators", + value: + function flashScrollIndicators() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + listRef && listRef.flashScrollIndicators(); + } + + }, { + key: "getScrollResponder", + value: + function getScrollResponder() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + return listRef.getScrollResponder(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + return listRef.getScrollableNode(); + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + listRef.setNativeProps(props); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + _stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, + restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var stickySectionHeadersEnabled = _stickySectionHeadersEnabled != null ? _stickySectionHeadersEnabled : _Platform.default.OS === 'ios'; + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_VirtualizedSectionList.default, Object.assign({}, restProps, { + stickySectionHeadersEnabled: stickySectionHeadersEnabled, + ref: this._captureRef, + getItemCount: function getItemCount(items) { + return items.length; + }, + getItem: function getItem(items, index) { + return items[index]; + } + })); + } + }]); + return SectionList; + }(React.PureComponent); + exports.default = SectionList; +},342,[3,132,12,13,50,47,46,14,36,343,73],"node_modules/react-native/Libraries/Lists/SectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[11], "react-native"); + var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"]; + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var VirtualizedSectionList = function (_React$PureComponent) { + (0, _inherits2.default)(VirtualizedSectionList, _React$PureComponent); + var _super = _createSuper(VirtualizedSectionList); + function VirtualizedSectionList() { + var _this; + (0, _classCallCheck2.default)(this, VirtualizedSectionList); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._keyExtractor = function (item, index) { + var info = _this._subExtractor(index); + return info && info.key || String(index); + }; + _this._convertViewable = function (viewable) { + var _info$index; + (0, _invariant.default)(viewable.index != null, 'Received a broken ViewToken'); + var info = _this._subExtractor(viewable.index); + if (!info) { + return null; + } + var keyExtractorWithNullableIndex = info.section.keyExtractor; + var keyExtractorWithNonNullableIndex = _this.props.keyExtractor || _$$_REQUIRE(_dependencyMap[12], "./VirtualizeUtils").keyExtractor; + var key = keyExtractorWithNullableIndex != null ? keyExtractorWithNullableIndex(viewable.item, info.index) : keyExtractorWithNonNullableIndex(viewable.item, (_info$index = info.index) != null ? _info$index : 0); + return Object.assign({}, viewable, { + index: info.index, + key: key, + section: info.section + }); + }; + _this._onViewableItemsChanged = function (_ref) { + var viewableItems = _ref.viewableItems, + changed = _ref.changed; + var onViewableItemsChanged = _this.props.onViewableItemsChanged; + if (onViewableItemsChanged != null) { + onViewableItemsChanged({ + viewableItems: viewableItems.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean), + changed: changed.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean) + }); + } + }; + _this._renderItem = function (listItemCount) { + return ( + function (_ref2) { + var item = _ref2.item, + index = _ref2.index; + var info = _this._subExtractor(index); + if (!info) { + return null; + } + var infoIndex = info.index; + if (infoIndex == null) { + var section = info.section; + if (info.header === true) { + var renderSectionHeader = _this.props.renderSectionHeader; + return renderSectionHeader ? renderSectionHeader({ + section: section + }) : null; + } else { + var renderSectionFooter = _this.props.renderSectionFooter; + return renderSectionFooter ? renderSectionFooter({ + section: section + }) : null; + } + } else { + var renderItem = info.section.renderItem || _this.props.renderItem; + var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount); + (0, _invariant.default)(renderItem, 'no renderItem!'); + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ItemWithSeparator, { + SeparatorComponent: SeparatorComponent, + LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined, + cellKey: info.key, + index: infoIndex, + item: item, + leadingItem: info.leadingItem, + leadingSection: info.leadingSection, + prevCellKey: (_this._subExtractor(index - 1) || {}).key + , + setSelfHighlightCallback: _this._setUpdateHighlightFor, + setSelfUpdatePropsCallback: _this._setUpdatePropsFor + , + updateHighlightFor: _this._updateHighlightFor, + updatePropsFor: _this._updatePropsFor, + renderItem: renderItem, + section: info.section, + trailingItem: info.trailingItem, + trailingSection: info.trailingSection, + inverted: !!_this.props.inverted + }); + } + } + ); + }; + _this._updatePropsFor = function (cellKey, value) { + var updateProps = _this._updatePropsMap[cellKey]; + if (updateProps != null) { + updateProps(value); + } + }; + _this._updateHighlightFor = function (cellKey, value) { + var updateHighlight = _this._updateHighlightMap[cellKey]; + if (updateHighlight != null) { + updateHighlight(value); + } + }; + _this._setUpdateHighlightFor = function (cellKey, updateHighlightFn) { + if (updateHighlightFn != null) { + _this._updateHighlightMap[cellKey] = updateHighlightFn; + } else { + delete _this._updateHighlightFor[cellKey]; + } + }; + _this._setUpdatePropsFor = function (cellKey, updatePropsFn) { + if (updatePropsFn != null) { + _this._updatePropsMap[cellKey] = updatePropsFn; + } else { + delete _this._updatePropsMap[cellKey]; + } + }; + _this._updateHighlightMap = {}; + _this._updatePropsMap = {}; + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + return _this; + } + (0, _createClass2.default)(VirtualizedSectionList, [{ + key: "scrollToLocation", + value: function scrollToLocation(params) { + var index = params.itemIndex; + for (var i = 0; i < params.sectionIndex; i++) { + index += this.props.getItemCount(this.props.sections[i].data) + 2; + } + var viewOffset = params.viewOffset || 0; + if (this._listRef == null) { + return; + } + if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) { + var frame = this._listRef.__getFrameMetricsApprox(index - params.itemIndex); + viewOffset += frame.length; + } + var toIndexParams = Object.assign({}, params, { + viewOffset: viewOffset, + index: index + }); + this._listRef.scrollToIndex(toIndexParams); + } + }, { + key: "getListRef", + value: function getListRef() { + return this._listRef; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + var _this$props = this.props, + ItemSeparatorComponent = _this$props.ItemSeparatorComponent, + SectionSeparatorComponent = _this$props.SectionSeparatorComponent, + _renderItem = _this$props.renderItem, + renderSectionFooter = _this$props.renderSectionFooter, + renderSectionHeader = _this$props.renderSectionHeader, + _sections = _this$props.sections, + stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, + passThroughProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0; + var stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : undefined; + var itemCount = 0; + for (var section of this.props.sections) { + if (stickyHeaderIndices != null) { + stickyHeaderIndices.push(itemCount + listHeaderOffset); + } + + itemCount += 2; + itemCount += this.props.getItemCount(section.data); + } + var renderItem = this._renderItem(itemCount); + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_reactNative.VirtualizedList, Object.assign({}, passThroughProps, { + keyExtractor: this._keyExtractor, + stickyHeaderIndices: stickyHeaderIndices, + renderItem: renderItem, + data: this.props.sections, + getItem: function getItem(sections, index) { + return _this2._getItem(_this2.props, sections, index); + }, + getItemCount: function getItemCount() { + return itemCount; + }, + onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined, + ref: this._captureRef + })); + } + }, { + key: "_getItem", + value: function _getItem(props, sections, index) { + if (!sections) { + return null; + } + var itemIdx = index - 1; + for (var i = 0; i < sections.length; i++) { + var section = sections[i]; + var sectionData = section.data; + var itemCount = props.getItemCount(sectionData); + if (itemIdx === -1 || itemIdx === itemCount) { + return section; + } else if (itemIdx < itemCount) { + return props.getItem(sectionData, itemIdx); + } else { + itemIdx -= itemCount + 2; + } + } + + return null; + } + }, { + key: "_subExtractor", + value: function _subExtractor(index) { + var itemIndex = index; + var _this$props2 = this.props, + getItem = _this$props2.getItem, + getItemCount = _this$props2.getItemCount, + keyExtractor = _this$props2.keyExtractor, + sections = _this$props2.sections; + for (var i = 0; i < sections.length; i++) { + var section = sections[i]; + var sectionData = section.data; + var key = section.key || String(i); + itemIndex -= 1; + if (itemIndex >= getItemCount(sectionData) + 1) { + itemIndex -= getItemCount(sectionData) + 1; + } else if (itemIndex === -1) { + return { + section: section, + key: key + ':header', + index: null, + header: true, + trailingSection: sections[i + 1] + }; + } else if (itemIndex === getItemCount(sectionData)) { + return { + section: section, + key: key + ':footer', + index: null, + header: false, + trailingSection: sections[i + 1] + }; + } else { + var extractor = section.keyExtractor || keyExtractor || _$$_REQUIRE(_dependencyMap[12], "./VirtualizeUtils").keyExtractor; + return { + section: section, + key: key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex), + index: itemIndex, + leadingItem: getItem(sectionData, itemIndex - 1), + leadingSection: sections[i - 1], + trailingItem: getItem(sectionData, itemIndex + 1), + trailingSection: sections[i + 1] + }; + } + } + } + }, { + key: "_getSeparatorComponent", + value: function _getSeparatorComponent(index, info, listItemCount) { + info = info || this._subExtractor(index); + if (!info) { + return null; + } + var ItemSeparatorComponent = info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent; + var SectionSeparatorComponent = this.props.SectionSeparatorComponent; + var isLastItemInList = index === listItemCount - 1; + var isLastItemInSection = info.index === this.props.getItemCount(info.section.data) - 1; + if (SectionSeparatorComponent && isLastItemInSection) { + return SectionSeparatorComponent; + } + if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) { + return ItemSeparatorComponent; + } + return null; + } + }]); + return VirtualizedSectionList; + }(React.PureComponent); + function ItemWithSeparator(props) { + var LeadingSeparatorComponent = props.LeadingSeparatorComponent, + SeparatorComponent = props.SeparatorComponent, + cellKey = props.cellKey, + prevCellKey = props.prevCellKey, + setSelfHighlightCallback = props.setSelfHighlightCallback, + updateHighlightFor = props.updateHighlightFor, + setSelfUpdatePropsCallback = props.setSelfUpdatePropsCallback, + updatePropsFor = props.updatePropsFor, + item = props.item, + index = props.index, + section = props.section, + inverted = props.inverted; + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + leadingSeparatorHiglighted = _React$useState2[0], + setLeadingSeparatorHighlighted = _React$useState2[1]; + var _React$useState3 = React.useState(false), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + separatorHighlighted = _React$useState4[0], + setSeparatorHighlighted = _React$useState4[1]; + var _React$useState5 = React.useState({ + leadingItem: props.leadingItem, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.item, + trailingSection: props.trailingSection + }), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + leadingSeparatorProps = _React$useState6[0], + setLeadingSeparatorProps = _React$useState6[1]; + var _React$useState7 = React.useState({ + leadingItem: props.item, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.trailingItem, + trailingSection: props.trailingSection + }), + _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), + separatorProps = _React$useState8[0], + setSeparatorProps = _React$useState8[1]; + React.useEffect(function () { + setSelfHighlightCallback(cellKey, setSeparatorHighlighted); + setSelfUpdatePropsCallback(cellKey, setSeparatorProps); + return function () { + setSelfUpdatePropsCallback(cellKey, null); + setSelfHighlightCallback(cellKey, null); + }; + }, [cellKey, setSelfHighlightCallback, setSeparatorProps, setSelfUpdatePropsCallback]); + var separators = { + highlight: function highlight() { + setLeadingSeparatorHighlighted(true); + setSeparatorHighlighted(true); + if (prevCellKey != null) { + updateHighlightFor(prevCellKey, true); + } + }, + unhighlight: function unhighlight() { + setLeadingSeparatorHighlighted(false); + setSeparatorHighlighted(false); + if (prevCellKey != null) { + updateHighlightFor(prevCellKey, false); + } + }, + updateProps: function updateProps(select, newProps) { + if (select === 'leading') { + if (LeadingSeparatorComponent != null) { + setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps)); + } else if (prevCellKey != null) { + updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps)); + } + } else if (select === 'trailing' && SeparatorComponent != null) { + setSeparatorProps(Object.assign({}, separatorProps, newProps)); + } + } + }; + var element = props.renderItem({ + item: item, + index: index, + section: section, + separators: separators + }); + var leadingSeparator = LeadingSeparatorComponent != null && (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(LeadingSeparatorComponent, Object.assign({ + highlighted: leadingSeparatorHiglighted + }, leadingSeparatorProps)); + var separator = SeparatorComponent != null && (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(SeparatorComponent, Object.assign({ + highlighted: separatorHighlighted + }, separatorProps)); + return leadingSeparator || separator ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator] + }) : element; + } + + module.exports = VirtualizedSectionList; +},343,[3,19,132,12,13,49,50,47,46,17,36,1,308,73],"node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Text/Text")); +},344,[36,298,255],"node_modules/react-native/Libraries/Animated/components/AnimatedText.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); +},345,[36,298,245],"node_modules/react-native/Libraries/Animated/components/AnimatedView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _RCTDatePickerNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./RCTDatePickerNativeComponent")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../View/View")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "invariant")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var DatePickerIOS = function (_React$Component) { + (0, _inherits2.default)(DatePickerIOS, _React$Component); + var _super = _createSuper(DatePickerIOS); + function DatePickerIOS() { + var _this; + (0, _classCallCheck2.default)(this, DatePickerIOS); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._picker = null; + _this._onChange = function (event) { + var nativeTimeStamp = event.nativeEvent.timestamp; + _this.props.onDateChange && _this.props.onDateChange(new Date(nativeTimeStamp)); + _this.props.onChange && _this.props.onChange(event); + _this.forceUpdate(); + }; + return _this; + } + (0, _createClass2.default)(DatePickerIOS, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + if (this.props.date) { + var propsTimeStamp = this.props.date.getTime(); + if (this._picker) { + _RCTDatePickerNativeComponent.Commands.setNativeDate(this._picker, propsTimeStamp); + } + } + } + }, { + key: "render", + value: function render() { + var _props$mode, + _this2 = this; + var props = this.props; + var mode = (_props$mode = props.mode) != null ? _props$mode : 'datetime'; + (0, _invariant.default)(props.date || props.initialDate, 'A selected date or initial date should be specified.'); + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: props.style, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_RCTDatePickerNativeComponent.default, { + testID: props.testID, + ref: function ref(picker) { + _this2._picker = picker; + }, + style: getHeight(props.pickerStyle, mode), + date: props.date ? props.date.getTime() : props.initialDate ? props.initialDate.getTime() : undefined, + locale: props.locale != null && props.locale !== '' ? props.locale : undefined, + maximumDate: props.maximumDate ? props.maximumDate.getTime() : undefined, + minimumDate: props.minimumDate ? props.minimumDate.getTime() : undefined, + mode: mode, + minuteInterval: props.minuteInterval, + timeZoneOffsetInMinutes: props.timeZoneOffsetInMinutes, + onChange: this._onChange, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + }, + pickerStyle: props.pickerStyle + }) + }); + } + }]); + return DatePickerIOS; + }(React.Component); + var inlineHeightForDatePicker = 318.5; + var inlineHeightForTimePicker = 49.5; + var compactHeight = 40; + var spinnerHeight = 216; + var styles = _StyleSheet.default.create({ + datePickerIOS: { + height: spinnerHeight + }, + datePickerIOSCompact: { + height: compactHeight + }, + datePickerIOSInline: { + height: inlineHeightForDatePicker + inlineHeightForTimePicker * 2 + }, + datePickerIOSInlineDate: { + height: inlineHeightForDatePicker + inlineHeightForTimePicker + }, + datePickerIOSInlineTime: { + height: inlineHeightForTimePicker + } + }); + function getHeight(pickerStyle, mode) { + if (pickerStyle === 'compact') { + return styles.datePickerIOSCompact; + } + if (pickerStyle === 'inline') { + switch (mode) { + case 'date': + return styles.datePickerIOSInlineDate; + case 'time': + return styles.datePickerIOSInlineTime; + default: + return styles.datePickerIOSInline; + } + } + return styles.datePickerIOS; + } + module.exports = DatePickerIOS; +},346,[3,12,13,50,47,46,36,347,244,245,17,73],"node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeDate'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('DatePicker', { + paperComponentName: 'RCTDatePicker', + excludedPlatforms: ['android'] + }); + exports.default = _default; +},347,[3,202,251,36],"node_modules/react-native/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "../UnimplementedViews/UnimplementedView"); +},348,[249],"node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./Image")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../StyleSheet/StyleSheet")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../StyleSheet/flattenStyle")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../Components/View/View")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Image/ImageBackground.js"; + var _excluded = ["children", "style", "imageStyle", "imageRef"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var ImageBackground = function (_React$Component) { + (0, _inherits2.default)(ImageBackground, _React$Component); + var _super = _createSuper(ImageBackground); + function ImageBackground() { + var _this; + (0, _classCallCheck2.default)(this, ImageBackground); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._viewRef = null; + _this._captureRef = function (ref) { + _this._viewRef = ref; + }; + return _this; + } + (0, _createClass2.default)(ImageBackground, [{ + key: "setNativeProps", + value: function setNativeProps(props) { + var viewRef = this._viewRef; + if (viewRef) { + viewRef.setNativeProps(props); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + style = _this$props.style, + imageStyle = _this$props.imageStyle, + imageRef = _this$props.imageRef, + props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var flattenedStyle = (0, _flattenStyle.default)(style); + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_View.default, { + accessibilityIgnoresInvertColors: true, + style: style, + ref: this._captureRef, + children: [(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Image.default, Object.assign({}, props, { + style: [_StyleSheet.default.absoluteFill, { + width: flattenedStyle == null ? void 0 : flattenedStyle.width, + height: flattenedStyle == null ? void 0 : flattenedStyle.height + }, imageStyle], + ref: imageRef + })), children] + }); + } + }]); + return ImageBackground; + }(React.Component); + module.exports = ImageBackground; +},349,[3,132,12,13,50,47,46,334,36,244,189,245,73],"node_modules/react-native/Libraries/Image/ImageBackground.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); + var _RCTInputAccessoryViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./RCTInputAccessoryViewNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var InputAccessoryView = function (_React$Component) { + (0, _inherits2.default)(InputAccessoryView, _React$Component); + var _super = _createSuper(InputAccessoryView); + function InputAccessoryView() { + (0, _classCallCheck2.default)(this, InputAccessoryView); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(InputAccessoryView, [{ + key: "render", + value: function render() { + if (_Platform.default.OS === 'ios') { + if (React.Children.count(this.props.children) === 0) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_RCTInputAccessoryViewNativeComponent.default, { + style: [this.props.style, styles.container], + nativeID: this.props.nativeID, + backgroundColor: this.props.backgroundColor, + children: this.props.children + }); + } else { + console.warn(' is only supported on iOS.'); + return null; + } + } + }]); + return InputAccessoryView; + }(React.Component); + var styles = _StyleSheet.default.create({ + container: { + position: 'absolute' + } + }); + module.exports = InputAccessoryView; +},350,[3,12,13,50,47,46,36,14,244,351,73],"node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('InputAccessory', { + interfaceOnly: true, + paperComponentName: 'RCTInputAccessoryView', + excludedPlatforms: ['android'] + }); + exports.default = _default; +},351,[3,251],"node_modules/react-native/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/asyncToGenerator")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./Keyboard")); + var _LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../LayoutAnimation/LayoutAnimation")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../View/View")); + var _AccessibilityInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "../AccessibilityInfo/AccessibilityInfo")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"; + var _excluded = ["behavior", "children", "contentContainerStyle", "enabled", "keyboardVerticalOffset", "style", "onLayout"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var KeyboardAvoidingView = function (_React$Component) { + (0, _inherits2.default)(KeyboardAvoidingView, _React$Component); + var _super = _createSuper(KeyboardAvoidingView); + function KeyboardAvoidingView(props) { + var _this; + (0, _classCallCheck2.default)(this, KeyboardAvoidingView); + _this = _super.call(this, props); + _this._frame = null; + _this._keyboardEvent = null; + _this._subscriptions = []; + _this._initialFrameHeight = 0; + _this._onKeyboardChange = function (event) { + _this._keyboardEvent = event; + _this._updateBottomIfNecessary(); + }; + _this._onLayout = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (event) { + var wasFrameNull = _this._frame == null; + _this._frame = event.nativeEvent.layout; + if (!_this._initialFrameHeight) { + _this._initialFrameHeight = _this._frame.height; + } + if (wasFrameNull) { + yield _this._updateBottomIfNecessary(); + } + if (_this.props.onLayout) { + _this.props.onLayout(event); + } + }); + return function (_x) { + return _ref.apply(this, arguments); + }; + }(); + _this._updateBottomIfNecessary = (0, _asyncToGenerator2.default)(function* () { + if (_this._keyboardEvent == null) { + _this.setState({ + bottom: 0 + }); + return; + } + var _this$_keyboardEvent = _this._keyboardEvent, + duration = _this$_keyboardEvent.duration, + easing = _this$_keyboardEvent.easing, + endCoordinates = _this$_keyboardEvent.endCoordinates; + var height = yield _this._relativeKeyboardHeight(endCoordinates); + if (_this.state.bottom === height) { + return; + } + if (duration && easing) { + _LayoutAnimation.default.configureNext({ + duration: duration > 10 ? duration : 10, + update: { + duration: duration > 10 ? duration : 10, + type: _LayoutAnimation.default.Types[easing] || 'keyboard' + } + }); + } + _this.setState({ + bottom: height + }); + }); + _this.state = { + bottom: 0 + }; + _this.viewRef = React.createRef(); + return _this; + } + (0, _createClass2.default)(KeyboardAvoidingView, [{ + key: "_relativeKeyboardHeight", + value: function () { + var _relativeKeyboardHeight2 = (0, _asyncToGenerator2.default)(function* (keyboardFrame) { + var _this$props$keyboardV; + var frame = this._frame; + if (!frame || !keyboardFrame) { + return 0; + } + + if (_Platform.default.OS === 'ios' && keyboardFrame.screenY === 0 && (yield _AccessibilityInfo.default.prefersCrossFadeTransitions())) { + return 0; + } + var keyboardY = keyboardFrame.screenY - ((_this$props$keyboardV = this.props.keyboardVerticalOffset) != null ? _this$props$keyboardV : 0); + + return Math.max(frame.y + frame.height - keyboardY, 0); + }); + function _relativeKeyboardHeight(_x2) { + return _relativeKeyboardHeight2.apply(this, arguments); + } + return _relativeKeyboardHeight; + }() + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (_Platform.default.OS === 'ios') { + this._subscriptions = [_Keyboard.default.addListener('keyboardWillChangeFrame', this._onKeyboardChange)]; + } else { + this._subscriptions = [_Keyboard.default.addListener('keyboardDidHide', this._onKeyboardChange), _Keyboard.default.addListener('keyboardDidShow', this._onKeyboardChange)]; + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._subscriptions.forEach(function (subscription) { + subscription.remove(); + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + behavior = _this$props.behavior, + children = _this$props.children, + contentContainerStyle = _this$props.contentContainerStyle, + _this$props$enabled = _this$props.enabled, + enabled = _this$props$enabled === void 0 ? true : _this$props$enabled, + _this$props$keyboardV2 = _this$props.keyboardVerticalOffset, + keyboardVerticalOffset = _this$props$keyboardV2 === void 0 ? 0 : _this$props$keyboardV2, + style = _this$props.style, + onLayout = _this$props.onLayout, + props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var bottomHeight = enabled === true ? this.state.bottom : 0; + switch (behavior) { + case 'height': + var heightStyle; + if (this._frame != null && this.state.bottom > 0) { + heightStyle = { + height: this._initialFrameHeight - bottomHeight, + flex: 0 + }; + } + return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ + ref: this.viewRef, + style: _StyleSheet.default.compose(style, heightStyle), + onLayout: this._onLayout + }, props, { + children: children + })); + case 'position': + return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ + ref: this.viewRef, + style: style, + onLayout: this._onLayout + }, props, { + children: (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, { + style: _StyleSheet.default.compose(contentContainerStyle, { + bottom: bottomHeight + }), + children: children + }) + })); + case 'padding': + return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ + ref: this.viewRef, + style: _StyleSheet.default.compose(style, { + paddingBottom: bottomHeight + }), + onLayout: this._onLayout + }, props, { + children: children + })); + default: + return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ + ref: this.viewRef, + onLayout: this._onLayout, + style: style + }, props, { + children: children + })); + } + } + }]); + return KeyboardAvoidingView; + }(React.Component); + var _default = KeyboardAvoidingView; + exports.default = _default; +},352,[3,132,65,12,13,50,47,46,312,313,14,36,244,245,2,73],"node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../View/View")); + var _RCTMaskedViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./RCTMaskedViewNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"; + var _excluded = ["maskElement", "children"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var MaskedViewIOS = function (_React$Component) { + (0, _inherits2.default)(MaskedViewIOS, _React$Component); + var _super = _createSuper(MaskedViewIOS); + function MaskedViewIOS() { + var _this; + (0, _classCallCheck2.default)(this, MaskedViewIOS); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._hasWarnedInvalidRenderMask = false; + return _this; + } + (0, _createClass2.default)(MaskedViewIOS, [{ + key: "render", + value: function render() { + var _this$props = this.props, + maskElement = _this$props.maskElement, + children = _this$props.children, + otherViewProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + if (!React.isValidElement(maskElement)) { + if (!this._hasWarnedInvalidRenderMask) { + console.warn('MaskedView: Invalid `maskElement` prop was passed to MaskedView. ' + 'Expected a React Element. No mask will render.'); + this._hasWarnedInvalidRenderMask = true; + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, Object.assign({}, otherViewProps, { + children: children + })); + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_RCTMaskedViewNativeComponent.default, Object.assign({}, otherViewProps, { + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + pointerEvents: "none", + style: _StyleSheet.default.absoluteFill, + children: maskElement + }), children] + })); + } + }]); + return MaskedViewIOS; + }(React.Component); + module.exports = MaskedViewIOS; +},353,[3,132,12,13,50,47,46,36,244,245,354,73],"node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('RCTMaskedView'); + exports.default = _default; +},354,[3,251],"node_modules/react-native/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _ModalInjection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./ModalInjection")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../EventEmitter/NativeEventEmitter")); + var _NativeModalManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeModalManager")); + var _RCTModalHostViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./RCTModalHostViewNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Modal/Modal.js", + _container, + _ModalInjection$unsta; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[11], "react"); + var ModalEventEmitter = "ios" === 'ios' && _NativeModalManager.default != null ? new _NativeEventEmitter.default( + "ios" !== 'ios' ? null : _NativeModalManager.default) : null; + + var uniqueModalIdentifier = 0; + function confirmProps(props) { + if (__DEV__) { + if (props.presentationStyle && props.presentationStyle !== 'overFullScreen' && props.transparent === true) { + console.warn("Modal with '" + props.presentationStyle + "' presentation style and 'transparent' value is not supported."); + } + } + } + var Modal = function (_React$Component) { + (0, _inherits2.default)(Modal, _React$Component); + var _super = _createSuper(Modal); + function Modal(props) { + var _this; + (0, _classCallCheck2.default)(this, Modal); + _this = _super.call(this, props); + if (__DEV__) { + confirmProps(props); + } + _this._identifier = uniqueModalIdentifier++; + return _this; + } + (0, _createClass2.default)(Modal, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + if (ModalEventEmitter) { + this._eventSubscription = ModalEventEmitter.addListener('modalDismissed', function (event) { + if (event.modalID === _this2._identifier && _this2.props.onDismiss) { + _this2.props.onDismiss(); + } + }); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._eventSubscription) { + this._eventSubscription.remove(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + if (__DEV__) { + confirmProps(this.props); + } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + if (this.props.visible !== true) { + return null; + } + var containerStyles = { + backgroundColor: this.props.transparent === true ? 'transparent' : 'white' + }; + var animationType = this.props.animationType || 'none'; + var presentationStyle = this.props.presentationStyle; + if (!presentationStyle) { + presentationStyle = 'fullScreen'; + if (this.props.transparent === true) { + presentationStyle = 'overFullScreen'; + } + } + var innerChildren = __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../ReactNative/AppContainer"), { + rootTag: this.context, + children: this.props.children + }) : this.props.children; + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_RCTModalHostViewNativeComponent.default, { + animationType: animationType, + presentationStyle: presentationStyle, + transparent: this.props.transparent, + hardwareAccelerated: this.props.hardwareAccelerated, + onRequestClose: this.props.onRequestClose, + onShow: this.props.onShow, + onDismiss: function onDismiss() { + if (_this3.props.onDismiss) { + _this3.props.onDismiss(); + } + }, + visible: this.props.visible, + statusBarTranslucent: this.props.statusBarTranslucent, + identifier: this._identifier, + style: styles.modal + , + onStartShouldSetResponder: this._shouldSetResponder, + supportedOrientations: this.props.supportedOrientations, + onOrientationChange: this.props.onOrientationChange, + testID: this.props.testID, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../Lists/VirtualizedListContext.js").VirtualizedListContextResetter, { + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[15], "../Components/ScrollView/ScrollView").Context.Provider, { + value: null, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[16], "../Components/View/View"), { + style: [styles.container, containerStyles], + collapsable: false, + children: innerChildren + }) + }) + }) + }); + } + + }, { + key: "_shouldSetResponder", + value: + function _shouldSetResponder() { + return true; + } + }]); + return Modal; + }(React.Component); + Modal.defaultProps = { + visible: true, + hardwareAccelerated: false + }; + Modal.contextType = _$$_REQUIRE(_dependencyMap[17], "../ReactNative/RootTag").RootTagContext; + var side = _$$_REQUIRE(_dependencyMap[18], "../ReactNative/I18nManager").getConstants().isRTL ? 'right' : 'left'; + var styles = _$$_REQUIRE(_dependencyMap[19], "../StyleSheet/StyleSheet").create({ + modal: { + position: 'absolute' + }, + container: (_container = {}, (0, _defineProperty2.default)(_container, side, 0), (0, _defineProperty2.default)(_container, "top", 0), (0, _defineProperty2.default)(_container, "flex", 1), _container) + }); + var ExportedModal = (_ModalInjection$unsta = _ModalInjection.default.unstable_Modal) != null ? _ModalInjection$unsta : Modal; + module.exports = ExportedModal; +},355,[3,306,12,13,50,47,46,356,134,357,358,36,73,359,332,310,245,386,364,244],"node_modules/react-native/Libraries/Modal/Modal.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = { + unstable_Modal: null + }; + exports.default = _default; +},356,[],"node_modules/react-native/Libraries/Modal/ModalInjection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('ModalManager'); + exports.default = _default; +},357,[16],"node_modules/react-native/Libraries/Modal/NativeModalManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('ModalHostView', { + interfaceOnly: true, + paperComponentName: 'RCTModalHostView' + }); + exports.default = _default; +},358,[3,251],"node_modules/react-native/Libraries/Modal/RCTModalHostViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Components/View/View")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTDeviceEventEmitter")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../StyleSheet/StyleSheet")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/ReactNative/AppContainer.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AppContainer = function (_React$Component) { + (0, _inherits2.default)(AppContainer, _React$Component); + var _super = _createSuper(AppContainer); + function AppContainer() { + var _this; + (0, _classCallCheck2.default)(this, AppContainer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + inspector: null, + mainKey: 1, + hasError: false + }; + _this._subscription = null; + return _this; + } + (0, _createClass2.default)(AppContainer, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + this._subscription = _RCTDeviceEventEmitter.default.addListener('toggleElementInspector', function () { + var Inspector = _$$_REQUIRE(_dependencyMap[10], "../Inspector/Inspector"); + var inspector = _this2.state.inspector ? null : (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Inspector, { + inspectedView: _this2._mainRef, + onRequestRerenderApp: function onRequestRerenderApp(updateInspectedView) { + _this2.setState(function (s) { + return { + mainKey: s.mainKey + 1 + }; + }, function () { + return updateInspectedView(_this2._mainRef); + }); + } + }); + _this2.setState({ + inspector: inspector + }); + }); + } + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscription != null) { + this._subscription.remove(); + } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + var logBox = null; + if (__DEV__) { + if (!global.__RCTProfileIsProfiling && !this.props.internal_excludeLogBox) { + var LogBoxNotificationContainer = _$$_REQUIRE(_dependencyMap[12], "../LogBox/LogBoxNotificationContainer").default; + logBox = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(LogBoxNotificationContainer, {}); + } + } + var innerView = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + collapsable: !this.state.inspector, + pointerEvents: "box-none", + style: styles.appContainer, + ref: function ref(_ref) { + _this3._mainRef = _ref; + }, + children: this.props.children + }, this.state.mainKey); + var Wrapper = this.props.WrapperComponent; + if (Wrapper != null) { + innerView = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Wrapper, { + initialProps: this.props.initialProps, + fabric: this.props.fabric === true, + showArchitectureIndicator: this.props.showArchitectureIndicator === true, + children: innerView + }); + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "./RootTag").RootTagContext.Provider, { + value: (0, _$$_REQUIRE(_dependencyMap[13], "./RootTag").createRootTag)(this.props.rootTag), + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.appContainer, + pointerEvents: "box-none", + children: [!this.state.hasError && innerView, this.state.inspector, logBox] + }) + }); + } + }]); + return AppContainer; + }(React.Component); + AppContainer.getDerivedStateFromError = undefined; + var styles = _StyleSheet.default.create({ + appContainer: { + flex: 1 + } + }); + module.exports = AppContainer; +},359,[3,12,13,50,47,46,245,4,244,36,360,73,379,386],"node_modules/react-native/Libraries/ReactNative/AppContainer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/Inspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var renderers = findRenderers(); + + hook.resolveRNStyle = _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/flattenStyle"); + hook.nativeStyleEditorValidAttributes = Object.keys(_$$_REQUIRE(_dependencyMap[4], "../Components/View/ReactNativeStyleAttributes")); + function findRenderers() { + var allRenderers = Array.from(hook.renderers.values()); + _$$_REQUIRE(_dependencyMap[5], "invariant")(allRenderers.length >= 1, 'Expected to find at least one React Native renderer on DevTools hook.'); + return allRenderers; + } + function getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, callback) { + for (var i = 0; i < renderers.length; i++) { + var _renderer$rendererCon; + var renderer = renderers[i]; + if ((renderer == null ? void 0 : (_renderer$rendererCon = renderer.rendererConfig) == null ? void 0 : _renderer$rendererCon.getInspectorDataForViewAtPoint) != null) { + renderer.rendererConfig.getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, function (viewData) { + if (viewData && viewData.hierarchy.length > 0) { + callback(viewData); + } + }); + } + } + } + var Inspector = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")(Inspector, _React$Component); + var _super = _createSuper(Inspector); + function Inspector(props) { + var _this; + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/classCallCheck")(this, Inspector); + _this = _super.call(this, props); + _this._hideTimeoutID = null; + _this._attachToDevtools = function (agent) { + agent.addListener('hideNativeHighlight', _this._onAgentHideNativeHighlight); + agent.addListener('showNativeHighlight', _this._onAgentShowNativeHighlight); + agent.addListener('shutdown', _this._onAgentShutdown); + _this.setState({ + devtoolsAgent: agent + }); + }; + _this._onAgentHideNativeHighlight = function () { + if (_this.state.inspected === null) { + return; + } + _this._hideTimeoutID = setTimeout(function () { + _this.setState({ + inspected: null + }); + }, 100); + }; + _this._onAgentShowNativeHighlight = function (node) { + var _node$canonical; + clearTimeout(_this._hideTimeoutID); + + var component = (_node$canonical = node.canonical) != null ? _node$canonical : node; + component.measure(function (x, y, width, height, left, top) { + _this.setState({ + hierarchy: [], + inspected: { + frame: { + left: left, + top: top, + width: width, + height: height + } + } + }); + }); + }; + _this._onAgentShutdown = function () { + var agent = _this.state.devtoolsAgent; + if (agent != null) { + agent.removeListener('hideNativeHighlight', _this._onAgentHideNativeHighlight); + agent.removeListener('showNativeHighlight', _this._onAgentShowNativeHighlight); + agent.removeListener('shutdown', _this._onAgentShutdown); + _this.setState({ + devtoolsAgent: null + }); + } + }; + _this.state = { + devtoolsAgent: null, + hierarchy: null, + panelPos: 'bottom', + inspecting: true, + perfing: false, + inspected: null, + selection: null, + inspectedView: _this.props.inspectedView, + networking: false + }; + return _this; + } + _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/createClass")(Inspector, [{ + key: "componentDidMount", + value: function componentDidMount() { + hook.on('react-devtools', this._attachToDevtools); + if (hook.reactDevtoolsAgent) { + this._attachToDevtools(hook.reactDevtoolsAgent); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subs) { + this._subs.map(function (fn) { + return fn(); + }); + } + hook.off('react-devtools', this._attachToDevtools); + this._setTouchedViewData = null; + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this.setState({ + inspectedView: newProps.inspectedView + }); + } + }, { + key: "setSelection", + value: function setSelection(i) { + var _this2 = this; + var hierarchyItem = this.state.hierarchy[i]; + var _hierarchyItem$getIns = hierarchyItem.getInspectorData(_$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactNative").findNodeHandle), + measure = _hierarchyItem$getIns.measure, + props = _hierarchyItem$getIns.props, + source = _hierarchyItem$getIns.source; + measure(function (x, y, width, height, left, top) { + _this2.setState({ + inspected: { + frame: { + left: left, + top: top, + width: width, + height: height + }, + style: props.style, + source: source + }, + selection: i + }); + }); + } + }, { + key: "onTouchPoint", + value: function onTouchPoint(locationX, locationY) { + var _this3 = this; + this._setTouchedViewData = function (viewData) { + var hierarchy = viewData.hierarchy, + props = viewData.props, + selectedIndex = viewData.selectedIndex, + source = viewData.source, + frame = viewData.frame, + pointerY = viewData.pointerY, + touchedViewTag = viewData.touchedViewTag; + + if (_this3.state.devtoolsAgent && touchedViewTag) { + _this3.state.devtoolsAgent.selectNode(_$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactNative").findNodeHandle(touchedViewTag)); + } + _this3.setState({ + panelPos: pointerY > _$$_REQUIRE(_dependencyMap[10], "../Utilities/Dimensions").get('window').height / 2 ? 'top' : 'bottom', + selection: selectedIndex, + hierarchy: hierarchy, + inspected: { + style: props.style, + frame: frame, + source: source + } + }); + }; + getInspectorDataForViewAtPoint(this.state.inspectedView, locationX, locationY, function (viewData) { + if (_this3._setTouchedViewData != null) { + _this3._setTouchedViewData(viewData); + _this3._setTouchedViewData = null; + } + }); + } + }, { + key: "setPerfing", + value: function setPerfing(val) { + this.setState({ + perfing: val, + inspecting: false, + inspected: null, + networking: false + }); + } + }, { + key: "setInspecting", + value: function setInspecting(val) { + this.setState({ + inspecting: val, + inspected: null + }); + } + }, { + key: "setTouchTargeting", + value: function setTouchTargeting(val) { + var _this4 = this; + _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").setEnabled(val); + this.props.onRequestRerenderApp(function (inspectedView) { + _this4.setState({ + inspectedView: inspectedView + }); + }); + } + }, { + key: "setNetworking", + value: function setNetworking(val) { + this.setState({ + networking: val, + perfing: false, + inspecting: false, + inspected: null + }); + } + }, { + key: "render", + value: function render() { + var panelContainerStyle = this.state.panelPos === 'bottom' ? { + bottom: 0 + } : { + top: "ios" === 'ios' ? 20 : 0 + }; + return _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { + style: styles.container, + pointerEvents: "box-none", + children: [this.state.inspecting && _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./InspectorOverlay"), { + inspected: this.state.inspected + , + onTouchPoint: this.onTouchPoint.bind(this) + }), _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { + style: [styles.panelContainer, panelContainerStyle], + children: _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./InspectorPanel"), { + devtoolsIsOpen: !!this.state.devtoolsAgent, + inspecting: this.state.inspecting, + perfing: this.state.perfing + , + setPerfing: this.setPerfing.bind(this) + , + setInspecting: this.setInspecting.bind(this), + inspected: this.state.inspected, + hierarchy: this.state.hierarchy, + selection: this.state.selection + , + setSelection: this.setSelection.bind(this), + touchTargeting: _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").isEnabled() + , + setTouchTargeting: this.setTouchTargeting.bind(this), + networking: this.state.networking + , + setNetworking: this.setNetworking.bind(this) + }) + })] + }); + } + }]); + return Inspector; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ + container: { + position: 'absolute', + backgroundColor: 'transparent', + top: 0, + left: 0, + right: 0, + bottom: 0 + }, + panelContainer: { + position: 'absolute', + left: 0, + right: 0 + } + }); + module.exports = Inspector; +},360,[46,47,36,189,185,17,50,12,13,34,229,256,73,245,361,367,244],"node_modules/react-native/Libraries/Inspector/Inspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var InspectorOverlay = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorOverlay, _React$Component); + var _super = _createSuper(InspectorOverlay); + function InspectorOverlay() { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorOverlay); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.findViewForTouchEvent = function (e) { + var _e$nativeEvent$touche = e.nativeEvent.touches[0], + locationX = _e$nativeEvent$touche.locationX, + locationY = _e$nativeEvent$touche.locationY; + _this.props.onTouchPoint(locationX, locationY); + }; + _this.shouldSetResponser = function (e) { + _this.findViewForTouchEvent(e); + return true; + }; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorOverlay, [{ + key: "render", + value: function render() { + var content = null; + if (this.props.inspected) { + content = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "./ElementBox"), { + frame: this.props.inspected.frame, + style: this.props.inspected.style + }); + } + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + onStartShouldSetResponder: this.shouldSetResponser, + onResponderMove: this.findViewForTouchEvent, + nativeID: "inspectorOverlay", + style: [styles.inspector, { + height: _$$_REQUIRE(_dependencyMap[9], "../Utilities/Dimensions").get('window').height + }], + children: content + }); + } + }]); + return InspectorOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + inspector: { + backgroundColor: 'transparent', + position: 'absolute', + left: 0, + top: 0, + right: 0 + } + }); + module.exports = InspectorOverlay; +},361,[46,47,36,50,12,13,73,362,245,229,244],"node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/ElementBox.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var ElementBox = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementBox, _React$Component); + var _super = _createSuper(ElementBox); + function ElementBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementBox); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementBox, [{ + key: "render", + value: function render() { + var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style) || {}; + var margin = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('margin', style); + var padding = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('padding', style); + var frameStyle = Object.assign({}, this.props.frame); + var contentStyle = { + width: this.props.frame.width, + height: this.props.frame.height + }; + if (margin != null) { + margin = resolveRelativeSizes(margin); + frameStyle.top -= margin.top; + frameStyle.left -= margin.left; + frameStyle.height += margin.top + margin.bottom; + frameStyle.width += margin.left + margin.right; + if (margin.top < 0) { + contentStyle.height += margin.top; + } + if (margin.bottom < 0) { + contentStyle.height += margin.bottom; + } + if (margin.left < 0) { + contentStyle.width += margin.left; + } + if (margin.right < 0) { + contentStyle.width += margin.right; + } + } + if (padding != null) { + padding = resolveRelativeSizes(padding); + contentStyle.width -= padding.left + padding.right; + contentStyle.height -= padding.top + padding.bottom; + } + return _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { + style: [styles.frame, frameStyle], + pointerEvents: "none", + children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { + box: margin, + style: styles.margin, + children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { + box: padding, + style: styles.padding, + children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { + style: [styles.content, contentStyle] + }) + }) + }) + }); + } + }]); + return ElementBox; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/StyleSheet").create({ + frame: { + position: 'absolute' + }, + content: { + backgroundColor: 'rgba(200, 230, 255, 0.8)' + }, + + padding: { + borderColor: 'rgba(77, 255, 0, 0.3)' + }, + + margin: { + borderColor: 'rgba(255, 132, 0, 0.3)' + } + }); + + function resolveRelativeSizes(style) { + var resolvedStyle = Object.assign({}, style); + resolveSizeInPlace(resolvedStyle, 'top', 'height'); + resolveSizeInPlace(resolvedStyle, 'right', 'width'); + resolveSizeInPlace(resolvedStyle, 'bottom', 'height'); + resolveSizeInPlace(resolvedStyle, 'left', 'width'); + return resolvedStyle; + } + + function resolveSizeInPlace(style, direction, dimension) { + if (style[direction] !== null && typeof style[direction] === 'string') { + if (style[direction].indexOf('%') !== -1) { + style[direction] = parseFloat(style[direction]) / 100.0 * _$$_REQUIRE(_dependencyMap[12], "../Utilities/Dimensions").get('window')[dimension]; + } + if (style[direction] === 'auto') { + style[direction] = 0; + } + } + } + module.exports = ElementBox; +},362,[46,47,36,50,12,13,189,363,73,245,366,244,229],"node_modules/react-native/Libraries/Inspector/ElementBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function resolveBoxStyle(prefix, style) { + var hasParts = false; + var result = { + bottom: 0, + left: 0, + right: 0, + top: 0 + }; + + var styleForAll = style[prefix]; + if (styleForAll != null) { + for (var key of Object.keys(result)) { + result[key] = styleForAll; + } + hasParts = true; + } + var styleForHorizontal = style[prefix + 'Horizontal']; + if (styleForHorizontal != null) { + result.left = styleForHorizontal; + result.right = styleForHorizontal; + hasParts = true; + } else { + var styleForLeft = style[prefix + 'Left']; + if (styleForLeft != null) { + result.left = styleForLeft; + hasParts = true; + } + var styleForRight = style[prefix + 'Right']; + if (styleForRight != null) { + result.right = styleForRight; + hasParts = true; + } + var styleForEnd = style[prefix + 'End']; + if (styleForEnd != null) { + var constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); + if (constants.isRTL && constants.doLeftAndRightSwapInRTL) { + result.left = styleForEnd; + } else { + result.right = styleForEnd; + } + hasParts = true; + } + var styleForStart = style[prefix + 'Start']; + if (styleForStart != null) { + var _constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); + if (_constants.isRTL && _constants.doLeftAndRightSwapInRTL) { + result.right = styleForStart; + } else { + result.left = styleForStart; + } + hasParts = true; + } + } + var styleForVertical = style[prefix + 'Vertical']; + if (styleForVertical != null) { + result.bottom = styleForVertical; + result.top = styleForVertical; + hasParts = true; + } else { + var styleForBottom = style[prefix + 'Bottom']; + if (styleForBottom != null) { + result.bottom = styleForBottom; + hasParts = true; + } + var styleForTop = style[prefix + 'Top']; + if (styleForTop != null) { + result.top = styleForTop; + hasParts = true; + } + } + return hasParts ? result : null; + } + module.exports = resolveBoxStyle; +},363,[364],"node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeI18nManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeI18nManager")); + + var i18nConstants = getI18nManagerConstants(); + function getI18nManagerConstants() { + if (_NativeI18nManager.default) { + var _NativeI18nManager$ge = _NativeI18nManager.default.getConstants(), + isRTL = _NativeI18nManager$ge.isRTL, + doLeftAndRightSwapInRTL = _NativeI18nManager$ge.doLeftAndRightSwapInRTL, + localeIdentifier = _NativeI18nManager$ge.localeIdentifier; + return { + isRTL: isRTL, + doLeftAndRightSwapInRTL: doLeftAndRightSwapInRTL, + localeIdentifier: localeIdentifier + }; + } + return { + isRTL: false, + doLeftAndRightSwapInRTL: true + }; + } + module.exports = { + getConstants: function getConstants() { + return i18nConstants; + }, + allowRTL: function allowRTL(shouldAllow) { + if (!_NativeI18nManager.default) { + return; + } + _NativeI18nManager.default.allowRTL(shouldAllow); + }, + forceRTL: function forceRTL(shouldForce) { + if (!_NativeI18nManager.default) { + return; + } + _NativeI18nManager.default.forceRTL(shouldForce); + }, + swapLeftAndRightInRTL: function swapLeftAndRightInRTL(flipStyles) { + if (!_NativeI18nManager.default) { + return; + } + _NativeI18nManager.default.swapLeftAndRightInRTL(flipStyles); + }, + isRTL: i18nConstants.isRTL, + doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL + }; +},364,[3,365],"node_modules/react-native/Libraries/ReactNative/I18nManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('I18nManager'); + exports.default = _default; +},365,[16],"node_modules/react-native/Libraries/ReactNative/NativeI18nManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/BorderBox.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var BorderBox = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BorderBox, _React$Component); + var _super = _createSuper(BorderBox); + function BorderBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BorderBox); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BorderBox, [{ + key: "render", + value: function render() { + var box = this.props.box; + if (!box) { + return this.props.children; + } + var style = { + borderTopWidth: box.top, + borderBottomWidth: box.bottom, + borderLeftWidth: box.left, + borderRightWidth: box.right + }; + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: [style, this.props.style], + children: this.props.children + }); + } + }]); + return BorderBox; + }(React.Component); + module.exports = BorderBox; +},366,[46,47,36,50,12,13,73,245],"node_modules/react-native/Libraries/Inspector/BorderBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/InspectorPanel.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var InspectorPanel = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorPanel, _React$Component); + var _super = _createSuper(InspectorPanel); + function InspectorPanel() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorPanel); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorPanel, [{ + key: "renderWaiting", + value: function renderWaiting() { + if (this.props.inspecting) { + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.waitingText, + children: "Tap something to inspect it" + }); + } + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.waitingText, + children: "Nothing is inspected" + }); + } + }, { + key: "render", + value: function render() { + var contents; + if (this.props.inspected) { + contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/ScrollView/ScrollView"), { + style: styles.properties, + children: _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "./ElementProperties"), { + style: this.props.inspected.style, + frame: this.props.inspected.frame, + source: this.props.inspected.source + , + hierarchy: this.props.hierarchy, + selection: this.props.selection, + setSelection: this.props.setSelection + }) + }); + } else if (this.props.perfing) { + contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./PerformanceOverlay"), {}); + } else if (this.props.networking) { + contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[11], "./NetworkOverlay"), {}); + } else { + contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.waiting, + children: this.renderWaiting() + }); + } + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.container, + children: [!this.props.devtoolsIsOpen && contents, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.buttonRow, + children: [_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { + title: 'Inspect', + pressed: this.props.inspecting, + onClick: this.props.setInspecting + }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { + title: 'Perf', + pressed: this.props.perfing, + onClick: this.props.setPerfing + }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { + title: 'Network', + pressed: this.props.networking, + onClick: this.props.setNetworking + }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { + title: 'Touchables', + pressed: this.props.touchTargeting, + onClick: this.props.setTouchTargeting + })] + })] + }); + } + }]); + return InspectorPanel; + }(React.Component); + var InspectorPanelButton = function (_React$Component2) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorPanelButton, _React$Component2); + var _super2 = _createSuper(InspectorPanelButton); + function InspectorPanelButton() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorPanelButton); + return _super2.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorPanelButton, [{ + key: "render", + value: function render() { + var _this = this; + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Components/Touchable/TouchableHighlight"), { + onPress: function onPress() { + return _this.props.onClick(!_this.props.pressed); + }, + style: [styles.button, this.props.pressed && styles.buttonPressed], + children: _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.buttonText, + children: this.props.title + }) + }); + } + }]); + return InspectorPanelButton; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ + buttonRow: { + flexDirection: 'row' + }, + button: { + backgroundColor: 'rgba(0, 0, 0, 0.3)', + margin: 2, + height: 30, + justifyContent: 'center', + alignItems: 'center' + }, + buttonPressed: { + backgroundColor: 'rgba(255, 255, 255, 0.3)' + }, + buttonText: { + textAlign: 'center', + color: 'white', + margin: 5 + }, + container: { + backgroundColor: 'rgba(0, 0, 0, 0.7)' + }, + properties: { + height: 200 + }, + waiting: { + height: 100 + }, + waitingText: { + fontSize: 20, + textAlign: 'center', + marginVertical: 20, + color: 'white' + } + }); + module.exports = InspectorPanel; +},367,[46,47,36,50,12,13,73,255,310,368,375,376,245,369,244],"node_modules/react-native/Libraries/Inspector/InspectorPanel.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/ElementProperties.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var ElementProperties = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementProperties, _React$Component); + var _super = _createSuper(ElementProperties); + function ElementProperties() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementProperties); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementProperties, [{ + key: "render", + value: function render() { + var _this = this; + var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style); + var selection = this.props.selection; + var openFileButton; + var source = this.props.source; + var _ref = source || {}, + fileName = _ref.fileName, + lineNumber = _ref.lineNumber; + if (fileName && lineNumber) { + var parts = fileName.split('/'); + var fileNameShort = parts[parts.length - 1]; + openFileButton = _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { + style: styles.openButton, + onPress: _$$_REQUIRE(_dependencyMap[9], "../Core/Devtools/openFileInEditor").bind(null, fileName, lineNumber), + children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.openButtonTitle, + numberOfLines: 1, + children: [fileNameShort, ":", lineNumber] + }) + }); + } + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[11], "../Components/Touchable/TouchableWithoutFeedback"), { + children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.info, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.breadcrumb, + children: _$$_REQUIRE(_dependencyMap[13], "../Utilities/mapWithSeparator")(this.props.hierarchy, function (hierarchyItem, i) { + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { + style: [styles.breadItem, i === selection && styles.selected] + , + onPress: function onPress() { + return _this.props.setSelection(i); + }, + children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.breadItemText, + children: hierarchyItem.name + }) + }, 'item-' + i); + }, function (i) { + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.breadSep, + children: "\u25B8" + }, 'sep-' + i); + }) + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.row, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.col, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./StyleInspector"), { + style: style + }), openFileButton] + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./BoxInspector"), { + style: style, + frame: this.props.frame + })] + })] + }) + }); + } + }]); + return ElementProperties; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ + breadSep: { + fontSize: 8, + color: 'white' + }, + breadcrumb: { + flexDirection: 'row', + flexWrap: 'wrap', + alignItems: 'flex-start', + marginBottom: 5 + }, + selected: { + borderColor: 'white', + borderRadius: 5 + }, + breadItem: { + borderWidth: 1, + borderColor: 'transparent', + marginHorizontal: 2 + }, + breadItemText: { + fontSize: 10, + color: 'white', + marginHorizontal: 5 + }, + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between' + }, + col: { + flex: 1 + }, + info: { + padding: 10 + }, + openButton: { + padding: 10, + backgroundColor: '#000', + marginVertical: 5, + marginRight: 5, + borderRadius: 2 + }, + openButtonTitle: { + color: 'white', + fontSize: 8 + } + }); + module.exports = ElementProperties; +},368,[46,47,36,50,12,13,189,73,369,370,255,371,245,372,373,374,244],"node_modules/react-native/Libraries/Inspector/ElementProperties.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Platform")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Components/View/View")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js", + _this3 = this; + var _excluded = ["onBlur", "onFocus"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var TouchableHighlight = function (_React$Component) { + (0, _inherits2.default)(TouchableHighlight, _React$Component); + var _super = _createSuper(TouchableHighlight); + function TouchableHighlight() { + var _this; + (0, _classCallCheck2.default)(this, TouchableHighlight); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._isMounted = false; + _this.state = { + pressability: new _Pressability.default(_this._createPressabilityConfig()), + extraStyles: _this.props.testOnly_pressed === true ? _this._createExtraStyles() : null + }; + return _this; + } + (0, _createClass2.default)(TouchableHighlight, [{ + key: "_createPressabilityConfig", + value: function _createPressabilityConfig() { + var _this$props$accessibi, + _this2 = this; + return { + cancelable: !this.props.rejectResponderTermination, + disabled: this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, + hitSlop: this.props.hitSlop, + delayLongPress: this.props.delayLongPress, + delayPressIn: this.props.delayPressIn, + delayPressOut: this.props.delayPressOut, + minPressDuration: 0, + pressRectOffset: this.props.pressRetentionOffset, + android_disableSound: this.props.touchSoundDisabled, + onBlur: function onBlur(event) { + if (_Platform.default.isTV) { + _this2._hideUnderlay(); + } + if (_this2.props.onBlur != null) { + _this2.props.onBlur(event); + } + }, + onFocus: function onFocus(event) { + if (_Platform.default.isTV) { + _this2._showUnderlay(); + } + if (_this2.props.onFocus != null) { + _this2.props.onFocus(event); + } + }, + onLongPress: this.props.onLongPress, + onPress: function onPress(event) { + if (_this2._hideTimeout != null) { + clearTimeout(_this2._hideTimeout); + } + if (!_Platform.default.isTV) { + var _this2$props$delayPre; + _this2._showUnderlay(); + _this2._hideTimeout = setTimeout(function () { + _this2._hideUnderlay(); + }, (_this2$props$delayPre = _this2.props.delayPressOut) != null ? _this2$props$delayPre : 0); + } + if (_this2.props.onPress != null) { + _this2.props.onPress(event); + } + }, + onPressIn: function onPressIn(event) { + if (_this2._hideTimeout != null) { + clearTimeout(_this2._hideTimeout); + _this2._hideTimeout = null; + } + _this2._showUnderlay(); + if (_this2.props.onPressIn != null) { + _this2.props.onPressIn(event); + } + }, + onPressOut: function onPressOut(event) { + if (_this2._hideTimeout == null) { + _this2._hideUnderlay(); + } + if (_this2.props.onPressOut != null) { + _this2.props.onPressOut(event); + } + } + }; + } + }, { + key: "_createExtraStyles", + value: function _createExtraStyles() { + var _this$props$activeOpa; + return { + child: { + opacity: (_this$props$activeOpa = this.props.activeOpacity) != null ? _this$props$activeOpa : 0.85 + }, + underlay: { + backgroundColor: this.props.underlayColor === undefined ? 'black' : this.props.underlayColor + } + }; + } + }, { + key: "_showUnderlay", + value: function _showUnderlay() { + if (!this._isMounted || !this._hasPressHandler()) { + return; + } + this.setState({ + extraStyles: this._createExtraStyles() + }); + if (this.props.onShowUnderlay != null) { + this.props.onShowUnderlay(); + } + } + }, { + key: "_hideUnderlay", + value: function _hideUnderlay() { + if (this._hideTimeout != null) { + clearTimeout(this._hideTimeout); + this._hideTimeout = null; + } + if (this.props.testOnly_pressed === true) { + return; + } + if (this._hasPressHandler()) { + this.setState({ + extraStyles: null + }); + if (this.props.onHideUnderlay != null) { + this.props.onHideUnderlay(); + } + } + } + }, { + key: "_hasPressHandler", + value: function _hasPressHandler() { + return this.props.onPress != null || this.props.onPressIn != null || this.props.onPressOut != null || this.props.onLongPress != null; + } + }, { + key: "render", + value: function render() { + var _this$state$extraStyl, _this$state$extraStyl2; + var child = React.Children.only(this.props.children); + + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { + disabled: this.props.disabled + }) : this.props.accessibilityState; + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_View.default, Object.assign({ + accessible: this.props.accessible !== false, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityHint: this.props.accessibilityHint, + accessibilityLanguage: this.props.accessibilityLanguage, + accessibilityRole: this.props.accessibilityRole, + accessibilityState: accessibilityState, + accessibilityValue: this.props.accessibilityValue, + accessibilityActions: this.props.accessibilityActions, + onAccessibilityAction: this.props.onAccessibilityAction, + importantForAccessibility: this.props.importantForAccessibility, + accessibilityLiveRegion: this.props.accessibilityLiveRegion, + accessibilityViewIsModal: this.props.accessibilityViewIsModal, + accessibilityElementsHidden: this.props.accessibilityElementsHidden, + style: _StyleSheet.default.compose(this.props.style, (_this$state$extraStyl = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl.underlay), + onLayout: this.props.onLayout, + hitSlop: this.props.hitSlop, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + nextFocusDown: this.props.nextFocusDown, + nextFocusForward: this.props.nextFocusForward, + nextFocusLeft: this.props.nextFocusLeft, + nextFocusRight: this.props.nextFocusRight, + nextFocusUp: this.props.nextFocusUp, + focusable: this.props.focusable !== false && this.props.onPress !== undefined, + nativeID: this.props.nativeID, + testID: this.props.testID, + ref: this.props.hostRef + }, eventHandlersWithoutBlurAndFocus, { + children: [React.cloneElement(child, { + style: _StyleSheet.default.compose(child.props.style, (_this$state$extraStyl2 = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl2.child) + }), __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "green", + hitSlop: this.props.hitSlop + }) : null] + })); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._isMounted = true; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + this.state.pressability.configure(this._createPressabilityConfig()); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._isMounted = false; + if (this._hideTimeout != null) { + clearTimeout(this._hideTimeout); + } + this.state.pressability.reset(); + } + }]); + return TouchableHighlight; + }(React.Component); + var Touchable = React.forwardRef(function (props, hostRef) { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(TouchableHighlight, Object.assign({}, props, { + hostRef: hostRef + })); + }); + Touchable.displayName = 'TouchableHighlight'; + module.exports = Touchable; +},369,[3,132,12,13,50,47,46,259,244,14,245,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function openFileInEditor(file, lineNumber) { + fetch(_$$_REQUIRE(_dependencyMap[0], "./getDevServer")().url + 'open-stack-frame', { + method: 'POST', + body: JSON.stringify({ + file: file, + lineNumber: lineNumber + }) + }); + } + module.exports = openFileInEditor; +},370,[66],"node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Components/View/View")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _excluded = ["onBlur", "onFocus"]; + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var PASSTHROUGH_PROPS = ['accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityLanguage', 'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLiveRegion', 'accessibilityRole', 'accessibilityValue', 'accessibilityViewIsModal', 'hitSlop', 'importantForAccessibility', 'nativeID', 'onAccessibilityAction', 'onBlur', 'onFocus', 'onLayout', 'testID']; + var TouchableWithoutFeedback = function (_React$Component) { + (0, _inherits2.default)(TouchableWithoutFeedback, _React$Component); + var _super = _createSuper(TouchableWithoutFeedback); + function TouchableWithoutFeedback() { + var _this; + (0, _classCallCheck2.default)(this, TouchableWithoutFeedback); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + pressability: new _Pressability.default(createPressabilityConfig(_this.props)) + }; + return _this; + } + (0, _createClass2.default)(TouchableWithoutFeedback, [{ + key: "render", + value: function render() { + var element = React.Children.only(this.props.children); + var children = [element.props.children]; + if (__DEV__) { + if (element.type === _View.default) { + children.push((0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "red", + hitSlop: this.props.hitSlop + })); + } + } + + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var elementProps = Object.assign({}, eventHandlersWithoutBlurAndFocus, { + accessible: this.props.accessible !== false, + accessibilityState: this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { + disabled: this.props.disabled + }) : this.props.accessibilityState, + focusable: this.props.focusable !== false && this.props.onPress !== undefined + }); + for (var prop of PASSTHROUGH_PROPS) { + if (this.props[prop] !== undefined) { + elementProps[prop] = this.props[prop]; + } + } + return React.cloneElement.apply(React, [element, elementProps].concat(children)); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this.state.pressability.configure(createPressabilityConfig(this.props)); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.state.pressability.reset(); + } + }]); + return TouchableWithoutFeedback; + }(React.Component); + function createPressabilityConfig(props) { + var _props$accessibilityS; + return { + cancelable: !props.rejectResponderTermination, + disabled: props.disabled !== null ? props.disabled : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled, + hitSlop: props.hitSlop, + delayLongPress: props.delayLongPress, + delayPressIn: props.delayPressIn, + delayPressOut: props.delayPressOut, + minPressDuration: 0, + pressRectOffset: props.pressRetentionOffset, + android_disableSound: props.touchSoundDisabled, + onBlur: props.onBlur, + onFocus: props.onFocus, + onLongPress: props.onLongPress, + onPress: props.onPress, + onPressIn: props.onPressIn, + onPressOut: props.onPressOut + }; + } + TouchableWithoutFeedback.displayName = 'TouchableWithoutFeedback'; + module.exports = TouchableWithoutFeedback; +},371,[3,132,12,13,50,47,46,259,245,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function mapWithSeparator(items, itemRenderer, spacerRenderer) { + var mapped = []; + if (items.length > 0) { + mapped.push(itemRenderer(items[0], 0, items)); + for (var ii = 1; ii < items.length; ii++) { + mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items)); + } + } + return mapped; + } + module.exports = mapWithSeparator; +},372,[],"node_modules/react-native/Libraries/Utilities/mapWithSeparator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/StyleInspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var StyleInspector = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(StyleInspector, _React$Component); + var _super = _createSuper(StyleInspector); + function StyleInspector() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, StyleInspector); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(StyleInspector, [{ + key: "render", + value: function render() { + var _this = this; + if (!this.props.style) { + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.noStyle, + children: "No style" + }); + } + var names = Object.keys(this.props.style); + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.container, + children: [_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: names.map(function (name) { + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.attr, + children: [name, ":"] + }, name); + }) + }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: names.map(function (name) { + var value = _this.props.style[name]; + return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.value, + children: typeof value !== 'string' && typeof value !== 'number' ? JSON.stringify(value) : value + }, name); + }) + })] + }); + } + }]); + return StyleInspector; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/StyleSheet").create({ + container: { + flexDirection: 'row' + }, + attr: { + fontSize: 10, + color: '#ccc' + }, + value: { + fontSize: 10, + color: 'white', + marginLeft: 10 + }, + noStyle: { + color: 'white', + fontSize: 10 + } + }); + module.exports = StyleInspector; +},373,[46,47,36,50,12,13,73,255,245,244],"node_modules/react-native/Libraries/Inspector/StyleInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/BoxInspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var blank = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + var BoxInspector = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxInspector, _React$Component); + var _super = _createSuper(BoxInspector); + function BoxInspector() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxInspector); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxInspector, [{ + key: "render", + value: function render() { + var frame = this.props.frame; + var style = this.props.style; + var margin = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('margin', style) || blank; + var padding = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('padding', style) || blank; + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { + title: "margin", + titleStyle: styles.marginLabel, + box: margin, + children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { + title: "padding", + box: padding, + children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.innerText, + children: ["(", (frame.left || 0).toFixed(1), ", ", (frame.top || 0).toFixed(1), ")"] + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.innerText, + children: [(frame.width || 0).toFixed(1), " \xD7", ' ', (frame.height || 0).toFixed(1)] + })] + }) + }) + }); + } + }]); + return BoxInspector; + }(React.Component); + var BoxContainer = function (_React$Component2) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxContainer, _React$Component2); + var _super2 = _createSuper(BoxContainer); + function BoxContainer() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxContainer); + return _super2.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxContainer, [{ + key: "render", + value: function render() { + var box = this.props.box; + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.box, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [this.props.titleStyle, styles.label], + children: this.props.title + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.top + })] + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.left + }), this.props.children, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.right + })] + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.bottom + })] + }); + } + }]); + return BoxContainer; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-around' + }, + marginLabel: { + width: 60 + }, + label: { + fontSize: 10, + color: 'rgb(255,100,0)', + marginLeft: 5, + flex: 1, + textAlign: 'left', + top: -3 + }, + innerText: { + color: 'yellow', + fontSize: 12, + textAlign: 'center', + width: 70 + }, + box: { + borderWidth: 1, + borderColor: 'grey' + }, + boxText: { + color: 'white', + fontSize: 12, + marginHorizontal: 3, + marginVertical: 2, + textAlign: 'center' + } + }); + module.exports = BoxInspector; +},374,[46,47,36,50,12,13,363,73,245,255,244],"node_modules/react-native/Libraries/Inspector/BoxInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var PerformanceOverlay = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(PerformanceOverlay, _React$Component); + var _super = _createSuper(PerformanceOverlay); + function PerformanceOverlay() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, PerformanceOverlay); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(PerformanceOverlay, [{ + key: "render", + value: function render() { + var perfLogs = _$$_REQUIRE(_dependencyMap[6], "../Utilities/GlobalPerformanceLogger").getTimespans(); + var items = []; + for (var key in perfLogs) { + var _perfLogs$key; + if ((_perfLogs$key = perfLogs[key]) != null && _perfLogs$key.totalTime) { + var unit = key === 'BundleSize' ? 'b' : 'ms'; + items.push(_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [styles.text, styles.label], + children: key + }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [styles.text, styles.totalTime], + children: perfLogs[key].totalTime + unit + })] + }, key)); + } + } + return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.container, + children: items + }); + } + }]); + return PerformanceOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + container: { + height: 100, + paddingTop: 10 + }, + label: { + flex: 1 + }, + row: { + flexDirection: 'row', + paddingHorizontal: 10 + }, + text: { + color: 'white', + fontSize: 12 + }, + totalTime: { + paddingRight: 100 + } + }); + module.exports = PerformanceOverlay; +},375,[46,47,36,50,12,13,122,73,245,255,244],"node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var LISTVIEW_CELL_HEIGHT = 15; + + var nextXHRId = 0; + function getStringByValue(value) { + if (value === undefined) { + return 'undefined'; + } + if (typeof value === 'object') { + return JSON.stringify(value); + } + if (typeof value === 'string' && value.length > 500) { + return String(value).substr(0, 500).concat('\n***TRUNCATED TO 500 CHARACTERS***'); + } + return value; + } + function getTypeShortName(type) { + if (type === 'XMLHttpRequest') { + return 'XHR'; + } else if (type === 'WebSocket') { + return 'WS'; + } + return ''; + } + function keyExtractor(request) { + return String(request.id); + } + + var NetworkOverlay = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(NetworkOverlay, _React$Component); + var _super = _createSuper(NetworkOverlay); + function NetworkOverlay() { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, NetworkOverlay); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._requestsListViewScrollMetrics = { + offset: 0, + visibleLength: 0, + contentLength: 0 + }; + _this._socketIdMap = {}; + _this._xhrIdMap = {}; + _this.state = { + detailRowId: null, + requests: [] + }; + _this._renderItem = function (_ref) { + var item = _ref.item, + index = _ref.index; + var tableRowViewStyle = [styles.tableRow, index % 2 === 1 ? styles.tableRowOdd : styles.tableRowEven, index === _this.state.detailRowId && styles.tableRowPressed]; + var urlCellViewStyle = styles.urlCellView; + var methodCellViewStyle = styles.methodCellView; + return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { + onPress: function onPress() { + _this._pressRow(index); + }, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: tableRowViewStyle, + children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: urlCellViewStyle, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: item.url + }) + }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: methodCellViewStyle, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: getTypeShortName(item.type) + }) + })] + }) + }) + }); + }; + _this._indicateAdditionalRequests = function () { + if (_this._requestsListView) { + var distanceFromEndThreshold = LISTVIEW_CELL_HEIGHT * 2; + var _this$_requestsListVi = _this._requestsListViewScrollMetrics, + offset = _this$_requestsListVi.offset, + visibleLength = _this$_requestsListVi.visibleLength, + contentLength = _this$_requestsListVi.contentLength; + var distanceFromEnd = contentLength - visibleLength - offset; + var isCloseToEnd = distanceFromEnd <= distanceFromEndThreshold; + if (isCloseToEnd) { + _this._requestsListView.scrollToEnd(); + } else { + _this._requestsListView.flashScrollIndicators(); + } + } + }; + _this._captureRequestsListView = function (listRef) { + _this._requestsListView = listRef; + }; + _this._requestsListViewOnScroll = function (e) { + _this._requestsListViewScrollMetrics.offset = e.nativeEvent.contentOffset.y; + _this._requestsListViewScrollMetrics.visibleLength = e.nativeEvent.layoutMeasurement.height; + _this._requestsListViewScrollMetrics.contentLength = e.nativeEvent.contentSize.height; + }; + _this._scrollDetailToTop = function () { + if (_this._detailScrollView) { + _this._detailScrollView.scrollTo({ + y: 0, + animated: false + }); + } + }; + _this._closeButtonClicked = function () { + _this.setState({ + detailRowId: null + }); + }; + return _this; + } + _$$_REQUIRE(_dependencyMap[9], "@babel/runtime/helpers/createClass")(NetworkOverlay, [{ + key: "_enableXHRInterception", + value: function _enableXHRInterception() { + var _this2 = this; + if (_$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").isInterceptorEnabled()) { + return; + } + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setOpenCallback(function (method, url, xhr) { + xhr._index = nextXHRId++; + var xhrIndex = _this2.state.requests.length; + _this2._xhrIdMap[xhr._index] = xhrIndex; + var _xhr = { + id: xhrIndex, + type: 'XMLHttpRequest', + method: method, + url: url + }; + _this2.setState({ + requests: _this2.state.requests.concat(_xhr) + }, _this2._indicateAdditionalRequests); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setRequestHeaderCallback(function (header, value, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref2) { + var requests = _ref2.requests; + var networkRequestInfo = requests[xhrIndex]; + if (!networkRequestInfo.requestHeaders) { + networkRequestInfo.requestHeaders = {}; + } + networkRequestInfo.requestHeaders[header] = value; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setSendCallback(function (data, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref3) { + var requests = _ref3.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.dataSent = data; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setHeaderReceivedCallback(function (type, size, responseHeaders, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref4) { + var requests = _ref4.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.responseContentType = type; + networkRequestInfo.responseSize = size; + networkRequestInfo.responseHeaders = responseHeaders; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setResponseCallback(function (status, timeout, response, responseURL, responseType, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref5) { + var requests = _ref5.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.status = status; + networkRequestInfo.timeout = timeout; + networkRequestInfo.response = response; + networkRequestInfo.responseURL = responseURL; + networkRequestInfo.responseType = responseType; + return { + requests: requests + }; + }); + }); + + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").enableInterception(); + } + }, { + key: "_enableWebSocketInterception", + value: function _enableWebSocketInterception() { + var _this3 = this; + if (_$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").isInterceptorEnabled()) { + return; + } + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setConnectCallback(function (url, protocols, options, socketId) { + var socketIndex = _this3.state.requests.length; + _this3._socketIdMap[socketId] = socketIndex; + var _webSocket = { + id: socketIndex, + type: 'WebSocket', + url: url, + protocols: protocols + }; + _this3.setState({ + requests: _this3.state.requests.concat(_webSocket) + }, _this3._indicateAdditionalRequests); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setCloseCallback(function (statusCode, closeReason, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + if (statusCode !== null && closeReason !== null) { + _this3.setState(function (_ref6) { + var requests = _ref6.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.status = statusCode; + networkRequestInfo.closeReason = closeReason; + return { + requests: requests + }; + }); + } + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setSendCallback(function (data, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref7) { + var requests = _ref7.requests; + var networkRequestInfo = requests[socketIndex]; + if (!networkRequestInfo.messages) { + networkRequestInfo.messages = ''; + } + networkRequestInfo.messages += 'Sent: ' + JSON.stringify(data) + '\n'; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnMessageCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref8) { + var requests = _ref8.requests; + var networkRequestInfo = requests[socketIndex]; + if (!networkRequestInfo.messages) { + networkRequestInfo.messages = ''; + } + networkRequestInfo.messages += 'Received: ' + JSON.stringify(message) + '\n'; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnCloseCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref9) { + var requests = _ref9.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.serverClose = message; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnErrorCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref10) { + var requests = _ref10.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.serverError = message; + return { + requests: requests + }; + }); + }); + + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").enableInterception(); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._enableXHRInterception(); + this._enableWebSocketInterception(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").disableInterception(); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").disableInterception(); + } + }, { + key: "_renderItemDetail", + value: function _renderItemDetail(id) { + var _this4 = this; + var requestItem = this.state.requests[id]; + var details = Object.keys(requestItem).map(function (key) { + if (key === 'id') { + return; + } + return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.detailViewRow, + children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: [styles.detailViewText, styles.detailKeyCellView], + children: key + }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: [styles.detailViewText, styles.detailValueCellView], + children: getStringByValue(requestItem[key]) + })] + }, key); + }); + return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { + style: styles.closeButton, + onPress: this._closeButtonClicked, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.closeButtonText, + children: "v" + }) + }) + }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), { + style: styles.detailScrollView, + ref: function ref(scrollRef) { + return _this4._detailScrollView = scrollRef; + }, + children: details + })] + }); + } + }, { + key: "_pressRow", + value: + function _pressRow(rowId) { + this.setState({ + detailRowId: rowId + }, this._scrollDetailToTop); + } + }, { + key: "_getRequestIndexByXHRID", + value: function _getRequestIndexByXHRID(index) { + if (index === undefined) { + return -1; + } + var xhrIndex = this._xhrIdMap[index]; + if (xhrIndex === undefined) { + return -1; + } else { + return xhrIndex; + } + } + }, { + key: "render", + value: function render() { + var _this$state = this.state, + requests = _this$state.requests, + detailRowId = _this$state.detailRowId; + return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.container, + children: [detailRowId != null && this._renderItemDetail(detailRowId), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.listViewTitle, + children: requests.length > 0 && _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.tableRow, + children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.urlTitleCellView, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: "URL" + }) + }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.methodTitleCellView, + children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: "Type" + }) + })] + }) + }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Lists/FlatList"), { + ref: this._captureRequestsListView, + onScroll: this._requestsListViewOnScroll, + style: styles.listView, + data: requests, + renderItem: this._renderItem, + keyExtractor: keyExtractor, + extraData: this.state + })] + }); + } + }]); + return NetworkOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ + container: { + paddingTop: 10, + paddingBottom: 10, + paddingLeft: 5, + paddingRight: 5 + }, + listViewTitle: { + height: 20 + }, + listView: { + flex: 1, + height: 60 + }, + tableRow: { + flexDirection: 'row', + flex: 1, + height: LISTVIEW_CELL_HEIGHT + }, + tableRowEven: { + backgroundColor: '#555' + }, + tableRowOdd: { + backgroundColor: '#000' + }, + tableRowPressed: { + backgroundColor: '#3B5998' + }, + cellText: { + color: 'white', + fontSize: 12 + }, + methodTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: '#444', + flex: 1 + }, + urlTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + backgroundColor: '#444', + flex: 5, + paddingLeft: 3 + }, + methodCellView: { + height: 15, + borderColor: '#DCD7CD', + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + flex: 1 + }, + urlCellView: { + height: 15, + borderColor: '#DCD7CD', + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + flex: 5, + paddingLeft: 3 + }, + detailScrollView: { + flex: 1, + height: 180, + marginTop: 5, + marginBottom: 5 + }, + detailKeyCellView: { + flex: 1.3 + }, + detailValueCellView: { + flex: 2 + }, + detailViewRow: { + flexDirection: 'row', + paddingHorizontal: 3 + }, + detailViewText: { + color: 'white', + fontSize: 11 + }, + closeButtonText: { + color: 'white', + fontSize: 10 + }, + closeButton: { + marginTop: 5, + backgroundColor: '#888', + justifyContent: 'center', + alignItems: 'center' + } + }); + module.exports = NetworkOverlay; +},376,[46,47,36,50,12,73,369,245,255,13,377,378,310,305,244],"node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var originalXHROpen = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open; + var originalXHRSend = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send; + var originalXHRSetRequestHeader = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader; + var openCallback; + var sendCallback; + var requestHeaderCallback; + var headerReceivedCallback; + var responseCallback; + var _isInterceptorEnabled = false; + + var XHRInterceptor = { + setOpenCallback: function setOpenCallback(callback) { + openCallback = callback; + }, + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; + }, + setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) { + headerReceivedCallback = callback; + }, + setResponseCallback: function setResponseCallback(callback) { + responseCallback = callback; + }, + setRequestHeaderCallback: function setRequestHeaderCallback(callback) { + requestHeaderCallback = callback; + }, + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; + }, + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; + } + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = function (method, url) { + if (openCallback) { + openCallback(method, url, this); + } + originalXHROpen.apply(this, arguments); + }; + + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = function (header, value) { + if (requestHeaderCallback) { + requestHeaderCallback(header, value, this); + } + originalXHRSetRequestHeader.apply(this, arguments); + }; + + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = function (data) { + var _this = this; + if (sendCallback) { + sendCallback(data, this); + } + if (this.addEventListener) { + this.addEventListener('readystatechange', function () { + if (!_isInterceptorEnabled) { + return; + } + if (_this.readyState === _this.HEADERS_RECEIVED) { + var contentTypeString = _this.getResponseHeader('Content-Type'); + var contentLengthString = _this.getResponseHeader('Content-Length'); + var responseContentType, responseSize; + if (contentTypeString) { + responseContentType = contentTypeString.split(';')[0]; + } + if (contentLengthString) { + responseSize = parseInt(contentLengthString, 10); + } + if (headerReceivedCallback) { + headerReceivedCallback(responseContentType, responseSize, _this.getAllResponseHeaders(), _this); + } + } + if (_this.readyState === _this.DONE) { + if (responseCallback) { + responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this); + } + } + }, false); + } + originalXHRSend.apply(this, arguments); + }; + _isInterceptorEnabled = true; + }, + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; + } + _isInterceptorEnabled = false; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = originalXHRSend; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = originalXHROpen; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = originalXHRSetRequestHeader; + responseCallback = null; + openCallback = null; + sendCallback = null; + headerReceivedCallback = null; + requestHeaderCallback = null; + } + }; + module.exports = XHRInterceptor; +},377,[114],"node_modules/react-native/Libraries/Network/XHRInterceptor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); + var _NativeWebSocketModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeWebSocketModule")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + var _base64Js = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "base64-js")); + + var originalRCTWebSocketConnect = _NativeWebSocketModule.default.connect; + var originalRCTWebSocketSend = _NativeWebSocketModule.default.send; + var originalRCTWebSocketSendBinary = _NativeWebSocketModule.default.sendBinary; + var originalRCTWebSocketClose = _NativeWebSocketModule.default.close; + var eventEmitter; + var subscriptions; + var closeCallback; + var sendCallback; + var connectCallback; + var onOpenCallback; + var onMessageCallback; + var onErrorCallback; + var onCloseCallback; + var _isInterceptorEnabled = false; + + var WebSocketInterceptor = { + setCloseCallback: function setCloseCallback(callback) { + closeCallback = callback; + }, + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; + }, + setConnectCallback: function setConnectCallback(callback) { + connectCallback = callback; + }, + setOnOpenCallback: function setOnOpenCallback(callback) { + onOpenCallback = callback; + }, + setOnMessageCallback: function setOnMessageCallback(callback) { + onMessageCallback = callback; + }, + setOnErrorCallback: function setOnErrorCallback(callback) { + onErrorCallback = callback; + }, + setOnCloseCallback: function setOnCloseCallback(callback) { + onCloseCallback = callback; + }, + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; + }, + _unregisterEvents: function _unregisterEvents() { + subscriptions.forEach(function (e) { + return e.remove(); + }); + subscriptions = []; + }, + _registerEvents: function _registerEvents() { + subscriptions = [eventEmitter.addListener('websocketMessage', function (ev) { + if (onMessageCallback) { + onMessageCallback(ev.id, ev.type === 'binary' ? WebSocketInterceptor._arrayBufferToString(ev.data) : ev.data); + } + }), eventEmitter.addListener('websocketOpen', function (ev) { + if (onOpenCallback) { + onOpenCallback(ev.id); + } + }), eventEmitter.addListener('websocketClosed', function (ev) { + if (onCloseCallback) { + onCloseCallback(ev.id, { + code: ev.code, + reason: ev.reason + }); + } + }), eventEmitter.addListener('websocketFailed', function (ev) { + if (onErrorCallback) { + onErrorCallback(ev.id, { + message: ev.message + }); + } + })]; + }, + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; + } + eventEmitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativeWebSocketModule.default); + WebSocketInterceptor._registerEvents(); + + _NativeWebSocketModule.default.connect = function (url, protocols, options, socketId) { + if (connectCallback) { + connectCallback(url, protocols, options, socketId); + } + originalRCTWebSocketConnect.apply(this, arguments); + }; + + _NativeWebSocketModule.default.send = function (data, socketId) { + if (sendCallback) { + sendCallback(data, socketId); + } + originalRCTWebSocketSend.apply(this, arguments); + }; + + _NativeWebSocketModule.default.sendBinary = function (data, socketId) { + if (sendCallback) { + sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId); + } + originalRCTWebSocketSendBinary.apply(this, arguments); + }; + + _NativeWebSocketModule.default.close = function () { + if (closeCallback) { + if (arguments.length === 3) { + closeCallback(arguments[0], arguments[1], arguments[2]); + } else { + closeCallback(null, null, arguments[0]); + } + } + originalRCTWebSocketClose.apply(this, arguments); + }; + _isInterceptorEnabled = true; + }, + _arrayBufferToString: function _arrayBufferToString(data) { + var value = _base64Js.default.toByteArray(data).buffer; + if (value === undefined || value === null) { + return '(no value)'; + } + if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && value instanceof ArrayBuffer) { + return "ArrayBuffer {" + String(Array.from(new Uint8Array(value))) + "}"; + } + return value; + }, + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; + } + _isInterceptorEnabled = false; + _NativeWebSocketModule.default.send = originalRCTWebSocketSend; + _NativeWebSocketModule.default.sendBinary = originalRCTWebSocketSendBinary; + _NativeWebSocketModule.default.close = originalRCTWebSocketClose; + _NativeWebSocketModule.default.connect = originalRCTWebSocketConnect; + connectCallback = null; + closeCallback = null; + sendCallback = null; + onOpenCallback = null; + onMessageCallback = null; + onCloseCallback = null; + onErrorCallback = null; + WebSocketInterceptor._unregisterEvents(); + } + }; + module.exports = WebSocketInterceptor; +},378,[3,134,135,14,125],"node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports._LogBoxNotificationContainer = _LogBoxNotificationContainer; + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Components/View/View")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "./Data/LogBoxData")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Data/LogBoxLog")); + var _LogBoxNotification = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./UI/LogBoxNotification")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _LogBoxNotificationContainer(props) { + var logs = props.logs; + var onDismissWarns = function onDismissWarns() { + LogBoxData.clearWarnings(); + }; + var onDismissErrors = function onDismissErrors() { + LogBoxData.clearErrors(); + }; + var setSelectedLog = function setSelectedLog(index) { + LogBoxData.setSelectedLog(index); + }; + function openLog(log) { + var index = logs.length - 1; + + while (index > 0 && logs[index] !== log) { + index -= 1; + } + setSelectedLog(index); + } + if (logs.length === 0 || props.isDisabled === true) { + return null; + } + var warnings = logs.filter(function (log) { + return log.level === 'warn'; + }); + var errors = logs.filter(function (log) { + return log.level === 'error' || log.level === 'fatal'; + }); + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.list, + children: [warnings.length > 0 && (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: styles.toast, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { + log: warnings[warnings.length - 1], + level: "warn", + totalLogCount: warnings.length, + onPressOpen: function onPressOpen() { + return openLog(warnings[warnings.length - 1]); + }, + onPressDismiss: onDismissWarns + }) + }), errors.length > 0 && (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: styles.toast, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { + log: errors[errors.length - 1], + level: "error", + totalLogCount: errors.length, + onPressOpen: function onPressOpen() { + return openLog(errors[errors.length - 1]); + }, + onPressDismiss: onDismissErrors + }) + })] + }); + } + var styles = _StyleSheet.default.create({ + list: { + bottom: 20, + left: 10, + right: 10, + position: 'absolute' + }, + toast: { + borderRadius: 8, + marginBottom: 5, + overflow: 'hidden' + } + }); + var _default = LogBoxData.withSubscription(_LogBoxNotificationContainer); + exports.default = _default; +},379,[36,3,244,245,61,62,380,73],"node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _Image = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Image/Image")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Data/LogBoxLog")); + var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxMessage")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "../Data/LogBoxData")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxLogNotification(props) { + var totalLogCount = props.totalLogCount, + level = props.level, + log = props.log; + + React.useEffect(function () { + LogBoxData.symbolicateLogLazy(log); + }, [log]); + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: toastStyles.container, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + onPress: props.onPressOpen, + style: toastStyles.press, + backgroundColor: { + default: LogBoxStyle.getBackgroundColor(1), + pressed: LogBoxStyle.getBackgroundColor(0.9) + }, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { + style: toastStyles.content, + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(CountBadge, { + count: totalLogCount, + level: level + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Message, { + message: log.message + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(DismissButton, { + onPress: props.onPressDismiss + })] + }) + }) + }); + } + function CountBadge(props) { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: countStyles.outside, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: [countStyles.inside, countStyles[props.level]], + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: countStyles.text, + children: props.count <= 1 ? '!' : props.count + }) + }) + }); + } + function Message(props) { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: messageStyles.container, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + numberOfLines: 1, + style: messageStyles.text, + children: props.message && (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { + plaintext: true, + message: props.message, + style: messageStyles.substitutionText + }) + }) + }); + } + function DismissButton(props) { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: dismissStyles.container, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: LogBoxStyle.getTextColor(0.3), + pressed: LogBoxStyle.getTextColor(0.5) + }, + hitSlop: { + top: 12, + right: 10, + bottom: 12, + left: 10 + }, + onPress: props.onPress, + style: dismissStyles.press, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Image.default, { + source: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/close.png"), + style: dismissStyles.image + }) + }) + }); + } + var countStyles = _StyleSheet.default.create({ + warn: { + backgroundColor: LogBoxStyle.getWarningColor(1) + }, + error: { + backgroundColor: LogBoxStyle.getErrorColor(1) + }, + log: { + backgroundColor: LogBoxStyle.getLogColor(1) + }, + outside: { + padding: 2, + borderRadius: 25, + backgroundColor: '#fff', + marginRight: 8 + }, + inside: { + minWidth: 18, + paddingLeft: 4, + paddingRight: 4, + borderRadius: 25, + fontWeight: '600' + }, + text: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + lineHeight: 18, + textAlign: 'center', + fontWeight: '600', + textShadowColor: LogBoxStyle.getBackgroundColor(0.4), + textShadowOffset: { + width: 0, + height: 0 + }, + textShadowRadius: 3 + } + }); + var messageStyles = _StyleSheet.default.create({ + container: { + alignSelf: 'stretch', + flexGrow: 1, + flexShrink: 1, + flexBasis: 'auto', + borderLeftColor: LogBoxStyle.getTextColor(0.2), + borderLeftWidth: 1, + paddingLeft: 8 + }, + text: { + color: LogBoxStyle.getTextColor(1), + flex: 1, + fontSize: 14, + lineHeight: 22 + }, + substitutionText: { + color: LogBoxStyle.getTextColor(0.6) + } + }); + var dismissStyles = _StyleSheet.default.create({ + container: { + alignSelf: 'center', + flexDirection: 'row', + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto', + marginLeft: 5 + }, + press: { + height: 20, + width: 20, + borderRadius: 25, + alignSelf: 'flex-end', + alignItems: 'center', + justifyContent: 'center' + }, + image: { + height: 8, + width: 8, + tintColor: LogBoxStyle.getBackgroundColor(1) + } + }); + var toastStyles = _StyleSheet.default.create({ + container: { + height: 48, + position: 'relative', + width: '100%', + justifyContent: 'center', + marginTop: 0.5, + backgroundColor: LogBoxStyle.getTextColor(1) + }, + press: { + height: 48, + position: 'relative', + width: '100%', + justifyContent: 'center', + marginTop: 0.5, + paddingHorizontal: 12 + }, + content: { + alignItems: 'flex-start', + flexDirection: 'row', + borderRadius: 8, + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto' + } + }); + var _default = LogBoxLogNotification; + exports.default = _default; +},380,[36,3,334,244,255,245,381,382,62,383,61,73,384],"node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/Touchable/TouchableWithoutFeedback")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxButton(props) { + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + pressed = _React$useState2[0], + setPressed = _React$useState2[1]; + var backgroundColor = props.backgroundColor; + if (!backgroundColor) { + backgroundColor = { + default: LogBoxStyle.getBackgroundColor(0.95), + pressed: LogBoxStyle.getBackgroundColor(0.6) + }; + } + var content = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: _StyleSheet.default.compose({ + backgroundColor: pressed ? backgroundColor.pressed : backgroundColor.default + }, props.style), + children: props.children + }); + return props.onPress == null ? content : (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TouchableWithoutFeedback.default, { + hitSlop: props.hitSlop, + onPress: props.onPress, + onPressIn: function onPressIn() { + return setPressed(true); + }, + onPressOut: function onPressOut() { + return setPressed(false); + }, + children: content + }); + } + var _default = LogBoxButton; + exports.default = _default; +},381,[3,19,36,244,371,245,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getBackgroundColor = getBackgroundColor; + exports.getBackgroundDarkColor = getBackgroundDarkColor; + exports.getBackgroundLightColor = getBackgroundLightColor; + exports.getDividerColor = getDividerColor; + exports.getErrorColor = getErrorColor; + exports.getErrorDarkColor = getErrorDarkColor; + exports.getFatalColor = getFatalColor; + exports.getFatalDarkColor = getFatalDarkColor; + exports.getHighlightColor = getHighlightColor; + exports.getLogColor = getLogColor; + exports.getTextColor = getTextColor; + exports.getWarningColor = getWarningColor; + exports.getWarningDarkColor = getWarningDarkColor; + exports.getWarningHighlightColor = getWarningHighlightColor; + + function getBackgroundColor(opacity) { + return "rgba(51, 51, 51, " + (opacity == null ? 1 : opacity) + ")"; + } + function getBackgroundLightColor(opacity) { + return "rgba(69, 69, 69, " + (opacity == null ? 1 : opacity) + ")"; + } + function getBackgroundDarkColor(opacity) { + return "rgba(34, 34, 34, " + (opacity == null ? 1 : opacity) + ")"; + } + function getWarningColor(opacity) { + return "rgba(250, 186, 48, " + (opacity == null ? 1 : opacity) + ")"; + } + function getWarningDarkColor(opacity) { + return "rgba(224, 167, 8, " + (opacity == null ? 1 : opacity) + ")"; + } + function getFatalColor(opacity) { + return "rgba(243, 83, 105, " + (opacity == null ? 1 : opacity) + ")"; + } + function getFatalDarkColor(opacity) { + return "rgba(208, 75, 95, " + (opacity == null ? 1 : opacity) + ")"; + } + function getErrorColor(opacity) { + return "rgba(243, 83, 105, " + (opacity == null ? 1 : opacity) + ")"; + } + function getErrorDarkColor(opacity) { + return "rgba(208, 75, 95, " + (opacity == null ? 1 : opacity) + ")"; + } + function getLogColor(opacity) { + return "rgba(119, 119, 119, " + (opacity == null ? 1 : opacity) + ")"; + } + function getWarningHighlightColor(opacity) { + return "rgba(252, 176, 29, " + (opacity == null ? 1 : opacity) + ")"; + } + function getDividerColor(opacity) { + return "rgba(255, 255, 255, " + (opacity == null ? 1 : opacity) + ")"; + } + function getHighlightColor(opacity) { + return "rgba(252, 176, 29, " + (opacity == null ? 1 : opacity) + ")"; + } + function getTextColor(opacity) { + return "rgba(255, 255, 255, " + (opacity == null ? 1 : opacity) + ")"; + } +},382,[],"node_modules/react-native/Libraries/LogBox/UI/LogBoxStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Text/Text")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var cleanContent = function cleanContent(content) { + return content.replace(/^(TransformError |Warning: (Warning: )?|Error: )/g, ''); + }; + function LogBoxMessage(props) { + var _this = this; + var _props$message = props.message, + content = _props$message.content, + substitutions = _props$message.substitutions; + if (props.plaintext === true) { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_Text.default, { + children: cleanContent(content) + }); + } + var maxLength = props.maxLength != null ? props.maxLength : Infinity; + var substitutionStyle = props.style; + var elements = []; + var length = 0; + var createUnderLength = function createUnderLength(key, message, style) { + var cleanMessage = cleanContent(message); + if (props.maxLength != null) { + cleanMessage = cleanMessage.slice(0, props.maxLength - length); + } + if (length < maxLength) { + elements.push((0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_Text.default, { + style: style, + children: cleanMessage + }, key)); + } + length += cleanMessage.length; + }; + var lastOffset = substitutions.reduce(function (prevOffset, substitution, index) { + var key = String(index); + if (substitution.offset > prevOffset) { + var prevPart = content.substr(prevOffset, substitution.offset - prevOffset); + createUnderLength(key, prevPart); + } + var substititionPart = content.substr(substitution.offset, substitution.length); + createUnderLength(key + '.5', substititionPart, substitutionStyle); + return substitution.offset + substitution.length; + }, 0); + if (lastOffset < content.length) { + var lastPart = content.substr(lastOffset); + createUnderLength('-1', lastPart); + } + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").Fragment, { + children: elements + }); + } + var _default = LogBoxMessage; + exports.default = _default; +},383,[36,3,255,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 28, + "height": 28, + "scales": [1], + "hash": "369745d4a4a6fa62fa0ed495f89aa964", + "name": "close", + "type": "png" + }); +},384,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/close.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "@react-native/assets/registry"); +},385,[225],"node_modules/react-native/Libraries/Image/AssetRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.RootTagContext = void 0; + exports.createRootTag = createRootTag; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var RootTagContext = React.createContext(0); + exports.RootTagContext = RootTagContext; + if (__DEV__) { + RootTagContext.displayName = 'RootTagContext'; + } + + function createRootTag(rootTag) { + return rootTag; + } +},386,[36],"node_modules/react-native/Libraries/ReactNative/RootTag.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _useAndroidRippleForView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./useAndroidRippleForView")); + var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Pressability/usePressability")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../View/View")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Pressable/Pressable.js"; + var _excluded = ["accessible", "android_disableSound", "android_ripple", "cancelable", "children", "delayHoverIn", "delayHoverOut", "delayLongPress", "disabled", "focusable", "hitSlop", "onHoverIn", "onHoverOut", "onLongPress", "onPress", "onPressIn", "onPressOut", "pressRetentionOffset", "style", "testOnly_pressed", "unstable_pressDelay"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function Pressable(props, forwardedRef) { + var accessible = props.accessible, + android_disableSound = props.android_disableSound, + android_ripple = props.android_ripple, + cancelable = props.cancelable, + children = props.children, + delayHoverIn = props.delayHoverIn, + delayHoverOut = props.delayHoverOut, + delayLongPress = props.delayLongPress, + disabled = props.disabled, + focusable = props.focusable, + hitSlop = props.hitSlop, + onHoverIn = props.onHoverIn, + onHoverOut = props.onHoverOut, + onLongPress = props.onLongPress, + onPress = props.onPress, + _onPressIn = props.onPressIn, + _onPressOut = props.onPressOut, + pressRetentionOffset = props.pressRetentionOffset, + style = props.style, + testOnly_pressed = props.testOnly_pressed, + unstable_pressDelay = props.unstable_pressDelay, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var viewRef = (0, React.useRef)(null); + (0, React.useImperativeHandle)(forwardedRef, function () { + return viewRef.current; + }); + var android_rippleConfig = (0, _useAndroidRippleForView.default)(android_ripple, viewRef); + var _usePressState = usePressState(testOnly_pressed === true), + _usePressState2 = (0, _slicedToArray2.default)(_usePressState, 2), + pressed = _usePressState2[0], + setPressed = _usePressState2[1]; + var accessibilityState = disabled != null ? Object.assign({}, props.accessibilityState, { + disabled: disabled + }) : props.accessibilityState; + var restPropsWithDefaults = Object.assign({}, restProps, android_rippleConfig == null ? void 0 : android_rippleConfig.viewProps, { + accessible: accessible !== false, + accessibilityState: accessibilityState, + focusable: focusable !== false, + hitSlop: hitSlop + }); + var config = (0, React.useMemo)(function () { + return { + cancelable: cancelable, + disabled: disabled, + hitSlop: hitSlop, + pressRectOffset: pressRetentionOffset, + android_disableSound: android_disableSound, + delayHoverIn: delayHoverIn, + delayHoverOut: delayHoverOut, + delayLongPress: delayLongPress, + delayPressIn: unstable_pressDelay, + onHoverIn: onHoverIn, + onHoverOut: onHoverOut, + onLongPress: onLongPress, + onPress: onPress, + onPressIn: function onPressIn(event) { + if (android_rippleConfig != null) { + android_rippleConfig.onPressIn(event); + } + setPressed(true); + if (_onPressIn != null) { + _onPressIn(event); + } + }, + onPressMove: android_rippleConfig == null ? void 0 : android_rippleConfig.onPressMove, + onPressOut: function onPressOut(event) { + if (android_rippleConfig != null) { + android_rippleConfig.onPressOut(event); + } + setPressed(false); + if (_onPressOut != null) { + _onPressOut(event); + } + } + }; + }, [android_disableSound, android_rippleConfig, cancelable, delayHoverIn, delayHoverOut, delayLongPress, disabled, hitSlop, onHoverIn, onHoverOut, onLongPress, onPress, _onPressIn, _onPressOut, pressRetentionOffset, setPressed, unstable_pressDelay]); + var eventHandlers = (0, _usePressability.default)(config); + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, Object.assign({}, restPropsWithDefaults, eventHandlers, { + ref: viewRef, + style: typeof style === 'function' ? style({ + pressed: pressed + }) : style, + collapsable: false, + children: [typeof children === 'function' ? children({ + pressed: pressed + }) : children, __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[8], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "red", + hitSlop: hitSlop + }) : null] + })); + } + function usePressState(forcePressed) { + var _useState = (0, React.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + pressed = _useState2[0], + setPressed = _useState2[1]; + return [pressed || forcePressed, setPressed]; + } + var MemoedPressable = React.memo(React.forwardRef(Pressable)); + MemoedPressable.displayName = 'Pressable'; + var _default = MemoedPressable; + exports.default = _default; +},387,[3,19,132,36,388,258,245,73,256],"node_modules/react-native/Libraries/Components/Pressable/Pressable.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useAndroidRippleForView; + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + function useAndroidRippleForView(rippleConfig, viewRef) { + var _ref = rippleConfig != null ? rippleConfig : {}, + color = _ref.color, + borderless = _ref.borderless, + radius = _ref.radius, + foreground = _ref.foreground; + return (0, React.useMemo)(function () { + if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= 21 && (color != null || borderless != null || radius != null)) { + var processedColor = (0, _reactNative.processColor)(color); + (0, _invariant.default)(processedColor == null || typeof processedColor === 'number', 'Unexpected color given for Ripple color'); + var nativeRippleValue = { + type: 'RippleAndroid', + color: processedColor, + borderless: borderless === true, + rippleRadius: radius + }; + return { + viewProps: foreground === true ? { + nativeForegroundAndroid: nativeRippleValue + } : { + nativeBackgroundAndroid: nativeRippleValue + }, + onPressIn: function onPressIn(event) { + var view = viewRef.current; + if (view != null) { + var _event$nativeEvent$lo, _event$nativeEvent$lo2; + _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.hotspotUpdate(view, (_event$nativeEvent$lo = event.nativeEvent.locationX) != null ? _event$nativeEvent$lo : 0, (_event$nativeEvent$lo2 = event.nativeEvent.locationY) != null ? _event$nativeEvent$lo2 : 0); + _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.setPressed(view, true); + } + }, + onPressMove: function onPressMove(event) { + var view = viewRef.current; + if (view != null) { + var _event$nativeEvent$lo3, _event$nativeEvent$lo4; + _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.hotspotUpdate(view, (_event$nativeEvent$lo3 = event.nativeEvent.locationX) != null ? _event$nativeEvent$lo3 : 0, (_event$nativeEvent$lo4 = event.nativeEvent.locationY) != null ? _event$nativeEvent$lo4 : 0); + } + }, + onPressOut: function onPressOut(event) { + var view = viewRef.current; + if (view != null) { + _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.setPressed(view, false); + } + } + }; + } + return null; + }, [borderless, color, foreground, radius, viewRef]); + } +},388,[3,17,1,36,246],"node_modules/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _RCTProgressViewNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./RCTProgressViewNativeComponent")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ProgressViewIOS = function ProgressViewIOS(props, forwardedRef) { + return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_RCTProgressViewNativeComponent.default, Object.assign({}, props, { + style: [styles.progressView, props.style], + ref: forwardedRef + })); + }; + var styles = _StyleSheet.default.create({ + progressView: { + height: 2 + } + }); + var ProgressViewIOSWithRef = React.forwardRef(ProgressViewIOS); + module.exports = ProgressViewIOSWithRef; +},389,[36,3,244,390,73],"node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('RCTProgressView'); + exports.default = _default; +},390,[3,251],"node_modules/react-native/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../View/View")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var exported; + + if (_Platform.default.OS === 'android') { + exported = _View.default; + } else { + exported = _$$_REQUIRE(_dependencyMap[4], "./RCTSafeAreaViewNativeComponent").default; + } + var _default = exported; + exports.default = _default; +},391,[3,14,36,245,392],"node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('SafeAreaView', { + paperComponentName: 'RCTSafeAreaView', + interfaceOnly: true + }); + exports.default = _default; +},392,[3,251],"node_modules/react-native/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var _SliderNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./SliderNativeComponent")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); + var _excluded = ["value", "minimumValue", "maximumValue", "step", "onValueChange", "onSlidingComplete"]; + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Slider/Slider.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Slider = function Slider(props, forwardedRef) { + var _props$accessibilityS; + var style = _StyleSheet.default.compose(styles.slider, props.style); + var _props$value = props.value, + value = _props$value === void 0 ? 0.5 : _props$value, + _props$minimumValue = props.minimumValue, + minimumValue = _props$minimumValue === void 0 ? 0 : _props$minimumValue, + _props$maximumValue = props.maximumValue, + maximumValue = _props$maximumValue === void 0 ? 1 : _props$maximumValue, + _props$step = props.step, + step = _props$step === void 0 ? 0 : _props$step, + onValueChange = props.onValueChange, + onSlidingComplete = props.onSlidingComplete, + localProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var onValueChangeEvent = onValueChange ? function (event) { + var userEvent = true; + if (_Platform.default.OS === 'android') { + userEvent = event.nativeEvent.fromUser != null && event.nativeEvent.fromUser; + } + userEvent && onValueChange(event.nativeEvent.value); + } : null; + var onSlidingCompleteEvent = onSlidingComplete ? function (event) { + onSlidingComplete(event.nativeEvent.value); + } : null; + var disabled = props.disabled === true || ((_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled) === true; + var accessibilityState = disabled ? Object.assign({}, props.accessibilityState, { + disabled: true + }) : props.accessibilityState; + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_SliderNativeComponent.default, Object.assign({}, localProps, { + accessibilityState: accessibilityState + , + enabled: !disabled, + disabled: disabled, + maximumValue: maximumValue, + minimumValue: minimumValue, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + }, + onSlidingComplete: onSlidingCompleteEvent, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onValueChange: onValueChangeEvent, + ref: forwardedRef, + step: step, + style: style, + value: value + })); + }; + var SliderWithRef = React.forwardRef(Slider); + var styles; + if (_Platform.default.OS === 'ios') { + styles = _StyleSheet.default.create({ + slider: { + height: 40 + } + }); + } else { + styles = _StyleSheet.default.create({ + slider: {} + }); + } + module.exports = SliderWithRef; +},393,[3,132,36,14,394,244,73],"node_modules/react-native/Libraries/Components/Slider/Slider.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('Slider', { + interfaceOnly: true, + paperComponentName: 'RCTSlider' + }); + exports.default = _default; +},394,[3,251],"node_modules/react-native/Libraries/Components/Slider/SliderNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "invariant")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../StyleSheet/processColor")); + var _NativeStatusBarManagerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NativeStatusBarManagerAndroid")); + var _NativeStatusBarManagerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./NativeStatusBarManagerIOS")); + var _NativeStatusBarManag; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + function mergePropsStack(propsStack, defaultValues) { + return propsStack.reduce(function (prev, cur) { + for (var prop in cur) { + if (cur[prop] != null) { + prev[prop] = cur[prop]; + } + } + return prev; + }, Object.assign({}, defaultValues)); + } + + function createStackEntry(props) { + var _props$animated, _props$showHideTransi; + var animated = (_props$animated = props.animated) != null ? _props$animated : false; + var showHideTransition = (_props$showHideTransi = props.showHideTransition) != null ? _props$showHideTransi : 'fade'; + return { + backgroundColor: props.backgroundColor != null ? { + value: props.backgroundColor, + animated: animated + } : null, + barStyle: props.barStyle != null ? { + value: props.barStyle, + animated: animated + } : null, + translucent: props.translucent, + hidden: props.hidden != null ? { + value: props.hidden, + animated: animated, + transition: showHideTransition + } : null, + networkActivityIndicatorVisible: props.networkActivityIndicatorVisible + }; + } + + var StatusBar = function (_React$Component) { + (0, _inherits2.default)(StatusBar, _React$Component); + var _super = _createSuper(StatusBar); + function StatusBar() { + var _this; + (0, _classCallCheck2.default)(this, StatusBar); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._stackEntry = null; + return _this; + } + (0, _createClass2.default)(StatusBar, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._stackEntry = StatusBar.pushStackEntry(this.props); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + StatusBar.popStackEntry(this._stackEntry); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this._stackEntry = StatusBar.replaceStackEntry(this._stackEntry, this.props); + } + + }, { + key: "render", + value: function render() { + return null; + } + }], [{ + key: "setHidden", + value: + + function setHidden(hidden, animation) { + animation = animation || 'none'; + StatusBar._defaultProps.hidden.value = hidden; + if (_Platform.default.OS === 'ios') { + _NativeStatusBarManagerIOS.default.setHidden(hidden, animation); + } else if (_Platform.default.OS === 'android') { + _NativeStatusBarManagerAndroid.default.setHidden(hidden); + } + } + + }, { + key: "setBarStyle", + value: + function setBarStyle(style, animated) { + animated = animated || false; + StatusBar._defaultProps.barStyle.value = style; + if (_Platform.default.OS === 'ios') { + _NativeStatusBarManagerIOS.default.setStyle(style, animated); + } else if (_Platform.default.OS === 'android') { + _NativeStatusBarManagerAndroid.default.setStyle(style); + } + } + + }, { + key: "setNetworkActivityIndicatorVisible", + value: + function setNetworkActivityIndicatorVisible(visible) { + if (_Platform.default.OS !== 'ios') { + console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); + return; + } + StatusBar._defaultProps.networkActivityIndicatorVisible = visible; + _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(visible); + } + + }, { + key: "setBackgroundColor", + value: + function setBackgroundColor(color, animated) { + if (_Platform.default.OS !== 'android') { + console.warn('`setBackgroundColor` is only available on Android'); + return; + } + animated = animated || false; + StatusBar._defaultProps.backgroundColor.value = color; + var processedColor = (0, _processColor.default)(color); + if (processedColor == null) { + console.warn("`StatusBar.setBackgroundColor`: Color " + color + " parsed to null or undefined"); + return; + } + (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given for StatusBar.setBackgroundColor'); + _NativeStatusBarManagerAndroid.default.setColor(processedColor, animated); + } + + }, { + key: "setTranslucent", + value: + function setTranslucent(translucent) { + if (_Platform.default.OS !== 'android') { + console.warn('`setTranslucent` is only available on Android'); + return; + } + StatusBar._defaultProps.translucent = translucent; + _NativeStatusBarManagerAndroid.default.setTranslucent(translucent); + } + + }, { + key: "pushStackEntry", + value: + function pushStackEntry(props) { + var entry = createStackEntry(props); + StatusBar._propsStack.push(entry); + StatusBar._updatePropsStack(); + return entry; + } + + }, { + key: "popStackEntry", + value: + function popStackEntry(entry) { + var index = StatusBar._propsStack.indexOf(entry); + if (index !== -1) { + StatusBar._propsStack.splice(index, 1); + } + StatusBar._updatePropsStack(); + } + + }, { + key: "replaceStackEntry", + value: + function replaceStackEntry(entry, props) { + var newEntry = createStackEntry(props); + var index = StatusBar._propsStack.indexOf(entry); + if (index !== -1) { + StatusBar._propsStack[index] = newEntry; + } + StatusBar._updatePropsStack(); + return newEntry; + } + }]); + return StatusBar; + }(React.Component); + StatusBar._propsStack = []; + StatusBar._defaultProps = createStackEntry({ + backgroundColor: _Platform.default.OS === 'android' ? (_NativeStatusBarManag = _NativeStatusBarManagerAndroid.default.getConstants().DEFAULT_BACKGROUND_COLOR) != null ? _NativeStatusBarManag : 'black' : 'black', + barStyle: 'default', + translucent: false, + hidden: false, + networkActivityIndicatorVisible: false + }); + StatusBar._updateImmediate = null; + StatusBar._currentValues = null; + StatusBar.currentHeight = _Platform.default.OS === 'android' ? _NativeStatusBarManagerAndroid.default.getConstants().HEIGHT : null; + StatusBar._updatePropsStack = function () { + clearImmediate(StatusBar._updateImmediate); + StatusBar._updateImmediate = setImmediate(function () { + var oldProps = StatusBar._currentValues; + var mergedProps = mergePropsStack(StatusBar._propsStack, StatusBar._defaultProps); + + if (_Platform.default.OS === 'ios') { + if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { + _NativeStatusBarManagerIOS.default.setStyle(mergedProps.barStyle.value, mergedProps.barStyle.animated || false); + } + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + _NativeStatusBarManagerIOS.default.setHidden(mergedProps.hidden.value, mergedProps.hidden.animated ? mergedProps.hidden.transition : 'none'); + } + if (!oldProps || oldProps.networkActivityIndicatorVisible !== mergedProps.networkActivityIndicatorVisible) { + _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(mergedProps.networkActivityIndicatorVisible); + } + } else if (_Platform.default.OS === 'android') { + _NativeStatusBarManagerAndroid.default.setStyle(mergedProps.barStyle.value); + var processedColor = (0, _processColor.default)(mergedProps.backgroundColor.value); + if (processedColor == null) { + console.warn("`StatusBar._updatePropsStack`: Color " + mergedProps.backgroundColor.value + " parsed to null or undefined"); + } else { + (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given in StatusBar._updatePropsStack'); + _NativeStatusBarManagerAndroid.default.setColor(processedColor, mergedProps.backgroundColor.animated); + } + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + _NativeStatusBarManagerAndroid.default.setHidden(mergedProps.hidden.value); + } + if (!oldProps || oldProps.translucent !== mergedProps.translucent || mergedProps.translucent) { + _NativeStatusBarManagerAndroid.default.setTranslucent(mergedProps.translucent); + } + } + StatusBar._currentValues = mergedProps; + }); + }; + module.exports = StatusBar; +},395,[3,12,13,50,47,46,36,14,17,159,396,397],"node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); + var constants = null; + var NativeStatusBarManager = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + }, + setColor: function setColor(color, animated) { + NativeModule.setColor(color, animated); + }, + setTranslucent: function setTranslucent(translucent) { + NativeModule.setTranslucent(translucent); + }, + setStyle: function setStyle(statusBarStyle) { + NativeModule.setStyle(statusBarStyle); + }, + setHidden: function setHidden(hidden) { + NativeModule.setHidden(hidden); + } + }; + var _default = NativeStatusBarManager; + exports.default = _default; +},396,[16],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); + var constants = null; + var NativeStatusBarManager = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + }, + getHeight: function getHeight(callback) { + NativeModule.getHeight(callback); + }, + setNetworkActivityIndicatorVisible: function setNetworkActivityIndicatorVisible(visible) { + NativeModule.setNetworkActivityIndicatorVisible(visible); + }, + addListener: function addListener(eventType) { + NativeModule.addListener(eventType); + }, + removeListeners: function removeListeners(count) { + NativeModule.removeListeners(count); + }, + setStyle: function setStyle(statusBarStyle, animated) { + NativeModule.setStyle(statusBarStyle, animated); + }, + setHidden: function setHidden(hidden, withAnimation) { + NativeModule.setHidden(hidden, withAnimation); + } + }; + var _default = NativeStatusBarManager; + exports.default = _default; +},397,[16],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); + var _useMergeRefs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/useMergeRefs")); + var _AndroidSwitchNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./AndroidSwitchNativeComponent")); + var _SwitchNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./SwitchNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Switch/Switch.js"; + var _excluded = ["disabled", "ios_backgroundColor", "onChange", "onValueChange", "style", "thumbColor", "trackColor", "value"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var returnsFalse = function returnsFalse() { + return false; + }; + var returnsTrue = function returnsTrue() { + return true; + }; + + var SwitchWithForwardedRef = React.forwardRef(function Switch(props, forwardedRef) { + var disabled = props.disabled, + ios_backgroundColor = props.ios_backgroundColor, + onChange = props.onChange, + onValueChange = props.onValueChange, + style = props.style, + thumbColor = props.thumbColor, + trackColor = props.trackColor, + value = props.value, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var trackColorForFalse = trackColor == null ? void 0 : trackColor.false; + var trackColorForTrue = trackColor == null ? void 0 : trackColor.true; + var nativeSwitchRef = React.useRef(null); + var ref = (0, _useMergeRefs.default)(nativeSwitchRef, forwardedRef); + var _React$useState = React.useState({ + value: null + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + native = _React$useState2[0], + setNative = _React$useState2[1]; + var handleChange = function handleChange(event) { + onChange == null ? void 0 : onChange(event); + onValueChange == null ? void 0 : onValueChange(event.nativeEvent.value); + setNative({ + value: event.nativeEvent.value + }); + }; + React.useLayoutEffect(function () { + var _nativeSwitchRef$curr; + var jsValue = value === true; + var shouldUpdateNativeSwitch = native.value != null && native.value !== jsValue; + if (shouldUpdateNativeSwitch && ((_nativeSwitchRef$curr = nativeSwitchRef.current) == null ? void 0 : _nativeSwitchRef$curr.setNativeProps) != null) { + if (_Platform.default.OS === 'android') { + _AndroidSwitchNativeComponent.Commands.setNativeValue(nativeSwitchRef.current, jsValue); + } else { + _SwitchNativeComponent.Commands.setValue(nativeSwitchRef.current, jsValue); + } + } + }, [value, native]); + if (_Platform.default.OS === 'android') { + var _props$accessibilityR; + var accessibilityState = restProps.accessibilityState; + var _disabled = disabled != null ? disabled : accessibilityState == null ? void 0 : accessibilityState.disabled; + var _accessibilityState = _disabled !== (accessibilityState == null ? void 0 : accessibilityState.disabled) ? Object.assign({}, accessibilityState, { + disabled: _disabled + }) : accessibilityState; + var platformProps = { + accessibilityState: _accessibilityState, + enabled: _disabled !== true, + on: value === true, + style: style, + thumbTintColor: thumbColor, + trackColorForFalse: trackColorForFalse, + trackColorForTrue: trackColorForTrue, + trackTintColor: value === true ? trackColorForTrue : trackColorForFalse + }; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_AndroidSwitchNativeComponent.default, Object.assign({}, restProps, platformProps, { + accessibilityRole: (_props$accessibilityR = props.accessibilityRole) != null ? _props$accessibilityR : 'switch', + onChange: handleChange, + onResponderTerminationRequest: returnsFalse, + onStartShouldSetResponder: returnsTrue, + ref: ref + })); + } else { + var _props$accessibilityR2; + var _platformProps = { + disabled: disabled, + onTintColor: trackColorForTrue, + style: _StyleSheet.default.compose({ + height: 31, + width: 51 + }, _StyleSheet.default.compose(style, ios_backgroundColor == null ? null : { + backgroundColor: ios_backgroundColor, + borderRadius: 16 + })), + thumbTintColor: thumbColor, + tintColor: trackColorForFalse, + value: value === true + }; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_SwitchNativeComponent.default, Object.assign({}, restProps, _platformProps, { + accessibilityRole: (_props$accessibilityR2 = props.accessibilityRole) != null ? _props$accessibilityR2 : 'switch', + onChange: handleChange, + onResponderTerminationRequest: returnsFalse, + onStartShouldSetResponder: returnsTrue, + ref: ref + })); + } + }); + var _default = SwitchWithForwardedRef; + exports.default = _default; +},398,[3,19,132,14,36,244,399,400,401,73],"node_modules/react-native/Libraries/Components/Switch/Switch.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useMergeRefs; + var _react = _$$_REQUIRE(_dependencyMap[0], "react"); + + function useMergeRefs() { + for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { + refs[_key] = arguments[_key]; + } + return (0, _react.useCallback)(function (current) { + for (var ref of refs) { + if (ref != null) { + if (typeof ref === 'function') { + ref(current); + } else { + ref.current = current; + } + } + } + }, [].concat(refs)); + } +},399,[36],"node_modules/react-native/Libraries/Utilities/useMergeRefs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeComponent")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeValue'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('AndroidSwitch', { + interfaceOnly: true + }); + exports.default = _default; +},400,[36,3,202,251],"node_modules/react-native/Libraries/Components/Switch/AndroidSwitchNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeCommands")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setValue'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('Switch', { + paperComponentName: 'RCTSwitch', + excludedPlatforms: ['android'] + }); + exports.default = _default; +},401,[36,3,251,202],"node_modules/react-native/Libraries/Components/Switch/SwitchNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Text/Text")); + var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Text/TextAncestor")); + var _TextInputState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./TextInputState")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "nullthrows")); + var _setAndForwardRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Utilities/setAndForwardRef")); + var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../Pressability/usePressability")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/TextInput/TextInput.js"; + var _excluded = ["onBlur", "onFocus"], + _excluded2 = ["allowFontScaling", "rejectResponderTermination", "underlineColorAndroid"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var useLayoutEffect = React.useLayoutEffect, + useRef = React.useRef, + useState = React.useState; + var AndroidTextInput; + var AndroidTextInputCommands; + var RCTSinglelineTextInputView; + var RCTSinglelineTextInputNativeCommands; + var RCTMultilineTextInputView; + var RCTMultilineTextInputNativeCommands; + if (_Platform.default.OS === 'android') { + AndroidTextInput = _$$_REQUIRE(_dependencyMap[13], "./AndroidTextInputNativeComponent").default; + AndroidTextInputCommands = _$$_REQUIRE(_dependencyMap[13], "./AndroidTextInputNativeComponent").Commands; + } else if (_Platform.default.OS === 'ios') { + RCTSinglelineTextInputView = _$$_REQUIRE(_dependencyMap[14], "./RCTSingelineTextInputNativeComponent").default; + RCTSinglelineTextInputNativeCommands = _$$_REQUIRE(_dependencyMap[14], "./RCTSingelineTextInputNativeComponent").Commands; + RCTMultilineTextInputView = _$$_REQUIRE(_dependencyMap[15], "./RCTMultilineTextInputNativeComponent").default; + RCTMultilineTextInputNativeCommands = _$$_REQUIRE(_dependencyMap[15], "./RCTMultilineTextInputNativeComponent").Commands; + } + var emptyFunctionThatReturnsTrue = function emptyFunctionThatReturnsTrue() { + return true; + }; + + function InternalTextInput(props) { + var _props$selection$end, _props$blurOnSubmit; + var inputRef = useRef(null); + + var selection = props.selection == null ? null : { + start: props.selection.start, + end: (_props$selection$end = props.selection.end) != null ? _props$selection$end : props.selection.start + }; + var _useState = useState(0), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + mostRecentEventCount = _useState2[0], + setMostRecentEventCount = _useState2[1]; + var _useState3 = useState(props.value), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + lastNativeText = _useState4[0], + setLastNativeText = _useState4[1]; + var _useState5 = useState({ + selection: selection, + mostRecentEventCount: mostRecentEventCount + }), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + lastNativeSelectionState = _useState6[0], + setLastNativeSelection = _useState6[1]; + var lastNativeSelection = lastNativeSelectionState.selection; + var lastNativeSelectionEventCount = lastNativeSelectionState.mostRecentEventCount; + if (lastNativeSelectionEventCount < mostRecentEventCount) { + selection = null; + } + var viewCommands; + if (AndroidTextInputCommands) { + viewCommands = AndroidTextInputCommands; + } else { + viewCommands = props.multiline === true ? RCTMultilineTextInputNativeCommands : RCTSinglelineTextInputNativeCommands; + } + var text = typeof props.value === 'string' ? props.value : typeof props.defaultValue === 'string' ? props.defaultValue : ''; + + useLayoutEffect(function () { + var nativeUpdate = {}; + if (lastNativeText !== props.value && typeof props.value === 'string') { + nativeUpdate.text = props.value; + setLastNativeText(props.value); + } + if (selection && lastNativeSelection && (lastNativeSelection.start !== selection.start || lastNativeSelection.end !== selection.end)) { + nativeUpdate.selection = selection; + setLastNativeSelection({ + selection: selection, + mostRecentEventCount: mostRecentEventCount + }); + } + if (Object.keys(nativeUpdate).length === 0) { + return; + } + if (inputRef.current != null) { + var _selection$start, _selection, _selection$end, _selection2; + viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, text, (_selection$start = (_selection = selection) == null ? void 0 : _selection.start) != null ? _selection$start : -1, (_selection$end = (_selection2 = selection) == null ? void 0 : _selection2.end) != null ? _selection$end : -1); + } + }, [mostRecentEventCount, inputRef, props.value, props.defaultValue, lastNativeText, selection, lastNativeSelection, text, viewCommands]); + useLayoutEffect(function () { + var inputRefValue = inputRef.current; + if (inputRefValue != null) { + _TextInputState.default.registerInput(inputRefValue); + return function () { + _TextInputState.default.unregisterInput(inputRefValue); + if (_TextInputState.default.currentlyFocusedInput() === inputRefValue) { + (0, _nullthrows.default)(inputRefValue).blur(); + } + }; + } + }, [inputRef]); + function clear() { + if (inputRef.current != null) { + viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, '', 0, 0); + } + } + function setSelection(start, end) { + if (inputRef.current != null) { + viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, null, start, end); + } + } + + function isFocused() { + return _TextInputState.default.currentlyFocusedInput() === inputRef.current; + } + function getNativeRef() { + return inputRef.current; + } + var _setNativeRef = (0, _setAndForwardRef.default)({ + getForwardedRef: function getForwardedRef() { + return props.forwardedRef; + }, + setLocalRef: function setLocalRef(ref) { + inputRef.current = ref; + + if (ref) { + ref.clear = clear; + ref.isFocused = isFocused; + ref.getNativeRef = getNativeRef; + ref.setSelection = setSelection; + } + } + }); + var _onChange = function _onChange(event) { + var currentText = event.nativeEvent.text; + props.onChange && props.onChange(event); + props.onChangeText && props.onChangeText(currentText); + if (inputRef.current == null) { + return; + } + setLastNativeText(currentText); + setMostRecentEventCount(event.nativeEvent.eventCount); + }; + var _onChangeSync = function _onChangeSync(event) { + var currentText = event.nativeEvent.text; + props.unstable_onChangeSync && props.unstable_onChangeSync(event); + props.unstable_onChangeTextSync && props.unstable_onChangeTextSync(currentText); + if (inputRef.current == null) { + return; + } + setLastNativeText(currentText); + setMostRecentEventCount(event.nativeEvent.eventCount); + }; + var _onSelectionChange = function _onSelectionChange(event) { + props.onSelectionChange && props.onSelectionChange(event); + if (inputRef.current == null) { + return; + } + setLastNativeSelection({ + selection: event.nativeEvent.selection, + mostRecentEventCount: mostRecentEventCount + }); + }; + var _onFocus = function _onFocus(event) { + _TextInputState.default.focusInput(inputRef.current); + if (props.onFocus) { + props.onFocus(event); + } + }; + var _onBlur = function _onBlur(event) { + _TextInputState.default.blurInput(inputRef.current); + if (props.onBlur) { + props.onBlur(event); + } + }; + var _onScroll = function _onScroll(event) { + props.onScroll && props.onScroll(event); + }; + var textInput = null; + + var blurOnSubmit = (_props$blurOnSubmit = props.blurOnSubmit) != null ? _props$blurOnSubmit : !props.multiline; + var accessible = props.accessible !== false; + var focusable = props.focusable !== false; + var config = React.useMemo(function () { + return { + onPress: function onPress(event) { + if (props.editable !== false) { + if (inputRef.current != null) { + inputRef.current.focus(); + } + } + }, + onPressIn: props.onPressIn, + onPressOut: props.onPressOut, + cancelable: _Platform.default.OS === 'ios' ? !props.rejectResponderTermination : null + }; + }, [props.editable, props.onPressIn, props.onPressOut, props.rejectResponderTermination]); + + var caretHidden = props.caretHidden; + if (_Platform.default.isTesting) { + caretHidden = true; + } + + var _ref = (0, _usePressability.default)(config) || {}, + onBlur = _ref.onBlur, + onFocus = _ref.onFocus, + eventHandlers = (0, _objectWithoutProperties2.default)(_ref, _excluded); + if (_Platform.default.OS === 'ios') { + var RCTTextInputView = props.multiline === true ? RCTMultilineTextInputView : RCTSinglelineTextInputView; + var style = props.multiline === true ? _StyleSheet.default.flatten([styles.multilineInput, props.style]) : props.style; + var useOnChangeSync = (props.unstable_onChangeSync || props.unstable_onChangeTextSync) && !(props.onChange || props.onChangeText); + textInput = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(RCTTextInputView, Object.assign({ + ref: _setNativeRef + }, props, eventHandlers, { + accessible: accessible, + blurOnSubmit: blurOnSubmit, + caretHidden: caretHidden, + dataDetectorTypes: props.dataDetectorTypes, + focusable: focusable, + mostRecentEventCount: mostRecentEventCount, + onBlur: _onBlur, + onKeyPressSync: props.unstable_onKeyPressSync, + onChange: _onChange, + onChangeSync: useOnChangeSync === true ? _onChangeSync : null, + onContentSizeChange: props.onContentSizeChange, + onFocus: _onFocus, + onScroll: _onScroll, + onSelectionChange: _onSelectionChange, + onSelectionChangeShouldSetResponder: emptyFunctionThatReturnsTrue, + selection: selection, + style: style, + text: text + })); + } else if (_Platform.default.OS === 'android') { + var _props$placeholder; + var _style = [props.style]; + var autoCapitalize = props.autoCapitalize || 'sentences'; + var placeholder = (_props$placeholder = props.placeholder) != null ? _props$placeholder : ''; + var children = props.children; + var childCount = React.Children.count(children); + (0, _invariant.default)(!(props.value != null && childCount), 'Cannot specify both value and children.'); + if (childCount > 1) { + children = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_Text.default, { + children: children + }); + } + textInput = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(AndroidTextInput, Object.assign({ + ref: _setNativeRef + }, props, eventHandlers, { + accessible: accessible, + autoCapitalize: autoCapitalize, + blurOnSubmit: blurOnSubmit, + caretHidden: caretHidden, + children: children, + disableFullscreenUI: props.disableFullscreenUI, + focusable: focusable, + mostRecentEventCount: mostRecentEventCount, + onBlur: _onBlur, + onChange: _onChange, + onFocus: _onFocus + , + onScroll: _onScroll, + onSelectionChange: _onSelectionChange, + placeholder: placeholder, + selection: selection, + style: _style, + text: text, + textBreakStrategy: props.textBreakStrategy + })); + } + return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { + value: true, + children: textInput + }); + } + var ExportedForwardRef = React.forwardRef(function TextInput(_ref2, forwardedRef) { + var _ref2$allowFontScalin = _ref2.allowFontScaling, + allowFontScaling = _ref2$allowFontScalin === void 0 ? true : _ref2$allowFontScalin, + _ref2$rejectResponder = _ref2.rejectResponderTermination, + rejectResponderTermination = _ref2$rejectResponder === void 0 ? true : _ref2$rejectResponder, + _ref2$underlineColorA = _ref2.underlineColorAndroid, + underlineColorAndroid = _ref2$underlineColorA === void 0 ? 'transparent' : _ref2$underlineColorA, + restProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded2); + return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(InternalTextInput, Object.assign({ + allowFontScaling: allowFontScaling, + rejectResponderTermination: rejectResponderTermination, + underlineColorAndroid: underlineColorAndroid + }, restProps, { + forwardedRef: forwardedRef + })); + }); + + ExportedForwardRef.State = { + currentlyFocusedInput: _TextInputState.default.currentlyFocusedInput, + currentlyFocusedField: _TextInputState.default.currentlyFocusedField, + focusTextInput: _TextInputState.default.focusTextInput, + blurTextInput: _TextInputState.default.blurTextInput + }; + var styles = _StyleSheet.default.create({ + multilineInput: { + paddingTop: 5 + } + }); + + module.exports = ExportedForwardRef; +},402,[3,132,19,36,14,244,255,247,200,17,403,300,258,236,201,404,73],"node_modules/react-native/Libraries/Components/TextInput/TextInput.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function nullthrows(x, message) { + if (x != null) { + return x; + } + var error = new Error(message !== undefined ? message : 'Got unexpected ' + x); + error.framesToPop = 1; + throw error; + } + module.exports = nullthrows; + module.exports.default = nullthrows; + Object.defineProperty(module.exports, '__esModule', { + value: true + }); +},403,[],"node_modules/nullthrows/nullthrows.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var _RCTTextInputViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./RCTTextInputViewConfig")); + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['focus', 'blur', 'setTextAndSelection'] + }); + exports.Commands = Commands; + var __INTERNAL_VIEW_CONFIG = Object.assign({ + uiViewClassName: 'RCTMultilineTextInputView' + }, _RCTTextInputViewConfig.default, { + validAttributes: Object.assign({}, _RCTTextInputViewConfig.default.validAttributes, { + dataDetectorTypes: true + }) + }); + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var MultilineTextInputNativeComponent = NativeComponentRegistry.get('RCTMultilineTextInputView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + + var _default = MultilineTextInputNativeComponent; + exports.default = _default; +},404,[3,202,209,211],"node_modules/react-native/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _BoundingDimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./BoundingDimensions")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); + var _Position = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Position")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../ReactNative/UIManager")); + var _SoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Sound/SoundManager")); + var _this2 = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/Touchable.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var extractSingleTouch = function extractSingleTouch(nativeEvent) { + var touches = nativeEvent.touches; + var changedTouches = nativeEvent.changedTouches; + var hasTouches = touches && touches.length > 0; + var hasChangedTouches = changedTouches && changedTouches.length > 0; + return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent; + }; + + var States = { + NOT_RESPONDER: 'NOT_RESPONDER', + RESPONDER_INACTIVE_PRESS_IN: 'RESPONDER_INACTIVE_PRESS_IN', + RESPONDER_INACTIVE_PRESS_OUT: 'RESPONDER_INACTIVE_PRESS_OUT', + RESPONDER_ACTIVE_PRESS_IN: 'RESPONDER_ACTIVE_PRESS_IN', + RESPONDER_ACTIVE_PRESS_OUT: 'RESPONDER_ACTIVE_PRESS_OUT', + RESPONDER_ACTIVE_LONG_PRESS_IN: 'RESPONDER_ACTIVE_LONG_PRESS_IN', + RESPONDER_ACTIVE_LONG_PRESS_OUT: 'RESPONDER_ACTIVE_LONG_PRESS_OUT', + ERROR: 'ERROR' + }; + + var baseStatesConditions = { + NOT_RESPONDER: false, + RESPONDER_INACTIVE_PRESS_IN: false, + RESPONDER_INACTIVE_PRESS_OUT: false, + RESPONDER_ACTIVE_PRESS_IN: false, + RESPONDER_ACTIVE_PRESS_OUT: false, + RESPONDER_ACTIVE_LONG_PRESS_IN: false, + RESPONDER_ACTIVE_LONG_PRESS_OUT: false, + ERROR: false + }; + var IsActive = Object.assign({}, baseStatesConditions, { + RESPONDER_ACTIVE_PRESS_OUT: true, + RESPONDER_ACTIVE_PRESS_IN: true + }); + + var IsPressingIn = Object.assign({}, baseStatesConditions, { + RESPONDER_INACTIVE_PRESS_IN: true, + RESPONDER_ACTIVE_PRESS_IN: true, + RESPONDER_ACTIVE_LONG_PRESS_IN: true + }); + var IsLongPressingIn = Object.assign({}, baseStatesConditions, { + RESPONDER_ACTIVE_LONG_PRESS_IN: true + }); + + var Signals = { + DELAY: 'DELAY', + RESPONDER_GRANT: 'RESPONDER_GRANT', + RESPONDER_RELEASE: 'RESPONDER_RELEASE', + RESPONDER_TERMINATED: 'RESPONDER_TERMINATED', + ENTER_PRESS_RECT: 'ENTER_PRESS_RECT', + LEAVE_PRESS_RECT: 'LEAVE_PRESS_RECT', + LONG_PRESS_DETECTED: 'LONG_PRESS_DETECTED' + }; + var Transitions = { + NOT_RESPONDER: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, + RESPONDER_RELEASE: States.ERROR, + RESPONDER_TERMINATED: States.ERROR, + ENTER_PRESS_RECT: States.ERROR, + LEAVE_PRESS_RECT: States.ERROR, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_INACTIVE_PRESS_IN: { + DELAY: States.RESPONDER_ACTIVE_PRESS_IN, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_INACTIVE_PRESS_OUT: { + DELAY: States.RESPONDER_ACTIVE_PRESS_OUT, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_ACTIVE_PRESS_IN: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + }, + RESPONDER_ACTIVE_PRESS_OUT: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_ACTIVE_LONG_PRESS_IN: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, + LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + }, + RESPONDER_ACTIVE_LONG_PRESS_OUT: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + error: { + DELAY: States.NOT_RESPONDER, + RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.NOT_RESPONDER, + LEAVE_PRESS_RECT: States.NOT_RESPONDER, + LONG_PRESS_DETECTED: States.NOT_RESPONDER + } + }; + + var HIGHLIGHT_DELAY_MS = 130; + var PRESS_EXPAND_PX = 20; + var LONG_PRESS_THRESHOLD = 500; + var LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS; + var LONG_PRESS_ALLOWED_MOVEMENT = 10; + + var TouchableMixin = { + componentDidMount: function componentDidMount() { + if (!_Platform.default.isTV) { + return; + } + }, + componentWillUnmount: function componentWillUnmount() { + this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); + this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); + this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); + }, + touchableGetInitialState: function touchableGetInitialState() { + return { + touchable: { + touchState: undefined, + responderID: null + } + }; + }, + touchableHandleResponderTerminationRequest: function touchableHandleResponderTerminationRequest() { + return !this.props.rejectResponderTermination; + }, + touchableHandleStartShouldSetResponder: function touchableHandleStartShouldSetResponder() { + return !this.props.disabled; + }, + touchableLongPressCancelsPress: function touchableLongPressCancelsPress() { + return true; + }, + touchableHandleResponderGrant: function touchableHandleResponderGrant(e) { + var dispatchID = e.currentTarget; + e.persist(); + this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); + this.pressOutDelayTimeout = null; + this.state.touchable.touchState = States.NOT_RESPONDER; + this.state.touchable.responderID = dispatchID; + this._receiveSignal(Signals.RESPONDER_GRANT, e); + var delayMS = this.touchableGetHighlightDelayMS !== undefined ? Math.max(this.touchableGetHighlightDelayMS(), 0) : HIGHLIGHT_DELAY_MS; + delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS; + if (delayMS !== 0) { + this.touchableDelayTimeout = setTimeout(this._handleDelay.bind(this, e), delayMS); + } else { + this._handleDelay(e); + } + var longDelayMS = this.touchableGetLongPressDelayMS !== undefined ? Math.max(this.touchableGetLongPressDelayMS(), 10) : LONG_PRESS_DELAY_MS; + longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS; + this.longPressDelayTimeout = setTimeout(this._handleLongDelay.bind(this, e), longDelayMS + delayMS); + }, + touchableHandleResponderRelease: function touchableHandleResponderRelease(e) { + this.pressInLocation = null; + this._receiveSignal(Signals.RESPONDER_RELEASE, e); + }, + touchableHandleResponderTerminate: function touchableHandleResponderTerminate(e) { + this.pressInLocation = null; + this._receiveSignal(Signals.RESPONDER_TERMINATED, e); + }, + touchableHandleResponderMove: function touchableHandleResponderMove(e) { + if (!this.state.touchable.positionOnActivate) { + return; + } + var positionOnActivate = this.state.touchable.positionOnActivate; + var dimensionsOnActivate = this.state.touchable.dimensionsOnActivate; + var pressRectOffset = this.touchableGetPressRectOffset ? this.touchableGetPressRectOffset() : { + left: PRESS_EXPAND_PX, + right: PRESS_EXPAND_PX, + top: PRESS_EXPAND_PX, + bottom: PRESS_EXPAND_PX + }; + var pressExpandLeft = pressRectOffset.left; + var pressExpandTop = pressRectOffset.top; + var pressExpandRight = pressRectOffset.right; + var pressExpandBottom = pressRectOffset.bottom; + var hitSlop = this.touchableGetHitSlop ? this.touchableGetHitSlop() : null; + if (hitSlop) { + pressExpandLeft += hitSlop.left || 0; + pressExpandTop += hitSlop.top || 0; + pressExpandRight += hitSlop.right || 0; + pressExpandBottom += hitSlop.bottom || 0; + } + var touch = extractSingleTouch(e.nativeEvent); + var pageX = touch && touch.pageX; + var pageY = touch && touch.pageY; + if (this.pressInLocation) { + var movedDistance = this._getDistanceBetweenPoints(pageX, pageY, this.pressInLocation.pageX, this.pressInLocation.pageY); + if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) { + this._cancelLongPressDelayTimeout(); + } + } + var isTouchWithinActive = pageX > positionOnActivate.left - pressExpandLeft && pageY > positionOnActivate.top - pressExpandTop && pageX < positionOnActivate.left + dimensionsOnActivate.width + pressExpandRight && pageY < positionOnActivate.top + dimensionsOnActivate.height + pressExpandBottom; + if (isTouchWithinActive) { + var prevState = this.state.touchable.touchState; + this._receiveSignal(Signals.ENTER_PRESS_RECT, e); + var curState = this.state.touchable.touchState; + if (curState === States.RESPONDER_INACTIVE_PRESS_IN && prevState !== States.RESPONDER_INACTIVE_PRESS_IN) { + this._cancelLongPressDelayTimeout(); + } + } else { + this._cancelLongPressDelayTimeout(); + this._receiveSignal(Signals.LEAVE_PRESS_RECT, e); + } + }, + touchableHandleFocus: function touchableHandleFocus(e) { + this.props.onFocus && this.props.onFocus(e); + }, + touchableHandleBlur: function touchableHandleBlur(e) { + this.props.onBlur && this.props.onBlur(e); + }, + + _remeasureMetricsOnActivation: function _remeasureMetricsOnActivation() { + var responderID = this.state.touchable.responderID; + if (responderID == null) { + return; + } + if (typeof responderID === 'number') { + _UIManager.default.measure(responderID, this._handleQueryLayout); + } else { + responderID.measure(this._handleQueryLayout); + } + }, + _handleQueryLayout: function _handleQueryLayout(l, t, w, h, globalX, globalY) { + if (!l && !t && !w && !h && !globalX && !globalY) { + return; + } + this.state.touchable.positionOnActivate && _Position.default.release(this.state.touchable.positionOnActivate); + this.state.touchable.dimensionsOnActivate && _BoundingDimensions.default.release(this.state.touchable.dimensionsOnActivate); + this.state.touchable.positionOnActivate = _Position.default.getPooled(globalX, globalY); + this.state.touchable.dimensionsOnActivate = _BoundingDimensions.default.getPooled(w, h); + }, + _handleDelay: function _handleDelay(e) { + this.touchableDelayTimeout = null; + this._receiveSignal(Signals.DELAY, e); + }, + _handleLongDelay: function _handleLongDelay(e) { + this.longPressDelayTimeout = null; + var curState = this.state.touchable.touchState; + if (curState === States.RESPONDER_ACTIVE_PRESS_IN || curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN) { + this._receiveSignal(Signals.LONG_PRESS_DETECTED, e); + } + }, + _receiveSignal: function _receiveSignal(signal, e) { + var responderID = this.state.touchable.responderID; + var curState = this.state.touchable.touchState; + var nextState = Transitions[curState] && Transitions[curState][signal]; + if (!responderID && signal === Signals.RESPONDER_RELEASE) { + return; + } + if (!nextState) { + throw new Error('Unrecognized signal `' + signal + '` or state `' + curState + '` for Touchable responder `' + typeof this.state.touchable.responderID === 'number' ? this.state.touchable.responderID : 'host component' + '`'); + } + if (nextState === States.ERROR) { + throw new Error('Touchable cannot transition from `' + curState + '` to `' + signal + '` for responder `' + typeof this.state.touchable.responderID === 'number' ? this.state.touchable.responderID : '<>' + '`'); + } + if (curState !== nextState) { + this._performSideEffectsForTransition(curState, nextState, signal, e); + this.state.touchable.touchState = nextState; + } + }, + _cancelLongPressDelayTimeout: function _cancelLongPressDelayTimeout() { + this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); + this.longPressDelayTimeout = null; + }, + _isHighlight: function _isHighlight(state) { + return state === States.RESPONDER_ACTIVE_PRESS_IN || state === States.RESPONDER_ACTIVE_LONG_PRESS_IN; + }, + _savePressInLocation: function _savePressInLocation(e) { + var touch = extractSingleTouch(e.nativeEvent); + var pageX = touch && touch.pageX; + var pageY = touch && touch.pageY; + var locationX = touch && touch.locationX; + var locationY = touch && touch.locationY; + this.pressInLocation = { + pageX: pageX, + pageY: pageY, + locationX: locationX, + locationY: locationY + }; + }, + _getDistanceBetweenPoints: function _getDistanceBetweenPoints(aX, aY, bX, bY) { + var deltaX = aX - bX; + var deltaY = aY - bY; + return Math.sqrt(deltaX * deltaX + deltaY * deltaY); + }, + _performSideEffectsForTransition: function _performSideEffectsForTransition(curState, nextState, signal, e) { + var curIsHighlight = this._isHighlight(curState); + var newIsHighlight = this._isHighlight(nextState); + var isFinalSignal = signal === Signals.RESPONDER_TERMINATED || signal === Signals.RESPONDER_RELEASE; + if (isFinalSignal) { + this._cancelLongPressDelayTimeout(); + } + var isInitialTransition = curState === States.NOT_RESPONDER && nextState === States.RESPONDER_INACTIVE_PRESS_IN; + var isActiveTransition = !IsActive[curState] && IsActive[nextState]; + if (isInitialTransition || isActiveTransition) { + this._remeasureMetricsOnActivation(); + } + if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) { + this.touchableHandleLongPress && this.touchableHandleLongPress(e); + } + if (newIsHighlight && !curIsHighlight) { + this._startHighlight(e); + } else if (!newIsHighlight && curIsHighlight) { + this._endHighlight(e); + } + if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) { + var hasLongPressHandler = !!this.props.onLongPress; + var pressIsLongButStillCallOnPress = IsLongPressingIn[curState] && ( + !hasLongPressHandler || !this.touchableLongPressCancelsPress()); + + var shouldInvokePress = !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress; + if (shouldInvokePress && this.touchableHandlePress) { + if (!newIsHighlight && !curIsHighlight) { + this._startHighlight(e); + this._endHighlight(e); + } + if (_Platform.default.OS === 'android' && !this.props.touchSoundDisabled) { + _SoundManager.default.playTouchSound(); + } + this.touchableHandlePress(e); + } + } + this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); + this.touchableDelayTimeout = null; + }, + _startHighlight: function _startHighlight(e) { + this._savePressInLocation(e); + this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e); + }, + _endHighlight: function _endHighlight(e) { + var _this = this; + if (this.touchableHandleActivePressOut) { + if (this.touchableGetPressOutDelayMS && this.touchableGetPressOutDelayMS()) { + this.pressOutDelayTimeout = setTimeout(function () { + _this.touchableHandleActivePressOut(e); + }, this.touchableGetPressOutDelayMS()); + } else { + this.touchableHandleActivePressOut(e); + } + } + }, + withoutDefaultFocusAndBlur: {} + }; + + var touchableHandleFocus = TouchableMixin.touchableHandleFocus, + touchableHandleBlur = TouchableMixin.touchableHandleBlur, + TouchableMixinWithoutDefaultFocusAndBlur = (0, _objectWithoutProperties2.default)(TouchableMixin, ["touchableHandleFocus", "touchableHandleBlur"]); + TouchableMixin.withoutDefaultFocusAndBlur = TouchableMixinWithoutDefaultFocusAndBlur; + var Touchable = { + Mixin: TouchableMixin, + renderDebugView: function renderDebugView(_ref) { + var color = _ref.color, + hitSlop = _ref.hitSlop; + if (__DEV__) { + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: color, + hitSlop: hitSlop + }); + } + return null; + } + }; + module.exports = Touchable; +},405,[3,132,36,406,14,408,213,260,73,256],"node_modules/react-native/Libraries/Components/Touchable/Touchable.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _PooledClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PooledClass")); + var twoArgumentPooler = _PooledClass.default.twoArgumentPooler; + + function BoundingDimensions(width, height) { + this.width = width; + this.height = height; + } + BoundingDimensions.prototype.destructor = function () { + this.width = null; + this.height = null; + }; + + BoundingDimensions.getPooledFromElement = function (element) { + return BoundingDimensions.getPooled(element.offsetWidth, element.offsetHeight); + }; + _PooledClass.default.addPoolingTo(BoundingDimensions, twoArgumentPooler); + module.exports = BoundingDimensions; +},406,[3,407],"node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + var oneArgumentPooler = function oneArgumentPooler(copyFieldsFrom) { + var Klass = this; + if (Klass.instancePool.length) { + var _instance = Klass.instancePool.pop(); + Klass.call(_instance, copyFieldsFrom); + return _instance; + } else { + return new Klass(copyFieldsFrom); + } + }; + + var twoArgumentPooler = function twoArgumentPooler(a1, a2) { + var Klass = this; + if (Klass.instancePool.length) { + var _instance2 = Klass.instancePool.pop(); + Klass.call(_instance2, a1, a2); + return _instance2; + } else { + return new Klass(a1, a2); + } + }; + + var threeArgumentPooler = function threeArgumentPooler(a1, a2, a3) { + var Klass = this; + if (Klass.instancePool.length) { + var _instance3 = Klass.instancePool.pop(); + Klass.call(_instance3, a1, a2, a3); + return _instance3; + } else { + return new Klass(a1, a2, a3); + } + }; + + var fourArgumentPooler = function fourArgumentPooler(a1, a2, a3, a4) { + var Klass = this; + if (Klass.instancePool.length) { + var _instance4 = Klass.instancePool.pop(); + Klass.call(_instance4, a1, a2, a3, a4); + return _instance4; + } else { + return new Klass(a1, a2, a3, a4); + } + }; + + var standardReleaser = function standardReleaser(instance) { + var Klass = this; + (0, _invariant.default)(instance instanceof Klass, 'Trying to release an instance into a pool of a different type.'); + instance.destructor(); + if (Klass.instancePool.length < Klass.poolSize) { + Klass.instancePool.push(instance); + } + }; + var DEFAULT_POOL_SIZE = 10; + var DEFAULT_POOLER = oneArgumentPooler; + var addPoolingTo = function addPoolingTo(CopyConstructor, pooler) { + var NewKlass = CopyConstructor; + NewKlass.instancePool = []; + NewKlass.getPooled = pooler || DEFAULT_POOLER; + if (!NewKlass.poolSize) { + NewKlass.poolSize = DEFAULT_POOL_SIZE; + } + NewKlass.release = standardReleaser; + return NewKlass; + }; + var PooledClass = { + addPoolingTo: addPoolingTo, + oneArgumentPooler: oneArgumentPooler, + twoArgumentPooler: twoArgumentPooler, + threeArgumentPooler: threeArgumentPooler, + fourArgumentPooler: fourArgumentPooler + }; + module.exports = PooledClass; +},407,[3,17],"node_modules/react-native/Libraries/Components/Touchable/PooledClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _PooledClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PooledClass")); + var twoArgumentPooler = _PooledClass.default.twoArgumentPooler; + + function Position(left, top) { + this.left = left; + this.top = top; + } + Position.prototype.destructor = function () { + this.left = null; + this.top = null; + }; + _PooledClass.default.addPoolingTo(Position, twoArgumentPooler); + module.exports = Position; +},408,[3,407],"node_modules/react-native/Libraries/Components/Touchable/Position.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _NativeActionSheetManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeActionSheetManager")); + var _excluded = ["tintColor", "cancelButtonTintColor", "destructiveButtonIndex"]; + var ActionSheetIOS = { + showActionSheetWithOptions: function showActionSheetWithOptions(options, callback) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof callback === 'function', 'Must provide a valid callback'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); + var tintColor = options.tintColor, + cancelButtonTintColor = options.cancelButtonTintColor, + destructiveButtonIndex = options.destructiveButtonIndex, + remainingOptions = (0, _objectWithoutProperties2.default)(options, _excluded); + var destructiveButtonIndices = null; + if (Array.isArray(destructiveButtonIndex)) { + destructiveButtonIndices = destructiveButtonIndex; + } else if (typeof destructiveButtonIndex === 'number') { + destructiveButtonIndices = [destructiveButtonIndex]; + } + var processedTintColor = _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(tintColor); + var processedCancelButtonTintColor = _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(cancelButtonTintColor); + _$$_REQUIRE(_dependencyMap[3], "invariant")(processedTintColor == null || typeof processedTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(processedCancelButtonTintColor == null || typeof processedCancelButtonTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor'); + _NativeActionSheetManager.default.showActionSheetWithOptions(Object.assign({}, remainingOptions, { + tintColor: processedTintColor, + cancelButtonTintColor: processedCancelButtonTintColor, + destructiveButtonIndices: destructiveButtonIndices + }), callback); + }, + showShareActionSheetWithOptions: function showShareActionSheetWithOptions(options, failureCallback, successCallback) { + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof failureCallback === 'function', 'Must provide a valid failureCallback'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof successCallback === 'function', 'Must provide a valid successCallback'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); + _NativeActionSheetManager.default.showShareActionSheetWithOptions(Object.assign({}, options, { + tintColor: _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(options.tintColor) + }), failureCallback, successCallback); + }, + dismissActionSheet: function dismissActionSheet() { + _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); + if (typeof _NativeActionSheetManager.default.dismissActionSheet === 'function') { + _NativeActionSheetManager.default.dismissActionSheet(); + } + } + }; + module.exports = ActionSheetIOS; +},409,[3,132,410,17,159],"node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('ActionSheetManager'); + exports.default = _default; +},410,[16],"node_modules/react-native/Libraries/ActionSheetIOS/NativeActionSheetManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/createPerformanceLogger")); + var _NativeHeadlessJsTaskSupport = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeHeadlessJsTaskSupport")); + var _HeadlessJsTaskError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./HeadlessJsTaskError")); + var runnables = {}; + var runCount = 1; + var sections = {}; + var taskProviders = new Map(); + var taskCancelProviders = new Map(); + var componentProviderInstrumentationHook = function componentProviderInstrumentationHook(component) { + return component(); + }; + var wrapperComponentProvider; + var showArchitectureIndicator = false; + + var AppRegistry = { + setWrapperComponentProvider: function setWrapperComponentProvider(provider) { + wrapperComponentProvider = provider; + }, + enableArchitectureIndicator: function enableArchitectureIndicator(enabled) { + showArchitectureIndicator = enabled; + }, + registerConfig: function registerConfig(config) { + config.forEach(function (appConfig) { + if (appConfig.run) { + AppRegistry.registerRunnable(appConfig.appKey, appConfig.run); + } else { + _$$_REQUIRE(_dependencyMap[4], "invariant")(appConfig.component != null, 'AppRegistry.registerConfig(...): Every config is expected to set ' + 'either `run` or `component`, but `%s` has neither.', appConfig.appKey); + AppRegistry.registerComponent(appConfig.appKey, appConfig.component, appConfig.section); + } + }); + }, + registerComponent: function registerComponent(appKey, componentProvider, section) { + var scopedPerformanceLogger = (0, _createPerformanceLogger.default)(); + runnables[appKey] = { + componentProvider: componentProvider, + run: function run(appParameters, displayMode) { + var _appParameters$initia; + var concurrentRootEnabled = ((_appParameters$initia = appParameters.initialProps) == null ? void 0 : _appParameters$initia.concurrentRoot) || appParameters.concurrentRoot; + _$$_REQUIRE(_dependencyMap[5], "./renderApplication")(componentProviderInstrumentationHook(componentProvider, scopedPerformanceLogger), appParameters.initialProps, appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric, showArchitectureIndicator, scopedPerformanceLogger, appKey === 'LogBox', appKey, (0, _$$_REQUIRE(_dependencyMap[6], "./DisplayMode").coerceDisplayMode)(displayMode), concurrentRootEnabled); + } + }; + if (section) { + sections[appKey] = runnables[appKey]; + } + return appKey; + }, + registerRunnable: function registerRunnable(appKey, run) { + runnables[appKey] = { + run: run + }; + return appKey; + }, + registerSection: function registerSection(appKey, component) { + AppRegistry.registerComponent(appKey, component, true); + }, + getAppKeys: function getAppKeys() { + return Object.keys(runnables); + }, + getSectionKeys: function getSectionKeys() { + return Object.keys(sections); + }, + getSections: function getSections() { + return Object.assign({}, sections); + }, + getRunnable: function getRunnable(appKey) { + return runnables[appKey]; + }, + getRegistry: function getRegistry() { + return { + sections: AppRegistry.getSectionKeys(), + runnables: Object.assign({}, runnables) + }; + }, + setComponentProviderInstrumentationHook: function setComponentProviderInstrumentationHook(hook) { + componentProviderInstrumentationHook = hook; + }, + runApplication: function runApplication(appKey, appParameters, displayMode) { + if (appKey !== 'LogBox') { + var logParams = __DEV__ ? '" with ' + JSON.stringify(appParameters) : ''; + var msg = 'Running "' + appKey + logParams; + _$$_REQUIRE(_dependencyMap[7], "../Utilities/infoLog")(msg); + _$$_REQUIRE(_dependencyMap[8], "../BugReporting/BugReporting").addSource('AppRegistry.runApplication' + runCount++, function () { + return msg; + }); + } + _$$_REQUIRE(_dependencyMap[4], "invariant")(runnables[appKey] && runnables[appKey].run, "\"" + appKey + "\" has not been registered. This can happen if:\n" + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); + _$$_REQUIRE(_dependencyMap[9], "../Utilities/SceneTracker").setActiveScene({ + name: appKey + }); + runnables[appKey].run(appParameters, displayMode); + }, + setSurfaceProps: function setSurfaceProps(appKey, appParameters, displayMode) { + if (appKey !== 'LogBox') { + var msg = 'Updating props for Surface "' + appKey + '" with ' + JSON.stringify(appParameters); + _$$_REQUIRE(_dependencyMap[7], "../Utilities/infoLog")(msg); + _$$_REQUIRE(_dependencyMap[8], "../BugReporting/BugReporting").addSource('AppRegistry.setSurfaceProps' + runCount++, function () { + return msg; + }); + } + _$$_REQUIRE(_dependencyMap[4], "invariant")(runnables[appKey] && runnables[appKey].run, "\"" + appKey + "\" has not been registered. This can happen if:\n" + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); + runnables[appKey].run(appParameters, displayMode); + }, + unmountApplicationComponentAtRootTag: function unmountApplicationComponentAtRootTag(rootTag) { + _$$_REQUIRE(_dependencyMap[10], "../Renderer/shims/ReactNative").unmountComponentAtNodeAndRemoveContainer(rootTag); + }, + registerHeadlessTask: function registerHeadlessTask(taskKey, taskProvider) { + this.registerCancellableHeadlessTask(taskKey, taskProvider, function () { + return function () { + }; + }); + }, + registerCancellableHeadlessTask: function registerCancellableHeadlessTask(taskKey, taskProvider, taskCancelProvider) { + if (taskProviders.has(taskKey)) { + console.warn("registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '" + taskKey + "'"); + } + taskProviders.set(taskKey, taskProvider); + taskCancelProviders.set(taskKey, taskCancelProvider); + }, + startHeadlessTask: function startHeadlessTask(taskId, taskKey, data) { + var taskProvider = taskProviders.get(taskKey); + if (!taskProvider) { + console.warn("No task registered for key " + taskKey); + if (_NativeHeadlessJsTaskSupport.default) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); + } + return; + } + taskProvider()(data).then(function () { + if (_NativeHeadlessJsTaskSupport.default) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); + } + }).catch(function (reason) { + console.error(reason); + if (_NativeHeadlessJsTaskSupport.default && reason instanceof _HeadlessJsTaskError.default) { + _NativeHeadlessJsTaskSupport.default.notifyTaskRetry(taskId).then(function (retryPosted) { + if (!retryPosted) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); + } + }); + } + }); + }, + cancelHeadlessTask: function cancelHeadlessTask(taskId, taskKey) { + var taskCancelProvider = taskCancelProviders.get(taskKey); + if (!taskCancelProvider) { + throw new Error("No task canceller registered for key '" + taskKey + "'"); + } + taskCancelProvider()(); + } + }; + if (!(global.RN$Bridgeless === true)) { + _$$_REQUIRE(_dependencyMap[11], "../BatchedBridge/BatchedBridge").registerCallableModule('AppRegistry', AppRegistry); + if (__DEV__) { + var LogBoxInspector = _$$_REQUIRE(_dependencyMap[12], "../LogBox/LogBoxInspectorContainer").default; + AppRegistry.registerComponent('LogBox', function () { + return LogBoxInspector; + }); + } else { + AppRegistry.registerComponent('LogBox', function () { + return function NoOp() { + return null; + }; + }); + } + } + module.exports = AppRegistry; +},411,[3,123,412,413,17,414,418,124,419,422,34,23,423],"node_modules/react-native/Libraries/ReactNative/AppRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('HeadlessJsTaskSupport'); + exports.default = _default; +},412,[16],"node_modules/react-native/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/wrapNativeSuper")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var HeadlessJsTaskError = function (_Error) { + (0, _inherits2.default)(HeadlessJsTaskError, _Error); + var _super = _createSuper(HeadlessJsTaskError); + function HeadlessJsTaskError() { + (0, _classCallCheck2.default)(this, HeadlessJsTaskError); + return _super.apply(this, arguments); + } + return (0, _createClass2.default)(HeadlessJsTaskError); + }((0, _wrapNativeSuper2.default)(Error)); + exports.default = HeadlessJsTaskError; +},413,[3,13,12,50,47,46,52],"node_modules/react-native/Libraries/ReactNative/HeadlessJsTaskError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/GlobalPerformanceLogger")); + var _PerformanceLoggerContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/PerformanceLoggerContext")); + var _getCachedComponentWithDebugName = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./getCachedComponentWithDebugName")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/ReactNative/renderApplication.js"; + var React = _$$_REQUIRE(_dependencyMap[4], "react"); + _$$_REQUIRE(_dependencyMap[5], "../Utilities/BackHandler"); + function renderApplication(RootComponent, initialProps, rootTag, WrapperComponent, fabric, showArchitectureIndicator, scopedPerformanceLogger, isLogBox, debugName, displayMode, useConcurrentRoot) { + _$$_REQUIRE(_dependencyMap[6], "invariant")(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); + var performanceLogger = scopedPerformanceLogger != null ? scopedPerformanceLogger : _GlobalPerformanceLogger.default; + var renderable = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_PerformanceLoggerContext.default.Provider, { + value: performanceLogger, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[8], "./AppContainer"), { + rootTag: rootTag, + fabric: fabric, + showArchitectureIndicator: showArchitectureIndicator, + WrapperComponent: WrapperComponent, + initialProps: initialProps != null ? initialProps : Object.freeze({}), + internal_excludeLogBox: isLogBox, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(RootComponent, Object.assign({}, initialProps, { + rootTag: rootTag + })) + }) + }); + if (__DEV__ && debugName) { + var RootComponentWithMeaningfulName = (0, _getCachedComponentWithDebugName.default)(debugName + "(RootComponent)"); + renderable = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(RootComponentWithMeaningfulName, { + children: renderable + }); + } + performanceLogger.startTimespan('renderApplication_React_render'); + performanceLogger.setExtra('usedReactConcurrentRoot', useConcurrentRoot ? '1' : '0'); + performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0'); + if (fabric) { + _$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactFabric").render(renderable, rootTag, null, useConcurrentRoot); + } else { + _$$_REQUIRE(_dependencyMap[10], "../Renderer/shims/ReactNative").render(renderable, rootTag); + } + performanceLogger.stopTimespan('renderApplication_React_render'); + } + module.exports = renderApplication; +},414,[3,122,415,416,36,417,17,73,359,203,34],"node_modules/react-native/Libraries/ReactNative/renderApplication.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + exports.usePerformanceLogger = usePerformanceLogger; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./GlobalPerformanceLogger")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + var PerformanceLoggerContext = React.createContext(_GlobalPerformanceLogger.default); + if (__DEV__) { + PerformanceLoggerContext.displayName = 'PerformanceLoggerContext'; + } + function usePerformanceLogger() { + return (0, React.useContext)(PerformanceLoggerContext); + } + var _default = PerformanceLoggerContext; + exports.default = _default; +},415,[36,3,122],"node_modules/react-native/Libraries/Utilities/PerformanceLoggerContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getCachedComponentWithDisplayName; + + var cache = new Map(); + function getCachedComponentWithDisplayName(displayName) { + var ComponentWithDisplayName = cache.get(displayName); + if (!ComponentWithDisplayName) { + ComponentWithDisplayName = function ComponentWithDisplayName(_ref) { + var children = _ref.children; + return children; + }; + ComponentWithDisplayName.displayName = displayName; + cache.set(displayName, ComponentWithDisplayName); + } + return ComponentWithDisplayName; + } +},416,[],"node_modules/react-native/Libraries/ReactNative/getCachedComponentWithDebugName.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "../Components/UnimplementedViews/UnimplementedView"); + function emptyFunction() {} + var BackHandler = { + exitApp: emptyFunction, + addEventListener: function addEventListener(_eventName, _handler) { + return { + remove: emptyFunction + }; + }, + removeEventListener: function removeEventListener(_eventName, _handler) {} + }; + module.exports = BackHandler; +},417,[249],"node_modules/react-native/Libraries/Utilities/BackHandler.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.coerceDisplayMode = coerceDisplayMode; + exports.default = void 0; + + var DisplayMode = Object.freeze({ + VISIBLE: 1, + SUSPENDED: 2, + HIDDEN: 3 + }); + function coerceDisplayMode(value) { + switch (value) { + case DisplayMode.SUSPENDED: + return DisplayMode.SUSPENDED; + case DisplayMode.HIDDEN: + return DisplayMode.HIDDEN; + default: + return DisplayMode.VISIBLE; + } + } + var _default = DisplayMode; + exports.default = _default; +},418,[],"node_modules/react-native/Libraries/ReactNative/DisplayMode.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeRedBox")); + var _NativeBugReporting = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeBugReporting")); + + function defaultExtras() { + BugReporting.addFileSource('react_hierarchy.txt', function () { + return _$$_REQUIRE(_dependencyMap[7], "./dumpReactTree")(); + }); + } + + var BugReporting = function () { + function BugReporting() { + (0, _classCallCheck2.default)(this, BugReporting); + } + (0, _createClass2.default)(BugReporting, null, [{ + key: "_maybeInit", + value: function _maybeInit() { + if (!BugReporting._subscription) { + BugReporting._subscription = _RCTDeviceEventEmitter.default.addListener('collectBugExtraData', + BugReporting.collectExtraData, null); + defaultExtras(); + } + if (!BugReporting._redboxSubscription) { + BugReporting._redboxSubscription = _RCTDeviceEventEmitter.default.addListener('collectRedBoxExtraData', + BugReporting.collectExtraData, null); + } + } + + }, { + key: "addSource", + value: + function addSource(key, callback) { + return this._addSource(key, callback, BugReporting._extraSources); + } + + }, { + key: "addFileSource", + value: + function addFileSource(key, callback) { + return this._addSource(key, callback, BugReporting._fileSources); + } + }, { + key: "_addSource", + value: function _addSource(key, callback, source) { + BugReporting._maybeInit(); + if (source.has(key)) { + console.warn("BugReporting.add* called multiple times for same key '" + key + "'"); + } + source.set(key, callback); + return { + remove: function remove() { + source.delete(key); + } + }; + } + + }, { + key: "collectExtraData", + value: + function collectExtraData() { + var extraData = {}; + for (var _ref of BugReporting._extraSources) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2); + var _key = _ref2[0]; + var callback = _ref2[1]; + extraData[_key] = callback(); + } + var fileData = {}; + for (var _ref3 of BugReporting._fileSources) { + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2); + var _key2 = _ref4[0]; + var _callback = _ref4[1]; + fileData[_key2] = _callback(); + } + if (_NativeBugReporting.default != null && _NativeBugReporting.default.setExtraData != null) { + _NativeBugReporting.default.setExtraData(extraData, fileData); + } + if (_NativeRedBox.default != null && _NativeRedBox.default.setExtraData != null) { + _NativeRedBox.default.setExtraData(extraData, 'From BugReporting.js'); + } + return { + extras: extraData, + files: fileData + }; + } + }]); + return BugReporting; + }(); + BugReporting._extraSources = new Map(); + BugReporting._fileSources = new Map(); + BugReporting._subscription = null; + BugReporting._redboxSubscription = null; + module.exports = BugReporting; +},419,[3,19,12,13,4,157,420,421],"node_modules/react-native/Libraries/BugReporting/BugReporting.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('BugReporting'); + exports.default = _default; +},420,[16],"node_modules/react-native/Libraries/BugReporting/NativeBugReporting.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function dumpReactTree() { + try { + return getReactTree(); + } catch (e) { + return 'Failed to dump react tree: ' + e; + } + } + function getReactTree() { + return 'React tree dumps have been temporarily disabled while React is ' + 'upgraded to Fiber.'; + } + + module.exports = dumpReactTree; +},421,[],"node_modules/react-native/Libraries/BugReporting/dumpReactTree.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var _listeners = []; + var _activeScene = { + name: 'default' + }; + var SceneTracker = { + setActiveScene: function setActiveScene(scene) { + _activeScene = scene; + _listeners.forEach(function (listener) { + return listener(_activeScene); + }); + }, + getActiveScene: function getActiveScene() { + return _activeScene; + }, + addActiveSceneChangedListener: function addActiveSceneChangedListener(callback) { + _listeners.push(callback); + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); + } + }; + } + }; + module.exports = SceneTracker; +},422,[],"node_modules/react-native/Libraries/Utilities/SceneTracker.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports._LogBoxInspectorContainer = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[7], "react-native"); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./Data/LogBoxData")); + var _LogBoxInspector = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./UI/LogBoxInspector")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _LogBoxInspectorContainer = function (_React$Component) { + (0, _inherits2.default)(_LogBoxInspectorContainer, _React$Component); + var _super = _createSuper(_LogBoxInspectorContainer); + function _LogBoxInspectorContainer() { + var _this; + (0, _classCallCheck2.default)(this, _LogBoxInspectorContainer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._handleDismiss = function () { + var _this$props = _this.props, + selectedLogIndex = _this$props.selectedLogIndex, + logs = _this$props.logs; + var logsArray = Array.from(logs); + if (selectedLogIndex != null) { + if (logsArray.length - 1 <= 0) { + LogBoxData.setSelectedLog(-1); + } else if (selectedLogIndex >= logsArray.length - 1) { + LogBoxData.setSelectedLog(selectedLogIndex - 1); + } + LogBoxData.dismiss(logsArray[selectedLogIndex]); + } + }; + _this._handleMinimize = function () { + LogBoxData.setSelectedLog(-1); + }; + _this._handleSetSelectedLog = function (index) { + LogBoxData.setSelectedLog(index); + }; + return _this; + } + (0, _createClass2.default)(_LogBoxInspectorContainer, [{ + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: _reactNative.StyleSheet.absoluteFill, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_LogBoxInspector.default, { + onDismiss: this._handleDismiss, + onMinimize: this._handleMinimize, + onChangeSelectedIndex: this._handleSetSelectedLog, + logs: this.props.logs, + selectedIndex: this.props.selectedLogIndex + }) + }); + } + }]); + return _LogBoxInspectorContainer; + }(React.Component); + exports._LogBoxInspectorContainer = _LogBoxInspectorContainer; + var _default = LogBoxData.withSubscription(_LogBoxInspectorContainer); + exports.default = _default; +},423,[3,12,13,50,47,46,36,1,61,424,73],"node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _LogBoxInspectorCodeFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./LogBoxInspectorCodeFrame")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _ScrollView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/ScrollView/ScrollView")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "../Data/LogBoxData")); + var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Components/Keyboard/Keyboard")); + var _LogBoxInspectorFooter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorFooter")); + var _LogBoxInspectorMessageHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./LogBoxInspectorMessageHeader")); + var _LogBoxInspectorReactFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./LogBoxInspectorReactFrames")); + var _LogBoxInspectorStackFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./LogBoxInspectorStackFrames")); + var _LogBoxInspectorHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./LogBoxInspectorHeader")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14], "./LogBoxStyle")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "../Data/LogBoxLog")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspector(props) { + var logs = props.logs, + selectedIndex = props.selectedIndex; + var log = logs[selectedIndex]; + React.useEffect(function () { + if (log) { + LogBoxData.symbolicateLogNow(log); + } + }, [log]); + React.useEffect(function () { + if (logs.length > 1) { + var selected = selectedIndex; + var lastIndex = logs.length - 1; + var prevIndex = selected - 1 < 0 ? lastIndex : selected - 1; + var nextIndex = selected + 1 > lastIndex ? 0 : selected + 1; + LogBoxData.symbolicateLogLazy(logs[prevIndex]); + LogBoxData.symbolicateLogLazy(logs[nextIndex]); + } + }, [logs, selectedIndex]); + React.useEffect(function () { + _Keyboard.default.dismiss(); + }, []); + function _handleRetry() { + LogBoxData.retrySymbolicateLogNow(log); + } + if (log == null) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.root, + children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorHeader.default, { + onSelectIndex: props.onChangeSelectedIndex, + selectedIndex: selectedIndex, + total: logs.length, + level: log.level + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(LogBoxInspectorBody, { + log: log, + onRetry: _handleRetry + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorFooter.default, { + onDismiss: props.onDismiss, + onMinimize: props.onMinimize, + level: log.level + })] + }); + } + var headerTitleMap = { + warn: 'Console Warning', + error: 'Console Error', + fatal: 'Uncaught Error', + syntax: 'Syntax Error', + component: 'Render Error' + }; + function LogBoxInspectorBody(props) { + var _props$log$type; + var _React$useState = React.useState(true), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + collapsed = _React$useState2[0], + setCollapsed = _React$useState2[1]; + React.useEffect(function () { + setCollapsed(true); + }, [props.log]); + var headerTitle = (_props$log$type = props.log.type) != null ? _props$log$type : headerTitleMap[props.log.isComponentError ? 'component' : props.log.level]; + if (collapsed) { + return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { + collapsed: collapsed, + onPress: function onPress() { + return setCollapsed(!collapsed); + }, + message: props.log.message, + level: props.log.level, + title: headerTitle + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { + style: styles.scrollBody, + children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { + codeFrame: props.log.codeFrame + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { + log: props.log + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { + log: props.log, + onRetry: props.onRetry + })] + })] + }); + } + return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { + style: styles.scrollBody, + children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { + collapsed: collapsed, + onPress: function onPress() { + return setCollapsed(!collapsed); + }, + message: props.log.message, + level: props.log.level, + title: headerTitle + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { + codeFrame: props.log.codeFrame + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { + log: props.log + }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { + log: props.log, + onRetry: props.onRetry + })] + }); + } + var styles = _StyleSheet.default.create({ + root: { + flex: 1, + backgroundColor: LogBoxStyle.getTextColor() + }, + scrollBody: { + backgroundColor: LogBoxStyle.getBackgroundColor(0.9), + flex: 1 + } + }); + var _default = LogBoxInspector; + exports.default = _default; +},424,[3,19,425,36,310,244,245,61,312,429,431,432,433,438,382,62,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); + var _ScrollView = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Components/ScrollView/ScrollView")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxButton")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Core/Devtools/openFileInEditor")); + var _AnsiHighlight = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnsiHighlight")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./LogBoxInspectorSection")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "../Data/LogBoxData")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorCodeFrame(props) { + var codeFrame = props.codeFrame; + if (codeFrame == null) { + return null; + } + function getFileName() { + var matches = /[^/]*$/.exec(codeFrame.fileName); + if (matches && matches.length > 0) { + return matches[0]; + } + + return codeFrame.fileName; + } + function getLocation() { + var location = codeFrame.location; + if (location != null) { + return " (" + location.row + ":" + (location.column + 1) + ")"; + } + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxInspectorSection.default, { + heading: "Source", + action: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(AppInfo, {}), + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.box, + children: [(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_View.default, { + style: styles.frame, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_ScrollView.default, { + horizontal: true, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_AnsiHighlight.default, { + style: styles.content, + text: codeFrame.content + }) + }) + }), (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundDarkColor(1) + }, + style: styles.button, + onPress: function onPress() { + var _codeFrame$location$r, _codeFrame$location; + (0, _openFileInEditor.default)(codeFrame.fileName, (_codeFrame$location$r = (_codeFrame$location = codeFrame.location) == null ? void 0 : _codeFrame$location.row) != null ? _codeFrame$location$r : 0); + }, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { + style: styles.fileText, + children: [getFileName(), getLocation()] + }) + })] + }) + }); + } + function AppInfo() { + var appInfo = LogBoxData.getAppInfo(); + if (appInfo == null) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: appInfo.onPress ? LogBoxStyle.getBackgroundColor(1) : 'transparent' + }, + style: appInfoStyles.buildButton, + onPress: appInfo.onPress, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { + style: appInfoStyles.text, + children: [appInfo.appVersion, " (", appInfo.engine, ")"] + }) + }); + } + var appInfoStyles = _StyleSheet.default.create({ + text: { + color: LogBoxStyle.getTextColor(0.4), + fontSize: 12, + lineHeight: 12 + }, + buildButton: { + flex: 0, + flexGrow: 0, + paddingVertical: 4, + paddingHorizontal: 5, + borderRadius: 5, + marginRight: -8 + } + }); + var styles = _StyleSheet.default.create({ + box: { + backgroundColor: LogBoxStyle.getBackgroundColor(), + marginLeft: 10, + marginRight: 10, + marginTop: 5, + borderRadius: 3 + }, + frame: { + padding: 10, + borderBottomColor: LogBoxStyle.getTextColor(0.1), + borderBottomWidth: 1 + }, + button: { + paddingTop: 10, + paddingBottom: 10 + }, + content: { + color: LogBoxStyle.getTextColor(1), + fontSize: 12, + includeFontPadding: false, + lineHeight: 20, + fontFamily: _Platform.default.select({ + android: 'monospace', + ios: 'Menlo' + }) + }, + fileText: { + color: LogBoxStyle.getTextColor(0.5), + textAlign: 'center', + flex: 1, + fontSize: 12, + includeFontPadding: false, + lineHeight: 16, + fontFamily: _Platform.default.select({ + android: 'monospace', + ios: 'Menlo' + }) + } + }); + var _default = LogBoxInspectorCodeFrame; + exports.default = _default; +},425,[36,3,14,310,244,255,245,382,381,370,426,428,61,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Ansi; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var COLORS = { + 'ansi-black': 'rgb(27, 27, 27)', + 'ansi-red': 'rgb(187, 86, 83)', + 'ansi-green': 'rgb(144, 157, 98)', + 'ansi-yellow': 'rgb(234, 193, 121)', + 'ansi-blue': 'rgb(125, 169, 199)', + 'ansi-magenta': 'rgb(176, 101, 151)', + 'ansi-cyan': 'rgb(140, 220, 216)', + 'ansi-bright-black': 'rgb(98, 98, 98)', + 'ansi-bright-red': 'rgb(187, 86, 83)', + 'ansi-bright-green': 'rgb(144, 157, 98)', + 'ansi-bright-yellow': 'rgb(234, 193, 121)', + 'ansi-bright-blue': 'rgb(125, 169, 199)', + 'ansi-bright-magenta': 'rgb(176, 101, 151)', + 'ansi-bright-cyan': 'rgb(140, 220, 216)', + 'ansi-bright-white': 'rgb(247, 247, 247)' + }; + function Ansi(_ref) { + var _this = this; + var text = _ref.text, + style = _ref.style; + var commonWhitespaceLength = Infinity; + var parsedLines = text.split(/\n/).map(function (line) { + return (0, _$$_REQUIRE(_dependencyMap[2], "anser").ansiToJson)(line, { + json: true, + remove_empty: true, + use_classes: true + }); + }); + parsedLines.map(function (lines) { + var _lines$, _lines$$content, _match$; + var match = lines[2] && ((_lines$ = lines[2]) == null ? void 0 : (_lines$$content = _lines$.content) == null ? void 0 : _lines$$content.match(/^ +/)); + var whitespaceLength = match && ((_match$ = match[0]) == null ? void 0 : _match$.length) || 0; + if (whitespaceLength < commonWhitespaceLength) { + commonWhitespaceLength = whitespaceLength; + } + }); + + var getText = function getText(content, key) { + if (key === 1) { + return content.replace(/\| $/, ' '); + } else if (key === 2 && commonWhitespaceLength < Infinity) { + return content.substr(commonWhitespaceLength); + } else { + return content; + } + }; + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + children: parsedLines.map(function (items, i) { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + style: styles.line, + children: items.map(function (bundle, key) { + var textStyle = bundle.fg && COLORS[bundle.fg] ? { + backgroundColor: bundle.bg && COLORS[bundle.bg], + color: bundle.fg && COLORS[bundle.fg] + } : { + backgroundColor: bundle.bg && COLORS[bundle.bg] + }; + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [style, textStyle], + children: getText(bundle.content, key) + }, key); + }) + }, i); + }) + }); + } + var styles = _reactNative.StyleSheet.create({ + line: { + flexDirection: 'row' + } + }); +},426,[36,1,427,73],"node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + var _createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + var ANSI_COLORS = [[{ + color: "0, 0, 0", + "class": "ansi-black" + }, { + color: "187, 0, 0", + "class": "ansi-red" + }, { + color: "0, 187, 0", + "class": "ansi-green" + }, { + color: "187, 187, 0", + "class": "ansi-yellow" + }, { + color: "0, 0, 187", + "class": "ansi-blue" + }, { + color: "187, 0, 187", + "class": "ansi-magenta" + }, { + color: "0, 187, 187", + "class": "ansi-cyan" + }, { + color: "255,255,255", + "class": "ansi-white" + }], [{ + color: "85, 85, 85", + "class": "ansi-bright-black" + }, { + color: "255, 85, 85", + "class": "ansi-bright-red" + }, { + color: "0, 255, 0", + "class": "ansi-bright-green" + }, { + color: "255, 255, 85", + "class": "ansi-bright-yellow" + }, { + color: "85, 85, 255", + "class": "ansi-bright-blue" + }, { + color: "255, 85, 255", + "class": "ansi-bright-magenta" + }, { + color: "85, 255, 255", + "class": "ansi-bright-cyan" + }, { + color: "255, 255, 255", + "class": "ansi-bright-white" + }]]; + var Anser = function () { + _createClass(Anser, null, [{ + key: "escapeForHtml", + value: function escapeForHtml(txt) { + return new Anser().escapeForHtml(txt); + } + + }, { + key: "linkify", + value: function linkify(txt) { + return new Anser().linkify(txt); + } + + }, { + key: "ansiToHtml", + value: function ansiToHtml(txt, options) { + return new Anser().ansiToHtml(txt, options); + } + + }, { + key: "ansiToJson", + value: function ansiToJson(txt, options) { + return new Anser().ansiToJson(txt, options); + } + + }, { + key: "ansiToText", + value: function ansiToText(txt) { + return new Anser().ansiToText(txt); + } + + }]); + + function Anser() { + _classCallCheck(this, Anser); + this.fg = this.bg = this.fg_truecolor = this.bg_truecolor = null; + this.bright = 0; + } + + _createClass(Anser, [{ + key: "setupPalette", + value: function setupPalette() { + this.PALETTE_COLORS = []; + + for (var i = 0; i < 2; ++i) { + for (var j = 0; j < 8; ++j) { + this.PALETTE_COLORS.push(ANSI_COLORS[i][j].color); + } + } + + var levels = [0, 95, 135, 175, 215, 255]; + var format = function format(r, g, b) { + return levels[r] + ", " + levels[g] + ", " + levels[b]; + }; + var r = void 0, + g = void 0, + b = void 0; + for (var _r = 0; _r < 6; ++_r) { + for (var _g = 0; _g < 6; ++_g) { + for (var _b = 0; _b < 6; ++_b) { + this.PALETTE_COLORS.push(format(_r, _g, _b)); + } + } + } + + var level = 8; + for (var _i = 0; _i < 24; ++_i, level += 10) { + this.PALETTE_COLORS.push(format(level, level, level)); + } + } + + }, { + key: "escapeForHtml", + value: function escapeForHtml(txt) { + return txt.replace(/[&<>]/gm, function (str) { + return str == "&" ? "&" : str == "<" ? "<" : str == ">" ? ">" : ""; + }); + } + + }, { + key: "linkify", + value: function linkify(txt) { + return txt.replace(/(https?:\/\/[^\s]+)/gm, function (str) { + return "" + str + ""; + }); + } + + }, { + key: "ansiToHtml", + value: function ansiToHtml(txt, options) { + return this.process(txt, options, true); + } + + }, { + key: "ansiToJson", + value: function ansiToJson(txt, options) { + options = options || {}; + options.json = true; + options.clearLine = false; + return this.process(txt, options, true); + } + + }, { + key: "ansiToText", + value: function ansiToText(txt) { + return this.process(txt, {}, false); + } + + }, { + key: "process", + value: function process(txt, options, markup) { + var _this = this; + var self = this; + var raw_text_chunks = txt.split(/\033\[/); + var first_chunk = raw_text_chunks.shift(); + + if (options === undefined || options === null) { + options = {}; + } + options.clearLine = /\r/.test(txt); + var color_chunks = raw_text_chunks.map(function (chunk) { + return _this.processChunk(chunk, options, markup); + }); + if (options && options.json) { + var first = self.processChunkJson(""); + first.content = first_chunk; + first.clearLine = options.clearLine; + color_chunks.unshift(first); + if (options.remove_empty) { + color_chunks = color_chunks.filter(function (c) { + return !c.isEmpty(); + }); + } + return color_chunks; + } else { + color_chunks.unshift(first_chunk); + } + return color_chunks.join(""); + } + + }, { + key: "processChunkJson", + value: function processChunkJson(text, options, markup) { + options = typeof options == "undefined" ? {} : options; + var use_classes = options.use_classes = typeof options.use_classes != "undefined" && options.use_classes; + var key = options.key = use_classes ? "class" : "color"; + var result = { + content: text, + fg: null, + bg: null, + fg_truecolor: null, + bg_truecolor: null, + clearLine: options.clearLine, + decoration: null, + was_processed: false, + isEmpty: function isEmpty() { + return !result.content; + } + }; + + var matches = text.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m); + if (!matches) return result; + var orig_txt = result.content = matches[4]; + var nums = matches[2].split(";"); + + if (matches[1] !== "" || matches[3] !== "m") { + return result; + } + if (!markup) { + return result; + } + var self = this; + self.decoration = null; + while (nums.length > 0) { + var num_str = nums.shift(); + var num = parseInt(num_str); + if (isNaN(num) || num === 0) { + self.fg = self.bg = self.decoration = null; + } else if (num === 1) { + self.decoration = "bold"; + } else if (num === 2) { + self.decoration = "dim"; + } else if (num == 3) { + self.decoration = "italic"; + } else if (num == 4) { + self.decoration = "underline"; + } else if (num == 5) { + self.decoration = "blink"; + } else if (num === 7) { + self.decoration = "reverse"; + } else if (num === 8) { + self.decoration = "hidden"; + } else if (num === 9) { + self.decoration = "strikethrough"; + } else if (num == 39) { + self.fg = null; + } else if (num == 49) { + self.bg = null; + } else if (num >= 30 && num < 38) { + self.fg = ANSI_COLORS[0][num % 10][key]; + } else if (num >= 90 && num < 98) { + self.fg = ANSI_COLORS[1][num % 10][key]; + } else if (num >= 40 && num < 48) { + self.bg = ANSI_COLORS[0][num % 10][key]; + } else if (num >= 100 && num < 108) { + self.bg = ANSI_COLORS[1][num % 10][key]; + } else if (num === 38 || num === 48) { + var is_foreground = num === 38; + if (nums.length >= 1) { + var mode = nums.shift(); + if (mode === "5" && nums.length >= 1) { + var palette_index = parseInt(nums.shift()); + if (palette_index >= 0 && palette_index <= 255) { + if (!use_classes) { + if (!this.PALETTE_COLORS) { + self.setupPalette(); + } + if (is_foreground) { + self.fg = this.PALETTE_COLORS[palette_index]; + } else { + self.bg = this.PALETTE_COLORS[palette_index]; + } + } else { + var klass = palette_index >= 16 ? "ansi-palette-" + palette_index : ANSI_COLORS[palette_index > 7 ? 1 : 0][palette_index % 8]["class"]; + if (is_foreground) { + self.fg = klass; + } else { + self.bg = klass; + } + } + } + } else if (mode === "2" && nums.length >= 3) { + var r = parseInt(nums.shift()); + var g = parseInt(nums.shift()); + var b = parseInt(nums.shift()); + if (r >= 0 && r <= 255 && g >= 0 && g <= 255 && b >= 0 && b <= 255) { + var color = r + ", " + g + ", " + b; + if (!use_classes) { + if (is_foreground) { + self.fg = color; + } else { + self.bg = color; + } + } else { + if (is_foreground) { + self.fg = "ansi-truecolor"; + self.fg_truecolor = color; + } else { + self.bg = "ansi-truecolor"; + self.bg_truecolor = color; + } + } + } + } + } + } + } + if (self.fg === null && self.bg === null && self.decoration === null) { + return result; + } else { + var styles = []; + var classes = []; + var data = {}; + result.fg = self.fg; + result.bg = self.bg; + result.fg_truecolor = self.fg_truecolor; + result.bg_truecolor = self.bg_truecolor; + result.decoration = self.decoration; + result.was_processed = true; + return result; + } + } + + }, { + key: "processChunk", + value: function processChunk(text, options, markup) { + var _this2 = this; + var self = this; + options = options || {}; + var jsonChunk = this.processChunkJson(text, options, markup); + if (options.json) { + return jsonChunk; + } + if (jsonChunk.isEmpty()) { + return ""; + } + if (!jsonChunk.was_processed) { + return jsonChunk.content; + } + var use_classes = options.use_classes; + var styles = []; + var classes = []; + var data = {}; + var render_data = function render_data(data) { + var fragments = []; + var key = void 0; + for (key in data) { + if (data.hasOwnProperty(key)) { + fragments.push("data-" + key + "=\"" + _this2.escapeForHtml(data[key]) + "\""); + } + } + return fragments.length > 0 ? " " + fragments.join(" ") : ""; + }; + if (jsonChunk.fg) { + if (use_classes) { + classes.push(jsonChunk.fg + "-fg"); + if (jsonChunk.fg_truecolor !== null) { + data["ansi-truecolor-fg"] = jsonChunk.fg_truecolor; + jsonChunk.fg_truecolor = null; + } + } else { + styles.push("color:rgb(" + jsonChunk.fg + ")"); + } + } + if (jsonChunk.bg) { + if (use_classes) { + classes.push(jsonChunk.bg + "-bg"); + if (jsonChunk.bg_truecolor !== null) { + data["ansi-truecolor-bg"] = jsonChunk.bg_truecolor; + jsonChunk.bg_truecolor = null; + } + } else { + styles.push("background-color:rgb(" + jsonChunk.bg + ")"); + } + } + if (jsonChunk.decoration) { + if (use_classes) { + classes.push("ansi-" + jsonChunk.decoration); + } else if (jsonChunk.decoration === "bold") { + styles.push("font-weight:bold"); + } else if (jsonChunk.decoration === "dim") { + styles.push("opacity:0.5"); + } else if (jsonChunk.decoration === "italic") { + styles.push("font-style:italic"); + } else if (jsonChunk.decoration === "reverse") { + styles.push("filter:invert(100%)"); + } else if (jsonChunk.decoration === "hidden") { + styles.push("visibility:hidden"); + } else if (jsonChunk.decoration === "strikethrough") { + styles.push("text-decoration:line-through"); + } else { + styles.push("text-decoration:" + jsonChunk.decoration); + } + } + if (use_classes) { + return "" + jsonChunk.content + ""; + } else { + return "" + jsonChunk.content + ""; + } + } + }]); + return Anser; + }(); + ; + module.exports = Anser; +},427,[],"node_modules/anser/lib/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorSection(props) { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.heading, + children: [(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.headingText, + children: props.heading + }), props.action] + }), (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_View.default, { + style: styles.body, + children: props.children + })] + }); + } + var styles = _StyleSheet.default.create({ + section: { + marginTop: 15 + }, + heading: { + alignItems: 'center', + flexDirection: 'row', + paddingHorizontal: 12, + marginBottom: 10 + }, + headingText: { + color: LogBoxStyle.getTextColor(1), + flex: 1, + fontSize: 18, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 20 + }, + body: { + paddingBottom: 10 + } + }); + var _default = LogBoxInspectorSection; + exports.default = _default; +},428,[36,3,244,255,245,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _DeviceInfo = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/DeviceInfo")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorFooter(props) { + if (props.level === 'syntax') { + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + style: styles.root, + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + style: styles.button, + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.syntaxErrorText, + children: "This error cannot be dismissed." + }) + }) + }); + } + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.root, + children: [(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { + text: "Dismiss", + onPress: props.onDismiss + }), (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { + text: "Minimize", + onPress: props.onMinimize + })] + }); + } + function FooterButton(props) { + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundDarkColor() + }, + onPress: props.onPress, + style: buttonStyles.safeArea, + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + style: buttonStyles.content, + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + style: buttonStyles.label, + children: props.text + }) + }) + }); + } + var buttonStyles = _StyleSheet.default.create({ + safeArea: { + flex: 1, + paddingBottom: _DeviceInfo.default.getConstants().isIPhoneX_deprecated ? 30 : 0 + }, + content: { + alignItems: 'center', + height: 48, + justifyContent: 'center' + }, + label: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 20 + } + }); + var styles = _StyleSheet.default.create({ + root: { + backgroundColor: LogBoxStyle.getBackgroundColor(1), + shadowColor: '#000', + shadowOffset: { + width: 0, + height: -2 + }, + shadowRadius: 2, + shadowOpacity: 0.5, + flexDirection: 'row' + }, + button: { + flex: 1 + }, + syntaxErrorText: { + textAlign: 'center', + width: '100%', + height: 48, + fontSize: 14, + lineHeight: 20, + paddingTop: 20, + paddingBottom: 50, + fontStyle: 'italic', + color: LogBoxStyle.getTextColor(0.6) + } + }); + var _default = LogBoxInspectorFooter; + exports.default = _default; +},429,[36,3,430,244,255,245,381,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeDeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeDeviceInfo")); + + module.exports = _NativeDeviceInfo.default; +},430,[3,230],"node_modules/react-native/Libraries/Utilities/DeviceInfo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); + var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxMessage")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var SHOW_MORE_MESSAGE_LENGTH = 300; + function LogBoxInspectorMessageHeader(props) { + function renderShowMore() { + if (props.message.content.length < SHOW_MORE_MESSAGE_LENGTH || !props.collapsed) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { + style: messageStyles.collapse, + onPress: function onPress() { + return props.onPress(); + }, + children: "... See More" + }); + } + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { + style: messageStyles.body, + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: messageStyles.heading, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { + style: [messageStyles.headingText, messageStyles[props.level]], + children: props.title + }) + }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_Text.default, { + style: messageStyles.bodyText, + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { + maxLength: props.collapsed ? SHOW_MORE_MESSAGE_LENGTH : Infinity, + message: props.message, + style: messageStyles.messageText + }), renderShowMore()] + })] + }); + } + var messageStyles = _StyleSheet.default.create({ + body: { + backgroundColor: LogBoxStyle.getBackgroundColor(1), + shadowColor: '#000', + shadowOffset: { + width: 0, + height: 2 + }, + shadowRadius: 2, + shadowOpacity: 0.5, + flex: 0 + }, + bodyText: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 20, + fontWeight: '500', + paddingHorizontal: 12, + paddingBottom: 10 + }, + heading: { + alignItems: 'center', + flexDirection: 'row', + paddingHorizontal: 12, + marginTop: 10, + marginBottom: 5 + }, + headingText: { + flex: 1, + fontSize: 20, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 28 + }, + warn: { + color: LogBoxStyle.getWarningColor(1) + }, + error: { + color: LogBoxStyle.getErrorColor(1) + }, + fatal: { + color: LogBoxStyle.getFatalColor(1) + }, + syntax: { + color: LogBoxStyle.getFatalColor(1) + }, + messageText: { + color: LogBoxStyle.getTextColor(0.6) + }, + collapse: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 14, + fontWeight: '300', + lineHeight: 12 + }, + button: { + paddingVertical: 5, + paddingHorizontal: 10, + borderRadius: 3 + } + }); + var _default = LogBoxInspectorMessageHeader; + exports.default = _default; +},431,[36,3,244,255,245,382,383,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./LogBoxStyle")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorSection")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Core/Devtools/openFileInEditor")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var BEFORE_SLASH_RE = /^(.*)[\\/]/; + + function getPrettyFileName(path) { + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/โ€‹' + fileName; + } + } + } + return fileName; + } + function LogBoxInspectorReactFrames(props) { + var _this = this; + var _React$useState = React.useState(true), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + collapsed = _React$useState2[0], + setCollapsed = _React$useState2[1]; + if (props.log.componentStack == null || props.log.componentStack.length < 1) { + return null; + } + function getStackList() { + if (collapsed) { + return props.log.componentStack.slice(0, 3); + } else { + return props.log.componentStack; + } + } + function getCollapseMessage() { + if (props.log.componentStack.length <= 3) { + return; + } + var count = props.log.componentStack.length - 3; + if (collapsed) { + return "See " + count + " more components"; + } else { + return "Collapse " + count + " components"; + } + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { + heading: "Component Stack", + children: [getStackList().map(function (frame, index) { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default + , { + style: componentStyles.frameContainer, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundColor(1) + }, + onPress: + frame.fileName.startsWith('/') ? function () { + var _frame$location$row, _frame$location; + return (0, _openFileInEditor.default)(frame.fileName, (_frame$location$row = (_frame$location = frame.location) == null ? void 0 : _frame$location.row) != null ? _frame$location$row : 1); + } : null, + style: componentStyles.frame, + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: componentStyles.component, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { + style: componentStyles.frameName, + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: componentStyles.bracket, + children: '<' + }), frame.content, (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: componentStyles.bracket, + children: ' />' + })] + }) + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { + style: componentStyles.frameLocation, + children: [getPrettyFileName(frame.fileName), frame.location ? ":" + frame.location.row : ''] + })] + }) + }, index); + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: componentStyles.collapseContainer, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundColor(1) + }, + onPress: function onPress() { + return setCollapsed(!collapsed); + }, + style: componentStyles.collapseButton, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: componentStyles.collapse, + children: getCollapseMessage() + }) + }) + })] + }); + } + var componentStyles = _StyleSheet.default.create({ + collapseContainer: { + marginLeft: 15, + flexDirection: 'row' + }, + collapseButton: { + borderRadius: 5 + }, + collapse: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 12, + fontWeight: '300', + lineHeight: 20, + marginTop: 0, + paddingVertical: 5, + paddingHorizontal: 10 + }, + frameContainer: { + flexDirection: 'row', + paddingHorizontal: 15 + }, + frame: { + flex: 1, + paddingVertical: 4, + paddingHorizontal: 10, + borderRadius: 5 + }, + component: { + flexDirection: 'row', + paddingRight: 10 + }, + frameName: { + fontFamily: _Platform.default.select({ + android: 'monospace', + ios: 'Menlo' + }), + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18 + }, + bracket: { + fontFamily: _Platform.default.select({ + android: 'monospace', + ios: 'Menlo' + }), + color: LogBoxStyle.getTextColor(0.4), + fontSize: 14, + fontWeight: '500', + includeFontPadding: false, + lineHeight: 18 + }, + frameLocation: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 12, + fontWeight: '300', + includeFontPadding: false, + lineHeight: 16, + paddingLeft: 10 + } + }); + var _default = LogBoxInspectorReactFrames; + exports.default = _default; +},432,[3,19,36,244,14,255,245,381,382,428,370,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + exports.getCollapseMessage = getCollapseMessage; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); + var _LogBoxInspectorSourceMapStatus = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxInspectorSourceMapStatus")); + var _LogBoxInspectorStackFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxInspectorStackFrame")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorSection")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "./LogBoxStyle")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Core/Devtools/openFileInEditor")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getCollapseMessage(stackFrames, collapsed) { + if (stackFrames.length === 0) { + return 'No frames to show'; + } + var collapsedCount = stackFrames.reduce(function (count, _ref) { + var collapse = _ref.collapse; + if (collapse === true) { + return count + 1; + } + return count; + }, 0); + if (collapsedCount === 0) { + return 'Showing all frames'; + } + var framePlural = "frame" + (collapsedCount > 1 ? 's' : ''); + if (collapsedCount === stackFrames.length) { + return collapsed ? "See" + (collapsedCount > 1 ? ' all ' : ' ') + collapsedCount + " collapsed " + framePlural : "Collapse" + (collapsedCount > 1 ? ' all ' : ' ') + collapsedCount + " " + framePlural; + } else { + return collapsed ? "See " + collapsedCount + " more " + framePlural : "Collapse " + collapsedCount + " " + framePlural; + } + } + function LogBoxInspectorStackFrames(props) { + var _React$useState = React.useState(function () { + return props.log.getAvailableStack().some(function (_ref2) { + var collapse = _ref2.collapse; + return !collapse; + }); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + collapsed = _React$useState2[0], + setCollapsed = _React$useState2[1]; + function getStackList() { + if (collapsed === true) { + return props.log.getAvailableStack().filter(function (_ref3) { + var collapse = _ref3.collapse; + return !collapse; + }); + } else { + return props.log.getAvailableStack(); + } + } + if (props.log.getAvailableStack().length === 0) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { + heading: "Call Stack", + action: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorSourceMapStatus.default, { + onPress: props.log.symbolicated.status === 'FAILED' ? props.onRetry : null, + status: props.log.symbolicated.status + }), + children: [props.log.symbolicated.status !== 'COMPLETE' && (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { + style: stackStyles.hintBox, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { + style: stackStyles.hintText, + children: "This call stack is not symbolicated. Some features are unavailable such as viewing the function name or tapping to open files." + }) + }), (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameList, { + list: getStackList(), + status: props.log.symbolicated.status + }), (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameFooter, { + onPress: function onPress() { + return setCollapsed(!collapsed); + }, + message: getCollapseMessage(props.log.getAvailableStack(), collapsed) + })] + }); + } + function StackFrameList(props) { + var _this = this; + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").Fragment, { + children: props.list.map(function (frame, index) { + var file = frame.file, + lineNumber = frame.lineNumber; + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrame.default, { + frame: frame, + onPress: props.status === 'COMPLETE' && file != null && lineNumber != null ? function () { + return (0, _openFileInEditor.default)(file, lineNumber); + } : null + }, index); + }) + }); + } + function StackFrameFooter(props) { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { + style: stackStyles.collapseContainer, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundColor(1) + }, + onPress: props.onPress, + style: stackStyles.collapseButton, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { + style: stackStyles.collapse, + children: props.message + }) + }) + }); + } + var stackStyles = _StyleSheet.default.create({ + section: { + marginTop: 15 + }, + heading: { + alignItems: 'center', + flexDirection: 'row', + paddingHorizontal: 12, + marginBottom: 10 + }, + headingText: { + color: LogBoxStyle.getTextColor(1), + flex: 1, + fontSize: 20, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 20 + }, + body: { + paddingBottom: 10 + }, + bodyText: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18, + fontWeight: '500', + paddingHorizontal: 27 + }, + hintText: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 13, + includeFontPadding: false, + lineHeight: 18, + fontWeight: '400', + marginHorizontal: 10 + }, + hintBox: { + backgroundColor: LogBoxStyle.getBackgroundColor(), + marginHorizontal: 10, + paddingHorizontal: 5, + paddingVertical: 10, + borderRadius: 5, + marginBottom: 5 + }, + collapseContainer: { + marginLeft: 15, + flexDirection: 'row' + }, + collapseButton: { + borderRadius: 5 + }, + collapse: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 12, + fontWeight: '300', + lineHeight: 20, + marginTop: 0, + paddingHorizontal: 10, + paddingVertical: 5 + } + }); + var _default = LogBoxInspectorStackFrames; + exports.default = _default; +},433,[3,19,36,244,255,245,381,434,437,428,382,370,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _Animated = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Animated/Animated")); + var _Easing = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Animated/Easing")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Text/Text")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorSourceMapStatus(props) { + var _React$useState = React.useState({ + animation: null, + rotate: null + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + state = _React$useState2[0], + setState = _React$useState2[1]; + React.useEffect(function () { + if (props.status === 'PENDING') { + if (state.animation == null) { + var animated = new _Animated.default.Value(0); + var animation = _Animated.default.loop(_Animated.default.timing(animated, { + duration: 2000, + easing: _Easing.default.linear, + toValue: 1, + useNativeDriver: true + })); + setState({ + animation: animation, + rotate: animated.interpolate({ + inputRange: [0, 1], + outputRange: ['0deg', '360deg'] + }) + }); + animation.start(); + } + } else { + if (state.animation != null) { + state.animation.stop(); + setState({ + animation: null, + rotate: null + }); + } + } + return function () { + if (state.animation != null) { + state.animation.stop(); + } + }; + }, [props.status, state.animation]); + var image; + var color; + switch (props.status) { + case 'FAILED': + image = _$$_REQUIRE(_dependencyMap[9], "./LogBoxImages/alert-triangle.png"); + color = LogBoxStyle.getErrorColor(1); + break; + case 'PENDING': + image = _$$_REQUIRE(_dependencyMap[10], "./LogBoxImages/loader.png"); + color = LogBoxStyle.getWarningColor(1); + break; + } + if (props.status === 'COMPLETE' || image == null) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: LogBoxStyle.getBackgroundColor(1) + }, + hitSlop: { + bottom: 8, + left: 8, + right: 8, + top: 8 + }, + onPress: props.onPress, + style: styles.root, + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Animated.default.Image, { + source: image, + style: [styles.image, { + tintColor: color + }, state.rotate == null || props.status !== 'PENDING' ? null : { + transform: [{ + rotate: state.rotate + }] + }] + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: [styles.text, { + color: color + }], + children: "Source Map" + })] + }); + } + var styles = _StyleSheet.default.create({ + root: { + alignItems: 'center', + borderRadius: 12, + flexDirection: 'row', + height: 24, + paddingHorizontal: 8 + }, + image: { + height: 14, + width: 16, + marginEnd: 4, + tintColor: LogBoxStyle.getTextColor(0.4) + }, + text: { + fontSize: 12, + includeFontPadding: false, + lineHeight: 16 + } + }); + var _default = LogBoxInspectorSourceMapStatus; + exports.default = _default; +},434,[3,19,269,294,36,244,255,381,382,435,436,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 48, + "height": 42, + "scales": [1], + "hash": "4f355ba1efca4b9c0e7a6271af047f61", + "name": "alert-triangle", + "type": "png" + }); +},435,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 44, + "height": 44, + "scales": [1], + "hash": "817aca47ff3cea63020753d336e628a4", + "name": "loader", + "type": "png" + }); +},436,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/loader.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/Platform")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorStackFrame(props) { + var frame = props.frame, + onPress = props.onPress; + var column = frame.column != null && parseInt(frame.column, 10); + var location = getFileName(frame.file) + (frame.lineNumber != null ? ':' + frame.lineNumber + (column && !isNaN(column) ? ':' + (column + 1) : '') : ''); + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + style: styles.frameContainer, + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + backgroundColor: { + default: 'transparent', + pressed: onPress ? LogBoxStyle.getBackgroundColor(1) : 'transparent' + }, + onPress: onPress, + style: styles.frame, + children: [(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + style: [styles.name, frame.collapse === true && styles.dim], + children: frame.methodName + }), (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + ellipsizeMode: "middle", + numberOfLines: 1, + style: [styles.location, frame.collapse === true && styles.dim], + children: location + })] + }) + }); + } + function getFileName(file) { + if (file == null) { + return ''; + } + var queryIndex = file.indexOf('?'); + return file.substring(file.lastIndexOf('/') + 1, queryIndex === -1 ? file.length : queryIndex); + } + var styles = _StyleSheet.default.create({ + frameContainer: { + flexDirection: 'row', + paddingHorizontal: 15 + }, + frame: { + flex: 1, + paddingVertical: 4, + paddingHorizontal: 10, + borderRadius: 5 + }, + lineLocation: { + flexDirection: 'row' + }, + name: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18, + fontWeight: '400', + fontFamily: _Platform.default.select({ + android: 'monospace', + ios: 'Menlo' + }) + }, + location: { + color: LogBoxStyle.getTextColor(0.8), + fontSize: 12, + fontWeight: '300', + includeFontPadding: false, + lineHeight: 16, + paddingLeft: 10 + }, + dim: { + color: LogBoxStyle.getTextColor(0.4), + fontWeight: '300' + }, + line: { + color: LogBoxStyle.getTextColor(0.8), + fontSize: 12, + fontWeight: '300', + includeFontPadding: false, + lineHeight: 16 + } + }); + var _default = LogBoxInspectorStackFrame; + exports.default = _default; +},437,[36,3,244,255,245,14,381,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Image/Image")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); + var _StatusBar = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Components/StatusBar/StatusBar")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "./LogBoxStyle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxInspectorHeader(props) { + if (props.level === 'syntax') { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: [styles.safeArea, styles[props.level]], + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.header, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.title, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.titleText, + children: "Failed to compile" + }) + }) + }) + }); + } + var prevIndex = props.selectedIndex - 1 < 0 ? props.total - 1 : props.selectedIndex - 1; + var nextIndex = props.selectedIndex + 1 > props.total - 1 ? 0 : props.selectedIndex + 1; + var titleText = "Log " + (props.selectedIndex + 1) + " of " + props.total; + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: [styles.safeArea, styles[props.level]], + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.header, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { + disabled: props.total <= 1, + level: props.level, + image: _$$_REQUIRE(_dependencyMap[11], "./LogBoxImages/chevron-left.png"), + onPress: function onPress() { + return props.onSelectIndex(prevIndex); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.title, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.titleText, + children: titleText + }) + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { + disabled: props.total <= 1, + level: props.level, + image: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/chevron-right.png"), + onPress: function onPress() { + return props.onSelectIndex(nextIndex); + } + })] + }) + }); + } + var backgroundForLevel = function backgroundForLevel(level) { + return { + warn: { + default: 'transparent', + pressed: LogBoxStyle.getWarningDarkColor() + }, + error: { + default: 'transparent', + pressed: LogBoxStyle.getErrorDarkColor() + }, + fatal: { + default: 'transparent', + pressed: LogBoxStyle.getFatalDarkColor() + }, + syntax: { + default: 'transparent', + pressed: LogBoxStyle.getFatalDarkColor() + } + }[level]; + }; + function LogBoxInspectorHeaderButton(props) { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: backgroundForLevel(props.level), + onPress: props.disabled ? null : props.onPress, + style: headerStyles.button, + children: props.disabled ? null : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Image.default, { + source: props.image, + style: headerStyles.buttonImage + }) + }); + } + var headerStyles = _StyleSheet.default.create({ + button: { + alignItems: 'center', + aspectRatio: 1, + justifyContent: 'center', + marginTop: 5, + marginRight: 6, + marginLeft: 6, + marginBottom: -8, + borderRadius: 3 + }, + buttonImage: { + height: 14, + width: 8, + tintColor: LogBoxStyle.getTextColor() + } + }); + var styles = _StyleSheet.default.create({ + syntax: { + backgroundColor: LogBoxStyle.getFatalColor() + }, + fatal: { + backgroundColor: LogBoxStyle.getFatalColor() + }, + warn: { + backgroundColor: LogBoxStyle.getWarningColor() + }, + error: { + backgroundColor: LogBoxStyle.getErrorColor() + }, + header: { + flexDirection: 'row', + height: _Platform.default.select({ + android: 48, + ios: 44 + }) + }, + title: { + alignItems: 'center', + flex: 1, + justifyContent: 'center' + }, + titleText: { + color: LogBoxStyle.getTextColor(), + fontSize: 16, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 20 + }, + safeArea: { + paddingTop: _Platform.default.OS === 'android' ? _StatusBar.default.currentHeight : 40 + } + }); + var _default = LogBoxInspectorHeader; + exports.default = _default; +},438,[3,334,14,36,244,255,245,395,381,382,73,439,440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 16, + "height": 28, + "scales": [1], + "hash": "5b50965d3dfbc518fe50ce36c314a6ec", + "name": "chevron-left", + "type": "png" + }); +},439,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 16, + "height": 28, + "scales": [1], + "hash": "e62addcde857ebdb7342e6b9f1095e97", + "name": "chevron-right", + "type": "png" + }); +},440,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-right.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _NativeAsyncLocalStorage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeAsyncLocalStorage")); + var _NativeAsyncSQLiteDBStorage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAsyncSQLiteDBStorage")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); + + var RCTAsyncStorage = _NativeAsyncSQLiteDBStorage.default || _NativeAsyncLocalStorage.default; + var AsyncStorage = { + _getRequests: [], + _getKeys: [], + _immediate: null, + getItem: function getItem(key, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiGet([key], function (errors, result) { + var value = result && result[0] && result[0][1] ? result[0][1] : null; + var errs = convertErrors(errors); + callback && callback(errs && errs[0], value); + if (errs) { + reject(errs[0]); + } else { + resolve(value); + } + }); + }); + }, + setItem: function setItem(key, value, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiSet([[key, value]], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + if (errs) { + reject(errs[0]); + } else { + resolve(); + } + }); + }); + }, + removeItem: function removeItem(key, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiRemove([key], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + if (errs) { + reject(errs[0]); + } else { + resolve(); + } + }); + }); + }, + mergeItem: function mergeItem(key, value, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiMerge([[key, value]], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + if (errs) { + reject(errs[0]); + } else { + resolve(); + } + }); + }); + }, + clear: function clear(callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.clear(function (error) { + callback && callback(convertError(error)); + if (error && convertError(error)) { + reject(convertError(error)); + } else { + resolve(); + } + }); + }); + }, + getAllKeys: function getAllKeys(callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.getAllKeys(function (error, keys) { + callback && callback(convertError(error), keys); + if (error) { + reject(convertError(error)); + } else { + resolve(keys); + } + }); + }); + }, + + flushGetRequests: function flushGetRequests() { + var getRequests = this._getRequests; + var getKeys = this._getKeys; + this._getRequests = []; + this._getKeys = []; + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + RCTAsyncStorage.multiGet(getKeys, function (errors, result) { + var map = {}; + result && result.forEach(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + map[key] = value; + return value; + }); + var reqLength = getRequests.length; + for (var i = 0; i < reqLength; i++) { + var request = getRequests[i]; + var requestKeys = request.keys; + var requestResult = requestKeys.map(function (key) { + return [key, map[key]]; + }); + request.callback && request.callback(null, requestResult); + request.resolve && request.resolve(requestResult); + } + }); + }, + multiGet: function multiGet(keys, callback) { + var _this = this; + if (!this._immediate) { + this._immediate = setImmediate(function () { + _this._immediate = null; + _this.flushGetRequests(); + }); + } + return new Promise(function (resolve, reject) { + _this._getRequests.push({ + keys: keys, + callback: callback, + keyIndex: _this._getKeys.length, + resolve: resolve, + reject: reject + }); + keys.forEach(function (key) { + if (_this._getKeys.indexOf(key) === -1) { + _this._getKeys.push(key); + } + }); + }); + }, + multiSet: function multiSet(keyValuePairs, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiSet(keyValuePairs, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + if (error) { + reject(error); + } else { + resolve(); + } + }); + }); + }, + multiRemove: function multiRemove(keys, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiRemove(keys, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + if (error) { + reject(error); + } else { + resolve(); + } + }); + }); + }, + multiMerge: function multiMerge(keyValuePairs, callback) { + (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiMerge(keyValuePairs, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + if (error) { + reject(error); + } else { + resolve(); + } + }); + }); + } + }; + + if (RCTAsyncStorage && !RCTAsyncStorage.multiMerge) { + delete AsyncStorage.mergeItem; + delete AsyncStorage.multiMerge; + } + function convertErrors( + errs) { + if (!errs) { + return null; + } + return (Array.isArray(errs) ? errs : [errs]).map(function (e) { + return convertError(e); + }); + } + function convertError(error) { + if (!error) { + return null; + } + var out = new Error(error.message); + out.key = error.key; + return out; + } + module.exports = AsyncStorage; +},441,[3,19,442,443,17],"node_modules/react-native/Libraries/Storage/AsyncStorage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('AsyncLocalStorage'); + exports.default = _default; +},442,[16],"node_modules/react-native/Libraries/Storage/NativeAsyncLocalStorage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('AsyncSQLiteDBStorage'); + exports.default = _default; +},443,[16],"node_modules/react-native/Libraries/Storage/NativeAsyncSQLiteDBStorage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeClipboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeClipboard")); + + module.exports = { + getString: function getString() { + return _NativeClipboard.default.getString(); + }, + setString: function setString(content) { + _NativeClipboard.default.setString(content); + } + }; +},444,[3,445],"node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('Clipboard'); + exports.default = _default; +},445,[16],"node_modules/react-native/Libraries/Components/Clipboard/NativeClipboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeImagePickerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeImagePickerIOS")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "invariant")); + + var ImagePickerIOS = { + canRecordVideos: function canRecordVideos(callback) { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + return _NativeImagePickerIOS.default.canRecordVideos(callback); + }, + canUseCamera: function canUseCamera(callback) { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + return _NativeImagePickerIOS.default.canUseCamera(callback); + }, + openCameraDialog: function openCameraDialog(config, successCallback, cancelCallback) { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + var newConfig = { + videoMode: true, + unmirrorFrontFacingCamera: false + }; + if (config.videoMode != null) { + newConfig.videoMode = config.videoMode; + } + if (config.unmirrorFrontFacingCamera != null) { + newConfig.unmirrorFrontFacingCamera = config.unmirrorFrontFacingCamera; + } + return _NativeImagePickerIOS.default.openCameraDialog(newConfig, successCallback, cancelCallback); + }, + openSelectDialog: function openSelectDialog(config, successCallback, cancelCallback) { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + var newConfig = { + showImages: true, + showVideos: false + }; + if (config.showImages != null) { + newConfig.showImages = config.showImages; + } + if (config.showVideos != null) { + newConfig.showVideos = config.showVideos; + } + return _NativeImagePickerIOS.default.openSelectDialog(newConfig, successCallback, cancelCallback); + }, + removePendingVideo: function removePendingVideo(url) { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + _NativeImagePickerIOS.default.removePendingVideo(url); + }, + clearAllPendingVideos: function clearAllPendingVideos() { + (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); + _NativeImagePickerIOS.default.clearAllPendingVideos(); + } + }; + module.exports = ImagePickerIOS; +},446,[3,447,17],"node_modules/react-native/Libraries/Image/ImagePickerIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('ImagePickerIOS'); + exports.default = _default; +},447,[16],"node_modules/react-native/Libraries/Image/NativeImagePickerIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeEventEmitter2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../EventEmitter/NativeEventEmitter")); + var _InteractionManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Interaction/InteractionManager")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Utilities/Platform")); + var _NativeLinkingManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeLinkingManager")); + var _NativeIntentAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NativeIntentAndroid")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "invariant")); + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "nullthrows")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var Linking = function (_NativeEventEmitter) { + (0, _inherits2.default)(Linking, _NativeEventEmitter); + var _super = _createSuper(Linking); + function Linking() { + (0, _classCallCheck2.default)(this, Linking); + return _super.call(this, _Platform.default.OS === 'ios' ? (0, _nullthrows.default)(_NativeLinkingManager.default) : undefined); + } + + (0, _createClass2.default)(Linking, [{ + key: "addEventListener", + value: + function addEventListener(eventType, listener, context) { + return this.addListener(eventType, listener); + } + + }, { + key: "openURL", + value: + function openURL(url) { + this._validateURL(url); + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).openURL(url); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).openURL(url); + } + } + + }, { + key: "canOpenURL", + value: + function canOpenURL(url) { + this._validateURL(url); + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).canOpenURL(url); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).canOpenURL(url); + } + } + + }, { + key: "openSettings", + value: + function openSettings() { + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).openSettings(); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).openSettings(); + } + } + + }, { + key: "getInitialURL", + value: + function getInitialURL() { + return _Platform.default.OS === 'android' ? _InteractionManager.default.runAfterInteractions().then(function () { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).getInitialURL(); + }) : (0, _nullthrows.default)(_NativeLinkingManager.default).getInitialURL(); + } + + }, { + key: "sendIntent", + value: + function sendIntent(action, extras) { + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).sendIntent(action, extras); + } else { + return new Promise(function (resolve, reject) { + return reject(new Error('Unsupported')); + }); + } + } + }, { + key: "_validateURL", + value: function _validateURL(url) { + (0, _invariant.default)(typeof url === 'string', 'Invalid URL: should be a string. Was: ' + url); + (0, _invariant.default)(url, 'Invalid URL: cannot be empty'); + } + }]); + return Linking; + }(_NativeEventEmitter2.default); + module.exports = new Linking(); +},448,[3,12,13,50,47,46,134,279,14,449,450,17,403],"node_modules/react-native/Libraries/Linking/Linking.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('LinkingManager'); + exports.default = _default; +},449,[16],"node_modules/react-native/Libraries/Linking/NativeLinkingManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('IntentAndroid'); + exports.default = _default; +},450,[16],"node_modules/react-native/Libraries/Linking/NativeIntentAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var PanResponder = { + _initializeGestureState: function _initializeGestureState(gestureState) { + gestureState.moveX = 0; + gestureState.moveY = 0; + gestureState.x0 = 0; + gestureState.y0 = 0; + gestureState.dx = 0; + gestureState.dy = 0; + gestureState.vx = 0; + gestureState.vy = 0; + gestureState.numberActiveTouches = 0; + gestureState._accountsForMovesUpTo = 0; + }, + _updateGestureStateOnMove: function _updateGestureStateOnMove(gestureState, touchHistory) { + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + gestureState.moveX = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); + gestureState.moveY = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); + var movedAfter = gestureState._accountsForMovesUpTo; + var prevX = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); + var x = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); + var prevY = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); + var y = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); + var nextDX = gestureState.dx + (x - prevX); + var nextDY = gestureState.dy + (y - prevY); + + var dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo; + gestureState.vx = (nextDX - gestureState.dx) / dt; + gestureState.vy = (nextDY - gestureState.dy) / dt; + gestureState.dx = nextDX; + gestureState.dy = nextDY; + gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp; + }, + create: function create(config) { + var interactionState = { + handle: null + }; + var gestureState = { + stateID: Math.random(), + moveX: 0, + moveY: 0, + x0: 0, + y0: 0, + dx: 0, + dy: 0, + vx: 0, + vy: 0, + numberActiveTouches: 0, + _accountsForMovesUpTo: 0 + }; + var panHandlers = { + onStartShouldSetResponder: function onStartShouldSetResponder(event) { + return config.onStartShouldSetPanResponder == null ? false : config.onStartShouldSetPanResponder(event, gestureState); + }, + onMoveShouldSetResponder: function onMoveShouldSetResponder(event) { + return config.onMoveShouldSetPanResponder == null ? false : config.onMoveShouldSetPanResponder(event, gestureState); + }, + onStartShouldSetResponderCapture: function onStartShouldSetResponderCapture(event) { + if (event.nativeEvent.touches.length === 1) { + PanResponder._initializeGestureState(gestureState); + } + gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches; + return config.onStartShouldSetPanResponderCapture != null ? config.onStartShouldSetPanResponderCapture(event, gestureState) : false; + }, + onMoveShouldSetResponderCapture: function onMoveShouldSetResponderCapture(event) { + var touchHistory = event.touchHistory; + if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { + return false; + } + PanResponder._updateGestureStateOnMove(gestureState, touchHistory); + return config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(event, gestureState) : false; + }, + onResponderGrant: function onResponderGrant(event) { + if (!interactionState.handle) { + interactionState.handle = _$$_REQUIRE(_dependencyMap[1], "./InteractionManager").createInteractionHandle(); + } + gestureState.x0 = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidX(event.touchHistory); + gestureState.y0 = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidY(event.touchHistory); + gestureState.dx = 0; + gestureState.dy = 0; + if (config.onPanResponderGrant) { + config.onPanResponderGrant(event, gestureState); + } + return config.onShouldBlockNativeResponder == null ? true : config.onShouldBlockNativeResponder(event, gestureState); + }, + onResponderReject: function onResponderReject(event) { + clearInteractionHandle(interactionState, config.onPanResponderReject, event, gestureState); + }, + onResponderRelease: function onResponderRelease(event) { + clearInteractionHandle(interactionState, config.onPanResponderRelease, event, gestureState); + PanResponder._initializeGestureState(gestureState); + }, + onResponderStart: function onResponderStart(event) { + var touchHistory = event.touchHistory; + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + if (config.onPanResponderStart) { + config.onPanResponderStart(event, gestureState); + } + }, + onResponderMove: function onResponderMove(event) { + var touchHistory = event.touchHistory; + if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { + return; + } + PanResponder._updateGestureStateOnMove(gestureState, touchHistory); + if (config.onPanResponderMove) { + config.onPanResponderMove(event, gestureState); + } + }, + onResponderEnd: function onResponderEnd(event) { + var touchHistory = event.touchHistory; + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + clearInteractionHandle(interactionState, config.onPanResponderEnd, event, gestureState); + }, + onResponderTerminate: function onResponderTerminate(event) { + clearInteractionHandle(interactionState, config.onPanResponderTerminate, event, gestureState); + PanResponder._initializeGestureState(gestureState); + }, + onResponderTerminationRequest: function onResponderTerminationRequest(event) { + return config.onPanResponderTerminationRequest == null ? true : config.onPanResponderTerminationRequest(event, gestureState); + } + }; + return { + panHandlers: panHandlers, + getInteractionHandle: function getInteractionHandle() { + return interactionState.handle; + } + }; + } + }; + function clearInteractionHandle(interactionState, callback, event, gestureState) { + if (interactionState.handle) { + _$$_REQUIRE(_dependencyMap[1], "./InteractionManager").clearInteractionHandle(interactionState.handle); + interactionState.handle = null; + } + if (callback) { + callback(event, gestureState); + } + } + module.exports = PanResponder; +},451,[452,279],"node_modules/react-native/Libraries/Interaction/PanResponder.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + var TouchHistoryMath = { + centroidDimension: function centroidDimension(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) { + var touchBank = touchHistory.touchBank; + var total = 0; + var count = 0; + var oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null; + if (oneTouchData !== null) { + if (oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter) { + total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY; + count = 1; + } + } else { + for (var i = 0; i < touchBank.length; i++) { + var touchTrack = touchBank[i]; + if (touchTrack !== null && touchTrack !== undefined && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) { + var toAdd = void 0; + if (ofCurrent && isXAxis) { + toAdd = touchTrack.currentPageX; + } else if (ofCurrent && !isXAxis) { + toAdd = touchTrack.currentPageY; + } else if (!ofCurrent && isXAxis) { + toAdd = touchTrack.previousPageX; + } else { + toAdd = touchTrack.previousPageY; + } + total += toAdd; + count++; + } + } + } + return count > 0 ? total / count : TouchHistoryMath.noCentroid; + }, + currentCentroidXOfTouchesChangedAfter: function currentCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, + true); + }, + + currentCentroidYOfTouchesChangedAfter: function currentCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, + true); + }, + + previousCentroidXOfTouchesChangedAfter: function previousCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, + false); + }, + + previousCentroidYOfTouchesChangedAfter: function previousCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, + false); + }, + + currentCentroidX: function currentCentroidX(touchHistory) { + return TouchHistoryMath.centroidDimension(touchHistory, 0, + true, + true); + }, + + currentCentroidY: function currentCentroidY(touchHistory) { + return TouchHistoryMath.centroidDimension(touchHistory, 0, + false, + true); + }, + + noCentroid: -1 + }; + module.exports = TouchHistoryMath; +},452,[],"node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _NativeDialogManagerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../NativeModules/specs/NativeDialogManagerAndroid")); + var _NativePermissionsAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativePermissionsAndroid")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + var PERMISSION_REQUEST_RESULT = Object.freeze({ + GRANTED: 'granted', + DENIED: 'denied', + NEVER_ASK_AGAIN: 'never_ask_again' + }); + var PERMISSIONS = 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', + 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_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', + NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES' + }); + + var PermissionsAndroid = function () { + function PermissionsAndroid() { + (0, _classCallCheck2.default)(this, PermissionsAndroid); + this.PERMISSIONS = PERMISSIONS; + this.RESULTS = PERMISSION_REQUEST_RESULT; + } + (0, _createClass2.default)(PermissionsAndroid, [{ + key: "checkPermission", + value: + function checkPermission(permission) { + console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'); + if ("ios" !== 'android') { + console.warn('"PermissionsAndroid" module works only for Android platform.'); + return Promise.resolve(false); + } + (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); + return _NativePermissionsAndroid.default.checkPermission(permission); + } + + }, { + key: "check", + value: + function check(permission) { + if ("ios" !== 'android') { + console.warn('"PermissionsAndroid" module works only for Android platform.'); + return Promise.resolve(false); + } + (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); + return _NativePermissionsAndroid.default.checkPermission(permission); + } + + }, { + key: "requestPermission", + value: function () { + var _requestPermission = (0, _asyncToGenerator2.default)(function* (permission, rationale) { + console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'); + if ("ios" !== 'android') { + console.warn('"PermissionsAndroid" module works only for Android platform.'); + return Promise.resolve(false); + } + var response = yield this.request(permission, rationale); + return response === this.RESULTS.GRANTED; + }); + function requestPermission(_x, _x2) { + return _requestPermission.apply(this, arguments); + } + return requestPermission; + }() + }, { + key: "request", + value: function () { + var _request = (0, _asyncToGenerator2.default)(function* (permission, rationale) { + if ("ios" !== 'android') { + console.warn('"PermissionsAndroid" module works only for Android platform.'); + return Promise.resolve(this.RESULTS.DENIED); + } + (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); + if (rationale) { + var shouldShowRationale = yield _NativePermissionsAndroid.default.shouldShowRequestPermissionRationale(permission); + if (shouldShowRationale && !!_NativeDialogManagerAndroid.default) { + return new Promise(function (resolve, reject) { + var options = Object.assign({}, rationale); + _NativeDialogManagerAndroid.default.showAlert( + options, function () { + return reject(new Error('Error showing rationale')); + }, function () { + return resolve(_NativePermissionsAndroid.default.requestPermission(permission)); + }); + }); + } + } + return _NativePermissionsAndroid.default.requestPermission(permission); + }); + function request(_x3, _x4) { + return _request.apply(this, arguments); + } + return request; + }() + }, { + key: "requestMultiple", + value: + function requestMultiple(permissions) { + if ("ios" !== 'android') { + console.warn('"PermissionsAndroid" module works only for Android platform.'); + return Promise.resolve({}); + } + (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); + return _NativePermissionsAndroid.default.requestMultiplePermissions(permissions); + } + }]); + return PermissionsAndroid; + }(); + var PermissionsAndroidInstance = new PermissionsAndroid(); + module.exports = PermissionsAndroidInstance; +},453,[3,65,12,13,146,454,17],"node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('PermissionsAndroid'); + exports.default = _default; +},454,[16],"node_modules/react-native/Libraries/PermissionsAndroid/NativePermissionsAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); + var _NativePushNotificationManagerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativePushNotificationManagerIOS")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); + + var PushNotificationEmitter = new _NativeEventEmitter.default( + _Platform.default.OS !== 'ios' ? null : _NativePushNotificationManagerIOS.default); + var _notifHandlers = new Map(); + var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived'; + var NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered'; + var NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError'; + var DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived'; + var PushNotificationIOS = function () { + function PushNotificationIOS(nativeNotif) { + var _this = this; + (0, _classCallCheck2.default)(this, PushNotificationIOS); + this._data = {}; + this._remoteNotificationCompleteCallbackCalled = false; + this._isRemote = nativeNotif.remote; + if (this._isRemote) { + this._notificationId = nativeNotif.notificationId; + } + if (nativeNotif.remote) { + Object.keys(nativeNotif).forEach(function (notifKey) { + var notifVal = nativeNotif[notifKey]; + if (notifKey === 'aps') { + _this._alert = notifVal.alert; + _this._sound = notifVal.sound; + _this._badgeCount = notifVal.badge; + _this._category = notifVal.category; + _this._contentAvailable = notifVal['content-available']; + _this._threadID = notifVal['thread-id']; + } else { + _this._data[notifKey] = notifVal; + } + }); + } else { + this._badgeCount = nativeNotif.applicationIconBadgeNumber; + this._sound = nativeNotif.soundName; + this._alert = nativeNotif.alertBody; + this._data = nativeNotif.userInfo; + this._category = nativeNotif.category; + } + } + + (0, _createClass2.default)(PushNotificationIOS, [{ + key: "finish", + value: + function finish(fetchResult) { + if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCallbackCalled) { + return; + } + this._remoteNotificationCompleteCallbackCalled = true; + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.onFinishRemoteNotification(this._notificationId, fetchResult); + } + + }, { + key: "getMessage", + value: + function getMessage() { + return this._alert; + } + + }, { + key: "getSound", + value: + function getSound() { + return this._sound; + } + + }, { + key: "getCategory", + value: + function getCategory() { + return this._category; + } + + }, { + key: "getAlert", + value: + function getAlert() { + return this._alert; + } + + }, { + key: "getContentAvailable", + value: + function getContentAvailable() { + return this._contentAvailable; + } + + }, { + key: "getBadgeCount", + value: + function getBadgeCount() { + return this._badgeCount; + } + + }, { + key: "getData", + value: + function getData() { + return this._data; + } + + }, { + key: "getThreadID", + value: + function getThreadID() { + return this._threadID; + } + }], [{ + key: "presentLocalNotification", + value: + function presentLocalNotification(details) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.presentLocalNotification(details); + } + + }, { + key: "scheduleLocalNotification", + value: + function scheduleLocalNotification(details) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.scheduleLocalNotification(details); + } + + }, { + key: "cancelAllLocalNotifications", + value: + function cancelAllLocalNotifications() { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.cancelAllLocalNotifications(); + } + + }, { + key: "removeAllDeliveredNotifications", + value: + function removeAllDeliveredNotifications() { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.removeAllDeliveredNotifications(); + } + + }, { + key: "getDeliveredNotifications", + value: + function getDeliveredNotifications(callback) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.getDeliveredNotifications(callback); + } + + }, { + key: "removeDeliveredNotifications", + value: + function removeDeliveredNotifications(identifiers) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.removeDeliveredNotifications(identifiers); + } + + }, { + key: "setApplicationIconBadgeNumber", + value: + function setApplicationIconBadgeNumber(number) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.setApplicationIconBadgeNumber(number); + } + + }, { + key: "getApplicationIconBadgeNumber", + value: + function getApplicationIconBadgeNumber(callback) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.getApplicationIconBadgeNumber(callback); + } + + }, { + key: "cancelLocalNotifications", + value: + function cancelLocalNotifications(userInfo) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.cancelLocalNotifications(userInfo); + } + + }, { + key: "getScheduledLocalNotifications", + value: + function getScheduledLocalNotifications(callback) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.getScheduledLocalNotifications(callback); + } + + }, { + key: "addEventListener", + value: + function addEventListener(type, handler) { + (0, _invariant.default)(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); + var listener; + if (type === 'notification') { + listener = PushNotificationEmitter.addListener(DEVICE_NOTIF_EVENT, function (notifData) { + handler(new PushNotificationIOS(notifData)); + }); + } else if (type === 'localNotification') { + listener = PushNotificationEmitter.addListener(DEVICE_LOCAL_NOTIF_EVENT, function (notifData) { + handler(new PushNotificationIOS(notifData)); + }); + } else if (type === 'register') { + listener = PushNotificationEmitter.addListener(NOTIF_REGISTER_EVENT, function (registrationInfo) { + handler(registrationInfo.deviceToken); + }); + } else if (type === 'registrationError') { + listener = PushNotificationEmitter.addListener(NOTIF_REGISTRATION_ERROR_EVENT, function (errorInfo) { + handler(errorInfo); + }); + } + _notifHandlers.set(type, listener); + } + + }, { + key: "removeEventListener", + value: + function removeEventListener(type, handler) { + (0, _invariant.default)(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); + var listener = _notifHandlers.get(type); + if (!listener) { + return; + } + listener.remove(); + _notifHandlers.delete(type); + } + + }, { + key: "requestPermissions", + value: + function requestPermissions(permissions) { + var requestedPermissions = { + alert: true, + badge: true, + sound: true + }; + if (permissions) { + requestedPermissions = { + alert: !!permissions.alert, + badge: !!permissions.badge, + sound: !!permissions.sound + }; + } + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + return _NativePushNotificationManagerIOS.default.requestPermissions(requestedPermissions); + } + + }, { + key: "abandonPermissions", + value: + function abandonPermissions() { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.abandonPermissions(); + } + + }, { + key: "checkPermissions", + value: + function checkPermissions(callback) { + (0, _invariant.default)(typeof callback === 'function', 'Must provide a valid callback'); + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.checkPermissions(callback); + } + + }, { + key: "getInitialNotification", + value: + function getInitialNotification() { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + return _NativePushNotificationManagerIOS.default.getInitialNotification().then(function (notification) { + return notification && new PushNotificationIOS(notification); + }); + } + + }, { + key: "getAuthorizationStatus", + value: + function getAuthorizationStatus(callback) { + (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); + _NativePushNotificationManagerIOS.default.getAuthorizationStatus(callback); + } + + }]); + return PushNotificationIOS; + }(); + PushNotificationIOS.FetchResult = { + NewData: 'UIBackgroundFetchResultNewData', + NoData: 'UIBackgroundFetchResultNoData', + ResultFailed: 'UIBackgroundFetchResultFailed' + }; + module.exports = PushNotificationIOS; +},455,[3,12,13,134,456,17,14],"node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('PushNotificationManager'); + exports.default = _default; +},456,[16],"node_modules/react-native/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeSettingsManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeSettingsManager")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); + + var subscriptions = []; + var Settings = { + _settings: _NativeSettingsManager.default && _NativeSettingsManager.default.getConstants().settings, + get: function get(key) { + return this._settings[key]; + }, + set: function set(settings) { + this._settings = Object.assign(this._settings, settings); + _NativeSettingsManager.default.setValues(settings); + }, + watchKeys: function watchKeys(keys, callback) { + if (typeof keys === 'string') { + keys = [keys]; + } + (0, _invariant.default)(Array.isArray(keys), 'keys should be a string or array of strings'); + var sid = subscriptions.length; + subscriptions.push({ + keys: keys, + callback: callback + }); + return sid; + }, + clearWatch: function clearWatch(watchId) { + if (watchId < subscriptions.length) { + subscriptions[watchId] = { + keys: [], + callback: null + }; + } + }, + _sendObservations: function _sendObservations(body) { + var _this = this; + Object.keys(body).forEach(function (key) { + var newValue = body[key]; + var didChange = _this._settings[key] !== newValue; + _this._settings[key] = newValue; + if (didChange) { + subscriptions.forEach(function (sub) { + if (sub.keys.indexOf(key) !== -1 && sub.callback) { + sub.callback(); + } + }); + } + }); + } + }; + _RCTDeviceEventEmitter.default.addListener('settingsUpdated', Settings._sendObservations.bind(Settings)); + module.exports = Settings; +},457,[3,4,458,17],"node_modules/react-native/Libraries/Settings/Settings.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('SettingsManager'); + exports.default = _default; +},458,[16],"node_modules/react-native/Libraries/Settings/NativeSettingsManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeActionSheetManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../ActionSheetIOS/NativeActionSheetManager")); + var _NativeShareModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeShareModule")); + var Share = function () { + function Share() { + (0, _classCallCheck2.default)(this, Share); + } + (0, _createClass2.default)(Share, null, [{ + key: "share", + value: + function share(content) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof content === 'object' && content !== null, 'Content to share must be a valid object'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); + if ("ios" === 'android') { + _$$_REQUIRE(_dependencyMap[5], "invariant")(_NativeShareModule.default, 'ShareModule should be registered on Android.'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(content.title == null || typeof content.title === 'string', 'Invalid title: title should be a string.'); + var newContent = { + title: content.title, + message: typeof content.message === 'string' ? content.message : undefined + }; + return _NativeShareModule.default.share(newContent, options.dialogTitle).then(function (result) { + return Object.assign({ + activityType: null + }, result); + }); + } else if ("ios" === 'ios') { + return new Promise(function (resolve, reject) { + var tintColor = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/processColor")(options.tintColor); + _$$_REQUIRE(_dependencyMap[5], "invariant")(tintColor == null || typeof tintColor === 'number', 'Unexpected color given for options.tintColor'); + _$$_REQUIRE(_dependencyMap[5], "invariant")(_NativeActionSheetManager.default, 'NativeActionSheetManager is not registered on iOS, but it should be.'); + _NativeActionSheetManager.default.showShareActionSheetWithOptions({ + message: typeof content.message === 'string' ? content.message : undefined, + url: typeof content.url === 'string' ? content.url : undefined, + subject: options.subject, + tintColor: typeof tintColor === 'number' ? tintColor : undefined, + excludedActivityTypes: options.excludedActivityTypes + }, function (error) { + return reject(error); + }, function (success, activityType) { + if (success) { + resolve({ + action: 'sharedAction', + activityType: activityType + }); + } else { + resolve({ + action: 'dismissedAction', + activityType: null + }); + } + }); + }); + } else { + return Promise.reject(new Error('Unsupported platform')); + } + } + + }]); + return Share; + }(); + Share.sharedAction = 'sharedAction'; + Share.dismissedAction = 'dismissedAction'; + module.exports = Share; +},459,[3,12,13,410,460,17,159],"node_modules/react-native/Libraries/Share/Share.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('ShareModule'); + exports.default = _default; +},460,[16],"node_modules/react-native/Libraries/Share/NativeShareModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + var ToastAndroid = { + show: function show(message, duration) { + console.warn('ToastAndroid is not supported on this platform.'); + }, + showWithGravity: function showWithGravity(message, duration, gravity) { + console.warn('ToastAndroid is not supported on this platform.'); + }, + showWithGravityAndOffset: function showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset) { + console.warn('ToastAndroid is not supported on this platform.'); + } + }; + module.exports = ToastAndroid; +},461,[],"node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useColorScheme; + var _Appearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Appearance")); + function useColorScheme() { + return (0, _$$_REQUIRE(_dependencyMap[2], "use-sync-external-store/shim").useSyncExternalStore)(function (callback) { + var appearanceSubscription = _Appearance.default.addChangeListener(callback); + return function () { + return appearanceSubscription.remove(); + }; + }, function () { + return _Appearance.default.getColorScheme(); + }); + } +},462,[3,164,463],"node_modules/react-native/Libraries/Utilities/useColorScheme.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "../cjs/use-sync-external-store-shim.native.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "../cjs/use-sync-external-store-shim.native.development.js"); + } +},463,[464,465],"node_modules/use-sync-external-store/shim/index.native.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * use-sync-external-store-shim.native.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + var e = _$$_REQUIRE(_dependencyMap[0], "react"); + function h(a, b) { + return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; + } + var k = "function" === typeof Object.is ? Object.is : h, + l = e.useState, + m = e.useEffect, + n = e.useLayoutEffect, + p = e.useDebugValue; + function q(a, b) { + var d = b(), + f = l({ + inst: { + value: d, + getSnapshot: b + } + }), + c = f[0].inst, + g = f[1]; + n(function () { + c.value = d; + c.getSnapshot = b; + r(c) && g({ + inst: c + }); + }, [a, d, b]); + m(function () { + r(c) && g({ + inst: c + }); + return a(function () { + r(c) && g({ + inst: c + }); + }); + }, [a]); + p(d); + return d; + } + function r(a) { + var b = a.getSnapshot; + a = a.value; + try { + var d = b(); + return !k(a, d); + } catch (f) { + return !0; + } + } + exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : q; +},464,[36],"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * use-sync-external-store-shim.native.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning('error', format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + + var argsWithFormat = args.map(function (item) { + return String(item); + }); + + argsWithFormat.unshift('Warning: ' + format); + + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + } + + var objectIs = typeof Object.is === 'function' ? Object.is : is; + + var useState = React.useState, + useEffect = React.useEffect, + useLayoutEffect = React.useLayoutEffect, + useDebugValue = React.useDebugValue; + var didWarnOld18Alpha = false; + var didWarnUncachedGetSnapshot = false; + + function useSyncExternalStore(subscribe, getSnapshot, + getServerSnapshot) { + { + if (!didWarnOld18Alpha) { + if (React.startTransition !== undefined) { + didWarnOld18Alpha = true; + error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.'); + } + } + } + + var value = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedValue = getSnapshot(); + if (!objectIs(value, cachedValue)) { + error('The result of getSnapshot should be cached to avoid an infinite loop'); + didWarnUncachedGetSnapshot = true; + } + } + } + + var _useState = useState({ + inst: { + value: value, + getSnapshot: getSnapshot + } + }), + inst = _useState[0].inst, + forceUpdate = _useState[1]; + + useLayoutEffect(function () { + inst.value = value; + inst.getSnapshot = getSnapshot; + + if (checkIfSnapshotChanged(inst)) { + forceUpdate({ + inst: inst + }); + } + }, [subscribe, value, getSnapshot]); + useEffect(function () { + if (checkIfSnapshotChanged(inst)) { + forceUpdate({ + inst: inst + }); + } + var handleStoreChange = function handleStoreChange() { + if (checkIfSnapshotChanged(inst)) { + forceUpdate({ + inst: inst + }); + } + }; + + return subscribe(handleStoreChange); + }, [subscribe]); + useDebugValue(value); + return value; + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + var prevValue = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(prevValue, nextValue); + } catch (error) { + return true; + } + } + var shim = useSyncExternalStore; + var useSyncExternalStore$1 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim; + exports.useSyncExternalStore = useSyncExternalStore$1; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},465,[36],"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useWindowDimensions; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./Dimensions")); + var _react = _$$_REQUIRE(_dependencyMap[3], "react"); + + function useWindowDimensions() { + var _useState = (0, _react.useState)(function () { + return _Dimensions.default.get('window'); + }), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + dimensions = _useState2[0], + setDimensions = _useState2[1]; + (0, _react.useEffect)(function () { + function handleChange(_ref) { + var window = _ref.window; + if (dimensions.width !== window.width || dimensions.height !== window.height || dimensions.scale !== window.scale || dimensions.fontScale !== window.fontScale) { + setDimensions(window); + } + } + var subscription = _Dimensions.default.addEventListener('change', handleChange); + handleChange({ + window: _Dimensions.default.get('window') + }); + return function () { + subscription.remove(); + }; + }, [dimensions]); + return dimensions; + } +},466,[3,19,229,36],"node_modules/react-native/Libraries/Utilities/useWindowDimensions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeVibration = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeVibration")); + + var _vibrating = false; + var _id = 0; + var _default_vibration_length = 400; + function vibrateByPattern(pattern) { + var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + if (_vibrating) { + return; + } + _vibrating = true; + if (pattern[0] === 0) { + _NativeVibration.default.vibrate(_default_vibration_length); + pattern = pattern.slice(1); + } + if (pattern.length === 0) { + _vibrating = false; + return; + } + setTimeout(function () { + return vibrateScheduler(++_id, pattern, repeat, 1); + }, pattern[0]); + } + function vibrateScheduler(id, pattern, repeat, nextIndex) { + if (!_vibrating || id !== _id) { + return; + } + _NativeVibration.default.vibrate(_default_vibration_length); + if (nextIndex >= pattern.length) { + if (repeat) { + nextIndex = 0; + } else { + _vibrating = false; + return; + } + } + setTimeout(function () { + return vibrateScheduler(id, pattern, repeat, nextIndex + 1); + }, pattern[nextIndex]); + } + var Vibration = { + vibrate: function vibrate() { + var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _default_vibration_length; + var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + if ("ios" === 'android') { + if (typeof pattern === 'number') { + _NativeVibration.default.vibrate(pattern); + } else if (Array.isArray(pattern)) { + _NativeVibration.default.vibrateByPattern(pattern, repeat ? 0 : -1); + } else { + throw new Error('Vibration pattern should be a number or array'); + } + } else { + if (_vibrating) { + return; + } + if (typeof pattern === 'number') { + _NativeVibration.default.vibrate(pattern); + } else if (Array.isArray(pattern)) { + vibrateByPattern(pattern, repeat); + } else { + throw new Error('Vibration pattern should be a number or array'); + } + } + }, + cancel: function cancel() { + if ("ios" === 'ios') { + _vibrating = false; + } else { + _NativeVibration.default.cancel(); + } + } + }; + module.exports = Vibration; +},467,[3,468],"node_modules/react-native/Libraries/Vibration/Vibration.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.getEnforcing('Vibration'); + exports.default = _default; +},468,[16],"node_modules/react-native/Libraries/Vibration/NativeVibration.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var YellowBox; + if (__DEV__) { + YellowBox = function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(YellowBox, _React$Component); + var _super = _createSuper(YellowBox); + function YellowBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, YellowBox); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(YellowBox, [{ + key: "render", + value: function render() { + return null; + } + }], [{ + key: "ignoreWarnings", + value: function ignoreWarnings(patterns) { + console.warn('YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.'); + _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").ignoreLogs(patterns); + } + }, { + key: "install", + value: function install() { + console.warn('YellowBox has been replaced with LogBox. Please call LogBox.install() instead.'); + _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").install(); + } + }, { + key: "uninstall", + value: function uninstall() { + console.warn('YellowBox has been replaced with LogBox. Please call LogBox.uninstall() instead.'); + _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").uninstall(); + } + }]); + return YellowBox; + }(React.Component); + } else { + YellowBox = function (_React$Component2) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(YellowBox, _React$Component2); + var _super2 = _createSuper(YellowBox); + function YellowBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, YellowBox); + return _super2.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(YellowBox, [{ + key: "render", + value: function render() { + return null; + } + }], [{ + key: "ignoreWarnings", + value: function ignoreWarnings(patterns) { + } + }, { + key: "install", + value: function install() { + } + }, { + key: "uninstall", + value: function uninstall() { + } + }]); + return YellowBox; + }(React.Component); + } + + module.exports = YellowBox; +},469,[46,47,36,50,12,13,59],"node_modules/react-native/Libraries/YellowBox/YellowBoxDeprecated.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.DynamicColorIOS = void 0; + + var DynamicColorIOS = function DynamicColorIOS(tuple) { + return (0, _$$_REQUIRE(_dependencyMap[0], "./PlatformColorValueTypes").DynamicColorIOSPrivate)({ + light: tuple.light, + dark: tuple.dark, + highContrastLight: tuple.highContrastLight, + highContrastDark: tuple.highContrastDark + }); + }; + exports.DynamicColorIOS = DynamicColorIOS; +},470,[162],"node_modules/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _react = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react")); + var _SettingsScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./screens/SettingsScreen")); + var _CheckoutScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./screens/CheckoutScreen")); + var _ResultScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./screens/ResultScreen")); + var _NewLineItemSreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./screens/NewLineItemSreen")); + var _RawCardDataScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./screens/RawCardDataScreen")); + var _RawPhoneNumberScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./screens/RawPhoneNumberScreen")); + var _RawAdyenBancontactCardScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./screens/RawAdyenBancontactCardScreen")); + var _RawRetailOutletScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./screens/RawRetailOutletScreen")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/App.tsx"; + var Stack = (0, _$$_REQUIRE(_dependencyMap[10], "@react-navigation/native-stack").createNativeStackNavigator)(); + var App = function App() { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-navigation/native").NavigationContainer, { + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(Stack.Navigator, { + children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "Settings", + component: _SettingsScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "NewLineItem", + component: _NewLineItemSreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "Checkout", + component: _CheckoutScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "HUC", + component: _$$_REQUIRE(_dependencyMap[13], "./screens/HeadlessCheckoutScreen").HeadlessCheckoutScreen + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "Result", + component: _ResultScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "RawCardData", + component: _RawCardDataScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "RawPhoneNumberData", + component: _RawPhoneNumberScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "RawAdyenBancontactCard", + component: _RawAdyenBancontactCardScreen.default + }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { + name: "RawRetailOutlet", + component: _RawRetailOutletScreen.default + })] + }) + }); + }; + var _default = App; + exports.default = _default; +},471,[3,36,472,499,578,579,580,581,582,583,584,73,590,731],"src/App.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.customClientToken = exports.customApiKey = void 0; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _segmentedControl = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@react-native-segmented-control/segmented-control")); + var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../components/TextField")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/SettingsScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var customApiKey; + exports.customApiKey = customApiKey; + var customClientToken; + + exports.customClientToken = customClientToken; + var SettingsScreen = function SettingsScreen(_ref) { + var _appPaymentParameters, _appPaymentParameters2, _appPaymentParameters3, _appPaymentParameters4, _appPaymentParameters5, _appPaymentParameters6, _appPaymentParameters7, _appPaymentParameters8, _appPaymentParameters9, _appPaymentParameters10, _appPaymentParameters11, _appPaymentParameters12, _appPaymentParameters13, _appPaymentParameters14, _appPaymentParameters15, _appPaymentParameters16, _appPaymentParameters17, _appPaymentParameters18, _appPaymentParameters19, _appPaymentParameters20, _appPaymentParameters21, _appPaymentParameters22, _appPaymentParameters23, _appPaymentParameters24, _appPaymentParameters25, _appPaymentParameters26, _appPaymentParameters27, _appPaymentParameters28, _appPaymentParameters29, _appPaymentParameters30, _appPaymentParameters31, _appPaymentParameters32, _appPaymentParameters33, _appPaymentParameters34, _appPaymentParameters35, _appPaymentParameters36, _appPaymentParameters37, _appPaymentParameters38, _appPaymentParameters39, _appPaymentParameters40, _appPaymentParameters41, _appPaymentParameters42; + var navigation = _ref.navigation; + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + var _React$useState = React.useState(_$$_REQUIRE(_dependencyMap[7], "../network/Environment").Environment.Sandbox), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + environment = _React$useState2[0], + setEnvironment = _React$useState2[1]; + var _React$useState3 = React.useState(customApiKey), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + apiKey = _React$useState4[0], + setApiKey = _React$useState4[1]; + var _React$useState5 = React.useState(undefined), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + clientToken = _React$useState6[0], + setClientToken = _React$useState6[1]; + var _React$useState7 = React.useState(_$$_REQUIRE(_dependencyMap[7], "../network/Environment").PaymentHandling.Auto), + _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), + paymentHandling = _React$useState8[0], + setPaymentHandling = _React$useState8[1]; + var _React$useState9 = React.useState(((_appPaymentParameters = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.order) == null ? void 0 : _appPaymentParameters.lineItems) || []), + _React$useState10 = (0, _slicedToArray2.default)(_React$useState9, 2), + lineItems = _React$useState10[0], + setLineItems = _React$useState10[1]; + var _React$useState11 = React.useState("EUR"), + _React$useState12 = (0, _slicedToArray2.default)(_React$useState11, 2), + currency = _React$useState12[0], + setCurrency = _React$useState12[1]; + var _React$useState13 = React.useState("PT"), + _React$useState14 = (0, _slicedToArray2.default)(_React$useState13, 2), + countryCode = _React$useState14[0], + setCountryCode = _React$useState14[1]; + var _React$useState15 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.orderId), + _React$useState16 = (0, _slicedToArray2.default)(_React$useState15, 2), + orderId = _React$useState16[0], + setOrderId = _React$useState16[1]; + var _React$useState17 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName), + _React$useState18 = (0, _slicedToArray2.default)(_React$useState17, 2), + merchantName = _React$useState18[0], + setMerchantName = _React$useState18[1]; + var _React$useState19 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer !== undefined), + _React$useState20 = (0, _slicedToArray2.default)(_React$useState19, 2), + isCustomerApplied = _React$useState20[0], + setIsCustomerApplied = _React$useState20[1]; + var _React$useState21 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customerId), + _React$useState22 = (0, _slicedToArray2.default)(_React$useState21, 2), + customerId = _React$useState22[0], + setCustomerId = _React$useState22[1]; + var _React$useState23 = React.useState((_appPaymentParameters2 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters2.firstName), + _React$useState24 = (0, _slicedToArray2.default)(_React$useState23, 2), + firstName = _React$useState24[0], + setFirstName = _React$useState24[1]; + var _React$useState25 = React.useState((_appPaymentParameters3 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters3.lastName), + _React$useState26 = (0, _slicedToArray2.default)(_React$useState25, 2), + lastName = _React$useState26[0], + setLastName = _React$useState26[1]; + var _React$useState27 = React.useState((_appPaymentParameters4 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters4.emailAddress), + _React$useState28 = (0, _slicedToArray2.default)(_React$useState27, 2), + email = _React$useState28[0], + setEmail = _React$useState28[1]; + var _React$useState29 = React.useState((_appPaymentParameters5 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters5.mobileNumber), + _React$useState30 = (0, _slicedToArray2.default)(_React$useState29, 2), + phoneNumber = _React$useState30[0], + setPhoneNumber = _React$useState30[1]; + var _React$useState31 = React.useState((_appPaymentParameters6 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters6.nationalDocumentId), + _React$useState32 = (0, _slicedToArray2.default)(_React$useState31, 2), + nationalDocumentId = _React$useState32[0], + setNationalDocumentId = _React$useState32[1]; + var _React$useState33 = React.useState(((_appPaymentParameters7 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters7.billingAddress) !== undefined), + _React$useState34 = (0, _slicedToArray2.default)(_React$useState33, 2), + isAddressApplied = _React$useState34[0], + setIsAddressApplied = _React$useState34[1]; + var _React$useState35 = React.useState((_appPaymentParameters8 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters9 = _appPaymentParameters8.billingAddress) == null ? void 0 : _appPaymentParameters9.addressLine1), + _React$useState36 = (0, _slicedToArray2.default)(_React$useState35, 2), + addressLine1 = _React$useState36[0], + setAddressLine1 = _React$useState36[1]; + var _React$useState37 = React.useState((_appPaymentParameters10 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters11 = _appPaymentParameters10.billingAddress) == null ? void 0 : _appPaymentParameters11.addressLine2), + _React$useState38 = (0, _slicedToArray2.default)(_React$useState37, 2), + addressLine2 = _React$useState38[0], + setAddressLine2 = _React$useState38[1]; + var _React$useState39 = React.useState((_appPaymentParameters12 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters13 = _appPaymentParameters12.billingAddress) == null ? void 0 : _appPaymentParameters13.postalCode), + _React$useState40 = (0, _slicedToArray2.default)(_React$useState39, 2), + postalCode = _React$useState40[0], + setPostalCode = _React$useState40[1]; + var _React$useState41 = React.useState((_appPaymentParameters14 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters15 = _appPaymentParameters14.billingAddress) == null ? void 0 : _appPaymentParameters15.city), + _React$useState42 = (0, _slicedToArray2.default)(_React$useState41, 2), + city = _React$useState42[0], + setCity = _React$useState42[1]; + var _React$useState43 = React.useState((_appPaymentParameters16 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters17 = _appPaymentParameters16.billingAddress) == null ? void 0 : _appPaymentParameters17.state), + _React$useState44 = (0, _slicedToArray2.default)(_React$useState43, 2), + state = _React$useState44[0], + setState = _React$useState44[1]; + var _React$useState45 = React.useState((_appPaymentParameters18 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters19 = _appPaymentParameters18.billingAddress) == null ? void 0 : _appPaymentParameters19.countryCode), + _React$useState46 = (0, _slicedToArray2.default)(_React$useState45, 2), + customerAddressCountryCode = _React$useState46[0], + setCustomerAddressCountryCode = _React$useState46[1]; + var _React$useState47 = React.useState(true), + _React$useState48 = (0, _slicedToArray2.default)(_React$useState47, 2), + isSurchargeApplied = _React$useState48[0], + setIsSurchargeApplied = _React$useState48[1]; + var _React$useState49 = React.useState((_appPaymentParameters20 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters21 = _appPaymentParameters20.options) == null ? void 0 : (_appPaymentParameters22 = _appPaymentParameters21.APPLE_PAY) == null ? void 0 : _appPaymentParameters22.surcharge.amount), + _React$useState50 = (0, _slicedToArray2.default)(_React$useState49, 2), + applePaySurcharge = _React$useState50[0], + setApplePaySurcharge = _React$useState50[1]; + var _React$useState51 = React.useState((_appPaymentParameters23 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters24 = _appPaymentParameters23.options) == null ? void 0 : (_appPaymentParameters25 = _appPaymentParameters24.GOOGLE_PAY) == null ? void 0 : _appPaymentParameters25.surcharge.amount), + _React$useState52 = (0, _slicedToArray2.default)(_React$useState51, 2), + googlePaySurcharge = _React$useState52[0], + setGooglePaySurcharge = _React$useState52[1]; + var _React$useState53 = React.useState((_appPaymentParameters26 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters27 = _appPaymentParameters26.options) == null ? void 0 : (_appPaymentParameters28 = _appPaymentParameters27.ADYEN_GIROPAY) == null ? void 0 : _appPaymentParameters28.surcharge.amount), + _React$useState54 = (0, _slicedToArray2.default)(_React$useState53, 2), + adyenGiropaySurcharge = _React$useState54[0], + setAdyenGiropaySurcharge = _React$useState54[1]; + var _React$useState55 = React.useState((_appPaymentParameters29 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters30 = _appPaymentParameters29.options) == null ? void 0 : (_appPaymentParameters31 = _appPaymentParameters30.ADYEN_IDEAL) == null ? void 0 : _appPaymentParameters31.surcharge.amount), + _React$useState56 = (0, _slicedToArray2.default)(_React$useState55, 2), + adyenIdealSurcharge = _React$useState56[0], + setAdyenIdealSurcharge = _React$useState56[1]; + var _React$useState57 = React.useState((_appPaymentParameters32 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters33 = _appPaymentParameters32.options) == null ? void 0 : (_appPaymentParameters34 = _appPaymentParameters33.ADYEN_SOFORT) == null ? void 0 : _appPaymentParameters34.surcharge.amount), + _React$useState58 = (0, _slicedToArray2.default)(_React$useState57, 2), + adyenSofortSurcharge = _React$useState58[0], + setAdyenSofortySurcharge = _React$useState58[1]; + var _React$useState59 = React.useState((_appPaymentParameters35 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters36 = _appPaymentParameters35.options) == null ? void 0 : (_appPaymentParameters37 = _appPaymentParameters36.PAYMENT_CARD) == null ? void 0 : (_appPaymentParameters38 = _appPaymentParameters37.networks.VISA) == null ? void 0 : _appPaymentParameters38.surcharge.amount), + _React$useState60 = (0, _slicedToArray2.default)(_React$useState59, 2), + visaSurcharge = _React$useState60[0], + setVisaSurcharge = _React$useState60[1]; + var _React$useState61 = React.useState((_appPaymentParameters39 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters40 = _appPaymentParameters39.options) == null ? void 0 : (_appPaymentParameters41 = _appPaymentParameters40.PAYMENT_CARD) == null ? void 0 : (_appPaymentParameters42 = _appPaymentParameters41.networks.MASTERCARD) == null ? void 0 : _appPaymentParameters42.surcharge.amount), + _React$useState62 = (0, _slicedToArray2.default)(_React$useState61, 2), + masterCardSurcharge = _React$useState62[0], + setMasterCardSurcharge = _React$useState62[1]; + var backgroundStyle = { + backgroundColor: isDarkMode ? _$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/NewAppScreen").Colors.black : _$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/NewAppScreen").Colors.white + }; + var renderEnvironmentSection = function renderEnvironmentSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), + children: "Environment" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_segmentedControl.default, { + style: { + marginTop: 6 + }, + values: ['Dev', 'Sandbox', 'Staging', 'Production'], + selectedIndex: environment, + onChange: function onChange(event) { + var selectedIndex = event.nativeEvent.selectedSegmentIndex; + var selectedEnvironment = (0, _$$_REQUIRE(_dependencyMap[7], "../network/Environment").makeEnvironmentFromIntVal)(selectedIndex); + setEnvironment(selectedEnvironment); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "API Key", + style: { + marginVertical: 8 + }, + value: apiKey, + placeholder: 'Set API key', + onChangeText: function onChangeText(text) { + setApiKey(text); + exports.customApiKey = customApiKey = text; + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Client token", + style: { + marginVertical: 8 + }, + value: clientToken, + placeholder: 'Set client token', + onChangeText: function onChangeText(text) { + setClientToken(text); + } + })] + }); + }; + var renderPaymentHandlingSection = function renderPaymentHandlingSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), + children: "Payment Handling" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_segmentedControl.default, { + style: { + marginTop: 6 + }, + values: ['Auto', 'Manual'], + selectedIndex: paymentHandling, + onChange: function onChange(event) { + var selectedIndex = event.nativeEvent.selectedSegmentIndex; + var selectedPaymentHandling = (0, _$$_REQUIRE(_dependencyMap[7], "../network/Environment").makePaymentHandlingFromIntVal)(selectedIndex); + setPaymentHandling(selectedPaymentHandling); + } + })] + }); + }; + var renderOrderSection = function renderOrderSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), + children: "Order" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 8, + marginBottom: 4 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading2), + children: "Currency & Country Code" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flexDirection: 'row', + marginHorizontal: 20, + marginTop: -10, + marginBottom: 140 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker, { + selectedValue: currency, + style: { + height: 50, + flex: 1 + }, + onValueChange: function onValueChange(itemValue) { + setCurrency(itemValue); + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "EUR", + value: "EUR" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "GBP", + value: "GBP" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "USD", + value: "USD" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "SEK", + value: "SEK" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "SGD", + value: "SGD" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "PLN", + value: "PLN" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "THB", + value: "THB" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "IDR", + value: "IDR" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "AUD", + value: "AUD" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "PHP", + value: "PHP" + })] + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker, { + selectedValue: countryCode, + style: { + height: 50, + flex: 1 + }, + onValueChange: function onValueChange(itemValue) { + setCountryCode(itemValue); + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "DE", + value: "DE" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "AT", + value: "AT" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "FR", + value: "FR" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "GB", + value: "GB" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "US", + value: "US" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "SE", + value: "SE" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "SG", + value: "SG" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "PL", + value: "PL" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "PT", + value: "PT" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "TH", + value: "TH" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "ID", + value: "ID" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "AU", + value: "AU" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "NL", + value: "NL" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-native-picker/picker").Picker.Item, { + label: "PH", + value: "PH" + })] + })] + })] + }), renderLineItems(), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + marginTop: 8, + marginBottom: 4 + }, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Order ID", + value: orderId, + onChangeText: function onChangeText(text) { + setOrderId(text); + } + }) + })] + }); + }; + var renderLineItems = function renderLineItems() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 8, + marginBottom: 4 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: 'row', + marginBottom: 4 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading2), + children: "Line Items" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flexGrow: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + var newLineItemsScreenProps = { + onAddLineItem: function onAddLineItem(lineItem) { + var currentLineItems = (0, _toConsumableArray2.default)(lineItems); + currentLineItems.push(lineItem); + setLineItems(currentLineItems); + } + }; + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + color: 'blue' + }, + children: "+Add Line Item" + }) + })] + }), lineItems.map(function (item, index) { + (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.TouchableOpacity, { + style: { + flex: 1, + flexDirection: 'row', + marginVertical: 4 + }, + onPress: function onPress() { + var newLineItemsScreenProps = { + lineItem: item, + onEditLineItem: function onEditLineItem(editedLineItem) { + var currentLineItems = (0, _toConsumableArray2.default)(lineItems); + var index = currentLineItems.indexOf(item, 0); + currentLineItems[index] = editedLineItem; + setLineItems(currentLineItems); + }, + onRemoveLineItem: function onRemoveLineItem(lineItem) { + var currentLineItems = (0, _toConsumableArray2.default)(lineItems); + var index = currentLineItems.indexOf(lineItem, 0); + if (index > -1) { + currentLineItems.splice(index, 1); + } + setLineItems(currentLineItems); + } + }; + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.Text, { + children: [item.description, " ", "x" + item.quantity] + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flexGrow: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: item.amount + })] + }, "" + index); + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: 'row', + marginVertical: 4 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + fontWeight: '600' + }, + children: "Total" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flexGrow: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + fontWeight: '600' + }, + children: "" + (lineItems || []).map(function (item) { + return item.amount * item.quantity; + }).reduce(function (prev, next) { + return prev + next; + }, 0) + })] + })] + }); + }; + var renderRequiredSettings = function renderRequiredSettings() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 32, + marginBottom: 12 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[11], "../styles").styles.sectionTitle, { + color: "black" + }], + children: "Required Settings" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[11], "../styles").styles.sectionDescription, { + color: "black" + }], + children: "The settings below cannot be left blank." + }), renderEnvironmentSection(), renderPaymentHandlingSection(), renderOrderSection()] + }); + }; + var renderSurchargeSection = function renderSurchargeSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: 'row' + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1, { + marginBottom: 4 + }), + children: "Surcharge" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flex: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Switch, { + value: isSurchargeApplied, + onValueChange: function onValueChange(val) { + setIsSurchargeApplied(val); + } + })] + }), !isSurchargeApplied ? null : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Apple Pay Surcharge", + style: { + marginVertical: 4 + }, + value: applePaySurcharge === undefined ? undefined : "" + applePaySurcharge, + placeholder: 'Set Apple Pay surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setApplePaySurcharge(tmpSurcharge); + } else { + setApplePaySurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Google Pay Surcharge", + style: { + marginVertical: 4 + }, + value: googlePaySurcharge === undefined ? undefined : "" + googlePaySurcharge, + placeholder: 'Set Google Pay surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setGooglePaySurcharge(tmpSurcharge); + } else { + setGooglePaySurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Adyen Giropay Surcharge", + style: { + marginVertical: 4 + }, + value: adyenGiropaySurcharge === undefined ? undefined : "" + adyenGiropaySurcharge, + placeholder: 'Set Adyen Giropay surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenGiropaySurcharge(tmpSurcharge); + } else { + setAdyenGiropaySurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Adyen IDeal Surcharge", + style: { + marginVertical: 4 + }, + value: adyenIdealSurcharge === undefined ? undefined : "" + adyenIdealSurcharge, + placeholder: 'Set Adyen IDeal surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenIdealSurcharge(tmpSurcharge); + } else { + setAdyenIdealSurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Adyen Sofort Surcharge", + style: { + marginVertical: 4 + }, + value: adyenSofortSurcharge === undefined ? undefined : "" + adyenSofortSurcharge, + placeholder: 'Set Adyen Sofort surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setAdyenSofortySurcharge(tmpSurcharge); + } else { + setAdyenSofortySurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "VISA Surcharge", + style: { + marginVertical: 4 + }, + value: visaSurcharge === undefined ? undefined : "" + visaSurcharge, + placeholder: 'Set VISA surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setVisaSurcharge(tmpSurcharge); + } else { + setVisaSurcharge(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "MasterCard Surcharge", + style: { + marginVertical: 4 + }, + value: masterCardSurcharge === undefined ? undefined : "" + masterCardSurcharge, + placeholder: 'Set MasterCard surcharge', + onChangeText: function onChangeText(text) { + var tmpSurcharge = Number(text); + if (!isNaN(tmpSurcharge) && tmpSurcharge > 0) { + setMasterCardSurcharge(tmpSurcharge); + } else { + setMasterCardSurcharge(undefined); + } + } + })] + })] + }); + }; + var renderCustomerSection = function renderCustomerSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: 'row' + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1, { + marginBottom: 4 + }), + children: "Customer" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flex: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Switch, { + value: isCustomerApplied, + onValueChange: function onValueChange(val) { + setIsCustomerApplied(val); + } + })] + }), !isCustomerApplied ? null : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "ID", + style: { + marginVertical: 4 + }, + value: customerId, + placeholder: 'Set a unique ID for your customer', + onChangeText: function onChangeText(text) { + setCustomerId(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "First Name", + style: { + marginVertical: 4 + }, + value: firstName, + placeholder: 'Set your customer\'s first name', + onChangeText: function onChangeText(text) { + setFirstName(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Last Name", + style: { + marginVertical: 4 + }, + value: lastName, + placeholder: 'Set your customer\'s last name', + onChangeText: function onChangeText(text) { + setLastName(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Email", + style: { + marginVertical: 4 + }, + value: email, + placeholder: 'Set your customer\'s email', + onChangeText: function onChangeText(text) { + setEmail(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Mobile Number", + style: { + marginVertical: 4 + }, + value: phoneNumber, + placeholder: 'Set your customer\'s mobile number', + onChangeText: function onChangeText(text) { + setPhoneNumber(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "National Document ID", + style: { + marginVertical: 4 + }, + value: nationalDocumentId, + placeholder: 'Set your customer\'s national doc ID', + onChangeText: function onChangeText(text) { + setNationalDocumentId(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: 'row' + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1, { + marginBottom: 4 + }), + children: "Address" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flex: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Switch, { + value: isAddressApplied, + onValueChange: function onValueChange(val) { + setIsAddressApplied(val); + } + })] + }), !isAddressApplied ? null : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Line 1", + style: { + marginVertical: 4 + }, + value: addressLine1, + placeholder: 'Set your customer\'s address line 1', + onChangeText: function onChangeText(text) { + setAddressLine1(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Line 2", + style: { + marginVertical: 4 + }, + value: addressLine2, + placeholder: 'Set your customer\'s address line 2', + onChangeText: function onChangeText(text) { + setAddressLine2(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Postal Code", + style: { + marginVertical: 4 + }, + value: postalCode, + placeholder: 'Set your customer\'s postal code', + onChangeText: function onChangeText(text) { + setPostalCode(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "City", + style: { + marginVertical: 4 + }, + value: city, + placeholder: 'Set your customer\'s city', + onChangeText: function onChangeText(text) { + setCity(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "State", + style: { + marginVertical: 4 + }, + value: state, + placeholder: 'Set your customer\'s state', + onChangeText: function onChangeText(text) { + setState(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Country Code", + style: { + marginVertical: 4 + }, + value: customerAddressCountryCode, + placeholder: 'Set your customer\'s country code', + onChangeText: function onChangeText(text) { + setCustomerAddressCountryCode(text); + } + })] + })] + })] + })] + }); + }; + var renderMerchantSection = function renderMerchantSection() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 12, + marginBottom: 8 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), + children: "Merchant Name" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { + value: merchantName, + placeholder: 'Set merchant name that is presented on Apple Pay', + onChangeText: function onChangeText(text) { + setMerchantName(text); + } + })] + }); + }; + var renderOptionalSettings = function renderOptionalSettings() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginTop: 32, + marginBottom: 12 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[11], "../styles").styles.sectionTitle, { + color: "black" + }], + children: "Optional Settings" + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[11], "../styles").styles.sectionDescription, { + color: "black" + }], + children: "These settings are not required, however some payment methods may need them." + }), renderMerchantSection(), renderCustomerSection(), renderSurchargeSection()] + }); + }; + var renderActions = function renderActions() { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.button, { + marginVertical: 5, + backgroundColor: 'black' + }), + onPress: function onPress() { + updateAppPaymentParameters(); + console.log(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters); + navigation.navigate('HUC'); + }, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Headless Universal Checkout" + }) + }) + }); + }; + var updateAppPaymentParameters = function updateAppPaymentParameters() { + _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName = merchantName; + _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.environment = environment; + _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.paymentHandling = paymentHandling; + var currentClientSessionRequestBody = Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody); + currentClientSessionRequestBody.currencyCode = currency; + var currentClientSessionOrder = Object.assign({}, currentClientSessionRequestBody.order); + currentClientSessionOrder.countryCode = countryCode; + currentClientSessionOrder.lineItems = lineItems; + currentClientSessionRequestBody.order = currentClientSessionOrder; + currentClientSessionRequestBody.customerId = customerId; + var currentCustomer = Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer); + if (isCustomerApplied) { + var _appPaymentParameters43; + currentCustomer.firstName = firstName; + currentCustomer.lastName = lastName; + currentCustomer.emailAddress = email; + currentCustomer.mobileNumber = phoneNumber; + var currentAddress = Object.assign({}, (_appPaymentParameters43 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters43.billingAddress); + if (isAddressApplied) { + currentAddress.firstName = firstName; + currentAddress.lastName = lastName; + currentAddress.addressLine1 = addressLine1; + currentAddress.addressLine2 = addressLine2; + currentAddress.postalCode = postalCode; + currentAddress.city = city; + currentAddress.state = state; + currentAddress.countryCode = customerAddressCountryCode; + } else { + currentAddress = undefined; + } + currentCustomer.billingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; + currentCustomer.shippingAddress = Object.keys(currentAddress || {}).length === 0 ? undefined : currentAddress; + } else { + currentClientSessionRequestBody.customerId = undefined; + currentCustomer = undefined; + } + currentClientSessionRequestBody.customer = Object.keys(currentCustomer || {}).length === 0 ? undefined : currentCustomer; + var currentPaymentMethod = Object.assign({}, currentClientSessionRequestBody.paymentMethod); + var currentPaymentMethodOptions = Object.assign({}, currentPaymentMethod.options); + if (isSurchargeApplied) { + if (applePaySurcharge) { + currentPaymentMethodOptions.APPLE_PAY = { + surcharge: { + amount: applePaySurcharge + } + }; + } else { + currentPaymentMethodOptions.APPLE_PAY = undefined; + } + if (googlePaySurcharge) { + currentPaymentMethodOptions.GOOGLE_PAY = { + surcharge: { + amount: googlePaySurcharge + } + }; + } else { + currentPaymentMethodOptions.GOOGLE_PAY = undefined; + } + if (adyenGiropaySurcharge) { + currentPaymentMethodOptions.ADYEN_GIROPAY = { + surcharge: { + amount: adyenGiropaySurcharge + } + }; + } else { + currentPaymentMethodOptions.ADYEN_GIROPAY = undefined; + } + if (visaSurcharge) { + currentPaymentMethodOptions.PAYMENT_CARD = { + networks: { + VISA: { + surcharge: { + amount: visaSurcharge + } + } + } + }; + } else { + currentPaymentMethodOptions.PAYMENT_CARD = undefined; + } + } else { + currentPaymentMethodOptions = undefined; + } + currentPaymentMethod.options = Object.keys(currentPaymentMethodOptions || {}).length === 0 ? undefined : currentPaymentMethodOptions; + currentClientSessionRequestBody.paymentMethod = Object.keys(currentPaymentMethod).length === 0 ? undefined : currentPaymentMethod; + _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody = currentClientSessionRequestBody; + }; + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.ScrollView, { + contentInsetAdjustmentBehavior: "automatic", + style: backgroundStyle, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + marginHorizontal: 24 + }, + children: [renderOptionalSettings(), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + marginVertical: 5 + } + }), renderActions()] + }) + }); + }; + var _default = SettingsScreen; + exports.default = _default; +},472,[3,6,19,36,1,473,476,478,479,482,73,477,491],"src/screens/SettingsScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "default", { + enumerable: true, + get: function get() { + return _SegmentedControl.default; + } + }); + var _SegmentedControl = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./SegmentedControl")); +},473,[3,474],"node_modules/@react-native-segmented-control/segmented-control/js/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[8], "react-native"); + var _RNCSegmentedControlNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./RNCSegmentedControlNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-segmented-control/segmented-control/js/SegmentedControl.ios.js", + _this2 = this; + var _excluded = ["forwardedRef", "fontStyle", "activeFontStyle", "values"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SegmentedControlIOS = function (_React$Component) { + (0, _inherits2.default)(SegmentedControlIOS, _React$Component); + var _super = _createSuper(SegmentedControlIOS); + function SegmentedControlIOS() { + var _this; + (0, _classCallCheck2.default)(this, SegmentedControlIOS); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._onChange = function (event) { + _this.props.onChange && _this.props.onChange(event); + _this.props.onValueChange && _this.props.onValueChange(event.nativeEvent.value); + }; + return _this; + } + (0, _createClass2.default)(SegmentedControlIOS, [{ + key: "render", + value: function render() { + var _this$props = this.props, + forwardedRef = _this$props.forwardedRef, + fontStyle = _this$props.fontStyle, + activeFontStyle = _this$props.activeFontStyle, + values = _this$props.values, + props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_RNCSegmentedControlNativeComponent.default, Object.assign({ + fontStyle: fontStyle ? Object.assign({}, fontStyle, { + color: fontStyle.color ? + (0, _reactNative.processColor)(fontStyle.color) : undefined + }) : undefined, + activeFontStyle: activeFontStyle ? Object.assign({}, activeFontStyle, { + color: activeFontStyle.color ? + (0, _reactNative.processColor)(activeFontStyle.color) : undefined + }) : undefined, + values: values.map(function (val) { + return typeof val === 'string' ? val : _reactNative.Image.resolveAssetSource(val); + }) + }, props, { + ref: forwardedRef, + style: [styles.segmentedControl, this.props.style], + onChange: this._onChange + })); + } + }]); + return SegmentedControlIOS; + }(React.Component); + SegmentedControlIOS.defaultProps = { + values: [], + enabled: true + }; + var styles = _reactNative.StyleSheet.create({ + segmentedControl: { + height: 32 + } + }); + + var SegmentedControlIOSWithRef = React.forwardRef(function (props, forwardedRef) { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(SegmentedControlIOS, Object.assign({}, props, { + forwardedRef: forwardedRef + })); + }); + var _default = SegmentedControlIOSWithRef; + exports.default = _default; +},474,[3,132,12,13,50,47,46,36,1,475,73],"node_modules/@react-native-segmented-control/segmented-control/js/SegmentedControl.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + module.exports = (0, _reactNative.requireNativeComponent)('RNCSegmentedControl'); +},475,[1],"node_modules/@react-native-segmented-control/segmented-control/js/RNCSegmentedControlNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/components/TextField.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var TextField = function TextField(props) { + return (0, _$$_REQUIRE(_dependencyMap[2], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: Object.assign({}, props.style), + children: [props.title === undefined ? null : (0, _$$_REQUIRE(_dependencyMap[2], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: _$$_REQUIRE(_dependencyMap[3], "../styles").styles.textFieldTitle, + children: props.title + }), (0, _$$_REQUIRE(_dependencyMap[2], "react/jsx-runtime").jsx)(_reactNative.TextInput, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[3], "../styles").styles.textInput, { + marginTop: 4 + }), + onChangeText: props.onChangeText, + value: props.value, + placeholder: props.placeholder, + placeholderTextColor: 'grey', + keyboardType: props.keyboardType + })] + }); + }; + var _default = TextField; + exports.default = _default; +},476,[36,1,73,477],"src/components/TextField.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = void 0; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var styles = _reactNative.StyleSheet.create({ + sectionContainer: { + marginTop: 32 + }, + + sectionTitle: { + fontSize: 24, + fontWeight: '600', + marginBottom: 12 + }, + heading1: { + fontSize: 18, + fontWeight: '600' + }, + heading2: { + fontSize: 14, + fontWeight: '700' + }, + heading3: { + fontSize: 17, + fontWeight: '400' + }, + sectionDescription: { + marginTop: 8, + fontSize: 18, + fontWeight: '400' + }, + highlight: { + fontWeight: '700' + }, + button: { + height: 50, + justifyContent: 'center', + alignItems: 'center', + borderRadius: 4 + }, + buttonText: { + fontSize: 17 + }, + textInput: { + height: 40, + paddingHorizontal: 4, + borderColor: 'black', + borderWidth: 1, + borderRadius: 4 + }, + textFieldTitle: { + fontSize: 14, + color: 'black', + fontWeight: '600' + } + }); + exports.styles = styles; +},477,[1],"src/styles.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PaymentHandling = exports.Environment = void 0; + exports.getEnvironmentStringVal = getEnvironmentStringVal; + exports.getPaymentHandlingStringVal = getPaymentHandlingStringVal; + exports.makeEnvironmentFromIntVal = makeEnvironmentFromIntVal; + exports.makeEnvironmentFromStringVal = makeEnvironmentFromStringVal; + exports.makePaymentHandlingFromIntVal = makePaymentHandlingFromIntVal; + exports.makePaymentHandlingFromStringVal = makePaymentHandlingFromStringVal; + var Environment; + exports.Environment = Environment; + (function (Environment) { + Environment[Environment["Dev"] = 0] = "Dev"; + Environment[Environment["Sandbox"] = 1] = "Sandbox"; + Environment[Environment["Staging"] = 2] = "Staging"; + Environment[Environment["Production"] = 3] = "Production"; + })(Environment || (exports.Environment = Environment = {})); + function getEnvironmentStringVal(env) { + switch (env) { + case Environment.Dev: + return "dev"; + case Environment.Sandbox: + return "sandbox"; + case Environment.Staging: + return "staging"; + case Environment.Production: + return "production"; + default: + return undefined; + } + } + function makeEnvironmentFromStringVal(env) { + switch (env) { + case "dev": + return Environment.Dev; + case "sandbox": + return Environment.Sandbox; + case "Staging": + return Environment.Staging; + case "production": + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } + } + function makeEnvironmentFromIntVal(env) { + switch (env) { + case 0: + return Environment.Dev; + case 1: + return Environment.Sandbox; + case 2: + return Environment.Staging; + case 3: + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } + } + var PaymentHandling; + exports.PaymentHandling = PaymentHandling; + (function (PaymentHandling) { + PaymentHandling[PaymentHandling["Auto"] = 0] = "Auto"; + PaymentHandling[PaymentHandling["Manual"] = 1] = "Manual"; + })(PaymentHandling || (exports.PaymentHandling = PaymentHandling = {})); + function makePaymentHandlingFromIntVal(env) { + switch (env) { + case 0: + return PaymentHandling.Auto; + case 1: + return PaymentHandling.Manual; + default: + throw new Error("Failed to create payment handling."); + } + } + function makePaymentHandlingFromStringVal(env) { + switch (env.toUpperCase()) { + case "AUTO": + return PaymentHandling.Auto; + case "MANUAL": + return PaymentHandling.Manual; + default: + throw new Error("Failed to create payment handling."); + } + } + function getPaymentHandlingStringVal(env) { + switch (env) { + case PaymentHandling.Auto: + return "AUTO"; + case PaymentHandling.Manual: + return "MANUAL"; + default: + return undefined; + } + } +},478,[],"src/network/Environment.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.appPaymentParameters = void 0; + var appPaymentParameters = { + environment: _$$_REQUIRE(_dependencyMap[0], "./Environment").Environment.Sandbox, + paymentHandling: _$$_REQUIRE(_dependencyMap[1], "../network/Environment").PaymentHandling.Auto, + clientSessionRequestBody: { + customerId: "rn-customer-" + (0, _$$_REQUIRE(_dependencyMap[2], "../helpers/helpers").makeRandomString)(8), + orderId: "rn-order-" + (0, _$$_REQUIRE(_dependencyMap[2], "../helpers/helpers").makeRandomString)(8), + currencyCode: 'GBP', + order: { + countryCode: 'GB', + lineItems: [{ + amount: 10100, + quantity: 1, + itemId: 'shoes-3213', + description: 'Fancy Shoes', + discountAmount: 0 + } + ] + }, + + customer: { + emailAddress: 'rn-tester@primer.io', + mobileNumber: '+447821721778', + firstName: 'John', + lastName: 'Smith', + billingAddress: { + firstName: 'John', + lastName: 'Smith', + postalCode: 'SW1H 9HP', + addressLine1: '24 Old Queen St', + addressLine2: undefined, + countryCode: 'GB', + city: 'London', + state: undefined + }, + shippingAddress: { + firstName: 'John', + lastName: 'Smith', + postalCode: 'SW1H 9HP', + addressLine1: '24 Old Queen St', + countryCode: 'GB', + city: 'London', + state: undefined + }, + nationalDocumentId: '78731798237' + }, + paymentMethod: { + vaultOnSuccess: false, + options: { + GOOGLE_PAY: { + surcharge: { + amount: 50 + } + }, + ADYEN_IDEAL: { + surcharge: { + amount: 50 + } + }, + ADYEN_GIROPAY: { + surcharge: { + amount: 50 + } + }, + ADYEN_SOFORT: { + surcharge: { + amount: 50 + } + }, + APPLE_PAY: { + surcharge: { + amount: 150 + } + }, + PAYMENT_CARD: { + networks: { + VISA: { + surcharge: { + amount: 100 + } + }, + MASTERCARD: { + surcharge: { + amount: 200 + } + } + } + } + } + } + }, + merchantName: 'Primer Merchant' + }; + exports.appPaymentParameters = appPaymentParameters; +},479,[480,478,481],"src/models/IClientSessionRequestBody.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Environment = void 0; + exports.getEnvironmentStringVal = getEnvironmentStringVal; + exports.makeEnvironmentFromIntVal = makeEnvironmentFromIntVal; + exports.makeEnvironmentFromStringVal = makeEnvironmentFromStringVal; + var Environment; + exports.Environment = Environment; + (function (Environment) { + Environment[Environment["Dev"] = 0] = "Dev"; + Environment[Environment["Sandbox"] = 1] = "Sandbox"; + Environment[Environment["Staging"] = 2] = "Staging"; + Environment[Environment["Production"] = 3] = "Production"; + })(Environment || (exports.Environment = Environment = {})); + function getEnvironmentStringVal(env) { + switch (env) { + case Environment.Dev: + return "dev"; + case Environment.Sandbox: + return "sandbox"; + case Environment.Staging: + return "staging"; + case Environment.Production: + return "production"; + default: + return "unknown"; + } + } + function makeEnvironmentFromStringVal(env) { + switch (env) { + case "dev": + return Environment.Dev; + case "sandbox": + return Environment.Sandbox; + case "Staging": + return Environment.Staging; + case "production": + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } + } + function makeEnvironmentFromIntVal(env) { + switch (env) { + case 0: + return Environment.Dev; + case 1: + return Environment.Sandbox; + case 2: + return Environment.Staging; + case 3: + return Environment.Production; + default: + throw new Error("Failed to create environment."); + } + } +},480,[],"src/models/Environment.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.makeRandomString = makeRandomString; + function makeRandomString(length) { + var result = ''; + var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + var charactersLength = characters.length; + for (var i = 0; i < length; i++) { + result += characters.charAt(Math.floor(Math.random() * charactersLength)); + } + return result; + } +},481,[],"src/helpers/helpers.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "Colors", { + enumerable: true, + get: function get() { + return _Colors.default; + } + }); + Object.defineProperty(exports, "DebugInstructions", { + enumerable: true, + get: function get() { + return _DebugInstructions.default; + } + }); + Object.defineProperty(exports, "Header", { + enumerable: true, + get: function get() { + return _Header.default; + } + }); + Object.defineProperty(exports, "HermesBadge", { + enumerable: true, + get: function get() { + return _HermesBadge.default; + } + }); + Object.defineProperty(exports, "LearnMoreLinks", { + enumerable: true, + get: function get() { + return _LearnMoreLinks.default; + } + }); + Object.defineProperty(exports, "ReloadInstructions", { + enumerable: true, + get: function get() { + return _ReloadInstructions.default; + } + }); + var _Colors = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./components/Colors")); + var _Header = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./components/Header")); + var _HermesBadge = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./components/HermesBadge")); + var _LearnMoreLinks = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./components/LearnMoreLinks")); + var _DebugInstructions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./components/DebugInstructions")); + var _ReloadInstructions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./components/ReloadInstructions")); +},482,[3,483,484,485,487,489,490],"node_modules/react-native/Libraries/NewAppScreen/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = { + primary: '#1292B4', + white: '#FFF', + lighter: '#F3F3F3', + light: '#DAE1E7', + dark: '#444', + darker: '#222', + black: '#000' + }; + exports.default = _default; +},483,[],"node_modules/react-native/Libraries/NewAppScreen/components/Colors.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var _react = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react")); + var _Colors = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./Colors")); + var _HermesBadge = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./HermesBadge")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/NewAppScreen/components/Header.js"; + var Header = function Header() { + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs)(_reactNative.ImageBackground, { + accessibilityRole: "image", + testID: "new-app-screen-header", + source: _$$_REQUIRE(_dependencyMap[6], "./logo.png"), + style: [styles.background, { + backgroundColor: isDarkMode ? _Colors.default.darker : _Colors.default.lighter + }], + imageStyle: styles.logo, + children: [(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_HermesBadge.default, {}), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs)(_reactNative.Text, { + style: [styles.text, { + color: isDarkMode ? _Colors.default.white : _Colors.default.black + }], + children: ["Welcome to", '\n', "React Native"] + })] + }); + }; + var styles = _reactNative.StyleSheet.create({ + background: { + paddingBottom: 40, + paddingTop: 96, + paddingHorizontal: 32 + }, + logo: { + opacity: 0.2, + overflow: 'visible', + resizeMode: 'cover', + marginLeft: -128, + marginBottom: -192 + }, + text: { + fontSize: 40, + fontWeight: '700', + textAlign: 'center' + } + }); + var _default = Header; + exports.default = _default; +},484,[1,3,36,483,485,73,486],"node_modules/react-native/Libraries/NewAppScreen/components/Header.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _react = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); + var _Colors = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./Colors")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/NewAppScreen/components/HermesBadge.js"; + var HermesBadge = function HermesBadge() { + var _global$HermesInterna, _global$HermesInterna2; + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + var version = (_global$HermesInterna = (_global$HermesInterna2 = global.HermesInternal) == null ? void 0 : _global$HermesInterna2.getRuntimeProperties == null ? void 0 : _global$HermesInterna2.getRuntimeProperties()['OSS Release Version']) != null ? _global$HermesInterna : ''; + return global.HermesInternal ? (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_reactNative.View, { + style: styles.badge, + children: (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [styles.badgeText, { + color: isDarkMode ? _Colors.default.light : _Colors.default.dark + }], + children: "Engine: Hermes " + version + }) + }) : null; + }; + var styles = _reactNative.StyleSheet.create({ + badge: { + position: 'absolute', + top: 8, + right: 12 + }, + badgeText: { + fontSize: 14, + fontWeight: '600', + textAlign: 'right' + } + }); + var _default = HermesBadge; + exports.default = _default; +},485,[3,36,1,483,73],"node_modules/react-native/Libraries/NewAppScreen/components/HermesBadge.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/NewAppScreen/components", + "width": 512, + "height": 512, + "scales": [1], + "hash": "3cf817075ffdc798cf13c457bf4c3bc5", + "name": "logo", + "type": "png" + }); +},486,[385],"node_modules/react-native/Libraries/NewAppScreen/components/logo.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Colors = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Colors")); + var _openURLInBrowser = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Core/Devtools/openURLInBrowser")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var links = [{ + id: 1, + title: 'The Basics', + link: 'https://reactnative.dev/docs/tutorial', + description: 'Explains a Hello World for React Native.' + }, { + id: 2, + title: 'Style', + link: 'https://reactnative.dev/docs/style', + description: 'Covers how to use the prop named style which controls the visuals.' + }, { + id: 3, + title: 'Layout', + link: 'https://reactnative.dev/docs/flexbox', + description: 'React Native uses flexbox for layout, learn how it works.' + }, { + id: 4, + title: 'Components', + link: 'https://reactnative.dev/docs/components-and-apis', + description: 'The full list of components and APIs inside React Native.' + }, { + id: 5, + title: 'Navigation', + link: 'https://reactnative.dev/docs/navigation', + description: 'How to handle moving between screens inside your application.' + }, { + id: 6, + title: 'Networking', + link: 'https://reactnative.dev/docs/network', + description: 'How to use the Fetch API in React Native.' + }, { + id: 7, + title: 'Help', + link: 'https://reactnative.dev/help', + description: 'Need more help? There are many other React Native developers who may have the answer.' + }, { + id: 8, + title: 'Follow us on Twitter', + link: 'https://twitter.com/reactnative', + description: 'Stay in touch with the community, join in on Q&As and more by following React Native on Twitter.' + }]; + var LinkList = function LinkList() { + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.View, { + style: styles.container, + children: links.map(function (_ref) { + var id = _ref.id, + title = _ref.title, + link = _ref.link, + description = _ref.description; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs)(_react.Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.separator, { + backgroundColor: isDarkMode ? _Colors.default.dark : _Colors.default.light + }] + }), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs)(_reactNative.TouchableOpacity, { + accessibilityRole: "button", + onPress: function onPress() { + return (0, _openURLInBrowser.default)(link); + }, + style: styles.linkContainer, + children: [(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.link, + children: title + }), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [styles.description, { + color: isDarkMode ? _Colors.default.lighter : _Colors.default.dark + }], + children: description + })] + })] + }, id); + }) + }); + }; + var styles = _reactNative.StyleSheet.create({ + container: { + marginTop: 32, + paddingHorizontal: 24 + }, + linkContainer: { + flexWrap: 'wrap', + flexDirection: 'row', + justifyContent: 'space-between', + alignItems: 'center', + paddingVertical: 8 + }, + link: { + flex: 2, + fontSize: 18, + fontWeight: '400', + color: _Colors.default.primary + }, + description: { + flex: 3, + paddingVertical: 16, + fontWeight: '400', + fontSize: 18 + }, + separator: { + height: _reactNative.StyleSheet.hairlineWidth + } + }); + var _default = LinkList; + exports.default = _default; +},487,[3,483,488,1,36,73],"node_modules/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + function openURLInBrowser(url) { + fetch(_$$_REQUIRE(_dependencyMap[0], "./getDevServer")().url + 'open-url', { + method: 'POST', + body: JSON.stringify({ + url: url + }) + }); + } + module.exports = openURLInBrowser; +},488,[66],"node_modules/react-native/Libraries/Core/Devtools/openURLInBrowser.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var _react = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/NewAppScreen/components/DebugInstructions.js"; + var styles = _reactNative.StyleSheet.create({ + highlight: { + fontWeight: '700' + } + }); + var DebugInstructions = _reactNative.Platform.select({ + ios: function ios() { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsxs)(_reactNative.Text, { + children: ["Press ", (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "Cmd + D" + }), " in the simulator or", ' ', (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "Shake" + }), " your device to open the React Native debug menu."] + }); + }, + default: function _default() { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsxs)(_reactNative.Text, { + children: ["Press ", (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "Cmd or Ctrl + M" + }), " or", ' ', (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "Shake" + }), " your device to open the React Native debug menu."] + }); + } + }); + var _default2 = DebugInstructions; + exports.default = _default2; +},489,[1,3,36,73],"node_modules/react-native/Libraries/NewAppScreen/components/DebugInstructions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var _react = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/NewAppScreen/components/ReloadInstructions.js"; + var styles = _reactNative.StyleSheet.create({ + highlight: { + fontWeight: '700' + } + }); + var ReloadInstructions = _reactNative.Platform.select({ + ios: function ios() { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsxs)(_reactNative.Text, { + children: ["Press ", (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "Cmd + R" + }), " in the simulator to reload your app's code."] + }); + }, + default: function _default() { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsxs)(_reactNative.Text, { + children: ["Double tap ", (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: styles.highlight, + children: "R" + }), " on your keyboard to reload your app's code."] + }); + } + }); + var _default2 = ReloadInstructions; + exports.default = _default2; +},490,[1,3,36,73],"node_modules/react-native/Libraries/NewAppScreen/components/ReloadInstructions.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "Picker", { + enumerable: true, + get: function get() { + return _Picker.default; + } + }); + Object.defineProperty(exports, "PickerIOS", { + enumerable: true, + get: function get() { + return _PickerIOS.default; + } + }); + var _Picker = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Picker")); + var _PickerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./PickerIOS")); +},491,[3,492,495],"node_modules/@react-native-picker/picker/js/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[7], "react-native"); + var _PickerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./PickerAndroid")); + var _PickerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./PickerIOS")); + var _PickerWindows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./PickerWindows")); + var _PickerMacOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./PickerMacOS")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-picker/picker/js/Picker.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var MODE_DIALOG = 'dialog'; + var MODE_DROPDOWN = 'dropdown'; + var PickerItem = function (_React$Component) { + (0, _inherits2.default)(PickerItem, _React$Component); + var _super = _createSuper(PickerItem); + function PickerItem() { + (0, _classCallCheck2.default)(this, PickerItem); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(PickerItem, [{ + key: "render", + value: function render() { + throw null; + } + }]); + return PickerItem; + }(React.Component); + var Picker = function (_React$Component2) { + (0, _inherits2.default)(Picker, _React$Component2); + var _super2 = _createSuper(Picker); + function Picker() { + var _this; + (0, _classCallCheck2.default)(this, Picker); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super2.call.apply(_super2, [this].concat(args)); + _this.pickerRef = React.createRef(); + _this.blur = function () { + var _this$pickerRef$curre; + (_this$pickerRef$curre = _this.pickerRef.current) == null ? void 0 : _this$pickerRef$curre.blur(); + }; + _this.focus = function () { + var _this$pickerRef$curre2; + (_this$pickerRef$curre2 = _this.pickerRef.current) == null ? void 0 : _this$pickerRef$curre2.focus(); + }; + return _this; + } + (0, _createClass2.default)(Picker, [{ + key: "render", + value: function render() { + if (_reactNative.Platform.OS === 'ios') { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_PickerIOS.default, Object.assign({}, this.props, { + children: this.props.children + })); + } else if (_reactNative.Platform.OS === 'macos') { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_PickerMacOS.default, Object.assign({}, this.props, { + children: this.props.children + })); + } else if (_reactNative.Platform.OS === 'android') { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_PickerAndroid.default, Object.assign({ + ref: this.pickerRef + }, this.props, { + children: this.props.children + })); + } else if (_reactNative.Platform.OS === 'windows') { + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_PickerWindows.default, Object.assign({}, this.props, { + children: this.props.children + })); + } else { + return null; + } + } + }]); + return Picker; + }(React.Component); + Picker.MODE_DIALOG = MODE_DIALOG; + Picker.MODE_DROPDOWN = MODE_DROPDOWN; + Picker.Item = PickerItem; + Picker.defaultProps = { + mode: MODE_DIALOG + }; + var _default = Picker; + exports.default = _default; +},492,[3,12,13,50,47,46,36,1,493,495,497,498,73],"node_modules/@react-native-picker/picker/js/Picker.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _UnimplementedView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./UnimplementedView")); + var _default = _UnimplementedView.default; + exports.default = _default; +},493,[3,494],"node_modules/@react-native-picker/picker/js/PickerAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-picker/picker/js/UnimplementedView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var UnimplementedView = function UnimplementedView(props) { + return (0, _$$_REQUIRE(_dependencyMap[2], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.unimplementedView, props.style], + children: props.children + }); + }; + var styles = _reactNative.StyleSheet.create({ + unimplementedView: __DEV__ ? { + alignSelf: 'flex-start', + borderColor: 'red', + borderWidth: 1 + } : {} + }); + var _default = UnimplementedView; + exports.default = _default; +},494,[36,1,73],"node_modules/@react-native-picker/picker/js/UnimplementedView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[7], "react-native"); + var _RNCPickerNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./RNCPickerNativeComponent")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-picker/picker/js/PickerIOS.ios.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var PickerIOSItem = function PickerIOSItem(props) { + return null; + }; + var PickerIOS = function (_React$Component) { + (0, _inherits2.default)(PickerIOS, _React$Component); + var _super = _createSuper(PickerIOS); + function PickerIOS() { + var _this; + (0, _classCallCheck2.default)(this, PickerIOS); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._picker = null; + _this.state = { + selectedIndex: 0, + items: [] + }; + _this._onChange = function (event) { + if (_this.props.onChange) { + _this.props.onChange(event); + } + if (_this.props.onValueChange) { + _this.props.onValueChange(event.nativeEvent.newValue, event.nativeEvent.newIndex); + } + + if (_this._picker && _this.state.selectedIndex !== event.nativeEvent.newIndex) { + _this._picker.setNativeProps({ + selectedIndex: _this.state.selectedIndex + }); + } + }; + return _this; + } + (0, _createClass2.default)(PickerIOS, [{ + key: "render", + value: function render() { + var _this$props$numberOfL, + _this2 = this; + var numberOfLines = Math.round((_this$props$numberOfL = this.props.numberOfLines) != null ? _this$props$numberOfL : 1); + if (numberOfLines < 1) { + numberOfLines = 1; + } + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + style: this.props.style, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_RNCPickerNativeComponent.default, { + ref: function ref(picker) { + _this2._picker = picker; + }, + themeVariant: this.props.themeVariant, + testID: this.props.testID, + style: [styles.pickerIOS, this.props.itemStyle], + items: this.state.items, + selectedIndex: this.state.selectedIndex, + onChange: this._onChange, + numberOfLines: numberOfLines + }) + }); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props) { + var selectedIndex = 0; + var items = []; + React.Children.toArray(props.children).forEach(function (child, index) { + if (child.props.value === props.selectedValue) { + selectedIndex = index; + } + items.push({ + value: child.props.value, + label: child.props.label, + textColor: (0, _reactNative.processColor)(child.props.color), + testID: child.props.testID + }); + }); + return { + selectedIndex: selectedIndex, + items: items + }; + } + }]); + return PickerIOS; + }(React.Component); + PickerIOS.Item = PickerIOSItem; + var styles = _reactNative.StyleSheet.create({ + pickerIOS: { + height: 216 + } + }); + var _default = PickerIOS; + exports.default = _default; +},495,[3,12,13,50,47,46,36,1,496,73],"node_modules/@react-native-picker/picker/js/PickerIOS.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + module.exports = (0, _reactNative.requireNativeComponent)('RNCPicker'); +},496,[1],"node_modules/@react-native-picker/picker/js/RNCPickerNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _UnimplementedView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./UnimplementedView")); + var _default = _UnimplementedView.default; + exports.default = _default; +},497,[3,494],"node_modules/@react-native-picker/picker/js/PickerWindows.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _UnimplementedView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./UnimplementedView")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-picker/picker/js/PickerMacOS.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var PickerMacOS = function (_React$Component) { + (0, _inherits2.default)(PickerMacOS, _React$Component); + var _super = _createSuper(PickerMacOS); + function PickerMacOS() { + (0, _classCallCheck2.default)(this, PickerMacOS); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(PickerMacOS, [{ + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_UnimplementedView.default, {}); + } + }]); + return PickerMacOS; + }(React.Component); + PickerMacOS.Item = _UnimplementedView.default; + var _default = PickerMacOS; + exports.default = _default; +},498,[3,12,13,50,47,46,36,494,73],"node_modules/@react-native-picker/picker/js/PickerMacOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/CheckoutScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var clientToken = null; + var CheckoutScreen = function CheckoutScreen(props) { + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + isLoading = _React$useState2[0], + setIsLoading = _React$useState2[1]; + var _React$useState3 = React.useState('undefined'), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + loadingMessage = _React$useState4[0], + setLoadingMessage = _React$useState4[1]; + var _React$useState5 = React.useState(null), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + error = _React$useState6[0], + setError = _React$useState6[1]; + var backgroundStyle = { + backgroundColor: isDarkMode ? _$$_REQUIRE(_dependencyMap[5], "react-native/Libraries/NewAppScreen").Colors.darker : _$$_REQUIRE(_dependencyMap[5], "react-native/Libraries/NewAppScreen").Colors.lighter + }; + var paymentId = null; + var onBeforeClientSessionUpdate = function onBeforeClientSessionUpdate() { + console.log("onBeforeClientSessionUpdate"); + setIsLoading(true); + setLoadingMessage('onBeforeClientSessionUpdate'); + }; + var onClientSessionUpdate = function onClientSessionUpdate(clientSession) { + console.log("onClientSessionUpdate\n" + JSON.stringify(clientSession)); + ; + setLoadingMessage('onClientSessionUpdate'); + }; + var onBeforePaymentCreate = function onBeforePaymentCreate(checkoutPaymentMethodData, handler) { + console.log("onBeforePaymentCreate\n" + JSON.stringify(checkoutPaymentMethodData)); + handler.continuePaymentCreation(); + setLoadingMessage('onBeforePaymentCreate'); + }; + var onCheckoutComplete = function onCheckoutComplete(checkoutData) { + console.log("PrimerCheckoutData:\n" + JSON.stringify(checkoutData)); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', checkoutData); + }; + var onTokenizeSuccess = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (paymentMethodTokenData, handler) { + console.log("onTokenizeSuccess:\n" + JSON.stringify(paymentMethodTokenData)); + try { + var payment = yield (0, _$$_REQUIRE(_dependencyMap[6], "../network/api").createPayment)(paymentMethodTokenData.token); + if (payment.requiredAction && payment.requiredAction.clientToken) { + paymentId = payment.id; + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + console.warn("Make sure you have used a card number that supports 3DS, otherwise the SDK will hang."); + } + paymentId = payment.id; + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + } else { + props.navigation.navigate('Result', payment); + handler.handleSuccess(); + setLoadingMessage(undefined); + setIsLoading(false); + } + } catch (err) { + console.error(err); + handler.handleFailure("Merchant error"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', err); + } + }); + return function onTokenizeSuccess(_x, _x2) { + return _ref.apply(this, arguments); + }; + }(); + var onResumeSuccess = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resumeToken, handler) { + console.log("onResumeSuccess:\n" + JSON.stringify(resumeToken)); + try { + if (paymentId) { + var payment = yield (0, _$$_REQUIRE(_dependencyMap[6], "../network/api").resumePayment)(paymentId, resumeToken); + props.navigation.navigate('Result', payment); + handler.handleSuccess(); + setLoadingMessage(undefined); + setIsLoading(false); + } else { + var err = new Error("Invalid value for paymentId"); + throw err; + } + paymentId = null; + } catch (err) { + console.error(err); + paymentId = null; + handler.handleFailure("RN app error"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', err); + } + }); + return function onResumeSuccess(_x3, _x4) { + return _ref2.apply(this, arguments); + }; + }(); + var onResumePending = function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (additionalInfo) { + console.log("onResumePending:\n" + JSON.stringify(additionalInfo)); + debugger; + }); + return function onResumePending(_x5) { + return _ref3.apply(this, arguments); + }; + }(); + var onCheckoutReceivedAdditionalInfo = function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (additionalInfo) { + console.log("onCheckoutReceivedAdditionalInfo:\n" + JSON.stringify(additionalInfo)); + debugger; + }); + return function onCheckoutReceivedAdditionalInfo(_x6) { + return _ref4.apply(this, arguments); + }; + }(); + var onError = function onError(error, checkoutData, handler) { + console.log("onError:\n" + JSON.stringify(error) + "\n\n" + JSON.stringify(checkoutData)); + handler == null ? void 0 : handler.showErrorMessage("My RN message"); + setLoadingMessage(undefined); + setIsLoading(false); + props.navigation.navigate('Result', error); + }; + var onDismiss = function onDismiss() { + console.log("onDismiss"); + clientToken = null; + setLoadingMessage(undefined); + setIsLoading(false); + }; + var settings = { + paymentHandling: (0, _$$_REQUIRE(_dependencyMap[7], "../network/Environment").getPaymentHandlingStringVal)(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + }, + cardPaymentOptions: { + is3DSOnVaultingEnabled: false + }, + klarnaOptions: { + recurringPaymentDescription: "Recurring payment description" + }, + applePayOptions: { + merchantIdentifier: "merchant.checkout.team", + merchantName: _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName, + isCaptureBillingAddressEnabled: true + } + }, + uiOptions: { + isInitScreenEnabled: true, + isSuccessScreenEnabled: true, + isErrorScreenEnabled: true + }, + debugOptions: { + is3DSSanityCheckEnabled: true + }, + primerCallbacks: { + onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, + onClientSessionUpdate: onClientSessionUpdate, + onBeforePaymentCreate: onBeforePaymentCreate, + onCheckoutComplete: onCheckoutComplete, + onTokenizeSuccess: onTokenizeSuccess, + onResumeSuccess: onResumeSuccess, + onResumePending: onResumePending, + onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, + onError: onError, + onDismiss: onDismiss + } + }; + if (_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName) { + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName + }; + } + var onVaultManagerButtonTapped = function () { + var _ref5 = (0, _asyncToGenerator2.default)(function* () { + try { + setIsLoading(true); + var clientSession = yield (0, _$$_REQUIRE(_dependencyMap[6], "../network/api").createClientSession)(); + clientToken = clientSession.clientToken; + yield _$$_REQUIRE(_dependencyMap[9], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").Primer.configure(settings); + yield _$$_REQUIRE(_dependencyMap[9], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").Primer.showVaultManager(clientToken); + } catch (err) { + setIsLoading(false); + if (err instanceof Error) { + setError(err); + } else if (typeof err === "string") { + setError(new Error(err)); + } else { + setError(new Error('Unknown error')); + } + } + }); + return function onVaultManagerButtonTapped() { + return _ref5.apply(this, arguments); + }; + }(); + var onUniversalCheckoutButtonTapped = function () { + var _ref6 = (0, _asyncToGenerator2.default)(function* () { + try { + setIsLoading(true); + var clientSession = yield (0, _$$_REQUIRE(_dependencyMap[6], "../network/api").createClientSession)(); + clientToken = clientSession.clientToken; + yield _$$_REQUIRE(_dependencyMap[9], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").Primer.configure(settings); + yield _$$_REQUIRE(_dependencyMap[9], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").Primer.showUniversalCheckout(clientToken); + } catch (err) { + setIsLoading(false); + if (err instanceof Error) { + setError(err); + } else if (typeof err === "string") { + setError(new Error(err)); + } else { + setError(new Error('Unknown error')); + } + } + }); + return function onUniversalCheckoutButtonTapped() { + return _ref6.apply(this, arguments); + }; + }(); + console.log("RENDER\nisLoading: " + isLoading); + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: backgroundStyle, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + flex: 1 + } + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.button, { + marginHorizontal: 20, + marginVertical: 5, + backgroundColor: 'black' + }), + onPress: onVaultManagerButtonTapped, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Vault Manager" + }) + }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.button, { + marginHorizontal: 20, + marginBottom: 20, + marginTop: 5, + backgroundColor: 'black' + }), + onPress: onUniversalCheckoutButtonTapped, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Universal Checkout" + }) + })] + }); + }; + var _default = CheckoutScreen; + exports.default = _default; +},499,[3,65,19,36,1,482,500,478,479,544,73,477],"src/screens/CheckoutScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.setClientSessionActions = exports.resumePayment = exports.createPayment = exports.createClientSession = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _axios = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "axios")); + var baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; + var staticHeaders = { + 'Content-Type': 'application/json', + 'environment': (0, _$$_REQUIRE(_dependencyMap[3], "./Environment").getEnvironmentStringVal)(_$$_REQUIRE(_dependencyMap[4], "../models/IClientSessionRequestBody").appPaymentParameters.environment) + }; + var createClientSession = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + var url = baseUrl + '/client-session'; + var headers = Object.assign({}, staticHeaders, { + 'X-Api-Version': (0, _$$_REQUIRE(_dependencyMap[5], "./APIVersion").getAPIVersionStringVal)(_$$_REQUIRE(_dependencyMap[5], "./APIVersion").APIVersion.v3) + }); + if (_$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey) { + headers['X-Api-Key'] = _$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey; + } + if (_$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customClientToken) { + return { + "clientToken": _$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customClientToken + }; + } + try { + console.log('\n\n'); + console.log("REQUEST:\n " + url); + console.log("HEADERS:"); + console.log(headers); + console.log("BODY:"); + console.log(_$$_REQUIRE(_dependencyMap[4], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody); + var response = yield _axios.default.post(url, _$$_REQUIRE(_dependencyMap[4], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody, { + headers: headers + }); + console.log('\n\n'); + console.log("RESPONSE:\n [" + response.status + "] " + url); + console.log("BODY:"); + console.log(response.data); + console.log('\n\n'); + if (response.status >= 200 && response.status < 300) { + return response.data; + } else { + var err = new Error("Request failed with status " + response.status + ".\nBody: " + JSON.stringify(response.data)); + console.error(err); + throw err; + } + } catch (err) { + console.log(err.response.data); + console.error(err); + throw err; + } + }); + return function createClientSession() { + return _ref.apply(this, arguments); + }; + }(); + exports.createClientSession = createClientSession; + var setClientSessionActions = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (body) { + var url = baseUrl + '/client-session/actions'; + var headers = Object.assign({}, staticHeaders, { + 'X-Api-Version': '2021-10-19' + }); + if (_$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey) { + headers['X-Api-Key'] = _$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey; + } + try { + console.log('\n\n'); + console.log("REQUEST:\n " + url); + console.log("HEADERS:"); + console.log(headers); + console.log("BODY:"); + console.log(body); + var response = yield _axios.default.post(url, body, { + headers: headers + }); + console.log('\n\n'); + console.log("RESPONSE:\n [" + response.status + "] " + url); + console.log("BODY:"); + console.log(body); + console.log('\n\n'); + if (response.status >= 200 && response.status < 300) { + var clientSession = response.data; + return clientSession; + } else { + var err = new Error("Request failed with status " + response.status + ".\nBody: " + JSON.stringify(response.data)); + console.error(err); + throw err; + } + } catch (err) { + console.log(err.response.data); + console.error(err); + throw err; + } + }); + return function setClientSessionActions(_x) { + return _ref2.apply(this, arguments); + }; + }(); + exports.setClientSessionActions = setClientSessionActions; + var createPayment = function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (paymentMethodToken) { + var url = baseUrl + '/payments'; + var headers = Object.assign({}, staticHeaders, { + 'X-Api-Version': '2021-09-27' + }); + if (_$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey) { + headers['X-Api-Key'] = _$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey; + } + var body = { + paymentMethodToken: paymentMethodToken + }; + try { + console.log('\n\n'); + console.log("REQUEST:\n " + url); + console.log("HEADERS:"); + console.log(headers); + console.log("BODY:"); + console.log(body); + var response = yield _axios.default.post(url, body, { + headers: headers + }); + console.log('\n\n'); + console.log("RESPONSE:\n [" + response.status + "] " + url); + console.log("BODY:"); + console.log(body); + console.log('\n\n'); + if (response.status >= 200 && response.status < 300) { + var payment = response.data; + return payment; + } else { + var err = new Error("Request failed with status " + response.status + ".\nBody: " + JSON.stringify(response.data)); + console.error(err); + throw err; + } + } catch (err) { + console.log(err.response.data); + console.error(err); + throw err; + } + }); + return function createPayment(_x2) { + return _ref3.apply(this, arguments); + }; + }(); + exports.createPayment = createPayment; + var resumePayment = function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (paymentId, resumeToken) { + var url = baseUrl + ("/payments/" + paymentId + "/resume"); + var headers = Object.assign({}, staticHeaders, { + 'X-Api-Version': '2021-09-27' + }); + if (_$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey) { + headers['X-Api-Key'] = _$$_REQUIRE(_dependencyMap[6], "../screens/SettingsScreen").customApiKey; + } + var body = { + resumeToken: resumeToken + }; + try { + console.log('\n\n'); + console.log("REQUEST:\n " + url); + console.log("HEADERS:"); + console.log(headers); + console.log("BODY:"); + console.log(body); + var response = yield _axios.default.post(url, body, { + headers: headers + }); + console.log('\n\n'); + console.log("RESPONSE:\n [" + response.status + "] " + url); + console.log("BODY:"); + console.log(body); + console.log('\n\n'); + if (response.status >= 200 && response.status < 300) { + return response.data; + } else { + var err = new Error("Request failed with status " + response.status + ".\nBody: " + JSON.stringify(response.data)); + console.error(err); + throw err; + } + } catch (err) { + console.log(err.response.data); + console.error(err); + throw err; + } + }); + return function resumePayment(_x3, _x4) { + return _ref4.apply(this, arguments); + }; + }(); + exports.resumePayment = resumePayment; +},500,[3,65,501,478,479,543,472],"src/network/api.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.toFormData = exports.spread = exports.isCancel = exports.isAxiosError = exports.default = exports.all = exports.VERSION = exports.CanceledError = exports.CancelToken = exports.Cancel = exports.AxiosError = exports.Axios = void 0; + var _axios = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./lib/axios.js")); + var Axios = _axios.default.Axios, + AxiosError = _axios.default.AxiosError, + CanceledError = _axios.default.CanceledError, + isCancel = _axios.default.isCancel, + CancelToken = _axios.default.CancelToken, + VERSION = _axios.default.VERSION, + all = _axios.default.all, + Cancel = _axios.default.Cancel, + isAxiosError = _axios.default.isAxiosError, + spread = _axios.default.spread, + toFormData = _axios.default.toFormData; + exports.toFormData = toFormData; + exports.spread = spread; + exports.isAxiosError = isAxiosError; + exports.Cancel = Cancel; + exports.all = all; + exports.VERSION = VERSION; + exports.CancelToken = CancelToken; + exports.isCancel = isCancel; + exports.CanceledError = CanceledError; + exports.AxiosError = AxiosError; + exports.Axios = Axios; + var _default = _axios.default; + exports.default = _default; +},501,[3,502],"node_modules/axios/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./utils.js")); + var _bind = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./helpers/bind.js")); + var _Axios = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./core/Axios.js")); + var _mergeConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./core/mergeConfig.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./defaults/index.js")); + var _formDataToJSON = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./helpers/formDataToJSON.js")); + var _CanceledError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./cancel/CanceledError.js")); + var _CancelToken = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./cancel/CancelToken.js")); + var _isCancel = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./cancel/isCancel.js")); + var _toFormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./helpers/toFormData.js")); + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./core/AxiosError.js")); + var _spread = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./helpers/spread.js")); + var _isAxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./helpers/isAxiosError.js")); + function createInstance(defaultConfig) { + var context = new _Axios.default(defaultConfig); + var instance = (0, _bind.default)(_Axios.default.prototype.request, context); + + _utils.default.extend(instance, _Axios.default.prototype, context, { + allOwnKeys: true + }); + + _utils.default.extend(instance, context, null, { + allOwnKeys: true + }); + + instance.create = function create(instanceConfig) { + return createInstance((0, _mergeConfig.default)(defaultConfig, instanceConfig)); + }; + return instance; + } + + var axios = createInstance(_index.default); + + axios.Axios = _Axios.default; + + axios.CanceledError = _CanceledError.default; + axios.CancelToken = _CancelToken.default; + axios.isCancel = _isCancel.default; + axios.VERSION = _$$_REQUIRE(_dependencyMap[14], "./env/data.js").VERSION; + axios.toFormData = _toFormData.default; + + axios.AxiosError = _AxiosError.default; + + axios.Cancel = axios.CanceledError; + + axios.all = function all(promises) { + return Promise.all(promises); + }; + axios.spread = _spread.default; + + axios.isAxiosError = _isAxiosError.default; + axios.formToJSON = function (thing) { + return (0, _formDataToJSON.default)(_utils.default.isHTMLForm(thing) ? new FormData(thing) : thing); + }; + var _default = axios; + exports.default = _default; +},502,[3,503,504,505,537,515,522,531,540,536,508,509,541,542,539],"node_modules/axios/lib/axios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _bind = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./helpers/bind.js")); + + var toString = Object.prototype.toString; + var getPrototypeOf = Object.getPrototypeOf; + var kindOf = function (cache) { + return function (thing) { + var str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); + }; + }(Object.create(null)); + var kindOfTest = function kindOfTest(type) { + type = type.toLowerCase(); + return function (thing) { + return kindOf(thing) === type; + }; + }; + var typeOfTest = function typeOfTest(type) { + return function (thing) { + return typeof thing === type; + }; + }; + + var isArray = Array.isArray; + + var isUndefined = typeOfTest('undefined'); + + function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); + } + + var isArrayBuffer = kindOfTest('ArrayBuffer'); + + function isArrayBufferView(val) { + var result; + if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) { + result = ArrayBuffer.isView(val); + } else { + result = val && val.buffer && isArrayBuffer(val.buffer); + } + return result; + } + + var isString = typeOfTest('string'); + + var isFunction = typeOfTest('function'); + + var isNumber = typeOfTest('number'); + + var isObject = function isObject(thing) { + return thing !== null && typeof thing === 'object'; + }; + + var isBoolean = function isBoolean(thing) { + return thing === true || thing === false; + }; + + var isPlainObject = function isPlainObject(val) { + if (kindOf(val) !== 'object') { + return false; + } + var prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); + }; + + var isDate = kindOfTest('Date'); + + var isFile = kindOfTest('File'); + + var isBlob = kindOfTest('Blob'); + + var isFileList = kindOfTest('FileList'); + + var isStream = function isStream(val) { + return isObject(val) && isFunction(val.pipe); + }; + + var isFormData = function isFormData(thing) { + var pattern = '[object FormData]'; + return thing && (typeof FormData === 'function' && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern); + }; + + var isURLSearchParams = kindOfTest('URLSearchParams'); + + var trim = function trim(str) { + return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + }; + + function forEach(obj, fn) { + var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, + _ref$allOwnKeys = _ref.allOwnKeys, + allOwnKeys = _ref$allOwnKeys === void 0 ? false : _ref$allOwnKeys; + if (obj === null || typeof obj === 'undefined') { + return; + } + var i; + var l; + + if (typeof obj !== 'object') { + obj = [obj]; + } + if (isArray(obj)) { + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + var len = keys.length; + var key; + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } + } + + function merge( + ) { + var result = {}; + var assignValue = function assignValue(val, key) { + if (isPlainObject(result[key]) && isPlainObject(val)) { + result[key] = merge(result[key], val); + } else if (isPlainObject(val)) { + result[key] = merge({}, val); + } else if (isArray(val)) { + result[key] = val.slice(); + } else { + result[key] = val; + } + }; + for (var i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; + } + + var extend = function extend(a, b, thisArg) { + var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, + allOwnKeys = _ref2.allOwnKeys; + forEach(b, function (val, key) { + if (thisArg && isFunction(val)) { + a[key] = (0, _bind.default)(val, thisArg); + } else { + a[key] = val; + } + }, { + allOwnKeys: allOwnKeys + }); + return a; + }; + + var stripBOM = function stripBOM(content) { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; + }; + + var inherits = function inherits(constructor, superConstructor, props, descriptors) { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); + }; + + var toFlatObject = function toFlatObject(sourceObj, destObj, filter, propFilter) { + var props; + var i; + var prop; + var merged = {}; + destObj = destObj || {}; + if (sourceObj == null) return destObj; + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + return destObj; + }; + + var endsWith = function endsWith(str, searchString, position) { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + var lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; + }; + + var toArray = function toArray(thing) { + if (!thing) return null; + if (isArray(thing)) return thing; + var i = thing.length; + if (!isNumber(i)) return null; + var arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; + }; + + var isTypedArray = function (TypedArray) { + return function (thing) { + return TypedArray && thing instanceof TypedArray; + }; + }(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + + var forEachEntry = function forEachEntry(obj, fn) { + var generator = obj && obj[Symbol.iterator]; + var iterator = generator.call(obj); + var result; + while ((result = iterator.next()) && !result.done) { + var pair = result.value; + fn.call(obj, pair[0], pair[1]); + } + }; + + var matchAll = function matchAll(regExp, str) { + var matches; + var arr = []; + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + return arr; + }; + + var isHTMLForm = kindOfTest('HTMLFormElement'); + var toCamelCase = function toCamelCase(str) { + return str.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + }); + }; + + var hasOwnProperty = function (_ref3) { + var hasOwnProperty = _ref3.hasOwnProperty; + return function (obj, prop) { + return hasOwnProperty.call(obj, prop); + }; + }(Object.prototype); + + var isRegExp = kindOfTest('RegExp'); + var reduceDescriptors = function reduceDescriptors(obj, reducer) { + var descriptors = Object.getOwnPropertyDescriptors(obj); + var reducedDescriptors = {}; + forEach(descriptors, function (descriptor, name) { + if (reducer(descriptor, name, obj) !== false) { + reducedDescriptors[name] = descriptor; + } + }); + Object.defineProperties(obj, reducedDescriptors); + }; + + var freezeMethods = function freezeMethods(obj) { + reduceDescriptors(obj, function (descriptor, name) { + var value = obj[name]; + if (!isFunction(value)) return; + descriptor.enumerable = false; + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + if (!descriptor.set) { + descriptor.set = function () { + throw Error('Can not read-only method \'' + name + '\''); + }; + } + }); + }; + var toObjectSet = function toObjectSet(arrayOrString, delimiter) { + var obj = {}; + var define = function define(arr) { + arr.forEach(function (value) { + obj[value] = true; + }); + }; + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + return obj; + }; + var noop = function noop() {}; + var toFiniteNumber = function toFiniteNumber(value, defaultValue) { + value = +value; + return Number.isFinite(value) ? value : defaultValue; + }; + var _default = { + isArray: isArray, + isArrayBuffer: isArrayBuffer, + isBuffer: isBuffer, + isFormData: isFormData, + isArrayBufferView: isArrayBufferView, + isString: isString, + isNumber: isNumber, + isBoolean: isBoolean, + isObject: isObject, + isPlainObject: isPlainObject, + isUndefined: isUndefined, + isDate: isDate, + isFile: isFile, + isBlob: isBlob, + isRegExp: isRegExp, + isFunction: isFunction, + isStream: isStream, + isURLSearchParams: isURLSearchParams, + isTypedArray: isTypedArray, + isFileList: isFileList, + forEach: forEach, + merge: merge, + extend: extend, + trim: trim, + stripBOM: stripBOM, + inherits: inherits, + toFlatObject: toFlatObject, + kindOf: kindOf, + kindOfTest: kindOfTest, + endsWith: endsWith, + toArray: toArray, + forEachEntry: forEachEntry, + matchAll: matchAll, + isHTMLForm: isHTMLForm, + hasOwnProperty: hasOwnProperty, + hasOwnProp: hasOwnProperty, + reduceDescriptors: reduceDescriptors, + freezeMethods: freezeMethods, + toObjectSet: toObjectSet, + toCamelCase: toCamelCase, + noop: noop, + toFiniteNumber: toFiniteNumber + }; + exports.default = _default; +},503,[3,504],"node_modules/axios/lib/utils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = bind; + function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; + } +},504,[],"node_modules/axios/lib/helpers/bind.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./../utils.js")); + var _buildURL = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../helpers/buildURL.js")); + var _InterceptorManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./InterceptorManager.js")); + var _dispatchRequest = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./dispatchRequest.js")); + var _mergeConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./mergeConfig.js")); + var _buildFullPath = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./buildFullPath.js")); + var _validator = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../helpers/validator.js")); + var _AxiosHeaders = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AxiosHeaders.js")); + var validators = _validator.default.validators; + + var Axios = function () { + function Axios(instanceConfig) { + (0, _classCallCheck2.default)(this, Axios); + this.defaults = instanceConfig; + this.interceptors = { + request: new _InterceptorManager.default(), + response: new _InterceptorManager.default() + }; + } + + (0, _createClass2.default)(Axios, [{ + key: "request", + value: + function request(configOrUrl, config) { + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + config = (0, _mergeConfig.default)(this.defaults, config); + var _config = config, + transitional = _config.transitional, + paramsSerializer = _config.paramsSerializer; + if (transitional !== undefined) { + _validator.default.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + if (paramsSerializer !== undefined) { + _validator.default.assertOptions(paramsSerializer, { + encode: validators.function, + serialize: validators.function + }, true); + } + + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + var defaultHeaders = config.headers && _utils.default.merge(config.headers.common, config.headers[config.method]); + defaultHeaders && _utils.default.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { + delete config.headers[method]; + }); + config.headers = new _AxiosHeaders.default(config.headers, defaultHeaders); + + var requestInterceptorChain = []; + var synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + var responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + var promise; + var i = 0; + var len; + if (!synchronousRequestInterceptors) { + var chain = [_dispatchRequest.default.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + promise = Promise.resolve(config); + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + return promise; + } + len = requestInterceptorChain.length; + var newConfig = config; + i = 0; + while (i < len) { + var onFulfilled = requestInterceptorChain[i++]; + var onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + try { + promise = _dispatchRequest.default.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + i = 0; + len = responseInterceptorChain.length; + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + return promise; + } + }, { + key: "getUri", + value: function getUri(config) { + config = (0, _mergeConfig.default)(this.defaults, config); + var fullPath = (0, _buildFullPath.default)(config.baseURL, config.url); + return (0, _buildURL.default)(fullPath, config.params, config.paramsSerializer); + } + }]); + return Axios; + }(); + _utils.default.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + Axios.prototype[method] = function (url, config) { + return this.request((0, _mergeConfig.default)(config || {}, { + method: method, + url: url, + data: (config || {}).data + })); + }; + }); + _utils.default.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request((0, _mergeConfig.default)(config || {}, { + method: method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url: url, + data: data + })); + }; + } + Axios.prototype[method] = generateHTTPMethod(); + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); + }); + var _default = Axios; + exports.default = _default; +},505,[3,12,13,503,506,512,513,537,527,538,533],"node_modules/axios/lib/core/Axios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = buildURL; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _AxiosURLSearchParams = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../helpers/AxiosURLSearchParams.js")); + function encode(val) { + return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']'); + } + + function buildURL(url, params, options) { + if (!params) { + return url; + } + var _encode = options && options.encode || encode; + var serializeFn = options && options.serialize; + var serializedParams; + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = _utils.default.isURLSearchParams(params) ? params.toString() : new _AxiosURLSearchParams.default(params, options).toString(_encode); + } + if (serializedParams) { + var hashmarkIndex = url.indexOf("#"); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + return url; + } +},506,[3,503,507],"node_modules/axios/lib/helpers/buildURL.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _toFormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./toFormData.js")); + function encode(str) { + var charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); + } + + function AxiosURLSearchParams(params, options) { + this._pairs = []; + params && (0, _toFormData.default)(params, this, options); + } + var prototype = AxiosURLSearchParams.prototype; + prototype.append = function append(name, value) { + this._pairs.push([name, value]); + }; + prototype.toString = function toString(encoder) { + var _encode = encoder ? function (value) { + return encoder.call(this, value, encode); + } : encode; + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); + }; + var _default = AxiosURLSearchParams; + exports.default = _default; +},507,[3,508],"node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../core/AxiosError.js")); + var _FormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../env/classes/FormData.js")); + function isVisitable(thing) { + return _utils.default.isPlainObject(thing) || _utils.default.isArray(thing); + } + + function removeBrackets(key) { + return _utils.default.endsWith(key, '[]') ? key.slice(0, -2) : key; + } + + function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); + } + + function isFlatArray(arr) { + return _utils.default.isArray(arr) && !arr.some(isVisitable); + } + var predicates = _utils.default.toFlatObject(_utils.default, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); + }); + + function isSpecCompliant(thing) { + return thing && _utils.default.isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]; + } + + function toFormData(obj, formData, options) { + if (!_utils.default.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + formData = formData || new (_FormData.default || FormData)(); + + options = _utils.default.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + return !_utils.default.isUndefined(source[option]); + }); + var metaTokens = options.metaTokens; + var visitor = options.visitor || defaultVisitor; + var dots = options.dots; + var indexes = options.indexes; + var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + var useBlob = _Blob && isSpecCompliant(formData); + if (!_utils.default.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + function convertValue(value) { + if (value === null) return ''; + if (_utils.default.isDate(value)) { + return value.toISOString(); + } + if (!useBlob && _utils.default.isBlob(value)) { + throw new _AxiosError.default('Blob is not supported. Use a Buffer instead.'); + } + if (_utils.default.isArrayBuffer(value) || _utils.default.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + return value; + } + + function defaultVisitor(value, key, path) { + var arr = value; + if (value && !path && typeof value === 'object') { + if (_utils.default.endsWith(key, '{}')) { + key = metaTokens ? key : key.slice(0, -2); + value = JSON.stringify(value); + } else if (_utils.default.isArray(value) && isFlatArray(value) || _utils.default.isFileList(value) || _utils.default.endsWith(key, '[]') && (arr = _utils.default.toArray(value))) { + key = removeBrackets(key); + arr.forEach(function each(el, index) { + !(_utils.default.isUndefined(el) || el === null) && formData.append( + indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el)); + }); + return false; + } + } + if (isVisitable(value)) { + return true; + } + formData.append(renderKey(path, key, dots), convertValue(value)); + return false; + } + var stack = []; + var exposedHelpers = Object.assign(predicates, { + defaultVisitor: defaultVisitor, + convertValue: convertValue, + isVisitable: isVisitable + }); + function build(value, path) { + if (_utils.default.isUndefined(value)) return; + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + stack.push(value); + _utils.default.forEach(value, function each(el, key) { + var result = !(_utils.default.isUndefined(el) || el === null) && visitor.call(formData, el, _utils.default.isString(key) ? key.trim() : key, path, exposedHelpers); + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + stack.pop(); + } + if (!_utils.default.isObject(obj)) { + throw new TypeError('data must be an object'); + } + build(obj); + return formData; + } + var _default = toFormData; + exports.default = _default; +},508,[3,503,509,510],"node_modules/axios/lib/helpers/toFormData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + function AxiosError(message, code, config, request, response) { + Error.call(this); + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = new Error().stack; + } + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); + } + _utils.default.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + message: this.message, + name: this.name, + description: this.description, + number: this.number, + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + config: this.config, + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } + }); + var prototype = AxiosError.prototype; + var descriptors = {}; + ['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' + ].forEach(function (code) { + descriptors[code] = { + value: code + }; + }); + Object.defineProperties(AxiosError, descriptors); + Object.defineProperty(prototype, 'isAxiosError', { + value: true + }); + + AxiosError.from = function (error, code, config, request, response, customProps) { + var axiosError = Object.create(prototype); + _utils.default.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, function (prop) { + return prop !== 'isAxiosError'; + }); + AxiosError.call(axiosError, error.message, code, config, request, response); + axiosError.cause = error; + axiosError.name = error.name; + customProps && Object.assign(axiosError, customProps); + return axiosError; + }; + var _default = AxiosError; + exports.default = _default; +},509,[3,503],"node_modules/axios/lib/core/AxiosError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _formData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "form-data")); + var _default = _formData.default; + exports.default = _default; +},510,[3,511],"node_modules/axios/lib/env/classes/FormData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = typeof self == 'object' ? self.FormData : window.FormData; +},511,[],"node_modules/form-data/lib/browser.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./../utils.js")); + var InterceptorManager = function () { + function InterceptorManager() { + (0, _classCallCheck2.default)(this, InterceptorManager); + this.handlers = []; + } + + (0, _createClass2.default)(InterceptorManager, [{ + key: "use", + value: + function use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled: fulfilled, + rejected: rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + }, { + key: "eject", + value: + function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + }, { + key: "clear", + value: + function clear() { + if (this.handlers) { + this.handlers = []; + } + } + + }, { + key: "forEach", + value: + function forEach(fn) { + _utils.default.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } + }]); + return InterceptorManager; + }(); + var _default = InterceptorManager; + exports.default = _default; +},512,[3,12,13,503],"node_modules/axios/lib/core/InterceptorManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = dispatchRequest; + var _transformData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./transformData.js")); + var _isCancel = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../cancel/isCancel.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../defaults/index.js")); + var _CanceledError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../cancel/CanceledError.js")); + var _AxiosHeaders = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../core/AxiosHeaders.js")); + function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + if (config.signal && config.signal.aborted) { + throw new _CanceledError.default(); + } + } + + function dispatchRequest(config) { + throwIfCancellationRequested(config); + config.headers = _AxiosHeaders.default.from(config.headers); + + config.data = _transformData.default.call(config, config.transformRequest); + var adapter = config.adapter || _index.default.adapter; + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + response.data = _transformData.default.call(config, config.transformResponse, response); + response.headers = _AxiosHeaders.default.from(response.headers); + return response; + }, function onAdapterRejection(reason) { + if (!(0, _isCancel.default)(reason)) { + throwIfCancellationRequested(config); + + if (reason && reason.response) { + reason.response.data = _transformData.default.call(config, config.transformResponse, reason.response); + reason.response.headers = _AxiosHeaders.default.from(reason.response.headers); + } + } + return Promise.reject(reason); + }); + } +},513,[3,514,536,515,531,533],"node_modules/axios/lib/core/dispatchRequest.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = transformData; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../defaults/index.js")); + var _AxiosHeaders = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../core/AxiosHeaders.js")); + function transformData(fns, response) { + var config = this || _index.default; + var context = response || config; + var headers = _AxiosHeaders.default.from(context.headers); + var data = context.data; + _utils.default.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + headers.normalize(); + return data; + } +},514,[3,503,515,533],"node_modules/axios/lib/core/transformData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../core/AxiosError.js")); + var _transitional = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./transitional.js")); + var _toFormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../helpers/toFormData.js")); + var _toURLEncodedForm = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../helpers/toURLEncodedForm.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../platform/index.js")); + var _formDataToJSON = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../helpers/formDataToJSON.js")); + var _index2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../adapters/index.js")); + var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' + }; + + function getDefaultAdapter() { + var adapter; + if (typeof XMLHttpRequest !== 'undefined') { + adapter = _index2.default.getAdapter('xhr'); + } else if (typeof process !== 'undefined' && _utils.default.kindOf(process) === 'process') { + adapter = _index2.default.getAdapter('http'); + } + return adapter; + } + + function stringifySafely(rawValue, parser, encoder) { + if (_utils.default.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return _utils.default.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + return (encoder || JSON.stringify)(rawValue); + } + var defaults = { + transitional: _transitional.default, + adapter: getDefaultAdapter(), + transformRequest: [function transformRequest(data, headers) { + var contentType = headers.getContentType() || ''; + var hasJSONContentType = contentType.indexOf('application/json') > -1; + var isObjectPayload = _utils.default.isObject(data); + if (isObjectPayload && _utils.default.isHTMLForm(data)) { + data = new FormData(data); + } + var isFormData = _utils.default.isFormData(data); + if (isFormData) { + if (!hasJSONContentType) { + return data; + } + return hasJSONContentType ? JSON.stringify((0, _formDataToJSON.default)(data)) : data; + } + if (_utils.default.isArrayBuffer(data) || _utils.default.isBuffer(data) || _utils.default.isStream(data) || _utils.default.isFile(data) || _utils.default.isBlob(data)) { + return data; + } + if (_utils.default.isArrayBufferView(data)) { + return data.buffer; + } + if (_utils.default.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + var isFileList; + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return (0, _toURLEncodedForm.default)(data, this.formSerializer).toString(); + } + if ((isFileList = _utils.default.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + var _FormData = this.env && this.env.FormData; + return (0, _toFormData.default)(isFileList ? { + 'files[]': data + } : data, _FormData && new _FormData(), this.formSerializer); + } + } + if (isObjectPayload || hasJSONContentType) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + return data; + }], + transformResponse: [function transformResponse(data) { + var transitional = this.transitional || defaults.transitional; + var forcedJSONParsing = transitional && transitional.forcedJSONParsing; + var JSONRequested = this.responseType === 'json'; + if (data && _utils.default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) { + var silentJSONParsing = transitional && transitional.silentJSONParsing; + var strictJSONParsing = !silentJSONParsing && JSONRequested; + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw _AxiosError.default.from(e, _AxiosError.default.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + return data; + }], + timeout: 0, + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + maxContentLength: -1, + maxBodyLength: -1, + env: { + FormData: _index.default.classes.FormData, + Blob: _index.default.classes.Blob + }, + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + headers: { + common: { + 'Accept': 'application/json, text/plain, */*' + } + } + }; + _utils.default.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { + defaults.headers[method] = {}; + }); + _utils.default.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + defaults.headers[method] = _utils.default.merge(DEFAULT_CONTENT_TYPE); + }); + var _default = defaults; + exports.default = _default; +},515,[3,503,509,516,508,517,518,522,523],"node_modules/axios/lib/defaults/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false + }; + exports.default = _default; +},516,[],"node_modules/axios/lib/defaults/transitional.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = toURLEncodedForm; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _toFormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./toFormData.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../platform/index.js")); + function toURLEncodedForm(data, options) { + return (0, _toFormData.default)(data, new _index.default.classes.URLSearchParams(), Object.assign({ + visitor: function visitor(value, key, path, helpers) { + if (_index.default.isNode && _utils.default.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); + } +},517,[3,503,508,518],"node_modules/axios/lib/helpers/toURLEncodedForm.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "default", { + enumerable: true, + get: function get() { + return _index.default; + } + }); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./node/index.js")); +},518,[3,519],"node_modules/axios/lib/platform/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _URLSearchParams = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./classes/URLSearchParams.js")); + var _FormData = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./classes/FormData.js")); + var isStandardBrowserEnv = function () { + var product; + if (typeof navigator !== 'undefined' && ((product = navigator.product) === 'ReactNative' || product === 'NativeScript' || product === 'NS')) { + return false; + } + return typeof window !== 'undefined' && typeof document !== 'undefined'; + }(); + var _default = { + isBrowser: true, + classes: { + URLSearchParams: _URLSearchParams.default, + FormData: _FormData.default, + Blob: Blob + }, + isStandardBrowserEnv: isStandardBrowserEnv, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] + }; + exports.default = _default; +},519,[3,520,521],"node_modules/axios/lib/platform/browser/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _AxiosURLSearchParams = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../../helpers/AxiosURLSearchParams.js")); + var _default = typeof URLSearchParams !== 'undefined' ? URLSearchParams : _AxiosURLSearchParams.default; + exports.default = _default; +},520,[3,507],"node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = FormData; + exports.default = _default; +},521,[],"node_modules/axios/lib/platform/browser/classes/FormData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + function parsePropPath(name) { + return _utils.default.matchAll(/\w+|\[(\w*)]/g, name).map(function (match) { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); + } + + function arrayToObject(arr) { + var obj = {}; + var keys = Object.keys(arr); + var i; + var len = keys.length; + var key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; + } + + function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + var name = path[index++]; + var isNumericKey = Number.isFinite(+name); + var isLast = index >= path.length; + name = !name && _utils.default.isArray(target) ? target.length : name; + if (isLast) { + if (_utils.default.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + return !isNumericKey; + } + if (!target[name] || !_utils.default.isObject(target[name])) { + target[name] = []; + } + var result = buildPath(path, value, target[name], index); + if (result && _utils.default.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + return !isNumericKey; + } + if (_utils.default.isFormData(formData) && _utils.default.isFunction(formData.entries)) { + var obj = {}; + _utils.default.forEachEntry(formData, function (name, value) { + buildPath(parsePropPath(name), value, obj, 0); + }); + return obj; + } + return null; + } + var _default = formDataToJSON; + exports.default = _default; +},522,[3,503],"node_modules/axios/lib/helpers/formDataToJSON.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _http = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./http.js")); + var _xhr = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./xhr.js")); + var adapters = { + http: _http.default, + xhr: _xhr.default + }; + var _default = { + getAdapter: function getAdapter(nameOrAdapter) { + if (_utils.default.isString(nameOrAdapter)) { + var adapter = adapters[nameOrAdapter]; + if (!nameOrAdapter) { + throw Error(_utils.default.hasOwnProp(nameOrAdapter) ? "Adapter '" + nameOrAdapter + "' is not available in the build" : "Can not resolve adapter '" + nameOrAdapter + "'"); + } + return adapter; + } + if (!_utils.default.isFunction(nameOrAdapter)) { + throw new TypeError('adapter is not a function'); + } + return nameOrAdapter; + }, + adapters: adapters + }; + exports.default = _default; +},523,[3,503,524,524],"node_modules/axios/lib/adapters/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = xhrAdapter; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + var _settle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./../core/settle.js")); + var _cookies = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./../helpers/cookies.js")); + var _buildURL = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./../helpers/buildURL.js")); + var _buildFullPath = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../core/buildFullPath.js")); + var _isURLSameOrigin = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./../helpers/isURLSameOrigin.js")); + var _transitional = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../defaults/transitional.js")); + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../core/AxiosError.js")); + var _CanceledError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../cancel/CanceledError.js")); + var _parseProtocol = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../helpers/parseProtocol.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../platform/index.js")); + var _AxiosHeaders = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../core/AxiosHeaders.js")); + var _speedometer2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../helpers/speedometer.js")); + function progressEventReducer(listener, isDownloadStream) { + var bytesNotified = 0; + var _speedometer = (0, _speedometer2.default)(50, 250); + return function (e) { + var loaded = e.loaded; + var total = e.lengthComputable ? e.total : undefined; + var progressBytes = loaded - bytesNotified; + var rate = _speedometer(progressBytes); + var inRange = loaded <= total; + bytesNotified = loaded; + var data = { + loaded: loaded, + total: total, + progress: total ? loaded / total : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined + }; + data[isDownloadStream ? 'download' : 'upload'] = true; + listener(data); + }; + } + function xhrAdapter(config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + var requestData = config.data; + var requestHeaders = _AxiosHeaders.default.from(config.headers).normalize(); + var responseType = config.responseType; + var onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + if (_utils.default.isFormData(requestData) && _index.default.isStandardBrowserEnv) { + requestHeaders.setContentType(false); + } + + var request = new XMLHttpRequest(); + + if (config.auth) { + var username = config.auth.username || ''; + var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + var fullPath = (0, _buildFullPath.default)(config.baseURL, config.url); + request.open(config.method.toUpperCase(), (0, _buildURL.default)(fullPath, config.params, config.paramsSerializer), true); + + request.timeout = config.timeout; + function onloadend() { + if (!request) { + return; + } + var responseHeaders = _AxiosHeaders.default.from('getAllResponseHeaders' in request && request.getAllResponseHeaders()); + var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; + (0, _settle.default)(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + request = null; + } + if ('onloadend' in request) { + request.onloadend = onloadend; + } else { + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + setTimeout(onloadend); + }; + } + + request.onabort = function handleAbort() { + if (!request) { + return; + } + reject(new _AxiosError.default('Request aborted', _AxiosError.default.ECONNABORTED, config, request)); + + request = null; + }; + + request.onerror = function handleError() { + reject(new _AxiosError.default('Network Error', _AxiosError.default.ERR_NETWORK, config, request)); + + request = null; + }; + + request.ontimeout = function handleTimeout() { + var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + var transitional = config.transitional || _transitional.default; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new _AxiosError.default(timeoutErrorMessage, transitional.clarifyTimeoutError ? _AxiosError.default.ETIMEDOUT : _AxiosError.default.ECONNABORTED, config, request)); + + request = null; + }; + + if (_index.default.isStandardBrowserEnv) { + var xsrfValue = (config.withCredentials || (0, _isURLSameOrigin.default)(fullPath)) && config.xsrfCookieName && _cookies.default.read(config.xsrfCookieName); + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + + requestData === undefined && requestHeaders.setContentType(null); + + if ('setRequestHeader' in request) { + _utils.default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + if (!_utils.default.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + if (config.cancelToken || config.signal) { + onCanceled = function onCanceled(cancel) { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new _CanceledError.default(null, config, request) : cancel); + request.abort(); + request = null; + }; + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + var protocol = (0, _parseProtocol.default)(fullPath); + if (protocol && _index.default.protocols.indexOf(protocol) === -1) { + reject(new _AxiosError.default('Unsupported protocol ' + protocol + ':', _AxiosError.default.ERR_BAD_REQUEST, config)); + return; + } + + request.send(requestData || null); + }); + } +},524,[3,503,525,526,506,527,530,516,509,531,532,518,533,535],"node_modules/axios/lib/adapters/xhr.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = settle; + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./AxiosError.js")); + function settle(resolve, reject, response) { + var validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new _AxiosError.default('Request failed with status code ' + response.status, [_AxiosError.default.ERR_BAD_REQUEST, _AxiosError.default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response)); + } + } +},525,[3,509],"node_modules/axios/lib/core/settle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../platform/index.js")); + var _default = _index.default.isStandardBrowserEnv ? + function standardBrowserEnv() { + return { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); + if (_utils.default.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } + if (_utils.default.isString(path)) { + cookie.push('path=' + path); + } + if (_utils.default.isString(domain)) { + cookie.push('domain=' + domain); + } + if (secure === true) { + cookie.push('secure'); + } + document.cookie = cookie.join('; '); + }, + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return match ? decodeURIComponent(match[3]) : null; + }, + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + }() : + function nonStandardBrowserEnv() { + return { + write: function write() {}, + read: function read() { + return null; + }, + remove: function remove() {} + }; + }(); + exports.default = _default; +},526,[3,503,518],"node_modules/axios/lib/helpers/cookies.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = buildFullPath; + var _isAbsoluteURL = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../helpers/isAbsoluteURL.js")); + var _combineURLs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../helpers/combineURLs.js")); + function buildFullPath(baseURL, requestedURL) { + if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) { + return (0, _combineURLs.default)(baseURL, requestedURL); + } + return requestedURL; + } +},527,[3,528,529],"node_modules/axios/lib/core/buildFullPath.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = isAbsoluteURL; + function isAbsoluteURL(url) { + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); + } +},528,[],"node_modules/axios/lib/helpers/isAbsoluteURL.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = combineURLs; + function combineURLs(baseURL, relativeURL) { + return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; + } +},529,[],"node_modules/axios/lib/helpers/combineURLs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + var _index = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../platform/index.js")); + var _default = _index.default.isStandardBrowserEnv ? + function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement('a'); + var originURL; + + function resolveURL(url) { + var href = url; + if (msie) { + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + urlParsingNode.setAttribute('href', href); + + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname + }; + } + originURL = resolveURL(window.location.href); + + return function isURLSameOrigin(requestURL) { + var parsed = _utils.default.isString(requestURL) ? resolveURL(requestURL) : requestURL; + return parsed.protocol === originURL.protocol && parsed.host === originURL.host; + }; + }() : + function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + }(); + exports.default = _default; +},530,[3,503,518],"node_modules/axios/lib/helpers/isURLSameOrigin.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../core/AxiosError.js")); + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../utils.js")); + function CanceledError(message, config, request) { + _AxiosError.default.call(this, message == null ? 'canceled' : message, _AxiosError.default.ERR_CANCELED, config, request); + this.name = 'CanceledError'; + } + _utils.default.inherits(CanceledError, _AxiosError.default, { + __CANCEL__: true + }); + var _default = CanceledError; + exports.default = _default; +},531,[3,509,503],"node_modules/axios/lib/cancel/CanceledError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = parseProtocol; + function parseProtocol(url) { + var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; + } +},532,[],"node_modules/axios/lib/helpers/parseProtocol.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + var _parseHeaders = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../helpers/parseHeaders.js")); + var $internals = Symbol('internals'); + var $defaults = Symbol('defaults'); + function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); + } + function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + return _utils.default.isArray(value) ? value.map(normalizeValue) : String(value); + } + function parseTokens(str) { + var tokens = Object.create(null); + var tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + var match; + while (match = tokensRE.exec(str)) { + tokens[match[1]] = match[2]; + } + return tokens; + } + function matchHeaderValue(context, value, header, filter) { + if (_utils.default.isFunction(filter)) { + return filter.call(this, value, header); + } + if (!_utils.default.isString(value)) return; + if (_utils.default.isString(filter)) { + return value.indexOf(filter) !== -1; + } + if (_utils.default.isRegExp(filter)) { + return filter.test(value); + } + } + function formatHeader(header) { + return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (w, char, str) { + return char.toUpperCase() + str; + }); + } + function buildAccessors(obj, header) { + var accessorName = _utils.default.toCamelCase(' ' + header); + ['get', 'set', 'has'].forEach(function (methodName) { + Object.defineProperty(obj, methodName + accessorName, { + value: function value(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); + } + function findKey(obj, key) { + key = key.toLowerCase(); + var keys = Object.keys(obj); + var i = keys.length; + var _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; + } + function AxiosHeaders(headers, defaults) { + headers && this.set(headers); + this[$defaults] = defaults || null; + } + Object.assign(AxiosHeaders.prototype, { + set: function set(header, valueOrRewrite, rewrite) { + var self = this; + function setHeader(_value, _header, _rewrite) { + var lHeader = normalizeHeader(_header); + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + var key = findKey(self, lHeader); + if (key && _rewrite !== true && (self[key] === false || _rewrite === false)) { + return; + } + self[key || _header] = normalizeValue(_value); + } + if (_utils.default.isPlainObject(header)) { + _utils.default.forEach(header, function (_value, _header) { + setHeader(_value, _header, valueOrRewrite); + }); + } else { + setHeader(valueOrRewrite, header, rewrite); + } + return this; + }, + get: function get(header, parser) { + header = normalizeHeader(header); + if (!header) return undefined; + var key = findKey(this, header); + if (key) { + var value = this[key]; + if (!parser) { + return value; + } + if (parser === true) { + return parseTokens(value); + } + if (_utils.default.isFunction(parser)) { + return parser.call(this, value, key); + } + if (_utils.default.isRegExp(parser)) { + return parser.exec(value); + } + throw new TypeError('parser must be boolean|regexp|function'); + } + }, + has: function has(header, matcher) { + header = normalizeHeader(header); + if (header) { + var key = findKey(this, header); + return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + return false; + }, + delete: function _delete(header, matcher) { + var self = this; + var deleted = false; + function deleteHeader(_header) { + _header = normalizeHeader(_header); + if (_header) { + var key = findKey(self, _header); + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + deleted = true; + } + } + } + if (_utils.default.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + return deleted; + }, + clear: function clear() { + return Object.keys(this).forEach(this.delete.bind(this)); + }, + normalize: function normalize(format) { + var self = this; + var headers = {}; + _utils.default.forEach(this, function (value, header) { + var key = findKey(headers, header); + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + var normalized = format ? formatHeader(header) : String(header).trim(); + if (normalized !== header) { + delete self[header]; + } + self[normalized] = normalizeValue(value); + headers[normalized] = true; + }); + return this; + }, + toJSON: function toJSON(asStrings) { + var obj = Object.create(null); + _utils.default.forEach(Object.assign({}, this[$defaults] || null, this), function (value, header) { + if (value == null || value === false) return; + obj[header] = asStrings && _utils.default.isArray(value) ? value.join(', ') : value; + }); + return obj; + } + }); + Object.assign(AxiosHeaders, { + from: function from(thing) { + if (_utils.default.isString(thing)) { + return new this((0, _parseHeaders.default)(thing)); + } + return thing instanceof this ? thing : new this(thing); + }, + accessor: function accessor(header) { + var internals = this[$internals] = this[$internals] = { + accessors: {} + }; + var accessors = internals.accessors; + var prototype = this.prototype; + function defineAccessor(_header) { + var lHeader = normalizeHeader(_header); + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + _utils.default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + return this; + } + }); + AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent']); + _utils.default.freezeMethods(AxiosHeaders.prototype); + _utils.default.freezeMethods(AxiosHeaders); + var _default = AxiosHeaders; + exports.default = _default; +},533,[3,503,534],"node_modules/axios/lib/core/AxiosHeaders.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + var ignoreDuplicateOf = _utils.default.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']); + + var _default = function _default(rawHeaders) { + var parsed = {}; + var key; + var val; + var i; + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + if (!key || parsed[key] && ignoreDuplicateOf[key]) { + return; + } + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + return parsed; + }; + exports.default = _default; +},534,[3,503],"node_modules/axios/lib/helpers/parseHeaders.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + var bytes = new Array(samplesCount); + var timestamps = new Array(samplesCount); + var head = 0; + var tail = 0; + var firstSampleTS; + min = min !== undefined ? min : 1000; + return function push(chunkLength) { + var now = Date.now(); + var startedAt = timestamps[tail]; + if (!firstSampleTS) { + firstSampleTS = now; + } + bytes[head] = chunkLength; + timestamps[head] = now; + var i = tail; + var bytesCount = 0; + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + head = (head + 1) % samplesCount; + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + if (now - firstSampleTS < min) { + return; + } + var passed = startedAt && now - startedAt; + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; + } + var _default = speedometer; + exports.default = _default; +},535,[],"node_modules/axios/lib/helpers/speedometer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = isCancel; + function isCancel(value) { + return !!(value && value.__CANCEL__); + } +},536,[],"node_modules/axios/lib/cancel/isCancel.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = mergeConfig; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../utils.js")); + function mergeConfig(config1, config2) { + config2 = config2 || {}; + var config = {}; + function getMergedValue(target, source) { + if (_utils.default.isPlainObject(target) && _utils.default.isPlainObject(source)) { + return _utils.default.merge(target, source); + } else if (_utils.default.isPlainObject(source)) { + return _utils.default.merge({}, source); + } else if (_utils.default.isArray(source)) { + return source.slice(); + } + return source; + } + + function mergeDeepProperties(prop) { + if (!_utils.default.isUndefined(config2[prop])) { + return getMergedValue(config1[prop], config2[prop]); + } else if (!_utils.default.isUndefined(config1[prop])) { + return getMergedValue(undefined, config1[prop]); + } + } + + function valueFromConfig2(prop) { + if (!_utils.default.isUndefined(config2[prop])) { + return getMergedValue(undefined, config2[prop]); + } + } + + function defaultToConfig2(prop) { + if (!_utils.default.isUndefined(config2[prop])) { + return getMergedValue(undefined, config2[prop]); + } else if (!_utils.default.isUndefined(config1[prop])) { + return getMergedValue(undefined, config1[prop]); + } + } + + function mergeDirectKeys(prop) { + if (prop in config2) { + return getMergedValue(config1[prop], config2[prop]); + } else if (prop in config1) { + return getMergedValue(undefined, config1[prop]); + } + } + var mergeMap = { + 'url': valueFromConfig2, + 'method': valueFromConfig2, + 'data': valueFromConfig2, + 'baseURL': defaultToConfig2, + 'transformRequest': defaultToConfig2, + 'transformResponse': defaultToConfig2, + 'paramsSerializer': defaultToConfig2, + 'timeout': defaultToConfig2, + 'timeoutMessage': defaultToConfig2, + 'withCredentials': defaultToConfig2, + 'adapter': defaultToConfig2, + 'responseType': defaultToConfig2, + 'xsrfCookieName': defaultToConfig2, + 'xsrfHeaderName': defaultToConfig2, + 'onUploadProgress': defaultToConfig2, + 'onDownloadProgress': defaultToConfig2, + 'decompress': defaultToConfig2, + 'maxContentLength': defaultToConfig2, + 'maxBodyLength': defaultToConfig2, + 'beforeRedirect': defaultToConfig2, + 'transport': defaultToConfig2, + 'httpAgent': defaultToConfig2, + 'httpsAgent': defaultToConfig2, + 'cancelToken': defaultToConfig2, + 'socketPath': defaultToConfig2, + 'responseEncoding': defaultToConfig2, + 'validateStatus': mergeDirectKeys + }; + _utils.default.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { + var merge = mergeMap[prop] || mergeDeepProperties; + var configValue = merge(prop); + _utils.default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue); + }); + return config; + } +},537,[3,503],"node_modules/axios/lib/core/mergeConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _AxiosError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../core/AxiosError.js")); + var validators = {}; + + ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) { + validators[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; + }); + var deprecatedWarnings = {}; + + validators.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + _$$_REQUIRE(_dependencyMap[2], "../env/data.js").VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + return function (value, opt, opts) { + if (validator === false) { + throw new _AxiosError.default(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), _AxiosError.default.ERR_DEPRECATED); + } + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future')); + } + return validator ? validator(value, opt, opts) : true; + }; + }; + + function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new _AxiosError.default('options must be an object', _AxiosError.default.ERR_BAD_OPTION_VALUE); + } + var keys = Object.keys(options); + var i = keys.length; + while (i-- > 0) { + var opt = keys[i]; + var validator = schema[opt]; + if (validator) { + var value = options[opt]; + var result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new _AxiosError.default('option ' + opt + ' must be ' + result, _AxiosError.default.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new _AxiosError.default('Unknown option ' + opt, _AxiosError.default.ERR_BAD_OPTION); + } + } + } + var _default = { + assertOptions: assertOptions, + validators: validators + }; + exports.default = _default; +},538,[3,509,539],"node_modules/axios/lib/helpers/validator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VERSION = void 0; + var VERSION = "1.1.3"; + exports.VERSION = VERSION; +},539,[],"node_modules/axios/lib/env/data.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _CanceledError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./CanceledError.js")); + var CancelToken = function () { + function CancelToken(executor) { + (0, _classCallCheck2.default)(this, CancelToken); + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + var resolvePromise; + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + var token = this; + + this.promise.then(function (cancel) { + if (!token._listeners) return; + var i = token._listeners.length; + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + this.promise.then = function (onfulfilled) { + var _resolve; + var promise = new Promise(function (resolve) { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + return promise; + }; + executor(function cancel(message, config, request) { + if (token.reason) { + return; + } + token.reason = new _CanceledError.default(message, config, request); + resolvePromise(token.reason); + }); + } + + (0, _createClass2.default)(CancelToken, [{ + key: "throwIfRequested", + value: + function throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + }, { + key: "subscribe", + value: + + function subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + }, { + key: "unsubscribe", + value: + + function unsubscribe(listener) { + if (!this._listeners) { + return; + } + var index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + }], [{ + key: "source", + value: + function source() { + var cancel; + var token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token: token, + cancel: cancel + }; + } + }]); + return CancelToken; + }(); + var _default = CancelToken; + exports.default = _default; +},540,[3,12,13,531],"node_modules/axios/lib/cancel/CancelToken.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = spread; + function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; + } +},541,[],"node_modules/axios/lib/helpers/spread.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = isAxiosError; + var _utils = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./../utils.js")); + function isAxiosError(payload) { + return _utils.default.isObject(payload) && payload.isAxiosError === true; + } +},542,[3,503],"node_modules/axios/lib/helpers/isAxiosError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.APIVersion = void 0; + exports.getAPIVersionStringVal = getAPIVersionStringVal; + var APIVersion; + exports.APIVersion = APIVersion; + (function (APIVersion) { + APIVersion[APIVersion["v1"] = 0] = "v1"; + APIVersion[APIVersion["v2"] = 1] = "v2"; + APIVersion[APIVersion["v3"] = 2] = "v3"; + APIVersion[APIVersion["v4"] = 3] = "v4"; + APIVersion[APIVersion["v5"] = 4] = "v5"; + })(APIVersion || (exports.APIVersion = APIVersion = {})); + function getAPIVersionStringVal(apiVersion) { + switch (apiVersion) { + case APIVersion.v1: + return undefined; + case APIVersion.v2: + return "2021-09-27"; + case APIVersion.v3: + return "2021-10-19"; + case APIVersion.v4: + return "2021-12-01"; + case APIVersion.v5: + return "2021-12-10"; + } + } +},543,[],"src/network/APIVersion.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "Address", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./models/PrimerClientSession").PrimerAddress; + } + }); + Object.defineProperty(exports, "AssetsManager", { + enumerable: true, + get: function get() { + return _AssetsManager.default; + } + }); + Object.defineProperty(exports, "CheckoutAdditionalInfo", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1], "./models/PrimerCheckoutAdditionalInfo").PrimerCheckoutAdditionalInfo; + } + }); + Object.defineProperty(exports, "CheckoutData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2], "./models/PrimerCheckoutData").PrimerCheckoutData; + } + }); + Object.defineProperty(exports, "CheckoutDataPayment", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2], "./models/PrimerCheckoutData").PrimerCheckoutDataPayment; + } + }); + Object.defineProperty(exports, "CheckoutPaymentMethodData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3], "./models/PrimerCheckoutPaymentMethodData").PrimerCheckoutPaymentMethodData; + } + }); + Object.defineProperty(exports, "ClientSession", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./models/PrimerClientSession").PrimerClientSession; + } + }); + Object.defineProperty(exports, "Customer", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./models/PrimerClientSession").PrimerCustomer; + } + }); + Object.defineProperty(exports, "ErrorHandler", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[4], "./models/PrimerHandlers").PrimerErrorHandler; + } + }); + Object.defineProperty(exports, "HeadlessUniversalCheckout", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[5], "./HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout").PrimerHeadlessUniversalCheckout; + } + }); + Object.defineProperty(exports, "InputElementType", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[6], "./models/PrimerInputElementType").PrimerInputElementType; + } + }); + Object.defineProperty(exports, "LineItem", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./models/PrimerClientSession").PrimerLineItem; + } + }); + Object.defineProperty(exports, "MultibancoCheckoutAdditionalInfo", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1], "./models/PrimerCheckoutAdditionalInfo").MultibancoCheckoutAdditionalInfo; + } + }); + Object.defineProperty(exports, "NativeUIManager", { + enumerable: true, + get: function get() { + return _NativeUIManager.default; + } + }); + Object.defineProperty(exports, "Order", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./models/PrimerClientSession").PrimerOrder; + } + }); + Object.defineProperty(exports, "PaymentCreationHandler", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[4], "./models/PrimerHandlers").PrimerPaymentCreationHandler; + } + }); + Object.defineProperty(exports, "Primer", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[7], "./Primer").Primer; + } + }); + Object.defineProperty(exports, "PrimerError", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[8], "./models/PrimerError").PrimerError; + } + }); + Object.defineProperty(exports, "PrimerPaymentMethodTokenData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[9], "./models/PrimerPaymentMethodTokenData").PrimerPaymentMethodTokenData; + } + }); + Object.defineProperty(exports, "PrimerSettings", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[10], "./models/PrimerSettings").PrimerSettings; + } + }); + Object.defineProperty(exports, "RawBancontactCardRedirectData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11], "./models/PrimerRawData").PrimerRawBancontactCardRedirectData; + } + }); + Object.defineProperty(exports, "RawCardData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11], "./models/PrimerRawData").PrimerRawCardData; + } + }); + Object.defineProperty(exports, "RawData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11], "./models/PrimerRawData").PrimerRawData; + } + }); + Object.defineProperty(exports, "RawDataManager", { + enumerable: true, + get: function get() { + return _RawDataManager.default; + } + }); + Object.defineProperty(exports, "RawPhoneNumberData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11], "./models/PrimerRawData").PrimerRawPhoneNumberData; + } + }); + Object.defineProperty(exports, "RawRetailerData", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11], "./models/PrimerRawData").PrimerRawRetailerData; + } + }); + Object.defineProperty(exports, "ResumeHandler", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[4], "./models/PrimerHandlers").PrimerResumeHandler; + } + }); + Object.defineProperty(exports, "RetailOutletsRetail", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[12], "./models/RetailOutletsRetail").RetailOutletsRetail; + } + }); + Object.defineProperty(exports, "SessionIntent", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[13], "./models/PrimerSessionIntent").PrimerSessionIntent; + } + }); + Object.defineProperty(exports, "TokenizationHandler", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[4], "./models/PrimerHandlers").PrimerTokenizationHandler; + } + }); + var _AssetsManager = _$$_REQUIRE(_dependencyMap[14], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./HeadlessUniversalCheckout/Managers/AssetsManager")); + var _NativeUIManager = _$$_REQUIRE(_dependencyMap[14], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager")); + var _RawDataManager = _$$_REQUIRE(_dependencyMap[14], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "./HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager")); +},544,[545,546,547,548,549,550,567,568,556,570,571,572,573,574,551,575,576,577],"../src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},545,[],"../src/models/PrimerClientSession.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},546,[],"../src/models/PrimerCheckoutAdditionalInfo.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var PrimerPaymentErrorCode; + (function (PrimerPaymentErrorCode) { + PrimerPaymentErrorCode["FAILED"] = "payment-failed"; + PrimerPaymentErrorCode["CANCELLED_BY_CUSTOMER"] = "cancelled-by-customer"; + })(PrimerPaymentErrorCode || (PrimerPaymentErrorCode = {})); +},547,[],"../src/models/PrimerCheckoutData.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},548,[],"../src/models/PrimerCheckoutPaymentMethodData.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},549,[],"../src/models/PrimerHandlers.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.primerSettings = exports.PrimerHeadlessUniversalCheckout = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/asyncToGenerator")); + var _RNPrimerHeadlessUniversalCheckout = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./RNPrimerHeadlessUniversalCheckout")); + + var tokenizationHandler = { + continueWithNewClientToken: function () { + var _continueWithNewClientToken = (0, _asyncToGenerator2.default)(function* (newClientToken) { + try { + _RNPrimerHeadlessUniversalCheckout.default.handleTokenizationNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }); + function continueWithNewClientToken(_x) { + return _continueWithNewClientToken.apply(this, arguments); + } + return continueWithNewClientToken; + }(), + complete: function complete() { + _RNPrimerHeadlessUniversalCheckout.default.handleCompleteFlow(); + } + }; + + var resumeHandler = { + continueWithNewClientToken: function () { + var _continueWithNewClientToken2 = (0, _asyncToGenerator2.default)(function* (newClientToken) { + try { + _RNPrimerHeadlessUniversalCheckout.default.handleResumeWithNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }); + function continueWithNewClientToken(_x2) { + return _continueWithNewClientToken2.apply(this, arguments); + } + return continueWithNewClientToken; + }(), + complete: function complete() { + _RNPrimerHeadlessUniversalCheckout.default.handleCompleteFlow(); + } + }; + + var paymentCreationHandler = { + abortPaymentCreation: function () { + var _abortPaymentCreation = (0, _asyncToGenerator2.default)(function* (errorMessage) { + try { + _RNPrimerHeadlessUniversalCheckout.default.handlePaymentCreationAbort(errorMessage); + } catch (err) { + console.error(err); + } + }); + function abortPaymentCreation(_x3) { + return _abortPaymentCreation.apply(this, arguments); + } + return abortPaymentCreation; + }(), + continuePaymentCreation: function () { + var _continuePaymentCreation = (0, _asyncToGenerator2.default)(function* () { + try { + _RNPrimerHeadlessUniversalCheckout.default.handlePaymentCreationContinue(); + } catch (err) { + console.error(err); + } + }); + function continuePaymentCreation() { + return _continuePaymentCreation.apply(this, arguments); + } + return continuePaymentCreation; + }() + }; + var primerSettings = undefined; + exports.primerSettings = primerSettings; + function configureListeners() { + return _configureListeners.apply(this, arguments); + } + function _configureListeners() { + _configureListeners = (0, _asyncToGenerator2.default)(function* () { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + var _primerSettings, _primerSettings$headl, _primerSettings2, _primerSettings2$head, _primerSettings3, _primerSettings3$head, _primerSettings4, _primerSettings4$head, _primerSettings5, _primerSettings5$head, _primerSettings6, _primerSettings6$head, _primerSettings7, _primerSettings7$head, _primerSettings8, _primerSettings8$head, _primerSettings9, _primerSettings9$head, _primerSettings10, _primerSettings10$hea, _primerSettings11, _primerSettings11$hea, _primerSettings12, _primerSettings12$hea, _primerSettings13, _primerSettings13$hea; + _RNPrimerHeadlessUniversalCheckout.default.removeAllListeners(); + var implementedRNCallbacks = { + onAvailablePaymentMethodsLoad: ((_primerSettings = primerSettings) == null ? void 0 : (_primerSettings$headl = _primerSettings.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings$headl.onAvailablePaymentMethodsLoad) !== undefined || false, + onTokenizationStart: ((_primerSettings2 = primerSettings) == null ? void 0 : (_primerSettings2$head = _primerSettings2.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings2$head.onTokenizationStart) !== undefined || false, + onTokenizationSuccess: ((_primerSettings3 = primerSettings) == null ? void 0 : (_primerSettings3$head = _primerSettings3.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings3$head.onTokenizationSuccess) !== undefined || false, + onCheckoutResume: ((_primerSettings4 = primerSettings) == null ? void 0 : (_primerSettings4$head = _primerSettings4.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings4$head.onCheckoutResume) !== undefined || false, + onCheckoutPending: ((_primerSettings5 = primerSettings) == null ? void 0 : (_primerSettings5$head = _primerSettings5.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings5$head.onCheckoutPending) !== undefined || false, + onCheckoutAdditionalInfo: ((_primerSettings6 = primerSettings) == null ? void 0 : (_primerSettings6$head = _primerSettings6.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings6$head.onCheckoutAdditionalInfo) !== undefined || false, + onError: ((_primerSettings7 = primerSettings) == null ? void 0 : (_primerSettings7$head = _primerSettings7.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings7$head.onError) !== undefined || false, + onCheckoutComplete: ((_primerSettings8 = primerSettings) == null ? void 0 : (_primerSettings8$head = _primerSettings8.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings8$head.onCheckoutComplete) !== undefined || false, + onBeforeClientSessionUpdate: ((_primerSettings9 = primerSettings) == null ? void 0 : (_primerSettings9$head = _primerSettings9.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings9$head.onBeforeClientSessionUpdate) !== undefined || false, + onClientSessionUpdate: ((_primerSettings10 = primerSettings) == null ? void 0 : (_primerSettings10$hea = _primerSettings10.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings10$hea.onClientSessionUpdate) !== undefined || false, + onBeforePaymentCreate: ((_primerSettings11 = primerSettings) == null ? void 0 : (_primerSettings11$hea = _primerSettings11.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings11$hea.onBeforePaymentCreate) !== undefined || false, + onPreparationStart: ((_primerSettings12 = primerSettings) == null ? void 0 : (_primerSettings12$hea = _primerSettings12.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings12$hea.onPreparationStart) !== undefined || false, + onPaymentMethodShow: ((_primerSettings13 = primerSettings) == null ? void 0 : (_primerSettings13$hea = _primerSettings13.headlessUniversalCheckoutCallbacks) == null ? void 0 : _primerSettings13$hea.onPaymentMethodShow) !== undefined || false, + onDismiss: false + }; + yield _RNPrimerHeadlessUniversalCheckout.default.setImplementedRNCallbacks(implementedRNCallbacks); + if (implementedRNCallbacks.onAvailablePaymentMethodsLoad) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onAvailablePaymentMethodsLoad', function (data) { + var _primerSettings14, _primerSettings14$hea; + if ((_primerSettings14 = primerSettings) != null && (_primerSettings14$hea = _primerSettings14.headlessUniversalCheckoutCallbacks) != null && _primerSettings14$hea.onAvailablePaymentMethodsLoad) { + var availablePaymentMethods = data.availablePaymentMethods || []; + primerSettings.headlessUniversalCheckoutCallbacks.onAvailablePaymentMethodsLoad(availablePaymentMethods); + } else { + } + }); + } + if (implementedRNCallbacks.onPreparationStart) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onPreparationStart', function (data) { + var _primerSettings15, _primerSettings15$hea; + if ((_primerSettings15 = primerSettings) != null && (_primerSettings15$hea = _primerSettings15.headlessUniversalCheckoutCallbacks) != null && _primerSettings15$hea.onPreparationStart) { + primerSettings.headlessUniversalCheckoutCallbacks.onPreparationStart(data.paymentMethodType); + } else { + } + }); + } + if (implementedRNCallbacks.onBeforeClientSessionUpdate) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onBeforeClientSessionUpdate', function () { + var _primerSettings16, _primerSettings16$hea; + if ((_primerSettings16 = primerSettings) != null && (_primerSettings16$hea = _primerSettings16.headlessUniversalCheckoutCallbacks) != null && _primerSettings16$hea.onBeforeClientSessionUpdate) { + primerSettings.headlessUniversalCheckoutCallbacks.onBeforeClientSessionUpdate(); + } else { + } + }); + } + if (implementedRNCallbacks.onClientSessionUpdate) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onClientSessionUpdate', function (data) { + var _primerSettings17, _primerSettings17$hea; + if ((_primerSettings17 = primerSettings) != null && (_primerSettings17$hea = _primerSettings17.headlessUniversalCheckoutCallbacks) != null && _primerSettings17$hea.onClientSessionUpdate) { + var clientSession = data.clientSession; + primerSettings.headlessUniversalCheckoutCallbacks.onClientSessionUpdate(clientSession); + } else { + } + }); + } + if (implementedRNCallbacks.onBeforePaymentCreate) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onBeforePaymentCreate', function (data) { + var _primerSettings18, _primerSettings18$hea; + if ((_primerSettings18 = primerSettings) != null && (_primerSettings18$hea = _primerSettings18.headlessUniversalCheckoutCallbacks) != null && _primerSettings18$hea.onBeforePaymentCreate) { + var checkoutPaymentMethodData = data; + primerSettings.headlessUniversalCheckoutCallbacks.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); + } else { + } + }); + } + if (implementedRNCallbacks.onTokenizationStart) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onTokenizationStart', function (data) { + var _primerSettings19, _primerSettings19$hea; + if ((_primerSettings19 = primerSettings) != null && (_primerSettings19$hea = _primerSettings19.headlessUniversalCheckoutCallbacks) != null && _primerSettings19$hea.onTokenizationStart) { + primerSettings.headlessUniversalCheckoutCallbacks.onTokenizationStart(data.paymentMethodType); + } else { + } + }); + } + if (implementedRNCallbacks.onPaymentMethodShow) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onPaymentMethodShow', function (data) { + var _primerSettings20, _primerSettings20$hea; + if ((_primerSettings20 = primerSettings) != null && (_primerSettings20$hea = _primerSettings20.headlessUniversalCheckoutCallbacks) != null && _primerSettings20$hea.onPaymentMethodShow) { + primerSettings.headlessUniversalCheckoutCallbacks.onPaymentMethodShow(data.paymentMethodType); + } else { + } + }); + } + if (implementedRNCallbacks.onTokenizationSuccess) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onTokenizationSuccess', function (data) { + var _primerSettings21, _primerSettings21$hea; + if ((_primerSettings21 = primerSettings) != null && (_primerSettings21$hea = _primerSettings21.headlessUniversalCheckoutCallbacks) != null && _primerSettings21$hea.onTokenizationSuccess) { + var paymentMethodTokenData = data.paymentMethodTokenData; + primerSettings.headlessUniversalCheckoutCallbacks.onTokenizationSuccess(paymentMethodTokenData, tokenizationHandler); + } else { + } + }); + } + if (implementedRNCallbacks.onCheckoutResume) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onCheckoutResume', function (data) { + var _primerSettings22, _primerSettings22$hea; + if ((_primerSettings22 = primerSettings) != null && (_primerSettings22$hea = _primerSettings22.headlessUniversalCheckoutCallbacks) != null && _primerSettings22$hea.onCheckoutResume) { + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutResume(data.resumeToken, resumeHandler); + } else { + } + }); + } + if (implementedRNCallbacks.onCheckoutPending) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onCheckoutPending', function (data) { + var _primerSettings23, _primerSettings23$hea; + if ((_primerSettings23 = primerSettings) != null && (_primerSettings23$hea = _primerSettings23.headlessUniversalCheckoutCallbacks) != null && _primerSettings23$hea.onCheckoutPending) { + var checkoutAdditionalInfo = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutPending(checkoutAdditionalInfo); + } else { + } + }); + } + if (implementedRNCallbacks.onCheckoutAdditionalInfo) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onCheckoutAdditionalInfo', function (data) { + var _primerSettings24, _primerSettings24$hea; + if ((_primerSettings24 = primerSettings) != null && (_primerSettings24$hea = _primerSettings24.headlessUniversalCheckoutCallbacks) != null && _primerSettings24$hea.onCheckoutAdditionalInfo) { + var checkoutAdditionalInfo = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutAdditionalInfo(checkoutAdditionalInfo); + } else { + } + }); + } + if (implementedRNCallbacks.onCheckoutComplete) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onCheckoutComplete', function (data) { + var _primerSettings25, _primerSettings25$hea; + if ((_primerSettings25 = primerSettings) != null && (_primerSettings25$hea = _primerSettings25.headlessUniversalCheckoutCallbacks) != null && _primerSettings25$hea.onCheckoutComplete) { + var checkoutData = data; + primerSettings.headlessUniversalCheckoutCallbacks.onCheckoutComplete(checkoutData); + } else { + } + }); + } + if (implementedRNCallbacks.onError) { + _RNPrimerHeadlessUniversalCheckout.default.addListener('onError', function (data) { + var _primerSettings26, _primerSettings26$hea; + if ((_primerSettings26 = primerSettings) != null && (_primerSettings26$hea = _primerSettings26.headlessUniversalCheckoutCallbacks) != null && _primerSettings26$hea.onError) { + if (data && data.error && data.error.errorId && primerSettings) { + var errorId = data.error.errorId; + var description = data.error.description; + var recoverySuggestion = data.error.recoverySuggestion; + var primerError = new (_$$_REQUIRE(_dependencyMap[5], "../models/PrimerError").PrimerError)(errorId, description || 'Unknown error', recoverySuggestion); + var checkoutData = data.checkoutData; + primerSettings.headlessUniversalCheckoutCallbacks.onError(primerError, checkoutData); + } + } else { + } + }); + } + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x6, _x7) { + return _ref2.apply(this, arguments); + }; + }()); + }); + return _configureListeners.apply(this, arguments); + } + var PrimerHeadlessUniversalCheckoutClass = function () { + function PrimerHeadlessUniversalCheckoutClass() { + (0, _classCallCheck2.default)(this, PrimerHeadlessUniversalCheckoutClass); + } + + (0, _createClass2.default)(PrimerHeadlessUniversalCheckoutClass, [{ + key: "startWithClientToken", + value: + function startWithClientToken(clientToken, settings) { + exports.primerSettings = primerSettings = settings; + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield configureListeners(); + var res = yield _RNPrimerHeadlessUniversalCheckout.default.startWithClientToken(clientToken, settings); + if (res["availablePaymentMethods"]) { + var availablePaymentMethods = res["availablePaymentMethods"]; + resolve(availablePaymentMethods); + } else { + var err = new (_$$_REQUIRE(_dependencyMap[5], "../models/PrimerError").PrimerError)("primer-rn-sdk", "Failed to find availablePaymentMethods", "Create another client session"); + reject(err); + } + } catch (err) { + reject(err); + } + }); + return function (_x4, _x5) { + return _ref.apply(this, arguments); + }; + }()); + } + }, { + key: "disposePrimerHeadlessUniversalCheckout", + value: function disposePrimerHeadlessUniversalCheckout() { + return _RNPrimerHeadlessUniversalCheckout.default.disposePrimerHeadlessUniversalCheckout(); + } + }]); + return PrimerHeadlessUniversalCheckoutClass; + }(); + var PrimerHeadlessUniversalCheckout = new PrimerHeadlessUniversalCheckoutClass(); + exports.PrimerHeadlessUniversalCheckout = PrimerHeadlessUniversalCheckout; +},550,[551,552,553,554,555,556],"../src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; + } + module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; +},551,[],"../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; +},552,[],"../node_modules/@babel/runtime/helpers/classCallCheck.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; +},553,[],"../node_modules/@babel/runtime/helpers/createClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } + } + function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + _next(undefined); + }); + }; + } + module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; +},554,[],"../node_modules/@babel/runtime/helpers/asyncToGenerator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); + var PrimerHeadlessUniversalCheckout = _reactNative.NativeModules.PrimerHeadlessUniversalCheckout; + var eventEmitter = new _reactNative.NativeEventEmitter(PrimerHeadlessUniversalCheckout); + var eventTypes = ['onAvailablePaymentMethodsLoad', 'onTokenizationStart', 'onTokenizationSuccess', 'onCheckoutResume', 'onCheckoutPending', 'onCheckoutAdditionalInfo', 'onError', 'onCheckoutComplete', 'onBeforeClientSessionUpdate', 'onClientSessionUpdate', 'onBeforePaymentCreate', 'onPreparationStart', 'onPaymentMethodShow']; + var RNPrimerHeadlessUniversalCheckout = { + addListener: function addListener(eventType, listener) { + eventEmitter.addListener(eventType, listener); + }, + removeListener: function removeListener(eventType, listener) { + eventEmitter.removeListener(eventType, listener); + }, + removeAllListenersForEvent: function removeAllListenersForEvent(eventType) { + eventEmitter.removeAllListeners(eventType); + }, + removeAllListeners: function removeAllListeners() { + eventTypes.forEach(function (eventType) { + return RNPrimerHeadlessUniversalCheckout.removeAllListenersForEvent(eventType); + }); + }, + startWithClientToken: function startWithClientToken(clientToken, settings) { + return PrimerHeadlessUniversalCheckout.startWithClientToken(clientToken, JSON.stringify(settings)); + }, + + handleTokenizationNewClientToken: function handleTokenizationNewClientToken(newClientToken) { + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.handleTokenizationNewClientToken(newClientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x, _x2) { + return _ref.apply(this, arguments); + }; + }()); + }, + + handleResumeWithNewClientToken: function handleResumeWithNewClientToken(newClientToken) { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.handleResumeWithNewClientToken(newClientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x3, _x4) { + return _ref2.apply(this, arguments); + }; + }()); + }, + handleCompleteFlow: function handleCompleteFlow() { + return new Promise(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.handleCompleteFlow(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x5, _x6) { + return _ref3.apply(this, arguments); + }; + }()); + }, + + handlePaymentCreationAbort: function handlePaymentCreationAbort(errorMessage) { + return new Promise(function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.handlePaymentCreationAbort(errorMessage || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x7, _x8) { + return _ref4.apply(this, arguments); + }; + }()); + }, + handlePaymentCreationContinue: function handlePaymentCreationContinue() { + return new Promise(function () { + var _ref5 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.handlePaymentCreationContinue(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x9, _x10) { + return _ref5.apply(this, arguments); + }; + }()); + }, + + setImplementedRNCallbacks: function setImplementedRNCallbacks(implementedRNCallbacks) { + return new Promise(function () { + var _ref6 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.setImplementedRNCallbacks(JSON.stringify(implementedRNCallbacks)); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x11, _x12) { + return _ref6.apply(this, arguments); + }; + }()); + }, + disposePrimerHeadlessUniversalCheckout: function disposePrimerHeadlessUniversalCheckout() { + return new Promise(function () { + var _ref7 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield PrimerHeadlessUniversalCheckout.disposePrimerHeadlessUniversalCheckout(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x13, _x14) { + return _ref7.apply(this, arguments); + }; + }()); + } + }; + var _default = RNPrimerHeadlessUniversalCheckout; + exports.default = _default; +},555,[551,554,1],"../src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PrimerError = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/wrapNativeSuper")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var PrimerError = function (_Error) { + (0, _inherits2.default)(PrimerError, _Error); + var _super = _createSuper(PrimerError); + function PrimerError(errorId, description, recoverySuggestion) { + var _this; + (0, _classCallCheck2.default)(this, PrimerError); + _this = _super.call(this, description); + _this.errorId = errorId; + _this.description = description; + _this.recoverySuggestion = recoverySuggestion; + return _this; + } + return (0, _createClass2.default)(PrimerError); + }((0, _wrapNativeSuper2.default)(Error)); + exports.PrimerError = PrimerError; +},556,[551,553,552,557,559,562,563],"../src/models/PrimerError.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) _$$_REQUIRE(_dependencyMap[0], "./setPrototypeOf.js")(subClass, superClass); + } + module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; +},557,[558],"../node_modules/@babel/runtime/helpers/inherits.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _setPrototypeOf(o, p); + } + module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; +},558,[],"../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _possibleConstructorReturn(self, call) { + if (call && (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return _$$_REQUIRE(_dependencyMap[1], "./assertThisInitialized.js")(self); + } + module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; +},559,[560,561],"../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); + } + module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; +},560,[],"../node_modules/@babel/runtime/helpers/typeof.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; +},561,[],"../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _getPrototypeOf(o) { + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _getPrototypeOf(o); + } + module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; +},562,[],"../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (Class === null || !_$$_REQUIRE(_dependencyMap[0], "./isNativeFunction.js")(Class)) return Class; + if (typeof Class !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + _cache.set(Class, Wrapper); + } + function Wrapper() { + return _$$_REQUIRE(_dependencyMap[1], "./construct.js")(Class, arguments, _$$_REQUIRE(_dependencyMap[2], "./getPrototypeOf.js")(this).constructor); + } + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + return _$$_REQUIRE(_dependencyMap[3], "./setPrototypeOf.js")(Wrapper, Class); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _wrapNativeSuper(Class); + } + module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; +},563,[564,565,562,558],"../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _isNativeFunction(fn) { + return Function.toString.call(fn).indexOf("[native code]") !== -1; + } + module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; +},564,[],"../node_modules/@babel/runtime/helpers/isNativeFunction.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _construct(Parent, args, Class) { + if (_$$_REQUIRE(_dependencyMap[0], "./isNativeReflectConstruct.js")()) { + module.exports = _construct = Reflect.construct, module.exports.__esModule = true, module.exports["default"] = module.exports; + } else { + module.exports = _construct = function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Function.bind.apply(Parent, a); + var instance = new Constructor(); + if (Class) _$$_REQUIRE(_dependencyMap[1], "./setPrototypeOf.js")(instance, Class.prototype); + return instance; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + } + return _construct.apply(null, arguments); + } + module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; +},565,[566,558],"../node_modules/@babel/runtime/helpers/construct.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } + } + module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; +},566,[],"../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PrimerInputElementType = void 0; + var PrimerInputElementType; + exports.PrimerInputElementType = PrimerInputElementType; + (function (PrimerInputElementType) { + PrimerInputElementType["CARD_NUMBER"] = "CARD_NUMBER"; + PrimerInputElementType["EXPIRY_DATE"] = "EXPIRY_DATE"; + PrimerInputElementType["CVV"] = "CVV"; + PrimerInputElementType["CARDHOLDER_NAME"] = "CARDHOLDER_NAME"; + PrimerInputElementType["OTP"] = "OTP"; + PrimerInputElementType["POSTAL_CODE"] = "POSTAL_CODE"; + PrimerInputElementType["PHONE_NUMBER"] = "PHONE_NUMBER"; + PrimerInputElementType["RETAILER"] = "RETAILER"; + PrimerInputElementType["UNKNOWN"] = "UNKNOWN"; + })(PrimerInputElementType || (exports.PrimerInputElementType = PrimerInputElementType = {})); +},567,[],"../src/models/PrimerInputElementType.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Primer = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _RNPrimer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./RNPrimer")); + + var tokenizationHandler = { + handleFailure: function () { + var _handleFailure = (0, _asyncToGenerator2.default)(function* (errorMessage) { + try { + _RNPrimer.default.handleTokenizationFailure(errorMessage); + } catch (err) { + console.error(err); + } + }); + function handleFailure(_x) { + return _handleFailure.apply(this, arguments); + } + return handleFailure; + }(), + handleSuccess: function () { + var _handleSuccess = (0, _asyncToGenerator2.default)(function* () { + try { + _RNPrimer.default.handleTokenizationSuccess(); + } catch (err) { + console.error(err); + } + }); + function handleSuccess() { + return _handleSuccess.apply(this, arguments); + } + return handleSuccess; + }(), + continueWithNewClientToken: function () { + var _continueWithNewClientToken = (0, _asyncToGenerator2.default)(function* (newClientToken) { + try { + _RNPrimer.default.handleTokenizationNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }); + function continueWithNewClientToken(_x2) { + return _continueWithNewClientToken.apply(this, arguments); + } + return continueWithNewClientToken; + }() + }; + + var resumeHandler = { + handleFailure: function () { + var _handleFailure2 = (0, _asyncToGenerator2.default)(function* (errorMessage) { + try { + _RNPrimer.default.handleResumeFailure(errorMessage); + } catch (err) { + console.error(err); + } + }); + function handleFailure(_x3) { + return _handleFailure2.apply(this, arguments); + } + return handleFailure; + }(), + handleSuccess: function () { + var _handleSuccess2 = (0, _asyncToGenerator2.default)(function* () { + try { + _RNPrimer.default.handleResumeSuccess(); + } catch (err) { + console.error(err); + } + }); + function handleSuccess() { + return _handleSuccess2.apply(this, arguments); + } + return handleSuccess; + }(), + continueWithNewClientToken: function () { + var _continueWithNewClientToken2 = (0, _asyncToGenerator2.default)(function* (newClientToken) { + try { + _RNPrimer.default.handleResumeWithNewClientToken(newClientToken); + } catch (err) { + console.error(err); + } + }); + function continueWithNewClientToken(_x4) { + return _continueWithNewClientToken2.apply(this, arguments); + } + return continueWithNewClientToken; + }() + }; + + var paymentCreationHandler = { + abortPaymentCreation: function () { + var _abortPaymentCreation = (0, _asyncToGenerator2.default)(function* (errorMessage) { + try { + _RNPrimer.default.handlePaymentCreationAbort(errorMessage); + } catch (err) { + console.error(err); + } + }); + function abortPaymentCreation(_x5) { + return _abortPaymentCreation.apply(this, arguments); + } + return abortPaymentCreation; + }(), + continuePaymentCreation: function () { + var _continuePaymentCreation = (0, _asyncToGenerator2.default)(function* () { + try { + _RNPrimer.default.handlePaymentCreationContinue(); + } catch (err) { + console.error(err); + } + }); + function continuePaymentCreation() { + return _continuePaymentCreation.apply(this, arguments); + } + return continuePaymentCreation; + }() + }; + + var errorHandler = { + showErrorMessage: function () { + var _showErrorMessage = (0, _asyncToGenerator2.default)(function* (errorMessage) { + try { + _RNPrimer.default.showErrorMessage(errorMessage || ""); + } catch (err) { + console.error(err); + } + }); + function showErrorMessage(_x6) { + return _showErrorMessage.apply(this, arguments); + } + return showErrorMessage; + }() + }; + var primerSettings = undefined; + function configureListeners() { + return _configureListeners.apply(this, arguments); + } + function _configureListeners() { + _configureListeners = (0, _asyncToGenerator2.default)(function* () { + return new Promise(function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + var _primerSettings, _primerSettings$prime, _primerSettings2, _primerSettings2$prim, _primerSettings3, _primerSettings3$prim, _primerSettings4, _primerSettings4$prim, _primerSettings5, _primerSettings5$prim, _primerSettings6, _primerSettings6$prim, _primerSettings7, _primerSettings7$prim, _primerSettings8, _primerSettings8$prim, _primerSettings9, _primerSettings9$prim, _primerSettings10, _primerSettings10$pri; + _RNPrimer.default.removeAllListeners(); + var implementedRNCallbacks = { + onAvailablePaymentMethodsLoad: false, + onTokenizationStart: false, + onTokenizationSuccess: ((_primerSettings = primerSettings) == null ? void 0 : (_primerSettings$prime = _primerSettings.primerCallbacks) == null ? void 0 : _primerSettings$prime.onTokenizeSuccess) !== undefined || false, + onCheckoutResume: ((_primerSettings2 = primerSettings) == null ? void 0 : (_primerSettings2$prim = _primerSettings2.primerCallbacks) == null ? void 0 : _primerSettings2$prim.onResumeSuccess) !== undefined || false, + onCheckoutPending: ((_primerSettings3 = primerSettings) == null ? void 0 : (_primerSettings3$prim = _primerSettings3.primerCallbacks) == null ? void 0 : _primerSettings3$prim.onResumePending) !== undefined || false, + onCheckoutAdditionalInfo: ((_primerSettings4 = primerSettings) == null ? void 0 : (_primerSettings4$prim = _primerSettings4.primerCallbacks) == null ? void 0 : _primerSettings4$prim.onCheckoutReceivedAdditionalInfo) !== undefined || false, + onError: ((_primerSettings5 = primerSettings) == null ? void 0 : (_primerSettings5$prim = _primerSettings5.primerCallbacks) == null ? void 0 : _primerSettings5$prim.onError) !== undefined || false, + onCheckoutComplete: ((_primerSettings6 = primerSettings) == null ? void 0 : (_primerSettings6$prim = _primerSettings6.primerCallbacks) == null ? void 0 : _primerSettings6$prim.onCheckoutComplete) !== undefined || false, + onBeforeClientSessionUpdate: ((_primerSettings7 = primerSettings) == null ? void 0 : (_primerSettings7$prim = _primerSettings7.primerCallbacks) == null ? void 0 : _primerSettings7$prim.onBeforeClientSessionUpdate) !== undefined || false, + onClientSessionUpdate: ((_primerSettings8 = primerSettings) == null ? void 0 : (_primerSettings8$prim = _primerSettings8.primerCallbacks) == null ? void 0 : _primerSettings8$prim.onClientSessionUpdate) !== undefined || false, + onBeforePaymentCreate: ((_primerSettings9 = primerSettings) == null ? void 0 : (_primerSettings9$prim = _primerSettings9.primerCallbacks) == null ? void 0 : _primerSettings9$prim.onBeforePaymentCreate) !== undefined || false, + onPreparationStart: false, + onPaymentMethodShow: false, + onDismiss: ((_primerSettings10 = primerSettings) == null ? void 0 : (_primerSettings10$pri = _primerSettings10.primerCallbacks) == null ? void 0 : _primerSettings10$pri.onDismiss) !== undefined || false + }; + yield _RNPrimer.default.setImplementedRNCallbacks(implementedRNCallbacks); + if (implementedRNCallbacks.onCheckoutComplete) { + _RNPrimer.default.addListener('onCheckoutComplete', function (data) { + var _primerSettings$prime2; + if (primerSettings && (_primerSettings$prime2 = primerSettings.primerCallbacks) != null && _primerSettings$prime2.onCheckoutComplete) { + var checkoutData = data; + primerSettings.primerCallbacks.onCheckoutComplete(checkoutData); + } + }); + } + if (implementedRNCallbacks.onBeforePaymentCreate) { + _RNPrimer.default.addListener('onBeforePaymentCreate', function (data) { + var _primerSettings$prime3; + if (primerSettings && (_primerSettings$prime3 = primerSettings.primerCallbacks) != null && _primerSettings$prime3.onBeforePaymentCreate) { + var checkoutPaymentMethodData = data; + primerSettings.primerCallbacks.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); + } + }); + } + if (implementedRNCallbacks.onBeforeClientSessionUpdate) { + _RNPrimer.default.addListener('onBeforeClientSessionUpdate', function (_) { + var _primerSettings$prime4; + if (primerSettings && (_primerSettings$prime4 = primerSettings.primerCallbacks) != null && _primerSettings$prime4.onBeforeClientSessionUpdate) { + primerSettings.primerCallbacks.onBeforeClientSessionUpdate(); + } + }); + } + if (implementedRNCallbacks.onClientSessionUpdate) { + _RNPrimer.default.addListener('onClientSessionUpdate', function (data) { + var _primerSettings$prime5; + if (primerSettings && (_primerSettings$prime5 = primerSettings.primerCallbacks) != null && _primerSettings$prime5.onClientSessionUpdate) { + var clientSession = data; + primerSettings.primerCallbacks.onClientSessionUpdate(clientSession); + } + }); + } + if (implementedRNCallbacks.onTokenizationSuccess) { + _RNPrimer.default.addListener('onTokenizeSuccess', function (data) { + var _primerSettings$prime6; + if (primerSettings && (_primerSettings$prime6 = primerSettings.primerCallbacks) != null && _primerSettings$prime6.onTokenizeSuccess) { + var paymentMethodTokenData = data; + primerSettings.primerCallbacks.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); + } + }); + } + if (implementedRNCallbacks.onCheckoutResume) { + _RNPrimer.default.addListener('onResumeSuccess', function (data) { + var _primerSettings$prime7; + if (primerSettings && (_primerSettings$prime7 = primerSettings.primerCallbacks) != null && _primerSettings$prime7.onResumeSuccess && data.resumeToken) { + primerSettings.primerCallbacks.onResumeSuccess(data.resumeToken, resumeHandler); + } + }); + } + if (implementedRNCallbacks.onCheckoutPending) { + _RNPrimer.default.addListener('onResumePending', function (additionalInfo) { + var _primerSettings$prime8; + if (primerSettings && (_primerSettings$prime8 = primerSettings.primerCallbacks) != null && _primerSettings$prime8.onResumePending) { + var checkoutAdditionalInfo = additionalInfo; + primerSettings.primerCallbacks.onResumePending(checkoutAdditionalInfo); + } else { + } + }); + } + if (implementedRNCallbacks.onCheckoutAdditionalInfo) { + _RNPrimer.default.addListener('onCheckoutReceivedAdditionalInfo', function (additionalInfo) { + var _primerSettings$prime9; + if (primerSettings && (_primerSettings$prime9 = primerSettings.primerCallbacks) != null && _primerSettings$prime9.onCheckoutReceivedAdditionalInfo) { + var checkoutAdditionalInfo = additionalInfo; + primerSettings.primerCallbacks.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); + } else { + } + }); + } + if (implementedRNCallbacks.onDismiss) { + _RNPrimer.default.addListener('onDismiss', function (_) { + var _primerSettings$prime10; + if (primerSettings && (_primerSettings$prime10 = primerSettings.primerCallbacks) != null && _primerSettings$prime10.onDismiss) { + primerSettings.primerCallbacks.onDismiss(); + } + }); + } + if (implementedRNCallbacks.onError) { + _RNPrimer.default.addListener('onError', function (data) { + var _primerSettings$prime11; + if (data && data.error && data.error.errorId && primerSettings && (_primerSettings$prime11 = primerSettings.primerCallbacks) != null && _primerSettings$prime11.onError) { + var errorId = data.error.errorId; + var description = data.error.description; + var recoverySuggestion = data.error.recoverySuggestion; + var primerError = new (_$$_REQUIRE(_dependencyMap[3], "./models/PrimerError").PrimerError)(errorId, description || 'Unknown error', recoverySuggestion); + primerSettings.primerCallbacks.onError(primerError, data.checkoutData || null, errorHandler); + } + }); + } + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x16, _x17) { + return _ref4.apply(this, arguments); + }; + }()); + }); + return _configureListeners.apply(this, arguments); + } + var Primer = { + configure: function () { + var _configure = (0, _asyncToGenerator2.default)(function* (settings) { + primerSettings = settings; + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield _RNPrimer.default.configure(settings); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x8, _x9) { + return _ref.apply(this, arguments); + }; + }()); + }); + function configure(_x7) { + return _configure.apply(this, arguments); + } + return configure; + }(), + showUniversalCheckout: function () { + var _showUniversalCheckout = (0, _asyncToGenerator2.default)(function* (clientToken) { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield configureListeners(); + yield _RNPrimer.default.showUniversalCheckout(clientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x11, _x12) { + return _ref2.apply(this, arguments); + }; + }()); + }); + function showUniversalCheckout(_x10) { + return _showUniversalCheckout.apply(this, arguments); + } + return showUniversalCheckout; + }(), + showVaultManager: function () { + var _showVaultManager = (0, _asyncToGenerator2.default)(function* (clientToken) { + return new Promise(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield configureListeners(); + yield _RNPrimer.default.showVaultManager(clientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x14, _x15) { + return _ref3.apply(this, arguments); + }; + }()); + }); + function showVaultManager(_x13) { + return _showVaultManager.apply(this, arguments); + } + return showVaultManager; + }(), + dispose: function dispose() { + _RNPrimer.default.removeAllListeners(); + _RNPrimer.default.dismiss(); + }, + dismiss: function dismiss() { + _RNPrimer.default.removeAllListeners(); + _RNPrimer.default.dismiss(); + } + }; + exports.Primer = Primer; +},568,[551,554,569,556],"../src/Primer.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); + var NativePrimer = _reactNative.NativeModules.NativePrimer; + var eventEmitter = new _reactNative.NativeEventEmitter(NativePrimer); + var eventTypes = ['onCheckoutComplete', 'onBeforeClientSessionUpdate', 'onClientSessionUpdate', 'onBeforePaymentCreate', 'onError', 'onDismiss', 'onTokenizeSuccess', 'onResumeSuccess', 'onCheckoutReceivedAdditionalInfo', 'onResumePending', 'detectImplementedRNCallbacks']; + var RNPrimer = { + + addListener: function addListener(eventType, listener) { + eventEmitter.addListener(eventType, listener); + }, + removeListener: function removeListener(eventType, listener) { + eventEmitter.removeListener(eventType, listener); + }, + removeAllListenersForEvent: function removeAllListenersForEvent(eventType) { + eventEmitter.removeAllListeners(eventType); + }, + removeAllListeners: function removeAllListeners() { + eventTypes.forEach(function (eventType) { + return RNPrimer.removeAllListenersForEvent(eventType); + }); + }, + configure: function configure(settings) { + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.configure(JSON.stringify(settings) || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x, _x2) { + return _ref.apply(this, arguments); + }; + }()); + }, + showUniversalCheckout: function showUniversalCheckout(clientToken) { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.showUniversalCheckoutWithClientToken(clientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x3, _x4) { + return _ref2.apply(this, arguments); + }; + }()); + }, + showVaultManager: function showVaultManager(clientToken) { + return new Promise(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.showVaultManagerWithClientToken(clientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x5, _x6) { + return _ref3.apply(this, arguments); + }; + }()); + }, + dismiss: function dismiss() { + return new Promise(function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.dismiss(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x7, _x8) { + return _ref4.apply(this, arguments); + }; + }()); + }, + dispose: function dispose() { + return new Promise(function () { + var _ref5 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.dispose(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x9, _x10) { + return _ref5.apply(this, arguments); + }; + }()); + }, + + handleTokenizationNewClientToken: function handleTokenizationNewClientToken(newClientToken) { + return new Promise(function () { + var _ref6 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleTokenizationNewClientToken(newClientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x11, _x12) { + return _ref6.apply(this, arguments); + }; + }()); + }, + handleTokenizationSuccess: function handleTokenizationSuccess() { + return new Promise(function () { + var _ref7 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleTokenizationSuccess(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x13, _x14) { + return _ref7.apply(this, arguments); + }; + }()); + }, + handleTokenizationFailure: function handleTokenizationFailure(errorMessage) { + return new Promise(function () { + var _ref8 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleTokenizationFailure(errorMessage || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x15, _x16) { + return _ref8.apply(this, arguments); + }; + }()); + }, + + handleResumeWithNewClientToken: function handleResumeWithNewClientToken(newClientToken) { + return new Promise(function () { + var _ref9 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleResumeWithNewClientToken(newClientToken); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x17, _x18) { + return _ref9.apply(this, arguments); + }; + }()); + }, + handleResumeSuccess: function handleResumeSuccess() { + return new Promise(function () { + var _ref10 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleResumeSuccess(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x19, _x20) { + return _ref10.apply(this, arguments); + }; + }()); + }, + handleResumeFailure: function handleResumeFailure(errorMessage) { + return new Promise(function () { + var _ref11 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleTokenizationFailure(errorMessage || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x21, _x22) { + return _ref11.apply(this, arguments); + }; + }()); + }, + + handlePaymentCreationAbort: function handlePaymentCreationAbort(errorMessage) { + return new Promise(function () { + var _ref12 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handlePaymentCreationAbort(errorMessage || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x23, _x24) { + return _ref12.apply(this, arguments); + }; + }()); + }, + handlePaymentCreationContinue: function handlePaymentCreationContinue() { + return new Promise(function () { + var _ref13 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handlePaymentCreationContinue(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x25, _x26) { + return _ref13.apply(this, arguments); + }; + }()); + }, + + showErrorMessage: function showErrorMessage(errorMessage) { + return new Promise(function () { + var _ref14 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.showErrorMessage(errorMessage || ""); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x27, _x28) { + return _ref14.apply(this, arguments); + }; + }()); + }, + handleSuccess: function handleSuccess() { + return new Promise(function () { + var _ref15 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.handleSuccess(); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x29, _x30) { + return _ref15.apply(this, arguments); + }; + }()); + }, + + setImplementedRNCallbacks: function setImplementedRNCallbacks(implementedRNCallbacks) { + return new Promise(function () { + var _ref16 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + yield NativePrimer.setImplementedRNCallbacks(JSON.stringify(implementedRNCallbacks)); + resolve(); + } catch (err) { + reject(err); + } + }); + return function (_x31, _x32) { + return _ref16.apply(this, arguments); + }; + }()); + } + }; + var _default = RNPrimer; + exports.default = _default; +},569,[551,554,1],"../src/RNPrimer.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PrimerTokenType = void 0; + var PrimerTokenType; + exports.PrimerTokenType = PrimerTokenType; + (function (PrimerTokenType) { + PrimerTokenType["SINGLE_USE"] = "SINGLE_USE"; + PrimerTokenType["MULTI_USE"] = "MULTI_USE"; + })(PrimerTokenType || (exports.PrimerTokenType = PrimerTokenType = {})); +},570,[],"../src/models/PrimerPaymentMethodTokenData.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},571,[],"../src/models/PrimerSettings.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},572,[],"../src/models/PrimerRawData.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},573,[],"../src/models/RetailOutletsRetail.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PrimerSessionIntent = void 0; + var PrimerSessionIntent; + exports.PrimerSessionIntent = PrimerSessionIntent; + (function (PrimerSessionIntent) { + PrimerSessionIntent["CHECKOUT"] = "CHECKOUT"; + PrimerSessionIntent["VAULT"] = "VAULT"; + })(PrimerSessionIntent || (exports.PrimerSessionIntent = PrimerSessionIntent = {})); +},574,[],"../src/models/PrimerSessionIntent.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var RNTPrimerHeadlessUniversalCheckoutAssetsManager = _reactNative.NativeModules.RNTPrimerHeadlessUniversalCheckoutAssetsManager; + var PrimerHeadlessUniversalCheckoutAssetsManager = function () { + function PrimerHeadlessUniversalCheckoutAssetsManager() { + (0, _classCallCheck2.default)(this, PrimerHeadlessUniversalCheckoutAssetsManager); + } + + (0, _createClass2.default)(PrimerHeadlessUniversalCheckoutAssetsManager, [{ + key: "getCardNetworkImageURL", + value: function () { + var _getCardNetworkImageURL = (0, _asyncToGenerator2.default)(function* (cardNetwork) { + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + var data = yield RNTPrimerHeadlessUniversalCheckoutAssetsManager.getCardNetworkImage(cardNetwork); + resolve(data.cardNetworkImageURL); + } catch (err) { + console.error(err); + reject(err); + } + }); + return function (_x2, _x3) { + return _ref.apply(this, arguments); + }; + }()); + }); + function getCardNetworkImageURL(_x) { + return _getCardNetworkImageURL.apply(this, arguments); + } + return getCardNetworkImageURL; + }() + }, { + key: "getPaymentMethodAsset", + value: function () { + var _getPaymentMethodAsset = (0, _asyncToGenerator2.default)(function* (paymentMethodType) { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + var data = yield RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset(paymentMethodType); + var paymentMethodAsset = data.paymentMethodAsset; + resolve(paymentMethodAsset); + } catch (err) { + console.error(err); + reject(err); + } + }); + return function (_x5, _x6) { + return _ref2.apply(this, arguments); + }; + }()); + }); + function getPaymentMethodAsset(_x4) { + return _getPaymentMethodAsset.apply(this, arguments); + } + return getPaymentMethodAsset; + }() + }, { + key: "getPaymentMethodAssets", + value: function () { + var _getPaymentMethodAssets = (0, _asyncToGenerator2.default)(function* () { + return new Promise(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + var data = yield RNTPrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(); + var paymentMethodAssets = data.paymentMethodAssets; + resolve(paymentMethodAssets); + } catch (err) { + console.error(err); + reject(err); + } + }); + return function (_x7, _x8) { + return _ref3.apply(this, arguments); + }; + }()); + }); + function getPaymentMethodAssets() { + return _getPaymentMethodAssets.apply(this, arguments); + } + return getPaymentMethodAssets; + }() + }]); + return PrimerHeadlessUniversalCheckoutAssetsManager; + }(); + var _default = PrimerHeadlessUniversalCheckoutAssetsManager; + exports.default = _default; +},575,[551,554,552,553,1],"../src/HeadlessUniversalCheckout/Managers/AssetsManager.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager = _reactNative.NativeModules.RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager; + var PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager = function () { + function PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager() { + (0, _classCallCheck2.default)(this, PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager); + } + + (0, _createClass2.default)(PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager, [{ + key: "configure", + value: function () { + var _configure = (0, _asyncToGenerator2.default)(function* (paymentMethodType) { + try { + yield RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.configure(paymentMethodType); + } catch (err) { + console.error(err); + throw err; + } + }); + function configure(_x) { + return _configure.apply(this, arguments); + } + return configure; + }() + }, { + key: "showPaymentMethod", + value: function () { + var _showPaymentMethod = (0, _asyncToGenerator2.default)(function* (intent) { + return RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager.showPaymentMethod(intent); + }); + function showPaymentMethod(_x2) { + return _showPaymentMethod.apply(this, arguments); + } + return showPaymentMethod; + }() + }]); + return PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager; + }(); + var _default = PrimerHeadlessUniversalCheckoutPaymentMethodNativeUIManager; + exports.default = _default; +},576,[551,554,552,553,1],"../src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var RNTPrimerHeadlessUniversalCheckoutRawDataManager = _reactNative.NativeModules.RNTPrimerHeadlessUniversalCheckoutRawDataManager; + var eventEmitter = new _reactNative.NativeEventEmitter(RNTPrimerHeadlessUniversalCheckoutRawDataManager); + var eventTypes = ['onMetadataChange', 'onValidation']; + var PrimerHeadlessUniversalCheckoutRawDataManager = function () { + function PrimerHeadlessUniversalCheckoutRawDataManager() { + (0, _classCallCheck2.default)(this, PrimerHeadlessUniversalCheckoutRawDataManager); + } + + (0, _createClass2.default)(PrimerHeadlessUniversalCheckoutRawDataManager, [{ + key: "configure", + value: function () { + var _configure = (0, _asyncToGenerator2.default)(function* (options) { + var _this = this; + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + _this.options = options; + yield _this.configureListeners(); + var data = yield RNTPrimerHeadlessUniversalCheckoutRawDataManager.configure(options.paymentMethodType); + if (data) { + resolve(data); + } else { + resolve(); + } + } catch (err) { + reject(err); + } + }); + return function (_x2, _x3) { + return _ref.apply(this, arguments); + }; + }()); + }); + function configure(_x) { + return _configure.apply(this, arguments); + } + return configure; + }() + }, { + key: "configureListeners", + value: function () { + var _configureListeners = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + var _this2$options, _this2$options3; + if ((_this2$options = _this2.options) != null && _this2$options.onMetadataChange) { + _this2.addListener("onMetadataChange", function (data) { + var _this2$options2; + if ((_this2$options2 = _this2.options) != null && _this2$options2.onMetadataChange) { + _this2.options.onMetadataChange(data); + } + }); + } + if ((_this2$options3 = _this2.options) != null && _this2$options3.onValidation) { + _this2.addListener("onValidation", function (data) { + var _this2$options4; + if ((_this2$options4 = _this2.options) != null && _this2$options4.onValidation) { + _this2.options.onValidation(data.isValid, data.errors); + } + }); + } + resolve(); + }); + return function (_x4, _x5) { + return _ref2.apply(this, arguments); + }; + }()); + }); + function configureListeners() { + return _configureListeners.apply(this, arguments); + } + return configureListeners; + }() + }, { + key: "getRequiredInputElementTypes", + value: function () { + var _getRequiredInputElementTypes = (0, _asyncToGenerator2.default)(function* () { + var _this3 = this; + return new Promise(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + var _this3$options; + if ((_this3$options = _this3.options) != null && _this3$options.paymentMethodType) { + try { + var data = yield RNTPrimerHeadlessUniversalCheckoutRawDataManager.listRequiredInputElementTypes(); + var inputElementTypes = data.inputElementTypes; + resolve(inputElementTypes); + } catch (err) { + reject(err); + } + } else { + var err = new (_$$_REQUIRE(_dependencyMap[5], "../../../models/PrimerError").PrimerError)("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + return function (_x6, _x7) { + return _ref3.apply(this, arguments); + }; + }()); + }); + function getRequiredInputElementTypes() { + return _getRequiredInputElementTypes.apply(this, arguments); + } + return getRequiredInputElementTypes; + }() + }, { + key: "setRawData", + value: function setRawData(rawData) { + var _this4 = this; + return new Promise(function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + var _this4$options; + if ((_this4$options = _this4.options) != null && _this4$options.paymentMethodType) { + try { + yield RNTPrimerHeadlessUniversalCheckoutRawDataManager.setRawData(JSON.stringify(rawData)); + resolve(); + } catch (err) { + reject(err); + } + } else { + var err = new (_$$_REQUIRE(_dependencyMap[5], "../../../models/PrimerError").PrimerError)("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + return function (_x8, _x9) { + return _ref4.apply(this, arguments); + }; + }()); + } + }, { + key: "submit", + value: function submit() { + var _this5 = this; + return new Promise(function () { + var _ref5 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + var _this5$options; + if ((_this5$options = _this5.options) != null && _this5$options.paymentMethodType) { + try { + yield RNTPrimerHeadlessUniversalCheckoutRawDataManager.submit(); + resolve(); + } catch (err) { + reject(err); + } + } else { + var err = new (_$$_REQUIRE(_dependencyMap[5], "../../../models/PrimerError").PrimerError)("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + return function (_x10, _x11) { + return _ref5.apply(this, arguments); + }; + }()); + } + }, { + key: "dispose", + value: function dispose() { + var _this6 = this; + return new Promise(function () { + var _ref6 = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + var _this6$options; + if ((_this6$options = _this6.options) != null && _this6$options.paymentMethodType) { + try { + yield RNTPrimerHeadlessUniversalCheckoutRawDataManager.dispose(); + resolve(); + } catch (err) { + reject(err); + } + } else { + var err = new (_$$_REQUIRE(_dependencyMap[5], "../../../models/PrimerError").PrimerError)("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + reject(err); + } + }); + return function (_x12, _x13) { + return _ref6.apply(this, arguments); + }; + }()); + } + + }, { + key: "addListener", + value: function () { + var _addListener = (0, _asyncToGenerator2.default)(function* (eventType, listener) { + return eventEmitter.addListener(eventType, listener); + }); + function addListener(_x14, _x15) { + return _addListener.apply(this, arguments); + } + return addListener; + }() + }, { + key: "removeListener", + value: function removeListener(eventType, listener) { + return eventEmitter.removeListener(eventType, listener); + } + }]); + return PrimerHeadlessUniversalCheckoutRawDataManager; + }(); + var _default = PrimerHeadlessUniversalCheckoutRawDataManager; + exports.default = _default; +},577,[551,554,552,553,1,556],"../src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/ResultScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ResultScreen = function ResultScreen(props) { + var _props$route$params, _props$route$params2, _props$route$params3, _props$route$params4, _props$route$params5; + var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; + var backgroundStyle = { + backgroundColor: isDarkMode ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/NewAppScreen").Colors.darker : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/NewAppScreen").Colors.lighter + }; + var paramsWithoutLogs = {}; + if ((_props$route$params = props.route.params) != null && _props$route$params.merchantCheckoutData) { + paramsWithoutLogs.merchantCheckoutData = props.route.params.merchantCheckoutData; + } + if ((_props$route$params2 = props.route.params) != null && _props$route$params2.merchantCheckoutAdditionalInfo) { + paramsWithoutLogs.merchantCheckoutAdditionalInfo = props.route.params.merchantCheckoutAdditionalInfo; + } + if ((_props$route$params3 = props.route.params) != null && _props$route$params3.merchantPayment) { + paramsWithoutLogs.merchantPayment = props.route.params.merchantPayment; + } + if ((_props$route$params4 = props.route.params) != null && _props$route$params4.merchantPrimerError) { + paramsWithoutLogs.merchantPrimerError = props.route.params.merchantPrimerError; + } + var logs = (_props$route$params5 = props.route.params) == null ? void 0 : _props$route$params5.logs; + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsxs)(_reactNative.ScrollView, { + contentInsetAdjustmentBehavior: "automatic", + style: backgroundStyle, + children: [(0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + marginHorizontal: 20, + marginVertical: 20, + backgroundColor: 'lightgrey' + }, + children: (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: JSON.stringify(paramsWithoutLogs, null, 4) + }) + }), !logs ? null : (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + marginHorizontal: 20, + marginVertical: 20, + backgroundColor: 'lightgrey' + }, + children: (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: logs + }) + })] + }); + }; + var _default = ResultScreen; + exports.default = _default; +},578,[36,1,482,73],"src/screens/ResultScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../components/TextField")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/NewLineItemSreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NewLineItemScreen = function NewLineItemScreen(props) { + var newLineItemScreenProps = props.route.params; + var _React$useState = React.useState((newLineItemScreenProps == null ? void 0 : newLineItemScreenProps.lineItem) === undefined ? false : true), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + isEditing = _React$useState2[0], + setIsEditing = _React$useState2[1]; + var _React$useState3 = React.useState((newLineItemScreenProps == null ? void 0 : newLineItemScreenProps.lineItem) === undefined ? undefined : newLineItemScreenProps.lineItem.description), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + name = _React$useState4[0], + setName = _React$useState4[1]; + var _React$useState5 = React.useState((newLineItemScreenProps == null ? void 0 : newLineItemScreenProps.lineItem) === undefined ? undefined : newLineItemScreenProps.lineItem.quantity), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + quantity = _React$useState6[0], + setQuantity = _React$useState6[1]; + var _React$useState7 = React.useState((newLineItemScreenProps == null ? void 0 : newLineItemScreenProps.lineItem) === undefined ? undefined : newLineItemScreenProps.lineItem.amount), + _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), + unitPrice = _React$useState8[0], + setUnitPrice = _React$useState8[1]; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + paddingTop: 32, + paddingBottom: 12, + flex: 1 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Name", + style: { + marginBottom: 10 + }, + value: name, + onChangeText: function onChangeText(text) { + setName(text); + } + }), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Quantity", + style: { + marginVertical: 10 + }, + value: quantity === undefined ? undefined : "" + quantity, + keyboardType: 'numeric', + onChangeText: function onChangeText(text) { + var tmpQuantity = Number(text); + if (!isNaN(tmpQuantity) && tmpQuantity > 0) { + setQuantity(tmpQuantity); + } else { + setQuantity(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_TextField.default, { + title: "Unit Price", + style: { + marginVertical: 10 + }, + value: unitPrice === undefined ? undefined : "" + unitPrice, + keyboardType: 'numeric', + onChangeText: function onChangeText(text) { + var tmpUnitPrice = Number(text); + if (!isNaN(tmpUnitPrice) && tmpUnitPrice > 0) { + setUnitPrice(tmpUnitPrice); + } else { + setUnitPrice(undefined); + } + } + }), (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[6], "../styles").styles.button, { + marginTop: 5, + marginBottom: 10, + backgroundColor: 'black' + }), + onPress: function onPress() { + if (isEditing && newLineItemScreenProps != null && newLineItemScreenProps.lineItem) { + if (name && quantity && unitPrice) { + var newLineItem = { + itemId: "item-id-" + (0, _$$_REQUIRE(_dependencyMap[7], "../helpers/helpers").makeRandomString)(8), + description: name, + quantity: quantity, + amount: unitPrice + }; + if (newLineItemScreenProps != null && newLineItemScreenProps.onEditLineItem) { + newLineItemScreenProps.onEditLineItem(newLineItem); + } + props.navigation.goBack(); + } + } else { + if (name && quantity && unitPrice) { + var _newLineItem = { + itemId: "item-id-" + (0, _$$_REQUIRE(_dependencyMap[7], "../helpers/helpers").makeRandomString)(8), + description: name, + quantity: quantity, + amount: unitPrice + }; + if (newLineItemScreenProps != null && newLineItemScreenProps.onAddLineItem) { + newLineItemScreenProps.onAddLineItem(_newLineItem); + } + props.navigation.goBack(); + } + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[6], "../styles").styles.buttonText, { + color: 'white' + }), + children: isEditing ? "Edit Line Item" : "Add Line Item" + }) + }), (newLineItemScreenProps == null ? void 0 : newLineItemScreenProps.lineItem) === undefined ? null : (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[6], "../styles").styles.button, { + marginBottom: 20, + backgroundColor: 'red' + }), + onPress: function onPress() { + if (newLineItemScreenProps.onRemoveLineItem && newLineItemScreenProps.lineItem) { + newLineItemScreenProps.onRemoveLineItem(newLineItemScreenProps.lineItem); + } + props.navigation.goBack(); + }, + children: (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[6], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Remove Line Item" + }) + })] + }); + }; + var _default = NewLineItemScreen; + exports.default = _default; +},579,[3,19,36,1,476,73,477,481],"src/screens/NewLineItemSreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../components/TextField")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/RawCardDataScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var rawDataManager = new (_$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").RawDataManager)(); + var RawCardDataScreen = function RawCardDataScreen(props) { + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isLoading = _useState2[0], + setIsLoading = _useState2[1]; + var _useState3 = (0, _react.useState)(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isCardFormValid = _useState4[0], + setIsCardFormValid = _useState4[1]; + var _useState5 = (0, _react.useState)(undefined), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + requiredInputElementTypes = _useState6[0], + setRequiredInputElementTypes = _useState6[1]; + var _useState7 = (0, _react.useState)(""), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + cardNumber = _useState8[0], + setCardNumber = _useState8[1]; + var _useState9 = (0, _react.useState)(""), + _useState10 = (0, _slicedToArray2.default)(_useState9, 2), + expiryDate = _useState10[0], + setExpiryDate = _useState10[1]; + var _useState11 = (0, _react.useState)(""), + _useState12 = (0, _slicedToArray2.default)(_useState11, 2), + cvv = _useState12[0], + setCvv = _useState12[1]; + var _useState13 = (0, _react.useState)(""), + _useState14 = (0, _slicedToArray2.default)(_useState13, 2), + cardholderName = _useState14[0], + setCardholderName = _useState14[1]; + var _useState15 = (0, _react.useState)(""), + _useState16 = (0, _slicedToArray2.default)(_useState15, 2), + metadataLog = _useState16[0], + setMetadataLog = _useState16[1]; + var _useState17 = (0, _react.useState)(""), + _useState18 = (0, _slicedToArray2.default)(_useState17, 2), + validationLog = _useState18[0], + setValidationLog = _useState18[1]; + (0, _react.useEffect)(function () { + initialize(); + }, []); + var initialize = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + yield rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: function onMetadataChange(data) { + var log = "\nonMetadataChange: " + JSON.stringify(data) + "\n"; + console.log(log); + setMetadataLog(log); + }, + onValidation: function onValidation(isVallid, errors) { + var log = "\nonValidation:\nisValid: " + isVallid + "\n"; + if (errors) { + log += "errors:" + JSON.stringify(errors, null, 2) + "\n"; + } + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + } + }); + var requiredInputElementTypes = yield rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + }); + return function initialize() { + return _ref.apply(this, arguments); + }; + }(); + var setRawData = function setRawData(tmpCardNumber, tmpExpiryDate, tmpCvv, tmpCardholderName) { + var expiryDateComponents = expiryDate.split("/"); + var expiryMonth; + var expiryYear; + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + var rawData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cvv: cvv || "", + cardholderName: cardholderName + }; + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + if (tmpCvv) { + rawData.cvv = tmpCvv; + } + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + rawDataManager.setRawData(rawData); + }; + var renderInputs = function renderInputs() { + if (!requiredInputElementTypes) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + children: requiredInputElementTypes.map(function (et) { + if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.CARD_NUMBER) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Card Number", + value: cardNumber, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setCardNumber(text); + setRawData(text, null, null, null); + } + }, "CARD_NUMBER"); + } else if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.EXPIRY_DATE) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Expiry Date", + value: expiryDate, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setExpiryDate(text); + setRawData(null, text, null, null); + } + }, "EXPIRY_DATE"); + } else if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.CVV) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "CVV", + value: cvv, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setCvv(text); + setRawData(null, null, text, null); + } + }, "CVV"); + } else if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.CARDHOLDER_NAME) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Cardholder name", + value: cardholderName, + keyboardType: "default", + onChangeText: function onChangeText(text) { + setCardholderName(text); + setRawData(null, null, null, text); + } + }, "CARDHOLDER_NAME"); + } + }) + }); + } + }; + var pay = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* () { + try { + yield rawDataManager.submit(); + } catch (err) { + console.error(err); + } + }); + return function pay() { + return _ref2.apply(this, arguments); + }; + }(); + var renderLoadingOverlay = function renderLoadingOverlay() { + if (!isLoading) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'rgba(200, 200, 200, 0.5)', + zIndex: 1000 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.ActivityIndicator, { + size: "small" + }) + }); + } + }; + var renderPayButton = function renderPayButton() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.button, { + marginVertical: 16, + backgroundColor: isCardFormValid ? 'black' : "lightgray" + }), + onPress: function onPress(e) { + if (isCardFormValid) { + pay(); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Pay" + }) + }); + }; + var renderEvents = function renderEvents() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.ScrollView, { + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray" + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + height: 50 + }, + children: metadataLog + }) + }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray", + marginTop: 16 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: validationLog + }) + })] + }); + }; + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + flex: 1 + }, + children: [renderInputs(), renderPayButton(), renderEvents(), renderLoadingOverlay()] + }); + }; + var _default = RawCardDataScreen; + exports.default = _default; +},580,[3,65,19,36,1,476,544,73,477],"src/screens/RawCardDataScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../components/TextField")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/RawPhoneNumberScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var rawDataManager = new (_$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").RawDataManager)(); + var RawPhoneNumberDataScreen = function RawPhoneNumberDataScreen(props) { + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isLoading = _useState2[0], + setIsLoading = _useState2[1]; + var _useState3 = (0, _react.useState)(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isCardFormValid = _useState4[0], + setIsCardFormValid = _useState4[1]; + var _useState5 = (0, _react.useState)(undefined), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + requiredInputElementTypes = _useState6[0], + setRequiredInputElementTypes = _useState6[1]; + var _useState7 = (0, _react.useState)(""), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + phoneNumber = _useState8[0], + setPhoneNumber = _useState8[1]; + var _useState9 = (0, _react.useState)(""), + _useState10 = (0, _slicedToArray2.default)(_useState9, 2), + metadataLog = _useState10[0], + setMetadataLog = _useState10[1]; + var _useState11 = (0, _react.useState)(""), + _useState12 = (0, _slicedToArray2.default)(_useState11, 2), + validationLog = _useState12[0], + setValidationLog = _useState12[1]; + (0, _react.useEffect)(function () { + initialize(); + }, []); + var initialize = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + yield rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: function onMetadataChange(data) { + var log = "\nonMetadataChange: " + JSON.stringify(data) + "\n"; + console.log(log); + setMetadataLog(log); + }, + onValidation: function onValidation(isVallid, errors) { + var log = "\nonValidation:\nisValid: " + isVallid + "\n"; + if (errors) { + log += "errors:" + JSON.stringify(errors, null, 2) + "\n"; + } + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + } + }); + var requiredInputElementTypes = yield rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + }); + return function initialize() { + return _ref.apply(this, arguments); + }; + }(); + var setRawData = function setRawData(tmpPhoneNumber) { + var rawData = { + phoneNumber: tmpPhoneNumber + }; + rawDataManager.setRawData(rawData); + }; + var renderInputs = function renderInputs() { + if (!requiredInputElementTypes) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + children: requiredInputElementTypes.map(function (et) { + if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.PHONE_NUMBER) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Phone Number", + value: phoneNumber, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setPhoneNumber(text); + setRawData(text); + } + }, "PHONE_NUMBER"); + } + }) + }); + } + }; + var pay = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* () { + try { + yield rawDataManager.submit(); + } catch (err) { + console.error(err); + } + }); + return function pay() { + return _ref2.apply(this, arguments); + }; + }(); + var renderLoadingOverlay = function renderLoadingOverlay() { + if (!isLoading) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'rgba(200, 200, 200, 0.5)', + zIndex: 1000 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.ActivityIndicator, { + size: "small" + }) + }); + } + }; + var renderPayButton = function renderPayButton() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.button, { + marginVertical: 16, + backgroundColor: isCardFormValid ? 'black' : "lightgray" + }), + onPress: function onPress(e) { + if (isCardFormValid) { + pay(); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Pay" + }) + }); + }; + var renderEvents = function renderEvents() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.ScrollView, { + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray" + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + height: 50 + }, + children: metadataLog + }) + }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray", + marginTop: 16 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: validationLog + }) + })] + }); + }; + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + flex: 1 + }, + children: [renderInputs(), renderPayButton(), renderEvents(), renderLoadingOverlay()] + }); + }; + var _default = RawPhoneNumberDataScreen; + exports.default = _default; +},581,[3,65,19,36,1,476,544,73,477],"src/screens/RawPhoneNumberScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../components/TextField")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/RawAdyenBancontactCardScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var rawDataManager = new (_$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").RawDataManager)(); + var RawAdyenBancontactCardScreen = function RawAdyenBancontactCardScreen(props) { + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isLoading = _useState2[0], + setIsLoading = _useState2[1]; + var _useState3 = (0, _react.useState)(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isCardFormValid = _useState4[0], + setIsCardFormValid = _useState4[1]; + var _useState5 = (0, _react.useState)(undefined), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + requiredInputElementTypes = _useState6[0], + setRequiredInputElementTypes = _useState6[1]; + var _useState7 = (0, _react.useState)(""), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + cardNumber = _useState8[0], + setCardNumber = _useState8[1]; + var _useState9 = (0, _react.useState)(""), + _useState10 = (0, _slicedToArray2.default)(_useState9, 2), + expiryDate = _useState10[0], + setExpiryDate = _useState10[1]; + var _useState11 = (0, _react.useState)(""), + _useState12 = (0, _slicedToArray2.default)(_useState11, 2), + cardholderName = _useState12[0], + setCardholderName = _useState12[1]; + var _useState13 = (0, _react.useState)(""), + _useState14 = (0, _slicedToArray2.default)(_useState13, 2), + metadataLog = _useState14[0], + setMetadataLog = _useState14[1]; + var _useState15 = (0, _react.useState)(""), + _useState16 = (0, _slicedToArray2.default)(_useState15, 2), + validationLog = _useState16[0], + setValidationLog = _useState16[1]; + (0, _react.useEffect)(function () { + initialize(); + }, []); + var initialize = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + yield rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: function onMetadataChange(data) { + var log = "\nonMetadataChange: " + JSON.stringify(data) + "\n"; + console.log(log); + setMetadataLog(log); + }, + onValidation: function onValidation(isVallid, errors) { + var log = "\nonValidation:\nisValid: " + isVallid + "\n"; + if (errors) { + log += "errors:" + JSON.stringify(errors, null, 2) + "\n"; + } + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + } + }); + var requiredInputElementTypes = yield rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + }); + return function initialize() { + return _ref.apply(this, arguments); + }; + }(); + var setRawData = function setRawData(tmpCardNumber, tmpExpiryDate, tmpCardholderName) { + var expiryDateComponents = expiryDate.split("/"); + var expiryMonth; + var expiryYear; + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + var rawData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cardholderName: cardholderName || "" + }; + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + rawDataManager.setRawData(rawData); + }; + var renderInputs = function renderInputs() { + if (!requiredInputElementTypes) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + children: requiredInputElementTypes.map(function (et) { + if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.CARD_NUMBER) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Card Number", + value: cardNumber, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setCardNumber(text); + setRawData(text, null, null); + } + }, "CARD_NUMBER"); + } else if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.EXPIRY_DATE) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Expiry Date", + value: expiryDate, + keyboardType: "numeric", + onChangeText: function onChangeText(text) { + setExpiryDate(text); + setRawData(null, text, null); + } + }, "EXPIRY_DATE"); + } else if (et === _$$_REQUIRE(_dependencyMap[6], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").InputElementType.CARDHOLDER_NAME) { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TextField.default, { + style: { + marginVertical: 8 + }, + title: "Cardholder Name", + value: cardholderName, + keyboardType: "default", + onChangeText: function onChangeText(text) { + setCardholderName(text); + setRawData(null, null, text); + } + }, "CARDHOLDER_NAME"); + } + }) + }); + } + }; + var pay = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* () { + try { + yield rawDataManager.submit(); + } catch (err) { + console.error(err); + } + }); + return function pay() { + return _ref2.apply(this, arguments); + }; + }(); + var renderLoadingOverlay = function renderLoadingOverlay() { + if (!isLoading) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'rgba(200, 200, 200, 0.5)', + zIndex: 1000 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.ActivityIndicator, { + size: "small" + }) + }); + } + }; + var renderPayButton = function renderPayButton() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.button, { + marginVertical: 16, + backgroundColor: isCardFormValid ? 'black' : "lightgray" + }), + onPress: function onPress(e) { + if (isCardFormValid) { + pay(); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[8], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Pay" + }) + }); + }; + var renderEvents = function renderEvents() { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.ScrollView, { + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray" + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + height: 50 + }, + children: metadataLog + }) + }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray", + marginTop: 16 + }, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: validationLog + }) + })] + }); + }; + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + flex: 1 + }, + children: [renderInputs(), renderPayButton(), renderEvents(), renderLoadingOverlay()] + }); + }; + var _default = RawAdyenBancontactCardScreen; + exports.default = _default; +},582,[3,65,19,36,1,476,544,73,477],"src/screens/RawAdyenBancontactCardScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/RawRetailOutletScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var rawDataManager = new (_$$_REQUIRE(_dependencyMap[5], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").RawDataManager)(); + var RawRetailOutletScreen = function RawRetailOutletScreen(props) { + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isLoading = _useState2[0], + setIsLoading = _useState2[1]; + var _useState3 = (0, _react.useState)(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isCardFormValid = _useState4[0], + setIsCardFormValid = _useState4[1]; + var _useState5 = (0, _react.useState)(undefined), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + requiredInputElementTypes = _useState6[0], + setRequiredInputElementTypes = _useState6[1]; + var _useState7 = (0, _react.useState)(undefined), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + retailers = _useState8[0], + setRetailers = _useState8[1]; + var _useState9 = (0, _react.useState)(undefined), + _useState10 = (0, _slicedToArray2.default)(_useState9, 2), + selectedRetailOutletId = _useState10[0], + setSelectedRetailOutletId = _useState10[1]; + var _useState11 = (0, _react.useState)(""), + _useState12 = (0, _slicedToArray2.default)(_useState11, 2), + metadataLog = _useState12[0], + setMetadataLog = _useState12[1]; + var _useState13 = (0, _react.useState)(""), + _useState14 = (0, _slicedToArray2.default)(_useState13, 2), + validationLog = _useState14[0], + setValidationLog = _useState14[1]; + (0, _react.useEffect)(function () { + initialize(); + }, []); + var initialize = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + var response = yield rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: function onMetadataChange(data) { + var log = "\nonMetadataChange: " + JSON.stringify(data) + "\n"; + console.log(log); + setMetadataLog(log); + }, + onValidation: function onValidation(isVallid, errors) { + var log = "\nonValidation:\nisValid: " + isVallid + "\n"; + if (errors) { + log += "errors:" + JSON.stringify(errors, null, 2) + "\n"; + } + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + } + }); + if (response != null && response.initializationData) { + var _retailers = response.initializationData.result; + setRetailers(_retailers); + } + var requiredInputElementTypes = yield rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + }); + return function initialize() { + return _ref.apply(this, arguments); + }; + }(); + var setRawData = function setRawData(tmpRetailOutletId) { + var rawData = { + id: tmpRetailOutletId + }; + setSelectedRetailOutletId(tmpRetailOutletId); + rawDataManager.setRawData(rawData); + }; + var renderInputs = function renderInputs() { + if (!retailers) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.FlatList, { + style: { + flex: 1 + }, + data: retailers, + keyExtractor: function keyExtractor(item) { + return item.id; + }, + renderItem: function renderItem(data) { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: { + marginVertical: 8 + }, + onPress: function onPress() { + setRawData(data.item.id); + }, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[7], "../styles").styles.heading3, { + color: data.item.id === selectedRetailOutletId ? "blue" : "black" + }), + children: data.item.name + }) + }); + } + }); + } + }; + var pay = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* () { + try { + yield rawDataManager.submit(); + } catch (err) { + console.error(err); + } + }); + return function pay() { + return _ref2.apply(this, arguments); + }; + }(); + var renderLoadingOverlay = function renderLoadingOverlay() { + if (!isLoading) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'rgba(200, 200, 200, 0.5)', + zIndex: 1000 + }, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.ActivityIndicator, { + size: "small" + }) + }); + } + }; + var renderPayButton = function renderPayButton() { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[7], "../styles").styles.button, { + marginVertical: 16, + backgroundColor: isCardFormValid ? 'black' : "lightgray" + }), + onPress: function onPress(e) { + if (isCardFormValid) { + pay(); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: Object.assign({}, _$$_REQUIRE(_dependencyMap[7], "../styles").styles.buttonText, { + color: 'white' + }), + children: "Pay" + }) + }); + }; + var renderEvents = function renderEvents() { + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray" + }, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: { + height: 50 + }, + children: metadataLog + }) + }), (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + backgroundColor: "lightgray", + marginTop: 16 + }, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_reactNative.Text, { + children: validationLog + }) + })] + }); + }; + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + flex: 1 + }, + children: [renderInputs(), renderPayButton(), renderEvents(), renderLoadingOverlay()] + }); + }; + var _default = RawRetailOutletScreen; + exports.default = _default; +},583,[3,65,19,36,1,544,73,477],"src/screens/RawRetailOutletScreen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "NativeStackView", { + enumerable: true, + get: function get() { + return _NativeStackView.default; + } + }); + Object.defineProperty(exports, "createNativeStackNavigator", { + enumerable: true, + get: function get() { + return _createNativeStackNavigator.default; + } + }); + var _createNativeStackNavigator = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./navigators/createNativeStackNavigator")); + var _NativeStackView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./views/NativeStackView")); +},584,[3,585,586],"node_modules/@react-navigation/native-stack/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _NativeStackView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../views/NativeStackView")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native-stack/src/navigators/createNativeStackNavigator.tsx"; + var _excluded = ["id", "initialRouteName", "children", "screenListeners", "screenOptions"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function NativeStackNavigator(_ref) { + var id = _ref.id, + initialRouteName = _ref.initialRouteName, + children = _ref.children, + screenListeners = _ref.screenListeners, + screenOptions = _ref.screenOptions, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _useNavigationBuilder = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").useNavigationBuilder)(_$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").StackRouter, { + id: id, + initialRouteName: initialRouteName, + children: children, + screenListeners: screenListeners, + screenOptions: screenOptions + }), + state = _useNavigationBuilder.state, + descriptors = _useNavigationBuilder.descriptors, + navigation = _useNavigationBuilder.navigation, + NavigationContent = _useNavigationBuilder.NavigationContent; + React.useEffect(function () { + return navigation == null ? void 0 : navigation.addListener == null ? void 0 : navigation.addListener('tabPress', function (e) { + var isFocused = navigation.isFocused(); + + requestAnimationFrame(function () { + if (state.index > 0 && isFocused && !e.defaultPrevented) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").StackActions.popToTop(), { + target: state.key + })); + } + }); + }); + }, [navigation, state.index, state.key]); + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(NavigationContent, { + children: (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_NativeStackView.default, Object.assign({}, rest, { + state: state, + navigation: navigation, + descriptors: descriptors + })) + }); + } + var _default = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").createNavigatorFactory)(NativeStackNavigator); + exports.default = _default; +},585,[3,132,36,586,590,73],"node_modules/@react-navigation/native-stack/src/navigators/createNativeStackNavigator.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = NativeStackView; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _warnOnce = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "warn-once")); + var _useDismissedRouteError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../utils/useDismissedRouteError")); + var _useInvalidPreventRemoveError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../utils/useInvalidPreventRemoveError")); + var _DebugContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./DebugContainer")); + var _HeaderConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./HeaderConfig")); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var isAndroid = _reactNative.Platform.OS === 'android'; + var MaybeNestedStack = function MaybeNestedStack(_ref) { + var options = _ref.options, + route = _ref.route, + presentation = _ref.presentation, + headerHeight = _ref.headerHeight, + headerTopInsetEnabled = _ref.headerTopInsetEnabled, + children = _ref.children; + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + var header = options.header, + _options$headerShown = options.headerShown, + headerShown = _options$headerShown === void 0 ? true : _options$headerShown, + contentStyle = options.contentStyle; + var isHeaderInModal = isAndroid ? false : presentation !== 'card' && headerShown === true && header === undefined; + var headerShownPreviousRef = React.useRef(headerShown); + React.useEffect(function () { + (0, _warnOnce.default)(!isAndroid && presentation !== 'card' && headerShownPreviousRef.current !== headerShown, "Dynamically changing 'headerShown' in modals will result in remounting the screen and losing all local state. See options for the screen '" + route.name + "'."); + headerShownPreviousRef.current = headerShown; + }, [headerShown, presentation, route.name]); + var content = (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_DebugContainer.default, { + style: [styles.container, presentation !== 'transparentModal' && presentation !== 'containedTransparentModal' && { + backgroundColor: colors.background + }, contentStyle], + stackPresentation: presentation === 'card' ? 'push' : presentation, + children: children + }); + if (isHeaderInModal) { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "react-native-screens").ScreenStack, { + style: styles.container, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[11], "react-native-screens").Screen, { + enabled: true, + style: _reactNative.StyleSheet.absoluteFill, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_HeaderConfig.default, Object.assign({}, options, { + route: route, + headerHeight: headerHeight, + headerTopInsetEnabled: headerTopInsetEnabled, + canGoBack: true + })), content] + }) + }); + } + return content; + }; + var SceneView = function SceneView(_ref2) { + var _preventedRoutes$rout; + var descriptor = _ref2.descriptor, + previousDescriptor = _ref2.previousDescriptor, + nextDescriptor = _ref2.nextDescriptor, + index = _ref2.index, + onWillDisappear = _ref2.onWillDisappear, + onAppear = _ref2.onAppear, + onDisappear = _ref2.onDisappear, + onDismissed = _ref2.onDismissed, + onHeaderBackButtonClicked = _ref2.onHeaderBackButtonClicked, + onNativeDismissCancelled = _ref2.onNativeDismissCancelled; + var route = descriptor.route, + navigation = descriptor.navigation, + options = descriptor.options, + render = descriptor.render; + var animationDuration = options.animationDuration, + _options$animationTyp = options.animationTypeForReplace, + animationTypeForReplace = _options$animationTyp === void 0 ? 'push' : _options$animationTyp, + gestureEnabled = options.gestureEnabled, + header = options.header, + headerBackButtonMenuEnabled = options.headerBackButtonMenuEnabled, + headerShown = options.headerShown, + headerTransparent = options.headerTransparent, + autoHideHomeIndicator = options.autoHideHomeIndicator, + navigationBarColor = options.navigationBarColor, + navigationBarHidden = options.navigationBarHidden, + orientation = options.orientation, + statusBarAnimation = options.statusBarAnimation, + statusBarHidden = options.statusBarHidden, + statusBarStyle = options.statusBarStyle, + statusBarTranslucent = options.statusBarTranslucent, + statusBarColor = options.statusBarColor, + freezeOnBlur = options.freezeOnBlur; + var animation = options.animation, + customAnimationOnGesture = options.customAnimationOnGesture, + fullScreenGestureEnabled = options.fullScreenGestureEnabled, + _options$presentation = options.presentation, + presentation = _options$presentation === void 0 ? 'card' : _options$presentation, + _options$gestureDirec = options.gestureDirection, + gestureDirection = _options$gestureDirec === void 0 ? presentation === 'card' ? 'horizontal' : 'vertical' : _options$gestureDirec; + if (gestureDirection === 'vertical' && _reactNative.Platform.OS === 'ios') { + if (fullScreenGestureEnabled === undefined) { + fullScreenGestureEnabled = true; + } + if (customAnimationOnGesture === undefined) { + customAnimationOnGesture = true; + } + if (animation === undefined) { + animation = 'slide_from_bottom'; + } + } + + var nextGestureDirection = nextDescriptor == null ? void 0 : nextDescriptor.options.gestureDirection; + var gestureDirectionOverride = nextGestureDirection != null ? nextGestureDirection : gestureDirection; + if (index === 0) { + presentation = 'card'; + } + var insets = (0, _$$_REQUIRE(_dependencyMap[12], "react-native-safe-area-context").useSafeAreaInsets)(); + var frame = (0, _$$_REQUIRE(_dependencyMap[12], "react-native-safe-area-context").useSafeAreaFrame)(); + + var isModal = presentation === 'modal' || presentation === 'formSheet'; + + var isIPhone = _reactNative.Platform.OS === 'ios' && !(_reactNative.Platform.isPad || _reactNative.Platform.isTVOS); + var isLandscape = frame.width > frame.height; + var isParentHeaderShown = React.useContext(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderShownContext); + var parentHeaderHeight = React.useContext(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderHeightContext); + var parentHeaderBack = React.useContext(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderBackContext); + var topInset = isParentHeaderShown || _reactNative.Platform.OS === 'ios' && isModal || isIPhone && isLandscape ? 0 : insets.top; + var _usePreventRemoveCont = (0, _$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").usePreventRemoveContext)(), + preventedRoutes = _usePreventRemoveCont.preventedRoutes; + var defaultHeaderHeight = (0, _$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").getDefaultHeaderHeight)(frame, isModal, topInset); + var _React$useState = React.useState(defaultHeaderHeight), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + customHeaderHeight = _React$useState2[0], + setCustomHeaderHeight = _React$useState2[1]; + var headerTopInsetEnabled = topInset !== 0; + var headerHeight = header ? customHeaderHeight : defaultHeaderHeight; + var headerBack = previousDescriptor ? { + title: (0, _$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").getHeaderTitle)(previousDescriptor.options, previousDescriptor.route.name) + } : parentHeaderBack; + var isRemovePrevented = (_preventedRoutes$rout = preventedRoutes[route.key]) == null ? void 0 : _preventedRoutes$rout.preventRemove; + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "react-native-screens").Screen, { + enabled: true, + style: _reactNative.StyleSheet.absoluteFill, + customAnimationOnSwipe: customAnimationOnGesture, + fullScreenSwipeEnabled: fullScreenGestureEnabled, + gestureEnabled: isAndroid ? + false : gestureEnabled, + homeIndicatorHidden: autoHideHomeIndicator, + navigationBarColor: navigationBarColor, + navigationBarHidden: navigationBarHidden, + replaceAnimation: animationTypeForReplace, + stackPresentation: presentation === 'card' ? 'push' : presentation, + stackAnimation: animation, + screenOrientation: orientation, + statusBarAnimation: statusBarAnimation, + statusBarHidden: statusBarHidden, + statusBarStyle: statusBarStyle, + statusBarColor: statusBarColor, + statusBarTranslucent: statusBarTranslucent, + swipeDirection: gestureDirectionOverride, + transitionDuration: animationDuration, + onWillDisappear: onWillDisappear, + onAppear: onAppear, + onDisappear: onDisappear, + onDismissed: onDismissed, + isNativeStack: true, + nativeBackButtonDismissalEnabled: false, + onHeaderBackButtonClicked: onHeaderBackButtonClicked + , + preventNativeDismiss: isRemovePrevented, + onNativeDismissCancelled: onNativeDismissCancelled + , + freezeOnBlur: freezeOnBlur, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").NavigationContext.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").NavigationRouteContext.Provider, { + value: route, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderShownContext.Provider, { + value: isParentHeaderShown || headerShown !== false, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderHeightContext.Provider, { + value: headerShown !== false ? headerHeight : parentHeaderHeight != null ? parentHeaderHeight : 0, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_HeaderConfig.default, Object.assign({}, options, { + route: route, + headerBackButtonMenuEnabled: isRemovePrevented !== undefined ? !isRemovePrevented : headerBackButtonMenuEnabled, + headerShown: header !== undefined ? false : headerShown, + headerHeight: headerHeight, + headerBackTitle: options.headerBackTitle !== undefined ? options.headerBackTitle : undefined, + headerTopInsetEnabled: headerTopInsetEnabled, + canGoBack: headerBack !== undefined + })), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: styles.scene, + children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(MaybeNestedStack, { + options: options, + route: route, + presentation: presentation, + headerHeight: headerHeight, + headerTopInsetEnabled: headerTopInsetEnabled, + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").HeaderBackContext.Provider, { + value: headerBack, + children: render() + }) + }), header !== undefined && headerShown !== false ? (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { + onLayout: function onLayout(e) { + setCustomHeaderHeight(e.nativeEvent.layout.height); + }, + style: headerTransparent ? styles.absolute : null, + children: header({ + back: headerBack, + options: options, + route: route, + navigation: navigation + }) + }) : null] + })] + }) + }) + }) + }) + }, route.key); + }; + function NativeStackViewInner(_ref3) { + var _this2 = this; + var state = _ref3.state, + navigation = _ref3.navigation, + descriptors = _ref3.descriptors; + var _useDismissedRouteErr = (0, _useDismissedRouteError.default)(state), + setNextDismissedKey = _useDismissedRouteErr.setNextDismissedKey; + (0, _useInvalidPreventRemoveError.default)(descriptors); + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "react-native-screens").ScreenStack, { + style: styles.container, + children: state.routes.map(function (route, index) { + var _state$routes, _state$routes2; + var descriptor = descriptors[route.key]; + var previousKey = (_state$routes = state.routes[index - 1]) == null ? void 0 : _state$routes.key; + var nextKey = (_state$routes2 = state.routes[index + 1]) == null ? void 0 : _state$routes2.key; + var previousDescriptor = previousKey ? descriptors[previousKey] : undefined; + var nextDescriptor = nextKey ? descriptors[nextKey] : undefined; + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(SceneView, { + index: index, + descriptor: descriptor, + previousDescriptor: previousDescriptor, + nextDescriptor: nextDescriptor, + onWillDisappear: function onWillDisappear() { + navigation.emit({ + type: 'transitionStart', + data: { + closing: true + }, + target: route.key + }); + }, + onAppear: function onAppear() { + navigation.emit({ + type: 'transitionEnd', + data: { + closing: false + }, + target: route.key + }); + }, + onDisappear: function onDisappear() { + navigation.emit({ + type: 'transitionEnd', + data: { + closing: true + }, + target: route.key + }); + }, + onDismissed: function onDismissed(event) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").StackActions.pop(event.nativeEvent.dismissCount), { + source: route.key, + target: state.key + })); + setNextDismissedKey(route.key); + }, + onHeaderBackButtonClicked: function onHeaderBackButtonClicked() { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").StackActions.pop(), { + source: route.key, + target: state.key + })); + }, + onNativeDismissCancelled: function onNativeDismissCancelled(event) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[9], "@react-navigation/native").StackActions.pop(event.nativeEvent.dismissCount), { + source: route.key, + target: state.key + })); + } + }, route.key); + }) + }); + } + function NativeStackView(props) { + return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").SafeAreaProviderCompat, { + children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(NativeStackViewInner, Object.assign({}, props)) + }); + } + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1 + }, + scene: { + flex: 1, + flexDirection: 'column-reverse' + }, + absolute: { + position: 'absolute', + top: 0, + left: 0, + right: 0 + } + }); +},586,[3,19,36,1,587,588,589,688,689,590,73,725,700,691],"node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var DEV = process.env.NODE_ENV !== "production"; + var warnings = new Set(); + function warnOnce(condition) { + if (DEV && condition) { + var _console; + for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + rest[_key - 1] = arguments[_key]; + } + var key = rest.join(" "); + if (warnings.has(key)) { + return; + } + warnings.add(key); + (_console = console).warn.apply(_console, rest); + } + } + module.exports = warnOnce; +},587,[],"node_modules/warn-once/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useInvalidPreventRemoveError; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useInvalidPreventRemoveError(state) { + var _state$routes$find; + var _React$useState = React.useState(null), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + nextDismissedKey = _React$useState2[0], + setNextDismissedKey = _React$useState2[1]; + var dismissedRouteName = nextDismissedKey ? (_state$routes$find = state.routes.find(function (route) { + return route.key === nextDismissedKey; + })) == null ? void 0 : _state$routes$find.name : null; + React.useEffect(function () { + if (dismissedRouteName) { + var message = "The screen '" + dismissedRouteName + "' was removed natively but didn't get removed from JS state. " + "This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\n" + "Consider using a 'usePreventRemove' hook with 'headerBackButtonMenuEnabled: false' to prevent users from natively going back multiple screens."; + console.error(message); + } + }, [dismissedRouteName]); + return { + setNextDismissedKey: setNextDismissedKey + }; + } +},588,[3,19,36],"node_modules/@react-navigation/native-stack/src/utils/useDismissedRouteError.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useInvalidPreventRemoveError; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useInvalidPreventRemoveError(descriptors) { + var _preventedDescriptor$, _preventedDescriptor$2; + var _usePreventRemoveCont = (0, _$$_REQUIRE(_dependencyMap[1], "@react-navigation/native").usePreventRemoveContext)(), + preventedRoutes = _usePreventRemoveCont.preventedRoutes; + var preventedRouteKey = Object.keys(preventedRoutes)[0]; + var preventedDescriptor = descriptors[preventedRouteKey]; + var isHeaderBackButtonMenuEnabledOnPreventedScreen = preventedDescriptor == null ? void 0 : (_preventedDescriptor$ = preventedDescriptor.options) == null ? void 0 : _preventedDescriptor$.headerBackButtonMenuEnabled; + var preventedRouteName = preventedDescriptor == null ? void 0 : (_preventedDescriptor$2 = preventedDescriptor.route) == null ? void 0 : _preventedDescriptor$2.name; + React.useEffect(function () { + if (preventedRouteKey != null && isHeaderBackButtonMenuEnabledOnPreventedScreen) { + var message = "The screen " + preventedRouteName + " uses 'usePreventRemove' hook alongside 'headerBackButtonMenuEnabled: true', which is not supported. \n\n" + ("Consider removing 'headerBackButtonMenuEnabled: true' from " + preventedRouteName + " screen to get rid of this error."); + console.error(message); + } + }, [preventedRouteKey, isHeaderBackButtonMenuEnabledOnPreventedScreen, preventedRouteName]); + } +},589,[36,590],"node_modules/@react-navigation/native-stack/src/utils/useInvalidPreventRemoveError.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = { + Link: true, + LinkingContext: true, + NavigationContainer: true, + ServerContainer: true, + DarkTheme: true, + DefaultTheme: true, + ThemeProvider: true, + useTheme: true, + useLinkBuilder: true, + useLinkProps: true, + useLinkTo: true, + useScrollToTop: true + }; + Object.defineProperty(exports, "DarkTheme", { + enumerable: true, + get: function get() { + return _DarkTheme.default; + } + }); + Object.defineProperty(exports, "DefaultTheme", { + enumerable: true, + get: function get() { + return _DefaultTheme.default; + } + }); + Object.defineProperty(exports, "Link", { + enumerable: true, + get: function get() { + return _Link.default; + } + }); + Object.defineProperty(exports, "LinkingContext", { + enumerable: true, + get: function get() { + return _LinkingContext.default; + } + }); + Object.defineProperty(exports, "NavigationContainer", { + enumerable: true, + get: function get() { + return _NavigationContainer.default; + } + }); + Object.defineProperty(exports, "ServerContainer", { + enumerable: true, + get: function get() { + return _ServerContainer.default; + } + }); + Object.defineProperty(exports, "ThemeProvider", { + enumerable: true, + get: function get() { + return _ThemeProvider.default; + } + }); + Object.defineProperty(exports, "useLinkBuilder", { + enumerable: true, + get: function get() { + return _useLinkBuilder.default; + } + }); + Object.defineProperty(exports, "useLinkProps", { + enumerable: true, + get: function get() { + return _useLinkProps.default; + } + }); + Object.defineProperty(exports, "useLinkTo", { + enumerable: true, + get: function get() { + return _useLinkTo.default; + } + }); + Object.defineProperty(exports, "useScrollToTop", { + enumerable: true, + get: function get() { + return _useScrollToTop.default; + } + }); + Object.defineProperty(exports, "useTheme", { + enumerable: true, + get: function get() { + return _useTheme.default; + } + }); + var _Link = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Link")); + var _LinkingContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./LinkingContext")); + var _NavigationContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationContainer")); + var _ServerContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./ServerContainer")); + var _DarkTheme = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./theming/DarkTheme")); + var _DefaultTheme = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./theming/DefaultTheme")); + var _ThemeProvider = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./theming/ThemeProvider")); + var _useTheme = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./theming/useTheme")); + Object.keys(_$$_REQUIRE(_dependencyMap[9], "./types")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[9], "./types")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[9], "./types")[key]; + } + }); + }); + var _useLinkBuilder = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./useLinkBuilder")); + var _useLinkProps = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./useLinkProps")); + var _useLinkTo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./useLinkTo")); + var _useScrollToTop = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./useScrollToTop")); + Object.keys(_$$_REQUIRE(_dependencyMap[14], "@react-navigation/core")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[14], "@react-navigation/core")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[14], "@react-navigation/core")[key]; + } + }); + }); +},590,[3,591,593,672,681,683,673,674,684,685,686,592,594,687,595],"node_modules/@react-navigation/native/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Link; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _useLinkProps = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./useLinkProps")); + var _excluded = ["to", "action"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function Link(_ref) { + var to = _ref.to, + action = _ref.action, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var props = (0, _useLinkProps.default)({ + to: to, + action: action + }); + var onPress = function onPress(e) { + if ('onPress' in rest) { + rest.onPress == null ? void 0 : rest.onPress(e); + } + props.onPress(e); + }; + return React.createElement(_reactNative.Text, Object.assign({}, props, rest, _reactNative.Platform.select({ + web: { + onClick: onPress + }, + default: { + onPress: onPress + } + }))); + } +},591,[3,132,36,1,592],"node_modules/@react-navigation/native/src/Link.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useLinkProps; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _LinkingContext = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./LinkingContext")); + var _useLinkTo = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./useLinkTo")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var getStateFromParams = function getStateFromParams(params) { + if (params != null && params.state) { + return params.state; + } + if (params != null && params.screen) { + return { + routes: [{ + name: params.screen, + params: params.params, + state: params.screen ? getStateFromParams(params.params) : undefined + }] + }; + } + return undefined; + }; + + function useLinkProps(_ref) { + var _options$getPathFromS; + var to = _ref.to, + action = _ref.action; + var root = React.useContext(_$$_REQUIRE(_dependencyMap[5], "@react-navigation/core").NavigationContainerRefContext); + var navigation = React.useContext(_$$_REQUIRE(_dependencyMap[5], "@react-navigation/core").NavigationHelpersContext); + var _React$useContext = React.useContext(_LinkingContext.default), + options = _React$useContext.options; + var linkTo = (0, _useLinkTo.default)(); + var onPress = function onPress(e) { + var _e$currentTarget; + var shouldHandle = false; + if (_reactNative.Platform.OS !== 'web' || !e) { + shouldHandle = e ? !e.defaultPrevented : true; + } else if (!e.defaultPrevented && + !(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && ( + e.button == null || e.button === 0) && + [undefined, null, '', 'self'].includes((_e$currentTarget = e.currentTarget) == null ? void 0 : _e$currentTarget.target)) { + e.preventDefault(); + shouldHandle = true; + } + if (shouldHandle) { + if (action) { + if (navigation) { + navigation.dispatch(action); + } else if (root) { + root.dispatch(action); + } else { + throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?"); + } + } else { + linkTo(to); + } + } + }; + var getPathFromStateHelper = (_options$getPathFromS = options == null ? void 0 : options.getPathFromState) != null ? _options$getPathFromS : _$$_REQUIRE(_dependencyMap[5], "@react-navigation/core").getPathFromState; + var href = typeof to === 'string' ? to : getPathFromStateHelper({ + routes: [{ + name: to.screen, + params: to.params, + state: getStateFromParams(to.params) + }] + }, options == null ? void 0 : options.config); + return { + href: href, + accessibilityRole: 'link', + onPress: onPress + }; + } +},592,[36,1,3,593,594,595],"node_modules/@react-navigation/native/src/useLinkProps.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var LinkingContext = React.createContext({ + options: undefined + }); + LinkingContext.displayName = 'LinkingContext'; + var _default = LinkingContext; + exports.default = _default; +},593,[36],"node_modules/@react-navigation/native/src/LinkingContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useLinkTo; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _LinkingContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./LinkingContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useLinkTo() { + var navigation = React.useContext(_$$_REQUIRE(_dependencyMap[3], "@react-navigation/core").NavigationContainerRefContext); + var linking = React.useContext(_LinkingContext.default); + var linkTo = React.useCallback(function (to) { + if (navigation === undefined) { + throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?"); + } + if (typeof to !== 'string') { + navigation.navigate(to.screen, to.params); + return; + } + if (!to.startsWith('/')) { + throw new Error("The path must start with '/' (" + to + ")."); + } + var options = linking.options; + var state = options != null && options.getStateFromPath ? options.getStateFromPath(to, options.config) : (0, _$$_REQUIRE(_dependencyMap[3], "@react-navigation/core").getStateFromPath)(to, options == null ? void 0 : options.config); + if (state) { + var action = (0, _$$_REQUIRE(_dependencyMap[3], "@react-navigation/core").getActionFromState)(state, options == null ? void 0 : options.config); + if (action !== undefined) { + navigation.dispatch(action); + } else { + navigation.reset(state); + } + } else { + throw new Error('Failed to parse the path to a navigation state.'); + } + }, [linking, navigation]); + return linkTo; + } +},594,[36,3,593,595],"node_modules/@react-navigation/native/src/useLinkTo.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = { + BaseNavigationContainer: true, + createNavigationContainerRef: true, + createNavigatorFactory: true, + CurrentRenderContext: true, + findFocusedRoute: true, + getActionFromState: true, + getFocusedRouteNameFromRoute: true, + getPathFromState: true, + getStateFromPath: true, + NavigationContainerRefContext: true, + NavigationContext: true, + NavigationHelpersContext: true, + NavigationRouteContext: true, + PreventRemoveContext: true, + PreventRemoveProvider: true, + useFocusEffect: true, + useIsFocused: true, + useNavigation: true, + useNavigationBuilder: true, + useNavigationContainerRef: true, + useNavigationState: true, + UNSTABLE_usePreventRemove: true, + usePreventRemoveContext: true, + useRoute: true, + validatePathConfig: true + }; + Object.defineProperty(exports, "BaseNavigationContainer", { + enumerable: true, + get: function get() { + return _BaseNavigationContainer.default; + } + }); + Object.defineProperty(exports, "CurrentRenderContext", { + enumerable: true, + get: function get() { + return _CurrentRenderContext.default; + } + }); + Object.defineProperty(exports, "NavigationContainerRefContext", { + enumerable: true, + get: function get() { + return _NavigationContainerRefContext.default; + } + }); + Object.defineProperty(exports, "NavigationContext", { + enumerable: true, + get: function get() { + return _NavigationContext.default; + } + }); + Object.defineProperty(exports, "NavigationHelpersContext", { + enumerable: true, + get: function get() { + return _NavigationHelpersContext.default; + } + }); + Object.defineProperty(exports, "NavigationRouteContext", { + enumerable: true, + get: function get() { + return _NavigationRouteContext.default; + } + }); + Object.defineProperty(exports, "PreventRemoveContext", { + enumerable: true, + get: function get() { + return _PreventRemoveContext.default; + } + }); + Object.defineProperty(exports, "PreventRemoveProvider", { + enumerable: true, + get: function get() { + return _PreventRemoveProvider.default; + } + }); + Object.defineProperty(exports, "UNSTABLE_usePreventRemove", { + enumerable: true, + get: function get() { + return _usePreventRemove.default; + } + }); + Object.defineProperty(exports, "createNavigationContainerRef", { + enumerable: true, + get: function get() { + return _createNavigationContainerRef.default; + } + }); + Object.defineProperty(exports, "createNavigatorFactory", { + enumerable: true, + get: function get() { + return _createNavigatorFactory.default; + } + }); + Object.defineProperty(exports, "findFocusedRoute", { + enumerable: true, + get: function get() { + return _findFocusedRoute.default; + } + }); + Object.defineProperty(exports, "getActionFromState", { + enumerable: true, + get: function get() { + return _getActionFromState.default; + } + }); + Object.defineProperty(exports, "getFocusedRouteNameFromRoute", { + enumerable: true, + get: function get() { + return _getFocusedRouteNameFromRoute.default; + } + }); + Object.defineProperty(exports, "getPathFromState", { + enumerable: true, + get: function get() { + return _getPathFromState.default; + } + }); + Object.defineProperty(exports, "getStateFromPath", { + enumerable: true, + get: function get() { + return _getStateFromPath.default; + } + }); + Object.defineProperty(exports, "useFocusEffect", { + enumerable: true, + get: function get() { + return _useFocusEffect.default; + } + }); + Object.defineProperty(exports, "useIsFocused", { + enumerable: true, + get: function get() { + return _useIsFocused.default; + } + }); + Object.defineProperty(exports, "useNavigation", { + enumerable: true, + get: function get() { + return _useNavigation.default; + } + }); + Object.defineProperty(exports, "useNavigationBuilder", { + enumerable: true, + get: function get() { + return _useNavigationBuilder.default; + } + }); + Object.defineProperty(exports, "useNavigationContainerRef", { + enumerable: true, + get: function get() { + return _useNavigationContainerRef.default; + } + }); + Object.defineProperty(exports, "useNavigationState", { + enumerable: true, + get: function get() { + return _useNavigationState.default; + } + }); + Object.defineProperty(exports, "usePreventRemoveContext", { + enumerable: true, + get: function get() { + return _usePreventRemoveContext.default; + } + }); + Object.defineProperty(exports, "useRoute", { + enumerable: true, + get: function get() { + return _useRoute.default; + } + }); + Object.defineProperty(exports, "validatePathConfig", { + enumerable: true, + get: function get() { + return _validatePathConfig.default; + } + }); + var _BaseNavigationContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./BaseNavigationContainer")); + var _createNavigationContainerRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./createNavigationContainerRef")); + var _createNavigatorFactory = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./createNavigatorFactory")); + var _CurrentRenderContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./CurrentRenderContext")); + var _findFocusedRoute = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./findFocusedRoute")); + var _getActionFromState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./getActionFromState")); + var _getFocusedRouteNameFromRoute = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./getFocusedRouteNameFromRoute")); + var _getPathFromState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./getPathFromState")); + var _getStateFromPath = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./getStateFromPath")); + var _NavigationContainerRefContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NavigationContainerRefContext")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./NavigationContext")); + var _NavigationHelpersContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./NavigationHelpersContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./NavigationRouteContext")); + var _PreventRemoveContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./PreventRemoveContext")); + var _PreventRemoveProvider = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./PreventRemoveProvider")); + Object.keys(_$$_REQUIRE(_dependencyMap[16], "./types")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[16], "./types")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[16], "./types")[key]; + } + }); + }); + var _useFocusEffect = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "./useFocusEffect")); + var _useIsFocused = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "./useIsFocused")); + var _useNavigation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "./useNavigation")); + var _useNavigationBuilder = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[20], "./useNavigationBuilder")); + var _useNavigationContainerRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[21], "./useNavigationContainerRef")); + var _useNavigationState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[22], "./useNavigationState")); + var _usePreventRemove = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[23], "./usePreventRemove")); + var _usePreventRemoveContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[24], "./usePreventRemoveContext")); + var _useRoute = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[25], "./useRoute")); + var _validatePathConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[26], "./validatePathConfig")); + Object.keys(_$$_REQUIRE(_dependencyMap[27], "@react-navigation/routers")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[27], "@react-navigation/routers")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[27], "@react-navigation/routers")[key]; + } + }); + }); +},595,[3,596,612,622,625,600,626,627,629,637,602,603,639,604,640,641,643,644,646,645,647,667,668,669,670,671,636,613],"node_modules/@react-navigation/core/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _checkDuplicateRouteNames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./checkDuplicateRouteNames")); + var _checkSerializable = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./checkSerializable")); + var _EnsureSingleNavigator = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./EnsureSingleNavigator")); + var _findFocusedRoute = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./findFocusedRoute")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./NavigationBuilderContext")); + var _NavigationContainerRefContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NavigationContainerRefContext")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NavigationContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./NavigationRouteContext")); + var _NavigationStateContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./NavigationStateContext")); + var _UnhandledActionContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./UnhandledActionContext")); + var _useChildListeners2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./useChildListeners")); + var _useEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./useEventEmitter")); + var _useKeyedChildListeners = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./useKeyedChildListeners")); + var _useOptionsGetters2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "./useOptionsGetters")); + var _useSyncState3 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "./useSyncState")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/BaseNavigationContainer.tsx"; + var _excluded = ["key", "routeNames"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var serializableWarnings = []; + var duplicateNameWarnings = []; + + var getPartialState = function getPartialState(state) { + if (state === undefined) { + return; + } + + var key = state.key, + routeNames = state.routeNames, + partialState = (0, _objectWithoutProperties2.default)(state, _excluded); + return Object.assign({}, partialState, { + stale: true, + routes: state.routes.map(function (route) { + if (route.state === undefined) { + return route; + } + return Object.assign({}, route, { + state: getPartialState(route.state) + }); + }) + }); + }; + + var BaseNavigationContainer = React.forwardRef(function BaseNavigationContainer(_ref, ref) { + var initialState = _ref.initialState, + onStateChange = _ref.onStateChange, + onUnhandledAction = _ref.onUnhandledAction, + independent = _ref.independent, + children = _ref.children; + var parent = React.useContext(_NavigationStateContext.default); + if (!parent.isDefault && !independent) { + throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them."); + } + var _useSyncState = (0, _useSyncState3.default)(function () { + return getPartialState(initialState == null ? undefined : initialState); + }), + _useSyncState2 = (0, _slicedToArray2.default)(_useSyncState, 5), + state = _useSyncState2[0], + getState = _useSyncState2[1], + setState = _useSyncState2[2], + scheduleUpdate = _useSyncState2[3], + flushUpdates = _useSyncState2[4]; + var isFirstMountRef = React.useRef(true); + var navigatorKeyRef = React.useRef(); + var getKey = React.useCallback(function () { + return navigatorKeyRef.current; + }, []); + var setKey = React.useCallback(function (key) { + navigatorKeyRef.current = key; + }, []); + var _useChildListeners = (0, _useChildListeners2.default)(), + listeners = _useChildListeners.listeners, + addListener = _useChildListeners.addListener; + var _useKeyedChildListene = (0, _useKeyedChildListeners.default)(), + keyedListeners = _useKeyedChildListene.keyedListeners, + addKeyedListener = _useKeyedChildListene.addKeyedListener; + var dispatch = React.useCallback(function (action) { + if (listeners.focus[0] == null) { + console.error(_$$_REQUIRE(_dependencyMap[19], "./createNavigationContainerRef").NOT_INITIALIZED_ERROR); + } else { + listeners.focus[0](function (navigation) { + return navigation.dispatch(action); + }); + } + }, [listeners.focus]); + var canGoBack = React.useCallback(function () { + if (listeners.focus[0] == null) { + return false; + } + var _listeners$focus$ = listeners.focus[0](function (navigation) { + return navigation.canGoBack(); + }), + result = _listeners$focus$.result, + handled = _listeners$focus$.handled; + if (handled) { + return result; + } else { + return false; + } + }, [listeners.focus]); + var resetRoot = React.useCallback(function (state) { + var _state$key; + var target = (_state$key = state == null ? void 0 : state.key) != null ? _state$key : keyedListeners.getState.root == null ? void 0 : keyedListeners.getState.root().key; + if (target == null) { + console.error(_$$_REQUIRE(_dependencyMap[19], "./createNavigationContainerRef").NOT_INITIALIZED_ERROR); + } else { + listeners.focus[0](function (navigation) { + return navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[20], "@react-navigation/routers").CommonActions.reset(state), { + target: target + })); + }); + } + }, [keyedListeners.getState, listeners.focus]); + var getRootState = React.useCallback(function () { + return keyedListeners.getState.root == null ? void 0 : keyedListeners.getState.root(); + }, [keyedListeners.getState]); + var getCurrentRoute = React.useCallback(function () { + var state = getRootState(); + if (state == null) { + return undefined; + } + var route = (0, _findFocusedRoute.default)(state); + return route; + }, [getRootState]); + var emitter = (0, _useEventEmitter.default)(); + var _useOptionsGetters = (0, _useOptionsGetters2.default)({}), + addOptionsGetter = _useOptionsGetters.addOptionsGetter, + getCurrentOptions = _useOptionsGetters.getCurrentOptions; + var navigation = React.useMemo(function () { + return Object.assign({}, Object.keys(_$$_REQUIRE(_dependencyMap[20], "@react-navigation/routers").CommonActions).reduce(function (acc, name) { + acc[name] = function () { + return ( + dispatch(_$$_REQUIRE(_dependencyMap[20], "@react-navigation/routers").CommonActions[name].apply(_$$_REQUIRE(_dependencyMap[20], "@react-navigation/routers").CommonActions, arguments)) + ); + }; + return acc; + }, {}), emitter.create('root'), { + dispatch: dispatch, + resetRoot: resetRoot, + isFocused: function isFocused() { + return true; + }, + canGoBack: canGoBack, + getParent: function getParent() { + return undefined; + }, + getState: function getState() { + return stateRef.current; + }, + getRootState: getRootState, + getCurrentRoute: getCurrentRoute, + getCurrentOptions: getCurrentOptions, + isReady: function isReady() { + return listeners.focus[0] != null; + } + }); + }, [canGoBack, dispatch, emitter, getCurrentOptions, getCurrentRoute, getRootState, listeners.focus, resetRoot]); + React.useImperativeHandle(ref, function () { + return navigation; + }, [navigation]); + var onDispatchAction = React.useCallback(function (action, noop) { + emitter.emit({ + type: '__unsafe_action__', + data: { + action: action, + noop: noop, + stack: stackRef.current + } + }); + }, [emitter]); + var lastEmittedOptionsRef = React.useRef(); + var onOptionsChange = React.useCallback(function (options) { + if (lastEmittedOptionsRef.current === options) { + return; + } + lastEmittedOptionsRef.current = options; + emitter.emit({ + type: 'options', + data: { + options: options + } + }); + }, [emitter]); + var stackRef = React.useRef(); + var builderContext = React.useMemo(function () { + return { + addListener: addListener, + addKeyedListener: addKeyedListener, + onDispatchAction: onDispatchAction, + onOptionsChange: onOptionsChange, + stackRef: stackRef + }; + }, [addListener, addKeyedListener, onDispatchAction, onOptionsChange]); + var scheduleContext = React.useMemo(function () { + return { + scheduleUpdate: scheduleUpdate, + flushUpdates: flushUpdates + }; + }, [scheduleUpdate, flushUpdates]); + var isInitialRef = React.useRef(true); + var getIsInitial = React.useCallback(function () { + return isInitialRef.current; + }, []); + var context = React.useMemo(function () { + return { + state: state, + getState: getState, + setState: setState, + getKey: getKey, + setKey: setKey, + getIsInitial: getIsInitial, + addOptionsGetter: addOptionsGetter + }; + }, [state, getState, setState, getKey, setKey, getIsInitial, addOptionsGetter]); + var onStateChangeRef = React.useRef(onStateChange); + var stateRef = React.useRef(state); + React.useEffect(function () { + isInitialRef.current = false; + onStateChangeRef.current = onStateChange; + stateRef.current = state; + }); + React.useEffect(function () { + var hydratedState = getRootState(); + if (process.env.NODE_ENV !== 'production') { + if (hydratedState !== undefined) { + var serializableResult = (0, _checkSerializable.default)(hydratedState); + if (!serializableResult.serializable) { + var location = serializableResult.location, + reason = serializableResult.reason; + var path = ''; + var pointer = hydratedState; + var params = false; + for (var i = 0; i < location.length; i++) { + var curr = location[i]; + var prev = location[i - 1]; + pointer = pointer[curr]; + if (!params && curr === 'state') { + continue; + } else if (!params && curr === 'routes') { + if (path) { + path += ' > '; + } + } else if (!params && typeof curr === 'number' && prev === 'routes') { + var _pointer; + path += (_pointer = pointer) == null ? void 0 : _pointer.name; + } else if (!params) { + path += " > " + curr; + params = true; + } else { + if (typeof curr === 'number' || /^[0-9]+$/.test(curr)) { + path += "[" + curr + "]"; + } else if (/^[a-z$_]+$/i.test(curr)) { + path += "." + curr; + } else { + path += "[" + JSON.stringify(curr) + "]"; + } + } + } + var message = "Non-serializable values were found in the navigation state. Check:\n\n" + path + " (" + reason + ")\n\nThis can break usage such as persisting and restoring state. This might happen if you passed non-serializable values such as function, class instances etc. in params. If you need to use components with callbacks in your options, you can use 'navigation.setOptions' instead. See https://reactnavigation.org/docs/troubleshooting#i-get-the-warning-non-serializable-values-were-found-in-the-navigation-state for more details."; + if (!serializableWarnings.includes(message)) { + serializableWarnings.push(message); + console.warn(message); + } + } + var duplicateRouteNamesResult = (0, _checkDuplicateRouteNames.default)(hydratedState); + if (duplicateRouteNamesResult.length) { + var _message = "Found screens with the same name nested inside one another. Check:\n" + duplicateRouteNamesResult.map(function (locations) { + return "\n" + locations.join(', '); + }) + "\n\nThis can cause confusing behavior during navigation. Consider using unique names for each screen instead."; + if (!duplicateNameWarnings.includes(_message)) { + duplicateNameWarnings.push(_message); + console.warn(_message); + } + } + } + } + emitter.emit({ + type: 'state', + data: { + state: state + } + }); + if (!isFirstMountRef.current && onStateChangeRef.current) { + onStateChangeRef.current(hydratedState); + } + isFirstMountRef.current = false; + }, [getRootState, emitter, state]); + var defaultOnUnhandledAction = React.useCallback(function (action) { + if (process.env.NODE_ENV === 'production') { + return; + } + var payload = action.payload; + var message = "The action '" + action.type + "'" + (payload ? " with payload " + JSON.stringify(action.payload) : '') + " was not handled by any navigator."; + switch (action.type) { + case 'NAVIGATE': + case 'PUSH': + case 'REPLACE': + case 'JUMP_TO': + if (payload != null && payload.name) { + message += "\n\nDo you have a screen named '" + payload.name + "'?\n\nIf you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator."; + } else { + message += "\n\nYou need to pass the name of the screen to navigate to.\n\nSee https://reactnavigation.org/docs/navigation-actions for usage."; + } + break; + case 'GO_BACK': + case 'POP': + case 'POP_TO_TOP': + message += "\n\nIs there any screen to go back to?"; + break; + case 'OPEN_DRAWER': + case 'CLOSE_DRAWER': + case 'TOGGLE_DRAWER': + message += "\n\nIs your screen inside a Drawer navigator?"; + break; + } + message += "\n\nThis is a development-only warning and won't be shown in production."; + console.error(message); + }, []); + var element = (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_NavigationContainerRefContext.default.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[22], "./useScheduleUpdate").ScheduleUpdateContext.Provider, { + value: scheduleContext, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_NavigationBuilderContext.default.Provider, { + value: builderContext, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_NavigationStateContext.default.Provider, { + value: context, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_UnhandledActionContext.default.Provider, { + value: onUnhandledAction != null ? onUnhandledAction : defaultOnUnhandledAction, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_EnsureSingleNavigator.default, { + children: children + }) + }) + }) + }) + }) + }); + if (independent) { + element = (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_NavigationRouteContext.default.Provider, { + value: undefined, + children: (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_NavigationContext.default.Provider, { + value: undefined, + children: element + }) + }); + } + return element; + }); + var _default = BaseNavigationContainer; + exports.default = _default; +},596,[3,19,132,36,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,73,621],"node_modules/@react-navigation/core/src/BaseNavigationContainer.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = checkDuplicateRouteNames; + function checkDuplicateRouteNames(state) { + var duplicates = []; + var getRouteNames = function getRouteNames(location, state) { + state.routes.forEach(function (route) { + var _route$state, _route$state$routeNam; + var currentLocation = location ? location + " > " + route.name : route.name; + (_route$state = route.state) == null ? void 0 : (_route$state$routeNam = _route$state.routeNames) == null ? void 0 : _route$state$routeNam.forEach(function (routeName) { + if (routeName === route.name) { + duplicates.push([currentLocation, currentLocation + " > " + route.name]); + } + }); + if (route.state) { + getRouteNames(currentLocation, route.state); + } + }); + }; + getRouteNames('', state); + return duplicates; + } +},597,[],"node_modules/@react-navigation/core/src/checkDuplicateRouteNames.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = checkSerializable; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var checkSerializableWithoutCircularReference = function checkSerializableWithoutCircularReference(o, seen, location) { + if (o === undefined || o === null || typeof o === 'boolean' || typeof o === 'number' || typeof o === 'string') { + return { + serializable: true + }; + } + if (Object.prototype.toString.call(o) !== '[object Object]' && !Array.isArray(o)) { + return { + serializable: false, + location: location, + reason: typeof o === 'function' ? 'Function' : String(o) + }; + } + if (seen.has(o)) { + return { + serializable: false, + reason: 'Circular reference', + location: location + }; + } + seen.add(o); + if (Array.isArray(o)) { + for (var i = 0; i < o.length; i++) { + var childResult = checkSerializableWithoutCircularReference(o[i], new Set(seen), [].concat((0, _toConsumableArray2.default)(location), [i])); + if (!childResult.serializable) { + return childResult; + } + } + } else { + for (var _key in o) { + var _childResult = checkSerializableWithoutCircularReference(o[_key], new Set(seen), [].concat((0, _toConsumableArray2.default)(location), [_key])); + if (!_childResult.serializable) { + return _childResult; + } + } + } + return { + serializable: true + }; + }; + function checkSerializable(o) { + return checkSerializableWithoutCircularReference(o, new Set(), []); + } +},598,[3,6],"node_modules/@react-navigation/core/src/checkSerializable.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SingleNavigatorContext = void 0; + exports.default = EnsureSingleNavigator; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/EnsureSingleNavigator.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var MULTIPLE_NAVIGATOR_ERROR = "Another navigator is already registered for this container. You likely have multiple navigators under a single \"NavigationContainer\" or \"Screen\". Make sure each navigator is under a separate \"Screen\" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting."; + var SingleNavigatorContext = React.createContext(undefined); + + exports.SingleNavigatorContext = SingleNavigatorContext; + function EnsureSingleNavigator(_ref) { + var children = _ref.children; + var navigatorKeyRef = React.useRef(); + var value = React.useMemo(function () { + return { + register: function register(key) { + var currentKey = navigatorKeyRef.current; + if (currentKey !== undefined && key !== currentKey) { + throw new Error(MULTIPLE_NAVIGATOR_ERROR); + } + navigatorKeyRef.current = key; + }, + unregister: function unregister(key) { + var currentKey = navigatorKeyRef.current; + if (key !== currentKey) { + return; + } + navigatorKeyRef.current = undefined; + } + }; + }, []); + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(SingleNavigatorContext.Provider, { + value: value, + children: children + }); + } +},599,[36,73],"node_modules/@react-navigation/core/src/EnsureSingleNavigator.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = findFocusedRoute; + function findFocusedRoute(state) { + var _current2, _current$index3, _current3; + var current = state; + while (((_current = current) == null ? void 0 : _current.routes[(_current$index = current.index) != null ? _current$index : 0].state) != null) { + var _current, _current$index, _current$index2; + current = current.routes[(_current$index2 = current.index) != null ? _current$index2 : 0].state; + } + var route = (_current2 = current) == null ? void 0 : _current2.routes[(_current$index3 = (_current3 = current) == null ? void 0 : _current3.index) != null ? _current$index3 : 0]; + return route; + } +},600,[],"node_modules/@react-navigation/core/src/findFocusedRoute.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationBuilderContext = React.createContext({ + onDispatchAction: function onDispatchAction() { + return undefined; + }, + onOptionsChange: function onOptionsChange() { + return undefined; + } + }); + var _default = NavigationBuilderContext; + exports.default = _default; +},601,[36],"node_modules/@react-navigation/core/src/NavigationBuilderContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationContainerRefContext = React.createContext(undefined); + var _default = NavigationContainerRefContext; + exports.default = _default; +},602,[36],"node_modules/@react-navigation/core/src/NavigationContainerRefContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationContext = React.createContext(undefined); + var _default = NavigationContext; + exports.default = _default; +},603,[36],"node_modules/@react-navigation/core/src/NavigationContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationRouteContext = React.createContext(undefined); + var _default = NavigationRouteContext; + exports.default = _default; +},604,[36],"node_modules/@react-navigation/core/src/NavigationRouteContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var MISSING_CONTEXT_ERROR = "Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions."; + var _default = React.createContext({ + isDefault: true, + get getKey() { + throw new Error(MISSING_CONTEXT_ERROR); + }, + get setKey() { + throw new Error(MISSING_CONTEXT_ERROR); + }, + get getState() { + throw new Error(MISSING_CONTEXT_ERROR); + }, + get setState() { + throw new Error(MISSING_CONTEXT_ERROR); + }, + get getIsInitial() { + throw new Error(MISSING_CONTEXT_ERROR); + } + }); + exports.default = _default; +},605,[36],"node_modules/@react-navigation/core/src/NavigationStateContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var UnhandledActionContext = React.createContext(undefined); + var _default = UnhandledActionContext; + exports.default = _default; +},606,[36],"node_modules/@react-navigation/core/src/UnhandledActionContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useChildListeners; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useChildListeners() { + var _React$useRef = React.useRef({ + action: [], + focus: [] + }), + listeners = _React$useRef.current; + var addListener = React.useCallback(function (type, listener) { + listeners[type].push(listener); + var removed = false; + return function () { + var index = listeners[type].indexOf(listener); + if (!removed && index > -1) { + removed = true; + listeners[type].splice(index, 1); + } + }; + }, [listeners]); + return { + listeners: listeners, + addListener: addListener + }; + } +},607,[36],"node_modules/@react-navigation/core/src/useChildListeners.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useEventEmitter; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useEventEmitter(listen) { + var listenRef = React.useRef(listen); + React.useEffect(function () { + listenRef.current = listen; + }); + var listeners = React.useRef(Object.create(null)); + var create = React.useCallback(function (target) { + var removeListener = function removeListener(type, callback) { + var callbacks = listeners.current[type] ? listeners.current[type][target] : undefined; + if (!callbacks) { + return; + } + var index = callbacks.indexOf(callback); + if (index > -1) { + callbacks.splice(index, 1); + } + }; + var addListener = function addListener(type, callback) { + listeners.current[type] = listeners.current[type] || {}; + listeners.current[type][target] = listeners.current[type][target] || []; + listeners.current[type][target].push(callback); + var removed = false; + return function () { + if (!removed) { + removed = true; + removeListener(type, callback); + } + }; + }; + return { + addListener: addListener, + removeListener: removeListener + }; + }, []); + var emit = React.useCallback(function (_ref) { + var _items$target, _ref2; + var type = _ref.type, + data = _ref.data, + target = _ref.target, + canPreventDefault = _ref.canPreventDefault; + var items = listeners.current[type] || {}; + + var callbacks = target !== undefined ? (_items$target = items[target]) == null ? void 0 : _items$target.slice() : (_ref2 = []).concat.apply(_ref2, (0, _toConsumableArray2.default)(Object.keys(items).map(function (t) { + return items[t]; + }))).filter(function (cb, i, self) { + return self.lastIndexOf(cb) === i; + }); + var event = { + get type() { + return type; + } + }; + if (target !== undefined) { + Object.defineProperty(event, 'target', { + enumerable: true, + get: function get() { + return target; + } + }); + } + if (data !== undefined) { + Object.defineProperty(event, 'data', { + enumerable: true, + get: function get() { + return data; + } + }); + } + if (canPreventDefault) { + var defaultPrevented = false; + Object.defineProperties(event, { + defaultPrevented: { + enumerable: true, + get: function get() { + return defaultPrevented; + } + }, + preventDefault: { + enumerable: true, + value: function value() { + defaultPrevented = true; + } + } + }); + } + listenRef.current == null ? void 0 : listenRef.current(event); + callbacks == null ? void 0 : callbacks.forEach(function (cb) { + return cb(event); + }); + return event; + }, []); + return React.useMemo(function () { + return { + create: create, + emit: emit + }; + }, [create, emit]); + } +},608,[3,6,36],"node_modules/@react-navigation/core/src/useEventEmitter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useKeyedChildListeners; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useKeyedChildListeners() { + var _React$useRef = React.useRef(Object.assign(Object.create(null), { + getState: {}, + beforeRemove: {} + })), + keyedListeners = _React$useRef.current; + var addKeyedListener = React.useCallback(function (type, key, listener) { + keyedListeners[type][key] = listener; + return function () { + keyedListeners[type][key] = undefined; + }; + }, [keyedListeners]); + return { + keyedListeners: keyedListeners, + addKeyedListener: addKeyedListener + }; + } +},609,[36],"node_modules/@react-navigation/core/src/useKeyedChildListeners.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useOptionsGetters; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationBuilderContext")); + var _NavigationStateContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationStateContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useOptionsGetters(_ref) { + var key = _ref.key, + options = _ref.options, + navigation = _ref.navigation; + var optionsRef = React.useRef(options); + var optionsGettersFromChildRef = React.useRef({}); + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + onOptionsChange = _React$useContext.onOptionsChange; + var _React$useContext2 = React.useContext(_NavigationStateContext.default), + parentAddOptionsGetter = _React$useContext2.addOptionsGetter; + var optionsChangeListener = React.useCallback(function () { + var _navigation$isFocused; + var isFocused = (_navigation$isFocused = navigation == null ? void 0 : navigation.isFocused()) != null ? _navigation$isFocused : true; + var hasChildren = Object.keys(optionsGettersFromChildRef.current).length; + if (isFocused && !hasChildren) { + var _optionsRef$current; + onOptionsChange((_optionsRef$current = optionsRef.current) != null ? _optionsRef$current : {}); + } + }, [navigation, onOptionsChange]); + React.useEffect(function () { + optionsRef.current = options; + optionsChangeListener(); + return navigation == null ? void 0 : navigation.addListener('focus', optionsChangeListener); + }, [navigation, options, optionsChangeListener]); + var getOptionsFromListener = React.useCallback(function () { + for (var _key in optionsGettersFromChildRef.current) { + if (optionsGettersFromChildRef.current.hasOwnProperty(_key)) { + var _optionsGettersFromCh, _optionsGettersFromCh2; + var result = (_optionsGettersFromCh = (_optionsGettersFromCh2 = optionsGettersFromChildRef.current)[_key]) == null ? void 0 : _optionsGettersFromCh.call(_optionsGettersFromCh2); + + if (result !== null) { + return result; + } + } + } + return null; + }, []); + var getCurrentOptions = React.useCallback(function () { + var _navigation$isFocused2; + var isFocused = (_navigation$isFocused2 = navigation == null ? void 0 : navigation.isFocused()) != null ? _navigation$isFocused2 : true; + if (!isFocused) { + return null; + } + var optionsFromListener = getOptionsFromListener(); + if (optionsFromListener !== null) { + return optionsFromListener; + } + return optionsRef.current; + }, [navigation, getOptionsFromListener]); + React.useEffect(function () { + return parentAddOptionsGetter == null ? void 0 : parentAddOptionsGetter(key, getCurrentOptions); + }, [getCurrentOptions, parentAddOptionsGetter, key]); + var addOptionsGetter = React.useCallback(function (key, getter) { + optionsGettersFromChildRef.current[key] = getter; + optionsChangeListener(); + return function () { + delete optionsGettersFromChildRef.current[key]; + optionsChangeListener(); + }; + }, [optionsChangeListener]); + return { + addOptionsGetter: addOptionsGetter, + getCurrentOptions: getCurrentOptions + }; + } +},610,[36,3,601,605],"node_modules/@react-navigation/core/src/useOptionsGetters.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useSyncState; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var UNINTIALIZED_STATE = {}; + + function useSyncState(initialState) { + var stateRef = React.useRef(UNINTIALIZED_STATE); + var isSchedulingRef = React.useRef(false); + var isMountedRef = React.useRef(true); + React.useEffect(function () { + isMountedRef.current = true; + return function () { + isMountedRef.current = false; + }; + }, []); + if (stateRef.current === UNINTIALIZED_STATE) { + stateRef.current = + typeof initialState === 'function' ? initialState() : initialState; + } + var _React$useState = React.useState(stateRef.current), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + trackingState = _React$useState2[0], + setTrackingState = _React$useState2[1]; + var getState = React.useCallback(function () { + return stateRef.current; + }, []); + var setState = React.useCallback(function (state) { + if (state === stateRef.current || !isMountedRef.current) { + return; + } + stateRef.current = state; + if (!isSchedulingRef.current) { + setTrackingState(state); + } + }, []); + var scheduleUpdate = React.useCallback(function (callback) { + isSchedulingRef.current = true; + try { + callback(); + } finally { + isSchedulingRef.current = false; + } + }, []); + var flushUpdates = React.useCallback(function () { + if (!isMountedRef.current) { + return; + } + + setTrackingState(stateRef.current); + }, []); + + if (trackingState !== stateRef.current) { + setTrackingState(stateRef.current); + } + var state = stateRef.current; + React.useDebugValue(state); + return [state, getState, setState, scheduleUpdate, flushUpdates]; + } +},611,[3,19,36],"node_modules/@react-navigation/core/src/useSyncState.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NOT_INITIALIZED_ERROR = void 0; + exports.default = createNavigationContainerRef; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); + var NOT_INITIALIZED_ERROR = "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details."; + exports.NOT_INITIALIZED_ERROR = NOT_INITIALIZED_ERROR; + function createNavigationContainerRef() { + var methods = [].concat((0, _toConsumableArray2.default)(Object.keys(_$$_REQUIRE(_dependencyMap[3], "@react-navigation/routers").CommonActions)), ['addListener', 'removeListener', 'resetRoot', 'dispatch', 'isFocused', 'canGoBack', 'getRootState', 'getState', 'getParent', 'getCurrentRoute', 'getCurrentOptions']); + var listeners = {}; + var removeListener = function removeListener(event, callback) { + if (listeners[event]) { + listeners[event] = listeners[event].filter(function (cb) { + return cb !== callback; + }); + } + }; + var current = null; + var ref = Object.assign({ + get current() { + return current; + }, + set current(value) { + current = value; + if (value != null) { + Object.entries(listeners).forEach(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + event = _ref2[0], + callbacks = _ref2[1]; + callbacks.forEach(function (callback) { + value.addListener(event, callback); + }); + }); + } + }, + isReady: function isReady() { + if (current == null) { + return false; + } + return current.isReady(); + } + }, methods.reduce(function (acc, name) { + acc[name] = function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + if (current == null) { + switch (name) { + case 'addListener': + { + var event = args[0], + callback = args[1]; + listeners[event] = listeners[event] || []; + listeners[event].push(callback); + return function () { + return removeListener(event, callback); + }; + } + case 'removeListener': + { + var _event = args[0], + _callback = args[1]; + removeListener(_event, _callback); + break; + } + default: + console.error(NOT_INITIALIZED_ERROR); + } + } else { + var _current; + return (_current = current)[name].apply(_current, args); + } + }; + return acc; + }, {})); + return ref; + } +},612,[3,19,6,613],"node_modules/@react-navigation/core/src/createNavigationContainerRef.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = { + CommonActions: true, + BaseRouter: true, + DrawerActions: true, + DrawerRouter: true, + StackActions: true, + StackRouter: true, + TabActions: true, + TabRouter: true + }; + Object.defineProperty(exports, "BaseRouter", { + enumerable: true, + get: function get() { + return _BaseRouter.default; + } + }); + exports.CommonActions = void 0; + Object.defineProperty(exports, "DrawerActions", { + enumerable: true, + get: function get() { + return _DrawerRouter.DrawerActions; + } + }); + Object.defineProperty(exports, "DrawerRouter", { + enumerable: true, + get: function get() { + return _DrawerRouter.default; + } + }); + Object.defineProperty(exports, "StackActions", { + enumerable: true, + get: function get() { + return _StackRouter.StackActions; + } + }); + Object.defineProperty(exports, "StackRouter", { + enumerable: true, + get: function get() { + return _StackRouter.default; + } + }); + Object.defineProperty(exports, "TabActions", { + enumerable: true, + get: function get() { + return _TabRouter.TabActions; + } + }); + Object.defineProperty(exports, "TabRouter", { + enumerable: true, + get: function get() { + return _TabRouter.default; + } + }); + var CommonActions = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "./CommonActions")); + exports.CommonActions = CommonActions; + var _BaseRouter = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./BaseRouter")); + var _DrawerRouter = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./DrawerRouter")); + var _StackRouter = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "./StackRouter")); + var _TabRouter = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./TabRouter")); + Object.keys(_$$_REQUIRE(_dependencyMap[6], "./types")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[6], "./types")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[6], "./types")[key]; + } + }); + }); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +},613,[614,3,615,617,619,618,620],"node_modules/@react-navigation/routers/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.goBack = goBack; + exports.navigate = navigate; + exports.reset = reset; + exports.setParams = setParams; + function goBack() { + return { + type: 'GO_BACK' + }; + } + function navigate() { + if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') { + return { + type: 'NAVIGATE', + payload: { + name: arguments.length <= 0 ? undefined : arguments[0], + params: arguments.length <= 1 ? undefined : arguments[1] + } + }; + } else { + var payload = (arguments.length <= 0 ? undefined : arguments[0]) || {}; + if (!payload.hasOwnProperty('key') && !payload.hasOwnProperty('name')) { + throw new Error('You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.'); + } + return { + type: 'NAVIGATE', + payload: payload + }; + } + } + function reset(state) { + return { + type: 'RESET', + payload: state + }; + } + function setParams(params) { + return { + type: 'SET_PARAMS', + payload: { + params: params + } + }; + } +},614,[],"node_modules/@react-navigation/routers/src/CommonActions.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var BaseRouter = { + getStateForAction: function getStateForAction(state, action) { + switch (action.type) { + case 'SET_PARAMS': + { + var index = action.source ? state.routes.findIndex(function (r) { + return r.key === action.source; + }) : state.index; + if (index === -1) { + return null; + } + return Object.assign({}, state, { + routes: state.routes.map(function (r, i) { + return i === index ? Object.assign({}, r, { + params: Object.assign({}, r.params, action.payload.params) + }) : r; + }) + }); + } + case 'RESET': + { + var nextState = action.payload; + if (nextState.routes.length === 0 || nextState.routes.some(function (route) { + return !state.routeNames.includes(route.name); + })) { + return null; + } + if (nextState.stale === false) { + if (state.routeNames.length !== nextState.routeNames.length || nextState.routeNames.some(function (name) { + return !state.routeNames.includes(name); + })) { + return null; + } + return Object.assign({}, nextState, { + routes: nextState.routes.map(function (route) { + return route.key ? route : Object.assign({}, route, { + key: route.name + "-" + (0, _$$_REQUIRE(_dependencyMap[0], "nanoid/non-secure").nanoid)() + }); + }) + }); + } + return nextState; + } + default: + return null; + } + }, + shouldActionChangeFocus: function shouldActionChangeFocus(action) { + return action.type === 'NAVIGATE'; + } + }; + var _default = BaseRouter; + exports.default = _default; +},615,[616],"node_modules/@react-navigation/routers/src/BaseRouter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.nanoid = exports.customAlphabet = void 0; + var urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'; + var customAlphabet = function customAlphabet(alphabet) { + var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21; + return function () { + var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize; + var id = ''; + var i = size; + while (i--) { + id += alphabet[Math.random() * alphabet.length | 0]; + } + return id; + }; + }; + exports.customAlphabet = customAlphabet; + var nanoid = function nanoid() { + var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 21; + var id = ''; + var i = size; + while (i--) { + id += urlAlphabet[Math.random() * 64 | 0]; + } + return id; + }; + exports.nanoid = nanoid; +},616,[],"node_modules/nanoid/non-secure/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.DrawerActions = void 0; + exports.default = DrawerRouter; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var _TabRouter = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./TabRouter")); + var _excluded = ["defaultStatus"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var DrawerActions = Object.assign({}, _TabRouter.TabActions, { + openDrawer: function openDrawer() { + return { + type: 'OPEN_DRAWER' + }; + }, + closeDrawer: function closeDrawer() { + return { + type: 'CLOSE_DRAWER' + }; + }, + toggleDrawer: function toggleDrawer() { + return { + type: 'TOGGLE_DRAWER' + }; + } + }); + exports.DrawerActions = DrawerActions; + function DrawerRouter(_ref) { + var _ref$defaultStatus = _ref.defaultStatus, + defaultStatus = _ref$defaultStatus === void 0 ? 'closed' : _ref$defaultStatus, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var router = (0, _TabRouter.default)(rest); + var isDrawerInHistory = function isDrawerInHistory(state) { + var _state$history; + return Boolean((_state$history = state.history) == null ? void 0 : _state$history.some(function (it) { + return it.type === 'drawer'; + })); + }; + var addDrawerToHistory = function addDrawerToHistory(state) { + if (isDrawerInHistory(state)) { + return state; + } + return Object.assign({}, state, { + history: [].concat((0, _toConsumableArray2.default)(state.history), [{ + type: 'drawer', + status: defaultStatus === 'open' ? 'closed' : 'open' + }]) + }); + }; + var removeDrawerFromHistory = function removeDrawerFromHistory(state) { + if (!isDrawerInHistory(state)) { + return state; + } + return Object.assign({}, state, { + history: state.history.filter(function (it) { + return it.type !== 'drawer'; + }) + }); + }; + var openDrawer = function openDrawer(state) { + if (defaultStatus === 'open') { + return removeDrawerFromHistory(state); + } + return addDrawerToHistory(state); + }; + var closeDrawer = function closeDrawer(state) { + if (defaultStatus === 'open') { + return addDrawerToHistory(state); + } + return removeDrawerFromHistory(state); + }; + return Object.assign({}, router, { + type: 'drawer', + getInitialState: function getInitialState(_ref2) { + var routeNames = _ref2.routeNames, + routeParamList = _ref2.routeParamList, + routeGetIdList = _ref2.routeGetIdList; + var state = router.getInitialState({ + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList + }); + return Object.assign({}, state, { + default: defaultStatus, + stale: false, + type: 'drawer', + key: "drawer-" + (0, _$$_REQUIRE(_dependencyMap[4], "nanoid/non-secure").nanoid)() + }); + }, + getRehydratedState: function getRehydratedState(partialState, _ref3) { + var routeNames = _ref3.routeNames, + routeParamList = _ref3.routeParamList, + routeGetIdList = _ref3.routeGetIdList; + if (partialState.stale === false) { + return partialState; + } + var state = router.getRehydratedState(partialState, { + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList + }); + if (isDrawerInHistory(partialState)) { + state = removeDrawerFromHistory(state); + state = addDrawerToHistory(state); + } + return Object.assign({}, state, { + default: defaultStatus, + type: 'drawer', + key: "drawer-" + (0, _$$_REQUIRE(_dependencyMap[4], "nanoid/non-secure").nanoid)() + }); + }, + getStateForRouteFocus: function getStateForRouteFocus(state, key) { + var result = router.getStateForRouteFocus(state, key); + return closeDrawer(result); + }, + getStateForAction: function getStateForAction(state, action, options) { + switch (action.type) { + case 'OPEN_DRAWER': + return openDrawer(state); + case 'CLOSE_DRAWER': + return closeDrawer(state); + case 'TOGGLE_DRAWER': + if (isDrawerInHistory(state)) { + return removeDrawerFromHistory(state); + } + return addDrawerToHistory(state); + case 'JUMP_TO': + case 'NAVIGATE': + { + var result = router.getStateForAction(state, action, options); + if (result != null && result.index !== state.index) { + return closeDrawer(result); + } + return result; + } + case 'GO_BACK': + if (isDrawerInHistory(state)) { + return removeDrawerFromHistory(state); + } + return router.getStateForAction(state, action, options); + default: + return router.getStateForAction(state, action, options); + } + }, + actionCreators: DrawerActions + }); + } +},617,[3,6,132,618,616],"node_modules/@react-navigation/routers/src/DrawerRouter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.TabActions = void 0; + exports.default = TabRouter; + var _BaseRouter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./BaseRouter")); + var TYPE_ROUTE = 'route'; + var TabActions = { + jumpTo: function jumpTo(name, params) { + return { + type: 'JUMP_TO', + payload: { + name: name, + params: params + } + }; + } + }; + exports.TabActions = TabActions; + var getRouteHistory = function getRouteHistory(routes, index, backBehavior, initialRouteName) { + var history = [{ + type: TYPE_ROUTE, + key: routes[index].key + }]; + var initialRouteIndex; + switch (backBehavior) { + case 'order': + for (var i = index; i > 0; i--) { + history.unshift({ + type: TYPE_ROUTE, + key: routes[i - 1].key + }); + } + break; + case 'firstRoute': + if (index !== 0) { + history.unshift({ + type: TYPE_ROUTE, + key: routes[0].key + }); + } + break; + case 'initialRoute': + initialRouteIndex = routes.findIndex(function (route) { + return route.name === initialRouteName; + }); + initialRouteIndex = initialRouteIndex === -1 ? 0 : initialRouteIndex; + if (index !== initialRouteIndex) { + history.unshift({ + type: TYPE_ROUTE, + key: routes[initialRouteIndex].key + }); + } + break; + case 'history': + break; + } + return history; + }; + var changeIndex = function changeIndex(state, index, backBehavior, initialRouteName) { + var history; + if (backBehavior === 'history') { + var currentKey = state.routes[index].key; + history = state.history.filter(function (it) { + return it.type === 'route' ? it.key !== currentKey : false; + }).concat({ + type: TYPE_ROUTE, + key: currentKey + }); + } else { + history = getRouteHistory(state.routes, index, backBehavior, initialRouteName); + } + return Object.assign({}, state, { + index: index, + history: history + }); + }; + function TabRouter(_ref) { + var initialRouteName = _ref.initialRouteName, + _ref$backBehavior = _ref.backBehavior, + backBehavior = _ref$backBehavior === void 0 ? 'firstRoute' : _ref$backBehavior; + var router = Object.assign({}, _BaseRouter.default, { + type: 'tab', + getInitialState: function getInitialState(_ref2) { + var routeNames = _ref2.routeNames, + routeParamList = _ref2.routeParamList; + var index = initialRouteName !== undefined && routeNames.includes(initialRouteName) ? routeNames.indexOf(initialRouteName) : 0; + var routes = routeNames.map(function (name) { + return { + name: name, + key: name + "-" + (0, _$$_REQUIRE(_dependencyMap[2], "nanoid/non-secure").nanoid)(), + params: routeParamList[name] + }; + }); + var history = getRouteHistory(routes, index, backBehavior, initialRouteName); + return { + stale: false, + type: 'tab', + key: "tab-" + (0, _$$_REQUIRE(_dependencyMap[2], "nanoid/non-secure").nanoid)(), + index: index, + routeNames: routeNames, + history: history, + routes: routes + }; + }, + getRehydratedState: function getRehydratedState(partialState, _ref3) { + var _state$routes, _state$index, _state$history$filter, _state$history; + var routeNames = _ref3.routeNames, + routeParamList = _ref3.routeParamList; + var state = partialState; + if (state.stale === false) { + return state; + } + var routes = routeNames.map(function (name) { + var route = state.routes.find(function (r) { + return r.name === name; + }); + return Object.assign({}, route, { + name: name, + key: route && route.name === name && route.key ? route.key : name + "-" + (0, _$$_REQUIRE(_dependencyMap[2], "nanoid/non-secure").nanoid)(), + params: routeParamList[name] !== undefined ? Object.assign({}, routeParamList[name], route ? route.params : undefined) : route ? route.params : undefined + }); + }); + var index = Math.min(Math.max(routeNames.indexOf((_state$routes = state.routes[(_state$index = state == null ? void 0 : state.index) != null ? _state$index : 0]) == null ? void 0 : _state$routes.name), 0), routes.length - 1); + var history = (_state$history$filter = (_state$history = state.history) == null ? void 0 : _state$history.filter(function (it) { + return routes.find(function (r) { + return r.key === it.key; + }); + })) != null ? _state$history$filter : []; + return changeIndex({ + stale: false, + type: 'tab', + key: "tab-" + (0, _$$_REQUIRE(_dependencyMap[2], "nanoid/non-secure").nanoid)(), + index: index, + routeNames: routeNames, + history: history, + routes: routes + }, index, backBehavior, initialRouteName); + }, + getStateForRouteNamesChange: function getStateForRouteNamesChange(state, _ref4) { + var routeNames = _ref4.routeNames, + routeParamList = _ref4.routeParamList, + routeKeyChanges = _ref4.routeKeyChanges; + var routes = routeNames.map(function (name) { + return state.routes.find(function (r) { + return r.name === name && !routeKeyChanges.includes(r.name); + }) || { + name: name, + key: name + "-" + (0, _$$_REQUIRE(_dependencyMap[2], "nanoid/non-secure").nanoid)(), + params: routeParamList[name] + }; + }); + var index = Math.max(0, routeNames.indexOf(state.routes[state.index].name)); + var history = state.history.filter( + function (it) { + return it.type !== 'route' || routes.find(function (r) { + return r.key === it.key; + }); + }); + if (!history.length) { + history = getRouteHistory(routes, index, backBehavior, initialRouteName); + } + return Object.assign({}, state, { + history: history, + routeNames: routeNames, + routes: routes, + index: index + }); + }, + getStateForRouteFocus: function getStateForRouteFocus(state, key) { + var index = state.routes.findIndex(function (r) { + return r.key === key; + }); + if (index === -1 || index === state.index) { + return state; + } + return changeIndex(state, index, backBehavior, initialRouteName); + }, + getStateForAction: function getStateForAction(state, action, _ref5) { + var routeParamList = _ref5.routeParamList; + switch (action.type) { + case 'JUMP_TO': + case 'NAVIGATE': + { + var index = -1; + if (action.type === 'NAVIGATE' && action.payload.key) { + index = state.routes.findIndex(function (route) { + return route.key === action.payload.key; + }); + } else { + index = state.routes.findIndex(function (route) { + return route.name === action.payload.name; + }); + } + if (index === -1) { + return null; + } + return changeIndex(Object.assign({}, state, { + routes: state.routes.map(function (route, i) { + if (i !== index) { + return route; + } + var params; + if (action.type === 'NAVIGATE' && action.payload.merge) { + params = action.payload.params !== undefined || routeParamList[route.name] !== undefined ? Object.assign({}, routeParamList[route.name], route.params, action.payload.params) : route.params; + } else { + params = routeParamList[route.name] !== undefined ? Object.assign({}, routeParamList[route.name], action.payload.params) : action.payload.params; + } + var path = action.type === 'NAVIGATE' && action.payload.path != null ? action.payload.path : route.path; + return params !== route.params || path !== route.path ? Object.assign({}, route, { + path: path, + params: params + }) : route; + }) + }), index, backBehavior, initialRouteName); + } + case 'GO_BACK': + { + if (state.history.length === 1) { + return null; + } + var previousKey = state.history[state.history.length - 2].key; + var _index = state.routes.findIndex(function (route) { + return route.key === previousKey; + }); + if (_index === -1) { + return null; + } + return Object.assign({}, state, { + history: state.history.slice(0, -1), + index: _index + }); + } + default: + return _BaseRouter.default.getStateForAction(state, action); + } + }, + shouldActionChangeFocus: function shouldActionChangeFocus(action) { + return action.type === 'NAVIGATE'; + }, + actionCreators: TabActions + }); + return router; + } +},618,[3,615,616],"node_modules/@react-navigation/routers/src/TabRouter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.StackActions = void 0; + exports.default = StackRouter; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _BaseRouter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./BaseRouter")); + var StackActions = { + replace: function replace(name, params) { + return { + type: 'REPLACE', + payload: { + name: name, + params: params + } + }; + }, + push: function push(name, params) { + return { + type: 'PUSH', + payload: { + name: name, + params: params + } + }; + }, + pop: function pop() { + var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + return { + type: 'POP', + payload: { + count: count + } + }; + }, + popToTop: function popToTop() { + return { + type: 'POP_TO_TOP' + }; + } + }; + exports.StackActions = StackActions; + function StackRouter(options) { + var router = Object.assign({}, _BaseRouter.default, { + type: 'stack', + getInitialState: function getInitialState(_ref) { + var routeNames = _ref.routeNames, + routeParamList = _ref.routeParamList; + var initialRouteName = options.initialRouteName !== undefined && routeNames.includes(options.initialRouteName) ? options.initialRouteName : routeNames[0]; + return { + stale: false, + type: 'stack', + key: "stack-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + index: 0, + routeNames: routeNames, + routes: [{ + key: initialRouteName + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: initialRouteName, + params: routeParamList[initialRouteName] + }] + }; + }, + getRehydratedState: function getRehydratedState(partialState, _ref2) { + var routeNames = _ref2.routeNames, + routeParamList = _ref2.routeParamList; + var state = partialState; + if (state.stale === false) { + return state; + } + var routes = state.routes.filter(function (route) { + return routeNames.includes(route.name); + }).map(function (route) { + return Object.assign({}, route, { + key: route.key || route.name + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + params: routeParamList[route.name] !== undefined ? Object.assign({}, routeParamList[route.name], route.params) : route.params + }); + }); + if (routes.length === 0) { + var initialRouteName = options.initialRouteName !== undefined ? options.initialRouteName : routeNames[0]; + routes.push({ + key: initialRouteName + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: initialRouteName, + params: routeParamList[initialRouteName] + }); + } + return { + stale: false, + type: 'stack', + key: "stack-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + index: routes.length - 1, + routeNames: routeNames, + routes: routes + }; + }, + getStateForRouteNamesChange: function getStateForRouteNamesChange(state, _ref3) { + var routeNames = _ref3.routeNames, + routeParamList = _ref3.routeParamList, + routeKeyChanges = _ref3.routeKeyChanges; + var routes = state.routes.filter(function (route) { + return routeNames.includes(route.name) && !routeKeyChanges.includes(route.name); + }); + if (routes.length === 0) { + var initialRouteName = options.initialRouteName !== undefined && routeNames.includes(options.initialRouteName) ? options.initialRouteName : routeNames[0]; + routes.push({ + key: initialRouteName + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: initialRouteName, + params: routeParamList[initialRouteName] + }); + } + return Object.assign({}, state, { + routeNames: routeNames, + routes: routes, + index: Math.min(state.index, routes.length - 1) + }); + }, + getStateForRouteFocus: function getStateForRouteFocus(state, key) { + var index = state.routes.findIndex(function (r) { + return r.key === key; + }); + if (index === -1 || index === state.index) { + return state; + } + return Object.assign({}, state, { + index: index, + routes: state.routes.slice(0, index + 1) + }); + }, + getStateForAction: function getStateForAction(state, action, options) { + var routeParamList = options.routeParamList; + switch (action.type) { + case 'REPLACE': + { + var index = action.target === state.key && action.source ? state.routes.findIndex(function (r) { + return r.key === action.source; + }) : state.index; + if (index === -1) { + return null; + } + var _action$payload = action.payload, + name = _action$payload.name, + key = _action$payload.key, + _params = _action$payload.params; + if (!state.routeNames.includes(name)) { + return null; + } + return Object.assign({}, state, { + routes: state.routes.map(function (route, i) { + return i === index ? { + key: key !== undefined ? key : name + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: name, + params: routeParamList[name] !== undefined ? Object.assign({}, routeParamList[name], _params) : _params + } : route; + }) + }); + } + case 'PUSH': + if (state.routeNames.includes(action.payload.name)) { + var getId = options.routeGetIdList[action.payload.name]; + var id = getId == null ? void 0 : getId({ + params: action.payload.params + }); + var route = id ? state.routes.find(function (route) { + return route.name === action.payload.name && id === (getId == null ? void 0 : getId({ + params: route.params + })); + }) : undefined; + var routes; + if (route) { + routes = state.routes.filter(function (r) { + return r.key !== route.key; + }); + routes.push(Object.assign({}, route, { + params: routeParamList[action.payload.name] !== undefined ? Object.assign({}, routeParamList[action.payload.name], action.payload.params) : action.payload.params + })); + } else { + routes = [].concat((0, _toConsumableArray2.default)(state.routes), [{ + key: action.payload.name + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: action.payload.name, + params: routeParamList[action.payload.name] !== undefined ? Object.assign({}, routeParamList[action.payload.name], action.payload.params) : action.payload.params + }]); + } + return Object.assign({}, state, { + index: routes.length - 1, + routes: routes + }); + } + return null; + case 'POP': + { + var _index = action.target === state.key && action.source ? state.routes.findIndex(function (r) { + return r.key === action.source; + }) : state.index; + if (_index > 0) { + var _count = Math.max(_index - action.payload.count + 1, 1); + var _routes = state.routes.slice(0, _count).concat(state.routes.slice(_index + 1)); + return Object.assign({}, state, { + index: _routes.length - 1, + routes: _routes + }); + } + return null; + } + case 'POP_TO_TOP': + return router.getStateForAction(state, { + type: 'POP', + payload: { + count: state.routes.length - 1 + } + }, options); + case 'NAVIGATE': + if (action.payload.name !== undefined && !state.routeNames.includes(action.payload.name)) { + return null; + } + if (action.payload.key || action.payload.name) { + var _action$payload$path; + var _index2 = -1; + var _getId = + action.payload.key === undefined && action.payload.name !== undefined ? options.routeGetIdList[action.payload.name] : undefined; + var _id = _getId == null ? void 0 : _getId({ + params: action.payload.params + }); + if (_id) { + _index2 = state.routes.findIndex(function (route) { + return route.name === action.payload.name && _id === (_getId == null ? void 0 : _getId({ + params: route.params + })); + }); + } else if (state.routes[state.index].name === action.payload.name && action.payload.key === undefined || state.routes[state.index].key === action.payload.key) { + _index2 = state.index; + } else { + for (var i = state.routes.length - 1; i >= 0; i--) { + if (state.routes[i].name === action.payload.name && action.payload.key === undefined || state.routes[i].key === action.payload.key) { + _index2 = i; + break; + } + } + } + if (_index2 === -1 && action.payload.key && action.payload.name === undefined) { + return null; + } + if (_index2 === -1 && action.payload.name !== undefined) { + var _action$payload$key; + var _routes2 = [].concat((0, _toConsumableArray2.default)(state.routes), [{ + key: (_action$payload$key = action.payload.key) != null ? _action$payload$key : action.payload.name + "-" + (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(), + name: action.payload.name, + path: action.payload.path, + params: routeParamList[action.payload.name] !== undefined ? Object.assign({}, routeParamList[action.payload.name], action.payload.params) : action.payload.params + }]); + return Object.assign({}, state, { + routes: _routes2, + index: _routes2.length - 1 + }); + } + var _route = state.routes[_index2]; + var _params2; + if (action.payload.merge) { + _params2 = action.payload.params !== undefined || routeParamList[_route.name] !== undefined ? Object.assign({}, routeParamList[_route.name], _route.params, action.payload.params) : _route.params; + } else { + _params2 = routeParamList[_route.name] !== undefined ? Object.assign({}, routeParamList[_route.name], action.payload.params) : action.payload.params; + } + return Object.assign({}, state, { + index: _index2, + routes: [].concat((0, _toConsumableArray2.default)(state.routes.slice(0, _index2)), [_params2 !== _route.params || action.payload.path && action.payload.path !== _route.path ? Object.assign({}, _route, { + path: (_action$payload$path = action.payload.path) != null ? _action$payload$path : _route.path, + params: _params2 + }) : state.routes[_index2]]) + }); + } + return null; + case 'GO_BACK': + if (state.index > 0) { + return router.getStateForAction(state, { + type: 'POP', + payload: { + count: 1 + }, + target: action.target, + source: action.source + }, options); + } + return null; + default: + return _BaseRouter.default.getStateForAction(state, action); + } + }, + actionCreators: StackActions + }); + return router; + } +},619,[3,6,615,616],"node_modules/@react-navigation/routers/src/StackRouter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},620,[],"node_modules/@react-navigation/routers/src/types.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ScheduleUpdateContext = void 0; + exports.default = useScheduleUpdate; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var MISSING_CONTEXT_ERROR = "Couldn't find a schedule context."; + var ScheduleUpdateContext = React.createContext({ + scheduleUpdate: function scheduleUpdate() { + throw new Error(MISSING_CONTEXT_ERROR); + }, + flushUpdates: function flushUpdates() { + throw new Error(MISSING_CONTEXT_ERROR); + } + }); + + exports.ScheduleUpdateContext = ScheduleUpdateContext; + function useScheduleUpdate(callback) { + var _React$useContext = React.useContext(ScheduleUpdateContext), + scheduleUpdate = _React$useContext.scheduleUpdate, + flushUpdates = _React$useContext.flushUpdates; + scheduleUpdate(callback); + React.useEffect(flushUpdates); + } +},621,[36],"node_modules/@react-navigation/core/src/useScheduleUpdate.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createNavigatorFactory; + var _Group = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Group")); + var _Screen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./Screen")); + function createNavigatorFactory(Navigator) { + return function () { + if (arguments[0] !== undefined) { + throw new Error("Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API? See https://reactnavigation.org/docs/hello-react-navigation for the latest API and guides."); + } + return { + Navigator: Navigator, + Group: _Group.default, + Screen: _Screen.default + }; + }; + } +},622,[3,623,624],"node_modules/@react-navigation/core/src/createNavigatorFactory.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Group; + function Group(_) { + return null; + } +},623,[],"node_modules/@react-navigation/core/src/Group.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Screen; + function Screen(_) { + return null; + } +},624,[],"node_modules/@react-navigation/core/src/Screen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var CurrentRenderContext = React.createContext(undefined); + var _default = CurrentRenderContext; + exports.default = _default; +},625,[36],"node_modules/@react-navigation/core/src/CurrentRenderContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getActionFromState; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + function getActionFromState(state, options) { + var _state$index, _normalizedConfig$scr; + var normalizedConfig = options ? createNormalizedConfigItem(options) : {}; + var routes = state.index != null ? state.routes.slice(0, state.index + 1) : state.routes; + if (routes.length === 0) { + return undefined; + } + if (!(routes.length === 1 && routes[0].key === undefined || routes.length === 2 && routes[0].key === undefined && routes[0].name === (normalizedConfig == null ? void 0 : normalizedConfig.initialRouteName) && routes[1].key === undefined)) { + return { + type: 'RESET', + payload: state + }; + } + var route = state.routes[(_state$index = state.index) != null ? _state$index : state.routes.length - 1]; + var current = route == null ? void 0 : route.state; + var config = normalizedConfig == null ? void 0 : (_normalizedConfig$scr = normalizedConfig.screens) == null ? void 0 : _normalizedConfig$scr[route == null ? void 0 : route.name]; + var params = Object.assign({}, route.params); + var payload = route ? { + name: route.name, + path: route.path, + params: params + } : undefined; + while (current) { + var _config, _config2, _config2$screens; + if (current.routes.length === 0) { + return undefined; + } + var _routes = current.index != null ? current.routes.slice(0, current.index + 1) : current.routes; + var _route = _routes[_routes.length - 1]; + + Object.assign(params, { + initial: undefined, + screen: undefined, + params: undefined, + state: undefined + }); + if (_routes.length === 1 && _routes[0].key === undefined) { + params.initial = true; + params.screen = _route.name; + } else if (_routes.length === 2 && _routes[0].key === undefined && _routes[0].name === ((_config = config) == null ? void 0 : _config.initialRouteName) && _routes[1].key === undefined) { + params.initial = false; + params.screen = _route.name; + } else { + params.state = current; + break; + } + if (_route.state) { + params.params = Object.assign({}, _route.params); + params = params.params; + } else { + params.path = _route.path; + params.params = _route.params; + } + current = _route.state; + config = (_config2 = config) == null ? void 0 : (_config2$screens = _config2.screens) == null ? void 0 : _config2$screens[_route.name]; + } + if (!payload) { + return; + } + + return { + type: 'NAVIGATE', + payload: payload + }; + } + var createNormalizedConfigItem = function createNormalizedConfigItem(config) { + return typeof config === 'object' && config != null ? { + initialRouteName: config.initialRouteName, + screens: config.screens != null ? createNormalizedConfigs(config.screens) : undefined + } : {}; + }; + var createNormalizedConfigs = function createNormalizedConfigs(options) { + return Object.entries(options).reduce(function (acc, _ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + k = _ref2[0], + v = _ref2[1]; + acc[k] = createNormalizedConfigItem(v); + return acc; + }, {}); + }; +},626,[3,19],"node_modules/@react-navigation/core/src/getActionFromState.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getFocusedRouteNameFromRoute; + function getFocusedRouteNameFromRoute(route) { + var _route$CHILD_STATE, _state$index; + var state = (_route$CHILD_STATE = route[_$$_REQUIRE(_dependencyMap[0], "./useRouteCache").CHILD_STATE]) != null ? _route$CHILD_STATE : route.state; + var params = route.params; + var routeName = state ? + state.routes[(_state$index = state.index) != null ? _state$index : typeof state.type === 'string' && state.type !== 'stack' ? 0 : state.routes.length - 1].name : + typeof (params == null ? void 0 : params.screen) === 'string' ? params.screen : undefined; + return routeName; + } +},627,[628],"node_modules/@react-navigation/core/src/getFocusedRouteNameFromRoute.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.CHILD_STATE = void 0; + exports.default = useRouteCache; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _excluded = ["state"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var CHILD_STATE = Symbol('CHILD_STATE'); + + exports.CHILD_STATE = CHILD_STATE; + function useRouteCache(routes) { + var cache = React.useMemo(function () { + return { + current: new Map() + }; + }, []); + if (process.env.NODE_ENV === 'production') { + return routes; + } + cache.current = routes.reduce(function (acc, route) { + var previous = cache.current.get(route); + if (previous) { + acc.set(route, previous); + } else { + var state = route.state, + proxy = (0, _objectWithoutProperties2.default)(route, _excluded); + Object.defineProperty(proxy, CHILD_STATE, { + enumerable: false, + value: state + }); + acc.set(route, proxy); + } + return acc; + }, new Map()); + return Array.from(cache.current.values()); + } +},628,[3,132,36],"node_modules/@react-navigation/core/src/useRouteCache.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getPathFromState; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var queryString = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "query-string")); + var _fromEntries = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./fromEntries")); + var _validatePathConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./validatePathConfig")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var getActiveRoute = function getActiveRoute(state) { + var route = typeof state.index === 'number' ? state.routes[state.index] : state.routes[state.routes.length - 1]; + if (route.state) { + return getActiveRoute(route.state); + } + return route; + }; + + function getPathFromState(state, options) { + if (state == null) { + throw Error("Got 'undefined' for the navigation state. You must pass a valid state object."); + } + if (options) { + (0, _validatePathConfig.default)(options); + } + + var configs = options != null && options.screens ? createNormalizedConfigs(options == null ? void 0 : options.screens) : {}; + var path = '/'; + var current = state; + var allParams = {}; + var _loop = function _loop() { + var index = typeof current.index === 'number' ? current.index : 0; + var route = current.routes[index]; + var pattern = void 0; + var focusedParams = void 0; + var focusedRoute = getActiveRoute(state); + var currentOptions = configs; + + var nestedRouteNames = []; + var hasNext = true; + while (route.name in currentOptions && hasNext) { + pattern = currentOptions[route.name].pattern; + nestedRouteNames.push(route.name); + if (route.params) { + (function () { + var _currentOptions$route; + var stringify = (_currentOptions$route = currentOptions[route.name]) == null ? void 0 : _currentOptions$route.stringify; + var currentParams = (0, _fromEntries.default)(Object.entries(route.params).map(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + return [key, stringify != null && stringify[key] ? stringify[key](value) : String(value)]; + })); + if (pattern) { + Object.assign(allParams, currentParams); + } + if (focusedRoute === route) { + var _pattern; + focusedParams = Object.assign({}, currentParams); + (_pattern = pattern) == null ? void 0 : _pattern.split('/').filter(function (p) { + return p.startsWith(':'); + }) + .forEach(function (p) { + var name = getParamName(p); + + if (focusedParams) { + delete focusedParams[name]; + } + }); + } + })(); + } + + if (!currentOptions[route.name].screens || route.state === undefined) { + hasNext = false; + } else { + index = typeof route.state.index === 'number' ? route.state.index : route.state.routes.length - 1; + var nextRoute = route.state.routes[index]; + var nestedConfig = currentOptions[route.name].screens; + + if (nestedConfig && nextRoute.name in nestedConfig) { + route = nextRoute; + currentOptions = nestedConfig; + } else { + hasNext = false; + } + } + } + if (pattern === undefined) { + pattern = nestedRouteNames.join('/'); + } + if (currentOptions[route.name] !== undefined) { + path += pattern.split('/').map(function (p) { + var name = getParamName(p); + + if (p === '*') { + return route.name; + } + + if (p.startsWith(':')) { + var _value = allParams[name]; + if (_value === undefined && p.endsWith('?')) { + return ''; + } + return encodeURIComponent(_value); + } + return encodeURIComponent(p); + }).join('/'); + } else { + path += encodeURIComponent(route.name); + } + if (!focusedParams) { + focusedParams = focusedRoute.params; + } + if (route.state) { + path += '/'; + } else if (focusedParams) { + for (var param in focusedParams) { + if (focusedParams[param] === 'undefined') { + delete focusedParams[param]; + } + } + var query = queryString.stringify(focusedParams, { + sort: false + }); + if (query) { + path += "?" + query; + } + } + current = route.state; + }; + while (current) { + _loop(); + } + + path = path.replace(/\/+/g, '/'); + path = path.length > 1 ? path.replace(/\/$/, '') : path; + return path; + } + var getParamName = function getParamName(pattern) { + return pattern.replace(/^:/, '').replace(/\?$/, ''); + }; + var joinPaths = function joinPaths() { + var _ref3; + for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) { + paths[_key] = arguments[_key]; + } + return (_ref3 = []).concat.apply(_ref3, (0, _toConsumableArray2.default)(paths.map(function (p) { + return p.split('/'); + }))).filter(Boolean).join('/'); + }; + var createConfigItem = function createConfigItem(config, parentPattern) { + var _pattern3; + if (typeof config === 'string') { + var _pattern2 = parentPattern ? joinPaths(parentPattern, config) : config; + return { + pattern: _pattern2 + }; + } + + var pattern; + if (config.exact && config.path === undefined) { + throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`."); + } + pattern = config.exact !== true ? joinPaths(parentPattern || '', config.path || '') : config.path || ''; + var screens = config.screens ? createNormalizedConfigs(config.screens, pattern) : undefined; + return { + pattern: (_pattern3 = pattern) == null ? void 0 : _pattern3.split('/').filter(Boolean).join('/'), + stringify: config.stringify, + screens: screens + }; + }; + var createNormalizedConfigs = function createNormalizedConfigs(options, pattern) { + return (0, _fromEntries.default)(Object.entries(options).map(function (_ref4) { + var _ref5 = (0, _slicedToArray2.default)(_ref4, 2), + name = _ref5[0], + c = _ref5[1]; + var result = createConfigItem(c, pattern); + return [name, result]; + })); + }; +},629,[3,6,19,630,635,636],"node_modules/@react-navigation/core/src/getPathFromState.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var isNullOrUndefined = function isNullOrUndefined(value) { + return value === null || value === undefined; + }; + var encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier'); + function encoderForArrayFormat(options) { + switch (options.arrayFormat) { + case 'index': + return function (key) { + return function (result, value) { + var index = result.length; + if (value === undefined || options.skipNull && value === null || options.skipEmptyString && value === '') { + return result; + } + if (value === null) { + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), '[', index, ']'].join('')]); + } + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')]); + }; + }; + case 'bracket': + return function (key) { + return function (result, value) { + if (value === undefined || options.skipNull && value === null || options.skipEmptyString && value === '') { + return result; + } + if (value === null) { + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), '[]'].join('')]); + } + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), '[]=', encode(value, options)].join('')]); + }; + }; + case 'colon-list-separator': + return function (key) { + return function (result, value) { + if (value === undefined || options.skipNull && value === null || options.skipEmptyString && value === '') { + return result; + } + if (value === null) { + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), ':list='].join('')]); + } + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), ':list=', encode(value, options)].join('')]); + }; + }; + case 'comma': + case 'separator': + case 'bracket-separator': + { + var keyValueSep = options.arrayFormat === 'bracket-separator' ? '[]=' : '='; + return function (key) { + return function (result, value) { + if (value === undefined || options.skipNull && value === null || options.skipEmptyString && value === '') { + return result; + } + + value = value === null ? '' : value; + if (result.length === 0) { + return [[encode(key, options), keyValueSep, encode(value, options)].join('')]; + } + return [[result, encode(value, options)].join(options.arrayFormatSeparator)]; + }; + }; + } + default: + return function (key) { + return function (result, value) { + if (value === undefined || options.skipNull && value === null || options.skipEmptyString && value === '') { + return result; + } + if (value === null) { + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [encode(key, options)]); + } + return [].concat(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray")(result), [[encode(key, options), '=', encode(value, options)].join('')]); + }; + }; + } + } + function parserForArrayFormat(options) { + var result; + switch (options.arrayFormat) { + case 'index': + return function (key, value, accumulator) { + result = /\[(\d*)\]$/.exec(key); + key = key.replace(/\[\d*\]$/, ''); + if (!result) { + accumulator[key] = value; + return; + } + if (accumulator[key] === undefined) { + accumulator[key] = {}; + } + accumulator[key][result[1]] = value; + }; + case 'bracket': + return function (key, value, accumulator) { + result = /(\[\])$/.exec(key); + key = key.replace(/\[\]$/, ''); + if (!result) { + accumulator[key] = value; + return; + } + if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; + } + accumulator[key] = [].concat(accumulator[key], value); + }; + case 'colon-list-separator': + return function (key, value, accumulator) { + result = /(:list)$/.exec(key); + key = key.replace(/:list$/, ''); + if (!result) { + accumulator[key] = value; + return; + } + if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; + } + accumulator[key] = [].concat(accumulator[key], value); + }; + case 'comma': + case 'separator': + return function (key, value, accumulator) { + var isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator); + var isEncodedArray = typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator); + value = isEncodedArray ? decode(value, options) : value; + var newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(function (item) { + return decode(item, options); + }) : value === null ? value : decode(value, options); + accumulator[key] = newValue; + }; + case 'bracket-separator': + return function (key, value, accumulator) { + var isArray = /(\[\])$/.test(key); + key = key.replace(/\[\]$/, ''); + if (!isArray) { + accumulator[key] = value ? decode(value, options) : value; + return; + } + var arrayValue = value === null ? [] : value.split(options.arrayFormatSeparator).map(function (item) { + return decode(item, options); + }); + if (accumulator[key] === undefined) { + accumulator[key] = arrayValue; + return; + } + accumulator[key] = [].concat(accumulator[key], arrayValue); + }; + default: + return function (key, value, accumulator) { + if (accumulator[key] === undefined) { + accumulator[key] = value; + return; + } + accumulator[key] = [].concat(accumulator[key], value); + }; + } + } + function validateArrayFormatSeparator(value) { + if (typeof value !== 'string' || value.length !== 1) { + throw new TypeError('arrayFormatSeparator must be single character string'); + } + } + function encode(value, options) { + if (options.encode) { + return options.strict ? _$$_REQUIRE(_dependencyMap[1], "strict-uri-encode")(value) : encodeURIComponent(value); + } + return value; + } + function decode(value, options) { + if (options.decode) { + return _$$_REQUIRE(_dependencyMap[2], "decode-uri-component")(value); + } + return value; + } + function keysSorter(input) { + if (Array.isArray(input)) { + return input.sort(); + } + if (typeof input === 'object') { + return keysSorter(Object.keys(input)).sort(function (a, b) { + return Number(a) - Number(b); + }).map(function (key) { + return input[key]; + }); + } + return input; + } + function removeHash(input) { + var hashStart = input.indexOf('#'); + if (hashStart !== -1) { + input = input.slice(0, hashStart); + } + return input; + } + function getHash(url) { + var hash = ''; + var hashStart = url.indexOf('#'); + if (hashStart !== -1) { + hash = url.slice(hashStart); + } + return hash; + } + function extract(input) { + input = removeHash(input); + var queryStart = input.indexOf('?'); + if (queryStart === -1) { + return ''; + } + return input.slice(queryStart + 1); + } + function parseValue(value, options) { + if (options.parseNumbers && !Number.isNaN(Number(value)) && typeof value === 'string' && value.trim() !== '') { + value = Number(value); + } else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) { + value = value.toLowerCase() === 'true'; + } + return value; + } + function parse(query, options) { + options = Object.assign({ + decode: true, + sort: true, + arrayFormat: 'none', + arrayFormatSeparator: ',', + parseNumbers: false, + parseBooleans: false + }, options); + validateArrayFormatSeparator(options.arrayFormatSeparator); + var formatter = parserForArrayFormat(options); + + var ret = Object.create(null); + if (typeof query !== 'string') { + return ret; + } + query = query.trim().replace(/^[?#&]/, ''); + if (!query) { + return ret; + } + for (var param of query.split('&')) { + if (param === '') { + continue; + } + var _splitOnFirst = _$$_REQUIRE(_dependencyMap[3], "split-on-first")(options.decode ? param.replace(/\+/g, ' ') : param, '='), + _splitOnFirst2 = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/slicedToArray")(_splitOnFirst, 2), + key = _splitOnFirst2[0], + value = _splitOnFirst2[1]; + + value = value === undefined ? null : ['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options); + formatter(decode(key, options), value, ret); + } + for (var _key of Object.keys(ret)) { + var _value = ret[_key]; + if (typeof _value === 'object' && _value !== null) { + for (var k of Object.keys(_value)) { + _value[k] = parseValue(_value[k], options); + } + } else { + ret[_key] = parseValue(_value, options); + } + } + if (options.sort === false) { + return ret; + } + return (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce(function (result, key) { + var value = ret[key]; + if (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) { + result[key] = keysSorter(value); + } else { + result[key] = value; + } + return result; + }, Object.create(null)); + } + exports.extract = extract; + exports.parse = parse; + exports.stringify = function (object, options) { + if (!object) { + return ''; + } + options = Object.assign({ + encode: true, + strict: true, + arrayFormat: 'none', + arrayFormatSeparator: ',' + }, options); + validateArrayFormatSeparator(options.arrayFormatSeparator); + var shouldFilter = function shouldFilter(key) { + return options.skipNull && isNullOrUndefined(object[key]) || options.skipEmptyString && object[key] === ''; + }; + var formatter = encoderForArrayFormat(options); + var objectCopy = {}; + for (var key of Object.keys(object)) { + if (!shouldFilter(key)) { + objectCopy[key] = object[key]; + } + } + var keys = Object.keys(objectCopy); + if (options.sort !== false) { + keys.sort(options.sort); + } + return keys.map(function (key) { + var value = object[key]; + if (value === undefined) { + return ''; + } + if (value === null) { + return encode(key, options); + } + if (Array.isArray(value)) { + if (value.length === 0 && options.arrayFormat === 'bracket-separator') { + return encode(key, options) + '[]'; + } + return value.reduce(formatter(key), []).join('&'); + } + return encode(key, options) + '=' + encode(value, options); + }).filter(function (x) { + return x.length > 0; + }).join('&'); + }; + exports.parseUrl = function (url, options) { + options = Object.assign({ + decode: true + }, options); + var _splitOnFirst3 = _$$_REQUIRE(_dependencyMap[3], "split-on-first")(url, '#'), + _splitOnFirst4 = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/slicedToArray")(_splitOnFirst3, 2), + url_ = _splitOnFirst4[0], + hash = _splitOnFirst4[1]; + return Object.assign({ + url: url_.split('?')[0] || '', + query: parse(extract(url), options) + }, options && options.parseFragmentIdentifier && hash ? { + fragmentIdentifier: decode(hash, options) + } : {}); + }; + exports.stringifyUrl = function (object, options) { + options = Object.assign(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/defineProperty")({ + encode: true, + strict: true + }, encodeFragmentIdentifier, true), options); + var url = removeHash(object.url).split('?')[0] || ''; + var queryFromUrl = exports.extract(object.url); + var parsedQueryFromUrl = exports.parse(queryFromUrl, { + sort: false + }); + var query = Object.assign(parsedQueryFromUrl, object.query); + var queryString = exports.stringify(query, options); + if (queryString) { + queryString = "?" + queryString; + } + var hash = getHash(object.url); + if (object.fragmentIdentifier) { + hash = "#" + (options[encodeFragmentIdentifier] ? encode(object.fragmentIdentifier, options) : object.fragmentIdentifier); + } + return "" + url + queryString + hash; + }; + exports.pick = function (input, filter, options) { + options = Object.assign(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/defineProperty")({ + parseFragmentIdentifier: true + }, encodeFragmentIdentifier, false), options); + var _exports$parseUrl = exports.parseUrl(input, options), + url = _exports$parseUrl.url, + query = _exports$parseUrl.query, + fragmentIdentifier = _exports$parseUrl.fragmentIdentifier; + return exports.stringifyUrl({ + url: url, + query: _$$_REQUIRE(_dependencyMap[6], "filter-obj")(query, filter), + fragmentIdentifier: fragmentIdentifier + }, options); + }; + exports.exclude = function (input, filter, options) { + var exclusionFilter = Array.isArray(filter) ? function (key) { + return !filter.includes(key); + } : function (key, value) { + return !filter(key, value); + }; + return exports.pick(input, exclusionFilter, options); + }; +},630,[6,631,632,633,19,306,634],"node_modules/query-string/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function (str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (x) { + return "%" + x.charCodeAt(0).toString(16).toUpperCase(); + }); + }; +},631,[],"node_modules/strict-uri-encode/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var token = '%[a-f0-9]{2}'; + var singleMatcher = new RegExp(token, 'gi'); + var multiMatcher = new RegExp('(' + token + ')+', 'gi'); + function decodeComponents(components, split) { + try { + return decodeURIComponent(components.join('')); + } catch (err) { + } + if (components.length === 1) { + return components; + } + split = split || 1; + + var left = components.slice(0, split); + var right = components.slice(split); + return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right)); + } + function decode(input) { + try { + return decodeURIComponent(input); + } catch (err) { + var tokens = input.match(singleMatcher); + for (var i = 1; i < tokens.length; i++) { + input = decodeComponents(tokens, i).join(''); + tokens = input.match(singleMatcher); + } + return input; + } + } + function customDecodeURIComponent(input) { + var replaceMap = { + '%FE%FF': "\uFFFD\uFFFD", + '%FF%FE': "\uFFFD\uFFFD" + }; + var match = multiMatcher.exec(input); + while (match) { + try { + replaceMap[match[0]] = decodeURIComponent(match[0]); + } catch (err) { + var result = decode(match[0]); + if (result !== match[0]) { + replaceMap[match[0]] = result; + } + } + match = multiMatcher.exec(input); + } + + replaceMap['%C2'] = "\uFFFD"; + var entries = Object.keys(replaceMap); + for (var i = 0; i < entries.length; i++) { + var key = entries[i]; + input = input.replace(new RegExp(key, 'g'), replaceMap[key]); + } + return input; + } + module.exports = function (encodedURI) { + if (typeof encodedURI !== 'string') { + throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`'); + } + try { + encodedURI = encodedURI.replace(/\+/g, ' '); + + return decodeURIComponent(encodedURI); + } catch (err) { + return customDecodeURIComponent(encodedURI); + } + }; +},632,[],"node_modules/decode-uri-component/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function (string, separator) { + if (!(typeof string === 'string' && typeof separator === 'string')) { + throw new TypeError('Expected the arguments to be of type `string`'); + } + if (separator === '') { + return [string]; + } + var separatorIndex = string.indexOf(separator); + if (separatorIndex === -1) { + return [string]; + } + return [string.slice(0, separatorIndex), string.slice(separatorIndex + separator.length)]; + }; +},633,[],"node_modules/split-on-first/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function (obj, predicate) { + var ret = {}; + var keys = Object.keys(obj); + var isArr = Array.isArray(predicate); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var val = obj[key]; + if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) { + ret[key] = val; + } + } + return ret; + }; +},634,[],"node_modules/filter-obj/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = fromEntries; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + function fromEntries(entries) { + return entries.reduce(function (acc, _ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + k = _ref2[0], + v = _ref2[1]; + if (acc.hasOwnProperty(k)) { + throw new Error("A value for key '" + k + "' already exists in the object."); + } + acc[k] = v; + return acc; + }, {}); + } +},635,[3,19],"node_modules/@react-navigation/core/src/fromEntries.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = validatePathConfig; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var formatToList = function formatToList(items) { + return items.map(function (key) { + return "- " + key; + }).join('\n'); + }; + function validatePathConfig(config) { + var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var validKeys = ['initialRouteName', 'screens']; + if (!root) { + validKeys.push('path', 'exact', 'stringify', 'parse'); + } + var invalidKeys = Object.keys(config).filter(function (key) { + return !validKeys.includes(key); + }); + if (invalidKeys.length) { + throw new Error("Found invalid properties in the configuration:\n" + formatToList(invalidKeys) + "\n\nDid you forget to specify them under a 'screens' property?\n\nYou can only specify the following properties:\n" + formatToList(validKeys) + "\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration."); + } + if (config.screens) { + Object.entries(config.screens).forEach(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + _ = _ref2[0], + value = _ref2[1]; + if (typeof value !== 'string') { + validatePathConfig(value, false); + } + }); + } + } +},636,[3,19],"node_modules/@react-navigation/core/src/validatePathConfig.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getStateFromPath; + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); + var _escapeStringRegexp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "escape-string-regexp")); + var queryString = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "query-string")); + var _findFocusedRoute = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./findFocusedRoute")); + var _validatePathConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./validatePathConfig")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getStateFromPath(path, options) { + var _ref; + if (options) { + (0, _validatePathConfig.default)(options); + } + var initialRoutes = []; + if (options != null && options.initialRouteName) { + initialRoutes.push({ + initialRouteName: options.initialRouteName, + parentScreens: [] + }); + } + var screens = options == null ? void 0 : options.screens; + var remaining = path.replace(/\/+/g, '/').replace(/^\//, '').replace(/\?.*$/, ''); + + remaining = remaining.endsWith('/') ? remaining : remaining + "/"; + if (screens === undefined) { + var _routes = remaining.split('/').filter(Boolean).map(function (segment) { + var name = decodeURIComponent(segment); + return { + name: name + }; + }); + if (_routes.length) { + return createNestedStateObject(path, _routes, initialRoutes); + } + return undefined; + } + + var configs = (_ref = []).concat.apply(_ref, (0, _toConsumableArray2.default)(Object.keys(screens).map(function (key) { + return createNormalizedConfigs(key, screens, [], initialRoutes, []); + }))).sort(function (a, b) { + + if (a.pattern === b.pattern) { + return b.routeNames.join('>').localeCompare(a.routeNames.join('>')); + } + + if (a.pattern.startsWith(b.pattern)) { + return -1; + } + if (b.pattern.startsWith(a.pattern)) { + return 1; + } + var aParts = a.pattern.split('/'); + var bParts = b.pattern.split('/'); + for (var i = 0; i < Math.max(aParts.length, bParts.length); i++) { + if (aParts[i] == null) { + return 1; + } + if (bParts[i] == null) { + return -1; + } + var aWildCard = aParts[i] === '*' || aParts[i].startsWith(':'); + var bWildCard = bParts[i] === '*' || bParts[i].startsWith(':'); + if (aWildCard && bWildCard) { + continue; + } + if (aWildCard) { + return 1; + } + if (bWildCard) { + return -1; + } + } + return bParts.length - aParts.length; + }); + + configs.reduce(function (acc, config) { + if (acc[config.pattern]) { + var a = acc[config.pattern].routeNames; + var b = config.routeNames; + + var intersects = a.length > b.length ? b.every(function (it, i) { + return a[i] === it; + }) : a.every(function (it, i) { + return b[i] === it; + }); + if (!intersects) { + throw new Error("Found conflicting screens with the same pattern. The pattern '" + config.pattern + "' resolves to both '" + a.join(' > ') + "' and '" + b.join(' > ') + "'. Patterns must be unique and cannot resolve to more than one screen."); + } + } + return Object.assign(acc, (0, _defineProperty2.default)({}, config.pattern, config)); + }, {}); + if (remaining === '/') { + var match = configs.find(function (config) { + return config.path === '' && config.routeNames.every( + function (name) { + var _configs$find; + return !((_configs$find = configs.find(function (c) { + return c.screen === name; + })) != null && _configs$find.path); + }); + }); + if (match) { + return createNestedStateObject(path, match.routeNames.map(function (name) { + return { + name: name + }; + }), initialRoutes, configs); + } + return undefined; + } + var result; + var current; + + var _matchAgainstConfigs = matchAgainstConfigs(remaining, configs.map(function (c) { + return Object.assign({}, c, { + regex: c.regex ? new RegExp(c.regex.source + '$') : undefined + }); + })), + routes = _matchAgainstConfigs.routes, + remainingPath = _matchAgainstConfigs.remainingPath; + if (routes !== undefined) { + current = createNestedStateObject(path, routes, initialRoutes, configs); + remaining = remainingPath; + result = current; + } + if (current == null || result == null) { + return undefined; + } + return result; + } + var joinPaths = function joinPaths() { + var _ref2; + for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) { + paths[_key] = arguments[_key]; + } + return (_ref2 = []).concat.apply(_ref2, (0, _toConsumableArray2.default)(paths.map(function (p) { + return p.split('/'); + }))).filter(Boolean).join('/'); + }; + var matchAgainstConfigs = function matchAgainstConfigs(remaining, configs) { + var routes; + var remainingPath = remaining; + + var _loop = function _loop(config) { + if (!config.regex) { + return "continue"; + } + var match = remainingPath.match(config.regex); + + if (match) { + var _config$pattern; + var matchedParams = (_config$pattern = config.pattern) == null ? void 0 : _config$pattern.split('/').filter(function (p) { + return p.startsWith(':'); + }).reduce(function (acc, p, i) { + return Object.assign(acc, (0, _defineProperty2.default)({}, p, match[(i + 1) * 2].replace(/\//, ''))); + }, {}); + routes = config.routeNames.map(function (name) { + var _config$path; + var config = configs.find(function (c) { + return c.screen === name; + }); + var params = config == null ? void 0 : (_config$path = config.path) == null ? void 0 : _config$path.split('/').filter(function (p) { + return p.startsWith(':'); + }).reduce(function (acc, p) { + var value = matchedParams[p]; + if (value) { + var _config$parse; + var key = p.replace(/^:/, '').replace(/\?$/, ''); + acc[key] = (_config$parse = config.parse) != null && _config$parse[key] ? config.parse[key](value) : value; + } + return acc; + }, {}); + if (params && Object.keys(params).length) { + return { + name: name, + params: params + }; + } + return { + name: name + }; + }); + remainingPath = remainingPath.replace(match[1], ''); + return "break"; + } + }; + for (var config of configs) { + var _ret = _loop(config); + if (_ret === "continue") continue; + if (_ret === "break") break; + } + return { + routes: routes, + remainingPath: remainingPath + }; + }; + var createNormalizedConfigs = function createNormalizedConfigs(screen, routeConfig) { + var routeNames = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + var initials = arguments.length > 3 ? arguments[3] : undefined; + var parentScreens = arguments.length > 4 ? arguments[4] : undefined; + var parentPattern = arguments.length > 5 ? arguments[5] : undefined; + var configs = []; + routeNames.push(screen); + parentScreens.push(screen); + + var config = routeConfig[screen]; + if (typeof config === 'string') { + var pattern = parentPattern ? joinPaths(parentPattern, config) : config; + configs.push(createConfigItem(screen, routeNames, pattern, config)); + } else if (typeof config === 'object') { + var _pattern; + + if (typeof config.path === 'string') { + if (config.exact && config.path === undefined) { + throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`."); + } + _pattern = config.exact !== true ? joinPaths(parentPattern || '', config.path || '') : config.path || ''; + configs.push(createConfigItem(screen, routeNames, _pattern, config.path, config.parse)); + } + if (config.screens) { + if (config.initialRouteName) { + initials.push({ + initialRouteName: config.initialRouteName, + parentScreens: parentScreens + }); + } + Object.keys(config.screens).forEach(function (nestedConfig) { + var _pattern2; + var result = createNormalizedConfigs(nestedConfig, config.screens, routeNames, initials, (0, _toConsumableArray2.default)(parentScreens), (_pattern2 = _pattern) != null ? _pattern2 : parentPattern); + configs.push.apply(configs, (0, _toConsumableArray2.default)(result)); + }); + } + } + routeNames.pop(); + return configs; + }; + var createConfigItem = function createConfigItem(screen, routeNames, pattern, path, parse) { + pattern = pattern.split('/').filter(Boolean).join('/'); + var regex = pattern ? new RegExp("^(" + pattern.split('/').map(function (it) { + if (it.startsWith(':')) { + return "(([^/]+\\/)" + (it.endsWith('?') ? '?' : '') + ")"; + } + return (it === '*' ? '.*' : (0, _escapeStringRegexp.default)(it)) + "\\/"; + }).join('') + ")") : undefined; + return { + screen: screen, + regex: regex, + pattern: pattern, + path: path, + routeNames: (0, _toConsumableArray2.default)(routeNames), + parse: parse + }; + }; + var findParseConfigForRoute = function findParseConfigForRoute(routeName, flatConfig) { + for (var config of flatConfig) { + if (routeName === config.routeNames[config.routeNames.length - 1]) { + return config.parse; + } + } + return undefined; + }; + + var findInitialRoute = function findInitialRoute(routeName, parentScreens, initialRoutes) { + for (var config of initialRoutes) { + if (parentScreens.length === config.parentScreens.length) { + var sameParents = true; + for (var i = 0; i < parentScreens.length; i++) { + if (parentScreens[i].localeCompare(config.parentScreens[i]) !== 0) { + sameParents = false; + break; + } + } + if (sameParents) { + return routeName !== config.initialRouteName ? config.initialRouteName : undefined; + } + } + } + return undefined; + }; + + var createStateObject = function createStateObject(initialRoute, route, isEmpty) { + if (isEmpty) { + if (initialRoute) { + return { + index: 1, + routes: [{ + name: initialRoute + }, route] + }; + } else { + return { + routes: [route] + }; + } + } else { + if (initialRoute) { + return { + index: 1, + routes: [{ + name: initialRoute + }, Object.assign({}, route, { + state: { + routes: [] + } + })] + }; + } else { + return { + routes: [Object.assign({}, route, { + state: { + routes: [] + } + })] + }; + } + } + }; + var createNestedStateObject = function createNestedStateObject(path, routes, initialRoutes, flatConfig) { + var state; + var route = routes.shift(); + var parentScreens = []; + var initialRoute = findInitialRoute(route.name, parentScreens, initialRoutes); + parentScreens.push(route.name); + state = createStateObject(initialRoute, route, routes.length === 0); + if (routes.length > 0) { + var nestedState = state; + while (route = routes.shift()) { + initialRoute = findInitialRoute(route.name, parentScreens, initialRoutes); + var nestedStateIndex = nestedState.index || nestedState.routes.length - 1; + nestedState.routes[nestedStateIndex].state = createStateObject(initialRoute, route, routes.length === 0); + if (routes.length > 0) { + nestedState = nestedState.routes[nestedStateIndex].state; + } + parentScreens.push(route.name); + } + } + route = (0, _findFocusedRoute.default)(state); + route.path = path; + var params = parseQueryParams(path, flatConfig ? findParseConfigForRoute(route.name, flatConfig) : undefined); + if (params) { + route.params = Object.assign({}, route.params, params); + } + return state; + }; + var parseQueryParams = function parseQueryParams(path, parseConfig) { + var query = path.split('?')[1]; + var params = queryString.parse(query); + if (parseConfig) { + Object.keys(params).forEach(function (name) { + if (Object.hasOwnProperty.call(parseConfig, name) && typeof params[name] === 'string') { + params[name] = parseConfig[name](params[name]); + } + }); + } + return Object.keys(params).length ? params : undefined; + }; +},637,[3,306,6,638,630,600,636],"node_modules/@react-navigation/core/src/getStateFromPath.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function (string) { + if (typeof string !== 'string') { + throw new TypeError('Expected a string'); + } + + return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d'); + }; +},638,[],"node_modules/escape-string-regexp/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationHelpersContext = React.createContext(undefined); + var _default = NavigationHelpersContext; + exports.default = _default; +},639,[36],"node_modules/@react-navigation/core/src/NavigationHelpersContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var PreventRemoveContext = React.createContext(undefined); + var _default = PreventRemoveContext; + exports.default = _default; +},640,[36],"node_modules/@react-navigation/core/src/PreventRemoveContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = PreventRemoveProvider; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _useLatestCallback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "use-latest-callback")); + var _NavigationHelpersContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NavigationHelpersContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NavigationRouteContext")); + var _PreventRemoveContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./PreventRemoveContext")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/PreventRemoveProvider.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var transformPreventedRoutes = function transformPreventedRoutes(preventedRoutesMap) { + var preventedRoutesToTransform = (0, _toConsumableArray2.default)(preventedRoutesMap.values()); + var preventedRoutes = preventedRoutesToTransform.reduce(function (acc, _ref) { + var _acc$routeKey; + var routeKey = _ref.routeKey, + preventRemove = _ref.preventRemove; + acc[routeKey] = { + preventRemove: ((_acc$routeKey = acc[routeKey]) == null ? void 0 : _acc$routeKey.preventRemove) || preventRemove + }; + return acc; + }, {}); + return preventedRoutes; + }; + + function PreventRemoveProvider(_ref2) { + var children = _ref2.children; + var _React$useState = React.useState(function () { + return (0, _$$_REQUIRE(_dependencyMap[8], "nanoid/non-secure").nanoid)(); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + parentId = _React$useState2[0]; + var _React$useState3 = React.useState(new Map()), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + preventedRoutesMap = _React$useState4[0], + setPreventedRoutesMap = _React$useState4[1]; + var navigation = React.useContext(_NavigationHelpersContext.default); + var route = React.useContext(_NavigationRouteContext.default); + var preventRemoveContextValue = React.useContext(_PreventRemoveContext.default); + var setParentPrevented = preventRemoveContextValue == null ? void 0 : preventRemoveContextValue.setPreventRemove; + var setPreventRemove = (0, _useLatestCallback.default)(function (id, routeKey, preventRemove) { + if (preventRemove && (navigation == null || navigation != null && navigation.getState().routes.every(function (route) { + return route.key !== routeKey; + }))) { + throw new Error("Couldn't find a route with the key " + routeKey + ". Is your component inside NavigationContent?"); + } + setPreventedRoutesMap(function (prevPrevented) { + var _prevPrevented$get, _prevPrevented$get2; + if (routeKey === ((_prevPrevented$get = prevPrevented.get(id)) == null ? void 0 : _prevPrevented$get.routeKey) && preventRemove === ((_prevPrevented$get2 = prevPrevented.get(id)) == null ? void 0 : _prevPrevented$get2.preventRemove)) { + return prevPrevented; + } + var nextPrevented = new Map(prevPrevented); + if (preventRemove) { + nextPrevented.set(id, { + routeKey: routeKey, + preventRemove: preventRemove + }); + } else { + nextPrevented.delete(id); + } + return nextPrevented; + }); + }); + var isPrevented = (0, _toConsumableArray2.default)(preventedRoutesMap.values()).some(function (_ref3) { + var preventRemove = _ref3.preventRemove; + return preventRemove; + }); + React.useEffect(function () { + if ((route == null ? void 0 : route.key) !== undefined && setParentPrevented !== undefined) { + setParentPrevented(parentId, route.key, isPrevented); + return function () { + setParentPrevented(parentId, route.key, false); + }; + } + return; + }, [parentId, isPrevented, route == null ? void 0 : route.key, setParentPrevented]); + var value = React.useMemo(function () { + return { + setPreventRemove: setPreventRemove, + preventedRoutes: transformPreventedRoutes(preventedRoutesMap) + }; + }, [setPreventRemove, preventedRoutesMap]); + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_PreventRemoveContext.default.Provider, { + value: value, + children: children + }); + } +},641,[3,19,6,36,642,639,604,640,616,73],"node_modules/@react-navigation/core/src/PreventRemoveProvider.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { + enumerable: true, + get: function get() { + return m[k]; + } + }); + } : function (o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function (o, v) { + o["default"] = v; + }); + var __importStar = this && this.__importStar || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) { + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var React = __importStar(_$$_REQUIRE(_dependencyMap[0], "react")); + var useIsomorphicLayoutEffect = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect; + function useLatestCallback(callback) { + var ref = React.useRef(callback); + var latestCallback = React.useRef(function latestCallback() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return ref.current.apply(this, args); + }).current; + useIsomorphicLayoutEffect(function () { + ref.current = callback; + }); + return latestCallback; + } + exports.default = useLatestCallback; +},642,[36],"node_modules/use-latest-callback/lib/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PrivateValueStore = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var PrivateValueStore = (0, _createClass2.default)(function PrivateValueStore() { + (0, _classCallCheck2.default)(this, PrivateValueStore); + }); + exports.PrivateValueStore = PrivateValueStore; +},643,[3,13,12],"node_modules/@react-navigation/core/src/types.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useFocusEffect; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _useNavigation = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./useNavigation")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useFocusEffect(effect) { + var navigation = (0, _useNavigation.default)(); + if (arguments[1] !== undefined) { + var message = "You passed a second argument to 'useFocusEffect', but it only accepts one argument. " + "If you want to pass a dependency array, you can use 'React.useCallback':\n\n" + 'useFocusEffect(\n' + ' React.useCallback(() => {\n' + ' // Your code here\n' + ' }, [depA, depB])\n' + ');\n\n' + 'See usage guide: https://reactnavigation.org/docs/use-focus-effect'; + console.error(message); + } + React.useEffect(function () { + var isFocused = false; + var cleanup; + var callback = function callback() { + var destroy = effect(); + if (destroy === undefined || typeof destroy === 'function') { + return destroy; + } + if (process.env.NODE_ENV !== 'production') { + var _message = 'An effect function must not return anything besides a function, which is used for clean-up.'; + if (destroy === null) { + _message += " You returned 'null'. If your effect does not require clean-up, return 'undefined' (or nothing)."; + } else if (typeof destroy.then === 'function') { + _message += "\n\nIt looks like you wrote 'useFocusEffect(async () => ...)' or returned a Promise. " + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useFocusEffect(\n' + ' React.useCallback(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n\n' + ' fetchData();\n' + ' }, [someId])\n' + ');\n\n' + 'See usage guide: https://reactnavigation.org/docs/use-focus-effect'; + } else { + _message += " You returned '" + JSON.stringify(destroy) + "'."; + } + console.error(_message); + } + }; + + if (navigation.isFocused()) { + cleanup = callback(); + isFocused = true; + } + var unsubscribeFocus = navigation.addListener('focus', function () { + if (isFocused) { + return; + } + if (cleanup !== undefined) { + cleanup(); + } + cleanup = callback(); + isFocused = true; + }); + var unsubscribeBlur = navigation.addListener('blur', function () { + if (cleanup !== undefined) { + cleanup(); + } + cleanup = undefined; + isFocused = false; + }); + return function () { + if (cleanup !== undefined) { + cleanup(); + } + unsubscribeFocus(); + unsubscribeBlur(); + }; + }, [effect, navigation]); + } +},644,[36,3,645],"node_modules/@react-navigation/core/src/useFocusEffect.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigation; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationContainerRefContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationContainerRefContext")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useNavigation() { + var root = React.useContext(_NavigationContainerRefContext.default); + var navigation = React.useContext(_NavigationContext.default); + if (navigation === undefined && root === undefined) { + throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?"); + } + + return navigation != null ? navigation : root; + } +},645,[36,3,602,603],"node_modules/@react-navigation/core/src/useNavigation.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useIsFocused; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _useNavigation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./useNavigation")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useIsFocused() { + var navigation = (0, _useNavigation.default)(); + var _useState = (0, React.useState)(navigation.isFocused), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isFocused = _useState2[0], + setIsFocused = _useState2[1]; + var valueToReturn = navigation.isFocused(); + if (isFocused !== valueToReturn) { + setIsFocused(valueToReturn); + } + React.useEffect(function () { + var unsubscribeFocus = navigation.addListener('focus', function () { + return setIsFocused(true); + }); + var unsubscribeBlur = navigation.addListener('blur', function () { + return setIsFocused(false); + }); + return function () { + unsubscribeFocus(); + unsubscribeBlur(); + }; + }, [navigation]); + React.useDebugValue(valueToReturn); + return valueToReturn; + } +},646,[3,19,36,645],"node_modules/@react-navigation/core/src/useIsFocused.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigationBuilder; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/defineProperty")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/objectWithoutProperties")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/toConsumableArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "react")); + var _Group = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./Group")); + var _isArrayEqual = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./isArrayEqual")); + var _isRecordEqual = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./isRecordEqual")); + var _NavigationHelpersContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NavigationHelpersContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NavigationRouteContext")); + var _NavigationStateContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./NavigationStateContext")); + var _PreventRemoveProvider = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./PreventRemoveProvider")); + var _Screen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./Screen")); + var _useChildListeners2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./useChildListeners")); + var _useComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./useComponent")); + var _useCurrentRender = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./useCurrentRender")); + var _useDescriptors = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "./useDescriptors")); + var _useEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "./useEventEmitter")); + var _useFocusedListenersChildrenAdapter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "./useFocusedListenersChildrenAdapter")); + var _useFocusEvents = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[20], "./useFocusEvents")); + var _useKeyedChildListeners = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[21], "./useKeyedChildListeners")); + var _useNavigationHelpers = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[22], "./useNavigationHelpers")); + var _useOnAction = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[23], "./useOnAction")); + var _useOnGetState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[24], "./useOnGetState")); + var _useOnRouteFocus = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[25], "./useOnRouteFocus")); + var _useRegisterNavigator = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[26], "./useRegisterNavigator")); + var _useScheduleUpdate = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[27], "./useScheduleUpdate")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/useNavigationBuilder.tsx"; + var _excluded = ["children", "screenListeners"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + _$$_REQUIRE(_dependencyMap[28], "./types").PrivateValueStore; + var isValidKey = function isValidKey(key) { + return key === undefined || typeof key === 'string' && key !== ''; + }; + + var getRouteConfigsFromChildren = function getRouteConfigsFromChildren(children, groupKey, groupOptions) { + var configs = React.Children.toArray(children).reduce(function (acc, child) { + var _child$type, _child$props; + if (React.isValidElement(child)) { + if (child.type === _Screen.default) { + + if (!isValidKey(child.props.navigationKey)) { + throw new Error("Got an invalid 'navigationKey' prop (" + JSON.stringify(child.props.navigationKey) + ") for the screen '" + child.props.name + "'. It must be a non-empty string or 'undefined'."); + } + acc.push({ + keys: [groupKey, child.props.navigationKey], + options: groupOptions, + props: child.props + }); + return acc; + } + if (child.type === React.Fragment || child.type === _Group.default) { + if (!isValidKey(child.props.navigationKey)) { + throw new Error("Got an invalid 'navigationKey' prop (" + JSON.stringify(child.props.navigationKey) + ") for the group. It must be a non-empty string or 'undefined'."); + } + + acc.push.apply(acc, (0, _toConsumableArray2.default)(getRouteConfigsFromChildren(child.props.children, child.props.navigationKey, child.type !== _Group.default ? groupOptions : groupOptions != null ? [].concat((0, _toConsumableArray2.default)(groupOptions), [child.props.screenOptions]) : [child.props.screenOptions]))); + return acc; + } + } + throw new Error("A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found " + (React.isValidElement(child) ? "'" + (typeof child.type === 'string' ? child.type : (_child$type = child.type) == null ? void 0 : _child$type.name) + "'" + ((_child$props = child.props) != null && _child$props.name ? " for the screen '" + child.props.name + "'" : '') : typeof child === 'object' ? JSON.stringify(child) : "'" + String(child) + "'") + "). To render this component in the navigator, pass it in the 'component' prop to 'Screen'."); + }, []); + if (process.env.NODE_ENV !== 'production') { + configs.forEach(function (config) { + var _config$props = config.props, + name = _config$props.name, + children = _config$props.children, + component = _config$props.component, + getComponent = _config$props.getComponent; + if (typeof name !== 'string' || !name) { + throw new Error("Got an invalid name (" + JSON.stringify(name) + ") for the screen. It must be a non-empty string."); + } + if (children != null || component !== undefined || getComponent !== undefined) { + if (children != null && component !== undefined) { + throw new Error("Got both 'component' and 'children' props for the screen '" + name + "'. You must pass only one of them."); + } + if (children != null && getComponent !== undefined) { + throw new Error("Got both 'getComponent' and 'children' props for the screen '" + name + "'. You must pass only one of them."); + } + if (component !== undefined && getComponent !== undefined) { + throw new Error("Got both 'component' and 'getComponent' props for the screen '" + name + "'. You must pass only one of them."); + } + if (children != null && typeof children !== 'function') { + throw new Error("Got an invalid value for 'children' prop for the screen '" + name + "'. It must be a function returning a React Element."); + } + if (component !== undefined && !(0, _$$_REQUIRE(_dependencyMap[29], "react-is").isValidElementType)(component)) { + throw new Error("Got an invalid value for 'component' prop for the screen '" + name + "'. It must be a valid React Component."); + } + if (getComponent !== undefined && typeof getComponent !== 'function') { + throw new Error("Got an invalid value for 'getComponent' prop for the screen '" + name + "'. It must be a function returning a React Component."); + } + if (typeof component === 'function') { + if (component.name === 'component') { + console.warn("Looks like you're passing an inline function for 'component' prop for the screen '" + name + "' (e.g. component={() => }). Passing an inline function will cause the component state to be lost on re-render and cause perf issues since it's re-created every render. You can pass the function as children to 'Screen' instead to achieve the desired behaviour."); + } else if (/^[a-z]/.test(component.name)) { + console.warn("Got a component with the name '" + component.name + "' for the screen '" + name + "'. React Components must start with an uppercase letter. If you're passing a regular function and not a component, pass it as children to 'Screen' instead. Otherwise capitalize your component's name."); + } + } + } else { + throw new Error("Couldn't find a 'component', 'getComponent' or 'children' prop for the screen '" + name + "'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing."); + } + }); + } + return configs; + }; + + function useNavigationBuilder(createRouter, options) { + var _this = this; + var navigatorKey = (0, _useRegisterNavigator.default)(); + var route = React.useContext(_NavigationRouteContext.default); + var children = options.children, + screenListeners = options.screenListeners, + rest = (0, _objectWithoutProperties2.default)(options, _excluded); + var _React$useRef = React.useRef(createRouter(Object.assign({}, rest, route != null && route.params && route.params.state == null && route.params.initial !== false && typeof route.params.screen === 'string' ? { + initialRouteName: route.params.screen + } : null))), + router = _React$useRef.current; + var routeConfigs = getRouteConfigsFromChildren(children); + var screens = routeConfigs.reduce(function (acc, config) { + if (config.props.name in acc) { + throw new Error("A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '" + config.props.name + "')"); + } + acc[config.props.name] = config; + return acc; + }, {}); + var routeNames = routeConfigs.map(function (config) { + return config.props.name; + }); + var routeKeyList = routeNames.reduce(function (acc, curr) { + acc[curr] = screens[curr].keys.map(function (key) { + return key != null ? key : ''; + }).join(':'); + return acc; + }, {}); + var routeParamList = routeNames.reduce(function (acc, curr) { + var initialParams = screens[curr].props.initialParams; + acc[curr] = initialParams; + return acc; + }, {}); + var routeGetIdList = routeNames.reduce(function (acc, curr) { + return Object.assign(acc, (0, _defineProperty2.default)({}, curr, screens[curr].props.getId)); + }, {}); + if (!routeNames.length) { + throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?"); + } + var isStateValid = React.useCallback(function (state) { + return state.type === undefined || state.type === router.type; + }, [router.type]); + var isStateInitialized = React.useCallback(function (state) { + return state !== undefined && state.stale === false && isStateValid(state); + }, [isStateValid]); + var _React$useContext = React.useContext(_NavigationStateContext.default), + currentState = _React$useContext.state, + getCurrentState = _React$useContext.getState, + setCurrentState = _React$useContext.setState, + setKey = _React$useContext.setKey, + getKey = _React$useContext.getKey, + getIsInitial = _React$useContext.getIsInitial; + var stateCleanedUp = React.useRef(false); + var cleanUpState = React.useCallback(function () { + setCurrentState(undefined); + stateCleanedUp.current = true; + }, [setCurrentState]); + var setState = React.useCallback(function (state) { + if (stateCleanedUp.current) { + return; + } + setCurrentState(state); + }, [setCurrentState]); + var _React$useMemo = React.useMemo(function () { + var _route$params4; + var initialRouteParamList = routeNames.reduce(function (acc, curr) { + var _route$params, _route$params2, _route$params3; + var initialParams = screens[curr].props.initialParams; + var initialParamsFromParams = (route == null ? void 0 : (_route$params = route.params) == null ? void 0 : _route$params.state) == null && (route == null ? void 0 : (_route$params2 = route.params) == null ? void 0 : _route$params2.initial) !== false && (route == null ? void 0 : (_route$params3 = route.params) == null ? void 0 : _route$params3.screen) === curr ? route.params.params : undefined; + acc[curr] = initialParams !== undefined || initialParamsFromParams !== undefined ? Object.assign({}, initialParams, initialParamsFromParams) : undefined; + return acc; + }, {}); + + if ((currentState === undefined || !isStateValid(currentState)) && (route == null ? void 0 : (_route$params4 = route.params) == null ? void 0 : _route$params4.state) == null) { + return [router.getInitialState({ + routeNames: routeNames, + routeParamList: initialRouteParamList, + routeGetIdList: routeGetIdList + }), true]; + } else { + var _route$params$state, _route$params5; + return [router.getRehydratedState((_route$params$state = route == null ? void 0 : (_route$params5 = route.params) == null ? void 0 : _route$params5.state) != null ? _route$params$state : currentState, { + routeNames: routeNames, + routeParamList: initialRouteParamList, + routeGetIdList: routeGetIdList + }), false]; + } + }, [currentState, router, isStateValid]), + _React$useMemo2 = (0, _slicedToArray2.default)(_React$useMemo, 2), + initializedState = _React$useMemo2[0], + isFirstStateInitialization = _React$useMemo2[1]; + var previousRouteKeyListRef = React.useRef(routeKeyList); + React.useEffect(function () { + previousRouteKeyListRef.current = routeKeyList; + }); + var previousRouteKeyList = previousRouteKeyListRef.current; + var state = + isStateInitialized(currentState) ? currentState : initializedState; + var nextState = state; + if (!(0, _isArrayEqual.default)(state.routeNames, routeNames) || !(0, _isRecordEqual.default)(routeKeyList, previousRouteKeyList)) { + nextState = router.getStateForRouteNamesChange(state, { + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList, + routeKeyChanges: Object.keys(routeKeyList).filter(function (name) { + return previousRouteKeyList.hasOwnProperty(name) && routeKeyList[name] !== previousRouteKeyList[name]; + }) + }); + } + var previousNestedParamsRef = React.useRef(route == null ? void 0 : route.params); + React.useEffect(function () { + previousNestedParamsRef.current = route == null ? void 0 : route.params; + }, [route == null ? void 0 : route.params]); + if (route != null && route.params) { + var previousParams = previousNestedParamsRef.current; + var action; + if (typeof route.params.state === 'object' && route.params.state != null && route.params !== previousParams) { + action = _$$_REQUIRE(_dependencyMap[30], "@react-navigation/routers").CommonActions.reset(route.params.state); + } else if (typeof route.params.screen === 'string' && (route.params.initial === false && isFirstStateInitialization || route.params !== previousParams)) { + action = _$$_REQUIRE(_dependencyMap[30], "@react-navigation/routers").CommonActions.navigate({ + name: route.params.screen, + params: route.params.params, + path: route.params.path + }); + } + + var updatedState = action ? router.getStateForAction(nextState, action, { + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList + }) : null; + nextState = updatedState !== null ? router.getRehydratedState(updatedState, { + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList + }) : nextState; + } + var shouldUpdate = state !== nextState; + (0, _useScheduleUpdate.default)(function () { + if (shouldUpdate) { + setState(nextState); + } + }); + + state = nextState; + React.useEffect(function () { + setKey(navigatorKey); + if (!getIsInitial()) { + setState(nextState); + } + return function () { + setTimeout(function () { + if (getCurrentState() !== undefined && getKey() === navigatorKey) { + cleanUpState(); + } + }, 0); + }; + }, []); + + var initializedStateRef = React.useRef(); + initializedStateRef.current = initializedState; + var getState = React.useCallback(function () { + var currentState = getCurrentState(); + return isStateInitialized(currentState) ? currentState : initializedStateRef.current; + }, [getCurrentState, isStateInitialized]); + var emitter = (0, _useEventEmitter.default)(function (e) { + var _ref; + var routeNames = []; + var route; + if (e.target) { + var _route; + route = state.routes.find(function (route) { + return route.key === e.target; + }); + if ((_route = route) != null && _route.name) { + routeNames.push(route.name); + } + } else { + route = state.routes[state.index]; + routeNames.push.apply(routeNames, (0, _toConsumableArray2.default)(Object.keys(screens).filter(function (name) { + var _route2; + return ((_route2 = route) == null ? void 0 : _route2.name) === name; + }))); + } + if (route == null) { + return; + } + var navigation = descriptors[route.key].navigation; + var listeners = (_ref = []).concat.apply(_ref, (0, _toConsumableArray2.default)([screenListeners].concat((0, _toConsumableArray2.default)(routeNames.map(function (name) { + var listeners = screens[name].props.listeners; + return listeners; + }))).map(function (listeners) { + var map = typeof listeners === 'function' ? listeners({ + route: route, + navigation: navigation + }) : listeners; + return map ? Object.keys(map).filter(function (type) { + return type === e.type; + }).map(function (type) { + return map == null ? void 0 : map[type]; + }) : undefined; + }))) + .filter(function (cb, i, self) { + return cb && self.lastIndexOf(cb) === i; + }); + listeners.forEach(function (listener) { + return listener == null ? void 0 : listener(e); + }); + }); + (0, _useFocusEvents.default)({ + state: state, + emitter: emitter + }); + React.useEffect(function () { + emitter.emit({ + type: 'state', + data: { + state: state + } + }); + }, [emitter, state]); + var _useChildListeners = (0, _useChildListeners2.default)(), + childListeners = _useChildListeners.listeners, + addListener = _useChildListeners.addListener; + var _useKeyedChildListene = (0, _useKeyedChildListeners.default)(), + keyedListeners = _useKeyedChildListene.keyedListeners, + addKeyedListener = _useKeyedChildListene.addKeyedListener; + var onAction = (0, _useOnAction.default)({ + router: router, + getState: getState, + setState: setState, + key: route == null ? void 0 : route.key, + actionListeners: childListeners.action, + beforeRemoveListeners: keyedListeners.beforeRemove, + routerConfigOptions: { + routeNames: routeNames, + routeParamList: routeParamList, + routeGetIdList: routeGetIdList + }, + emitter: emitter + }); + var onRouteFocus = (0, _useOnRouteFocus.default)({ + router: router, + key: route == null ? void 0 : route.key, + getState: getState, + setState: setState + }); + var navigation = (0, _useNavigationHelpers.default)({ + id: options.id, + onAction: onAction, + getState: getState, + emitter: emitter, + router: router + }); + (0, _useFocusedListenersChildrenAdapter.default)({ + navigation: navigation, + focusedListeners: childListeners.focus + }); + (0, _useOnGetState.default)({ + getState: getState, + getStateListeners: keyedListeners.getState + }); + var descriptors = (0, _useDescriptors.default)({ + state: state, + screens: screens, + navigation: navigation, + screenOptions: options.screenOptions, + defaultScreenOptions: options.defaultScreenOptions, + onAction: onAction, + getState: getState, + setState: setState, + onRouteFocus: onRouteFocus, + addListener: addListener, + addKeyedListener: addKeyedListener, + router: router, + emitter: emitter + }); + (0, _useCurrentRender.default)({ + state: state, + navigation: navigation, + descriptors: descriptors + }); + var NavigationContent = (0, _useComponent.default)(function (children) { + return (0, _$$_REQUIRE(_dependencyMap[31], "react/jsx-runtime").jsx)(_NavigationHelpersContext.default.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[31], "react/jsx-runtime").jsx)(_PreventRemoveProvider.default, { + children: children + }) + }); + }); + return { + state: state, + navigation: navigation, + descriptors: descriptors, + NavigationContent: NavigationContent + }; + } +},647,[3,19,306,132,6,36,623,648,649,639,604,605,641,624,607,650,651,652,608,656,657,609,658,659,661,662,663,621,643,664,613,73],"node_modules/@react-navigation/core/src/useNavigationBuilder.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = isArrayEqual; + function isArrayEqual(a, b) { + if (a === b) { + return true; + } + if (a.length !== b.length) { + return false; + } + return a.every(function (it, index) { + return it === b[index]; + }); + } +},648,[],"node_modules/@react-navigation/core/src/isArrayEqual.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = isRecordEqual; + function isRecordEqual(a, b) { + if (a === b) { + return true; + } + var aKeys = Object.keys(a); + var bKeys = Object.keys(b); + if (aKeys.length !== bKeys.length) { + return false; + } + return aKeys.every(function (key) { + return a[key] === b[key]; + }); + } +},649,[],"node_modules/@react-navigation/core/src/isRecordEqual.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useComponent; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/useComponent.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var NavigationContent = function NavigationContent(_ref) { + var render = _ref.render, + children = _ref.children; + return render(children); + }; + function useComponent(render) { + var _this = this; + var renderRef = React.useRef(render); + + renderRef.current = render; + React.useEffect(function () { + renderRef.current = null; + }); + return React.useRef(function (_ref2) { + var children = _ref2.children; + var render = renderRef.current; + if (render === null) { + throw new Error('The returned component must be rendered in the same render phase as the hook.'); + } + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(NavigationContent, { + render: render, + children: children + }); + }).current; + } +},650,[36,73],"node_modules/@react-navigation/core/src/useComponent.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useCurrentRender; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _CurrentRenderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./CurrentRenderContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useCurrentRender(_ref) { + var state = _ref.state, + navigation = _ref.navigation, + descriptors = _ref.descriptors; + var current = React.useContext(_CurrentRenderContext.default); + if (current && navigation.isFocused()) { + current.options = descriptors[state.routes[state.index].key].options; + } + } +},651,[36,3,625],"node_modules/@react-navigation/core/src/useCurrentRender.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useDescriptors; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NavigationBuilderContext")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NavigationContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./NavigationRouteContext")); + var _SceneView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./SceneView")); + var _useNavigationCache = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./useNavigationCache")); + var _useRouteCache = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./useRouteCache")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/useDescriptors.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } + function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } + function useDescriptors(_ref) { + var state = _ref.state, + screens = _ref.screens, + navigation = _ref.navigation, + screenOptions = _ref.screenOptions, + defaultScreenOptions = _ref.defaultScreenOptions, + onAction = _ref.onAction, + getState = _ref.getState, + setState = _ref.setState, + addListener = _ref.addListener, + addKeyedListener = _ref.addKeyedListener, + onRouteFocus = _ref.onRouteFocus, + router = _ref.router, + emitter = _ref.emitter; + var _React$useState = React.useState({}), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + options = _React$useState2[0], + setOptions = _React$useState2[1]; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + onDispatchAction = _React$useContext.onDispatchAction, + onOptionsChange = _React$useContext.onOptionsChange, + stackRef = _React$useContext.stackRef; + var context = React.useMemo(function () { + return { + navigation: navigation, + onAction: onAction, + addListener: addListener, + addKeyedListener: addKeyedListener, + onRouteFocus: onRouteFocus, + onDispatchAction: onDispatchAction, + onOptionsChange: onOptionsChange, + stackRef: stackRef + }; + }, [navigation, onAction, addListener, addKeyedListener, onRouteFocus, onDispatchAction, onOptionsChange, stackRef]); + var navigations = (0, _useNavigationCache.default)({ + state: state, + getState: getState, + navigation: navigation, + setOptions: setOptions, + router: router, + emitter: emitter + }); + var routes = (0, _useRouteCache.default)(state.routes); + return routes.reduce(function (acc, route, i) { + var config = screens[route.name]; + var screen = config.props; + var navigation = navigations[route.key]; + var optionsList = [ + screenOptions].concat((0, _toConsumableArray2.default)(config.options ? config.options.filter(Boolean) : []), [ + screen.options, + options[route.key]]); + var customOptions = optionsList.reduce(function (acc, curr) { + return Object.assign(acc, typeof curr !== 'function' ? curr : curr({ + route: route, + navigation: navigation + })); + }, {}); + var mergedOptions = Object.assign({}, typeof defaultScreenOptions === 'function' ? + defaultScreenOptions({ + route: route, + navigation: navigation, + options: customOptions + }) : defaultScreenOptions, customOptions); + var clearOptions = function clearOptions() { + return setOptions(function (o) { + if (route.key in o) { + var _route$key = route.key, + _ = o[_route$key], + rest = (0, _objectWithoutProperties2.default)(o, [_route$key].map(_toPropertyKey)); + return rest; + } + return o; + }); + }; + acc[route.key] = { + route: route, + navigation: navigation, + render: function render() { + return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_NavigationBuilderContext.default.Provider, { + value: context, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_NavigationContext.default.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_NavigationRouteContext.default.Provider, { + value: route, + children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_SceneView.default, { + navigation: navigation, + route: route, + screen: screen, + routeState: state.routes[i].state, + getState: getState, + setState: setState, + options: mergedOptions, + clearOptions: clearOptions + }) + }) + }) + }, route.key); + }, + options: mergedOptions + }; + return acc; + }, {}); + } +},652,[3,132,6,19,36,601,603,604,653,655,628,73],"node_modules/@react-navigation/core/src/useDescriptors.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = SceneView; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _EnsureSingleNavigator = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./EnsureSingleNavigator")); + var _NavigationStateContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationStateContext")); + var _StaticContainer = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./StaticContainer")); + var _useOptionsGetters2 = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./useOptionsGetters")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/core/src/SceneView.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function SceneView(_ref) { + var screen = _ref.screen, + route = _ref.route, + navigation = _ref.navigation, + routeState = _ref.routeState, + getState = _ref.getState, + setState = _ref.setState, + options = _ref.options, + clearOptions = _ref.clearOptions; + var navigatorKeyRef = React.useRef(); + var getKey = React.useCallback(function () { + return navigatorKeyRef.current; + }, []); + var _useOptionsGetters = (0, _useOptionsGetters2.default)({ + key: route.key, + options: options, + navigation: navigation + }), + addOptionsGetter = _useOptionsGetters.addOptionsGetter; + var setKey = React.useCallback(function (key) { + navigatorKeyRef.current = key; + }, []); + var getCurrentState = React.useCallback(function () { + var state = getState(); + var currentRoute = state.routes.find(function (r) { + return r.key === route.key; + }); + return currentRoute ? currentRoute.state : undefined; + }, [getState, route.key]); + var setCurrentState = React.useCallback(function (child) { + var state = getState(); + setState(Object.assign({}, state, { + routes: state.routes.map(function (r) { + return r.key === route.key ? Object.assign({}, r, { + state: child + }) : r; + }) + })); + }, [getState, route.key, setState]); + var isInitialRef = React.useRef(true); + React.useEffect(function () { + isInitialRef.current = false; + }); + + React.useEffect(function () { + return clearOptions; + }, []); + var getIsInitial = React.useCallback(function () { + return isInitialRef.current; + }, []); + var context = React.useMemo(function () { + return { + state: routeState, + getState: getCurrentState, + setState: setCurrentState, + getKey: getKey, + setKey: setKey, + getIsInitial: getIsInitial, + addOptionsGetter: addOptionsGetter + }; + }, [routeState, getCurrentState, setCurrentState, getKey, setKey, getIsInitial, addOptionsGetter]); + var ScreenComponent = screen.getComponent ? screen.getComponent() : screen.component; + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_NavigationStateContext.default.Provider, { + value: context, + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_EnsureSingleNavigator.default, { + children: (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_StaticContainer.default, { + name: screen.name, + render: ScreenComponent || screen.children, + navigation: navigation, + route: route, + children: ScreenComponent !== undefined ? (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(ScreenComponent, { + navigation: navigation, + route: route + }) : screen.children !== undefined ? screen.children({ + navigation: navigation, + route: route + }) : null + }) + }) + }); + } +},653,[36,3,599,605,654,610,73],"node_modules/@react-navigation/core/src/SceneView.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function StaticContainer(props) { + return props.children; + } + var _default = React.memo(StaticContainer, function (prevProps, nextProps) { + var prevPropKeys = Object.keys(prevProps); + var nextPropKeys = Object.keys(nextProps); + if (prevPropKeys.length !== nextPropKeys.length) { + return false; + } + for (var key of prevPropKeys) { + if (key === 'children') { + continue; + } + if (prevProps[key] !== nextProps[key]) { + return false; + } + } + return true; + }); + exports.default = _default; +},654,[36],"node_modules/@react-navigation/core/src/StaticContainer.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigationCache; + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NavigationBuilderContext")); + var _excluded = ["emit"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useNavigationCache(_ref) { + var state = _ref.state, + getState = _ref.getState, + navigation = _ref.navigation, + _setOptions = _ref.setOptions, + router = _ref.router, + emitter = _ref.emitter; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + stackRef = _React$useContext.stackRef; + + var cache = React.useMemo(function () { + return { + current: {} + }; + }, + [getState, navigation, _setOptions, router, emitter]); + var actions = Object.assign({}, router.actionCreators, _$$_REQUIRE(_dependencyMap[5], "@react-navigation/routers").CommonActions); + cache.current = state.routes.reduce(function (acc, route) { + var previous = cache.current[route.key]; + if (previous) { + acc[route.key] = previous; + } else { + var emit = navigation.emit, + rest = (0, _objectWithoutProperties2.default)(navigation, _excluded); + var _dispatch = function dispatch(thunk) { + var action = typeof thunk === 'function' ? thunk(getState()) : thunk; + if (action != null) { + navigation.dispatch(Object.assign({ + source: route.key + }, action)); + } + }; + var withStack = function withStack(callback) { + var isStackSet = false; + try { + if (process.env.NODE_ENV !== 'production' && stackRef && !stackRef.current) { + stackRef.current = new Error().stack; + isStackSet = true; + } + callback(); + } finally { + if (isStackSet && stackRef) { + stackRef.current = undefined; + } + } + }; + var helpers = Object.keys(actions).reduce(function (acc, name) { + acc[name] = function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return withStack(function () { + return ( + _dispatch(actions[name].apply(actions, args)) + ); + }); + }; + return acc; + }, {}); + acc[route.key] = Object.assign({}, rest, helpers, emitter.create(route.key), { + dispatch: function dispatch(thunk) { + return withStack(function () { + return _dispatch(thunk); + }); + }, + getParent: function getParent(id) { + if (id !== undefined && id === rest.getId()) { + return acc[route.key]; + } + return rest.getParent(id); + }, + setOptions: function setOptions(options) { + return _setOptions(function (o) { + return Object.assign({}, o, (0, _defineProperty2.default)({}, route.key, Object.assign({}, o[route.key], options))); + }); + }, + isFocused: function isFocused() { + var state = getState(); + if (state.routes[state.index].key !== route.key) { + return false; + } + + return navigation ? navigation.isFocused() : true; + } + }); + } + return acc; + }, {}); + return cache.current; + } +},655,[3,306,132,36,601,613],"node_modules/@react-navigation/core/src/useNavigationCache.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useFocusedListenersChildrenAdapter; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationBuilderContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useFocusedListenersChildrenAdapter(_ref) { + var navigation = _ref.navigation, + focusedListeners = _ref.focusedListeners; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + addListener = _React$useContext.addListener; + var listener = React.useCallback(function (callback) { + if (navigation.isFocused()) { + for (var _listener of focusedListeners) { + var _listener2 = _listener(callback), + handled = _listener2.handled, + result = _listener2.result; + if (handled) { + return { + handled: handled, + result: result + }; + } + } + return { + handled: true, + result: callback(navigation) + }; + } else { + return { + handled: false, + result: null + }; + } + }, [focusedListeners, navigation]); + React.useEffect(function () { + return addListener == null ? void 0 : addListener('focus', listener); + }, [addListener, listener]); + } +},656,[36,3,601],"node_modules/@react-navigation/core/src/useFocusedListenersChildrenAdapter.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useFocusEvents; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useFocusEvents(_ref) { + var state = _ref.state, + emitter = _ref.emitter; + var navigation = React.useContext(_NavigationContext.default); + var lastFocusedKeyRef = React.useRef(); + var currentFocusedKey = state.routes[state.index].key; + + React.useEffect(function () { + return navigation == null ? void 0 : navigation.addListener('focus', function () { + lastFocusedKeyRef.current = currentFocusedKey; + emitter.emit({ + type: 'focus', + target: currentFocusedKey + }); + }); + }, [currentFocusedKey, emitter, navigation]); + React.useEffect(function () { + return navigation == null ? void 0 : navigation.addListener('blur', function () { + lastFocusedKeyRef.current = undefined; + emitter.emit({ + type: 'blur', + target: currentFocusedKey + }); + }); + }, [currentFocusedKey, emitter, navigation]); + React.useEffect(function () { + var lastFocusedKey = lastFocusedKeyRef.current; + lastFocusedKeyRef.current = currentFocusedKey; + + if (lastFocusedKey === undefined && !navigation) { + emitter.emit({ + type: 'focus', + target: currentFocusedKey + }); + } + + if (lastFocusedKey === currentFocusedKey || !(navigation ? navigation.isFocused() : true)) { + return; + } + if (lastFocusedKey === undefined) { + return; + } + emitter.emit({ + type: 'blur', + target: lastFocusedKey + }); + emitter.emit({ + type: 'focus', + target: currentFocusedKey + }); + }, [currentFocusedKey, emitter, navigation]); + } +},657,[36,3,603],"node_modules/@react-navigation/core/src/useFocusEvents.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigationHelpers; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationContext")); + var _UnhandledActionContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./UnhandledActionContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + _$$_REQUIRE(_dependencyMap[4], "./types").PrivateValueStore; + function useNavigationHelpers(_ref) { + var navigatorId = _ref.id, + onAction = _ref.onAction, + getState = _ref.getState, + emitter = _ref.emitter, + router = _ref.router; + var onUnhandledAction = React.useContext(_UnhandledActionContext.default); + var parentNavigationHelpers = React.useContext(_NavigationContext.default); + return React.useMemo(function () { + var dispatch = function dispatch(op) { + var action = typeof op === 'function' ? op(getState()) : op; + var handled = onAction(action); + if (!handled) { + onUnhandledAction == null ? void 0 : onUnhandledAction(action); + } + }; + var actions = Object.assign({}, router.actionCreators, _$$_REQUIRE(_dependencyMap[5], "@react-navigation/routers").CommonActions); + var helpers = Object.keys(actions).reduce(function (acc, name) { + acc[name] = function () { + return dispatch(actions[name].apply(actions, arguments)); + }; + return acc; + }, {}); + var navigationHelpers = Object.assign({}, parentNavigationHelpers, helpers, { + dispatch: dispatch, + emit: emitter.emit, + isFocused: parentNavigationHelpers ? parentNavigationHelpers.isFocused : function () { + return true; + }, + canGoBack: function canGoBack() { + var state = getState(); + return router.getStateForAction(state, _$$_REQUIRE(_dependencyMap[5], "@react-navigation/routers").CommonActions.goBack(), { + routeNames: state.routeNames, + routeParamList: {}, + routeGetIdList: {} + }) !== null || (parentNavigationHelpers == null ? void 0 : parentNavigationHelpers.canGoBack()) || false; + }, + getId: function getId() { + return navigatorId; + }, + getParent: function getParent(id) { + if (id !== undefined) { + var current = navigationHelpers; + while (current && id !== current.getId()) { + current = current.getParent(); + } + return current; + } + return parentNavigationHelpers; + }, + getState: getState + }); + return navigationHelpers; + }, [navigatorId, emitter.emit, getState, onAction, onUnhandledAction, parentNavigationHelpers, router]); + } +},658,[36,3,603,606,643,613],"node_modules/@react-navigation/core/src/useNavigationHelpers.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useOnAction; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationBuilderContext")); + var _useOnPreventRemove = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./useOnPreventRemove")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useOnAction(_ref) { + var router = _ref.router, + getState = _ref.getState, + setState = _ref.setState, + key = _ref.key, + actionListeners = _ref.actionListeners, + beforeRemoveListeners = _ref.beforeRemoveListeners, + routerConfigOptions = _ref.routerConfigOptions, + emitter = _ref.emitter; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + onActionParent = _React$useContext.onAction, + onRouteFocusParent = _React$useContext.onRouteFocus, + addListenerParent = _React$useContext.addListener, + onDispatchAction = _React$useContext.onDispatchAction; + var routerConfigOptionsRef = React.useRef(routerConfigOptions); + React.useEffect(function () { + routerConfigOptionsRef.current = routerConfigOptions; + }); + var onAction = React.useCallback(function (action) { + var visitedNavigators = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set(); + var state = getState(); + + if (visitedNavigators.has(state.key)) { + return false; + } + visitedNavigators.add(state.key); + if (typeof action.target !== 'string' || action.target === state.key) { + var result = router.getStateForAction(state, action, routerConfigOptionsRef.current); + + result = result === null && action.target === state.key ? state : result; + if (result !== null) { + onDispatchAction(action, state === result); + if (state !== result) { + var isPrevented = (0, _useOnPreventRemove.shouldPreventRemove)(emitter, beforeRemoveListeners, state.routes, result.routes, action); + if (isPrevented) { + return true; + } + setState(result); + } + if (onRouteFocusParent !== undefined) { + var shouldFocus = router.shouldActionChangeFocus(action); + if (shouldFocus && key !== undefined) { + onRouteFocusParent(key); + } + } + return true; + } + } + if (onActionParent !== undefined) { + if (onActionParent(action, visitedNavigators)) { + return true; + } + } + + for (var i = actionListeners.length - 1; i >= 0; i--) { + var listener = actionListeners[i]; + if (listener(action, visitedNavigators)) { + return true; + } + } + return false; + }, [actionListeners, beforeRemoveListeners, emitter, getState, key, onActionParent, onDispatchAction, onRouteFocusParent, router, setState]); + (0, _useOnPreventRemove.default)({ + getState: getState, + emitter: emitter, + beforeRemoveListeners: beforeRemoveListeners + }); + React.useEffect(function () { + return addListenerParent == null ? void 0 : addListenerParent('action', onAction); + }, [addListenerParent, onAction]); + return onAction; + } +},659,[36,3,601,660],"node_modules/@react-navigation/core/src/useOnAction.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useOnPreventRemove; + exports.shouldPreventRemove = void 0; + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationBuilderContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NavigationRouteContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var VISITED_ROUTE_KEYS = Symbol('VISITED_ROUTE_KEYS'); + var shouldPreventRemove = function shouldPreventRemove(emitter, beforeRemoveListeners, currentRoutes, nextRoutes, action) { + var _action$VISITED_ROUTE; + var nextRouteKeys = nextRoutes.map(function (route) { + return route.key; + }); + + var removedRoutes = currentRoutes.filter(function (route) { + return !nextRouteKeys.includes(route.key); + }).reverse(); + var visitedRouteKeys = (_action$VISITED_ROUTE = action[VISITED_ROUTE_KEYS]) != null ? _action$VISITED_ROUTE : new Set(); + var beforeRemoveAction = Object.assign({}, action, (0, _defineProperty2.default)({}, VISITED_ROUTE_KEYS, visitedRouteKeys)); + for (var route of removedRoutes) { + var _beforeRemoveListener; + if (visitedRouteKeys.has(route.key)) { + continue; + } + + var isPrevented = (_beforeRemoveListener = beforeRemoveListeners[route.key]) == null ? void 0 : _beforeRemoveListener.call(beforeRemoveListeners, beforeRemoveAction); + if (isPrevented) { + return true; + } + visitedRouteKeys.add(route.key); + var event = emitter.emit({ + type: 'beforeRemove', + target: route.key, + data: { + action: beforeRemoveAction + }, + canPreventDefault: true + }); + if (event.defaultPrevented) { + return true; + } + } + return false; + }; + exports.shouldPreventRemove = shouldPreventRemove; + function useOnPreventRemove(_ref) { + var getState = _ref.getState, + emitter = _ref.emitter, + beforeRemoveListeners = _ref.beforeRemoveListeners; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + addKeyedListener = _React$useContext.addKeyedListener; + var route = React.useContext(_NavigationRouteContext.default); + var routeKey = route == null ? void 0 : route.key; + React.useEffect(function () { + if (routeKey) { + return addKeyedListener == null ? void 0 : addKeyedListener('beforeRemove', routeKey, function (action) { + var state = getState(); + return shouldPreventRemove(emitter, beforeRemoveListeners, state.routes, [], action); + }); + } + }, [addKeyedListener, beforeRemoveListeners, emitter, getState, routeKey]); + } +},660,[3,306,36,601,604],"node_modules/@react-navigation/core/src/useOnPreventRemove.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useOnGetState; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _isArrayEqual = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./isArrayEqual")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NavigationBuilderContext")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NavigationRouteContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useOnGetState(_ref) { + var getState = _ref.getState, + getStateListeners = _ref.getStateListeners; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + addKeyedListener = _React$useContext.addKeyedListener; + var route = React.useContext(_NavigationRouteContext.default); + var key = route ? route.key : 'root'; + var getRehydratedState = React.useCallback(function () { + var state = getState(); + + var routes = state.routes.map(function (route) { + var _getStateListeners$ro; + var childState = (_getStateListeners$ro = getStateListeners[route.key]) == null ? void 0 : _getStateListeners$ro.call(getStateListeners); + if (route.state === childState) { + return route; + } + return Object.assign({}, route, { + state: childState + }); + }); + if ((0, _isArrayEqual.default)(state.routes, routes)) { + return state; + } + return Object.assign({}, state, { + routes: routes + }); + }, [getState, getStateListeners]); + React.useEffect(function () { + return addKeyedListener == null ? void 0 : addKeyedListener('getState', key, getRehydratedState); + }, [addKeyedListener, getRehydratedState, key]); + } +},661,[36,3,648,601,604],"node_modules/@react-navigation/core/src/useOnGetState.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useOnRouteFocus; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationBuilderContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationBuilderContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useOnRouteFocus(_ref) { + var router = _ref.router, + getState = _ref.getState, + sourceRouteKey = _ref.key, + setState = _ref.setState; + var _React$useContext = React.useContext(_NavigationBuilderContext.default), + onRouteFocusParent = _React$useContext.onRouteFocus; + return React.useCallback(function (key) { + var state = getState(); + var result = router.getStateForRouteFocus(state, key); + if (result !== state) { + setState(result); + } + if (onRouteFocusParent !== undefined && sourceRouteKey !== undefined) { + onRouteFocusParent(sourceRouteKey); + } + }, [getState, onRouteFocusParent, router, setState, sourceRouteKey]); + } +},662,[36,3,601],"node_modules/@react-navigation/core/src/useOnRouteFocus.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useRegisterNavigator; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useRegisterNavigator() { + var _React$useState = React.useState(function () { + return (0, _$$_REQUIRE(_dependencyMap[3], "nanoid/non-secure").nanoid)(); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + key = _React$useState2[0]; + var container = React.useContext(_$$_REQUIRE(_dependencyMap[4], "./EnsureSingleNavigator").SingleNavigatorContext); + if (container === undefined) { + throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\n\nThis can also happen if there are multiple copies of '@react-navigation' packages installed."); + } + React.useEffect(function () { + var register = container.register, + unregister = container.unregister; + register(key); + return function () { + return unregister(key); + }; + }, [container, key]); + return key; + } +},663,[3,19,36,616,599],"node_modules/@react-navigation/core/src/useRegisterNavigator.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-is.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-is.development.js"); + } +},664,[665,666],"node_modules/react-is/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.concurrent_mode") : 60111, + n = b ? Symbol.for("react.forward_ref") : 60112, + p = b ? Symbol.for("react.suspense") : 60113, + q = b ? Symbol.for("react.suspense_list") : 60120, + r = b ? Symbol.for("react.memo") : 60115, + t = b ? Symbol.for("react.lazy") : 60116, + v = b ? Symbol.for("react.block") : 60121, + w = b ? Symbol.for("react.fundamental") : 60117, + x = b ? Symbol.for("react.responder") : 60118, + y = b ? Symbol.for("react.scope") : 60119; + function z(a) { + if ("object" === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (a = a.type, a) { + case l: + case m: + case e: + case g: + case f: + case p: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case n: + case t: + case r: + case h: + return a; + default: + return u; + } + } + case d: + return u; + } + } + } + function A(a) { + return z(a) === m; + } + exports.AsyncMode = l; + exports.ConcurrentMode = m; + exports.ContextConsumer = k; + exports.ContextProvider = h; + exports.Element = c; + exports.ForwardRef = n; + exports.Fragment = e; + exports.Lazy = t; + exports.Memo = r; + exports.Portal = d; + exports.Profiler = g; + exports.StrictMode = f; + exports.Suspense = p; + exports.isAsyncMode = function (a) { + return A(a) || z(a) === l; + }; + exports.isConcurrentMode = A; + exports.isContextConsumer = function (a) { + return z(a) === k; + }; + exports.isContextProvider = function (a) { + return z(a) === h; + }; + exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; + }; + exports.isForwardRef = function (a) { + return z(a) === n; + }; + exports.isFragment = function (a) { + return z(a) === e; + }; + exports.isLazy = function (a) { + return z(a) === t; + }; + exports.isMemo = function (a) { + return z(a) === r; + }; + exports.isPortal = function (a) { + return z(a) === d; + }; + exports.isProfiler = function (a) { + return z(a) === g; + }; + exports.isStrictMode = function (a) { + return z(a) === f; + }; + exports.isSuspense = function (a) { + return z(a) === p; + }; + exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); + }; + exports.typeOf = z; +},665,[],"node_modules/react-is/cjs/react-is.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; + + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); + } + function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + default: + var $$typeofType = type && type.$$typeof; + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + default: + return $$typeof; + } + } + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + return undefined; + } + + var AsyncMode = REACT_ASYNC_MODE_TYPE; + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; + var ContextConsumer = REACT_CONTEXT_TYPE; + var ContextProvider = REACT_PROVIDER_TYPE; + var Element = REACT_ELEMENT_TYPE; + var ForwardRef = REACT_FORWARD_REF_TYPE; + var Fragment = REACT_FRAGMENT_TYPE; + var Lazy = REACT_LAZY_TYPE; + var Memo = REACT_MEMO_TYPE; + var Portal = REACT_PORTAL_TYPE; + var Profiler = REACT_PROFILER_TYPE; + var StrictMode = REACT_STRICT_MODE_TYPE; + var Suspense = REACT_SUSPENSE_TYPE; + var hasWarnedAboutDeprecatedIsAsyncMode = false; + + function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); + } + } + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; + } + function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; + } + function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; + } + function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; + } + function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; + } + function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; + } + function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; + } + function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; + } + function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; + } + function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; + } + function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; + } + function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; + } + exports.AsyncMode = AsyncMode; + exports.ConcurrentMode = ConcurrentMode; + exports.ContextConsumer = ContextConsumer; + exports.ContextProvider = ContextProvider; + exports.Element = Element; + exports.ForwardRef = ForwardRef; + exports.Fragment = Fragment; + exports.Lazy = Lazy; + exports.Memo = Memo; + exports.Portal = Portal; + exports.Profiler = Profiler; + exports.StrictMode = StrictMode; + exports.Suspense = Suspense; + exports.isAsyncMode = isAsyncMode; + exports.isConcurrentMode = isConcurrentMode; + exports.isContextConsumer = isContextConsumer; + exports.isContextProvider = isContextProvider; + exports.isElement = isElement; + exports.isForwardRef = isForwardRef; + exports.isFragment = isFragment; + exports.isLazy = isLazy; + exports.isMemo = isMemo; + exports.isPortal = isPortal; + exports.isProfiler = isProfiler; + exports.isStrictMode = isStrictMode; + exports.isSuspense = isSuspense; + exports.isValidElementType = isValidElementType; + exports.typeOf = typeOf; + })(); + } +},666,[],"node_modules/react-is/cjs/react-is.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigationContainerRef; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _createNavigationContainerRef = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./createNavigationContainerRef")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useNavigationContainerRef() { + var navigation = React.useRef(null); + if (navigation.current == null) { + navigation.current = (0, _createNavigationContainerRef.default)(); + } + return navigation.current; + } +},667,[36,3,612],"node_modules/@react-navigation/core/src/useNavigationContainerRef.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useNavigationState; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _useNavigation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./useNavigation")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useNavigationState(selector) { + var navigation = (0, _useNavigation.default)(); + + var _React$useState = React.useState(function () { + return selector(navigation.getState()); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + setResult = _React$useState2[1]; + + var selectorRef = React.useRef(selector); + React.useEffect(function () { + selectorRef.current = selector; + }); + React.useEffect(function () { + var unsubscribe = navigation.addListener('state', function (e) { + setResult(selectorRef.current(e.data.state)); + }); + return unsubscribe; + }, [navigation]); + return selector(navigation.getState()); + } +},668,[3,19,36,645],"node_modules/@react-navigation/core/src/useNavigationState.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = usePreventRemove; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _useLatestCallback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "use-latest-callback")); + var _useNavigation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./useNavigation")); + var _usePreventRemoveContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./usePreventRemoveContext")); + var _useRoute2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./useRoute")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function usePreventRemove(preventRemove, callback) { + var _React$useState = React.useState(function () { + return (0, _$$_REQUIRE(_dependencyMap[7], "nanoid/non-secure").nanoid)(); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + id = _React$useState2[0]; + var navigation = (0, _useNavigation.default)(); + var _useRoute = (0, _useRoute2.default)(), + routeKey = _useRoute.key; + var _usePreventRemoveCont = (0, _usePreventRemoveContext.default)(), + setPreventRemove = _usePreventRemoveCont.setPreventRemove; + React.useEffect(function () { + setPreventRemove(id, routeKey, preventRemove); + return function () { + setPreventRemove(id, routeKey, false); + }; + }, [setPreventRemove, id, routeKey, preventRemove]); + var beforeRemoveListener = (0, _useLatestCallback.default)(function (e) { + if (!preventRemove) { + return; + } + e.preventDefault(); + callback({ + data: e.data + }); + }); + React.useEffect(function () { + return navigation == null ? void 0 : navigation.addListener('beforeRemove', beforeRemoveListener); + }, [navigation, beforeRemoveListener]); + } +},669,[3,19,36,642,645,670,671,616],"node_modules/@react-navigation/core/src/usePreventRemove.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = usePreventRemoveContext; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _PreventRemoveContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./PreventRemoveContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function usePreventRemoveContext() { + var value = React.useContext(_PreventRemoveContext.default); + if (value == null) { + throw new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?"); + } + return value; + } +},670,[36,3,640],"node_modules/@react-navigation/core/src/usePreventRemoveContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useRoute; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _NavigationRouteContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NavigationRouteContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useRoute() { + var route = React.useContext(_NavigationRouteContext.default); + if (route === undefined) { + throw new Error("Couldn't find a route object. Is your component inside a screen in a navigator?"); + } + return route; + } +},671,[36,3,604],"node_modules/@react-navigation/core/src/useRoute.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _LinkingContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./LinkingContext")); + var _DefaultTheme = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./theming/DefaultTheme")); + var _ThemeProvider = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./theming/ThemeProvider")); + var _useBackButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./useBackButton")); + var _useDocumentTitle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./useDocumentTitle")); + var _useLinking2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./useLinking")); + var _useThenable3 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./useThenable")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native/src/NavigationContainer.tsx"; + var _excluded = ["theme", "linking", "fallback", "documentTitle", "onReady"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + global.REACT_NAVIGATION_DEVTOOLS = new WeakMap(); + function NavigationContainerInner(_ref, ref) { + var _ref$theme = _ref.theme, + theme = _ref$theme === void 0 ? _DefaultTheme.default : _ref$theme, + linking = _ref.linking, + _ref$fallback = _ref.fallback, + fallback = _ref$fallback === void 0 ? null : _ref$fallback, + documentTitle = _ref.documentTitle, + onReady = _ref.onReady, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var isLinkingEnabled = linking ? linking.enabled !== false : false; + if (linking != null && linking.config) { + (0, _$$_REQUIRE(_dependencyMap[11], "@react-navigation/core").validatePathConfig)(linking.config); + } + var refContainer = React.useRef(null); + (0, _useBackButton.default)(refContainer); + (0, _useDocumentTitle.default)(refContainer, documentTitle); + var _useLinking = (0, _useLinking2.default)(refContainer, Object.assign({ + independent: rest.independent, + enabled: isLinkingEnabled, + prefixes: [] + }, linking)), + getInitialState = _useLinking.getInitialState; + + React.useEffect(function () { + if (refContainer.current) { + REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, { + get linking() { + var _linking$prefixes, _linking$getStateFrom, _linking$getPathFromS, _linking$getActionFro; + return Object.assign({}, linking, { + enabled: isLinkingEnabled, + prefixes: (_linking$prefixes = linking == null ? void 0 : linking.prefixes) != null ? _linking$prefixes : [], + getStateFromPath: (_linking$getStateFrom = linking == null ? void 0 : linking.getStateFromPath) != null ? _linking$getStateFrom : _$$_REQUIRE(_dependencyMap[11], "@react-navigation/core").getStateFromPath, + getPathFromState: (_linking$getPathFromS = linking == null ? void 0 : linking.getPathFromState) != null ? _linking$getPathFromS : _$$_REQUIRE(_dependencyMap[11], "@react-navigation/core").getPathFromState, + getActionFromState: (_linking$getActionFro = linking == null ? void 0 : linking.getActionFromState) != null ? _linking$getActionFro : _$$_REQUIRE(_dependencyMap[11], "@react-navigation/core").getActionFromState + }); + } + }); + } + }); + var _useThenable = (0, _useThenable3.default)(getInitialState), + _useThenable2 = (0, _slicedToArray2.default)(_useThenable, 2), + isResolved = _useThenable2[0], + initialState = _useThenable2[1]; + React.useImperativeHandle(ref, function () { + return refContainer.current; + }); + var linkingContext = React.useMemo(function () { + return { + options: linking + }; + }, [linking]); + var isReady = rest.initialState != null || !isLinkingEnabled || isResolved; + var onReadyRef = React.useRef(onReady); + React.useEffect(function () { + onReadyRef.current = onReady; + }); + React.useEffect(function () { + if (isReady) { + onReadyRef.current == null ? void 0 : onReadyRef.current(); + } + }, [isReady]); + if (!isReady) { + return fallback; + } + return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LinkingContext.default.Provider, { + value: linkingContext, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_ThemeProvider.default, { + value: theme, + children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "@react-navigation/core").BaseNavigationContainer, Object.assign({}, rest, { + initialState: rest.initialState == null ? initialState : rest.initialState, + ref: refContainer + })) + }) + }); + } + var NavigationContainer = React.forwardRef(NavigationContainerInner); + var _default = NavigationContainer; + exports.default = _default; +},672,[3,19,132,36,593,673,674,676,677,678,680,595,73],"node_modules/@react-navigation/native/src/NavigationContainer.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var DefaultTheme = { + dark: false, + colors: { + primary: 'rgb(0, 122, 255)', + background: 'rgb(242, 242, 242)', + card: 'rgb(255, 255, 255)', + text: 'rgb(28, 28, 30)', + border: 'rgb(216, 216, 216)', + notification: 'rgb(255, 59, 48)' + } + }; + var _default = DefaultTheme; + exports.default = _default; +},673,[],"node_modules/@react-navigation/native/src/theming/DefaultTheme.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = ThemeProvider; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _ThemeContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./ThemeContext")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native/src/theming/ThemeProvider.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function ThemeProvider(_ref) { + var value = _ref.value, + children = _ref.children; + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_ThemeContext.default.Provider, { + value: value, + children: children + }); + } +},674,[36,3,675,73],"node_modules/@react-navigation/native/src/theming/ThemeProvider.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _DefaultTheme = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./DefaultTheme")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ThemeContext = React.createContext(_DefaultTheme.default); + ThemeContext.displayName = 'ThemeContext'; + var _default = ThemeContext; + exports.default = _default; +},675,[36,3,673],"node_modules/@react-navigation/native/src/theming/ThemeContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useBackButton; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useBackButton(ref) { + React.useEffect(function () { + var subscription = _reactNative.BackHandler.addEventListener('hardwareBackPress', function () { + var navigation = ref.current; + if (navigation == null) { + return false; + } + if (navigation.canGoBack()) { + navigation.goBack(); + return true; + } + return false; + }); + return function () { + return subscription.remove(); + }; + }, [ref]); + } +},676,[36,1],"node_modules/@react-navigation/native/src/useBackButton.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useDocumentTitle; + function useDocumentTitle() { + } +},677,[],"node_modules/@react-navigation/native/src/useDocumentTitle.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useLinking; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _extractPathFromURL = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./extractPathFromURL")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var linkingHandlers = []; + function useLinking(ref, _ref) { + var independent = _ref.independent, + _ref$enabled = _ref.enabled, + enabled = _ref$enabled === void 0 ? true : _ref$enabled, + prefixes = _ref.prefixes, + filter = _ref.filter, + config = _ref.config, + _ref$getInitialURL = _ref.getInitialURL, + getInitialURL = _ref$getInitialURL === void 0 ? function () { + return Promise.race([_reactNative.Linking.getInitialURL(), new Promise(function (resolve) { + return ( + setTimeout(resolve, 150) + ); + })]); + } : _ref$getInitialURL, + _ref$subscribe = _ref.subscribe, + subscribe = _ref$subscribe === void 0 ? function (listener) { + var _Linking$removeEventL; + var callback = function callback(_ref2) { + var url = _ref2.url; + return listener(url); + }; + var subscription = _reactNative.Linking.addEventListener('url', callback); + + var removeEventListener = (_Linking$removeEventL = _reactNative.Linking.removeEventListener) == null ? void 0 : _Linking$removeEventL.bind(_reactNative.Linking); + return function () { + if (subscription != null && subscription.remove) { + subscription.remove(); + } else { + removeEventListener == null ? void 0 : removeEventListener('url', callback); + } + }; + } : _ref$subscribe, + _ref$getStateFromPath = _ref.getStateFromPath, + getStateFromPath = _ref$getStateFromPath === void 0 ? _$$_REQUIRE(_dependencyMap[4], "@react-navigation/core").getStateFromPath : _ref$getStateFromPath, + _ref$getActionFromSta = _ref.getActionFromState, + getActionFromState = _ref$getActionFromSta === void 0 ? _$$_REQUIRE(_dependencyMap[4], "@react-navigation/core").getActionFromState : _ref$getActionFromSta; + React.useEffect(function () { + if (process.env.NODE_ENV === 'production') { + return undefined; + } + if (independent) { + return undefined; + } + if (enabled !== false && linkingHandlers.length) { + console.error(['Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:', "- You don't have multiple NavigationContainers in the app each with 'linking' enabled", '- Only a single instance of the root component is rendered', _reactNative.Platform.OS === 'android' ? "- You have set 'android:launchMode=singleTask' in the '' section of the 'AndroidManifest.xml' file to avoid launching multiple instances" : ''].join('\n').trim()); + } + var handler = Symbol(); + if (enabled !== false) { + linkingHandlers.push(handler); + } + return function () { + var index = linkingHandlers.indexOf(handler); + if (index > -1) { + linkingHandlers.splice(index, 1); + } + }; + }, [enabled, independent]); + + var enabledRef = React.useRef(enabled); + var prefixesRef = React.useRef(prefixes); + var filterRef = React.useRef(filter); + var configRef = React.useRef(config); + var getInitialURLRef = React.useRef(getInitialURL); + var getStateFromPathRef = React.useRef(getStateFromPath); + var getActionFromStateRef = React.useRef(getActionFromState); + React.useEffect(function () { + enabledRef.current = enabled; + prefixesRef.current = prefixes; + filterRef.current = filter; + configRef.current = config; + getInitialURLRef.current = getInitialURL; + getStateFromPathRef.current = getStateFromPath; + getActionFromStateRef.current = getActionFromState; + }); + var getStateFromURL = React.useCallback(function (url) { + if (!url || filterRef.current && !filterRef.current(url)) { + return undefined; + } + var path = (0, _extractPathFromURL.default)(prefixesRef.current, url); + return path !== undefined ? getStateFromPathRef.current(path, configRef.current) : undefined; + }, []); + var getInitialState = React.useCallback(function () { + var state; + if (enabledRef.current) { + var url = getInitialURLRef.current(); + if (url != null && typeof url !== 'string') { + return url.then(function (url) { + var state = getStateFromURL(url); + return state; + }); + } + state = getStateFromURL(url); + } + var thenable = { + then: function then(onfulfilled) { + return Promise.resolve(onfulfilled ? onfulfilled(state) : state); + }, + catch: function _catch() { + return thenable; + } + }; + return thenable; + }, [getStateFromURL]); + React.useEffect(function () { + var listener = function listener(url) { + if (!enabled) { + return; + } + var navigation = ref.current; + var state = navigation ? getStateFromURL(url) : undefined; + if (navigation && state) { + var rootState = navigation.getRootState(); + if (state.routes.some(function (r) { + return !(rootState != null && rootState.routeNames.includes(r.name)); + })) { + console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration."); + return; + } + var action = getActionFromStateRef.current(state, configRef.current); + if (action !== undefined) { + try { + navigation.dispatch(action); + } catch (e) { + console.warn("An error occurred when trying to handle the link '" + url + "': " + (typeof e === 'object' && e != null && 'message' in e ? + e.message : e)); + } + } else { + navigation.resetRoot(state); + } + } + }; + return subscribe(listener); + }, [enabled, getStateFromURL, ref, subscribe]); + return { + getInitialState: getInitialState + }; + } +},678,[36,1,3,679,595],"node_modules/@react-navigation/native/src/useLinking.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = extractPathFromURL; + var _escapeStringRegexp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "escape-string-regexp")); + function extractPathFromURL(prefixes, url) { + for (var prefix of prefixes) { + var _prefix$match$, _prefix$match; + var protocol = (_prefix$match$ = (_prefix$match = prefix.match(/^[^:]+:/)) == null ? void 0 : _prefix$match[0]) != null ? _prefix$match$ : ''; + var host = prefix.replace(new RegExp("^" + (0, _escapeStringRegexp.default)(protocol)), '').replace(/\/+/g, '/').replace(/^\//, ''); + + var prefixRegex = new RegExp("^" + (0, _escapeStringRegexp.default)(protocol) + "(/)*" + host.split('.').map(function (it) { + return it === '*' ? '[^/]+' : (0, _escapeStringRegexp.default)(it); + }).join('\\.')); + var normalizedURL = url.replace(/\/+/g, '/'); + if (prefixRegex.test(normalizedURL)) { + return normalizedURL.replace(prefixRegex, ''); + } + } + return undefined; + } +},679,[3,638],"node_modules/@react-navigation/native/src/extractPathFromURL.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useThenable; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useThenable(create) { + var _React$useState = React.useState(create), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + promise = _React$useState2[0]; + var initialState = [false, undefined]; + + promise.then(function (result) { + initialState = [true, result]; + }); + var _React$useState3 = React.useState(initialState), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + state = _React$useState4[0], + setState = _React$useState4[1]; + var _state = (0, _slicedToArray2.default)(state, 1), + resolved = _state[0]; + React.useEffect(function () { + var cancelled = false; + var resolve = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + var result; + try { + result = yield promise; + } finally { + if (!cancelled) { + setState([true, result]); + } + } + }); + return function resolve() { + return _ref.apply(this, arguments); + }; + }(); + if (!resolved) { + resolve(); + } + return function () { + cancelled = true; + }; + }, [promise, resolved]); + return state; + } +},680,[3,65,19,36],"node_modules/@react-navigation/native/src/useThenable.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _ServerContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./ServerContext")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native/src/ServerContainer.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = React.forwardRef(function ServerContainer(_ref, ref) { + var children = _ref.children, + location = _ref.location; + React.useEffect(function () { + console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR."); + }, []); + var current = {}; + if (ref) { + var value = { + getCurrentOptions: function getCurrentOptions() { + return current.options; + } + }; + + if (typeof ref === 'function') { + ref(value); + } else { + ref.current = value; + } + } + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_ServerContext.default.Provider, { + value: { + location: location + }, + children: (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[4], "@react-navigation/core").CurrentRenderContext.Provider, { + value: current, + children: children + }) + }); + }); + exports.default = _default; +},681,[36,3,682,73,595],"node_modules/@react-navigation/native/src/ServerContainer.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ServerContext = React.createContext(undefined); + var _default = ServerContext; + exports.default = _default; +},682,[36],"node_modules/@react-navigation/native/src/ServerContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var DarkTheme = { + dark: true, + colors: { + primary: 'rgb(10, 132, 255)', + background: 'rgb(1, 1, 1)', + card: 'rgb(18, 18, 18)', + text: 'rgb(229, 229, 231)', + border: 'rgb(39, 39, 41)', + notification: 'rgb(255, 69, 58)' + } + }; + var _default = DarkTheme; + exports.default = _default; +},683,[],"node_modules/@react-navigation/native/src/theming/DarkTheme.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useTheme; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _ThemeContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./ThemeContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useTheme() { + var theme = React.useContext(_ThemeContext.default); + return theme; + } +},684,[36,3,675],"node_modules/@react-navigation/native/src/theming/useTheme.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},685,[],"node_modules/@react-navigation/native/src/types.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useLinkBuilder; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _LinkingContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./LinkingContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var getRootStateForNavigate = function getRootStateForNavigate(navigation, state) { + var parent = navigation.getParent(); + if (parent) { + var parentState = parent.getState(); + return getRootStateForNavigate(parent, { + index: 0, + routes: [Object.assign({}, parentState.routes[parentState.index], { + state: state + })] + }); + } + return state; + }; + + function useLinkBuilder() { + var navigation = React.useContext(_$$_REQUIRE(_dependencyMap[3], "@react-navigation/core").NavigationHelpersContext); + var linking = React.useContext(_LinkingContext.default); + var buildLink = React.useCallback(function (name, params) { + var options = linking.options; + if ((options == null ? void 0 : options.enabled) === false) { + return undefined; + } + var state = navigation ? getRootStateForNavigate(navigation, { + index: 0, + routes: [{ + name: name, + params: params + }] + }) : + { + index: 0, + routes: [{ + name: name, + params: params + }] + }; + var path = options != null && options.getPathFromState ? options.getPathFromState(state, options == null ? void 0 : options.config) : (0, _$$_REQUIRE(_dependencyMap[3], "@react-navigation/core").getPathFromState)(state, options == null ? void 0 : options.config); + return path; + }, [linking, navigation]); + return buildLink; + } +},686,[36,3,593,595],"node_modules/@react-navigation/native/src/useLinkBuilder.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useScrollToTop; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getScrollableNode(ref) { + if (ref.current == null) { + return null; + } + if ('scrollToTop' in ref.current || 'scrollTo' in ref.current || 'scrollToOffset' in ref.current || 'scrollResponderScrollTo' in ref.current) { + return ref.current; + } else if ('getScrollResponder' in ref.current) { + return ref.current.getScrollResponder(); + } else if ('getNode' in ref.current) { + return ref.current.getNode(); + } else { + return ref.current; + } + } + function useScrollToTop(ref) { + var navigation = (0, _$$_REQUIRE(_dependencyMap[1], "@react-navigation/core").useNavigation)(); + var route = (0, _$$_REQUIRE(_dependencyMap[1], "@react-navigation/core").useRoute)(); + React.useEffect(function () { + var current = navigation; + + while (current && current.getState().type !== 'tab') { + current = current.getParent(); + } + if (!current) { + return; + } + var unsubscribe = current.addListener( + 'tabPress', function (e) { + var isFocused = navigation.isFocused(); + + var isFirst = navigation === current || navigation.getState().routes[0].key === route.key; + + requestAnimationFrame(function () { + var scrollable = getScrollableNode(ref); + if (isFocused && isFirst && scrollable && !e.defaultPrevented) { + if ('scrollToTop' in scrollable) { + scrollable.scrollToTop(); + } else if ('scrollTo' in scrollable) { + scrollable.scrollTo({ + x: 0, + y: 0, + animated: true + }); + } else if ('scrollToOffset' in scrollable) { + scrollable.scrollToOffset({ + offset: 0, + animated: true + }); + } else if ('scrollResponderScrollTo' in scrollable) { + scrollable.scrollResponderScrollTo({ + y: 0, + animated: true + }); + } + } + }); + }); + return unsubscribe; + }, [navigation, ref, route.key]); + } +},687,[36,595],"node_modules/@react-navigation/native/src/useScrollToTop.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _AppContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "react-native/Libraries/ReactNative/AppContainer")); + var _excluded = ["stackPresentation"]; + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native-stack/src/views/DebugContainer.native.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Container = _reactNative.View; + if (process.env.NODE_ENV !== 'production') { + var DebugContainer = function DebugContainer(props) { + var stackPresentation = props.stackPresentation, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + if (_reactNative.Platform.OS === 'ios' && stackPresentation !== 'push') { + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_AppContainer.default, { + children: (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, rest)) + }); + } + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, rest)); + }; + Container = DebugContainer; + } + var _default = Container; + exports.default = _default; +},688,[3,132,36,1,359,73],"node_modules/@react-navigation/native-stack/src/views/DebugContainer.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = HeaderConfig; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/native-stack/src/views/HeaderConfig.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function HeaderConfig(_ref) { + var _ref2, _headerTitleStyleFlat, _headerStyleFlattened; + var headerHeight = _ref.headerHeight, + headerBackImageSource = _ref.headerBackImageSource, + headerBackButtonMenuEnabled = _ref.headerBackButtonMenuEnabled, + headerBackTitle = _ref.headerBackTitle, + headerBackTitleStyle = _ref.headerBackTitleStyle, + _ref$headerBackTitleV = _ref.headerBackTitleVisible, + headerBackTitleVisible = _ref$headerBackTitleV === void 0 ? true : _ref$headerBackTitleV, + headerBackVisible = _ref.headerBackVisible, + headerShadowVisible = _ref.headerShadowVisible, + headerLargeStyle = _ref.headerLargeStyle, + headerLargeTitle = _ref.headerLargeTitle, + headerLargeTitleShadowVisible = _ref.headerLargeTitleShadowVisible, + headerLargeTitleStyle = _ref.headerLargeTitleStyle, + headerBackground = _ref.headerBackground, + headerLeft = _ref.headerLeft, + headerRight = _ref.headerRight, + headerShown = _ref.headerShown, + headerStyle = _ref.headerStyle, + headerBlurEffect = _ref.headerBlurEffect, + headerTintColor = _ref.headerTintColor, + headerTitle = _ref.headerTitle, + headerTitleAlign = _ref.headerTitleAlign, + headerTitleStyle = _ref.headerTitleStyle, + headerTransparent = _ref.headerTransparent, + headerSearchBarOptions = _ref.headerSearchBarOptions, + headerTopInsetEnabled = _ref.headerTopInsetEnabled, + route = _ref.route, + title = _ref.title, + canGoBack = _ref.canGoBack; + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + var tintColor = headerTintColor != null ? headerTintColor : _reactNative.Platform.OS === 'ios' ? colors.primary : colors.text; + var headerBackTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerBackTitleStyle) || {}; + var headerLargeTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeTitleStyle) || {}; + var headerTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerTitleStyle) || {}; + var headerStyleFlattened = _reactNative.StyleSheet.flatten(headerStyle) || {}; + var headerLargeStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeStyle) || {}; + var _processFonts = (0, _$$_REQUIRE(_dependencyMap[5], "./FontProcessor").processFonts)([headerBackTitleStyleFlattened.fontFamily, headerLargeTitleStyleFlattened.fontFamily, headerTitleStyleFlattened.fontFamily]), + _processFonts2 = (0, _slicedToArray2.default)(_processFonts, 3), + backTitleFontFamily = _processFonts2[0], + largeTitleFontFamily = _processFonts2[1], + titleFontFamily = _processFonts2[2]; + var titleText = (0, _$$_REQUIRE(_dependencyMap[6], "@react-navigation/elements").getHeaderTitle)({ + title: title, + headerTitle: headerTitle + }, route.name); + var titleColor = (_ref2 = (_headerTitleStyleFlat = headerTitleStyleFlattened.color) != null ? _headerTitleStyleFlat : headerTintColor) != null ? _ref2 : colors.text; + var titleFontSize = headerTitleStyleFlattened.fontSize; + var titleFontWeight = headerTitleStyleFlattened.fontWeight; + var headerTitleStyleSupported = { + color: titleColor + }; + if (headerTitleStyleFlattened.fontFamily != null) { + headerTitleStyleSupported.fontFamily = headerTitleStyleFlattened.fontFamily; + } + if (titleFontSize != null) { + headerTitleStyleSupported.fontSize = titleFontSize; + } + if (titleFontWeight != null) { + headerTitleStyleSupported.fontWeight = titleFontWeight; + } + var headerLeftElement = headerLeft == null ? void 0 : headerLeft({ + tintColor: tintColor, + canGoBack: canGoBack, + label: headerBackTitle + }); + var headerRightElement = headerRight == null ? void 0 : headerRight({ + tintColor: tintColor, + canGoBack: canGoBack + }); + var headerTitleElement = typeof headerTitle === 'function' ? headerTitle({ + tintColor: tintColor, + children: titleText + }) : null; + var supportsHeaderSearchBar = typeof _$$_REQUIRE(_dependencyMap[7], "react-native-screens").isSearchBarAvailableForCurrentPlatform === 'boolean' ? _$$_REQUIRE(_dependencyMap[7], "react-native-screens").isSearchBarAvailableForCurrentPlatform : + _reactNative.Platform.OS === 'ios' && _$$_REQUIRE(_dependencyMap[7], "react-native-screens").SearchBar != null; + var hasHeaderSearchBar = supportsHeaderSearchBar && headerSearchBarOptions != null; + if (headerSearchBarOptions != null && !supportsHeaderSearchBar) { + throw new Error("The current version of 'react-native-screens' doesn't support SearchBar in the header. Please update to the latest version to use this option."); + } + + var backButtonInCustomView = headerBackVisible ? headerLeftElement != null : _reactNative.Platform.OS === 'android' && headerTitleElement != null; + var translucent = headerBackground != null || headerTransparent || + (hasHeaderSearchBar || headerLargeTitle) && _reactNative.Platform.OS === 'ios' && headerTransparent !== false; + return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").Fragment, { + children: [headerBackground != null ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.background, headerTransparent ? styles.translucent : null, { + height: headerHeight + }], + children: headerBackground() + }) : null, (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderConfig, { + backButtonInCustomView: backButtonInCustomView, + backgroundColor: (_headerStyleFlattened = headerStyleFlattened.backgroundColor) != null ? _headerStyleFlattened : headerBackground != null || headerTransparent ? 'transparent' : colors.card, + backTitle: headerBackTitleVisible ? headerBackTitle : ' ', + backTitleFontFamily: backTitleFontFamily, + backTitleFontSize: headerBackTitleStyleFlattened.fontSize, + blurEffect: headerBlurEffect, + color: tintColor, + direction: _reactNative.I18nManager.getConstants().isRTL ? 'rtl' : 'ltr', + disableBackButtonMenu: headerBackButtonMenuEnabled === false, + hidden: headerShown === false, + hideBackButton: headerBackVisible === false, + hideShadow: headerShadowVisible === false || headerBackground != null || headerTransparent, + largeTitle: headerLargeTitle, + largeTitleBackgroundColor: headerLargeStyleFlattened.backgroundColor, + largeTitleColor: headerLargeTitleStyleFlattened.color, + largeTitleFontFamily: largeTitleFontFamily, + largeTitleFontSize: headerLargeTitleStyleFlattened.fontSize, + largeTitleFontWeight: headerLargeTitleStyleFlattened.fontWeight, + largeTitleHideShadow: headerLargeTitleShadowVisible === false, + title: titleText, + titleColor: titleColor, + titleFontFamily: titleFontFamily, + titleFontSize: titleFontSize, + titleFontWeight: titleFontWeight, + topInsetEnabled: headerTopInsetEnabled, + translucent: + translucent === true, + children: [_reactNative.Platform.OS === 'ios' ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").Fragment, { + children: [headerLeftElement != null ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderLeftView, { + children: headerLeftElement + }) : null, headerTitleElement != null ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderCenterView, { + children: headerTitleElement + }) : null] + }) : (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").Fragment, { + children: [headerLeftElement != null || typeof headerTitle === 'function' ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderLeftView, { + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: styles.row, + children: [headerLeftElement, headerTitleAlign !== 'center' ? typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[6], "@react-navigation/elements").HeaderTitle, { + tintColor: tintColor, + style: headerTitleStyleSupported, + children: titleText + }) : null] + }) + }) : null, headerTitleAlign === 'center' ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderCenterView, { + children: typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[6], "@react-navigation/elements").HeaderTitle, { + tintColor: tintColor, + style: headerTitleStyleSupported, + children: titleText + }) + }) : null] + }), headerBackImageSource !== undefined ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderBackButtonImage, { + source: headerBackImageSource + }) : null, headerRightElement != null ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderRightView, { + children: headerRightElement + }) : null, hasHeaderSearchBar ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").ScreenStackHeaderSearchBarView, { + children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[7], "react-native-screens").SearchBar, Object.assign({}, headerSearchBarOptions)) + }) : null] + })] + }); + } + var styles = _reactNative.StyleSheet.create({ + row: { + flexDirection: 'row', + alignItems: 'center' + }, + translucent: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + zIndex: 1 + }, + background: { + overflow: 'hidden' + } + }); +},689,[3,19,36,1,590,690,691,725,73],"node_modules/@react-navigation/native-stack/src/views/HeaderConfig.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.processFonts = processFonts; + var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/Components/View/ReactNativeStyleAttributes")); + + function processFonts(fontFamilies) { + var _ReactNativeStyleAttr; + var fontFamilyProcessor = (_ReactNativeStyleAttr = _ReactNativeStyleAttributes.default.fontFamily) == null ? void 0 : _ReactNativeStyleAttr.process; + if (typeof fontFamilyProcessor === 'function') { + return fontFamilies.map(fontFamilyProcessor); + } + return fontFamilies; + } +},690,[3,185],"node_modules/@react-navigation/native-stack/src/views/FontProcessor.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = { + Assets: true, + Background: true, + getDefaultHeaderHeight: true, + getHeaderTitle: true, + Header: true, + HeaderBackButton: true, + HeaderBackContext: true, + HeaderBackground: true, + HeaderHeightContext: true, + HeaderShownContext: true, + HeaderTitle: true, + useHeaderHeight: true, + MissingIcon: true, + PlatformPressable: true, + ResourceSavingView: true, + SafeAreaProviderCompat: true, + Screen: true + }; + exports.Assets = void 0; + Object.defineProperty(exports, "Background", { + enumerable: true, + get: function get() { + return _Background.default; + } + }); + Object.defineProperty(exports, "Header", { + enumerable: true, + get: function get() { + return _Header.default; + } + }); + Object.defineProperty(exports, "HeaderBackButton", { + enumerable: true, + get: function get() { + return _HeaderBackButton.default; + } + }); + Object.defineProperty(exports, "HeaderBackContext", { + enumerable: true, + get: function get() { + return _HeaderBackContext.default; + } + }); + Object.defineProperty(exports, "HeaderBackground", { + enumerable: true, + get: function get() { + return _HeaderBackground.default; + } + }); + Object.defineProperty(exports, "HeaderHeightContext", { + enumerable: true, + get: function get() { + return _HeaderHeightContext.default; + } + }); + Object.defineProperty(exports, "HeaderShownContext", { + enumerable: true, + get: function get() { + return _HeaderShownContext.default; + } + }); + Object.defineProperty(exports, "HeaderTitle", { + enumerable: true, + get: function get() { + return _HeaderTitle.default; + } + }); + Object.defineProperty(exports, "MissingIcon", { + enumerable: true, + get: function get() { + return _MissingIcon.default; + } + }); + Object.defineProperty(exports, "PlatformPressable", { + enumerable: true, + get: function get() { + return _PlatformPressable.default; + } + }); + Object.defineProperty(exports, "ResourceSavingView", { + enumerable: true, + get: function get() { + return _ResourceSavingView.default; + } + }); + Object.defineProperty(exports, "SafeAreaProviderCompat", { + enumerable: true, + get: function get() { + return _SafeAreaProviderCompat.default; + } + }); + Object.defineProperty(exports, "Screen", { + enumerable: true, + get: function get() { + return _Screen.default; + } + }); + Object.defineProperty(exports, "getDefaultHeaderHeight", { + enumerable: true, + get: function get() { + return _getDefaultHeaderHeight.default; + } + }); + Object.defineProperty(exports, "getHeaderTitle", { + enumerable: true, + get: function get() { + return _getHeaderTitle.default; + } + }); + Object.defineProperty(exports, "useHeaderHeight", { + enumerable: true, + get: function get() { + return _useHeaderHeight.default; + } + }); + var _Background = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Background")); + var _getDefaultHeaderHeight = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./Header/getDefaultHeaderHeight")); + var _getHeaderTitle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./Header/getHeaderTitle")); + var _Header = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./Header/Header")); + var _HeaderBackButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Header/HeaderBackButton")); + var _HeaderBackContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./Header/HeaderBackContext")); + var _HeaderBackground = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./Header/HeaderBackground")); + var _HeaderHeightContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./Header/HeaderHeightContext")); + var _HeaderShownContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./Header/HeaderShownContext")); + var _HeaderTitle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./Header/HeaderTitle")); + var _useHeaderHeight = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./Header/useHeaderHeight")); + var _MissingIcon = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./MissingIcon")); + var _PlatformPressable = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./PlatformPressable")); + var _ResourceSavingView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./ResourceSavingView")); + var _SafeAreaProviderCompat = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./SafeAreaProviderCompat")); + var _Screen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./Screen")); + Object.keys(_$$_REQUIRE(_dependencyMap[17], "./types")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[17], "./types")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[17], "./types")[key]; + } + }); + }); + var Assets = [ + _$$_REQUIRE(_dependencyMap[18], "./assets/back-icon.png"), + _$$_REQUIRE(_dependencyMap[19], "./assets/back-icon-mask.png")]; + exports.Assets = Assets; +},691,[3,692,693,694,695,709,717,696,718,697,699,719,720,714,721,722,723,724,715,716],"node_modules/@react-navigation/elements/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Background; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Background.tsx"; + var _excluded = ["style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function Background(_ref) { + var style = _ref.style, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, rest, { + style: [{ + flex: 1, + backgroundColor: colors.background + }, style] + })); + } +},692,[3,132,36,1,590,73],"node_modules/@react-navigation/elements/src/Background.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getDefaultHeaderHeight; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + function getDefaultHeaderHeight(layout, modalPresentation, statusBarHeight) { + var headerHeight; + var isLandscape = layout.width > layout.height; + if (_reactNative.Platform.OS === 'ios') { + if (_reactNative.Platform.isPad || _reactNative.Platform.isTVOS) { + if (modalPresentation) { + headerHeight = 56; + } else { + headerHeight = 50; + } + } else { + if (isLandscape) { + headerHeight = 32; + } else { + if (modalPresentation) { + headerHeight = 56; + } else { + headerHeight = 44; + } + } + } + } else if (_reactNative.Platform.OS === 'android') { + headerHeight = 56; + } else { + headerHeight = 64; + } + return headerHeight + statusBarHeight; + } +},693,[1],"node_modules/@react-navigation/elements/src/Header/getDefaultHeaderHeight.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getHeaderTitle; + function getHeaderTitle(options, fallback) { + return typeof options.headerTitle === 'string' ? options.headerTitle : options.title !== undefined ? options.title : fallback; + } +},694,[],"node_modules/@react-navigation/elements/src/Header/getHeaderTitle.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Header; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _getDefaultHeaderHeight = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./getDefaultHeaderHeight")); + var _HeaderBackground = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./HeaderBackground")); + var _HeaderShownContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./HeaderShownContext")); + var _HeaderTitle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./HeaderTitle")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Header/Header.tsx"; + var _excluded = ["height", "minHeight", "maxHeight", "backgroundColor", "borderBottomColor", "borderBottomEndRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderBottomStartRadius", "borderBottomWidth", "borderColor", "borderEndColor", "borderEndWidth", "borderLeftColor", "borderLeftWidth", "borderRadius", "borderRightColor", "borderRightWidth", "borderStartColor", "borderStartWidth", "borderStyle", "borderTopColor", "borderTopEndRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "boxShadow", "elevation", "shadowColor", "shadowOffset", "shadowOpacity", "shadowRadius", "opacity", "transform"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var warnIfHeaderStylesDefined = function warnIfHeaderStylesDefined(styles) { + Object.keys(styles).forEach(function (styleProp) { + var value = styles[styleProp]; + if (styleProp === 'position' && value === 'absolute') { + console.warn("position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the 'headerTransparent' option."); + } else if (value !== undefined) { + console.warn(styleProp + " was given a value of " + value + ", this has no effect on headerStyle."); + } + }); + }; + function Header(props) { + var _this = this; + var insets = (0, _$$_REQUIRE(_dependencyMap[8], "react-native-safe-area-context").useSafeAreaInsets)(); + var frame = (0, _$$_REQUIRE(_dependencyMap[8], "react-native-safe-area-context").useSafeAreaFrame)(); + var isParentHeaderShown = React.useContext(_HeaderShownContext.default); + var _props$layout = props.layout, + layout = _props$layout === void 0 ? frame : _props$layout, + _props$modal = props.modal, + modal = _props$modal === void 0 ? false : _props$modal, + title = props.title, + customTitle = props.headerTitle, + _props$headerTitleAli = props.headerTitleAlign, + headerTitleAlign = _props$headerTitleAli === void 0 ? _reactNative.Platform.select({ + ios: 'center', + default: 'left' + }) : _props$headerTitleAli, + headerLeft = props.headerLeft, + headerLeftLabelVisible = props.headerLeftLabelVisible, + headerTransparent = props.headerTransparent, + headerTintColor = props.headerTintColor, + headerBackground = props.headerBackground, + headerRight = props.headerRight, + titleAllowFontScaling = props.headerTitleAllowFontScaling, + titleStyle = props.headerTitleStyle, + leftContainerStyle = props.headerLeftContainerStyle, + rightContainerStyle = props.headerRightContainerStyle, + titleContainerStyle = props.headerTitleContainerStyle, + backgroundContainerStyle = props.headerBackgroundContainerStyle, + customHeaderStyle = props.headerStyle, + headerShadowVisible = props.headerShadowVisible, + headerPressColor = props.headerPressColor, + headerPressOpacity = props.headerPressOpacity, + _props$headerStatusBa = props.headerStatusBarHeight, + headerStatusBarHeight = _props$headerStatusBa === void 0 ? isParentHeaderShown ? 0 : insets.top : _props$headerStatusBa; + var defaultHeight = (0, _getDefaultHeaderHeight.default)(layout, modal, headerStatusBarHeight); + var _ref = _reactNative.StyleSheet.flatten(customHeaderStyle || {}), + _ref$height = _ref.height, + height = _ref$height === void 0 ? defaultHeight : _ref$height, + minHeight = _ref.minHeight, + maxHeight = _ref.maxHeight, + backgroundColor = _ref.backgroundColor, + borderBottomColor = _ref.borderBottomColor, + borderBottomEndRadius = _ref.borderBottomEndRadius, + borderBottomLeftRadius = _ref.borderBottomLeftRadius, + borderBottomRightRadius = _ref.borderBottomRightRadius, + borderBottomStartRadius = _ref.borderBottomStartRadius, + borderBottomWidth = _ref.borderBottomWidth, + borderColor = _ref.borderColor, + borderEndColor = _ref.borderEndColor, + borderEndWidth = _ref.borderEndWidth, + borderLeftColor = _ref.borderLeftColor, + borderLeftWidth = _ref.borderLeftWidth, + borderRadius = _ref.borderRadius, + borderRightColor = _ref.borderRightColor, + borderRightWidth = _ref.borderRightWidth, + borderStartColor = _ref.borderStartColor, + borderStartWidth = _ref.borderStartWidth, + borderStyle = _ref.borderStyle, + borderTopColor = _ref.borderTopColor, + borderTopEndRadius = _ref.borderTopEndRadius, + borderTopLeftRadius = _ref.borderTopLeftRadius, + borderTopRightRadius = _ref.borderTopRightRadius, + borderTopStartRadius = _ref.borderTopStartRadius, + borderTopWidth = _ref.borderTopWidth, + borderWidth = _ref.borderWidth, + boxShadow = _ref.boxShadow, + elevation = _ref.elevation, + shadowColor = _ref.shadowColor, + shadowOffset = _ref.shadowOffset, + shadowOpacity = _ref.shadowOpacity, + shadowRadius = _ref.shadowRadius, + opacity = _ref.opacity, + transform = _ref.transform, + unsafeStyles = (0, _objectWithoutProperties2.default)(_ref, _excluded); + if (process.env.NODE_ENV !== 'production') { + warnIfHeaderStylesDefined(unsafeStyles); + } + var safeStyles = { + backgroundColor: backgroundColor, + borderBottomColor: borderBottomColor, + borderBottomEndRadius: borderBottomEndRadius, + borderBottomLeftRadius: borderBottomLeftRadius, + borderBottomRightRadius: borderBottomRightRadius, + borderBottomStartRadius: borderBottomStartRadius, + borderBottomWidth: borderBottomWidth, + borderColor: borderColor, + borderEndColor: borderEndColor, + borderEndWidth: borderEndWidth, + borderLeftColor: borderLeftColor, + borderLeftWidth: borderLeftWidth, + borderRadius: borderRadius, + borderRightColor: borderRightColor, + borderRightWidth: borderRightWidth, + borderStartColor: borderStartColor, + borderStartWidth: borderStartWidth, + borderStyle: borderStyle, + borderTopColor: borderTopColor, + borderTopEndRadius: borderTopEndRadius, + borderTopLeftRadius: borderTopLeftRadius, + borderTopRightRadius: borderTopRightRadius, + borderTopStartRadius: borderTopStartRadius, + borderTopWidth: borderTopWidth, + borderWidth: borderWidth, + boxShadow: boxShadow, + elevation: elevation, + shadowColor: shadowColor, + shadowOffset: shadowOffset, + shadowOpacity: shadowOpacity, + shadowRadius: shadowRadius, + opacity: opacity, + transform: transform + }; + + for (var styleProp in safeStyles) { + if (safeStyles[styleProp] === undefined) { + delete safeStyles[styleProp]; + } + } + var backgroundStyle = [safeStyles, headerShadowVisible === false && { + elevation: 0, + shadowOpacity: 0, + borderBottomWidth: 0 + }]; + var leftButton = headerLeft ? headerLeft({ + tintColor: headerTintColor, + pressColor: headerPressColor, + pressOpacity: headerPressOpacity, + labelVisible: headerLeftLabelVisible + }) : null; + var rightButton = headerRight ? headerRight({ + tintColor: headerTintColor, + pressColor: headerPressColor, + pressOpacity: headerPressOpacity + }) : null; + var headerTitle = typeof customTitle !== 'function' ? function (props) { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_HeaderTitle.default, Object.assign({}, props)); + } : customTitle; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(React.Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [_reactNative.StyleSheet.absoluteFill, { + zIndex: 0 + }, backgroundContainerStyle], + children: headerBackground ? headerBackground({ + style: backgroundStyle + }) : headerTransparent ? null : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_HeaderBackground.default, { + style: backgroundStyle + }) + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [{ + height: height, + minHeight: minHeight, + maxHeight: maxHeight, + opacity: opacity, + transform: transform + }], + children: [(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + pointerEvents: "none", + style: { + height: headerStatusBarHeight + } + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_reactNative.View, { + pointerEvents: "box-none", + style: styles.content, + children: [(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [styles.left, headerTitleAlign === 'center' && styles.expand, { + marginStart: insets.left + }, leftContainerStyle], + children: leftButton + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [styles.title, { + maxWidth: headerTitleAlign === 'center' ? layout.width - ((leftButton ? headerLeftLabelVisible !== false ? 80 : 32 : 16) + Math.max(insets.left, insets.right)) * 2 : layout.width - ((leftButton ? 72 : 16) + (rightButton ? 72 : 16) + insets.left - insets.right) + }, titleContainerStyle], + children: headerTitle({ + children: title, + allowFontScaling: titleAllowFontScaling, + tintColor: headerTintColor, + style: titleStyle + }) + }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [styles.right, styles.expand, { + marginEnd: insets.right + }, rightContainerStyle], + children: rightButton + })] + })] + })] + }); + } + var styles = _reactNative.StyleSheet.create({ + content: { + flex: 1, + flexDirection: 'row', + alignItems: 'stretch' + }, + title: { + marginHorizontal: 16, + justifyContent: 'center' + }, + left: { + justifyContent: 'center', + alignItems: 'flex-start' + }, + right: { + justifyContent: 'center', + alignItems: 'flex-end' + }, + expand: { + flexGrow: 1, + flexBasis: 0 + } + }); +},695,[3,132,36,1,693,696,697,699,700,73],"node_modules/@react-navigation/elements/src/Header/Header.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = HeaderBackground; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Header/HeaderBackground.tsx"; + var _excluded = ["style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function HeaderBackground(_ref) { + var style = _ref.style, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Animated.View, Object.assign({ + style: [styles.container, { + backgroundColor: colors.card, + borderBottomColor: colors.border, + shadowColor: colors.border + }, style] + }, rest)); + } + var styles = _reactNative.StyleSheet.create({ + container: Object.assign({ + flex: 1 + }, _reactNative.Platform.select({ + android: { + elevation: 4 + }, + ios: { + shadowOpacity: 0.85, + shadowRadius: 0, + shadowOffset: { + width: 0, + height: _reactNative.StyleSheet.hairlineWidth + } + }, + default: { + borderBottomWidth: _reactNative.StyleSheet.hairlineWidth + } + })) + }); +},696,[3,132,36,1,590,73],"node_modules/@react-navigation/elements/src/Header/HeaderBackground.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _getNamedContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../getNamedContext")); + var HeaderShownContext = (0, _getNamedContext.default)('HeaderShownContext', false); + var _default = HeaderShownContext; + exports.default = _default; +},697,[3,698],"node_modules/@react-navigation/elements/src/Header/HeaderShownContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getNamedContext; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _global$contexts; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var contexts = '__react_navigation__elements_contexts'; + global[contexts] = (_global$contexts = global[contexts]) != null ? _global$contexts : new Map(); + function getNamedContext(name, initialValue) { + var context = global[contexts].get(name); + if (context) { + return context; + } + context = React.createContext(initialValue); + context.displayName = name; + global[contexts].set(name, context); + return context; + } +},698,[36],"node_modules/@react-navigation/elements/src/getNamedContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = HeaderTitle; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Header/HeaderTitle.tsx"; + var _excluded = ["tintColor", "style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function HeaderTitle(_ref) { + var tintColor = _ref.tintColor, + style = _ref.style, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[4], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_reactNative.Animated.Text, Object.assign({ + accessibilityRole: "header", + "aria-level": "1", + numberOfLines: 1 + }, rest, { + style: [styles.title, { + color: tintColor === undefined ? colors.text : tintColor + }, style] + })); + } + var styles = _reactNative.StyleSheet.create({ + title: _reactNative.Platform.select({ + ios: { + fontSize: 17, + fontWeight: '600' + }, + android: { + fontSize: 20, + fontFamily: 'sans-serif-medium', + fontWeight: 'normal' + }, + default: { + fontSize: 18, + fontWeight: '500' + } + }) + }); +},699,[3,132,36,1,590,73],"node_modules/@react-navigation/elements/src/Header/HeaderTitle.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0], "./SafeAreaContext")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0], "./SafeAreaContext")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./SafeAreaContext")[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[1], "./SafeAreaView")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[1], "./SafeAreaView")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1], "./SafeAreaView")[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[2], "./InitialWindow")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[2], "./InitialWindow")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2], "./InitialWindow")[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[3], "./SafeArea.types")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[3], "./SafeArea.types")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3], "./SafeArea.types")[key]; + } + }); + }); +},700,[701,704,706,708],"node_modules/react-native-safe-area-context/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SafeAreaInsetsContext = exports.SafeAreaFrameContext = exports.SafeAreaContext = exports.SafeAreaConsumer = void 0; + exports.SafeAreaProvider = SafeAreaProvider; + exports.useSafeArea = useSafeArea; + exports.useSafeAreaFrame = useSafeAreaFrame; + exports.useSafeAreaInsets = useSafeAreaInsets; + exports.withSafeAreaInsets = withSafeAreaInsets; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native-safe-area-context/src/SafeAreaContext.tsx"; + var _excluded = ["children", "initialMetrics", "initialSafeAreaInsets", "style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var isDev = process.env.NODE_ENV !== 'production'; + var SafeAreaInsetsContext = React.createContext(null); + exports.SafeAreaInsetsContext = SafeAreaInsetsContext; + if (isDev) { + SafeAreaInsetsContext.displayName = 'SafeAreaInsetsContext'; + } + var SafeAreaFrameContext = React.createContext(null); + exports.SafeAreaFrameContext = SafeAreaFrameContext; + if (isDev) { + SafeAreaFrameContext.displayName = 'SafeAreaFrameContext'; + } + function SafeAreaProvider(_ref) { + var _ref2, _ref3, _initialMetrics$inset, _ref4, _initialMetrics$frame; + var children = _ref.children, + initialMetrics = _ref.initialMetrics, + initialSafeAreaInsets = _ref.initialSafeAreaInsets, + style = _ref.style, + others = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var parentInsets = useParentSafeAreaInsets(); + var parentFrame = useParentSafeAreaFrame(); + var _React$useState = React.useState((_ref2 = (_ref3 = (_initialMetrics$inset = initialMetrics == null ? void 0 : initialMetrics.insets) != null ? _initialMetrics$inset : initialSafeAreaInsets) != null ? _ref3 : parentInsets) != null ? _ref2 : null), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + insets = _React$useState2[0], + setInsets = _React$useState2[1]; + var _React$useState3 = React.useState((_ref4 = (_initialMetrics$frame = initialMetrics == null ? void 0 : initialMetrics.frame) != null ? _initialMetrics$frame : parentFrame) != null ? _ref4 : { + x: 0, + y: 0, + width: _reactNative.Dimensions.get('window').width, + height: _reactNative.Dimensions.get('window').height + }), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + frame = _React$useState4[0], + setFrame = _React$useState4[1]; + var onInsetsChange = React.useCallback(function (event) { + var _event$nativeEvent = event.nativeEvent, + nextFrame = _event$nativeEvent.frame, + nextInsets = _event$nativeEvent.insets; + if ( + nextFrame && (nextFrame.height !== frame.height || nextFrame.width !== frame.width || nextFrame.x !== frame.x || nextFrame.y !== frame.y)) { + setFrame(nextFrame); + } + if (!insets || nextInsets.bottom !== insets.bottom || nextInsets.left !== insets.left || nextInsets.right !== insets.right || nextInsets.top !== insets.top) { + setInsets(nextInsets); + } + }, [frame, insets]); + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[6], "./NativeSafeAreaProvider").NativeSafeAreaProvider, Object.assign({ + style: [styles.fill, style], + onInsetsChange: onInsetsChange + }, others, { + children: insets != null ? (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(SafeAreaFrameContext.Provider, { + value: frame, + children: (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(SafeAreaInsetsContext.Provider, { + value: insets, + children: children + }) + }) : null + })); + } + var styles = _reactNative.StyleSheet.create({ + fill: { + flex: 1 + } + }); + function useParentSafeAreaInsets() { + return React.useContext(SafeAreaInsetsContext); + } + function useParentSafeAreaFrame() { + return React.useContext(SafeAreaFrameContext); + } + var NO_INSETS_ERROR = 'No safe area value available. Make sure you are rendering `` at the top of your app.'; + function useSafeAreaInsets() { + var safeArea = React.useContext(SafeAreaInsetsContext); + if (safeArea == null) { + throw new Error(NO_INSETS_ERROR); + } + return safeArea; + } + function useSafeAreaFrame() { + var frame = React.useContext(SafeAreaFrameContext); + if (frame == null) { + throw new Error(NO_INSETS_ERROR); + } + return frame; + } + function withSafeAreaInsets(WrappedComponent) { + var _this = this; + return React.forwardRef(function (props, ref) { + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(SafeAreaInsetsContext.Consumer, { + children: function children(insets) { + if (insets == null) { + throw new Error(NO_INSETS_ERROR); + } + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(WrappedComponent, Object.assign({}, props, { + insets: insets, + ref: ref + })); + } + }); + }); + } + + function useSafeArea() { + return useSafeAreaInsets(); + } + + var SafeAreaConsumer = SafeAreaInsetsContext.Consumer; + + exports.SafeAreaConsumer = SafeAreaConsumer; + var SafeAreaContext = SafeAreaInsetsContext; + exports.SafeAreaContext = SafeAreaContext; +},701,[3,19,132,36,1,73,702],"node_modules/react-native-safe-area-context/src/SafeAreaContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "NativeSafeAreaProvider", { + enumerable: true, + get: function get() { + return _NativeSafeAreaProvider.default; + } + }); + var _NativeSafeAreaProvider = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./specs/NativeSafeAreaProvider")); +},702,[3,703],"node_modules/react-native-safe-area-context/src/NativeSafeAreaProvider.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('RNCSafeAreaProvider'); + exports.default = _default; +},703,[3,251],"node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaProvider.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SafeAreaView = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _NativeSafeAreaView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./specs/NativeSafeAreaView")); + var _excluded = ["edges"]; + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native-safe-area-context/src/SafeAreaView.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var SafeAreaView = React.forwardRef(function (_ref, ref) { + var edges = _ref.edges, + props = (0, _objectWithoutProperties2.default)(_ref, _excluded); + return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_NativeSafeAreaView.default, Object.assign({}, props, { + edges: edges != null ? edges : ['bottom', 'left', 'right', 'top'], + ref: ref + })); + }); + exports.SafeAreaView = SafeAreaView; +},704,[3,132,36,705,73],"node_modules/react-native-safe-area-context/src/SafeAreaView.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/Utilities/codegenNativeComponent")); + var _default = (0, _codegenNativeComponent.default)('RNCSafeAreaView', { + interfaceOnly: true + }); + exports.default = _default; +},705,[3,251],"node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaView.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.initialWindowSafeAreaInsets = exports.initialWindowMetrics = void 0; + var _NativeSafeAreaContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./specs/NativeSafeAreaContext")); + var _NativeSafeAreaContex, _NativeSafeAreaContex2; + var initialWindowMetrics = (_NativeSafeAreaContex = _NativeSafeAreaContext.default == null ? void 0 : (_NativeSafeAreaContex2 = _NativeSafeAreaContext.default.getConstants()) == null ? void 0 : _NativeSafeAreaContex2.initialWindowMetrics) != null ? _NativeSafeAreaContex : null; + + exports.initialWindowMetrics = initialWindowMetrics; + var initialWindowSafeAreaInsets = initialWindowMetrics == null ? void 0 : initialWindowMetrics.insets; + exports.initialWindowSafeAreaInsets = initialWindowSafeAreaInsets; +},706,[3,707],"node_modules/react-native-safe-area-context/src/InitialWindow.native.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = TurboModuleRegistry.get('RNCSafeAreaContext'); + exports.default = _default; +},707,[16],"node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaContext.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},708,[],"node_modules/react-native-safe-area-context/src/SafeArea.types.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = HeaderBackButton; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _MaskedView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../MaskedView")); + var _PlatformPressable = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../PlatformPressable")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Header/HeaderBackButton.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function HeaderBackButton(_ref) { + var _this = this; + var disabled = _ref.disabled, + allowFontScaling = _ref.allowFontScaling, + backImage = _ref.backImage, + label = _ref.label, + labelStyle = _ref.labelStyle, + labelVisible = _ref.labelVisible, + onLabelLayout = _ref.onLabelLayout, + onPress = _ref.onPress, + pressColor = _ref.pressColor, + pressOpacity = _ref.pressOpacity, + screenLayout = _ref.screenLayout, + customTintColor = _ref.tintColor, + titleLayout = _ref.titleLayout, + _ref$truncatedLabel = _ref.truncatedLabel, + truncatedLabel = _ref$truncatedLabel === void 0 ? 'Back' : _ref$truncatedLabel, + _ref$accessibilityLab = _ref.accessibilityLabel, + accessibilityLabel = _ref$accessibilityLab === void 0 ? label && label !== 'Back' ? label + ", back" : 'Go back' : _ref$accessibilityLab, + testID = _ref.testID, + style = _ref.style; + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[6], "@react-navigation/native").useTheme)(), + colors = _useTheme.colors; + var _React$useState = React.useState(undefined), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + initialLabelWidth = _React$useState2[0], + setInitialLabelWidth = _React$useState2[1]; + var tintColor = customTintColor !== undefined ? customTintColor : _reactNative.Platform.select({ + ios: colors.primary, + default: colors.text + }); + var handleLabelLayout = function handleLabelLayout(e) { + onLabelLayout == null ? void 0 : onLabelLayout(e); + setInitialLabelWidth(e.nativeEvent.layout.x + e.nativeEvent.layout.width); + }; + var shouldTruncateLabel = function shouldTruncateLabel() { + return !label || initialLabelWidth && titleLayout && screenLayout && (screenLayout.width - titleLayout.width) / 2 < initialLabelWidth + 26; + }; + var renderBackImage = function renderBackImage() { + if (backImage) { + return backImage({ + tintColor: tintColor + }); + } else { + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Image, { + style: [styles.icon, Boolean(labelVisible) && styles.iconWithLabel, Boolean(tintColor) && { + tintColor: tintColor + }], + source: _$$_REQUIRE(_dependencyMap[8], "../assets/back-icon.png"), + fadeDuration: 0 + }); + } + }; + var renderLabel = function renderLabel() { + var leftLabelText = shouldTruncateLabel() ? truncatedLabel : label; + if (!labelVisible || leftLabelText === undefined) { + return null; + } + var labelElement = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: screenLayout ? + [styles.labelWrapper, { + minWidth: screenLayout.width / 2 - 27 + }] : null, + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Animated.Text, { + accessible: false, + onLayout: + leftLabelText === label ? handleLabelLayout : undefined, + style: [styles.label, tintColor ? { + color: tintColor + } : null, labelStyle], + numberOfLines: 1, + allowFontScaling: !!allowFontScaling, + children: leftLabelText + }) + }); + if (backImage || _reactNative.Platform.OS !== 'ios') { + return labelElement; + } + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_MaskedView.default, { + maskElement: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: styles.iconMaskContainer, + children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.Image, { + source: _$$_REQUIRE(_dependencyMap[9], "../assets/back-icon-mask.png"), + style: styles.iconMask + }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_reactNative.View, { + style: styles.iconMaskFillerRect + })] + }), + children: labelElement + }); + }; + var handlePress = function handlePress() { + return onPress && requestAnimationFrame(onPress); + }; + return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_PlatformPressable.default, { + disabled: disabled, + accessible: true, + accessibilityRole: "button", + accessibilityLabel: accessibilityLabel, + testID: testID, + onPress: disabled ? undefined : handlePress, + pressColor: pressColor, + pressOpacity: pressOpacity, + android_ripple: { + borderless: true + }, + style: [styles.container, disabled && styles.disabled, style], + hitSlop: _reactNative.Platform.select({ + ios: undefined, + default: { + top: 16, + right: 16, + bottom: 16, + left: 16 + } + }), + children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(React.Fragment, { + children: [renderBackImage(), renderLabel()] + }) + }); + } + var styles = _reactNative.StyleSheet.create({ + container: Object.assign({ + alignItems: 'center', + flexDirection: 'row', + minWidth: _reactNative.StyleSheet.hairlineWidth + }, _reactNative.Platform.select({ + ios: null, + default: { + marginVertical: 3, + marginHorizontal: 11 + } + })), + disabled: { + opacity: 0.5 + }, + label: { + fontSize: 17, + letterSpacing: 0.35 + }, + labelWrapper: { + flexDirection: 'row', + alignItems: 'flex-start' + }, + icon: _reactNative.Platform.select({ + ios: { + height: 21, + width: 13, + marginLeft: 8, + marginRight: 22, + marginVertical: 12, + resizeMode: 'contain', + transform: [{ + scaleX: _reactNative.I18nManager.getConstants().isRTL ? -1 : 1 + }] + }, + default: { + height: 24, + width: 24, + margin: 3, + resizeMode: 'contain', + transform: [{ + scaleX: _reactNative.I18nManager.getConstants().isRTL ? -1 : 1 + }] + } + }), + iconWithLabel: _reactNative.Platform.OS === 'ios' ? { + marginRight: 6 + } : {}, + iconMaskContainer: { + flex: 1, + flexDirection: 'row', + justifyContent: 'center' + }, + iconMaskFillerRect: { + flex: 1, + backgroundColor: '#000' + }, + iconMask: { + height: 21, + width: 13, + marginLeft: -14.5, + marginVertical: 12, + alignSelf: 'center', + resizeMode: 'contain', + transform: [{ + scaleX: _reactNative.I18nManager.getConstants().isRTL ? -1 : 1 + }] + } + }); +},709,[3,19,36,1,710,714,590,73,715,716],"node_modules/@react-navigation/elements/src/Header/HeaderBackButton.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "default", { + enumerable: true, + get: function get() { + return _MaskedViewNative.default; + } + }); + var _MaskedViewNative = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./MaskedViewNative")); +},710,[3,711],"node_modules/@react-navigation/elements/src/MaskedView.ios.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = MaskedView; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/MaskedViewNative.tsx"; + var _excluded = ["children"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var RNCMaskedView; + try { + RNCMaskedView = _$$_REQUIRE(_dependencyMap[4], "@react-native-masked-view/masked-view").default; + } catch (e) { + } + var isMaskedViewAvailable = _reactNative.UIManager.getViewManagerConfig('RNCMaskedView') != null; + function MaskedView(_ref) { + var children = _ref.children, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + if (isMaskedViewAvailable && RNCMaskedView) { + return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(RNCMaskedView, Object.assign({}, rest, { + children: children + })); + } + return children; + } +},711,[3,132,36,1,712,73],"node_modules/@react-navigation/elements/src/MaskedViewNative.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _MaskedView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./js/MaskedView")); + var _default = _MaskedView.default; + exports.default = _default; +},712,[3,713],"node_modules/@react-native-masked-view/masked-view/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[8], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-native-masked-view/masked-view/js/MaskedView.js"; + var _excluded = ["maskElement", "children"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var RNCMaskedView = (0, _reactNative.requireNativeComponent)('RNCMaskedView'); + var MaskedView = function (_React$Component) { + (0, _inherits2.default)(MaskedView, _React$Component); + var _super = _createSuper(MaskedView); + function MaskedView() { + var _this; + (0, _classCallCheck2.default)(this, MaskedView); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._hasWarnedInvalidRenderMask = false; + return _this; + } + (0, _createClass2.default)(MaskedView, [{ + key: "render", + value: function render() { + var _this$props = this.props, + maskElement = _this$props.maskElement, + children = _this$props.children, + otherViewProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + if (!React.isValidElement(maskElement)) { + if (!this._hasWarnedInvalidRenderMask) { + console.warn('MaskedView: Invalid `maskElement` prop was passed to MaskedView. ' + 'Expected a React Element. No mask will render.'); + this._hasWarnedInvalidRenderMask = true; + } + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, otherViewProps, { + children: children + })); + } + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(RNCMaskedView, Object.assign({}, otherViewProps, { + children: [(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + pointerEvents: "none", + style: _reactNative.StyleSheet.absoluteFill, + children: maskElement + }), children] + })); + } + }]); + return MaskedView; + }(React.Component); + exports.default = MaskedView; +},713,[3,132,12,13,50,47,46,36,1,73],"node_modules/@react-native-masked-view/masked-view/js/MaskedView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = PlatformPressable; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/PlatformPressable.tsx"; + var _excluded = ["onPressIn", "onPressOut", "android_ripple", "pressColor", "pressOpacity", "style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var AnimatedPressable = _reactNative.Animated.createAnimatedComponent(_reactNative.Pressable); + var ANDROID_VERSION_LOLLIPOP = 21; + var ANDROID_SUPPORTS_RIPPLE = _reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= ANDROID_VERSION_LOLLIPOP; + + function PlatformPressable(_ref) { + var onPressIn = _ref.onPressIn, + onPressOut = _ref.onPressOut, + android_ripple = _ref.android_ripple, + pressColor = _ref.pressColor, + _ref$pressOpacity = _ref.pressOpacity, + pressOpacity = _ref$pressOpacity === void 0 ? 0.3 : _ref$pressOpacity, + style = _ref.style, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[5], "@react-navigation/native").useTheme)(), + dark = _useTheme.dark; + var _React$useState = React.useState(function () { + return new _reactNative.Animated.Value(1); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + opacity = _React$useState2[0]; + var animateTo = function animateTo(toValue, duration) { + if (ANDROID_SUPPORTS_RIPPLE) { + return; + } + _reactNative.Animated.timing(opacity, { + toValue: toValue, + duration: duration, + easing: _reactNative.Easing.inOut(_reactNative.Easing.quad), + useNativeDriver: true + }).start(); + }; + var handlePressIn = function handlePressIn(e) { + animateTo(pressOpacity, 0); + onPressIn == null ? void 0 : onPressIn(e); + }; + var handlePressOut = function handlePressOut(e) { + animateTo(1, 200); + onPressOut == null ? void 0 : onPressOut(e); + }; + return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(AnimatedPressable, Object.assign({ + onPressIn: handlePressIn, + onPressOut: handlePressOut, + android_ripple: ANDROID_SUPPORTS_RIPPLE ? Object.assign({ + color: pressColor !== undefined ? pressColor : dark ? 'rgba(255, 255, 255, .32)' : 'rgba(0, 0, 0, .32)' + }, android_ripple) : undefined, + style: [{ + opacity: !ANDROID_SUPPORTS_RIPPLE ? opacity : 1 + }, style] + }, rest)); + } +},714,[3,19,132,36,1,590,73],"node_modules/@react-navigation/elements/src/PlatformPressable.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/@react-navigation/elements/src/assets", + "width": 12, + "height": 21, + "scales": [1, 1.5, 2, 3, 4], + "hash": "c90fb4585dd852a3d67af39baf923f67", + "name": "back-icon", + "type": "png" + }); +},715,[385],"node_modules/@react-navigation/elements/src/assets/back-icon.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/@react-navigation/elements/src/assets", + "width": 50, + "height": 85, + "scales": [1], + "hash": "5223c8d9b0d08b82a5670fb5f71faf78", + "name": "back-icon-mask", + "type": "png" + }); +},716,[385],"node_modules/@react-navigation/elements/src/assets/back-icon-mask.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _getNamedContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../getNamedContext")); + var HeaderBackContext = (0, _getNamedContext.default)('HeaderBackContext', undefined); + var _default = HeaderBackContext; + exports.default = _default; +},717,[3,698],"node_modules/@react-navigation/elements/src/Header/HeaderBackContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _getNamedContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../getNamedContext")); + var HeaderHeightContext = (0, _getNamedContext.default)('HeaderHeightContext', undefined); + var _default = HeaderHeightContext; + exports.default = _default; +},718,[3,698],"node_modules/@react-navigation/elements/src/Header/HeaderHeightContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useHeaderHeight; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _HeaderHeightContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./HeaderHeightContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useHeaderHeight() { + var height = React.useContext(_HeaderHeightContext.default); + if (height === undefined) { + throw new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?"); + } + return height; + } +},719,[36,3,718],"node_modules/@react-navigation/elements/src/Header/useHeaderHeight.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = MissingIcon; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/MissingIcon.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function MissingIcon(_ref) { + var color = _ref.color, + size = _ref.size, + style = _ref.style; + return (0, _$$_REQUIRE(_dependencyMap[2], "react/jsx-runtime").jsx)(_reactNative.Text, { + style: [styles.icon, { + color: color, + fontSize: size + }, style], + children: "\u23F7" + }); + } + var styles = _reactNative.StyleSheet.create({ + icon: { + backgroundColor: 'transparent' + } + }); +},720,[36,1,73],"node_modules/@react-navigation/elements/src/MissingIcon.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = ResourceSavingScene; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/ResourceSavingView.tsx"; + var _excluded = ["visible", "children", "style"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var FAR_FAR_AWAY = 30000; + + function ResourceSavingScene(_ref) { + var visible = _ref.visible, + children = _ref.children, + style = _ref.style, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + if (_reactNative.Platform.OS === 'web') { + return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_reactNative.View + , Object.assign({ + hidden: !visible, + style: [{ + display: visible ? 'flex' : 'none' + }, styles.container, style], + pointerEvents: visible ? 'auto' : 'none' + }, rest, { + children: children + })); + } + return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.container, style] + , + pointerEvents: visible ? 'auto' : 'none', + children: (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_reactNative.View, { + collapsable: false, + removeClippedSubviews: + _reactNative.Platform.OS === 'ios' || _reactNative.Platform.OS === 'macos' ? !visible : true, + pointerEvents: visible ? 'auto' : 'none', + style: visible ? styles.attached : styles.detached, + children: children + }) + }); + } + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1, + overflow: 'hidden' + }, + attached: { + flex: 1 + }, + detached: { + flex: 1, + top: FAR_FAR_AWAY + } + }); +},721,[3,132,36,1,73],"node_modules/@react-navigation/elements/src/ResourceSavingView.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = SafeAreaProviderCompat; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/SafeAreaProviderCompat.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _Dimensions$get = _reactNative.Dimensions.get('window'), + _Dimensions$get$width = _Dimensions$get.width, + width = _Dimensions$get$width === void 0 ? 0 : _Dimensions$get$width, + _Dimensions$get$heigh = _Dimensions$get.height, + height = _Dimensions$get$heigh === void 0 ? 0 : _Dimensions$get$heigh; + + var initialMetrics = _reactNative.Platform.OS === 'web' || _$$_REQUIRE(_dependencyMap[2], "react-native-safe-area-context").initialWindowMetrics == null ? { + frame: { + x: 0, + y: 0, + width: width, + height: height + }, + insets: { + top: 0, + left: 0, + right: 0, + bottom: 0 + } + } : _$$_REQUIRE(_dependencyMap[2], "react-native-safe-area-context").initialWindowMetrics; + function SafeAreaProviderCompat(_ref) { + var _this = this; + var _children = _ref.children, + style = _ref.style; + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "react-native-safe-area-context").SafeAreaInsetsContext.Consumer, { + children: function children(insets) { + if (insets) { + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.container, style], + children: _children + }); + } + return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "react-native-safe-area-context").SafeAreaProvider, { + initialMetrics: initialMetrics, + style: style, + children: _children + }); + } + }); + } + SafeAreaProviderCompat.initialMetrics = initialMetrics; + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1 + } + }); +},722,[36,1,700,73],"node_modules/@react-navigation/elements/src/SafeAreaProviderCompat.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Screen; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + var _Background = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./Background")); + var _getDefaultHeaderHeight = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Header/getDefaultHeaderHeight")); + var _HeaderHeightContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./Header/HeaderHeightContext")); + var _HeaderShownContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./Header/HeaderShownContext")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/@react-navigation/elements/src/Screen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function Screen(props) { + var dimensions = (0, _$$_REQUIRE(_dependencyMap[8], "react-native-safe-area-context").useSafeAreaFrame)(); + var insets = (0, _$$_REQUIRE(_dependencyMap[8], "react-native-safe-area-context").useSafeAreaInsets)(); + var isParentHeaderShown = React.useContext(_HeaderShownContext.default); + var parentHeaderHeight = React.useContext(_HeaderHeightContext.default); + var focused = props.focused, + _props$modal = props.modal, + modal = _props$modal === void 0 ? false : _props$modal, + header = props.header, + _props$headerShown = props.headerShown, + headerShown = _props$headerShown === void 0 ? true : _props$headerShown, + headerTransparent = props.headerTransparent, + _props$headerStatusBa = props.headerStatusBarHeight, + headerStatusBarHeight = _props$headerStatusBa === void 0 ? isParentHeaderShown ? 0 : insets.top : _props$headerStatusBa, + navigation = props.navigation, + route = props.route, + children = props.children, + style = props.style; + var _React$useState = React.useState(function () { + return (0, _getDefaultHeaderHeight.default)(dimensions, modal, headerStatusBarHeight); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + headerHeight = _React$useState2[0], + setHeaderHeight = _React$useState2[1]; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_Background.default, { + accessibilityElementsHidden: !focused, + importantForAccessibility: focused ? 'auto' : 'no-hide-descendants', + style: [styles.container, style], + children: [(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + style: styles.content, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_HeaderShownContext.default.Provider, { + value: isParentHeaderShown || headerShown !== false, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_HeaderHeightContext.default.Provider, { + value: headerShown ? headerHeight : parentHeaderHeight != null ? parentHeaderHeight : 0, + children: children + }) + }) + }), headerShown ? (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "@react-navigation/native").NavigationContext.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "@react-navigation/native").NavigationRouteContext.Provider, { + value: route, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + onLayout: function onLayout(e) { + var height = e.nativeEvent.layout.height; + setHeaderHeight(height); + }, + style: headerTransparent ? styles.absolute : null, + children: header + }) + }) + }) : null] + }); + } + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1, + flexDirection: 'column-reverse' + }, + content: { + flex: 1 + }, + absolute: { + position: 'absolute', + top: 0, + left: 0, + right: 0 + } + }); +},723,[3,19,36,1,692,693,718,697,700,73,590],"node_modules/@react-navigation/elements/src/Screen.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},724,[],"node_modules/@react-navigation/elements/src/types.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/objectWithoutProperties")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/slicedToArray")); + var _react = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[9], "react-native"); + var _TransitionProgressContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./TransitionProgressContext")); + var _useTransitionProgress = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./useTransitionProgress")); + var _excluded = ["children"], + _excluded2 = ["enabled", "freezeOnBlur"], + _excluded3 = ["active", "activityState", "children", "isNativeStack", "gestureResponseDistance"], + _excluded4 = ["active", "activityState", "style", "onComponentRef"], + _excluded5 = ["enabled", "hasTwoStates"]; + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native-screens/src/index.native.tsx", + _this4 = this; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var isPlatformSupported = _reactNative.Platform.OS === 'ios' || _reactNative.Platform.OS === 'android' || _reactNative.Platform.OS === 'windows'; + var ENABLE_SCREENS = isPlatformSupported; + function enableScreens() { + var shouldEnableScreens = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + ENABLE_SCREENS = isPlatformSupported && shouldEnableScreens; + if (ENABLE_SCREENS && !_reactNative.UIManager.getViewManagerConfig('RNSScreen')) { + console.error("Screen native module hasn't been linked. Please check the react-native-screens README for more details"); + } + } + var ENABLE_FREEZE = false; + function enableFreeze() { + var shouldEnableReactFreeze = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + var minor = parseInt(_$$_REQUIRE(_dependencyMap[12], "react-native/package.json").version.split('.')[1]); + + if (!(minor === 0 || minor >= 64) && shouldEnableReactFreeze) { + console.warn('react-freeze library requires at least react-native 0.64. Please upgrade your react-native version in order to use this feature.'); + } + ENABLE_FREEZE = shouldEnableReactFreeze; + } + + var shouldUseActivityState = true; + function screensEnabled() { + return ENABLE_SCREENS; + } + + var NativeScreenValue; + var NativeScreenContainerValue; + var NativeScreenNavigationContainerValue; + var NativeScreenStack; + var NativeScreenStackHeaderConfig; + var NativeScreenStackHeaderSubview; + var AnimatedNativeScreen; + var NativeSearchBar; + var NativeFullWindowOverlay; + var ScreensNativeModules = { + get NativeScreen() { + NativeScreenValue = NativeScreenValue || (0, _reactNative.requireNativeComponent)('RNSScreen'); + return NativeScreenValue; + }, + get NativeScreenContainer() { + NativeScreenContainerValue = NativeScreenContainerValue || (0, _reactNative.requireNativeComponent)('RNSScreenContainer'); + return NativeScreenContainerValue; + }, + get NativeScreenNavigationContainer() { + NativeScreenNavigationContainerValue = NativeScreenNavigationContainerValue || (_reactNative.Platform.OS === 'ios' ? (0, _reactNative.requireNativeComponent)('RNSScreenNavigationContainer') : this.NativeScreenContainer); + return NativeScreenNavigationContainerValue; + }, + get NativeScreenStack() { + NativeScreenStack = NativeScreenStack || (0, _reactNative.requireNativeComponent)('RNSScreenStack'); + return NativeScreenStack; + }, + get NativeScreenStackHeaderConfig() { + NativeScreenStackHeaderConfig = NativeScreenStackHeaderConfig || (0, _reactNative.requireNativeComponent)('RNSScreenStackHeaderConfig'); + return NativeScreenStackHeaderConfig; + }, + get NativeScreenStackHeaderSubview() { + NativeScreenStackHeaderSubview = NativeScreenStackHeaderSubview || (0, _reactNative.requireNativeComponent)('RNSScreenStackHeaderSubview'); + return NativeScreenStackHeaderSubview; + }, + get NativeSearchBar() { + NativeSearchBar = NativeSearchBar || (0, _reactNative.requireNativeComponent)('RNSSearchBar'); + return NativeSearchBar; + }, + get NativeFullWindowOverlay() { + NativeFullWindowOverlay = NativeFullWindowOverlay || (0, _reactNative.requireNativeComponent)('RNSFullWindowOverlay'); + return NativeFullWindowOverlay; + } + }; + function DelayedFreeze(_ref) { + var freeze = _ref.freeze, + children = _ref.children; + var _React$useState = _react.default.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + freezeState = _React$useState2[0], + setFreezeState = _React$useState2[1]; + if (freeze !== freezeState) { + setImmediate(function () { + setFreezeState(freeze); + }); + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "react-freeze").Freeze, { + freeze: freeze ? freezeState : false, + children: children + }); + } + function ScreenStack(props) { + var _this = this; + var children = props.children, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + var size = _react.default.Children.count(children); + var childrenWithFreeze = _react.default.Children.map(children, function (child, index) { + var _props$descriptor, _props$descriptors, _descriptor$options$f, _descriptor$options; + var props = child.props, + key = child.key; + var descriptor = (_props$descriptor = props == null ? void 0 : props.descriptor) != null ? _props$descriptor : props == null ? void 0 : (_props$descriptors = props.descriptors) == null ? void 0 : _props$descriptors[key]; + var freezeEnabled = (_descriptor$options$f = descriptor == null ? void 0 : (_descriptor$options = descriptor.options) == null ? void 0 : _descriptor$options.freezeOnBlur) != null ? _descriptor$options$f : ENABLE_FREEZE; + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(DelayedFreeze, { + freeze: freezeEnabled && size - index > 1, + children: child + }); + }); + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStack, Object.assign({}, rest, { + children: childrenWithFreeze + })); + } + + var InnerScreen = function (_React$Component) { + (0, _inherits2.default)(InnerScreen, _React$Component); + var _super = _createSuper(InnerScreen); + function InnerScreen() { + var _this2; + (0, _classCallCheck2.default)(this, InnerScreen); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this2 = _super.call.apply(_super, [this].concat(args)); + _this2.ref = null; + _this2.closing = new _reactNative.Animated.Value(0); + _this2.progress = new _reactNative.Animated.Value(0); + _this2.goingForward = new _reactNative.Animated.Value(0); + _this2.setRef = function (ref) { + _this2.ref = ref; + _this2.props.onComponentRef == null ? void 0 : _this2.props.onComponentRef(ref); + }; + return _this2; + } + (0, _createClass2.default)(InnerScreen, [{ + key: "setNativeProps", + value: function setNativeProps(props) { + var _this$ref; + (_this$ref = this.ref) == null ? void 0 : _this$ref.setNativeProps(props); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + var _this$props = this.props, + _this$props$enabled = _this$props.enabled, + enabled = _this$props$enabled === void 0 ? ENABLE_SCREENS : _this$props$enabled, + _this$props$freezeOnB = _this$props.freezeOnBlur, + freezeOnBlur = _this$props$freezeOnB === void 0 ? ENABLE_FREEZE : _this$props$freezeOnB, + rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded2); + if (enabled && isPlatformSupported) { + var _gestureResponseDista, _gestureResponseDista2, _gestureResponseDista3, _gestureResponseDista4; + AnimatedNativeScreen = AnimatedNativeScreen || _reactNative.Animated.createAnimatedComponent(ScreensNativeModules.NativeScreen); + var active = rest.active, + activityState = rest.activityState, + children = rest.children, + isNativeStack = rest.isNativeStack, + gestureResponseDistance = rest.gestureResponseDistance, + props = (0, _objectWithoutProperties2.default)(rest, _excluded3); + if (active !== undefined && activityState === undefined) { + console.warn('It appears that you are using old version of react-navigation library. Please update @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above to take full advantage of new functionality added to react-native-screens'); + activityState = active !== 0 ? 2 : 0; + } + + var handleRef = function handleRef(ref) { + var _ref$viewConfig, _ref$viewConfig$valid; + if (ref != null && (_ref$viewConfig = ref.viewConfig) != null && (_ref$viewConfig$valid = _ref$viewConfig.validAttributes) != null && _ref$viewConfig$valid.style) { + ref.viewConfig.validAttributes.style = Object.assign({}, ref.viewConfig.validAttributes.style, { + display: false + }); + _this3.setRef(ref); + } + }; + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(DelayedFreeze, { + freeze: freezeOnBlur && activityState === 0, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(AnimatedNativeScreen, Object.assign({}, props, { + activityState: activityState, + gestureResponseDistance: { + start: (_gestureResponseDista = gestureResponseDistance == null ? void 0 : gestureResponseDistance.start) != null ? _gestureResponseDista : -1, + end: (_gestureResponseDista2 = gestureResponseDistance == null ? void 0 : gestureResponseDistance.end) != null ? _gestureResponseDista2 : -1, + top: (_gestureResponseDista3 = gestureResponseDistance == null ? void 0 : gestureResponseDistance.top) != null ? _gestureResponseDista3 : -1, + bottom: (_gestureResponseDista4 = gestureResponseDistance == null ? void 0 : gestureResponseDistance.bottom) != null ? _gestureResponseDista4 : -1 + } + , + ref: handleRef, + onTransitionProgress: !isNativeStack ? undefined : _reactNative.Animated.event([{ + nativeEvent: { + progress: this.progress, + closing: this.closing, + goingForward: this.goingForward + } + }], { + useNativeDriver: true + }), + children: !isNativeStack ? + children : (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_TransitionProgressContext.default.Provider, { + value: { + progress: this.progress, + closing: this.closing, + goingForward: this.goingForward + }, + children: children + }) + })) + }); + } else { + var _active = rest.active, + _activityState = rest.activityState, + style = rest.style, + onComponentRef = rest.onComponentRef, + _props = (0, _objectWithoutProperties2.default)(rest, _excluded4); + if (_active !== undefined && _activityState === undefined) { + _activityState = _active !== 0 ? 2 : 0; + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_reactNative.Animated.View, Object.assign({ + style: [style, { + display: _activityState !== 0 ? 'flex' : 'none' + }], + ref: this.setRef + }, _props)); + } + } + }]); + return InnerScreen; + }(_react.default.Component); + function ScreenContainer(props) { + var _props$enabled = props.enabled, + enabled = _props$enabled === void 0 ? ENABLE_SCREENS : _props$enabled, + hasTwoStates = props.hasTwoStates, + rest = (0, _objectWithoutProperties2.default)(props, _excluded5); + if (enabled && isPlatformSupported) { + if (hasTwoStates) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenNavigationContainer, Object.assign({}, rest)); + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenContainer, Object.assign({}, rest)); + } + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, rest)); + } + var styles = _reactNative.StyleSheet.create({ + headerSubview: { + position: 'absolute', + top: 0, + right: 0, + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'center' + } + }); + var ScreenStackHeaderBackButtonImage = function ScreenStackHeaderBackButtonImage(props) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStackHeaderSubview, { + type: "back", + style: styles.headerSubview, + children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_reactNative.Image, Object.assign({ + resizeMode: "center", + fadeDuration: 0 + }, props)) + }); + }; + var ScreenStackHeaderRightView = function ScreenStackHeaderRightView(props) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStackHeaderSubview, Object.assign({}, props, { + type: "right", + style: styles.headerSubview + })); + }; + var ScreenStackHeaderLeftView = function ScreenStackHeaderLeftView(props) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStackHeaderSubview, Object.assign({}, props, { + type: "left", + style: styles.headerSubview + })); + }; + var ScreenStackHeaderCenterView = function ScreenStackHeaderCenterView(props) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStackHeaderSubview, Object.assign({}, props, { + type: "center", + style: styles.headerSubview + })); + }; + var ScreenStackHeaderSearchBarView = function ScreenStackHeaderSearchBarView(props) { + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreensNativeModules.NativeScreenStackHeaderSubview, Object.assign({}, props, { + type: "searchBar", + style: styles.headerSubview + })); + }; + var ScreenContext = _react.default.createContext(InnerScreen); + var Screen = function (_React$Component2) { + (0, _inherits2.default)(Screen, _React$Component2); + var _super2 = _createSuper(Screen); + function Screen() { + (0, _classCallCheck2.default)(this, Screen); + return _super2.apply(this, arguments); + } + (0, _createClass2.default)(Screen, [{ + key: "render", + value: function render() { + var ScreenWrapper = this.context || InnerScreen; + return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ScreenWrapper, Object.assign({}, this.props)); + } + }]); + return Screen; + }(_react.default.Component); + Screen.contextType = ScreenContext; + module.exports = { + Screen: Screen, + ScreenContainer: ScreenContainer, + ScreenContext: ScreenContext, + ScreenStack: ScreenStack, + InnerScreen: InnerScreen, + get NativeScreen() { + return ScreensNativeModules.NativeScreen; + }, + get NativeScreenContainer() { + return ScreensNativeModules.NativeScreenContainer; + }, + get NativeScreenNavigationContainer() { + return ScreensNativeModules.NativeScreenNavigationContainer; + }, + get ScreenStackHeaderConfig() { + return ScreensNativeModules.NativeScreenStackHeaderConfig; + }, + get ScreenStackHeaderSubview() { + return ScreensNativeModules.NativeScreenStackHeaderSubview; + }, + get SearchBar() { + if (!_$$_REQUIRE(_dependencyMap[15], "./utils").isSearchBarAvailableForCurrentPlatform) { + console.warn('Importing SearchBar is only valid on iOS and Android devices.'); + return _reactNative.View; + } + return ScreensNativeModules.NativeSearchBar; + }, + get FullWindowOverlay() { + if (_reactNative.Platform.OS !== 'ios') { + console.warn('Importing FullWindowOverlay is only valid on iOS devices.'); + return _reactNative.View; + } + return ScreensNativeModules.NativeFullWindowOverlay; + }, + ScreenStackHeaderBackButtonImage: ScreenStackHeaderBackButtonImage, + ScreenStackHeaderRightView: ScreenStackHeaderRightView, + ScreenStackHeaderLeftView: ScreenStackHeaderLeftView, + ScreenStackHeaderCenterView: ScreenStackHeaderCenterView, + ScreenStackHeaderSearchBarView: ScreenStackHeaderSearchBarView, + enableScreens: enableScreens, + enableFreeze: enableFreeze, + screensEnabled: screensEnabled, + shouldUseActivityState: shouldUseActivityState, + useTransitionProgress: _useTransitionProgress.default, + isSearchBarAvailableForCurrentPlatform: _$$_REQUIRE(_dependencyMap[15], "./utils").isSearchBarAvailableForCurrentPlatform, + executeNativeBackPress: _$$_REQUIRE(_dependencyMap[15], "./utils").executeNativeBackPress + }; +},725,[3,12,13,50,47,46,132,19,36,1,726,727,728,73,729,730],"node_modules/react-native-screens/src/index.native.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _default = React.createContext(undefined); + exports.default = _default; +},726,[36],"node_modules/react-native-screens/src/TransitionProgressContext.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useTransitionProgress; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _TransitionProgressContext = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./TransitionProgressContext")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function useTransitionProgress() { + var progress = React.useContext(_TransitionProgressContext.default); + if (progress === undefined) { + throw new Error("Couldn't find values for transition progress. Are you inside a screen in Native Stack?"); + } + return progress; + } +},727,[36,3,726],"node_modules/react-native-screens/src/useTransitionProgress.tsx"); +__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { + module.exports = { + "name": "react-native", + "version": "0.70.4", + "bin": "./cli.js", + "description": "A framework for building native apps using React", + "license": "MIT", + "repository": "github:facebook/react-native", + "engines": { + "node": ">=14" + }, + "jest-junit": { + "outputDirectory": "reports/junit", + "outputName": "js-test-results.xml" + }, + "files": [ + "android", + "cli.js", + "flow", + "flow-typed", + "index.js", + "interface.js", + "jest-preset.js", + "jest", + "!jest/private", + "Libraries", + "LICENSE", + "local-cli", + "React-Core.podspec", + "react-native.config.js", + "react.gradle", + "React.podspec", + "React", + "ReactAndroid", + "ReactCommon", + "README.md", + "rn-get-polyfills.js", + "scripts/compose-source-maps.js", + "scripts/find-node-for-xcode.sh", + "scripts/generate-artifacts.js", + "scripts/generate-provider-cli.js", + "scripts/generate-specs-cli.js", + "scripts/codegen/codegen-utils.js", + "scripts/codegen/generate-artifacts-executor.js", + "scripts/codegen/generate-specs-cli-executor.js", + "scripts/hermes/hermes-utils.js", + "scripts/hermes/prepare-hermes-for-build.js", + "scripts/ios-configure-glog.sh", + "scripts/xcode/with-environment.sh", + "scripts/launchPackager.bat", + "scripts/launchPackager.command", + "scripts/node-binary.sh", + "scripts/packager.sh", + "scripts/packager-reporter.js", + "scripts/react_native_pods_utils/script_phases.rb", + "scripts/react_native_pods_utils/script_phases.sh", + "scripts/react_native_pods.rb", + "scripts/cocoapods", + "scripts/react-native-xcode.sh", + "sdks/.hermesversion", + "sdks/hermes-engine", + "sdks/hermesc", + "template.config.js", + "template", + "!template/node_modules", + "!template/package-lock.json", + "!template/yarn.lock", + "third-party-podspecs" + ], + "scripts": { + "start": "react-native start", + "test": "jest", + "test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"", + "flow": "flow", + "flow-check-ios": "flow check", + "flow-check-android": "flow check --flowconfig-name .flowconfig.android", + "lint": "eslint .", + "lint-ci": "./scripts/circleci/analyze_code.sh && yarn shellcheck", + "lint-java": "node ./scripts/lint-java.js", + "shellcheck": "./scripts/circleci/analyze_scripts.sh", + "clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}", + "format": "npm run prettier && npm run clang-format", + "prettier": "prettier --write \"./**/*.{js,md,yml}\"", + "format-check": "prettier --list-different \"./**/*.{js,md,yml}\"", + "update-lock": "npx yarn-deduplicate", + "docker-setup-android": "docker pull reactnativecommunity/react-native-android:5.2", + "docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .", + "test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh", + "test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh", + "test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh --android --js", + "test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e", + "test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation", + "test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit", + "test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e", + "test-ios": "./scripts/objc-test.sh test" + }, + "peerDependencies": { + "react": "18.1.0" + }, + "dependencies": { + "@jest/create-cache-key-function": "^29.0.3", + "@react-native-community/cli": "9.2.1", + "@react-native-community/cli-platform-android": "9.2.1", + "@react-native-community/cli-platform-ios": "9.2.1", + "@react-native/assets": "1.0.0", + "@react-native/normalize-color": "2.0.0", + "@react-native/polyfills": "2.0.0", + "abort-controller": "^3.0.0", + "anser": "^1.4.9", + "base64-js": "^1.1.2", + "event-target-shim": "^5.0.1", + "invariant": "^2.2.4", + "jsc-android": "^250230.2.1", + "memoize-one": "^5.0.0", + "metro-react-native-babel-transformer": "0.72.3", + "metro-runtime": "0.72.3", + "metro-source-map": "0.72.3", + "mkdirp": "^0.5.1", + "nullthrows": "^1.1.1", + "pretty-format": "^26.5.2", + "promise": "^8.0.3", + "react-devtools-core": "4.24.0", + "react-native-gradle-plugin": "^0.70.3", + "react-refresh": "^0.4.0", + "react-shallow-renderer": "^16.15.0", + "regenerator-runtime": "^0.13.2", + "scheduler": "^0.22.0", + "stacktrace-parser": "^0.1.3", + "use-sync-external-store": "^1.0.0", + "whatwg-fetch": "^3.0.0", + "ws": "^6.1.4", + "react-native-codegen": "^0.70.6" + }, + "devDependencies": { + "flow-bin": "^0.182.0", + "hermes-eslint": "0.8.0", + "react": "18.1.0", + "react-test-renderer": "18.1.0", + "@babel/core": "^7.14.0", + "@babel/eslint-parser": "^7.18.2", + "@babel/generator": "^7.14.0", + "@babel/plugin-transform-regenerator": "^7.0.0", + "@react-native-community/eslint-plugin": "*", + "@react-native/eslint-plugin-specs": "^0.70.0", + "@reactions/component": "^2.0.2", + "async": "^3.2.2", + "clang-format": "^1.2.4", + "connect": "^3.6.5", + "coveralls": "^3.1.1", + "eslint": "^7.32.0", + "eslint-config-fb-strict": "^26.0.0", + "eslint-config-fbjs": "^3.1.1", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-babel": "^5.3.1", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-flowtype": "^7.0.0", + "eslint-plugin-jest": "^25.2.4", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-react": "^7.26.1", + "eslint-plugin-react-hooks": "^4.2.0", + "eslint-plugin-react-native": "^3.11.0", + "eslint-plugin-relay": "^1.8.2", + "inquirer": "^7.1.0", + "jest": "^26.6.3", + "jest-junit": "^10.0.0", + "jscodeshift": "^0.13.1", + "metro-babel-register": "0.72.3", + "metro-memory-fs": "0.72.3", + "mkdirp": "^0.5.1", + "prettier": "^2.4.1", + "shelljs": "^0.8.5", + "signedsource": "^1.0.0", + "ws": "^6.1.4", + "yargs": "^15.3.1" + }, + "codegenConfig": { + "libraries": [ + { + "name": "FBReactNativeSpec", + "type": "modules", + "ios": {}, + "android": {}, + "jsSrcsDir": "Libraries" + }, + { + "name": "rncore", + "type": "components", + "ios": {}, + "android": {}, + "jsSrcsDir": "Libraries" + } + ] + } +}; +},728,[],"node_modules/react-native/package.json"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Freeze = Freeze; + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-freeze/src/index.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function Suspender(_ref) { + var freeze = _ref.freeze, + children = _ref.children; + var promiseCache = (0, _react.useRef)({}).current; + if (freeze && !promiseCache.promise) { + promiseCache.promise = new Promise(function (resolve) { + promiseCache.resolve = resolve; + }); + throw promiseCache.promise; + } else if (freeze) { + throw promiseCache.promise; + } else if (promiseCache.promise) { + promiseCache.resolve(); + promiseCache.promise = undefined; + } + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_react.Fragment, { + children: children + }); + } + function Freeze(_ref2) { + var freeze = _ref2.freeze, + children = _ref2.children, + _ref2$placeholder = _ref2.placeholder, + placeholder = _ref2$placeholder === void 0 ? null : _ref2$placeholder; + return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_react.Suspense, { + fallback: placeholder, + children: (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(Suspender, { + freeze: freeze, + children: children + }) + }); + } +},729,[36,73],"node_modules/react-freeze/src/index.tsx"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.executeNativeBackPress = executeNativeBackPress; + exports.isSearchBarAvailableForCurrentPlatform = void 0; + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + var isSearchBarAvailableForCurrentPlatform = ['ios', 'android'].includes(_reactNative.Platform.OS); + exports.isSearchBarAvailableForCurrentPlatform = isSearchBarAvailableForCurrentPlatform; + function executeNativeBackPress() { + _reactNative.BackHandler.exitApp(); + return true; + } +},730,[1],"node_modules/react-native-screens/src/utils.ts"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.HeadlessCheckoutScreen = void 0; + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); + var _this = this, + _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/HeadlessCheckoutScreen.tsx"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var log = ""; + var merchantPaymentId = null; + var merchantCheckoutData = null; + var merchantCheckoutAdditionalInfo = null; + var merchantPayment = null; + var merchantPrimerError = null; + var selectImplemetationType = function selectImplemetationType(paymentMethod) { + return new Promise(function (resolve, reject) { + var buttons = []; + paymentMethod.paymentMethodManagerCategories.forEach(function (category) { + buttons.push({ + text: category, + style: "default", + onPress: function onPress() { + resolve(category); + } + }); + }); + buttons.push({ + text: "Cancel", + style: "cancel", + onPress: function onPress() { + var err = new Error("Operation cancelled"); + reject(err); + } + }); + _reactNative.Alert.alert("", "Select implementation to test", buttons, { + cancelable: true + }); + }); + }; + var HeadlessCheckoutScreen = function HeadlessCheckoutScreen(props) { + var _useState = (0, _react.useState)(true), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isLoading = _useState2[0], + setIsLoading = _useState2[1]; + var _useState3 = (0, _react.useState)(null), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + clientSession = _useState4[0], + setClientSession = _useState4[1]; + var _useState5 = (0, _react.useState)(undefined), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + paymentMethods = _useState6[0], + setPaymentMethods = _useState6[1]; + var _useState7 = (0, _react.useState)(undefined), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + paymentMethodsAssets = _useState8[0], + setPaymentMethodsAssets = _useState8[1]; + var updateLogs = function updateLogs(str) { + console.log(str); + var currentLog = log; + var combinedLog = currentLog + "\n" + str; + log = combinedLog; + }; + var settings = { + paymentHandling: (0, _$$_REQUIRE(_dependencyMap[5], "../network/Environment").getPaymentHandlingStringVal)(_$$_REQUIRE(_dependencyMap[6], "../models/IClientSessionRequestBody").appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + } + }, + debugOptions: { + is3DSSanityCheckEnabled: false + }, + headlessUniversalCheckoutCallbacks: { + onAvailablePaymentMethodsLoad: function onAvailablePaymentMethodsLoad(availablePaymentMethods) { + updateLogs("\n\u2139\uFE0F onAvailablePaymentMethodsLoad\n" + JSON.stringify(availablePaymentMethods, null, 2) + "\n"); + setIsLoading(false); + }, + onPreparationStart: function onPreparationStart(paymentMethodType) { + updateLogs("\n\u2139\uFE0F onPreparationStart\npaymentMethodType: " + paymentMethodType + "\n"); + }, + onPaymentMethodShow: function onPaymentMethodShow(paymentMethodType) { + updateLogs("\n\u2139\uFE0F onPaymentMethodShow\npaymentMethodType: " + paymentMethodType + "\n"); + }, + onTokenizationStart: function onTokenizationStart(paymentMethodType) { + updateLogs("\n\u2139\uFE0F onTokenizationStart\npaymentMethodType: " + paymentMethodType + "\n"); + }, + onBeforeClientSessionUpdate: function onBeforeClientSessionUpdate() { + updateLogs("\n\u2139\uFE0F onBeforeClientSessionUpdate\n"); + }, + onClientSessionUpdate: function onClientSessionUpdate(clientSession) { + updateLogs("\n\u2139\uFE0F onClientSessionUpdate\nclientSession: " + JSON.stringify(clientSession, null, 2) + "\n"); + }, + onBeforePaymentCreate: function onBeforePaymentCreate(tmpCheckoutData, handler) { + updateLogs("\n\u2139\uFE0F onBeforePaymentCreate\ncheckoutData: " + JSON.stringify(tmpCheckoutData, null, 2) + "\n"); + handler.continuePaymentCreation(); + }, + onCheckoutAdditionalInfo: function onCheckoutAdditionalInfo(additionalInfo) { + merchantCheckoutAdditionalInfo = additionalInfo; + updateLogs("\n\u2139\uFE0F onCheckoutPending\nadditionalInfo: " + JSON.stringify(additionalInfo, null, 2) + "\n"); + setIsLoading(false); + }, + onCheckoutComplete: function onCheckoutComplete(checkoutData) { + merchantCheckoutData = checkoutData; + updateLogs("\n\u2705 onCheckoutComplete\ncheckoutData: " + JSON.stringify(checkoutData, null, 2) + "\n"); + setIsLoading(false); + navigateToResultScreen(); + }, + onCheckoutPending: function onCheckoutPending(checkoutAdditionalInfo) { + merchantCheckoutAdditionalInfo = checkoutAdditionalInfo; + updateLogs("\n\u2705 onCheckoutPending\nadditionalInfo: " + JSON.stringify(checkoutAdditionalInfo, null, 2) + "\n"); + setIsLoading(false); + navigateToResultScreen(); + }, + onTokenizationSuccess: function () { + var _onTokenizationSuccess = (0, _asyncToGenerator2.default)(function* (paymentMethodTokenData, handler) { + updateLogs("\n\u2139\uFE0F onTokenizationSuccess\npaymentMethodTokenData: " + JSON.stringify(paymentMethodTokenData, null, 2) + "\n"); + setIsLoading(false); + try { + var payment = yield (0, _$$_REQUIRE(_dependencyMap[7], "../network/api").createPayment)(paymentMethodTokenData.token); + merchantPayment = payment; + if (payment.requiredAction && payment.requiredAction.clientToken) { + merchantPaymentId = payment.id; + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + updateLogs("\nโš ๏ธ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang."); + } + handler.continueWithNewClientToken(payment.requiredAction.clientToken); + } else { + setIsLoading(false); + handler.complete(); + navigateToResultScreen(); + } + } catch (err) { + merchantPrimerError = err; + updateLogs("\n\uD83D\uDED1 Error:\n" + JSON.stringify(err, null, 2)); + setIsLoading(false); + handler.complete(); + console.error(err); + navigateToResultScreen(); + } + }); + function onTokenizationSuccess(_x, _x2) { + return _onTokenizationSuccess.apply(this, arguments); + } + return onTokenizationSuccess; + }(), + onCheckoutResume: function () { + var _onCheckoutResume = (0, _asyncToGenerator2.default)(function* (resumeToken, handler) { + updateLogs("\n\u2139\uFE0F onCheckoutResume\nresumeToken: " + resumeToken); + try { + if (merchantPaymentId) { + var payment = yield (0, _$$_REQUIRE(_dependencyMap[7], "../network/api").resumePayment)(merchantPaymentId, resumeToken); + merchantPayment = payment; + handler.complete(); + updateLogs("\n\u2705 Payment resumed\npayment: " + JSON.stringify(payment, null, 2)); + setIsLoading(false); + navigateToResultScreen(); + merchantPaymentId = null; + } else { + var err = new Error("Invalid value for paymentId"); + throw err; + } + } catch (err) { + console.error(err); + handler.complete(); + updateLogs("\n\uD83D\uDED1 Payment resume\nerror: " + JSON.stringify(err, null, 2)); + setIsLoading(false); + merchantPaymentId = null; + navigateToResultScreen(); + } + }); + function onCheckoutResume(_x3, _x4) { + return _onCheckoutResume.apply(this, arguments); + } + return onCheckoutResume; + }(), + onError: function onError(err) { + merchantPrimerError = err; + updateLogs("\n\uD83D\uDED1 onError\nerror: " + JSON.stringify(err, null, 2)); + console.error(err); + setIsLoading(false); + navigateToResultScreen(); + } + } + }; + if (_$$_REQUIRE(_dependencyMap[6], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName) { + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: _$$_REQUIRE(_dependencyMap[6], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName + }; + } + (0, _react.useEffect)(function () { + createClientSessionIfNeeded().then(function (session) { + setIsLoading(false); + startHUC(session.clientToken); + }).catch(function (err) { + setIsLoading(false); + console.error(err); + }); + }, []); + var createClientSessionIfNeeded = function createClientSessionIfNeeded() { + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + try { + if (clientSession === null) { + var newClientSession = yield (0, _$$_REQUIRE(_dependencyMap[7], "../network/api").createClientSession)(); + setClientSession(newClientSession); + resolve(newClientSession); + } else { + resolve(clientSession); + } + } catch (err) { + reject(err); + } + }); + return function (_x5, _x6) { + return _ref.apply(this, arguments); + }; + }()); + }; + var navigateToResultScreen = function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* () { + try { + props.navigation.navigate("Result", { + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantCheckoutData: merchantCheckoutData, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: log + }); + setClientSession(null); + setIsLoading(true); + yield createClientSessionIfNeeded(); + } catch (err) { + console.error(err); + } + setIsLoading(false); + }); + return function navigateToResultScreen() { + return _ref2.apply(this, arguments); + }; + }(); + var startHUC = function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (clientToken) { + try { + var availablePaymentMethods = yield _$$_REQUIRE(_dependencyMap[8], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + setPaymentMethods(availablePaymentMethods); + var assetsManager = new (_$$_REQUIRE(_dependencyMap[8], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").AssetsManager)(); + var assets = yield assetsManager.getPaymentMethodAssets(); + setPaymentMethodsAssets(assets); + } catch (err) { + console.error(err); + } + }); + return function startHUC(_x7) { + return _ref3.apply(this, arguments); + }; + }(); + var paymentMethodButtonTapped = function () { + var _ref4 = (0, _asyncToGenerator2.default)(function* (paymentMethodType) { + try { + var paymentMethod = paymentMethods == null ? void 0 : paymentMethods.find(function (pm) { + return pm.paymentMethodType === paymentMethodType; + }); + if (!paymentMethod) { + return; + } + if (paymentMethod.paymentMethodManagerCategories.length === 1) { + pay(paymentMethod, paymentMethod.paymentMethodManagerCategories[0]); + } else { + var selectedImplementationType = yield selectImplemetationType(paymentMethod); + pay(paymentMethod, selectedImplementationType); + } + } catch (err) { + updateLogs("\n\uD83D\uDED1 paymentMethodButtonTapped\nerror: " + JSON.stringify(err, null, 2)); + console.error(err); + } + }); + return function paymentMethodButtonTapped(_x8) { + return _ref4.apply(this, arguments); + }; + }(); + var pay = function () { + var _ref5 = (0, _asyncToGenerator2.default)(function* (paymentMethod, implementationType) { + try { + if (implementationType === "NATIVE_UI") { + setIsLoading(true); + yield createClientSessionIfNeeded(); + var nativeUIManager = new (_$$_REQUIRE(_dependencyMap[8], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").NativeUIManager)(); + yield nativeUIManager.configure(paymentMethod.paymentMethodType); + if (paymentMethod.paymentMethodType === "KLARNA") { + yield nativeUIManager.showPaymentMethod(_$$_REQUIRE(_dependencyMap[8], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").SessionIntent.VAULT); + } else { + yield nativeUIManager.showPaymentMethod(_$$_REQUIRE(_dependencyMap[8], "/Users/evangelos/VSCode/primer-sdk-react-native/src/index").SessionIntent.CHECKOUT); + } + } else if (implementationType === "RAW_DATA") { + yield createClientSessionIfNeeded(); + if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { + props.navigation.navigate('RawPhoneNumberData', { + paymentMethodType: paymentMethod.paymentMethodType + }); + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL_OUTLETS") { + props.navigation.navigate('RawRetailOutlet', { + paymentMethodType: paymentMethod.paymentMethodType + }); + } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { + props.navigation.navigate('RawAdyenBancontactCard', { + paymentMethodType: paymentMethod.paymentMethodType + }); + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { + props.navigation.navigate('RawCardData', { + paymentMethodType: paymentMethod.paymentMethodType + }); + } + } else { + _reactNative.Alert.alert("Warning!", implementationType + " is not supported on Headless Universal Checkout yet.", [{ + text: "Cancel", + style: "cancel", + onPress: function onPress() {} + }], { + cancelable: true + }); + } + } catch (err) { + updateLogs("\n\uD83D\uDED1 pay\nerror: " + JSON.stringify(err, null, 2)); + setIsLoading(false); + console.error(err); + } + }); + return function pay(_x9, _x10) { + return _ref5.apply(this, arguments); + }; + }(); + var renderPaymentMethodsUI = function renderPaymentMethodsUI() { + if (!paymentMethodsAssets) { + return null; + } + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + children: paymentMethodsAssets.map(function (paymentMethodsAsset) { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.TouchableOpacity, { + style: { + marginHorizontal: 20, + marginVertical: 8, + height: 50, + backgroundColor: paymentMethodsAsset.paymentMethodBackgroundColor.colored || paymentMethodsAsset.paymentMethodBackgroundColor.light, + justifyContent: 'center', + alignItems: 'center', + borderRadius: 4 + }, + onPress: function onPress() { + paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); + }, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.Image, { + style: { + height: 36, + width: '100%', + resizeMode: "contain" + }, + source: { + uri: paymentMethodsAsset.paymentMethodLogo.colored || paymentMethodsAsset.paymentMethodLogo.light + } + }) + }, paymentMethodsAsset.paymentMethodType); + }) + }); + }; + var renderLoadingOverlay = function renderLoadingOverlay() { + if (!isLoading) { + return null; + } else { + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.View, { + style: { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'rgba(200, 200, 200, 0.5)', + zIndex: 1000 + }, + children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_reactNative.ActivityIndicator, { + size: "small" + }) + }); + } + }; + return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: { + paddingHorizontal: 24, + flex: 1 + }, + children: [renderPaymentMethodsUI(), renderLoadingOverlay()] + }); + }; + exports.HeadlessCheckoutScreen = HeadlessCheckoutScreen; +},731,[3,65,19,36,1,478,479,500,544,73],"src/screens/HeadlessCheckoutScreen.tsx"); +__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { + module.exports = { + "name": "ReactNativeExample", + "displayName": "ReactNativeExample" +}; +},732,[],"app.json"); +__r(40); __r(0); \ No newline at end of file diff --git a/example/package-lock.json b/example/package-lock.json deleted file mode 100644 index 4b3dc2cc6..000000000 --- a/example/package-lock.json +++ /dev/null @@ -1,6304 +0,0 @@ -{ - "name": "@primer-io/react-native-example", - "version": "0.0.1", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/core": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz", - "integrity": "sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.10", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.10", - "@babel/types": "^7.12.10", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } - } - }, - "@babel/generator": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.11.tgz", - "integrity": "sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==", - "requires": { - "@babel/types": "^7.12.11", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.10.tgz", - "integrity": "sha512-XplmVbC1n+KY6jL8/fgLVXXUauDIB+lD5+GsQEh6F6GBF1dq1qy4DP4yXWzDKcoqXB3X58t61e85Fitoww4JVQ==", - "requires": { - "@babel/types": "^7.12.10" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz", - "integrity": "sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA==", - "requires": { - "@babel/helper-explode-assignable-expression": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.1.tgz", - "integrity": "sha512-hkL++rWeta/OVOBTRJc9a5Azh5mt5WgZUGAKMD8JM141YsE08K//bp1unBBieO6rUKkIPyUE0USQ30jAy3Sk1w==", - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-member-expression-to-functions": "^7.12.1", - "@babel/helper-optimise-call-expression": "^7.10.4", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.10.4" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz", - "integrity": "sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "regexpu-core": "^5.0.1" - }, - "dependencies": { - "@babel/helper-annotate-as-pure": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz", - "integrity": "sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==", - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-define-map": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.16.7.tgz", - "integrity": "sha512-SoIOh18NdeBBQjiLF1H32jpDLkApTbUWwEXmqaxn1KEm7aqry4reaghMdCdkbdloVmMwUxM/uCcTmHWj9zJbxQ==", - "requires": { - "@babel/helper-function-name": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", - "requires": { - "@babel/highlight": "^7.16.7" - } - }, - "@babel/helper-function-name": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz", - "integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==", - "requires": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - } - }, - "@babel/parser": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.9.tgz", - "integrity": "sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg==" - }, - "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-environment-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", - "requires": { - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-explode-assignable-expression": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz", - "integrity": "sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ==", - "requires": { - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-function-name": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz", - "integrity": "sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==", - "requires": { - "@babel/helper-get-function-arity": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", - "requires": { - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", - "requires": { - "@babel/types": "^7.16.7" - }, - "dependencies": { - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - } - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.7.tgz", - "integrity": "sha512-DCsuPyeWxeHgh1Dus7APn7iza42i/qXqiFPWyBDdOFtvS581JQePsc1F/nD+fHrcswhLlRc2UpYS1NwERxZhHw==", - "requires": { - "@babel/types": "^7.12.7" - } - }, - "@babel/helper-module-imports": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.5.tgz", - "integrity": "sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA==", - "requires": { - "@babel/types": "^7.12.5" - } - }, - "@babel/helper-module-transforms": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz", - "integrity": "sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==", - "requires": { - "@babel/helper-module-imports": "^7.12.1", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-simple-access": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.11.0", - "@babel/helper-validator-identifier": "^7.10.4", - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.12.1", - "@babel/types": "^7.12.1", - "lodash": "^4.17.19" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.10.tgz", - "integrity": "sha512-4tpbU0SrSTjjt65UMWSrUOPZTsgvPgGG4S8QSTNHacKzpS51IVWGDj0yCwyeZND/i+LSN2g/O63jEXEWm49sYQ==", - "requires": { - "@babel/types": "^7.12.10" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - }, - "@babel/helper-replace-supers": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.12.11.tgz", - "integrity": "sha512-q+w1cqmhL7R0FNzth/PLLp2N+scXEK/L2AHbXUyydxp828F4FEa5WcVoqui9vFRiHDQErj9Zof8azP32uGVTRA==", - "requires": { - "@babel/helper-member-expression-to-functions": "^7.12.7", - "@babel/helper-optimise-call-expression": "^7.12.10", - "@babel/traverse": "^7.12.10", - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-simple-access": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.12.1.tgz", - "integrity": "sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA==", - "requires": { - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.12.1.tgz", - "integrity": "sha512-Mf5AUuhG1/OCChOJ/HcADmvcHM42WJockombn8ATJG3OnyiSxBK/Mm5x78BQWvmtXZKHgbjdGL2kin/HOLlZGA==", - "requires": { - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz", - "integrity": "sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==", - "requires": { - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==" - }, - "@babel/helpers": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.9.tgz", - "integrity": "sha512-cPCt915ShDWUEzEp3+UNRktO2n6v49l5RSnG9M5pS24hA+2FAc5si+Pn1i4VVbQQ+jh+bIZhPFQOJOzbrOYY1Q==", - "requires": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.17.9", - "@babel/types": "^7.17.0" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", - "requires": { - "@babel/highlight": "^7.16.7" - } - }, - "@babel/generator": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz", - "integrity": "sha512-rAdDousTwxbIxbz5I7GEQ3lUip+xVCXooZNbsydCWs3xA7ZsYOv+CFRdzGxRX78BmQHu9B1Eso59AOZQOJDEdQ==", - "requires": { - "@babel/types": "^7.17.0", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-function-name": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz", - "integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==", - "requires": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/parser": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.9.tgz", - "integrity": "sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg==" - }, - "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/traverse": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.9.tgz", - "integrity": "sha512-PQO8sDIJ8SIwipTPiR71kJQCKQYB5NGImbOviK8K+kg5xkNSYXLBupuX9QhatFowrsvo9Hj8WgArg3W7ijNAQw==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.17.9", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.17.9", - "@babel/types": "^7.17.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } - } - }, - "@babel/highlight": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.9.tgz", - "integrity": "sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==" - } - } - }, - "@babel/parser": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.11.tgz", - "integrity": "sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==" - }, - "@babel/plugin-external-helpers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-external-helpers/-/plugin-external-helpers-7.16.7.tgz", - "integrity": "sha512-3MvRbPgl957CR3ZMeW/ukGrKDM3+m5vtTkgrBAKKbUgrAkb1molwjRqUvAYsCnwboN1vXgHStotdhAvTgQS/Gw==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz", - "integrity": "sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-proposal-export-default-from": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.12.1.tgz", - "integrity": "sha512-z5Q4Ke7j0AexQRfgUvnD+BdCSgpTEKnqQ3kskk2jWtOBulxICzd1X9BGt7kmWftxZ2W3++OZdt5gtmC8KLxdRQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-export-default-from": "^7.12.1" - } - }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz", - "integrity": "sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", - "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0", - "@babel/plugin-transform-parameters": "^7.12.1" - } - }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz", - "integrity": "sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" - } - }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.7.tgz", - "integrity": "sha512-4ovylXZ0PWmwoOvhU2vhnzVNnm88/Sm9nx7V8BPgMvAzn5zDou3/Awy0EjglyubVHasJj+XCEkr/r1X3P5elCA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1", - "@babel/plugin-syntax-optional-chaining": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-default-from": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.12.1.tgz", - "integrity": "sha512-dP5eGg6tHEkhnRD2/vRG/KJKRSg8gtxu2i+P/8/yFPJn/CfPU5G0/7Gks2i3M6IOVAPQekmsLN9LPsmXFFL4Uw==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-flow": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.12.1.tgz", - "integrity": "sha512-1lBLLmtxrwpm4VKmtVFselI/P3pX+G63fAtUUt6b2Nzgao77KNDwyuRt90Mj2/9pKobtt68FdvjfqohZjg/FCA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", - "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", - "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz", - "integrity": "sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz", - "integrity": "sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.12.tgz", - "integrity": "sha512-VOEPQ/ExOVqbukuP7BYJtI5ZxxsmegTwzZ04j1aF0dkSypGo9XpDHuOrABsJu+ie+penpSJheDJ11x1BEZNiyQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz", - "integrity": "sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.10.4", - "@babel/helper-define-map": "^7.10.4", - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-optimise-call-expression": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.10.4", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz", - "integrity": "sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz", - "integrity": "sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz", - "integrity": "sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==", - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-flow-strip-types": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.12.10.tgz", - "integrity": "sha512-0ti12wLTLeUIzu9U7kjqIn4MyOL7+Wibc7avsHhj4o1l5C0ATs8p2IMHrVYjm9t9wzhfEO6S3kxax0Rpdo8LTg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-flow": "^7.12.1" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz", - "integrity": "sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz", - "integrity": "sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==", - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz", - "integrity": "sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz", - "integrity": "sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz", - "integrity": "sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==", - "requires": { - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-simple-access": "^7.12.1", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-object-assign": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.12.1.tgz", - "integrity": "sha512-geUHn4XwHznRAFiuROTy0Hr7bKbpijJCmr1Svt/VNGhpxmp0OrdxURNpWbOAf94nUbL+xj6gbxRVPHWIbRpRoA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz", - "integrity": "sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", - "requires": { - "@babel/highlight": "^7.16.7" - } - }, - "@babel/generator": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz", - "integrity": "sha512-rAdDousTwxbIxbz5I7GEQ3lUip+xVCXooZNbsydCWs3xA7ZsYOv+CFRdzGxRX78BmQHu9B1Eso59AOZQOJDEdQ==", - "requires": { - "@babel/types": "^7.17.0", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-function-name": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz", - "integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==", - "requires": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.17.7", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz", - "integrity": "sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw==", - "requires": { - "@babel/types": "^7.17.0" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz", - "integrity": "sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==", - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - }, - "@babel/helper-replace-supers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz", - "integrity": "sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw==", - "requires": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-member-expression-to-functions": "^7.16.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/parser": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.9.tgz", - "integrity": "sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg==" - }, - "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/traverse": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.9.tgz", - "integrity": "sha512-PQO8sDIJ8SIwipTPiR71kJQCKQYB5NGImbOviK8K+kg5xkNSYXLBupuX9QhatFowrsvo9Hj8WgArg3W7ijNAQw==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.17.9", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.17.9", - "@babel/types": "^7.17.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz", - "integrity": "sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz", - "integrity": "sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw==", - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==" - } - } - }, - "@babel/plugin-transform-react-display-name": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.12.1.tgz", - "integrity": "sha512-cAzB+UzBIrekfYxyLlFqf/OagTvHLcVBb5vpouzkYkBclRPraiygVnafvAoipErZLI8ANv8Ecn6E/m5qPXD26w==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-react-jsx": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.12.12.tgz", - "integrity": "sha512-JDWGuzGNWscYcq8oJVCtSE61a5+XAOos+V0HrxnDieUus4UMnBEosDnY1VJqU5iZ4pA04QY7l0+JvHL1hZEfsw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.12.10", - "@babel/helper-module-imports": "^7.12.5", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-jsx": "^7.12.1", - "@babel/types": "^7.12.12" - } - }, - "@babel/plugin-transform-react-jsx-self": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.12.1.tgz", - "integrity": "sha512-FbpL0ieNWiiBB5tCldX17EtXgmzeEZjFrix72rQYeq9X6nUK38HCaxexzVQrZWXanxKJPKVVIU37gFjEQYkPkA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-react-jsx-source": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.12.1.tgz", - "integrity": "sha512-keQ5kBfjJNRc6zZN1/nVHCd6LLIHq4aUKcVnvE/2l+ZZROSbqoiGFRtT5t3Is89XJxBQaP7NLZX2jgGHdZvvFQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz", - "integrity": "sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==", - "requires": { - "regenerator-transform": "^0.14.2" - } - }, - "@babel/plugin-transform-runtime": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.10.tgz", - "integrity": "sha512-xOrUfzPxw7+WDm9igMgQCbO3cJKymX7dFdsgRr1eu9n3KjjyU4pptIXbXPseQDquw+W+RuJEJMHKHNsPNNm3CA==", - "requires": { - "@babel/helper-module-imports": "^7.12.5", - "@babel/helper-plugin-utils": "^7.10.4", - "semver": "^5.5.1" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz", - "integrity": "sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz", - "integrity": "sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.7.tgz", - "integrity": "sha512-VEiqZL5N/QvDbdjfYQBhruN0HYjSPjC4XkeqW4ny/jNtH9gcbgaqBIXYEZCNnESMAGs0/K/R7oFGMhOyu/eIxg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz", - "integrity": "sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-typescript": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.12.1.tgz", - "integrity": "sha512-VrsBByqAIntM+EYMqSm59SiMEf7qkmI9dqMt6RbD/wlwueWmYcI0FFK5Fj47pP6DRZm+3teXjosKlwcZJ5lIMw==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-typescript": "^7.12.1" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz", - "integrity": "sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/register": { - "version": "7.17.7", - "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.17.7.tgz", - "integrity": "sha512-fg56SwvXRifootQEDQAu1mKdjh5uthPzdO0N6t358FktfL4XjAVXuH58ULoiW8mesxiOgNIrxiImqEwv0+hRRA==", - "requires": { - "clone-deep": "^4.0.1", - "find-cache-dir": "^2.0.0", - "make-dir": "^2.1.0", - "pirates": "^4.0.5", - "source-map-support": "^0.5.16" - } - }, - "@babel/runtime": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz", - "integrity": "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@babel/template": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.7.tgz", - "integrity": "sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/parser": "^7.12.7", - "@babel/types": "^7.12.7" - } - }, - "@babel/traverse": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.12.tgz", - "integrity": "sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==", - "requires": { - "@babel/code-frame": "^7.12.11", - "@babel/generator": "^7.12.11", - "@babel/helper-function-name": "^7.12.11", - "@babel/helper-split-export-declaration": "^7.12.11", - "@babel/parser": "^7.12.11", - "@babel/types": "^7.12.12", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" - }, - "dependencies": { - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } - } - }, - "@babel/types": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.12.tgz", - "integrity": "sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==", - "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" - } - }, - "@cnakazawa/watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", - "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", - "requires": { - "exec-sh": "^0.3.2", - "minimist": "^1.2.0" - } - }, - "@hapi/address": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", - "integrity": "sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ==" - }, - "@hapi/bourne": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@hapi/bourne/-/bourne-1.3.2.tgz", - "integrity": "sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA==" - }, - "@hapi/hoek": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-8.5.1.tgz", - "integrity": "sha512-yN7kbciD87WzLGc5539Tn0sApjyiGHAJgKvG9W8C7O+6c7qmoQMfVs0W4bX17eqz6C78QJqqFrtgdK5EWf6Qow==" - }, - "@hapi/joi": { - "version": "15.1.1", - "resolved": "https://registry.npmjs.org/@hapi/joi/-/joi-15.1.1.tgz", - "integrity": "sha512-entf8ZMOK8sc+8YfeOlM8pCfg3b5+WZIKBfUaaJT8UsjAAPjartzxIYm3TIbjvA4u+u++KbcXD38k682nVHDAQ==", - "requires": { - "@hapi/address": "2.x.x", - "@hapi/bourne": "1.x.x", - "@hapi/hoek": "8.x.x", - "@hapi/topo": "3.x.x" - } - }, - "@hapi/topo": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-3.1.6.tgz", - "integrity": "sha512-tAag0jEcjwH+P2quUfipd7liWCNX2F8NvYjQp2wtInsZxnMlypdw0FtAOLxtvvkO+GSRRbmNi8m/5y42PQJYCQ==", - "requires": { - "@hapi/hoek": "^8.3.0" - } - }, - "@jest/console": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.9.0.tgz", - "integrity": "sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ==", - "requires": { - "@jest/source-map": "^24.9.0", - "chalk": "^2.0.1", - "slash": "^2.0.0" - }, - "dependencies": { - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" - } - } - }, - "@jest/fake-timers": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.9.0.tgz", - "integrity": "sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A==", - "requires": { - "@jest/types": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-mock": "^24.9.0" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "@jest/source-map": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-24.9.0.tgz", - "integrity": "sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg==", - "requires": { - "callsites": "^3.0.0", - "graceful-fs": "^4.1.15", - "source-map": "^0.6.0" - }, - "dependencies": { - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "@jest/test-result": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.9.0.tgz", - "integrity": "sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA==", - "requires": { - "@jest/console": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/istanbul-lib-coverage": "^2.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@react-native-community/cli-debugger-ui": { - "version": "4.13.1", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-4.13.1.tgz", - "integrity": "sha512-UFnkg5RTq3s2X15fSkrWY9+5BKOFjihNSnJjTV2H5PtTUFbd55qnxxPw8CxSfK0bXb1IrSvCESprk2LEpqr5cg==", - "requires": { - "serve-static": "^1.13.1" - } - }, - "@react-native-community/cli-hermes": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-4.13.0.tgz", - "integrity": "sha512-oG+w0Uby6rSGsUkJGLvMQctZ5eVRLLfhf84lLyz942OEDxFRa9U19YJxOe9FmgCKtotbYiM3P/XhK+SVCuerPQ==", - "requires": { - "@react-native-community/cli-platform-android": "^4.13.0", - "@react-native-community/cli-tools": "^4.13.0", - "chalk": "^3.0.0", - "hermes-profile-transformer": "^0.0.6", - "ip": "^1.1.5" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@react-native-community/cli-platform-android": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-4.13.0.tgz", - "integrity": "sha512-3i8sX8GklEytUZwPnojuoFbCjIRzMugCdzDIdZ9UNmi/OhD4/8mLGO0dgXfT4sMWjZwu3qjy45sFfk2zOAgHbA==", - "requires": { - "@react-native-community/cli-tools": "^4.13.0", - "chalk": "^3.0.0", - "execa": "^1.0.0", - "fs-extra": "^8.1.0", - "glob": "^7.1.3", - "jetifier": "^1.6.2", - "lodash": "^4.17.15", - "logkitty": "^0.7.1", - "slash": "^3.0.0", - "xmldoc": "^1.1.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@react-native-community/cli-platform-ios": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-4.13.0.tgz", - "integrity": "sha512-6THlTu8zp62efkzimfGr3VIuQJ2514o+vScZERJCV1xgEi8XtV7mb/ZKt9o6Y9WGxKKkc0E0b/aVAtgy+L27CA==", - "requires": { - "@react-native-community/cli-tools": "^4.13.0", - "chalk": "^3.0.0", - "glob": "^7.1.3", - "js-yaml": "^3.13.1", - "lodash": "^4.17.15", - "plist": "^3.0.1", - "xcode": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@react-native-community/cli-server-api": { - "version": "4.13.1", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-4.13.1.tgz", - "integrity": "sha512-vQzsFKD9CjHthA2ehTQX8c7uIzlI9A7ejaIow1I9RlEnLraPH2QqVDmzIdbdh5Od47UPbRzamCgAP8Bnqv3qwQ==", - "requires": { - "@react-native-community/cli-debugger-ui": "^4.13.1", - "@react-native-community/cli-tools": "^4.13.0", - "compression": "^1.7.1", - "connect": "^3.6.5", - "errorhandler": "^1.5.0", - "nocache": "^2.1.0", - "pretty-format": "^25.1.0", - "serve-static": "^1.13.1", - "ws": "^1.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "pretty-format": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.5.0.tgz", - "integrity": "sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==", - "requires": { - "@jest/types": "^25.5.0", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^16.12.0" - } - } - } - }, - "@react-native-community/cli-tools": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-4.13.0.tgz", - "integrity": "sha512-s4f489h5+EJksn4CfheLgv5PGOM0CDmK1UEBLw2t/ncWs3cW2VI7vXzndcd/WJHTv3GntJhXDcJMuL+Z2IAOgg==", - "requires": { - "chalk": "^3.0.0", - "lodash": "^4.17.15", - "mime": "^2.4.1", - "node-fetch": "^2.6.0", - "open": "^6.2.0", - "shell-quote": "1.6.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@react-native-community/cli-types": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-4.10.1.tgz", - "integrity": "sha512-ael2f1onoPF3vF7YqHGWy7NnafzGu+yp88BbFbP0ydoCP2xGSUzmZVw0zakPTC040Id+JQ9WeFczujMkDy6jYQ==" - }, - "@react-native-masked-view/masked-view": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@react-native-masked-view/masked-view/-/masked-view-0.2.6.tgz", - "integrity": "sha512-303CxmetUmgiX9NSUxatZkNh9qTYYdiM8xkGf9I3Uj20U3eGY3M78ljeNQ4UVCJA+FNGS5nC1dtS9GjIqvB4dg==" - }, - "@react-native-picker/picker": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@react-native-picker/picker/-/picker-2.4.0.tgz", - "integrity": "sha512-duGZc3a8Qa21YPrA4U3oR9NAUzBA66FTjubGK2CodA6rNjiwN+xC32hOZ5unkf4qD3DqLWeoPjg3fYf54bVMjA==" - }, - "@react-native-segmented-control/segmented-control": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@react-native-segmented-control/segmented-control/-/segmented-control-2.4.0.tgz", - "integrity": "sha512-2s1AaT6xk/Do5s6u7ioCXucqesAt02NQlLKBOM28dJWI7PTH9o89x6AwsGHIeMkTe4nQ6iENiJKzO7Y3SGG9Ew==" - }, - "@react-navigation/core": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.2.1.tgz", - "integrity": "sha512-3mjS6ujwGnPA/BC11DN9c2c42gFld6B6dQBgDedxP2djceXESpY2kVTTwISDHuqFnF7WjvRjsrDu3cKBX+JosA==", - "requires": { - "@react-navigation/routers": "^6.1.0", - "escape-string-regexp": "^4.0.0", - "nanoid": "^3.1.23", - "query-string": "^7.0.0", - "react-is": "^16.13.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - } - } - }, - "@react-navigation/elements": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.3.tgz", - "integrity": "sha512-Lv2lR7si5gNME8dRsqz57d54m4FJtrwHRjNQLOyQO546ZxO+g864cSvoLC6hQedQU0+IJnPTsZiEI2hHqfpEpw==" - }, - "@react-navigation/native": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@react-navigation/native/-/native-6.0.2.tgz", - "integrity": "sha512-HDqEwgvQ4Cu16vz8jQ55lfyNK9CGbECI1wM9cPOcUa+gkOQEDZ/95VFfFjGGflXZs3ybPvGXlMC4ZAyh1CcO6w==", - "requires": { - "@react-navigation/core": "^6.0.1", - "escape-string-regexp": "^4.0.0", - "nanoid": "^3.1.23" - }, - "dependencies": { - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - } - } - }, - "@react-navigation/native-stack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@react-navigation/native-stack/-/native-stack-6.1.0.tgz", - "integrity": "sha512-ta8JQ9n6e7pxrXJ9/MYH57g0xhlV8rzGvQtni6KvBdWqqk0M5QDqIXaUkzXp2wvLMZp7LQmnD4FI/TGG2mQOKA==", - "requires": { - "@react-navigation/elements": "^1.1.0", - "warn-once": "^0.1.0" - } - }, - "@react-navigation/routers": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@react-navigation/routers/-/routers-6.1.0.tgz", - "integrity": "sha512-8xJL+djIzpFdRW/sGlKojQ06fWgFk1c5jER9501HYJ12LF5DIJFr/tqBI2TJ6bk+y+QFu0nbNyeRC80OjRlmkA==", - "requires": { - "nanoid": "^3.1.23" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==", - "dev": true - }, - "@types/react": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.24.tgz", - "integrity": "sha512-eIpyco99gTH+FTI3J7Oi/OH8MZoFMJuztNRimDOJwH4iGIsKV2qkGnk4M9VzlaVWeEEWLWSQRy0FEA0Kz218cg==", - "dev": true, - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "@types/react-native": { - "version": "0.65.2", - "resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.65.2.tgz", - "integrity": "sha512-UjDkN6rvgZkvVl2726bCPjIupyBUt40Uv+FhtDPwGj6n7ShiHggAfv6Xl7Pzbc36L5qUIWSmBrrFBLJXZ4MEig==", - "dev": true, - "requires": { - "@types/react": "*" - } - }, - "@types/scheduler": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", - "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", - "dev": true - }, - "@types/stack-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", - "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==" - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "requires": { - "event-target-shim": "^5.0.0" - } - }, - "absolute-path": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/absolute-path/-/absolute-path-0.0.0.tgz", - "integrity": "sha1-p4di+9rftSl76ZsV01p4Wy8JW/c=" - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "anser": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz", - "integrity": "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==" - }, - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "requires": { - "ansi-wrap": "^0.1.0" - } - }, - "ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-escapes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==" - }, - "ansi-fragments": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz", - "integrity": "sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==", - "requires": { - "colorette": "^1.0.7", - "slice-ansi": "^2.0.0", - "strip-ansi": "^5.0.0" - } - }, - "ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=" - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" - }, - "array-filter": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", - "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=" - }, - "array-map": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", - "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=" - }, - "array-reduce": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", - "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=" - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=" - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==" - }, - "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "requires": { - "lodash": "^4.17.14" - } - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" - }, - "axios": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", - "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", - "requires": { - "follow-redirects": "^1.14.8" - } - }, - "babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "requires": { - "object.assign": "^4.1.0" - } - }, - "babel-plugin-module-resolver": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.1.0.tgz", - "integrity": "sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA==", - "dev": true, - "requires": { - "find-babel-config": "^1.2.0", - "glob": "^7.1.6", - "pkg-up": "^3.1.0", - "reselect": "^4.0.0", - "resolve": "^1.13.1" - } - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "7.0.0-beta.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", - "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==" - }, - "babel-preset-fbjs": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", - "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", - "requires": { - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-syntax-class-properties": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.0.0", - "@babel/plugin-syntax-jsx": "^7.0.0", - "@babel/plugin-syntax-object-rest-spread": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoped-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-member-expression-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-super": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-property-literals": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "babel-plugin-syntax-trailing-function-commas": "^7.0.0-beta.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==" - }, - "bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "optional": true, - "requires": { - "file-uri-to-path": "1.0.0" - } - }, - "bplist-creator": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.1.0.tgz", - "integrity": "sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg==", - "requires": { - "stream-buffers": "2.2.x" - } - }, - "bplist-parser": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.1.tgz", - "integrity": "sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==", - "requires": { - "big-integer": "1.6.x" - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=" - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", - "requires": { - "callsites": "^2.0.0" - } - }, - "caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", - "requires": { - "caller-callsite": "^2.0.0" - } - }, - "callsites": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=" - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - }, - "capture-exit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", - "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", - "requires": { - "rsvp": "^4.8.4" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chardet": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", - "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=" - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "cli-spinners": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", - "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==" - }, - "cli-width": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", - "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - } - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" - }, - "colorette": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", - "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" - }, - "command-exists": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==" - }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" - }, - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - }, - "compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "requires": { - "mime-db": ">= 1.43.0 < 2" - } - }, - "compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "requires": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "connect": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", - "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", - "requires": { - "debug": "2.6.9", - "finalhandler": "1.1.2", - "parseurl": "~1.3.3", - "utils-merge": "1.0.1" - } - }, - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" - }, - "core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", - "requires": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" - } - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "csstype": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.11.tgz", - "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", - "dev": true - }, - "dayjs": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.0.tgz", - "integrity": "sha512-JLC809s6Y948/FuCZPm5IX8rRhQwOiyMb2TfVVQEixG7P8Lm/gt5S7yoQZmC8x1UehI9Pb7sksEt4xx14m+7Ug==" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - }, - "deepmerge": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-3.3.0.tgz", - "integrity": "sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA==" - }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", - "requires": { - "clone": "^1.0.2" - } - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "requires": { - "object-keys": "^1.0.12" - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "denodeify": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", - "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE=" - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" - }, - "encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "requires": { - "iconv-lite": "^0.6.2" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" - } - }, - "envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==" - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "error-stack-parser": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.0.7.tgz", - "integrity": "sha512-chLOW0ZGRf4s8raLrDxa5sdkvPec5YdvwbFnqJme4rk0rFajP8mPtrDL1+I+CwrQDCjswDA5sREX7jYQDQs9vA==", - "requires": { - "stackframe": "^1.1.1" - } - }, - "errorhandler": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz", - "integrity": "sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==", - "requires": { - "accepts": "~1.3.7", - "escape-html": "~1.0.3" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" - }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" - }, - "eventemitter3": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", - "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==" - }, - "exec-sh": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", - "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==" - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "external-editor": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", - "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", - "requires": { - "chardet": "^0.4.0", - "iconv-lite": "^0.4.17", - "tmp": "^0.0.33" - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - }, - "fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", - "requires": { - "bser": "2.1.1" - } - }, - "fbjs": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-1.0.0.tgz", - "integrity": "sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA==", - "requires": { - "core-js": "^2.4.1", - "fbjs-css-vars": "^1.0.0", - "isomorphic-fetch": "^2.1.1", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.18" - }, - "dependencies": { - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "requires": { - "asap": "~2.0.3" - } - } - } - }, - "fbjs-css-vars": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", - "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" - }, - "fbjs-scripts": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fbjs-scripts/-/fbjs-scripts-1.2.0.tgz", - "integrity": "sha512-5krZ8T0Bf8uky0abPoCLrfa7Orxd8UH4Qq8hRUF2RZYNMu+FmEOrBc7Ib3YVONmxTXTlLAvyrrdrVmksDb2OqQ==", - "requires": { - "@babel/core": "^7.0.0", - "ansi-colors": "^1.0.1", - "babel-preset-fbjs": "^3.2.0", - "core-js": "^2.4.1", - "cross-spawn": "^5.1.0", - "fancy-log": "^1.3.2", - "object-assign": "^4.0.1", - "plugin-error": "^0.1.2", - "semver": "^5.1.0", - "through2": "^2.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - } - } - }, - "figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "optional": true - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "filter-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", - "integrity": "sha1-mzERErxsYSehbgFsbF1/GeCAXFs=" - }, - "finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "dependencies": { - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "requires": { - "ee-first": "1.1.1" - } - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" - } - } - }, - "find-babel-config": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/find-babel-config/-/find-babel-config-1.2.0.tgz", - "integrity": "sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA==", - "dev": true, - "requires": { - "json5": "^0.5.1", - "path-exists": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true - } - } - }, - "find-cache-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", - "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "requires": { - "locate-path": "^3.0.0" - } - }, - "follow-redirects": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", - "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==" - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "requires": { - "map-cache": "^0.2.2" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" - }, - "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", - "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "optional": true, - "requires": { - "bindings": "^1.5.0", - "nan": "^2.12.1" - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - }, - "get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - } - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "requires": { - "pump": "^3.0.0" - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hermes-engine": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/hermes-engine/-/hermes-engine-0.5.1.tgz", - "integrity": "sha512-hLwqh8dejHayjlpvZY40e1aDCDvyP98cWx/L5DhAjSJLH8g4z9Tp08D7y4+3vErDsncPOdf1bxm+zUWpx0/Fxg==" - }, - "hermes-profile-transformer": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz", - "integrity": "sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==", - "requires": { - "source-map": "^0.7.3" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - } - } - }, - "hoist-non-react-statics": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", - "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "image-size": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.6.3.tgz", - "integrity": "sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==" - }, - "import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", - "requires": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "inquirer": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", - "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", - "requires": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.0", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^2.0.4", - "figures": "^2.0.0", - "lodash": "^4.3.0", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rx-lite": "^4.0.8", - "rx-lite-aggregates": "^4.0.8", - "string-width": "^2.1.0", - "strip-ansi": "^4.0.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==" - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "requires": { - "ci-info": "^2.0.0" - } - }, - "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", - "requires": { - "has": "^1.0.3" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - } - } - }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=" - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "requires": { - "isobject": "^3.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" - }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=" - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - }, - "isomorphic-fetch": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", - "requires": { - "node-fetch": "^1.0.1", - "whatwg-fetch": ">=0.10.0" - }, - "dependencies": { - "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "requires": { - "encoding": "^0.1.11", - "is-stream": "^1.0.1" - } - } - } - }, - "jest-get-type": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", - "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==" - }, - "jest-haste-map": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.9.0.tgz", - "integrity": "sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ==", - "requires": { - "@jest/types": "^24.9.0", - "anymatch": "^2.0.0", - "fb-watchman": "^2.0.0", - "fsevents": "^1.2.7", - "graceful-fs": "^4.1.15", - "invariant": "^2.2.4", - "jest-serializer": "^24.9.0", - "jest-util": "^24.9.0", - "jest-worker": "^24.9.0", - "micromatch": "^3.1.10", - "sane": "^4.0.3", - "walker": "^1.0.7" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-message-util": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.9.0.tgz", - "integrity": "sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw==", - "requires": { - "@babel/code-frame": "^7.0.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/stack-utils": "^1.0.1", - "chalk": "^2.0.1", - "micromatch": "^3.1.10", - "slash": "^2.0.0", - "stack-utils": "^1.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" - } - } - }, - "jest-mock": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.9.0.tgz", - "integrity": "sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w==", - "requires": { - "@jest/types": "^24.9.0" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-serializer": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.9.0.tgz", - "integrity": "sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ==" - }, - "jest-util": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.9.0.tgz", - "integrity": "sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg==", - "requires": { - "@jest/console": "^24.9.0", - "@jest/fake-timers": "^24.9.0", - "@jest/source-map": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "callsites": "^3.0.0", - "chalk": "^2.0.1", - "graceful-fs": "^4.1.15", - "is-ci": "^2.0.0", - "mkdirp": "^0.5.1", - "slash": "^2.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "jest-validate": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.9.0.tgz", - "integrity": "sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ==", - "requires": { - "@jest/types": "^24.9.0", - "camelcase": "^5.3.1", - "chalk": "^2.0.1", - "jest-get-type": "^24.9.0", - "leven": "^3.1.0", - "pretty-format": "^24.9.0" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-worker": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", - "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^6.1.0" - }, - "dependencies": { - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jetifier": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/jetifier/-/jetifier-1.6.8.tgz", - "integrity": "sha512-3Zi16h6L5tXDRQJTb221cnRoVG9/9OvreLdLU2/ZjRv/GILL+2Cemt0IKvkowwkDpvouAU1DQPOJ7qaiHeIdrw==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsc-android": { - "version": "245459.0.0", - "resolved": "https://registry.npmjs.org/jsc-android/-/jsc-android-245459.0.0.tgz", - "integrity": "sha512-wkjURqwaB1daNkDi2OYYbsLnIdC/lUM2nPXQKRs5pqEU9chDg435bjvo+LSaHotDENygHQDHe+ntUkkw2gwMtg==" - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" - }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "requires": { - "jsonify": "~0.0.0" - } - }, - "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" - }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" - }, - "lodash.throttle": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=" - }, - "log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "requires": { - "chalk": "^2.0.1" - } - }, - "logkitty": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz", - "integrity": "sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==", - "requires": { - "ansi-fragments": "^0.2.1", - "dayjs": "^1.8.15", - "yargs": "^15.1.0" - } - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - } - }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "requires": { - "tmpl": "1.0.5" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "requires": { - "object-visit": "^1.0.0" - } - }, - "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "requires": { - "readable-stream": "^2.0.1" - } - }, - "metro": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro/-/metro-0.59.0.tgz", - "integrity": "sha512-OpVgYXyuTvouusFZQJ/UYKEbwfLmialrSCUUTGTFaBor6UMUHZgXPYtK86LzesgMqRc8aiuTQVO78iKW2Iz3wg==", - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/generator": "^7.5.0", - "@babel/parser": "^7.0.0", - "@babel/plugin-external-helpers": "^7.0.0", - "@babel/template": "^7.0.0", - "@babel/traverse": "^7.0.0", - "@babel/types": "^7.0.0", - "absolute-path": "^0.0.0", - "async": "^2.4.0", - "babel-preset-fbjs": "^3.3.0", - "buffer-crc32": "^0.2.13", - "chalk": "^2.4.1", - "ci-info": "^2.0.0", - "concat-stream": "^1.6.0", - "connect": "^3.6.5", - "debug": "^2.2.0", - "denodeify": "^1.2.1", - "error-stack-parser": "^2.0.6", - "eventemitter3": "^3.0.0", - "fbjs": "^1.0.0", - "fs-extra": "^1.0.0", - "graceful-fs": "^4.1.3", - "image-size": "^0.6.0", - "invariant": "^2.2.4", - "jest-haste-map": "^24.9.0", - "jest-worker": "^24.9.0", - "json-stable-stringify": "^1.0.1", - "lodash.throttle": "^4.1.1", - "merge-stream": "^1.0.1", - "metro-babel-register": "0.59.0", - "metro-babel-transformer": "0.59.0", - "metro-cache": "0.59.0", - "metro-config": "0.59.0", - "metro-core": "0.59.0", - "metro-inspector-proxy": "0.59.0", - "metro-minify-uglify": "0.59.0", - "metro-react-native-babel-preset": "0.59.0", - "metro-resolver": "0.59.0", - "metro-source-map": "0.59.0", - "metro-symbolicate": "0.59.0", - "mime-types": "2.1.11", - "mkdirp": "^0.5.1", - "node-fetch": "^2.2.0", - "nullthrows": "^1.1.1", - "resolve": "^1.5.0", - "rimraf": "^2.5.4", - "serialize-error": "^2.1.0", - "source-map": "^0.5.6", - "strip-ansi": "^4.0.0", - "temp": "0.8.3", - "throat": "^4.1.0", - "wordwrap": "^1.0.0", - "ws": "^1.1.5", - "xpipe": "^1.0.5", - "yargs": "^14.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==" - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "metro-react-native-babel-preset": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.59.0.tgz", - "integrity": "sha512-BoO6ncPfceIDReIH8pQ5tQptcGo5yRWQXJGVXfANbiKLq4tfgdZB1C1e2rMUJ6iypmeJU9dzl+EhPmIFKtgREg==", - "requires": { - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-export-default-from": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-proposal-optional-catch-binding": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-syntax-export-default-from": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.2.0", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-syntax-optional-chaining": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-exponentiation-operator": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-assign": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-react-jsx-self": "^7.0.0", - "@babel/plugin-transform-react-jsx-source": "^7.0.0", - "@babel/plugin-transform-regenerator": "^7.0.0", - "@babel/plugin-transform-runtime": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-sticky-regex": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.5.0", - "@babel/plugin-transform-unicode-regex": "^7.0.0", - "@babel/template": "^7.0.0", - "react-refresh": "^0.4.0" - } - }, - "mime-db": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.23.0.tgz", - "integrity": "sha1-oxtAcK2uon1zLqMzdApk0OyaZlk=" - }, - "mime-types": { - "version": "2.1.11", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz", - "integrity": "sha1-wlnEcb2oCKhdbNGTtDCl+uRHOzw=", - "requires": { - "mime-db": "~1.23.0" - } - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "yargs": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-14.2.3.tgz", - "integrity": "sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==", - "requires": { - "cliui": "^5.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^15.0.1" - } - }, - "yargs-parser": { - "version": "15.0.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.3.tgz", - "integrity": "sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "metro-babel-register": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-babel-register/-/metro-babel-register-0.59.0.tgz", - "integrity": "sha512-JtWc29erdsXO/V3loenXKw+aHUXgj7lt0QPaZKPpctLLy8kcEpI/8pfXXgVK9weXICCpCnYtYncIosAyzh0xjg==", - "requires": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/register": "^7.0.0", - "escape-string-regexp": "^1.0.5" - } - }, - "metro-babel-transformer": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.59.0.tgz", - "integrity": "sha512-fdZJl8rs54GVFXokxRdD7ZrQ1TJjxWzOi/xSP25VR3E8tbm3nBZqS+/ylu643qSr/IueABR+jrlqAyACwGEf6w==", - "requires": { - "@babel/core": "^7.0.0", - "metro-source-map": "0.59.0" - } - }, - "metro-cache": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-cache/-/metro-cache-0.59.0.tgz", - "integrity": "sha512-ryWNkSnpyADfRpHGb8BRhQ3+k8bdT/bsxMH2O0ntlZYZ188d8nnYWmxbRvFmEzToJxe/ol4uDw0tJFAaQsN8KA==", - "requires": { - "jest-serializer": "^24.9.0", - "metro-core": "0.59.0", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4" - } - }, - "metro-config": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.59.0.tgz", - "integrity": "sha512-MDsknFG9vZ4Nb5VR6OUDmGHaWz6oZg/FtE3up1zVBKPVRTXE1Z+k7zypnPtMXjMh3WHs/Sy4+wU1xnceE/zdnA==", - "requires": { - "cosmiconfig": "^5.0.5", - "jest-validate": "^24.9.0", - "metro": "0.59.0", - "metro-cache": "0.59.0", - "metro-core": "0.59.0" - } - }, - "metro-core": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-core/-/metro-core-0.59.0.tgz", - "integrity": "sha512-kb5LKvV5r2pqMEzGyTid8ai2mIjW13NMduQ8oBmfha7/EPTATcTQ//s+bkhAs1toQD8vqVvjAb0cPNjWQEmcmQ==", - "requires": { - "jest-haste-map": "^24.9.0", - "lodash.throttle": "^4.1.1", - "metro-resolver": "0.59.0", - "wordwrap": "^1.0.0" - } - }, - "metro-inspector-proxy": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-inspector-proxy/-/metro-inspector-proxy-0.59.0.tgz", - "integrity": "sha512-hPeAuQcofTOH0F+2GEZqWkvkVY1/skezSSlMocDQDaqds+Kw6JgdA7FlZXxnKmQ/jYrWUzff/pl8SUCDwuYthQ==", - "requires": { - "connect": "^3.6.5", - "debug": "^2.2.0", - "ws": "^1.1.5", - "yargs": "^14.2.0" - }, - "dependencies": { - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - } - }, - "yargs": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-14.2.3.tgz", - "integrity": "sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==", - "requires": { - "cliui": "^5.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^15.0.1" - } - }, - "yargs-parser": { - "version": "15.0.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.3.tgz", - "integrity": "sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "metro-minify-uglify": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-minify-uglify/-/metro-minify-uglify-0.59.0.tgz", - "integrity": "sha512-7IzVgCVWZMymgZ/quieg/9v5EQ8QmZWAgDc86Zp9j0Vy6tQTjUn6jlU+YAKW3mfMEjMr6iIUzCD8YklX78tFAw==", - "requires": { - "uglify-es": "^3.1.9" - } - }, - "metro-react-native-babel-preset": { - "version": "0.64.0", - "resolved": "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.64.0.tgz", - "integrity": "sha512-HcZ0RWQRuJfpPiaHyFQJzcym+/dDIVUPwUAXWoub/C4GkGu+mPjp8vqK6g0FxokCnnI2TK0gZTza2IDfiNNscQ==", - "dev": true, - "requires": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-export-default-from": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-proposal-optional-catch-binding": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-syntax-export-default-from": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.2.0", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-syntax-optional-chaining": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-exponentiation-operator": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-assign": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-react-jsx-self": "^7.0.0", - "@babel/plugin-transform-react-jsx-source": "^7.0.0", - "@babel/plugin-transform-regenerator": "^7.0.0", - "@babel/plugin-transform-runtime": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-sticky-regex": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.5.0", - "@babel/plugin-transform-unicode-regex": "^7.0.0", - "@babel/template": "^7.0.0", - "react-refresh": "^0.4.0" - } - }, - "metro-react-native-babel-transformer": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.59.0.tgz", - "integrity": "sha512-1O3wrnMq4NcPQ1asEcl9lRDn/t+F1Oef6S9WaYVIKEhg9m/EQRGVrrTVP+R6B5Eeaj3+zNKbzM8Dx/NWy1hUbQ==", - "requires": { - "@babel/core": "^7.0.0", - "babel-preset-fbjs": "^3.3.0", - "metro-babel-transformer": "0.59.0", - "metro-react-native-babel-preset": "0.59.0", - "metro-source-map": "0.59.0" - }, - "dependencies": { - "metro-react-native-babel-preset": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.59.0.tgz", - "integrity": "sha512-BoO6ncPfceIDReIH8pQ5tQptcGo5yRWQXJGVXfANbiKLq4tfgdZB1C1e2rMUJ6iypmeJU9dzl+EhPmIFKtgREg==", - "requires": { - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-export-default-from": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-proposal-optional-catch-binding": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-syntax-export-default-from": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.2.0", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-syntax-optional-chaining": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-exponentiation-operator": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-assign": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-react-jsx-self": "^7.0.0", - "@babel/plugin-transform-react-jsx-source": "^7.0.0", - "@babel/plugin-transform-regenerator": "^7.0.0", - "@babel/plugin-transform-runtime": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-sticky-regex": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.5.0", - "@babel/plugin-transform-unicode-regex": "^7.0.0", - "@babel/template": "^7.0.0", - "react-refresh": "^0.4.0" - } - } - } - }, - "metro-resolver": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.59.0.tgz", - "integrity": "sha512-lbgiumnwoVosffEI96z0FGuq1ejTorHAj3QYUPmp5dFMfitRxLP7Wm/WP9l4ZZjIptxTExsJwuEff1SLRCPD9w==", - "requires": { - "absolute-path": "^0.0.0" - } - }, - "metro-source-map": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.59.0.tgz", - "integrity": "sha512-0w5CmCM+ybSqXIjqU4RiK40t4bvANL6lafabQ2GP2XD3vSwkLY+StWzCtsb4mPuyi9R/SgoLBel+ZOXHXAH0eQ==", - "requires": { - "@babel/traverse": "^7.0.0", - "@babel/types": "^7.0.0", - "invariant": "^2.2.4", - "metro-symbolicate": "0.59.0", - "ob1": "0.59.0", - "source-map": "^0.5.6", - "vlq": "^1.0.0" - } - }, - "metro-symbolicate": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.59.0.tgz", - "integrity": "sha512-asLaF2A7rndrToGFIknL13aiohwPJ95RKHf0NM3hP/nipiLDoMzXT6ZnQvBqDxkUKyP+51AI75DMtb+Wcyw4Bw==", - "requires": { - "invariant": "^2.2.4", - "metro-source-map": "0.59.0", - "source-map": "^0.5.6", - "through2": "^2.0.1", - "vlq": "^1.0.0" - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" - }, - "mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "requires": { - "minimist": "^1.2.6" - }, - "dependencies": { - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" - }, - "nan": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", - "optional": true - }, - "nanoid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.2.tgz", - "integrity": "sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA==" - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - } - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "nocache": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.1.0.tgz", - "integrity": "sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q==" - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=" - }, - "node-stream-zip": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", - "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==" - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "requires": { - "path-key": "^2.0.0" - } - }, - "nullthrows": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", - "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==" - }, - "ob1": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/ob1/-/ob1-0.59.0.tgz", - "integrity": "sha512-opXMTxyWJ9m68ZglCxwo0OPRESIC/iGmKFPXEXzMZqsVIrgoRXOHmoMDkQzz4y3irVjbyPJRAh5pI9fd0MJTFQ==" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "requires": { - "isobject": "^3.0.0" - } - }, - "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "requires": { - "isobject": "^3.0.1" - } - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "open": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/open/-/open-6.4.0.tgz", - "integrity": "sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==", - "requires": { - "is-wsl": "^1.1.0" - } - }, - "options": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", - "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=" - }, - "ora": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-3.4.0.tgz", - "integrity": "sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==", - "requires": { - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-spinners": "^2.0.0", - "log-symbols": "^2.2.0", - "strip-ansi": "^5.2.0", - "wcwidth": "^1.0.1" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "parse-node-version": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", - "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==" - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==" - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "requires": { - "find-up": "^3.0.0" - } - }, - "pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - }, - "plist": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/plist/-/plist-3.0.5.tgz", - "integrity": "sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA==", - "requires": { - "base64-js": "^1.5.1", - "xmlbuilder": "^9.0.7" - } - }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", - "requires": { - "ansi-cyan": "^0.1.1", - "ansi-red": "^0.1.1", - "arr-diff": "^1.0.1", - "arr-union": "^2.0.1", - "extend-shallow": "^1.1.2" - }, - "dependencies": { - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", - "requires": { - "arr-flatten": "^1.0.1", - "array-slice": "^0.2.3" - } - }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=" - }, - "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", - "requires": { - "kind-of": "^1.1.0" - } - }, - "kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=" - } - } - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" - }, - "pretty-format": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", - "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", - "requires": { - "@jest/types": "^24.9.0", - "ansi-regex": "^4.0.0", - "ansi-styles": "^3.2.0", - "react-is": "^16.8.4" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } - }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "promise": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz", - "integrity": "sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==", - "requires": { - "asap": "~2.0.6" - } - }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "query-string": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.1.tgz", - "integrity": "sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w==", - "requires": { - "decode-uri-component": "^0.2.0", - "filter-obj": "^1.1.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - }, - "react": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react/-/react-16.13.1.tgz", - "integrity": "sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" - } - }, - "react-devtools-core": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.24.4.tgz", - "integrity": "sha512-jbX8Yqyq4YvFEobHyXVlGaH0Cs/+EOdb3PL911bxaR5BnzbB5TE4RFHC1iOgT4vRH3VxIIrVQ7lR9vsiFFCYCA==", - "requires": { - "shell-quote": "^1.6.1", - "ws": "^7" - }, - "dependencies": { - "ws": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", - "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==" - } - } - }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "react-native": { - "version": "0.63.4", - "resolved": "https://registry.npmjs.org/react-native/-/react-native-0.63.4.tgz", - "integrity": "sha512-I4kM8kYO2mWEYUFITMcpRulcy4/jd+j9T6PbIzR0FuMcz/xwd+JwHoLPa1HmCesvR1RDOw9o4D+OFLwuXXfmGw==", - "requires": { - "@babel/runtime": "^7.0.0", - "@react-native-community/cli": "^4.10.0", - "@react-native-community/cli-platform-android": "^4.10.0", - "@react-native-community/cli-platform-ios": "^4.10.0", - "abort-controller": "^3.0.0", - "anser": "^1.4.9", - "base64-js": "^1.1.2", - "event-target-shim": "^5.0.1", - "fbjs": "^1.0.0", - "fbjs-scripts": "^1.1.0", - "hermes-engine": "~0.5.0", - "invariant": "^2.2.4", - "jsc-android": "^245459.0.0", - "metro-babel-register": "0.59.0", - "metro-react-native-babel-transformer": "0.59.0", - "metro-source-map": "0.59.0", - "nullthrows": "^1.1.1", - "pretty-format": "^24.9.0", - "promise": "^8.0.3", - "prop-types": "^15.7.2", - "react-devtools-core": "^4.6.0", - "react-refresh": "^0.4.0", - "regenerator-runtime": "^0.13.2", - "scheduler": "0.19.1", - "stacktrace-parser": "^0.1.3", - "use-subscription": "^1.0.0", - "whatwg-fetch": "^3.0.0" - }, - "dependencies": { - "@react-native-community/cli": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-4.14.0.tgz", - "integrity": "sha512-EYJKBuxFxAu/iwNUfwDq41FjORpvSh1wvQ3qsHjzcR5uaGlWEOJrd3uNJDuKBAS0TVvbEesLF9NEXipjyRVr4Q==", - "requires": { - "@hapi/joi": "^15.0.3", - "@react-native-community/cli-debugger-ui": "^4.13.1", - "@react-native-community/cli-hermes": "^4.13.0", - "@react-native-community/cli-server-api": "^4.13.1", - "@react-native-community/cli-tools": "^4.13.0", - "@react-native-community/cli-types": "^4.10.1", - "chalk": "^3.0.0", - "command-exists": "^1.2.8", - "commander": "^2.19.0", - "cosmiconfig": "^5.1.0", - "deepmerge": "^3.2.0", - "envinfo": "^7.7.2", - "execa": "^1.0.0", - "find-up": "^4.1.0", - "fs-extra": "^8.1.0", - "glob": "^7.1.3", - "graceful-fs": "^4.1.3", - "inquirer": "^3.0.6", - "leven": "^3.1.0", - "lodash": "^4.17.15", - "metro": "^0.59.0", - "metro-config": "^0.59.0", - "metro-core": "^0.59.0", - "metro-react-native-babel-transformer": "^0.59.0", - "metro-resolver": "^0.59.0", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "node-stream-zip": "^1.9.1", - "ora": "^3.4.0", - "pretty-format": "^25.2.0", - "semver": "^6.3.0", - "serve-static": "^1.13.1", - "strip-ansi": "^5.2.0", - "sudo-prompt": "^9.0.0", - "wcwidth": "^1.0.1" - }, - "dependencies": { - "pretty-format": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.5.0.tgz", - "integrity": "sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==", - "requires": { - "@jest/types": "^25.5.0", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^16.12.0" - } - } - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "react-native-safe-area-context": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-3.3.2.tgz", - "integrity": "sha512-yOwiiPJ1rk+/nfK13eafbpW6sKW0jOnsRem2C1LPJjM3tfTof6hlvV5eWHATye3XOpu2cJ7N+HdkUvUDGwFD2Q==" - }, - "react-native-safe-area-view": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/react-native-safe-area-view/-/react-native-safe-area-view-1.1.1.tgz", - "integrity": "sha512-bbLCtF+tqECyPWlgkWbIwx4vDPb0GEufx/ZGcSS4UljMcrpwluachDXoW9DBxhbMCc6k1V0ccqHWN7ntbRdERQ==", - "requires": { - "hoist-non-react-statics": "^2.3.1" - } - }, - "react-native-screens": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/react-native-screens/-/react-native-screens-3.7.2.tgz", - "integrity": "sha512-TUmCE2ZIr6SFCUqsUqLsYQZ7EWo+tKyxSVFj3G5BCkGFOl3MwXEPgT/ihNCnL1aUAgr6TEMWVHg+awLkkQgYyQ==", - "requires": { - "warn-once": "^0.1.0" - } - }, - "react-refresh": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.4.3.tgz", - "integrity": "sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA==" - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "regenerate-unicode-properties": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz", - "integrity": "sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==", - "requires": { - "regenerate": "^1.4.2" - } - }, - "regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" - }, - "regenerator-transform": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", - "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexpu-core": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.0.1.tgz", - "integrity": "sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw==", - "requires": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.0.1", - "regjsgen": "^0.6.0", - "regjsparser": "^0.8.2", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" - } - }, - "regjsgen": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.6.0.tgz", - "integrity": "sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA==" - }, - "regjsparser": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.8.4.tgz", - "integrity": "sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA==", - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=" - } - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" - }, - "repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==" - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" - }, - "reselect": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.5.tgz", - "integrity": "sha512-uVdlz8J7OO+ASpBYoz1Zypgx0KasCY20H+N8JD13oUMtPvSHQuscrHop4KbXrbsBcdB9Ds7lVK7eRkBIfO43vQ==", - "dev": true - }, - "resolve": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", - "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", - "requires": { - "is-core-module": "^2.1.0", - "path-parse": "^1.0.6" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "requires": { - "glob": "^7.1.3" - } - }, - "rsvp": { - "version": "4.8.5", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", - "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==" - }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==" - }, - "rx-lite": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", - "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=" - }, - "rx-lite-aggregates": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", - "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", - "requires": { - "rx-lite": "*" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "requires": { - "ret": "~0.1.10" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "sane": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", - "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", - "requires": { - "@cnakazawa/watch": "^1.0.3", - "anymatch": "^2.0.0", - "capture-exit": "^2.0.0", - "exec-sh": "^0.3.2", - "execa": "^1.0.0", - "fb-watchman": "^2.0.0", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5" - } - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "scheduler": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", - "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - } - }, - "serialize-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=" - }, - "serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" - }, - "set-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "requires": { - "kind-of": "^6.0.2" - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "shell-quote": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", - "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", - "requires": { - "array-filter": "~0.0.0", - "array-map": "~0.0.0", - "array-reduce": "~0.0.0", - "jsonify": "~0.0.0" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "simple-plist": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.1.tgz", - "integrity": "sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==", - "requires": { - "bplist-creator": "0.1.0", - "bplist-parser": "0.3.1", - "plist": "^3.0.5" - } - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - }, - "slice-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "requires": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - } - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" - }, - "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "source-map-url": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", - "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==" - }, - "split-on-first": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", - "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "stack-utils": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.5.tgz", - "integrity": "sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ==", - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" - } - } - }, - "stackframe": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.2.1.tgz", - "integrity": "sha512-h88QkzREN/hy8eRdyNhhsO7RSJ5oyTqxxmmn0dzBIMUclZsjpfmrsg81vp8mjjAs2vAZ72nyWxRUwSwmh0e4xg==" - }, - "stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "requires": { - "type-fest": "^0.7.1" - } - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" - }, - "stream-buffers": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-2.2.0.tgz", - "integrity": "sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ=" - }, - "strict-uri-encode": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", - "integrity": "sha1-ucczDHBChi9rFC3CdLvMWGbONUY=" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" - }, - "sudo-prompt": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz", - "integrity": "sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==" - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } - }, - "temp": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz", - "integrity": "sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k=", - "requires": { - "os-tmpdir": "^1.0.0", - "rimraf": "~2.2.6" - }, - "dependencies": { - "rimraf": { - "version": "2.2.8", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", - "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=" - } - } - }, - "throat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", - "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=" - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=" - }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "requires": { - "os-tmpdir": "~1.0.2" - } - }, - "tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==" - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" - }, - "ua-parser-js": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", - "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==" - }, - "uglify-es": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", - "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", - "requires": { - "commander": "~2.13.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "ultron": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", - "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=" - }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==" - }, - "unicode-property-aliases-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", - "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==" - }, - "union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" - }, - "use-subscription": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/use-subscription/-/use-subscription-1.6.0.tgz", - "integrity": "sha512-0Y/cTLlZfw547tJhJMoRA16OUbVqRm6DmvGpiGbmLST6BIA5KU5cKlvlz8DVMrACnWpyEjCkgmhLatthP4jUbA==" - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" - }, - "vlq": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz", - "integrity": "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==" - }, - "walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "requires": { - "makeerror": "1.0.12" - } - }, - "warn-once": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/warn-once/-/warn-once-0.1.0.tgz", - "integrity": "sha512-recZTSvuaH/On5ZU5ywq66y99lImWqzP93+AiUo9LUwG8gXHW+LJjhOd6REJHm7qb0niYqrEQJvbHSQfuJtTqA==" - }, - "wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", - "requires": { - "defaults": "^1.0.3" - } - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "ws": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.5.tgz", - "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==", - "requires": { - "options": ">=0.0.5", - "ultron": "1.0.x" - } - }, - "xcode": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/xcode/-/xcode-2.1.0.tgz", - "integrity": "sha512-uCrmPITrqTEzhn0TtT57fJaNaw8YJs1aCzs+P/QqxsDbvPZSv7XMPPwXrKvHtD6pLjBM/NaVwraWJm8q83Y4iQ==", - "requires": { - "simple-plist": "^1.0.0", - "uuid": "^3.3.2" - } - }, - "xmlbuilder": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", - "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" - }, - "xmldoc": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/xmldoc/-/xmldoc-1.1.2.tgz", - "integrity": "sha512-ruPC/fyPNck2BD1dpz0AZZyrEwMOrWTO5lDdIXS91rs3wtm4j+T8Rp2o+zoOYkkAxJTZRPOSnOGei1egoRmKMQ==", - "requires": { - "sax": "^1.2.1" - } - }, - "xpipe": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/xpipe/-/xpipe-1.0.5.tgz", - "integrity": "sha1-jdi/Rfw/f1Xw4FS4ePQ6YmFNr98=" - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - } - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } -} diff --git a/example/package.json b/example/package.json index 03d45fbae..55b23d689 100644 --- a/example/package.json +++ b/example/package.json @@ -1,5 +1,5 @@ { - "name": "@primer-io/react-native-example", + "name": "ReactNativeExample", "description": "Example app for @primer-io/react-native", "version": "0.0.1", "private": true, @@ -7,15 +7,9 @@ "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", - "clean-caches": "watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && npm cache clean --force && yarn cache clean && rm -rf ~/Documents/Derived\\ Data/", - "clean-install": "yarn run clean-caches && yarn run clean-node-modules-install && yarn run clean-install-ios && yarn run clean-android", - "clean-node-modules": "rm -rf node_modules", - "clean-node-modules-install": "yarn run clean-node-modules && yarn", - "clean-android": "cd android && ./gradlew clean && cd ..", - "clean-run-android": "yarn clean-install && npx react-native run-android", - "clean-ios": "cd ios && pod deintegrate && rm -rf Podfile.lock && cd ..", - "clean-install-ios": "yarn run clean-ios && cd ios && pod install --repo-update && cd ..", - "clean-run-ios": "yarn clean-install && npx react-native run-ios" + "test": "jest", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "build:ios": "npx react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=true --platform='ios'" }, "dependencies": { "@react-native-masked-view/masked-view": "^0.2.8", @@ -49,5 +43,16 @@ "metro-react-native-babel-preset": "0.72.3", "react-test-renderer": "18.1.0", "typescript": "^4.8.3" + }, + "jest": { + "preset": "react-native", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ] } } diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx index 38c708091..84e0e6b10 100644 --- a/example/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -23,7 +23,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { +const RawAdyenBancontactCardScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); @@ -132,7 +132,7 @@ const RawAdyenBancontactCardScreen = (props: RawDataScreenProps) => { style={{ marginVertical: 8 }} title='Expiry Date' value={expiryDate} - keyboardType={"numeric"} + keyboardType={"default"} onChangeText={(text) => { setExpiryDate(text); setRawData(null, text, null); diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index a750a8257..5095a057c 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -22,7 +22,7 @@ export interface RawCardDataScreenProps { const rawDataManager = new RawDataManager(); -const RawCardDataScreen = (props: RawDataScreenProps) => { +const RawCardDataScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); @@ -139,7 +139,7 @@ const RawCardDataScreen = (props: RawDataScreenProps) => { style={{ marginVertical: 8 }} title='Expiry Date' value={expiryDate} - keyboardType={"numeric"} + keyboardType={"default"} onChangeText={(text) => { setExpiryDate(text); setRawData(null, text, null, null); diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx index bf7eaa2a0..2150bdbad 100644 --- a/example/src/screens/RawPhoneNumberScreen.tsx +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -17,7 +17,7 @@ import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawPhoneNumberDataScreen = (props: RawDataScreenProps) => { +const RawPhoneNumberDataScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index f14ee9cb2..a7d92ba12 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -17,7 +17,7 @@ import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); -const RawRetailOutletScreen = (props: RawDataScreenProps) => { +const RawRetailOutletScreen = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 35ab07213..00929d265 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -26,7 +26,7 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined// = "7ecce42b-b641-4c7d-a605-f786f3e201ce"; +export let customApiKey: string | undefined; export let customClientToken: string | undefined; // @ts-ignore @@ -229,9 +229,8 @@ const SettingsScreen = ({ navigation }) => { - ( + { + lineItems.map((item, index) => { { {item.amount} - )} - ListFooterComponent={ - - Total - - {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} - - } - /> + }) + } + + Total + + {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} + ); } diff --git a/ReactNativeExample/tsconfig.json b/example/tsconfig.json similarity index 100% rename from ReactNativeExample/tsconfig.json rename to example/tsconfig.json diff --git a/example/yarn.lock b/example/yarn.lock index 3337e6392..873afd05c 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -3,11 +3,12 @@ "@ampproject/remapping@^2.1.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.1.2.tgz#4edca94973ded9630d20101cd8559cedb8d8bd34" - integrity sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg== + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== dependencies: - "@jridgewell/trace-mapping" "^0.3.0" + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" "@babel/code-frame@7.12.11": version "7.12.11" @@ -16,26 +17,14 @@ dependencies: "@babel/highlight" "^7.10.4" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" - integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== - dependencies: - "@babel/highlight" "^7.16.7" - -"@babel/code-frame@^7.18.6": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.17.0", "@babel/compat-data@^7.17.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.7.tgz#078d8b833fbbcc95286613be8c716cef2b519fa2" - integrity sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ== - -"@babel/compat-data@^7.20.0": +"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.19.4", "@babel/compat-data@^7.20.0": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.1.tgz#f2e6ef7790d8c8dbf03d379502dcc246dcce0b30" integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== @@ -70,22 +59,6 @@ "@jridgewell/gen-mapping" "^0.3.2" jsesc "^2.5.1" -"@babel/generator@^7.17.3": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.7.tgz#8da2599beb4a86194a3b24df6c085931d9ee45ad" - integrity sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w== - dependencies: - "@babel/types" "^7.17.0" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/helper-annotate-as-pure@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862" - integrity sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-annotate-as-pure@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" @@ -93,25 +66,15 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-builder-binary-assignment-operator-visitor@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz#38d138561ea207f0f69eb1626a418e4f7e6a580b" - integrity sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA== - dependencies: - "@babel/helper-explode-assignable-expression" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.17.7.tgz#a3c2924f5e5f0379b356d4cfb313d1414dc30e46" - integrity sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w== +"@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz#acd4edfd7a566d1d51ea975dff38fd52906981bb" + integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== dependencies: - "@babel/compat-data" "^7.17.7" - "@babel/helper-validator-option" "^7.16.7" - browserslist "^4.17.5" - semver "^6.3.0" + "@babel/helper-explode-assignable-expression" "^7.18.6" + "@babel/types" "^7.18.9" -"@babel/helper-compilation-targets@^7.19.3": +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.19.0", "@babel/helper-compilation-targets@^7.19.3": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== @@ -121,19 +84,6 @@ browserslist "^4.21.3" semver "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.16.7": - version "7.17.6" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.17.6.tgz#3778c1ed09a7f3e65e6d6e0f6fbfcc53809d92c9" - integrity sha512-SogLLSxXm2OkBbSsHZMM4tUi8fUzjs63AT/d0YQIzr6GSd8Hxsbk2KYDX0k0DweAzGMj/YWeiCsorIdtdcW8Eg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.16.7" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-member-expression-to-functions" "^7.16.7" - "@babel/helper-optimise-call-expression" "^7.16.7" - "@babel/helper-replace-supers" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz#bfd6904620df4e46470bae4850d66be1054c404b" @@ -147,15 +97,7 @@ "@babel/helper-replace-supers" "^7.18.9" "@babel/helper-split-export-declaration" "^7.18.6" -"@babel/helper-create-regexp-features-plugin@^7.16.7": - version "7.17.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz#1dcc7d40ba0c6b6b25618997c5dbfd310f186fe1" - integrity sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.16.7" - regexpu-core "^5.0.1" - -"@babel/helper-create-regexp-features-plugin@^7.19.0": +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz#7976aca61c0984202baca73d84e2337a5424a41b" integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== @@ -163,49 +105,31 @@ "@babel/helper-annotate-as-pure" "^7.18.6" regexpu-core "^5.1.0" -"@babel/helper-define-polyfill-provider@^0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.1.tgz#52411b445bdb2e676869e5a74960d2d3826d2665" - integrity sha512-J9hGMpJQmtWmj46B3kBHmL38UhJGhYX7eqkcq+2gsstyYt341HmPeWspihX43yVRA0mS+8GGk2Gckc7bY/HCmA== +"@babel/helper-define-polyfill-provider@^0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz#8612e55be5d51f0cd1f36b4a5a83924e89884b7a" + integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== dependencies: - "@babel/helper-compilation-targets" "^7.13.0" - "@babel/helper-module-imports" "^7.12.13" - "@babel/helper-plugin-utils" "^7.13.0" - "@babel/traverse" "^7.13.0" + "@babel/helper-compilation-targets" "^7.17.7" + "@babel/helper-plugin-utils" "^7.16.7" debug "^4.1.1" lodash.debounce "^4.0.8" resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-environment-visitor@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" - integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-environment-visitor@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== -"@babel/helper-explode-assignable-expression@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz#12a6d8522fdd834f194e868af6354e8650242b7a" - integrity sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-function-name@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz#f1ec51551fb1c8956bc8dd95f38523b6cf375f8f" - integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA== +"@babel/helper-explode-assignable-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz#41f8228ef0a6f1a036b8dfdfec7ce94f9a6bc096" + integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== dependencies: - "@babel/helper-get-function-arity" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/types" "^7.16.7" + "@babel/types" "^7.18.6" -"@babel/helper-function-name@^7.19.0": +"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== @@ -213,20 +137,6 @@ "@babel/template" "^7.18.10" "@babel/types" "^7.19.0" -"@babel/helper-get-function-arity@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz#ea08ac753117a669f1508ba06ebcc49156387419" - integrity sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-hoist-variables@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" - integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-hoist-variables@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" @@ -234,13 +144,6 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-member-expression-to-functions@^7.16.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4" - integrity sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw== - dependencies: - "@babel/types" "^7.17.0" - "@babel/helper-member-expression-to-functions@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" @@ -248,13 +151,6 @@ dependencies: "@babel/types" "^7.18.9" -"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" - integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-module-imports@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" @@ -262,20 +158,6 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.17.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.17.7.tgz#3943c7f777139e7954a5355c815263741a9c1cbd" - integrity sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw== - dependencies: - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-simple-access" "^7.17.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/helper-validator-identifier" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" - "@babel/helper-module-transforms@^7.19.6": version "7.19.6" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz#6c52cc3ac63b70952d33ee987cbee1c9368b533f" @@ -290,13 +172,6 @@ "@babel/traverse" "^7.19.6" "@babel/types" "^7.19.4" -"@babel/helper-optimise-call-expression@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz#a34e3560605abbd31a18546bd2aad3e6d9a174f2" - integrity sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-optimise-call-expression@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" @@ -304,16 +179,11 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf" integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== -"@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz#aa3a8ab4c3cceff8e65eb9e73d87dc4ff320b2f5" - integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA== - "@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" @@ -324,18 +194,7 @@ "@babel/helper-wrap-function" "^7.18.9" "@babel/types" "^7.18.9" -"@babel/helper-replace-supers@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz#e9f5f5f32ac90429c1a4bdec0f231ef0c2838ab1" - integrity sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw== - dependencies: - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-member-expression-to-functions" "^7.16.7" - "@babel/helper-optimise-call-expression" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/helper-replace-supers@^7.18.9": +"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": version "7.19.1" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== @@ -346,13 +205,6 @@ "@babel/traverse" "^7.19.1" "@babel/types" "^7.19.0" -"@babel/helper-simple-access@^7.17.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.17.7.tgz#aaa473de92b7987c6dfa7ce9a7d9674724823367" - integrity sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA== - dependencies: - "@babel/types" "^7.17.0" - "@babel/helper-simple-access@^7.19.4": version "7.19.4" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz#be553f4951ac6352df2567f7daa19a0ee15668e7" @@ -360,13 +212,6 @@ dependencies: "@babel/types" "^7.19.4" -"@babel/helper-skip-transparent-expression-wrappers@^7.16.0": - version "7.16.0" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz#0ee3388070147c3ae051e487eca3ebb0e2e8bb09" - integrity sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw== - dependencies: - "@babel/types" "^7.16.0" - "@babel/helper-skip-transparent-expression-wrappers@^7.18.9": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" @@ -374,13 +219,6 @@ dependencies: "@babel/types" "^7.20.0" -"@babel/helper-split-export-declaration@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b" - integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-split-export-declaration@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" @@ -393,21 +231,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== -"@babel/helper-validator-identifier@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" - integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== - "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": version "7.19.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== -"@babel/helper-validator-option@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" - integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== - "@babel/helper-validator-option@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" @@ -441,25 +269,11 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/highlight@^7.16.7": - version "7.16.10" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea753c227b0f570ad785aba88" - integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" - chalk "^2.0.0" - js-tokens "^4.0.0" - "@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.1.tgz#3e045a92f7b4623cafc2425eddcb8cf2e54f9cc5" integrity sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw== -"@babel/parser@^7.16.7", "@babel/parser@^7.17.3": - version "7.17.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240" - integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ== - "@babel/plugin-proposal-async-generator-functions@^7.0.0": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" @@ -470,15 +284,7 @@ "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz#925cad7b3b1a2fcea7e59ecc8eb5954f961f91b0" - integrity sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - -"@babel/plugin-proposal-class-properties@^7.13.0": +"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -487,22 +293,14 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-proposal-export-default-from@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.16.7.tgz#a40ab158ca55627b71c5513f03d3469026a9e929" - integrity sha512-+cENpW1rgIjExn+o5c8Jw/4BuH4eGKKYvkMB8/0ZxFQ9mC0t4z09VsPIwNg6waF69QYC81zxGeAsREGuqQoKeg== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-export-default-from" "^7.16.7" - -"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.7.tgz#141fc20b6857e59459d430c850a0011e36561d99" - integrity sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ== + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206" + integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-export-default-from" "^7.18.6" -"@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8": +"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== @@ -511,34 +309,25 @@ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" "@babel/plugin-proposal-object-rest-spread@^7.0.0": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.17.3.tgz#d9eb649a54628a51701aef7e0ea3d17e2b9dd390" - integrity sha512-yuL5iQA/TbZn+RGAfxQXfi7CNLmKi1f8zInn4IgobuCWcAb7i+zj4TYzQ9l8cEzVyJ89PDGuqxK1xZpUDISesw== + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz#a8fc86e8180ff57290c91a75d83fe658189b642d" + integrity sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q== dependencies: - "@babel/compat-data" "^7.17.0" - "@babel/helper-compilation-targets" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/compat-data" "^7.19.4" + "@babel/helper-compilation-targets" "^7.19.3" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.16.7" + "@babel/plugin-transform-parameters" "^7.18.8" "@babel/plugin-proposal-optional-catch-binding@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.7.tgz#c623a430674ffc4ab732fd0a0ae7722b67cb74cf" - integrity sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" + integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.7.tgz#7cd629564724816c0e8a969535551f943c64c39a" - integrity sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - -"@babel/plugin-proposal-optional-chaining@^7.13.12": +"@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== @@ -575,21 +364,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.16.7.tgz#fa89cf13b60de2c3f79acdc2b52a21174c6de060" - integrity sha512-4C3E4NsrLOgftKaTYTULhHsuQrGv3FHrBzOMDiS7UYKIpgGBkAdawg4h+EI8zPeK9M0fiIIh72hIwsI24K7MbA== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - -"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.16.7", "@babel/plugin-syntax-flow@^7.2.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.7.tgz#202b147e5892b8452bbb0bb269c7ed2539ab8832" - integrity sha512-UDo3YGQO0jH6ytzVwgSLv9i/CzMcUjbKenL67dTrAZPPv6GFAtDhe6jqnvmoKzC/7htNTohhos+onPtDMqJwaQ== +"@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz#8df076711a4818c4ce4f23e61d622b0ba2ff84bc" + integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-syntax-flow@^7.18.6": +"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== @@ -610,12 +392,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz#50b6571d13f764266a113d77c82b4a6508bbe665" - integrity sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q== +"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" @@ -666,13 +448,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz#39c9b55ee153151990fb038651d58d3fd03f98f8" - integrity sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-typescript@^7.20.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" @@ -681,11 +456,11 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-arrow-functions@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz#44125e653d94b98db76369de9c396dc14bef4154" - integrity sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" + integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-async-to-generator@^7.0.0": version "7.18.6" @@ -697,64 +472,57 @@ "@babel/helper-remap-async-to-generator" "^7.18.6" "@babel/plugin-transform-block-scoped-functions@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz#4d0d57d9632ef6062cdf354bb717102ee042a620" - integrity sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" + integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-block-scoping@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz#f50664ab99ddeaee5bc681b8f3a6ea9d72ab4f87" - integrity sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ== + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz#91fe5e6ffc9ba13cb6c95ed7f0b1204f68c988c5" + integrity sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-classes@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz#8f4b9562850cd973de3b498f1218796eb181ce00" - integrity sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.16.7" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-optimise-call-expression" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-replace-supers" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz#0e61ec257fba409c41372175e7c1e606dc79bb20" + integrity sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-compilation-targets" "^7.19.0" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" globals "^11.1.0" "@babel/plugin-transform-computed-properties@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz#66dee12e46f61d2aae7a73710f591eb3df616470" - integrity sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw== + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" + integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-destructuring@^7.0.0": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.17.7.tgz#49dc2675a7afa9a5e4c6bdee636061136c3408d1" - integrity sha512-XVh0r5yq9sLR4vZ6eVZe8FKfIcSgaTBxVBRSYokRj2qksf6QerYnTxz9/GTuKTH/n/HwLP7t6gtlybHetJ/6hQ== + version "7.20.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz#712829ef4825d9cc04bb379de316f981e9a6f648" + integrity sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-exponentiation-operator@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.7.tgz#efa9862ef97e9e9e5f653f6ddc7b665e8536fe9b" - integrity sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA== - dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - -"@babel/plugin-transform-flow-strip-types@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.7.tgz#291fb140c78dabbf87f2427e7c7c332b126964b8" - integrity sha512-mzmCq3cNsDpZZu9FADYYyfZJIOrSONmHcop2XEKPdBNMa4PDC4eEvcOvzZaCNcjKu72v0XQlA5y1g58aLRXdYg== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz#421c705f4521888c65e91fdd1af951bfefd4dacd" + integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-flow" "^7.16.7" + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-flow-strip-types@^7.18.6": +"@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== @@ -763,46 +531,36 @@ "@babel/plugin-syntax-flow" "^7.18.6" "@babel/plugin-transform-for-of@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz#649d639d4617dff502a9a158c479b3b556728d8c" - integrity sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg== + version "7.18.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" + integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-function-name@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz#5ab34375c64d61d083d7d2f05c38d90b97ec65cf" - integrity sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA== + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" + integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== dependencies: - "@babel/helper-compilation-targets" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-literals@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz#254c9618c5ff749e87cb0c0cef1a0a050c0bdab1" - integrity sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ== + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" + integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-member-expression-literals@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz#6e5dcf906ef8a098e630149d14c867dd28f92384" - integrity sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - -"@babel/plugin-transform-modules-commonjs@^7.0.0": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.17.7.tgz#d86b217c8e45bb5f2dbc11eefc8eab62cf980d19" - integrity sha512-ITPmR2V7MqioMJyrxUo2onHNC3e+MvfFiFIR0RP21d3PtlVb6sfzoxNKiphSZUOM9hEIdzCcZe83ieX3yoqjUA== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" + integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== dependencies: - "@babel/helper-module-transforms" "^7.17.7" - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-simple-access" "^7.17.7" - babel-plugin-dynamic-import-node "^2.3.3" + "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-modules-commonjs@^7.13.8": +"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8": version "7.19.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== @@ -820,101 +578,101 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-object-super@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz#ac359cf8d32cf4354d27a46867999490b6c32a94" - integrity sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" + integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-replace-supers" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.6" -"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz#a1721f55b99b736511cb7e0152f61f17688f331f" - integrity sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw== +"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.18.8": + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz#9a5aa370fdcce36f110455e9369db7afca0f9eeb" + integrity sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-property-literals@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz#2dadac85155436f22c696c4827730e0fe1057a55" - integrity sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" + integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-display-name@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.16.7.tgz#7b6d40d232f4c0f550ea348593db3b21e2404340" - integrity sha512-qgIg8BcZgd0G/Cz916D5+9kqX0c7nPZyXaP8R2tLNN5tkyIZdG5fEwBrxwplzSnjC1jvQmyMNVwUCZPcbGY7Pg== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" + integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-self@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.16.7.tgz#f432ad0cba14c4a1faf44f0076c69e42a4d4479e" - integrity sha512-oe5VuWs7J9ilH3BCCApGoYjHoSO48vkjX2CbA5bFVhIuO2HKxA3vyF7rleA4o6/4rTDbk6r8hBW7Ul8E+UZrpA== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz#3849401bab7ae8ffa1e3e5687c94a753fc75bda7" + integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-source@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.16.7.tgz#1879c3f23629d287cc6186a6c683154509ec70c0" - integrity sha512-rONFiQz9vgbsnaMtQlZCjIRwhJvlrPET8TabIUK2hzlXw9B9s2Ieaxte1SCOOXMbWRHodbKixNf3BLcWVOQ8Bw== + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz#88578ae8331e5887e8ce28e4c9dc83fb29da0b86" + integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-react-jsx@^7.0.0": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.17.3.tgz#eac1565da176ccb1a715dae0b4609858808008c1" - integrity sha512-9tjBm4O07f7mzKSIlEmPdiE6ub7kfIe6Cd+w+oQebpATfTQMAgW+YOuWxogbKVTulA+MEO7byMeIUtQ1z+z+ZQ== + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" + integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== dependencies: - "@babel/helper-annotate-as-pure" "^7.16.7" - "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-jsx" "^7.16.7" - "@babel/types" "^7.17.0" + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/plugin-syntax-jsx" "^7.18.6" + "@babel/types" "^7.19.0" "@babel/plugin-transform-runtime@^7.0.0": - version "7.17.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.17.0.tgz#0a2e08b5e2b2d95c4b1d3b3371a2180617455b70" - integrity sha512-fr7zPWnKXNc1xoHfrIU9mN/4XKX4VLZ45Q+oMhfsYIaHvg7mHgmhfOy/ckRWqDK7XF3QDigRpkh5DKq6+clE8A== + version "7.19.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz#9d2a9dbf4e12644d6f46e5e75bfbf02b5d6e9194" + integrity sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw== dependencies: - "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - babel-plugin-polyfill-corejs2 "^0.3.0" - babel-plugin-polyfill-corejs3 "^0.5.0" - babel-plugin-polyfill-regenerator "^0.3.0" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + babel-plugin-polyfill-corejs2 "^0.3.3" + babel-plugin-polyfill-corejs3 "^0.6.0" + babel-plugin-polyfill-regenerator "^0.4.1" semver "^6.3.0" "@babel/plugin-transform-shorthand-properties@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz#e8549ae4afcf8382f711794c0c7b6b934c5fbd2a" - integrity sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" + integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-spread@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz#a303e2122f9f12e0105daeedd0f30fb197d8ff44" - integrity sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg== + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" + integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-transform-sticky-regex@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.7.tgz#c84741d4f4a38072b9a1e2e3fd56d359552e8660" - integrity sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz#c6706eb2b1524028e317720339583ad0f444adcc" + integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-template-literals@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz#f3d1c45d28967c8e80f53666fc9c3e50618217ab" - integrity sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA== + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" + integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== dependencies: - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-plugin-utils" "^7.18.9" -"@babel/plugin-transform-typescript@^7.18.6": +"@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz#2c7ec62b8bfc21482f3748789ba294a46a375169" integrity sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw== @@ -923,22 +681,13 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-typescript" "^7.20.0" -"@babel/plugin-transform-typescript@^7.5.0": - version "7.16.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.16.8.tgz#591ce9b6b83504903fa9dd3652c357c2ba7a1ee0" - integrity sha512-bHdQ9k7YpBDO2d0NVfkj51DpQcvwIzIusJ7mEUaMlbZq3Kt/U47j24inXZHQ5MDiYpCs+oZiwnXyKedE8+q7AQ== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" - "@babel/plugin-syntax-typescript" "^7.16.7" - "@babel/plugin-transform-unicode-regex@^7.0.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.7.tgz#0f7aa4a501198976e25e82702574c34cfebe9ef2" - integrity sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz#194317225d8c201bbae103364ffe9e2cea36cdca" + integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.16.7" - "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" "@babel/preset-flow@^7.13.13": version "7.18.6" @@ -970,22 +719,13 @@ source-map-support "^0.5.16" "@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5": - version "7.17.8" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.8.tgz#3e56e4aff81befa55ac3ac6a0967349fd1c5bca2" - integrity sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA== - dependencies: - regenerator-runtime "^0.13.4" - -"@babel/template@^7.0.0", "@babel/template@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" - integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w== + version "7.20.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.1.tgz#1148bb33ab252b165a06698fde7576092a78b4a9" + integrity sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg== dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/parser" "^7.16.7" - "@babel/types" "^7.16.7" + regenerator-runtime "^0.13.10" -"@babel/template@^7.18.10", "@babel/template@^7.3.3": +"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== @@ -1010,31 +750,7 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.17.3": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.17.3.tgz#0ae0f15b27d9a92ba1f2263358ea7c4e7db47b57" - integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw== - dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.3" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-hoist-variables" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/parser" "^7.17.3" - "@babel/types" "^7.17.0" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.16.0", "@babel/types@^7.16.7", "@babel/types@^7.17.0": - version "7.17.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.17.0.tgz#a826e368bccb6b3d84acd76acad5c0d87342390b" - integrity sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" - to-fast-properties "^2.0.0" - -"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": +"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.0.tgz#52c94cf8a7e24e89d2a194c25c35b17a64871479" integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg== @@ -1321,6 +1037,14 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/gen-mapping@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" @@ -1335,34 +1059,16 @@ resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== -"@jridgewell/resolve-uri@^3.0.3": - version "3.0.5" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz#68eb521368db76d040a6315cdb24bf2483037b9c" - integrity sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew== - -"@jridgewell/set-array@^1.0.1": +"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": version "1.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== -"@jridgewell/sourcemap-codec@1.4.14": +"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.14" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.11" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz#771a1d8d744eeb71b6adb35808e1a6c7b9b8c8ec" - integrity sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg== - -"@jridgewell/trace-mapping@^0.3.0": - version "0.3.4" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz#f6a0832dffd5b8a6aaa633b7d9f8e8e94c83a0c3" - integrity sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping@^0.3.9": version "0.3.17" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" @@ -1812,9 +1518,9 @@ integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== "@types/prop-types@*": - version "15.7.4" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11" - integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ== + version "15.7.5" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" + integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== "@types/react-native@^0.70.6": version "0.70.6" @@ -1830,19 +1536,10 @@ dependencies: "@types/react" "*" -"@types/react@*": - version "17.0.43" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.43.tgz#4adc142887dd4a2601ce730bc56c3436fdb07a55" - integrity sha512-8Q+LNpdxf057brvPu1lMtC5Vn7J119xrP1aq4qiaefNioQUYANF/CYeK4NsKorSZyUGJ66g0IM+4bbjwx45o2A== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/react@^18.0.21": - version "18.0.24" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.24.tgz#2f79ed5b27f08d05107aab45c17919754cc44c20" - integrity sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q== +"@types/react@*", "@types/react@^18.0.21": + version "18.0.25" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.25.tgz#8b1dcd7e56fe7315535a4af25435e0bb55c8ae44" + integrity sha512-xD6c0KDT4m7n9uD4ZHi02lzskaiqcBxf4zi+tXZY98a04wvc0hi/TcCPC2FOESZi51Nd7tlUeOJY8RofL799/g== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -2047,7 +1744,7 @@ abort-controller@^3.0.0: absolute-path@^0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" - integrity sha1-p4di+9rftSl76ZsV01p4Wy8JW/c= + integrity sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA== accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7: version "1.3.8" @@ -2193,7 +1890,7 @@ argparse@^1.0.7: arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== arr-flatten@^1.1.0: version "1.1.0" @@ -2203,7 +1900,7 @@ arr-flatten@^1.1.0: arr-union@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== array-includes@^3.1.5: version "3.1.5" @@ -2224,7 +1921,7 @@ array-union@^2.1.0: array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== array.prototype.flatmap@^1.3.0: version "1.3.1" @@ -2239,12 +1936,12 @@ array.prototype.flatmap@^1.3.0: asap@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== ast-types@0.14.2: version "0.14.2" @@ -2323,13 +2020,6 @@ babel-jest@^26.6.3: graceful-fs "^4.2.4" slash "^3.0.0" -babel-plugin-dynamic-import-node@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3" - integrity sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ== - dependencies: - object.assign "^4.1.0" - babel-plugin-istanbul@^6.0.0: version "6.1.1" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" @@ -2362,29 +2052,29 @@ babel-plugin-module-resolver@^4.1.0: reselect "^4.0.0" resolve "^1.13.1" -babel-plugin-polyfill-corejs2@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.1.tgz#440f1b70ccfaabc6b676d196239b138f8a2cfba5" - integrity sha512-v7/T6EQcNfVLfcN2X8Lulb7DjprieyLWJK/zOWH5DUYcAgex9sP3h25Q+DLsX9TloXe3y1O8l2q2Jv9q8UVB9w== +babel-plugin-polyfill-corejs2@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122" + integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== dependencies: - "@babel/compat-data" "^7.13.11" - "@babel/helper-define-polyfill-provider" "^0.3.1" + "@babel/compat-data" "^7.17.7" + "@babel/helper-define-polyfill-provider" "^0.3.3" semver "^6.1.1" -babel-plugin-polyfill-corejs3@^0.5.0: - version "0.5.2" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.2.tgz#aabe4b2fa04a6e038b688c5e55d44e78cd3a5f72" - integrity sha512-G3uJih0XWiID451fpeFaYGVuxHEjzKTHtc9uGFEjR6hHrvNzeS/PX+LLLcetJcytsB5m4j+K3o/EpXJNb/5IEQ== +babel-plugin-polyfill-corejs3@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz#56ad88237137eade485a71b52f72dbed57c6230a" + integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA== dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.1" - core-js-compat "^3.21.0" + "@babel/helper-define-polyfill-provider" "^0.3.3" + core-js-compat "^3.25.1" -babel-plugin-polyfill-regenerator@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz#2c0678ea47c75c8cc2fbb1852278d8fb68233990" - integrity sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A== +babel-plugin-polyfill-regenerator@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz#390f91c38d90473592ed43351e801a9d3e0fd747" + integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.1" + "@babel/helper-define-polyfill-provider" "^0.3.3" babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: version "7.0.0-beta.0" @@ -2518,18 +2208,7 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.17.5, browserslist@^4.19.1: - version "4.20.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.2.tgz#567b41508757ecd904dab4d1c646c612cd3d4f88" - integrity sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA== - dependencies: - caniuse-lite "^1.0.30001317" - electron-to-chromium "^1.4.84" - escalade "^3.1.1" - node-releases "^2.0.2" - picocolors "^1.0.0" - -browserslist@^4.21.3: +browserslist@^4.21.3, browserslist@^4.21.4: version "4.21.4" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== @@ -2562,7 +2241,7 @@ buffer@^5.5.0: bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg= + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== cache-base@^1.0.1: version "1.0.1" @@ -2590,21 +2269,21 @@ call-bind@^1.0.0, call-bind@^1.0.2: caller-callsite@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= + integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== dependencies: callsites "^2.0.0" caller-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= + integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== dependencies: caller-callsite "^2.0.0" callsites@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= + integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== callsites@^3.0.0: version "3.1.0" @@ -2621,11 +2300,6 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001317: - version "1.0.30001325" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001325.tgz#2b4ad19b77aa36f61f2eaf72e636d7481d55e606" - integrity sha512-sB1bZHjseSjDtijV1Hb7PB2Zd58Kyx+n/9EotvZ4Qcz2K3d0lWB8dB4nb8wN/TsOGFq3UuAm0zQZNQ4SoR7TrQ== - caniuse-lite@^1.0.30001400: version "1.0.30001430" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001430.tgz#638a8ae00b5a8a97e66ff43733b2701f81b101fa" @@ -2718,7 +2392,7 @@ clone-deep@^4.0.1: clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== co@^4.6.0: version "4.6.0" @@ -2733,7 +2407,7 @@ collect-v8-coverage@^1.0.0: collection-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== dependencies: map-visit "^1.0.0" object-visit "^1.0.0" @@ -2755,7 +2429,7 @@ color-convert@^2.0.1: color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== color-name@~1.1.4: version "1.1.4" @@ -2792,7 +2466,7 @@ commander@~2.13.0: commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== component-emitter@^1.2.1: version "1.3.0" @@ -2822,7 +2496,7 @@ compression@^1.7.1: concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== connect@^3.6.5: version "3.7.0" @@ -2834,30 +2508,22 @@ connect@^3.6.5: parseurl "~1.3.3" utils-merge "1.0.1" -convert-source-map@^1.4.0, convert-source-map@^1.6.0: +convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.9.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== -convert-source-map@^1.7.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" - integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== - dependencies: - safe-buffer "~5.1.1" - copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== -core-js-compat@^3.21.0: - version "3.21.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.21.1.tgz#cac369f67c8d134ff8f9bd1623e3bc2c42068c82" - integrity sha512-gbgX5AUvMb8gwxC7FLVWYT7Kkgu/y7+h/h1X43yJkNqhlK2fuYyQimqvKGNZFAY6CKii/GFKJ2cp/1/42TN36g== +core-js-compat@^3.25.1: + version "3.26.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.26.0.tgz#94e2cf8ba3e63800c4956ea298a6473bc9d62b44" + integrity sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A== dependencies: - browserslist "^4.19.1" - semver "7.0.0" + browserslist "^4.21.4" core-util-is@~1.0.0: version "1.0.3" @@ -2912,9 +2578,9 @@ cssstyle@^2.3.0: cssom "~0.3.6" csstype@^3.0.2: - version "3.0.11" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.11.tgz#d66700c5eacfac1940deb4e3ee5642792d85cd33" - integrity sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw== + version "3.1.1" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9" + integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw== data-urls@^2.0.0: version "2.0.0" @@ -2926,9 +2592,9 @@ data-urls@^2.0.0: whatwg-url "^8.0.0" dayjs@^1.8.15: - version "1.11.0" - resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.0.tgz#009bf7ef2e2ea2d5db2e6583d2d39a4b5061e805" - integrity sha512-JLC809s6Y948/FuCZPm5IX8rRhQwOiyMb2TfVVQEixG7P8Lm/gt5S7yoQZmC8x1UehI9Pb7sksEt4xx14m+7Ug== + version "1.11.6" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.6.tgz#2e79a226314ec3ec904e3ee1dd5a4f5e5b1c7afb" + integrity sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ== debug@2.6.9, debug@^2.2.0, debug@^2.3.3: version "2.6.9" @@ -2947,7 +2613,7 @@ debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== decimal.js@^10.2.1: version "10.4.2" @@ -2957,7 +2623,7 @@ decimal.js@^10.2.1: decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + integrity sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og== deep-is@^0.1.3, deep-is@~0.1.3: version "0.1.4" @@ -2975,20 +2641,13 @@ deepmerge@^4.2.2: integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== defaults@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" - integrity sha1-xlYFHpgX2f8I7YgUd/P+QBnz730= + version "1.0.4" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== dependencies: clone "^1.0.2" -define-properties@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" - integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== - dependencies: - object-keys "^1.0.12" - -define-properties@^1.1.4: +define-properties@^1.1.3, define-properties@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== @@ -2999,14 +2658,14 @@ define-properties@^1.1.4: define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== dependencies: is-descriptor "^0.1.0" define-property@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== dependencies: is-descriptor "^1.0.0" @@ -3026,7 +2685,7 @@ delayed-stream@~1.0.0: denodeify@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" - integrity sha1-OjYof1A05pnnV3kBBSwubJQlFjE= + integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== depd@2.0.0: version "2.0.0" @@ -3079,18 +2738,13 @@ domexception@^2.0.1: ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== electron-to-chromium@^1.4.251: version "1.4.284" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== -electron-to-chromium@^1.4.84: - version "1.4.103" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.103.tgz#abfe376a4d70fa1e1b4b353b95df5d6dfd05da3a" - integrity sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg== - emittery@^0.7.1: version "0.7.2" resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" @@ -3104,7 +2758,7 @@ emoji-regex@^8.0.0: encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== end-of-stream@^1.1.0: version "1.4.4" @@ -3133,11 +2787,11 @@ error-ex@^1.3.1: is-arrayish "^0.2.1" error-stack-parser@^2.0.6: - version "2.0.7" - resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.0.7.tgz#b0c6e2ce27d0495cf78ad98715e0cad1219abb57" - integrity sha512-chLOW0ZGRf4s8raLrDxa5sdkvPec5YdvwbFnqJme4rk0rFajP8mPtrDL1+I+CwrQDCjswDA5sREX7jYQDQs9vA== + version "2.1.4" + resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" + integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== dependencies: - stackframe "^1.1.1" + stackframe "^1.3.4" errorhandler@^1.5.0: version "1.5.1" @@ -3201,12 +2855,12 @@ escalade@^3.1.1: escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== escape-string-regexp@^2.0.0: version "2.0.0" @@ -3431,7 +3085,7 @@ esutils@^2.0.2: etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== event-target-shim@^5.0.0, event-target-shim@^5.0.1: version "5.0.1" @@ -3479,7 +3133,7 @@ exit@^0.1.2: expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== dependencies: debug "^2.3.3" define-property "^0.2.5" @@ -3504,14 +3158,14 @@ expect@^26.6.2: extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== dependencies: is-extendable "^0.1.0" extend-shallow@^3.0.0, extend-shallow@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== dependencies: assign-symbols "^1.0.0" is-extendable "^1.0.1" @@ -3569,9 +3223,9 @@ fastq@^1.6.0: reusify "^1.0.4" fb-watchman@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" - integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== + version "2.0.2" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" + integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== dependencies: bser "2.1.1" @@ -3585,7 +3239,7 @@ file-entry-cache@^6.0.1: fill-range@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== dependencies: extend-shallow "^2.0.1" is-number "^3.0.0" @@ -3602,7 +3256,7 @@ fill-range@^7.0.1: filter-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - integrity sha1-mzERErxsYSehbgFsbF1/GeCAXFs= + integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== finalhandler@1.1.2: version "1.1.2" @@ -3688,7 +3342,7 @@ follow-redirects@^1.15.0: for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== form-data@^3.0.0: version "3.0.1" @@ -3711,19 +3365,19 @@ form-data@^4.0.0: fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== dependencies: map-cache "^0.2.2" fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== fs-extra@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" - integrity sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA= + integrity sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ== dependencies: graceful-fs "^4.1.2" jsonfile "^2.1.0" @@ -3741,7 +3395,7 @@ fs-extra@^8.1.0: fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@^2.1.2: version "2.3.2" @@ -3783,16 +3437,7 @@ get-caller-file@^2.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2: - version "1.1.1" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6" - integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - -get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: +get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== @@ -3836,7 +3481,7 @@ get-symbol-description@^1.0.0: get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== glob-parent@^5.1.2: version "5.1.2" @@ -3845,7 +3490,7 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" -glob@^7.1.1, glob@^7.1.2, glob@^7.1.4: +glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -3857,18 +3502,6 @@ glob@^7.1.1, glob@^7.1.2, glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.1.3, glob@^7.1.6: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -3911,7 +3544,7 @@ has-bigints@^1.0.1, has-bigints@^1.0.2: has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== has-flag@^4.0.0: version "4.0.0" @@ -3925,7 +3558,7 @@ has-property-descriptors@^1.0.0: dependencies: get-intrinsic "^1.1.1" -has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: +has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== @@ -3940,7 +3573,7 @@ has-tostringtag@^1.0.0: has-value@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== dependencies: get-value "^2.0.3" has-values "^0.1.4" @@ -3949,7 +3582,7 @@ has-value@^0.3.1: has-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== dependencies: get-value "^2.0.6" has-values "^1.0.0" @@ -3958,12 +3591,12 @@ has-value@^1.0.0: has-values@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== has-values@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== dependencies: is-number "^3.0.0" kind-of "^4.0.0" @@ -4079,7 +3712,7 @@ image-size@^0.6.0: import-fresh@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= + integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== dependencies: caller-path "^2.0.0" resolve-from "^3.0.0" @@ -4108,7 +3741,7 @@ imurmurhash@^0.1.4: inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" wrappy "1" @@ -4135,14 +3768,14 @@ invariant@^2.2.4: loose-envify "^1.0.0" ip@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= + version "1.1.8" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== dependencies: kind-of "^3.0.2" @@ -4156,7 +3789,7 @@ is-accessor-descriptor@^1.0.0: is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-bigint@^1.0.1: version "1.0.4" @@ -4190,13 +3823,6 @@ is-ci@^2.0.0: dependencies: ci-info "^2.0.0" -is-core-module@^2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211" - integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA== - dependencies: - has "^1.0.3" - is-core-module@^2.9.0: version "2.11.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" @@ -4207,7 +3833,7 @@ is-core-module@^2.9.0: is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== dependencies: kind-of "^3.0.2" @@ -4246,7 +3872,7 @@ is-descriptor@^1.0.0, is-descriptor@^1.0.2: is-directory@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= + integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== is-docker@^2.0.0: version "2.2.1" @@ -4256,7 +3882,7 @@ is-docker@^2.0.0: is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== is-extendable@^1.0.1: version "1.0.1" @@ -4273,7 +3899,7 @@ is-extglob@^2.1.1: is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== is-fullwidth-code-point@^3.0.0: version "3.0.0" @@ -4312,7 +3938,7 @@ is-number-object@^1.0.4: is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== dependencies: kind-of "^3.0.2" @@ -4351,7 +3977,7 @@ is-shared-array-buffer@^1.0.2: is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== is-stream@^2.0.0: version "2.0.1" @@ -4397,7 +4023,7 @@ is-windows@^1.0.2: is-wsl@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" - integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw== is-wsl@^2.2.0: version "2.2.0" @@ -4409,24 +4035,24 @@ is-wsl@^2.2.0: isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== isobject@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== dependencies: isarray "1.0.0" isobject@^3.0.0, isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" @@ -4982,7 +4608,7 @@ jsesc@^2.5.1: jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= + integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== json-parse-better-errors@^1.0.1: version "1.0.2" @@ -5012,7 +4638,7 @@ json-stable-stringify-without-jsonify@^1.0.1: json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + integrity sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw== json5@^2.2.1: version "2.2.1" @@ -5022,14 +4648,14 @@ json5@^2.2.1: jsonfile@^2.1.0: version "2.4.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" - integrity sha1-NzaitCi4e72gzIO1P6PWM6NcKug= + integrity sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw== optionalDependencies: graceful-fs "^4.1.6" jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== optionalDependencies: graceful-fs "^4.1.6" @@ -5044,14 +4670,14 @@ jsonfile@^4.0.0: kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== dependencies: is-buffer "^1.1.5" kind-of@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== dependencies: is-buffer "^1.1.5" @@ -5068,7 +4694,7 @@ kind-of@^6.0.0, kind-of@^6.0.2: klaw@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" - integrity sha1-QIhDO0azsbolnXh4XY6W9zugJDk= + integrity sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw== optionalDependencies: graceful-fs "^4.1.9" @@ -5128,7 +4754,7 @@ locate-path@^6.0.0: lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== lodash.merge@^4.6.2: version "4.6.2" @@ -5138,7 +4764,7 @@ lodash.merge@^4.6.2: lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" - integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ= + integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== lodash.truncate@^4.4.2: version "4.4.2" @@ -5206,12 +4832,12 @@ makeerror@1.0.12: map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== map-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== dependencies: object-visit "^1.0.0" @@ -5562,9 +5188,9 @@ minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: brace-expansion "^1.1.7" minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== + version "1.2.7" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== mixin-deep@^1.2.0: version "1.3.2" @@ -5584,7 +5210,7 @@ mkdirp@^0.5.1: ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== ms@2.1.2: version "2.1.2" @@ -5597,9 +5223,9 @@ ms@2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== nanoid@^3.1.23: - version "3.3.2" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.2.tgz#c89622fafb4381cd221421c69ec58547a1eec557" - integrity sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA== + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== nanomatch@^1.2.9: version "1.2.13" @@ -5665,7 +5291,7 @@ node-fetch@^2.2.0, node-fetch@^2.6.0: node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-notifier@^8.0.0: version "8.0.2" @@ -5679,11 +5305,6 @@ node-notifier@^8.0.0: uuid "^8.3.0" which "^2.0.2" -node-releases@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01" - integrity sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg== - node-releases@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" @@ -5707,7 +5328,7 @@ normalize-package-data@^2.5.0: normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + integrity sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w== dependencies: remove-trailing-separator "^1.0.1" @@ -5719,7 +5340,7 @@ normalize-path@^3.0.0: npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== dependencies: path-key "^2.0.0" @@ -5748,12 +5369,12 @@ ob1@0.72.3: object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== object-copy@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== dependencies: copy-descriptor "^0.1.0" define-property "^0.2.5" @@ -5764,7 +5385,7 @@ object-inspect@^1.12.2, object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== -object-keys@^1.0.12, object-keys@^1.1.1: +object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== @@ -5772,20 +5393,10 @@ object-keys@^1.0.12, object-keys@^1.1.1: object-visit@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== dependencies: isobject "^3.0.0" -object.assign@^4.1.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" - integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - has-symbols "^1.0.1" - object-keys "^1.1.1" - object.assign@^4.1.3, object.assign@^4.1.4: version "4.1.4" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" @@ -5825,7 +5436,7 @@ object.hasown@^1.1.1: object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== dependencies: isobject "^3.0.1" @@ -5848,7 +5459,7 @@ on-finished@2.4.1: on-finished@~2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== dependencies: ee-first "1.1.1" @@ -5860,7 +5471,7 @@ on-headers@~1.0.2: once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" @@ -5920,7 +5531,7 @@ ora@^5.4.1: os-tmpdir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== p-each-series@^2.1.0: version "2.2.0" @@ -5930,7 +5541,7 @@ p-each-series@^2.1.0: p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" @@ -5982,7 +5593,7 @@ parent-module@^1.0.0: parse-json@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== dependencies: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" @@ -6010,12 +5621,12 @@ parseurl@~1.3.3: pascalcase@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== path-exists@^4.0.0: version "4.0.0" @@ -6025,12 +5636,12 @@ path-exists@^4.0.0: path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^2.0.0, path-key@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" @@ -6091,7 +5702,7 @@ pkg-up@^3.1.0: posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== prelude-ls@^1.2.1: version "1.2.1" @@ -6136,9 +5747,9 @@ progress@^2.0.0: integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== promise@^8.0.3: - version "8.1.0" - resolved "https://registry.yarnpkg.com/promise/-/promise-8.1.0.tgz#697c25c3dfe7435dd79fcd58c38a135888eaf05e" - integrity sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q== + version "8.3.0" + resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" + integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== dependencies: asap "~2.0.6" @@ -6216,9 +5827,9 @@ react-devtools-core@4.24.0: ws "^7" react-freeze@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.0.tgz#b21c65fe1783743007c8c9a2952b1c8879a77354" - integrity sha512-yQaiOqDmoKqks56LN9MTgY06O0qQHgV4FUrikH357DydArSZHQhl0BJFqGKIZoTqi8JizF9Dxhuk1FIZD6qCaw== + version "1.0.3" + resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.3.tgz#5e3ca90e682fed1d73a7cb50c2c7402b3e85618d" + integrity sha512-ZnXwLQnGzrDpHBHiC56TXFXvmolPeMjTn1UOm610M4EXGzbEDR7oOIyS2ZiItgbs6eZc4oU/a0hpk8PrcKvv5g== "react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.1.0: version "18.2.0" @@ -6398,13 +6009,6 @@ recast@^0.20.4: source-map "~0.6.1" tslib "^2.0.1" -regenerate-unicode-properties@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56" - integrity sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties@^10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" @@ -6417,10 +6021,10 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: - version "0.13.9" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" - integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== +regenerator-runtime@^0.13.10, regenerator-runtime@^0.13.2: + version "0.13.10" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee" + integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw== regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" @@ -6444,18 +6048,6 @@ regexpp@^3.0.0, regexpp@^3.1.0, regexpp@^3.2.0: resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== -regexpu-core@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.0.1.tgz#c531122a7840de743dcf9c83e923b5560323ced3" - integrity sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.0.1" - regjsgen "^0.6.0" - regjsparser "^0.8.2" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.0.0" - regexpu-core@^5.1.0: version "5.2.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.1.tgz#a69c26f324c1e962e9ffd0b88b055caba8089139" @@ -6468,23 +6060,11 @@ regexpu-core@^5.1.0: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.0.0" -regjsgen@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.6.0.tgz#83414c5354afd7d6627b16af5f10f41c4e71808d" - integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA== - regjsgen@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.7.1.tgz#ee5ef30e18d3f09b7c369b76e7c2373ed25546f6" integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== -regjsparser@^0.8.2: - version "0.8.4" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.8.4.tgz#8a14285ffcc5de78c5b95d62bbf413b6bc132d5f" - integrity sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA== - dependencies: - jsesc "~0.5.0" - regjsparser@^0.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" @@ -6495,7 +6075,7 @@ regjsparser@^0.9.1: remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== repeat-element@^1.1.2: version "1.1.4" @@ -6505,12 +6085,12 @@ repeat-element@^1.1.2: repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== require-from-string@^2.0.2: version "2.0.2" @@ -6528,9 +6108,9 @@ requires-port@^1.0.0: integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== reselect@^4.0.0: - version "4.1.5" - resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.5.tgz#852c361247198da6756d07d9296c2b51eddb79f6" - integrity sha512-uVdlz8J7OO+ASpBYoz1Zypgx0KasCY20H+N8JD13oUMtPvSHQuscrHop4KbXrbsBcdB9Ds7lVK7eRkBIfO43vQ== + version "4.1.7" + resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.7.tgz#56480d9ff3d3188970ee2b76527bd94a95567a42" + integrity sha512-Zu1xbUt3/OPwsXL46hvOOoQrap2azE7ZQbokq61BQfiXvhewsKDwhMeZjTX9sX0nvw1t/U5Audyn1I9P/m9z0A== resolve-cwd@^3.0.0: version "3.0.0" @@ -6542,7 +6122,7 @@ resolve-cwd@^3.0.0: resolve-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha1-six699nWiBvItuZTM17rywoYh0g= + integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== resolve-from@^4.0.0: version "4.0.0" @@ -6557,9 +6137,9 @@ resolve-from@^5.0.0: resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== -resolve@^1.10.0, resolve@^1.12.0, resolve@^1.18.1: +resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.18.1: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -6568,15 +6148,6 @@ resolve@^1.10.0, resolve@^1.12.0, resolve@^1.18.1: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.13.1, resolve@^1.14.2: - version "1.22.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" - integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== - dependencies: - is-core-module "^2.8.1" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - resolve@^2.0.0-next.3: version "2.0.0-next.4" resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" @@ -6621,7 +6192,7 @@ rimraf@^3.0.0, rimraf@^3.0.2: rimraf@~2.2.6: version "2.2.8" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" - integrity sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI= + integrity sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg== rimraf@~2.6.2: version "2.6.3" @@ -6664,7 +6235,7 @@ safe-regex-test@^1.0.0: safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== dependencies: ret "~0.1.10" @@ -6707,11 +6278,6 @@ scheduler@^0.22.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" - integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== - semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" @@ -6746,7 +6312,7 @@ send@0.18.0: serialize-error@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" - integrity sha1-ULZ51WNc34Rme9yOWa9OW4HV9go= + integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== serve-static@^1.13.1: version "1.15.0" @@ -6761,7 +6327,7 @@ serve-static@^1.13.1: set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" @@ -6788,7 +6354,7 @@ shallow-clone@^3.0.0: shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== dependencies: shebang-regex "^1.0.0" @@ -6802,19 +6368,14 @@ shebang-command@^2.0.0: shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== shebang-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shell-quote@^1.6.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" - integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== - -shell-quote@^1.7.3: +shell-quote@^1.6.1, shell-quote@^1.7.3: version "1.7.4" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== @@ -6920,10 +6481,10 @@ source-map-url@^0.4.0: resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== -source-map@^0.5.0, source-map@^0.5.6: +source-map@^0.5.6: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" @@ -6931,9 +6492,9 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== spdx-correct@^3.0.0: version "3.1.1" @@ -6976,7 +6537,7 @@ split-string@^3.0.1, split-string@^3.0.2: sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== stack-utils@^2.0.2: version "2.0.5" @@ -6985,10 +6546,10 @@ stack-utils@^2.0.2: dependencies: escape-string-regexp "^2.0.0" -stackframe@^1.1.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.2.1.tgz#1033a3473ee67f08e2f2fc8eba6aef4f845124e1" - integrity sha512-h88QkzREN/hy8eRdyNhhsO7RSJ5oyTqxxmmn0dzBIMUclZsjpfmrsg81vp8mjjAs2vAZ72nyWxRUwSwmh0e4xg== +stackframe@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" + integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== stacktrace-parser@^0.1.3: version "0.1.10" @@ -7000,7 +6561,7 @@ stacktrace-parser@^0.1.3: static-extend@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== dependencies: define-property "^0.2.5" object-copy "^0.1.0" @@ -7013,12 +6574,12 @@ statuses@2.0.1: statuses@~1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== strict-uri-encode@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" - integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= + integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== string-length@^4.0.1: version "4.0.2" @@ -7105,7 +6666,7 @@ strip-bom@^4.0.0: strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== strip-final-newline@^2.0.0: version "2.0.0" @@ -7175,7 +6736,7 @@ table@^6.0.9: temp@0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.3.tgz#e0c6bc4d26b903124410e4fed81103014dfc1f59" - integrity sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k= + integrity sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw== dependencies: os-tmpdir "^1.0.0" rimraf "~2.2.6" @@ -7230,19 +6791,19 @@ tmpl@1.0.5: to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== to-object-path@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== dependencies: kind-of "^3.0.2" to-regex-range@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== dependencies: is-number "^3.0.0" repeat-string "^1.6.1" @@ -7289,7 +6850,7 @@ tr46@^2.1.0: tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== tslib@^1.8.1: version "1.14.1" @@ -7401,9 +6962,9 @@ unicode-match-property-value-ecmascript@^2.0.0: integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw== unicode-property-aliases-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz#0a36cb9a585c4f6abd51ad1deddb285c165297c8" - integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ== + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" + integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== union-value@^1.0.0: version "1.0.1" @@ -7428,12 +6989,12 @@ universalify@^0.2.0: unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== unset-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== dependencies: has-value "^0.3.1" isobject "^3.0.0" @@ -7456,7 +7017,7 @@ uri-js@^4.2.2: urix@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== url-parse@^1.5.3: version "1.5.10" @@ -7484,12 +7045,12 @@ use@^3.1.0: util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== utils-merge@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== uuid@^8.3.0: version "8.3.2" @@ -7521,7 +7082,7 @@ validate-npm-package-license@^3.0.1: vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== vlq@^1.0.0: version "1.0.1" @@ -7550,21 +7111,21 @@ walker@^1.0.7, walker@~1.0.5: makeerror "1.0.12" warn-once@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.0.tgz#4f58d89b84f968d0389176aa99e0cf0f14ffd4c8" - integrity sha512-recZTSvuaH/On5ZU5ywq66y99lImWqzP93+AiUo9LUwG8gXHW+LJjhOd6REJHm7qb0niYqrEQJvbHSQfuJtTqA== + version "0.1.1" + resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.1.tgz#952088f4fb56896e73fd4e6a3767272a3fccce43" + integrity sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q== wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== dependencies: defaults "^1.0.3" webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== webidl-conversions@^5.0.0: version "5.0.0" @@ -7596,7 +7157,7 @@ whatwg-mimetype@^2.3.0: whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0= + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== dependencies: tr46 "~0.0.3" webidl-conversions "^3.0.0" @@ -7624,7 +7185,7 @@ which-boxed-primitive@^1.0.2: which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== which@^1.2.9: version "1.3.1" @@ -7657,7 +7218,7 @@ wrap-ansi@^6.2.0: wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== write-file-atomic@^2.3.0: version "2.4.3" @@ -7685,12 +7246,7 @@ ws@^6.1.4: dependencies: async-limiter "~1.0.0" -ws@^7: - version "7.5.7" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.7.tgz#9e0ac77ee50af70d58326ecff7e85eb3fa375e67" - integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A== - -ws@^7.4.6, ws@^7.5.1: +ws@^7, ws@^7.4.6, ws@^7.5.1: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== From 4ed83b512122b0ccc4c2b003a64fb79209bc6fcc Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 7 Nov 2022 09:20:06 +0200 Subject: [PATCH 038/121] Fix line items view --- example/src/screens/SettingsScreen.tsx | 56 +++++++++++++------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 00929d265..8babfe084 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -231,35 +231,37 @@ const SettingsScreen = ({ navigation }) => { { lineItems.map((item, index) => { - { - const newLineItemsScreenProps: NewLineItemScreenProps = { - lineItem: item, - onEditLineItem: (editedLineItem) => { - const currentLineItems = [...lineItems]; - const index = currentLineItems.indexOf(item, 0); - currentLineItems[index] = editedLineItem; - setLineItems(currentLineItems); - }, - onRemoveLineItem: (lineItem) => { - const currentLineItems = [...lineItems]; - const index = currentLineItems.indexOf(lineItem, 0); - if (index > -1) { - currentLineItems.splice(index, 1); + return ( + { + const newLineItemsScreenProps: NewLineItemScreenProps = { + lineItem: item, + onEditLineItem: (editedLineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(item, 0); + currentLineItems[index] = editedLineItem; + setLineItems(currentLineItems); + }, + onRemoveLineItem: (lineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(lineItem, 0); + if (index > -1) { + currentLineItems.splice(index, 1); + } + setLineItems(currentLineItems); } - setLineItems(currentLineItems); } - } - - navigation.navigate('NewLineItem', newLineItemsScreenProps); - }} - > - {item.description} {`x${item.quantity}`} - - {item.amount} - + + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }} + > + {item.description} {`x${item.quantity}`} + + {item.amount} + + ); }) } Date: Tue, 8 Nov 2022 12:47:00 +0100 Subject: [PATCH 039/121] Fixed Android app --- example/android/app/build.gradle | 230 +++++++++--------- example/android/app/proguard-rules.pro | 3 + .../reactnativeexample/MainApplication.java | 3 +- .../app/src/main/res/values/strings.xml | 2 +- example/android/build.gradle | 83 +++---- example/android/gradle.properties | 3 + example/android/settings.gradle | 3 + example/metro.config.js | 2 +- example/package.json | 2 +- example/yarn.lock | 18 +- 10 files changed, 182 insertions(+), 167 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 4b93b1919..8bbc502e8 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,7 +1,7 @@ apply plugin: "com.android.application" + import com.android.build.OutputFile -import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets @@ -79,7 +79,7 @@ import org.apache.tools.ant.taskdefs.condition.Os */ project.ext.react = [ - enableHermes: true, // clean and rebuild if changing + enableHermes: false, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" @@ -97,7 +97,7 @@ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ -def enableProguardInReleaseBuilds = false +def enableProguardInReleaseBuilds = true /** * The preferred build flavor of JavaScriptCore. @@ -182,122 +182,132 @@ android { } android { - ndkVersion rootProject.ext.ndkVersion - - compileSdkVersion rootProject.ext.compileSdkVersion + ndkVersion rootProject.ext.ndkVersion - defaultConfig { - applicationId "com.reactnativeexample" - minSdkVersion rootProject.ext.minSdkVersion - targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0" - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + compileSdkVersion rootProject.ext.compileSdkVersion - if (isNewArchitectureEnabled()) { - // We configure the CMake build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - arguments "-DPROJECT_BUILD_DIR=$buildDir", - "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", - "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", - "-DNODE_MODULES_DIR=$rootDir/../node_modules", - "-DANDROID_STL=c++_shared" - } - } - if (!enableSeparateBuildPerCPUArchitecture) { - ndk { - abiFilters (*reactNativeArchitectures()) - } - } - } - } + defaultConfig { + applicationId "com.reactnativeexample" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { - // We configure the NDK build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - path "$projectDir/src/main/jni/CMakeLists.txt" - } - } - def reactAndroidProjectDir = project(':ReactAndroid').projectDir - def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") + // We configure the CMake build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + arguments "-DPROJECT_BUILD_DIR=$buildDir", + "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", + "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", + "-DNODE_MODULES_DIR=$rootDir/../node_modules", + "-DANDROID_STL=c++_shared" } - def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") - } - afterEvaluate { - // If you wish to add a custom TurboModule or component locally, - // you should uncomment this line. - // preBuild.dependsOn("generateCodegenArtifactsFromSchema") - preDebugBuild.dependsOn(packageReactNdkDebugLibs) - preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) - - // Due to a bug inside AGP, we have to explicitly set a dependency - // between configureCMakeDebug* tasks and the preBuild tasks. - // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 - configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) - configureCMakeDebug.dependsOn(preDebugBuild) - reactNativeArchitectures().each { architecture -> - tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { - dependsOn("preDebugBuild") - } - tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { - dependsOn("preReleaseBuild") - } - } + } + if (!enableSeparateBuildPerCPUArchitecture) { + ndk { + abiFilters(*reactNativeArchitectures()) } + } } + } - splits { - abi { - reset() - enable enableSeparateBuildPerCPUArchitecture - universalApk false // If true, also generate a universal APK - include (*reactNativeArchitectures()) - } + if (isNewArchitectureEnabled()) { + // We configure the NDK build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + path "$projectDir/src/main/jni/CMakeLists.txt" + } } - signingConfigs { - debug { - storeFile file('debug.keystore') - storePassword 'android' - keyAlias 'androiddebugkey' - keyPassword 'android' - } + def reactAndroidProjectDir = project(':ReactAndroid').projectDir + def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") } - buildTypes { - debug { - signingConfig signingConfigs.debug + afterEvaluate { + // If you wish to add a custom TurboModule or component locally, + // you should uncomment this line. + // preBuild.dependsOn("generateCodegenArtifactsFromSchema") + preDebugBuild.dependsOn(packageReactNdkDebugLibs) + preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) + + // Due to a bug inside AGP, we have to explicitly set a dependency + // between configureCMakeDebug* tasks and the preBuild tasks. + // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 + configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) + configureCMakeDebug.dependsOn(preDebugBuild) + reactNativeArchitectures().each { architecture -> + tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { + dependsOn("preDebugBuild") } - release { - // Caution! In production, you need to generate your own keystore file. - // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug - minifyEnabled enableProguardInReleaseBuilds - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { + dependsOn("preReleaseBuild") } + } } + } - // applicationVariants are e.g. debug, release - applicationVariants.all { variant -> - variant.outputs.each { output -> - // For each separate APK per architecture, set a unique version code as described here: - // https://developer.android.com/studio/build/configure-apk-splits.html - // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. - def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] - def abi = output.getFilter(OutputFile.ABI) - if (abi != null) { // null for the universal-debug, universal-release variants - output.versionCodeOverride = - defaultConfig.versionCode * 1000 + versionCodes.get(abi) - } + splits { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture + universalApk false // If true, also generate a universal APK + include(*reactNativeArchitectures()) + } + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } + + // applicationVariants are e.g. debug, release + applicationVariants.all { variant -> + variant.outputs.each { output -> + // For each separate APK per architecture, set a unique version code as described here: + // https://developer.android.com/studio/build/configure-apk-splits.html + // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. + def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] + def abi = output.getFilter(OutputFile.ABI) + if (abi != null) { // null for the universal-debug, universal-release variants + output.versionCodeOverride = + defaultConfig.versionCode * 1000 + versionCodes.get(abi) + } - } } + } +} + +repositories { + maven { + url "${ARTIFACTORY_3DS_URL}" + } + maven { + url "${KLARNA_DISTRIBUTION_URL}" + } + mavenLocal() } dependencies { @@ -333,16 +343,16 @@ dependencies { // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { - from configurations.implementation - into 'libs' + from configurations.implementation + into 'libs' } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) def isNewArchitectureEnabled() { - // To opt-in for the New Architecture, you can either: - // - Set `newArchEnabled` to true inside the `gradle.properties` file - // - Invoke gradle with `-newArchEnabled=true` - // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` - return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" + // To opt-in for the New Architecture, you can either: + // - Set `newArchEnabled` to true inside the `gradle.properties` file + // - Invoke gradle with `-newArchEnabled=true` + // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` + return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" } diff --git a/example/android/app/proguard-rules.pro b/example/android/app/proguard-rules.pro index 11b025724..2064fe791 100644 --- a/example/android/app/proguard-rules.pro +++ b/example/android/app/proguard-rules.pro @@ -8,3 +8,6 @@ # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: + +-keep class com.facebook.react.devsupport.** { *; } +-dontwarn com.facebook.react.devsupport.** diff --git a/example/android/app/src/main/java/com/reactnativeexample/MainApplication.java b/example/android/app/src/main/java/com/reactnativeexample/MainApplication.java index aa8fd270a..e420ef6d7 100644 --- a/example/android/app/src/main/java/com/reactnativeexample/MainApplication.java +++ b/example/android/app/src/main/java/com/reactnativeexample/MainApplication.java @@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage; import com.facebook.react.config.ReactFeatureFlags; import com.facebook.soloader.SoLoader; +import com.primerioreactnative.ReactNativePackage; import com.reactnativeexample.newarchitecture.MainApplicationReactNativeHost; import java.lang.reflect.InvocationTargetException; import java.util.List; @@ -27,7 +28,7 @@ protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: - // packages.add(new MyReactNativePackage()); + packages.add(new ReactNativePackage()); return packages; } diff --git a/example/android/app/src/main/res/values/strings.xml b/example/android/app/src/main/res/values/strings.xml index e79194b52..c925cf570 100644 --- a/example/android/app/src/main/res/values/strings.xml +++ b/example/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - ReactNativeExample + Primer diff --git a/example/android/build.gradle b/example/android/build.gradle index 8569fee3a..c6018a0f5 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,51 +1,52 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext { - buildToolsVersion = "31.0.0" - minSdkVersion = 21 - compileSdkVersion = 31 - targetSdkVersion = 31 + ext { + buildToolsVersion = "31.0.0" + minSdkVersion = 21 + compileSdkVersion = 32 + targetSdkVersion = 32 - if (System.properties['os.arch'] == "aarch64") { - // For M1 Users we need to use the NDK 24 which added support for aarch64 - ndkVersion = "24.0.8215888" - } else { - // Otherwise we default to the side-by-side NDK version from AGP. - ndkVersion = "21.4.7075529" - } - } - repositories { - google() - mavenCentral() - } - dependencies { - classpath("com.android.tools.build:gradle:7.2.1") - classpath("com.facebook.react:react-native-gradle-plugin") - classpath("de.undercouch:gradle-download-task:5.0.1") - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files + if (System.properties['os.arch'] == "aarch64") { + // For M1 Users we need to use the NDK 24 which added support for aarch64 + ndkVersion = "24.0.8215888" + } else { + // Otherwise we default to the side-by-side NDK version from AGP. + ndkVersion = "21.4.7075529" } + } + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle:7.2.1") + classpath("com.facebook.react:react-native-gradle-plugin") + classpath("de.undercouch:gradle-download-task:5.0.1") + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } } allprojects { - repositories { - maven { - // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm - url("$rootDir/../node_modules/react-native/android") - } - maven { - // Android JSC is installed from npm - url("$rootDir/../node_modules/jsc-android/dist") - } - mavenCentral { - // We don't want to fetch react-native from Maven Central as there are - // older versions over there. - content { - excludeGroup "com.facebook.react" - } - } - google() - maven { url 'https://www.jitpack.io' } + repositories { + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url("$rootDir/../node_modules/react-native/android") + } + maven { + // Android JSC is installed from npm + url("$rootDir/../node_modules/jsc-android/dist") + } + mavenCentral { + // We don't want to fetch react-native from Maven Central as there are + // older versions over there. + content { + excludeGroup "com.facebook.react" + } } + google() + maven { url 'https://www.jitpack.io' } + mavenLocal() + } } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index fa4feae5f..d276643c8 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -38,3 +38,6 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 # to write custom TurboModules/Fabric components OR use libraries that # are providing them. newArchEnabled=false + +ARTIFACTORY_3DS_URL=https://primer.jfrog.io/artifactory/primer-android/ +KLARNA_DISTRIBUTION_URL=https://x.klarnacdn.net/mobile-sdk/ diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 4063da447..141cc3830 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -9,3 +9,6 @@ if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") include(":ReactAndroid:hermes-engine") project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') } + +include ':primerioreactnative' +project(':primerioreactnative').projectDir = new File(rootProject.projectDir, '../../android') diff --git a/example/metro.config.js b/example/metro.config.js index d1f468ab0..c64ca56dd 100644 --- a/example/metro.config.js +++ b/example/metro.config.js @@ -1,5 +1,5 @@ const path = require('path'); -const blacklist = require('metro-config/src/defaults/blacklist'); +const blacklist = require('metro-config/src/defaults/exclusionList'); const escape = require('escape-string-regexp'); const pak = require('../package.json'); diff --git a/example/package.json b/example/package.json index 55b23d689..aa8dad760 100644 --- a/example/package.json +++ b/example/package.json @@ -17,7 +17,7 @@ "@react-native-segmented-control/segmented-control": "^2.4.0", "@react-navigation/native": "^6.0.13", "@react-navigation/native-stack": "^6.9.1", - "axios": "^1.1.3", + "axios": "^0.27.2", "react": "18.1.0", "react-native": "0.70.4", "react-native-loading-spinner-overlay": "^3.0.1", diff --git a/example/yarn.lock b/example/yarn.lock index 873afd05c..2b36b3716 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1980,14 +1980,13 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -axios@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" - integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== +axios@^0.27.2: + version "0.27.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" + integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== dependencies: - follow-redirects "^1.15.0" + follow-redirects "^1.14.9" form-data "^4.0.0" - proxy-from-env "^1.1.0" babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" @@ -3334,7 +3333,7 @@ flow-parser@^0.121.0: resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.121.0.tgz#9f9898eaec91a9f7c323e9e992d81ab5c58e618f" integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== -follow-redirects@^1.15.0: +follow-redirects@^1.14.9: version "1.15.2" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== @@ -5770,11 +5769,6 @@ prop-types@^15.8.1: object-assign "^4.1.1" react-is "^16.13.1" -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - psl@^1.1.33: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" From a7c600bf38739e5238a950518bf0dffec7be721d Mon Sep 17 00:00:00 2001 From: Semir Date: Tue, 8 Nov 2022 16:37:07 +0100 Subject: [PATCH 040/121] Revert axios version --- example/package.json | 2 +- example/yarn.lock | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/example/package.json b/example/package.json index aa8dad760..55b23d689 100644 --- a/example/package.json +++ b/example/package.json @@ -17,7 +17,7 @@ "@react-native-segmented-control/segmented-control": "^2.4.0", "@react-navigation/native": "^6.0.13", "@react-navigation/native-stack": "^6.9.1", - "axios": "^0.27.2", + "axios": "^1.1.3", "react": "18.1.0", "react-native": "0.70.4", "react-native-loading-spinner-overlay": "^3.0.1", diff --git a/example/yarn.lock b/example/yarn.lock index 2b36b3716..873afd05c 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1980,13 +1980,14 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -axios@^0.27.2: - version "0.27.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" - integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== +axios@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" + integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== dependencies: - follow-redirects "^1.14.9" + follow-redirects "^1.15.0" form-data "^4.0.0" + proxy-from-env "^1.1.0" babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" @@ -3333,7 +3334,7 @@ flow-parser@^0.121.0: resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.121.0.tgz#9f9898eaec91a9f7c323e9e992d81ab5c58e618f" integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== -follow-redirects@^1.14.9: +follow-redirects@^1.15.0: version "1.15.2" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== @@ -5769,6 +5770,11 @@ prop-types@^15.8.1: object-assign "^4.1.1" react-is "^16.13.1" +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + psl@^1.1.33: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" From 1a202f87a823abafbadaf6810a43ed75487cfa5b Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 15 Nov 2022 09:21:01 +0200 Subject: [PATCH 041/121] Enable debug logs --- .../xcshareddata/xcschemes/ReactNativeExample.xcscheme | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme index 647292efc..5aa6db831 100644 --- a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme +++ b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme @@ -60,6 +60,12 @@ ReferencedContainer = "container:ReactNativeExample.xcodeproj"> + + + + Date: Tue, 15 Nov 2022 09:21:23 +0200 Subject: [PATCH 042/121] Set manual dependency order --- .../xcshareddata/xcschemes/ReactNativeExample.xcscheme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme index 5aa6db831..e9bed097e 100644 --- a/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme +++ b/example/ios/ReactNativeExample.xcodeproj/xcshareddata/xcschemes/ReactNativeExample.xcscheme @@ -3,7 +3,7 @@ LastUpgradeVersion = "1210" version = "1.3"> Date: Tue, 15 Nov 2022 09:21:46 +0200 Subject: [PATCH 043/121] Fix post install script --- example/ios/Podfile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index 5f963fd84..3de98f329 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -44,17 +44,11 @@ target 'ReactNativeExample' do if target.name == "primer-io-react-native" || target.name == "PrimerSDK" target.build_configurations.each do |config| - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' - - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap" -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK" -l"Primer3DS"' end end end From 0e24b13a4ca88220216ad1ab11d9de0077437b19 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 15 Nov 2022 09:46:00 +0200 Subject: [PATCH 044/121] Update iOS dependency --- example/ios/Podfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index 3de98f329..4f8afb484 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -25,7 +25,7 @@ target 'ReactNativeExample' do :app_path => "#{Pod::Config.instance.installation_root}/..") pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.0' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'feature/DEVX-6_rebase-2.14.3' pod 'Primer3DS' pod 'PrimerKlarnaSDK' From e01a6ee34e51c1b46fd4d8f77eee76c290d7dc0e Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 16 Nov 2022 11:34:52 +0200 Subject: [PATCH 045/121] Modify example app --- example/src/screens/CheckoutScreen.tsx | 127 ++++++++++++++++++++----- example/src/screens/ResultScreen.tsx | 2 +- example/src/screens/SettingsScreen.tsx | 71 ++++---------- 3 files changed, 125 insertions(+), 75 deletions(-) diff --git a/example/src/screens/CheckoutScreen.tsx b/example/src/screens/CheckoutScreen.tsx index 6a5b55d19..9d1824404 100644 --- a/example/src/screens/CheckoutScreen.tsx +++ b/example/src/screens/CheckoutScreen.tsx @@ -24,8 +24,20 @@ import { } from '@primer-io/react-native'; let clientToken: string | null = null; +let paymentId: string | null = null; +let logs: Log[] = []; +let merchantCheckoutData: CheckoutData | null = null; +let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; +let merchantPayment: IPayment | null = null; +let merchantPrimerError: Error | unknown | null = null; + +interface Log { + event: string; + value?: any; +} const CheckoutScreen = (props: any) => { + const isDarkMode = useColorScheme() === 'dark'; const [isLoading, setIsLoading] = React.useState(false); const [loadingMessage, setLoadingMessage] = React.useState('undefined'); @@ -35,34 +47,48 @@ const CheckoutScreen = (props: any) => { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; - let paymentId: string | null = null; + const updateLogs = (log: Log) => { + console.log(JSON.stringify(log)); + logs.push(log); + } const onBeforeClientSessionUpdate = () => { - console.log(`onBeforeClientSessionUpdate`); + updateLogs({event: "onBeforeClientSessionUpdate"}); setIsLoading(true); setLoadingMessage('onBeforeClientSessionUpdate'); } const onClientSessionUpdate = (clientSession: ClientSession) => { - console.log(`onClientSessionUpdate\n${JSON.stringify(clientSession)}`);; + updateLogs({event: "onClientSessionUpdate", value: clientSession}); setLoadingMessage('onClientSessionUpdate'); } const onBeforePaymentCreate = (checkoutPaymentMethodData: CheckoutPaymentMethodData, handler: PaymentCreationHandler) => { - console.log(`onBeforePaymentCreate\n${JSON.stringify(checkoutPaymentMethodData)}`); + updateLogs({event: "onBeforePaymentCreate", value: {"checkoutPaymentMethodData": checkoutPaymentMethodData}}); handler.continuePaymentCreation(); setLoadingMessage('onBeforePaymentCreate'); } const onCheckoutComplete = (checkoutData: CheckoutData) => { - console.log(`PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); + updateLogs({event: "onCheckoutComplete", value: {"checkoutData": checkoutData}}); + merchantCheckoutData = checkoutData; + setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', checkoutData); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); }; const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: TokenizationHandler) => { - console.log(`onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData)}`); + updateLogs({event: "onTokenizeSuccess", value: {"paymentMethodTokenData": paymentMethodTokenData}}); try { const payment: IPayment = await createPayment(paymentMethodTokenData.token); @@ -76,30 +102,64 @@ const CheckoutScreen = (props: any) => { paymentId = payment.id; handler.continueWithNewClientToken(payment.requiredAction.clientToken); } else { - props.navigation.navigate('Result', payment); + merchantPayment = payment; + handler.handleSuccess(); setLoadingMessage(undefined); setIsLoading(false); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } catch (err) { + merchantPrimerError = err; + console.error(err); handler.handleFailure("Merchant error"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', err); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } const onResumeSuccess = async (resumeToken: string, handler: ResumeHandler) => { - console.log(`onResumeSuccess:\n${JSON.stringify(resumeToken)}`); + updateLogs({event: "onResumeSuccess", value: {"resumeToken": resumeToken}}); try { if (paymentId) { const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); + merchantPayment = payment; + handler.handleSuccess(); setLoadingMessage(undefined); setIsLoading(false); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); + } else { const err = new Error("Invalid value for paymentId"); throw err; @@ -107,35 +167,55 @@ const CheckoutScreen = (props: any) => { paymentId = null; } catch (err) { - console.error(err); + merchantPrimerError = err; + paymentId = null; handler.handleFailure("RN app error"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', err); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } const onResumePending = async (additionalInfo: CheckoutAdditionalInfo) => { - console.log(`onResumePending:\n${JSON.stringify(additionalInfo)}`); - debugger; + updateLogs({event: "onResumePending", value: {"additionalInfo": additionalInfo}}); } const onCheckoutReceivedAdditionalInfo = async (additionalInfo: CheckoutAdditionalInfo) => { - console.log(`onCheckoutReceivedAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; + updateLogs({event: "onCheckoutReceivedAdditionalInfo", value: {"additionalInfo": additionalInfo}}); } const onError = (error: PrimerError, checkoutData: CheckoutData | null, handler: ErrorHandler | undefined) => { - console.log(`onError:\n${JSON.stringify(error)}\n\n${JSON.stringify(checkoutData)}`); + merchantPrimerError = error; + merchantCheckoutData = checkoutData; + + updateLogs({event: "onError", value: {"error": error, "checkoutData": checkoutData}}); handler?.showErrorMessage("My RN message"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', error); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); }; const onDismiss = () => { - console.log(`onDismiss`); + updateLogs({event: "onDismiss"}); clientToken = null; setLoadingMessage(undefined); setIsLoading(false); @@ -154,9 +234,9 @@ const CheckoutScreen = (props: any) => { recurringPaymentDescription: "Recurring payment description" }, applePayOptions: { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - isCaptureBillingAddressEnabled: true + merchantIdentifier: "merchant.checkout.team", + merchantName: appPaymentParameters.merchantName, + isCaptureBillingAddressEnabled: true } }, uiOptions: { @@ -231,7 +311,6 @@ const CheckoutScreen = (props: any) => { } } - console.log(`RENDER\nisLoading: ${isLoading}`) return ( diff --git a/example/src/screens/ResultScreen.tsx b/example/src/screens/ResultScreen.tsx index 3c4ca9d64..3902062a1 100644 --- a/example/src/screens/ResultScreen.tsx +++ b/example/src/screens/ResultScreen.tsx @@ -52,7 +52,7 @@ const ResultScreen = (props: any) => { !logs ? null : - {logs} + {JSON.stringify(logs, null, 4)} } diff --git a/example/src/screens/SettingsScreen.tsx b/example/src/screens/SettingsScreen.tsx index 8babfe084..f360f9c13 100644 --- a/example/src/screens/SettingsScreen.tsx +++ b/example/src/screens/SettingsScreen.tsx @@ -38,7 +38,7 @@ const SettingsScreen = ({ navigation }) => { const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); const [currency, setCurrency] = React.useState("EUR"); - const [countryCode, setCountryCode] = React.useState("PT"); + const [countryCode, setCountryCode] = React.useState("DE"); const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); @@ -138,54 +138,25 @@ const SettingsScreen = ({ navigation }) => { - - Currency & Country Code - - - { - setCurrency(itemValue); + { + setCurrency(text); }} - > - - - - - - - - - - - - - { - setCountryCode(itemValue); + /> + + { + setCountryCode(text); }} - > - - - - - - - - - - - - - - - - + /> {renderLineItems()} @@ -253,7 +224,7 @@ const SettingsScreen = ({ navigation }) => { setLineItems(currentLineItems); } } - + navigation.navigate('NewLineItem', newLineItemsScreenProps); }} > @@ -636,7 +607,7 @@ const SettingsScreen = ({ navigation }) => { const renderActions = () => { return ( - {/* { updateAppPaymentParameters(); @@ -649,7 +620,7 @@ const SettingsScreen = ({ navigation }) => { > Primer SDK - */} + Date: Thu, 17 Nov 2022 16:06:02 +0200 Subject: [PATCH 046/121] Add test IDs --- example/src/screens/HeadlessCheckoutScreen.tsx | 1 + example/src/screens/RawAdyenBancontactCardScreen.tsx | 9 +++++++-- example/src/screens/RawCardDataScreen.tsx | 9 +++++++-- example/src/screens/RawPhoneNumberScreen.tsx | 9 +++++++-- example/src/screens/RawRetailOutletScreen.tsx | 9 +++++++-- example/src/screens/ResultScreen.tsx | 8 ++++++-- 6 files changed, 35 insertions(+), 10 deletions(-) diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index 2908083ec..fdcae9c10 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -369,6 +369,7 @@ export const HeadlessCheckoutScreen = (props: any) => { onPress={() => { paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); }} + testID={`button-${paymentMethodsAsset.paymentMethodType.toLowerCase().replace("_", "-")}`} > { return ( - + {metadataLog} - + {validationLog} diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 5095a057c..556c2cbe0 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -238,12 +238,17 @@ const RawCardDataScreen = (props: any) => { return ( - + {metadataLog} - + {validationLog} diff --git a/example/src/screens/RawPhoneNumberScreen.tsx b/example/src/screens/RawPhoneNumberScreen.tsx index 2150bdbad..1b97b1d40 100644 --- a/example/src/screens/RawPhoneNumberScreen.tsx +++ b/example/src/screens/RawPhoneNumberScreen.tsx @@ -148,12 +148,17 @@ const RawPhoneNumberDataScreen = (props: any) => { return ( - + {metadataLog} - + {validationLog} diff --git a/example/src/screens/RawRetailOutletScreen.tsx b/example/src/screens/RawRetailOutletScreen.tsx index a7d92ba12..fe2326dcb 100644 --- a/example/src/screens/RawRetailOutletScreen.tsx +++ b/example/src/screens/RawRetailOutletScreen.tsx @@ -158,12 +158,17 @@ const RawRetailOutletScreen = (props: any) => { return ( - + {metadataLog} - + {validationLog} diff --git a/example/src/screens/ResultScreen.tsx b/example/src/screens/ResultScreen.tsx index 3902062a1..8b8731487 100644 --- a/example/src/screens/ResultScreen.tsx +++ b/example/src/screens/ResultScreen.tsx @@ -43,7 +43,9 @@ const ResultScreen = (props: any) => { style={backgroundStyle}> - + {JSON.stringify(paramsWithoutLogs, null, 4)} @@ -51,7 +53,9 @@ const ResultScreen = (props: any) => { { !logs ? null : - + {JSON.stringify(logs, null, 4)} From bfb4052361a31a4234d0bc7ab8769d0cdbe58a6a Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 22 Dec 2022 10:09:38 +0200 Subject: [PATCH 047/121] Bump --- example_0_70_6/src/App.tsx | 17 +- example_0_70_6/src/components/Section.tsx | 7 +- example_0_70_6/src/components/TextField.tsx | 1 - .../src/models/IClientSessionRequestBody.ts | 9 +- .../src/models/RawDataScreenProps.ts | 6 + example_0_70_6/src/models/Section.tsx | 1 - example_0_70_6/src/network/api.ts | 33 +- example_0_70_6/src/screens/CheckoutScreen.tsx | 231 ++++--- .../src/screens/HUCRawCardDataScreen.tsx | 401 ------------ .../screens/HUCRawCardRedirectDataScreen.tsx | 399 ------------ .../screens/HUCRawPhoneNumberDataScreen.tsx | 437 ------------- .../screens/HUCRawRetailDataVoucherScreen.tsx | 365 ----------- .../src/screens/HeadlessCheckoutScreen.tsx | 589 ++++++++++-------- .../src/screens/NewLineItemSreen.tsx | 47 +- .../screens/RawAdyenBancontactCardScreen.tsx | 248 ++++++++ .../src/screens/RawCardDataScreen.tsx | 269 ++++++++ .../src/screens/RawPhoneNumberScreen.tsx | 179 ++++++ .../src/screens/RawRetailOutletScreen.tsx | 189 ++++++ example_0_70_6/src/screens/ResultScreen.tsx | 42 +- example_0_70_6/src/screens/SettingsScreen.tsx | 225 +++---- 20 files changed, 1562 insertions(+), 2133 deletions(-) create mode 100644 example_0_70_6/src/models/RawDataScreenProps.ts delete mode 100644 example_0_70_6/src/screens/HUCRawCardDataScreen.tsx delete mode 100644 example_0_70_6/src/screens/HUCRawCardRedirectDataScreen.tsx delete mode 100644 example_0_70_6/src/screens/HUCRawPhoneNumberDataScreen.tsx delete mode 100644 example_0_70_6/src/screens/HUCRawRetailDataVoucherScreen.tsx create mode 100644 example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx create mode 100644 example_0_70_6/src/screens/RawCardDataScreen.tsx create mode 100644 example_0_70_6/src/screens/RawPhoneNumberScreen.tsx create mode 100644 example_0_70_6/src/screens/RawRetailOutletScreen.tsx diff --git a/example_0_70_6/src/App.tsx b/example_0_70_6/src/App.tsx index a24bbf092..31413eecd 100644 --- a/example_0_70_6/src/App.tsx +++ b/example_0_70_6/src/App.tsx @@ -6,11 +6,10 @@ import CheckoutScreen from './screens/CheckoutScreen'; import ResultScreen from './screens/ResultScreen'; import { HeadlessCheckoutScreen } from './screens/HeadlessCheckoutScreen'; import NewLineItemScreen from './screens/NewLineItemSreen'; -import { HUCRawCardDataScreen } from './screens/HUCRawCardDataScreen'; -import { HUCRawPhoneNumberDataScreen } from './screens/HUCRawPhoneNumberDataScreen'; -import { HUCRawCardRedirectDataScreen } from './screens/HUCRawCardRedirectDataScreen'; -import { HUCRawRetailDataVoucherScreen } from './screens/HUCRawRetailDataVoucherScreen'; - +import RawCardDataScreen from './screens/RawCardDataScreen'; +import RawPhoneNumberDataScreen from './screens/RawPhoneNumberScreen'; +import RawAdyenBancontactCardScreen from './screens/RawAdyenBancontactCardScreen'; +import RawRetailOutletScreen from './screens/RawRetailOutletScreen'; const Stack = createNativeStackNavigator(); @@ -23,10 +22,10 @@ const App = () => { - - - - + + + + ); diff --git a/example_0_70_6/src/components/Section.tsx b/example_0_70_6/src/components/Section.tsx index 6e985a976..742c16ec6 100644 --- a/example_0_70_6/src/components/Section.tsx +++ b/example_0_70_6/src/components/Section.tsx @@ -9,9 +9,14 @@ export interface SectionProps { } import { styles } from "../styles"; -//@ts-ignore export const Section: React.FC<{title: string, style: SectionProps}> = ({ children, title, style }) => { + const renderChildren = (children: React.ReactNode[]) => { + return children.forEach((child, index) => { + return child; + }) + } + return ( { return ( - //@ts-ignore { props.title === undefined ? null : diff --git a/example_0_70_6/src/models/IClientSessionRequestBody.ts b/example_0_70_6/src/models/IClientSessionRequestBody.ts index 006097644..974612984 100644 --- a/example_0_70_6/src/models/IClientSessionRequestBody.ts +++ b/example_0_70_6/src/models/IClientSessionRequestBody.ts @@ -92,12 +92,19 @@ export let appPaymentParameters: AppPaymentParameters = { countryCode: 'GB', lineItems: [ { - amount: 100, + amount: 10100, quantity: 1, itemId: 'shoes-3213', description: 'Fancy Shoes', discountAmount: 0 }, + // { + // amount: 1000, + // quantity: 1, + // itemId: 'hats-3213', + // description: 'Cool Hat', + // discountAmount: 0 + // } ] }, customer: { diff --git a/example_0_70_6/src/models/RawDataScreenProps.ts b/example_0_70_6/src/models/RawDataScreenProps.ts new file mode 100644 index 000000000..ba1b52f45 --- /dev/null +++ b/example_0_70_6/src/models/RawDataScreenProps.ts @@ -0,0 +1,6 @@ + +export interface RawDataScreenProps { + navigation: any; + clientSession: any; + route: any; +} \ No newline at end of file diff --git a/example_0_70_6/src/models/Section.tsx b/example_0_70_6/src/models/Section.tsx index ac1987b43..768192b2a 100644 --- a/example_0_70_6/src/models/Section.tsx +++ b/example_0_70_6/src/models/Section.tsx @@ -7,7 +7,6 @@ import { styles } from "../styles"; export const Section: React.FC<{ title: string; - //@ts-ignore }> = ({ children, title }) => { const isDarkMode = useColorScheme() === 'dark'; return ( diff --git a/example_0_70_6/src/network/api.ts b/example_0_70_6/src/network/api.ts index f0770b3d8..440a8c6fd 100644 --- a/example_0_70_6/src/network/api.ts +++ b/example_0_70_6/src/network/api.ts @@ -1,23 +1,32 @@ import axios from 'axios'; import { getEnvironmentStringVal } from './Environment'; -import { appPaymentParameters, IClientSessionActionsRequestBody } from '../models/IClientSessionRequestBody'; +import { appPaymentParameters, IClientSessionActionsRequestBody, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; import type { IPayment } from '../models/IPayment'; import { APIVersion, getAPIVersionStringVal } from './APIVersion'; +import { customApiKey, customClientToken } from '../screens/SettingsScreen'; const baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; -let staticHeaders = { +let staticHeaders: { [key: string]: string } = { 'Content-Type': 'application/json', 'environment': getEnvironmentStringVal(appPaymentParameters.environment), } export const createClientSession = async () => { const url = baseUrl + '/client-session'; - const headers = { + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': getAPIVersionStringVal(APIVersion.v3), }; + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } + + if (customClientToken) { + return { "clientToken": customClientToken }; + } + try { console.log('\n\n'); console.log(`REQUEST:\n ${url}`); @@ -49,7 +58,11 @@ export const createClientSession = async () => { export const setClientSessionActions = async (body: IClientSessionActionsRequestBody) => { const url = baseUrl + '/client-session/actions'; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-10-19' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } try { console.log('\n\n'); @@ -83,7 +96,11 @@ export const setClientSessionActions = async (body: IClientSessionActionsRequest export const createPayment = async (paymentMethodToken: string) => { const url = baseUrl + '/payments'; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } const body = { paymentMethodToken: paymentMethodToken }; try { @@ -118,7 +135,11 @@ export const createPayment = async (paymentMethodToken: string) => { export const resumePayment = async (paymentId: string, resumeToken: string) => { const url = baseUrl + `/payments/${paymentId}/resume`; - const headers = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + const headers: { [key: string]: string } = { ...staticHeaders, 'X-Api-Version': '2021-09-27' }; + + if (customApiKey) { + headers['X-Api-Key'] = customApiKey; + } const body = { resumeToken: resumeToken }; diff --git a/example_0_70_6/src/screens/CheckoutScreen.tsx b/example_0_70_6/src/screens/CheckoutScreen.tsx index 6d8735c45..9d1824404 100644 --- a/example_0_70_6/src/screens/CheckoutScreen.tsx +++ b/example_0_70_6/src/screens/CheckoutScreen.tsx @@ -1,20 +1,5 @@ import * as React from 'react'; -import { - PrimerCheckoutData, - PrimerCheckoutPaymentMethodData, - Primer, - PrimerErrorHandler, - PrimerPaymentCreationHandler, - PrimerSessionIntent, - PrimerSettings, - PrimerResumeHandler, - PrimerPaymentMethodTokenData, - PrimerTokenizationHandler, - PrimerClientSession, - PrimerError, - PrimerCheckoutAdditionalInfo -} from '@primer-io/react-native'; import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; import { Colors } from 'react-native/Libraries/NewAppScreen'; import { styles } from '../styles'; @@ -23,49 +8,87 @@ import type { IClientSession } from '../models/IClientSession'; import type { IPayment } from '../models/IPayment'; import { getPaymentHandlingStringVal } from '../network/Environment'; import { createClientSession, createPayment, resumePayment } from '../network/api'; +import { + CheckoutAdditionalInfo, + CheckoutData, + CheckoutPaymentMethodData, + ClientSession, + ErrorHandler, + PaymentCreationHandler, + Primer, + PrimerError, + PrimerPaymentMethodTokenData, + PrimerSettings, + ResumeHandler, + TokenizationHandler +} from '@primer-io/react-native'; let clientToken: string | null = null; +let paymentId: string | null = null; +let logs: Log[] = []; +let merchantCheckoutData: CheckoutData | null = null; +let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; +let merchantPayment: IPayment | null = null; +let merchantPrimerError: Error | unknown | null = null; + +interface Log { + event: string; + value?: any; +} const CheckoutScreen = (props: any) => { + const isDarkMode = useColorScheme() === 'dark'; const [isLoading, setIsLoading] = React.useState(false); - //@ts-ignore const [loadingMessage, setLoadingMessage] = React.useState('undefined'); - //@ts-ignore const [error, setError] = React.useState(null); const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; - let paymentId: string | null = null; + const updateLogs = (log: Log) => { + console.log(JSON.stringify(log)); + logs.push(log); + } const onBeforeClientSessionUpdate = () => { - console.log(`onBeforeClientSessionUpdate`); + updateLogs({event: "onBeforeClientSessionUpdate"}); setIsLoading(true); setLoadingMessage('onBeforeClientSessionUpdate'); } - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - console.log(`onClientSessionUpdate\n${JSON.stringify(clientSession)}`);; + const onClientSessionUpdate = (clientSession: ClientSession) => { + updateLogs({event: "onClientSessionUpdate", value: clientSession}); setLoadingMessage('onClientSessionUpdate'); } - const onBeforePaymentCreate = (checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData, handler: PrimerPaymentCreationHandler) => { - console.log(`onBeforePaymentCreate\n${JSON.stringify(checkoutPaymentMethodData)}`); + const onBeforePaymentCreate = (checkoutPaymentMethodData: CheckoutPaymentMethodData, handler: PaymentCreationHandler) => { + updateLogs({event: "onBeforePaymentCreate", value: {"checkoutPaymentMethodData": checkoutPaymentMethodData}}); handler.continuePaymentCreation(); setLoadingMessage('onBeforePaymentCreate'); } - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - console.log(`PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); + const onCheckoutComplete = (checkoutData: CheckoutData) => { + updateLogs({event: "onCheckoutComplete", value: {"checkoutData": checkoutData}}); + merchantCheckoutData = checkoutData; + setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', checkoutData); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); }; - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - console.log(`onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData)}`); + const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: TokenizationHandler) => { + updateLogs({event: "onTokenizeSuccess", value: {"paymentMethodTokenData": paymentMethodTokenData}}); try { const payment: IPayment = await createPayment(paymentMethodTokenData.token); @@ -79,30 +102,64 @@ const CheckoutScreen = (props: any) => { paymentId = payment.id; handler.continueWithNewClientToken(payment.requiredAction.clientToken); } else { - props.navigation.navigate('Result', payment); + merchantPayment = payment; + handler.handleSuccess(); setLoadingMessage(undefined); setIsLoading(false); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } catch (err) { + merchantPrimerError = err; + console.error(err); handler.handleFailure("Merchant error"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', err); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - console.log(`onResumeSuccess:\n${JSON.stringify(resumeToken)}`); + const onResumeSuccess = async (resumeToken: string, handler: ResumeHandler) => { + updateLogs({event: "onResumeSuccess", value: {"resumeToken": resumeToken}}); try { if (paymentId) { const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); + merchantPayment = payment; + handler.handleSuccess(); setLoadingMessage(undefined); setIsLoading(false); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); + } else { const err = new Error("Invalid value for paymentId"); throw err; @@ -110,35 +167,55 @@ const CheckoutScreen = (props: any) => { paymentId = null; } catch (err) { - console.error(err); + merchantPrimerError = err; + paymentId = null; handler.handleFailure("RN app error"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', err); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); } } - const onResumePending = async (additionalInfo: PrimerCheckoutAdditionalInfo) => { - console.log(`onResumePending:\n${JSON.stringify(additionalInfo)}`); - debugger; + const onResumePending = async (additionalInfo: CheckoutAdditionalInfo) => { + updateLogs({event: "onResumePending", value: {"additionalInfo": additionalInfo}}); } - const onCheckoutReceivedAdditionalInfo = async (additionalInfo: PrimerCheckoutAdditionalInfo) => { - console.log(`onCheckoutReceivedAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; + const onCheckoutReceivedAdditionalInfo = async (additionalInfo: CheckoutAdditionalInfo) => { + updateLogs({event: "onCheckoutReceivedAdditionalInfo", value: {"additionalInfo": additionalInfo}}); } - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - console.log(`onError:\n${JSON.stringify(error)}\n\n${JSON.stringify(checkoutData)}`); + const onError = (error: PrimerError, checkoutData: CheckoutData | null, handler: ErrorHandler | undefined) => { + merchantPrimerError = error; + merchantCheckoutData = checkoutData; + + updateLogs({event: "onError", value: {"error": error, "checkoutData": checkoutData}}); handler?.showErrorMessage("My RN message"); setLoadingMessage(undefined); setIsLoading(false); - props.navigation.navigate('Result', error); + + props.navigation.navigate( + 'Result', + { + merchantCheckoutData: merchantCheckoutData, + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: logs + }); }; const onDismiss = () => { - console.log(`onDismiss`); + updateLogs({event: "onDismiss"}); clientToken = null; setLoadingMessage(undefined); setIsLoading(false); @@ -157,9 +234,9 @@ const CheckoutScreen = (props: any) => { recurringPaymentDescription: "Recurring payment description" }, applePayOptions: { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName || "merchant-name", - isCaptureBillingAddressEnabled: true + merchantIdentifier: "merchant.checkout.team", + merchantName: appPaymentParameters.merchantName, + isCaptureBillingAddressEnabled: true } }, uiOptions: { @@ -170,37 +247,26 @@ const CheckoutScreen = (props: any) => { debugOptions: { is3DSSanityCheckEnabled: true }, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onBeforePaymentCreate: onBeforePaymentCreate, - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onResumePending: onResumePending, - onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, - onError: onError, - onDismiss: onDismiss, + primerCallbacks: { + onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, + onClientSessionUpdate: onClientSessionUpdate, + onBeforePaymentCreate: onBeforePaymentCreate, + onCheckoutComplete: onCheckoutComplete, + onTokenizeSuccess: onTokenizeSuccess, + onResumeSuccess: onResumeSuccess, + onResumePending: onResumePending, + onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, + onError: onError, + onDismiss: onDismiss, + } }; - const onApplePayButtonTapped = async () => { - try { - setIsLoading(true); - const clientSession: IClientSession = await createClientSession(); - clientToken = clientSession.clientToken; - await Primer.configure(settings); - await Primer.showPaymentMethod('APPLE_PAY', PrimerSessionIntent.CHECKOUT, clientToken); - - } catch (err) { - setIsLoading(false); - - if (err instanceof Error) { - setError(err); - } else if (typeof err === "string") { - setError(new Error(err)); - } else { - setError(new Error('Unknown error')); - } - } + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + }; } const onVaultManagerButtonTapped = async () => { @@ -245,20 +311,9 @@ const CheckoutScreen = (props: any) => { } } - console.log(`RENDER\nisLoading: ${isLoading}`) return ( - - - Apple Pay - - { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - //@ts-ignore - const [paymentResponse, setPaymentResponse] = useState(null); - //@ts-ignore - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; - log = combinedLog; - } - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; - - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - } - } - - //@ts-ignore - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); - - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); - } - } - - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - //@ts-ignore - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io', - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - //@ts-ignore - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - //@ts-ignore - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "PAYMENT_CARD", - onMetadataChange: (data) => { - const cardNetwork = data?.cardNetwork; - if (cardNetwork) { - updateLogs(`\nโ„น๏ธ Detected card network ${data.cardNetwork}`); - } - }, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - } - } - await HeadlessUniversalCheckoutRawDataManager.configure(options); - //@ts-ignore - const requiredInputElementTypes = await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerRawCardData = { - cardNumber: "", - expiryMonth: "14", - expiryYear: "2024", - cvv: "1", - cardholderName: "John" - } - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryMonth = "1" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cvv = "123" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4242424242424242" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - - }, 1000); - }, 1000); - }, 1000); - }, 1000); - - - - - // rawCardData.number = "4242424242424242" - // rawCardData.expiryMonth = "12" - // rawCardData.expiryYear = "2024" - // rawCardData.cvv = "123" - // rawCardData.cardholderName = "John" - // PrimerHeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - - {renderLoadingOverlay()} - - ); -}; diff --git a/example_0_70_6/src/screens/HUCRawCardRedirectDataScreen.tsx b/example_0_70_6/src/screens/HUCRawCardRedirectDataScreen.tsx deleted file mode 100644 index f2fe06109..000000000 --- a/example_0_70_6/src/screens/HUCRawCardRedirectDataScreen.tsx +++ /dev/null @@ -1,399 +0,0 @@ -import React, { useEffect, useState } from 'react'; - -import { - Image, - ScrollView, - Text, - TouchableOpacity, - View -} from 'react-native'; -import { createClientSession, createPayment, resumePayment } from '../network/api'; -import { appPaymentParameters } from '../models/IClientSessionRequestBody'; -import type { IPayment } from '../models/IPayment'; -import { getPaymentHandlingStringVal } from '../network/Environment'; -import { ActivityIndicator } from 'react-native'; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerBancontactCardRedirectData -} from '@primer-io/react-native'; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from 'src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager'; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawCardRedirectDataScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - //@ts-ignore - const [paymentResponse, setPaymentResponse] = useState(null); - //@ts-ignore - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; - log = combinedLog; - } - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; - - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); - handler.handleSuccess(); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - handler.handleFailure("My RN message"); - } - } - - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); - handler.handleSuccess(); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); - handler.handleFailure("My RN message"); - } - } - - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - //@ts-ignore - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - } - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io', - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - //@ts-ignore - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName - } - } - - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - //@ts-ignore - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "ADYEN_BANCONTACT_CARD", - onMetadataChange: (data) => { - const cardNetwork = data?.cardNetwork; - if (cardNetwork) { - updateLogs(`\nโ„น๏ธ Detected card network ${data.cardNetwork}`); - } - }, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - } - } - await HeadlessUniversalCheckoutRawDataManager.configure(options); - //@ts-ignore - const requiredInputElementTypes = await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerBancontactCardRedirectData = { - cardNumber: "", - expiryMonth: "14", - expiryYear: "2024", - cardholderName: "John" - } - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryMonth = "03" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.expiryYear = "2030" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.cardNumber = "4871049999999910" - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - - }, 1000); - }, 1000); - }, 1000); - }, 1000); - - // rawCardData.number = "4242424242424242" - // rawCardData.expiryMonth = "12" - // rawCardData.expiryYear = "2024" - // rawCardData.cvv = "123" - // rawCardData.cardholderName = "John" - // PrimerHeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return - - - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - - {renderLoadingOverlay()} - - ); -}; diff --git a/example_0_70_6/src/screens/HUCRawPhoneNumberDataScreen.tsx b/example_0_70_6/src/screens/HUCRawPhoneNumberDataScreen.tsx deleted file mode 100644 index d4724315f..000000000 --- a/example_0_70_6/src/screens/HUCRawPhoneNumberDataScreen.tsx +++ /dev/null @@ -1,437 +0,0 @@ -import React, { useEffect, useState } from "react"; - -import { Image, ScrollView, Text, TouchableOpacity, View } from "react-native"; -import { - createClientSession, - createPayment, - resumePayment, -} from "../network/api"; -import { appPaymentParameters } from "../models/IClientSessionRequestBody"; -import type { IPayment } from "../models/IPayment"; -import { getPaymentHandlingStringVal } from "../network/Environment"; -import { ActivityIndicator } from "react-native"; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerRawPhoneNumberData, -} from "@primer-io/react-native"; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from "src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager"; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawPhoneNumberDataScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState( - undefined - ); - //@ts-ignore - const [paymentResponse, setPaymentResponse] = useState(null); - //@ts-ignore - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ""; - const combinedLog = currentLog + "\n" + str; - log = combinedLog; - }; - - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs( - `\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify( - paymentMethodTypes - )}` - ); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate("Result", checkoutData); - }; - - const onTokenizeSuccess = async ( - paymentMethodTokenData: PrimerPaymentMethodTokenData, - handler: PrimerTokenizationHandler - ) => { - updateLogs( - `\nโœ… onTokenizeSuccess:\n${JSON.stringify( - paymentMethodTokenData, - null, - 2 - )}` - ); - - try { - const payment: IPayment = await createPayment( - paymentMethodTokenData.token - ); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs( - "\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang." - ); - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate("Result", payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate("Result", err); - } - }; - - const onResumeSuccess = async ( - resumeToken: string, - //@ts-ignore - handler: PrimerResumeHandler - ) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate("Result", payment); - setIsLoading(false); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate("Result", err); - setIsLoading(false); - } - }; - - const onError = ( - error: PrimerError, - checkoutData: PrimerCheckoutData | null, - handler: PrimerErrorHandler | undefined - ) => { - updateLogs( - `\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify( - error, - null, - 2 - )}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}` - ); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - //@ts-ignore - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - }; - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal( - appPaymentParameters.paymentHandling - ), - paymentMethodOptions: { - iOS: { - urlScheme: "merchant://primer.io", - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - //@ts-ignore - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onError: onError, - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - }; - } - - useEffect(() => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - .then((paymentMethodTypes) => { - updateLogs( - `\nโ„น๏ธ Available payment methods:\n${JSON.stringify( - paymentMethodTypes, - null, - 2 - )}` - ); - setPaymentMethods(paymentMethodTypes); - startHUCRawDataManager(); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - //@ts-ignore - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; - - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); - } - }; - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "XENDIT_OVO", - //@ts-ignore - onMetadataChange: (data) => {}, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - }, - }; - await HeadlessUniversalCheckoutRawDataManager.configure(options); - //@ts-ignore - const requiredInputElementTypes = - await HeadlessUniversalCheckoutRawDataManager.getRequiredInputElementTypes(); - - let rawCardData: PrimerRawPhoneNumberData = { - phoneNumber: "", - }; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628"; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628888"; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawCardData); - - setTimeout(async () => { - rawCardData.phoneNumber = "+62888338"; - await HeadlessUniversalCheckoutRawDataManager.setRawData( - rawCardData - ); - - setTimeout(async () => { - rawCardData.phoneNumber = "+628774494404"; - await HeadlessUniversalCheckoutRawDataManager.setRawData( - rawCardData - ); - await HeadlessUniversalCheckoutRawDataManager.submit(); - setTimeout(async () => { - await HeadlessUniversalCheckoutRawDataManager.disposeRawDataManager() - setIsLoading(false); - - }, 3000); - }, 1000); - }, 1000); - }, 1000); - }, 1000); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return ( - - - - ); - } - }; - - return ( - - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - {log} - - {renderLoadingOverlay()} - - ); -}; diff --git a/example_0_70_6/src/screens/HUCRawRetailDataVoucherScreen.tsx b/example_0_70_6/src/screens/HUCRawRetailDataVoucherScreen.tsx deleted file mode 100644 index 8b477a118..000000000 --- a/example_0_70_6/src/screens/HUCRawRetailDataVoucherScreen.tsx +++ /dev/null @@ -1,365 +0,0 @@ -import React, { useEffect, useState } from "react"; - -import { Image, ScrollView, Text, TouchableOpacity, View } from "react-native"; -import { - createClientSession, - createPayment, - resumePayment, -} from "../network/api"; -import { appPaymentParameters } from "../models/IClientSessionRequestBody"; -import type { IPayment } from "../models/IPayment"; -import { getPaymentHandlingStringVal } from "../network/Environment"; -import { ActivityIndicator } from "react-native"; -import { - PrimerCheckoutData, - PrimerClientSession, - PrimerError, - PrimerErrorHandler, - HeadlessUniversalCheckout, - PrimerPaymentMethodTokenData, - PrimerResumeHandler, - PrimerSettings, - PrimerTokenizationHandler, - HeadlessUniversalCheckoutRawDataManager, - PrimerCheckoutAdditionalInfo -} from "@primer-io/react-native"; -import type { PrimerHeadlessUniversalCheckoutRawDataManagerOptions } from "src/headless_checkout/PrimerHeadlessUniversalCheckoutRawDataManager"; -import type { PrimerRawRetailerData } from "src/models/PrimerRawData"; - -let paymentId: string | null = null; -let log: string | undefined; - -export const HUCRawRetailDataVoucherScreen = (props: any) => { - const [isLoading, setIsLoading] = useState(true); - //@ts-ignore - const [paymentMethods, setPaymentMethods] = useState( - undefined - ); - //@ts-ignore - const [paymentResponse, setPaymentResponse] = useState(null); - //@ts-ignore - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); - - const updateLogs = (str: string) => { - const currentLog = log || ""; - const combinedLog = currentLog + "\n" + str; - log = combinedLog; - }; - - - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; - - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; - - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs( - `\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify( - paymentMethodTypes - )}` - ); - setIsLoading(false); - }; - - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… onCheckoutComplete`); - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - setIsLoading(false); - props.navigation.navigate("Result", checkoutData); - }; - - const onResumePending = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… onResumePending`); - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - setIsLoading(false); - props.navigation.navigate("Result", additionalInfo); - } - - const onTokenizeSuccess = async ( - paymentMethodTokenData: PrimerPaymentMethodTokenData, - handler: PrimerTokenizationHandler - ) => { - updateLogs( - `\nโœ… onTokenizeSuccess:\n${JSON.stringify( - paymentMethodTokenData, - null, - 2 - )}` - ); - - try { - const payment: IPayment = await createPayment( - paymentMethodTokenData.token - ); - - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; - - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs( - "\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang." - ); - } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate("Result", payment); - setIsLoading(false); - } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate("Result", err); - } - }; - - const onResumeSuccess = async ( - resumeToken: string, - //@ts-ignore - handler: PrimerResumeHandler - ) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - - try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate("Result", payment); - setIsLoading(false); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; - } catch (err) { - console.error(err); - paymentId = null; - props.navigation.navigate("Result", err); - setIsLoading(false); - } - }; - - const onError = ( - error: PrimerError, - checkoutData: PrimerCheckoutData | null, - handler: PrimerErrorHandler | undefined - ) => { - updateLogs( - `\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify( - error, - null, - 2 - )}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}` - ); - console.error(error); - handler?.showErrorMessage("My RN message"); - setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - //@ts-ignore - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); - }; - - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal( - appPaymentParameters.paymentHandling - ), - paymentMethodOptions: { - iOS: { - urlScheme: "merchant://primer.io", - }, - }, - - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onPrepareStart: onPrepareStart, - onPaymentMethodShow: onPaymentMethodShow, - onTokenizeStart: onTokenizeStart, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - //@ts-ignore - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onResumePending: onResumePending, - onError: onError, - }; - - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, - }; - } - - useEffect(() => { - createClientSession().then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken( - session.clientToken, - settings - ) - .then((paymentMethodTypes) => { - updateLogs( - `\nโ„น๏ธ Available payment methods:\n${JSON.stringify( - paymentMethodTypes, - null, - 2 - )}` - ); - startHUCRawDataManager(); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); - - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); - - const startHUCRawDataManager = async () => { - try { - const options: PrimerHeadlessUniversalCheckoutRawDataManagerOptions = { - paymentMethodType: "XENDIT_RETAIL_OUTLETS", - //@ts-ignore - onMetadataChange: (data) => {}, - onValidation: (isValid, errors) => { - if (!isValid && errors && errors.length > 0) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(errors, null, 2)}`); - } - }, - }; - const retailers = await HeadlessUniversalCheckoutRawDataManager.configure(options); - updateLogs(`\n๐Ÿ“๐Ÿ“ Retailer List:\n${JSON.stringify(retailers)}`); - - let rawRetailerData: PrimerRawRetailerData = { - id: "CEBUANA", - }; - await HeadlessUniversalCheckoutRawDataManager.setRawData(rawRetailerData); - await HeadlessUniversalCheckoutRawDataManager.submit(); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; - - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; - - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); - } - }; - - const renderError = () => { - if (!error) { - return null; - } else { - return {JSON.stringify(error)}; - } - }; - - const renderLoadingOverlay = () => { - if (!isLoading) { - return null; - } else { - return ( - - - - ); - } - }; - - return ( - - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - {log} - - {renderLoadingOverlay()} - - ); -}; diff --git a/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx b/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx index be37cfc9e..fdcae9c10 100644 --- a/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx +++ b/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx @@ -1,292 +1,386 @@ import React, { useEffect, useState } from 'react'; - import { + Alert, Image, - ScrollView, - Text, TouchableOpacity, - View + View, } from 'react-native'; import { createClientSession, createPayment, resumePayment } from '../network/api'; import { appPaymentParameters } from '../models/IClientSessionRequestBody'; import type { IPayment } from '../models/IPayment'; import { getPaymentHandlingStringVal } from '../network/Environment'; import { ActivityIndicator } from 'react-native'; -import { PrimerCheckoutData, PrimerClientSession, PrimerError, PrimerErrorHandler, HeadlessUniversalCheckout, PrimerPaymentMethodTokenData, PrimerResumeHandler, PrimerSettings, PrimerTokenizationHandler, PrimerCheckoutAdditionalInfo } from '@primer-io/react-native'; - -let paymentId: string | null = null; -let log: string | undefined; +import { + Asset, + AssetsManager, + CheckoutAdditionalInfo, + CheckoutData, + HeadlessUniversalCheckout, + NativeUIManager, + PaymentMethod, + PrimerSettings, + SessionIntent +} from '@primer-io/react-native'; + +let log: string = ""; +let merchantPaymentId: string | null = null; +let merchantCheckoutData: CheckoutData | null = null; +let merchantCheckoutAdditionalInfo: CheckoutAdditionalInfo | null = null; +let merchantPayment: IPayment | null = null; +let merchantPrimerError: Error | unknown | null = null; + +const selectImplemetationType = (paymentMethod: PaymentMethod): Promise => { + return new Promise((resolve, reject) => { + const buttons: any[] = []; + + paymentMethod.paymentMethodManagerCategories.forEach(category => { + buttons.push({ + text: category, + style: "default", + onPress: () => { + resolve(category); + } + }); + }); + + buttons.push({ + text: "Cancel", + style: "cancel", + onPress: () => { + const err = new Error("Operation cancelled"); + reject(err); + } + }); + + Alert.alert( + "", + "Select implementation to test", + buttons, + { + cancelable: true, + } + ); + }) +} export const HeadlessCheckoutScreen = (props: any) => { const [isLoading, setIsLoading] = useState(true); - const [paymentMethods, setPaymentMethods] = useState(undefined); - //@ts-ignore - const [paymentResponse, setPaymentResponse] = useState(null); - const [localImageUrl, setLocalImageUrl] = useState(null); - const [clearLogs, setClearLogs] = useState(false); - const [error, setError] = useState(null); + const [clientSession, setClientSession] = useState(null); + const [paymentMethods, setPaymentMethods] = useState(undefined); + const [paymentMethodsAssets, setPaymentMethodsAssets] = useState(undefined); const updateLogs = (str: string) => { - const currentLog = log || ''; - const combinedLog = currentLog + '\n' + str; + console.log(str); + const currentLog = log; + const combinedLog = currentLog + "\n" + str; log = combinedLog; } - //@ts-ignore - const getLogo = async (identifier: string) => { - try { - const assetUrl = await HeadlessUniversalCheckout.getAssetForPaymentMethodType( - identifier, - 'logo' - ); - setLocalImageUrl(assetUrl); - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - } - }; + let settings: PrimerSettings = { + paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), + paymentMethodOptions: { + iOS: { + urlScheme: 'merchant://primer.io' + }, + }, + debugOptions: { + is3DSSanityCheckEnabled: false + }, + headlessUniversalCheckoutCallbacks: { + onAvailablePaymentMethodsLoad: (availablePaymentMethods => { + updateLogs(`\nโ„น๏ธ onAvailablePaymentMethodsLoad\n${JSON.stringify(availablePaymentMethods, null, 2)}\n`); + setIsLoading(false); + }), + onPreparationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPreparationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onPaymentMethodShow: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onPaymentMethodShow\npaymentMethodType: ${paymentMethodType}\n`); + }, + onTokenizationStart: (paymentMethodType) => { + updateLogs(`\nโ„น๏ธ onTokenizationStart\npaymentMethodType: ${paymentMethodType}\n`); + }, + onBeforeClientSessionUpdate: () => { + updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate\n`); + }, + onClientSessionUpdate: (clientSession) => { + updateLogs(`\nโ„น๏ธ onClientSessionUpdate\nclientSession: ${JSON.stringify(clientSession, null, 2)}\n`); + }, + onBeforePaymentCreate: (tmpCheckoutData, handler) => { + updateLogs(`\nโ„น๏ธ onBeforePaymentCreate\ncheckoutData: ${JSON.stringify(tmpCheckoutData, null, 2)}\n`); + handler.continuePaymentCreation(); + }, + onCheckoutAdditionalInfo: (additionalInfo) => { + merchantCheckoutAdditionalInfo = additionalInfo; + updateLogs(`\nโ„น๏ธ onCheckoutPending\nadditionalInfo: ${JSON.stringify(additionalInfo, null, 2)}\n`); + setIsLoading(false); + }, + onCheckoutComplete: (checkoutData) => { + merchantCheckoutData = checkoutData; + updateLogs(`\nโœ… onCheckoutComplete\ncheckoutData: ${JSON.stringify(checkoutData, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onCheckoutPending: (checkoutAdditionalInfo) => { + merchantCheckoutAdditionalInfo = checkoutAdditionalInfo; + updateLogs(`\nโœ… onCheckoutPending\nadditionalInfo: ${JSON.stringify(checkoutAdditionalInfo, null, 2)}\n`); + setIsLoading(false); + navigateToResultScreen(); + }, + onTokenizationSuccess: async (paymentMethodTokenData, handler) => { + updateLogs(`\nโ„น๏ธ onTokenizationSuccess\npaymentMethodTokenData: ${JSON.stringify(paymentMethodTokenData, null, 2)}\n`); + setIsLoading(false); - const onPrepareStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started preparing for ${paymentMethodType}`); - setIsLoading(true); - }; + try { + const payment: IPayment = await createPayment(paymentMethodTokenData.token); + merchantPayment = payment; - const onPaymentMethodShow = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC showed ${paymentMethodType}`); - setIsLoading(true); - }; + if (payment.requiredAction && payment.requiredAction.clientToken) { + merchantPaymentId = payment.id; - const onTokenizeStart = (paymentMethodType: string) => { - updateLogs(`\nโ„น๏ธ HUC started tokenization for ${paymentMethodType}`); - setIsLoading(true); - }; + if (payment.requiredAction.name === "3DS_AUTHENTICATION") { + updateLogs("\nโš ๏ธ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + } - const onAvailablePaymentMethodsLoad = (paymentMethodTypes: string[]) => { - updateLogs(`\nโ„น๏ธ HUC did set up client session for payment methods ${JSON.stringify(paymentMethodTypes)}`); - setIsLoading(false); - }; + handler.continueWithNewClientToken(payment.requiredAction.clientToken); - const onCheckoutComplete = (checkoutData: PrimerCheckoutData) => { - updateLogs(`\nโœ… PrimerCheckoutData:\n${JSON.stringify(checkoutData)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', checkoutData); - }; + } else { + setIsLoading(false); + handler.complete(); + navigateToResultScreen(); + } - const onResumePending = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', additionalInfo); - }; + } catch (err) { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + handler.complete(); - const onCheckoutReceivedAdditionalInfo = (additionalInfo: PrimerCheckoutAdditionalInfo) => { - updateLogs(`\nโœ… PrimerCheckoutAdditionalInfo:\n${JSON.stringify(additionalInfo)}`); - debugger; - setIsLoading(false); - props.navigation.navigate('Result', additionalInfo); + console.error(err); + navigateToResultScreen(); + } + }, + onCheckoutResume: async (resumeToken, handler) => { + updateLogs(`\nโ„น๏ธ onCheckoutResume\nresumeToken: ${resumeToken}`); + + try { + if (merchantPaymentId) { + const payment: IPayment = await resumePayment(merchantPaymentId, resumeToken); + merchantPayment = payment; + handler.complete(); + updateLogs(`\nโœ… Payment resumed\npayment: ${JSON.stringify(payment, null, 2)}`); + setIsLoading(false); + navigateToResultScreen(); + merchantPaymentId = null; + + } else { + const err = new Error("Invalid value for paymentId"); + throw err; + } + + } catch (err) { + console.error(err); + handler.complete(); + updateLogs(`\n๐Ÿ›‘ Payment resume\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + + merchantPaymentId = null; + navigateToResultScreen(); + } + }, + onError: (err) => { + merchantPrimerError = err; + updateLogs(`\n๐Ÿ›‘ onError\nerror: ${JSON.stringify(err, null, 2)}`); + console.error(err); + setIsLoading(false); + navigateToResultScreen(); + } + } }; - const onTokenizeSuccess = async (paymentMethodTokenData: PrimerPaymentMethodTokenData, handler: PrimerTokenizationHandler) => { - updateLogs(`\nโœ… onTokenizeSuccess:\n${JSON.stringify(paymentMethodTokenData, null, 2)}`); - - try { - const payment: IPayment = await createPayment(paymentMethodTokenData.token); + if (appPaymentParameters.merchantName) { + //@ts-ignore + settings.paymentMethodOptions.applePayOptions = { + merchantIdentifier: 'merchant.checkout.team', + merchantName: appPaymentParameters.merchantName + } + } - if (payment.requiredAction && payment.requiredAction.clientToken) { - paymentId = payment.id; + useEffect(() => { + createClientSessionIfNeeded() + .then((session) => { + setIsLoading(false); + startHUC(session.clientToken); + }) + .catch(err => { + setIsLoading(false); + console.error(err); + }); + }, []); - if (payment.requiredAction.name === "3DS_AUTHENTICATION") { - updateLogs("\n๐Ÿ›‘ Make sure you have used a card number that supports 3DS, otherwise the SDK will hang.") + const createClientSessionIfNeeded = (): Promise => { + return new Promise(async (resolve, reject) => { + try { + if (clientSession === null) { + const newClientSession = await createClientSession(); + setClientSession(newClientSession); + resolve(newClientSession); + } else { + resolve(clientSession); } - paymentId = payment.id; - handler.continueWithNewClientToken(payment.requiredAction.clientToken); - } else { - props.navigation.navigate('Result', payment); - setIsLoading(false); + } catch (err) { + reject(err); } - } catch (err) { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setIsLoading(false); - props.navigation.navigate('Result', err); - } + }); } - //@ts-ignore - const onResumeSuccess = async (resumeToken: string, handler: PrimerResumeHandler) => { - updateLogs(`\nโœ… onResumeSuccess:\n${JSON.stringify(resumeToken)}`); - + const navigateToResultScreen = async () => { try { - if (paymentId) { - const payment: IPayment = await resumePayment(paymentId, resumeToken); - props.navigation.navigate('Result', payment); - setIsLoading(false); + props.navigation.navigate("Result", { + merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, + merchantCheckoutData: merchantCheckoutData, + merchantPayment: merchantPayment, + merchantPrimerError: merchantPrimerError, + logs: log + }); - } else { - const err = new Error("Invalid value for paymentId"); - throw err; - } - paymentId = null; + setClientSession(null); + setIsLoading(true); + await createClientSessionIfNeeded(); } catch (err) { console.error(err); - paymentId = null; - props.navigation.navigate('Result', err); - setIsLoading(false); } - } - const onError = (error: PrimerError, checkoutData: PrimerCheckoutData | null, handler: PrimerErrorHandler | undefined) => { - updateLogs(`\n๐Ÿ›‘ HUC failed with error:\n\n${JSON.stringify(error, null, 2)}\n\ncheckoutData:\n${JSON.stringify(checkoutData, null, 2)}`); - console.error(error); - handler?.showErrorMessage("My RN message"); setIsLoading(false); - }; - - const onBeforeClientSessionUpdate = () => { - updateLogs(`\nโ„น๏ธ onBeforeClientSessionUpdate`); - }; - - //@ts-ignore - const onClientSessionUpdate = (clientSession: PrimerClientSession) => { - updateLogs(`\nโ„น๏ธ onClientSessionUpdate`); } - let settings: PrimerSettings = { - paymentHandling: getPaymentHandlingStringVal(appPaymentParameters.paymentHandling), - paymentMethodOptions: { - iOS: { - urlScheme: 'merchant://primer.io' - }, - }, - onAvailablePaymentMethodsLoad: onAvailablePaymentMethodsLoad, - onPrepareStart: onPrepareStart, - onBeforeClientSessionUpdate: onBeforeClientSessionUpdate, - onClientSessionUpdate: onClientSessionUpdate, - onPaymentMethodShow: onPaymentMethodShow, - //@ts-ignore - onBeforePaymentCreate: (checkoutPaymentMethodData, handler) => { - updateLogs(`\nโ„น๏ธ onBeforePaymentCreate`); - handler.continuePaymentCreation(); - }, - onTokenizeStart: onTokenizeStart, - onCheckoutComplete: onCheckoutComplete, - onTokenizeSuccess: onTokenizeSuccess, - onResumeSuccess: onResumeSuccess, - onResumePending: onResumePending, - onCheckoutReceivedAdditionalInfo: onCheckoutReceivedAdditionalInfo, - onError: onError - }; + const startHUC = async (clientToken: string) => { + try { + const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); + setPaymentMethods(availablePaymentMethods); + // updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(availablePaymentMethods, null, 2)}`); + const assetsManager = new AssetsManager(); + const assets = await assetsManager.getPaymentMethodAssets(); + setPaymentMethodsAssets(assets); - if (appPaymentParameters.merchantName) { - //@ts-ignore - settings.paymentMethodOptions.applePayOptions = { - merchantIdentifier: 'merchant.checkout.team', - merchantName: appPaymentParameters.merchantName + } catch (err) { + console.error(err); } } - useEffect(() => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - .then((paymentMethodTypes) => { - updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(paymentMethodTypes, null, 2)}`); - setPaymentMethods(paymentMethodTypes); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - console.error(err); - setError(err); - }); - }); + const paymentMethodButtonTapped = async (paymentMethodType: string) => { + try { + const paymentMethod = paymentMethods?.find(pm => pm.paymentMethodType === paymentMethodType); - // getLogo('GOOGLE_PAY') - // .then(() => {}) - // .catch((err) => {}); - }, []); + if (!paymentMethod) { + return; + } - const payWithPaymentMethod = (paymentMethod: string) => { - createClientSession() - .then((session) => { - setIsLoading(false); - HeadlessUniversalCheckout.startWithClientToken(session.clientToken, settings) - //@ts-ignore - .then((response) => { - HeadlessUniversalCheckout.showPaymentMethod(paymentMethod); - }) - .catch((err) => { - updateLogs(`\n๐Ÿ›‘ Error:\n${JSON.stringify(err, null, 2)}`); - setError(err); - }); - }); - }; + if (paymentMethod.paymentMethodManagerCategories.length === 1) { + pay(paymentMethod, paymentMethod.paymentMethodManagerCategories[0]); - const renderPaymentMethods = () => { - if (!paymentMethods) { - return null; - } else { - return ( - - {paymentMethods.map((pm) => { - return ( - { - payWithPaymentMethod(pm); - }} - > - {pm} - - ); - })} - - ); + } else { + const selectedImplementationType = await selectImplemetationType(paymentMethod); + pay(paymentMethod, selectedImplementationType); + } + } catch (err) { + updateLogs(`\n๐Ÿ›‘ paymentMethodButtonTapped\nerror: ${JSON.stringify(err, null, 2)}`); + console.error(err); } }; - const renderResponse = () => { - if (!paymentResponse) { - return null; - } else { - return ( - - {JSON.stringify(paymentResponse)} - - ); - } - }; + const pay = async (paymentMethod: PaymentMethod, implementationType: string) => { + try { + if (implementationType === "NATIVE_UI") { + setIsLoading(true); + await createClientSessionIfNeeded(); + const nativeUIManager = new NativeUIManager(); + await nativeUIManager.configure(paymentMethod.paymentMethodType); + + if (paymentMethod.paymentMethodType === "KLARNA") { + await nativeUIManager.showPaymentMethod(SessionIntent.VAULT); + } else { + await nativeUIManager.showPaymentMethod(SessionIntent.CHECKOUT); + } - const renderTestImage = () => { - if (!localImageUrl) { - return null; - } else { - return ( - - ); + } else if (implementationType === "RAW_DATA") { + await createClientSessionIfNeeded(); + + if (paymentMethod.paymentMethodType === "XENDIT_OVO" || paymentMethod.paymentMethodType === "ADYEN_MBWAY") { + props.navigation.navigate('RawPhoneNumberData', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "XENDIT_RETAIL_OUTLETS") { + props.navigation.navigate('RawRetailOutlet', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "ADYEN_BANCONTACT_CARD") { + props.navigation.navigate('RawAdyenBancontactCard', { paymentMethodType: paymentMethod.paymentMethodType }); + + } else if (paymentMethod.paymentMethodType === "PAYMENT_CARD") { + props.navigation.navigate('RawCardData', { paymentMethodType: paymentMethod.paymentMethodType }); + } + + } else { + Alert.alert( + "Warning!", + `${implementationType} is not supported on Headless Universal Checkout yet.`, + [ + { + text: "Cancel", + style: "cancel", + onPress: () => { + + } + } + ], + { + cancelable: true, + } + ); + } + + } catch (err) { + updateLogs(`\n๐Ÿ›‘ pay\nerror: ${JSON.stringify(err, null, 2)}`); + setIsLoading(false); + console.error(err); } - }; + } - const renderError = () => { - if (!error) { + const renderPaymentMethodsUI = () => { + if (!paymentMethodsAssets) { return null; - } else { - return {JSON.stringify(error)}; } - }; + + return ( + + {paymentMethodsAssets.map((paymentMethodsAsset) => { + return ( + { + paymentMethodButtonTapped(paymentMethodsAsset.paymentMethodType); + }} + testID={`button-${paymentMethodsAsset.paymentMethodType.toLowerCase().replace("_", "-")}`} + > + + + ); + })} + + ); + } const renderLoadingOverlay = () => { if (!isLoading) { @@ -310,38 +404,7 @@ export const HeadlessCheckoutScreen = (props: any) => { return ( - {renderPaymentMethods()} - { - log = undefined; - setClearLogs(!clearLogs); - }} - > - Clear Logs - - {renderTestImage()} - {renderResponse()} - {renderError()} - - - {log} - - + {renderPaymentMethodsUI()} {renderLoadingOverlay()} ); diff --git a/example_0_70_6/src/screens/NewLineItemSreen.tsx b/example_0_70_6/src/screens/NewLineItemSreen.tsx index 0fac2a5ed..792536a9a 100644 --- a/example_0_70_6/src/screens/NewLineItemSreen.tsx +++ b/example_0_70_6/src/screens/NewLineItemSreen.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import { View, Text, TouchableOpacity } from 'react-native'; +import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; import TextField from '../components/TextField'; import { makeRandomString } from '../helpers/helpers'; import type { IClientSessionLineItem } from '../models/IClientSessionRequestBody'; @@ -9,11 +9,13 @@ import { styles } from '../styles'; export interface NewLineItemScreenProps { lineItem?: IClientSessionLineItem; onAddLineItem?: (lineItem: IClientSessionLineItem) => void; + onEditLineItem?: (lineItem: IClientSessionLineItem) => void; onRemoveLineItem?: (lineItem: IClientSessionLineItem) => void; } const NewLineItemScreen = (props: any) => { const newLineItemScreenProps: NewLineItemScreenProps | undefined = props.route.params; + const [isEditing, setIsEditing] = React.useState(newLineItemScreenProps?.lineItem === undefined ? false : true); const [name, setName] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.description); const [quantity, setQuantity] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.quantity); const [unitPrice, setUnitPrice] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.amount); @@ -63,26 +65,45 @@ const NewLineItemScreen = (props: any) => { { - if (name && quantity && unitPrice) { - const newLineItem: IClientSessionLineItem = { - itemId: `item-id-${makeRandomString(8)}`, - description: name, - quantity: quantity, - amount: unitPrice + if (isEditing && newLineItemScreenProps?.lineItem) { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onEditLineItem) { + newLineItemScreenProps.onEditLineItem(newLineItem); + } + + props.navigation.goBack(); } - - if (newLineItemScreenProps?.onAddLineItem) { - newLineItemScreenProps.onAddLineItem(newLineItem); + } else { + if (name && quantity && unitPrice) { + const newLineItem: IClientSessionLineItem = { + itemId: `item-id-${makeRandomString(8)}`, + description: name, + quantity: quantity, + amount: unitPrice + } + + if (newLineItemScreenProps?.onAddLineItem) { + newLineItemScreenProps.onAddLineItem(newLineItem); + } + + props.navigation.goBack(); } - - props.navigation.goBack(); } }} > - Add Line Item + { + isEditing ? "Edit Line Item" : "Add Line Item" + } diff --git a/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx new file mode 100644 index 000000000..1df2b151b --- /dev/null +++ b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx @@ -0,0 +1,248 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawBancontactCardRedirectData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawAdyenBancontactCardScreen = (props: any) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawBancontactCardRedirectData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cardholderName: cardholderName || "" + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + setRawData(text, null, null); + }} + /> + ); + } else if (et === InputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + setRawData(null, text, null); + }} + /> + ); + } else if (et === InputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + setRawData(null, null, text) + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawAdyenBancontactCardScreen; diff --git a/example_0_70_6/src/screens/RawCardDataScreen.tsx b/example_0_70_6/src/screens/RawCardDataScreen.tsx new file mode 100644 index 000000000..556c2cbe0 --- /dev/null +++ b/example_0_70_6/src/screens/RawCardDataScreen.tsx @@ -0,0 +1,269 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawCardData, + RawDataManager, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +export interface RawCardDataScreenProps { + navigation: any; + clientSession: any; +} + +const rawDataManager = new RawDataManager(); + +const RawCardDataScreen = (props: any) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [cardNumber, setCardNumber] = useState(""); + const [expiryDate, setExpiryDate] = useState(""); + const [cvv, setCvv] = useState(""); + const [cardholderName, setCardholderName] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }); + + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = ( + tmpCardNumber: string | null, + tmpExpiryDate: string | null, + tmpCvv: string | null, + tmpCardholderName: string | null + ) => { + let expiryDateComponents = expiryDate.split("/"); + + let expiryMonth: string | undefined; + let expiryYear: string | undefined; + + if (expiryDateComponents.length === 2) { + expiryMonth = expiryDateComponents[0]; + expiryYear = expiryDateComponents[1]; + } + + let rawData: RawCardData = { + cardNumber: cardNumber || "", + expiryMonth: expiryMonth || "", + expiryYear: expiryYear || "", + cvv: cvv || "", + cardholderName: cardholderName + } + + if (tmpCardNumber) { + rawData.cardNumber = tmpCardNumber; + } + + if (tmpExpiryDate) { + expiryDateComponents = tmpExpiryDate.split("/"); + if (expiryDateComponents.length === 2) { + rawData.expiryMonth = expiryDateComponents[0]; + rawData.expiryYear = expiryDateComponents[1]; + } + } + + if (tmpCvv) { + rawData.cvv = tmpCvv; + } + + if (tmpCardholderName) { + rawData.cardholderName = tmpCardholderName; + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.CARD_NUMBER) { + return ( + { + setCardNumber(text); + setRawData(text, null, null, null); + }} + /> + ); + } else if (et === InputElementType.EXPIRY_DATE) { + return ( + { + setExpiryDate(text); + setRawData(null, text, null, null); + }} + /> + ); + } else if (et === InputElementType.CVV) { + return ( + { + setCvv(text); + setRawData(null, null, text, null); + }} + /> + ); + } else if (et === InputElementType.CARDHOLDER_NAME) { + return ( + { + setCardholderName(text); + setRawData(null, null, null, text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawCardDataScreen; diff --git a/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx b/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx new file mode 100644 index 000000000..1b97b1d40 --- /dev/null +++ b/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx @@ -0,0 +1,179 @@ +import React, { useEffect, useState } from 'react'; +import { + Text, + TouchableOpacity, + View, + ScrollView +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawPhoneNumberData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +const rawDataManager = new RawDataManager(); + +const RawPhoneNumberDataScreen = (props: any) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [phoneNumber, setPhoneNumber] = useState(""); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }) + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpPhoneNumber: string) => { + let rawData: RawPhoneNumberData = { + phoneNumber: tmpPhoneNumber + } + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!requiredInputElementTypes) { + return null; + } else { + return ( + + { + requiredInputElementTypes.map(et => { + if (et === InputElementType.PHONE_NUMBER) { + return ( + { + setPhoneNumber(text); + setRawData(text); + }} + /> + ); + } + }) + } + + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawPhoneNumberDataScreen; diff --git a/example_0_70_6/src/screens/RawRetailOutletScreen.tsx b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx new file mode 100644 index 000000000..fe2326dcb --- /dev/null +++ b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx @@ -0,0 +1,189 @@ +import React, { useEffect, useState } from 'react'; +import { + FlatList, + Text, + TouchableOpacity, + View +} from 'react-native'; +import { ActivityIndicator } from 'react-native'; +import { + InputElementType, + RawDataManager, + RawRetailerData, +} from '@primer-io/react-native'; +import TextField from '../components/TextField'; +import { styles } from '../styles'; +import type { RawDataScreenProps } from '../models/RawDataScreenProps'; + +const rawDataManager = new RawDataManager(); + +const RawRetailOutletScreen = (props: any) => { + + const [isLoading, setIsLoading] = useState(false); + const [isCardFormValid, setIsCardFormValid] = useState(false); + const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); + const [retailers, setRetailers] = useState(undefined); + const [selectedRetailOutletId, setSelectedRetailOutletId] = useState(undefined); + const [metadataLog, setMetadataLog] = useState(""); + const [validationLog, setValidationLog] = useState(""); + + useEffect(() => { + initialize(); + }, []); + + const initialize = async () => { + const response = await rawDataManager.configure({ + paymentMethodType: props.route.params.paymentMethodType, + onMetadataChange: (data => { + const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; + console.log(log); + setMetadataLog(log); + }), + onValidation: ((isVallid, errors) => { + let log = `\nonValidation:\nisValid: ${isVallid}\n`; + + if (errors) { + log += `errors:${JSON.stringify(errors, null, 2)}\n`; + } + + console.log(log); + setValidationLog(log); + setIsCardFormValid(isVallid); + }) + }); + + if (response?.initializationData) { + //@ts-ignore + const retailers: any[] = response.initializationData.result; + setRetailers(retailers); + } + + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); + setRequiredInputElementTypes(requiredInputElementTypes); + } + + const setRawData = (tmpRetailOutletId: string) => { + let rawData: RawRetailerData = { + id: tmpRetailOutletId + } + + setSelectedRetailOutletId(tmpRetailOutletId); + + rawDataManager.setRawData(rawData); + } + + const renderInputs = () => { + if (!retailers) { + return null; + } else { + return ( + item.id} + renderItem={(data) => { + return ( + { + setRawData(data.item.id); + }} + > + + {data.item.name} + + + ) + }} + /> + ); + } + } + + const pay = async () => { + try { + await rawDataManager.submit(); + + } catch (err) { + console.error(err); + } + } + + const renderLoadingOverlay = () => { + if (!isLoading) { + return null; + } else { + return + + + } + }; + + const renderPayButton = () => { + return ( + { + if (isCardFormValid) { + pay(); + } + }} + > + + Pay + + + ); + }; + + const renderEvents = () => { + return ( + + + + {metadataLog} + + + + + {validationLog} + + + + ) + } + + return ( + + {renderInputs()} + {renderPayButton()} + {renderEvents()} + {renderLoadingOverlay()} + + ); +}; + +export default RawRetailOutletScreen; diff --git a/example_0_70_6/src/screens/ResultScreen.tsx b/example_0_70_6/src/screens/ResultScreen.tsx index d4d7fb0b8..8b8731487 100644 --- a/example_0_70_6/src/screens/ResultScreen.tsx +++ b/example_0_70_6/src/screens/ResultScreen.tsx @@ -17,17 +17,51 @@ const ResultScreen = (props: any) => { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; + const paramsWithoutLogs: any = {}; + + if (props.route.params?.merchantCheckoutData) { + paramsWithoutLogs.merchantCheckoutData = props.route.params.merchantCheckoutData; + } + + if (props.route.params?.merchantCheckoutAdditionalInfo) { + paramsWithoutLogs.merchantCheckoutAdditionalInfo = props.route.params.merchantCheckoutAdditionalInfo; + } + + if (props.route.params?.merchantPayment) { + paramsWithoutLogs.merchantPayment = props.route.params.merchantPayment; + } + + if (props.route.params?.merchantPrimerError) { + paramsWithoutLogs.merchantPrimerError = props.route.params.merchantPrimerError; + } + + let logs: string | undefined = props.route.params?.logs; + return ( - - - {JSON.stringify(props.route.params, null, 4)} + + + {JSON.stringify(paramsWithoutLogs, null, 4)} - + + { + !logs ? null : + + + {JSON.stringify(logs, null, 4)} + + + } + + ); }; diff --git a/example_0_70_6/src/screens/SettingsScreen.tsx b/example_0_70_6/src/screens/SettingsScreen.tsx index b45aa75b1..f360f9c13 100644 --- a/example_0_70_6/src/screens/SettingsScreen.tsx +++ b/example_0_70_6/src/screens/SettingsScreen.tsx @@ -26,21 +26,19 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined = "6a0a86e2-6e25-4fab-ab3b-06c36eb08149"; +export let customApiKey: string | undefined; export let customClientToken: string | undefined; // @ts-ignore const SettingsScreen = ({ navigation }) => { const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Staging); - //@ts-ignore + const [environment, setEnvironment] = React.useState(Environment.Sandbox); const [apiKey, setApiKey] = React.useState(customApiKey); - //@ts-ignore const [clientToken, setClientToken] = React.useState(undefined); const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); const [lineItems, setLineItems] = React.useState(appPaymentParameters.clientSessionRequestBody.order?.lineItems || []); - const [currency, setCurrency] = React.useState("MYR"); - const [countryCode, setCountryCode] = React.useState("MY"); + const [currency, setCurrency] = React.useState("EUR"); + const [countryCode, setCountryCode] = React.useState("DE"); const [orderId, setOrderId] = React.useState(appPaymentParameters.clientSessionRequestBody.orderId); const [merchantName, setMerchantName] = React.useState(appPaymentParameters.merchantName); @@ -89,6 +87,25 @@ const SettingsScreen = ({ navigation }) => { setEnvironment(selectedEnvironment); }} /> + { + setApiKey(text); + customApiKey = text; + }} + /> + { + setClientToken(text); + }} + /> ) } @@ -121,52 +138,25 @@ const SettingsScreen = ({ navigation }) => { - - Currency & Country Code - - - { - setCurrency(itemValue); + { + setCurrency(text); }} - > - - - - - - - - - - - - - { - setCountryCode(itemValue); + /> + + { + setCountryCode(text); }} - > - - - - - - - - - - - - - - + /> {renderLineItems()} @@ -210,43 +200,48 @@ const SettingsScreen = ({ navigation }) => { - ( - { - const newLineItemsScreenProps: NewLineItemScreenProps = { - lineItem: item, - onRemoveLineItem: (lineItem) => { - const currentLineItems = [...lineItems]; - const index = currentLineItems.indexOf(lineItem, 0); - if (index > -1) { - currentLineItems.splice(index, 1); + { + lineItems.map((item, index) => { + return ( + { + const newLineItemsScreenProps: NewLineItemScreenProps = { + lineItem: item, + onEditLineItem: (editedLineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(item, 0); + currentLineItems[index] = editedLineItem; + setLineItems(currentLineItems); + }, + onRemoveLineItem: (lineItem) => { + const currentLineItems = [...lineItems]; + const index = currentLineItems.indexOf(lineItem, 0); + if (index > -1) { + currentLineItems.splice(index, 1); + } + setLineItems(currentLineItems); } - setLineItems(currentLineItems); } - } - navigation.navigate('NewLineItem', newLineItemsScreenProps); - }} - > - {item.description} {`x${item.quantity}`} - - {item.amount} - - )} - ListFooterComponent={ - - Total - - {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} - - } - /> + navigation.navigate('NewLineItem', newLineItemsScreenProps); + }} + > + {item.description} {`x${item.quantity}`} + + {item.amount} + + ); + }) + } + + Total + + {`${(lineItems || []).map(item => (item.amount * item.quantity)).reduce((prev, next) => prev + next, 0)}`} + ); } @@ -481,7 +476,7 @@ const SettingsScreen = ({ navigation }) => { }} /> - + Address @@ -638,67 +633,9 @@ const SettingsScreen = ({ navigation }) => { - Headless Universal Checkout (Beta) + Headless Universal Checkout - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawCardData'); - }} - > - - HUC Raw Card Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawPhoneNumberData'); - }} - > - - HUC Raw Phone Number Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawCardRedirectDataScreen'); - }} - > - - HUC Raw Card Redirect Data (Beta) - - - { - updateAppPaymentParameters(); - console.log(appPaymentParameters); - navigation.navigate('HUCRawRetailDataVoucherScreen'); - }} - > - - HUC Raw Retail Data Voucher Screen (Beta) - - - ); } From b994c9af9aec45b8418a12ceadc6bae249b9e6fd Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 22 Dec 2022 15:23:22 +0200 Subject: [PATCH 048/121] Update iOS dependency --- example_0_70_6/ios/Podfile | 14 ++- example_0_70_6/ios/Podfile.lock | 26 ++-- .../example_0_70_6.xcodeproj/project.pbxproj | 114 +++++++++--------- example_0_70_6/yarn.lock | 12 +- primer-io-react-native.podspec | 3 +- 5 files changed, 90 insertions(+), 79 deletions(-) diff --git a/example_0_70_6/ios/Podfile b/example_0_70_6/ios/Podfile index 6467168ef..fe4e746ad 100644 --- a/example_0_70_6/ios/Podfile +++ b/example_0_70_6/ios/Podfile @@ -27,7 +27,7 @@ target 'example_0_70_6' do ) pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :branch => 'release/2.16.0' + pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :tag => '2.20.0-rc.2' pod 'Primer3DS' pod 'PrimerIPay88SDK' pod 'PrimerKlarnaSDK' @@ -49,6 +49,18 @@ target 'example_0_70_6' do installer.pods_project.targets.each do |target| if target.name == "primer-io-react-native" || target.name == "PrimerSDK" target.build_configurations.each do |config| + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' + + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK/PrimerIPay88SDK.modulemap"' diff --git a/example_0_70_6/ios/Podfile.lock b/example_0_70_6/ios/Podfile.lock index f7f85973c..3abb86043 100644 --- a/example_0_70_6/ios/Podfile.lock +++ b/example_0_70_6/ios/Podfile.lock @@ -14,16 +14,16 @@ PODS: - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.15.1): - - PrimerSDK (= 2.15.1) + - primer-io-react-native (2.20.0-rc.2): + - PrimerSDK (= 2.20.0-rc.2) - React-Core - - Primer3DS (1.0.2) + - Primer3DS (1.0.3) - PrimerIPay88SDK (0.1.2) - PrimerKlarnaSDK (1.0.3): - KlarnaMobileSDK (= 2.2.2) - - PrimerSDK (2.15.1): - - PrimerSDK/Core (= 2.15.1) - - PrimerSDK/Core (2.15.1) + - PrimerSDK (2.20.0-rc.2): + - PrimerSDK/Core (= 2.20.0-rc.2) + - PrimerSDK/Core (2.20.0-rc.2) - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -326,7 +326,7 @@ DEPENDENCIES: - Primer3DS - PrimerIPay88SDK - PrimerKlarnaSDK - - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, branch `release/2.16.0`) + - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, tag `2.20.0-rc.2`) - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) @@ -383,8 +383,8 @@ EXTERNAL SOURCES: primer-io-react-native: :path: "../.." PrimerSDK: - :branch: release/2.16.0 :git: https://github.com/primer-io/primer-sdk-ios.git + :tag: 2.20.0-rc.2 RCT-Folly: :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" RCTRequired: @@ -452,8 +452,8 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: PrimerSDK: - :commit: 3e2582cb08c6084f18f7ba813a4235653e5dc00a :git: https://github.com/primer-io/primer-sdk-ios.git + :tag: 2.20.0-rc.2 SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 @@ -463,11 +463,11 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: ec8cf5e558ab748459d634eb82c80d77f1013b12 - Primer3DS: 318b3b760ba389aa10417fba23ceec04286e8172 + primer-io-react-native: e1ebfb1569f001410cdcf12ad24fc8bb0393bafa + Primer3DS: 895ab3a53731c87dfba26f30b70f59fcd590f94f PrimerIPay88SDK: 4fe240e69c62bdb0aa56a81a9596538554fb435f PrimerKlarnaSDK: a58cb321e0144cd473a250cfdcf5955c96b846c1 - PrimerSDK: 46d98b1dbf47a7bb4a58f98c6936799ee33d01da + PrimerSDK: 78f23fe2db91a1d3de87409401a3620315df4416 RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a RCTTypeSafety: 27c2ac1b00609a432ced1ae701247593f07f901e @@ -501,6 +501,6 @@ SPEC CHECKSUMS: RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc -PODFILE CHECKSUM: d05e99d3ef21ccc3cc4b0e608f645c14e7c8db32 +PODFILE CHECKSUM: 3a1567f9a6cce8ff8dbc4ab06ab2812e691d1025 COCOAPODS: 1.11.3 diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj index bab469a8e..427a59f32 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj @@ -8,12 +8,12 @@ /* Begin PBXBuildFile section */ 00E356F31AD99517003FC87E /* example_0_70_6Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* example_0_70_6Tests.m */; }; - 1393649C6E660E2A6B4DCB32 /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8987D44F9B45A5FC4F24A78F /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 48DF4451ACF21DADCD542EFF /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DE90594FF99D04764FF0626B /* libPods-example_0_70_6.a */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + E3DFEE23A9AB4B1B8E7CADDA /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; + EEC482BEFD7AB8D6DD77FE0E /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,14 +36,14 @@ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example_0_70_6/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example_0_70_6/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example_0_70_6/main.m; sourceTree = ""; }; - 29208C2B6E320C5C2A727D91 /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; - 59C79705F414DB45A60DFDA0 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; + 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example_0_70_6/LaunchScreen.storyboard; sourceTree = ""; }; - 8987D44F9B45A5FC4F24A78F /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - B9BBD29DDD2A85DAE7874AF5 /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; - DE90594FF99D04764FF0626B /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; + B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; + D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; - ED830C1EE02FF05C82280818 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; + F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -51,7 +51,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1393649C6E660E2A6B4DCB32 /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, + E3DFEE23A9AB4B1B8E7CADDA /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -59,7 +59,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 48DF4451ACF21DADCD542EFF /* libPods-example_0_70_6.a in Frameworks */, + EEC482BEFD7AB8D6DD77FE0E /* libPods-example_0_70_6.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -100,8 +100,8 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - DE90594FF99D04764FF0626B /* libPods-example_0_70_6.a */, - 8987D44F9B45A5FC4F24A78F /* libPods-example_0_70_6-example_0_70_6Tests.a */, + B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */, + 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */, ); name = Frameworks; sourceTree = ""; @@ -140,10 +140,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - B9BBD29DDD2A85DAE7874AF5 /* Pods-example_0_70_6.debug.xcconfig */, - 59C79705F414DB45A60DFDA0 /* Pods-example_0_70_6.release.xcconfig */, - 29208C2B6E320C5C2A727D91 /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, - ED830C1EE02FF05C82280818 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, + F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */, + CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */, + B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, + D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -155,12 +155,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "example_0_70_6Tests" */; buildPhases = ( - 2D39C02FA39446DF5D0BE1B7 /* [CP] Check Pods Manifest.lock */, + 21D68EAD12BD4AB2065B141F /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - 03E819ED3E081A52EB1D15B8 /* [CP] Embed Pods Frameworks */, - 182A8E27F1A683DF1071D022 /* [CP] Copy Pods Resources */, + 9DFA6965037F0360338E3A03 /* [CP] Embed Pods Frameworks */, + 9083A92ECC3AF6B4D01654E1 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -176,14 +176,14 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example_0_70_6" */; buildPhases = ( - 7112E7DFE08E78649281D7AC /* [CP] Check Pods Manifest.lock */, + 0F449B8A87984E1104B88E39 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - DE5031965EEE45CB81E3144C /* [CP] Embed Pods Frameworks */, - AE48F9A1E5EBD74386C7BE8A /* [CP] Copy Pods Resources */, + 1BD55B84319F65AC0C78C8C3 /* [CP] Embed Pods Frameworks */, + FADB66330E52F59102CE3846 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -266,41 +266,46 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 03E819ED3E081A52EB1D15B8 /* [CP] Embed Pods Frameworks */ = { + 0F449B8A87984E1104B88E39 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 182A8E27F1A683DF1071D022 /* [CP] Copy Pods Resources */ = { + 1BD55B84319F65AC0C78C8C3 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 2D39C02FA39446DF5D0BE1B7 /* [CP] Check Pods Manifest.lock */ = { + 21D68EAD12BD4AB2065B141F /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -322,60 +327,55 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 7112E7DFE08E78649281D7AC /* [CP] Check Pods Manifest.lock */ = { + 9083A92ECC3AF6B4D01654E1 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-checkManifestLockResult.txt", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources.sh\"\n"; showEnvVarsInLog = 0; }; - AE48F9A1E5EBD74386C7BE8A /* [CP] Copy Pods Resources */ = { + 9DFA6965037F0360338E3A03 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - DE5031965EEE45CB81E3144C /* [CP] Embed Pods Frameworks */ = { + FADB66330E52F59102CE3846 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { @@ -430,7 +430,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 29208C2B6E320C5C2A727D91 /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; + baseConfigurationReference = B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -457,7 +457,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = ED830C1EE02FF05C82280818 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; + baseConfigurationReference = D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; @@ -481,7 +481,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B9BBD29DDD2A85DAE7874AF5 /* Pods-example_0_70_6.debug.xcconfig */; + baseConfigurationReference = F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -508,7 +508,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 59C79705F414DB45A60DFDA0 /* Pods-example_0_70_6.release.xcconfig */; + baseConfigurationReference = CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/example_0_70_6/yarn.lock b/example_0_70_6/yarn.lock index db4d54600..97d81ae91 100644 --- a/example_0_70_6/yarn.lock +++ b/example_0_70_6/yarn.lock @@ -2246,9 +2246,9 @@ camelcase@^6.0.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001400: - version "1.0.30001439" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz#ab7371faeb4adff4b74dad1718a6fd122e45d9cb" - integrity sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A== + version "1.0.30001441" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz#987437b266260b640a23cd18fbddb509d7f69f3e" + integrity sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg== capture-exit@^2.0.0: version "2.0.0" @@ -3264,9 +3264,9 @@ flatted@^3.1.0: integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== flow-parser@0.*: - version "0.196.2" - resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.196.2.tgz#d16b83234026b817d6ad00429822b6a3704032ff" - integrity sha512-IuLWqI8aCdYH5t3W3PKSFrf/IngJt4WMpuP+5WTLhTPoexTage5evcGouXQ8kAQurOYkuD2YoVPAj+H3foW2Rw== + version "0.196.3" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.196.3.tgz#dd923f29a6c194770a4f999f8026ef1da79d428b" + integrity sha512-R8wj12eHW6og+IBWeRS6aihkdac1Prh4zw1bfxtt/aeu8r5OFmQEZjnmINcjO/5Q+OKvI4Eg367ygz2SHvtH+w== flow-parser@^0.121.0: version "0.121.0" diff --git a/primer-io-react-native.podspec b/primer-io-react-native.podspec index 805b1b4ea..7a8081a3f 100644 --- a/primer-io-react-native.podspec +++ b/primer-io-react-native.podspec @@ -13,9 +13,8 @@ Pod::Spec.new do |s| s.platforms = { :ios => "10.0" } s.source = { :git => "https://github.com/primer-io/primer-sdk-react-native.git", :tag => "#{s.version}" } - s.source_files = "ios/**/*.{h,m,mm,swift}" s.dependency "React-Core" - s.dependency "PrimerSDK", "2.16.0" + s.dependency "PrimerSDK", "2.20.0-rc.2" end From 55414e90d7430274f79bac436dc69021463f8583 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 22 Dec 2022 16:43:18 +0200 Subject: [PATCH 049/121] Add search paths. Fix code signing of resource bundles. --- example_0_70_6/ios/Podfile | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/example_0_70_6/ios/Podfile b/example_0_70_6/ios/Podfile index fe4e746ad..7f321cbfd 100644 --- a/example_0_70_6/ios/Podfile +++ b/example_0_70_6/ios/Podfile @@ -46,29 +46,33 @@ target 'example_0_70_6' do ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + fix_code_signing(installer) + installer.pods_project.targets.each do |target| if target.name == "primer-io-react-native" || target.name == "PrimerSDK" target.build_configurations.each do |config| - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap"' - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS" - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS"' - - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap"' - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK" - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerKlarnaSDK"' - - config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" - config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" - config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK/PrimerIPay88SDK.modulemap"' - config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" - config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerIPay88SDK"' + config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" + config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" + config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS/Primer3DS.modulemap" -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK/PrimerKlarnaSDK.modulemap" -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK/PrimerIPay88SDK.modulemap"' + config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/Primer3DS ${PODS_CONFIGURATION_BUILD_DIR}/PrimerKlarnaSDK ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK" + config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"Primer3DS" -l"PrimerKlarnaSDK" -l"PrimerIPay88SDK"' end end end end end + +def fix_code_signing(installer) + installer.generated_projects.each do |project| + project.targets.each do |target| + if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" + puts "Fixing code signing for #{target.name}..." + + target.build_configurations.each do |config| + config.build_settings["DEVELOPMENT_TEAM"] = "N8UN9TR5DY" + end + end + end + end +end From c98e3781f223a7950951485d43f0dbb9191c802e Mon Sep 17 00:00:00 2001 From: semirp <85510694+semirp@users.noreply.github.com> Date: Tue, 3 Jan 2023 11:16:11 +0100 Subject: [PATCH 050/121] Integrated SDK with the new example app (#142) --- example_0_70_6/android/app/build.gradle | 309 +++--- .../android/app/src/debug/AndroidManifest.xml | 18 +- .../android/app/src/main/AndroidManifest.xml | 42 +- .../com/example_0_70_6/MainApplication.java | 4 +- example_0_70_6/android/build.gradle | 6 +- example_0_70_6/android/gradle.properties | 3 + example_0_70_6/android/settings.gradle | 3 + example_0_70_6/metro.config.js | 3 +- example_0_70_6/package.json | 4 +- example_0_70_6/yarn.lock | 911 +++++++++++++++--- 10 files changed, 973 insertions(+), 330 deletions(-) diff --git a/example_0_70_6/android/app/build.gradle b/example_0_70_6/android/app/build.gradle index c024f734c..aafae75cc 100644 --- a/example_0_70_6/android/app/build.gradle +++ b/example_0_70_6/android/app/build.gradle @@ -1,7 +1,7 @@ apply plugin: "com.android.application" + import com.android.build.OutputFile -import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets @@ -79,7 +79,7 @@ import org.apache.tools.ant.taskdefs.condition.Os */ project.ext.react = [ - enableHermes: true, // clean and rebuild if changing + enableHermes: true, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" @@ -125,189 +125,206 @@ def enableHermes = project.ext.react.get("enableHermes", false); * Architectures to build native code for. */ def reactNativeArchitectures() { - def value = project.getProperties().get("reactNativeArchitectures") - return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] + def value = project.getProperties().get("reactNativeArchitectures") + return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] } android { - ndkVersion rootProject.ext.ndkVersion - - compileSdkVersion rootProject.ext.compileSdkVersion - - defaultConfig { - applicationId "com.example_0_70_6" - minSdkVersion rootProject.ext.minSdkVersion - targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0" - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() - - if (isNewArchitectureEnabled()) { - // We configure the CMake build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - arguments "-DPROJECT_BUILD_DIR=$buildDir", - "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", - "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", - "-DNODE_MODULES_DIR=$rootDir/../node_modules", - "-DANDROID_STL=c++_shared" - } - } - if (!enableSeparateBuildPerCPUArchitecture) { - ndk { - abiFilters (*reactNativeArchitectures()) - } - } - } - } + ndkVersion rootProject.ext.ndkVersion + + compileSdkVersion rootProject.ext.compileSdkVersion + + defaultConfig { + applicationId "com.example_0_70_6" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { - // We configure the NDK build only if you decide to opt-in for the New Architecture. - externalNativeBuild { - cmake { - path "$projectDir/src/main/jni/CMakeLists.txt" - } - } - def reactAndroidProjectDir = project(':ReactAndroid').projectDir - def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") - } - def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { - dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") - from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") - into("$buildDir/react-ndk/exported") + // We configure the CMake build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + arguments "-DPROJECT_BUILD_DIR=$buildDir", + "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", + "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", + "-DNODE_MODULES_DIR=$rootDir/../node_modules", + "-DANDROID_STL=c++_shared" } - afterEvaluate { - // If you wish to add a custom TurboModule or component locally, - // you should uncomment this line. - // preBuild.dependsOn("generateCodegenArtifactsFromSchema") - preDebugBuild.dependsOn(packageReactNdkDebugLibs) - preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) - - // Due to a bug inside AGP, we have to explicitly set a dependency - // between configureCMakeDebug* tasks and the preBuild tasks. - // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 - configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) - configureCMakeDebug.dependsOn(preDebugBuild) - reactNativeArchitectures().each { architecture -> - tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { - dependsOn("preDebugBuild") - } - tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { - dependsOn("preReleaseBuild") - } - } + } + if (!enableSeparateBuildPerCPUArchitecture) { + ndk { + abiFilters(*reactNativeArchitectures()) } + } } + } - splits { - abi { - reset() - enable enableSeparateBuildPerCPUArchitecture - universalApk false // If true, also generate a universal APK - include (*reactNativeArchitectures()) - } + if (isNewArchitectureEnabled()) { + // We configure the NDK build only if you decide to opt-in for the New Architecture. + externalNativeBuild { + cmake { + path "$projectDir/src/main/jni/CMakeLists.txt" + } } - signingConfigs { - debug { - storeFile file('debug.keystore') - storePassword 'android' - keyAlias 'androiddebugkey' - keyPassword 'android' - } + def reactAndroidProjectDir = project(':ReactAndroid').projectDir + def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") } - buildTypes { - debug { - signingConfig signingConfigs.debug + def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { + dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") + from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") + into("$buildDir/react-ndk/exported") + } + afterEvaluate { + // If you wish to add a custom TurboModule or component locally, + // you should uncomment this line. + // preBuild.dependsOn("generateCodegenArtifactsFromSchema") + preDebugBuild.dependsOn(packageReactNdkDebugLibs) + preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) + + // Due to a bug inside AGP, we have to explicitly set a dependency + // between configureCMakeDebug* tasks and the preBuild tasks. + // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 + configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) + configureCMakeDebug.dependsOn(preDebugBuild) + reactNativeArchitectures().each { architecture -> + tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { + dependsOn("preDebugBuild") } - release { - // Caution! In production, you need to generate your own keystore file. - // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug - minifyEnabled enableProguardInReleaseBuilds - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { + dependsOn("preReleaseBuild") } + } + } + } + + splits { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture + universalApk false // If true, also generate a universal APK + include(*reactNativeArchitectures()) + } + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } - // applicationVariants are e.g. debug, release - applicationVariants.all { variant -> - variant.outputs.each { output -> - // For each separate APK per architecture, set a unique version code as described here: - // https://developer.android.com/studio/build/configure-apk-splits.html - // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. - def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] - def abi = output.getFilter(OutputFile.ABI) - if (abi != null) { // null for the universal-debug, universal-release variants - output.versionCodeOverride = - defaultConfig.versionCode * 1000 + versionCodes.get(abi) - } + // applicationVariants are e.g. debug, release + applicationVariants.all { variant -> + variant.outputs.each { output -> + // For each separate APK per architecture, set a unique version code as described here: + // https://developer.android.com/studio/build/configure-apk-splits.html + // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. + def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] + def abi = output.getFilter(OutputFile.ABI) + if (abi != null) { // null for the universal-debug, universal-release variants + output.versionCodeOverride = + defaultConfig.versionCode * 1000 + versionCodes.get(abi) + } - } } + } +} + +repositories { + maven { + url "${ARTIFACTORY_3DS_URL}" + } + maven { + url "${KLARNA_DISTRIBUTION_URL}" + } + mavenLocal() } dependencies { - implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation fileTree(dir: "libs", include: ["*.jar"]) - //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:+" // From node_modules + implementation project(':primerioreactnative') - implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" + implementation "io.primer:3ds-android:1.1.2" + implementation "io.primer:ipay88-android:1.0.0" + implementation "io.primer:klarna-android:1.0.1" - debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { - exclude group:'com.facebook.fbjni' - } + //noinspection GradleDynamicVersion + implementation "com.facebook.react:react-native:+" // From node_modules - debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { - exclude group:'com.facebook.flipper' - exclude group:'com.squareup.okhttp3', module:'okhttp' - } + implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" + implementation project(path: ':primerioreactnative') - debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { - exclude group:'com.facebook.flipper' - } + debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { + exclude group: 'com.facebook.fbjni' + } - if (enableHermes) { - //noinspection GradleDynamicVersion - implementation("com.facebook.react:hermes-engine:+") { // From node_modules - exclude group:'com.facebook.fbjni' - } - } else { - implementation jscFlavor + debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { + exclude group: 'com.facebook.flipper' + exclude group: 'com.squareup.okhttp3', module: 'okhttp' + } + + debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { + exclude group: 'com.facebook.flipper' + } + + if (enableHermes) { + //noinspection GradleDynamicVersion + implementation("com.facebook.react:hermes-engine:+") { // From node_modules + exclude group: 'com.facebook.fbjni' } + } else { + implementation jscFlavor + } } if (isNewArchitectureEnabled()) { - // If new architecture is enabled, we let you build RN from source - // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. - // This will be applied to all the imported transtitive dependency. - configurations.all { - resolutionStrategy.dependencySubstitution { - substitute(module("com.facebook.react:react-native")) - .using(project(":ReactAndroid")) - .because("On New Architecture we're building React Native from source") - substitute(module("com.facebook.react:hermes-engine")) - .using(project(":ReactAndroid:hermes-engine")) - .because("On New Architecture we're building Hermes from source") - } + // If new architecture is enabled, we let you build RN from source + // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. + // This will be applied to all the imported transtitive dependency. + configurations.all { + resolutionStrategy.dependencySubstitution { + substitute(module("com.facebook.react:react-native")) + .using(project(":ReactAndroid")) + .because("On New Architecture we're building React Native from source") + substitute(module("com.facebook.react:hermes-engine")) + .using(project(":ReactAndroid:hermes-engine")) + .because("On New Architecture we're building Hermes from source") } + } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { - from configurations.implementation - into 'libs' + from configurations.implementation + into 'libs' } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) def isNewArchitectureEnabled() { - // To opt-in for the New Architecture, you can either: - // - Set `newArchEnabled` to true inside the `gradle.properties` file - // - Invoke gradle with `-newArchEnabled=true` - // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` - return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" + // To opt-in for the New Architecture, you can either: + // - Set `newArchEnabled` to true inside the `gradle.properties` file + // - Invoke gradle with `-newArchEnabled=true` + // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` + return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" } diff --git a/example_0_70_6/android/app/src/debug/AndroidManifest.xml b/example_0_70_6/android/app/src/debug/AndroidManifest.xml index 4b185bc15..575bc0b3c 100644 --- a/example_0_70_6/android/app/src/debug/AndroidManifest.xml +++ b/example_0_70_6/android/app/src/debug/AndroidManifest.xml @@ -1,13 +1,15 @@ + xmlns:tools="http://schemas.android.com/tools"> - + - - - + + + diff --git a/example_0_70_6/android/app/src/main/AndroidManifest.xml b/example_0_70_6/android/app/src/main/AndroidManifest.xml index 7cac78af7..7545b3484 100644 --- a/example_0_70_6/android/app/src/main/AndroidManifest.xml +++ b/example_0_70_6/android/app/src/main/AndroidManifest.xml @@ -1,26 +1,28 @@ - + - + - - - - - - - + android:launchMode="singleTask" + android:windowSoftInputMode="adjustResize"> + + + + + + diff --git a/example_0_70_6/android/app/src/main/java/com/example_0_70_6/MainApplication.java b/example_0_70_6/android/app/src/main/java/com/example_0_70_6/MainApplication.java index 6126c1d14..5b5b48b6c 100644 --- a/example_0_70_6/android/app/src/main/java/com/example_0_70_6/MainApplication.java +++ b/example_0_70_6/android/app/src/main/java/com/example_0_70_6/MainApplication.java @@ -10,6 +10,8 @@ import com.facebook.react.config.ReactFeatureFlags; import com.facebook.soloader.SoLoader; import com.example_0_70_6.newarchitecture.MainApplicationReactNativeHost; +import com.primerioreactnative.ReactNativePackage; + import java.lang.reflect.InvocationTargetException; import java.util.List; @@ -27,7 +29,7 @@ protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: - // packages.add(new MyReactNativePackage()); + packages.add(new ReactNativePackage()); return packages; } diff --git a/example_0_70_6/android/build.gradle b/example_0_70_6/android/build.gradle index 8569fee3a..500c60977 100644 --- a/example_0_70_6/android/build.gradle +++ b/example_0_70_6/android/build.gradle @@ -4,9 +4,8 @@ buildscript { ext { buildToolsVersion = "31.0.0" minSdkVersion = 21 - compileSdkVersion = 31 - targetSdkVersion = 31 - + compileSdkVersion = 32 + targetSdkVersion = 32 if (System.properties['os.arch'] == "aarch64") { // For M1 Users we need to use the NDK 24 which added support for aarch64 ndkVersion = "24.0.8215888" @@ -46,6 +45,5 @@ allprojects { } } google() - maven { url 'https://www.jitpack.io' } } } diff --git a/example_0_70_6/android/gradle.properties b/example_0_70_6/android/gradle.properties index fa4feae5f..d276643c8 100644 --- a/example_0_70_6/android/gradle.properties +++ b/example_0_70_6/android/gradle.properties @@ -38,3 +38,6 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 # to write custom TurboModules/Fabric components OR use libraries that # are providing them. newArchEnabled=false + +ARTIFACTORY_3DS_URL=https://primer.jfrog.io/artifactory/primer-android/ +KLARNA_DISTRIBUTION_URL=https://x.klarnacdn.net/mobile-sdk/ diff --git a/example_0_70_6/android/settings.gradle b/example_0_70_6/android/settings.gradle index cd43571ff..0c4219691 100644 --- a/example_0_70_6/android/settings.gradle +++ b/example_0_70_6/android/settings.gradle @@ -9,3 +9,6 @@ if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") include(":ReactAndroid:hermes-engine") project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') } + +include ':primerioreactnative' +project(':primerioreactnative').projectDir = new File(rootProject.projectDir, '../../android') diff --git a/example_0_70_6/metro.config.js b/example_0_70_6/metro.config.js index d1f468ab0..ce7501431 100644 --- a/example_0_70_6/metro.config.js +++ b/example_0_70_6/metro.config.js @@ -1,9 +1,10 @@ const path = require('path'); -const blacklist = require('metro-config/src/defaults/blacklist'); +const blacklist = require('metro-config/src/defaults/exclusionList'); const escape = require('escape-string-regexp'); const pak = require('../package.json'); const root = path.resolve(__dirname, '..'); +const root1 = path.resolve(__dirname, '../..'); const modules = Object.keys({ ...pak.peerDependencies, diff --git a/example_0_70_6/package.json b/example_0_70_6/package.json index a2e2ba6bb..89afef3c1 100644 --- a/example_0_70_6/package.json +++ b/example_0_70_6/package.json @@ -18,12 +18,14 @@ "clean-run-ios": "yarn clean-install && npx react-native run-ios" }, "dependencies": { + "@react-native-community/cli-platform-android": "^10.0.0", "@react-native-masked-view/masked-view": "^0.2.8", "@react-native-picker/picker": "^2.4.8", "@react-native-segmented-control/segmented-control": "^2.4.0", "@react-navigation/native": "^6.1.1", "@react-navigation/native-stack": "^6.9.6", "axios": "^1.2.1", + "babel-preset-react-native": "^4.0.1", "react": "18.1.0", "react-native": "0.70.6", "react-native-loading-spinner-overlay": "^3.0.1", @@ -33,7 +35,7 @@ }, "devDependencies": { "@babel/core": "^7.12.9", - "@babel/runtime": "^7.12.5", + "@babel/runtime": "^7.20.7", "@react-native-community/eslint-config": "^2.0.0", "@tsconfig/react-native": "^2.0.2", "@types/jest": "^26.0.23", diff --git a/example_0_70_6/yarn.lock b/example_0_70_6/yarn.lock index 97d81ae91..4e3602c71 100644 --- a/example_0_70_6/yarn.lock +++ b/example_0_70_6/yarn.lock @@ -24,38 +24,38 @@ dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.0", "@babel/compat-data@^7.20.1": +"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.5": version "7.20.5" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.5.tgz#86f172690b093373a933223b4745deeb6049e733" integrity sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g== "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.7.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.5.tgz#45e2114dc6cd4ab167f81daf7820e8fa1250d113" - integrity sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.7.tgz#37072f951bd4d28315445f66e0ec9f6ae0c8c35f" + integrity sha512-t1ZjCluspe5DW24bn2Rr1CDb2v9rn/hROtg9a2tmd0+QYf4bsloYfLQzjG4qHPNMhWtKdGC33R5AxGR2Af2cBw== dependencies: "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" - "@babel/helper-compilation-targets" "^7.20.0" - "@babel/helper-module-transforms" "^7.20.2" - "@babel/helpers" "^7.20.5" - "@babel/parser" "^7.20.5" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/generator" "^7.20.7" + "@babel/helper-compilation-targets" "^7.20.7" + "@babel/helper-module-transforms" "^7.20.7" + "@babel/helpers" "^7.20.7" + "@babel/parser" "^7.20.7" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.20.7" + "@babel/types" "^7.20.7" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.1" semver "^6.3.0" -"@babel/generator@^7.14.0", "@babel/generator@^7.20.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.5.tgz#cb25abee3178adf58d6814b68517c62bdbfdda95" - integrity sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA== +"@babel/generator@^7.14.0", "@babel/generator@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.7.tgz#f8ef57c8242665c5929fe2e8d82ba75460187b4a" + integrity sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw== dependencies: - "@babel/types" "^7.20.5" + "@babel/types" "^7.20.7" "@jridgewell/gen-mapping" "^0.3.2" jsesc "^2.5.1" @@ -74,27 +74,28 @@ "@babel/helper-explode-assignable-expression" "^7.18.6" "@babel/types" "^7.18.9" -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" - integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz#a6cd33e93629f5eb473b021aac05df62c4cd09bb" + integrity sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ== dependencies: - "@babel/compat-data" "^7.20.0" + "@babel/compat-data" "^7.20.5" "@babel/helper-validator-option" "^7.18.6" browserslist "^4.21.3" + lru-cache "^5.1.1" semver "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.2": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.5.tgz#327154eedfb12e977baa4ecc72e5806720a85a06" - integrity sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww== +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.7.tgz#d0e1f8d7e4ed5dac0389364d9c0c191d948ade6f" + integrity sha512-LtoWbDXOaidEf50hmdDqn9g8VEzsorMexoWMQdQODbvmqYmaF23pBP5VNPAGIFHsFQCIeKokDiz3CH5Y2jlY6w== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" - "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.20.7" "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-replace-supers" "^7.19.1" + "@babel/helper-replace-supers" "^7.20.7" "@babel/helper-split-export-declaration" "^7.18.6" "@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.20.5": @@ -144,12 +145,12 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-member-expression-to-functions@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" - integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== +"@babel/helper-member-expression-to-functions@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.20.7.tgz#a6f26e919582275a93c3aa6594756d71b0bb7f05" + integrity sha512-9J0CxJLq315fEdi4s7xK5TQaNYjZw+nDVpVqr1axNGKzdrdwYBD5b4uKv3n75aABG0rCCTK8Im8Ww7eYfMrZgw== dependencies: - "@babel/types" "^7.18.9" + "@babel/types" "^7.20.7" "@babel/helper-module-imports@^7.18.6": version "7.18.6" @@ -158,19 +159,19 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.19.6", "@babel/helper-module-transforms@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz#ac53da669501edd37e658602a21ba14c08748712" - integrity sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA== +"@babel/helper-module-transforms@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.20.7.tgz#7a6c9a1155bef55e914af574153069c9d9470c43" + integrity sha512-FNdu7r67fqMUSVuQpFQGE6BPdhJIhitoxhGzDbAXNcA07uoVG37fOiMk3OSV8rEICuyG6t8LGkd9EE64qIEoIA== dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-module-imports" "^7.18.6" "@babel/helper-simple-access" "^7.20.2" "@babel/helper-split-export-declaration" "^7.18.6" "@babel/helper-validator-identifier" "^7.19.1" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.1" - "@babel/types" "^7.20.2" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.20.7" + "@babel/types" "^7.20.7" "@babel/helper-optimise-call-expression@^7.18.6": version "7.18.6" @@ -184,7 +185,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629" integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ== -"@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": +"@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== @@ -194,25 +195,26 @@ "@babel/helper-wrap-function" "^7.18.9" "@babel/types" "^7.18.9" -"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz#e1592a9b4b368aa6bdb8784a711e0bcbf0612b78" - integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== +"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz#243ecd2724d2071532b2c8ad2f0f9f083bcae331" + integrity sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A== dependencies: "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.20.7" "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/traverse" "^7.19.1" - "@babel/types" "^7.19.0" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.20.7" + "@babel/types" "^7.20.7" -"@babel/helper-simple-access@^7.19.4", "@babel/helper-simple-access@^7.20.2": +"@babel/helper-simple-access@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== dependencies: "@babel/types" "^7.20.2" -"@babel/helper-skip-transparent-expression-wrappers@^7.18.9": +"@babel/helper-skip-transparent-expression-wrappers@^7.20.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== @@ -251,14 +253,14 @@ "@babel/traverse" "^7.20.5" "@babel/types" "^7.20.5" -"@babel/helpers@^7.20.5": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.6.tgz#e64778046b70e04779dfbdf924e7ebb45992c763" - integrity sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w== +"@babel/helpers@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.7.tgz#04502ff0feecc9f20ecfaad120a18f011a8e6dce" + integrity sha512-PBPjs5BppzsGaxHQCDKnZ6Gd9s6xl8bBCluz3vEInLGRJmnZan4F6BYCeqtyXqkk4W5IlPmjK4JlOuZkpJ3xZA== dependencies: - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.20.7" + "@babel/types" "^7.20.7" "@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": version "7.18.6" @@ -269,18 +271,18 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.20.5", "@babel/parser@^7.7.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.5.tgz#7f3c7335fe417665d929f34ae5dceae4c04015e8" - integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA== +"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.7.0": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b" + integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg== "@babel/plugin-proposal-async-generator-functions@^7.0.0": - version "7.20.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz#352f02baa5d69f4e7529bdac39aaa02d41146af9" - integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz#bfb7276d2d573cb67ba379984a2334e262ba5326" + integrity sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA== dependencies: "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-plugin-utils" "^7.20.2" "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" @@ -309,15 +311,15 @@ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" "@babel/plugin-proposal-object-rest-spread@^7.0.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz#a556f59d555f06961df1e572bb5eca864c84022d" - integrity sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz#aa662940ef425779c75534a5c41e9d936edc390a" + integrity sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg== dependencies: - "@babel/compat-data" "^7.20.1" - "@babel/helper-compilation-targets" "^7.20.0" + "@babel/compat-data" "^7.20.5" + "@babel/helper-compilation-targets" "^7.20.7" "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.20.1" + "@babel/plugin-transform-parameters" "^7.20.7" "@babel/plugin-proposal-optional-catch-binding@^7.0.0": version "7.18.6" @@ -328,12 +330,12 @@ "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" - integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.20.7.tgz#49f2b372519ab31728cc14115bb0998b15bfda55" + integrity sha512-T+A7b1kfjtRM51ssoOfS1+wbyCVqorfyZhT99TvxxLMirPShD8CzKMRepMlCBGM5RpHMbn8s+5MMHnPstJH6mQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-async-generators@^7.8.4": @@ -456,20 +458,20 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-arrow-functions@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" - integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz#bea332b0e8b2dab3dafe55a163d8227531ab0551" + integrity sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-transform-async-to-generator@^7.0.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" - integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz#dfee18623c8cb31deb796aa3ca84dda9cea94354" + integrity sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q== dependencies: "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-remap-async-to-generator" "^7.18.6" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-transform-block-scoped-functions@^7.0.0": version "7.18.6" @@ -479,38 +481,39 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-block-scoping@^7.0.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.5.tgz#401215f9dc13dc5262940e2e527c9536b3d7f237" - integrity sha512-WvpEIW9Cbj9ApF3yJCjIEEf1EiNJLtXagOrL5LNWEZOo3jv8pmPoYTSNJQvqej8OavVlgOoOPw6/htGZro6IkA== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.7.tgz#5cc9cc3f3976de7f632d3f20eab3abee299ed36e" + integrity sha512-C1njwSKnumUgtgc4j1LAWR48PkfwfHHRd8bWyolSCLShKnqA52VX1+B+GZhJteQlwZeSqYddCQh9Str816Jxtw== dependencies: "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-transform-classes@^7.0.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz#c0033cf1916ccf78202d04be4281d161f6709bb2" - integrity sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.7.tgz#f438216f094f6bb31dc266ebfab8ff05aecad073" + integrity sha512-LWYbsiXTPKl+oBlXUGlwNlJZetXD5Am+CyBdqhPsDVjM9Jc8jwBJFrKhHf900Kfk2eZG1y9MAG3UNajol7A4VQ== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-compilation-targets" "^7.20.0" + "@babel/helper-compilation-targets" "^7.20.7" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" "@babel/helper-optimise-call-expression" "^7.18.6" "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-replace-supers" "^7.19.1" + "@babel/helper-replace-supers" "^7.20.7" "@babel/helper-split-export-declaration" "^7.18.6" globals "^11.1.0" "@babel/plugin-transform-computed-properties@^7.0.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" - integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz#704cc2fd155d1c996551db8276d55b9d46e4d0aa" + integrity sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/template" "^7.20.7" "@babel/plugin-transform-destructuring@^7.0.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz#c23741cfa44ddd35f5e53896e88c75331b8b2792" - integrity sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.7.tgz#8bda578f71620c7de7c93af590154ba331415454" + integrity sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA== dependencies: "@babel/helper-plugin-utils" "^7.20.2" @@ -561,13 +564,13 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8": - version "7.19.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" - integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.20.7.tgz#abb5f84695e74d46acf48244082f6cbf8bb23120" + integrity sha512-76jqqFiFdCD+RJwEdtBHUG2/rEKQAmpejPbAKyQECEE3/y4U5CMPc9IXvipS990vgQhzq+ZRw6WJ+q4xJ/P24w== dependencies: - "@babel/helper-module-transforms" "^7.19.6" - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-simple-access" "^7.19.4" + "@babel/helper-module-transforms" "^7.20.7" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-simple-access" "^7.20.2" "@babel/plugin-transform-named-capturing-groups-regex@^7.0.0": version "7.20.5" @@ -585,10 +588,10 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-replace-supers" "^7.18.6" -"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.20.1": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.5.tgz#f8f9186c681d10c3de7620c916156d893c8a019e" - integrity sha512-h7plkOmcndIUWXZFLgpbrh2+fXAi47zcUX7IrOQuZdLD0I0KvjJ6cvo3BEcAOsDOcZhVKGJqv07mkSqK0y2isQ== +"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.7.tgz#0ee349e9d1bc96e78e3b37a7af423a4078a7083f" + integrity sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA== dependencies: "@babel/helper-plugin-utils" "^7.20.2" @@ -621,15 +624,15 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-react-jsx@^7.0.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" - integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.7.tgz#025d85a1935fd7e19dfdcb1b1d4df34d4da484f7" + integrity sha512-Tfq7qqD+tRj3EoDhY00nn2uP2hsRxgYGi5mLQ5TimKav0a9Lrpd4deE+fcLXU8zFYRjlKPHZhpCvfEA6qnBxqQ== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-jsx" "^7.18.6" - "@babel/types" "^7.19.0" + "@babel/types" "^7.20.7" "@babel/plugin-transform-runtime@^7.0.0": version "7.19.6" @@ -651,12 +654,12 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-spread@^7.0.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" - integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz#c2d83e0b99d3bf83e07b11995ee24bf7ca09401e" + integrity sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw== dependencies: - "@babel/helper-plugin-utils" "^7.19.0" - "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" "@babel/plugin-transform-sticky-regex@^7.0.0": version "7.18.6" @@ -673,11 +676,11 @@ "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.2.tgz#91515527b376fc122ba83b13d70b01af8fe98f3f" - integrity sha512-jvS+ngBfrnTUBfOQq8NfGnSbF9BrqlR6hjJ2yVxMkmO5nL/cdifNbI30EfjRlN4g5wYWNnMPyj5Sa6R1pbLeag== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.7.tgz#673f49499cd810ae32a1ea5f3f8fab370987e055" + integrity sha512-m3wVKEvf6SoszD8pu4NZz3PvfKRCMgk6D6d0Qi9hNnlM5M6CFS92EgF4EiHVLKbU0r/r7ty1hg7NPZwE7WRbYw== dependencies: - "@babel/helper-create-class-features-plugin" "^7.20.2" + "@babel/helper-create-class-features-plugin" "^7.20.7" "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-typescript" "^7.20.0" @@ -718,42 +721,42 @@ pirates "^4.0.5" source-map-support "^0.5.16" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.6.tgz#facf4879bfed9b5326326273a64220f099b0fce3" - integrity sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA== +"@babel/runtime@^7.0.0", "@babel/runtime@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.7.tgz#fcb41a5a70550e04a7b708037c7c32f7f356d8fd" + integrity sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ== dependencies: regenerator-runtime "^0.13.11" -"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" - integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== +"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" + integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== dependencies: "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.18.10" - "@babel/types" "^7.18.10" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" -"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.20.1", "@babel/traverse@^7.20.5", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.5.tgz#78eb244bea8270fdda1ef9af22a5d5e5b7e57133" - integrity sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ== +"@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.7.tgz#114f992fa989a390896ea72db5220780edab509c" + integrity sha512-xueOL5+ZKX2dJbg8z8o4f4uTRTqGDRjilva9D1hiRlayJbTY8jBRL+Ph67IeRTIE439/VifHk+Z4g0SwRtQE0A== dependencies: "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" + "@babel/generator" "^7.20.7" "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-function-name" "^7.19.0" "@babel/helper-hoist-variables" "^7.18.6" "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.5.tgz#e206ae370b5393d94dfd1d04cd687cace53efa84" - integrity sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg== +"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.0": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f" + integrity sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg== dependencies: "@babel/helper-string-parser" "^7.19.4" "@babel/helper-validator-identifier" "^7.19.1" @@ -1153,6 +1156,17 @@ logkitty "^0.7.1" slash "^3.0.0" +"@react-native-community/cli-platform-android@^10.0.0": + version "10.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-10.0.0.tgz#9894a0b54de94da4d01f3b9db4e6b51ba112fa72" + integrity sha512-wUXq+//PagXVjG6ZedO+zIbNPkCsAiP+uiE45llFTsCtI6vFBwa6oJFHH6fhfeib4mOd7DvIh2Kktrpgyb6nBg== + dependencies: + "@react-native-community/cli-tools" "^10.0.0" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + logkitty "^0.7.1" + "@react-native-community/cli-platform-ios@9.3.0", "@react-native-community/cli-platform-ios@^9.3.0": version "9.3.0" resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.3.0.tgz#45abde2a395fddd7cf71e8b746c1dc1ee2260f9a" @@ -1195,6 +1209,21 @@ serve-static "^1.13.1" ws "^7.5.1" +"@react-native-community/cli-tools@^10.0.0": + version "10.0.0" + resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-10.0.0.tgz#51ec1775f699951837091cf84dc765e290377a53" + integrity sha512-cPUaOrahRcMJvJpBaoc/zpYPHoPqj91qV5KmvA9cJvKktY4rl/PFfUi1A0gTqqFhdH7qW1zkeyKo80lWq7NvxA== + dependencies: + appdirsjs "^1.2.4" + chalk "^4.1.2" + find-up "^5.0.0" + mime "^2.4.1" + node-fetch "^2.6.0" + open "^6.2.0" + ora "^5.4.1" + semver "^6.3.0" + shell-quote "^1.7.3" + "@react-native-community/cli-tools@^9.2.1": version "9.2.1" resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz#c332324b1ea99f9efdc3643649bce968aa98191c" @@ -1780,6 +1809,11 @@ ansi-fragments@^0.2.1: slice-ansi "^2.0.0" strip-ansi "^5.0.0" +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA== + ansi-regex@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" @@ -1790,6 +1824,11 @@ ansi-regex@^5.0.0, ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA== + ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -1945,6 +1984,15 @@ axios@^1.2.1: form-data "^4.0.0" proxy-from-env "^1.1.0" +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + integrity sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g== + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" @@ -1962,6 +2010,100 @@ babel-eslint@^10.1.0: eslint-visitor-keys "^1.0.0" resolve "^1.12.0" +babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" + integrity sha512-gCtfYORSG1fUMX4kKraymq607FWgMWg+j42IFPc18kFQEsmtaibP4UrqsXt8FlEJle25HUd4tsoDR7H2wDhe9Q== + dependencies: + babel-helper-explode-assignable-expression "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-builder-react-jsx@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" + integrity sha512-02I9jDjnVEuGy2BR3LRm9nPRb/+Ja0pvZVLr1eI5TYAA/dB0Xoc+WBo50+aDfhGDLhlBY1+QURjn9uvcFd8gzg== + dependencies: + babel-runtime "^6.26.0" + babel-types "^6.26.0" + esutils "^2.0.2" + +babel-helper-call-delegate@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" + integrity sha512-RL8n2NiEj+kKztlrVJM9JT1cXzzAdvWFh76xh/H1I4nKwunzE4INBXn8ieCZ+wh4zWszZk7NBS1s/8HR5jDkzQ== + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-define-map@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" + integrity sha512-bHkmjcC9lM1kmZcVpA5t2om2nzT/xiZpo6TJq7UlZ3wqKfzia4veeXbIhKvJXAMzhhEBd3cR1IElL5AenWEUpA== + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-helper-explode-assignable-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" + integrity sha512-qe5csbhbvq6ccry9G7tkXbzNtcDiH4r51rrPUbwwoTzZ18AqxWYRZT6AOmxrpxKnQBW0pYlBI/8vh73Z//78nQ== + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" + integrity sha512-Oo6+e2iX+o9eVvJ9Y5eKL5iryeRdsIkwRYheCuhYdVHsdEQysbc2z2QkqCLIYnNxkT5Ss3ggrHdXiDI7Dhrn4Q== + dependencies: + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-get-function-arity@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" + integrity sha512-WfgKFX6swFB1jS2vo+DwivRN4NB8XUdM3ij0Y1gnC21y1tdBoe6xjVnd7NSI6alv+gZXCtJqvrTeMW3fR/c0ng== + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-hoist-variables@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" + integrity sha512-zAYl3tqerLItvG5cKYw7f1SpvIxS9zi7ohyGHaI9cgDUjAT6YcY9jIEH5CstetP5wHIVSceXwNS7Z5BpJg+rOw== + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + integrity sha512-Op9IhEaxhbRT8MDXx2iNuMgciu2V8lDvYCNQbDGjdBNCjaMvyLf4wl4A3b8IgndCyQF8TwfgsQ8T3VD8aX1/pA== + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + integrity sha512-sLI+u7sXJh6+ToqDr57Bv973kCepItDhMou0xCP2YPVmR1jkHSCY+p1no8xErbV1Siz5QE8qKT1WIwybSWlqjw== + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babel-jest@^26.6.3: version "26.6.3" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" @@ -1976,6 +2118,20 @@ babel-jest@^26.6.3: graceful-fs "^4.2.4" slash "^3.0.0" +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + integrity sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-check-es2015-constants@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + integrity sha512-B1M5KBP29248dViEo1owyY32lk1ZSH2DaNNrXLGt8lyjjHm7pBqAdQ7VKUPR6EEDO323+OvT3MQXbCin8ooWdA== + dependencies: + babel-runtime "^6.22.0" + babel-plugin-istanbul@^6.0.0: version "6.1.1" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" @@ -2021,11 +2177,254 @@ babel-plugin-polyfill-regenerator@^0.4.1: dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" +babel-plugin-react-transform@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-react-transform/-/babel-plugin-react-transform-3.0.0.tgz#402f25137b7bb66e9b54ead75557dfbc7ecaaa74" + integrity sha512-4vJGddwPiHAOgshzZdGwYy4zRjjIr5SMY7gkOaCyIASjgpcsyLTlZNuB5rHOFoaTvGlhfo8/g4pobXPyHqm/3w== + dependencies: + lodash "^4.6.1" + +babel-plugin-syntax-async-functions@^6.5.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" + integrity sha512-4Zp4unmHgw30A1eWI5EpACji2qMocisdXhAftfhXoSV9j0Tvj6nRFE3tOmRY912E0FMRm/L5xWE7MGVT2FoLnw== + +babel-plugin-syntax-class-properties@^6.5.0, babel-plugin-syntax-class-properties@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" + integrity sha512-chI3Rt9T1AbrQD1s+vxw3KcwC9yHtF621/MacuItITfZX344uhQoANjpoSJZleAmW2tjlolqB/f+h7jIqXa7pA== + +babel-plugin-syntax-dynamic-import@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" + integrity sha512-MioUE+LfjCEz65Wf7Z/Rm4XCP5k2c+TbMd2Z2JKc7U9uwjBhAfNPE48KC4GTGKhppMeYVepwDBNO/nGY6NYHBA== + +babel-plugin-syntax-exponentiation-operator@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" + integrity sha512-Z/flU+T9ta0aIEKl1tGEmN/pZiI1uXmCiGFRegKacQfEJzp7iNsKloZmyJlQr+75FCJtiFfGIK03SiCvCt9cPQ== + +babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.5.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" + integrity sha512-HbTDIoG1A1op7Tl/wIFQPULIBA61tsJ8Ntq2FAhLwuijrzosM/92kAfgU1Q3Kc7DH/cprJg5vDfuTY4QUL4rDA== + +babel-plugin-syntax-jsx@^6.5.0, babel-plugin-syntax-jsx@^6.8.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" + integrity sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw== + +babel-plugin-syntax-object-rest-spread@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + integrity sha512-C4Aq+GaAj83pRQ0EFgTvw5YO6T3Qz2KGrNRwIj9mSoNHVvdZY4KO2uA6HNtNXCw993iSZnckY1aLW8nOi8i4+w== + +babel-plugin-syntax-trailing-function-commas@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" + integrity sha512-Gx9CH3Q/3GKbhs07Bszw5fPTlU+ygrOGfAhEt7W2JICwufpC4SuO0mG0+4NykPBSYPMJhqvVlDBU17qB1D+hMQ== + babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: version "7.0.0-beta.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== +babel-plugin-transform-class-properties@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" + integrity sha512-n4jtBA3OYBdvG5PRMKsMXJXHfLYw/ZOmtxCLOOwz6Ro5XlrColkStLnz1AS1L2yfPA9BKJ1ZNlmVCLjAL9DSIg== + dependencies: + babel-helper-function-name "^6.24.1" + babel-plugin-syntax-class-properties "^6.8.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-arrow-functions@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + integrity sha512-PCqwwzODXW7JMrzu+yZIaYbPQSKjDTAsNNlK2l5Gg9g4rz2VzLnZsStvp/3c46GfXpwkyufb3NCyG9+50FF1Vg== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.5.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" + integrity sha512-YiN6sFAQ5lML8JjCmr7uerS5Yc/EMbgg9G8ZNmk2E3nYX4ckHR01wrkeeMijEf5WHNK5TW0Sl0Uu3pv3EdOJWw== + dependencies: + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-plugin-transform-es2015-classes@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + integrity sha512-5Dy7ZbRinGrNtmWpquZKZ3EGY8sDgIVB4CU8Om8q8tnMLrD/m94cKglVcHps0BCTdZ0TJeeAWOq2TK9MIY6cag== + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-computed-properties@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" + integrity sha512-C/uAv4ktFP/Hmh01gMTvYvICrKze0XVX9f2PdIXuriCSvUmV9j+u+BB9f5fJK3+878yMK6dkdcq+Ymr9mrcLzw== + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-destructuring@^6.5.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" + integrity sha512-aNv/GDAW0j/f4Uy1OEPZn1mqD+Nfy9viFGBfQ5bZyT35YqOiqx7/tXdyfZkJ1sC21NyEsBdfDY6PYmLHF4r5iA== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-for-of@^6.5.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + integrity sha512-DLuRwoygCoXx+YfxHLkVx5/NpeSbVwfoTeBykpJK7JhYWlL/O8hgAK/reforUnZDlxasOrVPPJVI/guE3dCwkw== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" + integrity sha512-iFp5KIcorf11iBqu/y/a7DK3MN5di3pNCzto61FqCNnUX4qeBwcV1SLqe10oXNnCaxBUImX3SckX2/o1nsrTcg== + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-literals@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + integrity sha512-tjFl0cwMPpDYyoqYA9li1/7mGFit39XiNX5DKC/uCNjBctMxyL1/PT/l4rSlbvBG1pOKI88STRdUsWXB3/Q9hQ== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-commonjs@^6.5.0: + version "6.26.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" + integrity sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q== + dependencies: + babel-plugin-transform-strict-mode "^6.24.1" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-types "^6.26.0" + +babel-plugin-transform-es2015-parameters@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" + integrity sha512-8HxlW+BB5HqniD+nLkQ4xSAVq3bR/pcYW9IigY+2y0dI+Y7INFeTbfAQr+63T3E4UDsZGjyb+l9txUnABWxlOQ== + dependencies: + babel-helper-call-delegate "^6.24.1" + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-shorthand-properties@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" + integrity sha512-mDdocSfUVm1/7Jw/FIRNw9vPrBQNePy6wZJlR8HAUBLybNp1w/6lr6zZ2pjMShee65t/ybR5pT8ulkLzD1xwiw== + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-spread@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" + integrity sha512-3Ghhi26r4l3d0Js933E5+IhHwk0A1yiutj9gwvzmFbVV0sPMYk2lekhOufHBswX7NCoSeF4Xrl3sCIuSIa+zOg== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-template-literals@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + integrity sha512-x8b9W0ngnKzDMHimVtTfn5ryimars1ByTqsfBDwAqLibmuuQY6pgBQi5z1ErIsUOWBdw1bW9FSz5RZUojM4apg== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-exponentiation-operator@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" + integrity sha512-LzXDmbMkklvNhprr20//RStKVcT8Cu+SQtX18eMHLhjHf2yFzwtQ0S2f0jQ+89rokoNdmwoSqYzAhq86FxlLSQ== + dependencies: + babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" + babel-plugin-syntax-exponentiation-operator "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-flow-strip-types@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" + integrity sha512-TxIM0ZWNw9oYsoTthL3lvAK3+eTujzktoXJg4ubGvICGbVuXVYv5hHv0XXpz8fbqlJaGYY4q5SVzaSmsg3t4Fg== + dependencies: + babel-plugin-syntax-flow "^6.18.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-object-assign@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-assign/-/babel-plugin-transform-object-assign-6.22.0.tgz#f99d2f66f1a0b0d498e346c5359684740caa20ba" + integrity sha512-N6Pddn/0vgLjnGr+mS7ttlFkQthqcnINE9EMOxB0CF8F4t6kuJXz6NUeLfSoRbLmkGh0mgDs9i2isdaZj0Ghtg== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-object-rest-spread@^6.5.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" + integrity sha512-ocgA9VJvyxwt+qJB0ncxV8kb/CjfTcECUY4tQ5VT7nP6Aohzobm8CDFaQ5FHdvZQzLmf0sgDxB8iRXZXxwZcyA== + dependencies: + babel-plugin-syntax-object-rest-spread "^6.8.0" + babel-runtime "^6.26.0" + +babel-plugin-transform-react-display-name@^6.5.0: + version "6.25.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" + integrity sha512-QLYkLiZeeED2PKd4LuXGg5y9fCgPB5ohF8olWUuETE2ryHNRqqnXlEVP7RPuef89+HTfd3syptMGVHeoAu0Wig== + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-react-jsx-source@^6.5.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" + integrity sha512-pcDNDsZ9q/6LJmujQ/OhjeoIlp5Nl546HJ2yiFIJK3mYpgNXhI5/S9mXfVxu5yqWAi7HdI7e/q6a9xtzwL69Vw== + dependencies: + babel-plugin-syntax-jsx "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-react-jsx@^6.5.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" + integrity sha512-s+q/Y2u2OgDPHRuod3t6zyLoV8pUHc64i/O7ZNgIOEdYTq+ChPeybcKBi/xk9VI60VriILzFPW+dUxAEbTxh2w== + dependencies: + babel-helper-builder-react-jsx "^6.24.1" + babel-plugin-syntax-jsx "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-regenerator@^6.5.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" + integrity sha512-LS+dBkUGlNR15/5WHKe/8Neawx663qttS6AGqoOUhICc9d1KciBvtrQSuc0PI+CxQ2Q/S1aKuJ+u64GtLdcEZg== + dependencies: + regenerator-transform "^0.10.0" + +babel-plugin-transform-strict-mode@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" + integrity sha512-j3KtSpjyLSJxNoCDrhwiJad8kw0gJ9REGj8/CqL0HeRyLnvUNYV9zcqluL6QJSXh3nfsLEmSLvwRfGzrgR96Pw== + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + babel-preset-current-node-syntax@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" @@ -2085,6 +2484,93 @@ babel-preset-jest@^26.6.2: babel-plugin-jest-hoist "^26.6.2" babel-preset-current-node-syntax "^1.0.0" +babel-preset-react-native@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/babel-preset-react-native/-/babel-preset-react-native-4.0.1.tgz#14ff07bdb6c8df9408082c0c18b2ce8e3392e76a" + integrity sha512-uhFXnl1WbEWNG4W8QB/jeQaVXkd0a0AD+wh4D2VqtdRnEyvscahqyHExnwKLU9N0sXRYwDyed4JfbiBtiOSGgA== + dependencies: + babel-plugin-check-es2015-constants "^6.5.0" + babel-plugin-react-transform "^3.0.0" + babel-plugin-syntax-async-functions "^6.5.0" + babel-plugin-syntax-class-properties "^6.5.0" + babel-plugin-syntax-dynamic-import "^6.18.0" + babel-plugin-syntax-flow "^6.5.0" + babel-plugin-syntax-jsx "^6.5.0" + babel-plugin-syntax-trailing-function-commas "^6.5.0" + babel-plugin-transform-class-properties "^6.5.0" + babel-plugin-transform-es2015-arrow-functions "^6.5.0" + babel-plugin-transform-es2015-block-scoping "^6.5.0" + babel-plugin-transform-es2015-classes "^6.5.0" + babel-plugin-transform-es2015-computed-properties "^6.5.0" + babel-plugin-transform-es2015-destructuring "^6.5.0" + babel-plugin-transform-es2015-for-of "^6.5.0" + babel-plugin-transform-es2015-function-name "^6.5.0" + babel-plugin-transform-es2015-literals "^6.5.0" + babel-plugin-transform-es2015-modules-commonjs "^6.5.0" + babel-plugin-transform-es2015-parameters "^6.5.0" + babel-plugin-transform-es2015-shorthand-properties "^6.5.0" + babel-plugin-transform-es2015-spread "^6.5.0" + babel-plugin-transform-es2015-template-literals "^6.5.0" + babel-plugin-transform-exponentiation-operator "^6.5.0" + babel-plugin-transform-flow-strip-types "^6.5.0" + babel-plugin-transform-object-assign "^6.5.0" + babel-plugin-transform-object-rest-spread "^6.5.0" + babel-plugin-transform-react-display-name "^6.5.0" + babel-plugin-transform-react-jsx "^6.5.0" + babel-plugin-transform-react-jsx-source "^6.5.0" + babel-plugin-transform-regenerator "^6.5.0" + babel-template "^6.24.1" + react-transform-hmr "^1.0.4" + +babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g== + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + integrity sha512-PCOcLFW7/eazGUKIoqH97sO9A2UYMahsn/yRQ7uOk37iutwjq7ODtcTNF+iFDSHNfkctqsLRjLP7URnOx0T1fg== + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.24.1, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + integrity sha512-iSxeXx7apsjCHe9c7n8VtRXGzI2Bk1rBSOJgCCjfyXb6v1aCqE1KSEpq/8SXuVN8Ka/Rh1WDTF0MDzkvTA4MIA== + dependencies: + babel-code-frame "^6.26.0" + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + debug "^2.6.8" + globals "^9.18.0" + invariant "^2.2.2" + lodash "^4.17.4" + +babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + integrity sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g== + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -2257,6 +2743,17 @@ capture-exit@^2.0.0: dependencies: rsvp "^4.8.4" +chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A== + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -2470,6 +2967,11 @@ core-js-compat@^3.25.1: dependencies: browserslist "^4.21.4" +core-js@^2.4.0: + version "2.6.12" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" + integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== + core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" @@ -2541,7 +3043,7 @@ dayjs@^1.8.15: resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.7.tgz#4b296922642f70999544d1144a2c25730fce63e2" integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ== -debug@2.6.9, debug@^2.2.0, debug@^2.3.3: +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -2673,6 +3175,11 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" +dom-walk@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84" + integrity sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w== + domexception@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" @@ -2803,7 +3310,7 @@ escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== -escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== @@ -3441,6 +3948,14 @@ glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" +global@^4.3.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/global/-/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406" + integrity sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w== + dependencies: + min-document "^2.19.0" + process "^0.11.10" + globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -3453,6 +3968,11 @@ globals@^13.6.0, globals@^13.9.0: dependencies: type-fest "^0.20.2" +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== + globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -3482,6 +4002,13 @@ growly@^1.3.0: resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg== + dependencies: + ansi-regex "^2.0.0" + has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" @@ -3706,7 +4233,7 @@ internal-slot@^1.0.3: has "^1.0.3" side-channel "^1.0.4" -invariant@^2.2.4: +invariant@^2.2.2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -4475,6 +5002,11 @@ joi@^17.2.1: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + integrity sha512-RjTcuD4xjtthQkaWH7dFlH85L+QaVtSoOyGdZ3g6HFhS9dFNDfLyqgm2NFe2X6cQpeFmt0452FJjFG5UameExg== + js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" @@ -4712,7 +5244,7 @@ lodash.truncate@^4.4.2: resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== -lodash@^4.17.10, lodash@^4.17.15, lodash@^4.7.0: +lodash@^4.17.10, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.6.1, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -4741,6 +5273,13 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + lru-cache@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" @@ -5121,6 +5660,13 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +min-document@^2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685" + integrity sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ== + dependencies: + dom-walk "^0.1.0" + minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -5670,11 +6216,21 @@ pretty-format@^26.0.0, pretty-format@^26.5.2, pretty-format@^26.6.2: ansi-styles "^4.0.0" react-is "^17.0.1" +private@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== +process@^0.11.10: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== + progress@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" @@ -5752,6 +6308,11 @@ range-parser@~1.2.1: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== +react-deep-force-update@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.1.2.tgz#3d2ae45c2c9040cbb1772be52f8ea1ade6ca2ee1" + integrity sha512-WUSQJ4P/wWcusaH+zZmbECOk7H5N2pOIl0vzheeornkIMhu+qrNdGFm0bDZLCb0hSF0jf/kH1SgkNGfBdTc4wA== + react-devtools-core@4.24.0: version "4.24.0" resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.24.0.tgz#7daa196bdc64f3626b3f54f2ff2b96f7c4fdf017" @@ -5858,6 +6419,14 @@ react-native@0.70.6: whatwg-fetch "^3.0.0" ws "^6.1.4" +react-proxy@^1.1.7: + version "1.1.8" + resolved "https://registry.yarnpkg.com/react-proxy/-/react-proxy-1.1.8.tgz#9dbfd9d927528c3aa9f444e4558c37830ab8c26a" + integrity sha512-46GkBpZD97R/vV+iw+u6aFACzIHOst9gCl41d5K5vepPBz2i2gqHmXQJWKXsrUsSOdylKahN3sd9taswFN8Wzw== + dependencies: + lodash "^4.6.1" + react-deep-force-update "^1.0.0" + react-refresh@^0.4.0: version "0.4.3" resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.3.tgz#966f1750c191672e76e16c2efa569150cc73ab53" @@ -5880,6 +6449,14 @@ react-test-renderer@18.1.0: react-shallow-renderer "^16.15.0" scheduler "^0.22.0" +react-transform-hmr@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/react-transform-hmr/-/react-transform-hmr-1.0.4.tgz#e1a40bd0aaefc72e8dfd7a7cda09af85066397bb" + integrity sha512-8bK1DWUZynE6swD2jNPbzO5mvhB8fs9Ub5GksoVqYkc9i06FdSLC36qQYjaKOW79KBdsROq2cK0tRKITiEzmyg== + dependencies: + global "^4.3.0" + react-proxy "^1.1.7" + react@18.1.0: version "18.1.0" resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890" @@ -5955,11 +6532,25 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2: version "0.13.11" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== +regenerator-transform@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" + integrity sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q== + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -6573,6 +7164,13 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" +strip-ansi@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== + dependencies: + ansi-regex "^2.0.0" + strip-ansi@^5.0.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" @@ -6612,6 +7210,11 @@ sudo-prompt@^9.0.0: resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g== + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -6717,6 +7320,11 @@ tmpl@1.0.5: resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + integrity sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og== + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" @@ -7200,6 +7808,11 @@ y18n@^4.0.0: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + yallist@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" From ae2000bb0f4d3db768c58d990aedd2529af5aadd Mon Sep 17 00:00:00 2001 From: Semir Date: Tue, 3 Jan 2023 12:08:48 +0100 Subject: [PATCH 051/121] Updated version --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 6130f0009..e36db0934 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -136,5 +136,5 @@ dependencies { api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3" - implementation 'io.primer:android:2.16.0' + implementation 'io.primer:android:2.20.0-rc1-SNAPSHOT' } From 2fbca826b9cb0e56a55dc16d370b1c84ce295602 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 22 Dec 2022 18:46:52 +0200 Subject: [PATCH 052/121] Add entitlements --- example_0_70_6/ios/Podfile.lock | 6 +++--- .../ios/example_0_70_6.xcodeproj/project.pbxproj | 6 ++++++ .../xcshareddata/xcschemes/example_0_70_6.xcscheme | 10 ++++++++++ .../ios/example_0_70_6/example_0_70_6.entitlements | 11 +++++++++++ 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 example_0_70_6/ios/example_0_70_6/example_0_70_6.entitlements diff --git a/example_0_70_6/ios/Podfile.lock b/example_0_70_6/ios/Podfile.lock index 3abb86043..f2e59e5a6 100644 --- a/example_0_70_6/ios/Podfile.lock +++ b/example_0_70_6/ios/Podfile.lock @@ -14,7 +14,7 @@ PODS: - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.20.0-rc.2): + - primer-io-react-native (2.16.0): - PrimerSDK (= 2.20.0-rc.2) - React-Core - Primer3DS (1.0.3) @@ -463,7 +463,7 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: e1ebfb1569f001410cdcf12ad24fc8bb0393bafa + primer-io-react-native: 21adf53714dd0bda11fd9685060e8c32bf344512 Primer3DS: 895ab3a53731c87dfba26f30b70f59fcd590f94f PrimerIPay88SDK: 4fe240e69c62bdb0aa56a81a9596538554fb435f PrimerKlarnaSDK: a58cb321e0144cd473a250cfdcf5955c96b846c1 @@ -501,6 +501,6 @@ SPEC CHECKSUMS: RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc -PODFILE CHECKSUM: 3a1567f9a6cce8ff8dbc4ab06ab2812e691d1025 +PODFILE CHECKSUM: 335fd5601007219eb1e64a3fc08eb48c6d964f40 COCOAPODS: 1.11.3 diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj index 427a59f32..94b5fe219 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj @@ -38,6 +38,7 @@ 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example_0_70_6/main.m; sourceTree = ""; }; 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example_0_70_6/LaunchScreen.storyboard; sourceTree = ""; }; + 848652F22954A52C0071549C /* example_0_70_6.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = example_0_70_6.entitlements; path = example_0_70_6/example_0_70_6.entitlements; sourceTree = ""; }; B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; @@ -86,6 +87,7 @@ 13B07FAE1A68108700A75B9A /* example_0_70_6 */ = { isa = PBXGroup; children = ( + 848652F22954A52C0071549C /* example_0_70_6.entitlements */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 13B07FB51A68108700A75B9A /* Images.xcassets */, @@ -485,7 +487,9 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N8UN9TR5DY; ENABLE_BITCODE = NO; INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -512,7 +516,9 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N8UN9TR5DY; INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme b/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme index ea103b378..aba36d5d9 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme @@ -60,6 +60,16 @@ ReferencedContainer = "container:example_0_70_6.xcodeproj"> + + + + + + + + + + com.apple.developer.in-app-payments + + merchant.checkout.team + merchant.dx.team + + + From 880f6575d1741a617eb3ee4882eed6e8e3af42a7 Mon Sep 17 00:00:00 2001 From: Semir Date: Tue, 3 Jan 2023 14:28:58 +0100 Subject: [PATCH 053/121] Updated applicationId --- example_0_70_6/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_0_70_6/android/app/build.gradle b/example_0_70_6/android/app/build.gradle index aafae75cc..237a458da 100644 --- a/example_0_70_6/android/app/build.gradle +++ b/example_0_70_6/android/app/build.gradle @@ -135,7 +135,7 @@ android { compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { - applicationId "com.example_0_70_6" + applicationId "com.example.reactnative" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 From 629e0d0bb8b6d4c34030c1c8d5ffecb7aee78615 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 14:57:49 +0200 Subject: [PATCH 054/121] Pass data on callback --- ios/Sources/RNTPrimer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Sources/RNTPrimer.swift b/ios/Sources/RNTPrimer.swift index 0ddaa6a7b..b510bdb34 100644 --- a/ios/Sources/RNTPrimer.swift +++ b/ios/Sources/RNTPrimer.swift @@ -455,7 +455,7 @@ extension RNTPrimer: PrimerDelegate { } // Send the error message to the RN bridge. - self.handleRNBridgeError(error, checkoutData: nil, stopOnDebug: false) + self.handleRNBridgeError(error, checkoutData: data, stopOnDebug: false) } else { // RN dev hasn't opted in on listening SDK dismiss. From 93ec5d1e6f4eb7b1f0ff682061f7230fc7ab5094 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 15:09:00 +0200 Subject: [PATCH 055/121] Add `removeListeners` --- .../PaymentMethodManagers/RawDataManager.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index f0a971cf0..2ef5a565e 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -29,13 +29,13 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { /////////////////////////////////////////// // Init /////////////////////////////////////////// - constructor() {} + constructor() { } /////////////////////////////////////////// // API /////////////////////////////////////////// - async configure(options: RawDataManagerProps): Promise<{initializationData: PrimerInitializationData} | void> { + async configure(options: RawDataManagerProps): Promise<{ initializationData: PrimerInitializationData } | void> { return new Promise(async (resolve, reject) => { try { this.options = options; @@ -53,6 +53,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { } async configureListeners(): Promise { + //@ts-ignore return new Promise(async (resolve, reject) => { if (this.options?.onMetadataChange) { this.addListener("onMetadataChange", (data) => { @@ -152,6 +153,14 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { removeListener(eventType: EventType, listener: (...args: any[]) => any): void { return eventEmitter.removeListener(eventType, listener); } + + removeAllListenersForEvent(eventType: EventType) { + eventEmitter.removeAllListeners(eventType); + } + + removeAllListeners() { + eventTypes.forEach((eventType) => this.removeAllListenersForEvent(eventType)); + } } export default PrimerHeadlessUniversalCheckoutRawDataManager; From cb77003f1873d5576b3a137350d55d0d6bc72def Mon Sep 17 00:00:00 2001 From: Semir Date: Wed, 4 Jan 2023 14:17:18 +0100 Subject: [PATCH 056/121] Fixed callback event names for Drop-In --- .../main/java/com/primerioreactnative/PrimerRN.kt | 9 ++++++++- .../primerioreactnative/PrimerRNEventListener.kt | 12 +++++++----- .../PrimerRNHeadlessUniversalCheckoutListener.kt | 1 - .../utils/PrimerImplementedRNCallbacks.kt | 14 +++++++------- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/PrimerRN.kt b/android/src/main/java/com/primerioreactnative/PrimerRN.kt index a01f4101f..a6407df9a 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRN.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRN.kt @@ -23,6 +23,7 @@ class PrimerRN(reactContext: ReactApplicationContext, private val json: Json) : mListener.sendError = { paramsJson -> onError(paramsJson) } mListener.sendErrorWithCheckoutData = { paramsJson, checkoutData -> onError(paramsJson, checkoutData) } + mListener.onDismissedEvent = { Primer.instance.dismiss(true) } } override fun getName(): String = "NativePrimer" @@ -76,7 +77,13 @@ class PrimerRN(reactContext: ReactApplicationContext, private val json: Json) : @ReactMethod fun dismiss(promise: Promise) { - Primer.instance.dismiss() + Primer.instance.dismiss(true) + promise.resolve(null) + } + + @ReactMethod + fun dispose(promise: Promise) { + Primer.instance.dismiss(true) promise.resolve(null) } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt index 3e5d92119..83be0b508 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt @@ -37,6 +37,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { var sendError: ((error: PrimerErrorRN) -> Unit)? = null var sendErrorWithCheckoutData: ((error: PrimerErrorRN, checkoutData: PrimerCheckoutDataRN?) -> Unit)? = null + var onDismissedEvent: (() -> Unit)? = null override fun onCheckoutCompleted(checkoutData: PrimerCheckoutData) { if (implementedRNCallbacks?.isOnCheckoutCompleteImplemented == true) { @@ -130,7 +131,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { resumeToken: String, decisionHandler: PrimerResumeDecisionHandler ) { - if (implementedRNCallbacks?.isOnResumeSuccessImplemented == true) { + if (implementedRNCallbacks?.isOnCheckoutResumeImplemented == true) { resumeSuccessDecisionHandler = { newClientToken, err -> when { err != null -> decisionHandler.handleFailure(err.ifBlank { null }) @@ -139,10 +140,9 @@ class PrimerRNEventListener : PrimerCheckoutListener { } } - val resumeToken = mapOf(Keys.RESUME_TOKEN to resumeToken) sendEvent?.invoke( PrimerEvents.ON_RESUME_SUCCESS.eventName, - JSONObject(Json.encodeToString(resumeToken)) + JSONObject(Json.encodeToString(mapOf(Keys.RESUME_TOKEN to resumeToken))) ) } else { sendError?.invoke( @@ -153,7 +153,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { } override fun onResumePending(additionalInfo: PrimerCheckoutAdditionalInfo) { - if (implementedRNCallbacks?.isOnResumePendingImplemented == true) { + if (implementedRNCallbacks?.isOnCheckoutPendingImplemented == true) { if (additionalInfo is MultibancoCheckoutAdditionalInfo) { sendEvent?.invoke( PrimerEvents.ON_RESUME_PENDING.eventName, @@ -171,7 +171,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { } override fun onAdditionalInfoReceived(additionalInfo: PrimerCheckoutAdditionalInfo) { - if (implementedRNCallbacks?.isOnCheckoutReceivedAdditionalInfo == true) { + if (implementedRNCallbacks?.isOnCheckoutAdditionalInfoImplemented == true) { if (additionalInfo is PromptPayCheckoutAdditionalInfo) { sendEvent?.invoke( PrimerEvents.ON_CHECKOUT_RECEIVED_ADDITIONAL_INFO.eventName, @@ -195,6 +195,8 @@ class PrimerRNEventListener : PrimerCheckoutListener { null ) } + + onDismissedEvent?.invoke() removeCallbacksAndHandlers() } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt index 57d84197c..de204652a 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt @@ -30,7 +30,6 @@ import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import org.json.JSONObject -@OptIn(ExperimentalPrimerApi::class) class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckoutListener, PrimerHeadlessUniversalCheckoutUiListener { private var paymentCreationDecisionHandler: ((errorMessage: String?) -> Unit)? = null diff --git a/android/src/main/java/com/primerioreactnative/utils/PrimerImplementedRNCallbacks.kt b/android/src/main/java/com/primerioreactnative/utils/PrimerImplementedRNCallbacks.kt index 98016842d..5ee36226f 100644 --- a/android/src/main/java/com/primerioreactnative/utils/PrimerImplementedRNCallbacks.kt +++ b/android/src/main/java/com/primerioreactnative/utils/PrimerImplementedRNCallbacks.kt @@ -17,12 +17,12 @@ data class PrimerImplementedRNCallbacks( val isOnErrorImplemented: Boolean? = null, @SerialName("onDismiss") val isOnDismissImplemented: Boolean? = null, - @SerialName("onTokenizeSuccess") + @SerialName("onTokenizationSuccess") val isOnTokenizeSuccessImplemented: Boolean? = null, - @SerialName("onResumeSuccess") - val isOnResumeSuccessImplemented: Boolean? = null, - @SerialName("onResumePending") - val isOnResumePendingImplemented: Boolean? = null, - @SerialName("onCheckoutReceivedAdditionalInfo") - val isOnCheckoutReceivedAdditionalInfo: Boolean? = null + @SerialName("onCheckoutResume") + val isOnCheckoutResumeImplemented: Boolean? = null, + @SerialName("onCheckoutPending") + val isOnCheckoutPendingImplemented: Boolean? = null, + @SerialName("onCheckoutAdditionalInfo") + val isOnCheckoutAdditionalInfoImplemented: Boolean? = null, ) From 2796003869e49a33685cad610c9f835626e40393 Mon Sep 17 00:00:00 2001 From: Semir Date: Wed, 4 Jan 2023 14:44:43 +0100 Subject: [PATCH 057/121] Added native emitter methods --- android/src/main/java/com/primerioreactnative/PrimerRN.kt | 6 ++++++ .../PrimerRNHeadlessUniversalCheckout.kt | 6 ++++++ .../raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/android/src/main/java/com/primerioreactnative/PrimerRN.kt b/android/src/main/java/com/primerioreactnative/PrimerRN.kt index a6407df9a..65319b624 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRN.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRN.kt @@ -165,6 +165,12 @@ class PrimerRN(reactContext: ReactApplicationContext, private val json: Json) : } } + @ReactMethod + fun addListener(eventName: String?) = Unit + + @ReactMethod + fun removeListeners(count: Int?) = Unit + private fun startSdk(settings: PrimerSettings) { Primer.instance.configure(settings, mListener) } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt index 6cc920613..bb8261e53 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt @@ -122,6 +122,12 @@ class PrimerRNHeadlessUniversalCheckout( } } + @ReactMethod + fun addListener(eventName: String?) = Unit + + @ReactMethod + fun removeListeners(count: Int?) = Unit + private fun onError(exception: PrimerErrorRN, checkoutDataRN: PrimerCheckoutDataRN? = null) { val params = Arguments.createMap() val errorJson = JSONObject(Json.encodeToString(exception)) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index ff67b051d..fed1c72c7 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -24,6 +24,7 @@ import kotlinx.serialization.json.Json import org.json.JSONArray import org.json.JSONObject + @ExperimentalPrimerApi internal class PrimerRNHeadlessUniversalCheckoutRawManager( reactContext: ReactApplicationContext, @@ -158,6 +159,12 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } } + @ReactMethod + fun addListener(eventName: String?) = Unit + + @ReactMethod + fun removeListeners(count: Int?) = Unit + private fun sendEvent(name: String, params: WritableMap) { reactApplicationContext.getJSModule( DeviceEventManagerModule.RCTDeviceEventEmitter::class.java From 06d9b24951e8e2bc00825384ec1e673453c31078 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 16:27:01 +0200 Subject: [PATCH 058/121] Bump --- .../Managers/Payment Method Managers/RNTNativeUIManager.m | 2 +- .../Managers/Payment Method Managers/RNTNativeUIManager.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m index 7b2f4b80a..f57cb8e08 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.m @@ -14,6 +14,6 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalPaymentMethodNativeUIMana RCT_EXTERN_METHOD(configure: (NSString *)paymentMethod resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) -RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)intent resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) +RCT_EXTERN_METHOD(showPaymentMethod:(NSString *)intentStr resolver:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) @end diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift index 4819b3d62..a3e0fddd5 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTNativeUIManager.swift @@ -36,7 +36,7 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { } @objc - func showPaymentMethod(_ intent: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + func showPaymentMethod(_ intentStr: String, resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { do { guard let paymentMethodNativeUIManager = paymentMethodNativeUIManager else { let err = RNTNativeError( @@ -46,7 +46,7 @@ class RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager: RCTEventEmitter { throw err } - guard let intent = PrimerSessionIntent(rawValue: intent) else { + guard let intent = PrimerSessionIntent(rawValue: intentStr) else { let err = RNTNativeError( errorId: "native-ios", errorDescription: "Invalid value for 'intent'.", From 60ec5345200467cfe8aa38f2fe6fdeeb32938c46 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 16:27:32 +0200 Subject: [PATCH 059/121] Add `cleanUp` function --- .../RNTPrimerHeadlessUniversalCheckout.m | 2 +- .../RNTPrimerHeadlessUniversalCheckout.swift | 9 +++++---- .../RNPrimerHeadlessUniversalCheckout.ts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m index 0f560bed4..bd35b236a 100644 --- a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.m @@ -15,7 +15,7 @@ @interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckout, RCTEventEmitter) resolver:(RCTPromiseResolveBlock)resolver rejecter: (RCTPromiseRejectBlock)rejecter) -RCT_EXTERN_METHOD(disposePrimerHeadlessUniversalCheckout) +RCT_EXTERN_METHOD(cleanUp:(RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter) // MARK: - DECISION HANDLERS diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift index fdbf9a0d5..f068f6422 100644 --- a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift @@ -117,8 +117,11 @@ class RNTPrimerHeadlessUniversalCheckout: RCTEventEmitter { } @objc - public func disposePrimerHeadlessUniversalCheckout() { - + public func cleanUp(_ resolver: @escaping RCTPromiseResolveBlock, rejecter: @escaping RCTPromiseRejectBlock) { + DispatchQueue.main.async { + PrimerHeadlessUniversalCheckout.current.cleanUp() + resolver(nil) + } } // MARK: - DECISION HANDLERS @@ -447,8 +450,6 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel } do { - print("data: \(data)") - print("try data.toJsonObject(): \(try data.toJsonObject())") let checkoutPaymentmethodJson = try data.toJsonObject() self.sendEvent( withName: rnCallbackName, diff --git a/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts index 1d7e5b905..d7eaee8ce 100644 --- a/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts +++ b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts @@ -153,7 +153,7 @@ const RNPrimerHeadlessUniversalCheckout = { disposePrimerHeadlessUniversalCheckout: (): Promise => { return new Promise(async (resolve, reject) => { try { - await PrimerHeadlessUniversalCheckout.disposePrimerHeadlessUniversalCheckout(); + await PrimerHeadlessUniversalCheckout.cleanUp(); resolve(); } catch (err) { reject(err); From 60b9afcb068725fbbb4b4d7350b64ecde0436627 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 16:29:57 +0200 Subject: [PATCH 060/121] Rename RN dispose to cleanUp --- .../PrimerHeadlessUniversalCheckout.ts | 4 ++-- .../RNPrimerHeadlessUniversalCheckout.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts index 1847cf004..7a08c3c9e 100644 --- a/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts +++ b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts @@ -324,8 +324,8 @@ class PrimerHeadlessUniversalCheckoutClass { }); } - disposePrimerHeadlessUniversalCheckout(): Promise { - return RNPrimerHeadlessUniversalCheckout.disposePrimerHeadlessUniversalCheckout(); + cleanUp(): Promise { + return RNPrimerHeadlessUniversalCheckout.cleanUp(); } } diff --git a/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts index d7eaee8ce..93aa4b71c 100644 --- a/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts +++ b/src/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.ts @@ -150,7 +150,7 @@ const RNPrimerHeadlessUniversalCheckout = { }); }, - disposePrimerHeadlessUniversalCheckout: (): Promise => { + cleanUp: (): Promise => { return new Promise(async (resolve, reject) => { try { await PrimerHeadlessUniversalCheckout.cleanUp(); From 7c25145345082ab228549df9079be251664fdae2 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 16:33:50 +0200 Subject: [PATCH 061/121] Rename `dispose()` to `cleanUp()` --- .../Payment Method Managers/RNTRawDataManager.m | 2 +- .../Payment Method Managers/RNTRawDataManager.swift | 12 +----------- ios/Sources/RNTPrimer.m | 2 +- ios/Sources/RNTPrimer.swift | 2 +- .../Managers/PaymentMethodManagers/RawDataManager.ts | 4 ++-- src/RNPrimer.ts | 4 ++-- src/models/PrimerInterfaces.ts | 2 +- 7 files changed, 9 insertions(+), 19 deletions(-) diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m index 70a916568..ea2ca4a68 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.m @@ -18,6 +18,6 @@ @interface RCT_EXTERN_MODULE(RNTPrimerHeadlessUniversalCheckoutRawDataManager, R RCT_EXTERN_METHOD(submit:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) -RCT_EXTERN_METHOD(dispose:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(cleanUp:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) @end diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index 89370bff5..a688f526b 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -152,21 +152,11 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { } @objc - public func dispose( + public func cleanUp( _ resolver: RCTPromiseResolveBlock, rejecter: RCTPromiseRejectBlock ) { - guard let rawDataManager = rawDataManager else { - let err = RNTNativeError( - errorId: "native-ios", - errorDescription: "The RawDataManager has not been initialized", - recoverySuggestion: "Make sure you have called initialized the `RawDataManager' first.") - rejecter(err.rnError["errorId"]!, err.rnError["description"], err) - return - } - rawDataManager.submit() - resolver(nil) } } diff --git a/ios/Sources/RNTPrimer.m b/ios/Sources/RNTPrimer.m index 5c0b60353..cea3dda20 100644 --- a/ios/Sources/RNTPrimer.m +++ b/ios/Sources/RNTPrimer.m @@ -26,7 +26,7 @@ @interface RCT_EXTERN_MODULE(NativePrimer, RCTEventEmitter) RCT_EXTERN_METHOD(dismiss) -RCT_EXTERN_METHOD(dispose) +RCT_EXTERN_METHOD(cleanUp) // MARK: - HELPERS diff --git a/ios/Sources/RNTPrimer.swift b/ios/Sources/RNTPrimer.swift index b510bdb34..19ed2b745 100644 --- a/ios/Sources/RNTPrimer.swift +++ b/ios/Sources/RNTPrimer.swift @@ -131,7 +131,7 @@ class RNTPrimer: RCTEventEmitter { } @objc - public func dispose() { + public func cleanUp() { Primer.shared.dismiss() } diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index 2ef5a565e..7f814c8e7 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -124,11 +124,11 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { }); } - dispose(): Promise { + cleanUp(): Promise { return new Promise(async (resolve, reject) => { if (this.options?.paymentMethodType) { try { - await RNTPrimerHeadlessUniversalCheckoutRawDataManager.dispose(); + await RNTPrimerHeadlessUniversalCheckoutRawDataManager.cleanUp(); resolve(); } catch (err) { reject(err); diff --git a/src/RNPrimer.ts b/src/RNPrimer.ts index 785cd68f1..4e58ae43a 100644 --- a/src/RNPrimer.ts +++ b/src/RNPrimer.ts @@ -105,10 +105,10 @@ const RNPrimer = { }); }, - dispose: (): Promise => { + cleanUp: (): Promise => { return new Promise(async (resolve, reject) => { try { - await NativePrimer.dispose(); + await NativePrimer.cleanUp(); resolve(); } catch (err) { reject(err); diff --git a/src/models/PrimerInterfaces.ts b/src/models/PrimerInterfaces.ts index 216710cd1..88c5d7e25 100644 --- a/src/models/PrimerInterfaces.ts +++ b/src/models/PrimerInterfaces.ts @@ -5,5 +5,5 @@ export interface IPrimer { showUniversalCheckout(clientToken: string): Promise; showVaultManager(clientToken: string): Promise; dismiss(): void; - dispose(): void; + cleanUp(): void; } From 8723d3f4ee505fe286c3f7d31651f0928349c9e0 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Wed, 4 Jan 2023 16:34:38 +0200 Subject: [PATCH 062/121] Bump --- src/Primer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Primer.ts b/src/Primer.ts index 26f44e1cd..f53626f93 100644 --- a/src/Primer.ts +++ b/src/Primer.ts @@ -282,7 +282,7 @@ export const Primer: IPrimer = { }); }, - dispose(): void { + cleanUp(): void { RNPrimer.removeAllListeners(); RNPrimer.dismiss(); }, From 1b9a7a83d1333a9b53aac22cba034471cc13a59f Mon Sep 17 00:00:00 2001 From: Semir Date: Wed, 4 Jan 2023 15:40:53 +0100 Subject: [PATCH 063/121] Renamed dispose to cleanUp --- android/src/main/java/com/primerioreactnative/PrimerRN.kt | 2 +- .../primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt | 3 ++- .../manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/PrimerRN.kt b/android/src/main/java/com/primerioreactnative/PrimerRN.kt index 65319b624..d5faaf824 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRN.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRN.kt @@ -82,7 +82,7 @@ class PrimerRN(reactContext: ReactApplicationContext, private val json: Json) : } @ReactMethod - fun dispose(promise: Promise) { + fun cleanUp(promise: Promise) { Primer.instance.dismiss(true) promise.resolve(null) } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt index bb8261e53..7a0a2fc2b 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckout.kt @@ -62,9 +62,10 @@ class PrimerRNHeadlessUniversalCheckout( } @ReactMethod - fun disposePrimerHeadlessUniversalCheckout() { + fun cleanUp(promise: Promise) { PrimerHeadlessUniversalCheckout.current.cleanup() listener.removeCallbacksAndHandlers() + promise.resolve(null) } // region tokenization handlers diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index fed1c72c7..9aca245ab 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -148,7 +148,7 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } @ReactMethod - fun dispose(promise: Promise) { + fun cleanUp(promise: Promise) { if (::rawManager.isInitialized.not()) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo UNINITIALIZED_ERROR From a72ce3d44e2cecf1534b0e123c20dba1420dc15d Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 5 Jan 2023 14:39:20 +0200 Subject: [PATCH 064/121] Expose key of validation error --- ios/Sources/Helpers/Error+Extensions.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Sources/Helpers/Error+Extensions.swift b/ios/Sources/Helpers/Error+Extensions.swift index 9beb4cd2d..fa6f0220d 100644 --- a/ios/Sources/Helpers/Error+Extensions.swift +++ b/ios/Sources/Helpers/Error+Extensions.swift @@ -14,6 +14,10 @@ internal extension Error { "description": localizedDescription ] + if let key = (self as NSError).userInfo["key"] as? String { + json["key"] = key + } + if let recoverySuggestion = (self as NSError).localizedRecoverySuggestion { json["recoverySuggestion"] = recoverySuggestion } From 1a33ab06c04abdd0cc1a3b26987a1f1a76a5f4c8 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 5 Jan 2023 18:11:10 +0200 Subject: [PATCH 065/121] Rename --- ios/Sources/Helpers/Error+Extensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Sources/Helpers/Error+Extensions.swift b/ios/Sources/Helpers/Error+Extensions.swift index fa6f0220d..86367db15 100644 --- a/ios/Sources/Helpers/Error+Extensions.swift +++ b/ios/Sources/Helpers/Error+Extensions.swift @@ -14,8 +14,8 @@ internal extension Error { "description": localizedDescription ] - if let key = (self as NSError).userInfo["key"] as? String { - json["key"] = key + if let inputElementType = (self as NSError).userInfo["inputElementType"] as? String { + json["inputElementType"] = inputElementType } if let recoverySuggestion = (self as NSError).localizedRecoverySuggestion { From 036d7fcbdbd99cb73d47f880c2a888d1b386a601 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 5 Jan 2023 18:22:35 +0200 Subject: [PATCH 066/121] Pass `checkoutData` on error --- .../RNTPrimerHeadlessUniversalCheckout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift index f068f6422..1f2f8e8c2 100644 --- a/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift +++ b/ios/Sources/Headless Universal Checkout/RNTPrimerHeadlessUniversalCheckout.swift @@ -371,7 +371,7 @@ extension RNTPrimerHeadlessUniversalCheckout: PrimerHeadlessUniversalCheckoutDel func primerHeadlessUniversalCheckoutDidFail(withError err: Error, checkoutData: PrimerCheckoutData?) { if self.implementedRNCallbacks?.isOnErrorImplemented == true { // Send the error message to the RN bridge. - self.handleRNBridgeError(err, checkoutData: nil, stopOnDebug: false) + self.handleRNBridgeError(err, checkoutData: checkoutData, stopOnDebug: false) } else { // RN dev hasn't opted in on listening SDK errors. From c74d5dede6218820ae4a73de37850ad7d1384d31 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 5 Jan 2023 18:23:23 +0200 Subject: [PATCH 067/121] Show `checkoutData` on error on HUC --- example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx b/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx index fdcae9c10..2688dc56a 100644 --- a/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx +++ b/example_0_70_6/src/screens/HeadlessCheckoutScreen.tsx @@ -188,7 +188,8 @@ export const HeadlessCheckoutScreen = (props: any) => { navigateToResultScreen(); } }, - onError: (err) => { + onError: (err, checkoutData) => { + merchantCheckoutData = checkoutData; merchantPrimerError = err; updateLogs(`\n๐Ÿ›‘ onError\nerror: ${JSON.stringify(err, null, 2)}`); console.error(err); From e90ca23d537ac59aa79a377b2d074543153d88d2 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 5 Jan 2023 20:59:18 +0100 Subject: [PATCH 068/121] Changed validation error field --- ...dlessUniversalCheckoutRawManagerListener.kt | 4 ++-- .../datamodels/PrimerInputValidationErrorRN.kt | 10 ++++++++++ example/src/screens/CheckoutScreen.tsx | 18 +++++++++--------- example/src/screens/HeadlessCheckoutScreen.tsx | 1 + 4 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt index 4751d1881..2dff844db 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt @@ -1,7 +1,7 @@ package com.primerioreactnative.components.manager.raw -import com.primerioreactnative.datamodels.PrimerErrorRN import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutRawDataManagerEvent +import com.primerioreactnative.datamodels.PrimerInputValidationErrorRN import io.primer.android.ExperimentalPrimerApi import io.primer.android.components.domain.core.models.card.PrimerCardMetadata import io.primer.android.components.domain.core.models.metadata.PrimerPaymentMethodMetadata @@ -27,7 +27,7 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManagerListener : "errors", JSONArray( errors.map { - JSONObject(Json.encodeToString(PrimerErrorRN(it.errorId, it.description))) + JSONObject(Json.encodeToString(PrimerInputValidationErrorRN(it.errorId, it.description, it.inputElementType.name))) } ) ) diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt new file mode 100644 index 000000000..896bb68c3 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt @@ -0,0 +1,10 @@ +package com.primerioreactnative.datamodels + +import kotlinx.serialization.Serializable + +@Serializable +data class PrimerInputValidationErrorRN( + val errorId: String? = null, + val description: String? = null, + val inputElementType: String? = null +) diff --git a/example/src/screens/CheckoutScreen.tsx b/example/src/screens/CheckoutScreen.tsx index 9d1824404..86964ff77 100644 --- a/example/src/screens/CheckoutScreen.tsx +++ b/example/src/screens/CheckoutScreen.tsx @@ -77,7 +77,7 @@ const CheckoutScreen = (props: any) => { setIsLoading(false); props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, @@ -109,7 +109,7 @@ const CheckoutScreen = (props: any) => { setIsLoading(false); props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, @@ -125,9 +125,9 @@ const CheckoutScreen = (props: any) => { handler.handleFailure("Merchant error"); setLoadingMessage(undefined); setIsLoading(false); - + props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, @@ -151,7 +151,7 @@ const CheckoutScreen = (props: any) => { setIsLoading(false); props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, @@ -173,9 +173,9 @@ const CheckoutScreen = (props: any) => { handler.handleFailure("RN app error"); setLoadingMessage(undefined); setIsLoading(false); - + props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, @@ -202,9 +202,9 @@ const CheckoutScreen = (props: any) => { handler?.showErrorMessage("My RN message"); setLoadingMessage(undefined); setIsLoading(false); - + props.navigation.navigate( - 'Result', + 'Result', { merchantCheckoutData: merchantCheckoutData, merchantCheckoutAdditionalInfo: merchantCheckoutAdditionalInfo, diff --git a/example/src/screens/HeadlessCheckoutScreen.tsx b/example/src/screens/HeadlessCheckoutScreen.tsx index fdcae9c10..0883b532d 100644 --- a/example/src/screens/HeadlessCheckoutScreen.tsx +++ b/example/src/screens/HeadlessCheckoutScreen.tsx @@ -257,6 +257,7 @@ export const HeadlessCheckoutScreen = (props: any) => { const startHUC = async (clientToken: string) => { try { + setPaymentMethods([]) const availablePaymentMethods = await HeadlessUniversalCheckout.startWithClientToken(clientToken, settings); setPaymentMethods(availablePaymentMethods); // updateLogs(`\nโ„น๏ธ Available payment methods:\n${JSON.stringify(availablePaymentMethods, null, 2)}`); From 8733622347ab65cec2da859e72bc9c129c7e3431 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 10 Jan 2023 14:20:21 +0200 Subject: [PATCH 069/121] Pass `errorId` --- ios/Sources/Helpers/Error+Extensions.swift | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ios/Sources/Helpers/Error+Extensions.swift b/ios/Sources/Helpers/Error+Extensions.swift index 86367db15..db0eaa5f7 100644 --- a/ios/Sources/Helpers/Error+Extensions.swift +++ b/ios/Sources/Helpers/Error+Extensions.swift @@ -6,14 +6,26 @@ // import Foundation +import PrimerSDK internal extension Error { var rnError: [String: String] { var json: [String: String] = [ - "errorId": (self as NSError).domain, "description": localizedDescription ] + if let primerValidationErr = self as? PrimerValidationError { + json["errorId"] = primerValidationErr.errorId + json["diagnosticsId"] = primerValidationErr.diagnosticsId + + } else if let primerErr = self as? PrimerError { + json["errorId"] = primerErr.errorId + json["diagnosticsId"] = primerErr.diagnosticsId + + } else { + json["errorId"] = (self as NSError).domain + } + if let inputElementType = (self as NSError).userInfo["inputElementType"] as? String { json["inputElementType"] = inputElementType } From ae93d4e4fd0eb0bcfb5c4ce657aa8cbca0134b27 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Tue, 10 Jan 2023 17:39:59 +0200 Subject: [PATCH 070/121] Map `diagnosticsId` --- .../Managers/PaymentMethodManagers/RawDataManager.ts | 8 ++++---- .../PrimerHeadlessUniversalCheckout.ts | 5 +++-- src/Primer.ts | 3 ++- src/models/PrimerError.ts | 4 +++- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts index 7f814c8e7..256373c4c 100644 --- a/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts +++ b/src/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.ts @@ -86,7 +86,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { reject(err); } } else { - const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function.", undefined); reject(err); } }); @@ -102,7 +102,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { reject(err); } } else { - const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function.", undefined); reject(err); } }); @@ -118,7 +118,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { reject(err); } } else { - const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function.", undefined); reject(err); } }); @@ -134,7 +134,7 @@ class PrimerHeadlessUniversalCheckoutRawDataManager { reject(err); } } else { - const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function."); + const err = new PrimerError("manager-not-configured", "HeadlessUniversalCheckoutRawDataManager has not been configured", "Call HeadlessUniversalCheckoutRawDataManager.configure before calling this function.", undefined); reject(err); } }); diff --git a/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts index 7a08c3c9e..e2fe8acae 100644 --- a/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts +++ b/src/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.ts @@ -268,7 +268,8 @@ async function configureListeners(): Promise { const errorId: string = data.error.errorId; const description: string | undefined = data.error.description; const recoverySuggestion: string | undefined = data.error.recoverySuggestion; - const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); + const diagnosticsId: string | undefined = data.error.diagnosticsId; + const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion, diagnosticsId); const checkoutData: PrimerCheckoutData = data.checkoutData; primerSettings.headlessUniversalCheckoutCallbacks.onError(primerError, checkoutData); @@ -315,7 +316,7 @@ class PrimerHeadlessUniversalCheckoutClass { const availablePaymentMethods: IPrimerHeadlessUniversalCheckoutPaymentMethod[] = res["availablePaymentMethods"]; resolve(availablePaymentMethods); } else { - const err = new PrimerError("primer-rn-sdk", "Failed to find availablePaymentMethods", "Create another client session"); + const err = new PrimerError("primer-rn-sdk", "Failed to find availablePaymentMethods", "Create another client session", undefined); reject(err); } } catch (err) { diff --git a/src/Primer.ts b/src/Primer.ts index f53626f93..13978eb45 100644 --- a/src/Primer.ts +++ b/src/Primer.ts @@ -226,7 +226,8 @@ async function configureListeners(): Promise { const errorId: string = data.error.errorId; const description: string | undefined = data.error.description; const recoverySuggestion: string | undefined = data.error.recoverySuggestion; - const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion); + const diagnosticsId: string | undefined = data.error.diagnosticsId; + const primerError = new PrimerError(errorId, description || 'Unknown error', recoverySuggestion, diagnosticsId); primerSettings.primerCallbacks.onError(primerError, data.checkoutData || null, errorHandler); } }); diff --git a/src/models/PrimerError.ts b/src/models/PrimerError.ts index da03819ed..377ecf870 100644 --- a/src/models/PrimerError.ts +++ b/src/models/PrimerError.ts @@ -10,11 +10,13 @@ export class PrimerError extends Error { errorId: string; description: string; recoverySuggestion?: string; + diagnosticsId?: string; - constructor(errorId: string, description: string, recoverySuggestion: string | undefined) { + constructor(errorId: string, description: string, recoverySuggestion: string | undefined, diagnosticsId: string | undefined) { super(description); this.errorId = errorId; this.description = description; this.recoverySuggestion = recoverySuggestion; + this.diagnosticsId = diagnosticsId; } } From 7566cb809ed9ebc50fb9174037f3bc1d8fca379b Mon Sep 17 00:00:00 2001 From: Semir Date: Tue, 10 Jan 2023 17:16:43 +0100 Subject: [PATCH 071/121] Mapped diagnosticsId to errors --- .../com/primerioreactnative/PrimerRNEventListener.kt | 10 +++++++++- .../PrimerRNHeadlessUniversalCheckoutListener.kt | 11 +++++++++-- ...rimerRNHeadlessUniversalCheckoutNativeUiManager.kt | 2 ++ ...erRNHeadlessUniversalCheckoutRawManagerListener.kt | 11 ++++++++++- .../primerioreactnative/datamodels/PrimerErrorRN.kt | 1 + .../datamodels/PrimerInputValidationErrorRN.kt | 3 ++- 6 files changed, 33 insertions(+), 5 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt index 83be0b508..6bd5e31a5 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNEventListener.kt @@ -213,6 +213,7 @@ class PrimerRNEventListener : PrimerCheckoutListener { PrimerErrorRN( error.errorId, error.description, + error.diagnosticsId, error.recoverySuggestion ), checkoutData?.toPrimerCheckoutDataRN() ) @@ -226,7 +227,14 @@ class PrimerRNEventListener : PrimerCheckoutListener { primerErrorDecisionHandler = { errorMessage: String? -> errorHandler?.showErrorMessage(errorMessage) } - sendError?.invoke(PrimerErrorRN(error.errorId, error.description, error.recoverySuggestion)) + sendError?.invoke( + PrimerErrorRN( + error.errorId, + error.description, + error.diagnosticsId, + error.recoverySuggestion + ) + ) } else { super.onFailed(error, errorHandler) } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt index de204652a..f0d797ca9 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt @@ -12,7 +12,6 @@ import com.primerioreactnative.extensions.toPrimerPaymentMethodDataRN import com.primerioreactnative.utils.PrimerHeadlessUniversalCheckoutImplementedRNCallbacks import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo -import io.primer.android.ExperimentalPrimerApi import io.primer.android.completion.PrimerHeadlessUniversalCheckoutResumeDecisionHandler import io.primer.android.completion.PrimerPaymentCreationDecisionHandler import io.primer.android.components.PrimerHeadlessUniversalCheckoutListener @@ -246,6 +245,7 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou PrimerErrorRN( error.errorId, error.description, + error.diagnosticsId, error.recoverySuggestion ), checkoutData?.toPrimerCheckoutDataRN() ) @@ -256,7 +256,14 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou override fun onFailed(error: PrimerError) { if (implementedRNCallbacks?.isOnErrorImplemented == true) { - sendError?.invoke(PrimerErrorRN(error.errorId, error.description, error.recoverySuggestion)) + sendError?.invoke( + PrimerErrorRN( + error.errorId, + error.description, + error.diagnosticsId, + error.recoverySuggestion + ) + ) } else { super.onFailed(error) } diff --git a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt index 0e23d40c4..500e39f92 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt @@ -47,6 +47,7 @@ internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( val exception = PrimerErrorRN( ErrorTypeRN.NativeBridgeFailed.errorId, "The NativeUIManager has not been initialized.", + null, "Initialize the NativeUIManager by calling the configure function" + " and providing a payment method type." ) @@ -57,6 +58,7 @@ internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( val exception = PrimerErrorRN( ErrorTypeRN.NativeBridgeFailed.errorId, "Invalid value for 'intent'.", + null, "'intent' can be 'CHECKOUT' or 'VAULT'." ) promise.reject(exception.errorId, exception.description) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt index 2dff844db..17280429d 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManagerListener.kt @@ -27,7 +27,16 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManagerListener : "errors", JSONArray( errors.map { - JSONObject(Json.encodeToString(PrimerInputValidationErrorRN(it.errorId, it.description, it.inputElementType.name))) + JSONObject( + Json.encodeToString( + PrimerInputValidationErrorRN( + it.errorId, + it.description, + it.inputElementType.name, + it.diagnosticsId + ) + ) + ) } ) ) diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt index 6322074ba..3fed0d513 100644 --- a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt @@ -6,6 +6,7 @@ import kotlinx.serialization.Serializable data class PrimerErrorRN( val errorId: String? = null, val description: String? = null, + val diagnosticsId: String? = null, val recoverySuggestion: String? = null ) diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt index 896bb68c3..e17036626 100644 --- a/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerInputValidationErrorRN.kt @@ -6,5 +6,6 @@ import kotlinx.serialization.Serializable data class PrimerInputValidationErrorRN( val errorId: String? = null, val description: String? = null, - val inputElementType: String? = null + val inputElementType: String? = null, + val diagnosticsId: String? = null ) From 8c139cf84ce218b2e0633893e0387ccc7d58b05a Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 12 Jan 2023 11:51:59 +0100 Subject: [PATCH 072/121] Updated model names, updated card data --- ...erRNRawCardData.kt => PrimerRNCardData.kt} | 12 +++++----- .../cardRedirect/PrimerRNCardRedirectData.kt | 19 ++++++++++++++++ .../PrimerRNPRawCardRedirectData.kt | 20 ----------------- ...mberData.kt => PrimerRNPhoneNumberData.kt} | 8 +++---- ...letData.kt => PrimerRNRetailOutletData.kt} | 6 ++--- ...erRNHeadlessUniversalCheckoutRawManager.kt | 22 +++++++++---------- 6 files changed, 42 insertions(+), 45 deletions(-) rename android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/{PrimerRNRawCardData.kt => PrimerRNCardData.kt} (66%) create mode 100644 android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNCardRedirectData.kt delete mode 100644 android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt rename android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/{PrimerRNRawPhoneNumberData.kt => PrimerRNPhoneNumberData.kt} (65%) rename android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/{PrimerRNRawRetailOutletData.kt => PrimerRNRetailOutletData.kt} (61%) diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNCardData.kt similarity index 66% rename from android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNCardData.kt index 82a414c05..3b30de605 100644 --- a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNRawCardData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/card/PrimerRNCardData.kt @@ -1,21 +1,19 @@ package com.primerioreactnative.components.datamodels.manager.raw.card -import io.primer.android.components.domain.core.models.card.PrimerRawCardData +import io.primer.android.components.domain.core.models.card.PrimerCardData import kotlinx.serialization.Serializable @Serializable -internal data class PrimerRNRawCardData( +internal data class PrimerRNCardData( val cardNumber: String? = null, - val expiryMonth: String? = null, - val expiryYear: String? = null, + val expiryDate: String? = null, val cvv: String? = null, val cardholderName: String? = null ) { fun toPrimerCardData() = - PrimerRawCardData( + PrimerCardData( cardNumber.orEmpty(), - expiryMonth.orEmpty(), - expiryYear.orEmpty(), + expiryDate.orEmpty(), cvv.orEmpty(), cardholderName ) diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNCardRedirectData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNCardRedirectData.kt new file mode 100644 index 000000000..9adb740b0 --- /dev/null +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNCardRedirectData.kt @@ -0,0 +1,19 @@ +package com.primerioreactnative.components.datamodels.manager.raw.cardRedirect + +import io.primer.android.components.domain.core.models.bancontact.PrimerBancontactCardData +import kotlinx.serialization.Serializable + +@Serializable +internal data class PrimerRNBancontactCardData( + val cardNumber: String? = null, + val expiryDate: String? = null, + val expiryYear: String? = null, + val cardholderName: String? = null +) { + fun toPrimerBancontactCardData() = + PrimerBancontactCardData( + cardNumber.orEmpty(), + expiryDate.orEmpty(), + cardholderName.orEmpty() + ) +} diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt deleted file mode 100644 index ef652e9da..000000000 --- a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/cardRedirect/PrimerRNPRawCardRedirectData.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.primerioreactnative.components.datamodels.manager.raw.cardRedirect - -import io.primer.android.components.domain.core.models.bancontact.PrimerRawBancontactCardData -import kotlinx.serialization.Serializable - -@Serializable -internal data class PrimerRNRawBancontactCardData( - val cardNumber: String, - val expiryMonth: String, - val expiryYear: String, - val cardholderName: String -) { - fun toPrimerRawBancontactCardData() = - PrimerRawBancontactCardData( - cardNumber, - expiryMonth, - expiryYear, - cardholderName - ) -} diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNPhoneNumberData.kt similarity index 65% rename from android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNPhoneNumberData.kt index 099764bdf..19d9fa673 100644 --- a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNRawPhoneNumberData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/phoneNumber/PrimerRNPhoneNumberData.kt @@ -1,14 +1,14 @@ package com.primerioreactnative.components.datamodels.manager.raw.phoneNumber -import io.primer.android.components.domain.core.models.phoneNumber.PrimerRawPhoneNumberData +import io.primer.android.components.domain.core.models.phoneNumber.PrimerPhoneNumberData import kotlinx.serialization.Serializable @Serializable -internal data class PrimerRNRawPhoneNumberData( +internal data class PrimerRNPhoneNumberData( val phoneNumber: String? = null, ) { - fun toPrimerRawPhoneNumberData() = - PrimerRawPhoneNumberData( + fun toPrimerPhoneNumberData() = + PrimerPhoneNumberData( phoneNumber.orEmpty() ) } diff --git a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRetailOutletData.kt similarity index 61% rename from android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt rename to android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRetailOutletData.kt index 5d96ed9b2..5b3e05fb8 100644 --- a/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRawRetailOutletData.kt +++ b/android/src/main/java/com/primerioreactnative/components/datamodels/manager/raw/retailOutlets/PrimerRNRetailOutletData.kt @@ -1,12 +1,12 @@ package com.primerioreactnative.components.datamodels.manager.raw.retailOutlets -import io.primer.android.components.domain.core.models.retailOutlet.PrimerRawRetailerData +import io.primer.android.components.domain.core.models.retailOutlet.PrimerRetailerData import kotlinx.serialization.Serializable @Serializable -internal data class PrimerRNRawRetailOutletData( +internal data class PrimerRNRetailOutletData( val id: String ) { - fun toPrimerRawRetailOutletData() = PrimerRawRetailerData(id) + fun toPrimerRetailOutletData() = PrimerRetailerData(id) } diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index 9aca245ab..39368f1ee 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -4,10 +4,10 @@ import com.facebook.react.bridge.* import com.facebook.react.modules.core.DeviceEventManagerModule import com.primerioreactnative.Keys import com.primerioreactnative.components.datamodels.core.PrimerRawPaymentMethodType -import com.primerioreactnative.components.datamodels.manager.raw.card.PrimerRNRawCardData -import com.primerioreactnative.components.datamodels.manager.raw.cardRedirect.PrimerRNRawBancontactCardData -import com.primerioreactnative.components.datamodels.manager.raw.phoneNumber.PrimerRNRawPhoneNumberData -import com.primerioreactnative.components.datamodels.manager.raw.retailOutlets.PrimerRNRawRetailOutletData +import com.primerioreactnative.components.datamodels.manager.raw.card.PrimerRNCardData +import com.primerioreactnative.components.datamodels.manager.raw.cardRedirect.PrimerRNBancontactCardData +import com.primerioreactnative.components.datamodels.manager.raw.phoneNumber.PrimerRNPhoneNumberData +import com.primerioreactnative.components.datamodels.manager.raw.retailOutlets.PrimerRNRetailOutletData import com.primerioreactnative.components.datamodels.manager.raw.retailOutlets.toRNRetailOutletsList import com.primerioreactnative.components.events.PrimerHeadlessUniversalCheckoutEvent import com.primerioreactnative.datamodels.ErrorTypeRN @@ -109,19 +109,19 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } else { try { val rawData = when (PrimerRawPaymentMethodType.valueOf(paymentMethodTypeStr.toString())) { - PrimerRawPaymentMethodType.PAYMENT_CARD -> json.decodeFromString( + PrimerRawPaymentMethodType.PAYMENT_CARD -> json.decodeFromString( rawDataStr ).toPrimerCardData() PrimerRawPaymentMethodType.XENDIT_OVO, PrimerRawPaymentMethodType.ADYEN_MBWAY -> - json.decodeFromString(rawDataStr) - .toPrimerRawPhoneNumberData() + json.decodeFromString(rawDataStr) + .toPrimerPhoneNumberData() PrimerRawPaymentMethodType.ADYEN_BANCONTACT_CARD -> - json.decodeFromString(rawDataStr) - .toPrimerRawBancontactCardData() + json.decodeFromString(rawDataStr) + .toPrimerBancontactCardData() PrimerRawPaymentMethodType.XENDIT_RETAIL_OUTLETS -> - json.decodeFromString(rawDataStr) - .toPrimerRawRetailOutletData() + json.decodeFromString(rawDataStr) + .toPrimerRetailOutletData() } rawManager.setRawData(rawData) promise.resolve(null) From 3174545bf054d81f5c38a5af15a97a2808909728 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 12 Jan 2023 15:06:01 +0200 Subject: [PATCH 073/121] Rename exposed interfaces --- src/index.tsx | 8 ++++---- src/models/PrimerRawData.ts | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index e93a2aad7..b12cca9d2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -26,10 +26,10 @@ export { } from './models/PrimerClientSession'; export { PrimerRawData as RawData, - PrimerRawCardData as RawCardData, - PrimerRawBancontactCardRedirectData as RawBancontactCardRedirectData, - PrimerRawPhoneNumberData as RawPhoneNumberData, - PrimerRawRetailerData as RawRetailerData + PrimerCardData as CardData, + PrimerBancontactCardRedirectData as BancontactCardRedirectData, + PrimerPhoneNumberData as PhoneNumberData, + PrimerRetailerData as RetailerData } from './models/PrimerRawData'; export { PrimerCheckoutAdditionalInfo as CheckoutAdditionalInfo, diff --git a/src/models/PrimerRawData.ts b/src/models/PrimerRawData.ts index f47fc6944..c6a067f4e 100644 --- a/src/models/PrimerRawData.ts +++ b/src/models/PrimerRawData.ts @@ -1,6 +1,6 @@ export interface PrimerRawData {} -export interface PrimerRawCardData extends PrimerRawData { +export interface PrimerCardData extends PrimerRawData { cardNumber: string; expiryMonth: string; expiryYear: string; @@ -8,19 +8,19 @@ export interface PrimerRawCardData extends PrimerRawData { cardholderName?: string; } -export interface PrimerRawPhoneNumberData extends PrimerRawData { +export interface PrimerPhoneNumberData extends PrimerRawData { phoneNumber: string; } -export interface PrimerRawCardRedirectData extends PrimerRawData {} +export interface PrimerCardRedirectData extends PrimerRawData {} -export interface PrimerRawBancontactCardRedirectData extends PrimerRawCardRedirectData { +export interface PrimerBancontactCardRedirectData extends PrimerCardRedirectData { cardNumber: string; expiryMonth: string; expiryYear: string; cardholderName: string; } -export interface PrimerRawRetailerData extends PrimerRawData { +export interface PrimerRetailerData extends PrimerRawData { id: string; } From 71a32c267f33b100ed926fe438591d94887df5cd Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 12 Jan 2023 16:50:20 +0200 Subject: [PATCH 074/121] Rename --- .../PrimerBancontactCardRedirectData+Extension.swift | 6 +++--- .../DataModels/PrimerRawRetailerData+Extension.swift | 6 +++--- .../Payment Method Managers/RNTRawDataManager.swift | 4 ++-- src/index.tsx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift index 2642c3a66..2d7787081 100644 --- a/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift +++ b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift @@ -1,11 +1,11 @@ import Foundation import PrimerSDK -extension PrimerBancontactCardRedirectData { +extension PrimerBancontactCardData { - convenience init?(cardRedirectDataStr: String) { + convenience init?(bankcontactCardDataStr: String) { do { - guard let data = cardRedirectDataStr.data(using: .utf8) else { + guard let data = bankcontactCardDataStr.data(using: .utf8) else { return nil } diff --git a/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift b/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift index 575e53ce3..20e75b20e 100644 --- a/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift +++ b/ios/Sources/DataModels/PrimerRawRetailerData+Extension.swift @@ -8,11 +8,11 @@ import Foundation import PrimerSDK -extension PrimerRawRetailerData { +extension PrimerRetailerData { - convenience init?(primerRawRetailerDataStr: String) { + convenience init?(primerRetailerDataStr: String) { do { - guard let data = primerRawRetailerDataStr.data(using: .utf8) else { + guard let data = primerRetailerDataStr.data(using: .utf8) else { return nil } diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift index a688f526b..bad62e486 100644 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift +++ b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTRawDataManager.swift @@ -114,13 +114,13 @@ class RNTPrimerHeadlessUniversalCheckoutRawDataManager: RCTEventEmitter { return } - if let rawCardRedirectData = PrimerBancontactCardRedirectData(cardRedirectDataStr: rawDataStr) { + if let rawCardRedirectData = PrimerBancontactCardData(bankcontactCardDataStr: rawDataStr) { rawDataManager.rawData = rawCardRedirectData resolver(nil) return } - if let rawRetailerData = PrimerRawRetailerData(primerRawRetailerDataStr: rawDataStr) { + if let rawRetailerData = PrimerRetailerData(primerRetailerDataStr: rawDataStr) { rawDataManager.rawData = rawRetailerData resolver(nil) return diff --git a/src/index.tsx b/src/index.tsx index b12cca9d2..6cefd87cf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -27,7 +27,7 @@ export { export { PrimerRawData as RawData, PrimerCardData as CardData, - PrimerBancontactCardRedirectData as BancontactCardRedirectData, + PrimerBancontactCardData as BancontactCardData, PrimerPhoneNumberData as PhoneNumberData, PrimerRetailerData as RetailerData } from './models/PrimerRawData'; From a764ea55fed28909c5692eb5482f479e8e4c0e8d Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 12 Jan 2023 16:50:41 +0200 Subject: [PATCH 075/121] Refactor `expiryDate` --- .../PrimerBancontactCardRedirectData+Extension.swift | 6 ++---- ios/Sources/DataModels/PrimerCardData+Extension.swift | 6 ++---- src/models/PrimerRawData.ts | 10 +++------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift index 2d7787081..b3076e7bb 100644 --- a/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift +++ b/ios/Sources/DataModels/PrimerBancontactCardRedirectData+Extension.swift @@ -16,14 +16,12 @@ extension PrimerBancontactCardData { } if let cardNumber = dict["cardNumber"], - let expiryMonth = dict["expiryMonth"], - let expiryYear = dict["expiryYear"], + let expiryDate = dict["expiryDate"], let cardholderName = dict["cardholderName"] { self.init( cardNumber: cardNumber, - expiryMonth: expiryMonth, - expiryYear: expiryYear, + expiryDate: expiryDate, cardholderName: cardholderName) } else { return nil diff --git a/ios/Sources/DataModels/PrimerCardData+Extension.swift b/ios/Sources/DataModels/PrimerCardData+Extension.swift index 4a4ce969a..5ec7a881b 100644 --- a/ios/Sources/DataModels/PrimerCardData+Extension.swift +++ b/ios/Sources/DataModels/PrimerCardData+Extension.swift @@ -24,14 +24,12 @@ extension PrimerCardData { if let cardNumber = dict["cardNumber"], let cvv = dict["cvv"], - let expiryMonth = dict["expiryMonth"], - let expiryYear = dict["expiryYear"] + let expiryDate = dict["expiryDate"] { let cardholderName = dict["cardholderName"] self.init( cardNumber: cardNumber, - expiryMonth: expiryMonth, - expiryYear: expiryYear, + expiryDate: expiryDate, cvv: cvv, cardholderName: cardholderName) } else { diff --git a/src/models/PrimerRawData.ts b/src/models/PrimerRawData.ts index c6a067f4e..12a17dd9d 100644 --- a/src/models/PrimerRawData.ts +++ b/src/models/PrimerRawData.ts @@ -2,8 +2,7 @@ export interface PrimerRawData {} export interface PrimerCardData extends PrimerRawData { cardNumber: string; - expiryMonth: string; - expiryYear: string; + expiryDate: string; cvv: string; cardholderName?: string; } @@ -12,12 +11,9 @@ export interface PrimerPhoneNumberData extends PrimerRawData { phoneNumber: string; } -export interface PrimerCardRedirectData extends PrimerRawData {} - -export interface PrimerBancontactCardRedirectData extends PrimerCardRedirectData { +export interface PrimerBancontactCardData extends PrimerRawData { cardNumber: string; - expiryMonth: string; - expiryYear: string; + expiryDate: string; cardholderName: string; } From 6b64abe1f9c9e29690b8ba4d807ce3b0fd7f8dc7 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 12 Jan 2023 16:50:57 +0200 Subject: [PATCH 076/121] Bump --- example_0_70_6/src/components/Section.tsx | 18 +--------- example_0_70_6/src/components/TextField.tsx | 1 + .../src/models/IClientSessionRequestBody.ts | 2 +- example_0_70_6/src/network/api.ts | 6 ++-- example_0_70_6/src/screens/CheckoutScreen.tsx | 5 ++- .../src/screens/NewLineItemSreen.tsx | 3 +- .../screens/RawAdyenBancontactCardScreen.tsx | 32 ++++++------------ .../src/screens/RawCardDataScreen.tsx | 33 +++++++------------ .../src/screens/RawPhoneNumberScreen.tsx | 12 ++++--- .../src/screens/RawRetailOutletScreen.tsx | 13 ++++---- example_0_70_6/src/screens/SettingsScreen.tsx | 6 ++-- 11 files changed, 51 insertions(+), 80 deletions(-) diff --git a/example_0_70_6/src/components/Section.tsx b/example_0_70_6/src/components/Section.tsx index 742c16ec6..5f9964e60 100644 --- a/example_0_70_6/src/components/Section.tsx +++ b/example_0_70_6/src/components/Section.tsx @@ -9,13 +9,7 @@ export interface SectionProps { } import { styles } from "../styles"; -export const Section: React.FC<{title: string, style: SectionProps}> = ({ children, title, style }) => { - - const renderChildren = (children: React.ReactNode[]) => { - return children.forEach((child, index) => { - return child; - }) - } +export const Section: React.FC<{title: string, style: SectionProps}> = ({ title, style }) => { return ( @@ -29,16 +23,6 @@ export const Section: React.FC<{title: string, style: SectionProps}> = ({ childr > {title} - {/* - {children} - */} ); }; \ No newline at end of file diff --git a/example_0_70_6/src/components/TextField.tsx b/example_0_70_6/src/components/TextField.tsx index 776659424..2cd42579a 100644 --- a/example_0_70_6/src/components/TextField.tsx +++ b/example_0_70_6/src/components/TextField.tsx @@ -20,6 +20,7 @@ export interface TextFieldProps { const TextField = (props: TextFieldProps) => { return ( + //@ts-ignore { props.title === undefined ? null : diff --git a/example_0_70_6/src/models/IClientSessionRequestBody.ts b/example_0_70_6/src/models/IClientSessionRequestBody.ts index 974612984..fb81828a4 100644 --- a/example_0_70_6/src/models/IClientSessionRequestBody.ts +++ b/example_0_70_6/src/models/IClientSessionRequestBody.ts @@ -92,7 +92,7 @@ export let appPaymentParameters: AppPaymentParameters = { countryCode: 'GB', lineItems: [ { - amount: 10100, + amount: 15100, quantity: 1, itemId: 'shoes-3213', description: 'Fancy Shoes', diff --git a/example_0_70_6/src/network/api.ts b/example_0_70_6/src/network/api.ts index 440a8c6fd..659763beb 100644 --- a/example_0_70_6/src/network/api.ts +++ b/example_0_70_6/src/network/api.ts @@ -1,6 +1,6 @@ import axios from 'axios'; import { getEnvironmentStringVal } from './Environment'; -import { appPaymentParameters, IClientSessionActionsRequestBody, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; +import { appPaymentParameters, IClientSessionActionsRequestBody } from '../models/IClientSessionRequestBody'; import type { IPayment } from '../models/IPayment'; import { APIVersion, getAPIVersionStringVal } from './APIVersion'; import { customApiKey, customClientToken } from '../screens/SettingsScreen'; @@ -9,13 +9,15 @@ const baseUrl = 'https://us-central1-primerdemo-8741b.cloudfunctions.net/api'; let staticHeaders: { [key: string]: string } = { 'Content-Type': 'application/json', + //@ts-ignore 'environment': getEnvironmentStringVal(appPaymentParameters.environment), } export const createClientSession = async () => { const url = baseUrl + '/client-session'; const headers: { [key: string]: string } = { - ...staticHeaders, + ...staticHeaders, + //@ts-ignore 'X-Api-Version': getAPIVersionStringVal(APIVersion.v3), }; diff --git a/example_0_70_6/src/screens/CheckoutScreen.tsx b/example_0_70_6/src/screens/CheckoutScreen.tsx index 9d1824404..69b37643e 100644 --- a/example_0_70_6/src/screens/CheckoutScreen.tsx +++ b/example_0_70_6/src/screens/CheckoutScreen.tsx @@ -39,8 +39,11 @@ interface Log { const CheckoutScreen = (props: any) => { const isDarkMode = useColorScheme() === 'dark'; + //@ts-ignore const [isLoading, setIsLoading] = React.useState(false); + //@ts-ignore const [loadingMessage, setLoadingMessage] = React.useState('undefined'); + //@ts-ignore const [error, setError] = React.useState(null); const backgroundStyle = { @@ -235,7 +238,7 @@ const CheckoutScreen = (props: any) => { }, applePayOptions: { merchantIdentifier: "merchant.checkout.team", - merchantName: appPaymentParameters.merchantName, + merchantName: appPaymentParameters.merchantName || "Merchant name", isCaptureBillingAddressEnabled: true } }, diff --git a/example_0_70_6/src/screens/NewLineItemSreen.tsx b/example_0_70_6/src/screens/NewLineItemSreen.tsx index 792536a9a..2d56b7102 100644 --- a/example_0_70_6/src/screens/NewLineItemSreen.tsx +++ b/example_0_70_6/src/screens/NewLineItemSreen.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import { View, Text, useColorScheme, TouchableOpacity } from 'react-native'; +import { View, Text, TouchableOpacity } from 'react-native'; import TextField from '../components/TextField'; import { makeRandomString } from '../helpers/helpers'; import type { IClientSessionLineItem } from '../models/IClientSessionRequestBody'; @@ -15,6 +15,7 @@ export interface NewLineItemScreenProps { const NewLineItemScreen = (props: any) => { const newLineItemScreenProps: NewLineItemScreenProps | undefined = props.route.params; + //@ts-ignore const [isEditing, setIsEditing] = React.useState(newLineItemScreenProps?.lineItem === undefined ? false : true); const [name, setName] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.description); const [quantity, setQuantity] = React.useState(newLineItemScreenProps?.lineItem === undefined ? undefined : newLineItemScreenProps.lineItem.quantity); diff --git a/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx index 1df2b151b..0f6d85e1d 100644 --- a/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx @@ -8,13 +8,11 @@ import { import { ActivityIndicator } from 'react-native'; import { InputElementType, - RawBancontactCardRedirectData, + BancontactCardRedirectData, RawDataManager, } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; -import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; export interface RawCardDataScreenProps { navigation: any; @@ -25,6 +23,7 @@ const rawDataManager = new RawDataManager(); const RawAdyenBancontactCardScreen = (props: any) => { + //@ts-ignore const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); @@ -41,11 +40,13 @@ const RawAdyenBancontactCardScreen = (props: any) => { const initialize = async () => { await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, + //@ts-ignore onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); setMetadataLog(log); }), + //@ts-ignore onValidation: ((isVallid, errors) => { let log = `\nonValidation:\nisValid: ${isVallid}\n`; @@ -67,20 +68,9 @@ const RawAdyenBancontactCardScreen = (props: any) => { tmpExpiryDate: string | null, tmpCardholderName: string | null ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawBancontactCardRedirectData = { + let rawData: BancontactCardRedirectData = { cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", + expiryDate: expiryDate || "", cardholderName: cardholderName || "" } @@ -89,11 +79,7 @@ const RawAdyenBancontactCardScreen = (props: any) => { } if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } + rawData.expiryDate = tmpExpiryDate; } if (tmpCardholderName) { @@ -153,6 +139,8 @@ const RawAdyenBancontactCardScreen = (props: any) => { }} /> ); + } else { + return null; } }) } @@ -198,7 +186,7 @@ const RawAdyenBancontactCardScreen = (props: any) => { marginVertical: 16, backgroundColor: isCardFormValid ? 'black' : "lightgray" }} - onPress={e => { + onPress={() => { if (isCardFormValid) { pay(); } diff --git a/example_0_70_6/src/screens/RawCardDataScreen.tsx b/example_0_70_6/src/screens/RawCardDataScreen.tsx index 556c2cbe0..90711ec06 100644 --- a/example_0_70_6/src/screens/RawCardDataScreen.tsx +++ b/example_0_70_6/src/screens/RawCardDataScreen.tsx @@ -8,12 +8,11 @@ import { import { ActivityIndicator } from 'react-native'; import { InputElementType, - RawCardData, + CardData, RawDataManager, } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; export interface RawCardDataScreenProps { navigation: any; @@ -24,6 +23,7 @@ const rawDataManager = new RawDataManager(); const RawCardDataScreen = (props: any) => { + //@ts-ignore const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); @@ -41,11 +41,13 @@ const RawCardDataScreen = (props: any) => { const initialize = async () => { await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, + //@ts-ignore onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); setMetadataLog(log); }), + //@ts-ignore onValidation: ((isVallid, errors) => { let log = `\nonValidation:\nisValid: ${isVallid}\n`; @@ -58,7 +60,7 @@ const RawCardDataScreen = (props: any) => { setIsCardFormValid(isVallid); }) }); - + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); setRequiredInputElementTypes(requiredInputElementTypes); } @@ -69,20 +71,9 @@ const RawCardDataScreen = (props: any) => { tmpCvv: string | null, tmpCardholderName: string | null ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawCardData = { + let rawData: CardData = { cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", + expiryDate: expiryDate || "", cvv: cvv || "", cardholderName: cardholderName } @@ -92,11 +83,7 @@ const RawCardDataScreen = (props: any) => { } if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } + rawData.expiryDate = tmpExpiryDate; } if (tmpCvv) { @@ -174,6 +161,8 @@ const RawCardDataScreen = (props: any) => { }} /> ); + } else { + return null; } }) } @@ -219,7 +208,7 @@ const RawCardDataScreen = (props: any) => { marginVertical: 16, backgroundColor: isCardFormValid ? 'black' : "lightgray" }} - onPress={e => { + onPress={() => { if (isCardFormValid) { pay(); } diff --git a/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx b/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx index 1b97b1d40..6cacbe780 100644 --- a/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx +++ b/example_0_70_6/src/screens/RawPhoneNumberScreen.tsx @@ -9,16 +9,16 @@ import { ActivityIndicator } from 'react-native'; import { InputElementType, RawDataManager, - RawPhoneNumberData, + PhoneNumberData, } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); const RawPhoneNumberDataScreen = (props: any) => { + //@ts-ignore const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); @@ -33,11 +33,13 @@ const RawPhoneNumberDataScreen = (props: any) => { const initialize = async () => { await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, + //@ts-ignore onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); setMetadataLog(log); }), + //@ts-ignore onValidation: ((isVallid, errors) => { let log = `\nonValidation:\nisValid: ${isVallid}\n`; @@ -55,7 +57,7 @@ const RawPhoneNumberDataScreen = (props: any) => { } const setRawData = (tmpPhoneNumber: string) => { - let rawData: RawPhoneNumberData = { + let rawData: PhoneNumberData = { phoneNumber: tmpPhoneNumber } @@ -84,6 +86,8 @@ const RawPhoneNumberDataScreen = (props: any) => { }} /> ); + } else { + return null; } }) } @@ -129,7 +133,7 @@ const RawPhoneNumberDataScreen = (props: any) => { marginVertical: 16, backgroundColor: isCardFormValid ? 'black' : "lightgray" }} - onPress={e => { + onPress={() => { if (isCardFormValid) { pay(); } diff --git a/example_0_70_6/src/screens/RawRetailOutletScreen.tsx b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx index fe2326dcb..2b2922aa0 100644 --- a/example_0_70_6/src/screens/RawRetailOutletScreen.tsx +++ b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx @@ -7,20 +7,19 @@ import { } from 'react-native'; import { ActivityIndicator } from 'react-native'; import { - InputElementType, RawDataManager, - RawRetailerData, + RetailerData, } from '@primer-io/react-native'; -import TextField from '../components/TextField'; import { styles } from '../styles'; -import type { RawDataScreenProps } from '../models/RawDataScreenProps'; const rawDataManager = new RawDataManager(); const RawRetailOutletScreen = (props: any) => { + //@ts-ignore const [isLoading, setIsLoading] = useState(false); const [isCardFormValid, setIsCardFormValid] = useState(false); + //@ts-ignore const [requiredInputElementTypes, setRequiredInputElementTypes] = useState(undefined); const [retailers, setRetailers] = useState(undefined); const [selectedRetailOutletId, setSelectedRetailOutletId] = useState(undefined); @@ -34,11 +33,13 @@ const RawRetailOutletScreen = (props: any) => { const initialize = async () => { const response = await rawDataManager.configure({ paymentMethodType: props.route.params.paymentMethodType, + //@ts-ignore onMetadataChange: (data => { const log = `\nonMetadataChange: ${JSON.stringify(data)}\n`; console.log(log); setMetadataLog(log); }), + //@ts-ignore onValidation: ((isVallid, errors) => { let log = `\nonValidation:\nisValid: ${isVallid}\n`; @@ -63,7 +64,7 @@ const RawRetailOutletScreen = (props: any) => { } const setRawData = (tmpRetailOutletId: string) => { - let rawData: RawRetailerData = { + let rawData: RetailerData = { id: tmpRetailOutletId } @@ -139,7 +140,7 @@ const RawRetailOutletScreen = (props: any) => { marginVertical: 16, backgroundColor: isCardFormValid ? 'black' : "lightgray" }} - onPress={e => { + onPress={() => { if (isCardFormValid) { pay(); } diff --git a/example_0_70_6/src/screens/SettingsScreen.tsx b/example_0_70_6/src/screens/SettingsScreen.tsx index f360f9c13..513f8127d 100644 --- a/example_0_70_6/src/screens/SettingsScreen.tsx +++ b/example_0_70_6/src/screens/SettingsScreen.tsx @@ -11,11 +11,9 @@ import { } from 'react-native/Libraries/NewAppScreen'; import { styles } from '../styles'; import SegmentedControl from '@react-native-segmented-control/segmented-control'; -import { Picker } from "@react-native-picker/picker"; import { Environment, makeEnvironmentFromIntVal, makePaymentHandlingFromIntVal, PaymentHandling } from '../network/Environment'; import { appPaymentParameters, IClientSessionAddress, IClientSessionCustomer, IClientSessionLineItem, IClientSessionOrder, IClientSessionPaymentMethod, IClientSessionPaymentMethodOptions, IClientSessionRequestBody } from '../models/IClientSessionRequestBody'; import { Switch } from 'react-native'; -import { FlatList } from 'react-native'; import TextField from '../components/TextField'; import type { NewLineItemScreenProps } from './NewLineItemSreen'; @@ -26,13 +24,13 @@ export interface AppPaymentParameters { merchantName?: string; } -export let customApiKey: string | undefined; +export let customApiKey: string | undefined = "71347d48-c050-49c2-ac51-202525c4c0ec"; export let customClientToken: string | undefined; // @ts-ignore const SettingsScreen = ({ navigation }) => { const isDarkMode = useColorScheme() === 'dark'; - const [environment, setEnvironment] = React.useState(Environment.Sandbox); + const [environment, setEnvironment] = React.useState(Environment.Staging); const [apiKey, setApiKey] = React.useState(customApiKey); const [clientToken, setClientToken] = React.useState(undefined); const [paymentHandling, setPaymentHandling] = React.useState(PaymentHandling.Auto); From 292dcb51fb35241a527e1c71cbcefb18fdd555da Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Thu, 12 Jan 2023 16:51:12 +0200 Subject: [PATCH 077/121] Bump --- .../screens/RawAdyenBancontactCardScreen.tsx | 24 ++++--------------- example/src/screens/RawCardDataScreen.tsx | 23 ++++-------------- 2 files changed, 8 insertions(+), 39 deletions(-) diff --git a/example/src/screens/RawAdyenBancontactCardScreen.tsx b/example/src/screens/RawAdyenBancontactCardScreen.tsx index 1df2b151b..365127c1d 100644 --- a/example/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example/src/screens/RawAdyenBancontactCardScreen.tsx @@ -8,12 +8,11 @@ import { import { ActivityIndicator } from 'react-native'; import { InputElementType, - RawBancontactCardRedirectData, RawDataManager, + BancontactCardRedirectData } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; -import type { PrimerRawCardRedirectData } from 'src/models/PrimerRawData'; import type { RawDataScreenProps } from '../models/RawDataScreenProps'; export interface RawCardDataScreenProps { @@ -67,20 +66,9 @@ const RawAdyenBancontactCardScreen = (props: any) => { tmpExpiryDate: string | null, tmpCardholderName: string | null ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawBancontactCardRedirectData = { + let rawData: BancontactCardRedirectData = { cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", + expiryDate: expiryDate || "", cardholderName: cardholderName || "" } @@ -89,11 +77,7 @@ const RawAdyenBancontactCardScreen = (props: any) => { } if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } + rawData.expiryDate = tmpExpiryDate; } if (tmpCardholderName) { diff --git a/example/src/screens/RawCardDataScreen.tsx b/example/src/screens/RawCardDataScreen.tsx index 556c2cbe0..99c17eaa8 100644 --- a/example/src/screens/RawCardDataScreen.tsx +++ b/example/src/screens/RawCardDataScreen.tsx @@ -8,7 +8,7 @@ import { import { ActivityIndicator } from 'react-native'; import { InputElementType, - RawCardData, + CardData, RawDataManager, } from '@primer-io/react-native'; import TextField from '../components/TextField'; @@ -69,20 +69,9 @@ const RawCardDataScreen = (props: any) => { tmpCvv: string | null, tmpCardholderName: string | null ) => { - let expiryDateComponents = expiryDate.split("/"); - - let expiryMonth: string | undefined; - let expiryYear: string | undefined; - - if (expiryDateComponents.length === 2) { - expiryMonth = expiryDateComponents[0]; - expiryYear = expiryDateComponents[1]; - } - - let rawData: RawCardData = { + let rawData: CardData = { cardNumber: cardNumber || "", - expiryMonth: expiryMonth || "", - expiryYear: expiryYear || "", + expiryDate: expiryDate || "", cvv: cvv || "", cardholderName: cardholderName } @@ -92,11 +81,7 @@ const RawCardDataScreen = (props: any) => { } if (tmpExpiryDate) { - expiryDateComponents = tmpExpiryDate.split("/"); - if (expiryDateComponents.length === 2) { - rawData.expiryMonth = expiryDateComponents[0]; - rawData.expiryYear = expiryDateComponents[1]; - } + rawData.expiryDate = tmpExpiryDate; } if (tmpCvv) { From fe43f0388d5c494b783586eea20d6ca43a5b42cc Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 13 Jan 2023 14:53:15 +0200 Subject: [PATCH 078/121] Update iOS dependency --- primer-io-react-native.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primer-io-react-native.podspec b/primer-io-react-native.podspec index 7a8081a3f..3cc8a48e1 100644 --- a/primer-io-react-native.podspec +++ b/primer-io-react-native.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,mm,swift}" s.dependency "React-Core" - s.dependency "PrimerSDK", "2.20.0-rc.2" + s.dependency "PrimerSDK", "2.20.0-RC.1" end From 440c247b0cccbcf8f316078caa560ccff676f8a6 Mon Sep 17 00:00:00 2001 From: Semir Date: Fri, 13 Jan 2023 14:33:10 +0100 Subject: [PATCH 079/121] Bumped Android version --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index e36db0934..006f10e78 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -136,5 +136,5 @@ dependencies { api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3" - implementation 'io.primer:android:2.20.0-rc1-SNAPSHOT' + implementation 'io.primer:android:2.20.0-RC1' } From 735d4454efe86ddd75f8c1699e5aa3ee0bc38693 Mon Sep 17 00:00:00 2001 From: Semir Date: Fri, 13 Jan 2023 14:38:25 +0100 Subject: [PATCH 080/121] =?UTF-8?q?=F0=9F=91=8A=20v.2.20.0-RC.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ec7eee7b..710bf18a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer-io/react-native", - "version": "2.16.0", + "version": "2.20.0-RC.1", "description": "Primer SDK for RN", "main": "lib/commonjs/index", "module": "lib/module/index", From aea04f8d888a849c4207b83681807c45dd7b7e42 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 13 Jan 2023 16:47:05 +0200 Subject: [PATCH 081/121] Remove unimplemented card components manager --- ...adlessUniversalCheckoutCardFormUIManager.m | 14 --- ...ssUniversalCheckoutCardFormUIManager.swift | 109 ------------------ 2 files changed, 123 deletions(-) delete mode 100644 ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m delete mode 100644 ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m deleted file mode 100644 index 92399d3f8..000000000 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.m +++ /dev/null @@ -1,14 +0,0 @@ -#import -#import -#import -#import - -@interface RCT_EXTERN_MODULE(PrimerHeadlessUniversalCheckoutCardFormUIManager, NSObject) - -RCT_EXTERN_METHOD(setInputElements:(NSString *)inputElements errorCallback: (RCTResponseSenderBlock)errorCallback successCallback: (RCTResponseSenderBlock)successCallback) - -RCT_EXTERN_METHOD(tokenize) - -RCT_EXTERN_METHOD(addInput:(NSNumber* __nonnull)tag) - -@end diff --git a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift b/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift deleted file mode 100644 index 00c9618ec..000000000 --- a/ios/Sources/Headless Universal Checkout/Managers/Payment Method Managers/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift +++ /dev/null @@ -1,109 +0,0 @@ -// -// RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.swift -// primer-io-react-native -// -// Created by Evangelos on 4/3/22. -// - -import Foundation -import PrimerSDK - -@objc(PrimerHeadlessUniversalCheckoutCardFormUIManager) -class RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: RCTViewManager { - - @objc - override static func requiresMainQueueSetup() -> Bool { - return true - } - - private lazy var cardFormUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager = { - return PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager() - }() - - private var successCallback: RCTResponseSenderBlock? { - didSet { - - } - } - - deinit { - print("๐Ÿงจ deinit: \(self) \(Unmanaged.passUnretained(self).toOpaque())") - } - - override init() { - super.init() - self.cardFormUIManager = PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager() - self.cardFormUIManager.delegate = self - } - - @objc - override func constantsToExport() -> [AnyHashable : Any]! { - return ["message": "Hello from native code"] - } - - @objc - func setInputElements(_ inputElements: String, errorCallback: RCTResponseSenderBlock, successCallback: @escaping RCTResponseSenderBlock) { - print("RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.setInputElements\n\(inputElements)") - print("โญ \(self) \(Unmanaged.passUnretained(self).toOpaque())") - self.successCallback = successCallback - self.successCallback?(["what??"]) - } - - @objc - func setInputElementsWithTags(_ tags: [NSNumber]) { - RCTUnsafeExecuteOnMainQueueSync { - guard let rctUIManager = self.bridge.module(for: RCTUIManager.self) as? RCTUIManager else { - return - } - - for tag in tags { - if let view = rctUIManager.view(forReactTag: tag) { - if let inputElement = view as? PrimerHeadlessUniversalCheckoutInputElement { - self.cardFormUIManager.inputElements = [inputElement] - } - } - } - } - } - - @objc - func addInput(_ tag: NSNumber) { - RCTUnsafeExecuteOnMainQueueSync { - guard let rctUIManager = self.bridge.module(for: RCTUIManager.self) as? RCTUIManager else { - return - } - - if let view = rctUIManager.view(forReactTag: tag) { - if let inputElement = view as? PrimerHeadlessUniversalCheckoutInputElement { - self.cardFormUIManager.inputElements = [inputElement] - } - } - - } - } - - @objc - func tokenize() { - print("RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.tokenize") - } - -} - -extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerHeadlessUniversalCheckoutCardComponentsUIManagerDelegate { - - func cardFormUIManager(_ cardFormUIManager: PrimerSDK.PrimerHeadlessUniversalCheckout.CardComponentsUIManager, isCardFormValid: Bool) { - - } -} - -extension RNTPrimerHeadlessUniversalCheckoutCardFormUIManager: PrimerInputElementDelegate { - - func inputElementDidFocus(_ sender: PrimerHeadlessUniversalCheckoutInputElement) { - - } - - func inputElementDidBlur(_ sender: PrimerHeadlessUniversalCheckoutInputElement) { - - } - -} From 6440dde3ddef8ae67527a00d16780d6057dc2553 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 13 Jan 2023 16:47:38 +0200 Subject: [PATCH 082/121] =?UTF-8?q?Revert=20"=F0=9F=91=8A=20v.2.20.0-RC.1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 735d4454efe86ddd75f8c1699e5aa3ee0bc38693. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 710bf18a3..1ec7eee7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer-io/react-native", - "version": "2.20.0-RC.1", + "version": "2.16.0", "description": "Primer SDK for RN", "main": "lib/commonjs/index", "module": "lib/module/index", From cdfb7b61120aaa6ef5bcb8df12370edc2480f9f5 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Fri, 13 Jan 2023 16:49:59 +0200 Subject: [PATCH 083/121] =?UTF-8?q?=F0=9F=91=8A=20v.2.20.0-RC.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ec7eee7b..710bf18a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer-io/react-native", - "version": "2.16.0", + "version": "2.20.0-RC.1", "description": "Primer SDK for RN", "main": "lib/commonjs/index", "module": "lib/module/index", From 3f29095ed49f4edf237f7da3b8a4165a545e981c Mon Sep 17 00:00:00 2001 From: Semir Date: Mon, 16 Jan 2023 17:15:57 +0100 Subject: [PATCH 084/121] Updated naming of managers --- .../PrimerRNHeadlessUniversalCheckoutAssetManager.kt | 8 ++++---- .../PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt index eb89af709..3498dd2a7 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt @@ -15,7 +15,7 @@ import com.primerioreactnative.datamodels.ErrorTypeRN import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi -import io.primer.android.components.ui.assets.PrimerAssetsManager +import io.primer.android.components.ui.assets.PrimerHeadlessUniversalCheckoutAssetsManager import io.primer.android.ui.CardNetwork import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json @@ -42,7 +42,7 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( promise.reject(exception.errorId, exception.description) } else -> try { - PrimerAssetsManager.getCardNetworkImage(cardNetwork).let { resourceId -> + PrimerHeadlessUniversalCheckoutAssetsManager.getCardNetworkImage(cardNetwork).let { resourceId -> val file = getFileForCardNetworkAsset(reactContext, cardNetworkStr) AssetsManager.saveBitmapToFile( file, @@ -68,7 +68,7 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( fun getPaymentMethodAsset(paymentMethodTypeStr: String, promise: Promise) { try { val paymentMethodAsset = - PrimerAssetsManager.getPaymentMethodAsset(reactContext, paymentMethodTypeStr) + PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset(reactContext, paymentMethodTypeStr) promise.resolve( convertJsonToMap( JSONObject().apply { @@ -94,7 +94,7 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( @ReactMethod fun getPaymentMethodAssets(promise: Promise) { val paymentMethodAssets = - PrimerAssetsManager.getPaymentMethodAssets(reactContext) + PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(reactContext) if (paymentMethodAssets.isEmpty()) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find assets for this session" diff --git a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt index 500e39f92..036eb5b32 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt @@ -9,15 +9,15 @@ import com.primerioreactnative.datamodels.PrimerErrorRN import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi import io.primer.android.PrimerSessionIntent -import io.primer.android.components.manager.native.PrimerNativeUiPaymentMethodManager -import io.primer.android.components.manager.native.PrimerNativeUiPaymentMethodManagerInterface +import io.primer.android.components.manager.native.PrimerHeadlessUniversalCheckoutNativeUiManager +import io.primer.android.components.manager.native.PrimerHeadlessUniversalCheckoutNativeUiManagerInterface @ExperimentalPrimerApi internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( private val reactContext: ReactApplicationContext, ) : ReactContextBaseJavaModule(reactContext) { - private lateinit var nativeUiManager: PrimerNativeUiPaymentMethodManagerInterface + private lateinit var nativeUiManager: PrimerHeadlessUniversalCheckoutNativeUiManagerInterface private var paymentMethodTypeStr: String? = null override fun getName() = "RNTPrimerHeadlessUniversalPaymentMethodNativeUIManager" @@ -25,7 +25,7 @@ internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( @ReactMethod fun configure(paymentMethodTypeStr: String, promise: Promise) { try { - nativeUiManager = PrimerNativeUiPaymentMethodManager.newInstance( + nativeUiManager = PrimerHeadlessUniversalCheckoutNativeUiManager.newInstance( paymentMethodTypeStr ) this.paymentMethodTypeStr = paymentMethodTypeStr From d3963ee340aa8ece656a83484c073a904e944368 Mon Sep 17 00:00:00 2001 From: Semir Date: Mon, 16 Jan 2023 21:32:57 +0100 Subject: [PATCH 085/121] Updated errors --- ...RNHeadlessUniversalCheckoutAssetManager.kt | 77 +++++++++++-------- ...eadlessUniversalCheckoutNativeUiManager.kt | 23 +++++- ...erRNHeadlessUniversalCheckoutRawManager.kt | 6 ++ .../datamodels/PrimerErrorRN.kt | 3 + 4 files changed, 73 insertions(+), 36 deletions(-) diff --git a/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt index 3498dd2a7..cbea62847 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/asset/PrimerRNHeadlessUniversalCheckoutAssetManager.kt @@ -15,6 +15,7 @@ import com.primerioreactnative.datamodels.ErrorTypeRN import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi +import io.primer.android.components.SdkUninitializedException import io.primer.android.components.ui.assets.PrimerHeadlessUniversalCheckoutAssetsManager import io.primer.android.ui.CardNetwork import kotlinx.serialization.encodeToString @@ -42,22 +43,25 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( promise.reject(exception.errorId, exception.description) } else -> try { - PrimerHeadlessUniversalCheckoutAssetsManager.getCardNetworkImage(cardNetwork).let { resourceId -> - val file = getFileForCardNetworkAsset(reactContext, cardNetworkStr) - AssetsManager.saveBitmapToFile( - file, - drawableToBitmap(ContextCompat.getDrawable(reactContext, resourceId)!!), - ) - promise.resolve( - convertJsonToMap( - JSONObject( - Json.encodeToString( - PrimerCardNetworkAsset("file://${file.absolutePath}") + PrimerHeadlessUniversalCheckoutAssetsManager.getCardNetworkImage(cardNetwork) + .let { resourceId -> + val file = getFileForCardNetworkAsset(reactContext, cardNetworkStr) + AssetsManager.saveBitmapToFile( + file, + drawableToBitmap(ContextCompat.getDrawable(reactContext, resourceId)!!), + ) + promise.resolve( + convertJsonToMap( + JSONObject( + Json.encodeToString( + PrimerCardNetworkAsset("file://${file.absolutePath}") + ) ) ) ) - ) - } + } + } catch (e: SdkUninitializedException) { + promise.reject(ErrorTypeRN.UnitializedSdkSession.errorId, e.message, e) } catch (e: Exception) { promise.reject(ErrorTypeRN.NativeBridgeFailed.errorId, e.message, e) } @@ -68,7 +72,10 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( fun getPaymentMethodAsset(paymentMethodTypeStr: String, promise: Promise) { try { val paymentMethodAsset = - PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset(reactContext, paymentMethodTypeStr) + PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAsset( + reactContext, + paymentMethodTypeStr + ) promise.resolve( convertJsonToMap( JSONObject().apply { @@ -84,6 +91,8 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( } ) ) + } catch (e: SdkUninitializedException) { + promise.reject(ErrorTypeRN.UnitializedSdkSession.errorId, e.message, e) } catch (e: Exception) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find asset of $paymentMethodTypeStr for this session." @@ -93,26 +102,30 @@ internal class PrimerRNHeadlessUniversalCheckoutAssetManager( @ReactMethod fun getPaymentMethodAssets(promise: Promise) { - val paymentMethodAssets = - PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(reactContext) - if (paymentMethodAssets.isEmpty()) { - val exception = - ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find assets for this session" - promise.reject(exception.errorId, exception.description) - } - promise.resolve( - convertJsonToMap( - JSONObject( - Json.encodeToString( - PrimerRNPaymentMethodAssets(paymentMethodAssets.map { - it.toPrimerRNPaymentMethodLogo( - reactContext, - it.paymentMethodType - ) - }) + try { + val paymentMethodAssets = + PrimerHeadlessUniversalCheckoutAssetsManager.getPaymentMethodAssets(reactContext) + if (paymentMethodAssets.isEmpty()) { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo "Failed to find assets for this session" + promise.reject(exception.errorId, exception.description) + } + promise.resolve( + convertJsonToMap( + JSONObject( + Json.encodeToString( + PrimerRNPaymentMethodAssets(paymentMethodAssets.map { + it.toPrimerRNPaymentMethodLogo( + reactContext, + it.paymentMethodType + ) + }) + ) ) ) ) - ) + } catch (e: SdkUninitializedException) { + promise.reject(ErrorTypeRN.UnitializedSdkSession.errorId, e.message, e) + } } } diff --git a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt index 036eb5b32..501adba76 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/nativeUi/PrimerRNHeadlessUniversalCheckoutNativeUiManager.kt @@ -9,8 +9,11 @@ import com.primerioreactnative.datamodels.PrimerErrorRN import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi import io.primer.android.PrimerSessionIntent +import io.primer.android.components.SdkUninitializedException +import io.primer.android.components.domain.exception.UnsupportedPaymentMethodManagerException import io.primer.android.components.manager.native.PrimerHeadlessUniversalCheckoutNativeUiManager import io.primer.android.components.manager.native.PrimerHeadlessUniversalCheckoutNativeUiManagerInterface +import io.primer.android.domain.exception.UnsupportedPaymentIntentException @ExperimentalPrimerApi internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( @@ -30,6 +33,10 @@ internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( ) this.paymentMethodTypeStr = paymentMethodTypeStr promise.resolve(null) + } catch (e: SdkUninitializedException) { + promise.reject(ErrorTypeRN.UnitializedSdkSession.errorId, e.message, e) + } catch (e: UnsupportedPaymentMethodManagerException) { + promise.reject(ErrorTypeRN.UnsupportedPaymentMethod.errorId, e.message, e) } catch (e: Exception) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo e.message.orEmpty() @@ -63,10 +70,18 @@ internal class PrimerRNHeadlessUniversalCheckoutNativeUiManager( ) promise.reject(exception.errorId, exception.description) } else { - nativeUiManager.showPaymentMethod( - reactContext, - PrimerSessionIntent.valueOf(intentStr.uppercase()) - ) + try { + nativeUiManager.showPaymentMethod( + reactContext, + PrimerSessionIntent.valueOf(intentStr.uppercase()) + ) + } catch (e: UnsupportedPaymentIntentException) { + promise.reject(ErrorTypeRN.UnsupportedPaymentIntent.errorId, e.message, e) + } catch (e: Exception) { + val exception = + ErrorTypeRN.NativeBridgeFailed errorTo e.message.orEmpty() + promise.reject(exception.errorId, exception.description, e) + } } } } diff --git a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt index 39368f1ee..68f976c60 100644 --- a/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt +++ b/android/src/main/java/com/primerioreactnative/components/manager/raw/PrimerRNHeadlessUniversalCheckoutRawManager.kt @@ -15,6 +15,8 @@ import com.primerioreactnative.datamodels.PrimerErrorRN import com.primerioreactnative.utils.convertJsonToMap import com.primerioreactnative.utils.errorTo import io.primer.android.ExperimentalPrimerApi +import io.primer.android.components.SdkUninitializedException +import io.primer.android.components.domain.exception.UnsupportedPaymentMethodManagerException import io.primer.android.components.manager.raw.PrimerHeadlessUniversalCheckoutRawDataManager import io.primer.android.components.manager.raw.PrimerHeadlessUniversalCheckoutRawDataManagerInterface import io.primer.android.data.payments.configure.retailOutlets.RetailOutletsList @@ -71,6 +73,10 @@ internal class PrimerRNHeadlessUniversalCheckoutRawManager( } } else promise.reject(error.errorId, error.description) } + } catch (e: SdkUninitializedException) { + promise.reject(ErrorTypeRN.UnitializedSdkSession.errorId, e.message, e) + } catch (e: UnsupportedPaymentMethodManagerException) { + promise.reject(ErrorTypeRN.UnsupportedPaymentMethod.errorId, e.message, e) } catch (e: Exception) { val exception = ErrorTypeRN.NativeBridgeFailed errorTo e.message.orEmpty() diff --git a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt index 3fed0d513..2e1c74a55 100644 --- a/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt +++ b/android/src/main/java/com/primerioreactnative/datamodels/PrimerErrorRN.kt @@ -13,4 +13,7 @@ data class PrimerErrorRN( @Serializable enum class ErrorTypeRN(val errorId: String) { NativeBridgeFailed("native-android"), + UnitializedSdkSession("uninitialized-sdk-session"), + UnsupportedPaymentMethod("unsupported-payment-method-type"), + UnsupportedPaymentIntent("unsupported-session-intent") } From 0755850890e46cbfdbf36346bc8acd995282f991 Mon Sep 17 00:00:00 2001 From: Semir Date: Tue, 17 Jan 2023 16:12:36 +0100 Subject: [PATCH 086/121] Updated Android SDK API --- android/build.gradle | 2 +- .../PrimerRNHeadlessUniversalCheckoutListener.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 006f10e78..0945e9c08 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -136,5 +136,5 @@ dependencies { api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3" - implementation 'io.primer:android:2.20.0-RC1' + implementation 'io.primer:android:2.20.0-RC1-SNAPSHOT' } diff --git a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt index f0d797ca9..d9e5c5f44 100644 --- a/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt +++ b/android/src/main/java/com/primerioreactnative/PrimerRNHeadlessUniversalCheckoutListener.kt @@ -174,7 +174,7 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou } } - override fun onResumeSuccess( + override fun onCheckoutResume( resumeToken: String, decisionHandler: PrimerHeadlessUniversalCheckoutResumeDecisionHandler ) { @@ -217,7 +217,7 @@ class PrimerRNHeadlessUniversalCheckoutListener : PrimerHeadlessUniversalCheckou } } - override fun onAdditionalInfoReceived(additionalInfo: PrimerCheckoutAdditionalInfo) { + override fun onCheckoutAdditionalInfoReceived(additionalInfo: PrimerCheckoutAdditionalInfo) { if (implementedRNCallbacks?.isOnCheckoutAdditionalInfoImplemented == true) { if (additionalInfo is PromptPayCheckoutAdditionalInfo) { sendEvent?.invoke( From acbb7296f804f273a8f179df67344e7cb540235d Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 23 Jan 2023 09:32:42 +0200 Subject: [PATCH 087/121] Update iOS dependency --- primer-io-react-native.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primer-io-react-native.podspec b/primer-io-react-native.podspec index 3cc8a48e1..5d6efda4c 100644 --- a/primer-io-react-native.podspec +++ b/primer-io-react-native.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,mm,swift}" s.dependency "React-Core" - s.dependency "PrimerSDK", "2.20.0-RC.1" + s.dependency "PrimerSDK", "2.17.0-rc.1" end From 526de0b876a42138ae988e39a3d23f42aaebfd6a Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 23 Jan 2023 09:45:58 +0200 Subject: [PATCH 088/121] Bump --- example_0_70_6/ios/Podfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_0_70_6/ios/Podfile b/example_0_70_6/ios/Podfile index 7f321cbfd..d076fbf53 100644 --- a/example_0_70_6/ios/Podfile +++ b/example_0_70_6/ios/Podfile @@ -27,7 +27,7 @@ target 'example_0_70_6' do ) pod 'primer-io-react-native', :path => '../..' - pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :tag => '2.20.0-rc.2' + # pod 'PrimerSDK', :git => 'https://github.com/primer-io/primer-sdk-ios.git', :tag => '2.20.0-rc.1' pod 'Primer3DS' pod 'PrimerIPay88SDK' pod 'PrimerKlarnaSDK' From 733005ee9be25cfdc2483f4540fca63b50dc09f3 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 23 Jan 2023 09:46:33 +0200 Subject: [PATCH 089/121] Bump --- example_0_70_6/Gemfile.lock | 100 ++++++++++++++++++ example_0_70_6/ios/Podfile.lock | 34 +++--- .../example_0_70_6.xcodeproj/project.pbxproj | 90 ++++++++-------- 3 files changed, 158 insertions(+), 66 deletions(-) create mode 100644 example_0_70_6/Gemfile.lock diff --git a/example_0_70_6/Gemfile.lock b/example_0_70_6/Gemfile.lock new file mode 100644 index 000000000..47e50cb9f --- /dev/null +++ b/example_0_70_6/Gemfile.lock @@ -0,0 +1,100 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.5) + rexml + activesupport (6.1.7.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + addressable (2.8.1) + public_suffix (>= 2.0.2, < 6.0) + algoliasearch (1.27.5) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) + atomos (0.1.3) + claide (1.1.0) + cocoapods (1.11.3) + addressable (~> 2.8) + claide (>= 1.0.2, < 2.0) + cocoapods-core (= 1.11.3) + cocoapods-deintegrate (>= 1.0.3, < 2.0) + cocoapods-downloader (>= 1.4.0, < 2.0) + cocoapods-plugins (>= 1.0.0, < 2.0) + cocoapods-search (>= 1.0.0, < 2.0) + cocoapods-trunk (>= 1.4.0, < 2.0) + cocoapods-try (>= 1.1.0, < 2.0) + colored2 (~> 3.1) + escape (~> 0.0.4) + fourflusher (>= 2.3.0, < 3.0) + gh_inspector (~> 1.0) + molinillo (~> 0.8.0) + nap (~> 1.0) + ruby-macho (>= 1.0, < 3.0) + xcodeproj (>= 1.21.0, < 2.0) + cocoapods-core (1.11.3) + activesupport (>= 5.0, < 7) + addressable (~> 2.8) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) + fuzzy_match (~> 2.0.4) + nap (~> 1.0) + netrc (~> 0.11) + public_suffix (~> 4.0) + typhoeus (~> 1.0) + cocoapods-deintegrate (1.0.5) + cocoapods-downloader (1.6.3) + cocoapods-plugins (1.0.0) + nap + cocoapods-search (1.0.1) + cocoapods-trunk (1.6.0) + nap (>= 0.8, < 2.0) + netrc (~> 0.11) + cocoapods-try (1.2.0) + colored2 (3.1.2) + concurrent-ruby (1.1.10) + escape (0.0.4) + ethon (0.16.0) + ffi (>= 1.15.0) + ffi (1.15.5) + fourflusher (2.3.1) + fuzzy_match (2.0.4) + gh_inspector (1.1.3) + httpclient (2.8.3) + i18n (1.12.0) + concurrent-ruby (~> 1.0) + json (2.3.0) + minitest (5.13.0) + molinillo (0.8.0) + nanaimo (0.3.0) + nap (1.1.0) + netrc (0.11.0) + public_suffix (4.0.7) + rexml (3.2.5) + ruby-macho (2.5.1) + typhoeus (1.4.0) + ethon (>= 0.9.0) + tzinfo (2.0.5) + concurrent-ruby (~> 1.0) + xcodeproj (1.22.0) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.3.0) + rexml (~> 3.2.4) + zeitwerk (2.6.6) + +PLATFORMS + ruby + +DEPENDENCIES + cocoapods (~> 1.11, >= 1.11.2) + +RUBY VERSION + ruby 2.7.5p203 + +BUNDLED WITH + 2.1.4 diff --git a/example_0_70_6/ios/Podfile.lock b/example_0_70_6/ios/Podfile.lock index f2e59e5a6..8606815e8 100644 --- a/example_0_70_6/ios/Podfile.lock +++ b/example_0_70_6/ios/Podfile.lock @@ -14,16 +14,16 @@ PODS: - KlarnaMobileSDK (2.2.2): - KlarnaMobileSDK/full (= 2.2.2) - KlarnaMobileSDK/full (2.2.2) - - primer-io-react-native (2.16.0): - - PrimerSDK (= 2.20.0-rc.2) + - primer-io-react-native (2.20.0-RC.1): + - PrimerSDK (= 2.17.0-rc.1) - React-Core - Primer3DS (1.0.3) - - PrimerIPay88SDK (0.1.2) - - PrimerKlarnaSDK (1.0.3): + - PrimerIPay88SDK (0.1.3) + - PrimerKlarnaSDK (1.0.4): - KlarnaMobileSDK (= 2.2.2) - - PrimerSDK (2.20.0-rc.2): - - PrimerSDK/Core (= 2.20.0-rc.2) - - PrimerSDK/Core (2.20.0-rc.2) + - PrimerSDK (2.17.0-rc.1): + - PrimerSDK/Core (= 2.17.0-rc.1) + - PrimerSDK/Core (2.17.0-rc.1) - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -326,7 +326,6 @@ DEPENDENCIES: - Primer3DS - PrimerIPay88SDK - PrimerKlarnaSDK - - PrimerSDK (from `https://github.com/primer-io/primer-sdk-ios.git`, tag `2.20.0-rc.2`) - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) @@ -368,6 +367,7 @@ SPEC REPOS: - Primer3DS - PrimerIPay88SDK - PrimerKlarnaSDK + - PrimerSDK EXTERNAL SOURCES: boost: @@ -382,9 +382,6 @@ EXTERNAL SOURCES: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" primer-io-react-native: :path: "../.." - PrimerSDK: - :git: https://github.com/primer-io/primer-sdk-ios.git - :tag: 2.20.0-rc.2 RCT-Folly: :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" RCTRequired: @@ -450,11 +447,6 @@ EXTERNAL SOURCES: Yoga: :path: "../node_modules/react-native/ReactCommon/yoga" -CHECKOUT OPTIONS: - PrimerSDK: - :git: https://github.com/primer-io/primer-sdk-ios.git - :tag: 2.20.0-rc.2 - SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 @@ -463,11 +455,11 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b KlarnaMobileSDK: 23b44390d06c6e3a90b5325bea6c10bf97ac6044 - primer-io-react-native: 21adf53714dd0bda11fd9685060e8c32bf344512 + primer-io-react-native: ff80a37b3c5d45a228972098a9ca3517278f93b9 Primer3DS: 895ab3a53731c87dfba26f30b70f59fcd590f94f - PrimerIPay88SDK: 4fe240e69c62bdb0aa56a81a9596538554fb435f - PrimerKlarnaSDK: a58cb321e0144cd473a250cfdcf5955c96b846c1 - PrimerSDK: 78f23fe2db91a1d3de87409401a3620315df4416 + PrimerIPay88SDK: 397deb847c703d5af19fb553fd06b54cc1cd53bc + PrimerKlarnaSDK: de4b8b8fda075e3e4ebbd4ab80bd141c76a30d85 + PrimerSDK: a4f7bb31ca036fb3d9acb7b3411aec945677772f RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a RCTTypeSafety: 27c2ac1b00609a432ced1ae701247593f07f901e @@ -501,6 +493,6 @@ SPEC CHECKSUMS: RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc -PODFILE CHECKSUM: 335fd5601007219eb1e64a3fc08eb48c6d964f40 +PODFILE CHECKSUM: 38360a596b16a72f7f1e661a4874df8021816f66 COCOAPODS: 1.11.3 diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj index 94b5fe219..237046fbb 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj @@ -7,13 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 001813F0B21556AB7401B73A /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; 00E356F31AD99517003FC87E /* example_0_70_6Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* example_0_70_6Tests.m */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - E3DFEE23A9AB4B1B8E7CADDA /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; - EEC482BEFD7AB8D6DD77FE0E /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */; }; + D27CA31E8BB137CD972063E0 /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,15 +36,15 @@ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example_0_70_6/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example_0_70_6/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example_0_70_6/main.m; sourceTree = ""; }; - 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; + 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; + 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; + 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example_0_70_6/LaunchScreen.storyboard; sourceTree = ""; }; 848652F22954A52C0071549C /* example_0_70_6.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = example_0_70_6.entitlements; path = example_0_70_6/example_0_70_6.entitlements; sourceTree = ""; }; - B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; - B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; - D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; + 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; - F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -52,7 +52,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E3DFEE23A9AB4B1B8E7CADDA /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, + 001813F0B21556AB7401B73A /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -60,7 +60,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - EEC482BEFD7AB8D6DD77FE0E /* libPods-example_0_70_6.a in Frameworks */, + D27CA31E8BB137CD972063E0 /* libPods-example_0_70_6.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -102,8 +102,8 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - B9D5F5EEBD6683538BA247BD /* libPods-example_0_70_6.a */, - 5E9A917336830EB9C1D72287 /* libPods-example_0_70_6-example_0_70_6Tests.a */, + 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */, + 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */, ); name = Frameworks; sourceTree = ""; @@ -142,10 +142,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */, - CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */, - B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, - D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, + 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */, + 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */, + 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, + 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -157,12 +157,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "example_0_70_6Tests" */; buildPhases = ( - 21D68EAD12BD4AB2065B141F /* [CP] Check Pods Manifest.lock */, + 1EA858D63CC3F1CA6ED23690 /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - 9DFA6965037F0360338E3A03 /* [CP] Embed Pods Frameworks */, - 9083A92ECC3AF6B4D01654E1 /* [CP] Copy Pods Resources */, + 49A10C4902E1968BA00016F2 /* [CP] Embed Pods Frameworks */, + DB9B11CAA4757BD5D5413D02 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -178,14 +178,14 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example_0_70_6" */; buildPhases = ( - 0F449B8A87984E1104B88E39 /* [CP] Check Pods Manifest.lock */, + 408BFC66F745D25499117B73 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 1BD55B84319F65AC0C78C8C3 /* [CP] Embed Pods Frameworks */, - FADB66330E52F59102CE3846 /* [CP] Copy Pods Resources */, + 3A8ECF00ADD518D5DE9C9EC9 /* [CP] Embed Pods Frameworks */, + AD75B61BCDFC19E87B8A06AD /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -268,7 +268,7 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 0F449B8A87984E1104B88E39 /* [CP] Check Pods Manifest.lock */ = { + 1EA858D63CC3F1CA6ED23690 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -283,14 +283,14 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-example_0_70_6Tests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 1BD55B84319F65AC0C78C8C3 /* [CP] Embed Pods Frameworks */ = { + 3A8ECF00ADD518D5DE9C9EC9 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -307,7 +307,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 21D68EAD12BD4AB2065B141F /* [CP] Check Pods Manifest.lock */ = { + 408BFC66F745D25499117B73 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -322,62 +322,62 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-example_0_70_6Tests-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-example_0_70_6-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 9083A92ECC3AF6B4D01654E1 /* [CP] Copy Pods Resources */ = { + 49A10C4902E1968BA00016F2 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 9DFA6965037F0360338E3A03 /* [CP] Embed Pods Frameworks */ = { + AD75B61BCDFC19E87B8A06AD /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources.sh\"\n"; showEnvVarsInLog = 0; }; - FADB66330E52F59102CE3846 /* [CP] Copy Pods Resources */ = { + DB9B11CAA4757BD5D5413D02 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-resources.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { @@ -432,7 +432,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B9685CE7C9C5C21FA1A1D7DE /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; + baseConfigurationReference = 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -459,7 +459,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D4A64AD425C6C330619F09B0 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; + baseConfigurationReference = 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; @@ -483,7 +483,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F5D5507B505E109BBA420E08 /* Pods-example_0_70_6.debug.xcconfig */; + baseConfigurationReference = 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -512,7 +512,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CF77B6722C3896D714B57498 /* Pods-example_0_70_6.release.xcconfig */; + baseConfigurationReference = 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; From fda18ebe5fbf596cd8c956dad795add18223cd7e Mon Sep 17 00:00:00 2001 From: Semir Date: Mon, 23 Jan 2023 09:34:09 +0100 Subject: [PATCH 090/121] Updated Android SDK version --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 0945e9c08..122521827 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -136,5 +136,5 @@ dependencies { api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3" - implementation 'io.primer:android:2.20.0-RC1-SNAPSHOT' + implementation 'io.primer:android:2.17.0-RC1' } From 359582ab04d4440ffa19d90a4fcac24b624c6a21 Mon Sep 17 00:00:00 2001 From: Evangelos Pittas Date: Mon, 23 Jan 2023 10:37:08 +0200 Subject: [PATCH 091/121] =?UTF-8?q?=F0=9F=91=8A=20v.2.17.0-rc.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 710bf18a3..fbba1ed68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer-io/react-native", - "version": "2.20.0-RC.1", + "version": "2.17.0-rc.1", "description": "Primer SDK for RN", "main": "lib/commonjs/index", "module": "lib/module/index", From 309a3696de718fd2fe325cca4d047dc7f02b01ae Mon Sep 17 00:00:00 2001 From: Semir Date: Wed, 8 Feb 2023 22:17:29 +0100 Subject: [PATCH 092/121] [CHKT-986] Added GH actions --- .github/workflows/android-preview.yml | 180 + .github/workflows/ios-appetize.yml | 145 + .github/workflows/ios-browserstack.yml | 179 + .github/workflows/preview.yml | 34 - Gemfile | 3 + Gemfile.lock | 55 +- example/src/models/Section.tsx | 4 +- example_0_70_6/App.tsx | 120 - example_0_70_6/__tests__/App-test.tsx | 2 +- .../example_0_70_6.xcodeproj/project.pbxproj | 20 +- .../xcschemes/example_0_70_6.xcscheme | 6 +- .../ios/example_0_70_6/Project.swift | 76 + .../ios/example_0_70_6/tuist-generate.sh | 13 + example_0_70_6/package.json | 4 +- example_0_70_6/src/models/Section.tsx | 1 + .../screens/RawAdyenBancontactCardScreen.tsx | 4 +- .../src/screens/RawRetailOutletScreen.tsx | 6 +- fastlane/AndroidFastFile | 103 + fastlane/Appfile | 2 +- fastlane/Fastfile | 81 +- fastlane/IOSFastFile | 230 + fastlane/MatchFile | 18 + fastlane/PluginFile | 6 + fastlane/README.md | 85 + fastlane/report.xml | 18 + package.json | 11 +- .../appetize-failure-report-script.js | 47 + .../appetize-success-report-script.js | 52 + src/PrimerInput.tsx | 4 + yarn.lock | 16385 ++++++++-------- 30 files changed, 9311 insertions(+), 8583 deletions(-) create mode 100644 .github/workflows/android-preview.yml create mode 100644 .github/workflows/ios-appetize.yml create mode 100644 .github/workflows/ios-browserstack.yml delete mode 100644 .github/workflows/preview.yml delete mode 100644 example_0_70_6/App.tsx create mode 100644 example_0_70_6/ios/example_0_70_6/Project.swift create mode 100644 example_0_70_6/ios/example_0_70_6/tuist-generate.sh create mode 100644 fastlane/AndroidFastFile create mode 100644 fastlane/IOSFastFile create mode 100644 fastlane/MatchFile create mode 100644 fastlane/PluginFile create mode 100644 fastlane/README.md create mode 100644 fastlane/report.xml create mode 100644 report-scripts/appetize-failure-report-script.js create mode 100644 report-scripts/appetize-success-report-script.js diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-preview.yml new file mode 100644 index 000000000..92ef24ae4 --- /dev/null +++ b/.github/workflows/android-preview.yml @@ -0,0 +1,180 @@ +name: Android Preview + +on: pull_request + +jobs: + android-distribute-to-appetize: + runs-on: ubuntu-latest + name: "Build and upload app to Appetize ๐Ÿš€" + steps: + + - name: Cancel previous jobs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.6" + bundler-cache: true + + - uses: actions/setup-ruby@v1 + with: + ruby-version: '2.6' + + - name: Install npm + run: | + npm config set legacy-peer-deps true install + + - run: npm install --save slack-message-builder + + - name: Install packages + run: | + yarn + + - name: Distribute the React Native Android app on Appetize and upload to BrowserStack ๐Ÿš€ + run: bundle exec fastlane android preview + env: + PR_NUMBER: ${{ github.event.pull_request.number }} + SOURCE_BRANCH: ${{ github.head_ref }} + APPETIZE_API_TOKEN: ${{ secrets.APPETIZE_API_TOKEN }} + BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} + BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} + + - name: Save Browserstack ID + uses: actions/upload-artifact@v3 + id: save_browserstack_id_step + with: + name: browserstack_id + path: /var/tmp/browserstack_id.txt + if-no-files-found: error + + - uses: peter-evans/find-comment@v2 + if: ${{ success() }} + id: find_comment + with: + issue-number: ${{ github.event.pull_request.number }} + body-includes: Appetize link + + - uses: peter-evans/create-or-update-comment@v2 + if: ${{ success() }} + with: + body: | + Appetize link: ${{ env.APPETIZE_APP_URL }} + edit-mode: replace + comment-id: ${{ steps.find_comment.outputs.comment-id }} + issue-number: ${{ github.event.pull_request.number }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Slack Success Summary Report + if: ${{ success() && github.event.pull_request.base.ref == 'master' }} + run: | + node report-scripts/appetize-success-report-script.js createAppetizeSummaryReport ${{ github.head_ref || github.ref_name }} 'RN Android' + - name: Slack Success Notification + if: ${{ success() && github.event.pull_request.base.ref == 'master' }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/appetize-success-link-summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create Slack Failure Summary Report + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + run: | + node report-scripts/appetize-failure-report-script.js createAppetizeSummaryReport ${{ github.head_ref || github.ref_name }} 'RN Android' + - name: Slack Notification + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/appetize-failure-link-summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + android-test-via-browserstack: + runs-on: ubuntu-latest + name: "Browserstack test" + needs: android-distribute-to-appetize + steps: + - name: Clone and launch Browserstack tests via Appium ๐Ÿงช + run: | + git clone -b develop https://project_41483872_bot:$GITLAB_TEMP_PATH@gitlab.com/primer-io/dx/mobile-appium-tests.git . + env: + GITLAB_TEMP_PATH: ${{ secrets.GITLAB_APPIUM_PULL_KEY }} + + - name: Retrieve Browserstack ID + uses: actions/download-artifact@v3 + with: + name: browserstack_id + path: /var/tmp + + - uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.6" + bundler-cache: true + + - uses: actions/setup-ruby@v1 + with: + ruby-version: '2.6' + + - name: Install npm + run: | + npm config set legacy-peer-deps true install + + - run: npm install --save slack-message-builder + + - name: Install packages + run: | + yarn + + - name: Run Appium Test + env: + BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} + BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} + run: | + export BROWSERSTACK_APP_ID=$(cat /var/tmp/browserstack_id.txt) + npx wdio config/wdio.rn.android.bs.conf.js + + - name: Create Slack Report + if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} + run: | + node report-script/slack-report-script.js createSlackReport 'RN Android' + + - name: Post summary message to a Slack channel + if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} + id: slack + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/slack-minimal_summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create Slack Failed Summary Report + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + run: | + node report-script/slack-failed-report-script.js createSlackFailedSummaryReport ${{ steps.slack.outputs.thread_ts }} + env: + BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} + BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + + - name: Post detailed summary to Slack channel thread + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + id: slack_thread + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/slack_failed_summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create and post Github summary + if: ${{ success() || failure() }} + run: | + node report-script/github-tests-summary-script.js createGithubSummaryReport + diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml new file mode 100644 index 000000000..bc3f5e788 --- /dev/null +++ b/.github/workflows/ios-appetize.yml @@ -0,0 +1,145 @@ +--- +name: iOS Appetize +on: pull_request +jobs: + build-and-upload-to-appetize: + runs-on: macos-latest + timeout-minutes: 30 + name: Build and upload app to Appetize ๐Ÿš€ + steps: + - name: Cancel previous jobs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Git Checkout + uses: actions/checkout@v3 + - name: Select Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa_github_actions + known_hosts: unnecessary + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.SSH_KEY }} + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.6" + bundler-cache: true + + - name: Get npm cache directory + id: npm-cache-dir + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} + + - name: Cache npm dependencies + uses: actions/cache@v3 + id: npm-cache + with: + path: ${{ steps.npm-cache-dir.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install npm + run: | + npm config set legacy-peer-deps true install + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + cache: 'yarn' + + - run: npm install --save slack-message-builder + + - name: Cache pods + uses: actions/cache@v3 + with: + path: | + ios/Pods + ~/Library/Caches/CocoaPods + ~/.cocoapods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Install packages + run: | + yarn + - name: Install Tuist.io + run: | + if [ ! -d ".tuist-bin" ] + then + curl -Ls https://install.tuist.io | bash + fi + - name: Create the Xcode project and workspace + run: sh ./example_0_70_6/ios/example_0_70_6/tuist-generate.sh is_ci + + - name: Create main.jsbundle + run: | + npm run build:ios:dev + - name: Distribute the React Native iOS app on Appetize ๐Ÿš€ + run: | + bundle exec fastlane ios appetize_build_and_upload + env: + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }} + FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} + FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }} + MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }} + MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} + APPETIZE_API_TOKEN: ${{ secrets.APPETIZE_API_TOKEN }} + SOURCE_BRANCH: ${{ github.head_ref }} + PR_NUMBER: ${{ github.event.pull_request.number }} + + - uses: peter-evans/find-comment@v2 + if: ${{ success() }} + id: find_comment + with: + issue-number: ${{ github.event.pull_request.number }} + body-includes: Appetize link + + - uses: peter-evans/create-or-update-comment@v2 + if: ${{ success() }} + with: + body: | + Appetize link: ${{ env.APPETIZE_APP_URL }} + edit-mode: replace + comment-id: ${{ steps.find_comment.outputs.comment-id }} + issue-number: ${{ github.event.pull_request.number }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Slack Success Summary Report + if: ${{ success() && github.event.pull_request.base.ref == 'master' }} + run: | + node Report\ Scripts/appetize-success-report-script.js createAppetizeSummaryReport ${{ github.head_ref || github.ref_name }} 'RN iOS' + - name: Slack Success Notification + if: ${{ success() && github.event.pull_request.base.ref == 'master' }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/appetize-success-link-summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create Slack Failure Summary Report + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + run: | + node Report\ Scripts/appetize-failure-report-script.js createAppetizeSummaryReport ${{ github.head_ref || github.ref_name }} 'RN iOS' + - name: Slack Notification + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/appetize-failure-link-summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Save Simulator app + uses: actions/upload-artifact@v3 + id: save_simulator_app_id_step + with: + name: PrimerSDK_Debug_Build + path: /var/tmp/PrimerSDK_Debug_Build.zip + if-no-files-found: error + diff --git a/.github/workflows/ios-browserstack.yml b/.github/workflows/ios-browserstack.yml new file mode 100644 index 000000000..e7809db08 --- /dev/null +++ b/.github/workflows/ios-browserstack.yml @@ -0,0 +1,179 @@ +--- +name: iOS BrowserStack +on: pull_request +jobs: + + build-and-upload-to-browserstack: + runs-on: macos-latest + timeout-minutes: 30 + name: Upload app to Browserstack + steps: + - name: Cancel previous jobs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Git - Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + - name: Select Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa_github_actions + known_hosts: unnecessary + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.SSH_KEY }} + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.6" + bundler-cache: true + + - name: Get npm cache directory + id: npm-cache-dir + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} + + - name: Cache npm dependencies + uses: actions/cache@v3 + id: npm-cache + with: + path: ${{ steps.npm-cache-dir.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install npm + run: | + npm config set legacy-peer-deps true install + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + cache: 'yarn' + + - run: npm install --save slack-message-builder + + - name: Cache pods + uses: actions/cache@v3 + with: + path: | + ios/Pods + ~/Library/Caches/CocoaPods + ~/.cocoapods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + + - name: Install packages + run: | + yarn + + - name: Install Tuist.io + run: | + if [ ! -d ".tuist-bin" ] + then + curl -Ls https://install.tuist.io | bash + fi + - name: Create the Xcode project and workspace + run: sh ./example_0_70_6/ios/example_0_70_6/tuist-generate.sh is_ci + + - name: Create main.jsbundle + run: | + npm run build:ios:release + + - name: Build and upload to Browserstack ๐Ÿš€ + run: | + bundle exec fastlane ios qa_release + env: + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }} + FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} + FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }} + MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }} + MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} + APPETIZE_API_TOKEN: ${{ secrets.APPETIZE_API_TOKEN }} + BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} + BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + SOURCE_BRANCH: ${{ github.head_ref }} + PR_NUMBER: ${{ github.event.pull_request.number }} + - name: Save Browserstack ID + uses: actions/upload-artifact@v3 + id: save_browserstack_id_step + with: + name: browserstack_id + path: /var/tmp/browserstack_id.txt + if-no-files-found: error + + test-via-browserstack: + runs-on: ubuntu-latest + needs: build-and-upload-to-browserstack + name: Browserstack test + steps: + - name: Clone and launch Browserstack tests via Appium ๐Ÿงช + run: | + git clone -b develop https://project_41483872_bot:$GITLAB_TEMP_PATH@gitlab.com/primer-io/dx/mobile-appium-tests.git . + env: + GITLAB_TEMP_PATH: ${{ secrets.GITLAB_APPIUM_PULL_KEY }} + + - name: Retrieve Browserstack ID + uses: actions/download-artifact@v3 + with: + name: browserstack_id + path: /var/tmp + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 18.3.0 + + - name: npm Install + run: npm install + + - name: Run Appium Test + env: + BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} + BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} + run: | + export BROWSERSTACK_APP_ID=$(cat /var/tmp/browserstack_id.txt) + npx wdio config/wdio.rn.ios.bs.conf.js + + - name: Create Slack Report + if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} + run: | + node report-script/slack-report-script.js createSlackReport 'RN iOS' + - name: Post summary message to a Slack channel + if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} + id: slack + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/slack-minimal_summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create Slack Failed Summary Report + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + run: | + node report-script/slack-failed-report-script.js createSlackFailedSummaryReport ${{ steps.slack.outputs.thread_ts }} + env: + BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} + BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + + - name: Post detailed summary to Slack channel thread + if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} + id: slack_thread + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_MOBILE_SDK_CHANNEL }} + payload-file-path: '/var/tmp/slack_failed_summary.json' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_REPORTER_BOT_TOKEN }} + + - name: Create and post Github summary + if: ${{ success() || failure() }} + run: | + node report-script/github-tests-summary-script.js createGithubSummaryReport diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index d7ffccd71..000000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Preview - -on: pull_request - -jobs: - distribute: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "2.6" - bundler-cache: true - - - uses: actions/setup-ruby@v1 - with: - ruby-version: '2.6' - - - name: Install npm - run: | - npm install - - - name: Install packages - run: | - yarn - - - name: Preview app on Appetize ๐Ÿš€ - run: bundle exec fastlane preview - env: - PR_NUMBER: ${{ github.event.pull_request.number }} - SOURCE_BRANCH: ${{ github.head_ref }} - APPETIZE_API_TOKEN: ${{ secrets.APPETIZE_API_TOKEN }} diff --git a/Gemfile b/Gemfile index 7a118b49b..2e84bc67e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ source "https://rubygems.org" gem "fastlane" + +plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'PluginFile') +eval_gemfile(plugins_path) if File.exist?(plugins_path) diff --git a/Gemfile.lock b/Gemfile.lock index 328997cb9..a251ac534 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,23 +1,23 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (3.0.5) + CFPropertyList (3.0.6) rexml addressable (2.8.1) public_suffix (>= 2.0.2, < 6.0) artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.2.0) - aws-partitions (1.655.0) - aws-sdk-core (3.166.0) + aws-partitions (1.706.0) + aws-sdk-core (3.170.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.59.0) + aws-sdk-kms (1.62.0) aws-sdk-core (~> 3, >= 3.165.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.117.1) + aws-sdk-s3 (1.119.0) aws-sdk-core (~> 3, >= 3.165.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.4) @@ -36,8 +36,8 @@ GEM unf (>= 0.0.5, < 1.0.0) dotenv (2.8.1) emoji_regex (3.2.3) - excon (0.93.1) - faraday (1.10.2) + excon (0.99.0) + faraday (1.10.3) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -66,7 +66,7 @@ GEM faraday_middleware (1.2.0) faraday (~> 1.0) fastimage (2.2.6) - fastlane (2.210.1) + fastlane (2.211.0) CFPropertyList (>= 2.3, < 4.0.0) addressable (>= 2.8, < 3.0.0) artifactory (~> 3.0) @@ -105,10 +105,13 @@ GEM xcodeproj (>= 1.13.0, < 2.0.0) xcpretty (~> 0.3.0) xcpretty-travis-formatter (>= 0.0.3) + fastlane-plugin-browserstack (0.3.2) + rest-client (~> 2.0, >= 2.0.2) + fastlane-plugin-firebase_app_distribution (0.4.2) gh_inspector (1.1.3) - google-apis-androidpublisher_v3 (0.30.0) + google-apis-androidpublisher_v3 (0.33.0) google-apis-core (>= 0.9.1, < 2.a) - google-apis-core (0.9.1) + google-apis-core (0.10.0) addressable (~> 2.5, >= 2.5.1) googleauth (>= 0.16.2, < 2.a) httpclient (>= 2.8.1, < 3.a) @@ -145,28 +148,38 @@ GEM os (>= 0.9, < 2.0) signet (>= 0.16, < 2.a) highline (2.0.3) + http-accept (1.7.0) http-cookie (1.0.5) domain_name (~> 0.5) httpclient (2.8.3) - jmespath (1.6.1) - json (2.6.2) - jwt (2.5.0) + jmespath (1.6.2) + json (2.6.3) + jwt (2.7.0) memoist (0.16.2) - mini_magick (4.11.0) + mime-types (3.4.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2022.0105) + mini_magick (4.12.0) mini_mime (1.1.2) multi_json (1.15.0) multipart-post (2.0.0) nanaimo (0.3.0) naturally (2.2.1) + netrc (0.11.0) optparse (0.1.1) os (1.1.4) plist (3.6.0) - public_suffix (5.0.0) + public_suffix (5.0.1) rake (13.0.6) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) uber (< 0.2.0) + rest-client (2.1.0) + http-accept (>= 1.7.0, < 2.0) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) retriable (3.1.2) rexml (3.2.5) rouge (2.0.7) @@ -178,7 +191,7 @@ GEM faraday (>= 0.17.5, < 3.a) jwt (>= 1.5, < 3.0) multi_json (~> 1.10) - simctl (1.6.8) + simctl (1.6.10) CFPropertyList naturally terminal-notifier (2.0.0) @@ -194,7 +207,7 @@ GEM unf_ext unf_ext (0.0.8.2) unicode-display_width (1.8.0) - webrick (1.7.0) + webrick (1.8.1) word_wrap (1.0.0) xcodeproj (1.22.0) CFPropertyList (>= 2.3.3, < 4.0) @@ -209,10 +222,16 @@ GEM xcpretty (~> 0.2, >= 0.0.7) PLATFORMS - arm64-darwin-21 + universal-darwin-21 + universal-darwin-22 + x86_64-darwin-19 + x86_64-darwin-20 + x86_64-linux DEPENDENCIES fastlane + fastlane-plugin-browserstack + fastlane-plugin-firebase_app_distribution BUNDLED WITH 2.3.7 diff --git a/example/src/models/Section.tsx b/example/src/models/Section.tsx index 768192b2a..ef62057d4 100644 --- a/example/src/models/Section.tsx +++ b/example/src/models/Section.tsx @@ -7,7 +7,9 @@ import { styles } from "../styles"; export const Section: React.FC<{ title: string; -}> = ({ children, title }) => { +}> = ({ + //@ts-ignore + children, title }) => { const isDarkMode = useColorScheme() === 'dark'; return ( diff --git a/example_0_70_6/App.tsx b/example_0_70_6/App.tsx deleted file mode 100644 index 753aeb865..000000000 --- a/example_0_70_6/App.tsx +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * - * Generated with the TypeScript template - * https://github.com/react-native-community/react-native-template-typescript - * - * @format - */ - -import React, {type PropsWithChildren} from 'react'; -import { - SafeAreaView, - ScrollView, - StatusBar, - StyleSheet, - Text, - useColorScheme, - View, -} from 'react-native'; - -import { - Colors, - DebugInstructions, - Header, - LearnMoreLinks, - ReloadInstructions, -} from 'react-native/Libraries/NewAppScreen'; - -const Section: React.FC< - PropsWithChildren<{ - title: string; - }> -> = ({children, title}) => { - const isDarkMode = useColorScheme() === 'dark'; - return ( - - - {title} - - - {children} - - - ); -}; - -const App = () => { - const isDarkMode = useColorScheme() === 'dark'; - - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, - }; - - return ( - - - -

- -
- Edit App.tsx to change this - screen and then come back to see your edits. -
-
- -
-
- -
-
- Read the docs to discover what to do next: -
- -
- - - ); -}; - -const styles = StyleSheet.create({ - sectionContainer: { - marginTop: 32, - paddingHorizontal: 24, - }, - sectionTitle: { - fontSize: 24, - fontWeight: '600', - }, - sectionDescription: { - marginTop: 8, - fontSize: 18, - fontWeight: '400', - }, - highlight: { - fontWeight: '700', - }, -}); - -export default App; diff --git a/example_0_70_6/__tests__/App-test.tsx b/example_0_70_6/__tests__/App-test.tsx index 178476699..4edaa0a8d 100644 --- a/example_0_70_6/__tests__/App-test.tsx +++ b/example_0_70_6/__tests__/App-test.tsx @@ -4,7 +4,7 @@ import 'react-native'; import React from 'react'; -import App from '../App'; +import App from '../src/App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj index 237046fbb..e6c026202 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj @@ -487,9 +487,11 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Manual; CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = N8UN9TR5DY; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = N8UN9TR5DY; ENABLE_BITCODE = NO; INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -502,8 +504,10 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = example_0_70_6; + PRODUCT_BUNDLE_IDENTIFIER = com.primerapi.example.rn; + PRODUCT_NAME = PrimerSDKExample; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.primerapi.example.rn"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -516,9 +520,11 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Manual; CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = N8UN9TR5DY; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = N8UN9TR5DY; INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -530,8 +536,10 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = example_0_70_6; + PRODUCT_BUNDLE_IDENTIFIER = com.primerapi.example.rn; + PRODUCT_NAME = PrimerSDKExample; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.primerapi.example.rn"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; diff --git a/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme b/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme index aba36d5d9..b1c51929e 100644 --- a/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme +++ b/example_0_70_6/ios/example_0_70_6.xcodeproj/xcshareddata/xcschemes/example_0_70_6.xcscheme @@ -15,7 +15,7 @@ @@ -55,7 +55,7 @@ @@ -82,7 +82,7 @@ diff --git a/example_0_70_6/ios/example_0_70_6/Project.swift b/example_0_70_6/ios/example_0_70_6/Project.swift new file mode 100644 index 000000000..d58d6007c --- /dev/null +++ b/example_0_70_6/ios/example_0_70_6/Project.swift @@ -0,0 +1,76 @@ +import ProjectDescription + +enum BaseSettings { + + static let appName = "RN Debug App" + + static let settingsDictionary: [String: SettingValue] = [ + "DEVELOPMENT_TEAM": .string("N8UN9TR5DY"), + "IPHONEOS_DEPLOYMENT_TARGET": .string("11.0") + ] +} + +enum AppSettings { + + static let settingsDictionary = SettingsDictionary() + .merging(BaseSettings.settingsDictionary) + .merging(["CODE_SIGN_IDENTITY": .string("Apple Development: DX Primer (8B5K7AGMS8)")]) + .manualCodeSigning(provisioningProfileSpecifier: "match Development com.primerapi.example.rn") + + static let settingsConfigurations: [Configuration] = [.debug(name: "Debug", settings: settingsDictionary), + .release(name: "Release", settings: settingsDictionary)] + + static let settings = Settings.settings(configurations: settingsConfigurations) +} + +enum TestAppSettings { + + static let settingsDictionary = SettingsDictionary() + .merging(BaseSettings.settingsDictionary) + + static let settingsConfigurations: [Configuration] = [.debug(name: "Debug", settings: settingsDictionary), + .release(name: "Release", settings: settingsDictionary)] + + static let settings = Settings.settings(configurations: settingsConfigurations) +} + +let project = Project( + name: "Primer.io Debug App", + organizationName: "Primer API Ltd", + targets: [ + Target( + name: BaseSettings.appName, + platform: .iOS, + product: .app, + bundleId: "com.primerapi.example.rn", + infoPlist: "Info.plist", + settings: AppSettings.settings + ), + Target( + name: "Debug App Tests", + platform: .iOS, + product: .unitTests, + bundleId: "com.primerapi.example.rnTests", + infoPlist: .default, + dependencies: [ + .target(name: BaseSettings.appName) + ], + settings: TestAppSettings.settings + ) + ], + schemes: [ + Scheme(name: BaseSettings.appName, + shared: true, + buildAction: .buildAction(targets: [TargetReference(stringLiteral: BaseSettings.appName)]), + testAction: .targets([TestableTarget(stringLiteral: BaseSettings.appName)]), + runAction: .runAction(executable: TargetReference(stringLiteral: BaseSettings.appName), + arguments: + Arguments(launchArguments: [ + LaunchArgument(name: "-PrimerDebugEnabled", isEnabled: true), + LaunchArgument(name: "-PrimerAnalyticsDebugEnabled", isEnabled: true) + ] + ) + ) + ) + ] +) diff --git a/example_0_70_6/ios/example_0_70_6/tuist-generate.sh b/example_0_70_6/ios/example_0_70_6/tuist-generate.sh new file mode 100644 index 000000000..61f5b54ff --- /dev/null +++ b/example_0_70_6/ios/example_0_70_6/tuist-generate.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Generate Example App project structure +# via Tuist and Project.swift schema + +internal_app_path="example_0_70_6/ios/example_0_70_6" + +if [[ $1 = "is_ci" ]]; then + tuist generate --path "$internal_app_path" --no-open +else + tuist generate --path "$internal_app_path" + (cd "$internal_app_path" && pod update) +fi diff --git a/example_0_70_6/package.json b/example_0_70_6/package.json index 89afef3c1..6c3afac0c 100644 --- a/example_0_70_6/package.json +++ b/example_0_70_6/package.json @@ -15,7 +15,9 @@ "clean-run-android": "yarn clean-install && npx react-native run-android", "clean-ios": "cd ios && pod deintegrate && rm -rf Podfile.lock && cd ..", "clean-install-ios": "yarn run clean-ios && cd ios && pod install --repo-update && cd ..", - "clean-run-ios": "yarn clean-install && npx react-native run-ios" + "clean-run-ios": "yarn clean-install && npx react-native run-ios", + "build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=true --platform='ios'", + "build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'" }, "dependencies": { "@react-native-community/cli-platform-android": "^10.0.0", diff --git a/example_0_70_6/src/models/Section.tsx b/example_0_70_6/src/models/Section.tsx index 768192b2a..ac1987b43 100644 --- a/example_0_70_6/src/models/Section.tsx +++ b/example_0_70_6/src/models/Section.tsx @@ -7,6 +7,7 @@ import { styles } from "../styles"; export const Section: React.FC<{ title: string; + //@ts-ignore }> = ({ children, title }) => { const isDarkMode = useColorScheme() === 'dark'; return ( diff --git a/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx index 0f6d85e1d..407dd201b 100644 --- a/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx +++ b/example_0_70_6/src/screens/RawAdyenBancontactCardScreen.tsx @@ -8,8 +8,8 @@ import { import { ActivityIndicator } from 'react-native'; import { InputElementType, - BancontactCardRedirectData, RawDataManager, + BancontactCardData } from '@primer-io/react-native'; import TextField from '../components/TextField'; import { styles } from '../styles'; @@ -68,7 +68,7 @@ const RawAdyenBancontactCardScreen = (props: any) => { tmpExpiryDate: string | null, tmpCardholderName: string | null ) => { - let rawData: BancontactCardRedirectData = { + let rawData: BancontactCardData = { cardNumber: cardNumber || "", expiryDate: expiryDate || "", cardholderName: cardholderName || "" diff --git a/example_0_70_6/src/screens/RawRetailOutletScreen.tsx b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx index 2b2922aa0..9f7e4325f 100644 --- a/example_0_70_6/src/screens/RawRetailOutletScreen.tsx +++ b/example_0_70_6/src/screens/RawRetailOutletScreen.tsx @@ -53,12 +53,12 @@ const RawRetailOutletScreen = (props: any) => { }) }); - if (response?.initializationData) { + if (response && response.initializationData) { //@ts-ignore const retailers: any[] = response.initializationData.result; setRetailers(retailers); } - + const requiredInputElementTypes = await rawDataManager.getRequiredInputElementTypes(); setRequiredInputElementTypes(requiredInputElementTypes); } @@ -159,7 +159,7 @@ const RawRetailOutletScreen = (props: any) => { return ( - diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile new file mode 100644 index 000000000..f76a6861d --- /dev/null +++ b/fastlane/AndroidFastFile @@ -0,0 +1,103 @@ +require 'net/http' + +default_platform(:android) + +platform :android do + + def set_version_name (version_name) + path = '../example_0_70_6/android/app/build.gradle' + re = /versionName\s+\"(\S+)\"/ + + s = File.read(path) + s[re, 1] = version_name + + f = File.new(path, 'w') + f.write(s) + f.close + end + + def set_version_code (version_code) + path = '../example_0_70_6/android/app/build.gradle' + re = /versionCode\s+(\d+)/ + + s = File.read(path) + s[re, 1] = version_code.to_s + + f = File.new(path, 'w') + f.write(s) + f.close + end + + def get_sdk_version_name () + path = '../example_0_70_6/android/app/gradle.properties' + re = /VERSION\_NAME=(\S+)/ + + s = File.read(path) + return s[re, 1] + end + + lane :preview do + pr_number = ENV["PR_NUMBER"] + if(!pr_number) then + puts "NO PR NUMBER" + next + end + + appetize_api_token = ENV['APPETIZE_API_TOKEN'] + + puts "PR_NUMBER: " + pr_number + version_name = "preview-" + pr_number + + time = Time.new + str_time = time.strftime("%Y-%m-%d %H:%M:%S") + + # Set timestamp as version_code to differentiate builds in firebase + version_code = time.to_i + + set_version_name version_name + set_version_code version_code + + gradle(task: "clean assembleRelease", project_dir: 'example_0_70_6/android/') + + upload_to_browserstack_app_automate( + browserstack_username: ENV["BROWSERSTACK_USERNAME"], + browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"] + ) + + save_browserstack_id(browserstack_id: ENV['BROWSERSTACK_APP_ID']) + + sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] + pr_number = ENV['PR_NUMBER'] + + uri = URI('https://livedemostore.primer.io/appetize/rn-android/' + version_name) + public_key = Net::HTTP.get(uri) # => String + puts "public_key: " + public_key + + appetize( + path: "./example_0_70_6/android/app/build/outputs/apk/release/app-release.apk", + platform: "android", + api_token: appetize_api_token, + public_key: public_key, + note: version_name, + timeout: 300 + ) + update_deployment_url(lane_context[SharedValues::APPETIZE_APP_URL]) + end + + + desc 'Store the Browserstack ID into a file' + private_lane :save_browserstack_id do |options| + + browserstack_id_to_save = options[:browserstack_id] + browserstack_id_file = "/var/tmp/browserstack_id.txt" + + UI.message("Saving #{browserstack_id_to_save} into #{browserstack_id_file}") + + File.open(browserstack_id_file, 'w') { |file| file.write(options[:browserstack_id]) } + + end + + def update_deployment_url(pub_url) + sh("echo APPETIZE_APP_URL=#{pub_url} >> $GITHUB_ENV") + end +end diff --git a/fastlane/Appfile b/fastlane/Appfile index 0ae482f32..84125c51c 100644 --- a/fastlane/Appfile +++ b/fastlane/Appfile @@ -1,2 +1,2 @@ json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one -package_name("io.primer.ReactNativeExample") # e.g. com.krausefx.app +package_name("com.primerapi.example.rn") diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 461c3e8a0..5dd957163 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,78 +1,15 @@ -require 'net/http' +import "AndroidFastFile" +import "IOSFastFile" -default_platform(:android) +platform :ios do -platform :android do - - def set_version_name (version_name) - path = '../example/android/app/build.gradle' - re = /versionName\s+\"(\S+)\"/ - - s = File.read(path) - s[re, 1] = version_name - - f = File.new(path, 'w') - f.write(s) - f.close - end - - def set_version_code (version_code) - path = '../example/android/app/build.gradle' - re = /versionCode\s+(\d+)/ - - s = File.read(path) - s[re, 1] = version_code.to_s - - f = File.new(path, 'w') - f.write(s) - f.close - end - - def get_sdk_version_name () - path = '../example/android/app/gradle.properties' - re = /VERSION\_NAME=(\S+)/ - - s = File.read(path) - return s[re, 1] - end - - lane :preview do - pr_number = ENV["PR_NUMBER"] - if(!pr_number) then - puts "NO PR NUMBER" - next - end - - appetize_api_token = ENV['APPETIZE_API_TOKEN'] - - puts "PR_NUMBER: " + pr_number - version_name = "preview-" + pr_number - - time = Time.new - str_time = time.strftime("%Y-%m-%d %H:%M:%S") - - # Set timestamp as version_code to differentiate builds in firebase - version_code = time.to_i - - set_version_name version_name - set_version_code version_code - - gradle(task: "clean assembleRelease", project_dir: 'example/android/') - - sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] - pr_number = ENV['PR_NUMBER'] +end - uri = URI('https://livedemostore.primer.io/appetize/android/' + version_name) - public_key = Net::HTTP.get(uri) # => String - puts "public_key: " + public_key +platform :android do - appetize( - path: "./example/android/app/build/outputs/apk/release/app-release.apk", - platform: "android", - api_token: appetize_api_token, - public_key: public_key, - note: version_name - ) - end + desc 'Upload the React Native Android build to Appetize' + lane :upload_build_to_appetize do + preview + end end diff --git a/fastlane/IOSFastFile b/fastlane/IOSFastFile new file mode 100644 index 000000000..c82059cc5 --- /dev/null +++ b/fastlane/IOSFastFile @@ -0,0 +1,230 @@ +#----------------------- CONSTANTS -------------------------# + +ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120" + +# Appetize +appetize_api_token = ENV['APPETIZE_API_TOKEN'] + +# Github +github_run_id = ENV["GITHUB_RUN_ID"] +github_run_number = ENV["GITHUB_RUN_NUMBER"] + +# Xcode +app_workspace = "example_0_70_6/ios/example_0_70_6.xcworkspace" +app_xcode_proj = "example_0_70_6/ios/example_0_70_6.xcodeproj" +app_scheme = "example_0_70_6" + +# Packages +app_output_path = "/var/tmp/Primer.io_ReactNativeExample.xcarchive/Products/Applications/PrimerSDKExample.app" +app_output_archive_path = "/var/tmp/Primer.io_ReactNativeExample.xcarchive" + +# Utils +sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] +pr_number = ENV['PR_NUMBER'] + +#--------------------- END CONSTANTS -----------------------# + +#----------------------- FASTLANE -------------------------# + +platform :ios do + +###################### PUBLIC LANES ####################### + + lane :tests do + run_tests(workspace: app_workspace) + end + + lane :ui_tests do + run_tests(workspace: app_workspace, + devices: ["iPhone SE", "iPhone 8"]) + end + + lane :danger_check do + + danger( + danger_id: "check_on_all_prs", + dangerfile: "Dangerfile", + github_api_token: ENV["GITHUB_TOKEN"], + verbose: true, + remove_previous_comments: true + ) + + end + + lane :qa_release do + + common_pre_build_action + + # Build for browserstack + build_app( + scheme: app_scheme, + workspace: app_workspace, + configuration: "Debug", + include_bitcode: false, + export_method: "development", + skip_package_dependencies_resolution: true, + ) + + # Upload to Browserstack + upload_to_browserstack_and_save_id( + file_path: ENV["IPA_OUTPUT_PATH"] + ) + + end + + desc 'This action builds the app and uplads it to Appetize' + lane :appetize_build_and_upload do + + common_pre_build_action + + # Build for appetize + + build_app( + scheme: app_scheme, + sdk: "iphonesimulator", # Appetize needs a simulator app + workspace: app_workspace, + configuration: "Debug", + destination: "generic/platform=iOS Simulator", + xcargs: "EXCLUDED_ARCHS[sdk=iphonesimulator*]=arm64", + include_bitcode: false, + export_method: "development", + archive_path: app_output_archive_path, + # Build speed optimisation + skip_package_ipa: true, + skip_package_pkg: true, + skip_package_dependencies_resolution: true, + silent: true + ) + + # Appetize needs the .app to be zipped + + zip_path = "./PrimerSDK_Debug_Build.zip" + + zip( + path: app_output_path, + output_path: zip_path, + symlinks: true + ) + + # Find public key of appetize + uri = URI('https://livedemostore.primer.io/appetize/ios_rn/preview_' + "#{pr_number}_#{github_run_id}_#{github_run_number}") + public_key = Net::HTTP.get(uri) + puts "public_key: " + public_key + + # Upload to Appetize + appetize( + path: zip_path, + platform: "ios", + api_token: appetize_api_token, + public_key: public_key, + note: sdk_version_name_source_branch + ) + + save_simulator_app(app_path: zip_path) + update_deployment_url(lane_context[SharedValues::APPETIZE_APP_URL]) + + end + + ######################### PRIVATE LANES ######################### + + desc 'Common build pre-action' + private_lane :common_pre_build_action do + + set_version_and_build_number + + setup_signing( + match_type: "development" + ) + + end + + desc 'This action uploads the .ipa to Browserstack and save its ID into a file' + private_lane :upload_to_browserstack_and_save_id do |options| + + upload_to_browserstack_app_automate( + browserstack_username: ENV["BROWSERSTACK_USERNAME"], + browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"], + file_path: options[:file_path] + ) + + save_browserstack_id(browserstack_id: ENV['BROWSERSTACK_APP_ID']) + + end + + desc 'This action creates a temporary keychain and installs certificates and provisioning profiles' + private_lane :setup_signing do |options| + + create_keychain( + name: ENV["MATCH_KEYCHAIN_NAME"], + password: ENV["MATCH_KEYCHAIN_PASSWORD"], + default_keychain: true, + unlock: true, + timeout: 3600, + lock_when_sleeps: true + ) + + match( + type: options[:match_type], + readonly: true, + keychain_name: ENV["MATCH_KEYCHAIN_NAME"], + keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"], + ) + + end + + desc 'This action sets the version and build number' + private_lane :set_version_and_build_number do + + # We don't really need the version number + # at this moment. + # The Build number is the unique identifier of the package + # matching the Github Workflow run ID and number + + # Set version number + # increment_version_number( + # version_number: sdk_version_name_source_branch, + # xcodeproj: app_xcode_proj + # ) + + # Set build number + increment_build_number( + build_number: "#{github_run_id}.#{github_run_number}", + xcodeproj: app_xcode_proj + ) + + end + + desc 'Store the Browserstack ID into a file' + private_lane :save_browserstack_id do |options| + + browserstack_id_to_save = options[:browserstack_id] + browserstack_id_file = "/var/tmp/browserstack_id.txt" + + UI.message("Saving #{browserstack_id_to_save} into #{browserstack_id_file}") + + File.open(browserstack_id_file, 'w') { |file| file.write(options[:browserstack_id]) } + + end + + desc 'Store the Appetize generated .app file' + private_lane :save_simulator_app do |options| + + app_path = options[:app_path] + + UI.message("Storing the simulator app: #{app_path}") + + copy_artifacts( + target_path: "/var/tmp/", + artifacts: [app_path] + ) + + end + + ################## END PRIVATE LANES ###################### + + def update_deployment_url(pub_url) + sh("echo APPETIZE_APP_URL=#{pub_url} >> $GITHUB_ENV") + end +end + +#--------------------- END FASTLANE ------------------------# diff --git a/fastlane/MatchFile b/fastlane/MatchFile new file mode 100644 index 000000000..758455392 --- /dev/null +++ b/fastlane/MatchFile @@ -0,0 +1,18 @@ +git_url("git@github.com:primer-io/ios_sdk_match_repo.git") + +storage_mode("git") + +type("development") # The default type, can be: appstore, adhoc, enterprise or development + +app_identifier("com.primerapi.example.rn") +username("sdk@primer.io") # Your Apple Developer Portal username + +platform("ios") +shallow_clone true +force_for_new_devices true +clone_branch_directly true + +# For all available options run `fastlane match --help` +# Remove the # in the beginning of the line to enable the other options + +# The docs are available on https://docs.fastlane.tools/actions/match diff --git a/fastlane/PluginFile b/fastlane/PluginFile new file mode 100644 index 000000000..fecddf956 --- /dev/null +++ b/fastlane/PluginFile @@ -0,0 +1,6 @@ +# Autogenerated by fastlane +# +# Ensure this file is checked in to source control! + +gem 'fastlane-plugin-firebase_app_distribution' +gem 'fastlane-plugin-browserstack' diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 000000000..b8bde17a7 --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,85 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## Android + +### android preview + +```sh +[bundle exec] fastlane android preview +``` + + + +### android upload_build_to_appetize + +```sh +[bundle exec] fastlane android upload_build_to_appetize +``` + +Upload the React Native Android build to Appetize + +---- + + +## iOS + +### ios tests + +```sh +[bundle exec] fastlane ios tests +``` + + + +### ios ui_tests + +```sh +[bundle exec] fastlane ios ui_tests +``` + + + +### ios danger_check + +```sh +[bundle exec] fastlane ios danger_check +``` + + + +### ios qa_release + +```sh +[bundle exec] fastlane ios qa_release +``` + + + +### ios appetize_build_and_upload + +```sh +[bundle exec] fastlane ios appetize_build_and_upload +``` + +This action builds the app and uplads it to Appetize + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). diff --git a/fastlane/report.xml b/fastlane/report.xml new file mode 100644 index 000000000..04f9633fa --- /dev/null +++ b/fastlane/report.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/package.json b/package.json index fbba1ed68..85a471eb0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "ios", "cpp", "primer-io-react-native.podspec", - "!lib/typescript/example", + "!lib/typescript/example_0_70_6", "!android/build", "!ios/build", "!**/__tests__", @@ -27,10 +27,11 @@ "lint": "eslint \"**/*.{js,ts,tsx}\"", "prepare": "bob build", "release": "release-it", - "example": "yarn --cwd example", - "pods": "cd example && pod-install --quiet", + "example": "yarn --cwd example_0_70_6", + "pods": "cd example_0_70_6 && pod-install --quiet", "bootstrap": "yarn example && yarn && yarn pods", - "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'" + "build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./example_0_70_6/ios/main.jsbundle' --dev=true --platform='ios'", + "build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./example_0_70_6/ios/main.jsbundle' --dev=false --platform='ios'" }, "keywords": [ "react-native", @@ -76,7 +77,7 @@ "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ - "/example/node_modules", + "/example_0_70_6/node_modules", "/lib/" ] }, diff --git a/report-scripts/appetize-failure-report-script.js b/report-scripts/appetize-failure-report-script.js new file mode 100644 index 000000000..c03e9c490 --- /dev/null +++ b/report-scripts/appetize-failure-report-script.js @@ -0,0 +1,47 @@ +const fs = require('fs'); +const smb = require('slack-message-builder') + +const FAILED_SUMMARY_FILE_PATH = '/var/tmp/appetize-failure-link-summary.json' + +createAppetizeSummaryReport(process.argv[3],process.argv[4]) + +async function createAppetizeSummaryReport(branch, platform) { + fs.writeFileSync(FAILED_SUMMARY_FILE_PATH, JSON.stringify(createAppetizeSummary(branch, platform))); +} + +function createAppetizeSummary(branch, platform) { + return smb() + .attachment() + .mrkdwnIn(["title"]) + .color("#ff0000") + .title(`Failed to generate Appetize link for branch ${branch}.`) + .authorName(process.env.GITHUB_ACTOR) + .authorLink(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_ACTOR}`) + .authorIcon(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_ACTOR}.png?size=32`) + .field() + .title("Ref") + .value(process.env.GITHUB_REF) + .short(true) + .end() + .field() + .title("Actions URL") + .value( + `<${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}|${process.env.GITHUB_WORKFLOW}>` + ) + .short(true) + .end() + .field() + .title("Commit") + .value( + `<${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/commit/${process.env.GITHUB_SHA}|${process.env.GITHUB_SHA.slice(0,6)}>` + ) + .short(true) + .end() + .field() + .title("Platform") + .value(platform) + .short(true) + .end() + .end() + .json() +} diff --git a/report-scripts/appetize-success-report-script.js b/report-scripts/appetize-success-report-script.js new file mode 100644 index 000000000..8264ef34c --- /dev/null +++ b/report-scripts/appetize-success-report-script.js @@ -0,0 +1,52 @@ +const fs = require('fs'); +const smb = require('slack-message-builder') + +const SUCCESS_SUMMARY_FILE_PATH = '/var/tmp/appetize-success-link-summary.json' + +createAppetizeSummaryReport(process.argv[3], process.argv[4]) + +async function createAppetizeSummaryReport(branch, platform) { + fs.writeFileSync(SUCCESS_SUMMARY_FILE_PATH, JSON.stringify(createAppetizeSummary(branch, platform))); +} + +function createAppetizeSummary(branch, platform) { + return smb() + .attachment() + .mrkdwnIn(["title"]) + .color("#36a64f") + .title(`Successfully generated Appetize link for branch ${branch}.`) + .authorName(process.env.GITHUB_ACTOR) + .authorLink(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_ACTOR}`) + .authorIcon(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_ACTOR}.png?size=32`) + .field() + .title("Appetize URL") + .value(`<${process.env.APPETIZE_APP_URL}|${process.env.APPETIZE_APP_URL.slice(-6)}>`) + .short(true) + .end() + .field() + .title("Ref") + .value(process.env.GITHUB_REF) + .short(true) + .end() + .field() + .title("Actions URL") + .value( + `<${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}|${process.env.GITHUB_WORKFLOW}>` + ) + .short(true) + .end() + .field() + .title("Commit") + .value( + `<${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/commit/${process.env.GITHUB_SHA}|${process.env.GITHUB_SHA.slice(0,6)}>` + ) + .short(true) + .end() + .field() + .title("Platform") + .value(platform) + .short(true) + .end() + .end() + .json() +} diff --git a/src/PrimerInput.tsx b/src/PrimerInput.tsx index 9f8942fe9..4fbf5dd0a 100644 --- a/src/PrimerInput.tsx +++ b/src/PrimerInput.tsx @@ -22,6 +22,7 @@ export const PrimerCardNumberEditText: React.FC = }, []); const rawComponent = ( + //@ts-ignore ); @@ -45,6 +46,7 @@ export const PrimerCardholderNameEditText: React.FC PrimerRN.removeInput(tag); }, []); + //@ts-ignore return ; }; @@ -58,6 +60,7 @@ type PrimerExpiryEditTextProps = ViewProps; export const PrimerExpiryEditText: React.FC = ( props ) => { + //@ts-ignore return ; }; @@ -69,5 +72,6 @@ export const PrimerCvvEditTextRaw = requireNativeComponent<{}>( type PrimerCvvEditTextProps = ViewProps; export const PrimerCvvEditText: React.FC = (props) => { + //@ts-ignore return ; }; diff --git a/yarn.lock b/yarn.lock index c64ca6646..5977d5466 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,29 +3,29 @@ "@ampproject/remapping@^2.1.0": - "integrity" "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==" - "resolved" "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz" - "version" "2.2.0" + version "2.2.0" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== dependencies: "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": - "integrity" "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==" - "resolved" "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== dependencies: "@babel/highlight" "^7.18.6" "@babel/compat-data@^7.17.7", "@babel/compat-data@^7.19.4", "@babel/compat-data@^7.20.0": - "integrity" "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==" - "resolved" "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz" + integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== -"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.12.0", "@babel/core@^7.13.0", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.18.5", "@babel/core@^7.4.0-0", "@babel/core@^7.7.5": - "integrity" "sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg==" - "resolved" "https://registry.npmjs.org/@babel/core/-/core-7.19.6.tgz" - "version" "7.19.6" +"@babel/core@^7.1.0", "@babel/core@^7.13.16", "@babel/core@^7.14.0", "@babel/core@^7.18.5", "@babel/core@^7.7.5": + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.19.6.tgz" + integrity sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg== dependencies: "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.18.6" @@ -37,50 +37,50 @@ "@babel/template" "^7.18.10" "@babel/traverse" "^7.19.6" "@babel/types" "^7.19.4" - "convert-source-map" "^1.7.0" - "debug" "^4.1.0" - "gensync" "^1.0.0-beta.2" - "json5" "^2.2.1" - "semver" "^6.3.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" "@babel/generator@^7.14.0", "@babel/generator@^7.19.6", "@babel/generator@^7.20.1": - "integrity" "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==" - "resolved" "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz" + integrity sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg== dependencies: "@babel/types" "^7.20.0" "@jridgewell/gen-mapping" "^0.3.2" - "jsesc" "^2.5.1" + jsesc "^2.5.1" "@babel/helper-annotate-as-pure@^7.18.6": - "integrity" "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==" - "resolved" "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz" + integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== dependencies: "@babel/types" "^7.18.6" "@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": - "integrity" "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==" - "resolved" "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz" + integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== dependencies: "@babel/helper-explode-assignable-expression" "^7.18.6" "@babel/types" "^7.18.9" "@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.19.0", "@babel/helper-compilation-targets@^7.19.3": - "integrity" "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==" - "resolved" "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz" + integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== dependencies: "@babel/compat-data" "^7.20.0" "@babel/helper-validator-option" "^7.18.6" - "browserslist" "^4.21.3" - "semver" "^6.3.0" + browserslist "^4.21.3" + semver "^6.3.0" "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.19.0": - "integrity" "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==" - "resolved" "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz" + integrity sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-environment-visitor" "^7.18.9" @@ -91,70 +91,70 @@ "@babel/helper-split-export-declaration" "^7.18.6" "@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": - "integrity" "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==" - "resolved" "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz" + integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" - "regexpu-core" "^5.1.0" + regexpu-core "^5.1.0" "@babel/helper-define-polyfill-provider@^0.3.3": - "integrity" "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==" - "resolved" "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz" - "version" "0.3.3" + version "0.3.3" + resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz" + integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== dependencies: "@babel/helper-compilation-targets" "^7.17.7" "@babel/helper-plugin-utils" "^7.16.7" - "debug" "^4.1.1" - "lodash.debounce" "^4.0.8" - "resolve" "^1.14.2" - "semver" "^6.1.2" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" "@babel/helper-environment-visitor@^7.18.9": - "integrity" "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" - "resolved" "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== "@babel/helper-explode-assignable-expression@^7.18.6": - "integrity" "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==" - "resolved" "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz" + integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== dependencies: "@babel/types" "^7.18.6" "@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0": - "integrity" "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==" - "resolved" "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz" + integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== dependencies: "@babel/template" "^7.18.10" "@babel/types" "^7.19.0" "@babel/helper-hoist-variables@^7.18.6": - "integrity" "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==" - "resolved" "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== dependencies: "@babel/types" "^7.18.6" "@babel/helper-member-expression-to-functions@^7.18.9": - "integrity" "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==" - "resolved" "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz" + integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== dependencies: "@babel/types" "^7.18.9" "@babel/helper-module-imports@^7.18.6": - "integrity" "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==" - "resolved" "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== dependencies: "@babel/types" "^7.18.6" "@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.19.6": - "integrity" "sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw==" - "resolved" "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz" + integrity sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw== dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-module-imports" "^7.18.6" @@ -166,21 +166,21 @@ "@babel/types" "^7.19.4" "@babel/helper-optimise-call-expression@^7.18.6": - "integrity" "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==" - "resolved" "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz" + integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== dependencies: "@babel/types" "^7.18.6" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - "integrity" "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==" - "resolved" "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz" + integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== "@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": - "integrity" "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==" - "resolved" "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz" + integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-environment-visitor" "^7.18.9" @@ -188,9 +188,9 @@ "@babel/types" "^7.18.9" "@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": - "integrity" "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==" - "resolved" "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz" - "version" "7.19.1" + version "7.19.1" + resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz" + integrity sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw== dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-member-expression-to-functions" "^7.18.9" @@ -199,45 +199,45 @@ "@babel/types" "^7.19.0" "@babel/helper-simple-access@^7.19.4": - "integrity" "sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg==" - "resolved" "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz" - "version" "7.19.4" + version "7.19.4" + resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz" + integrity sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg== dependencies: "@babel/types" "^7.19.4" "@babel/helper-skip-transparent-expression-wrappers@^7.18.9": - "integrity" "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==" - "resolved" "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz" + integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== dependencies: "@babel/types" "^7.20.0" "@babel/helper-split-export-declaration@^7.18.6": - "integrity" "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==" - "resolved" "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== dependencies: "@babel/types" "^7.18.6" "@babel/helper-string-parser@^7.19.4": - "integrity" "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" - "resolved" "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz" - "version" "7.19.4" + version "7.19.4" + resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz" + integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - "integrity" "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - "resolved" "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" - "version" "7.19.1" + version "7.19.1" + resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" + integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== "@babel/helper-validator-option@^7.18.6": - "integrity" "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==" - "resolved" "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== "@babel/helper-wrap-function@^7.18.9": - "integrity" "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==" - "resolved" "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz" + integrity sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg== dependencies: "@babel/helper-function-name" "^7.19.0" "@babel/template" "^7.18.10" @@ -245,48 +245,48 @@ "@babel/types" "^7.19.0" "@babel/helpers@^7.19.4": - "integrity" "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==" - "resolved" "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz" + integrity sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg== dependencies: "@babel/template" "^7.18.10" "@babel/traverse" "^7.20.1" "@babel/types" "^7.20.0" "@babel/highlight@^7.18.6": - "integrity" "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==" - "resolved" "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== dependencies: "@babel/helper-validator-identifier" "^7.18.6" - "chalk" "^2.0.0" - "js-tokens" "^4.0.0" + chalk "^2.0.0" + js-tokens "^4.0.0" "@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.0", "@babel/parser@^7.18.10", "@babel/parser@^7.19.6", "@babel/parser@^7.20.1", "@babel/parser@^7.7.0": - "integrity" "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==" - "resolved" "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz" + integrity sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": - "integrity" "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz" + integrity sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.18.9": - "integrity" "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz" + integrity sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-proposal-optional-chaining" "^7.18.9" "@babel/plugin-proposal-async-generator-functions@^7.0.0", "@babel/plugin-proposal-async-generator-functions@^7.19.1": - "integrity" "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz" + integrity sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g== dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-plugin-utils" "^7.19.0" @@ -294,82 +294,82 @@ "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.17.12", "@babel/plugin-proposal-class-properties@^7.18.6": - "integrity" "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-proposal-class-static-block@^7.18.6": - "integrity" "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz" + integrity sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw== dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-proposal-dynamic-import@^7.18.6": - "integrity" "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz" + integrity sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-proposal-export-default-from@^7.0.0": - "integrity" "sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz" - "version" "7.18.10" + version "7.18.10" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz" + integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-export-default-from" "^7.18.6" "@babel/plugin-proposal-export-namespace-from@^7.18.9": - "integrity" "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz" + integrity sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" "@babel/plugin-proposal-json-strings@^7.18.6": - "integrity" "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz" + integrity sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-proposal-logical-assignment-operators@^7.18.9": - "integrity" "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz" + integrity sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" "@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8", "@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6": - "integrity" "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz" + integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" "@babel/plugin-proposal-numeric-separator@^7.18.6": - "integrity" "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz" + integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-numeric-separator" "^7.10.4" "@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.19.4": - "integrity" "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz" - "version" "7.19.4" + version "7.19.4" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz" + integrity sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q== dependencies: "@babel/compat-data" "^7.19.4" "@babel/helper-compilation-targets" "^7.19.3" @@ -378,34 +378,34 @@ "@babel/plugin-transform-parameters" "^7.18.8" "@babel/plugin-proposal-optional-catch-binding@^7.0.0", "@babel/plugin-proposal-optional-catch-binding@^7.18.6": - "integrity" "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz" + integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-proposal-optional-chaining@^7.0.0", "@babel/plugin-proposal-optional-chaining@^7.13.12", "@babel/plugin-proposal-optional-chaining@^7.18.9": - "integrity" "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz" + integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-proposal-private-methods@^7.18.6": - "integrity" "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz" + integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== dependencies: "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-proposal-private-property-in-object@^7.18.6": - "integrity" "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz" + integrity sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-create-class-features-plugin" "^7.18.6" @@ -413,194 +413,194 @@ "@babel/plugin-syntax-private-property-in-object" "^7.14.5" "@babel/plugin-proposal-unicode-property-regex@^7.18.6", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": - "integrity" "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==" - "resolved" "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz" + integrity sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-async-generators@^7.8.4": - "integrity" "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" - "version" "7.8.4" + version "7.8.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-bigint@^7.8.3": - "integrity" "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": - "integrity" "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" - "version" "7.12.13" + version "7.12.13" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== dependencies: "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-syntax-class-static-block@^7.14.5": - "integrity" "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz" - "version" "7.14.5" + version "7.14.5" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-dynamic-import@^7.0.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": - "integrity" "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz" + integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6": - "integrity" "sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz" + integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-export-namespace-from@^7.8.3": - "integrity" "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz" + integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== dependencies: "@babel/helper-plugin-utils" "^7.8.3" "@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0": - "integrity" "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz" + integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-import-assertions@^7.18.6": - "integrity" "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz" + integrity sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-import-meta@^7.8.3": - "integrity" "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" - "version" "7.10.4" + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-json-strings@^7.8.3": - "integrity" "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6": - "integrity" "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - "integrity" "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" - "version" "7.10.4" + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - "integrity" "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.8.3": - "integrity" "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" - "version" "7.10.4" + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": - "integrity" "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-catch-binding@^7.8.3": - "integrity" "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-chaining@^7.0.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": - "integrity" "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" - "version" "7.8.3" + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-private-property-in-object@^7.14.5": - "integrity" "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz" - "version" "7.14.5" + version "7.14.5" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": - "integrity" "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" - "version" "7.14.5" + version "7.14.5" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.20.0": - "integrity" "sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz" + integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-arrow-functions@^7.0.0", "@babel/plugin-transform-arrow-functions@^7.18.6": - "integrity" "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz" + integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-async-to-generator@^7.0.0", "@babel/plugin-transform-async-to-generator@^7.18.6": - "integrity" "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz" + integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== dependencies: "@babel/helper-module-imports" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-remap-async-to-generator" "^7.18.6" "@babel/plugin-transform-block-scoped-functions@^7.0.0", "@babel/plugin-transform-block-scoped-functions@^7.18.6": - "integrity" "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz" + integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-block-scoping@^7.0.0", "@babel/plugin-transform-block-scoping@^7.19.4": - "integrity" "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz" + integrity sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-classes@^7.0.0", "@babel/plugin-transform-classes@^7.19.0": - "integrity" "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz" + integrity sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-compilation-targets" "^7.19.0" @@ -610,104 +610,104 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-replace-supers" "^7.18.9" "@babel/helper-split-export-declaration" "^7.18.6" - "globals" "^11.1.0" + globals "^11.1.0" "@babel/plugin-transform-computed-properties@^7.0.0", "@babel/plugin-transform-computed-properties@^7.18.9": - "integrity" "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz" + integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-destructuring@^7.0.0", "@babel/plugin-transform-destructuring@^7.19.4": - "integrity" "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz" + integrity sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-dotall-regex@^7.18.6", "@babel/plugin-transform-dotall-regex@^7.4.4": - "integrity" "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz" + integrity sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-duplicate-keys@^7.18.9": - "integrity" "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz" + integrity sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-exponentiation-operator@^7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.18.6": - "integrity" "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz" + integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== dependencies: "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": - "integrity" "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz" + integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-flow" "^7.18.6" "@babel/plugin-transform-for-of@^7.0.0", "@babel/plugin-transform-for-of@^7.18.8": - "integrity" "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz" - "version" "7.18.8" + version "7.18.8" + resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz" + integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-function-name@^7.0.0", "@babel/plugin-transform-function-name@^7.18.9": - "integrity" "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz" + integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== dependencies: "@babel/helper-compilation-targets" "^7.18.9" "@babel/helper-function-name" "^7.18.9" "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-literals@^7.0.0", "@babel/plugin-transform-literals@^7.18.9": - "integrity" "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz" + integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-member-expression-literals@^7.0.0", "@babel/plugin-transform-member-expression-literals@^7.18.6": - "integrity" "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz" + integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-modules-amd@^7.18.6": - "integrity" "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz" + integrity sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg== dependencies: "@babel/helper-module-transforms" "^7.19.6" "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.18.6": - "integrity" "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz" + integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== dependencies: "@babel/helper-module-transforms" "^7.19.6" "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-simple-access" "^7.19.4" "@babel/plugin-transform-modules-systemjs@^7.19.0": - "integrity" "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz" + integrity sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ== dependencies: "@babel/helper-hoist-variables" "^7.18.6" "@babel/helper-module-transforms" "^7.19.6" @@ -715,82 +715,82 @@ "@babel/helper-validator-identifier" "^7.19.1" "@babel/plugin-transform-modules-umd@^7.18.6": - "integrity" "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz" + integrity sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ== dependencies: "@babel/helper-module-transforms" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-named-capturing-groups-regex@^7.0.0", "@babel/plugin-transform-named-capturing-groups-regex@^7.19.1": - "integrity" "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz" - "version" "7.19.1" + version "7.19.1" + resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz" + integrity sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.19.0" "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-new-target@^7.18.6": - "integrity" "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz" + integrity sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-object-super@^7.0.0", "@babel/plugin-transform-object-super@^7.18.6": - "integrity" "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz" + integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-replace-supers" "^7.18.6" "@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.18.8": - "integrity" "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz" + integrity sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-property-literals@^7.0.0", "@babel/plugin-transform-property-literals@^7.18.6": - "integrity" "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz" + integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.18.6": - "integrity" "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz" + integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-development@^7.18.6": - "integrity" "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz" + integrity sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA== dependencies: "@babel/plugin-transform-react-jsx" "^7.18.6" "@babel/plugin-transform-react-jsx-self@^7.0.0": - "integrity" "sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz" + integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-react-jsx-source@^7.0.0": - "integrity" "sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz" + integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.18.6": - "integrity" "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz" + integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-module-imports" "^7.18.6" @@ -799,104 +799,104 @@ "@babel/types" "^7.19.0" "@babel/plugin-transform-react-pure-annotations@^7.18.6": - "integrity" "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz" + integrity sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ== dependencies: "@babel/helper-annotate-as-pure" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-regenerator@^7.18.6": - "integrity" "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz" + integrity sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" - "regenerator-transform" "^0.15.0" + regenerator-transform "^0.15.0" "@babel/plugin-transform-reserved-words@^7.18.6": - "integrity" "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz" + integrity sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-runtime@^7.0.0": - "integrity" "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz" - "version" "7.19.6" + version "7.19.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz" + integrity sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw== dependencies: "@babel/helper-module-imports" "^7.18.6" "@babel/helper-plugin-utils" "^7.19.0" - "babel-plugin-polyfill-corejs2" "^0.3.3" - "babel-plugin-polyfill-corejs3" "^0.6.0" - "babel-plugin-polyfill-regenerator" "^0.4.1" - "semver" "^6.3.0" + babel-plugin-polyfill-corejs2 "^0.3.3" + babel-plugin-polyfill-corejs3 "^0.6.0" + babel-plugin-polyfill-regenerator "^0.4.1" + semver "^6.3.0" "@babel/plugin-transform-shorthand-properties@^7.0.0", "@babel/plugin-transform-shorthand-properties@^7.18.6": - "integrity" "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz" + integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-spread@^7.0.0", "@babel/plugin-transform-spread@^7.19.0": - "integrity" "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz" - "version" "7.19.0" + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz" + integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== dependencies: "@babel/helper-plugin-utils" "^7.19.0" "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" "@babel/plugin-transform-sticky-regex@^7.0.0", "@babel/plugin-transform-sticky-regex@^7.18.6": - "integrity" "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz" + integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-transform-template-literals@^7.0.0", "@babel/plugin-transform-template-literals@^7.18.9": - "integrity" "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz" + integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-typeof-symbol@^7.18.9": - "integrity" "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz" + integrity sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0": - "integrity" "sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.0.tgz" + integrity sha512-xOAsAFaun3t9hCwZ13Qe7gq423UgMZ6zAgmLxeGGapFqlT/X3L5qT2btjiVLlFn7gWtMaVyceS5VxGAuKbgizw== dependencies: "@babel/helper-create-class-features-plugin" "^7.19.0" "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-typescript" "^7.20.0" "@babel/plugin-transform-unicode-escapes@^7.18.10": - "integrity" "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz" - "version" "7.18.10" + version "7.18.10" + resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz" + integrity sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ== dependencies: "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-transform-unicode-regex@^7.0.0", "@babel/plugin-transform-unicode-regex@^7.18.6": - "integrity" "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==" - "resolved" "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz" + integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/preset-env@^7.1.6", "@babel/preset-env@^7.18.2": - "integrity" "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==" - "resolved" "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz" - "version" "7.19.4" +"@babel/preset-env@^7.18.2": + version "7.19.4" + resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz" + integrity sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg== dependencies: "@babel/compat-data" "^7.19.4" "@babel/helper-compilation-targets" "^7.19.3" @@ -968,36 +968,36 @@ "@babel/plugin-transform-unicode-regex" "^7.18.6" "@babel/preset-modules" "^0.1.5" "@babel/types" "^7.19.4" - "babel-plugin-polyfill-corejs2" "^0.3.3" - "babel-plugin-polyfill-corejs3" "^0.6.0" - "babel-plugin-polyfill-regenerator" "^0.4.1" - "core-js-compat" "^3.25.1" - "semver" "^6.3.0" + babel-plugin-polyfill-corejs2 "^0.3.3" + babel-plugin-polyfill-corejs3 "^0.6.0" + babel-plugin-polyfill-regenerator "^0.4.1" + core-js-compat "^3.25.1" + semver "^6.3.0" "@babel/preset-flow@^7.13.13", "@babel/preset-flow@^7.17.12": - "integrity" "sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ==" - "resolved" "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.18.6.tgz" + integrity sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-transform-flow-strip-types" "^7.18.6" "@babel/preset-modules@^0.1.5": - "integrity" "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==" - "resolved" "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz" - "version" "0.1.5" + version "0.1.5" + resolved "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz" + integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" "@babel/plugin-transform-dotall-regex" "^7.4.4" "@babel/types" "^7.4.4" - "esutils" "^2.0.2" + esutils "^2.0.2" "@babel/preset-react@^7.17.12": - "integrity" "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==" - "resolved" "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz" + integrity sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" @@ -1007,45 +1007,45 @@ "@babel/plugin-transform-react-pure-annotations" "^7.18.6" "@babel/preset-typescript@^7.13.0", "@babel/preset-typescript@^7.17.12": - "integrity" "sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==" - "resolved" "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz" - "version" "7.18.6" + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz" + integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-transform-typescript" "^7.18.6" "@babel/register@^7.13.16": - "integrity" "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==" - "resolved" "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz" - "version" "7.18.9" + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz" + integrity sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw== dependencies: - "clone-deep" "^4.0.1" - "find-cache-dir" "^2.0.0" - "make-dir" "^2.1.0" - "pirates" "^4.0.5" - "source-map-support" "^0.5.16" + clone-deep "^4.0.1" + find-cache-dir "^2.0.0" + make-dir "^2.1.0" + pirates "^4.0.5" + source-map-support "^0.5.16" "@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.8.4": - "integrity" "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==" - "resolved" "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz" - "version" "7.12.5" + version "7.12.5" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz" + integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== dependencies: - "regenerator-runtime" "^0.13.4" + regenerator-runtime "^0.13.4" "@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.3.3": - "integrity" "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==" - "resolved" "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz" - "version" "7.18.10" + version "7.18.10" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz" + integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== dependencies: "@babel/code-frame" "^7.18.6" "@babel/parser" "^7.18.10" "@babel/types" "^7.18.10" "@babel/traverse@^7.1.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.19.6", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4": - "integrity" "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==" - "resolved" "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz" - "version" "7.20.1" + version "7.20.1" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz" + integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== dependencies: "@babel/code-frame" "^7.18.6" "@babel/generator" "^7.20.1" @@ -1055,89 +1055,89 @@ "@babel/helper-split-export-declaration" "^7.18.6" "@babel/parser" "^7.20.1" "@babel/types" "^7.20.0" - "debug" "^4.1.0" - "globals" "^11.1.0" + debug "^4.1.0" + globals "^11.1.0" "@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.19.4", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - "integrity" "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==" - "resolved" "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz" - "version" "7.20.0" + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz" + integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg== dependencies: "@babel/helper-string-parser" "^7.19.4" "@babel/helper-validator-identifier" "^7.19.1" - "to-fast-properties" "^2.0.0" + to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": - "integrity" "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" - "resolved" "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" - "version" "0.2.3" + version "0.2.3" + resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== "@cnakazawa/watch@^1.0.3": - "integrity" "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==" - "resolved" "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz" - "version" "1.0.4" + version "1.0.4" + resolved "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz" + integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== dependencies: - "exec-sh" "^0.3.2" - "minimist" "^1.2.0" + exec-sh "^0.3.2" + minimist "^1.2.0" "@commitlint/cli@^11.0.0": - "integrity" "sha512-YWZWg1DuqqO5Zjh7vUOeSX76vm0FFyz4y0cpGMFhrhvUi5unc4IVfCXZ6337R9zxuBtmveiRuuhQqnRRer+13g==" - "resolved" "https://registry.npmjs.org/@commitlint/cli/-/cli-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/cli/-/cli-11.0.0.tgz" + integrity sha512-YWZWg1DuqqO5Zjh7vUOeSX76vm0FFyz4y0cpGMFhrhvUi5unc4IVfCXZ6337R9zxuBtmveiRuuhQqnRRer+13g== dependencies: "@babel/runtime" "^7.11.2" "@commitlint/format" "^11.0.0" "@commitlint/lint" "^11.0.0" "@commitlint/load" "^11.0.0" "@commitlint/read" "^11.0.0" - "chalk" "4.1.0" - "core-js" "^3.6.1" - "get-stdin" "8.0.0" - "lodash" "^4.17.19" - "resolve-from" "5.0.0" - "resolve-global" "1.0.0" - "yargs" "^15.1.0" + chalk "4.1.0" + core-js "^3.6.1" + get-stdin "8.0.0" + lodash "^4.17.19" + resolve-from "5.0.0" + resolve-global "1.0.0" + yargs "^15.1.0" "@commitlint/config-conventional@^11.0.0": - "integrity" "sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA==" - "resolved" "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz" + integrity sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA== dependencies: - "conventional-changelog-conventionalcommits" "^4.3.1" + conventional-changelog-conventionalcommits "^4.3.1" "@commitlint/ensure@^11.0.0": - "integrity" "sha512-/T4tjseSwlirKZdnx4AuICMNNlFvRyPQimbZIOYujp9DSO6XRtOy9NrmvWujwHsq9F5Wb80QWi4WMW6HMaENug==" - "resolved" "https://registry.npmjs.org/@commitlint/ensure/-/ensure-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/ensure/-/ensure-11.0.0.tgz" + integrity sha512-/T4tjseSwlirKZdnx4AuICMNNlFvRyPQimbZIOYujp9DSO6XRtOy9NrmvWujwHsq9F5Wb80QWi4WMW6HMaENug== dependencies: "@commitlint/types" "^11.0.0" - "lodash" "^4.17.19" + lodash "^4.17.19" "@commitlint/execute-rule@^11.0.0": - "integrity" "sha512-g01p1g4BmYlZ2+tdotCavrMunnPFPhTzG1ZiLKTCYrooHRbmvqo42ZZn4QMStUEIcn+jfLb6BRZX3JzIwA1ezQ==" - "resolved" "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-11.0.0.tgz" + integrity sha512-g01p1g4BmYlZ2+tdotCavrMunnPFPhTzG1ZiLKTCYrooHRbmvqo42ZZn4QMStUEIcn+jfLb6BRZX3JzIwA1ezQ== "@commitlint/format@^11.0.0": - "integrity" "sha512-bpBLWmG0wfZH/svzqD1hsGTpm79TKJWcf6EXZllh2J/LSSYKxGlv967lpw0hNojme0sZd4a/97R3qA2QHWWSLg==" - "resolved" "https://registry.npmjs.org/@commitlint/format/-/format-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/format/-/format-11.0.0.tgz" + integrity sha512-bpBLWmG0wfZH/svzqD1hsGTpm79TKJWcf6EXZllh2J/LSSYKxGlv967lpw0hNojme0sZd4a/97R3qA2QHWWSLg== dependencies: "@commitlint/types" "^11.0.0" - "chalk" "^4.0.0" + chalk "^4.0.0" "@commitlint/is-ignored@^11.0.0": - "integrity" "sha512-VLHOUBN+sOlkYC4tGuzE41yNPO2w09sQnOpfS+pSPnBFkNUUHawEuA44PLHtDvQgVuYrMAmSWFQpWabMoP5/Xg==" - "resolved" "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-11.0.0.tgz" + integrity sha512-VLHOUBN+sOlkYC4tGuzE41yNPO2w09sQnOpfS+pSPnBFkNUUHawEuA44PLHtDvQgVuYrMAmSWFQpWabMoP5/Xg== dependencies: "@commitlint/types" "^11.0.0" - "semver" "7.3.2" + semver "7.3.2" "@commitlint/lint@^11.0.0": - "integrity" "sha512-Q8IIqGIHfwKr8ecVZyYh6NtXFmKw4YSEWEr2GJTB/fTZXgaOGtGFZDWOesCZllQ63f1s/oWJYtVv5RAEuwN8BQ==" - "resolved" "https://registry.npmjs.org/@commitlint/lint/-/lint-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/lint/-/lint-11.0.0.tgz" + integrity sha512-Q8IIqGIHfwKr8ecVZyYh6NtXFmKw4YSEWEr2GJTB/fTZXgaOGtGFZDWOesCZllQ63f1s/oWJYtVv5RAEuwN8BQ== dependencies: "@commitlint/is-ignored" "^11.0.0" "@commitlint/parse" "^11.0.0" @@ -1145,54 +1145,54 @@ "@commitlint/types" "^11.0.0" "@commitlint/load@^11.0.0": - "integrity" "sha512-t5ZBrtgvgCwPfxmG811FCp39/o3SJ7L+SNsxFL92OR4WQxPcu6c8taD0CG2lzOHGuRyuMxZ7ps3EbngT2WpiCg==" - "resolved" "https://registry.npmjs.org/@commitlint/load/-/load-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/load/-/load-11.0.0.tgz" + integrity sha512-t5ZBrtgvgCwPfxmG811FCp39/o3SJ7L+SNsxFL92OR4WQxPcu6c8taD0CG2lzOHGuRyuMxZ7ps3EbngT2WpiCg== dependencies: "@commitlint/execute-rule" "^11.0.0" "@commitlint/resolve-extends" "^11.0.0" "@commitlint/types" "^11.0.0" - "chalk" "4.1.0" - "cosmiconfig" "^7.0.0" - "lodash" "^4.17.19" - "resolve-from" "^5.0.0" + chalk "4.1.0" + cosmiconfig "^7.0.0" + lodash "^4.17.19" + resolve-from "^5.0.0" "@commitlint/message@^11.0.0": - "integrity" "sha512-01ObK/18JL7PEIE3dBRtoMmU6S3ecPYDTQWWhcO+ErA3Ai0KDYqV5VWWEijdcVafNpdeUNrEMigRkxXHQLbyJA==" - "resolved" "https://registry.npmjs.org/@commitlint/message/-/message-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/message/-/message-11.0.0.tgz" + integrity sha512-01ObK/18JL7PEIE3dBRtoMmU6S3ecPYDTQWWhcO+ErA3Ai0KDYqV5VWWEijdcVafNpdeUNrEMigRkxXHQLbyJA== "@commitlint/parse@^11.0.0": - "integrity" "sha512-DekKQAIYWAXIcyAZ6/PDBJylWJ1BROTfDIzr9PMVxZRxBPc1gW2TG8fLgjZfBP5mc0cuthPkVi91KQQKGri/7A==" - "resolved" "https://registry.npmjs.org/@commitlint/parse/-/parse-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/parse/-/parse-11.0.0.tgz" + integrity sha512-DekKQAIYWAXIcyAZ6/PDBJylWJ1BROTfDIzr9PMVxZRxBPc1gW2TG8fLgjZfBP5mc0cuthPkVi91KQQKGri/7A== dependencies: - "conventional-changelog-angular" "^5.0.0" - "conventional-commits-parser" "^3.0.0" + conventional-changelog-angular "^5.0.0" + conventional-commits-parser "^3.0.0" "@commitlint/read@^11.0.0": - "integrity" "sha512-37V0V91GSv0aDzMzJioKpCoZw6l0shk7+tRG8RkW1GfZzUIytdg3XqJmM+IaIYpaop0m6BbZtfq+idzUwJnw7g==" - "resolved" "https://registry.npmjs.org/@commitlint/read/-/read-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/read/-/read-11.0.0.tgz" + integrity sha512-37V0V91GSv0aDzMzJioKpCoZw6l0shk7+tRG8RkW1GfZzUIytdg3XqJmM+IaIYpaop0m6BbZtfq+idzUwJnw7g== dependencies: "@commitlint/top-level" "^11.0.0" - "fs-extra" "^9.0.0" - "git-raw-commits" "^2.0.0" + fs-extra "^9.0.0" + git-raw-commits "^2.0.0" "@commitlint/resolve-extends@^11.0.0": - "integrity" "sha512-WinU6Uv6L7HDGLqn/To13KM1CWvZ09VHZqryqxXa1OY+EvJkfU734CwnOEeNlSCK7FVLrB4kmodLJtL1dkEpXw==" - "resolved" "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-11.0.0.tgz" + integrity sha512-WinU6Uv6L7HDGLqn/To13KM1CWvZ09VHZqryqxXa1OY+EvJkfU734CwnOEeNlSCK7FVLrB4kmodLJtL1dkEpXw== dependencies: - "import-fresh" "^3.0.0" - "lodash" "^4.17.19" - "resolve-from" "^5.0.0" - "resolve-global" "^1.0.0" + import-fresh "^3.0.0" + lodash "^4.17.19" + resolve-from "^5.0.0" + resolve-global "^1.0.0" "@commitlint/rules@^11.0.0": - "integrity" "sha512-2hD9y9Ep5ZfoNxDDPkQadd2jJeocrwC4vJ98I0g8pNYn/W8hS9+/FuNpolREHN8PhmexXbkjrwyQrWbuC0DVaA==" - "resolved" "https://registry.npmjs.org/@commitlint/rules/-/rules-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/rules/-/rules-11.0.0.tgz" + integrity sha512-2hD9y9Ep5ZfoNxDDPkQadd2jJeocrwC4vJ98I0g8pNYn/W8hS9+/FuNpolREHN8PhmexXbkjrwyQrWbuC0DVaA== dependencies: "@commitlint/ensure" "^11.0.0" "@commitlint/message" "^11.0.0" @@ -1200,92 +1200,92 @@ "@commitlint/types" "^11.0.0" "@commitlint/to-lines@^11.0.0": - "integrity" "sha512-TIDTB0Y23jlCNubDROUVokbJk6860idYB5cZkLWcRS9tlb6YSoeLn1NLafPlrhhkkkZzTYnlKYzCVrBNVes1iw==" - "resolved" "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-11.0.0.tgz" + integrity sha512-TIDTB0Y23jlCNubDROUVokbJk6860idYB5cZkLWcRS9tlb6YSoeLn1NLafPlrhhkkkZzTYnlKYzCVrBNVes1iw== "@commitlint/top-level@^11.0.0": - "integrity" "sha512-O0nFU8o+Ws+py5pfMQIuyxOtfR/kwtr5ybqTvR+C2lUPer2x6lnQU+OnfD7hPM+A+COIUZWx10mYQvkR3MmtAA==" - "resolved" "https://registry.npmjs.org/@commitlint/top-level/-/top-level-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/top-level/-/top-level-11.0.0.tgz" + integrity sha512-O0nFU8o+Ws+py5pfMQIuyxOtfR/kwtr5ybqTvR+C2lUPer2x6lnQU+OnfD7hPM+A+COIUZWx10mYQvkR3MmtAA== dependencies: - "find-up" "^5.0.0" + find-up "^5.0.0" "@commitlint/types@^11.0.0": - "integrity" "sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ==" - "resolved" "https://registry.npmjs.org/@commitlint/types/-/types-11.0.0.tgz" - "version" "11.0.0" + version "11.0.0" + resolved "https://registry.npmjs.org/@commitlint/types/-/types-11.0.0.tgz" + integrity sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ== "@eslint/eslintrc@^0.2.2": - "integrity" "sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ==" - "resolved" "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.2.2.tgz" - "version" "0.2.2" - dependencies: - "ajv" "^6.12.4" - "debug" "^4.1.1" - "espree" "^7.3.0" - "globals" "^12.1.0" - "ignore" "^4.0.6" - "import-fresh" "^3.2.1" - "js-yaml" "^3.13.1" - "lodash" "^4.17.19" - "minimatch" "^3.0.4" - "strip-json-comments" "^3.1.1" + version "0.2.2" + resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.2.2.tgz" + integrity sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + lodash "^4.17.19" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" "@hapi/hoek@^9.0.0": - "integrity" "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" - "resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz" - "version" "9.3.0" + version "9.3.0" + resolved "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz" + integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== "@hapi/topo@^5.0.0": - "integrity" "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==" - "resolved" "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz" - "version" "5.1.0" + version "5.1.0" + resolved "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz" + integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== dependencies: "@hapi/hoek" "^9.0.0" "@hutson/parse-repository-url@^3.0.0": - "integrity" "sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==" - "resolved" "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz" - "version" "3.0.2" + version "3.0.2" + resolved "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz" + integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== "@iarna/toml@2.2.5": - "integrity" "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" - "resolved" "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz" - "version" "2.2.5" + version "2.2.5" + resolved "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz" + integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== "@istanbuljs/load-nyc-config@^1.0.0": - "integrity" "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==" - "resolved" "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" - "version" "1.1.0" + version "1.1.0" + resolved "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== dependencies: - "camelcase" "^5.3.1" - "find-up" "^4.1.0" - "get-package-type" "^0.1.0" - "js-yaml" "^3.13.1" - "resolve-from" "^5.0.0" + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" "@istanbuljs/schema@^0.1.2": - "integrity" "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==" - "resolved" "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz" - "version" "0.1.2" + version "0.1.2" + resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz" + integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== "@jest/console@^26.6.2": - "integrity" "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==" - "resolved" "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz" + integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== dependencies: "@jest/types" "^26.6.2" "@types/node" "*" - "chalk" "^4.0.0" - "jest-message-util" "^26.6.2" - "jest-util" "^26.6.2" - "slash" "^3.0.0" + chalk "^4.0.0" + jest-message-util "^26.6.2" + jest-util "^26.6.2" + slash "^3.0.0" "@jest/core@^26.6.3": - "integrity" "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==" - "resolved" "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz" - "version" "26.6.3" + version "26.6.3" + resolved "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz" + integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== dependencies: "@jest/console" "^26.6.2" "@jest/reporters" "^26.6.2" @@ -1293,345 +1293,345 @@ "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "ansi-escapes" "^4.2.1" - "chalk" "^4.0.0" - "exit" "^0.1.2" - "graceful-fs" "^4.2.4" - "jest-changed-files" "^26.6.2" - "jest-config" "^26.6.3" - "jest-haste-map" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-regex-util" "^26.0.0" - "jest-resolve" "^26.6.2" - "jest-resolve-dependencies" "^26.6.3" - "jest-runner" "^26.6.3" - "jest-runtime" "^26.6.3" - "jest-snapshot" "^26.6.2" - "jest-util" "^26.6.2" - "jest-validate" "^26.6.2" - "jest-watcher" "^26.6.2" - "micromatch" "^4.0.2" - "p-each-series" "^2.1.0" - "rimraf" "^3.0.0" - "slash" "^3.0.0" - "strip-ansi" "^6.0.0" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-changed-files "^26.6.2" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-resolve-dependencies "^26.6.3" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + jest-watcher "^26.6.2" + micromatch "^4.0.2" + p-each-series "^2.1.0" + rimraf "^3.0.0" + slash "^3.0.0" + strip-ansi "^6.0.0" "@jest/create-cache-key-function@^29.0.3": - "integrity" "sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ==" - "resolved" "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz" - "version" "29.2.1" + version "29.2.1" + resolved "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-29.2.1.tgz" + integrity sha512-///wxGQUyP0GCr3L1OcqIzhsKvN2gOyqWsRxs56XGCdD8EEuoKg857G9nC+zcWIpIsG+3J5UnEbhe3LJw8CNmQ== dependencies: "@jest/types" "^29.2.1" "@jest/environment@^26.6.2": - "integrity" "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==" - "resolved" "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz" + integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== dependencies: "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "jest-mock" "^26.6.2" + jest-mock "^26.6.2" "@jest/fake-timers@^26.6.2": - "integrity" "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==" - "resolved" "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz" + integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== dependencies: "@jest/types" "^26.6.2" "@sinonjs/fake-timers" "^6.0.1" "@types/node" "*" - "jest-message-util" "^26.6.2" - "jest-mock" "^26.6.2" - "jest-util" "^26.6.2" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-util "^26.6.2" "@jest/globals@^26.6.2": - "integrity" "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==" - "resolved" "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz" + integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== dependencies: "@jest/environment" "^26.6.2" "@jest/types" "^26.6.2" - "expect" "^26.6.2" + expect "^26.6.2" "@jest/reporters@^26.6.2": - "integrity" "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==" - "resolved" "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz" + integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== dependencies: "@bcoe/v8-coverage" "^0.2.3" "@jest/console" "^26.6.2" "@jest/test-result" "^26.6.2" "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" - "chalk" "^4.0.0" - "collect-v8-coverage" "^1.0.0" - "exit" "^0.1.2" - "glob" "^7.1.2" - "graceful-fs" "^4.2.4" - "istanbul-lib-coverage" "^3.0.0" - "istanbul-lib-instrument" "^4.0.3" - "istanbul-lib-report" "^3.0.0" - "istanbul-lib-source-maps" "^4.0.0" - "istanbul-reports" "^3.0.2" - "jest-haste-map" "^26.6.2" - "jest-resolve" "^26.6.2" - "jest-util" "^26.6.2" - "jest-worker" "^26.6.2" - "slash" "^3.0.0" - "source-map" "^0.6.0" - "string-length" "^4.0.1" - "terminal-link" "^2.0.0" - "v8-to-istanbul" "^7.0.0" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.2.4" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^4.0.3" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + jest-haste-map "^26.6.2" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + slash "^3.0.0" + source-map "^0.6.0" + string-length "^4.0.1" + terminal-link "^2.0.0" + v8-to-istanbul "^7.0.0" optionalDependencies: - "node-notifier" "^8.0.0" + node-notifier "^8.0.0" "@jest/schemas@^29.0.0": - "integrity" "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==" - "resolved" "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz" - "version" "29.0.0" + version "29.0.0" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz" + integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== dependencies: "@sinclair/typebox" "^0.24.1" "@jest/source-map@^26.6.2": - "integrity" "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==" - "resolved" "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz" + integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== dependencies: - "callsites" "^3.0.0" - "graceful-fs" "^4.2.4" - "source-map" "^0.6.0" + callsites "^3.0.0" + graceful-fs "^4.2.4" + source-map "^0.6.0" "@jest/test-result@^26.6.2": - "integrity" "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==" - "resolved" "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz" + integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== dependencies: "@jest/console" "^26.6.2" "@jest/types" "^26.6.2" "@types/istanbul-lib-coverage" "^2.0.0" - "collect-v8-coverage" "^1.0.0" + collect-v8-coverage "^1.0.0" "@jest/test-sequencer@^26.6.3": - "integrity" "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==" - "resolved" "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz" - "version" "26.6.3" + version "26.6.3" + resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz" + integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== dependencies: "@jest/test-result" "^26.6.2" - "graceful-fs" "^4.2.4" - "jest-haste-map" "^26.6.2" - "jest-runner" "^26.6.3" - "jest-runtime" "^26.6.3" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-runner "^26.6.3" + jest-runtime "^26.6.3" "@jest/transform@^26.6.2": - "integrity" "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==" - "resolved" "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz" + integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== dependencies: "@babel/core" "^7.1.0" "@jest/types" "^26.6.2" - "babel-plugin-istanbul" "^6.0.0" - "chalk" "^4.0.0" - "convert-source-map" "^1.4.0" - "fast-json-stable-stringify" "^2.0.0" - "graceful-fs" "^4.2.4" - "jest-haste-map" "^26.6.2" - "jest-regex-util" "^26.0.0" - "jest-util" "^26.6.2" - "micromatch" "^4.0.2" - "pirates" "^4.0.1" - "slash" "^3.0.0" - "source-map" "^0.6.1" - "write-file-atomic" "^3.0.0" + babel-plugin-istanbul "^6.0.0" + chalk "^4.0.0" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.2.4" + jest-haste-map "^26.6.2" + jest-regex-util "^26.0.0" + jest-util "^26.6.2" + micromatch "^4.0.2" + pirates "^4.0.1" + slash "^3.0.0" + source-map "^0.6.1" + write-file-atomic "^3.0.0" "@jest/types@^26.6.2": - "integrity" "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==" - "resolved" "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz" - "version" "26.6.2" + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" "@types/yargs" "^15.0.0" - "chalk" "^4.0.0" + chalk "^4.0.0" "@jest/types@^27.5.1": - "integrity" "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==" - "resolved" "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz" - "version" "27.5.1" + version "27.5.1" + resolved "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" "@types/yargs" "^16.0.0" - "chalk" "^4.0.0" + chalk "^4.0.0" "@jest/types@^29.2.1": - "integrity" "sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw==" - "resolved" "https://registry.npmjs.org/@jest/types/-/types-29.2.1.tgz" - "version" "29.2.1" + version "29.2.1" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.2.1.tgz" + integrity sha512-O/QNDQODLnINEPAI0cl9U6zUIDXEWXt6IC1o2N2QENuos7hlGUIthlKyV4p6ki3TvXFX071blj8HUhgLGquPjw== dependencies: "@jest/schemas" "^29.0.0" "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" "@types/yargs" "^17.0.8" - "chalk" "^4.0.0" + chalk "^4.0.0" "@jridgewell/gen-mapping@^0.1.0": - "integrity" "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==" - "resolved" "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz" - "version" "0.1.1" + version "0.1.1" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== dependencies: "@jridgewell/set-array" "^1.0.0" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/gen-mapping@^0.3.2": - "integrity" "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==" - "resolved" "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz" - "version" "0.3.2" + version "0.3.2" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== dependencies: "@jridgewell/set-array" "^1.0.1" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" "@jridgewell/resolve-uri@3.1.0": - "integrity" "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" - "resolved" "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" - "version" "3.1.0" + version "3.1.0" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== "@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": - "integrity" "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" - "resolved" "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" - "version" "1.1.2" + version "1.1.2" + resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@1.4.14": - "integrity" "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - "resolved" "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" - "version" "1.4.14" +"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.14" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== "@jridgewell/trace-mapping@^0.3.9": - "integrity" "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==" - "resolved" "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz" - "version" "0.3.17" + version "0.3.17" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz" + integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== dependencies: "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" "@nodelib/fs.scandir@2.1.5": - "integrity" "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==" - "resolved" "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" - "version" "2.1.5" + version "2.1.5" + resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: "@nodelib/fs.stat" "2.0.5" - "run-parallel" "^1.1.9" + run-parallel "^1.1.9" -"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": - "integrity" "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" - "resolved" "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" - "version" "2.0.5" +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== "@nodelib/fs.walk@^1.2.3": - "integrity" "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==" - "resolved" "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" - "version" "1.2.8" + version "1.2.8" + resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== dependencies: "@nodelib/fs.scandir" "2.1.5" - "fastq" "^1.6.0" + fastq "^1.6.0" "@octokit/auth-token@^3.0.0": - "integrity" "sha512-pq7CwIMV1kmzkFTimdwjAINCXKTajZErLB4wMLYapR2nuB/Jpr66+05wOTZMSCBXP6n4DdDWT2W19Bm17vU69Q==" - "resolved" "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.2.tgz" - "version" "3.0.2" + version "3.0.2" + resolved "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.2.tgz" + integrity sha512-pq7CwIMV1kmzkFTimdwjAINCXKTajZErLB4wMLYapR2nuB/Jpr66+05wOTZMSCBXP6n4DdDWT2W19Bm17vU69Q== dependencies: "@octokit/types" "^8.0.0" -"@octokit/core@^4.0.0", "@octokit/core@>=3", "@octokit/core@>=4": - "integrity" "sha512-Czz/59VefU+kKDy+ZfDwtOIYIkFjExOKf+HA92aiTZJ6EfWpFzYQWw0l54ji8bVmyhc+mGaLUbSUmXazG7z5OQ==" - "resolved" "https://registry.npmjs.org/@octokit/core/-/core-4.1.0.tgz" - "version" "4.1.0" +"@octokit/core@^4.0.0": + version "4.1.0" + resolved "https://registry.npmjs.org/@octokit/core/-/core-4.1.0.tgz" + integrity sha512-Czz/59VefU+kKDy+ZfDwtOIYIkFjExOKf+HA92aiTZJ6EfWpFzYQWw0l54ji8bVmyhc+mGaLUbSUmXazG7z5OQ== dependencies: "@octokit/auth-token" "^3.0.0" "@octokit/graphql" "^5.0.0" "@octokit/request" "^6.0.0" "@octokit/request-error" "^3.0.0" "@octokit/types" "^8.0.0" - "before-after-hook" "^2.2.0" - "universal-user-agent" "^6.0.0" + before-after-hook "^2.2.0" + universal-user-agent "^6.0.0" "@octokit/endpoint@^7.0.0": - "integrity" "sha512-57gRlb28bwTsdNXq+O3JTQ7ERmBTuik9+LelgcLIVfYwf235VHbN9QNo4kXExtp/h8T423cR5iJThKtFYxC7Lw==" - "resolved" "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.3.tgz" - "version" "7.0.3" + version "7.0.3" + resolved "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.3.tgz" + integrity sha512-57gRlb28bwTsdNXq+O3JTQ7ERmBTuik9+LelgcLIVfYwf235VHbN9QNo4kXExtp/h8T423cR5iJThKtFYxC7Lw== dependencies: "@octokit/types" "^8.0.0" - "is-plain-object" "^5.0.0" - "universal-user-agent" "^6.0.0" + is-plain-object "^5.0.0" + universal-user-agent "^6.0.0" "@octokit/graphql@^5.0.0": - "integrity" "sha512-amO1M5QUQgYQo09aStR/XO7KAl13xpigcy/kI8/N1PnZYSS69fgte+xA4+c2DISKqUZfsh0wwjc2FaCt99L41A==" - "resolved" "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.4.tgz" - "version" "5.0.4" + version "5.0.4" + resolved "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.4.tgz" + integrity sha512-amO1M5QUQgYQo09aStR/XO7KAl13xpigcy/kI8/N1PnZYSS69fgte+xA4+c2DISKqUZfsh0wwjc2FaCt99L41A== dependencies: "@octokit/request" "^6.0.0" "@octokit/types" "^8.0.0" - "universal-user-agent" "^6.0.0" + universal-user-agent "^6.0.0" "@octokit/openapi-types@^13.11.0": - "integrity" "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==" - "resolved" "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz" - "version" "13.13.1" + version "13.13.1" + resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz" + integrity sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ== "@octokit/openapi-types@^14.0.0": - "integrity" "sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==" - "resolved" "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-14.0.0.tgz" - "version" "14.0.0" + version "14.0.0" + resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-14.0.0.tgz" + integrity sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw== "@octokit/plugin-paginate-rest@^4.0.0": - "integrity" "sha512-h8KKxESmSFTcXX409CAxlaOYscEDvN2KGQRsLCGT1NSqRW+D6EXLVQ8vuHhFznS9MuH9QYw1GfsUN30bg8hjVA==" - "resolved" "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.3.1.tgz" - "version" "4.3.1" + version "4.3.1" + resolved "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.3.1.tgz" + integrity sha512-h8KKxESmSFTcXX409CAxlaOYscEDvN2KGQRsLCGT1NSqRW+D6EXLVQ8vuHhFznS9MuH9QYw1GfsUN30bg8hjVA== dependencies: "@octokit/types" "^7.5.0" "@octokit/plugin-request-log@^1.0.4": - "integrity" "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==" - "resolved" "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz" - "version" "1.0.4" + version "1.0.4" + resolved "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz" + integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== "@octokit/plugin-rest-endpoint-methods@^6.0.0": - "integrity" "sha512-orxQ0fAHA7IpYhG2flD2AygztPlGYNAdlzYz8yrD8NDgelPfOYoRPROfEyIe035PlxvbYrgkfUZIhSBKju/Cvw==" - "resolved" "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.7.0.tgz" - "version" "6.7.0" + version "6.7.0" + resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.7.0.tgz" + integrity sha512-orxQ0fAHA7IpYhG2flD2AygztPlGYNAdlzYz8yrD8NDgelPfOYoRPROfEyIe035PlxvbYrgkfUZIhSBKju/Cvw== dependencies: "@octokit/types" "^8.0.0" - "deprecation" "^2.3.1" + deprecation "^2.3.1" "@octokit/request-error@^3.0.0": - "integrity" "sha512-WMNOFYrSaX8zXWoJg9u/pKgWPo94JXilMLb2VManNOby9EZxrQaBe/QSC4a1TzpAlpxofg2X/jMnCyZgL6y7eg==" - "resolved" "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.2.tgz" - "version" "3.0.2" + version "3.0.2" + resolved "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.2.tgz" + integrity sha512-WMNOFYrSaX8zXWoJg9u/pKgWPo94JXilMLb2VManNOby9EZxrQaBe/QSC4a1TzpAlpxofg2X/jMnCyZgL6y7eg== dependencies: "@octokit/types" "^8.0.0" - "deprecation" "^2.0.0" - "once" "^1.4.0" + deprecation "^2.0.0" + once "^1.4.0" "@octokit/request@^6.0.0": - "integrity" "sha512-6VDqgj0HMc2FUX2awIs+sM6OwLgwHvAi4KCK3mT2H2IKRt6oH9d0fej5LluF5mck1lRR/rFWN0YIDSYXYSylbw==" - "resolved" "https://registry.npmjs.org/@octokit/request/-/request-6.2.2.tgz" - "version" "6.2.2" + version "6.2.2" + resolved "https://registry.npmjs.org/@octokit/request/-/request-6.2.2.tgz" + integrity sha512-6VDqgj0HMc2FUX2awIs+sM6OwLgwHvAi4KCK3mT2H2IKRt6oH9d0fej5LluF5mck1lRR/rFWN0YIDSYXYSylbw== dependencies: "@octokit/endpoint" "^7.0.0" "@octokit/request-error" "^3.0.0" "@octokit/types" "^8.0.0" - "is-plain-object" "^5.0.0" - "node-fetch" "^2.6.7" - "universal-user-agent" "^6.0.0" + is-plain-object "^5.0.0" + node-fetch "^2.6.7" + universal-user-agent "^6.0.0" "@octokit/rest@19.0.4": - "integrity" "sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA==" - "resolved" "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz" - "version" "19.0.4" + version "19.0.4" + resolved "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz" + integrity sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA== dependencies: "@octokit/core" "^4.0.0" "@octokit/plugin-paginate-rest" "^4.0.0" @@ -1639,176 +1639,176 @@ "@octokit/plugin-rest-endpoint-methods" "^6.0.0" "@octokit/types@^7.5.0": - "integrity" "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==" - "resolved" "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz" - "version" "7.5.1" + version "7.5.1" + resolved "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz" + integrity sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA== dependencies: "@octokit/openapi-types" "^13.11.0" "@octokit/types@^8.0.0": - "integrity" "sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg==" - "resolved" "https://registry.npmjs.org/@octokit/types/-/types-8.0.0.tgz" - "version" "8.0.0" + version "8.0.0" + resolved "https://registry.npmjs.org/@octokit/types/-/types-8.0.0.tgz" + integrity sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg== dependencies: "@octokit/openapi-types" "^14.0.0" "@pnpm/network.ca-file@^1.0.1": - "integrity" "sha512-gkINruT2KUhZLTaiHxwCOh1O4NVnFT0wLjWFBHmTz9vpKag/C/noIMJXBxFe4F0mYpUVX2puLwAieLYFg2NvoA==" - "resolved" "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz" - "version" "1.0.1" + version "1.0.1" + resolved "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz" + integrity sha512-gkINruT2KUhZLTaiHxwCOh1O4NVnFT0wLjWFBHmTz9vpKag/C/noIMJXBxFe4F0mYpUVX2puLwAieLYFg2NvoA== dependencies: - "graceful-fs" "4.2.10" + graceful-fs "4.2.10" "@pnpm/npm-conf@^1.0.4": - "integrity" "sha512-hD8ml183638O3R6/Txrh0L8VzGOrFXgRtRDG4qQC4tONdZ5Z1M+tlUUDUvrjYdmK6G+JTBTeaCLMna11cXzi8A==" - "resolved" "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-1.0.5.tgz" - "version" "1.0.5" + version "1.0.5" + resolved "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-1.0.5.tgz" + integrity sha512-hD8ml183638O3R6/Txrh0L8VzGOrFXgRtRDG4qQC4tONdZ5Z1M+tlUUDUvrjYdmK6G+JTBTeaCLMna11cXzi8A== dependencies: "@pnpm/network.ca-file" "^1.0.1" - "config-chain" "^1.1.11" + config-chain "^1.1.11" "@react-native-community/cli-clean@^9.2.1": - "integrity" "sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz" + integrity sha512-dyNWFrqRe31UEvNO+OFWmQ4hmqA07bR9Ief/6NnGwx67IO9q83D5PEAf/o96ML6jhSbDwCmpPKhPwwBbsyM3mQ== dependencies: "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "execa" "^1.0.0" - "prompts" "^2.4.0" + chalk "^4.1.2" + execa "^1.0.0" + prompts "^2.4.0" "@react-native-community/cli-config@^9.2.1": - "integrity" "sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-9.2.1.tgz" + integrity sha512-gHJlBBXUgDN9vrr3aWkRqnYrPXZLztBDQoY97Mm5Yo6MidsEpYo2JIP6FH4N/N2p1TdjxJL4EFtdd/mBpiR2MQ== dependencies: "@react-native-community/cli-tools" "^9.2.1" - "cosmiconfig" "^5.1.0" - "deepmerge" "^3.2.0" - "glob" "^7.1.3" - "joi" "^17.2.1" + cosmiconfig "^5.1.0" + deepmerge "^3.2.0" + glob "^7.1.3" + joi "^17.2.1" "@react-native-community/cli-debugger-ui@^9.0.0": - "integrity" "sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz" - "version" "9.0.0" + version "9.0.0" + resolved "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-9.0.0.tgz" + integrity sha512-7hH05ZwU9Tp0yS6xJW0bqcZPVt0YCK7gwj7gnRu1jDNN2kughf6Lg0Ys29rAvtZ7VO1PK5c1O+zs7yFnylQDUA== dependencies: - "serve-static" "^1.13.1" + serve-static "^1.13.1" "@react-native-community/cli-doctor@^9.2.1": - "integrity" "sha512-RpUax0pkKumXJ5hcRG0Qd+oYWsA2RFeMWKY+Npg8q05Cwd1rqDQfWGprkHC576vz26+FPuvwEagoAf6fR2bvJA==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-9.2.1.tgz" + integrity sha512-RpUax0pkKumXJ5hcRG0Qd+oYWsA2RFeMWKY+Npg8q05Cwd1rqDQfWGprkHC576vz26+FPuvwEagoAf6fR2bvJA== dependencies: "@react-native-community/cli-config" "^9.2.1" "@react-native-community/cli-platform-ios" "^9.2.1" "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "command-exists" "^1.2.8" - "envinfo" "^7.7.2" - "execa" "^1.0.0" - "hermes-profile-transformer" "^0.0.6" - "ip" "^1.1.5" - "node-stream-zip" "^1.9.1" - "ora" "^5.4.1" - "prompts" "^2.4.0" - "semver" "^6.3.0" - "strip-ansi" "^5.2.0" - "sudo-prompt" "^9.0.0" - "wcwidth" "^1.0.1" + chalk "^4.1.2" + command-exists "^1.2.8" + envinfo "^7.7.2" + execa "^1.0.0" + hermes-profile-transformer "^0.0.6" + ip "^1.1.5" + node-stream-zip "^1.9.1" + ora "^5.4.1" + prompts "^2.4.0" + semver "^6.3.0" + strip-ansi "^5.2.0" + sudo-prompt "^9.0.0" + wcwidth "^1.0.1" "@react-native-community/cli-hermes@^9.2.1": - "integrity" "sha512-723/NMb7egXzJrbWT1uEkN2hOpw+OOtWTG2zKJ3j7KKgUd8u/pP+/z5jO8xVrq+eYJEMjDK0FBEo1Xj7maR4Sw==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-9.2.1.tgz" + integrity sha512-723/NMb7egXzJrbWT1uEkN2hOpw+OOtWTG2zKJ3j7KKgUd8u/pP+/z5jO8xVrq+eYJEMjDK0FBEo1Xj7maR4Sw== dependencies: "@react-native-community/cli-platform-android" "^9.2.1" "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "hermes-profile-transformer" "^0.0.6" - "ip" "^1.1.5" + chalk "^4.1.2" + hermes-profile-transformer "^0.0.6" + ip "^1.1.5" -"@react-native-community/cli-platform-android@^9.2.1", "@react-native-community/cli-platform-android@9.2.1": - "integrity" "sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz" - "version" "9.2.1" +"@react-native-community/cli-platform-android@9.2.1", "@react-native-community/cli-platform-android@^9.2.1": + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz" + integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg== dependencies: "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "execa" "^1.0.0" - "fs-extra" "^8.1.0" - "glob" "^7.1.3" - "logkitty" "^0.7.1" - "slash" "^3.0.0" - -"@react-native-community/cli-platform-ios@^9.2.1", "@react-native-community/cli-platform-ios@9.2.1": - "integrity" "sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz" - "version" "9.2.1" + chalk "^4.1.2" + execa "^1.0.0" + fs-extra "^8.1.0" + glob "^7.1.3" + logkitty "^0.7.1" + slash "^3.0.0" + +"@react-native-community/cli-platform-ios@9.2.1", "@react-native-community/cli-platform-ios@^9.2.1": + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz" + integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg== dependencies: "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "execa" "^1.0.0" - "glob" "^7.1.3" - "ora" "^5.4.1" + chalk "^4.1.2" + execa "^1.0.0" + glob "^7.1.3" + ora "^5.4.1" "@react-native-community/cli-plugin-metro@^9.2.1": - "integrity" "sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz" + integrity sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ== dependencies: "@react-native-community/cli-server-api" "^9.2.1" "@react-native-community/cli-tools" "^9.2.1" - "chalk" "^4.1.2" - "metro" "0.72.3" - "metro-config" "0.72.3" - "metro-core" "0.72.3" - "metro-react-native-babel-transformer" "0.72.3" - "metro-resolver" "0.72.3" - "metro-runtime" "0.72.3" - "readline" "^1.3.0" + chalk "^4.1.2" + metro "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-react-native-babel-transformer "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + readline "^1.3.0" "@react-native-community/cli-server-api@^9.2.1": - "integrity" "sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz" + integrity sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw== dependencies: "@react-native-community/cli-debugger-ui" "^9.0.0" "@react-native-community/cli-tools" "^9.2.1" - "compression" "^1.7.1" - "connect" "^3.6.5" - "errorhandler" "^1.5.0" - "nocache" "^3.0.1" - "pretty-format" "^26.6.2" - "serve-static" "^1.13.1" - "ws" "^7.5.1" + compression "^1.7.1" + connect "^3.6.5" + errorhandler "^1.5.0" + nocache "^3.0.1" + pretty-format "^26.6.2" + serve-static "^1.13.1" + ws "^7.5.1" "@react-native-community/cli-tools@^9.2.1": - "integrity" "sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz" - "version" "9.2.1" - dependencies: - "appdirsjs" "^1.2.4" - "chalk" "^4.1.2" - "find-up" "^5.0.0" - "mime" "^2.4.1" - "node-fetch" "^2.6.0" - "open" "^6.2.0" - "ora" "^5.4.1" - "semver" "^6.3.0" - "shell-quote" "^1.7.3" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz" + integrity sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ== + dependencies: + appdirsjs "^1.2.4" + chalk "^4.1.2" + find-up "^5.0.0" + mime "^2.4.1" + node-fetch "^2.6.0" + open "^6.2.0" + ora "^5.4.1" + semver "^6.3.0" + shell-quote "^1.7.3" "@react-native-community/cli-types@^9.1.0": - "integrity" "sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-9.1.0.tgz" - "version" "9.1.0" + version "9.1.0" + resolved "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-9.1.0.tgz" + integrity sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g== dependencies: - "joi" "^17.2.1" + joi "^17.2.1" "@react-native-community/cli@9.2.1": - "integrity" "sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/cli/-/cli-9.2.1.tgz" - "version" "9.2.1" + version "9.2.1" + resolved "https://registry.npmjs.org/@react-native-community/cli/-/cli-9.2.1.tgz" + integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ== dependencies: "@react-native-community/cli-clean" "^9.2.1" "@react-native-community/cli-config" "^9.2.1" @@ -1819,121 +1819,121 @@ "@react-native-community/cli-server-api" "^9.2.1" "@react-native-community/cli-tools" "^9.2.1" "@react-native-community/cli-types" "^9.1.0" - "chalk" "^4.1.2" - "commander" "^9.4.0" - "execa" "^1.0.0" - "find-up" "^4.1.0" - "fs-extra" "^8.1.0" - "graceful-fs" "^4.1.3" - "prompts" "^2.4.0" - "semver" "^6.3.0" + chalk "^4.1.2" + commander "^9.4.0" + execa "^1.0.0" + find-up "^4.1.0" + fs-extra "^8.1.0" + graceful-fs "^4.1.3" + prompts "^2.4.0" + semver "^6.3.0" "@react-native-community/eslint-config@^2.0.0": - "integrity" "sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg==" - "resolved" "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz" + integrity sha512-vHaMMfvMp9BWCQQ0lNIXibOJTcXIbYUQ8dSUsMOsrXgVkeVQJj88OwrKS00rQyqwMaC4/a6HuDiFzYUkGKOpVg== dependencies: "@react-native-community/eslint-plugin" "^1.1.0" "@typescript-eslint/eslint-plugin" "^3.1.0" "@typescript-eslint/parser" "^3.1.0" - "babel-eslint" "^10.1.0" - "eslint-config-prettier" "^6.10.1" - "eslint-plugin-eslint-comments" "^3.1.2" - "eslint-plugin-flowtype" "2.50.3" - "eslint-plugin-jest" "22.4.1" - "eslint-plugin-prettier" "3.1.2" - "eslint-plugin-react" "^7.20.0" - "eslint-plugin-react-hooks" "^4.0.4" - "eslint-plugin-react-native" "^3.8.1" - "prettier" "^2.0.2" + babel-eslint "^10.1.0" + eslint-config-prettier "^6.10.1" + eslint-plugin-eslint-comments "^3.1.2" + eslint-plugin-flowtype "2.50.3" + eslint-plugin-jest "22.4.1" + eslint-plugin-prettier "3.1.2" + eslint-plugin-react "^7.20.0" + eslint-plugin-react-hooks "^4.0.4" + eslint-plugin-react-native "^3.8.1" + prettier "^2.0.2" "@react-native-community/eslint-plugin@^1.1.0": - "integrity" "sha512-W/J0fNYVO01tioHjvYWQ9m6RgndVtbElzYozBq1ZPrHO/iCzlqoySHl4gO/fpCl9QEFjvJfjPgtPMTMlsoq5DQ==" - "resolved" "https://registry.npmjs.org/@react-native-community/eslint-plugin/-/eslint-plugin-1.1.0.tgz" - "version" "1.1.0" + version "1.1.0" + resolved "https://registry.npmjs.org/@react-native-community/eslint-plugin/-/eslint-plugin-1.1.0.tgz" + integrity sha512-W/J0fNYVO01tioHjvYWQ9m6RgndVtbElzYozBq1ZPrHO/iCzlqoySHl4gO/fpCl9QEFjvJfjPgtPMTMlsoq5DQ== "@react-native/assets@1.0.0": - "integrity" "sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ==" - "resolved" "https://registry.npmjs.org/@react-native/assets/-/assets-1.0.0.tgz" - "version" "1.0.0" + version "1.0.0" + resolved "https://registry.npmjs.org/@react-native/assets/-/assets-1.0.0.tgz" + integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ== "@react-native/normalize-color@2.0.0": - "integrity" "sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw==" - "resolved" "https://registry.npmjs.org/@react-native/normalize-color/-/normalize-color-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@react-native/normalize-color/-/normalize-color-2.0.0.tgz" + integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw== "@react-native/polyfills@2.0.0": - "integrity" "sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ==" - "resolved" "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz" + integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ== "@release-it/conventional-changelog@^5.1.1": - "integrity" "sha512-QtbDBe36dQfzexAfDYrbLPvd5Cb5bMWmLcjcGhCOWBss7fe1/gCjoxDULVz+7N7G5Nu2UMeBwHcUp/w8RDh5VQ==" - "resolved" "https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-5.1.1.tgz" - "version" "5.1.1" + version "5.1.1" + resolved "https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-5.1.1.tgz" + integrity sha512-QtbDBe36dQfzexAfDYrbLPvd5Cb5bMWmLcjcGhCOWBss7fe1/gCjoxDULVz+7N7G5Nu2UMeBwHcUp/w8RDh5VQ== dependencies: - "concat-stream" "^2.0.0" - "conventional-changelog" "^3.1.25" - "conventional-recommended-bump" "^6.1.0" - "semver" "7.3.8" + concat-stream "^2.0.0" + conventional-changelog "^3.1.25" + conventional-recommended-bump "^6.1.0" + semver "7.3.8" "@sideway/address@^4.1.3": - "integrity" "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==" - "resolved" "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz" - "version" "4.1.4" + version "4.1.4" + resolved "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz" + integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw== dependencies: "@hapi/hoek" "^9.0.0" "@sideway/formula@^3.0.0": - "integrity" "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" - "resolved" "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz" - "version" "3.0.0" + version "3.0.0" + resolved "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz" + integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg== "@sideway/pinpoint@^2.0.0": - "integrity" "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - "resolved" "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz" + integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== "@sinclair/typebox@^0.24.1": - "integrity" "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" - "resolved" "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz" - "version" "0.24.51" + version "0.24.51" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz" + integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== "@sindresorhus/is@^5.2.0": - "integrity" "sha512-CX6t4SYQ37lzxicAqsBtxA3OseeoVrh9cSJ5PFYam0GksYlupRfy1A+Q4aYD3zvcfECLc0zO2u+ZnR2UYKvCrw==" - "resolved" "https://registry.npmjs.org/@sindresorhus/is/-/is-5.3.0.tgz" - "version" "5.3.0" + version "5.3.0" + resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-5.3.0.tgz" + integrity sha512-CX6t4SYQ37lzxicAqsBtxA3OseeoVrh9cSJ5PFYam0GksYlupRfy1A+Q4aYD3zvcfECLc0zO2u+ZnR2UYKvCrw== "@sinonjs/commons@^1.7.0": - "integrity" "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==" - "resolved" "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz" - "version" "1.8.1" + version "1.8.1" + resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz" + integrity sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw== dependencies: - "type-detect" "4.0.8" + type-detect "4.0.8" "@sinonjs/fake-timers@^6.0.1": - "integrity" "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==" - "resolved" "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz" - "version" "6.0.1" + version "6.0.1" + resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz" + integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== dependencies: "@sinonjs/commons" "^1.7.0" "@szmarczak/http-timer@^5.0.1": - "integrity" "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==" - "resolved" "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz" - "version" "5.0.1" + version "5.0.1" + resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz" + integrity sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw== dependencies: - "defer-to-connect" "^2.0.1" + defer-to-connect "^2.0.1" "@tootallnate/once@1": - "integrity" "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==" - "resolved" "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz" - "version" "1.1.2" + version "1.1.2" + resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": - "integrity" "sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==" - "resolved" "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz" - "version" "7.1.12" + version "7.1.12" + resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz" + integrity sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ== dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" @@ -1942,642 +1942,638 @@ "@types/babel__traverse" "*" "@types/babel__generator@*": - "integrity" "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==" - "resolved" "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz" - "version" "7.6.2" + version "7.6.2" + resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz" + integrity sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ== dependencies: "@babel/types" "^7.0.0" "@types/babel__template@*": - "integrity" "sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==" - "resolved" "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz" - "version" "7.4.0" + version "7.4.0" + resolved "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz" + integrity sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A== dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - "integrity" "sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==" - "resolved" "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.0.tgz" - "version" "7.11.0" + version "7.11.0" + resolved "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.0.tgz" + integrity sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg== dependencies: "@babel/types" "^7.3.0" "@types/eslint-visitor-keys@^1.0.0": - "integrity" "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==" - "resolved" "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz" - "version" "1.0.0" + version "1.0.0" + resolved "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== "@types/graceful-fs@^4.1.2": - "integrity" "sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==" - "resolved" "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz" - "version" "4.1.4" + version "4.1.4" + resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz" + integrity sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg== dependencies: "@types/node" "*" "@types/http-cache-semantics@^4.0.1": - "integrity" "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" - "resolved" "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz" - "version" "4.0.1" + version "4.0.1" + resolved "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz" + integrity sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ== "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - "integrity" "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==" - "resolved" "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz" - "version" "2.0.3" + version "2.0.3" + resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz" + integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== "@types/istanbul-lib-report@*": - "integrity" "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==" - "resolved" "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" - "version" "3.0.0" + version "3.0.0" + resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== dependencies: "@types/istanbul-lib-coverage" "*" "@types/istanbul-reports@^3.0.0": - "integrity" "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==" - "resolved" "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz" - "version" "3.0.0" + version "3.0.0" + resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz" + integrity sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA== dependencies: "@types/istanbul-lib-report" "*" "@types/jest@^26.0.0": - "integrity" "sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA==" - "resolved" "https://registry.npmjs.org/@types/jest/-/jest-26.0.20.tgz" - "version" "26.0.20" + version "26.0.20" + resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.20.tgz" + integrity sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA== dependencies: - "jest-diff" "^26.0.0" - "pretty-format" "^26.0.0" + jest-diff "^26.0.0" + pretty-format "^26.0.0" "@types/json-schema@^7.0.3": - "integrity" "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==" - "resolved" "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz" - "version" "7.0.6" + version "7.0.6" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz" + integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== "@types/minimist@^1.2.0": - "integrity" "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==" - "resolved" "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.1.tgz" - "version" "1.2.1" + version "1.2.1" + resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.1.tgz" + integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== "@types/node@*": - "integrity" "sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A==" - "resolved" "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz" - "version" "14.14.20" + version "14.14.20" + resolved "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz" + integrity sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A== "@types/normalize-package-data@^2.4.0": - "integrity" "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==" - "resolved" "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz" - "version" "2.4.0" + version "2.4.0" + resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz" + integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== "@types/parse-json@^4.0.0": - "integrity" "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" - "resolved" "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz" - "version" "4.0.0" + version "4.0.0" + resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz" + integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== "@types/prettier@^2.0.0": - "integrity" "sha512-6gOkRe7OIioWAXfnO/2lFiv+SJichKVSys1mSsgyrYHSEjk8Ctv4tSR/Odvnu+HWlH2C8j53dahU03XmQdd5fA==" - "resolved" "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.6.tgz" - "version" "2.1.6" + version "2.1.6" + resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.6.tgz" + integrity sha512-6gOkRe7OIioWAXfnO/2lFiv+SJichKVSys1mSsgyrYHSEjk8Ctv4tSR/Odvnu+HWlH2C8j53dahU03XmQdd5fA== "@types/prop-types@*": - "integrity" "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" - "resolved" "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz" - "version" "15.7.3" + version "15.7.3" + resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz" + integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== "@types/react-native@0.62.13": - "integrity" "sha512-hs4/tSABhcJx+J8pZhVoXHrOQD89WFmbs8QiDLNSA9zNrD46pityAuBWuwk1aMjPk9I3vC5ewkJroVRHgRIfdg==" - "resolved" "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.13.tgz" - "version" "0.62.13" + version "0.62.13" + resolved "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.13.tgz" + integrity sha512-hs4/tSABhcJx+J8pZhVoXHrOQD89WFmbs8QiDLNSA9zNrD46pityAuBWuwk1aMjPk9I3vC5ewkJroVRHgRIfdg== dependencies: "@types/react" "*" "@types/react@*", "@types/react@^16.9.19": - "integrity" "sha512-BzzcAlyDxXl2nANlabtT4thtvbbnhee8hMmH/CcJrISDBVcJS1iOsP1f0OAgSdGE0MsY9tqcrb9YoZcOFv9dbQ==" - "resolved" "https://registry.npmjs.org/@types/react/-/react-16.14.2.tgz" - "version" "16.14.2" + version "16.14.2" + resolved "https://registry.npmjs.org/@types/react/-/react-16.14.2.tgz" + integrity sha512-BzzcAlyDxXl2nANlabtT4thtvbbnhee8hMmH/CcJrISDBVcJS1iOsP1f0OAgSdGE0MsY9tqcrb9YoZcOFv9dbQ== dependencies: "@types/prop-types" "*" - "csstype" "^3.0.2" + csstype "^3.0.2" "@types/stack-utils@^2.0.0": - "integrity" "sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw==" - "resolved" "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz" + integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== "@types/yargs-parser@*": - "integrity" "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==" - "resolved" "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz" - "version" "20.2.0" + version "20.2.0" + resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz" + integrity sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA== "@types/yargs@^15.0.0": - "integrity" "sha512-f+fD/fQAo3BCbCDlrUpznF1A5Zp9rB0noS5vnoormHSIPFKL0Z2DcUJ3Gxp5ytH4uLRNxy7AwYUC9exZzqGMAw==" - "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.12.tgz" - "version" "15.0.12" + version "15.0.12" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.12.tgz" + integrity sha512-f+fD/fQAo3BCbCDlrUpznF1A5Zp9rB0noS5vnoormHSIPFKL0Z2DcUJ3Gxp5ytH4uLRNxy7AwYUC9exZzqGMAw== dependencies: "@types/yargs-parser" "*" "@types/yargs@^16.0.0": - "integrity" "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==" - "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz" - "version" "16.0.4" + version "16.0.4" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== dependencies: "@types/yargs-parser" "*" "@types/yargs@^17.0.8": - "integrity" "sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg==" - "resolved" "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.13.tgz" - "version" "17.0.13" + version "17.0.13" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.13.tgz" + integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg== dependencies: "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^3.1.0": - "integrity" "sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz" - "version" "3.10.1" + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz" + integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== dependencies: "@typescript-eslint/experimental-utils" "3.10.1" - "debug" "^4.1.1" - "functional-red-black-tree" "^1.0.1" - "regexpp" "^3.0.0" - "semver" "^7.3.2" - "tsutils" "^3.17.1" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" "@typescript-eslint/experimental-utils@3.10.1": - "integrity" "sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz" - "version" "3.10.1" + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz" + integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== dependencies: "@types/json-schema" "^7.0.3" "@typescript-eslint/types" "3.10.1" "@typescript-eslint/typescript-estree" "3.10.1" - "eslint-scope" "^5.0.0" - "eslint-utils" "^2.0.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" -"@typescript-eslint/parser@^3.0.0", "@typescript-eslint/parser@^3.1.0": - "integrity" "sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz" - "version" "3.10.1" +"@typescript-eslint/parser@^3.1.0": + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz" + integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== dependencies: "@types/eslint-visitor-keys" "^1.0.0" "@typescript-eslint/experimental-utils" "3.10.1" "@typescript-eslint/types" "3.10.1" "@typescript-eslint/typescript-estree" "3.10.1" - "eslint-visitor-keys" "^1.1.0" + eslint-visitor-keys "^1.1.0" "@typescript-eslint/types@3.10.1": - "integrity" "sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz" - "version" "3.10.1" + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz" + integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== "@typescript-eslint/typescript-estree@3.10.1": - "integrity" "sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz" - "version" "3.10.1" + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz" + integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== dependencies: "@typescript-eslint/types" "3.10.1" "@typescript-eslint/visitor-keys" "3.10.1" - "debug" "^4.1.1" - "glob" "^7.1.6" - "is-glob" "^4.0.1" - "lodash" "^4.17.15" - "semver" "^7.3.2" - "tsutils" "^3.17.1" + debug "^4.1.1" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" "@typescript-eslint/visitor-keys@3.10.1": - "integrity" "sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==" - "resolved" "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz" - "version" "3.10.1" - dependencies: - "eslint-visitor-keys" "^1.1.0" - -"abab@^2.0.3", "abab@^2.0.5": - "integrity" "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==" - "resolved" "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz" - "version" "2.0.5" - -"abort-controller@^3.0.0": - "integrity" "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==" - "resolved" "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "event-target-shim" "^5.0.0" - -"absolute-path@^0.0.0": - "integrity" "sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA==" - "resolved" "https://registry.npmjs.org/absolute-path/-/absolute-path-0.0.0.tgz" - "version" "0.0.0" - -"accepts@^1.3.7", "accepts@~1.3.5", "accepts@~1.3.7": - "integrity" "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==" - "resolved" "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" - "version" "1.3.8" - dependencies: - "mime-types" "~2.1.34" - "negotiator" "0.6.3" - -"acorn-globals@^6.0.0": - "integrity" "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==" - "resolved" "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "acorn" "^7.1.1" - "acorn-walk" "^7.1.1" - -"acorn-jsx@^5.3.1": - "integrity" "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==" - "resolved" "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz" - "version" "5.3.1" - -"acorn-walk@^7.1.1": - "integrity" "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" - "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" - "version" "7.2.0" - -"acorn-walk@^8.2.0": - "integrity" "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" - "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" - "version" "8.2.0" - -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", "acorn@^7.1.1", "acorn@^7.4.0": - "integrity" "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" - "resolved" "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" - "version" "7.4.1" - -"acorn@^8.2.4": - "integrity" "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" - "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz" - "version" "8.8.1" - -"acorn@^8.7.0": - "integrity" "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" - "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz" - "version" "8.8.1" - -"add-stream@^1.0.0": - "integrity" "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==" - "resolved" "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz" - "version" "1.0.0" - -"agent-base@^6.0.0", "agent-base@^6.0.2", "agent-base@6": - "integrity" "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==" - "resolved" "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - "version" "6.0.2" - dependencies: - "debug" "4" - -"aggregate-error@^3.0.0": - "integrity" "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==" - "resolved" "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "clean-stack" "^2.0.0" - "indent-string" "^4.0.0" - -"ajv@^6.10.0", "ajv@^6.12.4": - "integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==" - "resolved" "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" - "version" "6.12.6" - dependencies: - "fast-deep-equal" "^3.1.1" - "fast-json-stable-stringify" "^2.0.0" - "json-schema-traverse" "^0.4.1" - "uri-js" "^4.2.2" - -"ajv@^7.0.2": - "integrity" "sha512-R50QRlXSxqXcQP5SvKUrw8VZeypvo12i2IX0EeR5PiZ7bEKeHWgzgo264LDadUsCU42lTJVhFikTqJwNeH34gQ==" - "resolved" "https://registry.npmjs.org/ajv/-/ajv-7.0.3.tgz" - "version" "7.0.3" - dependencies: - "fast-deep-equal" "^3.1.1" - "json-schema-traverse" "^1.0.0" - "require-from-string" "^2.0.2" - "uri-js" "^4.2.2" - -"anser@^1.4.9": - "integrity" "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==" - "resolved" "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz" - "version" "1.4.10" - -"ansi-align@^3.0.1": - "integrity" "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==" - "resolved" "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "string-width" "^4.1.0" - -"ansi-colors@^4.1.1": - "integrity" "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==" - "resolved" "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" - "version" "4.1.1" - -"ansi-escapes@^4.2.1": - "integrity" "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==" - "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz" - "version" "4.3.1" - dependencies: - "type-fest" "^0.11.0" - -"ansi-escapes@^5.0.0": - "integrity" "sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==" - "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "type-fest" "^1.0.2" - -"ansi-fragments@^0.2.1": - "integrity" "sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==" - "resolved" "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz" - "version" "0.2.1" - dependencies: - "colorette" "^1.0.7" - "slice-ansi" "^2.0.0" - "strip-ansi" "^5.0.0" - -"ansi-regex@^4.1.0": - "integrity" "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==" - "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz" - "version" "4.1.1" - -"ansi-regex@^5.0.0", "ansi-regex@^5.0.1": - "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - "version" "5.0.1" - -"ansi-regex@^6.0.1": - "integrity" "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" - "version" "6.0.1" - -"ansi-styles@^3.2.0", "ansi-styles@^3.2.1": - "integrity" "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" - "version" "3.2.1" - dependencies: - "color-convert" "^1.9.0" - -"ansi-styles@^4.0.0": - "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - "version" "4.3.0" - dependencies: - "color-convert" "^2.0.1" - -"ansi-styles@^4.1.0": - "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - "version" "4.3.0" - dependencies: - "color-convert" "^2.0.1" - -"ansi-styles@^6.1.0": - "integrity" "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" - "version" "6.2.1" - -"anymatch@^2.0.0": - "integrity" "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==" - "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "micromatch" "^3.1.4" - "normalize-path" "^2.1.1" - -"anymatch@^3.0.3": - "integrity" "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==" - "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" - "version" "3.1.1" - dependencies: - "normalize-path" "^3.0.0" - "picomatch" "^2.0.4" - -"appdirsjs@^1.2.4": - "integrity" "sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==" - "resolved" "https://registry.npmjs.org/appdirsjs/-/appdirsjs-1.2.7.tgz" - "version" "1.2.7" - -"argparse@^1.0.7": - "integrity" "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==" - "resolved" "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" - "version" "1.0.10" - dependencies: - "sprintf-js" "~1.0.2" - -"arr-diff@^4.0.0": - "integrity" "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==" - "resolved" "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz" - "version" "4.0.0" - -"arr-flatten@^1.1.0": - "integrity" "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" - "resolved" "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz" - "version" "1.1.0" - -"arr-union@^3.1.0": - "integrity" "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" - "resolved" "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz" - "version" "3.1.0" - -"array-ify@^1.0.0": - "integrity" "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=" - "resolved" "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz" - "version" "1.0.0" - -"array-includes@^3.1.1", "array-includes@^3.1.2": - "integrity" "sha512-w2GspexNQpx+PutG3QpT437/BenZBj0M/MZGn5mzv/MofYqo0xmRHzn4lFsoDlWJ+THYsGJmFlW68WlDFx7VRw==" - "resolved" "https://registry.npmjs.org/array-includes/-/array-includes-3.1.2.tgz" - "version" "3.1.2" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "get-intrinsic" "^1.0.1" - "is-string" "^1.0.5" - -"array-union@^2.1.0": - "integrity" "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" - "resolved" "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" - "version" "2.1.0" - -"array-unique@^0.3.2": - "integrity" "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" - "resolved" "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz" - "version" "0.3.2" - -"array.prototype.flatmap@^1.2.3": - "integrity" "sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==" - "resolved" "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz" - "version" "1.2.4" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "function-bind" "^1.1.1" - -"array.prototype.map@^1.0.4": - "integrity" "sha512-Qds9QnX7A0qISY7JT5WuJO0NJPE9CMlC6JzHQfhpqAAQQzufVRoeH7EzUY5GcPTx72voG8LV/5eo+b8Qi8hmhA==" - "resolved" "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.3" - "es-abstract" "^1.19.0" - "es-array-method-boxes-properly" "^1.0.0" - "is-string" "^1.0.7" - -"arrify@^1.0.1": - "integrity" "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" - "resolved" "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" - "version" "1.0.1" - -"asap@~2.0.6": - "integrity" "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" - "resolved" "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" - "version" "2.0.6" - -"assign-symbols@^1.0.0": - "integrity" "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" - "resolved" "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz" - "version" "1.0.0" - -"ast-types@^0.13.2": - "integrity" "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==" - "resolved" "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz" - "version" "0.13.4" - dependencies: - "tslib" "^2.0.1" - -"ast-types@0.14.2": - "integrity" "sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==" - "resolved" "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz" - "version" "0.14.2" - dependencies: - "tslib" "^2.0.1" - -"astral-regex@^1.0.0": - "integrity" "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==" - "resolved" "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz" - "version" "1.0.0" - -"astral-regex@^2.0.0": - "integrity" "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==" - "resolved" "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" - "version" "2.0.0" - -"async-limiter@~1.0.0": - "integrity" "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - "resolved" "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" - "version" "1.0.1" - -"async-retry@1.3.3": - "integrity" "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==" - "resolved" "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz" - "version" "1.3.3" - dependencies: - "retry" "0.13.1" - -"async@^3.2.2": - "integrity" "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - "resolved" "https://registry.npmjs.org/async/-/async-3.2.4.tgz" - "version" "3.2.4" - -"asynckit@^0.4.0": - "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - "version" "0.4.0" - -"at-least-node@^1.0.0": - "integrity" "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - "resolved" "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" - "version" "1.0.0" - -"atob@^2.1.2": - "integrity" "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" - "resolved" "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" - "version" "2.1.2" - -"babel-core@^7.0.0-bridge.0": - "integrity" "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==" - "resolved" "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz" - "version" "7.0.0-bridge.0" - -"babel-eslint@^10.1.0": - "integrity" "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==" - "resolved" "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz" - "version" "10.1.0" + version "3.10.1" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz" + integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== + dependencies: + eslint-visitor-keys "^1.1.0" + +JSONStream@^1.0.4: + version "1.3.5" + resolved "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz" + integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + +abab@^2.0.3, abab@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz" + integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== + +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== + dependencies: + event-target-shim "^5.0.0" + +absolute-path@^0.0.0: + version "0.0.0" + resolved "https://registry.npmjs.org/absolute-path/-/absolute-path-0.0.0.tgz" + integrity sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA== + +accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7: + version "1.3.8" + resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-globals@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz" + integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== + dependencies: + acorn "^7.1.1" + acorn-walk "^7.1.1" + +acorn-jsx@^5.3.1: + version "5.3.1" + resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz" + integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng== + +acorn-walk@^7.1.1: + version "7.2.0" + resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + +acorn-walk@^8.2.0: + version "8.2.0" + resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" + integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + +acorn@^7.1.1, acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.2.4, acorn@^8.7.0: + version "8.8.1" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz" + integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== + +add-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz" + integrity sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ== + +agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv@^6.10.0, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^7.0.2: + version "7.0.3" + resolved "https://registry.npmjs.org/ajv/-/ajv-7.0.3.tgz" + integrity sha512-R50QRlXSxqXcQP5SvKUrw8VZeypvo12i2IX0EeR5PiZ7bEKeHWgzgo264LDadUsCU42lTJVhFikTqJwNeH34gQ== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +anser@^1.4.9: + version "1.4.10" + resolved "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz" + integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww== + +ansi-align@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz" + integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== + dependencies: + string-width "^4.1.0" + +ansi-colors@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" + integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== + +ansi-escapes@^4.2.1: + version "4.3.1" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz" + integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== + dependencies: + type-fest "^0.11.0" + +ansi-escapes@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz" + integrity sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA== + dependencies: + type-fest "^1.0.2" + +ansi-fragments@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz" + integrity sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w== + dependencies: + colorette "^1.0.7" + slice-ansi "^2.0.0" + strip-ansi "^5.0.0" + +ansi-regex@^4.1.0: + version "4.1.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz" + integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== + +ansi-regex@^5.0.0, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^6.1.0: + version "6.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +anymatch@^3.0.3: + version "3.1.1" + resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" + integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +appdirsjs@^1.2.4: + version "1.2.7" + resolved "https://registry.npmjs.org/appdirsjs/-/appdirsjs-1.2.7.tgz" + integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz" + integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-ify@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz" + integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4= + +array-includes@^3.1.1, array-includes@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.2.tgz" + integrity sha512-w2GspexNQpx+PutG3QpT437/BenZBj0M/MZGn5mzv/MofYqo0xmRHzn4lFsoDlWJ+THYsGJmFlW68WlDFx7VRw== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + get-intrinsic "^1.0.1" + is-string "^1.0.5" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +array.prototype.flatmap@^1.2.3: + version "1.2.4" + resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz" + integrity sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + function-bind "^1.1.1" + +array.prototype.map@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.4.tgz" + integrity sha512-Qds9QnX7A0qISY7JT5WuJO0NJPE9CMlC6JzHQfhpqAAQQzufVRoeH7EzUY5GcPTx72voG8LV/5eo+b8Qi8hmhA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + es-array-method-boxes-properly "^1.0.0" + is-string "^1.0.7" + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +asap@~2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" + integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +ast-types@0.14.2: + version "0.14.2" + resolved "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz" + integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA== + dependencies: + tslib "^2.0.1" + +ast-types@^0.13.2: + version "0.13.4" + resolved "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz" + integrity sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w== + dependencies: + tslib "^2.0.1" + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +async-retry@1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz" + integrity sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw== + dependencies: + retry "0.13.1" + +async@^3.2.2: + version "3.2.4" + resolved "https://registry.npmjs.org/async/-/async-3.2.4.tgz" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + +atob@^2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +babel-core@^7.0.0-bridge.0: + version "7.0.0-bridge.0" + resolved "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz" + integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== + +babel-eslint@^10.1.0: + version "10.1.0" + resolved "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz" + integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== dependencies: "@babel/code-frame" "^7.0.0" "@babel/parser" "^7.7.0" "@babel/traverse" "^7.7.0" "@babel/types" "^7.7.0" - "eslint-visitor-keys" "^1.0.0" - "resolve" "^1.12.0" + eslint-visitor-keys "^1.0.0" + resolve "^1.12.0" -"babel-jest@^26.6.3": - "integrity" "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==" - "resolved" "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz" - "version" "26.6.3" +babel-jest@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz" + integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== dependencies: "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/babel__core" "^7.1.7" - "babel-plugin-istanbul" "^6.0.0" - "babel-preset-jest" "^26.6.2" - "chalk" "^4.0.0" - "graceful-fs" "^4.2.4" - "slash" "^3.0.0" + babel-plugin-istanbul "^6.0.0" + babel-preset-jest "^26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + slash "^3.0.0" -"babel-plugin-istanbul@^6.0.0": - "integrity" "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==" - "resolved" "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz" - "version" "6.0.0" +babel-plugin-istanbul@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz" + integrity sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@istanbuljs/load-nyc-config" "^1.0.0" "@istanbuljs/schema" "^0.1.2" - "istanbul-lib-instrument" "^4.0.0" - "test-exclude" "^6.0.0" + istanbul-lib-instrument "^4.0.0" + test-exclude "^6.0.0" -"babel-plugin-jest-hoist@^26.6.2": - "integrity" "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==" - "resolved" "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz" - "version" "26.6.2" +babel-plugin-jest-hoist@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz" + integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" -"babel-plugin-polyfill-corejs2@^0.3.3": - "integrity" "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==" - "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz" - "version" "0.3.3" +babel-plugin-polyfill-corejs2@^0.3.3: + version "0.3.3" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz" + integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== dependencies: "@babel/compat-data" "^7.17.7" "@babel/helper-define-polyfill-provider" "^0.3.3" - "semver" "^6.1.1" + semver "^6.1.1" -"babel-plugin-polyfill-corejs3@^0.6.0": - "integrity" "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==" - "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz" - "version" "0.6.0" +babel-plugin-polyfill-corejs3@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz" + integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA== dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" - "core-js-compat" "^3.25.1" + core-js-compat "^3.25.1" -"babel-plugin-polyfill-regenerator@^0.4.1": - "integrity" "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==" - "resolved" "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz" - "version" "0.4.1" +babel-plugin-polyfill-regenerator@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz" + integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" -"babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0": - "integrity" "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==" - "resolved" "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz" - "version" "7.0.0-beta.0" +babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: + version "7.0.0-beta.0" + resolved "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz" + integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== -"babel-preset-current-node-syntax@^1.0.0": - "integrity" "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==" - "resolved" "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" - "version" "1.0.1" +babel-preset-current-node-syntax@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" + integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== dependencies: "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-bigint" "^7.8.3" @@ -2592,10 +2588,10 @@ "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -"babel-preset-fbjs@^3.4.0": - "integrity" "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==" - "resolved" "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz" - "version" "3.4.0" +babel-preset-fbjs@^3.4.0: + version "3.4.0" + resolved "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz" + integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== dependencies: "@babel/plugin-proposal-class-properties" "^7.0.0" "@babel/plugin-proposal-object-rest-spread" "^7.0.0" @@ -2623,3194 +2619,3124 @@ "@babel/plugin-transform-shorthand-properties" "^7.0.0" "@babel/plugin-transform-spread" "^7.0.0" "@babel/plugin-transform-template-literals" "^7.0.0" - "babel-plugin-syntax-trailing-function-commas" "^7.0.0-beta.0" - -"babel-preset-jest@^26.6.2": - "integrity" "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==" - "resolved" "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz" - "version" "26.6.2" - dependencies: - "babel-plugin-jest-hoist" "^26.6.2" - "babel-preset-current-node-syntax" "^1.0.0" - -"balanced-match@^1.0.0": - "integrity" "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" - "version" "1.0.0" - -"base@^0.11.1": - "integrity" "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==" - "resolved" "https://registry.npmjs.org/base/-/base-0.11.2.tgz" - "version" "0.11.2" - dependencies: - "cache-base" "^1.0.1" - "class-utils" "^0.3.5" - "component-emitter" "^1.2.1" - "define-property" "^1.0.0" - "isobject" "^3.0.1" - "mixin-deep" "^1.2.0" - "pascalcase" "^0.1.1" - -"base64-js@^1.1.2", "base64-js@^1.3.1": - "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" - "version" "1.5.1" - -"before-after-hook@^2.2.0": - "integrity" "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" - "resolved" "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz" - "version" "2.2.3" - -"bl@^4.1.0": - "integrity" "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==" - "resolved" "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "buffer" "^5.5.0" - "inherits" "^2.0.4" - "readable-stream" "^3.4.0" - -"bl@^5.0.0": - "integrity" "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==" - "resolved" "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz" - "version" "5.1.0" - dependencies: - "buffer" "^6.0.3" - "inherits" "^2.0.4" - "readable-stream" "^3.4.0" - -"boxen@^7.0.0": - "integrity" "sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==" - "resolved" "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "ansi-align" "^3.0.1" - "camelcase" "^7.0.0" - "chalk" "^5.0.1" - "cli-boxes" "^3.0.0" - "string-width" "^5.1.2" - "type-fest" "^2.13.0" - "widest-line" "^4.0.1" - "wrap-ansi" "^8.0.1" - -"brace-expansion@^1.1.7": - "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" - "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - "version" "1.1.11" - dependencies: - "balanced-match" "^1.0.0" - "concat-map" "0.0.1" - -"brace-expansion@^2.0.1": - "integrity" "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==" - "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "balanced-match" "^1.0.0" - -"braces@^2.3.1": - "integrity" "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==" - "resolved" "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz" - "version" "2.3.2" - dependencies: - "arr-flatten" "^1.1.0" - "array-unique" "^0.3.2" - "extend-shallow" "^2.0.1" - "fill-range" "^4.0.0" - "isobject" "^3.0.1" - "repeat-element" "^1.1.2" - "snapdragon" "^0.8.1" - "snapdragon-node" "^2.0.1" - "split-string" "^3.0.2" - "to-regex" "^3.0.1" - -"braces@^3.0.2": - "integrity" "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" - "resolved" "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "fill-range" "^7.0.1" - -"browser-process-hrtime@^1.0.0": - "integrity" "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" - "resolved" "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" - "version" "1.0.0" - -"browserslist@^4.20.4", "browserslist@^4.21.3", "browserslist@^4.21.4", "browserslist@>= 4.21.0": - "integrity" "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==" - "resolved" "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz" - "version" "4.21.4" - dependencies: - "caniuse-lite" "^1.0.30001400" - "electron-to-chromium" "^1.4.251" - "node-releases" "^2.0.6" - "update-browserslist-db" "^1.0.9" - -"bser@2.1.1": - "integrity" "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==" - "resolved" "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" - "version" "2.1.1" - dependencies: - "node-int64" "^0.4.0" - -"buffer-from@^1.0.0": - "integrity" "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" - "resolved" "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" - "version" "1.1.1" - -"buffer@^5.5.0": - "integrity" "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==" - "resolved" "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" - "version" "5.7.1" - dependencies: - "base64-js" "^1.3.1" - "ieee754" "^1.1.13" - -"buffer@^6.0.3": - "integrity" "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==" - "resolved" "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" - "version" "6.0.3" - dependencies: - "base64-js" "^1.3.1" - "ieee754" "^1.2.1" - -"bytes@3.0.0": - "integrity" "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" - "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" - "version" "3.0.0" - -"bytes@3.1.2": - "integrity" "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" - "version" "3.1.2" - -"cache-base@^1.0.1": - "integrity" "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==" - "resolved" "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "collection-visit" "^1.0.0" - "component-emitter" "^1.2.1" - "get-value" "^2.0.6" - "has-value" "^1.0.0" - "isobject" "^3.0.1" - "set-value" "^2.0.0" - "to-object-path" "^0.3.0" - "union-value" "^1.0.0" - "unset-value" "^1.0.0" - -"cacheable-lookup@^7.0.0": - "integrity" "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==" - "resolved" "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz" - "version" "7.0.0" - -"cacheable-request@^10.2.1": - "integrity" "sha512-KxjQZM3UIo7/J6W4sLpwFvu1GB3Whv8NtZ8ZrUL284eiQjiXeeqWTdhixNrp/NLZ/JNuFBo6BD4ZaO8ZJ5BN8Q==" - "resolved" "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.2.tgz" - "version" "10.2.2" + babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" + +babel-preset-jest@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz" + integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== + dependencies: + babel-plugin-jest-hoist "^26.6.2" + babel-preset-current-node-syntax "^1.0.0" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-js@^1.1.2, base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.npmjs.org/base/-/base-0.11.2.tgz" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +before-after-hook@^2.2.0: + version "2.2.3" + resolved "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz" + integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== + +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +bl@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz" + integrity sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ== + dependencies: + buffer "^6.0.3" + inherits "^2.0.4" + readable-stream "^3.4.0" + +boxen@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz" + integrity sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg== + dependencies: + ansi-align "^3.0.1" + camelcase "^7.0.0" + chalk "^5.0.1" + cli-boxes "^3.0.0" + string-width "^5.1.2" + type-fest "^2.13.0" + widest-line "^4.0.1" + wrap-ansi "^8.0.1" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +braces@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-process-hrtime@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" + integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== + +browserslist@^4.20.4, browserslist@^4.21.3, browserslist@^4.21.4: + version "4.21.4" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz" + integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== + dependencies: + caniuse-lite "^1.0.30001400" + electron-to-chromium "^1.4.251" + node-releases "^2.0.6" + update-browserslist-db "^1.0.9" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +buffer@^6.0.3: + version "6.0.3" + resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.2.1" + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +cacheable-lookup@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz" + integrity sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w== + +cacheable-request@^10.2.1: + version "10.2.2" + resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.2.tgz" + integrity sha512-KxjQZM3UIo7/J6W4sLpwFvu1GB3Whv8NtZ8ZrUL284eiQjiXeeqWTdhixNrp/NLZ/JNuFBo6BD4ZaO8ZJ5BN8Q== dependencies: "@types/http-cache-semantics" "^4.0.1" - "get-stream" "^6.0.1" - "http-cache-semantics" "^4.1.0" - "keyv" "^4.5.0" - "mimic-response" "^4.0.0" - "normalize-url" "^7.2.0" - "responselike" "^3.0.0" - -"call-bind@^1.0.0", "call-bind@^1.0.2": - "integrity" "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==" - "resolved" "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "function-bind" "^1.1.1" - "get-intrinsic" "^1.0.2" - -"caller-callsite@^2.0.0": - "integrity" "sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==" - "resolved" "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "callsites" "^2.0.0" - -"caller-path@^2.0.0": - "integrity" "sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==" - "resolved" "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "caller-callsite" "^2.0.0" - -"callsites@^2.0.0": - "integrity" "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==" - "resolved" "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz" - "version" "2.0.0" - -"callsites@^3.0.0": - "integrity" "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - "resolved" "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" - "version" "3.1.0" - -"camelcase-keys@^6.2.2": - "integrity" "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==" - "resolved" "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz" - "version" "6.2.2" - dependencies: - "camelcase" "^5.3.1" - "map-obj" "^4.0.0" - "quick-lru" "^4.0.1" - -"camelcase@^5.0.0", "camelcase@^5.3.1": - "integrity" "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" - "version" "5.3.1" - -"camelcase@^6.0.0": - "integrity" "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==" - "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz" - "version" "6.2.0" - -"camelcase@^7.0.0": - "integrity" "sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ==" - "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-7.0.0.tgz" - "version" "7.0.0" - -"caniuse-lite@^1.0.30001400": - "integrity" "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==" - "resolved" "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz" - "version" "1.0.30001429" - -"capture-exit@^2.0.0": - "integrity" "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==" - "resolved" "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "rsvp" "^4.8.4" - -"chalk@^2.0.0": - "integrity" "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" - "version" "2.4.2" - dependencies: - "ansi-styles" "^3.2.1" - "escape-string-regexp" "^1.0.5" - "supports-color" "^5.3.0" - -"chalk@^4.0.0": - "integrity" "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chalk@^4.1.0": - "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - "version" "4.1.2" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chalk@^4.1.2": - "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - "version" "4.1.2" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chalk@^5.0.0", "chalk@^5.0.1": - "integrity" "sha512-E5CkT4jWURs1Vy5qGJye+XwCkNj7Od3Af7CP6SujMetSMkLs8Do2RWJK5yx1wamHV/op8Rz+9rltjaTQWDnEFQ==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-5.1.2.tgz" - "version" "5.1.2" - -"chalk@4.1.0": - "integrity" "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chalk@5.0.1": - "integrity" "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz" - "version" "5.0.1" - -"char-regex@^1.0.2": - "integrity" "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==" - "resolved" "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" - "version" "1.0.2" - -"chardet@^0.7.0": - "integrity" "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" - "resolved" "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" - "version" "0.7.0" - -"ci-info@^2.0.0": - "integrity" "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" - "version" "2.0.0" - -"ci-info@^3.2.0": - "integrity" "sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw==" - "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-3.5.0.tgz" - "version" "3.5.0" - -"cjs-module-lexer@^0.6.0": - "integrity" "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==" - "resolved" "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz" - "version" "0.6.0" - -"class-utils@^0.3.5": - "integrity" "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==" - "resolved" "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz" - "version" "0.3.6" - dependencies: - "arr-union" "^3.1.0" - "define-property" "^0.2.5" - "isobject" "^3.0.0" - "static-extend" "^0.1.1" - -"clean-stack@^2.0.0": - "integrity" "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" - "resolved" "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" - "version" "2.2.0" - -"cli-boxes@^3.0.0": - "integrity" "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==" - "resolved" "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz" - "version" "3.0.0" - -"cli-cursor@^3.1.0": - "integrity" "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==" - "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "restore-cursor" "^3.1.0" - -"cli-cursor@^4.0.0": - "integrity" "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==" - "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "restore-cursor" "^4.0.0" - -"cli-spinners@^2.5.0", "cli-spinners@^2.6.1": - "integrity" "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==" - "resolved" "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz" - "version" "2.7.0" - -"cli-width@^4.0.0": - "integrity" "sha512-ZksGS2xpa/bYkNzN3BAw1wEjsLV/ZKOf/CCrJ/QOBsxx6fOARIkwTutxp1XIOIohi6HKmOFjMoK/XaqDVUpEEw==" - "resolved" "https://registry.npmjs.org/cli-width/-/cli-width-4.0.0.tgz" - "version" "4.0.0" - -"cliui@^6.0.0": - "integrity" "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==" - "resolved" "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "string-width" "^4.2.0" - "strip-ansi" "^6.0.0" - "wrap-ansi" "^6.2.0" - -"cliui@^7.0.2": - "integrity" "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==" - "resolved" "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" - "version" "7.0.4" - dependencies: - "string-width" "^4.2.0" - "strip-ansi" "^6.0.0" - "wrap-ansi" "^7.0.0" - -"cliui@^8.0.1": - "integrity" "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==" - "resolved" "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" - "version" "8.0.1" - dependencies: - "string-width" "^4.2.0" - "strip-ansi" "^6.0.1" - "wrap-ansi" "^7.0.0" - -"clone-deep@^4.0.1": - "integrity" "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==" - "resolved" "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "is-plain-object" "^2.0.4" - "kind-of" "^6.0.2" - "shallow-clone" "^3.0.0" - -"clone@^1.0.2": - "integrity" "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==" - "resolved" "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" - "version" "1.0.4" - -"co@^4.6.0": - "integrity" "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" - "resolved" "https://registry.npmjs.org/co/-/co-4.6.0.tgz" - "version" "4.6.0" - -"collect-v8-coverage@^1.0.0": - "integrity" "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" - "resolved" "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz" - "version" "1.0.1" - -"collection-visit@^1.0.0": - "integrity" "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=" - "resolved" "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "map-visit" "^1.0.0" - "object-visit" "^1.0.0" - -"color-convert@^1.9.0": - "integrity" "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==" - "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" - "version" "1.9.3" - dependencies: - "color-name" "1.1.3" - -"color-convert@^2.0.1": - "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" - "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "color-name" "~1.1.4" - -"color-name@~1.1.4": - "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - "version" "1.1.4" - -"color-name@1.1.3": - "integrity" "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" - "version" "1.1.3" - -"colorette@^1.0.7": - "integrity" "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" - "resolved" "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz" - "version" "1.4.0" - -"combined-stream@^1.0.8": - "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==" - "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" - "version" "1.0.8" - dependencies: - "delayed-stream" "~1.0.0" - -"command-exists@^1.2.8": - "integrity" "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==" - "resolved" "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz" - "version" "1.2.9" - -"commander@^9.4.0": - "integrity" "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==" - "resolved" "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz" - "version" "9.4.1" - -"commander@~2.13.0": - "integrity" "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==" - "resolved" "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz" - "version" "2.13.0" - -"commitlint@^11.0.0": - "integrity" "sha512-nTmP1tM52gfi39tDCN8dAlRRWJyVoJY2JuYgVhSONETGJ2MY69K/go0YbCzlIEDO/bUka5ybeI6CJz5ZicvNzg==" - "resolved" "https://registry.npmjs.org/commitlint/-/commitlint-11.0.0.tgz" - "version" "11.0.0" + get-stream "^6.0.1" + http-cache-semantics "^4.1.0" + keyv "^4.5.0" + mimic-response "^4.0.0" + normalize-url "^7.2.0" + responselike "^3.0.0" + +call-bind@^1.0.0, call-bind@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" + integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.2" + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz" + integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz" + integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz" + integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase-keys@^6.2.2: + version "6.2.2" + resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz" + integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== + dependencies: + camelcase "^5.3.1" + map-obj "^4.0.0" + quick-lru "^4.0.1" + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.0.0: + version "6.2.0" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz" + integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== + +camelcase@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-7.0.0.tgz" + integrity sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ== + +caniuse-lite@^1.0.30001400: + version "1.0.30001429" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz" + integrity sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg== + +capture-exit@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz" + integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== + dependencies: + rsvp "^4.8.4" + +chalk@4.1.0, chalk@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz" + integrity sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w== + +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.1.0, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@^5.0.0, chalk@^5.0.1: + version "5.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-5.1.2.tgz" + integrity sha512-E5CkT4jWURs1Vy5qGJye+XwCkNj7Od3Af7CP6SujMetSMkLs8Do2RWJK5yx1wamHV/op8Rz+9rltjaTQWDnEFQ== + +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +ci-info@^3.2.0: + version "3.5.0" + resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.5.0.tgz" + integrity sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw== + +cjs-module-lexer@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz" + integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-boxes@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz" + integrity sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g== + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz" + integrity sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg== + dependencies: + restore-cursor "^4.0.0" + +cli-spinners@^2.5.0, cli-spinners@^2.6.1: + version "2.7.0" + resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + +cli-width@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cli-width/-/cli-width-4.0.0.tgz" + integrity sha512-ZksGS2xpa/bYkNzN3BAw1wEjsLV/ZKOf/CCrJ/QOBsxx6fOARIkwTutxp1XIOIohi6HKmOFjMoK/XaqDVUpEEw== + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== + dependencies: + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +collect-v8-coverage@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz" + integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +colorette@^1.0.7: + version "1.4.0" + resolved "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz" + integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +command-exists@^1.2.8: + version "1.2.9" + resolved "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz" + integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== + +commander@^9.4.0: + version "9.4.1" + resolved "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz" + integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== + +commander@~2.13.0: + version "2.13.0" + resolved "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz" + integrity sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA== + +commitlint@^11.0.0: + version "11.0.0" + resolved "https://registry.npmjs.org/commitlint/-/commitlint-11.0.0.tgz" + integrity sha512-nTmP1tM52gfi39tDCN8dAlRRWJyVoJY2JuYgVhSONETGJ2MY69K/go0YbCzlIEDO/bUka5ybeI6CJz5ZicvNzg== dependencies: "@commitlint/cli" "^11.0.0" -"commondir@^1.0.1": - "integrity" "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - "resolved" "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz" - "version" "1.0.1" - -"compare-func@^2.0.0": - "integrity" "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==" - "resolved" "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "array-ify" "^1.0.0" - "dot-prop" "^5.1.0" - -"compare-versions@^3.6.0": - "integrity" "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==" - "resolved" "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz" - "version" "3.6.0" - -"component-emitter@^1.2.1": - "integrity" "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - "resolved" "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz" - "version" "1.3.0" - -"compressible@~2.0.16": - "integrity" "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==" - "resolved" "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" - "version" "2.0.18" - dependencies: - "mime-db" ">= 1.43.0 < 2" - -"compression@^1.7.1": - "integrity" "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==" - "resolved" "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" - "version" "1.7.4" - dependencies: - "accepts" "~1.3.5" - "bytes" "3.0.0" - "compressible" "~2.0.16" - "debug" "2.6.9" - "on-headers" "~1.0.2" - "safe-buffer" "5.1.2" - "vary" "~1.1.2" - -"concat-map@0.0.1": - "integrity" "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - "version" "0.0.1" - -"concat-stream@^2.0.0": - "integrity" "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==" - "resolved" "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "buffer-from" "^1.0.0" - "inherits" "^2.0.3" - "readable-stream" "^3.0.2" - "typedarray" "^0.0.6" - -"config-chain@^1.1.11": - "integrity" "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==" - "resolved" "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz" - "version" "1.1.13" - dependencies: - "ini" "^1.3.4" - "proto-list" "~1.2.1" - -"configstore@^6.0.0": - "integrity" "sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==" - "resolved" "https://registry.npmjs.org/configstore/-/configstore-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "dot-prop" "^6.0.1" - "graceful-fs" "^4.2.6" - "unique-string" "^3.0.0" - "write-file-atomic" "^3.0.3" - "xdg-basedir" "^5.0.1" - -"connect@^3.6.5": - "integrity" "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==" - "resolved" "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz" - "version" "3.7.0" - dependencies: - "debug" "2.6.9" - "finalhandler" "1.1.2" - "parseurl" "~1.3.3" - "utils-merge" "1.0.1" - -"conventional-changelog-angular@^5.0.0", "conventional-changelog-angular@^5.0.12": - "integrity" "sha512-5GLsbnkR/7A89RyHLvvoExbiGbd9xKdKqDTrArnPbOqBqG/2wIosu0fHwpeIRI8Tl94MhVNBXcLJZl92ZQ5USw==" - "resolved" "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz" - "version" "5.0.12" - dependencies: - "compare-func" "^2.0.0" - "q" "^1.5.1" - -"conventional-changelog-atom@^2.0.8": - "integrity" "sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==" - "resolved" "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz" - "version" "2.0.8" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-codemirror@^2.0.8": - "integrity" "sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==" - "resolved" "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz" - "version" "2.0.8" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-conventionalcommits@^4.3.1", "conventional-changelog-conventionalcommits@^4.5.0": - "integrity" "sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw==" - "resolved" "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz" - "version" "4.5.0" - dependencies: - "compare-func" "^2.0.0" - "lodash" "^4.17.15" - "q" "^1.5.1" - -"conventional-changelog-core@^4.2.1": - "integrity" "sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==" - "resolved" "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz" - "version" "4.2.4" - dependencies: - "add-stream" "^1.0.0" - "conventional-changelog-writer" "^5.0.0" - "conventional-commits-parser" "^3.2.0" - "dateformat" "^3.0.0" - "get-pkg-repo" "^4.0.0" - "git-raw-commits" "^2.0.8" - "git-remote-origin-url" "^2.0.0" - "git-semver-tags" "^4.1.1" - "lodash" "^4.17.15" - "normalize-package-data" "^3.0.0" - "q" "^1.5.1" - "read-pkg" "^3.0.0" - "read-pkg-up" "^3.0.0" - "through2" "^4.0.0" - -"conventional-changelog-ember@^2.0.9": - "integrity" "sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==" - "resolved" "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz" - "version" "2.0.9" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-eslint@^3.0.9": - "integrity" "sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==" - "resolved" "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz" - "version" "3.0.9" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-express@^2.0.6": - "integrity" "sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==" - "resolved" "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz" - "version" "2.0.6" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-jquery@^3.0.11": - "integrity" "sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==" - "resolved" "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz" - "version" "3.0.11" - dependencies: - "q" "^1.5.1" - -"conventional-changelog-jshint@^2.0.9": - "integrity" "sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==" - "resolved" "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz" - "version" "2.0.9" - dependencies: - "compare-func" "^2.0.0" - "q" "^1.5.1" - -"conventional-changelog-preset-loader@^2.3.4": - "integrity" "sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==" - "resolved" "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz" - "version" "2.3.4" - -"conventional-changelog-writer@^5.0.0": - "integrity" "sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==" - "resolved" "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "conventional-commits-filter" "^2.0.7" - "dateformat" "^3.0.0" - "handlebars" "^4.7.7" - "json-stringify-safe" "^5.0.1" - "lodash" "^4.17.15" - "meow" "^8.0.0" - "semver" "^6.0.0" - "split" "^1.0.0" - "through2" "^4.0.0" - -"conventional-changelog@^3.1.25": - "integrity" "sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==" - "resolved" "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz" - "version" "3.1.25" - dependencies: - "conventional-changelog-angular" "^5.0.12" - "conventional-changelog-atom" "^2.0.8" - "conventional-changelog-codemirror" "^2.0.8" - "conventional-changelog-conventionalcommits" "^4.5.0" - "conventional-changelog-core" "^4.2.1" - "conventional-changelog-ember" "^2.0.9" - "conventional-changelog-eslint" "^3.0.9" - "conventional-changelog-express" "^2.0.6" - "conventional-changelog-jquery" "^3.0.11" - "conventional-changelog-jshint" "^2.0.9" - "conventional-changelog-preset-loader" "^2.3.4" - -"conventional-commits-filter@^2.0.7": - "integrity" "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==" - "resolved" "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz" - "version" "2.0.7" - dependencies: - "lodash.ismatch" "^4.4.0" - "modify-values" "^1.0.0" - -"conventional-commits-parser@^3.0.0", "conventional-commits-parser@^3.2.0": - "integrity" "sha512-XmJiXPxsF0JhAKyfA2Nn+rZwYKJ60nanlbSWwwkGwLQFbugsc0gv1rzc7VbbUWAzJfR1qR87/pNgv9NgmxtBMQ==" - "resolved" "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.0.tgz" - "version" "3.2.0" - dependencies: - "is-text-path" "^1.0.1" - "JSONStream" "^1.0.4" - "lodash" "^4.17.15" - "meow" "^8.0.0" - "split2" "^2.0.0" - "through2" "^4.0.0" - "trim-off-newlines" "^1.0.0" - -"conventional-recommended-bump@^6.1.0": - "integrity" "sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==" - "resolved" "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz" - "version" "6.1.0" - dependencies: - "concat-stream" "^2.0.0" - "conventional-changelog-preset-loader" "^2.3.4" - "conventional-commits-filter" "^2.0.7" - "conventional-commits-parser" "^3.2.0" - "git-raw-commits" "^2.0.8" - "git-semver-tags" "^4.1.1" - "meow" "^8.0.0" - "q" "^1.5.1" - -"convert-source-map@^1.4.0", "convert-source-map@^1.6.0", "convert-source-map@^1.7.0": - "integrity" "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==" - "resolved" "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz" - "version" "1.7.0" - dependencies: - "safe-buffer" "~5.1.1" - -"copy-descriptor@^0.1.0": - "integrity" "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" - "resolved" "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz" - "version" "0.1.1" - -"core-js-compat@^3.25.1": - "integrity" "sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A==" - "resolved" "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz" - "version" "3.26.0" - dependencies: - "browserslist" "^4.21.4" - -"core-js@^3.6.1": - "integrity" "sha512-FfApuSRgrR6G5s58casCBd9M2k+4ikuu4wbW6pJyYU7bd9zvFc9qf7vr5xmrZOhT9nn+8uwlH1oRR9jTnFoA3A==" - "resolved" "https://registry.npmjs.org/core-js/-/core-js-3.8.2.tgz" - "version" "3.8.2" - -"core-util-is@~1.0.0": - "integrity" "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" - "version" "1.0.2" - -"cosmiconfig@^5.0.5": - "integrity" "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==" - "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" - "version" "5.2.1" - dependencies: - "import-fresh" "^2.0.0" - "is-directory" "^0.3.1" - "js-yaml" "^3.13.1" - "parse-json" "^4.0.0" - -"cosmiconfig@^5.1.0": - "integrity" "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==" - "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" - "version" "5.2.1" - dependencies: - "import-fresh" "^2.0.0" - "is-directory" "^0.3.1" - "js-yaml" "^3.13.1" - "parse-json" "^4.0.0" - -"cosmiconfig@^7.0.0", "cosmiconfig@^7.0.1", "cosmiconfig@7.0.1": - "integrity" "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==" - "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz" - "version" "7.0.1" +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + +compare-func@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz" + integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA== + dependencies: + array-ify "^1.0.0" + dot-prop "^5.1.0" + +compare-versions@^3.6.0: + version "3.6.0" + resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz" + integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA== + +component-emitter@^1.2.1: + version "1.3.0" + resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz" + integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== + +compressible@~2.0.16: + version "2.0.18" + resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.1: + version "1.7.4" + resolved "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" + integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.16" + debug "2.6.9" + on-headers "~1.0.2" + safe-buffer "5.1.2" + vary "~1.1.2" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz" + integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.0.2" + typedarray "^0.0.6" + +config-chain@^1.1.11: + version "1.1.13" + resolved "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz" + integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ== + dependencies: + ini "^1.3.4" + proto-list "~1.2.1" + +configstore@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/configstore/-/configstore-6.0.0.tgz" + integrity sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA== + dependencies: + dot-prop "^6.0.1" + graceful-fs "^4.2.6" + unique-string "^3.0.0" + write-file-atomic "^3.0.3" + xdg-basedir "^5.0.1" + +connect@^3.6.5: + version "3.7.0" + resolved "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz" + integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== + dependencies: + debug "2.6.9" + finalhandler "1.1.2" + parseurl "~1.3.3" + utils-merge "1.0.1" + +conventional-changelog-angular@^5.0.0, conventional-changelog-angular@^5.0.12: + version "5.0.12" + resolved "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz" + integrity sha512-5GLsbnkR/7A89RyHLvvoExbiGbd9xKdKqDTrArnPbOqBqG/2wIosu0fHwpeIRI8Tl94MhVNBXcLJZl92ZQ5USw== + dependencies: + compare-func "^2.0.0" + q "^1.5.1" + +conventional-changelog-atom@^2.0.8: + version "2.0.8" + resolved "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz" + integrity sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw== + dependencies: + q "^1.5.1" + +conventional-changelog-codemirror@^2.0.8: + version "2.0.8" + resolved "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz" + integrity sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw== + dependencies: + q "^1.5.1" + +conventional-changelog-conventionalcommits@^4.3.1, conventional-changelog-conventionalcommits@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz" + integrity sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw== + dependencies: + compare-func "^2.0.0" + lodash "^4.17.15" + q "^1.5.1" + +conventional-changelog-core@^4.2.1: + version "4.2.4" + resolved "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz" + integrity sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg== + dependencies: + add-stream "^1.0.0" + conventional-changelog-writer "^5.0.0" + conventional-commits-parser "^3.2.0" + dateformat "^3.0.0" + get-pkg-repo "^4.0.0" + git-raw-commits "^2.0.8" + git-remote-origin-url "^2.0.0" + git-semver-tags "^4.1.1" + lodash "^4.17.15" + normalize-package-data "^3.0.0" + q "^1.5.1" + read-pkg "^3.0.0" + read-pkg-up "^3.0.0" + through2 "^4.0.0" + +conventional-changelog-ember@^2.0.9: + version "2.0.9" + resolved "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz" + integrity sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A== + dependencies: + q "^1.5.1" + +conventional-changelog-eslint@^3.0.9: + version "3.0.9" + resolved "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz" + integrity sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA== + dependencies: + q "^1.5.1" + +conventional-changelog-express@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz" + integrity sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ== + dependencies: + q "^1.5.1" + +conventional-changelog-jquery@^3.0.11: + version "3.0.11" + resolved "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz" + integrity sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw== + dependencies: + q "^1.5.1" + +conventional-changelog-jshint@^2.0.9: + version "2.0.9" + resolved "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz" + integrity sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA== + dependencies: + compare-func "^2.0.0" + q "^1.5.1" + +conventional-changelog-preset-loader@^2.3.4: + version "2.3.4" + resolved "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz" + integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== + +conventional-changelog-writer@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz" + integrity sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ== + dependencies: + conventional-commits-filter "^2.0.7" + dateformat "^3.0.0" + handlebars "^4.7.7" + json-stringify-safe "^5.0.1" + lodash "^4.17.15" + meow "^8.0.0" + semver "^6.0.0" + split "^1.0.0" + through2 "^4.0.0" + +conventional-changelog@^3.1.25: + version "3.1.25" + resolved "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz" + integrity sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ== + dependencies: + conventional-changelog-angular "^5.0.12" + conventional-changelog-atom "^2.0.8" + conventional-changelog-codemirror "^2.0.8" + conventional-changelog-conventionalcommits "^4.5.0" + conventional-changelog-core "^4.2.1" + conventional-changelog-ember "^2.0.9" + conventional-changelog-eslint "^3.0.9" + conventional-changelog-express "^2.0.6" + conventional-changelog-jquery "^3.0.11" + conventional-changelog-jshint "^2.0.9" + conventional-changelog-preset-loader "^2.3.4" + +conventional-commits-filter@^2.0.7: + version "2.0.7" + resolved "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz" + integrity sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA== + dependencies: + lodash.ismatch "^4.4.0" + modify-values "^1.0.0" + +conventional-commits-parser@^3.0.0, conventional-commits-parser@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.0.tgz" + integrity sha512-XmJiXPxsF0JhAKyfA2Nn+rZwYKJ60nanlbSWwwkGwLQFbugsc0gv1rzc7VbbUWAzJfR1qR87/pNgv9NgmxtBMQ== + dependencies: + JSONStream "^1.0.4" + is-text-path "^1.0.1" + lodash "^4.17.15" + meow "^8.0.0" + split2 "^2.0.0" + through2 "^4.0.0" + trim-off-newlines "^1.0.0" + +conventional-recommended-bump@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz" + integrity sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw== + dependencies: + concat-stream "^2.0.0" + conventional-changelog-preset-loader "^2.3.4" + conventional-commits-filter "^2.0.7" + conventional-commits-parser "^3.2.0" + git-raw-commits "^2.0.8" + git-semver-tags "^4.1.1" + meow "^8.0.0" + q "^1.5.1" + +convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: + version "1.7.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + dependencies: + safe-buffer "~5.1.1" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-js-compat@^3.25.1: + version "3.26.0" + resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz" + integrity sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A== + dependencies: + browserslist "^4.21.4" + +core-js@^3.6.1: + version "3.8.2" + resolved "https://registry.npmjs.org/core-js/-/core-js-3.8.2.tgz" + integrity sha512-FfApuSRgrR6G5s58casCBd9M2k+4ikuu4wbW6pJyYU7bd9zvFc9qf7vr5xmrZOhT9nn+8uwlH1oRR9jTnFoA3A== + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cosmiconfig@7.0.1, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz" + integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== dependencies: "@types/parse-json" "^4.0.0" - "import-fresh" "^3.2.1" - "parse-json" "^5.0.0" - "path-type" "^4.0.0" - "yaml" "^1.10.0" - -"cross-spawn@^6.0.0": - "integrity" "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==" - "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" - "version" "6.0.5" - dependencies: - "nice-try" "^1.0.4" - "path-key" "^2.0.1" - "semver" "^5.5.0" - "shebang-command" "^1.2.0" - "which" "^1.2.9" - -"cross-spawn@^7.0.0", "cross-spawn@^7.0.2", "cross-spawn@^7.0.3": - "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==" - "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" - "version" "7.0.3" - dependencies: - "path-key" "^3.1.0" - "shebang-command" "^2.0.0" - "which" "^2.0.1" - -"crypto-random-string@^4.0.0": - "integrity" "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==" - "resolved" "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "type-fest" "^1.0.1" - -"cssom@^0.4.4": - "integrity" "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" - "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz" - "version" "0.4.4" - -"cssom@~0.3.6": - "integrity" "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz" - "version" "0.3.8" - -"cssstyle@^2.3.0": - "integrity" "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==" - "resolved" "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz" - "version" "2.3.0" - dependencies: - "cssom" "~0.3.6" - -"csstype@^3.0.2": - "integrity" "sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ==" - "resolved" "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz" - "version" "3.0.5" - -"dargs@^7.0.0": - "integrity" "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==" - "resolved" "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz" - "version" "7.0.0" - -"data-uri-to-buffer@^4.0.0": - "integrity" "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" - "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz" - "version" "4.0.0" - -"data-uri-to-buffer@3": - "integrity" "sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==" - "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz" - "version" "3.0.1" - -"data-urls@^2.0.0": - "integrity" "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==" - "resolved" "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "abab" "^2.0.3" - "whatwg-mimetype" "^2.3.0" - "whatwg-url" "^8.0.0" - -"dateformat@^3.0.0": - "integrity" "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==" - "resolved" "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz" - "version" "3.0.3" - -"dayjs@^1.8.15": - "integrity" "sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ==" - "resolved" "https://registry.npmjs.org/dayjs/-/dayjs-1.11.6.tgz" - "version" "1.11.6" - -"debug@^2.2.0": - "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" - "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - "version" "2.6.9" - dependencies: - "ms" "2.0.0" - -"debug@^2.3.3": - "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" - "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - "version" "2.6.9" - dependencies: - "ms" "2.0.0" - -"debug@^4.0.1", "debug@^4.1.0", "debug@^4.1.1", "debug@4": - "integrity" "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==" - "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz" - "version" "4.3.1" - dependencies: - "ms" "2.1.2" - -"debug@2.6.9": - "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" - "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - "version" "2.6.9" - dependencies: - "ms" "2.0.0" - -"decamelize-keys@^1.1.0": - "integrity" "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=" - "resolved" "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz" - "version" "1.1.0" - dependencies: - "decamelize" "^1.1.0" - "map-obj" "^1.0.0" - -"decamelize@^1.1.0", "decamelize@^1.2.0": - "integrity" "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" - "version" "1.2.0" - -"decimal.js@^10.2.1": - "integrity" "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==" - "resolved" "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz" - "version" "10.2.1" - -"decode-uri-component@^0.2.0": - "integrity" "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - "resolved" "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz" - "version" "0.2.0" - -"decompress-response@^6.0.0": - "integrity" "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==" - "resolved" "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "mimic-response" "^3.1.0" - -"dedent@^0.7.0": - "integrity" "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=" - "resolved" "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" - "version" "0.7.0" - -"deep-extend@^0.6.0": - "integrity" "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" - "resolved" "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" - "version" "0.6.0" - -"deep-is@^0.1.3", "deep-is@~0.1.3": - "integrity" "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" - "resolved" "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz" - "version" "0.1.3" - -"deepmerge@^3.2.0": - "integrity" "sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA==" - "resolved" "https://registry.npmjs.org/deepmerge/-/deepmerge-3.3.0.tgz" - "version" "3.3.0" - -"deepmerge@^4.2.2": - "integrity" "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==" - "resolved" "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz" - "version" "4.2.2" - -"defaults@^1.0.3": - "integrity" "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==" - "resolved" "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "clone" "^1.0.2" - -"defer-to-connect@^2.0.1": - "integrity" "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" - "resolved" "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" - "version" "2.0.1" - -"define-lazy-prop@^2.0.0": - "integrity" "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" - "resolved" "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz" - "version" "2.0.0" - -"define-properties@^1.1.3", "define-properties@^1.1.4": - "integrity" "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==" - "resolved" "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz" - "version" "1.1.4" - dependencies: - "has-property-descriptors" "^1.0.0" - "object-keys" "^1.1.1" - -"define-property@^0.2.5": - "integrity" "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=" - "resolved" "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz" - "version" "0.2.5" - dependencies: - "is-descriptor" "^0.1.0" - -"define-property@^1.0.0": - "integrity" "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=" - "resolved" "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "is-descriptor" "^1.0.0" - -"define-property@^2.0.2": - "integrity" "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==" - "resolved" "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz" - "version" "2.0.2" - dependencies: - "is-descriptor" "^1.0.2" - "isobject" "^3.0.1" - -"degenerator@^3.0.2": - "integrity" "sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ==" - "resolved" "https://registry.npmjs.org/degenerator/-/degenerator-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "ast-types" "^0.13.2" - "escodegen" "^1.8.1" - "esprima" "^4.0.0" - "vm2" "^3.9.8" - -"del@^6.1.1": - "integrity" "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==" - "resolved" "https://registry.npmjs.org/del/-/del-6.1.1.tgz" - "version" "6.1.1" - dependencies: - "globby" "^11.0.1" - "graceful-fs" "^4.2.4" - "is-glob" "^4.0.1" - "is-path-cwd" "^2.2.0" - "is-path-inside" "^3.0.2" - "p-map" "^4.0.0" - "rimraf" "^3.0.2" - "slash" "^3.0.0" - -"delayed-stream@~1.0.0": - "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - "version" "1.0.0" - -"denodeify@^1.2.1": - "integrity" "sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==" - "resolved" "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz" - "version" "1.2.1" - -"depd@2.0.0": - "integrity" "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - "resolved" "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" - "version" "2.0.0" - -"deprecation@^2.0.0", "deprecation@^2.3.1": - "integrity" "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" - "resolved" "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz" - "version" "2.3.1" - -"destroy@1.2.0": - "integrity" "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" - "resolved" "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" - "version" "1.2.0" - -"detect-newline@^3.0.0": - "integrity" "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==" - "resolved" "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" - "version" "3.1.0" - -"diff-sequences@^26.6.2": - "integrity" "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==" - "resolved" "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz" - "version" "26.6.2" - -"dir-glob@^3.0.1": - "integrity" "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==" - "resolved" "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "path-type" "^4.0.0" - -"doctrine@^2.1.0": - "integrity" "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==" - "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "esutils" "^2.0.2" - -"doctrine@^3.0.0": - "integrity" "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==" - "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "esutils" "^2.0.2" - -"domexception@^2.0.1": - "integrity" "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==" - "resolved" "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "webidl-conversions" "^5.0.0" - -"dot-prop@^5.1.0": - "integrity" "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==" - "resolved" "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz" - "version" "5.3.0" - dependencies: - "is-obj" "^2.0.0" - -"dot-prop@^6.0.1": - "integrity" "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==" - "resolved" "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz" - "version" "6.0.1" - dependencies: - "is-obj" "^2.0.0" - -"eastasianwidth@^0.2.0": - "integrity" "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - "resolved" "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" - "version" "0.2.0" - -"ee-first@1.1.1": - "integrity" "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - "resolved" "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" - "version" "1.1.1" - -"electron-to-chromium@^1.4.251": - "integrity" "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" - "resolved" "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz" - "version" "1.4.284" - -"emittery@^0.7.1": - "integrity" "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==" - "resolved" "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz" - "version" "0.7.2" - -"emoji-regex@^8.0.0": - "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - "version" "8.0.0" - -"emoji-regex@^9.2.2": - "integrity" "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" - "version" "9.2.2" - -"encodeurl@~1.0.2": - "integrity" "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" - "resolved" "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" - "version" "1.0.2" - -"end-of-stream@^1.1.0": - "integrity" "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==" - "resolved" "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" - "version" "1.4.4" - dependencies: - "once" "^1.4.0" - -"enquirer@^2.3.5": - "integrity" "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==" - "resolved" "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" - "version" "2.3.6" - dependencies: - "ansi-colors" "^4.1.1" - -"envinfo@^7.7.2": - "integrity" "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==" - "resolved" "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz" - "version" "7.8.1" - -"error-ex@^1.3.1": - "integrity" "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==" - "resolved" "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" - "version" "1.3.2" - dependencies: - "is-arrayish" "^0.2.1" - -"error-stack-parser@^2.0.6": - "integrity" "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==" - "resolved" "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz" - "version" "2.1.4" - dependencies: - "stackframe" "^1.3.4" - -"errorhandler@^1.5.0": - "integrity" "sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==" - "resolved" "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz" - "version" "1.5.1" - dependencies: - "accepts" "~1.3.7" - "escape-html" "~1.0.3" - -"es-abstract@^1.18.0-next.1", "es-abstract@^1.19.0", "es-abstract@^1.19.1", "es-abstract@^1.19.5": - "integrity" "sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==" - "resolved" "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz" - "version" "1.20.4" - dependencies: - "call-bind" "^1.0.2" - "es-to-primitive" "^1.2.1" - "function-bind" "^1.1.1" - "function.prototype.name" "^1.1.5" - "get-intrinsic" "^1.1.3" - "get-symbol-description" "^1.0.0" - "has" "^1.0.3" - "has-property-descriptors" "^1.0.0" - "has-symbols" "^1.0.3" - "internal-slot" "^1.0.3" - "is-callable" "^1.2.7" - "is-negative-zero" "^2.0.2" - "is-regex" "^1.1.4" - "is-shared-array-buffer" "^1.0.2" - "is-string" "^1.0.7" - "is-weakref" "^1.0.2" - "object-inspect" "^1.12.2" - "object-keys" "^1.1.1" - "object.assign" "^4.1.4" - "regexp.prototype.flags" "^1.4.3" - "safe-regex-test" "^1.0.0" - "string.prototype.trimend" "^1.0.5" - "string.prototype.trimstart" "^1.0.5" - "unbox-primitive" "^1.0.2" - -"es-array-method-boxes-properly@^1.0.0": - "integrity" "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" - "resolved" "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" - "version" "1.0.0" - -"es-get-iterator@^1.0.2": - "integrity" "sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==" - "resolved" "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz" - "version" "1.1.2" - dependencies: - "call-bind" "^1.0.2" - "get-intrinsic" "^1.1.0" - "has-symbols" "^1.0.1" - "is-arguments" "^1.1.0" - "is-map" "^2.0.2" - "is-set" "^2.0.2" - "is-string" "^1.0.5" - "isarray" "^2.0.5" - -"es-to-primitive@^1.2.1": - "integrity" "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==" - "resolved" "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" - "version" "1.2.1" - dependencies: - "is-callable" "^1.1.4" - "is-date-object" "^1.0.1" - "is-symbol" "^1.0.2" - -"escalade@^3.1.1": - "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - "version" "3.1.1" - -"escape-goat@^4.0.0": - "integrity" "sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==" - "resolved" "https://registry.npmjs.org/escape-goat/-/escape-goat-4.0.0.tgz" - "version" "4.0.0" - -"escape-html@~1.0.3": - "integrity" "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - "resolved" "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" - "version" "1.0.3" - -"escape-string-regexp@^1.0.5": - "integrity" "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" - "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - "version" "1.0.5" - -"escape-string-regexp@^2.0.0": - "integrity" "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" - "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" - "version" "2.0.0" - -"escape-string-regexp@^5.0.0": - "integrity" "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==" - "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" - "version" "5.0.0" - -"escodegen@^1.8.1": - "integrity" "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==" - "resolved" "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" - "version" "1.14.3" - dependencies: - "esprima" "^4.0.1" - "estraverse" "^4.2.0" - "esutils" "^2.0.2" - "optionator" "^0.8.1" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" + +cosmiconfig@^5.0.5, cosmiconfig@^5.1.0: + version "5.2.1" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +crypto-random-string@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz" + integrity sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA== + dependencies: + type-fest "^1.0.1" + +cssom@^0.4.4: + version "0.4.4" + resolved "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz" + integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== + +cssom@~0.3.6: + version "0.3.8" + resolved "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz" + integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== + dependencies: + cssom "~0.3.6" + +csstype@^3.0.2: + version "3.0.5" + resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz" + integrity sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ== + +dargs@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz" + integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== + +data-uri-to-buffer@3: + version "3.0.1" + resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz" + integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== + +data-uri-to-buffer@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz" + integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA== + +data-urls@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz" + integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== + dependencies: + abab "^2.0.3" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.0.0" + +dateformat@^3.0.0: + version "3.0.3" + resolved "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz" + integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== + +dayjs@^1.8.15: + version "1.11.6" + resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.6.tgz" + integrity sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ== + +debug@2.6.9, debug@^2.2.0, debug@^2.3.3: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: + version "4.3.1" + resolved "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz" + integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== + dependencies: + ms "2.1.2" + +decamelize-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz" + integrity sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk= + dependencies: + decamelize "^1.1.0" + map-obj "^1.0.0" + +decamelize@^1.1.0, decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decimal.js@^10.2.1: + version "10.2.1" + resolved "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz" + integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw== + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + +dedent@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" + integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@^0.1.3, deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +deepmerge@^3.2.0: + version "3.3.0" + resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-3.3.0.tgz" + integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== + +deepmerge@^4.2.2: + version "4.2.2" + resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + +defaults@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== + dependencies: + clone "^1.0.2" + +defer-to-connect@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + +define-lazy-prop@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz" + integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== + +define-properties@^1.1.3, define-properties@^1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz" + integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +degenerator@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/degenerator/-/degenerator-3.0.2.tgz" + integrity sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ== + dependencies: + ast-types "^0.13.2" + escodegen "^1.8.1" + esprima "^4.0.0" + vm2 "^3.9.8" + +del@^6.1.1: + version "6.1.1" + resolved "https://registry.npmjs.org/del/-/del-6.1.1.tgz" + integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg== + dependencies: + globby "^11.0.1" + graceful-fs "^4.2.4" + is-glob "^4.0.1" + is-path-cwd "^2.2.0" + is-path-inside "^3.0.2" + p-map "^4.0.0" + rimraf "^3.0.2" + slash "^3.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +denodeify@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz" + integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +deprecation@^2.0.0, deprecation@^2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz" + integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz" + integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +domexception@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz" + integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== + dependencies: + webidl-conversions "^5.0.0" + +dot-prop@^5.1.0: + version "5.3.0" + resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz" + integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== + dependencies: + is-obj "^2.0.0" + +dot-prop@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz" + integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== + dependencies: + is-obj "^2.0.0" + +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +electron-to-chromium@^1.4.251: + version "1.4.284" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz" + integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== + +emittery@^0.7.1: + version "0.7.2" + resolved "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz" + integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + +envinfo@^7.7.2: + version "7.8.1" + resolved "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz" + integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== + +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +error-stack-parser@^2.0.6: + version "2.1.4" + resolved "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz" + integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== + dependencies: + stackframe "^1.3.4" + +errorhandler@^1.5.0: + version "1.5.1" + resolved "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz" + integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A== + dependencies: + accepts "~1.3.7" + escape-html "~1.0.3" + +es-abstract@^1.18.0-next.1, es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.5: + version "1.20.4" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz" + integrity sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.3" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.2" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.4.3" + safe-regex-test "^1.0.0" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" + +es-array-method-boxes-properly@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" + integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== + +es-get-iterator@^1.0.2: + version "1.1.2" + resolved "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz" + integrity sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.0" + has-symbols "^1.0.1" + is-arguments "^1.1.0" + is-map "^2.0.2" + is-set "^2.0.2" + is-string "^1.0.5" + isarray "^2.0.5" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-goat@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-goat/-/escape-goat-4.0.0.tgz" + integrity sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + +escodegen@^1.8.1: + version "1.14.3" + resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" + integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== + dependencies: + esprima "^4.0.1" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" optionalDependencies: - "source-map" "~0.6.1" + source-map "~0.6.1" -"escodegen@^2.0.0": - "integrity" "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==" - "resolved" "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz" - "version" "2.0.0" +escodegen@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz" + integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== dependencies: - "esprima" "^4.0.1" - "estraverse" "^5.2.0" - "esutils" "^2.0.2" - "optionator" "^0.8.1" + esprima "^4.0.1" + estraverse "^5.2.0" + esutils "^2.0.2" + optionator "^0.8.1" optionalDependencies: - "source-map" "~0.6.1" + source-map "~0.6.1" -"eslint-config-prettier@^6.10.1": - "integrity" "sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw==" - "resolved" "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz" - "version" "6.15.0" +eslint-config-prettier@^6.10.1: + version "6.15.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz" + integrity sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw== dependencies: - "get-stdin" "^6.0.0" + get-stdin "^6.0.0" -"eslint-config-prettier@^7.0.0": - "integrity" "sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA==" - "resolved" "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz" - "version" "7.1.0" +eslint-config-prettier@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz" + integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA== -"eslint-plugin-eslint-comments@^3.1.2": - "integrity" "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==" - "resolved" "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz" - "version" "3.2.0" +eslint-plugin-eslint-comments@^3.1.2: + version "3.2.0" + resolved "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz" + integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== dependencies: - "escape-string-regexp" "^1.0.5" - "ignore" "^5.0.5" + escape-string-regexp "^1.0.5" + ignore "^5.0.5" -"eslint-plugin-flowtype@2.50.3": - "integrity" "sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ==" - "resolved" "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz" - "version" "2.50.3" +eslint-plugin-flowtype@2.50.3: + version "2.50.3" + resolved "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz" + integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ== dependencies: - "lodash" "^4.17.10" + lodash "^4.17.10" -"eslint-plugin-jest@22.4.1": - "integrity" "sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg==" - "resolved" "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz" - "version" "22.4.1" +eslint-plugin-jest@22.4.1: + version "22.4.1" + resolved "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-22.4.1.tgz" + integrity sha512-gcLfn6P2PrFAVx3AobaOzlIEevpAEf9chTpFZz7bYfc7pz8XRv7vuKTIE4hxPKZSha6XWKKplDQ0x9Pq8xX2mg== -"eslint-plugin-prettier@^3.1.3": - "integrity" "sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ==" - "resolved" "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz" - "version" "3.3.1" +eslint-plugin-prettier@3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz" + integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== dependencies: - "prettier-linter-helpers" "^1.0.0" + prettier-linter-helpers "^1.0.0" -"eslint-plugin-prettier@3.1.2": - "integrity" "sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA==" - "resolved" "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz" - "version" "3.1.2" +eslint-plugin-prettier@^3.1.3: + version "3.3.1" + resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz" + integrity sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ== dependencies: - "prettier-linter-helpers" "^1.0.0" + prettier-linter-helpers "^1.0.0" -"eslint-plugin-react-hooks@^4.0.4": - "integrity" "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==" - "resolved" "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz" - "version" "4.2.0" +eslint-plugin-react-hooks@^4.0.4: + version "4.2.0" + resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz" + integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ== -"eslint-plugin-react-native-globals@^0.1.1": - "integrity" "sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==" - "resolved" "https://registry.npmjs.org/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz" - "version" "0.1.2" +eslint-plugin-react-native-globals@^0.1.1: + version "0.1.2" + resolved "https://registry.npmjs.org/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz" + integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g== -"eslint-plugin-react-native@^3.8.1": - "integrity" "sha512-4f5+hHYYq5wFhB5eptkPEAR7FfvqbS7AzScUOANfAMZtYw5qgnCxRq45bpfBaQF+iyPMim5Q8pubcpvLv75NAg==" - "resolved" "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-3.10.0.tgz" - "version" "3.10.0" +eslint-plugin-react-native@^3.8.1: + version "3.10.0" + resolved "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-3.10.0.tgz" + integrity sha512-4f5+hHYYq5wFhB5eptkPEAR7FfvqbS7AzScUOANfAMZtYw5qgnCxRq45bpfBaQF+iyPMim5Q8pubcpvLv75NAg== dependencies: "@babel/traverse" "^7.7.4" - "eslint-plugin-react-native-globals" "^0.1.1" - -"eslint-plugin-react@^7.20.0": - "integrity" "sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==" - "resolved" "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz" - "version" "7.22.0" - dependencies: - "array-includes" "^3.1.1" - "array.prototype.flatmap" "^1.2.3" - "doctrine" "^2.1.0" - "has" "^1.0.3" - "jsx-ast-utils" "^2.4.1 || ^3.0.0" - "object.entries" "^1.1.2" - "object.fromentries" "^2.0.2" - "object.values" "^1.1.1" - "prop-types" "^15.7.2" - "resolve" "^1.18.1" - "string.prototype.matchall" "^4.0.2" - -"eslint-scope@^5.0.0", "eslint-scope@^5.1.1": - "integrity" "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==" - "resolved" "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" - "version" "5.1.1" - dependencies: - "esrecurse" "^4.3.0" - "estraverse" "^4.1.1" - -"eslint-utils@^2.0.0", "eslint-utils@^2.1.0": - "integrity" "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==" - "resolved" "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "eslint-visitor-keys" "^1.1.0" - -"eslint-visitor-keys@^1.0.0", "eslint-visitor-keys@^1.1.0", "eslint-visitor-keys@^1.3.0": - "integrity" "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==" - "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" - "version" "1.3.0" - -"eslint-visitor-keys@^2.0.0": - "integrity" "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==" - "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz" - "version" "2.0.0" - -"eslint@*", "eslint@^3 || ^4 || ^5 || ^6 || ^7", "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", "eslint@^3.17.0 || ^4 || ^5 || ^6 || ^7", "eslint@^5.0.0 || ^6.0.0 || ^7.0.0", "eslint@^7.2.0", "eslint@>= 4.12.1", "eslint@>= 5.0.0", "eslint@>=2.0.0", "eslint@>=3.14.1", "eslint@>=4.19.1", "eslint@>=5", "eslint@>=5.0.0", "eslint@>=6", "eslint@>=7.0.0": - "integrity" "sha512-zJk08MiBgwuGoxes5sSQhOtibZ75pz0J35XTRlZOk9xMffhpA9BTbQZxoXZzOl5zMbleShbGwtw+1kGferfFwQ==" - "resolved" "https://registry.npmjs.org/eslint/-/eslint-7.17.0.tgz" - "version" "7.17.0" + eslint-plugin-react-native-globals "^0.1.1" + +eslint-plugin-react@^7.20.0: + version "7.22.0" + resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz" + integrity sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA== + dependencies: + array-includes "^3.1.1" + array.prototype.flatmap "^1.2.3" + doctrine "^2.1.0" + has "^1.0.3" + jsx-ast-utils "^2.4.1 || ^3.0.0" + object.entries "^1.1.2" + object.fromentries "^2.0.2" + object.values "^1.1.1" + prop-types "^15.7.2" + resolve "^1.18.1" + string.prototype.matchall "^4.0.2" + +eslint-scope@^5.0.0, eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^2.0.0, eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint-visitor-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz" + integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== + +eslint@^7.2.0: + version "7.17.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-7.17.0.tgz" + integrity sha512-zJk08MiBgwuGoxes5sSQhOtibZ75pz0J35XTRlZOk9xMffhpA9BTbQZxoXZzOl5zMbleShbGwtw+1kGferfFwQ== dependencies: "@babel/code-frame" "^7.0.0" "@eslint/eslintrc" "^0.2.2" - "ajv" "^6.10.0" - "chalk" "^4.0.0" - "cross-spawn" "^7.0.2" - "debug" "^4.0.1" - "doctrine" "^3.0.0" - "enquirer" "^2.3.5" - "eslint-scope" "^5.1.1" - "eslint-utils" "^2.1.0" - "eslint-visitor-keys" "^2.0.0" - "espree" "^7.3.1" - "esquery" "^1.2.0" - "esutils" "^2.0.2" - "file-entry-cache" "^6.0.0" - "functional-red-black-tree" "^1.0.1" - "glob-parent" "^5.0.0" - "globals" "^12.1.0" - "ignore" "^4.0.6" - "import-fresh" "^3.0.0" - "imurmurhash" "^0.1.4" - "is-glob" "^4.0.0" - "js-yaml" "^3.13.1" - "json-stable-stringify-without-jsonify" "^1.0.1" - "levn" "^0.4.1" - "lodash" "^4.17.19" - "minimatch" "^3.0.4" - "natural-compare" "^1.4.0" - "optionator" "^0.9.1" - "progress" "^2.0.0" - "regexpp" "^3.1.0" - "semver" "^7.2.1" - "strip-ansi" "^6.0.0" - "strip-json-comments" "^3.1.0" - "table" "^6.0.4" - "text-table" "^0.2.0" - "v8-compile-cache" "^2.0.3" - -"espree@^7.3.0", "espree@^7.3.1": - "integrity" "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==" - "resolved" "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz" - "version" "7.3.1" - dependencies: - "acorn" "^7.4.0" - "acorn-jsx" "^5.3.1" - "eslint-visitor-keys" "^1.3.0" - -"esprima@^4.0.0", "esprima@^4.0.1", "esprima@~4.0.0": - "integrity" "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - "resolved" "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" - "version" "4.0.1" - -"esquery@^1.2.0": - "integrity" "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==" - "resolved" "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz" - "version" "1.3.1" - dependencies: - "estraverse" "^5.1.0" - -"esrecurse@^4.3.0": - "integrity" "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==" - "resolved" "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" - "version" "4.3.0" - dependencies: - "estraverse" "^5.2.0" - -"estraverse@^4.1.1", "estraverse@^4.2.0": - "integrity" "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" - "version" "4.3.0" - -"estraverse@^5.1.0": - "integrity" "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==" - "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz" - "version" "5.2.0" - -"estraverse@^5.2.0": - "integrity" "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" - "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - "version" "5.3.0" - -"esutils@^2.0.2": - "integrity" "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - "resolved" "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" - "version" "2.0.3" - -"etag@~1.8.1": - "integrity" "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" - "resolved" "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" - "version" "1.8.1" - -"event-target-shim@^5.0.0", "event-target-shim@^5.0.1": - "integrity" "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" - "resolved" "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" - "version" "5.0.1" - -"exec-sh@^0.3.2": - "integrity" "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==" - "resolved" "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz" - "version" "0.3.4" - -"execa@^1.0.0": - "integrity" "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==" - "resolved" "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "cross-spawn" "^6.0.0" - "get-stream" "^4.0.0" - "is-stream" "^1.1.0" - "npm-run-path" "^2.0.0" - "p-finally" "^1.0.0" - "signal-exit" "^3.0.0" - "strip-eof" "^1.0.0" - -"execa@^4.0.0", "execa@^4.0.3": - "integrity" "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==" - "resolved" "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "cross-spawn" "^7.0.0" - "get-stream" "^5.0.0" - "human-signals" "^1.1.1" - "is-stream" "^2.0.0" - "merge-stream" "^2.0.0" - "npm-run-path" "^4.0.0" - "onetime" "^5.1.0" - "signal-exit" "^3.0.2" - "strip-final-newline" "^2.0.0" - -"execa@^5.1.1": - "integrity" "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==" - "resolved" "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" - "version" "5.1.1" - dependencies: - "cross-spawn" "^7.0.3" - "get-stream" "^6.0.0" - "human-signals" "^2.1.0" - "is-stream" "^2.0.0" - "merge-stream" "^2.0.0" - "npm-run-path" "^4.0.1" - "onetime" "^5.1.2" - "signal-exit" "^3.0.3" - "strip-final-newline" "^2.0.0" - -"execa@6.1.0": - "integrity" "sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==" - "resolved" "https://registry.npmjs.org/execa/-/execa-6.1.0.tgz" - "version" "6.1.0" - dependencies: - "cross-spawn" "^7.0.3" - "get-stream" "^6.0.1" - "human-signals" "^3.0.1" - "is-stream" "^3.0.0" - "merge-stream" "^2.0.0" - "npm-run-path" "^5.1.0" - "onetime" "^6.0.0" - "signal-exit" "^3.0.7" - "strip-final-newline" "^3.0.0" - -"exit@^0.1.2": - "integrity" "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=" - "resolved" "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" - "version" "0.1.2" - -"expand-brackets@^2.1.4": - "integrity" "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=" - "resolved" "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz" - "version" "2.1.4" - dependencies: - "debug" "^2.3.3" - "define-property" "^0.2.5" - "extend-shallow" "^2.0.1" - "posix-character-classes" "^0.1.0" - "regex-not" "^1.0.0" - "snapdragon" "^0.8.1" - "to-regex" "^3.0.1" - -"expect@^26.6.2": - "integrity" "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==" - "resolved" "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz" - "version" "26.6.2" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.2.0" + esutils "^2.0.2" + file-entry-cache "^6.0.0" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash "^4.17.19" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.4" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== + dependencies: + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" + +esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.2.0: + version "1.3.1" + resolved "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz" + integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1, estraverse@^4.2.0: + version "4.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0: + version "5.2.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== + +estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +event-target-shim@^5.0.0, event-target-shim@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + +exec-sh@^0.3.2: + version "0.3.4" + resolved "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz" + integrity sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A== + +execa@6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/execa/-/execa-6.1.0.tgz" + integrity sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^3.0.1" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +execa@^4.0.0, execa@^4.0.3: + version "4.1.0" + resolved "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz" + integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + +execa@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expect@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz" + integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== dependencies: "@jest/types" "^26.6.2" - "ansi-styles" "^4.0.0" - "jest-get-type" "^26.3.0" - "jest-matcher-utils" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-regex-util" "^26.0.0" - -"extend-shallow@^2.0.1": - "integrity" "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=" - "resolved" "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "is-extendable" "^0.1.0" - -"extend-shallow@^3.0.0", "extend-shallow@^3.0.2": - "integrity" "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==" - "resolved" "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "assign-symbols" "^1.0.0" - "is-extendable" "^1.0.1" - -"external-editor@^3.0.3": - "integrity" "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==" - "resolved" "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "chardet" "^0.7.0" - "iconv-lite" "^0.4.24" - "tmp" "^0.0.33" - -"extglob@^2.0.4": - "integrity" "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==" - "resolved" "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz" - "version" "2.0.4" - dependencies: - "array-unique" "^0.3.2" - "define-property" "^1.0.0" - "expand-brackets" "^2.1.4" - "extend-shallow" "^2.0.1" - "fragment-cache" "^0.2.1" - "regex-not" "^1.0.0" - "snapdragon" "^0.8.1" - "to-regex" "^3.0.1" - -"fast-deep-equal@^3.1.1": - "integrity" "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" - "version" "3.1.3" - -"fast-diff@^1.1.2": - "integrity" "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" - "resolved" "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" - "version" "1.2.0" - -"fast-glob@^3.2.11", "fast-glob@^3.2.9": - "integrity" "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==" - "resolved" "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" - "version" "3.2.12" + ansi-styles "^4.0.0" + jest-get-type "^26.3.0" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-regex-util "^26.0.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz" + integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +fast-deep-equal@^3.1.1: + version "3.1.3" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.2.11, fast-glob@^3.2.9: + version "3.2.12" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" + integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== dependencies: "@nodelib/fs.stat" "^2.0.2" "@nodelib/fs.walk" "^1.2.3" - "glob-parent" "^5.1.2" - "merge2" "^1.3.0" - "micromatch" "^4.0.4" - -"fast-json-stable-stringify@^2.0.0": - "integrity" "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - "resolved" "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" - "version" "2.1.0" - -"fast-levenshtein@^2.0.6", "fast-levenshtein@~2.0.6": - "integrity" "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" - "resolved" "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" - "version" "2.0.6" - -"fastq@^1.6.0": - "integrity" "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==" - "resolved" "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz" - "version" "1.13.0" - dependencies: - "reusify" "^1.0.4" - -"fb-watchman@^2.0.0": - "integrity" "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==" - "resolved" "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "bser" "2.1.1" - -"fetch-blob@^3.1.2", "fetch-blob@^3.1.4": - "integrity" "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==" - "resolved" "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz" - "version" "3.2.0" - dependencies: - "node-domexception" "^1.0.0" - "web-streams-polyfill" "^3.0.3" - -"figures@^5.0.0": - "integrity" "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==" - "resolved" "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "escape-string-regexp" "^5.0.0" - "is-unicode-supported" "^1.2.0" - -"file-entry-cache@^6.0.0": - "integrity" "sha512-fqoO76jZ3ZnYrXLDRxBR1YvOvc0k844kcOg40bgsPrE25LAb/PDqTY+ho64Xh2c8ZXgIKldchCFHczG2UVRcWA==" - "resolved" "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "flat-cache" "^3.0.4" - -"file-uri-to-path@2": - "integrity" "sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==" - "resolved" "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz" - "version" "2.0.0" - -"fill-range@^4.0.0": - "integrity" "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==" - "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "extend-shallow" "^2.0.1" - "is-number" "^3.0.0" - "repeat-string" "^1.6.1" - "to-regex-range" "^2.1.0" - -"fill-range@^7.0.1": - "integrity" "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" - "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" - "version" "7.0.1" - dependencies: - "to-regex-range" "^5.0.1" - -"finalhandler@1.1.2": - "integrity" "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==" - "resolved" "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz" - "version" "1.1.2" - dependencies: - "debug" "2.6.9" - "encodeurl" "~1.0.2" - "escape-html" "~1.0.3" - "on-finished" "~2.3.0" - "parseurl" "~1.3.3" - "statuses" "~1.5.0" - "unpipe" "~1.0.0" - -"find-cache-dir@^2.0.0": - "integrity" "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==" - "resolved" "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "commondir" "^1.0.1" - "make-dir" "^2.0.0" - "pkg-dir" "^3.0.0" - -"find-up@^2.0.0": - "integrity" "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==" - "resolved" "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "locate-path" "^2.0.0" - -"find-up@^3.0.0": - "integrity" "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==" - "resolved" "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "locate-path" "^3.0.0" - -"find-up@^4.0.0": - "integrity" "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" - "resolved" "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "locate-path" "^5.0.0" - "path-exists" "^4.0.0" - -"find-up@^4.1.0": - "integrity" "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" - "resolved" "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "locate-path" "^5.0.0" - "path-exists" "^4.0.0" - -"find-up@^5.0.0": - "integrity" "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==" - "resolved" "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "locate-path" "^6.0.0" - "path-exists" "^4.0.0" - -"find-versions@^4.0.0": - "integrity" "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==" - "resolved" "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "semver-regex" "^3.1.2" - -"flat-cache@^3.0.4": - "integrity" "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==" - "resolved" "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" - "version" "3.0.4" - dependencies: - "flatted" "^3.1.0" - "rimraf" "^3.0.2" - -"flatted@^3.1.0": - "integrity" "sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==" - "resolved" "https://registry.npmjs.org/flatted/-/flatted-3.1.0.tgz" - "version" "3.1.0" - -"flow-parser@^0.121.0", "flow-parser@0.*": - "integrity" "sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg==" - "resolved" "https://registry.npmjs.org/flow-parser/-/flow-parser-0.121.0.tgz" - "version" "0.121.0" - -"for-in@^1.0.2": - "integrity" "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" - "resolved" "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz" - "version" "1.0.2" - -"form-data-encoder@^2.1.2": - "integrity" "sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ==" - "resolved" "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.3.tgz" - "version" "2.1.3" - -"form-data@^3.0.0": - "integrity" "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==" - "resolved" "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "asynckit" "^0.4.0" - "combined-stream" "^1.0.8" - "mime-types" "^2.1.12" - -"form-data@4.0.0": - "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" - "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "asynckit" "^0.4.0" - "combined-stream" "^1.0.8" - "mime-types" "^2.1.12" - -"formdata-polyfill@^4.0.10": - "integrity" "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==" - "resolved" "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz" - "version" "4.0.10" - dependencies: - "fetch-blob" "^3.1.2" - -"fragment-cache@^0.2.1": - "integrity" "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=" - "resolved" "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz" - "version" "0.2.1" - dependencies: - "map-cache" "^0.2.2" - -"fresh@0.5.2": - "integrity" "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" - "resolved" "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" - "version" "0.5.2" - -"fs-extra@^1.0.0": - "integrity" "sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "graceful-fs" "^4.1.2" - "jsonfile" "^2.1.0" - "klaw" "^1.0.0" - -"fs-extra@^10.1.0": - "integrity" "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - "version" "10.1.0" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs-extra@^8.1.0": - "integrity" "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" - "version" "8.1.0" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^4.0.0" - "universalify" "^0.1.0" - -"fs-extra@^9.0.0": - "integrity" "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz" - "version" "9.0.1" - dependencies: - "at-least-node" "^1.0.0" - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^1.0.0" - -"fs.realpath@^1.0.0": - "integrity" "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - "version" "1.0.0" - -"fsevents@^2.1.2": - "integrity" "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==" - "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz" - "version" "2.3.1" - -"ftp@^0.3.10": - "integrity" "sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ==" - "resolved" "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz" - "version" "0.3.10" - dependencies: - "readable-stream" "1.1.x" - "xregexp" "2.0.0" - -"function-bind@^1.1.1": - "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - "version" "1.1.1" - -"function.prototype.name@^1.1.5": - "integrity" "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==" - "resolved" "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" - "version" "1.1.5" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.3" - "es-abstract" "^1.19.0" - "functions-have-names" "^1.2.2" - -"functional-red-black-tree@^1.0.1": - "integrity" "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" - "resolved" "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" - "version" "1.0.1" - -"functions-have-names@^1.2.2": - "integrity" "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" - "resolved" "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" - "version" "1.2.3" - -"gensync@^1.0.0-beta.2": - "integrity" "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" - "resolved" "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" - "version" "1.0.0-beta.2" - -"get-caller-file@^2.0.1", "get-caller-file@^2.0.5": - "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - "version" "2.0.5" - -"get-intrinsic@^1.0.1", "get-intrinsic@^1.0.2", "get-intrinsic@^1.1.0", "get-intrinsic@^1.1.1", "get-intrinsic@^1.1.3": - "integrity" "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==" - "resolved" "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz" - "version" "1.1.3" - dependencies: - "function-bind" "^1.1.1" - "has" "^1.0.3" - "has-symbols" "^1.0.3" - -"get-package-type@^0.1.0": - "integrity" "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==" - "resolved" "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" - "version" "0.1.0" - -"get-pkg-repo@^4.0.0": - "integrity" "sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==" - "resolved" "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz" - "version" "4.2.1" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + +fb-watchman@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz" + integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== + dependencies: + bser "2.1.1" + +fetch-blob@^3.1.2, fetch-blob@^3.1.4: + version "3.2.0" + resolved "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== + dependencies: + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + +figures@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz" + integrity sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg== + dependencies: + escape-string-regexp "^5.0.0" + is-unicode-supported "^1.2.0" + +file-entry-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.0.tgz" + integrity sha512-fqoO76jZ3ZnYrXLDRxBR1YvOvc0k844kcOg40bgsPrE25LAb/PDqTY+ho64Xh2c8ZXgIKldchCFHczG2UVRcWA== + dependencies: + flat-cache "^3.0.4" + +file-uri-to-path@2: + version "2.0.0" + resolved "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz" + integrity sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg== + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz" + integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +finalhandler@1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +find-cache-dir@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + +find-up@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz" + integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== + dependencies: + locate-path "^2.0.0" + +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +find-versions@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz" + integrity sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ== + dependencies: + semver-regex "^3.1.2" + +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flatted@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/flatted/-/flatted-3.1.0.tgz" + integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA== + +flow-parser@0.*, flow-parser@^0.121.0: + version "0.121.0" + resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.121.0.tgz" + integrity sha512-1gIBiWJNR0tKUNv8gZuk7l9rVX06OuLzY9AoGio7y/JT4V1IZErEMEq2TJS+PFcw/y0RshZ1J/27VfK1UQzYVg== + +for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +form-data-encoder@^2.1.2: + version "2.1.3" + resolved "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.3.tgz" + integrity sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ== + +form-data@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fs-extra@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz" + integrity sha512-VerQV6vEKuhDWD2HGOybV6v5I73syoc/cXAbKlgTC7M/oFVEtklWlp9QH2Ijw3IaWDOQcMkldSPa7zXy79Z/UQ== + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + +fs-extra@^10.1.0: + version "10.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-extra@^9.0.0: + version "9.0.1" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz" + integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^1.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^2.1.2: + version "2.3.1" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz" + integrity sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw== + +ftp@^0.3.10: + version "0.3.10" + resolved "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz" + integrity sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ== + dependencies: + readable-stream "1.1.x" + xregexp "2.0.0" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1, get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-intrinsic@^1.0.1, get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz" + integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.3" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-pkg-repo@^4.0.0: + version "4.2.1" + resolved "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz" + integrity sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA== dependencies: "@hutson/parse-repository-url" "^3.0.0" - "hosted-git-info" "^4.0.0" - "through2" "^2.0.0" - "yargs" "^16.2.0" + hosted-git-info "^4.0.0" + through2 "^2.0.0" + yargs "^16.2.0" -"get-stdin@^6.0.0": - "integrity" "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==" - "resolved" "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz" - "version" "6.0.0" +get-stdin@8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz" + integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg== -"get-stdin@8.0.0": - "integrity" "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==" - "resolved" "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz" - "version" "8.0.0" +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== -"get-stream@^4.0.0": - "integrity" "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" - "version" "4.1.0" +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== dependencies: - "pump" "^3.0.0" + pump "^3.0.0" -"get-stream@^5.0.0": - "integrity" "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" - "version" "5.2.0" +get-stream@^5.0.0: + version "5.2.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== dependencies: - "pump" "^3.0.0" + pump "^3.0.0" -"get-stream@^6.0.0": - "integrity" "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" - "version" "6.0.1" +get-stream@^6.0.0, get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -"get-stream@^6.0.1": - "integrity" "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" - "version" "6.0.1" - -"get-symbol-description@^1.0.0": - "integrity" "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==" - "resolved" "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" - "version" "1.0.0" +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== dependencies: - "call-bind" "^1.0.2" - "get-intrinsic" "^1.1.1" + call-bind "^1.0.2" + get-intrinsic "^1.1.1" -"get-uri@3": - "integrity" "sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==" - "resolved" "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz" - "version" "3.0.2" +get-uri@3: + version "3.0.2" + resolved "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz" + integrity sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg== dependencies: "@tootallnate/once" "1" - "data-uri-to-buffer" "3" - "debug" "4" - "file-uri-to-path" "2" - "fs-extra" "^8.1.0" - "ftp" "^0.3.10" - -"get-value@^2.0.3", "get-value@^2.0.6": - "integrity" "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" - "resolved" "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz" - "version" "2.0.6" - -"git-raw-commits@^2.0.0", "git-raw-commits@^2.0.8": - "integrity" "sha512-hSpNpxprVno7IOd4PZ93RQ+gNdzPAIrW0x8av6JQDJGV4k1mR9fE01dl8sEqi2P7aKmmwiGUn1BCPuf16Ae0Qw==" - "resolved" "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.9.tgz" - "version" "2.0.9" - dependencies: - "dargs" "^7.0.0" - "lodash.template" "^4.0.2" - "meow" "^8.0.0" - "split2" "^3.0.0" - "through2" "^4.0.0" - -"git-remote-origin-url@^2.0.0": - "integrity" "sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==" - "resolved" "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "gitconfiglocal" "^1.0.0" - "pify" "^2.3.0" - -"git-semver-tags@^4.1.1": - "integrity" "sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==" - "resolved" "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz" - "version" "4.1.1" - dependencies: - "meow" "^8.0.0" - "semver" "^6.0.0" - -"git-up@^7.0.0": - "integrity" "sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ==" - "resolved" "https://registry.npmjs.org/git-up/-/git-up-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "is-ssh" "^1.4.0" - "parse-url" "^8.1.0" - -"git-url-parse@13.1.0": - "integrity" "sha512-5FvPJP/70WkIprlUZ33bm4UAaFdjcLkJLpWft1BeZKqwR0uhhNGoKwlUaPtVb4LxCSQ++erHapRak9kWGj+FCA==" - "resolved" "https://registry.npmjs.org/git-url-parse/-/git-url-parse-13.1.0.tgz" - "version" "13.1.0" - dependencies: - "git-up" "^7.0.0" - -"gitconfiglocal@^1.0.0": - "integrity" "sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==" - "resolved" "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "ini" "^1.3.2" - -"glob-parent@^5.0.0", "glob-parent@^5.1.2": - "integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==" - "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" - "version" "5.1.2" - dependencies: - "is-glob" "^4.0.1" - -"glob@^7.0.0", "glob@^7.1.1", "glob@^7.1.2", "glob@^7.1.3", "glob@^7.1.4", "glob@^7.1.6": - "integrity" "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==" - "resolved" "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" - "version" "7.1.6" - dependencies: - "fs.realpath" "^1.0.0" - "inflight" "^1.0.4" - "inherits" "2" - "minimatch" "^3.0.4" - "once" "^1.3.0" - "path-is-absolute" "^1.0.0" - -"glob@^8.0.3": - "integrity" "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==" - "resolved" "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz" - "version" "8.0.3" - dependencies: - "fs.realpath" "^1.0.0" - "inflight" "^1.0.4" - "inherits" "2" - "minimatch" "^5.0.1" - "once" "^1.3.0" - -"global-dirs@^0.1.1": - "integrity" "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=" - "resolved" "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz" - "version" "0.1.1" - dependencies: - "ini" "^1.3.4" - -"global-dirs@^3.0.0": - "integrity" "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==" - "resolved" "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "ini" "2.0.0" - -"globals@^11.1.0": - "integrity" "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" - "resolved" "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" - "version" "11.12.0" - -"globals@^12.1.0": - "integrity" "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==" - "resolved" "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz" - "version" "12.4.0" - dependencies: - "type-fest" "^0.8.1" - -"globby@^11.0.1": - "integrity" "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==" - "resolved" "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" - "version" "11.1.0" - dependencies: - "array-union" "^2.1.0" - "dir-glob" "^3.0.1" - "fast-glob" "^3.2.9" - "ignore" "^5.2.0" - "merge2" "^1.4.1" - "slash" "^3.0.0" - -"globby@13.1.2": - "integrity" "sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==" - "resolved" "https://registry.npmjs.org/globby/-/globby-13.1.2.tgz" - "version" "13.1.2" - dependencies: - "dir-glob" "^3.0.1" - "fast-glob" "^3.2.11" - "ignore" "^5.2.0" - "merge2" "^1.4.1" - "slash" "^4.0.0" - -"got@^12.1.0", "got@12.5.1": - "integrity" "sha512-sD16AK8cCyUoPtKr/NMvLTFFa+T3i3S+zoiuvhq0HP2YiqBZA9AtlBjAdsQBsLBK7slPuvmfE0OxhGi7N5dD4w==" - "resolved" "https://registry.npmjs.org/got/-/got-12.5.1.tgz" - "version" "12.5.1" + data-uri-to-buffer "3" + debug "4" + file-uri-to-path "2" + fs-extra "^8.1.0" + ftp "^0.3.10" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +git-raw-commits@^2.0.0, git-raw-commits@^2.0.8: + version "2.0.9" + resolved "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.9.tgz" + integrity sha512-hSpNpxprVno7IOd4PZ93RQ+gNdzPAIrW0x8av6JQDJGV4k1mR9fE01dl8sEqi2P7aKmmwiGUn1BCPuf16Ae0Qw== + dependencies: + dargs "^7.0.0" + lodash.template "^4.0.2" + meow "^8.0.0" + split2 "^3.0.0" + through2 "^4.0.0" + +git-remote-origin-url@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz" + integrity sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw== + dependencies: + gitconfiglocal "^1.0.0" + pify "^2.3.0" + +git-semver-tags@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz" + integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== + dependencies: + meow "^8.0.0" + semver "^6.0.0" + +git-up@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/git-up/-/git-up-7.0.0.tgz" + integrity sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ== + dependencies: + is-ssh "^1.4.0" + parse-url "^8.1.0" + +git-url-parse@13.1.0: + version "13.1.0" + resolved "https://registry.npmjs.org/git-url-parse/-/git-url-parse-13.1.0.tgz" + integrity sha512-5FvPJP/70WkIprlUZ33bm4UAaFdjcLkJLpWft1BeZKqwR0uhhNGoKwlUaPtVb4LxCSQ++erHapRak9kWGj+FCA== + dependencies: + git-up "^7.0.0" + +gitconfiglocal@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz" + integrity sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ== + dependencies: + ini "^1.3.2" + +glob-parent@^5.0.0, glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: + version "7.1.6" + resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^8.0.3: + version "8.0.3" + resolved "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz" + integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^5.0.1" + once "^1.3.0" + +global-dirs@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz" + integrity sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU= + dependencies: + ini "^1.3.4" + +global-dirs@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz" + integrity sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA== + dependencies: + ini "2.0.0" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" + +globby@13.1.2: + version "13.1.2" + resolved "https://registry.npmjs.org/globby/-/globby-13.1.2.tgz" + integrity sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ== + dependencies: + dir-glob "^3.0.1" + fast-glob "^3.2.11" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^4.0.0" + +globby@^11.0.1: + version "11.1.0" + resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + +got@12.5.1, got@^12.1.0: + version "12.5.1" + resolved "https://registry.npmjs.org/got/-/got-12.5.1.tgz" + integrity sha512-sD16AK8cCyUoPtKr/NMvLTFFa+T3i3S+zoiuvhq0HP2YiqBZA9AtlBjAdsQBsLBK7slPuvmfE0OxhGi7N5dD4w== dependencies: "@sindresorhus/is" "^5.2.0" "@szmarczak/http-timer" "^5.0.1" - "cacheable-lookup" "^7.0.0" - "cacheable-request" "^10.2.1" - "decompress-response" "^6.0.0" - "form-data-encoder" "^2.1.2" - "get-stream" "^6.0.1" - "http2-wrapper" "^2.1.10" - "lowercase-keys" "^3.0.0" - "p-cancelable" "^3.0.0" - "responselike" "^3.0.0" - -"graceful-fs@^4.1.11", "graceful-fs@^4.1.2", "graceful-fs@^4.1.3", "graceful-fs@^4.1.6", "graceful-fs@^4.1.9", "graceful-fs@^4.2.0", "graceful-fs@^4.2.4", "graceful-fs@^4.2.6", "graceful-fs@^4.2.9", "graceful-fs@4.2.10": - "integrity" "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - "resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" - "version" "4.2.10" - -"growly@^1.3.0": - "integrity" "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=" - "resolved" "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz" - "version" "1.3.0" - -"handlebars@^4.7.7": - "integrity" "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==" - "resolved" "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz" - "version" "4.7.7" - dependencies: - "minimist" "^1.2.5" - "neo-async" "^2.6.0" - "source-map" "^0.6.1" - "wordwrap" "^1.0.0" + cacheable-lookup "^7.0.0" + cacheable-request "^10.2.1" + decompress-response "^6.0.0" + form-data-encoder "^2.1.2" + get-stream "^6.0.1" + http2-wrapper "^2.1.10" + lowercase-keys "^3.0.0" + p-cancelable "^3.0.0" + responselike "^3.0.0" + +graceful-fs@4.2.10, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: + version "4.2.10" + resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz" + integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= + +handlebars@^4.7.7: + version "4.7.7" + resolved "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz" + integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.0" + source-map "^0.6.1" + wordwrap "^1.0.0" optionalDependencies: - "uglify-js" "^3.1.4" - -"hard-rejection@^2.1.0": - "integrity" "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==" - "resolved" "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz" - "version" "2.1.0" - -"has-bigints@^1.0.1", "has-bigints@^1.0.2": - "integrity" "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" - "resolved" "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" - "version" "1.0.2" - -"has-flag@^3.0.0": - "integrity" "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" - "version" "3.0.0" - -"has-flag@^4.0.0": - "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - "version" "4.0.0" + uglify-js "^3.1.4" + +hard-rejection@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz" + integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== + +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -"has-property-descriptors@^1.0.0": - "integrity" "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==" - "resolved" "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" - "version" "1.0.0" +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== dependencies: - "get-intrinsic" "^1.1.1" + get-intrinsic "^1.1.1" -"has-symbols@^1.0.1", "has-symbols@^1.0.2", "has-symbols@^1.0.3": - "integrity" "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - "resolved" "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" - "version" "1.0.3" +has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -"has-tostringtag@^1.0.0": - "integrity" "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==" - "resolved" "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" - "version" "1.0.0" +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== dependencies: - "has-symbols" "^1.0.2" - -"has-value@^0.3.1": - "integrity" "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=" - "resolved" "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz" - "version" "0.3.1" - dependencies: - "get-value" "^2.0.3" - "has-values" "^0.1.4" - "isobject" "^2.0.0" - -"has-value@^1.0.0": - "integrity" "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=" - "resolved" "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "get-value" "^2.0.6" - "has-values" "^1.0.0" - "isobject" "^3.0.0" - -"has-values@^0.1.4": - "integrity" "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" - "resolved" "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz" - "version" "0.1.4" - -"has-values@^1.0.0": - "integrity" "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=" - "resolved" "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "is-number" "^3.0.0" - "kind-of" "^4.0.0" - -"has-yarn@^3.0.0": - "integrity" "sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==" - "resolved" "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz" - "version" "3.0.0" - -"has@^1.0.3": - "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==" - "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "function-bind" "^1.1.1" - -"hermes-estree@0.8.0": - "integrity" "sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q==" - "resolved" "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.8.0.tgz" - "version" "0.8.0" - -"hermes-parser@0.8.0": - "integrity" "sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA==" - "resolved" "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.8.0.tgz" - "version" "0.8.0" - dependencies: - "hermes-estree" "0.8.0" - -"hermes-profile-transformer@^0.0.6": - "integrity" "sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==" - "resolved" "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz" - "version" "0.0.6" - dependencies: - "source-map" "^0.7.3" - -"hosted-git-info@^2.1.4": - "integrity" "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" - "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz" - "version" "2.8.9" - -"hosted-git-info@^3.0.6": - "integrity" "sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw==" - "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.8.tgz" - "version" "3.0.8" - dependencies: - "lru-cache" "^6.0.0" - -"hosted-git-info@^4.0.0": - "integrity" "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==" - "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "lru-cache" "^6.0.0" + has-symbols "^1.0.2" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has-yarn@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz" + integrity sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA== + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hermes-estree@0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.8.0.tgz" + integrity sha512-W6JDAOLZ5pMPMjEiQGLCXSSV7pIBEgRR5zGkxgmzGSXHOxqV5dC/M1Zevqpbm9TZDE5tu358qZf8Vkzmsc+u7Q== + +hermes-parser@0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.8.0.tgz" + integrity sha512-yZKalg1fTYG5eOiToLUaw69rQfZq/fi+/NtEXRU7N87K/XobNRhRWorh80oSge2lWUiZfTgUvRJH+XgZWrhoqA== + dependencies: + hermes-estree "0.8.0" + +hermes-profile-transformer@^0.0.6: + version "0.0.6" + resolved "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz" + integrity sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ== + dependencies: + source-map "^0.7.3" + +hosted-git-info@^2.1.4: + version "2.8.9" + resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== + +hosted-git-info@^3.0.6: + version "3.0.8" + resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.8.tgz" + integrity sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw== + dependencies: + lru-cache "^6.0.0" + +hosted-git-info@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" + integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== + dependencies: + lru-cache "^6.0.0" -"html-encoding-sniffer@^2.0.1": - "integrity" "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==" - "resolved" "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz" - "version" "2.0.1" +html-encoding-sniffer@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz" + integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== dependencies: - "whatwg-encoding" "^1.0.5" + whatwg-encoding "^1.0.5" -"html-escaper@^2.0.0": - "integrity" "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - "resolved" "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" - "version" "2.0.2" +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== -"http-cache-semantics@^4.1.0": - "integrity" "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" - "resolved" "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz" - "version" "4.1.0" +http-cache-semantics@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz" + integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== -"http-errors@2.0.0": - "integrity" "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==" - "resolved" "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "depd" "2.0.0" - "inherits" "2.0.4" - "setprototypeof" "1.2.0" - "statuses" "2.0.1" - "toidentifier" "1.0.1" +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" -"http-proxy-agent@^4.0.0", "http-proxy-agent@^4.0.1": - "integrity" "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==" - "resolved" "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz" - "version" "4.0.1" +http-proxy-agent@^4.0.0, http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== dependencies: "@tootallnate/once" "1" - "agent-base" "6" - "debug" "4" - -"http2-wrapper@^2.1.10": - "integrity" "sha512-aNAk5JzLturWEUiuhAN73Jcbq96R7rTitAoXV54FYMatvihnpD2+6PUgU4ce3D/m5VDbw+F5CsyKSF176ptitQ==" - "resolved" "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.1.11.tgz" - "version" "2.1.11" - dependencies: - "quick-lru" "^5.1.1" - "resolve-alpn" "^1.2.0" - -"https-proxy-agent@^5.0.0", "https-proxy-agent@5": - "integrity" "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==" - "resolved" "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "agent-base" "6" - "debug" "4" - -"human-signals@^1.1.1": - "integrity" "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==" - "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz" - "version" "1.1.1" - -"human-signals@^2.1.0": - "integrity" "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" - "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" - "version" "2.1.0" - -"human-signals@^3.0.1": - "integrity" "sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==" - "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz" - "version" "3.0.1" - -"husky@^4.2.5": - "integrity" "sha512-0fQlcCDq/xypoyYSJvEuzbDPHFf8ZF9IXKJxlrnvxABTSzK1VPT2RKYQKrcgJ+YD39swgoB6sbzywUqFxUiqjw==" - "resolved" "https://registry.npmjs.org/husky/-/husky-4.3.7.tgz" - "version" "4.3.7" - dependencies: - "chalk" "^4.0.0" - "ci-info" "^2.0.0" - "compare-versions" "^3.6.0" - "cosmiconfig" "^7.0.0" - "find-versions" "^4.0.0" - "opencollective-postinstall" "^2.0.2" - "pkg-dir" "^5.0.0" - "please-upgrade-node" "^3.2.0" - "slash" "^3.0.0" - "which-pm-runs" "^1.0.0" - -"iconv-lite@^0.4.24", "iconv-lite@0.4.24": - "integrity" "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==" - "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" - "version" "0.4.24" - dependencies: - "safer-buffer" ">= 2.1.2 < 3" - -"ieee754@^1.1.13", "ieee754@^1.2.1": - "integrity" "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" - "version" "1.2.1" - -"ignore@^4.0.6": - "integrity" "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==" - "resolved" "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" - "version" "4.0.6" - -"ignore@^5.0.5": - "integrity" "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==" - "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz" - "version" "5.1.8" - -"ignore@^5.2.0": - "integrity" "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==" - "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz" - "version" "5.2.0" - -"image-size@^0.6.0": - "integrity" "sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==" - "resolved" "https://registry.npmjs.org/image-size/-/image-size-0.6.3.tgz" - "version" "0.6.3" - -"import-fresh@^2.0.0": - "integrity" "sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==" - "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "caller-path" "^2.0.0" - "resolve-from" "^3.0.0" - -"import-fresh@^3.0.0", "import-fresh@^3.2.1": - "integrity" "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==" - "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" - "version" "3.3.0" - dependencies: - "parent-module" "^1.0.0" - "resolve-from" "^4.0.0" - -"import-lazy@^4.0.0": - "integrity" "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==" - "resolved" "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz" - "version" "4.0.0" - -"import-local@^3.0.2": - "integrity" "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==" - "resolved" "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "pkg-dir" "^4.2.0" - "resolve-cwd" "^3.0.0" - -"imurmurhash@^0.1.4": - "integrity" "sha1-khi5srkoojixPcT7a21XbyMUU+o=" - "resolved" "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" - "version" "0.1.4" - -"indent-string@^4.0.0": - "integrity" "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" - "resolved" "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" - "version" "4.0.0" - -"inflight@^1.0.4": - "integrity" "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" - "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - "version" "1.0.6" - dependencies: - "once" "^1.3.0" - "wrappy" "1" - -"inherits@^2.0.3", "inherits@^2.0.4", "inherits@~2.0.1", "inherits@~2.0.3", "inherits@2", "inherits@2.0.4": - "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - "version" "2.0.4" - -"ini@^1.3.2", "ini@^1.3.4", "ini@~1.3.0": - "integrity" "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - "resolved" "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" - "version" "1.3.8" - -"ini@2.0.0": - "integrity" "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==" - "resolved" "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz" - "version" "2.0.0" - -"inquirer@9.1.2": - "integrity" "sha512-Hj2Ml1WpxKJU2npP2Rj0OURGkHV+GtNW2CwFdHDiXlqUBAUrWTcZHxCkFywX/XHzOS7wrG/kExgJFbUkVgyHzg==" - "resolved" "https://registry.npmjs.org/inquirer/-/inquirer-9.1.2.tgz" - "version" "9.1.2" - dependencies: - "ansi-escapes" "^5.0.0" - "chalk" "^5.0.1" - "cli-cursor" "^4.0.0" - "cli-width" "^4.0.0" - "external-editor" "^3.0.3" - "figures" "^5.0.0" - "lodash" "^4.17.21" - "mute-stream" "0.0.8" - "ora" "^6.1.2" - "run-async" "^2.4.0" - "rxjs" "^7.5.6" - "string-width" "^5.1.2" - "strip-ansi" "^7.0.1" - "through" "^2.3.6" - "wrap-ansi" "^8.0.1" - -"internal-slot@^1.0.2", "internal-slot@^1.0.3": - "integrity" "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==" - "resolved" "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "get-intrinsic" "^1.1.0" - "has" "^1.0.3" - "side-channel" "^1.0.4" - -"interpret@^1.0.0": - "integrity" "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" - "resolved" "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz" - "version" "1.4.0" - -"invariant@^2.2.4": - "integrity" "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==" - "resolved" "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz" - "version" "2.2.4" - dependencies: - "loose-envify" "^1.0.0" - -"ip@^1.1.5": - "integrity" "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" - "resolved" "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz" - "version" "1.1.8" - -"ip@^2.0.0": - "integrity" "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" - "resolved" "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz" - "version" "2.0.0" - -"is-absolute@^1.0.0": - "integrity" "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==" - "resolved" "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "is-relative" "^1.0.0" - "is-windows" "^1.0.1" - -"is-accessor-descriptor@^0.1.6": - "integrity" "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=" - "resolved" "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz" - "version" "0.1.6" - dependencies: - "kind-of" "^3.0.2" - -"is-accessor-descriptor@^1.0.0": - "integrity" "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==" - "resolved" "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "kind-of" "^6.0.0" - -"is-arguments@^1.1.0": - "integrity" "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==" - "resolved" "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" - "version" "1.1.1" - dependencies: - "call-bind" "^1.0.2" - "has-tostringtag" "^1.0.0" - -"is-arrayish@^0.2.1": - "integrity" "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" - "resolved" "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" - "version" "0.2.1" - -"is-bigint@^1.0.1": - "integrity" "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==" - "resolved" "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "has-bigints" "^1.0.1" - -"is-boolean-object@^1.1.0": - "integrity" "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==" - "resolved" "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" - "version" "1.1.2" - dependencies: - "call-bind" "^1.0.2" - "has-tostringtag" "^1.0.0" - -"is-buffer@^1.1.5": - "integrity" "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - "resolved" "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" - "version" "1.1.6" - -"is-callable@^1.1.4", "is-callable@^1.2.7": - "integrity" "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - "resolved" "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" - "version" "1.2.7" - -"is-ci@^2.0.0": - "integrity" "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==" - "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "ci-info" "^2.0.0" - -"is-ci@^3.0.1": - "integrity" "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==" - "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "ci-info" "^3.2.0" - -"is-ci@3.0.1": - "integrity" "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==" - "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "ci-info" "^3.2.0" - -"is-core-module@^2.1.0": - "integrity" "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==" - "resolved" "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz" - "version" "2.2.0" - dependencies: - "has" "^1.0.3" + agent-base "6" + debug "4" + +http2-wrapper@^2.1.10: + version "2.1.11" + resolved "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.1.11.tgz" + integrity sha512-aNAk5JzLturWEUiuhAN73Jcbq96R7rTitAoXV54FYMatvihnpD2+6PUgU4ce3D/m5VDbw+F5CsyKSF176ptitQ== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.2.0" + +https-proxy-agent@5, https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz" + integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== + +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +human-signals@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz" + integrity sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ== + +husky@^4.2.5: + version "4.3.7" + resolved "https://registry.npmjs.org/husky/-/husky-4.3.7.tgz" + integrity sha512-0fQlcCDq/xypoyYSJvEuzbDPHFf8ZF9IXKJxlrnvxABTSzK1VPT2RKYQKrcgJ+YD39swgoB6sbzywUqFxUiqjw== + dependencies: + chalk "^4.0.0" + ci-info "^2.0.0" + compare-versions "^3.6.0" + cosmiconfig "^7.0.0" + find-versions "^4.0.0" + opencollective-postinstall "^2.0.2" + pkg-dir "^5.0.0" + please-upgrade-node "^3.2.0" + slash "^3.0.0" + which-pm-runs "^1.0.0" + +iconv-lite@0.4.24, iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.13, ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.0.5: + version "5.1.8" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz" + integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== + +ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + +image-size@^0.6.0: + version "0.6.3" + resolved "https://registry.npmjs.org/image-size/-/image-size-0.6.3.tgz" + integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA== + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz" + integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-lazy@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz" + integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== + +import-local@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz" + integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ini@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz" + integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== + +ini@^1.3.2, ini@^1.3.4, ini@~1.3.0: + version "1.3.8" + resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +inquirer@9.1.2: + version "9.1.2" + resolved "https://registry.npmjs.org/inquirer/-/inquirer-9.1.2.tgz" + integrity sha512-Hj2Ml1WpxKJU2npP2Rj0OURGkHV+GtNW2CwFdHDiXlqUBAUrWTcZHxCkFywX/XHzOS7wrG/kExgJFbUkVgyHzg== + dependencies: + ansi-escapes "^5.0.0" + chalk "^5.0.1" + cli-cursor "^4.0.0" + cli-width "^4.0.0" + external-editor "^3.0.3" + figures "^5.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^6.1.2" + run-async "^2.4.0" + rxjs "^7.5.6" + string-width "^5.1.2" + strip-ansi "^7.0.1" + through "^2.3.6" + wrap-ansi "^8.0.1" + +internal-slot@^1.0.2, internal-slot@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz" + integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== + dependencies: + get-intrinsic "^1.1.0" + has "^1.0.3" + side-channel "^1.0.4" + +interpret@^1.0.0: + version "1.4.0" + resolved "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz" + integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== + +invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +ip@^1.1.5: + version "1.1.8" + resolved "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz" + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== + +ip@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz" + integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== + +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arguments@^1.1.0: + version "1.1.1" + resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" + integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + +is-ci@3.0.1, is-ci@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" + integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== + dependencies: + ci-info "^3.2.0" + +is-ci@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" + integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== + dependencies: + ci-info "^2.0.0" + +is-core-module@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz" + integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== + dependencies: + has "^1.0.3" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" -"is-data-descriptor@^0.1.4": - "integrity" "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=" - "resolved" "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz" - "version" "0.1.4" - dependencies: - "kind-of" "^3.0.2" +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz" + integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== + +is-docker@^2.0.0, is-docker@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz" + integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-git-dirty@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/is-git-dirty/-/is-git-dirty-2.0.1.tgz" + integrity sha512-zn3CNLDbSR+y7+VDDw7/SwTRRuECn4OpAyelo5MDN+gVxdzM8SUDd51ZwPIOxhljED44Riu0jiiNtC8w0bcLdA== + dependencies: + execa "^4.0.3" + is-git-repository "^2.0.0" + +is-git-repository@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-git-repository/-/is-git-repository-2.0.0.tgz" + integrity sha512-HDO50CG5suIAcmqG4F1buqVXEZRPn+RaXIn9pFKq/947FBo2bCRwK7ZluEVZOy99a4IQyqsjbKEpAiOXCccOHQ== + dependencies: + execa "^4.0.3" + is-absolute "^1.0.0" + +is-glob@^4.0.0, is-glob@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + +is-installed-globally@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz" + integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ== + dependencies: + global-dirs "^3.0.0" + is-path-inside "^3.0.2" + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-interactive@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz" + integrity sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ== + +is-map@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz" + integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== + +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-npm@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/is-npm/-/is-npm-6.0.0.tgz" + integrity sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + +is-path-cwd@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz" + integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== + +is-path-inside@^3.0.2: + version "3.0.3" + resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== + +is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-plain-object@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== + +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + +is-set@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz" + integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== + +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + +is-ssh@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/is-ssh/-/is-ssh-1.4.0.tgz" + integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ== + dependencies: + protocols "^2.0.1" + +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + +is-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz" + integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== + +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== + dependencies: + has-symbols "^1.0.1" + +is-text-path@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz" + integrity sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4= + dependencies: + text-extensions "^1.0.0" + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-unicode-supported@^1.1.0, is-unicode-supported@^1.2.0: + version "1.3.0" + resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz" + integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-windows@^1.0.1, is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz" + integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw== + +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + +is-yarn-global@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.0.tgz" + integrity sha512-HneQBCrXGBy15QnaDfcn6OLoU8AQPAa0Qn0IeJR/QCo4E8dNZaGGwxpCwWyEBQC5QvFonP8d6t60iGpAHVAfNA== + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= -"is-data-descriptor@^1.0.0": - "integrity" "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==" - "resolved" "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "kind-of" "^6.0.0" - -"is-date-object@^1.0.1": - "integrity" "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" - "resolved" "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz" - "version" "1.0.2" - -"is-descriptor@^0.1.0": - "integrity" "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==" - "resolved" "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz" - "version" "0.1.6" - dependencies: - "is-accessor-descriptor" "^0.1.6" - "is-data-descriptor" "^0.1.4" - "kind-of" "^5.0.0" - -"is-descriptor@^1.0.0", "is-descriptor@^1.0.2": - "integrity" "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==" - "resolved" "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "is-accessor-descriptor" "^1.0.0" - "is-data-descriptor" "^1.0.0" - "kind-of" "^6.0.2" - -"is-directory@^0.3.1": - "integrity" "sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==" - "resolved" "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz" - "version" "0.3.1" - -"is-docker@^2.0.0", "is-docker@^2.1.1": - "integrity" "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==" - "resolved" "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz" - "version" "2.1.1" - -"is-extendable@^0.1.0", "is-extendable@^0.1.1": - "integrity" "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" - "version" "0.1.1" - -"is-extendable@^0.1.1": - "integrity" "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" - "version" "0.1.1" - -"is-extendable@^1.0.1": - "integrity" "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==" - "resolved" "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "is-plain-object" "^2.0.4" - -"is-extglob@^2.1.1": - "integrity" "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - "resolved" "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" - "version" "2.1.1" - -"is-fullwidth-code-point@^2.0.0": - "integrity" "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==" - "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" - "version" "2.0.0" - -"is-fullwidth-code-point@^3.0.0": - "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - "version" "3.0.0" - -"is-generator-fn@^2.0.0": - "integrity" "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==" - "resolved" "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" - "version" "2.1.0" - -"is-git-dirty@^2.0.1": - "integrity" "sha512-zn3CNLDbSR+y7+VDDw7/SwTRRuECn4OpAyelo5MDN+gVxdzM8SUDd51ZwPIOxhljED44Riu0jiiNtC8w0bcLdA==" - "resolved" "https://registry.npmjs.org/is-git-dirty/-/is-git-dirty-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "execa" "^4.0.3" - "is-git-repository" "^2.0.0" - -"is-git-repository@^2.0.0": - "integrity" "sha512-HDO50CG5suIAcmqG4F1buqVXEZRPn+RaXIn9pFKq/947FBo2bCRwK7ZluEVZOy99a4IQyqsjbKEpAiOXCccOHQ==" - "resolved" "https://registry.npmjs.org/is-git-repository/-/is-git-repository-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "execa" "^4.0.3" - "is-absolute" "^1.0.0" - -"is-glob@^4.0.0", "is-glob@^4.0.1": - "integrity" "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==" - "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "is-extglob" "^2.1.1" - -"is-installed-globally@^0.4.0": - "integrity" "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==" - "resolved" "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz" - "version" "0.4.0" - dependencies: - "global-dirs" "^3.0.0" - "is-path-inside" "^3.0.2" - -"is-interactive@^1.0.0": - "integrity" "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==" - "resolved" "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" - "version" "1.0.0" - -"is-interactive@^2.0.0": - "integrity" "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==" - "resolved" "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz" - "version" "2.0.0" - -"is-map@^2.0.2": - "integrity" "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==" - "resolved" "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz" - "version" "2.0.2" - -"is-negative-zero@^2.0.2": - "integrity" "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" - "resolved" "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" - "version" "2.0.2" - -"is-npm@^6.0.0": - "integrity" "sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==" - "resolved" "https://registry.npmjs.org/is-npm/-/is-npm-6.0.0.tgz" - "version" "6.0.0" - -"is-number-object@^1.0.4": - "integrity" "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==" - "resolved" "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" - "version" "1.0.7" - dependencies: - "has-tostringtag" "^1.0.0" - -"is-number@^3.0.0": - "integrity" "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=" - "resolved" "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "kind-of" "^3.0.2" - -"is-number@^7.0.0": - "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" - "version" "7.0.0" - -"is-obj@^2.0.0": - "integrity" "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" - "resolved" "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz" - "version" "2.0.0" - -"is-path-cwd@^2.2.0": - "integrity" "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" - "resolved" "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz" - "version" "2.2.0" - -"is-path-inside@^3.0.2": - "integrity" "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" - "resolved" "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" - "version" "3.0.3" - -"is-plain-obj@^1.1.0": - "integrity" "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" - "resolved" "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz" - "version" "1.1.0" - -"is-plain-object@^2.0.3", "is-plain-object@^2.0.4": - "integrity" "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==" - "resolved" "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" - "version" "2.0.4" - dependencies: - "isobject" "^3.0.1" - -"is-plain-object@^5.0.0": - "integrity" "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" - "resolved" "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz" - "version" "5.0.0" - -"is-potential-custom-element-name@^1.0.1": - "integrity" "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - "resolved" "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz" - "version" "1.0.1" - -"is-regex@^1.1.4": - "integrity" "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==" - "resolved" "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" - "version" "1.1.4" - dependencies: - "call-bind" "^1.0.2" - "has-tostringtag" "^1.0.0" - -"is-relative@^1.0.0": - "integrity" "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==" - "resolved" "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "is-unc-path" "^1.0.0" - -"is-set@^2.0.2": - "integrity" "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==" - "resolved" "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz" - "version" "2.0.2" - -"is-shared-array-buffer@^1.0.2": - "integrity" "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==" - "resolved" "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "call-bind" "^1.0.2" - -"is-ssh@^1.4.0": - "integrity" "sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==" - "resolved" "https://registry.npmjs.org/is-ssh/-/is-ssh-1.4.0.tgz" - "version" "1.4.0" - dependencies: - "protocols" "^2.0.1" - -"is-stream@^1.1.0": - "integrity" "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==" - "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" - "version" "1.1.0" - -"is-stream@^2.0.0": - "integrity" "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" - "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz" - "version" "2.0.0" - -"is-stream@^3.0.0": - "integrity" "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==" - "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" - "version" "3.0.0" - -"is-string@^1.0.5", "is-string@^1.0.7": - "integrity" "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==" - "resolved" "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" - "version" "1.0.7" - dependencies: - "has-tostringtag" "^1.0.0" - -"is-symbol@^1.0.2", "is-symbol@^1.0.3": - "integrity" "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==" - "resolved" "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "has-symbols" "^1.0.1" - -"is-text-path@^1.0.1": - "integrity" "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=" - "resolved" "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "text-extensions" "^1.0.0" - -"is-typedarray@^1.0.0": - "integrity" "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" - "resolved" "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" - "version" "1.0.0" - -"is-unc-path@^1.0.0": - "integrity" "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==" - "resolved" "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "unc-path-regex" "^0.1.2" - -"is-unicode-supported@^0.1.0": - "integrity" "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" - "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" - "version" "0.1.0" - -"is-unicode-supported@^1.1.0": - "integrity" "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==" - "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz" - "version" "1.3.0" - -"is-unicode-supported@^1.2.0": - "integrity" "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==" - "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz" - "version" "1.3.0" - -"is-weakref@^1.0.2": - "integrity" "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==" - "resolved" "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "call-bind" "^1.0.2" - -"is-windows@^1.0.1", "is-windows@^1.0.2": - "integrity" "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" - "resolved" "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" - "version" "1.0.2" - -"is-wsl@^1.1.0": - "integrity" "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==" - "resolved" "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz" - "version" "1.1.0" - -"is-wsl@^2.2.0": - "integrity" "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==" - "resolved" "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" - "version" "2.2.0" - dependencies: - "is-docker" "^2.0.0" - -"is-yarn-global@^0.4.0": - "integrity" "sha512-HneQBCrXGBy15QnaDfcn6OLoU8AQPAa0Qn0IeJR/QCo4E8dNZaGGwxpCwWyEBQC5QvFonP8d6t60iGpAHVAfNA==" - "resolved" "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.0.tgz" - "version" "0.4.0" - -"isarray@^2.0.5": - "integrity" "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - "resolved" "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz" - "version" "2.0.5" - -"isarray@~1.0.0", "isarray@1.0.0": - "integrity" "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - "resolved" "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - "version" "1.0.0" - -"isarray@0.0.1": - "integrity" "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - "resolved" "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" - "version" "0.0.1" - -"isexe@^2.0.0": - "integrity" "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - "version" "2.0.0" - -"isobject@^2.0.0": - "integrity" "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=" - "resolved" "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "isarray" "1.0.0" - -"isobject@^3.0.0", "isobject@^3.0.1": - "integrity" "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - "resolved" "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" - "version" "3.0.1" - -"istanbul-lib-coverage@^3.0.0": - "integrity" "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==" - "resolved" "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz" - "version" "3.0.0" - -"istanbul-lib-instrument@^4.0.0", "istanbul-lib-instrument@^4.0.3": - "integrity" "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==" - "resolved" "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz" - "version" "4.0.3" +istanbul-lib-coverage@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz" + integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== + +istanbul-lib-instrument@^4.0.0, istanbul-lib-instrument@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== dependencies: "@babel/core" "^7.7.5" "@istanbuljs/schema" "^0.1.2" - "istanbul-lib-coverage" "^3.0.0" - "semver" "^6.3.0" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" -"istanbul-lib-report@^3.0.0": - "integrity" "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==" - "resolved" "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" - "version" "3.0.0" +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== dependencies: - "istanbul-lib-coverage" "^3.0.0" - "make-dir" "^3.0.0" - "supports-color" "^7.1.0" + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" -"istanbul-lib-source-maps@^4.0.0": - "integrity" "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==" - "resolved" "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz" - "version" "4.0.0" +istanbul-lib-source-maps@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz" + integrity sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg== dependencies: - "debug" "^4.1.1" - "istanbul-lib-coverage" "^3.0.0" - "source-map" "^0.6.1" + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" -"istanbul-reports@^3.0.2": - "integrity" "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==" - "resolved" "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz" - "version" "3.0.2" +istanbul-reports@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz" + integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== dependencies: - "html-escaper" "^2.0.0" - "istanbul-lib-report" "^3.0.0" + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" -"iterate-iterator@^1.0.1": - "integrity" "sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==" - "resolved" "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.2.tgz" - "version" "1.0.2" +iterate-iterator@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.2.tgz" + integrity sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw== -"iterate-value@^1.0.2": - "integrity" "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==" - "resolved" "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz" - "version" "1.0.2" +iterate-value@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz" + integrity sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ== dependencies: - "es-get-iterator" "^1.0.2" - "iterate-iterator" "^1.0.1" + es-get-iterator "^1.0.2" + iterate-iterator "^1.0.1" -"jest-changed-files@^26.6.2": - "integrity" "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==" - "resolved" "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz" - "version" "26.6.2" +jest-changed-files@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz" + integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== dependencies: "@jest/types" "^26.6.2" - "execa" "^4.0.0" - "throat" "^5.0.0" + execa "^4.0.0" + throat "^5.0.0" -"jest-cli@^26.6.3": - "integrity" "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==" - "resolved" "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz" - "version" "26.6.3" +jest-cli@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz" + integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== dependencies: "@jest/core" "^26.6.3" "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" - "chalk" "^4.0.0" - "exit" "^0.1.2" - "graceful-fs" "^4.2.4" - "import-local" "^3.0.2" - "is-ci" "^2.0.0" - "jest-config" "^26.6.3" - "jest-util" "^26.6.2" - "jest-validate" "^26.6.2" - "prompts" "^2.0.1" - "yargs" "^15.4.1" - -"jest-config@^26.6.3": - "integrity" "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==" - "resolved" "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz" - "version" "26.6.3" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + import-local "^3.0.2" + is-ci "^2.0.0" + jest-config "^26.6.3" + jest-util "^26.6.2" + jest-validate "^26.6.2" + prompts "^2.0.1" + yargs "^15.4.1" + +jest-config@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz" + integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== dependencies: "@babel/core" "^7.1.0" "@jest/test-sequencer" "^26.6.3" "@jest/types" "^26.6.2" - "babel-jest" "^26.6.3" - "chalk" "^4.0.0" - "deepmerge" "^4.2.2" - "glob" "^7.1.1" - "graceful-fs" "^4.2.4" - "jest-environment-jsdom" "^26.6.2" - "jest-environment-node" "^26.6.2" - "jest-get-type" "^26.3.0" - "jest-jasmine2" "^26.6.3" - "jest-regex-util" "^26.0.0" - "jest-resolve" "^26.6.2" - "jest-util" "^26.6.2" - "jest-validate" "^26.6.2" - "micromatch" "^4.0.2" - "pretty-format" "^26.6.2" - -"jest-diff@^26.0.0", "jest-diff@^26.6.2": - "integrity" "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==" - "resolved" "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz" - "version" "26.6.2" - dependencies: - "chalk" "^4.0.0" - "diff-sequences" "^26.6.2" - "jest-get-type" "^26.3.0" - "pretty-format" "^26.6.2" - -"jest-docblock@^26.0.0": - "integrity" "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==" - "resolved" "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz" - "version" "26.0.0" - dependencies: - "detect-newline" "^3.0.0" - -"jest-each@^26.6.2": - "integrity" "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==" - "resolved" "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz" - "version" "26.6.2" + babel-jest "^26.6.3" + chalk "^4.0.0" + deepmerge "^4.2.2" + glob "^7.1.1" + graceful-fs "^4.2.4" + jest-environment-jsdom "^26.6.2" + jest-environment-node "^26.6.2" + jest-get-type "^26.3.0" + jest-jasmine2 "^26.6.3" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + micromatch "^4.0.2" + pretty-format "^26.6.2" + +jest-diff@^26.0.0, jest-diff@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz" + integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-docblock@^26.0.0: + version "26.0.0" + resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz" + integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== + dependencies: + detect-newline "^3.0.0" + +jest-each@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz" + integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== dependencies: "@jest/types" "^26.6.2" - "chalk" "^4.0.0" - "jest-get-type" "^26.3.0" - "jest-util" "^26.6.2" - "pretty-format" "^26.6.2" + chalk "^4.0.0" + jest-get-type "^26.3.0" + jest-util "^26.6.2" + pretty-format "^26.6.2" -"jest-environment-jsdom@^26.6.2": - "integrity" "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==" - "resolved" "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz" - "version" "26.6.2" +jest-environment-jsdom@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz" + integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== dependencies: "@jest/environment" "^26.6.2" "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "jest-mock" "^26.6.2" - "jest-util" "^26.6.2" - "jsdom" "^16.4.0" + jest-mock "^26.6.2" + jest-util "^26.6.2" + jsdom "^16.4.0" -"jest-environment-node@^26.6.2": - "integrity" "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==" - "resolved" "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz" - "version" "26.6.2" +jest-environment-node@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz" + integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== dependencies: "@jest/environment" "^26.6.2" "@jest/fake-timers" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "jest-mock" "^26.6.2" - "jest-util" "^26.6.2" + jest-mock "^26.6.2" + jest-util "^26.6.2" -"jest-get-type@^26.3.0": - "integrity" "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==" - "resolved" "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz" - "version" "26.3.0" +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== -"jest-haste-map@^26.6.2": - "integrity" "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==" - "resolved" "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz" - "version" "26.6.2" +jest-haste-map@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz" + integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== dependencies: "@jest/types" "^26.6.2" "@types/graceful-fs" "^4.1.2" "@types/node" "*" - "anymatch" "^3.0.3" - "fb-watchman" "^2.0.0" - "graceful-fs" "^4.2.4" - "jest-regex-util" "^26.0.0" - "jest-serializer" "^26.6.2" - "jest-util" "^26.6.2" - "jest-worker" "^26.6.2" - "micromatch" "^4.0.2" - "sane" "^4.0.3" - "walker" "^1.0.7" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + jest-regex-util "^26.0.0" + jest-serializer "^26.6.2" + jest-util "^26.6.2" + jest-worker "^26.6.2" + micromatch "^4.0.2" + sane "^4.0.3" + walker "^1.0.7" optionalDependencies: - "fsevents" "^2.1.2" + fsevents "^2.1.2" -"jest-jasmine2@^26.6.3": - "integrity" "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==" - "resolved" "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz" - "version" "26.6.3" +jest-jasmine2@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz" + integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== dependencies: "@babel/traverse" "^7.1.0" "@jest/environment" "^26.6.2" @@ -5818,128 +5744,128 @@ "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "chalk" "^4.0.0" - "co" "^4.6.0" - "expect" "^26.6.2" - "is-generator-fn" "^2.0.0" - "jest-each" "^26.6.2" - "jest-matcher-utils" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-runtime" "^26.6.3" - "jest-snapshot" "^26.6.2" - "jest-util" "^26.6.2" - "pretty-format" "^26.6.2" - "throat" "^5.0.0" - -"jest-leak-detector@^26.6.2": - "integrity" "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==" - "resolved" "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz" - "version" "26.6.2" - dependencies: - "jest-get-type" "^26.3.0" - "pretty-format" "^26.6.2" - -"jest-matcher-utils@^26.6.2": - "integrity" "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==" - "resolved" "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz" - "version" "26.6.2" - dependencies: - "chalk" "^4.0.0" - "jest-diff" "^26.6.2" - "jest-get-type" "^26.3.0" - "pretty-format" "^26.6.2" - -"jest-message-util@^26.6.2": - "integrity" "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==" - "resolved" "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz" - "version" "26.6.2" + chalk "^4.0.0" + co "^4.6.0" + expect "^26.6.2" + is-generator-fn "^2.0.0" + jest-each "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-runtime "^26.6.3" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + pretty-format "^26.6.2" + throat "^5.0.0" + +jest-leak-detector@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz" + integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== + dependencies: + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-matcher-utils@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz" + integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== + dependencies: + chalk "^4.0.0" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-message-util@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz" + integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== dependencies: "@babel/code-frame" "^7.0.0" "@jest/types" "^26.6.2" "@types/stack-utils" "^2.0.0" - "chalk" "^4.0.0" - "graceful-fs" "^4.2.4" - "micromatch" "^4.0.2" - "pretty-format" "^26.6.2" - "slash" "^3.0.0" - "stack-utils" "^2.0.2" - -"jest-mock@^26.6.2": - "integrity" "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==" - "resolved" "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz" - "version" "26.6.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + micromatch "^4.0.2" + pretty-format "^26.6.2" + slash "^3.0.0" + stack-utils "^2.0.2" + +jest-mock@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz" + integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== dependencies: "@jest/types" "^26.6.2" "@types/node" "*" -"jest-pnp-resolver@^1.2.2": - "integrity" "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==" - "resolved" "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz" - "version" "1.2.2" +jest-pnp-resolver@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz" + integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== -"jest-regex-util@^26.0.0": - "integrity" "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==" - "resolved" "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz" - "version" "26.0.0" +jest-regex-util@^26.0.0: + version "26.0.0" + resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz" + integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -"jest-regex-util@^27.0.6": - "integrity" "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==" - "resolved" "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz" - "version" "27.5.1" +jest-regex-util@^27.0.6: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz" + integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== -"jest-resolve-dependencies@^26.6.3": - "integrity" "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==" - "resolved" "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz" - "version" "26.6.3" +jest-resolve-dependencies@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz" + integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== dependencies: "@jest/types" "^26.6.2" - "jest-regex-util" "^26.0.0" - "jest-snapshot" "^26.6.2" + jest-regex-util "^26.0.0" + jest-snapshot "^26.6.2" -"jest-resolve@*", "jest-resolve@^26.6.2": - "integrity" "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==" - "resolved" "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz" - "version" "26.6.2" +jest-resolve@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz" + integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== dependencies: "@jest/types" "^26.6.2" - "chalk" "^4.0.0" - "graceful-fs" "^4.2.4" - "jest-pnp-resolver" "^1.2.2" - "jest-util" "^26.6.2" - "read-pkg-up" "^7.0.1" - "resolve" "^1.18.1" - "slash" "^3.0.0" - -"jest-runner@^26.6.3": - "integrity" "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==" - "resolved" "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz" - "version" "26.6.3" + chalk "^4.0.0" + graceful-fs "^4.2.4" + jest-pnp-resolver "^1.2.2" + jest-util "^26.6.2" + read-pkg-up "^7.0.1" + resolve "^1.18.1" + slash "^3.0.0" + +jest-runner@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz" + integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== dependencies: "@jest/console" "^26.6.2" "@jest/environment" "^26.6.2" "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "chalk" "^4.0.0" - "emittery" "^0.7.1" - "exit" "^0.1.2" - "graceful-fs" "^4.2.4" - "jest-config" "^26.6.3" - "jest-docblock" "^26.0.0" - "jest-haste-map" "^26.6.2" - "jest-leak-detector" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-resolve" "^26.6.2" - "jest-runtime" "^26.6.3" - "jest-util" "^26.6.2" - "jest-worker" "^26.6.2" - "source-map-support" "^0.5.6" - "throat" "^5.0.0" - -"jest-runtime@^26.6.3": - "integrity" "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==" - "resolved" "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz" - "version" "26.6.3" + chalk "^4.0.0" + emittery "^0.7.1" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-docblock "^26.0.0" + jest-haste-map "^26.6.2" + jest-leak-detector "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + jest-runtime "^26.6.3" + jest-util "^26.6.2" + jest-worker "^26.6.2" + source-map-support "^0.5.6" + throat "^5.0.0" + +jest-runtime@^26.6.3: + version "26.6.3" + resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz" + integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== dependencies: "@jest/console" "^26.6.2" "@jest/environment" "^26.6.2" @@ -5950,148 +5876,148 @@ "@jest/transform" "^26.6.2" "@jest/types" "^26.6.2" "@types/yargs" "^15.0.0" - "chalk" "^4.0.0" - "cjs-module-lexer" "^0.6.0" - "collect-v8-coverage" "^1.0.0" - "exit" "^0.1.2" - "glob" "^7.1.3" - "graceful-fs" "^4.2.4" - "jest-config" "^26.6.3" - "jest-haste-map" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-mock" "^26.6.2" - "jest-regex-util" "^26.0.0" - "jest-resolve" "^26.6.2" - "jest-snapshot" "^26.6.2" - "jest-util" "^26.6.2" - "jest-validate" "^26.6.2" - "slash" "^3.0.0" - "strip-bom" "^4.0.0" - "yargs" "^15.4.1" - -"jest-serializer@^26.6.2": - "integrity" "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==" - "resolved" "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz" - "version" "26.6.2" + chalk "^4.0.0" + cjs-module-lexer "^0.6.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.4" + jest-config "^26.6.3" + jest-haste-map "^26.6.2" + jest-message-util "^26.6.2" + jest-mock "^26.6.2" + jest-regex-util "^26.0.0" + jest-resolve "^26.6.2" + jest-snapshot "^26.6.2" + jest-util "^26.6.2" + jest-validate "^26.6.2" + slash "^3.0.0" + strip-bom "^4.0.0" + yargs "^15.4.1" + +jest-serializer@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz" + integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== dependencies: "@types/node" "*" - "graceful-fs" "^4.2.4" + graceful-fs "^4.2.4" -"jest-serializer@^27.0.6": - "integrity" "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==" - "resolved" "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz" - "version" "27.5.1" +jest-serializer@^27.0.6: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz" + integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== dependencies: "@types/node" "*" - "graceful-fs" "^4.2.9" + graceful-fs "^4.2.9" -"jest-snapshot@^26.6.2": - "integrity" "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==" - "resolved" "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz" - "version" "26.6.2" +jest-snapshot@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz" + integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== dependencies: "@babel/types" "^7.0.0" "@jest/types" "^26.6.2" "@types/babel__traverse" "^7.0.4" "@types/prettier" "^2.0.0" - "chalk" "^4.0.0" - "expect" "^26.6.2" - "graceful-fs" "^4.2.4" - "jest-diff" "^26.6.2" - "jest-get-type" "^26.3.0" - "jest-haste-map" "^26.6.2" - "jest-matcher-utils" "^26.6.2" - "jest-message-util" "^26.6.2" - "jest-resolve" "^26.6.2" - "natural-compare" "^1.4.0" - "pretty-format" "^26.6.2" - "semver" "^7.3.2" - -"jest-util@^26.6.2": - "integrity" "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==" - "resolved" "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz" - "version" "26.6.2" + chalk "^4.0.0" + expect "^26.6.2" + graceful-fs "^4.2.4" + jest-diff "^26.6.2" + jest-get-type "^26.3.0" + jest-haste-map "^26.6.2" + jest-matcher-utils "^26.6.2" + jest-message-util "^26.6.2" + jest-resolve "^26.6.2" + natural-compare "^1.4.0" + pretty-format "^26.6.2" + semver "^7.3.2" + +jest-util@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz" + integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== dependencies: "@jest/types" "^26.6.2" "@types/node" "*" - "chalk" "^4.0.0" - "graceful-fs" "^4.2.4" - "is-ci" "^2.0.0" - "micromatch" "^4.0.2" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" -"jest-util@^27.2.0": - "integrity" "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==" - "resolved" "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz" - "version" "27.5.1" +jest-util@^27.2.0: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz" + integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== dependencies: "@jest/types" "^27.5.1" "@types/node" "*" - "chalk" "^4.0.0" - "ci-info" "^3.2.0" - "graceful-fs" "^4.2.9" - "picomatch" "^2.2.3" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" -"jest-validate@^26.5.2", "jest-validate@^26.6.2": - "integrity" "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==" - "resolved" "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz" - "version" "26.6.2" +jest-validate@^26.5.2, jest-validate@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz" + integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== dependencies: "@jest/types" "^26.6.2" - "camelcase" "^6.0.0" - "chalk" "^4.0.0" - "jest-get-type" "^26.3.0" - "leven" "^3.1.0" - "pretty-format" "^26.6.2" + camelcase "^6.0.0" + chalk "^4.0.0" + jest-get-type "^26.3.0" + leven "^3.1.0" + pretty-format "^26.6.2" -"jest-watcher@^26.6.2": - "integrity" "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==" - "resolved" "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz" - "version" "26.6.2" +jest-watcher@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz" + integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== dependencies: "@jest/test-result" "^26.6.2" "@jest/types" "^26.6.2" "@types/node" "*" - "ansi-escapes" "^4.2.1" - "chalk" "^4.0.0" - "jest-util" "^26.6.2" - "string-length" "^4.0.1" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + jest-util "^26.6.2" + string-length "^4.0.1" -"jest-worker@^26.6.2": - "integrity" "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==" - "resolved" "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz" - "version" "26.6.2" +jest-worker@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz" + integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== dependencies: "@types/node" "*" - "merge-stream" "^2.0.0" - "supports-color" "^7.0.0" + merge-stream "^2.0.0" + supports-color "^7.0.0" -"jest-worker@^27.2.0": - "integrity" "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==" - "resolved" "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz" - "version" "27.5.1" +jest-worker@^27.2.0: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== dependencies: "@types/node" "*" - "merge-stream" "^2.0.0" - "supports-color" "^8.0.0" + merge-stream "^2.0.0" + supports-color "^8.0.0" -"jest@^26.0.1": - "integrity" "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==" - "resolved" "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz" - "version" "26.6.3" +jest@^26.0.1: + version "26.6.3" + resolved "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz" + integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== dependencies: "@jest/core" "^26.6.3" - "import-local" "^3.0.2" - "jest-cli" "^26.6.3" + import-local "^3.0.2" + jest-cli "^26.6.3" -"jetifier@^2.0.0": - "integrity" "sha512-J4Au9KuT74te+PCCCHKgAjyLlEa+2VyIAEPNCdE5aNkAJ6FAJcAqcdzEkSnzNksIa9NkGmC4tPiClk2e7tCJuQ==" - "resolved" "https://registry.npmjs.org/jetifier/-/jetifier-2.0.0.tgz" - "version" "2.0.0" +jetifier@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/jetifier/-/jetifier-2.0.0.tgz" + integrity sha512-J4Au9KuT74te+PCCCHKgAjyLlEa+2VyIAEPNCdE5aNkAJ6FAJcAqcdzEkSnzNksIa9NkGmC4tPiClk2e7tCJuQ== -"joi@^17.2.1": - "integrity" "sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg==" - "resolved" "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz" - "version" "17.7.0" +joi@^17.2.1: + version "17.7.0" + resolved "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz" + integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== dependencies: "@hapi/hoek" "^9.0.0" "@hapi/topo" "^5.0.0" @@ -6099,28 +6025,28 @@ "@sideway/formula" "^3.0.0" "@sideway/pinpoint" "^2.0.0" -"js-tokens@^3.0.0 || ^4.0.0", "js-tokens@^4.0.0": - "integrity" "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - "resolved" "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" - "version" "4.0.0" +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -"js-yaml@^3.13.1": - "integrity" "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==" - "resolved" "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" - "version" "3.14.1" +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== dependencies: - "argparse" "^1.0.7" - "esprima" "^4.0.0" + argparse "^1.0.7" + esprima "^4.0.0" -"jsc-android@^250230.2.1": - "integrity" "sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q==" - "resolved" "https://registry.npmjs.org/jsc-android/-/jsc-android-250230.2.1.tgz" - "version" "250230.2.1" +jsc-android@^250230.2.1: + version "250230.2.1" + resolved "https://registry.npmjs.org/jsc-android/-/jsc-android-250230.2.1.tgz" + integrity sha512-KmxeBlRjwoqCnBBKGsihFtvsBHyUFlBxJPK4FzeYcIuBfdjv6jFys44JITAgSTbQD+vIdwMEfyZklsuQX0yI1Q== -"jscodeshift@^0.13.1": - "integrity" "sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ==" - "resolved" "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.13.1.tgz" - "version" "0.13.1" +jscodeshift@^0.13.1: + version "0.13.1" + resolved "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.13.1.tgz" + integrity sha512-lGyiEbGOvmMRKgWk4vf+lUrCWO/8YR8sUR3FKF1Cq5fovjZDlIcw3Hu5ppLHAnEXshVffvaM0eyuY/AbOeYpnQ== dependencies: "@babel/core" "^7.13.16" "@babel/parser" "^7.13.16" @@ -6131,541 +6057,518 @@ "@babel/preset-flow" "^7.13.13" "@babel/preset-typescript" "^7.13.0" "@babel/register" "^7.13.16" - "babel-core" "^7.0.0-bridge.0" - "chalk" "^4.1.2" - "flow-parser" "0.*" - "graceful-fs" "^4.2.4" - "micromatch" "^3.1.10" - "neo-async" "^2.5.0" - "node-dir" "^0.1.17" - "recast" "^0.20.4" - "temp" "^0.8.4" - "write-file-atomic" "^2.3.0" - -"jsdom@^16.4.0": - "integrity" "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==" - "resolved" "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz" - "version" "16.7.0" - dependencies: - "abab" "^2.0.5" - "acorn" "^8.2.4" - "acorn-globals" "^6.0.0" - "cssom" "^0.4.4" - "cssstyle" "^2.3.0" - "data-urls" "^2.0.0" - "decimal.js" "^10.2.1" - "domexception" "^2.0.1" - "escodegen" "^2.0.0" - "form-data" "^3.0.0" - "html-encoding-sniffer" "^2.0.1" - "http-proxy-agent" "^4.0.1" - "https-proxy-agent" "^5.0.0" - "is-potential-custom-element-name" "^1.0.1" - "nwsapi" "^2.2.0" - "parse5" "6.0.1" - "saxes" "^5.0.1" - "symbol-tree" "^3.2.4" - "tough-cookie" "^4.0.0" - "w3c-hr-time" "^1.0.2" - "w3c-xmlserializer" "^2.0.0" - "webidl-conversions" "^6.1.0" - "whatwg-encoding" "^1.0.5" - "whatwg-mimetype" "^2.3.0" - "whatwg-url" "^8.5.0" - "ws" "^7.4.6" - "xml-name-validator" "^3.0.0" - -"jsesc@^2.5.1": - "integrity" "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - "resolved" "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" - "version" "2.5.2" - -"jsesc@~0.5.0": - "integrity" "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" - "resolved" "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz" - "version" "0.5.0" - -"json-buffer@3.0.1": - "integrity" "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - "resolved" "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" - "version" "3.0.1" - -"json-parse-better-errors@^1.0.1": - "integrity" "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" - "resolved" "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" - "version" "1.0.2" - -"json-parse-even-better-errors@^2.3.0": - "integrity" "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - "resolved" "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" - "version" "2.3.1" - -"json-schema-traverse@^0.4.1": - "integrity" "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" - "version" "0.4.1" - -"json-schema-traverse@^1.0.0": - "integrity" "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" - "version" "1.0.0" - -"json-stable-stringify-without-jsonify@^1.0.1": - "integrity" "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=" - "resolved" "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" - "version" "1.0.1" - -"json-stringify-safe@^5.0.1": - "integrity" "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" - "resolved" "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - "version" "5.0.1" - -"json5@^2.2.1": - "integrity" "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" - "resolved" "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz" - "version" "2.2.1" - -"jsonfile@^2.1.0": - "integrity" "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz" - "version" "2.4.0" + babel-core "^7.0.0-bridge.0" + chalk "^4.1.2" + flow-parser "0.*" + graceful-fs "^4.2.4" + micromatch "^3.1.10" + neo-async "^2.5.0" + node-dir "^0.1.17" + recast "^0.20.4" + temp "^0.8.4" + write-file-atomic "^2.3.0" + +jsdom@^16.4.0: + version "16.7.0" + resolved "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz" + integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== + dependencies: + abab "^2.0.5" + acorn "^8.2.4" + acorn-globals "^6.0.0" + cssom "^0.4.4" + cssstyle "^2.3.0" + data-urls "^2.0.0" + decimal.js "^10.2.1" + domexception "^2.0.1" + escodegen "^2.0.0" + form-data "^3.0.0" + html-encoding-sniffer "^2.0.1" + http-proxy-agent "^4.0.1" + https-proxy-agent "^5.0.0" + is-potential-custom-element-name "^1.0.1" + nwsapi "^2.2.0" + parse5 "6.0.1" + saxes "^5.0.1" + symbol-tree "^3.2.4" + tough-cookie "^4.0.0" + w3c-hr-time "^1.0.2" + w3c-xmlserializer "^2.0.0" + webidl-conversions "^6.1.0" + whatwg-encoding "^1.0.5" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.5.0" + ws "^7.4.6" + xml-name-validator "^3.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz" + integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json-stringify-safe@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@^2.2.1: + version "2.2.1" + resolved "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + +jsonfile@^2.1.0: + version "2.4.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz" + integrity sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw== optionalDependencies: - "graceful-fs" "^4.1.6" + graceful-fs "^4.1.6" -"jsonfile@^4.0.0": - "integrity" "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" - "version" "4.0.0" +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== optionalDependencies: - "graceful-fs" "^4.1.6" + graceful-fs "^4.1.6" -"jsonfile@^6.0.1": - "integrity" "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - "version" "6.1.0" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== dependencies: - "universalify" "^2.0.0" + universalify "^2.0.0" optionalDependencies: - "graceful-fs" "^4.1.6" + graceful-fs "^4.1.6" -"jsonparse@^1.2.0": - "integrity" "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" - "resolved" "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz" - "version" "1.3.1" - -"JSONStream@^1.0.4": - "integrity" "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==" - "resolved" "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz" - "version" "1.3.5" - dependencies: - "jsonparse" "^1.2.0" - "through" ">=2.2.7 <3" +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz" + integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= "jsx-ast-utils@^2.4.1 || ^3.0.0": - "integrity" "sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==" - "resolved" "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz" - "version" "3.2.0" + version "3.2.0" + resolved "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz" + integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q== dependencies: - "array-includes" "^3.1.2" - "object.assign" "^4.1.2" + array-includes "^3.1.2" + object.assign "^4.1.2" -"keyv@^4.5.0": - "integrity" "sha512-2YvuMsA+jnFGtBareKqgANOEKe1mk3HKiXu2fRmAfyxG0MJAywNhi5ttWA3PMjl4NmpyjZNbFifR2vNjW1znfA==" - "resolved" "https://registry.npmjs.org/keyv/-/keyv-4.5.0.tgz" - "version" "4.5.0" +keyv@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.0.tgz" + integrity sha512-2YvuMsA+jnFGtBareKqgANOEKe1mk3HKiXu2fRmAfyxG0MJAywNhi5ttWA3PMjl4NmpyjZNbFifR2vNjW1znfA== dependencies: - "json-buffer" "3.0.1" + json-buffer "3.0.1" -"kind-of@^3.0.2", "kind-of@^3.0.3": - "integrity" "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=" - "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" - "version" "3.2.2" +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= dependencies: - "is-buffer" "^1.1.5" + is-buffer "^1.1.5" -"kind-of@^3.2.0": - "integrity" "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=" - "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" - "version" "3.2.2" +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= dependencies: - "is-buffer" "^1.1.5" + is-buffer "^1.1.5" -"kind-of@^4.0.0": - "integrity" "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=" - "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "is-buffer" "^1.1.5" - -"kind-of@^5.0.0": - "integrity" "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz" - "version" "5.1.0" +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== -"kind-of@^6.0.0", "kind-of@^6.0.2", "kind-of@^6.0.3": - "integrity" "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" - "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" - "version" "6.0.3" +kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: + version "6.0.3" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== -"klaw@^1.0.0": - "integrity" "sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==" - "resolved" "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz" - "version" "1.3.1" +klaw@^1.0.0: + version "1.3.1" + resolved "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz" + integrity sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw== optionalDependencies: - "graceful-fs" "^4.1.9" - -"kleur@^3.0.3": - "integrity" "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" - "resolved" "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" - "version" "3.0.3" - -"kleur@^4.1.4": - "integrity" "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" - "resolved" "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" - "version" "4.1.5" - -"latest-version@^7.0.0": - "integrity" "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==" - "resolved" "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "package-json" "^8.1.0" - -"leven@^3.1.0": - "integrity" "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" - "resolved" "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" - "version" "3.1.0" - -"levn@^0.4.1": - "integrity" "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==" - "resolved" "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" - "version" "0.4.1" - dependencies: - "prelude-ls" "^1.2.1" - "type-check" "~0.4.0" - -"levn@~0.3.0": - "integrity" "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==" - "resolved" "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz" - "version" "0.3.0" - dependencies: - "prelude-ls" "~1.1.2" - "type-check" "~0.3.2" - -"lines-and-columns@^1.1.6": - "integrity" "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" - "resolved" "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz" - "version" "1.1.6" - -"load-json-file@^4.0.0": - "integrity" "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==" - "resolved" "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "graceful-fs" "^4.1.2" - "parse-json" "^4.0.0" - "pify" "^3.0.0" - "strip-bom" "^3.0.0" - -"locate-path@^2.0.0": - "integrity" "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==" - "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "p-locate" "^2.0.0" - "path-exists" "^3.0.0" - -"locate-path@^3.0.0": - "integrity" "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==" - "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "p-locate" "^3.0.0" - "path-exists" "^3.0.0" - -"locate-path@^5.0.0": - "integrity" "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==" - "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "p-locate" "^4.1.0" - -"locate-path@^6.0.0": - "integrity" "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==" - "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "p-locate" "^5.0.0" - -"lodash._reinterpolate@^3.0.0": - "integrity" "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=" - "resolved" "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz" - "version" "3.0.0" - -"lodash.debounce@^4.0.8": - "integrity" "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - "resolved" "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz" - "version" "4.0.8" - -"lodash.ismatch@^4.4.0": - "integrity" "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=" - "resolved" "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz" - "version" "4.4.0" - -"lodash.template@^4.0.2": - "integrity" "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==" - "resolved" "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz" - "version" "4.5.0" - dependencies: - "lodash._reinterpolate" "^3.0.0" - "lodash.templatesettings" "^4.0.0" - -"lodash.templatesettings@^4.0.0": - "integrity" "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==" - "resolved" "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz" - "version" "4.2.0" - dependencies: - "lodash._reinterpolate" "^3.0.0" - -"lodash.throttle@^4.1.1": - "integrity" "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" - "resolved" "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz" - "version" "4.1.1" - -"lodash@^4.17.10", "lodash@^4.17.15", "lodash@^4.17.19", "lodash@^4.17.20", "lodash@^4.17.21", "lodash@^4.7.0", "lodash@4.17.21": - "integrity" "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - "version" "4.17.21" - -"log-symbols@^4.1.0": - "integrity" "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==" - "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "chalk" "^4.1.0" - "is-unicode-supported" "^0.1.0" - -"log-symbols@^5.1.0": - "integrity" "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==" - "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz" - "version" "5.1.0" - dependencies: - "chalk" "^5.0.0" - "is-unicode-supported" "^1.1.0" - -"logkitty@^0.7.1": - "integrity" "sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==" - "resolved" "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz" - "version" "0.7.1" - dependencies: - "ansi-fragments" "^0.2.1" - "dayjs" "^1.8.15" - "yargs" "^15.1.0" + graceful-fs "^4.1.9" + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +kleur@^4.1.4: + version "4.1.5" + resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" + integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== + +latest-version@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz" + integrity sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg== + dependencies: + package-json "^8.1.0" + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz" + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +lines-and-columns@^1.1.6: + version "1.1.6" + resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz" + integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= + +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz" + integrity sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw== + dependencies: + graceful-fs "^4.1.2" + parse-json "^4.0.0" + pify "^3.0.0" + strip-bom "^3.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" + integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash._reinterpolate@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz" + integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz" + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== + +lodash.ismatch@^4.4.0: + version "4.4.0" + resolved "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz" + integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc= + +lodash.template@^4.0.2: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz" + integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== + dependencies: + lodash._reinterpolate "^3.0.0" + lodash.templatesettings "^4.0.0" + +lodash.templatesettings@^4.0.0: + version "4.2.0" + resolved "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz" + integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== + dependencies: + lodash._reinterpolate "^3.0.0" + +lodash.throttle@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz" + integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== + +lodash@4.17.21, lodash@^4.17.10, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +log-symbols@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz" + integrity sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA== + dependencies: + chalk "^5.0.0" + is-unicode-supported "^1.1.0" + +logkitty@^0.7.1: + version "0.7.1" + resolved "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz" + integrity sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ== + dependencies: + ansi-fragments "^0.2.1" + dayjs "^1.8.15" + yargs "^15.1.0" -"loose-envify@^1.0.0", "loose-envify@^1.1.0", "loose-envify@^1.4.0": - "integrity" "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==" - "resolved" "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" - "version" "1.4.0" +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== dependencies: - "js-tokens" "^3.0.0 || ^4.0.0" + js-tokens "^3.0.0 || ^4.0.0" -"lowercase-keys@^3.0.0": - "integrity" "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==" - "resolved" "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz" - "version" "3.0.0" +lowercase-keys@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz" + integrity sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ== -"lru-cache@^5.1.1": - "integrity" "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==" - "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" - "version" "5.1.1" +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== dependencies: - "yallist" "^3.0.2" + yallist "^3.0.2" -"lru-cache@^6.0.0": - "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==" - "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" - "version" "6.0.0" +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== dependencies: - "yallist" "^4.0.0" + yallist "^4.0.0" -"macos-release@^3.0.1": - "integrity" "sha512-/M/R0gCDgM+Cv1IuBG1XGdfTFnMEG6PZeT+KGWHO/OG+imqmaD9CH5vHBTycEM3+Kc4uG2Il+tFAuUWLqQOeUA==" - "resolved" "https://registry.npmjs.org/macos-release/-/macos-release-3.1.0.tgz" - "version" "3.1.0" +macos-release@^3.0.1: + version "3.1.0" + resolved "https://registry.npmjs.org/macos-release/-/macos-release-3.1.0.tgz" + integrity sha512-/M/R0gCDgM+Cv1IuBG1XGdfTFnMEG6PZeT+KGWHO/OG+imqmaD9CH5vHBTycEM3+Kc4uG2Il+tFAuUWLqQOeUA== -"make-dir@^2.0.0": - "integrity" "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==" - "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "pify" "^4.0.1" - "semver" "^5.6.0" +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" -"make-dir@^2.1.0": - "integrity" "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==" - "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz" - "version" "2.1.0" +make-dir@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== dependencies: - "pify" "^4.0.1" - "semver" "^5.6.0" - -"make-dir@^3.0.0": - "integrity" "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==" - "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" - "version" "3.1.0" + semver "^6.0.0" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= dependencies: - "semver" "^6.0.0" + tmpl "1.0.x" -"makeerror@1.0.x": - "integrity" "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=" - "resolved" "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz" - "version" "1.0.11" - dependencies: - "tmpl" "1.0.x" +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= -"map-cache@^0.2.2": - "integrity" "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" - "resolved" "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" - "version" "0.2.2" - -"map-obj@^1.0.0": - "integrity" "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=" - "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz" - "version" "1.0.1" +map-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz" + integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= -"map-obj@^4.0.0": - "integrity" "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==" - "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz" - "version" "4.1.0" +map-obj@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz" + integrity sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g== -"map-visit@^1.0.0": - "integrity" "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=" - "resolved" "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz" - "version" "1.0.0" +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= dependencies: - "object-visit" "^1.0.0" + object-visit "^1.0.0" -"memoize-one@^5.0.0": - "integrity" "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" - "resolved" "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz" - "version" "5.2.1" +memoize-one@^5.0.0: + version "5.2.1" + resolved "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz" + integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q== -"meow@^8.0.0": - "integrity" "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==" - "resolved" "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz" - "version" "8.1.2" +meow@^8.0.0: + version "8.1.2" + resolved "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz" + integrity sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q== dependencies: "@types/minimist" "^1.2.0" - "camelcase-keys" "^6.2.2" - "decamelize-keys" "^1.1.0" - "hard-rejection" "^2.1.0" - "minimist-options" "4.1.0" - "normalize-package-data" "^3.0.0" - "read-pkg-up" "^7.0.1" - "redent" "^3.0.0" - "trim-newlines" "^3.0.0" - "type-fest" "^0.18.0" - "yargs-parser" "^20.2.3" - -"merge-stream@^2.0.0": - "integrity" "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - "resolved" "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" - "version" "2.0.0" - -"merge2@^1.3.0", "merge2@^1.4.1": - "integrity" "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" - "resolved" "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" - "version" "1.4.1" - -"metro-babel-transformer@0.72.3": - "integrity" "sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw==" - "resolved" "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz" - "version" "0.72.3" + camelcase-keys "^6.2.2" + decamelize-keys "^1.1.0" + hard-rejection "^2.1.0" + minimist-options "4.1.0" + normalize-package-data "^3.0.0" + read-pkg-up "^7.0.1" + redent "^3.0.0" + trim-newlines "^3.0.0" + type-fest "^0.18.0" + yargs-parser "^20.2.3" + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +metro-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz" + integrity sha512-PTOR2zww0vJbWeeM3qN90WKENxCLzv9xrwWaNtwVlhcV8/diNdNe82sE1xIxLFI6OQuAVwNMv1Y7VsO2I7Ejrw== dependencies: "@babel/core" "^7.14.0" - "hermes-parser" "0.8.0" - "metro-source-map" "0.72.3" - "nullthrows" "^1.1.1" - -"metro-cache-key@0.72.3": - "integrity" "sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg==" - "resolved" "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.72.3.tgz" - "version" "0.72.3" - -"metro-cache@0.72.3": - "integrity" "sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A==" - "resolved" "https://registry.npmjs.org/metro-cache/-/metro-cache-0.72.3.tgz" - "version" "0.72.3" - dependencies: - "metro-core" "0.72.3" - "rimraf" "^2.5.4" - -"metro-config@0.72.3": - "integrity" "sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw==" - "resolved" "https://registry.npmjs.org/metro-config/-/metro-config-0.72.3.tgz" - "version" "0.72.3" - dependencies: - "cosmiconfig" "^5.0.5" - "jest-validate" "^26.5.2" - "metro" "0.72.3" - "metro-cache" "0.72.3" - "metro-core" "0.72.3" - "metro-runtime" "0.72.3" - -"metro-core@0.72.3": - "integrity" "sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A==" - "resolved" "https://registry.npmjs.org/metro-core/-/metro-core-0.72.3.tgz" - "version" "0.72.3" - dependencies: - "lodash.throttle" "^4.1.1" - "metro-resolver" "0.72.3" - -"metro-file-map@0.72.3": - "integrity" "sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA==" - "resolved" "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.72.3.tgz" - "version" "0.72.3" - dependencies: - "abort-controller" "^3.0.0" - "anymatch" "^3.0.3" - "debug" "^2.2.0" - "fb-watchman" "^2.0.0" - "graceful-fs" "^4.2.4" - "invariant" "^2.2.4" - "jest-regex-util" "^27.0.6" - "jest-serializer" "^27.0.6" - "jest-util" "^27.2.0" - "jest-worker" "^27.2.0" - "micromatch" "^4.0.4" - "walker" "^1.0.7" + hermes-parser "0.8.0" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + +metro-cache-key@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.72.3.tgz" + integrity sha512-kQzmF5s3qMlzqkQcDwDxrOaVxJ2Bh6WRXWdzPnnhsq9LcD3B3cYqQbRBS+3tSuXmathb4gsOdhWslOuIsYS8Rg== + +metro-cache@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-cache/-/metro-cache-0.72.3.tgz" + integrity sha512-++eyZzwkXvijWRV3CkDbueaXXGlVzH9GA52QWqTgAOgSHYp5jWaDwLQ8qpsMkQzpwSyIF4LLK9aI3eA7Xa132A== + dependencies: + metro-core "0.72.3" + rimraf "^2.5.4" + +metro-config@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-config/-/metro-config-0.72.3.tgz" + integrity sha512-VEsAIVDkrIhgCByq8HKTWMBjJG6RlYwWSu1Gnv3PpHa0IyTjKJtB7wC02rbTjSaemcr82scldf2R+h6ygMEvsw== + dependencies: + cosmiconfig "^5.0.5" + jest-validate "^26.5.2" + metro "0.72.3" + metro-cache "0.72.3" + metro-core "0.72.3" + metro-runtime "0.72.3" + +metro-core@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-core/-/metro-core-0.72.3.tgz" + integrity sha512-KuYWBMmLB4+LxSMcZ1dmWabVExNCjZe3KysgoECAIV+wyIc2r4xANq15GhS94xYvX1+RqZrxU1pa0jQ5OK+/6A== + dependencies: + lodash.throttle "^4.1.1" + metro-resolver "0.72.3" + +metro-file-map@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.72.3.tgz" + integrity sha512-LhuRnuZ2i2uxkpFsz1XCDIQSixxBkBG7oICAFyLyEMDGbcfeY6/NexphfLdJLTghkaoJR5ARFMiIxUg9fIY/pA== + dependencies: + abort-controller "^3.0.0" + anymatch "^3.0.3" + debug "^2.2.0" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + invariant "^2.2.4" + jest-regex-util "^27.0.6" + jest-serializer "^27.0.6" + jest-util "^27.2.0" + jest-worker "^27.2.0" + micromatch "^4.0.4" + walker "^1.0.7" optionalDependencies: - "fsevents" "^2.1.2" + fsevents "^2.1.2" -"metro-hermes-compiler@0.72.3": - "integrity" "sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg==" - "resolved" "https://registry.npmjs.org/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz" - "version" "0.72.3" +metro-hermes-compiler@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-hermes-compiler/-/metro-hermes-compiler-0.72.3.tgz" + integrity sha512-QWDQASMiXNW3j8uIQbzIzCdGYv5PpAX/ZiF4/lTWqKRWuhlkP4auhVY4eqdAKj5syPx45ggpjkVE0p8hAPDZYg== -"metro-inspector-proxy@0.72.3": - "integrity" "sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw==" - "resolved" "https://registry.npmjs.org/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz" - "version" "0.72.3" +metro-inspector-proxy@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-inspector-proxy/-/metro-inspector-proxy-0.72.3.tgz" + integrity sha512-UPFkaq2k93RaOi+eqqt7UUmqy2ywCkuxJLasQ55+xavTUS+TQSyeTnTczaYn+YKw+izLTLllGcvqnQcZiWYhGw== dependencies: - "connect" "^3.6.5" - "debug" "^2.2.0" - "ws" "^7.5.1" - "yargs" "^15.3.1" + connect "^3.6.5" + debug "^2.2.0" + ws "^7.5.1" + yargs "^15.3.1" -"metro-minify-uglify@0.72.3": - "integrity" "sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA==" - "resolved" "https://registry.npmjs.org/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz" - "version" "0.72.3" +metro-minify-uglify@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-minify-uglify/-/metro-minify-uglify-0.72.3.tgz" + integrity sha512-dPXqtMI8TQcj0g7ZrdhC8X3mx3m3rtjtMuHKGIiEXH9CMBvrET8IwrgujQw2rkPcXiSiX8vFDbGMIlfxefDsKA== dependencies: - "uglify-es" "^3.1.9" + uglify-es "^3.1.9" -"metro-react-native-babel-preset@0.72.3": - "integrity" "sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw==" - "resolved" "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz" - "version" "0.72.3" +metro-react-native-babel-preset@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.72.3.tgz" + integrity sha512-uJx9y/1NIqoYTp6ZW1osJ7U5ZrXGAJbOQ/Qzl05BdGYvN1S7Qmbzid6xOirgK0EIT0pJKEEh1s8qbassYZe4cw== dependencies: "@babel/core" "^7.14.0" "@babel/plugin-proposal-async-generator-functions" "^7.0.0" @@ -6705,96 +6608,96 @@ "@babel/plugin-transform-typescript" "^7.5.0" "@babel/plugin-transform-unicode-regex" "^7.0.0" "@babel/template" "^7.0.0" - "react-refresh" "^0.4.0" + react-refresh "^0.4.0" -"metro-react-native-babel-transformer@0.72.3": - "integrity" "sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA==" - "resolved" "https://registry.npmjs.org/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz" - "version" "0.72.3" +metro-react-native-babel-transformer@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.72.3.tgz" + integrity sha512-Ogst/M6ujYrl/+9mpEWqE3zF7l2mTuftDTy3L8wZYwX1pWUQWQpfU1aJBeWiLxt1XlIq+uriRjKzKoRoIK57EA== dependencies: "@babel/core" "^7.14.0" - "babel-preset-fbjs" "^3.4.0" - "hermes-parser" "0.8.0" - "metro-babel-transformer" "0.72.3" - "metro-react-native-babel-preset" "0.72.3" - "metro-source-map" "0.72.3" - "nullthrows" "^1.1.1" + babel-preset-fbjs "^3.4.0" + hermes-parser "0.8.0" + metro-babel-transformer "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-source-map "0.72.3" + nullthrows "^1.1.1" -"metro-resolver@0.72.3": - "integrity" "sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w==" - "resolved" "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.72.3.tgz" - "version" "0.72.3" +metro-resolver@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.72.3.tgz" + integrity sha512-wu9zSMGdxpKmfECE7FtCdpfC+vrWGTdVr57lDA0piKhZV6VN6acZIvqQ1yZKtS2WfKsngncv5VbB8Y5eHRQP3w== dependencies: - "absolute-path" "^0.0.0" + absolute-path "^0.0.0" -"metro-runtime@0.72.3": - "integrity" "sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA==" - "resolved" "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.72.3.tgz" - "version" "0.72.3" +metro-runtime@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.72.3.tgz" + integrity sha512-3MhvDKfxMg2u7dmTdpFOfdR71NgNNo4tzAyJumDVQKwnHYHN44f2QFZQqpPBEmqhWlojNeOxsqFsjYgeyMx6VA== dependencies: "@babel/runtime" "^7.0.0" - "react-refresh" "^0.4.0" + react-refresh "^0.4.0" -"metro-source-map@0.72.3": - "integrity" "sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ==" - "resolved" "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.72.3.tgz" - "version" "0.72.3" +metro-source-map@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.72.3.tgz" + integrity sha512-eNtpjbjxSheXu/jYCIDrbNEKzMGOvYW6/ePYpRM7gDdEagUOqKOCsi3St8NJIQJzZCsxD2JZ2pYOiomUSkT1yQ== dependencies: "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" - "invariant" "^2.2.4" - "metro-symbolicate" "0.72.3" - "nullthrows" "^1.1.1" - "ob1" "0.72.3" - "source-map" "^0.5.6" - "vlq" "^1.0.0" - -"metro-symbolicate@0.72.3": - "integrity" "sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw==" - "resolved" "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz" - "version" "0.72.3" - dependencies: - "invariant" "^2.2.4" - "metro-source-map" "0.72.3" - "nullthrows" "^1.1.1" - "source-map" "^0.5.6" - "through2" "^2.0.1" - "vlq" "^1.0.0" - -"metro-transform-plugins@0.72.3": - "integrity" "sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg==" - "resolved" "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz" - "version" "0.72.3" + invariant "^2.2.4" + metro-symbolicate "0.72.3" + nullthrows "^1.1.1" + ob1 "0.72.3" + source-map "^0.5.6" + vlq "^1.0.0" + +metro-symbolicate@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.72.3.tgz" + integrity sha512-eXG0NX2PJzJ/jTG4q5yyYeN2dr1cUqUaY7worBB0SP5bRWRc3besfb+rXwfh49wTFiL5qR0oOawkU4ZiD4eHXw== + dependencies: + invariant "^2.2.4" + metro-source-map "0.72.3" + nullthrows "^1.1.1" + source-map "^0.5.6" + through2 "^2.0.1" + vlq "^1.0.0" + +metro-transform-plugins@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.72.3.tgz" + integrity sha512-D+TcUvCKZbRua1+qujE0wV1onZvslW6cVTs7dLCyC2pv20lNHjFr1GtW01jN2fyKR2PcRyMjDCppFd9VwDKnSg== dependencies: "@babel/core" "^7.14.0" "@babel/generator" "^7.14.0" "@babel/template" "^7.0.0" "@babel/traverse" "^7.14.0" - "nullthrows" "^1.1.1" + nullthrows "^1.1.1" -"metro-transform-worker@0.72.3": - "integrity" "sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ==" - "resolved" "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz" - "version" "0.72.3" +metro-transform-worker@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.72.3.tgz" + integrity sha512-WsuWj9H7i6cHuJuy+BgbWht9DK5FOgJxHLGAyULD5FJdTG9rSMFaHDO5WfC0OwQU5h4w6cPT40iDuEGksM7+YQ== dependencies: "@babel/core" "^7.14.0" "@babel/generator" "^7.14.0" "@babel/parser" "^7.14.0" "@babel/types" "^7.0.0" - "babel-preset-fbjs" "^3.4.0" - "metro" "0.72.3" - "metro-babel-transformer" "0.72.3" - "metro-cache" "0.72.3" - "metro-cache-key" "0.72.3" - "metro-hermes-compiler" "0.72.3" - "metro-source-map" "0.72.3" - "metro-transform-plugins" "0.72.3" - "nullthrows" "^1.1.1" - -"metro@0.72.3": - "integrity" "sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg==" - "resolved" "https://registry.npmjs.org/metro/-/metro-0.72.3.tgz" - "version" "0.72.3" + babel-preset-fbjs "^3.4.0" + metro "0.72.3" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-hermes-compiler "0.72.3" + metro-source-map "0.72.3" + metro-transform-plugins "0.72.3" + nullthrows "^1.1.1" + +metro@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/metro/-/metro-0.72.3.tgz" + integrity sha512-Hb3xTvPqex8kJ1hutQNZhQadUKUwmns/Du9GikmWKBFrkiG3k3xstGAyO5t5rN9JSUEzQT6y9SWzSSOGogUKIg== dependencies: "@babel/code-frame" "^7.0.0" "@babel/core" "^7.14.0" @@ -6803,1119 +6706,1068 @@ "@babel/template" "^7.0.0" "@babel/traverse" "^7.14.0" "@babel/types" "^7.0.0" - "absolute-path" "^0.0.0" - "accepts" "^1.3.7" - "async" "^3.2.2" - "chalk" "^4.0.0" - "ci-info" "^2.0.0" - "connect" "^3.6.5" - "debug" "^2.2.0" - "denodeify" "^1.2.1" - "error-stack-parser" "^2.0.6" - "fs-extra" "^1.0.0" - "graceful-fs" "^4.2.4" - "hermes-parser" "0.8.0" - "image-size" "^0.6.0" - "invariant" "^2.2.4" - "jest-worker" "^27.2.0" - "lodash.throttle" "^4.1.1" - "metro-babel-transformer" "0.72.3" - "metro-cache" "0.72.3" - "metro-cache-key" "0.72.3" - "metro-config" "0.72.3" - "metro-core" "0.72.3" - "metro-file-map" "0.72.3" - "metro-hermes-compiler" "0.72.3" - "metro-inspector-proxy" "0.72.3" - "metro-minify-uglify" "0.72.3" - "metro-react-native-babel-preset" "0.72.3" - "metro-resolver" "0.72.3" - "metro-runtime" "0.72.3" - "metro-source-map" "0.72.3" - "metro-symbolicate" "0.72.3" - "metro-transform-plugins" "0.72.3" - "metro-transform-worker" "0.72.3" - "mime-types" "^2.1.27" - "node-fetch" "^2.2.0" - "nullthrows" "^1.1.1" - "rimraf" "^2.5.4" - "serialize-error" "^2.1.0" - "source-map" "^0.5.6" - "strip-ansi" "^6.0.0" - "temp" "0.8.3" - "throat" "^5.0.0" - "ws" "^7.5.1" - "yargs" "^15.3.1" - -"micromatch@^3.1.10": - "integrity" "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==" - "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" - "version" "3.1.10" - dependencies: - "arr-diff" "^4.0.0" - "array-unique" "^0.3.2" - "braces" "^2.3.1" - "define-property" "^2.0.2" - "extend-shallow" "^3.0.2" - "extglob" "^2.0.4" - "fragment-cache" "^0.2.1" - "kind-of" "^6.0.2" - "nanomatch" "^1.2.9" - "object.pick" "^1.3.0" - "regex-not" "^1.0.0" - "snapdragon" "^0.8.1" - "to-regex" "^3.0.2" - -"micromatch@^3.1.4": - "integrity" "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==" - "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" - "version" "3.1.10" - dependencies: - "arr-diff" "^4.0.0" - "array-unique" "^0.3.2" - "braces" "^2.3.1" - "define-property" "^2.0.2" - "extend-shallow" "^3.0.2" - "extglob" "^2.0.4" - "fragment-cache" "^0.2.1" - "kind-of" "^6.0.2" - "nanomatch" "^1.2.9" - "object.pick" "^1.3.0" - "regex-not" "^1.0.0" - "snapdragon" "^0.8.1" - "to-regex" "^3.0.2" - -"micromatch@^4.0.2", "micromatch@^4.0.4": - "integrity" "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==" - "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" - "version" "4.0.5" - dependencies: - "braces" "^3.0.2" - "picomatch" "^2.3.1" - -"mime-db@>= 1.43.0 < 2", "mime-db@1.52.0": - "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - "version" "1.52.0" - -"mime-types@^2.1.12", "mime-types@^2.1.27", "mime-types@~2.1.34", "mime-types@2.1.35": - "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==" - "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - "version" "2.1.35" - dependencies: - "mime-db" "1.52.0" - -"mime@^2.4.1": - "integrity" "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" - "resolved" "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" - "version" "2.6.0" - -"mime@1.6.0": - "integrity" "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - "resolved" "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" - "version" "1.6.0" - -"mimic-fn@^2.1.0": - "integrity" "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" - "version" "2.1.0" - -"mimic-fn@^4.0.0": - "integrity" "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==" - "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" - "version" "4.0.0" - -"mimic-response@^3.1.0": - "integrity" "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" - "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" - "version" "3.1.0" - -"mimic-response@^4.0.0": - "integrity" "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==" - "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz" - "version" "4.0.0" - -"min-indent@^1.0.0": - "integrity" "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" - "resolved" "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" - "version" "1.0.1" - -"minimatch@^3.0.2", "minimatch@^3.0.4": - "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - "version" "3.1.2" - dependencies: - "brace-expansion" "^1.1.7" - -"minimatch@^5.0.1": - "integrity" "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz" - "version" "5.1.0" - dependencies: - "brace-expansion" "^2.0.1" - -"minimist-options@4.1.0": - "integrity" "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==" - "resolved" "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "arrify" "^1.0.1" - "is-plain-obj" "^1.1.0" - "kind-of" "^6.0.3" - -"minimist@^1.1.1", "minimist@^1.2.0", "minimist@^1.2.5", "minimist@^1.2.6": - "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" - "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" - "version" "1.2.7" - -"mixin-deep@^1.2.0": - "integrity" "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==" - "resolved" "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz" - "version" "1.3.2" - dependencies: - "for-in" "^1.0.2" - "is-extendable" "^1.0.1" - -"mkdirp@^0.5.1": - "integrity" "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==" - "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" - "version" "0.5.6" - dependencies: - "minimist" "^1.2.6" - -"modify-values@^1.0.0": - "integrity" "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==" - "resolved" "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz" - "version" "1.0.1" - -"ms@2.0.0": - "integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - "version" "2.0.0" - -"ms@2.1.2": - "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" - "version" "2.1.2" - -"ms@2.1.3": - "integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - "version" "2.1.3" - -"mute-stream@0.0.8": - "integrity" "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" - "resolved" "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" - "version" "0.0.8" - -"nanomatch@^1.2.9": - "integrity" "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==" - "resolved" "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz" - "version" "1.2.13" - dependencies: - "arr-diff" "^4.0.0" - "array-unique" "^0.3.2" - "define-property" "^2.0.2" - "extend-shallow" "^3.0.2" - "fragment-cache" "^0.2.1" - "is-windows" "^1.0.2" - "kind-of" "^6.0.2" - "object.pick" "^1.3.0" - "regex-not" "^1.0.0" - "snapdragon" "^0.8.1" - "to-regex" "^3.0.1" - -"natural-compare@^1.4.0": - "integrity" "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=" - "resolved" "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" - "version" "1.4.0" - -"negotiator@0.6.3": - "integrity" "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" - "resolved" "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" - "version" "0.6.3" - -"neo-async@^2.5.0", "neo-async@^2.6.0": - "integrity" "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - "resolved" "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" - "version" "2.6.2" - -"netmask@^2.0.2": - "integrity" "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==" - "resolved" "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz" - "version" "2.0.2" - -"new-github-release-url@2.0.0": - "integrity" "sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==" - "resolved" "https://registry.npmjs.org/new-github-release-url/-/new-github-release-url-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "type-fest" "^2.5.1" - -"nice-try@^1.0.4": - "integrity" "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - "resolved" "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" - "version" "1.0.5" - -"nocache@^3.0.1": - "integrity" "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==" - "resolved" "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz" - "version" "3.0.4" - -"node-dir@^0.1.17": - "integrity" "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==" - "resolved" "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz" - "version" "0.1.17" - dependencies: - "minimatch" "^3.0.2" - -"node-domexception@^1.0.0": - "integrity" "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" - "resolved" "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" - "version" "1.0.0" - -"node-fetch@^2.2.0", "node-fetch@^2.6.0", "node-fetch@^2.6.7": - "integrity" "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==" - "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" - "version" "2.6.7" - dependencies: - "whatwg-url" "^5.0.0" - -"node-fetch@3.2.10": - "integrity" "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==" - "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz" - "version" "3.2.10" - dependencies: - "data-uri-to-buffer" "^4.0.0" - "fetch-blob" "^3.1.4" - "formdata-polyfill" "^4.0.10" - -"node-int64@^0.4.0": - "integrity" "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=" - "resolved" "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" - "version" "0.4.0" - -"node-notifier@^8.0.0": - "integrity" "sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==" - "resolved" "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.1.tgz" - "version" "8.0.1" - dependencies: - "growly" "^1.3.0" - "is-wsl" "^2.2.0" - "semver" "^7.3.2" - "shellwords" "^0.1.1" - "uuid" "^8.3.0" - "which" "^2.0.2" - -"node-releases@^2.0.6": - "integrity" "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" - "resolved" "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz" - "version" "2.0.6" - -"node-stream-zip@^1.9.1": - "integrity" "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==" - "resolved" "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz" - "version" "1.15.0" - -"normalize-package-data@^2.3.2": - "integrity" "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" - "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" - "version" "2.5.0" - dependencies: - "hosted-git-info" "^2.1.4" - "resolve" "^1.10.0" - "semver" "2 || 3 || 4 || 5" - "validate-npm-package-license" "^3.0.1" - -"normalize-package-data@^2.5.0": - "integrity" "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" - "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" - "version" "2.5.0" - dependencies: - "hosted-git-info" "^2.1.4" - "resolve" "^1.10.0" - "semver" "2 || 3 || 4 || 5" - "validate-npm-package-license" "^3.0.1" - -"normalize-package-data@^3.0.0": - "integrity" "sha512-6lUjEI0d3v6kFrtgA/lOx4zHCWULXsFNIjHolnZCKCTLA6m/G625cdn3O7eNmT0iD3jfo6HZ9cdImGZwf21prw==" - "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "hosted-git-info" "^3.0.6" - "resolve" "^1.17.0" - "semver" "^7.3.2" - "validate-npm-package-license" "^3.0.1" - -"normalize-path@^2.1.1": - "integrity" "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=" - "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz" - "version" "2.1.1" - dependencies: - "remove-trailing-separator" "^1.0.1" - -"normalize-path@^3.0.0": - "integrity" "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" - "version" "3.0.0" - -"normalize-url@^7.2.0": - "integrity" "sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA==" - "resolved" "https://registry.npmjs.org/normalize-url/-/normalize-url-7.2.0.tgz" - "version" "7.2.0" - -"npm-run-path@^2.0.0": - "integrity" "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==" - "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" - "version" "2.0.2" - dependencies: - "path-key" "^2.0.0" - -"npm-run-path@^4.0.0", "npm-run-path@^4.0.1": - "integrity" "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==" - "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "path-key" "^3.0.0" - -"npm-run-path@^5.1.0": - "integrity" "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==" - "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" - "version" "5.1.0" - dependencies: - "path-key" "^4.0.0" - -"nullthrows@^1.1.1": - "integrity" "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==" - "resolved" "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz" - "version" "1.1.1" - -"nwsapi@^2.2.0": - "integrity" "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==" - "resolved" "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz" - "version" "2.2.0" - -"ob1@0.72.3": - "integrity" "sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg==" - "resolved" "https://registry.npmjs.org/ob1/-/ob1-0.72.3.tgz" - "version" "0.72.3" - -"object-assign@^4.1.1": - "integrity" "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - "resolved" "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - "version" "4.1.1" - -"object-copy@^0.1.0": - "integrity" "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=" - "resolved" "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz" - "version" "0.1.0" - dependencies: - "copy-descriptor" "^0.1.0" - "define-property" "^0.2.5" - "kind-of" "^3.0.3" - -"object-inspect@^1.12.2", "object-inspect@^1.9.0": - "integrity" "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" - "resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz" - "version" "1.12.2" - -"object-keys@^1.1.1": - "integrity" "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - "resolved" "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" - "version" "1.1.1" - -"object-visit@^1.0.0": - "integrity" "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=" - "resolved" "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "isobject" "^3.0.0" - -"object.assign@^4.1.2", "object.assign@^4.1.4": - "integrity" "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==" - "resolved" "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" - "version" "4.1.4" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.4" - "has-symbols" "^1.0.3" - "object-keys" "^1.1.1" - -"object.entries@^1.1.2": - "integrity" "sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg==" - "resolved" "https://registry.npmjs.org/object.entries/-/object.entries-1.1.3.tgz" - "version" "1.1.3" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "has" "^1.0.3" - -"object.fromentries@^2.0.2": - "integrity" "sha512-IDUSMXs6LOSJBWE++L0lzIbSqHl9KDCfff2x/JSEIDtEUavUnyMYC2ZGay/04Zq4UT8lvd4xNhU4/YHKibAOlw==" - "resolved" "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.3.tgz" - "version" "2.0.3" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "has" "^1.0.3" - -"object.pick@^1.3.0": - "integrity" "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=" - "resolved" "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz" - "version" "1.3.0" - dependencies: - "isobject" "^3.0.1" - -"object.values@^1.1.1": - "integrity" "sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag==" - "resolved" "https://registry.npmjs.org/object.values/-/object.values-1.1.2.tgz" - "version" "1.1.2" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "has" "^1.0.3" - -"on-finished@~2.3.0": - "integrity" "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==" - "resolved" "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz" - "version" "2.3.0" - dependencies: - "ee-first" "1.1.1" - -"on-finished@2.4.1": - "integrity" "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==" - "resolved" "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" - "version" "2.4.1" - dependencies: - "ee-first" "1.1.1" - -"on-headers@~1.0.2": - "integrity" "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" - "resolved" "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" - "version" "1.0.2" - -"once@^1.3.0", "once@^1.3.1", "once@^1.4.0": - "integrity" "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" - "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - "version" "1.4.0" - dependencies: - "wrappy" "1" - -"onetime@^5.1.0", "onetime@^5.1.2": - "integrity" "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==" - "resolved" "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" - "version" "5.1.2" - dependencies: - "mimic-fn" "^2.1.0" - -"onetime@^6.0.0": - "integrity" "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==" - "resolved" "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "mimic-fn" "^4.0.0" - -"open@^6.2.0": - "integrity" "sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==" - "resolved" "https://registry.npmjs.org/open/-/open-6.4.0.tgz" - "version" "6.4.0" - dependencies: - "is-wsl" "^1.1.0" - -"open@8.4.0": - "integrity" "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==" - "resolved" "https://registry.npmjs.org/open/-/open-8.4.0.tgz" - "version" "8.4.0" - dependencies: - "define-lazy-prop" "^2.0.0" - "is-docker" "^2.1.1" - "is-wsl" "^2.2.0" - -"opencollective-postinstall@^2.0.2": - "integrity" "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==" - "resolved" "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz" - "version" "2.0.3" - -"optionator@^0.8.1": - "integrity" "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==" - "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz" - "version" "0.8.3" - dependencies: - "deep-is" "~0.1.3" - "fast-levenshtein" "~2.0.6" - "levn" "~0.3.0" - "prelude-ls" "~1.1.2" - "type-check" "~0.3.2" - "word-wrap" "~1.2.3" - -"optionator@^0.9.1": - "integrity" "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==" - "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" - "version" "0.9.1" - dependencies: - "deep-is" "^0.1.3" - "fast-levenshtein" "^2.0.6" - "levn" "^0.4.1" - "prelude-ls" "^1.2.1" - "type-check" "^0.4.0" - "word-wrap" "^1.2.3" - -"ora@^5.4.1": - "integrity" "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==" - "resolved" "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" - "version" "5.4.1" - dependencies: - "bl" "^4.1.0" - "chalk" "^4.1.0" - "cli-cursor" "^3.1.0" - "cli-spinners" "^2.5.0" - "is-interactive" "^1.0.0" - "is-unicode-supported" "^0.1.0" - "log-symbols" "^4.1.0" - "strip-ansi" "^6.0.0" - "wcwidth" "^1.0.1" - -"ora@^6.1.2": - "integrity" "sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==" - "resolved" "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz" - "version" "6.1.2" - dependencies: - "bl" "^5.0.0" - "chalk" "^5.0.0" - "cli-cursor" "^4.0.0" - "cli-spinners" "^2.6.1" - "is-interactive" "^2.0.0" - "is-unicode-supported" "^1.1.0" - "log-symbols" "^5.1.0" - "strip-ansi" "^7.0.1" - "wcwidth" "^1.0.1" - -"ora@6.1.2": - "integrity" "sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==" - "resolved" "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz" - "version" "6.1.2" - dependencies: - "bl" "^5.0.0" - "chalk" "^5.0.0" - "cli-cursor" "^4.0.0" - "cli-spinners" "^2.6.1" - "is-interactive" "^2.0.0" - "is-unicode-supported" "^1.1.0" - "log-symbols" "^5.1.0" - "strip-ansi" "^7.0.1" - "wcwidth" "^1.0.1" - -"os-name@5.0.1": - "integrity" "sha512-0EQpaHUHq7olp2/YFUr+0vZi9tMpDTblHGz+Ch5RntKxiRXOAY0JOz1UlxhSjMSksHvkm13eD6elJj3M8Ht/kw==" - "resolved" "https://registry.npmjs.org/os-name/-/os-name-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "macos-release" "^3.0.1" - "windows-release" "^5.0.1" - -"os-tmpdir@^1.0.0", "os-tmpdir@~1.0.2": - "integrity" "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" - "resolved" "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" - "version" "1.0.2" - -"p-cancelable@^3.0.0": - "integrity" "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==" - "resolved" "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz" - "version" "3.0.0" - -"p-each-series@^2.1.0": - "integrity" "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==" - "resolved" "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz" - "version" "2.2.0" - -"p-finally@^1.0.0": - "integrity" "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" - "resolved" "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" - "version" "1.0.0" - -"p-limit@^1.1.0": - "integrity" "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==" - "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" - "version" "1.3.0" - dependencies: - "p-try" "^1.0.0" - -"p-limit@^2.0.0": - "integrity" "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==" - "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" - "version" "2.3.0" - dependencies: - "p-try" "^2.0.0" - -"p-limit@^2.2.0": - "integrity" "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==" - "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" - "version" "2.3.0" - dependencies: - "p-try" "^2.0.0" - -"p-limit@^3.0.2": - "integrity" "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==" - "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "yocto-queue" "^0.1.0" - -"p-locate@^2.0.0": - "integrity" "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==" - "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "p-limit" "^1.1.0" - -"p-locate@^3.0.0": - "integrity" "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==" - "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "p-limit" "^2.0.0" - -"p-locate@^4.1.0": - "integrity" "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==" - "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "p-limit" "^2.2.0" - -"p-locate@^5.0.0": - "integrity" "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==" - "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "p-limit" "^3.0.2" + absolute-path "^0.0.0" + accepts "^1.3.7" + async "^3.2.2" + chalk "^4.0.0" + ci-info "^2.0.0" + connect "^3.6.5" + debug "^2.2.0" + denodeify "^1.2.1" + error-stack-parser "^2.0.6" + fs-extra "^1.0.0" + graceful-fs "^4.2.4" + hermes-parser "0.8.0" + image-size "^0.6.0" + invariant "^2.2.4" + jest-worker "^27.2.0" + lodash.throttle "^4.1.1" + metro-babel-transformer "0.72.3" + metro-cache "0.72.3" + metro-cache-key "0.72.3" + metro-config "0.72.3" + metro-core "0.72.3" + metro-file-map "0.72.3" + metro-hermes-compiler "0.72.3" + metro-inspector-proxy "0.72.3" + metro-minify-uglify "0.72.3" + metro-react-native-babel-preset "0.72.3" + metro-resolver "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + metro-symbolicate "0.72.3" + metro-transform-plugins "0.72.3" + metro-transform-worker "0.72.3" + mime-types "^2.1.27" + node-fetch "^2.2.0" + nullthrows "^1.1.1" + rimraf "^2.5.4" + serialize-error "^2.1.0" + source-map "^0.5.6" + strip-ansi "^6.0.0" + temp "0.8.3" + throat "^5.0.0" + ws "^7.5.1" + yargs "^15.3.1" + +micromatch@^3.1.10, micromatch@^3.1.4: + version "3.1.10" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +micromatch@^4.0.2, micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@2.1.35, mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.4.1: + version "2.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" + integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + +mimic-response@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz" + integrity sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg== + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + +minimatch@^3.0.2, minimatch@^3.0.4: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^5.0.1: + version "5.1.0" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz" + integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg== + dependencies: + brace-expansion "^2.0.1" + +minimist-options@4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" + integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + kind-of "^6.0.3" + +minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: + version "1.2.7" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.1: + version "0.5.6" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +modify-values@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz" + integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +neo-async@^2.5.0, neo-async@^2.6.0: + version "2.6.2" + resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + +netmask@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz" + integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== + +new-github-release-url@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/new-github-release-url/-/new-github-release-url-2.0.0.tgz" + integrity sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ== + dependencies: + type-fest "^2.5.1" + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +nocache@^3.0.1: + version "3.0.4" + resolved "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz" + integrity sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw== + +node-dir@^0.1.17: + version "0.1.17" + resolved "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz" + integrity sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg== + dependencies: + minimatch "^3.0.2" + +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-fetch@3.2.10: + version "3.2.10" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz" + integrity sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + +node-fetch@^2.2.0, node-fetch@^2.6.0, node-fetch@^2.6.7: + version "2.6.7" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-notifier@^8.0.0: + version "8.0.1" + resolved "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.1.tgz" + integrity sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA== + dependencies: + growly "^1.3.0" + is-wsl "^2.2.0" + semver "^7.3.2" + shellwords "^0.1.1" + uuid "^8.3.0" + which "^2.0.2" + +node-releases@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz" + integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== + +node-stream-zip@^1.9.1: + version "1.15.0" + resolved "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz" + integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== + +normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: + version "2.5.0" + resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-package-data@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.0.tgz" + integrity sha512-6lUjEI0d3v6kFrtgA/lOx4zHCWULXsFNIjHolnZCKCTLA6m/G625cdn3O7eNmT0iD3jfo6HZ9cdImGZwf21prw== + dependencies: + hosted-git-info "^3.0.6" + resolve "^1.17.0" + semver "^7.3.2" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-path@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +normalize-url@^7.2.0: + version "7.2.0" + resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-7.2.0.tgz" + integrity sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA== + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== + dependencies: + path-key "^2.0.0" + +npm-run-path@^4.0.0, npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + +nullthrows@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz" + integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== + +nwsapi@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz" + integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== + +ob1@0.72.3: + version "0.72.3" + resolved "https://registry.npmjs.org/ob1/-/ob1-0.72.3.tgz" + integrity sha512-OnVto25Sj7Ghp0vVm2THsngdze3tVq0LOg9LUHsAVXMecpqOP0Y8zaATW8M9gEgs2lNEAcCqV0P/hlmOPhVRvg== + +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-inspect@^1.12.2, object-inspect@^1.9.0: + version "1.12.2" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz" + integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== + +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.assign@^4.1.2, object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.entries@^1.1.2: + version "1.1.3" + resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.3.tgz" + integrity sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + has "^1.0.3" + +object.fromentries@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.3.tgz" + integrity sha512-IDUSMXs6LOSJBWE++L0lzIbSqHl9KDCfff2x/JSEIDtEUavUnyMYC2ZGay/04Zq4UT8lvd4xNhU4/YHKibAOlw== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + has "^1.0.3" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +object.values@^1.1.1: + version "1.1.2" + resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.2.tgz" + integrity sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + has "^1.0.3" + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^5.1.0, onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + +open@8.4.0: + version "8.4.0" + resolved "https://registry.npmjs.org/open/-/open-8.4.0.tgz" + integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q== + dependencies: + define-lazy-prop "^2.0.0" + is-docker "^2.1.1" + is-wsl "^2.2.0" + +open@^6.2.0: + version "6.4.0" + resolved "https://registry.npmjs.org/open/-/open-6.4.0.tgz" + integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg== + dependencies: + is-wsl "^1.1.0" + +opencollective-postinstall@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz" + integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q== + +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + +ora@6.1.2, ora@^6.1.2: + version "6.1.2" + resolved "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz" + integrity sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw== + dependencies: + bl "^5.0.0" + chalk "^5.0.0" + cli-cursor "^4.0.0" + cli-spinners "^2.6.1" + is-interactive "^2.0.0" + is-unicode-supported "^1.1.0" + log-symbols "^5.1.0" + strip-ansi "^7.0.1" + wcwidth "^1.0.1" + +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-name@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/os-name/-/os-name-5.0.1.tgz" + integrity sha512-0EQpaHUHq7olp2/YFUr+0vZi9tMpDTblHGz+Ch5RntKxiRXOAY0JOz1UlxhSjMSksHvkm13eD6elJj3M8Ht/kw== + dependencies: + macos-release "^3.0.1" + windows-release "^5.0.1" + +os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +p-cancelable@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz" + integrity sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw== + +p-each-series@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz" + integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.0.0, p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz" + integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== + dependencies: + p-limit "^1.1.0" + +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-map@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" + integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== + dependencies: + aggregate-error "^3.0.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz" + integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== -"p-map@^4.0.0": - "integrity" "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==" - "resolved" "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "aggregate-error" "^3.0.0" - -"p-try@^1.0.0": - "integrity" "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==" - "resolved" "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz" - "version" "1.0.0" - -"p-try@^2.0.0": - "integrity" "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" - "version" "2.2.0" +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -"pac-proxy-agent@^5.0.0": - "integrity" "sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ==" - "resolved" "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz" - "version" "5.0.0" +pac-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz" + integrity sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ== dependencies: "@tootallnate/once" "1" - "agent-base" "6" - "debug" "4" - "get-uri" "3" - "http-proxy-agent" "^4.0.1" - "https-proxy-agent" "5" - "pac-resolver" "^5.0.0" - "raw-body" "^2.2.0" - "socks-proxy-agent" "5" - -"pac-resolver@^5.0.0": - "integrity" "sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q==" - "resolved" "https://registry.npmjs.org/pac-resolver/-/pac-resolver-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "degenerator" "^3.0.2" - "ip" "^1.1.5" - "netmask" "^2.0.2" - -"package-json@^8.1.0": - "integrity" "sha512-hySwcV8RAWeAfPsXb9/HGSPn8lwDnv6fabH+obUZKX169QknRkRhPxd1yMubpKDskLFATkl3jHpNtVtDPFA0Wg==" - "resolved" "https://registry.npmjs.org/package-json/-/package-json-8.1.0.tgz" - "version" "8.1.0" - dependencies: - "got" "^12.1.0" - "registry-auth-token" "^5.0.1" - "registry-url" "^6.0.0" - "semver" "^7.3.7" - -"parent-module@^1.0.0": - "integrity" "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==" - "resolved" "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "callsites" "^3.0.0" - -"parse-json@^4.0.0": - "integrity" "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==" - "resolved" "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "error-ex" "^1.3.1" - "json-parse-better-errors" "^1.0.1" - -"parse-json@^5.0.0": - "integrity" "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==" - "resolved" "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz" - "version" "5.1.0" + agent-base "6" + debug "4" + get-uri "3" + http-proxy-agent "^4.0.1" + https-proxy-agent "5" + pac-resolver "^5.0.0" + raw-body "^2.2.0" + socks-proxy-agent "5" + +pac-resolver@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/pac-resolver/-/pac-resolver-5.0.1.tgz" + integrity sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q== + dependencies: + degenerator "^3.0.2" + ip "^1.1.5" + netmask "^2.0.2" + +package-json@^8.1.0: + version "8.1.0" + resolved "https://registry.npmjs.org/package-json/-/package-json-8.1.0.tgz" + integrity sha512-hySwcV8RAWeAfPsXb9/HGSPn8lwDnv6fabH+obUZKX169QknRkRhPxd1yMubpKDskLFATkl3jHpNtVtDPFA0Wg== + dependencies: + got "^12.1.0" + registry-auth-token "^5.0.1" + registry-url "^6.0.0" + semver "^7.3.7" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" + integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-json@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz" + integrity sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ== dependencies: "@babel/code-frame" "^7.0.0" - "error-ex" "^1.3.1" - "json-parse-even-better-errors" "^2.3.0" - "lines-and-columns" "^1.1.6" - -"parse-path@^7.0.0": - "integrity" "sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog==" - "resolved" "https://registry.npmjs.org/parse-path/-/parse-path-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "protocols" "^2.0.0" - -"parse-url@^8.1.0": - "integrity" "sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w==" - "resolved" "https://registry.npmjs.org/parse-url/-/parse-url-8.1.0.tgz" - "version" "8.1.0" - dependencies: - "parse-path" "^7.0.0" - -"parse5@6.0.1": - "integrity" "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - "resolved" "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz" - "version" "6.0.1" - -"parseurl@~1.3.3": - "integrity" "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" - "resolved" "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" - "version" "1.3.3" - -"pascalcase@^0.1.1": - "integrity" "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" - "resolved" "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz" - "version" "0.1.1" - -"path-exists@^3.0.0": - "integrity" "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" - "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" - "version" "3.0.0" - -"path-exists@^4.0.0": - "integrity" "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" - "version" "4.0.0" - -"path-is-absolute@^1.0.0": - "integrity" "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - "version" "1.0.1" - -"path-key@^2.0.0", "path-key@^2.0.1": - "integrity" "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==" - "resolved" "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" - "version" "2.0.1" - -"path-key@^3.0.0", "path-key@^3.1.0": - "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - "version" "3.1.1" - -"path-key@^4.0.0": - "integrity" "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==" - "resolved" "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" - "version" "4.0.0" - -"path-parse@^1.0.6": - "integrity" "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - "resolved" "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" - "version" "1.0.7" - -"path-type@^3.0.0": - "integrity" "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==" - "resolved" "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "pify" "^3.0.0" - -"path-type@^4.0.0": - "integrity" "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" - "resolved" "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" - "version" "4.0.0" - -"picocolors@^1.0.0": - "integrity" "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - "resolved" "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" - "version" "1.0.0" - -"picomatch@^2.0.4", "picomatch@^2.2.3", "picomatch@^2.3.1": - "integrity" "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" - "version" "2.3.1" - -"pify@^2.3.0": - "integrity" "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" - "resolved" "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" - "version" "2.3.0" - -"pify@^3.0.0": - "integrity" "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" - "resolved" "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" - "version" "3.0.0" - -"pify@^4.0.1": - "integrity" "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" - "resolved" "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" - "version" "4.0.1" - -"pirates@^4.0.1", "pirates@^4.0.5": - "integrity" "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==" - "resolved" "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz" - "version" "4.0.5" - -"pkg-dir@^3.0.0": - "integrity" "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==" - "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "find-up" "^3.0.0" - -"pkg-dir@^4.2.0": - "integrity" "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==" - "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" - "version" "4.2.0" - dependencies: - "find-up" "^4.0.0" - -"pkg-dir@^5.0.0": - "integrity" "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==" - "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "find-up" "^5.0.0" - -"please-upgrade-node@^3.2.0": - "integrity" "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==" - "resolved" "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz" - "version" "3.2.0" - dependencies: - "semver-compare" "^1.0.0" - -"pod-install@^0.1.0": - "integrity" "sha512-0mkeQ9xobmFXmquA0fLl7/0C3fw+a5iwDN8Rqggmk2xalIdcXkxOimwr+Yj9N7bRnDZfmuMpWBVsot9mFaHnlQ==" - "resolved" "https://registry.npmjs.org/pod-install/-/pod-install-0.1.14.tgz" - "version" "0.1.14" - -"posix-character-classes@^0.1.0": - "integrity" "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" - "resolved" "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz" - "version" "0.1.1" - -"prelude-ls@^1.2.1": - "integrity" "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" - "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" - "version" "1.2.1" - -"prelude-ls@~1.1.2": - "integrity" "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" - "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz" - "version" "1.1.2" - -"prettier-linter-helpers@^1.0.0": - "integrity" "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==" - "resolved" "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "fast-diff" "^1.1.2" - -"prettier@^2.0.2", "prettier@^2.0.5", "prettier@>= 1.13.0", "prettier@>=1.13.0": - "integrity" "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==" - "resolved" "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz" - "version" "2.2.1" - -"pretty-format@^26.0.0", "pretty-format@^26.5.2", "pretty-format@^26.6.2": - "integrity" "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==" - "resolved" "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz" - "version" "26.6.2" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse-path@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/parse-path/-/parse-path-7.0.0.tgz" + integrity sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog== + dependencies: + protocols "^2.0.0" + +parse-url@^8.1.0: + version "8.1.0" + resolved "https://registry.npmjs.org/parse-url/-/parse-url-8.1.0.tgz" + integrity sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w== + dependencies: + parse-path "^7.0.0" + +parse5@6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== + dependencies: + pify "^3.0.0" + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" + integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== + +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pirates@^4.0.1, pirates@^4.0.5: + version "4.0.5" + resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + +pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +pkg-dir@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz" + integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== + dependencies: + find-up "^5.0.0" + +please-upgrade-node@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz" + integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== + dependencies: + semver-compare "^1.0.0" + +pod-install@^0.1.0: + version "0.1.14" + resolved "https://registry.npmjs.org/pod-install/-/pod-install-0.1.14.tgz" + integrity sha512-0mkeQ9xobmFXmquA0fLl7/0C3fw+a5iwDN8Rqggmk2xalIdcXkxOimwr+Yj9N7bRnDZfmuMpWBVsot9mFaHnlQ== + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz" + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^2.0.2, prettier@^2.0.5: + version "2.2.1" + resolved "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== + +pretty-format@^26.0.0, pretty-format@^26.5.2, pretty-format@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz" + integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== dependencies: "@jest/types" "^26.6.2" - "ansi-regex" "^5.0.0" - "ansi-styles" "^4.0.0" - "react-is" "^17.0.1" - -"process-nextick-args@~2.0.0": - "integrity" "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - "resolved" "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" - "version" "2.0.1" - -"progress@^2.0.0": - "integrity" "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" - "resolved" "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" - "version" "2.0.3" - -"promise.allsettled@1.0.5": - "integrity" "sha512-tVDqeZPoBC0SlzJHzWGZ2NKAguVq2oiYj7gbggbiTvH2itHohijTp7njOUA0aQ/nl+0lr/r6egmhoYu63UZ/pQ==" - "resolved" "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "array.prototype.map" "^1.0.4" - "call-bind" "^1.0.2" - "define-properties" "^1.1.3" - "es-abstract" "^1.19.1" - "get-intrinsic" "^1.1.1" - "iterate-value" "^1.0.2" - -"promise@^8.0.3": - "integrity" "sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==" - "resolved" "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz" - "version" "8.1.0" - dependencies: - "asap" "~2.0.6" - -"prompts@^2.0.1", "prompts@^2.4.0", "prompts@^2.4.2": - "integrity" "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==" - "resolved" "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" - "version" "2.4.2" - dependencies: - "kleur" "^3.0.3" - "sisteransi" "^1.0.5" - -"prop-types@^15.7.2": - "integrity" "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==" - "resolved" "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz" - "version" "15.7.2" - dependencies: - "loose-envify" "^1.4.0" - "object-assign" "^4.1.1" - "react-is" "^16.8.1" - -"proto-list@~1.2.1": - "integrity" "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" - "resolved" "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" - "version" "1.2.4" - -"protocols@^2.0.0", "protocols@^2.0.1": - "integrity" "sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==" - "resolved" "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz" - "version" "2.0.1" - -"proxy-agent@5.0.0": - "integrity" "sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g==" - "resolved" "https://registry.npmjs.org/proxy-agent/-/proxy-agent-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "agent-base" "^6.0.0" - "debug" "4" - "http-proxy-agent" "^4.0.0" - "https-proxy-agent" "^5.0.0" - "lru-cache" "^5.1.1" - "pac-proxy-agent" "^5.0.0" - "proxy-from-env" "^1.0.0" - "socks-proxy-agent" "^5.0.0" - -"proxy-from-env@^1.0.0": - "integrity" "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - "resolved" "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" - "version" "1.1.0" - -"psl@^1.1.33": - "integrity" "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - "resolved" "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz" - "version" "1.9.0" - -"pump@^3.0.0": - "integrity" "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==" - "resolved" "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "end-of-stream" "^1.1.0" - "once" "^1.3.1" - -"punycode@^2.1.0", "punycode@^2.1.1": - "integrity" "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz" - "version" "2.1.1" - -"pupa@^3.1.0": - "integrity" "sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==" - "resolved" "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "escape-goat" "^4.0.0" - -"q@^1.5.1": - "integrity" "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" - "resolved" "https://registry.npmjs.org/q/-/q-1.5.1.tgz" - "version" "1.5.1" - -"querystringify@^2.1.1": - "integrity" "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" - "resolved" "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz" - "version" "2.2.0" - -"queue-microtask@^1.2.2": - "integrity" "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - "resolved" "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" - "version" "1.2.3" - -"quick-lru@^4.0.1": - "integrity" "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==" - "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz" - "version" "4.0.1" - -"quick-lru@^5.1.1": - "integrity" "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" - "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" - "version" "5.1.1" - -"range-parser@~1.2.1": - "integrity" "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - "resolved" "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" - "version" "1.2.1" - -"raw-body@^2.2.0": - "integrity" "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==" - "resolved" "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" - "version" "2.5.1" - dependencies: - "bytes" "3.1.2" - "http-errors" "2.0.0" - "iconv-lite" "0.4.24" - "unpipe" "1.0.0" - -"rc@1.2.8": - "integrity" "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==" - "resolved" "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" - "version" "1.2.8" - dependencies: - "deep-extend" "^0.6.0" - "ini" "~1.3.0" - "minimist" "^1.2.0" - "strip-json-comments" "~2.0.1" - -"react-devtools-core@4.24.0": - "integrity" "sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg==" - "resolved" "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.24.0.tgz" - "version" "4.24.0" - dependencies: - "shell-quote" "^1.6.1" - "ws" "^7" - -"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", "react-is@^17.0.1": - "integrity" "sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==" - "resolved" "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz" - "version" "17.0.1" - -"react-is@^16.8.1": - "integrity" "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - "resolved" "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" - "version" "16.13.1" - -"react-native-builder-bob@^0.20.1": - "integrity" "sha512-8lTEXe4DqCT4Q3C3AGPI/xrT637pkyfAdeX7SayBP5JbfuPZvX2KCz/RjbRwLN5ecr4FPRcPg5Uhn2U7D9K6rA==" - "resolved" "https://registry.npmjs.org/react-native-builder-bob/-/react-native-builder-bob-0.20.1.tgz" - "version" "0.20.1" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^17.0.1" + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise.allsettled@1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.5.tgz" + integrity sha512-tVDqeZPoBC0SlzJHzWGZ2NKAguVq2oiYj7gbggbiTvH2itHohijTp7njOUA0aQ/nl+0lr/r6egmhoYu63UZ/pQ== + dependencies: + array.prototype.map "^1.0.4" + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + get-intrinsic "^1.1.1" + iterate-value "^1.0.2" + +promise@^8.0.3: + version "8.1.0" + resolved "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz" + integrity sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q== + dependencies: + asap "~2.0.6" + +prompts@^2.0.1, prompts@^2.4.0, prompts@^2.4.2: + version "2.4.2" + resolved "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" + integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.5" + +prop-types@^15.7.2: + version "15.7.2" + resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz" + integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.8.1" + +proto-list@~1.2.1: + version "1.2.4" + resolved "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" + integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA== + +protocols@^2.0.0, protocols@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz" + integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== + +proxy-agent@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/proxy-agent/-/proxy-agent-5.0.0.tgz" + integrity sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g== + dependencies: + agent-base "^6.0.0" + debug "4" + http-proxy-agent "^4.0.0" + https-proxy-agent "^5.0.0" + lru-cache "^5.1.1" + pac-proxy-agent "^5.0.0" + proxy-from-env "^1.0.0" + socks-proxy-agent "^5.0.0" + +proxy-from-env@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +psl@^1.1.33: + version "1.9.0" + resolved "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +pupa@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz" + integrity sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug== + dependencies: + escape-goat "^4.0.0" + +q@^1.5.1: + version "1.5.1" + resolved "https://registry.npmjs.org/q/-/q-1.5.1.tgz" + integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= + +querystringify@^2.1.1: + version "2.2.0" + resolved "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quick-lru@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz" + integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== + +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@^2.2.0: + version "2.5.1" + resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" + integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +rc@1.2.8: + version "1.2.8" + resolved "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +react-devtools-core@4.24.0: + version "4.24.0" + resolved "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.24.0.tgz" + integrity sha512-Rw7FzYOOzcfyUPaAm9P3g0tFdGqGq2LLiAI+wjYcp6CsF3DeeMrRS3HZAho4s273C29G/DJhx0e8BpRE/QZNGg== + dependencies: + shell-quote "^1.6.1" + ws "^7" + +"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^17.0.1: + version "17.0.1" + resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz" + integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA== + +react-is@^16.8.1: + version "16.13.1" + resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-native-builder-bob@^0.20.1: + version "0.20.1" + resolved "https://registry.npmjs.org/react-native-builder-bob/-/react-native-builder-bob-0.20.1.tgz" + integrity sha512-8lTEXe4DqCT4Q3C3AGPI/xrT637pkyfAdeX7SayBP5JbfuPZvX2KCz/RjbRwLN5ecr4FPRcPg5Uhn2U7D9K6rA== dependencies: "@babel/core" "^7.18.5" "@babel/plugin-proposal-class-properties" "^7.17.12" @@ -7923,41 +7775,41 @@ "@babel/preset-flow" "^7.17.12" "@babel/preset-react" "^7.17.12" "@babel/preset-typescript" "^7.17.12" - "browserslist" "^4.20.4" - "cosmiconfig" "^7.0.1" - "cross-spawn" "^7.0.3" - "dedent" "^0.7.0" - "del" "^6.1.1" - "fs-extra" "^10.1.0" - "glob" "^8.0.3" - "is-git-dirty" "^2.0.1" - "json5" "^2.2.1" - "kleur" "^4.1.4" - "prompts" "^2.4.2" - "which" "^2.0.2" - "yargs" "^17.5.1" + browserslist "^4.20.4" + cosmiconfig "^7.0.1" + cross-spawn "^7.0.3" + dedent "^0.7.0" + del "^6.1.1" + fs-extra "^10.1.0" + glob "^8.0.3" + is-git-dirty "^2.0.1" + json5 "^2.2.1" + kleur "^4.1.4" + prompts "^2.4.2" + which "^2.0.2" + yargs "^17.5.1" optionalDependencies: - "jetifier" "^2.0.0" + jetifier "^2.0.0" -"react-native-codegen@^0.70.6": - "integrity" "sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw==" - "resolved" "https://registry.npmjs.org/react-native-codegen/-/react-native-codegen-0.70.6.tgz" - "version" "0.70.6" +react-native-codegen@^0.70.6: + version "0.70.6" + resolved "https://registry.npmjs.org/react-native-codegen/-/react-native-codegen-0.70.6.tgz" + integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== dependencies: "@babel/parser" "^7.14.0" - "flow-parser" "^0.121.0" - "jscodeshift" "^0.13.1" - "nullthrows" "^1.1.1" + flow-parser "^0.121.0" + jscodeshift "^0.13.1" + nullthrows "^1.1.1" -"react-native-gradle-plugin@^0.70.3": - "integrity" "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==" - "resolved" "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz" - "version" "0.70.3" +react-native-gradle-plugin@^0.70.3: + version "0.70.3" + resolved "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz" + integrity sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A== -"react-native@^0.70.4": - "integrity" "sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA==" - "resolved" "https://registry.npmjs.org/react-native/-/react-native-0.70.4.tgz" - "version" "0.70.4" +react-native@^0.70.4: + version "0.70.4" + resolved "https://registry.npmjs.org/react-native/-/react-native-0.70.4.tgz" + integrity sha512-1e4jWotS20AJ/4lGVkZQs2wE0PvCpIRmPQEQ1FyH7wdyuewFFIxbUHqy6vAj1JWVFfAzbDakOQofrIkkHWLqNA== dependencies: "@jest/create-cache-key-function" "^29.0.3" "@react-native-community/cli" "9.2.1" @@ -7966,1977 +7818,1878 @@ "@react-native/assets" "1.0.0" "@react-native/normalize-color" "2.0.0" "@react-native/polyfills" "2.0.0" - "abort-controller" "^3.0.0" - "anser" "^1.4.9" - "base64-js" "^1.1.2" - "event-target-shim" "^5.0.1" - "invariant" "^2.2.4" - "jsc-android" "^250230.2.1" - "memoize-one" "^5.0.0" - "metro-react-native-babel-transformer" "0.72.3" - "metro-runtime" "0.72.3" - "metro-source-map" "0.72.3" - "mkdirp" "^0.5.1" - "nullthrows" "^1.1.1" - "pretty-format" "^26.5.2" - "promise" "^8.0.3" - "react-devtools-core" "4.24.0" - "react-native-codegen" "^0.70.6" - "react-native-gradle-plugin" "^0.70.3" - "react-refresh" "^0.4.0" - "react-shallow-renderer" "^16.15.0" - "regenerator-runtime" "^0.13.2" - "scheduler" "^0.22.0" - "stacktrace-parser" "^0.1.3" - "use-sync-external-store" "^1.0.0" - "whatwg-fetch" "^3.0.0" - "ws" "^6.1.4" - -"react-refresh@^0.4.0": - "integrity" "sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA==" - "resolved" "https://registry.npmjs.org/react-refresh/-/react-refresh-0.4.3.tgz" - "version" "0.4.3" - -"react-shallow-renderer@^16.15.0": - "integrity" "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==" - "resolved" "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz" - "version" "16.15.0" - dependencies: - "object-assign" "^4.1.1" - "react-is" "^16.12.0 || ^17.0.0 || ^18.0.0" - -"react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^18.2.0", "react@18.1.0": - "integrity" "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==" - "resolved" "https://registry.npmjs.org/react/-/react-18.2.0.tgz" - "version" "18.2.0" - dependencies: - "loose-envify" "^1.1.0" - -"read-pkg-up@^3.0.0": - "integrity" "sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==" - "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "find-up" "^2.0.0" - "read-pkg" "^3.0.0" - -"read-pkg-up@^7.0.1": - "integrity" "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==" - "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz" - "version" "7.0.1" - dependencies: - "find-up" "^4.1.0" - "read-pkg" "^5.2.0" - "type-fest" "^0.8.1" - -"read-pkg@^3.0.0": - "integrity" "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==" - "resolved" "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "load-json-file" "^4.0.0" - "normalize-package-data" "^2.3.2" - "path-type" "^3.0.0" - -"read-pkg@^5.2.0": - "integrity" "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==" - "resolved" "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" - "version" "5.2.0" + abort-controller "^3.0.0" + anser "^1.4.9" + base64-js "^1.1.2" + event-target-shim "^5.0.1" + invariant "^2.2.4" + jsc-android "^250230.2.1" + memoize-one "^5.0.0" + metro-react-native-babel-transformer "0.72.3" + metro-runtime "0.72.3" + metro-source-map "0.72.3" + mkdirp "^0.5.1" + nullthrows "^1.1.1" + pretty-format "^26.5.2" + promise "^8.0.3" + react-devtools-core "4.24.0" + react-native-codegen "^0.70.6" + react-native-gradle-plugin "^0.70.3" + react-refresh "^0.4.0" + react-shallow-renderer "^16.15.0" + regenerator-runtime "^0.13.2" + scheduler "^0.22.0" + stacktrace-parser "^0.1.3" + use-sync-external-store "^1.0.0" + whatwg-fetch "^3.0.0" + ws "^6.1.4" + +react-refresh@^0.4.0: + version "0.4.3" + resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.4.3.tgz" + integrity sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA== + +react-shallow-renderer@^16.15.0: + version "16.15.0" + resolved "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz" + integrity sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA== + dependencies: + object-assign "^4.1.1" + react-is "^16.12.0 || ^17.0.0 || ^18.0.0" + +react@^18.2.0: + version "18.2.0" + resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== + dependencies: + loose-envify "^1.1.0" + +read-pkg-up@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz" + integrity sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw== + dependencies: + find-up "^2.0.0" + read-pkg "^3.0.0" + +read-pkg-up@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz" + integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== + dependencies: + find-up "^4.1.0" + read-pkg "^5.2.0" + type-fest "^0.8.1" + +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz" + integrity sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA== + dependencies: + load-json-file "^4.0.0" + normalize-package-data "^2.3.2" + path-type "^3.0.0" + +read-pkg@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" + integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== dependencies: "@types/normalize-package-data" "^2.4.0" - "normalize-package-data" "^2.5.0" - "parse-json" "^5.0.0" - "type-fest" "^0.6.0" - -"readable-stream@^3.0.0", "readable-stream@^3.0.2", "readable-stream@^3.4.0", "readable-stream@3": - "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==" - "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" - "version" "3.6.0" - dependencies: - "inherits" "^2.0.3" - "string_decoder" "^1.1.1" - "util-deprecate" "^1.0.1" - -"readable-stream@~2.3.6": - "integrity" "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==" - "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz" - "version" "2.3.7" - dependencies: - "core-util-is" "~1.0.0" - "inherits" "~2.0.3" - "isarray" "~1.0.0" - "process-nextick-args" "~2.0.0" - "safe-buffer" "~5.1.1" - "string_decoder" "~1.1.1" - "util-deprecate" "~1.0.1" - -"readable-stream@1.1.x": - "integrity" "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==" - "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" - "version" "1.1.14" - dependencies: - "core-util-is" "~1.0.0" - "inherits" "~2.0.1" - "isarray" "0.0.1" - "string_decoder" "~0.10.x" - -"readline@^1.3.0": - "integrity" "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==" - "resolved" "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz" - "version" "1.3.0" - -"recast@^0.20.4": - "integrity" "sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ==" - "resolved" "https://registry.npmjs.org/recast/-/recast-0.20.5.tgz" - "version" "0.20.5" - dependencies: - "ast-types" "0.14.2" - "esprima" "~4.0.0" - "source-map" "~0.6.1" - "tslib" "^2.0.1" - -"rechoir@^0.6.2": - "integrity" "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==" - "resolved" "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz" - "version" "0.6.2" - dependencies: - "resolve" "^1.1.6" - -"redent@^3.0.0": - "integrity" "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==" - "resolved" "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "indent-string" "^4.0.0" - "strip-indent" "^3.0.0" - -"regenerate-unicode-properties@^10.1.0": - "integrity" "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==" - "resolved" "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz" - "version" "10.1.0" - dependencies: - "regenerate" "^1.4.2" - -"regenerate@^1.4.2": - "integrity" "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - "resolved" "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz" - "version" "1.4.2" - -"regenerator-runtime@^0.13.2", "regenerator-runtime@^0.13.4": - "integrity" "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" - "resolved" "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz" - "version" "0.13.7" - -"regenerator-transform@^0.15.0": - "integrity" "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==" - "resolved" "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz" - "version" "0.15.0" + normalize-package-data "^2.5.0" + parse-json "^5.0.0" + type-fest "^0.6.0" + +readable-stream@1.1.x: + version "1.1.14" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" + integrity sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.4.0: + version "3.6.0" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@~2.3.6: + version "2.3.7" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readline@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz" + integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg== + +recast@^0.20.4: + version "0.20.5" + resolved "https://registry.npmjs.org/recast/-/recast-0.20.5.tgz" + integrity sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ== + dependencies: + ast-types "0.14.2" + esprima "~4.0.0" + source-map "~0.6.1" + tslib "^2.0.1" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz" + integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== + dependencies: + resolve "^1.1.6" + +redent@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== + dependencies: + indent-string "^4.0.0" + strip-indent "^3.0.0" + +regenerate-unicode-properties@^10.1.0: + version "10.1.0" + resolved "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz" + integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== + dependencies: + regenerate "^1.4.2" + +regenerate@^1.4.2: + version "1.4.2" + resolved "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz" + integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== + +regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz" + integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew== + +regenerator-transform@^0.15.0: + version "0.15.0" + resolved "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz" + integrity sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg== dependencies: "@babel/runtime" "^7.8.4" -"regex-not@^1.0.0", "regex-not@^1.0.2": - "integrity" "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==" - "resolved" "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "extend-shallow" "^3.0.2" - "safe-regex" "^1.1.0" - -"regexp.prototype.flags@^1.3.0", "regexp.prototype.flags@^1.4.3": - "integrity" "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==" - "resolved" "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" - "version" "1.4.3" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.3" - "functions-have-names" "^1.2.2" - -"regexpp@^3.0.0", "regexpp@^3.1.0": - "integrity" "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==" - "resolved" "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz" - "version" "3.1.0" - -"regexpu-core@^5.1.0": - "integrity" "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==" - "resolved" "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz" - "version" "5.2.1" - dependencies: - "regenerate" "^1.4.2" - "regenerate-unicode-properties" "^10.1.0" - "regjsgen" "^0.7.1" - "regjsparser" "^0.9.1" - "unicode-match-property-ecmascript" "^2.0.0" - "unicode-match-property-value-ecmascript" "^2.0.0" - -"registry-auth-token@^5.0.1": - "integrity" "sha512-UfxVOj8seK1yaIOiieV4FIP01vfBDLsY0H9sQzi9EbbUdJiuuBjJgLa1DpImXMNPnVkBD4eVxTEXcrZA6kfpJA==" - "resolved" "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.1.tgz" - "version" "5.0.1" +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexp.prototype.flags@^1.3.0, regexp.prototype.flags@^1.4.3: + version "1.4.3" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + +regexpp@^3.0.0, regexpp@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== + +regexpu-core@^5.1.0: + version "5.2.1" + resolved "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz" + integrity sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties "^10.1.0" + regjsgen "^0.7.1" + regjsparser "^0.9.1" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.0.0" + +registry-auth-token@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.1.tgz" + integrity sha512-UfxVOj8seK1yaIOiieV4FIP01vfBDLsY0H9sQzi9EbbUdJiuuBjJgLa1DpImXMNPnVkBD4eVxTEXcrZA6kfpJA== dependencies: "@pnpm/npm-conf" "^1.0.4" -"registry-url@^6.0.0": - "integrity" "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==" - "resolved" "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz" - "version" "6.0.1" +registry-url@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz" + integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q== dependencies: - "rc" "1.2.8" + rc "1.2.8" -"regjsgen@^0.7.1": - "integrity" "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==" - "resolved" "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz" - "version" "0.7.1" +regjsgen@^0.7.1: + version "0.7.1" + resolved "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz" + integrity sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA== -"regjsparser@^0.9.1": - "integrity" "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==" - "resolved" "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz" - "version" "0.9.1" +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== dependencies: - "jsesc" "~0.5.0" + jsesc "~0.5.0" -"release-it@^15.4.1", "release-it@^15.5.0": - "integrity" "sha512-/pQo/PwEXAWRBgVGLE+3IQ3hUoeiDZMGAo/Egin1envCyLyjzrU7+0P2w4iZ1Xv5OxhC2AcaPaN5eY1ql47cBA==" - "resolved" "https://registry.npmjs.org/release-it/-/release-it-15.5.0.tgz" - "version" "15.5.0" +release-it@^15.5.0: + version "15.5.0" + resolved "https://registry.npmjs.org/release-it/-/release-it-15.5.0.tgz" + integrity sha512-/pQo/PwEXAWRBgVGLE+3IQ3hUoeiDZMGAo/Egin1envCyLyjzrU7+0P2w4iZ1Xv5OxhC2AcaPaN5eY1ql47cBA== dependencies: "@iarna/toml" "2.2.5" "@octokit/rest" "19.0.4" - "async-retry" "1.3.3" - "chalk" "5.0.1" - "cosmiconfig" "7.0.1" - "execa" "6.1.0" - "form-data" "4.0.0" - "git-url-parse" "13.1.0" - "globby" "13.1.2" - "got" "12.5.1" - "inquirer" "9.1.2" - "is-ci" "3.0.1" - "lodash" "4.17.21" - "mime-types" "2.1.35" - "new-github-release-url" "2.0.0" - "node-fetch" "3.2.10" - "open" "8.4.0" - "ora" "6.1.2" - "os-name" "5.0.1" - "promise.allsettled" "1.0.5" - "proxy-agent" "5.0.0" - "semver" "7.3.7" - "shelljs" "0.8.5" - "update-notifier" "6.0.2" - "url-join" "5.0.0" - "wildcard-match" "5.1.2" - "yargs-parser" "21.1.1" - -"remove-trailing-separator@^1.0.1": - "integrity" "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" - "resolved" "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz" - "version" "1.1.0" - -"repeat-element@^1.1.2": - "integrity" "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" - "resolved" "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz" - "version" "1.1.3" - -"repeat-string@^1.6.1": - "integrity" "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" - "resolved" "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" - "version" "1.6.1" - -"require-directory@^2.1.1": - "integrity" "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" - "version" "2.1.1" - -"require-from-string@^2.0.2": - "integrity" "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" - "resolved" "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" - "version" "2.0.2" - -"require-main-filename@^2.0.0": - "integrity" "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" - "resolved" "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" - "version" "2.0.0" - -"requires-port@^1.0.0": - "integrity" "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - "resolved" "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" - "version" "1.0.0" - -"resolve-alpn@^1.2.0": - "integrity" "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" - "resolved" "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" - "version" "1.2.1" - -"resolve-cwd@^3.0.0": - "integrity" "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==" - "resolved" "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "resolve-from" "^5.0.0" - -"resolve-from@^3.0.0": - "integrity" "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==" - "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" - "version" "3.0.0" - -"resolve-from@^4.0.0": - "integrity" "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" - "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" - "version" "4.0.0" - -"resolve-from@^5.0.0", "resolve-from@5.0.0": - "integrity" "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" - "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" - "version" "5.0.0" - -"resolve-global@^1.0.0", "resolve-global@1.0.0": - "integrity" "sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==" - "resolved" "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "global-dirs" "^0.1.1" - -"resolve-url@^0.2.1": - "integrity" "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" - "resolved" "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz" - "version" "0.2.1" - -"resolve@^1.1.6", "resolve@^1.10.0", "resolve@^1.12.0", "resolve@^1.14.2", "resolve@^1.17.0", "resolve@^1.18.1": - "integrity" "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==" - "resolved" "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz" - "version" "1.19.0" - dependencies: - "is-core-module" "^2.1.0" - "path-parse" "^1.0.6" - -"responselike@^3.0.0": - "integrity" "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==" - "resolved" "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "lowercase-keys" "^3.0.0" - -"restore-cursor@^3.1.0": - "integrity" "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==" - "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "onetime" "^5.1.0" - "signal-exit" "^3.0.2" - -"restore-cursor@^4.0.0": - "integrity" "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==" - "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "onetime" "^5.1.0" - "signal-exit" "^3.0.2" - -"ret@~0.1.10": - "integrity" "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" - "resolved" "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz" - "version" "0.1.15" - -"retry@0.13.1": - "integrity" "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" - "resolved" "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz" - "version" "0.13.1" - -"reusify@^1.0.4": - "integrity" "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" - "resolved" "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" - "version" "1.0.4" - -"rimraf@^2.5.4": - "integrity" "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==" - "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz" - "version" "2.7.1" - dependencies: - "glob" "^7.1.3" - -"rimraf@^3.0.0", "rimraf@^3.0.2": - "integrity" "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" - "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "glob" "^7.1.3" + async-retry "1.3.3" + chalk "5.0.1" + cosmiconfig "7.0.1" + execa "6.1.0" + form-data "4.0.0" + git-url-parse "13.1.0" + globby "13.1.2" + got "12.5.1" + inquirer "9.1.2" + is-ci "3.0.1" + lodash "4.17.21" + mime-types "2.1.35" + new-github-release-url "2.0.0" + node-fetch "3.2.10" + open "8.4.0" + ora "6.1.2" + os-name "5.0.1" + promise.allsettled "1.0.5" + proxy-agent "5.0.0" + semver "7.3.7" + shelljs "0.8.5" + update-notifier "6.0.2" + url-join "5.0.0" + wildcard-match "5.1.2" + yargs-parser "21.1.1" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + +repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +resolve-alpn@^1.2.0: + version "1.2.1" + resolved "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" + integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== + +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== + dependencies: + resolve-from "^5.0.0" + +resolve-from@5.0.0, resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" + integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-global@1.0.0, resolve-global@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz" + integrity sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw== + dependencies: + global-dirs "^0.1.1" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.18.1: + version "1.19.0" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz" + integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== + dependencies: + is-core-module "^2.1.0" + path-parse "^1.0.6" + +responselike@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz" + integrity sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg== + dependencies: + lowercase-keys "^3.0.0" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +restore-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz" + integrity sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +retry@0.13.1: + version "0.13.1" + resolved "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz" + integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rimraf@^2.5.4: + version "2.7.1" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.0, rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" -"rimraf@~2.2.6": - "integrity" "sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg==" - "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz" - "version" "2.2.8" +rimraf@~2.2.6: + version "2.2.8" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz" + integrity sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg== -"rimraf@~2.6.2": - "integrity" "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==" - "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz" - "version" "2.6.3" +rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== dependencies: - "glob" "^7.1.3" + glob "^7.1.3" -"rsvp@^4.8.4": - "integrity" "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==" - "resolved" "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz" - "version" "4.8.5" +rsvp@^4.8.4: + version "4.8.5" + resolved "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz" + integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== -"run-async@^2.4.0": - "integrity" "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==" - "resolved" "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" - "version" "2.4.1" +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== -"run-parallel@^1.1.9": - "integrity" "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==" - "resolved" "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" - "version" "1.2.0" +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: - "queue-microtask" "^1.2.2" + queue-microtask "^1.2.2" -"rxjs@^7.5.6": - "integrity" "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==" - "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz" - "version" "7.5.7" +rxjs@^7.5.6: + version "7.5.7" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz" + integrity sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA== dependencies: - "tslib" "^2.1.0" + tslib "^2.1.0" -"safe-buffer@~5.1.0", "safe-buffer@~5.1.1", "safe-buffer@5.1.2": - "integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" - "version" "5.1.2" +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -"safe-buffer@~5.2.0": - "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" - "version" "5.2.1" +safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== -"safe-regex-test@^1.0.0": - "integrity" "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==" - "resolved" "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz" - "version" "1.0.0" +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== dependencies: - "call-bind" "^1.0.2" - "get-intrinsic" "^1.1.3" - "is-regex" "^1.1.4" + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" -"safe-regex@^1.1.0": - "integrity" "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=" - "resolved" "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz" - "version" "1.1.0" +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= dependencies: - "ret" "~0.1.10" + ret "~0.1.10" "safer-buffer@>= 2.1.2 < 3": - "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" - "version" "2.1.2" + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -"sane@^4.0.3": - "integrity" "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==" - "resolved" "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz" - "version" "4.1.0" +sane@^4.0.3: + version "4.1.0" + resolved "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz" + integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== dependencies: "@cnakazawa/watch" "^1.0.3" - "anymatch" "^2.0.0" - "capture-exit" "^2.0.0" - "exec-sh" "^0.3.2" - "execa" "^1.0.0" - "fb-watchman" "^2.0.0" - "micromatch" "^3.1.4" - "minimist" "^1.1.1" - "walker" "~1.0.5" - -"saxes@^5.0.1": - "integrity" "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==" - "resolved" "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "xmlchars" "^2.2.0" - -"scheduler@^0.22.0": - "integrity" "sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ==" - "resolved" "https://registry.npmjs.org/scheduler/-/scheduler-0.22.0.tgz" - "version" "0.22.0" - dependencies: - "loose-envify" "^1.1.0" - -"semver-compare@^1.0.0": - "integrity" "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=" - "resolved" "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" - "version" "1.0.0" - -"semver-diff@^4.0.0": - "integrity" "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==" - "resolved" "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "semver" "^7.3.5" - -"semver-regex@^3.1.2": - "integrity" "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==" - "resolved" "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz" - "version" "3.1.4" - -"semver@^5.5.0": - "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" - "version" "5.7.1" - -"semver@^5.6.0": - "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" - "version" "5.7.1" - -"semver@^6.0.0": - "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - "version" "6.3.0" - -"semver@^6.1.1": - "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - "version" "6.3.0" - -"semver@^6.1.2": - "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - "version" "6.3.0" - -"semver@^6.3.0": - "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - "version" "6.3.0" - -"semver@^7.2.1", "semver@^7.3.2": - "integrity" "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz" - "version" "7.3.4" - dependencies: - "lru-cache" "^6.0.0" - -"semver@^7.3.5": - "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" - "version" "7.3.8" - dependencies: - "lru-cache" "^6.0.0" - -"semver@^7.3.7": - "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" - "version" "7.3.8" - dependencies: - "lru-cache" "^6.0.0" - -"semver@2 || 3 || 4 || 5": - "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" - "version" "5.7.1" - -"semver@7.3.2": - "integrity" "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz" - "version" "7.3.2" - -"semver@7.3.7": - "integrity" "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz" - "version" "7.3.7" - dependencies: - "lru-cache" "^6.0.0" - -"semver@7.3.8": - "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" - "version" "7.3.8" - dependencies: - "lru-cache" "^6.0.0" - -"send@0.18.0": - "integrity" "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==" - "resolved" "https://registry.npmjs.org/send/-/send-0.18.0.tgz" - "version" "0.18.0" - dependencies: - "debug" "2.6.9" - "depd" "2.0.0" - "destroy" "1.2.0" - "encodeurl" "~1.0.2" - "escape-html" "~1.0.3" - "etag" "~1.8.1" - "fresh" "0.5.2" - "http-errors" "2.0.0" - "mime" "1.6.0" - "ms" "2.1.3" - "on-finished" "2.4.1" - "range-parser" "~1.2.1" - "statuses" "2.0.1" - -"serialize-error@^2.1.0": - "integrity" "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==" - "resolved" "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz" - "version" "2.1.0" - -"serve-static@^1.13.1": - "integrity" "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==" - "resolved" "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" - "version" "1.15.0" - dependencies: - "encodeurl" "~1.0.2" - "escape-html" "~1.0.3" - "parseurl" "~1.3.3" - "send" "0.18.0" - -"set-blocking@^2.0.0": - "integrity" "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" - "resolved" "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" - "version" "2.0.0" - -"set-value@^2.0.0", "set-value@^2.0.1": - "integrity" "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==" - "resolved" "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "extend-shallow" "^2.0.1" - "is-extendable" "^0.1.1" - "is-plain-object" "^2.0.3" - "split-string" "^3.0.1" - -"setprototypeof@1.2.0": - "integrity" "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - "resolved" "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" - "version" "1.2.0" - -"shallow-clone@^3.0.0": - "integrity" "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==" - "resolved" "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "kind-of" "^6.0.2" - -"shebang-command@^1.2.0": - "integrity" "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==" - "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" - "version" "1.2.0" - dependencies: - "shebang-regex" "^1.0.0" - -"shebang-command@^2.0.0": - "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==" - "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "shebang-regex" "^3.0.0" - -"shebang-regex@^1.0.0": - "integrity" "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==" - "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" - "version" "1.0.0" - -"shebang-regex@^3.0.0": - "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" - "version" "3.0.0" - -"shell-quote@^1.6.1", "shell-quote@^1.7.3": - "integrity" "sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==" - "resolved" "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.4.tgz" - "version" "1.7.4" - -"shelljs@0.8.5": - "integrity" "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==" - "resolved" "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz" - "version" "0.8.5" - dependencies: - "glob" "^7.0.0" - "interpret" "^1.0.0" - "rechoir" "^0.6.2" - -"shellwords@^0.1.1": - "integrity" "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==" - "resolved" "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz" - "version" "0.1.1" - -"side-channel@^1.0.3", "side-channel@^1.0.4": - "integrity" "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==" - "resolved" "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "call-bind" "^1.0.0" - "get-intrinsic" "^1.0.2" - "object-inspect" "^1.9.0" - -"signal-exit@^3.0.0", "signal-exit@^3.0.2", "signal-exit@^3.0.3", "signal-exit@^3.0.7": - "integrity" "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - "resolved" "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" - "version" "3.0.7" - -"sisteransi@^1.0.5": - "integrity" "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - "resolved" "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" - "version" "1.0.5" - -"slash@^3.0.0": - "integrity" "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - "resolved" "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" - "version" "3.0.0" - -"slash@^4.0.0": - "integrity" "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" - "resolved" "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz" - "version" "4.0.0" - -"slice-ansi@^2.0.0": - "integrity" "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==" - "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "ansi-styles" "^3.2.0" - "astral-regex" "^1.0.0" - "is-fullwidth-code-point" "^2.0.0" - -"slice-ansi@^4.0.0": - "integrity" "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==" - "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "ansi-styles" "^4.0.0" - "astral-regex" "^2.0.0" - "is-fullwidth-code-point" "^3.0.0" - -"smart-buffer@^4.2.0": - "integrity" "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" - "resolved" "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz" - "version" "4.2.0" - -"snapdragon-node@^2.0.1": - "integrity" "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==" - "resolved" "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz" - "version" "2.1.1" - dependencies: - "define-property" "^1.0.0" - "isobject" "^3.0.0" - "snapdragon-util" "^3.0.1" - -"snapdragon-util@^3.0.1": - "integrity" "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==" - "resolved" "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "kind-of" "^3.2.0" - -"snapdragon@^0.8.1": - "integrity" "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==" - "resolved" "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz" - "version" "0.8.2" - dependencies: - "base" "^0.11.1" - "debug" "^2.2.0" - "define-property" "^0.2.5" - "extend-shallow" "^2.0.1" - "map-cache" "^0.2.2" - "source-map" "^0.5.6" - "source-map-resolve" "^0.5.0" - "use" "^3.1.0" - -"socks-proxy-agent@^5.0.0", "socks-proxy-agent@5": - "integrity" "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==" - "resolved" "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "agent-base" "^6.0.2" - "debug" "4" - "socks" "^2.3.3" - -"socks@^2.3.3": - "integrity" "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==" - "resolved" "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz" - "version" "2.7.1" - dependencies: - "ip" "^2.0.0" - "smart-buffer" "^4.2.0" - -"source-map-resolve@^0.5.0": - "integrity" "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==" - "resolved" "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz" - "version" "0.5.3" - dependencies: - "atob" "^2.1.2" - "decode-uri-component" "^0.2.0" - "resolve-url" "^0.2.1" - "source-map-url" "^0.4.0" - "urix" "^0.1.0" - -"source-map-support@^0.5.16", "source-map-support@^0.5.6": - "integrity" "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==" - "resolved" "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz" - "version" "0.5.19" - dependencies: - "buffer-from" "^1.0.0" - "source-map" "^0.6.0" - -"source-map-url@^0.4.0": - "integrity" "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" - "resolved" "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz" - "version" "0.4.0" - -"source-map@^0.5.6": - "integrity" "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" - "version" "0.5.7" - -"source-map@^0.6.0": - "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - "version" "0.6.1" - -"source-map@^0.6.1": - "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - "version" "0.6.1" - -"source-map@^0.7.3": - "integrity" "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" - "version" "0.7.4" - -"source-map@~0.6.1": - "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - "version" "0.6.1" - -"spdx-correct@^3.0.0": - "integrity" "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==" - "resolved" "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz" - "version" "3.1.1" - dependencies: - "spdx-expression-parse" "^3.0.0" - "spdx-license-ids" "^3.0.0" - -"spdx-exceptions@^2.1.0": - "integrity" "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" - "resolved" "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" - "version" "2.3.0" - -"spdx-expression-parse@^3.0.0": - "integrity" "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==" - "resolved" "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "spdx-exceptions" "^2.1.0" - "spdx-license-ids" "^3.0.0" - -"spdx-license-ids@^3.0.0": - "integrity" "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==" - "resolved" "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz" - "version" "3.0.7" - -"split-string@^3.0.1", "split-string@^3.0.2": - "integrity" "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==" - "resolved" "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "extend-shallow" "^3.0.0" - -"split@^1.0.0": - "integrity" "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==" - "resolved" "https://registry.npmjs.org/split/-/split-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "through" "2" - -"split2@^2.0.0": - "integrity" "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==" - "resolved" "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz" - "version" "2.2.0" - dependencies: - "through2" "^2.0.2" - -"split2@^3.0.0": - "integrity" "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==" - "resolved" "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz" - "version" "3.2.2" - dependencies: - "readable-stream" "^3.0.0" - -"sprintf-js@~1.0.2": - "integrity" "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" - "version" "1.0.3" - -"stack-utils@^2.0.2": - "integrity" "sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw==" - "resolved" "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz" - "version" "2.0.3" - dependencies: - "escape-string-regexp" "^2.0.0" - -"stackframe@^1.3.4": - "integrity" "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" - "resolved" "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz" - "version" "1.3.4" - -"stacktrace-parser@^0.1.3": - "integrity" "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==" - "resolved" "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz" - "version" "0.1.10" - dependencies: - "type-fest" "^0.7.1" - -"static-extend@^0.1.1": - "integrity" "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=" - "resolved" "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" - "version" "0.1.2" - dependencies: - "define-property" "^0.2.5" - "object-copy" "^0.1.0" - -"statuses@~1.5.0": - "integrity" "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" - "resolved" "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz" - "version" "1.5.0" - -"statuses@2.0.1": - "integrity" "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" - "resolved" "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" - "version" "2.0.1" - -"string_decoder@^1.1.1": - "integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==" - "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - "version" "1.3.0" - dependencies: - "safe-buffer" "~5.2.0" - -"string_decoder@~0.10.x": - "integrity" "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" - "version" "0.10.31" - -"string_decoder@~1.1.1": - "integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==" - "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - "version" "1.1.1" - dependencies: - "safe-buffer" "~5.1.0" - -"string-length@^4.0.1": - "integrity" "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==" - "resolved" "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "char-regex" "^1.0.2" - "strip-ansi" "^6.0.0" - -"string-width@^4.1.0", "string-width@^4.2.3": - "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" - "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - "version" "4.2.3" - dependencies: - "emoji-regex" "^8.0.0" - "is-fullwidth-code-point" "^3.0.0" - "strip-ansi" "^6.0.1" - -"string-width@^4.2.0": - "integrity" "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==" - "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz" - "version" "4.2.0" - dependencies: - "emoji-regex" "^8.0.0" - "is-fullwidth-code-point" "^3.0.0" - "strip-ansi" "^6.0.0" - -"string-width@^5.0.1", "string-width@^5.1.2": - "integrity" "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==" - "resolved" "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz" - "version" "5.1.2" - dependencies: - "eastasianwidth" "^0.2.0" - "emoji-regex" "^9.2.2" - "strip-ansi" "^7.0.1" - -"string.prototype.matchall@^4.0.2": - "integrity" "sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw==" - "resolved" "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.3.tgz" - "version" "4.0.3" - dependencies: - "call-bind" "^1.0.0" - "define-properties" "^1.1.3" - "es-abstract" "^1.18.0-next.1" - "has-symbols" "^1.0.1" - "internal-slot" "^1.0.2" - "regexp.prototype.flags" "^1.3.0" - "side-channel" "^1.0.3" - -"string.prototype.trimend@^1.0.5": - "integrity" "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==" - "resolved" "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.4" - "es-abstract" "^1.19.5" - -"string.prototype.trimstart@^1.0.5": - "integrity" "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==" - "resolved" "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "call-bind" "^1.0.2" - "define-properties" "^1.1.4" - "es-abstract" "^1.19.5" - -"strip-ansi@^5.0.0": - "integrity" "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" - "version" "5.2.0" - dependencies: - "ansi-regex" "^4.1.0" - -"strip-ansi@^5.2.0": - "integrity" "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" - "version" "5.2.0" - dependencies: - "ansi-regex" "^4.1.0" - -"strip-ansi@^6.0.0": - "integrity" "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "ansi-regex" "^5.0.0" - -"strip-ansi@^6.0.1": - "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - "version" "6.0.1" - dependencies: - "ansi-regex" "^5.0.1" - -"strip-ansi@^7.0.1": - "integrity" "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz" - "version" "7.0.1" - dependencies: - "ansi-regex" "^6.0.1" - -"strip-bom@^3.0.0": - "integrity" "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" - "resolved" "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" - "version" "3.0.0" - -"strip-bom@^4.0.0": - "integrity" "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==" - "resolved" "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" - "version" "4.0.0" - -"strip-eof@^1.0.0": - "integrity" "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" - "resolved" "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" - "version" "1.0.0" - -"strip-final-newline@^2.0.0": - "integrity" "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" - "resolved" "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" - "version" "2.0.0" - -"strip-final-newline@^3.0.0": - "integrity" "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==" - "resolved" "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" - "version" "3.0.0" - -"strip-indent@^3.0.0": - "integrity" "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==" - "resolved" "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "min-indent" "^1.0.0" - -"strip-json-comments@^3.1.0", "strip-json-comments@^3.1.1": - "integrity" "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" - "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" - "version" "3.1.1" - -"strip-json-comments@~2.0.1": - "integrity" "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" - "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" - "version" "2.0.1" - -"sudo-prompt@^9.0.0": - "integrity" "sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==" - "resolved" "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz" - "version" "9.2.1" + anymatch "^2.0.0" + capture-exit "^2.0.0" + exec-sh "^0.3.2" + execa "^1.0.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + +saxes@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz" + integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== + dependencies: + xmlchars "^2.2.0" + +scheduler@^0.22.0: + version "0.22.0" + resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.22.0.tgz" + integrity sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ== + dependencies: + loose-envify "^1.1.0" + +semver-compare@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" + integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= + +semver-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz" + integrity sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA== + dependencies: + semver "^7.3.5" + +semver-regex@^3.1.2: + version "3.1.4" + resolved "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz" + integrity sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA== + +"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@7.3.2: + version "7.3.2" + resolved "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + +semver@7.3.7: + version "7.3.7" + resolved "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz" + integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + dependencies: + lru-cache "^6.0.0" + +semver@7.3.8, semver@^7.3.5, semver@^7.3.7: + version "7.3.8" + resolved "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== + dependencies: + lru-cache "^6.0.0" + +semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.2.1, semver@^7.3.2: + version "7.3.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz" + integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== + dependencies: + lru-cache "^6.0.0" + +send@0.18.0: + version "0.18.0" + resolved "https://registry.npmjs.org/send/-/send-0.18.0.tgz" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-error@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz" + integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== + +serve-static@^1.13.1: + version "1.15.0" + resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shallow-clone@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz" + integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== + dependencies: + kind-of "^6.0.2" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== + dependencies: + shebang-regex "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shell-quote@^1.6.1, shell-quote@^1.7.3: + version "1.7.4" + resolved "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.4.tgz" + integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== + +shelljs@0.8.5: + version "0.8.5" + resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz" + integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +side-channel@^1.0.3, side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +sisteransi@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz" + integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== + +slice-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +smart-buffer@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz" + integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +socks-proxy-agent@5, socks-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz" + integrity sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ== + dependencies: + agent-base "^6.0.2" + debug "4" + socks "^2.3.3" + +socks@^2.3.3: + version "2.7.1" + resolved "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz" + integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== + dependencies: + ip "^2.0.0" + smart-buffer "^4.2.0" + +source-map-resolve@^0.5.0: + version "0.5.3" + resolved "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz" + integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== + dependencies: + atob "^2.1.2" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.5.16, source-map-support@^0.5.6: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@^0.5.6: + version "0.5.7" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +spdx-correct@^3.0.0: + version "3.1.1" + resolved "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz" + integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.3.0" + resolved "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" + integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.7" + resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz" + integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +split2@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz" + integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== + dependencies: + through2 "^2.0.2" + +split2@^3.0.0: + version "3.2.2" + resolved "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz" + integrity sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg== + dependencies: + readable-stream "^3.0.0" + +split@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/split/-/split-1.0.1.tgz" + integrity sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg== + dependencies: + through "2" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +stack-utils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz" + integrity sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw== + dependencies: + escape-string-regexp "^2.0.0" + +stackframe@^1.3.4: + version "1.3.4" + resolved "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz" + integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== + +stacktrace-parser@^0.1.3: + version "0.1.10" + resolved "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz" + integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== + dependencies: + type-fest "^0.7.1" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +string-length@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz" + integrity sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw== + dependencies: + char-regex "^1.0.2" + strip-ansi "^6.0.0" + +string-width@^4.1.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz" + integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + +string.prototype.matchall@^4.0.2: + version "4.0.3" + resolved "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.3.tgz" + integrity sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + has-symbols "^1.0.1" + internal-slot "^1.0.2" + regexp.prototype.flags "^1.3.0" + side-channel "^1.0.3" + +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^5.0.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz" + integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw== + dependencies: + ansi-regex "^6.0.1" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" + integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== + +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" + +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== -"supports-color@^5.3.0": - "integrity" "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" - "version" "5.5.0" - dependencies: - "has-flag" "^3.0.0" +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" + integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== -"supports-color@^7.0.0": - "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - "version" "7.2.0" - dependencies: - "has-flag" "^4.0.0" +sudo-prompt@^9.0.0: + version "9.2.1" + resolved "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz" + integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== -"supports-color@^7.1.0": - "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - "version" "7.2.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: - "has-flag" "^4.0.0" + has-flag "^3.0.0" -"supports-color@^8.0.0": - "integrity" "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - "version" "8.1.1" +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: - "has-flag" "^4.0.0" + has-flag "^4.0.0" -"supports-hyperlinks@^2.0.0": - "integrity" "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==" - "resolved" "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz" - "version" "2.1.0" +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== dependencies: - "has-flag" "^4.0.0" - "supports-color" "^7.0.0" + has-flag "^4.0.0" -"symbol-tree@^3.2.4": - "integrity" "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - "resolved" "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz" - "version" "3.2.4" - -"table@^6.0.4": - "integrity" "sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g==" - "resolved" "https://registry.npmjs.org/table/-/table-6.0.7.tgz" - "version" "6.0.7" +supports-hyperlinks@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz" + integrity sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA== dependencies: - "ajv" "^7.0.2" - "lodash" "^4.17.20" - "slice-ansi" "^4.0.0" - "string-width" "^4.2.0" + has-flag "^4.0.0" + supports-color "^7.0.0" -"temp@^0.8.4": - "integrity" "sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==" - "resolved" "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz" - "version" "0.8.4" - dependencies: - "rimraf" "~2.6.2" +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -"temp@0.8.3": - "integrity" "sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw==" - "resolved" "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz" - "version" "0.8.3" +table@^6.0.4: + version "6.0.7" + resolved "https://registry.npmjs.org/table/-/table-6.0.7.tgz" + integrity sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g== dependencies: - "os-tmpdir" "^1.0.0" - "rimraf" "~2.2.6" + ajv "^7.0.2" + lodash "^4.17.20" + slice-ansi "^4.0.0" + string-width "^4.2.0" -"terminal-link@^2.0.0": - "integrity" "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==" - "resolved" "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz" - "version" "2.1.1" - dependencies: - "ansi-escapes" "^4.2.1" - "supports-hyperlinks" "^2.0.0" +temp@0.8.3: + version "0.8.3" + resolved "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz" + integrity sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw== + dependencies: + os-tmpdir "^1.0.0" + rimraf "~2.2.6" + +temp@^0.8.4: + version "0.8.4" + resolved "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz" + integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg== + dependencies: + rimraf "~2.6.2" + +terminal-link@^2.0.0: + version "2.1.1" + resolved "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz" + integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== + dependencies: + ansi-escapes "^4.2.1" + supports-hyperlinks "^2.0.0" -"test-exclude@^6.0.0": - "integrity" "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==" - "resolved" "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" - "version" "6.0.0" +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== dependencies: "@istanbuljs/schema" "^0.1.2" - "glob" "^7.1.4" - "minimatch" "^3.0.4" - -"text-extensions@^1.0.0": - "integrity" "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==" - "resolved" "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz" - "version" "1.9.0" - -"text-table@^0.2.0": - "integrity" "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=" - "resolved" "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" - "version" "0.2.0" - -"throat@^5.0.0": - "integrity" "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==" - "resolved" "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz" - "version" "5.0.0" - -"through@^2.3.6", "through@>=2.2.7 <3", "through@2": - "integrity" "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" - "resolved" "https://registry.npmjs.org/through/-/through-2.3.8.tgz" - "version" "2.3.8" - -"through2@^2.0.0": - "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" - "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" - "version" "2.0.5" - dependencies: - "readable-stream" "~2.3.6" - "xtend" "~4.0.1" - -"through2@^2.0.1": - "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" - "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" - "version" "2.0.5" - dependencies: - "readable-stream" "~2.3.6" - "xtend" "~4.0.1" - -"through2@^2.0.2": - "integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" - "resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" - "version" "2.0.5" - dependencies: - "readable-stream" "~2.3.6" - "xtend" "~4.0.1" - -"through2@^4.0.0": - "integrity" "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==" - "resolved" "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz" - "version" "4.0.2" - dependencies: - "readable-stream" "3" - -"tmp@^0.0.33": - "integrity" "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==" - "resolved" "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" - "version" "0.0.33" - dependencies: - "os-tmpdir" "~1.0.2" - -"tmpl@1.0.x": - "integrity" "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" - "resolved" "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" - "version" "1.0.5" - -"to-fast-properties@^2.0.0": - "integrity" "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" - "resolved" "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" - "version" "2.0.0" - -"to-object-path@^0.3.0": - "integrity" "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=" - "resolved" "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz" - "version" "0.3.0" - dependencies: - "kind-of" "^3.0.2" - -"to-regex-range@^2.1.0": - "integrity" "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==" - "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz" - "version" "2.1.1" - dependencies: - "is-number" "^3.0.0" - "repeat-string" "^1.6.1" - -"to-regex-range@^5.0.1": - "integrity" "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" - "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "is-number" "^7.0.0" - -"to-regex@^3.0.1", "to-regex@^3.0.2": - "integrity" "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==" - "resolved" "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "define-property" "^2.0.2" - "extend-shallow" "^3.0.2" - "regex-not" "^1.0.2" - "safe-regex" "^1.1.0" - -"toidentifier@1.0.1": - "integrity" "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" - "resolved" "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" - "version" "1.0.1" - -"tough-cookie@^4.0.0": - "integrity" "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==" - "resolved" "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz" - "version" "4.1.2" - dependencies: - "psl" "^1.1.33" - "punycode" "^2.1.1" - "universalify" "^0.2.0" - "url-parse" "^1.5.3" - -"tr46@^2.1.0": - "integrity" "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==" - "resolved" "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "punycode" "^2.1.1" - -"tr46@~0.0.3": - "integrity" "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - "resolved" "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" - "version" "0.0.3" - -"trim-newlines@^3.0.0": - "integrity" "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==" - "resolved" "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz" - "version" "3.0.1" - -"trim-off-newlines@^1.0.0": - "integrity" "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==" - "resolved" "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz" - "version" "1.0.3" - -"tslib@^1.8.1": - "integrity" "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" - "version" "1.14.1" - -"tslib@^2.0.1": - "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" - "version" "2.4.1" - -"tslib@^2.1.0": - "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" - "version" "2.4.1" - -"tsutils@^3.17.1": - "integrity" "sha512-A7BaLUPvcQ1cxVu72YfD+UMI3SQPTDv/w4ol6TOwLyI0hwfG9EC+cYlhdflJTmtYTgZ3KqdPSe/otxU4K3kArg==" - "resolved" "https://registry.npmjs.org/tsutils/-/tsutils-3.19.0.tgz" - "version" "3.19.0" - dependencies: - "tslib" "^1.8.1" - -"type-check@^0.4.0", "type-check@~0.4.0": - "integrity" "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==" - "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" - "version" "0.4.0" - dependencies: - "prelude-ls" "^1.2.1" - -"type-check@~0.3.2": - "integrity" "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==" - "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" - "version" "0.3.2" - dependencies: - "prelude-ls" "~1.1.2" - -"type-detect@4.0.8": - "integrity" "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" - "resolved" "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" - "version" "4.0.8" - -"type-fest@^0.11.0": - "integrity" "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz" - "version" "0.11.0" - -"type-fest@^0.18.0": - "integrity" "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz" - "version" "0.18.1" - -"type-fest@^0.6.0": - "integrity" "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" - "version" "0.6.0" - -"type-fest@^0.7.1": - "integrity" "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz" - "version" "0.7.1" - -"type-fest@^0.8.1": - "integrity" "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" - "version" "0.8.1" - -"type-fest@^1.0.1": - "integrity" "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" - "version" "1.4.0" - -"type-fest@^1.0.2": - "integrity" "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" - "version" "1.4.0" - -"type-fest@^2.13.0": - "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" - "version" "2.19.0" - -"type-fest@^2.5.1": - "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" - "version" "2.19.0" - -"typedarray-to-buffer@^3.1.5": - "integrity" "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==" - "resolved" "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" - "version" "3.1.5" - dependencies: - "is-typedarray" "^1.0.0" - -"typedarray@^0.0.6": - "integrity" "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" - "resolved" "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" - "version" "0.0.6" - -"typescript@^4.1.3", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta": - "integrity" "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==" - "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz" - "version" "4.1.3" - -"uglify-es@^3.1.9": - "integrity" "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==" - "resolved" "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz" - "version" "3.3.9" - dependencies: - "commander" "~2.13.0" - "source-map" "~0.6.1" - -"uglify-js@^3.1.4": - "integrity" "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==" - "resolved" "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz" - "version" "3.17.4" - -"unbox-primitive@^1.0.2": - "integrity" "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==" - "resolved" "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "call-bind" "^1.0.2" - "has-bigints" "^1.0.2" - "has-symbols" "^1.0.3" - "which-boxed-primitive" "^1.0.2" - -"unc-path-regex@^0.1.2": - "integrity" "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=" - "resolved" "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz" - "version" "0.1.2" - -"unicode-canonical-property-names-ecmascript@^2.0.0": - "integrity" "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" - "resolved" "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz" - "version" "2.0.0" - -"unicode-match-property-ecmascript@^2.0.0": - "integrity" "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==" - "resolved" "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "unicode-canonical-property-names-ecmascript" "^2.0.0" - "unicode-property-aliases-ecmascript" "^2.0.0" - -"unicode-match-property-value-ecmascript@^2.0.0": - "integrity" "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==" - "resolved" "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz" - "version" "2.0.0" - -"unicode-property-aliases-ecmascript@^2.0.0": - "integrity" "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" - "resolved" "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz" - "version" "2.1.0" - -"union-value@^1.0.0": - "integrity" "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==" - "resolved" "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "arr-union" "^3.1.0" - "get-value" "^2.0.6" - "is-extendable" "^0.1.1" - "set-value" "^2.0.1" - -"unique-string@^3.0.0": - "integrity" "sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==" - "resolved" "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "crypto-random-string" "^4.0.0" - -"universal-user-agent@^6.0.0": - "integrity" "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" - "resolved" "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz" - "version" "6.0.0" - -"universalify@^0.1.0": - "integrity" "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" - "version" "0.1.2" - -"universalify@^0.2.0": - "integrity" "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" - "version" "0.2.0" - -"universalify@^1.0.0": - "integrity" "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz" - "version" "1.0.0" - -"universalify@^2.0.0": - "integrity" "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" - "version" "2.0.0" - -"unpipe@~1.0.0", "unpipe@1.0.0": - "integrity" "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" - "resolved" "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" - "version" "1.0.0" - -"unset-value@^1.0.0": - "integrity" "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=" - "resolved" "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "has-value" "^0.3.1" - "isobject" "^3.0.0" - -"update-browserslist-db@^1.0.9": - "integrity" "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==" - "resolved" "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz" - "version" "1.0.10" - dependencies: - "escalade" "^3.1.1" - "picocolors" "^1.0.0" - -"update-notifier@6.0.2": - "integrity" "sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==" - "resolved" "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz" - "version" "6.0.2" - dependencies: - "boxen" "^7.0.0" - "chalk" "^5.0.1" - "configstore" "^6.0.0" - "has-yarn" "^3.0.0" - "import-lazy" "^4.0.0" - "is-ci" "^3.0.1" - "is-installed-globally" "^0.4.0" - "is-npm" "^6.0.0" - "is-yarn-global" "^0.4.0" - "latest-version" "^7.0.0" - "pupa" "^3.1.0" - "semver" "^7.3.7" - "semver-diff" "^4.0.0" - "xdg-basedir" "^5.1.0" - -"uri-js@^4.2.2": - "integrity" "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==" - "resolved" "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz" - "version" "4.4.0" - dependencies: - "punycode" "^2.1.0" - -"urix@^0.1.0": - "integrity" "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" - "resolved" "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz" - "version" "0.1.0" - -"url-join@5.0.0": - "integrity" "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==" - "resolved" "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz" - "version" "5.0.0" - -"url-parse@^1.5.3": - "integrity" "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==" - "resolved" "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz" - "version" "1.5.10" - dependencies: - "querystringify" "^2.1.1" - "requires-port" "^1.0.0" - -"use-sync-external-store@^1.0.0": - "integrity" "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==" - "resolved" "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz" - "version" "1.2.0" - -"use@^3.1.0": - "integrity" "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" - "resolved" "https://registry.npmjs.org/use/-/use-3.1.1.tgz" - "version" "3.1.1" - -"util-deprecate@^1.0.1", "util-deprecate@~1.0.1": - "integrity" "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" - "version" "1.0.2" - -"utils-merge@1.0.1": - "integrity" "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" - "resolved" "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" - "version" "1.0.1" - -"uuid@^8.3.0", "uuid@^8.3.2": - "integrity" "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" - "version" "8.3.2" - -"v8-compile-cache@^2.0.3": - "integrity" "sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==" - "resolved" "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz" - "version" "2.2.0" - -"v8-to-istanbul@^7.0.0": - "integrity" "sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g==" - "resolved" "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz" - "version" "7.1.0" + glob "^7.1.4" + minimatch "^3.0.4" + +text-extensions@^1.0.0: + version "1.9.0" + resolved "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz" + integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +throat@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz" + integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== + +through2@^2.0.0, through2@^2.0.1, through2@^2.0.2: + version "2.0.5" + resolved "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +through2@^4.0.0: + version "4.0.2" + resolved "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz" + integrity sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw== + dependencies: + readable-stream "3" + +through@2, "through@>=2.2.7 <3", through@^2.3.6: + version "2.3.8" + resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tmpl@1.0.x: + version "1.0.5" + resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz" + integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tough-cookie@^4.0.0: + version "4.1.2" + resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz" + integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== + dependencies: + psl "^1.1.33" + punycode "^2.1.1" + universalify "^0.2.0" + url-parse "^1.5.3" + +tr46@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz" + integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== + dependencies: + punycode "^2.1.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +trim-newlines@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz" + integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== + +trim-off-newlines@^1.0.0: + version "1.0.3" + resolved "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz" + integrity sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg== + +tslib@^1.8.1: + version "1.14.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.0.1, tslib@^2.1.0: + version "2.4.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + +tsutils@^3.17.1: + version "3.19.0" + resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.19.0.tgz" + integrity sha512-A7BaLUPvcQ1cxVu72YfD+UMI3SQPTDv/w4ol6TOwLyI0hwfG9EC+cYlhdflJTmtYTgZ3KqdPSe/otxU4K3kArg== + dependencies: + tslib "^1.8.1" + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== + dependencies: + prelude-ls "~1.1.2" + +type-detect@4.0.8: + version "4.0.8" + resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.11.0: + version "0.11.0" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz" + integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== + +type-fest@^0.18.0: + version "0.18.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz" + integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== + +type-fest@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" + integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== + +type-fest@^0.7.1: + version "0.7.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz" + integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== + +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +type-fest@^1.0.1, type-fest@^1.0.2: + version "1.4.0" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" + integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== + +type-fest@^2.13.0, type-fest@^2.5.1: + version "2.19.0" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" + integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +typescript@^4.1.3: + version "4.1.3" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz" + integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg== + +uglify-es@^3.1.9: + version "3.3.9" + resolved "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz" + integrity sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ== + dependencies: + commander "~2.13.0" + source-map "~0.6.1" + +uglify-js@^3.1.4: + version "3.17.4" + resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz" + integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== + +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz" + integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo= + +unicode-canonical-property-names-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz" + integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== + +unicode-match-property-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz" + integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== + dependencies: + unicode-canonical-property-names-ecmascript "^2.0.0" + unicode-property-aliases-ecmascript "^2.0.0" + +unicode-match-property-value-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz" + integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw== + +unicode-property-aliases-ecmascript@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz" + integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +unique-string@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz" + integrity sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ== + dependencies: + crypto-random-string "^4.0.0" + +universal-user-agent@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz" + integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w== + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +universalify@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" + integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== + +universalify@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz" + integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== + +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +update-browserslist-db@^1.0.9: + version "1.0.10" + resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz" + integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + +update-notifier@6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz" + integrity sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og== + dependencies: + boxen "^7.0.0" + chalk "^5.0.1" + configstore "^6.0.0" + has-yarn "^3.0.0" + import-lazy "^4.0.0" + is-ci "^3.0.1" + is-installed-globally "^0.4.0" + is-npm "^6.0.0" + is-yarn-global "^0.4.0" + latest-version "^7.0.0" + pupa "^3.1.0" + semver "^7.3.7" + semver-diff "^4.0.0" + xdg-basedir "^5.1.0" + +uri-js@^4.2.2: + version "4.4.0" + resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz" + integrity sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +url-join@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz" + integrity sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA== + +url-parse@^1.5.3: + version "1.5.10" + resolved "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== + dependencies: + querystringify "^2.1.1" + requires-port "^1.0.0" + +use-sync-external-store@^1.0.0: + version "1.2.0" + resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/use/-/use-3.1.1.tgz" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +uuid@^8.3.0, uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache@^2.0.3: + version "2.2.0" + resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz" + integrity sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q== + +v8-to-istanbul@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz" + integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== dependencies: "@types/istanbul-lib-coverage" "^2.0.1" - "convert-source-map" "^1.6.0" - "source-map" "^0.7.3" + convert-source-map "^1.6.0" + source-map "^0.7.3" -"validate-npm-package-license@^3.0.1": - "integrity" "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==" - "resolved" "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" - "version" "3.0.4" - dependencies: - "spdx-correct" "^3.0.0" - "spdx-expression-parse" "^3.0.0" +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" -"vary@~1.1.2": - "integrity" "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" - "resolved" "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" - "version" "1.1.2" - -"vlq@^1.0.0": - "integrity" "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==" - "resolved" "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz" - "version" "1.0.1" - -"vm2@^3.9.8": - "integrity" "sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==" - "resolved" "https://registry.npmjs.org/vm2/-/vm2-3.9.11.tgz" - "version" "3.9.11" - dependencies: - "acorn" "^8.7.0" - "acorn-walk" "^8.2.0" - -"w3c-hr-time@^1.0.2": - "integrity" "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==" - "resolved" "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "browser-process-hrtime" "^1.0.0" - -"w3c-xmlserializer@^2.0.0": - "integrity" "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==" - "resolved" "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "xml-name-validator" "^3.0.0" - -"walker@^1.0.7", "walker@~1.0.5": - "integrity" "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=" - "resolved" "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz" - "version" "1.0.7" - dependencies: - "makeerror" "1.0.x" - -"wcwidth@^1.0.1": - "integrity" "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==" - "resolved" "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "defaults" "^1.0.3" - -"web-streams-polyfill@^3.0.3": - "integrity" "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" - "resolved" "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz" - "version" "3.2.1" - -"webidl-conversions@^3.0.0": - "integrity" "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" - "version" "3.0.1" - -"webidl-conversions@^5.0.0": - "integrity" "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==" - "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz" - "version" "5.0.0" - -"webidl-conversions@^6.1.0": - "integrity" "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==" - "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz" - "version" "6.1.0" - -"whatwg-encoding@^1.0.5": - "integrity" "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==" - "resolved" "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "iconv-lite" "0.4.24" - -"whatwg-fetch@^3.0.0": - "integrity" "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - "resolved" "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz" - "version" "3.6.2" - -"whatwg-mimetype@^2.3.0": - "integrity" "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" - "resolved" "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz" - "version" "2.3.0" - -"whatwg-url@^5.0.0": - "integrity" "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==" - "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "tr46" "~0.0.3" - "webidl-conversions" "^3.0.0" - -"whatwg-url@^8.0.0", "whatwg-url@^8.5.0": - "integrity" "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==" - "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz" - "version" "8.7.0" - dependencies: - "lodash" "^4.7.0" - "tr46" "^2.1.0" - "webidl-conversions" "^6.1.0" - -"which-boxed-primitive@^1.0.2": - "integrity" "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==" - "resolved" "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "is-bigint" "^1.0.1" - "is-boolean-object" "^1.1.0" - "is-number-object" "^1.0.4" - "is-string" "^1.0.5" - "is-symbol" "^1.0.3" - -"which-module@^2.0.0": - "integrity" "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" - "resolved" "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" - "version" "2.0.0" - -"which-pm-runs@^1.0.0": - "integrity" "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=" - "resolved" "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz" - "version" "1.0.0" - -"which@^1.2.9": - "integrity" "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==" - "resolved" "https://registry.npmjs.org/which/-/which-1.3.1.tgz" - "version" "1.3.1" - dependencies: - "isexe" "^2.0.0" - -"which@^2.0.1", "which@^2.0.2": - "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==" - "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz" - "version" "2.0.2" - dependencies: - "isexe" "^2.0.0" - -"widest-line@^4.0.1": - "integrity" "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==" - "resolved" "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "string-width" "^5.0.1" - -"wildcard-match@5.1.2": - "integrity" "sha512-qNXwI591Z88c8bWxp+yjV60Ch4F8Riawe3iGxbzquhy8Xs9m+0+SLFBGb/0yCTIDElawtaImC37fYZ+dr32KqQ==" - "resolved" "https://registry.npmjs.org/wildcard-match/-/wildcard-match-5.1.2.tgz" - "version" "5.1.2" - -"windows-release@^5.0.1": - "integrity" "sha512-y1xFdFvdMiDXI3xiOhMbJwt1Y7dUxidha0CWPs1NgjZIjZANTcX7+7bMqNjuezhzb8s5JGEiBAbQjQQYYy7ulw==" - "resolved" "https://registry.npmjs.org/windows-release/-/windows-release-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "execa" "^5.1.1" - -"word-wrap@^1.2.3", "word-wrap@~1.2.3": - "integrity" "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" - "resolved" "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" - "version" "1.2.3" - -"wordwrap@^1.0.0": - "integrity" "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" - "resolved" "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz" - "version" "1.0.0" - -"wrap-ansi@^6.2.0": - "integrity" "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==" - "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" - "version" "6.2.0" - dependencies: - "ansi-styles" "^4.0.0" - "string-width" "^4.1.0" - "strip-ansi" "^6.0.0" - -"wrap-ansi@^7.0.0": - "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==" - "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "ansi-styles" "^4.0.0" - "string-width" "^4.1.0" - "strip-ansi" "^6.0.0" - -"wrap-ansi@^8.0.1": - "integrity" "sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g==" - "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.0.1.tgz" - "version" "8.0.1" - dependencies: - "ansi-styles" "^6.1.0" - "string-width" "^5.0.1" - "strip-ansi" "^7.0.1" - -"wrappy@1": - "integrity" "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" - "version" "1.0.2" - -"write-file-atomic@^2.3.0": - "integrity" "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==" - "resolved" "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz" - "version" "2.4.3" - dependencies: - "graceful-fs" "^4.1.11" - "imurmurhash" "^0.1.4" - "signal-exit" "^3.0.2" - -"write-file-atomic@^3.0.0", "write-file-atomic@^3.0.3": - "integrity" "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==" - "resolved" "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" - "version" "3.0.3" - dependencies: - "imurmurhash" "^0.1.4" - "is-typedarray" "^1.0.0" - "signal-exit" "^3.0.2" - "typedarray-to-buffer" "^3.1.5" - -"ws@^6.1.4": - "integrity" "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==" - "resolved" "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz" - "version" "6.2.2" - dependencies: - "async-limiter" "~1.0.0" - -"ws@^7", "ws@^7.4.6", "ws@^7.5.1": - "integrity" "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==" - "resolved" "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" - "version" "7.5.9" - -"xdg-basedir@^5.0.1", "xdg-basedir@^5.1.0": - "integrity" "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==" - "resolved" "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz" - "version" "5.1.0" - -"xml-name-validator@^3.0.0": - "integrity" "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" - "resolved" "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz" - "version" "3.0.0" - -"xmlchars@^2.2.0": - "integrity" "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" - "resolved" "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz" - "version" "2.2.0" - -"xregexp@2.0.0": - "integrity" "sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA==" - "resolved" "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz" - "version" "2.0.0" - -"xtend@~4.0.1": - "integrity" "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" - "resolved" "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" - "version" "4.0.2" - -"y18n@^4.0.0": - "integrity" "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==" - "resolved" "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz" - "version" "4.0.1" - -"y18n@^5.0.5": - "integrity" "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - "resolved" "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" - "version" "5.0.8" - -"yallist@^3.0.2": - "integrity" "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - "resolved" "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" - "version" "3.1.1" - -"yallist@^4.0.0": - "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" - "version" "4.0.0" - -"yaml@^1.10.0": - "integrity" "sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==" - "resolved" "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz" - "version" "1.10.0" - -"yargs-parser@^18.1.2": - "integrity" "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz" - "version" "18.1.3" - dependencies: - "camelcase" "^5.0.0" - "decamelize" "^1.2.0" - -"yargs-parser@^20.2.2", "yargs-parser@^20.2.3": - "integrity" "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" - "version" "20.2.4" - -"yargs-parser@^21.0.0": - "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - "version" "21.1.1" - -"yargs-parser@21.1.1": - "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - "version" "21.1.1" - -"yargs@^15.1.0", "yargs@^15.3.1", "yargs@^15.4.1": - "integrity" "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==" - "resolved" "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" - "version" "15.4.1" - dependencies: - "cliui" "^6.0.0" - "decamelize" "^1.2.0" - "find-up" "^4.1.0" - "get-caller-file" "^2.0.1" - "require-directory" "^2.1.1" - "require-main-filename" "^2.0.0" - "set-blocking" "^2.0.0" - "string-width" "^4.2.0" - "which-module" "^2.0.0" - "y18n" "^4.0.0" - "yargs-parser" "^18.1.2" - -"yargs@^16.2.0": - "integrity" "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==" - "resolved" "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" - "version" "16.2.0" - dependencies: - "cliui" "^7.0.2" - "escalade" "^3.1.1" - "get-caller-file" "^2.0.5" - "require-directory" "^2.1.1" - "string-width" "^4.2.0" - "y18n" "^5.0.5" - "yargs-parser" "^20.2.2" - -"yargs@^17.5.1": - "integrity" "sha512-leBuCGrL4dAd6ispNOGsJlhd0uZ6Qehkbu/B9KCR+Pxa/NVdNwi+i31lo0buCm6XxhJQFshXCD0/evfV4xfoUg==" - "resolved" "https://registry.npmjs.org/yargs/-/yargs-17.6.1.tgz" - "version" "17.6.1" - dependencies: - "cliui" "^8.0.1" - "escalade" "^3.1.1" - "get-caller-file" "^2.0.5" - "require-directory" "^2.1.1" - "string-width" "^4.2.3" - "y18n" "^5.0.5" - "yargs-parser" "^21.0.0" - -"yocto-queue@^0.1.0": - "integrity" "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" - "resolved" "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" - "version" "0.1.0" +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +vlq@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz" + integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== + +vm2@^3.9.8: + version "3.9.11" + resolved "https://registry.npmjs.org/vm2/-/vm2-3.9.11.tgz" + integrity sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg== + dependencies: + acorn "^8.7.0" + acorn-walk "^8.2.0" + +w3c-hr-time@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz" + integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== + dependencies: + browser-process-hrtime "^1.0.0" + +w3c-xmlserializer@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz" + integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== + dependencies: + xml-name-validator "^3.0.0" + +walker@^1.0.7, walker@~1.0.5: + version "1.0.7" + resolved "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +web-streams-polyfill@^3.0.3: + version "3.2.1" + resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz" + integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q== + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +webidl-conversions@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz" + integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== + +webidl-conversions@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz" + integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== + +whatwg-encoding@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-fetch@^3.0.0: + version "3.6.2" + resolved "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz" + integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== + +whatwg-mimetype@^2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +whatwg-url@^8.0.0, whatwg-url@^8.5.0: + version "8.7.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz" + integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== + dependencies: + lodash "^4.7.0" + tr46 "^2.1.0" + webidl-conversions "^6.1.0" + +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which-pm-runs@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz" + integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs= + +which@^1.2.9: + version "1.3.1" + resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1, which@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +widest-line@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz" + integrity sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig== + dependencies: + string-width "^5.0.1" + +wildcard-match@5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/wildcard-match/-/wildcard-match-5.1.2.tgz" + integrity sha512-qNXwI591Z88c8bWxp+yjV60Ch4F8Riawe3iGxbzquhy8Xs9m+0+SLFBGb/0yCTIDElawtaImC37fYZ+dr32KqQ== + +windows-release@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/windows-release/-/windows-release-5.0.1.tgz" + integrity sha512-y1xFdFvdMiDXI3xiOhMbJwt1Y7dUxidha0CWPs1NgjZIjZANTcX7+7bMqNjuezhzb8s5JGEiBAbQjQQYYy7ulw== + dependencies: + execa "^5.1.1" + +word-wrap@^1.2.3, word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.0.1.tgz" + integrity sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^2.3.0: + version "2.4.3" + resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz" + integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +ws@^6.1.4: + version "6.2.2" + resolved "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz" + integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== + dependencies: + async-limiter "~1.0.0" + +ws@^7, ws@^7.4.6, ws@^7.5.1: + version "7.5.9" + resolved "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" + integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== + +xdg-basedir@^5.0.1, xdg-basedir@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz" + integrity sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ== + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== + +xregexp@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz" + integrity sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA== + +xtend@~4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +y18n@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz" + integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yaml@^1.10.0: + version "1.10.0" + resolved "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz" + integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg== + +yargs-parser@21.1.1, yargs-parser@^21.0.0: + version "21.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^20.2.2, yargs-parser@^20.2.3: + version "20.2.4" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + +yargs@^15.1.0, yargs@^15.3.1, yargs@^15.4.1: + version "15.4.1" + resolved "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" + integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + +yargs@^16.2.0: + version "16.2.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yargs@^17.5.1: + version "17.6.1" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.6.1.tgz" + integrity sha512-leBuCGrL4dAd6ispNOGsJlhd0uZ6Qehkbu/B9KCR+Pxa/NVdNwi+i31lo0buCm6XxhJQFshXCD0/evfV4xfoUg== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.0.0" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 9f55078662bbbec36f97c2862bd33cb8f0a16483 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 9 Feb 2023 10:32:17 +0100 Subject: [PATCH 093/121] [CHKT-986] Added GH actions --- fastlane/AndroidFastFile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index f76a6861d..913db472c 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -59,13 +59,6 @@ platform :android do gradle(task: "clean assembleRelease", project_dir: 'example_0_70_6/android/') - upload_to_browserstack_app_automate( - browserstack_username: ENV["BROWSERSTACK_USERNAME"], - browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"] - ) - - save_browserstack_id(browserstack_id: ENV['BROWSERSTACK_APP_ID']) - sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] pr_number = ENV['PR_NUMBER'] @@ -82,6 +75,13 @@ platform :android do timeout: 300 ) update_deployment_url(lane_context[SharedValues::APPETIZE_APP_URL]) + + upload_to_browserstack_app_automate( + browserstack_username: ENV["BROWSERSTACK_USERNAME"], + browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"] + ) + + save_browserstack_id(browserstack_id: ENV['BROWSERSTACK_APP_ID']) end From c4056e4247d7290f800cd1a8eb3b8cf0997a6f14 Mon Sep 17 00:00:00 2001 From: Semir Date: Thu, 9 Feb 2023 10:50:41 +0100 Subject: [PATCH 094/121] [CHKT-986] Added GH actions --- fastlane/AndroidFastFile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index 913db472c..6d0fabf0b 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -62,8 +62,10 @@ platform :android do sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] pr_number = ENV['PR_NUMBER'] - uri = URI('https://livedemostore.primer.io/appetize/rn-android/' + version_name) - public_key = Net::HTTP.get(uri) # => String + c = Net::HTTP.new('https://livedemostore.primer.io') + + c.read_timeout = 120 + public_key = c.request_get('/appetize/rn-android/' + version_name) # => String puts "public_key: " + public_key appetize( From a90dff22f9e69a33c473c369d8edf4cb98a1bd6b Mon Sep 17 00:00:00 2001 From: Semir Date: Fri, 10 Feb 2023 00:05:16 +0100 Subject: [PATCH 095/121] Changed fastfile --- fastlane/AndroidFastFile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index 6d0fabf0b..fac106d43 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -62,10 +62,8 @@ platform :android do sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] pr_number = ENV['PR_NUMBER'] - c = Net::HTTP.new('https://livedemostore.primer.io') - - c.read_timeout = 120 - public_key = c.request_get('/appetize/rn-android/' + version_name) # => String + uri = URI('https://livedemostore.shared.primer.io/appetize/android/' + version_name) + public_key = Net::HTTP.get(uri) # => String puts "public_key: " + public_key appetize( From 432831d91ee41a23b267f489f872b135cf966580 Mon Sep 17 00:00:00 2001 From: Semir Date: Mon, 13 Feb 2023 16:46:05 +0100 Subject: [PATCH 096/121] Fixed Appetize link generator --- fastlane/IOSFastFile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/IOSFastFile b/fastlane/IOSFastFile index c82059cc5..b5dc026bf 100644 --- a/fastlane/IOSFastFile +++ b/fastlane/IOSFastFile @@ -107,7 +107,7 @@ platform :ios do ) # Find public key of appetize - uri = URI('https://livedemostore.primer.io/appetize/ios_rn/preview_' + "#{pr_number}_#{github_run_id}_#{github_run_number}") + uri = URI('https://livedemostore.shared.primer.io/appetize/ios_rn/preview_' + "#{pr_number}_#{github_run_id}_#{github_run_number}") public_key = Net::HTTP.get(uri) puts "public_key: " + public_key From 1aa7d67e8ed7076c3100776c8a3296a5c17d7dea Mon Sep 17 00:00:00 2001 From: Semir Date: Mon, 13 Feb 2023 18:25:47 +0100 Subject: [PATCH 097/121] Fixed scripts --- .github/workflows/android-preview.yml | 10 +++++----- .github/workflows/ios-appetize.yml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-preview.yml index 92ef24ae4..23c96ee7c 100644 --- a/.github/workflows/android-preview.yml +++ b/.github/workflows/android-preview.yml @@ -56,13 +56,13 @@ jobs: id: find_comment with: issue-number: ${{ github.event.pull_request.number }} - body-includes: Appetize link + body-includes: Appetize Android link - uses: peter-evans/create-or-update-comment@v2 if: ${{ success() }} with: body: | - Appetize link: ${{ env.APPETIZE_APP_URL }} + Appetize Android link: ${{ env.APPETIZE_APP_URL }} edit-mode: replace comment-id: ${{ steps.find_comment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -143,7 +143,7 @@ jobs: - name: Create Slack Report if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} run: | - node report-script/slack-report-script.js createSlackReport 'RN Android' + node report-scripts/slack-report-script.js createSlackReport 'RN Android' - name: Post summary message to a Slack channel if: ${{ (success() || failure()) && github.event.pull_request.base.ref == 'master' }} @@ -158,7 +158,7 @@ jobs: - name: Create Slack Failed Summary Report if: ${{ failure() && github.event.pull_request.base.ref == 'master' }} run: | - node report-script/slack-failed-report-script.js createSlackFailedSummaryReport ${{ steps.slack.outputs.thread_ts }} + node report-scripts/slack-failed-report-script.js createSlackFailedSummaryReport ${{ steps.slack.outputs.thread_ts }} env: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} @@ -176,5 +176,5 @@ jobs: - name: Create and post Github summary if: ${{ success() || failure() }} run: | - node report-script/github-tests-summary-script.js createGithubSummaryReport + node report-scripts/github-tests-summary-script.js createGithubSummaryReport diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index bc3f5e788..4909aa58b 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -97,13 +97,13 @@ jobs: id: find_comment with: issue-number: ${{ github.event.pull_request.number }} - body-includes: Appetize link + body-includes: Appetize iOS link - uses: peter-evans/create-or-update-comment@v2 if: ${{ success() }} with: body: | - Appetize link: ${{ env.APPETIZE_APP_URL }} + Appetize iOS link: ${{ env.APPETIZE_APP_URL }} edit-mode: replace comment-id: ${{ steps.find_comment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} From bdf44bd5211609c7e7a6fb1bf6b971ee5a90ffb8 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 14:53:51 +0100 Subject: [PATCH 098/121] Post-merge fixes --- .github/workflows/ios-appetize.yml | 2 +- .github/workflows/ios-browserstack.yml | 2 +- .../example_0_70_6.xcodeproj/project.pbxproj | 145 ----------- example/ios/example_0_70_6/tuist-generate.sh | 2 +- example/yarn.lock | 141 ++--------- fastlane/AndroidFastFile | 8 +- fastlane/IOSFastFile | 4 +- fastlane/Matchfile | 2 +- package.json | 9 +- src/Primer.ts | 40 +-- yarn.lock | 235 +++--------------- 11 files changed, 78 insertions(+), 512 deletions(-) diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index 4909aa58b..c790523e5 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -73,7 +73,7 @@ jobs: curl -Ls https://install.tuist.io | bash fi - name: Create the Xcode project and workspace - run: sh ./example_0_70_6/ios/example_0_70_6/tuist-generate.sh is_ci + run: sh ./example/ios/example_0_70_6/tuist-generate.sh is_ci - name: Create main.jsbundle run: | diff --git a/.github/workflows/ios-browserstack.yml b/.github/workflows/ios-browserstack.yml index e7809db08..47aae20ba 100644 --- a/.github/workflows/ios-browserstack.yml +++ b/.github/workflows/ios-browserstack.yml @@ -80,7 +80,7 @@ jobs: curl -Ls https://install.tuist.io | bash fi - name: Create the Xcode project and workspace - run: sh ./example_0_70_6/ios/example_0_70_6/tuist-generate.sh is_ci + run: sh ./example/ios/example_0_70_6/tuist-generate.sh is_ci - name: Create main.jsbundle run: | diff --git a/example/ios/example_0_70_6.xcodeproj/project.pbxproj b/example/ios/example_0_70_6.xcodeproj/project.pbxproj index 5e1d7f558..7250dc506 100644 --- a/example/ios/example_0_70_6.xcodeproj/project.pbxproj +++ b/example/ios/example_0_70_6.xcodeproj/project.pbxproj @@ -7,18 +7,13 @@ objects = { /* Begin PBXBuildFile section */ - 001813F0B21556AB7401B73A /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; 00E356F31AD99517003FC87E /* example_0_70_6Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* example_0_70_6Tests.m */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj -======= 583522412DF44215A2D66F69 /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D511926AC7D73B77556070BB /* libPods-example_0_70_6-example_0_70_6Tests.a */; }; 5E1CFF2B3900DA2AE421F892 /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D7EF5D391F2A85DB3743F414 /* libPods-example_0_70_6.a */; }; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - D27CA31E8BB137CD972063E0 /* libPods-example_0_70_6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -42,17 +37,6 @@ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example_0_70_6/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example_0_70_6/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example_0_70_6/main.m; sourceTree = ""; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; - 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig"; sourceTree = ""; }; - 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; - 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; - 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example_0_70_6/LaunchScreen.storyboard; sourceTree = ""; }; - 848652F22954A52C0071549C /* example_0_70_6.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = example_0_70_6.entitlements; path = example_0_70_6/example_0_70_6.entitlements; sourceTree = ""; }; - 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6-example_0_70_6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; -======= 155DECBFDBE33C98985CF0CF /* Pods-example_0_70_6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.debug.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.debug.xcconfig"; sourceTree = ""; }; 2F7703B731D2EB23AF72C952 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example_0_70_6/LaunchScreen.storyboard; sourceTree = ""; }; @@ -61,7 +45,6 @@ D7EF5D391F2A85DB3743F414 /* libPods-example_0_70_6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example_0_70_6.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; F4D4C3C1C29D01DD19A8D500 /* Pods-example_0_70_6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example_0_70_6.release.xcconfig"; path = "Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6.release.xcconfig"; sourceTree = ""; }; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -69,11 +52,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 001813F0B21556AB7401B73A /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, -======= 583522412DF44215A2D66F69 /* libPods-example_0_70_6-example_0_70_6Tests.a in Frameworks */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); runOnlyForDeploymentPostprocessing = 0; }; @@ -81,11 +60,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - D27CA31E8BB137CD972063E0 /* libPods-example_0_70_6.a in Frameworks */, -======= 5E1CFF2B3900DA2AE421F892 /* libPods-example_0_70_6.a in Frameworks */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); runOnlyForDeploymentPostprocessing = 0; }; @@ -127,13 +102,8 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 898E5FF2D5A13398B30922D9 /* libPods-example_0_70_6.a */, - 90D676C20C01A06AF48BCF12 /* libPods-example_0_70_6-example_0_70_6Tests.a */, -======= D7EF5D391F2A85DB3743F414 /* libPods-example_0_70_6.a */, D511926AC7D73B77556070BB /* libPods-example_0_70_6-example_0_70_6Tests.a */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); name = Frameworks; sourceTree = ""; @@ -172,17 +142,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */, - 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */, - 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, - 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, -======= 155DECBFDBE33C98985CF0CF /* Pods-example_0_70_6.debug.xcconfig */, F4D4C3C1C29D01DD19A8D500 /* Pods-example_0_70_6.release.xcconfig */, 0A5E63AED671A6FAB31D4CFD /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */, 2F7703B731D2EB23AF72C952 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); path = Pods; sourceTree = ""; @@ -194,21 +157,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "example_0_70_6Tests" */; buildPhases = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 1EA858D63CC3F1CA6ED23690 /* [CP] Check Pods Manifest.lock */, - 00E356EA1AD99517003FC87E /* Sources */, - 00E356EB1AD99517003FC87E /* Frameworks */, - 00E356EC1AD99517003FC87E /* Resources */, - 49A10C4902E1968BA00016F2 /* [CP] Embed Pods Frameworks */, - DB9B11CAA4757BD5D5413D02 /* [CP] Copy Pods Resources */, -======= 2CB8DAFDB31505F54D8328AD /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, 502439844400AE499D88D0F3 /* [CP] Embed Pods Frameworks */, F6D2DEEB9FF19C84F83D0540 /* [CP] Copy Pods Resources */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); buildRules = ( ); @@ -224,23 +178,14 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example_0_70_6" */; buildPhases = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 408BFC66F745D25499117B73 /* [CP] Check Pods Manifest.lock */, -======= 7E9204ACA7F8AE639E6AE484 /* [CP] Check Pods Manifest.lock */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 3A8ECF00ADD518D5DE9C9EC9 /* [CP] Embed Pods Frameworks */, - AD75B61BCDFC19E87B8A06AD /* [CP] Copy Pods Resources */, -======= 8019D80944D38FA3C1698A5A /* [CP] Embed Pods Frameworks */, EA984F4B63B64FC078D393E5 /* [CP] Copy Pods Resources */, ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ); buildRules = ( ); @@ -323,11 +268,7 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 1EA858D63CC3F1CA6ED23690 /* [CP] Check Pods Manifest.lock */ = { -======= 2CB8DAFDB31505F54D8328AD /* [CP] Check Pods Manifest.lock */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -349,30 +290,12 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 3A8ECF00ADD518D5DE9C9EC9 /* [CP] Embed Pods Frameworks */ = { -======= 502439844400AE499D88D0F3 /* [CP] Embed Pods Frameworks */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 408BFC66F745D25499117B73 /* [CP] Check Pods Manifest.lock */ = { -======= "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Embed Pods Frameworks"; @@ -385,7 +308,6 @@ showEnvVarsInLog = 0; }; 7E9204ACA7F8AE639E6AE484 /* [CP] Check Pods Manifest.lock */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -407,30 +329,12 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - 49A10C4902E1968BA00016F2 /* [CP] Embed Pods Frameworks */ = { -======= 8019D80944D38FA3C1698A5A /* [CP] Embed Pods Frameworks */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6-example_0_70_6Tests/Pods-example_0_70_6-example_0_70_6Tests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - AD75B61BCDFC19E87B8A06AD /* [CP] Copy Pods Resources */ = { -======= "${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Embed Pods Frameworks"; @@ -443,7 +347,6 @@ showEnvVarsInLog = 0; }; EA984F4B63B64FC078D393E5 /* [CP] Copy Pods Resources */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -460,11 +363,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example_0_70_6/Pods-example_0_70_6-resources.sh\"\n"; showEnvVarsInLog = 0; }; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - DB9B11CAA4757BD5D5413D02 /* [CP] Copy Pods Resources */ = { -======= F6D2DEEB9FF19C84F83D0540 /* [CP] Copy Pods Resources */ = { ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -533,11 +432,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - baseConfigurationReference = 51769CA5BF7D9F232B3C4C6E /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; -======= baseConfigurationReference = 0A5E63AED671A6FAB31D4CFD /* Pods-example_0_70_6-example_0_70_6Tests.debug.xcconfig */; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -564,11 +459,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - baseConfigurationReference = 5639AB79F2370BD749F91445 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; -======= baseConfigurationReference = 2F7703B731D2EB23AF72C952 /* Pods-example_0_70_6-example_0_70_6Tests.release.xcconfig */; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; @@ -592,17 +483,6 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - baseConfigurationReference = 2D46138A7FB2B81EE487A2C0 /* Pods-example_0_70_6.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Manual; - CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = N8UN9TR5DY; -======= baseConfigurationReference = 155DECBFDBE33C98985CF0CF /* Pods-example_0_70_6.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; @@ -610,7 +490,6 @@ CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = N8UN9TR5DY; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj ENABLE_BITCODE = NO; INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -624,13 +503,7 @@ "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.primerapi.example.rn; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - PRODUCT_NAME = PrimerSDKExample; - PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.primerapi.example.rn"; -======= PRODUCT_NAME = example_0_70_6; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -639,17 +512,6 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - baseConfigurationReference = 5A9A4B097E49B20767EB9491 /* Pods-example_0_70_6.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Manual; - CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = N8UN9TR5DY; -======= baseConfigurationReference = F4D4C3C1C29D01DD19A8D500 /* Pods-example_0_70_6.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; @@ -657,7 +519,6 @@ CODE_SIGN_ENTITLEMENTS = example_0_70_6/example_0_70_6.entitlements; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = N8UN9TR5DY; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj INFOPLIST_FILE = example_0_70_6/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -670,13 +531,7 @@ "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.primerapi.example.rn; -<<<<<<< HEAD:example_0_70_6/ios/example_0_70_6.xcodeproj/project.pbxproj - PRODUCT_NAME = PrimerSDKExample; - PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.primerapi.example.rn"; -======= PRODUCT_NAME = example_0_70_6; ->>>>>>> origin/master:example/ios/example_0_70_6.xcodeproj/project.pbxproj SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; diff --git a/example/ios/example_0_70_6/tuist-generate.sh b/example/ios/example_0_70_6/tuist-generate.sh index 61f5b54ff..22f2a1fd3 100644 --- a/example/ios/example_0_70_6/tuist-generate.sh +++ b/example/ios/example_0_70_6/tuist-generate.sh @@ -3,7 +3,7 @@ # Generate Example App project structure # via Tuist and Project.swift schema -internal_app_path="example_0_70_6/ios/example_0_70_6" +internal_app_path="example/ios/example_0_70_6" if [[ $1 = "is_ci" ]]; then tuist generate --path "$internal_app_path" --no-open diff --git a/example/yarn.lock b/example/yarn.lock index 14e3feb1f..51a4b3adc 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1546,9 +1546,7 @@ resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-11.3.5.tgz#0dbb27759b9f6e4ca8cfcaab4fabfe349f765356" integrity sha512-o5JVCKEpPUXMX4r3p1cYjiy3FgdOEkezZcQ6owWEae2dYvV19lLYyJwnocm9Y7aG9PvpgI3PIMVh3KZbhS21eA== dependencies: - "@jridgewell/set-array" "^1.0.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" + serve-static "^1.13.1" "@react-native-community/cli-doctor@11.3.5": version "11.3.5" @@ -2228,19 +2226,6 @@ ansi-styles@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== -anymatch@^3.0.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -appdirsjs@^1.2.4: - version "1.2.7" - resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3" - integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== - anymatch@^3.0.3: version "3.1.2" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" @@ -3383,16 +3368,16 @@ deep-is@^0.1.3: resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== -deepmerge@^4.2.2, deepmerge@^4.3.0: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - deepmerge@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== +deepmerge@^4.3.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== + defaults@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" @@ -3413,11 +3398,6 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - denodeify@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" @@ -3515,13 +3495,6 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - envinfo@^7.7.2: version "7.10.0" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.10.0.tgz#55146e3909cc5fe63c22da63fb15b05aeac35b13" @@ -3970,13 +3943,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - filter-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" @@ -4265,16 +4231,6 @@ has-bigints@^1.0.1, has-bigints@^1.0.2: resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== -growly@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" - integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -4513,11 +4469,6 @@ is-finalizationregistry@^1.0.2: dependencies: call-bind "^1.0.2" -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" @@ -5295,11 +5246,6 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - leven@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" @@ -5975,14 +5921,6 @@ micromatch@^4.0.4: braces "^3.0.2" picomatch "^2.3.1" -micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" @@ -6066,16 +6004,6 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - negotiator@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" @@ -6135,11 +6063,6 @@ normalize-path@^3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -6229,15 +6152,6 @@ object.values@^1.1.6: define-properties "^1.2.0" es-abstract "^1.22.1" -object.values@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" - integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -6976,20 +6890,20 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: - version "7.5.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" - -semver@^7.2.1, semver@^7.3.2, semver@^7.3.7: +semver@^7.3.7: version "7.3.8" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== dependencies: lru-cache "^6.0.0" +semver@^7.5.3, semver@^7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + send@0.18.0: version "0.18.0" resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" @@ -7408,23 +7322,6 @@ toidentifier@1.0.1: resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== -tough-cookie@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" - integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" @@ -7564,11 +7461,6 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -7657,11 +7549,6 @@ whatwg-fetch@^3.0.0: resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.18.tgz#2f640cdee315abced7daeaed2309abd1e44e62d4" integrity sha512-ltN7j66EneWn5TFDO4L9inYC1D+Czsxlrw2SalgjMmEMkLfA5SIZxEFdE6QtHFiiM6Q7WL32c7AkI3w6yxM84Q== -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index fac106d43..eb0cccfb7 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -5,7 +5,7 @@ default_platform(:android) platform :android do def set_version_name (version_name) - path = '../example_0_70_6/android/app/build.gradle' + path = '../example/android/app/build.gradle' re = /versionName\s+\"(\S+)\"/ s = File.read(path) @@ -17,7 +17,7 @@ platform :android do end def set_version_code (version_code) - path = '../example_0_70_6/android/app/build.gradle' + path = '../example/android/app/build.gradle' re = /versionCode\s+(\d+)/ s = File.read(path) @@ -29,7 +29,7 @@ platform :android do end def get_sdk_version_name () - path = '../example_0_70_6/android/app/gradle.properties' + path = '../example/android/app/gradle.properties' re = /VERSION\_NAME=(\S+)/ s = File.read(path) @@ -67,7 +67,7 @@ platform :android do puts "public_key: " + public_key appetize( - path: "./example_0_70_6/android/app/build/outputs/apk/release/app-release.apk", + path: "./example/android/app/build/outputs/apk/release/app-release.apk", platform: "android", api_token: appetize_api_token, public_key: public_key, diff --git a/fastlane/IOSFastFile b/fastlane/IOSFastFile index b5dc026bf..1219bb332 100644 --- a/fastlane/IOSFastFile +++ b/fastlane/IOSFastFile @@ -10,8 +10,8 @@ github_run_id = ENV["GITHUB_RUN_ID"] github_run_number = ENV["GITHUB_RUN_NUMBER"] # Xcode -app_workspace = "example_0_70_6/ios/example_0_70_6.xcworkspace" -app_xcode_proj = "example_0_70_6/ios/example_0_70_6.xcodeproj" +app_workspace = "example/ios/example_0_70_6.xcworkspace" +app_xcode_proj = "example/ios/example_0_70_6.xcodeproj" app_scheme = "example_0_70_6" # Packages diff --git a/fastlane/Matchfile b/fastlane/Matchfile index 157824057..758455392 100644 --- a/fastlane/Matchfile +++ b/fastlane/Matchfile @@ -15,4 +15,4 @@ clone_branch_directly true # For all available options run `fastlane match --help` # Remove the # in the beginning of the line to enable the other options -# The docs are available on https://docs.fastlane.tools/actions/match \ No newline at end of file +# The docs are available on https://docs.fastlane.tools/actions/match diff --git a/package.json b/package.json index b05becfb9..0137a7e43 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "ios", "cpp", "primer-io-react-native.podspec", - "!lib/typescript/example_0_70_6", "!android/build", "!ios/build", "!**/__tests__", @@ -28,10 +27,10 @@ "prepare": "bob build", "release": "release-it", "example": "yarn --cwd example", - "pods": "cd example_0_70_6 && pod-install --quiet", + "pods": "cd example && pod-install --quiet", "bootstrap": "yarn example && yarn && yarn pods", - "build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./example_0_70_6/ios/main.jsbundle' --dev=true --platform='ios'", - "build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./example_0_70_6/ios/main.jsbundle' --dev=false --platform='ios'" + "build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=true --platform='ios'", + "build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'" }, "keywords": [ "react-native", @@ -81,7 +80,7 @@ "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ - "/example_0_70_6/node_modules", + "/example/node_modules", "/lib/" ] }, diff --git a/src/Primer.ts b/src/Primer.ts index c05f66fe5..962aa874c 100644 --- a/src/Primer.ts +++ b/src/Primer.ts @@ -134,52 +134,52 @@ async function configureListeners(): Promise { if (implementedRNCallbacks.onCheckoutComplete) { RNPrimer.addListener('onCheckoutComplete', data => { - if (primerSettings && primerSettings.primerCallbacks?.onCheckoutComplete) { + if (primerSettings && primerSettings.onCheckoutComplete) { const checkoutData: PrimerCheckoutData = data; - primerSettings.primerCallbacks.onCheckoutComplete(checkoutData); + primerSettings.onCheckoutComplete(checkoutData); } }); } if (implementedRNCallbacks.onBeforePaymentCreate) { RNPrimer.addListener('onBeforePaymentCreate', data => { - if (primerSettings && primerSettings.primerCallbacks?.onBeforePaymentCreate) { + if (primerSettings && primerSettings.onBeforePaymentCreate) { const checkoutPaymentMethodData: PrimerCheckoutPaymentMethodData = data; - primerSettings.primerCallbacks.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); + primerSettings.onBeforePaymentCreate(checkoutPaymentMethodData, paymentCreationHandler); } }); } if (implementedRNCallbacks.onBeforeClientSessionUpdate) { RNPrimer.addListener('onBeforeClientSessionUpdate', _ => { - if (primerSettings && primerSettings.primerCallbacks?.onBeforeClientSessionUpdate) { - primerSettings.primerCallbacks.onBeforeClientSessionUpdate(); + if (primerSettings && primerSettings.onBeforeClientSessionUpdate) { + primerSettings.onBeforeClientSessionUpdate(); } }); } if (implementedRNCallbacks.onClientSessionUpdate) { RNPrimer.addListener('onClientSessionUpdate', data => { - if (primerSettings && primerSettings.primerCallbacks?.onClientSessionUpdate) { + if (primerSettings && primerSettings.onClientSessionUpdate) { const clientSession: PrimerClientSession = data; - primerSettings.primerCallbacks.onClientSessionUpdate(clientSession); + primerSettings.onClientSessionUpdate(clientSession); } }); } if (implementedRNCallbacks.onTokenizationSuccess) { RNPrimer.addListener('onTokenizeSuccess', data => { - if (primerSettings && primerSettings.primerCallbacks?.onTokenizeSuccess) { + if (primerSettings && primerSettings.onTokenizeSuccess) { const paymentMethodTokenData: PrimerPaymentMethodTokenData = data; - primerSettings.primerCallbacks.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); + primerSettings.onTokenizeSuccess(paymentMethodTokenData, tokenizationHandler); } }); } if (implementedRNCallbacks.onCheckoutResume) { RNPrimer.addListener('onResumeSuccess', data => { - if (primerSettings && primerSettings.primerCallbacks?.onResumeSuccess && data.resumeToken) { - primerSettings.primerCallbacks.onResumeSuccess(data.resumeToken, resumeHandler); + if (primerSettings && primerSettings.onResumeSuccess && data.resumeToken) { + primerSettings.onResumeSuccess(data.resumeToken, resumeHandler); } }); } @@ -188,9 +188,9 @@ async function configureListeners(): Promise { RNPrimer.addListener( 'onResumePending', (additionalInfo) => { - if (primerSettings && primerSettings.primerCallbacks?.onResumePending) { + if (primerSettings && primerSettings.onResumePending) { const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.primerCallbacks.onResumePending(checkoutAdditionalInfo); + primerSettings.onResumePending(checkoutAdditionalInfo); } else { // Ignore! } @@ -202,9 +202,9 @@ async function configureListeners(): Promise { RNPrimer.addListener( 'onCheckoutReceivedAdditionalInfo', (additionalInfo) => { - if (primerSettings && primerSettings.primerCallbacks?.onCheckoutReceivedAdditionalInfo) { + if (primerSettings && primerSettings.onCheckoutReceivedAdditionalInfo) { const checkoutAdditionalInfo: PrimerCheckoutAdditionalInfo = additionalInfo; - primerSettings.primerCallbacks.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); + primerSettings.onCheckoutReceivedAdditionalInfo(checkoutAdditionalInfo); } else { // Ignore! } @@ -214,15 +214,15 @@ async function configureListeners(): Promise { if (implementedRNCallbacks.onDismiss) { RNPrimer.addListener('onDismiss', _ => { - if (primerSettings && primerSettings.primerCallbacks?.onDismiss) { - primerSettings.primerCallbacks.onDismiss(); + if (primerSettings && primerSettings.onDismiss) { + primerSettings.onDismiss(); } }); } if (implementedRNCallbacks.onError) { RNPrimer.addListener('onError', data => { - if (data && data.error && data.error.errorId && primerSettings && primerSettings.primerCallbacks?.onError) { + if (data && data.error && data.error.errorId && primerSettings && primerSettings.onError) { const errorId: string = data.error.errorId; const description: string | undefined = data.error.description; const recoverySuggestion: string | undefined = data.error.recoverySuggestion; @@ -304,4 +304,4 @@ export const Primer: IPrimer = { RNPrimer.removeAllListeners(); RNPrimer.dismiss(); }, -}; +}; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index b22aa4fc9..d6486fea9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -796,7 +796,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-async-to-generator@^7.0.0", "@babel/plugin-transform-async-to-generator@^7.18.6": +"@babel/plugin-transform-async-to-generator@^7.18.6": version "7.18.6" resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz" integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== @@ -2073,7 +2073,7 @@ resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-11.3.5.tgz#0dbb27759b9f6e4ca8cfcaab4fabfe349f765356" integrity sha512-o5JVCKEpPUXMX4r3p1cYjiy3FgdOEkezZcQ6owWEae2dYvV19lLYyJwnocm9Y7aG9PvpgI3PIMVh3KZbhS21eA== dependencies: - "@octokit/openapi-types" "^14.0.0" + serve-static "^1.13.1" "@react-native-community/cli-doctor@11.3.5": version "11.3.5" @@ -2210,117 +2210,6 @@ prompts "^2.4.0" semver "^6.3.0" -"@react-native-community/cli-hermes@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-9.2.1.tgz" - integrity sha512-723/NMb7egXzJrbWT1uEkN2hOpw+OOtWTG2zKJ3j7KKgUd8u/pP+/z5jO8xVrq+eYJEMjDK0FBEo1Xj7maR4Sw== - dependencies: - "@react-native-community/cli-platform-android" "^9.2.1" - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - hermes-profile-transformer "^0.0.6" - ip "^1.1.5" - -"@react-native-community/cli-platform-android@9.2.1", "@react-native-community/cli-platform-android@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz" - integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - fs-extra "^8.1.0" - glob "^7.1.3" - logkitty "^0.7.1" - slash "^3.0.0" - -"@react-native-community/cli-platform-ios@9.2.1", "@react-native-community/cli-platform-ios@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz" - integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg== - dependencies: - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - execa "^1.0.0" - glob "^7.1.3" - ora "^5.4.1" - -"@react-native-community/cli-plugin-metro@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-9.2.1.tgz" - integrity sha512-byBGBH6jDfUvcHGFA45W/sDwMlliv7flJ8Ns9foCh3VsIeYYPoDjjK7SawE9cPqRdMAD4SY7EVwqJnOtRbwLiQ== - dependencies: - "@react-native-community/cli-server-api" "^9.2.1" - "@react-native-community/cli-tools" "^9.2.1" - chalk "^4.1.2" - metro "0.72.3" - metro-config "0.72.3" - metro-core "0.72.3" - metro-react-native-babel-transformer "0.72.3" - metro-resolver "0.72.3" - metro-runtime "0.72.3" - readline "^1.3.0" - -"@react-native-community/cli-server-api@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-9.2.1.tgz" - integrity sha512-EI+9MUxEbWBQhWw2PkhejXfkcRqPl+58+whlXJvKHiiUd7oVbewFs0uLW0yZffUutt4FGx6Uh88JWEgwOzAdkw== - dependencies: - "@react-native-community/cli-debugger-ui" "^9.0.0" - "@react-native-community/cli-tools" "^9.2.1" - compression "^1.7.1" - connect "^3.6.5" - errorhandler "^1.5.0" - nocache "^3.0.1" - pretty-format "^26.6.2" - serve-static "^1.13.1" - ws "^7.5.1" - -"@react-native-community/cli-tools@^9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-9.2.1.tgz" - integrity sha512-bHmL/wrKmBphz25eMtoJQgwwmeCylbPxqFJnFSbkqJPXQz3ManQ6q/gVVMqFyz7D3v+riaus/VXz3sEDa97uiQ== - dependencies: - appdirsjs "^1.2.4" - chalk "^4.1.2" - find-up "^5.0.0" - mime "^2.4.1" - node-fetch "^2.6.0" - open "^6.2.0" - ora "^5.4.1" - semver "^6.3.0" - shell-quote "^1.7.3" - -"@react-native-community/cli-types@^9.1.0": - version "9.1.0" - resolved "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-9.1.0.tgz" - integrity sha512-KDybF9XHvafLEILsbiKwz5Iobd+gxRaPyn4zSaAerBxedug4er5VUWa8Szy+2GeYKZzMh/gsb1o9lCToUwdT/g== - dependencies: - joi "^17.2.1" - -"@react-native-community/cli@9.2.1": - version "9.2.1" - resolved "https://registry.npmjs.org/@react-native-community/cli/-/cli-9.2.1.tgz" - integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ== - dependencies: - "@react-native-community/cli-clean" "^9.2.1" - "@react-native-community/cli-config" "^9.2.1" - "@react-native-community/cli-debugger-ui" "^9.0.0" - "@react-native-community/cli-doctor" "^9.2.1" - "@react-native-community/cli-hermes" "^9.2.1" - "@react-native-community/cli-plugin-metro" "^9.2.1" - "@react-native-community/cli-server-api" "^9.2.1" - "@react-native-community/cli-tools" "^9.2.1" - "@react-native-community/cli-types" "^9.1.0" - chalk "^4.1.2" - commander "^9.4.0" - execa "^1.0.0" - find-up "^4.1.0" - fs-extra "^8.1.0" - graceful-fs "^4.1.3" - prompts "^2.4.0" - semver "^6.3.0" - "@react-native-community/eslint-config@^2.0.0": version "2.0.0" resolved "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz" @@ -3006,11 +2895,6 @@ async-limiter@~1.0.0: resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== -async-limiter@~1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" - integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== - async-retry@1.3.3: version "1.3.3" resolved "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz" @@ -4452,10 +4336,10 @@ escape-string-regexp@^2.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escape-string-regexp@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== escape-string-regexp@^5.0.0: version "5.0.0" @@ -4755,14 +4639,14 @@ execa@^5.0.0, execa@^5.1.1: integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: cross-spawn "^7.0.3" - get-stream "^6.0.1" - human-signals "^3.0.1" - is-stream "^3.0.0" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" merge-stream "^2.0.0" - npm-run-path "^5.1.0" - onetime "^6.0.0" - signal-exit "^3.0.7" - strip-final-newline "^3.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" exit@^0.1.2: version "0.1.2" @@ -4900,18 +4784,10 @@ figures@^5.0.0: escape-string-regexp "^5.0.0" is-unicode-supported "^1.2.0" -figures@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz" - integrity sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg== - dependencies: - escape-string-regexp "^5.0.0" - is-unicode-supported "^1.2.0" - -file-entry-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.0.tgz" - integrity sha512-fqoO76jZ3ZnYrXLDRxBR1YvOvc0k844kcOg40bgsPrE25LAb/PDqTY+ho64Xh2c8ZXgIKldchCFHczG2UVRcWA== +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: flat-cache "^3.0.4" @@ -5080,15 +4956,6 @@ fs-extra@^10.1.0: jsonfile "^6.0.1" universalify "^2.0.0" -fs-extra@^10.1.0: - version "10.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - fs-extra@^8.1.0: version "8.1.0" resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" @@ -5214,7 +5081,7 @@ get-stream@^5.0.0: dependencies: pump "^3.0.0" -get-stream@^6.0.0, get-stream@^6.0.1: +get-stream@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== @@ -5354,7 +5221,7 @@ globals@^13.19.0: resolved "https://registry.yarnpkg.com/globals/-/globals-13.21.0.tgz#163aae12f34ef502f5153cfbdd3600f36c63c571" integrity sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg== dependencies: - type-fest "^0.8.1" + type-fest "^0.20.2" globby@13.1.2: version "13.1.2" @@ -5601,11 +5468,6 @@ human-signals@^1.1.1: resolved "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz" integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - human-signals@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz" @@ -6598,14 +6460,6 @@ jest-serializer@^26.6.2: "@types/node" "*" graceful-fs "^4.2.4" -jest-serializer@^27.0.6: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - jest-snapshot@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz" @@ -6664,7 +6518,7 @@ jest-util@^29.6.3: graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-validate@^26.5.2, jest-validate@^26.6.2: +jest-validate@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz" integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== @@ -7040,20 +6894,10 @@ lodash.ismatch@^4.4.0: resolved "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz" integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc= -lodash.template@^4.0.2: - version "4.5.0" - resolved "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" - -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== lodash.template@^4.0.2: version "4.5.0" @@ -7783,7 +7627,7 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" -npm-run-path@^4.0.0, npm-run-path@^4.0.1: +npm-run-path@^4.0.0: version "4.0.1" resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== @@ -7916,7 +7760,7 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.0, onetime@^5.1.2: +onetime@^5.1.0: version "5.1.2" resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== @@ -8387,7 +8231,7 @@ prop-types@*: dependencies: loose-envify "^1.4.0" object-assign "^4.1.1" - react-is "^16.8.1" + react-is "^16.13.1" prop-types@^15.7.2: version "15.7.2" @@ -8522,7 +8366,7 @@ react-devtools-core@^4.27.2: resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz" integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA== -react-is@^16.13.1, react-is@^16.8.1: +react-is@^16.8.1: version "16.13.1" resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== @@ -8965,13 +8809,6 @@ rimraf@~2.6.2: dependencies: glob "^7.1.3" -rimraf@~2.6.2: - version "2.6.3" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - rsvp@^4.8.4: version "4.8.5" resolved "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz" @@ -9227,7 +9064,7 @@ side-channel@^1.0.3, side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -9664,13 +9501,6 @@ temp@^0.8.4: dependencies: rimraf "~2.6.2" -temp@^0.8.4: - version "0.8.4" - resolved "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz" - integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg== - dependencies: - rimraf "~2.6.2" - terminal-link@^2.0.0: version "2.1.1" resolved "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz" @@ -9865,11 +9695,6 @@ type-fest@^0.18.0: resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz" integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - type-fest@^0.6.0: version "0.6.0" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" @@ -10421,7 +10246,7 @@ yargs-parser@^20.2.2, yargs-parser@^20.2.3: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== -yargs@^15.1.0, yargs@^15.3.1, yargs@^15.4.1: +yargs@^15.1.0, yargs@^15.4.1: version "15.4.1" resolved "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== From e2a38ff7cf03422626d47717ebb2adc8190612f8 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 14:57:38 +0100 Subject: [PATCH 099/121] Update iOS project environment --- example/ios/.xcode.env | 1 + example/ios/Podfile.lock | 29 +++++++++++------------------ 2 files changed, 12 insertions(+), 18 deletions(-) create mode 100644 example/ios/.xcode.env diff --git a/example/ios/.xcode.env b/example/ios/.xcode.env new file mode 100644 index 000000000..772b339b4 --- /dev/null +++ b/example/ios/.xcode.env @@ -0,0 +1 @@ +export NODE_BINARY=$(command -v node) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index fc4a99968..6c88265f0 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -295,13 +295,9 @@ PODS: - React-jsinspector (0.72.3) - React-logger (0.72.3): - glog - - react-native-safe-area-context (4.4.1): - - RCT-Folly - - RCTRequired - - RCTTypeSafety + - react-native-safe-area-context (4.7.2): - React-Core - - ReactCommon/turbomodule/core - - react-native-segmented-control (2.4.0): + - react-native-segmented-control (2.4.2): - React-Core - React-NativeModulesApple (0.72.3): - React-callinvoker @@ -408,11 +404,11 @@ PODS: - React-jsi (= 0.72.3) - React-logger (= 0.72.3) - React-perflogger (= 0.72.3) - - RNCMaskedView (0.2.8): + - RNCMaskedView (0.2.9): - React-Core - - RNCPicker (2.4.8): + - RNCPicker (2.5.0): - React-Core - - RNScreens (3.18.2): + - RNScreens (3.25.0): - React-Core - React-RCTImage - SocketRocket (0.6.1) @@ -432,7 +428,6 @@ DEPENDENCIES: - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - React (from `../node_modules/react-native/`) - - React-bridging (from `../node_modules/react-native/ReactCommon`) - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) - React-Codegen (from `build/generated/ios`) - React-Core (from `../node_modules/react-native/`) @@ -500,8 +495,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/Libraries/TypeSafety" React: :path: "../node_modules/react-native/" - React-bridging: - :path: "../node_modules/react-native/ReactCommon" React-callinvoker: :path: "../node_modules/react-native/ReactCommon/callinvoker" React-Codegen: @@ -599,8 +592,8 @@ SPEC CHECKSUMS: React-jsiexecutor: 2c15ba1bace70177492368d5180b564f165870fd React-jsinspector: b511447170f561157547bc0bef3f169663860be7 React-logger: c5b527272d5f22eaa09bb3c3a690fee8f237ae95 - react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a - react-native-segmented-control: 06607462630512ff8eef652ec560e6235a30cc3e + react-native-safe-area-context: 7aa8e6d9d0f3100a820efb1a98af68aa747f9284 + react-native-segmented-control: 2221962f5073e2e809aa3691e8e410fc10b60578 React-NativeModulesApple: bfbb84f3e6a1b919791b57303524de557ba45fef React-perflogger: 6bd153e776e6beed54c56b0847e1220a3ff92ba5 React-RCTActionSheet: c0b62af44e610e69d9a2049a682f5dba4e9dff17 @@ -618,12 +611,12 @@ SPEC CHECKSUMS: React-runtimescheduler: af0b24628c1d543a3f87251c9efa29c5a589e08a React-utils: bcb57da67eec2711f8b353f6e3d33bd8e4b2efa3 ReactCommon: d7d63a5b3c3ff29304a58fc8eb3b4f1b077cd789 - RNCMaskedView: bc0170f389056201c82a55e242e5d90070e18e5a - RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 - RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d + RNCMaskedView: 949696f25ec596bfc697fc88e6f95cf0c79669b6 + RNCPicker: 32ca102146bc7d34a8b93a998d9938d9f9ec7898 + RNScreens: 85d3880b52d34db7b8eeebe2f1a0e807c05e69fa SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Yoga: 8796b55dba14d7004f980b54bcc9833ee45b28ce PODFILE CHECKSUM: 63faa5f0b9a04529eaa5fa50631f43ef5873de1b -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.1 From 93f64c46acdc12ad31296c27a80b08ba972eceae Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:04:05 +0100 Subject: [PATCH 100/121] Add iOS appetize lane to fastlane --- fastlane/Fastfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 5dd957163..852899260 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,15 +1,15 @@ -import "AndroidFastFile" -import "IOSFastFile" - platform :ios do - + import "IOSFastFile" + desc 'Upload the React Native Android build to Appetize' + lane :upload_build_to_appetize do + appetize_build_and_upload + end end platform :android do - + import "AndroidFastFile" desc 'Upload the React Native Android build to Appetize' lane :upload_build_to_appetize do preview end - end From 312c82d79471e839c120ac2114d4fb07c08bee12 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:04:43 +0100 Subject: [PATCH 101/121] Update ios workflow --- .github/workflows/ios-appetize.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index c790523e5..c6f978df7 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -80,7 +80,7 @@ jobs: npm run build:ios:dev - name: Distribute the React Native iOS app on Appetize ๐Ÿš€ run: | - bundle exec fastlane ios appetize_build_and_upload + bundle exec fastlane ios upload_build_to_appetize env: MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }} From 5743e2a0be2187333dac92c1d99b1c16ff605940 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:20:47 +0100 Subject: [PATCH 102/121] Update workflows with correct ruby + node versions + fixes --- .github/workflows/android-preview.yml | 20 ++++++++++++++------ .github/workflows/ios-appetize.yml | 23 ++++++++++++++++++++--- .github/workflows/ios-browserstack.yml | 23 +++++++++++++++++++---- 3 files changed, 53 insertions(+), 13 deletions(-) diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-preview.yml index 23c96ee7c..69e74328c 100644 --- a/.github/workflows/android-preview.yml +++ b/.github/workflows/android-preview.yml @@ -24,11 +24,17 @@ jobs: with: ruby-version: '2.6' - - name: Install npm + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Set legacy-peer-deps for npm config run: | npm config set legacy-peer-deps true install - - run: npm install --save slack-message-builder + - name: Add slack message builder + run: | + yarn add slack-message-builder - name: Install packages run: | @@ -122,11 +128,13 @@ jobs: with: ruby-version: '2.6' - - name: Install npm - run: | - npm config set legacy-peer-deps true install + - uses: actions/setup-node@v3 + with: + node-version: 18 - - run: npm install --save slack-message-builder + - name: Add slack message builder + run: | + yarn add slack-message-builder - name: Install packages run: | diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index c6f978df7..3b01d782c 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -11,26 +11,43 @@ jobs: uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} + - name: Git Checkout uses: actions/checkout@v3 + - name: Select Xcode Version uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable + - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_KEY }} name: id_rsa_github_actions known_hosts: unnecessary + - uses: webfactory/ssh-agent@v0.7.0 with: ssh-private-key: ${{ secrets.SSH_KEY }} + - uses: ruby/setup-ruby@v1 with: ruby-version: "2.6" bundler-cache: true + - uses: actions/setup-ruby@v1 + with: + ruby-version: '2.6' + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Add slack message builder + run: | + yarn add slack-message-builder + - name: Get npm cache directory id: npm-cache-dir run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} @@ -43,16 +60,16 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - name: Install npm + + - name: Set legacy-peer-deps for npm config run: | npm config set legacy-peer-deps true install + - name: Set up Node.js uses: actions/setup-node@v3 with: cache: 'yarn' - - run: npm install --save slack-message-builder - - name: Cache pods uses: actions/cache@v3 with: diff --git a/.github/workflows/ios-browserstack.yml b/.github/workflows/ios-browserstack.yml index 47aae20ba..c5f9741a9 100644 --- a/.github/workflows/ios-browserstack.yml +++ b/.github/workflows/ios-browserstack.yml @@ -12,28 +12,45 @@ jobs: uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} + - name: Git - Checkout uses: actions/checkout@v3 with: ref: ${{ github.ref }} + - name: Select Xcode Version uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable + - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_KEY }} name: id_rsa_github_actions known_hosts: unnecessary + - uses: webfactory/ssh-agent@v0.7.0 with: ssh-private-key: ${{ secrets.SSH_KEY }} + - uses: ruby/setup-ruby@v1 with: ruby-version: "2.6" bundler-cache: true + - uses: actions/setup-ruby@v1 + with: + ruby-version: '2.6' + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Add slack message builder + run: | + yarn add slack-message-builder + - name: Get npm cache directory id: npm-cache-dir run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} @@ -46,8 +63,8 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - - name: Install npm + + - name: Set legacy-peer-deps for npm config run: | npm config set legacy-peer-deps true install @@ -56,8 +73,6 @@ jobs: with: cache: 'yarn' - - run: npm install --save slack-message-builder - - name: Cache pods uses: actions/cache@v3 with: From e816741bd92c6d611117c9bcb5579e187e212c18 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:27:14 +0100 Subject: [PATCH 103/121] Correct npm config setting in workflows --- .github/workflows/android-preview.yml | 2 +- .github/workflows/ios-appetize.yml | 9 ++------- .github/workflows/ios-browserstack.yml | 11 ++++------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-preview.yml index 69e74328c..c4af24045 100644 --- a/.github/workflows/android-preview.yml +++ b/.github/workflows/android-preview.yml @@ -30,7 +30,7 @@ jobs: - name: Set legacy-peer-deps for npm config run: | - npm config set legacy-peer-deps true install + npm config set legacy-peer-deps true - name: Add slack message builder run: | diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index 3b01d782c..3afcaa35e 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -43,7 +43,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - + cache: 'yarn' - name: Add slack message builder run: | yarn add slack-message-builder @@ -63,12 +63,7 @@ jobs: - name: Set legacy-peer-deps for npm config run: | - npm config set legacy-peer-deps true install - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - cache: 'yarn' + npm config set legacy-peer-deps true - name: Cache pods uses: actions/cache@v3 diff --git a/.github/workflows/ios-browserstack.yml b/.github/workflows/ios-browserstack.yml index c5f9741a9..701226ef2 100644 --- a/.github/workflows/ios-browserstack.yml +++ b/.github/workflows/ios-browserstack.yml @@ -46,6 +46,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 + cache: 'yarn' - name: Add slack message builder run: | @@ -66,12 +67,7 @@ jobs: - name: Set legacy-peer-deps for npm config run: | - npm config set legacy-peer-deps true install - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - cache: 'yarn' + npm config set legacy-peer-deps true - name: Cache pods uses: actions/cache@v3 @@ -140,10 +136,11 @@ jobs: with: name: browserstack_id path: /var/tmp + - name: Setup node uses: actions/setup-node@v1 with: - node-version: 18.3.0 + node-version: 18 - name: npm Install run: npm install From 5472f9cb8d7b95466768d0efcdf64e3baa343053 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:32:02 +0100 Subject: [PATCH 104/121] resolve conflicting lane names --- .github/workflows/android-preview.yml | 2 +- .github/workflows/ios-appetize.yml | 2 +- fastlane/Fastfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-preview.yml index c4af24045..386b09eb6 100644 --- a/.github/workflows/android-preview.yml +++ b/.github/workflows/android-preview.yml @@ -41,7 +41,7 @@ jobs: yarn - name: Distribute the React Native Android app on Appetize and upload to BrowserStack ๐Ÿš€ - run: bundle exec fastlane android preview + run: bundle exec fastlane android upload_build_to_appetize_android env: PR_NUMBER: ${{ github.event.pull_request.number }} SOURCE_BRANCH: ${{ github.head_ref }} diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-appetize.yml index 3afcaa35e..157e91be9 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-appetize.yml @@ -92,7 +92,7 @@ jobs: npm run build:ios:dev - name: Distribute the React Native iOS app on Appetize ๐Ÿš€ run: | - bundle exec fastlane ios upload_build_to_appetize + bundle exec fastlane ios upload_build_to_appetize_ios env: MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 852899260..5f2829410 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,7 +1,7 @@ platform :ios do import "IOSFastFile" desc 'Upload the React Native Android build to Appetize' - lane :upload_build_to_appetize do + lane :upload_build_to_appetize_ios do appetize_build_and_upload end end @@ -9,7 +9,7 @@ end platform :android do import "AndroidFastFile" desc 'Upload the React Native Android build to Appetize' - lane :upload_build_to_appetize do + lane :upload_build_to_appetize_android do preview end end From 845cc196adc68e3b9c1a8c76af5a40b745304582 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:49:30 +0100 Subject: [PATCH 105/121] Fix package.json build scripts to target correct dir for building from metro config + update workflows and fastlane --- ...w.yml => android-build-and-distribute.yml} | 2 +- .github/workflows/ios-browserstack.yml | 2 +- ...etize.yml => ios-build-and-distribute.yml} | 5 +- .github/workflows/ios-preview.yml | 52 ------------------- fastlane/AndroidFastFile | 2 +- fastlane/Fastfile | 17 +----- package.json | 4 +- 7 files changed, 9 insertions(+), 75 deletions(-) rename .github/workflows/{android-preview.yml => android-build-and-distribute.yml} (98%) rename .github/workflows/{ios-appetize.yml => ios-build-and-distribute.yml} (98%) delete mode 100644 .github/workflows/ios-preview.yml diff --git a/.github/workflows/android-preview.yml b/.github/workflows/android-build-and-distribute.yml similarity index 98% rename from .github/workflows/android-preview.yml rename to .github/workflows/android-build-and-distribute.yml index 386b09eb6..2a1ad1a83 100644 --- a/.github/workflows/android-preview.yml +++ b/.github/workflows/android-build-and-distribute.yml @@ -41,7 +41,7 @@ jobs: yarn - name: Distribute the React Native Android app on Appetize and upload to BrowserStack ๐Ÿš€ - run: bundle exec fastlane android upload_build_to_appetize_android + run: bundle exec fastlane android appetize_build_and_upload env: PR_NUMBER: ${{ github.event.pull_request.number }} SOURCE_BRANCH: ${{ github.head_ref }} diff --git a/.github/workflows/ios-browserstack.yml b/.github/workflows/ios-browserstack.yml index 701226ef2..18e4f8a72 100644 --- a/.github/workflows/ios-browserstack.yml +++ b/.github/workflows/ios-browserstack.yml @@ -95,7 +95,7 @@ jobs: - name: Create main.jsbundle run: | - npm run build:ios:release + yarn --cwd example build:ios - name: Build and upload to Browserstack ๐Ÿš€ run: | diff --git a/.github/workflows/ios-appetize.yml b/.github/workflows/ios-build-and-distribute.yml similarity index 98% rename from .github/workflows/ios-appetize.yml rename to .github/workflows/ios-build-and-distribute.yml index 157e91be9..e38c08267 100644 --- a/.github/workflows/ios-appetize.yml +++ b/.github/workflows/ios-build-and-distribute.yml @@ -89,10 +89,11 @@ jobs: - name: Create main.jsbundle run: | - npm run build:ios:dev + yarn --cwd example build:ios + - name: Distribute the React Native iOS app on Appetize ๐Ÿš€ run: | - bundle exec fastlane ios upload_build_to_appetize_ios + bundle exec fastlane ios appetize_build_and_upload env: MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }} diff --git a/.github/workflows/ios-preview.yml b/.github/workflows/ios-preview.yml deleted file mode 100644 index fcde47e5a..000000000 --- a/.github/workflows/ios-preview.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Preview - -on: pull_request - -jobs: - distribute-ios: - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - - name: Select Xcode Version - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable - - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_KEY }} - name: id_rsa_github_actions - known_hosts: unnecessary - - uses: webfactory/ssh-agent@v0.7.0 - with: - ssh-private-key: ${{ secrets.SSH_KEY }} - - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "2.6" - bundler-cache: true - - - uses: actions/setup-ruby@v1 - with: - ruby-version: '2.6' - - - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Install packages - run: | - yarn - - - name: Preview app on Appetize ๐Ÿš€ - run: bundle exec fastlane ios preview - env: - PR_NUMBER: ${{ github.event.pull_request.number }} - SOURCE_BRANCH: ${{ github.head_ref }} - APPETIZE_API_TOKEN: ${{ secrets.APPETIZE_API_TOKEN }} - MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }} - MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} - MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index eb0cccfb7..bc9e95b3f 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -36,7 +36,7 @@ platform :android do return s[re, 1] end - lane :preview do + lane :appetize_build_and_upload do pr_number = ENV["PR_NUMBER"] if(!pr_number) then puts "NO PR NUMBER" diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 5f2829410..22c682c2e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,15 +1,2 @@ -platform :ios do - import "IOSFastFile" - desc 'Upload the React Native Android build to Appetize' - lane :upload_build_to_appetize_ios do - appetize_build_and_upload - end -end - -platform :android do - import "AndroidFastFile" - desc 'Upload the React Native Android build to Appetize' - lane :upload_build_to_appetize_android do - preview - end -end +import "IOSFastFile" +import "AndroidFastFile" \ No newline at end of file diff --git a/package.json b/package.json index 0137a7e43..891b8070a 100644 --- a/package.json +++ b/package.json @@ -28,9 +28,7 @@ "release": "release-it", "example": "yarn --cwd example", "pods": "cd example && pod-install --quiet", - "bootstrap": "yarn example && yarn && yarn pods", - "build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=true --platform='ios'", - "build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'" + "bootstrap": "yarn example && yarn && yarn pods" }, "keywords": [ "react-native", From 241a2d0ac5b7e27ce963fb960e9cf3e93ff85900 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 15:53:22 +0100 Subject: [PATCH 106/121] Fix gradle path in fastfile --- fastlane/AndroidFastFile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/AndroidFastFile b/fastlane/AndroidFastFile index bc9e95b3f..bb7af1023 100644 --- a/fastlane/AndroidFastFile +++ b/fastlane/AndroidFastFile @@ -57,7 +57,7 @@ platform :android do set_version_name version_name set_version_code version_code - gradle(task: "clean assembleRelease", project_dir: 'example_0_70_6/android/') + gradle(task: "clean assembleRelease", project_dir: 'example/android/') sdk_version_name_source_branch = ENV['SOURCE_BRANCH'] pr_number = ENV['PR_NUMBER'] From c12268c209c1db744aeef48b07c2e6cfdb0f4051 Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 16:02:10 +0100 Subject: [PATCH 107/121] Align workflow names for platforms --- .github/workflows/android-build-and-distribute.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-build-and-distribute.yml b/.github/workflows/android-build-and-distribute.yml index 2a1ad1a83..96b125af0 100644 --- a/.github/workflows/android-build-and-distribute.yml +++ b/.github/workflows/android-build-and-distribute.yml @@ -1,4 +1,4 @@ -name: Android Preview +name: Android Appetize on: pull_request From 2a34a36e0ba9d0e711152a169e906ec92bff0aaf Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Tue, 12 Sep 2023 16:14:55 +0100 Subject: [PATCH 108/121] Add destination to build for browserstack --- example/ios/Podfile.lock | 2 +- example/ios/main.jsbundle | 286772 ++++++++++++++++++++++++++--------- fastlane/IOSFastFile | 1 + 3 files changed, 217528 insertions(+), 69247 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 6c88265f0..e84ed1dcf 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -619,4 +619,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 63faa5f0b9a04529eaa5fa50631f43ef5873de1b -COCOAPODS: 1.12.1 +COCOAPODS: 1.11.3 diff --git a/example/ios/main.jsbundle b/example/ios/main.jsbundle index 934fa62b6..df12f4d98 100644 --- a/example/ios/main.jsbundle +++ b/example/ios/main.jsbundle @@ -1,13 +1,31 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=true,process=this.process||{},__METRO_GLOBAL_PREFIX__='',__requireCycleIgnorePatterns=[/(^|\/|\\)node_modules($|\/|\\)/];process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"development"; (function (global) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + * @oncall react_native + * @polyfill + */ + "use strict"; + /* eslint-disable no-bitwise */ + // A simpler $ArrayLike. Not iterable and doesn't have a `length`. + // This is compatible with actual arrays as well as with objects that look like + // {0: 'value', 1: '...'} global.__r = metroRequire; - global[__METRO_GLOBAL_PREFIX__ + "__d"] = define; + global[`${__METRO_GLOBAL_PREFIX__}__d`] = define; global.__c = clear; global.__registerSegment = registerSegment; var modules = clear(); + // Don't use a Symbol here, it would pull in an extra polyfill with all sorts of + // additional stuff (e.g. Array.from). var EMPTY = {}; var CYCLE_DETECTED = {}; var _ref = {}, @@ -23,6 +41,9 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. function clear() { modules = Object.create(null); + // We return modules here so that we can assign an initial value to modules + // when defining it. Otherwise, we would have to do "let modules = null", + // which will force us to add "nullthrows" everywhere. return modules; } if (__DEV__) { @@ -32,13 +53,19 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. function define(factory, moduleId, dependencyMap) { if (modules[moduleId] != null) { if (__DEV__) { + // (We take `inverseDependencies` from `arguments` to avoid an unused + // named parameter in `define` in production. var inverseDependencies = arguments[4]; + // If the module has already been defined and the define method has been + // called with inverseDependencies, we can hot reload it. if (inverseDependencies) { global.__accept(moduleId, factory, dependencyMap, inverseDependencies); } } + // prevent repeated calls to `global.nativeRequire` to overwrite modules + // that are already loaded return; } var mod = { @@ -54,8 +81,12 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }; modules[moduleId] = mod; if (__DEV__) { + // HMR mod.hot = createHotReloadingObject(); + // DEBUGGABLE MODULES NAMES + // we take `verboseName` from `arguments` to avoid an unused named parameter + // in `define` in production. var verboseName = arguments[3]; if (verboseName) { mod.verboseName = verboseName; @@ -68,12 +99,13 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var verboseName = moduleId; moduleId = verboseNamesToModuleIds[verboseName]; if (moduleId == null) { - throw new Error("Unknown named module: \"" + verboseName + "\""); + throw new Error(`Unknown named module: "${verboseName}"`); } else { - console.warn("Requiring module \"" + verboseName + "\" by name is only supported for " + "debugging purposes and will BREAK IN PRODUCTION!"); + console.warn(`Requiring module "${verboseName}" by name is only supported for ` + "debugging purposes and will BREAK IN PRODUCTION!"); } } + //$FlowFixMe: at this point we know that moduleId is a number var moduleIdReallyIsNumber = moduleId; if (__DEV__) { var initializingIndex = initializingModuleIds.indexOf(moduleIdReallyIsNumber); @@ -82,9 +114,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. return modules[id] ? modules[id].verboseName : "[unknown]"; }); if (shouldPrintRequireCycle(cycle)) { - cycle.push(cycle[0]); - - console.warn("Require cycle: " + cycle.join(" -> ") + "\n\n" + "Require cycles are allowed, but can result in uninitialized values. " + "Consider refactoring to remove the need for a cycle."); + cycle.push(cycle[0]); // We want to print A -> B -> A: + console.warn(`Require cycle: ${cycle.join(" -> ")}\n\n` + "Require cycles are allowed, but can result in uninitialized values. " + "Consider refactoring to remove the need for a cycle."); } } } @@ -92,6 +123,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. return module && module.isInitialized ? module.publicModule.exports : guardedLoadModule(moduleIdReallyIsNumber, module); } + // We print require cycles unless they match a pattern in the + // `requireCycleIgnorePatterns` configuration. function shouldPrintRequireCycle(modules) { var regExps = global[__METRO_GLOBAL_PREFIX__ + "__requireCycleIgnorePatterns"]; if (!Array.isArray(regExps)) { @@ -103,6 +136,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }); }; + // Print the cycle unless any part of it is ignored return modules.every(function (module) { return !isIgnored(module); }); @@ -113,6 +147,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. moduleId = verboseNamesToModuleIds[verboseName]; } + //$FlowFixMe: at this point we know that moduleId is a number var moduleIdReallyIsNumber = moduleId; if (modules[moduleIdReallyIsNumber] && modules[moduleIdReallyIsNumber].importedDefault !== EMPTY) { return modules[moduleIdReallyIsNumber].importedDefault; @@ -120,6 +155,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var exports = metroRequire(moduleIdReallyIsNumber); var importedDefault = exports && exports.__esModule ? exports.default : exports; + // $FlowFixMe The metroRequire call above will throw if modules[id] is null return modules[moduleIdReallyIsNumber].importedDefault = importedDefault; } metroRequire.importDefault = metroImportDefault; @@ -129,6 +165,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. moduleId = verboseNamesToModuleIds[verboseName]; } + //$FlowFixMe: at this point we know that moduleId is a number var moduleIdReallyIsNumber = moduleId; if (modules[moduleIdReallyIsNumber] && modules[moduleIdReallyIsNumber].importedAll !== EMPTY) { return modules[moduleIdReallyIsNumber].importedAll; @@ -140,6 +177,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } else { importedAll = {}; + // Refrain from using Object.assign, it has to work in ES3 environments. if (exports) { for (var key in exports) { if (hasOwnProperty.call(exports, key)) { @@ -150,16 +188,28 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. importedAll.default = exports; } + // $FlowFixMe The metroRequire call above will throw if modules[id] is null return modules[moduleIdReallyIsNumber].importedAll = importedAll; } metroRequire.importAll = metroImportAll; + // The `require.context()` syntax is never executed in the runtime because it is converted + // to `require()` in `metro/src/ModuleGraph/worker/collectDependencies.js` after collecting + // dependencies. If the feature flag is not enabled then the conversion never takes place and this error is thrown (development only). metroRequire.context = function fallbackRequireContext() { if (__DEV__) { throw new Error("The experimental Metro feature `require.context` is not enabled in your project.\nThis can be enabled by setting the `transformer.unstable_allowRequireContext` property to `true` in your Metro configuration."); } throw new Error("The experimental Metro feature `require.context` is not enabled in your project."); }; + + // `require.resolveWeak()` is a compile-time primitive (see collectDependencies.js) + metroRequire.resolveWeak = function fallbackRequireResolveWeak() { + if (__DEV__) { + throw new Error("require.resolveWeak cannot be called dynamically. Ensure you are using the same version of `metro` and `metro-runtime`."); + } + throw new Error("require.resolveWeak cannot be called dynamically."); + }; var inGuard = false; function guardedLoadModule(moduleId, module) { if (!inGuard && global.ErrorUtils) { @@ -168,6 +218,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. try { returnValue = loadModuleImplementation(moduleId, module); } catch (e) { + // TODO: (moti) T48204692 Type this use of ErrorUtils. global.ErrorUtils.reportFatalError(e); } inGuard = false; @@ -214,7 +265,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. function loadModuleImplementation(moduleId, module) { if (!module && moduleDefinersBySegmentID.length > 0) { var _definingSegmentByMod; - var segmentId = (_definingSegmentByMod = definingSegmentByModuleID.get(moduleId)) !== null && _definingSegmentByMod !== void 0 ? _definingSegmentByMod : 0; + var segmentId = (_definingSegmentByMod = definingSegmentByModuleID.get(moduleId)) != null ? _definingSegmentByMod : 0; var definer = moduleDefinersBySegmentID[segmentId]; if (definer != null) { definer(moduleId); @@ -234,13 +285,16 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. throw unknownModuleError(moduleId); } if (module.hasError) { - throw moduleThrewError(moduleId, module.error); + throw module.error; } if (__DEV__) { var Systrace = requireSystrace(); var Refresh = requireRefresh(); } + // We must optimistically mark module as initialized before running the + // factory to keep any require cycles inside the factory from causing an + // infinite require loop. module.isInitialized = true; var _module = module, factory = _module.factory, @@ -250,6 +304,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } try { if (__DEV__) { + // $FlowIgnore: we know that __DEV__ is const and `Systrace` exists Systrace.beginEvent("JS_require_" + (module.verboseName || moduleId)); } var moduleObject = module.publicModule; @@ -267,13 +322,19 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } moduleObject.id = moduleId; + // keep args in sync with with defineModuleCode in + // metro/src/Resolver/index.js + // and metro/src/ModuleGraph/worker.js factory(global, metroRequire, metroImportDefault, metroImportAll, moduleObject, moduleObject.exports, dependencyMap); + // avoid removing factory in DEV mode as it breaks HMR if (!__DEV__) { + // $FlowFixMe: This is only sound because we never access `factory` again module.factory = undefined; module.dependencyMap = undefined; } if (__DEV__) { + // $FlowIgnore: we know that __DEV__ is const and `Systrace` exists Systrace.endEvent(); if (Refresh != null) { registerExportsForReactRefresh(Refresh, moduleObject.exports, moduleId); @@ -303,19 +364,18 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } return Error(message); } - function moduleThrewError(id, error) { - var displayName = __DEV__ && modules[id] && modules[id].verboseName || id; - return Error('Requiring module "' + displayName + '", which threw an exception: ' + error); - } if (__DEV__) { + // $FlowFixMe[prop-missing] metroRequire.Systrace = { beginEvent: function beginEvent() {}, endEvent: function endEvent() {} }; + // $FlowFixMe[prop-missing] metroRequire.getModules = function () { return modules; }; + // HOT MODULE RELOADING var createHotReloadingObject = function createHotReloadingObject() { var hot = { _acceptCallback: null, @@ -336,11 +396,14 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var mod = modules[id]; if (!mod) { if (factory) { + // New modules are going to be handled by the define() method. return; } throw unknownModuleError(id); } if (!mod.hasError && !mod.isInitialized) { + // The module hasn't actually been executed yet, + // so we can always safely replace it. mod.factory = factory; mod.dependencyMap = dependencyMap; return; @@ -348,22 +411,42 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var Refresh = requireRefresh(); var refreshBoundaryIDs = new Set(); + // In this loop, we will traverse the dependency tree upwards from the + // changed module. Updates "bubble" up to the closest accepted parent. + // + // If we reach the module root and nothing along the way accepted the update, + // we know hot reload is going to fail. In that case we return false. + // + // The main purpose of this loop is to figure out whether it's safe to apply + // a hot update. It is only safe when the update was accepted somewhere + // along the way upwards for each of its parent dependency module chains. + // + // We perform a topological sort because we may discover the same + // module more than once in the list of things to re-execute, and + // we want to execute modules before modules that depend on them. + // + // If we didn't have this check, we'd risk re-evaluating modules that + // have side effects and lead to confusing and meaningless crashes. + var didBailOut = false; var updatedModuleIDs; try { updatedModuleIDs = topologicalSort([id], + // Start with the changed module and go upwards function (pendingID) { var pendingModule = modules[pendingID]; if (pendingModule == null) { + // Nothing to do. return []; } var pendingHot = pendingModule.hot; if (pendingHot == null) { throw new Error("[Refresh] Expected module.hot to always exist in DEV."); } - + // A module can be accepted manually from within itself. var canAccept = pendingHot._didAccept; if (!canAccept && Refresh != null) { + // Or React Refresh may mark it accepted based on exports. var isBoundary = isReactRefreshBoundary(Refresh, pendingModule.publicModule.exports); if (isBoundary) { canAccept = true; @@ -371,11 +454,15 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } } if (canAccept) { + // Don't look at parents. return []; } - + // If we bubble through the roof, there is no way to do a hot update. + // Bail out altogether. This is the failure case. var parentIDs = inverseDependencies[pendingID]; if (parentIDs.length === 0) { + // Reload the app because the hot reload can't succeed. + // This should work both on web and React Native. performFullRefresh("No root boundary", { source: mod, failed: pendingModule @@ -383,11 +470,13 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. didBailOut = true; return []; } - + // This module can't handle the update but maybe all its parents can? + // Put them all in the queue to run the same set of checks. return parentIDs; }, function () { return didBailOut; - }).reverse(); + } // Should we stop? + ).reverse(); } catch (e) { if (e === CYCLE_DETECTED) { performFullRefresh("Dependency cycle", { @@ -401,6 +490,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. return; } + // If we reached here, it is likely that hot reload will be successful. + // Run the actual factories. var seenModuleIDs = new Set(); for (var i = 0; i < updatedModuleIDs.length; i++) { var updatedID = updatedModuleIDs[i]; @@ -416,22 +507,35 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var didError = runUpdatedModule(updatedID, updatedID === id ? factory : undefined, updatedID === id ? dependencyMap : undefined); var nextExports = updatedMod.publicModule.exports; if (didError) { + // The user was shown a redbox about module initialization. + // There's nothing for us to do here until it's fixed. return; } if (refreshBoundaryIDs.has(updatedID)) { + // Since we just executed the code for it, it's possible + // that the new exports make it ineligible for being a boundary. var isNoLongerABoundary = !isReactRefreshBoundary(Refresh, nextExports); - + // It can also become ineligible if its exports are incompatible + // with the previous exports. + // For example, if you add/remove/change exports, we'll want + // to re-execute the importing modules, and force those components + // to re-render. Similarly, if you convert a class component + // to a function, we want to invalidate the boundary. var didInvalidate = shouldInvalidateReactRefreshBoundary(Refresh, prevExports, nextExports); if (isNoLongerABoundary || didInvalidate) { + // We'll be conservative. The only case in which we won't do a full + // reload is if all parent modules are also refresh boundaries. + // In that case we'll add them to the current queue. var parentIDs = inverseDependencies[updatedID]; if (parentIDs.length === 0) { + // Looks like we bubbled to the root. Can't recover from that. performFullRefresh(isNoLongerABoundary ? "No longer a boundary" : "Invalidated boundary", { source: mod, failed: updatedMod }); return; } - + // Schedule all parent refresh boundaries to re-run in this loop. for (var j = 0; j < parentIDs.length; j++) { var parentID = parentIDs[j]; var parentMod = modules[parentID]; @@ -440,6 +544,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } var canAcceptParent = isReactRefreshBoundary(Refresh, parentMod.publicModule.exports); if (canAcceptParent) { + // All parents will have to re-run too. refreshBoundaryIDs.add(parentID); updatedModuleIDs.push(parentID); } else { @@ -454,10 +559,12 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } } if (Refresh != null) { + // Debounce a little in case there are multiple updates queued up. + // This is also useful because __accept may be called multiple times. if (reactRefreshTimeout == null) { reactRefreshTimeout = setTimeout(function () { reactRefreshTimeout = null; - + // Update React components. Refresh.performReactRefresh(); }, 30); } @@ -505,7 +612,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. try { hot._disposeCallback(); } catch (error) { - console.error("Error while calling dispose handler for module " + id + ": ", error); + console.error(`Error while calling dispose handler for module ${id}: `, error); } } if (factory) { @@ -526,44 +633,53 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. hot._disposeCallback = null; metroRequire(id); if (mod.hasError) { + // This error has already been reported via a redbox. + // We know it's likely a typo or some mistake that was just introduced. + // Our goal now is to keep the rest of the application working so that by + // the time user fixes the error, the app isn't completely destroyed + // underneath the redbox. So we'll revert the module object to the last + // successful export and stop propagating this update. mod.hasError = false; mod.isInitialized = true; mod.error = null; mod.publicModule.exports = prevExports; - + // We errored. Stop the update. return true; } if (hot._acceptCallback) { try { hot._acceptCallback(); } catch (error) { - console.error("Error while calling accept handler for module " + id + ": ", error); + console.error(`Error while calling accept handler for module ${id}: `, error); } } - + // No error. return false; }; var performFullRefresh = function performFullRefresh(reason, modules) { + /* global window */ if (typeof window !== "undefined" && window.location != null && typeof window.location.reload === "function") { window.location.reload(); } else { var Refresh = requireRefresh(); if (Refresh != null) { var _modules$source$verbo, _modules$source, _modules$failed$verbo, _modules$failed; - var sourceName = (_modules$source$verbo = (_modules$source = modules.source) === null || _modules$source === void 0 ? void 0 : _modules$source.verboseName) !== null && _modules$source$verbo !== void 0 ? _modules$source$verbo : "unknown"; - var failedName = (_modules$failed$verbo = (_modules$failed = modules.failed) === null || _modules$failed === void 0 ? void 0 : _modules$failed.verboseName) !== null && _modules$failed$verbo !== void 0 ? _modules$failed$verbo : "unknown"; - Refresh.performFullRefresh("Fast Refresh - " + reason + " <" + sourceName + "> <" + failedName + ">"); + var sourceName = (_modules$source$verbo = (_modules$source = modules.source) == null ? void 0 : _modules$source.verboseName) != null ? _modules$source$verbo : "unknown"; + var failedName = (_modules$failed$verbo = (_modules$failed = modules.failed) == null ? void 0 : _modules$failed.verboseName) != null ? _modules$failed$verbo : "unknown"; + Refresh.performFullRefresh(`Fast Refresh - ${reason} <${sourceName}> <${failedName}>`); } else { console.warn("Could not reload the application after an edit."); } } }; + // Modules that only export components become React Refresh boundaries. var isReactRefreshBoundary = function isReactRefreshBoundary(Refresh, moduleExports) { if (Refresh.isLikelyComponentType(moduleExports)) { return true; } if (moduleExports == null || typeof moduleExports !== "object") { + // Exit if we can't iterate over exports. return false; } var hasExports = false; @@ -575,6 +691,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } var desc = Object.getOwnPropertyDescriptor(moduleExports, key); if (desc && desc.get) { + // Don't invoke getters as they may have side effects. return false; } var exportValue = moduleExports[key]; @@ -598,10 +715,13 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. return false; }; + // When this signature changes, it's unsafe to stop at this refresh boundary. var getRefreshBoundarySignature = function getRefreshBoundarySignature(Refresh, moduleExports) { var signature = []; signature.push(Refresh.getFamilyByType(moduleExports)); if (moduleExports == null || typeof moduleExports !== "object") { + // Exit if we can't iterate over exports. + // (This is important for legacy environments.) return signature; } for (var key in moduleExports) { @@ -621,11 +741,14 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var registerExportsForReactRefresh = function registerExportsForReactRefresh(Refresh, moduleExports, moduleID) { Refresh.register(moduleExports, moduleID + " %exports%"); if (moduleExports == null || typeof moduleExports !== "object") { + // Exit if we can't iterate over exports. + // (This is important for legacy environments.) return; } for (var key in moduleExports) { var desc = Object.getOwnPropertyDescriptor(moduleExports, key); if (desc && desc.get) { + // Don't invoke getters as they may have side effects. continue; } var exportValue = moduleExports[key]; @@ -636,17 +759,67 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. global.__accept = metroHotUpdateModule; } if (__DEV__) { + // The metro require polyfill can not have module dependencies. + // The Systrace and ReactRefresh dependencies are, therefore, made publicly + // available. Ideally, the dependency would be inversed in a way that + // Systrace / ReactRefresh could integrate into Metro rather than + // having to make them publicly available. + var requireSystrace = function requireSystrace() { - return global[__METRO_GLOBAL_PREFIX__ + "__SYSTRACE"] || metroRequire.Systrace; + return ( + // $FlowFixMe[prop-missing] + global[__METRO_GLOBAL_PREFIX__ + "__SYSTRACE"] || metroRequire.Systrace + ); }; var requireRefresh = function requireRefresh() { - return global[__METRO_GLOBAL_PREFIX__ + "__ReactRefresh"] || metroRequire.Refresh; + return ( + // $FlowFixMe[prop-missing] + global[__METRO_GLOBAL_PREFIX__ + "__ReactRefresh"] || metroRequire.Refresh + ); }; } })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); (function (global) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @polyfill + * @nolint + * @format + */ + /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */ + + /** + * This pipes all of our console logging functions to native logging so that + * JavaScript errors in required modules show up in Xcode via NSLog. + */ var inspect = function () { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + // + // https://github.com/joyent/node/blob/master/lib/util.js function inspect(obj, opts) { var ctx = { @@ -669,21 +842,26 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. function formatValue(ctx, value, recurseTimes) { ctx.formatValueCalls++; if (ctx.formatValueCalls > 200) { - return "[TOO BIG formatValueCalls " + ctx.formatValueCalls + " exceeded limit of 200]"; + return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`; } + // Primitive types cannot have properties var primitive = formatPrimitive(ctx, value); if (primitive) { return primitive; } + // Look up the keys of the object. var keys = Object.keys(value); var visibleKeys = arrayToHash(keys); + // IE doesn't make error fields non-enumerable + // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { return formatError(value); } + // Some type of object without properties can be shortcutted. if (keys.length === 0) { if (isFunction(value)) { var name = value.name ? ': ' + value.name : ''; @@ -703,24 +881,29 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. array = false, braces = ['{', '}']; + // Make Array say that they are Array if (isArray(value)) { array = true; braces = ['[', ']']; } + // Make functions say that they are functions if (isFunction(value)) { var n = value.name ? ': ' + value.name : ''; base = ' [Function' + n + ']'; } + // Make RegExps say that they are RegExps if (isRegExp(value)) { base = ' ' + RegExp.prototype.toString.call(value); } + // Make dates with properties first say the date if (isDate(value)) { base = ' ' + Date.prototype.toUTCString.call(value); } + // Make error with message first say the error if (isError(value)) { base = ' ' + formatError(value); } @@ -754,6 +937,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } if (isNumber(value)) return ctx.stylize('' + value, 'number'); if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); + // For some reason typeof null is "object", so special case here. if (isNull(value)) return ctx.stylize('null', 'null'); } function formatError(value) { @@ -844,6 +1028,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; } + // NOTE: These type checking functions intentionally don't use `instanceof` + // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } @@ -904,6 +1090,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning'; INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error'; + // Strip the inner function in getNativeLogFunction(), if in dev also + // strip method printing to originalConsole. var INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1; function getNativeLogFunction(level) { return function () { @@ -918,9 +1106,18 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }).join(', '); } + // TRICKY + // If more than one argument is provided, the code above collapses them all + // into a single formatted string. This transform wraps string arguments in + // single quotes (e.g. "foo" -> "'foo'") which then breaks the "Warning:" + // check below. So it's important that we look at the first argument, rather + // than the formatted argument string. var firstArg = arguments[0]; var logLevel = level; if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) { + // React warnings use console.error so that a stack trace is shown, + // but we don't (currently) want these to show a redbox + // (Note: Logic duplicated in ExceptionsManager.js.) logLevel = LOG_LEVELS.warn; } if (global.__inspectorLog) { @@ -938,6 +1135,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }); } function consoleTablePolyfill(rows) { + // convert object -> array if (!Array.isArray(rows)) { var data = rows; rows = []; @@ -957,6 +1155,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. var stringRows = []; var columnWidths = []; + // Convert each cell to a string. Also + // figure out max cell width for each column columns.forEach(function (k, i) { columnWidths[i] = k.length; for (var j = 0; j < rows.length; j++) { @@ -967,6 +1167,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } }); + // Join all elements in the row into a single string with | separators + // (appends extra spaces to each cell to make separators | aligned) function joinRow(row, space) { var cells = row.map(function (cell, i) { var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join(''); @@ -985,14 +1187,19 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. table.push(joinRow(stringRows[i])); } + // Notice extra empty line at the beginning. + // Native logging hook adds "RCTLog >" at the front of every + // logged string, which would shift the header and screw up + // the table global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info); } - var GROUP_PAD = "\u2502"; - var GROUP_OPEN = "\u2510"; - var GROUP_CLOSE = "\u2518"; + var GROUP_PAD = "\u2502"; // Box light vertical + var GROUP_OPEN = "\u2510"; // Box light down+left + var GROUP_CLOSE = "\u2518"; // Box light up+left var groupStack = []; function groupFormat(prefix, msg) { + // Insert group formatting before the console message return groupStack.join('') + prefix + ' ' + (msg || ''); } function consoleGroupPolyfill(label) { @@ -1014,6 +1221,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } if (global.nativeLoggingHook) { var originalConsole = global.console; + // Preserve the original `console` as `originalConsole` if (__DEV__ && originalConsole) { var descriptor = Object.getOwnPropertyDescriptor(global, 'console'); if (descriptor) { @@ -1038,6 +1246,9 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. enumerable: false }); + // If available, also call the original `console` method since that is + // sometimes useful. Ex: on OS X, this will let you see rich output in + // the Safari Web Inspector console. if (__DEV__ && originalConsole) { Object.keys(console).forEach(function (methodName) { var reactNativeMethod = console[methodName]; @@ -1049,6 +1260,9 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } }); + // The following methods are not supported by this polyfill but + // we still should pass them to original console if they are + // supported by it. ['clear', 'dir', 'dirxml', 'profile', 'profileEnd'].forEach(function (methodName) { if (typeof originalConsole[methodName] === 'function') { console[methodName] = function () { @@ -1058,7 +1272,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }); } } else if (!global.console) { - function stub() {} + var stub = function stub() {}; var log = global.print || stub; global.console = { debug: log, @@ -1089,12 +1303,35 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. } })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); (function (global) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + * @polyfill + */ var _inGuard = 0; + /** + * This is the error handler that is called when we encounter an exception + * when loading a module. This will report any errors encountered before + * ExceptionsManager is configured. + */ var _globalHandler = function onError(e, isFatal) { throw e; }; + /** + * The particular require runtime that we are using looks for a global + * `ErrorUtils` object and if it exists, then it requires modules with the + * error handler specified via ErrorUtils.setGlobalHandler by calling the + * require function with applyWithGuard. Since the require module is loaded + * before any of the modules, this ErrorUtils must be defined (and the handler + * set) globally before requiring anything. + */ var ErrorUtils = { setGlobalHandler: function setGlobalHandler(fun) { _globalHandler = fun; @@ -1106,13 +1343,20 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. _globalHandler && _globalHandler(error, false); }, reportFatalError: function reportFatalError(error) { + // NOTE: This has an untyped call site in Metro. _globalHandler && _globalHandler(error, true); }, applyWithGuard: function applyWithGuard(fun, context, args, + // Unused, but some code synced from www sets it to null. unused_onError, + // Some callers pass a name here, which we ignore. unused_name) { try { _inGuard++; + /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context, + * null) is fine. (2) array -> rest array should work */ + /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context, + * null) is fine. (2) array -> rest array should work */ return fun.apply(context, args); } catch (e) { ErrorUtils.reportError(e); @@ -1123,6 +1367,10 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }, applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) { if (ErrorUtils.inGuard()) { + /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context, + * null) is fine. (2) array -> rest array should work */ + /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context, + * null) is fine. (2) array -> rest array should work */ return fun.apply(context, args); } else { ErrorUtils.applyWithGuard(fun, context, args); @@ -1134,11 +1382,15 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }, guard: function guard(fun, name, context) { var _ref; + // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types + // should be sufficient. if (typeof fun !== 'function') { console.warn('A function must be passed to ErrorUtils.guard, got ', fun); return null; } var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : ''; + /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by + * Flow's LTI update could not be added via codemod */ function guarded() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; @@ -1151,14 +1403,29 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. global.ErrorUtils = ErrorUtils; })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this); (function (global) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * @polyfill + * @nolint + */ (function () { 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty; + /** + * Returns an array of the given object's own enumerable entries. + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries + */ if (typeof Object.entries !== 'function') { Object.entries = function (object) { + // `null` and `undefined` values are not allowed. if (object == null) { throw new TypeError('Object.entries called on non-object'); } @@ -1172,8 +1439,13 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. }; } + /** + * Returns an array of the given object's own enumerable entries. + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values + */ if (typeof Object.values !== 'function') { Object.values = function (object) { + // `null` and `undefined` values are not allowed. if (object == null) { throw new TypeError('Object.values called on non-object'); } @@ -1191,409 +1463,545 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); var _App = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./src/App")); + /** + * @format + */ _reactNative.AppRegistry.registerComponent(_$$_REQUIRE(_dependencyMap[3], "./app.json").name, function () { return _App.default; }); -},0,[1,3,471,732],"index.js"); +},0,[1,3,519,1279],"index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + // Components + // APIs + // Plugins module.exports = { + // Components get AccessibilityInfo() { return _$$_REQUIRE(_dependencyMap[0], "./Libraries/Components/AccessibilityInfo/AccessibilityInfo").default; }, get ActivityIndicator() { - return _$$_REQUIRE(_dependencyMap[1], "./Libraries/Components/ActivityIndicator/ActivityIndicator"); + return _$$_REQUIRE(_dependencyMap[1], "./Libraries/Components/ActivityIndicator/ActivityIndicator").default; }, get Button() { return _$$_REQUIRE(_dependencyMap[2], "./Libraries/Components/Button"); }, - get DatePickerIOS() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('DatePickerIOS-merged', 'DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); - return _$$_REQUIRE(_dependencyMap[4], "./Libraries/Components/DatePicker/DatePickerIOS"); - }, + // $FlowFixMe[value-as-type] get DrawerLayoutAndroid() { - return _$$_REQUIRE(_dependencyMap[5], "./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid"); + return _$$_REQUIRE(_dependencyMap[3], "./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid"); }, get FlatList() { - return _$$_REQUIRE(_dependencyMap[6], "./Libraries/Lists/FlatList"); + return _$$_REQUIRE(_dependencyMap[4], "./Libraries/Lists/FlatList"); }, get Image() { - return _$$_REQUIRE(_dependencyMap[7], "./Libraries/Image/Image"); + return _$$_REQUIRE(_dependencyMap[5], "./Libraries/Image/Image"); }, get ImageBackground() { - return _$$_REQUIRE(_dependencyMap[8], "./Libraries/Image/ImageBackground"); + return _$$_REQUIRE(_dependencyMap[6], "./Libraries/Image/ImageBackground"); }, get InputAccessoryView() { - return _$$_REQUIRE(_dependencyMap[9], "./Libraries/Components/TextInput/InputAccessoryView"); + return _$$_REQUIRE(_dependencyMap[7], "./Libraries/Components/TextInput/InputAccessoryView"); }, get KeyboardAvoidingView() { - return _$$_REQUIRE(_dependencyMap[10], "./Libraries/Components/Keyboard/KeyboardAvoidingView").default; - }, - get MaskedViewIOS() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('maskedviewios-moved', 'MaskedViewIOS 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-masked-view/masked-view' instead of 'react-native'. " + 'See https://github.com/react-native-masked-view/masked-view'); - return _$$_REQUIRE(_dependencyMap[11], "./Libraries/Components/MaskedView/MaskedViewIOS"); + return _$$_REQUIRE(_dependencyMap[8], "./Libraries/Components/Keyboard/KeyboardAvoidingView").default; }, get Modal() { - return _$$_REQUIRE(_dependencyMap[12], "./Libraries/Modal/Modal"); + return _$$_REQUIRE(_dependencyMap[9], "./Libraries/Modal/Modal"); }, get Pressable() { - return _$$_REQUIRE(_dependencyMap[13], "./Libraries/Components/Pressable/Pressable").default; + return _$$_REQUIRE(_dependencyMap[10], "./Libraries/Components/Pressable/Pressable").default; }, + // $FlowFixMe[value-as-type] get ProgressBarAndroid() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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'); - return _$$_REQUIRE(_dependencyMap[14], "./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid"); - }, - get ProgressViewIOS() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('progress-view-ios-moved', 'ProgressViewIOS 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-view' instead of 'react-native'. " + 'See https://github.com/react-native-progress-view/progress-view'); - return _$$_REQUIRE(_dependencyMap[15], "./Libraries/Components/ProgressViewIOS/ProgressViewIOS"); + _$$_REQUIRE(_dependencyMap[11], "./Libraries/Utilities/warnOnce")('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'); + return _$$_REQUIRE(_dependencyMap[12], "./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid"); }, get RefreshControl() { - return _$$_REQUIRE(_dependencyMap[16], "./Libraries/Components/RefreshControl/RefreshControl"); + return _$$_REQUIRE(_dependencyMap[13], "./Libraries/Components/RefreshControl/RefreshControl"); }, get SafeAreaView() { - return _$$_REQUIRE(_dependencyMap[17], "./Libraries/Components/SafeAreaView/SafeAreaView").default; + return _$$_REQUIRE(_dependencyMap[14], "./Libraries/Components/SafeAreaView/SafeAreaView").default; }, get ScrollView() { - return _$$_REQUIRE(_dependencyMap[18], "./Libraries/Components/ScrollView/ScrollView"); + return _$$_REQUIRE(_dependencyMap[15], "./Libraries/Components/ScrollView/ScrollView"); }, get SectionList() { - return _$$_REQUIRE(_dependencyMap[19], "./Libraries/Lists/SectionList").default; - }, - get Slider() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('slider-moved', 'Slider 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/slider' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-slider'); - return _$$_REQUIRE(_dependencyMap[20], "./Libraries/Components/Slider/Slider"); + return _$$_REQUIRE(_dependencyMap[16], "./Libraries/Lists/SectionList").default; }, get StatusBar() { - return _$$_REQUIRE(_dependencyMap[21], "./Libraries/Components/StatusBar/StatusBar"); + return _$$_REQUIRE(_dependencyMap[17], "./Libraries/Components/StatusBar/StatusBar"); }, get Switch() { - return _$$_REQUIRE(_dependencyMap[22], "./Libraries/Components/Switch/Switch").default; + return _$$_REQUIRE(_dependencyMap[18], "./Libraries/Components/Switch/Switch").default; }, get Text() { - return _$$_REQUIRE(_dependencyMap[23], "./Libraries/Text/Text"); + return _$$_REQUIRE(_dependencyMap[19], "./Libraries/Text/Text"); }, get TextInput() { - return _$$_REQUIRE(_dependencyMap[24], "./Libraries/Components/TextInput/TextInput"); + return _$$_REQUIRE(_dependencyMap[20], "./Libraries/Components/TextInput/TextInput"); }, get Touchable() { - return _$$_REQUIRE(_dependencyMap[25], "./Libraries/Components/Touchable/Touchable"); + return _$$_REQUIRE(_dependencyMap[21], "./Libraries/Components/Touchable/Touchable"); }, get TouchableHighlight() { - return _$$_REQUIRE(_dependencyMap[26], "./Libraries/Components/Touchable/TouchableHighlight"); + return _$$_REQUIRE(_dependencyMap[22], "./Libraries/Components/Touchable/TouchableHighlight"); }, get TouchableNativeFeedback() { - return _$$_REQUIRE(_dependencyMap[27], "./Libraries/Components/Touchable/TouchableNativeFeedback"); + return _$$_REQUIRE(_dependencyMap[23], "./Libraries/Components/Touchable/TouchableNativeFeedback"); }, get TouchableOpacity() { - return _$$_REQUIRE(_dependencyMap[28], "./Libraries/Components/Touchable/TouchableOpacity"); + return _$$_REQUIRE(_dependencyMap[24], "./Libraries/Components/Touchable/TouchableOpacity"); }, get TouchableWithoutFeedback() { - return _$$_REQUIRE(_dependencyMap[29], "./Libraries/Components/Touchable/TouchableWithoutFeedback"); + return _$$_REQUIRE(_dependencyMap[25], "./Libraries/Components/Touchable/TouchableWithoutFeedback"); }, get View() { - return _$$_REQUIRE(_dependencyMap[30], "./Libraries/Components/View/View"); + return _$$_REQUIRE(_dependencyMap[26], "./Libraries/Components/View/View"); }, get VirtualizedList() { - return _$$_REQUIRE(_dependencyMap[31], "./Libraries/Lists/VirtualizedList"); + return _$$_REQUIRE(_dependencyMap[27], "./Libraries/Lists/VirtualizedList"); }, get VirtualizedSectionList() { - return _$$_REQUIRE(_dependencyMap[32], "./Libraries/Lists/VirtualizedSectionList"); + return _$$_REQUIRE(_dependencyMap[28], "./Libraries/Lists/VirtualizedSectionList"); }, + // APIs get ActionSheetIOS() { - return _$$_REQUIRE(_dependencyMap[33], "./Libraries/ActionSheetIOS/ActionSheetIOS"); + return _$$_REQUIRE(_dependencyMap[29], "./Libraries/ActionSheetIOS/ActionSheetIOS"); }, get Alert() { - return _$$_REQUIRE(_dependencyMap[34], "./Libraries/Alert/Alert"); + return _$$_REQUIRE(_dependencyMap[30], "./Libraries/Alert/Alert"); }, + // Include any types exported in the Animated module together with its default export, so + // you can references types such as Animated.Numeric get Animated() { - return _$$_REQUIRE(_dependencyMap[35], "./Libraries/Animated/Animated"); + // $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types + return _$$_REQUIRE(_dependencyMap[31], "./Libraries/Animated/Animated").default; }, get Appearance() { - return _$$_REQUIRE(_dependencyMap[36], "./Libraries/Utilities/Appearance"); + return _$$_REQUIRE(_dependencyMap[32], "./Libraries/Utilities/Appearance"); }, get AppRegistry() { - return _$$_REQUIRE(_dependencyMap[37], "./Libraries/ReactNative/AppRegistry"); + return _$$_REQUIRE(_dependencyMap[33], "./Libraries/ReactNative/AppRegistry"); }, get AppState() { - return _$$_REQUIRE(_dependencyMap[38], "./Libraries/AppState/AppState"); - }, - get AsyncStorage() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('async-storage-moved', 'AsyncStorage 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-async-storage/async-storage' instead of 'react-native'. " + 'See https://github.com/react-native-async-storage/async-storage'); - return _$$_REQUIRE(_dependencyMap[39], "./Libraries/Storage/AsyncStorage"); + return _$$_REQUIRE(_dependencyMap[34], "./Libraries/AppState/AppState"); }, get BackHandler() { - return _$$_REQUIRE(_dependencyMap[40], "./Libraries/Utilities/BackHandler"); + return _$$_REQUIRE(_dependencyMap[35], "./Libraries/Utilities/BackHandler"); }, get Clipboard() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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'); - return _$$_REQUIRE(_dependencyMap[41], "./Libraries/Components/Clipboard/Clipboard"); + _$$_REQUIRE(_dependencyMap[11], "./Libraries/Utilities/warnOnce")('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'); + return _$$_REQUIRE(_dependencyMap[36], "./Libraries/Components/Clipboard/Clipboard"); }, get DeviceInfo() { - return _$$_REQUIRE(_dependencyMap[42], "./Libraries/Utilities/DeviceInfo"); + return _$$_REQUIRE(_dependencyMap[37], "./Libraries/Utilities/DeviceInfo"); }, get DevSettings() { - return _$$_REQUIRE(_dependencyMap[43], "./Libraries/Utilities/DevSettings"); + return _$$_REQUIRE(_dependencyMap[38], "./Libraries/Utilities/DevSettings"); }, get Dimensions() { - return _$$_REQUIRE(_dependencyMap[44], "./Libraries/Utilities/Dimensions"); + return _$$_REQUIRE(_dependencyMap[39], "./Libraries/Utilities/Dimensions").default; }, get Easing() { - return _$$_REQUIRE(_dependencyMap[45], "./Libraries/Animated/Easing"); + return _$$_REQUIRE(_dependencyMap[40], "./Libraries/Animated/Easing").default; }, get findNodeHandle() { - return _$$_REQUIRE(_dependencyMap[46], "./Libraries/Renderer/shims/ReactNative").findNodeHandle; + return _$$_REQUIRE(_dependencyMap[41], "./Libraries/ReactNative/RendererProxy").findNodeHandle; }, get I18nManager() { - return _$$_REQUIRE(_dependencyMap[47], "./Libraries/ReactNative/I18nManager"); - }, - get ImagePickerIOS() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('imagePickerIOS-moved', 'ImagePickerIOS has been extracted from react-native core and will be removed in a future release. ' + "Please upgrade to use either '@react-native-community/react-native-image-picker' or 'expo-image-picker'. " + "If you cannot upgrade to a different library, please install the deprecated '@react-native-community/image-picker-ios' package. " + 'See https://github.com/rnc-archive/react-native-image-picker-ios'); - return _$$_REQUIRE(_dependencyMap[48], "./Libraries/Image/ImagePickerIOS"); + return _$$_REQUIRE(_dependencyMap[42], "./Libraries/ReactNative/I18nManager"); }, get InteractionManager() { - return _$$_REQUIRE(_dependencyMap[49], "./Libraries/Interaction/InteractionManager"); + return _$$_REQUIRE(_dependencyMap[43], "./Libraries/Interaction/InteractionManager"); }, get Keyboard() { - return _$$_REQUIRE(_dependencyMap[50], "./Libraries/Components/Keyboard/Keyboard"); + return _$$_REQUIRE(_dependencyMap[44], "./Libraries/Components/Keyboard/Keyboard"); }, get LayoutAnimation() { - return _$$_REQUIRE(_dependencyMap[51], "./Libraries/LayoutAnimation/LayoutAnimation"); + return _$$_REQUIRE(_dependencyMap[45], "./Libraries/LayoutAnimation/LayoutAnimation"); }, get Linking() { - return _$$_REQUIRE(_dependencyMap[52], "./Libraries/Linking/Linking"); + return _$$_REQUIRE(_dependencyMap[46], "./Libraries/Linking/Linking"); }, get LogBox() { - return _$$_REQUIRE(_dependencyMap[53], "./Libraries/LogBox/LogBox"); + return _$$_REQUIRE(_dependencyMap[47], "./Libraries/LogBox/LogBox").default; }, get NativeDialogManagerAndroid() { - return _$$_REQUIRE(_dependencyMap[54], "./Libraries/NativeModules/specs/NativeDialogManagerAndroid").default; + return _$$_REQUIRE(_dependencyMap[48], "./Libraries/NativeModules/specs/NativeDialogManagerAndroid").default; }, get NativeEventEmitter() { - return _$$_REQUIRE(_dependencyMap[55], "./Libraries/EventEmitter/NativeEventEmitter").default; + return _$$_REQUIRE(_dependencyMap[49], "./Libraries/EventEmitter/NativeEventEmitter").default; }, get Networking() { - return _$$_REQUIRE(_dependencyMap[56], "./Libraries/Network/RCTNetworking"); + return _$$_REQUIRE(_dependencyMap[50], "./Libraries/Network/RCTNetworking").default; }, get PanResponder() { - return _$$_REQUIRE(_dependencyMap[57], "./Libraries/Interaction/PanResponder"); + return _$$_REQUIRE(_dependencyMap[51], "./Libraries/Interaction/PanResponder").default; }, get PermissionsAndroid() { - return _$$_REQUIRE(_dependencyMap[58], "./Libraries/PermissionsAndroid/PermissionsAndroid"); + return _$$_REQUIRE(_dependencyMap[52], "./Libraries/PermissionsAndroid/PermissionsAndroid"); }, get PixelRatio() { - return _$$_REQUIRE(_dependencyMap[59], "./Libraries/Utilities/PixelRatio"); + return _$$_REQUIRE(_dependencyMap[53], "./Libraries/Utilities/PixelRatio").default; }, get PushNotificationIOS() { - _$$_REQUIRE(_dependencyMap[3], "./Libraries/Utilities/warnOnce")('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/push-notification-ios'); - return _$$_REQUIRE(_dependencyMap[60], "./Libraries/PushNotificationIOS/PushNotificationIOS"); + _$$_REQUIRE(_dependencyMap[11], "./Libraries/Utilities/warnOnce")('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/push-notification-ios'); + return _$$_REQUIRE(_dependencyMap[54], "./Libraries/PushNotificationIOS/PushNotificationIOS"); }, get Settings() { - return _$$_REQUIRE(_dependencyMap[61], "./Libraries/Settings/Settings"); + return _$$_REQUIRE(_dependencyMap[55], "./Libraries/Settings/Settings"); }, get Share() { - return _$$_REQUIRE(_dependencyMap[62], "./Libraries/Share/Share"); + return _$$_REQUIRE(_dependencyMap[56], "./Libraries/Share/Share"); }, get StyleSheet() { - return _$$_REQUIRE(_dependencyMap[63], "./Libraries/StyleSheet/StyleSheet"); + return _$$_REQUIRE(_dependencyMap[57], "./Libraries/StyleSheet/StyleSheet"); }, get Systrace() { - return _$$_REQUIRE(_dependencyMap[64], "./Libraries/Performance/Systrace"); + return _$$_REQUIRE(_dependencyMap[58], "./Libraries/Performance/Systrace"); }, + // $FlowFixMe[value-as-type] get ToastAndroid() { - return _$$_REQUIRE(_dependencyMap[65], "./Libraries/Components/ToastAndroid/ToastAndroid"); + return _$$_REQUIRE(_dependencyMap[59], "./Libraries/Components/ToastAndroid/ToastAndroid"); }, get TurboModuleRegistry() { - return _$$_REQUIRE(_dependencyMap[66], "./Libraries/TurboModule/TurboModuleRegistry"); + return _$$_REQUIRE(_dependencyMap[60], "./Libraries/TurboModule/TurboModuleRegistry"); }, get UIManager() { - return _$$_REQUIRE(_dependencyMap[67], "./Libraries/ReactNative/UIManager"); + return _$$_REQUIRE(_dependencyMap[61], "./Libraries/ReactNative/UIManager"); }, get unstable_batchedUpdates() { - return _$$_REQUIRE(_dependencyMap[46], "./Libraries/Renderer/shims/ReactNative").unstable_batchedUpdates; + return _$$_REQUIRE(_dependencyMap[41], "./Libraries/ReactNative/RendererProxy").unstable_batchedUpdates; + }, + get useAnimatedValue() { + return _$$_REQUIRE(_dependencyMap[62], "./Libraries/Animated/useAnimatedValue").default; }, get useColorScheme() { - return _$$_REQUIRE(_dependencyMap[68], "./Libraries/Utilities/useColorScheme").default; + return _$$_REQUIRE(_dependencyMap[63], "./Libraries/Utilities/useColorScheme").default; }, get useWindowDimensions() { - return _$$_REQUIRE(_dependencyMap[69], "./Libraries/Utilities/useWindowDimensions").default; + return _$$_REQUIRE(_dependencyMap[64], "./Libraries/Utilities/useWindowDimensions").default; }, get UTFSequence() { - return _$$_REQUIRE(_dependencyMap[70], "./Libraries/UTFSequence"); + return _$$_REQUIRE(_dependencyMap[65], "./Libraries/UTFSequence").default; }, get Vibration() { - return _$$_REQUIRE(_dependencyMap[71], "./Libraries/Vibration/Vibration"); + return _$$_REQUIRE(_dependencyMap[66], "./Libraries/Vibration/Vibration"); }, get YellowBox() { - return _$$_REQUIRE(_dependencyMap[72], "./Libraries/YellowBox/YellowBoxDeprecated"); + return _$$_REQUIRE(_dependencyMap[67], "./Libraries/YellowBox/YellowBoxDeprecated"); }, + // Plugins get DeviceEventEmitter() { - return _$$_REQUIRE(_dependencyMap[73], "./Libraries/EventEmitter/RCTDeviceEventEmitter").default; + return _$$_REQUIRE(_dependencyMap[68], "./Libraries/EventEmitter/RCTDeviceEventEmitter").default; }, get DynamicColorIOS() { - return _$$_REQUIRE(_dependencyMap[74], "./Libraries/StyleSheet/PlatformColorValueTypesIOS").DynamicColorIOS; + return _$$_REQUIRE(_dependencyMap[69], "./Libraries/StyleSheet/PlatformColorValueTypesIOS").DynamicColorIOS; }, get NativeAppEventEmitter() { - return _$$_REQUIRE(_dependencyMap[75], "./Libraries/EventEmitter/RCTNativeAppEventEmitter"); + return _$$_REQUIRE(_dependencyMap[70], "./Libraries/EventEmitter/RCTNativeAppEventEmitter"); }, get NativeModules() { - return _$$_REQUIRE(_dependencyMap[76], "./Libraries/BatchedBridge/NativeModules"); + return _$$_REQUIRE(_dependencyMap[71], "./Libraries/BatchedBridge/NativeModules"); }, get Platform() { - return _$$_REQUIRE(_dependencyMap[77], "./Libraries/Utilities/Platform"); + return _$$_REQUIRE(_dependencyMap[72], "./Libraries/Utilities/Platform"); }, get PlatformColor() { - return _$$_REQUIRE(_dependencyMap[78], "./Libraries/StyleSheet/PlatformColorValueTypes").PlatformColor; + return _$$_REQUIRE(_dependencyMap[73], "./Libraries/StyleSheet/PlatformColorValueTypes").PlatformColor; }, get processColor() { - return _$$_REQUIRE(_dependencyMap[79], "./Libraries/StyleSheet/processColor"); + return _$$_REQUIRE(_dependencyMap[74], "./Libraries/StyleSheet/processColor").default; }, get requireNativeComponent() { - return _$$_REQUIRE(_dependencyMap[80], "./Libraries/ReactNative/requireNativeComponent"); + return _$$_REQUIRE(_dependencyMap[75], "./Libraries/ReactNative/requireNativeComponent").default; }, get RootTagContext() { - return _$$_REQUIRE(_dependencyMap[81], "./Libraries/ReactNative/RootTag").RootTagContext; + return _$$_REQUIRE(_dependencyMap[76], "./Libraries/ReactNative/RootTag").RootTagContext; }, get unstable_enableLogBox() { return function () { return console.warn('LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.'); }; }, + // Deprecated Prop Types get ColorPropType() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ColorPropType has been removed from React Native. Migrate to ' + "ColorPropType exported from 'deprecated-react-native-prop-types'."); + console.error('ColorPropType will be removed from React Native, along with all ' + 'other PropTypes. We recommend that you migrate away from PropTypes ' + 'and switch to a type system like TypeScript. If you need to ' + 'continue using ColorPropType, migrate to the ' + "'deprecated-react-native-prop-types' package."); + return _$$_REQUIRE(_dependencyMap[77], "deprecated-react-native-prop-types").ColorPropType; }, get EdgeInsetsPropType() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'EdgeInsetsPropType has been removed from React Native. Migrate to ' + "EdgeInsetsPropType exported from 'deprecated-react-native-prop-types'."); + console.error('EdgeInsetsPropType will be removed from React Native, along with all ' + 'other PropTypes. We recommend that you migrate away from PropTypes ' + 'and switch to a type system like TypeScript. If you need to ' + 'continue using EdgeInsetsPropType, migrate to the ' + "'deprecated-react-native-prop-types' package."); + return _$$_REQUIRE(_dependencyMap[77], "deprecated-react-native-prop-types").EdgeInsetsPropType; }, get PointPropType() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'PointPropType has been removed from React Native. Migrate to ' + "PointPropType exported from 'deprecated-react-native-prop-types'."); + console.error('PointPropType will be removed from React Native, along with all ' + 'other PropTypes. We recommend that you migrate away from PropTypes ' + 'and switch to a type system like TypeScript. If you need to ' + 'continue using PointPropType, migrate to the ' + "'deprecated-react-native-prop-types' package."); + return _$$_REQUIRE(_dependencyMap[77], "deprecated-react-native-prop-types").PointPropType; }, get ViewPropTypes() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ViewPropTypes has been removed from React Native. Migrate to ' + "ViewPropTypes exported from 'deprecated-react-native-prop-types'."); + console.error('ViewPropTypes will be removed from React Native, along with all ' + 'other PropTypes. We recommend that you migrate away from PropTypes ' + 'and switch to a type system like TypeScript. If you need to ' + 'continue using ViewPropTypes, migrate to the ' + "'deprecated-react-native-prop-types' package."); + return _$$_REQUIRE(_dependencyMap[77], "deprecated-react-native-prop-types").ViewPropTypes; } }; if (__DEV__) { + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ART. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ART. */ Object.defineProperty(module.exports, 'ART', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ART has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " + 'See https://github.com/react-native-art/art'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ART has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " + 'See https://github.com/react-native-art/art'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ListView. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ListView. */ Object.defineProperty(module.exports, 'ListView', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-listview`.'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-listview`.'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access SwipeableListView. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access SwipeableListView. */ Object.defineProperty(module.exports, 'SwipeableListView', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'SwipeableListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-swipeable-listview`.'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'SwipeableListView has been removed from React Native. ' + 'See https://fb.me/nolistview for more information or use ' + '`deprecated-react-native-swipeable-listview`.'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access WebView. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access WebView. */ Object.defineProperty(module.exports, 'WebView', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'WebView has been removed from React Native. ' + "It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " + 'See https://github.com/react-native-webview/react-native-webview'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'WebView has been removed from React Native. ' + "It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " + 'See https://github.com/react-native-webview/react-native-webview'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access NetInfo. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access NetInfo. */ Object.defineProperty(module.exports, 'NetInfo', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'NetInfo has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " + 'See https://github.com/react-native-netinfo/react-native-netinfo'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'NetInfo has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " + 'See https://github.com/react-native-netinfo/react-native-netinfo'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access CameraRoll. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access CameraRoll. */ Object.defineProperty(module.exports, 'CameraRoll', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'CameraRoll has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. " + 'See https://github.com/react-native-cameraroll/react-native-cameraroll'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'CameraRoll has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. " + 'See https://github.com/react-native-cameraroll/react-native-cameraroll'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ImageStore. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ImageStore. */ Object.defineProperty(module.exports, 'ImageStore', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ImageStore has been removed from React Native. ' + 'To get a base64-encoded string from a local image use either of the following third-party libraries:' + "* expo-file-system: `readAsStringAsync(filepath, 'base64')`" + "* react-native-fs: `readFile(filepath, 'base64')`"); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ImageStore has been removed from React Native. ' + 'To get a base64-encoded string from a local image use either of the following third-party libraries:' + "* expo-file-system: `readAsStringAsync(filepath, 'base64')`" + "* react-native-fs: `readFile(filepath, 'base64')`"); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ImageEditor. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ImageEditor. */ Object.defineProperty(module.exports, 'ImageEditor', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ImageEditor has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-image-editor'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ImageEditor has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-image-editor'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access TimePickerAndroid. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access TimePickerAndroid. */ Object.defineProperty(module.exports, 'TimePickerAndroid', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'TimePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'TimePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ToolbarAndroid. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ToolbarAndroid. */ Object.defineProperty(module.exports, 'ToolbarAndroid', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ToolbarAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " + 'See https://github.com/react-native-toolbar-android/toolbar-android'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ToolbarAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " + 'See https://github.com/react-native-toolbar-android/toolbar-android'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ViewPagerAndroid. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ViewPagerAndroid. */ Object.defineProperty(module.exports, 'ViewPagerAndroid', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'ViewPagerAndroid has been removed from React Native. ' + "It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-pager-view'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ViewPagerAndroid has been removed from React Native. ' + "It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-pager-view'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access CheckBox. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access CheckBox. */ Object.defineProperty(module.exports, 'CheckBox', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'CheckBox has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " + 'See https://github.com/react-native-checkbox/react-native-checkbox'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'CheckBox has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " + 'See https://github.com/react-native-checkbox/react-native-checkbox'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access SegmentedControlIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access SegmentedControlIOS. */ Object.defineProperty(module.exports, 'SegmentedControlIOS', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'SegmentedControlIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/segmented-checkbox' instead of 'react-native'." + 'See https://github.com/react-native-segmented-control/segmented-control'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'SegmentedControlIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/segmented-checkbox' instead of 'react-native'." + 'See https://github.com/react-native-segmented-control/segmented-control'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access StatusBarIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access StatusBarIOS. */ Object.defineProperty(module.exports, 'StatusBarIOS', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'StatusBarIOS has been removed from React Native. ' + 'Has been merged with StatusBar. ' + 'See https://reactnative.dev/docs/statusbar'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'StatusBarIOS has been removed from React Native. ' + 'Has been merged with StatusBar. ' + 'See https://reactnative.dev/docs/statusbar'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access PickerIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access PickerIOS. */ Object.defineProperty(module.exports, 'PickerIOS', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'PickerIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'PickerIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access Picker. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access Picker. */ Object.defineProperty(module.exports, 'Picker', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'Picker has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'Picker has been removed from React Native. ' + "It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + 'See https://github.com/react-native-picker/picker'); } }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access DatePickerAndroid. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access DatePickerAndroid. */ Object.defineProperty(module.exports, 'DatePickerAndroid', { configurable: true, get: function get() { - _$$_REQUIRE(_dependencyMap[82], "invariant")(false, 'DatePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'DatePickerAndroid has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access MaskedViewIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access MaskedViewIOS. */ + Object.defineProperty(module.exports, 'MaskedViewIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'MaskedViewIOS has been removed from React Native. ' + "It can now be installed and imported from '@react-native-community/react-native-masked-view' instead of 'react-native'. " + 'See https://github.com/react-native-masked-view/masked-view'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access AsyncStorage. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access AsyncStorage. */ + Object.defineProperty(module.exports, 'AsyncStorage', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'AsyncStorage has been removed from react-native core. ' + "It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. " + 'See https://github.com/react-native-async-storage/async-storage'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ImagePickerIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ImagePickerIOS. */ + Object.defineProperty(module.exports, 'ImagePickerIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ImagePickerIOS has been removed from React Native. ' + "Please upgrade to use either '@react-native-community/react-native-image-picker' or 'expo-image-picker'. " + "If you cannot upgrade to a different library, please install the deprecated '@react-native-community/image-picker-ios' package. " + 'See https://github.com/rnc-archive/react-native-image-picker-ios'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access ProgressViewIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access ProgressViewIOS. */ + Object.defineProperty(module.exports, 'ProgressViewIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'ProgressViewIOS has been removed from react-native core. ' + "It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. " + 'See https://github.com/react-native-progress-view/progress-view'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access DatePickerIOS. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access DatePickerIOS. */ + Object.defineProperty(module.exports, 'DatePickerIOS', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'DatePickerIOS has been removed from react-native core. ' + "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " + 'See https://github.com/react-native-datetimepicker/datetimepicker'); + } + }); + /* $FlowFixMe[prop-missing] This is intentional: Flow will error when + * attempting to access Slider. */ + /* $FlowFixMe[invalid-export] This is intentional: Flow will error when + * attempting to access Slider. */ + Object.defineProperty(module.exports, 'Slider', { + configurable: true, + get: function get() { + _$$_REQUIRE(_dependencyMap[78], "invariant")(false, 'Slider has been removed from react-native core. ' + "It can now be installed and imported from '@react-native-community/slider' instead of 'react-native'. " + 'See https://github.com/callstack/react-native-slider'); } }); } -},1,[2,243,254,25,346,348,305,334,349,350,352,353,355,387,248,389,326,391,310,342,393,395,398,255,402,405,369,267,268,371,245,309,343,409,143,269,164,411,182,441,417,444,430,169,229,294,34,364,446,279,312,313,448,59,146,134,126,451,453,228,455,457,459,244,28,461,16,213,462,466,72,467,469,4,470,153,18,14,162,159,252,386,17],"node_modules/react-native/index.js"); +},1,[2,468,471,474,378,395,475,476,478,479,483,28,469,404,271,324,408,455,485,287,488,490,418,472,473,420,225,494,495,496,160,375,178,215,195,444,498,453,184,247,337,37,267,334,364,365,436,75,163,151,143,500,502,246,504,205,506,259,31,508,19,230,509,510,514,88,515,517,4,518,170,21,17,177,174,274,441,295,20],"node_modules/react-native/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -1601,13 +2009,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = void 0; var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../EventEmitter/RCTDeviceEventEmitter")); var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); - var _NativeAccessibilityInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAccessibilityInfo")); - var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeAccessibilityManager")); - var _legacySendAccessibilityEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./legacySendAccessibilityEvent")); + var _legacySendAccessibilityEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./legacySendAccessibilityEvent")); + var _NativeAccessibilityInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeAccessibilityInfo")); + var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeAccessibilityManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + // Events that are only supported on Android. + + // Events that are only supported on iOS. + // Mapping of public event names to platform-specific event names. var EventNames = _Platform.default.OS === 'android' ? new Map([['change', 'touchExplorationDidChange'], ['reduceMotionChanged', 'reduceMotionDidChange'], ['screenReaderChanged', 'touchExplorationDidChange'], ['accessibilityServiceChanged', 'accessibilityServiceDidChange']]) : new Map([['announcementFinished', 'announcementFinished'], ['boldTextChanged', 'boldTextChanged'], ['change', 'screenReaderChanged'], ['grayscaleChanged', 'grayscaleChanged'], ['invertColorsChanged', 'invertColorsChanged'], ['reduceMotionChanged', 'reduceMotionChanged'], ['reduceTransparencyChanged', 'reduceTransparencyChanged'], ['screenReaderChanged', 'screenReaderChanged']]); + /** + * Sometimes it's useful to know whether or not the device has a screen reader + * that is currently active. The `AccessibilityInfo` API is designed for this + * purpose. You can use it to query the current state of the screen reader as + * well as to register to be notified when the state of the screen reader + * changes. + * + * See https://reactnative.dev/docs/accessibilityinfo + */ var AccessibilityInfo = { + /** + * Query whether bold text is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when bold text is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isBoldTextEnabled + */ isBoldTextEnabled: function isBoldTextEnabled() { if (_Platform.default.OS === 'android') { return Promise.resolve(false); @@ -1621,6 +2060,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }, + /** + * Query whether grayscale is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when grayscale is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isGrayscaleEnabled + */ isGrayscaleEnabled: function isGrayscaleEnabled() { if (_Platform.default.OS === 'android') { return Promise.resolve(false); @@ -1634,6 +2081,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }, + /** + * Query whether inverted colors are currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when invert color is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isInvertColorsEnabled + */ isInvertColorsEnabled: function isInvertColorsEnabled() { if (_Platform.default.OS === 'android') { return Promise.resolve(false); @@ -1647,6 +2102,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }, + /** + * Query whether reduced motion is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when a reduce motion is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isReduceMotionEnabled + */ isReduceMotionEnabled: function isReduceMotionEnabled() { return new Promise(function (resolve, reject) { if (_Platform.default.OS === 'android') { @@ -1664,6 +2127,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }, + /** + * Query whether reduce motion and prefer cross-fade transitions settings are currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#prefersCrossFadeTransitions + */ prefersCrossFadeTransitions: function prefersCrossFadeTransitions() { return new Promise(function (resolve, reject) { if (_Platform.default.OS === 'android') { @@ -1677,6 +2148,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }, + /** + * Query whether reduced transparency is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when a reduce transparency is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isReduceTransparencyEnabled + */ isReduceTransparencyEnabled: function isReduceTransparencyEnabled() { if (_Platform.default.OS === 'android') { return Promise.resolve(false); @@ -1690,6 +2169,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }, + /** + * Query whether a screen reader is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when a screen reader is enabled and `false` otherwise. + * + * See https://reactnative.dev/docs/accessibilityinfo#isScreenReaderEnabled + */ isScreenReaderEnabled: function isScreenReaderEnabled() { return new Promise(function (resolve, reject) { if (_Platform.default.OS === 'android') { @@ -1707,6 +2194,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }, + /** + * Query whether Accessibility Service is currently enabled. + * + * Returns a promise which resolves to a boolean. + * The result is `true` when any service is enabled and `false` otherwise. + * + * @platform android + * + * See https://reactnative.dev/docs/accessibilityinfo/#isaccessibilityserviceenabled-android + */ isAccessibilityServiceEnabled: function isAccessibilityServiceEnabled() { return new Promise(function (resolve, reject) { if (_Platform.default.OS === 'android') { @@ -1720,22 +2217,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }, + /** + * Add an event handler. Supported events: + * + * - `reduceMotionChanged`: Fires when the state of the reduce motion toggle changes. + * The argument to the event handler is a boolean. The boolean is `true` when a reduce + * motion is enabled (or when "Transition Animation Scale" in "Developer options" is + * "Animation off") and `false` otherwise. + * - `screenReaderChanged`: Fires when the state of the screen reader changes. The argument + * to the event handler is a boolean. The boolean is `true` when a screen + * reader is enabled and `false` otherwise. + * + * These events are only supported on iOS: + * + * - `boldTextChanged`: iOS-only event. Fires when the state of the bold text toggle changes. + * The argument to the event handler is a boolean. The boolean is `true` when a bold text + * is enabled and `false` otherwise. + * - `grayscaleChanged`: iOS-only event. Fires when the state of the gray scale toggle changes. + * The argument to the event handler is a boolean. The boolean is `true` when a gray scale + * is enabled and `false` otherwise. + * - `invertColorsChanged`: iOS-only event. Fires when the state of the invert colors toggle + * changes. The argument to the event handler is a boolean. The boolean is `true` when a invert + * colors is enabled and `false` otherwise. + * - `reduceTransparencyChanged`: iOS-only event. Fires when the state of the reduce transparency + * toggle changes. The argument to the event handler is a boolean. The boolean is `true` + * when a reduce transparency is enabled and `false` otherwise. + * - `announcementFinished`: iOS-only event. Fires when the screen reader has + * finished making an announcement. The argument to the event handler is a + * dictionary with these keys: + * - `announcement`: The string announced by the screen reader. + * - `success`: A boolean indicating whether the announcement was + * successfully made. + * + * See https://reactnative.dev/docs/accessibilityinfo#addeventlistener + */ addEventListener: function addEventListener(eventName, + // $FlowIssue[incompatible-type] - Flow bug with unions and generics (T128099423) handler) { var deviceEventName = EventNames.get(eventName); return deviceEventName == null ? { remove: function remove() {} - } : _RCTDeviceEventEmitter.default.addListener(deviceEventName, handler); + } : + // $FlowFixMe[incompatible-call] + _RCTDeviceEventEmitter.default.addListener(deviceEventName, handler); }, + /** + * Set accessibility focus to a React component. + * + * See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus + */ setAccessibilityFocus: function setAccessibilityFocus(reactTag) { (0, _legacySendAccessibilityEvent.default)(reactTag, 'focus'); }, + /** + * Send a named accessibility event to a HostComponent. + */ sendAccessibilityEvent: function sendAccessibilityEvent(handle, eventType) { + // iOS only supports 'focus' event types if (_Platform.default.OS === 'ios' && eventType === 'click') { return; } - (0, _$$_REQUIRE(_dependencyMap[6], "../../Renderer/shims/ReactNative").sendAccessibilityEvent)(handle, eventType); + // route through React renderer to distinguish between Fabric and non-Fabric handles + (0, _$$_REQUIRE(_dependencyMap[6], "../../ReactNative/RendererProxy").sendAccessibilityEvent)(handle, eventType); }, + /** + * Post a string to be announced by the screen reader. + * + * See https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility + */ announceForAccessibility: function announceForAccessibility(announcement) { if (_Platform.default.OS === 'android') { _NativeAccessibilityInfo.default == null ? void 0 : _NativeAccessibilityInfo.default.announceForAccessibility(announcement); @@ -1743,6 +2292,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NativeAccessibilityManager.default == null ? void 0 : _NativeAccessibilityManager.default.announceForAccessibility(announcement); } }, + /** + * Post a string to be announced by the screen reader. + * - `announcement`: The string announced by the screen reader. + * - `options`: An object that configures the reading options. + * - `queue`: The announcement will be queued behind existing announcements. iOS only. + */ announceForAccessibilityWithOptions: function announceForAccessibilityWithOptions(announcement, options) { if (_Platform.default.OS === 'android') { _NativeAccessibilityInfo.default == null ? void 0 : _NativeAccessibilityInfo.default.announceForAccessibility(announcement); @@ -1754,6 +2309,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }, + /** + * Get the recommended timeout for changes to the UI needed by this user. + * + * See https://reactnative.dev/docs/accessibilityinfo#getrecommendedtimeoutmillis + */ getRecommendedTimeoutMillis: function getRecommendedTimeoutMillis(originalTimeout) { if (_Platform.default.OS === 'android') { return new Promise(function (resolve, reject) { @@ -1770,7 +2330,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = AccessibilityInfo; exports.default = _default; -},2,[3,4,14,31,32,33,34],"node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js"); +},2,[3,4,17,34,36,35,37],"node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -1785,7 +2345,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = void 0; var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); - var _default = new _EventEmitter.default(); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + // FIXME: use typed events + + /** + * Global EventEmitter used by the native platform to emit events to JavaScript. + * Events are identified by globally unique event names. + * + * NativeModules that emit events should instead subclass `NativeEventEmitter`. + */ + var RCTDeviceEventEmitter = new _EventEmitter.default(); + Object.defineProperty(global, '__rctDeviceEventEmitter', { + configurable: true, + value: RCTDeviceEventEmitter + }); + var _default = RCTDeviceEventEmitter; exports.default = _default; },4,[3,5],"node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { @@ -1796,7 +2379,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var EventEmitter = function () { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * EventEmitter manages listeners and publishes events to them. + * + * EventEmitter accepts a single type parameter that defines the valid events + * and associated listener argument(s). + * + * @example + * + * const emitter = new EventEmitter<{ + * success: [number, string], + * error: [Error], + * }>(); + * + * emitter.on('success', (statusCode, responseText) => {...}); + * emitter.emit('success', 200, '...'); + * + * emitter.on('error', error => {...}); + * emitter.emit('error', new Error('Resource not found')); + * + */ + var EventEmitter = /*#__PURE__*/function () { function EventEmitter() { (0, _classCallCheck2.default)(this, EventEmitter); this._registry = {}; @@ -1804,7 +2416,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _createClass2.default)(EventEmitter, [{ key: "addListener", value: + /** + * Registers a listener that is called when the supplied event is emitted. + * Returns a subscription that has a `remove` method to undo registration. + */ function addListener(eventType, listener, context) { + if (typeof listener !== 'function') { + throw new TypeError('EventEmitter.addListener(...): 2nd argument must be a function.'); + } var registrations = allocate(this._registry, eventType); var registration = { context: context, @@ -1817,10 +2436,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return registration; } + /** + * Emits the supplied event. Additional arguments supplied to `emit` will be + * passed through to each of the registered listeners. + * + * If a listener modifies the listeners registered for the same event, those + * changes will not be reflected in the current invocation of `emit`. + */ }, { key: "emit", - value: - function emit(eventType) { + value: function emit(eventType) { var registrations = this._registry[eventType]; if (registrations != null) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { @@ -1832,10 +2457,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Removes all registered listeners. + */ }, { key: "removeAllListeners", - value: - function removeAllListeners(eventType) { + value: function removeAllListeners(eventType) { if (eventType == null) { this._registry = {}; } else { @@ -1843,10 +2470,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Returns the number of registered listeners for the supplied event. + */ }, { key: "listenerCount", - value: - function listenerCount(eventType) { + value: function listenerCount(eventType) { var registrations = this._registry[eventType]; return registrations == null ? 0 : registrations.size; } @@ -1878,9 +2507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; @@ -1923,7 +2550,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + Object.defineProperty(target, _$$_REQUIRE(_dependencyMap[0], "./toPropertyKey.js")(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { @@ -1935,42 +2562,96 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Constructor; } module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; -},13,[],"node_modules/@babel/runtime/helpers/createClass.js"); +},13,[14],"node_modules/@babel/runtime/helpers/createClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _toPropertyKey(arg) { + var key = _$$_REQUIRE(_dependencyMap[0], "./toPrimitive.js")(arg, "string"); + return _$$_REQUIRE(_dependencyMap[1], "./typeof.js")["default"](key) === "symbol" ? key : String(key); + } + module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; +},14,[15,16],"node_modules/@babel/runtime/helpers/toPropertyKey.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _toPrimitive(input, hint) { + if (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](res) !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); + } + module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; +},15,[16],"node_modules/@babel/runtime/helpers/toPrimitive.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _typeof(o) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); + } + module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; +},16,[],"node_modules/@babel/runtime/helpers/typeof.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _NativePlatformConstantsIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativePlatformConstantsIOS")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var Platform = { __constants: null, OS: 'ios', + // $FlowFixMe[unsafe-getters-setters] get Version() { + // $FlowFixMe[object-this-reference] return this.constants.osVersion; }, + // $FlowFixMe[unsafe-getters-setters] get constants() { + // $FlowFixMe[object-this-reference] if (this.__constants == null) { + // $FlowFixMe[object-this-reference] this.__constants = _NativePlatformConstantsIOS.default.getConstants(); } + // $FlowFixMe[object-this-reference] return this.__constants; }, + // $FlowFixMe[unsafe-getters-setters] get isPad() { + // $FlowFixMe[object-this-reference] return this.constants.interfaceIdiom === 'pad'; }, + // $FlowFixMe[unsafe-getters-setters] get isTV() { + // $FlowFixMe[object-this-reference] return this.constants.interfaceIdiom === 'tv'; }, + // $FlowFixMe[unsafe-getters-setters] get isTesting() { if (__DEV__) { + // $FlowFixMe[object-this-reference] return this.constants.isTesting; } return false; }, select: function select(spec) { return ( + // $FlowFixMe[incompatible-return] 'ios' in spec ? spec.ios : 'native' in spec ? spec.native : spec.default ); } }; module.exports = Platform; -},14,[3,15],"node_modules/react-native/Libraries/Utilities/Platform.ios.js"); +},17,[3,18],"node_modules/react-native/Libraries/Utilities/Platform.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -1979,19 +2660,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.getEnforcing('PlatformConstants'); exports.default = _default; -},15,[16],"node_modules/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js"); +},18,[19],"node_modules/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.get = get; exports.getEnforcing = getEnforcing; - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var turboModuleProxy = global.__turboModuleProxy; function requireModule(name) { + // Bridgeless mode requires TurboModules if (global.RN$Bridgeless !== true) { + // Backward compatibility layer during migration. var legacyModule = _$$_REQUIRE(_dependencyMap[2], "../BatchedBridge/NativeModules")[name]; if (legacyModule != null) { return legacyModule; @@ -2008,14 +2709,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function getEnforcing(name) { var module = requireModule(name); - (0, _invariant.default)(module != null, "TurboModuleRegistry.getEnforcing(...): '" + name + "' could not be found. " + 'Verify that a module by this name is registered in the native binary.'); + (0, _invariant.default)(module != null, `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` + 'Verify that a module by this name is registered in the native binary.'); return module; } -},16,[3,17,18],"node_modules/react-native/Libraries/TurboModule/TurboModuleRegistry.js"); +},19,[3,20,21],"node_modules/react-native/Libraries/TurboModule/TurboModuleRegistry.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict'; + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ var invariant = function invariant(condition, format, a, b, c, d, e, f) { if (process.env.NODE_ENV !== 'production') { if (format === undefined) { @@ -2034,13 +2751,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); error.name = 'Invariant Violation'; } - error.framesToPop = 1; + error.framesToPop = 1; // we don't care about invariant's own frame throw error; } }; module.exports = invariant; -},17,[],"node_modules/invariant/browser.js"); +},20,[],"node_modules/invariant/browser.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -2056,6 +2782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e syncMethods = _config[4]; _$$_REQUIRE(_dependencyMap[1], "invariant")(!moduleName.startsWith('RCT') && !moduleName.startsWith('RK'), "Module name prefixes should've been stripped by the native side " + "but wasn't for " + moduleName); if (!constants && !methods) { + // Module contents will be filled in lazily later return { name: moduleName }; @@ -2074,7 +2801,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return constants || Object.freeze({}); }; } else { - console.warn("Unable to define method 'getConstants()' on NativeModule '" + moduleName + "'. NativeModule '" + moduleName + "' already has a constant or method called 'getConstants'. Please remove it."); + console.warn(`Unable to define method 'getConstants()' on NativeModule '${moduleName}'. NativeModule '${moduleName}' already has a constant or method called 'getConstants'. Please remove it.`); } if (__DEV__) { _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").createDebugLookup(moduleID, moduleName, methods); @@ -2085,6 +2812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + // export this method as a global so we can call it from native global.__fbGenNativeModule = genModule; function loadModule(name, moduleID) { _$$_REQUIRE(_dependencyMap[1], "invariant")(global.nativeRequireModuleConfig, "Can't lazily create module without nativeRequireModuleConfig"); @@ -2099,6 +2827,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } + // In case we reject, capture a useful stack trace here. + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ var enqueueingFrameError = new Error(); return new Promise(function (resolve, reject) { _$$_REQUIRE(_dependencyMap[2], "./BatchedBridge").enqueueNativeCall(moduleID, methodID, args, function (data) { @@ -2118,8 +2849,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var hasSuccessCallback = typeof lastArg === 'function'; var hasErrorCallback = typeof secondLastArg === 'function'; hasErrorCallback && _$$_REQUIRE(_dependencyMap[1], "invariant")(hasSuccessCallback, 'Cannot have a non-function arg after a function arg.'); + // $FlowFixMe[incompatible-type] var onSuccess = hasSuccessCallback ? lastArg : null; + // $FlowFixMe[incompatible-type] var onFail = hasErrorCallback ? secondLastArg : null; + // $FlowFixMe[unsafe-addition] var callbackCount = hasSuccessCallback + hasErrorCallback; var newArgs = args.slice(0, args.length - callbackCount); if (type === 'sync') { @@ -2129,6 +2863,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } + // $FlowFixMe[prop-missing] fn.type = type; return fn; } @@ -2136,6 +2871,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return array.indexOf(value) !== -1; } function updateErrorWithErrorData(errorData, error) { + /* $FlowFixMe[class-object-subtyping] added when improving typing for this + * parameters */ return Object.assign(error, errorData || {}); } var NativeModules = {}; @@ -2146,6 +2883,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1], "invariant")(bridgeConfig, '__fbBatchedBridgeConfig is not set, cannot invoke native modules'); var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[3], "../Utilities/defineLazyObjectProperty"); (bridgeConfig.remoteModuleConfig || []).forEach(function (config, moduleID) { + // Initially this config will only contain the module name when running in JSC. The actual + // configuration of the module will be lazily loaded. var info = genModule(config, moduleID); if (!info) { return; @@ -2153,6 +2892,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (info.module) { NativeModules[info.name] = info.module; } + // If there's no module config, define a lazy getter else { defineLazyObjectProperty(NativeModules, info.name, { get: function get() { @@ -2163,65 +2903,92 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } module.exports = NativeModules; -},18,[19,17,23,30],"node_modules/react-native/Libraries/BatchedBridge/NativeModules.js"); +},21,[22,20,26,33],"node_modules/react-native/Libraries/BatchedBridge/NativeModules.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _slicedToArray(arr, i) { return _$$_REQUIRE(_dependencyMap[0], "./arrayWithHoles.js")(arr) || _$$_REQUIRE(_dependencyMap[1], "./iterableToArrayLimit.js")(arr, i) || _$$_REQUIRE(_dependencyMap[2], "./unsupportedIterableToArray.js")(arr, i) || _$$_REQUIRE(_dependencyMap[3], "./nonIterableRest.js")(); } module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; -},19,[20,21,10,22],"node_modules/@babel/runtime/helpers/slicedToArray.js"); +},22,[23,24,10,25],"node_modules/@babel/runtime/helpers/slicedToArray.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; -},20,[],"node_modules/@babel/runtime/helpers/arrayWithHoles.js"); +},23,[],"node_modules/@babel/runtime/helpers/arrayWithHoles.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _iterableToArrayLimit(arr, i) { - var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; - if (_i == null) return; - var _arr = []; - var _n = true; - var _d = false; - var _s, _e; - try { - for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { + function _iterableToArrayLimit(r, l) { + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (null != t) { + var e, + n, + i, + u, + a = [], + f = !0, + o = !1; try { - if (!_n && _i["return"] != null) _i["return"](); + if (i = (t = t.call(r)).next, 0 === l) { + if (Object(t) !== t) return; + f = !1; + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); + } catch (r) { + o = !0, n = r; } finally { - if (_d) throw _e; + try { + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; + } finally { + if (o) throw n; + } } + return a; } - return _arr; } module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; -},21,[],"node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); +},24,[],"node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; -},22,[],"node_modules/@babel/runtime/helpers/nonIterableRest.js"); +},25,[],"node_modules/@babel/runtime/helpers/nonIterableRest.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; var BatchedBridge = new (_$$_REQUIRE(_dependencyMap[0], "./MessageQueue"))(); + // Wire up the batched bridge on the global object so that we can call into it. + // Ideally, this would be the inverse relationship. I.e. the native environment + // provides this global directly with its script embedded. Then this module + // would export it. A possible fix would be to trim the dependencies in + // MessageQueue to its minimal features and embed that in the native runtime. + Object.defineProperty(global, '__fbBatchedBridge', { configurable: true, value: BatchedBridge }); module.exports = BatchedBridge; -},23,[24],"node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js"); +},26,[27],"node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -2232,9 +2999,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var PARAMS = 2; var MIN_TIME_BETWEEN_FLUSHES_MS = 5; + // eslint-disable-next-line no-bitwise var TRACE_TAG_REACT_APPS = 1 << 17; var DEBUG_INFO_LIMIT = 32; - var MessageQueue = function () { + var MessageQueue = /*#__PURE__*/function () { function MessageQueue() { _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, MessageQueue); this._lazyCallableModules = {}; @@ -2251,14 +3019,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._remoteMethodTable = {}; } + // $FlowFixMe[cannot-write] this.callFunctionReturnFlushedQueue = + // $FlowFixMe[method-unbinding] added when improving typing for this parameters this.callFunctionReturnFlushedQueue.bind(this); + // $FlowFixMe[cannot-write] + // $FlowFixMe[method-unbinding] added when improving typing for this parameters this.flushedQueue = this.flushedQueue.bind(this); + // $FlowFixMe[cannot-write] this.invokeCallbackAndReturnFlushedQueue = + // $FlowFixMe[method-unbinding] added when improving typing for this parameters this.invokeCallbackAndReturnFlushedQueue.bind(this); } + /** + * Public APIs + */ _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(MessageQueue, [{ key: "callFunctionReturnFlushedQueue", value: function callFunctionReturnFlushedQueue(module, method, args) { @@ -2310,6 +3087,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e module = getValue(); getValue = null; } + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ return module; }; } @@ -2349,10 +3128,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e method: method }; }); - _$$_REQUIRE(_dependencyMap[3], "../Utilities/warnOnce")('excessive-number-of-pending-callbacks', "Please report: Excessive number of pending callbacks: " + this._successCallbacks.size + ". Some pending callbacks that might have leaked by never being called from native code: " + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(info)); + _$$_REQUIRE(_dependencyMap[3], "../Utilities/warnOnce")('excessive-number-of-pending-callbacks', `Excessive number of pending callbacks: ${this._successCallbacks.size}. Some pending callbacks that might have leaked by never being called from native code: ${_$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(info)}`); } } + // Encode callIDs into pairs of callback identifiers by shifting left and using the rightmost bit + // to indicate fail (0) or success (1) + // eslint-disable-next-line no-bitwise onFail && params.push(this._callID << 1); + // eslint-disable-next-line no-bitwise onSucc && params.push(this._callID << 1 | 1); this._successCallbacks.set(this._callID, onSucc); this._failureCallbacks.set(this._callID, onFail); @@ -2369,6 +3152,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._queue[MODULE_IDS].push(moduleID); this._queue[METHOD_IDS].push(methodID); if (__DEV__) { + // Validate that parameters passed over the bridge are + // folly-convertible. As a special case, if a prop value is a + // function it is permitted here, and special-cased in the + // conversion. var isValidArgument = function isValidArgument(val) { switch (typeof val) { case 'undefined': @@ -2397,6 +3184,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + // Replacement allows normally non-JSON-convertible values to be + // seen. There is ambiguity with string values, but in context, + // it should at least be a strong hint. var replacer = function replacer(key, val) { var t = typeof val; if (t === 'function') { @@ -2408,8 +3198,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + // Note that JSON.stringify _$$_REQUIRE(_dependencyMap[2], "invariant")(isValidArgument(params), '%s is not usable as a native method argument', JSON.stringify(params, replacer)); + // The params object should not be mutated after being queued _$$_REQUIRE(_dependencyMap[5], "../Utilities/deepFreezeAndThrowOnMutationInDev")(params); } this._queue[PARAMS].push(params); @@ -2422,6 +3214,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").counterEvent('pending_js_to_native_queue', this._queue[0].length); if (__DEV__ && this.__spy && isFinite(moduleID)) { + // $FlowFixMe[not-a-function] this.__spy({ type: TO_NATIVE, module: this._remoteModuleTable[moduleID], @@ -2446,18 +3239,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // For JSTimers to register its callback. Otherwise a circular dependency + // between modules is introduced. Note that only one callback may be + // registered at a time. }, { key: "setReactNativeMicrotasksCallback", - value: - function setReactNativeMicrotasksCallback(fn) { + value: function setReactNativeMicrotasksCallback(fn) { this._reactNativeMicrotasksCallback = fn; } + /** + * Private methods + */ }, { key: "__guard", - value: - - function __guard(fn) { + value: function __guard(fn) { if (this.__shouldPauseOnThrow()) { fn(); } else { @@ -2469,12 +3265,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // MessageQueue installs a global handler to catch all exceptions where JS users can register their own behavior + // This handler makes all exceptions to be propagated from inside MessageQueue rather than by the VM at their origin + // This makes stacktraces to be placed at MessageQueue rather than at where they were launched + // The parameter DebuggerInternal.shouldPauseOnThrow is used to check before catching all exceptions and + // can be configured by the VM or any Inspector }, { key: "__shouldPauseOnThrow", - value: - function __shouldPauseOnThrow() { + value: function __shouldPauseOnThrow() { return ( - typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true + // $FlowFixMe[cannot-resolve-name] + typeof DebuggerInternal !== 'undefined' && + // $FlowFixMe[cannot-resolve-name] + DebuggerInternal.shouldPauseOnThrow === true ); } }, { @@ -2492,9 +3295,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._lastFlush = Date.now(); this._eventLoopStartTime = this._lastFlush; if (__DEV__ || this.__spy) { - _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(module + "." + method + "(" + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + ")"); + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(`${module}.${method}(${_$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args)})`); } else { - _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(module + "." + method + "(...)"); + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(`${module}.${method}(...)`); } if (this.__spy) { this.__spy({ @@ -2509,10 +3312,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var callableModuleNames = Object.keys(this._lazyCallableModules); var n = callableModuleNames.length; var callableModuleNameList = callableModuleNames.join(', '); - _$$_REQUIRE(_dependencyMap[2], "invariant")(false, "Failed to call into JavaScript module method " + module + "." + method + "(). Module has not been registered as callable. Registered callable JavaScript modules (n = " + n + "): " + callableModuleNameList + ".\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."); + + // TODO(T122225939): Remove after investigation: Why are we getting to this line in bridgeless mode? + var isBridgelessMode = global.RN$Bridgeless === true ? 'true' : 'false'; + _$$_REQUIRE(_dependencyMap[2], "invariant")(false, `Failed to call into JavaScript module method ${module}.${method}(). Module has not been registered as callable. Bridgeless Mode: ${isBridgelessMode}. Registered callable JavaScript modules (n = ${n}): ${callableModuleNameList}. + 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.`); } if (!moduleMethods[method]) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(false, "Failed to call into JavaScript module method " + module + "." + method + "(). Module exists, but the method is undefined."); + _$$_REQUIRE(_dependencyMap[2], "invariant")(false, `Failed to call into JavaScript module method ${module}.${method}(). Module exists, but the method is undefined.`); } moduleMethods[method].apply(moduleMethods, args); _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").endEvent(); @@ -2523,14 +3330,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._lastFlush = Date.now(); this._eventLoopStartTime = this._lastFlush; + // The rightmost bit of cbID indicates fail (0) or success (1), the other bits are the callID shifted left. + // eslint-disable-next-line no-bitwise var callID = cbID >>> 1; + // eslint-disable-next-line no-bitwise var isSuccess = cbID & 1; var callback = isSuccess ? this._successCallbacks.get(callID) : this._failureCallbacks.get(callID); if (__DEV__) { var debug = this._debugInfo[callID]; var _module = debug && this._remoteModuleTable[debug[0]]; var method = debug && this._remoteMethodTable[debug[0]][debug[1]]; - _$$_REQUIRE(_dependencyMap[2], "invariant")(callback, "No callback found with cbID " + cbID + " and callID " + callID + " for " + (method ? " " + _module + "." + method + " - most likely the callback was already invoked" : "module " + (_module || '')) + (". Args: '" + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + "'")); + _$$_REQUIRE(_dependencyMap[2], "invariant")(callback, `No callback found with cbID ${cbID} and callID ${callID} for ` + (method ? ` ${_module}.${method} - most likely the callback was already invoked` : `module ${_module || ''}`) + `. Args: '${_$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args)}'`); var profileName = debug ? '' : cbID; if (callback && this.__spy) { this.__spy({ @@ -2540,7 +3350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e args: args }); } - _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent("MessageQueue.invokeCallback(" + profileName + ", " + _$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args) + ")"); + _$$_REQUIRE(_dependencyMap[6], "../Performance/Systrace").beginEvent(`MessageQueue.invokeCallback(${profileName}, ${_$$_REQUIRE(_dependencyMap[4], "../Utilities/stringifySafe").default(args)})`); } if (!callback) { return; @@ -2554,12 +3364,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }], [{ key: "spy", - value: - - function spy(spyOrToggle) { + value: function spy(spyOrToggle) { if (spyOrToggle === true) { MessageQueue.prototype.__spy = function (info) { - console.log((info.type === TO_JS ? 'N->JS' : 'JS->N') + " : " + ("" + (info.module != null ? info.module + '.' : '') + info.method) + ("(" + JSON.stringify(info.args) + ")")); + console.log(`${info.type === TO_JS ? 'N->JS' : 'JS->N'} : ` + `${info.module != null ? info.module + '.' : ''}${info.method}` + `(${JSON.stringify(info.args)})`); }; } else if (spyOrToggle === false) { MessageQueue.prototype.__spy = null; @@ -2571,13 +3379,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return MessageQueue; }(); module.exports = MessageQueue; -},24,[12,13,17,25,26,27,28,29,6],"node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js"); +},27,[12,13,20,28,29,30,31,32,6],"node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; var warnedKeys = {}; + /** + * A simple function that prints a warning message once per session. + * + * @param {string} key - The key used to ensure the message is printed once. + * This should be unique to the callsite. + * @param {string} message - The message to print + */ function warnOnce(key, message) { if (warnedKeys[key]) { return; @@ -2586,7 +3410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e warnedKeys[key] = true; } module.exports = warnOnce; -},25,[],"node_modules/react-native/Libraries/Utilities/warnOnce.js"); +},28,[],"node_modules/react-native/Libraries/Utilities/warnOnce.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -2594,7 +3418,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.createStringifySafeWithLimits = createStringifySafeWithLimits; exports.default = void 0; var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * Tries to stringify with JSON.stringify and toString, but catches exceptions + * (e.g. from circular objects) and always returns a string and never throws. + */ function createStringifySafeWithLimits(limits) { var _limits$maxDepth = limits.maxDepth, maxDepth = _limits$maxDepth === void 0 ? Number.POSITIVE_INFINITY : _limits$maxDepth, @@ -2605,6 +3442,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _limits$maxObjectKeys = limits.maxObjectKeysLimit, maxObjectKeysLimit = _limits$maxObjectKeys === void 0 ? Number.POSITIVE_INFINITY : _limits$maxObjectKeys; var stack = []; + /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by + * Flow's LTI update could not be added via codemod */ function replacer(key, value) { while (stack.length && this !== stack[0]) { stack.shift(); @@ -2622,16 +3461,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var retval = value; if (Array.isArray(value)) { if (stack.length >= maxDepth) { - retval = "[ ... array with " + value.length + " values ... ]"; + retval = `[ ... array with ${value.length} values ... ]`; } else if (value.length > maxArrayLimit) { - retval = value.slice(0, maxArrayLimit).concat(["... extra " + (value.length - maxArrayLimit) + " values truncated ..."]); + retval = value.slice(0, maxArrayLimit).concat([`... extra ${value.length - maxArrayLimit} values truncated ...`]); } } else { + // Add refinement after Array.isArray call. (0, _invariant.default)(typeof value === 'object', 'This was already found earlier'); var keys = Object.keys(value); if (stack.length >= maxDepth) { - retval = "{ ... object with " + keys.length + " keys ... }"; + retval = `{ ... object with ${keys.length} keys ... }`; } else if (keys.length > maxObjectKeysLimit) { + // Return a sample of the keys. retval = {}; for (var k of keys.slice(0, maxObjectKeysLimit)) { retval[k] = value[k]; @@ -2657,6 +3498,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (arg instanceof Error) { return arg.name + ': ' + arg.message; } else { + // Perform a try catch, just in case the object has a circular + // reference or stringify throws for some other reason. try { var ret = JSON.stringify(arg, replacer); if (ret === undefined) { @@ -2666,6 +3509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (e) { if (typeof arg.toString === 'function') { try { + // $FlowFixMe[incompatible-use] : toString shouldn't take any arguments in general. return arg.toString(); } catch (E) {} } @@ -2682,18 +3526,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = stringifySafe; exports.default = _default; -},26,[3,17],"node_modules/react-native/Libraries/Utilities/stringifySafe.js"); +},29,[3,20],"node_modules/react-native/Libraries/Utilities/stringifySafe.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + /** + * If your application is accepting different values for the same field over + * time and is doing a diff on them, you can either (1) create a copy or + * (2) ensure that those values are not mutated behind two passes. + * This function helps you with (2) by freezing the object and throwing if + * the user subsequently modifies the value. + * + * There are two caveats with this function: + * - If the call site is not in strict mode, it will only throw when + * mutating existing fields, adding a new one + * will unfortunately fail silently :( + * - If the object is already frozen or sealed, it will not continue the + * deep traversal and will leave leaf nodes unfrozen. + * + * Freezing the object and adding the throw mechanism is expensive and will + * only be used in DEV. + */ function deepFreezeAndThrowOnMutationInDev(object) { if (__DEV__) { if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) { return object; } + // $FlowFixMe[not-an-object] `object` can be an array, but Object.keys works with arrays too var keys = Object.keys(object); + // $FlowFixMe[method-unbinding] added when improving typing for this parameters var _hasOwnProperty = Object.prototype.hasOwnProperty; for (var i = 0; i < keys.length; i++) { var key = keys[i]; @@ -2718,6 +3590,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return object; } + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ function throwOnImmutableMutation(key, value) { throw Error('You attempted to set the key `' + key + '` with the value `' + JSON.stringify(value) + '` on an object that is meant to be immutable ' + 'and has been frozen.'); } @@ -2725,146 +3599,168 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return value; } module.exports = deepFreezeAndThrowOnMutationInDev; -},27,[],"node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js"); +},30,[],"node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.beginAsyncEvent = beginAsyncEvent; + exports.beginEvent = beginEvent; + exports.counterEvent = counterEvent; + exports.endAsyncEvent = endAsyncEvent; + exports.endEvent = endEvent; + exports.isEnabled = isEnabled; + exports.setEnabled = setEnabled; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - 'use strict'; - - var TRACE_TAG_REACT_APPS = 1 << 17; - var TRACE_TAG_JS_VM_CALLS = 1 << 27; + var TRACE_TAG_REACT_APPS = 1 << 17; // eslint-disable-line no-bitwise - var _enabled = false; var _asyncCookie = 0; - var _markStack = []; - var _markStackIndex = -1; - var _canInstallReactHook = false; - - var REACT_MARKER = "\u269B"; - var userTimingPolyfill = __DEV__ ? { - mark: function mark(markName) { - if (_enabled) { - _markStackIndex++; - _markStack[_markStackIndex] = markName; - var systraceLabel = markName; - if (markName[0] === REACT_MARKER) { - var indexOfId = markName.lastIndexOf(' (#'); - var cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length; - systraceLabel = markName.slice(2, cutoffIndex); - } - Systrace.beginEvent(systraceLabel); - } - }, - measure: function measure(measureName, startMark, endMark) { - if (_enabled) { - _$$_REQUIRE(_dependencyMap[0], "invariant")(typeof measureName === 'string' && typeof startMark === 'string' && typeof endMark === 'undefined', 'Only performance.measure(string, string) overload is supported.'); - var topMark = _markStack[_markStackIndex]; - _$$_REQUIRE(_dependencyMap[0], "invariant")(startMark === topMark, 'There was a mismatching performance.measure() call. ' + 'Expected "%s" but got "%s."', topMark, startMark); - _markStackIndex--; - Systrace.endEvent(); - } - }, - clearMarks: function clearMarks(markName) { - if (_enabled) { - if (_markStackIndex === -1) { - return; - } - if (markName === _markStack[_markStackIndex]) { - if (userTimingPolyfill != null) { - userTimingPolyfill.measure(markName, markName); - } - } - } - }, - clearMeasures: function clearMeasures() { + /** + * Indicates if the application is currently being traced. + * + * Calling methods on this module when the application isn't being traced is + * cheap, but this method can be used to avoid computing expensive values for + * those functions. + * + * @example + * if (Systrace.isEnabled()) { + * const expensiveArgs = computeExpensiveArgs(); + * Systrace.beginEvent('myEvent', expensiveArgs); + * } + */ + function isEnabled() { + return global.nativeTraceIsTracing ? global.nativeTraceIsTracing(TRACE_TAG_REACT_APPS) : Boolean(global.__RCTProfileIsProfiling); + } + + /** + * @deprecated This function is now a no-op but it's left for backwards + * compatibility. `isEnabled` will now synchronously check if we're actively + * profiling or not. This is necessary because we don't have callbacks to know + * when profiling has started/stopped on Android APIs. + */ + function setEnabled(_doEnable) {} + + /** + * Marks the start of a synchronous event that should end in the same stack + * frame. The end of this event should be marked using the `endEvent` function. + */ + function beginEvent(eventName, args) { + if (isEnabled()) { + var eventNameString = typeof eventName === 'function' ? eventName() : eventName; + global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, eventNameString, args); } - } : null; - function installPerformanceHooks(polyfill) { - if (polyfill) { - if (global.performance === undefined) { - global.performance = {}; - } - Object.keys(polyfill).forEach(function (methodName) { - if (typeof global.performance[methodName] !== 'function') { - global.performance[methodName] = polyfill[methodName]; - } - }); + } + + /** + * Marks the end of a synchronous event started in the same stack frame. + */ + function endEvent(args) { + if (isEnabled()) { + global.nativeTraceEndSection(TRACE_TAG_REACT_APPS, args); } } - var Systrace = { - installReactHook: function installReactHook() { - if (_enabled) { - if (__DEV__) { - installPerformanceHooks(userTimingPolyfill); - } - } - _canInstallReactHook = true; - }, - setEnabled: function setEnabled(enabled) { - if (_enabled !== enabled) { - if (__DEV__) { - if (enabled) { - global.nativeTraceBeginLegacy && global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS); - } else { - global.nativeTraceEndLegacy && global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS); - } - if (_canInstallReactHook) { - if (enabled) { - installPerformanceHooks(userTimingPolyfill); - } - } - } - _enabled = enabled; - } - }, - isEnabled: function isEnabled() { - return _enabled; - }, - beginEvent: function beginEvent(profileName, args) { - if (_enabled) { - var profileNameString = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileNameString, args); - } - }, - endEvent: function endEvent() { - if (_enabled) { - global.nativeTraceEndSection(TRACE_TAG_REACT_APPS); - } - }, - beginAsyncEvent: function beginAsyncEvent(profileName) { - var cookie = _asyncCookie; - if (_enabled) { - _asyncCookie++; - var profileNameString = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileNameString, cookie); - } - return cookie; - }, - endAsyncEvent: function endAsyncEvent(profileName, cookie) { - if (_enabled) { - var profileNameString = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileNameString, cookie); - } - }, - counterEvent: function counterEvent(profileName, value) { - if (_enabled) { - var profileNameString = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceCounter && global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileNameString, value); - } + + /** + * Marks the start of a potentially asynchronous event. The end of this event + * should be marked calling the `endAsyncEvent` function with the cookie + * returned by this function. + */ + function beginAsyncEvent(eventName, args) { + var cookie = _asyncCookie; + if (isEnabled()) { + _asyncCookie++; + var eventNameString = typeof eventName === 'function' ? eventName() : eventName; + global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, eventNameString, cookie, args); } - }; + return cookie; + } + + /** + * Marks the end of a potentially asynchronous event, which was started with + * the given cookie. + */ + function endAsyncEvent(eventName, cookie, args) { + if (isEnabled()) { + var eventNameString = typeof eventName === 'function' ? eventName() : eventName; + global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, eventNameString, cookie, args); + } + } + + /** + * Registers a new value for a counter event. + */ + function counterEvent(eventName, value) { + if (isEnabled()) { + var eventNameString = typeof eventName === 'function' ? eventName() : eventName; + global.nativeTraceCounter && global.nativeTraceCounter(TRACE_TAG_REACT_APPS, eventNameString, value); + } + } if (__DEV__) { + var Systrace = { + isEnabled: isEnabled, + setEnabled: setEnabled, + beginEvent: beginEvent, + endEvent: endEvent, + beginAsyncEvent: beginAsyncEvent, + endAsyncEvent: endAsyncEvent, + counterEvent: counterEvent + }; + + // The metro require polyfill can not have dependencies (true for all polyfills). + // Ensure that `Systrace` is available in polyfill by exposing it globally. global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__SYSTRACE'] = Systrace; } - module.exports = Systrace; -},28,[17],"node_modules/react-native/Libraries/Performance/Systrace.js"); +},31,[],"node_modules/react-native/Libraries/Performance/Systrace.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * The particular require runtime that we are using looks for a global + * `ErrorUtils` object and if it exists, then it requires modules with the + * error handler specified via ErrorUtils.setGlobalHandler by calling the + * require function with applyWithGuard. Since the require module is loaded + * before any of the modules, this ErrorUtils must be defined (and the handler + * set) globally before requiring anything. + * + * However, we still want to treat ErrorUtils as a module so that other modules + * that use it aren't just using a global variable, so simply export the global + * variable here. ErrorUtils is originally defined in a file named error-guard.js. + */ module.exports = global.ErrorUtils; -},29,[],"node_modules/react-native/Libraries/vendor/core/ErrorUtils.js"); +},32,[],"node_modules/react-native/Libraries/vendor/core/ErrorUtils.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + /** + * Defines a lazily evaluated property on the supplied `object`. + */ function defineLazyObjectProperty(object, name, descriptor) { var get = descriptor.get; var enumerable = descriptor.enumerable !== false; @@ -2872,7 +3768,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var value; var valueSet = false; function getValue() { + // WORKAROUND: A weird infinite loop occurs where calling `getValue` calls + // `setValue` which calls `Object.defineProperty` which somehow triggers + // `getValue` again. Adding `valueSet` breaks this loop. if (!valueSet) { + // Calling `get()` here can trigger an infinite loop if it fails to + // remove the getter on the property, which can happen when executing + // JS in a V8 context. `valueSet = true` will break this loop, and + // sets the value of the property to undefined, until the code in `get()` + // finishes, at which point the property is set to the correct value. valueSet = true; setValue(get()); } @@ -2896,7 +3800,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } module.exports = defineLazyObjectProperty; -},30,[],"node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js"); +},33,[],"node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAccessibilityManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /** + * This is a function exposed to the React Renderer that can be used by the + * pre-Fabric renderer to emit accessibility events to pre-Fabric nodes. + */ + function legacySendAccessibilityEvent(reactTag, eventType) { + if (eventType === 'focus' && _NativeAccessibilityManager.default) { + _NativeAccessibilityManager.default.setAccessibilityFocus(reactTag); + } + } + module.exports = legacySendAccessibilityEvent; +},34,[3,35],"node_modules/react-native/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -2905,9 +3832,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('AccessibilityInfo'); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('AccessibilityManager'); exports.default = _default; -},31,[16],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js"); +},35,[19],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -2916,32 +3852,144 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('AccessibilityManager'); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('AccessibilityInfo'); exports.default = _default; -},32,[16],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js"); +},36,[19],"node_modules/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeAccessibilityManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAccessibilityManager")); + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0], "./RendererImplementation")).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0], "./RendererImplementation")[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0], "./RendererImplementation")[key]; + } + }); + }); +},37,[38],"node_modules/react-native/Libraries/ReactNative/RendererProxy.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.dispatchCommand = dispatchCommand; + exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; + exports.findNodeHandle = findNodeHandle; + exports.isProfilingRenderer = isProfilingRenderer; + exports.renderElement = renderElement; + exports.sendAccessibilityEvent = sendAccessibilityEvent; + exports.unmountComponentAtNodeAndRemoveContainer = unmountComponentAtNodeAndRemoveContainer; + exports.unstable_batchedUpdates = unstable_batchedUpdates; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function legacySendAccessibilityEvent(reactTag, eventType) { - if (eventType === 'focus' && _NativeAccessibilityManager.default) { - _NativeAccessibilityManager.default.setAccessibilityFocus(reactTag); + function renderElement(_ref) { + var element = _ref.element, + rootTag = _ref.rootTag, + useFabric = _ref.useFabric, + useConcurrentRoot = _ref.useConcurrentRoot; + if (useFabric) { + _$$_REQUIRE(_dependencyMap[0], "../Renderer/shims/ReactFabric").render(element, rootTag, null, useConcurrentRoot); + } else { + _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").render(element, rootTag); } } - module.exports = legacySendAccessibilityEvent; -},33,[3,32],"node_modules/react-native/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js"); + function findHostInstance_DEPRECATED(componentOrHandle) { + return _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").findHostInstance_DEPRECATED(componentOrHandle); + } + function findNodeHandle(componentOrHandle) { + return _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").findNodeHandle(componentOrHandle); + } + function dispatchCommand(handle, command, args) { + if (global.RN$Bridgeless === true) { + // Note: this function has the same implementation in the legacy and new renderer. + // However, evaluating the old renderer comes with some side effects. + return _$$_REQUIRE(_dependencyMap[0], "../Renderer/shims/ReactFabric").dispatchCommand(handle, command, args); + } else { + return _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").dispatchCommand(handle, command, args); + } + } + function sendAccessibilityEvent(handle, eventType) { + return _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").sendAccessibilityEvent(handle, eventType); + } + + /** + * This method is used by AppRegistry to unmount a root when using the old + * React Native renderer (Paper). + */ + function unmountComponentAtNodeAndRemoveContainer(rootTag) { + // $FlowExpectedError[incompatible-type] rootTag is an opaque type so we can't really cast it as is. + var rootTagAsNumber = rootTag; + _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").unmountComponentAtNodeAndRemoveContainer(rootTagAsNumber); + } + function unstable_batchedUpdates(fn, bookkeeping) { + // This doesn't actually do anything when batching updates for a Fabric root. + return _$$_REQUIRE(_dependencyMap[1], "../Renderer/shims/ReactNative").unstable_batchedUpdates(fn, bookkeeping); + } + function isProfilingRenderer() { + return Boolean(__DEV__); + } +},38,[39,411],"node_modules/react-native/Libraries/ReactNative/RendererImplementation.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @noformat + * + * @generated SignedSource<> + * + * This file was sync'd from the facebook/react repository. + */ 'use strict'; - var ReactNative; + var ReactFabric; if (__DEV__) { - ReactNative = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactNativeRenderer-dev"); + ReactFabric = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactFabric-dev"); } else { - ReactNative = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactNativeRenderer-prod"); + ReactFabric = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactFabric-prod"); } - module.exports = ReactNative; -},34,[35,242],"node_modules/react-native/Libraries/Renderer/shims/ReactNative.js"); + if (global.RN$Bridgeless) { + global.RN$stopSurface = ReactFabric.stopSurface; + } else { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); + } + module.exports = ReactFabric; +},39,[40,467,276],"node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @nolint + * @providesModule ReactFabric-dev + * @preventMunge + * @generated SignedSource<<343bc15819bccf8610b6ff32fcb59b21>> + */ 'use strict'; @@ -2949,6 +3997,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (function () { 'use strict'; + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } @@ -2959,6 +4008,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Scheduler = _$$_REQUIRE(_dependencyMap[3], "scheduler"); var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + // by calls to these methods by a Babel plugin. + // + // In PROD (or in packages without access to React internals), + // they are left as they are instead. + function warn(format) { { { @@ -2980,19 +4034,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== "") { format += "%s"; args = args.concat([stack]); - } + } // eslint-disable-next-line react-internal/safe-string-coercion var argsWithFormat = args.map(function (item) { return String(item); - }); + }); // Careful: RN currently depends on this prefix - argsWithFormat.unshift("Warning: " + format); + argsWithFormat.unshift("Warning: " + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } @@ -3007,27 +4065,68 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; { + // In DEV mode, we swap out invokeGuardedCallback for a special version + // that plays more nicely with the browser's DevTools. The idea is to preserve + // "Pause on exceptions" behavior. Because React wraps all user-provided + // functions in invokeGuardedCallback, and the production version of + // invokeGuardedCallback uses a try-catch, all user exceptions are treated + // like caught exceptions, and the DevTools won't pause unless the developer + // takes the extra step of enabling pause on caught exceptions. This is + // unintuitive, though, because even though React has caught the error, from + // the developer's perspective, the error is uncaught. + // + // To preserve the expected "Pause on exceptions" behavior, we don't use a + // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake + // DOM node, and call the user-provided callback from inside an event handler + // for that fake event. If the callback throws, the error is "captured" using + // a global event handler. But because the error happens in a different + // event loop context, it does not interrupt the normal program flow. + // Effectively, this gives us try-catch behavior without actually using + // try-catch. Neat! + // Check that the browser supports the APIs we need to implement our special + // DEV version of invokeGuardedCallback if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { var fakeNode = document.createElement("react"); invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + // If document doesn't exist we know for sure we will crash in this method + // when we call document.createEvent(). However this can cause confusing + // errors: https://github.com/facebook/create-react-app/issues/3482 + // So we preemptively throw with a better message instead. if (typeof document === "undefined" || document === null) { throw new Error("The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); } var evt = document.createEvent("Event"); - var didCall = false; + var didCall = false; // Keeps track of whether the user-provided callback threw an error. We + // set this to true at the beginning, then set it to false right after + // calling the function. If the function errors, `didError` will never be + // set to false. This strategy works even if the browser is flaky and + // fails to call our global error handler, because it doesn't rely on + // the error event at all. - var didError = true; + var didError = true; // Keeps track of the value of window.event so that we can reset it + // during the callback to let user code access window.event in the + // browsers that support it. - var windowEvent = window.event; + var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event + // dispatching: https://github.com/facebook/react/issues/13688 var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); function restoreAfterDispatch() { - fakeNode.removeEventListener(evtType, callCallback, false); + // We immediately remove the callback from event listeners so that + // nested `invokeGuardedCallback` calls do not clash. Otherwise, a + // nested call would trigger the fake event handlers of any call higher + // in the stack. + fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the + // window.event assignment in both IE <= 10 as they throw an error + // "Member not found" in strict mode, and in Firefox which does not + // support window.event. if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { window.event = windowEvent; } - } + } // Create an event handler for our fake event. We will synchronously + // dispatch our fake event using `dispatchEvent`. Inside the handler, we + // call the user-provided callback. var funcArgs = Array.prototype.slice.call(arguments, 3); function callCallback() { @@ -3035,9 +4134,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e restoreAfterDispatch(); func.apply(context, funcArgs); didError = false; - } - - var error; + } // Create a global error event handler. We use this to capture the value + // that was thrown. It's possible that this error handler will fire more + // than once; for example, if non-React code also calls `dispatchEvent` + // and a handler for that event throws. We should be resilient to most of + // those cases. Even if our error event handler fires more than once, the + // last error event is always used. If the callback actually does error, + // we know that the last error event is the correct one, because it's not + // possible for anything else to have happened in between our callback + // erroring and the code that follows the `dispatchEvent` call below. If + // the callback doesn't error, but the error event was fired, we know to + // ignore it because `didError` will be false, as described above. + + var error; // Use this to track whether the error event is ever called. var didSetError = false; var isCrossOriginError = false; @@ -3048,19 +4157,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isCrossOriginError = true; } if (event.defaultPrevented) { + // Some other error handler has prevented default. + // Browsers silence the error report if this happens. + // We'll remember this to later decide whether to log it or not. if (error != null && typeof error === "object") { try { error._suppressLogging = true; } catch (inner) { + // Ignore. } } } - } + } // Create a fake event type. - var evtType = "react-" + (name ? name : "invokeguardedcallback"); + var evtType = "react-" + (name ? name : "invokeguardedcallback"); // Attach our event handlers window.addEventListener("error", handleWindowError); - fakeNode.addEventListener(evtType, callCallback, false); + fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function + // errors, it will trigger our global error handler. evt.initEvent(evtType, false, false); fakeNode.dispatchEvent(evt); @@ -3069,15 +4183,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (didCall && didError) { if (!didSetError) { + // The callback errored, but the error event never fired. + // eslint-disable-next-line react-internal/prod-error-codes error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); } else if (isCrossOriginError) { + // eslint-disable-next-line react-internal/prod-error-codes error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://reactjs.org/link/crossorigin-error for more information."); } this.onError(error); - } + } // Remove our event listeners window.removeEventListener("error", handleWindowError); if (!didCall) { + // Something went really wrong, and our event was not dispatched. + // https://github.com/facebook/react/issues/16734 + // https://github.com/facebook/react/issues/16585 + // Fall back to the production implementation. restoreAfterDispatch(); return invokeGuardedCallbackProd.apply(this, arguments); } @@ -3086,7 +4207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; var hasError = false; - var caughtError = null; + var caughtError = null; // Used by event system to capture/rethrow the first error. var hasRethrowError = false; var rethrowError = null; @@ -3096,12 +4217,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e caughtError = error; } }; + /** + * Call a function while guarding against errors that happens within it. + * Returns an error if it throws, otherwise null. + * + * In production, this is implemented using a try-catch. The reason we don't + * use a try-catch directly is so that we can swap out a different + * implementation in DEV mode. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { hasError = false; caughtError = null; invokeGuardedCallbackImpl$1.apply(reporter, arguments); } + /** + * Same as invokeGuardedCallback, but instead of returning an error, it stores + * it in a global so it can be rethrown by `rethrowCaughtError` later. + * TODO: See if caughtError and rethrowError can be unified. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { invokeGuardedCallback.apply(this, arguments); @@ -3113,6 +4257,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * During execution of guarded functions we will capture the first error which + * we will rethrow to be handled by the top level error handler. + */ function rethrowCaughtError() { if (hasRethrowError) { @@ -3135,7 +4283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); } } - var isArrayImpl = Array.isArray; + var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare function isArray(a) { return isArrayImpl(a); @@ -3167,6 +4315,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } + /** + * Dispatch the event to the listener. + * @param {SyntheticEvent} event SyntheticEvent to handle + * @param {function} listener Application-level callback + * @param {*} inst Internal component instance + */ function executeDispatch(event, listener, inst) { var type = event.type || "unknown-event"; @@ -3174,6 +4328,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); event.currentTarget = null; } + /** + * Standard/simple iteration through an event's collected dispatches. + */ function executeDispatchesInOrder(event) { var dispatchListeners = event._dispatchListeners; @@ -3185,7 +4342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = 0; i < dispatchListeners.length; i++) { if (event.isPropagationStopped()) { break; - } + } // Listeners and Instances are two parallel arrays that are always in sync. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); } @@ -3195,6 +4352,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e event._dispatchListeners = null; event._dispatchInstances = null; } + /** + * Standard/simple iteration through an event's collected dispatches, but stops + * at the first dispatch execution returning true, and returns that id. + * + * @return {?string} id of the first dispatch execution who's listener returns + * true, or null if no listener returned true. + */ function executeDispatchesInOrderStopAtTrueImpl(event) { var dispatchListeners = event._dispatchListeners; @@ -3206,7 +4370,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = 0; i < dispatchListeners.length; i++) { if (event.isPropagationStopped()) { break; - } + } // Listeners and Instances are two parallel arrays that are always in sync. if (dispatchListeners[i](event, dispatchInstances[i])) { return dispatchInstances[i]; @@ -3219,6 +4383,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return null; } + /** + * @see executeDispatchesInOrderStopAtTrueImpl + */ function executeDispatchesInOrderStopAtTrue(event) { var ret = executeDispatchesInOrderStopAtTrueImpl(event); @@ -3226,6 +4393,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e event._dispatchListeners = null; return ret; } + /** + * Execution of a "direct" dispatch - there must be at most one dispatch + * accumulated on the event or it is considered an error. It doesn't really make + * sense for an event with multiple dispatches (bubbled) to keep track of the + * return values at each dispatch execution, but it does tend to make sense when + * dealing with "direct" dispatches. + * + * @return {*} The return value of executing the single dispatch. + */ function executeDirectDispatch(event) { { @@ -3243,16 +4419,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e event._dispatchInstances = null; return res; } + /** + * @param {SyntheticEvent} event + * @return {boolean} True iff number of dispatches accumulated is greater than 0. + */ function hasDispatches(event) { return !!event._dispatchListeners; } var assign = Object.assign; var EVENT_POOL_SIZE = 10; + /** + * @interface Event + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ var EventInterface = { type: null, target: null, + // currentTarget is set when dispatching; no use in copying it here currentTarget: function currentTarget() { return null; }, @@ -3271,9 +4456,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function functionThatReturnsFalse() { return false; } + /** + * Synthetic events are dispatched by event plugins, typically in response to a + * top-level event delegation handler. + * + * These systems should generally use pooling to reduce the frequency of garbage + * collection. The system should check `isPersistent` to determine whether the + * event should be released into the pool after being dispatched. Users that + * need a persisted event should invoke `persist`. + * + * Synthetic events (and subclasses) implement the DOM Level 3 Events API by + * normalizing browser quirks. Subclasses do not necessarily have to implement a + * DOM interface; custom application-specific events can also subclass this. + * + * @param {object} dispatchConfig Configuration used to dispatch this event. + * @param {*} targetInst Marker identifying the event target. + * @param {object} nativeEvent Native browser event. + * @param {DOMEventTarget} nativeEventTarget Target node. + */ function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { { + // these have a getter/setter for warnings delete this.nativeEvent; delete this.preventDefault; delete this.stopPropagation; @@ -3291,7 +4495,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e continue; } { - delete this[propName]; + delete this[propName]; // this has a getter/setter for warnings } var normalize = Interface[propName]; @@ -3336,14 +4540,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (event.stopPropagation) { event.stopPropagation(); } else if (typeof event.cancelBubble !== "unknown") { + // The ChangeEventPlugin registers a "propertychange" event for + // IE. This event does not support bubbling or cancelling, and + // any references to cancelBubble throw "Member not found". A + // typeof check of "unknown" circumvents this issue (and is also + // IE specific). event.cancelBubble = true; } this.isPropagationStopped = functionThatReturnsTrue; }, + /** + * We release all dispatched `SyntheticEvent`s after each event loop, adding + * them back into the pool. This allows a way to hold onto a reference that + * won't be added back into the pool. + */ persist: function persist() { this.isPersistent = functionThatReturnsTrue; }, + /** + * Checks if this event should be released back into the pool. + * + * @return {boolean} True if this should not be released, false otherwise. + */ isPersistent: functionThatReturnsFalse, + /** + * `PooledClass` looks for `destructor` on each instance it releases. + */ destructor: function destructor() { var Interface = this.constructor.Interface; for (var propName in Interface) { @@ -3368,6 +4590,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); SyntheticEvent.Interface = EventInterface; + /** + * Helper to reduce boilerplate when creating subclasses. + */ SyntheticEvent.extend = function (Interface) { var Super = this; @@ -3386,6 +4611,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Class; }; addEventPoolingTo(SyntheticEvent); + /** + * Helper to nullify syntheticEvent instance properties when destructing + * + * @param {String} propName + * @param {?object} getVal + * @return {object} defineProperty object + */ function getPooledWarningPropertyDefinition(propName, getVal) { function set(val) { @@ -3436,9 +4668,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EventConstructor.release = releasePooledEvent; } + /** + * `touchHistory` isn't actually on the native event, but putting it in the + * interface will ensure that it is cleaned up when pooled/destroyed. The + * `ResponderEventPlugin` will populate it appropriately. + */ + var ResponderSyntheticEvent = SyntheticEvent.extend({ touchHistory: function touchHistory(nativeEvent) { - return null; + return null; // Actually doesn't even look at the native event. } }); @@ -3461,17 +4699,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var moveDependencies = [TOP_TOUCH_MOVE]; var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + /** + * Tracks the position and time of each active touch by `touch.identifier`. We + * should typically only see IDs in the range of 1-20 because IDs get recycled + * when touches end and start again. + */ + var MAX_TOUCH_BANK = 20; var touchBank = []; var touchHistory = { touchBank: touchBank, numberActiveTouches: 0, + // If there is only one active touch, we remember its location. This prevents + // us having to loop through all of the touches all the time in the most + // common case. indexOfSingleActiveTouch: -1, mostRecentTimeStamp: 0 }; function timestampForTouch(touch) { + // The legacy internal implementation provides "timeStamp", which has been + // renamed to "timestamp". Let both work for now while we iron it out + // TODO (evv): rename timeStamp to timestamp in internal code return touch.timeStamp || touch.timestamp; } + /** + * TODO: Instead of making gestures recompute filtered velocity, we could + * include a built in velocity computation that can be reused globally. + */ function createTouchRecord(touch) { return { @@ -3572,6 +4826,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var instrumentationCallback; var ResponderTouchHistoryStore = { + /** + * Registers a listener which can be used to instrument every touch event. + */ instrument: function instrument(callback) { instrumentationCallback = callback; }, @@ -3610,13 +4867,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e touchHistory: touchHistory }; + /** + * Accumulates items that must not be null or undefined. + * + * This is used to conserve memory by avoiding array allocations. + * + * @return {*|array<*>} An accumulation of items. + */ + function accumulate(current, next) { if (next == null) { throw new Error("accumulate(...): Accumulated items must not be null or undefined."); } if (current == null) { return next; - } + } // Both are not empty. Warning: Never call x.concat(y) when you are not + // certain that x is an Array (x could be a string with concat method). if (isArray(current)) { return current.concat(next); @@ -3627,13 +4893,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [current, next]; } + /** + * Accumulates items that must not be null or undefined into the first one. This + * is used to conserve memory by avoiding array allocations, and thus sacrifices + * API cleanness. Since `current` can be null before being passed in and not + * null after this function, make sure to assign it back to `current`: + * + * `a = accumulateInto(a, b);` + * + * This API should be sparingly used. Try `accumulate` for something cleaner. + * + * @return {*|array<*>} An accumulation of items. + */ + function accumulateInto(current, next) { if (next == null) { throw new Error("accumulateInto(...): Accumulated items must not be null or undefined."); } if (current == null) { return next; - } + } // Both are not empty. Warning: Never call x.concat(y) when you are not + // certain that x is an Array (x could be a string with concat method). if (isArray(current)) { if (isArray(next)) { @@ -3644,11 +4924,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return current; } if (isArray(next)) { + // A bit too dangerous to mutate `next`. return [current].concat(next); } return [current, next]; } + /** + * @param {array} arr an "accumulation" of items which is either an Array or + * a single item. Useful when paired with the `accumulate` module. This is a + * simple utility that allows us to reason about a collection of items, but + * handling the case when there is exactly one item (and we do not need to + * allocate an array). + * @param {function} cb Callback invoked with each element or a collection. + * @param {?} [scope] Scope used as `this` in a callback. + */ function forEachAccumulated(arr, cb, scope) { if (Array.isArray(arr)) { arr.forEach(cb, scope); @@ -3658,11 +4948,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var FunctionComponent = 0; var ClassComponent = 1; - var IndeterminateComponent = 2; + var IndeterminateComponent = 2; // Before we know whether it is function or class - var HostRoot = 3; + var HostRoot = 3; // Root of a host tree. Could be nested inside another node. - var HostPortal = 4; + var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. var HostComponent = 5; var HostText = 6; @@ -3685,7 +4975,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var CacheComponent = 24; var TracingMarkerComponent = 25; + /** + * Instance of element that should respond to touch/move types of interactions, + * as indicated explicitly by relevant callbacks. + */ + var responderInst = null; + /** + * Count of current touches. A textInput should become responder iff the + * selection changes while there is a touch on the screen. + */ var trackedTouchCount = 0; var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { @@ -3696,6 +4995,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; var eventTypes = { + /** + * On a `touchStart`/`mouseDown`, is it desired that this element become the + * responder? + */ startShouldSetResponder: { phasedRegistrationNames: { bubbled: "onStartShouldSetResponder", @@ -3703,6 +5006,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, dependencies: startDependencies }, + /** + * On a `scroll`, is it desired that this element become the responder? This + * is usually not needed, but should be used to retroactively infer that a + * `touchStart` had occurred during momentum scroll. During a momentum scroll, + * a touch start will be immediately followed by a scroll event if the view is + * currently scrolling. + * + * TODO: This shouldn't bubble. + */ scrollShouldSetResponder: { phasedRegistrationNames: { bubbled: "onScrollShouldSetResponder", @@ -3710,6 +5022,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, dependencies: [TOP_SCROLL] }, + /** + * On text selection change, should this element become the responder? This + * is needed for text inputs or other views with native selection, so the + * JS view can claim the responder. + * + * TODO: This shouldn't bubble. + */ selectionChangeShouldSetResponder: { phasedRegistrationNames: { bubbled: "onSelectionChangeShouldSetResponder", @@ -3717,6 +5036,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, dependencies: [TOP_SELECTION_CHANGE] }, + /** + * On a `touchMove`/`mouseMove`, is it desired that this element become the + * responder? + */ moveShouldSetResponder: { phasedRegistrationNames: { bubbled: "onMoveShouldSetResponder", @@ -3724,6 +5047,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, dependencies: moveDependencies }, + /** + * Direct responder events dispatched directly to responder. Do not bubble. + */ responderStart: { registrationName: "onResponderStart", dependencies: startDependencies @@ -3756,17 +5082,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e registrationName: "onResponderTerminate", dependencies: [] } - }; + }; // Start of inline: the below functions were inlined from + // EventPropagator.js, as they deviated from ReactDOM's newer + // implementations. function getParent(inst) { do { - inst = inst.return; + inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. + // That is depending on if we want nested subtrees (layers) to bubble + // events to their parent. We could also go through parentNode on the + // host node but that wouldn't work for React Native and doesn't let us + // do the portal feature. } while (inst && inst.tag !== HostComponent); if (inst) { return inst; } return null; } + /** + * Return the lowest common ancestor of A and B, or null if they are in + * different trees. + */ function getLowestCommonAncestor(instA, instB) { var depthA = 0; @@ -3776,17 +5112,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var depthB = 0; for (var tempB = instB; tempB; tempB = getParent(tempB)) { depthB++; - } + } // If A is deeper, crawl up. while (depthA - depthB > 0) { instA = getParent(instA); depthA--; - } + } // If B is deeper, crawl up. while (depthB - depthA > 0) { instB = getParent(instB); depthB--; - } + } // Walk in lockstep until we find a match. var depth = depthA; while (depth--) { @@ -3798,6 +5134,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return null; } + /** + * Return if A is an ancestor of B. + */ function isAncestor(instA, instB) { while (instB) { @@ -3808,6 +5147,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return false; } + /** + * Simulates the traversal of a two-phase, capture/bubble event dispatch. + */ function traverseTwoPhase(inst, fn, arg) { var path = []; @@ -3826,10 +5168,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getListener(inst, registrationName) { var stateNode = inst.stateNode; if (stateNode === null) { + // Work in progress (ex: onload events in incremental mode). return null; } var props = getFiberCurrentPropsFromNode(stateNode); if (props === null) { + // Work in progress. return null; } var listener = props[registrationName]; @@ -3854,6 +5198,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); } } + /** + * Accumulates without regard to direction, does not look for phased + * registration names. Same as `accumulateDirectDispatchesSingle` but without + * requiring that the `dispatchMarker` be the same as the dispatched ID. + */ function accumulateDispatches(inst, ignoredDirection, event) { if (inst && event && event.dispatchConfig.registrationName) { @@ -3865,6 +5214,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Accumulates dispatches on an `SyntheticEvent`, but only for the + * `dispatchMarker`. + * @param {SyntheticEvent} event + */ function accumulateDirectDispatchesSingle(event) { if (event && event.dispatchConfig.registrationName) { @@ -3891,12 +5245,205 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function accumulateTwoPhaseDispatches(events) { forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); - } + } // End of inline + + /** + * + * Responder System: + * ---------------- + * + * - A global, solitary "interaction lock" on a view. + * - If a node becomes the responder, it should convey visual feedback + * immediately to indicate so, either by highlighting or moving accordingly. + * - To be the responder means, that touches are exclusively important to that + * responder view, and no other view. + * - While touches are still occurring, the responder lock can be transferred to + * a new view, but only to increasingly "higher" views (meaning ancestors of + * the current responder). + * + * Responder being granted: + * ------------------------ + * + * - Touch starts, moves, and scrolls can cause an ID to become the responder. + * - We capture/bubble `startShouldSetResponder`/`moveShouldSetResponder` to + * the "appropriate place". + * - If nothing is currently the responder, the "appropriate place" is the + * initiating event's `targetID`. + * - If something *is* already the responder, the "appropriate place" is the + * first common ancestor of the event target and the current `responderInst`. + * - Some negotiation happens: See the timing diagram below. + * - Scrolled views automatically become responder. The reasoning is that a + * platform scroll view that isn't built on top of the responder system has + * began scrolling, and the active responder must now be notified that the + * interaction is no longer locked to it - the system has taken over. + * + * - Responder being released: + * As soon as no more touches that *started* inside of descendants of the + * *current* responderInst, an `onResponderRelease` event is dispatched to the + * current responder, and the responder lock is released. + * + * TODO: + * - on "end", a callback hook for `onResponderEndShouldRemainResponder` that + * determines if the responder lock should remain. + * - If a view shouldn't "remain" the responder, any active touches should by + * default be considered "dead" and do not influence future negotiations or + * bubble paths. It should be as if those touches do not exist. + * -- For multitouch: Usually a translate-z will choose to "remain" responder + * after one out of many touches ended. For translate-y, usually the view + * doesn't wish to "remain" responder after one of many touches end. + * - Consider building this on top of a `stopPropagation` model similar to + * `W3C` events. + * - Ensure that `onResponderTerminate` is called on touch cancels, whether or + * not `onResponderTerminationRequest` returns `true` or `false`. + * + */ + + /* Negotiation Performed + +-----------------------+ + / \ + Process low level events to + Current Responder + wantsResponderID + determine who to perform negot-| (if any exists at all) | + iation/transition | Otherwise just pass through| + -------------------------------+----------------------------+------------------+ + Bubble to find first ID | | + to return true:wantsResponderID| | + | | + +-------------+ | | + | onTouchStart| | | + +------+------+ none | | + | return| | + +-----------v-------------+true| +------------------------+ | + |onStartShouldSetResponder|----->|onResponderStart (cur) |<-----------+ + +-----------+-------------+ | +------------------------+ | | + | | | +--------+-------+ + | returned true for| false:REJECT +-------->|onResponderReject + | wantsResponderID | | | +----------------+ + | (now attempt | +------------------+-----+ | + | handoff) | | onResponder | | + +------------------->| TerminationRequest| | + | +------------------+-----+ | + | | | +----------------+ + | true:GRANT +-------->|onResponderGrant| + | | +--------+-------+ + | +------------------------+ | | + | | onResponderTerminate |<-----------+ + | +------------------+-----+ | + | | | +----------------+ + | +-------->|onResponderStart| + | | +----------------+ + Bubble to find first ID | | + to return true:wantsResponderID| | + | | + +-------------+ | | + | onTouchMove | | | + +------+------+ none | | + | return| | + +-----------v-------------+true| +------------------------+ | + |onMoveShouldSetResponder |----->|onResponderMove (cur) |<-----------+ + +-----------+-------------+ | +------------------------+ | | + | | | +--------+-------+ + | returned true for| false:REJECT +-------->|onResponderRejec| + | wantsResponderID | | | +----------------+ + | (now attempt | +------------------+-----+ | + | handoff) | | onResponder | | + +------------------->| TerminationRequest| | + | +------------------+-----+ | + | | | +----------------+ + | true:GRANT +-------->|onResponderGrant| + | | +--------+-------+ + | +------------------------+ | | + | | onResponderTerminate |<-----------+ + | +------------------+-----+ | + | | | +----------------+ + | +-------->|onResponderMove | + | | +----------------+ + | | + | | + Some active touch started| | + inside current responder | +------------------------+ | + +------------------------->| onResponderEnd | | + | | +------------------------+ | + +---+---------+ | | + | onTouchEnd | | | + +---+---------+ | | + | | +------------------------+ | + +------------------------->| onResponderEnd | | + No active touches started| +-----------+------------+ | + inside current responder | | | + | v | + | +------------------------+ | + | | onResponderRelease | | + | +------------------------+ | + | | + + + */ + + /** + * A note about event ordering in the `EventPluginRegistry`. + * + * Suppose plugins are injected in the following order: + * + * `[R, S, C]` + * + * To help illustrate the example, assume `S` is `SimpleEventPlugin` (for + * `onClick` etc) and `R` is `ResponderEventPlugin`. + * + * "Deferred-Dispatched Events": + * + * - The current event plugin system will traverse the list of injected plugins, + * in order, and extract events by collecting the plugin's return value of + * `extractEvents()`. + * - These events that are returned from `extractEvents` are "deferred + * dispatched events". + * - When returned from `extractEvents`, deferred-dispatched events contain an + * "accumulation" of deferred dispatches. + * - These deferred dispatches are accumulated/collected before they are + * returned, but processed at a later time by the `EventPluginRegistry` (hence the + * name deferred). + * + * In the process of returning their deferred-dispatched events, event plugins + * themselves can dispatch events on-demand without returning them from + * `extractEvents`. Plugins might want to do this, so that they can use event + * dispatching as a tool that helps them decide which events should be extracted + * in the first place. + * + * "On-Demand-Dispatched Events": + * + * - On-demand-dispatched events are not returned from `extractEvents`. + * - On-demand-dispatched events are dispatched during the process of returning + * the deferred-dispatched events. + * - They should not have side effects. + * - They should be avoided, and/or eventually be replaced with another + * abstraction that allows event plugins to perform multiple "rounds" of event + * extraction. + * + * Therefore, the sequence of event dispatches becomes: + * + * - `R`s on-demand events (if any) (dispatched by `R` on-demand) + * - `S`s on-demand events (if any) (dispatched by `S` on-demand) + * - `C`s on-demand events (if any) (dispatched by `C` on-demand) + * - `R`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * - `S`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * - `C`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * + * In the case of `ResponderEventPlugin`: If the `startShouldSetResponder` + * on-demand dispatch returns `true` (and some other details are satisfied) the + * `onResponderGrant` deferred dispatched event is returned from + * `extractEvents`. The sequence of dispatch executions in this case + * will appear as follows: + * + * - `startShouldSetResponder` (`ResponderEventPlugin` dispatches on-demand) + * - `touchStartCapture` (`EventPluginRegistry` dispatches as usual) + * - `touchStart` (`EventPluginRegistry` dispatches as usual) + * - `responderGrant/Reject` (`EventPluginRegistry` dispatches as usual) + */ function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; // TODO: stop one short of the current responder. - var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); // When capturing/bubbling the "shouldSet" event, we want to skip the target + // (deepest ID) if it happens to be the current responder. The reasoning: + // It's strange to get an `onMoveShouldSetResponder` when you're *already* + // the responder. var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); @@ -3944,11 +5491,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return extracted; } + /** + * A transfer is a negotiation between a currently set responder and the next + * element to claim responder status. Any start event could trigger a transfer + * of responderInst. Any move event could trigger a transfer. + * + * @param {string} topLevelType Record from `BrowserEventConstants`. + * @return {boolean} True if a transfer of responder could possibly occur. + */ function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { return topLevelInst && ( + // responderIgnoreScroll: We are trying to migrate away from specifically + // tracking native scroll events here and responderIgnoreScroll indicates we + // will send topTouchCancel to handle canceling touch events instead topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); } + /** + * Returns whether or not this touch end event makes it such that there are no + * longer any touches that started inside of the current `responderInst`. + * + * @param {NativeEvent} nativeEvent Native touch end event. + * @return {boolean} Whether or not this touch end event ends the responder. + */ function noResponderTouches(nativeEvent) { var touches = nativeEvent.touches; @@ -3959,6 +5524,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var activeTouch = touches[i]; var target = activeTouch.target; if (target !== null && target !== undefined && target !== 0) { + // Is the original touch location inside of the current responder? var targetInst = getInstanceFromNode(target); if (isAncestor(responderInst, targetInst)) { return false; @@ -3968,10 +5534,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } var ResponderEventPlugin = { + /* For unit testing only */ _getResponder: function _getResponder() { return responderInst; }, eventTypes: eventTypes, + /** + * We must be resilient to `targetInst` being `null` on `touchMove` or + * `touchEnd`. On certain platforms, this means that a native scroll has + * assumed control and the original touch targets are destroyed. + */ extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { if (isStartish(topLevelType)) { trackedTouchCount += 1; @@ -3986,7 +5558,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; // Responder may or may not have transferred on a new touch start/move. + // Regardless, whoever is the responder after any potential transfer, we + // direct all touch start/move/ends to them in the form of + // `onResponderMove/Start/End`. These will be called for *every* additional + // finger that move/start/end, dispatched directly to whoever is the + // current responder at that moment, until the responder is "released". + // + // These multiple individual change touch events are are always bookended + // by `onResponderGrant`, and one of + // (`onResponderRelease/onResponderTerminate`). var isResponderTouchStart = responderInst && isStartish(topLevelType); var isResponderTouchMove = responderInst && isMoveish(topLevelType); @@ -4012,18 +5593,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, GlobalResponderHandler: null, injection: { + /** + * @param {{onChange: (ReactID, ReactID) => void} GlobalResponderHandler + * Object that handles any change in responder. Use this to inject + * integration with an existing touch handling system etc. + */ injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; } } }; + /** + * Injectable ordering of event plugins. + */ var eventPluginOrder = null; + /** + * Injectable mapping from names to event plugin modules. + */ var namesToPlugins = {}; + /** + * Recomputes the plugin list using the injected plugins and plugin ordering. + * + * @private + */ function recomputePluginOrdering() { if (!eventPluginOrder) { + // Wait until an `eventPluginOrder` is injected. return; } for (var pluginName in namesToPlugins) { @@ -4047,6 +5645,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Publishes an event so that it can be dispatched by the supplied plugin. + * + * @param {object} dispatchConfig Dispatch configuration for the event. + * @param {object} PluginModule Plugin publishing the event. + * @return {boolean} True if the event was successfully published. + * @private + */ function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { @@ -4068,6 +5674,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return false; } + /** + * Publishes a registration name that is used to identify dispatched events. + * + * @param {string} registrationName Registration name to add. + * @param {object} PluginModule Plugin publishing the event. + * @private + */ function publishRegistrationName(registrationName, pluginModule, eventName) { if (registrationNameModules[registrationName]) { @@ -4079,23 +5692,57 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var lowerCasedName = registrationName.toLowerCase(); } } + /** + * Registers plugins so that they can extract and dispatch events. + */ + + /** + * Ordered list of injected plugins. + */ var plugins = []; + /** + * Mapping from event name to dispatch config + */ var eventNameDispatchConfigs = {}; + /** + * Mapping from registration name to plugin module + */ var registrationNameModules = {}; + /** + * Mapping from registration name to event name + */ var registrationNameDependencies = {}; + /** + * Injects an ordering of plugins (by plugin name). This allows the ordering + * to be decoupled from injection of the actual plugins so that ordering is + * always deterministic regardless of packaging, on-the-fly injection, etc. + * + * @param {array} InjectedEventPluginOrder + * @internal + */ + function injectEventPluginOrder(injectedEventPluginOrder) { if (eventPluginOrder) { throw new Error("EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); - } + } // Clone the ordering so it cannot be dynamically mutated. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); recomputePluginOrdering(); } + /** + * Injects plugins to be used by plugin event system. The plugin names must be + * in the ordering injected by `injectEventPluginOrder`. + * + * Plugins can be injected as part of page initialization or on-the-fly. + * + * @param {object} injectedNamesToPlugins Map from names to plugin modules. + * @internal + */ function injectEventPluginsByName(injectedNamesToPlugins) { var isOrderingDirty = false; @@ -4117,57 +5764,105 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Get a list of listeners for a specific event, in-order. + * For React Native we treat the props-based function handlers + * as the first-class citizens, and they are always executed first + * for both capture and bubbling phase. + * + * We need "phase" propagated to this point to support the HostComponent + * EventEmitter API, which does not mutate the name of the handler based + * on phase (whereas prop handlers are registered as `onMyEvent` and `onMyEvent_Capture`). + * + * Native system events emitted into React Native + * will be emitted both to the prop handler function and to imperative event + * listeners. + * + * This will either return null, a single Function without an array, or + * an array of 2+ items. + */ + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { var stateNode = inst.stateNode; if (stateNode === null) { return null; - } + } // If null: Work in progress (ex: onload events in incremental mode). var props = getFiberCurrentPropsFromNode(stateNode); if (props === null) { + // Work in progress. return null; } var listener = props[registrationName]; if (listener && typeof listener !== "function") { throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); - } + } // If there are no imperative listeners, early exit. if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) { return listener; - } + } // Below this is the de-optimized path. + // If you are using _eventListeners, we do not (yet) + // expect this to be as performant as the props-only path. + // If/when this becomes a bottleneck, it can be refactored + // to avoid unnecessary closures and array allocations. + // + // Previously, there was only one possible listener for an event: + // the onEventName property in props. + // Now, it is also possible to have N listeners + // for a specific event on a node. Thus, we accumulate all of the listeners, + // including the props listener, and return a function that calls them all in + // order, starting with the handler prop and then the listeners in order. + // We return either a non-empty array or null. var listeners = []; if (listener) { listeners.push(listener); - } + } // TODO: for now, all of these events get an `rn:` prefix to enforce + // that the user knows they're only getting non-W3C-compliant events + // through this imperative event API. + // Events might not necessarily be noncompliant, but we currently have + // no verification that /any/ events are compliant. + // Thus, we prefix to ensure no collision with W3C event names. var requestedPhaseIsCapture = phase === "captured"; - var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; // Get imperative event listeners for this event if (stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length > 0) { var eventListeners = stateNode.canonical._eventListeners[mangledImperativeRegistrationName]; eventListeners.forEach(function (listenerObj) { + // Make sure phase of listener matches requested phase var isCaptureEvent = listenerObj.options.capture != null && listenerObj.options.capture; if (isCaptureEvent !== requestedPhaseIsCapture) { return; - } + } // For now (this is an area of future optimization) we must wrap + // all imperative event listeners in a function to unwrap the SyntheticEvent + // and pass them an Event. + // When this API is more stable and used more frequently, we can revisit. var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { var eventInst = new ReactNativePrivateInterface.CustomEvent(mangledImperativeRegistrationName, { detail: syntheticEvent.nativeEvent }); - eventInst.isTrusted = true; + eventInst.isTrusted = true; // setSyntheticEvent is present on the React Native Event shim. + // It is used to forward method calls on Event to the underlying SyntheticEvent. + // $FlowFixMe eventInst.setSyntheticEvent(syntheticEvent); for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); - }; + }; // Only call once? + // If so, we ensure that it's only called once by setting a flag + // and by removing it from eventListeners once it is called (but only + // when it's actually been executed). if (listenerObj.options.once) { listeners.push(function () { - stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + // Remove from the event listener once it's been called + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); // Guard against function being called more than once in + // case there are somehow multiple in-flight references to + // it being processed if (!listenerObj.invalidated) { listenerObj.invalidated = true; @@ -4188,7 +5883,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return listeners; } var customBubblingEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; + customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; // Start of inline: the below functions were inlined from + // EventPropagator.js, as they deviated from ReactDOM's newer + // implementations. function listenersAtPhase(inst, event, propagationPhase) { var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; @@ -4197,7 +5894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function accumulateListenersAndInstances(inst, event, listeners) { var listenersLength = listeners ? isArray(listeners) ? listeners.length : 1 : 0; if (listenersLength > 0) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); + event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); // Avoid allocating additional arrays here if (event._dispatchInstances == null && listenersLength === 1) { event._dispatchInstances = inst; @@ -4223,13 +5920,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function getParent$1(inst) { do { - inst = inst.return; + inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. + // That is depending on if we want nested subtrees (layers) to bubble + // events to their parent. We could also go through parentNode on the + // host node but that wouldn't work for React Native and doesn't let us + // do the portal feature. } while (inst && inst.tag !== HostComponent); if (inst) { return inst; } return null; } + /** + * Simulates the traversal of a two-phase, capture/bubble event dispatch. + */ function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { var path = []; @@ -4242,6 +5946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fn(path[i], "captured", arg); } if (skipBubbling) { + // Dispatch on target only fn(path[0], "bubbled", arg); } else { for (i = 0; i < path.length; i++) { @@ -4262,6 +5967,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, true); } } + /** + * Accumulates without regard to direction, does not look for phased + * registration names. Same as `accumulateDirectDispatchesSingle` but without + * requiring that the `dispatchMarker` be the same as the dispatched ID. + */ function accumulateDispatches$1(inst, ignoredDirection, event) { if (inst && event && event.dispatchConfig.registrationName) { @@ -4270,6 +5980,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e accumulateListenersAndInstances(inst, event, listeners); } } + /** + * Accumulates dispatches on an `SyntheticEvent`, but only for the + * `dispatchMarker`. + * @param {SyntheticEvent} event + */ function accumulateDirectDispatchesSingle$1(event) { if (event && event.dispatchConfig.registrationName) { @@ -4278,18 +5993,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function accumulateDirectDispatches$1(events) { forEachAccumulated(events, accumulateDirectDispatchesSingle$1); - } + } // End of inline var ReactNativeBridgeEventPlugin = { eventTypes: {}, extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { if (targetInst == null) { + // Probably a node belonging to another renderer's tree. return null; } var bubbleDispatchConfig = customBubblingEventTypes[topLevelType]; var directDispatchConfig = customDirectEventTypes[topLevelType]; if (!bubbleDispatchConfig && !directDispatchConfig) { throw new Error( + // $FlowFixMe - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque 'Unsupported top level event type "' + topLevelType + '" dispatched'); } var event = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); @@ -4310,200 +6027,77 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + /** + * Make sure essential globals are available and are patched correctly. Please don't remove this + * line. Bundles created by react-packager `require` it before executing any application code. This + * ensures it exists in the dependency graph and can be `require`d. + * TODO: require this in packager, not in React #10932517 + */ + /** + * Inject module for resolving DOM hierarchy and plugin ordering. + */ + injectEventPluginOrder(ReactNativeEventPluginOrder); + /** + * Some important event plugins included by default (without having to require + * them). + */ injectEventPluginsByName({ ResponderEventPlugin: ResponderEventPlugin, ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin }); - var instanceCache = new Map(); - var instanceProps = new Map(); - function precacheFiberNode(hostInst, tag) { - instanceCache.set(tag, hostInst); - } - function uncacheFiberNode(tag) { - instanceCache.delete(tag); - instanceProps.delete(tag); - } - function getInstanceFromTag(tag) { - return instanceCache.get(tag) || null; + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; } function getTagFromInstance(inst) { - var nativeInstance = inst.stateNode; - var tag = nativeInstance._nativeTag; - if (tag === undefined) { - nativeInstance = nativeInstance.canonical; - tag = nativeInstance._nativeTag; - } - if (!tag) { + var nativeInstance = inst.stateNode.canonical; + if (!nativeInstance._nativeTag) { throw new Error("All native instances should have a tag."); } return nativeInstance; } - function getFiberCurrentPropsFromNode$1(stateNode) { - return instanceProps.get(stateNode._nativeTag) || null; - } - function updateFiberProps(tag, props) { - instanceProps.set(tag, props); - } - - var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { - return fn(bookkeeping); - }; - var isInsideEventHandler = false; - function batchedUpdates(fn, bookkeeping) { - if (isInsideEventHandler) { - return fn(bookkeeping); - } - isInsideEventHandler = true; - try { - return batchedUpdatesImpl(fn, bookkeeping); - } finally { - isInsideEventHandler = false; - } - } - function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { - batchedUpdatesImpl = _batchedUpdatesImpl; - } - - var eventQueue = null; - - var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { - if (event) { - executeDispatchesInOrder(event); - if (!event.isPersistent()) { - event.constructor.release(event); - } - } - }; - var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { - return executeDispatchesAndRelease(e); - }; - function runEventsInBatch(events) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } - - var processingEventQueue = eventQueue; - eventQueue = null; - if (!processingEventQueue) { - return; - } - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - if (eventQueue) { - throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); - } - - rethrowCaughtError(); - } - - var EMPTY_NATIVE_EVENT = {}; - - var touchSubsequence = function touchSubsequence(touches, indices) { - var ret = []; - for (var i = 0; i < indices.length; i++) { - ret.push(touches[indices[i]]); - } - return ret; - }; - - var removeTouchesAtIndices = function removeTouchesAtIndices(touches, indices) { - var rippedOut = []; - - var temp = touches; - for (var i = 0; i < indices.length; i++) { - var index = indices[i]; - rippedOut.push(touches[index]); - temp[index] = null; - } - var fillAt = 0; - for (var j = 0; j < temp.length; j++) { - var cur = temp[j]; - if (cur !== null) { - temp[fillAt++] = cur; - } - } - temp.length = fillAt; - return rippedOut; - }; - - function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { - var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT; - var inst = getInstanceFromTag(rootNodeID); - var target = null; - if (inst != null) { - target = inst.stateNode; - } - batchedUpdates(function () { - runExtractedPluginEventsInBatch(topLevelType, inst, nativeEvent, target); - }); + function getFiberCurrentPropsFromNode$1(inst) { + return inst.canonical.currentProps; } - function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = null; - var legacyPlugins = plugins; - for (var i = 0; i < legacyPlugins.length; i++) { - var possiblePlugin = legacyPlugins[i]; - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); + // Module provided by RN: + var ReactFabricGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + var fromOrTo = from || to; + var fromOrToStateNode = fromOrTo && fromOrTo.stateNode; + var isFabric = !!(fromOrToStateNode && fromOrToStateNode.canonical._internalInstanceHandle); + if (isFabric) { + if (from) { + // equivalent to clearJSResponder + nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false, blockNativeResponder || false); } - } - } - return events; - } - function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - runEventsInBatch(events); - } - - function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { - _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); - } - - function receiveTouches(eventTopLevelType, touches, changedIndices) { - var changedTouches = eventTopLevelType === "topTouchEnd" || eventTopLevelType === "topTouchCancel" ? removeTouchesAtIndices(touches, changedIndices) : touchSubsequence(touches, changedIndices); - for (var jj = 0; jj < changedTouches.length; jj++) { - var touch = changedTouches[jj]; - - touch.changedTouches = changedTouches; - touch.touches = touches; - var nativeEvent = touch; - var rootNodeID = null; - var target = nativeEvent.target; - if (target !== null && target !== undefined) { - if (target < 1) { - { - error("A view is reporting that a touch occurred on tag zero."); - } - } else { - rootNodeID = target; + if (to) { + // equivalent to setJSResponder + nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true, blockNativeResponder || false); } - } - - _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); - } - } - - var ReactNativeGlobalResponderHandler = { - onChange: function onChange(from, to, blockNativeResponder) { - if (to !== null) { - var tag = to.stateNode._nativeTag; - ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); } else { - ReactNativePrivateInterface.UIManager.clearJSResponder(); + if (to !== null) { + var tag = to.stateNode.canonical._nativeTag; + ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); + } else { + ReactNativePrivateInterface.UIManager.clearJSResponder(); + } } } }; + setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromInstance, getTagFromInstance); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactFabricGlobalResponderHandler); - ReactNativePrivateInterface.RCTEventEmitter.register({ - receiveEvent: receiveEvent, - receiveTouches: receiveTouches - }); - setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromTag, getTagFromInstance); - ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactNativeGlobalResponderHandler); - + /** + * `ReactInstanceMap` maintains a mapping from a public facing stateful + * instance (key) and the internal representation (value). This allows public + * methods to accept the user facing instance as an argument and map them back + * to internal methods. + * + * Note that this module is currently shared and assumed to be stateless. + * If this becomes an actual Map, that will break. + */ function get(key) { return key._reactInternals; } @@ -4519,6 +6113,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var enableLazyContextPropagation = false; var enableLegacyHidden = false; + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for("react.element"); var REACT_PORTAL_TYPE = Symbol.for("react.portal"); var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); @@ -4556,14 +6154,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var functionName = innerType.displayName || innerType.name || ""; return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; - } + } // Keep in sync with react-reconciler/getComponentNameFromFiber function getContextName(type) { return type.displayName || "Context"; - } + } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. function getComponentNameFromType(type) { if (type == null) { + // Host root, text node or just invalid type. return null; } { @@ -4619,6 +6218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // eslint-disable-next-line no-fallthrough } } @@ -4627,7 +6227,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getWrappedName$1(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ""; return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); - } + } // Keep in sync with shared/getComponentNameFromType function getContextName$1(type) { return type.displayName || "Context"; @@ -4651,6 +6251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case Fragment: return "Fragment"; case HostComponent: + // Host component type is the display name (e.g. "div", "View") return type; case HostPortal: return "Portal"; @@ -4659,9 +6260,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case HostText: return "Text"; case LazyComponent: + // Name comes from the type in this case; we don't have a tag. return getComponentNameFromType(type); case Mode: if (type === REACT_STRICT_MODE_TYPE) { + // Don't be less specific than shared/getComponentNameFromType return "StrictMode"; } return "Mode"; @@ -4677,6 +6280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return "SuspenseList"; case TracingMarkerComponent: return "TracingMarker"; + // The display name for this tags come from the user-provided type: case ClassComponent: case FunctionComponent: @@ -4695,64 +6299,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } - var NoFlags = + // Don't change these two values. They're used by React Dev Tools. + var NoFlags = /* */ 0; - var PerformedWork = - 1; + var PerformedWork = /* */ + 1; // You can change the rest (and add more). - var Placement = + var Placement = /* */ 2; - var Update = + var Update = /* */ 4; - var ChildDeletion = + var ChildDeletion = /* */ 16; - var ContentReset = + var ContentReset = /* */ 32; - var Callback = + var Callback = /* */ 64; - var DidCapture = + var DidCapture = /* */ 128; - var ForceClientRender = + var ForceClientRender = /* */ 256; - var Ref = + var Ref = /* */ 512; - var Snapshot = + var Snapshot = /* */ 1024; - var Passive = + var Passive = /* */ 2048; - var Hydrating = + var Hydrating = /* */ 4096; - var Visibility = + var Visibility = /* */ 8192; - var StoreConsistency = + var StoreConsistency = /* */ 16384; - var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; + var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) - var HostEffectMask = - 32767; + var HostEffectMask = /* */ + 32767; // These are not really side effects, but we still reuse this field. - var Incomplete = + var Incomplete = /* */ 32768; - var ShouldCapture = + var ShouldCapture = /* */ 65536; - var ForceUpdateForLegacySuspense = + var ForceUpdateForLegacySuspense = /* */ 131072; - var Forked = - 1048576; - - var RefStatic = + var Forked = /* */ + 1048576; // Static tags describe aspects of a fiber that are not specific to a render, + // e.g. a fiber uses a passive effect (even if there are no updates on this particular render). + // This enables us to defer more work in the unmount case, + // since we can defer traversing the tree during layout to look for Passive effects, + // and instead rely on the static flag as a signal that there may be cleanup work. + + var RefStatic = /* */ 2097152; - var LayoutStatic = + var LayoutStatic = /* */ 4194304; - var PassiveStatic = - 8388608; + var PassiveStatic = /* */ + 8388608; // These flags allow us to traverse to fibers that have effects on mount + // don't contain effects, by checking subtreeFlags. var BeforeMutationMask = + // TODO: Remove Update flag from before mutation phase by re-landing Visibility + // flag logic (see #20043) Update | Snapshot | 0; var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; - var LayoutMask = Update | Callback | Ref | Visibility; + var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask - var PassiveMask = Passive | ChildDeletion; + var PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones. + // This allows certain concepts to persist without recalculating them, + // e.g. whether a subtree contains passive effects or portals. var StaticMask = LayoutStatic | PassiveStatic | RefStatic; var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; @@ -4760,10 +6374,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var node = fiber; var nearestMounted = fiber; if (!fiber.alternate) { + // If there is no alternate, this might be a new tree that isn't inserted + // yet. If it is, then it will have a pending insertion effect on it. var nextNode = node; do { node = nextNode; if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + // This is an insertion or in-progress hydration. The nearest possible + // mounted fiber is the parent but we need to continue to figure out + // if that one is still mounted. nearestMounted = node.return; } nextNode = node.return; @@ -4774,8 +6393,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (node.tag === HostRoot) { + // TODO: Check if this was a nested HostRoot when used with + // renderContainerIntoSubtree. return nearestMounted; - } + } // If we didn't hit the root, that means that we're in an disconnected tree + // that has been unmounted. return null; } @@ -4808,6 +6430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { + // If there is no alternate, then we only need to check if it is mounted. var nearestMounted = getNearestMountedFiber(fiber); if (nearestMounted === null) { throw new Error("Unable to find node on an unmounted component."); @@ -4816,46 +6439,67 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } return fiber; - } + } // If we have two possible branches, we'll walk backwards up to the root + // to see what path the root points to. On the way we may hit one of the + // special cases and we'll deal with them. var a = fiber; var b = alternate; while (true) { var parentA = a.return; if (parentA === null) { + // We're at the root. break; } var parentB = parentA.alternate; if (parentB === null) { + // There is no alternate. This is an unusual case. Currently, it only + // happens when a Suspense component is hidden. An extra fragment fiber + // is inserted in between the Suspense fiber and its children. Skip + // over this extra fragment fiber and proceed to the next parent. var nextParent = parentA.return; if (nextParent !== null) { a = b = nextParent; continue; - } + } // If there's no parent, we're at the root. break; - } + } // If both copies of the parent fiber point to the same child, we can + // assume that the child is current. This happens when we bailout on low + // priority: the bailed out fiber's child reuses the current child. if (parentA.child === parentB.child) { var child = parentA.child; while (child) { if (child === a) { + // We've determined that A is the current branch. assertIsMounted(parentA); return fiber; } if (child === b) { + // We've determined that B is the current branch. assertIsMounted(parentA); return alternate; } child = child.sibling; - } + } // We should never have an alternate for any mounting node. So the only + // way this could possibly happen is if this was unmounted, if at all. throw new Error("Unable to find node on an unmounted component."); } if (a.return !== b.return) { + // The return pointer of A and the return pointer of B point to different + // fibers. We assume that return pointers never criss-cross, so A must + // belong to the child set of A.return, and B must belong to the child + // set of B.return. a = parentA; b = parentB; } else { + // The return pointers point to the same fiber. We'll have to use the + // default, slow path: scan the child sets of each parent alternate to see + // which child belongs to which set. + // + // Search parent A's child set var didFindChild = false; var _child = parentA.child; while (_child) { @@ -4874,6 +6518,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _child = _child.sibling; } if (!didFindChild) { + // Search parent B's child set _child = parentB.child; while (_child) { if (_child === a) { @@ -4898,14 +6543,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (a.alternate !== b) { throw new Error("Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); } - } + } // If the root is not a host container, we're in a disconnected tree. I.e. + // unmounted. if (a.tag !== HostRoot) { throw new Error("Unable to find node on an unmounted component."); } if (a.stateNode.current === a) { + // We've determined that A is the current branch. return fiber; - } + } // Otherwise B has to be current branch. return alternate; } @@ -4914,6 +6561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; } function findCurrentHostFiberImpl(node) { + // Next we'll drill down this component to find the first HostComponent/Text. if (node.tag === HostComponent || node.tag === HostText) { return node; } @@ -4928,8 +6576,58 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } + /** + * In the future, we should cleanup callbacks by cancelling them instead of + * using this. + */ + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (!callback) { + return undefined; + } // This protects against createClass() components. + // We don't know if there is code depending on it. + // We intentionally don't use isMounted() because even accessing + // isMounted property on a React ES6 class will trigger a warning. + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } // FIXME: there used to be other branches that protected + // against unmounted host components. But RN host components don't + // define isMounted() anymore, so those checks didn't do anything. + // They caused false positive warning noise so we removed them: + // https://github.com/facebook/react-native/issues/18868#issuecomment-413579095 + // However, this means that the callback is NOT guaranteed to be safe + // for host components. The solution we should implement is to make + // UIManager.measure() and similar calls truly cancelable. Then we + // can change our own code calling them to cancel when something unmounts. + + return callback.apply(context, arguments); + }; + } + function warnForStyleProps(props, validAttributes) { + { + for (var key in validAttributes.style) { + if (!(validAttributes[key] || props[key] === undefined)) { + error("You are setting the style `{ %s" + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { %s" + ": ... } }`", key, key); + } + } + } + } + + // Modules provided by RN: var emptyObject = {}; + /** + * Create a payload that contains all the updates between two sets of props. + * + * These helpers are all encapsulated into a single module, because they use + * mutation as a performance optimization which leads to subtle shared + * dependencies between the code paths. To avoid this mutable state leaking + * across modules, I've kept them isolated to this module. + */ + // Tracks removed keys var removedKeys = null; var removedKeyCount = 0; var deepDifferOptions = { @@ -4937,8 +6635,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; function defaultDiffer(prevProp, nextProp) { if (typeof nextProp !== "object" || nextProp === null) { + // Scalars have already been checked for equality return true; } else { + // For objects and arrays, the default diffing algorithm is a deep compare return ReactNativePrivateInterface.deepDiffer(prevProp, nextProp, deepDifferOptions); } } @@ -4960,7 +6660,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var attributeConfig = validAttributes[propKey]; if (!attributeConfig) { - continue; + continue; // not a valid native prop } if (typeof nextProp === "function") { @@ -4970,8 +6670,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextProp = null; } if (typeof attributeConfig !== "object") { + // case: !Object is the default case updatePayload[propKey] = nextProp; } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; updatePayload[propKey] = nextValue; } @@ -4984,18 +6686,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; var i; for (i = 0; i < minLength; i++) { + // Diff any items in the array in the forward direction. Repeated keys + // will be overwritten by later values. updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); } for (; i < prevArray.length; i++) { + // Clear out all remaining properties. updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); } for (; i < nextArray.length; i++) { + // Add all remaining properties. updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); } return updatePayload; } function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { if (!updatePayload && prevProp === nextProp) { + // If no properties have been added, then we can bail out quickly on object + // equality. return updatePayload; } if (!prevProp || !nextProp) { @@ -5008,45 +6716,69 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return updatePayload; } if (!isArray(prevProp) && !isArray(nextProp)) { + // Both are leaves, we can diff the leaves. return diffProperties(updatePayload, prevProp, nextProp, validAttributes); } if (isArray(prevProp) && isArray(nextProp)) { + // Both are arrays, we can diff the arrays. return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); } if (isArray(prevProp)) { return diffProperties(updatePayload, + // $FlowFixMe - We know that this is always an object when the input is. ReactNativePrivateInterface.flattenStyle(prevProp), + // $FlowFixMe - We know that this isn't an array because of above flow. nextProp, validAttributes); } return diffProperties(updatePayload, prevProp, + // $FlowFixMe - We know that this is always an object when the input is. ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes); } + /** + * addNestedProperty takes a single set of props and valid attribute + * attribute configurations. It processes each prop and adds it to the + * updatePayload. + */ function addNestedProperty(updatePayload, nextProp, validAttributes) { if (!nextProp) { return updatePayload; } if (!isArray(nextProp)) { + // Add each property of the leaf. return addProperties(updatePayload, nextProp, validAttributes); } for (var i = 0; i < nextProp.length; i++) { + // Add all the properties of the array. updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); } return updatePayload; } + /** + * clearNestedProperty takes a single set of props and valid attributes. It + * adds a null sentinel to the updatePayload, for each prop key. + */ function clearNestedProperty(updatePayload, prevProp, validAttributes) { if (!prevProp) { return updatePayload; } if (!isArray(prevProp)) { + // Add each property of the leaf. return clearProperties(updatePayload, prevProp, validAttributes); } for (var i = 0; i < prevProp.length; i++) { + // Add all the properties of the array. updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); } return updatePayload; } + /** + * diffProperties takes two sets of props and a set of valid attributes + * and write to updatePayload the values that changed or were deleted. + * If no updatePayload is provided, a new one is created and returned if + * anything changed. + */ function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { var attributeConfig; @@ -5055,19 +6787,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var propKey in nextProps) { attributeConfig = validAttributes[propKey]; if (!attributeConfig) { - continue; + continue; // not a valid native prop } prevProp = prevProps[propKey]; - nextProp = nextProps[propKey]; + nextProp = nextProps[propKey]; // functions are converted to booleans as markers that the associated + // events should be sent from native. if (typeof nextProp === "function") { - nextProp = true; + nextProp = true; // If nextProp is not a function, then don't bother changing prevProp + // since nextProp will win and go into the updatePayload regardless. if (typeof prevProp === "function") { prevProp = true; } - } + } // An explicit value of undefined is treated as a null because it overrides + // any other preceding value. if (typeof nextProp === "undefined") { nextProp = null; @@ -5079,31 +6814,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e removedKeys[propKey] = false; } if (updatePayload && updatePayload[propKey] !== undefined) { + // Something else already triggered an update to this key because another + // value diffed. Since we're now later in the nested arrays our value is + // more important so we need to calculate it and override the existing + // value. It doesn't matter if nothing changed, we'll set it anyway. + // Pattern match on: attributeConfig if (typeof attributeConfig !== "object") { + // case: !Object is the default case updatePayload[propKey] = nextProp; } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; updatePayload[propKey] = nextValue; } continue; } if (prevProp === nextProp) { - continue; - } + continue; // nothing changed + } // Pattern match on: attributeConfig if (typeof attributeConfig !== "object") { + // case: !Object is the default case if (defaultDiffer(prevProp, nextProp)) { + // a normal leaf has changed (updatePayload || (updatePayload = {}))[propKey] = nextProp; } } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); if (shouldUpdate) { var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; (updatePayload || (updatePayload = {}))[propKey] = _nextValue; } } else { + // default: fallthrough case when nested properties are defined removedKeys = null; - removedKeyCount = 0; + removedKeyCount = 0; // We think that attributeConfig is not CustomAttributeConfiguration at + // this point so we assume it must be AttributeConfiguration. updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); if (removedKeyCount > 0 && updatePayload) { @@ -5111,27 +6858,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e removedKeys = null; } } - } + } // Also iterate through all the previous props to catch any that have been + // removed and make sure native gets the signal so it can reset them to the + // default. for (var _propKey in prevProps) { if (nextProps[_propKey] !== undefined) { - continue; + continue; // we've already covered this key in the previous pass } attributeConfig = validAttributes[_propKey]; if (!attributeConfig) { - continue; + continue; // not a valid native prop } if (updatePayload && updatePayload[_propKey] !== undefined) { + // This was already updated to a diff result earlier. continue; } prevProp = prevProps[_propKey]; if (prevProp === undefined) { - continue; - } + continue; // was already empty anyway + } // Pattern match on: attributeConfig if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration | !Object + // Flag the leaf property for removal by sending a sentinel. (updatePayload || (updatePayload = {}))[_propKey] = null; if (!removedKeys) { removedKeys = {}; @@ -5141,106 +6893,184 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e removedKeyCount++; } } else { + // default: + // This is a nested attribute configuration where all the properties + // were removed so we need to go through and clear out all of them. updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); } } return updatePayload; } + /** + * addProperties adds all the valid props to the payload after being processed. + */ function addProperties(updatePayload, props, validAttributes) { + // TODO: Fast path return diffProperties(updatePayload, emptyObject, props, validAttributes); } + /** + * clearProperties clears all the previous props by adding a null sentinel + * to the payload for each valid key. + */ function clearProperties(updatePayload, prevProps, validAttributes) { + // TODO: Fast path return diffProperties(updatePayload, prevProps, emptyObject, validAttributes); } function create(props, validAttributes) { return addProperties(null, + // updatePayload props, validAttributes); } function diff(prevProps, nextProps, validAttributes) { return diffProperties(null, + // updatePayload prevProps, nextProps, validAttributes); } - function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { - return function () { - if (!callback) { - return undefined; - } + // Used as a way to call batchedUpdates when we don't have a reference to + // the renderer. Such as when we're dispatching events or if third party + // libraries need to call batchedUpdates. Eventually, this API will go away when + // everything is batched by default. We'll then have a similar API to opt-out of + // scheduled work and instead do synchronous work. + // Defaults + var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + }; + var isInsideEventHandler = false; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) { + // If we are currently inside another batch, we need to wait until it + // fully completes before restoring state. + return fn(bookkeeping); + } + isInsideEventHandler = true; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = false; + } + } + function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { + batchedUpdatesImpl = _batchedUpdatesImpl; + } - if (typeof context.__isMounted === "boolean") { - if (!context.__isMounted) { - return undefined; - } + /** + * Internal queue of events that have accumulated their dispatches and are + * waiting to have their dispatches executed. + */ + + var eventQueue = null; + /** + * Dispatches an event and releases it back into the pool, unless persistent. + * + * @param {?object} event Synthetic event to be dispatched. + * @private + */ + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { + if (event) { + executeDispatchesInOrder(event); + if (!event.isPersistent()) { + event.constructor.release(event); } + } + }; + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e); + }; + function runEventsInBatch(events) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } // Set `eventQueue` to null before processing it so that we can tell if more + // events get enqueued while processing. - return callback.apply(context, arguments); - }; + var processingEventQueue = eventQueue; + eventQueue = null; + if (!processingEventQueue) { + return; + } + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + if (eventQueue) { + throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + } // This would be a good time to rethrow if any of the event handlers threw. + + rethrowCaughtError(); } - function warnForStyleProps(props, validAttributes) { - { - for (var key in validAttributes.style) { - if (!(validAttributes[key] || props[key] === undefined)) { - error("You are setting the style `{ %s" + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { %s" + ": ... } }`", key, key); + + /** + * Allows registered plugins an opportunity to extract events from top-level + * native browser events. + * + * @return {*} An accumulation of synthetic events. + * @internal + */ + + function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + var legacyPlugins = plugins; + for (var i = 0; i < legacyPlugins.length; i++) { + // Not every plugin in the ordering may be loaded at runtime. + var possiblePlugin = legacyPlugins[i]; + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); } } } + return events; } - var ReactNativeFiberHostComponent = function () { - function ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandleDEV) { - this._nativeTag = tag; - this._children = []; - this.viewConfig = viewConfig; - { - this._internalFiberInstanceHandleDEV = internalInstanceHandleDEV; + function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events); + } + function dispatchEvent(target, topLevelType, nativeEvent) { + var targetFiber = target; + var eventTarget = null; + if (targetFiber != null) { + var stateNode = targetFiber.stateNode; // Guard against Fiber being unmounted + + if (stateNode != null) { + eventTarget = stateNode.canonical; } } - var _proto = ReactNativeFiberHostComponent.prototype; - _proto.blur = function blur() { - ReactNativePrivateInterface.TextInputState.blurTextInput(this); - }; - _proto.focus = function focus() { - ReactNativePrivateInterface.TextInputState.focusTextInput(this); - }; - _proto.measure = function measure(callback) { - ReactNativePrivateInterface.UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureInWindow = function measureInWindow(callback) { - ReactNativePrivateInterface.UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) - { - var relativeNode; - if (typeof relativeToNativeNode === "number") { - relativeNode = relativeToNativeNode; - } else { - var nativeNode = relativeToNativeNode; - if (nativeNode._nativeTag) { - relativeNode = nativeNode._nativeTag; - } - } - if (relativeNode == null) { - { - error("Warning: ref.measureLayout must be called with a node handle or a ref to a native component."); - } - return; - } - ReactNativePrivateInterface.UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); - }; - _proto.setNativeProps = function setNativeProps(nativeProps) { - { - warnForStyleProps(nativeProps, this.viewConfig.validAttributes); - } - var updatePayload = create(nativeProps, this.viewConfig.validAttributes); + batchedUpdates(function () { + // Emit event to the RawEventEmitter. This is an unused-by-default EventEmitter + // that can be used to instrument event performance monitoring (primarily - could be useful + // for other things too). + // + // NOTE: this merely emits events into the EventEmitter below. + // If *you* do not add listeners to the `RawEventEmitter`, + // then all of these emitted events will just blackhole and are no-ops. + // It is available (although not officially supported... yet) if you want to collect + // perf data on event latency in your application, and could also be useful for debugging + // low-level events issues. + // + // If you do not have any event perf monitoring and are extremely concerned about event perf, + // it is safe to disable these "emit" statements; it will prevent checking the size of + // an empty array twice and prevent two no-ops. Practically the overhead is so low that + // we don't think it's worth thinking about in prod; your perf issues probably lie elsewhere. + // + // We emit two events here: one for listeners to this specific event, + // and one for the catchall listener '*', for any listeners that want + // to be notified for all events. + // Note that extracted events are *not* emitted, + // only events that have a 1:1 mapping with a native event, at least for now. + var event = { + eventName: topLevelType, + nativeEvent: nativeEvent + }; + ReactNativePrivateInterface.RawEventEmitter.emit(topLevelType, event); + ReactNativePrivateInterface.RawEventEmitter.emit("*", event); // Heritage plugin event system - if (updatePayload != null) { - ReactNativePrivateInterface.UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); - } - }; - return ReactNativeFiberHostComponent; - }(); + runExtractedPluginEventsInBatch(topLevelType, targetFiber, nativeEvent, eventTarget); + }); // React Native doesn't use ReactControlledComponent but if it did, here's + // where it would do it. + } + // This module only exists as an ESM wrapper around the external CommonJS var scheduleCallback = Scheduler.unstable_scheduleCallback; var cancelCallback = Scheduler.unstable_cancelCallback; var shouldYield = Scheduler.unstable_shouldYield; @@ -5256,37 +7086,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; function injectInternals(internals) { if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + // No DevTools return false; } var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (hook.isDisabled) { + // This isn't a real property on the hook, but it can be set to opt out + // of DevTools integration and associated warnings and logs. + // https://github.com/facebook/react/issues/3877 return true; } if (!hook.supportsFiber) { { error("The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://reactjs.org/link/react-devtools"); - } + } // DevTools exists, even though it doesn't support Fiber. return true; } try { if (enableSchedulingProfiler) { + // Conditionally inject these hooks only if Timeline profiler is supported by this build. + // This gives DevTools a way to feature detect that isn't tied to version number + // (since profiling and timeline are controlled by different feature flags). internals = assign({}, internals, { getLaneLabelMap: getLaneLabelMap, injectProfilingHooks: injectProfilingHooks }); } - rendererID = hook.inject(internals); + rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks. injectedHook = hook; } catch (err) { + // Catch all errors because it is unsafe to throw during initialization. { error("React instrumentation encountered an error: %s.", err); } } if (hook.checkDCE) { + // This is the real DevTools. return true; } else { + // This is likely a hook installed by Fast Refresh runtime. return false; } } @@ -5378,17 +7218,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function markComponentRenderStopped() {} function markComponentErrored(fiber, thrownValue, lanes) {} function markComponentSuspended(fiber, wakeable, lanes) {} - var NoMode = - 0; + var NoMode = /* */ + 0; // TODO: Remove ConcurrentMode by reading from the root tag instead - var ConcurrentMode = + var ConcurrentMode = /* */ 1; - var ProfileMode = + var ProfileMode = /* */ 2; - var StrictLegacyMode = + var StrictLegacyMode = /* */ 8; - var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; + // TODO: This is pretty well supported by browsers. Maybe we can drop it. + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. + // Based on: + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 var log = Math.log; var LN2 = Math.LN2; @@ -5400,80 +7243,82 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 31 - (log(asUint) / LN2 | 0) | 0; } + // If those values are changed that package should be rebuilt and redeployed. + var TotalLanes = 31; - var NoLanes = + var NoLanes = /* */ 0; - var NoLane = + var NoLane = /* */ 0; - var SyncLane = + var SyncLane = /* */ 1; - var InputContinuousHydrationLane = + var InputContinuousHydrationLane = /* */ 2; - var InputContinuousLane = + var InputContinuousLane = /* */ 4; - var DefaultHydrationLane = + var DefaultHydrationLane = /* */ 8; - var DefaultLane = + var DefaultLane = /* */ 16; - var TransitionHydrationLane = + var TransitionHydrationLane = /* */ 32; - var TransitionLanes = + var TransitionLanes = /* */ 4194240; - var TransitionLane1 = + var TransitionLane1 = /* */ 64; - var TransitionLane2 = + var TransitionLane2 = /* */ 128; - var TransitionLane3 = + var TransitionLane3 = /* */ 256; - var TransitionLane4 = + var TransitionLane4 = /* */ 512; - var TransitionLane5 = + var TransitionLane5 = /* */ 1024; - var TransitionLane6 = + var TransitionLane6 = /* */ 2048; - var TransitionLane7 = + var TransitionLane7 = /* */ 4096; - var TransitionLane8 = + var TransitionLane8 = /* */ 8192; - var TransitionLane9 = + var TransitionLane9 = /* */ 16384; - var TransitionLane10 = + var TransitionLane10 = /* */ 32768; - var TransitionLane11 = + var TransitionLane11 = /* */ 65536; - var TransitionLane12 = + var TransitionLane12 = /* */ 131072; - var TransitionLane13 = + var TransitionLane13 = /* */ 262144; - var TransitionLane14 = + var TransitionLane14 = /* */ 524288; - var TransitionLane15 = + var TransitionLane15 = /* */ 1048576; - var TransitionLane16 = + var TransitionLane16 = /* */ 2097152; - var RetryLanes = + var RetryLanes = /* */ 130023424; - var RetryLane1 = + var RetryLane1 = /* */ 4194304; - var RetryLane2 = + var RetryLane2 = /* */ 8388608; - var RetryLane3 = + var RetryLane3 = /* */ 16777216; - var RetryLane4 = + var RetryLane4 = /* */ 33554432; - var RetryLane5 = + var RetryLane5 = /* */ 67108864; var SomeRetryLane = RetryLane1; - var SelectiveHydrationLane = + var SelectiveHydrationLane = /* */ 134217728; - var NonIdleLanes = + var NonIdleLanes = /* */ 268435455; - var IdleHydrationLane = + var IdleHydrationLane = /* */ 268435456; - var IdleLane = + var IdleLane = /* */ 536870912; - var OffscreenLane = - 1073741824; + var OffscreenLane = /* */ + 1073741824; // This function is used for the experimental timeline (react-devtools-timeline) var NoTimestamp = -1; var nextTransitionLane = TransitionLane1; var nextRetryLane = RetryLane1; @@ -5525,19 +7370,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e default: { error("Should have found matching lanes. This is a bug in React."); - } + } // This shouldn't be reachable, but as a fallback, return the entire bitmask. return lanes; } } function getNextLanes(root, wipLanes) { + // Early bailout if there's no pending work left. var pendingLanes = root.pendingLanes; if (pendingLanes === NoLanes) { return NoLanes; } var nextLanes = NoLanes; var suspendedLanes = root.suspendedLanes; - var pingedLanes = root.pingedLanes; + var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished, + // even if the work is suspended. var nonIdlePendingLanes = pendingLanes & NonIdleLanes; if (nonIdlePendingLanes !== NoLanes) { @@ -5551,6 +7398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } else { + // The only remaining work is Idle. var unblockedLanes = pendingLanes & ~suspendedLanes; if (unblockedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(unblockedLanes); @@ -5561,22 +7409,59 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (nextLanes === NoLanes) { + // This should only be reachable if we're suspended + // TODO: Consider warning in this path if a fallback timer is not scheduled. return NoLanes; - } + } // If we're already in the middle of a render, switching lanes will interrupt + // it and we'll lose our progress. We should only do this if the new lanes are + // higher priority. if (wipLanes !== NoLanes && wipLanes !== nextLanes && + // If we already suspended with a delay, then interrupting is fine. Don't + // bother waiting until the root is complete. (wipLanes & suspendedLanes) === NoLanes) { var nextLane = getHighestPriorityLane(nextLanes); var wipLane = getHighestPriorityLane(wipLanes); if ( + // Tests whether the next lane is equal or lower priority than the wip + // one. This works because the bits decrease in priority as you go left. nextLane >= wipLane || + // Default priority updates should not interrupt transition updates. The + // only difference between default updates and transition updates is that + // default updates do not support refresh transitions. nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) { + // Keep working on the existing in-progress tree. Do not interrupt. return wipLanes; } } if ((nextLanes & InputContinuousLane) !== NoLanes) { + // When updates are sync by default, we entangle continuous priority updates + // and default updates, so they render in the same batch. The only reason + // they use separate lanes is because continuous updates should interrupt + // transitions, but default updates should not. nextLanes |= pendingLanes & DefaultLane; - } + } // Check for entangled lanes and add them to the batch. + // + // A lane is said to be entangled with another when it's not allowed to render + // in a batch that does not also include the other lane. Typically we do this + // when multiple updates have the same source, and we only want to respond to + // the most recent event from that source. + // + // Note that we apply entanglements *after* checking for partial work above. + // This means that if a lane is entangled during an interleaved event while + // it's already rendering, we won't interrupt it. This is intentional, since + // entanglement is usually "best effort": we'll try our best to render the + // lanes in the same batch, but it's not worth throwing out partially + // completed work in order to do it. + // TODO: Reconsider this. The counter-argument is that the partial work + // represents an intermediate state, which we don't want to show to the user. + // And by spending extra time finishing it, we're increasing the amount of + // time it takes to show the final state, which is what they are actually + // waiting for. + // + // For those exceptions where entanglement is semantically important, like + // useMutableSource, we should ensure that there is no partial work at the + // time we apply the entanglement. var entangledLanes = root.entangledLanes; if (entangledLanes !== NoLanes) { @@ -5610,6 +7495,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: + // User interactions should expire slightly more quickly. + // + // NOTE: This is set to the corresponding constant as in Scheduler.js. + // When we made it larger, a product metric in www regressed, suggesting + // there's a user interaction that's being starved by a series of + // synchronous updates. If that theory is correct, the proper solution is + // to fix the starvation. However, this scenario supports the idea that + // expiration times are an important safeguard when starvation + // does happen. return currentTime + 250; case DefaultHydrationLane: case DefaultLane: @@ -5636,11 +7530,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case RetryLane3: case RetryLane4: case RetryLane5: + // TODO: Retries should be allowed to expire if they are CPU bound for + // too long, but when I made this change it caused a spike in browser + // crashes. There must be some other underlying bug; not super urgent but + // ideally should figure out why and fix it. Unfortunately we don't have + // a repro for the crashes, only detected via production metrics. return NoTimestamp; case SelectiveHydrationLane: case IdleHydrationLane: case IdleLane: case OffscreenLane: + // Anything idle priority or lower should never expire. return NoTimestamp; default: { @@ -5650,10 +7550,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function markStarvedLanesAsExpired(root, currentTime) { + // TODO: This gets called every time we yield. We can optimize by storing + // the earliest expiration time on the root. Then use that to quickly bail out + // of this function. var pendingLanes = root.pendingLanes; var suspendedLanes = root.suspendedLanes; var pingedLanes = root.pingedLanes; - var expirationTimes = root.expirationTimes; + var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their + // expiration time. If so, we'll assume the update is being starved and mark + // it as expired to force it to finish. var lanes = pendingLanes; while (lanes > 0) { @@ -5661,15 +7566,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var lane = 1 << index; var expirationTime = expirationTimes[index]; if (expirationTime === NoTimestamp) { + // Found a pending lane with no expiration time. If it's not suspended, or + // if it's pinged, assume it's CPU-bound. Compute a new expiration time + // using the current time. if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { + // Assumes timestamps are monotonically increasing. expirationTimes[index] = computeExpirationTime(lane, currentTime); } } else if (expirationTime <= currentTime) { + // This lane expired root.expiredLanes |= lane; } lanes &= ~lane; } - } + } // This returns the highest priority pending lanes regardless of whether they function getLanesToRetrySynchronouslyOnError(root) { var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; if (everythingButOffscreen !== NoLanes) { @@ -5701,12 +7611,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (lanes & SyncDefaultLanes) !== NoLanes; } function includesExpiredLane(root, lanes) { + // This is a separate check from includesBlockingLane because a lane can + // expire after a render has already started. return (lanes & root.expiredLanes) !== NoLanes; } function isTransitionLane(lane) { return (lane & TransitionLanes) !== NoLanes; } function claimNextTransitionLane() { + // Cycle through the lanes, assigning each new transition to the next lane. + // In most cases, this means every transition gets its own lane, until we + // run out of lanes and cycle back to the beginning. var lane = nextTransitionLane; nextTransitionLane <<= 1; if ((nextTransitionLane & TransitionLanes) === NoLanes) { @@ -5726,6 +7641,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return lanes & -lanes; } function pickArbitraryLane(lanes) { + // This wrapper function gets inlined. Only exists so to communicate that it + // doesn't matter which bit is selected; you can pick any bit without + // affecting the algorithms where its used. Here I'm using + // getHighestPriorityLane because it requires the fewest operations. return getHighestPriorityLane(lanes); } function pickArbitraryLaneIndex(lanes) { @@ -5748,12 +7667,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function intersectLanes(a, b) { return a & b; - } + } // Seems redundant, but it changes the type from a single lane (used for + // updates) to a group of lanes (used for flushing work). function laneToLanes(lane) { return lane; } function createLaneMap(initial) { + // Intentionally pushing one by one. + // https://v8.dev/blog/elements-kinds#avoid-creating-holes var laneMap = []; for (var i = 0; i < TotalLanes; i++) { laneMap.push(initial); @@ -5761,20 +7683,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return laneMap; } function markRootUpdated(root, updateLane, eventTime) { - root.pendingLanes |= updateLane; + root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update + // could unblock them. Clear the suspended lanes so that we can try rendering + // them again. + // + // TODO: We really only need to unsuspend only lanes that are in the + // `subtreeLanes` of the updated fiber, or the update lanes of the return + // path. This would exclude suspended updates in an unrelated sibling tree, + // since there's no way for this update to unblock it. + // + // We don't do this if the incoming update is idle, because we never process + // idle updates until after all the regular updates have finished; there's no + // way it could unblock a transition. if (updateLane !== IdleLane) { root.suspendedLanes = NoLanes; root.pingedLanes = NoLanes; } var eventTimes = root.eventTimes; - var index = laneToIndex(updateLane); + var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most + // recent event, and we assume time is monotonically increasing. eventTimes[index] = eventTime; } function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; - root.pingedLanes &= ~suspendedLanes; + root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. var expirationTimes = root.expirationTimes; var lanes = suspendedLanes; @@ -5790,7 +7724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function markRootFinished(root, remainingLanes) { var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; - root.pendingLanes = remainingLanes; + root.pendingLanes = remainingLanes; // Let's try everything again root.suspendedLanes = NoLanes; root.pingedLanes = NoLanes; @@ -5799,7 +7733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e root.entangledLanes &= remainingLanes; var entanglements = root.entanglements; var eventTimes = root.eventTimes; - var expirationTimes = root.expirationTimes; + var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work var lanes = noLongerPendingLanes; while (lanes > 0) { @@ -5812,6 +7746,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function markRootEntangled(root, entangledLanes) { + // In addition to entangling each of the given lanes with each other, we also + // have to consider _transitive_ entanglements. For each lane that is already + // entangled with *any* of the given lanes, that lane is now transitively + // entangled with *all* the given lanes. + // + // Translated: If C is entangled with A, then entangling A with B also + // entangles C with B. + // + // If this is hard to grasp, it might help to intentionally break this + // function and look at the tests that fail in ReactTransition-test.js. Try + // commenting out one of the conditions below. var rootEntangledLanes = root.entangledLanes |= entangledLanes; var entanglements = root.entanglements; var lanes = rootEntangledLanes; @@ -5819,7 +7764,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; if ( + // Is this one of the newly entangled lanes? lane & entangledLanes | + // Is this lane transitively entangled with the newly entangled lanes? entanglements[index] & entangledLanes) { entanglements[index] |= entangledLanes; } @@ -5863,11 +7810,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e lane = IdleHydrationLane; break; default: + // Everything else is already either a hydration lane, or shouldn't + // be retried at a hydration lane. lane = NoLane; break; - } + } // Check if the lane we chose is suspended. If so, that indicates that we + // already attempted and failed to hydrate at that level. Also check if we're + // already rendering that lane, which is rare but could happen. if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) { + // Give up trying to hydrate and fall back to client render. return NoLane; } return lane; @@ -5946,45 +7898,192 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return IdleEventPriority; } + // Renderers that don't support mutation + // can re-export everything from this module. function shim() { + throw new Error("The current renderer does not support mutation. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } // Mutation (when unsupported) + var commitMount = shim; + + // Renderers that don't support hydration + // can re-export everything from this module. + function shim$1() { throw new Error("The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - var isSuspenseInstancePending = shim; - var isSuspenseInstanceFallback = shim; - var getSuspenseInstanceFallbackErrorDetails = shim; - var registerSuspenseInstanceRetry = shim; - var hydrateTextInstance = shim; - var clearSuspenseBoundary = shim; - var clearSuspenseBoundaryFromContainer = shim; - var errorHydratingContainer = shim; - var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; - var UPDATE_SIGNAL = {}; - { - Object.freeze(UPDATE_SIGNAL); - } + } // Hydration (when unsupported) + var isSuspenseInstancePending = shim$1; + var isSuspenseInstanceFallback = shim$1; + var getSuspenseInstanceFallbackErrorDetails = shim$1; + var registerSuspenseInstanceRetry = shim$1; + var hydrateTextInstance = shim$1; + var errorHydratingContainer = shim$1; + var _nativeFabricUIManage = nativeFabricUIManager, + createNode = _nativeFabricUIManage.createNode, + cloneNode = _nativeFabricUIManage.cloneNode, + cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, + cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, + cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, + createChildNodeSet = _nativeFabricUIManage.createChildSet, + appendChildNode = _nativeFabricUIManage.appendChild, + appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, + completeRoot = _nativeFabricUIManage.completeRoot, + registerEventHandler = _nativeFabricUIManage.registerEventHandler, + fabricMeasure = _nativeFabricUIManage.measure, + fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, + fabricMeasureLayout = _nativeFabricUIManage.measureLayout, + FabricDefaultPriority = _nativeFabricUIManage.unstable_DefaultEventPriority, + FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, + fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority, + _setNativeProps = _nativeFabricUIManage.setNativeProps; + var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; // Counter for uniquely identifying views. + // % 10 === 1 means it is a rootTag. + // % 2 === 0 means it is a Fabric tag. + // This means that they never overlap. - var nextReactTag = 3; - function allocateTag() { - var tag = nextReactTag; - if (tag % 10 === 1) { - tag += 2; - } - nextReactTag = tag + 2; - return tag; + var nextReactTag = 2; + + // TODO: Remove this conditional once all changes have propagated. + if (registerEventHandler) { + /** + * Register the event emitter with the native bridge + */ + registerEventHandler(dispatchEvent); } - function recursivelyUncacheFiberNode(node) { - if (typeof node === "number") { - uncacheFiberNode(node); - } else { - uncacheFiberNode(node._nativeTag); - node._children.forEach(recursivelyUncacheFiberNode); + /** + * This is used for refs on host components. + */ + + var ReactFabricHostComponent = /*#__PURE__*/function () { + function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + this._internalInstanceHandle = internalInstanceHandle; } - } + var _proto = ReactFabricHostComponent.prototype; + _proto.blur = function blur() { + ReactNativePrivateInterface.TextInputState.blurTextInput(this); + }; + _proto.focus = function focus() { + ReactNativePrivateInterface.TextInputState.focusTextInput(this); + }; + _proto.measure = function measure(callback) { + var stateNode = this._internalInstanceHandle.stateNode; + if (stateNode != null) { + fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + } + }; + _proto.measureInWindow = function measureInWindow(callback) { + var stateNode = this._internalInstanceHandle.stateNode; + if (stateNode != null) { + fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + } + }; + _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) /* currently unused */ + { + if (typeof relativeToNativeNode === "number" || !(relativeToNativeNode instanceof ReactFabricHostComponent)) { + { + error("Warning: ref.measureLayout must be called with a ref to a native component."); + } + return; + } + var toStateNode = this._internalInstanceHandle.stateNode; + var fromStateNode = relativeToNativeNode._internalInstanceHandle.stateNode; + if (toStateNode != null && fromStateNode != null) { + fabricMeasureLayout(toStateNode.node, fromStateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + } + }; + _proto.setNativeProps = function setNativeProps(nativeProps) { + { + warnForStyleProps(nativeProps, this.viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, this.viewConfig.validAttributes); + var stateNode = this._internalInstanceHandle.stateNode; + if (stateNode != null && updatePayload != null) { + _setNativeProps(stateNode.node, updatePayload); + } + }; // This API (addEventListener, removeEventListener) attempts to adhere to the + // w3 Level2 Events spec as much as possible, treating HostComponent as a DOM node. + // + // Unless otherwise noted, these methods should "just work" and adhere to the W3 specs. + // If they deviate in a way that is not explicitly noted here, you've found a bug! + // + // See: + // * https://www.w3.org/TR/DOM-Level-2-Events/events.html + // * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener + // * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener + // + // And notably, not implemented (yet?): + // * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent + // + // + // Deviations from spec/TODOs: + // (1) listener must currently be a function, we do not support EventListener objects yet. + // (2) we do not support the `signal` option / AbortSignal yet + + _proto.addEventListener_unstable = function addEventListener_unstable(eventType, listener, options) { + if (typeof eventType !== "string") { + throw new Error("addEventListener_unstable eventType must be a string"); + } + if (typeof listener !== "function") { + throw new Error("addEventListener_unstable listener must be a function"); + } // The third argument is either boolean indicating "captures" or an object. + + var optionsObj = typeof options === "object" && options !== null ? options : {}; + var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; + var once = optionsObj.once || false; + var passive = optionsObj.passive || false; + var signal = null; // TODO: implement signal/AbortSignal + + var eventListeners = this._eventListeners || {}; + if (this._eventListeners == null) { + this._eventListeners = eventListeners; + } + var namedEventListeners = eventListeners[eventType] || []; + if (eventListeners[eventType] == null) { + eventListeners[eventType] = namedEventListeners; + } + namedEventListeners.push({ + listener: listener, + invalidated: false, + options: { + capture: capture, + once: once, + passive: passive, + signal: signal + } + }); + }; // See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener + + _proto.removeEventListener_unstable = function removeEventListener_unstable(eventType, listener, options) { + // eventType and listener must be referentially equal to be removed from the listeners + // data structure, but in "options" we only check the `capture` flag, according to spec. + // That means if you add the same function as a listener with capture set to true and false, + // you must also call removeEventListener twice with capture set to true/false. + var optionsObj = typeof options === "object" && options !== null ? options : {}; + var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; // If there are no event listeners or named event listeners, we can bail early - our + // job is already done. + + var eventListeners = this._eventListeners; + if (!eventListeners) { + return; + } + var namedEventListeners = eventListeners[eventType]; + if (!namedEventListeners) { + return; + } // TODO: optimize this path to make remove cheaper + + eventListeners[eventType] = namedEventListeners.filter(function (listenerObj) { + return !(listenerObj.listener === listener && listenerObj.options.capture === capture); + }); + }; + return ReactFabricHostComponent; + }(); // eslint-disable-next-line no-unused-expressions function appendInitialChild(parentInstance, child) { - parentInstance._children.push(child); + appendChildNode(parentInstance.node, child.node); } function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { - var tag = allocateTag(); + var tag = nextReactTag; + nextReactTag += 2; var viewConfig = getViewConfigForType(type); { for (var key in viewConfig.validAttributes) { @@ -5994,44 +8093,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } var updatePayload = create(props, viewConfig.validAttributes); - ReactNativePrivateInterface.UIManager.createView(tag, + var node = createNode(tag, + // reactTag viewConfig.uiViewClassName, + // viewName rootContainerInstance, - updatePayload); - - var component = new ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandle); - precacheFiberNode(internalInstanceHandle, tag); - updateFiberProps(tag, props); + // rootTag + updatePayload, + // props + internalInstanceHandle // internalInstanceHandle + ); - return component; + var component = new ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle); + return { + node: node, + canonical: component + }; } function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - if (!hostContext.isInAParentText) { - throw new Error("Text strings must be rendered within a component."); + { + if (!hostContext.isInAParentText) { + error("Text strings must be rendered within a component."); + } } - var tag = allocateTag(); - ReactNativePrivateInterface.UIManager.createView(tag, + var tag = nextReactTag; + nextReactTag += 2; + var node = createNode(tag, + // reactTag "RCTRawText", + // viewName rootContainerInstance, + // rootTag { text: text - }); - - precacheFiberNode(internalInstanceHandle, tag); - return tag; - } - function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { - if (parentInstance._children.length === 0) { - return false; - } - - var nativeTags = parentInstance._children.map(function (child) { - return typeof child === "number" ? child : child._nativeTag; - }); - ReactNativePrivateInterface.UIManager.setChildren(parentInstance._nativeTag, - nativeTags); + }, + // props + internalInstanceHandle // instance handle + ); - return false; + return { + node: node + }; } function getRootHostContext(rootContainerInstance) { return { @@ -6041,9 +8143,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getChildHostContext(parentHostContext, type, rootContainerInstance) { var prevIsInAParentText = parentHostContext.isInAParentText; var isInAParentText = type === "AndroidTextInput" || + // Android type === "RCTMultilineTextInputView" || + // iOS type === "RCTSinglelineTextInputView" || - type === "RCTText" || type === "RCTVirtualText"; + // iOS + type === "RCTText" || type === "RCTVirtualText"; // TODO: If this is an offscreen host container, we should reuse the + // parent context. + if (prevIsInAParentText !== isInAParentText) { return { isInAParentText: isInAParentText @@ -6053,159 +8160,100 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function getPublicInstance(instance) { - return instance; + return instance.canonical; } function prepareForCommit(containerInfo) { + // Noop return null; } function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { - return UPDATE_SIGNAL; + var viewConfig = instance.canonical.viewConfig; + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); // TODO: If the event handlers have changed, we need to update the current props + // in the commit phase but there is no host config hook to do it yet. + // So instead we hack it by updating it in the render phase. + + instance.canonical.currentProps = newProps; + return updatePayload; } function resetAfterCommit(containerInfo) { + // Noop } - var scheduleTimeout = setTimeout; - var cancelTimeout = clearTimeout; - var noTimeout = -1; function shouldSetTextContent(type, props) { + // TODO (bvaughn) Revisit this decision. + // Always returning false simplifies the createInstance() implementation, + // But creates an additional child Fiber for raw text children. + // No additional native views are created though. + // It's not clear to me which is better so I'm deferring for now. + // More context @ github.com/facebook/react/pull/8560#discussion_r92111303 return false; } function getCurrentEventPriority() { - return DefaultEventPriority; - } - function appendChild(parentInstance, child) { - var childTag = typeof child === "number" ? child : child._nativeTag; - var children = parentInstance._children; - var index = children.indexOf(child); - if (index >= 0) { - children.splice(index, 1); - children.push(child); - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, - [index], - [children.length - 1], - [], - [], - []); - } else { - children.push(child); - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, - [], - [], - [childTag], - [children.length - 1], - []); - } - } - - function appendChildToContainer(parentInstance, child) { - var childTag = typeof child === "number" ? child : child._nativeTag; - ReactNativePrivateInterface.UIManager.setChildren(parentInstance, - [childTag]); - } - - function commitTextUpdate(textInstance, oldText, newText) { - ReactNativePrivateInterface.UIManager.updateView(textInstance, - "RCTRawText", - { - text: newText - }); - } - - function commitUpdate(instance, updatePayloadTODO, type, oldProps, newProps, internalInstanceHandle) { - var viewConfig = instance.viewConfig; - updateFiberProps(instance._nativeTag, newProps); - var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); - - if (updatePayload != null) { - ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, - viewConfig.uiViewClassName, - updatePayload); + var currentEventPriority = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; + if (currentEventPriority != null) { + switch (currentEventPriority) { + case FabricDiscretePriority: + return DiscreteEventPriority; + case FabricDefaultPriority: + default: + return DefaultEventPriority; + } } - } - - function insertBefore(parentInstance, child, beforeChild) { - var children = parentInstance._children; - var index = children.indexOf(child); + return DefaultEventPriority; + } // The Fabric renderer is secondary to the existing React Native renderer. - if (index >= 0) { - children.splice(index, 1); - var beforeChildIndex = children.indexOf(beforeChild); - children.splice(beforeChildIndex, 0, child); - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, - [index], - [beforeChildIndex], - [], - [], - []); + var warnsIfNotActing = false; + var scheduleTimeout = setTimeout; + var cancelTimeout = clearTimeout; + var noTimeout = -1; // ------------------- + function cloneInstance(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle, keepChildren, recyclableInstance) { + var node = instance.node; + var clone; + if (keepChildren) { + if (updatePayload !== null) { + clone = cloneNodeWithNewProps(node, updatePayload); + } else { + clone = cloneNode(node); + } } else { - var _beforeChildIndex = children.indexOf(beforeChild); - children.splice(_beforeChildIndex, 0, child); - var childTag = typeof child === "number" ? child : child._nativeTag; - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, - [], - [], - [childTag], - [_beforeChildIndex], - []); - } - } - - function insertInContainerBefore(parentInstance, child, beforeChild) { - if (typeof parentInstance === "number") { - throw new Error("Container does not support insertBefore operation"); + if (updatePayload !== null) { + clone = cloneNodeWithNewChildrenAndProps(node, updatePayload); + } else { + clone = cloneNodeWithNewChildren(node); + } } + return { + node: clone, + canonical: instance.canonical + }; } - function removeChild(parentInstance, child) { - recursivelyUncacheFiberNode(child); - var children = parentInstance._children; - var index = children.indexOf(child); - children.splice(index, 1); - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, - [], - [], - [], - [], - [index]); - } - - function removeChildFromContainer(parentInstance, child) { - recursivelyUncacheFiberNode(child); - ReactNativePrivateInterface.UIManager.manageChildren(parentInstance, - [], - [], - [], - [], - [0]); - } - - function resetTextContent(instance) { - } - function hideInstance(instance) { - var viewConfig = instance.viewConfig; + function cloneHiddenInstance(instance, type, props, internalInstanceHandle) { + var viewConfig = instance.canonical.viewConfig; + var node = instance.node; var updatePayload = create({ style: { display: "none" } }, viewConfig.validAttributes); - ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + return { + node: cloneNodeWithNewProps(node, updatePayload), + canonical: instance.canonical + }; } - function hideTextInstance(textInstance) { + function cloneHiddenTextInstance(instance, text, internalInstanceHandle) { throw new Error("Not yet implemented."); } - function unhideInstance(instance, props) { - var viewConfig = instance.viewConfig; - var updatePayload = diff(assign({}, props, { - style: [props.style, { - display: "none" - }] - }), props, viewConfig.validAttributes); - ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + function createContainerChildSet(container) { + return createChildNodeSet(container); } - function clearContainer(container) { + function appendChildToContainerChildSet(childSet, child) { + appendChildNodeToSet(childSet, child.node); } - function unhideTextInstance(textInstance, text) { - throw new Error("Not yet implemented."); + function finalizeContainerChildren(container, newChildren) { + completeRoot(container, newChildren); } + function replaceContainerChildren(container, newChildren) {} function preparePortalMount(portalInstance) { + // noop } var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; function describeBuiltInComponentFrame(name, source, ownerFn) { @@ -6227,7 +8275,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var sourceInfo = ""; if (source) { var path = source.fileName; - var fileName = path.replace(BEFORE_SLASH_RE, ""); + var fileName = path.replace(BEFORE_SLASH_RE, ""); // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". if (/^index\./.test(fileName)) { var match = path.match(BEFORE_SLASH_RE); @@ -6286,6 +8335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render, source, ownerFn); case REACT_MEMO_TYPE: + // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_LAZY_TYPE: { @@ -6293,6 +8343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var payload = lazyComponent._payload; var init = lazyComponent._init; try { + // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } @@ -6316,13 +8367,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function checkPropTypes(typeSpecs, values, location, componentName, element) { { + // $FlowFixMe This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. if (typeof typeSpecs[typeSpecName] !== "function") { + // eslint-disable-next-line react-internal/prod-error-codes var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); err.name = "Invariant Violation"; throw err; @@ -6337,6 +8394,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCurrentlyValidatingElement(null); } if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. loggedTypeFailures[error$1.message] = true; setCurrentlyValidatingElement(element); error("Failed %s type: %s", location, error$1.message); @@ -6391,16 +8450,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var emptyContextObject = {}; { Object.freeze(emptyContextObject); - } + } // A cursor to the current merged context object on the stack. - var contextStackCursor = createCursor(emptyContextObject); + var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. - var didPerformWorkStackCursor = createCursor(false); + var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack. + // We use this to get access to the parent context after we have already + // pushed the next context provider, and now need to merge their contexts. var previousContext = emptyContextObject; function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { { if (didPushOwnContextIfProvider && isContextProvider(Component)) { + // If the fiber is a context provider itself, when we read its context + // we may have already pushed its own child context on the stack. A context + // provider should not "see" its own child context. Therefore we read the + // previous (parent) context instead for a context provider. return previousContext; } return contextStackCursor.current; @@ -6419,7 +8484,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var contextTypes = type.contextTypes; if (!contextTypes) { return emptyContextObject; - } + } // Avoid recreating masked context unless unmasked context has changed. + // Failing to do this will result in unnecessary calls to componentWillReceiveProps. + // This may trigger infinite loops if componentWillReceiveProps calls setState. var instance = workInProgress.stateNode; if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { @@ -6432,7 +8499,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var name = getComponentNameFromFiber(workInProgress) || "Unknown"; checkPropTypes(contextTypes, context, "context", name); - } + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // Context is created before the class component is instantiated so check for instance. if (instance) { cacheContext(workInProgress, unmaskedContext, context); @@ -6475,7 +8543,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function processChildContext(fiber, type, parentContext) { { var instance = fiber.stateNode; - var childContextTypes = type.childContextTypes; + var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future. + // It has only been added in Fiber to match the (unintentional) behavior in Stack. if (typeof instance.getChildContext !== "function") { { @@ -6502,9 +8571,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function pushContextProvider(workInProgress) { { - var instance = workInProgress.stateNode; + var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity. + // If the instance does not exist yet, we will push null at first, + // and replace it on the stack later when invalidating the context. - var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later. + // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. previousContext = contextStackCursor.current; push(contextStackCursor, memoizedMergedChildContext, workInProgress); @@ -6519,11 +8591,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); } if (didChange) { + // Merge parent and own context. + // Skip this if we're not updating due to sCU. + // This avoids unnecessarily recomputing memoized values. var mergedContext = processChildContext(workInProgress, type, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; + instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one. + // It is important to unwind the context in the reverse order. pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed. push(contextStackCursor, mergedContext, workInProgress); push(didPerformWorkStackCursor, didChange, workInProgress); @@ -6535,6 +8611,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function findCurrentUnmaskedContext(fiber) { { + // Currently this is only used with renderSubtreeIntoContainer; not sure if it + // makes sense elsewhere if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { throw new Error("Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); } @@ -6560,8 +8638,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var LegacyRoot = 0; var ConcurrentRoot = 1; + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ function is(x, y) { - return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare + ; } var objectIs = typeof Object.is === "function" ? Object.is : is; @@ -6569,9 +8652,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var includesLegacySyncCallbacks = false; var isFlushingSyncQueue = false; function scheduleSyncCallback(callback) { + // Push this callback into an internal queue. We'll flush these either in + // the next tick, or earlier if something calls `flushSyncCallbackQueue`. if (syncQueue === null) { syncQueue = [callback]; } else { + // Push onto existing queue. Don't need to schedule a callback because + // we already scheduled one when we created the queue. syncQueue.push(callback); } } @@ -6580,18 +8667,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleSyncCallback(callback); } function flushSyncCallbacksOnlyInLegacyMode() { + // Only flushes the queue if there's a legacy sync callback scheduled. + // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So + // it might make more sense for the queue to be a list of roots instead of a + // list of generic callbacks. Then we can have two: one for legacy roots, one + // for concurrent roots. And this method would only flush the legacy ones. if (includesLegacySyncCallbacks) { flushSyncCallbacks(); } } function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { + // Prevent re-entrance. isFlushingSyncQueue = true; var i = 0; var previousUpdatePriority = getCurrentUpdatePriority(); try { var isSync = true; - var queue = syncQueue; + var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases. setCurrentUpdatePriority(DiscreteEventPriority); for (; i < queue.length; i++) { @@ -6603,9 +8697,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e syncQueue = null; includesLegacySyncCallbacks = false; } catch (error) { + // If something throws, leave the remaining callbacks on the queue. if (syncQueue !== null) { syncQueue = syncQueue.slice(i + 1); - } + } // Resume flushing in the next tick scheduleCallback(ImmediatePriority, flushSyncCallbacks); throw error; @@ -6617,11 +8712,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } + // This is imported by the event replaying implementation in React DOM. It's + // in a separate file to break a circular dependency between the renderer and + // the reconciler. function isRootDehydrated(root) { var currentState = root.current.memoizedState; return currentState.isDehydrated; } + // TODO: Use the unified fiber stack module instead of this local one? + // Intentionally not using it yet to derisk the initial implementation, because + // the way we push/pop these values is a bit unusual. If there's a mistake, I'd + // rather the ids be wrong than crash the whole reconciler. var forkStack = []; var forkStackIndex = 0; var treeForkProvider = null; @@ -6632,6 +8734,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var treeContextId = 1; var treeContextOverflow = ""; function popTreeContext(workInProgress) { + // Restore the previous values. + // This is a bit more complicated than other context-like modules in Fiber + // because the same Fiber may appear on the stack multiple times and for + // different reasons. We have to keep popping until the work-in-progress is + // no longer at the top of the stack. while (workInProgress === treeForkProvider) { treeForkProvider = forkStack[--forkStackIndex]; forkStack[forkStackIndex] = null; @@ -6647,9 +8754,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e idStack[idStackIndex] = null; } } - var isHydrating = false; + var isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches + // due to earlier mismatches or a suspended fiber. - var didSuspendOrErrorDEV = false; + var didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary var hydrationErrors = null; function didSuspendOrErrorWhileHydratingDEV() { @@ -6685,6 +8793,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function upgradeHydrationErrorsToRecoverable() { if (hydrationErrors !== null) { + // Successfully completed a forced client render. The errors that occurred + // during the hydration attempt are now recovered. We will log them in + // commit phase, once the entire tree has finished. queueRecoverableErrors(hydrationErrors); hydrationErrors = null; } @@ -6705,6 +8816,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ReactCurrentBatchConfig.transition; } + /** + * Performs equality by iterating through keys on an object and returning false + * when any key has values which are not strictly equal between the arguments. + * Returns true when the values of all keys are strictly equal. + */ + function shallowEqual(objA, objB) { if (objectIs(objA, objB)) { return true; @@ -6716,7 +8833,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; - } + } // Test for A's keys different from B. for (var i = 0; i < keysA.length; i++) { var currentKey = keysA[i]; @@ -6782,7 +8899,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { if (current === null) { return ""; - } + } // Safe because if current fiber exists, we are reconciling, + // and it is guaranteed to be the work-in-progress version. return getStackByFiberInDevAndProd(current); } @@ -6842,14 +8960,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var pendingComponentWillReceivePropsWarnings = []; var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; var pendingComponentWillUpdateWarnings = []; - var pendingUNSAFE_ComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about. var didWarnAboutUnsafeLifecycles = new Set(); ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + // Dedupe strategy: Warn once per component. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { return; } if (typeof instance.componentWillMount === "function" && + // Don't warn about react-lifecycles-compat polyfilled components. instance.componentWillMount.__suppressDeprecationWarning !== true) { pendingComponentWillMountWarnings.push(fiber); } @@ -6870,6 +8990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + // We do an initial pass to gather component names var componentWillMountUniqueNames = new Set(); if (pendingComponentWillMountWarnings.length > 0) { pendingComponentWillMountWarnings.forEach(function (fiber) { @@ -6917,7 +9038,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnAboutUnsafeLifecycles.add(fiber.type); }); pendingUNSAFE_ComponentWillUpdateWarnings = []; - } + } // Finally, we flush all the warnings + // UNSAFE_ ones before the deprecated ones, since they'll be 'louder' if (UNSAFE_componentWillMountUniqueNames.size > 0) { var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); @@ -6944,7 +9066,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e warn("componentWillUpdate has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames5); } }; - var pendingLegacyContextWarning = new Map(); + var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about. var didWarnAboutLegacyContext = new Set(); ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { @@ -6952,7 +9074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (strictRoot === null) { error("Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); return; - } + } // Dedup strategy: Warn once per component. if (didWarnAboutLegacyContext.has(fiber.type)) { return; @@ -6997,13 +9119,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /* + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol + * and Temporal.* types. See https://github.com/facebook/react/pull/22064. + * + * The functions in this module will throw an easier-to-understand, + * easier-to-debug exception with a clear errors message message explaining the + * problem. (Instead of a confusing exception thrown inside the implementation + * of the `value` object). + */ + // $FlowFixMe only called in DEV, so void return is not possible. function typeName(value) { { + // toStringTag is needed for namespaced types like Temporal.Instant var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; return type; } - } + } // $FlowFixMe only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -7016,13 +9149,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function testStringCoercion(value) { + // If you ended up here by following an exception call stack, here's what's + // happened: you supplied an object or symbol value to React (as a prop, key, + // DOM attribute, CSS property, string ref, etc.) and when React tried to + // coerce it to a string using `'' + value`, an exception was thrown. + // + // The most common types that will cause this exception are `Symbol` instances + // and Temporal objects like `Temporal.Instant`. But any object that has a + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this + // exception. (Library authors do this to prevent users from using built-in + // numeric operators like `+` or comparison operators like `>=` because custom + // methods are needed to perform accurate arithmetic or comparison.) + // + // To fix the problem, coerce this object or symbol value to a string before + // passing it to React. The most reliable way is usually `String(value)`. + // + // To find which value is throwing, check the browser or debugger console. + // Before this exception was thrown, there should be `console.error` output + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the + // problem and how that type was used: key, atrribute, input value prop, etc. + // In most cases, this console output also shows the component and its + // ancestor components where the exception happened. + // + // eslint-disable-next-line react-internal/safe-string-coercion return "" + value; } function checkKeyStringCoercion(value) { { if (willCoercionThrow(value)) { error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value)); - return testStringCoercion(value); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) } } } @@ -7031,13 +9187,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { if (willCoercionThrow(value)) { error("The provided `%s` prop is an unsupported type %s." + " This value must be coerced to a string before before using it here.", propName, typeName(value)); - return testStringCoercion(value); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) } } } function resolveDefaultProps(Component, baseProps) { if (Component && Component.defaultProps) { + // Resolve default props. Taken from ReactElement var props = assign({}, baseProps); var defaultProps = Component.defaultProps; for (var propName in defaultProps) { @@ -7052,6 +9209,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var valueCursor = createCursor(null); var rendererSigil; { + // Use this to detect multiple renderers using the same context rendererSigil = {}; } var currentlyRenderingFiber = null; @@ -7059,6 +9217,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var lastFullyObservedContext = null; var isDisallowedContextReadInDEV = false; function resetContextDependencies() { + // This is called right before React yields execution, to ensure `readContext` + // cannot be called outside the render phase. currentlyRenderingFiber = null; lastContextDependency = null; lastFullyObservedContext = null; @@ -7078,13 +9238,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function pushProvider(providerFiber, context, nextValue) { { - push(valueCursor, context._currentValue, providerFiber); - context._currentValue = nextValue; + push(valueCursor, context._currentValue2, providerFiber); + context._currentValue2 = nextValue; { - if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { + if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) { error("Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported."); } - context._currentRenderer = rendererSigil; + context._currentRenderer2 = rendererSigil; } } } @@ -7093,11 +9253,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pop(valueCursor, providerFiber); { { - context._currentValue = currentValue; + context._currentValue2 = currentValue; } } } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + // Update the child lanes of all the ancestors, including the alternates. var node = parent; while (node !== null) { var alternate = node.alternate; @@ -7128,27 +9289,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function propagateContextChange_eager(workInProgress, context, renderLanes) { var fiber = workInProgress.child; if (fiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. fiber.return = workInProgress; } while (fiber !== null) { - var nextFiber = void 0; + var nextFiber = void 0; // Visit this fiber. var list = fiber.dependencies; if (list !== null) { nextFiber = fiber.child; var dependency = list.firstContext; while (dependency !== null) { + // Check if the context matches. if (dependency.context === context) { + // Match! Schedule an update on this fiber. if (fiber.tag === ClassComponent) { + // Schedule a force update on the work-in-progress. var lane = pickArbitraryLane(renderLanes); var update = createUpdate(NoTimestamp, lane); - update.tag = ForceUpdate; + update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the + // update to the current fiber, too, which means it will persist even if + // this render is thrown away. Since it's a race condition, not sure it's + // worth fixing. + // Inlined `enqueueUpdate` to remove interleaved update check var updateQueue = fiber.updateQueue; if (updateQueue === null) ;else { var sharedQueue = updateQueue.shared; var pending = sharedQueue.pending; if (pending === null) { + // This is the first update. Create a circular list. update.next = update; } else { update.next = pending.next; @@ -7162,17 +9332,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (alternate !== null) { alternate.lanes = mergeLanes(alternate.lanes, renderLanes); } - scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); + scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too. - list.lanes = mergeLanes(list.lanes, renderLanes); + list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the + // dependency list. break; } dependency = dependency.next; } } else if (fiber.tag === ContextProvider) { + // Don't scan deeper if this is a matching provider nextFiber = fiber.type === workInProgress.type ? null : fiber.child; } else if (fiber.tag === DehydratedFragment) { + // If a dehydrated suspense boundary is in this subtree, we don't know + // if it will have any context consumers in it. The best we can do is + // mark it as having updates. var parentSuspense = fiber.return; if (parentSuspense === null) { throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); @@ -7181,28 +9356,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _alternate = parentSuspense.alternate; if (_alternate !== null) { _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes); - } + } // This is intentionally passing this fiber as the parent + // because we want to schedule this fiber as having work + // on its children. We'll use the childLanes on + // this fiber to indicate that a context has changed. scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress); nextFiber = fiber.sibling; } else { + // Traverse down. nextFiber = fiber.child; } if (nextFiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. nextFiber.return = fiber; } else { + // No child. Traverse to next sibling. nextFiber = fiber; while (nextFiber !== null) { if (nextFiber === workInProgress) { + // We're back to the root of this subtree. Exit. nextFiber = null; break; } var sibling = nextFiber.sibling; if (sibling !== null) { + // Set the return pointer of the sibling to the work-in-progress fiber. sibling.return = nextFiber.return; nextFiber = sibling; break; - } + } // No more siblings. Traverse up. nextFiber = nextFiber.return; } @@ -7220,8 +9403,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var firstContext = dependencies.firstContext; if (firstContext !== null) { if (includesSomeLane(dependencies.lanes, renderLanes)) { + // Context list has a pending update. Mark that this fiber performed work. markWorkInProgressReceivedUpdate(); - } + } // Reset the work-in-progress list dependencies.firstContext = null; } @@ -7230,11 +9414,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function _readContext(context) { { + // This warning would fire if you read context inside a Hook like useMemo. + // Unlike the class check below, it's not enforced in production for perf. if (isDisallowedContextReadInDEV) { error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); } } - var value = context._currentValue; + var value = context._currentValue2; if (lastFullyObservedContext === context) ;else { var contextItem = { context: context, @@ -7244,7 +9430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (lastContextDependency === null) { if (currentlyRenderingFiber === null) { throw new Error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); - } + } // This is the first dependency for this component. Create a new list. lastContextDependency = contextItem; currentlyRenderingFiber.dependencies = { @@ -7252,27 +9438,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e firstContext: contextItem }; } else { + // Append a new context item. lastContextDependency = lastContextDependency.next = contextItem; } } return value; } - var interleavedQueues = null; - function pushInterleavedQueue(queue) { - if (interleavedQueues === null) { - interleavedQueues = [queue]; + // render. When this render exits, either because it finishes or because it is + // interrupted, the interleaved updates will be transferred onto the main part + // of the queue. + + var concurrentQueues = null; + function pushConcurrentUpdateQueue(queue) { + if (concurrentQueues === null) { + concurrentQueues = [queue]; } else { - interleavedQueues.push(queue); - } - } - function hasInterleavedUpdates() { - return interleavedQueues !== null; - } - function enqueueInterleavedUpdates() { - if (interleavedQueues !== null) { - for (var i = 0; i < interleavedQueues.length; i++) { - var queue = interleavedQueues[i]; + concurrentQueues.push(queue); + } + } + function finishQueueingConcurrentUpdates() { + // Transfer the interleaved updates onto the main queue. Each queue has a + // `pending` field and an `interleaved` field. When they are not null, they + // point to the last node in a circular linked list. We need to append the + // interleaved list to the end of the pending list by joining them into a + // single, circular list. + if (concurrentQueues !== null) { + for (var i = 0; i < concurrentQueues.length; i++) { + var queue = concurrentQueues[i]; var lastInterleavedUpdate = queue.interleaved; if (lastInterleavedUpdate !== null) { queue.interleaved = null; @@ -7286,13 +9479,102 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e queue.pending = lastInterleavedUpdate; } } - interleavedQueues = null; + concurrentQueues = null; + } + } + function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. + + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. + + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + } + function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. + + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function enqueueConcurrentRenderForLane(fiber, lane) { + return markUpdateLaneFromFiberToRoot(fiber, lane); + } // Calling this function outside this module should only be done for backwards + // compatibility and should always be accompanied by a warning. + + var unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot; + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + // Update the source fiber's lanes + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); + var alternate = sourceFiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, lane); + } + { + if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } // Walk the parent path to the root and update the child lanes. + + var node = sourceFiber; + var parent = sourceFiber.return; + while (parent !== null) { + parent.childLanes = mergeLanes(parent.childLanes, lane); + alternate = parent.alternate; + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, lane); + } else { + { + if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + } + node = parent; + parent = parent.return; + } + if (node.tag === HostRoot) { + var root = node.stateNode; + return root; + } else { + return null; } } var UpdateState = 0; var ReplaceState = 1; var ForceUpdate = 2; - var CaptureUpdate = 3; + var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`. + // It should only be read right after calling `processUpdateQueue`, via + // `checkHasForceUpdateAfterProcessing`. var hasForceUpdate = false; var didWarnUpdateInsideUpdate; @@ -7316,6 +9598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiber.updateQueue = queue; } function cloneUpdateQueue(current, workInProgress) { + // Clone the update queue from current. Unless it's already a clone. var queue = workInProgress.updateQueue; var currentQueue = current.updateQueue; if (queue === currentQueue) { @@ -7343,65 +9626,82 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { - return; + // Only occurs if the fiber has been unmounted. + return null; } var sharedQueue = updateQueue.shared; - if (isInterleavedUpdate(fiber)) { - var interleaved = sharedQueue.interleaved; - if (interleaved === null) { - update.next = update; - - pushInterleavedQueue(sharedQueue); - } else { - update.next = interleaved.next; - interleaved.next = update; + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; } - sharedQueue.interleaved = update; - } else { + } + if (isUnsafeClassRenderPhaseUpdate()) { + // This is an unsafe render phase update. Add directly to the update + // queue so we can process it immediately during the current render. var pending = sharedQueue.pending; if (pending === null) { + // This is the first update. Create a circular list. update.next = update; } else { update.next = pending.next; pending.next = update; } - sharedQueue.pending = update; - } - { - if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { - error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); - didWarnUpdateInsideUpdate = true; - } + sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering + // this fiber. This is for backwards compatibility in the case where you + // update a different component during render phase than the one that is + // currently renderings (a pattern that is accompanied by a warning). + + return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane); + } else { + return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane); } } function entangleTransitions(root, fiber, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { + // Only occurs if the fiber has been unmounted. return; } var sharedQueue = updateQueue.shared; if (isTransitionLane(lane)) { - var queueLanes = sharedQueue.lanes; + var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must + // have finished. We can remove them from the shared queue, which represents + // a superset of the actually pending lanes. In some cases we may entangle + // more than we need to, but that's OK. In fact it's worse if we *don't* + // entangle when we should. - queueLanes = intersectLanes(queueLanes, root.pendingLanes); + queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes. var newQueueLanes = mergeLanes(queueLanes, lane); - sharedQueue.lanes = newQueueLanes; + sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if + // the lane finished since the last time we entangled it. So we need to + // entangle it again, just to be sure. markRootEntangled(root, newQueueLanes); } } function enqueueCapturedUpdate(workInProgress, capturedUpdate) { - var queue = workInProgress.updateQueue; + // Captured updates are updates that are thrown by a child during the render + // phase. They should be discarded if the render is aborted. Therefore, + // we should only put them on the work-in-progress queue, not the current one. + var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone. var current = workInProgress.alternate; if (current !== null) { var currentQueue = current.updateQueue; if (queue === currentQueue) { + // The work-in-progress queue is the same as current. This happens when + // we bail out on a parent fiber that then captures an error thrown by + // a child. Since we want to append the update only to the work-in + // -progress queue, we need to clone the updates. We usually clone during + // processUpdateQueue, but that didn't happen in this case because we + // skipped over the parent when we bailed out. var newFirst = null; var newLast = null; var firstBaseUpdate = queue.firstBaseUpdate; if (firstBaseUpdate !== null) { + // Loop through the updates and clone them. var update = firstBaseUpdate; do { var clone = { @@ -7419,7 +9719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newLast = clone; } update = update.next; - } while (update !== null); + } while (update !== null); // Append the captured update the end of the cloned list. if (newLast === null) { newFirst = newLast = capturedUpdate; @@ -7428,6 +9728,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newLast = capturedUpdate; } } else { + // There are no base updates. newFirst = newLast = capturedUpdate; } queue = { @@ -7440,7 +9741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.updateQueue = queue; return; } - } + } // Append the update to the end of the list. var lastBaseUpdate = queue.lastBaseUpdate; if (lastBaseUpdate === null) { @@ -7456,6 +9757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var payload = update.payload; if (typeof payload === "function") { + // Updater function { enterDisallowedContextReadInDEV(); } @@ -7464,7 +9766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exitDisallowedContextReadInDEV(); } return nextState; - } + } // State object return payload; } @@ -7472,12 +9774,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture; } + // Intentional fallthrough case UpdateState: { var _payload = update.payload; var partialState; if (typeof _payload === "function") { + // Updater function { enterDisallowedContextReadInDEV(); } @@ -7486,11 +9790,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exitDisallowedContextReadInDEV(); } } else { + // Partial state object partialState = _payload; } if (partialState === null || partialState === undefined) { + // Null and undefined are treated as no-ops. return prevState; - } + } // Merge the partial state and the previous state. return assign({}, prevState, partialState); } @@ -7503,31 +9809,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return prevState; } function processUpdateQueue(workInProgress, props, instance, renderLanes) { + // This is always non-null on a ClassComponent or HostRoot var queue = workInProgress.updateQueue; hasForceUpdate = false; { currentlyProcessingQueue = queue.shared; } var firstBaseUpdate = queue.firstBaseUpdate; - var lastBaseUpdate = queue.lastBaseUpdate; + var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue. var pendingQueue = queue.shared.pending; if (pendingQueue !== null) { - queue.shared.pending = null; + queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first + // and last so that it's non-circular. var lastPendingUpdate = pendingQueue; var firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = null; + lastPendingUpdate.next = null; // Append pending updates to base queue if (lastBaseUpdate === null) { firstBaseUpdate = firstPendingUpdate; } else { lastBaseUpdate.next = firstPendingUpdate; } - lastBaseUpdate = lastPendingUpdate; + lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then + // we need to transfer the updates to that queue, too. Because the base + // queue is a singly-linked list with no cycles, we can append to both + // lists and take advantage of structural sharing. + // TODO: Pass `current` as argument var current = workInProgress.alternate; if (current !== null) { + // This is always non-null on a ClassComponent or HostRoot var currentQueue = current.updateQueue; var currentLastBaseUpdate = currentQueue.lastBaseUpdate; if (currentLastBaseUpdate !== lastBaseUpdate) { @@ -7539,10 +9852,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e currentQueue.lastBaseUpdate = lastPendingUpdate; } } - } + } // These values may change as we process the queue. if (firstBaseUpdate !== null) { - var newState = queue.baseState; + // Iterate through the list of updates to compute the result. + var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes + // from the original lanes. var newLanes = NoLanes; var newBaseState = null; @@ -7553,6 +9868,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var updateLane = update.lane; var updateEventTime = update.eventTime; if (!isSubsetOfLanes(renderLanes, updateLane)) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. var clone = { eventTime: updateEventTime, lane: updateLane, @@ -7566,13 +9884,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newBaseState = newState; } else { newLastBaseUpdate = newLastBaseUpdate.next = clone; - } + } // Update the remaining priority in the queue. newLanes = mergeLanes(newLanes, updateLane); } else { + // This update does have sufficient priority. if (newLastBaseUpdate !== null) { var _clone = { eventTime: updateEventTime, + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. lane: NoLane, tag: update.tag, payload: update.payload, @@ -7580,11 +9902,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next: null }; newLastBaseUpdate = newLastBaseUpdate.next = _clone; - } + } // Process this update. newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); var callback = update.callback; if (callback !== null && + // If the update was already committed, we should not queue its + // callback again. update.lane !== NoLane) { workInProgress.flags |= Callback; var effects = queue.effects; @@ -7601,7 +9925,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (pendingQueue === null) { break; } else { - var _lastPendingUpdate = pendingQueue; + // An update was scheduled from inside a reducer. Add the new + // pending updates to the end of the list and keep processing. + var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we + // unravel them when transferring them to the base queue. var _firstPendingUpdate = _lastPendingUpdate.next; _lastPendingUpdate.next = null; @@ -7616,7 +9943,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } queue.baseState = newBaseState; queue.firstBaseUpdate = newFirstBaseUpdate; - queue.lastBaseUpdate = newLastBaseUpdate; + queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to + // process them during this render, but we do need to track which lanes + // are remaining. var lastInterleaved = queue.shared.interleaved; if (lastInterleaved !== null) { @@ -7626,8 +9955,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e interleaved = interleaved.next; } while (interleaved !== lastInterleaved); } else if (firstBaseUpdate === null) { + // `queue.lanes` is used for entangling transitions. We can set it back to + // zero once the queue is empty. queue.shared.lanes = NoLanes; - } + } // Set the remaining expiration time to be whatever is remaining in the queue. + // This should be fine because the only two other things that contribute to + // expiration time are props and context. We're already in the middle of the + // begin phase by the time we start processing the queue, so we've already + // dealt with the props. Context in components that specify + // shouldComponentUpdate is tricky; but we'll have to account for + // that regardless. markSkippedUpdateLanes(newLanes); workInProgress.lanes = newLanes; @@ -7650,6 +9987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return hasForceUpdate; } function commitUpdateQueue(finishedWork, finishedQueue, instance) { + // Commit the effects var effects = finishedQueue.effects; finishedQueue.effects = null; if (effects !== null) { @@ -7663,7 +10001,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - var fakeInternalInstance = {}; + var fakeInternalInstance = {}; // React.Component uses a shared frozen object by default. + // We'll use it to determine whether we need to initialize legacy refs. var emptyRefsObject = new React.Component().refs; var didWarnAboutStateAssignmentForComponent; @@ -7704,7 +10043,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); } } - }; + }; // This is so gross but it's at least non-critical and can be removed if + // it causes problems. This is meant to give a nicer error message for + // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component, + // ...)) which otherwise throws a "_processChildContext is not a function" + // exception. Object.defineProperty(fakeInternalInstance, "_processChildContext", { enumerable: false, @@ -7719,12 +10062,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var partialState = getDerivedStateFromProps(nextProps, prevState); { warnOnUndefinedDerivedState(ctor, partialState); - } + } // Merge the partial state and the previous state. var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState); - workInProgress.memoizedState = memoizedState; + workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the + // base state. if (workInProgress.lanes === NoLanes) { + // Queue is always non-null for classes var updateQueue = workInProgress.updateQueue; updateQueue.baseState = memoizedState; } @@ -7743,9 +10088,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } update.callback = callback; } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); entangleTransitions(root, fiber, lane); } }, @@ -7762,9 +10107,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } update.callback = callback; } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); entangleTransitions(root, fiber, lane); } }, @@ -7780,9 +10125,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } update.callback = callback; } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); entangleTransitions(root, fiber, lane); } } @@ -7885,7 +10230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function adoptClassInstance(workInProgress, instance) { instance.updater = classComponentUpdater; - workInProgress.stateNode = instance; + workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates set(instance, workInProgress); { @@ -7900,7 +10245,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { if ("contextType" in ctor) { var isValid = - contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; + // Allow null for conditional declaration + contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { didWarnAboutInvalidateContextType.add(ctor); @@ -7912,6 +10258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { addendum = " Did you accidentally pass the Context.Provider instead?"; } else if (contextType._context !== undefined) { + // addendum = " Did you accidentally pass the Context.Consumer instead?"; } else { addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; @@ -7928,7 +10275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; } - var instance = new ctor(props, context); + var instance = new ctor(props, context); // Instantiate twice to help detect side-effects. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; adoptClassInstance(workInProgress, instance); @@ -7939,7 +10286,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnAboutUninitializedState.add(componentName); error("`%s` uses `getDerivedStateFromProps` but its initial state is " + "%s. This is not recommended. Instead, define the initial state by " + "assigning an object to `this.state` in the constructor of `%s`. " + "This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); } - } + } // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Warn about these lifecycles if they are present. + // Don't warn about react-lifecycles-compat polyfilled methods though. if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { var foundWillMountName = null; @@ -7969,7 +10318,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - } + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // ReactFiberContext usually updates this cache but can't for newly-created instances. if (isLegacyContextConsumer) { cacheContext(workInProgress, unmaskedContext, context); @@ -8009,7 +10359,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } classComponentUpdater.enqueueReplaceState(instance, instance.state, null); } - } + } // Invokes the mount life-cycles on a previously never rendered instance. function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { { @@ -8047,10 +10397,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof getDerivedStateFromProps === "function") { applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); instance.state = workInProgress.memoizedState; - } + } // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - callComponentWillMount(workInProgress, instance); + callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's + // process them now. processUpdateQueue(workInProgress, newProps, instance, renderLanes); instance.state = workInProgress.memoizedState; @@ -8074,7 +10426,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); } var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { if (oldProps !== newProps || oldContext !== nextContext) { @@ -8087,6 +10443,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e processUpdateQueue(workInProgress, newProps, instance, renderLanes); newState = workInProgress.memoizedState; if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. if (typeof instance.componentDidMount === "function") { var fiberFlags = Update; workInProgress.flags |= fiberFlags; @@ -8099,6 +10457,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { if (typeof instance.componentWillMount === "function") { instance.componentWillMount(); @@ -8112,20 +10472,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.flags |= _fiberFlags; } } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. if (typeof instance.componentDidMount === "function") { var _fiberFlags2 = Update; workInProgress.flags |= _fiberFlags2; - } + } // If shouldComponentUpdate returned false, we should still update the + // memoized state to indicate that this work can be reused. workInProgress.memoizedProps = newProps; workInProgress.memoizedState = newState; - } + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. instance.props = newProps; instance.state = newState; instance.context = nextContext; return shouldUpdate; - } + } // Invokes the update life-cycles and returns false if it shouldn't rerender. function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) { var instance = workInProgress.stateNode; @@ -8144,7 +10508,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); } var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { @@ -8157,6 +10525,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e processUpdateQueue(workInProgress, newProps, instance, renderLanes); newState = workInProgress.memoizedState; if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. if (typeof instance.componentDidUpdate === "function") { if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { workInProgress.flags |= Update; @@ -8174,8 +10544,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newState = workInProgress.memoizedState; } var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || + // TODO: In some cases, we'll end up checking if context has changed twice, + // both before and after `shouldComponentUpdate` has been called. Not ideal, + // but I'm loath to refactor this function. This only happens for memoized + // components so it's not that common. enableLazyContextPropagation; if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { if (typeof instance.componentWillUpdate === "function") { instance.componentWillUpdate(newProps, newState, nextContext); @@ -8191,6 +10567,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.flags |= Snapshot; } } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. if (typeof instance.componentDidUpdate === "function") { if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { workInProgress.flags |= Update; @@ -8200,11 +10578,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { workInProgress.flags |= Snapshot; } - } + } // If shouldComponentUpdate returned false, we should still update the + // memoized props/state to indicate that this work can be reused. workInProgress.memoizedProps = newProps; workInProgress.memoizedState = newState; - } + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. instance.props = newProps; instance.state = newState; @@ -8221,6 +10601,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnAboutMaps = false; didWarnAboutGenerators = false; didWarnAboutStringRefs = {}; + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ ownerHasKeyUseWarning = {}; ownerHasFunctionTypeWarning = {}; @@ -8247,7 +10632,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var mixedRef = element.ref; if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { { + // TODO: Clean this up once we turn on the string ref warning for + // everyone, because the strict mode case will no longer be relevant if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && + // We warn in ReactElement.js if owner and self are equal for string refs + // because these cannot be automatically converted to an arrow function + // using a codemod. Therefore, we don't have to warn about string refs again. !(element._owner && element._self && element._owner.stateNode !== element._self)) { var componentName = getComponentNameFromFiber(returnFiber) || "Component"; if (!didWarnAboutStringRefs[componentName]) { @@ -8270,13 +10660,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (!inst) { throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + "bug in React. Please file an issue."); - } + } // Assigning this to a const so Flow knows it won't change in the closure var resolvedInst = inst; { checkPropStringCoercion(mixedRef, "ref"); } - var stringRef = "" + mixedRef; + var stringRef = "" + mixedRef; // Check if previous string ref matches new string ref if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { return current.ref; @@ -8284,6 +10674,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ref = function ref(value) { var refs = resolvedInst.refs; if (refs === emptyRefsObject) { + // This is a lazy pooled frozen object, so we need to initialize. refs = resolvedInst.refs = {}; } if (value === null) { @@ -8323,11 +10714,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var payload = lazyType._payload; var init = lazyType._init; return init(payload); - } + } // This wrapper function exists because I expect to clone the code in each path + // to be able to optimize each path individually by branching early. This needs + // a compiler or we can do it manually. Helpers that don't need this branching + // live outside of this function. function ChildReconciler(shouldTrackSideEffects) { function deleteChild(returnFiber, childToDelete) { if (!shouldTrackSideEffects) { + // Noop. return; } var deletions = returnFiber.deletions; @@ -8340,8 +10735,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function deleteRemainingChildren(returnFiber, currentFirstChild) { if (!shouldTrackSideEffects) { + // Noop. return null; - } + } // TODO: For the shouldClone case, this could be micro-optimized a bit by + // assuming that after the first child we've already added everything. var childToDelete = currentFirstChild; while (childToDelete !== null) { @@ -8351,6 +10748,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } function mapRemainingChildren(returnFiber, currentFirstChild) { + // Add the remaining children to a temporary map so that we can find them by + // keys quickly. Implicit (null) keys get added to this set with their index + // instead. var existingChildren = new Map(); var existingChild = currentFirstChild; while (existingChild !== null) { @@ -8364,6 +10764,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return existingChildren; } function useFiber(fiber, pendingProps) { + // We currently set sibling to null and index to 0 here because it is easy + // to forget to do before returning it. E.g. for the single child case. var clone = createWorkInProgress(fiber, pendingProps); clone.index = 0; clone.sibling = null; @@ -8372,6 +10774,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function placeChild(newFiber, lastPlacedIndex, newIndex) { newFiber.index = newIndex; if (!shouldTrackSideEffects) { + // During hydration, the useId algorithm needs to know which fibers are + // part of a list of children (arrays, iterators). newFiber.flags |= Forked; return lastPlacedIndex; } @@ -8379,17 +10783,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (current !== null) { var oldIndex = current.index; if (oldIndex < lastPlacedIndex) { + // This is a move. newFiber.flags |= Placement; return lastPlacedIndex; } else { + // This item can stay in place. return oldIndex; } } else { + // This is an insertion. newFiber.flags |= Placement; return lastPlacedIndex; } } function placeSingleChild(newFiber) { + // This is simpler for the single child case. We only need to do a + // placement for inserting new children. if (shouldTrackSideEffects && newFiber.alternate === null) { newFiber.flags |= Placement; } @@ -8397,10 +10806,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updateTextNode(returnFiber, current, textContent, lanes) { if (current === null || current.tag !== HostText) { + // Insert var created = createFiberFromText(textContent, returnFiber.mode, lanes); created.return = returnFiber; return created; } else { + // Update var existing = useFiber(current, textContent); existing.return = returnFiber; return existing; @@ -8413,8 +10824,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (current !== null) { if (current.elementType === elementType || + // Keep this check inline so it only runs on the false path: isCompatibleFamilyForHotReloading(current, element) || + // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) { + // Move based on index var existing = useFiber(current, element.props); existing.ref = coerceRef(returnFiber, current, element); existing.return = returnFiber; @@ -8424,7 +10841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return existing; } - } + } // Insert var created = createFiberFromElement(element, returnFiber.mode, lanes); created.ref = coerceRef(returnFiber, current, element); @@ -8433,10 +10850,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updatePortal(returnFiber, current, portal, lanes) { if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + // Insert var created = createFiberFromPortal(portal, returnFiber.mode, lanes); created.return = returnFiber; return created; } else { + // Update var existing = useFiber(current, portal.children || []); existing.return = returnFiber; return existing; @@ -8444,10 +10863,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updateFragment(returnFiber, current, fragment, lanes, key) { if (current === null || current.tag !== Fragment) { + // Insert var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); created.return = returnFiber; return created; } else { + // Update var existing = useFiber(current, fragment); existing.return = returnFiber; return existing; @@ -8455,6 +10876,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function createChild(returnFiber, newChild, lanes) { if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); created.return = returnFiber; return created; @@ -8496,8 +10920,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } function updateSlot(returnFiber, oldFiber, newChild, lanes) { + // Update the fiber if the keys match, otherwise return null. var key = oldFiber !== null ? oldFiber.key : null; if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. if (key !== null) { return null; } @@ -8545,6 +10973,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys, so we neither have to check the old nor + // new node for the key. If both are text nodes, they match. var matchedFiber = existingChildren.get(newIdx) || null; return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); } @@ -8578,6 +11008,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return null; } + /** + * Warns if there is a duplicate or missing key + */ function warnOnInvalidKey(child, knownKeys, returnFiber) { { @@ -8613,7 +11046,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return knownKeys; } function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + // This algorithm can't optimize by searching from both ends since we + // don't have backpointers on fibers. I'm trying to see how far we can get + // with that model. If it ends up not being worth the tradeoffs, we can + // add it later. + // Even with a two ended optimization, we'd want to optimize for the case + // where there are few changes and brute force the comparison instead of + // going for the Map. It'd like to explore hitting that path first in + // forward-only mode and only go for the Map once we notice that we need + // lots of look ahead. This doesn't handle reversal as well as two ended + // search but that's unusual. Besides, for the two ended optimization to + // work on Iterables, we'd need to copy the whole set. + // In this first iteration, we'll just live with hitting the bad case + // (adding everything to a Map) in for every insert/move. + // If you change this code, also update reconcileChildrenIterator() which + // uses the same algorithm. { + // First, validate keys. var knownKeys = null; for (var i = 0; i < newChildren.length; i++) { var child = newChildren[i]; @@ -8635,6 +11084,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. if (oldFiber === null) { oldFiber = nextOldFiber; } @@ -8642,23 +11095,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (shouldTrackSideEffects) { if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. deleteChild(returnFiber, oldFiber); } } lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. resultingFirstChild = newFiber; } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. previousNewFiber.sibling = newFiber; } previousNewFiber = newFiber; oldFiber = nextOldFiber; } if (newIdx === newChildren.length) { + // We've reached the end of the new children. We can delete the rest. deleteRemainingChildren(returnFiber, oldFiber); return resultingFirstChild; } if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. for (; newIdx < newChildren.length; newIdx++) { var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); if (_newFiber === null) { @@ -8666,6 +11129,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. resultingFirstChild = _newFiber; } else { previousNewFiber.sibling = _newFiber; @@ -8673,15 +11137,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e previousNewFiber = _newFiber; } return resultingFirstChild; - } + } // Add all children to a key map for quick lookups. - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. for (; newIdx < newChildren.length; newIdx++) { var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); if (_newFiber2 !== null) { if (shouldTrackSideEffects) { if (_newFiber2.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); } } @@ -8695,6 +11163,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. existingChildren.forEach(function (child) { return deleteChild(returnFiber, child); }); @@ -8702,25 +11172,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return resultingFirstChild; } function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + // This is the same implementation as reconcileChildrenArray(), + // but using the iterator instead. var iteratorFn = getIteratorFn(newChildrenIterable); if (typeof iteratorFn !== "function") { throw new Error("An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); } { + // We don't support rendering Generators because it's a mutation. + // See https://github.com/facebook/react/issues/12995 if (typeof Symbol === "function" && + // $FlowFixMe Flow doesn't know about toStringTag newChildrenIterable[Symbol.toStringTag] === "Generator") { if (!didWarnAboutGenerators) { error("Using Generators as children is unsupported and will likely yield " + "unexpected results because enumerating a generator mutates it. " + "You may convert it to an array with `Array.from()` or the " + "`[...spread]` operator before rendering. Keep in mind " + "you might need to polyfill these features for older browsers."); } didWarnAboutGenerators = true; - } + } // Warn about using Maps as children if (newChildrenIterable.entries === iteratorFn) { if (!didWarnAboutMaps) { error("Using Maps as children is not supported. " + "Use an array of keyed ReactElements instead."); } didWarnAboutMaps = true; - } + } // First, validate keys. + // We'll get a different iterator later for the main pass. var _newChildren = iteratorFn.call(newChildrenIterable); if (_newChildren) { @@ -8752,6 +11228,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. if (oldFiber === null) { oldFiber = nextOldFiber; } @@ -8759,23 +11239,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (shouldTrackSideEffects) { if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. deleteChild(returnFiber, oldFiber); } } lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. resultingFirstChild = newFiber; } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. previousNewFiber.sibling = newFiber; } previousNewFiber = newFiber; oldFiber = nextOldFiber; } if (step.done) { + // We've reached the end of the new children. We can delete the rest. deleteRemainingChildren(returnFiber, oldFiber); return resultingFirstChild; } if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. for (; !step.done; newIdx++, step = newChildren.next()) { var _newFiber3 = createChild(returnFiber, step.value, lanes); if (_newFiber3 === null) { @@ -8783,6 +11273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. resultingFirstChild = _newFiber3; } else { previousNewFiber.sibling = _newFiber3; @@ -8790,15 +11281,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e previousNewFiber = _newFiber3; } return resultingFirstChild; - } + } // Add all children to a key map for quick lookups. - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. for (; !step.done; newIdx++, step = newChildren.next()) { var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); if (_newFiber4 !== null) { if (shouldTrackSideEffects) { if (_newFiber4.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); } } @@ -8812,6 +11307,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. existingChildren.forEach(function (child) { return deleteChild(returnFiber, child); }); @@ -8819,12 +11316,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return resultingFirstChild; } function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { + // There's no need to check for keys on text nodes since we don't have a + // way to define them. if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + // We already have an existing node so let's just update it and delete + // the rest. deleteRemainingChildren(returnFiber, currentFirstChild.sibling); var existing = useFiber(currentFirstChild, textContent); existing.return = returnFiber; return existing; - } + } // The existing first child is not a text node so we need to create one + // and delete the existing ones. deleteRemainingChildren(returnFiber, currentFirstChild); var created = createFiberFromText(textContent, returnFiber.mode, lanes); @@ -8835,6 +11337,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var key = element.key; var child = currentFirstChild; while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. if (child.key === key) { var elementType = element.type; if (elementType === REACT_FRAGMENT_TYPE) { @@ -8850,7 +11354,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } else { if (child.elementType === elementType || + // Keep this check inline so it only runs on the false path: isCompatibleFamilyForHotReloading(child, element) || + // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { deleteRemainingChildren(returnFiber, child.sibling); var _existing = useFiber(child, element.props); @@ -8862,7 +11371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return _existing; } - } + } // Didn't match. deleteRemainingChildren(returnFiber, child); break; @@ -8886,6 +11395,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var key = portal.key; var child = currentFirstChild; while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. if (child.key === key) { if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { deleteRemainingChildren(returnFiber, child.sibling); @@ -8904,13 +11415,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var created = createFiberFromPortal(portal, returnFiber.mode, lanes); created.return = returnFiber; return created; - } + } // This API will tag the children with the side-effect of the reconciliation + // itself. They will be added to the side-effect list as we pass through the + // children and the parent. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + // This function is not recursive. + // If the top level item is an array, we treat it as a set of children, + // not as a fragment. Nested arrays on the other hand will be treated as + // fragment nodes. Recursion happens at the normal flow. + // Handle top level unkeyed fragments as if they were arrays. + // This leads to an ambiguity between <>{[...]} and <>.... + // We treat the ambiguous cases above the same. var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; if (isUnkeyedTopLevelFragment) { newChild = newChild.props.children; - } + } // Handle object types if (typeof newChild === "object" && newChild !== null) { switch (newChild.$$typeof) { @@ -8920,7 +11440,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); case REACT_LAZY_TYPE: var payload = newChild._payload; - var init = newChild._init; + var init = newChild._init; // TODO: This function is supposed to be non-recursive. return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes); } @@ -8939,7 +11459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof newChild === "function") { warnOnFunctionType(returnFiber); } - } + } // Remaining cases are all treated as empty. return deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -8964,7 +11484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newChild.return = workInProgress; } newChild.sibling = null; - } + } // Reset a workInProgress child set to prepare it for a second pass. function resetChildFibers(workInProgress, lanes) { var child = workInProgress.child; @@ -8988,12 +11508,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return rootInstance; } function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); + // Push current root instance onto the stack; + // This allows us to reset root when portals are popped. + push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. - push(contextFiberStackCursor, fiber, fiber); + push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack. + // However, we can't just call getRootHostContext() and push it because + // we'd have a different number of entries on the stack depending on + // whether getRootHostContext() throws somewhere in renderer code or not. + // So we push an empty value first. This lets us safely unwind on errors. push(contextStackCursor$1, NO_CONTEXT, fiber); - var nextRootContext = getRootHostContext(); + var nextRootContext = getRootHostContext(); // Now that we know this function doesn't throw, replace it. pop(contextStackCursor$1, fiber); push(contextStackCursor$1, nextRootContext, fiber); @@ -9010,27 +11537,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function pushHostContext(fiber) { var rootInstance = requiredContext(rootInstanceStackCursor.current); var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type); + var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. if (context === nextContext) { return; - } + } // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. push(contextFiberStackCursor, fiber, fiber); push(contextStackCursor$1, nextContext, fiber); } function popHostContext(fiber) { + // Do not pop unless this Fiber provided the current context. + // pushHostContext() only pushes Fibers that provide unique contexts. if (contextFiberStackCursor.current !== fiber) { return; } pop(contextStackCursor$1, fiber); pop(contextFiberStackCursor, fiber); } - var DefaultSuspenseContext = 0; + var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is + // inherited deeply down the subtree. The upper bits only affect + // this immediate suspense boundary and gets reset each new + // boundary or suspense list. - var SubtreeSuspenseContextMask = 1; + var SubtreeSuspenseContextMask = 1; // Subtree Flags: + // InvisibleParentSuspenseContext indicates that one of our parent Suspense + // boundaries is not currently showing visible main content. + // Either because it is already showing a fallback or is not mounted at all. + // We can use this to determine if it is desirable to trigger a fallback at + // the parent. If not, then we might need to trigger undesirable boundaries + // and/or suspend the commit to avoid hiding the parent content. - var InvisibleParentSuspenseContext = 1; + var InvisibleParentSuspenseContext = 1; // Shallow Flags: + // ForceSuspenseFallback can be used by SuspenseList to force newly added + // items into their fallback state during one of the render passes. var ForceSuspenseFallback = 2; var suspenseStackCursor = createCursor(DefaultSuspenseContext); @@ -9053,18 +11594,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pop(suspenseStackCursor, fiber); } function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { + // If it was the primary children that just suspended, capture and render the + // fallback. Otherwise, don't capture and bubble to the next boundary. var nextState = workInProgress.memoizedState; if (nextState !== null) { if (nextState.dehydrated !== null) { + // A dehydrated boundary always captures. return true; } return false; } - var props = workInProgress.memoizedProps; + var props = workInProgress.memoizedProps; // Regular boundaries always capture. { return true; - } + } // If it's a boundary we should avoid, then we prefer to bubble up to the } function findFirstSuspended(row) { @@ -9079,6 +11623,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } else if (node.tag === SuspenseListComponent && + // revealOrder undefined can't be trusted because it don't + // keep track of whether it suspended or not. node.memoizedProps.revealOrder !== undefined) { var didSuspend = (node.flags & DidCapture) !== NoFlags; if (didSuspend) { @@ -9103,25 +11649,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return null; } - var NoFlags$1 = - 0; + var NoFlags$1 = /* */ + 0; // Represents whether effect should fire. - var HasEffect = - 1; + var HasEffect = /* */ + 1; // Represents the phase in which the effect (not the clean-up) fires. - var Insertion = + var Insertion = /* */ 2; - var Layout = + var Layout = /* */ 4; - var Passive$1 = + var Passive$1 = /* */ 8; + // and should be reset before starting a new render. + // This tracks which mutable sources need to be reset after a render. + var workInProgressSources = []; function resetWorkInProgressVersions() { for (var i = 0; i < workInProgressSources.length; i++) { var mutableSource = workInProgressSources[i]; { - mutableSource._workInProgressVersionPrimary = null; + mutableSource._workInProgressVersionSecondary = null; } } workInProgressSources.length = 0; @@ -9134,24 +11683,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnAboutMismatchedHooksForComponent = new Set(); } - var renderLanes = NoLanes; + // These are set right before calling the component. + var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from + // the work-in-progress hook. - var currentlyRenderingFiber$1 = null; + var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The + // current hook list is the list that belongs to the current fiber. The + // work-in-progress hook list is a new list that will be added to the + // work-in-progress fiber. var currentHook = null; - var workInProgressHook = null; + var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This + // does not get reset if we do another render pass; only when we're completely + // finished evaluating this component. This is an optimization so we know + // whether we need to clear render phase updates after a throw. - var didScheduleRenderPhaseUpdate = false; + var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This + // gets reset after each attempt. + // TODO: Maybe there's some way to consolidate this with + // `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`. - var didScheduleRenderPhaseUpdateDuringThisPass = false; + var didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component. + // hydration). This counter is global, so client ids are not stable across + // render attempts. var globalClientIdCounter = 0; - var RE_RENDER_LIMIT = 25; + var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook - var currentHookNameInDev = null; + var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders. + // The list stores the order of hooks used during the initial render (mount). + // Subsequent renders (updates) reference this list. var hookTypesDev = null; - var hookTypesUpdateIndexDev = -1; + var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore + // the dependencies for Hooks that need them (e.g. useEffect or useMemo). + // When true, such Hooks will always be "remounted". Only used during hot reload. var ignorePreviousDependencies = false; function mountHookTypesDev() { @@ -9178,6 +11744,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function checkDepsAreArrayDev(deps) { { if (deps !== undefined && deps !== null && !isArray(deps)) { + // Verify deps, but only on mount to avoid extra checks. + // It's unlikely their type would change as usually you define them inline. error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps); } } @@ -9193,7 +11761,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { var oldHookName = hookTypesDev[i]; var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; - var row = i + 1 + ". " + oldHookName; + var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up + // lol @ IE not supporting String#repeat while (row.length < secondColumnStart) { row += " "; @@ -9212,6 +11781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function areHookInputsEqual(nextDeps, prevDeps) { { if (ignorePreviousDependencies) { + // Only true when this component is being hot reloaded. return false; } } @@ -9222,6 +11792,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; } { + // Don't bother comparing lengths in prod because these arrays should be + // passed inline. if (nextDeps.length !== prevDeps.length) { error("The final argument passed to %s changed size between renders. The " + "order and size of this array must remain constant.\n\n" + "Previous: %s\n" + "Incoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); } @@ -9239,26 +11811,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e currentlyRenderingFiber$1 = workInProgress; { hookTypesDev = current !== null ? current._debugHookTypes : null; - hookTypesUpdateIndexDev = -1; + hookTypesUpdateIndexDev = -1; // Used for hot reloading: ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; } workInProgress.memoizedState = null; workInProgress.updateQueue = null; - workInProgress.lanes = NoLanes; + workInProgress.lanes = NoLanes; // The following should have already been reset + // currentHook = null; + // workInProgressHook = null; + // didScheduleRenderPhaseUpdate = false; + // localIdCounter = 0; + // TODO Warn if no hooks are used at all during mount, then some are used during update. + // Currently we will identify the update render as a mount because memoizedState === null. + // This is tricky because it's valid for certain types of components (e.g. React.lazy) + // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used. + // Non-stateful hooks (e.g. context) don't get added to memoizedState, + // so memoizedState would be null during updates and mounts. { if (current !== null && current.memoizedState !== null) { ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; } else if (hookTypesDev !== null) { + // This dispatcher handles an edge case where a component is updating, + // but no stateful hooks have been used. + // We want to match the production code behavior (which will use HooksDispatcherOnMount), + // but with the extra DEV validation to ensure hooks ordering hasn't changed. + // This dispatcher does that. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; } else { ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; } } - var children = Component(props, secondArg); + var children = Component(props, secondArg); // Check if there was a render phase update if (didScheduleRenderPhaseUpdateDuringThisPass) { + // Keep rendering in a loop for as long as render phase updates continue to + // be scheduled. Use a counter to prevent infinite loops. var numberOfReRenders = 0; do { didScheduleRenderPhaseUpdateDuringThisPass = false; @@ -9267,24 +11856,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } numberOfReRenders += 1; { + // Even when hot reloading, allow dependencies to stabilize + // after first render to prevent infinite render phase updates. ignorePreviousDependencies = false; - } + } // Start over from the beginning of the list currentHook = null; workInProgressHook = null; workInProgress.updateQueue = null; { + // Also validate hook order for cascading updates. hookTypesUpdateIndexDev = -1; } ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; children = Component(props, secondArg); } while (didScheduleRenderPhaseUpdateDuringThisPass); - } + } // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrance. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; { workInProgress._debugHookTypes = hookTypesDev; - } + } // This check uses currentHook so that it works the same in DEV and prod bundles. + // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; renderLanes = NoLanes; @@ -9294,14 +11888,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { currentHookNameInDev = null; hookTypesDev = null; - hookTypesUpdateIndexDev = -1; + hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last + // render. If this fires, it suggests that we incorrectly reset the static + // flags in some other part of the codebase. This has happened before, for + // example, in the SuspenseList implementation. if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && + // Disable this warning in legacy mode, because legacy Suspense is weird + // and creates false positives. To make this work in legacy mode, we'd + // need to mark fibers that commit in an incomplete state, somehow. For + // now I'll disable the warning that most of the bugs that would trigger + // it are either exclusive to concurrent mode or exist in both. (current.mode & ConcurrentMode) !== NoMode) { error("Internal React error: Expected static flag was missing. Please " + "notify the React team."); } } - didScheduleRenderPhaseUpdate = false; + didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook + // localIdCounter = 0; if (didRenderTooFewHooks) { throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental " + "early return statement."); @@ -9309,7 +11912,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return children; } function bailoutHooks(current, workInProgress, lanes) { - workInProgress.updateQueue = current.updateQueue; + workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the + // complete phase (bubbleProperties). { workInProgress.flags &= ~(Passive | Update); @@ -9317,8 +11921,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e current.lanes = removeLanes(current.lanes, lanes); } function resetHooksAfterThrow() { + // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrance. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; if (didScheduleRenderPhaseUpdate) { + // There were render phase updates. These are only valid for this render + // phase, which we are now aborting. Remove the updates from the queues so + // they do not persist to the next render. Do not remove updates from hooks + // that weren't processed. + // + // Only reset the updates from the queue if it has a clone. If it does + // not have a clone, that means it wasn't processed, and the updates were + // scheduled before we entered the render phase. var hook = currentlyRenderingFiber$1.memoizedState; while (hook !== null) { var queue = hook.queue; @@ -9350,13 +11964,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next: null }; if (workInProgressHook === null) { + // This is the first hook in the list currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; } else { + // Append to the end of the list workInProgressHook = workInProgressHook.next = hook; } return workInProgressHook; } function updateWorkInProgressHook() { + // This function is used both for updates and for re-renders triggered by a + // render phase update. It assumes there is either a current hook we can + // clone, or a work-in-progress hook from a previous render pass that we can + // use as a base. When we reach the end of the base list, we must switch to + // the dispatcher used for mounts. var nextCurrentHook; if (currentHook === null) { var current = currentlyRenderingFiber$1.alternate; @@ -9375,10 +11996,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextWorkInProgressHook = workInProgressHook.next; } if (nextWorkInProgressHook !== null) { + // There's already a work-in-progress. Reuse it. workInProgressHook = nextWorkInProgressHook; nextWorkInProgressHook = workInProgressHook.next; currentHook = nextCurrentHook; } else { + // Clone from the current hook. if (nextCurrentHook === null) { throw new Error("Rendered more hooks than during the previous render."); } @@ -9391,8 +12014,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next: null }; if (workInProgressHook === null) { + // This is the first hook in the list. currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; } else { + // Append to the end of the list. workInProgressHook = workInProgressHook.next = newHook; } } @@ -9405,6 +12030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } function basicStateReducer(state, action) { + // $FlowFixMe: Flow doesn't like mixed types return typeof action === "function" ? action(state) : action; } function mountReducer(reducer, initialArg, init) { @@ -9435,13 +12061,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); } queue.lastRenderedReducer = reducer; - var current = currentHook; + var current = currentHook; // The last rebase update that is NOT part of the base state. - var baseQueue = current.baseQueue; + var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet. var pendingQueue = queue.pending; if (pendingQueue !== null) { + // We have new updates that haven't been processed yet. + // We'll add them to the base queue. if (baseQueue !== null) { + // Merge the pending queue and the base queue. var baseFirst = baseQueue.next; var pendingFirst = pendingQueue.next; baseQueue.next = pendingFirst; @@ -9449,6 +12078,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } { if (current.baseQueue !== baseQueue) { + // Internal invariant that should never happen, but feasibly could in + // the future if we implement resuming, or some form of that. error("Internal error: Expected work-in-progress queue to be a clone. " + "This is a bug in React."); } } @@ -9456,6 +12087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e queue.pending = null; } if (baseQueue !== null) { + // We have a queue to process. var first = baseQueue.next; var newState = current.baseState; var newBaseState = null; @@ -9465,6 +12097,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e do { var updateLane = update.lane; if (!isSubsetOfLanes(renderLanes, updateLane)) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. var clone = { lane: updateLane, action: update.action, @@ -9477,13 +12112,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newBaseState = newState; } else { newBaseQueueLast = newBaseQueueLast.next = clone; - } + } // Update the remaining priority in the queue. + // TODO: Don't need to accumulate this. Instead, we can remove + // renderLanes from the original lanes. currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); markSkippedUpdateLanes(updateLane); } else { + // This update does have sufficient priority. if (newBaseQueueLast !== null) { var _clone = { + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. lane: NoLane, action: update.action, hasEagerState: update.hasEagerState, @@ -9491,9 +12132,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next: null }; newBaseQueueLast = newBaseQueueLast.next = _clone; - } + } // Process this update. if (update.hasEagerState) { + // If this update is a state update (not a reducer) and was processed eagerly, + // we can use the eagerly computed state newState = update.eagerState; } else { var action = update.action; @@ -9506,7 +12149,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newBaseState = newState; } else { newBaseQueueLast.next = newBaseQueueFirst; - } + } // Mark that the fiber performed work, but only if the new state is + // different from the current state. if (!objectIs(newState, hook.memoizedState)) { markWorkInProgressReceivedUpdate(); @@ -9515,7 +12159,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hook.baseState = newBaseState; hook.baseQueue = newBaseQueueLast; queue.lastRenderedState = newState; - } + } // Interleaved updates are stored on a separate queue. We aren't going to + // process them during this render, but we do need to track which lanes + // are remaining. var lastInterleaved = queue.interleaved; if (lastInterleaved !== null) { @@ -9527,6 +12173,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e interleaved = interleaved.next; } while (interleaved !== lastInterleaved); } else if (baseQueue === null) { + // `queue.lanes` is used for entangling transitions. We can set it back to + // zero once the queue is empty. queue.lanes = NoLanes; } var dispatch = queue.dispatch; @@ -9538,25 +12186,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (queue === null) { throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); } - queue.lastRenderedReducer = reducer; + queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous + // work-in-progress hook. var dispatch = queue.dispatch; var lastRenderPhaseUpdate = queue.pending; var newState = hook.memoizedState; if (lastRenderPhaseUpdate !== null) { + // The queue doesn't persist past this render pass. queue.pending = null; var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; var update = firstRenderPhaseUpdate; do { + // Process this render phase update. We don't have to check the + // priority because it will always be the same as the current + // render's. var action = update.action; newState = reducer(newState, action); update = update.next; - } while (update !== firstRenderPhaseUpdate); + } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is + // different from the current state. if (!objectIs(newState, hook.memoizedState)) { markWorkInProgressReceivedUpdate(); } - hook.memoizedState = newState; + hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to + // the base state unless the queue is empty. + // TODO: Not sure if this is the desired semantics, but it's what we + // do for gDSFP. I can't remember why. if (hook.baseQueue === null) { hook.baseState = newState; @@ -9589,7 +12246,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnUncachedGetSnapshot = true; } } - } + } // Unless we're rendering a blocking lane, schedule a consistency check. + // Right before committing, we will walk the tree and check if any of the + // stores were mutated. + // + // We won't do this if we're hydrating server-rendered content, because if + // the content is stale, it's already visible anyway. Instead we'll patch + // it up in a passive effect. var root = getWorkInProgressRoot(); if (root === null) { @@ -9598,16 +12261,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!includesBlockingLane(root, renderLanes)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } - } + } // Read the current snapshot from the store on every render. This breaks the + // normal rules of React, and only works because store updates are + // always synchronous. hook.memoizedState = nextSnapshot; var inst = { value: nextSnapshot, getSnapshot: getSnapshot }; - hook.queue = inst; + hook.queue = inst; // Schedule an effect to subscribe to the store. - mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update + // this whenever subscribe, getSnapshot, or value changes. Because there's no + // clean-up function, and we track the deps correctly, we can call pushEffect + // directly, without storing any additional state. For the same reason, we + // don't need to set a static flag, either. + // TODO: We can move this to the passive phase once we add a pre-commit + // consistency check. See the next comment. fiber.flags |= Passive; pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); @@ -9615,7 +12286,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { var fiber = currentlyRenderingFiber$1; - var hook = updateWorkInProgressHook(); + var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the + // normal rules of React, and only works because store updates are + // always synchronous. var nextSnapshot = getSnapshot(); { @@ -9634,12 +12307,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e markWorkInProgressReceivedUpdate(); } var inst = hook.queue; - updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the + // commit phase if there was an interleaved mutation. In concurrent mode + // this can happen all the time, but even in synchronous mode, an earlier + // effect may have mutated the store. if (inst.getSnapshot !== getSnapshot || snapshotChanged || + // Check if the susbcribe function changed. We can save some memory by + // checking whether we scheduled a subscription effect above. workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { fiber.flags |= Passive; - pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check. + // Right before committing, we will walk the tree and check if any of the + // stores were mutated. var root = getWorkInProgressRoot(); if (root === null) { @@ -9672,19 +12352,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + // These are updated in the passive phase inst.value = nextSnapshot; - inst.getSnapshot = getSnapshot; + inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could + // have been in an event that fired before the passive effects, or it could + // have been in a layout effect. In that case, we would have used the old + // snapsho and getSnapshot values to bail out. We need to check one more time. if (checkIfSnapshotChanged(inst)) { + // Force a re-render. forceStoreRerender(fiber); } } function subscribeToStore(fiber, inst, subscribe) { var handleStoreChange = function handleStoreChange() { + // The store changed. Check if the snapshot changed since the last time we + // read from the store. if (checkIfSnapshotChanged(inst)) { + // Force a re-render. forceStoreRerender(fiber); } - }; + }; // Subscribe to the store and return a clean-up function. return subscribe(handleStoreChange); } @@ -9699,11 +12387,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function forceStoreRerender(fiber) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } } function mountState(initialState) { var hook = mountWorkInProgressHook(); if (typeof initialState === "function") { + // $FlowFixMe: Flow doesn't like mixed types initialState = initialState(); } hook.memoizedState = hook.baseState = initialState; @@ -9731,6 +12423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e create: create, destroy: destroy, deps: deps, + // Circular next: null }; var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; @@ -9837,7 +12530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof create !== "function") { error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); } - } + } // TODO: If deps are provided, should we skip comparing the ref itself? var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; var fiberFlags = Update; @@ -9848,12 +12541,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof create !== "function") { error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); } - } + } // TODO: If deps are provided, should we skip comparing the ref itself? var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); } function mountDebugValue(value, formatterFn) { + // This hook is normally a no-op. + // The react-debug-hooks package injects its own implementation + // so that e.g. DevTools can display custom hook values. } var updateDebugValue = mountDebugValue; function mountCallback(callback, deps) { @@ -9889,6 +12585,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var nextDeps = deps === undefined ? null : deps; var prevState = hook.memoizedState; if (prevState !== null) { + // Assume these are defined. If they're not, areHookInputsEqual will warn. if (nextDeps !== null) { var prevDeps = prevState[1]; if (areHookInputsEqual(nextDeps, prevDeps)) { @@ -9914,9 +12611,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function rerenderDeferredValue(value) { var hook = updateWorkInProgressHook(); if (currentHook === null) { + // This is a rerender during a mount. hook.memoizedState = value; return value; } else { + // This is a rerender during an update. var prevValue = currentHook.memoizedState; return updateDeferredValueImpl(hook, prevValue, value); } @@ -9924,17 +12623,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function updateDeferredValueImpl(hook, prevValue, value) { var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); if (shouldDeferValue) { + // This is an urgent update. If the value has changed, keep using the + // previous value and spawn a deferred render to update it later. if (!objectIs(value, prevValue)) { + // Schedule a deferred render var deferredLane = claimNextTransitionLane(); currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); - markSkippedUpdateLanes(deferredLane); + markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent + // from the latest value. The name "baseState" doesn't really match how we + // use it because we're reusing a state hook field instead of creating a + // new one. hook.baseState = true; - } + } // Reuse the previous value return prevValue; } else { + // This is not an urgent update, so we can use the latest value regardless + // of what it is. No need to defer it. + // However, if we're currently inside a spawned render, then we need to mark + // this as an update to prevent the fiber from bailing out. + // + // `baseState` is true when the current value is different from the rendered + // value. The name doesn't really match how we use it because we're reusing + // a state hook field instead of creating a new one. if (hook.baseState) { + // Flip this back to false. hook.baseState = false; markWorkInProgressReceivedUpdate(); } @@ -9972,7 +12686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function mountTransition() { var _mountState = mountState(false), isPending = _mountState[0], - setPending = _mountState[1]; + setPending = _mountState[1]; // The `start` method never changes. var start = startTransition.bind(null, setPending); var hook = mountWorkInProgressHook(); @@ -10001,11 +12715,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function mountId() { var hook = mountWorkInProgressHook(); - var root = getWorkInProgressRoot(); + var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we + // should do this in Fiber, too? Deferring this decision for now because + // there's no other place to store the prefix except for an internal field on + // the public createRoot object, which the fiber tree does not currently have + // a reference to. var identifierPrefix = root.identifierPrefix; var id; { + // Use a lowercase r prefix for client-generated ids. var globalClientId = globalClientIdCounter++; id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; } @@ -10034,10 +12753,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (isRenderPhaseUpdate(fiber)) { enqueueRenderPhaseUpdate(queue, update); } else { - enqueueUpdate$1(fiber, queue, update); - var eventTime = requestEventTime(); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); entangleTransitionUpdate(root, queue, lane); } } @@ -10059,9 +12778,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (isRenderPhaseUpdate(fiber)) { enqueueRenderPhaseUpdate(queue, update); } else { - enqueueUpdate$1(fiber, queue, update); var alternate = fiber.alternate; if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { + // The queue is currently empty, which means we can eagerly compute the + // next state before entering the render phase. If the new state is the + // same as the current state, we may be able to bail out entirely. var lastRenderedReducer = queue.lastRenderedReducer; if (lastRenderedReducer !== null) { var prevDispatcher; @@ -10071,14 +12792,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } try { var currentState = queue.lastRenderedState; - var eagerState = lastRenderedReducer(currentState, action); + var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute + // it, on the update object. If the reducer hasn't changed by the + // time we enter the render phase, then the eager state can be used + // without calling the reducer again. update.hasEagerState = true; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { + // Fast path. We can bail out without scheduling React to re-render. + // It's still possible that we'll need to rebase this update later, + // if the component re-renders for a different reason and by that + // time the reducer has changed. + // TODO: Do we still need to entangle transitions in this case? + enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane); return; } } catch (error) { + // Suppress the error. It will throw again in the render phase. } finally { { ReactCurrentDispatcher$1.current = prevDispatcher; @@ -10086,9 +12817,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - var eventTime = requestEventTime(); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); entangleTransitionUpdate(root, queue, lane); } } @@ -10098,47 +12830,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; } function enqueueRenderPhaseUpdate(queue, update) { + // This is a render phase update. Stash it in a lazily-created map of + // queue -> linked list of updates. After this render pass, we'll restart + // and apply the stashed updates on top of the work-in-progress hook. didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; var pending = queue.pending; if (pending === null) { + // This is the first update. Create a circular list. update.next = update; } else { update.next = pending.next; pending.next = update; } queue.pending = update; - } - function enqueueUpdate$1(fiber, queue, update, lane) { - if (isInterleavedUpdate(fiber)) { - var interleaved = queue.interleaved; - if (interleaved === null) { - update.next = update; + } // TODO: Move to ReactFiberConcurrentUpdates? - pushInterleavedQueue(queue); - } else { - update.next = interleaved.next; - interleaved.next = update; - } - queue.interleaved = update; - } else { - var pending = queue.pending; - if (pending === null) { - update.next = update; - } else { - update.next = pending.next; - pending.next = update; - } - queue.pending = update; - } - } function entangleTransitionUpdate(root, queue, lane) { if (isTransitionLane(lane)) { - var queueLanes = queue.lanes; + var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they + // must have finished. We can remove them from the shared queue, which + // represents a superset of the actually pending lanes. In some cases we + // may entangle more than we need to, but that's OK. In fact it's worse if + // we *don't* entangle when we should. - queueLanes = intersectLanes(queueLanes, root.pendingLanes); + queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes. var newQueueLanes = mergeLanes(queueLanes, lane); - queue.lanes = newQueueLanes; + queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if + // the lane finished since the last time we entangled it. So we need to + // entangle it again, just to be sure. markRootEntangled(root, newQueueLanes); } @@ -10968,6 +13688,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var layoutEffectStartTime = -1; var profilerStartTime = -1; var passiveEffectStartTime = -1; + /** + * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect). + * + * The overall sequence is: + * 1. render + * 2. commit (and call `onRender`, `onCommit`) + * 3. check for nested updates + * 4. flush passive effects (and call `onPostCommit`) + * + * Nested updates are identified in step 3 above, + * but step 4 still applies to the work that was just committed. + * We use two flags to track nested updates then: + * one tracks whether the upcoming update is a nested update, + * and the other tracks whether the current update was a nested update. + * The first value gets synced to the second at the start of the render phase. + */ var currentUpdateIsNested = false; var nestedUpdateScheduled = false; @@ -11019,7 +13755,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function recordLayoutEffectDuration(fiber) { if (layoutEffectStartTime >= 0) { var elapsedTime = now$1() - layoutEffectStartTime; - layoutEffectStartTime = -1; + layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor + // Or the root (for the DevTools Profiler to read) var parentFiber = fiber.return; while (parentFiber !== null) { @@ -11040,7 +13777,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function recordPassiveEffectDuration(fiber) { if (passiveEffectStartTime >= 0) { var elapsedTime = now$1() - passiveEffectStartTime; - passiveEffectStartTime = -1; + passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor + // Or the root (for the DevTools Profiler to read) var parentFiber = fiber.return; while (parentFiber !== null) { @@ -11054,6 +13792,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case Profiler: var parentStateNode = parentFiber.stateNode; if (parentStateNode !== null) { + // Detached fibers have their state node cleared out. + // In this case, the return pointer is also cleared out, + // so we won't be able to report the time spent in this Profiler's subtree. parentStateNode.passiveEffectDuration += elapsedTime; } return; @@ -11069,17 +13810,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e passiveEffectStartTime = now$1(); } function transferActualDuration(fiber) { + // Transfer time spent rendering these children so we don't lose it + // after we rerender. This is used as a helper in special cases + // where we should count the work of multiple passes. var child = fiber.child; while (child) { fiber.actualDuration += child.actualDuration; child = child.sibling; } } - function createCapturedValue(value, source) { + function createCapturedValueAtFiber(value, source) { + // If the value is an error, call this function immediately after it is thrown + // so the stack is accurate. return { value: value, source: source, - stack: getStackByFiberInDevAndProd(source) + stack: getStackByFiberInDevAndProd(source), + digest: null + }; + } + function createCapturedValue(value, digest, stack) { + return { + value: value, + source: null, + stack: stack != null ? stack : null, + digest: digest != null ? digest : null }; } if (typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog !== "function") { @@ -11095,7 +13850,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function logCapturedError(boundary, errorInfo) { try { - var logError = showErrorDialog(boundary, errorInfo); + var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging. + // This enables renderers like ReactNative to better manage redbox behavior. if (logError === false) { return; @@ -11104,14 +13860,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (true) { var source = errorInfo.source; var stack = errorInfo.stack; - var componentStack = stack !== null ? stack : ""; + var componentStack = stack !== null ? stack : ""; // Browsers support silencing uncaught errors by calling + // `preventDefault()` in window `error` handler. + // We record this information as an expando on the error. if (error != null && error._suppressLogging) { if (boundary.tag === ClassComponent) { + // The error is recoverable and was silenced. + // Ignore it and don't print the stack addendum. + // This is handy for testing error boundaries without noise. return; - } + } // The error is fatal. Since the silencing might have + // been accidental, we'll surface it anyway. + // However, the browser would have silenced the original error + // so we'll print it first, and then print the stack addendum. - console["error"](error); + console["error"](error); // Don't transform to our wrapper + // For a more detailed description of this block, see: + // https://github.com/facebook/react/pull/13384 } var componentName = source ? getComponentNameFromFiber(source) : null; @@ -11123,13 +13889,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); } - var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); + var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack. + // We don't include the original error message and JS stack because the browser + // has already printed it. Even if the application swallows the error, it is still + // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. - console["error"](combinedMessage); + console["error"](combinedMessage); // Don't transform to our wrapper } else { - console["error"](error); + // In production, we print the error directly. + // This will include the message, the JS stack, and anything the browser wants to show. + // We pass the error object instead of custom message so that the browser displays the error natively. + console["error"](error); // Don't transform to our wrapper } } catch (e) { + // This method must not throw, or React internal state will get messed up. + // If console.error is overridden, or logCapturedError() shows a dialog that throws, + // we want to report this error outside of the normal stack as a last resort. + // https://github.com/facebook/react/issues/13188 setTimeout(function () { throw e; }); @@ -11137,9 +13913,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; function createRootErrorUpdate(fiber, errorInfo, lane) { - var update = createUpdate(NoTimestamp, lane); + var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null. - update.tag = CaptureUpdate; + update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property + // being called "element". update.payload = { element: null @@ -11175,6 +13952,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } logCapturedError(fiber, errorInfo); if (typeof getDerivedStateFromError !== "function") { + // To preserve the preexisting retry behavior of error boundaries, + // we keep track of which ones already failed during this batch. + // This gets reset before we yield back to the browser. + // TODO: Warn in strict mode if getDerivedStateFromError is + // not defined. markLegacyErrorBoundaryAsFailed(this); } var error$1 = errorInfo.value; @@ -11184,6 +13966,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); { if (typeof getDerivedStateFromError !== "function") { + // If componentDidCatch is the only error boundary method defined, + // then it needs to call setState to recover from errors. + // If no state update is scheduled then the boundary will swallow the error. if (!includesSomeLane(fiber.lanes, SyncLane)) { error("%s: Error boundaries should implement getDerivedStateFromError(). " + "In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); } @@ -11194,6 +13979,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return update; } function attachPingListener(root, wakeable, lanes) { + // Attach a ping listener + // + // The data might resolve before we have a chance to commit the fallback. Or, + // in the case of a refresh, we'll never commit a fallback. So we need to + // attach a listener now. When it resolves ("pings"), we can decide whether to + // try rendering the tree again. + // + // Only attach a listener if one does not already exist for the lanes + // we're currently rendering (which acts like a "thread ID" here). + // + // We only need to do this in concurrent mode. Legacy Suspense always + // commits fallbacks synchronously, so there are no pings. var pingCache = root.pingCache; var threadIDs; if (pingCache === null) { @@ -11208,10 +14005,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (!threadIDs.has(lanes)) { + // Memoize using the thread ID to prevent redundant listeners. threadIDs.add(lanes); var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); { if (isDevToolsPresent) { + // If we have pending work still, restore the original updaters restorePendingUpdaters(root, lanes); } } @@ -11219,6 +14018,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { + // Retry listener + // + // If the fallback does commit, we need to attach a different type of + // listener. This one schedules an update on the Suspense boundary to turn + // the fallback state off. + // + // Stash the wakeable on the boundary fiber so we can access it in the + // commit phase. + // + // When the wakeable resolves, we'll attempt to render the boundary + // again ("retry"). var wakeables = suspenseBoundary.updateQueue; if (wakeables === null) { var updateQueue = new Set(); @@ -11229,6 +14039,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function resetSuspendedComponent(sourceFiber, rootRenderLanes) { + // A legacy mode Suspense quirk, only relevant to hook components. var tag = sourceFiber.tag; if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { @@ -11248,56 +14059,133 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e do { if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { return node; - } + } // This boundary already captured during this render. Continue to the next + // boundary. node = node.return; } while (node !== null); return null; } function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { + // This marks a Suspense boundary so that when we're unwinding the stack, + // it captures the suspended "exception" and does a second (fallback) pass. if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { + // Legacy Mode Suspense + // + // If the boundary is in legacy mode, we should *not* + // suspend the commit. Pretend as if the suspended component rendered + // null and keep rendering. When the Suspense boundary completes, + // we'll do a second pass to render the fallback. if (suspenseBoundary === returnFiber) { + // Special case where we suspended while reconciling the children of + // a Suspense boundary's inner Offscreen wrapper fiber. This happens + // when a React.lazy component is a direct child of a + // Suspense boundary. + // + // Suspense boundaries are implemented as multiple fibers, but they + // are a single conceptual unit. The legacy mode behavior where we + // pretend the suspended fiber committed as `null` won't work, + // because in this case the "suspended" fiber is the inner + // Offscreen wrapper. + // + // Because the contents of the boundary haven't started rendering + // yet (i.e. nothing in the tree has partially rendered) we can + // switch to the regular, concurrent mode behavior: mark the + // boundary with ShouldCapture and enter the unwind phase. suspenseBoundary.flags |= ShouldCapture; } else { suspenseBoundary.flags |= DidCapture; - sourceFiber.flags |= ForceUpdateForLegacySuspense; + sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete. + // But we shouldn't call any lifecycle methods or callbacks. Remove + // all lifecycle effect tags. sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); if (sourceFiber.tag === ClassComponent) { var currentSourceFiber = sourceFiber.alternate; if (currentSourceFiber === null) { + // This is a new mount. Change the tag so it's not mistaken for a + // completed class component. For example, we should not call + // componentWillUnmount if it is deleted. sourceFiber.tag = IncompleteClassComponent; } else { + // When we try rendering again, we should not reuse the current fiber, + // since it's known to be in an inconsistent state. Use a force update to + // prevent a bail out. var update = createUpdate(NoTimestamp, SyncLane); update.tag = ForceUpdate; - enqueueUpdate(sourceFiber, update); + enqueueUpdate(sourceFiber, update, SyncLane); } - } + } // The source fiber did not complete. Mark it with Sync priority to + // indicate that it still has pending work. sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); } return suspenseBoundary; - } - - suspenseBoundary.flags |= ShouldCapture; + } // Confirmed that the boundary is in a concurrent mode tree. Continue + // with the normal suspend path. + // + // After this we'll use a set of heuristics to determine whether this + // render pass will run to completion or restart or "suspend" the commit. + // The actual logic for this is spread out in different places. + // + // This first principle is that if we're going to suspend when we complete + // a root, then we should also restart if we get an update or ping that + // might unsuspend it, and vice versa. The only reason to suspend is + // because you think you might want to restart before committing. However, + // it doesn't make sense to restart only while in the period we're suspended. + // + // Restarting too aggressively is also not good because it starves out any + // intermediate loading state. So we use heuristics to determine when. + // Suspense Heuristics + // + // If nothing threw a Promise or all the same fallbacks are already showing, + // then don't suspend/restart. + // + // If this is an initial render of a new tree of Suspense boundaries and + // those trigger a fallback, then don't suspend/restart. We want to ensure + // that we can show the initial loading state as quickly as possible. + // + // If we hit a "Delayed" case, such as when we'd switch from content back into + // a fallback, then we should always suspend/restart. Transitions apply + // to this case. If none is defined, JND is used instead. + // + // If we're already showing a fallback and it gets "retried", allowing us to show + // another level, but there's still an inner boundary that would show a fallback, + // then we suspend/restart for 500ms since the last time we showed a fallback + // anywhere in the tree. This effectively throttles progressive loading into a + // consistent train of commits. This also gives us an opportunity to restart to + // get to the completed state slightly earlier. + // + // If there's ambiguity due to batching it's resolved in preference of: + // 1) "delayed", 2) "initial render", 3) "retry". + // + // We want to ensure that a "busy" state doesn't get force committed. We want to + // ensure that new initial loading states can commit as soon as possible. + + suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in + // the begin phase to prevent an early bailout. suspenseBoundary.lanes = rootRenderLanes; return suspenseBoundary; } function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { + // The source fiber did not complete. sourceFiber.flags |= Incomplete; { if (isDevToolsPresent) { + // If we have pending work still, restore the original updaters restorePendingUpdaters(root, rootRenderLanes); } } if (value !== null && typeof value === "object" && typeof value.then === "function") { + // This is a wakeable. The component suspended. var wakeable = value; resetSuspendedComponent(sourceFiber); var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); if (suspenseBoundary !== null) { suspenseBoundary.flags &= ~ForceClientRender; - markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); + markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always + // commits fallbacks synchronously, so there are no pings. if (suspenseBoundary.mode & ConcurrentMode) { attachPingListener(root, wakeable, rootRenderLanes); @@ -11305,20 +14193,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e attachRetryListener(suspenseBoundary, root, wakeable); return; } else { + // No boundary was found. Unless this is a sync update, this is OK. + // We can suspend and wait for more data to arrive. if (!includesSyncLane(rootRenderLanes)) { + // This is not a sync update. Suspend. Since we're not activating a + // Suspense boundary, this will unwind all the way to the root without + // performing a second pass to render a fallback. (This is arguably how + // refresh transitions should work, too, since we're not going to commit + // the fallbacks anyway.) + // + // This case also applies to initial hydration. attachPingListener(root, wakeable, rootRenderLanes); renderDidSuspendDelayIfPossible(); return; - } + } // This is a sync/discrete update. We treat this case like an error + // because discrete renders are expected to produce a complete tree + // synchronously to maintain consistency with external state. - var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); + var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); // If we're outside a transition, fall through to the regular error path. + // The error will be caught by the nearest suspense boundary. value = uncaughtSuspenseError; } } + value = createCapturedValueAtFiber(value, sourceFiber); + renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start + // over and traverse parent path again, this time treating the exception + // as an error. - renderDidError(value); - value = createCapturedValue(value, sourceFiber); var workInProgress = returnFiber; do { switch (workInProgress.tag) { @@ -11333,13 +14235,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } case ClassComponent: + // Capture and retry var errorInfo = value; var ctor = workInProgress.type; var instance = workInProgress.stateNode; if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { workInProgress.flags |= ShouldCapture; var _lane = pickArbitraryLane(rootRenderLanes); - workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); + workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane); enqueueCapturedUpdate(workInProgress, _update); @@ -11353,7 +14256,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getSuspendedCache() { { return null; - } + } // This function is called when a Suspense boundary suspends. It returns the } var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; @@ -11378,28 +14281,54 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { if (current === null) { + // If this is a fresh new component that hasn't been rendered yet, we + // won't update its child set by applying minimal side-effects. Instead, + // we will add them all to the child before it gets rendered. That means + // we can optimize this reconciliation pass by not tracking side-effects. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes); } else { + // If the current child is the same as the work in progress, it means that + // we haven't yet started any work on these children. Therefore, we use + // the clone algorithm to create a copy of all the current children. + // If we had any progressed work already, that is invalid at this point so + // let's throw it out. workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); } } function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) { - workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); + // This function is fork of reconcileChildren. It's used in cases where we + // want to reconcile without matching against the existing set. This has the + // effect of all current children being unmounted; even if the type and key + // are the same, the old child is unmounted and a new child is created. + // + // To do this, we're going to go through the reconcile algorithm twice. In + // the first pass, we schedule a deletion for all the current children by + // passing null. + workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we + // pass null in place of where we usually pass the current child set. This has + // the effect of remounting all children regardless of whether their + // identities match. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); } function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens after the first render suspends. + // We'll need to figure out if this is fine or can cause issues. { if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. var innerPropTypes = Component.propTypes; if (innerPropTypes) { checkPropTypes(innerPropTypes, nextProps, + // Resolved props "prop", getComponentNameFromType(Component)); } } } var render = Component.render; - var ref = workInProgress.ref; + var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent var nextChildren; prepareToReadContext(workInProgress, renderLanes); @@ -11421,11 +14350,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (current === null) { var type = Component.type; if (isSimpleFunctionComponent(type) && Component.compare === null && + // SimpleMemoComponent codepath doesn't resolve outer props either. Component.defaultProps === undefined) { var resolvedType = type; { resolvedType = resolveFunctionForHotReloading(type); - } + } // If this is a plain function component without default props, + // and with only the default shallow comparison, we upgrade it + // to a SimpleMemoComponent to allow fast path updates. workInProgress.tag = SimpleMemoComponent; workInProgress.type = resolvedType; @@ -11437,7 +14369,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var innerPropTypes = type.propTypes; if (innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. checkPropTypes(innerPropTypes, nextProps, + // Resolved props "prop", getComponentNameFromType(type)); } } @@ -11451,22 +14386,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _type = Component.type; var _innerPropTypes = _type.propTypes; if (_innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. checkPropTypes(_innerPropTypes, nextProps, + // Resolved props "prop", getComponentNameFromType(_type)); } } - var currentChild = current.child; + var currentChild = current.child; // This is always exactly one child var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); if (!hasScheduledUpdateOrContext) { - var prevProps = currentChild.memoizedProps; + // This will be the props with resolved defaultProps, + // unlike current.memoizedProps which will be the unresolved ones. + var prevProps = currentChild.memoizedProps; // Default to shallow comparison var compare = Component.compare; compare = compare !== null ? compare : shallowEqual; if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - } + } // React DevTools reads this flag. workInProgress.flags |= PerformedWork; var newChild = createWorkInProgress(currentChild, nextProps); @@ -11476,10 +14416,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return newChild; } function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens when the inner render suspends. + // We'll need to figure out if this is fine or can cause issues. { if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. var outerMemoType = workInProgress.elementType; if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + // We warn when you define propTypes on lazy() + // so let's just skip over it to find memo() outer wrapper. + // Inner props for memo are validated later. var lazyComponent = outerMemoType; var payload = lazyComponent._payload; var init = lazyComponent._init; @@ -11487,11 +14435,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e outerMemoType = init(payload); } catch (x) { outerMemoType = null; - } + } // Inner propTypes will be validated in the function component path. var outerPropTypes = outerMemoType && outerMemoType.propTypes; if (outerPropTypes) { checkPropTypes(outerPropTypes, nextProps, + // Resolved (SimpleMemoComponent has no defaultProps) "prop", getComponentNameFromType(outerMemoType)); } } @@ -11500,14 +14449,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (current !== null) { var prevProps = current.memoizedProps; if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && + // Prevent bailout if the implementation changed due to hot reload. workInProgress.type === current.type) { - didReceiveUpdate = false; + didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we + // would during a normal fiber bailout. + // + // We don't have strong guarantees that the props object is referentially + // equal during updates where we can't bail out anyway โ€” like if the props + // are shallowly equal, but there's a local state or context update in the + // same batch. + // + // However, as a principle, we should aim to make the behavior consistent + // across different ways of memoizing a component. For example, React.memo + // has a different internal Fiber layout if you pass a normal function + // component (SimpleMemoComponent) versus if you pass a different type + // like forwardRef (MemoComponent). But this is an implementation detail. + // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't + // affect whether the props object is reused during a bailout. workInProgress.pendingProps = nextProps = prevProps; if (!checkScheduledUpdateOrContext(current, renderLanes)) { + // The pending lanes were cleared at the beginning of beginWork. We're + // about to bail out, but there might be other lanes that weren't + // included in the current render. Usually, the priority level of the + // remaining updates is accumulated during the evaluation of the + // component (i.e. when processing the update queue). But since since + // we're bailing out early *without* evaluating the component, we need + // to account for it here, too. Reset to the value of the current fiber. + // NOTE: This only applies to SimpleMemoComponent, not MemoComponent, + // because a MemoComponent fiber does not have hooks or an update queue; + // rather, it wraps around an inner component, which may or may not + // contains hooks. + // TODO: Move the reset at in beginWork out of the common path so that + // this is no longer necessary. workInProgress.lanes = current.lanes; return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + // This is a special case that only exists for legacy mode. + // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; } } @@ -11519,7 +14498,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var nextChildren = nextProps.children; var prevState = current !== null ? current.memoizedState : null; if (nextProps.mode === "hidden" || enableLegacyHidden) { + // Rendering a hidden tree. if ((workInProgress.mode & ConcurrentMode) === NoMode) { + // In legacy sync mode, don't defer the subtree. Render it now. + // TODO: Consider how Offscreen should work with transitions in the future var nextState = { baseLanes: NoLanes, cachePool: null, @@ -11528,7 +14510,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.memoizedState = nextState; pushRenderLanes(workInProgress, renderLanes); } else if (!includesSomeLane(renderLanes, OffscreenLane)) { - var spawnedCachePool = null; + var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out + // and resume this tree later. var nextBaseLanes; if (prevState !== null) { @@ -11536,7 +14519,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes); } else { nextBaseLanes = renderLanes; - } + } // Schedule this fiber to re-render at offscreen priority. Then bailout. workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane); var _nextState = { @@ -11546,33 +14529,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; workInProgress.memoizedState = _nextState; workInProgress.updateQueue = null; + // to avoid a push/pop misalignment. pushRenderLanes(workInProgress, nextBaseLanes); return null; } else { + // This is the second render. The surrounding visible content has already + // committed. Now we resume rendering the hidden tree. + // Rendering at offscreen, so we can clear the base lanes. var _nextState2 = { baseLanes: NoLanes, cachePool: null, transitions: null }; - workInProgress.memoizedState = _nextState2; + workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out. var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes; pushRenderLanes(workInProgress, subtreeRenderLanes); } } else { + // Rendering a visible tree. var _subtreeRenderLanes; if (prevState !== null) { + // We're going from hidden -> visible. _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); workInProgress.memoizedState = null; } else { + // We weren't previously hidden, and we still aren't, so there's nothing + // special to do. Need to push to the stack regardless, though, to avoid + // a push/pop misalignment. _subtreeRenderLanes = renderLanes; } pushRenderLanes(workInProgress, _subtreeRenderLanes); } reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; - } + } // Note: These happen to have identical begin phases, for now. We shouldn't hold function updateFragment(current, workInProgress, renderLanes) { var nextChildren = workInProgress.pendingProps; @@ -11588,6 +14580,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { workInProgress.flags |= Update; { + // Reset effect durations for the next eventual effect phase. + // These are reset during render to allow the DevTools commit hook a chance to read them, var stateNode = workInProgress.stateNode; stateNode.effectDuration = 0; stateNode.passiveEffectDuration = 0; @@ -11601,15 +14595,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function markRef(current, workInProgress) { var ref = workInProgress.ref; if (current === null && ref !== null || current !== null && current.ref !== ref) { + // Schedule a Ref effect workInProgress.flags |= Ref; } } function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { { if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. var innerPropTypes = Component.propTypes; if (innerPropTypes) { checkPropTypes(innerPropTypes, nextProps, + // Resolved props "prop", getComponentNameFromType(Component)); } } @@ -11637,11 +14635,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { { + // This is used by DevTools to force a boundary to error. switch (shouldError(workInProgress)) { case false: { var _instance = workInProgress.stateNode; - var ctor = workInProgress.type; + var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack. + // Is there a better way to do this? var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context); var state = tempInstance.state; @@ -11651,25 +14651,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case true: { workInProgress.flags |= DidCapture; - workInProgress.flags |= ShouldCapture; + workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes var error$1 = new Error("Simulated error coming from DevTools"); var lane = pickArbitraryLane(renderLanes); - workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state - var update = createClassErrorUpdate(workInProgress, createCapturedValue(error$1, workInProgress), lane); + var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane); enqueueCapturedUpdate(workInProgress, update); break; } } if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. var innerPropTypes = Component.propTypes; if (innerPropTypes) { checkPropTypes(innerPropTypes, nextProps, + // Resolved props "prop", getComponentNameFromType(Component)); } } - } + } // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. var hasContext; if (isContextProvider(Component)) { @@ -11682,12 +14687,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var instance = workInProgress.stateNode; var shouldUpdate; if (instance === null) { - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance. constructClassInstance(workInProgress, Component, nextProps); mountClassInstance(workInProgress, Component, nextProps, renderLanes); shouldUpdate = true; } else if (current === null) { + // In a resume, we'll already have an instance we can reuse. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes); } else { shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes); @@ -11705,19 +14711,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return nextUnitOfWork; } function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + // Refs should update even if shouldComponentUpdate returns false markRef(current, workInProgress); var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; if (!shouldUpdate && !didCaptureError) { + // Context providers should defer to sCU for rendering if (hasContext) { invalidateContextProvider(workInProgress, Component, false); } return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - var instance = workInProgress.stateNode; + var instance = workInProgress.stateNode; // Rerender ReactCurrentOwner$1.current = workInProgress; var nextChildren; if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { + // If we captured an error, but getDerivedStateFromError is not defined, + // unmount all the children. componentDidCatch will schedule an update to + // re-render a fallback. This is temporary until we migrate everyone to + // the new API. + // TODO: Warn in a future release. nextChildren = null; { stopProfilerTimerIfRunning(); @@ -11728,16 +14741,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextChildren = instance.render(); setIsRendering(false); } - } + } // React DevTools reads this flag. workInProgress.flags |= PerformedWork; if (current !== null && didCaptureError) { + // If we're recovering from an error, reconcile without reusing any of + // the existing children. Conceptually, the normal children and the children + // that are shown on error are two different sets, so we shouldn't reuse + // normal children even if their identities match. forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes); } else { reconcileChildren(current, workInProgress, nextChildren, renderLanes); - } + } // Memoize state using the values we just used to render. + // TODO: Restructure so we never read values from the instance. - workInProgress.memoizedState = instance.state; + workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it. if (hasContext) { invalidateContextProvider(workInProgress, Component, true); @@ -11749,6 +14767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (root.pendingContext) { pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); } else if (root.context) { + // Should always be set pushTopLevelContextObject(workInProgress, root.context, false); } pushHostContainer(workInProgress, root.containerInfo); @@ -11765,6 +14784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e processUpdateQueue(workInProgress, nextProps, null, renderLanes); var nextState = workInProgress.memoizedState; var root = workInProgress.stateNode; + // being called "element". var nextChildren = nextState.element; { @@ -11782,6 +14802,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var prevProps = current !== null ? current.memoizedProps : null; var nextChildren = nextProps.children; if (prevProps !== null && shouldSetTextContent()) { + // If we're switching from a direct text child to a normal child, or to + // empty, we need to schedule the text content to be reset. workInProgress.flags |= ContentReset; } markRef(current, workInProgress); @@ -11789,6 +14811,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return workInProgress.child; } function updateHostText(current, workInProgress) { + // immediately after. return null; } @@ -11798,7 +14821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var lazyComponent = elementType; var payload = lazyComponent._payload; var init = lazyComponent._init; - var Component = init(payload); + var Component = init(payload); // Store the unwrapped component in the type. workInProgress.type = Component; var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); @@ -11837,11 +14860,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var outerPropTypes = Component.propTypes; if (outerPropTypes) { checkPropTypes(outerPropTypes, resolvedProps, + // Resolved for outer only "prop", getComponentNameFromType(Component)); } } } child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), + // The inner type can have defaults too renderLanes); return child; } @@ -11851,14 +14876,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { hint = " Did you wrap a component in React.lazy() more than once?"; } - } + } // This message intentionally doesn't mention ForwardRef or MemoComponent + // because the fact that it's a separate type of work is an + // implementation detail. throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); } function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { - resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again. - workInProgress.tag = ClassComponent; + workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent` + // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. var hasContext; if (isContextProvider(Component)) { @@ -11900,6 +14930,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } workInProgress.flags |= PerformedWork; { + // Support for module components is deprecated and is removed behind a flag. + // Whether or not it would crash later, we want to show a good message in DEV first. if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { var _componentName = getComponentNameFromType(Component) || "Unknown"; if (!didWarnAboutModulePatternComponent[_componentName]) { @@ -11909,6 +14941,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if ( + // Run these checks in production only if the flag is off. + // Eventually we'll delete this branch altogether. typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { { var _componentName2 = getComponentNameFromType(Component) || "Unknown"; @@ -11916,12 +14950,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); didWarnAboutModulePatternComponent[_componentName2] = true; } - } + } // Proceed under the assumption that this is a class instance - workInProgress.tag = ClassComponent; + workInProgress.tag = ClassComponent; // Throw out any hooks that were used. workInProgress.memoizedState = null; - workInProgress.updateQueue = null; + workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. var hasContext = false; if (isContextProvider(Component)) { @@ -11936,6 +14972,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e mountClassInstance(workInProgress, Component, props, renderLanes); return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); } else { + // Proceed under the assumption that this is a function component workInProgress.tag = FunctionComponent; reconcileChildren(null, workInProgress, value, renderLanes); { @@ -12002,23 +15039,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cachePool: cachePool, transitions: prevOffscreenState.transitions }; - } + } // TODO: Probably should inline this back function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) { + // If we're already showing a fallback, there are cases where we need to + // remain on that fallback regardless of whether the content has resolved. + // For example, SuspenseList coordinates when nested content appears. if (current !== null) { var suspenseState = current.memoizedState; if (suspenseState === null) { + // Currently showing content. Don't hide it, even if ForceSuspenseFallback + // is true. More precise name might be "ForceRemainSuspenseFallback". + // Note: This is a factoring smell. Can't remain on a fallback if there's + // no fallback to remain on. return false; } - } + } // Not currently showing content. Consult the Suspense context. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); } function getRemainingWorkInPrimaryTree(current, renderLanes) { + // TODO: Should not remove render lanes that were pinged during this render return removeLanes(current.childLanes, renderLanes); } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps; + var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend. { if (shouldSuspend(workInProgress)) { @@ -12029,17 +15074,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var showFallback = false; var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { + // Something in this boundary's subtree already suspended. Switch to + // rendering the fallback children. showFallback = true; workInProgress.flags &= ~DidCapture; } else { + // Attempting the main content if (current === null || current.memoizedState !== null) { + // This is a new mount or this boundary is already showing a fallback state. + // Mark this subtree context as having at least one invisible parent that could + // handle the fallback state. + // Avoided boundaries are not considered since they cannot handle preferred fallback states. { suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); } } } suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); - pushSuspenseContext(workInProgress, suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense + // boundary's children. This involves some custom reconciliation logic. Two + // main reasons this is so complicated. + // + // First, Legacy Mode has different semantics for backwards compatibility. The + // primary tree will commit in an inconsistent state, so when we do the + // second pass to render the fallback, we do some exceedingly, uh, clever + // hacks to make that not totally break. Like transferring effects and + // deletions from hidden tree. In Concurrent Mode, it's much simpler, + // because we bailout on the primary tree completely and leave it in its old + // state, no effects. Same as what we do for Offscreen (except that + // Offscreen doesn't have the first render pass). + // + // Second is hydration. During hydration, the Suspense fiber has a slightly + // different layout, where the child points to a dehydrated fragment, which + // contains the DOM rendered by the server. + // + // Third, even if you set all that aside, Suspense is like error boundaries in + // that we first we try to render one tree, and if that fails, we render again + // and switch to a different tree. Like a try/catch block. So we have to track + // which branch we're currently rendering. Ideally we would model this using + // a stack. if (current === null) { var suspenseState = workInProgress.memoizedState; @@ -12061,6 +15134,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); } } else { + // This is an update. + // Special path for hydration var prevState = current.memoizedState; if (prevState !== null) { var _dehydrated = prevState.dehydrated; @@ -12107,10 +15182,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var primaryChildFragment; var fallbackChildFragment; if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { + // In legacy mode, we commit the primary tree as if it successfully + // completed, even though it's in an inconsistent state. primaryChildFragment = progressedPrimaryFragment; primaryChildFragment.childLanes = NoLanes; primaryChildFragment.pendingProps = primaryChildProps; if (workInProgress.mode & ProfileMode) { + // Reset the durations from the first pass so they aren't included in the + // final amounts. This seems counterintuitive, since we're intentionally + // not measuring part of the render phase, but this makes it match what we + // do in Concurrent Mode. primaryChildFragment.actualDuration = 0; primaryChildFragment.actualStartTime = -1; primaryChildFragment.selfBaseDuration = 0; @@ -12128,9 +15209,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fallbackChildFragment; } function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) { + // The props argument to `createFiberFromOffscreen` is `any` typed, so we use + // this wrapper function to constrain it. return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); } function updateWorkInProgressOffscreenFiber(current, offscreenProps) { + // The props argument to `createWorkInProgress` is `any` typed, so we use this + // wrapper function to constrain it. return createWorkInProgress(current, offscreenProps); } function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) { @@ -12146,6 +15231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e primaryChildFragment.return = workInProgress; primaryChildFragment.sibling = null; if (currentFallbackChildFragment !== null) { + // Delete the fallback child fragment var deletions = workInProgress.deletions; if (deletions === null) { workInProgress.deletions = [currentFallbackChildFragment]; @@ -12167,22 +15253,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var primaryChildFragment; if ( + // In legacy mode, we commit the primary tree as if it successfully + // completed, even though it's in an inconsistent state. (mode & ConcurrentMode) === NoMode && + // Make sure we're on the second pass, i.e. the primary child fragment was + // already cloned. In legacy mode, the only case where this isn't true is + // when DevTools forces us to display a fallback; we skip the first render + // pass entirely and go straight to rendering the fallback. (In Concurrent + // Mode, SuspenseList can also trigger this scenario, but this is a legacy- + // only codepath.) workInProgress.child !== currentPrimaryChildFragment) { var progressedPrimaryFragment = workInProgress.child; primaryChildFragment = progressedPrimaryFragment; primaryChildFragment.childLanes = NoLanes; primaryChildFragment.pendingProps = primaryChildProps; if (workInProgress.mode & ProfileMode) { + // Reset the durations from the first pass so they aren't included in the + // final amounts. This seems counterintuitive, since we're intentionally + // not measuring part of the render phase, but this makes it match what we + // do in Concurrent Mode. primaryChildFragment.actualDuration = 0; primaryChildFragment.actualStartTime = -1; primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; - } + } // The fallback fiber was added as a deletion during the first pass. + // However, since we're going to remain on the fallback, we no longer want + // to delete it. workInProgress.deletions = null; } else { - primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); + primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too. + // (We don't do this in legacy mode, because in legacy mode we don't re-use + // the current tree; see previous branch.) primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; } @@ -12190,7 +15292,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (currentFallbackChildFragment !== null) { fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); } else { - fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already + // mounted but this is a new fiber. fallbackChildFragment.flags |= Placement; } @@ -12201,15 +15304,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fallbackChildFragment; } function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + // Falling back to client rendering. Because this has performance + // implications, it's considered a recoverable error, even though the user + // likely won't observe anything wrong with the UI. + // + // The error is passed in as an argument to enforce that every caller provide + // a custom message, or explicitly opt out (currently the only path that opts + // out is legacy mode; every concurrent path provides an error). if (recoverableError !== null) { queueHydrationError(recoverableError); - } + } // This will add the old fiber to the deletion list - reconcileChildFibers(workInProgress, current.child, null, renderLanes); + reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated. var nextProps = workInProgress.pendingProps; var primaryChildren = nextProps.children; - var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already + // mounted but this is a new fiber. primaryChildFragment.flags |= Placement; workInProgress.memoizedState = null; @@ -12222,7 +15333,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: primaryChildren }; var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); - var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); + var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense + // boundary) already mounted but this is a new fiber. fallbackChildFragment.flags |= Placement; primaryChildFragment.return = workInProgress; @@ -12230,19 +15342,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e primaryChildFragment.sibling = fallbackChildFragment; workInProgress.child = primaryChildFragment; if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + // We will have dropped the effect list which contains the + // deletion. We need to reconcile to delete the current child. reconcileChildFibers(workInProgress, current.child, null, renderLanes); } return fallbackChildFragment; } function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) { + // During the first pass, we'll bail out and not drill into the children. + // Instead, we'll leave the content in place and try to hydrate it later. if ((workInProgress.mode & ConcurrentMode) === NoMode) { { error("Cannot hydrate Suspense in legacy mode. Switch from " + "ReactDOM.hydrate(element, container) to " + "ReactDOMClient.hydrateRoot(container, )" + ".render(element) or remove the Suspense components from " + "the server rendered components."); } workInProgress.lanes = laneToLanes(SyncLane); } else if (isSuspenseInstanceFallback()) { + // This is a client-only boundary. Since we won't get any content from the server + // for this, we need to schedule that at a higher priority based on when it would + // have timed out. In theory we could render it in this pass but it would have the + // wrong priority associated with it and will prevent hydration of parent path. + // Instead, we'll leave work left on it to render it in a separate commit. + // TODO This time should be the time at which the server rendered response that is + // a parent to this boundary was displayed. However, since we currently don't have + // a protocol to transfer that time, we'll just estimate it by using the current + // time. This will mean that Suspense timeouts are slightly shifted to later than + // they should be. + // Schedule a normal pri update to render this content. workInProgress.lanes = laneToLanes(DefaultHydrationLane); } else { + // We'll continue hydrating the rest at offscreen priority since we'll already + // be showing the right content coming from the server, it is no rush. workInProgress.lanes = laneToLanes(OffscreenLane); } return null; @@ -12251,56 +15380,110 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!didSuspend) { if ((workInProgress.mode & ConcurrentMode) === NoMode) { return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, + // TODO: When we delete legacy mode, we should make this error argument + // required โ€” every concurrent mode path that causes hydration to + // de-opt to client rendering should have an error message. null); } if (isSuspenseInstanceFallback()) { - var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(), - errorMessage = _getSuspenseInstanceF.errorMessage; - var error = errorMessage ? new Error(errorMessage) : new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, error); + // This boundary is in a permanent fallback state. In this case, we'll never + // get an update and we'll never be able to hydrate the final content. Let's just try the + // client side render instead. + var digest, message, stack; + { + var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(); + digest = _getSuspenseInstanceF.digest; + message = _getSuspenseInstanceF.message; + stack = _getSuspenseInstanceF.stack; + } + var error; + if (message) { + // eslint-disable-next-line react-internal/prod-error-codes + error = new Error(message); + } else { + error = new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); + } + var capturedValue = createCapturedValue(error, digest, stack); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue); } + // any context has changed, we need to treat is as if the input might have changed. var hasContextChanged = includesSomeLane(renderLanes, current.childLanes); if (didReceiveUpdate || hasContextChanged) { + // This boundary has changed since the first render. This means that we are now unable to + // hydrate it. We might still be able to hydrate it using a higher priority lane. var root = getWorkInProgressRoot(); if (root !== null) { var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes); if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { - suspenseState.retryLane = attemptHydrationAtLane; + // Intentionally mutating since this render will get interrupted. This + // is one of the very rare times where we mutate the current tree + // during the render phase. + suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render var eventTime = NoTimestamp; - scheduleUpdateOnFiber(current, attemptHydrationAtLane, eventTime); + enqueueConcurrentRenderForLane(current, attemptHydrationAtLane); + scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime); } - } + } // If we have scheduled higher pri work above, this will probably just abort the render + // since we now have higher priority work, but in case it doesn't, we need to prepare to + // render something, if we time out. Even if that requires us to delete everything and + // skip hydration. + // Delay having to do this as long as the suspense timeout allows us. renderDidSuspendDelayIfPossible(); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); + var _capturedValue = createCapturedValue(new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue); } else if (isSuspenseInstancePending()) { - workInProgress.flags |= DidCapture; - - workInProgress.child = current.child; + // This component is still pending more data from the server, so we can't hydrate its + // content. We treat it as if this component suspended itself. It might seem as if + // we could just try to render it client-side instead. However, this will perform a + // lot of unnecessary work and is unlikely to complete since it often will suspend + // on missing data anyway. Additionally, the server might be able to render more + // than we can on the client yet. In that case we'd end up with more fallback states + // on the client than if we just leave it alone. If the server times out or errors + // these should update this boundary to the permanent Fallback state instead. + // Mark it as having captured (i.e. suspended). + workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment. + + workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result. var retry = retryDehydratedSuspenseBoundary.bind(null, current); registerSuspenseInstanceRetry(); return null; } else { + // This is the first attempt. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext); var primaryChildren = nextProps.children; - var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this + // tree is part of a hydrating tree. This is used to determine if a child + // node has fully mounted yet, and for scheduling event replaying. + // Conceptually this is similar to Placement in that a new subtree is + // inserted into the React tree here. It just happens to not need DOM + // mutations because it already exists. primaryChildFragment.flags |= Hydrating; return primaryChildFragment; } } else { + // This is the second render pass. We already attempted to hydrated, but + // something either suspended or errored. if (workInProgress.flags & ForceClientRender) { + // Something errored during hydration. Try again without hydrating. workInProgress.flags &= ~ForceClientRender; - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); + var _capturedValue2 = createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2); } else if (workInProgress.memoizedState !== null) { - workInProgress.child = current.child; + // Something suspended and we should still be in dehydrated mode. + // Leave the existing child in place. + workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there + // but the normal suspense pass doesn't. workInProgress.flags |= DidCapture; return null; } else { + // Suspended but we should no longer be in dehydrated mode. + // Therefore we now have to render the fallback. var nextPrimaryChildren = nextProps.children; var nextFallbackChildren = nextProps.fallback; var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); @@ -12320,6 +15503,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); } function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) { + // Mark any Suspense boundaries with fallbacks as having work to do. + // If they were previously forced into fallbacks, they may now be able + // to unblock. var node = firstChild; while (node !== null) { if (node.tag === SuspenseComponent) { @@ -12328,6 +15514,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); } } else if (node.tag === SuspenseListComponent) { + // If the tail is hidden there might not be an Suspense boundaries + // to schedule work on. In this case we have to schedule it on the + // list itself. + // We don't have to traverse to the children of the list since + // the list will propagate the change when it rerenders. scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); } else if (node.child !== null) { node.child.return = node; @@ -12348,10 +15539,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function findLastContentRow(firstChild) { + // This is going to find the last row among these children that is already + // showing content on the screen, as opposed to being in fallback state or + // new. If a row has multiple Suspense boundaries, any of them being in the + // fallback state, counts as the whole row being in a fallback state. + // Note that the "rows" will be workInProgress, but any nested children + // will still be current since we haven't rendered them yet. The mounted + // order may not be the same as the new order. We use the new order. var row = firstChild; var lastContentRow = null; while (row !== null) { - var currentRow = row.alternate; + var currentRow = row.alternate; // New rows can't be content rows. if (currentRow !== null && findFirstSuspended(currentRow) === null) { lastContentRow = row; @@ -12456,6 +15654,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e tailMode: tailMode }; } else { + // We can reuse the existing object from previous renders. renderState.isBackwards = isBackwards; renderState.rendering = null; renderState.renderingStartTime = 0; @@ -12463,7 +15662,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderState.tail = tail; renderState.tailMode = tailMode; } - } + } // This can end up rendering this component multiple passes. + // The first pass splits the children fibers into two sets. A head and tail. + // We first render the head. If anything is in fallback state, we do another + // pass through beginWork to rerender all children (including the tail) with + // the force suspend context. If the first render didn't have anything in + // in fallback state. Then we render each row in the tail one-by-one. + // That happens in the completeWork phase without going back to beginWork. function updateSuspenseListComponent(current, workInProgress, renderLanes) { var nextProps = workInProgress.pendingProps; @@ -12482,12 +15687,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags; if (didSuspendBefore) { + // If we previously forced a fallback, we need to schedule work + // on any nested boundaries to let them know to try to render + // again. This is the same as context updating. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes); } suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); } pushSuspenseContext(workInProgress, suspenseContext); if ((workInProgress.mode & ConcurrentMode) === NoMode) { + // In legacy mode, SuspenseList doesn't work so we just + // use make it a noop by treating it as the default revealOrder. workInProgress.memoizedState = null; } else { switch (revealOrder) { @@ -12496,25 +15706,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var lastContentRow = findLastContentRow(workInProgress.child); var tail; if (lastContentRow === null) { + // The whole list is part of the tail. + // TODO: We could fast path by just rendering the tail now. tail = workInProgress.child; workInProgress.child = null; } else { + // Disconnect the tail rows after the content row. + // We're going to render them separately later. tail = lastContentRow.sibling; lastContentRow.sibling = null; } initSuspenseListRenderState(workInProgress, false, + // isBackwards tail, lastContentRow, tailMode); break; } case "backwards": { + // We're going to find the first row that has existing content. + // At the same time we're going to reverse the list of everything + // we pass in the meantime. That's going to be our tail in reverse + // order. var _tail = null; var row = workInProgress.child; workInProgress.child = null; while (row !== null) { - var currentRow = row.alternate; + var currentRow = row.alternate; // New rows can't be content rows. if (currentRow !== null && findFirstSuspended(currentRow) === null) { + // This is the beginning of the main content. workInProgress.child = row; break; } @@ -12522,23 +15742,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e row.sibling = _tail; _tail = row; row = nextRow; - } + } // TODO: If workInProgress.child is null, we can continue on the tail immediately. initSuspenseListRenderState(workInProgress, true, + // isBackwards _tail, null, + // last tailMode); break; } case "together": { initSuspenseListRenderState(workInProgress, false, + // isBackwards null, + // tail null, + // last undefined); break; } default: { + // The default reveal order is the same as not having + // a boundary. workInProgress.memoizedState = null; } } @@ -12549,6 +15776,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); var nextChildren = workInProgress.pendingProps; if (current === null) { + // Portals are special because we don't append the children during mount + // but at commit. Therefore we need to track insertions which the normal + // flow doesn't do during mount. This doesn't happen at the root because + // the root always starts with a "current" with a null child. + // TODO: Consider unifying this with how the root works. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); } else { reconcileChildren(current, workInProgress, nextChildren, renderLanes); @@ -12579,10 +15811,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (oldProps !== null) { var oldValue = oldProps.value; if (objectIs(oldValue, newValue)) { + // No change. Bailout early if children are the same. if (oldProps.children === newProps.children && !hasContextChanged()) { return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } } else { + // The context value changed. Search for matching consumers and schedule + // them to update. propagateContextChange(workInProgress, context, renderLanes); } } @@ -12593,10 +15828,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var hasWarnedAboutUsingContextAsConsumer = false; function updateContextConsumer(current, workInProgress, renderLanes) { - var context = workInProgress.type; + var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In + // DEV mode, we create a separate object for Context.Consumer that acts + // like a proxy to Context. This proxy object adds unnecessary code in PROD + // so we use the old behaviour (Context.Consumer references Context) to + // reduce size and overhead. The separate object references context via + // a property called "_context", which also gives us the ability to check + // in DEV mode if this property exists or not and warn if it does not. { if (context._context === undefined) { + // This may be because it's a Context (rather than a Consumer). + // Or it may be because it's older React where they're the same thing. + // We only want to warn if we're sure it's a new React. if (context !== context.Consumer) { if (!hasWarnedAboutUsingContextAsConsumer) { hasWarnedAboutUsingContextAsConsumer = true; @@ -12633,8 +15877,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { if ((workInProgress.mode & ConcurrentMode) === NoMode) { if (current !== null) { + // A lazy component only mounts if it suspended inside a non- + // concurrent tree, in an inconsistent state. We want to treat it like + // a new mount, even though an empty version of it already committed. + // Disconnect the alternate pointers. current.alternate = null; - workInProgress.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect workInProgress.flags |= Placement; } @@ -12642,18 +15890,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { if (current !== null) { + // Reuse previous dependencies workInProgress.dependencies = current.dependencies; } { + // Don't update "base" render times for bailouts. stopProfilerTimerIfRunning(); } - markSkippedUpdateLanes(workInProgress.lanes); + markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work. if (!includesSomeLane(renderLanes, workInProgress.childLanes)) { + // The children don't have any work either. We can skip them. + // TODO: Once we add back resuming, we should check if the children are + // a work-in-progress set. If so, we need to transfer their effects. { return null; } - } + } // This fiber doesn't have work, but its subtree does. Clone the child + // fibers and continue. cloneChildFibers(current, workInProgress); return workInProgress.child; @@ -12662,32 +15916,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var returnFiber = oldWorkInProgress.return; if (returnFiber === null) { + // eslint-disable-next-line react-internal/prod-error-codes throw new Error("Cannot swap the root fiber."); - } + } // Disconnect from the old current. + // It will get deleted. current.alternate = null; - oldWorkInProgress.alternate = null; + oldWorkInProgress.alternate = null; // Connect to the new tree. newWorkInProgress.index = oldWorkInProgress.index; newWorkInProgress.sibling = oldWorkInProgress.sibling; newWorkInProgress.return = oldWorkInProgress.return; - newWorkInProgress.ref = oldWorkInProgress.ref; + newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it. if (oldWorkInProgress === returnFiber.child) { returnFiber.child = newWorkInProgress; } else { var prevSibling = returnFiber.child; if (prevSibling === null) { + // eslint-disable-next-line react-internal/prod-error-codes throw new Error("Expected parent to have a child."); } while (prevSibling.sibling !== oldWorkInProgress) { prevSibling = prevSibling.sibling; if (prevSibling === null) { + // eslint-disable-next-line react-internal/prod-error-codes throw new Error("Expected to find the previous sibling."); } } prevSibling.sibling = newWorkInProgress; - } + } // Delete the old fiber and place the new one. + // Since the old fiber is disconnected, we have to schedule it manually. var deletions = returnFiber.deletions; if (deletions === null) { @@ -12696,20 +15955,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { deletions.push(current); } - newWorkInProgress.flags |= Placement; + newWorkInProgress.flags |= Placement; // Restart work from the new fiber. return newWorkInProgress; } } function checkScheduledUpdateOrContext(current, renderLanes) { + // Before performing an early bailout, we must check if there are pending + // updates or context. var updateLanes = current.lanes; if (includesSomeLane(updateLanes, renderLanes)) { return true; - } + } // No pending update, but because context is propagated lazily, we need return false; } function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + // This fiber does not have any pending work. Bailout without entering + // the begin phase. There's still some bookkeeping we that needs to be done + // in this optimized path, mostly pushing stuff onto the stack. switch (workInProgress.tag) { case HostRoot: pushHostRootContext(workInProgress); @@ -12738,11 +16002,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } case Profiler: { + // Profiler should only call onRender when one of its descendants actually rendered. var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); if (hasChildWork) { workInProgress.flags |= Update; } { + // Reset effect durations for the next eventual effect phase. + // These are reset during render to allow the DevTools commit hook a chance to read them, var stateNode = workInProgress.stateNode; stateNode.effectDuration = 0; stateNode.passiveEffectDuration = 0; @@ -12754,24 +16021,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var state = workInProgress.memoizedState; if (state !== null) { if (state.dehydrated !== null) { - pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has + // been unsuspended it has committed as a resolved Suspense component. + // If it needs to be retried, it should have work scheduled on it. - workInProgress.flags |= DidCapture; + workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we + // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork. return null; - } + } // If this boundary is currently timed out, we need to decide + // whether to retry the primary children, or to skip over it and + // go straight to the fallback. Check the priority of the primary + // child fragment. var primaryChildFragment = workInProgress.child; var primaryChildLanes = primaryChildFragment.childLanes; if (includesSomeLane(renderLanes, primaryChildLanes)) { + // The primary children have pending work. Use the normal path + // to attempt to render the primary children again. return updateSuspenseComponent(current, workInProgress, renderLanes); } else { - pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + // The primary child fragment does not have pending work marked + // on it + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient + // priority. Bailout. var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); if (child !== null) { + // The fallback children have pending work. Skip over the + // primary children and work on the fallback. return child.sibling; } else { + // Note: We can return `null` here because we already checked + // whether there were nested context consumers, via the call to + // `bailoutOnAlreadyFinishedWork` above. return null; } } @@ -12786,14 +16069,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); if (didSuspendBefore) { if (_hasChildWork) { + // If something was in fallback state last time, and we have all the + // same children then we're still in progressive loading state. + // Something might get unblocked by state updates or retries in the + // tree which will affect the tail. So we need to use the normal + // path to compute the correct tail. return updateSuspenseListComponent(current, workInProgress, renderLanes); - } + } // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. workInProgress.flags |= DidCapture; - } + } // If nothing suspended before and we're rendering the same children, + // then the tail doesn't matter. Anything new that suspends will work + // in the "together" mode, so we can continue from the state we had. var renderState = workInProgress.memoizedState; if (renderState !== null) { + // Reset to the "together" mode in case we've started a different + // update in the past but didn't complete it. renderState.rendering = null; renderState.tail = null; renderState.lastEffect = null; @@ -12802,12 +16096,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (_hasChildWork) { break; } else { + // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. return null; } } case OffscreenComponent: case LegacyHiddenComponent: { + // Need to check if the tree still needs to be deferred. This is + // almost identical to the logic used in the normal update path, + // so we'll just enter that. The only difference is we'll bail out + // at the next level instead of this one, because the child props + // have not changed. Which is fine. + // TODO: Probably should refactor `beginWork` to split the bailout + // path from the normal path. I'm tempted to do a labeled break here + // but I won't :) workInProgress.lanes = NoLanes; return updateOffscreenComponent(current, workInProgress, renderLanes); } @@ -12817,6 +16122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function beginWork(current, workInProgress, renderLanes) { { if (workInProgress._debugNeedsRemount && current !== null) { + // This will restart the begin phase with a new fiber. return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes)); } } @@ -12824,24 +16130,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var oldProps = current.memoizedProps; var newProps = workInProgress.pendingProps; if (oldProps !== newProps || hasContextChanged() || + // Force a re-render if the implementation changed due to hot reload: workInProgress.type !== current.type) { + // If props or context changed, mark the fiber as having performed work. + // This may be unset if the props are determined to be equal later (memo). didReceiveUpdate = true; } else { + // Neither props nor legacy context changes. Check if there's a pending + // update or context change. var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); if (!hasScheduledUpdateOrContext && + // If this is the second pass of an error or suspense boundary, there + // may not be work scheduled on `current`, so we check for this flag. (workInProgress.flags & DidCapture) === NoFlags) { + // No pending updates or context. Bail out now. didReceiveUpdate = false; return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); } if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + // This is a special case that only exists for legacy mode. + // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; } else { + // An update was scheduled on this fiber, but there are no new props + // nor legacy context. Set this to false. If an update queue or context + // consumer produces a changed value, it will set this to true. Otherwise, + // the component will assume the children have not changed and bail out. didReceiveUpdate = false; } } } else { didReceiveUpdate = false; - } + } // Before entering the begin phase, clear pending update priority. + // TODO: This assumes that we're about to evaluate the component and process + // the update queue. However, there's an exception: SimpleMemoComponent + // sometimes bails out later in the begin phase. This indicates that we should + // move this assignment out of the common path and into each branch. workInProgress.lanes = NoLanes; switch (workInProgress.tag) { @@ -12898,7 +16222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case MemoComponent: { var _type2 = workInProgress.type; - var _unresolvedProps3 = workInProgress.pendingProps; + var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); { @@ -12906,6 +16230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var outerPropTypes = _type2.propTypes; if (outerPropTypes) { checkPropTypes(outerPropTypes, _resolvedProps3, + // Resolved for outer only "prop", getComponentNameFromType(_type2)); } } @@ -12940,26 +16265,128 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); } function markUpdate(workInProgress) { + // Tag the fiber with an update effect. This turns a Placement into + // a PlacementAndUpdate. workInProgress.flags |= Update; } function markRef$1(workInProgress) { workInProgress.flags |= Ref; } - var appendAllChildren; + function hadNoMutationsEffects(current, completedWork) { + var didBailout = current !== null && current.child === completedWork.child; + if (didBailout) { + return true; + } + if ((completedWork.flags & ChildDeletion) !== NoFlags) { + return false; + } // TODO: If we move the `hadNoMutationsEffects` call after `bubbleProperties` + // then we only have to check the `completedWork.subtreeFlags`. + + var child = completedWork.child; + while (child !== null) { + if ((child.flags & MutationMask) !== NoFlags || (child.subtreeFlags & MutationMask) !== NoFlags) { + return false; + } + child = child.sibling; + } + return true; + } + var _appendAllChildren; var updateHostContainer; var updateHostComponent$1; var updateHostText$1; { - appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + // Persistent host tree mode + _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + // We only have the top Fiber that was created but we need recurse down its + // children to find all the terminal nodes. var node = workInProgress.child; while (node !== null) { - if (node.tag === HostComponent || node.tag === HostText) { - appendInitialChild(parent, node.stateNode); - } else if (node.tag === HostPortal) ;else if (node.child !== null) { + // eslint-disable-next-line no-labels + if (node.tag === HostComponent) { + var instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + // This child is inside a timed out tree. Hide it. + var props = node.memoizedProps; + var type = node.type; + instance = cloneHiddenInstance(instance); + } + appendInitialChild(parent, instance); + } else if (node.tag === HostText) { + var _instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + // This child is inside a timed out tree. Hide it. + var text = node.memoizedProps; + _instance = cloneHiddenTextInstance(); + } + appendInitialChild(parent, _instance); + } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { + // The children in this boundary are hidden. Toggle their visibility + // before appending. + var child = node.child; + if (child !== null) { + child.return = node; + } + _appendAllChildren(parent, node, true, true); + } else if (node.child !== null) { node.child.return = node; node = node.child; continue; + } // $FlowFixMe This is correct but Flow is confused by the labeled break. + + node = node; + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; } + node.sibling.return = node.return; + node = node.sibling; + } + }; // An unfortunate fork of appendAllChildren because we have two different parent types. + + var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { + // We only have the top Fiber that was created but we need recurse down its + // children to find all the terminal nodes. + var node = workInProgress.child; + while (node !== null) { + // eslint-disable-next-line no-labels + if (node.tag === HostComponent) { + var instance = node.stateNode; + if (needsVisibilityToggle && isHidden) { + // This child is inside a timed out tree. Hide it. + var props = node.memoizedProps; + var type = node.type; + instance = cloneHiddenInstance(instance); + } + appendChildToContainerChildSet(containerChildSet, instance); + } else if (node.tag === HostText) { + var _instance2 = node.stateNode; + if (needsVisibilityToggle && isHidden) { + // This child is inside a timed out tree. Hide it. + var text = node.memoizedProps; + _instance2 = cloneHiddenTextInstance(); + } + appendChildToContainerChildSet(containerChildSet, _instance2); + } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { + // The children in this boundary are hidden. Toggle their visibility + // before appending. + var child = node.child; + if (child !== null) { + child.return = node; + } + appendAllChildrenToContainer(containerChildSet, node, true, true); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } // $FlowFixMe This is correct but Flow is confused by the labeled break. + + node = node; if (node === workInProgress) { return; } @@ -12974,27 +16401,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; updateHostContainer = function updateHostContainer(current, workInProgress) { + var portalOrRoot = workInProgress.stateNode; + var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); + if (childrenUnchanged) ;else { + var container = portalOrRoot.containerInfo; + var newChildSet = createContainerChildSet(container); // If children might have changed, we have to add them all to the set. + + appendAllChildrenToContainer(newChildSet, workInProgress, false, false); + portalOrRoot.pendingChildren = newChildSet; // Schedule an update on the container to swap out the container. + + markUpdate(workInProgress); + finalizeContainerChildren(container, newChildSet); + } }; updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance) { - var oldProps = current.memoizedProps; - if (oldProps === newProps) { + var currentInstance = current.stateNode; + var oldProps = current.memoizedProps; // If there are no effects associated with this node, then none of our children had any updates. + // This guarantees that we can reuse all of them. + + var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); + if (childrenUnchanged && oldProps === newProps) { + // No changes, just reuse the existing instance. + // Note that this might release a previous clone. + workInProgress.stateNode = currentInstance; return; } - - var instance = workInProgress.stateNode; + var recyclableInstance = workInProgress.stateNode; var currentHostContext = getHostContext(); - - var updatePayload = prepareUpdate(); - - workInProgress.updateQueue = updatePayload; - - if (updatePayload) { + var updatePayload = null; + if (oldProps !== newProps) { + updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps); + } + if (childrenUnchanged && updatePayload === null) { + // No changes, just reuse the existing instance. + // Note that this might release a previous clone. + workInProgress.stateNode = currentInstance; + return; + } + var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged); + workInProgress.stateNode = newInstance; + if (childrenUnchanged) { + // If there are no other effects in this tree, we need to flag this node as having one. + // Even though we're not going to use it for anything. + // Otherwise parents won't know that there are new children to propagate upwards. markUpdate(workInProgress); + } else { + // If children might have changed, we have to add them all to the set. + _appendAllChildren(newInstance, workInProgress, false, false); } }; updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { if (oldText !== newText) { + // If the text content differs, we'll create a new text instance for it. + var rootContainerInstance = getRootHostContainer(); + var currentHostContext = getHostContext(); + workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); // We'll have to mark it as having an effect, even though we won't use the effect for anything. + // This lets the parents know that at least one of their children has changed. + markUpdate(workInProgress); + } else { + workInProgress.stateNode = current.stateNode; } }; } @@ -13002,6 +16468,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e switch (renderState.tailMode) { case "hidden": { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. var tailNode = renderState.tail; var lastTailNode = null; while (tailNode !== null) { @@ -13009,17 +16480,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e lastTailNode = tailNode; } tailNode = tailNode.sibling; - } + } // Next we're simply going to delete all insertions after the + // last rendered item. if (lastTailNode === null) { + // All remaining items in the tail are insertions. renderState.tail = null; } else { + // Detach the insertion after the last node that was already + // inserted. lastTailNode.sibling = null; } break; } case "collapsed": { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. var _tailNode = renderState.tail; var _lastTailNode = null; while (_tailNode !== null) { @@ -13027,15 +16507,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _lastTailNode = _tailNode; } _tailNode = _tailNode.sibling; - } + } // Next we're simply going to delete all insertions after the + // last rendered item. if (_lastTailNode === null) { + // All remaining items in the tail are insertions. if (!hasRenderedATailFallback && renderState.tail !== null) { + // We suspended during the head. We want to show at least one + // row at the tail. So we'll keep on and cut off the rest. renderState.tail.sibling = null; } else { renderState.tail = null; } } else { + // Detach the insertion after the last node that was already + // inserted. _lastTailNode.sibling = null; } break; @@ -13047,14 +16533,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var newChildLanes = NoLanes; var subtreeFlags = NoFlags; if (!didBailout) { + // Bubble up the earliest expiration time. if ((completedWork.mode & ProfileMode) !== NoMode) { + // In profiling mode, resetChildExpirationTime is also used to reset + // profiler durations. var actualDuration = completedWork.actualDuration; var treeBaseDuration = completedWork.selfBaseDuration; var child = completedWork.child; while (child !== null) { newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); subtreeFlags |= child.subtreeFlags; - subtreeFlags |= child.flags; + subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will + // only be updated if work is done on the fiber (i.e. it doesn't bailout). + // When work is done, it should bubble to the parent's actualDuration. If + // the fiber has not been cloned though, (meaning no work was done), then + // this value will reflect the amount of time spent working on a previous + // render. In that case it should not bubble. We determine whether it was + // cloned by comparing the child pointer. actualDuration += child.actualDuration; treeBaseDuration += child.treeBaseDuration; @@ -13067,7 +16562,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e while (_child !== null) { newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); subtreeFlags |= _child.subtreeFlags; - subtreeFlags |= _child.flags; + subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code + // smell because it assumes the commit phase is never concurrent with + // the render phase. Will address during refactor to alternate model. _child.return = completedWork; _child = _child.sibling; @@ -13075,11 +16572,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } completedWork.subtreeFlags |= subtreeFlags; } else { + // Bubble up the earliest expiration time. if ((completedWork.mode & ProfileMode) !== NoMode) { + // In profiling mode, resetChildExpirationTime is also used to reset + // profiler durations. var _treeBaseDuration = completedWork.selfBaseDuration; var _child2 = completedWork.child; while (_child2 !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to, + // so we should bubble those up even during a bailout. All the other + // flags have a lifetime only of a single render + commit, so we should + // ignore them. subtreeFlags |= _child2.subtreeFlags & StaticMask; subtreeFlags |= _child2.flags & StaticMask; @@ -13090,10 +16593,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { var _child3 = completedWork.child; while (_child3 !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to, + // so we should bubble those up even during a bailout. All the other + // flags have a lifetime only of a single render + commit, so we should + // ignore them. subtreeFlags |= _child3.subtreeFlags & StaticMask; - subtreeFlags |= _child3.flags & StaticMask; + subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code + // smell because it assumes the commit phase is never concurrent with + // the render phase. Will address during refactor to alternate model. _child3.return = completedWork; _child3 = _child3.sibling; @@ -13107,6 +16615,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) { var wasHydrated = popHydrationState(); if (nextState !== null && nextState.dehydrated !== null) { + // We might be inside a hydration state the first time we're picking up this + // Suspense boundary, and also after we've reentered it for further hydration. if (current === null) { if (!wasHydrated) { throw new Error("A dehydrated suspense component was completed without a hydrated node. " + "This is probably a bug in React."); @@ -13117,8 +16627,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if ((workInProgress.mode & ProfileMode) !== NoMode) { var isTimedOutSuspense = nextState !== null; if (isTimedOutSuspense) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } } @@ -13127,8 +16639,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; } else { if ((workInProgress.flags & DidCapture) === NoFlags) { + // This boundary did not suspend so it's now hydrated and unsuspended. workInProgress.memoizedState = null; - } + } // If nothing suspended, we need to schedule an effect to mark this boundary + // as having hydrated so events know that they're free to be invoked. + // It's also a signal to replay events and the suspense callback. + // If something suspended, schedule an effect to attach retry listeners. + // So we might as well always mark this. workInProgress.flags |= Update; bubbleProperties(workInProgress); @@ -13136,8 +16653,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if ((workInProgress.mode & ProfileMode) !== NoMode) { var _isTimedOutSuspense = nextState !== null; if (_isTimedOutSuspense) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. var _primaryChildFragment = workInProgress.child; if (_primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; } } @@ -13146,13 +16665,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; } } else { - upgradeHydrationErrorsToRecoverable(); + // Successfully completed this tree. If this was a forced client render, + // there may have been recoverable errors during first hydration + // attempt. If so, add them to a queue so we can log them in the + // commit phase. + upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path return true; } } function completeWork(current, workInProgress, renderLanes) { - var newProps = workInProgress.pendingProps; + var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. popTreeContext(workInProgress); switch (workInProgress.tag) { @@ -13188,16 +16714,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiberRoot.pendingContext = null; } if (current === null || current.child === null) { + // If we hydrated, pop so that we can delete any remaining children + // that weren't hydrated. var wasHydrated = popHydrationState(); if (wasHydrated) { + // If we hydrated, then we'll need to schedule an update for + // the commit side-effects on the root. markUpdate(workInProgress); } else { if (current !== null) { var prevState = current.memoizedState; if ( + // Check if this is a client root !prevState.isDehydrated || + // Check if we reverted to client rendering (e.g. due to an error) (workInProgress.flags & ForceClientRender) !== NoFlags) { - workInProgress.flags |= Snapshot; + // Schedule an effect to clear this container at the start of the + // next commit. This handles the case of React rendering into a + // container with previous children. It's also safe to do for + // updates too, because current.child would only be null if the + // previous render was null (so the container would already + // be empty). + workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been + // recoverable errors during first hydration attempt. If so, add + // them to a queue so we can log them in the commit phase. upgradeHydrationErrorsToRecoverable(); } @@ -13222,28 +16762,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!newProps) { if (workInProgress.stateNode === null) { throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - } + } // This can happen when we abort work. bubbleProperties(workInProgress); return null; } - var currentHostContext = getHostContext(); + var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context + // "stack" as the parent. Then append children as we go in beginWork + // or completeWork depending on whether we want to add them top->down or + // bottom->up. Top->down is faster in IE11. var _wasHydrated = popHydrationState(); if (_wasHydrated) { + // TODO: Move this and createInstance step into the beginPhase + // to consolidate. if (prepareToHydrateHostInstance()) { + // If changes to the hydrated node need to be applied at the + // commit-phase we mark this as such. markUpdate(workInProgress); } } else { var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); - appendAllChildren(instance, workInProgress, false, false); - workInProgress.stateNode = instance; - - if (finalizeInitialChildren(instance)) { - markUpdate(workInProgress); - } + _appendAllChildren(instance, workInProgress, false, false); + workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount. } + if (workInProgress.ref !== null) { + // If there is a ref on a host node we need to schedule a callback markRef$1(workInProgress); } } @@ -13254,14 +16799,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var newText = newProps; if (current && workInProgress.stateNode != null) { - var oldText = current.memoizedProps; + var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need + // to schedule a side-effect to do the updates. updateHostText$1(current, workInProgress, oldText, newText); } else { if (typeof newText !== "string") { if (workInProgress.stateNode === null) { throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - } + } // This can happen when we abort work. } var _rootContainerInstance = getRootHostContainer(); @@ -13281,42 +16827,75 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case SuspenseComponent: { popSuspenseContext(workInProgress); - var nextState = workInProgress.memoizedState; + var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this + // to its own fiber type so that we can add other kinds of hydration + // boundaries that aren't associated with a Suspense tree. In anticipation + // of such a refactor, all the hydration logic is contained in + // this branch. if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) { var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState); if (!fallthroughToNormalSuspensePath) { if (workInProgress.flags & ShouldCapture) { + // Special case. There were remaining unhydrated nodes. We treat + // this as a mismatch. Revert to client rendering. return workInProgress; } else { + // Did not finish hydrating, either because this is the initial + // render or because something suspended. return null; } - } + } // Continue with the normal Suspense path. } if ((workInProgress.flags & DidCapture) !== NoFlags) { - workInProgress.lanes = renderLanes; + // Something suspended. Re-render with the fallback children. + workInProgress.lanes = renderLanes; // Do not reset the effect list. if ((workInProgress.mode & ProfileMode) !== NoMode) { transferActualDuration(workInProgress); - } + } // Don't bubble properties in this case. return workInProgress; } var nextDidTimeout = nextState !== null; var prevDidTimeout = current !== null && current.memoizedState !== null; + // a passive effect, which is when we process the transitions if (nextDidTimeout !== prevDidTimeout) { + // an effect to toggle the subtree's visibility. When we switch from + // fallback -> primary, the inner Offscreen fiber schedules this effect + // as part of its normal complete phase. But when we switch from + // primary -> fallback, the inner Offscreen fiber does not have a complete + // phase. So we need to schedule its effect here. + // + // We also use this flag to connect/disconnect the effects, but the same + // logic applies: when re-connecting, the Offscreen fiber's complete + // phase will handle scheduling the effect. It's only when the fallback + // is active that we have to do anything special. if (nextDidTimeout) { var _offscreenFiber2 = workInProgress.child; - _offscreenFiber2.flags |= Visibility; + _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything + // in the concurrent tree already suspended during this render. + // This is a known bug. if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + // TODO: Move this back to throwException because this is too late + // if this is a large tree which is common for initial loads. We + // don't know if we should restart a render or not until we get + // this marker, and this is too late. + // If this render already had a ping or lower pri updates, + // and this is the first time we know we're going to suspend we + // should be able to immediately restart from within throwException. var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + // If this was in an invisible tree or a new render, then showing + // this boundary is ok. renderDidSuspend(); } else { + // Otherwise, we're going to have to hide content so we should + // suspend for longer if possible. renderDidSuspendDelayIfPossible(); } } @@ -13324,14 +16903,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var wakeables = workInProgress.updateQueue; if (wakeables !== null) { + // Schedule an effect to attach a retry listener to the promise. + // TODO: Move to passive phase workInProgress.flags |= Update; } bubbleProperties(workInProgress); { if ((workInProgress.mode & ProfileMode) !== NoMode) { if (nextDidTimeout) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } } @@ -13348,12 +16931,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bubbleProperties(workInProgress); return null; case ContextProvider: + // Pop provider fiber var context = workInProgress.type._context; popProvider(context, workInProgress); bubbleProperties(workInProgress); return null; case IncompleteClassComponent: { + // Same as class component case. I put it down here so that the tags are + // sequential to ensure this switch is compiled to a jump table. var _Component = workInProgress.type; if (isContextProvider(_Component)) { popContext(workInProgress); @@ -13366,13 +16952,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e popSuspenseContext(workInProgress); var renderState = workInProgress.memoizedState; if (renderState === null) { + // We're running in the default, "independent" mode. + // We don't do anything in this mode. bubbleProperties(workInProgress); return null; } var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; var renderedTail = renderState.rendering; if (renderedTail === null) { + // We just rendered the head. if (!didSuspendAlready) { + // This is the first pass. We need to figure out if anything is still + // suspended in the rendered set. + // If new content unsuspended, but there's still some content that + // didn't. Then we need to do a second pass that forces everything + // to keep showing their fallbacks. + // We might be suspended if something in this render pass suspended, or + // something in the previous committed pass suspended. Otherwise, + // there's no chance so we can skip the expensive call to + // findFirstSuspended. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags); if (!cannotBeSuspended) { var row = workInProgress.child; @@ -13381,18 +16979,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (suspended !== null) { didSuspendAlready = true; workInProgress.flags |= DidCapture; - cutOffTailIfNeeded(renderState, false); + cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as + // part of the second pass. In that case nothing will subscribe to + // its thenables. Instead, we'll transfer its thenables to the + // SuspenseList so that it can retry if they resolve. + // There might be multiple of these in the list but since we're + // going to wait for all of them anyway, it doesn't really matter + // which ones gets to ping. In theory we could get clever and keep + // track of how many dependencies remain but it gets tricky because + // in the meantime, we can add/remove/change items and dependencies. + // We might bail out of the loop before finding any but that + // doesn't matter since that means that the other boundaries that + // we did find already has their listeners attached. var newThenables = suspended.updateQueue; if (newThenables !== null) { workInProgress.updateQueue = newThenables; workInProgress.flags |= Update; - } + } // Rerender the whole list, but this time, we'll force fallbacks + // to stay in place. + // Reset the effect flags before doing the second pass since that's now invalid. + // Reset the child fibers to their original state. workInProgress.subtreeFlags = NoFlags; - resetChildFibers(workInProgress, renderLanes); + resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately + // rerender the children. - pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); + pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case. return workInProgress.child; } @@ -13400,43 +17013,75 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (renderState.tail !== null && now() > getRenderTargetTime()) { + // We have already passed our CPU deadline but we still have rows + // left in the tail. We'll just give up further attempts to render + // the main content and only render fallbacks. workInProgress.flags |= DidCapture; didSuspendAlready = true; - cutOffTailIfNeeded(renderState, false); + cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this + // to get it started back up to attempt the next item. While in terms + // of priority this work has the same priority as this current render, + // it's not part of the same transition once the transition has + // committed. If it's sync, we still want to yield so that it can be + // painted. Conceptually, this is really the same as pinging. + // We can use any RetryLane even if it's the one currently rendering + // since we're leaving it behind on this node. workInProgress.lanes = SomeRetryLane; } } else { cutOffTailIfNeeded(renderState, false); - } + } // Next we're going to render the tail. } else { + // Append the rendered row to the child list. if (!didSuspendAlready) { var _suspended = findFirstSuspended(renderedTail); if (_suspended !== null) { workInProgress.flags |= DidCapture; - didSuspendAlready = true; + didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't + // get lost if this row ends up dropped during a second pass. var _newThenables = _suspended.updateQueue; if (_newThenables !== null) { workInProgress.updateQueue = _newThenables; workInProgress.flags |= Update; } - cutOffTailIfNeeded(renderState, true); + cutOffTailIfNeeded(renderState, true); // This might have been modified. - if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating()) { + if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating. + ) { + // We're done. bubbleProperties(workInProgress); return null; } } else if ( + // The time it took to render last row is greater than the remaining + // time we have to render. So rendering one more row would likely + // exceed it. now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) { + // We have now passed our CPU deadline and we'll just give up further + // attempts to render the main content and only render fallbacks. + // The assumption is that this is usually faster. workInProgress.flags |= DidCapture; didSuspendAlready = true; - cutOffTailIfNeeded(renderState, false); + cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this + // to get it started back up to attempt the next item. While in terms + // of priority this work has the same priority as this current render, + // it's not part of the same transition once the transition has + // committed. If it's sync, we still want to yield so that it can be + // painted. Conceptually, this is really the same as pinging. + // We can use any RetryLane even if it's the one currently rendering + // since we're leaving it behind on this node. workInProgress.lanes = SomeRetryLane; } } if (renderState.isBackwards) { + // The effect list of the backwards tail will have been added + // to the end. This breaks the guarantee that life-cycles fire in + // sibling order but that isn't a strong guarantee promised by React. + // Especially since these might also just pop in during future commits. + // Append to the beginning of the list. renderedTail.sibling = workInProgress.child; workInProgress.child = renderedTail; } else { @@ -13450,11 +17095,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (renderState.tail !== null) { + // We still have tail rows to render. + // Pop a row. var next = renderState.tail; renderState.rendering = next; renderState.tail = next.sibling; renderState.renderingStartTime = now(); - next.sibling = null; + next.sibling = null; // Restore the context. + // TODO: We can probably just avoid popping it instead and only + // setting it the first time we go from not suspended to suspended. var suspenseContext = suspenseStackCursor.current; if (didSuspendAlready) { @@ -13462,7 +17111,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); } - pushSuspenseContext(workInProgress, suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row. + // Don't bubble properties in this case. return next; } @@ -13483,6 +17133,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _prevState = current.memoizedState; var prevIsHidden = _prevState !== null; if (prevIsHidden !== nextIsHidden && + // LegacyHidden doesn't do any hiding โ€” it only pre-renders. !enableLegacyHidden) { workInProgress.flags |= Visibility; } @@ -13490,13 +17141,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) { bubbleProperties(workInProgress); } else { + // Don't bubble properties for hidden children unless we're rendering + // at offscreen priority. if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { bubbleProperties(workInProgress); - { - if (workInProgress.subtreeFlags & (Placement | Update)) { - workInProgress.flags |= Visibility; - } - } } } return null; @@ -13513,6 +17161,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); } function unwindWork(current, workInProgress, renderLanes) { + // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. popTreeContext(workInProgress); switch (workInProgress.tag) { case ClassComponent: @@ -13539,14 +17191,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resetWorkInProgressVersions(); var _flags = workInProgress.flags; if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { + // There was an error during render that wasn't captured by a suspense + // boundary. Do a second pass on the root to unmount the children. workInProgress.flags = _flags & ~ShouldCapture | DidCapture; return workInProgress; - } + } // We unwound to the root without completing it. Exit. return null; } case HostComponent: { + // TODO: popHydrationState popHostContext(workInProgress); return null; } @@ -13561,7 +17216,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _flags2 = workInProgress.flags; if (_flags2 & ShouldCapture) { - workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; + workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary. if ((workInProgress.mode & ProfileMode) !== NoMode) { transferActualDuration(workInProgress); @@ -13572,7 +17227,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } case SuspenseListComponent: { - popSuspenseContext(workInProgress); + popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been + // caught by a nested boundary. If not, it should bubble through. return null; } @@ -13594,6 +17250,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function unwindInterruptedWork(current, interruptedWork, renderLanes) { + // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. popTreeContext(interruptedWork); switch (interruptedWork.tag) { case ClassComponent: @@ -13639,13 +17299,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var didWarnAboutUndefinedSnapshotBeforeUpdate = null; { didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); - } + } // Used during the commit phase to track the state of the Offscreen component stack. var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; - var nextEffect = null; + var nextEffect = null; // Used for Profiling builds to track updaters. var inProgressLanes = null; var inProgressRoot = null; function reportUncaughtErrorInDEV(error) { + // Wrapping each small part of the commit phase into a guarded + // callback is a bit too slow (https://github.com/facebook/react/pull/21666). + // But we rely on it to surface errors to DEV tools like overlays + // (https://github.com/facebook/react/issues/21712). + // As a compromise, rethrow only caught errors in a guard. { invokeGuardedCallback(null, function () { throw error; @@ -13666,7 +17331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { instance.componentWillUnmount(); } - }; + }; // Capture errors so they don't interrupt mounting. function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { try { @@ -13674,7 +17339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (error) { captureCommitPhaseError(current, nearestMountedAncestor, error); } - } + } // Capture errors so they don't interrupt mounting. function safelyDetachRef(current, nearestMountedAncestor) { var ref = current.ref; @@ -13717,7 +17382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function commitBeforeMutationEffects(root, firstChild) { focusedInstanceHandle = prepareForCommit(root.containerInfo); nextEffect = firstChild; - commitBeforeMutationEffects_begin(); + commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber var shouldFire = shouldFireAfterActiveInstanceBlur; shouldFireAfterActiveInstanceBlur = false; @@ -13726,7 +17391,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function commitBeforeMutationEffects_begin() { while (nextEffect !== null) { - var fiber = nextEffect; + var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur. var child = fiber.child; if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { @@ -13773,7 +17438,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (current !== null) { var prevProps = current.memoizedProps; var prevState = current.memoizedState; - var instance = finishedWork.stateNode; + var instance = finishedWork.stateNode; // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. { if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { @@ -13799,16 +17466,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } case HostRoot: { - { - var root = finishedWork.stateNode; - clearContainer(root.containerInfo); - } break; } case HostComponent: case HostText: case HostPortal: case IncompleteClassComponent: + // Nothing to do for these component types break; default: { @@ -13826,6 +17490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var effect = firstEffect; do { if ((effect.tag & flags) === flags) { + // Unmount var destroy = effect.destroy; effect.destroy = undefined; if (destroy !== undefined) { @@ -13895,6 +17560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function commitPassiveEffectDurations(finishedRoot, finishedWork) { { + // Only Profilers with work in their subtree will have an Update effect scheduled. if ((finishedWork.flags & Update) !== NoFlags) { switch (finishedWork.tag) { case Profiler: @@ -13902,7 +17568,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, - onPostCommit = _finishedWork$memoize.onPostCommit; + onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase. + // It does not get reset until the start of the next commit phase. var commitTime = getCommitTime(); var phase = finishedWork.alternate === null ? "mount" : "update"; @@ -13913,7 +17580,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (typeof onPostCommit === "function") { onPostCommit(id, phase, passiveEffectDuration, commitTime); - } + } // Bubble times to the next nearest ancestor Profiler. + // After we process that Profiler, we'll bubble further up. var parentFiber = finishedWork.return; outer: while (parentFiber !== null) { @@ -13943,6 +17611,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case SimpleMemoComponent: { { + // At this point layout effects have already been destroyed (during mutation phase). + // This is done to prevent sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. if (finishedWork.mode & ProfileMode) { try { startLayoutEffectTimer(); @@ -13962,6 +17634,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (finishedWork.flags & Update) { { if (current === null) { + // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. { if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { if (instance.props !== finishedWork.memoizedProps) { @@ -13984,7 +17659,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } else { var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); - var prevState = current.memoizedState; + var prevState = current.memoizedState; // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. { if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { @@ -14008,7 +17685,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - } + } // TODO: I think this is now always non-null by the time it reaches the + // commit phase. Consider removing the type check. var updateQueue = finishedWork.updateQueue; if (updateQueue !== null) { @@ -14021,7 +17699,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error("Expected %s state to match memoized state before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); } } - } + } // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. commitUpdateQueue(finishedWork, updateQueue, instance); } @@ -14029,6 +17709,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } case HostRoot: { + // TODO: I think this is now always non-null by the time it reaches the + // commit phase. Consider removing the type check. var _updateQueue = finishedWork.updateQueue; if (_updateQueue !== null) { var _instance = null; @@ -14048,20 +17730,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } case HostComponent: { - var _instance2 = finishedWork.stateNode; + var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted + // (eg DOM renderer may schedule auto-focus for inputs and form controls). + // These effects should only be committed when components are first mounted, + // aka when there is no current/alternate. if (current === null && finishedWork.flags & Update) { var type = finishedWork.type; var props = finishedWork.memoizedProps; + commitMount(); } break; } case HostText: { + // We have no life-cycles associated with text. break; } case HostPortal: { + // We have no life-cycles associated with portals. break; } case Profiler: @@ -14084,9 +17772,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { if (typeof onCommit === "function") { onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime); - } + } // Schedule a passive effect for this Profiler to call onPostCommit hooks. + // This effect should be scheduled even if there is no onPostCommit callback for this Profiler, + // because the effect is also where times bubble to parent Profilers. - enqueuePendingPassiveProfilerEffect(finishedWork); + enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor. + // Do not reset these values until the next render so DevTools has a chance to read them first. var parentFiber = finishedWork.return; outer: while (parentFiber !== null) { @@ -14131,63 +17822,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - function hideOrUnhideAllChildren(finishedWork, isHidden) { - var hostSubtreeRoot = null; - { - var node = finishedWork; - while (true) { - if (node.tag === HostComponent) { - if (hostSubtreeRoot === null) { - hostSubtreeRoot = node; - try { - var instance = node.stateNode; - if (isHidden) { - hideInstance(instance); - } else { - unhideInstance(node.stateNode, node.memoizedProps); - } - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } else if (node.tag === HostText) { - if (hostSubtreeRoot === null) { - try { - var _instance3 = node.stateNode; - if (isHidden) { - hideTextInstance(_instance3); - } else { - unhideTextInstance(_instance3, node.memoizedProps); - } - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ;else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - if (node === finishedWork) { - return; - } - while (node.sibling === null) { - if (node.return === null || node.return === finishedWork) { - return; - } - if (hostSubtreeRoot === node) { - hostSubtreeRoot = null; - } - node = node.return; - } - if (hostSubtreeRoot === node) { - hostSubtreeRoot = null; - } - node.sibling.return = node.return; - node = node.sibling; - } - } - } function commitAttachRef(finishedWork) { var ref = finishedWork.ref; if (ref !== null) { @@ -14199,7 +17833,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e break; default: instanceToUse = instance; - } + } // Moved outside to ensure DCE works with this flag if (typeof ref === "function") { var retVal; @@ -14229,6 +17863,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function detachFiberMutation(fiber) { + // Cut off the return pointer to disconnect it from the tree. + // This enables us to detect and warn against state updates on an unmounted component. + // It also prevents events from bubbling from within disconnected components. + // + // Ideally, we should also clear the child pointer of the parent alternate to let this + // get GC:ed but we don't know which for sure which parent is the current + // one so we'll settle for GC:ing the subtree of this child. + // This child itself will be GC:ed when the parent updates the next time. + // + // Note that we can't clear child or sibling pointers yet. + // They're needed for passive effects and for findDOMNode. + // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects). + // + // Don't reset the alternate yet, either. We need that so we can detach the + // alternate's fields in the passive phase. Clearing the return pointer is + // sufficient for findDOMNode semantics. var alternate = fiber.alternate; if (alternate !== null) { alternate.return = null; @@ -14240,186 +17890,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (alternate !== null) { fiber.alternate = null; detachFiberAfterEffects(alternate); - } + } // Note: Defensively using negation instead of < in case + // `deletedTreeCleanUpLevel` is undefined. { + // Clear cyclical Fiber fields. This level alone is designed to roughly + // approximate the planned Fiber refactor. In that world, `setState` will be + // bound to a special "instance" object instead of a Fiber. The Instance + // object will not have any of these fields. It will only be connected to + // the fiber tree via a single link at the root. So if this level alone is + // sufficient to fix memory issues, that bodes well for our plans. fiber.child = null; fiber.deletions = null; - fiber.sibling = null; + fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host + // tree, which has its own pointers to children, parents, and siblings. + // The other host nodes also point back to fibers, so we should detach that + // one, too. if (fiber.tag === HostComponent) { var hostInstance = fiber.stateNode; } - fiber.stateNode = null; + fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We + // already disconnect the `return` pointer at the root of the deleted + // subtree (in `detachFiberMutation`). Besides, `return` by itself is not + // cyclical โ€” it's only cyclical when combined with `child`, `sibling`, and + // `alternate`. But we'll clear it in the next level anyway, just in case. { fiber._debugOwner = null; } { + // Theoretically, nothing in here should be necessary, because we already + // disconnected the fiber from the tree. So even if something leaks this + // particular fiber, it won't leak anything else + // + // The purpose of this branch is to be super aggressive so we can measure + // if there's any difference in memory impact. If there is, that could + // indicate a React leak we don't know about. fiber.return = null; fiber.dependencies = null; fiber.memoizedProps = null; fiber.memoizedState = null; fiber.pendingProps = null; - fiber.stateNode = null; + fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead. fiber.updateQueue = null; } } } - function getHostParentFiber(fiber) { - var parent = fiber.return; - while (parent !== null) { - if (isHostParent(parent)) { - return parent; - } - parent = parent.return; - } - throw new Error("Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); - } - function isHostParent(fiber) { - return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; - } - function getHostSibling(fiber) { - var node = fiber; - siblings: while (true) { - while (node.sibling === null) { - if (node.return === null || isHostParent(node.return)) { - return null; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) { - if (node.flags & Placement) { - continue siblings; - } - - if (node.child === null || node.tag === HostPortal) { - continue siblings; - } else { - node.child.return = node; - node = node.child; - } - } - - if (!(node.flags & Placement)) { - return node.stateNode; - } - } + function emptyPortalContainer(current) { + var portal = current.stateNode; + var containerInfo = portal.containerInfo; + var emptyChildSet = createContainerChildSet(containerInfo); } function commitPlacement(finishedWork) { - var parentFiber = getHostParentFiber(finishedWork); - - switch (parentFiber.tag) { - case HostComponent: - { - var parent = parentFiber.stateNode; - if (parentFiber.flags & ContentReset) { - parentFiber.flags &= ~ContentReset; - } - var before = getHostSibling(finishedWork); - - insertOrAppendPlacementNode(finishedWork, before, parent); - break; - } - case HostRoot: - case HostPortal: - { - var _parent = parentFiber.stateNode.containerInfo; - var _before = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent); - break; - } - - default: - throw new Error("Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); - } - } - function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { - var tag = node.tag; - var isHost = tag === HostComponent || tag === HostText; - if (isHost) { - var stateNode = node.stateNode; - if (before) { - insertInContainerBefore(parent); - } else { - appendChildToContainer(parent, stateNode); - } - } else if (tag === HostPortal) ;else { - var child = node.child; - if (child !== null) { - insertOrAppendPlacementNodeIntoContainer(child, before, parent); - var sibling = child.sibling; - while (sibling !== null) { - insertOrAppendPlacementNodeIntoContainer(sibling, before, parent); - sibling = sibling.sibling; - } - } - } - } - function insertOrAppendPlacementNode(node, before, parent) { - var tag = node.tag; - var isHost = tag === HostComponent || tag === HostText; - if (isHost) { - var stateNode = node.stateNode; - if (before) { - insertBefore(parent, stateNode, before); - } else { - appendChild(parent, stateNode); - } - } else if (tag === HostPortal) ;else { - var child = node.child; - if (child !== null) { - insertOrAppendPlacementNode(child, before, parent); - var sibling = child.sibling; - while (sibling !== null) { - insertOrAppendPlacementNode(sibling, before, parent); - sibling = sibling.sibling; - } - } - } + { + return; + } // Recursively insert all host nodes into the parent. } - var hostParent = null; - var hostParentIsContainer = false; function commitDeletionEffects(root, returnFiber, deletedFiber) { { - var parent = returnFiber; - findParent: while (parent !== null) { - switch (parent.tag) { - case HostComponent: - { - hostParent = parent.stateNode; - hostParentIsContainer = false; - break findParent; - } - case HostRoot: - { - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = true; - break findParent; - } - case HostPortal: - { - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = true; - break findParent; - } - } - parent = parent.return; - } - if (hostParent === null) { - throw new Error("Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); - } + // Detach refs and call componentWillUnmount() on the whole subtree. commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); - hostParent = null; - hostParentIsContainer = false; } detachFiberMutation(deletedFiber); } function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + // TODO: Use a static flag to skip trees that don't have unmount effects var child = parent.child; while (child !== null) { commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); @@ -14427,59 +17965,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { - onCommitUnmount(deletedFiber); + onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse + // into their subtree. There are simpler cases in the inner switch + // that don't modify the stack. switch (deletedFiber.tag) { case HostComponent: { { safelyDetachRef(deletedFiber, nearestMountedAncestor); - } + } // Intentional fallthrough to next branch } + // eslint-disable-next-line-no-fallthrough case HostText: { + // We only need to remove the nearest host child. Set the host parent + // to `null` on the stack to indicate that nested children don't + // need to be removed. { - var prevHostParent = hostParent; - var prevHostParentIsContainer = hostParentIsContainer; - hostParent = null; recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - hostParent = prevHostParent; - hostParentIsContainer = prevHostParentIsContainer; - if (hostParent !== null) { - if (hostParentIsContainer) { - removeChildFromContainer(hostParent, deletedFiber.stateNode); - } else { - removeChild(hostParent, deletedFiber.stateNode); - } - } } return; } case DehydratedFragment: { - - { - if (hostParent !== null) { - if (hostParentIsContainer) { - clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode); - } else { - clearSuspenseBoundary(hostParent, deletedFiber.stateNode); - } - } - } return; } case HostPortal: { { - var _prevHostParent = hostParent; - var _prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode.containerInfo; - hostParentIsContainer = true; + emptyPortalContainer(deletedFiber); recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - hostParent = _prevHostParent; - hostParentIsContainer = _prevHostParentIsContainer; } return; } @@ -14552,9 +18069,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function commitSuspenseCallback(finishedWork) { + // TODO: Move this to passive phase var newState = finishedWork.memoizedState; } function attachSuspenseRetryListeners(finishedWork) { + // If this boundary just timed out, then it will have a set of wakeables. + // For each wakeable, attach a listener so that when it resolves, React + // attempts to re-render the boundary in the primary (pre-timeout) state. var wakeables = finishedWork.updateQueue; if (wakeables !== null) { finishedWork.updateQueue = null; @@ -14563,12 +18084,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e retryCache = finishedWork.stateNode = new PossiblyWeakSet(); } wakeables.forEach(function (wakeable) { + // Memoize using the boundary fiber to prevent redundant listeners. var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); if (!retryCache.has(wakeable)) { retryCache.add(wakeable); { if (isDevToolsPresent) { if (inProgressLanes !== null && inProgressRoot !== null) { + // If we have pending work still, associate the original updaters with it. restorePendingUpdaters(inProgressRoot, inProgressLanes); } else { throw Error("Expected finished root and lanes to be set. This is a bug in React."); @@ -14579,7 +18102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); } - } + } // This function detects when a Suspense boundary goes from visible to hidden. function commitMutationEffects(root, finishedWork, committedLanes) { inProgressLanes = committedLanes; inProgressRoot = root; @@ -14590,6 +18113,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e inProgressRoot = null; } function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { + // Deletions effects can be scheduled on any fiber type. They need to happen + // before the children effects hae fired. var deletions = parentFiber.deletions; if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { @@ -14614,7 +18139,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function commitMutationEffectsOnFiber(finishedWork, root, lanes) { var current = finishedWork.alternate; - var flags = finishedWork.flags; + var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber, + // because the fiber tag is more specific. An exception is any flag related + // to reconcilation, because those can be set on all fiber types. switch (finishedWork.tag) { case FunctionComponent: @@ -14630,7 +18157,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e commitHookEffectListMount(Insertion | HasEffect, finishedWork); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + } // Layout effects are destroyed during the mutation phase so that all + // destroy functions for all fibers are called before any create functions. + // This prevents sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. if (finishedWork.mode & ProfileMode) { try { @@ -14670,52 +18201,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e safelyDetachRef(current, current.return); } } - { - if (finishedWork.flags & ContentReset) { - var instance = finishedWork.stateNode; - try { - resetTextContent(instance); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - if (flags & Update) { - var _instance4 = finishedWork.stateNode; - if (_instance4 != null) { - var newProps = finishedWork.memoizedProps; - - var oldProps = current !== null ? current.memoizedProps : newProps; - var type = finishedWork.type; - - var updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - if (updatePayload !== null) { - try { - commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } - } - } return; } case HostText: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case HostRoot: { recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); if (flags & Update) { { - if (finishedWork.stateNode === null) { - throw new Error("This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); - } - var textInstance = finishedWork.stateNode; - var newText = finishedWork.memoizedProps; - - var oldText = current !== null ? current.memoizedProps : newText; + var containerInfo = root.containerInfo; + var pendingChildren = root.pendingChildren; try { - commitTextUpdate(textInstance, oldText, newText); + replaceContainerChildren(containerInfo, pendingChildren); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } @@ -14723,16 +18226,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return; } - case HostRoot: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - return; - } case HostPortal: { recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + var portal = finishedWork.stateNode; + var _containerInfo = portal.containerInfo; + var _pendingChildren = portal.pendingChildren; + try { + replaceContainerChildren(_containerInfo, _pendingChildren); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } return; } case SuspenseComponent: @@ -14741,11 +18250,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e commitReconciliationEffects(finishedWork); var offscreenFiber = finishedWork.child; if (offscreenFiber.flags & Visibility) { + var offscreenInstance = offscreenFiber.stateNode; var newState = offscreenFiber.memoizedState; - var isHidden = newState !== null; + var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can + // read it during an event + + offscreenInstance.isHidden = isHidden; if (isHidden) { var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; if (!wasHidden) { + // TODO: Move to passive phase markCommitTimeOfFallback(); } } @@ -14768,12 +18282,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } commitReconciliationEffects(finishedWork); if (flags & Visibility) { + var _offscreenInstance = finishedWork.stateNode; var _newState = finishedWork.memoizedState; var _isHidden = _newState !== null; - var offscreenBoundary = finishedWork; - { - hideOrUnhideAllChildren(offscreenBoundary, _isHidden); - } + // read it during an event + + _offscreenInstance.isHidden = _isHidden; } return; } @@ -14799,13 +18313,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function commitReconciliationEffects(finishedWork) { + // Placement effects (insertions, reorders) can be scheduled on any fiber + // type. They needs to happen after the children effects have fired, but + // before the effects on this fiber have fired. var flags = finishedWork.flags; if (flags & Placement) { try { commitPlacement(finishedWork); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + } // Clear the "placement" from effect tag so that we know that this is + // inserted, before any life-cycles like componentDidMount gets called. + // TODO: findDOMNode doesn't rely on this any more but isMounted does + // and isMounted is deprecated anyway so we should be able to kill this. finishedWork.flags &= ~Placement; } @@ -14822,6 +18342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e inProgressRoot = null; } function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { + // Suspense layout effects semantics don't change for legacy roots. var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; while (nextEffect !== null) { var fiber = nextEffect; @@ -14938,6 +18459,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); } { + // A fiber was deleted from this parent fiber, but it's still part of + // the previous (alternate) parent fiber's list of children. Because + // children are a linked list, an earlier sibling that's still alive + // will be connected to the deleted fiber via its `alternate`: + // + // live fiber + // --alternate--> previous live fiber + // --sibling--> deleted fiber + // + // We can't disconnect `alternate` on nodes that haven't been deleted + // yet, but we can disconnect the `sibling` and `child` pointers. var previousFiber = fiber.alternate; if (previousFiber !== null) { var detachedChild = previousFiber.child; @@ -14998,12 +18530,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { while (nextEffect !== null) { - var fiber = nextEffect; + var fiber = nextEffect; // Deletion effects fire in parent -> child order + // TODO: Check if fiber has a PassiveStatic flag setCurrentFiber(fiber); commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); resetCurrentFiber(); - var child = fiber.child; + var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we + // do this, still need to handle `deletedTreeCleanUpLevel` correctly.) if (child !== null) { child.return = fiber; @@ -15019,6 +18553,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var sibling = fiber.sibling; var returnFiber = fiber.return; { + // Recursively traverse the entire deleted tree and clean up fiber fields. + // This is more aggressive than ideal, and the long term goal is to only + // have to detach the deleted tree at the root. detachFiberAfterEffects(fiber); if (fiber === deletedSubtreeRoot) { nextEffect = null; @@ -15049,7 +18586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e break; } } - } + } // TODO: Reuse reappearLayoutEffects traversal here? var COMPONENT_TYPE = 0; var HAS_PSEUDO_CLASS_TYPE = 1; @@ -15067,18 +18604,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; function isLegacyActEnvironment(fiber) { { + // Legacy mode. We preserve the behavior of React 17's act. It assumes an + // act environment whenever `jest` is defined, but you can still turn off + // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly + // to false. var isReactActEnvironmentGlobal = - typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; - - var jestIsDefined = typeof jest !== "undefined"; - return jestIsDefined && isReactActEnvironmentGlobal !== false; + // $FlowExpectedError โ€“ Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest + return warnsIfNotActing; } } function isConcurrentActEnvironment() { { var isReactActEnvironmentGlobal = + // $FlowExpectedError โ€“ Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { + // TODO: Include link to relevant documentation page. error("The current testing environment is not configured to support " + "act(...)"); } return isReactActEnvironmentGlobal; @@ -15089,13 +18631,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; - var NoContext = + var NoContext = /* */ 0; - var BatchedContext = + var BatchedContext = /* */ 1; - var RenderContext = + var RenderContext = /* */ 2; - var CommitContext = + var CommitContext = /* */ 4; var RootInProgress = 0; var RootFatalErrored = 1; @@ -15103,39 +18645,54 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var RootSuspended = 3; var RootSuspendedWithDelay = 4; var RootCompleted = 5; - var RootDidNotComplete = 6; + var RootDidNotComplete = 6; // Describes where we are in the React execution stack - var executionContext = NoContext; + var executionContext = NoContext; // The root we're working on - var workInProgressRoot = null; + var workInProgressRoot = null; // The fiber we're working on - var workInProgress = null; + var workInProgress = null; // The lanes we're rendering - var workInProgressRootRenderLanes = NoLanes; + var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree + // This is a superset of the lanes we started working on at the root. The only + // case where it's different from `workInProgressRootRenderLanes` is when we + // enter a subtree that is hidden and needs to be unhidden: Suspense and + // Offscreen component. + // + // Most things in the work loop should deal with workInProgressRootRenderLanes. + // Most things in begin/complete phases should deal with subtreeRenderLanes. var subtreeRenderLanes = NoLanes; - var subtreeRenderLanesCursor = createCursor(NoLanes); + var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc. - var workInProgressRootExitStatus = RootInProgress; + var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown - var workInProgressRootFatalError = null; + var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's + // slightly different than `renderLanes` because `renderLanes` can change as you + // enter and exit an Offscreen tree. This value is the combination of all render + // lanes for the entire render phase. - var workInProgressRootIncludedLanes = NoLanes; + var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only + // includes unprocessed updates, not work in bailed out children. - var workInProgressRootSkippedLanes = NoLanes; + var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render. - var workInProgressRootInterleavedUpdatedLanes = NoLanes; + var workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event). - var workInProgressRootPingedLanes = NoLanes; + var workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase. - var workInProgressRootConcurrentErrors = null; + var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI. + // We will log them once the tree commits. - var workInProgressRootRecoverableErrors = null; + var workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train + // model where we don't commit new loading states in too quick succession. var globalMostRecentFallbackTime = 0; - var FALLBACK_THROTTLE_MS = 500; + var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering + // more and prefer CPU suspense heuristics instead. - var workInProgressRootRenderTargetTime = Infinity; + var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU + // suspense heuristics and opt out of rendering more content. var RENDER_TIMEOUT_MS = 500; var workInProgressTransitions = null; @@ -15147,12 +18704,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var hasUncaughtError = false; var firstUncaughtError = null; - var legacyErrorBoundariesThatAlreadyFailed = null; + var legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true; var rootDoesHavePassiveEffects = false; var rootWithPendingPassiveEffects = null; var pendingPassiveEffectsLanes = NoLanes; var pendingPassiveProfilerEffects = []; - var pendingPassiveTransitions = null; + var pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates var NESTED_UPDATE_LIMIT = 50; var nestedUpdateCount = 0; @@ -15161,7 +18718,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var didScheduleUpdateDuringPassiveEffects = false; var NESTED_PASSIVE_UPDATE_LIMIT = 50; var nestedPassiveUpdateCount = 0; - var rootWithPassiveNestedUpdates = null; + var rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their + // event times as simultaneous, even if the actual clock time has advanced + // between the first and second call. var currentEventTime = NoTimestamp; var currentEventTransitionLane = NoLanes; @@ -15171,21 +18730,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + // We're inside React, so it's fine to read the actual time. return now(); - } + } // We're not inside React, so we may be in the middle of a browser event. if (currentEventTime !== NoTimestamp) { + // Use the same start time for all updates until we enter React again. return currentEventTime; - } + } // This is the first update since React yielded. Compute a new start time. currentEventTime = now(); return currentEventTime; } function requestUpdateLane(fiber) { + // Special cases var mode = fiber.mode; if ((mode & ConcurrentMode) === NoMode) { return SyncLane; } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { + // This is a render phase update. These are not officially supported. The + // old behavior is to give this the same "thread" (lanes) as + // whatever is currently rendering. So if you call `setState` on a component + // that happens later in the same render, it will flush. Ideally, we want to + // remove the special case and treat them as if they came from an + // interleaved event. Regardless, this pattern is not officially supported. + // This behavior is only a fallback. The flag only exists until we can roll + // out the setState warning, since existing code might accidentally rely on + // the current behavior. return pickArbitraryLane(workInProgressRootRenderLanes); } var isTransition = requestCurrentTransition() !== NoTransition; @@ -15196,50 +18767,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e transition._updatedFibers = new Set(); } transition._updatedFibers.add(fiber); - } + } // The algorithm for assigning an update to a lane should be stable for all + // updates at the same priority within the same event. To do this, the + // inputs to the algorithm must be the same. + // + // The trick we use is to cache the first of each of these inputs within an + // event. Then reset the cached values once we can be sure the event is + // over. Our heuristic for that is whenever we enter a concurrent work loop. if (currentEventTransitionLane === NoLane) { + // All transitions within the same event are assigned the same lane. currentEventTransitionLane = claimNextTransitionLane(); } return currentEventTransitionLane; - } + } // Updates originating inside certain React methods, like flushSync, have + // their priority set by tracking it with a context variable. + // + // The opaque type returned by the host config is internally a lane, so we can + // use that directly. + // TODO: Move this type conversion to the event priority module. var updateLane = getCurrentUpdatePriority(); if (updateLane !== NoLane) { return updateLane; - } + } // This update originated outside React. Ask the host environment for an + // appropriate priority, based on the type of event. + // + // The opaque type returned by the host config is internally a lane, so we can + // use that directly. + // TODO: Move this type conversion to the event priority module. var eventLane = getCurrentEventPriority(); return eventLane; } function requestRetryLane(fiber) { + // This is a fork of `requestUpdateLane` designed specifically for Suspense + // "retries" โ€” a special update that attempts to flip a Suspense boundary + // from its placeholder state to its primary/resolved state. + // Special cases var mode = fiber.mode; if ((mode & ConcurrentMode) === NoMode) { return SyncLane; } return claimNextRetryLane(); } - function scheduleUpdateOnFiber(fiber, lane, eventTime) { + function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { checkForNestedUpdates(); { if (isRunningInsertionEffect) { error("useInsertionEffect must not schedule updates."); } } - var root = markUpdateLaneFromFiberToRoot(fiber, lane); - if (root === null) { - return null; - } { if (isFlushingPassiveEffects) { didScheduleUpdateDuringPassiveEffects = true; } - } + } // Mark that the root has a pending update. markRootUpdated(root, lane, eventTime); if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { - warnAboutRenderPhaseUpdatesInDEV(fiber); + // This update was dispatched during the render phase. This is a mistake + // if the update originates from user space (with the exception of local + // hook updates, which are handled differently and don't reach this + // function), but there are some internal React features that use this as + // an implementation detail, like selective hydration. + warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase } else { + // This is a normal update, scheduled from outside the render phase. For + // example, during an input event. { if (isDevToolsPresent) { addFiberToLanesMap(root, fiber, lane); @@ -15247,101 +18842,97 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } warnIfUpdatesNotWrappedWithActDEV(fiber); if (root === workInProgressRoot) { + // Received an update to a tree that's in the middle of rendering. Mark + // that there was an interleaved update work on this root. Unless the + // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render + // phase update. In that case, we don't treat render phase updates as if + // they were interleaved, for backwards compat reasons. if ((executionContext & RenderContext) === NoContext) { workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); } if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + // The root already suspended with a delay, which means this render + // definitely won't finish. Since we have a new update, let's mark it as + // suspended now, right before marking the incoming update. This has the + // effect of interrupting the current render and switching to the update. + // TODO: Make sure this doesn't override pings that happen while we've + // already started rendering. markRootSuspended$1(root, workInProgressRootRenderLanes); } } ensureRootIsScheduled(root, eventTime); if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && + // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. !ReactCurrentActQueue$1.isBatchingLegacy) { + // Flush the synchronous work now, unless we're already working or inside + // a batch. This is intentionally inside scheduleUpdateOnFiber instead of + // scheduleCallbackForFiber to preserve the ability to schedule a callback + // without immediately flushing it. We only do this for user-initiated + // updates, to preserve historical behavior of legacy mode. resetRenderTimer(); flushSyncCallbacksOnlyInLegacyMode(); } } - return root; - } - - function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { - sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); - var alternate = sourceFiber.alternate; - if (alternate !== null) { - alternate.lanes = mergeLanes(alternate.lanes, lane); - } - { - if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { - warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); - } - } - - var node = sourceFiber; - var parent = sourceFiber.return; - while (parent !== null) { - parent.childLanes = mergeLanes(parent.childLanes, lane); - alternate = parent.alternate; - if (alternate !== null) { - alternate.childLanes = mergeLanes(alternate.childLanes, lane); - } else { - { - if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { - warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); - } - } - } - node = parent; - parent = parent.return; - } - if (node.tag === HostRoot) { - var root = node.stateNode; - return root; - } else { - return null; - } } - function isInterleavedUpdate(fiber, lane) { + function isUnsafeClassRenderPhaseUpdate(fiber) { + // Check if this is a render phase update. Only called by class components, + // which special (deprecated) behavior for UNSAFE_componentWillReceive props. return ( - (workInProgressRoot !== null || - hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && - (executionContext & RenderContext) === NoContext + // TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We + // decided not to enable it. + (executionContext & RenderContext) !== NoContext ); - } + } // Use this function to schedule a task for a root. There's only one task per + // root; if a task was already scheduled, we'll check to make sure the priority + // of the existing task is the same as the priority of the next level that the + // root has work on. This function is called on every update, and right before + // exiting a task. function ensureRootIsScheduled(root, currentTime) { - var existingCallbackNode = root.callbackNode; + var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as + // expired so we know to work on those next. - markStarvedLanesAsExpired(root, currentTime); + markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority. var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); if (nextLanes === NoLanes) { + // Special case: There's nothing to work on. if (existingCallbackNode !== null) { cancelCallback$1(existingCallbackNode); } root.callbackNode = null; root.callbackPriority = NoLane; return; - } + } // We use the highest priority lane to represent the priority of the callback. - var newCallbackPriority = getHighestPriorityLane(nextLanes); + var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it. var existingCallbackPriority = root.callbackPriority; if (existingCallbackPriority === newCallbackPriority && + // Special case related to `act`. If the currently scheduled task is a + // Scheduler task, rather than an `act` task, cancel it and re-scheduled + // on the `act` queue. !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { { + // If we're going to re-use an existing task, it needs to exist. + // Assume that discrete update microtasks are non-cancellable and null. + // TODO: Temporary until we confirm this warning is not fired. if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); } - } + } // The priority hasn't changed. We can reuse the existing task. Exit. return; } if (existingCallbackNode != null) { + // Cancel the existing callback. We'll schedule a new one below. cancelCallback$1(existingCallbackNode); - } + } // Schedule a new callback. var newCallbackNode; if (newCallbackPriority === SyncLane) { + // Special case: Sync React callbacks are scheduled on a special + // internal queue if (root.tag === LegacyRoot) { if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; @@ -15351,6 +18942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); } { + // Flush the queue in an Immediate task. scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); } newCallbackNode = null; @@ -15377,36 +18969,55 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } root.callbackPriority = newCallbackPriority; root.callbackNode = newCallbackNode; - } + } // This is the entry point for every concurrent task, i.e. anything that + // goes through Scheduler. function performConcurrentWorkOnRoot(root, didTimeout) { { resetNestedUpdateFlag(); - } + } // Since we know we're in a React event, we can clear the current + // event time. The next update will compute a new event time. currentEventTime = NoTimestamp; currentEventTransitionLane = NoLanes; if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { throw new Error("Should not already be working."); - } + } // Flush any pending passive effects before deciding which lanes to work on, + // in case they schedule additional work. var originalCallbackNode = root.callbackNode; var didFlushPassiveEffects = flushPassiveEffects(); if (didFlushPassiveEffects) { + // Something in the passive effect phase may have canceled the current task. + // Check if the task node for this root was changed. if (root.callbackNode !== originalCallbackNode) { + // The current task was canceled. Exit. We don't need to call + // `ensureRootIsScheduled` because the check above implies either that + // there's a new task, or that there's no remaining work on this root. return null; } - } + } // Determine the next lanes to work on, using the fields stored + // on the root. var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); if (lanes === NoLanes) { + // Defensive coding. This is never expected to happen. return null; - } + } // We disable time-slicing in some cases: if the work has been CPU-bound + // for too long ("expired" work, to prevent starvation), or we're in + // sync-updates-by-default mode. + // TODO: We only check `didTimeout` defensively, to account for a Scheduler + // bug we're still investigating. Once the bug in Scheduler is fixed, + // we can remove this, since we track expiration ourselves. var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); if (exitStatus !== RootInProgress) { if (exitStatus === RootErrored) { + // If something threw an error, try rendering one more time. We'll + // render synchronously to block concurrent data mutations, and we'll + // includes all pending updates are included. If it still fails after + // the second attempt, we'll give up and commit the resulting tree. var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); if (errorRetryLanes !== NoLanes) { lanes = errorRetryLanes; @@ -15421,18 +19032,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw fatalError; } if (exitStatus === RootDidNotComplete) { + // The render unwound without completing the tree. This happens in special + // cases where need to exit the current render without producing a + // consistent tree or committing. + // + // This should only happen during a concurrent render, not a discrete or + // synchronous update. We should have already checked for this when we + // unwound the stack. markRootSuspended$1(root, lanes); } else { + // The render completed. + // Check if this render may have yielded to a concurrent event, and if so, + // confirm that any newly rendered stores are consistent. + // TODO: It's possible that even a concurrent render may never have yielded + // to the main thread, if it was fast enough, or if it expired. We could + // skip the consistency check in that case, too. var renderWasConcurrent = !includesBlockingLane(root, lanes); var finishedWork = root.current.alternate; if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { - exitStatus = renderRootSync(root, lanes); + // A store was mutated in an interleaved event. Render again, + // synchronously, to block further mutations. + exitStatus = renderRootSync(root, lanes); // We need to check again if something threw if (exitStatus === RootErrored) { var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); if (_errorRetryLanes !== NoLanes) { lanes = _errorRetryLanes; - exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); + exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any + // concurrent events. } } @@ -15443,7 +19070,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ensureRootIsScheduled(root, now()); throw _fatalError; } - } + } // We now have a consistent tree. The next step is either to commit it, + // or, if something suspended, wait to commit it after a timeout. root.finishedWork = finishedWork; root.finishedLanes = lanes; @@ -15452,13 +19080,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } ensureRootIsScheduled(root, now()); if (root.callbackNode === originalCallbackNode) { + // The task node scheduled for this root is the same one that's + // currently executed. Need to return a continuation. return performConcurrentWorkOnRoot.bind(null, root); } return null; } function recoverFromConcurrentError(root, errorRetryLanes) { + // If an error occurred during hydration, discard server response and fall + // back to client side render. + // Before rendering again, save the errors from the previous attempt. var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; if (isRootDehydrated(root)) { + // The shell failed to hydrate. Set a flag to force a client rendering + // during the next attempt. To do this, we call prepareFreshStack now + // to create the root work-in-progress fiber. This is a bit weird in terms + // of factoring, because it relies on renderRootSync not calling + // prepareFreshStack again in the call below, which happens because the + // root and lanes haven't changed. + // + // TODO: I think what we should do is set ForceClientRender inside + // throwException, like we do for nested Suspense boundaries. The reason + // it's here instead is so we can switch to the synchronous work loop, too. + // Something to consider for a future refactor. var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); rootWorkInProgress.flags |= ForceClientRender; { @@ -15467,8 +19111,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var exitStatus = renderRootSync(root, errorRetryLanes); if (exitStatus !== RootErrored) { + // Successfully finished rendering on retry + // The errors from the failed first attempt have been recovered. Add + // them to the collection of recoverable errors. We'll log them in the + // commit phase. var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorsFromFirstAttempt; + workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors + // from the first attempt, to preserve the causal sequence. if (errorsFromSecondAttempt !== null) { queueRecoverableErrors(errorsFromSecondAttempt); @@ -15490,36 +19139,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { throw new Error("Root did not complete. This is a bug in React."); } + // Flow knows about invariant, so it complains if I add a break + // statement, but eslint doesn't know about invariant, so it complains + // if I do. eslint-disable-next-line no-fallthrough case RootErrored: { + // We should have already attempted to retry this tree. If we reached + // this point, it errored again. Commit it. commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); break; } case RootSuspended: { - markRootSuspended$1(root, lanes); + markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + // should immediately commit it or wait a bit. if (includesOnlyRetries(lanes) && + // do not delay if we're inside an act() scope !shouldForceFlushFallbacksInDEV()) { - var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); + // This render only included retries, no updates. Throttle committing + // retries so that we don't show too many loading states too quickly. + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root, NoLanes); if (nextLanes !== NoLanes) { + // There's additional work on this root. break; } var suspendedLanes = root.suspendedLanes; if (!isSubsetOfLanes(suspendedLanes, lanes)) { + // We should prefer to render the fallback of at the last + // suspended level. Ping the last suspended level to try + // rendering it again. + // FIXME: What if the suspended lanes are Idle? Should not restart. var eventTime = requestEventTime(); markRootPinged(root, suspendedLanes); break; - } + } // The render is suspended, it hasn't timed out, and there's no + // lower priority work to do. Instead of committing the fallback + // immediately, wait for more data to arrive. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); break; } - } + } // The work expired. Commit immediately. commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); break; @@ -15528,25 +19193,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { markRootSuspended$1(root, lanes); if (includesOnlyTransitions(lanes)) { + // This is a transition, so we should exit without committing a + // placeholder and without scheduling a timeout. Delay indefinitely + // until we receive more data. break; } if (!shouldForceFlushFallbacksInDEV()) { + // This is not a transition, but we did trigger an avoided state. + // Schedule a placeholder to display after a short delay, using the Just + // Noticeable Difference. + // TODO: Is the JND optimization worth the added complexity? If this is + // the only reason we track the event time, then probably not. + // Consider removing. var mostRecentEventTime = getMostRecentEventTime(root, lanes); var eventTimeMs = mostRecentEventTime; var timeElapsedMs = now() - eventTimeMs; - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. if (_msUntilTimeout > 10) { + // Instead of committing the fallback immediately, wait for more data + // to arrive. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); break; } - } + } // Commit the placeholder. commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); break; } case RootCompleted: { + // The work completed. Ready to commit. commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); break; } @@ -15557,6 +19234,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function isRenderConsistentWithExternalStores(finishedWork) { + // Search the rendered tree for external store reads, and check whether the + // stores were mutated in a concurrent event. Intentionally using an iterative + // loop instead of recursion so we can exit early. var node = finishedWork; while (true) { if (node.flags & StoreConsistency) { @@ -15570,9 +19250,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var renderedValue = check.value; try { if (!objectIs(getSnapshot(), renderedValue)) { + // Found an inconsistent store. return false; } } catch (error) { + // If `getSnapshot` throws, return `false`. This will schedule + // a re-render, and the error will be rethrown during render. return false; } } @@ -15596,15 +19279,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } node.sibling.return = node.return; node = node.sibling; - } + } // Flow doesn't know this is unreachable, but eslint does + // eslint-disable-next-line no-unreachable return true; } function markRootSuspended$1(root, suspendedLanes) { + // When suspending, we should always exclude lanes that were pinged or (more + // rarely, since we try to avoid it) updated during the render phase. + // TODO: Lol maybe there's a better way to factor this besides this + // obnoxiously named function :) suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); markRootSuspended(root, suspendedLanes); - } + } // This is the entry point for synchronous tasks that don't go + // through Scheduler function performSyncWorkOnRoot(root) { { @@ -15616,11 +19305,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); if (!includesSomeLane(lanes, SyncLane)) { + // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; } var exitStatus = renderRootSync(root, lanes); if (root.tag !== LegacyRoot && exitStatus === RootErrored) { + // If something threw an error, try rendering one more time. We'll render + // synchronously to block concurrent data mutations, and we'll includes + // all pending updates are included. If it still fails after the second + // attempt, we'll give up and commit the resulting tree. var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); if (errorRetryLanes !== NoLanes) { lanes = errorRetryLanes; @@ -15636,12 +19330,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (exitStatus === RootDidNotComplete) { throw new Error("Root did not complete. This is a bug in React."); - } + } // We now have a consistent tree. Because this is a sync render, we + // will commit it even if something suspended. var finishedWork = root.current.alternate; root.finishedWork = finishedWork; root.finishedLanes = lanes; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next + // pending level. ensureRootIsScheduled(root, now()); return null; @@ -15652,17 +19348,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { return fn(a); } finally { - executionContext = prevExecutionContext; + executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer + // most batchedUpdates-like method. if (executionContext === NoContext && + // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. !ReactCurrentActQueue$1.isBatchingLegacy) { resetRenderTimer(); flushSyncCallbacksOnlyInLegacyMode(); } } } + // Warning, this opts-out of checking the function body. + // eslint-disable-next-line no-redeclare function flushSync(fn) { + // In legacy mode, we flush pending passive effects at the beginning of the + // next event, not at the end of the previous one. if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { flushPassiveEffects(); } @@ -15681,7 +19383,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } finally { setCurrentUpdatePriority(previousPriority); ReactCurrentBatchConfig$2.transition = prevTransition; - executionContext = prevExecutionContext; + executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. + // Note that this will happen even if batchedUpdates is higher up + // the stack. if ((executionContext & (RenderContext | CommitContext)) === NoContext) { flushSyncCallbacks(); @@ -15702,7 +19406,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e root.finishedLanes = NoLanes; var timeoutHandle = root.timeoutHandle; if (timeoutHandle !== noTimeout) { - root.timeoutHandle = noTimeout; + // The root previous suspended and scheduled a timeout to commit a fallback + // state. Now that we have additional work, cancel the timeout. + root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above cancelTimeout(timeoutHandle); } @@ -15725,7 +19431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgressRootPingedLanes = NoLanes; workInProgressRootConcurrentErrors = null; workInProgressRootRecoverableErrors = null; - enqueueInterleavedUpdates(); + finishQueueingConcurrentUpdates(); { ReactStrictModeWarnings.discardPendingWarnings(); } @@ -15735,19 +19441,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e do { var erroredWork = workInProgress; try { + // Reset module-level state that was set during the render phase. resetContextDependencies(); resetHooksAfterThrow(); - resetCurrentFiber(); + resetCurrentFiber(); // TODO: I found and added this missing line while investigating a + // separate issue. Write a regression test using string refs. ReactCurrentOwner$2.current = null; if (erroredWork === null || erroredWork.return === null) { + // Expected to be working on a non-root fiber. This is a fatal error + // because there's no ancestor that can handle it; the root is + // supposed to capture all errors that weren't caught by an error + // boundary. workInProgressRootExitStatus = RootFatalErrored; - workInProgressRootFatalError = thrownValue; + workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next + // sibling, or the parent if there are no siblings. But since the root + // has no siblings nor a parent, we set it to null. Usually this is + // handled by `completeUnitOfWork` or `unwindWork`, but since we're + // intentionally not calling those, we need set it here. + // TODO: Consider calling `unwindWork` to pop the contexts. workInProgress = null; return; } if (enableProfilerTimer && erroredWork.mode & ProfileMode) { + // Record the time spent rendering before an error was thrown. This + // avoids inaccurate Profiler durations in the case of a + // suspended render. stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); } if (enableSchedulingProfiler) { @@ -15762,15 +19482,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); completeUnitOfWork(erroredWork); } catch (yetAnotherThrownValue) { + // Something in the return path also threw. thrownValue = yetAnotherThrownValue; if (workInProgress === erroredWork && erroredWork !== null) { + // If this boundary has already errored, then we had trouble processing + // the error. Bubble it to the next boundary. erroredWork = erroredWork.return; workInProgress = erroredWork; } else { erroredWork = workInProgress; } continue; - } + } // Return to the normal work loop. return; } while (true); @@ -15779,6 +19502,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var prevDispatcher = ReactCurrentDispatcher$2.current; ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; if (prevDispatcher === null) { + // The React isomorphic package does not include a default dispatcher. + // Instead the first renderer will lazily attach one, in order to give + // nicer error messages. return ContextOnlyDispatcher; } else { return prevDispatcher; @@ -15801,9 +19527,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function renderDidSuspendDelayIfPossible() { if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { workInProgressRootExitStatus = RootSuspendedWithDelay; - } + } // Check if there are updates that we skipped tree that might have unblocked + // this render. if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { + // Mark the current render as suspended so that we switch to working on + // the updates that were skipped. Usually we only suspend at the end of + // the render phase. + // TODO: We should probably always mark the root as suspended immediately + // (inside this function), since by suspending at the end of the render + // phase introduces a potential mistake where we suspend lanes that were + // pinged or updated while we were rendering. markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); } } @@ -15816,15 +19550,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { workInProgressRootConcurrentErrors.push(error); } - } + } // Called during render to determine if anything has suspended. + // Returns false if we're not sure. function renderHasNotSuspendedYet() { + // If something errored or completed, we can't really be sure, + // so those are false. return workInProgressRootExitStatus === RootInProgress; } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(); + var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { { @@ -15833,7 +19571,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (memoizedUpdaters.size > 0) { restorePendingUpdaters(root, workInProgressRootRenderLanes); memoizedUpdaters.clear(); - } + } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set. + // If we bailout on this work, we'll move them back (like above). + // It's important to move them now in case the work spawns more work at the same priority with different updaters. + // That way we can keep the current update and future updates separate. movePendingFibersToMemoized(root, lanes); } @@ -15853,14 +19594,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e executionContext = prevExecutionContext; popDispatcher(prevDispatcher); if (workInProgress !== null) { + // This is a sync render, so we should have finished the whole tree. throw new Error("Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); } workInProgressRoot = null; workInProgressRootRenderLanes = NoLanes; return workInProgressRootExitStatus; - } + } // The work loop is an extremely hot path. Tell Closure not to inline it. + + /** @noinline */ function workLoopSync() { + // Already timed out, so perform work without checking if we need to yield. while (workInProgress !== null) { performUnitOfWork(workInProgress); } @@ -15868,7 +19613,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function renderRootConcurrent(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(); + var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { { @@ -15877,7 +19623,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (memoizedUpdaters.size > 0) { restorePendingUpdaters(root, workInProgressRootRenderLanes); memoizedUpdaters.clear(); - } + } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set. + // If we bailout on this work, we'll move them back (like above). + // It's important to move them now in case the work spawns more work at the same priority with different updaters. + // That way we can keep the current update and future updates separate. movePendingFibersToMemoized(root, lanes); } @@ -15901,18 +19650,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return RootInProgress; } else { workInProgressRoot = null; - workInProgressRootRenderLanes = NoLanes; + workInProgressRootRenderLanes = NoLanes; // Return the final exit status. return workInProgressRootExitStatus; } } + /** @noinline */ function workLoopConcurrent() { + // Perform work until Scheduler asks us to yield while (workInProgress !== null && !shouldYield()) { performUnitOfWork(workInProgress); } } function performUnitOfWork(unitOfWork) { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. var current = unitOfWork.alternate; setCurrentFiber(unitOfWork); var next; @@ -15926,6 +19680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; if (next === null) { + // If this doesn't spawn new work, complete the current work. completeUnitOfWork(unitOfWork); } else { workInProgress = next; @@ -15933,10 +19688,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactCurrentOwner$2.current = null; } function completeUnitOfWork(unitOfWork) { + // Attempt to complete the current unit of work, then move to the next + // sibling. If there are no more siblings, return to the parent fiber. var completedWork = unitOfWork; do { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. var current = completedWork.alternate; - var returnFiber = completedWork.return; + var returnFiber = completedWork.return; // Check if the work completed or if something threw. if ((completedWork.flags & Incomplete) === NoFlags) { setCurrentFiber(completedWork); @@ -15945,25 +19705,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next = completeWork(current, completedWork, subtreeRenderLanes); } else { startProfilerTimer(completedWork); - next = completeWork(current, completedWork, subtreeRenderLanes); + next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error. stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); } resetCurrentFiber(); if (next !== null) { + // Completing this fiber spawned new work. Work on that next. workInProgress = next; return; } } else { - var _next = unwindWork(current, completedWork); + // This fiber did not complete because something threw. Pop values off + // the stack without entering the complete phase. If this is a boundary, + // capture values if possible. + var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes. if (_next !== null) { + // If completing this work spawned new work, do that next. We'll come + // back here again. + // Since we're restarting, remove anything that is not a host effect + // from the effect tag. _next.flags &= HostEffectMask; workInProgress = _next; return; } if ((completedWork.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + // Record the render duration for the fiber that errored. + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing. var actualDuration = completedWork.actualDuration; var child = completedWork.child; @@ -15974,10 +19743,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e completedWork.actualDuration = actualDuration; } if (returnFiber !== null) { + // Mark the parent fiber as incomplete and clear its subtree flags. returnFiber.flags |= Incomplete; returnFiber.subtreeFlags = NoFlags; returnFiber.deletions = null; } else { + // We've unwound all the way to the root. workInProgressRootExitStatus = RootDidNotComplete; workInProgress = null; return; @@ -15985,20 +19756,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var siblingFiber = completedWork.sibling; if (siblingFiber !== null) { + // If there is more work to do in this returnFiber, do that next. workInProgress = siblingFiber; return; - } + } // Otherwise, return to the parent - completedWork = returnFiber; + completedWork = returnFiber; // Update the next thing we're working on in case something throws. workInProgress = completedWork; - } while (completedWork !== null); + } while (completedWork !== null); // We've reached the root. if (workInProgressRootExitStatus === RootInProgress) { workInProgressRootExitStatus = RootCompleted; } } function commitRoot(root, recoverableErrors, transitions) { + // TODO: This no longer makes any sense. We already wrap the mutation and + // layout phases. Should be able to remove. var previousUpdateLanePriority = getCurrentUpdatePriority(); var prevTransition = ReactCurrentBatchConfig$2.transition; try { @@ -16013,6 +19787,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { do { + // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which + // means `flushPassiveEffects` will sometimes result in additional + // passive effects. So we need to keep flushing in a loop until there are + // no more pending effects. + // TODO: Might be better if `flushPassiveEffects` did not automatically + // flush synchronous work at the end, to avoid factoring hazards like this. flushPassiveEffects(); } while (rootWithPendingPassiveEffects !== null); flushRenderPhaseStrictModeWarningsInDEV(); @@ -16034,31 +19814,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e root.finishedLanes = NoLanes; if (finishedWork === root.current) { throw new Error("Cannot commit the same tree as before. This error is likely caused by " + "a bug in React. Please file an issue."); - } + } // commitRoot never returns a continuation; it always finishes synchronously. + // So we can clear these now to allow a new callback to be scheduled. root.callbackNode = null; - root.callbackPriority = NoLane; + root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first + // pending time is whatever is left on the root fiber. var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); markRootFinished(root, remainingLanes); if (root === workInProgressRoot) { + // We can reset these now that they are finished. workInProgressRoot = null; workInProgress = null; workInProgressRootRenderLanes = NoLanes; - } + } // If there are pending passive effects, schedule a callback to process them. + // Do this as early as possible, so it is queued before anything else that + // might get scheduled in the commit phase. (See #16714.) + // TODO: Delete all other places that schedule the passive effect callback + // They're redundant. if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; + // to store it in pendingPassiveTransitions until they get processed + // We need to pass this through as an argument to commitRoot + // because workInProgressTransitions might have changed between + // the previous render and commit if we throttle the commit + // with setTimeout pendingPassiveTransitions = transitions; scheduleCallback$1(NormalPriority, function () { - flushPassiveEffects(); + flushPassiveEffects(); // This render triggered passive effects: release the root cache pool + // *after* passive effects fire to avoid freeing a cache pool that may + // be referenced by a node in the tree (HostRoot, Cache boundary etc) return null; }); } - } + } // Check if there are any effects in the whole tree. + // TODO: This is left over from the effect list implementation, where we had + // to check for the existence of `firstEffect` to satisfy Flow. I think the + // only other reason this optimization exists is because it affects profiling. + // Reconsider whether this is necessary. var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; @@ -16068,34 +19866,50 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var previousPriority = getCurrentUpdatePriority(); setCurrentUpdatePriority(DiscreteEventPriority); var prevExecutionContext = executionContext; - executionContext |= CommitContext; + executionContext |= CommitContext; // Reset this to null before calling lifecycles - ReactCurrentOwner$2.current = null; + ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + // of the effect list for each phase: all mutation effects come before all + // layout effects, and so on. + // The first phase a "before mutation" phase. We use this phase to read the + // state of the host tree right before we mutate it. This is where + // getSnapshotBeforeUpdate is called. var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork); { + // Mark the current commit time to be shared by all Profilers in this + // batch. This enables them to be grouped later. recordCommitTime(); } commitMutationEffects(root, finishedWork, lanes); - resetAfterCommit(root.containerInfo); + resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after + // the mutation phase, so that the previous tree is still current during + // componentWillUnmount, but before the layout phase, so that the finished + // work is current during componentDidMount/Update. - root.current = finishedWork; + root.current = finishedWork; // The next phase is the layout phase, where we call effects that read commitLayoutEffects(finishedWork, root, lanes); + // opportunity to paint. requestPaint(); - executionContext = prevExecutionContext; + executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. setCurrentUpdatePriority(previousPriority); ReactCurrentBatchConfig$2.transition = prevTransition; } else { - root.current = finishedWork; + // No effects. + root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were + // no effects. + // TODO: Maybe there's a better way to report this. { recordCommitTime(); } } if (rootDoesHavePassiveEffects) { + // This commit has passive effects. Stash a reference to them. But don't + // schedule a callback until after flushing layout work. rootDoesHavePassiveEffects = false; rootWithPendingPassiveEffects = root; pendingPassiveEffectsLanes = lanes; @@ -16104,11 +19918,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nestedPassiveUpdateCount = 0; rootWithPassiveNestedUpdates = null; } - } + } // Read this again, since an effect might have updated it - remainingLanes = root.pendingLanes; + remainingLanes = root.pendingLanes; // Check if there's remaining work on this root + // TODO: This is part of the `componentDidCatch` implementation. Its purpose + // is to detect whether something might have called setState inside + // `componentDidCatch`. The mechanism is known to be flawed because `setState` + // inside `componentDidCatch` is itself flawed โ€” that's why we recommend + // `getDerivedStateFromError` instead. However, it could be improved by + // checking if remainingLanes includes Sync work, instead of whether there's + // any work remaining at all (which would also include stuff like Suspense + // retries or transitions). It's been like this for a while, though, so fixing + // it probably isn't that urgent. if (remainingLanes === NoLanes) { + // If there's no remaining work, we can clear the set of already failed + // error boundaries. legacyErrorBoundariesThatAlreadyFailed = null; } onCommitRoot(finishedWork.stateNode, renderPriorityLevel); @@ -16117,13 +19942,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e root.memoizedUpdaters.clear(); } } + // additional work on this root is scheduled. ensureRootIsScheduled(root, now()); if (recoverableErrors !== null) { + // There were errors during this render, but recovered from them without + // needing to surface it to the UI. We log them here. var onRecoverableError = root.onRecoverableError; for (var i = 0; i < recoverableErrors.length; i++) { var recoverableError = recoverableErrors[i]; - onRecoverableError(recoverableError); + var componentStack = recoverableError.stack; + var digest = recoverableError.digest; + onRecoverableError(recoverableError.value, { + componentStack: componentStack, + digest: digest + }); } } if (hasUncaughtError) { @@ -16131,17 +19964,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var error$1 = firstUncaughtError; firstUncaughtError = null; throw error$1; - } + } // If the passive effects are the result of a discrete render, flush them + // synchronously at the end of the current task so that the result is + // immediately observable. Otherwise, we assume that they are not + // order-dependent and do not need to be observed by external systems, so we + // can wait until after paint. + // TODO: We can optimize this by not scheduling the callback earlier. Since we + // currently schedule the callback in multiple places, will wait until those + // are consolidated. if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { flushPassiveEffects(); - } + } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; if (includesSomeLane(remainingLanes, SyncLane)) { { markNestedUpdateScheduled(); - } + } // Count the number of times the root synchronously re-renders without + // finishing. If there are too many, it indicates an infinite update loop. if (root === rootWithNestedUpdates) { nestedUpdateCount++; @@ -16151,12 +19992,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } else { nestedUpdateCount = 0; - } + } // If layout work was scheduled, flush it now. flushSyncCallbacks(); return null; } function flushPassiveEffects() { + // Returns whether passive effects were flushed. + // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should + // probably just combine the two functions. I believe they were only separate + // in the first place because we used to wrap it with + // `Scheduler.runWithPriority`, which accepts a function. But now we track the + // priority within React itself, so we can mutate the variable directly. if (rootWithPendingPassiveEffects !== null) { var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); var priority = lowerEventPriority(DefaultEventPriority, renderPriority); @@ -16168,7 +20015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return flushPassiveEffectsImpl(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig$2.transition = prevTransition; // Once passive effects have run for the tree - giving components a } } @@ -16189,13 +20036,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function flushPassiveEffectsImpl() { if (rootWithPendingPassiveEffects === null) { return false; - } + } // Cache and clear the transitions flag var transitions = pendingPassiveTransitions; pendingPassiveTransitions = null; var root = rootWithPendingPassiveEffects; var lanes = pendingPassiveEffectsLanes; - rootWithPendingPassiveEffects = null; + rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects. + // Figure out why and fix it. It's not causing any known issues (probably + // because it's only used for profiling), but it's a refactor hazard. pendingPassiveEffectsLanes = NoLanes; if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { @@ -16208,7 +20057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var prevExecutionContext = executionContext; executionContext |= CommitContext; commitPassiveUnmountEffects(root.current); - commitPassiveMountEffects(root, root.current, lanes, transitions); + commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects { var profilerEffects = pendingPassiveProfilerEffects; @@ -16221,6 +20070,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e executionContext = prevExecutionContext; flushSyncCallbacks(); { + // If additional passive effects were scheduled, increment a counter. If this + // exceeds the limit, we'll fire a warning. if (didScheduleUpdateDuringPassiveEffects) { if (root === rootWithPassiveNestedUpdates) { nestedPassiveUpdateCount++; @@ -16233,7 +20084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } isFlushingPassiveEffects = false; didScheduleUpdateDuringPassiveEffects = false; - } + } // TODO: Move to commitPassiveMountEffects onPostCommitRoot(root); { @@ -16261,11 +20112,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var onUncaughtError = prepareToThrowUncaughtError; function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { - var errorInfo = createCapturedValue(error, sourceFiber); + var errorInfo = createCapturedValueAtFiber(error, sourceFiber); var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - enqueueUpdate(rootFiber, update); + var root = enqueueUpdate(rootFiber, update, SyncLane); var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane); if (root !== null) { markRootUpdated(root, SyncLane, eventTime); ensureRootIsScheduled(root, eventTime); @@ -16277,6 +20127,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setIsRunningInsertionEffect(false); } if (sourceFiber.tag === HostRoot) { + // Error was thrown at the root. There is no parent, so the root + // itself should capture it. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); return; } @@ -16292,11 +20144,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ctor = fiber.type; var instance = fiber.stateNode; if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { - var errorInfo = createCapturedValue(error$1, sourceFiber); + var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - enqueueUpdate(fiber, update); + var root = enqueueUpdate(fiber, update, SyncLane); var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane); if (root !== null) { markRootUpdated(root, SyncLane, eventTime); ensureRootIsScheduled(root, eventTime); @@ -16307,33 +20158,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiber = fiber.return; } { + // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning + // will fire for errors that are thrown by destroy functions inside deleted + // trees. What it should instead do is propagate the error to the parent of + // the deleted tree. In the meantime, do not add this warning to the + // allowlist; this is only for our internal use. error("Internal React error: Attempted to capture a commit phase error " + "inside a detached tree. This indicates a bug in React. Likely " + "causes include deleting the same fiber more than once, committing an " + "already-finished tree, or an inconsistent return pointer.\n\n" + "Error message:\n\n%s", error$1); } } function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; if (pingCache !== null) { + // The wakeable resolved, so we no longer need to memoize, because it will + // never be thrown again. pingCache.delete(wakeable); } var eventTime = requestEventTime(); markRootPinged(root, pingedLanes); warnIfSuspenseResolutionNotWrappedWithActDEV(root); if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { + // Received a ping at the same priority level at which we're currently + // rendering. We might want to restart this render. This should mirror + // the logic of whether or not a root suspends once it completes. + // TODO: If we're rendering sync either due to Sync, Batched or expired, + // we should probably never restart. + // If we're suspended with delay, or if it's a retry, we'll always suspend + // so we can always restart. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + // Restart from the root. prepareFreshStack(root, NoLanes); } else { + // Even though we can't restart right now, we might get an + // opportunity later. So we mark this render as having a ping. workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); } } ensureRootIsScheduled(root, eventTime); } function retryTimedOutBoundary(boundaryFiber, retryLane) { + // The boundary fiber (a Suspense component or SuspenseList component) + // previously was rendered in its fallback state. One of the promises that + // suspended it has resolved, which means at least part of the tree was + // likely unblocked. Try rendering again, at a new lanes. if (retryLane === NoLane) { + // TODO: Assign this to `suspenseState.retryLane`? to avoid + // unnecessary entanglement? retryLane = requestRetryLane(boundaryFiber); - } + } // TODO: Special case idle priority? var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); if (root !== null) { markRootUpdated(root, retryLane, eventTime); ensureRootIsScheduled(root, eventTime); @@ -16348,7 +20222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e retryTimedOutBoundary(boundaryFiber, retryLane); } function resolveRetryWakeable(boundaryFiber, wakeable) { - var retryLane = NoLane; + var retryLane = NoLane; // Default var retryCache; switch (boundaryFiber.tag) { @@ -16366,10 +20240,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Pinged unknown suspense boundary type. " + "This is probably a bug in React."); } if (retryCache !== null) { + // The wakeable resolved, so we no longer need to memoize, because it will + // never be thrown again. retryCache.delete(wakeable); } retryTimedOutBoundary(boundaryFiber, retryLane); - } + } // Computes the next Just Noticeable Difference (JND) boundary. + // The theory is that a person can't tell the difference between small differences in time. + // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable + // difference in the experience. However, waiting for longer might mean that we can avoid + // showing an intermediate loading state. The longer we have already waited, the harder it + // is to tell small differences in time. Therefore, the longer we've already waited, + // the longer we can wait additionally. At some point we have to give up though. + // We pick a train model where the next boundary commits at a consistent schedule. + // These particular numbers are vague estimates. We expect to adjust them based on research. function jnd(timeElapsed) { return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; @@ -16400,6 +20284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { { if ((executionContext & RenderContext) !== NoContext) { + // We let the other warning about render phase updates deal with this one. return; } if (!(fiber.mode & ConcurrentMode)) { @@ -16407,8 +20292,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var tag = fiber.tag; if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { + // Only warn for user-defined components, not internal ones like Suspense. return; - } + } // We show the whole stack but dedupe on the top component's name because + // the problematic code almost always lies inside that component. var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; if (didWarnStateUpdateForNotYetMountedComponent !== null) { @@ -16436,31 +20323,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { var dummyFiber = null; beginWork$1 = function beginWork$1(current, unitOfWork, lanes) { + // If a component throws an error, we replay it again in a synchronously + // dispatched event, so that the debugger will treat it as an uncaught + // error See ReactErrorUtils for more information. + // Before entering the begin phase, copy the work-in-progress onto a dummy + // fiber. If beginWork throws, we'll use this to reset the state. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); try { return beginWork(current, unitOfWork, lanes); } catch (originalError) { if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === "object" && typeof originalError.then === "function") { + // Don't replay promises. + // Don't replay errors if we are hydrating and have already suspended or handled an error throw originalError; - } + } // Keep this code in sync with handleError; any changes here must have + // corresponding changes there. resetContextDependencies(); - resetHooksAfterThrow(); + resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the + // same fiber again. + // Unwind the failed stack frame - unwindInterruptedWork(current, unitOfWork); + unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); if (unitOfWork.mode & ProfileMode) { + // Reset the profiler timer. startProfilerTimer(unitOfWork); - } + } // Run beginWork again. invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); if (hasCaughtError()) { var replayError = clearCaughtError(); if (typeof replayError === "object" && replayError !== null && replayError._suppressLogging && typeof originalError === "object" && originalError !== null && !originalError._suppressLogging) { + // If suppressed, let the flag carry over to the original error which is the one we'll rethrow. originalError._suppressLogging = true; } - } + } // We always throw the original error in case the second render pass is not idempotent. + // This can happen if a memoized function or CommonJS module doesn't throw after first invocation. throw originalError; } @@ -16479,7 +20379,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case ForwardRef: case SimpleMemoComponent: { - var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; + var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; // Dedupe by the rendering component because it's the one that needs to be fixed. var dedupeKey = renderingComponentName; if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { @@ -16507,7 +20407,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var memoizedUpdaters = root.memoizedUpdaters; memoizedUpdaters.forEach(function (schedulingFiber) { addFiberToLanesMap(root, schedulingFiber, lanes); - }); + }); // This function intentionally does not clear memoized updaters. + // Those may still be relevant to the current commit + // and a future one (e.g. Suspense). } } } @@ -16515,6 +20417,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fakeActCallbackNode = {}; function scheduleCallback$1(priorityLevel, callback) { { + // If we're currently inside an `act` scope, bypass Scheduler and push to + // the `act` queue instead. var actQueue = ReactCurrentActQueue$1.current; if (actQueue !== null) { actQueue.push(callback); @@ -16527,27 +20431,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function cancelCallback$1(callbackNode) { if (callbackNode === fakeActCallbackNode) { return; - } + } // In production, always call Scheduler. This function will be stripped out. return cancelCallback(callbackNode); } function shouldForceFlushFallbacksInDEV() { + // Never force flush in production. This function should get stripped out. return ReactCurrentActQueue$1.current !== null; } function warnIfUpdatesNotWrappedWithActDEV(fiber) { { if (fiber.mode & ConcurrentMode) { if (!isConcurrentActEnvironment()) { + // Not in an act environment. No need to warn. return; } } else { + // Legacy mode has additional cases where we suppress a warning. if (!isLegacyActEnvironment()) { + // Not in an act environment. No need to warn. return; } if (executionContext !== NoContext) { + // Legacy mode doesn't warn if the update is batched, i.e. + // batchedUpdates or flushSync. return; } if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { + // For backwards compatibility with pre-hooks code, legacy mode only + // warns for updates that originate from a hook. return; } } @@ -16579,7 +20491,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } - var resolveFamily = null; + /* eslint-disable react-internal/prod-error-codes */ + var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below. var failedBoundaries = null; var setRefreshHandler = function setRefreshHandler(handler) { @@ -16590,27 +20503,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function resolveFunctionForHotReloading(type) { { if (resolveFamily === null) { + // Hot reloading is disabled. return type; } var family = resolveFamily(type); if (family === undefined) { return type; - } + } // Use the latest known implementation. return family.current; } } function resolveClassForHotReloading(type) { + // No implementation differences. return resolveFunctionForHotReloading(type); } function resolveForwardRefForHotReloading(type) { { if (resolveFamily === null) { + // Hot reloading is disabled. return type; } var family = resolveFamily(type); if (family === undefined) { + // Check if we're dealing with a real forwardRef. Don't want to crash early. if (type !== null && type !== undefined && typeof type.render === "function") { + // ForwardRef is special because its resolved .type is an object, + // but it's possible that we only have its inner render function in the map. + // If that inner render function is different, we'll build a new forwardRef type. var currentRender = resolveFunctionForHotReloading(type.render); if (type.render !== currentRender) { var syntheticType = { @@ -16624,7 +20544,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } return type; - } + } // Use the latest known implementation. return family.current; } @@ -16632,10 +20552,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function isCompatibleFamilyForHotReloading(fiber, element) { { if (resolveFamily === null) { + // Hot reloading is disabled. return false; } var prevType = fiber.elementType; - var nextType = element.type; + var nextType = element.type; // If we got here, we know types aren't === equal. var needsCompareFamilies = false; var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; @@ -16652,6 +20573,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof nextType === "function") { needsCompareFamilies = true; } else if ($$typeofNextType === REACT_LAZY_TYPE) { + // We don't know the inner type yet. + // We're going to assume that the lazy inner type is stable, + // and so it is sufficient to avoid reconciling it away. + // We're not going to unwrap or actually use the new lazy type. needsCompareFamilies = true; } break; @@ -16669,6 +20594,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case SimpleMemoComponent: { if ($$typeofNextType === REACT_MEMO_TYPE) { + // TODO: if it was but can no longer be simple, + // we shouldn't set this. needsCompareFamilies = true; } else if ($$typeofNextType === REACT_LAZY_TYPE) { needsCompareFamilies = true; @@ -16677,9 +20604,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } default: return false; - } + } // Check if both types have a family and it's the same one. if (needsCompareFamilies) { + // Note: memo() and forwardRef() we'll compare outer rather than inner type. + // This means both of them need to be registered to preserve state. + // If we unwrapped and compared the inner types for wrappers instead, + // then we would risk falsely saying two separate memo(Foo) + // calls are equivalent because they wrap the same Foo function. var prevFamily = resolveFamily(prevType); if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { return true; @@ -16691,6 +20623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function markFailedErrorBoundaryForHotReloading(fiber) { { if (resolveFamily === null) { + // Hot reloading is disabled. return; } if (typeof WeakSet !== "function") { @@ -16705,6 +20638,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var scheduleRefresh = function scheduleRefresh(root, update) { { if (resolveFamily === null) { + // Hot reloading is disabled. return; } var staleFamilies = update.staleFamilies, @@ -16718,6 +20652,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var scheduleRoot = function scheduleRoot(root, element) { { if (root.context !== emptyContextObject) { + // Super edge case: root has a legacy _renderSubtree context + // but we don't know the parentComponent so we can't pass it. + // Just ignore. We'll delete this with _renderSubtree code path later. return; } flushPassiveEffects(); @@ -16772,7 +20709,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiber._debugNeedsRemount = true; } if (needsRemount || needsRender) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var _root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (_root !== null) { + scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp); + } } if (child !== null && !needsRemount) { scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); @@ -16816,8 +20756,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (didMatch) { + // We have a match. This only drills down to the closest host components. + // There's no need to search deeper because for the purpose of giving + // visual feedback, "flashing" outermost parent rectangles is sufficient. findHostInstancesForFiberShallowly(fiber, hostInstances); } else { + // If there's no match, maybe there will be one further down in the child tree. if (child !== null) { findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); } @@ -16832,7 +20776,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); if (foundHostInstances) { return; - } + } // If we didn't find any host children, fallback to closest host parent. var node = fiber; while (true) { @@ -16860,8 +20804,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var foundHostInstances = false; while (true) { if (node.tag === HostComponent) { + // We got a match. foundHostInstances = true; - hostInstances.add(node.stateNode); + hostInstances.add(node.stateNode); // There may still be more, so keep searching. } else if (node.child !== null) { node.child.return = node; node = node.child; @@ -16887,19 +20832,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasBadMapPolyfill = false; try { var nonExtensibleObject = Object.preventExtensions({}); + /* eslint-disable no-new */ new Map([[nonExtensibleObject, null]]); new Set([nonExtensibleObject]); + /* eslint-enable no-new */ } catch (e) { + // TODO: Consider warning about bad polyfills hasBadMapPolyfill = true; } } function FiberNode(tag, pendingProps, key, mode) { + // Instance this.tag = tag; this.key = key; this.elementType = null; this.type = null; - this.stateNode = null; + this.stateNode = null; // Fiber this.return = null; this.child = null; @@ -16911,7 +20860,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.updateQueue = null; this.memoizedState = null; this.dependencies = null; - this.mode = mode; + this.mode = mode; // Effects this.flags = NoFlags; this.subtreeFlags = NoFlags; @@ -16920,10 +20869,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.childLanes = NoLanes; this.alternate = null; { + // Note: The following is done to avoid a v8 performance cliff. + // + // Initializing the fields below to smis and later updating them with + // double values will cause Fibers to end up having separate shapes. + // This behavior/bug has something to do with Object.preventExtension(). + // Fortunately this only impacts DEV builds. + // Unfortunately it makes React unusably slow for some applications. + // To work around this, initialize the fields below with doubles. + // + // Learn more about this here: + // https://github.com/facebook/react/issues/14365 + // https://bugs.chromium.org/p/v8/issues/detail?id=8538 this.actualDuration = Number.NaN; this.actualStartTime = Number.NaN; this.selfBaseDuration = Number.NaN; - this.treeBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization. + // This won't trigger the performance cliff mentioned above, + // and it simplifies other profiler code (including DevTools). this.actualDuration = 0; this.actualStartTime = -1; @@ -16931,6 +20894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.treeBaseDuration = 0; } { + // This isn't directly used but is handy for debugging internals: this._debugSource = null; this._debugOwner = null; this._debugNeedsRemount = false; @@ -16939,9 +20903,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.preventExtensions(this); } } - } + } // This is a constructor function, rather than a POJO constructor, still + // please ensure we do the following: + // 1) Nobody should add any instance methods on this. Instance methods can be + // more difficult to predict when they get optimized and they are almost + // never inlined properly in static compilers. + // 2) Nobody should rely on `instanceof Fiber` for type testing. We should + // always know when it is a fiber. + // 3) We might want to experiment with using numeric keys since they are easier + // to optimize in a non-JIT environment. + // 4) We can easily go from a constructor to a createFiber object literal if that + // is faster. + // 5) It should be easy to port this to a C struct and keep a C implementation + // compatible. var createFiber = function createFiber(tag, pendingProps, key, mode) { + // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors return new FiberNode(tag, pendingProps, key, mode); }; function shouldConstruct(Component) { @@ -16964,16 +20941,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } return IndeterminateComponent; - } + } // This is used to create an alternate fiber to do work on. function createWorkInProgress(current, pendingProps) { var workInProgress = current.alternate; if (workInProgress === null) { + // We use a double buffering pooling technique because we know that we'll + // only ever need at most two versions of a tree. We pool the "other" unused + // node that we're free to reuse. This is lazily created to avoid allocating + // extra objects for things that are never updated. It also allow us to + // reclaim the extra memory if needed. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); workInProgress.elementType = current.elementType; workInProgress.type = current.type; workInProgress.stateNode = current.stateNode; { + // DEV-only fields workInProgress._debugSource = current._debugSource; workInProgress._debugOwner = current._debugOwner; workInProgress._debugHookTypes = current._debugHookTypes; @@ -16981,19 +20964,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.alternate = current; current.alternate = workInProgress; } else { - workInProgress.pendingProps = pendingProps; + workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type. - workInProgress.type = current.type; + workInProgress.type = current.type; // We already have an alternate. + // Reset the effect tag. - workInProgress.flags = NoFlags; + workInProgress.flags = NoFlags; // The effects are no longer valid. workInProgress.subtreeFlags = NoFlags; workInProgress.deletions = null; { + // We intentionally reset, rather than copy, actualDuration & actualStartTime. + // This prevents time from endlessly accumulating in new commits. + // This has the downside of resetting values for different priority renders, + // But works for yielding (the common case) and should support resuming. workInProgress.actualDuration = 0; workInProgress.actualStartTime = -1; } - } + } // Reset all effects except static ones. + // Static effects are not specific to a render. workInProgress.flags = current.flags & StaticMask; workInProgress.childLanes = current.childLanes; @@ -17001,13 +20990,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.child = current.child; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; + workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. var currentDependencies = current.dependencies; workInProgress.dependencies = currentDependencies === null ? null : { lanes: currentDependencies.lanes, firstContext: currentDependencies.firstContext - }; + }; // These will be overridden during the parent's reconciliation workInProgress.sibling = current.sibling; workInProgress.index = current.index; @@ -17033,13 +21023,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } return workInProgress; - } + } // Used to reuse a Fiber for a second pass. function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= StaticMask | Placement; + // This resets the Fiber to what createFiber or createWorkInProgress would + // have set the values to before during the first pass. Ideally this wouldn't + // be necessary but unfortunately many code paths reads from the workInProgress + // when they should be reading from current and writing to workInProgress. + // We assume pendingProps, index, key, ref, return are still untouched to + // avoid doing another reconciliation. + // Reset the effect flags but keep any Placement tags, since that's something + // that child fiber is setting, not the reconciliation. + workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid. var current = workInProgress.alternate; if (current === null) { + // Reset to createFiber's initial values. workInProgress.childLanes = NoLanes; workInProgress.lanes = renderLanes; workInProgress.child = null; @@ -17050,10 +21049,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.dependencies = null; workInProgress.stateNode = null; { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. workInProgress.selfBaseDuration = 0; workInProgress.treeBaseDuration = 0; } } else { + // Reset to the cloned values that createWorkInProgress would've. workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -17061,9 +21063,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e workInProgress.deletions = null; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; + workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type. - workInProgress.type = current.type; + workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. var currentDependencies = current.dependencies; workInProgress.dependencies = currentDependencies === null ? null : { @@ -17071,6 +21074,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e firstContext: currentDependencies.firstContext }; { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. workInProgress.selfBaseDuration = current.selfBaseDuration; workInProgress.treeBaseDuration = current.treeBaseDuration; } @@ -17088,13 +21093,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e mode = NoMode; } if (isDevToolsPresent) { + // Always collect profile timings when DevTools are present. + // This enables DevTools to start capturing timing at any pointโ€“ + // Without some nodes in the tree having empty base times. mode |= ProfileMode; } return createFiber(HostRoot, null, null, mode); } function createFiberFromTypeAndProps(type, + // React$ElementType key, pendingProps, owner, mode, lanes) { - var fiberTag = IndeterminateComponent; + var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy. var resolvedType = type; if (typeof type === "function") { @@ -17128,14 +21137,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: + // eslint-disable-next-line no-fallthrough + case REACT_SCOPE_TYPE: + // eslint-disable-next-line no-fallthrough + case REACT_CACHE_TYPE: + // eslint-disable-next-line no-fallthrough + case REACT_TRACING_MARKER_TYPE: + // eslint-disable-next-line no-fallthrough + case REACT_DEBUG_TRACING_MODE_TYPE: + // eslint-disable-next-line no-fallthrough + default: { if (typeof type === "object" && type !== null) { @@ -17144,6 +21163,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiberTag = ContextProvider; break getTag; case REACT_CONTEXT_TYPE: + // This is a consumer fiberTag = ContextConsumer; break getTag; case REACT_FORWARD_REF_TYPE: @@ -17237,7 +21257,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); fiber.elementType = REACT_OFFSCREEN_TYPE; fiber.lanes = lanes; - var primaryChildInstance = {}; + var primaryChildInstance = { + isHidden: false + }; fiber.stateNode = primaryChildInstance; return fiber; } @@ -17253,15 +21275,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fiber.stateNode = { containerInfo: portal.containerInfo, pendingChildren: null, + // Used by persistent updates implementation: portal.implementation }; return fiber; - } + } // Used for stashing WIP properties to replay failed work in DEV. function assignFiberPropertiesInDEV(target, source) { if (target === null) { + // This Fiber's initial properties will always be overwritten. + // We only use a Fiber to ensure the same hidden class so DEV isn't slow. target = createFiber(IndeterminateComponent, null, null, NoMode); - } + } // This is intentionally written as a list of all properties. + // We tried to use Object.assign() instead but this is called in + // the hottest path, and Object.assign() was too slow: + // https://github.com/facebook/react/issues/12502 + // This code is DEV-only so size is not a concern. target.tag = source.tag; target.key = source.key; @@ -17344,8 +21373,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, + // TODO: We have several of these arguments that are conceptually part of the + // host config, but because they are passed in at runtime, we have to thread + // them through the root constructor. Perhaps we should put them all into a + // single type, like a DynamicHostConfig that is defined by the renderer. identifierPrefix, onRecoverableError, transitionCallbacks) { var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); + // stateNode is any. var uninitializedFiber = createHostRootFiber(tag, isStrictMode); root.current = uninitializedFiber; @@ -17355,6 +21389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e element: initialChildren, isDehydrated: hydrate, cache: null, + // not enabled yet transitions: null, pendingSuspenseBoundaries: null }; @@ -17363,14 +21398,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e initializeUpdateQueue(uninitializedFiber); return root; } - var ReactVersion = "18.2.0-next-d300cebde-20220601"; + var ReactVersion = "18.2.0-next-9e3b772b8-20220608"; function createPortal(children, containerInfo, + // TODO: figure out the API for cross-renderer implementation. implementation) { var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; { checkKeyStringCoercion(key); } return { + // This tag allow us to uniquely identify this as a React Portal $$typeof: REACT_PORTAL_TYPE, key: key == null ? null : "" + key, children: children, @@ -17426,6 +21463,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); } } finally { + // Ideally this should reset to previous but this shouldn't be called in + // render and there's another warning for that anyway. if (previousFiber) { setCurrentFiber(previousFiber); } else { @@ -17461,7 +21500,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error("Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); } } - var update = createUpdate(eventTime, lane); + var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property + // being called "element". update.payload = { element: element @@ -17475,9 +21515,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } update.callback = callback; } - enqueueUpdate(current$1, update); - var root = scheduleUpdateOnFiber(current$1, lane, eventTime); + var root = enqueueUpdate(current$1, update, lane); if (root !== null) { + scheduleUpdateOnFiber(root, current$1, lane, eventTime); entangleTransitions(root, current$1, lane); } return lane; @@ -17526,7 +21566,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e delete updated[key]; } return updated; - } + } // $FlowFixMe number or string is fine here updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); return updated; @@ -17538,7 +21578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var oldKey = oldPath[index]; var updated = isArray(obj) ? obj.slice() : assign({}, obj); if (index + 1 === oldPath.length) { - var newKey = newPath[index]; + var newKey = newPath[index]; // $FlowFixMe number or string is fine here updated[newKey] = updated[oldKey]; if (isArray(updated)) { @@ -17547,7 +21587,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e delete updated[oldKey]; } } else { + // $FlowFixMe number or string is fine here updated[oldKey] = copyWithRenameImpl( + // $FlowFixMe number or string is fine here obj[oldKey], oldPath, newPath, index + 1); } return updated; @@ -17571,7 +21613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return value; } var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); + var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); return updated; @@ -17580,23 +21622,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return copyWithSetImpl(obj, path, 0, value); }; var findHook = function findHook(fiber, id) { + // For now, the "id" of stateful hooks is just the stateful hook index. + // This may change in the future with e.g. nested hooks. var currentHook = fiber.memoizedState; while (currentHook !== null && id > 0) { currentHook = currentHook.next; id--; } return currentHook; - }; + }; // Support DevTools editable values for useState and useReducer. overrideHookState = function overrideHookState(fiber, id, path, value) { var hook = findHook(fiber, id); if (hook !== null) { var newState = copyWithSet(hook.memoizedState, path, value); hook.memoizedState = newState; - hook.baseState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } } }; overrideHookStateDeletePath = function overrideHookStateDeletePath(fiber, id, path) { @@ -17604,10 +21655,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (hook !== null) { var newState = copyWithDelete(hook.memoizedState, path); hook.memoizedState = newState; - hook.baseState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } } }; overrideHookStateRenamePath = function overrideHookStateRenamePath(fiber, id, oldPath, newPath) { @@ -17615,36 +21673,55 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (hook !== null) { var newState = copyWithRename(hook.memoizedState, oldPath, newPath); hook.memoizedState = newState; - hook.baseState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } } - }; + }; // Support DevTools props for function components, forwardRef, memo, host components, etc. overrideProps = function overrideProps(fiber, path, value) { fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); if (fiber.alternate) { fiber.alternate.pendingProps = fiber.pendingProps; } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } }; overridePropsDeletePath = function overridePropsDeletePath(fiber, path) { fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); if (fiber.alternate) { fiber.alternate.pendingProps = fiber.pendingProps; } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } }; overridePropsRenamePath = function overridePropsRenamePath(fiber, oldPath, newPath) { fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); if (fiber.alternate) { fiber.alternate.pendingProps = fiber.pendingProps; } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } }; scheduleUpdate = function scheduleUpdate(fiber) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } }; setErrorHandler = function setErrorHandler(newShouldErrorImpl) { shouldErrorImpl = newShouldErrorImpl; @@ -17686,14 +21763,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e currentDispatcherRef: ReactCurrentDispatcher, findHostInstanceByFiber: findHostInstanceByFiber, findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, + // React Refresh findHostInstancesForRefresh: findHostInstancesForRefresh, scheduleRefresh: scheduleRefresh, scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, + // Enables DevTools to append owner stacks to error messages in DEV mode. getCurrentFiber: getCurrentFiberForDevTools, + // Enables DevTools to detect reconciler version rather than renderer version + // which may not match for third party renderers. reconcilerVersion: ReactVersion }); } + var instanceCache = new Map(); + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; + } var emptyObject$1 = {}; { Object.freeze(emptyObject$1); @@ -17714,6 +21799,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e props: getHostProps(fiber), source: fiber._debugSource, measure: function measure(callback) { + // If this is Fabric, we'll find a ShadowNode and use that to measure. var hostFiber = findCurrentHostFiber(fiber); var shadowNode = hostFiber != null && hostFiber.stateNode !== null && hostFiber.stateNode.node; if (shadowNode) { @@ -17728,7 +21814,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; getHostNode = function getHostNode(fiber, findNodeHandle) { - var hostNode; + var hostNode; // look for children first for the hostNode + // as composite fibers do not have a hostNode while (fiber) { if (fiber.stateNode !== null && fiber.tag === HostComponent) { @@ -17749,6 +21836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return emptyObject$1; }; exports.getInspectorDataForInstance = function (closestInstance) { + // Handle case where user clicks outside of ReactNative if (!closestInstance) { return { hierarchy: [], @@ -17796,7 +21884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var getInspectorDataForViewAtPoint; { getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { - var closestInstance = getInstanceFromTag(viewTag); + var closestInstance = getInstanceFromTag(viewTag); // Handle case where user clicks outside of ReactNative if (!closestInstance) { return { @@ -17823,6 +21911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getInspectorDataForViewAtPoint = function getInspectorDataForViewAtPoint(findNodeHandle, inspectedView, locationX, locationY, callback) { var closestInstance = null; if (inspectedView._internalInstanceHandle != null) { + // For Fabric we can look up the instance handle directly and measure it. nativeFabricUIManager.findNodeAtPoint(inspectedView._internalInstanceHandle.stateNode.node, locationX, locationY, function (internalInstanceHandle) { if (internalInstanceHandle == null) { callback(assign({ @@ -17835,7 +21924,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, exports.getInspectorDataForInstance(closestInstance))); } - closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; + closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; // Note: this is deprecated and we want to remove it ASAP. Keeping it here for React DevTools compatibility for now. var nativeViewTag = internalInstanceHandle.stateNode.canonical._nativeTag; nativeFabricUIManager.measure(internalInstanceHandle.stateNode.node, function (x, y, width, height, pageX, pageY) { @@ -17853,6 +21942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); } else if (inspectedView._internalFiberInstanceHandleDEV != null) { + // For Paper we fall back to the old strategy using the React tag. ReactNativePrivateInterface.UIManager.findSubviewIn(findNodeHandle(inspectedView), [locationX, locationY], function (nativeViewTag, left, top, width, height) { var inspectorData = exports.getInspectorDataForInstance(getInstanceFromTag(nativeViewTag)); callback(assign({}, inspectorData, { @@ -17885,11 +21975,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (componentOrHandle == null) { return null; - } + } // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN + if (componentOrHandle._nativeTag) { + // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN return componentOrHandle; - } + } // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN return componentOrHandle.canonical; } var hostInstance; @@ -17900,8 +21994,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return hostInstance; } if (hostInstance.canonical) { + // Fabric return hostInstance.canonical; - } + } // $FlowFixMe[incompatible-return] return hostInstance; } @@ -17919,6 +22014,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } if (typeof componentOrHandle === "number") { + // Already a node handle return componentOrHandle; } if (componentOrHandle._nativeTag) { @@ -17933,8 +22029,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (hostInstance == null) { return hostInstance; - } + } // TODO: the code is right but the types here are wrong. + // https://github.com/facebook/react/pull/12863 + if (hostInstance.canonical) { + // Fabric return hostInstance.canonical._nativeTag; } return hostInstance._nativeTag; @@ -17972,49 +22071,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function onRecoverableError(error$1) { + // TODO: Expose onRecoverableError option to userspace + // eslint-disable-next-line react-internal/no-production-logging, react-internal/warning-args error(error$1); } - function render(element, containerTag, callback) { + function render(element, containerTag, callback, concurrentRoot) { var root = roots.get(containerTag); if (!root) { - root = createContainer(containerTag, LegacyRoot, null, false, null, "", onRecoverableError); + // TODO (bvaughn): If we decide to keep the wrapper component, + // We could create a wrapper for containerTag as well to reduce special casing. + root = createContainer(containerTag, concurrentRoot ? ConcurrentRoot : LegacyRoot, null, false, null, "", onRecoverableError); roots.set(containerTag, root); } - updateContainer(element, root, null, callback); + updateContainer(element, root, null, callback); // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN return getPublicRootInstance(root); } function unmountComponentAtNode(containerTag) { + this.stopSurface(containerTag); + } + function stopSurface(containerTag) { var root = roots.get(containerTag); if (root) { + // TODO: Is it safe to reset this now or should I wait since this unmount could be deferred? updateContainer(null, root, null, function () { roots.delete(containerTag); }); } } - function unmountComponentAtNodeAndRemoveContainer(containerTag) { - unmountComponentAtNode(containerTag); - - ReactNativePrivateInterface.UIManager.removeRootView(containerTag); - } function createPortal$1(children, containerTag) { var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; return createPortal(children, containerTag, null, key); } setBatchingImplementation(batchedUpdates$1); - function computeComponentStackForErrorReporting(reactTag) { - var fiber = getInstanceFromTag(reactTag); - if (!fiber) { - return ""; - } - return getStackByFiberInDevAndProd(fiber); - } var roots = new Map(); - var Internals = { - computeComponentStackForErrorReporting: computeComponentStackForErrorReporting - }; injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromTag, + findFiberByHostInstance: getInstanceFromInstance, bundleType: 1, version: ReactVersion, rendererPackageName: "react-native-renderer", @@ -18023,23 +22115,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getInspectorDataForViewAtPoint: getInspectorDataForViewAtPoint.bind(null, findNodeHandle) } }); - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = createPortal$1; exports.dispatchCommand = dispatchCommand; exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; exports.findNodeHandle = findNodeHandle; exports.render = render; exports.sendAccessibilityEvent = sendAccessibilityEvent; + exports.stopSurface = stopSurface; exports.unmountComponentAtNode = unmountComponentAtNode; - exports.unmountComponentAtNodeAndRemoveContainer = unmountComponentAtNodeAndRemoveContainer; - exports.unstable_batchedUpdates = batchedUpdates; + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } })(); } -},35,[36,39,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js"); +},40,[41,44,276,413],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -18048,7 +22139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react.development.js"); } -},36,[37,38],"node_modules/react/index.js"); +},41,[42,43],"node_modules/react/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @license React @@ -18130,19 +22221,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e c = {}, k = null, h = null; - if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) { - J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); - } + if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); var g = arguments.length - 2; if (1 === g) c.children = e;else if (1 < g) { - for (var f = Array(g), m = 0; m < g; m++) { - f[m] = arguments[m + 2]; - } + for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2]; c.children = f; } - if (a && a.defaultProps) for (d in g = a.defaultProps, g) { - void 0 === c[d] && (c[d] = g[d]); - } + if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]); return { $$typeof: l, type: a, @@ -18203,9 +22288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e k = a[g]; var f = d + Q(k, g); h += R(k, b, e, f, c); - } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) { - k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c); - } else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); return h; } function S(a, b, e) { @@ -18283,16 +22366,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e void 0 !== b.ref && (k = b.ref, h = K.current); void 0 !== b.key && (c = "" + b.key); if (a.type && a.type.defaultProps) var g = a.type.defaultProps; - for (f in b) { - J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); - } + for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); } var f = arguments.length - 2; if (1 === f) d.children = e;else if (1 < f) { g = Array(f); - for (var m = 0; m < f; m++) { - g[m] = arguments[m + 2]; - } + for (var m = 0; m < f; m++) g[m] = arguments[m + 2]; d.children = g; } return { @@ -18411,8 +22490,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.useTransition = function () { return U.current.useTransition(); }; - exports.version = "18.1.0"; -},37,[],"node_modules/react/cjs/react.production.min.js"); + exports.version = "18.2.0"; +},42,[],"node_modules/react/cjs/react.production.min.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @license React @@ -18430,19 +22509,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (function () { 'use strict'; + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = '18.1.0'; - - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - - var enableLegacyHidden = false; - - var enableDebugTracing = false; + var ReactVersion = '18.2.0'; + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for('react.element'); var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); @@ -18469,20 +22545,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } + /** + * Keeps track of the current dispatcher. + */ var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ current: null }; + /** + * Keeps track of the current batch's configuration such as how long an update + * should suspend for if it needs to. + */ var ReactCurrentBatchConfig = { transition: null }; var ReactCurrentActQueue = { current: null, + // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: false, didScheduleLegacyUpdate: false }; + /** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ current: null }; var ReactDebugCurrentFrame = {}; @@ -18497,15 +22595,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { currentExtraStackFrame = stack; } - }; + }; // Stack implementation injected by the current renderer. ReactDebugCurrentFrame.getCurrentStack = null; ReactDebugCurrentFrame.getStackAddendum = function () { - var stack = ''; + var stack = ''; // Add an extra top frame while an element is being validated if (currentExtraStackFrame) { stack += currentExtraStackFrame; - } + } // Delegate to the injected renderer-specific implementation var impl = ReactDebugCurrentFrame.getCurrentStack; if (impl) { @@ -18514,6 +22612,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return stack; }; } + + // ----------------------------------------------------------------------------- + + var enableScopeAPI = false; // Experimental Create Event Handle API. + var enableCacheElement = false; + var enableTransitionTracing = false; // No known bugs, but needs performance testing + + var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber + // stuff. Intended to enable React core members to more easily debug scheduling + // issues in DEV builds. + + var enableDebugTracing = false; // Track which Fiber(s) schedule render work. + var ReactSharedInternals = { ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentBatchConfig: ReactCurrentBatchConfig, @@ -18524,6 +22635,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; } + // by calls to these methods by a Babel plugin. + // + // In PROD (or in packages without access to React internals), + // they are left as they are instead. + function warn(format) { { { @@ -18545,19 +22661,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== '') { format += '%s'; args = args.concat([stack]); - } + } // eslint-disable-next-line react-internal/safe-string-coercion var argsWithFormat = args.map(function (item) { return String(item); - }); + }); // Careful: RN currently depends on this prefix - argsWithFormat.unshift('Warning: ' + format); + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } @@ -18575,17 +22695,67 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didWarnStateUpdateForUnmountedComponent[warningKey] = true; } } + /** + * This is the abstract API for an update queue. + */ var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ isMounted: function isMounted(publicInstance) { return false; }, + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) { warnNoop(publicInstance, 'forceUpdate'); }, + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) { warnNoop(publicInstance, 'replaceState'); }, + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) { warnNoop(publicInstance, 'setState'); } @@ -18595,16 +22765,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { Object.freeze(emptyObject); } + /** + * Base class helpers for the updating state of a component. + */ function Component(props, context, updater) { this.props = props; - this.context = context; + this.context = context; // If a component has string refs, we will assign a different object later. - this.refs = emptyObject; + this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + // renderer. this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; + /** + * Sets a subset of the state. Always use this to mutate + * state. You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * There is no guarantee that calls to `setState` will run synchronously, + * as they may eventually be batched together. You can provide an optional + * callback that will be executed when the call to setState is actually + * completed. + * + * When a function is provided to setState, it will be called at some point in + * the future (not synchronously). It will be called with the up to date + * component arguments (state, props, context). These values can be different + * from this.* because your function may be called after receiveProps but before + * shouldComponentUpdate, and this new state, props, and context will not yet be + * assigned to this. + * + * @param {object|function} partialState Next partial state or function to + * produce next partial state to be merged with current state. + * @param {?function} callback Called after state is updated. + * @final + * @protected + */ Component.prototype.setState = function (partialState, callback) { if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) { @@ -18612,10 +22811,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } this.updater.enqueueSetState(this, partialState, callback, 'setState'); }; + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {?function} callback Called after update is complete. + * @final + * @protected + */ Component.prototype.forceUpdate = function (callback) { this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); }; + /** + * Deprecated APIs. These APIs used to exist on classic React classes but since + * we would like to deprecate them, we're not going to move them over to this + * modern base class. Instead, we define a getter that warns if it's accessed. + */ { var deprecatedAPIs = { @@ -18638,20 +22856,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function ComponentDummy() {} ComponentDummy.prototype = Component.prototype; + /** + * Convenience component with default shallow equality check for sCU. + */ function PureComponent(props, context, updater) { this.props = props; - this.context = context; + this.context = context; // If a component has string refs, we will assign a different object later. this.refs = emptyObject; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); - pureComponentPrototype.constructor = PureComponent; + pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods. assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = true; + // an immutable object with a single mutable value function createRef() { var refObject = { current: null @@ -18661,19 +22883,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return refObject; } - var isArrayImpl = Array.isArray; + var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare function isArray(a) { return isArrayImpl(a); } + /* + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol + * and Temporal.* types. See https://github.com/facebook/react/pull/22064. + * + * The functions in this module will throw an easier-to-understand, + * easier-to-debug exception with a clear errors message message explaining the + * problem. (Instead of a confusing exception thrown inside the implementation + * of the `value` object). + */ + // $FlowFixMe only called in DEV, so void return is not possible. function typeName(value) { { + // toStringTag is needed for namespaced types like Temporal.Instant var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; return type; } - } + } // $FlowFixMe only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -18686,13 +22919,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function testStringCoercion(value) { + // If you ended up here by following an exception call stack, here's what's + // happened: you supplied an object or symbol value to React (as a prop, key, + // DOM attribute, CSS property, string ref, etc.) and when React tried to + // coerce it to a string using `'' + value`, an exception was thrown. + // + // The most common types that will cause this exception are `Symbol` instances + // and Temporal objects like `Temporal.Instant`. But any object that has a + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this + // exception. (Library authors do this to prevent users from using built-in + // numeric operators like `+` or comparison operators like `>=` because custom + // methods are needed to perform accurate arithmetic or comparison.) + // + // To fix the problem, coerce this object or symbol value to a string before + // passing it to React. The most reliable way is usually `String(value)`. + // + // To find which value is throwing, check the browser or debugger console. + // Before this exception was thrown, there should be `console.error` output + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the + // problem and how that type was used: key, atrribute, input value prop, etc. + // In most cases, this console output also shows the component and its + // ancestor components where the exception happened. + // + // eslint-disable-next-line react-internal/safe-string-coercion return '' + value; } function checkKeyStringCoercion(value) { { if (willCoercionThrow(value)) { error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value)); - return testStringCoercion(value); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) } } } @@ -18704,14 +22960,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var functionName = innerType.displayName || innerType.name || ''; return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName; - } + } // Keep in sync with react-reconciler/getComponentNameFromFiber function getContextName(type) { return type.displayName || 'Context'; - } + } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. function getComponentNameFromType(type) { if (type == null) { + // Host root, text node or just invalid type. return null; } { @@ -18767,6 +23024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // eslint-disable-next-line no-fallthrough } } @@ -18846,32 +23104,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, instanceof check + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} props + * @param {*} key + * @param {string|object} ref + * @param {*} owner + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @internal + */ var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { var element = { + // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element type: type, key: key, ref: ref, props: props, + // Record the component responsible for creating this element. _owner: owner }; { - element._store = {}; + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. Object.defineProperty(element._store, 'validated', { configurable: false, enumerable: false, writable: true, value: false - }); + }); // self and source are DEV only properties. Object.defineProperty(element, '_self', { configurable: false, enumerable: false, writable: false, value: self - }); + }); // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. Object.defineProperty(element, '_source', { configurable: false, @@ -18886,9 +23175,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return element; }; + /** + * Create and return a new ReactElement of the given type. + * See https://reactjs.org/docs/react-api.html#createelement + */ function createElement(type, config, children) { - var propName; + var propName; // Reserved names are extracted var props = {}; var key = null; @@ -18909,14 +23202,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key = '' + config.key; } self = config.__self === undefined ? null : config.__self; - source = config.__source === undefined ? null : config.__source; + source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object for (propName in config) { if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } } - } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. var childrenLength = arguments.length - 2; if (childrenLength === 1) { @@ -18932,7 +23226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } props.children = childArray; - } + } // Resolve default props if (type && type.defaultProps) { var defaultProps = type.defaultProps; @@ -18959,25 +23253,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); return newElement; } + /** + * Clone and return a new ReactElement using element as the starting point. + * See https://reactjs.org/docs/react-api.html#cloneelement + */ function cloneElement(element, config, children) { if (element === null || element === undefined) { throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); } - var propName; + var propName; // Original props are copied - var props = assign({}, element.props); + var props = assign({}, element.props); // Reserved names are extracted var key = element.key; - var ref = element.ref; + var ref = element.ref; // Self is preserved since the owner is preserved. - var self = element._self; + var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a + // transpiler, and the original source is probably a better indicator of the + // true owner. - var source = element._source; + var source = element._source; // Owner will be preserved, unless ref is overridden var owner = element._owner; if (config != null) { if (hasValidRef(config)) { + // Silently steal the ref from the parent. ref = config.ref; owner = ReactCurrentOwner.current; } @@ -18986,7 +23287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e checkKeyStringCoercion(config.key); } key = '' + config.key; - } + } // Remaining properties override existing props var defaultProps; if (element.type && element.type.defaultProps) { @@ -18995,13 +23296,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (propName in config) { if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { if (config[propName] === undefined && defaultProps !== undefined) { + // Resolve default props props[propName] = defaultProps[propName]; } else { props[propName] = config[propName]; } } } - } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. var childrenLength = arguments.length - 2; if (childrenLength === 1) { @@ -19015,12 +23318,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return ReactElement(element.type, key, ref, self, source, owner, props); } + /** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ function isValidElement(object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } var SEPARATOR = '.'; var SUBSEPARATOR = ':'; + /** + * Escape and wrap key so it is safe to use as a reactid + * + * @param {string} key to be escaped. + * @return {string} the escaped key. + */ function escape(key) { var escapeRegex = /[=:]/g; @@ -19033,26 +23349,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return '$' + escapedString; } + /** + * TODO: Test that a single child and an array with one item have the same key + * pattern. + */ var didWarnAboutMaps = false; var userProvidedKeyEscapeRegex = /\/+/g; function escapeUserProvidedKey(text) { return text.replace(userProvidedKeyEscapeRegex, '$&/'); } + /** + * Generate a key string that identifies a element within a set. + * + * @param {*} element A element that could contain a manual key. + * @param {number} index Index that is used if a manual key is not provided. + * @return {string} + */ function getElementKey(element, index) { + // Do some typechecking here since we call this blindly. We want to ensure + // that we don't block potential future ES APIs. if (typeof element === 'object' && element !== null && element.key != null) { + // Explicit key { checkKeyStringCoercion(element.key); } return escape('' + element.key); - } + } // Implicit key determined by the index in the set return index.toString(36); } function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { var type = typeof children; if (type === 'undefined' || type === 'boolean') { + // All of the above are perceived as null. children = null; } var invokeCallback = false; @@ -19074,7 +23405,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (invokeCallback) { var _child = children; - var mappedChild = callback(_child); + var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array + // so that it's consistent if the number of children grows: var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; if (isArray(mappedChild)) { @@ -19088,13 +23420,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (mappedChild != null) { if (isValidElement(mappedChild)) { { + // The `if` statement here prevents auto-disabling of the safe + // coercion ESLint rule, so we must manually disable it below. + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { checkKeyStringCoercion(mappedChild.key); } } mappedChild = cloneAndReplaceKey(mappedChild, + // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children escapedPrefix + ( + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key mappedChild.key && (!_child || _child.key !== mappedChild.key) ? + // $FlowFixMe Flow incorrectly thinks existing element's key can be a number + // eslint-disable-next-line react-internal/safe-string-coercion escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey); } array.push(mappedChild); @@ -19103,7 +23443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var child; var nextName; - var subtreeCount = 0; + var subtreeCount = 0; // Count of children found in the current subtree. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; if (isArray(children)) { @@ -19117,6 +23457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof iteratorFn === 'function') { var iterableChildren = children; { + // Warn about using Maps as children if (iteratorFn === iterableChildren.entries) { if (!didWarnAboutMaps) { warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.'); @@ -19133,6 +23474,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); } } else if (type === 'object') { + // eslint-disable-next-line react-internal/safe-string-coercion var childrenString = String(children); throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -19140,6 +23482,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return subtreeCount; } + /** + * Maps children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenmap + * + * The provided mapFunction(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func The map function. + * @param {*} context Context for mapFunction. + * @return {object} Object containing the ordered map of results. + */ function mapChildren(children, func, context) { if (children == null) { return children; @@ -19151,27 +23506,68 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return result; } + /** + * Count the number of children that are typically specified as + * `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrencount + * + * @param {?*} children Children tree container. + * @return {number} The number of children. + */ function countChildren(children) { var n = 0; mapChildren(children, function () { - n++; + n++; // Don't return anything }); return n; } + /** + * Iterates through children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenforeach + * + * The provided forEachFunc(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} forEachFunc + * @param {*} forEachContext Context for forEachContext. + */ function forEachChildren(children, forEachFunc, forEachContext) { mapChildren(children, function () { - forEachFunc.apply(this, arguments); + forEachFunc.apply(this, arguments); // Don't return anything. }, forEachContext); } + /** + * Flatten a children object (typically specified as `props.children`) and + * return an array with appropriately re-keyed children. + * + * See https://reactjs.org/docs/react-api.html#reactchildrentoarray + */ function toArray(children) { return mapChildren(children, function (child) { return child; }) || []; } + /** + * Returns the first child in a collection of children and verifies that there + * is only one child in the collection. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenonly + * + * The current implementation of this function assumes that a single child gets + * passed without a wrapper, but the purpose of this helper function is to + * abstract away the particular structure of children. + * + * @param {?object} children Child collection structure. + * @return {ReactElement} The first and only `ReactElement` contained in the + * structure. + */ function onlyChild(children) { if (!isValidElement(children)) { @@ -19180,13 +23576,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return children; } function createContext(defaultValue) { + // TODO: Second argument used to be an optional `calculateChangedBits` + // function. Warn to reserve for future use? var context = { $$typeof: REACT_CONTEXT_TYPE, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. _currentValue: defaultValue, _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. _threadCount: 0, + // These are circular Provider: null, Consumer: null, + // Add these to use same hidden class in VM as ServerContext _defaultValue: null, _globalName: null }; @@ -19198,10 +23605,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var hasWarnedAboutUsingConsumerProvider = false; var hasWarnedAboutDisplayNameOnConsumer = false; { + // A separate object, but proxies back to the original context object for + // backwards compatibility. It has a different $$typeof, so we can properly + // warn for the incorrect usage of Context as a Consumer. var Consumer = { $$typeof: REACT_CONTEXT_TYPE, _context: context - }; + }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here Object.defineProperties(Consumer, { Provider: { @@ -19260,7 +23670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - }); + }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty context.Consumer = Consumer; } @@ -19277,22 +23687,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function lazyInitializer(payload) { if (payload._status === Uninitialized) { var ctor = payload._result; - var thenable = ctor(); + var thenable = ctor(); // Transition to the next state. + // This might throw either because it's missing or throws. If so, we treat it + // as still uninitialized and try again next time. Which is the same as what + // happens if the ctor or any wrappers processing the ctor throws. This might + // end up fixing it if the resolution was a concurrency bug. thenable.then(function (moduleObject) { if (payload._status === Pending || payload._status === Uninitialized) { + // Transition to the next state. var resolved = payload; resolved._status = Resolved; resolved._result = moduleObject; } }, function (error) { if (payload._status === Pending || payload._status === Uninitialized) { + // Transition to the next state. var rejected = payload; rejected._status = Rejected; rejected._result = error; } }); if (payload._status === Uninitialized) { + // In case, we're still uninitialized, then we're waiting for the thenable + // to resolve. Set it as pending in the meantime. var pending = payload; pending._status = Pending; pending._result = thenable; @@ -19303,12 +23721,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { if (moduleObject === undefined) { error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + + // Break up imports to avoid accidentally parsing them as dependencies. 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject); } } { if (!('default' in moduleObject)) { error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + + // Break up imports to avoid accidentally parsing them as dependencies. 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject); } } @@ -19319,6 +23739,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function lazy(ctor) { var payload = { + // We use these fields to store the result. _status: Uninitialized, _result: ctor }; @@ -19328,8 +23749,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _init: lazyInitializer }; { + // In production, this would just set it on the object. var defaultProps; - var propTypes; + var propTypes; // $FlowFixMe Object.defineProperties(lazyType, { defaultProps: { @@ -19339,7 +23761,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, set: function set(newDefaultProps) { error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); - defaultProps = newDefaultProps; + defaultProps = newDefaultProps; // Match production behavior more closely: + // $FlowFixMe Object.defineProperty(lazyType, 'defaultProps', { enumerable: true @@ -19353,7 +23776,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, set: function set(newPropTypes) { error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); - propTypes = newPropTypes; + propTypes = newPropTypes; // Match production behavior more closely: + // $FlowFixMe Object.defineProperty(lazyType, 'propTypes', { enumerable: true @@ -19394,7 +23818,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ownName; }, set: function set(name) { - ownName = name; + ownName = name; // The inner component shouldn't inherit this display name in most cases, + // because the component may be used elsewhere. + // But it's nice for anonymous functions to inherit the name, + // so that our component-stack generation logic will display their frames. + // An anonymous function generally suggests a pattern like: + // React.forwardRef((props, ref) => {...}); + // This kind of inner function is not used elsewhere so the side effect is okay. if (!render.name && !render.displayName) { render.displayName = name; @@ -19411,13 +23841,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { return true; - } + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { return true; } if (typeof type === 'object' && type !== null) { if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || + // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { return true; } @@ -19444,7 +23878,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ownName; }, set: function set(name) { - ownName = name; + ownName = name; // The inner component shouldn't inherit this display name in most cases, + // because the component may be used elsewhere. + // But it's nice for anonymous functions to inherit the name, + // so that our component-stack generation logic will display their frames. + // An anonymous function generally suggests a pattern like: + // React.memo((props) => {...}); + // This kind of inner function is not used elsewhere so the side effect is okay. if (!type.name && !type.displayName) { type.displayName = name; @@ -19460,15 +23900,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (dispatcher === null) { 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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.'); } - } + } // Will result in a null access error if accessed outside render phase. We + // intentionally don't throw our own error because this is in a hot path. + // Also helps ensure this is inlined. return dispatcher; } function useContext(Context) { var dispatcher = resolveDispatcher(); { + // TODO: add a more generic warning for invalid values. if (Context._context !== undefined) { - var realContext = Context._context; + var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs + // and nobody should be using this in existing code. if (realContext.Consumer === Context) { error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); @@ -19538,6 +23982,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); } + // Helpers to patch console.logs to avoid logging during side-effect free + // replaying on render function. This currently only patches the object + // lazily which won't cover if the log function was extracted eagerly. + // We could also eagerly patch the method. var disabledDepth = 0; var prevLog; var prevInfo; @@ -19551,20 +23999,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function disableLogs() { { if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ prevLog = console.log; prevInfo = console.info; prevWarn = console.warn; prevError = console.error; prevGroup = console.group; prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 var props = { configurable: true, enumerable: true, value: disabledLog, writable: true - }; + }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { info: props, @@ -19575,6 +24024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e groupCollapsed: props, groupEnd: props }); + /* eslint-enable react-internal/no-production-logging */ } disabledDepth++; @@ -19584,11 +24034,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { disabledDepth--; if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ var props = { configurable: true, enumerable: true, writable: true - }; + }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { log: assign({}, props, { @@ -19613,6 +24064,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: prevGroupEnd }) }); + /* eslint-enable react-internal/no-production-logging */ } if (disabledDepth < 0) { @@ -19625,13 +24077,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === undefined) { + // Extract the VM specific prefix used by each line. try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ''; } - } + } // We use the prefix to ensure our stacks line up with native stack frames. return '\n' + prefix + name; } @@ -19643,6 +24096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e componentFrameCache = new PossiblyWeakMap(); } function describeNativeComponentFrame(fn, construct) { + // If something asked for a stack inside a fake render, it should get ignored. if (!fn || reentry) { return ''; } @@ -19654,28 +24108,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var control; reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined. Error.prepareStackTrace = undefined; var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher$1.current; + previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function + // for warnings. ReactCurrentDispatcher$1.current = null; disableLogs(); } try { + // This should throw. if (construct) { + // Something should be setting the props in the constructor. var Fake = function Fake() { throw Error(); - }; + }; // $FlowFixMe Object.defineProperty(Fake.prototype, 'props', { set: function set() { + // We use a throwing setter instead of frozen or non-writable props + // because that won't throw in a non-strict mode function. throw Error(); } }); if (typeof Reflect === 'object' && Reflect.construct) { + // We construct a different control for this case to include any extra + // frames added by the construct call. try { Reflect.construct(Fake, []); } catch (x) { @@ -19699,23 +24160,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fn(); } } catch (sample) { + // This is inlined manually because closure doesn't do it for us. if (sample && control && typeof sample.stack === 'string') { + // This extracts the first frame from the sample that isn't also in the control. + // Skipping one frame that we assume is the frame that calls the two. var sampleLines = sample.stack.split('\n'); var controlLines = control.stack.split('\n'); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + // We expect at least one stack frame to be shared. + // Typically this will be the root most one. However, stack frames may be + // cut off due to maximum stack limits. In this case, one maybe cut off + // earlier than the other. We assume that the sample is longer or the same + // and there for cut off earlier. So we should find the root most frame in + // the sample somewhere in the control. c--; } for (; s >= 1 && c >= 0; s--, c--) { + // Next we find the first one that isn't the same which should be the + // frame that called our sample function and the control. if (sampleLines[s] !== controlLines[c]) { + // In V8, the first line is describing the message but other VMs don't. + // If we're about to return the first line, and the control is also on the same + // line, that's a pretty good indicator that our sample threw at same line as + // the control. I.e. before we entered the sample frame. So we ignore this result. + // This can happen if you passed a class to function component, or non-function. if (s !== 1 || c !== 1) { do { s--; - c--; + c--; // We may still have similar intermediate frames from the construct call. + // The next one that isn't the same should be our match though. if (c < 0 || sampleLines[s] !== controlLines[c]) { - var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "" + // but we have a user-provided "displayName" + // splice it in to make the stack more readable. if (fn.displayName && _frame.includes('')) { _frame = _frame.replace('', fn.displayName); @@ -19724,7 +24205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof fn === 'function') { componentFrameCache.set(fn, _frame); } - } + } // Return the line we found. return _frame; } @@ -19741,7 +24222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e reenableLogs(); } Error.prepareStackTrace = previousPrepareStackTrace; - } + } // Fallback to just using the name if we couldn't make it throw. var name = fn ? fn.displayName || fn.name : ''; var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; @@ -19784,6 +24265,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render); case REACT_MEMO_TYPE: + // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_LAZY_TYPE: { @@ -19791,6 +24273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var payload = lazyComponent._payload; var init = lazyComponent._init; try { + // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } @@ -19813,13 +24296,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function checkPropTypes(typeSpecs, values, location, componentName, element) { { + // $FlowFixMe This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. if (typeof typeSpecs[typeSpecName] !== 'function') { + // eslint-disable-next-line react-internal/prod-error-codes var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); err.name = 'Invariant Violation'; throw err; @@ -19834,6 +24323,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCurrentlyValidatingElement(null); } if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. loggedTypeFailures[error$1.message] = true; setCurrentlyValidatingElement(element); error('Failed %s type: %s', location, error$1.message); @@ -19881,6 +24372,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return ''; } + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ var ownerHasKeyUseWarning = {}; function getCurrentComponentErrorInfo(parentType) { @@ -19893,6 +24389,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return info; } + /** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ function validateExplicitKey(element, parentType) { if (!element._store || element._store.validated || element.key != null) { @@ -19903,10 +24410,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. var childOwner = ''; if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + // Give the component that originally created this child. childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; } { @@ -19915,6 +24425,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCurrentlyValidatingElement$1(null); } } + /** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ function validateChildKeys(node, parentType) { if (typeof node !== 'object') { @@ -19928,12 +24447,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } else if (isValidElement(node)) { + // This element was passed in a valid location. if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); if (typeof iteratorFn === 'function') { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); var step; @@ -19946,6 +24468,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ function validatePropTypes(element) { { @@ -19957,16 +24485,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof type === 'function') { propTypes = type.propTypes; } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || + // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. type.$$typeof === REACT_MEMO_TYPE)) { propTypes = type.propTypes; } else { return; } if (propTypes) { + // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, 'prop', name, element); } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown'); @@ -19976,6 +24507,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ function validateFragmentProps(fragment) { { @@ -19997,7 +24532,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function createElementWithValidation(type, props, children) { - var validType = isValidElementType(type); + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. if (!validType) { var info = ''; @@ -20025,11 +24561,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); } } - var element = createElement.apply(this, arguments); + var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { return element; - } + } // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) if (validType) { for (var i = 2; i < arguments.length; i++) { @@ -20051,7 +24592,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!didWarnAboutDeprecatedCreateFactory) { didWarnAboutDeprecatedCreateFactory = true; warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); - } + } // Legacy hook: remove it Object.defineProperty(validatedFactory, 'type', { enumerable: false, @@ -20101,11 +24642,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function enqueueTask(task) { if (enqueueTaskImpl === null) { try { + // read require off the module object to get around the bundlers. + // we don't want them to detect a require and bundle a Node polyfill. var requireString = ('require' + Math.random()).slice(0, 7); - var nodeRequire = module && module[requireString]; + var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's + // version of setImmediate, bypassing fake timers if any. enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate; } catch (_err) { + // we're in a browser + // we can't use regular timers because they may still be faked + // so we try MessageChannel+postMessage instead enqueueTaskImpl = function enqueueTaskImpl(callback) { { if (didWarnAboutMessageChannel === false) { @@ -20127,16 +24674,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var didWarnNoAwaitAct = false; function act(callback) { { + // `act` calls can be nested, so we track the depth. This represents the + // number of `act` scopes on the stack. var prevActScopeDepth = actScopeDepth; actScopeDepth++; if (ReactCurrentActQueue.current === null) { + // This is the outermost `act` scope. Initialize the queue. The reconciler + // will detect the queue and use it instead of Scheduler. ReactCurrentActQueue.current = []; } var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; var result; try { + // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only + // set to `true` while the given callback is executed, not for updates + // triggered during an async event, because this is how the legacy + // implementation of `act` behaved. ReactCurrentActQueue.isBatchingLegacy = true; - result = callback(); + result = callback(); // Replicate behavior of original `act` implementation in legacy mode, + // which flushed updates immediately after the scope function exits, even + // if it's an async function. if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { var queue = ReactCurrentActQueue.current; @@ -20152,7 +24709,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; } if (result !== null && typeof result === 'object' && typeof result.then === 'function') { - var thenableResult = result; + var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait + // for it to resolve before exiting the current scope. var wasAwaited = false; var thenable = { @@ -20161,11 +24719,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thenableResult.then(function (returnValue) { popActScope(prevActScopeDepth); if (actScopeDepth === 0) { + // We've exited the outermost act scope. Recursively flush the + // queue until there's no remaining work. recursivelyFlushAsyncActWork(returnValue, resolve, reject); } else { resolve(returnValue); } }, function (error) { + // The callback threw an error. popActScope(prevActScopeDepth); reject(error); }); @@ -20173,6 +24734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; { if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') { + // eslint-disable-next-line no-undef Promise.resolve().then(function () {}).then(function () { if (!wasAwaited) { didWarnNoAwaitAct = true; @@ -20183,19 +24745,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return thenable; } else { - var returnValue = result; + var returnValue = result; // The callback is not an async function. Exit the current scope + // immediately, without awaiting. popActScope(prevActScopeDepth); if (actScopeDepth === 0) { + // Exiting the outermost act scope. Flush the queue. var _queue = ReactCurrentActQueue.current; if (_queue !== null) { flushActQueue(_queue); ReactCurrentActQueue.current = null; - } + } // Return a thenable. If the user awaits it, we'll flush again in + // case additional work was scheduled by a microtask. var _thenable = { then: function then(resolve, reject) { + // Confirm we haven't re-entered another `act` scope, in case + // the user does something weird like await the thenable + // multiple times. if (ReactCurrentActQueue.current === null) { + // Recursively flush the queue until there's no remaining work. ReactCurrentActQueue.current = []; recursivelyFlushAsyncActWork(returnValue, resolve, reject); } else { @@ -20205,6 +24774,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return _thenable; } else { + // Since we're inside a nested `act` scope, the returned thenable + // immediately resolves. The outer scope will flush the queue. var _thenable2 = { then: function then(resolve, reject) { resolve(returnValue); @@ -20231,9 +24802,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flushActQueue(queue); enqueueTask(function () { if (queue.length === 0) { + // No additional work was scheduled. Finish. ReactCurrentActQueue.current = null; resolve(returnValue); } else { + // Keep flushing work until there's none left. recursivelyFlushAsyncActWork(returnValue, resolve, reject); } }); @@ -20249,6 +24822,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function flushActQueue(queue) { { if (!isFlushing) { + // Prevent re-entrance. isFlushing = true; var i = 0; try { @@ -20260,6 +24834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } queue.length = 0; } catch (error) { + // If something throws, leave the remaining callbacks on the queue. queue = queue.slice(i + 1); throw error; } finally { @@ -20313,23 +24888,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.useSyncExternalStore = useSyncExternalStore; exports.useTransition = useTransition; exports.version = ReactVersion; + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } })(); } -},38,[],"node_modules/react/cjs/react.development.js"); +},43,[],"node_modules/react/cjs/react.development.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { _$$_REQUIRE(_dependencyMap[0], "../Core/InitializeCore"); -},39,[40],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js"); +},44,[45],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /** + * Sets up global variables typical in most JavaScript environments. + * + * 1. Global timers (via `setTimeout` etc). + * 2. Global console object. + * 3. Hooks for printing stack traces with source maps. + * + * Leaves enough room in the environment for implementing your own: + * + * 1. Require system. + * 2. Bridged modules. + * + */ 'use strict'; var start = Date.now(); _$$_REQUIRE(_dependencyMap[0], "./setUpGlobals"); - _$$_REQUIRE(_dependencyMap[1], "./setUpPerformance"); - _$$_REQUIRE(_dependencyMap[2], "./setUpSystrace"); + _$$_REQUIRE(_dependencyMap[1], "./setUpDOM"); + _$$_REQUIRE(_dependencyMap[2], "./setUpPerformance"); _$$_REQUIRE(_dependencyMap[3], "./setUpErrorHandling"); _$$_REQUIRE(_dependencyMap[4], "./polyfillPromise"); _$$_REQUIRE(_dependencyMap[5], "./setUpRegeneratorRuntime"); @@ -20342,262 +24941,174 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (__DEV__) { _$$_REQUIRE(_dependencyMap[12], "./checkNativeVersion"); _$$_REQUIRE(_dependencyMap[13], "./setUpDeveloperTools"); - _$$_REQUIRE(_dependencyMap[14], "../LogBox/LogBox").install(); - } - _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_start', _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").currentTimestamp() - (Date.now() - start)); - _$$_REQUIRE(_dependencyMap[15], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_end'); -},40,[41,42,43,44,77,105,108,113,142,147,148,172,174,177,59,122],"node_modules/react-native/Libraries/Core/InitializeCore.js"); + _$$_REQUIRE(_dependencyMap[14], "../LogBox/LogBox").default.install(); + } + _$$_REQUIRE(_dependencyMap[15], "../ReactNative/AppRegistry"); + // We could just call GlobalPerformanceLogger.markPoint at the top of the file, + // but then we'd be excluding the time it took to require the logger. + // Instead, we just use Date.now and backdate the timestamp. + _$$_REQUIRE(_dependencyMap[16], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_start', _$$_REQUIRE(_dependencyMap[16], "../Utilities/GlobalPerformanceLogger").currentTimestamp() - (Date.now() - start)); + _$$_REQUIRE(_dependencyMap[16], "../Utilities/GlobalPerformanceLogger").markPoint('initializeCore_end'); +},45,[46,47,55,66,93,121,124,129,159,164,165,187,189,192,75,215,138],"node_modules/react-native/Libraries/Core/InitializeCore.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Sets up global variables for React Native. + * You can use this module directly, or just require InitializeCore. + */ if (global.window === undefined) { + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. global.window = global; } if (global.self === undefined) { + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. global.self = global; } + // Set up process + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. global.process = global.process || {}; + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. global.process.env = global.process.env || {}; if (!global.process.env.NODE_ENV) { + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; } -},41,[],"node_modules/react-native/Libraries/Core/setUpGlobals.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - if (!global.performance) { - global.performance = {}; - } - - if (typeof global.performance.now !== 'function') { - global.performance.now = function () { - var performanceNow = global.nativePerformanceNow || Date.now; - return performanceNow(); - }; - } -},42,[],"node_modules/react-native/Libraries/Core/setUpPerformance.js"); +},46,[],"node_modules/react-native/Libraries/Core/setUpGlobals.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _DOMRect = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../DOM/Geometry/DOMRect")); + var _DOMRectReadOnly = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../DOM/Geometry/DOMRectReadOnly")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - 'use strict'; + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it + global.DOMRect = _DOMRect.default; - if (global.__RCTProfileIsProfiling) { - var Systrace = _$$_REQUIRE(_dependencyMap[0], "../Performance/Systrace"); - Systrace.installReactHook(); - Systrace.setEnabled(true); - } -},43,[28],"node_modules/react-native/Libraries/Core/setUpSystrace.js"); + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it + global.DOMRectReadOnly = _DOMRectReadOnly.default; +},47,[3,48,54],"node_modules/react-native/Libraries/Core/setUpDOM.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").installConsoleErrorReporter(); - - if (!global.__fbDisableExceptionsManager) { - var handleError = function handleError(e, isFatal) { - try { - _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException(e, isFatal); - } catch (ee) { - console.log('Failed to print error: ', ee.message); - throw e; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _DOMRectReadOnly2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./DOMRectReadOnly")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ /** + * The JSDoc comments in this file have been extracted from [DOMRect](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect). + * Content by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/contributors.txt), + * licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/). + */ + // flowlint unsafe-getters-setters:off + /** + * A `DOMRect` describes the size and position of a rectangle. + * The type of box represented by the `DOMRect` is specified by the method or property that returned it. + * + * This is a (mostly) spec-compliant version of `DOMRect` (https://developer.mozilla.org/en-US/docs/Web/API/DOMRect). + */ + var DOMRect = /*#__PURE__*/function (_DOMRectReadOnly) { + (0, _inherits2.default)(DOMRect, _DOMRectReadOnly); + var _super = _createSuper(DOMRect); + function DOMRect() { + (0, _classCallCheck2.default)(this, DOMRect); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(DOMRect, [{ + key: "x", + get: + /** + * The x coordinate of the `DOMRect`'s origin. + */ + function get() { + return this.__getInternalX(); + }, + set: function set(x) { + this.__setInternalX(x); } - }; - var ErrorUtils = _$$_REQUIRE(_dependencyMap[1], "../vendor/core/ErrorUtils"); - ErrorUtils.setGlobalHandler(handleError); - } -},44,[45,29],"node_modules/react-native/Libraries/Core/setUpErrorHandling.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var SyntheticError = function (_Error) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(SyntheticError, _Error); - var _super = _createSuper(SyntheticError); - function SyntheticError() { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, SyntheticError); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + /** + * The y coordinate of the `DOMRect`'s origin. + */ + }, { + key: "y", + get: function get() { + return this.__getInternalY(); + }, + set: function set(y) { + this.__setInternalY(y); } - _this = _super.call.apply(_super, [this].concat(args)); - _this.name = ''; - return _this; - } - return _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(SyntheticError); - }(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/wrapNativeSuper")(Error)); - var userExceptionDecorator; - var inUserExceptionDecorator = false; - function unstable_setExceptionDecorator(exceptionDecorator) { - userExceptionDecorator = exceptionDecorator; - } - function preprocessException(data) { - if (userExceptionDecorator && !inUserExceptionDecorator) { - inUserExceptionDecorator = true; - try { - return userExceptionDecorator(data); - } catch (_unused) { - } finally { - inUserExceptionDecorator = false; + /** + * The width of the `DOMRect`. + */ + }, { + key: "width", + get: function get() { + return this.__getInternalWidth(); + }, + set: function set(width) { + this.__setInternalWidth(width); } - } - return data; - } - var exceptionID = 0; - function reportException(e, isFatal, reportToConsole) { - var parseErrorStack = _$$_REQUIRE(_dependencyMap[6], "./Devtools/parseErrorStack"); - var stack = parseErrorStack(e == null ? void 0 : e.stack); - var currentExceptionID = ++exceptionID; - var originalMessage = e.message || ''; - var message = originalMessage; - if (e.componentStack != null) { - message += "\n\nThis error is located at:" + e.componentStack; - } - var namePrefix = e.name == null || e.name === '' ? '' : e.name + ": "; - if (!message.startsWith(namePrefix)) { - message = namePrefix + message; - } - message = e.jsEngine == null ? message : message + ", js engine: " + e.jsEngine; - var data = preprocessException({ - message: message, - originalMessage: message === originalMessage ? null : originalMessage, - name: e.name == null || e.name === '' ? null : e.name, - componentStack: typeof e.componentStack === 'string' ? e.componentStack : null, - stack: stack, - id: currentExceptionID, - isFatal: isFatal, - extraData: { - jsEngine: e.jsEngine, - rawStack: e.stack - } - }); - if (reportToConsole) { - console.error(data.message); - } - if (__DEV__) { - var LogBox = _$$_REQUIRE(_dependencyMap[7], "../LogBox/LogBox"); - LogBox.addException(Object.assign({}, data, { - isComponentError: !!e.isComponentError - })); - } else if (isFatal || e.type !== 'warn') { - var NativeExceptionsManager = _$$_REQUIRE(_dependencyMap[8], "./NativeExceptionsManager").default; - if (NativeExceptionsManager) { - NativeExceptionsManager.reportException(data); + /** + * The height of the `DOMRect`. + */ + }, { + key: "height", + get: function get() { + return this.__getInternalHeight(); + }, + set: function set(height) { + this.__setInternalHeight(height); } - } - } - var inExceptionHandler = false; - function handleException(e, isFatal) { - var error; - if (e instanceof Error) { - error = e; - } else { - error = new SyntheticError(e); - } - try { - inExceptionHandler = true; - reportException(error, isFatal, true); - } finally { - inExceptionHandler = false; - } - } - - function reactConsoleErrorHandler() { - var _console; - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - (_console = console)._errorOriginal.apply(_console, args); - if (!console.reportErrorsAsExceptions) { - return; - } - if (inExceptionHandler) { - return; - } - var error; - var firstArg = args[0]; - if (firstArg != null && firstArg.stack) { - error = firstArg; - } else { - var stringifySafe = _$$_REQUIRE(_dependencyMap[9], "../Utilities/stringifySafe").default; - if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ')) { - return; + /** + * Creates a new `DOMRect` object with a given location and dimensions. + */ + }], [{ + key: "fromRect", + value: function fromRect(rect) { + if (!rect) { + return new DOMRect(); + } + return new DOMRect(rect.x, rect.y, rect.width, rect.height); } - var message = args.map(function (arg) { - return typeof arg === 'string' ? arg : stringifySafe(arg); - }).join(' '); - error = new SyntheticError(message); - error.name = 'console.error'; - } - reportException( - error, false, - false); - } - - function installConsoleErrorReporter() { - if (console._errorOriginal) { - return; - } - console._errorOriginal = console.error.bind(console); - console.error = reactConsoleErrorHandler; - if (console.reportErrorsAsExceptions === undefined) { - console.reportErrorsAsExceptions = true; - } - } - module.exports = { - handleException: handleException, - installConsoleErrorReporter: installConsoleErrorReporter, - SyntheticError: SyntheticError, - unstable_setExceptionDecorator: unstable_setExceptionDecorator - }; -},45,[46,47,50,12,13,52,56,59,76,26],"node_modules/react-native/Libraries/Core/ExceptionsManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _getPrototypeOf(o) { - module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _getPrototypeOf(o); - } - module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; -},46,[],"node_modules/@babel/runtime/helpers/getPrototypeOf.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _possibleConstructorReturn(self, call) { - if (call && (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _$$_REQUIRE(_dependencyMap[1], "./assertThisInitialized.js")(self); - } - module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; -},47,[48,49],"node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _typeof(obj) { - "@babel/helpers - typeof"; - - return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); - } - module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; -},48,[],"node_modules/@babel/runtime/helpers/typeof.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; - } - module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; -},49,[],"node_modules/@babel/runtime/helpers/assertThisInitialized.js"); + }]); + return DOMRect; + }(_DOMRectReadOnly2.default); + exports.default = DOMRect; +},48,[3,12,13,49,51,53,54],"node_modules/react-native/Libraries/DOM/Geometry/DOMRect.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { @@ -20616,7 +25127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (superClass) _$$_REQUIRE(_dependencyMap[0], "./setPrototypeOf.js")(subClass, superClass); } module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; -},50,[51],"node_modules/@babel/runtime/helpers/inherits.js"); +},49,[50],"node_modules/@babel/runtime/helpers/inherits.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _setPrototypeOf(o, p) { module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { @@ -20626,7 +25137,1488 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _setPrototypeOf(o, p); } module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; -},51,[],"node_modules/@babel/runtime/helpers/setPrototypeOf.js"); +},50,[],"node_modules/@babel/runtime/helpers/setPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _possibleConstructorReturn(self, call) { + if (call && (_$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return _$$_REQUIRE(_dependencyMap[1], "./assertThisInitialized.js")(self); + } + module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; +},51,[16,52],"node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; +},52,[],"node_modules/@babel/runtime/helpers/assertThisInitialized.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _getPrototypeOf(o) { + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _getPrototypeOf(o); + } + module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; +},53,[],"node_modules/@babel/runtime/helpers/getPrototypeOf.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * The JSDoc comments in this file have been extracted from [DOMRectReadOnly](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly). + * Content by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/contributors.txt), + * licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/). + */ + + // flowlint sketchy-null:off, unsafe-getters-setters:off + + function castToNumber(value) { + return value ? Number(value) : 0; + } + + /** + * The `DOMRectReadOnly` interface specifies the standard properties used by `DOMRect` to define a rectangle whose properties are immutable. + * + * This is a (mostly) spec-compliant version of `DOMRectReadOnly` (https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly). + */ + var DOMRectReadOnly = /*#__PURE__*/function () { + function DOMRectReadOnly(x, y, width, height) { + (0, _classCallCheck2.default)(this, DOMRectReadOnly); + this.__setInternalX(x); + this.__setInternalY(y); + this.__setInternalWidth(width); + this.__setInternalHeight(height); + } + + /** + * The x coordinate of the `DOMRectReadOnly`'s origin. + */ + (0, _createClass2.default)(DOMRectReadOnly, [{ + key: "x", + get: function get() { + return this._x; + } + + /** + * The y coordinate of the `DOMRectReadOnly`'s origin. + */ + }, { + key: "y", + get: function get() { + return this._y; + } + + /** + * The width of the `DOMRectReadOnly`. + */ + }, { + key: "width", + get: function get() { + return this._width; + } + + /** + * The height of the `DOMRectReadOnly`. + */ + }, { + key: "height", + get: function get() { + return this._height; + } + + /** + * Returns the top coordinate value of the `DOMRect` (has the same value as `y`, or `y + height` if `height` is negative). + */ + }, { + key: "top", + get: function get() { + var height = this._height; + var y = this._y; + if (height < 0) { + return y + height; + } + return y; + } + + /** + * Returns the right coordinate value of the `DOMRect` (has the same value as ``x + width`, or `x` if `width` is negative). + */ + }, { + key: "right", + get: function get() { + var width = this._width; + var x = this._x; + if (width < 0) { + return x; + } + return x + width; + } + + /** + * Returns the bottom coordinate value of the `DOMRect` (has the same value as `y + height`, or `y` if `height` is negative). + */ + }, { + key: "bottom", + get: function get() { + var height = this._height; + var y = this._y; + if (height < 0) { + return y; + } + return y + height; + } + + /** + * Returns the left coordinate value of the `DOMRect` (has the same value as `x`, or `x + width` if `width` is negative). + */ + }, { + key: "left", + get: function get() { + var width = this._width; + var x = this._x; + if (width < 0) { + return x + width; + } + return x; + } + }, { + key: "toJSON", + value: function toJSON() { + var x = this.x, + y = this.y, + width = this.width, + height = this.height, + top = this.top, + left = this.left, + bottom = this.bottom, + right = this.right; + return { + x: x, + y: y, + width: width, + height: height, + top: top, + left: left, + bottom: bottom, + right: right + }; + } + + /** + * Creates a new `DOMRectReadOnly` object with a given location and dimensions. + */ + }, { + key: "__getInternalX", + value: function __getInternalX() { + return this._x; + } + }, { + key: "__getInternalY", + value: function __getInternalY() { + return this._y; + } + }, { + key: "__getInternalWidth", + value: function __getInternalWidth() { + return this._width; + } + }, { + key: "__getInternalHeight", + value: function __getInternalHeight() { + return this._height; + } + }, { + key: "__setInternalX", + value: function __setInternalX(x) { + this._x = castToNumber(x); + } + }, { + key: "__setInternalY", + value: function __setInternalY(y) { + this._y = castToNumber(y); + } + }, { + key: "__setInternalWidth", + value: function __setInternalWidth(width) { + this._width = castToNumber(width); + } + }, { + key: "__setInternalHeight", + value: function __setInternalHeight(height) { + this._height = castToNumber(height); + } + }], [{ + key: "fromRect", + value: function fromRect(rect) { + if (!rect) { + return new DOMRectReadOnly(); + } + return new DOMRectReadOnly(rect.x, rect.y, rect.width, rect.height); + } + }]); + return DOMRectReadOnly; + }(); + exports.default = DOMRectReadOnly; +},54,[3,12,13],"node_modules/react-native/Libraries/DOM/Geometry/DOMRectReadOnly.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativePerformance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../WebPerformance/NativePerformance")); + var _Performance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../WebPerformance/Performance")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + // In case if the native implementation of the Performance API is available, use it, + // otherwise fall back to the legacy/default one, which only defines 'Performance.now()' + if (_NativePerformance.default) { + // $FlowExpectedError[cannot-write] + global.performance = new _Performance.default(); + } else { + if (!global.performance) { + // $FlowExpectedError[cannot-write] + global.performance = {}; + } + + /** + * Returns a double, measured in milliseconds. + * https://developer.mozilla.org/en-US/docs/Web/API/Performance/now + */ + if (typeof global.performance.now !== 'function') { + // $FlowExpectedError[cannot-write] + global.performance.now = function () { + var performanceNow = global.nativePerformanceNow || Date.now; + return performanceNow(); + }; + } + } +},55,[3,56,57],"node_modules/react-native/Libraries/Core/setUpPerformance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('NativePerformanceCxx'); + exports.default = _default; +},56,[19],"node_modules/react-native/Libraries/WebPerformance/NativePerformance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.PerformanceMeasure = exports.PerformanceMark = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _warnOnce = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/warnOnce")); + var _EventCounts = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./EventCounts")); + var _MemoryInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./MemoryInfo")); + var _NativePerformance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativePerformance")); + var _NativePerformanceObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NativePerformanceObserver")); + var _ReactNativeStartupTiming = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./ReactNativeStartupTiming")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ // flowlint unsafe-getters-setters:off + var getCurrentTimeStamp = global.nativePerformanceNow ? global.nativePerformanceNow : function () { + return Date.now(); + }; + var PerformanceMark = /*#__PURE__*/function (_PerformanceEntry) { + (0, _inherits2.default)(PerformanceMark, _PerformanceEntry); + var _super = _createSuper(PerformanceMark); + function PerformanceMark(markName, markOptions) { + var _markOptions$startTim; + var _this; + (0, _classCallCheck2.default)(this, PerformanceMark); + _this = _super.call(this, { + name: markName, + entryType: 'mark', + startTime: (_markOptions$startTim = markOptions == null ? void 0 : markOptions.startTime) != null ? _markOptions$startTim : getCurrentTimeStamp(), + duration: 0 + }); + if (markOptions) { + _this.detail = markOptions.detail; + } + return _this; + } + return (0, _createClass2.default)(PerformanceMark); + }(_$$_REQUIRE(_dependencyMap[12], "./PerformanceEntry").PerformanceEntry); + exports.PerformanceMark = PerformanceMark; + var PerformanceMeasure = /*#__PURE__*/function (_PerformanceEntry2) { + (0, _inherits2.default)(PerformanceMeasure, _PerformanceEntry2); + var _super2 = _createSuper(PerformanceMeasure); + function PerformanceMeasure(measureName, measureOptions) { + var _measureOptions$durat; + var _this2; + (0, _classCallCheck2.default)(this, PerformanceMeasure); + _this2 = _super2.call(this, { + name: measureName, + entryType: 'measure', + startTime: 0, + duration: (_measureOptions$durat = measureOptions == null ? void 0 : measureOptions.duration) != null ? _measureOptions$durat : 0 + }); + if (measureOptions) { + _this2.detail = measureOptions.detail; + } + return _this2; + } + return (0, _createClass2.default)(PerformanceMeasure); + }(_$$_REQUIRE(_dependencyMap[12], "./PerformanceEntry").PerformanceEntry); + exports.PerformanceMeasure = PerformanceMeasure; + function warnNoNativePerformance() { + (0, _warnOnce.default)('missing-native-performance', 'Missing native implementation of Performance'); + } + + /** + * Partial implementation of the Performance interface for RN, + * corresponding to the standard in + * https://www.w3.org/TR/user-timing/#extensions-performance-interface + */ + var Performance = /*#__PURE__*/function () { + function Performance() { + (0, _classCallCheck2.default)(this, Performance); + this.eventCounts = new _EventCounts.default(); + } + (0, _createClass2.default)(Performance, [{ + key: "memory", + get: + // Get the current JS memory information. + function get() { + if (_NativePerformance.default != null && _NativePerformance.default.getSimpleMemoryInfo) { + // JSI API implementations may have different variants of names for the JS + // heap information we need here. We will parse the result based on our + // guess of the implementation for now. + var memoryInfo = _NativePerformance.default.getSimpleMemoryInfo(); + if (memoryInfo.hasOwnProperty('hermes_heapSize')) { + // We got memory information from Hermes + var totalJSHeapSize = memoryInfo.hermes_heapSize, + usedJSHeapSize = memoryInfo.hermes_allocatedBytes; + return new _MemoryInfo.default({ + jsHeapSizeLimit: null, + // We don't know the heap size limit from Hermes. + totalJSHeapSize: totalJSHeapSize, + usedJSHeapSize: usedJSHeapSize + }); + } else { + // JSC and V8 has no native implementations for memory information in JSI::Instrumentation + return new _MemoryInfo.default(); + } + } + return new _MemoryInfo.default(); + } + + // Startup metrics is not used in web, but only in React Native. + }, { + key: "reactNativeStartupTiming", + get: function get() { + if (_NativePerformance.default != null && _NativePerformance.default.getReactNativeStartupTiming) { + return new _ReactNativeStartupTiming.default(_NativePerformance.default.getReactNativeStartupTiming()); + } + return new _ReactNativeStartupTiming.default(); + } + }, { + key: "mark", + value: function mark(markName, markOptions) { + var mark = new PerformanceMark(markName, markOptions); + if (_NativePerformance.default != null && _NativePerformance.default.mark) { + _NativePerformance.default.mark(markName, mark.startTime, mark.duration); + } else { + warnNoNativePerformance(); + } + return mark; + } + }, { + key: "clearMarks", + value: function clearMarks(markName) { + if (!(_NativePerformanceObserver.default != null && _NativePerformanceObserver.default.clearEntries)) { + (0, _$$_REQUIRE(_dependencyMap[13], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return; + } + _NativePerformanceObserver.default == null ? void 0 : _NativePerformanceObserver.default.clearEntries(_$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").RawPerformanceEntryTypeValues.MARK, markName); + } + }, { + key: "measure", + value: function measure(measureName, startMarkOrOptions, endMark) { + var options; + var startMarkName, + endMarkName = endMark, + duration, + startTime = 0, + endTime = 0; + if (typeof startMarkOrOptions === 'string') { + startMarkName = startMarkOrOptions; + } else if (startMarkOrOptions !== undefined) { + var _options$duration; + options = startMarkOrOptions; + if (endMark !== undefined) { + throw new TypeError("Performance.measure: Can't have both options and endMark"); + } + if (options.start === undefined && options.end === undefined) { + throw new TypeError('Performance.measure: Must have at least one of start/end specified in options'); + } + if (options.start !== undefined && options.end !== undefined && options.duration !== undefined) { + throw new TypeError("Performance.measure: Can't have both start/end and duration explicitly in options"); + } + if (typeof options.start === 'number') { + startTime = options.start; + } else { + startMarkName = options.start; + } + if (typeof options.end === 'number') { + endTime = options.end; + } else { + endMarkName = options.end; + } + duration = (_options$duration = options.duration) != null ? _options$duration : duration; + } + var measure = new PerformanceMeasure(measureName, options); + if (_NativePerformance.default != null && _NativePerformance.default.measure) { + _NativePerformance.default.measure(measureName, startTime, endTime, duration, startMarkName, endMarkName); + } else { + warnNoNativePerformance(); + } + return measure; + } + }, { + key: "clearMeasures", + value: function clearMeasures(measureName) { + if (!(_NativePerformanceObserver.default != null && _NativePerformanceObserver.default.clearEntries)) { + (0, _$$_REQUIRE(_dependencyMap[13], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return; + } + _NativePerformanceObserver.default == null ? void 0 : _NativePerformanceObserver.default.clearEntries(_$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").RawPerformanceEntryTypeValues.MEASURE, measureName); + } + + /** + * Returns a double, measured in milliseconds. + * https://developer.mozilla.org/en-US/docs/Web/API/Performance/now + */ + }, { + key: "now", + value: function now() { + return getCurrentTimeStamp(); + } + + /** + * An extension that allows to get back to JS all currently logged marks/measures + * (in our case, be it from JS or native), see + * https://www.w3.org/TR/performance-timeline/#extensions-to-the-performance-interface + */ + }, { + key: "getEntries", + value: function getEntries() { + if (!(_NativePerformanceObserver.default != null && _NativePerformanceObserver.default.clearEntries)) { + (0, _$$_REQUIRE(_dependencyMap[13], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return []; + } + return _NativePerformanceObserver.default.getEntries().map(_$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").rawToPerformanceEntry); + } + }, { + key: "getEntriesByType", + value: function getEntriesByType(entryType) { + if (entryType !== 'mark' && entryType !== 'measure') { + console.log(`Performance.getEntriesByType: Only valid for 'mark' and 'measure' entry types, got ${entryType}`); + return []; + } + if (!(_NativePerformanceObserver.default != null && _NativePerformanceObserver.default.clearEntries)) { + (0, _$$_REQUIRE(_dependencyMap[13], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return []; + } + return _NativePerformanceObserver.default.getEntries((0, _$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").performanceEntryTypeToRaw)(entryType)).map(_$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").rawToPerformanceEntry); + } + }, { + key: "getEntriesByName", + value: function getEntriesByName(entryName, entryType) { + if (entryType !== undefined && entryType !== 'mark' && entryType !== 'measure') { + console.log(`Performance.getEntriesByName: Only valid for 'mark' and 'measure' entry types, got ${entryType}`); + return []; + } + if (!(_NativePerformanceObserver.default != null && _NativePerformanceObserver.default.clearEntries)) { + (0, _$$_REQUIRE(_dependencyMap[13], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return []; + } + return _NativePerformanceObserver.default.getEntries(entryType != null ? (0, _$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").performanceEntryTypeToRaw)(entryType) : undefined, entryName).map(_$$_REQUIRE(_dependencyMap[14], "./RawPerformanceEntry").rawToPerformanceEntry); + } + }]); + return Performance; + }(); + exports.default = Performance; +},57,[3,13,12,49,51,53,28,58,64,56,59,65,63,60,61],"node_modules/react-native/Libraries/WebPerformance/Performance.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativePerformanceObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativePerformanceObserver")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var cachedEventCounts; + function getCachedEventCounts() { + var _cachedEventCounts; + if (cachedEventCounts) { + return cachedEventCounts; + } + if (!_NativePerformanceObserver.default) { + (0, _$$_REQUIRE(_dependencyMap[4], "./PerformanceObserver").warnNoNativePerformanceObserver)(); + return new Map(); + } + cachedEventCounts = new Map(_NativePerformanceObserver.default.getEventCounts()); + // $FlowFixMe[incompatible-call] + global.queueMicrotask(function () { + // To be consistent with the calls to the API from the same task, + // but also not to refetch the data from native too often, + // schedule to invalidate the cache later, + // after the current task is guaranteed to have finished. + cachedEventCounts = null; + }); + return (_cachedEventCounts = cachedEventCounts) != null ? _cachedEventCounts : new Map(); + } + /** + * Implementation of the EventCounts Web Performance API + * corresponding to the standard in + * https://www.w3.org/TR/event-timing/#eventcounts + */ + var EventCounts = /*#__PURE__*/function () { + function EventCounts() { + (0, _classCallCheck2.default)(this, EventCounts); + } + (0, _createClass2.default)(EventCounts, [{ + key: "size", + get: + // flowlint unsafe-getters-setters:off + function get() { + return getCachedEventCounts().size; + } + }, { + key: "entries", + value: function entries() { + return getCachedEventCounts().entries(); + } + }, { + key: "forEach", + value: function forEach(callback) { + return getCachedEventCounts().forEach(callback); + } + }, { + key: "get", + value: function get(key) { + return getCachedEventCounts().get(key); + } + }, { + key: "has", + value: function has(key) { + return getCachedEventCounts().has(key); + } + }, { + key: "keys", + value: function keys() { + return getCachedEventCounts().keys(); + } + }, { + key: "values", + value: function values() { + return getCachedEventCounts().values(); + } + }]); + return EventCounts; + }(); + exports.default = EventCounts; +},58,[3,12,13,59,60],"node_modules/react-native/Libraries/WebPerformance/EventCounts.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('NativePerformanceObserverCxx'); + exports.default = _default; +},59,[19],"node_modules/react-native/Libraries/WebPerformance/NativePerformanceObserver.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.PerformanceObserverEntryList = void 0; + exports.warnNoNativePerformanceObserver = warnNoNativePerformanceObserver; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _warnOnce = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/warnOnce")); + var _NativePerformanceObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativePerformanceObserver")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var PerformanceObserverEntryList = /*#__PURE__*/function () { + function PerformanceObserverEntryList(entries) { + (0, _classCallCheck2.default)(this, PerformanceObserverEntryList); + this._entries = entries; + } + (0, _createClass2.default)(PerformanceObserverEntryList, [{ + key: "getEntries", + value: function getEntries() { + return this._entries; + } + }, { + key: "getEntriesByType", + value: function getEntriesByType(type) { + return this._entries.filter(function (entry) { + return entry.entryType === type; + }); + } + }, { + key: "getEntriesByName", + value: function getEntriesByName(name, type) { + if (type === undefined) { + return this._entries.filter(function (entry) { + return entry.name === name; + }); + } else { + return this._entries.filter(function (entry) { + return entry.name === name && entry.entryType === type; + }); + } + } + }]); + return PerformanceObserverEntryList; + }(); + exports.PerformanceObserverEntryList = PerformanceObserverEntryList; + var observerCountPerEntryType = new Map(); + var registeredObservers = new Map(); + var isOnPerformanceEntryCallbackSet = false; + + // This is a callback that gets scheduled and periodically called from the native side + var onPerformanceEntry = function onPerformanceEntry() { + var _entryResult$entries; + if (!_NativePerformanceObserver.default) { + return; + } + var entryResult = _NativePerformanceObserver.default.popPendingEntries(); + var rawEntries = (_entryResult$entries = entryResult == null ? void 0 : entryResult.entries) != null ? _entryResult$entries : []; + var droppedEntriesCount = entryResult == null ? void 0 : entryResult.droppedEntriesCount; + if (rawEntries.length === 0) { + return; + } + var entries = rawEntries.map(_$$_REQUIRE(_dependencyMap[7], "./RawPerformanceEntry").rawToPerformanceEntry); + var _loop = function _loop(observerConfig) { + var entriesForObserver = entries.filter(function (entry) { + if (!observerConfig.entryTypes.has(entry.entryType)) { + return false; + } + var durationThreshold = observerConfig.entryTypes.get(entry.entryType); + return entry.duration >= (durationThreshold != null ? durationThreshold : 0); + }); + observerConfig.callback(new PerformanceObserverEntryList(entriesForObserver), _observer, droppedEntriesCount); + }; + for (var _ref of registeredObservers.entries()) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2); + var _observer = _ref2[0]; + var observerConfig = _ref2[1]; + _loop(observerConfig); + } + }; + function warnNoNativePerformanceObserver() { + (0, _warnOnce.default)('missing-native-performance-observer', 'Missing native implementation of PerformanceObserver'); + } + function applyDurationThresholds() { + var durationThresholds = Array.from(registeredObservers.values()).map(function (config) { + return config.entryTypes; + }).reduce(function (accumulator, currentValue) { + return union(accumulator, currentValue); + }, new Map()); + for (var _ref3 of durationThresholds) { + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2); + var entryType = _ref4[0]; + var durationThreshold = _ref4[1]; + _NativePerformanceObserver.default == null ? void 0 : _NativePerformanceObserver.default.setDurationThreshold((0, _$$_REQUIRE(_dependencyMap[7], "./RawPerformanceEntry").performanceEntryTypeToRaw)(entryType), durationThreshold != null ? durationThreshold : 0); + } + } + + /** + * Implementation of the PerformanceObserver interface for RN, + * corresponding to the standard in https://www.w3.org/TR/performance-timeline/ + * + * @example + * const observer = new PerformanceObserver((list, _observer) => { + * const entries = list.getEntries(); + * entries.forEach(entry => { + * reportEvent({ + * eventName: entry.name, + * startTime: entry.startTime, + * endTime: entry.startTime + entry.duration, + * processingStart: entry.processingStart, + * processingEnd: entry.processingEnd, + * interactionId: entry.interactionId, + * }); + * }); + * }); + * observer.observe({ type: "event" }); + */ + var PerformanceObserver = /*#__PURE__*/function () { + function PerformanceObserver(callback) { + (0, _classCallCheck2.default)(this, PerformanceObserver); + this._callback = callback; + } + (0, _createClass2.default)(PerformanceObserver, [{ + key: "observe", + value: function observe(options) { + var _registeredObservers$; + if (!_NativePerformanceObserver.default) { + warnNoNativePerformanceObserver(); + return; + } + this._validateObserveOptions(options); + var requestedEntryTypes; + if (options.entryTypes) { + this._type = 'multiple'; + requestedEntryTypes = new Map(options.entryTypes.map(function (t) { + return [t, undefined]; + })); + } else { + this._type = 'single'; + requestedEntryTypes = new Map([[options.type, options.durationThreshold]]); + } + + // The same observer may receive multiple calls to "observe", so we need + // to check what is new on this call vs. previous ones. + var currentEntryTypes = (_registeredObservers$ = registeredObservers.get(this)) == null ? void 0 : _registeredObservers$.entryTypes; + var nextEntryTypes = currentEntryTypes ? union(requestedEntryTypes, currentEntryTypes) : requestedEntryTypes; + + // This `observe` call is a no-op because there are no new things to observe. + if (currentEntryTypes && currentEntryTypes.size === nextEntryTypes.size) { + return; + } + registeredObservers.set(this, { + callback: this._callback, + entryTypes: nextEntryTypes + }); + if (!isOnPerformanceEntryCallbackSet) { + _NativePerformanceObserver.default.setOnPerformanceEntryCallback(onPerformanceEntry); + isOnPerformanceEntryCallbackSet = true; + } + + // We only need to start listenening to new entry types being observed in + // this observer. + var newEntryTypes = currentEntryTypes ? difference(new Set(requestedEntryTypes.keys()), new Set(currentEntryTypes.keys())) : new Set(requestedEntryTypes.keys()); + for (var type of newEntryTypes) { + var _observerCountPerEntr; + if (!observerCountPerEntryType.has(type)) { + var rawType = (0, _$$_REQUIRE(_dependencyMap[7], "./RawPerformanceEntry").performanceEntryTypeToRaw)(type); + _NativePerformanceObserver.default.startReporting(rawType); + } + observerCountPerEntryType.set(type, ((_observerCountPerEntr = observerCountPerEntryType.get(type)) != null ? _observerCountPerEntr : 0) + 1); + } + applyDurationThresholds(); + } + }, { + key: "disconnect", + value: function disconnect() { + if (!_NativePerformanceObserver.default) { + warnNoNativePerformanceObserver(); + return; + } + var observerConfig = registeredObservers.get(this); + if (!observerConfig) { + return; + } + + // Disconnect this observer + for (var type of observerConfig.entryTypes.keys()) { + var _observerCountPerEntr2; + var numberOfObserversForThisType = (_observerCountPerEntr2 = observerCountPerEntryType.get(type)) != null ? _observerCountPerEntr2 : 0; + if (numberOfObserversForThisType === 1) { + observerCountPerEntryType.delete(type); + _NativePerformanceObserver.default.stopReporting((0, _$$_REQUIRE(_dependencyMap[7], "./RawPerformanceEntry").performanceEntryTypeToRaw)(type)); + } else if (numberOfObserversForThisType !== 0) { + observerCountPerEntryType.set(type, numberOfObserversForThisType - 1); + } + } + + // Disconnect all observers if this was the last one + registeredObservers.delete(this); + if (registeredObservers.size === 0) { + _NativePerformanceObserver.default.setOnPerformanceEntryCallback(undefined); + isOnPerformanceEntryCallbackSet = false; + } + applyDurationThresholds(); + } + }, { + key: "_validateObserveOptions", + value: function _validateObserveOptions(options) { + var type = options.type, + entryTypes = options.entryTypes, + durationThreshold = options.durationThreshold; + if (!type && !entryTypes) { + throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and type arguments."); + } + if (entryTypes && type) { + throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must include either entryTypes or type arguments."); + } + if (this._type === 'multiple' && type) { + throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This observer has performed observe({entryTypes:...}, therefore it cannot perform observe({type:...})"); + } + if (this._type === 'single' && entryTypes) { + throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This PerformanceObserver has performed observe({type:...}, therefore it cannot perform observe({entryTypes:...})"); + } + if (entryTypes && durationThreshold !== undefined) { + throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and durationThreshold arguments."); + } + } + }]); + return PerformanceObserver; + }(); // As a Set union, except if value exists in both, we take minimum + exports.default = PerformanceObserver; + PerformanceObserver.supportedEntryTypes = Object.freeze(['mark', 'measure', 'event']); + function union(a, b) { + var res = new Map(); + for (var _ref5 of a) { + var _ref6 = (0, _slicedToArray2.default)(_ref5, 2); + var k = _ref6[0]; + var v = _ref6[1]; + if (!b.has(k)) { + res.set(k, v); + } else { + var _b$get; + res.set(k, Math.min(v != null ? v : 0, (_b$get = b.get(k)) != null ? _b$get : 0)); + } + } + return res; + } + function difference(a, b) { + return new Set((0, _toConsumableArray2.default)(a).filter(function (x) { + return !b.has(x); + })); + } +},60,[3,6,22,12,13,28,59,61],"node_modules/react-native/Libraries/WebPerformance/PerformanceObserver.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.RawPerformanceEntryTypeValues = void 0; + exports.performanceEntryTypeToRaw = performanceEntryTypeToRaw; + exports.rawToPerformanceEntry = rawToPerformanceEntry; + exports.rawToPerformanceEntryType = rawToPerformanceEntryType; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + var RawPerformanceEntryTypeValues = { + UNDEFINED: 0, + MARK: 1, + MEASURE: 2, + EVENT: 3 + }; + exports.RawPerformanceEntryTypeValues = RawPerformanceEntryTypeValues; + function rawToPerformanceEntry(entry) { + if (entry.entryType === RawPerformanceEntryTypeValues.EVENT) { + return new (_$$_REQUIRE(_dependencyMap[0], "./PerformanceEventTiming").PerformanceEventTiming)({ + name: entry.name, + startTime: entry.startTime, + duration: entry.duration, + processingStart: entry.processingStart, + processingEnd: entry.processingEnd, + interactionId: entry.interactionId + }); + } else { + return new (_$$_REQUIRE(_dependencyMap[1], "./PerformanceEntry").PerformanceEntry)({ + name: entry.name, + entryType: rawToPerformanceEntryType(entry.entryType), + startTime: entry.startTime, + duration: entry.duration + }); + } + } + function rawToPerformanceEntryType(type) { + switch (type) { + case RawPerformanceEntryTypeValues.MARK: + return 'mark'; + case RawPerformanceEntryTypeValues.MEASURE: + return 'measure'; + case RawPerformanceEntryTypeValues.EVENT: + return 'event'; + case RawPerformanceEntryTypeValues.UNDEFINED: + throw new TypeError("rawToPerformanceEntryType: UNDEFINED can't be cast to PerformanceEntryType"); + default: + throw new TypeError(`rawToPerformanceEntryType: unexpected performance entry type received: ${type}`); + } + } + function performanceEntryTypeToRaw(type) { + switch (type) { + case 'mark': + return RawPerformanceEntryTypeValues.MARK; + case 'measure': + return RawPerformanceEntryTypeValues.MEASURE; + case 'event': + return RawPerformanceEntryTypeValues.EVENT; + default: + // Verify exhaustive check with Flow + type; + throw new TypeError(`performanceEntryTypeToRaw: unexpected performance entry type received: ${type}`); + } + } +},61,[62,63],"node_modules/react-native/Libraries/WebPerformance/RawPerformanceEntry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PerformanceEventTiming = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var PerformanceEventTiming = /*#__PURE__*/function (_PerformanceEntry) { + (0, _inherits2.default)(PerformanceEventTiming, _PerformanceEntry); + var _super = _createSuper(PerformanceEventTiming); + function PerformanceEventTiming(init) { + var _init$startTime, _init$duration, _init$processingStart, _init$processingEnd, _init$interactionId; + var _this; + (0, _classCallCheck2.default)(this, PerformanceEventTiming); + _this = _super.call(this, { + name: init.name, + entryType: 'event', + startTime: (_init$startTime = init.startTime) != null ? _init$startTime : 0, + duration: (_init$duration = init.duration) != null ? _init$duration : 0 + }); + _this.processingStart = (_init$processingStart = init.processingStart) != null ? _init$processingStart : 0; + _this.processingEnd = (_init$processingEnd = init.processingEnd) != null ? _init$processingEnd : 0; + _this.interactionId = (_init$interactionId = init.interactionId) != null ? _init$interactionId : 0; + return _this; + } + return (0, _createClass2.default)(PerformanceEventTiming); + }(_$$_REQUIRE(_dependencyMap[6], "./PerformanceEntry").PerformanceEntry); + exports.PerformanceEventTiming = PerformanceEventTiming; +},62,[3,13,12,49,51,53,63],"node_modules/react-native/Libraries/WebPerformance/PerformanceEventTiming.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PerformanceEntry = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var PerformanceEntry = /*#__PURE__*/function () { + function PerformanceEntry(init) { + (0, _classCallCheck2.default)(this, PerformanceEntry); + this.name = init.name; + this.entryType = init.entryType; + this.startTime = init.startTime; + this.duration = init.duration; + } + (0, _createClass2.default)(PerformanceEntry, [{ + key: "toJSON", + value: function toJSON() { + return { + name: this.name, + entryType: this.entryType, + startTime: this.startTime, + duration: this.duration + }; + } + }]); + return PerformanceEntry; + }(); + exports.PerformanceEntry = PerformanceEntry; +},63,[3,12,13],"node_modules/react-native/Libraries/WebPerformance/PerformanceEntry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + * @oncall react_native + */ + // flowlint unsafe-getters-setters:off + // Read-only object with JS memory information. This is returned by the performance.memory API. + var MemoryInfo = /*#__PURE__*/function () { + function MemoryInfo(memoryInfo) { + (0, _classCallCheck2.default)(this, MemoryInfo); + if (memoryInfo != null) { + this._jsHeapSizeLimit = memoryInfo.jsHeapSizeLimit; + this._totalJSHeapSize = memoryInfo.totalJSHeapSize; + this._usedJSHeapSize = memoryInfo.usedJSHeapSize; + } + } + + /** + * The maximum size of the heap, in bytes, that is available to the context + */ + (0, _createClass2.default)(MemoryInfo, [{ + key: "jsHeapSizeLimit", + get: function get() { + return this._jsHeapSizeLimit; + } + + /** + * The total allocated heap size, in bytes + */ + }, { + key: "totalJSHeapSize", + get: function get() { + return this._totalJSHeapSize; + } + + /** + * The currently active segment of JS heap, in bytes. + */ + }, { + key: "usedJSHeapSize", + get: function get() { + return this._usedJSHeapSize; + } + }]); + return MemoryInfo; + }(); + exports.default = MemoryInfo; +},64,[3,12,13],"node_modules/react-native/Libraries/WebPerformance/MemoryInfo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + * @oncall react_native + */ + // flowlint unsafe-getters-setters:off + // Read-only object with RN startup timing information. + // This is returned by the performance.reactNativeStartup API. + var ReactNativeStartupTiming = /*#__PURE__*/function () { + function ReactNativeStartupTiming(startUpTiming) { + (0, _classCallCheck2.default)(this, ReactNativeStartupTiming); + // All time information here are in ms. To match web spec, + // the default value for timings are zero if not present. + // See https://www.w3.org/TR/performance-timeline/#performancetiming-interface + this._startTime = 0; + this._endTime = 0; + this._executeJavaScriptBundleEntryPointStart = 0; + this._executeJavaScriptBundleEntryPointEnd = 0; + if (startUpTiming != null) { + this._startTime = startUpTiming.startTime; + this._endTime = startUpTiming.endTime; + this._executeJavaScriptBundleEntryPointStart = startUpTiming.executeJavaScriptBundleEntryPointStart; + this._executeJavaScriptBundleEntryPointEnd = startUpTiming.executeJavaScriptBundleEntryPointEnd; + } + } + + /** + * Start time of the RN app startup process. This is provided by the platform by implementing the `ReactMarker.setAppStartTime` API in the native platform code. + */ + (0, _createClass2.default)(ReactNativeStartupTiming, [{ + key: "startTime", + get: function get() { + return this._startTime; + } + + /** + * End time of the RN app startup process. This is equal to `executeJavaScriptBundleEntryPointEnd`. + */ + }, { + key: "endTime", + get: function get() { + return this._endTime; + } + + /** + * Start time of JS bundle being executed. This indicates the RN JS bundle is loaded and start to be evaluated. + */ + }, { + key: "executeJavaScriptBundleEntryPointStart", + get: function get() { + return this._executeJavaScriptBundleEntryPointStart; + } + + /** + * End time of JS bundle being executed. This indicates all the synchronous entry point jobs are finished. + */ + }, { + key: "executeJavaScriptBundleEntryPointEnd", + get: function get() { + return this._executeJavaScriptBundleEntryPointEnd; + } + }]); + return ReactNativeStartupTiming; + }(); + exports.default = ReactNativeStartupTiming; +},65,[3,12,13],"node_modules/react-native/Libraries/WebPerformance/ReactNativeStartupTiming.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + /** + * Sets up the console and exception handling (redbox) for React Native. + * You can use this module directly, or just require InitializeCore. + */ + _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").installConsoleErrorReporter(); + + // Set up error handler + if (!global.__fbDisableExceptionsManager) { + var handleError = function handleError(e, isFatal) { + try { + _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException(e, isFatal); + } catch (ee) { + console.log('Failed to print error: ', ee.message); + throw e; + } + }; + var ErrorUtils = _$$_REQUIRE(_dependencyMap[1], "../vendor/core/ErrorUtils"); + ErrorUtils.setGlobalHandler(handleError); + } +},66,[67,32],"node_modules/react-native/Libraries/Core/setUpErrorHandling.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SyntheticError = /*#__PURE__*/function (_Error) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(SyntheticError, _Error); + var _super = _createSuper(SyntheticError); + function SyntheticError() { + var _this; + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, SyntheticError); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.name = ''; + return _this; + } + return _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(SyntheticError); + }( /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/wrapNativeSuper")(Error)); + var userExceptionDecorator; + var inUserExceptionDecorator = false; + + // This Symbol is used to decorate an ExtendedError with extra data in select usecases. + // Note that data passed using this method should be strictly contained, + // as data that's not serializable/too large may cause issues with passing the error to the native code. + var decoratedExtraDataKey = Symbol('decoratedExtraDataKey'); + + /** + * Allows the app to add information to the exception report before it is sent + * to native. This API is not final. + */ + + function unstable_setExceptionDecorator(exceptionDecorator) { + userExceptionDecorator = exceptionDecorator; + } + function preprocessException(data) { + if (userExceptionDecorator && !inUserExceptionDecorator) { + inUserExceptionDecorator = true; + try { + return userExceptionDecorator(data); + } catch (_unused) { + // Fall through + } finally { + inUserExceptionDecorator = false; + } + } + return data; + } + + /** + * Handles the developer-visible aspect of errors and exceptions + */ + var exceptionID = 0; + function reportException(e, isFatal, reportToConsole // only true when coming from handleException; the error has not yet been logged + ) { + var parseErrorStack = _$$_REQUIRE(_dependencyMap[6], "./Devtools/parseErrorStack"); + var stack = parseErrorStack(e == null ? void 0 : e.stack); + var currentExceptionID = ++exceptionID; + var originalMessage = e.message || ''; + var message = originalMessage; + if (e.componentStack != null) { + message += `\n\nThis error is located at:${e.componentStack}`; + } + var namePrefix = e.name == null || e.name === '' ? '' : `${e.name}: `; + if (!message.startsWith(namePrefix)) { + message = namePrefix + message; + } + message = e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`; + var data = preprocessException({ + message: message, + originalMessage: message === originalMessage ? null : originalMessage, + name: e.name == null || e.name === '' ? null : e.name, + componentStack: typeof e.componentStack === 'string' ? e.componentStack : null, + stack: stack, + id: currentExceptionID, + isFatal: isFatal, + extraData: Object.assign({}, e[decoratedExtraDataKey], { + jsEngine: e.jsEngine, + rawStack: e.stack + }) + }); + if (reportToConsole) { + // we feed back into console.error, to make sure any methods that are + // monkey patched on top of console.error are called when coming from + // handleException + console.error(data.message); + } + if (__DEV__) { + var LogBox = _$$_REQUIRE(_dependencyMap[7], "../LogBox/LogBox").default; + LogBox.addException(Object.assign({}, data, { + isComponentError: !!e.isComponentError + })); + } else if (isFatal || e.type !== 'warn') { + var NativeExceptionsManager = _$$_REQUIRE(_dependencyMap[8], "./NativeExceptionsManager").default; + if (NativeExceptionsManager) { + NativeExceptionsManager.reportException(data); + } + } + } + // If we trigger console.error _from_ handleException, + // we do want to make sure that console.error doesn't trigger error reporting again + var inExceptionHandler = false; + + /** + * Logs exceptions to the (native) console and displays them + */ + function handleException(e, isFatal) { + var error; + if (e instanceof Error) { + error = e; + } else { + // Workaround for reporting errors caused by `throw 'some string'` + // Unfortunately there is no way to figure out the stacktrace in this + // case, so if you ended up here trying to trace an error, look for + // `throw ''` somewhere in your codebase. + error = new SyntheticError(e); + } + try { + inExceptionHandler = true; + /* $FlowFixMe[class-object-subtyping] added when improving typing for this + * parameters */ + reportException(error, isFatal, /*reportToConsole*/true); + } finally { + inExceptionHandler = false; + } + } + + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + function reactConsoleErrorHandler() { + var _console; + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + // bubble up to any original handlers + (_console = console)._errorOriginal.apply(_console, args); + if (!console.reportErrorsAsExceptions) { + return; + } + if (inExceptionHandler) { + // The fundamental trick here is that are multiple entry point to logging errors: + // (see D19743075 for more background) + // + // 1. An uncaught exception being caught by the global handler + // 2. An error being logged throw console.error + // + // However, console.error is monkey patched multiple times: by this module, and by the + // DevTools setup that sends messages to Metro. + // The patching order cannot be relied upon. + // + // So, some scenarios that are handled by this flag: + // + // Logging an error: + // 1. console.error called from user code + // 2. (possibly) arrives _first_ at DevTool handler, send to Metro + // 3. Bubbles to here + // 4. goes into report Exception. + // 5. should not trigger console.error again, to avoid looping / logging twice + // 6. should still bubble up to original console + // (which might either be console.log, or the DevTools handler in case it patched _earlier_ and (2) didn't happen) + // + // Throwing an uncaught exception: + // 1. exception thrown + // 2. picked up by handleException + // 3. should be sent to console.error (not console._errorOriginal, as DevTools might have patched _later_ and it needs to send it to Metro) + // 4. that _might_ bubble again to the `reactConsoleErrorHandle` defined here + // -> should not handle exception _again_, to avoid looping / showing twice (this code branch) + // 5. should still bubble up to original console (which might either be console.log, or the DevTools handler in case that one patched _earlier_) + return; + } + var error; + var firstArg = args[0]; + if (firstArg != null && firstArg.stack) { + // reportException will console.error this with high enough fidelity. + error = firstArg; + } else { + var stringifySafe = _$$_REQUIRE(_dependencyMap[9], "../Utilities/stringifySafe").default; + if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ')) { + // React warnings use console.error so that a stack trace is shown, but + // we don't (currently) want these to show a redbox + // (Note: Logic duplicated in polyfills/console.js.) + return; + } + var message = args.map(function (arg) { + return typeof arg === 'string' ? arg : stringifySafe(arg); + }).join(' '); + error = new SyntheticError(message); + error.name = 'console.error'; + } + reportException( + /* $FlowFixMe[class-object-subtyping] added when improving typing for this + * parameters */ + error, false, + // isFatal + false // reportToConsole + ); + } + + /** + * Shows a redbox with stacktrace for all console.error messages. Disable by + * setting `console.reportErrorsAsExceptions = false;` in your app. + */ + function installConsoleErrorReporter() { + // Enable reportErrorsAsExceptions + if (console._errorOriginal) { + return; // already installed + } + // Flow doesn't like it when you set arbitrary values on a global object + console._errorOriginal = console.error.bind(console); + console.error = reactConsoleErrorHandler; + if (console.reportErrorsAsExceptions === undefined) { + // Individual apps can disable this + // Flow doesn't like it when you set arbitrary values on a global object + console.reportErrorsAsExceptions = true; + } + } + module.exports = { + decoratedExtraDataKey: decoratedExtraDataKey, + handleException: handleException, + installConsoleErrorReporter: installConsoleErrorReporter, + SyntheticError: SyntheticError, + unstable_setExceptionDecorator: unstable_setExceptionDecorator + }; +},67,[53,51,49,12,13,68,72,75,92,29],"node_modules/react-native/Libraries/Core/ExceptionsManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; @@ -20655,13 +26647,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _wrapNativeSuper(Class); } module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; -},52,[53,54,46,51],"node_modules/@babel/runtime/helpers/wrapNativeSuper.js"); +},68,[69,70,53,50],"node_modules/@babel/runtime/helpers/wrapNativeSuper.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; } module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; -},53,[],"node_modules/@babel/runtime/helpers/isNativeFunction.js"); +},69,[],"node_modules/@babel/runtime/helpers/isNativeFunction.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _construct(Parent, args, Class) { if (_$$_REQUIRE(_dependencyMap[0], "./isNativeReflectConstruct.js")()) { @@ -20679,7 +26671,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _construct.apply(null, arguments); } module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; -},54,[55,51],"node_modules/@babel/runtime/helpers/construct.js"); +},70,[71,50],"node_modules/@babel/runtime/helpers/construct.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; @@ -20693,8 +26685,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; -},55,[],"node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); +},71,[],"node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -20706,7 +26707,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var location = entry.location, functionName = entry.functionName; - if (location.type === 'NATIVE') { + if (location.type === 'NATIVE' || location.type === 'INTERNAL_BYTECODE') { continue; } frames.push({ @@ -20731,7 +26732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return parsedStack; } module.exports = parseErrorStack; -},56,[57,58],"node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js"); +},72,[73,74],"node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -20739,6 +26740,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); var UNKNOWN_FUNCTION = ''; + /** + * This parses the different stack traces and puts them into one format + * This borrows heavily from TraceKit (https://github.com/csnover/TraceKit) + */ function parse(stackString) { var lines = stackString.split('\n'); @@ -20757,17 +26762,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!parts) { return null; } - var isNative = parts[2] && parts[2].indexOf('native') === 0; + var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line - var isEval = parts[2] && parts[2].indexOf('eval') === 0; + var isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line var submatch = chromeEvalRe.exec(parts[2]); if (isEval && submatch != null) { - parts[2] = submatch[1]; + // throw out eval line/column and use top-most line/column number + parts[2] = submatch[1]; // url - parts[3] = submatch[2]; + parts[3] = submatch[2]; // line - parts[4] = submatch[3]; + parts[4] = submatch[3]; // column } return { @@ -20802,9 +26808,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isEval = parts[3] && parts[3].indexOf(' > eval') > -1; var submatch = geckoEvalRe.exec(parts[3]); if (isEval && submatch != null) { + // throw out eval line/column and use top-most line number parts[3] = submatch[1]; parts[4] = submatch[2]; - parts[5] = null; + parts[5] = null; // no column when eval } return { @@ -20844,14 +26851,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } exports.parse = parse; -},57,[],"node_modules/stacktrace-parser/dist/stack-trace-parser.cjs.js"); +},73,[],"node_modules/stacktrace-parser/dist/stack-trace-parser.cjs.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + // Capturing groups: + // 1. function name + // 2. is this a native stack frame? + // 3. is this a bytecode address or a source location? + // 4. source URL (filename) + // 5. line number (1 based) + // 6. column number (1 based) or virtual offset (0 based) var RE_FRAME = /^ {4}at (.+?)(?: \((native)\)?| \((address at )?(.*?):(\d+):(\d+)\))$/; + // Capturing groups: + // 1. count of skipped frames var RE_SKIPPED = /^ {4}... skipping (\d+) frames$/; + function isInternalBytecodeSourceUrl(sourceUrl) { + // See https://github.com/facebook/hermes/blob/3332fa020cae0bab751f648db7c94e1d687eeec7/lib/VM/Runtime.cpp#L1100 + return sourceUrl === 'InternalBytecode.js'; + } function parseLine(line) { var asFrame = line.match(RE_FRAME); if (asFrame) { @@ -20860,7 +26889,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e functionName: asFrame[1], location: asFrame[2] === 'native' ? { type: 'NATIVE' - } : asFrame[3] === 'address at ' ? { + } : asFrame[3] === 'address at ' ? isInternalBytecodeSourceUrl(asFrame[4]) ? { + type: 'INTERNAL_BYTECODE', + sourceUrl: asFrame[4], + line1Based: Number.parseInt(asFrame[5], 10), + virtualOffset0Based: Number.parseInt(asFrame[6], 10) + } : { type: 'BYTECODE', sourceUrl: asFrame[4], line1Based: Number.parseInt(asFrame[5], 10), @@ -20895,6 +26929,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e entries.push(entry); continue; } + // No match - we're still in the message lastMessageLine = i; entries = []; } @@ -20904,12 +26939,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e entries: entries }; }; -},58,[],"node_modules/react-native/Libraries/Core/Devtools/parseHermesStack.js"); +},74,[],"node_modules/react-native/Libraries/Core/Devtools/parseHermesStack.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); var _RCTLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/RCTLog")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var LogBox; + /** + * LogBox displays logs in the app. + */ if (__DEV__) { var LogBoxData = _$$_REQUIRE(_dependencyMap[3], "./Data/LogBoxData"); var _require = _$$_REQUIRE(_dependencyMap[4], "./Data/parseLogBoxLog"), @@ -20927,16 +26978,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } isLogBoxInstalled = true; + // Trigger lazy initialization of module. _$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeLogBox"); + // IMPORTANT: we only overwrite `console.error` and `console.warn` once. + // When we uninstall we keep the same reference and only change its + // internal implementation var isFirstInstall = originalConsoleError == null; if (isFirstInstall) { originalConsoleError = console.error.bind(console); originalConsoleWarn = console.warn.bind(console); + // $FlowExpectedError[cannot-write] console.error = function () { consoleErrorImpl.apply(void 0, arguments); }; + // $FlowExpectedError[cannot-write] console.warn = function () { consoleWarnImpl.apply(void 0, arguments); }; @@ -20956,6 +27013,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } isLogBoxInstalled = false; + // IMPORTANT: we don't re-assign to `console` in case the method has been + // decorated again after installing LogBox. E.g.: + // Before uninstalling: original > LogBox > OtherErrorHandler + // After uninstalling: original > LogBox (noop) > OtherErrorHandler consoleErrorImpl = originalConsoleError; consoleWarnImpl = originalConsoleWarn; }, @@ -20986,6 +27047,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } + // RCTLogAdvice is a native logging function designed to show users + // a message in the console, but not show it to them in Logbox. return typeof args[0] === 'string' && args[0].startsWith('(ADVICE)'); }; var isWarningModuleWarning = function isWarningModuleWarning() { @@ -20998,9 +27061,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { args[_key3] = arguments[_key3]; } + // Let warnings within LogBox itself fall through. if (LogBoxData.isLogBoxErrorMessage(String(args[0]))) { originalConsoleError.apply(void 0, args); return; + } else { + // Be sure to pass LogBox warnings through. + originalConsoleWarn.apply(void 0, args); } try { if (!isRCTLogAdviceWarning.apply(void 0, args)) { @@ -21009,7 +27076,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e message = _parseLogBoxLog.message, componentStack = _parseLogBoxLog.componentStack; if (!LogBoxData.isMessageIgnored(message.content)) { - originalConsoleWarn.apply(void 0, args); LogBoxData.addLog({ level: 'warn', category: category, @@ -21023,16 +27089,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ var registerError = function registerError() { for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { args[_key4] = arguments[_key4]; } + // Let errors within LogBox itself fall through. if (LogBoxData.isLogBoxErrorMessage(args[0])) { originalConsoleError.apply(void 0, args); return; } try { if (!isWarningModuleWarning.apply(void 0, args)) { + // Only show LogBox for the 'warning' module, otherwise pass through. + // By passing through, this will get picked up by the React console override, + // potentially adding the component stack. React then passes it back to the + // React Native ExceptionsManager, which reports it to LogBox as an error. + // + // The 'warning' module needs to be handled here because React internally calls + // `console.error('Warning: ')` with the component stack already included. originalConsoleError.apply(void 0, args); return; } @@ -21045,17 +27121,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (filterResult.suppressDialog_LEGACY === true) { level = 'warn'; } else if (filterResult.forceDialogImmediately === true) { - level = 'fatal'; + level = 'fatal'; // Do not downgrade. These are real bugs with same severity as throws. } - args[0] = "Warning: " + filterResult.finalFormat; + // Unfortunately, we need to add the Warning: prefix back for downstream dependencies. + args[0] = `Warning: ${filterResult.finalFormat}`; var _parseLogBoxLog2 = parseLogBoxLog(args), category = _parseLogBoxLog2.category, message = _parseLogBoxLog2.message, componentStack = _parseLogBoxLog2.componentStack; + + // Interpolate the message so they are formatted for adb and other CLIs. + // This is different than the message.content above because it includes component stacks. + var interpolated = parseInterpolation(args); + originalConsoleError(interpolated.message.content); if (!LogBoxData.isMessageIgnored(message.content)) { - var interpolated = parseInterpolation(args); - originalConsoleError(interpolated.message.content); LogBoxData.addLog({ level: level, category: category, @@ -21070,27 +27150,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { LogBox = { install: function install() { + // Do nothing. }, uninstall: function uninstall() { + // Do nothing. }, isInstalled: function isInstalled() { return false; }, ignoreLogs: function ignoreLogs(patterns) { + // Do nothing. }, ignoreAllLogs: function ignoreAllLogs(value) { + // Do nothing. }, clearAllLogs: function clearAllLogs() { + // Do nothing. }, addLog: function addLog(log) { + // Do nothing. }, addException: function addException(error) { + // Do nothing. } }; } - module.exports = LogBox; -},59,[3,14,60,61,71,70],"node_modules/react-native/Libraries/LogBox/LogBox.js"); + var _default = LogBox; + exports.default = _default; +},75,[3,17,76,77,87,78],"node_modules/react-native/Libraries/LogBox/LogBox.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -21103,18 +27200,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var warningHandler = null; var RCTLog = { + // level one of log, info, warn, error, mustfix logIfNoNativeHook: function logIfNoNativeHook(level) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } + // We already printed in the native console, so only log here if using a js debugger if (typeof global.nativeLoggingHook === 'undefined') { RCTLog.logToConsole.apply(RCTLog, [level].concat(args)); } else { + // Report native warnings to LogBox if (warningHandler && level === 'warn') { warningHandler.apply(void 0, args); } } }, + // Log to console regardless of nativeLoggingHook logToConsole: function logToConsole(level) { var _console; var logFn = levelsMap[level]; @@ -21129,7 +27230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = RCTLog; -},60,[17],"node_modules/react-native/Libraries/Utilities/RCTLog.js"); +},76,[20],"node_modules/react-native/Libraries/Utilities/RCTLog.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -21162,15 +27263,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxLog")); - var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Core/Devtools/parseErrorStack")); - var _NativeLogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../NativeModules/specs/NativeLogBox")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"; + var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Core/Devtools/parseErrorStack")); + var _NativeLogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../NativeModules/specs/NativeLogBox")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxLog")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"; function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; var observers = new Set(); @@ -21201,11 +27311,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function reportLogBoxError(error, componentStack) { var ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "../../Core/ExceptionsManager"); - error.message = LOGBOX_ERROR_MESSAGE + "\n\n" + error.message; + error.message = `${LOGBOX_ERROR_MESSAGE}\n\n${error.message}`; if (componentStack != null) { error.componentStack = componentStack; } - ExceptionsManager.handleException(error, true); + ExceptionsManager.handleException(error, /* isFatal */true); } function isLogBoxErrorMessage(message) { return typeof message === 'string' && message.includes(LOGBOX_ERROR_MESSAGE); @@ -21231,10 +27341,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function appendNewLog(newLog) { + // Don't want store these logs because they trigger a + // state update when we add them to the store. if (isMessageIgnored(newLog.message.content)) { return; } + // If the next log has the same category as the previous one + // then roll it up into the last log in the list by incrementing + // the count (similar to how Chrome does it). var lastLog = Array.from(logs).pop(); if (lastLog && lastLog.category === newLog.category) { lastLog.incrementCount(); @@ -21242,6 +27357,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } if (newLog.level === 'fatal') { + // If possible, to avoid jank, we don't want to open the error before + // it's symbolicated. To do that, we optimistically wait for + // symbolication for up to a second before adding the log. var OPTIMISTIC_WAIT_TIME = 1000; var _addPendingLog = function addPendingLog() { logs.add(newLog); @@ -21262,6 +27380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _addPendingLog(); clearTimeout(optimisticTimeout); } else if (status !== 'PENDING') { + // The log has already been added but we need to trigger a render. handleUpdate(); } }); @@ -21276,6 +27395,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function addLog(log) { var errorForStackTrace = new Error(); + // Parsing logs are expensive so we schedule this + // otherwise spammy logs would pause rendering. setImmediate(function () { try { var stack = (0, _parseErrorStack.default)(errorForStackTrace == null ? void 0 : errorForStackTrace.stack); @@ -21293,6 +27414,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } function addException(error) { + // Parsing logs are expensive so we schedule this + // otherwise spammy logs would pause rendering. setImmediate(function () { try { appendNewLog(new _LogBoxLog.default((0, _$$_REQUIRE(_dependencyMap[11], "./parseLogBoxLog").parseLogBoxException)(error))); @@ -21326,6 +27449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var logArray = Array.from(logs); var index = logArray.length - 1; while (index >= 0) { + // The latest syntax error is selected and displayed before all other logs. if (logArray[index].level === 'syntax') { newIndex = index; break; @@ -21386,6 +27510,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function addIgnorePatterns(patterns) { var existingSize = ignorePatterns.size; + // The same pattern may be added multiple times, but adding a new pattern + // can be expensive so let's find only the ones that are new. patterns.forEach(function (pattern) { if (pattern instanceof RegExp) { for (var existingPattern of ignorePatterns) { @@ -21400,6 +27526,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (ignorePatterns.size === existingSize) { return; } + // We need to recheck all of the existing logs. + // This allows adding an ignore pattern anywhere in the codebase. + // Without this, if you ignore a pattern after the a log is created, + // then we would keep showing the log. logs = new Set(Array.from(logs).filter(function (log) { return !isMessageIgnored(log.message.content); })); @@ -21428,7 +27558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } function withSubscription(WrappedComponent) { - var LogBoxStateSubscription = function (_React$Component) { + var LogBoxStateSubscription = /*#__PURE__*/function (_React$Component) { (0, _inherits2.default)(LogBoxStateSubscription, _React$Component); var _super = _createSuper(LogBoxStateSubscription); function LogBoxStateSubscription() { @@ -21445,6 +27575,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e selectedLogIndex: -1 }; _this._handleDismiss = function () { + // Here we handle the cases when the log is dismissed and it + // was either the last log, or when the current index + // is now outside the bounds of the log array. var _this$state = _this.state, selectedLogIndex = _this$state.selectedLogIndex, stateLogs = _this$state.logs; @@ -21469,15 +27602,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _createClass2.default)(LogBoxStateSubscription, [{ key: "componentDidCatch", value: function componentDidCatch(err, errorInfo) { + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ reportLogBoxError(err, errorInfo.componentStack); } }, { key: "render", value: function render() { if (this.state.hasError) { + // This happens when the component failed to render, in which case we delegate to the native redbox. + // We can't show anyback fallback UI here, because the error may be with or . return null; } - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(WrappedComponent, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(WrappedComponent, { logs: Array.from(this.state.logs), isDisabled: this.state.isDisabled, selectedLogIndex: this.state.selectedLogIndex @@ -21510,7 +27647,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); return LogBoxStateSubscription; } -},61,[3,12,13,50,47,46,36,62,56,70,45,71,73],"node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"); +},77,[3,12,13,49,51,53,72,78,79,41,67,87,89],"node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('LogBox'); + exports.default = _default; +},78,[19],"node_modules/react-native/Libraries/NativeModules/specs/NativeLogBox.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -21521,7 +27678,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var LogBoxSymbolication = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./LogBoxSymbolication")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var LogBoxLog = function () { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var LogBoxLog = /*#__PURE__*/function () { function LogBoxLog(data) { (0, _classCallCheck2.default)(this, LogBoxLog); this.symbolicated = { @@ -21612,7 +27778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = LogBoxLog; exports.default = _default; -},62,[3,12,13,63],"node_modules/react-native/Libraries/LogBox/Data/LogBoxLog.js"); +},79,[3,12,13,80],"node_modules/react-native/Libraries/LogBox/Data/LogBoxLog.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -21620,9 +27786,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.deleteStack = deleteStack; exports.symbolicate = symbolicate; var _symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Core/Devtools/symbolicateStackTrace")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var cache = new Map(); + /** + * Sanitize because sometimes, `symbolicateStackTrace` gives us invalid values. + */ var sanitize = function sanitize(_ref) { var maybeStack = _ref.stack, codeFrame = _ref.codeFrame; @@ -21662,22 +27840,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return promise; } -},63,[3,64],"node_modules/react-native/Libraries/LogBox/Data/LogBoxSymbolication.js"); +},80,[3,81],"node_modules/react-native/Libraries/LogBox/Data/LogBoxSymbolication.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + var _symbolicateStackTrace; function symbolicateStackTrace(_x) { - return _symbolicateStackTrace.apply(this, arguments); - } - function _symbolicateStackTrace() { - _symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/asyncToGenerator")(function* (stack) { + return (_symbolicateStackTrace = _symbolicateStackTrace || _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/asyncToGenerator")(function* (stack) { var _global$fetch; var devServer = _$$_REQUIRE(_dependencyMap[1], "./getDevServer")(); if (!devServer.bundleLoadedFromServer) { throw new Error('Bundle was not loaded from Metro.'); } + // Lazy-load `fetch` until the first symbolication call to avoid circular requires. var fetch = (_global$fetch = global.fetch) != null ? _global$fetch : _$$_REQUIRE(_dependencyMap[2], "../../Network/fetch"); var response = yield fetch(devServer.url + 'symbolicate', { method: 'POST', @@ -21686,11 +27872,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); return yield response.json(); - }); - return _symbolicateStackTrace.apply(this, arguments); + })).apply(this, arguments); } module.exports = symbolicateStackTrace; -},64,[65,66,68],"node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js"); +},81,[82,83,85],"node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { @@ -21723,13 +27908,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; -},65,[],"node_modules/@babel/runtime/helpers/asyncToGenerator.js"); +},82,[],"node_modules/@babel/runtime/helpers/asyncToGenerator.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _NativeSourceCode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../NativeModules/specs/NativeSourceCode")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var _cachedDevServerURL; var _cachedFullBundleURL; var FALLBACK = 'http://localhost:8081/'; + /** + * Many RN development tools rely on the development server (packager) running + * @return URL to packager with trailing slash + */ function getDevServer() { var _cachedDevServerURL2; if (_cachedDevServerURL === undefined) { @@ -21745,7 +27943,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } module.exports = getDevServer; -},66,[3,67],"node_modules/react-native/Libraries/Core/Devtools/getDevServer.js"); +},83,[3,84],"node_modules/react-native/Libraries/Core/Devtools/getDevServer.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -21754,6 +27952,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var NativeModule = TurboModuleRegistry.getEnforcing('SourceCode'); var constants = null; @@ -21767,11 +27974,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = NativeSourceCode; exports.default = _default; -},67,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeSourceCode.js"); +},84,[19],"node_modules/react-native/Libraries/NativeModules/specs/NativeSourceCode.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /* globals Headers, Request, Response */ 'use strict'; + // side-effectful require() to put fetch, + // Headers, Request, Response in global scope _$$_REQUIRE(_dependencyMap[0], "whatwg-fetch"); module.exports = { fetch: fetch, @@ -21779,18 +27999,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Request: Request, Response: Response }; -},68,[69],"node_modules/react-native/Libraries/Network/fetch.js"); +},85,[86],"node_modules/react-native/Libraries/Network/fetch.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : factory(global.WHATWGFetch = {}); })(this, function (exports) { 'use strict'; - var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; + /* eslint-disable no-prototype-builtins */ + var g = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || + // eslint-disable-next-line no-undef + typeof global !== 'undefined' && global || {}; var support = { - searchParams: 'URLSearchParams' in global, - iterable: 'Symbol' in global && 'iterator' in Symbol, - blob: 'FileReader' in global && 'Blob' in global && function () { + searchParams: 'URLSearchParams' in g, + iterable: 'Symbol' in g && 'iterator' in Symbol, + blob: 'FileReader' in g && 'Blob' in g && function () { try { new Blob(); return true; @@ -21798,8 +28021,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; } }(), - formData: 'FormData' in global, - arrayBuffer: 'ArrayBuffer' in global + formData: 'FormData' in g, + arrayBuffer: 'ArrayBuffer' in g }; function isDataView(obj) { return obj && DataView.prototype.isPrototypeOf(obj); @@ -21826,6 +28049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return value; } + // Build a destructive iterator for the value list function iteratorFor(items) { var iterator = { next: function next() { @@ -21851,6 +28075,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, this); } else if (Array.isArray(headers)) { headers.forEach(function (header) { + if (header.length != 2) { + throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length); + } this.append(header[0], header[1]); }, this); } else if (headers) { @@ -21910,6 +28137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Headers.prototype[Symbol.iterator] = Headers.prototype.entries; } function consumed(body) { + if (body._noBody) return; if (body.bodyUsed) { return Promise.reject(new TypeError('Already read')); } @@ -21934,7 +28162,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function readBlobAsText(blob) { var reader = new FileReader(); var promise = fileReaderReady(reader); - reader.readAsText(blob); + var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type); + var encoding = match ? match[1] : 'utf-8'; + reader.readAsText(blob, encoding); return promise; } function readArrayBufferAsText(buf) { @@ -21957,9 +28187,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function Body() { this.bodyUsed = false; this._initBody = function (body) { + /* + fetch-mock wraps the Response object in an ES6 Proxy to + provide useful test harness features such as flush. However, on + ES5 browsers without fetch or Proxy support pollyfills must be used; + the proxy-pollyfill is unable to proxy an attribute unless it exists + on the object before the Proxy is created. This change ensures + Response.bodyUsed exists on the instance, while maintaining the + semantic of setting Request.bodyUsed in the constructor before + _initBody is called. + */ + // eslint-disable-next-line no-self-assign this.bodyUsed = this.bodyUsed; this._bodyInit = body; if (!body) { + this._noBody = true; this._bodyText = ''; } else if (typeof body === 'string') { this._bodyText = body; @@ -21971,6 +28213,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._bodyText = body.toString(); } else if (support.arrayBuffer && support.blob && isDataView(body)) { this._bodyArrayBuffer = bufferClone(body.buffer); + // IE 10-11 can't handle a DataView body. this._bodyInit = new Blob([this._bodyArrayBuffer]); } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { this._bodyArrayBuffer = bufferClone(body); @@ -22003,22 +28246,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.resolve(new Blob([this._bodyText])); } }; - this.arrayBuffer = function () { - if (this._bodyArrayBuffer) { - var isConsumed = consumed(this); - if (isConsumed) { - return isConsumed; - } - if (ArrayBuffer.isView(this._bodyArrayBuffer)) { - return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)); - } else { - return Promise.resolve(this._bodyArrayBuffer); - } + } + this.arrayBuffer = function () { + if (this._bodyArrayBuffer) { + var isConsumed = consumed(this); + if (isConsumed) { + return isConsumed; + } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) { + return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)); } else { - return this.blob().then(readBlobAsArrayBuffer); + return Promise.resolve(this._bodyArrayBuffer); } - }; - } + } else if (support.blob) { + return this.blob().then(readBlobAsArrayBuffer); + } else { + throw new Error('could not read as ArrayBuffer'); + } + }; this.text = function () { var rejected = consumed(this); if (rejected) { @@ -22045,7 +28289,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this; } - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + // HTTP methods whose capitalization should be normalized + var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']; function normalizeMethod(method) { var upcased = method.toUpperCase(); return methods.indexOf(upcased) > -1 ? upcased : method; @@ -22081,7 +28326,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } this.method = normalizeMethod(options.method || this.method || 'GET'); this.mode = options.mode || this.mode || null; - this.signal = options.signal || this.signal; + this.signal = options.signal || this.signal || function () { + if ('AbortController' in g) { + var ctrl = new AbortController(); + return ctrl.signal; + } + }(); this.referrer = null; if ((this.method === 'GET' || this.method === 'HEAD') && body) { throw new TypeError('Body not allowed for GET or HEAD requests'); @@ -22089,10 +28339,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._initBody(body); if (this.method === 'GET' || this.method === 'HEAD') { if (options.cache === 'no-store' || options.cache === 'no-cache') { + // Search for a '_' parameter in the query string var reParamSearch = /([?&])_=[^&]*/; if (reParamSearch.test(this.url)) { + // If it already exists then set the value with the current time this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); } else { + // Otherwise add a new '_' parameter to the end with the current time var reQueryString = /\?/; this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); } @@ -22118,7 +28371,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function parseHeaders(rawHeaders) { var headers = new Headers(); + // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space + // https://tools.ietf.org/html/rfc7230#section-3.2 var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill + // https://github.com/github/fetch/issues/748 + // https://github.com/zloirock/core-js/issues/751 preProcessedHeaders.split('\r').map(function (header) { return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header; }).forEach(function (line) { @@ -22126,7 +28384,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var key = parts.shift().trim(); if (key) { var value = parts.join(':').trim(); - headers.append(key, value); + try { + headers.append(key, value); + } catch (error) { + console.warn('Response ' + error.message); + } } }); return headers; @@ -22141,6 +28403,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } this.type = 'default'; this.status = options.status === undefined ? 200 : options.status; + if (this.status < 200 || this.status > 599) { + throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); + } this.ok = this.status >= 200 && this.status < 300; this.statusText = options.statusText === undefined ? '' : '' + options.statusText; this.headers = new Headers(options.headers); @@ -22158,9 +28423,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; Response.error = function () { var response = new Response(null, { - status: 0, + status: 200, statusText: '' }); + response.status = 0; response.type = 'error'; return response; }; @@ -22176,7 +28442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }; - exports.DOMException = global.DOMException; + exports.DOMException = g.DOMException; try { new exports.DOMException(); } catch (err) { @@ -22201,10 +28467,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } xhr.onload = function () { var options = { - status: xhr.status, statusText: xhr.statusText, headers: parseHeaders(xhr.getAllResponseHeaders() || '') }; + // This check if specifically for when a user fetches a file locally from the file system + // Only if the status is out of a normal range + if (request.url.startsWith('file://') && (xhr.status < 200 || xhr.status > 599)) { + options.status = 200; + } else { + options.status = xhr.status; + } options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); var body = 'response' in xhr ? xhr.response : xhr.responseText; setTimeout(function () { @@ -22228,7 +28500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; function fixUrl(url) { try { - return url === '' && global.location.href ? global.location.href : url; + return url === '' && g.location.href ? g.location.href : url; } catch (e) { return url; } @@ -22242,14 +28514,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if ('responseType' in xhr) { if (support.blob) { xhr.responseType = 'blob'; - } else if (support.arrayBuffer && request.headers.get('Content-Type') && request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1) { + } else if (support.arrayBuffer) { xhr.responseType = 'arraybuffer'; } } - if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { + if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || g.Headers && init.headers instanceof g.Headers)) { + var names = []; Object.getOwnPropertyNames(init.headers).forEach(function (name) { + names.push(normalizeName(name)); xhr.setRequestHeader(name, normalizeValue(init.headers[name])); }); + request.headers.forEach(function (value, name) { + if (names.indexOf(name) === -1) { + xhr.setRequestHeader(name, value); + } + }); } else { request.headers.forEach(function (value, name) { xhr.setRequestHeader(name, value); @@ -22258,6 +28537,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (request.signal) { request.signal.addEventListener('abort', abortXhr); xhr.onreadystatechange = function () { + // DONE (success or failure) if (xhr.readyState === 4) { request.signal.removeEventListener('abort', abortXhr); } @@ -22267,11 +28547,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } fetch.polyfill = true; - if (!global.fetch) { - global.fetch = fetch; - global.Headers = Headers; - global.Request = Request; - global.Response = Response; + if (!g.fetch) { + g.fetch = fetch; + g.Headers = Headers; + g.Request = Request; + g.Response = Response; } exports.Headers = Headers; exports.Request = Request; @@ -22281,18 +28561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); }); -},69,[],"node_modules/whatwg-fetch/dist/fetch.umd.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('LogBox'); - exports.default = _default; -},70,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeLogBox.js"); +},86,[],"node_modules/whatwg-fetch/dist/fetch.umd.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -22303,12 +28572,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.parseLogBoxLog = parseLogBoxLog; var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray")); - var _UTFSequence = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../UTFSequence")); - var _stringifySafe = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/stringifySafe")); - var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Core/Devtools/parseErrorStack")); + var _parseErrorStack = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Core/Devtools/parseErrorStack")); + var _UTFSequence = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../UTFSequence")); + var _stringifySafe = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/stringifySafe")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var BABEL_TRANSFORM_ERROR_FORMAT = /^(?:TransformError )?(?:SyntaxError: |ReferenceError: )(.*): (.*) \((\d+):(\d+)\)\n\n([\s\S]+)/; - var BABEL_CODE_FRAME_ERROR_FORMAT = /^(?:TransformError )?(?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*):? (?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)(\/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?)\n([ >]{2}[\t-\r 0-9\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+ \|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+|\x1B(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/; + var BABEL_CODE_FRAME_ERROR_FORMAT = + // eslint-disable-next-line no-control-regex + /^(?:TransformError )?(?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*):? (?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)(\/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?)\n([ >]{2}[\t-\r 0-9\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+ \|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+|\x1B(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/; var METRO_ERROR_FORMAT = /^(?:InternalError Metro has encountered an error:) ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*) \(([0-9]+):([0-9]+)\)\n\n((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/; var SUBSTITUTION = _UTFSequence.default.BOM + '%s'; function parseInterpolation(args) { @@ -22329,6 +28609,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e contentString += formatStringPart; if (substitutionIndex < substitutionCount) { if (substitutionIndex < substitutions.length) { + // Don't stringify a string type. + // It adds quotation mark wrappers around the string, + // which causes the LogBox to look odd. var substitution = typeof substitutions[substitutionIndex] === 'string' ? substitutions[substitutionIndex] : (0, _stringifySafe.default)(substitutions[substitutionIndex]); substitutionOffsets.push({ length: substitution.length, @@ -22351,6 +28634,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e contentParts.push(contentString); } var remainingArgs = remaining.map(function (arg) { + // Don't stringify a string type. + // It adds quotation mark wrappers around the string, + // which causes the LogBox to look odd. return typeof arg === 'string' ? arg : (0, _stringifySafe.default)(arg); }); categoryParts.push.apply(categoryParts, (0, _toConsumableArray2.default)(remainingArgs)); @@ -22370,6 +28656,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return isOldComponentStackFormat || isNewComponentStackFormat || isNewJSCComponentStackFormat; } function parseComponentStack(message) { + // In newer versions of React, the component stack is formatted as a call stack frame. + // First try to parse the component stack as a call stack frame, and if that doesn't + // work then we'll fallback to the old custom component stack format parsing. var stack = (0, _parseErrorStack.default)(message); if (stack && stack.length > 0) { return stack.map(function (frame) { @@ -22436,11 +28725,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e content: content, substitutions: [] }, - category: fileName + "-" + row + "-" + column + category: `${fileName}-${row}-${column}` }; } var babelTransformError = message.match(BABEL_TRANSFORM_ERROR_FORMAT); if (babelTransformError) { + // Transform errors are thrown from inside the Babel transformer. var _babelTransformError$ = babelTransformError.slice(1), _babelTransformError$2 = (0, _slicedToArray2.default)(_babelTransformError$, 5), _fileName = _babelTransformError$2[0], @@ -22465,11 +28755,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e content: _content, substitutions: [] }, - category: _fileName + "-" + _row + "-" + _column + category: `${_fileName}-${_row}-${_column}` }; } var babelCodeFrameError = message.match(BABEL_CODE_FRAME_ERROR_FORMAT); if (babelCodeFrameError) { + // Codeframe errors are thrown from any use of buildCodeFrameError. var _babelCodeFrameError$ = babelCodeFrameError.slice(1), _babelCodeFrameError$2 = (0, _slicedToArray2.default)(_babelCodeFrameError$, 3), _fileName2 = _babelCodeFrameError$2[0], @@ -22483,13 +28774,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e codeFrame: { fileName: _fileName2, location: null, + // We are not given the location. content: _codeFrame2 }, message: { content: _content2, substitutions: [] }, - category: _fileName2 + "-" + 1 + "-" + 1 + category: `${_fileName2}-${1}-${1}` }; } if (message.match(/^TransformError /)) { @@ -22515,6 +28807,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, parseInterpolation([message])); } if (componentStack != null) { + // It is possible that console errors have a componentStack. return Object.assign({ level: 'error', stack: error.stack, @@ -22523,6 +28816,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, parseInterpolation([message])); } + // Most `console.error` calls won't have a componentStack. We parse them like + // regular logs which have the component stack buried in the message. return Object.assign({ level: 'error', stack: error.stack, @@ -22534,6 +28829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var argsWithoutComponentStack = []; var componentStack = []; + // Extract component stack from warnings like "Some warning%s". if (typeof message === 'string' && message.slice(-2) === '%s' && args.length > 0) { var lastArg = args[args.length - 1]; if (typeof lastArg === 'string' && isComponentStack(lastArg)) { @@ -22543,10 +28839,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (componentStack.length === 0) { + // Try finding the component stack elsewhere. for (var arg of args) { if (typeof arg === 'string' && isComponentStack(arg)) { + // Strip out any messages before the component stack. var messageEndIndex = arg.search(/\n {4}(in|at) /); if (messageEndIndex < 0) { + // Handle JSC component stacks. messageEndIndex = arg.search(/\n/); } if (messageEndIndex > 0) { @@ -22562,30 +28861,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e componentStack: componentStack }); } -},71,[3,19,6,72,26,56],"node_modules/react-native/Libraries/LogBox/Data/parseLogBoxLog.js"); +},87,[3,22,6,72,88,29],"node_modules/react-native/Libraries/LogBox/Data/parseLogBoxLog.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /** + * A collection of Unicode sequences for various characters and emoji. + * + * - More explicit than using the sequences directly in code. + * - Source code should be limited to ASCII. + * - Less chance of typos. + */ var UTFSequence = _$$_REQUIRE(_dependencyMap[0], "./Utilities/deepFreezeAndThrowOnMutationInDev")({ BOM: "\uFEFF", + // byte order mark BULLET: "\u2022", + // bullet: • BULLET_SP: "\xA0\u2022\xA0", + //  •  MIDDOT: "\xB7", + // normal middle dot: · MIDDOT_SP: "\xA0\xB7\xA0", + //  ·  MIDDOT_KATAKANA: "\u30FB", + // katakana middle dot MDASH: "\u2014", + // em dash: — MDASH_SP: "\xA0\u2014\xA0", + //  —  NDASH: "\u2013", + // en dash: – NDASH_SP: "\xA0\u2013\xA0", + //  –  + NEWLINE: "\n", NBSP: "\xA0", + // non-breaking space:   PIZZA: "\uD83C\uDF55", TRIANGLE_LEFT: "\u25C0", - TRIANGLE_RIGHT: "\u25B6" + // black left-pointing triangle + TRIANGLE_RIGHT: "\u25B6" // black right-pointing triangle }); - - module.exports = UTFSequence; -},72,[27],"node_modules/react-native/Libraries/UTFSequence.js"); + var _default = UTFSequence; + exports.default = _default; +},88,[30],"node_modules/react-native/Libraries/UTFSequence.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -22594,7 +28926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-jsx-runtime.development.js"); } -},73,[74,75],"node_modules/react/jsx-runtime.js"); +},89,[90,91],"node_modules/react/jsx-runtime.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @license React @@ -22626,12 +28958,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e void 0 !== g && (e = "" + g); void 0 !== a.key && (e = "" + a.key); void 0 !== a.ref && (h = a.ref); - for (b in a) { - m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); - } - if (c && c.defaultProps) for (b in a = c.defaultProps, a) { - void 0 === d[b] && (d[b] = a[b]); - } + for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); + if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]); return { $$typeof: k, type: c, @@ -22644,7 +28972,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.Fragment = l; exports.jsx = q; exports.jsxs = q; -},74,[36],"node_modules/react/cjs/react-jsx-runtime.production.min.js"); +},90,[41],"node_modules/react/cjs/react-jsx-runtime.production.min.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @license React @@ -22664,14 +28992,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var React = _$$_REQUIRE(_dependencyMap[0], "react"); - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - - var enableLegacyHidden = false; - - var enableDebugTracing = false; - + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for('react.element'); var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); @@ -22709,23 +29033,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== '') { format += '%s'; args = args.concat([stack]); - } + } // eslint-disable-next-line react-internal/safe-string-coercion var argsWithFormat = args.map(function (item) { return String(item); - }); + }); // Careful: RN currently depends on this prefix - argsWithFormat.unshift('Warning: ' + format); + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } } + + // ----------------------------------------------------------------------------- + + var enableScopeAPI = false; // Experimental Create Event Handle API. + var enableCacheElement = false; + var enableTransitionTracing = false; // No known bugs, but needs performance testing + + var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber + // stuff. Intended to enable React core members to more easily debug scheduling + // issues in DEV builds. + + var enableDebugTracing = false; // Track which Fiber(s) schedule render work. + var REACT_MODULE_REFERENCE; { REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); @@ -22733,13 +29074,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { return true; - } + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { return true; } if (typeof type === 'object' && type !== null) { if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || + // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { return true; } @@ -22753,14 +29098,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var functionName = innerType.displayName || innerType.name || ''; return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName; - } + } // Keep in sync with react-reconciler/getComponentNameFromFiber function getContextName(type) { return type.displayName || 'Context'; - } + } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. function getComponentNameFromType(type) { if (type == null) { + // Host root, text node or just invalid type. return null; } { @@ -22816,6 +29162,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // eslint-disable-next-line no-fallthrough } } @@ -22823,6 +29170,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var assign = Object.assign; + // Helpers to patch console.logs to avoid logging during side-effect free + // replaying on render function. This currently only patches the object + // lazily which won't cover if the log function was extracted eagerly. + // We could also eagerly patch the method. var disabledDepth = 0; var prevLog; var prevInfo; @@ -22836,20 +29187,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function disableLogs() { { if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ prevLog = console.log; prevInfo = console.info; prevWarn = console.warn; prevError = console.error; prevGroup = console.group; prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 var props = { configurable: true, enumerable: true, value: disabledLog, writable: true - }; + }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { info: props, @@ -22860,6 +29212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e groupCollapsed: props, groupEnd: props }); + /* eslint-enable react-internal/no-production-logging */ } disabledDepth++; @@ -22869,11 +29222,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { disabledDepth--; if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ var props = { configurable: true, enumerable: true, writable: true - }; + }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { log: assign({}, props, { @@ -22898,6 +29252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: prevGroupEnd }) }); + /* eslint-enable react-internal/no-production-logging */ } if (disabledDepth < 0) { @@ -22910,13 +29265,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === undefined) { + // Extract the VM specific prefix used by each line. try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ''; } - } + } // We use the prefix to ensure our stacks line up with native stack frames. return '\n' + prefix + name; } @@ -22928,6 +29284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e componentFrameCache = new PossiblyWeakMap(); } function describeNativeComponentFrame(fn, construct) { + // If something asked for a stack inside a fake render, it should get ignored. if (!fn || reentry) { return ''; } @@ -22939,28 +29296,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var control; reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined. Error.prepareStackTrace = undefined; var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher.current; + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function + // for warnings. ReactCurrentDispatcher.current = null; disableLogs(); } try { + // This should throw. if (construct) { + // Something should be setting the props in the constructor. var Fake = function Fake() { throw Error(); - }; + }; // $FlowFixMe Object.defineProperty(Fake.prototype, 'props', { set: function set() { + // We use a throwing setter instead of frozen or non-writable props + // because that won't throw in a non-strict mode function. throw Error(); } }); if (typeof Reflect === 'object' && Reflect.construct) { + // We construct a different control for this case to include any extra + // frames added by the construct call. try { Reflect.construct(Fake, []); } catch (x) { @@ -22984,23 +29348,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fn(); } } catch (sample) { + // This is inlined manually because closure doesn't do it for us. if (sample && control && typeof sample.stack === 'string') { + // This extracts the first frame from the sample that isn't also in the control. + // Skipping one frame that we assume is the frame that calls the two. var sampleLines = sample.stack.split('\n'); var controlLines = control.stack.split('\n'); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + // We expect at least one stack frame to be shared. + // Typically this will be the root most one. However, stack frames may be + // cut off due to maximum stack limits. In this case, one maybe cut off + // earlier than the other. We assume that the sample is longer or the same + // and there for cut off earlier. So we should find the root most frame in + // the sample somewhere in the control. c--; } for (; s >= 1 && c >= 0; s--, c--) { + // Next we find the first one that isn't the same which should be the + // frame that called our sample function and the control. if (sampleLines[s] !== controlLines[c]) { + // In V8, the first line is describing the message but other VMs don't. + // If we're about to return the first line, and the control is also on the same + // line, that's a pretty good indicator that our sample threw at same line as + // the control. I.e. before we entered the sample frame. So we ignore this result. + // This can happen if you passed a class to function component, or non-function. if (s !== 1 || c !== 1) { do { s--; - c--; + c--; // We may still have similar intermediate frames from the construct call. + // The next one that isn't the same should be our match though. if (c < 0 || sampleLines[s] !== controlLines[c]) { - var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "" + // but we have a user-provided "displayName" + // splice it in to make the stack more readable. if (fn.displayName && _frame.includes('')) { _frame = _frame.replace('', fn.displayName); @@ -23009,7 +29393,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof fn === 'function') { componentFrameCache.set(fn, _frame); } - } + } // Return the line we found. return _frame; } @@ -23026,7 +29410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e reenableLogs(); } Error.prepareStackTrace = previousPrepareStackTrace; - } + } // Fallback to just using the name if we couldn't make it throw. var name = fn ? fn.displayName || fn.name : ''; var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; @@ -23069,6 +29453,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render); case REACT_MEMO_TYPE: + // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_LAZY_TYPE: { @@ -23076,6 +29461,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var payload = lazyComponent._payload; var init = lazyComponent._init; try { + // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } @@ -23099,13 +29485,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function checkPropTypes(typeSpecs, values, location, componentName, element) { { + // $FlowFixMe This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. if (typeof typeSpecs[typeSpecName] !== 'function') { + // eslint-disable-next-line react-internal/prod-error-codes var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); err.name = 'Invariant Violation'; throw err; @@ -23120,6 +29512,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCurrentlyValidatingElement(null); } if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. loggedTypeFailures[error$1.message] = true; setCurrentlyValidatingElement(element); error('Failed %s type: %s', location, error$1.message); @@ -23129,19 +29523,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } - var isArrayImpl = Array.isArray; + var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare function isArray(a) { return isArrayImpl(a); } + /* + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol + * and Temporal.* types. See https://github.com/facebook/react/pull/22064. + * + * The functions in this module will throw an easier-to-understand, + * easier-to-debug exception with a clear errors message message explaining the + * problem. (Instead of a confusing exception thrown inside the implementation + * of the `value` object). + */ + // $FlowFixMe only called in DEV, so void return is not possible. function typeName(value) { { + // toStringTag is needed for namespaced types like Temporal.Instant var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; return type; } - } + } // $FlowFixMe only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -23154,13 +29559,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } function testStringCoercion(value) { + // If you ended up here by following an exception call stack, here's what's + // happened: you supplied an object or symbol value to React (as a prop, key, + // DOM attribute, CSS property, string ref, etc.) and when React tried to + // coerce it to a string using `'' + value`, an exception was thrown. + // + // The most common types that will cause this exception are `Symbol` instances + // and Temporal objects like `Temporal.Instant`. But any object that has a + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this + // exception. (Library authors do this to prevent users from using built-in + // numeric operators like `+` or comparison operators like `>=` because custom + // methods are needed to perform accurate arithmetic or comparison.) + // + // To fix the problem, coerce this object or symbol value to a string before + // passing it to React. The most reliable way is usually `String(value)`. + // + // To find which value is throwing, check the browser or debugger console. + // Before this exception was thrown, there should be `console.error` output + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the + // problem and how that type was used: key, atrribute, input value prop, etc. + // In most cases, this console output also shows the component and its + // ancestor components where the exception happened. + // + // eslint-disable-next-line react-internal/safe-string-coercion return '' + value; } function checkKeyStringCoercion(value) { { if (willCoercionThrow(value)) { error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value)); - return testStringCoercion(value); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) } } } @@ -23241,32 +29669,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } + /** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, instanceof check + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} props + * @param {*} key + * @param {string|object} ref + * @param {*} owner + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @internal + */ var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { var element = { + // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element type: type, key: key, ref: ref, props: props, + // Record the component responsible for creating this element. _owner: owner }; { - element._store = {}; + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. Object.defineProperty(element._store, 'validated', { configurable: false, enumerable: false, writable: true, value: false - }); + }); // self and source are DEV only properties. Object.defineProperty(element, '_self', { configurable: false, enumerable: false, writable: false, value: self - }); + }); // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. Object.defineProperty(element, '_source', { configurable: false, @@ -23281,14 +29740,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return element; }; + /** + * https://github.com/reactjs/rfcs/pull/107 + * @param {*} type + * @param {object} props + * @param {string} key + */ function jsxDEV(type, config, maybeKey, source, self) { { - var propName; + var propName; // Reserved names are extracted var props = {}; var key = null; - var ref = null; + var ref = null; // Currently, key can be spread in as a prop. This causes a potential + // issue if key is also explicitly declared (ie.
+ // or
). We want to deprecate key spread, + // but as an intermediary step, we will use jsxDEV for everything except + //
, because we aren't currently able to tell if + // key is explicitly declared to be undefined or not. if (maybeKey !== undefined) { { @@ -23305,13 +29775,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (hasValidRef(config)) { ref = config.ref; warnIfStringRefCannotBeAutoConverted(config, self); - } + } // Remaining properties are added to a new props object for (propName in config) { if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } - } + } // Resolve default props if (type && type.defaultProps) { var defaultProps = type.defaultProps; @@ -23350,6 +29820,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e { propTypesMisspellWarningShown = false; } + /** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ function isValidElement(object) { { @@ -23377,6 +29854,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ''; } } + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ var ownerHasKeyUseWarning = {}; function getCurrentComponentErrorInfo(parentType) { @@ -23391,6 +29873,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return info; } } + /** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ function validateExplicitKey(element, parentType) { { @@ -23402,10 +29895,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. var childOwner = ''; if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) { + // Give the component that originally created this child. childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; } setCurrentlyValidatingElement$1(element); @@ -23413,6 +29909,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCurrentlyValidatingElement$1(null); } } + /** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ function validateChildKeys(node, parentType) { { @@ -23427,12 +29932,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } else if (isValidElement(node)) { + // This element was passed in a valid location. if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); if (typeof iteratorFn === 'function') { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); var step; @@ -23446,6 +29954,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ function validatePropTypes(element) { { @@ -23457,16 +29971,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof type === 'function') { propTypes = type.propTypes; } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || + // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. type.$$typeof === REACT_MEMO_TYPE)) { propTypes = type.propTypes; } else { return; } if (propTypes) { + // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, 'prop', name, element); } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown'); @@ -23476,6 +29993,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } + /** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ function validateFragmentProps(fragment) { { @@ -23498,7 +30019,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function jsxWithValidation(type, props, key, isStaticChildren, source, self) { { - var validType = isValidElementType(type); + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. if (!validType) { var info = ''; @@ -23524,11 +30046,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); } - var element = jsxDEV(type, props, key, source, self); + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { return element; - } + } // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) if (validType) { var children = props.children; @@ -23556,7 +30083,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return element; } - } + } // These two functions exist to still get child warnings in dev + // even with the prod transform. This means that jsxDEV is purely + // opt-in behavior for better messages but that we won't stop + // giving you warnings if you use production apis. function jsxWithValidationStatic(type, props, key) { { @@ -23568,7 +30098,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return jsxWithValidation(type, props, key, false); } } - var jsx = jsxWithValidationDynamic; + var jsx = jsxWithValidationDynamic; // we may want to special case jsxs internally to take advantage of static children. + // for now we can ship identical prod functions var jsxs = jsxWithValidationStatic; exports.Fragment = REACT_FRAGMENT_TYPE; @@ -23576,7 +30107,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.jsxs = jsxs; })(); } -},75,[36],"node_modules/react/cjs/react-jsx-runtime.development.js"); +},91,[41],"node_modules/react/cjs/react-jsx-runtime.development.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -23584,7 +30115,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = void 0; var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var NativeModule = TurboModuleRegistry.getEnforcing('ExceptionsManager'); var ExceptionsManager = { reportFatalException: function reportFatalException(message, stack, exceptionId) { @@ -23598,6 +30137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, dismissRedbox: function dismissRedbox() { if ("ios" !== 'ios' && NativeModule.dismissRedbox) { + // TODO(T53311281): This is a noop on iOS now. Implement it. NativeModule.dismissRedbox(); } }, @@ -23615,13 +30155,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = ExceptionsManager; exports.default = _default; -},76,[16],"node_modules/react-native/Libraries/Core/NativeExceptionsManager.js"); +},92,[19],"node_modules/react-native/Libraries/Core/NativeExceptionsManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; var _global, _global$HermesInterna; + /** + * Set up Promise. The native Promise implementation throws the following error: + * ERROR: Event loop not supported. + * + * If you don't need these polyfills, don't use InitializeCore; just directly + * require the modules you need from InitializeCore for setup. + */ + // If global.Promise is provided by Hermes, we are confident that it can provide + // all the methods needed by React Native, so we can directly use it. if ((_global = global) != null && (_global$HermesInterna = _global.HermesInternal) != null && _global$HermesInterna.hasPromise != null && _global$HermesInterna.hasPromise()) { var HermesPromise = global.Promise; if (__DEV__) { @@ -23636,12 +30194,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[2], "../Promise"); }); } -},77,[78,99,100],"node_modules/react-native/Libraries/Core/polyfillPromise.js"); +},93,[94,115,116],"node_modules/react-native/Libraries/Core/polyfillPromise.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var rejectionTrackingOptions = { allRejections: true, @@ -23651,8 +30218,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var message; var stack; + // $FlowFixMe[method-unbinding] added when improving typing for this parameters var stringValue = Object.prototype.toString.call(rejection); if (stringValue === '[object Error]') { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters message = Error.prototype.toString.call(rejection); var error = rejection; stack = error.stack; @@ -23663,17 +30232,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e message = typeof rejection === 'string' ? rejection : JSON.stringify(rejection); } } - var warning = "Possible Unhandled Promise Rejection (id: " + id + "):\n" + (((_message = message) != null ? _message : '') + "\n") + (stack == null ? '' : stack); + var warning = `Possible Unhandled Promise Rejection (id: ${id}):\n` + `${(_message = message) != null ? _message : ''}\n` + (stack == null ? '' : stack); console.warn(warning); }, onHandled: function onHandled(id) { - var warning = "Promise Rejection Handled (id: " + id + ")\n" + 'This means you can ignore any previous messages of the form ' + ("\"Possible Unhandled Promise Rejection (id: " + id + "):\""); + var warning = `Promise Rejection Handled (id: ${id})\n` + 'This means you can ignore any previous messages of the form ' + `"Possible Unhandled Promise Rejection (id: ${id}):"`; console.warn(warning); } }; var _default = rejectionTrackingOptions; exports.default = _default; -},78,[79],"node_modules/react-native/Libraries/promiseRejectionTrackingOptions.js"); +},94,[95],"node_modules/react-native/Libraries/promiseRejectionTrackingOptions.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -23693,21 +30262,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + /* eslint-disable local/ban-types-eventually */ var toString = Object.prototype.toString; var toISOString = Date.prototype.toISOString; var errorToString = Error.prototype.toString; var regExpToString = RegExp.prototype.toString; + /** + * Explicitly comparing typeof constructor to function avoids undefined as name + * when mock identity-obj-proxy returns the key as the value for any key. + */ var getConstructorName = function getConstructorName(val) { return typeof val.constructor === 'function' && val.constructor.name || 'Object'; }; + /* global window */ + + /** Is val is equal to global window object? Works even if it does not exist :) */ var isWindow = function isWindow(val) { return typeof window !== 'undefined' && val === window; }; var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; var NEWLINE_REGEXP = /\n/gi; - var PrettyFormatPluginError = function (_Error) { + var PrettyFormatPluginError = /*#__PURE__*/function (_Error) { _$$_REQUIRE(_dependencyMap[10], "@babel/runtime/helpers/inherits")(PrettyFormatPluginError, _Error); var _super = _createSuper(PrettyFormatPluginError); function PrettyFormatPluginError(message, stack) { @@ -23719,7 +30303,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _this; } return _$$_REQUIRE(_dependencyMap[12], "@babel/runtime/helpers/createClass")(PrettyFormatPluginError); - }(_$$_REQUIRE(_dependencyMap[13], "@babel/runtime/helpers/wrapNativeSuper")(Error)); + }( /*#__PURE__*/_$$_REQUIRE(_dependencyMap[13], "@babel/runtime/helpers/wrapNativeSuper")(Error)); function isToStringedArrayType(toStringed) { return toStringed === '[object Array]' || toStringed === '[object ArrayBuffer]' || toStringed === '[object DataView]' || toStringed === '[object Float32Array]' || toStringed === '[object Float64Array]' || toStringed === '[object Int8Array]' || toStringed === '[object Int16Array]' || toStringed === '[object Int32Array]' || toStringed === '[object Uint8Array]' || toStringed === '[object Uint8ClampedArray]' || toStringed === '[object Uint16Array]' || toStringed === '[object Uint32Array]'; } @@ -23727,7 +30311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Object.is(val, -0) ? '-0' : String(val); } function printBigInt(val) { - return String(val + "n"); + return String(`${val}n`); } function printFunction(val, printFunctionName) { if (!printFunctionName) { @@ -23741,6 +30325,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function printError(val) { return '[' + errorToString.call(val) + ']'; } + /** + * The first port of call for printing an object, handles most of the + * data-types in JS. + */ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) { if (val === true || val === false) { @@ -23792,6 +30380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (toStringed === '[object RegExp]') { if (escapeRegex) { + // https://github.com/benjamingr/RegExp.escape/blob/master/polyfill.js return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&'); } return regExpToString.call(val); @@ -23801,6 +30390,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return null; } + /** + * Handles more complex objects ( such as objects with circular references. + * maps and sets etc ) + */ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) { if (refs.indexOf(val) !== -1) { @@ -23825,7 +30418,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (toStringed === '[object Set]') { return hitMaxDepth ? '[Set]' : 'Set {' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + '}'; - } + } // Avoid failure to serialize global window object in jsdom test environment. + // For example, not even relevant if window is prop of React element. return hitMaxDepth || isWindow(val) ? '[' + getConstructorName(val) + ']' : (min ? '' : getConstructorName(val) + ' ') + '{' + (0, _$$_REQUIRE(_dependencyMap[14], "./collections").printObjectProperties)(val, config, indentation, depth, refs, printer) + '}'; } @@ -23849,7 +30443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new PrettyFormatPluginError(error.message, error.stack); } if (typeof printed !== 'string') { - throw new Error("pretty-format: Plugin must return type \"string\" but instead returned \"" + typeof printed + "\"."); + throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`); } return printed; } @@ -23899,7 +30493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function validateOptions(options) { Object.keys(options).forEach(function (key) { if (!DEFAULT_OPTIONS.hasOwnProperty(key)) { - throw new Error("pretty-format: Unknown option \"" + key + "\"."); + throw new Error(`pretty-format: Unknown option "${key}".`); } }); if (options.min && options.indent !== undefined && options.indent !== 0) { @@ -23907,10 +30501,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (options.theme !== undefined) { if (options.theme === null) { - throw new Error("pretty-format: Option \"theme\" must not be null."); + throw new Error(`pretty-format: Option "theme" must not be null.`); } if (typeof options.theme !== 'object') { - throw new Error("pretty-format: Option \"theme\" must be of type \"object\" but instead received \"" + typeof options.theme + "\"."); + throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`); } } } @@ -23921,7 +30515,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (color && typeof color.close === 'string' && typeof color.open === 'string') { colors[key] = color; } else { - throw new Error("pretty-format: Option \"theme\" has a key \"" + key + "\" whose value \"" + value + "\" is undefined in ansi-styles."); + throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`); } return colors; }, Object.create(null)); @@ -23962,6 +30556,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createIndent(indent) { return new Array(indent + 1).join(' '); } + /** + * Returns a presentation string of your `val` object + * @param val any potential JavaScript object + * @param options Custom settings + */ function prettyFormat(val, options) { if (options) { @@ -23989,26 +30588,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactTestComponent: _ReactTestComponent.default }; module.exports = prettyFormat; -},79,[46,47,80,85,87,89,90,93,94,98,50,12,13,52,86],"node_modules/pretty-format/build/index.js"); +},95,[53,51,96,101,103,105,106,109,110,114,49,12,13,68,102],"node_modules/react-native/node_modules/pretty-format/build/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; var wrapAnsi16 = function wrapAnsi16(fn, offset) { return function () { var code = fn.apply(void 0, arguments); - return "\x1B[" + (code + offset) + "m"; + return `\u001B[${code + offset}m`; }; }; var wrapAnsi256 = function wrapAnsi256(fn, offset) { return function () { var code = fn.apply(void 0, arguments); - return "\x1B[" + (38 + offset) + ";5;" + code + "m"; + return `\u001B[${38 + offset};5;${code}m`; }; }; var wrapAnsi16m = function wrapAnsi16m(fn, offset) { return function () { var rgb = fn.apply(void 0, arguments); - return "\x1B[" + (38 + offset) + ";2;" + rgb[0] + ";" + rgb[1] + ";" + rgb[2] + "m"; + return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; }; }; var ansi2ansi = function ansi2ansi(n) { @@ -24033,6 +30632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; + /** @type {typeof import('color-convert')} */ var colorConvert; var makeDynamicStyles = function makeDynamicStyles(wrap, targetSpace, identity, isBackground) { if (colorConvert === undefined) { @@ -24058,6 +30658,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var styles = { modifier: { reset: [0, 0], + // 21 isn't widely supported and 22 does the same thing bold: [1, 22], dim: [2, 22], italic: [3, 23], @@ -24075,6 +30676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e magenta: [35, 39], cyan: [36, 39], white: [37, 39], + // Bright color blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], @@ -24093,6 +30695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], + // Bright color bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], @@ -24104,6 +30707,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + // Alias bright black as gray (and grey) styles.color.gray = styles.color.blackBright; styles.bgColor.bgGray = styles.bgColor.bgBlackBright; styles.color.grey = styles.color.blackBright; @@ -24117,8 +30721,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var styleName = _ref6[0]; var style = _ref6[1]; styles[styleName] = { - open: "\x1B[" + style[0] + "m", - close: "\x1B[" + style[1] + "m" + open: `\u001B[${style[0]}m`, + close: `\u001B[${style[1]}m` }; group[styleName] = styles[styleName]; codes.set(style[0], style[1]); @@ -24155,11 +30759,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return styles; } + // Make the export immutable Object.defineProperty(module, 'exports', { enumerable: true, get: assembleStyles }); -},80,[81,19],"node_modules/ansi-styles/index.js"); +},96,[97,22],"node_modules/ansi-styles/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var convert = {}; var models = Object.keys(_$$_REQUIRE(_dependencyMap[0], "./conversions")); @@ -24178,6 +30783,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fn(args); }; + // Preserve .conversion property if there is one if ('conversion' in fn) { wrappedFn.conversion = fn.conversion; } @@ -24197,6 +30803,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var result = fn(args); + // We're assuming the result is an array here. + // see notice in conversions.js; don't use box types + // in conversion functions. if (typeof result === 'object') { for (var len = result.length, i = 0; i < len; i++) { result[i] = Math.round(result[i]); @@ -24205,6 +30814,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }; + // Preserve .conversion property if there is one if ('conversion' in fn) { wrappedFn.conversion = fn.conversion; } @@ -24227,9 +30837,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); module.exports = convert; -},81,[82,84],"node_modules/color-convert/index.js"); +},97,[98,100],"node_modules/color-convert/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /* MIT license */ + /* eslint-disable no-mixed-operators */ + // NOTE: conversions should only return primitive values (i.e. arrays, or + // values that give correct `typeof` results). + // do not use box values types (i.e. Number(), String(), etc.) var reverseKeywords = {}; for (var key of Object.keys(_$$_REQUIRE(_dependencyMap[0], "color-name"))) { reverseKeywords[_$$_REQUIRE(_dependencyMap[0], "color-name")[key]] = key; @@ -24298,6 +30913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; module.exports = convert; + // Hide .channels and .labels properties for (var model of Object.keys(convert)) { if (!('channels' in convert[model])) { throw new Error('missing channels property: ' + model); @@ -24409,7 +31025,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [c * 100, m * 100, y * 100, k * 100]; }; function comparativeDistance(x, y) { - return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2); + /* + See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance + */ + return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2; } convert.rgb.keyword = function (rgb) { var reversed = reverseKeywords[rgb]; @@ -24421,8 +31040,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var keyword of Object.keys(_$$_REQUIRE(_dependencyMap[0], "color-name"))) { var value = _$$_REQUIRE(_dependencyMap[0], "color-name")[keyword]; + // Compute comparative distance var distance = comparativeDistance(rgb, value); + // Check if its less, if so set as closest if (distance < currentClosestDistance) { currentClosestDistance = distance; currentClosestKeyword = keyword; @@ -24438,9 +31059,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var g = rgb[1] / 255; var b = rgb[2] / 255; - r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92; - g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92; - b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92; + // Assume sRGB + r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92; + g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92; + b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92; var x = r * 0.4124 + g * 0.3576 + b * 0.1805; var y = r * 0.2126 + g * 0.7152 + b * 0.0722; var z = r * 0.0193 + g * 0.1192 + b * 0.9505; @@ -24454,9 +31076,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x /= 95.047; y /= 100; z /= 108.883; - x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; - y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; - z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116; + y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116; + z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116; var l = 116 * y - 16; var a = 500 * (x - y); var b = 200 * (y - z); @@ -24555,6 +31177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [h, sl * 100, l * 100]; }; + // http://dev.w3.org/csswg/css-color/#hwb-to-rgb convert.hwb.rgb = function (hwb) { var h = hwb[0] / 360; var wh = hwb[1] / 100; @@ -24562,6 +31185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ratio = wh + bl; var f; + // Wh + bl cant be > 1 if (ratio > 1) { wh /= ratio; bl /= ratio; @@ -24572,11 +31196,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if ((i & 0x01) !== 0) { f = 1 - f; } - var n = wh + f * (v - wh); + var n = wh + f * (v - wh); // Linear interpolation var r; var g; var b; + /* eslint-disable max-statements-per-line,no-multi-spaces */ switch (i) { default: case 6: @@ -24611,6 +31236,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e b = n; break; } + /* eslint-enable max-statements-per-line,no-multi-spaces */ return [r * 255, g * 255, b * 255]; }; @@ -24635,9 +31261,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e g = x * -0.9689 + y * 1.8758 + z * 0.0415; b = x * 0.0557 + y * -0.2040 + z * 1.0570; - r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92; - g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92; - b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92; + // Assume sRGB + r = r > 0.0031308 ? 1.055 * r ** (1.0 / 2.4) - 0.055 : r * 12.92; + g = g > 0.0031308 ? 1.055 * g ** (1.0 / 2.4) - 0.055 : g * 12.92; + b = b > 0.0031308 ? 1.055 * b ** (1.0 / 2.4) - 0.055 : b * 12.92; r = Math.min(Math.max(0, r), 1); g = Math.min(Math.max(0, g), 1); b = Math.min(Math.max(0, b), 1); @@ -24650,9 +31277,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x /= 95.047; y /= 100; z /= 108.883; - x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; - y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; - z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116; + y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116; + z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116; var l = 116 * y - 16; var a = 500 * (x - y); var b = 200 * (y - z); @@ -24668,9 +31295,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y = (l + 16) / 116; x = a / 500 + y; z = y - b / 200; - var y2 = Math.pow(y, 3); - var x2 = Math.pow(x, 3); - var z2 = Math.pow(z, 3); + var y2 = y ** 3; + var x2 = x ** 3; + var z2 = z ** 3; y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; @@ -24707,7 +31334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e r = _args[0], g = _args[1], b = _args[2]; - var value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; + var value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization value = Math.round(value / 50); if (value === 0) { @@ -24720,6 +31347,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ansi; }; convert.hsv.ansi16 = function (args) { + // Optimization here; we already know the value and don't need to get + // it converted for us. return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); }; convert.rgb.ansi256 = function (args) { @@ -24727,6 +31356,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var g = args[1]; var b = args[2]; + // We use the extended greyscale palette here, with the exception of + // black and white. normal palette only has 4 greyscale shades. if (r === g && g === b) { if (r < 8) { return 16; @@ -24742,6 +31373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e convert.ansi16.rgb = function (args) { var color = args % 10; + // Handle greyscale if (color === 0 || color === 7) { if (args > 50) { color += 3.5; @@ -24756,6 +31388,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [r, g, b]; }; convert.ansi256.rgb = function (args) { + // Handle greyscale if (args >= 232) { var c = (args - 232) * 10 + 8; return [c, c, c]; @@ -24849,6 +31482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var w = 1 - v; var mg = 0; + /* eslint-disable max-statements-per-line */ switch (Math.floor(hi)) { case 0: pure[0] = 1; @@ -24880,6 +31514,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pure[1] = 0; pure[2] = w; } + /* eslint-enable max-statements-per-line */ mg = (1.0 - c) * g; return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255]; @@ -24955,7 +31590,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; -},82,[83,19],"node_modules/color-convert/conversions.js"); +},98,[99,22],"node_modules/color-convert/conversions.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25109,14 +31744,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "yellow": [255, 255, 0], "yellowgreen": [154, 205, 50] }; -},83,[],"node_modules/color-name/index.js"); +},99,[],"node_modules/color-name/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /* + This function routes a model to all other models. + + all functions that are routed have a property `.conversion` attached + to the returned synthetic function. This property is an array + of strings, each with the steps in between the 'from' and 'to' + color models (inclusive). + + conversions that are not possible simply are not included. + */ function buildGraph() { var graph = {}; + // https://jsperf.com/object-keys-vs-for-in-with-closure/3 var models = Object.keys(_$$_REQUIRE(_dependencyMap[0], "./conversions")); for (var len = models.length, i = 0; i < len; i++) { graph[models[i]] = { + // http://jsperf.com/1-vs-infinity + // micro-opt, but this is simple. distance: -1, parent: null }; @@ -25124,9 +31772,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return graph; } + // https://en.wikipedia.org/wiki/Breadth-first_search function deriveBFS(fromModel) { var graph = buildGraph(); - var queue = [fromModel]; + var queue = [fromModel]; // Unshift -> queue -> pop graph[fromModel].distance = 0; while (queue.length) { @@ -25169,13 +31818,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var toModel = models[i]; var node = graph[toModel]; if (node.parent === null) { + // No possible conversion, or this node is the source model. continue; } conversion[toModel] = wrapConversion(toModel, graph); } return conversion; }; -},84,[82],"node_modules/color-convert/route.js"); +},100,[98],"node_modules/color-convert/route.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25219,7 +31869,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},85,[86],"node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"); +},101,[102],"node_modules/react-native/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25231,6 +31881,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.printListItems = printListItems; exports.printObjectProperties = printObjectProperties; + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ var getKeysOfEnumerableProperties = function getKeysOfEnumerableProperties(object) { var keys = Object.keys(object).sort(); if (Object.getOwnPropertySymbols) { @@ -25242,6 +31899,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return keys; }; + /** + * Return entries (for example, of a map) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ function printIteratorEntries(iterator, config, indentation, depth, refs, printer) { var separator = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ': '; @@ -25265,6 +31927,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return result; } + /** + * Return values (for example, of a set) + * with spacing, indentation, and comma + * without surrounding punctuation (braces or brackets) + */ function printIteratorValues(iterator, config, indentation, depth, refs, printer) { var result = ''; @@ -25285,6 +31952,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return result; } + /** + * Return items (for example, of an array) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, brackets) + **/ function printListItems(list, config, indentation, depth, refs, printer) { var result = ''; @@ -25303,6 +31975,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return result; } + /** + * Return properties of an object + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ function printObjectProperties(val, config, indentation, depth, refs, printer) { var result = ''; @@ -25325,7 +32002,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return result; } -},86,[],"node_modules/pretty-format/build/collections.js"); +},102,[],"node_modules/react-native/node_modules/pretty-format/build/collections.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25341,6 +32018,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var toHumanReadableAnsi = function toHumanReadableAnsi(text) { return text.replace((0, _ansiRegex.default)(), function (match) { switch (match) { @@ -25402,7 +32085,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},87,[88,80],"node_modules/pretty-format/build/plugins/ConvertAnsi.js"); +},103,[104,96],"node_modules/react-native/node_modules/pretty-format/build/plugins/ConvertAnsi.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25413,7 +32096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|'); return new RegExp(pattern, onlyFirst ? undefined : 'g'); }; -},88,[],"node_modules/ansi-regex/index.js"); +},104,[],"node_modules/react-native/node_modules/ansi-regex/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25421,7 +32104,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); exports.default = exports.serialize = exports.test = void 0; - + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable local/ban-types-eventually */ var SPACE = ' '; var OBJECT_NAMES = ['DOMStringMap', 'NamedNodeMap']; var ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/; @@ -25452,7 +32141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},89,[86],"node_modules/pretty-format/build/plugins/DOMCollection.js"); +},105,[102],"node_modules/react-native/node_modules/pretty-format/build/plugins/DOMCollection.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25460,6 +32149,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); exports.default = exports.serialize = exports.test = void 0; + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var ELEMENT_NODE = 1; var TEXT_NODE = 3; var COMMENT_NODE = 8; @@ -25494,7 +32189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (nodeIsComment(node)) { return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printComment)(node.data, config); } - var type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase(); + var type = nodeIsFragment(node) ? `DocumentFragment` : node.tagName.toLowerCase(); if (++depth > config.maxDepth) { return (0, _$$_REQUIRE(_dependencyMap[0], "./lib/markup").printElementAsLeaf)(type, config); } @@ -25512,7 +32207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},90,[91],"node_modules/pretty-format/build/plugins/DOMElement.js"); +},106,[107],"node_modules/react-native/node_modules/pretty-format/build/plugins/DOMElement.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25527,6 +32222,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Return empty string if keys is empty. var printProps = function printProps(keys, props, config, indentation, depth, refs, printer) { var indentationNext = indentation + config.indent; var colors = config.colors; @@ -25541,7 +32243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + '=' + colors.value.open + printed + colors.value.close; }).join(''); - }; + }; // Return empty string if children is empty. exports.printProps = printProps; var printChildren = function printChildren(children, config, indentation, depth, refs, printer) { @@ -25558,7 +32260,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var printComment = function printComment(comment, config) { var commentColor = config.colors.comment; return commentColor.open + '' + commentColor.close; - }; + }; // Separate the functions to format props, children, and element, + // so a plugin could override a particular function, if needed. + // Too bad, so sad: the traditional (but unnecessary) space + // in a self-closing tagColor requires a second test of printedProps. exports.printComment = printComment; var printElement = function printElement(type, printedProps, printedChildren, config, indentation) { @@ -25571,7 +32276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return tagColor.open + '<' + type + tagColor.close + ' โ€ฆ' + tagColor.open + ' />' + tagColor.close; }; exports.printElementAsLeaf = printElementAsLeaf; -},91,[92],"node_modules/pretty-format/build/plugins/lib/markup.js"); +},107,[108],"node_modules/react-native/node_modules/pretty-format/build/plugins/lib/markup.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25580,10 +32285,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = escapeHTML; + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ function escapeHTML(str) { return str.replace(//g, '>'); } -},92,[],"node_modules/pretty-format/build/plugins/lib/escapeHTML.js"); +},108,[],"node_modules/react-native/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25591,12 +32302,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); exports.default = exports.test = exports.serialize = void 0; + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ // SENTINEL constants are from https://github.com/facebook/immutable-js var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@'; var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@'; var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@'; var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@'; var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@'; - var IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; + var IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; // immutable v4 var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@'; var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@'; @@ -25608,11 +32325,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return '[' + name + ']'; }; var SPACE = ' '; - var LAZY = 'โ€ฆ'; + var LAZY = 'โ€ฆ'; // Seq is lazy if it calls a method like filter var printImmutableEntries = function printImmutableEntries(val, config, indentation, depth, refs, printer, type) { return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) + '}'; - }; + }; // Record has an entries method because it is a collection in immutable v3. + // Return an iterator for Immutable Record from version v3 or v4. function getRecordEntries(val) { var i = 0; @@ -25633,6 +32351,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } var printImmutableRecord = function printImmutableRecord(val, config, indentation, depth, refs, printer) { + // _name property is defined only for an Immutable Record instance + // which was constructed with a second optional descriptive name arg var name = getImmutableName(val._name || 'Record'); return ++depth > config.maxDepth ? printAsLeaf(name) : name + SPACE + '{' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer) + '}'; }; @@ -25643,12 +32363,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (val[IS_KEYED_SENTINEL]) { return name + SPACE + '{' + ( + // from Immutable collection of entries or from ECMAScript object val._iter || val._object ? (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY) + '}'; } return name + SPACE + '[' + (val._iter || + // from Immutable collection of values val._array || + // from ECMAScript array val._collection || - val._iterable ? (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY) + ']'; + // from ECMAScript collection in immutable v4 + val._iterable // from ECMAScript collection in immutable v3 + ? (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY) + ']'; }; var printImmutableValues = function printImmutableValues(val, config, indentation, depth, refs, printer, type) { return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + '[' + (0, _$$_REQUIRE(_dependencyMap[0], "../collections").printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + ']'; @@ -25668,10 +32393,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (val[IS_SEQ_SENTINEL]) { return printImmutableSeq(val, config, indentation, depth, refs, printer); - } + } // For compatibility with immutable v3 and v4, let record be the default. return printImmutableRecord(val, config, indentation, depth, refs, printer); - }; + }; // Explicitly comparing sentinel properties to true avoids false positive + // when mock identity-obj-proxy returns the key as the value for any key. exports.serialize = serialize; var test = function test(val) { @@ -25684,7 +32410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},93,[86],"node_modules/pretty-format/build/plugins/Immutable.js"); +},109,[102],"node_modules/react-native/node_modules/pretty-format/build/plugins/Immutable.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25733,6 +32459,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return newObj; } + /** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Given element.props.children, or subtree during recursive traversal, + // return flattened array of children. var getChildren = function getChildren(arg) { var children = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; if (Array.isArray(arg)) { @@ -25799,7 +32533,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},94,[95,91],"node_modules/pretty-format/build/plugins/ReactElement.js"); +},110,[111,107],"node_modules/react-native/node_modules/pretty-format/build/plugins/ReactElement.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -25808,7 +32542,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-is.development.js"); } -},95,[96,97],"node_modules/pretty-format/node_modules/react-is/index.js"); +},111,[112,113],"node_modules/react-native/node_modules/react-is/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** @license React v17.0.2 * react-is.production.min.js @@ -25950,7 +32684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return "string" === typeof a || "function" === typeof a || a === d || a === f || a === v || a === e || a === l || a === m || a === w || "object" === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? !0 : !1; }; exports.typeOf = y; -},96,[],"node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"); +},112,[],"node_modules/react-native/node_modules/react-is/cjs/react-is.production.min.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** @license React v17.0.2 * react-is.development.js @@ -25967,6 +32701,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (function () { 'use strict'; + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. var REACT_ELEMENT_TYPE = 0xeac7; var REACT_PORTAL_TYPE = 0xeaca; var REACT_FRAGMENT_TYPE = 0xeacb; @@ -26011,12 +32750,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); } - var enableScopeAPI = false; + // Filter certain DOM attributes (e.g. src, href) if their values are empty strings. + + var enableScopeAPI = false; // Experimental Create Event Handle API. function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { return true; - } + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) { return true; @@ -26072,12 +32813,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; - var hasWarnedAboutDeprecatedIsConcurrentMode = false; + var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated function isAsyncMode(object) { { if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); } @@ -26087,7 +32828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function isConcurrentMode(object) { { if (!hasWarnedAboutDeprecatedIsConcurrentMode) { - hasWarnedAboutDeprecatedIsConcurrentMode = true; + hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); } @@ -26155,7 +32896,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.typeOf = typeOf; })(); } -},97,[],"node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"); +},113,[],"node_modules/react-native/node_modules/react-is/cjs/react-is.development.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -26185,15 +32926,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = plugin; exports.default = _default; -},98,[91],"node_modules/pretty-format/build/plugins/ReactTestComponent.js"); +},114,[107],"node_modules/react-native/node_modules/pretty-format/build/plugins/ReactTestComponent.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Sets an object's property. If a property with the same name exists, this will + * replace it but maintain its descriptor configuration. The property will be + * replaced with a lazy getter. + * + * In DEV mode the original property value will be preserved as `original[PropertyName]` + * so that, if necessary, it can be restored. For example, if you want to route + * network requests through DevTools (to trace them): + * + * global.XMLHttpRequest = global.originalXMLHttpRequest; + * + * @see https://github.com/facebook/react-native/issues/934 + */ function polyfillObjectProperty(object, name, getValue) { var descriptor = Object.getOwnPropertyDescriptor(object, name); if (__DEV__ && descriptor) { - var backupName = "original" + name[0].toUpperCase() + name.substr(1); + var backupName = `original${name[0].toUpperCase()}${name.substr(1)}`; Object.defineProperty(object, backupName, descriptor); } var _ref = descriptor || {}, @@ -26218,8 +32981,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e polyfillObjectProperty: polyfillObjectProperty, polyfillGlobal: polyfillGlobal }; -},99,[30],"node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js"); +},115,[33],"node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -26228,7 +33000,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1], "promise/setimmediate/rejection-tracking").enable(_$$_REQUIRE(_dependencyMap[2], "./promiseRejectionTrackingOptions").default); } module.exports = _$$_REQUIRE(_dependencyMap[3], "promise/setimmediate/es6-extensions"); -},100,[101,103,78,104],"node_modules/react-native/Libraries/Promise.js"); +},116,[117,119,94,120],"node_modules/react-native/Libraries/Promise.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -26244,12 +33016,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); }; -},101,[102],"node_modules/promise/setimmediate/finally.js"); +},117,[118],"node_modules/promise/setimmediate/finally.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; function noop() {} + // States: + // + // 0 - pending + // 1 - fulfilled with _value + // 2 - rejected with _value + // 3 - adopted the state of another promise, _value + // + // once the state is no longer pending (0) it is immutable + + // All `_` prefixed properties will be reduced to `_{random number}` + // at build time to obfuscate them and discourage their use. + // We don't use symbols or Object.defineProperty to fully hide them + // because the performance isn't good enough. + + // to avoid using try/catch inside critical functions, we + // extract them to here. var LAST_ERROR = null; var IS_ERROR = {}; function getThen(obj) { @@ -26352,6 +33140,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } function resolve(self, newValue) { + // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure if (newValue === self) { return reject(self, new TypeError('A promise cannot be resolved with itself.')); } @@ -26400,6 +33189,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.promise = promise; } + /** + * Take a potentially misbehaving resolver function and make sure + * onFulfilled and onRejected are only called once. + * + * Makes no guarantees about asynchrony. + */ function doResolve(fn, promise) { var done = false; var res = tryCallTwo(fn, function (value) { @@ -26416,7 +33211,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e reject(promise, LAST_ERROR); } } -},102,[],"node_modules/promise/setimmediate/core.js"); +},118,[],"node_modules/promise/setimmediate/core.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -26438,6 +33233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var rejections = {}; _$$_REQUIRE(_dependencyMap[0], "./core")._B = function (promise) { if (promise._y === 2 && + // IS REJECTED rejections[promise._E]) { if (rejections[promise._E].logged) { onHandled(promise._E); @@ -26449,11 +33245,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _$$_REQUIRE(_dependencyMap[0], "./core")._C = function (promise, err) { if (promise._x === 0) { + // not yet handled promise._E = id++; rejections[promise._E] = { displayId: null, error: err, timeout: setTimeout(onUnhandled.bind(null, promise._E), + // For reference errors and type errors, this almost always + // means the programmer made a mistake, so log them after just + // 100ms + // otherwise, wait 2 seconds to see if they get handled matchWhitelist(err, DEFAULT_WHITELIST) ? 100 : 2000), logged: false }; @@ -26494,12 +33295,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return error instanceof cls; }); } -},103,[102],"node_modules/promise/setimmediate/rejection-tracking.js"); +},119,[118],"node_modules/promise/setimmediate/rejection-tracking.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; + //This file contains the ES6 extensions to the core Promises/A+ API module.exports = _$$_REQUIRE(_dependencyMap[0], "./core.js"); + /* Static Functions */ + var TRUE = valuePromise(true); var FALSE = valuePromise(false); var NULL = valuePromise(null); @@ -26536,10 +33340,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _iterableToArray = function iterableToArray(iterable) { if (typeof Array.from === 'function') { + // ES2015+, iterables exist _iterableToArray = Array.from; return Array.from(iterable); } + // ES5, only arrays and array-likes exist _iterableToArray = function iterableToArray(x) { return Array.prototype.slice.call(x); }; @@ -26623,6 +33429,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; + /* Prototype Methods */ + _$$_REQUIRE(_dependencyMap[0], "./core.js").prototype['catch'] = function (onRejected) { return this.then(null, onRejected); }; @@ -26661,32 +33469,75 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }; -},104,[102],"node_modules/promise/setimmediate/es6-extensions.js"); +},120,[118],"node_modules/promise/setimmediate/es6-extensions.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Set up regenerator. + * You can use this module directly, or just require InitializeCore. + */ + var hasNativeGenerator; try { + // If this function was lowered by regenerator-transform, it will try to + // access `global.regeneratorRuntime` which doesn't exist yet and will throw. hasNativeGenerator = _$$_REQUIRE(_dependencyMap[0], "../Utilities/FeatureDetection").hasNativeConstructor(function* () {}, 'GeneratorFunction'); } catch (_unused) { + // In this case, we know generators are not provided natively. hasNativeGenerator = false; } + // If generators are provided natively, which suggests that there was no + // regenerator-transform, then there is no need to set up the runtime. if (!hasNativeGenerator) { _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('regeneratorRuntime', function () { + // The require just sets up the global, so make sure when we first + // invoke it the global does not exist delete global.regeneratorRuntime; - return _$$_REQUIRE(_dependencyMap[2], "regenerator-runtime/runtime"); + // regenerator-runtime/runtime exports the regeneratorRuntime object, so we + // can return it safely. + return _$$_REQUIRE(_dependencyMap[2], "regenerator-runtime/runtime"); // flowlint-line untyped-import:off }); } -},105,[106,99,107],"node_modules/react-native/Libraries/Core/setUpRegeneratorRuntime.js"); +},121,[122,115,123],"node_modules/react-native/Libraries/Core/setUpRegeneratorRuntime.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * @return whether or not a @param {function} f is provided natively by calling + * `toString` and check if the result includes `[native code]` in it. + * + * Note that a polyfill can technically fake this behavior but few does it. + * Therefore, this is usually good enough for our purpose. + */ function isNativeFunction(f) { return typeof f === 'function' && f.toString().indexOf('[native code]') > -1; } + /** + * @return whether or not the constructor of @param {object} o is an native + * function named with @param {string} expectedName. + */ function hasNativeConstructor(o, expectedName) { var con = Object.getPrototypeOf(o).constructor; return con.name === expectedName && isNativeFunction(con); @@ -26695,8 +33546,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isNativeFunction: isNativeFunction, hasNativeConstructor: hasNativeConstructor }; -},106,[],"node_modules/react-native/Libraries/Utilities/FeatureDetection.js"); +},122,[],"node_modules/react-native/Libraries/Utilities/FeatureDetection.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var runtime = function (exports) { "use strict"; @@ -26706,7 +33563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }; - var undefined; + var undefined; // More compressible than void 0. var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; @@ -26721,6 +33578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return obj[key]; } try { + // IE 8 has a broken Object.defineProperty that only works on DOM objects. define({}, ""); } catch (err) { define = function define(obj, key, value) { @@ -26728,10 +33586,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; var generator = Object.create(protoGenerator.prototype); var context = new Context(tryLocsList || []); + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }); @@ -26739,6 +33600,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } exports.wrap = wrap; + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { return { @@ -26757,12 +33628,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. var ContinueSentinel = {}; + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; @@ -26770,6 +33649,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); @@ -26784,6 +33665,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { @@ -26794,6 +33677,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.isGeneratorFunction = function (genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; exports.mark = function (genFun) { @@ -26807,6 +33692,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return genFun; }; + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. exports.awrap = function (arg) { return { __await: arg @@ -26828,9 +33717,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } return PromiseImpl.resolve(value).then(function (unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. result.value = unwrapped; resolve(result); }, function (error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. return invoke("throw", error, resolve, reject); }); } @@ -26843,10 +33737,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). defineProperty(this, "_invoke", { value: enqueue }); @@ -26857,10 +33767,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.AsyncIterator = AsyncIterator; + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { if (PromiseImpl === void 0) PromiseImpl = Promise; var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); - return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }; @@ -26875,6 +33789,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw arg; } + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneResult(); } context.method = method; @@ -26889,6 +33805,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { @@ -26902,6 +33820,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e state = GenStateExecuting; var record = tryCatch(innerFn, self, context); if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. state = context.done ? GenStateCompleted : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; @@ -26912,6 +33832,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } else if (record.type === "throw") { state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. context.method = "throw"; context.arg = record.arg; } @@ -26919,21 +33841,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; + var methodName = context.method; + var method = delegate.iterator[methodName]; if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method, or a missing .next mehtod, always terminate the + // yield* loop. context.delegate = null; - if (context.method === "throw") { - if (delegate.iterator["return"]) { - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - if (context.method === "throw") { - return ContinueSentinel; - } + + // Note: ["return"] must be used for ES3 parsing compatibility. + if (methodName === "throw" && delegate.iterator["return"]) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; } + } + if (methodName !== "return") { context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); + context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method"); } return ContinueSentinel; } @@ -26952,25 +33888,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ContinueSentinel; } if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). context[delegate.resultName] = info.value; + // Resume execution at the desired location (see delegateYield). context.next = delegate.nextLoc; + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. if (context.method !== "return") { context.method = "next"; context.arg = undefined; } } else { + // Re-yield the result returned by the delegate method. return info; } + // The delegate iterator is finished, so forget it and continue with + // the outer generator. context.delegate = null; return ContinueSentinel; } + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. defineIteratorMethods(Gp); define(Gp, toStringTagSymbol, "Generator"); + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. define(Gp, iteratorSymbol, function () { return this; }); @@ -26997,6 +33952,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e entry.completion = record; } function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. this.tryEntries = [{ tryLoc: "root" }]; @@ -27011,6 +33969,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } keys.reverse(); + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); @@ -27021,6 +33981,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; @@ -27052,6 +34015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // Return an iterator with no values. return { next: doneResult }; @@ -27068,6 +34032,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e reset: function reset(skipTempReset) { this.prev = 0; this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. this.sent = this._sent = undefined; this.done = false; this.delegate = null; @@ -27076,6 +34042,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { for (var name in this) { + // Not sure about the optimal order of these conditions: if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { this[name] = undefined; } @@ -27101,6 +34068,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e record.arg = exception; context.next = loc; if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. context.method = "next"; context.arg = undefined; } @@ -27110,6 +34079,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. return handle("end"); } if (entry.tryLoc <= this.prev) { @@ -27144,6 +34116,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; @@ -27194,6 +34168,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { @@ -27203,26 +34179,55 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nextLoc: nextLoc }; if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. this.arg = undefined; } return ContinueSentinel; } }; + // Regardless of whether this script is executing as a CommonJS module + // or not, return the runtime object so that we can declare the variable + // regeneratorRuntime in the outer scope, which allows this module to be + // injected easily by `bin/regenerator --include-runtime script.js`. return exports; }( + // If this script is executing as a CommonJS module, use module.exports + // as the regeneratorRuntime namespace. Otherwise create a new empty + // object. Either way, the resulting object will be used to initialize + // the regeneratorRuntime variable at the top of this file. typeof module === "object" ? module.exports : {}); try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { + // This module should not be running in strict mode, so the above + // assignment should always work unless something is misconfigured. Just + // in case runtime.js accidentally runs in strict mode, in modern engines + // we can explicitly access globalThis. In older engines we can escape + // strict mode using a global Function call. This could conceivably fail + // if a Content Security Policy forbids using Function, but in that case + // the proper solution is to fix the accidental strict mode problem. If + // you've misconfigured your bundler to force strict mode and applied a + // CSP to forbid Function, and you're not willing to fix either of those + // problems, please detail your unique predicament in a GitHub issue. if (typeof globalThis === "object") { globalThis.regeneratorRuntime = runtime; } else { Function("r", "regeneratorRuntime = r")(runtime); } } -},107,[],"node_modules/regenerator-runtime/runtime.js"); +},123,[],"node_modules/regenerator-runtime/runtime.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -27233,11 +34238,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // Currently, Hermes `Promise` is implemented via Internal Bytecode. var hasHermesPromiseQueuedToJSVM = ((_global$HermesInterna = global.HermesInternal) == null ? void 0 : _global$HermesInterna.hasPromise == null ? void 0 : _global$HermesInterna.hasPromise()) === true && ((_global$HermesInterna2 = global.HermesInternal) == null ? void 0 : _global$HermesInterna2.useEngineQueue == null ? void 0 : _global$HermesInterna2.useEngineQueue()) === true; var hasNativePromise = _$$_REQUIRE(_dependencyMap[0], "../Utilities/FeatureDetection").isNativeFunction(Promise); var hasPromiseQueuedToJSVM = hasNativePromise || hasHermesPromiseQueuedToJSVM; + // In bridgeless mode, timers are host functions installed from cpp. if (global.RN$Bridgeless !== true) { + /** + * Set up timers. + * You can use this module directly, or just require InitializeCore. + */ var defineLazyTimer = function defineLazyTimer(name) { _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal(name, function () { return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers")[name]; @@ -27253,7 +34264,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e defineLazyTimer('cancelIdleCallback'); } + /** + * Set up immediate APIs, which is required to use the same microtask queue + * as the Promise. + */ if (hasPromiseQueuedToJSVM) { + // When promise queues to the JSVM microtasks queue, we shim the immediate + // APIs via `queueMicrotask` to maintain the backward compatibility. _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('setImmediate', function () { return _$$_REQUIRE(_dependencyMap[3], "./Timers/immediateShim").setImmediate; }); @@ -27261,6 +34278,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[3], "./Timers/immediateShim").clearImmediate; }); } else { + // When promise was polyfilled hence is queued to the RN microtask queue, + // we polyfill the immediate APIs as aliases to the ReactNativeMicrotask APIs. + // Note that in bridgeless mode, immediate APIs are installed from cpp. if (global.RN$Bridgeless !== true) { _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('setImmediate', function () { return _$$_REQUIRE(_dependencyMap[2], "./Timers/JSTimers").queueReactNativeMicrotask; @@ -27271,22 +34291,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Set up the microtask queueing API, which is required to use the same + * microtask queue as the Promise. + */ if (hasHermesPromiseQueuedToJSVM) { + // Fast path for Hermes. _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('queueMicrotask', function () { var _global$HermesInterna3; return (_global$HermesInterna3 = global.HermesInternal) == null ? void 0 : _global$HermesInterna3.enqueueJob; }); } else { + // Polyfill it with promise (regardless it's polyfilled or native) otherwise. _$$_REQUIRE(_dependencyMap[1], "../Utilities/PolyfillFunctions").polyfillGlobal('queueMicrotask', function () { return _$$_REQUIRE(_dependencyMap[4], "./Timers/queueMicrotask.js").default; }); } -},108,[106,99,109,111,112],"node_modules/react-native/Libraries/Core/setUpTimers.js"); +},124,[122,115,125,127,128],"node_modules/react-native/Libraries/Core/setUpTimers.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeTiming = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeTiming")); + var _NativeTiming = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeTiming")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /** + * JS implementation of timer functions. Must be completely driven by an + * external clock signal, all that's stored here is timerID, timer type, and + * callback. + */ + + // These timing constants should be kept in sync with the ones in native ios and + // android `RCTTiming` module. var FRAME_DURATION = 1000 / 60; var IDLE_CALLBACK_FRAME_DEADLINE = 1; + // Parallel arrays var callbacks = []; var types = []; var timerIDs = []; @@ -27297,6 +34341,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var errors = []; var hasEmittedTimeDriftWarning = false; + // Returns a free index if one is available, and the next consecutive index otherwise. function _getFreeIndex() { var freeIndex = timerIDs.indexOf(null); if (freeIndex === -1) { @@ -27313,11 +34358,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return id; } + /** + * Calls the callback associated with the ID. Also unregister that callback + * if it was a one time timer (setTimeout), and not unregister it if it was + * recurring (setInterval). + */ function _callTimer(timerID, frameTime, didTimeout) { if (timerID > GUID) { console.warn('Tried to call timer with ID %s but no such timer exists.', timerID); } + // timerIndex of -1 means that no timer with that ID exists. There are + // two situations when this happens, when a garbage timer ID was given + // and when a previously existing timer was deleted before this callback + // fired. In both cases we want to ignore the timer id, but in the former + // case we warn as well. var timerIndex = timerIDs.indexOf(timerID); if (timerIndex === -1) { return; @@ -27332,6 +34387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").beginEvent(type + ' [invoke]'); } + // Clear the metadata if (type !== 'setInterval') { _clearIndex(timerIndex); } @@ -27343,6 +34399,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (type === 'requestIdleCallback') { callback({ timeRemaining: function timeRemaining() { + // TODO: Optimisation: allow running for longer than one frame if + // there are no pending JS calls on the bridge from native. This + // would require a way to check the bridge queue synchronously. return Math.max(0, FRAME_DURATION - (global.performance.now() - frameTime)); }, didTimeout: !!didTimeout @@ -27351,6 +34410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e console.error('Tried to call a callback with invalid type: ' + type); } } catch (e) { + // Don't rethrow so that we can run all timers. errors.push(e); } if (__DEV__) { @@ -27358,6 +34418,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Performs a single pass over the enqueued reactNativeMicrotasks. Returns whether + * more reactNativeMicrotasks are queued up (can be used as a condition a while loop). + */ function _callReactNativeMicrotasksPass() { if (reactNativeMicrotasks.length === 0) { return false; @@ -27366,9 +34430,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[2], "../../Performance/Systrace").beginEvent('callReactNativeMicrotasksPass()'); } + // The main reason to extract a single pass is so that we can track + // in the system trace var passReactNativeMicrotasks = reactNativeMicrotasks; reactNativeMicrotasks = []; + // Use for loop rather than forEach as per @vjeux's advice + // https://github.com/facebook/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051 for (var i = 0; i < passReactNativeMicrotasks.length; ++i) { _callTimer(passReactNativeMicrotasks[i], 0); } @@ -27383,10 +34451,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e types[i] = null; } function _freeCallback(timerID) { + // timerIDs contains nulls after timers have been removed; + // ignore nulls upfront so indexOf doesn't find them if (timerID == null) { return; } var index = timerIDs.indexOf(timerID); + // See corresponding comment in `callTimers` for reasoning behind this if (index !== -1) { var type = types[index]; _clearIndex(index); @@ -27396,7 +34467,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * JS implementation of timer functions. Must be completely driven by an + * external clock signal, all that's stored here is timerID, timer type, and + * callback. + */ var JSTimers = { + /** + * @param {function} func Callback to be invoked after `duration` ms. + * @param {number} duration Number of milliseconds. + */ setTimeout: function setTimeout(func, duration) { for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { args[_key - 2] = arguments[_key]; @@ -27404,9 +34484,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var id = _allocateCallback(function () { return func.apply(undefined, args); }, 'setTimeout'); - createTimer(id, duration || 0, Date.now(), false); + createTimer(id, duration || 0, Date.now(), /* recurring */false); return id; }, + /** + * @param {function} func Callback to be invoked every `duration` ms. + * @param {number} duration Number of milliseconds. + */ setInterval: function setInterval(func, duration) { for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { args[_key2 - 2] = arguments[_key2]; @@ -27414,9 +34498,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var id = _allocateCallback(function () { return func.apply(undefined, args); }, 'setInterval'); - createTimer(id, duration || 0, Date.now(), true); + createTimer(id, duration || 0, Date.now(), /* recurring */true); return id; }, + /** + * The React Native microtask mechanism is used to back public APIs e.g. + * `queueMicrotask`, `clearImmediate`, and `setImmediate` (which is used by + * the Promise polyfill) when the JSVM microtask mechanism is not used. + * + * @param {function} func Callback to be invoked before the end of the + * current JavaScript execution loop. + */ queueReactNativeMicrotask: function queueReactNativeMicrotask(func) { for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { args[_key3 - 1] = arguments[_key3]; @@ -27427,11 +34519,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e reactNativeMicrotasks.push(id); return id; }, + /** + * @param {function} func Callback to be invoked every frame. + */ requestAnimationFrame: function requestAnimationFrame(func) { var id = _allocateCallback(func, 'requestAnimationFrame'); - createTimer(id, 1, Date.now(), false); + createTimer(id, 1, Date.now(), /* recurring */false); return id; }, + /** + * @param {function} func Callback to be invoked every frame and provided + * with time remaining in frame. + * @param {?object} options + */ requestIdleCallback: function requestIdleCallback(func, options) { if (requestIdleCallbacks.length === 0) { setSendIdleEvents(true); @@ -27493,6 +34593,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cancelAnimationFrame: function cancelAnimationFrame(timerID) { _freeCallback(timerID); }, + /** + * This is called from the native side. We are passed an array of timerIDs, + * and + */ callTimers: function callTimers(timersToCall) { _$$_REQUIRE(_dependencyMap[3], "invariant")(timersToCall.length !== 0, 'Cannot call `callTimers` with an empty list of IDs.'); errors.length = 0; @@ -27502,6 +34606,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var errorCount = errors.length; if (errorCount > 0) { if (errorCount > 1) { + // Throw all the other errors in a setTimeout, which will throw each + // error one at a time for (var ii = 1; ii < errorCount; ii++) { JSTimers.setTimeout(function (error) { throw error; @@ -27512,7 +34618,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, callIdleCallbacks: function callIdleCallbacks(frameTime) { - if (FRAME_DURATION - (global.performance.now() - frameTime) < IDLE_CALLBACK_FRAME_DEADLINE) { + if (FRAME_DURATION - (Date.now() - frameTime) < IDLE_CALLBACK_FRAME_DEADLINE) { return; } errors.length = 0; @@ -27532,6 +34638,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, 0); }); }, + /** + * This is called after we execute any command we receive from native but + * before we hand control back to native. + */ callReactNativeMicrotasks: function callReactNativeMicrotasks() { errors.length = 0; while (_callReactNativeMicrotasksPass()) {} @@ -27541,6 +34651,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, 0); }); }, + /** + * Called from native (in development) when environment times are out-of-sync. + */ emitTimeDriftWarning: function emitTimeDriftWarning(warningMessage) { if (hasEmittedTimeDriftWarning) { return; @@ -27564,6 +34677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ExportedJSTimers; if (!_NativeTiming.default) { console.warn("Timing native module is not available, can't set timers."); + // $FlowFixMe[prop-missing] : we can assume timers are generally available ExportedJSTimers = { callReactNativeMicrotasks: JSTimers.callReactNativeMicrotasks, queueReactNativeMicrotask: JSTimers.queueReactNativeMicrotask @@ -27573,7 +34687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } _$$_REQUIRE(_dependencyMap[4], "../../BatchedBridge/BatchedBridge").setReactNativeMicrotasksCallback(JSTimers.callReactNativeMicrotasks); module.exports = ExportedJSTimers; -},109,[3,110,28,17,23],"node_modules/react-native/Libraries/Core/Timers/JSTimers.js"); +},125,[3,126,31,20,26],"node_modules/react-native/Libraries/Core/Timers/JSTimers.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -27582,17 +34696,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('Timing'); exports.default = _default; -},110,[16],"node_modules/react-native/Libraries/Core/Timers/NativeTiming.js"); +},126,[19],"node_modules/react-native/Libraries/Core/Timers/NativeTiming.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + // Globally Unique Immediate ID. var GUIID = 1; + // A global set of the currently cleared immediates. var clearedImmediates = new Set(); + /** + * Shim the setImmediate API on top of queueMicrotask. + * @param {function} func Callback to be invoked before the end of the + * current JavaScript execution loop. + */ function setImmediate(callback) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; @@ -27604,19 +34743,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new TypeError('The first argument to setImmediate must be a function.'); } var id = GUIID++; + // This is an edgey case in which the sequentially assigned ID has been + // "guessed" and "cleared" ahead of time, so we need to clear it up first. if (clearedImmediates.has(id)) { clearedImmediates.delete(id); } + + // $FlowFixMe[incompatible-call] global.queueMicrotask(function () { if (!clearedImmediates.has(id)) { callback.apply(undefined, args); } else { + // Free up the Set entry. clearedImmediates.delete(id); } }); return id; } + /** + * @param {number} immediateID The ID of the immediate to be clearred. + */ function clearImmediate(immediateID) { clearedImmediates.add(immediateID); } @@ -27625,8 +34772,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e clearImmediate: clearImmediate }; module.exports = immediateShim; -},111,[],"node_modules/react-native/Libraries/Core/Timers/immediateShim.js"); +},127,[],"node_modules/react-native/Libraries/Core/Timers/immediateShim.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -27636,6 +34792,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = queueMicrotask; var resolvedPromise; + /** + * Polyfill for the microtask queueing API defined by WHATWG HTML spec. + * https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask + * + * The method must queue a microtask to invoke @param {function} callback, and + * if the callback throws an exception, report the exception. + */ function queueMicrotask(callback) { if (arguments.length < 1) { throw new TypeError('queueMicrotask must be called with at least one argument (a function to call)'); @@ -27644,19 +34807,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new TypeError('The argument to queueMicrotask must be a function.'); } + // Try to reuse a lazily allocated resolved promise from closure. (resolvedPromise || (resolvedPromise = Promise.resolve())).then(callback).catch(function (error) { return ( + // Report the exception until the next tick. setTimeout(function () { throw error; }, 0) ); }); } -},112,[],"node_modules/react-native/Libraries/Core/Timers/queueMicrotask.js"); +},128,[],"node_modules/react-native/Libraries/Core/Timers/queueMicrotask.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS + * aware and won't let you fetch anything from the internet. + * + * You can use this module directly, or just require InitializeCore. + */ _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('XMLHttpRequest', function () { return _$$_REQUIRE(_dependencyMap[1], "../Network/XMLHttpRequest"); }); @@ -27689,19 +34869,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('URL', function () { return _$$_REQUIRE(_dependencyMap[8], "../Blob/URL").URL; - }); + }); // flowlint-line untyped-import:off _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('URLSearchParams', function () { return _$$_REQUIRE(_dependencyMap[8], "../Blob/URL").URLSearchParams; - }); + }); // flowlint-line untyped-import:off _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('AbortController', function () { return _$$_REQUIRE(_dependencyMap[9], "abort-controller/dist/abort-controller").AbortController; - }); + } // flowlint-line untyped-import:off + ); _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillGlobal('AbortSignal', function () { return _$$_REQUIRE(_dependencyMap[9], "abort-controller/dist/abort-controller").AbortSignal; - }); -},113,[99,114,129,68,131,119,137,138,140,141],"node_modules/react-native/Libraries/Core/setUpXHR.js"); + } // flowlint-line untyped-import:off + ); +},129,[115,130,145,85,148,135,154,155,157,158],"node_modules/react-native/Libraries/Core/setUpXHR.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -27714,8 +34905,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var DEBUG_NETWORK_SEND_DELAY = false; + var DEBUG_NETWORK_SEND_DELAY = false; // Set to a number of milliseconds when debugging + // The native blob module is optional so inject it here if available. if (_$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").isAvailable) { _$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").addNetworkingHandler(); } @@ -27734,7 +34926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var REQUEST_EVENTS = ['abort', 'error', 'load', 'loadstart', 'progress', 'timeout', 'loadend']; var XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange'); - var XMLHttpRequestEventTarget = function (_ref) { + var XMLHttpRequestEventTarget = /*#__PURE__*/function (_ref) { (0, _inherits2.default)(XMLHttpRequestEventTarget, _ref); var _super = _createSuper(XMLHttpRequestEventTarget); function XMLHttpRequestEventTarget() { @@ -27743,7 +34935,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return (0, _createClass2.default)(XMLHttpRequestEventTarget); }(_$$_REQUIRE(_dependencyMap[9], "event-target-shim").apply(void 0, REQUEST_EVENTS)); - var XMLHttpRequest = function (_ref2) { + /** + * Shared base for platform-specific XMLHttpRequest implementations. + */ + var XMLHttpRequest = /*#__PURE__*/function (_ref2) { (0, _inherits2.default)(XMLHttpRequest, _ref2); var _super2 = _createSuper(XMLHttpRequest); function XMLHttpRequest() { @@ -27801,11 +34996,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The " + 'response type cannot be set after the request has been sent.'); } if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) { - console.warn("The provided value '" + responseType + "' is not a valid 'responseType'."); + console.warn(`The provided value '${responseType}' is not a valid 'responseType'.`); return; } - _$$_REQUIRE(_dependencyMap[11], "invariant")(SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document', "The provided value '" + responseType + "' is unsupported in this environment."); + // redboxes early, e.g. for 'arraybuffer' on ios 7 + _$$_REQUIRE(_dependencyMap[11], "invariant")(SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document', `The provided value '${responseType}' is unsupported in this environment.`); if (responseType === 'blob') { _$$_REQUIRE(_dependencyMap[11], "invariant")(_$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").isAvailable, 'Native module BlobModule is required for blob support'); } @@ -27815,7 +35011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "responseText", get: function get() { if (this._responseType !== '' && this._responseType !== 'text') { - throw new Error("The 'responseText' property is only available if 'responseType' " + ("is set to '' or 'text', but it is '" + this._responseType + "'.")); + throw new Error("The 'responseText' property is only available if 'responseType' " + `is set to '' or 'text', but it is '${this._responseType}'.`); } if (this.readyState < LOADING) { return ''; @@ -27848,7 +35044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (this._response === '') { this._cachedResponse = _$$_REQUIRE(_dependencyMap[8], "../Blob/BlobManager").createFromParts([]); } else { - throw new Error("Invalid response for blob: " + this._response); + throw new Error(`Invalid response for blob: ${this._response}`); } break; case 'json': @@ -27864,18 +35060,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this._cachedResponse; } + // exposed for testing }, { key: "__didCreateRequest", - value: - function __didCreateRequest(requestId) { + value: function __didCreateRequest(requestId) { this._requestId = requestId; XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.requestSent(requestId, this._url || '', this._method || 'GET', this._headers); } + // exposed for testing }, { key: "__didUploadProgress", - value: - function __didUploadProgress(requestId, progress, total) { + value: function __didUploadProgress(requestId, progress, total) { if (requestId === this._requestId) { this.upload.dispatchEvent({ type: 'progress', @@ -27908,7 +35104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } this._response = response; - this._cachedResponse = undefined; + this._cachedResponse = undefined; // force lazy recomputation this.setReadyState(this.LOADING); XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, response); } @@ -27941,10 +35137,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + // exposed for testing }, { key: "__didCompleteResponse", - value: - function __didCompleteResponse(requestId, error, timeOutError) { + value: function __didCompleteResponse(requestId, error, timeOutError) { if (requestId === this._requestId) { if (error) { if (this._responseType === '' || this._responseType === 'text') { @@ -27979,9 +35175,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getAllResponseHeaders", value: function getAllResponseHeaders() { if (!this.responseHeaders) { + // according to the spec, return null if no response has been received return null; } + // Assign to non-nullable local variable. var responseHeaders = this.responseHeaders; var unsortedHeaders = new Map(); for (var rawHeaderName of Object.keys(responseHeaders)) { @@ -28000,6 +35198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // Sort in ascending order, with a being less than b if a's name is legacy-uppercased-byte less than b's name. var sortedHeaders = (0, _toConsumableArray2.default)(unsortedHeaders.values()).sort(function (a, b) { if (a.upperHeaderName < b.upperHeaderName) { return -1; @@ -28010,6 +35209,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 0; }); + // Combine into single text response. return sortedHeaders.map(function (header) { return header.lowerHeaderName + ': ' + header.headerValue; }).join('\r\n') + '\r\n'; @@ -28029,28 +35229,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._headers[header.toLowerCase()] = String(value); } + /** + * Custom extension for tracking origins of request. + */ }, { key: "setTrackingName", - value: - function setTrackingName(trackingName) { + value: function setTrackingName(trackingName) { this._trackingName = trackingName; return this; } + /** + * Custom extension for setting a custom performance logger + */ }, { key: "setPerformanceLogger", - value: - function setPerformanceLogger(performanceLogger) { + value: function setPerformanceLogger(performanceLogger) { this._performanceLogger = performanceLogger; return this; } }, { key: "open", value: function open(method, url, async) { + /* Other optional arguments are not supported yet */ if (this.readyState !== this.UNSENT) { throw new Error('Cannot open, already sending'); } if (async !== undefined && !async) { + // async is default throw new Error('Synchronous http requests are not supported'); } if (!url) { @@ -28073,22 +35279,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } this._sent = true; var incrementalEvents = this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress; - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didSendNetworkData', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didSendNetworkData', function (args) { return _this2.__didUploadProgress.apply(_this2, (0, _toConsumableArray2.default)(args)); })); - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkResponse', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didReceiveNetworkResponse', function (args) { return _this2.__didReceiveResponse.apply(_this2, (0, _toConsumableArray2.default)(args)); })); - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkData', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didReceiveNetworkData', function (args) { return _this2.__didReceiveData.apply(_this2, (0, _toConsumableArray2.default)(args)); })); - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkIncrementalData', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didReceiveNetworkIncrementalData', function (args) { return _this2.__didReceiveIncrementalData.apply(_this2, (0, _toConsumableArray2.default)(args)); })); - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didReceiveNetworkDataProgress', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didReceiveNetworkDataProgress', function (args) { return _this2.__didReceiveDataProgress.apply(_this2, (0, _toConsumableArray2.default)(args)); })); - this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").addListener('didCompleteNetworkResponse', function (args) { + this._subscriptions.push(_$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.addListener('didCompleteNetworkResponse', function (args) { return _this2.__didCompleteResponse.apply(_this2, (0, _toConsumableArray2.default)(args)); })); var nativeResponseType = 'text'; @@ -28104,8 +35310,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2._performanceLogger.startTimespan(_this2._perfKey); _$$_REQUIRE(_dependencyMap[11], "invariant")(_this2._method, 'XMLHttpRequest method needs to be defined (%s).', friendlyName); _$$_REQUIRE(_dependencyMap[11], "invariant")(_this2._url, 'XMLHttpRequest URL needs to be defined (%s).', friendlyName); - _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").sendRequest(_this2._method, _this2._trackingName, _this2._url, _this2._headers, data, + _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.sendRequest(_this2._method, _this2._trackingName, _this2._url, _this2._headers, data, + /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found + * when making Flow check .android.js files. */ nativeResponseType, incrementalEvents, _this2.timeout, + // $FlowFixMe[method-unbinding] added when improving typing for this parameters _this2.__didCreateRequest.bind(_this2), _this2.withCredentials); }; if (DEBUG_NETWORK_SEND_DELAY) { @@ -28119,12 +35328,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function abort() { this._aborted = true; if (this._requestId) { - _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").abortRequest(this._requestId); + _$$_REQUIRE(_dependencyMap[13], "./RCTNetworking").default.abortRequest(this._requestId); } + // only call onreadystatechange if there is something to abort, + // below logic is per spec if (!(this.readyState === this.UNSENT || this.readyState === this.OPENED && !this._sent || this.readyState === this.DONE)) { this._reset(); this.setReadyState(this.DONE); } + // Reset again after, in case modified in handler this._reset(); } }, { @@ -28170,10 +35382,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /* global EventListener */ }, { key: "addEventListener", - value: - function addEventListener(type, listener) { + value: function addEventListener(type, listener) { + // If we dont' have a 'readystatechange' event handler, we don't + // have to send repeated LOADING events with incremental updates + // to responseText, which will avoid a bunch of native -> JS + // bridge traffic. if (type === 'readystatechange' || type === 'progress') { this._incrementalEvents = true; } @@ -28194,7 +35410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e XMLHttpRequest.DONE = DONE; XMLHttpRequest._interceptor = null; module.exports = XMLHttpRequest; -},114,[3,6,115,13,12,50,47,46,117,121,122,17,125,126],"node_modules/react-native/Libraries/Network/XMLHttpRequest.js"); +},130,[3,6,131,13,12,49,51,53,133,137,138,20,142,143],"node_modules/react-native/Libraries/Network/XMLHttpRequest.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { @@ -28213,7 +35429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _get.apply(this, arguments); } module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; -},115,[116],"node_modules/@babel/runtime/helpers/get.js"); +},131,[132],"node_modules/@babel/runtime/helpers/get.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { @@ -28223,13 +35439,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return object; } module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; -},116,[46],"node_modules/@babel/runtime/helpers/superPropBase.js"); +},132,[53],"node_modules/@babel/runtime/helpers/superPropBase.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); var _NativeBlobModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeBlobModule")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); - + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /*eslint-disable no-bitwise */ + /*eslint-disable eqeqeq */ + /** + * Based on the rfc4122-compliant solution posted at + * http://stackoverflow.com/questions/105034 + */ function uuidv4() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, @@ -28238,6 +35468,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + // **Temporary workaround** + // TODO(#24654): Use turbomodules for the Blob module. + // Blob collector is a jsi::HostObject that is used by native to know + // when the a Blob instance is deallocated. This allows to free the + // underlying native resources. This is a hack to workaround the fact + // that the current bridge infra doesn't allow to track js objects + // deallocation. Ideally the whole Blob object should be a jsi::HostObject. function createBlobCollector(blobId) { if (global.__blobCollectorProvider == null) { return null; @@ -28246,14 +35483,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } - var BlobManager = function () { + /** + * Module to manage blobs. Wrapper around the native blob module. + */ + var BlobManager = /*#__PURE__*/function () { function BlobManager() { (0, _classCallCheck2.default)(this, BlobManager); } (0, _createClass2.default)(BlobManager, null, [{ key: "createFromParts", value: - + /** + * Create blob from existing array of blobs. + */ function createFromParts(parts, options) { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); var blobId = uuidv4(); @@ -28290,23 +35532,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + /** + * Create blob instance from blob data from native. + * Used internally by modules like XHR, WebSocket, etc. + */ }, { key: "createFromOptions", - value: - function createFromOptions(options) { + value: function createFromOptions(options) { _$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").register(options.blobId); + // $FlowFixMe[prop-missing] return Object.assign(Object.create(_$$_REQUIRE(_dependencyMap[5], "./Blob").prototype), { data: + // Reuse the collector instance when creating from an existing blob. + // This will make sure that the underlying resource is only deallocated + // when all blobs that refer to it are deallocated. options.__collector == null ? Object.assign({}, options, { __collector: createBlobCollector(options.blobId) }) : options }); } + /** + * Deallocate resources for a blob. + */ }, { key: "release", - value: - function release(blobId) { + value: function release(blobId) { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); _$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").unregister(blobId); if (_$$_REQUIRE(_dependencyMap[6], "./BlobRegistry").has(blobId)) { @@ -28315,43 +35566,57 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NativeBlobModule.default.release(blobId); } + /** + * Inject the blob content handler in the networking module to support blob + * requests and responses. + */ }, { key: "addNetworkingHandler", - value: - function addNetworkingHandler() { + value: function addNetworkingHandler() { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); _NativeBlobModule.default.addNetworkingHandler(); } + /** + * Indicate the websocket should return a blob for incoming binary + * messages. + */ }, { key: "addWebSocketHandler", - value: - function addWebSocketHandler(socketId) { + value: function addWebSocketHandler(socketId) { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); _NativeBlobModule.default.addWebSocketHandler(socketId); } + /** + * Indicate the websocket should no longer return a blob for incoming + * binary messages. + */ }, { key: "removeWebSocketHandler", - value: - function removeWebSocketHandler(socketId) { + value: function removeWebSocketHandler(socketId) { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); _NativeBlobModule.default.removeWebSocketHandler(socketId); } + /** + * Send a blob message to a websocket. + */ }, { key: "sendOverSocket", - value: - function sendOverSocket(blob, socketId) { + value: function sendOverSocket(blob, socketId) { (0, _invariant.default)(_NativeBlobModule.default, 'NativeBlobModule is available.'); _NativeBlobModule.default.sendOverSocket(blob.data, socketId); } }]); return BlobManager; }(); + /** + * If the native blob module is available. + */ BlobManager.isAvailable = !!_NativeBlobModule.default; module.exports = BlobManager; -},117,[3,12,13,118,17,119,120],"node_modules/react-native/Libraries/Blob/BlobManager.js"); +},133,[3,12,13,134,20,135,136],"node_modules/react-native/Libraries/Blob/BlobManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -28360,6 +35625,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var NativeModule = TurboModuleRegistry.get('BlobModule'); var constants = null; @@ -28394,12 +35668,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = NativeBlobModule; exports.default = _default; -},118,[16],"node_modules/react-native/Libraries/Blob/NativeBlobModule.js"); +},134,[19],"node_modules/react-native/Libraries/Blob/NativeBlobModule.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; - var Blob = function () { + /** + * Opaque JS representation of some binary data in native. + * + * The API is modeled after the W3C Blob API, with one caveat + * regarding explicit deallocation. Refer to the `close()` + * method for further details. + * + * Example usage in a React component: + * + * class WebSocketImage extends React.Component { + * state = {blob: null}; + * componentDidMount() { + * let ws = this.ws = new WebSocket(...); + * ws.binaryType = 'blob'; + * ws.onmessage = (event) => { + * if (this.state.blob) { + * this.state.blob.close(); + * } + * this.setState({blob: event.data}); + * }; + * } + * componentUnmount() { + * if (this.state.blob) { + * this.state.blob.close(); + * } + * this.ws.close(); + * } + * render() { + * if (!this.state.blob) { + * return ; + * } + * return ; + * } + * } + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob + */ + var Blob = /*#__PURE__*/function () { + /** + * Constructor for JS consumers. + * Currently we only support creating Blobs from other Blobs. + * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob + */ function Blob() { var parts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var options = arguments.length > 1 ? arguments[1] : undefined; @@ -28408,20 +35733,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.data = BlobManager.createFromParts(parts, options).data; } + /* + * This method is used to create a new Blob object containing + * the data in the specified range of bytes of the source Blob. + * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice + */ + // $FlowFixMe[unsafe-getters-setters] _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")(Blob, [{ key: "data", get: + // $FlowFixMe[unsafe-getters-setters] function get() { if (!this._data) { throw new Error('Blob has been closed and is no longer available'); } return this._data; }, - set: - function set(data) { + set: function set(data) { this._data = data; } - }, { key: "slice", value: function slice(start, end) { @@ -28431,52 +35761,91 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e size = _this$data.size; if (typeof start === 'number') { if (start > size) { + // $FlowFixMe[reassign-const] start = size; } offset += start; size -= start; if (typeof end === 'number') { if (end < 0) { + // $FlowFixMe[reassign-const] end = this.size + end; } + if (end > this.size) { + // $FlowFixMe[reassign-const] + end = this.size; + } size = end - start; } } return BlobManager.createFromOptions({ blobId: this.data.blobId, offset: offset, - size: size + size: size, + /* Since `blob.slice()` creates a new view onto the same binary + * data as the original blob, we should re-use the same collector + * object so that the underlying resource gets deallocated when + * the last view into the data is released, not the first. + */ + __collector: this.data.__collector }); } + /** + * This method is in the standard, but not actually implemented by + * any browsers at this point. It's important for how Blobs work in + * React Native, however, since we cannot de-allocate resources automatically, + * so consumers need to explicitly de-allocate them. + * + * Note that the semantics around Blobs created via `blob.slice()` + * and `new Blob([blob])` are different. `blob.slice()` creates a + * new *view* onto the same binary data, so calling `close()` on any + * of those views is enough to deallocate the data, whereas + * `new Blob([blob, ...])` actually copies the data in memory. + */ }, { key: "close", - value: - function close() { + value: function close() { var BlobManager = _$$_REQUIRE(_dependencyMap[1], "./BlobManager"); BlobManager.release(this.data.blobId); this.data = null; } + /** + * Size of the data contained in the Blob object, in bytes. + */ + // $FlowFixMe[unsafe-getters-setters] }, { key: "size", - get: - function get() { + get: function get() { return this.data.size; } + /* + * String indicating the MIME type of the data contained in the Blob. + * If the type is unknown, this string is empty. + */ + // $FlowFixMe[unsafe-getters-setters] }, { key: "type", - get: - function get() { + get: function get() { return this.data.type || ''; } }]); return Blob; }(); module.exports = Blob; -},119,[12,117,13],"node_modules/react-native/Libraries/Blob/Blob.js"); +},135,[12,133,13],"node_modules/react-native/Libraries/Blob/Blob.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var registry = {}; var register = function register(id) { @@ -28502,24 +35871,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e unregister: unregister, has: has }; -},120,[],"node_modules/react-native/Libraries/Blob/BlobRegistry.js"); +},136,[],"node_modules/react-native/Libraries/Blob/BlobRegistry.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @author Toru Nagashima + * @copyright 2015 Toru Nagashima. All rights reserved. + * See LICENSE file in root directory for full license. + */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); + /** + * @typedef {object} PrivateData + * @property {EventTarget} eventTarget The event target. + * @property {{type:string}} event The original event object. + * @property {number} eventPhase The current event phase. + * @property {EventTarget|null} currentTarget The current event target. + * @property {boolean} canceled The flag to prevent default. + * @property {boolean} stopped The flag to stop propagation. + * @property {boolean} immediateStopped The flag to stop propagation immediately. + * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null. + * @property {number} timeStamp The unix time. + * @private + */ + + /** + * Private data for event wrappers. + * @type {WeakMap} + * @private + */ var privateData = new WeakMap(); + /** + * Cache for wrapper classes. + * @type {WeakMap} + * @private + */ var wrappers = new WeakMap(); + /** + * Get private data. + * @param {Event} event The event object to get private data. + * @returns {PrivateData} The private data of the event. + * @private + */ function pd(event) { var retv = privateData.get(event); console.assert(retv != null, "'this' is expected an Event object, but got", event); return retv; } + /** + * https://dom.spec.whatwg.org/#set-the-canceled-flag + * @param data {PrivateData} private data. + */ function setCancelFlag(data) { if (data.passiveListener != null) { if (typeof console !== "undefined" && typeof console.error === "function") { @@ -28536,6 +35944,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * @see https://dom.spec.whatwg.org/#interface-event + * @private + */ + /** + * The event wrapper. + * @constructor + * @param {EventTarget} eventTarget The event target of this dispatching. + * @param {Event|{type:string}} event The original event to wrap. + */ function Event(eventTarget, event) { privateData.set(this, { eventTarget: eventTarget, @@ -28549,11 +35967,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e timeStamp: event.timeStamp || Date.now() }); + // https://heycam.github.io/webidl/#Unforgeable Object.defineProperty(this, "isTrusted", { value: false, enumerable: true }); + // Define accessors var keys = Object.keys(event); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; @@ -28563,16 +35983,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // Should be enumerable, but class methods are not enumerable. Event.prototype = { + /** + * The type of this event. + * @type {string} + */ get type() { return pd(this).event.type; }, + /** + * The target of this event. + * @type {EventTarget} + */ get target() { return pd(this).eventTarget; }, + /** + * The target of this event. + * @type {EventTarget} + */ get currentTarget() { return pd(this).currentTarget; }, + /** + * @returns {EventTarget[]} The composed path of this event. + */ composedPath: function composedPath() { var currentTarget = pd(this).currentTarget; if (currentTarget == null) { @@ -28580,21 +36016,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return [currentTarget]; }, + /** + * Constant of NONE. + * @type {number} + */ get NONE() { return 0; }, + /** + * Constant of CAPTURING_PHASE. + * @type {number} + */ get CAPTURING_PHASE() { return 1; }, + /** + * Constant of AT_TARGET. + * @type {number} + */ get AT_TARGET() { return 2; }, + /** + * Constant of BUBBLING_PHASE. + * @type {number} + */ get BUBBLING_PHASE() { return 3; }, + /** + * The target of this event. + * @type {number} + */ get eventPhase() { return pd(this).eventPhase; }, + /** + * Stop event bubbling. + * @returns {void} + */ stopPropagation: function stopPropagation() { var data = pd(this); data.stopped = true; @@ -28602,6 +36062,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data.event.stopPropagation(); } }, + /** + * Stop event bubbling. + * @returns {void} + */ stopImmediatePropagation: function stopImmediatePropagation() { var data = pd(this); data.stopped = true; @@ -28610,27 +36074,61 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data.event.stopImmediatePropagation(); } }, + /** + * The flag to be bubbling. + * @type {boolean} + */ get bubbles() { return Boolean(pd(this).event.bubbles); }, + /** + * The flag to be cancelable. + * @type {boolean} + */ get cancelable() { return Boolean(pd(this).event.cancelable); }, + /** + * Cancel this event. + * @returns {void} + */ preventDefault: function preventDefault() { setCancelFlag(pd(this)); }, + /** + * The flag to indicate cancellation state. + * @type {boolean} + */ get defaultPrevented() { return pd(this).canceled; }, + /** + * The flag to be composed. + * @type {boolean} + */ get composed() { return Boolean(pd(this).event.composed); }, + /** + * The unix time of this event. + * @type {number} + */ get timeStamp() { return pd(this).timeStamp; }, + /** + * The target of this event. + * @type {EventTarget} + * @deprecated + */ get srcElement() { return pd(this).eventTarget; }, + /** + * The flag to stop event bubbling. + * @type {boolean} + * @deprecated + */ get cancelBubble() { return pd(this).stopped; }, @@ -28644,6 +36142,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data.event.cancelBubble = true; } }, + /** + * The flag to indicate cancellation state. + * @type {boolean} + * @deprecated + */ get returnValue() { return !pd(this).canceled; }, @@ -28652,22 +36155,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setCancelFlag(pd(this)); } }, + /** + * Initialize this event object. But do nothing under event dispatching. + * @param {string} type The event type. + * @param {boolean} [bubbles=false] The flag to be possible to bubble up. + * @param {boolean} [cancelable=false] The flag to be possible to cancel. + * @deprecated + */ initEvent: function initEvent() { + // Do nothing. } }; + // `constructor` is not enumerable. Object.defineProperty(Event.prototype, "constructor", { value: Event, configurable: true, writable: true }); + // Ensure `event instanceof window.Event` is `true`. if (typeof window !== "undefined" && typeof window.Event !== "undefined") { Object.setPrototypeOf(Event.prototype, window.Event.prototype); + // Make association for wrappers. wrappers.set(window.Event.prototype, Event); } + /** + * Get the property descriptor to redirect a given property. + * @param {string} key Property name to define property descriptor. + * @returns {PropertyDescriptor} The property descriptor to redirect the property. + * @private + */ function defineRedirectDescriptor(key) { return { get: function get() { @@ -28681,6 +36201,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Get the property descriptor to call a given method property. + * @param {string} key Property name to define property descriptor. + * @returns {PropertyDescriptor} The property descriptor to call the method property. + * @private + */ function defineCallDescriptor(key) { return { value: function value() { @@ -28692,12 +36218,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Define new wrapper class. + * @param {Function} BaseEvent The base wrapper class. + * @param {Object} proto The prototype of the original event. + * @returns {Function} The defined wrapper class. + * @private + */ function defineWrapper(BaseEvent, proto) { var keys = Object.keys(proto); if (keys.length === 0) { return BaseEvent; } + /** CustomEvent */ function CustomEvent(eventTarget, event) { BaseEvent.call(this, eventTarget, event); } @@ -28709,6 +36243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); + // Define accessors. for (var i = 0; i < keys.length; ++i) { var key = keys[i]; if (!(key in BaseEvent.prototype)) { @@ -28720,6 +36255,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CustomEvent; } + /** + * Get the wrapper class of a given prototype. + * @param {Object} proto The prototype of the original event to get its wrapper. + * @returns {Function} The wrapper class. + * @private + */ function getWrapper(proto) { if (proto == null || proto === Object.prototype) { return Event; @@ -28732,37 +36273,97 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return wrapper; } + /** + * Wrap a given event to management a dispatching. + * @param {EventTarget} eventTarget The event target of this dispatching. + * @param {Object} event The event to wrap. + * @returns {Event} The wrapper instance. + * @private + */ function wrapEvent(eventTarget, event) { var Wrapper = getWrapper(Object.getPrototypeOf(event)); return new Wrapper(eventTarget, event); } + /** + * Get the immediateStopped flag of a given event. + * @param {Event} event The event to get. + * @returns {boolean} The flag to stop propagation immediately. + * @private + */ function isStopped(event) { return pd(event).immediateStopped; } + /** + * Set the current event phase of a given event. + * @param {Event} event The event to set current target. + * @param {number} eventPhase New event phase. + * @returns {void} + * @private + */ function setEventPhase(event, eventPhase) { pd(event).eventPhase = eventPhase; } + /** + * Set the current target of a given event. + * @param {Event} event The event to set current target. + * @param {EventTarget|null} currentTarget New current target. + * @returns {void} + * @private + */ function setCurrentTarget(event, currentTarget) { pd(event).currentTarget = currentTarget; } + /** + * Set a passive listener of a given event. + * @param {Event} event The event to set current target. + * @param {Function|null} passiveListener New passive listener. + * @returns {void} + * @private + */ function setPassiveListener(event, passiveListener) { pd(event).passiveListener = passiveListener; } + /** + * @typedef {object} ListenerNode + * @property {Function} listener + * @property {1|2|3} listenerType + * @property {boolean} passive + * @property {boolean} once + * @property {ListenerNode|null} next + * @private + */ + + /** + * @type {WeakMap>} + * @private + */ var listenersMap = new WeakMap(); + // Listener types var CAPTURE = 1; var BUBBLE = 2; var ATTRIBUTE = 3; + /** + * Check whether a given value is an object or not. + * @param {any} x The value to check. + * @returns {boolean} `true` if the value is an object. + */ function isObject(x) { - return x !== null && typeof x === "object"; + return x !== null && typeof x === "object"; //eslint-disable-line no-restricted-syntax } + /** + * Get listeners. + * @param {EventTarget} eventTarget The event target to get. + * @returns {Map} The listeners. + * @private + */ function getListeners(eventTarget) { var listeners = listenersMap.get(eventTarget); if (listeners == null) { @@ -28771,6 +36372,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return listeners; } + /** + * Get the property descriptor for the event attribute of a given event. + * @param {string} eventName The event name to get property descriptor. + * @returns {PropertyDescriptor} The property descriptor. + * @private + */ function defineEventAttributeDescriptor(eventName) { return { get: function get() { @@ -28786,15 +36393,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, set: function set(listener) { if (typeof listener !== "function" && !isObject(listener)) { - listener = null; + listener = null; // eslint-disable-line no-param-reassign } var listeners = getListeners(this); + // Traverse to the tail while removing old value. var prev = null; var node = listeners.get(eventName); while (node != null) { if (node.listenerType === ATTRIBUTE) { + // Remove old value. if (prev !== null) { prev.next = node.next; } else if (node.next !== null) { @@ -28808,6 +36417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e node = node.next; } + // Add new value. if (listener !== null) { var newNode = { listener: listener, @@ -28828,11 +36438,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } + /** + * Define an event attribute (e.g. `eventTarget.onclick`). + * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite. + * @param {string} eventName The event name to define. + * @returns {void} + */ function defineEventAttribute(eventTargetPrototype, eventName) { - Object.defineProperty(eventTargetPrototype, "on" + eventName, defineEventAttributeDescriptor(eventName)); + Object.defineProperty(eventTargetPrototype, `on${eventName}`, defineEventAttributeDescriptor(eventName)); } + /** + * Define a custom EventTarget with event attributes. + * @param {string[]} eventNames Event names for event attributes. + * @returns {EventTarget} The custom EventTarget. + * @private + */ function defineCustomEventTarget(eventNames) { + /** CustomEventTarget */ function CustomEventTarget() { EventTarget.call(this); } @@ -28849,7 +36472,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CustomEventTarget; } + /** + * EventTarget. + * + * - This is constructor if no arguments. + * - This is a function which returns a CustomEventTarget constructor if there are arguments. + * + * For example: + * + * class A extends EventTarget {} + * class B extends EventTarget("message") {} + * class C extends EventTarget("message", "error") {} + * class D extends EventTarget(["message", "error"]) {} + */ function EventTarget() { + /*eslint-disable consistent-return */ if (this instanceof EventTarget) { listenersMap.set(this, new Map()); return; @@ -28865,9 +36502,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return defineCustomEventTarget(types); } throw new TypeError("Cannot call a class as a function"); + /*eslint-enable consistent-return */ } + // Should be enumerable, but class methods are not enumerable. EventTarget.prototype = { + /** + * Add a given listener to this event target. + * @param {string} eventName The event name to add. + * @param {Function} listener The listener to add. + * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. + * @returns {void} + */ addEventListener: function addEventListener(eventName, listener, options) { if (listener == null) { return; @@ -28887,23 +36533,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e next: null }; + // Set it as the first node if the first node is null. var node = listeners.get(eventName); if (node === undefined) { listeners.set(eventName, newNode); return; } + // Traverse to the tail while checking duplication.. var prev = null; while (node != null) { if (node.listener === listener && node.listenerType === listenerType) { + // Should ignore duplication. return; } prev = node; node = node.next; } + // Add it. prev.next = newNode; }, + /** + * Remove a given listener from this event target. + * @param {string} eventName The event name to remove. + * @param {Function} listener The listener to remove. + * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. + * @returns {void} + */ removeEventListener: function removeEventListener(eventName, listener, options) { if (listener == null) { return; @@ -28928,11 +36585,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e node = node.next; } }, + /** + * Dispatch a given event. + * @param {Event|{type:string}} event The event to dispatch. + * @returns {boolean} `false` if canceled. + */ dispatchEvent: function dispatchEvent(event) { if (event == null || typeof event.type !== "string") { throw new TypeError('"event.type" should be a string.'); } + // If listeners aren't registered, terminate. var listeners = getListeners(this); var eventName = event.type; var node = listeners.get(eventName); @@ -28940,10 +36603,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } + // Since we cannot rewrite several properties, so wrap object. var wrappedEvent = wrapEvent(this, event); + // This doesn't process capturing phase and bubbling phase. + // This isn't participating in a tree. var prev = null; while (node != null) { + // Remove this listener if it's once if (node.once) { if (prev !== null) { prev.next = node.next; @@ -28956,6 +36623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e prev = node; } + // Call this listener setPassiveListener(wrappedEvent, node.passive ? node.listener : null); if (typeof node.listener === "function") { try { @@ -28969,6 +36637,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e node.listener.handleEvent(wrappedEvent); } + // Break if `event.stopImmediatePropagation` was called. if (isStopped(wrappedEvent)) { break; } @@ -28981,12 +36650,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + // `constructor` is not enumerable. Object.defineProperty(EventTarget.prototype, "constructor", { value: EventTarget, configurable: true, writable: true }); + // Ensure `eventTarget instanceof window.EventTarget` is `true`. if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") { Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype); } @@ -28996,13 +36667,71 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e module.exports = EventTarget; module.exports.EventTarget = module.exports["default"] = EventTarget; module.exports.defineEventAttribute = defineEventAttribute; -},121,[],"node_modules/event-target-shim/dist/event-target-shim.js"); +},137,[],"node_modules/event-target-shim/dist/event-target-shim.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./createPerformanceLogger")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../ReactNative/ReactNativeFeatureFlags")); + var _NativePerformance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../WebPerformance/NativePerformance")); + var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./createPerformanceLogger")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + function isLoggingForWebPerformance() { + return _NativePerformance.default != null && _ReactNativeFeatureFlags.default.isGlobalWebPerformanceLoggerEnabled(); + } - var GlobalPerformanceLogger = (0, _createPerformanceLogger.default)(); + /** + * This is a global shared instance of IPerformanceLogger that is created with + * createPerformanceLogger(). + * This logger should be used only for global performance metrics like the ones + * that are logged during loading bundle. If you want to log something from your + * React component you should use PerformanceLoggerContext instead. + */ + var GlobalPerformanceLogger = (0, _createPerformanceLogger.default)(isLoggingForWebPerformance()); module.exports = GlobalPerformanceLogger; -},122,[3,123],"node_modules/react-native/Libraries/Utilities/GlobalPerformanceLogger.js"); +},138,[3,139,56,140],"node_modules/react-native/Libraries/Utilities/GlobalPerformanceLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var ReactNativeFeatureFlags = { + isLayoutAnimationEnabled: function isLayoutAnimationEnabled() { + return true; + }, + shouldEmitW3CPointerEvents: function shouldEmitW3CPointerEvents() { + return false; + }, + shouldPressibilityUseW3CPointerEventsForHover: function shouldPressibilityUseW3CPointerEventsForHover() { + return false; + }, + animatedShouldDebounceQueueFlush: function animatedShouldDebounceQueueFlush() { + return false; + }, + animatedShouldUseSingleOp: function animatedShouldUseSingleOp() { + return false; + }, + isGlobalWebPerformanceLoggerEnabled: function isGlobalWebPerformanceLoggerEnabled() { + return false; + }, + enableAccessToHostTreeInFabric: function enableAccessToHostTreeInFabric() { + return false; + } + }; + module.exports = ReactNativeFeatureFlags; +},139,[],"node_modules/react-native/Libraries/ReactNative/ReactNativeFeatureFlags.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -29011,33 +36740,55 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.getCurrentTimestamp = void 0; var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var Systrace = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../Performance/Systrace")); + var _Performance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../WebPerformance/Performance")); + var _infoLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./infoLog")); var _global$nativeQPLTime; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } var _cookies = {}; - var PRINT_TO_CONSOLE = false; + var PRINT_TO_CONSOLE = false; // Type as false to prevent accidentally committing `true`; + + // This is the prefix for optional logging points/timespans as marks/measures via Performance API, + // used to separate these internally from other marks/measures + var WEB_PERFORMANCE_PREFIX = 'global_perf_'; + // TODO: Remove once T143070419 is done + var performance = new _Performance.default(); var getCurrentTimestamp = (_global$nativeQPLTime = global.nativeQPLTimestamp) != null ? _global$nativeQPLTime : global.performance.now.bind(global.performance); exports.getCurrentTimestamp = getCurrentTimestamp; - var PerformanceLogger = function () { - function PerformanceLogger() { + var PerformanceLogger = /*#__PURE__*/function () { + function PerformanceLogger(isLoggingForWebPerformance) { (0, _classCallCheck2.default)(this, PerformanceLogger); this._timespans = {}; this._extras = {}; this._points = {}; this._pointExtras = {}; this._closed = false; + this._isLoggingForWebPerformance = false; + this._isLoggingForWebPerformance = isLoggingForWebPerformance === true; } (0, _createClass2.default)(PerformanceLogger, [{ key: "addTimespan", value: function addTimespan(key, startTime, endTime, startExtras, endExtras) { if (this._closed) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: addTimespan - has closed ignoring: ', key); + (0, _infoLog.default)('PerformanceLogger: addTimespan - has closed ignoring: ', key); } return; } if (this._timespans[key]) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to add a timespan that already exists ', key); + (0, _infoLog.default)('PerformanceLogger: Attempting to add a timespan that already exists ', key); } return; } @@ -29048,6 +36799,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startExtras: startExtras, endExtras: endExtras }; + if (this._isLoggingForWebPerformance) { + performance.measure(`${WEB_PERFORMANCE_PREFIX}_${key}`, { + start: startTime, + end: endTime + }); + } } }, { key: "append", @@ -29064,7 +36821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._extras = {}; this._points = {}; if (PRINT_TO_CONSOLE) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'clear'); + (0, _infoLog.default)('PerformanceLogger.js', 'clear'); } } }, { @@ -29079,7 +36836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._extras = {}; this._points = {}; if (PRINT_TO_CONSOLE) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'clearCompleted'); + (0, _infoLog.default)('PerformanceLogger.js', 'clearCompleted'); } } }, { @@ -29126,18 +36883,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "logEverything", value: function logEverything() { if (PRINT_TO_CONSOLE) { + // log timespans for (var _key2 in this._timespans) { var _this$_timespans$_key2; if (((_this$_timespans$_key2 = this._timespans[_key2]) == null ? void 0 : _this$_timespans$_key2.totalTime) != null) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")(_key2 + ': ' + this._timespans[_key2].totalTime + 'ms'); + (0, _infoLog.default)(_key2 + ': ' + this._timespans[_key2].totalTime + 'ms'); } } - _$$_REQUIRE(_dependencyMap[3], "./infoLog")(this._extras); + // log extras + (0, _infoLog.default)(this._extras); + // log points for (var _key3 in this._points) { if (this._points[_key3] != null) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")(_key3 + ': ' + this._points[_key3] + 'ms'); + (0, _infoLog.default)(_key3 + ': ' + this._points[_key3] + 'ms'); } } } @@ -29149,13 +36909,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var extras = arguments.length > 2 ? arguments[2] : undefined; if (this._closed) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: markPoint - has closed ignoring: ', key); + (0, _infoLog.default)('PerformanceLogger: markPoint - has closed ignoring: ', key); } return; } if (this._points[key] != null) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to mark a point that has been already logged ', key); + (0, _infoLog.default)('PerformanceLogger: Attempting to mark a point that has been already logged ', key); } return; } @@ -29163,6 +36923,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (extras) { this._pointExtras[key] = extras; } + if (this._isLoggingForWebPerformance) { + performance.mark(`${WEB_PERFORMANCE_PREFIX}_${key}`, { + startTime: timestamp + }); + } } }, { key: "removeExtra", @@ -29176,13 +36941,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function setExtra(key, value) { if (this._closed) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: setExtra - has closed ignoring: ', key); + (0, _infoLog.default)('PerformanceLogger: setExtra - has closed ignoring: ', key); } return; } if (this._extras.hasOwnProperty(key)) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to set an extra that already exists ', { + (0, _infoLog.default)('PerformanceLogger: Attempting to set an extra that already exists ', { key: key, currentValue: this._extras[key], attemptedValue: value @@ -29199,13 +36964,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var extras = arguments.length > 2 ? arguments[2] : undefined; if (this._closed) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: startTimespan - has closed ignoring: ', key); + (0, _infoLog.default)('PerformanceLogger: startTimespan - has closed ignoring: ', key); } return; } if (this._timespans[key]) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to start a timespan that already exists ', key); + (0, _infoLog.default)('PerformanceLogger: Attempting to start a timespan that already exists ', key); } return; } @@ -29213,9 +36978,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startTime: timestamp, startExtras: extras }; - _cookies[key] = _$$_REQUIRE(_dependencyMap[4], "../Performance/Systrace").beginAsyncEvent(key); + _cookies[key] = Systrace.beginAsyncEvent(key); if (PRINT_TO_CONSOLE) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'start: ' + key); + (0, _infoLog.default)('PerformanceLogger.js', 'start: ' + key); + } + if (this._isLoggingForWebPerformance) { + performance.mark(`${WEB_PERFORMANCE_PREFIX}_timespan_start_${key}`, { + startTime: timestamp + }); } } }, { @@ -29225,20 +36995,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var extras = arguments.length > 2 ? arguments[2] : undefined; if (this._closed) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: stopTimespan - has closed ignoring: ', key); + (0, _infoLog.default)('PerformanceLogger: stopTimespan - has closed ignoring: ', key); } return; } var timespan = this._timespans[key]; if (!timespan || timespan.startTime == null) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to end a timespan that has not started ', key); + (0, _infoLog.default)('PerformanceLogger: Attempting to end a timespan that has not started ', key); } return; } if (timespan.endTime != null) { if (PRINT_TO_CONSOLE && __DEV__) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger: Attempting to end a timespan that has already ended ', key); + (0, _infoLog.default)('PerformanceLogger: Attempting to end a timespan that has already ended ', key); } return; } @@ -29246,30 +37016,54 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e timespan.endTime = timestamp; timespan.totalTime = timespan.endTime - (timespan.startTime || 0); if (PRINT_TO_CONSOLE) { - _$$_REQUIRE(_dependencyMap[3], "./infoLog")('PerformanceLogger.js', 'end: ' + key); + (0, _infoLog.default)('PerformanceLogger.js', 'end: ' + key); } if (_cookies[key] != null) { - _$$_REQUIRE(_dependencyMap[4], "../Performance/Systrace").endAsyncEvent(key, _cookies[key]); + Systrace.endAsyncEvent(key, _cookies[key]); delete _cookies[key]; } + if (this._isLoggingForWebPerformance) { + performance.measure(`${WEB_PERFORMANCE_PREFIX}_${key}`, { + start: `${WEB_PERFORMANCE_PREFIX}_timespan_start_${key}`, + end: timestamp + }); + } } }]); return PerformanceLogger; - }(); - function createPerformanceLogger() { - return new PerformanceLogger(); + }(); // Re-exporting for backwards compatibility with all the clients that + // may still import it from this module. + /** + * This function creates performance loggers that can be used to collect and log + * various performance data such as timespans, points and extras. + * The loggers need to have minimal overhead since they're used in production. + */ + function createPerformanceLogger(isLoggingForWebPerformance) { + return new PerformanceLogger(isLoggingForWebPerformance); } -},123,[3,12,13,124,28],"node_modules/react-native/Libraries/Utilities/createPerformanceLogger.js"); +},140,[3,12,13,31,57,141],"node_modules/react-native/Libraries/Utilities/createPerformanceLogger.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + /** + * Intentional info-level logging for clear separation from ad-hoc console debug logging. + */ function infoLog() { var _console; return (_console = console).log.apply(_console, arguments); } module.exports = infoLog; -},124,[],"node_modules/react-native/Libraries/Utilities/infoLog.js"); +},141,[],"node_modules/react-native/Libraries/Utilities/infoLog.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -29285,6 +37079,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e revLookup[code.charCodeAt(i)] = i; } + // Support decoding URL-safe base64 strings, as Node.js does. + // See: https://en.wikipedia.org/wiki/Base64#URL_applications revLookup['-'.charCodeAt(0)] = 62; revLookup['_'.charCodeAt(0)] = 63; function getLens(b64) { @@ -29293,12 +37089,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error('Invalid string. Length must be a multiple of 4'); } + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 var validLen = b64.indexOf('='); if (validLen === -1) validLen = len; var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; return [validLen, placeHoldersLen]; } + // base64 is 4/3 + up to two characters of the original data function byteLength(b64) { var lens = getLens(b64); var validLen = lens[0]; @@ -29316,6 +37115,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); var curByte = 0; + // if there are placeholders, only get up to the last complete 4 chars var len = placeHoldersLen > 0 ? validLen - 4 : validLen; var i; for (i = 0; i < len; i += 4) { @@ -29350,14 +37150,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function fromByteArray(uint8) { var tmp; var len = uint8.length; - var extraBytes = len % 3; + var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes var parts = []; - var maxChunkLength = 16383; + var maxChunkLength = 16383; // must be multiple of 3 + // go through the array every three bytes, we'll deal with trailing stuff later for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength)); } + // pad the end with zeros, but make sure to not forget the extra bytes if (extraBytes === 1) { tmp = uint8[len - 1]; parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); @@ -29367,16 +37169,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } return parts.join(''); } -},125,[],"node_modules/base64-js/index.js"); +},142,[],"node_modules/base64-js/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/RCTDeviceEventEmitter")); - var _NativeNetworkingIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeNetworkingIOS")); - var _convertRequestBody = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./convertRequestBody")); + var _convertRequestBody = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./convertRequestBody")); + var _NativeNetworkingIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeNetworkingIOS")); var RCTNetworking = { addListener: function addListener(eventType, listener, context) { + // $FlowFixMe[incompatible-call] return _RCTDeviceEventEmitter.default.addListener(eventType, listener, context); }, sendRequest: function sendRequest(method, trackingName, url, headers, data, responseType, incrementalUpdates, timeout, callback, withCredentials) { @@ -29401,20 +37217,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NativeNetworkingIOS.default.clearCookies(callback); } }; - module.exports = RCTNetworking; -},126,[3,4,127,128],"node_modules/react-native/Libraries/Network/RCTNetworking.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('Networking'); + var _default = RCTNetworking; exports.default = _default; -},127,[16],"node_modules/react-native/Libraries/Network/NativeNetworkingIOS.js"); +},143,[3,4,144,147],"node_modules/react-native/Libraries/Network/RCTNetworking.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -29435,6 +37250,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) { + /* $FlowFixMe[incompatible-call] : no way to assert that 'body' is indeed + * an ArrayBufferView */ return { base64: _$$_REQUIRE(_dependencyMap[2], "../Utilities/binaryToBase64")(body) }; @@ -29442,12 +37259,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return body; } module.exports = convertRequestBody; -},128,[119,129,130],"node_modules/react-native/Libraries/Network/convertRequestBody.js"); +},144,[135,145,146],"node_modules/react-native/Libraries/Network/convertRequestBody.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; - var FormData = function () { + /** + * Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests + * with mixed data (string, native files) to be submitted via XMLHttpRequest. + * + * Example: + * + * var photo = { + * uri: uriFromCameraRoll, + * type: 'image/jpeg', + * name: 'photo.jpg', + * }; + * + * var body = new FormData(); + * body.append('authToken', 'secret'); + * body.append('photo', photo); + * body.append('title', 'A beautiful photo!'); + * + * xhr.open('POST', serverURL); + * xhr.send(body); + */ + var FormData = /*#__PURE__*/function () { function FormData() { _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, FormData); this._parts = []; @@ -29455,6 +37301,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(FormData, [{ key: "append", value: function append(key, value) { + // The XMLHttpRequest spec doesn't specify if duplicate keys are allowed. + // MDN says that any new values should be appended to existing values. + // In any case, major browsers allow duplicate keys, so that's what we'll do + // too. They'll simply get appended as additional form data parts in the + // request body, leaving the server to deal with them. this._parts.push([key, value]); } }, { @@ -29482,6 +37333,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 'content-disposition': contentDisposition }; + // The body part is a "blob", which in React Native just means + // an object with a `uri` attribute. Optionally, it can also + // have a `name` and `type` attribute to specify filename and + // content type (cf. web Blob interface.) if (typeof value === 'object' && !Array.isArray(value) && value) { if (typeof value.name === 'string') { headers['content-disposition'] += '; filename="' + value.name + '"'; @@ -29494,6 +37349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fieldName: name }); } + // Convert non-object values to strings as per FormData.append() spec return { string: String(value), headers: headers, @@ -29505,13 +37361,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return FormData; }(); module.exports = FormData; -},129,[12,13,19],"node_modules/react-native/Libraries/Network/FormData.js"); +},145,[12,13,22],"node_modules/react-native/Libraries/Network/FormData.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; function binaryToBase64(data) { if (data instanceof ArrayBuffer) { + // $FlowFixMe[reassign-const] data = new Uint8Array(data); } if (data instanceof Uint8Array) { @@ -29520,6 +37386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!ArrayBuffer.isView(data)) { throw new Error('data must be ArrayBuffer or typed array'); } + // Already checked that `data` is `DataView` in `ArrayBuffer.isView(data)` var _ref = data, buffer = _ref.buffer, byteOffset = _ref.byteOffset, @@ -29527,7 +37394,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[0], "base64-js").fromByteArray(new Uint8Array(buffer, byteOffset, byteLength)); } module.exports = binaryToBase64; -},130,[125],"node_modules/react-native/Libraries/Utilities/binaryToBase64.js"); +},146,[142],"node_modules/react-native/Libraries/Utilities/binaryToBase64.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.getEnforcing('Networking'); + exports.default = _default; +},147,[19],"node_modules/react-native/Libraries/Network/NativeNetworkingIOS.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); @@ -29547,15 +37434,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "invariant")); var _excluded = ["headers"]; function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var CONNECTING = 0; var OPEN = 1; var CLOSING = 2; var CLOSED = 3; var CLOSE_NORMAL = 1000; + + // Abnormal closure where no code is provided in a control frame + // https://www.rfc-editor.org/rfc/rfc6455.html#section-7.1.5 + var CLOSE_ABNORMAL = 1006; var WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open']; var nextWebSocketId = 0; - var WebSocket = function (_ref) { + /** + * Browser-compatible WebSockets implementation. + * + * See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket + * See https://github.com/websockets/ws + */ + var WebSocket = /*#__PURE__*/function (_ref) { (0, _inherits2.default)(WebSocket, _ref); var _super = _createSuper(WebSocket); function WebSocket(url, protocols, options) { @@ -29576,12 +37481,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e headers = _ref2$headers === void 0 ? {} : _ref2$headers, unrecognized = (0, _objectWithoutProperties2.default)(_ref2, _excluded); + // Preserve deprecated backwards compatibility for the 'origin' option + // $FlowFixMe[prop-missing] if (unrecognized && typeof unrecognized.origin === 'string') { console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'); + /* $FlowFixMe[prop-missing] (>=0.54.0 site=react_native_fb,react_native_ + * oss) This comment suppresses an error found when Flow v0.54 was + * deployed. To see the error delete this comment and run Flow. */ headers.origin = unrecognized.origin; + /* $FlowFixMe[prop-missing] (>=0.54.0 site=react_native_fb,react_native_ + * oss) This comment suppresses an error found when Flow v0.54 was + * deployed. To see the error delete this comment and run Flow. */ delete unrecognized.origin; } + // Warn about and discard anything else if (Object.keys(unrecognized).length > 0) { console.warn('Unrecognized WebSocket connection option(s) `' + Object.keys(unrecognized).join('`, `') + '`. ' + 'Did you mean to put these under `headers`?'); } @@ -29589,6 +37503,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e protocols = null; } _this._eventEmitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior _Platform.default.OS !== 'ios' ? null : _NativeWebSocketModule.default); _this._socketId = nextWebSocketId++; _this._registerEvents(); @@ -29657,6 +37573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_close", value: function _close(code, reason) { + // See https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent var statusCode = typeof code === 'number' ? code : CLOSE_NORMAL; var closeReason = typeof reason === 'string' ? reason : ''; _NativeWebSocketModule.default.close(statusCode, closeReason, this._socketId); @@ -29707,7 +37624,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2.dispatchEvent(new _WebSocketEvent.default('close', { code: ev.code, reason: ev.reason + // TODO: missing `wasClean` (exposed on iOS as `clean` but missing on Android) })); + _this2._unregisterEvents(); _this2.close(); }), this._eventEmitter.addListener('websocketFailed', function (ev) { @@ -29719,8 +37638,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e message: ev.message })); _this2.dispatchEvent(new _WebSocketEvent.default('close', { - message: ev.message + code: CLOSE_ABNORMAL, + reason: ev.message + // TODO: Expose `wasClean` })); + _this2._unregisterEvents(); _this2.close(); })]; @@ -29733,7 +37655,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebSocket.CLOSING = CLOSING; WebSocket.CLOSED = CLOSED; module.exports = WebSocket; -},131,[3,132,12,13,50,47,46,119,117,134,130,14,135,136,125,121,17],"node_modules/react-native/Libraries/WebSocket/WebSocket.js"); +},148,[3,149,12,13,49,51,53,135,133,151,146,17,152,153,142,137,20],"node_modules/react-native/Libraries/WebSocket/WebSocket.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -29751,7 +37673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return target; } module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; -},132,[133],"node_modules/@babel/runtime/helpers/objectWithoutProperties.js"); +},149,[150],"node_modules/@babel/runtime/helpers/objectWithoutProperties.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; @@ -29766,8 +37688,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return target; } module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; -},133,[],"node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); +},150,[],"node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -29780,15 +37711,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./RCTDeviceEventEmitter")); var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); - var NativeEventEmitter = function () { + /** + * `NativeEventEmitter` is intended for use by Native Modules to emit events to + * JavaScript listeners. If a `NativeModule` is supplied to the constructor, it + * will be notified (via `addListener` and `removeListeners`) when the listener + * count changes to manage "native memory". + * + * Currently, all native events are fired via a global `RCTDeviceEventEmitter`. + * This means event names must be globally unique, and it means that call sites + * can theoretically listen to `RCTDeviceEventEmitter` (although discouraged). + */ + var NativeEventEmitter = /*#__PURE__*/function () { function NativeEventEmitter(nativeModule) { (0, _classCallCheck2.default)(this, NativeEventEmitter); if (_Platform.default.OS === 'ios') { (0, _invariant.default)(nativeModule != null, '`new NativeEventEmitter()` requires a non-null argument.'); } var hasAddListener = + // $FlowFixMe[method-unbinding] added when improving typing for this parameters !!nativeModule && typeof nativeModule.addListener === 'function'; var hasRemoveListeners = + // $FlowFixMe[method-unbinding] added when improving typing for this parameters !!nativeModule && typeof nativeModule.removeListeners === 'function'; if (nativeModule && hasAddListener && hasRemoveListeners) { this._nativeModule = nativeModule; @@ -29813,6 +37756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (subscription != null) { var _this$_nativeModule2; (_this$_nativeModule2 = _this._nativeModule) == null ? void 0 : _this$_nativeModule2.removeListeners(1); + // $FlowFixMe[incompatible-use] subscription.remove(); subscription = null; } @@ -29825,6 +37769,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } + // Generally, `RCTDeviceEventEmitter` is directly invoked. But this is + // included for completeness. _RCTDeviceEventEmitter.default.emit.apply(_RCTDeviceEventEmitter.default, [eventType].concat(args)); } }, { @@ -29844,7 +37790,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return NativeEventEmitter; }(); exports.default = NativeEventEmitter; -},134,[3,12,13,14,4,17],"node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js"); +},151,[3,12,13,17,4,20],"node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -29853,29 +37799,69 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.getEnforcing('WebSocketModule'); exports.default = _default; -},135,[16],"node_modules/react-native/Libraries/WebSocket/NativeWebSocketModule.js"); +},152,[19],"node_modules/react-native/Libraries/WebSocket/NativeWebSocketModule.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ 'use strict'; - var WebSocketEvent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function WebSocketEvent(type, eventInitDict) { + /** + * Event object passed to the `onopen`, `onclose`, `onmessage`, `onerror` + * callbacks of `WebSocket`. + * + * The `type` property is "open", "close", "message", "error" respectively. + * + * In case of "message", the `data` property contains the incoming data. + */ + var WebSocketEvent = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function WebSocketEvent(type, eventInitDict) { _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, WebSocketEvent); this.type = type.toString(); Object.assign(this, eventInitDict); }); module.exports = WebSocketEvent; -},136,[13,12],"node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js"); +},153,[13,12],"node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var File = function (_Blob) { + /** + * The File interface provides information about files. + */ + var File = /*#__PURE__*/function (_Blob) { _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(File, _Blob); var _super = _createSuper(File); + /** + * Constructor for JS consumers. + */ function File(parts, name, options) { var _this; _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, File); @@ -29885,25 +37871,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _this; } + /** + * Name of the file. + */ _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(File, [{ key: "name", - get: - function get() { + get: function get() { _$$_REQUIRE(_dependencyMap[4], "invariant")(this.data.name != null, 'Files must have a name set.'); return this.data.name; } + /* + * Last modified time of the file. + */ }, { key: "lastModified", - get: - function get() { + get: function get() { return this.data.lastModified || 0; } }]); return File; }(_$$_REQUIRE(_dependencyMap[6], "./Blob")); module.exports = File; -},137,[46,47,50,12,17,13,119],"node_modules/react-native/Libraries/Blob/File.js"); +},154,[53,51,49,12,20,13,135],"node_modules/react-native/Libraries/Blob/File.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); @@ -29912,12 +37902,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); var _NativeFileReaderModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeFileReaderModule")); function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + // DONE + var READER_EVENTS = ['abort', 'error', 'load', 'loadstart', 'loadend', 'progress']; var EMPTY = 0; var LOADING = 1; var DONE = 2; - var FileReader = function (_ref) { + var FileReader = /*#__PURE__*/function (_ref) { (0, _inherits2.default)(FileReader, _ref); var _super = _createSuper(FileReader); function FileReader() { @@ -29966,22 +37966,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, { key: "readAsArrayBuffer", - value: function readAsArrayBuffer() { - throw new Error('FileReader.readAsArrayBuffer is not implemented'); - } - }, { - key: "readAsDataURL", - value: function readAsDataURL(blob) { + value: function readAsArrayBuffer(blob) { var _this2 = this; this._aborted = false; if (blob == null) { - throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'"); + throw new TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'"); } _NativeFileReaderModule.default.readAsDataURL(blob.data).then(function (text) { if (_this2._aborted) { return; } - _this2._result = text; + var base64 = text.split(',')[1]; + var typedArray = (0, _$$_REQUIRE(_dependencyMap[7], "base64-js").toByteArray)(base64); + _this2._result = typedArray.buffer; _this2._setReadyState(DONE); }, function (error) { if (_this2._aborted) { @@ -29992,15 +37989,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }, { - key: "readAsText", - value: function readAsText(blob) { + key: "readAsDataURL", + value: function readAsDataURL(blob) { var _this3 = this; - var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'UTF-8'; this._aborted = false; if (blob == null) { - throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'"); + throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'"); } - _NativeFileReaderModule.default.readAsText(blob.data, encoding).then(function (text) { + _NativeFileReaderModule.default.readAsDataURL(blob.data).then(function (text) { if (_this3._aborted) { return; } @@ -30014,14 +38010,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this3._setReadyState(DONE); }); } + }, { + key: "readAsText", + value: function readAsText(blob) { + var _this4 = this; + var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'UTF-8'; + this._aborted = false; + if (blob == null) { + throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'"); + } + _NativeFileReaderModule.default.readAsText(blob.data, encoding).then(function (text) { + if (_this4._aborted) { + return; + } + _this4._result = text; + _this4._setReadyState(DONE); + }, function (error) { + if (_this4._aborted) { + return; + } + _this4._error = error; + _this4._setReadyState(DONE); + }); + } }, { key: "abort", value: function abort() { this._aborted = true; + // only call onreadystatechange if there is something to abort, as per spec if (this._readyState !== EMPTY && this._readyState !== DONE) { this._reset(); this._setReadyState(DONE); } + // Reset again after, in case modified in handler this._reset(); } }, { @@ -30041,12 +38062,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); return FileReader; - }(_$$_REQUIRE(_dependencyMap[7], "event-target-shim").apply(void 0, READER_EVENTS)); + }(_$$_REQUIRE(_dependencyMap[8], "event-target-shim").apply(void 0, READER_EVENTS)); FileReader.EMPTY = EMPTY; FileReader.LOADING = LOADING; FileReader.DONE = DONE; module.exports = FileReader; -},138,[3,12,13,50,47,46,139,121],"node_modules/react-native/Libraries/Blob/FileReader.js"); +},155,[3,12,13,49,51,53,156,142,137],"node_modules/react-native/Libraries/Blob/FileReader.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30055,9 +38076,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.getEnforcing('FileReaderModule'); exports.default = _default; -},139,[16],"node_modules/react-native/Libraries/Blob/NativeFileReaderModule.js"); +},156,[19],"node_modules/react-native/Libraries/Blob/NativeFileReaderModule.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30067,17 +38097,55 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); var _NativeBlobModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeBlobModule")); var _Symbol$iterator; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var BLOB_URL_PREFIX = null; if (_NativeBlobModule.default && typeof _NativeBlobModule.default.getConstants().BLOB_URI_SCHEME === 'string') { var constants = _NativeBlobModule.default.getConstants(); + // $FlowFixMe[incompatible-type] asserted above + // $FlowFixMe[unsafe-addition] BLOB_URL_PREFIX = constants.BLOB_URI_SCHEME + ':'; if (typeof constants.BLOB_URI_HOST === 'string') { - BLOB_URL_PREFIX += "//" + constants.BLOB_URI_HOST + "/"; + BLOB_URL_PREFIX += `//${constants.BLOB_URI_HOST}/`; } } + /** + * To allow Blobs be accessed via `content://` URIs, + * you need to register `BlobProvider` as a ContentProvider in your app's `AndroidManifest.xml`: + * + * ```xml + * + * + * + * + * + * ``` + * And then define the `blob_provider_authority` string in `res/values/strings.xml`. + * Use a dotted name that's entirely unique to your app: + * + * ```xml + * + * your.app.package.blobs + * + * ``` + */ + + // Small subset from whatwg-url: https://github.com/jsdom/whatwg-url/tree/master/src + // The reference code bloat comes from Unicode issues with URLs, so those won't work here. _Symbol$iterator = Symbol.iterator; - var URLSearchParams = function () { + var URLSearchParams = /*#__PURE__*/function () { function URLSearchParams(params) { var _this = this; (0, _classCallCheck2.default)(this, URLSearchParams); @@ -30124,10 +38192,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error('URLSearchParams.sort is not implemented'); } + // $FlowFixMe[unsupported-syntax] + // $FlowFixMe[missing-local-annot] }, { key: _Symbol$iterator, - value: - function value() { + value: function value() { return this._searchParams[Symbol.iterator](); } }, { @@ -30146,9 +38215,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.URLSearchParams = URLSearchParams; function validateBaseUrl(url) { + // from this MIT-licensed gist: https://gist.github.com/dperini/729294 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(url); } - var URL = function () { + var URL = /*#__PURE__*/function () { + // $FlowFixMe[missing-local-annot] function URL(url, base) { (0, _classCallCheck2.default)(this, URL); this._searchParamsInstance = null; @@ -30162,7 +38233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (typeof base === 'string') { baseUrl = base; if (!validateBaseUrl(baseUrl)) { - throw new TypeError("Invalid base URL: " + baseUrl); + throw new TypeError(`Invalid base URL: ${baseUrl}`); } } else { baseUrl = base.toString(); @@ -30171,12 +38242,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e baseUrl = baseUrl.slice(0, baseUrl.length - 1); } if (!url.startsWith('/')) { - url = "/" + url; + url = `/${url}`; } if (baseUrl.endsWith(url)) { url = ''; } - this._url = "" + baseUrl + url; + this._url = `${baseUrl}${url}`; } } (0, _createClass2.default)(URL, [{ @@ -30248,6 +38319,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (this._searchParamsInstance === null) { return this._url; } + // $FlowFixMe[incompatible-use] var instanceString = this._searchParamsInstance.toString(); var separator = this._url.indexOf('?') > -1 ? '&' : '?'; return this._url + separator + instanceString; @@ -30263,18 +38335,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (BLOB_URL_PREFIX === null) { throw new Error('Cannot create URL for blob!'); } - return "" + BLOB_URL_PREFIX + blob.data.blobId + "?offset=" + blob.data.offset + "&size=" + blob.size; + return `${BLOB_URL_PREFIX}${blob.data.blobId}?offset=${blob.data.offset}&size=${blob.size}`; } }, { key: "revokeObjectURL", value: function revokeObjectURL(url) { + // Do nothing. } }]); return URL; }(); exports.URL = URL; -},140,[3,12,13,118],"node_modules/react-native/Libraries/Blob/URL.js"); +},157,[3,12,13,134],"node_modules/react-native/Libraries/Blob/URL.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ 'use strict'; function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } @@ -30282,9 +38359,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, '__esModule', { value: true }); - var AbortSignal = function (_eventTargetShim$Even) { + /** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ + var AbortSignal = /*#__PURE__*/function (_eventTargetShim$Even) { _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AbortSignal, _eventTargetShim$Even); var _super = _createSuper(AbortSignal); + /** + * AbortSignal cannot be constructed directly. + */ function AbortSignal() { var _this; _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AbortSignal); @@ -30292,13 +38376,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new TypeError("AbortSignal cannot be constructed directly"); return _this; } + /** + * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. + */ _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AbortSignal, [{ key: "aborted", - get: - function get() { + get: function get() { var aborted = abortedFlags.get(this); if (typeof aborted !== "boolean") { - throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + (this === null ? "null" : typeof this)); + throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); } return aborted; } @@ -30306,12 +38392,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return AbortSignal; }(_$$_REQUIRE(_dependencyMap[5], "event-target-shim").EventTarget); _$$_REQUIRE(_dependencyMap[5], "event-target-shim").defineEventAttribute(AbortSignal.prototype, "abort"); + /** + * Create an AbortSignal object. + */ function createAbortSignal() { var signal = Object.create(AbortSignal.prototype); _$$_REQUIRE(_dependencyMap[5], "event-target-shim").EventTarget.call(signal); abortedFlags.set(signal, false); return signal; } + /** + * Abort a given signal. + */ function abortSignal(signal) { if (abortedFlags.get(signal) !== false) { return; @@ -30321,12 +38413,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e type: "abort" }); } + /** + * Aborted flag for each instances. + */ var abortedFlags = new WeakMap(); + // Properties should be enumerable. Object.defineProperties(AbortSignal.prototype, { aborted: { enumerable: true } }); + // `toString()` should return `"[object AbortSignal]"` if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { configurable: true, @@ -30334,34 +38431,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - var AbortController = function () { + /** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ + var AbortController = /*#__PURE__*/function () { + /** + * Initialize this controller. + */ function AbortController() { _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AbortController); signals.set(this, createAbortSignal()); } + /** + * Returns the `AbortSignal` object associated with this object. + */ _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AbortController, [{ key: "signal", - get: - function get() { + get: function get() { return getSignal(this); } + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ }, { key: "abort", - value: - function abort() { + value: function abort() { abortSignal(getSignal(this)); } }]); return AbortController; }(); + /** + * Associated signals. + */ var signals = new WeakMap(); + /** + * Get the associated signal of a given controller. + */ function getSignal(controller) { var signal = signals.get(controller); if (signal == null) { - throw new TypeError("Expected 'this' to be an 'AbortController' object, but got " + (controller === null ? "null" : typeof controller)); + throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); } return signal; } + // Properties should be enumerable. Object.defineProperties(AbortController.prototype, { signal: { enumerable: true @@ -30382,23 +38497,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e module.exports = AbortController; module.exports.AbortController = module.exports["default"] = AbortController; module.exports.AbortSignal = AbortSignal; -},141,[46,47,50,12,13,121],"node_modules/abort-controller/dist/abort-controller.js"); +},158,[53,51,49,12,13,137],"node_modules/abort-controller/dist/abort-controller.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Set up alert(). + * You can use this module directly, or just require InitializeCore. + */ if (!global.alert) { global.alert = function (text) { + // Require Alert on demand. Requiring it too early can lead to issues + // with things like Platform not being fully initialized. _$$_REQUIRE(_dependencyMap[0], "../Alert/Alert").alert('Alert', '' + text); }; } -},142,[143],"node_modules/react-native/Libraries/Core/setUpAlert.js"); +},159,[160],"node_modules/react-native/Libraries/Core/setUpAlert.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); var _RCTAlertManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./RCTAlertManager")); - var Alert = function () { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * Launches an alert dialog with the specified title and message. + * + * See https://reactnative.dev/docs/alert + */ + var Alert = /*#__PURE__*/function () { function Alert() { (0, _classCallCheck2.default)(this, Alert); } @@ -30421,6 +38565,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (options && options.cancelable) { config.cancelable = options.cancelable; } + // At most three buttons (neutral, negative, positive). Ignore rest. + // The text 'OK' should be probably localized. iOS Alert does that in native. var defaultPositiveText = 'OK'; var validButtons = buttons ? buttons.slice(0, 3) : [{ text: defaultPositiveText @@ -30438,6 +38584,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e config.buttonPositive = buttonPositive.text || defaultPositiveText; } + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by + * Flow's LTI update could not be added via codemod */ var onAction = function onAction(action, buttonKey) { if (action === constants.buttonClicked) { if (buttonKey === constants.buttonNeutral) { @@ -30469,6 +38617,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var buttons = []; var cancelButtonKey; var destructiveButtonKey; + var preferredButtonKey; if (typeof callbackOrButtons === 'function') { callbacks = [callbackOrButtons]; } else if (Array.isArray(callbackOrButtons)) { @@ -30479,6 +38628,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (btn.style === 'destructive') { destructiveButtonKey = String(index); } + if (btn.isPreferred) { + preferredButtonKey = String(index); + } if (btn.text || index < (callbackOrButtons || []).length - 1) { var btnDef = {}; btnDef[index] = btn.text || ''; @@ -30494,6 +38646,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e defaultValue: defaultValue, cancelButtonKey: cancelButtonKey, destructiveButtonKey: destructiveButtonKey, + preferredButtonKey: preferredButtonKey, keyboardType: keyboardType, userInterfaceStyle: (options == null ? void 0 : options.userInterfaceStyle) || undefined }, function (id, value) { @@ -30506,9 +38659,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Alert; }(); module.exports = Alert; -},143,[3,12,13,14,144,146],"node_modules/react-native/Libraries/Alert/Alert.js"); +},160,[3,12,13,17,161,163],"node_modules/react-native/Libraries/Alert/Alert.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _NativeAlertManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAlertManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ module.exports = { alertWithArgs: function alertWithArgs(args, callback) { @@ -30518,7 +38680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NativeAlertManager.default.alertWithArgs(args, callback); } }; -},144,[3,145],"node_modules/react-native/Libraries/Alert/RCTAlertManager.ios.js"); +},161,[3,162],"node_modules/react-native/Libraries/Alert/RCTAlertManager.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30527,9 +38689,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('AlertManager'); exports.default = _default; -},145,[16],"node_modules/react-native/Libraries/Alert/NativeAlertManager.js"); +},162,[19],"node_modules/react-native/Libraries/Alert/NativeAlertManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30538,23 +38709,60 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /* 'buttonClicked' | 'dismissed' */ + /* + buttonPositive = -1, + buttonNegative = -2, + buttonNeutral = -3 + */ var _default = TurboModuleRegistry.get('DialogManagerAndroid'); exports.default = _default; -},146,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js"); +},163,[19],"node_modules/react-native/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; var navigator = global.navigator; if (navigator === undefined) { - global.navigator = navigator = {}; + // $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it. + global.navigator = { + product: 'ReactNative' + }; + } else { + // see https://github.com/facebook/react-native/issues/10881 + _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillObjectProperty(navigator, 'product', function () { + return 'ReactNative'; + }); } - - _$$_REQUIRE(_dependencyMap[0], "../Utilities/PolyfillFunctions").polyfillObjectProperty(navigator, 'product', function () { - return 'ReactNative'; - }); -},147,[99],"node_modules/react-native/Libraries/Core/setUpNavigator.js"); +},164,[115],"node_modules/react-native/Libraries/Core/setUpNavigator.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -30564,6 +38772,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge"); registerModule = function registerModule(moduleName, + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by + * Flow's LTI update could not be added via codemod */ factory) { return BatchedBridge.registerLazyCallableModule(moduleName, factory); }; @@ -30594,21 +38804,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e registerModule('GlobalPerformanceLogger', function () { return _$$_REQUIRE(_dependencyMap[8], "../Utilities/GlobalPerformanceLogger"); }); - registerModule('JSDevSupportModule', function () { - return _$$_REQUIRE(_dependencyMap[9], "../Utilities/JSDevSupportModule"); - }); - if (__DEV__ && !global.__RCTProfileIsProfiling) { + if (__DEV__) { registerModule('HMRClient', function () { - return _$$_REQUIRE(_dependencyMap[10], "../Utilities/HMRClient"); + return _$$_REQUIRE(_dependencyMap[9], "../Utilities/HMRClient"); }); } else { registerModule('HMRClient', function () { - return _$$_REQUIRE(_dependencyMap[11], "../Utilities/HMRClientProdShim"); + return _$$_REQUIRE(_dependencyMap[10], "../Utilities/HMRClientProdShim"); }); } -},148,[23,28,109,149,151,60,4,153,122,154,156,171],"node_modules/react-native/Libraries/Core/setUpBatchedBridge.js"); +},165,[26,31,125,166,168,76,4,170,138,171,186],"node_modules/react-native/Libraries/Core/setUpBatchedBridge.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _NativeJSCHeapCapture = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeJSCHeapCapture")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var HeapCapture = { captureHeap: function captureHeap(path) { @@ -30626,7 +38842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = HeapCapture; -},149,[3,150],"node_modules/react-native/Libraries/HeapCapture/HeapCapture.js"); +},166,[3,167],"node_modules/react-native/Libraries/HeapCapture/HeapCapture.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30635,10 +38851,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('JSCHeapCapture'); exports.default = _default; -},150,[16],"node_modules/react-native/Libraries/HeapCapture/NativeJSCHeapCapture.js"); +},167,[19],"node_modules/react-native/Libraries/HeapCapture/NativeJSCHeapCapture.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; @@ -30664,7 +38898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = SamplingProfiler; -},151,[152],"node_modules/react-native/Libraries/Performance/SamplingProfiler.js"); +},168,[169],"node_modules/react-native/Libraries/Performance/SamplingProfiler.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30673,71 +38907,81 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('JSCSamplingProfiler'); exports.default = _default; -},152,[16],"node_modules/react-native/Libraries/Performance/NativeJSCSamplingProfiler.js"); +},169,[19],"node_modules/react-native/Libraries/Performance/NativeJSCSamplingProfiler.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./RCTDeviceEventEmitter")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * Deprecated - subclass NativeEventEmitter to create granular event modules instead of + * adding all event listeners directly to RCTNativeAppEventEmitter. + */ var RCTNativeAppEventEmitter = _RCTDeviceEventEmitter.default; module.exports = RCTNativeAppEventEmitter; -},153,[3,4],"node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeJSDevSupport = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeJSDevSupport")); - var JSDevSupportModule = { - getJSHierarchy: function getJSHierarchy(tag) { - if (_NativeJSDevSupport.default) { - var constants = _NativeJSDevSupport.default.getConstants(); - try { - var computeComponentStackForErrorReporting = _$$_REQUIRE(_dependencyMap[2], "../Renderer/shims/ReactNative").__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.computeComponentStackForErrorReporting; - var componentStack = computeComponentStackForErrorReporting(tag); - if (!componentStack) { - _NativeJSDevSupport.default.onFailure(constants.ERROR_CODE_VIEW_NOT_FOUND, "Component stack doesn't exist for tag " + tag); - } else { - _NativeJSDevSupport.default.onSuccess(componentStack); - } - } catch (e) { - _NativeJSDevSupport.default.onFailure(constants.ERROR_CODE_EXCEPTION, e.message); - } - } - } - }; - module.exports = JSDevSupportModule; -},154,[3,155,34],"node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('JSDevSupport'); - exports.default = _default; -},155,[16],"node_modules/react-native/Libraries/Utilities/NativeJSDevSupport.js"); +},170,[3,4],"node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); var _getDevServer2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Core/Devtools/getDevServer")); - var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../NativeModules/specs/NativeRedBox")); - var _LogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../LogBox/LogBox")); + var _LogBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../LogBox/LogBox")); + var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../NativeModules/specs/NativeRedBox")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var pendingEntryPoints = []; var hmrClient = null; var hmrUnavailableReason = null; var currentCompileErrorMessage = null; var didConnect = false; var pendingLogs = []; + /** + * HMR Client that receives from the server HMR updates and propagates them + * runtime to reflects those changes. + */ var HMRClient = { enable: function enable() { if (hmrUnavailableReason !== null) { + // If HMR became unavailable while you weren't using it, + // explain why when you try to turn it on. + // This is an error (and not a warning) because it is shown + // in response to a direct user action. throw new Error(hmrUnavailableReason); } _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); var LoadingView = _$$_REQUIRE(_dependencyMap[6], "./LoadingView"); + // We use this for internal logging only. + // It doesn't affect the logic. hmrClient.send(JSON.stringify({ type: 'log-opt-in' })); + // When toggling Fast Refresh on, we might already have some stashed updates. + // Since they'll get applied now, we'll show a banner. var hasUpdates = hmrClient.hasPendingUpdates(); if (hasUpdates) { LoadingView.showMessage('Refreshing...', 'refresh'); @@ -30750,6 +38994,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // There could be a compile error while Fast Refresh was off, + // but we ignored it at the time. Show it now. showCompileError(); }, disable: function disable() { @@ -30763,6 +39009,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, log: function log(level, data) { if (!hmrClient) { + // Catch a reasonable number of early logs + // in case hmrClient gets initialized later. pendingLogs.push([level, data]); if (pendingLogs.length > 100) { pendingLogs.shift(); @@ -30785,8 +39033,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) })); } catch (error) { + // If sending logs causes any failures we want to silently ignore them + // to ensure we do not cause infinite-logging loops. } }, + // Called once by the bridge on startup, even if Fast Refresh is off. + // It creates the HMR client but doesn't actually set up the socket yet. setup: function setup(platform, bundleEntry, host, port, isEnabled) { var scheme = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'http'; _$$_REQUIRE(_dependencyMap[5], "invariant")(platform, 'Missing required parameter `platform`'); @@ -30794,22 +39046,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[5], "invariant")(host, 'Missing required parameter `host`'); _$$_REQUIRE(_dependencyMap[5], "invariant")(!hmrClient, 'Cannot initialize hmrClient twice'); + // Moving to top gives errors due to NativeModules not being initialized var LoadingView = _$$_REQUIRE(_dependencyMap[6], "./LoadingView"); - var serverHost = port !== null && port !== '' ? host + ":" + port : host; + var serverHost = port !== null && port !== '' ? `${host}:${port}` : host; var serverScheme = scheme; - var client = new (_$$_REQUIRE(_dependencyMap[8], "metro-runtime/src/modules/HMRClient"))(serverScheme + "://" + serverHost + "/hot"); + var client = new (_$$_REQUIRE(_dependencyMap[8], "metro-runtime/src/modules/HMRClient"))(`${serverScheme}://${serverHost}/hot`); hmrClient = client; var _getDevServer = (0, _getDevServer2.default)(), fullBundleUrl = _getDevServer.fullBundleUrl; - pendingEntryPoints.push(fullBundleUrl != null ? fullBundleUrl : serverScheme + "://" + serverHost + "/hot?bundleEntry=" + bundleEntry + "&platform=" + platform); + pendingEntryPoints.push( // HMRServer understands regular bundle URLs, so prefer that in case + // there are any important URL parameters we can't reconstruct from + // `setup()`'s arguments. + fullBundleUrl != null ? fullBundleUrl : `${serverScheme}://${serverHost}/hot?bundleEntry=${bundleEntry}&platform=${platform}`); client.on('connection-error', function (e) { - var error = "Cannot connect to Metro.\n\nTry the following to fix the issue:\n- Ensure that Metro is running and available on the same network"; + var error = `Cannot connect to Metro. + +Try the following to fix the issue: +- Ensure that Metro is running and available on the same network`; if ("ios" === 'ios') { - error += "\n- Ensure that the Metro URL is correctly set in AppDelegate"; + error += ` +- Ensure that the Metro URL is correctly set in AppDelegate`; } else { - error += "\n- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device\n- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081"; + error += ` +- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices +- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device +- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081`; } - error += "\n\nURL: " + host + ":" + port + "\n\nError: " + e.message; + error += ` + +URL: ${host}:${port} + +Error: ${e.message}`; setHMRUnavailableReason(error); }); client.on('update-start', function (_ref) { @@ -30839,15 +39106,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e client.close(); setHMRUnavailableReason('Metro and the client are out of sync. Reload to reconnect.'); } else { - currentCompileErrorMessage = data.type + " " + data.message; + currentCompileErrorMessage = `${data.type} ${data.message}`; if (client.isEnabled()) { showCompileError(); } } }); - client.on('close', function (data) { + client.on('close', function (closeEvent) { LoadingView.hide(); - setHMRUnavailableReason('Disconnected from Metro.'); + + // https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1 + // https://www.rfc-editor.org/rfc/rfc6455.html#section-7.1.5 + var isNormalOrUnsetCloseReason = closeEvent == null || closeEvent.code === 1000 || closeEvent.code === 1005 || closeEvent.code == null; + setHMRUnavailableReason(`${isNormalOrUnsetCloseReason ? 'Disconnected from Metro.' : `Disconnected from Metro (${closeEvent.code}: "${closeEvent.reason}").`} + +To reconnect: +- Ensure that Metro is running and available on the same network +- Reload this app (will trigger further help if Metro cannot be connected to) + `); }); if (isEnabled) { HMRClient.enable(); @@ -30861,12 +39137,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function setHMRUnavailableReason(reason) { _$$_REQUIRE(_dependencyMap[5], "invariant")(hmrClient, 'Expected HMRClient.setup() call at startup.'); if (hmrUnavailableReason !== null) { + // Don't show more than one warning. return; } hmrUnavailableReason = reason; + // We only want to show a warning if Fast Refresh is on *and* if we ever + // previously managed to connect successfully. We don't want to show + // the warning to native engineers who use cached bundles without Metro. if (hmrClient.isEnabled() && didConnect) { console.warn(reason); + // (Not using the `warning` module to prevent a Buck cycle.) } } @@ -30908,16 +39189,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } + // Even if there is already a redbox, syntax errors are more important. + // Otherwise you risk seeing a stale runtime error while a syntax error is more recent. dismissRedbox(); var message = currentCompileErrorMessage; currentCompileErrorMessage = null; + /* $FlowFixMe[class-object-subtyping] added when improving typing for this + * parameters */ var error = new Error(message); + // Symbolicating compile errors is wasted effort + // because the stack trace is meaningless: error.preventSymbolication = true; throw error; } module.exports = HMRClient; -},156,[3,19,66,157,59,17,158,79,167,169,76],"node_modules/react-native/Libraries/Utilities/HMRClient.js"); +},171,[3,22,83,75,172,20,173,95,182,184,92],"node_modules/react-native/Libraries/Utilities/HMRClient.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -30926,13 +39213,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('RedBox'); exports.default = _default; -},157,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeRedBox.js"); +},172,[19],"node_modules/react-native/Libraries/NativeModules/specs/NativeRedBox.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../StyleSheet/processColor")); - var _NativeDevLoadingView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeDevLoadingView")); - var _Appearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./Appearance")); + var _Appearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./Appearance")); + var _NativeDevLoadingView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeDevLoadingView")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ module.exports = { showMessage: function showMessage(message, type) { @@ -30959,11 +39264,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NativeDevLoadingView.default && _NativeDevLoadingView.default.hide(); } }; -},158,[3,159,163,164],"node_modules/react-native/Libraries/Utilities/LoadingView.ios.js"); +},173,[3,174,178,181],"node_modules/react-native/Libraries/Utilities/LoadingView.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /* eslint no-bitwise: 0 */ function processColor(color) { if (color === undefined || color === null) { return color; @@ -30983,16 +39302,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } + // Converts 0xrrggbbaa into 0xaarrggbb normalizedColor = (normalizedColor << 24 | normalizedColor >>> 8) >>> 0; if ("ios" === 'android') { + // Android use 32 bit *signed* integer to represent the color + // We utilize the fact that bitwise operations in JS also operates on + // signed 32 bit integers, so that we can use those to convert from + // *unsigned* to *signed* 32bit int that way. normalizedColor = normalizedColor | 0x0; } return normalizedColor; } - module.exports = processColor; -},159,[160,162],"node_modules/react-native/Libraries/StyleSheet/processColor.js"); + var _default = processColor; + exports.default = _default; +},174,[175,177],"node_modules/react-native/Libraries/StyleSheet/processColor.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _normalizeColor2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@react-native/normalize-color")); + var _normalizeColors = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@react-native/normalize-colors")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /* eslint no-bitwise: 0 */ function normalizeColor(color) { if (typeof color === 'object' && color != null) { @@ -31004,12 +39340,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } if (typeof color === 'string' || typeof color === 'number') { - return (0, _normalizeColor2.default)(color); + return (0, _normalizeColors.default)(color); } } module.exports = normalizeColor; -},160,[3,161,162],"node_modules/react-native/Libraries/StyleSheet/normalizeColor.js"); +},175,[3,176,177],"node_modules/react-native/Libraries/StyleSheet/normalizeColor.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /* eslint no-bitwise: 0 */ 'use strict'; @@ -31026,6 +39373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var matchers = getMatchers(); var match; + // Ordered based on occurrences on Facebook codebase if (match = matchers.hex6.exec(color)) { return parseInt(match[1] + 'ff', 16) >>> 0; } @@ -31035,46 +39383,108 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (match = matchers.rgb.exec(color)) { return (parse255(match[1]) << 24 | + // r parse255(match[2]) << 16 | + // g parse255(match[3]) << 8 | + // b 0x000000ff) >>> + // a 0; } if (match = matchers.rgba.exec(color)) { - return (parse255(match[1]) << 24 | - parse255(match[2]) << 16 | - parse255(match[3]) << 8 | - parse1(match[4])) >>> + // rgba(R G B / A) notation + if (match[6] !== undefined) { + return (parse255(match[6]) << 24 | + // r + parse255(match[7]) << 16 | + // g + parse255(match[8]) << 8 | + // b + parse1(match[9])) >>> + // a + 0; + } + + // rgba(R, G, B, A) notation + return (parse255(match[2]) << 24 | + // r + parse255(match[3]) << 16 | + // g + parse255(match[4]) << 8 | + // b + parse1(match[5])) >>> + // a 0; } if (match = matchers.hex3.exec(color)) { return parseInt(match[1] + match[1] + + // r match[2] + match[2] + + // g match[3] + match[3] + + // b 'ff', + // a 16) >>> 0; } + // https://drafts.csswg.org/css-color-4/#hex-notation if (match = matchers.hex8.exec(color)) { return parseInt(match[1], 16) >>> 0; } if (match = matchers.hex4.exec(color)) { return parseInt(match[1] + match[1] + + // r match[2] + match[2] + + // g match[3] + match[3] + + // b match[4] + match[4], + // a 16) >>> 0; } if (match = matchers.hsl.exec(color)) { return (hslToRgb(parse360(match[1]), + // h parsePercentage(match[2]), - parsePercentage(match[3])) | 0x000000ff) >>> + // s + parsePercentage(match[3]) // l + ) | 0x000000ff) >>> + // a 0; } if (match = matchers.hsla.exec(color)) { - return (hslToRgb(parse360(match[1]), + // hsla(H S L / A) notation + if (match[6] !== undefined) { + return (hslToRgb(parse360(match[6]), + // h + parsePercentage(match[7]), + // s + parsePercentage(match[8]) // l + ) | parse1(match[9])) >>> + // a + 0; + } + + // hsla(H, S, L, A) notation + return (hslToRgb(parse360(match[2]), + // h + parsePercentage(match[3]), + // s + parsePercentage(match[4]) // l + ) | parse1(match[5])) >>> + // a + 0; + } + if (match = matchers.hwb.exec(color)) { + return (hwbToRgb(parse360(match[1]), + // h parsePercentage(match[2]), - parsePercentage(match[3])) | parse1(match[4])) >>> + // w + parsePercentage(match[3]) // b + ) | 0x000000ff) >>> + // a 0; } return null; @@ -31105,12 +39515,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var b = hue2rgb(p, q, h - 1 / 3); return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; } + function hwbToRgb(h, w, b) { + if (w + b >= 1) { + var gray = Math.round(w * 255 / (w + b)); + return gray << 24 | gray << 16 | gray << 8; + } + var red = hue2rgb(0, 1, h + 1 / 3) * (1 - w - b) + w; + var green = hue2rgb(0, 1, h) * (1 - w - b) + w; + var blue = hue2rgb(0, 1, h - 1 / 3) * (1 - w - b) + w; + return Math.round(red * 255) << 24 | Math.round(green * 255) << 16 | Math.round(blue * 255) << 8; + } var NUMBER = '[-+]?\\d*\\.?\\d+'; var PERCENTAGE = NUMBER + '%'; function call() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } + return '\\(\\s*(' + args.join(')\\s*,?\\s*(') + ')\\s*\\)'; + } + function callWithSlashSeparator() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + return '\\(\\s*(' + args.slice(0, args.length - 1).join(')\\s*,?\\s*(') + ')\\s*/\\s*(' + args[args.length - 1] + ')\\s*\\)'; + } + function commaSeparatedCall() { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; } var cachedMatchers; @@ -31118,9 +39550,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (cachedMatchers === undefined) { cachedMatchers = { rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), - rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)), + rgba: new RegExp('rgba(' + commaSeparatedCall(NUMBER, NUMBER, NUMBER, NUMBER) + '|' + callWithSlashSeparator(NUMBER, NUMBER, NUMBER, NUMBER) + ')'), hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), - hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)), + hsla: new RegExp('hsla(' + commaSeparatedCall(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + '|' + callWithSlashSeparator(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + ')'), + hwb: new RegExp('hwb' + call(NUMBER, PERCENTAGE, PERCENTAGE)), hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#([0-9a-fA-F]{6})$/, @@ -31154,6 +39587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Math.round(num * 255); } function parsePercentage(str) { + // parseFloat conveniently ignores the final % var int = parseFloat(str); if (int < 0) { return 0; @@ -31164,9 +39598,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return int / 100; } function normalizeKeyword(name) { + // prettier-ignore switch (name) { case 'transparent': return 0x00000000; + // http://www.w3.org/TR/css3-color/#svg-color case 'aliceblue': return 0xf0f8ffff; case 'antiquewhite': @@ -31469,12 +39905,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } module.exports = normalizeColor; -},161,[],"node_modules/@react-native/normalize-color/index.js"); +},176,[],"node_modules/@react-native/normalize-colors/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.processColorObject = exports.normalizeColorObject = exports.PlatformColor = exports.DynamicColorIOSPrivate = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var PlatformColor = function PlatformColor() { for (var _len = arguments.length, names = new Array(_len), _key = 0; _key < _len; _key++) { @@ -31498,16 +39943,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DynamicColorIOSPrivate = DynamicColorIOSPrivate; var normalizeColorObject = function normalizeColorObject(color) { if ('semantic' in color) { + // an ios semantic color return color; } else if ('dynamic' in color && color.dynamic !== undefined) { var normalizeColor = _$$_REQUIRE(_dependencyMap[0], "./normalizeColor"); + // a dynamic, appearance aware color var dynamic = color.dynamic; var dynamicColor = { dynamic: { + // $FlowFixMe[incompatible-use] light: normalizeColor(dynamic.light), + // $FlowFixMe[incompatible-use] dark: normalizeColor(dynamic.dark), + // $FlowFixMe[incompatible-use] highContrastLight: normalizeColor(dynamic.highContrastLight), + // $FlowFixMe[incompatible-use] highContrastDark: normalizeColor(dynamic.highContrastDark) } }; @@ -31518,13 +39969,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.normalizeColorObject = normalizeColorObject; var processColorObject = function processColorObject(color) { if ('dynamic' in color && color.dynamic != null) { - var processColor = _$$_REQUIRE(_dependencyMap[1], "./processColor"); + var processColor = _$$_REQUIRE(_dependencyMap[1], "./processColor").default; var dynamic = color.dynamic; var dynamicColor = { dynamic: { + // $FlowFixMe[incompatible-use] light: processColor(dynamic.light), + // $FlowFixMe[incompatible-use] dark: processColor(dynamic.dark), + // $FlowFixMe[incompatible-use] highContrastLight: processColor(dynamic.highContrastLight), + // $FlowFixMe[incompatible-use] highContrastDark: processColor(dynamic.highContrastDark) } }; @@ -31533,28 +39988,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return color; }; exports.processColorObject = processColorObject; -},162,[160,159],"node_modules/react-native/Libraries/StyleSheet/PlatformColorValueTypes.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('DevLoadingView'); - exports.default = _default; -},163,[16],"node_modules/react-native/Libraries/Utilities/NativeDevLoadingView.js"); +},177,[175,174],"node_modules/react-native/Libraries/StyleSheet/PlatformColorValueTypes.ios.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../EventEmitter/NativeEventEmitter")); - var _NativeAppearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAppearance")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/Platform")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../vendor/emitter/EventEmitter")); + var _NativeAppearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeAppearance")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var eventEmitter = new _EventEmitter.default(); if (_NativeAppearance.default) { var nativeEventEmitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior _Platform.default.OS !== 'ios' ? null : _NativeAppearance.default); nativeEventEmitter.addListener('appearanceChanged', function (newAppearance) { var colorScheme = newAppearance.colorScheme; @@ -31565,22 +40020,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } module.exports = { + /** + * Note: Although color scheme is available immediately, it may change at any + * time. Any rendering logic or styles that depend on this should try to call + * this function on every render, rather than caching the value (for example, + * using inline styles rather than setting a value in a `StyleSheet`). + * + * Example: `const colorScheme = Appearance.getColorScheme();` + * + * @returns {?ColorSchemeName} Value for the color scheme preference. + */ getColorScheme: function getColorScheme() { if (__DEV__) { if (_$$_REQUIRE(_dependencyMap[6], "./DebugEnvironment").isAsyncDebugging) { + // Hard code light theme when using the async debugger as + // sync calls aren't supported return 'light'; } } + // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union var nativeColorScheme = _NativeAppearance.default == null ? null : _NativeAppearance.default.getColorScheme() || null; (0, _invariant.default)(nativeColorScheme === 'dark' || nativeColorScheme === 'light' || nativeColorScheme == null, "Unrecognized color scheme. Did you mean 'dark' or 'light'?"); return nativeColorScheme; }, + setColorScheme: function setColorScheme(colorScheme) { + var nativeColorScheme = colorScheme == null ? 'unspecified' : colorScheme; + (0, _invariant.default)(colorScheme === 'dark' || colorScheme === 'light' || colorScheme == null, "Unrecognized color scheme. Did you mean 'dark', 'light' or null?"); + if (_NativeAppearance.default != null && _NativeAppearance.default.setColorScheme != null) { + _NativeAppearance.default.setColorScheme(nativeColorScheme); + } + }, + /** + * Add an event handler that is fired when appearance preferences change. + */ addChangeListener: function addChangeListener(listener) { return eventEmitter.addListener('change', listener); } }; -},164,[3,5,134,165,17,14,166],"node_modules/react-native/Libraries/Utilities/Appearance.js"); +},178,[3,151,17,5,179,20,180],"node_modules/react-native/Libraries/Utilities/Appearance.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -31589,22 +40067,72 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.get('Appearance'); exports.default = _default; -},165,[16],"node_modules/react-native/Libraries/Utilities/NativeAppearance.js"); +},179,[19],"node_modules/react-native/Libraries/Utilities/NativeAppearance.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.isAsyncDebugging = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ var isAsyncDebugging = false; exports.isAsyncDebugging = isAsyncDebugging; if (__DEV__) { + // These native interfaces don't exist in asynchronous debugging environments. exports.isAsyncDebugging = isAsyncDebugging = !global.nativeExtensions && !global.nativeCallSyncHook && !global.RN$Bridgeless; } -},166,[],"node_modules/react-native/Libraries/Utilities/DebugEnvironment.js"); +},180,[],"node_modules/react-native/Libraries/Utilities/DebugEnvironment.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('DevLoadingView'); + exports.default = _default; +},181,[19],"node_modules/react-native/Libraries/Utilities/NativeDevLoadingView.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + * @oncall react_native + */ + "use strict"; function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } @@ -31614,9 +40142,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e id = _ref$module[0], code = _ref$module[1], sourceURL = _ref.sourceURL; + // Some engines do not support `sourceURL` as a comment. We expose a + // `globalEvalWithSourceUrl` function to handle updates in that case. if (global.globalEvalWithSourceUrl) { global.globalEvalWithSourceUrl(code, sourceURL); } else { + // eslint-disable-next-line no-eval eval(code); } }; @@ -31624,18 +40155,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e update.added.forEach(inject); update.modified.forEach(inject); }; - var HMRClient = function (_EventEmitter) { + var HMRClient = /*#__PURE__*/function (_EventEmitter) { _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(HMRClient, _EventEmitter); var _super = _createSuper(HMRClient); function HMRClient(url) { var _this; _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, HMRClient); _this = _super.call(this); + + // Access the global WebSocket object only after enabling the client, + // since some polyfills do the initialization lazily. _this._isEnabled = false; _this._pendingUpdate = null; _this._queue = []; _this._state = "opening"; - _this._ws = new global.WebSocket(url); _this._ws.onopen = function () { _this._state = "open"; @@ -31645,9 +40178,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this._ws.onerror = function (error) { _this.emit("connection-error", error); }; - _this._ws.onclose = function () { + _this._ws.onclose = function (closeEvent) { _this._state = "closed"; - _this.emit("close"); + _this.emit("close", closeEvent); }; _this._ws.onmessage = function (message) { var data = JSON.parse(String(message.data)); @@ -31701,6 +40234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._ws.send(message); break; case "closed": + // Ignore. break; default: throw new Error("[WebSocketHMRClient] Unknown state: " + this._state); @@ -31748,6 +40282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var deletedIDs = new Set(); var moduleMap = new Map(); + // Fill in the temporary maps and sets from both updates in their order. applyUpdateLocally(base); applyUpdateLocally(next); function applyUpdateLocally(update) { @@ -31774,6 +40309,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + // Now reconstruct a unified update from our in-memory maps and sets. + // Applying it should be equivalent to applying both of them individually. var result = { isInitialUpdate: next.isInitialUpdate, revisionId: next.revisionId, @@ -31797,28 +40334,84 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; } module.exports = HMRClient; -},167,[46,47,19,50,12,13,168],"node_modules/metro-runtime/src/modules/HMRClient.js"); +},182,[53,51,22,49,12,13,183],"node_modules/metro-runtime/src/modules/HMRClient.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @noformat + */ + + /* + * The MIT License (MIT) + * + * Copyright (c) 2014 Arnout Kazemier + * + * This is a vendored file based on EventEmitter3: https://github.com/primus/eventemitter3 + */ + + /* eslint-disable */ "use strict"; var has = Object.prototype.hasOwnProperty, prefix = "~"; + /** + * Constructor to create a storage for our `EE` objects. + * An `Events` instance is a plain object whose properties are event names. + * + * @constructor + * @private + */ function Events() {} + // + // We try to not inherit from `Object.prototype`. In some engines creating an + // instance in this way is faster than calling `Object.create(null)` directly. + // If `Object.create(null)` is not supported we prefix the event names with a + // character to make sure that the built-in object properties are not + // overridden or used as an attack vector. + // if (Object.create) { Events.prototype = Object.create(null); + // + // This hack is needed because the `__proto__` property is still inherited in + // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5. + // if (!new Events().__proto__) prefix = false; } + /** + * Representation of a single event listener. + * + * @param {Function} fn The listener function. + * @param {*} context The context to invoke the listener with. + * @param {Boolean} [once=false] Specify if the listener is a one-time listener. + * @constructor + * @private + */ function EE(fn, context, once) { this.fn = fn; this.context = context; this.once = once || false; } + /** + * Add a listener for a given event. + * + * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. + * @param {(String|Symbol)} event The event name. + * @param {Function} fn The listener function. + * @param {*} context The context to invoke the listener with. + * @param {Boolean} once Specify if the listener is a one-time listener. + * @returns {EventEmitter} + * @private + */ function addListener(emitter, event, fn, context, once) { if (typeof fn !== "function") { throw new TypeError("The listener must be a function"); @@ -31829,15 +40422,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return emitter; } + /** + * Clear event by name. + * + * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. + * @param {(String|Symbol)} evt The Event name. + * @private + */ function clearEvent(emitter, evt) { if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; } + /** + * Minimal `EventEmitter` interface that is molded against the Node.js + * `EventEmitter` interface. + * + * @constructor + * @public + */ function EventEmitter() { this._events = new Events(); this._eventsCount = 0; } + /** + * Return an array listing the events for which the emitter has registered + * listeners. + * + * @returns {Array} + * @public + */ EventEmitter.prototype.eventNames = function eventNames() { var names = [], events, @@ -31852,6 +40466,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return names; }; + /** + * Return the listeners registered for a given event. + * + * @param {(String|Symbol)} event The event name. + * @returns {Array} The registered listeners. + * @public + */ EventEmitter.prototype.listeners = function listeners(event) { var evt = prefix ? prefix + event : event, handlers = this._events[evt]; @@ -31863,6 +40484,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ee; }; + /** + * Return the number of listeners listening to a given event. + * + * @param {(String|Symbol)} event The event name. + * @returns {Number} The number of listeners. + * @public + */ EventEmitter.prototype.listenerCount = function listenerCount(event) { var evt = prefix ? prefix + event : event, listeners = this._events[evt]; @@ -31871,6 +40499,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return listeners.length; }; + /** + * Calls each of the listeners registered for a given event. + * + * @param {(String|Symbol)} event The event name. + * @returns {Boolean} `true` if the event had listeners, else `false`. + * @public + */ EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { var evt = prefix ? prefix + event : event; if (!this._events[evt]) return false; @@ -31927,14 +40562,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; }; + /** + * Add a listener for a given event. + * + * @param {(String|Symbol)} event The event name. + * @param {Function} fn The listener function. + * @param {*} [context=this] The context to invoke the listener with. + * @returns {EventEmitter} `this`. + * @public + */ EventEmitter.prototype.on = function on(event, fn, context) { return addListener(this, event, fn, context, false); }; + /** + * Add a one-time listener for a given event. + * + * @param {(String|Symbol)} event The event name. + * @param {Function} fn The listener function. + * @param {*} [context=this] The context to invoke the listener with. + * @returns {EventEmitter} `this`. + * @public + */ EventEmitter.prototype.once = function once(event, fn, context) { return addListener(this, event, fn, context, true); }; + /** + * Remove the listeners of a given event. + * + * @param {(String|Symbol)} event The event name. + * @param {Function} fn Only remove the listeners that match this function. + * @param {*} context Only remove the listeners that have this context. + * @param {Boolean} once Only remove one-time listeners. + * @returns {EventEmitter} `this`. + * @public + */ EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { var evt = prefix ? prefix + event : event; if (!this._events[evt]) return this; @@ -31954,11 +40617,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // + // Reset the array, or remove it completely if we have no more listeners. + // if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); } return this; }; + /** + * Remove all listeners, or those of the specified event. + * + * @param {(String|Symbol)} [event] The event name. + * @returns {EventEmitter} `this`. + * @public + */ EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { var evt; if (event) { @@ -31971,21 +40644,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this; }; + // + // Alias methods names because people roll like that. + // EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.addListener = EventEmitter.prototype.on; + // + // Expose the prefix. + // EventEmitter.prefixed = prefix; + // + // Allow `EventEmitter` to be imported as module namespace. + // EventEmitter.EventEmitter = EventEmitter; + // + // Expose the module. + // if ("undefined" !== typeof module) { module.exports = EventEmitter; } -},168,[],"node_modules/metro-runtime/src/modules/vendor/eventemitter3.js"); +},183,[],"node_modules/metro-runtime/src/modules/vendor/eventemitter3.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeDevSettings = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../NativeModules/specs/NativeDevSettings")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../EventEmitter/NativeEventEmitter")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); + var _NativeDevSettings = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../NativeModules/specs/NativeDevSettings")); var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var DevSettings = { addMenuItem: function addMenuItem(title, handler) {}, @@ -31994,10 +40688,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; if (__DEV__) { var emitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior _Platform.default.OS !== 'ios' ? null : _NativeDevSettings.default); var subscriptions = new Map(); DevSettings = { addMenuItem: function addMenuItem(title, handler) { + // Make sure items are not added multiple times. This can + // happen when hot reloading the module that registers the + // menu items. The title is used as the id which means we + // don't support multiple items with the same name. var subscription = subscriptions.get(title); if (subscription != null) { subscription.remove(); @@ -32024,7 +40724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } module.exports = DevSettings; -},169,[3,170,134,14],"node_modules/react-native/Libraries/Utilities/DevSettings.js"); +},184,[3,151,185,17],"node_modules/react-native/Libraries/Utilities/DevSettings.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -32033,13 +40733,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.getEnforcing('DevSettings'); exports.default = _default; -},170,[16],"node_modules/react-native/Libraries/NativeModules/specs/NativeDevSettings.js"); +},185,[19],"node_modules/react-native/Libraries/NativeModules/specs/NativeDevSettings.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; + // This shim ensures DEV binary builds don't crash in JS + // when they're combined with a PROD JavaScript build. var HMRClientProdShim = { setup: function setup() {}, enable: function enable() { @@ -32050,39 +40770,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e log: function log() {} }; module.exports = HMRClientProdShim; -},171,[],"node_modules/react-native/Libraries/Utilities/HMRClientProdShim.js"); +},186,[],"node_modules/react-native/Libraries/Utilities/HMRClientProdShim.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Set up SegmentFetcher. + * You can use this module directly, or just require InitializeCore. + */ + function __fetchSegment(segmentId, options, callback) { var SegmentFetcher = _$$_REQUIRE(_dependencyMap[0], "./SegmentFetcher/NativeSegmentFetcher").default; SegmentFetcher.fetchSegment(segmentId, options, function (errorObject) { if (errorObject) { var error = new Error(errorObject.message); - error.code = errorObject.code; + error.code = errorObject.code; // flowlint-line unclear-type: off callback(error); } callback(null); }); } global.__fetchSegment = __fetchSegment; - function __getSegment(segmentId, options, callback) { - var SegmentFetcher = _$$_REQUIRE(_dependencyMap[0], "./SegmentFetcher/NativeSegmentFetcher").default; - if (!SegmentFetcher.getSegment) { - throw new Error('SegmentFetcher.getSegment must be defined'); - } - SegmentFetcher.getSegment(segmentId, options, function (errorObject, path) { - if (errorObject) { - var error = new Error(errorObject.message); - error.code = errorObject.code; - callback(error); - } - callback(null, path); - }); - } - global.__getSegment = __getSegment; -},172,[173],"node_modules/react-native/Libraries/Core/setUpSegmentFetcher.js"); +},187,[188],"node_modules/react-native/Libraries/Core/setUpSegmentFetcher.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -32091,54 +40810,133 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ var _default = TurboModuleRegistry.getEnforcing('SegmentFetcher'); exports.default = _default; -},173,[16],"node_modules/react-native/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js"); +},188,[19],"node_modules/react-native/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; + /** + * Check for compatibility between the JS and native code. + * You can use this module directly, or just require InitializeCore. + */ _$$_REQUIRE(_dependencyMap[0], "./ReactNativeVersionCheck").checkVersions(); -},174,[175],"node_modules/react-native/Libraries/Core/checkNativeVersion.js"); +},189,[190],"node_modules/react-native/Libraries/Core/checkNativeVersion.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * Checks that the version of this React Native JS is compatible with the native + * code, throwing an error if it isn't. + * + * The existence of this module is part of the public interface of React Native + * even though it is used only internally within React Native. React Native + * implementations for other platforms (ex: Windows) may override this module + * and rely on its existence as a separate module. + */ exports.checkVersions = function checkVersions() { var nativeVersion = _Platform.default.constants.reactNativeVersion; if (_$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version.major !== nativeVersion.major || _$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version.minor !== nativeVersion.minor) { - console.error("React Native version mismatch.\n\nJavaScript version: " + _formatVersion(_$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version) + "\n" + ("Native version: " + _formatVersion(nativeVersion) + "\n\n") + 'Make sure that you have rebuilt the native code. If the problem ' + 'persists try clearing the Watchman and packager caches with ' + '`watchman watch-del-all && react-native start --reset-cache`.'); + console.error(`React Native version mismatch.\n\nJavaScript version: ${_formatVersion(_$$_REQUIRE(_dependencyMap[2], "./ReactNativeVersion").version)}\n` + `Native version: ${_formatVersion(nativeVersion)}\n\n` + 'Make sure that you have rebuilt the native code. If the problem ' + 'persists try clearing the Watchman and packager caches with ' + '`watchman watch-del-all && react-native start --reset-cache`.'); } }; + + // Note: in OSS, the prerelease version is usually 0.Y.0-rc.W, so it is a string and not a number + // Then we need to keep supporting that object shape. function _formatVersion(version) { - return version.major + "." + version.minor + "." + version.patch + ( - version.prerelease != undefined ? "-" + version.prerelease : ''); + return `${version.major}.${version.minor}.${version.patch}` + ( + // eslint-disable-next-line eqeqeq + version.prerelease != undefined ? `-${version.prerelease}` : ''); } -},175,[3,14,176],"node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js"); +},190,[3,17,191],"node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @generated by scripts/set-rn-version.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ exports.version = { major: 0, - minor: 70, - patch: 4, + minor: 72, + patch: 3, prerelease: null }; -},176,[],"node_modules/react-native/Libraries/Core/ReactNativeVersion.js"); +},191,[],"node_modules/react-native/Libraries/Core/ReactNativeVersion.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * Sets up developer tools for React Native. + * You can use this module directly, or just require InitializeCore. + */ if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - _$$_REQUIRE(_dependencyMap[2], "./setUpReactDevTools"); + _$$_REQUIRE(_dependencyMap[2], "./setUpReactDevTools"); - var JSInspector = _$$_REQUIRE(_dependencyMap[3], "../JSInspector/JSInspector"); - JSInspector.registerAgent(_$$_REQUIRE(_dependencyMap[4], "../JSInspector/NetworkAgent")); - } + // Set up inspector + var JSInspector = _$$_REQUIRE(_dependencyMap[3], "../JSInspector/JSInspector"); + JSInspector.registerAgent(_$$_REQUIRE(_dependencyMap[4], "../JSInspector/NetworkAgent")); + // Note we can't check if console is "native" because it would appear "native" in JSC and Hermes. + // We also can't check any properties that don't exist in the Chrome worker environment. + // So we check a navigator property that's set to a particular value ("Netscape") in all real browsers. var isLikelyARealBrowser = global.navigator != null && - global.navigator.appName === 'Netscape'; + /* _ + * | | + * _ __ ___| |_ ___ ___ __ _ _ __ ___ + * | '_ \ / _ \ __/ __|/ __/ _` | '_ \ / _ \ + * | | | | __/ |_\__ \ (_| (_| | |_) | __/ + * |_| |_|\___|\__|___/\___\__,_| .__/ \___| + * | | + * |_| + */ + global.navigator.appName === 'Netscape'; // Any real browser if (!_Platform.default.isTesting) { var HMRClient = _$$_REQUIRE(_dependencyMap[5], "../Utilities/HMRClient"); if (console._isPolyfilled) { + // We assume full control over the console and send JavaScript logs to Metro. ['trace', 'info', 'warn', 'error', 'log', 'group', 'groupCollapsed', 'groupEnd', 'debug'].forEach(function (level) { var originalFunction = console[level]; console[level] = function () { @@ -32150,13 +40948,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }); } else { - HMRClient.log('log', ["JavaScript logs will appear in your " + (isLikelyARealBrowser ? 'browser' : 'environment') + " console"]); + // We assume the environment has a real rich console (like Chrome), and don't hijack it to log to Metro. + // It's likely the developer is using rich console to debug anyway, and hijacking it would + // lose the filenames in console.log calls: https://github.com/facebook/react-native/issues/26788. + HMRClient.log('log', [`JavaScript logs will appear in your ${isLikelyARealBrowser ? 'browser' : 'environment'} console`]); } } _$$_REQUIRE(_dependencyMap[6], "./setUpReactRefresh"); } -},177,[3,14,178,190,191,156,193],"node_modules/react-native/Libraries/Core/setUpDeveloperTools.js"); +},192,[3,17,193,208,209,171,211],"node_modules/react-native/Libraries/Core/setUpDeveloperTools.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; @@ -32166,20 +40976,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var reactDevTools = _$$_REQUIRE(_dependencyMap[0], "react-devtools-core"); var connectToDevTools = function connectToDevTools() { if (ws !== null && isWebSocketOpen) { + // If the DevTools backend is already connected, don't recreate the WebSocket. + // This would break the connection. + // If there isn't an active connection, a backend may be waiting to connect, + // in which case it's okay to make a new one. return; } + // not when debugging in chrome + // TODO(t12832058) This check is broken if (!window.document) { var AppState = _$$_REQUIRE(_dependencyMap[1], "../AppState/AppState"); var getDevServer = _$$_REQUIRE(_dependencyMap[2], "./Devtools/getDevServer"); + // Don't steal the DevTools from currently active app. + // Note: if you add any AppState subscriptions to this file, + // you will also need to guard against `AppState.isAvailable`, + // or the code will throw for bundles that don't have it. var isAppActive = function isAppActive() { return AppState.currentState !== 'background'; }; + // Get hostname from development server (packager) var devServer = getDevServer(); var host = devServer.bundleLoadedFromServer ? devServer.url.replace(/https?:\/\//, '').replace(/\/$/, '').split(':')[0] : 'localhost'; + // Read the optional global variable for backward compatibility. + // It was added in https://github.com/facebook/react-native/commit/bf2b435322e89d0aeee8792b1c6e04656c2719a0. var port = window.__REACT_DEVTOOLS_PORT__ != null ? window.__REACT_DEVTOOLS_PORT__ : 8097; var WebSocket = _$$_REQUIRE(_dependencyMap[3], "../WebSocket/WebSocket"); ws = new WebSocket('ws://' + host + ':' + port); @@ -32190,15053 +41013,19089 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isWebSocketOpen = true; }); var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[4], "../Components/View/ReactNativeStyleAttributes"); + var devToolsSettingsManager = _$$_REQUIRE(_dependencyMap[5], "../DevToolsSettings/DevToolsSettingsManager"); reactDevTools.connectToDevTools({ isAppActive: isAppActive, - resolveRNStyle: _$$_REQUIRE(_dependencyMap[5], "../StyleSheet/flattenStyle"), + resolveRNStyle: _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle"), nativeStyleEditorValidAttributes: Object.keys(ReactNativeStyleAttributes), - websocket: ws + websocket: ws, + devToolsSettingsManager: devToolsSettingsManager }); } }; - var RCTNativeAppEventEmitter = _$$_REQUIRE(_dependencyMap[6], "../EventEmitter/RCTNativeAppEventEmitter"); + var RCTNativeAppEventEmitter = _$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTNativeAppEventEmitter"); RCTNativeAppEventEmitter.addListener('RCTDevMenuShown', connectToDevTools); - connectToDevTools(); + connectToDevTools(); // Try connecting once on load } -},178,[179,182,66,131,185,189,153],"node_modules/react-native/Libraries/Core/setUpReactDevTools.js"); +},193,[194,195,83,148,198,204,207,170],"node_modules/react-native/Libraries/Core/setUpReactDevTools.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (function webpackUniversalModuleDefinition(root, factory) { if (typeof exports === 'object' && typeof module === 'object') module.exports = factory();else if (typeof define === 'function' && define.amd) define([], factory);else if (typeof exports === 'object') exports["ReactDevToolsBackend"] = factory();else root["ReactDevToolsBackend"] = factory(); - })(window, function () { - return function (modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) { - return installedModules[moduleId].exports; - } - var module = installedModules[moduleId] = { - i: moduleId, - l: false, - exports: {} - }; - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - module.l = true; - return module.exports; - } - __webpack_require__.m = modules; - __webpack_require__.c = installedModules; - __webpack_require__.d = function (exports, name, getter) { - if (!__webpack_require__.o(exports, name)) { - Object.defineProperty(exports, name, { - enumerable: true, - get: getter - }); - } - }; - __webpack_require__.r = function (exports) { - if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { - Object.defineProperty(exports, Symbol.toStringTag, { - value: 'Module' - }); - } - Object.defineProperty(exports, '__esModule', { - value: true - }); - }; - __webpack_require__.t = function (value, mode) { - if (mode & 1) value = __webpack_require__(value); - if (mode & 8) return value; - if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value; - var ns = Object.create(null); - __webpack_require__.r(ns); - Object.defineProperty(ns, 'default', { - enumerable: true, - value: value - }); - if (mode & 2 && typeof value != 'string') for (var key in value) { - __webpack_require__.d(ns, key, function (key) { - return value[key]; - }.bind(null, key)); - } - return ns; - }; - __webpack_require__.n = function (module) { - var getter = module && module.__esModule ? function getDefault() { - return module['default']; - } : function getModuleExports() { - return module; - }; - __webpack_require__.d(getter, 'a', getter); - return getter; - }; - __webpack_require__.o = function (object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }; - __webpack_require__.p = ""; - return __webpack_require__(__webpack_require__.s = 32); - } - ([ - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + })(self, function () { + return (/******/function () { + // webpackBootstrap + /******/ + var __webpack_modules__ = { + /***/602: /***/function _(__unused_webpack_module, exports, __webpack_require__) { + "use strict"; + + var __webpack_unused_export__; + /** + * @license React + * react-debug-tools.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var h = __webpack_require__(206), + p = __webpack_require__(189), + q = Object.assign, + w = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + x = [], + y = null; + function z() { + if (null === y) { + var a = new Map(); + try { + A.useContext({ + _currentValue: null + }), A.useState(null), A.useReducer(function (c) { + return c; + }, null), A.useRef(null), "function" === typeof A.useCacheRefresh && A.useCacheRefresh(), A.useLayoutEffect(function () {}), A.useInsertionEffect(function () {}), A.useEffect(function () {}), A.useImperativeHandle(void 0, function () { + return null; + }), A.useDebugValue(null), A.useCallback(function () {}), A.useMemo(function () { + return null; + }), "function" === typeof A.useMemoCache && A.useMemoCache(0); + } finally { + var b = x; + x = []; + } + for (var e = 0; e < b.length; e++) { + var f = b[e]; + a.set(f.primitive, h.parse(f.stackError)); + } + y = a; + } + return y; + } + var B = null; + function C() { + var a = B; + null !== a && (B = a.next); + return a; + } + var A = { + use: function use() { + throw Error("Support for `use` not yet implemented in react-debug-tools."); + }, + readContext: function readContext(a) { + return a._currentValue; + }, + useCacheRefresh: function useCacheRefresh() { + var a = C(); + x.push({ + primitive: "CacheRefresh", + stackError: Error(), + value: null !== a ? a.memoizedState : function () {} + }); + return function () {}; + }, + useCallback: function useCallback(a) { + var b = C(); + x.push({ + primitive: "Callback", + stackError: Error(), + value: null !== b ? b.memoizedState[0] : a + }); + return a; + }, + useContext: function useContext(a) { + x.push({ + primitive: "Context", + stackError: Error(), + value: a._currentValue + }); + return a._currentValue; + }, + useEffect: function useEffect(a) { + C(); + x.push({ + primitive: "Effect", + stackError: Error(), + value: a + }); + }, + useImperativeHandle: function useImperativeHandle(a) { + C(); + var b = void 0; + null !== a && "object" === _typeof(a) && (b = a.current); + x.push({ + primitive: "ImperativeHandle", + stackError: Error(), + value: b + }); + }, + useDebugValue: function useDebugValue(a, b) { + x.push({ + primitive: "DebugValue", + stackError: Error(), + value: "function" === typeof b ? b(a) : a + }); + }, + useLayoutEffect: function useLayoutEffect(a) { + C(); + x.push({ + primitive: "LayoutEffect", + stackError: Error(), + value: a + }); + }, + useInsertionEffect: function useInsertionEffect(a) { + C(); + x.push({ + primitive: "InsertionEffect", + stackError: Error(), + value: a + }); + }, + useMemo: function useMemo(a) { + var b = C(); + a = null !== b ? b.memoizedState[0] : a(); + x.push({ + primitive: "Memo", + stackError: Error(), + value: a + }); + return a; + }, + useMemoCache: function useMemoCache(a) { + var b = C(); + b = null !== b && null !== b.updateQueue && null != b.updateQueue.memoCache ? b.updateQueue.memoCache : { + data: [], + index: 0 + }; + b = b.data[b.index]; + if (void 0 === b) { + var e = Symbol.for("react.memo_cache_sentinel"); + b = Array(a); + for (var f = 0; f < a; f++) { + b[f] = e; + } + } + x.push({ + primitive: "MemoCache", + stackError: Error(), + value: b + }); + return b; + }, + useReducer: function useReducer(a, b, e) { + a = C(); + b = null !== a ? a.memoizedState : void 0 !== e ? e(b) : b; + x.push({ + primitive: "Reducer", + stackError: Error(), + value: b + }); + return [b, function () {}]; + }, + useRef: function useRef(a) { + var b = C(); + a = null !== b ? b.memoizedState : { + current: a + }; + x.push({ + primitive: "Ref", + stackError: Error(), + value: a.current + }); + return a; + }, + useState: function useState(a) { + var b = C(); + a = null !== b ? b.memoizedState : "function" === typeof a ? a() : a; + x.push({ + primitive: "State", + stackError: Error(), + value: a + }); + return [a, function () {}]; + }, + useTransition: function useTransition() { + C(); + C(); + x.push({ + primitive: "Transition", + stackError: Error(), + value: void 0 + }); + return [!1, function () {}]; + }, + useSyncExternalStore: function useSyncExternalStore(a, b) { + C(); + C(); + a = b(); + x.push({ + primitive: "SyncExternalStore", + stackError: Error(), + value: a + }); + return a; + }, + useDeferredValue: function useDeferredValue(a) { + var b = C(); + x.push({ + primitive: "DeferredValue", + stackError: Error(), + value: null !== b ? b.memoizedState : a + }); + return a; + }, + useId: function useId() { + var a = C(); + a = null !== a ? a.memoizedState : ""; + x.push({ + primitive: "Id", + stackError: Error(), + value: a + }); + return a; + } + }, + D = { + get: function get(a, b) { + if (a.hasOwnProperty(b)) return a[b]; + a = Error("Missing method in Dispatcher: " + b); + a.name = "ReactDebugToolsUnsupportedHookError"; + throw a; + } + }, + E = "undefined" === typeof Proxy ? A : new Proxy(A, D), + F = 0; + function G(a, b, e) { + var f = b[e].source, + c = 0; + a: for (; c < a.length; c++) { + if (a[c].source === f) { + for (var k = e + 1, r = c + 1; k < b.length && r < a.length; k++, r++) { + if (a[r].source !== b[k].source) continue a; + } + return c; + } + } + return -1; + } + function H(a, b) { + if (!a) return !1; + b = "use" + b; + return a.length < b.length ? !1 : a.lastIndexOf(b) === a.length - b.length; + } + function I(a, b, e) { + for (var f = [], c = null, k = f, r = 0, t = [], v = 0; v < b.length; v++) { + var u = b[v]; + var d = a; + var l = h.parse(u.stackError); + b: { + var m = l, + n = G(m, d, F); + if (-1 !== n) d = n;else { + for (var g = 0; g < d.length && 5 > g; g++) { + if (n = G(m, d, g), -1 !== n) { + F = g; + d = n; + break b; + } + } + d = -1; + } + } + b: { + m = l; + n = z().get(u.primitive); + if (void 0 !== n) for (g = 0; g < n.length && g < m.length; g++) { + if (n[g].source !== m[g].source) { + g < m.length - 1 && H(m[g].functionName, u.primitive) && g++; + g < m.length - 1 && H(m[g].functionName, u.primitive) && g++; + m = g; + break b; + } + } + m = -1; + } + l = -1 === d || -1 === m || 2 > d - m ? null : l.slice(m, d - 1); + if (null !== l) { + d = 0; + if (null !== c) { + for (; d < l.length && d < c.length && l[l.length - d - 1].source === c[c.length - d - 1].source;) { + d++; + } + for (c = c.length - 1; c > d; c--) { + k = t.pop(); + } + } + for (c = l.length - d - 1; 1 <= c; c--) { + d = [], m = l[c], (n = l[c - 1].functionName) ? (g = n.lastIndexOf("."), -1 === g && (g = 0), "use" === n.slice(g, g + 3) && (g += 3), n = n.slice(g)) : n = "", n = { + id: null, + isStateEditable: !1, + name: n, + value: void 0, + subHooks: d + }, e && (n.hookSource = { + lineNumber: m.lineNumber, + columnNumber: m.columnNumber, + functionName: m.functionName, + fileName: m.fileName + }), k.push(n), t.push(k), k = d; + } + c = l; + } + d = u.primitive; + u = { + id: "Context" === d || "DebugValue" === d ? null : r++, + isStateEditable: "Reducer" === d || "State" === d, + name: d, + value: u.value, + subHooks: [] + }; + e && (d = { + lineNumber: null, + functionName: null, + fileName: null, + columnNumber: null + }, l && 1 <= l.length && (l = l[0], d.lineNumber = l.lineNumber, d.functionName = l.functionName, d.fileName = l.fileName, d.columnNumber = l.columnNumber), u.hookSource = d); + k.push(u); + } + J(f, null); + return f; + } + function J(a, b) { + for (var e = [], f = 0; f < a.length; f++) { + var c = a[f]; + "DebugValue" === c.name && 0 === c.subHooks.length ? (a.splice(f, 1), f--, e.push(c)) : J(c.subHooks, c); + } + null !== b && (1 === e.length ? b.value = e[0].value : 1 < e.length && (b.value = e.map(function (k) { + return k.value; + }))); + } + function K(a) { + if (a instanceof Error && "ReactDebugToolsUnsupportedHookError" === a.name) throw a; + var b = Error("Error rendering inspected component", { + cause: a + }); + b.name = "ReactDebugToolsRenderError"; + b.cause = a; + throw b; + } + function L(a, b, e) { + var f = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1; + null == e && (e = w.ReactCurrentDispatcher); + var c = e.current; + e.current = E; + try { + var k = Error(); + a(b); + } catch (t) { + K(t); + } finally { + var r = x; + x = []; + e.current = c; + } + c = h.parse(k); + return I(c, r, f); + } + function M(a) { + a.forEach(function (b, e) { + return e._currentValue = b; + }); + } + __webpack_unused_export__ = L; + exports.inspectHooksOfFiber = function (a, b) { + var e = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1; + null == b && (b = w.ReactCurrentDispatcher); + if (0 !== a.tag && 15 !== a.tag && 11 !== a.tag) throw Error("Unknown Fiber. Needs to be a function component to inspect hooks."); + z(); + var f = a.type, + c = a.memoizedProps; + if (f !== a.elementType && f && f.defaultProps) { + c = q({}, c); + var k = f.defaultProps; + for (r in k) { + void 0 === c[r] && (c[r] = k[r]); + } + } + B = a.memoizedState; + var r = new Map(); + try { + for (k = a; k;) { + if (10 === k.tag) { + var t = k.type._context; + r.has(t) || (r.set(t, t._currentValue), t._currentValue = k.memoizedProps.value); + } + k = k.return; + } + if (11 === a.tag) { + var v = f.render; + f = c; + var u = a.ref; + t = b; + var d = t.current; + t.current = E; + try { + var l = Error(); + v(f, u); + } catch (g) { + K(g); + } finally { + var m = x; + x = []; + t.current = d; + } + var n = h.parse(l); + return I(n, m, e); + } + return L(f, c, b, e); + } finally { + B = null, M(r); + } + }; - __webpack_require__.d(__webpack_exports__, "s", function () { - return __DEBUG__; - }); - __webpack_require__.d(__webpack_exports__, "l", function () { - return TREE_OPERATION_ADD; - }); - __webpack_require__.d(__webpack_exports__, "m", function () { - return TREE_OPERATION_REMOVE; - }); - __webpack_require__.d(__webpack_exports__, "o", function () { - return TREE_OPERATION_REORDER_CHILDREN; - }); - __webpack_require__.d(__webpack_exports__, "r", function () { - return TREE_OPERATION_UPDATE_TREE_BASE_DURATION; - }); - __webpack_require__.d(__webpack_exports__, "q", function () { - return TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS; - }); - __webpack_require__.d(__webpack_exports__, "n", function () { - return TREE_OPERATION_REMOVE_ROOT; - }); - __webpack_require__.d(__webpack_exports__, "p", function () { - return TREE_OPERATION_SET_SUBTREE_MODE; - }); - __webpack_require__.d(__webpack_exports__, "g", function () { - return PROFILING_FLAG_BASIC_SUPPORT; - }); - __webpack_require__.d(__webpack_exports__, "h", function () { - return PROFILING_FLAG_TIMELINE_SUPPORT; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return LOCAL_STORAGE_FILTER_PREFERENCES_KEY; - }); - __webpack_require__.d(__webpack_exports__, "i", function () { - return SESSION_STORAGE_LAST_SELECTION_KEY; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return LOCAL_STORAGE_OPEN_IN_EDITOR_URL; - }); - __webpack_require__.d(__webpack_exports__, "j", function () { - return SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY; - }); - __webpack_require__.d(__webpack_exports__, "k", function () { - return SESSION_STORAGE_RELOAD_AND_PROFILE_KEY; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS; - }); - __webpack_require__.d(__webpack_exports__, "e", function () { - return LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY; - }); - __webpack_require__.d(__webpack_exports__, "f", function () { - return LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE; - }); - var CHROME_WEBSTORE_EXTENSION_ID = 'fmkadmapgofadopljbjfkapdkoienihi'; - var INTERNAL_EXTENSION_ID = 'dnjnjgbfilfphmojnmhliehogmojhclc'; - var LOCAL_EXTENSION_ID = 'ikiahnapldjmdmpkmfhjdjilojjhgcbf'; - - var __DEBUG__ = false; - - var __PERFORMANCE_PROFILE__ = false; - var TREE_OPERATION_ADD = 1; - var TREE_OPERATION_REMOVE = 2; - var TREE_OPERATION_REORDER_CHILDREN = 3; - var TREE_OPERATION_UPDATE_TREE_BASE_DURATION = 4; - var TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS = 5; - var TREE_OPERATION_REMOVE_ROOT = 6; - var TREE_OPERATION_SET_SUBTREE_MODE = 7; - var PROFILING_FLAG_BASIC_SUPPORT = 1; - var PROFILING_FLAG_TIMELINE_SUPPORT = 2; - var LOCAL_STORAGE_DEFAULT_TAB_KEY = 'React::DevTools::defaultTab'; - var LOCAL_STORAGE_FILTER_PREFERENCES_KEY = 'React::DevTools::componentFilters'; - var SESSION_STORAGE_LAST_SELECTION_KEY = 'React::DevTools::lastSelection'; - var LOCAL_STORAGE_OPEN_IN_EDITOR_URL = 'React::DevTools::openInEditorUrl'; - var LOCAL_STORAGE_PARSE_HOOK_NAMES_KEY = 'React::DevTools::parseHookNames'; - var SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY = 'React::DevTools::recordChangeDescriptions'; - var SESSION_STORAGE_RELOAD_AND_PROFILE_KEY = 'React::DevTools::reloadAndProfile'; - var LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS = 'React::DevTools::breakOnConsoleErrors'; - var LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY = 'React::DevTools::appendComponentStack'; - var LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY = 'React::DevTools::showInlineWarningsAndErrors'; - var LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY = 'React::DevTools::traceUpdatesEnabled'; - var LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE = 'React::DevTools::hideConsoleLogsInStrictMode'; - var PROFILER_EXPORT_VERSION = 5; - var CHANGE_LOG_URL = 'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md'; - var UNSUPPORTED_VERSION_URL = 'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back'; - var REACT_DEVTOOLS_WORKPLACE_URL = 'https://fburl.com/react-devtools-workplace-group'; - var THEME_STYLES = { - light: { - '--color-attribute-name': '#ef6632', - '--color-attribute-name-not-editable': '#23272f', - '--color-attribute-name-inverted': 'rgba(255, 255, 255, 0.7)', - '--color-attribute-value': '#1a1aa6', - '--color-attribute-value-inverted': '#ffffff', - '--color-attribute-editable-value': '#1a1aa6', - '--color-background': '#ffffff', - '--color-background-hover': 'rgba(0, 136, 250, 0.1)', - '--color-background-inactive': '#e5e5e5', - '--color-background-invalid': '#fff0f0', - '--color-background-selected': '#0088fa', - '--color-button-background': '#ffffff', - '--color-button-background-focus': '#ededed', - '--color-button': '#5f6673', - '--color-button-disabled': '#cfd1d5', - '--color-button-active': '#0088fa', - '--color-button-focus': '#23272f', - '--color-button-hover': '#23272f', - '--color-border': '#eeeeee', - '--color-commit-did-not-render-fill': '#cfd1d5', - '--color-commit-did-not-render-fill-text': '#000000', - '--color-commit-did-not-render-pattern': '#cfd1d5', - '--color-commit-did-not-render-pattern-text': '#333333', - '--color-commit-gradient-0': '#37afa9', - '--color-commit-gradient-1': '#63b19e', - '--color-commit-gradient-2': '#80b393', - '--color-commit-gradient-3': '#97b488', - '--color-commit-gradient-4': '#abb67d', - '--color-commit-gradient-5': '#beb771', - '--color-commit-gradient-6': '#cfb965', - '--color-commit-gradient-7': '#dfba57', - '--color-commit-gradient-8': '#efbb49', - '--color-commit-gradient-9': '#febc38', - '--color-commit-gradient-text': '#000000', - '--color-component-name': '#6a51b2', - '--color-component-name-inverted': '#ffffff', - '--color-component-badge-background': 'rgba(0, 0, 0, 0.1)', - '--color-component-badge-background-inverted': 'rgba(255, 255, 255, 0.25)', - '--color-component-badge-count': '#777d88', - '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', - '--color-console-error-badge-text': '#ffffff', - '--color-console-error-background': '#fff0f0', - '--color-console-error-border': '#ffd6d6', - '--color-console-error-icon': '#eb3941', - '--color-console-error-text': '#fe2e31', - '--color-console-warning-badge-text': '#000000', - '--color-console-warning-background': '#fffbe5', - '--color-console-warning-border': '#fff5c1', - '--color-console-warning-icon': '#f4bd00', - '--color-console-warning-text': '#64460c', - '--color-context-background': 'rgba(0,0,0,.9)', - '--color-context-background-hover': 'rgba(255, 255, 255, 0.1)', - '--color-context-background-selected': '#178fb9', - '--color-context-border': '#3d424a', - '--color-context-text': '#ffffff', - '--color-context-text-selected': '#ffffff', - '--color-dim': '#777d88', - '--color-dimmer': '#cfd1d5', - '--color-dimmest': '#eff0f1', - '--color-error-background': 'hsl(0, 100%, 97%)', - '--color-error-border': 'hsl(0, 100%, 92%)', - '--color-error-text': '#ff0000', - '--color-expand-collapse-toggle': '#777d88', - '--color-link': '#0000ff', - '--color-modal-background': 'rgba(255, 255, 255, 0.75)', - '--color-bridge-version-npm-background': '#eff0f1', - '--color-bridge-version-npm-text': '#000000', - '--color-bridge-version-number': '#0088fa', - '--color-primitive-hook-badge-background': '#e5e5e5', - '--color-primitive-hook-badge-text': '#5f6673', - '--color-record-active': '#fc3a4b', - '--color-record-hover': '#3578e5', - '--color-record-inactive': '#0088fa', - '--color-resize-bar': '#eeeeee', - '--color-resize-bar-active': '#dcdcdc', - '--color-resize-bar-border': '#d1d1d1', - '--color-resize-bar-dot': '#333333', - '--color-timeline-internal-module': '#d1d1d1', - '--color-timeline-internal-module-hover': '#c9c9c9', - '--color-timeline-internal-module-text': '#444', - '--color-timeline-native-event': '#ccc', - '--color-timeline-native-event-hover': '#aaa', - '--color-timeline-network-primary': '#fcf3dc', - '--color-timeline-network-primary-hover': '#f0e7d1', - '--color-timeline-network-secondary': '#efc457', - '--color-timeline-network-secondary-hover': '#e3ba52', - '--color-timeline-priority-background': '#f6f6f6', - '--color-timeline-priority-border': '#eeeeee', - '--color-timeline-user-timing': '#c9cacd', - '--color-timeline-user-timing-hover': '#93959a', - '--color-timeline-react-idle': '#d3e5f6', - '--color-timeline-react-idle-hover': '#c3d9ef', - '--color-timeline-react-render': '#9fc3f3', - '--color-timeline-react-render-hover': '#83afe9', - '--color-timeline-react-render-text': '#11365e', - '--color-timeline-react-commit': '#c88ff0', - '--color-timeline-react-commit-hover': '#b281d6', - '--color-timeline-react-commit-text': '#3e2c4a', - '--color-timeline-react-layout-effects': '#b281d6', - '--color-timeline-react-layout-effects-hover': '#9d71bd', - '--color-timeline-react-layout-effects-text': '#3e2c4a', - '--color-timeline-react-passive-effects': '#b281d6', - '--color-timeline-react-passive-effects-hover': '#9d71bd', - '--color-timeline-react-passive-effects-text': '#3e2c4a', - '--color-timeline-react-schedule': '#9fc3f3', - '--color-timeline-react-schedule-hover': '#2683E2', - '--color-timeline-react-suspense-rejected': '#f1cc14', - '--color-timeline-react-suspense-rejected-hover': '#ffdf37', - '--color-timeline-react-suspense-resolved': '#a6e59f', - '--color-timeline-react-suspense-resolved-hover': '#89d281', - '--color-timeline-react-suspense-unresolved': '#c9cacd', - '--color-timeline-react-suspense-unresolved-hover': '#93959a', - '--color-timeline-thrown-error': '#ee1638', - '--color-timeline-thrown-error-hover': '#da1030', - '--color-timeline-text-color': '#000000', - '--color-timeline-text-dim-color': '#ccc', - '--color-timeline-react-work-border': '#eeeeee', - '--color-search-match': 'yellow', - '--color-search-match-current': '#f7923b', - '--color-selected-tree-highlight-active': 'rgba(0, 136, 250, 0.1)', - '--color-selected-tree-highlight-inactive': 'rgba(0, 0, 0, 0.05)', - '--color-scroll-caret': 'rgba(150, 150, 150, 0.5)', - '--color-tab-selected-border': '#0088fa', - '--color-text': '#000000', - '--color-text-invalid': '#ff0000', - '--color-text-selected': '#ffffff', - '--color-toggle-background-invalid': '#fc3a4b', - '--color-toggle-background-on': '#0088fa', - '--color-toggle-background-off': '#cfd1d5', - '--color-toggle-text': '#ffffff', - '--color-warning-background': '#fb3655', - '--color-warning-background-hover': '#f82042', - '--color-warning-text-color': '#ffffff', - '--color-warning-text-color-inverted': '#fd4d69', - '--color-scroll-thumb': '#c2c2c2', - '--color-scroll-track': '#fafafa', - '--color-tooltip-background': 'rgba(0, 0, 0, 0.9)', - '--color-tooltip-text': '#ffffff' - }, - dark: { - '--color-attribute-name': '#9d87d2', - '--color-attribute-name-not-editable': '#ededed', - '--color-attribute-name-inverted': '#282828', - '--color-attribute-value': '#cedae0', - '--color-attribute-value-inverted': '#ffffff', - '--color-attribute-editable-value': 'yellow', - '--color-background': '#282c34', - '--color-background-hover': 'rgba(255, 255, 255, 0.1)', - '--color-background-inactive': '#3d424a', - '--color-background-invalid': '#5c0000', - '--color-background-selected': '#178fb9', - '--color-button-background': '#282c34', - '--color-button-background-focus': '#3d424a', - '--color-button': '#afb3b9', - '--color-button-active': '#61dafb', - '--color-button-disabled': '#4f5766', - '--color-button-focus': '#a2e9fc', - '--color-button-hover': '#ededed', - '--color-border': '#3d424a', - '--color-commit-did-not-render-fill': '#777d88', - '--color-commit-did-not-render-fill-text': '#000000', - '--color-commit-did-not-render-pattern': '#666c77', - '--color-commit-did-not-render-pattern-text': '#ffffff', - '--color-commit-gradient-0': '#37afa9', - '--color-commit-gradient-1': '#63b19e', - '--color-commit-gradient-2': '#80b393', - '--color-commit-gradient-3': '#97b488', - '--color-commit-gradient-4': '#abb67d', - '--color-commit-gradient-5': '#beb771', - '--color-commit-gradient-6': '#cfb965', - '--color-commit-gradient-7': '#dfba57', - '--color-commit-gradient-8': '#efbb49', - '--color-commit-gradient-9': '#febc38', - '--color-commit-gradient-text': '#000000', - '--color-component-name': '#61dafb', - '--color-component-name-inverted': '#282828', - '--color-component-badge-background': 'rgba(255, 255, 255, 0.25)', - '--color-component-badge-background-inverted': 'rgba(0, 0, 0, 0.25)', - '--color-component-badge-count': '#8f949d', - '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', - '--color-console-error-badge-text': '#000000', - '--color-console-error-background': '#290000', - '--color-console-error-border': '#5c0000', - '--color-console-error-icon': '#eb3941', - '--color-console-error-text': '#fc7f7f', - '--color-console-warning-badge-text': '#000000', - '--color-console-warning-background': '#332b00', - '--color-console-warning-border': '#665500', - '--color-console-warning-icon': '#f4bd00', - '--color-console-warning-text': '#f5f2ed', - '--color-context-background': 'rgba(255,255,255,.95)', - '--color-context-background-hover': 'rgba(0, 136, 250, 0.1)', - '--color-context-background-selected': '#0088fa', - '--color-context-border': '#eeeeee', - '--color-context-text': '#000000', - '--color-context-text-selected': '#ffffff', - '--color-dim': '#8f949d', - '--color-dimmer': '#777d88', - '--color-dimmest': '#4f5766', - '--color-error-background': '#200', - '--color-error-border': '#900', - '--color-error-text': '#f55', - '--color-expand-collapse-toggle': '#8f949d', - '--color-link': '#61dafb', - '--color-modal-background': 'rgba(0, 0, 0, 0.75)', - '--color-bridge-version-npm-background': 'rgba(0, 0, 0, 0.25)', - '--color-bridge-version-npm-text': '#ffffff', - '--color-bridge-version-number': 'yellow', - '--color-primitive-hook-badge-background': 'rgba(0, 0, 0, 0.25)', - '--color-primitive-hook-badge-text': 'rgba(255, 255, 255, 0.7)', - '--color-record-active': '#fc3a4b', - '--color-record-hover': '#a2e9fc', - '--color-record-inactive': '#61dafb', - '--color-resize-bar': '#282c34', - '--color-resize-bar-active': '#31363f', - '--color-resize-bar-border': '#3d424a', - '--color-resize-bar-dot': '#cfd1d5', - '--color-timeline-internal-module': '#303542', - '--color-timeline-internal-module-hover': '#363b4a', - '--color-timeline-internal-module-text': '#7f8899', - '--color-timeline-native-event': '#b2b2b2', - '--color-timeline-native-event-hover': '#949494', - '--color-timeline-network-primary': '#fcf3dc', - '--color-timeline-network-primary-hover': '#e3dbc5', - '--color-timeline-network-secondary': '#efc457', - '--color-timeline-network-secondary-hover': '#d6af4d', - '--color-timeline-priority-background': '#1d2129', - '--color-timeline-priority-border': '#282c34', - '--color-timeline-user-timing': '#c9cacd', - '--color-timeline-user-timing-hover': '#93959a', - '--color-timeline-react-idle': '#3d485b', - '--color-timeline-react-idle-hover': '#465269', - '--color-timeline-react-render': '#2683E2', - '--color-timeline-react-render-hover': '#1a76d4', - '--color-timeline-react-render-text': '#11365e', - '--color-timeline-react-commit': '#731fad', - '--color-timeline-react-commit-hover': '#611b94', - '--color-timeline-react-commit-text': '#e5c1ff', - '--color-timeline-react-layout-effects': '#611b94', - '--color-timeline-react-layout-effects-hover': '#51167a', - '--color-timeline-react-layout-effects-text': '#e5c1ff', - '--color-timeline-react-passive-effects': '#611b94', - '--color-timeline-react-passive-effects-hover': '#51167a', - '--color-timeline-react-passive-effects-text': '#e5c1ff', - '--color-timeline-react-schedule': '#2683E2', - '--color-timeline-react-schedule-hover': '#1a76d4', - '--color-timeline-react-suspense-rejected': '#f1cc14', - '--color-timeline-react-suspense-rejected-hover': '#e4c00f', - '--color-timeline-react-suspense-resolved': '#a6e59f', - '--color-timeline-react-suspense-resolved-hover': '#89d281', - '--color-timeline-react-suspense-unresolved': '#c9cacd', - '--color-timeline-react-suspense-unresolved-hover': '#93959a', - '--color-timeline-thrown-error': '#fb3655', - '--color-timeline-thrown-error-hover': '#f82042', - '--color-timeline-text-color': '#282c34', - '--color-timeline-text-dim-color': '#555b66', - '--color-timeline-react-work-border': '#3d424a', - '--color-search-match': 'yellow', - '--color-search-match-current': '#f7923b', - '--color-selected-tree-highlight-active': 'rgba(23, 143, 185, 0.15)', - '--color-selected-tree-highlight-inactive': 'rgba(255, 255, 255, 0.05)', - '--color-scroll-caret': '#4f5766', - '--color-shadow': 'rgba(0, 0, 0, 0.5)', - '--color-tab-selected-border': '#178fb9', - '--color-text': '#ffffff', - '--color-text-invalid': '#ff8080', - '--color-text-selected': '#ffffff', - '--color-toggle-background-invalid': '#fc3a4b', - '--color-toggle-background-on': '#178fb9', - '--color-toggle-background-off': '#777d88', - '--color-toggle-text': '#ffffff', - '--color-warning-background': '#ee1638', - '--color-warning-background-hover': '#da1030', - '--color-warning-text-color': '#ffffff', - '--color-warning-text-color-inverted': '#ee1638', - '--color-scroll-thumb': '#afb3b9', - '--color-scroll-track': '#313640', - '--color-tooltip-background': 'rgba(255, 255, 255, 0.95)', - '--color-tooltip-text': '#000000' - }, - compact: { - '--font-size-monospace-small': '9px', - '--font-size-monospace-normal': '11px', - '--font-size-monospace-large': '15px', - '--font-size-sans-small': '10px', - '--font-size-sans-normal': '12px', - '--font-size-sans-large': '14px', - '--line-height-data': '18px' - }, - comfortable: { - '--font-size-monospace-small': '10px', - '--font-size-monospace-normal': '13px', - '--font-size-monospace-large': '17px', - '--font-size-sans-small': '12px', - '--font-size-sans-normal': '14px', - '--font-size-sans-large': '16px', - '--line-height-data': '22px' - } - }; + /***/ + }, - var COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable['--line-height-data'], 10); - var COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact['--line-height-data'], 10); + /***/987: /***/function _(module, __unused_webpack_exports, __webpack_require__) { + "use strict"; - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + if (true) { + module.exports = __webpack_require__(602); + } else {} - __webpack_require__.d(__webpack_exports__, "e", function () { - return ElementTypeClass; - }); - __webpack_require__.d(__webpack_exports__, "f", function () { - return ElementTypeContext; - }); - __webpack_require__.d(__webpack_exports__, "h", function () { - return ElementTypeFunction; - }); - __webpack_require__.d(__webpack_exports__, "g", function () { - return ElementTypeForwardRef; - }); - __webpack_require__.d(__webpack_exports__, "i", function () { - return ElementTypeHostComponent; - }); - __webpack_require__.d(__webpack_exports__, "j", function () { - return ElementTypeMemo; - }); - __webpack_require__.d(__webpack_exports__, "k", function () { - return ElementTypeOtherOrUnknown; - }); - __webpack_require__.d(__webpack_exports__, "l", function () { - return ElementTypeProfiler; - }); - __webpack_require__.d(__webpack_exports__, "m", function () { - return ElementTypeRoot; - }); - __webpack_require__.d(__webpack_exports__, "n", function () { - return ElementTypeSuspense; - }); - __webpack_require__.d(__webpack_exports__, "o", function () { - return ElementTypeSuspenseList; - }); - __webpack_require__.d(__webpack_exports__, "p", function () { - return ElementTypeTracingMarker; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return ComponentFilterElementType; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return ComponentFilterDisplayName; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return ComponentFilterLocation; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return ComponentFilterHOC; - }); - __webpack_require__.d(__webpack_exports__, "q", function () { - return StrictMode; - }); - var ElementTypeClass = 1; - var ElementTypeContext = 2; - var ElementTypeFunction = 5; - var ElementTypeForwardRef = 6; - var ElementTypeHostComponent = 7; - var ElementTypeMemo = 8; - var ElementTypeOtherOrUnknown = 9; - var ElementTypeProfiler = 10; - var ElementTypeRoot = 11; - var ElementTypeSuspense = 12; - var ElementTypeSuspenseList = 13; - var ElementTypeTracingMarker = 14; - - var ComponentFilterElementType = 1; - var ComponentFilterDisplayName = 2; - var ComponentFilterLocation = 3; - var ComponentFilterHOC = 4; - var StrictMode = 1; - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + /***/ + }, - (function (process) { - __webpack_require__.d(__webpack_exports__, "c", function () { - return getAllEnumerableKeys; - }); - __webpack_require__.d(__webpack_exports__, "f", function () { - return getDisplayName; - }); - __webpack_require__.d(__webpack_exports__, "i", function () { - return getUID; - }); - __webpack_require__.d(__webpack_exports__, "m", function () { - return utfEncodeString; - }); - __webpack_require__.d(__webpack_exports__, "j", function () { - return printOperationsArray; - }); - __webpack_require__.d(__webpack_exports__, "e", function () { - return getDefaultComponentFilters; - }); - __webpack_require__.d(__webpack_exports__, "h", function () { - return getInObject; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return deletePathInObject; - }); - __webpack_require__.d(__webpack_exports__, "k", function () { - return renamePathInObject; - }); - __webpack_require__.d(__webpack_exports__, "l", function () { - return setInObject; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return getDataType; - }); - __webpack_require__.d(__webpack_exports__, "g", function () { - return getDisplayNameForReactElement; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return formatDataForPreview; - }); - var lru_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); - var lru_cache__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(lru_cache__WEBPACK_IMPORTED_MODULE_0__); - var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); - var react_is__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__); - var shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); - var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); - var react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); - var _storage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5); - var _hydration__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11); - var _isArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6); - function _typeof(obj) { - "@babel/helpers - typeof"; + /***/9: /***/function _(__unused_webpack_module, exports) { + "use strict"; + + var __webpack_unused_export__; + /** + * @license React + * react-is.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var b = Symbol.for("react.element"), + c = Symbol.for("react.portal"), + d = Symbol.for("react.fragment"), + e = Symbol.for("react.strict_mode"), + f = Symbol.for("react.profiler"), + g = Symbol.for("react.provider"), + h = Symbol.for("react.context"), + k = Symbol.for("react.server_context"), + l = Symbol.for("react.forward_ref"), + m = Symbol.for("react.suspense"), + n = Symbol.for("react.suspense_list"), + p = Symbol.for("react.memo"), + q = Symbol.for("react.lazy"), + t = Symbol.for("react.offscreen"), + u = Symbol.for("react.cache"), + v = Symbol.for("react.client.reference"); + function w(a) { + if ("object" === _typeof(a) && null !== a) { + var r = a.$$typeof; + switch (r) { + case b: + switch (a = a.type, a) { + case d: + case f: + case e: + case m: + case n: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case h: + case l: + case q: + case p: + case g: + return a; + default: + return r; + } + } + case c: + return r; + } + } + } + exports.ContextConsumer = h; + exports.ContextProvider = g; + __webpack_unused_export__ = b; + exports.ForwardRef = l; + exports.Fragment = d; + exports.Lazy = q; + exports.Memo = p; + exports.Portal = c; + exports.Profiler = f; + exports.StrictMode = e; + exports.Suspense = m; + __webpack_unused_export__ = n; + __webpack_unused_export__ = function __webpack_unused_export__() { + return !1; + }; + __webpack_unused_export__ = function __webpack_unused_export__() { + return !1; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === h; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === g; + }; + exports.isElement = function (a) { + return "object" === _typeof(a) && null !== a && a.$$typeof === b; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === l; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === d; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === q; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === p; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === c; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === f; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === e; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === m; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return w(a) === n; + }; + __webpack_unused_export__ = function __webpack_unused_export__(a) { + return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || a === u || "object" === _typeof(a) && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === v || void 0 !== a.getModuleId) ? !0 : !1; + }; + exports.typeOf = w; + + /***/ + }, + + /***/550: /***/function _(module, __unused_webpack_exports, __webpack_require__) { + "use strict"; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; + if (true) { + module.exports = __webpack_require__(9); + } else {} + + /***/ + }, + + /***/978: /***/function _(__unused_webpack_module, exports) { + "use strict"; + + /** + * @license React + * react.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + var l = Symbol.for("react.element"), + n = Symbol.for("react.portal"), + p = Symbol.for("react.fragment"), + q = Symbol.for("react.strict_mode"), + r = Symbol.for("react.profiler"), + t = Symbol.for("react.provider"), + u = Symbol.for("react.context"), + v = Symbol.for("react.server_context"), + w = Symbol.for("react.forward_ref"), + x = Symbol.for("react.suspense"), + y = Symbol.for("react.suspense_list"), + z = Symbol.for("react.memo"), + A = Symbol.for("react.lazy"), + aa = Symbol.for("react.debug_trace_mode"), + ba = Symbol.for("react.offscreen"), + ca = Symbol.for("react.cache"), + B = Symbol.for("react.default_value"), + C = Symbol.iterator; + function da(a) { + if (null === a || "object" !== _typeof(a)) return null; + a = C && a[C] || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + var D = { + isMounted: function isMounted() { + return !1; + }, + enqueueForceUpdate: function enqueueForceUpdate() {}, + enqueueReplaceState: function enqueueReplaceState() {}, + enqueueSetState: function enqueueSetState() {} + }, + E = Object.assign, + F = {}; + function G(a, b, c) { + this.props = a; + this.context = b; + this.refs = F; + this.updater = c || D; + } + G.prototype.isReactComponent = {}; + G.prototype.setState = function (a, b) { + if ("object" !== _typeof(a) && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a, b, "setState"); }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + G.prototype.forceUpdate = function (a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); }; - } - return _typeof(obj); - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } + function H() {} + H.prototype = G.prototype; + function I(a, b, c) { + this.props = a; + this.context = b; + this.refs = F; + this.updater = c || D; + } + var J = I.prototype = new H(); + J.constructor = I; + E(J, G.prototype); + J.isPureReactComponent = !0; + var K = Array.isArray, + L = Object.prototype.hasOwnProperty, + M = { + current: null + }, + N = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }; + function O(a, b, c) { + var d, + e = {}, + f = null, + g = null; + if (null != b) for (d in void 0 !== b.ref && (g = b.ref), void 0 !== b.key && (f = "" + b.key), b) { + L.call(b, d) && !N.hasOwnProperty(d) && (e[d] = b[d]); + } + var h = arguments.length - 2; + if (1 === h) e.children = c;else if (1 < h) { + for (var k = Array(h), m = 0; m < h; m++) { + k[m] = arguments[m + 2]; + } + e.children = k; + } + if (a && a.defaultProps) for (d in h = a.defaultProps, h) { + void 0 === e[d] && (e[d] = h[d]); + } + return { + $$typeof: l, + type: a, + key: f, + ref: g, + props: e, + _owner: M.current + }; + } + function ea(a, b) { + return { + $$typeof: l, + type: a.type, + key: b, + ref: a.ref, + props: a.props, + _owner: a._owner + }; + } + function P(a) { + return "object" === _typeof(a) && null !== a && a.$$typeof === l; + } + function escape(a) { + var b = { + "=": "=0", + ":": "=2" + }; + return "$" + a.replace(/[=:]/g, function (c) { + return b[c]; + }); + } + var Q = /\/+/g; + function R(a, b) { + return "object" === _typeof(a) && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); + } + function S(a, b, c, d, e) { + var f = _typeof(a); + if ("undefined" === f || "boolean" === f) a = null; + var g = !1; + if (null === a) g = !0;else switch (f) { + case "string": + case "number": + g = !0; + break; + case "object": + switch (a.$$typeof) { + case l: + case n: + g = !0; + } + } + if (g) return g = a, e = e(g), a = "" === d ? "." + R(g, 0) : d, K(e) ? (c = "", null != a && (c = a.replace(Q, "$&/") + "/"), S(e, b, c, "", function (m) { + return m; + })) : null != e && (P(e) && (e = ea(e, c + (!e.key || g && g.key === e.key ? "" : ("" + e.key).replace(Q, "$&/") + "/") + a)), b.push(e)), 1; + g = 0; + d = "" === d ? "." : d + ":"; + if (K(a)) for (var h = 0; h < a.length; h++) { + f = a[h]; + var k = d + R(f, h); + g += S(f, b, c, k, e); + } else if (k = da(a), "function" === typeof k) for (a = k.call(a), h = 0; !(f = a.next()).done;) { + f = f.value, k = d + R(f, h++), g += S(f, b, c, k, e); + } else if ("object" === f) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + return g; + } + function T(a, b, c) { + if (null == a) return a; + var d = [], + e = 0; + S(a, d, "", "", function (f) { + return b.call(c, f, e++); + }); + return d; + } + function fa(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then(function (c) { + if (0 === a._status || -1 === a._status) a._status = 1, a._result = c; + }, function (c) { + if (0 === a._status || -1 === a._status) a._status = 2, a._result = c; + }); + -1 === a._status && (a._status = 0, a._result = b); + } + if (1 === a._status) return a._result.default; + throw a._result; + } + var U = { + current: null + }; + function ha() { + return new WeakMap(); + } + function V() { + return { + s: 0, + v: void 0, + o: null, + p: null + }; + } + var W = { + current: null + }, + X = { + transition: null + }, + Y = { + ReactCurrentDispatcher: W, + ReactCurrentCache: U, + ReactCurrentBatchConfig: X, + ReactCurrentOwner: M, + ContextRegistry: {} + }, + Z = Y.ContextRegistry; + exports.Children = { + map: T, + forEach: function forEach(a, b, c) { + T(a, function () { + b.apply(this, arguments); + }, c); + }, + count: function count(a) { + var b = 0; + T(a, function () { + b++; + }); + return b; + }, + toArray: function toArray(a) { + return T(a, function (b) { + return b; + }) || []; + }, + only: function only(a) { + if (!P(a)) throw Error("React.Children.only expected to receive a single React element child."); + return a; + } + }; + exports.Component = G; + exports.Fragment = p; + exports.Profiler = r; + exports.PureComponent = I; + exports.StrictMode = q; + exports.Suspense = x; + exports.SuspenseList = y; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y; + exports.cache = function (a) { + return function () { + var b = U.current; + if (!b) return a.apply(null, arguments); + var c = b.getCacheForType(ha); + b = c.get(a); + void 0 === b && (b = V(), c.set(a, b)); + c = 0; + for (var d = arguments.length; c < d; c++) { + var e = arguments[c]; + if ("function" === typeof e || "object" === _typeof(e) && null !== e) { + var f = b.o; + null === f && (b.o = f = new WeakMap()); + b = f.get(e); + void 0 === b && (b = V(), f.set(e, b)); + } else f = b.p, null === f && (b.p = f = new Map()), b = f.get(e), void 0 === b && (b = V(), f.set(e, b)); + } + if (1 === b.s) return b.v; + if (2 === b.s) throw b.v; + try { + var g = a.apply(null, arguments); + c = b; + c.s = 1; + return c.v = g; + } catch (h) { + throw g = b, g.s = 2, g.v = h, h; + } + }; + }; + exports.cloneElement = function (a, b, c) { + if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); + var d = E({}, a.props), + e = a.key, + f = a.ref, + g = a._owner; + if (null != b) { + void 0 !== b.ref && (f = b.ref, g = M.current); + void 0 !== b.key && (e = "" + b.key); + if (a.type && a.type.defaultProps) var h = a.type.defaultProps; + for (k in b) { + L.call(b, k) && !N.hasOwnProperty(k) && (d[k] = void 0 === b[k] && void 0 !== h ? h[k] : b[k]); + } + } + var k = arguments.length - 2; + if (1 === k) d.children = c;else if (1 < k) { + h = Array(k); + for (var m = 0; m < k; m++) { + h[m] = arguments[m + 2]; + } + d.children = h; + } + return { + $$typeof: l, + type: a.type, + key: e, + ref: f, + props: d, + _owner: g + }; + }; + exports.createContext = function (a) { + a = { + $$typeof: u, + _currentValue: a, + _currentValue2: a, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }; + a.Provider = { + $$typeof: t, + _context: a + }; + return a.Consumer = a; + }; + exports.createElement = O; + exports.createFactory = function (a) { + var b = O.bind(null, a); + b.type = a; + return b; + }; + exports.createRef = function () { + return { + current: null + }; + }; + exports.createServerContext = function (a, b) { + var c = !0; + if (!Z[a]) { + c = !1; + var d = { + $$typeof: v, + _currentValue: b, + _currentValue2: b, + _defaultValue: b, + _threadCount: 0, + Provider: null, + Consumer: null, + _globalName: a + }; + d.Provider = { + $$typeof: t, + _context: d + }; + Z[a] = d; + } + d = Z[a]; + if (d._defaultValue === B) d._defaultValue = b, d._currentValue === B && (d._currentValue = b), d._currentValue2 === B && (d._currentValue2 = b);else if (c) throw Error("ServerContext: " + a + " already defined"); + return d; + }; + exports.experimental_useEffectEvent = function (a) { + return W.current.useEffectEvent(a); + }; + exports.experimental_useOptimistic = function (a, b) { + return W.current.useOptimistic(a, b); + }; + exports.forwardRef = function (a) { + return { + $$typeof: w, + render: a + }; + }; + exports.isValidElement = P; + exports.lazy = function (a) { + return { + $$typeof: A, + _payload: { + _status: -1, + _result: a + }, + _init: fa + }; + }; + exports.memo = function (a, b) { + return { + $$typeof: z, + type: a, + compare: void 0 === b ? null : b + }; + }; + exports.startTransition = function (a) { + var b = X.transition; + X.transition = {}; + try { + a(); + } finally { + X.transition = b; + } + }; + exports.unstable_Cache = ca; + exports.unstable_DebugTracingMode = aa; + exports.unstable_Offscreen = ba; + exports.unstable_act = function () { + throw Error("act(...) is not supported in production builds of React."); + }; + exports.unstable_getCacheForType = function (a) { + var b = U.current; + return b ? b.getCacheForType(a) : a(); + }; + exports.unstable_getCacheSignal = function () { + var a = U.current; + return a ? a.getCacheSignal() : (a = new AbortController(), a.abort(Error("This CacheSignal was requested outside React which means that it is immediately aborted.")), a.signal); + }; + exports.unstable_useCacheRefresh = function () { + return W.current.useCacheRefresh(); + }; + exports.unstable_useMemoCache = function (a) { + return W.current.useMemoCache(a); + }; + exports.use = function (a) { + return W.current.use(a); + }; + exports.useCallback = function (a, b) { + return W.current.useCallback(a, b); + }; + exports.useContext = function (a) { + return W.current.useContext(a); + }; + exports.useDebugValue = function () {}; + exports.useDeferredValue = function (a) { + return W.current.useDeferredValue(a); + }; + exports.useEffect = function (a, b) { + return W.current.useEffect(a, b); + }; + exports.useId = function () { + return W.current.useId(); + }; + exports.useImperativeHandle = function (a, b, c) { + return W.current.useImperativeHandle(a, b, c); + }; + exports.useInsertionEffect = function (a, b) { + return W.current.useInsertionEffect(a, b); + }; + exports.useLayoutEffect = function (a, b) { + return W.current.useLayoutEffect(a, b); + }; + exports.useMemo = function (a, b) { + return W.current.useMemo(a, b); + }; + exports.useReducer = function (a, b, c) { + return W.current.useReducer(a, b, c); + }; + exports.useRef = function (a) { + return W.current.useRef(a); + }; + exports.useState = function (a) { + return W.current.useState(a); + }; + exports.useSyncExternalStore = function (a, b, c) { + return W.current.useSyncExternalStore(a, b, c); + }; + exports.useTransition = function () { + return W.current.useTransition(); + }; + exports.version = "18.3.0-experimental-53ac21937-20230703"; - var cachedDisplayNames = new WeakMap(); + /***/ + }, - var encodedStringCache = new lru_cache__WEBPACK_IMPORTED_MODULE_0___default.a({ - max: 1000 - }); - function alphaSortKeys(a, b) { - if (a.toString() > b.toString()) { - return 1; - } else if (b.toString() > a.toString()) { - return -1; - } else { - return 0; - } - } - function getAllEnumerableKeys(obj) { - var keys = new Set(); - var current = obj; - var _loop = function _loop() { - var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current))); - var descriptors = Object.getOwnPropertyDescriptors(current); - currentKeys.forEach(function (key) { - if (descriptors[key].enumerable) { - keys.add(key); + /***/189: /***/function _(module, __unused_webpack_exports, __webpack_require__) { + "use strict"; + + if (true) { + module.exports = __webpack_require__(978); + } else {} + + /***/ + }, + + /***/206: /***/function _(module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } + return _typeof(obj); + } + (function (root, factory) { + 'use strict'; + + // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. + + /* istanbul ignore next */ + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(430)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + })(this, function ErrorStackParser(StackFrame) { + 'use strict'; + + var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/; + var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m; + var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/; + return { + /** + * Given an Error object, extract the most information from it. + * + * @param {Error} error object + * @return {Array} of StackFrames + */ + parse: function ErrorStackParser$$parse(error) { + if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') { + return this.parseOpera(error); + } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) { + return this.parseV8OrIE(error); + } else if (error.stack) { + return this.parseFFOrSafari(error); + } else { + throw new Error('Cannot parse given Error object'); + } + }, + // Separate line and column numbers from a string of the form: (URI:Line:Column) + extractLocation: function ErrorStackParser$$extractLocation(urlLike) { + // Fail-fast but return locations like "(native)" + if (urlLike.indexOf(':') === -1) { + return [urlLike]; + } + var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; + var parts = regExp.exec(urlLike.replace(/[()]/g, '')); + return [parts[1], parts[2] || undefined, parts[3] || undefined]; + }, + parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !!line.match(CHROME_IE_STACK_REGEXP); + }, this); + return filtered.map(function (line) { + if (line.indexOf('(eval ') > -1) { + // Throw away eval information until we implement stacktrace.js/stackframe#8 + line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, ''); + } + var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '('); // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in + // case it has spaces in it, as the string is split on \s+ later on + + var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/); // remove the parenthesized location from the line, if it was matched + + sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine; + var tokens = sanitizedLine.split(/\s+/).slice(1); // if a location was matched, pass it to extractLocation() otherwise pop the last token + + var locationParts = this.extractLocation(location ? location[1] : tokens.pop()); + var functionName = tokens.join(' ') || undefined; + var fileName = ['eval', ''].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0]; + return new StackFrame({ + functionName: functionName, + fileName: fileName, + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + }, this); + }, + parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !line.match(SAFARI_NATIVE_CODE_REGEXP); + }, this); + return filtered.map(function (line) { + // Throw away eval information until we implement stacktrace.js/stackframe#8 + if (line.indexOf(' > eval') > -1) { + line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1'); + } + if (line.indexOf('@') === -1 && line.indexOf(':') === -1) { + // Safari eval frames only have function names and nothing else + return new StackFrame({ + functionName: line + }); + } else { + var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/; + var matches = line.match(functionNameRegex); + var functionName = matches && matches[1] ? matches[1] : undefined; + var locationParts = this.extractLocation(line.replace(functionNameRegex, '')); + return new StackFrame({ + functionName: functionName, + fileName: locationParts[0], + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + } + }, this); + }, + parseOpera: function ErrorStackParser$$parseOpera(e) { + if (!e.stacktrace || e.message.indexOf('\n') > -1 && e.message.split('\n').length > e.stacktrace.split('\n').length) { + return this.parseOpera9(e); + } else if (!e.stack) { + return this.parseOpera10(e); + } else { + return this.parseOpera11(e); + } + }, + parseOpera9: function ErrorStackParser$$parseOpera9(e) { + var lineRE = /Line (\d+).*script (?:in )?(\S+)/i; + var lines = e.message.split('\n'); + var result = []; + for (var i = 2, len = lines.length; i < len; i += 2) { + var match = lineRE.exec(lines[i]); + if (match) { + result.push(new StackFrame({ + fileName: match[2], + lineNumber: match[1], + source: lines[i] + })); + } + } + return result; + }, + parseOpera10: function ErrorStackParser$$parseOpera10(e) { + var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i; + var lines = e.stacktrace.split('\n'); + var result = []; + for (var i = 0, len = lines.length; i < len; i += 2) { + var match = lineRE.exec(lines[i]); + if (match) { + result.push(new StackFrame({ + functionName: match[3] || undefined, + fileName: match[2], + lineNumber: match[1], + source: lines[i] + })); + } + } + return result; + }, + // Opera 10.65+ Error.stack very similar to FF/Safari + parseOpera11: function ErrorStackParser$$parseOpera11(error) { + var filtered = error.stack.split('\n').filter(function (line) { + return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/); + }, this); + return filtered.map(function (line) { + var tokens = line.split('@'); + var locationParts = this.extractLocation(tokens.pop()); + var functionCall = tokens.shift() || ''; + var functionName = functionCall.replace(//, '$2').replace(/\([^)]*\)/g, '') || undefined; + var argsRaw; + if (functionCall.match(/\(([^)]*)\)/)) { + argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1'); + } + var args = argsRaw === undefined || argsRaw === '[arguments not available]' ? undefined : argsRaw.split(','); + return new StackFrame({ + functionName: functionName, + args: args, + fileName: locationParts[0], + lineNumber: locationParts[1], + columnNumber: locationParts[2], + source: line + }); + }, this); + } + }; }); - current = Object.getPrototypeOf(current); - }; - while (current != null) { - _loop(); - } - return keys; - } - function getDisplayName(type) { - var fallbackName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Anonymous'; - var nameFromCache = cachedDisplayNames.get(type); - if (nameFromCache != null) { - return nameFromCache; - } - var displayName = fallbackName; - if (typeof type.displayName === 'string') { - displayName = type.displayName; - } else if (typeof type.name === 'string' && type.name !== '') { - displayName = type.name; - } - cachedDisplayNames.set(type, displayName); - return displayName; - } - var uidCounter = 0; - function getUID() { - return ++uidCounter; - } - function utfDecodeString(array) { - var string = ''; - for (var i = 0; i < array.length; i++) { - var char = array[i]; - string += String.fromCodePoint(char); - } - return string; - } - function surrogatePairToCodePoint(charCode1, charCode2) { - return ((charCode1 & 0x3ff) << 10) + (charCode2 & 0x3ff) + 0x10000; - } + /***/ + }, - function utfEncodeString(string) { - var cached = encodedStringCache.get(string); - if (cached !== undefined) { - return cached; - } - var encoded = []; - var i = 0; - var charCode; - while (i < string.length) { - charCode = string.charCodeAt(i); + /***/172: /***/function _(module) { + function _typeof(obj) { + "@babel/helpers - typeof"; - if ((charCode & 0xf800) === 0xd800) { - encoded.push(surrogatePairToCodePoint(charCode, string.charCodeAt(++i))); - } else { - encoded.push(charCode); + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + /** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + + /** Used as the `TypeError` message for "Functions" methods. */ + var FUNC_ERROR_TEXT = 'Expected a function'; + /** Used as references for various `Number` constants. */ + + var NAN = 0 / 0; + /** `Object#toString` result references. */ + + var symbolTag = '[object Symbol]'; + /** Used to match leading and trailing whitespace. */ + + var reTrim = /^\s+|\s+$/g; + /** Used to detect bad signed hexadecimal string values. */ + + var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + /** Used to detect binary string values. */ + + var reIsBinary = /^0b[01]+$/i; + /** Used to detect octal string values. */ + + var reIsOctal = /^0o[0-7]+$/i; + /** Built-in method references without a dependency on `root`. */ + + var freeParseInt = parseInt; + /** Detect free variable `global` from Node.js. */ + + var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global; + /** Detect free variable `self`. */ + + var freeSelf = (typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self && self.Object === Object && self; + /** Used as a reference to the global object. */ + + var root = freeGlobal || freeSelf || Function('return this')(); + /** Used for built-in method references. */ + + var objectProto = Object.prototype; + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + + var objectToString = objectProto.toString; + /* Built-in method references for those with the same name as other `lodash` methods. */ + + var nativeMax = Math.max, + nativeMin = Math.min; + /** + * Gets the timestamp of the number of milliseconds that have elapsed since + * the Unix epoch (1 January 1970 00:00:00 UTC). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Date + * @returns {number} Returns the timestamp. + * @example + * + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); + * // => Logs the number of milliseconds it took for the deferred invocation. + */ + + var now = function now() { + return root.Date.now(); + }; + /** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed `func` invocations and a `flush` method to immediately invoke them. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=false] + * Specify invoking on the leading edge of the timeout. + * @param {number} [options.maxWait] + * The maximum time `func` is allowed to be delayed before it's invoked. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // Avoid costly calculations while the window size is in flux. + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // Invoke `sendMail` when clicked, debouncing subsequent calls. + * jQuery(element).on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // Ensure `batchLog` is invoked once after 1 second of debounced calls. + * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var source = new EventSource('/stream'); + * jQuery(source).on('message', debounced); + * + * // Cancel the trailing debounced invocation. + * jQuery(window).on('popstate', debounced.cancel); + */ + + function debounce(func, wait, options) { + var lastArgs, + lastThis, + maxWait, + result, + timerId, + lastCallTime, + lastInvokeTime = 0, + leading = false, + maxing = false, + trailing = true; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + wait = toNumber(wait) || 0; + if (isObject(options)) { + leading = !!options.leading; + maxing = 'maxWait' in options; + maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + function invokeFunc(time) { + var args = lastArgs, + thisArg = lastThis; + lastArgs = lastThis = undefined; + lastInvokeTime = time; + result = func.apply(thisArg, args); + return result; + } + function leadingEdge(time) { + // Reset any `maxWait` timer. + lastInvokeTime = time; // Start the timer for the trailing edge. + + timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. + + return leading ? invokeFunc(time) : result; + } + function remainingWait(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime, + result = wait - timeSinceLastCall; + return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; + } + function shouldInvoke(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the + // trailing edge, the system time has gone backwards and we're treating + // it as the trailing edge, or we've hit the `maxWait` limit. + + return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; + } + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) { + return trailingEdge(time); + } // Restart the timer. + + timerId = setTimeout(timerExpired, remainingWait(time)); + } + function trailingEdge(time) { + timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been + // debounced at least once. + + if (trailing && lastArgs) { + return invokeFunc(time); + } + lastArgs = lastThis = undefined; + return result; + } + function cancel() { + if (timerId !== undefined) { + clearTimeout(timerId); + } + lastInvokeTime = 0; + lastArgs = lastCallTime = lastThis = timerId = undefined; + } + function flush() { + return timerId === undefined ? result : trailingEdge(now()); + } + function debounced() { + var time = now(), + isInvoking = shouldInvoke(time); + lastArgs = arguments; + lastThis = this; + lastCallTime = time; + if (isInvoking) { + if (timerId === undefined) { + return leadingEdge(lastCallTime); + } + if (maxing) { + // Handle invocations in a tight loop. + timerId = setTimeout(timerExpired, wait); + return invokeFunc(lastCallTime); + } + } + if (timerId === undefined) { + timerId = setTimeout(timerExpired, wait); + } + return result; + } + debounced.cancel = cancel; + debounced.flush = flush; + return debounced; + } + /** + * Creates a throttled function that only invokes `func` at most once per + * every `wait` milliseconds. The throttled function comes with a `cancel` + * method to cancel delayed `func` invocations and a `flush` method to + * immediately invoke them. Provide `options` to indicate whether `func` + * should be invoked on the leading and/or trailing edge of the `wait` + * timeout. The `func` is invoked with the last arguments provided to the + * throttled function. Subsequent calls to the throttled function return the + * result of the last `func` invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the throttled function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.throttle` and `_.debounce`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to throttle. + * @param {number} [wait=0] The number of milliseconds to throttle invocations to. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=true] + * Specify invoking on the leading edge of the timeout. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new throttled function. + * @example + * + * // Avoid excessively updating the position while scrolling. + * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); + * + * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. + * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); + * jQuery(element).on('click', throttled); + * + * // Cancel the trailing throttled invocation. + * jQuery(window).on('popstate', throttled.cancel); + */ + + function throttle(func, wait, options) { + var leading = true, + trailing = true; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + if (isObject(options)) { + leading = 'leading' in options ? !!options.leading : leading; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + return debounce(func, wait, { + 'leading': leading, + 'maxWait': wait, + 'trailing': trailing + }); } - ++i; - } - encodedStringCache.set(string, encoded); - return encoded; - } - function printOperationsArray(operations) { - var rendererID = operations[0]; - var rootID = operations[1]; - var logs = ["operations for renderer:".concat(rendererID, " and root:").concat(rootID)]; - var i = 2; + /** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ + + function isObject(value) { + var type = _typeof(value); + return !!value && (type == 'object' || type == 'function'); + } + /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + + function isObjectLike(value) { + return !!value && _typeof(value) == 'object'; + } + /** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ + + function isSymbol(value) { + return _typeof(value) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag; + } + /** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ + + function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? other + '' : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; + } + module.exports = throttle; - var stringTable = [null]; + /***/ + }, - var stringTableSize = operations[i++]; - var stringTableEnd = i + stringTableSize; - while (i < stringTableEnd) { - var nextLength = operations[i++]; - var nextString = utfDecodeString(operations.slice(i, i + nextLength)); - stringTable.push(nextString); - i += nextLength; - } - while (i < operations.length) { - var operation = operations[i]; - switch (operation) { - case _constants__WEBPACK_IMPORTED_MODULE_3__["l"]: - { - var _id = operations[i + 1]; - var type = operations[i + 2]; - i += 3; - if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["m"]) { - logs.push("Add new root node ".concat(_id)); - i++; + /***/730: /***/function _(module, __unused_webpack_exports, __webpack_require__) { + "use strict"; - i++; + /* provided dependency */ + var process = __webpack_require__(169); + module.exports = LRUCache; // This will be a proper iterable 'Map' in engines that support it, + // or a fakey-fake PseudoMap in older versions. - i++; + var Map = __webpack_require__(307); + var util = __webpack_require__(82); // A linked list to keep track of recently-used-ness - i++; - } else { - var parentID = operations[i]; - i++; - i++; + var Yallist = __webpack_require__(695); // use symbols if possible, otherwise just _props + + var hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1'; + var makeSymbol; + if (hasSymbol) { + makeSymbol = function makeSymbol(key) { + return Symbol(key); + }; + } else { + makeSymbol = function makeSymbol(key) { + return '_' + key; + }; + } + var MAX = makeSymbol('max'); + var LENGTH = makeSymbol('length'); + var LENGTH_CALCULATOR = makeSymbol('lengthCalculator'); + var ALLOW_STALE = makeSymbol('allowStale'); + var MAX_AGE = makeSymbol('maxAge'); + var DISPOSE = makeSymbol('dispose'); + var NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet'); + var LRU_LIST = makeSymbol('lruList'); + var CACHE = makeSymbol('cache'); + function naiveLength() { + return 1; + } // lruList is a yallist where the head is the youngest + // item, and the tail is the oldest. the list contains the Hit + // objects as the entries. + // Each Hit object has a reference to its Yallist.Node. This + // never changes. + // + // cache is a Map (or PseudoMap) that matches the keys to + // the Yallist.Node object. + + function LRUCache(options) { + if (!(this instanceof LRUCache)) { + return new LRUCache(options); + } + if (typeof options === 'number') { + options = { + max: options + }; + } + if (!options) { + options = {}; + } + var max = this[MAX] = options.max; // Kind of weird to have a default max of Infinity, but oh well. + + if (!max || !(typeof max === 'number') || max <= 0) { + this[MAX] = Infinity; + } + var lc = options.length || naiveLength; + if (typeof lc !== 'function') { + lc = naiveLength; + } + this[LENGTH_CALCULATOR] = lc; + this[ALLOW_STALE] = options.stale || false; + this[MAX_AGE] = options.maxAge || 0; + this[DISPOSE] = options.dispose; + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; + this.reset(); + } // resize the cache when the max changes. + + Object.defineProperty(LRUCache.prototype, 'max', { + set: function set(mL) { + if (!mL || !(typeof mL === 'number') || mL <= 0) { + mL = Infinity; + } + this[MAX] = mL; + trim(this); + }, + get: function get() { + return this[MAX]; + }, + enumerable: true + }); + Object.defineProperty(LRUCache.prototype, 'allowStale', { + set: function set(allowStale) { + this[ALLOW_STALE] = !!allowStale; + }, + get: function get() { + return this[ALLOW_STALE]; + }, + enumerable: true + }); + Object.defineProperty(LRUCache.prototype, 'maxAge', { + set: function set(mA) { + if (!mA || !(typeof mA === 'number') || mA < 0) { + mA = 0; + } + this[MAX_AGE] = mA; + trim(this); + }, + get: function get() { + return this[MAX_AGE]; + }, + enumerable: true + }); // resize the cache when the lengthCalculator changes. + + Object.defineProperty(LRUCache.prototype, 'lengthCalculator', { + set: function set(lC) { + if (typeof lC !== 'function') { + lC = naiveLength; + } + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC; + this[LENGTH] = 0; + this[LRU_LIST].forEach(function (hit) { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key); + this[LENGTH] += hit.length; + }, this); + } + trim(this); + }, + get: function get() { + return this[LENGTH_CALCULATOR]; + }, + enumerable: true + }); + Object.defineProperty(LRUCache.prototype, 'length', { + get: function get() { + return this[LENGTH]; + }, + enumerable: true + }); + Object.defineProperty(LRUCache.prototype, 'itemCount', { + get: function get() { + return this[LRU_LIST].length; + }, + enumerable: true + }); + LRUCache.prototype.rforEach = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this[LRU_LIST].tail; walker !== null;) { + var prev = walker.prev; + forEachStep(this, fn, walker, thisp); + walker = prev; + } + }; + function forEachStep(self, fn, node, thisp) { + var hit = node.value; + if (isStale(self, hit)) { + del(self, node); + if (!self[ALLOW_STALE]) { + hit = undefined; + } + } + if (hit) { + fn.call(thisp, hit.value, hit.key, self); + } + } + LRUCache.prototype.forEach = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this[LRU_LIST].head; walker !== null;) { + var next = walker.next; + forEachStep(this, fn, walker, thisp); + walker = next; + } + }; + LRUCache.prototype.keys = function () { + return this[LRU_LIST].toArray().map(function (k) { + return k.key; + }, this); + }; + LRUCache.prototype.values = function () { + return this[LRU_LIST].toArray().map(function (k) { + return k.value; + }, this); + }; + LRUCache.prototype.reset = function () { + if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { + this[LRU_LIST].forEach(function (hit) { + this[DISPOSE](hit.key, hit.value); + }, this); + } + this[CACHE] = new Map(); // hash of items by key + + this[LRU_LIST] = new Yallist(); // list of items in order of use recency - var displayNameStringID = operations[i]; - var displayName = stringTable[displayNameStringID]; - i++; - i++; + this[LENGTH] = 0; // length of items in the list + }; - logs.push("Add node ".concat(_id, " (").concat(displayName || 'null', ") as child of ").concat(parentID)); + LRUCache.prototype.dump = function () { + return this[LRU_LIST].map(function (hit) { + if (!isStale(this, hit)) { + return { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }; + } + }, this).toArray().filter(function (h) { + return h; + }); + }; + LRUCache.prototype.dumpLru = function () { + return this[LRU_LIST]; + }; + /* istanbul ignore next */ + + LRUCache.prototype.inspect = function (n, opts) { + var str = 'LRUCache {'; + var extras = false; + var as = this[ALLOW_STALE]; + if (as) { + str += '\n allowStale: true'; + extras = true; + } + var max = this[MAX]; + if (max && max !== Infinity) { + if (extras) { + str += ','; + } + str += '\n max: ' + util.inspect(max, opts); + extras = true; + } + var maxAge = this[MAX_AGE]; + if (maxAge) { + if (extras) { + str += ','; + } + str += '\n maxAge: ' + util.inspect(maxAge, opts); + extras = true; + } + var lc = this[LENGTH_CALCULATOR]; + if (lc && lc !== naiveLength) { + if (extras) { + str += ','; + } + str += '\n length: ' + util.inspect(this[LENGTH], opts); + extras = true; + } + var didFirst = false; + this[LRU_LIST].forEach(function (item) { + if (didFirst) { + str += ',\n '; + } else { + if (extras) { + str += ',\n'; } - break; + didFirst = true; + str += '\n '; } - case _constants__WEBPACK_IMPORTED_MODULE_3__["m"]: - { - var removeLength = operations[i + 1]; - i += 2; - for (var removeIndex = 0; removeIndex < removeLength; removeIndex++) { - var _id2 = operations[i]; - i += 1; - logs.push("Remove node ".concat(_id2)); + var key = util.inspect(item.key).split('\n').join('\n '); + var val = { + value: item.value + }; + if (item.maxAge !== maxAge) { + val.maxAge = item.maxAge; + } + if (lc !== naiveLength) { + val.length = item.length; + } + if (isStale(this, item)) { + val.stale = true; + } + val = util.inspect(val, opts).split('\n').join('\n '); + str += key + ' => ' + val; + }); + if (didFirst || extras) { + str += '\n'; + } + str += '}'; + return str; + }; + LRUCache.prototype.set = function (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE]; + var now = maxAge ? Date.now() : 0; + var len = this[LENGTH_CALCULATOR](value, key); + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)); + return false; + } + var node = this[CACHE].get(key); + var item = node.value; // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) { + this[DISPOSE](key, item.value); } - break; } - case _constants__WEBPACK_IMPORTED_MODULE_3__["n"]: - { - i += 1; - logs.push("Remove root ".concat(rootID)); - break; + item.now = now; + item.maxAge = maxAge; + item.value = value; + this[LENGTH] += len - item.length; + item.length = len; + this.get(key); + trim(this); + return true; + } + var hit = new Entry(key, value, len, now, maxAge); // oversized objects fall out of cache automatically. + + if (hit.length > this[MAX]) { + if (this[DISPOSE]) { + this[DISPOSE](key, value); } - case _constants__WEBPACK_IMPORTED_MODULE_3__["p"]: - { - var _id3 = operations[i + 1]; - var mode = operations[i + 1]; - i += 3; - logs.push("Mode ".concat(mode, " set for subtree with root ").concat(_id3)); - break; + return false; + } + this[LENGTH] += hit.length; + this[LRU_LIST].unshift(hit); + this[CACHE].set(key, this[LRU_LIST].head); + trim(this); + return true; + }; + LRUCache.prototype.has = function (key) { + if (!this[CACHE].has(key)) return false; + var hit = this[CACHE].get(key).value; + if (isStale(this, hit)) { + return false; + } + return true; + }; + LRUCache.prototype.get = function (key) { + return get(this, key, true); + }; + LRUCache.prototype.peek = function (key) { + return get(this, key, false); + }; + LRUCache.prototype.pop = function () { + var node = this[LRU_LIST].tail; + if (!node) return null; + del(this, node); + return node.value; + }; + LRUCache.prototype.del = function (key) { + del(this, this[CACHE].get(key)); + }; + LRUCache.prototype.load = function (arr) { + // reset the cache + this.reset(); + var now = Date.now(); // A previous serialized cache has the most recent items first + + for (var l = arr.length - 1; l >= 0; l--) { + var hit = arr[l]; + var expiresAt = hit.e || 0; + if (expiresAt === 0) { + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v); + } else { + var maxAge = expiresAt - now; // dont add already expired items + + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge); + } } - case _constants__WEBPACK_IMPORTED_MODULE_3__["o"]: - { - var _id4 = operations[i + 1]; - var numChildren = operations[i + 2]; - i += 3; - var children = operations.slice(i, i + numChildren); - i += numChildren; - logs.push("Re-order node ".concat(_id4, " children ").concat(children.join(','))); - break; + } + }; + LRUCache.prototype.prune = function () { + var self = this; + this[CACHE].forEach(function (value, key) { + get(self, key, false); + }); + }; + function get(self, key, doUse) { + var node = self[CACHE].get(key); + if (node) { + var hit = node.value; + if (isStale(self, hit)) { + del(self, node); + if (!self[ALLOW_STALE]) hit = undefined; + } else { + if (doUse) { + self[LRU_LIST].unshiftNode(node); + } } - case _constants__WEBPACK_IMPORTED_MODULE_3__["r"]: - i += 3; - break; - case _constants__WEBPACK_IMPORTED_MODULE_3__["q"]: - var id = operations[i + 1]; - var numErrors = operations[i + 2]; - var numWarnings = operations[i + 3]; - i += 4; - logs.push("Node ".concat(id, " has ").concat(numErrors, " errors and ").concat(numWarnings, " warnings")); - break; - default: - throw Error("Unsupported Bridge operation \"".concat(operation, "\"")); - } - } - console.log(logs.join('\n ')); - } - function getDefaultComponentFilters() { - return [{ - type: react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["b"], - value: react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["i"], - isEnabled: true - }]; - } - function getSavedComponentFilters() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["a"]); - if (raw != null) { - return JSON.parse(raw); + if (hit) hit = hit.value; + } + return hit; } - } catch (error) {} - return getDefaultComponentFilters(); - } - function saveComponentFilters(componentFilters) { - Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["a"], JSON.stringify(componentFilters)); - } - function getAppendComponentStack() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["e"]); - if (raw != null) { - return JSON.parse(raw); + function isStale(self, hit) { + if (!hit || !hit.maxAge && !self[MAX_AGE]) { + return false; + } + var stale = false; + var diff = Date.now() - hit.now; + if (hit.maxAge) { + stale = diff > hit.maxAge; + } else { + stale = self[MAX_AGE] && diff > self[MAX_AGE]; + } + return stale; + } + function trim(self) { + if (self[LENGTH] > self[MAX]) { + for (var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + var prev = walker.prev; + del(self, walker); + walker = prev; + } + } } - } catch (error) {} - return true; - } - function setAppendComponentStack(value) { - Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["e"], JSON.stringify(value)); - } - function getBreakOnConsoleErrors() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["d"]); - if (raw != null) { - return JSON.parse(raw); + function del(self, node) { + if (node) { + var hit = node.value; + if (self[DISPOSE]) { + self[DISPOSE](hit.key, hit.value); + } + self[LENGTH] -= hit.length; + self[CACHE].delete(hit.key); + self[LRU_LIST].removeNode(node); + } + } // classy, since V8 prefers predictable objects. + + function Entry(key, value, length, now, maxAge) { + this.key = key; + this.value = value; + this.length = length; + this.now = now; + this.maxAge = maxAge || 0; } - } catch (error) {} - return false; - } - function setBreakOnConsoleErrors(value) { - Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["d"], JSON.stringify(value)); - } - function getHideConsoleLogsInStrictMode() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["b"]); - if (raw != null) { - return JSON.parse(raw); + + /***/ + }, + + /***/169: /***/function _(module) { + // shim for using process in browser + var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it + // don't break things. But we need to wrap it in a try catch in case it is + // wrapped in strict mode code which doesn't define any globals. It's inside a + // function because try/catches deoptimize in certain engines. + + var cachedSetTimeout; + var cachedClearTimeout; + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); } - } catch (error) {} - return false; - } - function sethideConsoleLogsInStrictMode(value) { - Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["b"], JSON.stringify(value)); - } - function getShowInlineWarningsAndErrors() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["f"]); - if (raw != null) { - return JSON.parse(raw); + function defaultClearTimeout() { + throw new Error('clearTimeout has not been defined'); } - } catch (error) {} - return true; - } - function setShowInlineWarningsAndErrors(value) { - Object(_storage__WEBPACK_IMPORTED_MODULE_5__["b"])(_constants__WEBPACK_IMPORTED_MODULE_3__["f"], JSON.stringify(value)); - } - function getDefaultOpenInEditorURL() { - return typeof process.env.EDITOR_URL === 'string' ? process.env.EDITOR_URL : ''; - } - function getOpenInEditorURL() { - try { - var raw = Object(_storage__WEBPACK_IMPORTED_MODULE_5__["a"])(_constants__WEBPACK_IMPORTED_MODULE_3__["c"]); - if (raw != null) { - return JSON.parse(raw); + (function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + })(); + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } // if setTimeout wasn't available but was latter defined + + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } } - } catch (error) {} - return getDefaultOpenInEditorURL(); - } - function separateDisplayNameAndHOCs(displayName, type) { - if (displayName === null) { - return [null, null]; - } - var hocDisplayNames = null; - switch (type) { - case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["e"]: - case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["g"]: - case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["h"]: - case react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["j"]: - if (displayName.indexOf('(') >= 0) { - var matches = displayName.match(/[^()]+/g); - if (matches != null) { - displayName = matches.pop(); - hocDisplayNames = matches; + function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } // if clearTimeout wasn't available but was latter defined + + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); } } - break; - default: - break; - } - if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["j"]) { - if (hocDisplayNames === null) { - hocDisplayNames = ['Memo']; - } else { - hocDisplayNames.unshift('Memo'); } - } else if (type === react_devtools_shared_src_types__WEBPACK_IMPORTED_MODULE_4__["g"]) { - if (hocDisplayNames === null) { - hocDisplayNames = ['ForwardRef']; - } else { - hocDisplayNames.unshift('ForwardRef'); + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = -1; + function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } } - } - return [displayName, hocDisplayNames]; - } + function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + var len = queue.length; + while (len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); + } + process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } + }; // v8 likes predictible objects - function shallowDiffers(prev, next) { - for (var attribute in prev) { - if (!(attribute in next)) { - return true; + function Item(fun, array) { + this.fun = fun; + this.array = array; } - } - for (var _attribute in next) { - if (prev[_attribute] !== next[_attribute]) { - return true; + Item.prototype.run = function () { + this.fun.apply(null, this.array); + }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; // empty string to avoid regexp issues + + process.versions = {}; + function noop() {} + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + process.listeners = function (name) { + return []; + }; + process.binding = function (name) { + throw new Error('process.binding is not supported'); + }; + process.cwd = function () { + return '/'; + }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }; + process.umask = function () { + return 0; + }; + + /***/ + }, + + /***/307: /***/function _(module, __unused_webpack_exports, __webpack_require__) { + /* provided dependency */var process = __webpack_require__(169); + if (process.env.npm_package_name === 'pseudomap' && process.env.npm_lifecycle_script === 'test') process.env.TEST_PSEUDOMAP = 'true'; + if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) { + module.exports = Map; + } else { + module.exports = __webpack_require__(761); } - } - return false; - } - function getInObject(object, path) { - return path.reduce(function (reduced, attr) { - if (reduced) { - if (hasOwnProperty.call(reduced, attr)) { - return reduced[attr]; - } - if (typeof reduced[Symbol.iterator] === 'function') { - return Array.from(reduced)[attr]; + + /***/ + }, + + /***/761: /***/function _(module) { + var hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = PseudoMap; + function PseudoMap(set) { + if (!(this instanceof PseudoMap)) + // whyyyyyyy + throw new TypeError("Constructor PseudoMap requires 'new'"); + this.clear(); + if (set) { + if (set instanceof PseudoMap || typeof Map === 'function' && set instanceof Map) set.forEach(function (value, key) { + this.set(key, value); + }, this);else if (Array.isArray(set)) set.forEach(function (kv) { + this.set(kv[0], kv[1]); + }, this);else throw new TypeError('invalid argument'); } } - return null; - }, object); - } - function deletePathInObject(object, path) { - var length = path.length; - var last = path[length - 1]; - if (object != null) { - var parent = getInObject(object, path.slice(0, length - 1)); - if (parent) { - if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(parent)) { - parent.splice(last, 1); - } else { - delete parent[last]; + PseudoMap.prototype.forEach = function (fn, thisp) { + thisp = thisp || this; + Object.keys(this._data).forEach(function (k) { + if (k !== 'size') fn.call(thisp, this._data[k].value, this._data[k].key); + }, this); + }; + PseudoMap.prototype.has = function (k) { + return !!find(this._data, k); + }; + PseudoMap.prototype.get = function (k) { + var res = find(this._data, k); + return res && res.value; + }; + PseudoMap.prototype.set = function (k, v) { + set(this._data, k, v); + }; + PseudoMap.prototype.delete = function (k) { + var res = find(this._data, k); + if (res) { + delete this._data[res._index]; + this._data.size--; } + }; + PseudoMap.prototype.clear = function () { + var data = Object.create(null); + data.size = 0; + Object.defineProperty(this, '_data', { + value: data, + enumerable: false, + configurable: true, + writable: false + }); + }; + Object.defineProperty(PseudoMap.prototype, 'size', { + get: function get() { + return this._data.size; + }, + set: function set(n) {}, + enumerable: true, + configurable: true + }); + PseudoMap.prototype.values = PseudoMap.prototype.keys = PseudoMap.prototype.entries = function () { + throw new Error('iterators are not implemented in this version'); + }; // Either identical, or both NaN + + function same(a, b) { + return a === b || a !== a && b !== b; } - } - } - function renamePathInObject(object, oldPath, newPath) { - var length = oldPath.length; - if (object != null) { - var parent = getInObject(object, oldPath.slice(0, length - 1)); - if (parent) { - var lastOld = oldPath[length - 1]; - var lastNew = newPath[length - 1]; - parent[lastNew] = parent[lastOld]; - if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(parent)) { - parent.splice(lastOld, 1); - } else { - delete parent[lastOld]; + function Entry(k, v, i) { + this.key = k; + this.value = v; + this._index = i; + } + function find(data, k) { + for (var i = 0, s = '_' + k, key = s; hasOwnProperty.call(data, key); key = s + i++) { + if (same(data[key].key, k)) return data[key]; } } - } - } - function setInObject(object, path, value) { - var length = path.length; - var last = path[length - 1]; - if (object != null) { - var parent = getInObject(object, path.slice(0, length - 1)); - if (parent) { - parent[last] = value; + function set(data, k, v) { + for (var i = 0, s = '_' + k, key = s; hasOwnProperty.call(data, key); key = s + i++) { + if (same(data[key].key, k)) { + data[key].value = v; + return; + } + } + data.size++; + data[key] = new Entry(k, v, key); } - } - } - function getDataType(data) { - if (data === null) { - return 'null'; - } else if (data === undefined) { - return 'undefined'; - } - if (Object(react_is__WEBPACK_IMPORTED_MODULE_1__["isElement"])(data)) { - return 'react_element'; - } - if (typeof HTMLElement !== 'undefined' && data instanceof HTMLElement) { - return 'html_element'; - } - var type = _typeof(data); - switch (type) { - case 'bigint': - return 'bigint'; - case 'boolean': - return 'boolean'; - case 'function': - return 'function'; - case 'number': - if (Number.isNaN(data)) { - return 'nan'; - } else if (!Number.isFinite(data)) { - return 'infinity'; + /***/ + }, + + /***/430: /***/function _(module, exports) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; } else { - return 'number'; + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - case 'object': - if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(data)) { - return 'array'; - } else if (ArrayBuffer.isView(data)) { - return hasOwnProperty.call(data.constructor, 'BYTES_PER_ELEMENT') ? 'typed_array' : 'data_view'; - } else if (data.constructor && data.constructor.name === 'ArrayBuffer') { - return 'array_buffer'; - } else if (typeof data[Symbol.iterator] === 'function') { - var iterator = data[Symbol.iterator](); - if (!iterator) { - } else { - return iterator === data ? 'opaque_iterator' : 'iterator'; - } - } else if (data.constructor && data.constructor.name === 'RegExp') { - return 'regexp'; - } else { - var toStringValue = Object.prototype.toString.call(data); - if (toStringValue === '[object Date]') { - return 'date'; - } else if (toStringValue === '[object HTMLAllCollection]') { - return 'html_all_collection'; - } + return _typeof(obj); + } + (function (root, factory) { + 'use strict'; + + // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. + + /* istanbul ignore next */ + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + })(this, function () { + 'use strict'; + + function _isNumber(n) { + return !isNaN(parseFloat(n)) && isFinite(n); } - return 'object'; - case 'string': - return 'string'; - case 'symbol': - return 'symbol'; - case 'undefined': - if (Object.prototype.toString.call(data) === '[object HTMLAllCollection]') { - return 'html_all_collection'; + function _capitalize(str) { + return str.charAt(0).toUpperCase() + str.substring(1); } - return 'undefined'; - default: - return 'unknown'; - } - } - function getDisplayNameForReactElement(element) { - var elementType = Object(react_is__WEBPACK_IMPORTED_MODULE_1__["typeOf"])(element); - switch (elementType) { - case react_is__WEBPACK_IMPORTED_MODULE_1__["ContextConsumer"]: - return 'ContextConsumer'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["ContextProvider"]: - return 'ContextProvider'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["ForwardRef"]: - return 'ForwardRef'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Fragment"]: - return 'Fragment'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Lazy"]: - return 'Lazy'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Memo"]: - return 'Memo'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Portal"]: - return 'Portal'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Profiler"]: - return 'Profiler'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["StrictMode"]: - return 'StrictMode'; - case react_is__WEBPACK_IMPORTED_MODULE_1__["Suspense"]: - return 'Suspense'; - case shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__["a"]: - return 'SuspenseList'; - case shared_ReactSymbols__WEBPACK_IMPORTED_MODULE_2__["b"]: - return 'TracingMarker'; - default: - var type = element.type; - if (typeof type === 'string') { - return type; - } else if (typeof type === 'function') { - return getDisplayName(type, 'Anonymous'); - } else if (type != null) { - return 'NotImplementedInDevtools'; - } else { - return 'Element'; + function _getter(p) { + return function () { + return this[p]; + }; } - } - } - var MAX_PREVIEW_STRING_LENGTH = 50; - function truncateForDisplay(string) { - var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MAX_PREVIEW_STRING_LENGTH; - if (string.length > length) { - return string.substr(0, length) + 'โ€ฆ'; - } else { - return string; - } - } - - function formatDataForPreview(data, showFormattedValue) { - if (data != null && hasOwnProperty.call(data, _hydration__WEBPACK_IMPORTED_MODULE_6__["b"].type)) { - return showFormattedValue ? data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].preview_long] : data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].preview_short]; - } - var type = getDataType(data); - switch (type) { - case 'html_element': - return "<".concat(truncateForDisplay(data.tagName.toLowerCase()), " />"); - case 'function': - return truncateForDisplay("\u0192 ".concat(typeof data.name === 'function' ? '' : data.name, "() {}")); - case 'string': - return "\"".concat(data, "\""); - case 'bigint': - return truncateForDisplay(data.toString() + 'n'); - case 'regexp': - return truncateForDisplay(data.toString()); - case 'symbol': - return truncateForDisplay(data.toString()); - case 'react_element': - return "<".concat(truncateForDisplay(getDisplayNameForReactElement(data) || 'Unknown'), " />"); - case 'array_buffer': - return "ArrayBuffer(".concat(data.byteLength, ")"); - case 'data_view': - return "DataView(".concat(data.buffer.byteLength, ")"); - case 'array': - if (showFormattedValue) { - var formatted = ''; - for (var i = 0; i < data.length; i++) { - if (i > 0) { - formatted += ', '; - } - formatted += formatDataForPreview(data[i], false); - if (formatted.length > MAX_PREVIEW_STRING_LENGTH) { - break; + var booleanProps = ['isConstructor', 'isEval', 'isNative', 'isToplevel']; + var numericProps = ['columnNumber', 'lineNumber']; + var stringProps = ['fileName', 'functionName', 'source']; + var arrayProps = ['args']; + var props = booleanProps.concat(numericProps, stringProps, arrayProps); + function StackFrame(obj) { + if (!obj) return; + for (var i = 0; i < props.length; i++) { + if (obj[props[i]] !== undefined) { + this['set' + _capitalize(props[i])](obj[props[i]]); } } - return "[".concat(truncateForDisplay(formatted), "]"); - } else { - var length = hasOwnProperty.call(data, _hydration__WEBPACK_IMPORTED_MODULE_6__["b"].size) ? data[_hydration__WEBPACK_IMPORTED_MODULE_6__["b"].size] : data.length; - return "Array(".concat(length, ")"); - } - case 'typed_array': - var shortName = "".concat(data.constructor.name, "(").concat(data.length, ")"); - if (showFormattedValue) { - var _formatted = ''; - for (var _i = 0; _i < data.length; _i++) { - if (_i > 0) { - _formatted += ', '; - } - _formatted += data[_i]; - if (_formatted.length > MAX_PREVIEW_STRING_LENGTH) { - break; + } + StackFrame.prototype = { + getArgs: function getArgs() { + return this.args; + }, + setArgs: function setArgs(v) { + if (Object.prototype.toString.call(v) !== '[object Array]') { + throw new TypeError('Args must be an Array'); } - } - return "".concat(shortName, " [").concat(truncateForDisplay(_formatted), "]"); - } else { - return shortName; - } - case 'iterator': - var name = data.constructor.name; - if (showFormattedValue) { - var array = Array.from(data); - var _formatted2 = ''; - for (var _i2 = 0; _i2 < array.length; _i2++) { - var entryOrEntries = array[_i2]; - if (_i2 > 0) { - _formatted2 += ', '; - } - - if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__["a"])(entryOrEntries)) { - var key = formatDataForPreview(entryOrEntries[0], true); - var value = formatDataForPreview(entryOrEntries[1], false); - _formatted2 += "".concat(key, " => ").concat(value); + this.args = v; + }, + getEvalOrigin: function getEvalOrigin() { + return this.evalOrigin; + }, + setEvalOrigin: function setEvalOrigin(v) { + if (v instanceof StackFrame) { + this.evalOrigin = v; + } else if (v instanceof Object) { + this.evalOrigin = new StackFrame(v); } else { - _formatted2 += formatDataForPreview(entryOrEntries, false); + throw new TypeError('Eval Origin must be an Object or StackFrame'); } - if (_formatted2.length > MAX_PREVIEW_STRING_LENGTH) { - break; + }, + toString: function toString() { + var fileName = this.getFileName() || ''; + var lineNumber = this.getLineNumber() || ''; + var columnNumber = this.getColumnNumber() || ''; + var functionName = this.getFunctionName() || ''; + if (this.getIsEval()) { + if (fileName) { + return '[eval] (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; + } + return '[eval]:' + lineNumber + ':' + columnNumber; + } + if (functionName) { + return functionName + ' (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; } + return fileName + ':' + lineNumber + ':' + columnNumber; } - return "".concat(name, "(").concat(data.size, ") {").concat(truncateForDisplay(_formatted2), "}"); - } else { - return "".concat(name, "(").concat(data.size, ")"); + }; + StackFrame.fromString = function StackFrame$$fromString(str) { + var argsStartIndex = str.indexOf('('); + var argsEndIndex = str.lastIndexOf(')'); + var functionName = str.substring(0, argsStartIndex); + var args = str.substring(argsStartIndex + 1, argsEndIndex).split(','); + var locationString = str.substring(argsEndIndex + 1); + if (locationString.indexOf('@') === 0) { + var parts = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(locationString, ''); + var fileName = parts[1]; + var lineNumber = parts[2]; + var columnNumber = parts[3]; + } + return new StackFrame({ + functionName: functionName, + args: args || undefined, + fileName: fileName, + lineNumber: lineNumber || undefined, + columnNumber: columnNumber || undefined + }); + }; + for (var i = 0; i < booleanProps.length; i++) { + StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); + StackFrame.prototype['set' + _capitalize(booleanProps[i])] = function (p) { + return function (v) { + this[p] = Boolean(v); + }; + }(booleanProps[i]); } - case 'opaque_iterator': - { - return data[Symbol.toStringTag]; + for (var j = 0; j < numericProps.length; j++) { + StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); + StackFrame.prototype['set' + _capitalize(numericProps[j])] = function (p) { + return function (v) { + if (!_isNumber(v)) { + throw new TypeError(p + ' must be a Number'); + } + this[p] = Number(v); + }; + }(numericProps[j]); } - case 'date': - return data.toString(); - case 'object': - if (showFormattedValue) { - var keys = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys); - var _formatted3 = ''; - for (var _i3 = 0; _i3 < keys.length; _i3++) { - var _key = keys[_i3]; - if (_i3 > 0) { - _formatted3 += ', '; - } - _formatted3 += "".concat(_key.toString(), ": ").concat(formatDataForPreview(data[_key], false)); - if (_formatted3.length > MAX_PREVIEW_STRING_LENGTH) { - break; + for (var k = 0; k < stringProps.length; k++) { + StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); + StackFrame.prototype['set' + _capitalize(stringProps[k])] = function (p) { + return function (v) { + this[p] = String(v); + }; + }(stringProps[k]); + } + return StackFrame; + }); + + /***/ + }, + + /***/718: /***/function _(module) { + if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor; + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true } - } - return "{".concat(truncateForDisplay(_formatted3), "}"); + }); + }; + } else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor; + var TempCtor = function TempCtor() {}; + TempCtor.prototype = superCtor.prototype; + ctor.prototype = new TempCtor(); + ctor.prototype.constructor = ctor; + }; + } + + /***/ + }, + + /***/715: /***/function _(module) { + function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; } else { - return '{โ€ฆ}'; - } - case 'boolean': - case 'number': - case 'infinity': - case 'nan': - case 'null': - case 'undefined': - return data; - default: - try { - return truncateForDisplay(String(data)); - } catch (error) { - return 'unserializable'; + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - } - } - }).call(this, __webpack_require__(16)); + return _typeof(obj); + } + module.exports = function isBuffer(arg) { + return arg && _typeof(arg) === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function'; + }; - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + /***/ + }, - __webpack_require__.d(__webpack_exports__, "a", function () { - return CONCURRENT_MODE_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return CONCURRENT_MODE_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return CONTEXT_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return CONTEXT_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "r", function () { - return SERVER_CONTEXT_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "e", function () { - return DEPRECATED_ASYNC_MODE_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "f", function () { - return FORWARD_REF_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "g", function () { - return FORWARD_REF_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "h", function () { - return LAZY_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "i", function () { - return LAZY_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "j", function () { - return MEMO_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "k", function () { - return MEMO_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "l", function () { - return PROFILER_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "m", function () { - return PROFILER_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "n", function () { - return PROVIDER_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "o", function () { - return PROVIDER_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "p", function () { - return SCOPE_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "q", function () { - return SCOPE_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "s", function () { - return STRICT_MODE_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "t", function () { - return STRICT_MODE_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "w", function () { - return SUSPENSE_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "x", function () { - return SUSPENSE_SYMBOL_STRING; - }); - __webpack_require__.d(__webpack_exports__, "u", function () { - return SUSPENSE_LIST_NUMBER; - }); - __webpack_require__.d(__webpack_exports__, "v", function () { - return SUSPENSE_LIST_SYMBOL_STRING; - }); - var CONCURRENT_MODE_NUMBER = 0xeacf; - var CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)'; - var CONTEXT_NUMBER = 0xeace; - var CONTEXT_SYMBOL_STRING = 'Symbol(react.context)'; - var SERVER_CONTEXT_SYMBOL_STRING = 'Symbol(react.server_context)'; - var DEPRECATED_ASYNC_MODE_SYMBOL_STRING = 'Symbol(react.async_mode)'; - var ELEMENT_NUMBER = 0xeac7; - var ELEMENT_SYMBOL_STRING = 'Symbol(react.element)'; - var DEBUG_TRACING_MODE_NUMBER = 0xeae1; - var DEBUG_TRACING_MODE_SYMBOL_STRING = 'Symbol(react.debug_trace_mode)'; - var FORWARD_REF_NUMBER = 0xead0; - var FORWARD_REF_SYMBOL_STRING = 'Symbol(react.forward_ref)'; - var FRAGMENT_NUMBER = 0xeacb; - var FRAGMENT_SYMBOL_STRING = 'Symbol(react.fragment)'; - var LAZY_NUMBER = 0xead4; - var LAZY_SYMBOL_STRING = 'Symbol(react.lazy)'; - var MEMO_NUMBER = 0xead3; - var MEMO_SYMBOL_STRING = 'Symbol(react.memo)'; - var PORTAL_NUMBER = 0xeaca; - var PORTAL_SYMBOL_STRING = 'Symbol(react.portal)'; - var PROFILER_NUMBER = 0xead2; - var PROFILER_SYMBOL_STRING = 'Symbol(react.profiler)'; - var PROVIDER_NUMBER = 0xeacd; - var PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)'; - var SCOPE_NUMBER = 0xead7; - var SCOPE_SYMBOL_STRING = 'Symbol(react.scope)'; - var STRICT_MODE_NUMBER = 0xeacc; - var STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)'; - var SUSPENSE_NUMBER = 0xead1; - var SUSPENSE_SYMBOL_STRING = 'Symbol(react.suspense)'; - var SUSPENSE_LIST_NUMBER = 0xead8; - var SUSPENSE_LIST_SYMBOL_STRING = 'Symbol(react.suspense_list)'; - var SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED_SYMBOL_STRING = 'Symbol(react.server_context.defaultValue)'; - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "a", function () { - return cleanForBridge; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return copyToClipboard; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return copyWithDelete; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return copyWithRename; - }); - __webpack_require__.d(__webpack_exports__, "e", function () { - return copyWithSet; - }); - __webpack_require__.d(__webpack_exports__, "g", function () { - return getEffectDurations; - }); - __webpack_require__.d(__webpack_exports__, "f", function () { - return format; - }); - __webpack_require__.d(__webpack_exports__, "h", function () { - return isSynchronousXHRSupported; - }); - var clipboard_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); - var clipboard_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(clipboard_js__WEBPACK_IMPORTED_MODULE_0__); - var _hydration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); - var shared_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - - function cleanForBridge(data, isPathAllowed) { - var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - if (data !== null) { - var cleanedPaths = []; - var unserializablePaths = []; - var cleanedData = Object(_hydration__WEBPACK_IMPORTED_MODULE_1__["a"])(data, cleanedPaths, unserializablePaths, path, isPathAllowed); - return { - data: cleanedData, - cleaned: cleanedPaths, - unserializable: unserializablePaths - }; - } else { - return null; - } - } - function copyToClipboard(value) { - var safeToCopy = serializeToString(value); - var text = safeToCopy === undefined ? 'undefined' : safeToCopy; - var clipboardCopyText = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.clipboardCopyText; - - if (typeof clipboardCopyText === 'function') { - clipboardCopyText(text).catch(function (err) {}); - } else { - Object(clipboard_js__WEBPACK_IMPORTED_MODULE_0__["copy"])(text); - } - } - function copyWithDelete(obj, path) { - var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - var key = path[index]; - var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); - if (index + 1 === path.length) { - if (Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(updated)) { - updated.splice(key, 1); - } else { - delete updated[key]; - } - } else { - updated[key] = copyWithDelete(obj[key], path, index + 1); - } - return updated; - } - - function copyWithRename(obj, oldPath, newPath) { - var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; - var oldKey = oldPath[index]; - var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); - if (index + 1 === oldPath.length) { - var newKey = newPath[index]; + /***/82: /***/function _(__unused_webpack_module, exports, __webpack_require__) { + /* provided dependency */var process = __webpack_require__(169); + function _typeof(obj) { + "@babel/helpers - typeof"; - updated[newKey] = updated[oldKey]; - if (Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(updated)) { - updated.splice(oldKey, 1); - } else { - delete updated[oldKey]; - } - } else { - updated[oldKey] = copyWithRename(obj[oldKey], oldPath, newPath, index + 1); - } - return updated; - } - function copyWithSet(obj, path, value) { - var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; - if (index >= path.length) { - return value; - } - var key = path[index]; - var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__["a"])(obj) ? obj.slice() : _objectSpread({}, obj); + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return _typeof(obj); + } + + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) { + var keys = Object.keys(obj); + var descriptors = {}; + for (var i = 0; i < keys.length; i++) { + descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); + } + return descriptors; + }; + var formatRegExp = /%[sdj%]/g; + exports.format = function (f) { + if (!isString(f)) { + var objects = []; + for (var i = 0; i < arguments.length; i++) { + objects.push(inspect(arguments[i])); + } + return objects.join(' '); + } + var i = 1; + var args = arguments; + var len = args.length; + var str = String(f).replace(formatRegExp, function (x) { + if (x === '%%') return '%'; + if (i >= len) return x; + switch (x) { + case '%s': + return String(args[i++]); + case '%d': + return Number(args[i++]); + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; + } + default: + return x; + } + }); + for (var x = args[i]; i < len; x = args[++i]) { + if (isNull(x) || !isObject(x)) { + str += ' ' + x; + } else { + str += ' ' + inspect(x); + } + } + return str; + }; // Mark that a method should not be used. + // Returns a modified function which warns once by default. + // If --no-deprecation is set, then it is a no-op. - updated[key] = copyWithSet(obj[key], path, value, index + 1); - return updated; - } - function getEffectDurations(root) { - var effectDuration = null; - var passiveEffectDuration = null; - var hostRoot = root.current; - if (hostRoot != null) { - var stateNode = hostRoot.stateNode; - if (stateNode != null) { - effectDuration = stateNode.effectDuration != null ? stateNode.effectDuration : null; - passiveEffectDuration = stateNode.passiveEffectDuration != null ? stateNode.passiveEffectDuration : null; - } - } - return { - effectDuration: effectDuration, - passiveEffectDuration: passiveEffectDuration - }; - } - function serializeToString(data) { - var cache = new Set(); + exports.deprecate = function (fn, msg) { + if (typeof process !== 'undefined' && process.noDeprecation === true) { + return fn; + } // Allow for deprecating things in the process of starting up. - return JSON.stringify(data, function (key, value) { - if (_typeof(value) === 'object' && value !== null) { - if (cache.has(value)) { - return; + if (typeof process === 'undefined') { + return function () { + return exports.deprecate(fn, msg).apply(this, arguments); + }; + } + var warned = false; + function deprecated() { + if (!warned) { + if (process.throwDeprecation) { + throw new Error(msg); + } else if (process.traceDeprecation) { + console.trace(msg); + } else { + console.error(msg); + } + warned = true; + } + return fn.apply(this, arguments); + } + return deprecated; + }; + var debugs = {}; + var debugEnviron; + exports.debuglog = function (set) { + if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || ''; + set = set.toUpperCase(); + if (!debugs[set]) { + if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { + var pid = process.pid; + debugs[set] = function () { + var msg = exports.format.apply(exports, arguments); + console.error('%s %d: %s', set, pid, msg); + }; + } else { + debugs[set] = function () {}; + } + } + return debugs[set]; + }; + /** + * Echos the value of a value. Trys to print the value out + * in the best way possible given the different types. + * + * @param {Object} obj The object to print out. + * @param {Object} opts Optional options object that alters the output. + */ + + /* legacy: obj, showHidden, depth, colors*/ + + function inspect(obj, opts) { + // default options + var ctx = { + seen: [], + stylize: stylizeNoColor + }; // legacy... + + if (arguments.length >= 3) ctx.depth = arguments[2]; + if (arguments.length >= 4) ctx.colors = arguments[3]; + if (isBoolean(opts)) { + // legacy... + ctx.showHidden = opts; + } else if (opts) { + // got an "options" object + exports._extend(ctx, opts); + } // set default options + + if (isUndefined(ctx.showHidden)) ctx.showHidden = false; + if (isUndefined(ctx.depth)) ctx.depth = 2; + if (isUndefined(ctx.colors)) ctx.colors = false; + if (isUndefined(ctx.customInspect)) ctx.customInspect = true; + if (ctx.colors) ctx.stylize = stylizeWithColor; + return formatValue(ctx, obj, ctx.depth); + } + exports.inspect = inspect; // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics + + inspect.colors = { + 'bold': [1, 22], + 'italic': [3, 23], + 'underline': [4, 24], + 'inverse': [7, 27], + 'white': [37, 39], + 'grey': [90, 39], + 'black': [30, 39], + 'blue': [34, 39], + 'cyan': [36, 39], + 'green': [32, 39], + 'magenta': [35, 39], + 'red': [31, 39], + 'yellow': [33, 39] + }; // Don't use 'blue' not visible on cmd.exe + + inspect.styles = { + 'special': 'cyan', + 'number': 'yellow', + 'boolean': 'yellow', + 'undefined': 'grey', + 'null': 'bold', + 'string': 'green', + 'date': 'magenta', + // "name": intentionally not styling + 'regexp': 'red' + }; + function stylizeWithColor(str, styleType) { + var style = inspect.styles[styleType]; + if (style) { + return "\x1B[" + inspect.colors[style][0] + 'm' + str + "\x1B[" + inspect.colors[style][1] + 'm'; + } else { + return str; + } } - cache.add(value); - } - - if (typeof value === 'bigint') { - return value.toString() + 'n'; - } - return value; - }); - } - - function format(maybeMessage) { - for (var _len = arguments.length, inputArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - inputArgs[_key - 1] = arguments[_key]; - } - var args = inputArgs.slice(); - var formatted = String(maybeMessage); - - if (typeof maybeMessage === 'string') { - if (args.length) { - var REGEXP = /(%?)(%([jds]))/g; - formatted = formatted.replace(REGEXP, function (match, escaped, ptn, flag) { - var arg = args.shift(); - switch (flag) { - case 's': - arg += ''; - break; - case 'd': - case 'i': - arg = parseInt(arg, 10).toString(); - break; - case 'f': - arg = parseFloat(arg).toString(); - break; + function stylizeNoColor(str, styleType) { + return str; + } + function arrayToHash(array) { + var hash = {}; + array.forEach(function (val, idx) { + hash[val] = true; + }); + return hash; + } + function formatValue(ctx, value, recurseTimes) { + // Provide a hook for user-specified inspect functions. + // Check that value is an object with an inspect function on it + if (ctx.customInspect && value && isFunction(value.inspect) && + // Filter out the util module, it's inspect function is special + value.inspect !== exports.inspect && + // Also filter out any prototype objects using the circular check. + !(value.constructor && value.constructor.prototype === value)) { + var ret = value.inspect(recurseTimes, ctx); + if (!isString(ret)) { + ret = formatValue(ctx, ret, recurseTimes); + } + return ret; + } // Primitive types cannot have properties + + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } // Look up the keys of the object. + + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + if (ctx.showHidden) { + keys = Object.getOwnPropertyNames(value); + } // IE doesn't make error fields non-enumerable + // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx + + if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { + return formatError(value); + } // Some type of object without properties can be shortcutted. + + if (keys.length === 0) { + if (isFunction(value)) { + var name = value.name ? ': ' + value.name : ''; + return ctx.stylize('[Function' + name + ']', 'special'); + } + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } + if (isDate(value)) { + return ctx.stylize(Date.prototype.toString.call(value), 'date'); + } + if (isError(value)) { + return formatError(value); + } } - if (!escaped) { - return arg; + var base = '', + array = false, + braces = ['{', '}']; // Make Array say that they are Array + + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } // Make functions say that they are functions + + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } // Make RegExps say that they are RegExps + + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } // Make dates with properties first say the date + + if (isDate(value)) { + base = ' ' + Date.prototype.toUTCString.call(value); + } // Make error with message first say the error + + if (isError(value)) { + base = ' ' + formatError(value); } - args.unshift(arg); - return match; - }); - } - } - - if (args.length) { - for (var i = 0; i < args.length; i++) { - formatted += ' ' + String(args[i]); - } - } - - formatted = formatted.replace(/%{2,2}/g, '%'); - return String(formatted); - } - function isSynchronousXHRSupported() { - return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature('sync-xhr')); - } - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "a", function () { - return localStorageGetItem; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return localStorageSetItem; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return sessionStorageGetItem; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return sessionStorageRemoveItem; - }); - __webpack_require__.d(__webpack_exports__, "e", function () { - return sessionStorageSetItem; - }); - function localStorageGetItem(key) { - try { - return localStorage.getItem(key); - } catch (error) { - return null; - } - } - function localStorageRemoveItem(key) { - try { - localStorage.removeItem(key); - } catch (error) {} - } - function localStorageSetItem(key, value) { - try { - return localStorage.setItem(key, value); - } catch (error) {} - } - function sessionStorageGetItem(key) { - try { - return sessionStorage.getItem(key); - } catch (error) { - return null; - } - } - function sessionStorageRemoveItem(key) { - try { - sessionStorage.removeItem(key); - } catch (error) {} - } - function sessionStorageSetItem(key, value) { - try { - return sessionStorage.setItem(key, value); - } catch (error) {} - } - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - var isArray = Array.isArray; - __webpack_exports__["a"] = isArray; - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - if (true) { - module.exports = __webpack_require__(26); - } else {} + if (keys.length === 0 && (!array || value.length == 0)) { + return braces[0] + base + braces[1]; + } + if (recurseTimes < 0) { + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } else { + return ctx.stylize('[Object]', 'special'); + } + } + ctx.seen.push(value); + var output; + if (array) { + output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); + } else { + output = keys.map(function (key) { + return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); + }); + } + ctx.seen.pop(); + return reduceToSingleString(output, base, braces); + } + function formatPrimitive(ctx, value) { + if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); + if (isString(value)) { + var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + '\''; + return ctx.stylize(simple, 'string'); + } + if (isNumber(value)) return ctx.stylize('' + value, 'number'); + if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is "object", so special case here. - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + if (isNull(value)) return ctx.stylize('null', 'null'); + } + function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; + } + function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { + var output = []; + for (var i = 0, l = value.length; i < l; ++i) { + if (hasOwnProperty(value, String(i))) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); + } else { + output.push(''); + } + } + keys.forEach(function (key) { + if (!key.match(/^\d+$/)) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); + } + }); + return output; + } + function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { + var name, str, desc; + desc = Object.getOwnPropertyDescriptor(value, key) || { + value: value[key] + }; + if (desc.get) { + if (desc.set) { + str = ctx.stylize('[Getter/Setter]', 'special'); + } else { + str = ctx.stylize('[Getter]', 'special'); + } + } else { + if (desc.set) { + str = ctx.stylize('[Setter]', 'special'); + } + } + if (!hasOwnProperty(visibleKeys, key)) { + name = '[' + key + ']'; + } + if (!str) { + if (ctx.seen.indexOf(desc.value) < 0) { + if (isNull(recurseTimes)) { + str = formatValue(ctx, desc.value, null); + } else { + str = formatValue(ctx, desc.value, recurseTimes - 1); + } + if (str.indexOf('\n') > -1) { + if (array) { + str = str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n').substr(2); + } else { + str = '\n' + str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n'); + } + } + } else { + str = ctx.stylize('[Circular]', 'special'); + } + } + if (isUndefined(name)) { + if (array && key.match(/^\d+$/)) { + return str; + } + name = JSON.stringify('' + key); + if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { + name = name.substr(1, name.length - 2); + name = ctx.stylize(name, 'name'); + } else { + name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); + name = ctx.stylize(name, 'string'); + } + } + return name + ': ' + str; + } + function reduceToSingleString(output, base, braces) { + var numLinesEst = 0; + var length = output.reduce(function (prev, cur) { + numLinesEst++; + if (cur.indexOf('\n') >= 0) numLinesEst++; + return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; + }, 0); + if (length > 60) { + return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; + } + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; + } // NOTE: These type checking functions intentionally don't use `instanceof` + // because it is fragile and can be easily faked with `Object.create()`. - var isArrayImpl = Array.isArray; + function isArray(ar) { + return Array.isArray(ar); + } + exports.isArray = isArray; + function isBoolean(arg) { + return typeof arg === 'boolean'; + } + exports.isBoolean = isBoolean; + function isNull(arg) { + return arg === null; + } + exports.isNull = isNull; + function isNullOrUndefined(arg) { + return arg == null; + } + exports.isNullOrUndefined = isNullOrUndefined; + function isNumber(arg) { + return typeof arg === 'number'; + } + exports.isNumber = isNumber; + function isString(arg) { + return typeof arg === 'string'; + } + exports.isString = isString; + function isSymbol(arg) { + return _typeof(arg) === 'symbol'; + } + exports.isSymbol = isSymbol; + function isUndefined(arg) { + return arg === void 0; + } + exports.isUndefined = isUndefined; + function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; + } + exports.isRegExp = isRegExp; + function isObject(arg) { + return _typeof(arg) === 'object' && arg !== null; + } + exports.isObject = isObject; + function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; + } + exports.isDate = isDate; + function isError(e) { + return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); + } + exports.isError = isError; + function isFunction(arg) { + return typeof arg === 'function'; + } + exports.isFunction = isFunction; + function isPrimitive(arg) { + return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || _typeof(arg) === 'symbol' || + // ES6 symbol + typeof arg === 'undefined'; + } + exports.isPrimitive = isPrimitive; + exports.isBuffer = __webpack_require__(715); + function objectToString(o) { + return Object.prototype.toString.call(o); + } + function pad(n) { + return n < 10 ? '0' + n.toString(10) : n.toString(10); + } + var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 - function isArray(a) { - return isArrayImpl(a); - } + function timestamp() { + var d = new Date(); + var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':'); + return [d.getDate(), months[d.getMonth()], time].join(' '); + } // log is just a thin wrapper to console.log that prepends a timestamp - __webpack_exports__["a"] = isArray; + exports.log = function () { + console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); + }; + /** + * Inherit the prototype methods from one constructor into another. + * + * The Function.prototype.inherits from lang.js rewritten as a standalone + * function (not on Function.prototype). NOTE: If this file is to be loaded + * during bootstrapping this function needs to be rewritten using some native + * functions as prototype setup using normal JavaScript does not work as + * expected during bootstrapping (see mirror.js in r114903). + * + * @param {function} ctor Constructor function which needs to inherit the + * prototype. + * @param {function} superCtor Constructor function to inherit prototype from. + */ + + exports.inherits = __webpack_require__(718); + exports._extend = function (origin, add) { + // Don't do anything if add isn't an object + if (!add || !isObject(add)) return origin; + var keys = Object.keys(add); + var i = keys.length; + while (i--) { + origin[keys[i]] = add[keys[i]]; + } + return origin; + }; + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + } + var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; + exports.promisify = function promisify(original) { + if (typeof original !== 'function') throw new TypeError('The "original" argument must be of type Function'); + if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { + var fn = original[kCustomPromisifiedSymbol]; + if (typeof fn !== 'function') { + throw new TypeError('The "util.promisify.custom" argument must be of type Function'); + } + Object.defineProperty(fn, kCustomPromisifiedSymbol, { + value: fn, + enumerable: false, + writable: false, + configurable: true + }); + return fn; + } + function fn() { + var promiseResolve, promiseReject; + var promise = new Promise(function (resolve, reject) { + promiseResolve = resolve; + promiseReject = reject; + }); + var args = []; + for (var i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + args.push(function (err, value) { + if (err) { + promiseReject(err); + } else { + promiseResolve(value); + } + }); + try { + original.apply(this, args); + } catch (err) { + promiseReject(err); + } + return promise; + } + Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); + if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { + value: fn, + enumerable: false, + writable: false, + configurable: true + }); + return Object.defineProperties(fn, getOwnPropertyDescriptors(original)); + }; + exports.promisify.custom = kCustomPromisifiedSymbol; + function callbackifyOnRejected(reason, cb) { + // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). + // Because `null` is a special error value in callbacks which means "no error + // occurred", we error-wrap so the callback consumer can distinguish between + // "the promise rejected with null" or "the promise fulfilled with undefined". + if (!reason) { + var newReason = new Error('Promise was rejected with a falsy value'); + newReason.reason = reason; + reason = newReason; + } + return cb(reason); + } + function callbackify(original) { + if (typeof original !== 'function') { + throw new TypeError('The "original" argument must be of type Function'); + } // We DO NOT return the promise as it gives the user a false sense that + // the promise is actually somehow related to the callback's execution + // and that the callback throwing will reject the promise. + + function callbackified() { + var args = []; + for (var i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + var maybeCb = args.pop(); + if (typeof maybeCb !== 'function') { + throw new TypeError('The last argument must be of type Function'); + } + var self = this; + var cb = function cb() { + return maybeCb.apply(self, arguments); + }; // In true node style we process the callback on `nextTick` with all the + // implications (stack, `uncaughtException`, `async_hooks`) + + original.apply(this, args).then(function (ret) { + process.nextTick(cb, null, ret); + }, function (rej) { + process.nextTick(callbackifyOnRejected, rej, cb); + }); + } + Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); + Object.defineProperties(callbackified, getOwnPropertyDescriptors(original)); + return callbackified; + } + exports.callbackify = callbackify; - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + /***/ + }, - (function (global) { - __webpack_require__.d(__webpack_exports__, "c", function () { - return registerRenderer; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return patch; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return patchForStrictMode; - }); - __webpack_require__.d(__webpack_exports__, "d", function () { - return unpatchForStrictMode; - }); - var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); - var _renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); - var _DevToolsFiberComponentStack__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21); - var react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12); - function _createForOfIteratorHelper(o, allowArrayLike) { - var it; - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; + /***/695: /***/function _(module) { + module.exports = Yallist; + Yallist.Node = Node; + Yallist.create = Yallist; + function Yallist(list) { + var self = this; + if (!(self instanceof Yallist)) { + self = new Yallist(); + } + self.tail = null; + self.head = null; + self.length = 0; + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item); + }); + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]); + } + } + return self; } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = o[Symbol.iterator](); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; + Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list'); + } + var next = node.next; + var prev = node.prev; + if (next) { + next.prev = prev; + } + if (prev) { + prev.next = next; + } + if (node === this.head) { + this.head = next; + } + if (node === this.tail) { + this.tail = prev; + } + node.list.length--; + node.next = null; + node.prev = null; + node.list = null; + }; + Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return; + } + if (node.list) { + node.list.removeNode(node); + } + var head = this.head; + node.list = this; + node.next = head; + if (head) { + head.prev = node; + } + this.head = node; + if (!this.tail) { + this.tail = node; + } + this.length++; + }; + Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return; + } + if (node.list) { + node.list.removeNode(node); + } + var tail = this.tail; + node.list = this; + node.prev = tail; + if (tail) { + tail.next = node; + } + this.tail = node; + if (!this.head) { + this.head = node; + } + this.length++; + }; + Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]); + } + return this.length; + }; + Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]); + } + return this.length; + }; + Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined; + } + var res = this.tail.value; + this.tail = this.tail.prev; + if (this.tail) { + this.tail.next = null; + } else { + this.head = null; + } + this.length--; + return res; + }; + Yallist.prototype.shift = function () { + if (!this.head) { + return undefined; + } + var res = this.head.value; + this.head = this.head.next; + if (this.head) { + this.head.prev = null; + } else { + this.tail = null; + } + this.length--; + return res; + }; + Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this); + walker = walker.next; + } + }; + Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this; + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this); + walker = walker.prev; + } + }; + Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.next; + } + if (i === n && walker !== null) { + return walker.value; + } + }; + Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.prev; + } + if (i === n && walker !== null) { + return walker.value; + } + }; + Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this; + var res = new Yallist(); + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)); + walker = walker.next; + } + return res; + }; + Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this; + var res = new Yallist(); + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)); + walker = walker.prev; + } + return res; + }; + Yallist.prototype.reduce = function (fn, initial) { + var acc; + var walker = this.head; + if (arguments.length > 1) { + acc = initial; + } else if (this.head) { + walker = this.head.next; + acc = this.head.value; + } else { + throw new TypeError('Reduce of empty list with no initial value'); + } + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i); + walker = walker.next; + } + return acc; + }; + Yallist.prototype.reduceReverse = function (fn, initial) { + var acc; + var walker = this.tail; + if (arguments.length > 1) { + acc = initial; + } else if (this.tail) { + walker = this.tail.prev; + acc = this.tail.value; + } else { + throw new TypeError('Reduce of empty list with no initial value'); + } + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i); + walker = walker.prev; + } + return acc; + }; + Yallist.prototype.toArray = function () { + var arr = new Array(this.length); + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value; + walker = walker.next; + } + return arr; + }; + Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length); + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value; + walker = walker.prev; + } + return arr; + }; + Yallist.prototype.slice = function (from, to) { + to = to || this.length; + if (to < 0) { + to += this.length; + } + from = from || 0; + if (from < 0) { + from += this.length; + } + var ret = new Yallist(); + if (to < from || to < 0) { + return ret; + } + if (from < 0) { + from = 0; + } + if (to > this.length) { + to = this.length; + } + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next; + } + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value); + } + return ret; + }; + Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length; + if (to < 0) { + to += this.length; + } + from = from || 0; + if (from < 0) { + from += this.length; + } + var ret = new Yallist(); + if (to < from || to < 0) { + return ret; + } + if (from < 0) { + from = 0; + } + if (to > this.length) { + to = this.length; + } + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev; + } + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value); + } + return ret; + }; + Yallist.prototype.reverse = function () { + var head = this.head; + var tail = this.tail; + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev; + walker.prev = walker.next; + walker.next = p; + } + this.head = tail; + this.tail = head; + return this; + }; + function push(self, item) { + self.tail = new Node(item, self.tail, null, self); + if (!self.head) { + self.head = self.tail; + } + self.length++; + } + function unshift(self, item) { + self.head = new Node(item, null, self.head, self); + if (!self.tail) { + self.tail = self.head; + } + self.length++; + } + function Node(value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list); + } + this.list = list; + this.value = value; + if (prev) { + prev.next = this; + this.prev = prev; + } else { + this.prev = null; + } + if (next) { + next.prev = this; + this.next = next; + } else { + this.next = null; } } - }; - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } - - var OVERRIDE_CONSOLE_METHODS = ['error', 'trace', 'warn']; - var DIMMED_NODE_CONSOLE_COLOR = '\x1b[2m%s\x1b[0m'; - - var PREFIX_REGEX = /\s{4}(in|at)\s{1}/; - - var ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/; - function isStringComponentStack(text) { - return PREFIX_REGEX.test(text) || ROW_COLUMN_NUMBER_REGEX.test(text); - } - var STYLE_DIRECTIVE_REGEX = /^%c/; - - function isStrictModeOverride(args, method) { - return args.length === 2 && STYLE_DIRECTIVE_REGEX.test(args[0]) && args[1] === "color: ".concat(getConsoleColor(method) || ''); - } - function getConsoleColor(method) { - switch (method) { - case 'warn': - return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; - case 'error': - return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; - case 'log': - default: - return consoleSettingsRef.browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; - } - } - var injectedRenderers = new Map(); - var targetConsole = console; - var targetConsoleMethods = {}; - for (var method in console) { - targetConsoleMethods[method] = console[method]; - } - var unpatchFn = null; - var isNode = false; - try { - isNode = undefined === global; - } catch (error) {} - function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { - targetConsole = targetConsoleForTesting; - targetConsoleMethods = {}; - for (var _method in targetConsole) { - targetConsoleMethods[_method] = console[_method]; + /***/ } - } - function registerRenderer(renderer, onErrorOrWarning) { - var currentDispatcherRef = renderer.currentDispatcherRef, - getCurrentFiber = renderer.getCurrentFiber, - findFiberByHostInstance = renderer.findFiberByHostInstance, - version = renderer.version; + /******/ + }; + /************************************************************************/ + /******/ // The module cache + /******/ + var __webpack_module_cache__ = {}; + /******/ + /******/ // The require function + /******/ + function __webpack_require__(moduleId) { + /******/ // Check if module is in cache + /******/var cachedModule = __webpack_module_cache__[moduleId]; + /******/ + if (cachedModule !== undefined) { + /******/return cachedModule.exports; + /******/ + } + /******/ // Create a new module (and put it into the cache) + /******/ + var module = __webpack_module_cache__[moduleId] = { + /******/ // no module.id needed + /******/ // no module.loaded needed + /******/exports: {} + /******/ + }; + /******/ + /******/ // Execute the module function + /******/ + __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); + /******/ + /******/ // Return the exports of the module + /******/ + return module.exports; + /******/ + } + /******/ + /************************************************************************/ + /******/ /* webpack/runtime/compat get default export */ + /******/ + (function () { + /******/ // getDefaultExport function for compatibility with non-harmony modules + /******/__webpack_require__.n = function (module) { + /******/var getter = module && module.__esModule ? /******/function () { + return module['default']; + } : /******/function () { + return module; + }; + /******/ + __webpack_require__.d(getter, { + a: getter + }); + /******/ + return getter; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/define property getters */ + /******/ + (function () { + /******/ // define getter functions for harmony exports + /******/__webpack_require__.d = function (exports, definition) { + /******/for (var key in definition) { + /******/if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { + /******/Object.defineProperty(exports, key, { + enumerable: true, + get: definition[key] + }); + /******/ + } + /******/ + } + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/hasOwnProperty shorthand */ + /******/ + (function () { + /******/__webpack_require__.o = function (obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/make namespace object */ + /******/ + (function () { + /******/ // define __esModule on exports + /******/__webpack_require__.r = function (exports) { + /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { + /******/Object.defineProperty(exports, Symbol.toStringTag, { + value: 'Module' + }); + /******/ + } + /******/ + Object.defineProperty(exports, '__esModule', { + value: true + }); + /******/ + }; + /******/ + })(); + /******/ + /************************************************************************/ + var __webpack_exports__ = {}; + // This entry need to be wrapped in an IIFE because it need to be in strict mode. + (function () { + "use strict"; - if (typeof findFiberByHostInstance !== 'function') { - return; - } + // ESM COMPAT FLAG + __webpack_require__.r(__webpack_exports__); - if (currentDispatcherRef != null && typeof getCurrentFiber === 'function') { - var _getInternalReactCons = Object(_renderer__WEBPACK_IMPORTED_MODULE_1__["b"])(version), - ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork; - injectedRenderers.set(renderer, { - currentDispatcherRef: currentDispatcherRef, - getCurrentFiber: getCurrentFiber, - workTagMap: ReactTypeOfWork, - onErrorOrWarning: onErrorOrWarning - }); - } - } - var consoleSettingsRef = { - appendComponentStack: false, - breakOnConsoleErrors: false, - showInlineWarningsAndErrors: false, - hideConsoleLogsInStrictMode: false, - browserTheme: 'dark' - }; - - function patch(_ref) { - var appendComponentStack = _ref.appendComponentStack, - breakOnConsoleErrors = _ref.breakOnConsoleErrors, - showInlineWarningsAndErrors = _ref.showInlineWarningsAndErrors, - hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, - browserTheme = _ref.browserTheme; - consoleSettingsRef.appendComponentStack = appendComponentStack; - consoleSettingsRef.breakOnConsoleErrors = breakOnConsoleErrors; - consoleSettingsRef.showInlineWarningsAndErrors = showInlineWarningsAndErrors; - consoleSettingsRef.hideConsoleLogsInStrictMode = hideConsoleLogsInStrictMode; - consoleSettingsRef.browserTheme = browserTheme; - if (appendComponentStack || breakOnConsoleErrors || showInlineWarningsAndErrors) { - if (unpatchFn !== null) { - return; + // EXPORTS + __webpack_require__.d(__webpack_exports__, { + "connectToDevTools": function connectToDevTools() { + return (/* binding */_connectToDevTools + ); } - var originalConsoleMethods = {}; - unpatchFn = function unpatchFn() { - for (var _method2 in originalConsoleMethods) { - try { - targetConsole[_method2] = originalConsoleMethods[_method2]; - } catch (error) {} + }); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/events.js + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + var EventEmitter = /*#__PURE__*/function () { + function EventEmitter() { + _classCallCheck(this, EventEmitter); + _defineProperty(this, "listenersMap", new Map()); + } + _createClass(EventEmitter, [{ + key: "addListener", + value: function addListener(event, listener) { + var listeners = this.listenersMap.get(event); + if (listeners === undefined) { + this.listenersMap.set(event, [listener]); + } else { + var index = listeners.indexOf(listener); + if (index < 0) { + listeners.push(listener); + } + } } - }; - OVERRIDE_CONSOLE_METHODS.forEach(function (method) { - try { - var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ : targetConsole[method]; - var overrideMethod = function overrideMethod() { - var shouldAppendWarningStack = false; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - if (method !== 'log') { - if (consoleSettingsRef.appendComponentStack) { - var lastArg = args.length > 0 ? args[args.length - 1] : null; - var alreadyHasComponentStack = typeof lastArg === 'string' && isStringComponentStack(lastArg); - - shouldAppendWarningStack = !alreadyHasComponentStack; - } + }, { + key: "emit", + value: function emit(event) { + var listeners = this.listenersMap.get(event); + if (listeners !== undefined) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - var shouldShowInlineWarningsAndErrors = consoleSettingsRef.showInlineWarningsAndErrors && (method === 'error' || method === 'warn'); - - var _iterator = _createForOfIteratorHelper(injectedRenderers.values()), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var _step$value = _step.value, - currentDispatcherRef = _step$value.currentDispatcherRef, - getCurrentFiber = _step$value.getCurrentFiber, - onErrorOrWarning = _step$value.onErrorOrWarning, - workTagMap = _step$value.workTagMap; - var current = getCurrentFiber(); - if (current != null) { - try { - if (shouldShowInlineWarningsAndErrors) { - if (typeof onErrorOrWarning === 'function') { - onErrorOrWarning(current, method, - args.slice()); - } - } - if (shouldAppendWarningStack) { - var componentStack = Object(_DevToolsFiberComponentStack__WEBPACK_IMPORTED_MODULE_2__["a"])(workTagMap, current, currentDispatcherRef); - if (componentStack !== '') { - if (isStrictModeOverride(args, method)) { - args[0] = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["f"])(args[0], componentStack); - } else { - args.push(componentStack); - } - } - } - } catch (error) { - setTimeout(function () { - throw error; - }, 0); - } finally { - break; + if (listeners.length === 1) { + // No need to clone or try/catch + var listener = listeners[0]; + listener.apply(null, args); + } else { + var didThrow = false; + var caughtError = null; + var clonedListeners = Array.from(listeners); + for (var i = 0; i < clonedListeners.length; i++) { + var _listener = clonedListeners[i]; + try { + _listener.apply(null, args); + } catch (error) { + if (caughtError === null) { + didThrow = true; + caughtError = error; } } } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); + if (didThrow) { + throw caughtError; + } } - if (consoleSettingsRef.breakOnConsoleErrors) { - debugger; + } + } + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this.listenersMap.clear(); + } + }, { + key: "removeListener", + value: function removeListener(event, listener) { + var listeners = this.listenersMap.get(event); + if (listeners !== undefined) { + var index = listeners.indexOf(listener); + if (index >= 0) { + listeners.splice(index, 1); } - originalMethod.apply(void 0, args); - }; - overrideMethod.__REACT_DEVTOOLS_ORIGINAL_METHOD__ = originalMethod; - originalMethod.__REACT_DEVTOOLS_OVERRIDE_METHOD__ = overrideMethod; + } + } + }]); + return EventEmitter; + }(); - targetConsole[method] = overrideMethod; - } catch (error) {} - }); - } else { - unpatch(); + // EXTERNAL MODULE: ../../node_modules/lodash.throttle/index.js + var lodash_throttle = __webpack_require__(172); + var lodash_throttle_default = /*#__PURE__*/__webpack_require__.n(lodash_throttle); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/constants.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + var CHROME_WEBSTORE_EXTENSION_ID = 'fmkadmapgofadopljbjfkapdkoienihi'; + var INTERNAL_EXTENSION_ID = 'dnjnjgbfilfphmojnmhliehogmojhclc'; + var LOCAL_EXTENSION_ID = 'ikiahnapldjmdmpkmfhjdjilojjhgcbf'; // Flip this flag to true to enable verbose console debug logging. + + var __DEBUG__ = false; // Flip this flag to true to enable performance.mark() and performance.measure() timings. + + var __PERFORMANCE_PROFILE__ = false; + var TREE_OPERATION_ADD = 1; + var TREE_OPERATION_REMOVE = 2; + var TREE_OPERATION_REORDER_CHILDREN = 3; + var TREE_OPERATION_UPDATE_TREE_BASE_DURATION = 4; + var TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS = 5; + var TREE_OPERATION_REMOVE_ROOT = 6; + var TREE_OPERATION_SET_SUBTREE_MODE = 7; + var PROFILING_FLAG_BASIC_SUPPORT = 1; + var PROFILING_FLAG_TIMELINE_SUPPORT = 2; + var LOCAL_STORAGE_DEFAULT_TAB_KEY = 'React::DevTools::defaultTab'; + var constants_LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY = 'React::DevTools::componentFilters'; + var SESSION_STORAGE_LAST_SELECTION_KEY = 'React::DevTools::lastSelection'; + var constants_LOCAL_STORAGE_OPEN_IN_EDITOR_URL = 'React::DevTools::openInEditorUrl'; + var LOCAL_STORAGE_PARSE_HOOK_NAMES_KEY = 'React::DevTools::parseHookNames'; + var SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY = 'React::DevTools::recordChangeDescriptions'; + var SESSION_STORAGE_RELOAD_AND_PROFILE_KEY = 'React::DevTools::reloadAndProfile'; + var constants_LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS = 'React::DevTools::breakOnConsoleErrors'; + var LOCAL_STORAGE_BROWSER_THEME = 'React::DevTools::theme'; + var constants_LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY = 'React::DevTools::appendComponentStack'; + var constants_LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY = 'React::DevTools::showInlineWarningsAndErrors'; + var LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY = 'React::DevTools::traceUpdatesEnabled'; + var constants_LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE = 'React::DevTools::hideConsoleLogsInStrictMode'; + var PROFILER_EXPORT_VERSION = 5; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/storage.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + function storage_localStorageGetItem(key) { + try { + return localStorage.getItem(key); + } catch (error) { + return null; + } } - } - - function unpatch() { - if (unpatchFn !== null) { - unpatchFn(); - unpatchFn = null; + function localStorageRemoveItem(key) { + try { + localStorage.removeItem(key); + } catch (error) {} } - } - var unpatchForStrictModeFn = null; - - function patchForStrictMode() { - if (react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__["a"]) { - var overrideConsoleMethods = ['error', 'trace', 'warn', 'log']; - if (unpatchForStrictModeFn !== null) { - return; - } - var originalConsoleMethods = {}; - unpatchForStrictModeFn = function unpatchForStrictModeFn() { - for (var _method3 in originalConsoleMethods) { - try { - targetConsole[_method3] = originalConsoleMethods[_method3]; - } catch (error) {} - } - }; - overrideConsoleMethods.forEach(function (method) { - try { - var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; - var overrideMethod = function overrideMethod() { - if (!consoleSettingsRef.hideConsoleLogsInStrictMode) { - if (isNode) { - originalMethod(DIMMED_NODE_CONSOLE_COLOR, _utils__WEBPACK_IMPORTED_MODULE_0__["f"].apply(void 0, arguments)); - } else { - var color = getConsoleColor(method); - if (color) { - originalMethod("%c".concat(_utils__WEBPACK_IMPORTED_MODULE_0__["f"].apply(void 0, arguments)), "color: ".concat(color)); - } else { - throw Error('Console color is not defined'); - } - } - } - }; - overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; - originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; - - targetConsole[method] = overrideMethod; - } catch (error) {} - }); + function storage_localStorageSetItem(key, value) { + try { + return localStorage.setItem(key, value); + } catch (error) {} } - } - - function unpatchForStrictMode() { - if (react_devtools_feature_flags__WEBPACK_IMPORTED_MODULE_3__["a"]) { - if (unpatchForStrictModeFn !== null) { - unpatchForStrictModeFn(); - unpatchForStrictModeFn = null; + function sessionStorageGetItem(key) { + try { + return sessionStorage.getItem(key); + } catch (error) { + return null; } } - } - }).call(this, __webpack_require__(13)); - - }, - function (module, exports, __webpack_require__) { - (function (process) { - function _typeof(obj) { - "@babel/helpers - typeof"; + function sessionStorageRemoveItem(key) { + try { + sessionStorage.removeItem(key); + } catch (error) {} + } + function sessionStorageSetItem(key, value) { + try { + return sessionStorage.setItem(key, value); + } catch (error) {} + } + ; // CONCATENATED MODULE: ../../node_modules/memoize-one/esm/index.js + var simpleIsEqual = function simpleIsEqual(a, b) { + return a === b; + }; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; + /* harmony default export */ + function esm(resultFn) { + var isEqual = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : simpleIsEqual; + var lastThis = void 0; + var lastArgs = []; + var lastResult = void 0; + var calledOnce = false; + var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) { + return isEqual(newArg, lastArgs[index]); }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + var result = function result() { + for (var _len = arguments.length, newArgs = Array(_len), _key = 0; _key < _len; _key++) { + newArgs[_key] = arguments[_key]; + } + if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) { + return lastResult; + } + calledOnce = true; + lastThis = this; + lastArgs = newArgs; + lastResult = resultFn.apply(this, newArgs); + return lastResult; }; + return result; } - return _typeof(obj); - } - exports = module.exports = SemVer; - var debug; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/utils.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // Get the window object for the document that a node belongs to, + // or return null if it cannot be found (node not attached to DOM, + // etc). + function getOwnerWindow(node) { + if (!node.ownerDocument) { + return null; + } + return node.ownerDocument.defaultView; + } // Get the iframe containing a node, or return null if it cannot + // be found (node not within iframe, etc). - if ((typeof process === "undefined" ? "undefined" : _typeof(process)) === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) { - debug = function debug() { - var args = Array.prototype.slice.call(arguments, 0); - args.unshift('SEMVER'); - console.log.apply(console, args); - }; - } else { - debug = function debug() {}; - } - - exports.SEMVER_SPEC_VERSION = '2.0.0'; - var MAX_LENGTH = 256; - var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || - 9007199254740991; - - var MAX_SAFE_COMPONENT_LENGTH = 16; - - var re = exports.re = []; - var src = exports.src = []; - var t = exports.tokens = {}; - var R = 0; - function tok(n) { - t[n] = R++; - } - - tok('NUMERICIDENTIFIER'); - src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'; - tok('NUMERICIDENTIFIERLOOSE'); - src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'; - - tok('NONNUMERICIDENTIFIER'); - src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'; - - tok('MAINVERSION'); - src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + '(' + src[t.NUMERICIDENTIFIER] + ')'; - tok('MAINVERSIONLOOSE'); - src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'; - - tok('PRERELEASEIDENTIFIER'); - src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + '|' + src[t.NONNUMERICIDENTIFIER] + ')'; - tok('PRERELEASEIDENTIFIERLOOSE'); - src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + '|' + src[t.NONNUMERICIDENTIFIER] + ')'; - - tok('PRERELEASE'); - src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'; - tok('PRERELEASELOOSE'); - src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'; - - tok('BUILDIDENTIFIER'); - src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'; - - tok('BUILD'); - src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'; - - tok('FULL'); - tok('FULLPLAIN'); - src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + src[t.PRERELEASE] + '?' + src[t.BUILD] + '?'; - src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'; - - tok('LOOSEPLAIN'); - src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + '?' + src[t.BUILD] + '?'; - tok('LOOSE'); - src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'; - tok('GTLT'); - src[t.GTLT] = '((?:<|>)?=?)'; - - tok('XRANGEIDENTIFIERLOOSE'); - src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'; - tok('XRANGEIDENTIFIER'); - src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'; - tok('XRANGEPLAIN'); - src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + '(?:' + src[t.PRERELEASE] + ')?' + src[t.BUILD] + '?' + ')?)?'; - tok('XRANGEPLAINLOOSE'); - src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + '(?:' + src[t.PRERELEASELOOSE] + ')?' + src[t.BUILD] + '?' + ')?)?'; - tok('XRANGE'); - src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'; - tok('XRANGELOOSE'); - src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'; - - tok('COERCE'); - src[t.COERCE] = '(^|[^\\d])' + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:$|[^\\d])'; - tok('COERCERTL'); - re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g'); - - tok('LONETILDE'); - src[t.LONETILDE] = '(?:~>?)'; - tok('TILDETRIM'); - src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'; - re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g'); - var tildeTrimReplace = '$1~'; - tok('TILDE'); - src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'; - tok('TILDELOOSE'); - src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'; - - tok('LONECARET'); - src[t.LONECARET] = '(?:\\^)'; - tok('CARETTRIM'); - src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'; - re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g'); - var caretTrimReplace = '$1^'; - tok('CARET'); - src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'; - tok('CARETLOOSE'); - src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'; - - tok('COMPARATORLOOSE'); - src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'; - tok('COMPARATOR'); - src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'; - - tok('COMPARATORTRIM'); - src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'; - - re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g'); - var comparatorTrimReplace = '$1$2$3'; - - tok('HYPHENRANGE'); - src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + '\\s+-\\s+' + '(' + src[t.XRANGEPLAIN] + ')' + '\\s*$'; - tok('HYPHENRANGELOOSE'); - src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s+-\\s+' + '(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s*$'; - - tok('STAR'); - src[t.STAR] = '(<|>)?=?\\s*\\*'; - - for (var i = 0; i < R; i++) { - debug(i, src[i]); - if (!re[i]) { - re[i] = new RegExp(src[i]); - } - } - exports.parse = parse; - function parse(version, options) { - if (!options || _typeof(options) !== 'object') { - options = { - loose: !!options, - includePrerelease: false - }; - } - if (version instanceof SemVer) { - return version; - } - if (typeof version !== 'string') { - return null; - } - if (version.length > MAX_LENGTH) { - return null; - } - var r = options.loose ? re[t.LOOSE] : re[t.FULL]; - if (!r.test(version)) { - return null; - } - try { - return new SemVer(version, options); - } catch (er) { + function getOwnerIframe(node) { + var nodeWindow = getOwnerWindow(node); + if (nodeWindow) { + return nodeWindow.frameElement; + } return null; + } // Get a bounding client rect for a node, with an + // offset added to compensate for its border. + + function getBoundingClientRectWithBorderOffset(node) { + var dimensions = getElementDimensions(node); + return mergeRectOffsets([node.getBoundingClientRect(), { + top: dimensions.borderTop, + left: dimensions.borderLeft, + bottom: dimensions.borderBottom, + right: dimensions.borderRight, + // This width and height won't get used by mergeRectOffsets (since this + // is not the first rect in the array), but we set them so that this + // object type checks as a ClientRect. + width: 0, + height: 0 + }]); + } // Add together the top, left, bottom, and right properties of + // each ClientRect, but keep the width and height of the first one. + + function mergeRectOffsets(rects) { + return rects.reduce(function (previousRect, rect) { + if (previousRect == null) { + return rect; + } + return { + top: previousRect.top + rect.top, + left: previousRect.left + rect.left, + width: previousRect.width, + height: previousRect.height, + bottom: previousRect.bottom + rect.bottom, + right: previousRect.right + rect.right + }; + }); + } // Calculate a boundingClientRect for a node relative to boundaryWindow, + // taking into account any offsets caused by intermediate iframes. + + function getNestedBoundingClientRect(node, boundaryWindow) { + var ownerIframe = getOwnerIframe(node); + if (ownerIframe && ownerIframe !== boundaryWindow) { + var rects = [node.getBoundingClientRect()]; + var currentIframe = ownerIframe; + var onlyOneMore = false; + while (currentIframe) { + var rect = getBoundingClientRectWithBorderOffset(currentIframe); + rects.push(rect); + currentIframe = getOwnerIframe(currentIframe); + if (onlyOneMore) { + break; + } // We don't want to calculate iframe offsets upwards beyond + // the iframe containing the boundaryWindow, but we + // need to calculate the offset relative to the boundaryWindow. + + if (currentIframe && getOwnerWindow(currentIframe) === boundaryWindow) { + onlyOneMore = true; + } + } + return mergeRectOffsets(rects); + } else { + return node.getBoundingClientRect(); + } } - } - exports.valid = valid; - function valid(version, options) { - var v = parse(version, options); - return v ? v.version : null; - } - exports.clean = clean; - function clean(version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options); - return s ? s.version : null; - } - exports.SemVer = SemVer; - function SemVer(version, options) { - if (!options || _typeof(options) !== 'object') { - options = { - loose: !!options, - includePrerelease: false + function getElementDimensions(domElement) { + var calculatedStyle = window.getComputedStyle(domElement); + return { + borderLeft: parseInt(calculatedStyle.borderLeftWidth, 10), + borderRight: parseInt(calculatedStyle.borderRightWidth, 10), + borderTop: parseInt(calculatedStyle.borderTopWidth, 10), + borderBottom: parseInt(calculatedStyle.borderBottomWidth, 10), + marginLeft: parseInt(calculatedStyle.marginLeft, 10), + marginRight: parseInt(calculatedStyle.marginRight, 10), + marginTop: parseInt(calculatedStyle.marginTop, 10), + marginBottom: parseInt(calculatedStyle.marginBottom, 10), + paddingLeft: parseInt(calculatedStyle.paddingLeft, 10), + paddingRight: parseInt(calculatedStyle.paddingRight, 10), + paddingTop: parseInt(calculatedStyle.paddingTop, 10), + paddingBottom: parseInt(calculatedStyle.paddingBottom, 10) }; } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/Highlighter/Overlay.js + function Overlay_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function Overlay_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function Overlay_createClass(Constructor, protoProps, staticProps) { + if (protoProps) Overlay_defineProperties(Constructor.prototype, protoProps); + if (staticProps) Overlay_defineProperties(Constructor, staticProps); + return Constructor; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var Overlay_assign = Object.assign; // Note that the Overlay components are not affected by the active Theme, + // because they highlight elements in the main Chrome window (outside of devtools). + // The colors below were chosen to roughly match those used by Chrome devtools. + + var OverlayRect = /*#__PURE__*/function () { + function OverlayRect(doc, container) { + Overlay_classCallCheck(this, OverlayRect); + this.node = doc.createElement('div'); + this.border = doc.createElement('div'); + this.padding = doc.createElement('div'); + this.content = doc.createElement('div'); + this.border.style.borderColor = overlayStyles.border; + this.padding.style.borderColor = overlayStyles.padding; + this.content.style.backgroundColor = overlayStyles.background; + Overlay_assign(this.node.style, { + borderColor: overlayStyles.margin, + pointerEvents: 'none', + position: 'fixed' + }); + this.node.style.zIndex = '10000000'; + this.node.appendChild(this.border); + this.border.appendChild(this.padding); + this.padding.appendChild(this.content); + container.appendChild(this.node); + } + Overlay_createClass(OverlayRect, [{ + key: "remove", + value: function remove() { + if (this.node.parentNode) { + this.node.parentNode.removeChild(this.node); + } + } + }, { + key: "update", + value: function update(box, dims) { + boxWrap(dims, 'margin', this.node); + boxWrap(dims, 'border', this.border); + boxWrap(dims, 'padding', this.padding); + Overlay_assign(this.content.style, { + height: box.height - dims.borderTop - dims.borderBottom - dims.paddingTop - dims.paddingBottom + 'px', + width: box.width - dims.borderLeft - dims.borderRight - dims.paddingLeft - dims.paddingRight + 'px' + }); + Overlay_assign(this.node.style, { + top: box.top - dims.marginTop + 'px', + left: box.left - dims.marginLeft + 'px' + }); + } + }]); + return OverlayRect; + }(); + var OverlayTip = /*#__PURE__*/function () { + function OverlayTip(doc, container) { + Overlay_classCallCheck(this, OverlayTip); + this.tip = doc.createElement('div'); + Overlay_assign(this.tip.style, { + display: 'flex', + flexFlow: 'row nowrap', + backgroundColor: '#333740', + borderRadius: '2px', + fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace', + fontWeight: 'bold', + padding: '3px 5px', + pointerEvents: 'none', + position: 'fixed', + fontSize: '12px', + whiteSpace: 'nowrap' + }); + this.nameSpan = doc.createElement('span'); + this.tip.appendChild(this.nameSpan); + Overlay_assign(this.nameSpan.style, { + color: '#ee78e6', + borderRight: '1px solid #aaaaaa', + paddingRight: '0.5rem', + marginRight: '0.5rem' + }); + this.dimSpan = doc.createElement('span'); + this.tip.appendChild(this.dimSpan); + Overlay_assign(this.dimSpan.style, { + color: '#d7d7d7' + }); + this.tip.style.zIndex = '10000000'; + container.appendChild(this.tip); + } + Overlay_createClass(OverlayTip, [{ + key: "remove", + value: function remove() { + if (this.tip.parentNode) { + this.tip.parentNode.removeChild(this.tip); + } + } + }, { + key: "updateText", + value: function updateText(name, width, height) { + this.nameSpan.textContent = name; + this.dimSpan.textContent = Math.round(width) + 'px ร— ' + Math.round(height) + 'px'; + } + }, { + key: "updatePosition", + value: function updatePosition(dims, bounds) { + var tipRect = this.tip.getBoundingClientRect(); + var tipPos = findTipPos(dims, bounds, { + width: tipRect.width, + height: tipRect.height + }); + Overlay_assign(this.tip.style, tipPos.style); + } + }]); + return OverlayTip; + }(); + var Overlay = /*#__PURE__*/function () { + function Overlay(agent) { + Overlay_classCallCheck(this, Overlay); + + // Find the root window, because overlays are positioned relative to it. + var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + this.window = currentWindow; // When opened in shells/dev, the tooltip should be bound by the app iframe, not by the topmost window. + + var tipBoundsWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + this.tipBoundsWindow = tipBoundsWindow; + var doc = currentWindow.document; + this.container = doc.createElement('div'); + this.container.style.zIndex = '10000000'; + this.tip = new OverlayTip(doc, this.container); + this.rects = []; + this.agent = agent; + doc.body.appendChild(this.container); + } + Overlay_createClass(Overlay, [{ + key: "remove", + value: function remove() { + this.tip.remove(); + this.rects.forEach(function (rect) { + rect.remove(); + }); + this.rects.length = 0; + if (this.container.parentNode) { + this.container.parentNode.removeChild(this.container); + } + } + }, { + key: "inspect", + value: function inspect(nodes, name) { + var _this = this; + + // We can't get the size of text nodes or comment nodes. React as of v15 + // heavily uses comment nodes to delimit text. + var elements = nodes.filter(function (node) { + return node.nodeType === Node.ELEMENT_NODE; + }); + while (this.rects.length > elements.length) { + var rect = this.rects.pop(); + rect.remove(); + } + if (elements.length === 0) { + return; + } + while (this.rects.length < elements.length) { + this.rects.push(new OverlayRect(this.window.document, this.container)); + } + var outerBox = { + top: Number.POSITIVE_INFINITY, + right: Number.NEGATIVE_INFINITY, + bottom: Number.NEGATIVE_INFINITY, + left: Number.POSITIVE_INFINITY + }; + elements.forEach(function (element, index) { + var box = getNestedBoundingClientRect(element, _this.window); + var dims = getElementDimensions(element); + outerBox.top = Math.min(outerBox.top, box.top - dims.marginTop); + outerBox.right = Math.max(outerBox.right, box.left + box.width + dims.marginRight); + outerBox.bottom = Math.max(outerBox.bottom, box.top + box.height + dims.marginBottom); + outerBox.left = Math.min(outerBox.left, box.left - dims.marginLeft); + var rect = _this.rects[index]; + rect.update(box, dims); + }); + if (!name) { + name = elements[0].nodeName.toLowerCase(); + var node = elements[0]; + var rendererInterface = this.agent.getBestMatchingRendererInterface(node); + if (rendererInterface) { + var id = rendererInterface.getFiberIDForNative(node, true); + if (id) { + var ownerName = rendererInterface.getDisplayNameForFiberID(id, true); + if (ownerName) { + name += ' (in ' + ownerName + ')'; + } + } + } + } + this.tip.updateText(name, outerBox.right - outerBox.left, outerBox.bottom - outerBox.top); + var tipBounds = getNestedBoundingClientRect(this.tipBoundsWindow.document.documentElement, this.window); + this.tip.updatePosition({ + top: outerBox.top, + left: outerBox.left, + height: outerBox.bottom - outerBox.top, + width: outerBox.right - outerBox.left + }, { + top: tipBounds.top + this.tipBoundsWindow.scrollY, + left: tipBounds.left + this.tipBoundsWindow.scrollX, + height: this.tipBoundsWindow.innerHeight, + width: this.tipBoundsWindow.innerWidth + }); + } + }]); + return Overlay; + }(); + function findTipPos(dims, bounds, tipSize) { + var tipHeight = Math.max(tipSize.height, 20); + var tipWidth = Math.max(tipSize.width, 60); + var margin = 5; + var top; + if (dims.top + dims.height + tipHeight <= bounds.top + bounds.height) { + if (dims.top + dims.height < bounds.top + 0) { + top = bounds.top + margin; + } else { + top = dims.top + dims.height + margin; + } + } else if (dims.top - tipHeight <= bounds.top + bounds.height) { + if (dims.top - tipHeight - margin < bounds.top + margin) { + top = bounds.top + margin; + } else { + top = dims.top - tipHeight - margin; + } } else { - version = version.version; + top = bounds.top + bounds.height - tipHeight - margin; } - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version); - } - if (version.length > MAX_LENGTH) { - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters'); - } - if (!(this instanceof SemVer)) { - return new SemVer(version, options); - } - debug('SemVer', version, options); - this.options = options; - this.loose = !!options.loose; - var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); - if (!m) { - throw new TypeError('Invalid Version: ' + version); - } - this.raw = version; - - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version'); + var left = dims.left + margin; + if (dims.left < bounds.left) { + left = bounds.left + margin; + } + if (dims.left + tipWidth > bounds.left + bounds.width) { + left = bounds.left + bounds.width - tipWidth - margin; + } + top += 'px'; + left += 'px'; + return { + style: { + top: top, + left: left + } + }; } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version'); + function boxWrap(dims, what, node) { + Overlay_assign(node.style, { + borderTopWidth: dims[what + 'Top'] + 'px', + borderLeftWidth: dims[what + 'Left'] + 'px', + borderRightWidth: dims[what + 'Right'] + 'px', + borderBottomWidth: dims[what + 'Bottom'] + 'px', + borderStyle: 'solid' + }); } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version'); + var overlayStyles = { + background: 'rgba(120, 170, 210, 0.7)', + padding: 'rgba(77, 200, 0, 0.3)', + margin: 'rgba(255, 155, 0, 0.3)', + border: 'rgba(255, 200, 50, 0.3)' + }; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/Highlighter/Highlighter.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var SHOW_DURATION = 2000; + var timeoutID = null; + var overlay = null; + function hideOverlay(agent) { + if (window.document == null) { + agent.emit('hideNativeHighlight'); + return; + } + timeoutID = null; + if (overlay !== null) { + overlay.remove(); + overlay = null; + } } + function showOverlay(elements, componentName, agent, hideAfterTimeout) { + if (window.document == null) { + if (elements != null && elements[0] != null) { + agent.emit('showNativeHighlight', elements[0]); + } + return; + } + if (timeoutID !== null) { + clearTimeout(timeoutID); + } + if (elements == null) { + return; + } + if (overlay === null) { + overlay = new Overlay(agent); + } + overlay.inspect(elements, componentName); + if (hideAfterTimeout) { + timeoutID = setTimeout(function () { + return hideOverlay(agent); + }, SHOW_DURATION); + } + } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/Highlighter/index.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + // This plug-in provides in-page highlighting of the selected element. + // It is used by the browser extension and the standalone DevTools shell (when connected to a browser). + // It is not currently the mechanism used to highlight React Native views. + // That is done by the React Native Inspector component. + var iframesListeningTo = new Set(); + function setupHighlighter(bridge, agent) { + bridge.addListener('clearNativeElementHighlight', clearNativeElementHighlight); + bridge.addListener('highlightNativeElement', highlightNativeElement); + bridge.addListener('shutdown', stopInspectingNative); + bridge.addListener('startInspectingNative', startInspectingNative); + bridge.addListener('stopInspectingNative', stopInspectingNative); + function startInspectingNative() { + registerListenersOnWindow(window); + } + function registerListenersOnWindow(window) { + // This plug-in may run in non-DOM environments (e.g. React Native). + if (window && typeof window.addEventListener === 'function') { + window.addEventListener('click', onClick, true); + window.addEventListener('mousedown', onMouseEvent, true); + window.addEventListener('mouseover', onMouseEvent, true); + window.addEventListener('mouseup', onMouseEvent, true); + window.addEventListener('pointerdown', onPointerDown, true); + window.addEventListener('pointermove', onPointerMove, true); + window.addEventListener('pointerup', onPointerUp, true); + } else { + agent.emit('startInspectingNative'); + } + } + function stopInspectingNative() { + hideOverlay(agent); + removeListenersOnWindow(window); + iframesListeningTo.forEach(function (frame) { + try { + removeListenersOnWindow(frame.contentWindow); + } catch (error) {// This can error when the iframe is on a cross-origin. + } + }); + iframesListeningTo = new Set(); + } + function removeListenersOnWindow(window) { + // This plug-in may run in non-DOM environments (e.g. React Native). + if (window && typeof window.removeEventListener === 'function') { + window.removeEventListener('click', onClick, true); + window.removeEventListener('mousedown', onMouseEvent, true); + window.removeEventListener('mouseover', onMouseEvent, true); + window.removeEventListener('mouseup', onMouseEvent, true); + window.removeEventListener('pointerdown', onPointerDown, true); + window.removeEventListener('pointermove', onPointerMove, true); + window.removeEventListener('pointerup', onPointerUp, true); + } else { + agent.emit('stopInspectingNative'); + } + } + function clearNativeElementHighlight() { + hideOverlay(agent); + } + function highlightNativeElement(_ref) { + var displayName = _ref.displayName, + hideAfterTimeout = _ref.hideAfterTimeout, + id = _ref.id, + openNativeElementsPanel = _ref.openNativeElementsPanel, + rendererID = _ref.rendererID, + scrollIntoView = _ref.scrollIntoView; + var renderer = agent.rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + hideOverlay(agent); + return; + } // In some cases fiber may already be unmounted - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; + if (!renderer.hasFiberWithId(id)) { + hideOverlay(agent); + return; + } + var nodes = renderer.findNativeNodesForFiberID(id); + if (nodes != null && nodes[0] != null) { + var node = nodes[0]; // $FlowFixMe[method-unbinding] + + if (scrollIntoView && typeof node.scrollIntoView === 'function') { + // If the node isn't visible show it before highlighting it. + // We may want to reconsider this; it might be a little disruptive. + node.scrollIntoView({ + block: 'nearest', + inline: 'nearest' + }); + } + showOverlay(nodes, displayName, agent, hideAfterTimeout); + if (openNativeElementsPanel) { + window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 = node; + bridge.send('syncSelectionToNativeElementsPanel'); } + } else { + hideOverlay(agent); + } + } + function onClick(event) { + event.preventDefault(); + event.stopPropagation(); + stopInspectingNative(); + bridge.send('stopInspectingNative', true); + } + function onMouseEvent(event) { + event.preventDefault(); + event.stopPropagation(); + } + function onPointerDown(event) { + event.preventDefault(); + event.stopPropagation(); + selectFiberForNode(getEventTarget(event)); + } + var lastHoveredNode = null; + function onPointerMove(event) { + event.preventDefault(); + event.stopPropagation(); + var target = getEventTarget(event); + if (lastHoveredNode === target) return; + lastHoveredNode = target; + if (target.tagName === 'IFRAME') { + var iframe = target; + try { + if (!iframesListeningTo.has(iframe)) { + var _window = iframe.contentWindow; + registerListenersOnWindow(_window); + iframesListeningTo.add(iframe); + } + } catch (error) {// This can error when the iframe is on a cross-origin. + } + } // Don't pass the name explicitly. + // It will be inferred from DOM tag and Fiber owner. + + showOverlay([target], null, agent, false); + selectFiberForNode(target); + } + function onPointerUp(event) { + event.preventDefault(); + event.stopPropagation(); + } + var selectFiberForNode = lodash_throttle_default()(esm(function (node) { + var id = agent.getIDForNode(node); + if (id !== null) { + bridge.send('selectFiber', id); + } + }), 200, + // Don't change the selection in the very first 200ms + // because those are usually unintentional as you lift the cursor. + { + leading: false + }); + function getEventTarget(event) { + if (event.composed) { + return event.composedPath()[0]; + } + return event.target; + } + } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/TraceUpdates/canvas.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + var OUTLINE_COLOR = '#f0f0f0'; // Note these colors are in sync with DevTools Profiler chart colors. + + var COLORS = ['#37afa9', '#63b19e', '#80b393', '#97b488', '#abb67d', '#beb771', '#cfb965', '#dfba57', '#efbb49', '#febc38']; + var canvas = null; + function draw(nodeToData, agent) { + if (window.document == null) { + var nodesToDraw = []; + iterateNodes(nodeToData, function (_, color, node) { + nodesToDraw.push({ + node: node, + color: color + }); + }); + agent.emit('drawTraceUpdates', nodesToDraw); + return; + } + if (canvas === null) { + initialize(); + } + var canvasFlow = canvas; + canvasFlow.width = window.innerWidth; + canvasFlow.height = window.innerHeight; + var context = canvasFlow.getContext('2d'); + context.clearRect(0, 0, canvasFlow.width, canvasFlow.height); + iterateNodes(nodeToData, function (rect, color) { + if (rect !== null) { + drawBorder(context, rect, color); } - return id; }); } - this.build = m[5] ? m[5].split('.') : []; - this.format(); - } - SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch; - if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.'); - } - return this.version; - }; - SemVer.prototype.toString = function () { - return this.version; - }; - SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other); - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); + function iterateNodes(nodeToData, execute) { + nodeToData.forEach(function (_ref, node) { + var count = _ref.count, + rect = _ref.rect; + var colorIndex = Math.min(COLORS.length - 1, count - 1); + var color = COLORS[colorIndex]; + execute(rect, color, node); + }); } - return this.compareMain(other) || this.comparePre(other); - }; - SemVer.prototype.compareMain = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); + function drawBorder(context, rect, color) { + var height = rect.height, + left = rect.left, + top = rect.top, + width = rect.width; // outline + + context.lineWidth = 1; + context.strokeStyle = OUTLINE_COLOR; + context.strokeRect(left - 1, top - 1, width + 2, height + 2); // inset + + context.lineWidth = 1; + context.strokeStyle = OUTLINE_COLOR; + context.strokeRect(left + 1, top + 1, width - 1, height - 1); + context.strokeStyle = color; + context.setLineDash([0]); // border + + context.lineWidth = 1; + context.strokeRect(left, top, width - 1, height - 1); + context.setLineDash([0]); + } + function destroy(agent) { + if (window.document == null) { + agent.emit('disableTraceUpdates'); + return; + } + if (canvas !== null) { + if (canvas.parentNode != null) { + canvas.parentNode.removeChild(canvas); + } + canvas = null; + } } - return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - }; - SemVer.prototype.comparePre = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); + function initialize() { + canvas = window.document.createElement('canvas'); + canvas.style.cssText = "\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n "; + var root = window.document.documentElement; + root.insertBefore(canvas, root.firstChild); } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/views/TraceUpdates/index.js + function _typeof(obj) { + "@babel/helpers - typeof"; - if (this.prerelease.length && !other.prerelease.length) { - return -1; - } else if (!this.prerelease.length && other.prerelease.length) { - return 1; - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0; - } - var i = 0; - do { - var a = this.prerelease[i]; - var b = other.prerelease[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; } else { - return compareIdentifiers(a, b); + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - } while (++i); - }; - SemVer.prototype.compareBuild = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); + return _typeof(obj); } - var i = 0; - do { - var a = this.build[i]; - var b = other.build[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - }; - SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier); - break; - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier); - break; - case 'prepatch': - this.prerelease.length = 0; - this.inc('patch', identifier); - this.inc('pre', identifier); - break; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier); - } - this.inc('pre', identifier); - break; - case 'major': - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { - this.major++; - } - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case 'minor': - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - this.patch = 0; - this.prerelease = []; - break; - case 'patch': - if (this.prerelease.length === 0) { - this.patch++; - } - this.prerelease = []; - break; + // How long the rect should be shown for? + var DISPLAY_DURATION = 250; // What's the longest we are willing to show the overlay for? + // This can be important if we're getting a flurry of events (e.g. scroll update). - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0]; - } else { - var i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) { - this.prerelease.push(0); - } + var MAX_DISPLAY_DURATION = 3000; // How long should a rect be considered valid for? + + var REMEASUREMENT_AFTER_DURATION = 250; // Some environments (e.g. React Native / Hermes) don't support the performance API yet. + + var getCurrentTime = + // $FlowFixMe[method-unbinding] + (typeof performance === "undefined" ? "undefined" : _typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + var nodeToData = new Map(); + var agent = null; + var drawAnimationFrameID = null; + var isEnabled = false; + var redrawTimeoutID = null; + function TraceUpdates_initialize(injectedAgent) { + agent = injectedAgent; + agent.addListener('traceUpdates', traceUpdates); + } + function toggleEnabled(value) { + isEnabled = value; + if (!isEnabled) { + nodeToData.clear(); + if (drawAnimationFrameID !== null) { + cancelAnimationFrame(drawAnimationFrameID); + drawAnimationFrameID = null; } - if (identifier) { - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0]; - } - } else { - this.prerelease = [identifier, 0]; - } + if (redrawTimeoutID !== null) { + clearTimeout(redrawTimeoutID); + redrawTimeoutID = null; } - break; - default: - throw new Error('invalid increment argument: ' + release); - } - this.format(); - this.raw = this.version; - return this; - }; - exports.inc = inc; - function inc(version, release, loose, identifier) { - if (typeof loose === 'string') { - identifier = loose; - loose = undefined; - } - try { - return new SemVer(version, loose).inc(release, identifier).version; - } catch (er) { - return null; + destroy(agent); + } } - } - exports.diff = diff; - function diff(version1, version2) { - if (eq(version1, version2)) { - return null; - } else { - var v1 = parse(version1); - var v2 = parse(version2); - var prefix = ''; - if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre'; - var defaultResult = 'prerelease'; + function traceUpdates(nodes) { + if (!isEnabled) { + return; } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key; - } + nodes.forEach(function (node) { + var data = nodeToData.get(node); + var now = getCurrentTime(); + var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0; + var rect = data != null ? data.rect : null; + if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now) { + lastMeasuredAt = now; + rect = measureNode(node); } + nodeToData.set(node, { + count: data != null ? data.count + 1 : 1, + expirationTime: data != null ? Math.min(now + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now + DISPLAY_DURATION, + lastMeasuredAt: lastMeasuredAt, + rect: rect + }); + }); + if (redrawTimeoutID !== null) { + clearTimeout(redrawTimeoutID); + redrawTimeoutID = null; + } + if (drawAnimationFrameID === null) { + drawAnimationFrameID = requestAnimationFrame(prepareToDraw); } - return defaultResult; } - } + function prepareToDraw() { + drawAnimationFrameID = null; + redrawTimeoutID = null; + var now = getCurrentTime(); + var earliestExpiration = Number.MAX_VALUE; // Remove any items that have already expired. - exports.compareIdentifiers = compareIdentifiers; - var numeric = /^[0-9]+$/; - function compareIdentifiers(a, b) { - var anum = numeric.test(a); - var bnum = numeric.test(b); - if (anum && bnum) { - a = +a; - b = +b; - } - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; - } - exports.rcompareIdentifiers = rcompareIdentifiers; - function rcompareIdentifiers(a, b) { - return compareIdentifiers(b, a); - } - exports.major = major; - function major(a, loose) { - return new SemVer(a, loose).major; - } - exports.minor = minor; - function minor(a, loose) { - return new SemVer(a, loose).minor; - } - exports.patch = patch; - function patch(a, loose) { - return new SemVer(a, loose).patch; - } - exports.compare = compare; - function compare(a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)); - } - exports.compareLoose = compareLoose; - function compareLoose(a, b) { - return compare(a, b, true); - } - exports.compareBuild = compareBuild; - function compareBuild(a, b, loose) { - var versionA = new SemVer(a, loose); - var versionB = new SemVer(b, loose); - return versionA.compare(versionB) || versionA.compareBuild(versionB); - } - exports.rcompare = rcompare; - function rcompare(a, b, loose) { - return compare(b, a, loose); - } - exports.sort = sort; - function sort(list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(a, b, loose); - }); - } - exports.rsort = rsort; - function rsort(list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(b, a, loose); - }); - } - exports.gt = gt; - function gt(a, b, loose) { - return compare(a, b, loose) > 0; - } - exports.lt = lt; - function lt(a, b, loose) { - return compare(a, b, loose) < 0; - } - exports.eq = eq; - function eq(a, b, loose) { - return compare(a, b, loose) === 0; - } - exports.neq = neq; - function neq(a, b, loose) { - return compare(a, b, loose) !== 0; - } - exports.gte = gte; - function gte(a, b, loose) { - return compare(a, b, loose) >= 0; - } - exports.lte = lte; - function lte(a, b, loose) { - return compare(a, b, loose) <= 0; - } - exports.cmp = cmp; - function cmp(a, op, b, loose) { - switch (op) { - case '===': - if (_typeof(a) === 'object') a = a.version; - if (_typeof(b) === 'object') b = b.version; - return a === b; - case '!==': - if (_typeof(a) === 'object') a = a.version; - if (_typeof(b) === 'object') b = b.version; - return a !== b; - case '': - case '=': - case '==': - return eq(a, b, loose); - case '!=': - return neq(a, b, loose); - case '>': - return gt(a, b, loose); - case '>=': - return gte(a, b, loose); - case '<': - return lt(a, b, loose); - case '<=': - return lte(a, b, loose); - default: - throw new TypeError('Invalid operator: ' + op); + nodeToData.forEach(function (data, node) { + if (data.expirationTime < now) { + nodeToData.delete(node); + } else { + earliestExpiration = Math.min(earliestExpiration, data.expirationTime); + } + }); + draw(nodeToData, agent); + if (earliestExpiration !== Number.MAX_VALUE) { + redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now); + } } - } - exports.Comparator = Comparator; - function Comparator(comp, options) { - if (!options || _typeof(options) !== 'object') { - options = { - loose: !!options, - includePrerelease: false - }; + function measureNode(node) { + if (!node || typeof node.getBoundingClientRect !== 'function') { + return null; + } + var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; + return getNestedBoundingClientRect(node, currentWindow); } - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp; + ; // CONCATENATED MODULE: ../../node_modules/compare-versions/lib/esm/index.js + function esm_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + esm_typeof = function _typeof(obj) { + return typeof obj; + }; } else { - comp = comp.value; + esm_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } + return esm_typeof(obj); } - if (!(this instanceof Comparator)) { - return new Comparator(comp, options); - } - debug('comparator', comp, options); - this.options = options; - this.loose = !!options.loose; - this.parse(comp); - if (this.semver === ANY) { - this.value = ''; - } else { - this.value = this.operator + this.semver.version; - } - debug('comp', this); - } - var ANY = {}; - Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; - var m = comp.match(r); - if (!m) { - throw new TypeError('Invalid comparator: ' + comp); + function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } - this.operator = m[1] !== undefined ? m[1] : ''; - if (this.operator === '=') { - this.operator = ''; + function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - - if (!m[2]) { - this.semver = ANY; - } else { - this.semver = new SemVer(m[2], this.options.loose); + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - }; - Comparator.prototype.toString = function () { - return this.value; - }; - Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose); - if (this.semver === ANY || version === ANY) { - return true; + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; } - if (typeof version === 'string') { + function _iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; try { - version = new SemVer(version, this.options); - } catch (er) { - return false; + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } } + return _arr; } - return cmp(version, this.operator, this.semver, this.options); - }; - Comparator.prototype.intersects = function (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required'); - } - if (!options || _typeof(options) !== 'object') { - options = { - loose: !!options, - includePrerelease: false - }; + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; } - var rangeTmp; - if (this.operator === '') { - if (this.value === '') { - return true; + + /** + * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. + * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`. + * @param v1 - First version to compare + * @param v2 - Second version to compare + * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters). + */ + var compareVersions = function compareVersions(v1, v2) { + // validate input and split into segments + var n1 = validateAndParse(v1); + var n2 = validateAndParse(v2); // pop off the patch + + var p1 = n1.pop(); + var p2 = n2.pop(); // validate numbers + + var r = compareSegments(n1, n2); + if (r !== 0) return r; // validate pre-release + + if (p1 && p2) { + return compareSegments(p1.split('.'), p2.split('.')); + } else if (p1 || p2) { + return p1 ? -1 : 1; } - rangeTmp = new Range(comp.value, options); - return satisfies(this.value, rangeTmp, options); - } else if (comp.operator === '') { - if (comp.value === '') { - return true; + return 0; + }; + /** + * Validate [semver](https://semver.org/) version strings. + * + * @param version Version number to validate + * @returns `true` if the version number is a valid semver version number, `false` otherwise. + * + * @example + * ``` + * validate('1.0.0-rc.1'); // return true + * validate('1.0-rc.1'); // return false + * validate('foo'); // return false + * ``` + */ + + var validate = function validate(version) { + return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version); + }; + /** + * Compare [semver](https://semver.org/) version strings using the specified operator. + * + * @param v1 First version to compare + * @param v2 Second version to compare + * @param operator Allowed arithmetic operator to use + * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise. + * + * @example + * ``` + * compare('10.1.8', '10.0.4', '>'); // return true + * compare('10.0.1', '10.0.1', '='); // return true + * compare('10.1.1', '10.2.2', '<'); // return true + * compare('10.1.1', '10.2.2', '<='); // return true + * compare('10.1.1', '10.2.2', '>='); // return false + * ``` + */ + + var compare = function compare(v1, v2, operator) { + // validate input operator + assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1 + // a simple map can be used to replace switch + + var res = compareVersions(v1, v2); + return operatorResMap[operator].includes(res); + }; + /** + * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range. + * + * @param version Version number to match + * @param range Range pattern for version + * @returns `true` if the version number is within the range, `false` otherwise. + * + * @example + * ``` + * satisfies('1.1.0', '^1.0.0'); // return true + * satisfies('1.1.0', '~1.0.0'); // return false + * ``` + */ + + var satisfies = function satisfies(version, range) { + // if no range operator then "=" + var m = range.match(/^([<>=~^]+)/); + var op = m ? m[1] : '='; // if gt/lt/eq then operator compare + + if (op !== '^' && op !== '~') return compare(version, range, op); // else range of either "~" or "^" is assumed + + var _validateAndParse = validateAndParse(version), + _validateAndParse2 = _slicedToArray(_validateAndParse, 5), + v1 = _validateAndParse2[0], + v2 = _validateAndParse2[1], + v3 = _validateAndParse2[2], + vp = _validateAndParse2[4]; + var _validateAndParse3 = validateAndParse(range), + _validateAndParse4 = _slicedToArray(_validateAndParse3, 5), + r1 = _validateAndParse4[0], + r2 = _validateAndParse4[1], + r3 = _validateAndParse4[2], + rp = _validateAndParse4[4]; + var v = [v1, v2, v3]; + var r = [r1, r2 !== null && r2 !== void 0 ? r2 : 'x', r3 !== null && r3 !== void 0 ? r3 : 'x']; // validate pre-release + + if (rp) { + if (!vp) return false; + if (compareSegments(v, r) !== 0) return false; + if (compareSegments(vp.split('.'), rp.split('.')) === -1) return false; + } // first non-zero number + + var nonZero = r.findIndex(function (v) { + return v !== '0'; + }) + 1; // pointer to where segments can be >= + + var i = op === '~' ? 2 : nonZero > 1 ? nonZero : 1; // before pointer must be equal + + if (compareSegments(v.slice(0, i), r.slice(0, i)) !== 0) return false; // after pointer must be >= + + if (compareSegments(v.slice(i), r.slice(i)) === -1) return false; + return true; + }; + var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i; + var validateAndParse = function validateAndParse(version) { + if (typeof version !== 'string') { + throw new TypeError('Invalid argument expected string'); } - rangeTmp = new Range(this.value, options); - return satisfies(comp.semver, rangeTmp, options); - } - var sameDirectionIncreasing = (this.operator === '>=' || this.operator === '>') && (comp.operator === '>=' || comp.operator === '>'); - var sameDirectionDecreasing = (this.operator === '<=' || this.operator === '<') && (comp.operator === '<=' || comp.operator === '<'); - var sameSemVer = this.semver.version === comp.semver.version; - var differentDirectionsInclusive = (this.operator === '>=' || this.operator === '<=') && (comp.operator === '>=' || comp.operator === '<='); - var oppositeDirectionsLessThan = cmp(this.semver, '<', comp.semver, options) && (this.operator === '>=' || this.operator === '>') && (comp.operator === '<=' || comp.operator === '<'); - var oppositeDirectionsGreaterThan = cmp(this.semver, '>', comp.semver, options) && (this.operator === '<=' || this.operator === '<') && (comp.operator === '>=' || comp.operator === '>'); - return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; - }; - exports.Range = Range; - function Range(range, options) { - if (!options || _typeof(options) !== 'object') { - options = { - loose: !!options, - includePrerelease: false - }; + var match = version.match(semver); + if (!match) { + throw new Error("Invalid argument not valid semver ('".concat(version, "' received)")); + } + match.shift(); + return match; + }; + var isWildcard = function isWildcard(s) { + return s === '*' || s === 'x' || s === 'X'; + }; + var tryParse = function tryParse(v) { + var n = parseInt(v, 10); + return isNaN(n) ? v : n; + }; + var forceType = function forceType(a, b) { + return esm_typeof(a) !== esm_typeof(b) ? [String(a), String(b)] : [a, b]; + }; + var compareStrings = function compareStrings(a, b) { + if (isWildcard(a) || isWildcard(b)) return 0; + var _forceType = forceType(tryParse(a), tryParse(b)), + _forceType2 = _slicedToArray(_forceType, 2), + ap = _forceType2[0], + bp = _forceType2[1]; + if (ap > bp) return 1; + if (ap < bp) return -1; + return 0; + }; + var compareSegments = function compareSegments(a, b) { + for (var i = 0; i < Math.max(a.length, b.length); i++) { + var r = compareStrings(a[i] || '0', b[i] || '0'); + if (r !== 0) return r; + } + return 0; + }; + var operatorResMap = { + '>': [1], + '>=': [0, 1], + '=': [0], + '<=': [-1, 0], + '<': [-1] + }; + var allowedOperators = Object.keys(operatorResMap); + var assertValidOperator = function assertValidOperator(op) { + if (typeof op !== 'string') { + throw new TypeError("Invalid operator type, expected string but got ".concat(esm_typeof(op))); + } + if (allowedOperators.indexOf(op) === -1) { + throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|'))); + } + }; + // EXTERNAL MODULE: ../../node_modules/lru-cache/index.js + var lru_cache = __webpack_require__(730); + var lru_cache_default = /*#__PURE__*/__webpack_require__.n(lru_cache); + // EXTERNAL MODULE: ../../build/oss-experimental/react-is/index.js + var react_is = __webpack_require__(550); + ; // CONCATENATED MODULE: ../shared/ReactSymbols.js + function ReactSymbols_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + ReactSymbols_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + ReactSymbols_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return ReactSymbols_typeof(obj); + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. + var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + var REACT_PORTAL_TYPE = Symbol.for('react.portal'); + var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); + var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); + var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); + var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); + var REACT_CONTEXT_TYPE = Symbol.for('react.context'); + var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); + var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); + var REACT_MEMO_TYPE = Symbol.for('react.memo'); + var REACT_LAZY_TYPE = Symbol.for('react.lazy'); + var REACT_SCOPE_TYPE = Symbol.for('react.scope'); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode'); + var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden'); + var REACT_CACHE_TYPE = Symbol.for('react.cache'); + var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker'); + var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value'); + var REACT_MEMO_CACHE_SENTINEL = Symbol.for('react.memo_cache_sentinel'); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || ReactSymbols_typeof(maybeIterable) !== 'object') { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + return null; } - if (range instanceof Range) { - if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { - return range; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/types.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + /** + * WARNING: + * This file contains types that are designed for React DevTools UI and how it interacts with the backend. + * They might be used in different versions of DevTools backends. + * Be mindful of backwards compatibility when making changes. + */ + // WARNING + // The values below are referenced by ComponentFilters (which are saved via localStorage). + // Do not change them or it will break previously saved user customizations. + // If new element types are added, use new numbers rather than re-ordering existing ones. + // + // Changing these types is also a backwards breaking change for the standalone shell, + // since the frontend and backend must share the same values- + // and the backend is embedded in certain environments (like React Native). + var types_ElementTypeClass = 1; + var ElementTypeContext = 2; + var types_ElementTypeFunction = 5; + var types_ElementTypeForwardRef = 6; + var ElementTypeHostComponent = 7; + var types_ElementTypeMemo = 8; + var ElementTypeOtherOrUnknown = 9; + var ElementTypeProfiler = 10; + var ElementTypeRoot = 11; + var ElementTypeSuspense = 12; + var ElementTypeSuspenseList = 13; + var ElementTypeTracingMarker = 14; // Different types of elements displayed in the Elements tree. + // These types may be used to visually distinguish types, + // or to enable/disable certain functionality. + + // WARNING + // The values below are referenced by ComponentFilters (which are saved via localStorage). + // Do not change them or it will break previously saved user customizations. + // If new filter types are added, use new numbers rather than re-ordering existing ones. + var ComponentFilterElementType = 1; + var ComponentFilterDisplayName = 2; + var ComponentFilterLocation = 3; + var ComponentFilterHOC = 4; + var StrictMode = 1; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/isArray.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + var isArray = Array.isArray; + /* harmony default export */ + var src_isArray = isArray; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/utils.js + /* provided dependency */ + var process = __webpack_require__(169); + function utils_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + utils_typeof = function _typeof(obj) { + return typeof obj; + }; } else { - return new Range(range.raw, options); + utils_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } + return utils_typeof(obj); } - if (range instanceof Comparator) { - return new Range(range.value, options); + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || utils_unsupportedIterableToArray(arr) || _nonIterableSpread(); } - if (!(this instanceof Range)) { - return new Range(range, options); + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease; - - this.raw = range; - this.set = range.split(/\s*\|\|\s*/).map(function (range) { - return this.parseRange(range.trim()); - }, this).filter(function (c) { - return c.length; - }); - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range); + function utils_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return utils_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return utils_arrayLikeToArray(o, minLen); } - this.format(); - } - Range.prototype.format = function () { - this.range = this.set.map(function (comps) { - return comps.join(' ').trim(); - }).join('||').trim(); - return this.range; - }; - Range.prototype.toString = function () { - return this.range; - }; - Range.prototype.parseRange = function (range) { - var loose = this.options.loose; - range = range.trim(); - - var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; - range = range.replace(hr, hyphenReplace); - debug('hyphen replace', range); - - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); - debug('comparator trim', range, re[t.COMPARATORTRIM]); - - range = range.replace(re[t.TILDETRIM], tildeTrimReplace); - - range = range.replace(re[t.CARETTRIM], caretTrimReplace); - - range = range.split(/\s+/).join(' '); - - var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; - var set = range.split(' ').map(function (comp) { - return parseComparator(comp, this.options); - }, this).join(' ').split(/\s+/); - if (this.options.loose) { - set = set.filter(function (comp) { - return !!comp.match(compRe); - }); + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - set = set.map(function (comp) { - return new Comparator(comp, this.options); - }, this); - return set; - }; - Range.prototype.intersects = function (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required'); + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return utils_arrayLikeToArray(arr); } - return this.set.some(function (thisComparators) { - return isSatisfiable(thisComparators, options) && range.set.some(function (rangeComparators) { - return isSatisfiable(rangeComparators, options) && thisComparators.every(function (thisComparator) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options); - }); - }); - }); - }); - }; - - function isSatisfiable(comparators, options) { - var result = true; - var remainingComparators = comparators.slice(); - var testComparator = remainingComparators.pop(); - while (result && remainingComparators.length) { - result = remainingComparators.every(function (otherComparator) { - return testComparator.intersects(otherComparator, options); - }); - testComparator = remainingComparators.pop(); + function utils_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; } - return result; - } - exports.toComparators = toComparators; - function toComparators(range, options) { - return new Range(range, options).set.map(function (comp) { - return comp.map(function (c) { - return c.value; - }).join(' ').trim().split(' '); - }); - } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - function parseComparator(comp, options) { - debug('comp', comp, options); - comp = replaceCarets(comp, options); - debug('caret', comp); - comp = replaceTildes(comp, options); - debug('tildes', comp); - comp = replaceXRanges(comp, options); - debug('xrange', comp); - comp = replaceStars(comp, options); - debug('stars', comp); - return comp; - } - function isX(id) { - return !id || id.toLowerCase() === 'x' || id === '*'; - } + // $FlowFixMe[method-unbinding] + var utils_hasOwnProperty = Object.prototype.hasOwnProperty; + var cachedDisplayNames = new WeakMap(); // On large trees, encoding takes significant time. + // Try to reuse the already encoded strings. - function replaceTildes(comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, options); - }).join(' '); - } - function replaceTilde(comp, options) { - var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; - return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr); - var ret; - if (isX(M)) { - ret = ''; - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - } else if (isX(p)) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - } else if (pr) { - debug('replaceTilde pr', pr); - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + (+m + 1) + '.0'; - } else { - ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0'; - } - debug('tilde return', ret); - return ret; + var encodedStringCache = new (lru_cache_default())({ + max: 1000 }); - } - - function replaceCarets(comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, options); - }).join(' '); - } - function replaceCaret(comp, options) { - debug('caret', comp, options); - var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]; - return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr); - var ret; - if (isX(M)) { - ret = ''; - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - } else if (isX(p)) { - if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'; - } - } else if (pr) { - debug('replaceCaret pr', pr); - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + m + '.' + (+p + 1); - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + M + '.' + (+m + 1) + '.0'; - } - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + ' <' + (+M + 1) + '.0.0'; - } + function alphaSortKeys(a, b) { + if (a.toString() > b.toString()) { + return 1; + } else if (b.toString() > a.toString()) { + return -1; } else { - debug('no pr'); - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + m + '.' + (+p + 1); - } else { - ret = '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0'; + return 0; + } + } + function getAllEnumerableKeys(obj) { + var keys = new Set(); + var current = obj; + var _loop = function _loop() { + var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current))); + var descriptors = Object.getOwnPropertyDescriptors(current); + currentKeys.forEach(function (key) { + // $FlowFixMe[incompatible-type]: key can be a Symbol https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor + if (descriptors[key].enumerable) { + keys.add(key); } - } else { - ret = '>=' + M + '.' + m + '.' + p + ' <' + (+M + 1) + '.0.0'; - } + }); + current = Object.getPrototypeOf(current); + }; + while (current != null) { + _loop(); + } + return keys; + } // Mirror https://github.com/facebook/react/blob/7c21bf72ace77094fd1910cc350a548287ef8350/packages/shared/getComponentName.js#L27-L37 + + function getWrappedDisplayName(outerType, innerType, wrapperName, fallbackName) { + var displayName = outerType.displayName; + return displayName || "".concat(wrapperName, "(").concat(getDisplayName(innerType, fallbackName), ")"); + } + function getDisplayName(type) { + var fallbackName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Anonymous'; + var nameFromCache = cachedDisplayNames.get(type); + if (nameFromCache != null) { + return nameFromCache; + } + var displayName = fallbackName; // The displayName property is not guaranteed to be a string. + // It's only safe to use for our purposes if it's a string. + // github.com/facebook/react-devtools/issues/803 + + if (typeof type.displayName === 'string') { + displayName = type.displayName; + } else if (typeof type.name === 'string' && type.name !== '') { + displayName = type.name; + } + cachedDisplayNames.set(type, displayName); + return displayName; + } + var uidCounter = 0; + function getUID() { + return ++uidCounter; + } + function utfDecodeString(array) { + // Avoid spreading the array (e.g. String.fromCodePoint(...array)) + // Functions arguments are first placed on the stack before the function is called + // which throws a RangeError for large arrays. + // See github.com/facebook/react/issues/22293 + var string = ''; + for (var i = 0; i < array.length; i++) { + var char = array[i]; + string += String.fromCodePoint(char); } - debug('caret return', ret); - return ret; - }); - } - function replaceXRanges(comp, options) { - debug('replaceXRanges', comp, options); - return comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, options); - }).join(' '); - } - function replaceXRange(comp, options) { - comp = comp.trim(); - var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr); - var xM = isX(M); - var xm = xM || isX(m); - var xp = xm || isX(p); - var anyX = xp; - if (gtlt === '=' && anyX) { - gtlt = ''; - } - - pr = options.includePrerelease ? '-0' : ''; - if (xM) { - if (gtlt === '>' || gtlt === '<') { - ret = '<0.0.0-0'; + return string; + } + function surrogatePairToCodePoint(charCode1, charCode2) { + return ((charCode1 & 0x3ff) << 10) + (charCode2 & 0x3ff) + 0x10000; + } // Credit for this encoding approach goes to Tim Down: + // https://stackoverflow.com/questions/4877326/how-can-i-tell-if-a-string-contains-multibyte-characters-in-javascript + + function utfEncodeString(string) { + var cached = encodedStringCache.get(string); + if (cached !== undefined) { + return cached; + } + var encoded = []; + var i = 0; + var charCode; + while (i < string.length) { + charCode = string.charCodeAt(i); // Handle multibyte unicode characters (like emoji). + + if ((charCode & 0xf800) === 0xd800) { + encoded.push(surrogatePairToCodePoint(charCode, string.charCodeAt(++i))); } else { - ret = '*'; - } - } else if (gtlt && anyX) { - if (xm) { - m = 0; - } - p = 0; - if (gtlt === '>') { - gtlt = '>='; - if (xm) { - M = +M + 1; - m = 0; - p = 0; - } else { - m = +m + 1; - p = 0; - } - } else if (gtlt === '<=') { - gtlt = '<'; - if (xm) { - M = +M + 1; - } else { - m = +m + 1; - } + encoded.push(charCode); } - ret = gtlt + M + '.' + m + '.' + p + pr; - } else if (xm) { - ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr; - } else if (xp) { - ret = '>=' + M + '.' + m + '.0' + pr + ' <' + M + '.' + (+m + 1) + '.0' + pr; - } - debug('xRange return', ret); - return ret; - }); - } + ++i; + } + encodedStringCache.set(string, encoded); + return encoded; + } + function printOperationsArray(operations) { + // The first two values are always rendererID and rootID + var rendererID = operations[0]; + var rootID = operations[1]; + var logs = ["operations for renderer:".concat(rendererID, " and root:").concat(rootID)]; + var i = 2; // Reassemble the string table. + + var stringTable = [null // ID = 0 corresponds to the null string. + ]; + + var stringTableSize = operations[i++]; + var stringTableEnd = i + stringTableSize; + while (i < stringTableEnd) { + var nextLength = operations[i++]; + var nextString = utfDecodeString(operations.slice(i, i + nextLength)); + stringTable.push(nextString); + i += nextLength; + } + while (i < operations.length) { + var operation = operations[i]; + switch (operation) { + case TREE_OPERATION_ADD: + { + var _id = operations[i + 1]; + var type = operations[i + 2]; + i += 3; + if (type === ElementTypeRoot) { + logs.push("Add new root node ".concat(_id)); + i++; // isStrictModeCompliant - function replaceStars(comp, options) { - debug('replaceStars', comp, options); + i++; // supportsProfiling - return comp.trim().replace(re[t.STAR], ''); - } + i++; // supportsStrictMode - function hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) { - if (isX(fM)) { - from = ''; - } else if (isX(fm)) { - from = '>=' + fM + '.0.0'; - } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0'; - } else { - from = '>=' + from; - } - if (isX(tM)) { - to = ''; - } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0'; - } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0'; - } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr; - } else { - to = '<=' + to; - } - return (from + ' ' + to).trim(); - } + i++; // hasOwnerMetadata + } else { + var parentID = operations[i]; + i++; + i++; // ownerID - Range.prototype.test = function (version) { - if (!version) { - return false; + var displayNameStringID = operations[i]; + var displayName = stringTable[displayNameStringID]; + i++; + i++; // key + + logs.push("Add node ".concat(_id, " (").concat(displayName || 'null', ") as child of ").concat(parentID)); + } + break; + } + case TREE_OPERATION_REMOVE: + { + var removeLength = operations[i + 1]; + i += 2; + for (var removeIndex = 0; removeIndex < removeLength; removeIndex++) { + var _id2 = operations[i]; + i += 1; + logs.push("Remove node ".concat(_id2)); + } + break; + } + case TREE_OPERATION_REMOVE_ROOT: + { + i += 1; + logs.push("Remove root ".concat(rootID)); + break; + } + case TREE_OPERATION_SET_SUBTREE_MODE: + { + var _id3 = operations[i + 1]; + var mode = operations[i + 1]; + i += 3; + logs.push("Mode ".concat(mode, " set for subtree with root ").concat(_id3)); + break; + } + case TREE_OPERATION_REORDER_CHILDREN: + { + var _id4 = operations[i + 1]; + var numChildren = operations[i + 2]; + i += 3; + var children = operations.slice(i, i + numChildren); + i += numChildren; + logs.push("Re-order node ".concat(_id4, " children ").concat(children.join(','))); + break; + } + case TREE_OPERATION_UPDATE_TREE_BASE_DURATION: + // Base duration updates are only sent while profiling is in progress. + // We can ignore them at this point. + // The profiler UI uses them lazily in order to generate the tree. + i += 3; + break; + case TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS: + var id = operations[i + 1]; + var numErrors = operations[i + 2]; + var numWarnings = operations[i + 3]; + i += 4; + logs.push("Node ".concat(id, " has ").concat(numErrors, " errors and ").concat(numWarnings, " warnings")); + break; + default: + throw Error("Unsupported Bridge operation \"".concat(operation, "\"")); + } + } + console.log(logs.join('\n ')); } - if (typeof version === 'string') { + function getDefaultComponentFilters() { + return [{ + type: ComponentFilterElementType, + value: ElementTypeHostComponent, + isEnabled: true + }]; + } + function getSavedComponentFilters() { try { - version = new SemVer(version, this.options); - } catch (er) { - return false; - } + var raw = localStorageGetItem(LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return getDefaultComponentFilters(); + } + function setSavedComponentFilters(componentFilters) { + localStorageSetItem(LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY, JSON.stringify(componentFilters)); } - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { + function parseBool(s) { + if (s === 'true') { return true; } - } - return false; - }; - function testSet(set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) { + if (s === 'false') { return false; } } - if (version.prerelease.length && !options.includePrerelease) { - for (i = 0; i < set.length; i++) { - debug(set[i].semver); - if (set[i].semver === ANY) { - continue; - } - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver; - if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) { - return true; - } - } + function castBool(v) { + if (v === true || v === false) { + return v; } - - return false; } - return true; - } - exports.satisfies = satisfies; - function satisfies(version, range, options) { - try { - range = new Range(range, options); - } catch (er) { - return false; + function castBrowserTheme(v) { + if (v === 'light' || v === 'dark' || v === 'auto') { + return v; + } } - return range.test(version); - } - exports.maxSatisfying = maxSatisfying; - function maxSatisfying(versions, range, options) { - var max = null; - var maxSV = null; - try { - var rangeObj = new Range(range, options); - } catch (er) { - return null; + function getAppendComponentStack() { + var _parseBool; + var raw = localStorageGetItem(LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY); + return (_parseBool = parseBool(raw)) !== null && _parseBool !== void 0 ? _parseBool : true; } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - if (!max || maxSV.compare(v) === -1) { - max = v; - maxSV = new SemVer(max, options); - } - } - }); - return max; - } - exports.minSatisfying = minSatisfying; - function minSatisfying(versions, range, options) { - var min = null; - var minSV = null; - try { - var rangeObj = new Range(range, options); - } catch (er) { - return null; + function getBreakOnConsoleErrors() { + var _parseBool2; + var raw = localStorageGetItem(LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS); + return (_parseBool2 = parseBool(raw)) !== null && _parseBool2 !== void 0 ? _parseBool2 : false; } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - if (!min || minSV.compare(v) === 1) { - min = v; - minSV = new SemVer(min, options); - } - } - }); - return min; - } - exports.minVersion = minVersion; - function minVersion(range, loose) { - range = new Range(range, loose); - var minver = new SemVer('0.0.0'); - if (range.test(minver)) { - return minver; - } - minver = new SemVer('0.0.0-0'); - if (range.test(minver)) { - return minver; - } - minver = null; - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i]; - comparators.forEach(function (comparator) { - var compver = new SemVer(comparator.semver.version); - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++; - } else { - compver.prerelease.push(0); - } - compver.raw = compver.format(); - - case '': - case '>=': - if (!minver || gt(minver, compver)) { - minver = compver; - } - break; - case '<': - case '<=': - break; - - default: - throw new Error('Unexpected operation: ' + comparator.operator); - } - }); + function getHideConsoleLogsInStrictMode() { + var _parseBool3; + var raw = localStorageGetItem(LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE); + return (_parseBool3 = parseBool(raw)) !== null && _parseBool3 !== void 0 ? _parseBool3 : false; } - if (minver && range.test(minver)) { - return minver; + function getShowInlineWarningsAndErrors() { + var _parseBool4; + var raw = localStorageGetItem(LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY); + return (_parseBool4 = parseBool(raw)) !== null && _parseBool4 !== void 0 ? _parseBool4 : true; } - return null; - } - exports.validRange = validRange; - function validRange(range, options) { - try { - return new Range(range, options).range || '*'; - } catch (er) { - return null; + function getDefaultOpenInEditorURL() { + return typeof process.env.EDITOR_URL === 'string' ? process.env.EDITOR_URL : ''; } - } - - exports.ltr = ltr; - function ltr(version, range, options) { - return outside(version, range, '<', options); - } - - exports.gtr = gtr; - function gtr(version, range, options) { - return outside(version, range, '>', options); - } - exports.outside = outside; - function outside(version, range, hilo, options) { - version = new SemVer(version, options); - range = new Range(range, options); - var gtfn, ltefn, ltfn, comp, ecomp; - switch (hilo) { - case '>': - gtfn = gt; - ltefn = lte; - ltfn = lt; - comp = '>'; - ecomp = '>='; - break; - case '<': - gtfn = lt; - ltefn = gte; - ltfn = gt; - comp = '<'; - ecomp = '<='; - break; - default: - throw new TypeError('Must provide a hilo val of "<" or ">"'); + function getOpenInEditorURL() { + try { + var raw = localStorageGetItem(LOCAL_STORAGE_OPEN_IN_EDITOR_URL); + if (raw != null) { + return JSON.parse(raw); + } + } catch (error) {} + return getDefaultOpenInEditorURL(); } + function separateDisplayNameAndHOCs(displayName, type) { + if (displayName === null) { + return [null, null]; + } + var hocDisplayNames = null; + switch (type) { + case ElementTypeClass: + case ElementTypeForwardRef: + case ElementTypeFunction: + case ElementTypeMemo: + if (displayName.indexOf('(') >= 0) { + var matches = displayName.match(/[^()]+/g); + if (matches != null) { + displayName = matches.pop(); + hocDisplayNames = matches; + } + } + break; + default: + break; + } + return [displayName, hocDisplayNames]; + } // Pulled from react-compat + // https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349 - if (satisfies(version, range, options)) { + function shallowDiffers(prev, next) { + for (var attribute in prev) { + if (!(attribute in next)) { + return true; + } + } + for (var _attribute in next) { + if (prev[_attribute] !== next[_attribute]) { + return true; + } + } return false; } - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i]; - var high = null; - var low = null; - comparators.forEach(function (comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0'); + function utils_getInObject(object, path) { + return path.reduce(function (reduced, attr) { + if (reduced) { + if (utils_hasOwnProperty.call(reduced, attr)) { + return reduced[attr]; + } + if (typeof reduced[Symbol.iterator] === 'function') { + // Convert iterable to array and return array[index] + // + // TRICKY + // Don't use [...spread] syntax for this purpose. + // This project uses @babel/plugin-transform-spread in "loose" mode which only works with Array values. + // Other types (e.g. typed arrays, Sets) will not spread correctly. + return Array.from(reduced)[attr]; + } } - high = high || comparator; - low = low || comparator; - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator; - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator; + return null; + }, object); + } + function deletePathInObject(object, path) { + var length = path.length; + var last = path[length - 1]; + if (object != null) { + var parent = utils_getInObject(object, path.slice(0, length - 1)); + if (parent) { + if (src_isArray(parent)) { + parent.splice(last, 1); + } else { + delete parent[last]; + } } - }); - - if (high.operator === comp || high.operator === ecomp) { - return false; - } - - if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) { - return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false; } } - return true; - } - exports.prerelease = prerelease; - function prerelease(version, options) { - var parsed = parse(version, options); - return parsed && parsed.prerelease.length ? parsed.prerelease : null; - } - exports.intersects = intersects; - function intersects(r1, r2, options) { - r1 = new Range(r1, options); - r2 = new Range(r2, options); - return r1.intersects(r2); - } - exports.coerce = coerce; - function coerce(version, options) { - if (version instanceof SemVer) { - return version; - } - if (typeof version === 'number') { - version = String(version); - } - if (typeof version !== 'string') { - return null; - } - options = options || {}; - var match = null; - if (!options.rtl) { - match = version.match(re[t.COERCE]); - } else { - var next; - while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { - if (!match || next.index + next[0].length !== match.index + match[0].length) { - match = next; + function renamePathInObject(object, oldPath, newPath) { + var length = oldPath.length; + if (object != null) { + var parent = utils_getInObject(object, oldPath.slice(0, length - 1)); + if (parent) { + var lastOld = oldPath[length - 1]; + var lastNew = newPath[length - 1]; + parent[lastNew] = parent[lastOld]; + if (src_isArray(parent)) { + parent.splice(lastOld, 1); + } else { + delete parent[lastOld]; + } } - re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; } - - re[t.COERCERTL].lastIndex = -1; - } - if (match === null) { - return null; } - return parse(match[2] + '.' + (match[3] || '0') + '.' + (match[4] || '0'), options); - } - }).call(this, __webpack_require__(16)); - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "b", function () { - return meta; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return dehydrate; - }); - var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + function utils_setInObject(object, path, value) { + var length = path.length; + var last = path[length - 1]; + if (object != null) { + var parent = utils_getInObject(object, path.slice(0, length - 1)); + if (parent) { + parent[last] = value; + } + } } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - - var meta = { - inspectable: Symbol('inspectable'), - inspected: Symbol('inspected'), - name: Symbol('name'), - preview_long: Symbol('preview_long'), - preview_short: Symbol('preview_short'), - readonly: Symbol('readonly'), - size: Symbol('size'), - type: Symbol('type'), - unserializable: Symbol('unserializable') - }; - var LEVEL_THRESHOLD = 2; - - function createDehydrated(type, inspectable, data, cleaned, path) { - cleaned.push(path); - var dehydrated = { - inspectable: inspectable, - type: type, - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name - }; - if (type === 'array' || type === 'typed_array') { - dehydrated.size = data.length; - } else if (type === 'object') { - dehydrated.size = Object.keys(data).length; - } - if (type === 'iterator' || type === 'typed_array') { - dehydrated.readonly = true; - } - return dehydrated; - } - function dehydrate(data, cleaned, unserializable, path, isPathAllowed) { - var level = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; - var type = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["d"])(data); - var isPathAllowedCheck; - switch (type) { - case 'html_element': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data.tagName, - type: type - }; - case 'function': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: typeof data.name === 'function' || !data.name ? 'function' : data.name, - type: type - }; - case 'string': - isPathAllowedCheck = isPathAllowed(path); - if (isPathAllowedCheck) { - return data; - } else { - return data.length <= 500 ? data : data.slice(0, 500) + '...'; + /** + * Get a enhanced/artificial type string based on the object instance + */ + function getDataType(data) { + if (data === null) { + return 'null'; + } else if (data === undefined) { + return 'undefined'; } - case 'bigint': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data.toString(), - type: type - }; - case 'symbol': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data.toString(), - type: type - }; - - case 'react_element': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["g"])(data) || 'Unknown', - type: type - }; - - case 'array_buffer': - case 'data_view': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: type === 'data_view' ? 'DataView' : 'ArrayBuffer', - size: data.byteLength, - type: type - }; - case 'array': - isPathAllowedCheck = isPathAllowed(path); - if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { - return createDehydrated(type, true, data, cleaned, path); + if ((0, react_is.isElement)(data)) { + return 'react_element'; } - return data.map(function (item, i) { - return dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); - }); - case 'html_all_collection': - case 'typed_array': - case 'iterator': - isPathAllowedCheck = isPathAllowed(path); - if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { - return createDehydrated(type, true, data, cleaned, path); - } else { - var unserializableValue = { - unserializable: true, - type: type, - readonly: true, - size: type === 'typed_array' ? data.length : undefined, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name - }; - - Array.from(data).forEach(function (item, i) { - return unserializableValue[i] = dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); - }); - unserializable.push(path); - return unserializableValue; + if (typeof HTMLElement !== 'undefined' && data instanceof HTMLElement) { + return 'html_element'; } - case 'opaque_iterator': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data[Symbol.toStringTag], - type: type - }; - case 'date': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data.toString(), - type: type - }; - case 'regexp': - cleaned.push(path); - return { - inspectable: false, - preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, false), - preview_long: Object(_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(data, true), - name: data.toString(), - type: type - }; - case 'object': - isPathAllowedCheck = isPathAllowed(path); - if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { - return createDehydrated(type, true, data, cleaned, path); + var type = utils_typeof(data); + switch (type) { + case 'bigint': + return 'bigint'; + case 'boolean': + return 'boolean'; + case 'function': + return 'function'; + case 'number': + if (Number.isNaN(data)) { + return 'nan'; + } else if (!Number.isFinite(data)) { + return 'infinity'; + } else { + return 'number'; + } + case 'object': + if (src_isArray(data)) { + return 'array'; + } else if (ArrayBuffer.isView(data)) { + return utils_hasOwnProperty.call(data.constructor, 'BYTES_PER_ELEMENT') ? 'typed_array' : 'data_view'; + } else if (data.constructor && data.constructor.name === 'ArrayBuffer') { + // HACK This ArrayBuffer check is gross; is there a better way? + // We could try to create a new DataView with the value. + // If it doesn't error, we know it's an ArrayBuffer, + // but this seems kind of awkward and expensive. + return 'array_buffer'; + } else if (typeof data[Symbol.iterator] === 'function') { + var iterator = data[Symbol.iterator](); + if (!iterator) {// Proxies might break assumptoins about iterators. + // See github.com/facebook/react/issues/21654 + } else { + return iterator === data ? 'opaque_iterator' : 'iterator'; + } + } else if (data.constructor && data.constructor.name === 'RegExp') { + return 'regexp'; + } else { + // $FlowFixMe[method-unbinding] + var toStringValue = Object.prototype.toString.call(data); + if (toStringValue === '[object Date]') { + return 'date'; + } else if (toStringValue === '[object HTMLAllCollection]') { + return 'html_all_collection'; + } + } + if (!isPlainObject(data)) { + return 'class_instance'; + } + return 'object'; + case 'string': + return 'string'; + case 'symbol': + return 'symbol'; + case 'undefined': + if ( + // $FlowFixMe[method-unbinding] + Object.prototype.toString.call(data) === '[object HTMLAllCollection]') { + return 'html_all_collection'; + } + return 'undefined'; + default: + return 'unknown'; + } + } + function getDisplayNameForReactElement(element) { + var elementType = (0, react_is.typeOf)(element); + switch (elementType) { + case react_is.ContextConsumer: + return 'ContextConsumer'; + case react_is.ContextProvider: + return 'ContextProvider'; + case react_is.ForwardRef: + return 'ForwardRef'; + case react_is.Fragment: + return 'Fragment'; + case react_is.Lazy: + return 'Lazy'; + case react_is.Memo: + return 'Memo'; + case react_is.Portal: + return 'Portal'; + case react_is.Profiler: + return 'Profiler'; + case react_is.StrictMode: + return 'StrictMode'; + case react_is.Suspense: + return 'Suspense'; + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + case REACT_TRACING_MARKER_TYPE: + return 'TracingMarker'; + default: + var type = element.type; + if (typeof type === 'string') { + return type; + } else if (typeof type === 'function') { + return getDisplayName(type, 'Anonymous'); + } else if (type != null) { + return 'NotImplementedInDevtools'; + } else { + return 'Element'; + } + } + } + var MAX_PREVIEW_STRING_LENGTH = 50; + function truncateForDisplay(string) { + var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MAX_PREVIEW_STRING_LENGTH; + if (string.length > length) { + return string.slice(0, length) + 'โ€ฆ'; } else { - var object = {}; - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["c"])(data).forEach(function (key) { - var name = key.toString(); - object[name] = dehydrate(data[key], cleaned, unserializable, path.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); - }); - return object; + return string; + } + } // Attempts to mimic Chrome's inline preview for values. + // For example, the following value... + // { + // foo: 123, + // bar: "abc", + // baz: [true, false], + // qux: { ab: 1, cd: 2 } + // }; + // + // Would show a preview of... + // {foo: 123, bar: "abc", baz: Array(2), qux: {โ€ฆ}} + // + // And the following value... + // [ + // 123, + // "abc", + // [true, false], + // { foo: 123, bar: "abc" } + // ]; + // + // Would show a preview of... + // [123, "abc", Array(2), {โ€ฆ}] + + function formatDataForPreview(data, showFormattedValue) { + if (data != null && utils_hasOwnProperty.call(data, meta.type)) { + return showFormattedValue ? data[meta.preview_long] : data[meta.preview_short]; + } + var type = getDataType(data); + switch (type) { + case 'html_element': + return "<".concat(truncateForDisplay(data.tagName.toLowerCase()), " />"); + case 'function': + return truncateForDisplay("\u0192 ".concat(typeof data.name === 'function' ? '' : data.name, "() {}")); + case 'string': + return "\"".concat(data, "\""); + case 'bigint': + return truncateForDisplay(data.toString() + 'n'); + case 'regexp': + return truncateForDisplay(data.toString()); + case 'symbol': + return truncateForDisplay(data.toString()); + case 'react_element': + return "<".concat(truncateForDisplay(getDisplayNameForReactElement(data) || 'Unknown'), " />"); + case 'array_buffer': + return "ArrayBuffer(".concat(data.byteLength, ")"); + case 'data_view': + return "DataView(".concat(data.buffer.byteLength, ")"); + case 'array': + if (showFormattedValue) { + var formatted = ''; + for (var i = 0; i < data.length; i++) { + if (i > 0) { + formatted += ', '; + } + formatted += formatDataForPreview(data[i], false); + if (formatted.length > MAX_PREVIEW_STRING_LENGTH) { + // Prevent doing a lot of unnecessary iteration... + break; + } + } + return "[".concat(truncateForDisplay(formatted), "]"); + } else { + var length = utils_hasOwnProperty.call(data, meta.size) ? data[meta.size] : data.length; + return "Array(".concat(length, ")"); + } + case 'typed_array': + var shortName = "".concat(data.constructor.name, "(").concat(data.length, ")"); + if (showFormattedValue) { + var _formatted = ''; + for (var _i = 0; _i < data.length; _i++) { + if (_i > 0) { + _formatted += ', '; + } + _formatted += data[_i]; + if (_formatted.length > MAX_PREVIEW_STRING_LENGTH) { + // Prevent doing a lot of unnecessary iteration... + break; + } + } + return "".concat(shortName, " [").concat(truncateForDisplay(_formatted), "]"); + } else { + return shortName; + } + case 'iterator': + var name = data.constructor.name; + if (showFormattedValue) { + // TRICKY + // Don't use [...spread] syntax for this purpose. + // This project uses @babel/plugin-transform-spread in "loose" mode which only works with Array values. + // Other types (e.g. typed arrays, Sets) will not spread correctly. + var array = Array.from(data); + var _formatted2 = ''; + for (var _i2 = 0; _i2 < array.length; _i2++) { + var entryOrEntries = array[_i2]; + if (_i2 > 0) { + _formatted2 += ', '; + } // TRICKY + // Browsers display Maps and Sets differently. + // To mimic their behavior, detect if we've been given an entries tuple. + // Map(2) {"abc" => 123, "def" => 123} + // Set(2) {"abc", 123} + + if (src_isArray(entryOrEntries)) { + var key = formatDataForPreview(entryOrEntries[0], true); + var value = formatDataForPreview(entryOrEntries[1], false); + _formatted2 += "".concat(key, " => ").concat(value); + } else { + _formatted2 += formatDataForPreview(entryOrEntries, false); + } + if (_formatted2.length > MAX_PREVIEW_STRING_LENGTH) { + // Prevent doing a lot of unnecessary iteration... + break; + } + } + return "".concat(name, "(").concat(data.size, ") {").concat(truncateForDisplay(_formatted2), "}"); + } else { + return "".concat(name, "(").concat(data.size, ")"); + } + case 'opaque_iterator': + { + return data[Symbol.toStringTag]; + } + case 'date': + return data.toString(); + case 'class_instance': + return data.constructor.name; + case 'object': + if (showFormattedValue) { + var keys = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys); + var _formatted3 = ''; + for (var _i3 = 0; _i3 < keys.length; _i3++) { + var _key = keys[_i3]; + if (_i3 > 0) { + _formatted3 += ', '; + } + _formatted3 += "".concat(_key.toString(), ": ").concat(formatDataForPreview(data[_key], false)); + if (_formatted3.length > MAX_PREVIEW_STRING_LENGTH) { + // Prevent doing a lot of unnecessary iteration... + break; + } + } + return "{".concat(truncateForDisplay(_formatted3), "}"); + } else { + return '{โ€ฆ}'; + } + case 'boolean': + case 'number': + case 'infinity': + case 'nan': + case 'null': + case 'undefined': + return data; + default: + try { + return truncateForDisplay(String(data)); + } catch (error) { + return 'unserializable'; + } } - case 'infinity': - case 'nan': - case 'undefined': - cleaned.push(path); - return { - type: type - }; - default: - return data; - } - } - function fillInPath(object, data, path, value) { - var target = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path); - if (target != null) { - if (!target[meta.unserializable]) { - delete target[meta.inspectable]; - delete target[meta.inspected]; - delete target[meta.name]; - delete target[meta.preview_long]; - delete target[meta.preview_short]; - delete target[meta.readonly]; - delete target[meta.size]; - delete target[meta.type]; - } - } - if (value !== null && data.unserializable.length > 0) { - var unserializablePath = data.unserializable[0]; - var isMatch = unserializablePath.length === path.length; - for (var i = 0; i < path.length; i++) { - if (path[i] !== unserializablePath[i]) { - isMatch = false; - break; + } // Basically checking that the object only has Object in its prototype chain + + var isPlainObject = function isPlainObject(object) { + var objectPrototype = Object.getPrototypeOf(object); + if (!objectPrototype) return true; + var objectParentPrototype = Object.getPrototypeOf(objectPrototype); + return !objectParentPrototype; + }; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/hydration.js + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); } + return keys; } - if (isMatch) { - upgradeUnserializable(value, value); - } - } - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["l"])(object, path, value); - } - function hydrate(object, cleaned, unserializable) { - cleaned.forEach(function (path) { - var length = path.length; - var last = path[length - 1]; - var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path.slice(0, length - 1)); - if (!parent || !parent.hasOwnProperty(last)) { - return; - } - var value = parent[last]; - if (!value) { - return; - } else if (value.type === 'infinity') { - parent[last] = Infinity; - } else if (value.type === 'nan') { - parent[last] = NaN; - } else if (value.type === 'undefined') { - parent[last] = undefined; - } else { - var replaced = {}; - replaced[meta.inspectable] = !!value.inspectable; - replaced[meta.inspected] = false; - replaced[meta.name] = value.name; - replaced[meta.preview_long] = value.preview_long; - replaced[meta.preview_short] = value.preview_short; - replaced[meta.size] = value.size; - replaced[meta.readonly] = !!value.readonly; - replaced[meta.type] = value.type; - parent[last] = replaced; - } - }); - unserializable.forEach(function (path) { - var length = path.length; - var last = path[length - 1]; - var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["h"])(object, path.slice(0, length - 1)); - if (!parent || !parent.hasOwnProperty(last)) { - return; + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + hydration_defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; } - var node = parent[last]; - var replacement = _objectSpread({}, node); - upgradeUnserializable(replacement, node); - parent[last] = replacement; - }); - return object; - } - function upgradeUnserializable(destination, source) { - var _Object$definePropert; - Object.defineProperties(destination, (_Object$definePropert = {}, _defineProperty(_Object$definePropert, meta.inspected, { - configurable: true, - enumerable: false, - value: !!source.inspected - }), _defineProperty(_Object$definePropert, meta.name, { - configurable: true, - enumerable: false, - value: source.name - }), _defineProperty(_Object$definePropert, meta.preview_long, { - configurable: true, - enumerable: false, - value: source.preview_long - }), _defineProperty(_Object$definePropert, meta.preview_short, { - configurable: true, - enumerable: false, - value: source.preview_short - }), _defineProperty(_Object$definePropert, meta.size, { - configurable: true, - enumerable: false, - value: source.size - }), _defineProperty(_Object$definePropert, meta.readonly, { - configurable: true, - enumerable: false, - value: !!source.readonly - }), _defineProperty(_Object$definePropert, meta.type, { - configurable: true, - enumerable: false, - value: source.type - }), _defineProperty(_Object$definePropert, meta.unserializable, { - configurable: true, - enumerable: false, - value: !!source.unserializable - }), _Object$definePropert)); - delete destination.inspected; - delete destination.name; - delete destination.preview_long; - delete destination.preview_short; - delete destination.size; - delete destination.readonly; - delete destination.type; - delete destination.unserializable; - } - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "a", function () { - return consoleManagedByDevToolsDuringStrictMode; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return enableProfilerChangedHookIndices; - }); - __webpack_require__.d(__webpack_exports__, "c", function () { - return enableStyleXFeatures; - }); - - var consoleManagedByDevToolsDuringStrictMode = false; - var enableLogger = false; - var enableNamedHooksFeature = true; - var enableProfilerChangedHookIndices = true; - var enableStyleXFeatures = false; - var isInternalFacebookBuild = false; - - null; - - }, - function (module, exports) { - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + function hydration_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var meta = { + inspectable: Symbol('inspectable'), + inspected: Symbol('inspected'), + name: Symbol('name'), + preview_long: Symbol('preview_long'), + preview_short: Symbol('preview_short'), + readonly: Symbol('readonly'), + size: Symbol('size'), + type: Symbol('type'), + unserializable: Symbol('unserializable') }; - } - return _typeof(obj); - } - var g; - - g = function () { - return this; - }(); - try { - g = g || new Function("return this")(); - } catch (e) { - if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window; - } - - module.exports = g; - - }, - function (module, exports, __webpack_require__) { - (function (global) { - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + // This threshold determines the depth at which the bridge "dehydrates" nested data. + // Dehydration means that we don't serialize the data for e.g. postMessage or stringify, + // unless the frontend explicitly requests it (e.g. a user clicks to expand a props object). + // + // Reducing this threshold will improve the speed of initial component inspection, + // but may decrease the responsiveness of expanding objects/arrays to inspect further. + var LEVEL_THRESHOLD = 2; + /** + * Generate the dehydrated metadata for complex object instances + */ + + function createDehydrated(type, inspectable, data, cleaned, path) { + cleaned.push(path); + var dehydrated = { + inspectable: inspectable, + type: type, + preview_long: formatDataForPreview(data, true), + preview_short: formatDataForPreview(data, false), + name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name }; - } - return _typeof(obj); - } - - var FUNC_ERROR_TEXT = 'Expected a function'; - - var NAN = 0 / 0; - - var symbolTag = '[object Symbol]'; - - var reTrim = /^\s+|\s+$/g; - - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - - var reIsBinary = /^0b[01]+$/i; - - var reIsOctal = /^0o[0-7]+$/i; - - var freeParseInt = parseInt; - - var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global; - - var freeSelf = (typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self && self.Object === Object && self; - - var root = freeGlobal || freeSelf || Function('return this')(); - - var objectProto = Object.prototype; - - var objectToString = objectProto.toString; - - var nativeMax = Math.max, - nativeMin = Math.min; + if (type === 'array' || type === 'typed_array') { + dehydrated.size = data.length; + } else if (type === 'object') { + dehydrated.size = Object.keys(data).length; + } + if (type === 'iterator' || type === 'typed_array') { + dehydrated.readonly = true; + } + return dehydrated; + } + /** + * Strip out complex data (instances, functions, and data nested > LEVEL_THRESHOLD levels deep). + * The paths of the stripped out objects are appended to the `cleaned` list. + * On the other side of the barrier, the cleaned list is used to "re-hydrate" the cleaned representation into + * an object with symbols as attributes, so that a sanitized object can be distinguished from a normal object. + * + * Input: {"some": {"attr": fn()}, "other": AnInstance} + * Output: { + * "some": { + * "attr": {"name": the fn.name, type: "function"} + * }, + * "other": { + * "name": "AnInstance", + * "type": "object", + * }, + * } + * and cleaned = [["some", "attr"], ["other"]] + */ + + function dehydrate(data, cleaned, unserializable, path, isPathAllowed) { + var level = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + var type = getDataType(data); + var isPathAllowedCheck; + switch (type) { + case 'html_element': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.tagName, + type: type + }; + case 'function': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: typeof data.name === 'function' || !data.name ? 'function' : data.name, + type: type + }; + case 'string': + isPathAllowedCheck = isPathAllowed(path); + if (isPathAllowedCheck) { + return data; + } else { + return data.length <= 500 ? data : data.slice(0, 500) + '...'; + } + case 'bigint': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.toString(), + type: type + }; + case 'symbol': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.toString(), + type: type + }; + // React Elements aren't very inspector-friendly, + // and often contain private fields or circular references. - var now = function now() { - return root.Date.now(); - }; + case 'react_element': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: getDisplayNameForReactElement(data) || 'Unknown', + type: type + }; + // ArrayBuffers error if you try to inspect them. - function debounce(func, wait, options) { - var lastArgs, - lastThis, - maxWait, - result, - timerId, - lastCallTime, - lastInvokeTime = 0, - leading = false, - maxing = false, - trailing = true; - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); + case 'array_buffer': + case 'data_view': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: type === 'data_view' ? 'DataView' : 'ArrayBuffer', + size: data.byteLength, + type: type + }; + case 'array': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } + return data.map(function (item, i) { + return dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + case 'html_all_collection': + case 'typed_array': + case 'iterator': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } else { + var unserializableValue = { + unserializable: true, + type: type, + readonly: true, + size: type === 'typed_array' ? data.length : undefined, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: !data.constructor || data.constructor.name === 'Object' ? '' : data.constructor.name + }; // TRICKY + // Don't use [...spread] syntax for this purpose. + // This project uses @babel/plugin-transform-spread in "loose" mode which only works with Array values. + // Other types (e.g. typed arrays, Sets) will not spread correctly. + + Array.from(data).forEach(function (item, i) { + return unserializableValue[i] = dehydrate(item, cleaned, unserializable, path.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + unserializable.push(path); + return unserializableValue; + } + case 'opaque_iterator': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data[Symbol.toStringTag], + type: type + }; + case 'date': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.toString(), + type: type + }; + case 'regexp': + cleaned.push(path); + return { + inspectable: false, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.toString(), + type: type + }; + case 'object': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } else { + var object = {}; + getAllEnumerableKeys(data).forEach(function (key) { + var name = key.toString(); + object[name] = dehydrate(data[key], cleaned, unserializable, path.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + return object; + } + case 'class_instance': + isPathAllowedCheck = isPathAllowed(path); + if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) { + return createDehydrated(type, true, data, cleaned, path); + } + var value = { + unserializable: true, + type: type, + readonly: true, + preview_short: formatDataForPreview(data, false), + preview_long: formatDataForPreview(data, true), + name: data.constructor.name + }; + getAllEnumerableKeys(data).forEach(function (key) { + var keyAsString = key.toString(); + value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1); + }); + unserializable.push(path); + return value; + case 'infinity': + case 'nan': + case 'undefined': + // Some values are lossy when sent through a WebSocket. + // We dehydrate+rehydrate them to preserve their type. + cleaned.push(path); + return { + type: type + }; + default: + return data; + } } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = 'maxWait' in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = 'trailing' in options ? !!options.trailing : trailing; + function fillInPath(object, data, path, value) { + var target = getInObject(object, path); + if (target != null) { + if (!target[meta.unserializable]) { + delete target[meta.inspectable]; + delete target[meta.inspected]; + delete target[meta.name]; + delete target[meta.preview_long]; + delete target[meta.preview_short]; + delete target[meta.readonly]; + delete target[meta.size]; + delete target[meta.type]; + } + } + if (value !== null && data.unserializable.length > 0) { + var unserializablePath = data.unserializable[0]; + var isMatch = unserializablePath.length === path.length; + for (var i = 0; i < path.length; i++) { + if (path[i] !== unserializablePath[i]) { + isMatch = false; + break; + } + } + if (isMatch) { + upgradeUnserializable(value, value); + } + } + setInObject(object, path, value); } - function invokeFunc(time) { - var args = lastArgs, - thisArg = lastThis; - lastArgs = lastThis = undefined; - lastInvokeTime = time; - result = func.apply(thisArg, args); - return result; + function hydrate(object, cleaned, unserializable) { + cleaned.forEach(function (path) { + var length = path.length; + var last = path[length - 1]; + var parent = getInObject(object, path.slice(0, length - 1)); + if (!parent || !parent.hasOwnProperty(last)) { + return; + } + var value = parent[last]; + if (!value) { + return; + } else if (value.type === 'infinity') { + parent[last] = Infinity; + } else if (value.type === 'nan') { + parent[last] = NaN; + } else if (value.type === 'undefined') { + parent[last] = undefined; + } else { + // Replace the string keys with Symbols so they're non-enumerable. + var replaced = {}; + replaced[meta.inspectable] = !!value.inspectable; + replaced[meta.inspected] = false; + replaced[meta.name] = value.name; + replaced[meta.preview_long] = value.preview_long; + replaced[meta.preview_short] = value.preview_short; + replaced[meta.size] = value.size; + replaced[meta.readonly] = !!value.readonly; + replaced[meta.type] = value.type; + parent[last] = replaced; + } + }); + unserializable.forEach(function (path) { + var length = path.length; + var last = path[length - 1]; + var parent = getInObject(object, path.slice(0, length - 1)); + if (!parent || !parent.hasOwnProperty(last)) { + return; + } + var node = parent[last]; + var replacement = _objectSpread({}, node); + upgradeUnserializable(replacement, node); + parent[last] = replacement; + }); + return object; } - function leadingEdge(time) { - lastInvokeTime = time; - - timerId = setTimeout(timerExpired, wait); - - return leading ? invokeFunc(time) : result; + function upgradeUnserializable(destination, source) { + var _Object$definePropert; + Object.defineProperties(destination, (_Object$definePropert = {}, hydration_defineProperty(_Object$definePropert, meta.inspected, { + configurable: true, + enumerable: false, + value: !!source.inspected + }), hydration_defineProperty(_Object$definePropert, meta.name, { + configurable: true, + enumerable: false, + value: source.name + }), hydration_defineProperty(_Object$definePropert, meta.preview_long, { + configurable: true, + enumerable: false, + value: source.preview_long + }), hydration_defineProperty(_Object$definePropert, meta.preview_short, { + configurable: true, + enumerable: false, + value: source.preview_short + }), hydration_defineProperty(_Object$definePropert, meta.size, { + configurable: true, + enumerable: false, + value: source.size + }), hydration_defineProperty(_Object$definePropert, meta.readonly, { + configurable: true, + enumerable: false, + value: !!source.readonly + }), hydration_defineProperty(_Object$definePropert, meta.type, { + configurable: true, + enumerable: false, + value: source.type + }), hydration_defineProperty(_Object$definePropert, meta.unserializable, { + configurable: true, + enumerable: false, + value: !!source.unserializable + }), _Object$definePropert)); + delete destination.inspected; + delete destination.name; + delete destination.preview_long; + delete destination.preview_short; + delete destination.size; + delete destination.readonly; + delete destination.type; + delete destination.unserializable; + } + ; // CONCATENATED MODULE: ../shared/isArray.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare + + function isArray_isArray(a) { + return isArrayImpl(a); + } + + /* harmony default export */ + var shared_isArray = isArray_isArray; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/utils.js + function utils_toConsumableArray(arr) { + return utils_arrayWithoutHoles(arr) || utils_iterableToArray(arr) || backend_utils_unsupportedIterableToArray(arr) || utils_nonIterableSpread(); + } + function utils_nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function backend_utils_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return backend_utils_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return backend_utils_arrayLikeToArray(o, minLen); + } + function utils_iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); + } + function utils_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return backend_utils_arrayLikeToArray(arr); + } + function backend_utils_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function backend_utils_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + backend_utils_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + backend_utils_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return backend_utils_typeof(obj); } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime, - result = wait - timeSinceLastCall; - return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; + function utils_ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime; - - return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; + function utils_objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + utils_ownKeys(Object(source), true).forEach(function (key) { + utils_defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + utils_ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); + function utils_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; } - - timerId = setTimeout(timerExpired, remainingWait(time)); + return obj; } - function trailingEdge(time) { - timerId = undefined; - if (trailing && lastArgs) { - return invokeFunc(time); + /** + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + // TODO: update this to the first React version that has a corresponding DevTools backend + var FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER = '999.9.9'; + function hasAssignedBackend(version) { + if (version == null || version === '') { + return false; } - lastArgs = lastThis = undefined; - return result; + return gte(version, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER); } - function cancel() { - if (timerId !== undefined) { - clearTimeout(timerId); + function cleanForBridge(data, isPathAllowed) { + var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + if (data !== null) { + var cleanedPaths = []; + var unserializablePaths = []; + var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path, isPathAllowed); + return { + data: cleanedData, + cleaned: cleanedPaths, + unserializable: unserializablePaths + }; + } else { + return null; } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined; - } - function flush() { - return timerId === undefined ? result : trailingEdge(now()); } - function debounced() { - var time = now(), - isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined) { - return leadingEdge(lastCallTime); - } - if (maxing) { - timerId = setTimeout(timerExpired, wait); - return invokeFunc(lastCallTime); + function copyWithDelete(obj, path) { + var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var key = path[index]; + var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj); + if (index + 1 === path.length) { + if (shared_isArray(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; } + } else { + // $FlowFixMe[incompatible-use] number or string is fine here + updated[key] = copyWithDelete(obj[key], path, index + 1); } - if (timerId === undefined) { - timerId = setTimeout(timerExpired, wait); + return updated; + } // This function expects paths to be the same except for the final value. + // e.g. ['path', 'to', 'foo'] and ['path', 'to', 'bar'] + + function copyWithRename(obj, oldPath, newPath) { + var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + var oldKey = oldPath[index]; + var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj); + if (index + 1 === oldPath.length) { + var newKey = newPath[index]; // $FlowFixMe[incompatible-use] number or string is fine here + + updated[newKey] = updated[oldKey]; + if (shared_isArray(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + // $FlowFixMe[incompatible-use] number or string is fine here + updated[oldKey] = copyWithRename(obj[oldKey], oldPath, newPath, index + 1); } - return result; + return updated; } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } + function copyWithSet(obj, path, value) { + var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + if (index >= path.length) { + return value; + } + var key = path[index]; + var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj); // $FlowFixMe[incompatible-use] number or string is fine here - function throttle(func, wait, options) { - var leading = true, - trailing = true; - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); + updated[key] = copyWithSet(obj[key], path, value, index + 1); + return updated; } - if (isObject(options)) { - leading = 'leading' in options ? !!options.leading : leading; - trailing = 'trailing' in options ? !!options.trailing : trailing; + function getEffectDurations(root) { + // Profiling durations are only available for certain builds. + // If available, they'll be stored on the HostRoot. + var effectDuration = null; + var passiveEffectDuration = null; + var hostRoot = root.current; + if (hostRoot != null) { + var stateNode = hostRoot.stateNode; + if (stateNode != null) { + effectDuration = stateNode.effectDuration != null ? stateNode.effectDuration : null; + passiveEffectDuration = stateNode.passiveEffectDuration != null ? stateNode.passiveEffectDuration : null; + } + } + return { + effectDuration: effectDuration, + passiveEffectDuration: passiveEffectDuration + }; } - return debounce(func, wait, { - 'leading': leading, - 'maxWait': wait, - 'trailing': trailing - }); - } - - function isObject(value) { - var type = _typeof(value); - return !!value && (type == 'object' || type == 'function'); - } - - function isObjectLike(value) { - return !!value && _typeof(value) == 'object'; - } + function serializeToString(data) { + if (data === undefined) { + return 'undefined'; + } + var cache = new Set(); // Use a custom replacer function to protect against circular references. - function isSymbol(value) { - return _typeof(value) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag; - } + return JSON.stringify(data, function (key, value) { + if (backend_utils_typeof(value) === 'object' && value !== null) { + if (cache.has(value)) { + return; + } + cache.add(value); + } + if (typeof value === 'bigint') { + return value.toString() + 'n'; + } + return value; + }, 2); + } // Formats an array of args with a style for console methods, using + // the following algorithm: + // 1. The first param is a string that contains %c + // - Bail out and return the args without modifying the styles. + // We don't want to affect styles that the developer deliberately set. + // 2. The first param is a string that doesn't contain %c but contains + // string formatting + // - [`%c${args[0]}`, style, ...args.slice(1)] + // - Note: we assume that the string formatting that the developer uses + // is correct. + // 3. The first param is a string that doesn't contain string formatting + // OR is not a string + // - Create a formatting string where: + // boolean, string, symbol -> %s + // number -> %f OR %i depending on if it's an int or float + // default -> %o + + function formatWithStyles(inputArgs, style) { + if (inputArgs === undefined || inputArgs === null || inputArgs.length === 0 || + // Matches any of %c but not %%c + typeof inputArgs[0] === 'string' && inputArgs[0].match(/([^%]|^)(%c)/g) || style === undefined) { + return inputArgs; + } // Matches any of %(o|O|d|i|s|f), but not %%(o|O|d|i|s|f) + + var REGEXP = /([^%]|^)((%%)*)(%([oOdisf]))/g; + if (typeof inputArgs[0] === 'string' && inputArgs[0].match(REGEXP)) { + return ["%c".concat(inputArgs[0]), style].concat(utils_toConsumableArray(inputArgs.slice(1))); + } else { + var firstArg = inputArgs.reduce(function (formatStr, elem, i) { + if (i > 0) { + formatStr += ' '; + } + switch (backend_utils_typeof(elem)) { + case 'string': + case 'boolean': + case 'symbol': + return formatStr += '%s'; + case 'number': + var formatting = Number.isInteger(elem) ? '%i' : '%f'; + return formatStr += formatting; + default: + return formatStr += '%o'; + } + }, '%c'); + return [firstArg, style].concat(utils_toConsumableArray(inputArgs)); + } + } // based on https://github.com/tmpfs/format-util/blob/0e62d430efb0a1c51448709abd3e2406c14d8401/format.js#L1 + // based on https://developer.mozilla.org/en-US/docs/Web/API/console#Using_string_substitutions + // Implements s, d, i and f placeholders + // NOTE: KEEP IN SYNC with src/hook.js + + function format(maybeMessage) { + for (var _len = arguments.length, inputArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + inputArgs[_key - 1] = arguments[_key]; + } + var args = inputArgs.slice(); + var formatted = String(maybeMessage); // If the first argument is a string, check for substitutions. + + if (typeof maybeMessage === 'string') { + if (args.length) { + var REGEXP = /(%?)(%([jds]))/g; + formatted = formatted.replace(REGEXP, function (match, escaped, ptn, flag) { + var arg = args.shift(); + switch (flag) { + case 's': + arg += ''; + break; + case 'd': + case 'i': + arg = parseInt(arg, 10).toString(); + break; + case 'f': + arg = parseFloat(arg).toString(); + break; + } + if (!escaped) { + return arg; + } + args.unshift(arg); + return match; + }); + } + } // Arguments that remain after formatting. - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? other + '' : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; + if (args.length) { + for (var i = 0; i < args.length; i++) { + formatted += ' ' + String(args[i]); + } + } // Update escaped %% values. + + formatted = formatted.replace(/%{2,2}/g, '%'); + return String(formatted); + } + function isSynchronousXHRSupported() { + return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature('sync-xhr')); + } + function gt() { + var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return compareVersions(a, b) === 1; + } + function gte() { + var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return compareVersions(a, b) > -1; + } + // EXTERNAL MODULE: ../../build/oss-experimental/react-debug-tools/index.js + var react_debug_tools = __webpack_require__(987); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/ReactSymbols.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // This list should be kept updated to reflect additions to 'shared/ReactSymbols'. + // DevTools can't import symbols from 'shared/ReactSymbols' directly for two reasons: + // 1. DevTools requires symbols which may have been deleted in more recent versions (e.g. concurrent mode) + // 2. DevTools must support both Symbol and numeric forms of each symbol; + // Since e.g. standalone DevTools runs in a separate process, it can't rely on its own ES capabilities. + var CONCURRENT_MODE_NUMBER = 0xeacf; + var CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)'; + var CONTEXT_NUMBER = 0xeace; + var CONTEXT_SYMBOL_STRING = 'Symbol(react.context)'; + var SERVER_CONTEXT_SYMBOL_STRING = 'Symbol(react.server_context)'; + var DEPRECATED_ASYNC_MODE_SYMBOL_STRING = 'Symbol(react.async_mode)'; + var ELEMENT_NUMBER = 0xeac7; + var ELEMENT_SYMBOL_STRING = 'Symbol(react.element)'; + var DEBUG_TRACING_MODE_NUMBER = 0xeae1; + var DEBUG_TRACING_MODE_SYMBOL_STRING = 'Symbol(react.debug_trace_mode)'; + var ReactSymbols_FORWARD_REF_NUMBER = 0xead0; + var ReactSymbols_FORWARD_REF_SYMBOL_STRING = 'Symbol(react.forward_ref)'; + var FRAGMENT_NUMBER = 0xeacb; + var FRAGMENT_SYMBOL_STRING = 'Symbol(react.fragment)'; + var ReactSymbols_LAZY_NUMBER = 0xead4; + var ReactSymbols_LAZY_SYMBOL_STRING = 'Symbol(react.lazy)'; + var ReactSymbols_MEMO_NUMBER = 0xead3; + var ReactSymbols_MEMO_SYMBOL_STRING = 'Symbol(react.memo)'; + var PORTAL_NUMBER = 0xeaca; + var PORTAL_SYMBOL_STRING = 'Symbol(react.portal)'; + var PROFILER_NUMBER = 0xead2; + var PROFILER_SYMBOL_STRING = 'Symbol(react.profiler)'; + var PROVIDER_NUMBER = 0xeacd; + var PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)'; + var SCOPE_NUMBER = 0xead7; + var SCOPE_SYMBOL_STRING = 'Symbol(react.scope)'; + var STRICT_MODE_NUMBER = 0xeacc; + var STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)'; + var ReactSymbols_SUSPENSE_NUMBER = 0xead1; + var ReactSymbols_SUSPENSE_SYMBOL_STRING = 'Symbol(react.suspense)'; + var ReactSymbols_SUSPENSE_LIST_NUMBER = 0xead8; + var ReactSymbols_SUSPENSE_LIST_SYMBOL_STRING = 'Symbol(react.suspense_list)'; + var SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED_SYMBOL_STRING = 'Symbol(react.server_context.defaultValue)'; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/config/DevToolsFeatureFlags.core-oss.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + /************************************************************************ + * This file is forked between different DevTools implementations. + * It should never be imported directly! + * It should always be imported from "react-devtools-feature-flags". + ************************************************************************/ + var consoleManagedByDevToolsDuringStrictMode = false; + var enableLogger = false; + var enableStyleXFeatures = false; + var isInternalFacebookBuild = false; + /************************************************************************ + * Do not edit the code below. + * It ensures this fork exports the same types as the default flags file. + ************************************************************************/ + + // Flow magic to verify the exports of this file match the original version. + null; + ; // CONCATENATED MODULE: ../shared/objectIs.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare + ; } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - module.exports = throttle; - }).call(this, __webpack_require__(13)); - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "b", function () { - return getInternalReactConstants; - }); - __webpack_require__.d(__webpack_exports__, "a", function () { - return attach; - }); - - var semver = __webpack_require__(10); - - var types = __webpack_require__(1); - - var utils = __webpack_require__(2); - - var storage = __webpack_require__(5); - - var backend_utils = __webpack_require__(4); - - var constants = __webpack_require__(0); - - var react_debug_tools = __webpack_require__(20); - - var backend_console = __webpack_require__(9); - - var ReactSymbols = __webpack_require__(3); - - var DevToolsFeatureFlags_core_oss = __webpack_require__(12); - - function is(x, y) { - return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; - } - - var objectIs = typeof Object.is === 'function' ? Object.is : is; - var shared_objectIs = objectIs; - var isArray = __webpack_require__(8); - - var hasOwnProperty_hasOwnProperty = Object.prototype.hasOwnProperty; - var shared_hasOwnProperty = hasOwnProperty_hasOwnProperty; - var src_isArray = __webpack_require__(6); - - var cachedStyleNameToValueMap = new Map(); - function getStyleXData(data) { - var sources = new Set(); - var resolvedStyles = {}; - crawlData(data, sources, resolvedStyles); - return { - sources: Array.from(sources).sort(), - resolvedStyles: resolvedStyles - }; - } - function crawlData(data, sources, resolvedStyles) { - if (data == null) { - return; - } - if (Object(src_isArray["a"])(data)) { - data.forEach(function (entry) { - if (entry == null) { + var objectIs = + // $FlowFixMe[method-unbinding] + typeof Object.is === 'function' ? Object.is : is; + /* harmony default export */ + var shared_objectIs = objectIs; + ; // CONCATENATED MODULE: ../shared/hasOwnProperty.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // $FlowFixMe[method-unbinding] + var hasOwnProperty_hasOwnProperty = Object.prototype.hasOwnProperty; + /* harmony default export */ + var shared_hasOwnProperty = hasOwnProperty_hasOwnProperty; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/StyleX/utils.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var cachedStyleNameToValueMap = new Map(); + function getStyleXData(data) { + var sources = new Set(); + var resolvedStyles = {}; + crawlData(data, sources, resolvedStyles); + return { + sources: Array.from(sources).sort(), + resolvedStyles: resolvedStyles + }; + } + function crawlData(data, sources, resolvedStyles) { + if (data == null) { return; } - if (Object(src_isArray["a"])(entry)) { - crawlData(entry, sources, resolvedStyles); - } else { - crawlObjectProperties(entry, sources, resolvedStyles); - } - }); - } else { - crawlObjectProperties(data, sources, resolvedStyles); - } - resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort()); - } - function crawlObjectProperties(entry, sources, resolvedStyles) { - var keys = Object.keys(entry); - keys.forEach(function (key) { - var value = entry[key]; - if (typeof value === 'string') { - if (key === value) { - sources.add(key); + if (src_isArray(data)) { + data.forEach(function (entry) { + if (entry == null) { + return; + } + if (src_isArray(entry)) { + crawlData(entry, sources, resolvedStyles); + } else { + crawlObjectProperties(entry, sources, resolvedStyles); + } + }); } else { - resolvedStyles[key] = getPropertyValueForStyleName(value); - } - } else { - var nestedStyle = {}; - resolvedStyles[key] = nestedStyle; - crawlData([value], sources, nestedStyle); - } - }); - } - function getPropertyValueForStyleName(styleName) { - if (cachedStyleNameToValueMap.has(styleName)) { - return cachedStyleNameToValueMap.get(styleName); - } - for (var styleSheetIndex = 0; styleSheetIndex < document.styleSheets.length; styleSheetIndex++) { - var styleSheet = document.styleSheets[styleSheetIndex]; - - var rules = styleSheet.rules || styleSheet.cssRules; - for (var ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) { - var rule = rules[ruleIndex]; - - var cssText = rule.cssText, - selectorText = rule.selectorText, - style = rule.style; - if (selectorText != null) { - if (selectorText.startsWith(".".concat(styleName))) { - var match = cssText.match(/{ *([a-z\-]+):/); - if (match !== null) { - var property = match[1]; - var value = style.getPropertyValue(property); - cachedStyleNameToValueMap.set(styleName, value); - return value; + crawlObjectProperties(data, sources, resolvedStyles); + } + resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort()); + } + function crawlObjectProperties(entry, sources, resolvedStyles) { + var keys = Object.keys(entry); + keys.forEach(function (key) { + var value = entry[key]; + if (typeof value === 'string') { + if (key === value) { + // Special case; this key is the name of the style's source/file/module. + sources.add(key); } else { - return null; + var propertyValue = getPropertyValueForStyleName(value); + if (propertyValue != null) { + resolvedStyles[key] = propertyValue; + } } + } else { + var nestedStyle = {}; + resolvedStyles[key] = nestedStyle; + crawlData([value], sources, nestedStyle); } - } + }); } - } - return null; - } - - var REACT_TOTAL_NUM_LANES = 31; + function getPropertyValueForStyleName(styleName) { + if (cachedStyleNameToValueMap.has(styleName)) { + return cachedStyleNameToValueMap.get(styleName); + } + for (var styleSheetIndex = 0; styleSheetIndex < document.styleSheets.length; styleSheetIndex++) { + var styleSheet = document.styleSheets[styleSheetIndex]; + var rules = null; // this might throw if CORS rules are enforced https://www.w3.org/TR/cssom-1/#the-cssstylesheet-interface - var SCHEDULING_PROFILER_VERSION = 1; - var SNAPSHOT_MAX_HEIGHT = 60; - function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); - } - function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } - function _iterableToArrayLimit(arr, i) { - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - if (i && _arr.length === i) break; + try { + rules = styleSheet.cssRules; + } catch (_e) { + continue; + } + for (var ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) { + if (!(rules[ruleIndex] instanceof CSSStyleRule)) { + continue; + } + var rule = rules[ruleIndex]; + var cssText = rule.cssText, + selectorText = rule.selectorText, + style = rule.style; + if (selectorText != null) { + if (selectorText.startsWith(".".concat(styleName))) { + var match = cssText.match(/{ *([a-z\-]+):/); + if (match !== null) { + var property = match[1]; + var value = style.getPropertyValue(property); + cachedStyleNameToValueMap.set(styleName, value); + return value; + } else { + return null; + } + } + } + } + } + return null; } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/devtools/constants.js + var CHANGE_LOG_URL = 'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md'; + var UNSUPPORTED_VERSION_URL = 'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back'; + var REACT_DEVTOOLS_WORKPLACE_URL = 'https://fburl.com/react-devtools-workplace-group'; + var THEME_STYLES = { + light: { + '--color-attribute-name': '#ef6632', + '--color-attribute-name-not-editable': '#23272f', + '--color-attribute-name-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-attribute-value': '#1a1aa6', + '--color-attribute-value-inverted': '#ffffff', + '--color-attribute-editable-value': '#1a1aa6', + '--color-background': '#ffffff', + '--color-background-hover': 'rgba(0, 136, 250, 0.1)', + '--color-background-inactive': '#e5e5e5', + '--color-background-invalid': '#fff0f0', + '--color-background-selected': '#0088fa', + '--color-button-background': '#ffffff', + '--color-button-background-focus': '#ededed', + '--color-button': '#5f6673', + '--color-button-disabled': '#cfd1d5', + '--color-button-active': '#0088fa', + '--color-button-focus': '#23272f', + '--color-button-hover': '#23272f', + '--color-border': '#eeeeee', + '--color-commit-did-not-render-fill': '#cfd1d5', + '--color-commit-did-not-render-fill-text': '#000000', + '--color-commit-did-not-render-pattern': '#cfd1d5', + '--color-commit-did-not-render-pattern-text': '#333333', + '--color-commit-gradient-0': '#37afa9', + '--color-commit-gradient-1': '#63b19e', + '--color-commit-gradient-2': '#80b393', + '--color-commit-gradient-3': '#97b488', + '--color-commit-gradient-4': '#abb67d', + '--color-commit-gradient-5': '#beb771', + '--color-commit-gradient-6': '#cfb965', + '--color-commit-gradient-7': '#dfba57', + '--color-commit-gradient-8': '#efbb49', + '--color-commit-gradient-9': '#febc38', + '--color-commit-gradient-text': '#000000', + '--color-component-name': '#6a51b2', + '--color-component-name-inverted': '#ffffff', + '--color-component-badge-background': 'rgba(0, 0, 0, 0.1)', + '--color-component-badge-background-inverted': 'rgba(255, 255, 255, 0.25)', + '--color-component-badge-count': '#777d88', + '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-console-error-badge-text': '#ffffff', + '--color-console-error-background': '#fff0f0', + '--color-console-error-border': '#ffd6d6', + '--color-console-error-icon': '#eb3941', + '--color-console-error-text': '#fe2e31', + '--color-console-warning-badge-text': '#000000', + '--color-console-warning-background': '#fffbe5', + '--color-console-warning-border': '#fff5c1', + '--color-console-warning-icon': '#f4bd00', + '--color-console-warning-text': '#64460c', + '--color-context-background': 'rgba(0,0,0,.9)', + '--color-context-background-hover': 'rgba(255, 255, 255, 0.1)', + '--color-context-background-selected': '#178fb9', + '--color-context-border': '#3d424a', + '--color-context-text': '#ffffff', + '--color-context-text-selected': '#ffffff', + '--color-dim': '#777d88', + '--color-dimmer': '#cfd1d5', + '--color-dimmest': '#eff0f1', + '--color-error-background': 'hsl(0, 100%, 97%)', + '--color-error-border': 'hsl(0, 100%, 92%)', + '--color-error-text': '#ff0000', + '--color-expand-collapse-toggle': '#777d88', + '--color-link': '#0000ff', + '--color-modal-background': 'rgba(255, 255, 255, 0.75)', + '--color-bridge-version-npm-background': '#eff0f1', + '--color-bridge-version-npm-text': '#000000', + '--color-bridge-version-number': '#0088fa', + '--color-primitive-hook-badge-background': '#e5e5e5', + '--color-primitive-hook-badge-text': '#5f6673', + '--color-record-active': '#fc3a4b', + '--color-record-hover': '#3578e5', + '--color-record-inactive': '#0088fa', + '--color-resize-bar': '#eeeeee', + '--color-resize-bar-active': '#dcdcdc', + '--color-resize-bar-border': '#d1d1d1', + '--color-resize-bar-dot': '#333333', + '--color-timeline-internal-module': '#d1d1d1', + '--color-timeline-internal-module-hover': '#c9c9c9', + '--color-timeline-internal-module-text': '#444', + '--color-timeline-native-event': '#ccc', + '--color-timeline-native-event-hover': '#aaa', + '--color-timeline-network-primary': '#fcf3dc', + '--color-timeline-network-primary-hover': '#f0e7d1', + '--color-timeline-network-secondary': '#efc457', + '--color-timeline-network-secondary-hover': '#e3ba52', + '--color-timeline-priority-background': '#f6f6f6', + '--color-timeline-priority-border': '#eeeeee', + '--color-timeline-user-timing': '#c9cacd', + '--color-timeline-user-timing-hover': '#93959a', + '--color-timeline-react-idle': '#d3e5f6', + '--color-timeline-react-idle-hover': '#c3d9ef', + '--color-timeline-react-render': '#9fc3f3', + '--color-timeline-react-render-hover': '#83afe9', + '--color-timeline-react-render-text': '#11365e', + '--color-timeline-react-commit': '#c88ff0', + '--color-timeline-react-commit-hover': '#b281d6', + '--color-timeline-react-commit-text': '#3e2c4a', + '--color-timeline-react-layout-effects': '#b281d6', + '--color-timeline-react-layout-effects-hover': '#9d71bd', + '--color-timeline-react-layout-effects-text': '#3e2c4a', + '--color-timeline-react-passive-effects': '#b281d6', + '--color-timeline-react-passive-effects-hover': '#9d71bd', + '--color-timeline-react-passive-effects-text': '#3e2c4a', + '--color-timeline-react-schedule': '#9fc3f3', + '--color-timeline-react-schedule-hover': '#2683E2', + '--color-timeline-react-suspense-rejected': '#f1cc14', + '--color-timeline-react-suspense-rejected-hover': '#ffdf37', + '--color-timeline-react-suspense-resolved': '#a6e59f', + '--color-timeline-react-suspense-resolved-hover': '#89d281', + '--color-timeline-react-suspense-unresolved': '#c9cacd', + '--color-timeline-react-suspense-unresolved-hover': '#93959a', + '--color-timeline-thrown-error': '#ee1638', + '--color-timeline-thrown-error-hover': '#da1030', + '--color-timeline-text-color': '#000000', + '--color-timeline-text-dim-color': '#ccc', + '--color-timeline-react-work-border': '#eeeeee', + '--color-search-match': 'yellow', + '--color-search-match-current': '#f7923b', + '--color-selected-tree-highlight-active': 'rgba(0, 136, 250, 0.1)', + '--color-selected-tree-highlight-inactive': 'rgba(0, 0, 0, 0.05)', + '--color-scroll-caret': 'rgba(150, 150, 150, 0.5)', + '--color-tab-selected-border': '#0088fa', + '--color-text': '#000000', + '--color-text-invalid': '#ff0000', + '--color-text-selected': '#ffffff', + '--color-toggle-background-invalid': '#fc3a4b', + '--color-toggle-background-on': '#0088fa', + '--color-toggle-background-off': '#cfd1d5', + '--color-toggle-text': '#ffffff', + '--color-warning-background': '#fb3655', + '--color-warning-background-hover': '#f82042', + '--color-warning-text-color': '#ffffff', + '--color-warning-text-color-inverted': '#fd4d69', + // The styles below should be kept in sync with 'root.css' + // They are repeated there because they're used by e.g. tooltips or context menus + // which get rendered outside of the DOM subtree (where normal theme/styles are written). + '--color-scroll-thumb': '#c2c2c2', + '--color-scroll-track': '#fafafa', + '--color-tooltip-background': 'rgba(0, 0, 0, 0.9)', + '--color-tooltip-text': '#ffffff' + }, + dark: { + '--color-attribute-name': '#9d87d2', + '--color-attribute-name-not-editable': '#ededed', + '--color-attribute-name-inverted': '#282828', + '--color-attribute-value': '#cedae0', + '--color-attribute-value-inverted': '#ffffff', + '--color-attribute-editable-value': 'yellow', + '--color-background': '#282c34', + '--color-background-hover': 'rgba(255, 255, 255, 0.1)', + '--color-background-inactive': '#3d424a', + '--color-background-invalid': '#5c0000', + '--color-background-selected': '#178fb9', + '--color-button-background': '#282c34', + '--color-button-background-focus': '#3d424a', + '--color-button': '#afb3b9', + '--color-button-active': '#61dafb', + '--color-button-disabled': '#4f5766', + '--color-button-focus': '#a2e9fc', + '--color-button-hover': '#ededed', + '--color-border': '#3d424a', + '--color-commit-did-not-render-fill': '#777d88', + '--color-commit-did-not-render-fill-text': '#000000', + '--color-commit-did-not-render-pattern': '#666c77', + '--color-commit-did-not-render-pattern-text': '#ffffff', + '--color-commit-gradient-0': '#37afa9', + '--color-commit-gradient-1': '#63b19e', + '--color-commit-gradient-2': '#80b393', + '--color-commit-gradient-3': '#97b488', + '--color-commit-gradient-4': '#abb67d', + '--color-commit-gradient-5': '#beb771', + '--color-commit-gradient-6': '#cfb965', + '--color-commit-gradient-7': '#dfba57', + '--color-commit-gradient-8': '#efbb49', + '--color-commit-gradient-9': '#febc38', + '--color-commit-gradient-text': '#000000', + '--color-component-name': '#61dafb', + '--color-component-name-inverted': '#282828', + '--color-component-badge-background': 'rgba(255, 255, 255, 0.25)', + '--color-component-badge-background-inverted': 'rgba(0, 0, 0, 0.25)', + '--color-component-badge-count': '#8f949d', + '--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)', + '--color-console-error-badge-text': '#000000', + '--color-console-error-background': '#290000', + '--color-console-error-border': '#5c0000', + '--color-console-error-icon': '#eb3941', + '--color-console-error-text': '#fc7f7f', + '--color-console-warning-badge-text': '#000000', + '--color-console-warning-background': '#332b00', + '--color-console-warning-border': '#665500', + '--color-console-warning-icon': '#f4bd00', + '--color-console-warning-text': '#f5f2ed', + '--color-context-background': 'rgba(255,255,255,.95)', + '--color-context-background-hover': 'rgba(0, 136, 250, 0.1)', + '--color-context-background-selected': '#0088fa', + '--color-context-border': '#eeeeee', + '--color-context-text': '#000000', + '--color-context-text-selected': '#ffffff', + '--color-dim': '#8f949d', + '--color-dimmer': '#777d88', + '--color-dimmest': '#4f5766', + '--color-error-background': '#200', + '--color-error-border': '#900', + '--color-error-text': '#f55', + '--color-expand-collapse-toggle': '#8f949d', + '--color-link': '#61dafb', + '--color-modal-background': 'rgba(0, 0, 0, 0.75)', + '--color-bridge-version-npm-background': 'rgba(0, 0, 0, 0.25)', + '--color-bridge-version-npm-text': '#ffffff', + '--color-bridge-version-number': 'yellow', + '--color-primitive-hook-badge-background': 'rgba(0, 0, 0, 0.25)', + '--color-primitive-hook-badge-text': 'rgba(255, 255, 255, 0.7)', + '--color-record-active': '#fc3a4b', + '--color-record-hover': '#a2e9fc', + '--color-record-inactive': '#61dafb', + '--color-resize-bar': '#282c34', + '--color-resize-bar-active': '#31363f', + '--color-resize-bar-border': '#3d424a', + '--color-resize-bar-dot': '#cfd1d5', + '--color-timeline-internal-module': '#303542', + '--color-timeline-internal-module-hover': '#363b4a', + '--color-timeline-internal-module-text': '#7f8899', + '--color-timeline-native-event': '#b2b2b2', + '--color-timeline-native-event-hover': '#949494', + '--color-timeline-network-primary': '#fcf3dc', + '--color-timeline-network-primary-hover': '#e3dbc5', + '--color-timeline-network-secondary': '#efc457', + '--color-timeline-network-secondary-hover': '#d6af4d', + '--color-timeline-priority-background': '#1d2129', + '--color-timeline-priority-border': '#282c34', + '--color-timeline-user-timing': '#c9cacd', + '--color-timeline-user-timing-hover': '#93959a', + '--color-timeline-react-idle': '#3d485b', + '--color-timeline-react-idle-hover': '#465269', + '--color-timeline-react-render': '#2683E2', + '--color-timeline-react-render-hover': '#1a76d4', + '--color-timeline-react-render-text': '#11365e', + '--color-timeline-react-commit': '#731fad', + '--color-timeline-react-commit-hover': '#611b94', + '--color-timeline-react-commit-text': '#e5c1ff', + '--color-timeline-react-layout-effects': '#611b94', + '--color-timeline-react-layout-effects-hover': '#51167a', + '--color-timeline-react-layout-effects-text': '#e5c1ff', + '--color-timeline-react-passive-effects': '#611b94', + '--color-timeline-react-passive-effects-hover': '#51167a', + '--color-timeline-react-passive-effects-text': '#e5c1ff', + '--color-timeline-react-schedule': '#2683E2', + '--color-timeline-react-schedule-hover': '#1a76d4', + '--color-timeline-react-suspense-rejected': '#f1cc14', + '--color-timeline-react-suspense-rejected-hover': '#e4c00f', + '--color-timeline-react-suspense-resolved': '#a6e59f', + '--color-timeline-react-suspense-resolved-hover': '#89d281', + '--color-timeline-react-suspense-unresolved': '#c9cacd', + '--color-timeline-react-suspense-unresolved-hover': '#93959a', + '--color-timeline-thrown-error': '#fb3655', + '--color-timeline-thrown-error-hover': '#f82042', + '--color-timeline-text-color': '#282c34', + '--color-timeline-text-dim-color': '#555b66', + '--color-timeline-react-work-border': '#3d424a', + '--color-search-match': 'yellow', + '--color-search-match-current': '#f7923b', + '--color-selected-tree-highlight-active': 'rgba(23, 143, 185, 0.15)', + '--color-selected-tree-highlight-inactive': 'rgba(255, 255, 255, 0.05)', + '--color-scroll-caret': '#4f5766', + '--color-shadow': 'rgba(0, 0, 0, 0.5)', + '--color-tab-selected-border': '#178fb9', + '--color-text': '#ffffff', + '--color-text-invalid': '#ff8080', + '--color-text-selected': '#ffffff', + '--color-toggle-background-invalid': '#fc3a4b', + '--color-toggle-background-on': '#178fb9', + '--color-toggle-background-off': '#777d88', + '--color-toggle-text': '#ffffff', + '--color-warning-background': '#ee1638', + '--color-warning-background-hover': '#da1030', + '--color-warning-text-color': '#ffffff', + '--color-warning-text-color-inverted': '#ee1638', + // The styles below should be kept in sync with 'root.css' + // They are repeated there because they're used by e.g. tooltips or context menus + // which get rendered outside of the DOM subtree (where normal theme/styles are written). + '--color-scroll-thumb': '#afb3b9', + '--color-scroll-track': '#313640', + '--color-tooltip-background': 'rgba(255, 255, 255, 0.95)', + '--color-tooltip-text': '#000000' + }, + compact: { + '--font-size-monospace-small': '9px', + '--font-size-monospace-normal': '11px', + '--font-size-monospace-large': '15px', + '--font-size-sans-small': '10px', + '--font-size-sans-normal': '12px', + '--font-size-sans-large': '14px', + '--line-height-data': '18px' + }, + comfortable: { + '--font-size-monospace-small': '10px', + '--font-size-monospace-normal': '13px', + '--font-size-monospace-large': '17px', + '--font-size-sans-small': '12px', + '--font-size-sans-normal': '14px', + '--font-size-sans-large': '16px', + '--line-height-data': '22px' + } + }; // HACK + // + // Sometimes the inline target is rendered before root styles are applied, + // which would result in e.g. NaN itemSize being passed to react-window list. + + var COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable['--line-height-data'], 10); + var COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact['--line-height-data'], 10); + ; // CONCATENATED MODULE: ../react-devtools-timeline/src/constants.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var REACT_TOTAL_NUM_LANES = 31; // Increment this number any time a backwards breaking change is made to the profiler metadata. + + var SCHEDULING_PROFILER_VERSION = 1; + var SNAPSHOT_MAX_HEIGHT = 60; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/DevToolsConsolePatching.js + function DevToolsConsolePatching_ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + return keys; } - } - return _arr; - } - function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - - var TIME_OFFSET = 10; - var performanceTarget = null; - - var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function'; - var supportsUserTimingV3 = false; - if (supportsUserTiming) { - var CHECK_V3_MARK = '__v3'; - var markOptions = {}; - - Object.defineProperty(markOptions, 'startTime', { - get: function get() { - supportsUserTimingV3 = true; - return 0; - }, - set: function set() {} - }); - try { - performance.mark(CHECK_V3_MARK, markOptions); - } catch (error) { - } finally { - performance.clearMarks(CHECK_V3_MARK); - } - } - if (supportsUserTimingV3) { - performanceTarget = performance; - } + function DevToolsConsolePatching_objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + DevToolsConsolePatching_ownKeys(Object(source), true).forEach(function (key) { + DevToolsConsolePatching_defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + DevToolsConsolePatching_ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + return target; + } + function DevToolsConsolePatching_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // This is a DevTools fork of shared/ConsolePatchingDev. + // The shared console patching code is DEV-only. + // We can't use it since DevTools only ships production builds. + // Helpers to patch console.logs to avoid logging during side-effect free + // replaying on render function. This currently only patches the object + // lazily which won't cover if the log function was extracted eagerly. + // We could also eagerly patch the method. + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() {} + disabledLog.__reactDisabledLog = true; + function disableLogs() { + if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 + + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. + + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + /* eslint-enable react-internal/no-production-logging */ + } - var getCurrentTime = (typeof performance === "undefined" ? "undefined" : _typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (disabledDepth === 0) { + /* eslint-disable react-internal/no-production-logging */ + var props = { + configurable: true, + enumerable: true, + writable: true + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. - function setPerformanceMock_ONLY_FOR_TESTING(performanceMock) { - performanceTarget = performanceMock; - supportsUserTiming = performanceMock !== null; - supportsUserTimingV3 = performanceMock !== null; - } - function createProfilingHooks(_ref) { - var getDisplayNameForFiber = _ref.getDisplayNameForFiber, - getIsProfiling = _ref.getIsProfiling, - getLaneLabelMap = _ref.getLaneLabelMap, - reactVersion = _ref.reactVersion; - var currentBatchUID = 0; - var currentReactComponentMeasure = null; - var currentReactMeasuresStack = []; - var currentTimelineData = null; - var isProfiling = false; - var nextRenderShouldStartNewBatch = false; - function getRelativeTime() { - var currentTime = getCurrentTime(); - if (currentTimelineData) { - if (currentTimelineData.startTime === 0) { - currentTimelineData.startTime = currentTime - TIME_OFFSET; + Object.defineProperties(console, { + log: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevLog + }), + info: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevInfo + }), + warn: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevWarn + }), + error: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevError + }), + group: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevGroup + }), + groupCollapsed: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevGroupCollapsed + }), + groupEnd: DevToolsConsolePatching_objectSpread(DevToolsConsolePatching_objectSpread({}, props), {}, { + value: prevGroupEnd + }) + }); + /* eslint-enable react-internal/no-production-logging */ } - return currentTime - currentTimelineData.startTime; - } - return 0; - } - function getInternalModuleRanges() { - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges === 'function') { - var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges(); - if (Object(isArray["a"])(ranges)) { - return ranges; + if (disabledDepth < 0) { + console.error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); } } - return null; - } - function getTimelineData() { - return currentTimelineData; - } - function laneToLanesArray(lanes) { - var lanesArray = []; - var lane = 1; - for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { - if (lane & lanes) { - lanesArray.push(lane); - } - lane *= 2; - } - return lanesArray; - } - var laneToLabelMap = typeof getLaneLabelMap === 'function' ? getLaneLabelMap() : null; - function markMetadata() { - markAndClear("--react-version-".concat(reactVersion)); - markAndClear("--profiler-version-".concat(SCHEDULING_PROFILER_VERSION)); - var ranges = getInternalModuleRanges(); - if (ranges) { - for (var i = 0; i < ranges.length; i++) { - var range = ranges[i]; - if (Object(isArray["a"])(range) && range.length === 2) { - var _ranges$i = _slicedToArray(ranges[i], 2), - startStackFrame = _ranges$i[0], - stopStackFrame = _ranges$i[1]; - markAndClear("--react-internal-module-start-".concat(startStackFrame)); - markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); - } - } - } - if (laneToLabelMap != null) { - var labels = Array.from(laneToLabelMap.values()).join(','); - markAndClear("--react-lane-labels-".concat(labels)); - } - } - function markAndClear(markName) { - performanceTarget.mark(markName); - performanceTarget.clearMarks(markName); - } - function recordReactMeasureStarted(type, lanes) { - var depth = 0; - if (currentReactMeasuresStack.length > 0) { - var top = currentReactMeasuresStack[currentReactMeasuresStack.length - 1]; - depth = top.type === 'render-idle' ? top.depth : top.depth + 1; - } - var lanesArray = laneToLanesArray(lanes); - var reactMeasure = { - type: type, - batchUID: currentBatchUID, - depth: depth, - lanes: lanesArray, - timestamp: getRelativeTime(), - duration: 0 - }; - currentReactMeasuresStack.push(reactMeasure); - if (currentTimelineData) { - var _currentTimelineData = currentTimelineData, - batchUIDToMeasuresMap = _currentTimelineData.batchUIDToMeasuresMap, - laneToReactMeasureMap = _currentTimelineData.laneToReactMeasureMap; - var reactMeasures = batchUIDToMeasuresMap.get(currentBatchUID); - if (reactMeasures != null) { - reactMeasures.push(reactMeasure); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/DevToolsComponentStackFrame.js + function DevToolsComponentStackFrame_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + DevToolsComponentStackFrame_typeof = function _typeof(obj) { + return typeof obj; + }; } else { - batchUIDToMeasuresMap.set(currentBatchUID, [reactMeasure]); + DevToolsComponentStackFrame_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - lanesArray.forEach(function (lane) { - reactMeasures = laneToReactMeasureMap.get(lane); - if (reactMeasures) { - reactMeasures.push(reactMeasure); + return DevToolsComponentStackFrame_typeof(obj); + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // This is a DevTools fork of ReactComponentStackFrame. + // This fork enables DevTools to use the same "native" component stack format, + // while still maintaining support for multiple renderer versions + // (which use different values for ReactTypeOfWork). + // The shared console patching code is DEV-only. + // We can't use it since DevTools only ships production builds. + + var prefix; + function describeBuiltInComponentFrame(name, ownerFn) { + if (prefix === undefined) { + // Extract the VM specific prefix used by each line. + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ''; } - }); - } - } - function recordReactMeasureCompleted(type) { - var currentTime = getRelativeTime(); - if (currentReactMeasuresStack.length === 0) { - console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.', type, currentTime); + } // We use the prefix to ensure our stacks line up with native stack frames. - return; + return '\n' + prefix + name; } - var top = currentReactMeasuresStack.pop(); - if (top.type !== type) { - console.error('Unexpected type "%s" completed at %sms before "%s" completed.', type, currentTime, top.type); + var reentry = false; + var componentFrameCache; + if (false) { + var PossiblyWeakMap; } + function describeNativeComponentFrame(fn, construct, currentDispatcherRef) { + // If something asked for a stack inside a fake render, it should get ignored. + if (!fn || reentry) { + return ''; + } + if (false) { + var frame; + } + var control; + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe[incompatible-type] It does accept undefined. - top.duration = currentTime - top.timestamp; - if (currentTimelineData) { - currentTimelineData.duration = getRelativeTime() + TIME_OFFSET; - } - } - function markCommitStarted(lanes) { - if (isProfiling) { - recordReactMeasureStarted('commit', lanes); + Error.prepareStackTrace = undefined; + reentry = true; // Override the dispatcher so effects scheduled by this shallow render are thrown away. + // + // Note that unlike the code this was forked from (in ReactComponentStackFrame) + // DevTools should override the dispatcher even when DevTools is compiled in production mode, + // because the app itself may be in development mode and log errors/warnings. - nextRenderShouldStartNewBatch = true; - } - if (supportsUserTimingV3) { - markAndClear("--commit-start-".concat(lanes)); + var previousDispatcher = currentDispatcherRef.current; + currentDispatcherRef.current = null; + disableLogs(); + try { + // This should throw. + if (construct) { + // Something should be setting the props in the constructor. + var Fake = function Fake() { + throw Error(); + }; // $FlowFixMe[prop-missing] + + Object.defineProperty(Fake.prototype, 'props', { + set: function set() { + // We use a throwing setter instead of frozen or non-writable props + // because that won't throw in a non-strict mode function. + throw Error(); + } + }); + if ((typeof Reflect === "undefined" ? "undefined" : DevToolsComponentStackFrame_typeof(Reflect)) === 'object' && Reflect.construct) { + // We construct a different control for this case to include any extra + // frames added by the construct call. + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } // $FlowFixMe[prop-missing] found when upgrading Flow + + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + // This is inlined manually because closure doesn't do it for us. + if (sample && control && typeof sample.stack === 'string') { + // This extracts the first frame from the sample that isn't also in the control. + // Skipping one frame that we assume is the frame that calls the two. + var sampleLines = sample.stack.split('\n'); + var controlLines = control.stack.split('\n'); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + // We expect at least one stack frame to be shared. + // Typically this will be the root most one. However, stack frames may be + // cut off due to maximum stack limits. In this case, one maybe cut off + // earlier than the other. We assume that the sample is longer or the same + // and there for cut off earlier. So we should find the root most frame in + // the sample somewhere in the control. + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + // Next we find the first one that isn't the same which should be the + // frame that called our sample function and the control. + if (sampleLines[s] !== controlLines[c]) { + // In V8, the first line is describing the message but other VMs don't. + // If we're about to return the first line, and the control is also on the same + // line, that's a pretty good indicator that our sample threw at same line as + // the control. I.e. before we entered the sample frame. So we ignore this result. + // This can happen if you passed a class to function component, or non-function. + if (s !== 1 || c !== 1) { + do { + s--; + c--; // We may still have similar intermediate frames from the construct call. + // The next one that isn't the same should be our match though. + + if (c < 0 || sampleLines[s] !== controlLines[c]) { + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); + if (false) {} // Return the line we found. + + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + Error.prepareStackTrace = previousPrepareStackTrace; + currentDispatcherRef.current = previousDispatcher; + reenableLogs(); + } // Fallback to just using the name if we couldn't make it throw. - markMetadata(); + var name = fn ? fn.displayName || fn.name : ''; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; + if (false) {} + return syntheticFrame; } - } - function markCommitStopped() { - if (isProfiling) { - recordReactMeasureCompleted('commit'); - recordReactMeasureCompleted('render-idle'); + function describeClassComponentFrame(ctor, ownerFn, currentDispatcherRef) { + return describeNativeComponentFrame(ctor, true, currentDispatcherRef); } - if (supportsUserTimingV3) { - markAndClear('--commit-stop'); + function describeFunctionComponentFrame(fn, ownerFn, currentDispatcherRef) { + return describeNativeComponentFrame(fn, false, currentDispatcherRef); } - } - function markComponentRenderStarted(fiber) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { - if (isProfiling) { - currentReactComponentMeasure = { - componentName: componentName, - duration: 0, - timestamp: getRelativeTime(), - type: 'render', - warning: null - }; + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, ownerFn, currentDispatcherRef) { + if (true) { + return ''; + } + if (type == null) { + return ''; + } + if (typeof type === 'function') { + return describeNativeComponentFrame(type, shouldConstruct(type), currentDispatcherRef); + } + if (typeof type === 'string') { + return describeBuiltInComponentFrame(type, ownerFn); + } + switch (type) { + case SUSPENSE_NUMBER: + case SUSPENSE_SYMBOL_STRING: + return describeBuiltInComponentFrame('Suspense', ownerFn); + case SUSPENSE_LIST_NUMBER: + case SUSPENSE_LIST_SYMBOL_STRING: + return describeBuiltInComponentFrame('SuspenseList', ownerFn); + } + if (DevToolsComponentStackFrame_typeof(type) === 'object') { + switch (type.$$typeof) { + case FORWARD_REF_NUMBER: + case FORWARD_REF_SYMBOL_STRING: + return describeFunctionComponentFrame(type.render, ownerFn, currentDispatcherRef); + case MEMO_NUMBER: + case MEMO_SYMBOL_STRING: + // Memo may contain any component type so we recursively resolve it. + return describeUnknownElementTypeFrameInDEV(type.type, ownerFn, currentDispatcherRef); + case LAZY_NUMBER: + case LAZY_SYMBOL_STRING: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + // Lazy may contain any component type so we recursively resolve it. + return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn, currentDispatcherRef); + } catch (x) {} + } } } - if (supportsUserTimingV3) { - markAndClear("--component-render-start-".concat(componentName)); + return ''; + } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/DevToolsFiberComponentStack.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + // This is a DevTools fork of ReactFiberComponentStack. + // This fork enables DevTools to use the same "native" component stack format, + // while still maintaining support for multiple renderer versions + // (which use different values for ReactTypeOfWork). + + function describeFiber(workTagMap, workInProgress, currentDispatcherRef) { + var HostComponent = workTagMap.HostComponent, + LazyComponent = workTagMap.LazyComponent, + SuspenseComponent = workTagMap.SuspenseComponent, + SuspenseListComponent = workTagMap.SuspenseListComponent, + FunctionComponent = workTagMap.FunctionComponent, + IndeterminateComponent = workTagMap.IndeterminateComponent, + SimpleMemoComponent = workTagMap.SimpleMemoComponent, + ForwardRef = workTagMap.ForwardRef, + ClassComponent = workTagMap.ClassComponent; + var owner = false ? 0 : null; + switch (workInProgress.tag) { + case HostComponent: + return describeBuiltInComponentFrame(workInProgress.type, owner); + case LazyComponent: + return describeBuiltInComponentFrame('Lazy', owner); + case SuspenseComponent: + return describeBuiltInComponentFrame('Suspense', owner); + case SuspenseListComponent: + return describeBuiltInComponentFrame('SuspenseList', owner); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(workInProgress.type, owner, currentDispatcherRef); + case ForwardRef: + return describeFunctionComponentFrame(workInProgress.type.render, owner, currentDispatcherRef); + case ClassComponent: + return describeClassComponentFrame(workInProgress.type, owner, currentDispatcherRef); + default: + return ''; + } + } + function getStackByFiberInDevAndProd(workTagMap, workInProgress, currentDispatcherRef) { + try { + var info = ''; + var node = workInProgress; + do { + info += describeFiber(workTagMap, node, currentDispatcherRef); // $FlowFixMe[incompatible-type] we bail out when we get a null + + node = node.return; + } while (node); + return info; + } catch (x) { + return '\nError generating stack: ' + x.message + '\n' + x.stack; } } - } - function markComponentRenderStopped() { - if (isProfiling) { - if (currentReactComponentMeasure) { - if (currentTimelineData) { - currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/profilingHooks.js + function profilingHooks_slicedToArray(arr, i) { + return profilingHooks_arrayWithHoles(arr) || profilingHooks_iterableToArrayLimit(arr, i) || profilingHooks_unsupportedIterableToArray(arr, i) || profilingHooks_nonIterableRest(); + } + function profilingHooks_nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function profilingHooks_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return profilingHooks_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return profilingHooks_arrayLikeToArray(o, minLen); + } + function profilingHooks_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + function profilingHooks_iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; } - currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; - currentReactComponentMeasure = null; } + return _arr; } - if (supportsUserTimingV3) { - markAndClear('--component-render-stop'); + function profilingHooks_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; } - } - function markComponentLayoutEffectMountStarted(fiber) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { - if (isProfiling) { - currentReactComponentMeasure = { - componentName: componentName, - duration: 0, - timestamp: getRelativeTime(), - type: 'layout-effect-mount', - warning: null - }; - } + function profilingHooks_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + profilingHooks_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + profilingHooks_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - if (supportsUserTimingV3) { - markAndClear("--component-layout-effect-mount-start-".concat(componentName)); + return profilingHooks_typeof(obj); + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + // Add padding to the start/stop time of the profile. + // This makes the UI nicer to use. + + var TIME_OFFSET = 10; + var performanceTarget = null; // If performance exists and supports the subset of the User Timing API that we require. + + var supportsUserTiming = typeof performance !== 'undefined' && + // $FlowFixMe[method-unbinding] + typeof performance.mark === 'function' && + // $FlowFixMe[method-unbinding] + typeof performance.clearMarks === 'function'; + var supportsUserTimingV3 = false; + if (supportsUserTiming) { + var CHECK_V3_MARK = '__v3'; + var markOptions = {}; + Object.defineProperty(markOptions, 'startTime', { + get: function get() { + supportsUserTimingV3 = true; + return 0; + }, + set: function set() {} + }); + try { + performance.mark(CHECK_V3_MARK, markOptions); + } catch (error) {// Ignore + } finally { + performance.clearMarks(CHECK_V3_MARK); } } - } - function markComponentLayoutEffectMountStopped() { - if (isProfiling) { - if (currentReactComponentMeasure) { + if (supportsUserTimingV3) { + performanceTarget = performance; + } // Some environments (e.g. React Native / Hermes) don't support the performance API yet. + + var profilingHooks_getCurrentTime = + // $FlowFixMe[method-unbinding] + (typeof performance === "undefined" ? "undefined" : profilingHooks_typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; // Mocking the Performance Object (and User Timing APIs) for testing is fragile. + // This API allows tests to directly override the User Timing APIs. + + function setPerformanceMock_ONLY_FOR_TESTING(performanceMock) { + performanceTarget = performanceMock; + supportsUserTiming = performanceMock !== null; + supportsUserTimingV3 = performanceMock !== null; + } + function createProfilingHooks(_ref) { + var getDisplayNameForFiber = _ref.getDisplayNameForFiber, + getIsProfiling = _ref.getIsProfiling, + getLaneLabelMap = _ref.getLaneLabelMap, + workTagMap = _ref.workTagMap, + currentDispatcherRef = _ref.currentDispatcherRef, + reactVersion = _ref.reactVersion; + var currentBatchUID = 0; + var currentReactComponentMeasure = null; + var currentReactMeasuresStack = []; + var currentTimelineData = null; + var currentFiberStacks = new Map(); + var isProfiling = false; + var nextRenderShouldStartNewBatch = false; + function getRelativeTime() { + var currentTime = profilingHooks_getCurrentTime(); if (currentTimelineData) { - currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + if (currentTimelineData.startTime === 0) { + currentTimelineData.startTime = currentTime - TIME_OFFSET; + } + return currentTime - currentTimelineData.startTime; } - currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; - currentReactComponentMeasure = null; + return 0; } - } - if (supportsUserTimingV3) { - markAndClear('--component-layout-effect-mount-stop'); - } - } - function markComponentLayoutEffectUnmountStarted(fiber) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { - if (isProfiling) { - currentReactComponentMeasure = { - componentName: componentName, - duration: 0, - timestamp: getRelativeTime(), - type: 'layout-effect-unmount', - warning: null - }; + function getInternalModuleRanges() { + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges === 'function') { + // Ask the DevTools hook for module ranges that may have been reported by the current renderer(s). + // Don't do this eagerly like the laneToLabelMap, + // because some modules might not yet have registered their boundaries when the renderer is injected. + var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges(); // This check would not be required, + // except that it's possible for things to override __REACT_DEVTOOLS_GLOBAL_HOOK__. + + if (shared_isArray(ranges)) { + return ranges; + } } + return null; } - if (supportsUserTimingV3) { - markAndClear("--component-layout-effect-unmount-start-".concat(componentName)); + function getTimelineData() { + return currentTimelineData; } - } - } - function markComponentLayoutEffectUnmountStopped() { - if (isProfiling) { - if (currentReactComponentMeasure) { + function laneToLanesArray(lanes) { + var lanesArray = []; + var lane = 1; + for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { + if (lane & lanes) { + lanesArray.push(lane); + } + lane *= 2; + } + return lanesArray; + } + var laneToLabelMap = typeof getLaneLabelMap === 'function' ? getLaneLabelMap() : null; + function markMetadata() { + markAndClear("--react-version-".concat(reactVersion)); + markAndClear("--profiler-version-".concat(SCHEDULING_PROFILER_VERSION)); + var ranges = getInternalModuleRanges(); + if (ranges) { + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + if (shared_isArray(range) && range.length === 2) { + var _ranges$i = profilingHooks_slicedToArray(ranges[i], 2), + startStackFrame = _ranges$i[0], + stopStackFrame = _ranges$i[1]; + markAndClear("--react-internal-module-start-".concat(startStackFrame)); + markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); + } + } + } + if (laneToLabelMap != null) { + var labels = Array.from(laneToLabelMap.values()).join(','); + markAndClear("--react-lane-labels-".concat(labels)); + } + } + function markAndClear(markName) { + // This method won't be called unless these functions are defined, so we can skip the extra typeof check. + performanceTarget.mark(markName); + performanceTarget.clearMarks(markName); + } + function recordReactMeasureStarted(type, lanes) { + // Decide what depth thi work should be rendered at, based on what's on the top of the stack. + // It's okay to render over top of "idle" work but everything else should be on its own row. + var depth = 0; + if (currentReactMeasuresStack.length > 0) { + var top = currentReactMeasuresStack[currentReactMeasuresStack.length - 1]; + depth = top.type === 'render-idle' ? top.depth : top.depth + 1; + } + var lanesArray = laneToLanesArray(lanes); + var reactMeasure = { + type: type, + batchUID: currentBatchUID, + depth: depth, + lanes: lanesArray, + timestamp: getRelativeTime(), + duration: 0 + }; + currentReactMeasuresStack.push(reactMeasure); + if (currentTimelineData) { + var _currentTimelineData = currentTimelineData, + batchUIDToMeasuresMap = _currentTimelineData.batchUIDToMeasuresMap, + laneToReactMeasureMap = _currentTimelineData.laneToReactMeasureMap; + var reactMeasures = batchUIDToMeasuresMap.get(currentBatchUID); + if (reactMeasures != null) { + reactMeasures.push(reactMeasure); + } else { + batchUIDToMeasuresMap.set(currentBatchUID, [reactMeasure]); + } + lanesArray.forEach(function (lane) { + reactMeasures = laneToReactMeasureMap.get(lane); + if (reactMeasures) { + reactMeasures.push(reactMeasure); + } + }); + } + } + function recordReactMeasureCompleted(type) { + var currentTime = getRelativeTime(); + if (currentReactMeasuresStack.length === 0) { + console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.', type, currentTime); // Ignore work "completion" user timing mark that doesn't complete anything + + return; + } + var top = currentReactMeasuresStack.pop(); + if (top.type !== type) { + console.error('Unexpected type "%s" completed at %sms before "%s" completed.', type, currentTime, top.type); + } // $FlowFixMe[cannot-write] This property should not be writable outside of this function. + + top.duration = currentTime - top.timestamp; if (currentTimelineData) { - currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + currentTimelineData.duration = getRelativeTime() + TIME_OFFSET; } - currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; - currentReactComponentMeasure = null; } - } - if (supportsUserTimingV3) { - markAndClear('--component-layout-effect-unmount-stop'); - } - } - function markComponentPassiveEffectMountStarted(fiber) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { + function markCommitStarted(lanes) { if (isProfiling) { - currentReactComponentMeasure = { - componentName: componentName, - duration: 0, - timestamp: getRelativeTime(), - type: 'passive-effect-mount', - warning: null - }; + recordReactMeasureStarted('commit', lanes); // TODO (timeline) Re-think this approach to "batching"; I don't think it works for Suspense or pre-rendering. + // This issue applies to the User Timing data also. + + nextRenderShouldStartNewBatch = true; + } + if (supportsUserTimingV3) { + markAndClear("--commit-start-".concat(lanes)); // Some metadata only needs to be logged once per session, + // but if profiling information is being recorded via the Performance tab, + // DevTools has no way of knowing when the recording starts. + // Because of that, we log thie type of data periodically (once per commit). + + markMetadata(); } } - if (supportsUserTimingV3) { - markAndClear("--component-passive-effect-mount-start-".concat(componentName)); + function markCommitStopped() { + if (isProfiling) { + recordReactMeasureCompleted('commit'); + recordReactMeasureCompleted('render-idle'); + } + if (supportsUserTimingV3) { + markAndClear('--commit-stop'); + } } - } - } - function markComponentPassiveEffectMountStopped() { - if (isProfiling) { - if (currentReactComponentMeasure) { - if (currentTimelineData) { - currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + function markComponentRenderStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'render', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-render-start-".concat(componentName)); + } } - currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; - currentReactComponentMeasure = null; } - } - if (supportsUserTimingV3) { - markAndClear('--component-passive-effect-mount-stop'); - } - } - function markComponentPassiveEffectUnmountStarted(fiber) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { + function markComponentRenderStopped() { if (isProfiling) { - currentReactComponentMeasure = { - componentName: componentName, - duration: 0, - timestamp: getRelativeTime(), - type: 'passive-effect-unmount', - warning: null - }; + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentReactComponentMeasure.duration = + // $FlowFixMe[incompatible-use] found when upgrading Flow + getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-render-stop'); } } - if (supportsUserTimingV3) { - markAndClear("--component-passive-effect-unmount-start-".concat(componentName)); + function markComponentLayoutEffectMountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'layout-effect-mount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-layout-effect-mount-start-".concat(componentName)); + } + } } - } - } - function markComponentPassiveEffectUnmountStopped() { - if (isProfiling) { - if (currentReactComponentMeasure) { - if (currentTimelineData) { - currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + function markComponentLayoutEffectMountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentReactComponentMeasure.duration = + // $FlowFixMe[incompatible-use] found when upgrading Flow + getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-layout-effect-mount-stop'); } - currentReactComponentMeasure.duration = getRelativeTime() - currentReactComponentMeasure.timestamp; - currentReactComponentMeasure = null; } - } - if (supportsUserTimingV3) { - markAndClear('--component-passive-effect-unmount-stop'); - } - } - function markComponentErrored(fiber, thrownValue, lanes) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - var phase = fiber.alternate === null ? 'mount' : 'update'; - var message = ''; - if (thrownValue !== null && _typeof(thrownValue) === 'object' && typeof thrownValue.message === 'string') { - message = thrownValue.message; - } else if (typeof thrownValue === 'string') { - message = thrownValue; + function markComponentLayoutEffectUnmountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'layout-effect-unmount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-layout-effect-unmount-start-".concat(componentName)); + } + } } - if (isProfiling) { - if (currentTimelineData) { - currentTimelineData.thrownErrors.push({ - componentName: componentName, - message: message, - phase: phase, - timestamp: getRelativeTime(), - type: 'thrown-error' - }); + function markComponentLayoutEffectUnmountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentReactComponentMeasure.duration = + // $FlowFixMe[incompatible-use] found when upgrading Flow + getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-layout-effect-unmount-stop'); + } + } + function markComponentPassiveEffectMountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'passive-effect-mount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-passive-effect-mount-start-".concat(componentName)); + } } } - if (supportsUserTimingV3) { - markAndClear("--error-".concat(componentName, "-").concat(phase, "-").concat(message)); + function markComponentPassiveEffectMountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentReactComponentMeasure.duration = + // $FlowFixMe[incompatible-use] found when upgrading Flow + getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-passive-effect-mount-stop'); + } } - } - } - var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + function markComponentPassiveEffectUnmountStarted(fiber) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (isProfiling) { + currentReactComponentMeasure = { + componentName: componentName, + duration: 0, + timestamp: getRelativeTime(), + type: 'passive-effect-unmount', + warning: null + }; + } + } + if (supportsUserTimingV3) { + markAndClear("--component-passive-effect-unmount-start-".concat(componentName)); + } + } + } + function markComponentPassiveEffectUnmountStopped() { + if (isProfiling) { + if (currentReactComponentMeasure) { + if (currentTimelineData) { + currentTimelineData.componentMeasures.push(currentReactComponentMeasure); + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentReactComponentMeasure.duration = + // $FlowFixMe[incompatible-use] found when upgrading Flow + getRelativeTime() - currentReactComponentMeasure.timestamp; + currentReactComponentMeasure = null; + } + } + if (supportsUserTimingV3) { + markAndClear('--component-passive-effect-unmount-stop'); + } + } + function markComponentErrored(fiber, thrownValue, lanes) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + var phase = fiber.alternate === null ? 'mount' : 'update'; + var message = ''; + if (thrownValue !== null && profilingHooks_typeof(thrownValue) === 'object' && typeof thrownValue.message === 'string') { + message = thrownValue.message; + } else if (typeof thrownValue === 'string') { + message = thrownValue; + } + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (currentTimelineData) { + currentTimelineData.thrownErrors.push({ + componentName: componentName, + message: message, + phase: phase, + timestamp: getRelativeTime(), + type: 'thrown-error' + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--error-".concat(componentName, "-").concat(phase, "-").concat(message)); + } + } + } + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // $FlowFixMe[incompatible-type]: Flow cannot handle polymorphic WeakMaps - var wakeableIDs = new PossiblyWeakMap(); - var wakeableID = 0; - function getWakeableID(wakeable) { - if (!wakeableIDs.has(wakeable)) { - wakeableIDs.set(wakeable, wakeableID++); - } - return wakeableIDs.get(wakeable); - } - function markComponentSuspended(fiber, wakeable, lanes) { - if (isProfiling || supportsUserTimingV3) { - var eventType = wakeableIDs.has(wakeable) ? 'resuspend' : 'suspend'; - var id = getWakeableID(wakeable); - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - var phase = fiber.alternate === null ? 'mount' : 'update'; - - var displayName = wakeable.displayName || ''; - var suspenseEvent = null; - if (isProfiling) { - suspenseEvent = { - componentName: componentName, - depth: 0, - duration: 0, - id: "".concat(id), - phase: phase, - promiseName: displayName, - resolution: 'unresolved', - timestamp: getRelativeTime(), - type: 'suspense', - warning: null - }; - if (currentTimelineData) { - currentTimelineData.suspenseEvents.push(suspenseEvent); + var wakeableIDs = new PossiblyWeakMap(); + var wakeableID = 0; + function getWakeableID(wakeable) { + if (!wakeableIDs.has(wakeable)) { + wakeableIDs.set(wakeable, wakeableID++); + } + return wakeableIDs.get(wakeable); + } + function markComponentSuspended(fiber, wakeable, lanes) { + if (isProfiling || supportsUserTimingV3) { + var eventType = wakeableIDs.has(wakeable) ? 'resuspend' : 'suspend'; + var id = getWakeableID(wakeable); + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + var phase = fiber.alternate === null ? 'mount' : 'update'; // Following the non-standard fn.displayName convention, + // frameworks like Relay may also annotate Promises with a displayName, + // describing what operation/data the thrown Promise is related to. + // When this is available we should pass it along to the Timeline. + + var displayName = wakeable.displayName || ''; + var suspenseEvent = null; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + suspenseEvent = { + componentName: componentName, + depth: 0, + duration: 0, + id: "".concat(id), + phase: phase, + promiseName: displayName, + resolution: 'unresolved', + timestamp: getRelativeTime(), + type: 'suspense', + warning: null + }; + if (currentTimelineData) { + currentTimelineData.suspenseEvents.push(suspenseEvent); + } + } + if (supportsUserTimingV3) { + markAndClear("--suspense-".concat(eventType, "-").concat(id, "-").concat(componentName, "-").concat(phase, "-").concat(lanes, "-").concat(displayName)); + } + wakeable.then(function () { + if (suspenseEvent) { + suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; + suspenseEvent.resolution = 'resolved'; + } + if (supportsUserTimingV3) { + markAndClear("--suspense-resolved-".concat(id, "-").concat(componentName)); + } + }, function () { + if (suspenseEvent) { + suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; + suspenseEvent.resolution = 'rejected'; + } + if (supportsUserTimingV3) { + markAndClear("--suspense-rejected-".concat(id, "-").concat(componentName)); + } + }); } } - if (supportsUserTimingV3) { - markAndClear("--suspense-".concat(eventType, "-").concat(id, "-").concat(componentName, "-").concat(phase, "-").concat(lanes, "-").concat(displayName)); + function markLayoutEffectsStarted(lanes) { + if (isProfiling) { + recordReactMeasureStarted('layout-effects', lanes); + } + if (supportsUserTimingV3) { + markAndClear("--layout-effects-start-".concat(lanes)); + } } - wakeable.then(function () { - if (suspenseEvent) { - suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; - suspenseEvent.resolution = 'resolved'; + function markLayoutEffectsStopped() { + if (isProfiling) { + recordReactMeasureCompleted('layout-effects'); } if (supportsUserTimingV3) { - markAndClear("--suspense-resolved-".concat(id, "-").concat(componentName)); + markAndClear('--layout-effects-stop'); } - }, function () { - if (suspenseEvent) { - suspenseEvent.duration = getRelativeTime() - suspenseEvent.timestamp; - suspenseEvent.resolution = 'rejected'; + } + function markPassiveEffectsStarted(lanes) { + if (isProfiling) { + recordReactMeasureStarted('passive-effects', lanes); } if (supportsUserTimingV3) { - markAndClear("--suspense-rejected-".concat(id, "-").concat(componentName)); + markAndClear("--passive-effects-start-".concat(lanes)); + } + } + function markPassiveEffectsStopped() { + if (isProfiling) { + recordReactMeasureCompleted('passive-effects'); + } + if (supportsUserTimingV3) { + markAndClear('--passive-effects-stop'); + } + } + function markRenderStarted(lanes) { + if (isProfiling) { + if (nextRenderShouldStartNewBatch) { + nextRenderShouldStartNewBatch = false; + currentBatchUID++; + } // If this is a new batch of work, wrap an "idle" measure around it. + // Log it before the "render" measure to preserve the stack ordering. + + if (currentReactMeasuresStack.length === 0 || currentReactMeasuresStack[currentReactMeasuresStack.length - 1].type !== 'render-idle') { + recordReactMeasureStarted('render-idle', lanes); + } + recordReactMeasureStarted('render', lanes); + } + if (supportsUserTimingV3) { + markAndClear("--render-start-".concat(lanes)); + } + } + function markRenderYielded() { + if (isProfiling) { + recordReactMeasureCompleted('render'); + } + if (supportsUserTimingV3) { + markAndClear('--render-yield'); + } + } + function markRenderStopped() { + if (isProfiling) { + recordReactMeasureCompleted('render'); + } + if (supportsUserTimingV3) { + markAndClear('--render-stop'); + } + } + function markRenderScheduled(lane) { + if (isProfiling) { + if (currentTimelineData) { + currentTimelineData.schedulingEvents.push({ + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-render', + warning: null + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-render-".concat(lane)); + } + } + function markForceUpdateScheduled(fiber, lane) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (currentTimelineData) { + currentTimelineData.schedulingEvents.push({ + componentName: componentName, + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-force-update', + warning: null + }); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-forced-update-".concat(lane, "-").concat(componentName)); + } } - }); - } - } - function markLayoutEffectsStarted(lanes) { - if (isProfiling) { - recordReactMeasureStarted('layout-effects', lanes); - } - if (supportsUserTimingV3) { - markAndClear("--layout-effects-start-".concat(lanes)); - } - } - function markLayoutEffectsStopped() { - if (isProfiling) { - recordReactMeasureCompleted('layout-effects'); - } - if (supportsUserTimingV3) { - markAndClear('--layout-effects-stop'); - } - } - function markPassiveEffectsStarted(lanes) { - if (isProfiling) { - recordReactMeasureStarted('passive-effects', lanes); - } - if (supportsUserTimingV3) { - markAndClear("--passive-effects-start-".concat(lanes)); - } - } - function markPassiveEffectsStopped() { - if (isProfiling) { - recordReactMeasureCompleted('passive-effects'); - } - if (supportsUserTimingV3) { - markAndClear('--passive-effects-stop'); - } - } - function markRenderStarted(lanes) { - if (isProfiling) { - if (nextRenderShouldStartNewBatch) { - nextRenderShouldStartNewBatch = false; - currentBatchUID++; } + function getParentFibers(fiber) { + var parents = []; + var parent = fiber; + while (parent !== null) { + parents.push(parent); + parent = parent.return; + } + return parents; + } + function markStateUpdateScheduled(fiber, lane) { + if (isProfiling || supportsUserTimingV3) { + var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; + if (isProfiling) { + // TODO (timeline) Record and cache component stack + if (currentTimelineData) { + var event = { + componentName: componentName, + // Store the parent fibers so we can post process + // them after we finish profiling + lanes: laneToLanesArray(lane), + timestamp: getRelativeTime(), + type: 'schedule-state-update', + warning: null + }; + currentFiberStacks.set(event, getParentFibers(fiber)); // $FlowFixMe[incompatible-use] found when upgrading Flow - if (currentReactMeasuresStack.length === 0 || currentReactMeasuresStack[currentReactMeasuresStack.length - 1].type !== 'render-idle') { - recordReactMeasureStarted('render-idle', lanes); + currentTimelineData.schedulingEvents.push(event); + } + } + if (supportsUserTimingV3) { + markAndClear("--schedule-state-update-".concat(lane, "-").concat(componentName)); + } + } } - recordReactMeasureStarted('render', lanes); - } - if (supportsUserTimingV3) { - markAndClear("--render-start-".concat(lanes)); - } - } - function markRenderYielded() { - if (isProfiling) { - recordReactMeasureCompleted('render'); - } - if (supportsUserTimingV3) { - markAndClear('--render-yield'); + function toggleProfilingStatus(value) { + if (isProfiling !== value) { + isProfiling = value; + if (isProfiling) { + var internalModuleSourceToRanges = new Map(); + if (supportsUserTimingV3) { + var ranges = getInternalModuleRanges(); + if (ranges) { + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + if (shared_isArray(range) && range.length === 2) { + var _ranges$i2 = profilingHooks_slicedToArray(ranges[i], 2), + startStackFrame = _ranges$i2[0], + stopStackFrame = _ranges$i2[1]; + markAndClear("--react-internal-module-start-".concat(startStackFrame)); + markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); + } + } + } + } + var laneToReactMeasureMap = new Map(); + var lane = 1; + for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { + laneToReactMeasureMap.set(lane, []); + lane *= 2; + } + currentBatchUID = 0; + currentReactComponentMeasure = null; + currentReactMeasuresStack = []; + currentFiberStacks = new Map(); + currentTimelineData = { + // Session wide metadata; only collected once. + internalModuleSourceToRanges: internalModuleSourceToRanges, + laneToLabelMap: laneToLabelMap || new Map(), + reactVersion: reactVersion, + // Data logged by React during profiling session. + componentMeasures: [], + schedulingEvents: [], + suspenseEvents: [], + thrownErrors: [], + // Data inferred based on what React logs. + batchUIDToMeasuresMap: new Map(), + duration: 0, + laneToReactMeasureMap: laneToReactMeasureMap, + startTime: 0, + // Data only available in Chrome profiles. + flamechart: [], + nativeEvents: [], + networkMeasures: [], + otherUserTimingMarks: [], + snapshots: [], + snapshotHeight: 0 + }; + nextRenderShouldStartNewBatch = true; + } else { + // Postprocess Profile data + if (currentTimelineData !== null) { + currentTimelineData.schedulingEvents.forEach(function (event) { + if (event.type === 'schedule-state-update') { + // TODO(luna): We can optimize this by creating a map of + // fiber to component stack instead of generating the stack + // for every fiber every time + var fiberStack = currentFiberStacks.get(event); + if (fiberStack && currentDispatcherRef != null) { + event.componentStack = fiberStack.reduce(function (trace, fiber) { + return trace + describeFiber(workTagMap, fiber, currentDispatcherRef); + }, ''); + } + } + }); + } // Clear the current fiber stacks so we don't hold onto the fibers + // in memory after profiling finishes + + currentFiberStacks.clear(); + } + } + } + return { + getTimelineData: getTimelineData, + profilingHooks: { + markCommitStarted: markCommitStarted, + markCommitStopped: markCommitStopped, + markComponentRenderStarted: markComponentRenderStarted, + markComponentRenderStopped: markComponentRenderStopped, + markComponentPassiveEffectMountStarted: markComponentPassiveEffectMountStarted, + markComponentPassiveEffectMountStopped: markComponentPassiveEffectMountStopped, + markComponentPassiveEffectUnmountStarted: markComponentPassiveEffectUnmountStarted, + markComponentPassiveEffectUnmountStopped: markComponentPassiveEffectUnmountStopped, + markComponentLayoutEffectMountStarted: markComponentLayoutEffectMountStarted, + markComponentLayoutEffectMountStopped: markComponentLayoutEffectMountStopped, + markComponentLayoutEffectUnmountStarted: markComponentLayoutEffectUnmountStarted, + markComponentLayoutEffectUnmountStopped: markComponentLayoutEffectUnmountStopped, + markComponentErrored: markComponentErrored, + markComponentSuspended: markComponentSuspended, + markLayoutEffectsStarted: markLayoutEffectsStarted, + markLayoutEffectsStopped: markLayoutEffectsStopped, + markPassiveEffectsStarted: markPassiveEffectsStarted, + markPassiveEffectsStopped: markPassiveEffectsStopped, + markRenderStarted: markRenderStarted, + markRenderYielded: markRenderYielded, + markRenderStopped: markRenderStopped, + markRenderScheduled: markRenderScheduled, + markForceUpdateScheduled: markForceUpdateScheduled, + markStateUpdateScheduled: markStateUpdateScheduled + }, + toggleProfilingStatus: toggleProfilingStatus + }; } - } - function markRenderStopped() { - if (isProfiling) { - recordReactMeasureCompleted('render'); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/renderer.js + function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + return target; } - if (supportsUserTimingV3) { - markAndClear('--render-stop'); + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; } - } - function markRenderScheduled(lane) { - if (isProfiling) { - if (currentTimelineData) { - currentTimelineData.schedulingEvents.push({ - lanes: laneToLanesArray(lane), - timestamp: getRelativeTime(), - type: 'schedule-render', - warning: null + function renderer_ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); + keys.push.apply(keys, symbols); } + return keys; } - if (supportsUserTimingV3) { - markAndClear("--schedule-render-".concat(lane)); - } - } - function markForceUpdateScheduled(fiber, lane) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { - if (currentTimelineData) { - currentTimelineData.schedulingEvents.push({ - componentName: componentName, - lanes: laneToLanesArray(lane), - timestamp: getRelativeTime(), - type: 'schedule-force-update', - warning: null + function renderer_objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + renderer_ownKeys(Object(source), true).forEach(function (key) { + renderer_defineProperty(target, key, source[key]); }); - } - } - if (supportsUserTimingV3) { - markAndClear("--schedule-forced-update-".concat(lane, "-").concat(componentName)); - } - } - } - function markStateUpdateScheduled(fiber, lane) { - if (isProfiling || supportsUserTimingV3) { - var componentName = getDisplayNameForFiber(fiber) || 'Unknown'; - if (isProfiling) { - if (currentTimelineData) { - currentTimelineData.schedulingEvents.push({ - componentName: componentName, - lanes: laneToLanesArray(lane), - timestamp: getRelativeTime(), - type: 'schedule-state-update', - warning: null + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + renderer_ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } - if (supportsUserTimingV3) { - markAndClear("--schedule-state-update-".concat(lane, "-").concat(componentName)); + return target; + } + function renderer_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; } + return obj; } - } - function toggleProfilingStatus(value) { - if (isProfiling !== value) { - isProfiling = value; - if (isProfiling) { - var internalModuleSourceToRanges = new Map(); - if (supportsUserTimingV3) { - var ranges = getInternalModuleRanges(); - if (ranges) { - for (var i = 0; i < ranges.length; i++) { - var range = ranges[i]; - if (Object(isArray["a"])(range) && range.length === 2) { - var _ranges$i2 = _slicedToArray(ranges[i], 2), - startStackFrame = _ranges$i2[0], - stopStackFrame = _ranges$i2[1]; - markAndClear("--react-internal-module-start-".concat(startStackFrame)); - markAndClear("--react-internal-module-stop-".concat(stopStackFrame)); - } - } - } + function renderer_slicedToArray(arr, i) { + return renderer_arrayWithHoles(arr) || renderer_iterableToArrayLimit(arr, i) || renderer_unsupportedIterableToArray(arr, i) || renderer_nonIterableRest(); + } + function renderer_nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function renderer_iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; } - var laneToReactMeasureMap = new Map(); - var lane = 1; - for (var index = 0; index < REACT_TOTAL_NUM_LANES; index++) { - laneToReactMeasureMap.set(lane, []); - lane *= 2; + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; } - currentBatchUID = 0; - currentReactComponentMeasure = null; - currentReactMeasuresStack = []; - currentTimelineData = { - internalModuleSourceToRanges: internalModuleSourceToRanges, - laneToLabelMap: laneToLabelMap || new Map(), - reactVersion: reactVersion, - componentMeasures: [], - schedulingEvents: [], - suspenseEvents: [], - thrownErrors: [], - batchUIDToMeasuresMap: new Map(), - duration: 0, - laneToReactMeasureMap: laneToReactMeasureMap, - startTime: 0, - flamechart: [], - nativeEvents: [], - networkMeasures: [], - otherUserTimingMarks: [], - snapshots: [], - snapshotHeight: 0 - }; - nextRenderShouldStartNewBatch = true; } + return _arr; } - } - return { - getTimelineData: getTimelineData, - profilingHooks: { - markCommitStarted: markCommitStarted, - markCommitStopped: markCommitStopped, - markComponentRenderStarted: markComponentRenderStarted, - markComponentRenderStopped: markComponentRenderStopped, - markComponentPassiveEffectMountStarted: markComponentPassiveEffectMountStarted, - markComponentPassiveEffectMountStopped: markComponentPassiveEffectMountStopped, - markComponentPassiveEffectUnmountStarted: markComponentPassiveEffectUnmountStarted, - markComponentPassiveEffectUnmountStopped: markComponentPassiveEffectUnmountStopped, - markComponentLayoutEffectMountStarted: markComponentLayoutEffectMountStarted, - markComponentLayoutEffectMountStopped: markComponentLayoutEffectMountStopped, - markComponentLayoutEffectUnmountStarted: markComponentLayoutEffectUnmountStarted, - markComponentLayoutEffectUnmountStopped: markComponentLayoutEffectUnmountStopped, - markComponentErrored: markComponentErrored, - markComponentSuspended: markComponentSuspended, - markLayoutEffectsStarted: markLayoutEffectsStarted, - markLayoutEffectsStopped: markLayoutEffectsStopped, - markPassiveEffectsStarted: markPassiveEffectsStarted, - markPassiveEffectsStopped: markPassiveEffectsStopped, - markRenderStarted: markRenderStarted, - markRenderYielded: markRenderYielded, - markRenderStopped: markRenderStopped, - markRenderScheduled: markRenderScheduled, - markForceUpdateScheduled: markForceUpdateScheduled, - markStateUpdateScheduled: markStateUpdateScheduled - }, - toggleProfilingStatus: toggleProfilingStatus - }; - } - function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; + function renderer_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; } - } - return target; - } - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; - } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + function renderer_toConsumableArray(arr) { + return renderer_arrayWithoutHoles(arr) || renderer_iterableToArray(arr) || renderer_unsupportedIterableToArray(arr) || renderer_nonIterableSpread(); } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - function renderer_slicedToArray(arr, i) { - return renderer_arrayWithHoles(arr) || renderer_iterableToArrayLimit(arr, i) || renderer_unsupportedIterableToArray(arr, i) || renderer_nonIterableRest(); - } - function renderer_nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function renderer_iterableToArrayLimit(arr, i) { - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - if (i && _arr.length === i) break; + function renderer_nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; + function renderer_iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - } - return _arr; - } - function renderer_arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || renderer_unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return renderer_arrayLikeToArray(arr); - } - function _createForOfIteratorHelper(o, allowArrayLike) { - var it; - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { - if (Array.isArray(o) || (it = renderer_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; + function renderer_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return renderer_arrayLikeToArray(arr); + } + function _createForOfIteratorHelper(o, allowArrayLike) { + var it; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = renderer_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function F() {}; return { - done: false, - value: o[i++] + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e2) { + throw _e2; + }, + f: F }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = o[Symbol.iterator](); }, - e: function e(_e2) { - throw _e2; + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; }, - f: F + e: function e(_e3) { + didErr = true; + err = _e3; + }, + f: function f() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } }; } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = o[Symbol.iterator](); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e3) { - didErr = true; - err = _e3; - }, - f: function f() { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; + function renderer_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return renderer_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return renderer_arrayLikeToArray(o, minLen); + } + function renderer_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; } + return arr2; } - }; - } - function renderer_unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return renderer_arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return renderer_arrayLikeToArray(o, minLen); - } - function renderer_arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } - function renderer_typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - renderer_typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - renderer_typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return renderer_typeof(obj); - } - - function getFiberFlags(fiber) { - return fiber.flags !== undefined ? fiber.flags : fiber.effectTag; - } - - var renderer_getCurrentTime = (typeof performance === "undefined" ? "undefined" : renderer_typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; - function getInternalReactConstants(version) { - var ReactTypeOfSideEffect = { - DidCapture: 128, - NoFlags: 0, - PerformedWork: 1, - Placement: 2, - Incomplete: 8192, - Hydrating: 4096 - }; + function renderer_typeof(obj) { + "@babel/helpers - typeof"; - var ReactPriorityLevels = { - ImmediatePriority: 99, - UserBlockingPriority: 98, - NormalPriority: 97, - LowPriority: 96, - IdlePriority: 95, - NoPriority: 90 - }; - if (Object(semver["gt"])(version, '17.0.2')) { - ReactPriorityLevels = { - ImmediatePriority: 1, - UserBlockingPriority: 2, - NormalPriority: 3, - LowPriority: 4, - IdlePriority: 5, - NoPriority: 0 - }; - } - var StrictModeBits = 0; - if (Object(semver["gte"])(version, '18.0.0-alpha')) { - StrictModeBits = 24; - } else if (Object(semver["gte"])(version, '16.9.0')) { - StrictModeBits = 1; - } else if (Object(semver["gte"])(version, '16.3.0')) { - StrictModeBits = 2; - } - var ReactTypeOfWork = null; - - if (Object(semver["gt"])(version, '17.0.1')) { - ReactTypeOfWork = { - CacheComponent: 24, - ClassComponent: 1, - ContextConsumer: 9, - ContextProvider: 10, - CoroutineComponent: -1, - CoroutineHandlerPhase: -1, - DehydratedSuspenseComponent: 18, - ForwardRef: 11, - Fragment: 7, - FunctionComponent: 0, - HostComponent: 5, - HostPortal: 4, - HostRoot: 3, - HostText: 6, - IncompleteClassComponent: 17, - IndeterminateComponent: 2, - LazyComponent: 16, - LegacyHiddenComponent: 23, - MemoComponent: 14, - Mode: 8, - OffscreenComponent: 22, - Profiler: 12, - ScopeComponent: 21, - SimpleMemoComponent: 15, - SuspenseComponent: 13, - SuspenseListComponent: 19, - TracingMarkerComponent: 25, - YieldComponent: -1 - }; - } else if (Object(semver["gte"])(version, '17.0.0-alpha')) { - ReactTypeOfWork = { - CacheComponent: -1, - ClassComponent: 1, - ContextConsumer: 9, - ContextProvider: 10, - CoroutineComponent: -1, - CoroutineHandlerPhase: -1, - DehydratedSuspenseComponent: 18, - ForwardRef: 11, - Fragment: 7, - FunctionComponent: 0, - HostComponent: 5, - HostPortal: 4, - HostRoot: 3, - HostText: 6, - IncompleteClassComponent: 17, - IndeterminateComponent: 2, - LazyComponent: 16, - LegacyHiddenComponent: 24, - MemoComponent: 14, - Mode: 8, - OffscreenComponent: 23, - Profiler: 12, - ScopeComponent: 21, - SimpleMemoComponent: 15, - SuspenseComponent: 13, - SuspenseListComponent: 19, - TracingMarkerComponent: -1, - YieldComponent: -1 - }; - } else if (Object(semver["gte"])(version, '16.6.0-beta.0')) { - ReactTypeOfWork = { - CacheComponent: -1, - ClassComponent: 1, - ContextConsumer: 9, - ContextProvider: 10, - CoroutineComponent: -1, - CoroutineHandlerPhase: -1, - DehydratedSuspenseComponent: 18, - ForwardRef: 11, - Fragment: 7, - FunctionComponent: 0, - HostComponent: 5, - HostPortal: 4, - HostRoot: 3, - HostText: 6, - IncompleteClassComponent: 17, - IndeterminateComponent: 2, - LazyComponent: 16, - LegacyHiddenComponent: -1, - MemoComponent: 14, - Mode: 8, - OffscreenComponent: -1, - Profiler: 12, - ScopeComponent: -1, - SimpleMemoComponent: 15, - SuspenseComponent: 13, - SuspenseListComponent: 19, - TracingMarkerComponent: -1, - YieldComponent: -1 - }; - } else if (Object(semver["gte"])(version, '16.4.3-alpha')) { - ReactTypeOfWork = { - CacheComponent: -1, - ClassComponent: 2, - ContextConsumer: 11, - ContextProvider: 12, - CoroutineComponent: -1, - CoroutineHandlerPhase: -1, - DehydratedSuspenseComponent: -1, - ForwardRef: 13, - Fragment: 9, - FunctionComponent: 0, - HostComponent: 7, - HostPortal: 6, - HostRoot: 5, - HostText: 8, - IncompleteClassComponent: -1, - IndeterminateComponent: 4, - LazyComponent: -1, - LegacyHiddenComponent: -1, - MemoComponent: -1, - Mode: 10, - OffscreenComponent: -1, - Profiler: 15, - ScopeComponent: -1, - SimpleMemoComponent: -1, - SuspenseComponent: 16, - SuspenseListComponent: -1, - TracingMarkerComponent: -1, - YieldComponent: -1 - }; - } else { - ReactTypeOfWork = { - CacheComponent: -1, - ClassComponent: 2, - ContextConsumer: 12, - ContextProvider: 13, - CoroutineComponent: 7, - CoroutineHandlerPhase: 8, - DehydratedSuspenseComponent: -1, - ForwardRef: 14, - Fragment: 10, - FunctionComponent: 1, - HostComponent: 5, - HostPortal: 4, - HostRoot: 3, - HostText: 6, - IncompleteClassComponent: -1, - IndeterminateComponent: 0, - LazyComponent: -1, - LegacyHiddenComponent: -1, - MemoComponent: -1, - Mode: 11, - OffscreenComponent: -1, - Profiler: 15, - ScopeComponent: -1, - SimpleMemoComponent: -1, - SuspenseComponent: 16, - SuspenseListComponent: -1, - TracingMarkerComponent: -1, - YieldComponent: 9 + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + renderer_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + renderer_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return renderer_typeof(obj); + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + function getFiberFlags(fiber) { + // The name of this field changed from "effectTag" to "flags" + return fiber.flags !== undefined ? fiber.flags : fiber.effectTag; + } // Some environments (e.g. React Native / Hermes) don't support the performance API yet. + + var renderer_getCurrentTime = + // $FlowFixMe[method-unbinding] + (typeof performance === "undefined" ? "undefined" : renderer_typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { + return performance.now(); + } : function () { + return Date.now(); }; - } - - function getTypeSymbol(type) { - var symbolOrNumber = renderer_typeof(type) === 'object' && type !== null ? type.$$typeof : type; - - return renderer_typeof(symbolOrNumber) === 'symbol' ? symbolOrNumber.toString() : symbolOrNumber; - } - var _ReactTypeOfWork = ReactTypeOfWork, - CacheComponent = _ReactTypeOfWork.CacheComponent, - ClassComponent = _ReactTypeOfWork.ClassComponent, - IncompleteClassComponent = _ReactTypeOfWork.IncompleteClassComponent, - FunctionComponent = _ReactTypeOfWork.FunctionComponent, - IndeterminateComponent = _ReactTypeOfWork.IndeterminateComponent, - ForwardRef = _ReactTypeOfWork.ForwardRef, - HostRoot = _ReactTypeOfWork.HostRoot, - HostComponent = _ReactTypeOfWork.HostComponent, - HostPortal = _ReactTypeOfWork.HostPortal, - HostText = _ReactTypeOfWork.HostText, - Fragment = _ReactTypeOfWork.Fragment, - LazyComponent = _ReactTypeOfWork.LazyComponent, - LegacyHiddenComponent = _ReactTypeOfWork.LegacyHiddenComponent, - MemoComponent = _ReactTypeOfWork.MemoComponent, - OffscreenComponent = _ReactTypeOfWork.OffscreenComponent, - Profiler = _ReactTypeOfWork.Profiler, - ScopeComponent = _ReactTypeOfWork.ScopeComponent, - SimpleMemoComponent = _ReactTypeOfWork.SimpleMemoComponent, - SuspenseComponent = _ReactTypeOfWork.SuspenseComponent, - SuspenseListComponent = _ReactTypeOfWork.SuspenseListComponent, - TracingMarkerComponent = _ReactTypeOfWork.TracingMarkerComponent; - function resolveFiberType(type) { - var typeSymbol = getTypeSymbol(type); - switch (typeSymbol) { - case ReactSymbols["j"]: - case ReactSymbols["k"]: - return resolveFiberType(type.type); - case ReactSymbols["f"]: - case ReactSymbols["g"]: - return type.render; - default: - return type; - } - } - - function getDisplayNameForFiber(fiber) { - var elementType = fiber.elementType, - type = fiber.type, - tag = fiber.tag; - var resolvedType = type; - if (renderer_typeof(type) === 'object' && type !== null) { - resolvedType = resolveFiberType(type); - } - var resolvedContext = null; - switch (tag) { - case CacheComponent: - return 'Cache'; - case ClassComponent: - case IncompleteClassComponent: - return Object(utils["f"])(resolvedType); - case FunctionComponent: - case IndeterminateComponent: - return Object(utils["f"])(resolvedType); - case ForwardRef: - return type && type.displayName || Object(utils["f"])(resolvedType, 'Anonymous'); - case HostRoot: - var fiberRoot = fiber.stateNode; - if (fiberRoot != null && fiberRoot._debugRootType !== null) { - return fiberRoot._debugRootType; - } - return null; - case HostComponent: - return type; - case HostPortal: - case HostText: - case Fragment: - return null; - case LazyComponent: - return 'Lazy'; - case MemoComponent: - case SimpleMemoComponent: - return elementType && elementType.displayName || type && type.displayName || Object(utils["f"])(resolvedType, 'Anonymous'); - case SuspenseComponent: - return 'Suspense'; - case LegacyHiddenComponent: - return 'LegacyHidden'; - case OffscreenComponent: - return 'Offscreen'; - case ScopeComponent: - return 'Scope'; - case SuspenseListComponent: - return 'SuspenseList'; - case Profiler: - return 'Profiler'; - case TracingMarkerComponent: - return 'TracingMarker'; - default: + function getInternalReactConstants(version) { + // ********************************************************** + // The section below is copied from files in React repo. + // Keep it in sync, and add version guards if it changes. + // + // Technically these priority levels are invalid for versions before 16.9, + // but 16.9 is the first version to report priority level to DevTools, + // so we can avoid checking for earlier versions and support pre-16.9 canary releases in the process. + var ReactPriorityLevels = { + ImmediatePriority: 99, + UserBlockingPriority: 98, + NormalPriority: 97, + LowPriority: 96, + IdlePriority: 95, + NoPriority: 90 + }; + if (gt(version, '17.0.2')) { + ReactPriorityLevels = { + ImmediatePriority: 1, + UserBlockingPriority: 2, + NormalPriority: 3, + LowPriority: 4, + IdlePriority: 5, + NoPriority: 0 + }; + } + var StrictModeBits = 0; + if (gte(version, '18.0.0-alpha')) { + // 18+ + StrictModeBits = 24; + } else if (gte(version, '16.9.0')) { + // 16.9 - 17 + StrictModeBits = 1; + } else if (gte(version, '16.3.0')) { + // 16.3 - 16.8 + StrictModeBits = 2; + } + var ReactTypeOfWork = null; // ********************************************************** + // The section below is copied from files in React repo. + // Keep it in sync, and add version guards if it changes. + // + // TODO Update the gt() check below to be gte() whichever the next version number is. + // Currently the version in Git is 17.0.2 (but that version has not been/may not end up being released). + + if (gt(version, '17.0.1')) { + ReactTypeOfWork = { + CacheComponent: 24, + // Experimental + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + // Removed + CoroutineHandlerPhase: -1, + // Removed + DehydratedSuspenseComponent: 18, + // Behind a flag + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostHoistable: 26, + // In reality, 18.2+. But doesn't hurt to include it here + HostSingleton: 27, + // Same as above + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: 23, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: 22, + // Experimental + Profiler: 12, + ScopeComponent: 21, + // Experimental + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + // Experimental + TracingMarkerComponent: 25, + // Experimental - This is technically in 18 but we don't + // want to fork again so we're adding it here instead + YieldComponent: -1 // Removed + }; + } else if (gte(version, '17.0.0-alpha')) { + ReactTypeOfWork = { + CacheComponent: -1, + // Doesn't exist yet + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + // Removed + CoroutineHandlerPhase: -1, + // Removed + DehydratedSuspenseComponent: 18, + // Behind a flag + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostHoistable: -1, + // Doesn't exist yet + HostSingleton: -1, + // Doesn't exist yet + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: 24, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: 23, + // Experimental + Profiler: 12, + ScopeComponent: 21, + // Experimental + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + // Experimental + TracingMarkerComponent: -1, + // Doesn't exist yet + YieldComponent: -1 // Removed + }; + } else if (gte(version, '16.6.0-beta.0')) { + ReactTypeOfWork = { + CacheComponent: -1, + // Doesn't exist yet + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + // Removed + CoroutineHandlerPhase: -1, + // Removed + DehydratedSuspenseComponent: 18, + // Behind a flag + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostHoistable: -1, + // Doesn't exist yet + HostSingleton: -1, + // Doesn't exist yet + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + LegacyHiddenComponent: -1, + MemoComponent: 14, + Mode: 8, + OffscreenComponent: -1, + // Experimental + Profiler: 12, + ScopeComponent: -1, + // Experimental + SimpleMemoComponent: 15, + SuspenseComponent: 13, + SuspenseListComponent: 19, + // Experimental + TracingMarkerComponent: -1, + // Doesn't exist yet + YieldComponent: -1 // Removed + }; + } else if (gte(version, '16.4.3-alpha')) { + ReactTypeOfWork = { + CacheComponent: -1, + // Doesn't exist yet + ClassComponent: 2, + ContextConsumer: 11, + ContextProvider: 12, + CoroutineComponent: -1, + // Removed + CoroutineHandlerPhase: -1, + // Removed + DehydratedSuspenseComponent: -1, + // Doesn't exist yet + ForwardRef: 13, + Fragment: 9, + FunctionComponent: 0, + HostComponent: 7, + HostPortal: 6, + HostRoot: 5, + HostHoistable: -1, + // Doesn't exist yet + HostSingleton: -1, + // Doesn't exist yet + HostText: 8, + IncompleteClassComponent: -1, + // Doesn't exist yet + IndeterminateComponent: 4, + LazyComponent: -1, + // Doesn't exist yet + LegacyHiddenComponent: -1, + MemoComponent: -1, + // Doesn't exist yet + Mode: 10, + OffscreenComponent: -1, + // Experimental + Profiler: 15, + ScopeComponent: -1, + // Experimental + SimpleMemoComponent: -1, + // Doesn't exist yet + SuspenseComponent: 16, + SuspenseListComponent: -1, + // Doesn't exist yet + TracingMarkerComponent: -1, + // Doesn't exist yet + YieldComponent: -1 // Removed + }; + } else { + ReactTypeOfWork = { + CacheComponent: -1, + // Doesn't exist yet + ClassComponent: 2, + ContextConsumer: 12, + ContextProvider: 13, + CoroutineComponent: 7, + CoroutineHandlerPhase: 8, + DehydratedSuspenseComponent: -1, + // Doesn't exist yet + ForwardRef: 14, + Fragment: 10, + FunctionComponent: 1, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostHoistable: -1, + // Doesn't exist yet + HostSingleton: -1, + // Doesn't exist yet + HostText: 6, + IncompleteClassComponent: -1, + // Doesn't exist yet + IndeterminateComponent: 0, + LazyComponent: -1, + // Doesn't exist yet + LegacyHiddenComponent: -1, + MemoComponent: -1, + // Doesn't exist yet + Mode: 11, + OffscreenComponent: -1, + // Experimental + Profiler: 15, + ScopeComponent: -1, + // Experimental + SimpleMemoComponent: -1, + // Doesn't exist yet + SuspenseComponent: 16, + SuspenseListComponent: -1, + // Doesn't exist yet + TracingMarkerComponent: -1, + // Doesn't exist yet + YieldComponent: 9 + }; + } // ********************************************************** + // End of copied code. + // ********************************************************** + + function getTypeSymbol(type) { + var symbolOrNumber = renderer_typeof(type) === 'object' && type !== null ? type.$$typeof : type; + return renderer_typeof(symbolOrNumber) === 'symbol' ? + // $FlowFixMe[incompatible-return] `toString()` doesn't match the type signature? + symbolOrNumber.toString() : symbolOrNumber; + } + var _ReactTypeOfWork = ReactTypeOfWork, + CacheComponent = _ReactTypeOfWork.CacheComponent, + ClassComponent = _ReactTypeOfWork.ClassComponent, + IncompleteClassComponent = _ReactTypeOfWork.IncompleteClassComponent, + FunctionComponent = _ReactTypeOfWork.FunctionComponent, + IndeterminateComponent = _ReactTypeOfWork.IndeterminateComponent, + ForwardRef = _ReactTypeOfWork.ForwardRef, + HostRoot = _ReactTypeOfWork.HostRoot, + HostHoistable = _ReactTypeOfWork.HostHoistable, + HostSingleton = _ReactTypeOfWork.HostSingleton, + HostComponent = _ReactTypeOfWork.HostComponent, + HostPortal = _ReactTypeOfWork.HostPortal, + HostText = _ReactTypeOfWork.HostText, + Fragment = _ReactTypeOfWork.Fragment, + LazyComponent = _ReactTypeOfWork.LazyComponent, + LegacyHiddenComponent = _ReactTypeOfWork.LegacyHiddenComponent, + MemoComponent = _ReactTypeOfWork.MemoComponent, + OffscreenComponent = _ReactTypeOfWork.OffscreenComponent, + Profiler = _ReactTypeOfWork.Profiler, + ScopeComponent = _ReactTypeOfWork.ScopeComponent, + SimpleMemoComponent = _ReactTypeOfWork.SimpleMemoComponent, + SuspenseComponent = _ReactTypeOfWork.SuspenseComponent, + SuspenseListComponent = _ReactTypeOfWork.SuspenseListComponent, + TracingMarkerComponent = _ReactTypeOfWork.TracingMarkerComponent; + function resolveFiberType(type) { var typeSymbol = getTypeSymbol(type); switch (typeSymbol) { - case ReactSymbols["a"]: - case ReactSymbols["b"]: - case ReactSymbols["e"]: + case ReactSymbols_MEMO_NUMBER: + case ReactSymbols_MEMO_SYMBOL_STRING: + // recursively resolving memo type in case of memo(forwardRef(Component)) + return resolveFiberType(type.type); + case ReactSymbols_FORWARD_REF_NUMBER: + case ReactSymbols_FORWARD_REF_SYMBOL_STRING: + return type.render; + default: + return type; + } + } // NOTICE Keep in sync with shouldFilterFiber() and other get*ForFiber methods + + function getDisplayNameForFiber(fiber) { + var elementType = fiber.elementType, + type = fiber.type, + tag = fiber.tag; + var resolvedType = type; + if (renderer_typeof(type) === 'object' && type !== null) { + resolvedType = resolveFiberType(type); + } + var resolvedContext = null; + switch (tag) { + case CacheComponent: + return 'Cache'; + case ClassComponent: + case IncompleteClassComponent: + return getDisplayName(resolvedType); + case FunctionComponent: + case IndeterminateComponent: + return getDisplayName(resolvedType); + case ForwardRef: + return getWrappedDisplayName(elementType, resolvedType, 'ForwardRef', 'Anonymous'); + case HostRoot: + var fiberRoot = fiber.stateNode; + if (fiberRoot != null && fiberRoot._debugRootType !== null) { + return fiberRoot._debugRootType; + } return null; - case ReactSymbols["n"]: - case ReactSymbols["o"]: - resolvedContext = fiber.type._context || fiber.type.context; - return "".concat(resolvedContext.displayName || 'Context', ".Provider"); - case ReactSymbols["c"]: - case ReactSymbols["d"]: - case ReactSymbols["r"]: - resolvedContext = fiber.type._context || fiber.type; - - return "".concat(resolvedContext.displayName || 'Context', ".Consumer"); - case ReactSymbols["s"]: - case ReactSymbols["t"]: + case HostComponent: + case HostSingleton: + case HostHoistable: + return type; + case HostPortal: + case HostText: return null; - case ReactSymbols["l"]: - case ReactSymbols["m"]: - return "Profiler(".concat(fiber.memoizedProps.id, ")"); - case ReactSymbols["p"]: - case ReactSymbols["q"]: + case Fragment: + return 'Fragment'; + case LazyComponent: + // This display name will not be user visible. + // Once a Lazy component loads its inner component, React replaces the tag and type. + // This display name will only show up in console logs when DevTools DEBUG mode is on. + return 'Lazy'; + case MemoComponent: + case SimpleMemoComponent: + // Display name in React does not use `Memo` as a wrapper but fallback name. + return getWrappedDisplayName(elementType, resolvedType, 'Memo', 'Anonymous'); + case SuspenseComponent: + return 'Suspense'; + case LegacyHiddenComponent: + return 'LegacyHidden'; + case OffscreenComponent: + return 'Offscreen'; + case ScopeComponent: return 'Scope'; + case SuspenseListComponent: + return 'SuspenseList'; + case Profiler: + return 'Profiler'; + case TracingMarkerComponent: + return 'TracingMarker'; default: - return null; + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case CONCURRENT_MODE_NUMBER: + case CONCURRENT_MODE_SYMBOL_STRING: + case DEPRECATED_ASYNC_MODE_SYMBOL_STRING: + return null; + case PROVIDER_NUMBER: + case PROVIDER_SYMBOL_STRING: + // 16.3.0 exposed the context object as "context" + // PR #12501 changed it to "_context" for 16.3.1+ + // NOTE Keep in sync with inspectElementRaw() + resolvedContext = fiber.type._context || fiber.type.context; + return "".concat(resolvedContext.displayName || 'Context', ".Provider"); + case CONTEXT_NUMBER: + case CONTEXT_SYMBOL_STRING: + case SERVER_CONTEXT_SYMBOL_STRING: + // 16.3-16.5 read from "type" because the Consumer is the actual context object. + // 16.6+ should read from "type._context" because Consumer can be different (in DEV). + // NOTE Keep in sync with inspectElementRaw() + resolvedContext = fiber.type._context || fiber.type; // NOTE: TraceUpdatesBackendManager depends on the name ending in '.Consumer' + // If you change the name, figure out a more resilient way to detect it. + + return "".concat(resolvedContext.displayName || 'Context', ".Consumer"); + case STRICT_MODE_NUMBER: + case STRICT_MODE_SYMBOL_STRING: + return null; + case PROFILER_NUMBER: + case PROFILER_SYMBOL_STRING: + return "Profiler(".concat(fiber.memoizedProps.id, ")"); + case SCOPE_NUMBER: + case SCOPE_SYMBOL_STRING: + return 'Scope'; + default: + // Unknown element type. + // This may mean a new element type that has not yet been added to DevTools. + return null; + } } - } - } - return { - getDisplayNameForFiber: getDisplayNameForFiber, - getTypeSymbol: getTypeSymbol, - ReactPriorityLevels: ReactPriorityLevels, - ReactTypeOfWork: ReactTypeOfWork, - ReactTypeOfSideEffect: ReactTypeOfSideEffect, - StrictModeBits: StrictModeBits - }; - } - function attach(hook, rendererID, renderer, global) { - var version = renderer.reconcilerVersion || renderer.version; - var _getInternalReactCons = getInternalReactConstants(version), - getDisplayNameForFiber = _getInternalReactCons.getDisplayNameForFiber, - getTypeSymbol = _getInternalReactCons.getTypeSymbol, - ReactPriorityLevels = _getInternalReactCons.ReactPriorityLevels, - ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, - ReactTypeOfSideEffect = _getInternalReactCons.ReactTypeOfSideEffect, - StrictModeBits = _getInternalReactCons.StrictModeBits; - var DidCapture = ReactTypeOfSideEffect.DidCapture, - Hydrating = ReactTypeOfSideEffect.Hydrating, - NoFlags = ReactTypeOfSideEffect.NoFlags, - PerformedWork = ReactTypeOfSideEffect.PerformedWork, - Placement = ReactTypeOfSideEffect.Placement; - var CacheComponent = ReactTypeOfWork.CacheComponent, - ClassComponent = ReactTypeOfWork.ClassComponent, - ContextConsumer = ReactTypeOfWork.ContextConsumer, - DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, - ForwardRef = ReactTypeOfWork.ForwardRef, - Fragment = ReactTypeOfWork.Fragment, - FunctionComponent = ReactTypeOfWork.FunctionComponent, - HostRoot = ReactTypeOfWork.HostRoot, - HostPortal = ReactTypeOfWork.HostPortal, - HostComponent = ReactTypeOfWork.HostComponent, - HostText = ReactTypeOfWork.HostText, - IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, - IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, - LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, - MemoComponent = ReactTypeOfWork.MemoComponent, - OffscreenComponent = ReactTypeOfWork.OffscreenComponent, - SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, - SuspenseComponent = ReactTypeOfWork.SuspenseComponent, - SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent, - TracingMarkerComponent = ReactTypeOfWork.TracingMarkerComponent; - var ImmediatePriority = ReactPriorityLevels.ImmediatePriority, - UserBlockingPriority = ReactPriorityLevels.UserBlockingPriority, - NormalPriority = ReactPriorityLevels.NormalPriority, - LowPriority = ReactPriorityLevels.LowPriority, - IdlePriority = ReactPriorityLevels.IdlePriority, - NoPriority = ReactPriorityLevels.NoPriority; - var getLaneLabelMap = renderer.getLaneLabelMap, - injectProfilingHooks = renderer.injectProfilingHooks, - overrideHookState = renderer.overrideHookState, - overrideHookStateDeletePath = renderer.overrideHookStateDeletePath, - overrideHookStateRenamePath = renderer.overrideHookStateRenamePath, - overrideProps = renderer.overrideProps, - overridePropsDeletePath = renderer.overridePropsDeletePath, - overridePropsRenamePath = renderer.overridePropsRenamePath, - scheduleRefresh = renderer.scheduleRefresh, - setErrorHandler = renderer.setErrorHandler, - setSuspenseHandler = renderer.setSuspenseHandler, - scheduleUpdate = renderer.scheduleUpdate; - var supportsTogglingError = typeof setErrorHandler === 'function' && typeof scheduleUpdate === 'function'; - var supportsTogglingSuspense = typeof setSuspenseHandler === 'function' && typeof scheduleUpdate === 'function'; - if (typeof scheduleRefresh === 'function') { - renderer.scheduleRefresh = function () { - try { - hook.emit('fastRefreshScheduled'); - } finally { - return scheduleRefresh.apply(void 0, arguments); } - }; - } - var getTimelineData = null; - var toggleProfilingStatus = null; - if (typeof injectProfilingHooks === 'function') { - var response = createProfilingHooks({ - getDisplayNameForFiber: getDisplayNameForFiber, - getIsProfiling: function getIsProfiling() { - return isProfiling; - }, - getLaneLabelMap: getLaneLabelMap, - reactVersion: version - }); - - injectProfilingHooks(response.profilingHooks); - - getTimelineData = response.getTimelineData; - toggleProfilingStatus = response.toggleProfilingStatus; - } - - var fibersWithChangedErrorOrWarningCounts = new Set(); - var pendingFiberToErrorsMap = new Map(); - var pendingFiberToWarningsMap = new Map(); - - var fiberIDToErrorsMap = new Map(); - var fiberIDToWarningsMap = new Map(); - function clearErrorsAndWarnings() { - var _iterator = _createForOfIteratorHelper(fiberIDToErrorsMap.keys()), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var id = _step.value; - var _fiber = idToArbitraryFiberMap.get(id); - if (_fiber != null) { - fibersWithChangedErrorOrWarningCounts.add(_fiber); - updateMostRecentlyInspectedElementIfNecessary(id); + return { + getDisplayNameForFiber: getDisplayNameForFiber, + getTypeSymbol: getTypeSymbol, + ReactPriorityLevels: ReactPriorityLevels, + ReactTypeOfWork: ReactTypeOfWork, + StrictModeBits: StrictModeBits + }; + } // Map of one or more Fibers in a pair to their unique id number. + // We track both Fibers to support Fast Refresh, + // which may forcefully replace one of the pair as part of hot reloading. + // In that case it's still important to be able to locate the previous ID during subsequent renders. + + var fiberToIDMap = new Map(); // Map of id to one (arbitrary) Fiber in a pair. + // This Map is used to e.g. get the display name for a Fiber or schedule an update, + // operations that should be the same whether the current and work-in-progress Fiber is used. + + var idToArbitraryFiberMap = new Map(); + function attach(hook, rendererID, renderer, global) { + // Newer versions of the reconciler package also specific reconciler version. + // If that version number is present, use it. + // Third party renderer versions may not match the reconciler version, + // and the latter is what's important in terms of tags and symbols. + var version = renderer.reconcilerVersion || renderer.version; + var _getInternalReactCons = getInternalReactConstants(version), + getDisplayNameForFiber = _getInternalReactCons.getDisplayNameForFiber, + getTypeSymbol = _getInternalReactCons.getTypeSymbol, + ReactPriorityLevels = _getInternalReactCons.ReactPriorityLevels, + ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, + StrictModeBits = _getInternalReactCons.StrictModeBits; + var CacheComponent = ReactTypeOfWork.CacheComponent, + ClassComponent = ReactTypeOfWork.ClassComponent, + ContextConsumer = ReactTypeOfWork.ContextConsumer, + DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, + ForwardRef = ReactTypeOfWork.ForwardRef, + Fragment = ReactTypeOfWork.Fragment, + FunctionComponent = ReactTypeOfWork.FunctionComponent, + HostRoot = ReactTypeOfWork.HostRoot, + HostHoistable = ReactTypeOfWork.HostHoistable, + HostSingleton = ReactTypeOfWork.HostSingleton, + HostPortal = ReactTypeOfWork.HostPortal, + HostComponent = ReactTypeOfWork.HostComponent, + HostText = ReactTypeOfWork.HostText, + IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, + IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, + LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, + MemoComponent = ReactTypeOfWork.MemoComponent, + OffscreenComponent = ReactTypeOfWork.OffscreenComponent, + SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, + SuspenseComponent = ReactTypeOfWork.SuspenseComponent, + SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent, + TracingMarkerComponent = ReactTypeOfWork.TracingMarkerComponent; + var ImmediatePriority = ReactPriorityLevels.ImmediatePriority, + UserBlockingPriority = ReactPriorityLevels.UserBlockingPriority, + NormalPriority = ReactPriorityLevels.NormalPriority, + LowPriority = ReactPriorityLevels.LowPriority, + IdlePriority = ReactPriorityLevels.IdlePriority, + NoPriority = ReactPriorityLevels.NoPriority; + var getLaneLabelMap = renderer.getLaneLabelMap, + injectProfilingHooks = renderer.injectProfilingHooks, + overrideHookState = renderer.overrideHookState, + overrideHookStateDeletePath = renderer.overrideHookStateDeletePath, + overrideHookStateRenamePath = renderer.overrideHookStateRenamePath, + overrideProps = renderer.overrideProps, + overridePropsDeletePath = renderer.overridePropsDeletePath, + overridePropsRenamePath = renderer.overridePropsRenamePath, + scheduleRefresh = renderer.scheduleRefresh, + setErrorHandler = renderer.setErrorHandler, + setSuspenseHandler = renderer.setSuspenseHandler, + scheduleUpdate = renderer.scheduleUpdate; + var supportsTogglingError = typeof setErrorHandler === 'function' && typeof scheduleUpdate === 'function'; + var supportsTogglingSuspense = typeof setSuspenseHandler === 'function' && typeof scheduleUpdate === 'function'; + if (typeof scheduleRefresh === 'function') { + // When Fast Refresh updates a component, the frontend may need to purge cached information. + // For example, ASTs cached for the component (for named hooks) may no longer be valid. + // Send a signal to the frontend to purge this cached information. + // The "fastRefreshScheduled" dispatched is global (not Fiber or even Renderer specific). + // This is less effecient since it means the front-end will need to purge the entire cache, + // but this is probably an okay trade off in order to reduce coupling between the DevTools and Fast Refresh. + renderer.scheduleRefresh = function () { + try { + hook.emit('fastRefreshScheduled'); + } finally { + return scheduleRefresh.apply(void 0, arguments); + } + }; + } + var getTimelineData = null; + var toggleProfilingStatus = null; + if (typeof injectProfilingHooks === 'function') { + var response = createProfilingHooks({ + getDisplayNameForFiber: getDisplayNameForFiber, + getIsProfiling: function getIsProfiling() { + return isProfiling; + }, + getLaneLabelMap: getLaneLabelMap, + currentDispatcherRef: renderer.currentDispatcherRef, + workTagMap: ReactTypeOfWork, + reactVersion: version + }); // Pass the Profiling hooks to the reconciler for it to call during render. + + injectProfilingHooks(response.profilingHooks); // Hang onto this toggle so we can notify the external methods of profiling status changes. + + getTimelineData = response.getTimelineData; + toggleProfilingStatus = response.toggleProfilingStatus; + } // Tracks Fibers with recently changed number of error/warning messages. + // These collections store the Fiber rather than the ID, + // in order to avoid generating an ID for Fibers that never get mounted + // (due to e.g. Suspense or error boundaries). + // onErrorOrWarning() adds Fibers and recordPendingErrorsAndWarnings() later clears them. + + var fibersWithChangedErrorOrWarningCounts = new Set(); + var pendingFiberToErrorsMap = new Map(); + var pendingFiberToWarningsMap = new Map(); // Mapping of fiber IDs to error/warning messages and counts. + + var fiberIDToErrorsMap = new Map(); + var fiberIDToWarningsMap = new Map(); + function clearErrorsAndWarnings() { + // eslint-disable-next-line no-for-of-loops/no-for-of-loops + var _iterator = _createForOfIteratorHelper(fiberIDToErrorsMap.keys()), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var id = _step.value; + var _fiber = idToArbitraryFiberMap.get(id); + if (_fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(_fiber); + updateMostRecentlyInspectedElementIfNecessary(id); + } + } // eslint-disable-next-line no-for-of-loops/no-for-of-loops + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + var _iterator2 = _createForOfIteratorHelper(fiberIDToWarningsMap.keys()), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var _id = _step2.value; + var _fiber2 = idToArbitraryFiberMap.get(_id); + if (_fiber2 != null) { + fibersWithChangedErrorOrWarningCounts.add(_fiber2); + updateMostRecentlyInspectedElementIfNecessary(_id); + } + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); } + fiberIDToErrorsMap.clear(); + fiberIDToWarningsMap.clear(); + flushPendingEvents(); } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - var _iterator2 = _createForOfIteratorHelper(fiberIDToWarningsMap.keys()), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var _id = _step2.value; - var _fiber2 = idToArbitraryFiberMap.get(_id); - if (_fiber2 != null) { - fibersWithChangedErrorOrWarningCounts.add(_fiber2); - updateMostRecentlyInspectedElementIfNecessary(_id); + function clearMessageCountHelper(fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + // Throw out any pending changes. + pendingFiberToErrorsMap.delete(fiber); + if (fiberIDToMessageCountMap.has(fiberID)) { + fiberIDToMessageCountMap.delete(fiberID); // If previous flushed counts have changed, schedule an update too. + + fibersWithChangedErrorOrWarningCounts.add(fiber); + flushPendingEvents(); + updateMostRecentlyInspectedElementIfNecessary(fiberID); + } else { + fibersWithChangedErrorOrWarningCounts.delete(fiber); + } } } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - fiberIDToErrorsMap.clear(); - fiberIDToWarningsMap.clear(); - flushPendingEvents(); - } - function clearMessageCountHelper(fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { - var fiber = idToArbitraryFiberMap.get(fiberID); - if (fiber != null) { - pendingFiberToErrorsMap.delete(fiber); - if (fiberIDToMessageCountMap.has(fiberID)) { - fiberIDToMessageCountMap.delete(fiberID); - - fibersWithChangedErrorOrWarningCounts.add(fiber); - flushPendingEvents(); - updateMostRecentlyInspectedElementIfNecessary(fiberID); - } else { - fibersWithChangedErrorOrWarningCounts.delete(fiber); + function clearErrorsForFiberID(fiberID) { + clearMessageCountHelper(fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); } - } - } - function clearErrorsForFiberID(fiberID) { - clearMessageCountHelper(fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); - } - function clearWarningsForFiberID(fiberID) { - clearMessageCountHelper(fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); - } - function updateMostRecentlyInspectedElementIfNecessary(fiberID) { - if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === fiberID) { - hasElementUpdatedSinceLastInspected = true; - } - } - - function onErrorOrWarning(fiber, type, args) { - if (type === 'error') { - var maybeID = getFiberIDUnsafe(fiber); - - if (maybeID != null && forceErrorForFiberIDs.get(maybeID) === true) { - return; + function clearWarningsForFiberID(fiberID) { + clearMessageCountHelper(fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); } - } - var message = backend_utils["f"].apply(void 0, _toConsumableArray(args)); - if (constants["s"]) { - debug('onErrorOrWarning', fiber, null, "".concat(type, ": \"").concat(message, "\"")); - } + function updateMostRecentlyInspectedElementIfNecessary(fiberID) { + if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === fiberID) { + hasElementUpdatedSinceLastInspected = true; + } + } // Called when an error or warning is logged during render, commit, or passive (including unmount functions). - fibersWithChangedErrorOrWarningCounts.add(fiber); + function onErrorOrWarning(fiber, type, args) { + if (type === 'error') { + var maybeID = getFiberIDUnsafe(fiber); // if this is an error simulated by us to trigger error boundary, ignore - var fiberMap = type === 'error' ? pendingFiberToErrorsMap : pendingFiberToWarningsMap; - var messageMap = fiberMap.get(fiber); - if (messageMap != null) { - var count = messageMap.get(message) || 0; - messageMap.set(message, count + 1); - } else { - fiberMap.set(fiber, new Map([[message, 1]])); - } - - flushPendingErrorsAndWarningsAfterDelay(); - } - - if (true) { - Object(backend_console["c"])(renderer, onErrorOrWarning); - - var appendComponentStack = window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ !== false; - var breakOnConsoleErrors = window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true; - var showInlineWarningsAndErrors = window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false; - var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; - var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; - Object(backend_console["a"])({ - appendComponentStack: appendComponentStack, - breakOnConsoleErrors: breakOnConsoleErrors, - showInlineWarningsAndErrors: showInlineWarningsAndErrors, - hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, - browserTheme: browserTheme - }); - } - var debug = function debug(name, fiber, parentFiber) { - var extraString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ''; - if (constants["s"]) { - var displayName = fiber.tag + ':' + (getDisplayNameForFiber(fiber) || 'null'); - var maybeID = getFiberIDUnsafe(fiber) || ''; - var parentDisplayName = parentFiber ? parentFiber.tag + ':' + (getDisplayNameForFiber(parentFiber) || 'null') : ''; - var maybeParentID = parentFiber ? getFiberIDUnsafe(parentFiber) || '' : ''; - console.groupCollapsed("[renderer] %c".concat(name, " %c").concat(displayName, " (").concat(maybeID, ") %c").concat(parentFiber ? "".concat(parentDisplayName, " (").concat(maybeParentID, ")") : '', " %c").concat(extraString), 'color: red; font-weight: bold;', 'color: blue;', 'color: purple;', 'color: black;'); - console.log(new Error().stack.split('\n').slice(1).join('\n')); - console.groupEnd(); - } - }; - - var hideElementsWithDisplayNames = new Set(); - var hideElementsWithPaths = new Set(); - var hideElementsWithTypes = new Set(); - - var traceUpdatesEnabled = false; - var traceUpdatesForNodes = new Set(); - function applyComponentFilters(componentFilters) { - hideElementsWithTypes.clear(); - hideElementsWithDisplayNames.clear(); - hideElementsWithPaths.clear(); - componentFilters.forEach(function (componentFilter) { - if (!componentFilter.isEnabled) { - return; - } - switch (componentFilter.type) { - case types["a"]: - if (componentFilter.isValid && componentFilter.value !== '') { - hideElementsWithDisplayNames.add(new RegExp(componentFilter.value, 'i')); + if (maybeID != null && forceErrorForFiberIDs.get(maybeID) === true) { + return; } - break; - case types["b"]: - hideElementsWithTypes.add(componentFilter.value); - break; - case types["d"]: - if (componentFilter.isValid && componentFilter.value !== '') { - hideElementsWithPaths.add(new RegExp(componentFilter.value, 'i')); + } + var message = format.apply(void 0, renderer_toConsumableArray(args)); + if (__DEBUG__) { + debug('onErrorOrWarning', fiber, null, "".concat(type, ": \"").concat(message, "\"")); + } // Mark this Fiber as needed its warning/error count updated during the next flush. + + fibersWithChangedErrorOrWarningCounts.add(fiber); // Track the warning/error for later. + + var fiberMap = type === 'error' ? pendingFiberToErrorsMap : pendingFiberToWarningsMap; + var messageMap = fiberMap.get(fiber); + if (messageMap != null) { + var count = messageMap.get(message) || 0; + messageMap.set(message, count + 1); + } else { + fiberMap.set(fiber, new Map([[message, 1]])); + } // Passive effects may trigger errors or warnings too; + // In this case, we should wait until the rest of the passive effects have run, + // but we shouldn't wait until the next commit because that might be a long time. + // This would also cause "tearing" between an inspected Component and the tree view. + // Then again we don't want to flush too soon because this could be an error during async rendering. + // Use a debounce technique to ensure that we'll eventually flush. + + flushPendingErrorsAndWarningsAfterDelay(); + } // Patching the console enables DevTools to do a few useful things: + // * Append component stacks to warnings and error messages + // * Disable logging during re-renders to inspect hooks (see inspectHooksOfFiber) + + registerRenderer(renderer, onErrorOrWarning); // The renderer interface can't read these preferences directly, + // because it is stored in localStorage within the context of the extension. + // It relies on the extension to pass the preference through via the global. + + patchConsoleUsingWindowValues(); + var debug = function debug(name, fiber, parentFiber) { + var extraString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ''; + if (__DEBUG__) { + var displayName = fiber.tag + ':' + (getDisplayNameForFiber(fiber) || 'null'); + var maybeID = getFiberIDUnsafe(fiber) || ''; + var parentDisplayName = parentFiber ? parentFiber.tag + ':' + (getDisplayNameForFiber(parentFiber) || 'null') : ''; + var maybeParentID = parentFiber ? getFiberIDUnsafe(parentFiber) || '' : ''; + console.groupCollapsed("[renderer] %c".concat(name, " %c").concat(displayName, " (").concat(maybeID, ") %c").concat(parentFiber ? "".concat(parentDisplayName, " (").concat(maybeParentID, ")") : '', " %c").concat(extraString), 'color: red; font-weight: bold;', 'color: blue;', 'color: purple;', 'color: black;'); + console.log(new Error().stack.split('\n').slice(1).join('\n')); + console.groupEnd(); + } + }; // Configurable Components tree filters. + + var hideElementsWithDisplayNames = new Set(); + var hideElementsWithPaths = new Set(); + var hideElementsWithTypes = new Set(); // Highlight updates + + var traceUpdatesEnabled = false; + var traceUpdatesForNodes = new Set(); + function applyComponentFilters(componentFilters) { + hideElementsWithTypes.clear(); + hideElementsWithDisplayNames.clear(); + hideElementsWithPaths.clear(); + componentFilters.forEach(function (componentFilter) { + if (!componentFilter.isEnabled) { + return; } - break; - case types["c"]: - hideElementsWithDisplayNames.add(new RegExp('\\(')); - break; - default: - console.warn("Invalid component filter type \"".concat(componentFilter.type, "\"")); - break; - } - }); - } - - if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ != null) { - applyComponentFilters(window.__REACT_DEVTOOLS_COMPONENT_FILTERS__); - } else { - applyComponentFilters(Object(utils["e"])()); - } - - function updateComponentFilters(componentFilters) { - if (isProfiling) { - throw Error('Cannot modify filter preferences while profiling'); - } - - hook.getFiberRoots(rendererID).forEach(function (root) { - currentRootID = getOrGenerateFiberID(root.current); - - pushOperation(constants["n"]); - flushPendingEvents(root); - currentRootID = -1; - }); - applyComponentFilters(componentFilters); + switch (componentFilter.type) { + case ComponentFilterDisplayName: + if (componentFilter.isValid && componentFilter.value !== '') { + hideElementsWithDisplayNames.add(new RegExp(componentFilter.value, 'i')); + } + break; + case ComponentFilterElementType: + hideElementsWithTypes.add(componentFilter.value); + break; + case ComponentFilterLocation: + if (componentFilter.isValid && componentFilter.value !== '') { + hideElementsWithPaths.add(new RegExp(componentFilter.value, 'i')); + } + break; + case ComponentFilterHOC: + hideElementsWithDisplayNames.add(new RegExp('\\(')); + break; + default: + console.warn("Invalid component filter type \"".concat(componentFilter.type, "\"")); + break; + } + }); + } // The renderer interface can't read saved component filters directly, + // because they are stored in localStorage within the context of the extension. + // Instead it relies on the extension to pass filters through. - rootDisplayNameCounter.clear(); + if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ != null) { + applyComponentFilters(window.__REACT_DEVTOOLS_COMPONENT_FILTERS__); + } else { + // Unfortunately this feature is not expected to work for React Native for now. + // It would be annoying for us to spam YellowBox warnings with unactionable stuff, + // so for now just skip this message... + //console.warn('โš›๏ธ DevTools: Could not locate saved component filters'); + // Fallback to assuming the default filters in this case. + applyComponentFilters(getDefaultComponentFilters()); + } // If necessary, we can revisit optimizing this operation. + // For example, we could add a new recursive unmount tree operation. + // The unmount operations are already significantly smaller than mount operations though. + // This is something to keep in mind for later. + + function updateComponentFilters(componentFilters) { + if (isProfiling) { + // Re-mounting a tree while profiling is in progress might break a lot of assumptions. + // If necessary, we could support this- but it doesn't seem like a necessary use case. + throw Error('Cannot modify filter preferences while profiling'); + } // Recursively unmount all roots. + + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); // The TREE_OPERATION_REMOVE_ROOT operation serves two purposes: + // 1. It avoids sending unnecessary bridge traffic to clear a root. + // 2. It preserves Fiber IDs when remounting (below) which in turn ID to error/warning mapping. + + pushOperation(TREE_OPERATION_REMOVE_ROOT); + flushPendingEvents(root); + currentRootID = -1; + }); + applyComponentFilters(componentFilters); // Reset pseudo counters so that new path selections will be persisted. - hook.getFiberRoots(rendererID).forEach(function (root) { - currentRootID = getOrGenerateFiberID(root.current); - setRootPseudoKey(currentRootID, root.current); - mountFiberRecursively(root.current, null, false, false); - flushPendingEvents(root); - currentRootID = -1; - }); + rootDisplayNameCounter.clear(); // Recursively re-mount all roots with new filter criteria applied. - reevaluateErrorsAndWarnings(); - flushPendingEvents(); - } + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); + setRootPseudoKey(currentRootID, root.current); + mountFiberRecursively(root.current, null, false, false); + flushPendingEvents(root); + currentRootID = -1; + }); // Also re-evaluate all error and warning counts given the new filters. - function shouldFilterFiber(fiber) { - var _debugSource = fiber._debugSource, - tag = fiber.tag, - type = fiber.type; - switch (tag) { - case DehydratedSuspenseComponent: - return true; - case HostPortal: - case HostText: - case Fragment: - case LegacyHiddenComponent: - case OffscreenComponent: - return true; - case HostRoot: - return false; - default: - var typeSymbol = getTypeSymbol(type); - switch (typeSymbol) { - case ReactSymbols["a"]: - case ReactSymbols["b"]: - case ReactSymbols["e"]: - case ReactSymbols["s"]: - case ReactSymbols["t"]: + reevaluateErrorsAndWarnings(); + flushPendingEvents(); + } // NOTICE Keep in sync with get*ForFiber methods + + function shouldFilterFiber(fiber) { + var _debugSource = fiber._debugSource, + tag = fiber.tag, + type = fiber.type, + key = fiber.key; + switch (tag) { + case DehydratedSuspenseComponent: + // TODO: ideally we would show dehydrated Suspense immediately. + // However, it has some special behavior (like disconnecting + // an alternate and turning into real Suspense) which breaks DevTools. + // For now, ignore it, and only show it once it gets hydrated. + // https://github.com/bvaughn/react-devtools-experimental/issues/197 + return true; + case HostPortal: + case HostText: + case LegacyHiddenComponent: + case OffscreenComponent: return true; + case HostRoot: + // It is never valid to filter the root element. + return false; + case Fragment: + return key === null; default: - break; + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case CONCURRENT_MODE_NUMBER: + case CONCURRENT_MODE_SYMBOL_STRING: + case DEPRECATED_ASYNC_MODE_SYMBOL_STRING: + case STRICT_MODE_NUMBER: + case STRICT_MODE_SYMBOL_STRING: + return true; + default: + break; + } } - } - var elementType = getElementTypeForFiber(fiber); - if (hideElementsWithTypes.has(elementType)) { - return true; - } - if (hideElementsWithDisplayNames.size > 0) { - var displayName = getDisplayNameForFiber(fiber); - if (displayName != null) { - var _iterator3 = _createForOfIteratorHelper(hideElementsWithDisplayNames), - _step3; - try { - for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { - var displayNameRegExp = _step3.value; - if (displayNameRegExp.test(displayName)) { - return true; + var elementType = getElementTypeForFiber(fiber); + if (hideElementsWithTypes.has(elementType)) { + return true; + } + if (hideElementsWithDisplayNames.size > 0) { + var displayName = getDisplayNameForFiber(fiber); + if (displayName != null) { + // eslint-disable-next-line no-for-of-loops/no-for-of-loops + var _iterator3 = _createForOfIteratorHelper(hideElementsWithDisplayNames), + _step3; + try { + for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { + var displayNameRegExp = _step3.value; + if (displayNameRegExp.test(displayName)) { + return true; + } + } + } catch (err) { + _iterator3.e(err); + } finally { + _iterator3.f(); } } - } catch (err) { - _iterator3.e(err); - } finally { - _iterator3.f(); } - } - } - if (_debugSource != null && hideElementsWithPaths.size > 0) { - var fileName = _debugSource.fileName; + if (_debugSource != null && hideElementsWithPaths.size > 0) { + var fileName = _debugSource.fileName; // eslint-disable-next-line no-for-of-loops/no-for-of-loops - var _iterator4 = _createForOfIteratorHelper(hideElementsWithPaths), - _step4; - try { - for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { - var pathRegExp = _step4.value; - if (pathRegExp.test(fileName)) { - return true; + var _iterator4 = _createForOfIteratorHelper(hideElementsWithPaths), + _step4; + try { + for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { + var pathRegExp = _step4.value; + if (pathRegExp.test(fileName)) { + return true; + } + } + } catch (err) { + _iterator4.e(err); + } finally { + _iterator4.f(); } } - } catch (err) { - _iterator4.e(err); - } finally { - _iterator4.f(); - } - } - return false; - } - - function getElementTypeForFiber(fiber) { - var type = fiber.type, - tag = fiber.tag; - switch (tag) { - case ClassComponent: - case IncompleteClassComponent: - return types["e"]; - - case FunctionComponent: - case IndeterminateComponent: - return types["h"]; - - case ForwardRef: - return types["g"]; - - case HostRoot: - return types["m"]; - - case HostComponent: - return types["i"]; - - case HostPortal: - case HostText: - case Fragment: - return types["k"]; - - case MemoComponent: - case SimpleMemoComponent: - return types["j"]; - - case SuspenseComponent: - return types["n"]; - - case SuspenseListComponent: - return types["o"]; - - case TracingMarkerComponent: - return types["p"]; - - default: - var typeSymbol = getTypeSymbol(type); - switch (typeSymbol) { - case ReactSymbols["a"]: - case ReactSymbols["b"]: - case ReactSymbols["e"]: - return types["k"]; - - case ReactSymbols["n"]: - case ReactSymbols["o"]: - return types["f"]; - - case ReactSymbols["c"]: - case ReactSymbols["d"]: - return types["f"]; - - case ReactSymbols["s"]: - case ReactSymbols["t"]: - return types["k"]; - - case ReactSymbols["l"]: - case ReactSymbols["m"]: - return types["l"]; - + return false; + } // NOTICE Keep in sync with shouldFilterFiber() and other get*ForFiber methods + + function getElementTypeForFiber(fiber) { + var type = fiber.type, + tag = fiber.tag; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + return types_ElementTypeClass; + case FunctionComponent: + case IndeterminateComponent: + return types_ElementTypeFunction; + case ForwardRef: + return types_ElementTypeForwardRef; + case HostRoot: + return ElementTypeRoot; + case HostComponent: + case HostHoistable: + case HostSingleton: + return ElementTypeHostComponent; + case HostPortal: + case HostText: + case Fragment: + return ElementTypeOtherOrUnknown; + case MemoComponent: + case SimpleMemoComponent: + return types_ElementTypeMemo; + case SuspenseComponent: + return ElementTypeSuspense; + case SuspenseListComponent: + return ElementTypeSuspenseList; + case TracingMarkerComponent: + return ElementTypeTracingMarker; default: - return types["k"]; + var typeSymbol = getTypeSymbol(type); + switch (typeSymbol) { + case CONCURRENT_MODE_NUMBER: + case CONCURRENT_MODE_SYMBOL_STRING: + case DEPRECATED_ASYNC_MODE_SYMBOL_STRING: + return ElementTypeOtherOrUnknown; + case PROVIDER_NUMBER: + case PROVIDER_SYMBOL_STRING: + return ElementTypeContext; + case CONTEXT_NUMBER: + case CONTEXT_SYMBOL_STRING: + return ElementTypeContext; + case STRICT_MODE_NUMBER: + case STRICT_MODE_SYMBOL_STRING: + return ElementTypeOtherOrUnknown; + case PROFILER_NUMBER: + case PROFILER_SYMBOL_STRING: + return ElementTypeProfiler; + default: + return ElementTypeOtherOrUnknown; + } } - } - } - - var fiberToIDMap = new Map(); - - var idToArbitraryFiberMap = new Map(); - - var idToTreeBaseDurationMap = new Map(); - - var idToRootMap = new Map(); - - var currentRootID = -1; - - function getOrGenerateFiberID(fiber) { - var id = null; - if (fiberToIDMap.has(fiber)) { - id = fiberToIDMap.get(fiber); - } else { - var _alternate = fiber.alternate; - if (_alternate !== null && fiberToIDMap.has(_alternate)) { - id = fiberToIDMap.get(_alternate); - } - } - var didGenerateID = false; - if (id === null) { - didGenerateID = true; - id = Object(utils["i"])(); - } - - var refinedID = id; + } // When profiling is supported, we store the latest tree base durations for each Fiber. + // This is so that we can quickly capture a snapshot of those values if profiling starts. + // If we didn't store these values, we'd have to crawl the tree when profiling started, + // and use a slow path to find each of the current Fibers. - if (!fiberToIDMap.has(fiber)) { - fiberToIDMap.set(fiber, refinedID); - idToArbitraryFiberMap.set(refinedID, fiber); - } + var idToTreeBaseDurationMap = new Map(); // When profiling is supported, we store the latest tree base durations for each Fiber. + // This map enables us to filter these times by root when sending them to the frontend. - var alternate = fiber.alternate; - if (alternate !== null) { - if (!fiberToIDMap.has(alternate)) { - fiberToIDMap.set(alternate, refinedID); - } - } - if (constants["s"]) { - if (didGenerateID) { - debug('getOrGenerateFiberID()', fiber, fiber.return, 'Generated a new UID'); - } - } - return refinedID; - } + var idToRootMap = new Map(); // When a mount or update is in progress, this value tracks the root that is being operated on. - function getFiberIDThrows(fiber) { - var maybeID = getFiberIDUnsafe(fiber); - if (maybeID !== null) { - return maybeID; - } - throw Error("Could not find ID for Fiber \"".concat(getDisplayNameForFiber(fiber) || '', "\"")); - } + var currentRootID = -1; // Returns the unique ID for a Fiber or generates and caches a new one if the Fiber hasn't been seen before. + // Once this method has been called for a Fiber, untrackFiberID() should always be called later to avoid leaking. - function getFiberIDUnsafe(fiber) { - if (fiberToIDMap.has(fiber)) { - return fiberToIDMap.get(fiber); - } else { - var alternate = fiber.alternate; - if (alternate !== null && fiberToIDMap.has(alternate)) { - return fiberToIDMap.get(alternate); - } - } - return null; - } + function getOrGenerateFiberID(fiber) { + var id = null; + if (fiberToIDMap.has(fiber)) { + id = fiberToIDMap.get(fiber); + } else { + var _alternate = fiber.alternate; + if (_alternate !== null && fiberToIDMap.has(_alternate)) { + id = fiberToIDMap.get(_alternate); + } + } + var didGenerateID = false; + if (id === null) { + didGenerateID = true; + id = getUID(); + } // This refinement is for Flow purposes only. - function untrackFiberID(fiber) { - if (constants["s"]) { - debug('untrackFiberID()', fiber, fiber.return, 'schedule after delay'); - } + var refinedID = id; // Make sure we're tracking this Fiber + // e.g. if it just mounted or an error was logged during initial render. - untrackFibersSet.add(fiber); + if (!fiberToIDMap.has(fiber)) { + fiberToIDMap.set(fiber, refinedID); + idToArbitraryFiberMap.set(refinedID, fiber); + } // Also make sure we're tracking its alternate, + // e.g. in case this is the first update after mount. - var alternate = fiber.alternate; - if (alternate !== null) { - untrackFibersSet.add(alternate); - } - if (untrackFibersTimeoutID === null) { - untrackFibersTimeoutID = setTimeout(untrackFibers, 1000); - } - } - var untrackFibersSet = new Set(); - var untrackFibersTimeoutID = null; - function untrackFibers() { - if (untrackFibersTimeoutID !== null) { - clearTimeout(untrackFibersTimeoutID); - untrackFibersTimeoutID = null; - } - untrackFibersSet.forEach(function (fiber) { - var fiberID = getFiberIDUnsafe(fiber); - if (fiberID !== null) { - idToArbitraryFiberMap.delete(fiberID); + var alternate = fiber.alternate; + if (alternate !== null) { + if (!fiberToIDMap.has(alternate)) { + fiberToIDMap.set(alternate, refinedID); + } + } + if (__DEBUG__) { + if (didGenerateID) { + debug('getOrGenerateFiberID()', fiber, fiber.return, 'Generated a new UID'); + } + } + return refinedID; + } // Returns an ID if one has already been generated for the Fiber or throws. - clearErrorsForFiberID(fiberID); - clearWarningsForFiberID(fiberID); - } - fiberToIDMap.delete(fiber); - var alternate = fiber.alternate; - if (alternate !== null) { - fiberToIDMap.delete(alternate); - } - if (forceErrorForFiberIDs.has(fiberID)) { - forceErrorForFiberIDs.delete(fiberID); - if (forceErrorForFiberIDs.size === 0 && setErrorHandler != null) { - setErrorHandler(shouldErrorFiberAlwaysNull); + function getFiberIDThrows(fiber) { + var maybeID = getFiberIDUnsafe(fiber); + if (maybeID !== null) { + return maybeID; } - } - }); - untrackFibersSet.clear(); - } - function getChangeDescription(prevFiber, nextFiber) { - switch (getElementTypeForFiber(nextFiber)) { - case types["e"]: - case types["h"]: - case types["j"]: - case types["g"]: - if (prevFiber === null) { - return { - context: null, - didHooksChange: false, - isFirstMount: true, - props: null, - state: null - }; - } else { - var data = { - context: getContextChangedKeys(nextFiber), - didHooksChange: false, - isFirstMount: false, - props: getChangedKeys(prevFiber.memoizedProps, nextFiber.memoizedProps), - state: getChangedKeys(prevFiber.memoizedState, nextFiber.memoizedState) - }; + throw Error("Could not find ID for Fiber \"".concat(getDisplayNameForFiber(fiber) || '', "\"")); + } // Returns an ID if one has already been generated for the Fiber or null if one has not been generated. + // Use this method while e.g. logging to avoid over-retaining Fibers. - if (DevToolsFeatureFlags_core_oss["b"]) { - var indices = getChangedHooksIndices(prevFiber.memoizedState, nextFiber.memoizedState); - data.hooks = indices; - data.didHooksChange = indices !== null && indices.length > 0; - } else { - data.didHooksChange = didHooksChange(prevFiber.memoizedState, nextFiber.memoizedState); + function getFiberIDUnsafe(fiber) { + if (fiberToIDMap.has(fiber)) { + return fiberToIDMap.get(fiber); + } else { + var alternate = fiber.alternate; + if (alternate !== null && fiberToIDMap.has(alternate)) { + return fiberToIDMap.get(alternate); } - return data; } - default: return null; - } - } - function updateContextsForFiber(fiber) { - switch (getElementTypeForFiber(fiber)) { - case types["e"]: - case types["g"]: - case types["h"]: - case types["j"]: - if (idToContextsMap !== null) { - var id = getFiberIDThrows(fiber); - var contexts = getContextsForFiber(fiber); - if (contexts !== null) { - idToContextsMap.set(id, contexts); - } + } // Removes a Fiber (and its alternate) from the Maps used to track their id. + // This method should always be called when a Fiber is unmounting. + + function untrackFiberID(fiber) { + if (__DEBUG__) { + debug('untrackFiberID()', fiber, fiber.return, 'schedule after delay'); + } // Untrack Fibers after a slight delay in order to support a Fast Refresh edge case: + // 1. Component type is updated and Fast Refresh schedules an update+remount. + // 2. flushPendingErrorsAndWarningsAfterDelay() runs, sees the old Fiber is no longer mounted + // (it's been disconnected by Fast Refresh), and calls untrackFiberID() to clear it from the Map. + // 3. React flushes pending passive effects before it runs the next render, + // which logs an error or warning, which causes a new ID to be generated for this Fiber. + // 4. DevTools now tries to unmount the old Component with the new ID. + // + // The underlying problem here is the premature clearing of the Fiber ID, + // but DevTools has no way to detect that a given Fiber has been scheduled for Fast Refresh. + // (The "_debugNeedsRemount" flag won't necessarily be set.) + // + // The best we can do is to delay untracking by a small amount, + // and give React time to process the Fast Refresh delay. + + untrackFibersSet.add(fiber); // React may detach alternate pointers during unmount; + // Since our untracking code is async, we should explicily track the pending alternate here as well. + + var alternate = fiber.alternate; + if (alternate !== null) { + untrackFibersSet.add(alternate); } - break; - default: - break; - } - } + if (untrackFibersTimeoutID === null) { + untrackFibersTimeoutID = setTimeout(untrackFibers, 1000); + } + } + var untrackFibersSet = new Set(); + var untrackFibersTimeoutID = null; + function untrackFibers() { + if (untrackFibersTimeoutID !== null) { + clearTimeout(untrackFibersTimeoutID); + untrackFibersTimeoutID = null; + } + untrackFibersSet.forEach(function (fiber) { + var fiberID = getFiberIDUnsafe(fiber); + if (fiberID !== null) { + idToArbitraryFiberMap.delete(fiberID); // Also clear any errors/warnings associated with this fiber. - var NO_CONTEXT = {}; - function getContextsForFiber(fiber) { - var legacyContext = NO_CONTEXT; - var modernContext = NO_CONTEXT; - switch (getElementTypeForFiber(fiber)) { - case types["e"]: - var instance = fiber.stateNode; - if (instance != null) { - if (instance.constructor && instance.constructor.contextType != null) { - modernContext = instance.context; - } else { - legacyContext = instance.context; - if (legacyContext && Object.keys(legacyContext).length === 0) { - legacyContext = NO_CONTEXT; + clearErrorsForFiberID(fiberID); + clearWarningsForFiberID(fiberID); + } + fiberToIDMap.delete(fiber); + var alternate = fiber.alternate; + if (alternate !== null) { + fiberToIDMap.delete(alternate); + } + if (forceErrorForFiberIDs.has(fiberID)) { + forceErrorForFiberIDs.delete(fiberID); + if (forceErrorForFiberIDs.size === 0 && setErrorHandler != null) { + setErrorHandler(shouldErrorFiberAlwaysNull); } } + }); + untrackFibersSet.clear(); + } + function getChangeDescription(prevFiber, nextFiber) { + switch (getElementTypeForFiber(nextFiber)) { + case types_ElementTypeClass: + case types_ElementTypeFunction: + case types_ElementTypeMemo: + case types_ElementTypeForwardRef: + if (prevFiber === null) { + return { + context: null, + didHooksChange: false, + isFirstMount: true, + props: null, + state: null + }; + } else { + var data = { + context: getContextChangedKeys(nextFiber), + didHooksChange: false, + isFirstMount: false, + props: getChangedKeys(prevFiber.memoizedProps, nextFiber.memoizedProps), + state: getChangedKeys(prevFiber.memoizedState, nextFiber.memoizedState) + }; // Only traverse the hooks list once, depending on what info we're returning. + + var indices = getChangedHooksIndices(prevFiber.memoizedState, nextFiber.memoizedState); + data.hooks = indices; + data.didHooksChange = indices !== null && indices.length > 0; + return data; + } + default: + return null; } - return [legacyContext, modernContext]; - case types["g"]: - case types["h"]: - case types["j"]: - var dependencies = fiber.dependencies; - if (dependencies && dependencies.firstContext) { - modernContext = dependencies.firstContext; - } - return [legacyContext, modernContext]; - default: - return null; - } - } - - function crawlToInitializeContextsMap(fiber) { - var id = getFiberIDUnsafe(fiber); - - if (id !== null) { - updateContextsForFiber(fiber); - var current = fiber.child; - while (current !== null) { - crawlToInitializeContextsMap(current); - current = current.sibling; - } - } - } - function getContextChangedKeys(fiber) { - if (idToContextsMap !== null) { - var id = getFiberIDThrows(fiber); - var prevContexts = idToContextsMap.has(id) ? idToContextsMap.get(id) : null; - var nextContexts = getContextsForFiber(fiber); - if (prevContexts == null || nextContexts == null) { - return null; } - var _prevContexts = renderer_slicedToArray(prevContexts, 2), - prevLegacyContext = _prevContexts[0], - prevModernContext = _prevContexts[1]; - var _nextContexts = renderer_slicedToArray(nextContexts, 2), - nextLegacyContext = _nextContexts[0], - nextModernContext = _nextContexts[1]; - switch (getElementTypeForFiber(fiber)) { - case types["e"]: - if (prevContexts && nextContexts) { - if (nextLegacyContext !== NO_CONTEXT) { - return getChangedKeys(prevLegacyContext, nextLegacyContext); - } else if (nextModernContext !== NO_CONTEXT) { - return prevModernContext !== nextModernContext; + function updateContextsForFiber(fiber) { + switch (getElementTypeForFiber(fiber)) { + case types_ElementTypeClass: + case types_ElementTypeForwardRef: + case types_ElementTypeFunction: + case types_ElementTypeMemo: + if (idToContextsMap !== null) { + var id = getFiberIDThrows(fiber); + var contexts = getContextsForFiber(fiber); + if (contexts !== null) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + idToContextsMap.set(id, contexts); + } } - } - break; - case types["g"]: - case types["h"]: - case types["j"]: - if (nextModernContext !== NO_CONTEXT) { - var prevContext = prevModernContext; - var nextContext = nextModernContext; - while (prevContext && nextContext) { - if (!shared_objectIs(prevContext.memoizedValue, nextContext.memoizedValue)) { - return true; + break; + default: + break; + } + } // Differentiates between a null context value and no context. + + var NO_CONTEXT = {}; + function getContextsForFiber(fiber) { + var legacyContext = NO_CONTEXT; + var modernContext = NO_CONTEXT; + switch (getElementTypeForFiber(fiber)) { + case types_ElementTypeClass: + var instance = fiber.stateNode; + if (instance != null) { + if (instance.constructor && instance.constructor.contextType != null) { + modernContext = instance.context; + } else { + legacyContext = instance.context; + if (legacyContext && Object.keys(legacyContext).length === 0) { + legacyContext = NO_CONTEXT; + } } - prevContext = prevContext.next; - nextContext = nextContext.next; } - return false; - } - break; - default: - break; - } - } - return null; - } - function areHookInputsEqual(nextDeps, prevDeps) { - if (prevDeps === null) { - return false; - } - for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { - if (shared_objectIs(nextDeps[i], prevDeps[i])) { - continue; - } - return false; - } - return true; - } - function isEffect(memoizedState) { - if (memoizedState === null || renderer_typeof(memoizedState) !== 'object') { - return false; - } - var deps = memoizedState.deps; - var boundHasOwnProperty = shared_hasOwnProperty.bind(memoizedState); - return boundHasOwnProperty('create') && boundHasOwnProperty('destroy') && boundHasOwnProperty('deps') && boundHasOwnProperty('next') && boundHasOwnProperty('tag') && (deps === null || Object(isArray["a"])(deps)); - } - function didHookChange(prev, next) { - var prevMemoizedState = prev.memoizedState; - var nextMemoizedState = next.memoizedState; - if (isEffect(prevMemoizedState) && isEffect(nextMemoizedState)) { - return prevMemoizedState !== nextMemoizedState && !areHookInputsEqual(nextMemoizedState.deps, prevMemoizedState.deps); - } - return nextMemoizedState !== prevMemoizedState; - } - function didHooksChange(prev, next) { - if (prev == null || next == null) { - return false; - } - - if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { - while (next !== null) { - if (didHookChange(prev, next)) { - return true; - } else { - next = next.next; - prev = prev.next; + return [legacyContext, modernContext]; + case types_ElementTypeForwardRef: + case types_ElementTypeFunction: + case types_ElementTypeMemo: + var dependencies = fiber.dependencies; + if (dependencies && dependencies.firstContext) { + modernContext = dependencies.firstContext; + } + return [legacyContext, modernContext]; + default: + return null; } - } - } - return false; - } - function getChangedHooksIndices(prev, next) { - if (DevToolsFeatureFlags_core_oss["b"]) { - if (prev == null || next == null) { - return null; - } - var indices = []; - var index = 0; - if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { - while (next !== null) { - if (didHookChange(prev, next)) { - indices.push(index); + } // Record all contexts at the time profiling is started. + // Fibers only store the current context value, + // so we need to track them separately in order to determine changed keys. + + function crawlToInitializeContextsMap(fiber) { + var id = getFiberIDUnsafe(fiber); // Not all Fibers in the subtree have mounted yet. + // For example, Offscreen (hidden) or Suspense (suspended) subtrees won't yet be tracked. + // We can safely skip these subtrees. + + if (id !== null) { + updateContextsForFiber(fiber); + var current = fiber.child; + while (current !== null) { + crawlToInitializeContextsMap(current); + current = current.sibling; } - next = next.next; - prev = prev.next; - index++; } } - return indices; - } - return null; - } - function getChangedKeys(prev, next) { - if (prev == null || next == null) { - return null; - } - - if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { - return null; - } - var keys = new Set([].concat(_toConsumableArray(Object.keys(prev)), _toConsumableArray(Object.keys(next)))); - var changedKeys = []; + function getContextChangedKeys(fiber) { + if (idToContextsMap !== null) { + var id = getFiberIDThrows(fiber); // $FlowFixMe[incompatible-use] found when upgrading Flow - var _iterator5 = _createForOfIteratorHelper(keys), - _step5; - try { - for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { - var key = _step5.value; - if (prev[key] !== next[key]) { - changedKeys.push(key); + var prevContexts = idToContextsMap.has(id) ? + // $FlowFixMe[incompatible-use] found when upgrading Flow + idToContextsMap.get(id) : null; + var nextContexts = getContextsForFiber(fiber); + if (prevContexts == null || nextContexts == null) { + return null; + } + var _prevContexts = renderer_slicedToArray(prevContexts, 2), + prevLegacyContext = _prevContexts[0], + prevModernContext = _prevContexts[1]; + var _nextContexts = renderer_slicedToArray(nextContexts, 2), + nextLegacyContext = _nextContexts[0], + nextModernContext = _nextContexts[1]; + switch (getElementTypeForFiber(fiber)) { + case types_ElementTypeClass: + if (prevContexts && nextContexts) { + if (nextLegacyContext !== NO_CONTEXT) { + return getChangedKeys(prevLegacyContext, nextLegacyContext); + } else if (nextModernContext !== NO_CONTEXT) { + return prevModernContext !== nextModernContext; + } + } + break; + case types_ElementTypeForwardRef: + case types_ElementTypeFunction: + case types_ElementTypeMemo: + if (nextModernContext !== NO_CONTEXT) { + var prevContext = prevModernContext; + var nextContext = nextModernContext; + while (prevContext && nextContext) { + // Note this only works for versions of React that support this key (e.v. 18+) + // For older versions, there's no good way to read the current context value after render has completed. + // This is because React maintains a stack of context values during render, + // but by the time DevTools is called, render has finished and the stack is empty. + if (!shared_objectIs(prevContext.memoizedValue, nextContext.memoizedValue)) { + return true; + } + prevContext = prevContext.next; + nextContext = nextContext.next; + } + return false; + } + break; + default: + break; + } } + return null; } - } catch (err) { - _iterator5.e(err); - } finally { - _iterator5.f(); - } - return changedKeys; - } - - function didFiberRender(prevFiber, nextFiber) { - switch (nextFiber.tag) { - case ClassComponent: - case FunctionComponent: - case ContextConsumer: - case MemoComponent: - case SimpleMemoComponent: - return (getFiberFlags(nextFiber) & PerformedWork) === PerformedWork; + function isHookThatCanScheduleUpdate(hookObject) { + var queue = hookObject.queue; + if (!queue) { + return false; + } + var boundHasOwnProperty = shared_hasOwnProperty.bind(queue); // Detect the shape of useState() or useReducer() + // using the attributes that are unique to these hooks + // but also stable (e.g. not tied to current Lanes implementation) - default: - return prevFiber.memoizedProps !== nextFiber.memoizedProps || prevFiber.memoizedState !== nextFiber.memoizedState || prevFiber.ref !== nextFiber.ref; - } - } - var pendingOperations = []; - var pendingRealUnmountedIDs = []; - var pendingSimulatedUnmountedIDs = []; - var pendingOperationsQueue = []; - var pendingStringTable = new Map(); - var pendingStringTableLength = 0; - var pendingUnmountedRootID = null; - function pushOperation(op) { - if (false) {} - pendingOperations.push(op); - } - function shouldBailoutWithPendingOperations() { - if (isProfiling) { - if (currentCommitProfilingMetadata != null && currentCommitProfilingMetadata.durations.length > 0) { - return false; - } - } - return pendingOperations.length === 0 && pendingRealUnmountedIDs.length === 0 && pendingSimulatedUnmountedIDs.length === 0 && pendingUnmountedRootID === null; - } - function flushOrQueueOperations(operations) { - if (shouldBailoutWithPendingOperations()) { - return; - } - if (pendingOperationsQueue !== null) { - pendingOperationsQueue.push(operations); - } else { - hook.emit('operations', operations); - } - } - var flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; - function clearPendingErrorsAndWarningsAfterDelay() { - if (flushPendingErrorsAndWarningsAfterDelayTimeoutID !== null) { - clearTimeout(flushPendingErrorsAndWarningsAfterDelayTimeoutID); - flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; - } - } - function flushPendingErrorsAndWarningsAfterDelay() { - clearPendingErrorsAndWarningsAfterDelay(); - flushPendingErrorsAndWarningsAfterDelayTimeoutID = setTimeout(function () { - flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; - if (pendingOperations.length > 0) { - return; - } - recordPendingErrorsAndWarnings(); - if (shouldBailoutWithPendingOperations()) { - return; - } + var isStateOrReducer = boundHasOwnProperty('pending') && boundHasOwnProperty('dispatch') && typeof queue.dispatch === 'function'; // Detect useSyncExternalStore() - var operations = new Array(3 + pendingOperations.length); - operations[0] = rendererID; - operations[1] = currentRootID; - operations[2] = 0; + var isSyncExternalStore = boundHasOwnProperty('value') && boundHasOwnProperty('getSnapshot') && typeof queue.getSnapshot === 'function'; // These are the only types of hooks that can schedule an update. - for (var j = 0; j < pendingOperations.length; j++) { - operations[3 + j] = pendingOperations[j]; - } - flushOrQueueOperations(operations); - pendingOperations.length = 0; - }, 1000); - } - function reevaluateErrorsAndWarnings() { - fibersWithChangedErrorOrWarningCounts.clear(); - fiberIDToErrorsMap.forEach(function (countMap, fiberID) { - var fiber = idToArbitraryFiberMap.get(fiberID); - if (fiber != null) { - fibersWithChangedErrorOrWarningCounts.add(fiber); - } - }); - fiberIDToWarningsMap.forEach(function (countMap, fiberID) { - var fiber = idToArbitraryFiberMap.get(fiberID); - if (fiber != null) { - fibersWithChangedErrorOrWarningCounts.add(fiber); - } - }); - recordPendingErrorsAndWarnings(); - } - function mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { - var newCount = 0; - var messageCountMap = fiberIDToMessageCountMap.get(fiberID); - var pendingMessageCountMap = pendingFiberToMessageCountMap.get(fiber); - if (pendingMessageCountMap != null) { - if (messageCountMap == null) { - messageCountMap = pendingMessageCountMap; - fiberIDToMessageCountMap.set(fiberID, pendingMessageCountMap); - } else { - var refinedMessageCountMap = messageCountMap; - pendingMessageCountMap.forEach(function (pendingCount, message) { - var previousCount = refinedMessageCountMap.get(message) || 0; - refinedMessageCountMap.set(message, previousCount + pendingCount); - }); + return isStateOrReducer || isSyncExternalStore; } - } - if (!shouldFilterFiber(fiber)) { - if (messageCountMap != null) { - messageCountMap.forEach(function (count) { - newCount += count; - }); + function didStatefulHookChange(prev, next) { + var prevMemoizedState = prev.memoizedState; + var nextMemoizedState = next.memoizedState; + if (isHookThatCanScheduleUpdate(prev)) { + return prevMemoizedState !== nextMemoizedState; + } + return false; } - } - pendingFiberToMessageCountMap.delete(fiber); - return newCount; - } - function recordPendingErrorsAndWarnings() { - clearPendingErrorsAndWarningsAfterDelay(); - fibersWithChangedErrorOrWarningCounts.forEach(function (fiber) { - var fiberID = getFiberIDUnsafe(fiber); - if (fiberID === null) { - } else { - var errorCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); - var warningCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); - pushOperation(constants["q"]); - pushOperation(fiberID); - pushOperation(errorCount); - pushOperation(warningCount); + function getChangedHooksIndices(prev, next) { + if (prev == null || next == null) { + return null; + } + var indices = []; + var index = 0; + if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { + while (next !== null) { + if (didStatefulHookChange(prev, next)) { + indices.push(index); + } + next = next.next; + prev = prev.next; + index++; + } + } + return indices; } + function getChangedKeys(prev, next) { + if (prev == null || next == null) { + return null; + } // We can't report anything meaningful for hooks changes. - pendingFiberToErrorsMap.delete(fiber); - pendingFiberToWarningsMap.delete(fiber); - }); - fibersWithChangedErrorOrWarningCounts.clear(); - } - function flushPendingEvents(root) { - recordPendingErrorsAndWarnings(); - if (shouldBailoutWithPendingOperations()) { - return; - } - var numUnmountIDs = pendingRealUnmountedIDs.length + pendingSimulatedUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); - var operations = new Array( - 2 + - 1 + - pendingStringTableLength + ( - numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + - pendingOperations.length); - - var i = 0; - operations[i++] = rendererID; - operations[i++] = currentRootID; + if (next.hasOwnProperty('baseState') && next.hasOwnProperty('memoizedState') && next.hasOwnProperty('next') && next.hasOwnProperty('queue')) { + return null; + } + var keys = new Set([].concat(renderer_toConsumableArray(Object.keys(prev)), renderer_toConsumableArray(Object.keys(next)))); + var changedKeys = []; // eslint-disable-next-line no-for-of-loops/no-for-of-loops - operations[i++] = pendingStringTableLength; - pendingStringTable.forEach(function (entry, stringKey) { - var encodedString = entry.encodedString; + var _iterator5 = _createForOfIteratorHelper(keys), + _step5; + try { + for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { + var key = _step5.value; + if (prev[key] !== next[key]) { + changedKeys.push(key); + } + } + } catch (err) { + _iterator5.e(err); + } finally { + _iterator5.f(); + } + return changedKeys; + } // eslint-disable-next-line no-unused-vars + + function didFiberRender(prevFiber, nextFiber) { + switch (nextFiber.tag) { + case ClassComponent: + case FunctionComponent: + case ContextConsumer: + case MemoComponent: + case SimpleMemoComponent: + case ForwardRef: + // For types that execute user code, we check PerformedWork effect. + // We don't reflect bailouts (either referential or sCU) in DevTools. + // TODO: This flag is a leaked implementation detail. Once we start + // releasing DevTools in lockstep with React, we should import a + // function from the reconciler instead. + var PerformedWork = 1; + return (getFiberFlags(nextFiber) & PerformedWork) === PerformedWork; + // Note: ContextConsumer only gets PerformedWork effect in 16.3.3+ + // so it won't get highlighted with React 16.3.0 to 16.3.2. - var length = encodedString.length; - operations[i++] = length; - for (var j = 0; j < length; j++) { - operations[i + j] = encodedString[j]; + default: + // For host components and other types, we compare inputs + // to determine whether something is an update. + return prevFiber.memoizedProps !== nextFiber.memoizedProps || prevFiber.memoizedState !== nextFiber.memoizedState || prevFiber.ref !== nextFiber.ref; + } } - i += length; - }); - if (numUnmountIDs > 0) { - operations[i++] = constants["m"]; - - operations[i++] = numUnmountIDs; - - for (var j = pendingRealUnmountedIDs.length - 1; j >= 0; j--) { - operations[i++] = pendingRealUnmountedIDs[j]; + var pendingOperations = []; + var pendingRealUnmountedIDs = []; + var pendingSimulatedUnmountedIDs = []; + var pendingOperationsQueue = []; + var pendingStringTable = new Map(); + var pendingStringTableLength = 0; + var pendingUnmountedRootID = null; + function pushOperation(op) { + if (false) {} + pendingOperations.push(op); + } + function shouldBailoutWithPendingOperations() { + if (isProfiling) { + if (currentCommitProfilingMetadata != null && currentCommitProfilingMetadata.durations.length > 0) { + return false; + } + } + return pendingOperations.length === 0 && pendingRealUnmountedIDs.length === 0 && pendingSimulatedUnmountedIDs.length === 0 && pendingUnmountedRootID === null; } - - for (var _j = 0; _j < pendingSimulatedUnmountedIDs.length; _j++) { - operations[i + _j] = pendingSimulatedUnmountedIDs[_j]; + function flushOrQueueOperations(operations) { + if (shouldBailoutWithPendingOperations()) { + return; + } + if (pendingOperationsQueue !== null) { + pendingOperationsQueue.push(operations); + } else { + hook.emit('operations', operations); + } } - i += pendingSimulatedUnmountedIDs.length; - - if (pendingUnmountedRootID !== null) { - operations[i] = pendingUnmountedRootID; - i++; + var flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + function clearPendingErrorsAndWarningsAfterDelay() { + if (flushPendingErrorsAndWarningsAfterDelayTimeoutID !== null) { + clearTimeout(flushPendingErrorsAndWarningsAfterDelayTimeoutID); + flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + } } - } - - for (var _j2 = 0; _j2 < pendingOperations.length; _j2++) { - operations[i + _j2] = pendingOperations[_j2]; - } - i += pendingOperations.length; - - flushOrQueueOperations(operations); + function flushPendingErrorsAndWarningsAfterDelay() { + clearPendingErrorsAndWarningsAfterDelay(); + flushPendingErrorsAndWarningsAfterDelayTimeoutID = setTimeout(function () { + flushPendingErrorsAndWarningsAfterDelayTimeoutID = null; + if (pendingOperations.length > 0) { + // On the off chance that something else has pushed pending operations, + // we should bail on warnings; it's probably not safe to push midway. + return; + } + recordPendingErrorsAndWarnings(); + if (shouldBailoutWithPendingOperations()) { + // No warnings or errors to flush; we can bail out early here too. + return; + } // We can create a smaller operations array than flushPendingEvents() + // because we only need to flush warning and error counts. + // Only a few pieces of fixed information are required up front. - pendingOperations.length = 0; - pendingRealUnmountedIDs.length = 0; - pendingSimulatedUnmountedIDs.length = 0; - pendingUnmountedRootID = null; - pendingStringTable.clear(); - pendingStringTableLength = 0; - } - function getStringID(string) { - if (string === null) { - return 0; - } - var existingEntry = pendingStringTable.get(string); - if (existingEntry !== undefined) { - return existingEntry.id; - } - var id = pendingStringTable.size + 1; - var encodedString = Object(utils["m"])(string); - pendingStringTable.set(string, { - encodedString: encodedString, - id: id - }); + var operations = new Array(3 + pendingOperations.length); + operations[0] = rendererID; + operations[1] = currentRootID; + operations[2] = 0; // String table size - pendingStringTableLength += encodedString.length + 1; - return id; - } - function recordMount(fiber, parentFiber) { - var isRoot = fiber.tag === HostRoot; - var id = getOrGenerateFiberID(fiber); - if (constants["s"]) { - debug('recordMount()', fiber, parentFiber); - } - var hasOwnerMetadata = fiber.hasOwnProperty('_debugOwner'); - var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); + for (var j = 0; j < pendingOperations.length; j++) { + operations[3 + j] = pendingOperations[j]; + } + flushOrQueueOperations(operations); + pendingOperations.length = 0; + }, 1000); + } + function reevaluateErrorsAndWarnings() { + fibersWithChangedErrorOrWarningCounts.clear(); + fiberIDToErrorsMap.forEach(function (countMap, fiberID) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(fiber); + } + }); + fiberIDToWarningsMap.forEach(function (countMap, fiberID) { + var fiber = idToArbitraryFiberMap.get(fiberID); + if (fiber != null) { + fibersWithChangedErrorOrWarningCounts.add(fiber); + } + }); + recordPendingErrorsAndWarnings(); + } + function mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToMessageCountMap, fiberIDToMessageCountMap) { + var newCount = 0; + var messageCountMap = fiberIDToMessageCountMap.get(fiberID); + var pendingMessageCountMap = pendingFiberToMessageCountMap.get(fiber); + if (pendingMessageCountMap != null) { + if (messageCountMap == null) { + messageCountMap = pendingMessageCountMap; + fiberIDToMessageCountMap.set(fiberID, pendingMessageCountMap); + } else { + // This Flow refinement should not be necessary and yet... + var refinedMessageCountMap = messageCountMap; + pendingMessageCountMap.forEach(function (pendingCount, message) { + var previousCount = refinedMessageCountMap.get(message) || 0; + refinedMessageCountMap.set(message, previousCount + pendingCount); + }); + } + } + if (!shouldFilterFiber(fiber)) { + if (messageCountMap != null) { + messageCountMap.forEach(function (count) { + newCount += count; + }); + } + } + pendingFiberToMessageCountMap.delete(fiber); + return newCount; + } + function recordPendingErrorsAndWarnings() { + clearPendingErrorsAndWarningsAfterDelay(); + fibersWithChangedErrorOrWarningCounts.forEach(function (fiber) { + var fiberID = getFiberIDUnsafe(fiber); + if (fiberID === null) {// Don't send updates for Fibers that didn't mount due to e.g. Suspense or an error boundary. + } else { + var errorCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap); + var warningCount = mergeMapsAndGetCountHelper(fiber, fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap); + pushOperation(TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS); + pushOperation(fiberID); + pushOperation(errorCount); + pushOperation(warningCount); + } // Always clean up so that we don't leak. + + pendingFiberToErrorsMap.delete(fiber); + pendingFiberToWarningsMap.delete(fiber); + }); + fibersWithChangedErrorOrWarningCounts.clear(); + } + function flushPendingEvents(root) { + // Add any pending errors and warnings to the operations array. + // We do this just before flushing, so we can ignore errors for no-longer-mounted Fibers. + recordPendingErrorsAndWarnings(); + if (shouldBailoutWithPendingOperations()) { + // If we aren't profiling, we can just bail out here. + // No use sending an empty update over the bridge. + // + // The Profiler stores metadata for each commit and reconstructs the app tree per commit using: + // (1) an initial tree snapshot and + // (2) the operations array for each commit + // Because of this, it's important that the operations and metadata arrays align, + // So it's important not to omit even empty operations while profiling is active. + return; + } + var numUnmountIDs = pendingRealUnmountedIDs.length + pendingSimulatedUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); + var operations = new Array( + // Identify which renderer this update is coming from. + 2 + + // [rendererID, rootFiberID] + // How big is the string table? + 1 + + // [stringTableLength] + // Then goes the actual string table. + pendingStringTableLength + ( + // All unmounts are batched in a single message. + // [TREE_OPERATION_REMOVE, removedIDLength, ...ids] + numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + + // Regular operations + pendingOperations.length); // Identify which renderer this update is coming from. + // This enables roots to be mapped to renderers, + // Which in turn enables fiber props, states, and hooks to be inspected. - var profilingFlags = 0; - if (isProfilingSupported) { - profilingFlags = constants["g"]; + var i = 0; + operations[i++] = rendererID; + operations[i++] = currentRootID; // Now fill in the string table. + // [stringTableLength, str1Length, ...str1, str2Length, ...str2, ...] + + operations[i++] = pendingStringTableLength; + pendingStringTable.forEach(function (entry, stringKey) { + var encodedString = entry.encodedString; // Don't use the string length. + // It won't work for multibyte characters (like emoji). + + var length = encodedString.length; + operations[i++] = length; + for (var j = 0; j < length; j++) { + operations[i + j] = encodedString[j]; + } + i += length; + }); + if (numUnmountIDs > 0) { + // All unmounts except roots are batched in a single message. + operations[i++] = TREE_OPERATION_REMOVE; // The first number is how many unmounted IDs we're gonna send. + + operations[i++] = numUnmountIDs; // Fill in the real unmounts in the reverse order. + // They were inserted parents-first by React, but we want children-first. + // So we traverse our array backwards. + + for (var j = pendingRealUnmountedIDs.length - 1; j >= 0; j--) { + operations[i++] = pendingRealUnmountedIDs[j]; + } // Fill in the simulated unmounts (hidden Suspense subtrees) in their order. + // (We want children to go before parents.) + // They go *after* the real unmounts because we know for sure they won't be + // children of already pushed "real" IDs. If they were, we wouldn't be able + // to discover them during the traversal, as they would have been deleted. + + for (var _j = 0; _j < pendingSimulatedUnmountedIDs.length; _j++) { + operations[i + _j] = pendingSimulatedUnmountedIDs[_j]; + } + i += pendingSimulatedUnmountedIDs.length; // The root ID should always be unmounted last. - if (typeof injectProfilingHooks === 'function') { - profilingFlags |= constants["h"]; - } - } + if (pendingUnmountedRootID !== null) { + operations[i] = pendingUnmountedRootID; + i++; + } + } // Fill in the rest of the operations. - if (isRoot) { - pushOperation(constants["l"]); - pushOperation(id); - pushOperation(types["m"]); - pushOperation((fiber.mode & StrictModeBits) !== 0 ? 1 : 0); - pushOperation(profilingFlags); - pushOperation(StrictModeBits !== 0 ? 1 : 0); - pushOperation(hasOwnerMetadata ? 1 : 0); - if (isProfiling) { - if (displayNamesByRootID !== null) { - displayNamesByRootID.set(id, getDisplayNameForRoot(fiber)); + for (var _j2 = 0; _j2 < pendingOperations.length; _j2++) { + operations[i + _j2] = pendingOperations[_j2]; } - } - } else { - var key = fiber.key; - var displayName = getDisplayNameForFiber(fiber); - var elementType = getElementTypeForFiber(fiber); - var _debugOwner = fiber._debugOwner; - - var ownerID = _debugOwner != null ? getOrGenerateFiberID(_debugOwner) : 0; - var parentID = parentFiber ? getFiberIDThrows(parentFiber) : 0; - var displayNameStringID = getStringID(displayName); - - var keyString = key === null ? null : String(key); - var keyStringID = getStringID(keyString); - pushOperation(constants["l"]); - pushOperation(id); - pushOperation(elementType); - pushOperation(parentID); - pushOperation(ownerID); - pushOperation(displayNameStringID); - pushOperation(keyStringID); - - if ((fiber.mode & StrictModeBits) !== 0 && (parentFiber.mode & StrictModeBits) === 0) { - pushOperation(constants["p"]); - pushOperation(id); - pushOperation(types["q"]); - } - } + i += pendingOperations.length; // Let the frontend know about tree operations. - if (isProfilingSupported) { - idToRootMap.set(id, currentRootID); - recordProfilingDurations(fiber); - } - } - function recordUnmount(fiber, isSimulated) { - if (constants["s"]) { - debug('recordUnmount()', fiber, null, isSimulated ? 'unmount is simulated' : ''); - } - if (trackedPathMatchFiber !== null) { - if (fiber === trackedPathMatchFiber || fiber === trackedPathMatchFiber.alternate) { - setTrackedPath(null); - } - } - var unsafeID = getFiberIDUnsafe(fiber); - if (unsafeID === null) { - return; - } + flushOrQueueOperations(operations); // Reset all of the pending state now that we've told the frontend about it. - var id = unsafeID; - var isRoot = fiber.tag === HostRoot; - if (isRoot) { - pendingUnmountedRootID = id; - } else if (!shouldFilterFiber(fiber)) { - if (isSimulated) { - pendingSimulatedUnmountedIDs.push(id); - } else { - pendingRealUnmountedIDs.push(id); - } - } - if (!fiber._debugNeedsRemount) { - untrackFiberID(fiber); - var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); - if (isProfilingSupported) { - idToRootMap.delete(id); - idToTreeBaseDurationMap.delete(id); - } - } - } - function mountFiberRecursively(firstChild, parentFiber, traverseSiblings, traceNearestHostComponentUpdate) { - var fiber = firstChild; - while (fiber !== null) { - getOrGenerateFiberID(fiber); - if (constants["s"]) { - debug('mountFiberRecursively()', fiber, parentFiber); + pendingOperations.length = 0; + pendingRealUnmountedIDs.length = 0; + pendingSimulatedUnmountedIDs.length = 0; + pendingUnmountedRootID = null; + pendingStringTable.clear(); + pendingStringTableLength = 0; } - - var mightSiblingsBeOnTrackedPath = updateTrackedPathStateBeforeMount(fiber); - var shouldIncludeInTree = !shouldFilterFiber(fiber); - if (shouldIncludeInTree) { - recordMount(fiber, parentFiber); + function getStringID(string) { + if (string === null) { + return 0; + } + var existingEntry = pendingStringTable.get(string); + if (existingEntry !== undefined) { + return existingEntry.id; + } + var id = pendingStringTable.size + 1; + var encodedString = utfEncodeString(string); + pendingStringTable.set(string, { + encodedString: encodedString, + id: id + }); // The string table total length needs to account both for the string length, + // and for the array item that contains the length itself. + // + // Don't use string length for this table. + // It won't work for multibyte characters (like emoji). + + pendingStringTableLength += encodedString.length + 1; + return id; } - if (traceUpdatesEnabled) { - if (traceNearestHostComponentUpdate) { - var elementType = getElementTypeForFiber(fiber); - - if (elementType === types["i"]) { - traceUpdatesForNodes.add(fiber.stateNode); - traceNearestHostComponentUpdate = false; + function recordMount(fiber, parentFiber) { + var isRoot = fiber.tag === HostRoot; + var id = getOrGenerateFiberID(fiber); + if (__DEBUG__) { + debug('recordMount()', fiber, parentFiber); + } + var hasOwnerMetadata = fiber.hasOwnProperty('_debugOwner'); + var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); // Adding a new field here would require a bridge protocol version bump (a backwads breaking change). + // Instead let's re-purpose a pre-existing field to carry more information. + + var profilingFlags = 0; + if (isProfilingSupported) { + profilingFlags = PROFILING_FLAG_BASIC_SUPPORT; + if (typeof injectProfilingHooks === 'function') { + profilingFlags |= PROFILING_FLAG_TIMELINE_SUPPORT; } } - } - - var isSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent; - if (isSuspense) { - var isTimedOut = fiber.memoizedState !== null; - if (isTimedOut) { - var primaryChildFragment = fiber.child; - var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; - var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; - if (fallbackChild !== null) { - mountFiberRecursively(fallbackChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + if (isRoot) { + pushOperation(TREE_OPERATION_ADD); + pushOperation(id); + pushOperation(ElementTypeRoot); + pushOperation((fiber.mode & StrictModeBits) !== 0 ? 1 : 0); + pushOperation(profilingFlags); + pushOperation(StrictModeBits !== 0 ? 1 : 0); + pushOperation(hasOwnerMetadata ? 1 : 0); + if (isProfiling) { + if (displayNamesByRootID !== null) { + displayNamesByRootID.set(id, getDisplayNameForRoot(fiber)); + } } } else { - var primaryChild = null; - var areSuspenseChildrenConditionallyWrapped = OffscreenComponent === -1; - if (areSuspenseChildrenConditionallyWrapped) { - primaryChild = fiber.child; - } else if (fiber.child !== null) { - primaryChild = fiber.child.child; + var key = fiber.key; + var displayName = getDisplayNameForFiber(fiber); + var elementType = getElementTypeForFiber(fiber); + var _debugOwner = fiber._debugOwner; // Ideally we should call getFiberIDThrows() for _debugOwner, + // since owners are almost always higher in the tree (and so have already been processed), + // but in some (rare) instances reported in open source, a descendant mounts before an owner. + // Since this is a DEV only field it's probably okay to also just lazily generate and ID here if needed. + // See https://github.com/facebook/react/issues/21445 + + var ownerID = _debugOwner != null ? getOrGenerateFiberID(_debugOwner) : 0; + var parentID = parentFiber ? getFiberIDThrows(parentFiber) : 0; + var displayNameStringID = getStringID(displayName); // This check is a guard to handle a React element that has been modified + // in such a way as to bypass the default stringification of the "key" property. + + var keyString = key === null ? null : String(key); + var keyStringID = getStringID(keyString); + pushOperation(TREE_OPERATION_ADD); + pushOperation(id); + pushOperation(elementType); + pushOperation(parentID); + pushOperation(ownerID); + pushOperation(displayNameStringID); + pushOperation(keyStringID); // If this subtree has a new mode, let the frontend know. + + if ((fiber.mode & StrictModeBits) !== 0 && (parentFiber.mode & StrictModeBits) === 0) { + pushOperation(TREE_OPERATION_SET_SUBTREE_MODE); + pushOperation(id); + pushOperation(StrictMode); + } + } + if (isProfilingSupported) { + idToRootMap.set(id, currentRootID); + recordProfilingDurations(fiber); + } + } + function recordUnmount(fiber, isSimulated) { + if (__DEBUG__) { + debug('recordUnmount()', fiber, null, isSimulated ? 'unmount is simulated' : ''); + } + if (trackedPathMatchFiber !== null) { + // We're in the process of trying to restore previous selection. + // If this fiber matched but is being unmounted, there's no use trying. + // Reset the state so we don't keep holding onto it. + if (fiber === trackedPathMatchFiber || fiber === trackedPathMatchFiber.alternate) { + setTrackedPath(null); } - if (primaryChild !== null) { - mountFiberRecursively(primaryChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + var unsafeID = getFiberIDUnsafe(fiber); + if (unsafeID === null) { + // If we've never seen this Fiber, it might be inside of a legacy render Suspense fragment (so the store is not even aware of it). + // In that case we can just ignore it or it will cause errors later on. + // One example of this is a Lazy component that never resolves before being unmounted. + // + // This also might indicate a Fast Refresh force-remount scenario. + // + // TODO: This is fragile and can obscure actual bugs. + return; + } // Flow refinement. + + var id = unsafeID; + var isRoot = fiber.tag === HostRoot; + if (isRoot) { + // Roots must be removed only after all children (pending and simulated) have been removed. + // So we track it separately. + pendingUnmountedRootID = id; + } else if (!shouldFilterFiber(fiber)) { + // To maintain child-first ordering, + // we'll push it into one of these queues, + // and later arrange them in the correct order. + if (isSimulated) { + pendingSimulatedUnmountedIDs.push(id); + } else { + pendingRealUnmountedIDs.push(id); } } - } else { - if (fiber.child !== null) { - mountFiberRecursively(fiber.child, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + if (!fiber._debugNeedsRemount) { + untrackFiberID(fiber); + var isProfilingSupported = fiber.hasOwnProperty('treeBaseDuration'); + if (isProfilingSupported) { + idToRootMap.delete(id); + idToTreeBaseDurationMap.delete(id); + } } } + function mountFiberRecursively(firstChild, parentFiber, traverseSiblings, traceNearestHostComponentUpdate) { + // Iterate over siblings rather than recursing. + // This reduces the chance of stack overflow for wide trees (e.g. lists with many items). + var fiber = firstChild; + while (fiber !== null) { + // Generate an ID even for filtered Fibers, in case it's needed later (e.g. for Profiling). + getOrGenerateFiberID(fiber); + if (__DEBUG__) { + debug('mountFiberRecursively()', fiber, parentFiber); + } // If we have the tree selection from previous reload, try to match this Fiber. + // Also remember whether to do the same for siblings. + + var mightSiblingsBeOnTrackedPath = updateTrackedPathStateBeforeMount(fiber); + var shouldIncludeInTree = !shouldFilterFiber(fiber); + if (shouldIncludeInTree) { + recordMount(fiber, parentFiber); + } + if (traceUpdatesEnabled) { + if (traceNearestHostComponentUpdate) { + var elementType = getElementTypeForFiber(fiber); // If an ancestor updated, we should mark the nearest host nodes for highlighting. - updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath); - fiber = traverseSiblings ? fiber.sibling : null; - } - } - - function unmountFiberChildrenRecursively(fiber) { - if (constants["s"]) { - debug('unmountFiberChildrenRecursively()', fiber); - } + if (elementType === ElementTypeHostComponent) { + traceUpdatesForNodes.add(fiber.stateNode); + traceNearestHostComponentUpdate = false; + } + } // We intentionally do not re-enable the traceNearestHostComponentUpdate flag in this branch, + // because we don't want to highlight every host node inside of a newly mounted subtree. + } - var isTimedOutSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent && fiber.memoizedState !== null; - var child = fiber.child; - if (isTimedOutSuspense) { - var primaryChildFragment = fiber.child; - var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + var isSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent; + if (isSuspense) { + var isTimedOut = fiber.memoizedState !== null; + if (isTimedOut) { + // Special case: if Suspense mounts in a timed-out state, + // get the fallback child from the inner fragment and mount + // it as if it was our own child. Updates handle this too. + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; + if (fallbackChild !== null) { + mountFiberRecursively(fallbackChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } else { + var primaryChild = null; + var areSuspenseChildrenConditionallyWrapped = OffscreenComponent === -1; + if (areSuspenseChildrenConditionallyWrapped) { + primaryChild = fiber.child; + } else if (fiber.child !== null) { + primaryChild = fiber.child.child; + } + if (primaryChild !== null) { + mountFiberRecursively(primaryChild, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } + } else { + if (fiber.child !== null) { + mountFiberRecursively(fiber.child, shouldIncludeInTree ? fiber : parentFiber, true, traceNearestHostComponentUpdate); + } + } // We're exiting this Fiber now, and entering its siblings. + // If we have selection to restore, we might need to re-activate tracking. - child = fallbackChildFragment ? fallbackChildFragment.child : null; - } - while (child !== null) { - if (child.return !== null) { - unmountFiberChildrenRecursively(child); - recordUnmount(child, true); - } - child = child.sibling; - } - } - function recordProfilingDurations(fiber) { - var id = getFiberIDThrows(fiber); - var actualDuration = fiber.actualDuration, - treeBaseDuration = fiber.treeBaseDuration; - idToTreeBaseDurationMap.set(id, treeBaseDuration || 0); - if (isProfiling) { - var alternate = fiber.alternate; + updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath); + fiber = traverseSiblings ? fiber.sibling : null; + } + } // We use this to simulate unmounting for Suspense trees + // when we switch from primary to fallback. + + function unmountFiberChildrenRecursively(fiber) { + if (__DEBUG__) { + debug('unmountFiberChildrenRecursively()', fiber); + } // We might meet a nested Suspense on our way. + + var isTimedOutSuspense = fiber.tag === ReactTypeOfWork.SuspenseComponent && fiber.memoizedState !== null; + var child = fiber.child; + if (isTimedOutSuspense) { + // If it's showing fallback tree, let's traverse it instead. + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; // Skip over to the real Fiber child. - if (alternate == null || treeBaseDuration !== alternate.treeBaseDuration) { - var convertedTreeBaseDuration = Math.floor((treeBaseDuration || 0) * 1000); - pushOperation(constants["r"]); - pushOperation(id); - pushOperation(convertedTreeBaseDuration); + child = fallbackChildFragment ? fallbackChildFragment.child : null; + } + while (child !== null) { + // Record simulated unmounts children-first. + // We skip nodes without return because those are real unmounts. + if (child.return !== null) { + unmountFiberChildrenRecursively(child); + recordUnmount(child, true); + } + child = child.sibling; + } } - if (alternate == null || didFiberRender(alternate, fiber)) { - if (actualDuration != null) { - var selfDuration = actualDuration; - var child = fiber.child; - while (child !== null) { - selfDuration -= child.actualDuration || 0; - child = child.sibling; + function recordProfilingDurations(fiber) { + var id = getFiberIDThrows(fiber); + var actualDuration = fiber.actualDuration, + treeBaseDuration = fiber.treeBaseDuration; + idToTreeBaseDurationMap.set(id, treeBaseDuration || 0); + if (isProfiling) { + var alternate = fiber.alternate; // It's important to update treeBaseDuration even if the current Fiber did not render, + // because it's possible that one of its descendants did. + + if (alternate == null || treeBaseDuration !== alternate.treeBaseDuration) { + // Tree base duration updates are included in the operations typed array. + // So we have to convert them from milliseconds to microseconds so we can send them as ints. + var convertedTreeBaseDuration = Math.floor((treeBaseDuration || 0) * 1000); + pushOperation(TREE_OPERATION_UPDATE_TREE_BASE_DURATION); + pushOperation(id); + pushOperation(convertedTreeBaseDuration); } - - var metadata = currentCommitProfilingMetadata; - metadata.durations.push(id, actualDuration, selfDuration); - metadata.maxActualDuration = Math.max(metadata.maxActualDuration, actualDuration); - if (recordChangeDescriptions) { - var changeDescription = getChangeDescription(alternate, fiber); - if (changeDescription !== null) { - if (metadata.changeDescriptions !== null) { - metadata.changeDescriptions.set(id, changeDescription); + if (alternate == null || didFiberRender(alternate, fiber)) { + if (actualDuration != null) { + // The actual duration reported by React includes time spent working on children. + // This is useful information, but it's also useful to be able to exclude child durations. + // The frontend can't compute this, since the immediate children may have been filtered out. + // So we need to do this on the backend. + // Note that this calculated self duration is not the same thing as the base duration. + // The two are calculated differently (tree duration does not accumulate). + var selfDuration = actualDuration; + var child = fiber.child; + while (child !== null) { + selfDuration -= child.actualDuration || 0; + child = child.sibling; + } // If profiling is active, store durations for elements that were rendered during the commit. + // Note that we should do this for any fiber we performed work on, regardless of its actualDuration value. + // In some cases actualDuration might be 0 for fibers we worked on (particularly if we're using Date.now) + // In other cases (e.g. Memo) actualDuration might be greater than 0 even if we "bailed out". + + var metadata = currentCommitProfilingMetadata; + metadata.durations.push(id, actualDuration, selfDuration); + metadata.maxActualDuration = Math.max(metadata.maxActualDuration, actualDuration); + if (recordChangeDescriptions) { + var changeDescription = getChangeDescription(alternate, fiber); + if (changeDescription !== null) { + if (metadata.changeDescriptions !== null) { + metadata.changeDescriptions.set(id, changeDescription); + } + } + updateContextsForFiber(fiber); } } - updateContextsForFiber(fiber); } } } - } - } - function recordResetChildren(fiber, childSet) { - if (constants["s"]) { - debug('recordResetChildren()', childSet, fiber); - } + function recordResetChildren(fiber, childSet) { + if (__DEBUG__) { + debug('recordResetChildren()', childSet, fiber); + } // The frontend only really cares about the displayName, key, and children. + // The first two don't really change, so we are only concerned with the order of children here. + // This is trickier than a simple comparison though, since certain types of fibers are filtered. - var nextChildren = []; + var nextChildren = []; // This is a naive implementation that shallowly recourses children. + // We might want to revisit this if it proves to be too inefficient. - var child = childSet; - while (child !== null) { - findReorderedChildrenRecursively(child, nextChildren); - child = child.sibling; - } - var numChildren = nextChildren.length; - if (numChildren < 2) { - return; - } - pushOperation(constants["o"]); - pushOperation(getFiberIDThrows(fiber)); - pushOperation(numChildren); - for (var i = 0; i < nextChildren.length; i++) { - pushOperation(nextChildren[i]); - } - } - function findReorderedChildrenRecursively(fiber, nextChildren) { - if (!shouldFilterFiber(fiber)) { - nextChildren.push(getFiberIDThrows(fiber)); - } else { - var child = fiber.child; - var isTimedOutSuspense = fiber.tag === SuspenseComponent && fiber.memoizedState !== null; - if (isTimedOutSuspense) { - var primaryChildFragment = fiber.child; - var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; - var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; - if (fallbackChild !== null) { - child = fallbackChild; + var child = childSet; + while (child !== null) { + findReorderedChildrenRecursively(child, nextChildren); + child = child.sibling; } - } - while (child !== null) { - findReorderedChildrenRecursively(child, nextChildren); - child = child.sibling; - } - } - } - - function updateFiberRecursively(nextFiber, prevFiber, parentFiber, traceNearestHostComponentUpdate) { - var id = getOrGenerateFiberID(nextFiber); - if (constants["s"]) { - debug('updateFiberRecursively()', nextFiber, parentFiber); - } - if (traceUpdatesEnabled) { - var elementType = getElementTypeForFiber(nextFiber); - if (traceNearestHostComponentUpdate) { - if (elementType === types["i"]) { - traceUpdatesForNodes.add(nextFiber.stateNode); - traceNearestHostComponentUpdate = false; + var numChildren = nextChildren.length; + if (numChildren < 2) { + // No need to reorder. + return; } - } else { - if (elementType === types["h"] || elementType === types["e"] || elementType === types["f"] || elementType === types["j"] || elementType === types["g"]) { - traceNearestHostComponentUpdate = didFiberRender(prevFiber, nextFiber); + pushOperation(TREE_OPERATION_REORDER_CHILDREN); + pushOperation(getFiberIDThrows(fiber)); + pushOperation(numChildren); + for (var i = 0; i < nextChildren.length; i++) { + pushOperation(nextChildren[i]); } } - } - if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id && didFiberRender(prevFiber, nextFiber)) { - hasElementUpdatedSinceLastInspected = true; - } - var shouldIncludeInTree = !shouldFilterFiber(nextFiber); - var isSuspense = nextFiber.tag === SuspenseComponent; - var shouldResetChildren = false; - - var prevDidTimeout = isSuspense && prevFiber.memoizedState !== null; - var nextDidTimeOut = isSuspense && nextFiber.memoizedState !== null; - - if (prevDidTimeout && nextDidTimeOut) { - var nextFiberChild = nextFiber.child; - var nextFallbackChildSet = nextFiberChild ? nextFiberChild.sibling : null; - - var prevFiberChild = prevFiber.child; - var prevFallbackChildSet = prevFiberChild ? prevFiberChild.sibling : null; - if (nextFallbackChildSet != null && prevFallbackChildSet != null && updateFiberRecursively(nextFallbackChildSet, prevFallbackChildSet, nextFiber, traceNearestHostComponentUpdate)) { - shouldResetChildren = true; - } - } else if (prevDidTimeout && !nextDidTimeOut) { - var nextPrimaryChildSet = nextFiber.child; - if (nextPrimaryChildSet !== null) { - mountFiberRecursively(nextPrimaryChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); - } - shouldResetChildren = true; - } else if (!prevDidTimeout && nextDidTimeOut) { - unmountFiberChildrenRecursively(prevFiber); - - var _nextFiberChild = nextFiber.child; - var _nextFallbackChildSet = _nextFiberChild ? _nextFiberChild.sibling : null; - if (_nextFallbackChildSet != null) { - mountFiberRecursively(_nextFallbackChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); - shouldResetChildren = true; - } - } else { - if (nextFiber.child !== prevFiber.child) { - var nextChild = nextFiber.child; - var prevChildAtSameIndex = prevFiber.child; - while (nextChild) { - if (nextChild.alternate) { - var prevChild = nextChild.alternate; - if (updateFiberRecursively(nextChild, prevChild, shouldIncludeInTree ? nextFiber : parentFiber, traceNearestHostComponentUpdate)) { - shouldResetChildren = true; + function findReorderedChildrenRecursively(fiber, nextChildren) { + if (!shouldFilterFiber(fiber)) { + nextChildren.push(getFiberIDThrows(fiber)); + } else { + var child = fiber.child; + var isTimedOutSuspense = fiber.tag === SuspenseComponent && fiber.memoizedState !== null; + if (isTimedOutSuspense) { + // Special case: if Suspense mounts in a timed-out state, + // get the fallback child from the inner fragment, + // and skip over the primary child. + var primaryChildFragment = fiber.child; + var fallbackChildFragment = primaryChildFragment ? primaryChildFragment.sibling : null; + var fallbackChild = fallbackChildFragment ? fallbackChildFragment.child : null; + if (fallbackChild !== null) { + child = fallbackChild; } + } + while (child !== null) { + findReorderedChildrenRecursively(child, nextChildren); + child = child.sibling; + } + } + } // Returns whether closest unfiltered fiber parent needs to reset its child list. - if (prevChild !== prevChildAtSameIndex) { - shouldResetChildren = true; + function updateFiberRecursively(nextFiber, prevFiber, parentFiber, traceNearestHostComponentUpdate) { + var id = getOrGenerateFiberID(nextFiber); + if (__DEBUG__) { + debug('updateFiberRecursively()', nextFiber, parentFiber); + } + if (traceUpdatesEnabled) { + var elementType = getElementTypeForFiber(nextFiber); + if (traceNearestHostComponentUpdate) { + // If an ancestor updated, we should mark the nearest host nodes for highlighting. + if (elementType === ElementTypeHostComponent) { + traceUpdatesForNodes.add(nextFiber.stateNode); + traceNearestHostComponentUpdate = false; } } else { - mountFiberRecursively(nextChild, shouldIncludeInTree ? nextFiber : parentFiber, false, traceNearestHostComponentUpdate); + if (elementType === types_ElementTypeFunction || elementType === types_ElementTypeClass || elementType === ElementTypeContext || elementType === types_ElementTypeMemo || elementType === types_ElementTypeForwardRef) { + // Otherwise if this is a traced ancestor, flag for the nearest host descendant(s). + traceNearestHostComponentUpdate = didFiberRender(prevFiber, nextFiber); + } + } + } + if (mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id && didFiberRender(prevFiber, nextFiber)) { + // If this Fiber has updated, clear cached inspected data. + // If it is inspected again, it may need to be re-run to obtain updated hooks values. + hasElementUpdatedSinceLastInspected = true; + } + var shouldIncludeInTree = !shouldFilterFiber(nextFiber); + var isSuspense = nextFiber.tag === SuspenseComponent; + var shouldResetChildren = false; // The behavior of timed-out Suspense trees is unique. + // Rather than unmount the timed out content (and possibly lose important state), + // React re-parents this content within a hidden Fragment while the fallback is showing. + // This behavior doesn't need to be observable in the DevTools though. + // It might even result in a bad user experience for e.g. node selection in the Elements panel. + // The easiest fix is to strip out the intermediate Fragment fibers, + // so the Elements panel and Profiler don't need to special case them. + // Suspense components only have a non-null memoizedState if they're timed-out. + + var prevDidTimeout = isSuspense && prevFiber.memoizedState !== null; + var nextDidTimeOut = isSuspense && nextFiber.memoizedState !== null; // The logic below is inspired by the code paths in updateSuspenseComponent() + // inside ReactFiberBeginWork in the React source code. + + if (prevDidTimeout && nextDidTimeOut) { + // Fallback -> Fallback: + // 1. Reconcile fallback set. + var nextFiberChild = nextFiber.child; + var nextFallbackChildSet = nextFiberChild ? nextFiberChild.sibling : null; // Note: We can't use nextFiber.child.sibling.alternate + // because the set is special and alternate may not exist. + + var prevFiberChild = prevFiber.child; + var prevFallbackChildSet = prevFiberChild ? prevFiberChild.sibling : null; + if (nextFallbackChildSet != null && prevFallbackChildSet != null && updateFiberRecursively(nextFallbackChildSet, prevFallbackChildSet, nextFiber, traceNearestHostComponentUpdate)) { + shouldResetChildren = true; + } + } else if (prevDidTimeout && !nextDidTimeOut) { + // Fallback -> Primary: + // 1. Unmount fallback set + // Note: don't emulate fallback unmount because React actually did it. + // 2. Mount primary set + var nextPrimaryChildSet = nextFiber.child; + if (nextPrimaryChildSet !== null) { + mountFiberRecursively(nextPrimaryChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); + } + shouldResetChildren = true; + } else if (!prevDidTimeout && nextDidTimeOut) { + // Primary -> Fallback: + // 1. Hide primary set + // This is not a real unmount, so it won't get reported by React. + // We need to manually walk the previous tree and record unmounts. + unmountFiberChildrenRecursively(prevFiber); // 2. Mount fallback set + + var _nextFiberChild = nextFiber.child; + var _nextFallbackChildSet = _nextFiberChild ? _nextFiberChild.sibling : null; + if (_nextFallbackChildSet != null) { + mountFiberRecursively(_nextFallbackChildSet, shouldIncludeInTree ? nextFiber : parentFiber, true, traceNearestHostComponentUpdate); shouldResetChildren = true; } + } else { + // Common case: Primary -> Primary. + // This is the same code path as for non-Suspense fibers. + if (nextFiber.child !== prevFiber.child) { + // If the first child is different, we need to traverse them. + // Each next child will be either a new child (mount) or an alternate (update). + var nextChild = nextFiber.child; + var prevChildAtSameIndex = prevFiber.child; + while (nextChild) { + // We already know children will be referentially different because + // they are either new mounts or alternates of previous children. + // Schedule updates and mounts depending on whether alternates exist. + // We don't track deletions here because they are reported separately. + if (nextChild.alternate) { + var prevChild = nextChild.alternate; + if (updateFiberRecursively(nextChild, prevChild, shouldIncludeInTree ? nextFiber : parentFiber, traceNearestHostComponentUpdate)) { + // If a nested tree child order changed but it can't handle its own + // child order invalidation (e.g. because it's filtered out like host nodes), + // propagate the need to reset child order upwards to this Fiber. + shouldResetChildren = true; + } // However we also keep track if the order of the children matches + // the previous order. They are always different referentially, but + // if the instances line up conceptually we'll want to know that. + + if (prevChild !== prevChildAtSameIndex) { + shouldResetChildren = true; + } + } else { + mountFiberRecursively(nextChild, shouldIncludeInTree ? nextFiber : parentFiber, false, traceNearestHostComponentUpdate); + shouldResetChildren = true; + } // Try the next child. - nextChild = nextChild.sibling; + nextChild = nextChild.sibling; // Advance the pointer in the previous list so that we can + // keep comparing if they line up. + + if (!shouldResetChildren && prevChildAtSameIndex !== null) { + prevChildAtSameIndex = prevChildAtSameIndex.sibling; + } + } // If we have no more children, but used to, they don't line up. - if (!shouldResetChildren && prevChildAtSameIndex !== null) { - prevChildAtSameIndex = prevChildAtSameIndex.sibling; + if (prevChildAtSameIndex !== null) { + shouldResetChildren = true; + } + } else { + if (traceUpdatesEnabled) { + // If we're tracing updates and we've bailed out before reaching a host node, + // we should fall back to recursively marking the nearest host descendants for highlight. + if (traceNearestHostComponentUpdate) { + var hostFibers = findAllCurrentHostFibers(getFiberIDThrows(nextFiber)); + hostFibers.forEach(function (hostFiber) { + traceUpdatesForNodes.add(hostFiber.stateNode); + }); + } + } } } - - if (prevChildAtSameIndex !== null) { - shouldResetChildren = true; + if (shouldIncludeInTree) { + var isProfilingSupported = nextFiber.hasOwnProperty('treeBaseDuration'); + if (isProfilingSupported) { + recordProfilingDurations(nextFiber); + } } - } else { - if (traceUpdatesEnabled) { - if (traceNearestHostComponentUpdate) { - var hostFibers = findAllCurrentHostFibers(getFiberIDThrows(nextFiber)); - hostFibers.forEach(function (hostFiber) { - traceUpdatesForNodes.add(hostFiber.stateNode); - }); + if (shouldResetChildren) { + // We need to crawl the subtree for closest non-filtered Fibers + // so that we can display them in a flat children set. + if (shouldIncludeInTree) { + // Normally, search for children from the rendered child. + var nextChildSet = nextFiber.child; + if (nextDidTimeOut) { + // Special case: timed-out Suspense renders the fallback set. + var _nextFiberChild2 = nextFiber.child; + nextChildSet = _nextFiberChild2 ? _nextFiberChild2.sibling : null; + } + if (nextChildSet != null) { + recordResetChildren(nextFiber, nextChildSet); + } // We've handled the child order change for this Fiber. + // Since it's included, there's no need to invalidate parent child order. + + return false; + } else { + // Let the closest unfiltered parent Fiber reset its child order instead. + return true; } + } else { + return false; } } - } - if (shouldIncludeInTree) { - var isProfilingSupported = nextFiber.hasOwnProperty('treeBaseDuration'); - if (isProfilingSupported) { - recordProfilingDurations(nextFiber); + function cleanup() {// We don't patch any methods so there is no cleanup. } - } - if (shouldResetChildren) { - if (shouldIncludeInTree) { - var nextChildSet = nextFiber.child; - if (nextDidTimeOut) { - var _nextFiberChild2 = nextFiber.child; - nextChildSet = _nextFiberChild2 ? _nextFiberChild2.sibling : null; + function rootSupportsProfiling(root) { + if (root.memoizedInteractions != null) { + // v16 builds include this field for the scheduler/tracing API. + return true; + } else if (root.current != null && root.current.hasOwnProperty('treeBaseDuration')) { + // The scheduler/tracing API was removed in v17 though + // so we need to check a non-root Fiber. + return true; + } else { + return false; } - if (nextChildSet != null) { - recordResetChildren(nextFiber, nextChildSet); + } + function flushInitialOperations() { + var localPendingOperationsQueue = pendingOperationsQueue; + pendingOperationsQueue = null; + if (localPendingOperationsQueue !== null && localPendingOperationsQueue.length > 0) { + // We may have already queued up some operations before the frontend connected + // If so, let the frontend know about them. + localPendingOperationsQueue.forEach(function (operations) { + hook.emit('operations', operations); + }); + } else { + // Before the traversals, remember to start tracking + // our path in case we have selection to restore. + if (trackedPath !== null) { + mightBeOnTrackedPath = true; + } // If we have not been profiling, then we can just walk the tree and build up its current state as-is. + + hook.getFiberRoots(rendererID).forEach(function (root) { + currentRootID = getOrGenerateFiberID(root.current); + setRootPseudoKey(currentRootID, root.current); // Handle multi-renderer edge-case where only some v16 renderers support profiling. + + if (isProfiling && rootSupportsProfiling(root)) { + // If profiling is active, store commit time and duration. + // The frontend may request this information after profiling has stopped. + currentCommitProfilingMetadata = { + changeDescriptions: recordChangeDescriptions ? new Map() : null, + durations: [], + commitTime: renderer_getCurrentTime() - profilingStartTime, + maxActualDuration: 0, + priorityLevel: null, + updaters: getUpdatersList(root), + effectDuration: null, + passiveEffectDuration: null + }; + } + mountFiberRecursively(root.current, null, false, false); + flushPendingEvents(root); + currentRootID = -1; + }); } - - return false; - } else { - return true; } - } else { - return false; - } - } - function cleanup() { - } - function rootSupportsProfiling(root) { - if (root.memoizedInteractions != null) { - return true; - } else if (root.current != null && root.current.hasOwnProperty('treeBaseDuration')) { - return true; - } else { - return false; - } - } - function flushInitialOperations() { - var localPendingOperationsQueue = pendingOperationsQueue; - pendingOperationsQueue = null; - if (localPendingOperationsQueue !== null && localPendingOperationsQueue.length > 0) { - localPendingOperationsQueue.forEach(function (operations) { - hook.emit('operations', operations); - }); - } else { - if (trackedPath !== null) { - mightBeOnTrackedPath = true; + function getUpdatersList(root) { + return root.memoizedUpdaters != null ? Array.from(root.memoizedUpdaters).filter(function (fiber) { + return getFiberIDUnsafe(fiber) !== null; + }).map(fiberToSerializedElement) : null; + } + function handleCommitFiberUnmount(fiber) { + // If the untrackFiberSet already has the unmounted Fiber, this means we've already + // recordedUnmount, so we don't need to do it again. If we don't do this, we might + // end up double-deleting Fibers in some cases (like Legacy Suspense). + if (!untrackFibersSet.has(fiber)) { + // This is not recursive. + // We can't traverse fibers after unmounting so instead + // we rely on React telling us about each unmount. + recordUnmount(fiber, false); + } } + function handlePostCommitFiberRoot(root) { + if (isProfiling && rootSupportsProfiling(root)) { + if (currentCommitProfilingMetadata !== null) { + var _getEffectDurations = getEffectDurations(root), + effectDuration = _getEffectDurations.effectDuration, + passiveEffectDuration = _getEffectDurations.passiveEffectDuration; // $FlowFixMe[incompatible-use] found when upgrading Flow - hook.getFiberRoots(rendererID).forEach(function (root) { - currentRootID = getOrGenerateFiberID(root.current); - setRootPseudoKey(currentRootID, root.current); + currentCommitProfilingMetadata.effectDuration = effectDuration; // $FlowFixMe[incompatible-use] found when upgrading Flow - if (isProfiling && rootSupportsProfiling(root)) { + currentCommitProfilingMetadata.passiveEffectDuration = passiveEffectDuration; + } + } + } + function handleCommitFiberRoot(root, priorityLevel) { + var current = root.current; + var alternate = current.alternate; // Flush any pending Fibers that we are untracking before processing the new commit. + // If we don't do this, we might end up double-deleting Fibers in some cases (like Legacy Suspense). + + untrackFibers(); + currentRootID = getOrGenerateFiberID(current); // Before the traversals, remember to start tracking + // our path in case we have selection to restore. + + if (trackedPath !== null) { + mightBeOnTrackedPath = true; + } + if (traceUpdatesEnabled) { + traceUpdatesForNodes.clear(); + } // Handle multi-renderer edge-case where only some v16 renderers support profiling. + + var isProfilingSupported = rootSupportsProfiling(root); + if (isProfiling && isProfilingSupported) { + // If profiling is active, store commit time and duration. + // The frontend may request this information after profiling has stopped. currentCommitProfilingMetadata = { changeDescriptions: recordChangeDescriptions ? new Map() : null, durations: [], commitTime: renderer_getCurrentTime() - profilingStartTime, maxActualDuration: 0, - priorityLevel: null, + priorityLevel: priorityLevel == null ? null : formatPriorityLevel(priorityLevel), updaters: getUpdatersList(root), + // Initialize to null; if new enough React version is running, + // these values will be read during separate handlePostCommitFiberRoot() call. effectDuration: null, passiveEffectDuration: null }; } - mountFiberRecursively(root.current, null, false, false); + if (alternate) { + // TODO: relying on this seems a bit fishy. + var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && + // A dehydrated root is not considered mounted + alternate.memoizedState.isDehydrated !== true; + var isMounted = current.memoizedState != null && current.memoizedState.element != null && + // A dehydrated root is not considered mounted + current.memoizedState.isDehydrated !== true; + if (!wasMounted && isMounted) { + // Mount a new root. + setRootPseudoKey(currentRootID, current); + mountFiberRecursively(current, null, false, false); + } else if (wasMounted && isMounted) { + // Update an existing root. + updateFiberRecursively(current, alternate, null, false); + } else if (wasMounted && !isMounted) { + // Unmount an existing root. + removeRootPseudoKey(currentRootID); + recordUnmount(current, false); + } + } else { + // Mount a new root. + setRootPseudoKey(currentRootID, current); + mountFiberRecursively(current, null, false, false); + } + if (isProfiling && isProfilingSupported) { + if (!shouldBailoutWithPendingOperations()) { + var commitProfilingMetadata = rootToCommitProfilingMetadataMap.get(currentRootID); + if (commitProfilingMetadata != null) { + commitProfilingMetadata.push(currentCommitProfilingMetadata); + } else { + rootToCommitProfilingMetadataMap.set(currentRootID, [currentCommitProfilingMetadata]); + } + } + } // We're done here. + flushPendingEvents(root); + if (traceUpdatesEnabled) { + hook.emit('traceUpdates', traceUpdatesForNodes); + } currentRootID = -1; - }); - } - } - function getUpdatersList(root) { - return root.memoizedUpdaters != null ? Array.from(root.memoizedUpdaters).filter(function (fiber) { - return getFiberIDUnsafe(fiber) !== null; - }).map(fiberToSerializedElement) : null; - } - function handleCommitFiberUnmount(fiber) { - recordUnmount(fiber, false); - } - function handlePostCommitFiberRoot(root) { - if (isProfiling && rootSupportsProfiling(root)) { - if (currentCommitProfilingMetadata !== null) { - var _getEffectDurations = Object(backend_utils["g"])(root), - effectDuration = _getEffectDurations.effectDuration, - passiveEffectDuration = _getEffectDurations.passiveEffectDuration; - currentCommitProfilingMetadata.effectDuration = effectDuration; - currentCommitProfilingMetadata.passiveEffectDuration = passiveEffectDuration; } - } - } - function handleCommitFiberRoot(root, priorityLevel) { - var current = root.current; - var alternate = current.alternate; - - untrackFibers(); - currentRootID = getOrGenerateFiberID(current); - - if (trackedPath !== null) { - mightBeOnTrackedPath = true; - } - if (traceUpdatesEnabled) { - traceUpdatesForNodes.clear(); - } + function findAllCurrentHostFibers(id) { + var fibers = []; + var fiber = findCurrentFiberUsingSlowPathById(id); + if (!fiber) { + return fibers; + } // Next we'll drill down this component to find all HostComponent/Text. + + var node = fiber; + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + fibers.push(node); + } else if (node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return fibers; + } + while (!node.sibling) { + if (!node.return || node.return === fiber) { + return fibers; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } // Flow needs the return here, but ESLint complains about it. + // eslint-disable-next-line no-unreachable - var isProfilingSupported = rootSupportsProfiling(root); - if (isProfiling && isProfilingSupported) { - currentCommitProfilingMetadata = { - changeDescriptions: recordChangeDescriptions ? new Map() : null, - durations: [], - commitTime: renderer_getCurrentTime() - profilingStartTime, - maxActualDuration: 0, - priorityLevel: priorityLevel == null ? null : formatPriorityLevel(priorityLevel), - updaters: getUpdatersList(root), - effectDuration: null, - passiveEffectDuration: null - }; - } - if (alternate) { - var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null; - var isMounted = current.memoizedState != null && current.memoizedState.element != null; - if (!wasMounted && isMounted) { - setRootPseudoKey(currentRootID, current); - mountFiberRecursively(current, null, false, false); - } else if (wasMounted && isMounted) { - updateFiberRecursively(current, alternate, null, false); - } else if (wasMounted && !isMounted) { - removeRootPseudoKey(currentRootID); - recordUnmount(current, false); + return fibers; } - } else { - setRootPseudoKey(currentRootID, current); - mountFiberRecursively(current, null, false, false); - } - if (isProfiling && isProfilingSupported) { - if (!shouldBailoutWithPendingOperations()) { - var commitProfilingMetadata = rootToCommitProfilingMetadataMap.get(currentRootID); - if (commitProfilingMetadata != null) { - commitProfilingMetadata.push(currentCommitProfilingMetadata); - } else { - rootToCommitProfilingMetadataMap.set(currentRootID, [currentCommitProfilingMetadata]); + function findNativeNodesForFiberID(id) { + try { + var _fiber3 = findCurrentFiberUsingSlowPathById(id); + if (_fiber3 === null) { + return null; + } + var hostFibers = findAllCurrentHostFibers(id); + return hostFibers.map(function (hostFiber) { + return hostFiber.stateNode; + }).filter(Boolean); + } catch (err) { + // The fiber might have unmounted by now. + return null; } } - } - - flushPendingEvents(root); - if (traceUpdatesEnabled) { - hook.emit('traceUpdates', traceUpdatesForNodes); - } - currentRootID = -1; - } - function findAllCurrentHostFibers(id) { - var fibers = []; - var fiber = findCurrentFiberUsingSlowPathById(id); - if (!fiber) { - return fibers; - } - - var node = fiber; - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - fibers.push(node); - } else if (node.child) { - node.child.return = node; - node = node.child; - continue; + function getDisplayNameForFiberID(id) { + var fiber = idToArbitraryFiberMap.get(id); + return fiber != null ? getDisplayNameForFiber(fiber) : null; } - if (node === fiber) { - return fibers; + function getFiberForNative(hostInstance) { + return renderer.findFiberByHostInstance(hostInstance); } - while (!node.sibling) { - if (!node.return || node.return === fiber) { - return fibers; + function getFiberIDForNative(hostInstance) { + var findNearestUnfilteredAncestor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var fiber = renderer.findFiberByHostInstance(hostInstance); + if (fiber != null) { + if (findNearestUnfilteredAncestor) { + while (fiber !== null && shouldFilterFiber(fiber)) { + fiber = fiber.return; + } + } + return getFiberIDThrows(fiber); } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - - return fibers; - } - function findNativeNodesForFiberID(id) { - try { - var _fiber3 = findCurrentFiberUsingSlowPathById(id); - if (_fiber3 === null) { return null; - } + } // This function is copied from React and should be kept in sync: + // https://github.com/facebook/react/blob/main/packages/react-reconciler/src/ReactFiberTreeReflection.js - var isTimedOutSuspense = _fiber3.tag === SuspenseComponent && _fiber3.memoizedState !== null; - if (isTimedOutSuspense) { - var maybeFallbackFiber = _fiber3.child && _fiber3.child.sibling; - if (maybeFallbackFiber != null) { - _fiber3 = maybeFallbackFiber; - } - } - var hostFibers = findAllCurrentHostFibers(id); - return hostFibers.map(function (hostFiber) { - return hostFiber.stateNode; - }).filter(Boolean); - } catch (err) { - return null; - } - } - function getDisplayNameForFiberID(id) { - var fiber = idToArbitraryFiberMap.get(id); - return fiber != null ? getDisplayNameForFiber(fiber) : null; - } - function getFiberIDForNative(hostInstance) { - var findNearestUnfilteredAncestor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var fiber = renderer.findFiberByHostInstance(hostInstance); - if (fiber != null) { - if (findNearestUnfilteredAncestor) { - while (fiber !== null && shouldFilterFiber(fiber)) { - fiber = fiber.return; + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error('Unable to find node on an unmounted component.'); } - } - return getFiberIDThrows(fiber); - } - return null; - } - - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) { - throw new Error('Unable to find node on an unmounted component.'); - } - } - - function getNearestMountedFiber(fiber) { - var node = fiber; - var nearestMounted = fiber; - if (!fiber.alternate) { - var nextNode = node; - do { - node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { - nearestMounted = node.return; + } // This function is copied from React and should be kept in sync: + // https://github.com/facebook/react/blob/main/packages/react-reconciler/src/ReactFiberTreeReflection.js + + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + // If there is no alternate, this might be a new tree that isn't inserted + // yet. If it is, then it will have a pending insertion effect on it. + var nextNode = node; + do { + node = nextNode; // TODO: This function, and these flags, are a leaked implementation + // detail. Once we start releasing DevTools in lockstep with React, we + // should import a function from the reconciler instead. + + var Placement = 2; + var Hydrating = 4096; + if ((node.flags & (Placement | Hydrating)) !== 0) { + // This is an insertion or in-progress hydration. The nearest possible + // mounted fiber is the parent but we need to continue to figure out + // if that one is still mounted. + nearestMounted = node.return; + } // $FlowFixMe[incompatible-type] we bail out when we get a null + + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } } - nextNode = node.return; - } while (nextNode); - } else { - while (node.return) { - node = node.return; - } - } - if (node.tag === HostRoot) { - return nearestMounted; - } - - return null; - } + if (node.tag === HostRoot) { + // TODO: Check if this was a nested HostRoot when used with + // renderContainerIntoSubtree. + return nearestMounted; + } // If we didn't hit the root, that means that we're in an disconnected tree + // that has been unmounted. - function findCurrentFiberUsingSlowPathById(id) { - var fiber = idToArbitraryFiberMap.get(id); - if (fiber == null) { - console.warn("Could not find Fiber with id \"".concat(id, "\"")); - return null; - } - var alternate = fiber.alternate; - if (!alternate) { - var nearestMounted = getNearestMountedFiber(fiber); - if (nearestMounted === null) { - throw new Error('Unable to find node on an unmounted component.'); - } - if (nearestMounted !== fiber) { return null; - } - return fiber; - } - - var a = fiber; - var b = alternate; - while (true) { - var parentA = a.return; - if (parentA === null) { - break; - } - var parentB = parentA.alternate; - if (parentB === null) { - var nextParent = parentA.return; - if (nextParent !== null) { - a = b = nextParent; - continue; + } // This function is copied from React and should be kept in sync: + // https://github.com/facebook/react/blob/main/packages/react-reconciler/src/ReactFiberTreeReflection.js + // It would be nice if we updated React to inject this function directly (vs just indirectly via findDOMNode). + // BEGIN copied code + + function findCurrentFiberUsingSlowPathById(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return null; } - - break; - } - - if (parentA.child === parentB.child) { - var child = parentA.child; - while (child) { - if (child === a) { - assertIsMounted(parentA); - return fiber; + var alternate = fiber.alternate; + if (!alternate) { + // If there is no alternate, then we only need to check if it is mounted. + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error('Unable to find node on an unmounted component.'); } - if (child === b) { - assertIsMounted(parentA); - return alternate; + if (nearestMounted !== fiber) { + return null; } - child = child.sibling; - } - - throw new Error('Unable to find node on an unmounted component.'); - } - if (a.return !== b.return) { - a = parentA; - b = parentB; - } else { - var didFindChild = false; - var _child = parentA.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentA; - b = parentB; + return fiber; + } // If we have two possible branches, we'll walk backwards up to the root + // to see what path the root points to. On the way we may hit one of the + // special cases and we'll deal with them. + + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + // We're at the root. break; } - if (_child === b) { - didFindChild = true; - b = parentA; - a = parentB; + var parentB = parentA.alternate; + if (parentB === null) { + // There is no alternate. This is an unusual case. Currently, it only + // happens when a Suspense component is hidden. An extra fragment fiber + // is inserted in between the Suspense fiber and its children. Skip + // over this extra fragment fiber and proceed to the next parent. + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } // If there's no parent, we're at the root. + break; + } // If both copies of the parent fiber point to the same child, we can + // assume that the child is current. This happens when we bailout on low + // priority: the bailed out fiber's child reuses the current child. + + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + // We've determined that A is the current branch. + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + // We've determined that B is the current branch. + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } // We should never have an alternate for any mounting node. So the only + // way this could possibly happen is if this was unmounted, if at all. + + throw new Error('Unable to find node on an unmounted component.'); } - _child = _child.sibling; - } - if (!didFindChild) { - _child = parentB.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentB; - b = parentA; - break; + if (a.return !== b.return) { + // The return pointer of A and the return pointer of B point to different + // fibers. We assume that return pointers never criss-cross, so A must + // belong to the child set of A.return, and B must belong to the child + // set of B.return. + a = parentA; + b = parentB; + } else { + // The return pointers point to the same fiber. We'll have to use the + // default, slow path: scan the child sets of each parent alternate to see + // which child belongs to which set. + // + // Search parent A's child set + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; } - if (_child === b) { - didFindChild = true; - b = parentB; - a = parentA; - break; + if (!didFindChild) { + // Search parent B's child set + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.'); + } } - _child = _child.sibling; } - if (!didFindChild) { - throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.'); + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. " + 'This error is likely caused by a bug in React. Please file an issue.'); } - } - } - if (a.alternate !== b) { - throw new Error("Return fibers should always be each others' alternates. " + 'This error is likely caused by a bug in React. Please file an issue.'); - } - } + } // If the root is not a host container, we're in a disconnected tree. I.e. + // unmounted. - if (a.tag !== HostRoot) { - throw new Error('Unable to find node on an unmounted component.'); - } - if (a.stateNode.current === a) { - return fiber; - } + if (a.tag !== HostRoot) { + throw new Error('Unable to find node on an unmounted component.'); + } + if (a.stateNode.current === a) { + // We've determined that A is the current branch. + return fiber; + } // Otherwise B has to be current branch. - return alternate; - } + return alternate; + } // END copied code - function prepareViewAttributeSource(id, path) { - if (isMostRecentlyInspectedElement(id)) { - window.$attribute = Object(utils["h"])(mostRecentlyInspectedElement, path); - } - } - function prepareViewElementSource(id) { - var fiber = idToArbitraryFiberMap.get(id); - if (fiber == null) { - console.warn("Could not find Fiber with id \"".concat(id, "\"")); - return; - } - var elementType = fiber.elementType, - tag = fiber.tag, - type = fiber.type; - switch (tag) { - case ClassComponent: - case IncompleteClassComponent: - case IndeterminateComponent: - case FunctionComponent: - global.$type = type; - break; - case ForwardRef: - global.$type = type.render; - break; - case MemoComponent: - case SimpleMemoComponent: - global.$type = elementType != null && elementType.type != null ? elementType.type : type; - break; - default: - global.$type = null; - break; - } - } - function fiberToSerializedElement(fiber) { - return { - displayName: getDisplayNameForFiber(fiber) || 'Anonymous', - id: getFiberIDThrows(fiber), - key: fiber.key, - type: getElementTypeForFiber(fiber) - }; - } - function getOwnersList(id) { - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber == null) { - return null; - } - var _debugOwner = fiber._debugOwner; - var owners = [fiberToSerializedElement(fiber)]; - if (_debugOwner) { - var owner = _debugOwner; - while (owner !== null) { - owners.unshift(fiberToSerializedElement(owner)); - owner = owner._debugOwner || null; + function prepareViewAttributeSource(id, path) { + if (isMostRecentlyInspectedElement(id)) { + window.$attribute = utils_getInObject(mostRecentlyInspectedElement, path); + } } - } - return owners; - } - - function getInstanceAndStyle(id) { - var instance = null; - var style = null; - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber !== null) { - instance = fiber.stateNode; - if (fiber.memoizedProps !== null) { - style = fiber.memoizedProps.style; + function prepareViewElementSource(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var elementType = fiber.elementType, + tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case FunctionComponent: + global.$type = type; + break; + case ForwardRef: + global.$type = type.render; + break; + case MemoComponent: + case SimpleMemoComponent: + global.$type = elementType != null && elementType.type != null ? elementType.type : type; + break; + default: + global.$type = null; + break; + } } - } - return { - instance: instance, - style: style - }; - } - function isErrorBoundary(fiber) { - var tag = fiber.tag, - type = fiber.type; - switch (tag) { - case ClassComponent: - case IncompleteClassComponent: - var instance = fiber.stateNode; - return typeof type.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function'; - default: - return false; - } - } - function getNearestErrorBoundaryID(fiber) { - var parent = fiber.return; - while (parent !== null) { - if (isErrorBoundary(parent)) { - return getFiberIDUnsafe(parent); + function fiberToSerializedElement(fiber) { + return { + displayName: getDisplayNameForFiber(fiber) || 'Anonymous', + id: getFiberIDThrows(fiber), + key: fiber.key, + type: getElementTypeForFiber(fiber) + }; } - parent = parent.return; - } - return null; - } - function inspectElementRaw(id) { - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber == null) { - return null; - } - var _debugOwner = fiber._debugOwner, - _debugSource = fiber._debugSource, - stateNode = fiber.stateNode, - key = fiber.key, - memoizedProps = fiber.memoizedProps, - memoizedState = fiber.memoizedState, - dependencies = fiber.dependencies, - tag = fiber.tag, - type = fiber.type; - var elementType = getElementTypeForFiber(fiber); - var usesHooks = (tag === FunctionComponent || tag === SimpleMemoComponent || tag === ForwardRef) && (!!memoizedState || !!dependencies); - - var showState = !usesHooks && tag !== CacheComponent; - var typeSymbol = getTypeSymbol(type); - var canViewSource = false; - var context = null; - if (tag === ClassComponent || tag === FunctionComponent || tag === IncompleteClassComponent || tag === IndeterminateComponent || tag === MemoComponent || tag === ForwardRef || tag === SimpleMemoComponent) { - canViewSource = true; - if (stateNode && stateNode.context != null) { - var shouldHideContext = elementType === types["e"] && !(type.contextTypes || type.contextType); - if (!shouldHideContext) { - context = stateNode.context; - } - } - } else if (typeSymbol === ReactSymbols["c"] || typeSymbol === ReactSymbols["d"]) { - var consumerResolvedContext = type._context || type; - - context = consumerResolvedContext._currentValue || null; - - var _current = fiber.return; - while (_current !== null) { - var currentType = _current.type; - var currentTypeSymbol = getTypeSymbol(currentType); - if (currentTypeSymbol === ReactSymbols["n"] || currentTypeSymbol === ReactSymbols["o"]) { - var providerResolvedContext = currentType._context || currentType.context; - if (providerResolvedContext === consumerResolvedContext) { - context = _current.memoizedProps.value; - break; + function getOwnersList(id) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber == null) { + return null; + } + var _debugOwner = fiber._debugOwner; + var owners = [fiberToSerializedElement(fiber)]; + if (_debugOwner) { + var owner = _debugOwner; + while (owner !== null) { + owners.unshift(fiberToSerializedElement(owner)); + owner = owner._debugOwner || null; + } + } + return owners; + } // Fast path props lookup for React Native style editor. + // Could use inspectElementRaw() but that would require shallow rendering hooks components, + // and could also mess with memoization. + + function getInstanceAndStyle(id) { + var instance = null; + var style = null; + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + instance = fiber.stateNode; + if (fiber.memoizedProps !== null) { + style = fiber.memoizedProps.style; } } - _current = _current.return; + return { + instance: instance, + style: style + }; } - } - var hasLegacyContext = false; - if (context !== null) { - hasLegacyContext = !!type.contextTypes; - - context = { - value: context - }; - } - var owners = null; - if (_debugOwner) { - owners = []; - var owner = _debugOwner; - while (owner !== null) { - owners.push(fiberToSerializedElement(owner)); - owner = owner._debugOwner || null; + function isErrorBoundary(fiber) { + var tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + var instance = fiber.stateNode; + return typeof type.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function'; + default: + return false; + } } - } - var isTimedOutSuspense = tag === SuspenseComponent && memoizedState !== null; - var hooks = null; - if (usesHooks) { - var originalConsoleMethods = {}; + function getNearestErrorBoundaryID(fiber) { + var parent = fiber.return; + while (parent !== null) { + if (isErrorBoundary(parent)) { + return getFiberIDUnsafe(parent); + } + parent = parent.return; + } + return null; + } + function inspectElementRaw(id) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber == null) { + return null; + } + var _debugOwner = fiber._debugOwner, + _debugSource = fiber._debugSource, + stateNode = fiber.stateNode, + key = fiber.key, + memoizedProps = fiber.memoizedProps, + memoizedState = fiber.memoizedState, + dependencies = fiber.dependencies, + tag = fiber.tag, + type = fiber.type; + var elementType = getElementTypeForFiber(fiber); + var usesHooks = (tag === FunctionComponent || tag === SimpleMemoComponent || tag === ForwardRef) && (!!memoizedState || !!dependencies); // TODO Show custom UI for Cache like we do for Suspense + // For now, just hide state data entirely since it's not meant to be inspected. + + var showState = !usesHooks && tag !== CacheComponent; + var typeSymbol = getTypeSymbol(type); + var canViewSource = false; + var context = null; + if (tag === ClassComponent || tag === FunctionComponent || tag === IncompleteClassComponent || tag === IndeterminateComponent || tag === MemoComponent || tag === ForwardRef || tag === SimpleMemoComponent) { + canViewSource = true; + if (stateNode && stateNode.context != null) { + // Don't show an empty context object for class components that don't use the context API. + var shouldHideContext = elementType === types_ElementTypeClass && !(type.contextTypes || type.contextType); + if (!shouldHideContext) { + context = stateNode.context; + } + } + } else if (typeSymbol === CONTEXT_NUMBER || typeSymbol === CONTEXT_SYMBOL_STRING) { + // 16.3-16.5 read from "type" because the Consumer is the actual context object. + // 16.6+ should read from "type._context" because Consumer can be different (in DEV). + // NOTE Keep in sync with getDisplayNameForFiber() + var consumerResolvedContext = type._context || type; // Global context value. + + context = consumerResolvedContext._currentValue || null; // Look for overridden value. + + var _current = fiber.return; + while (_current !== null) { + var currentType = _current.type; + var currentTypeSymbol = getTypeSymbol(currentType); + if (currentTypeSymbol === PROVIDER_NUMBER || currentTypeSymbol === PROVIDER_SYMBOL_STRING) { + // 16.3.0 exposed the context object as "context" + // PR #12501 changed it to "_context" for 16.3.1+ + // NOTE Keep in sync with getDisplayNameForFiber() + var providerResolvedContext = currentType._context || currentType.context; + if (providerResolvedContext === consumerResolvedContext) { + context = _current.memoizedProps.value; + break; + } + } + _current = _current.return; + } + } + var hasLegacyContext = false; + if (context !== null) { + hasLegacyContext = !!type.contextTypes; // To simplify hydration and display logic for context, wrap in a value object. + // Otherwise simple values (e.g. strings, booleans) become harder to handle. - for (var method in console) { - try { - originalConsoleMethods[method] = console[method]; + context = { + value: context + }; + } + var owners = null; + if (_debugOwner) { + owners = []; + var owner = _debugOwner; + while (owner !== null) { + owners.push(fiberToSerializedElement(owner)); + owner = owner._debugOwner || null; + } + } + var isTimedOutSuspense = tag === SuspenseComponent && memoizedState !== null; + var hooks = null; + if (usesHooks) { + var originalConsoleMethods = {}; // Temporarily disable all console logging before re-running the hook. - console[method] = function () {}; - } catch (error) {} - } - try { - hooks = Object(react_debug_tools["inspectHooksOfFiber"])(fiber, renderer.currentDispatcherRef, true); - } finally { - for (var _method in originalConsoleMethods) { + for (var method in console) { + try { + originalConsoleMethods[method] = console[method]; // $FlowFixMe[prop-missing] + + console[method] = function () {}; + } catch (error) {} + } try { - console[_method] = originalConsoleMethods[_method]; - } catch (error) {} + hooks = (0, react_debug_tools.inspectHooksOfFiber)(fiber, renderer.currentDispatcherRef, true // Include source location info for hooks + ); + } finally { + // Restore original console functionality. + for (var _method in originalConsoleMethods) { + try { + // $FlowFixMe[prop-missing] + console[_method] = originalConsoleMethods[_method]; + } catch (error) {} + } + } } + var rootType = null; + var current = fiber; + while (current.return !== null) { + current = current.return; + } + var fiberRoot = current.stateNode; + if (fiberRoot != null && fiberRoot._debugRootType !== null) { + rootType = fiberRoot._debugRootType; + } + var errors = fiberIDToErrorsMap.get(id) || new Map(); + var warnings = fiberIDToWarningsMap.get(id) || new Map(); + var isErrored = false; + var targetErrorBoundaryID; + if (isErrorBoundary(fiber)) { + // if the current inspected element is an error boundary, + // either that we want to use it to toggle off error state + // or that we allow to force error state on it if it's within another + // error boundary + // + // TODO: This flag is a leaked implementation detail. Once we start + // releasing DevTools in lockstep with React, we should import a function + // from the reconciler instead. + var DidCapture = 128; + isErrored = (fiber.flags & DidCapture) !== 0 || forceErrorForFiberIDs.get(id) === true; + targetErrorBoundaryID = isErrored ? id : getNearestErrorBoundaryID(fiber); + } else { + targetErrorBoundaryID = getNearestErrorBoundaryID(fiber); + } + var plugins = { + stylex: null + }; + if (enableStyleXFeatures) { + if (memoizedProps.hasOwnProperty('xstyle')) { + plugins.stylex = getStyleXData(memoizedProps.xstyle); + } + } + return { + id: id, + // Does the current renderer support editable hooks and function props? + canEditHooks: typeof overrideHookState === 'function', + canEditFunctionProps: typeof overrideProps === 'function', + // Does the current renderer support advanced editing interface? + canEditHooksAndDeletePaths: typeof overrideHookStateDeletePath === 'function', + canEditHooksAndRenamePaths: typeof overrideHookStateRenamePath === 'function', + canEditFunctionPropsDeletePaths: typeof overridePropsDeletePath === 'function', + canEditFunctionPropsRenamePaths: typeof overridePropsRenamePath === 'function', + canToggleError: supportsTogglingError && targetErrorBoundaryID != null, + // Is this error boundary in error state. + isErrored: isErrored, + targetErrorBoundaryID: targetErrorBoundaryID, + canToggleSuspense: supportsTogglingSuspense && ( + // If it's showing the real content, we can always flip fallback. + !isTimedOutSuspense || + // If it's showing fallback because we previously forced it to, + // allow toggling it back to remove the fallback override. + forceFallbackForSuspenseIDs.has(id)), + // Can view component source location. + canViewSource: canViewSource, + // Does the component have legacy context attached to it. + hasLegacyContext: hasLegacyContext, + key: key != null ? key : null, + displayName: getDisplayNameForFiber(fiber), + type: elementType, + // Inspectable properties. + // TODO Review sanitization approach for the below inspectable values. + context: context, + hooks: hooks, + props: memoizedProps, + state: showState ? memoizedState : null, + errors: Array.from(errors.entries()), + warnings: Array.from(warnings.entries()), + // List of owners + owners: owners, + // Location of component in source code. + source: _debugSource || null, + rootType: rootType, + rendererPackageName: renderer.rendererPackageName, + rendererVersion: renderer.version, + plugins: plugins + }; } - } - var rootType = null; - var current = fiber; - while (current.return !== null) { - current = current.return; - } - var fiberRoot = current.stateNode; - if (fiberRoot != null && fiberRoot._debugRootType !== null) { - rootType = fiberRoot._debugRootType; - } - var errors = fiberIDToErrorsMap.get(id) || new Map(); - var warnings = fiberIDToWarningsMap.get(id) || new Map(); - var isErrored = (fiber.flags & DidCapture) !== NoFlags || forceErrorForFiberIDs.get(id) === true; - var targetErrorBoundaryID; - if (isErrorBoundary(fiber)) { - targetErrorBoundaryID = isErrored ? id : getNearestErrorBoundaryID(fiber); - } else { - targetErrorBoundaryID = getNearestErrorBoundaryID(fiber); - } - var plugins = { - stylex: null - }; - if (DevToolsFeatureFlags_core_oss["c"]) { - if (memoizedProps.hasOwnProperty('xstyle')) { - plugins.stylex = getStyleXData(memoizedProps.xstyle); - } - } - return { - id: id, - canEditHooks: typeof overrideHookState === 'function', - canEditFunctionProps: typeof overrideProps === 'function', - canEditHooksAndDeletePaths: typeof overrideHookStateDeletePath === 'function', - canEditHooksAndRenamePaths: typeof overrideHookStateRenamePath === 'function', - canEditFunctionPropsDeletePaths: typeof overridePropsDeletePath === 'function', - canEditFunctionPropsRenamePaths: typeof overridePropsRenamePath === 'function', - canToggleError: supportsTogglingError && targetErrorBoundaryID != null, - isErrored: isErrored, - targetErrorBoundaryID: targetErrorBoundaryID, - canToggleSuspense: supportsTogglingSuspense && ( - !isTimedOutSuspense || - forceFallbackForSuspenseIDs.has(id)), - canViewSource: canViewSource, - hasLegacyContext: hasLegacyContext, - key: key != null ? key : null, - displayName: getDisplayNameForFiber(fiber), - type: elementType, - context: context, - hooks: hooks, - props: memoizedProps, - state: showState ? memoizedState : null, - errors: Array.from(errors.entries()), - warnings: Array.from(warnings.entries()), - owners: owners, - source: _debugSource || null, - rootType: rootType, - rendererPackageName: renderer.rendererPackageName, - rendererVersion: renderer.version, - plugins: plugins - }; - } - var mostRecentlyInspectedElement = null; - var hasElementUpdatedSinceLastInspected = false; - var currentlyInspectedPaths = {}; - function isMostRecentlyInspectedElement(id) { - return mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id; - } - function isMostRecentlyInspectedElementCurrent(id) { - return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected; - } - - function mergeInspectedPaths(path) { - var current = currentlyInspectedPaths; - path.forEach(function (key) { - if (!current[key]) { - current[key] = {}; + var mostRecentlyInspectedElement = null; + var hasElementUpdatedSinceLastInspected = false; + var currentlyInspectedPaths = {}; + function isMostRecentlyInspectedElement(id) { + return mostRecentlyInspectedElement !== null && mostRecentlyInspectedElement.id === id; + } + function isMostRecentlyInspectedElementCurrent(id) { + return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected; + } // Track the intersection of currently inspected paths, + // so that we can send their data along if the element is re-rendered. + + function mergeInspectedPaths(path) { + var current = currentlyInspectedPaths; + path.forEach(function (key) { + if (!current[key]) { + current[key] = {}; + } + current = current[key]; + }); } - current = current[key]; - }); - } - function createIsPathAllowed(key, secondaryCategory) { - return function isPathAllowed(path) { - switch (secondaryCategory) { - case 'hooks': - if (path.length === 1) { - return true; + function createIsPathAllowed(key, secondaryCategory) { + // This function helps prevent previously-inspected paths from being dehydrated in updates. + // This is important to avoid a bad user experience where expanded toggles collapse on update. + return function isPathAllowed(path) { + switch (secondaryCategory) { + case 'hooks': + if (path.length === 1) { + // Never dehydrate the "hooks" object at the top levels. + return true; + } + if (path[path.length - 2] === 'hookSource' && path[path.length - 1] === 'fileName') { + // It's important to preserve the full file name (URL) for hook sources + // in case the user has enabled the named hooks feature. + // Otherwise the frontend may end up with a partial URL which it can't load. + return true; + } + if (path[path.length - 1] === 'subHooks' || path[path.length - 2] === 'subHooks') { + // Dehydrating the 'subHooks' property makes the HooksTree UI a lot more complicated, + // so it's easiest for now if we just don't break on this boundary. + // We can always dehydrate a level deeper (in the value object). + return true; + } + break; + default: + break; } - if (path[path.length - 2] === 'hookSource' && path[path.length - 1] === 'fileName') { - return true; + var current = key === null ? currentlyInspectedPaths : currentlyInspectedPaths[key]; + if (!current) { + return false; } - if (path[path.length - 1] === 'subHooks' || path[path.length - 2] === 'subHooks') { - return true; + for (var i = 0; i < path.length; i++) { + current = current[path[i]]; + if (!current) { + return false; + } } - break; - default: - break; + return true; + }; } - var current = key === null ? currentlyInspectedPaths : currentlyInspectedPaths[key]; - if (!current) { - return false; + function updateSelectedElement(inspectedElement) { + var hooks = inspectedElement.hooks, + id = inspectedElement.id, + props = inspectedElement.props; + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var elementType = fiber.elementType, + stateNode = fiber.stateNode, + tag = fiber.tag, + type = fiber.type; + switch (tag) { + case ClassComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + global.$r = stateNode; + break; + case FunctionComponent: + global.$r = { + hooks: hooks, + props: props, + type: type + }; + break; + case ForwardRef: + global.$r = { + hooks: hooks, + props: props, + type: type.render + }; + break; + case MemoComponent: + case SimpleMemoComponent: + global.$r = { + hooks: hooks, + props: props, + type: elementType != null && elementType.type != null ? elementType.type : type + }; + break; + default: + global.$r = null; + break; + } } - for (var i = 0; i < path.length; i++) { - current = current[path[i]]; - if (!current) { - return false; + function storeAsGlobal(id, path, count) { + if (isMostRecentlyInspectedElement(id)) { + var value = utils_getInObject(mostRecentlyInspectedElement, path); + var key = "$reactTemp".concat(count); + window[key] = value; + console.log(key); + console.log(value); } } - return true; - }; - } - function updateSelectedElement(inspectedElement) { - var hooks = inspectedElement.hooks, - id = inspectedElement.id, - props = inspectedElement.props; - var fiber = idToArbitraryFiberMap.get(id); - if (fiber == null) { - console.warn("Could not find Fiber with id \"".concat(id, "\"")); - return; - } - var elementType = fiber.elementType, - stateNode = fiber.stateNode, - tag = fiber.tag, - type = fiber.type; - switch (tag) { - case ClassComponent: - case IncompleteClassComponent: - case IndeterminateComponent: - global.$r = stateNode; - break; - case FunctionComponent: - global.$r = { - hooks: hooks, - props: props, - type: type - }; - break; - case ForwardRef: - global.$r = { - hooks: hooks, - props: props, - type: type.render - }; - break; - case MemoComponent: - case SimpleMemoComponent: - global.$r = { - hooks: hooks, - props: props, - type: elementType != null && elementType.type != null ? elementType.type : type - }; - break; - default: - global.$r = null; - break; - } - } - function storeAsGlobal(id, path, count) { - if (isMostRecentlyInspectedElement(id)) { - var value = Object(utils["h"])(mostRecentlyInspectedElement, path); - var key = "$reactTemp".concat(count); - window[key] = value; - console.log(key); - console.log(value); - } - } - function copyElementPath(id, path) { - if (isMostRecentlyInspectedElement(id)) { - Object(backend_utils["b"])(Object(utils["h"])(mostRecentlyInspectedElement, path)); - } - } - function inspectElement(requestID, id, path, forceFullData) { - if (path !== null) { - mergeInspectedPaths(path); - } - if (isMostRecentlyInspectedElement(id) && !forceFullData) { - if (!hasElementUpdatedSinceLastInspected) { + function getSerializedElementValueByPath(id, path) { + if (isMostRecentlyInspectedElement(id)) { + var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path); + return serializeToString(valueToCopy); + } + } + function inspectElement(requestID, id, path, forceFullData) { if (path !== null) { - var secondaryCategory = null; - if (path[0] === 'hooks') { - secondaryCategory = 'hooks'; + mergeInspectedPaths(path); + } + if (isMostRecentlyInspectedElement(id) && !forceFullData) { + if (!hasElementUpdatedSinceLastInspected) { + if (path !== null) { + var secondaryCategory = null; + if (path[0] === 'hooks') { + secondaryCategory = 'hooks'; + } // If this element has not been updated since it was last inspected, + // we can just return the subset of data in the newly-inspected path. + + return { + id: id, + responseID: requestID, + type: 'hydrated-path', + path: path, + value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path), createIsPathAllowed(null, secondaryCategory), path) + }; + } else { + // If this element has not been updated since it was last inspected, we don't need to return it. + // Instead we can just return the ID to indicate that it has not changed. + return { + id: id, + responseID: requestID, + type: 'no-change' + }; + } } + } else { + currentlyInspectedPaths = {}; + } + hasElementUpdatedSinceLastInspected = false; + try { + mostRecentlyInspectedElement = inspectElementRaw(id); + } catch (error) { + // the error name is synced with ReactDebugHooks + if (error.name === 'ReactDebugToolsRenderError') { + var message = 'Error rendering inspected element.'; + var stack; // Log error & cause for user to debug + + console.error(message + '\n\n', error); + if (error.cause != null) { + var _fiber4 = findCurrentFiberUsingSlowPathById(id); + var componentName = _fiber4 != null ? getDisplayNameForFiber(_fiber4) : null; + console.error('React DevTools encountered an error while trying to inspect hooks. ' + 'This is most likely caused by an error in current inspected component' + (componentName != null ? ": \"".concat(componentName, "\".") : '.') + '\nThe error thrown in the component is: \n\n', error.cause); + if (error.cause instanceof Error) { + message = error.cause.message || message; + stack = error.cause.stack; + } + } + return { + type: 'error', + errorType: 'user', + id: id, + responseID: requestID, + message: message, + stack: stack + }; + } // the error name is synced with ReactDebugHooks + + if (error.name === 'ReactDebugToolsUnsupportedHookError') { + return { + type: 'error', + errorType: 'unknown-hook', + id: id, + responseID: requestID, + message: 'Unsupported hook in the react-debug-tools package: ' + error.message + }; + } // Log Uncaught Error + console.error('Error inspecting element.\n\n', error); return { + type: 'error', + errorType: 'uncaught', id: id, responseID: requestID, - type: 'hydrated-path', - path: path, - value: Object(backend_utils["a"])(Object(utils["h"])(mostRecentlyInspectedElement, path), createIsPathAllowed(null, secondaryCategory), path) + message: error.message, + stack: error.stack }; - } else { + } + if (mostRecentlyInspectedElement === null) { return { id: id, responseID: requestID, - type: 'no-change' + type: 'not-found' }; - } - } - } else { - currentlyInspectedPaths = {}; - } - hasElementUpdatedSinceLastInspected = false; - try { - mostRecentlyInspectedElement = inspectElementRaw(id); - } catch (error) { - console.error('Error inspecting element.\n\n', error); - return { - type: 'error', - id: id, - responseID: requestID, - message: error.message, - stack: error.stack - }; - } - if (mostRecentlyInspectedElement === null) { - return { - id: id, - responseID: requestID, - type: 'not-found' - }; - } + } // Any time an inspected element has an update, + // we should update the selected $r value as wel. + // Do this before dehydration (cleanForBridge). - updateSelectedElement(mostRecentlyInspectedElement); + updateSelectedElement(mostRecentlyInspectedElement); // Clone before cleaning so that we preserve the full data. + // This will enable us to send patches without re-inspecting if hydrated paths are requested. + // (Reducing how often we shallow-render is a better DX for function components that use hooks.) - var cleanedInspectedElement = _objectSpread({}, mostRecentlyInspectedElement); - cleanedInspectedElement.context = Object(backend_utils["a"])(cleanedInspectedElement.context, createIsPathAllowed('context', null)); - cleanedInspectedElement.hooks = Object(backend_utils["a"])(cleanedInspectedElement.hooks, createIsPathAllowed('hooks', 'hooks')); - cleanedInspectedElement.props = Object(backend_utils["a"])(cleanedInspectedElement.props, createIsPathAllowed('props', null)); - cleanedInspectedElement.state = Object(backend_utils["a"])(cleanedInspectedElement.state, createIsPathAllowed('state', null)); - return { - id: id, - responseID: requestID, - type: 'full-data', - value: cleanedInspectedElement - }; - } - function logElementToConsole(id) { - var result = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id); - if (result === null) { - console.warn("Could not find Fiber with id \"".concat(id, "\"")); - return; - } - var supportsGroup = typeof console.groupCollapsed === 'function'; - if (supportsGroup) { - console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), - 'color: var(--dom-tag-name-color); font-weight: normal;'); - } - if (result.props !== null) { - console.log('Props:', result.props); - } - if (result.state !== null) { - console.log('State:', result.state); - } - if (result.hooks !== null) { - console.log('Hooks:', result.hooks); - } - var nativeNodes = findNativeNodesForFiberID(id); - if (nativeNodes !== null) { - console.log('Nodes:', nativeNodes); - } - if (result.source !== null) { - console.log('Location:', result.source); - } - if (window.chrome || /firefox/i.test(navigator.userAgent)) { - console.log('Right-click any value to save it as a global variable for further inspection.'); - } - if (supportsGroup) { - console.groupEnd(); - } - } - function deletePath(type, id, hookID, path) { - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber !== null) { - var instance = fiber.stateNode; - switch (type) { - case 'context': - path = path.slice(1); - switch (fiber.tag) { - case ClassComponent: - if (path.length === 0) { - } else { - Object(utils["a"])(instance.context, path); + var cleanedInspectedElement = renderer_objectSpread({}, mostRecentlyInspectedElement); // $FlowFixMe[prop-missing] found when upgrading Flow + + cleanedInspectedElement.context = cleanForBridge(cleanedInspectedElement.context, createIsPathAllowed('context', null)); // $FlowFixMe[prop-missing] found when upgrading Flow + + cleanedInspectedElement.hooks = cleanForBridge(cleanedInspectedElement.hooks, createIsPathAllowed('hooks', 'hooks')); // $FlowFixMe[prop-missing] found when upgrading Flow + + cleanedInspectedElement.props = cleanForBridge(cleanedInspectedElement.props, createIsPathAllowed('props', null)); // $FlowFixMe[prop-missing] found when upgrading Flow + + cleanedInspectedElement.state = cleanForBridge(cleanedInspectedElement.state, createIsPathAllowed('state', null)); + return { + id: id, + responseID: requestID, + type: 'full-data', + // $FlowFixMe[prop-missing] found when upgrading Flow + value: cleanedInspectedElement + }; + } + function logElementToConsole(id) { + var result = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id); + if (result === null) { + console.warn("Could not find Fiber with id \"".concat(id, "\"")); + return; + } + var supportsGroup = typeof console.groupCollapsed === 'function'; + if (supportsGroup) { + console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), + // --dom-tag-name-color is the CSS variable Chrome styles HTML elements with in the console. + 'color: var(--dom-tag-name-color); font-weight: normal;'); + } + if (result.props !== null) { + console.log('Props:', result.props); + } + if (result.state !== null) { + console.log('State:', result.state); + } + if (result.hooks !== null) { + console.log('Hooks:', result.hooks); + } + var nativeNodes = findNativeNodesForFiberID(id); + if (nativeNodes !== null) { + console.log('Nodes:', nativeNodes); + } + if (result.source !== null) { + console.log('Location:', result.source); + } + if (window.chrome || /firefox/i.test(navigator.userAgent)) { + console.log('Right-click any value to save it as a global variable for further inspection.'); + } + if (supportsGroup) { + console.groupEnd(); + } + } + function deletePath(type, id, hookID, path) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + // To simplify hydration and display of primitive context values (e.g. number, string) + // the inspectElement() method wraps context in a {value: ...} object. + // We need to remove the first part of the path (the "value") before continuing. + path = path.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (path.length === 0) {// Simple context value (noop) + } else { + deletePathInObject(instance.context, path); + } + instance.forceUpdate(); + break; + case FunctionComponent: + // Function components using legacy context are not editable + // because there's no instance on which to create a cloned, mutated context. + break; } - instance.forceUpdate(); break; - case FunctionComponent: + case 'hooks': + if (typeof overrideHookStateDeletePath === 'function') { + overrideHookStateDeletePath(fiber, hookID, path); + } break; - } - break; - case 'hooks': - if (typeof overrideHookStateDeletePath === 'function') { - overrideHookStateDeletePath(fiber, hookID, path); - } - break; - case 'props': - if (instance === null) { - if (typeof overridePropsDeletePath === 'function') { - overridePropsDeletePath(fiber, path); - } - } else { - fiber.pendingProps = Object(backend_utils["c"])(instance.props, path); - instance.forceUpdate(); - } - break; - case 'state': - Object(utils["a"])(instance.state, path); - instance.forceUpdate(); - break; - } - } - } - function renamePath(type, id, hookID, oldPath, newPath) { - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber !== null) { - var instance = fiber.stateNode; - switch (type) { - case 'context': - oldPath = oldPath.slice(1); - newPath = newPath.slice(1); - switch (fiber.tag) { - case ClassComponent: - if (oldPath.length === 0) { + case 'props': + if (instance === null) { + if (typeof overridePropsDeletePath === 'function') { + overridePropsDeletePath(fiber, path); + } } else { - Object(utils["k"])(instance.context, oldPath, newPath); + fiber.pendingProps = copyWithDelete(instance.props, path); + instance.forceUpdate(); } - instance.forceUpdate(); break; - case FunctionComponent: + case 'state': + deletePathInObject(instance.state, path); + instance.forceUpdate(); break; } - break; - case 'hooks': - if (typeof overrideHookStateRenamePath === 'function') { - overrideHookStateRenamePath(fiber, hookID, oldPath, newPath); - } - break; - case 'props': - if (instance === null) { - if (typeof overridePropsRenamePath === 'function') { - overridePropsRenamePath(fiber, oldPath, newPath); - } - } else { - fiber.pendingProps = Object(backend_utils["d"])(instance.props, oldPath, newPath); - instance.forceUpdate(); - } - break; - case 'state': - Object(utils["k"])(instance.state, oldPath, newPath); - instance.forceUpdate(); - break; + } } - } - } - function overrideValueAtPath(type, id, hookID, path, value) { - var fiber = findCurrentFiberUsingSlowPathById(id); - if (fiber !== null) { - var instance = fiber.stateNode; - switch (type) { - case 'context': - path = path.slice(1); - switch (fiber.tag) { - case ClassComponent: - if (path.length === 0) { - instance.context = value; + function renamePath(type, id, hookID, oldPath, newPath) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + // To simplify hydration and display of primitive context values (e.g. number, string) + // the inspectElement() method wraps context in a {value: ...} object. + // We need to remove the first part of the path (the "value") before continuing. + oldPath = oldPath.slice(1); + newPath = newPath.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (oldPath.length === 0) {// Simple context value (noop) + } else { + renamePathInObject(instance.context, oldPath, newPath); + } + instance.forceUpdate(); + break; + case FunctionComponent: + // Function components using legacy context are not editable + // because there's no instance on which to create a cloned, mutated context. + break; + } + break; + case 'hooks': + if (typeof overrideHookStateRenamePath === 'function') { + overrideHookStateRenamePath(fiber, hookID, oldPath, newPath); + } + break; + case 'props': + if (instance === null) { + if (typeof overridePropsRenamePath === 'function') { + overridePropsRenamePath(fiber, oldPath, newPath); + } } else { - Object(utils["l"])(instance.context, path, value); + fiber.pendingProps = copyWithRename(instance.props, oldPath, newPath); + instance.forceUpdate(); } - instance.forceUpdate(); break; - case FunctionComponent: + case 'state': + renamePathInObject(instance.state, oldPath, newPath); + instance.forceUpdate(); break; } - break; - case 'hooks': - if (typeof overrideHookState === 'function') { - overrideHookState(fiber, hookID, path, value); - } - break; - case 'props': - switch (fiber.tag) { - case ClassComponent: - fiber.pendingProps = Object(backend_utils["e"])(instance.props, path, value); - instance.forceUpdate(); + } + } + function overrideValueAtPath(type, id, hookID, path, value) { + var fiber = findCurrentFiberUsingSlowPathById(id); + if (fiber !== null) { + var instance = fiber.stateNode; + switch (type) { + case 'context': + // To simplify hydration and display of primitive context values (e.g. number, string) + // the inspectElement() method wraps context in a {value: ...} object. + // We need to remove the first part of the path (the "value") before continuing. + path = path.slice(1); + switch (fiber.tag) { + case ClassComponent: + if (path.length === 0) { + // Simple context value + instance.context = value; + } else { + utils_setInObject(instance.context, path, value); + } + instance.forceUpdate(); + break; + case FunctionComponent: + // Function components using legacy context are not editable + // because there's no instance on which to create a cloned, mutated context. + break; + } break; - default: - if (typeof overrideProps === 'function') { - overrideProps(fiber, path, value); + case 'hooks': + if (typeof overrideHookState === 'function') { + overrideHookState(fiber, hookID, path, value); } break; - } - break; - case 'state': - switch (fiber.tag) { - case ClassComponent: - Object(utils["l"])(instance.state, path, value); - instance.forceUpdate(); + case 'props': + switch (fiber.tag) { + case ClassComponent: + fiber.pendingProps = copyWithSet(instance.props, path, value); + instance.forceUpdate(); + break; + default: + if (typeof overrideProps === 'function') { + overrideProps(fiber, path, value); + } + break; + } + break; + case 'state': + switch (fiber.tag) { + case ClassComponent: + utils_setInObject(instance.state, path, value); + instance.forceUpdate(); + break; + } break; } - break; + } } - } - } - var currentCommitProfilingMetadata = null; - var displayNamesByRootID = null; - var idToContextsMap = null; - var initialTreeBaseDurationsMap = null; - var initialIDToRootMap = null; - var isProfiling = false; - var profilingStartTime = 0; - var recordChangeDescriptions = false; - var rootToCommitProfilingMetadataMap = null; - function getProfilingData() { - var dataForRoots = []; - if (rootToCommitProfilingMetadataMap === null) { - throw Error('getProfilingData() called before any profiling data was recorded'); - } - rootToCommitProfilingMetadataMap.forEach(function (commitProfilingMetadata, rootID) { - var commitData = []; - var initialTreeBaseDurations = []; - var displayName = displayNamesByRootID !== null && displayNamesByRootID.get(rootID) || 'Unknown'; - if (initialTreeBaseDurationsMap != null) { - initialTreeBaseDurationsMap.forEach(function (treeBaseDuration, id) { - if (initialIDToRootMap != null && initialIDToRootMap.get(id) === rootID) { - initialTreeBaseDurations.push([id, treeBaseDuration]); + var currentCommitProfilingMetadata = null; + var displayNamesByRootID = null; + var idToContextsMap = null; + var initialTreeBaseDurationsMap = null; + var initialIDToRootMap = null; + var isProfiling = false; + var profilingStartTime = 0; + var recordChangeDescriptions = false; + var rootToCommitProfilingMetadataMap = null; + function getProfilingData() { + var dataForRoots = []; + if (rootToCommitProfilingMetadataMap === null) { + throw Error('getProfilingData() called before any profiling data was recorded'); + } + rootToCommitProfilingMetadataMap.forEach(function (commitProfilingMetadata, rootID) { + var commitData = []; + var initialTreeBaseDurations = []; + var displayName = displayNamesByRootID !== null && displayNamesByRootID.get(rootID) || 'Unknown'; + if (initialTreeBaseDurationsMap != null) { + initialTreeBaseDurationsMap.forEach(function (treeBaseDuration, id) { + if (initialIDToRootMap != null && initialIDToRootMap.get(id) === rootID) { + // We don't need to convert milliseconds to microseconds in this case, + // because the profiling summary is JSON serialized. + initialTreeBaseDurations.push([id, treeBaseDuration]); + } + }); } + commitProfilingMetadata.forEach(function (commitProfilingData, commitIndex) { + var changeDescriptions = commitProfilingData.changeDescriptions, + durations = commitProfilingData.durations, + effectDuration = commitProfilingData.effectDuration, + maxActualDuration = commitProfilingData.maxActualDuration, + passiveEffectDuration = commitProfilingData.passiveEffectDuration, + priorityLevel = commitProfilingData.priorityLevel, + commitTime = commitProfilingData.commitTime, + updaters = commitProfilingData.updaters; + var fiberActualDurations = []; + var fiberSelfDurations = []; + for (var i = 0; i < durations.length; i += 3) { + var fiberID = durations[i]; + fiberActualDurations.push([fiberID, durations[i + 1]]); + fiberSelfDurations.push([fiberID, durations[i + 2]]); + } + commitData.push({ + changeDescriptions: changeDescriptions !== null ? Array.from(changeDescriptions.entries()) : null, + duration: maxActualDuration, + effectDuration: effectDuration, + fiberActualDurations: fiberActualDurations, + fiberSelfDurations: fiberSelfDurations, + passiveEffectDuration: passiveEffectDuration, + priorityLevel: priorityLevel, + timestamp: commitTime, + updaters: updaters + }); + }); + dataForRoots.push({ + commitData: commitData, + displayName: displayName, + initialTreeBaseDurations: initialTreeBaseDurations, + rootID: rootID + }); }); + var timelineData = null; + if (typeof getTimelineData === 'function') { + var currentTimelineData = getTimelineData(); + if (currentTimelineData) { + var batchUIDToMeasuresMap = currentTimelineData.batchUIDToMeasuresMap, + internalModuleSourceToRanges = currentTimelineData.internalModuleSourceToRanges, + laneToLabelMap = currentTimelineData.laneToLabelMap, + laneToReactMeasureMap = currentTimelineData.laneToReactMeasureMap, + rest = _objectWithoutProperties(currentTimelineData, ["batchUIDToMeasuresMap", "internalModuleSourceToRanges", "laneToLabelMap", "laneToReactMeasureMap"]); + timelineData = renderer_objectSpread(renderer_objectSpread({}, rest), {}, { + // Most of the data is safe to parse as-is, + // but we need to convert the nested Arrays back to Maps. + // Most of the data is safe to serialize as-is, + // but we need to convert the Maps to nested Arrays. + batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()), + internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()), + laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()), + laneToReactMeasureKeyValueArray: Array.from(laneToReactMeasureMap.entries()) + }); + } + } + return { + dataForRoots: dataForRoots, + rendererID: rendererID, + timelineData: timelineData + }; } - commitProfilingMetadata.forEach(function (commitProfilingData, commitIndex) { - var changeDescriptions = commitProfilingData.changeDescriptions, - durations = commitProfilingData.durations, - effectDuration = commitProfilingData.effectDuration, - maxActualDuration = commitProfilingData.maxActualDuration, - passiveEffectDuration = commitProfilingData.passiveEffectDuration, - priorityLevel = commitProfilingData.priorityLevel, - commitTime = commitProfilingData.commitTime, - updaters = commitProfilingData.updaters; - var fiberActualDurations = []; - var fiberSelfDurations = []; - for (var i = 0; i < durations.length; i += 3) { - var fiberID = durations[i]; - fiberActualDurations.push([fiberID, durations[i + 1]]); - fiberSelfDurations.push([fiberID, durations[i + 2]]); - } - commitData.push({ - changeDescriptions: changeDescriptions !== null ? Array.from(changeDescriptions.entries()) : null, - duration: maxActualDuration, - effectDuration: effectDuration, - fiberActualDurations: fiberActualDurations, - fiberSelfDurations: fiberSelfDurations, - passiveEffectDuration: passiveEffectDuration, - priorityLevel: priorityLevel, - timestamp: commitTime, - updaters: updaters - }); - }); - dataForRoots.push({ - commitData: commitData, - displayName: displayName, - initialTreeBaseDurations: initialTreeBaseDurations, - rootID: rootID - }); - }); - var timelineData = null; - if (typeof getTimelineData === 'function') { - var currentTimelineData = getTimelineData(); - if (currentTimelineData) { - var batchUIDToMeasuresMap = currentTimelineData.batchUIDToMeasuresMap, - internalModuleSourceToRanges = currentTimelineData.internalModuleSourceToRanges, - laneToLabelMap = currentTimelineData.laneToLabelMap, - laneToReactMeasureMap = currentTimelineData.laneToReactMeasureMap, - rest = _objectWithoutProperties(currentTimelineData, ["batchUIDToMeasuresMap", "internalModuleSourceToRanges", "laneToLabelMap", "laneToReactMeasureMap"]); - timelineData = _objectSpread(_objectSpread({}, rest), {}, { - batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()), - internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()), - laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()), - laneToReactMeasureKeyValueArray: Array.from(laneToReactMeasureMap.entries()) + function startProfiling(shouldRecordChangeDescriptions) { + if (isProfiling) { + return; + } + recordChangeDescriptions = shouldRecordChangeDescriptions; // Capture initial values as of the time profiling starts. + // It's important we snapshot both the durations and the id-to-root map, + // since either of these may change during the profiling session + // (e.g. when a fiber is re-rendered or when a fiber gets removed). + + displayNamesByRootID = new Map(); + initialTreeBaseDurationsMap = new Map(idToTreeBaseDurationMap); + initialIDToRootMap = new Map(idToRootMap); + idToContextsMap = new Map(); + hook.getFiberRoots(rendererID).forEach(function (root) { + var rootID = getFiberIDThrows(root.current); + displayNamesByRootID.set(rootID, getDisplayNameForRoot(root.current)); + if (shouldRecordChangeDescriptions) { + // Record all contexts at the time profiling is started. + // Fibers only store the current context value, + // so we need to track them separately in order to determine changed keys. + crawlToInitializeContextsMap(root.current); + } }); + isProfiling = true; + profilingStartTime = renderer_getCurrentTime(); + rootToCommitProfilingMetadataMap = new Map(); + if (toggleProfilingStatus !== null) { + toggleProfilingStatus(true); + } } - } - return { - dataForRoots: dataForRoots, - rendererID: rendererID, - timelineData: timelineData - }; - } - function startProfiling(shouldRecordChangeDescriptions) { - if (isProfiling) { - return; - } - recordChangeDescriptions = shouldRecordChangeDescriptions; + function stopProfiling() { + isProfiling = false; + recordChangeDescriptions = false; + if (toggleProfilingStatus !== null) { + toggleProfilingStatus(false); + } + } // Automatically start profiling so that we don't miss timing info from initial "mount". + + if (sessionStorageGetItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY) === 'true') { + startProfiling(sessionStorageGetItem(SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY) === 'true'); + } // React will switch between these implementations depending on whether + // we have any manually suspended/errored-out Fibers or not. + + function shouldErrorFiberAlwaysNull() { + return null; + } // Map of id and its force error status: true (error), false (toggled off), + // null (do nothing) - displayNamesByRootID = new Map(); - initialTreeBaseDurationsMap = new Map(idToTreeBaseDurationMap); - initialIDToRootMap = new Map(idToRootMap); - idToContextsMap = new Map(); - hook.getFiberRoots(rendererID).forEach(function (root) { - var rootID = getFiberIDThrows(root.current); - displayNamesByRootID.set(rootID, getDisplayNameForRoot(root.current)); - if (shouldRecordChangeDescriptions) { - crawlToInitializeContextsMap(root.current); + var forceErrorForFiberIDs = new Map(); + function shouldErrorFiberAccordingToMap(fiber) { + if (typeof setErrorHandler !== 'function') { + throw new Error('Expected overrideError() to not get called for earlier React versions.'); + } + var id = getFiberIDUnsafe(fiber); + if (id === null) { + return null; + } + var status = null; + if (forceErrorForFiberIDs.has(id)) { + status = forceErrorForFiberIDs.get(id); + if (status === false) { + // TRICKY overrideError adds entries to this Map, + // so ideally it would be the method that clears them too, + // but that would break the functionality of the feature, + // since DevTools needs to tell React to act differently than it normally would + // (don't just re-render the failed boundary, but reset its errored state too). + // So we can only clear it after telling React to reset the state. + // Technically this is premature and we should schedule it for later, + // since the render could always fail without committing the updated error boundary, + // but since this is a DEV-only feature, the simplicity is worth the trade off. + forceErrorForFiberIDs.delete(id); + if (forceErrorForFiberIDs.size === 0) { + // Last override is gone. Switch React back to fast path. + setErrorHandler(shouldErrorFiberAlwaysNull); + } + } + } + return status; } - }); - isProfiling = true; - profilingStartTime = renderer_getCurrentTime(); - rootToCommitProfilingMetadataMap = new Map(); - if (toggleProfilingStatus !== null) { - toggleProfilingStatus(true); - } - } - function stopProfiling() { - isProfiling = false; - recordChangeDescriptions = false; - if (toggleProfilingStatus !== null) { - toggleProfilingStatus(false); - } - } + function overrideError(id, forceError) { + if (typeof setErrorHandler !== 'function' || typeof scheduleUpdate !== 'function') { + throw new Error('Expected overrideError() to not get called for earlier React versions.'); + } + forceErrorForFiberIDs.set(id, forceError); + if (forceErrorForFiberIDs.size === 1) { + // First override is added. Switch React to slower path. + setErrorHandler(shouldErrorFiberAccordingToMap); + } + var fiber = idToArbitraryFiberMap.get(id); + if (fiber != null) { + scheduleUpdate(fiber); + } + } + function shouldSuspendFiberAlwaysFalse() { + return false; + } + var forceFallbackForSuspenseIDs = new Set(); + function shouldSuspendFiberAccordingToSet(fiber) { + var maybeID = getFiberIDUnsafe(fiber); + return maybeID !== null && forceFallbackForSuspenseIDs.has(maybeID); + } + function overrideSuspense(id, forceFallback) { + if (typeof setSuspenseHandler !== 'function' || typeof scheduleUpdate !== 'function') { + throw new Error('Expected overrideSuspense() to not get called for earlier React versions.'); + } + if (forceFallback) { + forceFallbackForSuspenseIDs.add(id); + if (forceFallbackForSuspenseIDs.size === 1) { + // First override is added. Switch React to slower path. + setSuspenseHandler(shouldSuspendFiberAccordingToSet); + } + } else { + forceFallbackForSuspenseIDs.delete(id); + if (forceFallbackForSuspenseIDs.size === 0) { + // Last override is gone. Switch React back to fast path. + setSuspenseHandler(shouldSuspendFiberAlwaysFalse); + } + } + var fiber = idToArbitraryFiberMap.get(id); + if (fiber != null) { + scheduleUpdate(fiber); + } + } // Remember if we're trying to restore the selection after reload. + // In that case, we'll do some extra checks for matching mounts. + + var trackedPath = null; + var trackedPathMatchFiber = null; + var trackedPathMatchDepth = -1; + var mightBeOnTrackedPath = false; + function setTrackedPath(path) { + if (path === null) { + trackedPathMatchFiber = null; + trackedPathMatchDepth = -1; + mightBeOnTrackedPath = false; + } + trackedPath = path; + } // We call this before traversing a new mount. + // It remembers whether this Fiber is the next best match for tracked path. + // The return value signals whether we should keep matching siblings or not. + + function updateTrackedPathStateBeforeMount(fiber) { + if (trackedPath === null || !mightBeOnTrackedPath) { + // Fast path: there's nothing to track so do nothing and ignore siblings. + return false; + } + var returnFiber = fiber.return; + var returnAlternate = returnFiber !== null ? returnFiber.alternate : null; // By now we know there's some selection to restore, and this is a new Fiber. + // Is this newly mounted Fiber a direct child of the current best match? + // (This will also be true for new roots if we haven't matched anything yet.) + + if (trackedPathMatchFiber === returnFiber || trackedPathMatchFiber === returnAlternate && returnAlternate !== null) { + // Is this the next Fiber we should select? Let's compare the frames. + var actualFrame = getPathFrame(fiber); // $FlowFixMe[incompatible-use] found when upgrading Flow + + var expectedFrame = trackedPath[trackedPathMatchDepth + 1]; + if (expectedFrame === undefined) { + throw new Error('Expected to see a frame at the next depth.'); + } + if (actualFrame.index === expectedFrame.index && actualFrame.key === expectedFrame.key && actualFrame.displayName === expectedFrame.displayName) { + // We have our next match. + trackedPathMatchFiber = fiber; + trackedPathMatchDepth++; // Are we out of frames to match? + // $FlowFixMe[incompatible-use] found when upgrading Flow + + if (trackedPathMatchDepth === trackedPath.length - 1) { + // There's nothing that can possibly match afterwards. + // Don't check the children. + mightBeOnTrackedPath = false; + } else { + // Check the children, as they might reveal the next match. + mightBeOnTrackedPath = true; + } // In either case, since we have a match, we don't need + // to check the siblings. They'll never match. - if (Object(storage["c"])(constants["k"]) === 'true') { - startProfiling(Object(storage["c"])(constants["j"]) === 'true'); - } + return false; + } + } // This Fiber's parent is on the path, but this Fiber itself isn't. + // There's no need to check its children--they won't be on the path either. - function shouldErrorFiberAlwaysNull() { - return null; - } + mightBeOnTrackedPath = false; // However, one of its siblings may be on the path so keep searching. - var forceErrorForFiberIDs = new Map(); - function shouldErrorFiberAccordingToMap(fiber) { - if (typeof setErrorHandler !== 'function') { - throw new Error('Expected overrideError() to not get called for earlier React versions.'); - } - var id = getFiberIDUnsafe(fiber); - if (id === null) { - return null; - } - var status = null; - if (forceErrorForFiberIDs.has(id)) { - status = forceErrorForFiberIDs.get(id); - if (status === false) { - forceErrorForFiberIDs.delete(id); - if (forceErrorForFiberIDs.size === 0) { - setErrorHandler(shouldErrorFiberAlwaysNull); + return true; + } + function updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath) { + // updateTrackedPathStateBeforeMount() told us whether to match siblings. + // Now that we're entering siblings, let's use that information. + mightBeOnTrackedPath = mightSiblingsBeOnTrackedPath; + } // Roots don't have a real persistent identity. + // A root's "pseudo key" is "childDisplayName:indexWithThatName". + // For example, "App:0" or, in case of similar roots, "Story:0", "Story:1", etc. + // We will use this to try to disambiguate roots when restoring selection between reloads. + + var rootPseudoKeys = new Map(); + var rootDisplayNameCounter = new Map(); + function setRootPseudoKey(id, fiber) { + var name = getDisplayNameForRoot(fiber); + var counter = rootDisplayNameCounter.get(name) || 0; + rootDisplayNameCounter.set(name, counter + 1); + var pseudoKey = "".concat(name, ":").concat(counter); + rootPseudoKeys.set(id, pseudoKey); + } + function removeRootPseudoKey(id) { + var pseudoKey = rootPseudoKeys.get(id); + if (pseudoKey === undefined) { + throw new Error('Expected root pseudo key to be known.'); + } + var name = pseudoKey.slice(0, pseudoKey.lastIndexOf(':')); + var counter = rootDisplayNameCounter.get(name); + if (counter === undefined) { + throw new Error('Expected counter to be known.'); + } + if (counter > 1) { + rootDisplayNameCounter.set(name, counter - 1); + } else { + rootDisplayNameCounter.delete(name); + } + rootPseudoKeys.delete(id); + } + function getDisplayNameForRoot(fiber) { + var preferredDisplayName = null; + var fallbackDisplayName = null; + var child = fiber.child; // Go at most three levels deep into direct children + // while searching for a child that has a displayName. + + for (var i = 0; i < 3; i++) { + if (child === null) { + break; + } + var displayName = getDisplayNameForFiber(child); + if (displayName !== null) { + // Prefer display names that we get from user-defined components. + // We want to avoid using e.g. 'Suspense' unless we find nothing else. + if (typeof child.type === 'function') { + // There's a few user-defined tags, but we'll prefer the ones + // that are usually explicitly named (function or class components). + preferredDisplayName = displayName; + } else if (fallbackDisplayName === null) { + fallbackDisplayName = displayName; + } + } + if (preferredDisplayName !== null) { + break; + } + child = child.child; + } + return preferredDisplayName || fallbackDisplayName || 'Anonymous'; + } + function getPathFrame(fiber) { + var key = fiber.key; + var displayName = getDisplayNameForFiber(fiber); + var index = fiber.index; + switch (fiber.tag) { + case HostRoot: + // Roots don't have a real displayName, index, or key. + // Instead, we'll use the pseudo key (childDisplayName:indexWithThatName). + var id = getFiberIDThrows(fiber); + var pseudoKey = rootPseudoKeys.get(id); + if (pseudoKey === undefined) { + throw new Error('Expected mounted root to have known pseudo key.'); + } + displayName = pseudoKey; + break; + case HostComponent: + displayName = fiber.type; + break; + default: + break; + } + return { + displayName: displayName, + key: key, + index: index + }; + } // Produces a serializable representation that does a best effort + // of identifying a particular Fiber between page reloads. + // The return path will contain Fibers that are "invisible" to the store + // because their keys and indexes are important to restoring the selection. + + function getPathForElement(id) { + var fiber = idToArbitraryFiberMap.get(id); + if (fiber == null) { + return null; + } + var keyPath = []; + while (fiber !== null) { + // $FlowFixMe[incompatible-call] found when upgrading Flow + keyPath.push(getPathFrame(fiber)); // $FlowFixMe[incompatible-use] found when upgrading Flow + + fiber = fiber.return; + } + keyPath.reverse(); + return keyPath; + } + function getBestMatchForTrackedPath() { + if (trackedPath === null) { + // Nothing to match. + return null; + } + if (trackedPathMatchFiber === null) { + // We didn't find anything. + return null; + } // Find the closest Fiber store is aware of. + + var fiber = trackedPathMatchFiber; + while (fiber !== null && shouldFilterFiber(fiber)) { + fiber = fiber.return; + } + if (fiber === null) { + return null; + } + return { + id: getFiberIDThrows(fiber), + // $FlowFixMe[incompatible-use] found when upgrading Flow + isFullMatch: trackedPathMatchDepth === trackedPath.length - 1 + }; + } + var formatPriorityLevel = function formatPriorityLevel(priorityLevel) { + if (priorityLevel == null) { + return 'Unknown'; + } + switch (priorityLevel) { + case ImmediatePriority: + return 'Immediate'; + case UserBlockingPriority: + return 'User-Blocking'; + case NormalPriority: + return 'Normal'; + case LowPriority: + return 'Low'; + case IdlePriority: + return 'Idle'; + case NoPriority: + default: + return 'Unknown'; } + }; + function setTraceUpdatesEnabled(isEnabled) { + traceUpdatesEnabled = isEnabled; + } + function hasFiberWithId(id) { + return idToArbitraryFiberMap.has(id); } + return { + cleanup: cleanup, + clearErrorsAndWarnings: clearErrorsAndWarnings, + clearErrorsForFiberID: clearErrorsForFiberID, + clearWarningsForFiberID: clearWarningsForFiberID, + getSerializedElementValueByPath: getSerializedElementValueByPath, + deletePath: deletePath, + findNativeNodesForFiberID: findNativeNodesForFiberID, + flushInitialOperations: flushInitialOperations, + getBestMatchForTrackedPath: getBestMatchForTrackedPath, + getDisplayNameForFiberID: getDisplayNameForFiberID, + getFiberForNative: getFiberForNative, + getFiberIDForNative: getFiberIDForNative, + getInstanceAndStyle: getInstanceAndStyle, + getOwnersList: getOwnersList, + getPathForElement: getPathForElement, + getProfilingData: getProfilingData, + handleCommitFiberRoot: handleCommitFiberRoot, + handleCommitFiberUnmount: handleCommitFiberUnmount, + handlePostCommitFiberRoot: handlePostCommitFiberRoot, + hasFiberWithId: hasFiberWithId, + inspectElement: inspectElement, + logElementToConsole: logElementToConsole, + patchConsoleForStrictMode: patchForStrictMode, + prepareViewAttributeSource: prepareViewAttributeSource, + prepareViewElementSource: prepareViewElementSource, + overrideError: overrideError, + overrideSuspense: overrideSuspense, + overrideValueAtPath: overrideValueAtPath, + renamePath: renamePath, + renderer: renderer, + setTraceUpdatesEnabled: setTraceUpdatesEnabled, + setTrackedPath: setTrackedPath, + startProfiling: startProfiling, + stopProfiling: stopProfiling, + storeAsGlobal: storeAsGlobal, + unpatchConsoleForStrictMode: unpatchForStrictMode, + updateComponentFilters: updateComponentFilters + }; } - return status; - } - function overrideError(id, forceError) { - if (typeof setErrorHandler !== 'function' || typeof scheduleUpdate !== 'function') { - throw new Error('Expected overrideError() to not get called for earlier React versions.'); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/console.js + function console_toConsumableArray(arr) { + return console_arrayWithoutHoles(arr) || console_iterableToArray(arr) || console_unsupportedIterableToArray(arr) || console_nonIterableSpread(); } - forceErrorForFiberIDs.set(id, forceError); - if (forceErrorForFiberIDs.size === 1) { - setErrorHandler(shouldErrorFiberAccordingToMap); + function console_nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - var fiber = idToArbitraryFiberMap.get(id); - if (fiber != null) { - scheduleUpdate(fiber); + function console_iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - } - function shouldSuspendFiberAlwaysFalse() { - return false; - } - var forceFallbackForSuspenseIDs = new Set(); - function shouldSuspendFiberAccordingToSet(fiber) { - var maybeID = getFiberIDUnsafe(fiber); - return maybeID !== null && forceFallbackForSuspenseIDs.has(maybeID); - } - function overrideSuspense(id, forceFallback) { - if (typeof setSuspenseHandler !== 'function' || typeof scheduleUpdate !== 'function') { - throw new Error('Expected overrideSuspense() to not get called for earlier React versions.'); + function console_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return console_arrayLikeToArray(arr); } - if (forceFallback) { - forceFallbackForSuspenseIDs.add(id); - if (forceFallbackForSuspenseIDs.size === 1) { - setSuspenseHandler(shouldSuspendFiberAccordingToSet); + function console_createForOfIteratorHelper(o, allowArrayLike) { + var it; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = console_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function F() {}; + return { + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e) { + throw _e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - } else { - forceFallbackForSuspenseIDs.delete(id); - if (forceFallbackForSuspenseIDs.size === 0) { - setSuspenseHandler(shouldSuspendFiberAlwaysFalse); + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function e(_e2) { + didErr = true; + err = _e2; + }, + f: function f() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } + function console_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return console_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return console_arrayLikeToArray(o, minLen); + } + function console_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var OVERRIDE_CONSOLE_METHODS = ['error', 'trace', 'warn']; + var DIMMED_NODE_CONSOLE_COLOR = '\x1b[2m%s\x1b[0m'; // React's custom built component stack strings match "\s{4}in" + // Chrome's prefix matches "\s{4}at" + + var PREFIX_REGEX = /\s{4}(in|at)\s{1}/; // Firefox and Safari have no prefix ("") + // but we can fallback to looking for location info (e.g. "foo.js:12:345") + + var ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/; + function isStringComponentStack(text) { + return PREFIX_REGEX.test(text) || ROW_COLUMN_NUMBER_REGEX.test(text); + } + var STYLE_DIRECTIVE_REGEX = /^%c/; // This function tells whether or not the arguments for a console + // method has been overridden by the patchForStrictMode function. + // If it has we'll need to do some special formatting of the arguments + // so the console color stays consistent + + function isStrictModeOverride(args, method) { + return args.length >= 2 && STYLE_DIRECTIVE_REGEX.test(args[0]) && args[1] === "color: ".concat(getConsoleColor(method) || ''); + } + function getConsoleColor(method) { + switch (method) { + case 'warn': + return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; + case 'error': + return consoleSettingsRef.browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; + case 'log': + default: + return consoleSettingsRef.browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; } } - var fiber = idToArbitraryFiberMap.get(id); - if (fiber != null) { - scheduleUpdate(fiber); + var injectedRenderers = new Map(); + var targetConsole = console; + var targetConsoleMethods = {}; + for (var method in console) { + targetConsoleMethods[method] = console[method]; } - } - - var trackedPath = null; - var trackedPathMatchFiber = null; - var trackedPathMatchDepth = -1; - var mightBeOnTrackedPath = false; - function setTrackedPath(path) { - if (path === null) { - trackedPathMatchFiber = null; - trackedPathMatchDepth = -1; - mightBeOnTrackedPath = false; + var unpatchFn = null; + var isNode = false; + try { + isNode = undefined === global; + } catch (error) {} // Enables e.g. Jest tests to inject a mock console object. + + function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { + targetConsole = targetConsoleForTesting; + targetConsoleMethods = {}; + for (var _method in targetConsole) { + targetConsoleMethods[_method] = console[_method]; + } + } // v16 renderers should use this method to inject internals necessary to generate a component stack. + // These internals will be used if the console is patched. + // Injecting them separately allows the console to easily be patched or un-patched later (at runtime). + + function registerRenderer(renderer, onErrorOrWarning) { + var currentDispatcherRef = renderer.currentDispatcherRef, + getCurrentFiber = renderer.getCurrentFiber, + findFiberByHostInstance = renderer.findFiberByHostInstance, + version = renderer.version; // Ignore React v15 and older because they don't expose a component stack anyway. + + if (typeof findFiberByHostInstance !== 'function') { + return; + } // currentDispatcherRef gets injected for v16.8+ to support hooks inspection. + // getCurrentFiber gets injected for v16.9+. + + if (currentDispatcherRef != null && typeof getCurrentFiber === 'function') { + var _getInternalReactCons = getInternalReactConstants(version), + ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork; + injectedRenderers.set(renderer, { + currentDispatcherRef: currentDispatcherRef, + getCurrentFiber: getCurrentFiber, + workTagMap: ReactTypeOfWork, + onErrorOrWarning: onErrorOrWarning + }); + } } - trackedPath = path; - } + var consoleSettingsRef = { + appendComponentStack: false, + breakOnConsoleErrors: false, + showInlineWarningsAndErrors: false, + hideConsoleLogsInStrictMode: false, + browserTheme: 'dark' + }; // Patches console methods to append component stack for the current fiber. + // Call unpatch() to remove the injected behavior. + + function patch(_ref) { + var appendComponentStack = _ref.appendComponentStack, + breakOnConsoleErrors = _ref.breakOnConsoleErrors, + showInlineWarningsAndErrors = _ref.showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, + browserTheme = _ref.browserTheme; + // Settings may change after we've patched the console. + // Using a shared ref allows the patch function to read the latest values. + consoleSettingsRef.appendComponentStack = appendComponentStack; + consoleSettingsRef.breakOnConsoleErrors = breakOnConsoleErrors; + consoleSettingsRef.showInlineWarningsAndErrors = showInlineWarningsAndErrors; + consoleSettingsRef.hideConsoleLogsInStrictMode = hideConsoleLogsInStrictMode; + consoleSettingsRef.browserTheme = browserTheme; + if (appendComponentStack || breakOnConsoleErrors || showInlineWarningsAndErrors) { + if (unpatchFn !== null) { + // Don't patch twice. + return; + } + var originalConsoleMethods = {}; + unpatchFn = function unpatchFn() { + for (var _method2 in originalConsoleMethods) { + try { + targetConsole[_method2] = originalConsoleMethods[_method2]; + } catch (error) {} + } + }; + OVERRIDE_CONSOLE_METHODS.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_ORIGINAL_METHOD__ : targetConsole[method]; // $FlowFixMe[missing-local-annot] - function updateTrackedPathStateBeforeMount(fiber) { - if (trackedPath === null || !mightBeOnTrackedPath) { - return false; - } - var returnFiber = fiber.return; - var returnAlternate = returnFiber !== null ? returnFiber.alternate : null; + var overrideMethod = function overrideMethod() { + var shouldAppendWarningStack = false; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + if (method !== 'log') { + if (consoleSettingsRef.appendComponentStack) { + var lastArg = args.length > 0 ? args[args.length - 1] : null; + var alreadyHasComponentStack = typeof lastArg === 'string' && isStringComponentStack(lastArg); // If we are ever called with a string that already has a component stack, + // e.g. a React error/warning, don't append a second stack. - if (trackedPathMatchFiber === returnFiber || trackedPathMatchFiber === returnAlternate && returnAlternate !== null) { - var actualFrame = getPathFrame(fiber); - var expectedFrame = trackedPath[trackedPathMatchDepth + 1]; - if (expectedFrame === undefined) { - throw new Error('Expected to see a frame at the next depth.'); - } - if (actualFrame.index === expectedFrame.index && actualFrame.key === expectedFrame.key && actualFrame.displayName === expectedFrame.displayName) { - trackedPathMatchFiber = fiber; - trackedPathMatchDepth++; + shouldAppendWarningStack = !alreadyHasComponentStack; + } + } + var shouldShowInlineWarningsAndErrors = consoleSettingsRef.showInlineWarningsAndErrors && (method === 'error' || method === 'warn'); // Search for the first renderer that has a current Fiber. + // We don't handle the edge case of stacks for more than one (e.g. interleaved renderers?) + // eslint-disable-next-line no-for-of-loops/no-for-of-loops - if (trackedPathMatchDepth === trackedPath.length - 1) { - mightBeOnTrackedPath = false; - } else { - mightBeOnTrackedPath = true; - } + var _iterator = console_createForOfIteratorHelper(injectedRenderers.values()), + _step; + try { + var _loop2 = function _loop2() { + _step$value = _step.value, currentDispatcherRef = _step$value.currentDispatcherRef, getCurrentFiber = _step$value.getCurrentFiber, onErrorOrWarning = _step$value.onErrorOrWarning, workTagMap = _step$value.workTagMap; + current = getCurrentFiber(); + if (current != null) { + try { + if (shouldShowInlineWarningsAndErrors) { + // patch() is called by two places: (1) the hook and (2) the renderer backend. + // The backend is what implements a message queue, so it's the only one that injects onErrorOrWarning. + if (typeof onErrorOrWarning === 'function') { + onErrorOrWarning(current, method, + // Copy args before we mutate them (e.g. adding the component stack) + args.slice()); + } + } + if (shouldAppendWarningStack) { + componentStack = getStackByFiberInDevAndProd(workTagMap, current, currentDispatcherRef); + if (componentStack !== '') { + if (isStrictModeOverride(args, method)) { + args[0] = "".concat(args[0], " %s"); + args.push(componentStack); + } else { + args.push(componentStack); + } + } + } + } catch (error) { + // Don't let a DevTools or React internal error interfere with logging. + setTimeout(function () { + throw error; + }, 0); + } finally { + return 1; // break + } + } + }, + _step$value, + currentDispatcherRef, + getCurrentFiber, + onErrorOrWarning, + workTagMap, + current, + componentStack; + for (_iterator.s(); !(_step = _iterator.n()).done;) { + if (_loop2()) break; + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + if (consoleSettingsRef.breakOnConsoleErrors) { + // --- Welcome to debugging with React DevTools --- + // This debugger statement means that you've enabled the "break on warnings" feature. + // Use the browser's Call Stack panel to step out of this override function- + // to where the original warning or error was logged. + // eslint-disable-next-line no-debugger + debugger; + } + originalMethod.apply(void 0, args); + }; + overrideMethod.__REACT_DEVTOOLS_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_OVERRIDE_METHOD__ = overrideMethod; + targetConsole[method] = overrideMethod; + } catch (error) {} + }); + } else { + unpatch(); + } + } // Removed component stack patch from console methods. - return false; + function unpatch() { + if (unpatchFn !== null) { + unpatchFn(); + unpatchFn = null; } } + var unpatchForStrictModeFn = null; // NOTE: KEEP IN SYNC with src/hook.js:patchConsoleForInitialRenderInStrictMode - mightBeOnTrackedPath = false; - - return true; - } - function updateTrackedPathStateAfterMount(mightSiblingsBeOnTrackedPath) { - mightBeOnTrackedPath = mightSiblingsBeOnTrackedPath; - } + function patchForStrictMode() { + if (consoleManagedByDevToolsDuringStrictMode) { + var overrideConsoleMethods = ['error', 'group', 'groupCollapsed', 'info', 'log', 'trace', 'warn']; + if (unpatchForStrictModeFn !== null) { + // Don't patch twice. + return; + } + var originalConsoleMethods = {}; + unpatchForStrictModeFn = function unpatchForStrictModeFn() { + for (var _method3 in originalConsoleMethods) { + try { + targetConsole[_method3] = originalConsoleMethods[_method3]; + } catch (error) {} + } + }; + overrideConsoleMethods.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; // $FlowFixMe[missing-local-annot] - var rootPseudoKeys = new Map(); - var rootDisplayNameCounter = new Map(); - function setRootPseudoKey(id, fiber) { - var name = getDisplayNameForRoot(fiber); - var counter = rootDisplayNameCounter.get(name) || 0; - rootDisplayNameCounter.set(name, counter + 1); - var pseudoKey = "".concat(name, ":").concat(counter); - rootPseudoKeys.set(id, pseudoKey); - } - function removeRootPseudoKey(id) { - var pseudoKey = rootPseudoKeys.get(id); - if (pseudoKey === undefined) { - throw new Error('Expected root pseudo key to be known.'); - } - var name = pseudoKey.substring(0, pseudoKey.lastIndexOf(':')); - var counter = rootDisplayNameCounter.get(name); - if (counter === undefined) { - throw new Error('Expected counter to be known.'); - } - if (counter > 1) { - rootDisplayNameCounter.set(name, counter - 1); - } else { - rootDisplayNameCounter.delete(name); - } - rootPseudoKeys.delete(id); - } - function getDisplayNameForRoot(fiber) { - var preferredDisplayName = null; - var fallbackDisplayName = null; - var child = fiber.child; + var overrideMethod = function overrideMethod() { + if (!consoleSettingsRef.hideConsoleLogsInStrictMode) { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } - for (var i = 0; i < 3; i++) { - if (child === null) { - break; + // Dim the text color of the double logs if we're not + // hiding them. + if (isNode) { + originalMethod(DIMMED_NODE_CONSOLE_COLOR, format.apply(void 0, args)); + } else { + var color = getConsoleColor(method); + if (color) { + originalMethod.apply(void 0, console_toConsumableArray(formatWithStyles(args, "color: ".concat(color)))); + } else { + throw Error('Console color is not defined'); + } + } + } + }; + overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; + targetConsole[method] = overrideMethod; + } catch (error) {} + }); } - var displayName = getDisplayNameForFiber(child); - if (displayName !== null) { - if (typeof child.type === 'function') { - preferredDisplayName = displayName; - } else if (fallbackDisplayName === null) { - fallbackDisplayName = displayName; + } // NOTE: KEEP IN SYNC with src/hook.js:unpatchConsoleForInitialRenderInStrictMode + + function unpatchForStrictMode() { + if (consoleManagedByDevToolsDuringStrictMode) { + if (unpatchForStrictModeFn !== null) { + unpatchForStrictModeFn(); + unpatchForStrictModeFn = null; } } - if (preferredDisplayName !== null) { - break; - } - child = child.child; } - return preferredDisplayName || fallbackDisplayName || 'Anonymous'; - } - function getPathFrame(fiber) { - var key = fiber.key; - var displayName = getDisplayNameForFiber(fiber); - var index = fiber.index; - switch (fiber.tag) { - case HostRoot: - var id = getFiberIDThrows(fiber); - var pseudoKey = rootPseudoKeys.get(id); - if (pseudoKey === undefined) { - throw new Error('Expected mounted root to have known pseudo key.'); - } - displayName = pseudoKey; - break; - case HostComponent: - displayName = fiber.type; - break; - default: - break; + function patchConsoleUsingWindowValues() { + var _castBool, _castBool2, _castBool3, _castBool4, _castBrowserTheme; + var appendComponentStack = (_castBool = castBool(window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__)) !== null && _castBool !== void 0 ? _castBool : true; + var breakOnConsoleErrors = (_castBool2 = castBool(window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__)) !== null && _castBool2 !== void 0 ? _castBool2 : false; + var showInlineWarningsAndErrors = (_castBool3 = castBool(window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__)) !== null && _castBool3 !== void 0 ? _castBool3 : true; + var hideConsoleLogsInStrictMode = (_castBool4 = castBool(window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__)) !== null && _castBool4 !== void 0 ? _castBool4 : false; + var browserTheme = (_castBrowserTheme = castBrowserTheme(window.__REACT_DEVTOOLS_BROWSER_THEME__)) !== null && _castBrowserTheme !== void 0 ? _castBrowserTheme : 'dark'; + patch({ + appendComponentStack: appendComponentStack, + breakOnConsoleErrors: breakOnConsoleErrors, + showInlineWarningsAndErrors: showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + } // After receiving cached console patch settings from React Native, we set them on window. + // When the console is initially patched (in renderer.js and hook.js), these values are read. + // The browser extension (etc.) sets these values on window, but through another method. + + function writeConsolePatchSettingsToWindow(settings) { + window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ = settings.appendComponentStack; + window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ = settings.breakOnConsoleErrors; + window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ = settings.showInlineWarningsAndErrors; + window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ = settings.hideConsoleLogsInStrictMode; + window.__REACT_DEVTOOLS_BROWSER_THEME__ = settings.browserTheme; + } + function installConsoleFunctionsToWindow() { + window.__REACT_DEVTOOLS_CONSOLE_FUNCTIONS__ = { + patchConsoleUsingWindowValues: patchConsoleUsingWindowValues, + registerRendererWithConsole: registerRenderer + }; } - return { - displayName: displayName, - key: key, - index: index - }; - } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/bridge.js + function bridge_typeof(obj) { + "@babel/helpers - typeof"; - function getPathForElement(id) { - var fiber = idToArbitraryFiberMap.get(id); - if (fiber == null) { - return null; + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + bridge_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + bridge_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return bridge_typeof(obj); } - var keyPath = []; - while (fiber !== null) { - keyPath.push(getPathFrame(fiber)); - fiber = fiber.return; + function bridge_toConsumableArray(arr) { + return bridge_arrayWithoutHoles(arr) || bridge_iterableToArray(arr) || bridge_unsupportedIterableToArray(arr) || bridge_nonIterableSpread(); } - keyPath.reverse(); - return keyPath; - } - function getBestMatchForTrackedPath() { - if (trackedPath === null) { - return null; + function bridge_nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - if (trackedPathMatchFiber === null) { - return null; + function bridge_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return bridge_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bridge_arrayLikeToArray(o, minLen); } - - var fiber = trackedPathMatchFiber; - while (fiber !== null && shouldFilterFiber(fiber)) { - fiber = fiber.return; + function bridge_iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - if (fiber === null) { - return null; + function bridge_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return bridge_arrayLikeToArray(arr); } - return { - id: getFiberIDThrows(fiber), - isFullMatch: trackedPathMatchDepth === trackedPath.length - 1 - }; - } - var formatPriorityLevel = function formatPriorityLevel(priorityLevel) { - if (priorityLevel == null) { - return 'Unknown'; - } - switch (priorityLevel) { - case ImmediatePriority: - return 'Immediate'; - case UserBlockingPriority: - return 'User-Blocking'; - case NormalPriority: - return 'Normal'; - case LowPriority: - return 'Low'; - case IdlePriority: - return 'Idle'; - case NoPriority: - default: - return 'Unknown'; + function bridge_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; } - }; - function setTraceUpdatesEnabled(isEnabled) { - traceUpdatesEnabled = isEnabled; - } - return { - cleanup: cleanup, - clearErrorsAndWarnings: clearErrorsAndWarnings, - clearErrorsForFiberID: clearErrorsForFiberID, - clearWarningsForFiberID: clearWarningsForFiberID, - copyElementPath: copyElementPath, - deletePath: deletePath, - findNativeNodesForFiberID: findNativeNodesForFiberID, - flushInitialOperations: flushInitialOperations, - getBestMatchForTrackedPath: getBestMatchForTrackedPath, - getDisplayNameForFiberID: getDisplayNameForFiberID, - getFiberIDForNative: getFiberIDForNative, - getInstanceAndStyle: getInstanceAndStyle, - getOwnersList: getOwnersList, - getPathForElement: getPathForElement, - getProfilingData: getProfilingData, - handleCommitFiberRoot: handleCommitFiberRoot, - handleCommitFiberUnmount: handleCommitFiberUnmount, - handlePostCommitFiberRoot: handlePostCommitFiberRoot, - inspectElement: inspectElement, - logElementToConsole: logElementToConsole, - patchConsoleForStrictMode: backend_console["b"], - prepareViewAttributeSource: prepareViewAttributeSource, - prepareViewElementSource: prepareViewElementSource, - overrideError: overrideError, - overrideSuspense: overrideSuspense, - overrideValueAtPath: overrideValueAtPath, - renamePath: renamePath, - renderer: renderer, - setTraceUpdatesEnabled: setTraceUpdatesEnabled, - setTrackedPath: setTrackedPath, - startProfiling: startProfiling, - stopProfiling: stopProfiling, - storeAsGlobal: storeAsGlobal, - unpatchConsoleForStrictMode: backend_console["d"], - updateComponentFilters: updateComponentFilters - }; - } - - }, - function (module, exports) { - var process = module.exports = {}; - - var cachedSetTimeout; - var cachedClearTimeout; - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout() { - throw new Error('clearTimeout has not been defined'); - } - (function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; + function bridge_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; + function bridge_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - })(); - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - return setTimeout(fun, 0); - } - - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - return cachedSetTimeout.call(this, fun, 0); + function bridge_createClass(Constructor, protoProps, staticProps) { + if (protoProps) bridge_defineProperties(Constructor.prototype, protoProps); + if (staticProps) bridge_defineProperties(Constructor, staticProps); + return Constructor; } - } - } - function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - return clearTimeout(marker); - } - - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - return cachedClearTimeout(marker); - } catch (e) { - try { - return cachedClearTimeout.call(null, marker); - } catch (e) { - return cachedClearTimeout.call(this, marker); + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); } - } - } - var queue = []; - var draining = false; - var currentQueue; - var queueIndex = -1; - function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } - } - function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - var len = queue.length; - while (len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); - } - process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } - }; - - function Item(fun, array) { - this.fun = fun; - this.array = array; - } - Item.prototype.run = function () { - this.fun.apply(null, this.array); - }; - process.title = 'browser'; - process.browser = true; - process.env = {}; - process.argv = []; - process.version = ''; - - process.versions = {}; - function noop() {} - process.on = noop; - process.addListener = noop; - process.once = noop; - process.off = noop; - process.removeListener = noop; - process.removeAllListeners = noop; - process.emit = noop; - process.prependListener = noop; - process.prependOnceListener = noop; - process.listeners = function (name) { - return []; - }; - process.binding = function (name) { - throw new Error('process.binding is not supported'); - }; - process.cwd = function () { - return '/'; - }; - process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); - }; - process.umask = function () { - return 0; - }; + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = _isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = _getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + if (call && (bridge_typeof(call) === "object" || typeof call === "function")) { + return call; + } + return _assertThisInitialized(self); + } + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + return true; + } catch (e) { + return false; + } + } + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + function bridge_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + var BATCH_DURATION = 100; // This message specifies the version of the DevTools protocol currently supported by the backend, + // as well as the earliest NPM version (e.g. "4.13.0") that protocol is supported by on the frontend. + // This enables an older frontend to display an upgrade message to users for a newer, unsupported backend. + + // Bump protocol version whenever a backwards breaking change is made + // in the messages sent between BackendBridge and FrontendBridge. + // This mapping is embedded in both frontend and backend builds. + // + // The backend protocol will always be the latest entry in the BRIDGE_PROTOCOL array. + // + // When an older frontend connects to a newer backend, + // the backend can send the minNpmVersion and the frontend can display an NPM upgrade prompt. + // + // When a newer frontend connects with an older protocol version, + // the frontend can use the embedded minNpmVersion/maxNpmVersion values to display a downgrade prompt. + var BRIDGE_PROTOCOL = [ + // This version technically never existed, + // but a backwards breaking change was added in 4.11, + // so the safest guess to downgrade the frontend would be to version 4.10. + { + version: 0, + minNpmVersion: '"<4.11.0"', + maxNpmVersion: '"<4.11.0"' + }, + // Versions 4.11.x โ€“ 4.12.x contained the backwards breaking change, + // but we didn't add the "fix" of checking the protocol version until 4.13, + // so we don't recommend downgrading to 4.11 or 4.12. + { + version: 1, + minNpmVersion: '4.13.0', + maxNpmVersion: '4.21.0' + }, + // Version 2 adds a StrictMode-enabled and supports-StrictMode bits to add-root operation. + { + version: 2, + minNpmVersion: '4.22.0', + maxNpmVersion: null + }]; + var currentBridgeProtocol = BRIDGE_PROTOCOL[BRIDGE_PROTOCOL.length - 1]; + var Bridge = /*#__PURE__*/function (_EventEmitter) { + _inherits(Bridge, _EventEmitter); + var _super = _createSuper(Bridge); + function Bridge(wall) { + var _this; + bridge_classCallCheck(this, Bridge); + _this = _super.call(this); + bridge_defineProperty(_assertThisInitialized(_this), "_isShutdown", false); + bridge_defineProperty(_assertThisInitialized(_this), "_messageQueue", []); + bridge_defineProperty(_assertThisInitialized(_this), "_timeoutID", null); + bridge_defineProperty(_assertThisInitialized(_this), "_wallUnlisten", null); + bridge_defineProperty(_assertThisInitialized(_this), "_flush", function () { + // This method is used after the bridge is marked as destroyed in shutdown sequence, + // so we do not bail out if the bridge marked as destroyed. + // It is a private method that the bridge ensures is only called at the right times. + if (_this._timeoutID !== null) { + clearTimeout(_this._timeoutID); + _this._timeoutID = null; + } + if (_this._messageQueue.length) { + for (var i = 0; i < _this._messageQueue.length; i += 2) { + var _this$_wall; + (_this$_wall = _this._wall).send.apply(_this$_wall, [_this._messageQueue[i]].concat(bridge_toConsumableArray(_this._messageQueue[i + 1]))); + } + _this._messageQueue.length = 0; // Check again for queued messages in BATCH_DURATION ms. This will keep + // flushing in a loop as long as messages continue to be added. Once no + // more are, the timer expires. - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; + _this._timeoutID = setTimeout(_this._flush, BATCH_DURATION); + } + }); + bridge_defineProperty(_assertThisInitialized(_this), "overrideValueAtPath", function (_ref) { + var id = _ref.id, + path = _ref.path, + rendererID = _ref.rendererID, + type = _ref.type, + value = _ref.value; + switch (type) { + case 'context': + _this.send('overrideContext', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'hooks': + _this.send('overrideHookState', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'props': + _this.send('overrideProps', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + case 'state': + _this.send('overrideState', { + id: id, + path: path, + rendererID: rendererID, + wasForwarded: true, + value: value + }); + break; + } + }); + _this._wall = wall; + _this._wallUnlisten = wall.listen(function (message) { + if (message && message.event) { + _assertThisInitialized(_this).emit(message.event, message.payload); + } + }) || null; // Temporarily support older standalone front-ends sending commands to newer embedded backends. + // We do this because React Native embeds the React DevTools backend, + // but cannot control which version of the frontend users use. + + _this.addListener('overrideValueAtPath', _this.overrideValueAtPath); + return _this; + } // Listening directly to the wall isn't advised. + // It can be used to listen for legacy (v3) messages (since they use a different format). + + bridge_createClass(Bridge, [{ + key: "send", + value: function send(event) { + if (this._isShutdown) { + console.warn("Cannot send message \"".concat(event, "\" through a Bridge that has been shutdown.")); + return; + } // When we receive a message: + // - we add it to our queue of messages to be sent + // - if there hasn't been a message recently, we set a timer for 0 ms in + // the future, allowing all messages created in the same tick to be sent + // together + // - if there *has* been a message flushed in the last BATCH_DURATION ms + // (or we're waiting for our setTimeout-0 to fire), then _timeoutID will + // be set, and we'll simply add to the queue and wait for that + + for (var _len = arguments.length, payload = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + payload[_key - 1] = arguments[_key]; + } + this._messageQueue.push(event, payload); + if (!this._timeoutID) { + this._timeoutID = setTimeout(this._flush, 0); + } + } + }, { + key: "shutdown", + value: function shutdown() { + if (this._isShutdown) { + console.warn('Bridge was already shutdown.'); + return; + } // Queue the shutdown outgoing message for subscribers. - __webpack_require__.d(__webpack_exports__, "a", function () { - return REACT_SUSPENSE_LIST_TYPE; - }); - __webpack_require__.d(__webpack_exports__, "b", function () { - return REACT_TRACING_MARKER_TYPE; - }); - function _typeof(obj) { - "@babel/helpers - typeof"; + this.emit('shutdown'); + this.send('shutdown'); // Mark this bridge as destroyed, i.e. disable its public API. - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } + this._isShutdown = true; // Disable the API inherited from EventEmitter that can add more listeners and send more messages. + // $FlowFixMe[cannot-write] This property is not writable. - var REACT_ELEMENT_TYPE = Symbol.for('react.element'); - var REACT_PORTAL_TYPE = Symbol.for('react.portal'); - var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); - var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); - var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); - var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); - var REACT_CONTEXT_TYPE = Symbol.for('react.context'); - var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context'); - var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); - var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); - var REACT_MEMO_TYPE = Symbol.for('react.memo'); - var REACT_LAZY_TYPE = Symbol.for('react.lazy'); - var REACT_SCOPE_TYPE = Symbol.for('react.scope'); - var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode'); - var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); - var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden'); - var REACT_CACHE_TYPE = Symbol.for('react.cache'); - var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker'); - var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value'); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || _typeof(maybeIterable) !== 'object') { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === 'function') { - return maybeIterator; - } - return null; - } + this.addListener = function () {}; // $FlowFixMe[cannot-write] This property is not writable. - }, - function (module, exports, __webpack_require__) { - (function (setImmediate) { - function _typeof(obj) { - "@babel/helpers - typeof"; + this.emit = function () {}; // NOTE: There's also EventEmitter API like `on` and `prependListener` that we didn't add to our Flow type of EventEmitter. + // Unsubscribe this bridge incoming message listeners to be sure, and so they don't have to do that. - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } + this.removeAllListeners(); // Stop accepting and emitting incoming messages from the wall. - (function (name, definition) { - if (true) { - module.exports = definition(); - } else {} - })("clipboard", function () { - if (typeof document === 'undefined' || !document.addEventListener) { - return null; - } - var clipboard = {}; - clipboard.copy = function () { - var _intercept = false; - var _data = null; + var wallUnlisten = this._wallUnlisten; + if (wallUnlisten) { + wallUnlisten(); + } // Synchronously flush all queued outgoing messages. + // At this step the subscribers' code may run in this call stack. - var _bogusSelection = false; - function cleanup() { - _intercept = false; - _data = null; - if (_bogusSelection) { - window.getSelection().removeAllRanges(); + do { + this._flush(); + } while (this._messageQueue.length); // Make sure once again that there is no dangling timer. + + if (this._timeoutID !== null) { + clearTimeout(this._timeoutID); + this._timeoutID = null; + } + } + }, { + key: "wall", + get: function get() { + return this._wall; } - _bogusSelection = false; + }]); + return Bridge; + }(EventEmitter); + + /* harmony default export */ + var src_bridge = Bridge; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/agent.js + function agent_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + agent_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + agent_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - document.addEventListener("copy", function (e) { - if (_intercept) { - for (var key in _data) { - e.clipboardData.setData(key, _data[key]); - } - e.preventDefault(); + return agent_typeof(obj); + } + function agent_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function agent_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function agent_createClass(Constructor, protoProps, staticProps) { + if (protoProps) agent_defineProperties(Constructor.prototype, protoProps); + if (staticProps) agent_defineProperties(Constructor, staticProps); + return Constructor; + } + function agent_inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true } }); + if (superClass) agent_setPrototypeOf(subClass, superClass); + } + function agent_setPrototypeOf(o, p) { + agent_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return agent_setPrototypeOf(o, p); + } + function agent_createSuper(Derived) { + var hasNativeReflectConstruct = agent_isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = agent_getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = agent_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return agent_possibleConstructorReturn(this, result); + }; + } + function agent_possibleConstructorReturn(self, call) { + if (call && (agent_typeof(call) === "object" || typeof call === "function")) { + return call; + } + return agent_assertThisInitialized(self); + } + function agent_assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + function agent_isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + return true; + } catch (e) { + return false; + } + } + function agent_getPrototypeOf(o) { + agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return agent_getPrototypeOf(o); + } + function agent_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } - function bogusSelect() { - var sel = document.getSelection(); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - if (!document.queryCommandEnabled("copy") && sel.isCollapsed) { - var range = document.createRange(); - range.selectNodeContents(document.body); - sel.removeAllRanges(); - sel.addRange(range); - _bogusSelection = true; + var debug = function debug(methodName) { + if (__DEBUG__) { + var _console; + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } + (_console = console).log.apply(_console, ["%cAgent %c".concat(methodName), 'color: purple; font-weight: bold;', 'font-weight: bold;'].concat(args)); } - ; - return function (data) { - return new Promise(function (resolve, reject) { - _intercept = true; - if (typeof data === "string") { - _data = { - "text/plain": data - }; - } else if (data instanceof Node) { - _data = { - "text/html": new XMLSerializer().serializeToString(data) - }; - } else if (data instanceof Object) { - _data = data; + }; + var Agent = /*#__PURE__*/function (_EventEmitter) { + agent_inherits(Agent, _EventEmitter); + var _super = agent_createSuper(Agent); + function Agent(bridge) { + var _this; + agent_classCallCheck(this, Agent); + _this = _super.call(this); + agent_defineProperty(agent_assertThisInitialized(_this), "_isProfiling", false); + agent_defineProperty(agent_assertThisInitialized(_this), "_recordChangeDescriptions", false); + agent_defineProperty(agent_assertThisInitialized(_this), "_rendererInterfaces", {}); + agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelection", null); + agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelectionMatch", null); + agent_defineProperty(agent_assertThisInitialized(_this), "_traceUpdatesEnabled", false); + agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsAndWarnings", function (_ref) { + var rendererID = _ref.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); } else { - reject("Invalid data type. Must be string, DOM node, or an object mapping MIME types to strings."); + renderer.clearErrorsAndWarnings(); } - function triggerCopy(tryBogusSelect) { - try { - if (document.execCommand("copy")) { - cleanup(); - resolve(); - } else { - if (!tryBogusSelect) { - bogusSelect(); - triggerCopy(true); - } else { - cleanup(); - throw new Error("Unable to copy. Perhaps it's not available in your browser?"); - } - } - } catch (e) { - cleanup(); - reject(e); - } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsForFiberID", function (_ref2) { + var id = _ref2.id, + rendererID = _ref2.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + renderer.clearErrorsForFiberID(id); } - triggerCopy(false); }); - }; - }(); - clipboard.paste = function () { - var _intercept = false; - var _resolve; - var _dataType; - document.addEventListener("paste", function (e) { - if (_intercept) { - _intercept = false; - e.preventDefault(); - var resolve = _resolve; - _resolve = null; - resolve(e.clipboardData.getData(_dataType)); - } - }); - return function (dataType) { - return new Promise(function (resolve, reject) { - _intercept = true; - _resolve = resolve; - _dataType = dataType || "text/plain"; - try { - if (!document.execCommand("paste")) { - _intercept = false; - reject(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")); + agent_defineProperty(agent_assertThisInitialized(_this), "clearWarningsForFiberID", function (_ref3) { + var id = _ref3.id, + rendererID = _ref3.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + renderer.clearWarningsForFiberID(id); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "copyElementPath", function (_ref4) { + var id = _ref4.id, + path = _ref4.path, + rendererID = _ref4.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + var value = renderer.getSerializedElementValueByPath(id, path); + if (value != null) { + _this._bridge.send('saveToClipboard', value); + } else { + console.warn("Unable to obtain serialized value for element \"".concat(id, "\"")); } - } catch (e) { - _intercept = false; - reject(new Error(e)); } }); - }; - }(); + agent_defineProperty(agent_assertThisInitialized(_this), "deletePath", function (_ref5) { + var hookID = _ref5.hookID, + id = _ref5.id, + path = _ref5.path, + rendererID = _ref5.rendererID, + type = _ref5.type; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.deletePath(type, id, hookID, path); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getBackendVersion", function () { + var version = "4.28.0-9b95b131b"; + if (version) { + _this._bridge.send('backendVersion', version); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getBridgeProtocol", function () { + _this._bridge.send('bridgeProtocol', currentBridgeProtocol); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingData", function (_ref6) { + var rendererID = _ref6.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } + _this._bridge.send('profilingData', renderer.getProfilingData()); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingStatus", function () { + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "getOwnersList", function (_ref7) { + var id = _ref7.id, + rendererID = _ref7.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + var owners = renderer.getOwnersList(id); + _this._bridge.send('ownersList', { + id: id, + owners: owners + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "inspectElement", function (_ref8) { + var forceFullData = _ref8.forceFullData, + id = _ref8.id, + path = _ref8.path, + rendererID = _ref8.rendererID, + requestID = _ref8.requestID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + _this._bridge.send('inspectedElement', renderer.inspectElement(requestID, id, path, forceFullData)); // When user selects an element, stop trying to restore the selection, + // and instead remember the current selection for the next reload. - if (typeof ClipboardEvent === "undefined" && typeof window.clipboardData !== "undefined" && typeof window.clipboardData.setData !== "undefined") { - (function (a) { - function b(a, b) { - return function () { - a.apply(b, arguments); - }; - } - function c(a) { - if ("object" != _typeof(this)) throw new TypeError("Promises must be constructed via new"); - if ("function" != typeof a) throw new TypeError("not a function"); - this._state = null, this._value = null, this._deferreds = [], i(a, b(e, this), b(f, this)); - } - function d(a) { - var b = this; - return null === this._state ? void this._deferreds.push(a) : void j(function () { - var c = b._state ? a.onFulfilled : a.onRejected; - if (null === c) return void (b._state ? a.resolve : a.reject)(b._value); - var d; - try { - d = c(b._value); - } catch (e) { - return void a.reject(e); - } - a.resolve(d); - }); - } - function e(a) { - try { - if (a === this) throw new TypeError("A promise cannot be resolved with itself."); - if (a && ("object" == _typeof(a) || "function" == typeof a)) { - var c = a.then; - if ("function" == typeof c) return void i(b(c, a), b(e, this), b(f, this)); - } - this._state = !0, this._value = a, g.call(this); - } catch (d) { - f.call(this, d); + if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) { + _this._persistedSelection = null; + _this._persistedSelectionMatch = null; + renderer.setTrackedPath(null); + _this._throttledPersistSelection(rendererID, id); + } // TODO: If there was a way to change the selected DOM element + // in native Elements tab without forcing a switch to it, we'd do it here. + // For now, it doesn't seem like there is a way to do that: + // https://github.com/bvaughn/react-devtools-experimental/issues/102 + // (Setting $0 doesn't work, and calling inspect() switches the tab.) } - } - function f(a) { - this._state = !1, this._value = a, g.call(this); - } - function g() { - for (var a = 0, b = this._deferreds.length; b > a; a++) { - d.call(this, this._deferreds[a]); + }); + + agent_defineProperty(agent_assertThisInitialized(_this), "logElementToConsole", function (_ref9) { + var id = _ref9.id, + rendererID = _ref9.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.logElementToConsole(id); } - this._deferreds = null; - } - function h(a, b, c, d) { - this.onFulfilled = "function" == typeof a ? a : null, this.onRejected = "function" == typeof b ? b : null, this.resolve = c, this.reject = d; - } - function i(a, b, c) { - var d = !1; - try { - a(function (a) { - d || (d = !0, b(a)); - }, function (a) { - d || (d = !0, c(a)); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideError", function (_ref10) { + var id = _ref10.id, + rendererID = _ref10.rendererID, + forceError = _ref10.forceError; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideError(id, forceError); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideSuspense", function (_ref11) { + var id = _ref11.id, + rendererID = _ref11.rendererID, + forceFallback = _ref11.forceFallback; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideSuspense(id, forceFallback); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideValueAtPath", function (_ref12) { + var hookID = _ref12.hookID, + id = _ref12.id, + path = _ref12.path, + rendererID = _ref12.rendererID, + type = _ref12.type, + value = _ref12.value; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.overrideValueAtPath(type, id, hookID, path, value); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideContext", function (_ref13) { + var id = _ref13.id, + path = _ref13.path, + rendererID = _ref13.rendererID, + wasForwarded = _ref13.wasForwarded, + value = _ref13.value; + + // Don't forward a message that's already been forwarded by the front-end Bridge. + // We only need to process the override command once! + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'context', + value: value }); - } catch (e) { - if (d) return; - d = !0, c(e); } - } - var j = c.immediateFn || "function" == typeof setImmediate && setImmediate || function (a) { - setTimeout(a, 1); - }, - k = Array.isArray || function (a) { - return "[object Array]" === Object.prototype.toString.call(a); - }; - c.prototype["catch"] = function (a) { - return this.then(null, a); - }, c.prototype.then = function (a, b) { - var e = this; - return new c(function (c, f) { - d.call(e, new h(a, b, c, f)); - }); - }, c.all = function () { - var a = Array.prototype.slice.call(1 === arguments.length && k(arguments[0]) ? arguments[0] : arguments); - return new c(function (b, c) { - function d(f, g) { - try { - if (g && ("object" == _typeof(g) || "function" == typeof g)) { - var h = g.then; - if ("function" == typeof h) return void h.call(g, function (a) { - d(f, a); - }, c); - } - a[f] = g, 0 === --e && b(a); - } catch (i) { - c(i); - } - } - if (0 === a.length) return b([]); - for (var e = a.length, f = 0; f < a.length; f++) { - d(f, a[f]); - } - }); - }, c.resolve = function (a) { - return a && "object" == _typeof(a) && a.constructor === c ? a : new c(function (b) { - b(a); - }); - }, c.reject = function (a) { - return new c(function (b, c) { - c(a); - }); - }, c.race = function (a) { - return new c(function (b, c) { - for (var d = 0, e = a.length; e > d; d++) { - a[d].then(b, c); - } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideHookState", function (_ref14) { + var id = _ref14.id, + hookID = _ref14.hookID, + path = _ref14.path, + rendererID = _ref14.rendererID, + wasForwarded = _ref14.wasForwarded, + value = _ref14.value; + + // Don't forward a message that's already been forwarded by the front-end Bridge. + // We only need to process the override command once! + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'hooks', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideProps", function (_ref15) { + var id = _ref15.id, + path = _ref15.path, + rendererID = _ref15.rendererID, + wasForwarded = _ref15.wasForwarded, + value = _ref15.value; + + // Don't forward a message that's already been forwarded by the front-end Bridge. + // We only need to process the override command once! + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'props', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "overrideState", function (_ref16) { + var id = _ref16.id, + path = _ref16.path, + rendererID = _ref16.rendererID, + wasForwarded = _ref16.wasForwarded, + value = _ref16.value; + + // Don't forward a message that's already been forwarded by the front-end Bridge. + // We only need to process the override command once! + if (!wasForwarded) { + _this.overrideValueAtPath({ + id: id, + path: path, + rendererID: rendererID, + type: 'state', + value: value + }); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "reloadAndProfile", function (recordChangeDescriptions) { + sessionStorageSetItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY, 'true'); + sessionStorageSetItem(SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY, recordChangeDescriptions ? 'true' : 'false'); // This code path should only be hit if the shell has explicitly told the Store that it supports profiling. + // In that case, the shell must also listen for this specific message to know when it needs to reload the app. + // The agent can't do this in a way that is renderer agnostic. + + _this._bridge.send('reloadAppForProfiling'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "renamePath", function (_ref17) { + var hookID = _ref17.hookID, + id = _ref17.id, + newPath = _ref17.newPath, + oldPath = _ref17.oldPath, + rendererID = _ref17.rendererID, + type = _ref17.type; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.renamePath(type, id, hookID, oldPath, newPath); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "setTraceUpdatesEnabled", function (traceUpdatesEnabled) { + _this._traceUpdatesEnabled = traceUpdatesEnabled; + toggleEnabled(traceUpdatesEnabled); + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.setTraceUpdatesEnabled(traceUpdatesEnabled); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "syncSelectionFromNativeElementsPanel", function () { + var target = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0; + if (target == null) { + return; + } + _this.selectNode(target); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "shutdown", function () { + // Clean up the overlay if visible, and associated events. + _this.emit('shutdown'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "startProfiling", function (recordChangeDescriptions) { + _this._recordChangeDescriptions = recordChangeDescriptions; + _this._isProfiling = true; + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.startProfiling(recordChangeDescriptions); + } + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "stopProfiling", function () { + _this._isProfiling = false; + _this._recordChangeDescriptions = false; + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.stopProfiling(); + } + _this._bridge.send('profilingStatus', _this._isProfiling); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "stopInspectingNative", function (selected) { + _this._bridge.send('stopInspectingNative', selected); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "storeAsGlobal", function (_ref18) { + var count = _ref18.count, + id = _ref18.id, + path = _ref18.path, + rendererID = _ref18.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + } else { + renderer.storeAsGlobal(id, path, count); + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "updateConsolePatchSettings", function (_ref19) { + var appendComponentStack = _ref19.appendComponentStack, + breakOnConsoleErrors = _ref19.breakOnConsoleErrors, + showInlineWarningsAndErrors = _ref19.showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode = _ref19.hideConsoleLogsInStrictMode, + browserTheme = _ref19.browserTheme; + // If the frontend preferences have changed, + // or in the case of React Native- if the backend is just finding out the preferences- + // then reinstall the console overrides. + // It's safe to call `patchConsole` multiple times. + patch({ + appendComponentStack: appendComponentStack, + breakOnConsoleErrors: breakOnConsoleErrors, + showInlineWarningsAndErrors: showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme }); - }, true && module.exports ? module.exports = c : a.Promise || (a.Promise = c); - })(this); - clipboard.copy = function (data) { - return new Promise(function (resolve, reject) { - if (typeof data !== "string" && !("text/plain" in data)) { - throw new Error("You must provide a text/plain type."); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "updateComponentFilters", function (componentFilters) { + for (var rendererID in _this._rendererInterfaces) { + var renderer = _this._rendererInterfaces[rendererID]; + renderer.updateComponentFilters(componentFilters); } - var strData = typeof data === "string" ? data : data["text/plain"]; - var copySucceeded = window.clipboardData.setData("Text", strData); - if (copySucceeded) { - resolve(); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "viewAttributeSource", function (_ref20) { + var id = _ref20.id, + path = _ref20.path, + rendererID = _ref20.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); } else { - reject(new Error("Copying was rejected.")); + renderer.prepareViewAttributeSource(id, path); } }); - }; - clipboard.paste = function () { - return new Promise(function (resolve, reject) { - var strData = window.clipboardData.getData("Text"); - if (strData) { - resolve(strData); + agent_defineProperty(agent_assertThisInitialized(_this), "viewElementSource", function (_ref21) { + var id = _ref21.id, + rendererID = _ref21.rendererID; + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); } else { - reject(new Error("Pasting was rejected.")); + renderer.prepareViewElementSource(id); } }); - }; - } - return clipboard; - }); - }).call(this, __webpack_require__(22).setImmediate); + agent_defineProperty(agent_assertThisInitialized(_this), "onTraceUpdates", function (nodes) { + _this.emit('traceUpdates', nodes); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "onFastRefreshScheduled", function () { + if (__DEBUG__) { + debug('onFastRefreshScheduled'); + } + _this._bridge.send('fastRefreshScheduled'); + }); + agent_defineProperty(agent_assertThisInitialized(_this), "onHookOperations", function (operations) { + if (__DEBUG__) { + debug('onHookOperations', "(".concat(operations.length, ") [").concat(operations.join(', '), "]")); + } // TODO: + // The chrome.runtime does not currently support transferables; it forces JSON serialization. + // See bug https://bugs.chromium.org/p/chromium/issues/detail?id=927134 + // + // Regarding transferables, the postMessage doc states: + // If the ownership of an object is transferred, it becomes unusable (neutered) + // in the context it was sent from and becomes available only to the worker it was sent to. + // + // Even though Chrome is eventually JSON serializing the array buffer, + // using the transferable approach also sometimes causes it to throw: + // DOMException: Failed to execute 'postMessage' on 'Window': ArrayBuffer at index 0 is already neutered. + // + // See bug https://github.com/bvaughn/react-devtools-experimental/issues/25 + // + // The Store has a fallback in place that parses the message as JSON if the type isn't an array. + // For now the simplest fix seems to be to not transfer the array. + // This will negatively impact performance on Firefox so it's unfortunate, + // but until we're able to fix the Chrome error mentioned above, it seems necessary. + // + // this._bridge.send('operations', operations, [operations.buffer]); + + _this._bridge.send('operations', operations); + if (_this._persistedSelection !== null) { + var rendererID = operations[0]; + if (_this._persistedSelection.rendererID === rendererID) { + // Check if we can select a deeper match for the persisted selection. + var renderer = _this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + } else { + var prevMatch = _this._persistedSelectionMatch; + var nextMatch = renderer.getBestMatchForTrackedPath(); + _this._persistedSelectionMatch = nextMatch; + var prevMatchID = prevMatch !== null ? prevMatch.id : null; + var nextMatchID = nextMatch !== null ? nextMatch.id : null; + if (prevMatchID !== nextMatchID) { + if (nextMatchID !== null) { + // We moved forward, unlocking a deeper node. + _this._bridge.send('selectFiber', nextMatchID); + } + } + if (nextMatch !== null && nextMatch.isFullMatch) { + // We've just unlocked the innermost selected node. + // There's no point tracking it further. + _this._persistedSelection = null; + _this._persistedSelectionMatch = null; + renderer.setTrackedPath(null); + } + } + } + } + }); + agent_defineProperty(agent_assertThisInitialized(_this), "_throttledPersistSelection", lodash_throttle_default()(function (rendererID, id) { + // This is throttled, so both renderer and selected ID + // might not be available by the time we read them. + // This is why we need the defensive checks here. + var renderer = _this._rendererInterfaces[rendererID]; + var path = renderer != null ? renderer.getPathForElement(id) : null; + if (path !== null) { + sessionStorageSetItem(SESSION_STORAGE_LAST_SELECTION_KEY, JSON.stringify({ + rendererID: rendererID, + path: path + })); + } else { + sessionStorageRemoveItem(SESSION_STORAGE_LAST_SELECTION_KEY); + } + }, 1000)); + if (sessionStorageGetItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY) === 'true') { + _this._recordChangeDescriptions = sessionStorageGetItem(SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY) === 'true'; + _this._isProfiling = true; + sessionStorageRemoveItem(SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY); + sessionStorageRemoveItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY); + } + var persistedSelectionString = sessionStorageGetItem(SESSION_STORAGE_LAST_SELECTION_KEY); + if (persistedSelectionString != null) { + _this._persistedSelection = JSON.parse(persistedSelectionString); + } + _this._bridge = bridge; + bridge.addListener('clearErrorsAndWarnings', _this.clearErrorsAndWarnings); + bridge.addListener('clearErrorsForFiberID', _this.clearErrorsForFiberID); + bridge.addListener('clearWarningsForFiberID', _this.clearWarningsForFiberID); + bridge.addListener('copyElementPath', _this.copyElementPath); + bridge.addListener('deletePath', _this.deletePath); + bridge.addListener('getBackendVersion', _this.getBackendVersion); + bridge.addListener('getBridgeProtocol', _this.getBridgeProtocol); + bridge.addListener('getProfilingData', _this.getProfilingData); + bridge.addListener('getProfilingStatus', _this.getProfilingStatus); + bridge.addListener('getOwnersList', _this.getOwnersList); + bridge.addListener('inspectElement', _this.inspectElement); + bridge.addListener('logElementToConsole', _this.logElementToConsole); + bridge.addListener('overrideError', _this.overrideError); + bridge.addListener('overrideSuspense', _this.overrideSuspense); + bridge.addListener('overrideValueAtPath', _this.overrideValueAtPath); + bridge.addListener('reloadAndProfile', _this.reloadAndProfile); + bridge.addListener('renamePath', _this.renamePath); + bridge.addListener('setTraceUpdatesEnabled', _this.setTraceUpdatesEnabled); + bridge.addListener('startProfiling', _this.startProfiling); + bridge.addListener('stopProfiling', _this.stopProfiling); + bridge.addListener('storeAsGlobal', _this.storeAsGlobal); + bridge.addListener('syncSelectionFromNativeElementsPanel', _this.syncSelectionFromNativeElementsPanel); + bridge.addListener('shutdown', _this.shutdown); + bridge.addListener('updateConsolePatchSettings', _this.updateConsolePatchSettings); + bridge.addListener('updateComponentFilters', _this.updateComponentFilters); + bridge.addListener('viewAttributeSource', _this.viewAttributeSource); + bridge.addListener('viewElementSource', _this.viewElementSource); // Temporarily support older standalone front-ends sending commands to newer embedded backends. + // We do this because React Native embeds the React DevTools backend, + // but cannot control which version of the frontend users use. + + bridge.addListener('overrideContext', _this.overrideContext); + bridge.addListener('overrideHookState', _this.overrideHookState); + bridge.addListener('overrideProps', _this.overrideProps); + bridge.addListener('overrideState', _this.overrideState); + if (_this._isProfiling) { + bridge.send('profilingStatus', true); + } // Send the Bridge protocol and backend versions, after initialization, in case the frontend has already requested it. + // The Store may be instantiated beore the agent. + + var _version = "4.28.0-9b95b131b"; + if (_version) { + _this._bridge.send('backendVersion', _version); + } + _this._bridge.send('bridgeProtocol', currentBridgeProtocol); // Notify the frontend if the backend supports the Storage API (e.g. localStorage). + // If not, features like reload-and-profile will not work correctly and must be disabled. - }, - function (module, exports, __webpack_require__) { - "use strict"; + var isBackendStorageAPISupported = false; + try { + localStorage.getItem('test'); + isBackendStorageAPISupported = true; + } catch (error) {} + bridge.send('isBackendStorageAPISupported', isBackendStorageAPISupported); + bridge.send('isSynchronousXHRSupported', isSynchronousXHRSupported()); + setupHighlighter(bridge, agent_assertThisInitialized(_this)); + TraceUpdates_initialize(agent_assertThisInitialized(_this)); + return _this; + } + agent_createClass(Agent, [{ + key: "getInstanceAndStyle", + value: function getInstanceAndStyle(_ref22) { + var id = _ref22.id, + rendererID = _ref22.rendererID; + var renderer = this._rendererInterfaces[rendererID]; + if (renderer == null) { + console.warn("Invalid renderer id \"".concat(rendererID, "\"")); + return null; + } + return renderer.getInstanceAndStyle(id); + } + }, { + key: "getBestMatchingRendererInterface", + value: function getBestMatchingRendererInterface(node) { + var bestMatch = null; + for (var rendererID in this._rendererInterfaces) { + var renderer = this._rendererInterfaces[rendererID]; + var fiber = renderer.getFiberForNative(node); + if (fiber !== null) { + // check if fiber.stateNode is matching the original hostInstance + if (fiber.stateNode === node) { + return renderer; + } else if (bestMatch === null) { + bestMatch = renderer; + } + } + } // if an exact match is not found, return the first valid renderer as fallback - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; - } - var Yallist = __webpack_require__(24); - var MAX = Symbol('max'); - var LENGTH = Symbol('length'); - var LENGTH_CALCULATOR = Symbol('lengthCalculator'); - var ALLOW_STALE = Symbol('allowStale'); - var MAX_AGE = Symbol('maxAge'); - var DISPOSE = Symbol('dispose'); - var NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet'); - var LRU_LIST = Symbol('lruList'); - var CACHE = Symbol('cache'); - var UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet'); - var naiveLength = function naiveLength() { - return 1; - }; + return bestMatch; + } + }, { + key: "getIDForNode", + value: function getIDForNode(node) { + var rendererInterface = this.getBestMatchingRendererInterface(node); + if (rendererInterface != null) { + try { + return rendererInterface.getFiberIDForNative(node, true); + } catch (error) {// Some old React versions might throw if they can't find a match. + // If so we should ignore it... + } + } + return null; + } + }, { + key: "selectNode", + value: function selectNode(target) { + var id = this.getIDForNode(target); + if (id !== null) { + this._bridge.send('selectFiber', id); + } + } + }, { + key: "setRendererInterface", + value: function setRendererInterface(rendererID, rendererInterface) { + this._rendererInterfaces[rendererID] = rendererInterface; + if (this._isProfiling) { + rendererInterface.startProfiling(this._recordChangeDescriptions); + } + rendererInterface.setTraceUpdatesEnabled(this._traceUpdatesEnabled); // When the renderer is attached, we need to tell it whether + // we remember the previous selection that we'd like to restore. + // It'll start tracking mounts for matches to the last selection path. - var LRUCache = function () { - function LRUCache(options) { - _classCallCheck(this, LRUCache); - if (typeof options === 'number') options = { - max: options - }; - if (!options) options = {}; - if (options.max && (typeof options.max !== 'number' || options.max < 0)) throw new TypeError('max must be a non-negative number'); - - var max = this[MAX] = options.max || Infinity; - var lc = options.length || naiveLength; - this[LENGTH_CALCULATOR] = typeof lc !== 'function' ? naiveLength : lc; - this[ALLOW_STALE] = options.stale || false; - if (options.maxAge && typeof options.maxAge !== 'number') throw new TypeError('maxAge must be a number'); - this[MAX_AGE] = options.maxAge || 0; - this[DISPOSE] = options.dispose; - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; - this.reset(); - } - - _createClass(LRUCache, [{ - key: "rforEach", - value: function rforEach(fn, thisp) { - thisp = thisp || this; - for (var walker = this[LRU_LIST].tail; walker !== null;) { - var prev = walker.prev; - forEachStep(this, fn, walker, thisp); - walker = prev; + var selection = this._persistedSelection; + if (selection !== null && selection.rendererID === rendererID) { + rendererInterface.setTrackedPath(selection.path); + } + } + }, { + key: "onUnsupportedRenderer", + value: function onUnsupportedRenderer(rendererID) { + this._bridge.send('unsupportedRendererVersion', rendererID); + } + }, { + key: "rendererInterfaces", + get: function get() { + return this._rendererInterfaces; + } + }]); + return Agent; + }(EventEmitter); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/hook.js + function hook_typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + hook_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + hook_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } + return hook_typeof(obj); } - }, { - key: "forEach", - value: function forEach(fn, thisp) { - thisp = thisp || this; - for (var walker = this[LRU_LIST].head; walker !== null;) { - var next = walker.next; - forEachStep(this, fn, walker, thisp); - walker = next; - } + function hook_toConsumableArray(arr) { + return hook_arrayWithoutHoles(arr) || hook_iterableToArray(arr) || hook_unsupportedIterableToArray(arr) || hook_nonIterableSpread(); } - }, { - key: "keys", - value: function keys() { - return this[LRU_LIST].toArray().map(function (k) { - return k.key; - }); + function hook_nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - }, { - key: "values", - value: function values() { - return this[LRU_LIST].toArray().map(function (k) { - return k.value; - }); + function hook_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return hook_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return hook_arrayLikeToArray(o, minLen); } - }, { - key: "reset", - value: function reset() { - var _this = this; - if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { - this[LRU_LIST].forEach(function (hit) { - return _this[DISPOSE](hit.key, hit.value); - }); - } - this[CACHE] = new Map(); - - this[LRU_LIST] = new Yallist(); - - this[LENGTH] = 0; + function hook_iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - }, { - key: "dump", - value: function dump() { - var _this2 = this; - return this[LRU_LIST].map(function (hit) { - return isStale(_this2, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }; - }).toArray().filter(function (h) { - return h; - }); + function hook_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return hook_arrayLikeToArray(arr); } - }, { - key: "dumpLru", - value: function dumpLru() { - return this[LRU_LIST]; + function hook_arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + return arr2; } - }, { - key: "set", - value: function set(key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE]; - if (maxAge && typeof maxAge !== 'number') throw new TypeError('maxAge must be a number'); - var now = maxAge ? Date.now() : 0; - var len = this[LENGTH_CALCULATOR](value, key); - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - _del(this, this[CACHE].get(key)); - return false; + + /** + * Install the hook on window, which is an event emitter. + * Note: this global hook __REACT_DEVTOOLS_GLOBAL_HOOK__ is a de facto public API. + * It's especially important to avoid creating direct dependency on the DevTools Backend. + * That's why we still inline the whole event emitter implementation, + * the string format implementation, and part of the console implementation here. + * + * + */ + function installHook(target) { + if (target.hasOwnProperty('__REACT_DEVTOOLS_GLOBAL_HOOK__')) { + return null; + } + var targetConsole = console; + var targetConsoleMethods = {}; + for (var method in console) { + targetConsoleMethods[method] = console[method]; + } + function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { + targetConsole = targetConsoleForTesting; + targetConsoleMethods = {}; + for (var _method in targetConsole) { + targetConsoleMethods[_method] = console[_method]; } - var node = this[CACHE].get(key); - var item = node.value; + } + function detectReactBuildType(renderer) { + try { + if (typeof renderer.version === 'string') { + // React DOM Fiber (16+) + if (renderer.bundleType > 0) { + // This is not a production build. + // We are currently only using 0 (PROD) and 1 (DEV) + // but might add 2 (PROFILE) in the future. + return 'development'; + } // React 16 uses flat bundles. If we report the bundle as production + // version, it means we also minified and envified it ourselves. + + return 'production'; // Note: There is still a risk that the CommonJS entry point has not + // been envified or uglified. In this case the user would have *both* + // development and production bundle, but only the prod one would run. + // This would be really bad. We have a separate check for this because + // it happens *outside* of the renderer injection. See `checkDCE` below. + } // $FlowFixMe[method-unbinding] + + var _toString = Function.prototype.toString; + if (renderer.Mount && renderer.Mount._renderNewRootComponent) { + // React DOM Stack + var renderRootCode = _toString.call(renderer.Mount._renderNewRootComponent); // Filter out bad results (if that is even possible): + + if (renderRootCode.indexOf('function') !== 0) { + // Hope for the best if we're not sure. + return 'production'; + } // Check for React DOM Stack < 15.1.0 in development. + // If it contains "storedMeasure" call, it's wrapped in ReactPerf (DEV only). + // This would be true even if it's minified, as method name still matches. + + if (renderRootCode.indexOf('storedMeasure') !== -1) { + return 'development'; + } // For other versions (and configurations) it's not so easy. + // Let's quickly exclude proper production builds. + // If it contains a warning message, it's either a DEV build, + // or an PROD build without proper dead code elimination. + + if (renderRootCode.indexOf('should be a pure function') !== -1) { + // Now how do we tell a DEV build from a bad PROD build? + // If we see NODE_ENV, we're going to assume this is a dev build + // because most likely it is referring to an empty shim. + if (renderRootCode.indexOf('NODE_ENV') !== -1) { + return 'development'; + } // If we see "development", we're dealing with an envified DEV build + // (such as the official React DEV UMD). + + if (renderRootCode.indexOf('development') !== -1) { + return 'development'; + } // I've seen process.env.NODE_ENV !== 'production' being smartly + // replaced by `true` in DEV by Webpack. I don't know how that + // works but we can safely guard against it because `true` was + // never used in the function source since it was written. + + if (renderRootCode.indexOf('true') !== -1) { + return 'development'; + } // By now either it is a production build that has not been minified, + // or (worse) this is a minified development build using non-standard + // environment (e.g. "staging"). We're going to look at whether + // the function argument name is mangled: - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value); + if ( + // 0.13 to 15 + renderRootCode.indexOf('nextElement') !== -1 || + // 0.12 + renderRootCode.indexOf('nextComponent') !== -1) { + // We can't be certain whether this is a development build or not, + // but it is definitely unminified. + return 'unminified'; + } else { + // This is likely a minified development build. + return 'development'; + } + } // By now we know that it's envified and dead code elimination worked, + // but what if it's still not minified? (Is this even possible?) + // Let's check matches for the first argument name. + + if ( + // 0.13 to 15 + renderRootCode.indexOf('nextElement') !== -1 || + // 0.12 + renderRootCode.indexOf('nextComponent') !== -1) { + return 'unminified'; + } // Seems like we're using the production version. + // However, the branch above is Stack-only so this is 15 or earlier. + + return 'outdated'; + } + } catch (err) {// Weird environments may exist. + // This code needs a higher fault tolerance + // because it runs even with closed DevTools. + // TODO: should we catch errors in all injected code, and not just this part? + } + return 'production'; + } + function checkDCE(fn) { + // This runs for production versions of React. + // Needs to be super safe. + try { + // $FlowFixMe[method-unbinding] + var _toString2 = Function.prototype.toString; + var code = _toString2.call(fn); // This is a string embedded in the passed function under DEV-only + // condition. However the function executes only in PROD. Therefore, + // if we see it, dead code elimination did not work. + + if (code.indexOf('^_^') > -1) { + // Remember to report during next injection. + hasDetectedBadDCE = true; // Bonus: throw an exception hoping that it gets picked up by a reporting system. + // Not synchronously so that it doesn't break the calling code. + + setTimeout(function () { + throw new Error('React is running in production mode, but dead code ' + 'elimination has not been applied. Read how to correctly ' + 'configure React for production: ' + 'https://reactjs.org/link/perf-use-production-build'); + }); + } + } catch (err) {} + } // NOTE: KEEP IN SYNC with src/backend/utils.js + + function formatWithStyles(inputArgs, style) { + if (inputArgs === undefined || inputArgs === null || inputArgs.length === 0 || + // Matches any of %c but not %%c + typeof inputArgs[0] === 'string' && inputArgs[0].match(/([^%]|^)(%c)/g) || style === undefined) { + return inputArgs; + } // Matches any of %(o|O|d|i|s|f), but not %%(o|O|d|i|s|f) + + var REGEXP = /([^%]|^)((%%)*)(%([oOdisf]))/g; + if (typeof inputArgs[0] === 'string' && inputArgs[0].match(REGEXP)) { + return ["%c".concat(inputArgs[0]), style].concat(hook_toConsumableArray(inputArgs.slice(1))); + } else { + var firstArg = inputArgs.reduce(function (formatStr, elem, i) { + if (i > 0) { + formatStr += ' '; + } + switch (hook_typeof(elem)) { + case 'string': + case 'boolean': + case 'symbol': + return formatStr += '%s'; + case 'number': + var formatting = Number.isInteger(elem) ? '%i' : '%f'; + return formatStr += formatting; + default: + return formatStr += '%o'; + } + }, '%c'); + return [firstArg, style].concat(hook_toConsumableArray(inputArgs)); } - item.now = now; - item.maxAge = maxAge; - item.value = value; - this[LENGTH] += len - item.length; - item.length = len; - this.get(key); - trim(this); - return true; } - var hit = new Entry(key, value, len, now, maxAge); + var unpatchFn = null; // NOTE: KEEP IN SYNC with src/backend/console.js:patchForStrictMode + // This function hides or dims console logs during the initial double renderer + // in Strict Mode. We need this function because during initial render, + // React and DevTools are connecting and the renderer interface isn't avaiable + // and we want to be able to have consistent logging behavior for double logs + // during the initial renderer. + + function patchConsoleForInitialRenderInStrictMode(_ref) { + var hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, + browserTheme = _ref.browserTheme; + var overrideConsoleMethods = ['error', 'group', 'groupCollapsed', 'info', 'log', 'trace', 'warn']; + if (unpatchFn !== null) { + // Don't patch twice. + return; + } + var originalConsoleMethods = {}; + unpatchFn = function unpatchFn() { + for (var _method2 in originalConsoleMethods) { + try { + targetConsole[_method2] = originalConsoleMethods[_method2]; + } catch (error) {} + } + }; + overrideConsoleMethods.forEach(function (method) { + try { + var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; + var overrideMethod = function overrideMethod() { + if (!hideConsoleLogsInStrictMode) { + // Dim the text color of the double logs if we're not + // hiding them. + var color; + switch (method) { + case 'warn': + color = browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; + break; + case 'error': + color = browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; + break; + case 'log': + default: + color = browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; + break; + } + if (color) { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + originalMethod.apply(void 0, hook_toConsumableArray(formatWithStyles(args, "color: ".concat(color)))); + } else { + throw Error('Console color is not defined'); + } + } + }; + overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; + originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; + targetConsole[method] = overrideMethod; + } catch (error) {} + }); + } // NOTE: KEEP IN SYNC with src/backend/console.js:unpatchForStrictMode - if (hit.length > this[MAX]) { - if (this[DISPOSE]) this[DISPOSE](key, value); - return false; + function unpatchConsoleForInitialRenderInStrictMode() { + if (unpatchFn !== null) { + unpatchFn(); + unpatchFn = null; + } } - this[LENGTH] += hit.length; - this[LRU_LIST].unshift(hit); - this[CACHE].set(key, this[LRU_LIST].head); - trim(this); - return true; - } - }, { - key: "has", - value: function has(key) { - if (!this[CACHE].has(key)) return false; - var hit = this[CACHE].get(key).value; - return !isStale(this, hit); - } - }, { - key: "get", - value: function get(key) { - return _get(this, key, true); - } - }, { - key: "peek", - value: function peek(key) { - return _get(this, key, false); - } - }, { - key: "pop", - value: function pop() { - var node = this[LRU_LIST].tail; - if (!node) return null; - _del(this, node); - return node.value; - } - }, { - key: "del", - value: function del(key) { - _del(this, this[CACHE].get(key)); - } - }, { - key: "load", - value: function load(arr) { - this.reset(); - var now = Date.now(); + var uidCounter = 0; + function inject(renderer) { + var id = ++uidCounter; + renderers.set(id, renderer); + var reactBuildType = hasDetectedBadDCE ? 'deadcode' : detectReactBuildType(renderer); // Patching the console enables DevTools to do a few useful things: + // * Append component stacks to warnings and error messages + // * Disabling or marking logs during a double render in Strict Mode + // * Disable logging during re-renders to inspect hooks (see inspectHooksOfFiber) + // + // Allow patching console early (during injection) to + // provide developers with components stacks even if they don't run DevTools. + + if (target.hasOwnProperty('__REACT_DEVTOOLS_CONSOLE_FUNCTIONS__')) { + var _target$__REACT_DEVTO = target.__REACT_DEVTOOLS_CONSOLE_FUNCTIONS__, + registerRendererWithConsole = _target$__REACT_DEVTO.registerRendererWithConsole, + patchConsoleUsingWindowValues = _target$__REACT_DEVTO.patchConsoleUsingWindowValues; + if (typeof registerRendererWithConsole === 'function' && typeof patchConsoleUsingWindowValues === 'function') { + registerRendererWithConsole(renderer); + patchConsoleUsingWindowValues(); + } + } // If we have just reloaded to profile, we need to inject the renderer interface before the app loads. + // Otherwise the renderer won't yet exist and we can skip this step. - for (var l = arr.length - 1; l >= 0; l--) { - var hit = arr[l]; - var expiresAt = hit.e || 0; - if (expiresAt === 0) - this.set(hit.k, hit.v);else { - var maxAge = expiresAt - now; + var attach = target.__REACT_DEVTOOLS_ATTACH__; + if (typeof attach === 'function') { + var rendererInterface = attach(hook, id, renderer, target); + hook.rendererInterfaces.set(id, rendererInterface); + } + hook.emit('renderer', { + id: id, + renderer: renderer, + reactBuildType: reactBuildType + }); + return id; + } + var hasDetectedBadDCE = false; + function sub(event, fn) { + hook.on(event, fn); + return function () { + return hook.off(event, fn); + }; + } + function on(event, fn) { + if (!listeners[event]) { + listeners[event] = []; + } + listeners[event].push(fn); + } + function off(event, fn) { + if (!listeners[event]) { + return; + } + var index = listeners[event].indexOf(fn); + if (index !== -1) { + listeners[event].splice(index, 1); + } + if (!listeners[event].length) { + delete listeners[event]; + } + } + function emit(event, data) { + if (listeners[event]) { + listeners[event].map(function (fn) { + return fn(data); + }); + } + } + function getFiberRoots(rendererID) { + var roots = fiberRoots; + if (!roots[rendererID]) { + roots[rendererID] = new Set(); + } + return roots[rendererID]; + } + function onCommitFiberUnmount(rendererID, fiber) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handleCommitFiberUnmount(fiber); + } + } + function onCommitFiberRoot(rendererID, root, priorityLevel) { + var mountedRoots = hook.getFiberRoots(rendererID); + var current = root.current; + var isKnownRoot = mountedRoots.has(root); + var isUnmounting = current.memoizedState == null || current.memoizedState.element == null; // Keep track of mounted roots so we can hydrate when DevTools connect. - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge); + if (!isKnownRoot && !isUnmounting) { + mountedRoots.add(root); + } else if (isKnownRoot && isUnmounting) { + mountedRoots.delete(root); + } + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handleCommitFiberRoot(root, priorityLevel); + } + } + function onPostCommitFiberRoot(rendererID, root) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + rendererInterface.handlePostCommitFiberRoot(root); + } + } + function setStrictMode(rendererID, isStrictMode) { + var rendererInterface = rendererInterfaces.get(rendererID); + if (rendererInterface != null) { + if (isStrictMode) { + rendererInterface.patchConsoleForStrictMode(); + } else { + rendererInterface.unpatchConsoleForStrictMode(); + } + } else { + // This should only happen during initial render in the extension before DevTools + // finishes its handshake with the injected renderer + if (isStrictMode) { + var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; + var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; + patchConsoleForInitialRenderInStrictMode({ + hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, + browserTheme: browserTheme + }); + } else { + unpatchConsoleForInitialRenderInStrictMode(); } } } - } - }, { - key: "prune", - value: function prune() { - var _this3 = this; - this[CACHE].forEach(function (value, key) { - return _get(_this3, key, false); + var openModuleRangesStack = []; + var moduleRanges = []; + function getTopStackFrameString(error) { + var frames = error.stack.split('\n'); + var frame = frames.length > 1 ? frames[1] : null; + return frame; + } + function getInternalModuleRanges() { + return moduleRanges; + } + function registerInternalModuleStart(error) { + var startStackFrame = getTopStackFrameString(error); + if (startStackFrame !== null) { + openModuleRangesStack.push(startStackFrame); + } + } + function registerInternalModuleStop(error) { + if (openModuleRangesStack.length > 0) { + var startStackFrame = openModuleRangesStack.pop(); + var stopStackFrame = getTopStackFrameString(error); + if (stopStackFrame !== null) { + moduleRanges.push([startStackFrame, stopStackFrame]); + } + } + } // TODO: More meaningful names for "rendererInterfaces" and "renderers". + + var fiberRoots = {}; + var rendererInterfaces = new Map(); + var listeners = {}; + var renderers = new Map(); + var backends = new Map(); + var hook = { + rendererInterfaces: rendererInterfaces, + listeners: listeners, + backends: backends, + // Fast Refresh for web relies on this. + renderers: renderers, + emit: emit, + getFiberRoots: getFiberRoots, + inject: inject, + on: on, + off: off, + sub: sub, + // This is a legacy flag. + // React v16 checks the hook for this to ensure DevTools is new enough. + supportsFiber: true, + // React calls these methods. + checkDCE: checkDCE, + onCommitFiberUnmount: onCommitFiberUnmount, + onCommitFiberRoot: onCommitFiberRoot, + onPostCommitFiberRoot: onPostCommitFiberRoot, + setStrictMode: setStrictMode, + // Schedule Profiler runtime helpers. + // These internal React modules to report their own boundaries + // which in turn enables the profiler to dim or filter internal frames. + getInternalModuleRanges: getInternalModuleRanges, + registerInternalModuleStart: registerInternalModuleStart, + registerInternalModuleStop: registerInternalModuleStop + }; + if (false) {} + Object.defineProperty(target, '__REACT_DEVTOOLS_GLOBAL_HOOK__', { + // This property needs to be configurable for the test environment, + // else we won't be able to delete and recreate it between tests. + configurable: false, + enumerable: false, + get: function get() { + return hook; + } }); + return hook; } - }, { - key: "max", - set: function set(mL) { - if (typeof mL !== 'number' || mL < 0) throw new TypeError('max must be a non-negative number'); - this[MAX] = mL || Infinity; - trim(this); - }, - get: function get() { - return this[MAX]; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/legacy/utils.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + function decorate(object, attr, fn) { + var old = object[attr]; // $FlowFixMe[missing-this-annot] webpack config needs to be updated to allow `this` type annotations + + object[attr] = function (instance) { + return fn.call(this, old, arguments); + }; + return old; } - }, { - key: "allowStale", - set: function set(allowStale) { - this[ALLOW_STALE] = !!allowStale; - }, - get: function get() { - return this[ALLOW_STALE]; + function decorateMany(source, fns) { + var olds = {}; + for (var name in fns) { + olds[name] = decorate(source, name, fns[name]); + } + return olds; } - }, { - key: "maxAge", - set: function set(mA) { - if (typeof mA !== 'number') throw new TypeError('maxAge must be a non-negative number'); - this[MAX_AGE] = mA; - trim(this); - }, - get: function get() { - return this[MAX_AGE]; + function restoreMany(source, olds) { + for (var name in olds) { + source[name] = olds[name]; + } + } // $FlowFixMe[missing-this-annot] webpack config needs to be updated to allow `this` type annotations + + function forceUpdate(instance) { + if (typeof instance.forceUpdate === 'function') { + instance.forceUpdate(); + } else if (instance.updater != null && typeof instance.updater.enqueueForceUpdate === 'function') { + instance.updater.enqueueForceUpdate(this, function () {}, 'forceUpdate'); + } } - }, { - key: "lengthCalculator", - set: function set(lC) { - var _this4 = this; - if (typeof lC !== 'function') lC = naiveLength; - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC; - this[LENGTH] = 0; - this[LRU_LIST].forEach(function (hit) { - hit.length = _this4[LENGTH_CALCULATOR](hit.value, hit.key); - _this4[LENGTH] += hit.length; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/legacy/renderer.js + function legacy_renderer_ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); + keys.push.apply(keys, symbols); } - trim(this); - }, - get: function get() { - return this[LENGTH_CALCULATOR]; - } - }, { - key: "length", - get: function get() { - return this[LENGTH]; - } - }, { - key: "itemCount", - get: function get() { - return this[LRU_LIST].length; + return keys; } - }]); - return LRUCache; - }(); - var _get = function _get(self, key, doUse) { - var node = self[CACHE].get(key); - if (node) { - var hit = node.value; - if (isStale(self, hit)) { - _del(self, node); - if (!self[ALLOW_STALE]) return undefined; - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now(); - self[LRU_LIST].unshiftNode(node); + function legacy_renderer_objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + if (i % 2) { + legacy_renderer_ownKeys(Object(source), true).forEach(function (key) { + legacy_renderer_defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + legacy_renderer_ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } } + return target; } - return hit.value; - } - }; - var isStale = function isStale(self, hit) { - if (!hit || !hit.maxAge && !self[MAX_AGE]) return false; - var diff = Date.now() - hit.now; - return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE]; - }; - var trim = function trim(self) { - if (self[LENGTH] > self[MAX]) { - for (var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) { - var prev = walker.prev; - _del(self, walker); - walker = prev; + function legacy_renderer_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; } - } - }; - var _del = function _del(self, node) { - if (node) { - var hit = node.value; - if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value); - self[LENGTH] -= hit.length; - self[CACHE].delete(hit.key); - self[LRU_LIST].removeNode(node); - } - }; - var Entry = function Entry(key, value, length, now, maxAge) { - _classCallCheck(this, Entry); - this.key = key; - this.value = value; - this.length = length; - this.now = now; - this.maxAge = maxAge || 0; - }; - var forEachStep = function forEachStep(self, fn, node, thisp) { - var hit = node.value; - if (isStale(self, hit)) { - _del(self, node); - if (!self[ALLOW_STALE]) hit = undefined; - } - if (hit) fn.call(thisp, hit.value, hit.key, self); - }; - module.exports = LRUCache; - - }, - function (module, exports, __webpack_require__) { - "use strict"; + function legacy_renderer_typeof(obj) { + "@babel/helpers - typeof"; - if (true) { - module.exports = __webpack_require__(27); - } else {} - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.d(__webpack_exports__, "a", function () { - return getStackByFiberInDevAndProd; - }); - - var ReactSymbols = __webpack_require__(3); - - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + legacy_renderer_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + legacy_renderer_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return legacy_renderer_typeof(obj); } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() {} - disabledLog.__reactDisabledLog = true; - function disableLogs() { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - - var props = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } + function getData(internalInstance) { + var displayName = null; + var key = null; // != used deliberately here to catch undefined and null - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (disabledDepth === 0) { - var props = { - configurable: true, - enumerable: true, - writable: true - }; + if (internalInstance._currentElement != null) { + if (internalInstance._currentElement.key) { + key = String(internalInstance._currentElement.key); + } + var elementType = internalInstance._currentElement.type; + if (typeof elementType === 'string') { + displayName = elementType; + } else if (typeof elementType === 'function') { + displayName = getDisplayName(elementType); + } + } + return { + displayName: displayName, + key: key + }; + } + function getElementType(internalInstance) { + // != used deliberately here to catch undefined and null + if (internalInstance._currentElement != null) { + var elementType = internalInstance._currentElement.type; + if (typeof elementType === 'function') { + var publicInstance = internalInstance.getPublicInstance(); + if (publicInstance !== null) { + return types_ElementTypeClass; + } else { + return types_ElementTypeFunction; + } + } else if (typeof elementType === 'string') { + return ElementTypeHostComponent; + } + } + return ElementTypeOtherOrUnknown; + } + function getChildren(internalInstance) { + var children = []; // If the parent is a native node without rendered children, but with + // multiple string children, then the `element` that gets passed in here is + // a plain value -- a string or number. - Object.defineProperties(console, { - log: _objectSpread(_objectSpread({}, props), {}, { - value: prevLog - }), - info: _objectSpread(_objectSpread({}, props), {}, { - value: prevInfo - }), - warn: _objectSpread(_objectSpread({}, props), {}, { - value: prevWarn - }), - error: _objectSpread(_objectSpread({}, props), {}, { - value: prevError - }), - group: _objectSpread(_objectSpread({}, props), {}, { - value: prevGroup - }), - groupCollapsed: _objectSpread(_objectSpread({}, props), {}, { - value: prevGroupCollapsed - }), - groupEnd: _objectSpread(_objectSpread({}, props), {}, { - value: prevGroupEnd - }) - }); - } + if (legacy_renderer_typeof(internalInstance) !== 'object') {// No children + } else if (internalInstance._currentElement === null || internalInstance._currentElement === false) {// No children + } else if (internalInstance._renderedComponent) { + var child = internalInstance._renderedComponent; + if (getElementType(child) !== ElementTypeOtherOrUnknown) { + children.push(child); + } + } else if (internalInstance._renderedChildren) { + var renderedChildren = internalInstance._renderedChildren; + for (var name in renderedChildren) { + var _child = renderedChildren[name]; + if (getElementType(_child) !== ElementTypeOtherOrUnknown) { + children.push(_child); + } + } + } // Note: we skip the case where children are just strings or numbers + // because the new DevTools skips over host text nodes anyway. + + return children; + } + function renderer_attach(hook, rendererID, renderer, global) { + var idToInternalInstanceMap = new Map(); + var internalInstanceToIDMap = new WeakMap(); + var internalInstanceToRootIDMap = new WeakMap(); + var getInternalIDForNative = null; + var findNativeNodeForInternalID; + var getFiberForNative = function getFiberForNative(node) { + // Not implemented. + return null; + }; + if (renderer.ComponentTree) { + getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { + var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node); + return internalInstanceToIDMap.get(internalInstance) || null; + }; + findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { + var internalInstance = idToInternalInstanceMap.get(id); + return renderer.ComponentTree.getNodeFromInstance(internalInstance); + }; + getFiberForNative = function getFiberForNative(node) { + return renderer.ComponentTree.getClosestInstanceFromNode(node); + }; + } else if (renderer.Mount.getID && renderer.Mount.getNode) { + getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { + // Not implemented. + return null; + }; + findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { + // Not implemented. + return null; + }; + } + function getDisplayNameForFiberID(id) { + var internalInstance = idToInternalInstanceMap.get(id); + return internalInstance ? getData(internalInstance).displayName : null; + } + function getID(internalInstance) { + if (legacy_renderer_typeof(internalInstance) !== 'object' || internalInstance === null) { + throw new Error('Invalid internal instance: ' + internalInstance); + } + if (!internalInstanceToIDMap.has(internalInstance)) { + var _id = getUID(); + internalInstanceToIDMap.set(internalInstance, _id); + idToInternalInstanceMap.set(_id, internalInstance); + } + return internalInstanceToIDMap.get(internalInstance); + } + function areEqualArrays(a, b) { + if (a.length !== b.length) { + return false; + } + for (var i = 0; i < a.length; i++) { + if (a[i] !== b[i]) { + return false; + } + } + return true; + } // This is shared mutable state that lets us keep track of where we are. + + var parentIDStack = []; + var oldReconcilerMethods = null; + if (renderer.Reconciler) { + // React 15 + oldReconcilerMethods = decorateMany(renderer.Reconciler, { + mountComponent: function mountComponent(fn, args) { + var internalInstance = args[0]; + var hostContainerInfo = args[3]; + if (getElementType(internalInstance) === ElementTypeOtherOrUnknown) { + // $FlowFixMe[object-this-reference] found when upgrading Flow + return fn.apply(this, args); + } + if (hostContainerInfo._topLevelWrapper === undefined) { + // SSR + // $FlowFixMe[object-this-reference] found when upgrading Flow + return fn.apply(this, args); + } + var id = getID(internalInstance); // Push the operation. - if (disabledDepth < 0) { - console.error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); - } - } - function _typeof(obj) { - "@babel/helpers - typeof"; + var parentID = parentIDStack.length > 0 ? parentIDStack[parentIDStack.length - 1] : 0; + recordMount(internalInstance, id, parentID); + parentIDStack.push(id); // Remember the root. - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - - var prefix; - function describeBuiltInComponentFrame(name, source, ownerFn) { - if (prefix === undefined) { - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ''; - } - } + internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper)); + try { + // $FlowFixMe[object-this-reference] found when upgrading Flow + var result = fn.apply(this, args); + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + performUpdateIfNecessary: function performUpdateIfNecessary(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === ElementTypeOtherOrUnknown) { + // $FlowFixMe[object-this-reference] found when upgrading Flow + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + var prevChildren = getChildren(internalInstance); + try { + // $FlowFixMe[object-this-reference] found when upgrading Flow + var result = fn.apply(this, args); + var nextChildren = getChildren(internalInstance); + if (!areEqualArrays(prevChildren, nextChildren)) { + // Push the operation + recordReorder(internalInstance, id, nextChildren); + } + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + receiveComponent: function receiveComponent(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === ElementTypeOtherOrUnknown) { + // $FlowFixMe[object-this-reference] found when upgrading Flow + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + var prevChildren = getChildren(internalInstance); + try { + // $FlowFixMe[object-this-reference] found when upgrading Flow + var result = fn.apply(this, args); + var nextChildren = getChildren(internalInstance); + if (!areEqualArrays(prevChildren, nextChildren)) { + // Push the operation + recordReorder(internalInstance, id, nextChildren); + } + parentIDStack.pop(); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + }, + unmountComponent: function unmountComponent(fn, args) { + var internalInstance = args[0]; + if (getElementType(internalInstance) === ElementTypeOtherOrUnknown) { + // $FlowFixMe[object-this-reference] found when upgrading Flow + return fn.apply(this, args); + } + var id = getID(internalInstance); + parentIDStack.push(id); + try { + // $FlowFixMe[object-this-reference] found when upgrading Flow + var result = fn.apply(this, args); + parentIDStack.pop(); // Push the operation. - return '\n' + prefix + name; - } - var reentry = false; - var componentFrameCache; - if (false) { - var PossiblyWeakMap; - } - function describeNativeComponentFrame(fn, construct, currentDispatcherRef) { - if (!fn || reentry) { - return ''; - } - if (false) { - var frame; - } - var control; - var previousPrepareStackTrace = Error.prepareStackTrace; + recordUnmount(internalInstance, id); + return result; + } catch (err) { + parentIDStack = []; + throw err; + } finally { + if (parentIDStack.length === 0) { + var rootID = internalInstanceToRootIDMap.get(internalInstance); + if (rootID === undefined) { + throw new Error('Expected to find root ID.'); + } + flushPendingEvents(rootID); + } + } + } + }); + } + function cleanup() { + if (oldReconcilerMethods !== null) { + if (renderer.Component) { + restoreMany(renderer.Component.Mixin, oldReconcilerMethods); + } else { + restoreMany(renderer.Reconciler, oldReconcilerMethods); + } + } + oldReconcilerMethods = null; + } + function recordMount(internalInstance, id, parentID) { + var isRoot = parentID === 0; + if (__DEBUG__) { + console.log('%crecordMount()', 'color: green; font-weight: bold;', id, getData(internalInstance).displayName); + } + if (isRoot) { + // TODO Is this right? For all versions? + var hasOwnerMetadata = internalInstance._currentElement != null && internalInstance._currentElement._owner != null; + pushOperation(TREE_OPERATION_ADD); + pushOperation(id); + pushOperation(ElementTypeRoot); + pushOperation(0); // StrictMode compliant? - Error.prepareStackTrace = undefined; - reentry = true; + pushOperation(0); // Profiling flag - var previousDispatcher = currentDispatcherRef.current; - currentDispatcherRef.current = null; - disableLogs(); - try { - if (construct) { - var Fake = function Fake() { - throw Error(); - }; + pushOperation(0); // StrictMode supported? - Object.defineProperty(Fake.prototype, 'props', { - set: function set() { - throw Error(); - } - }); - if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - control = x; + pushOperation(hasOwnerMetadata ? 1 : 0); + } else { + var type = getElementType(internalInstance); + var _getData = getData(internalInstance), + displayName = _getData.displayName, + key = _getData.key; + var ownerID = internalInstance._currentElement != null && internalInstance._currentElement._owner != null ? getID(internalInstance._currentElement._owner) : 0; + var displayNameStringID = getStringID(displayName); + var keyStringID = getStringID(key); + pushOperation(TREE_OPERATION_ADD); + pushOperation(id); + pushOperation(type); + pushOperation(parentID); + pushOperation(ownerID); + pushOperation(displayNameStringID); + pushOperation(keyStringID); } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x) { - control = x; + } + function recordReorder(internalInstance, id, nextChildren) { + pushOperation(TREE_OPERATION_REORDER_CHILDREN); + pushOperation(id); + var nextChildIDs = nextChildren.map(getID); + pushOperation(nextChildIDs.length); + for (var i = 0; i < nextChildIDs.length; i++) { + pushOperation(nextChildIDs[i]); } - fn.call(Fake.prototype); } - } else { - try { - throw Error(); - } catch (x) { - control = x; + function recordUnmount(internalInstance, id) { + pendingUnmountedIDs.push(id); + idToInternalInstanceMap.delete(id); } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === 'string') { - var sampleLines = sample.stack.split('\n'); - var controlLines = control.stack.split('\n'); - var s = sampleLines.length - 1; - var c = controlLines.length - 1; - while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { - c--; + function crawlAndRecordInitialMounts(id, parentID, rootID) { + if (__DEBUG__) { + console.group('crawlAndRecordInitialMounts() id:', id); + } + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + internalInstanceToRootIDMap.set(internalInstance, rootID); + recordMount(internalInstance, id, parentID); + getChildren(internalInstance).forEach(function (child) { + return crawlAndRecordInitialMounts(getID(child), id, rootID); + }); + } + if (__DEBUG__) { + console.groupEnd(); + } } - for (; s >= 1 && c >= 0; s--, c--) { - if (sampleLines[s] !== controlLines[c]) { - if (s !== 1 || c !== 1) { - do { - s--; - c--; - - if (c < 0 || sampleLines[s] !== controlLines[c]) { - var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); - if (false) {} - - return _frame; - } - } while (s >= 1 && c >= 0); - } - break; + function flushInitialOperations() { + // Crawl roots though and register any nodes that mounted before we were injected. + var roots = renderer.Mount._instancesByReactRootID || renderer.Mount._instancesByContainerID; + for (var key in roots) { + var internalInstance = roots[key]; + var _id2 = getID(internalInstance); + crawlAndRecordInitialMounts(_id2, 0, _id2); + flushPendingEvents(_id2); } } - } - } finally { - reentry = false; - Error.prepareStackTrace = previousPrepareStackTrace; - currentDispatcherRef.current = previousDispatcher; - reenableLogs(); - } - - var name = fn ? fn.displayName || fn.name : ''; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; - if (false) {} - return syntheticFrame; - } - function describeClassComponentFrame(ctor, source, ownerFn, currentDispatcherRef) { - return describeNativeComponentFrame(ctor, true, currentDispatcherRef); - } - function describeFunctionComponentFrame(fn, source, ownerFn, currentDispatcherRef) { - return describeNativeComponentFrame(fn, false, currentDispatcherRef); - } - function shouldConstruct(Component) { - var prototype = Component.prototype; - return !!(prototype && prototype.isReactComponent); - } - function describeUnknownElementTypeFrameInDEV(type, source, ownerFn, currentDispatcherRef) { - if (true) { - return ''; - } - if (type == null) { - return ''; - } - if (typeof type === 'function') { - return describeNativeComponentFrame(type, shouldConstruct(type), currentDispatcherRef); - } - if (typeof type === 'string') { - return describeBuiltInComponentFrame(type, source, ownerFn); - } - switch (type) { - case ReactSymbols["w"]: - case ReactSymbols["x"]: - return describeBuiltInComponentFrame('Suspense', source, ownerFn); - case ReactSymbols["u"]: - case ReactSymbols["v"]: - return describeBuiltInComponentFrame('SuspenseList', source, ownerFn); - } - if (_typeof(type) === 'object') { - switch (type.$$typeof) { - case ReactSymbols["f"]: - case ReactSymbols["g"]: - return describeFunctionComponentFrame(type.render, source, ownerFn, currentDispatcherRef); - case ReactSymbols["j"]: - case ReactSymbols["k"]: - return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn, currentDispatcherRef); - case ReactSymbols["h"]: - case ReactSymbols["i"]: - { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn, currentDispatcherRef); - } catch (x) {} + var pendingOperations = []; + var pendingStringTable = new Map(); + var pendingUnmountedIDs = []; + var pendingStringTableLength = 0; + var pendingUnmountedRootID = null; + function flushPendingEvents(rootID) { + if (pendingOperations.length === 0 && pendingUnmountedIDs.length === 0 && pendingUnmountedRootID === null) { + return; } - } - } - return ''; - } - - function describeFiber(workTagMap, workInProgress, currentDispatcherRef) { - var HostComponent = workTagMap.HostComponent, - LazyComponent = workTagMap.LazyComponent, - SuspenseComponent = workTagMap.SuspenseComponent, - SuspenseListComponent = workTagMap.SuspenseListComponent, - FunctionComponent = workTagMap.FunctionComponent, - IndeterminateComponent = workTagMap.IndeterminateComponent, - SimpleMemoComponent = workTagMap.SimpleMemoComponent, - ForwardRef = workTagMap.ForwardRef, - ClassComponent = workTagMap.ClassComponent; - var owner = false ? undefined : null; - var source = false ? undefined : null; - switch (workInProgress.tag) { - case HostComponent: - return describeBuiltInComponentFrame(workInProgress.type, source, owner); - case LazyComponent: - return describeBuiltInComponentFrame('Lazy', source, owner); - case SuspenseComponent: - return describeBuiltInComponentFrame('Suspense', source, owner); - case SuspenseListComponent: - return describeBuiltInComponentFrame('SuspenseList', source, owner); - case FunctionComponent: - case IndeterminateComponent: - case SimpleMemoComponent: - return describeFunctionComponentFrame(workInProgress.type, source, owner, currentDispatcherRef); - case ForwardRef: - return describeFunctionComponentFrame(workInProgress.type.render, source, owner, currentDispatcherRef); - case ClassComponent: - return describeClassComponentFrame(workInProgress.type, source, owner, currentDispatcherRef); - default: - return ''; - } - } - function getStackByFiberInDevAndProd(workTagMap, workInProgress, currentDispatcherRef) { - try { - var info = ''; - var node = workInProgress; - do { - info += describeFiber(workTagMap, node, currentDispatcherRef); - node = node.return; - } while (node); - return info; - } catch (x) { - return '\nError generating stack: ' + x.message + '\n' + x.stack; - } - } - - }, - function (module, exports, __webpack_require__) { - (function (global) { - var scope = typeof global !== "undefined" && global || typeof self !== "undefined" && self || window; - var apply = Function.prototype.apply; - - exports.setTimeout = function () { - return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout); - }; - exports.setInterval = function () { - return new Timeout(apply.call(setInterval, scope, arguments), clearInterval); - }; - exports.clearTimeout = exports.clearInterval = function (timeout) { - if (timeout) { - timeout.close(); - } - }; - function Timeout(id, clearFn) { - this._id = id; - this._clearFn = clearFn; - } - Timeout.prototype.unref = Timeout.prototype.ref = function () {}; - Timeout.prototype.close = function () { - this._clearFn.call(scope, this._id); - }; + var numUnmountIDs = pendingUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); + var operations = new Array( + // Identify which renderer this update is coming from. + 2 + + // [rendererID, rootFiberID] + // How big is the string table? + 1 + + // [stringTableLength] + // Then goes the actual string table. + pendingStringTableLength + ( + // All unmounts are batched in a single message. + // [TREE_OPERATION_REMOVE, removedIDLength, ...ids] + numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + + // Mount operations + pendingOperations.length); // Identify which renderer this update is coming from. + // This enables roots to be mapped to renderers, + // Which in turn enables fiber properations, states, and hooks to be inspected. - exports.enroll = function (item, msecs) { - clearTimeout(item._idleTimeoutId); - item._idleTimeout = msecs; - }; - exports.unenroll = function (item) { - clearTimeout(item._idleTimeoutId); - item._idleTimeout = -1; - }; - exports._unrefActive = exports.active = function (item) { - clearTimeout(item._idleTimeoutId); - var msecs = item._idleTimeout; - if (msecs >= 0) { - item._idleTimeoutId = setTimeout(function onTimeout() { - if (item._onTimeout) item._onTimeout(); - }, msecs); - } - }; + var i = 0; + operations[i++] = rendererID; + operations[i++] = rootID; // Now fill in the string table. + // [stringTableLength, str1Length, ...str1, str2Length, ...str2, ...] + + operations[i++] = pendingStringTableLength; + pendingStringTable.forEach(function (value, key) { + operations[i++] = key.length; + var encodedKey = utfEncodeString(key); + for (var j = 0; j < encodedKey.length; j++) { + operations[i + j] = encodedKey[j]; + } + i += key.length; + }); + if (numUnmountIDs > 0) { + // All unmounts except roots are batched in a single message. + operations[i++] = TREE_OPERATION_REMOVE; // The first number is how many unmounted IDs we're gonna send. - __webpack_require__(23); + operations[i++] = numUnmountIDs; // Fill in the unmounts - exports.setImmediate = typeof self !== "undefined" && self.setImmediate || typeof global !== "undefined" && global.setImmediate || this && this.setImmediate; - exports.clearImmediate = typeof self !== "undefined" && self.clearImmediate || typeof global !== "undefined" && global.clearImmediate || this && this.clearImmediate; - }).call(this, __webpack_require__(13)); + for (var j = 0; j < pendingUnmountedIDs.length; j++) { + operations[i++] = pendingUnmountedIDs[j]; + } // The root ID should always be unmounted last. - }, - function (module, exports, __webpack_require__) { - (function (global, process) { - (function (global, undefined) { - "use strict"; + if (pendingUnmountedRootID !== null) { + operations[i] = pendingUnmountedRootID; + i++; + } + } // Fill in the rest of the operations. - if (global.setImmediate) { - return; - } - var nextHandle = 1; + for (var _j = 0; _j < pendingOperations.length; _j++) { + operations[i + _j] = pendingOperations[_j]; + } + i += pendingOperations.length; + if (__DEBUG__) { + printOperationsArray(operations); + } // If we've already connected to the frontend, just pass the operations through. - var tasksByHandle = {}; - var currentlyRunningATask = false; - var doc = global.document; - var registerImmediate; - function setImmediate(callback) { - if (typeof callback !== "function") { - callback = new Function("" + callback); + hook.emit('operations', operations); + pendingOperations.length = 0; + pendingUnmountedIDs = []; + pendingUnmountedRootID = null; + pendingStringTable.clear(); + pendingStringTableLength = 0; + } + function pushOperation(op) { + if (false) {} + pendingOperations.push(op); + } + function getStringID(str) { + if (str === null) { + return 0; + } + var existingID = pendingStringTable.get(str); + if (existingID !== undefined) { + return existingID; + } + var stringID = pendingStringTable.size + 1; + pendingStringTable.set(str, stringID); // The string table total length needs to account + // both for the string length, and for the array item + // that contains the length itself. Hence + 1. + + pendingStringTableLength += str.length + 1; + return stringID; + } + var currentlyInspectedElementID = null; + var currentlyInspectedPaths = {}; // Track the intersection of currently inspected paths, + // so that we can send their data along if the element is re-rendered. + + function mergeInspectedPaths(path) { + var current = currentlyInspectedPaths; + path.forEach(function (key) { + if (!current[key]) { + current[key] = {}; + } + current = current[key]; + }); } - - var args = new Array(arguments.length - 1); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i + 1]; + function createIsPathAllowed(key) { + // This function helps prevent previously-inspected paths from being dehydrated in updates. + // This is important to avoid a bad user experience where expanded toggles collapse on update. + return function isPathAllowed(path) { + var current = currentlyInspectedPaths[key]; + if (!current) { + return false; + } + for (var i = 0; i < path.length; i++) { + current = current[path[i]]; + if (!current) { + return false; + } + } + return true; + }; + } // Fast path props lookup for React Native style editor. + + function getInstanceAndStyle(id) { + var instance = null; + var style = null; + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + instance = internalInstance._instance || null; + var element = internalInstance._currentElement; + if (element != null && element.props != null) { + style = element.props.style || null; + } + } + return { + instance: instance, + style: style + }; } - - var task = { - callback: callback, - args: args - }; - tasksByHandle[nextHandle] = task; - registerImmediate(nextHandle); - return nextHandle++; - } - function clearImmediate(handle) { - delete tasksByHandle[handle]; - } - function run(task) { - var callback = task.callback; - var args = task.args; - switch (args.length) { - case 0: - callback(); - break; - case 1: - callback(args[0]); - break; - case 2: - callback(args[0], args[1]); - break; - case 3: - callback(args[0], args[1], args[2]); - break; - default: - callback.apply(undefined, args); - break; + function updateSelectedElement(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + console.warn("Could not find instance with id \"".concat(id, "\"")); + return; + } + switch (getElementType(internalInstance)) { + case types_ElementTypeClass: + global.$r = internalInstance._instance; + break; + case types_ElementTypeFunction: + var element = internalInstance._currentElement; + if (element == null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + global.$r = { + props: element.props, + type: element.type + }; + break; + default: + global.$r = null; + break; + } } - } - function runIfPresent(handle) { - if (currentlyRunningATask) { - setTimeout(runIfPresent, 0, handle); - } else { - var task = tasksByHandle[handle]; - if (task) { - currentlyRunningATask = true; - try { - run(task); - } finally { - clearImmediate(handle); - currentlyRunningATask = false; - } + function storeAsGlobal(id, path, count) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + var value = utils_getInObject(inspectedElement, path); + var key = "$reactTemp".concat(count); + window[key] = value; + console.log(key); + console.log(value); } } - } - function installNextTickImplementation() { - registerImmediate = function registerImmediate(handle) { - process.nextTick(function () { - runIfPresent(handle); - }); - }; - } - function canUsePostMessage() { - if (global.postMessage && !global.importScripts) { - var postMessageIsAsynchronous = true; - var oldOnMessage = global.onmessage; - global.onmessage = function () { - postMessageIsAsynchronous = false; + function getSerializedElementValueByPath(id, path) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + var valueToCopy = utils_getInObject(inspectedElement, path); + return serializeToString(valueToCopy); + } + } + function inspectElement(requestID, id, path, forceFullData) { + if (forceFullData || currentlyInspectedElementID !== id) { + currentlyInspectedElementID = id; + currentlyInspectedPaths = {}; + } + var inspectedElement = inspectElementRaw(id); + if (inspectedElement === null) { + return { + id: id, + responseID: requestID, + type: 'not-found' + }; + } + if (path !== null) { + mergeInspectedPaths(path); + } // Any time an inspected element has an update, + // we should update the selected $r value as wel. + // Do this before dehydration (cleanForBridge). + + updateSelectedElement(id); + inspectedElement.context = cleanForBridge(inspectedElement.context, createIsPathAllowed('context')); + inspectedElement.props = cleanForBridge(inspectedElement.props, createIsPathAllowed('props')); + inspectedElement.state = cleanForBridge(inspectedElement.state, createIsPathAllowed('state')); + return { + id: id, + responseID: requestID, + type: 'full-data', + value: inspectedElement }; - global.postMessage("", "*"); - global.onmessage = oldOnMessage; - return postMessageIsAsynchronous; } - } - function installPostMessageImplementation() { - var messagePrefix = "setImmediate$" + Math.random() + "$"; - var onGlobalMessage = function onGlobalMessage(event) { - if (event.source === global && typeof event.data === "string" && event.data.indexOf(messagePrefix) === 0) { - runIfPresent(+event.data.slice(messagePrefix.length)); + function inspectElementRaw(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + return null; + } + var _getData2 = getData(internalInstance), + displayName = _getData2.displayName, + key = _getData2.key; + var type = getElementType(internalInstance); + var context = null; + var owners = null; + var props = null; + var state = null; + var source = null; + var element = internalInstance._currentElement; + if (element !== null) { + props = element.props; + source = element._source != null ? element._source : null; + var owner = element._owner; + if (owner) { + owners = []; + while (owner != null) { + owners.push({ + displayName: getData(owner).displayName || 'Unknown', + id: getID(owner), + key: element.key, + type: getElementType(owner) + }); + if (owner._currentElement) { + owner = owner._currentElement._owner; + } + } + } + } + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + context = publicInstance.context || null; + state = publicInstance.state || null; + } // Not implemented + + var errors = []; + var warnings = []; + return { + id: id, + // Does the current renderer support editable hooks and function props? + canEditHooks: false, + canEditFunctionProps: false, + // Does the current renderer support advanced editing interface? + canEditHooksAndDeletePaths: false, + canEditHooksAndRenamePaths: false, + canEditFunctionPropsDeletePaths: false, + canEditFunctionPropsRenamePaths: false, + // Toggle error boundary did not exist in legacy versions + canToggleError: false, + isErrored: false, + targetErrorBoundaryID: null, + // Suspense did not exist in legacy versions + canToggleSuspense: false, + // Can view component source location. + canViewSource: type === types_ElementTypeClass || type === types_ElementTypeFunction, + // Only legacy context exists in legacy versions. + hasLegacyContext: true, + displayName: displayName, + type: type, + key: key != null ? key : null, + // Inspectable properties. + context: context, + hooks: null, + props: props, + state: state, + errors: errors, + warnings: warnings, + // List of owners + owners: owners, + // Location of component in source code. + source: source, + rootType: null, + rendererPackageName: null, + rendererVersion: null, + plugins: { + stylex: null + } + }; + } + function logElementToConsole(id) { + var result = inspectElementRaw(id); + if (result === null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + var supportsGroup = typeof console.groupCollapsed === 'function'; + if (supportsGroup) { + console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), + // --dom-tag-name-color is the CSS variable Chrome styles HTML elements with in the console. + 'color: var(--dom-tag-name-color); font-weight: normal;'); + } + if (result.props !== null) { + console.log('Props:', result.props); + } + if (result.state !== null) { + console.log('State:', result.state); + } + if (result.context !== null) { + console.log('Context:', result.context); + } + var nativeNode = findNativeNodeForInternalID(id); + if (nativeNode !== null) { + console.log('Node:', nativeNode); + } + if (window.chrome || /firefox/i.test(navigator.userAgent)) { + console.log('Right-click any value to save it as a global variable for further inspection.'); + } + if (supportsGroup) { + console.groupEnd(); + } + } + function prepareViewAttributeSource(id, path) { + var inspectedElement = inspectElementRaw(id); + if (inspectedElement !== null) { + window.$attribute = utils_getInObject(inspectedElement, path); + } + } + function prepareViewElementSource(id) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance == null) { + console.warn("Could not find instance with id \"".concat(id, "\"")); + return; + } + var element = internalInstance._currentElement; + if (element == null) { + console.warn("Could not find element with id \"".concat(id, "\"")); + return; + } + global.$type = element.type; + } + function deletePath(type, id, hookID, path) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + deletePathInObject(publicInstance.context, path); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, { + props: copyWithDelete(element.props, path) + }); + forceUpdate(publicInstance); + break; + case 'state': + deletePathInObject(publicInstance.state, path); + forceUpdate(publicInstance); + break; + } + } + } + } + function renamePath(type, id, hookID, oldPath, newPath) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + renamePathInObject(publicInstance.context, oldPath, newPath); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, { + props: copyWithRename(element.props, oldPath, newPath) + }); + forceUpdate(publicInstance); + break; + case 'state': + renamePathInObject(publicInstance.state, oldPath, newPath); + forceUpdate(publicInstance); + break; + } + } } - }; - if (global.addEventListener) { - global.addEventListener("message", onGlobalMessage, false); - } else { - global.attachEvent("onmessage", onGlobalMessage); } - registerImmediate = function registerImmediate(handle) { - global.postMessage(messagePrefix + handle, "*"); + function overrideValueAtPath(type, id, hookID, path, value) { + var internalInstance = idToInternalInstanceMap.get(id); + if (internalInstance != null) { + var publicInstance = internalInstance._instance; + if (publicInstance != null) { + switch (type) { + case 'context': + utils_setInObject(publicInstance.context, path, value); + forceUpdate(publicInstance); + break; + case 'hooks': + throw new Error('Hooks not supported by this renderer'); + case 'props': + var element = internalInstance._currentElement; + internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, { + props: copyWithSet(element.props, path, value) + }); + forceUpdate(publicInstance); + break; + case 'state': + utils_setInObject(publicInstance.state, path, value); + forceUpdate(publicInstance); + break; + } + } + } + } // v16+ only features + + var getProfilingData = function getProfilingData() { + throw new Error('getProfilingData not supported by this renderer'); }; - } - function installMessageChannelImplementation() { - var channel = new MessageChannel(); - channel.port1.onmessage = function (event) { - var handle = event.data; - runIfPresent(handle); + var handleCommitFiberRoot = function handleCommitFiberRoot() { + throw new Error('handleCommitFiberRoot not supported by this renderer'); }; - registerImmediate = function registerImmediate(handle) { - channel.port2.postMessage(handle); + var handleCommitFiberUnmount = function handleCommitFiberUnmount() { + throw new Error('handleCommitFiberUnmount not supported by this renderer'); }; - } - function installReadyStateChangeImplementation() { - var html = doc.documentElement; - registerImmediate = function registerImmediate(handle) { - var script = doc.createElement("script"); - script.onreadystatechange = function () { - runIfPresent(handle); - script.onreadystatechange = null; - html.removeChild(script); - script = null; - }; - html.appendChild(script); + var handlePostCommitFiberRoot = function handlePostCommitFiberRoot() { + throw new Error('handlePostCommitFiberRoot not supported by this renderer'); }; - } - function installSetTimeoutImplementation() { - registerImmediate = function registerImmediate(handle) { - setTimeout(runIfPresent, 0, handle); + var overrideError = function overrideError() { + throw new Error('overrideError not supported by this renderer'); + }; + var overrideSuspense = function overrideSuspense() { + throw new Error('overrideSuspense not supported by this renderer'); + }; + var startProfiling = function startProfiling() {// Do not throw, since this would break a multi-root scenario where v15 and v16 were both present. + }; + var stopProfiling = function stopProfiling() {// Do not throw, since this would break a multi-root scenario where v15 and v16 were both present. + }; + function getBestMatchForTrackedPath() { + // Not implemented. + return null; + } + function getPathForElement(id) { + // Not implemented. + return null; + } + function updateComponentFilters(componentFilters) {// Not implemented. + } + function setTraceUpdatesEnabled(enabled) {// Not implemented. + } + function setTrackedPath(path) {// Not implemented. + } + function getOwnersList(id) { + // Not implemented. + return null; + } + function clearErrorsAndWarnings() {// Not implemented + } + function clearErrorsForFiberID(id) {// Not implemented + } + function clearWarningsForFiberID(id) {// Not implemented + } + function patchConsoleForStrictMode() {} + function unpatchConsoleForStrictMode() {} + function hasFiberWithId(id) { + return idToInternalInstanceMap.has(id); + } + return { + clearErrorsAndWarnings: clearErrorsAndWarnings, + clearErrorsForFiberID: clearErrorsForFiberID, + clearWarningsForFiberID: clearWarningsForFiberID, + cleanup: cleanup, + getSerializedElementValueByPath: getSerializedElementValueByPath, + deletePath: deletePath, + flushInitialOperations: flushInitialOperations, + getBestMatchForTrackedPath: getBestMatchForTrackedPath, + getDisplayNameForFiberID: getDisplayNameForFiberID, + getFiberForNative: getFiberForNative, + getFiberIDForNative: getInternalIDForNative, + getInstanceAndStyle: getInstanceAndStyle, + findNativeNodesForFiberID: function findNativeNodesForFiberID(id) { + var nativeNode = findNativeNodeForInternalID(id); + return nativeNode == null ? null : [nativeNode]; + }, + getOwnersList: getOwnersList, + getPathForElement: getPathForElement, + getProfilingData: getProfilingData, + handleCommitFiberRoot: handleCommitFiberRoot, + handleCommitFiberUnmount: handleCommitFiberUnmount, + handlePostCommitFiberRoot: handlePostCommitFiberRoot, + hasFiberWithId: hasFiberWithId, + inspectElement: inspectElement, + logElementToConsole: logElementToConsole, + overrideError: overrideError, + overrideSuspense: overrideSuspense, + overrideValueAtPath: overrideValueAtPath, + renamePath: renamePath, + patchConsoleForStrictMode: patchConsoleForStrictMode, + prepareViewAttributeSource: prepareViewAttributeSource, + prepareViewElementSource: prepareViewElementSource, + renderer: renderer, + setTraceUpdatesEnabled: setTraceUpdatesEnabled, + setTrackedPath: setTrackedPath, + startProfiling: startProfiling, + stopProfiling: stopProfiling, + storeAsGlobal: storeAsGlobal, + unpatchConsoleForStrictMode: unpatchConsoleForStrictMode, + updateComponentFilters: updateComponentFilters }; } + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/index.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + // this is the backend that is compatible with all older React versions + function isMatchingRender(version) { + return !hasAssignedBackend(version); + } + function initBackend(hook, agent, global) { + if (hook == null) { + // DevTools didn't get injected into this page (maybe b'c of the contentType). + return function () {}; + } + var subs = [hook.sub('renderer-attached', function (_ref) { + var id = _ref.id, + renderer = _ref.renderer, + rendererInterface = _ref.rendererInterface; + agent.setRendererInterface(id, rendererInterface); // Now that the Store and the renderer interface are connected, + // it's time to flush the pending operation codes to the frontend. + + rendererInterface.flushInitialOperations(); + }), hook.sub('unsupported-renderer-version', function (id) { + agent.onUnsupportedRenderer(id); + }), hook.sub('fastRefreshScheduled', agent.onFastRefreshScheduled), hook.sub('operations', agent.onHookOperations), hook.sub('traceUpdates', agent.onTraceUpdates) // TODO Add additional subscriptions required for profiling mode + ]; + + var attachRenderer = function attachRenderer(id, renderer) { + // only attach if the renderer is compatible with the current version of the backend + if (!isMatchingRender(renderer.reconcilerVersion || renderer.version)) { + return; + } + var rendererInterface = hook.rendererInterfaces.get(id); // Inject any not-yet-injected renderers (if we didn't reload-and-profile) + + if (rendererInterface == null) { + if (typeof renderer.findFiberByHostInstance === 'function') { + // react-reconciler v16+ + rendererInterface = attach(hook, id, renderer, global); + } else if (renderer.ComponentTree) { + // react-dom v15 + rendererInterface = renderer_attach(hook, id, renderer, global); + } else {// Older react-dom or other unsupported renderer version + } + if (rendererInterface != null) { + hook.rendererInterfaces.set(id, rendererInterface); + } + } // Notify the DevTools frontend about new renderers. + // This includes any that were attached early (via __REACT_DEVTOOLS_ATTACH__). - var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global); - attachTo = attachTo && attachTo.setTimeout ? attachTo : global; - - if ({}.toString.call(global.process) === "[object process]") { - installNextTickImplementation(); - } else if (canUsePostMessage()) { - installPostMessageImplementation(); - } else if (global.MessageChannel) { - installMessageChannelImplementation(); - } else if (doc && "onreadystatechange" in doc.createElement("script")) { - installReadyStateChangeImplementation(); - } else { - installSetTimeoutImplementation(); - } - attachTo.setImmediate = setImmediate; - attachTo.clearImmediate = clearImmediate; - })(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self); - }).call(this, __webpack_require__(13), __webpack_require__(16)); + if (rendererInterface != null) { + hook.emit('renderer-attached', { + id: id, + renderer: renderer, + rendererInterface: rendererInterface + }); + } else { + hook.emit('unsupported-renderer-version', id); + } + }; // Connect renderers that have already injected themselves. - }, - function (module, exports, __webpack_require__) { - "use strict"; + hook.renderers.forEach(function (renderer, id) { + attachRenderer(id, renderer); + }); // Connect any new renderers that injected themselves. - module.exports = Yallist; - Yallist.Node = Node; - Yallist.create = Yallist; - function Yallist(list) { - var self = this; - if (!(self instanceof Yallist)) { - self = new Yallist(); - } - self.tail = null; - self.head = null; - self.length = 0; - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item); - }); - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]); + subs.push(hook.sub('renderer', function (_ref2) { + var id = _ref2.id, + renderer = _ref2.renderer; + attachRenderer(id, renderer); + })); + hook.emit('react-devtools', agent); + hook.reactDevtoolsAgent = agent; + var onAgentShutdown = function onAgentShutdown() { + subs.forEach(function (fn) { + return fn(); + }); + hook.rendererInterfaces.forEach(function (rendererInterface) { + rendererInterface.cleanup(); + }); + hook.reactDevtoolsAgent = null; + }; + agent.addListener('shutdown', onAgentShutdown); + subs.push(function () { + agent.removeListener('shutdown', onAgentShutdown); + }); + return function () { + subs.forEach(function (fn) { + return fn(); + }); + }; } - } - return self; - } - Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list'); - } - var next = node.next; - var prev = node.prev; - if (next) { - next.prev = prev; - } - if (prev) { - prev.next = next; - } - if (node === this.head) { - this.head = next; - } - if (node === this.tail) { - this.tail = prev; - } - node.list.length--; - node.next = null; - node.prev = null; - node.list = null; - return next; - }; - Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var head = this.head; - node.list = this; - node.next = head; - if (head) { - head.prev = node; - } - this.head = node; - if (!this.tail) { - this.tail = node; - } - this.length++; - }; - Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var tail = this.tail; - node.list = this; - node.prev = tail; - if (tail) { - tail.next = node; - } - this.tail = node; - if (!this.head) { - this.head = node; - } - this.length++; - }; - Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined; - } - var res = this.tail.value; - this.tail = this.tail.prev; - if (this.tail) { - this.tail.next = null; - } else { - this.head = null; - } - this.length--; - return res; - }; - Yallist.prototype.shift = function () { - if (!this.head) { - return undefined; - } - var res = this.head.value; - this.head = this.head.next; - if (this.head) { - this.head.prev = null; - } else { - this.tail = null; - } - this.length--; - return res; - }; - Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this); - walker = walker.next; - } - }; - Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this); - walker = walker.prev; - } - }; - Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - walker = walker.next; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - walker = walker.prev; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.next; - } - return res; - }; - Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.prev; - } - return res; - }; - Yallist.prototype.reduce = function (fn, initial) { - var acc; - var walker = this.head; - if (arguments.length > 1) { - acc = initial; - } else if (this.head) { - walker = this.head.next; - acc = this.head.value; - } else { - throw new TypeError('Reduce of empty list with no initial value'); - } - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i); - walker = walker.next; - } - return acc; - }; - Yallist.prototype.reduceReverse = function (fn, initial) { - var acc; - var walker = this.tail; - if (arguments.length > 1) { - acc = initial; - } else if (this.tail) { - walker = this.tail.prev; - acc = this.tail.value; - } else { - throw new TypeError('Reduce of empty list with no initial value'); - } - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i); - walker = walker.prev; - } - return acc; - }; - Yallist.prototype.toArray = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.next; - } - return arr; - }; - Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.prev; - } - return arr; - }; - Yallist.prototype.slice = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next; - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev; - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.splice = function (start, deleteCount - ) { - if (start > this.length) { - start = this.length - 1; - } - if (start < 0) { - start = this.length + start; - } - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next; - } - var ret = []; - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value); - walker = this.removeNode(walker); - } - if (walker === null) { - walker = this.tail; - } - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev; - } - for (var i = 2; i < arguments.length; i++) { - walker = insert(this, walker, arguments[i]); - } - return ret; - }; - Yallist.prototype.reverse = function () { - var head = this.head; - var tail = this.tail; - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev; - walker.prev = walker.next; - walker.next = p; - } - this.head = tail; - this.tail = head; - return this; - }; - function insert(self, node, value) { - var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self); - if (inserted.next === null) { - self.tail = inserted; - } - if (inserted.prev === null) { - self.head = inserted; - } - self.length++; - return inserted; - } - function push(self, item) { - self.tail = new Node(item, self.tail, null, self); - if (!self.head) { - self.head = self.tail; - } - self.length++; - } - function unshift(self, item) { - self.head = new Node(item, null, self.head, self); - if (!self.tail) { - self.tail = self.head; - } - self.length++; - } - function Node(value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list); - } - this.list = list; - this.value = value; - if (prev) { - prev.next = this; - this.prev = prev; - } else { - this.prev = null; - } - if (next) { - next.prev = this; - this.next = next; - } else { - this.next = null; - } - } - try { - __webpack_require__(25)(Yallist); - } catch (er) {} - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/regenerator").mark(function _callee() { - var walker; - return _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/regenerator").wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - walker = this.head; - case 1: - if (!walker) { - _context.next = 7; - break; - } - _context.next = 4; - return walker.value; - case 4: - walker = walker.next; - _context.next = 1; - break; - case 7: - case "end": - return _context.stop(); + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/NativeStyleEditor/resolveBoxStyle.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + /** + * This mirrors react-native/Libraries/Inspector/resolveBoxStyle.js (but without RTL support). + * + * Resolve a style property into it's component parts, e.g. + * + * resolveBoxStyle('margin', {margin: 5, marginBottom: 10}) + * -> {top: 5, left: 5, right: 5, bottom: 10} + */ + function resolveBoxStyle(prefix, style) { + var hasParts = false; + var result = { + bottom: 0, + left: 0, + right: 0, + top: 0 + }; + var styleForAll = style[prefix]; + if (styleForAll != null) { + // eslint-disable-next-line no-for-of-loops/no-for-of-loops + for (var _i = 0, _Object$keys = Object.keys(result); _i < _Object$keys.length; _i++) { + var key = _Object$keys[_i]; + result[key] = styleForAll; } + hasParts = true; } - }, _callee, this); - }); - }; - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - /** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - var b = Symbol.for("react.element"), - c = Symbol.for("react.portal"), - d = Symbol.for("react.fragment"), - e = Symbol.for("react.strict_mode"), - f = Symbol.for("react.profiler"), - g = Symbol.for("react.provider"), - h = Symbol.for("react.context"), - k = Symbol.for("react.server_context"), - l = Symbol.for("react.forward_ref"), - m = Symbol.for("react.suspense"), - n = Symbol.for("react.suspense_list"), - p = Symbol.for("react.memo"), - q = Symbol.for("react.lazy"), - t = Symbol.for("react.offscreen"), - u = Symbol.for("react.cache"), - v = Symbol.for("react.module.reference"); - function w(a) { - if ("object" === _typeof(a) && null !== a) { - var r = a.$$typeof; - switch (r) { - case b: - switch (a = a.type, a) { - case d: - case f: - case e: - case m: - case n: - return a; - default: - switch (a = a && a.$$typeof, a) { - case k: - case h: - case l: - case q: - case p: - case g: - return a; - default: - return r; - } + var styleForHorizontal = style[prefix + 'Horizontal']; + if (styleForHorizontal != null) { + result.left = styleForHorizontal; + result.right = styleForHorizontal; + hasParts = true; + } else { + var styleForLeft = style[prefix + 'Left']; + if (styleForLeft != null) { + result.left = styleForLeft; + hasParts = true; + } + var styleForRight = style[prefix + 'Right']; + if (styleForRight != null) { + result.right = styleForRight; + hasParts = true; } - case c: - return r; + var styleForEnd = style[prefix + 'End']; + if (styleForEnd != null) { + // TODO RTL support + result.right = styleForEnd; + hasParts = true; + } + var styleForStart = style[prefix + 'Start']; + if (styleForStart != null) { + // TODO RTL support + result.left = styleForStart; + hasParts = true; + } + } + var styleForVertical = style[prefix + 'Vertical']; + if (styleForVertical != null) { + result.bottom = styleForVertical; + result.top = styleForVertical; + hasParts = true; + } else { + var styleForBottom = style[prefix + 'Bottom']; + if (styleForBottom != null) { + result.bottom = styleForBottom; + hasParts = true; + } + var styleForTop = style[prefix + 'Top']; + if (styleForTop != null) { + result.top = styleForTop; + hasParts = true; + } + } + return hasParts ? result : null; } - } - } - exports.ContextConsumer = h; - exports.ContextProvider = g; - exports.Element = b; - exports.ForwardRef = l; - exports.Fragment = d; - exports.Lazy = q; - exports.Memo = p; - exports.Portal = c; - exports.Profiler = f; - exports.StrictMode = e; - exports.Suspense = m; - exports.SuspenseList = n; - exports.isAsyncMode = function () { - return !1; - }; - exports.isConcurrentMode = function () { - return !1; - }; - exports.isContextConsumer = function (a) { - return w(a) === h; - }; - exports.isContextProvider = function (a) { - return w(a) === g; - }; - exports.isElement = function (a) { - return "object" === _typeof(a) && null !== a && a.$$typeof === b; - }; - exports.isForwardRef = function (a) { - return w(a) === l; - }; - exports.isFragment = function (a) { - return w(a) === d; - }; - exports.isLazy = function (a) { - return w(a) === q; - }; - exports.isMemo = function (a) { - return w(a) === p; - }; - exports.isPortal = function (a) { - return w(a) === c; - }; - exports.isProfiler = function (a) { - return w(a) === f; - }; - exports.isStrictMode = function (a) { - return w(a) === e; - }; - exports.isSuspense = function (a) { - return w(a) === m; - }; - exports.isSuspenseList = function (a) { - return w(a) === n; - }; - exports.isValidElementType = function (a) { - return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || a === u || "object" === _typeof(a) && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === v || void 0 !== a.getModuleId) ? !0 : !1; - }; - exports.typeOf = w; - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - /** - * @license React - * react-debug-tools.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - function _typeof(obj) { - "@babel/helpers - typeof"; + ; // CONCATENATED MODULE: ../react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js + function setupNativeStyleEditor_typeof(obj) { + "@babel/helpers - typeof"; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - var h = __webpack_require__(28), - l = __webpack_require__(30), - q = Object.assign, - w = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - x = [], - y = null; - function z() { - if (null === y) { - var a = new Map(); - try { - A.useContext({ - _currentValue: null - }), A.useState(null), A.useReducer(function (a) { - return a; - }, null), A.useRef(null), "function" === typeof A.useCacheRefresh && A.useCacheRefresh(), A.useLayoutEffect(function () {}), A.useInsertionEffect(function () {}), A.useEffect(function () {}), A.useImperativeHandle(void 0, function () { - return null; - }), A.useDebugValue(null), A.useCallback(function () {}), A.useMemo(function () { - return null; - }); - } finally { - var b = x; - x = []; + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + setupNativeStyleEditor_typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + setupNativeStyleEditor_typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + return setupNativeStyleEditor_typeof(obj); } - for (var e = 0; e < b.length; e++) { - var f = b[e]; - a.set(f.primitive, h.parse(f.stackError)); + function setupNativeStyleEditor_defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; } - y = a; - } - return y; - } - var B = null; - function C() { - var a = B; - null !== a && (B = a.next); - return a; - } - var A = { - getCacheForType: function getCacheForType() { - throw Error("Not implemented."); - }, - readContext: function readContext(a) { - return a._currentValue; - }, - useCacheRefresh: function useCacheRefresh() { - var a = C(); - x.push({ - primitive: "CacheRefresh", - stackError: Error(), - value: null !== a ? a.memoizedState : function () {} - }); - return function () {}; - }, - useCallback: function useCallback(a) { - var b = C(); - x.push({ - primitive: "Callback", - stackError: Error(), - value: null !== b ? b.memoizedState[0] : a - }); - return a; - }, - useContext: function useContext(a) { - x.push({ - primitive: "Context", - stackError: Error(), - value: a._currentValue - }); - return a._currentValue; - }, - useEffect: function useEffect(a) { - C(); - x.push({ - primitive: "Effect", - stackError: Error(), - value: a - }); - }, - useImperativeHandle: function useImperativeHandle(a) { - C(); - var b = void 0; - null !== a && "object" === _typeof(a) && (b = a.current); - x.push({ - primitive: "ImperativeHandle", - stackError: Error(), - value: b - }); - }, - useDebugValue: function useDebugValue(a, b) { - x.push({ - primitive: "DebugValue", - stackError: Error(), - value: "function" === typeof b ? b(a) : a - }); - }, - useLayoutEffect: function useLayoutEffect(a) { - C(); - x.push({ - primitive: "LayoutEffect", - stackError: Error(), - value: a - }); - }, - useInsertionEffect: function useInsertionEffect(a) { - C(); - x.push({ - primitive: "InsertionEffect", - stackError: Error(), - value: a - }); - }, - useMemo: function useMemo(a) { - var b = C(); - a = null !== b ? b.memoizedState[0] : a(); - x.push({ - primitive: "Memo", - stackError: Error(), - value: a - }); - return a; - }, - useReducer: function useReducer(a, b, e) { - a = C(); - b = null !== a ? a.memoizedState : void 0 !== e ? e(b) : b; - x.push({ - primitive: "Reducer", - stackError: Error(), - value: b - }); - return [b, function () {}]; - }, - useRef: function useRef(a) { - var b = C(); - a = null !== b ? b.memoizedState : { - current: a - }; - x.push({ - primitive: "Ref", - stackError: Error(), - value: a.current - }); - return a; - }, - useState: function useState(a) { - var b = C(); - a = null !== b ? b.memoizedState : "function" === typeof a ? a() : a; - x.push({ - primitive: "State", - stackError: Error(), - value: a + + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + function setupNativeStyleEditor(bridge, agent, resolveNativeStyle, validAttributes) { + bridge.addListener('NativeStyleEditor_measure', function (_ref) { + var id = _ref.id, + rendererID = _ref.rendererID; + measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); }); - return [a, function () {}]; - }, - useTransition: function useTransition() { - C(); - C(); - x.push({ - primitive: "Transition", - stackError: Error(), - value: void 0 + bridge.addListener('NativeStyleEditor_renameAttribute', function (_ref2) { + var id = _ref2.id, + rendererID = _ref2.rendererID, + oldName = _ref2.oldName, + newName = _ref2.newName, + value = _ref2.value; + renameStyle(agent, id, rendererID, oldName, newName, value); + setTimeout(function () { + return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); + }); }); - return [!1, function () {}]; - }, - useMutableSource: function useMutableSource(a, b) { - C(); - C(); - C(); - C(); - a = b(a._source); - x.push({ - primitive: "MutableSource", - stackError: Error(), - value: a + bridge.addListener('NativeStyleEditor_setValue', function (_ref3) { + var id = _ref3.id, + rendererID = _ref3.rendererID, + name = _ref3.name, + value = _ref3.value; + setStyle(agent, id, rendererID, name, value); + setTimeout(function () { + return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); + }); }); - return a; - }, - useSyncExternalStore: function useSyncExternalStore(a, b) { - C(); - C(); - a = b(); - x.push({ - primitive: "SyncExternalStore", - stackError: Error(), - value: a + bridge.send('isNativeStyleEditorSupported', { + isSupported: true, + validAttributes: validAttributes }); - return a; - }, - useDeferredValue: function useDeferredValue(a) { - C(); - C(); - x.push({ - primitive: "DeferredValue", - stackError: Error(), - value: a + } + var EMPTY_BOX_STYLE = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + var componentIDToStyleOverrides = new Map(); + function measureStyle(agent, bridge, resolveNativeStyle, id, rendererID) { + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID }); - return a; - }, - useId: function useId() { - var a = C(); - a = null !== a ? a.memoizedState : ""; - x.push({ - primitive: "Id", - stackError: Error(), - value: a + if (!data || !data.style) { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: null + }); + return; + } + var instance = data.instance, + style = data.style; + var resolvedStyle = resolveNativeStyle(style); // If it's a host component we edited before, amend styles. + + var styleOverrides = componentIDToStyleOverrides.get(id); + if (styleOverrides != null) { + resolvedStyle = Object.assign({}, resolvedStyle, styleOverrides); + } + if (!instance || typeof instance.measure !== 'function') { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: resolvedStyle || null + }); + return; + } + instance.measure(function (x, y, width, height, left, top) { + // RN Android sometimes returns undefined here. Don't send measurements in this case. + // https://github.com/jhen0409/react-native-debugger/issues/84#issuecomment-304611817 + if (typeof x !== 'number') { + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: null, + style: resolvedStyle || null + }); + return; + } + var margin = resolvedStyle != null && resolveBoxStyle('margin', resolvedStyle) || EMPTY_BOX_STYLE; + var padding = resolvedStyle != null && resolveBoxStyle('padding', resolvedStyle) || EMPTY_BOX_STYLE; + bridge.send('NativeStyleEditor_styleAndLayout', { + id: id, + layout: { + x: x, + y: y, + width: width, + height: height, + left: left, + top: top, + margin: margin, + padding: padding + }, + style: resolvedStyle || null + }); }); - return a; } - }, - D = 0; - function E(a, b, e) { - var f = b[e].source, - c = 0; - a: for (; c < a.length; c++) { - if (a[c].source === f) { - for (var m = e + 1, r = c + 1; m < b.length && r < a.length; m++, r++) { - if (a[r].source !== b[m].source) continue a; + function shallowClone(object) { + var cloned = {}; + for (var n in object) { + cloned[n] = object[n]; } - return c; + return cloned; } - } - return -1; - } - function F(a, b) { - if (!a) return !1; - b = "use" + b; - return a.length < b.length ? !1 : a.lastIndexOf(b) === a.length - b.length; - } - function G(a, b, e) { - for (var f = [], c = null, m = f, r = 0, t = [], v = 0; v < b.length; v++) { - var u = b[v]; - var d = a; - var k = h.parse(u.stackError); - b: { - var n = k, - p = E(n, d, D); - if (-1 !== p) d = p;else { - for (var g = 0; g < d.length && 5 > g; g++) { - if (p = E(n, d, g), -1 !== p) { - D = g; - d = p; - break b; + function renameStyle(agent, id, rendererID, oldName, newName, value) { + var _ref4; + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID + }); + if (!data || !data.style) { + return; + } + var instance = data.instance, + style = data.style; + var newStyle = newName ? (_ref4 = {}, setupNativeStyleEditor_defineProperty(_ref4, oldName, undefined), setupNativeStyleEditor_defineProperty(_ref4, newName, value), _ref4) : setupNativeStyleEditor_defineProperty({}, oldName, undefined); + var customStyle; // TODO It would be nice if the renderer interface abstracted this away somehow. + + if (instance !== null && typeof instance.setNativeProps === 'function') { + // In the case of a host component, we need to use setNativeProps(). + // Remember to "correct" resolved styles when we read them next time. + var styleOverrides = componentIDToStyleOverrides.get(id); + if (!styleOverrides) { + componentIDToStyleOverrides.set(id, newStyle); + } else { + Object.assign(styleOverrides, newStyle); + } // TODO Fabric does not support setNativeProps; chat with Sebastian or Eli + + instance.setNativeProps({ + style: newStyle + }); + } else if (src_isArray(style)) { + var lastIndex = style.length - 1; + if (setupNativeStyleEditor_typeof(style[lastIndex]) === 'object' && !src_isArray(style[lastIndex])) { + customStyle = shallowClone(style[lastIndex]); + delete customStyle[oldName]; + if (newName) { + customStyle[newName] = value; + } else { + customStyle[oldName] = undefined; } + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style', lastIndex], + value: customStyle + }); + } else { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: style.concat([newStyle]) + }); } - d = -1; - } - } - b: { - n = k; - p = z().get(u.primitive); - if (void 0 !== p) for (g = 0; g < p.length && g < n.length; g++) { - if (p[g].source !== n[g].source) { - g < n.length - 1 && F(n[g].functionName, u.primitive) && g++; - g < n.length - 1 && F(n[g].functionName, u.primitive) && g++; - n = g; - break b; + } else if (setupNativeStyleEditor_typeof(style) === 'object') { + customStyle = shallowClone(style); + delete customStyle[oldName]; + if (newName) { + customStyle[newName] = value; + } else { + customStyle[oldName] = undefined; } - } - n = -1; - } - k = -1 === d || -1 === n || 2 > d - n ? null : k.slice(n, d - 1); - if (null !== k) { - d = 0; - if (null !== c) { - for (; d < k.length && d < c.length && k[k.length - d - 1].source === c[c.length - d - 1].source;) { - d++; - } - for (c = c.length - 1; c > d; c--) { - m = t.pop(); - } - } - for (c = k.length - d - 1; 1 <= c; c--) { - d = [], n = k[c], (p = k[c - 1].functionName) ? (g = p.lastIndexOf("."), -1 === g && (g = 0), "use" === p.substr(g, 3) && (g += 3), p = p.substr(g)) : p = "", p = { - id: null, - isStateEditable: !1, - name: p, - value: void 0, - subHooks: d - }, e && (p.hookSource = { - lineNumber: n.lineNumber, - columnNumber: n.columnNumber, - functionName: n.functionName, - fileName: n.fileName - }), m.push(p), t.push(m), m = d; - } - c = k; - } - d = u.primitive; - u = { - id: "Context" === d || "DebugValue" === d ? null : r++, - isStateEditable: "Reducer" === d || "State" === d, - name: d, - value: u.value, - subHooks: [] - }; - e && (d = { - lineNumber: null, - functionName: null, - fileName: null, - columnNumber: null - }, k && 1 <= k.length && (k = k[0], d.lineNumber = k.lineNumber, d.functionName = k.functionName, d.fileName = k.fileName, d.columnNumber = k.columnNumber), u.hookSource = d); - m.push(u); - } - H(f, null); - return f; - } - function H(a, b) { - for (var e = [], f = 0; f < a.length; f++) { - var c = a[f]; - "DebugValue" === c.name && 0 === c.subHooks.length ? (a.splice(f, 1), f--, e.push(c)) : H(c.subHooks, c); - } - null !== b && (1 === e.length ? b.value = e[0].value : 1 < e.length && (b.value = e.map(function (a) { - return a.value; - }))); - } - function I(a, b, e) { - var f = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1; - null == e && (e = w.ReactCurrentDispatcher); - var c = e.current; - e.current = A; - try { - var m = Error(); - a(b); - } finally { - var r = x; - x = []; - e.current = c; - } - c = h.parse(m); - return G(c, r, f); - } - function J(a) { - a.forEach(function (a, e) { - return e._currentValue = a; - }); - } - exports.inspectHooks = I; - exports.inspectHooksOfFiber = function (a, b) { - var e = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1; - null == b && (b = w.ReactCurrentDispatcher); - if (0 !== a.tag && 15 !== a.tag && 11 !== a.tag) throw Error("Unknown Fiber. Needs to be a function component to inspect hooks."); - z(); - var f = a.type, - c = a.memoizedProps; - if (f !== a.elementType && f && f.defaultProps) { - c = q({}, c); - var m = f.defaultProps; - for (r in m) { - void 0 === c[r] && (c[r] = m[r]); - } - } - B = a.memoizedState; - var r = new Map(); - try { - for (m = a; m;) { - if (10 === m.tag) { - var t = m.type._context; - r.has(t) || (r.set(t, t._currentValue), t._currentValue = m.memoizedProps.value); - } - m = m.return; - } - if (11 === a.tag) { - var v = f.render; - f = c; - var u = a.ref; - t = b; - var d = t.current; - t.current = A; - try { - var k = Error(); - v(f, u); - } finally { - var n = x; - x = []; - t.current = d; - } - var p = h.parse(k); - return G(p, n, e); - } - return I(f, c, b, e); - } finally { - B = null, J(r); - } - }; - - }, - function (module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - (function (root, factory) { - 'use strict'; - - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(29)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - })(this, function ErrorStackParser(StackFrame) { - 'use strict'; - - var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/; - var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m; - var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/; - return { - parse: function ErrorStackParser$$parse(error) { - if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') { - return this.parseOpera(error); - } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) { - return this.parseV8OrIE(error); - } else if (error.stack) { - return this.parseFFOrSafari(error); + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: customStyle + }); } else { - throw new Error('Cannot parse given Error object'); + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: [style, newStyle] + }); } - }, - extractLocation: function ErrorStackParser$$extractLocation(urlLike) { - if (urlLike.indexOf(':') === -1) { - return [urlLike]; + agent.emit('hideNativeHighlight'); + } + function setStyle(agent, id, rendererID, name, value) { + var data = agent.getInstanceAndStyle({ + id: id, + rendererID: rendererID + }); + if (!data || !data.style) { + return; } - var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; - var parts = regExp.exec(urlLike.replace(/[()]/g, '')); - return [parts[1], parts[2] || undefined, parts[3] || undefined]; - }, - parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) { - var filtered = error.stack.split('\n').filter(function (line) { - return !!line.match(CHROME_IE_STACK_REGEXP); - }, this); - return filtered.map(function (line) { - if (line.indexOf('(eval ') > -1) { - line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, ''); - } - var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '('); - - var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/); + var instance = data.instance, + style = data.style; + var newStyle = setupNativeStyleEditor_defineProperty({}, name, value); // TODO It would be nice if the renderer interface abstracted this away somehow. - sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine; - var tokens = sanitizedLine.split(/\s+/).slice(1); + if (instance !== null && typeof instance.setNativeProps === 'function') { + // In the case of a host component, we need to use setNativeProps(). + // Remember to "correct" resolved styles when we read them next time. + var styleOverrides = componentIDToStyleOverrides.get(id); + if (!styleOverrides) { + componentIDToStyleOverrides.set(id, newStyle); + } else { + Object.assign(styleOverrides, newStyle); + } // TODO Fabric does not support setNativeProps; chat with Sebastian or Eli - var locationParts = this.extractLocation(location ? location[1] : tokens.pop()); - var functionName = tokens.join(' ') || undefined; - var fileName = ['eval', ''].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0]; - return new StackFrame({ - functionName: functionName, - fileName: fileName, - lineNumber: locationParts[1], - columnNumber: locationParts[2], - source: line + instance.setNativeProps({ + style: newStyle }); - }, this); - }, - parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) { - var filtered = error.stack.split('\n').filter(function (line) { - return !line.match(SAFARI_NATIVE_CODE_REGEXP); - }, this); - return filtered.map(function (line) { - if (line.indexOf(' > eval') > -1) { - line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1'); - } - if (line.indexOf('@') === -1 && line.indexOf(':') === -1) { - return new StackFrame({ - functionName: line + } else if (src_isArray(style)) { + var lastLength = style.length - 1; + if (setupNativeStyleEditor_typeof(style[lastLength]) === 'object' && !src_isArray(style[lastLength])) { + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style', lastLength, name], + value: value }); } else { - var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/; - var matches = line.match(functionNameRegex); - var functionName = matches && matches[1] ? matches[1] : undefined; - var locationParts = this.extractLocation(line.replace(functionNameRegex, '')); - return new StackFrame({ - functionName: functionName, - fileName: locationParts[0], - lineNumber: locationParts[1], - columnNumber: locationParts[2], - source: line + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: style.concat([newStyle]) }); } - }, this); - }, - parseOpera: function ErrorStackParser$$parseOpera(e) { - if (!e.stacktrace || e.message.indexOf('\n') > -1 && e.message.split('\n').length > e.stacktrace.split('\n').length) { - return this.parseOpera9(e); - } else if (!e.stack) { - return this.parseOpera10(e); } else { - return this.parseOpera11(e); - } - }, - parseOpera9: function ErrorStackParser$$parseOpera9(e) { - var lineRE = /Line (\d+).*script (?:in )?(\S+)/i; - var lines = e.message.split('\n'); - var result = []; - for (var i = 2, len = lines.length; i < len; i += 2) { - var match = lineRE.exec(lines[i]); - if (match) { - result.push(new StackFrame({ - fileName: match[2], - lineNumber: match[1], - source: lines[i] - })); - } - } - return result; - }, - parseOpera10: function ErrorStackParser$$parseOpera10(e) { - var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i; - var lines = e.stacktrace.split('\n'); - var result = []; - for (var i = 0, len = lines.length; i < len; i += 2) { - var match = lineRE.exec(lines[i]); - if (match) { - result.push(new StackFrame({ - functionName: match[3] || undefined, - fileName: match[2], - lineNumber: match[1], - source: lines[i] - })); - } - } - return result; - }, - parseOpera11: function ErrorStackParser$$parseOpera11(error) { - var filtered = error.stack.split('\n').filter(function (line) { - return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/); - }, this); - return filtered.map(function (line) { - var tokens = line.split('@'); - var locationParts = this.extractLocation(tokens.pop()); - var functionCall = tokens.shift() || ''; - var functionName = functionCall.replace(//, '$2').replace(/\([^)]*\)/g, '') || undefined; - var argsRaw; - if (functionCall.match(/\(([^)]*)\)/)) { - argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1'); - } - var args = argsRaw === undefined || argsRaw === '[arguments not available]' ? undefined : argsRaw.split(','); - return new StackFrame({ - functionName: functionName, - args: args, - fileName: locationParts[0], - lineNumber: locationParts[1], - columnNumber: locationParts[2], - source: line + agent.overrideValueAtPath({ + type: 'props', + id: id, + rendererID: rendererID, + path: ['style'], + value: [style, newStyle] }); - }, this); + } + agent.emit('hideNativeHighlight'); } - }; - }); - - }, - function (module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - (function (root, factory) { - 'use strict'; + ; // CONCATENATED MODULE: ./src/cachedSettings.js + /** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - })(this, function () { - 'use strict'; + // Note: all keys should be optional in this type, because users can use newer + // versions of React DevTools with older versions of React Native, and the object + // provided by React Native may not include all of this type's fields. - function _isNumber(n) { - return !isNaN(parseFloat(n)) && isFinite(n); - } - function _capitalize(str) { - return str.charAt(0).toUpperCase() + str.substring(1); - } - function _getter(p) { - return function () { - return this[p]; - }; - } - var booleanProps = ['isConstructor', 'isEval', 'isNative', 'isToplevel']; - var numericProps = ['columnNumber', 'lineNumber']; - var stringProps = ['fileName', 'functionName', 'source']; - var arrayProps = ['args']; - var props = booleanProps.concat(numericProps, stringProps, arrayProps); - function StackFrame(obj) { - if (!obj) return; - for (var i = 0; i < props.length; i++) { - if (obj[props[i]] !== undefined) { - this['set' + _capitalize(props[i])](obj[props[i]]); - } + function initializeUsingCachedSettings(devToolsSettingsManager) { + initializeConsolePatchSettings(devToolsSettingsManager); } - } - StackFrame.prototype = { - getArgs: function getArgs() { - return this.args; - }, - setArgs: function setArgs(v) { - if (Object.prototype.toString.call(v) !== '[object Array]') { - throw new TypeError('Args must be an Array'); + function initializeConsolePatchSettings(devToolsSettingsManager) { + if (devToolsSettingsManager.getConsolePatchSettings == null) { + return; } - this.args = v; - }, - getEvalOrigin: function getEvalOrigin() { - return this.evalOrigin; - }, - setEvalOrigin: function setEvalOrigin(v) { - if (v instanceof StackFrame) { - this.evalOrigin = v; - } else if (v instanceof Object) { - this.evalOrigin = new StackFrame(v); - } else { - throw new TypeError('Eval Origin must be an Object or StackFrame'); - } - }, - toString: function toString() { - var fileName = this.getFileName() || ''; - var lineNumber = this.getLineNumber() || ''; - var columnNumber = this.getColumnNumber() || ''; - var functionName = this.getFunctionName() || ''; - if (this.getIsEval()) { - if (fileName) { - return '[eval] (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; - } - return '[eval]:' + lineNumber + ':' + columnNumber; - } - if (functionName) { - return functionName + ' (' + fileName + ':' + lineNumber + ':' + columnNumber + ')'; - } - return fileName + ':' + lineNumber + ':' + columnNumber; - } - }; - StackFrame.fromString = function StackFrame$$fromString(str) { - var argsStartIndex = str.indexOf('('); - var argsEndIndex = str.lastIndexOf(')'); - var functionName = str.substring(0, argsStartIndex); - var args = str.substring(argsStartIndex + 1, argsEndIndex).split(','); - var locationString = str.substring(argsEndIndex + 1); - if (locationString.indexOf('@') === 0) { - var parts = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(locationString, ''); - var fileName = parts[1]; - var lineNumber = parts[2]; - var columnNumber = parts[3]; - } - return new StackFrame({ - functionName: functionName, - args: args || undefined, - fileName: fileName, - lineNumber: lineNumber || undefined, - columnNumber: columnNumber || undefined - }); - }; - for (var i = 0; i < booleanProps.length; i++) { - StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); - StackFrame.prototype['set' + _capitalize(booleanProps[i])] = function (p) { - return function (v) { - this[p] = Boolean(v); - }; - }(booleanProps[i]); - } - for (var j = 0; j < numericProps.length; j++) { - StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); - StackFrame.prototype['set' + _capitalize(numericProps[j])] = function (p) { - return function (v) { - if (!_isNumber(v)) { - throw new TypeError(p + ' must be a Number'); - } - this[p] = Number(v); - }; - }(numericProps[j]); - } - for (var k = 0; k < stringProps.length; k++) { - StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); - StackFrame.prototype['set' + _capitalize(stringProps[k])] = function (p) { - return function (v) { - this[p] = String(v); - }; - }(stringProps[k]); - } - return StackFrame; - }); - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - if (true) { - module.exports = __webpack_require__(31); - } else {} - - }, - function (module, exports, __webpack_require__) { - "use strict"; - - /** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return _typeof(obj); - } - var l = Symbol.for("react.element"), - n = Symbol.for("react.portal"), - p = Symbol.for("react.fragment"), - q = Symbol.for("react.strict_mode"), - r = Symbol.for("react.profiler"), - t = Symbol.for("react.provider"), - u = Symbol.for("react.context"), - v = Symbol.for("react.server_context"), - w = Symbol.for("react.forward_ref"), - x = Symbol.for("react.suspense"), - y = Symbol.for("react.suspense_list"), - z = Symbol.for("react.memo"), - A = Symbol.for("react.lazy"), - B = Symbol.for("react.debug_trace_mode"), - C = Symbol.for("react.offscreen"), - aa = Symbol.for("react.cache"), - D = Symbol.for("react.default_value"), - E = Symbol.iterator; - function ba(a) { - if (null === a || "object" !== _typeof(a)) return null; - a = E && a[E] || a["@@iterator"]; - return "function" === typeof a ? a : null; - } - var F = { - isMounted: function isMounted() { - return !1; - }, - enqueueForceUpdate: function enqueueForceUpdate() {}, - enqueueReplaceState: function enqueueReplaceState() {}, - enqueueSetState: function enqueueSetState() {} - }, - G = Object.assign, - H = {}; - function I(a, b, d) { - this.props = a; - this.context = b; - this.refs = H; - this.updater = d || F; - } - I.prototype.isReactComponent = {}; - I.prototype.setState = function (a, b) { - if ("object" !== _typeof(a) && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - this.updater.enqueueSetState(this, a, b, "setState"); - }; - I.prototype.forceUpdate = function (a) { - this.updater.enqueueForceUpdate(this, a, "forceUpdate"); - }; - function J() {} - J.prototype = I.prototype; - function K(a, b, d) { - this.props = a; - this.context = b; - this.refs = H; - this.updater = d || F; - } - var L = K.prototype = new J(); - L.constructor = K; - G(L, I.prototype); - L.isPureReactComponent = !0; - var M = Array.isArray, - N = Object.prototype.hasOwnProperty, - O = { - current: null - }, - P = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }; - function Q(a, b, d) { - var c, - e = {}, - k = null, - h = null; - if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) { - N.call(b, c) && !P.hasOwnProperty(c) && (e[c] = b[c]); - } - var g = arguments.length - 2; - if (1 === g) e.children = d;else if (1 < g) { - for (var f = Array(g), m = 0; m < g; m++) { - f[m] = arguments[m + 2]; - } - e.children = f; - } - if (a && a.defaultProps) for (c in g = a.defaultProps, g) { - void 0 === e[c] && (e[c] = g[c]); - } - return { - $$typeof: l, - type: a, - key: k, - ref: h, - props: e, - _owner: O.current - }; - } - function ca(a, b) { - return { - $$typeof: l, - type: a.type, - key: b, - ref: a.ref, - props: a.props, - _owner: a._owner - }; - } - function R(a) { - return "object" === _typeof(a) && null !== a && a.$$typeof === l; - } - function escape(a) { - var b = { - "=": "=0", - ":": "=2" - }; - return "$" + a.replace(/[=:]/g, function (a) { - return b[a]; - }); - } - var S = /\/+/g; - function T(a, b) { - return "object" === _typeof(a) && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); - } - function U(a, b, d, c, e) { - var k = _typeof(a); - if ("undefined" === k || "boolean" === k) a = null; - var h = !1; - if (null === a) h = !0;else switch (k) { - case "string": - case "number": - h = !0; - break; - case "object": - switch (a.$$typeof) { - case l: - case n: - h = !0; - } - } - if (h) return h = a, e = e(h), a = "" === c ? "." + T(h, 0) : c, M(e) ? (d = "", null != a && (d = a.replace(S, "$&/") + "/"), U(e, b, d, "", function (a) { - return a; - })) : null != e && (R(e) && (e = ca(e, d + (!e.key || h && h.key === e.key ? "" : ("" + e.key).replace(S, "$&/") + "/") + a)), b.push(e)), 1; - h = 0; - c = "" === c ? "." : c + ":"; - if (M(a)) for (var g = 0; g < a.length; g++) { - k = a[g]; - var f = c + T(k, g); - h += U(k, b, d, f, e); - } else if (f = ba(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) { - k = k.value, f = c + T(k, g++), h += U(k, b, d, f, e); - } else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); - return h; - } - function V(a, b, d) { - if (null == a) return a; - var c = [], - e = 0; - U(a, c, "", "", function (a) { - return b.call(d, a, e++); - }); - return c; - } - function da(a) { - if (-1 === a._status) { - var b = a._result; - b = b(); - b.then(function (b) { - if (0 === a._status || -1 === a._status) a._status = 1, a._result = b; - }, function (b) { - if (0 === a._status || -1 === a._status) a._status = 2, a._result = b; - }); - -1 === a._status && (a._status = 0, a._result = b); - } - if (1 === a._status) return a._result.default; - throw a._result; - } - var W = { - current: null - }, - X = { - transition: null - }, - Y = { - ReactCurrentDispatcher: W, - ReactCurrentBatchConfig: X, - ReactCurrentOwner: O, - ContextRegistry: {} - }, - Z = Y.ContextRegistry; - exports.Children = { - map: V, - forEach: function forEach(a, b, d) { - V(a, function () { - b.apply(this, arguments); - }, d); - }, - count: function count(a) { - var b = 0; - V(a, function () { - b++; - }); - return b; - }, - toArray: function toArray(a) { - return V(a, function (a) { - return a; - }) || []; - }, - only: function only(a) { - if (!R(a)) throw Error("React.Children.only expected to receive a single React element child."); - return a; - } - }; - exports.Component = I; - exports.Fragment = p; - exports.Profiler = r; - exports.PureComponent = K; - exports.StrictMode = q; - exports.Suspense = x; - exports.SuspenseList = y; - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y; - exports.cloneElement = function (a, b, d) { - if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); - var c = G({}, a.props), - e = a.key, - k = a.ref, - h = a._owner; - if (null != b) { - void 0 !== b.ref && (k = b.ref, h = O.current); - void 0 !== b.key && (e = "" + b.key); - if (a.type && a.type.defaultProps) var g = a.type.defaultProps; - for (f in b) { - N.call(b, f) && !P.hasOwnProperty(f) && (c[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); - } - } - var f = arguments.length - 2; - if (1 === f) c.children = d;else if (1 < f) { - g = Array(f); - for (var m = 0; m < f; m++) { - g[m] = arguments[m + 2]; - } - c.children = g; - } - return { - $$typeof: l, - type: a.type, - key: e, - ref: k, - props: c, - _owner: h - }; - }; - exports.createContext = function (a) { - a = { - $$typeof: u, - _currentValue: a, - _currentValue2: a, - _threadCount: 0, - Provider: null, - Consumer: null, - _defaultValue: null, - _globalName: null - }; - a.Provider = { - $$typeof: t, - _context: a - }; - return a.Consumer = a; - }; - exports.createElement = Q; - exports.createFactory = function (a) { - var b = Q.bind(null, a); - b.type = a; - return b; - }; - exports.createRef = function () { - return { - current: null - }; - }; - exports.createServerContext = function (a, b) { - var d = !0; - if (!Z[a]) { - d = !1; - var c = { - $$typeof: v, - _currentValue: b, - _currentValue2: b, - _defaultValue: b, - _threadCount: 0, - Provider: null, - Consumer: null, - _globalName: a - }; - c.Provider = { - $$typeof: t, - _context: c - }; - Z[a] = c; - } - c = Z[a]; - if (c._defaultValue === D) c._defaultValue = b, c._currentValue === D && (c._currentValue = b), c._currentValue2 === D && (c._currentValue2 = b);else if (d) throw Error("ServerContext: " + a + " already defined"); - return c; - }; - exports.forwardRef = function (a) { - return { - $$typeof: w, - render: a - }; - }; - exports.isValidElement = R; - exports.lazy = function (a) { - return { - $$typeof: A, - _payload: { - _status: -1, - _result: a - }, - _init: da - }; - }; - exports.memo = function (a, b) { - return { - $$typeof: z, - type: a, - compare: void 0 === b ? null : b - }; - }; - exports.startTransition = function (a) { - var b = X.transition; - X.transition = {}; - try { - a(); - } finally { - X.transition = b; - } - }; - exports.unstable_Cache = aa; - exports.unstable_DebugTracingMode = B; - exports.unstable_Offscreen = C; - exports.unstable_act = function () { - throw Error("act(...) is not supported in production builds of React."); - }; - exports.unstable_createMutableSource = function (a, b) { - return { - _getVersion: b, - _source: a, - _workInProgressVersionPrimary: null, - _workInProgressVersionSecondary: null - }; - }; - exports.unstable_getCacheForType = function (a) { - return W.current.getCacheForType(a); - }; - exports.unstable_getCacheSignal = function () { - return W.current.getCacheSignal(); - }; - exports.unstable_useCacheRefresh = function () { - return W.current.useCacheRefresh(); - }; - exports.useCallback = function (a, b) { - return W.current.useCallback(a, b); - }; - exports.useContext = function (a) { - return W.current.useContext(a); - }; - exports.useDebugValue = function () {}; - exports.useDeferredValue = function (a) { - return W.current.useDeferredValue(a); - }; - exports.useEffect = function (a, b) { - return W.current.useEffect(a, b); - }; - exports.useId = function () { - return W.current.useId(); - }; - exports.useImperativeHandle = function (a, b, d) { - return W.current.useImperativeHandle(a, b, d); - }; - exports.useInsertionEffect = function (a, b) { - return W.current.useInsertionEffect(a, b); - }; - exports.useLayoutEffect = function (a, b) { - return W.current.useLayoutEffect(a, b); - }; - exports.useMemo = function (a, b) { - return W.current.useMemo(a, b); - }; - exports.useReducer = function (a, b, d) { - return W.current.useReducer(a, b, d); - }; - exports.useRef = function (a) { - return W.current.useRef(a); - }; - exports.useState = function (a) { - return W.current.useState(a); - }; - exports.useSyncExternalStore = function (a, b, d) { - return W.current.useSyncExternalStore(a, b, d); - }; - exports.useTransition = function () { - return W.current.useTransition(); - }; - exports.version = "18.0.0-rc.2-experimental-82762bea5-20220310"; - - }, - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - __webpack_require__.r(__webpack_exports__); - - __webpack_require__.d(__webpack_exports__, "connectToDevTools", function () { - return connectToDevTools; - }); - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - - var EventEmitter = function () { - function EventEmitter() { - _classCallCheck(this, EventEmitter); - _defineProperty(this, "listenersMap", new Map()); - } - _createClass(EventEmitter, [{ - key: "addListener", - value: function addListener(event, listener) { - var listeners = this.listenersMap.get(event); - if (listeners === undefined) { - this.listenersMap.set(event, [listener]); - } else { - var index = listeners.indexOf(listener); - if (index < 0) { - listeners.push(listener); - } + var consolePatchSettingsString = devToolsSettingsManager.getConsolePatchSettings(); + if (consolePatchSettingsString == null) { + return; + } + var parsedConsolePatchSettings = parseConsolePatchSettings(consolePatchSettingsString); + if (parsedConsolePatchSettings == null) { + return; } + writeConsolePatchSettingsToWindow(parsedConsolePatchSettings); } - }, { - key: "emit", - value: function emit(event) { - var listeners = this.listenersMap.get(event); - if (listeners !== undefined) { + function parseConsolePatchSettings(consolePatchSettingsString) { + var _castBool, _castBool2, _castBool3, _castBool4, _castBrowserTheme; + var parsedValue = JSON.parse(consolePatchSettingsString !== null && consolePatchSettingsString !== void 0 ? consolePatchSettingsString : '{}'); + var appendComponentStack = parsedValue.appendComponentStack, + breakOnConsoleErrors = parsedValue.breakOnConsoleErrors, + showInlineWarningsAndErrors = parsedValue.showInlineWarningsAndErrors, + hideConsoleLogsInStrictMode = parsedValue.hideConsoleLogsInStrictMode, + browserTheme = parsedValue.browserTheme; + return { + appendComponentStack: (_castBool = castBool(appendComponentStack)) !== null && _castBool !== void 0 ? _castBool : true, + breakOnConsoleErrors: (_castBool2 = castBool(breakOnConsoleErrors)) !== null && _castBool2 !== void 0 ? _castBool2 : false, + showInlineWarningsAndErrors: (_castBool3 = castBool(showInlineWarningsAndErrors)) !== null && _castBool3 !== void 0 ? _castBool3 : true, + hideConsoleLogsInStrictMode: (_castBool4 = castBool(hideConsoleLogsInStrictMode)) !== null && _castBool4 !== void 0 ? _castBool4 : false, + browserTheme: (_castBrowserTheme = castBrowserTheme(browserTheme)) !== null && _castBrowserTheme !== void 0 ? _castBrowserTheme : 'dark' + }; + } + function cacheConsolePatchSettings(devToolsSettingsManager, value) { + if (devToolsSettingsManager.setConsolePatchSettings == null) { + return; + } + devToolsSettingsManager.setConsolePatchSettings(JSON.stringify(value)); + } + ; // CONCATENATED MODULE: ./src/backend.js + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + + // Install a global variable to allow patching console early (during injection). + // This provides React Native developers with components stacks even if they don't run DevTools. + installConsoleFunctionsToWindow(); + installHook(window); + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var savedComponentFilters = getDefaultComponentFilters(); + function backend_debug(methodName) { + if (__DEBUG__) { + var _console; for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } - if (listeners.length === 1) { - var listener = listeners[0]; - listener.apply(null, args); - } else { - var didThrow = false; - var caughtError = null; - var clonedListeners = Array.from(listeners); - for (var i = 0; i < clonedListeners.length; i++) { - var _listener = clonedListeners[i]; - try { - _listener.apply(null, args); - } catch (error) { - if (caughtError === null) { - didThrow = true; - caughtError = error; + (_console = console).log.apply(_console, ["%c[core/backend] %c".concat(methodName), 'color: teal; font-weight: bold;', 'font-weight: bold;'].concat(args)); + } + } + function _connectToDevTools(options) { + if (hook == null) { + // DevTools didn't get injected into this page (maybe b'c of the contentType). + return; + } + var _ref = options || {}, + _ref$host = _ref.host, + host = _ref$host === void 0 ? 'localhost' : _ref$host, + nativeStyleEditorValidAttributes = _ref.nativeStyleEditorValidAttributes, + _ref$useHttps = _ref.useHttps, + useHttps = _ref$useHttps === void 0 ? false : _ref$useHttps, + _ref$port = _ref.port, + port = _ref$port === void 0 ? 8097 : _ref$port, + websocket = _ref.websocket, + _ref$resolveRNStyle = _ref.resolveRNStyle, + resolveRNStyle = _ref$resolveRNStyle === void 0 ? null : _ref$resolveRNStyle, + _ref$retryConnectionD = _ref.retryConnectionDelay, + retryConnectionDelay = _ref$retryConnectionD === void 0 ? 2000 : _ref$retryConnectionD, + _ref$isAppActive = _ref.isAppActive, + isAppActive = _ref$isAppActive === void 0 ? function () { + return true; + } : _ref$isAppActive, + devToolsSettingsManager = _ref.devToolsSettingsManager; + var protocol = useHttps ? 'wss' : 'ws'; + var retryTimeoutID = null; + function scheduleRetry() { + if (retryTimeoutID === null) { + // Two seconds because RN had issues with quick retries. + retryTimeoutID = setTimeout(function () { + return _connectToDevTools(options); + }, retryConnectionDelay); + } + } + if (devToolsSettingsManager != null) { + try { + initializeUsingCachedSettings(devToolsSettingsManager); + } catch (e) { + // If we call a method on devToolsSettingsManager that throws, or if + // is invalid data read out, don't throw and don't interrupt initialization + console.error(e); + } + } + if (!isAppActive()) { + // If the app is in background, maybe retry later. + // Don't actually attempt to connect until we're in foreground. + scheduleRetry(); + return; + } + var bridge = null; + var messageListeners = []; + var uri = protocol + '://' + host + ':' + port; // If existing websocket is passed, use it. + // This is necessary to support our custom integrations. + // See D6251744. + + var ws = websocket ? websocket : new window.WebSocket(uri); + ws.onclose = handleClose; + ws.onerror = handleFailed; + ws.onmessage = handleMessage; + ws.onopen = function () { + bridge = new src_bridge({ + listen: function listen(fn) { + messageListeners.push(fn); + return function () { + var index = messageListeners.indexOf(fn); + if (index >= 0) { + messageListeners.splice(index, 1); } + }; + }, + send: function send(event, payload, transferable) { + if (ws.readyState === ws.OPEN) { + if (__DEBUG__) { + backend_debug('wall.send()', event, payload); + } + ws.send(JSON.stringify({ + event: event, + payload: payload + })); + } else { + if (__DEBUG__) { + backend_debug('wall.send()', 'Shutting down bridge because of closed WebSocket connection'); + } + if (bridge !== null) { + bridge.shutdown(); + } + scheduleRetry(); + } + } + }); + bridge.addListener('updateComponentFilters', function (componentFilters) { + // Save filter changes in memory, in case DevTools is reloaded. + // In that case, the renderer will already be using the updated values. + // We'll lose these in between backend reloads but that can't be helped. + savedComponentFilters = componentFilters; + }); + if (devToolsSettingsManager != null && bridge != null) { + bridge.addListener('updateConsolePatchSettings', function (consolePatchSettings) { + return cacheConsolePatchSettings(devToolsSettingsManager, consolePatchSettings); + }); + } // The renderer interface doesn't read saved component filters directly, + // because they are generally stored in localStorage within the context of the extension. + // Because of this it relies on the extension to pass filters. + // In the case of the standalone DevTools being used with a website, + // saved filters are injected along with the backend script tag so we shouldn't override them here. + // This injection strategy doesn't work for React Native though. + // Ideally the backend would save the filters itself, but RN doesn't provide a sync storage solution. + // So for now we just fall back to using the default filters... + + if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ == null) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + bridge.send('overrideComponentFilters', savedComponentFilters); + } // TODO (npm-packages) Warn if "isBackendStorageAPISupported" + // $FlowFixMe[incompatible-call] found when upgrading Flow + + var agent = new Agent(bridge); + agent.addListener('shutdown', function () { + // If we received 'shutdown' from `agent`, we assume the `bridge` is already shutting down, + // and that caused the 'shutdown' event on the `agent`, so we don't need to call `bridge.shutdown()` here. + hook.emit('shutdown'); + }); + initBackend(hook, agent, window); // Setup React Native style editor if the environment supports it. + + if (resolveRNStyle != null || hook.resolveRNStyle != null) { + setupNativeStyleEditor( + // $FlowFixMe[incompatible-call] found when upgrading Flow + bridge, agent, resolveRNStyle || hook.resolveRNStyle, nativeStyleEditorValidAttributes || hook.nativeStyleEditorValidAttributes || null); + } else { + // Otherwise listen to detect if the environment later supports it. + // For example, Flipper does not eagerly inject these values. + // Instead it relies on the React Native Inspector to lazily inject them. + var lazyResolveRNStyle; + var lazyNativeStyleEditorValidAttributes; + var initAfterTick = function initAfterTick() { + if (bridge !== null) { + setupNativeStyleEditor(bridge, agent, lazyResolveRNStyle, lazyNativeStyleEditorValidAttributes); } + }; + if (!hook.hasOwnProperty('resolveRNStyle')) { + Object.defineProperty(hook, 'resolveRNStyle', { + enumerable: false, + get: function get() { + return lazyResolveRNStyle; + }, + set: function set(value) { + lazyResolveRNStyle = value; + initAfterTick(); + } + }); } - if (didThrow) { - throw caughtError; + if (!hook.hasOwnProperty('nativeStyleEditorValidAttributes')) { + Object.defineProperty(hook, 'nativeStyleEditorValidAttributes', { + enumerable: false, + get: function get() { + return lazyNativeStyleEditorValidAttributes; + }, + set: function set(value) { + lazyNativeStyleEditorValidAttributes = value; + initAfterTick(); + } + }); } } + }; + function handleClose() { + if (__DEBUG__) { + backend_debug('WebSocket.onclose'); + } + if (bridge !== null) { + bridge.emit('shutdown'); + } + scheduleRetry(); } - } - }, { - key: "removeAllListeners", - value: function removeAllListeners() { - this.listenersMap.clear(); - } - }, { - key: "removeListener", - value: function removeListener(event, listener) { - var listeners = this.listenersMap.get(event); - if (listeners !== undefined) { - var index = listeners.indexOf(listener); - if (index >= 0) { - listeners.splice(index, 1); + function handleFailed() { + if (__DEBUG__) { + backend_debug('WebSocket.onerror'); + } + scheduleRetry(); + } + function handleMessage(event) { + var data; + try { + if (typeof event.data === 'string') { + data = JSON.parse(event.data); + if (__DEBUG__) { + backend_debug('WebSocket.onmessage', data); + } + } else { + throw Error(); + } + } catch (e) { + console.error('[React DevTools] Failed to parse JSON: ' + event.data); + return; } + messageListeners.forEach(function (fn) { + try { + fn(data); + } catch (error) { + // jsc doesn't play so well with tracebacks that go into eval'd code, + // so the stack trace here will stop at the `eval()` call. Getting the + // message that caused the error is the best we can do for now. + console.log('[React DevTools] Error calling listener', data); + console.log('error:', error); + throw error; + } + }); } } - }]); - return EventEmitter; - }(); - - var lodash_throttle = __webpack_require__(14); - var lodash_throttle_default = __webpack_require__.n(lodash_throttle); + })(); - var constants = __webpack_require__(0); - - var storage = __webpack_require__(5); + /******/ + return __webpack_exports__; + /******/ + }() + ); + }); +},194,[],"node_modules/react-devtools-core/dist/backend.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); + var _logError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/logError")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/Platform")); + var _NativeAppState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeAppState")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * `AppState` can tell you if the app is in the foreground or background, + * and notify you when the state changes. + * + * See https://reactnative.dev/docs/appstate + */ + var AppState = /*#__PURE__*/function () { + function AppState() { + var _this = this; + (0, _classCallCheck2.default)(this, AppState); + this.currentState = null; + if (_NativeAppState.default == null) { + this.isAvailable = false; + } else { + this.isAvailable = true; + var emitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior + _Platform.default.OS !== 'ios' ? null : _NativeAppState.default); + this._emitter = emitter; + this.currentState = _NativeAppState.default.getConstants().initialAppState; + var eventUpdated = false; - var simpleIsEqual = function simpleIsEqual(a, b) { - return a === b; - }; + // TODO: this is a terrible solution - in order to ensure `currentState` + // prop is up to date, we have to register an observer that updates it + // whenever the state changes, even if nobody cares. We should just + // deprecate the `currentState` property and get rid of this. + emitter.addListener('appStateDidChange', function (appStateData) { + eventUpdated = true; + _this.currentState = appStateData.app_state; + }); - var esm = function esm(resultFn) { - var isEqual = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : simpleIsEqual; - var lastThis = void 0; - var lastArgs = []; - var lastResult = void 0; - var calledOnce = false; - var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) { - return isEqual(newArg, lastArgs[index]); - }; - var result = function result() { - for (var _len = arguments.length, newArgs = Array(_len), _key = 0; _key < _len; _key++) { - newArgs[_key] = arguments[_key]; - } - if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) { - return lastResult; + // TODO: see above - this request just populates the value of `currentState` + // when the module is first initialized. Would be better to get rid of the + // prop and expose `getCurrentAppState` method directly. + // $FlowExpectedError[incompatible-call] + _NativeAppState.default.getCurrentAppState(function (appStateData) { + // It's possible that the state will have changed here & listeners need to be notified + if (!eventUpdated && _this.currentState !== appStateData.app_state) { + _this.currentState = appStateData.app_state; + // $FlowFixMe[incompatible-call] + emitter.emit('appStateDidChange', appStateData); } - calledOnce = true; - lastThis = this; - lastArgs = newArgs; - lastResult = resultFn.apply(this, newArgs); - return lastResult; - }; - return result; - }; - function getOwnerWindow(node) { - if (!node.ownerDocument) { - return null; - } - return node.ownerDocument.defaultView; + }, _logError.default); } + } - function getOwnerIframe(node) { - var nodeWindow = getOwnerWindow(node); - if (nodeWindow) { - return nodeWindow.frameElement; + /** + * Add a handler to AppState changes by listening to the `change` event type + * and providing the handler. + * + * See https://reactnative.dev/docs/appstate#addeventlistener + */ + (0, _createClass2.default)(AppState, [{ + key: "addEventListener", + value: function addEventListener(type, handler) { + var emitter = this._emitter; + if (emitter == null) { + throw new Error('Cannot use AppState when `isAvailable` is false.'); } - return null; - } - - function getBoundingClientRectWithBorderOffset(node) { - var dimensions = getElementDimensions(node); - return mergeRectOffsets([node.getBoundingClientRect(), { - top: dimensions.borderTop, - left: dimensions.borderLeft, - bottom: dimensions.borderBottom, - right: dimensions.borderRight, - width: 0, - height: 0 - }]); - } - - function mergeRectOffsets(rects) { - return rects.reduce(function (previousRect, rect) { - if (previousRect == null) { - return rect; - } - return { - top: previousRect.top + rect.top, - left: previousRect.left + rect.left, - width: previousRect.width, - height: previousRect.height, - bottom: previousRect.bottom + rect.bottom, - right: previousRect.right + rect.right - }; - }); - } - - function getNestedBoundingClientRect(node, boundaryWindow) { - var ownerIframe = getOwnerIframe(node); - if (ownerIframe && ownerIframe !== boundaryWindow) { - var rects = [node.getBoundingClientRect()]; - var currentIframe = ownerIframe; - var onlyOneMore = false; - while (currentIframe) { - var rect = getBoundingClientRectWithBorderOffset(currentIframe); - rects.push(rect); - currentIframe = getOwnerIframe(currentIframe); - if (onlyOneMore) { - break; - } - - if (currentIframe && getOwnerWindow(currentIframe) === boundaryWindow) { - onlyOneMore = true; - } - } - return mergeRectOffsets(rects); - } else { - return node.getBoundingClientRect(); - } - } - function getElementDimensions(domElement) { - var calculatedStyle = window.getComputedStyle(domElement); - return { - borderLeft: parseInt(calculatedStyle.borderLeftWidth, 10), - borderRight: parseInt(calculatedStyle.borderRightWidth, 10), - borderTop: parseInt(calculatedStyle.borderTopWidth, 10), - borderBottom: parseInt(calculatedStyle.borderBottomWidth, 10), - marginLeft: parseInt(calculatedStyle.marginLeft, 10), - marginRight: parseInt(calculatedStyle.marginRight, 10), - marginTop: parseInt(calculatedStyle.marginTop, 10), - marginBottom: parseInt(calculatedStyle.marginBottom, 10), - paddingLeft: parseInt(calculatedStyle.paddingLeft, 10), - paddingRight: parseInt(calculatedStyle.paddingRight, 10), - paddingTop: parseInt(calculatedStyle.paddingTop, 10), - paddingBottom: parseInt(calculatedStyle.paddingBottom, 10) - }; - } - function _createForOfIteratorHelper(o, allowArrayLike) { - var it; - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = o[Symbol.iterator](); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } - function Overlay_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); + switch (type) { + case 'change': + // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type + var changeHandler = handler; + return emitter.addListener('appStateDidChange', function (appStateData) { + changeHandler(appStateData.app_state); + }); + case 'memoryWarning': + // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type + var memoryWarningHandler = handler; + return emitter.addListener('memoryWarning', memoryWarningHandler); + case 'blur': + case 'focus': + // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type + var focusOrBlurHandler = handler; + return emitter.addListener('appStateFocusChange', function (hasFocus) { + if (type === 'blur' && !hasFocus) { + focusOrBlurHandler(); + } + if (type === 'focus' && hasFocus) { + focusOrBlurHandler(); + } + }); } + throw new Error('Trying to subscribe to unknown event: ' + type); } - function Overlay_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } + }]); + return AppState; + }(); + module.exports = new AppState(); +},195,[3,12,13,151,196,17,197],"node_modules/react-native/Libraries/AppState/AppState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + /** + * Small utility that can be used as an error handler. You cannot just pass + * `console.error` as a failure callback - it's not properly bound. If passes an + * `Error` object, it will print the message and stack. + */ + var logError = function logError() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + if (args.length === 1 && args[0] instanceof Error) { + var err = args[0]; + console.error('Error: "' + err.message + '". Stack:\n' + err.stack); + } else { + console.error.apply(console, args); + } + }; + module.exports = logError; +},196,[],"node_modules/react-native/Libraries/Utilities/logError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.getEnforcing('AppState'); + exports.default = _default; +},197,[19],"node_modules/react-native/Libraries/AppState/NativeAppState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _processAspectRatio = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processAspectRatio")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/processColor")); + var _processFontVariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processFontVariant")); + var _processTransform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processTransform")); + var _sizesDiffer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/sizesDiffer")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format strict-local + * + */ + + var colorAttributes = { + process: _processColor.default + }; + var ReactNativeStyleAttributes = { + /** + * Layout + */ + alignContent: true, + alignItems: true, + alignSelf: true, + aspectRatio: { + process: _processAspectRatio.default + }, + borderBottomWidth: true, + borderEndWidth: true, + borderLeftWidth: true, + borderRightWidth: true, + borderStartWidth: true, + borderTopWidth: true, + columnGap: true, + borderWidth: true, + bottom: true, + direction: true, + display: true, + end: true, + flex: true, + flexBasis: true, + flexDirection: true, + flexGrow: true, + flexShrink: true, + flexWrap: true, + gap: true, + height: true, + justifyContent: true, + left: true, + margin: true, + marginBlock: true, + marginBlockEnd: true, + marginBlockStart: true, + marginBottom: true, + marginEnd: true, + marginHorizontal: true, + marginInline: true, + marginInlineEnd: true, + marginInlineStart: true, + marginLeft: true, + marginRight: true, + marginStart: true, + marginTop: true, + marginVertical: true, + maxHeight: true, + maxWidth: true, + minHeight: true, + minWidth: true, + overflow: true, + padding: true, + paddingBlock: true, + paddingBlockEnd: true, + paddingBlockStart: true, + paddingBottom: true, + paddingEnd: true, + paddingHorizontal: true, + paddingInline: true, + paddingInlineEnd: true, + paddingInlineStart: true, + paddingLeft: true, + paddingRight: true, + paddingStart: true, + paddingTop: true, + paddingVertical: true, + position: true, + right: true, + rowGap: true, + start: true, + top: true, + width: true, + zIndex: true, + /** + * Shadow + */ + elevation: true, + shadowColor: colorAttributes, + shadowOffset: { + diff: _sizesDiffer.default + }, + shadowOpacity: true, + shadowRadius: true, + /** + * Transform + */ + transform: { + process: _processTransform.default + }, + /** + * View + */ + backfaceVisibility: true, + backgroundColor: colorAttributes, + borderBlockColor: colorAttributes, + borderBlockEndColor: colorAttributes, + borderBlockStartColor: colorAttributes, + borderBottomColor: colorAttributes, + borderBottomEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderColor: colorAttributes, + borderCurve: true, + borderEndColor: colorAttributes, + borderEndEndRadius: true, + borderEndStartRadius: true, + borderLeftColor: colorAttributes, + borderRadius: true, + borderRightColor: colorAttributes, + borderStartColor: colorAttributes, + borderStartEndRadius: true, + borderStartStartRadius: true, + borderStyle: true, + borderTopColor: colorAttributes, + borderTopEndRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + opacity: true, + pointerEvents: true, + /** + * Text + */ + color: colorAttributes, + fontFamily: true, + fontSize: true, + fontStyle: true, + fontVariant: { + process: _processFontVariant.default + }, + fontWeight: true, + includeFontPadding: true, + letterSpacing: true, + lineHeight: true, + textAlign: true, + textAlignVertical: true, + textDecorationColor: colorAttributes, + textDecorationLine: true, + textDecorationStyle: true, + textShadowColor: colorAttributes, + textShadowOffset: true, + textShadowRadius: true, + textTransform: true, + userSelect: true, + verticalAlign: true, + writingDirection: true, + /** + * Image + */ + overlayColor: colorAttributes, + resizeMode: true, + tintColor: colorAttributes, + objectFit: true + }; + module.exports = ReactNativeStyleAttributes; +},198,[3,199,174,200,201,203],"node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + function processAspectRatio(aspectRatio) { + if (typeof aspectRatio === 'number') { + return aspectRatio; + } + if (typeof aspectRatio !== 'string') { + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(!aspectRatio, 'aspectRatio must either be a number, a ratio string or `auto`. You passed: %s', aspectRatio); } - function Overlay_createClass(Constructor, protoProps, staticProps) { - if (protoProps) Overlay_defineProperties(Constructor.prototype, protoProps); - if (staticProps) Overlay_defineProperties(Constructor, staticProps); - return Constructor; + return; + } + var matches = aspectRatio.split('/').map(function (s) { + return s.trim(); + }); + if (matches.includes('auto')) { + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(matches.length, 'aspectRatio does not support `auto `. You passed: %s', aspectRatio); } + return; + } + var hasNonNumericValues = matches.some(function (n) { + return Number.isNaN(Number(n)); + }); + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(!hasNonNumericValues && (matches.length === 1 || matches.length === 2), 'aspectRatio must either be a number, a ratio string or `auto`. You passed: %s', aspectRatio); + } + if (hasNonNumericValues) { + return; + } + if (matches.length === 2) { + return Number(matches[0]) / Number(matches[1]); + } + return Number(matches[0]); + } + module.exports = processAspectRatio; +},199,[20],"node_modules/react-native/Libraries/StyleSheet/processAspectRatio.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var Overlay_assign = Object.assign; + 'use strict'; - var OverlayRect = function () { - function OverlayRect(doc, container) { - Overlay_classCallCheck(this, OverlayRect); - this.node = doc.createElement('div'); - this.border = doc.createElement('div'); - this.padding = doc.createElement('div'); - this.content = doc.createElement('div'); - this.border.style.borderColor = overlayStyles.border; - this.padding.style.borderColor = overlayStyles.padding; - this.content.style.backgroundColor = overlayStyles.background; - Overlay_assign(this.node.style, { - borderColor: overlayStyles.margin, - pointerEvents: 'none', - position: 'fixed' - }); - this.node.style.zIndex = '10000000'; - this.node.appendChild(this.border); - this.border.appendChild(this.padding); - this.padding.appendChild(this.content); - container.appendChild(this.node); + function processFontVariant(fontVariant) { + if (Array.isArray(fontVariant)) { + return fontVariant; + } + + // $FlowFixMe[incompatible-type] + var match = fontVariant.split(' ').filter(Boolean); + return match; + } + module.exports = processFontVariant; +},200,[],"node_modules/react-native/Libraries/StyleSheet/processFontVariant.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + /** + * Generate a transform matrix based on the provided transforms, and use that + * within the style object instead. + * + * This allows us to provide an API that is similar to CSS, where transforms may + * be applied in an arbitrary order, and yet have a universal, singular + * interface to native code. + */ + function processTransform(transform) { + if (typeof transform === 'string') { + var regex = new RegExp(/(\w+)\(([^)]+)\)/g); + var transformArray = []; + var matches; + while (matches = regex.exec(transform)) { + var _getKeyAndValueFromCS = _getKeyAndValueFromCSSTransform(matches[1], matches[2]), + _key = _getKeyAndValueFromCS.key, + value = _getKeyAndValueFromCS.value; + if (value !== undefined) { + transformArray.push(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty")({}, _key, value)); } - Overlay_createClass(OverlayRect, [{ - key: "remove", - value: function remove() { - if (this.node.parentNode) { - this.node.parentNode.removeChild(this.node); - } - } - }, { - key: "update", - value: function update(box, dims) { - boxWrap(dims, 'margin', this.node); - boxWrap(dims, 'border', this.border); - boxWrap(dims, 'padding', this.padding); - Overlay_assign(this.content.style, { - height: box.height - dims.borderTop - dims.borderBottom - dims.paddingTop - dims.paddingBottom + 'px', - width: box.width - dims.borderLeft - dims.borderRight - dims.paddingLeft - dims.paddingRight + 'px' - }); - Overlay_assign(this.node.style, { - top: box.top - dims.marginTop + 'px', - left: box.left - dims.marginLeft + 'px' - }); - } - }]); - return OverlayRect; - }(); - var OverlayTip = function () { - function OverlayTip(doc, container) { - Overlay_classCallCheck(this, OverlayTip); - this.tip = doc.createElement('div'); - Overlay_assign(this.tip.style, { - display: 'flex', - flexFlow: 'row nowrap', - backgroundColor: '#333740', - borderRadius: '2px', - fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace', - fontWeight: 'bold', - padding: '3px 5px', - pointerEvents: 'none', - position: 'fixed', - fontSize: '12px', - whiteSpace: 'nowrap' - }); - this.nameSpan = doc.createElement('span'); - this.tip.appendChild(this.nameSpan); - Overlay_assign(this.nameSpan.style, { - color: '#ee78e6', - borderRight: '1px solid #aaaaaa', - paddingRight: '0.5rem', - marginRight: '0.5rem' - }); - this.dimSpan = doc.createElement('span'); - this.tip.appendChild(this.dimSpan); - Overlay_assign(this.dimSpan.style, { - color: '#d7d7d7' - }); - this.tip.style.zIndex = '10000000'; - container.appendChild(this.tip); + } + transform = transformArray; + } + if (__DEV__) { + _validateTransforms(transform); + } + return transform; + } + var _getKeyAndValueFromCSSTransform = function _getKeyAndValueFromCSSTransform(key, args) { + var _args$match; + var argsWithUnitsRegex = new RegExp(/([+-]?\d+(\.\d+)?)([a-zA-Z]+)?/g); + switch (key) { + case 'matrix': + return { + key: key, + value: (_args$match = args.match(/[+-]?\d+(\.\d+)?/g)) == null ? void 0 : _args$match.map(Number) + }; + case 'translate': + case 'translate3d': + var parsedArgs = []; + var missingUnitOfMeasurement = false; + var matches; + while (matches = argsWithUnitsRegex.exec(args)) { + var _value = Number(matches[1]); + var _unitOfMeasurement = matches[3]; + if (_value !== 0 && !_unitOfMeasurement) { + missingUnitOfMeasurement = true; + } + parsedArgs.push(_value); } - Overlay_createClass(OverlayTip, [{ - key: "remove", - value: function remove() { - if (this.tip.parentNode) { - this.tip.parentNode.removeChild(this.tip); - } - } - }, { - key: "updateText", - value: function updateText(name, width, height) { - this.nameSpan.textContent = name; - this.dimSpan.textContent = Math.round(width) + 'px ร— ' + Math.round(height) + 'px'; - } - }, { - key: "updatePosition", - value: function updatePosition(dims, bounds) { - var tipRect = this.tip.getBoundingClientRect(); - var tipPos = findTipPos(dims, bounds, { - width: tipRect.width, - height: tipRect.height - }); - Overlay_assign(this.tip.style, tipPos.style); - } - }]); - return OverlayTip; - }(); - var Overlay_Overlay = function () { - function Overlay() { - Overlay_classCallCheck(this, Overlay); - - var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; - this.window = currentWindow; - - var tipBoundsWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; - this.tipBoundsWindow = tipBoundsWindow; - var doc = currentWindow.document; - this.container = doc.createElement('div'); - this.container.style.zIndex = '10000000'; - this.tip = new OverlayTip(doc, this.container); - this.rects = []; - doc.body.appendChild(this.container); - } - Overlay_createClass(Overlay, [{ - key: "remove", - value: function remove() { - this.tip.remove(); - this.rects.forEach(function (rect) { - rect.remove(); - }); - this.rects.length = 0; - if (this.container.parentNode) { - this.container.parentNode.removeChild(this.container); - } - } - }, { - key: "inspect", - value: function inspect(nodes, name) { - var _this = this; - - var elements = nodes.filter(function (node) { - return node.nodeType === Node.ELEMENT_NODE; - }); - while (this.rects.length > elements.length) { - var rect = this.rects.pop(); - rect.remove(); - } - if (elements.length === 0) { - return; - } - while (this.rects.length < elements.length) { - this.rects.push(new OverlayRect(this.window.document, this.container)); - } - var outerBox = { - top: Number.POSITIVE_INFINITY, - right: Number.NEGATIVE_INFINITY, - bottom: Number.NEGATIVE_INFINITY, - left: Number.POSITIVE_INFINITY - }; - elements.forEach(function (element, index) { - var box = getNestedBoundingClientRect(element, _this.window); - var dims = getElementDimensions(element); - outerBox.top = Math.min(outerBox.top, box.top - dims.marginTop); - outerBox.right = Math.max(outerBox.right, box.left + box.width + dims.marginRight); - outerBox.bottom = Math.max(outerBox.bottom, box.top + box.height + dims.marginBottom); - outerBox.left = Math.min(outerBox.left, box.left - dims.marginLeft); - var rect = _this.rects[index]; - rect.update(box, dims); - }); - if (!name) { - name = elements[0].nodeName.toLowerCase(); - var node = elements[0]; - var hook = node.ownerDocument.defaultView.__REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook != null && hook.rendererInterfaces != null) { - var ownerName = null; - - var _iterator = _createForOfIteratorHelper(hook.rendererInterfaces.values()), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var rendererInterface = _step.value; - var id = rendererInterface.getFiberIDForNative(node, true); - if (id !== null) { - ownerName = rendererInterface.getDisplayNameForFiberID(id, true); - break; - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - if (ownerName) { - name += ' (in ' + ownerName + ')'; - } - } - } - this.tip.updateText(name, outerBox.right - outerBox.left, outerBox.bottom - outerBox.top); - var tipBounds = getNestedBoundingClientRect(this.tipBoundsWindow.document.documentElement, this.window); - this.tip.updatePosition({ - top: outerBox.top, - left: outerBox.left, - height: outerBox.bottom - outerBox.top, - width: outerBox.right - outerBox.left - }, { - top: tipBounds.top + this.tipBoundsWindow.scrollY, - left: tipBounds.left + this.tipBoundsWindow.scrollX, - height: this.tipBoundsWindow.innerHeight, - width: this.tipBoundsWindow.innerWidth - }); - } - }]); - return Overlay; - }(); - function findTipPos(dims, bounds, tipSize) { - var tipHeight = Math.max(tipSize.height, 20); - var tipWidth = Math.max(tipSize.width, 60); - var margin = 5; - var top; - if (dims.top + dims.height + tipHeight <= bounds.top + bounds.height) { - if (dims.top + dims.height < bounds.top + 0) { - top = bounds.top + margin; - } else { - top = dims.top + dims.height + margin; - } - } else if (dims.top - tipHeight <= bounds.top + bounds.height) { - if (dims.top - tipHeight - margin < bounds.top + margin) { - top = bounds.top + margin; + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(!missingUnitOfMeasurement, `Transform with key ${key} must have units unless the provided value is 0, found %s`, `${key}(${args})`); + if (key === 'translate') { + _$$_REQUIRE(_dependencyMap[1], "invariant")((parsedArgs == null ? void 0 : parsedArgs.length) === 1 || (parsedArgs == null ? void 0 : parsedArgs.length) === 2, 'Transform with key translate must be an string with 1 or 2 parameters, found %s: %s', parsedArgs == null ? void 0 : parsedArgs.length, `${key}(${args})`); } else { - top = dims.top - tipHeight - margin; + _$$_REQUIRE(_dependencyMap[1], "invariant")((parsedArgs == null ? void 0 : parsedArgs.length) === 3, 'Transform with key translate3d must be an string with 3 parameters, found %s: %s', parsedArgs == null ? void 0 : parsedArgs.length, `${key}(${args})`); } - } else { - top = bounds.top + bounds.height - tipHeight - margin; } - var left = dims.left + margin; - if (dims.left < bounds.left) { - left = bounds.left + margin; + if ((parsedArgs == null ? void 0 : parsedArgs.length) === 1) { + parsedArgs.push(0); + } + return { + key: 'translate', + value: parsedArgs + }; + case 'translateX': + case 'translateY': + case 'perspective': + var argMatches = argsWithUnitsRegex.exec(args); + if (!(argMatches != null && argMatches.length)) { + return { + key: key, + value: undefined + }; } - if (dims.left + tipWidth > bounds.left + bounds.width) { - left = bounds.left + bounds.width - tipWidth - margin; + var value = Number(argMatches[1]); + var unitOfMeasurement = argMatches[3]; + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(value === 0 || unitOfMeasurement, `Transform with key ${key} must have units unless the provided value is 0, found %s`, `${key}(${args})`); } - top += 'px'; - left += 'px'; return { - style: { - top: top, - left: left - } + key: key, + value: value + }; + default: + return { + key: key, + value: !isNaN(args) ? Number(args) : args }; + } + }; + function _validateTransforms(transform) { + transform.forEach(function (transformation) { + var keys = Object.keys(transformation); + _$$_REQUIRE(_dependencyMap[1], "invariant")(keys.length === 1, 'You must specify exactly one property per transform object. Passed properties: %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + var key = keys[0]; + var value = transformation[key]; + _validateTransform(key, value, transformation); + }); + } + function _validateTransform(key, value, transformation) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(!value.getValue, 'You passed an Animated.Value to a normal component. ' + 'You need to wrap that component in an Animated. For example, ' + 'replace by .'); + var multivalueTransforms = ['matrix', 'translate']; + if (multivalueTransforms.indexOf(key) !== -1) { + _$$_REQUIRE(_dependencyMap[1], "invariant")(Array.isArray(value), 'Transform with key of %s must have an array as the value: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + } + switch (key) { + case 'matrix': + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', + /* $FlowFixMe[prop-missing] (>=0.84.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.84 was deployed. To + * see the error, delete this comment and run Flow. */ + value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'translate': + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', + /* $FlowFixMe[prop-missing] (>=0.84.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.84 was deployed. To + * see the error, delete this comment and run Flow. */ + value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'rotateX': + case 'rotateY': + case 'rotateZ': + case 'rotate': + case 'skewX': + case 'skewY': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'string', 'Transform with key of "%s" must be a string: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + _$$_REQUIRE(_dependencyMap[1], "invariant")(value.indexOf('deg') > -1 || value.indexOf('rad') > -1, 'Rotate transform must be expressed in degrees (deg) or radians ' + '(rad): %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'perspective': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + _$$_REQUIRE(_dependencyMap[1], "invariant")(value !== 0, 'Transform with key of "%s" cannot be zero: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + case 'translateX': + case 'translateY': + case 'scale': + case 'scaleX': + case 'scaleY': + _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + break; + default: + _$$_REQUIRE(_dependencyMap[1], "invariant")(false, 'Invalid transform %s: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + } + } + module.exports = processTransform; +},201,[202,20,29],"node_modules/react-native/Libraries/StyleSheet/processTransform.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _defineProperty(obj, key, value) { + key = _$$_REQUIRE(_dependencyMap[0], "./toPropertyKey.js")(key); + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; +},202,[14],"node_modules/@babel/runtime/helpers/defineProperty.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + var dummySize = { + width: undefined, + height: undefined + }; + var sizesDiffer = function sizesDiffer(one, two) { + var defaultedOne = one || dummySize; + var defaultedTwo = two || dummySize; + return defaultedOne !== defaultedTwo && (defaultedOne.width !== defaultedTwo.width || defaultedOne.height !== defaultedTwo.height); + }; + module.exports = sizesDiffer; +},203,[],"node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); + var _Settings = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Settings/Settings")); + var _DevSettings = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/DevSettings")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var CONSOLE_PATCH_SETTINGS_KEY = 'ReactDevTools::ConsolePatchSettings'; + var PROFILING_SETTINGS_KEY = 'ReactDevTools::ProfilingSettings'; + var DevToolsSettingsManager = { + setConsolePatchSettings: function setConsolePatchSettings(newConsolePatchSettings) { + _Settings.default.set((0, _defineProperty2.default)({}, CONSOLE_PATCH_SETTINGS_KEY, newConsolePatchSettings)); + }, + getConsolePatchSettings: function getConsolePatchSettings() { + var value = _Settings.default.get(CONSOLE_PATCH_SETTINGS_KEY); + if (typeof value === 'string') { + return value; } - function boxWrap(dims, what, node) { - Overlay_assign(node.style, { - borderTopWidth: dims[what + 'Top'] + 'px', - borderLeftWidth: dims[what + 'Left'] + 'px', - borderRightWidth: dims[what + 'Right'] + 'px', - borderBottomWidth: dims[what + 'Bottom'] + 'px', - borderStyle: 'solid' - }); + return null; + }, + setProfilingSettings: function setProfilingSettings(newProfilingSettings) { + _Settings.default.set((0, _defineProperty2.default)({}, PROFILING_SETTINGS_KEY, newProfilingSettings)); + }, + getProfilingSettings: function getProfilingSettings() { + var value = _Settings.default.get(PROFILING_SETTINGS_KEY); + if (typeof value === 'string') { + return value; } - var overlayStyles = { - background: 'rgba(120, 170, 210, 0.7)', - padding: 'rgba(77, 200, 0, 0.3)', - margin: 'rgba(255, 155, 0, 0.3)', - border: 'rgba(255, 200, 50, 0.3)' - }; + return null; + }, + reload: function reload() { + _DevSettings.default == null ? void 0 : _DevSettings.default.reload(); + } + }; + module.exports = DevToolsSettingsManager; +},204,[3,202,205,184],"node_modules/react-native/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeSettingsManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeSettingsManager")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var SHOW_DURATION = 2000; - var timeoutID = null; - var overlay = null; - function hideOverlay() { - timeoutID = null; - if (overlay !== null) { - overlay.remove(); - overlay = null; - } + var subscriptions = []; + var Settings = { + _settings: _NativeSettingsManager.default && _NativeSettingsManager.default.getConstants().settings, + get: function get(key) { + // $FlowFixMe[object-this-reference] + return this._settings[key]; + }, + set: function set(settings) { + // $FlowFixMe[object-this-reference] + this._settings = Object.assign(this._settings, settings); + _NativeSettingsManager.default.setValues(settings); + }, + watchKeys: function watchKeys(keys, callback) { + if (typeof keys === 'string') { + keys = [keys]; } - function showOverlay(elements, componentName, hideAfterTimeout) { - if (window.document == null) { - return; - } - if (timeoutID !== null) { - clearTimeout(timeoutID); - } - if (elements == null) { - return; - } - if (overlay === null) { - overlay = new Overlay_Overlay(); - } - overlay.inspect(elements, componentName); - if (hideAfterTimeout) { - timeoutID = setTimeout(hideOverlay, SHOW_DURATION); - } + (0, _invariant.default)(Array.isArray(keys), 'keys should be a string or array of strings'); + var sid = subscriptions.length; + subscriptions.push({ + keys: keys, + callback: callback + }); + return sid; + }, + clearWatch: function clearWatch(watchId) { + if (watchId < subscriptions.length) { + subscriptions[watchId] = { + keys: [], + callback: null + }; } - - var iframesListeningTo = new Set(); - function setupHighlighter(bridge, agent) { - bridge.addListener('clearNativeElementHighlight', clearNativeElementHighlight); - bridge.addListener('highlightNativeElement', highlightNativeElement); - bridge.addListener('shutdown', stopInspectingNative); - bridge.addListener('startInspectingNative', startInspectingNative); - bridge.addListener('stopInspectingNative', stopInspectingNative); - function startInspectingNative() { - registerListenersOnWindow(window); - } - function registerListenersOnWindow(window) { - if (window && typeof window.addEventListener === 'function') { - window.addEventListener('click', onClick, true); - window.addEventListener('mousedown', onMouseEvent, true); - window.addEventListener('mouseover', onMouseEvent, true); - window.addEventListener('mouseup', onMouseEvent, true); - window.addEventListener('pointerdown', onPointerDown, true); - window.addEventListener('pointerover', onPointerOver, true); - window.addEventListener('pointerup', onPointerUp, true); - } - } - function stopInspectingNative() { - hideOverlay(); - removeListenersOnWindow(window); - iframesListeningTo.forEach(function (frame) { - try { - removeListenersOnWindow(frame.contentWindow); - } catch (error) { + }, + _sendObservations: function _sendObservations(body) { + var _this = this; + Object.keys(body).forEach(function (key) { + var newValue = body[key]; + // $FlowFixMe[object-this-reference] + var didChange = _this._settings[key] !== newValue; + // $FlowFixMe[object-this-reference] + _this._settings[key] = newValue; + if (didChange) { + subscriptions.forEach(function (sub) { + if (sub.keys.indexOf(key) !== -1 && sub.callback) { + sub.callback(); } }); - iframesListeningTo = new Set(); - } - function removeListenersOnWindow(window) { - if (window && typeof window.removeEventListener === 'function') { - window.removeEventListener('click', onClick, true); - window.removeEventListener('mousedown', onMouseEvent, true); - window.removeEventListener('mouseover', onMouseEvent, true); - window.removeEventListener('mouseup', onMouseEvent, true); - window.removeEventListener('pointerdown', onPointerDown, true); - window.removeEventListener('pointerover', onPointerOver, true); - window.removeEventListener('pointerup', onPointerUp, true); - } - } - function clearNativeElementHighlight() { - hideOverlay(); - } - function highlightNativeElement(_ref) { - var displayName = _ref.displayName, - hideAfterTimeout = _ref.hideAfterTimeout, - id = _ref.id, - openNativeElementsPanel = _ref.openNativeElementsPanel, - rendererID = _ref.rendererID, - scrollIntoView = _ref.scrollIntoView; - var renderer = agent.rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } - var nodes = null; - if (renderer != null) { - nodes = renderer.findNativeNodesForFiberID(id); - } - if (nodes != null && nodes[0] != null) { - var node = nodes[0]; - if (scrollIntoView && typeof node.scrollIntoView === 'function') { - node.scrollIntoView({ - block: 'nearest', - inline: 'nearest' - }); - } - showOverlay(nodes, displayName, hideAfterTimeout); - if (openNativeElementsPanel) { - window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 = node; - bridge.send('syncSelectionToNativeElementsPanel'); - } - } else { - hideOverlay(); - } - } - function onClick(event) { - event.preventDefault(); - event.stopPropagation(); - stopInspectingNative(); - bridge.send('stopInspectingNative', true); - } - function onMouseEvent(event) { - event.preventDefault(); - event.stopPropagation(); - } - function onPointerDown(event) { - event.preventDefault(); - event.stopPropagation(); - selectFiberForNode(event.target); - } - function onPointerOver(event) { - event.preventDefault(); - event.stopPropagation(); - var target = event.target; - if (target.tagName === 'IFRAME') { - var iframe = target; - try { - if (!iframesListeningTo.has(iframe)) { - var _window = iframe.contentWindow; - registerListenersOnWindow(_window); - iframesListeningTo.add(iframe); - } - } catch (error) { - } - } - - showOverlay([target], null, false); - selectFiberForNode(target); - } - function onPointerUp(event) { - event.preventDefault(); - event.stopPropagation(); - } - var selectFiberForNode = lodash_throttle_default()(esm(function (node) { - var id = agent.getIDForNode(node); - if (id !== null) { - bridge.send('selectFiber', id); - } - }), 200, - { - leading: false - }); - } - var OUTLINE_COLOR = '#f0f0f0'; - - var COLORS = ['#37afa9', '#63b19e', '#80b393', '#97b488', '#abb67d', '#beb771', '#cfb965', '#dfba57', '#efbb49', '#febc38']; - var canvas = null; - function draw(nodeToData) { - if (canvas === null) { - initialize(); } - var canvasFlow = canvas; - canvasFlow.width = window.innerWidth; - canvasFlow.height = window.innerHeight; - var context = canvasFlow.getContext('2d'); - context.clearRect(0, 0, canvasFlow.width, canvasFlow.height); - nodeToData.forEach(function (_ref) { - var count = _ref.count, - rect = _ref.rect; - if (rect !== null) { - var colorIndex = Math.min(COLORS.length - 1, count - 1); - var color = COLORS[colorIndex]; - drawBorder(context, rect, color); - } - }); - } - function drawBorder(context, rect, color) { - var height = rect.height, - left = rect.left, - top = rect.top, - width = rect.width; - - context.lineWidth = 1; - context.strokeStyle = OUTLINE_COLOR; - context.strokeRect(left - 1, top - 1, width + 2, height + 2); - - context.lineWidth = 1; - context.strokeStyle = OUTLINE_COLOR; - context.strokeRect(left + 1, top + 1, width - 1, height - 1); - context.strokeStyle = color; - context.setLineDash([0]); + }); + } + }; + _RCTDeviceEventEmitter.default.addListener('settingsUpdated', Settings._sendObservations.bind(Settings)); + module.exports = Settings; +},205,[3,4,206,20],"node_modules/react-native/Libraries/Settings/Settings.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.getEnforcing('SettingsManager'); + exports.default = _default; +},206,[19],"node_modules/react-native/Libraries/Settings/NativeSettingsManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - context.lineWidth = 1; - context.strokeRect(left, top, width - 1, height - 1); - context.setLineDash([0]); - } - function destroy() { - if (canvas !== null) { - if (canvas.parentNode != null) { - canvas.parentNode.removeChild(canvas); - } - canvas = null; - } - } - function initialize() { - canvas = window.document.createElement('canvas'); - canvas.style.cssText = "\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n "; - var root = window.document.documentElement; - root.insertBefore(canvas, root.firstChild); - } - function _typeof(obj) { - "@babel/helpers - typeof"; + 'use strict'; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; + function flattenStyle(style + // $FlowFixMe[underconstrained-implicit-instantiation] + ) { + if (style === null || typeof style !== 'object') { + return undefined; + } + if (!Array.isArray(style)) { + return style; + } + var result = {}; + for (var i = 0, styleLength = style.length; i < styleLength; ++i) { + // $FlowFixMe[underconstrained-implicit-instantiation] + var computedStyle = flattenStyle(style[i]); + if (computedStyle) { + for (var key in computedStyle) { + result[key] = computedStyle[key]; } - return _typeof(obj); } + } + return result; + } + module.exports = flattenStyle; +},207,[],"node_modules/react-native/Libraries/StyleSheet/flattenStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var DISPLAY_DURATION = 250; - - var MAX_DISPLAY_DURATION = 3000; - - var REMEASUREMENT_AFTER_DURATION = 250; + 'use strict'; - var getCurrentTime = (typeof performance === "undefined" ? "undefined" : _typeof(performance)) === 'object' && typeof performance.now === 'function' ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; - var nodeToData = new Map(); - var TraceUpdates_agent = null; - var drawAnimationFrameID = null; - var isEnabled = false; - var redrawTimeoutID = null; - function TraceUpdates_initialize(injectedAgent) { - TraceUpdates_agent = injectedAgent; - TraceUpdates_agent.addListener('traceUpdates', traceUpdates); - } - function toggleEnabled(value) { - isEnabled = value; - if (!isEnabled) { - nodeToData.clear(); - if (drawAnimationFrameID !== null) { - cancelAnimationFrame(drawAnimationFrameID); - drawAnimationFrameID = null; - } - if (redrawTimeoutID !== null) { - clearTimeout(redrawTimeoutID); - redrawTimeoutID = null; - } - destroy(); - } - } - function traceUpdates(nodes) { - if (!isEnabled) { - return; - } - nodes.forEach(function (node) { - var data = nodeToData.get(node); - var now = getCurrentTime(); - var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0; - var rect = data != null ? data.rect : null; - if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now) { - lastMeasuredAt = now; - rect = measureNode(node); - } - nodeToData.set(node, { - count: data != null ? data.count + 1 : 1, - expirationTime: data != null ? Math.min(now + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now + DISPLAY_DURATION, - lastMeasuredAt: lastMeasuredAt, - rect: rect - }); - }); - if (redrawTimeoutID !== null) { - clearTimeout(redrawTimeoutID); - redrawTimeoutID = null; - } - if (drawAnimationFrameID === null) { - drawAnimationFrameID = requestAnimationFrame(prepareToDraw); - } - } - function prepareToDraw() { - drawAnimationFrameID = null; - redrawTimeoutID = null; - var now = getCurrentTime(); - var earliestExpiration = Number.MAX_VALUE; + // Flow doesn't support static declarations in interface - nodeToData.forEach(function (data, node) { - if (data.expirationTime < now) { - nodeToData.delete(node); - } else { - earliestExpiration = Math.min(earliestExpiration, data.expirationTime); - } - }); - draw(nodeToData); - if (earliestExpiration !== Number.MAX_VALUE) { - redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now); - } - } - function measureNode(node) { - if (!node || typeof node.getBoundingClientRect !== 'function') { - return null; - } - var currentWindow = window.__REACT_DEVTOOLS_TARGET_WINDOW__ || window; - return getNestedBoundingClientRect(node, currentWindow); + var JSInspector = { + registerAgent: function registerAgent(type) { + if (global.__registerInspectorAgent) { + global.__registerInspectorAgent(type); } - var backend_console = __webpack_require__(9); + }, + getTimestamp: function getTimestamp() { + return global.__inspectorTimestamp(); + } + }; + module.exports = JSInspector; +},208,[],"node_modules/react-native/Libraries/JSInspector/JSInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function bridge_typeof(obj) { - "@babel/helpers - typeof"; + 'use strict'; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - bridge_typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - bridge_typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return bridge_typeof(obj); - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || bridge_unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function bridge_unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return bridge_arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bridge_arrayLikeToArray(o, minLen); - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return bridge_arrayLikeToArray(arr); - } - function bridge_arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - return arr2; - } - function bridge_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + // We don't currently care about this + var Interceptor = /*#__PURE__*/function () { + function Interceptor(agent) { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, Interceptor); + this._agent = agent; + this._requests = new Map(); + } + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(Interceptor, [{ + key: "getData", + value: function getData(requestId) { + return this._requests.get(requestId); } - function bridge_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } + }, { + key: "requestSent", + value: function requestSent(id, url, method, headers) { + var requestId = String(id); + this._requests.set(requestId, ''); + var request = { + url: url, + method: method, + headers: headers, + initialPriority: 'Medium' + }; + var event = { + requestId: requestId, + documentURL: '', + frameId: '1', + loaderId: '1', + request: request, + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + initiator: { + // TODO(blom): Get stack trace + // If type is 'script' the inspector will try to execute + // `stack.callFrames[0]` + type: 'other' + }, + type: 'Other' + }; + this._agent.sendEvent('requestWillBeSent', event); } - function bridge_createClass(Constructor, protoProps, staticProps) { - if (protoProps) bridge_defineProperties(Constructor.prototype, protoProps); - if (staticProps) bridge_defineProperties(Constructor, staticProps); - return Constructor; + }, { + key: "responseReceived", + value: function responseReceived(id, url, status, headers) { + var requestId = String(id); + var response = { + url: url, + status: status, + statusText: String(status), + headers: headers, + // TODO(blom) refined headers, can we get this? + requestHeaders: {}, + mimeType: this._getMimeType(headers), + connectionReused: false, + connectionId: -1, + encodedDataLength: 0, + securityState: 'unknown' + }; + var event = { + requestId: requestId, + frameId: '1', + loaderId: '1', + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + type: 'Other', + response: response + }; + this._agent.sendEvent('responseReceived', event); } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf(subClass, superClass); + }, { + key: "dataReceived", + value: function dataReceived(id, data) { + var requestId = String(id); + var existingData = this._requests.get(requestId) || ''; + this._requests.set(requestId, existingData.concat(data)); + var event = { + requestId: requestId, + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + dataLength: data.length, + encodedDataLength: data.length + }; + this._agent.sendEvent('dataReceived', event); } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; + }, { + key: "loadingFinished", + value: function loadingFinished(id, encodedDataLength) { + var event = { + requestId: String(id), + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + encodedDataLength: encodedDataLength }; - return _setPrototypeOf(o, p); + this._agent.sendEvent('loadingFinished', event); } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); + }, { + key: "loadingFailed", + value: function loadingFailed(id, error) { + var event = { + requestId: String(id), + timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), + type: 'Other', + errorText: error }; + this._agent.sendEvent('loadingFailed', event); } - function _possibleConstructorReturn(self, call) { - if (call && (bridge_typeof(call) === "object" || typeof call === "function")) { - return call; - } - return _assertThisInitialized(self); + }, { + key: "_getMimeType", + value: function _getMimeType(headers) { + var contentType = headers['Content-Type'] || ''; + return contentType.split(';')[0]; } - function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; + }]); + return Interceptor; + }(); + var NetworkAgent = /*#__PURE__*/function (_InspectorAgent) { + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")(NetworkAgent, _InspectorAgent); + var _super = _createSuper(NetworkAgent); + function NetworkAgent() { + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, NetworkAgent); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(NetworkAgent, [{ + key: "enable", + value: function enable(_ref) { + var maxResourceBufferSize = _ref.maxResourceBufferSize, + maxTotalBufferSize = _ref.maxTotalBufferSize; + this._interceptor = new Interceptor(this); + _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(this._interceptor); } - function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - try { - Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); - return true; - } catch (e) { - return false; - } + }, { + key: "disable", + value: function disable() { + _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(null); + this._interceptor = null; } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); + }, { + key: "getResponseBody", + value: function getResponseBody(_ref2) { + var requestId = _ref2.requestId; + return { + body: this.interceptor().getData(requestId), + base64Encoded: false }; - return _getPrototypeOf(o); } - function bridge_defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); + }, { + key: "interceptor", + value: function interceptor() { + if (this._interceptor) { + return this._interceptor; } else { - obj[key] = value; + throw Error('_interceptor can not be null'); } - return obj; } + }]); + return NetworkAgent; + }(_$$_REQUIRE(_dependencyMap[7], "./InspectorAgent")); + NetworkAgent.DOMAIN = 'Network'; + module.exports = NetworkAgent; +},209,[53,51,12,13,208,49,130,210],"node_modules/react-native/Libraries/JSInspector/NetworkAgent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var BATCH_DURATION = 100; + 'use strict'; - var BRIDGE_PROTOCOL = [ - { - version: 0, - minNpmVersion: '"<4.11.0"', - maxNpmVersion: '"<4.11.0"' - }, { - version: 1, - minNpmVersion: '4.13.0', - maxNpmVersion: '4.21.0' - }, - { - version: 2, - minNpmVersion: '4.22.0', - maxNpmVersion: null - }]; - var currentBridgeProtocol = BRIDGE_PROTOCOL[BRIDGE_PROTOCOL.length - 1]; - var Bridge = function (_EventEmitter) { - _inherits(Bridge, _EventEmitter); - var _super = _createSuper(Bridge); - function Bridge(wall) { - var _this; - bridge_classCallCheck(this, Bridge); - _this = _super.call(this); - bridge_defineProperty(_assertThisInitialized(_this), "_isShutdown", false); - bridge_defineProperty(_assertThisInitialized(_this), "_messageQueue", []); - bridge_defineProperty(_assertThisInitialized(_this), "_timeoutID", null); - bridge_defineProperty(_assertThisInitialized(_this), "_wallUnlisten", null); - bridge_defineProperty(_assertThisInitialized(_this), "_flush", function () { - if (_this._timeoutID !== null) { - clearTimeout(_this._timeoutID); - _this._timeoutID = null; - } - if (_this._messageQueue.length) { - for (var i = 0; i < _this._messageQueue.length; i += 2) { - var _this$_wall; - (_this$_wall = _this._wall).send.apply(_this$_wall, [_this._messageQueue[i]].concat(_toConsumableArray(_this._messageQueue[i + 1]))); - } - _this._messageQueue.length = 0; - - _this._timeoutID = setTimeout(_this._flush, BATCH_DURATION); - } - }); - bridge_defineProperty(_assertThisInitialized(_this), "overrideValueAtPath", function (_ref) { - var id = _ref.id, - path = _ref.path, - rendererID = _ref.rendererID, - type = _ref.type, - value = _ref.value; - switch (type) { - case 'context': - _this.send('overrideContext', { - id: id, - path: path, - rendererID: rendererID, - wasForwarded: true, - value: value - }); - break; - case 'hooks': - _this.send('overrideHookState', { - id: id, - path: path, - rendererID: rendererID, - wasForwarded: true, - value: value - }); - break; - case 'props': - _this.send('overrideProps', { - id: id, - path: path, - rendererID: rendererID, - wasForwarded: true, - value: value - }); - break; - case 'state': - _this.send('overrideState', { - id: id, - path: path, - rendererID: rendererID, - wasForwarded: true, - value: value - }); - break; - } - }); - _this._wall = wall; - _this._wallUnlisten = wall.listen(function (message) { - if (message && message.event) { - _assertThisInitialized(_this).emit(message.event, message.payload); - } - }) || null; + var InspectorAgent = /*#__PURE__*/function () { + function InspectorAgent(eventSender) { + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, InspectorAgent); + this._eventSender = eventSender; + } + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(InspectorAgent, [{ + key: "sendEvent", + value: function sendEvent(name, params) { + this._eventSender(name, params); + } + }]); + return InspectorAgent; + }(); + module.exports = InspectorAgent; +},210,[12,13],"node_modules/react-native/Libraries/JSInspector/InspectorAgent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + if (__DEV__) { + var DevSettings = _$$_REQUIRE(_dependencyMap[0], "../Utilities/DevSettings"); + if (typeof DevSettings.reload !== 'function') { + throw new Error('Could not find the reload() implementation.'); + } - _this.addListener('overrideValueAtPath', _this.overrideValueAtPath); - return _this; + // This needs to run before the renderer initializes. + var ReactRefreshRuntime = _$$_REQUIRE(_dependencyMap[1], "react-refresh/runtime"); + ReactRefreshRuntime.injectIntoGlobalHook(global); + var Refresh = { + performFullRefresh: function performFullRefresh(reason) { + DevSettings.reload(reason); + }, + createSignatureFunctionForTransform: ReactRefreshRuntime.createSignatureFunctionForTransform, + isLikelyComponentType: ReactRefreshRuntime.isLikelyComponentType, + getFamilyByType: ReactRefreshRuntime.getFamilyByType, + register: ReactRefreshRuntime.register, + performReactRefresh: function performReactRefresh() { + if (ReactRefreshRuntime.hasUnrecoverableErrors()) { + DevSettings.reload('Fast Refresh - Unrecoverable'); + return; } + ReactRefreshRuntime.performReactRefresh(); + DevSettings.onFastRefresh(); + } + }; - bridge_createClass(Bridge, [{ - key: "send", - value: function send(event) { - if (this._isShutdown) { - console.warn("Cannot send message \"".concat(event, "\" through a Bridge that has been shutdown.")); - return; - } + // The metro require polyfill can not have dependencies (applies for all polyfills). + // Expose `Refresh` by assigning it to global to make it available in the polyfill. + global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__ReactRefresh'] = Refresh; + } +},211,[184,212],"node_modules/react-native/Libraries/Core/setUpReactRefresh.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; - for (var _len = arguments.length, payload = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - payload[_key - 1] = arguments[_key]; - } - this._messageQueue.push(event, payload); - if (!this._timeoutID) { - this._timeoutID = setTimeout(this._flush, 0); - } - } - }, { - key: "shutdown", - value: function shutdown() { - if (this._isShutdown) { - console.warn('Bridge was already shutdown.'); - return; - } + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-refresh-runtime.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-refresh-runtime.development.js"); + } +},212,[213,214],"node_modules/react-refresh/runtime.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React vundefined + * react-refresh-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + throw Error("React Refresh runtime should not be included in the production bundle."); +},213,[],"node_modules/react-refresh/cjs/react-refresh-runtime.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React vundefined + * react-refresh-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - this.send('shutdown'); + 'use strict'; - this._isShutdown = true; + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; - this.addListener = function () {}; + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === 'function' && Symbol.for; - this.emit = function () {}; + // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary + // (unstable) APIs that have been removed. Can we remove the symbols? - this.removeAllListeners(); + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations. + // It's OK to reference families, but use WeakMap/Set for types. - var wallUnlisten = this._wallUnlisten; - if (wallUnlisten) { - wallUnlisten(); - } + var allFamiliesByID = new Map(); + var allFamiliesByType = new PossiblyWeakMap(); + var allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families + // that have actually been edited here. This keeps checks fast. + // $FlowIssue - do { - this._flush(); - } while (this._messageQueue.length); + var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call. + // It is an array of [Family, NextType] tuples. - if (this._timeoutID !== null) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - } - }, { - key: "wall", - get: function get() { - return this._wall; - } - }]); - return Bridge; - }(EventEmitter); + var pendingUpdates = []; // This is injected by the renderer via DevTools global hook. - var src_bridge = Bridge; - var utils = __webpack_require__(4); + var helpersByRendererID = new Map(); + var helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates. - function agent_typeof(obj) { - "@babel/helpers - typeof"; + var mountedRoots = new Set(); // If a root captures an error, we add its element to this Map so we can retry on edit. - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - agent_typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - agent_typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return agent_typeof(obj); - } - function agent_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - function agent_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + var failedRoots = new Map(); + var didSomeRootFailOnMount = false; + function computeFullKey(signature) { + if (signature.fullKey !== null) { + return signature.fullKey; } - } - function agent_createClass(Constructor, protoProps, staticProps) { - if (protoProps) agent_defineProperties(Constructor.prototype, protoProps); - if (staticProps) agent_defineProperties(Constructor, staticProps); - return Constructor; - } - function agent_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); + var fullKey = signature.ownKey; + var hooks; + try { + hooks = signature.getCustomHooks(); + } catch (err) { + // This can happen in an edge case, e.g. if expression like Foo.useSomething + // depends on Foo which is lazily initialized during rendering. + // In that case just assume we'll have to remount. + signature.forceReset = true; + signature.fullKey = fullKey; + return fullKey; } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true + for (var i = 0; i < hooks.length; i++) { + var hook = hooks[i]; + if (typeof hook !== 'function') { + // Something's wrong. Assume we need to remount. + signature.forceReset = true; + signature.fullKey = fullKey; + return fullKey; } - }); - if (superClass) agent_setPrototypeOf(subClass, superClass); - } - function agent_setPrototypeOf(o, p) { - agent_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return agent_setPrototypeOf(o, p); - } - function agent_createSuper(Derived) { - var hasNativeReflectConstruct = agent_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = agent_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = agent_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); + var nestedHookSignature = allSignaturesByType.get(hook); + if (nestedHookSignature === undefined) { + // No signature means Hook wasn't in the source code, e.g. in a library. + // We'll skip it because we can assume it won't change during this session. + continue; } - return agent_possibleConstructorReturn(this, result); - }; - } - function agent_possibleConstructorReturn(self, call) { - if (call && (agent_typeof(call) === "object" || typeof call === "function")) { - return call; - } - return agent_assertThisInitialized(self); - } - function agent_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + var nestedHookKey = computeFullKey(nestedHookSignature); + if (nestedHookSignature.forceReset) { + signature.forceReset = true; + } + fullKey += '\n---\n' + nestedHookKey; } - return self; + signature.fullKey = fullKey; + return fullKey; } - function agent_isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - try { - Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + function haveEqualSignatures(prevType, nextType) { + var prevSignature = allSignaturesByType.get(prevType); + var nextSignature = allSignaturesByType.get(nextType); + if (prevSignature === undefined && nextSignature === undefined) { return true; - } catch (e) { + } + if (prevSignature === undefined || nextSignature === undefined) { + return false; + } + if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) { + return false; + } + if (nextSignature.forceReset) { return false; } + return true; } - function agent_getPrototypeOf(o) { - agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return agent_getPrototypeOf(o); + function isReactClass(type) { + return type.prototype && type.prototype.isReactComponent; } - function agent_defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; + function canPreserveStateBetween(prevType, nextType) { + if (isReactClass(prevType) || isReactClass(nextType)) { + return false; } - return obj; + if (haveEqualSignatures(prevType, nextType)) { + return true; + } + return false; } - - var agent_debug = function debug(methodName) { - if (constants["s"]) { - var _console; - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; + function resolveFamily(type) { + // Only check updated types to keep lookups fast. + return updatedFamiliesByType.get(type); + } + function performReactRefresh() { + { + if (pendingUpdates.length === 0) { + return null; } - (_console = console).log.apply(_console, ["%cAgent %c".concat(methodName), 'color: purple; font-weight: bold;', 'font-weight: bold;'].concat(args)); - } - }; - var agent_Agent = function (_EventEmitter) { - agent_inherits(Agent, _EventEmitter); - var _super = agent_createSuper(Agent); - function Agent(bridge) { - var _this; - agent_classCallCheck(this, Agent); - _this = _super.call(this); - agent_defineProperty(agent_assertThisInitialized(_this), "_isProfiling", false); - agent_defineProperty(agent_assertThisInitialized(_this), "_recordChangeDescriptions", false); - agent_defineProperty(agent_assertThisInitialized(_this), "_rendererInterfaces", {}); - agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelection", null); - agent_defineProperty(agent_assertThisInitialized(_this), "_persistedSelectionMatch", null); - agent_defineProperty(agent_assertThisInitialized(_this), "_traceUpdatesEnabled", false); - agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsAndWarnings", function (_ref) { - var rendererID = _ref.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - } else { - renderer.clearErrorsAndWarnings(); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "clearErrorsForFiberID", function (_ref2) { - var id = _ref2.id, - rendererID = _ref2.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - } else { - renderer.clearErrorsForFiberID(id); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "clearWarningsForFiberID", function (_ref3) { - var id = _ref3.id, - rendererID = _ref3.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - } else { - renderer.clearWarningsForFiberID(id); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "copyElementPath", function (_ref4) { - var id = _ref4.id, - path = _ref4.path, - rendererID = _ref4.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.copyElementPath(id, path); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "deletePath", function (_ref5) { - var hookID = _ref5.hookID, - id = _ref5.id, - path = _ref5.path, - rendererID = _ref5.rendererID, - type = _ref5.type; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.deletePath(type, id, hookID, path); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "getBackendVersion", function () { - var version = "4.24.0-82762bea5"; - if (version) { - _this._bridge.send('backendVersion', version); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "getBridgeProtocol", function () { - _this._bridge.send('bridgeProtocol', currentBridgeProtocol); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingData", function (_ref6) { - var rendererID = _ref6.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - } - _this._bridge.send('profilingData', renderer.getProfilingData()); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "getProfilingStatus", function () { - _this._bridge.send('profilingStatus', _this._isProfiling); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "getOwnersList", function (_ref7) { - var id = _ref7.id, - rendererID = _ref7.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); + var staleFamilies = new Set(); + var updatedFamilies = new Set(); + var updates = pendingUpdates; + pendingUpdates = []; + updates.forEach(function (_ref) { + var family = _ref[0], + nextType = _ref[1]; + // Now that we got a real edit, we can create associations + // that will be read by the React reconciler. + var prevType = family.current; + updatedFamiliesByType.set(prevType, family); + updatedFamiliesByType.set(nextType, family); + family.current = nextType; // Determine whether this should be a re-render or a re-mount. + + if (canPreserveStateBetween(prevType, nextType)) { + updatedFamilies.add(family); } else { - var owners = renderer.getOwnersList(id); - _this._bridge.send('ownersList', { - id: id, - owners: owners - }); + staleFamilies.add(family); } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "inspectElement", function (_ref8) { - var forceFullData = _ref8.forceFullData, - id = _ref8.id, - path = _ref8.path, - rendererID = _ref8.rendererID, - requestID = _ref8.requestID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - _this._bridge.send('inspectedElement', renderer.inspectElement(requestID, id, path, forceFullData)); + }); // TODO: rename these fields to something more meaningful. - if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) { - _this._persistedSelection = null; - _this._persistedSelectionMatch = null; - renderer.setTrackedPath(null); - _this._throttledPersistSelection(rendererID, id); - } - } - }); + var update = { + updatedFamilies: updatedFamilies, + // Families that will re-render preserving state + staleFamilies: staleFamilies // Families that will be remounted + }; - agent_defineProperty(agent_assertThisInitialized(_this), "logElementToConsole", function (_ref9) { - var id = _ref9.id, - rendererID = _ref9.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.logElementToConsole(id); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideError", function (_ref10) { - var id = _ref10.id, - rendererID = _ref10.rendererID, - forceError = _ref10.forceError; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.overrideError(id, forceError); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideSuspense", function (_ref11) { - var id = _ref11.id, - rendererID = _ref11.rendererID, - forceFallback = _ref11.forceFallback; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.overrideSuspense(id, forceFallback); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideValueAtPath", function (_ref12) { - var hookID = _ref12.hookID, - id = _ref12.id, - path = _ref12.path, - rendererID = _ref12.rendererID, - type = _ref12.type, - value = _ref12.value; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.overrideValueAtPath(type, id, hookID, path, value); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideContext", function (_ref13) { - var id = _ref13.id, - path = _ref13.path, - rendererID = _ref13.rendererID, - wasForwarded = _ref13.wasForwarded, - value = _ref13.value; - - if (!wasForwarded) { - _this.overrideValueAtPath({ - id: id, - path: path, - rendererID: rendererID, - type: 'context', - value: value - }); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideHookState", function (_ref14) { - var id = _ref14.id, - hookID = _ref14.hookID, - path = _ref14.path, - rendererID = _ref14.rendererID, - wasForwarded = _ref14.wasForwarded, - value = _ref14.value; - - if (!wasForwarded) { - _this.overrideValueAtPath({ - id: id, - path: path, - rendererID: rendererID, - type: 'hooks', - value: value - }); - } + helpersByRendererID.forEach(function (helpers) { + // Even if there are no roots, set the handler on first update. + // This ensures that if *new* roots are mounted, they'll use the resolve handler. + helpers.setRefreshHandler(resolveFamily); }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideProps", function (_ref15) { - var id = _ref15.id, - path = _ref15.path, - rendererID = _ref15.rendererID, - wasForwarded = _ref15.wasForwarded, - value = _ref15.value; - - if (!wasForwarded) { - _this.overrideValueAtPath({ - id: id, - path: path, - rendererID: rendererID, - type: 'props', - value: value - }); + var didError = false; + var firstError = null; + failedRoots.forEach(function (element, root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "overrideState", function (_ref16) { - var id = _ref16.id, - path = _ref16.path, - rendererID = _ref16.rendererID, - wasForwarded = _ref16.wasForwarded, - value = _ref16.value; - - if (!wasForwarded) { - _this.overrideValueAtPath({ - id: id, - path: path, - rendererID: rendererID, - type: 'state', - value: value - }); + try { + helpers.scheduleRoot(root, element); + } catch (err) { + if (!didError) { + didError = true; + firstError = err; + } // Keep trying other roots. } }); - agent_defineProperty(agent_assertThisInitialized(_this), "reloadAndProfile", function (recordChangeDescriptions) { - Object(storage["e"])(constants["k"], 'true'); - Object(storage["e"])(constants["j"], recordChangeDescriptions ? 'true' : 'false'); - _this._bridge.send('reloadAppForProfiling'); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "renamePath", function (_ref17) { - var hookID = _ref17.hookID, - id = _ref17.id, - newPath = _ref17.newPath, - oldPath = _ref17.oldPath, - rendererID = _ref17.rendererID, - type = _ref17.type; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.renamePath(type, id, hookID, oldPath, newPath); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "setTraceUpdatesEnabled", function (traceUpdatesEnabled) { - _this._traceUpdatesEnabled = traceUpdatesEnabled; - toggleEnabled(traceUpdatesEnabled); - for (var rendererID in _this._rendererInterfaces) { - var renderer = _this._rendererInterfaces[rendererID]; - renderer.setTraceUpdatesEnabled(traceUpdatesEnabled); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "syncSelectionFromNativeElementsPanel", function () { - var target = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0; - if (target == null) { - return; - } - _this.selectNode(target); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "shutdown", function () { - _this.emit('shutdown'); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "startProfiling", function (recordChangeDescriptions) { - _this._recordChangeDescriptions = recordChangeDescriptions; - _this._isProfiling = true; - for (var rendererID in _this._rendererInterfaces) { - var renderer = _this._rendererInterfaces[rendererID]; - renderer.startProfiling(recordChangeDescriptions); - } - _this._bridge.send('profilingStatus', _this._isProfiling); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "stopProfiling", function () { - _this._isProfiling = false; - _this._recordChangeDescriptions = false; - for (var rendererID in _this._rendererInterfaces) { - var renderer = _this._rendererInterfaces[rendererID]; - renderer.stopProfiling(); - } - _this._bridge.send('profilingStatus', _this._isProfiling); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "storeAsGlobal", function (_ref18) { - var count = _ref18.count, - id = _ref18.id, - path = _ref18.path, - rendererID = _ref18.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.storeAsGlobal(id, path, count); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "updateConsolePatchSettings", function (_ref19) { - var appendComponentStack = _ref19.appendComponentStack, - breakOnConsoleErrors = _ref19.breakOnConsoleErrors, - showInlineWarningsAndErrors = _ref19.showInlineWarningsAndErrors, - hideConsoleLogsInStrictMode = _ref19.hideConsoleLogsInStrictMode, - browserTheme = _ref19.browserTheme; - Object(backend_console["a"])({ - appendComponentStack: appendComponentStack, - breakOnConsoleErrors: breakOnConsoleErrors, - showInlineWarningsAndErrors: showInlineWarningsAndErrors, - hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, - browserTheme: browserTheme - }); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "updateComponentFilters", function (componentFilters) { - for (var rendererID in _this._rendererInterfaces) { - var renderer = _this._rendererInterfaces[rendererID]; - renderer.updateComponentFilters(componentFilters); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "viewAttributeSource", function (_ref20) { - var id = _ref20.id, - path = _ref20.path, - rendererID = _ref20.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.prepareViewAttributeSource(id, path); - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "viewElementSource", function (_ref21) { - var id = _ref21.id, - rendererID = _ref21.rendererID; - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\" for element \"").concat(id, "\"")); - } else { - renderer.prepareViewElementSource(id); + mountedRoots.forEach(function (root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "onTraceUpdates", function (nodes) { - _this.emit('traceUpdates', nodes); - }); - agent_defineProperty(agent_assertThisInitialized(_this), "onFastRefreshScheduled", function () { - if (constants["s"]) { - agent_debug('onFastRefreshScheduled'); + try { + helpers.scheduleRefresh(root, update); + } catch (err) { + if (!didError) { + didError = true; + firstError = err; + } // Keep trying other roots. } - _this._bridge.send('fastRefreshScheduled'); }); - agent_defineProperty(agent_assertThisInitialized(_this), "onHookOperations", function (operations) { - if (constants["s"]) { - agent_debug('onHookOperations', "(".concat(operations.length, ") [").concat(operations.join(', '), "]")); - } - _this._bridge.send('operations', operations); - if (_this._persistedSelection !== null) { - var rendererID = operations[0]; - if (_this._persistedSelection.rendererID === rendererID) { - var renderer = _this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - } else { - var prevMatch = _this._persistedSelectionMatch; - var nextMatch = renderer.getBestMatchForTrackedPath(); - _this._persistedSelectionMatch = nextMatch; - var prevMatchID = prevMatch !== null ? prevMatch.id : null; - var nextMatchID = nextMatch !== null ? nextMatch.id : null; - if (prevMatchID !== nextMatchID) { - if (nextMatchID !== null) { - _this._bridge.send('selectFiber', nextMatchID); - } - } - if (nextMatch !== null && nextMatch.isFullMatch) { - _this._persistedSelection = null; - _this._persistedSelectionMatch = null; - renderer.setTrackedPath(null); - } - } - } - } - }); - agent_defineProperty(agent_assertThisInitialized(_this), "_throttledPersistSelection", lodash_throttle_default()(function (rendererID, id) { - var renderer = _this._rendererInterfaces[rendererID]; - var path = renderer != null ? renderer.getPathForElement(id) : null; - if (path !== null) { - Object(storage["e"])(constants["i"], JSON.stringify({ - rendererID: rendererID, - path: path - })); - } else { - Object(storage["d"])(constants["i"]); - } - }, 1000)); - if (Object(storage["c"])(constants["k"]) === 'true') { - _this._recordChangeDescriptions = Object(storage["c"])(constants["j"]) === 'true'; - _this._isProfiling = true; - Object(storage["d"])(constants["j"]); - Object(storage["d"])(constants["k"]); - } - - var persistedSelectionString = Object(storage["c"])(constants["i"]); - - if (persistedSelectionString != null) { - _this._persistedSelection = JSON.parse(persistedSelectionString); - } - _this._bridge = bridge; - bridge.addListener('clearErrorsAndWarnings', _this.clearErrorsAndWarnings); - bridge.addListener('clearErrorsForFiberID', _this.clearErrorsForFiberID); - bridge.addListener('clearWarningsForFiberID', _this.clearWarningsForFiberID); - bridge.addListener('copyElementPath', _this.copyElementPath); - bridge.addListener('deletePath', _this.deletePath); - bridge.addListener('getBackendVersion', _this.getBackendVersion); - bridge.addListener('getBridgeProtocol', _this.getBridgeProtocol); - bridge.addListener('getProfilingData', _this.getProfilingData); - bridge.addListener('getProfilingStatus', _this.getProfilingStatus); - bridge.addListener('getOwnersList', _this.getOwnersList); - bridge.addListener('inspectElement', _this.inspectElement); - bridge.addListener('logElementToConsole', _this.logElementToConsole); - bridge.addListener('overrideError', _this.overrideError); - bridge.addListener('overrideSuspense', _this.overrideSuspense); - bridge.addListener('overrideValueAtPath', _this.overrideValueAtPath); - bridge.addListener('reloadAndProfile', _this.reloadAndProfile); - bridge.addListener('renamePath', _this.renamePath); - bridge.addListener('setTraceUpdatesEnabled', _this.setTraceUpdatesEnabled); - bridge.addListener('startProfiling', _this.startProfiling); - bridge.addListener('stopProfiling', _this.stopProfiling); - bridge.addListener('storeAsGlobal', _this.storeAsGlobal); - bridge.addListener('syncSelectionFromNativeElementsPanel', _this.syncSelectionFromNativeElementsPanel); - bridge.addListener('shutdown', _this.shutdown); - bridge.addListener('updateConsolePatchSettings', _this.updateConsolePatchSettings); - bridge.addListener('updateComponentFilters', _this.updateComponentFilters); - bridge.addListener('viewAttributeSource', _this.viewAttributeSource); - bridge.addListener('viewElementSource', _this.viewElementSource); - - bridge.addListener('overrideContext', _this.overrideContext); - bridge.addListener('overrideHookState', _this.overrideHookState); - bridge.addListener('overrideProps', _this.overrideProps); - bridge.addListener('overrideState', _this.overrideState); - if (_this._isProfiling) { - bridge.send('profilingStatus', true); - } - - var _version = "4.24.0-82762bea5"; - if (_version) { - _this._bridge.send('backendVersion', _version); - } - _this._bridge.send('bridgeProtocol', currentBridgeProtocol); - - var isBackendStorageAPISupported = false; - try { - localStorage.getItem('test'); - isBackendStorageAPISupported = true; - } catch (error) {} - bridge.send('isBackendStorageAPISupported', isBackendStorageAPISupported); - bridge.send('isSynchronousXHRSupported', Object(utils["h"])()); - setupHighlighter(bridge, agent_assertThisInitialized(_this)); - TraceUpdates_initialize(agent_assertThisInitialized(_this)); - return _this; - } - agent_createClass(Agent, [{ - key: "getInstanceAndStyle", - value: function getInstanceAndStyle(_ref22) { - var id = _ref22.id, - rendererID = _ref22.rendererID; - var renderer = this._rendererInterfaces[rendererID]; - if (renderer == null) { - console.warn("Invalid renderer id \"".concat(rendererID, "\"")); - return null; - } - return renderer.getInstanceAndStyle(id); + if (didError) { + throw firstError; } - }, { - key: "getIDForNode", - value: function getIDForNode(node) { - for (var rendererID in this._rendererInterfaces) { - var renderer = this._rendererInterfaces[rendererID]; - try { - var id = renderer.getFiberIDForNative(node, true); - if (id !== null) { - return id; - } - } catch (error) { - } - } - return null; + return update; + } + } + function register(type, id) { + { + if (type === null) { + return; } - }, { - key: "selectNode", - value: function selectNode(target) { - var id = this.getIDForNode(target); - if (id !== null) { - this._bridge.send('selectFiber', id); - } + if (typeof type !== 'function' && typeof type !== 'object') { + return; + } // This can happen in an edge case, e.g. if we register + // return value of a HOC but it returns a cached component. + // Ignore anything but the first registration for each type. + + if (allFamiliesByType.has(type)) { + return; + } // Create family or remember to update it. + // None of this bookkeeping affects reconciliation + // until the first performReactRefresh() call above. + + var family = allFamiliesByID.get(id); + if (family === undefined) { + family = { + current: type + }; + allFamiliesByID.set(id, family); + } else { + pendingUpdates.push([family, type]); } - }, { - key: "setRendererInterface", - value: function setRendererInterface(rendererID, rendererInterface) { - this._rendererInterfaces[rendererID] = rendererInterface; - if (this._isProfiling) { - rendererInterface.startProfiling(this._recordChangeDescriptions); - } - rendererInterface.setTraceUpdatesEnabled(this._traceUpdatesEnabled); + allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them. - var selection = this._persistedSelection; - if (selection !== null && selection.rendererID === rendererID) { - rendererInterface.setTrackedPath(selection.path); + if (typeof type === 'object' && type !== null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + register(type.render, id + '$render'); + break; + case REACT_MEMO_TYPE: + register(type.type, id + '$type'); + break; } } - }, { - key: "onUnsupportedRenderer", - value: function onUnsupportedRenderer(rendererID) { - this._bridge.send('unsupportedRendererVersion', rendererID); - } - }, { - key: "rendererInterfaces", - get: function get() { - return this._rendererInterfaces; - } - }]); - return Agent; - }(EventEmitter); - - function installHook(target) { - if (target.hasOwnProperty('__REACT_DEVTOOLS_GLOBAL_HOOK__')) { - return null; } - var targetConsole = console; - var targetConsoleMethods = {}; - for (var method in console) { - targetConsoleMethods[method] = console[method]; + } + function setSignature(type, key) { + var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined; + { + allSignaturesByType.set(type, { + forceReset: forceReset, + ownKey: key, + fullKey: null, + getCustomHooks: getCustomHooks || function () { + return []; + } + }); } - function dangerous_setTargetConsoleForTesting(targetConsoleForTesting) { - targetConsole = targetConsoleForTesting; - targetConsoleMethods = {}; - for (var _method in targetConsole) { - targetConsoleMethods[_method] = console[_method]; + } // This is lazily called during first render for a type. + // It captures Hook list at that time so inline requires don't break comparisons. + + function collectCustomHooksForSignature(type) { + { + var signature = allSignaturesByType.get(type); + if (signature !== undefined) { + computeFullKey(signature); } } - function detectReactBuildType(renderer) { - try { - if (typeof renderer.version === 'string') { - if (renderer.bundleType > 0) { - return 'development'; - } - - return 'production'; + } + function getFamilyByID(id) { + { + return allFamiliesByID.get(id); + } + } + function getFamilyByType(type) { + { + return allFamiliesByType.get(type); + } + } + function findAffectedHostInstances(families) { + { + var affectedInstances = new Set(); + mountedRoots.forEach(function (root) { + var helpers = helpersByRoot.get(root); + if (helpers === undefined) { + throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } + var instancesForRoot = helpers.findHostInstancesForRefresh(root, families); + instancesForRoot.forEach(function (inst) { + affectedInstances.add(inst); + }); + }); + return affectedInstances; + } + } + function injectIntoGlobalHook(globalObject) { + { + // For React Native, the global hook will be set up by require('react-devtools-core'). + // That code will run before us. So we need to monkeypatch functions on existing hook. + // For React Web, the global hook will be set up by the extension. + // This will also run before us. + var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook === undefined) { + // However, if there is no DevTools extension, we'll need to set up the global hook ourselves. + // Note that in this case it's important that renderer code runs *after* this method call. + // Otherwise, the renderer will think that there is no global hook, and won't do the injection. + var nextID = 0; + globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = { + supportsFiber: true, + inject: function inject(injected) { + return nextID++; + }, + onCommitFiberRoot: function onCommitFiberRoot(id, root, maybePriorityLevel, didError) {}, + onCommitFiberUnmount: function onCommitFiberUnmount() {} + }; + } // Here, we just want to get a reference to scheduleRefresh. - var _toString = Function.prototype.toString; - if (renderer.Mount && renderer.Mount._renderNewRootComponent) { - var renderRootCode = _toString.call(renderer.Mount._renderNewRootComponent); - - if (renderRootCode.indexOf('function') !== 0) { - return 'production'; - } - - if (renderRootCode.indexOf('storedMeasure') !== -1) { - return 'development'; - } - - if (renderRootCode.indexOf('should be a pure function') !== -1) { - if (renderRootCode.indexOf('NODE_ENV') !== -1) { - return 'development'; - } - - if (renderRootCode.indexOf('development') !== -1) { - return 'development'; - } + var oldInject = hook.inject; + hook.inject = function (injected) { + var id = oldInject.apply(this, arguments); + if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') { + // This version supports React Refresh. + helpersByRendererID.set(id, injected); + } + return id; + }; // We also want to track currently mounted roots. - if (renderRootCode.indexOf('true') !== -1) { - return 'development'; - } + var oldOnCommitFiberRoot = hook.onCommitFiberRoot; + hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) { + var helpers = helpersByRendererID.get(id); + if (helpers === undefined) { + return; + } + helpersByRoot.set(root, helpers); + var current = root.current; + var alternate = current.alternate; // We need to determine whether this root has just (un)mounted. + // This logic is copy-pasted from similar logic in the DevTools backend. + // If this breaks with some refactoring, you'll want to update DevTools too. - if ( - renderRootCode.indexOf('nextElement') !== -1 || - renderRootCode.indexOf('nextComponent') !== -1) { - return 'unminified'; + if (alternate !== null) { + var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null; + var isMounted = current.memoizedState != null && current.memoizedState.element != null; + if (!wasMounted && isMounted) { + // Mount a new root. + mountedRoots.add(root); + failedRoots.delete(root); + } else if (wasMounted && isMounted) {// Update an existing root. + // This doesn't affect our mounted root Set. + } else if (wasMounted && !isMounted) { + // Unmount an existing root. + mountedRoots.delete(root); + if (didError) { + // We'll remount it on future edits. + // Remember what was rendered so we can restore it. + failedRoots.set(root, alternate.memoizedState.element); } else { - return 'development'; + helpersByRoot.delete(root); + } + } else if (!wasMounted && !isMounted) { + if (didError && !failedRoots.has(root)) { + // The root had an error during the initial mount. + // We can't read its last element from the memoized state + // because there was no previously committed alternate. + // Ideally, it would be nice if we had a way to extract + // the last attempted rendered element, but accessing the update queue + // would tie this package too closely to the reconciler version. + // So instead, we just set a flag. + // TODO: Maybe we could fix this as the same time as when we fix + // DevTools to not depend on `alternate.memoizedState.element`. + didSomeRootFailOnMount = true; } } - - if ( - renderRootCode.indexOf('nextElement') !== -1 || - renderRootCode.indexOf('nextComponent') !== -1) { - return 'unminified'; - } - - return 'outdated'; + } else { + // Mount a new root. + mountedRoots.add(root); } - } catch (err) { - } - return 'production'; + return oldOnCommitFiberRoot.apply(this, arguments); + }; } - function checkDCE(fn) { - try { - var _toString2 = Function.prototype.toString; - var code = _toString2.call(fn); - - if (code.indexOf('^_^') > -1) { - hasDetectedBadDCE = true; + } + function hasUnrecoverableErrors() { + return didSomeRootFailOnMount; + } // Exposed for testing. - setTimeout(function () { - throw new Error('React is running in production mode, but dead code ' + 'elimination has not been applied. Read how to correctly ' + 'configure React for production: ' + 'https://reactjs.org/link/perf-use-production-build'); - }); - } - } catch (err) {} + function _getMountedRootCount() { + { + return mountedRoots.size; } + } // This is a wrapper over more primitive functions for setting signature. + // Signatures let us decide whether the Hook order has changed on refresh. + // + // This function is intended to be used as a transform target, e.g.: + // var _s = createSignatureFunctionForTransform() + // + // function Hello() { + // const [foo, setFoo] = useState(0); + // const value = useCustomHook(); + // _s(); /* Second call triggers collecting the custom Hook list. + // * This doesn't happen during the module evaluation because we + // * don't want to change the module order with inline requires. + // * Next calls are noops. */ + // return

Hi

; + // } + // + // /* First call specifies the signature: */ + // _s( + // Hello, + // 'useState{[foo, setFoo]}(0)', + // () => [useCustomHook], /* Lazy to avoid triggering inline requires */ + // ); - function format(maybeMessage) { - for (var _len = arguments.length, inputArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - inputArgs[_key - 1] = arguments[_key]; - } - var args = inputArgs.slice(); - - var formatted = String(maybeMessage); + function createSignatureFunctionForTransform() { + { + // We'll fill in the signature in two steps. + // First, we'll know the signature itself. This happens outside the component. + // Then, we'll know the references to custom Hooks. This happens inside the component. + // After that, the returned function will be a fast path no-op. + var status = 'needsSignature'; + var savedType; + var hasCustomHooks; + return function (type, key, forceReset, getCustomHooks) { + switch (status) { + case 'needsSignature': + if (type !== undefined) { + // If we received an argument, this is the initial registration call. + savedType = type; + hasCustomHooks = typeof getCustomHooks === 'function'; + setSignature(type, key, forceReset, getCustomHooks); // The next call we expect is from inside a function, to fill in the custom Hooks. - if (typeof maybeMessage === 'string') { - if (args.length) { - var REGEXP = /(%?)(%([jds]))/g; - formatted = formatted.replace(REGEXP, function (match, escaped, ptn, flag) { - var arg = args.shift(); - switch (flag) { - case 's': - arg += ''; - break; - case 'd': - case 'i': - arg = parseInt(arg, 10).toString(); - break; - case 'f': - arg = parseFloat(arg).toString(); - break; + status = 'needsCustomHooks'; } - if (!escaped) { - return arg; + break; + case 'needsCustomHooks': + if (hasCustomHooks) { + collectCustomHooksForSignature(savedType); } - args.unshift(arg); - return match; - }); - } - } - - if (args.length) { - for (var i = 0; i < args.length; i++) { - formatted += ' ' + String(args[i]); + status = 'resolved'; + break; + case 'resolved': + // Do nothing. Fast path for all future renders. + break; } - } - - formatted = formatted.replace(/%{2,2}/g, '%'); - return String(formatted); + return type; + }; } - var unpatchFn = null; + } + function isLikelyComponentType(type) { + { + switch (typeof type) { + case 'function': + { + // First, deal with classes. + if (type.prototype != null) { + if (type.prototype.isReactComponent) { + // React class. + return true; + } + var ownNames = Object.getOwnPropertyNames(type.prototype); + if (ownNames.length > 1 || ownNames[0] !== 'constructor') { + // This looks like a class. + return false; + } // eslint-disable-next-line no-proto - function patchConsoleForInitialRenderInStrictMode(_ref) { - var hideConsoleLogsInStrictMode = _ref.hideConsoleLogsInStrictMode, - browserTheme = _ref.browserTheme; - var overrideConsoleMethods = ['error', 'trace', 'warn', 'log']; - if (unpatchFn !== null) { - return; - } - var originalConsoleMethods = {}; - unpatchFn = function unpatchFn() { - for (var _method2 in originalConsoleMethods) { - try { - targetConsole[_method2] = originalConsoleMethods[_method2]; - } catch (error) {} - } - }; - overrideConsoleMethods.forEach(function (method) { - try { - var originalMethod = originalConsoleMethods[method] = targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ ? targetConsole[method].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ : targetConsole[method]; - var overrideMethod = function overrideMethod() { - if (!hideConsoleLogsInStrictMode) { - var color; - switch (method) { - case 'warn': - color = browserTheme === 'light' ? "rgba(250, 180, 50, 0.75)" : "rgba(250, 180, 50, 0.5)"; - break; - case 'error': - color = browserTheme === 'light' ? "rgba(250, 123, 130, 0.75)" : "rgba(250, 123, 130, 0.5)"; - break; - case 'log': + if (type.prototype.__proto__ !== Object.prototype) { + // It has a superclass. + return false; + } // Pass through. + // This looks like a regular function with empty prototype. + } // For plain functions and arrows, use name as a heuristic. + + var name = type.name || type.displayName; + return typeof name === 'string' && /^[A-Z]/.test(name); + } + case 'object': + { + if (type != null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + case REACT_MEMO_TYPE: + // Definitely React components. + return true; default: - color = browserTheme === 'light' ? "rgba(125, 125, 125, 0.75)" : "rgba(125, 125, 125, 0.5)"; - break; - } - if (color) { - originalMethod("%c".concat(format.apply(void 0, arguments)), "color: ".concat(color)); - } else { - throw Error('Console color is not defined'); + return false; } } - }; - overrideMethod.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__ = originalMethod; - originalMethod.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__ = overrideMethod; - - targetConsole[method] = overrideMethod; - } catch (error) {} - }); - } - - function unpatchConsoleForInitialRenderInStrictMode() { - if (unpatchFn !== null) { - unpatchFn(); - unpatchFn = null; + return false; + } + default: + { + return false; + } } } - var uidCounter = 0; - function inject(renderer) { - var id = ++uidCounter; - renderers.set(id, renderer); - var reactBuildType = hasDetectedBadDCE ? 'deadcode' : detectReactBuildType(renderer); + } + var ReactFreshRuntime = Object.freeze({ + performReactRefresh: performReactRefresh, + register: register, + setSignature: setSignature, + collectCustomHooksForSignature: collectCustomHooksForSignature, + getFamilyByID: getFamilyByID, + getFamilyByType: getFamilyByType, + findAffectedHostInstances: findAffectedHostInstances, + injectIntoGlobalHook: injectIntoGlobalHook, + hasUnrecoverableErrors: hasUnrecoverableErrors, + _getMountedRootCount: _getMountedRootCount, + createSignatureFunctionForTransform: createSignatureFunctionForTransform, + isLikelyComponentType: isLikelyComponentType + }); - if (true) { - try { - var appendComponentStack = window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ !== false; - var breakOnConsoleErrors = window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true; - var showInlineWarningsAndErrors = window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false; - var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; - var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; - - Object(backend_console["c"])(renderer); - Object(backend_console["a"])({ - appendComponentStack: appendComponentStack, - breakOnConsoleErrors: breakOnConsoleErrors, - showInlineWarningsAndErrors: showInlineWarningsAndErrors, - hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, - browserTheme: browserTheme - }); - } catch (error) {} - } + // This is hacky but makes it work with both Rollup and Jest. - var attach = target.__REACT_DEVTOOLS_ATTACH__; - if (typeof attach === 'function') { - var rendererInterface = attach(hook, id, renderer, target); - hook.rendererInterfaces.set(id, rendererInterface); - } - hook.emit('renderer', { - id: id, - renderer: renderer, - reactBuildType: reactBuildType - }); - return id; - } - var hasDetectedBadDCE = false; - function sub(event, fn) { - hook.on(event, fn); - return function () { - return hook.off(event, fn); - }; - } - function on(event, fn) { - if (!listeners[event]) { - listeners[event] = []; - } - listeners[event].push(fn); - } - function off(event, fn) { - if (!listeners[event]) { - return; - } - var index = listeners[event].indexOf(fn); - if (index !== -1) { - listeners[event].splice(index, 1); - } - if (!listeners[event].length) { - delete listeners[event]; - } - } - function emit(event, data) { - if (listeners[event]) { - listeners[event].map(function (fn) { - return fn(data); - }); - } - } - function getFiberRoots(rendererID) { - var roots = fiberRoots; - if (!roots[rendererID]) { - roots[rendererID] = new Set(); - } - return roots[rendererID]; - } - function onCommitFiberUnmount(rendererID, fiber) { - var rendererInterface = rendererInterfaces.get(rendererID); - if (rendererInterface != null) { - rendererInterface.handleCommitFiberUnmount(fiber); - } - } - function onCommitFiberRoot(rendererID, root, priorityLevel) { - var mountedRoots = hook.getFiberRoots(rendererID); - var current = root.current; - var isKnownRoot = mountedRoots.has(root); - var isUnmounting = current.memoizedState == null || current.memoizedState.element == null; + var runtime = ReactFreshRuntime.default || ReactFreshRuntime; + module.exports = runtime; + })(); + } +},214,[],"node_modules/react-refresh/cjs/react-refresh-runtime.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _BatchedBridge = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../BatchedBridge/BatchedBridge")); + var _BugReporting = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../BugReporting/BugReporting")); + var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/createPerformanceLogger")); + var _infoLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/infoLog")); + var _SceneTracker = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/SceneTracker")); + var _HeadlessJsTaskError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./HeadlessJsTaskError")); + var _NativeHeadlessJsTaskSupport = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./NativeHeadlessJsTaskSupport")); + var _renderApplication = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./renderApplication")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (!isKnownRoot && !isUnmounting) { - mountedRoots.add(root); - } else if (isKnownRoot && isUnmounting) { - mountedRoots.delete(root); - } - var rendererInterface = rendererInterfaces.get(rendererID); - if (rendererInterface != null) { - rendererInterface.handleCommitFiberRoot(root, priorityLevel); - } - } - function onPostCommitFiberRoot(rendererID, root) { - var rendererInterface = rendererInterfaces.get(rendererID); - if (rendererInterface != null) { - rendererInterface.handlePostCommitFiberRoot(root); - } - } - function setStrictMode(rendererID, isStrictMode) { - var rendererInterface = rendererInterfaces.get(rendererID); - if (rendererInterface != null) { - if (isStrictMode) { - rendererInterface.patchConsoleForStrictMode(); - } else { - rendererInterface.unpatchConsoleForStrictMode(); - } - } else { - if (isStrictMode) { - var hideConsoleLogsInStrictMode = window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true; - var browserTheme = window.__REACT_DEVTOOLS_BROWSER_THEME__; - patchConsoleForInitialRenderInStrictMode({ - hideConsoleLogsInStrictMode: hideConsoleLogsInStrictMode, - browserTheme: browserTheme - }); - } else { - unpatchConsoleForInitialRenderInStrictMode(); - } - } - } - var openModuleRangesStack = []; - var moduleRanges = []; - function getTopStackFrameString(error) { - var frames = error.stack.split('\n'); - var frame = frames.length > 1 ? frames[1] : null; - return frame; - } - function getInternalModuleRanges() { - return moduleRanges; - } - function registerInternalModuleStart(error) { - var startStackFrame = getTopStackFrameString(error); - if (startStackFrame !== null) { - openModuleRangesStack.push(startStackFrame); - } + var runnables = {}; + var runCount = 1; + var sections = {}; + var taskProviders = new Map(); + var taskCancelProviders = new Map(); + var componentProviderInstrumentationHook = function componentProviderInstrumentationHook(component) { + return component(); + }; + var wrapperComponentProvider; + var showArchitectureIndicator = false; + + /** + * `AppRegistry` is the JavaScript entry point to running all React Native apps. + * + * See https://reactnative.dev/docs/appregistry + */ + var AppRegistry = { + setWrapperComponentProvider: function setWrapperComponentProvider(provider) { + wrapperComponentProvider = provider; + }, + enableArchitectureIndicator: function enableArchitectureIndicator(enabled) { + showArchitectureIndicator = enabled; + }, + registerConfig: function registerConfig(config) { + config.forEach(function (appConfig) { + if (appConfig.run) { + AppRegistry.registerRunnable(appConfig.appKey, appConfig.run); + } else { + (0, _invariant.default)(appConfig.component != null, 'AppRegistry.registerConfig(...): Every config is expected to set ' + 'either `run` or `component`, but `%s` has neither.', appConfig.appKey); + AppRegistry.registerComponent(appConfig.appKey, appConfig.component, appConfig.section); } - function registerInternalModuleStop(error) { - if (openModuleRangesStack.length > 0) { - var startStackFrame = openModuleRangesStack.pop(); - var stopStackFrame = getTopStackFrameString(error); - if (stopStackFrame !== null) { - moduleRanges.push([startStackFrame, stopStackFrame]); - } - } + }); + }, + /** + * Registers an app's root component. + * + * See https://reactnative.dev/docs/appregistry#registercomponent + */ + registerComponent: function registerComponent(appKey, componentProvider, section) { + var scopedPerformanceLogger = (0, _createPerformanceLogger.default)(); + runnables[appKey] = { + componentProvider: componentProvider, + run: function run(appParameters, displayMode) { + var _appParameters$initia; + var concurrentRootEnabled = ((_appParameters$initia = appParameters.initialProps) == null ? void 0 : _appParameters$initia.concurrentRoot) || appParameters.concurrentRoot; + (0, _renderApplication.default)(componentProviderInstrumentationHook(componentProvider, scopedPerformanceLogger), appParameters.initialProps, appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric, showArchitectureIndicator, scopedPerformanceLogger, appKey === 'LogBox', appKey, (0, _$$_REQUIRE(_dependencyMap[10], "./DisplayMode").coerceDisplayMode)(displayMode), concurrentRootEnabled); } - - var fiberRoots = {}; - var rendererInterfaces = new Map(); - var listeners = {}; - var renderers = new Map(); - var hook = { - rendererInterfaces: rendererInterfaces, - listeners: listeners, - renderers: renderers, - emit: emit, - getFiberRoots: getFiberRoots, - inject: inject, - on: on, - off: off, - sub: sub, - supportsFiber: true, - checkDCE: checkDCE, - onCommitFiberUnmount: onCommitFiberUnmount, - onCommitFiberRoot: onCommitFiberRoot, - onPostCommitFiberRoot: onPostCommitFiberRoot, - setStrictMode: setStrictMode, - getInternalModuleRanges: getInternalModuleRanges, - registerInternalModuleStart: registerInternalModuleStart, - registerInternalModuleStop: registerInternalModuleStop - }; - if (false) {} - Object.defineProperty(target, '__REACT_DEVTOOLS_GLOBAL_HOOK__', { - configurable: false, - enumerable: false, - get: function get() { - return hook; - } - }); - return hook; - } - var backend_renderer = __webpack_require__(15); - - var types = __webpack_require__(1); - - var src_utils = __webpack_require__(2); - - function decorate(object, attr, fn) { - var old = object[attr]; - object[attr] = function (instance) { - return fn.call(this, old, arguments); - }; - return old; + }; + if (section) { + sections[appKey] = runnables[appKey]; } - function decorateMany(source, fns) { - var olds = {}; - for (var name in fns) { - olds[name] = decorate(source, name, fns[name]); - } - return olds; + return appKey; + }, + registerRunnable: function registerRunnable(appKey, run) { + runnables[appKey] = { + run: run + }; + return appKey; + }, + registerSection: function registerSection(appKey, component) { + AppRegistry.registerComponent(appKey, component, true); + }, + getAppKeys: function getAppKeys() { + return Object.keys(runnables); + }, + getSectionKeys: function getSectionKeys() { + return Object.keys(sections); + }, + getSections: function getSections() { + return Object.assign({}, sections); + }, + getRunnable: function getRunnable(appKey) { + return runnables[appKey]; + }, + getRegistry: function getRegistry() { + return { + sections: AppRegistry.getSectionKeys(), + runnables: Object.assign({}, runnables) + }; + }, + setComponentProviderInstrumentationHook: function setComponentProviderInstrumentationHook(hook) { + componentProviderInstrumentationHook = hook; + }, + /** + * Loads the JavaScript bundle and runs the app. + * + * See https://reactnative.dev/docs/appregistry#runapplication + */ + runApplication: function runApplication(appKey, appParameters, displayMode) { + if (appKey !== 'LogBox') { + var logParams = __DEV__ ? '" with ' + JSON.stringify(appParameters) : ''; + var msg = 'Running "' + appKey + logParams; + (0, _infoLog.default)(msg); + _BugReporting.default.addSource('AppRegistry.runApplication' + runCount++, function () { + return msg; + }); } - function restoreMany(source, olds) { - for (var name in olds) { - source[name] = olds[name]; - } + (0, _invariant.default)(runnables[appKey] && runnables[appKey].run, `"${appKey}" has not been registered. This can happen if:\n` + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); + _SceneTracker.default.setActiveScene({ + name: appKey + }); + runnables[appKey].run(appParameters, displayMode); + }, + /** + * Update initial props for a surface that's already rendered + */ + setSurfaceProps: function setSurfaceProps(appKey, appParameters, displayMode) { + if (appKey !== 'LogBox') { + var msg = 'Updating props for Surface "' + appKey + '" with ' + JSON.stringify(appParameters); + (0, _infoLog.default)(msg); + _BugReporting.default.addSource('AppRegistry.setSurfaceProps' + runCount++, function () { + return msg; + }); } - function forceUpdate(instance) { - if (typeof instance.forceUpdate === 'function') { - instance.forceUpdate(); - } else if (instance.updater != null && typeof instance.updater.enqueueForceUpdate === 'function') { - instance.updater.enqueueForceUpdate(this, function () {}, 'forceUpdate'); - } + (0, _invariant.default)(runnables[appKey] && runnables[appKey].run, `"${appKey}" has not been registered. This can happen if:\n` + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); + runnables[appKey].run(appParameters, displayMode); + }, + /** + * Stops an application when a view should be destroyed. + * + * See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag + */ + unmountApplicationComponentAtRootTag: function unmountApplicationComponentAtRootTag(rootTag) { + (0, _$$_REQUIRE(_dependencyMap[11], "./RendererProxy").unmountComponentAtNodeAndRemoveContainer)(rootTag); + }, + /** + * Register a headless task. A headless task is a bit of code that runs without a UI. + * + * See https://reactnative.dev/docs/appregistry#registerheadlesstask + */ + registerHeadlessTask: function registerHeadlessTask(taskKey, taskProvider) { + // $FlowFixMe[object-this-reference] + this.registerCancellableHeadlessTask(taskKey, taskProvider, function () { + return function () { + /* Cancel is no-op */ + }; + }); + }, + /** + * Register a cancellable headless task. A headless task is a bit of code that runs without a UI. + * + * See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask + */ + registerCancellableHeadlessTask: function registerCancellableHeadlessTask(taskKey, taskProvider, taskCancelProvider) { + if (taskProviders.has(taskKey)) { + console.warn(`registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '${taskKey}'`); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); + taskProviders.set(taskKey, taskProvider); + taskCancelProviders.set(taskKey, taskCancelProvider); + }, + /** + * Only called from native code. Starts a headless task. + * + * See https://reactnative.dev/docs/appregistry#startheadlesstask + */ + startHeadlessTask: function startHeadlessTask(taskId, taskKey, data) { + var taskProvider = taskProviders.get(taskKey); + if (!taskProvider) { + console.warn(`No task registered for key ${taskKey}`); + if (_NativeHeadlessJsTaskSupport.default) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); } - return keys; + return; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - renderer_defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } + taskProvider()(data).then(function () { + if (_NativeHeadlessJsTaskSupport.default) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); } - return target; - } - function renderer_defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true + }).catch(function (reason) { + console.error(reason); + if (_NativeHeadlessJsTaskSupport.default && reason instanceof _HeadlessJsTaskError.default) { + // $FlowFixMe[unused-promise] + _NativeHeadlessJsTaskSupport.default.notifyTaskRetry(taskId).then(function (retryPosted) { + if (!retryPosted) { + _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); + } }); - } else { - obj[key] = value; } - return obj; + }); + }, + /** + * Only called from native code. Cancels a headless task. + * + * See https://reactnative.dev/docs/appregistry#cancelheadlesstask + */ + cancelHeadlessTask: function cancelHeadlessTask(taskId, taskKey) { + var taskCancelProvider = taskCancelProviders.get(taskKey); + if (!taskCancelProvider) { + throw new Error(`No task canceller registered for key '${taskKey}'`); } - function renderer_typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - renderer_typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - renderer_typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return renderer_typeof(obj); + taskCancelProvider()(); + } + }; + if (!(global.RN$Bridgeless === true)) { + _BatchedBridge.default.registerCallableModule('AppRegistry', AppRegistry); + AppRegistry.registerComponent('LogBox', function () { + if (__DEV__) { + return _$$_REQUIRE(_dependencyMap[12], "../LogBox/LogBoxInspectorContainer").default; + } else { + return function NoOp() { + return null; + }; } + }); + } + module.exports = AppRegistry; +},215,[3,26,216,140,141,219,220,221,222,20,442,37,446],"node_modules/react-native/Libraries/ReactNative/AppRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../EventEmitter/RCTDeviceEventEmitter")); + var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeRedBox")); + var _NativeBugReporting = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeBugReporting")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function getData(internalInstance) { - var displayName = null; - var key = null; + function defaultExtras() { + BugReporting.addFileSource('react_hierarchy.txt', function () { + return _$$_REQUIRE(_dependencyMap[7], "./dumpReactTree")(); + }); + } - if (internalInstance._currentElement != null) { - if (internalInstance._currentElement.key) { - key = String(internalInstance._currentElement.key); - } - var elementType = internalInstance._currentElement.type; - if (typeof elementType === 'string') { - displayName = elementType; - } else if (typeof elementType === 'function') { - displayName = Object(src_utils["f"])(elementType); - } + /** + * A simple class for collecting bug report data. Components can add sources that will be queried when a bug report + * is created via `collectExtraData`. For example, a list component might add a source that provides the list of rows + * that are currently visible on screen. Components should also remember to call `remove()` on the object that is + * returned by `addSource` when they are unmounted. + */ + var BugReporting = /*#__PURE__*/function () { + function BugReporting() { + (0, _classCallCheck2.default)(this, BugReporting); + } + (0, _createClass2.default)(BugReporting, null, [{ + key: "_maybeInit", + value: function _maybeInit() { + if (!BugReporting._subscription) { + BugReporting._subscription = _RCTDeviceEventEmitter.default.addListener('collectBugExtraData', + // $FlowFixMe[method-unbinding] + BugReporting.collectExtraData, null); + defaultExtras(); } - return { - displayName: displayName, - key: key - }; - } - function getElementType(internalInstance) { - if (internalInstance._currentElement != null) { - var elementType = internalInstance._currentElement.type; - if (typeof elementType === 'function') { - var publicInstance = internalInstance.getPublicInstance(); - if (publicInstance !== null) { - return types["e"]; - } else { - return types["h"]; - } - } else if (typeof elementType === 'string') { - return types["i"]; - } + if (!BugReporting._redboxSubscription) { + BugReporting._redboxSubscription = _RCTDeviceEventEmitter.default.addListener('collectRedBoxExtraData', + // $FlowFixMe[method-unbinding] + BugReporting.collectExtraData, null); } - - return types["k"]; } - function getChildren(internalInstance) { - var children = []; - - if (renderer_typeof(internalInstance) !== 'object') { - } else if (internalInstance._currentElement === null || internalInstance._currentElement === false) { - } else if (internalInstance._renderedComponent) { - var child = internalInstance._renderedComponent; - if (getElementType(child) !== types["k"]) { - children.push(child); - } - } else if (internalInstance._renderedChildren) { - var renderedChildren = internalInstance._renderedChildren; - for (var name in renderedChildren) { - var _child = renderedChildren[name]; - if (getElementType(_child) !== types["k"]) { - children.push(_child); - } - } - } - - return children; + /** + * Maps a string key to a simple callback that should return a string payload to be attached + * to a bug report. Source callbacks are called when `collectExtraData` is called. + * + * Returns an object to remove the source when the component unmounts. + * + * Conflicts trample with a warning. + */ + }, { + key: "addSource", + value: function addSource(key, callback) { + return this._addSource(key, callback, BugReporting._extraSources); } - function renderer_attach(hook, rendererID, renderer, global) { - var idToInternalInstanceMap = new Map(); - var internalInstanceToIDMap = new WeakMap(); - var internalInstanceToRootIDMap = new WeakMap(); - var getInternalIDForNative = null; - var findNativeNodeForInternalID; - if (renderer.ComponentTree) { - getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { - var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node); - return internalInstanceToIDMap.get(internalInstance) || null; - }; - findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { - var internalInstance = idToInternalInstanceMap.get(id); - return renderer.ComponentTree.getNodeFromInstance(internalInstance); - }; - } else if (renderer.Mount.getID && renderer.Mount.getNode) { - getInternalIDForNative = function getInternalIDForNative(node, findNearestUnfilteredAncestor) { - return null; - }; - findNativeNodeForInternalID = function findNativeNodeForInternalID(id) { - return null; - }; - } - function getDisplayNameForFiberID(id) { - var internalInstance = idToInternalInstanceMap.get(id); - return internalInstance ? getData(internalInstance).displayName : null; - } - function getID(internalInstance) { - if (renderer_typeof(internalInstance) !== 'object' || internalInstance === null) { - throw new Error('Invalid internal instance: ' + internalInstance); - } - if (!internalInstanceToIDMap.has(internalInstance)) { - var _id = Object(src_utils["i"])(); - internalInstanceToIDMap.set(internalInstance, _id); - idToInternalInstanceMap.set(_id, internalInstance); - } - return internalInstanceToIDMap.get(internalInstance); + /** + * Maps a string key to a simple callback that should return a string payload to be attached + * to a bug report. Source callbacks are called when `collectExtraData` is called. + * + * Returns an object to remove the source when the component unmounts. + * + * Conflicts trample with a warning. + */ + }, { + key: "addFileSource", + value: function addFileSource(key, callback) { + return this._addSource(key, callback, BugReporting._fileSources); + } + }, { + key: "_addSource", + value: function _addSource(key, callback, source) { + BugReporting._maybeInit(); + if (source.has(key)) { + console.warn(`BugReporting.add* called multiple times for same key '${key}'`); } - function areEqualArrays(a, b) { - if (a.length !== b.length) { - return false; - } - for (var i = 0; i < a.length; i++) { - if (a[i] !== b[i]) { - return false; - } + source.set(key, callback); + return { + remove: function remove() { + source.delete(key); } - return true; - } - - var parentIDStack = []; - var oldReconcilerMethods = null; - if (renderer.Reconciler) { - oldReconcilerMethods = decorateMany(renderer.Reconciler, { - mountComponent: function mountComponent(fn, args) { - var internalInstance = args[0]; - var hostContainerInfo = args[3]; - if (getElementType(internalInstance) === types["k"]) { - return fn.apply(this, args); - } - if (hostContainerInfo._topLevelWrapper === undefined) { - return fn.apply(this, args); - } - var id = getID(internalInstance); - - var parentID = parentIDStack.length > 0 ? parentIDStack[parentIDStack.length - 1] : 0; - recordMount(internalInstance, id, parentID); - parentIDStack.push(id); - - internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper)); - try { - var result = fn.apply(this, args); - parentIDStack.pop(); - return result; - } catch (err) { - parentIDStack = []; - throw err; - } finally { - if (parentIDStack.length === 0) { - var rootID = internalInstanceToRootIDMap.get(internalInstance); - if (rootID === undefined) { - throw new Error('Expected to find root ID.'); - } - flushPendingEvents(rootID); - } - } - }, - performUpdateIfNecessary: function performUpdateIfNecessary(fn, args) { - var internalInstance = args[0]; - if (getElementType(internalInstance) === types["k"]) { - return fn.apply(this, args); - } - var id = getID(internalInstance); - parentIDStack.push(id); - var prevChildren = getChildren(internalInstance); - try { - var result = fn.apply(this, args); - var nextChildren = getChildren(internalInstance); - if (!areEqualArrays(prevChildren, nextChildren)) { - recordReorder(internalInstance, id, nextChildren); - } - parentIDStack.pop(); - return result; - } catch (err) { - parentIDStack = []; - throw err; - } finally { - if (parentIDStack.length === 0) { - var rootID = internalInstanceToRootIDMap.get(internalInstance); - if (rootID === undefined) { - throw new Error('Expected to find root ID.'); - } - flushPendingEvents(rootID); - } - } - }, - receiveComponent: function receiveComponent(fn, args) { - var internalInstance = args[0]; - if (getElementType(internalInstance) === types["k"]) { - return fn.apply(this, args); - } - var id = getID(internalInstance); - parentIDStack.push(id); - var prevChildren = getChildren(internalInstance); - try { - var result = fn.apply(this, args); - var nextChildren = getChildren(internalInstance); - if (!areEqualArrays(prevChildren, nextChildren)) { - recordReorder(internalInstance, id, nextChildren); - } - parentIDStack.pop(); - return result; - } catch (err) { - parentIDStack = []; - throw err; - } finally { - if (parentIDStack.length === 0) { - var rootID = internalInstanceToRootIDMap.get(internalInstance); - if (rootID === undefined) { - throw new Error('Expected to find root ID.'); - } - flushPendingEvents(rootID); - } - } - }, - unmountComponent: function unmountComponent(fn, args) { - var internalInstance = args[0]; - if (getElementType(internalInstance) === types["k"]) { - return fn.apply(this, args); - } - var id = getID(internalInstance); - parentIDStack.push(id); - try { - var result = fn.apply(this, args); - parentIDStack.pop(); + }; + } - recordUnmount(internalInstance, id); - return result; - } catch (err) { - parentIDStack = []; - throw err; - } finally { - if (parentIDStack.length === 0) { - var rootID = internalInstanceToRootIDMap.get(internalInstance); - if (rootID === undefined) { - throw new Error('Expected to find root ID.'); - } - flushPendingEvents(rootID); - } - } - } - }); + /** + * This can be called from a native bug reporting flow, or from JS code. + * + * If available, this will call `NativeModules.BugReporting.setExtraData(extraData)` + * after collecting `extraData`. + */ + }, { + key: "collectExtraData", + value: function collectExtraData() { + var extraData = {}; + for (var _ref of BugReporting._extraSources) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2); + var _key = _ref2[0]; + var callback = _ref2[1]; + extraData[_key] = callback(); } - function cleanup() { - if (oldReconcilerMethods !== null) { - if (renderer.Component) { - restoreMany(renderer.Component.Mixin, oldReconcilerMethods); - } else { - restoreMany(renderer.Reconciler, oldReconcilerMethods); - } - } - oldReconcilerMethods = null; + var fileData = {}; + for (var _ref3 of BugReporting._fileSources) { + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2); + var _key2 = _ref4[0]; + var _callback = _ref4[1]; + fileData[_key2] = _callback(); } - function recordMount(internalInstance, id, parentID) { - var isRoot = parentID === 0; - if (constants["s"]) { - console.log('%crecordMount()', 'color: green; font-weight: bold;', id, getData(internalInstance).displayName); - } - if (isRoot) { - var hasOwnerMetadata = internalInstance._currentElement != null && internalInstance._currentElement._owner != null; - pushOperation(constants["l"]); - pushOperation(id); - pushOperation(types["m"]); - pushOperation(0); - - pushOperation(0); - - pushOperation(0); - - pushOperation(hasOwnerMetadata ? 1 : 0); - } else { - var type = getElementType(internalInstance); - var _getData = getData(internalInstance), - displayName = _getData.displayName, - key = _getData.key; - var ownerID = internalInstance._currentElement != null && internalInstance._currentElement._owner != null ? getID(internalInstance._currentElement._owner) : 0; - var displayNameStringID = getStringID(displayName); - var keyStringID = getStringID(key); - pushOperation(constants["l"]); - pushOperation(id); - pushOperation(type); - pushOperation(parentID); - pushOperation(ownerID); - pushOperation(displayNameStringID); - pushOperation(keyStringID); - } - } - function recordReorder(internalInstance, id, nextChildren) { - pushOperation(constants["o"]); - pushOperation(id); - var nextChildIDs = nextChildren.map(getID); - pushOperation(nextChildIDs.length); - for (var i = 0; i < nextChildIDs.length; i++) { - pushOperation(nextChildIDs[i]); - } - } - function recordUnmount(internalInstance, id) { - pendingUnmountedIDs.push(id); - idToInternalInstanceMap.delete(id); - } - function crawlAndRecordInitialMounts(id, parentID, rootID) { - if (constants["s"]) { - console.group('crawlAndRecordInitialMounts() id:', id); - } - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance != null) { - internalInstanceToRootIDMap.set(internalInstance, rootID); - recordMount(internalInstance, id, parentID); - getChildren(internalInstance).forEach(function (child) { - return crawlAndRecordInitialMounts(getID(child), id, rootID); - }); - } - if (constants["s"]) { - console.groupEnd(); - } + if (_NativeBugReporting.default != null && _NativeBugReporting.default.setExtraData != null) { + _NativeBugReporting.default.setExtraData(extraData, fileData); } - function flushInitialOperations() { - var roots = renderer.Mount._instancesByReactRootID || renderer.Mount._instancesByContainerID; - for (var key in roots) { - var internalInstance = roots[key]; - var _id2 = getID(internalInstance); - crawlAndRecordInitialMounts(_id2, 0, _id2); - flushPendingEvents(_id2); - } + if (_NativeRedBox.default != null && _NativeRedBox.default.setExtraData != null) { + _NativeRedBox.default.setExtraData(extraData, 'From BugReporting.js'); } - var pendingOperations = []; - var pendingStringTable = new Map(); - var pendingUnmountedIDs = []; - var pendingStringTableLength = 0; - var pendingUnmountedRootID = null; - function flushPendingEvents(rootID) { - if (pendingOperations.length === 0 && pendingUnmountedIDs.length === 0 && pendingUnmountedRootID === null) { - return; - } - var numUnmountIDs = pendingUnmountedIDs.length + (pendingUnmountedRootID === null ? 0 : 1); - var operations = new Array( - 2 + - 1 + - pendingStringTableLength + ( - numUnmountIDs > 0 ? 2 + numUnmountIDs : 0) + - pendingOperations.length); - - var i = 0; - operations[i++] = rendererID; - operations[i++] = rootID; - - operations[i++] = pendingStringTableLength; - pendingStringTable.forEach(function (value, key) { - operations[i++] = key.length; - var encodedKey = Object(src_utils["m"])(key); - for (var j = 0; j < encodedKey.length; j++) { - operations[i + j] = encodedKey[j]; - } - i += key.length; - }); - if (numUnmountIDs > 0) { - operations[i++] = constants["m"]; + return { + extras: extraData, + files: fileData + }; + } + }]); + return BugReporting; + }(); + BugReporting._extraSources = new Map(); + BugReporting._fileSources = new Map(); + BugReporting._subscription = null; + BugReporting._redboxSubscription = null; + module.exports = BugReporting; +},216,[3,22,12,13,4,172,217,218],"node_modules/react-native/Libraries/BugReporting/BugReporting.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = TurboModuleRegistry.get('BugReporting'); + exports.default = _default; +},217,[19],"node_modules/react-native/Libraries/BugReporting/NativeBugReporting.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - operations[i++] = numUnmountIDs; + 'use strict'; - for (var j = 0; j < pendingUnmountedIDs.length; j++) { - operations[i++] = pendingUnmountedIDs[j]; - } + /* + const getReactData = require('getReactData'); + + const INDENTATION_SIZE = 2; + const MAX_DEPTH = 2; + const MAX_STRING_LENGTH = 50; + */ - if (pendingUnmountedRootID !== null) { - operations[i] = pendingUnmountedRootID; - i++; + /** + * Dump all React Native root views and their content. This function tries + * it best to get the content but ultimately relies on implementation details + * of React and will fail in future versions. + */ + function dumpReactTree() { + try { + return getReactTree(); + } catch (e) { + return 'Failed to dump react tree: ' + e; + } + } + function getReactTree() { + // TODO(sema): Reenable tree dumps using the Fiber tree structure. #15945684 + return 'React tree dumps have been temporarily disabled while React is ' + 'upgraded to Fiber.'; + /* + let output = ''; + const rootIds = Object.getOwnPropertyNames(ReactNativeMount._instancesByContainerID); + for (const rootId of rootIds) { + const instance = ReactNativeMount._instancesByContainerID[rootId]; + output += `============ Root ID: ${rootId} ============\n`; + output += dumpNode(instance, 0); + output += `============ End root ID: ${rootId} ============\n`; + } + return output; + */ + } + + /* + function dumpNode(node: Object, indentation: number) { + const data = getReactData(node); + if (data.nodeType === 'Text') { + return indent(indentation) + data.text + '\n'; + } else if (data.nodeType === 'Empty') { + return ''; + } + let output = indent(indentation) + `<${data.name}`; + if (data.nodeType === 'Composite') { + for (const propName of Object.getOwnPropertyNames(data.props || {})) { + if (isNormalProp(propName)) { + try { + const value = convertValue(data.props[propName]); + if (value) { + output += ` ${propName}=${value}`; } + } catch (e) { + const message = `[Failed to get property: ${e}]`; + output += ` ${propName}=${message}`; } - - for (var _j = 0; _j < pendingOperations.length; _j++) { - operations[i + _j] = pendingOperations[_j]; - } - i += pendingOperations.length; - if (constants["s"]) { - Object(src_utils["j"])(operations); - } - - hook.emit('operations', operations); - pendingOperations.length = 0; - pendingUnmountedIDs = []; - pendingUnmountedRootID = null; - pendingStringTable.clear(); - pendingStringTableLength = 0; - } - function pushOperation(op) { - if (false) {} - pendingOperations.push(op); - } - function getStringID(str) { - if (str === null) { - return 0; - } - var existingID = pendingStringTable.get(str); - if (existingID !== undefined) { - return existingID; - } - var stringID = pendingStringTable.size + 1; - pendingStringTable.set(str, stringID); - - pendingStringTableLength += str.length + 1; - return stringID; - } - var currentlyInspectedElementID = null; - var currentlyInspectedPaths = {}; - - function mergeInspectedPaths(path) { - var current = currentlyInspectedPaths; - path.forEach(function (key) { - if (!current[key]) { - current[key] = {}; - } - current = current[key]; - }); - } - function createIsPathAllowed(key) { - return function isPathAllowed(path) { - var current = currentlyInspectedPaths[key]; - if (!current) { - return false; - } - for (var i = 0; i < path.length; i++) { - current = current[path[i]]; - if (!current) { - return false; - } - } - return true; - }; } + } + } + let childOutput = ''; + for (const child of data.children || []) { + childOutput += dumpNode(child, indentation + 1); + } + + if (childOutput) { + output += '>\n' + childOutput + indent(indentation) + `\n`; + } else { + output += ' />\n'; + } + + return output; + } + + function isNormalProp(name: string): boolean { + switch (name) { + case 'children': + case 'key': + case 'ref': + return false; + default: + return true; + } + } + + function convertObject(object: Object, depth: number) { + if (depth >= MAX_DEPTH) { + return '[...omitted]'; + } + let output = '{'; + let first = true; + for (const key of Object.getOwnPropertyNames(object)) { + if (!first) { + output += ', '; + } + output += `${key}: ${convertValue(object[key], depth + 1)}`; + first = false; + } + return output + '}'; + } + + function convertValue(value, depth = 0): ?string { + if (!value) { + return null; + } + + switch (typeof value) { + case 'string': + return JSON.stringify(possiblyEllipsis(value).replace('\n', '\\n')); + case 'boolean': + case 'number': + return JSON.stringify(value); + case 'function': + return '[function]'; + case 'object': + return convertObject(value, depth); + default: + return null; + } + } + + function possiblyEllipsis(value: string) { + if (value.length > MAX_STRING_LENGTH) { + return value.slice(0, MAX_STRING_LENGTH) + '...'; + } else { + return value; + } + } + + function indent(size: number) { + return ' '.repeat(size * INDENTATION_SIZE); + } + */ - function getInstanceAndStyle(id) { - var instance = null; - var style = null; - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance != null) { - instance = internalInstance._instance || null; - var element = internalInstance._currentElement; - if (element != null && element.props != null) { - style = element.props.style || null; - } - } - return { - instance: instance, - style: style - }; - } - function updateSelectedElement(id) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance == null) { - console.warn("Could not find instance with id \"".concat(id, "\"")); - return; - } - switch (getElementType(internalInstance)) { - case types["e"]: - global.$r = internalInstance._instance; - break; - case types["h"]: - var element = internalInstance._currentElement; - if (element == null) { - console.warn("Could not find element with id \"".concat(id, "\"")); - return; - } - global.$r = { - props: element.props, - type: element.type - }; - break; - default: - global.$r = null; - break; - } - } - function storeAsGlobal(id, path, count) { - var inspectedElement = inspectElementRaw(id); - if (inspectedElement !== null) { - var value = Object(src_utils["h"])(inspectedElement, path); - var key = "$reactTemp".concat(count); - window[key] = value; - console.log(key); - console.log(value); - } - } - function copyElementPath(id, path) { - var inspectedElement = inspectElementRaw(id); - if (inspectedElement !== null) { - Object(utils["b"])(Object(src_utils["h"])(inspectedElement, path)); - } - } - function inspectElement(requestID, id, path, forceFullData) { - if (forceFullData || currentlyInspectedElementID !== id) { - currentlyInspectedElementID = id; - currentlyInspectedPaths = {}; - } - var inspectedElement = inspectElementRaw(id); - if (inspectedElement === null) { - return { - id: id, - responseID: requestID, - type: 'not-found' - }; - } - if (path !== null) { - mergeInspectedPaths(path); - } + module.exports = dumpReactTree; +},218,[],"node_modules/react-native/Libraries/BugReporting/dumpReactTree.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - updateSelectedElement(id); - inspectedElement.context = Object(utils["a"])(inspectedElement.context, createIsPathAllowed('context')); - inspectedElement.props = Object(utils["a"])(inspectedElement.props, createIsPathAllowed('props')); - inspectedElement.state = Object(utils["a"])(inspectedElement.state, createIsPathAllowed('state')); - return { - id: id, - responseID: requestID, - type: 'full-data', - value: inspectedElement - }; - } - function inspectElementRaw(id) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance == null) { - return null; - } - var _getData2 = getData(internalInstance), - displayName = _getData2.displayName, - key = _getData2.key; - var type = getElementType(internalInstance); - var context = null; - var owners = null; - var props = null; - var state = null; - var source = null; - var element = internalInstance._currentElement; - if (element !== null) { - props = element.props; - source = element._source != null ? element._source : null; - var owner = element._owner; - if (owner) { - owners = []; - while (owner != null) { - owners.push({ - displayName: getData(owner).displayName || 'Unknown', - id: getID(owner), - key: element.key, - type: getElementType(owner) - }); - if (owner._currentElement) { - owner = owner._currentElement._owner; - } - } - } - } - var publicInstance = internalInstance._instance; - if (publicInstance != null) { - context = publicInstance.context || null; - state = publicInstance.state || null; - } + 'use strict'; - var errors = []; - var warnings = []; - return { - id: id, - canEditHooks: false, - canEditFunctionProps: false, - canEditHooksAndDeletePaths: false, - canEditHooksAndRenamePaths: false, - canEditFunctionPropsDeletePaths: false, - canEditFunctionPropsRenamePaths: false, - canToggleError: false, - isErrored: false, - targetErrorBoundaryID: null, - canToggleSuspense: false, - canViewSource: type === types["e"] || type === types["h"], - - hasLegacyContext: true, - displayName: displayName, - type: type, - key: key != null ? key : null, - context: context, - hooks: null, - props: props, - state: state, - errors: errors, - warnings: warnings, - owners: owners, - source: source, - rootType: null, - rendererPackageName: null, - rendererVersion: null, - plugins: { - stylex: null - } - }; - } - function logElementToConsole(id) { - var result = inspectElementRaw(id); - if (result === null) { - console.warn("Could not find element with id \"".concat(id, "\"")); - return; - } - var supportsGroup = typeof console.groupCollapsed === 'function'; - if (supportsGroup) { - console.groupCollapsed("[Click to expand] %c<".concat(result.displayName || 'Component', " />"), - 'color: var(--dom-tag-name-color); font-weight: normal;'); - } - if (result.props !== null) { - console.log('Props:', result.props); - } - if (result.state !== null) { - console.log('State:', result.state); - } - if (result.context !== null) { - console.log('Context:', result.context); - } - var nativeNode = findNativeNodeForInternalID(id); - if (nativeNode !== null) { - console.log('Node:', nativeNode); - } - if (window.chrome || /firefox/i.test(navigator.userAgent)) { - console.log('Right-click any value to save it as a global variable for further inspection.'); - } - if (supportsGroup) { - console.groupEnd(); - } + var _listeners = []; + var _activeScene = { + name: 'default' + }; + var SceneTracker = { + setActiveScene: function setActiveScene(scene) { + _activeScene = scene; + _listeners.forEach(function (listener) { + return listener(_activeScene); + }); + }, + getActiveScene: function getActiveScene() { + return _activeScene; + }, + addActiveSceneChangedListener: function addActiveSceneChangedListener(callback) { + _listeners.push(callback); + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); } - function prepareViewAttributeSource(id, path) { - var inspectedElement = inspectElementRaw(id); - if (inspectedElement !== null) { - window.$attribute = Object(src_utils["h"])(inspectedElement, path); - } - } - function prepareViewElementSource(id) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance == null) { - console.warn("Could not find instance with id \"".concat(id, "\"")); - return; - } - var element = internalInstance._currentElement; - if (element == null) { - console.warn("Could not find element with id \"".concat(id, "\"")); - return; - } - global.$type = element.type; - } - function deletePath(type, id, hookID, path) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance != null) { - var publicInstance = internalInstance._instance; - if (publicInstance != null) { - switch (type) { - case 'context': - Object(src_utils["a"])(publicInstance.context, path); - forceUpdate(publicInstance); - break; - case 'hooks': - throw new Error('Hooks not supported by this renderer'); - case 'props': - var element = internalInstance._currentElement; - internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { - props: Object(utils["c"])(element.props, path) + }; + } + }; + module.exports = SceneTracker; +},219,[],"node_modules/react-native/Libraries/Utilities/SceneTracker.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/wrapNativeSuper")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var HeadlessJsTaskError = /*#__PURE__*/function (_Error) { + (0, _inherits2.default)(HeadlessJsTaskError, _Error); + var _super = _createSuper(HeadlessJsTaskError); + function HeadlessJsTaskError() { + (0, _classCallCheck2.default)(this, HeadlessJsTaskError); + return _super.apply(this, arguments); + } + return (0, _createClass2.default)(HeadlessJsTaskError); + }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); + exports.default = HeadlessJsTaskError; +},220,[3,13,12,49,51,53,68],"node_modules/react-native/Libraries/ReactNative/HeadlessJsTaskError.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('HeadlessJsTaskSupport'); + exports.default = _default; +},221,[19],"node_modules/react-native/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = renderApplication; + var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/GlobalPerformanceLogger")); + var _PerformanceLoggerContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/PerformanceLoggerContext")); + var _AppContainer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./AppContainer")); + var _DisplayMode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./DisplayMode")); + var _getCachedComponentWithDebugName = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./getCachedComponentWithDebugName")); + var Renderer = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "./RendererProxy")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + _$$_REQUIRE(_dependencyMap[9], "../Utilities/BackHandler"); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/ReactNative/renderApplication.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + // require BackHandler so it sets the default handler that exits the app if no listeners respond + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function renderApplication(RootComponent, initialProps, rootTag, WrapperComponent, fabric, showArchitectureIndicator, scopedPerformanceLogger, isLogBox, debugName, displayMode, useConcurrentRoot, useOffscreen) { + (0, _invariant.default)(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); + var performanceLogger = scopedPerformanceLogger != null ? scopedPerformanceLogger : _GlobalPerformanceLogger.default; + var renderable = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_PerformanceLoggerContext.default.Provider, { + value: performanceLogger, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_AppContainer.default, { + rootTag: rootTag, + fabric: fabric, + showArchitectureIndicator: showArchitectureIndicator, + WrapperComponent: WrapperComponent, + initialProps: initialProps != null ? initialProps : Object.freeze({}), + internal_excludeLogBox: isLogBox, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(RootComponent, Object.assign({}, initialProps, { + rootTag: rootTag + })) + }) + }); + if (__DEV__ && debugName) { + var RootComponentWithMeaningfulName = (0, _getCachedComponentWithDebugName.default)(`${debugName}(RootComponent)`); + renderable = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(RootComponentWithMeaningfulName, { + children: renderable + }); + } + if (useOffscreen && displayMode != null) { + // $FlowFixMe[incompatible-type] + // $FlowFixMe[prop-missing] + var Offscreen = React.unstable_Offscreen; + renderable = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(Offscreen, { + mode: displayMode === _DisplayMode.default.VISIBLE ? 'visible' : 'hidden', + children: renderable + }); + } + performanceLogger.startTimespan('renderApplication_React_render'); + performanceLogger.setExtra('usedReactConcurrentRoot', useConcurrentRoot ? '1' : '0'); + performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0'); + performanceLogger.setExtra('usedReactProfiler', Renderer.isProfilingRenderer()); + Renderer.renderElement({ + element: renderable, + rootTag: rootTag, + useFabric: Boolean(fabric), + useConcurrentRoot: Boolean(useConcurrentRoot) + }); + performanceLogger.stopTimespan('renderApplication_React_render'); + } +},222,[3,138,223,224,442,443,37,20,41,444,89],"node_modules/react-native/Libraries/ReactNative/renderApplication.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + exports.usePerformanceLogger = usePerformanceLogger; + var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./GlobalPerformanceLogger")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * This is a React Context that provides a scoped instance of IPerformanceLogger. + * We wrap every with a Provider for this context so the logger + * should be available in every component. + * See React docs about using Context: https://reactjs.org/docs/context.html + */ + var PerformanceLoggerContext = React.createContext(_GlobalPerformanceLogger.default); + if (__DEV__) { + PerformanceLoggerContext.displayName = 'PerformanceLoggerContext'; + } + function usePerformanceLogger() { + return (0, React.useContext)(PerformanceLoggerContext); + } + var _default = PerformanceLoggerContext; + exports.default = _default; +},223,[3,138,41],"node_modules/react-native/Libraries/Utilities/PerformanceLoggerContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Components/View/View")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTDeviceEventEmitter")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../StyleSheet/StyleSheet")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/ReactNative/AppContainer.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var AppContainer = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(AppContainer, _React$Component); + var _super = _createSuper(AppContainer); + function AppContainer() { + var _this; + (0, _classCallCheck2.default)(this, AppContainer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + inspector: null, + devtoolsOverlay: null, + traceUpdateOverlay: null, + mainKey: 1, + hasError: false + }; + _this._subscription = null; + return _this; + } + (0, _createClass2.default)(AppContainer, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + if (__DEV__) { + if (!this.props.internal_excludeInspector) { + this._subscription = _RCTDeviceEventEmitter.default.addListener('toggleElementInspector', function () { + var Inspector = _$$_REQUIRE(_dependencyMap[10], "../Inspector/Inspector"); + var inspector = _this2.state.inspector ? null : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Inspector, { + inspectedView: _this2._mainRef, + onRequestRerenderApp: function onRequestRerenderApp(updateInspectedView) { + _this2.setState(function (s) { + return { + mainKey: s.mainKey + 1 + }; + }, function () { + return updateInspectedView(_this2._mainRef); }); - forceUpdate(publicInstance); - break; - case 'state': - Object(src_utils["a"])(publicInstance.state, path); - forceUpdate(publicInstance); - break; - } + } + }); + _this2.setState({ + inspector: inspector + }); + }); + if (window.__REACT_DEVTOOLS_GLOBAL_HOOK__ != null) { + var DevtoolsOverlay = _$$_REQUIRE(_dependencyMap[12], "../Inspector/DevtoolsOverlay").default; + var devtoolsOverlay = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(DevtoolsOverlay, { + inspectedView: this._mainRef + }); + var TraceUpdateOverlay = _$$_REQUIRE(_dependencyMap[13], "../Components/TraceUpdateOverlay/TraceUpdateOverlay").default; + var traceUpdateOverlay = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(TraceUpdateOverlay, {}); + this.setState({ + devtoolsOverlay: devtoolsOverlay, + traceUpdateOverlay: traceUpdateOverlay + }); } } } - function renamePath(type, id, hookID, oldPath, newPath) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance != null) { - var publicInstance = internalInstance._instance; - if (publicInstance != null) { - switch (type) { - case 'context': - Object(src_utils["k"])(publicInstance.context, oldPath, newPath); - forceUpdate(publicInstance); - break; - case 'hooks': - throw new Error('Hooks not supported by this renderer'); - case 'props': - var element = internalInstance._currentElement; - internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { - props: Object(utils["d"])(element.props, oldPath, newPath) - }); - forceUpdate(publicInstance); - break; - case 'state': - Object(src_utils["k"])(publicInstance.state, oldPath, newPath); - forceUpdate(publicInstance); - break; - } - } - } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscription != null) { + this._subscription.remove(); } - function overrideValueAtPath(type, id, hookID, path, value) { - var internalInstance = idToInternalInstanceMap.get(id); - if (internalInstance != null) { - var publicInstance = internalInstance._instance; - if (publicInstance != null) { - switch (type) { - case 'context': - Object(src_utils["l"])(publicInstance.context, path, value); - forceUpdate(publicInstance); - break; - case 'hooks': - throw new Error('Hooks not supported by this renderer'); - case 'props': - var element = internalInstance._currentElement; - internalInstance._currentElement = _objectSpread(_objectSpread({}, element), {}, { - props: Object(utils["e"])(element.props, path, value) - }); - forceUpdate(publicInstance); - break; - case 'state': - Object(src_utils["l"])(publicInstance.state, path, value); - forceUpdate(publicInstance); - break; - } - } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + var logBox = null; + if (__DEV__) { + if (!this.props.internal_excludeLogBox) { + var LogBoxNotificationContainer = _$$_REQUIRE(_dependencyMap[14], "../LogBox/LogBoxNotificationContainer").default; + logBox = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(LogBoxNotificationContainer, {}); } } - - var getProfilingData = function getProfilingData() { - throw new Error('getProfilingData not supported by this renderer'); - }; - var handleCommitFiberRoot = function handleCommitFiberRoot() { - throw new Error('handleCommitFiberRoot not supported by this renderer'); - }; - var handleCommitFiberUnmount = function handleCommitFiberUnmount() { - throw new Error('handleCommitFiberUnmount not supported by this renderer'); - }; - var handlePostCommitFiberRoot = function handlePostCommitFiberRoot() { - throw new Error('handlePostCommitFiberRoot not supported by this renderer'); - }; - var overrideError = function overrideError() { - throw new Error('overrideError not supported by this renderer'); - }; - var overrideSuspense = function overrideSuspense() { - throw new Error('overrideSuspense not supported by this renderer'); - }; - var startProfiling = function startProfiling() { - }; - var stopProfiling = function stopProfiling() { - }; - function getBestMatchForTrackedPath() { - return null; - } - function getPathForElement(id) { - return null; - } - function updateComponentFilters(componentFilters) { - } - function setTraceUpdatesEnabled(enabled) { - } - function setTrackedPath(path) { - } - function getOwnersList(id) { - return null; - } - function clearErrorsAndWarnings() { - } - function clearErrorsForFiberID(id) { - } - function clearWarningsForFiberID(id) { + var innerView = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + collapsable: !this.state.inspector && !this.state.devtoolsOverlay, + pointerEvents: "box-none", + style: styles.appContainer, + ref: function ref(_ref) { + _this3._mainRef = _ref; + }, + children: this.props.children + }, this.state.mainKey); + var Wrapper = this.props.WrapperComponent; + if (Wrapper != null) { + innerView = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Wrapper, { + initialProps: this.props.initialProps, + fabric: this.props.fabric === true, + showArchitectureIndicator: this.props.showArchitectureIndicator === true, + children: innerView + }); } - function patchConsoleForStrictMode() {} - function unpatchConsoleForStrictMode() {} - return { - clearErrorsAndWarnings: clearErrorsAndWarnings, - clearErrorsForFiberID: clearErrorsForFiberID, - clearWarningsForFiberID: clearWarningsForFiberID, - cleanup: cleanup, - copyElementPath: copyElementPath, - deletePath: deletePath, - flushInitialOperations: flushInitialOperations, - getBestMatchForTrackedPath: getBestMatchForTrackedPath, - getDisplayNameForFiberID: getDisplayNameForFiberID, - getFiberIDForNative: getInternalIDForNative, - getInstanceAndStyle: getInstanceAndStyle, - findNativeNodesForFiberID: function findNativeNodesForFiberID(id) { - var nativeNode = findNativeNodeForInternalID(id); - return nativeNode == null ? null : [nativeNode]; - }, - getOwnersList: getOwnersList, - getPathForElement: getPathForElement, - getProfilingData: getProfilingData, - handleCommitFiberRoot: handleCommitFiberRoot, - handleCommitFiberUnmount: handleCommitFiberUnmount, - handlePostCommitFiberRoot: handlePostCommitFiberRoot, - inspectElement: inspectElement, - logElementToConsole: logElementToConsole, - overrideError: overrideError, - overrideSuspense: overrideSuspense, - overrideValueAtPath: overrideValueAtPath, - renamePath: renamePath, - patchConsoleForStrictMode: patchConsoleForStrictMode, - prepareViewAttributeSource: prepareViewAttributeSource, - prepareViewElementSource: prepareViewElementSource, - renderer: renderer, - setTraceUpdatesEnabled: setTraceUpdatesEnabled, - setTrackedPath: setTrackedPath, - startProfiling: startProfiling, - stopProfiling: stopProfiling, - storeAsGlobal: storeAsGlobal, - unpatchConsoleForStrictMode: unpatchConsoleForStrictMode, - updateComponentFilters: updateComponentFilters - }; - } - - function initBackend(hook, agent, global) { - if (hook == null) { - return function () {}; - } - var subs = [hook.sub('renderer-attached', function (_ref) { - var id = _ref.id, - renderer = _ref.renderer, - rendererInterface = _ref.rendererInterface; - agent.setRendererInterface(id, rendererInterface); - - rendererInterface.flushInitialOperations(); - }), hook.sub('unsupported-renderer-version', function (id) { - agent.onUnsupportedRenderer(id); - }), hook.sub('fastRefreshScheduled', agent.onFastRefreshScheduled), hook.sub('operations', agent.onHookOperations), hook.sub('traceUpdates', agent.onTraceUpdates)]; - - var attachRenderer = function attachRenderer(id, renderer) { - var rendererInterface = hook.rendererInterfaces.get(id); - - if (rendererInterface == null) { - if (typeof renderer.findFiberByHostInstance === 'function') { - rendererInterface = Object(backend_renderer["a"])(hook, id, renderer, global); - } else if (renderer.ComponentTree) { - rendererInterface = renderer_attach(hook, id, renderer, global); - } else { - } - if (rendererInterface != null) { - hook.rendererInterfaces.set(id, rendererInterface); - } - } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[15], "./RootTag").RootTagContext.Provider, { + value: (0, _$$_REQUIRE(_dependencyMap[15], "./RootTag").createRootTag)(this.props.rootTag), + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.appContainer, + pointerEvents: "box-none", + children: [!this.state.hasError && innerView, this.state.traceUpdateOverlay, this.state.devtoolsOverlay, this.state.inspector, logBox] + }) + }); + } + }]); + return AppContainer; + }(React.Component); + AppContainer.getDerivedStateFromError = undefined; + var styles = _StyleSheet.default.create({ + appContainer: { + flex: 1 + } + }); + module.exports = AppContainer; +},224,[3,12,13,49,51,53,225,4,259,41,260,89,428,429,431,441],"node_modules/react-native/Libraries/ReactNative/AppContainer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/flattenStyle")); + var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/TextAncestor")); + var _ViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./ViewNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "react")); + var _excluded = ["accessibilityElementsHidden", "accessibilityLabel", "accessibilityLabelledBy", "accessibilityLiveRegion", "accessibilityRole", "accessibilityState", "accessibilityValue", "aria-busy", "aria-checked", "aria-disabled", "aria-expanded", "aria-hidden", "aria-label", "aria-labelledby", "aria-live", "aria-selected", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "focusable", "id", "importantForAccessibility", "nativeID", "pointerEvents", "role", "tabIndex"]; + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/View/View.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * The most fundamental component for building a UI, View is a container that + * supports layout with flexbox, style, some touch handling, and accessibility + * controls. + * + * @see https://reactnative.dev/docs/view + */ + var View = React.forwardRef(function (_ref, forwardedRef) { + var _ariaLabelledBy$split; + var accessibilityElementsHidden = _ref.accessibilityElementsHidden, + accessibilityLabel = _ref.accessibilityLabel, + accessibilityLabelledBy = _ref.accessibilityLabelledBy, + accessibilityLiveRegion = _ref.accessibilityLiveRegion, + accessibilityRole = _ref.accessibilityRole, + accessibilityState = _ref.accessibilityState, + accessibilityValue = _ref.accessibilityValue, + ariaBusy = _ref['aria-busy'], + ariaChecked = _ref['aria-checked'], + ariaDisabled = _ref['aria-disabled'], + ariaExpanded = _ref['aria-expanded'], + ariaHidden = _ref['aria-hidden'], + ariaLabel = _ref['aria-label'], + ariaLabelledBy = _ref['aria-labelledby'], + ariaLive = _ref['aria-live'], + ariaSelected = _ref['aria-selected'], + ariaValueMax = _ref['aria-valuemax'], + ariaValueMin = _ref['aria-valuemin'], + ariaValueNow = _ref['aria-valuenow'], + ariaValueText = _ref['aria-valuetext'], + focusable = _ref.focusable, + id = _ref.id, + importantForAccessibility = _ref.importantForAccessibility, + nativeID = _ref.nativeID, + pointerEvents = _ref.pointerEvents, + role = _ref.role, + tabIndex = _ref.tabIndex, + otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var _accessibilityLabelledBy = (_ariaLabelledBy$split = ariaLabelledBy == null ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) != null ? _ariaLabelledBy$split : accessibilityLabelledBy; + var _accessibilityState; + if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) { + _accessibilityState = { + busy: ariaBusy != null ? ariaBusy : accessibilityState == null ? void 0 : accessibilityState.busy, + checked: ariaChecked != null ? ariaChecked : accessibilityState == null ? void 0 : accessibilityState.checked, + disabled: ariaDisabled != null ? ariaDisabled : accessibilityState == null ? void 0 : accessibilityState.disabled, + expanded: ariaExpanded != null ? ariaExpanded : accessibilityState == null ? void 0 : accessibilityState.expanded, + selected: ariaSelected != null ? ariaSelected : accessibilityState == null ? void 0 : accessibilityState.selected + }; + } + var _accessibilityValue; + if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) { + _accessibilityValue = { + max: ariaValueMax != null ? ariaValueMax : accessibilityValue == null ? void 0 : accessibilityValue.max, + min: ariaValueMin != null ? ariaValueMin : accessibilityValue == null ? void 0 : accessibilityValue.min, + now: ariaValueNow != null ? ariaValueNow : accessibilityValue == null ? void 0 : accessibilityValue.now, + text: ariaValueText != null ? ariaValueText : accessibilityValue == null ? void 0 : accessibilityValue.text + }; + } - if (rendererInterface != null) { - hook.emit('renderer-attached', { - id: id, - renderer: renderer, - rendererInterface: rendererInterface - }); - } else { - hook.emit('unsupported-renderer-version', id); - } - }; + // $FlowFixMe[underconstrained-implicit-instantiation] + var style = (0, _flattenStyle.default)(otherProps.style); + var newPointerEvents = (style == null ? void 0 : style.pointerEvents) || pointerEvents; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { + value: false, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_ViewNativeComponent.default, Object.assign({}, otherProps, { + accessibilityLiveRegion: ariaLive === 'off' ? 'none' : ariaLive != null ? ariaLive : accessibilityLiveRegion, + accessibilityLabel: ariaLabel != null ? ariaLabel : accessibilityLabel, + focusable: tabIndex !== undefined ? !tabIndex : focusable, + accessibilityState: _accessibilityState, + accessibilityRole: role ? (0, _$$_REQUIRE(_dependencyMap[7], "../../Utilities/AcessibilityMapping").getAccessibilityRoleFromRole)(role) : accessibilityRole, + accessibilityElementsHidden: ariaHidden != null ? ariaHidden : accessibilityElementsHidden, + accessibilityLabelledBy: _accessibilityLabelledBy, + accessibilityValue: _accessibilityValue, + importantForAccessibility: ariaHidden === true ? 'no-hide-descendants' : importantForAccessibility, + nativeID: id != null ? id : nativeID, + style: style, + pointerEvents: newPointerEvents, + ref: forwardedRef + })) + }); + }); + View.displayName = 'View'; + module.exports = View; +},225,[3,149,207,226,227,41,89,258],"node_modules/react-native/Libraries/Components/View/View.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - hook.renderers.forEach(function (renderer, id) { - attachRenderer(id, renderer); - }); + 'use strict'; - subs.push(hook.sub('renderer', function (_ref2) { - var id = _ref2.id, - renderer = _ref2.renderer; - attachRenderer(id, renderer); - })); - hook.emit('react-devtools', agent); - hook.reactDevtoolsAgent = agent; - var onAgentShutdown = function onAgentShutdown() { - subs.forEach(function (fn) { - return fn(); - }); - hook.rendererInterfaces.forEach(function (rendererInterface) { - rendererInterface.cleanup(); - }); - hook.reactDevtoolsAgent = null; - }; - agent.addListener('shutdown', onAgentShutdown); - subs.push(function () { - agent.removeListener('shutdown', onAgentShutdown); - }); - return function () { - subs.forEach(function (fn) { - return fn(); - }); - }; - } + var React = _$$_REQUIRE(_dependencyMap[0], "react"); - function resolveBoxStyle(prefix, style) { - var hasParts = false; - var result = { - bottom: 0, - left: 0, - right: 0, - top: 0 - }; - var styleForAll = style[prefix]; - if (styleForAll != null) { - for (var _i = 0, _Object$keys = Object.keys(result); _i < _Object$keys.length; _i++) { - var key = _Object$keys[_i]; - result[key] = styleForAll; - } - hasParts = true; - } - var styleForHorizontal = style[prefix + 'Horizontal']; - if (styleForHorizontal != null) { - result.left = styleForHorizontal; - result.right = styleForHorizontal; - hasParts = true; - } else { - var styleForLeft = style[prefix + 'Left']; - if (styleForLeft != null) { - result.left = styleForLeft; - hasParts = true; - } - var styleForRight = style[prefix + 'Right']; - if (styleForRight != null) { - result.right = styleForRight; - hasParts = true; - } - var styleForEnd = style[prefix + 'End']; - if (styleForEnd != null) { - result.right = styleForEnd; - hasParts = true; - } - var styleForStart = style[prefix + 'Start']; - if (styleForStart != null) { - result.left = styleForStart; - hasParts = true; + /** + * Whether the current element is the descendant of a element. + */ + var TextAncestorContext = React.createContext(false); + if (__DEV__) { + TextAncestorContext.displayName = 'TextAncestorContext'; + } + module.exports = TextAncestorContext; +},226,[41],"node_modules/react-native/Libraries/Text/TextAncestor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeCommands")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTView', + validAttributes: { + // ReactClippingViewManager @ReactProps + removeClippedSubviews: true, + // ReactViewManager @ReactProps + accessible: true, + hasTVPreferredFocus: true, + nextFocusDown: true, + nextFocusForward: true, + nextFocusLeft: true, + nextFocusRight: true, + nextFocusUp: true, + borderRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderBottomRightRadius: true, + borderBottomLeftRadius: true, + borderTopStartRadius: true, + borderTopEndRadius: true, + borderBottomStartRadius: true, + borderBottomEndRadius: true, + borderEndEndRadius: true, + borderEndStartRadius: true, + borderStartEndRadius: true, + borderStartStartRadius: true, + borderStyle: true, + hitSlop: true, + pointerEvents: true, + nativeBackgroundAndroid: true, + nativeForegroundAndroid: true, + needsOffscreenAlphaCompositing: true, + borderWidth: true, + borderLeftWidth: true, + borderRightWidth: true, + borderTopWidth: true, + borderBottomWidth: true, + borderStartWidth: true, + borderEndWidth: true, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderStartColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderEndColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderBlockColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderBlockEndColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + borderBlockStartColor: { + process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor").default + }, + focusable: true, + overflow: true, + backfaceVisibility: true + } + } : { + uiViewClassName: 'RCTView' + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ViewNativeComponent = NativeComponentRegistry.get('RCTView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['hotspotUpdate', 'setPressed'] + }); + exports.Commands = Commands; + var _default = ViewNativeComponent; + exports.default = _default; +},227,[228,3,257,17,41,174],"node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.get = get; + exports.getWithFallback_DEPRECATED = getWithFallback_DEPRECATED; + exports.setRuntimeConfigProvider = setRuntimeConfigProvider; + exports.unstable_hasStaticViewConfig = unstable_hasStaticViewConfig; + var _getNativeComponentAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../ReactNative/getNativeComponentAttributes")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + var _ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/ReactNativeViewConfigRegistry")); + var _verifyComponentAttributeEquivalence = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/verifyComponentAttributeEquivalence")); + var StaticViewConfigValidator = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./StaticViewConfigValidator")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var getRuntimeConfig; + + /** + * Configures a function that is called to determine whether a given component + * should be registered using reflection of the native component at runtime. + * + * The provider should return null if the native component is unavailable in + * the current environment. + */ + function setRuntimeConfigProvider(runtimeConfigProvider) { + (0, _invariant.default)(getRuntimeConfig == null, 'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'); + getRuntimeConfig = runtimeConfigProvider; + } + + /** + * Gets a `NativeComponent` that can be rendered by React Native. + * + * The supplied `viewConfigProvider` may or may not be invoked and utilized, + * depending on how `setRuntimeConfigProvider` is configured. + */ + function get(name, viewConfigProvider) { + _ReactNativeViewConfigRegistry.default.register(name, function () { + var _getRuntimeConfig; + var _ref = (_getRuntimeConfig = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig : { + native: true, + strict: false, + verify: false + }, + native = _ref.native, + strict = _ref.strict, + verify = _ref.verify; + var viewConfig = native ? (0, _getNativeComponentAttributes.default)(name) : (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()); + if (verify) { + var nativeViewConfig = native ? viewConfig : (0, _getNativeComponentAttributes.default)(name); + var staticViewConfig = native ? (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()) : viewConfig; + if (strict) { + var validationOutput = StaticViewConfigValidator.validate(name, nativeViewConfig, staticViewConfig); + if (validationOutput.type === 'invalid') { + console.error(StaticViewConfigValidator.stringifyValidationResult(name, validationOutput)); } - } - var styleForVertical = style[prefix + 'Vertical']; - if (styleForVertical != null) { - result.bottom = styleForVertical; - result.top = styleForVertical; - hasParts = true; } else { - var styleForBottom = style[prefix + 'Bottom']; - if (styleForBottom != null) { - result.bottom = styleForBottom; - hasParts = true; - } - var styleForTop = style[prefix + 'Top']; - if (styleForTop != null) { - result.top = styleForTop; - hasParts = true; - } + (0, _verifyComponentAttributeEquivalence.default)(nativeViewConfig, staticViewConfig); } - return hasParts ? result : null; } - var isArray = __webpack_require__(6); + return viewConfig; + }); - function setupNativeStyleEditor_typeof(obj) { - "@babel/helpers - typeof"; + // $FlowFixMe[incompatible-return] `NativeComponent` is actually string! + return name; + } - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - setupNativeStyleEditor_typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - setupNativeStyleEditor_typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - return setupNativeStyleEditor_typeof(obj); + /** + * Same as `NativeComponentRegistry.get(...)`, except this will check either + * the `setRuntimeConfigProvider` configuration or use native reflection (slow) + * to determine whether this native component is available. + * + * If the native component is not available, a stub component is returned. Note + * that the return value of this is not `HostComponent` because the returned + * component instance is not guaranteed to have native methods. + */ + function getWithFallback_DEPRECATED(name, viewConfigProvider) { + if (getRuntimeConfig == null) { + // `getRuntimeConfig == null` when static view configs are disabled + // If `setRuntimeConfigProvider` is not configured, use native reflection. + if (hasNativeViewConfig(name)) { + return get(name, viewConfigProvider); } - function setupNativeStyleEditor_defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + } else { + // If there is no runtime config, then the native component is unavailable. + if (getRuntimeConfig(name) != null) { + return get(name, viewConfigProvider); } + } + var FallbackNativeComponent = function FallbackNativeComponent(props) { + return null; + }; + FallbackNativeComponent.displayName = `Fallback(${name})`; + return FallbackNativeComponent; + } + function hasNativeViewConfig(name) { + (0, _invariant.default)(getRuntimeConfig == null, 'Unexpected invocation!'); + return _UIManager.default.getViewManagerConfig(name) != null; + } - function setupNativeStyleEditor(bridge, agent, resolveNativeStyle, validAttributes) { - bridge.addListener('NativeStyleEditor_measure', function (_ref) { - var id = _ref.id, - rendererID = _ref.rendererID; - measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); - }); - bridge.addListener('NativeStyleEditor_renameAttribute', function (_ref2) { - var id = _ref2.id, - rendererID = _ref2.rendererID, - oldName = _ref2.oldName, - newName = _ref2.newName, - value = _ref2.value; - renameStyle(agent, id, rendererID, oldName, newName, value); - setTimeout(function () { - return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); - }); - }); - bridge.addListener('NativeStyleEditor_setValue', function (_ref3) { - var id = _ref3.id, - rendererID = _ref3.rendererID, - name = _ref3.name, - value = _ref3.value; - setStyle(agent, id, rendererID, name, value); - setTimeout(function () { - return measureStyle(agent, bridge, resolveNativeStyle, id, rendererID); - }); - }); - bridge.send('isNativeStyleEditorSupported', { - isSupported: true, - validAttributes: validAttributes - }); + /** + * Unstable API. Do not use! + * + * This method returns if there is a StaticViewConfig registered for the + * component name received as a parameter. + */ + function unstable_hasStaticViewConfig(name) { + var _getRuntimeConfig2; + var _ref2 = (_getRuntimeConfig2 = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig2 : { + native: true + }, + native = _ref2.native; + return !native; + } +},228,[3,229,230,250,251,255,20,41,256],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + function getNativeComponentAttributes(uiViewClassName) { + var _bubblingEventTypes, _directEventTypes; + var viewConfig = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(uiViewClassName); + _$$_REQUIRE(_dependencyMap[1], "invariant")(viewConfig != null && viewConfig.NativeProps != null, 'requireNativeComponent: "%s" was not found in the UIManager.', uiViewClassName); + + // TODO: This seems like a whole lot of runtime initialization for every + // native component that can be either avoided or simplified. + var baseModuleName = viewConfig.baseModuleName, + bubblingEventTypes = viewConfig.bubblingEventTypes, + directEventTypes = viewConfig.directEventTypes; + var nativeProps = viewConfig.NativeProps; + bubblingEventTypes = (_bubblingEventTypes = bubblingEventTypes) != null ? _bubblingEventTypes : {}; + directEventTypes = (_directEventTypes = directEventTypes) != null ? _directEventTypes : {}; + while (baseModuleName) { + var baseModule = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(baseModuleName); + if (!baseModule) { + baseModuleName = null; + } else { + bubblingEventTypes = Object.assign({}, baseModule.bubblingEventTypes, bubblingEventTypes); + directEventTypes = Object.assign({}, baseModule.directEventTypes, directEventTypes); + nativeProps = Object.assign({}, baseModule.NativeProps, nativeProps); + baseModuleName = baseModule.baseModuleName; } - var EMPTY_BOX_STYLE = { - top: 0, - left: 0, - right: 0, - bottom: 0 + } + var validAttributes = {}; + for (var key in nativeProps) { + var typeName = nativeProps[key]; + var diff = getDifferForType(typeName); + var process = getProcessorForType(typeName); + + // If diff or process == null, omit the corresponding property from the Attribute + // Why: + // 1. Consistency with AttributeType flow type + // 2. Consistency with Static View Configs, which omit the null properties + validAttributes[key] = diff == null ? process == null ? true : { + process: process + } : process == null ? { + diff: diff + } : { + diff: diff, + process: process }; - var componentIDToStyleOverrides = new Map(); - function measureStyle(agent, bridge, resolveNativeStyle, id, rendererID) { - var data = agent.getInstanceAndStyle({ - id: id, - rendererID: rendererID - }); - if (!data || !data.style) { - bridge.send('NativeStyleEditor_styleAndLayout', { - id: id, - layout: null, - style: null - }); - return; - } - var instance = data.instance, - style = data.style; - var resolvedStyle = resolveNativeStyle(style); + } - var styleOverrides = componentIDToStyleOverrides.get(id); - if (styleOverrides != null) { - resolvedStyle = Object.assign({}, resolvedStyle, styleOverrides); - } - if (!instance || typeof instance.measure !== 'function') { - bridge.send('NativeStyleEditor_styleAndLayout', { - id: id, - layout: null, - style: resolvedStyle || null - }); - return; - } + // Unfortunately, the current setup declares style properties as top-level + // props. This makes it so we allow style properties in the `style` prop. + // TODO: Move style properties into a `style` prop and disallow them as + // top-level props on the native side. + validAttributes.style = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes"); + Object.assign(viewConfig, { + uiViewClassName: uiViewClassName, + validAttributes: validAttributes, + bubblingEventTypes: bubblingEventTypes, + directEventTypes: directEventTypes + }); + attachDefaultEventTypes(viewConfig); + return viewConfig; + } + function attachDefaultEventTypes(viewConfig) { + // This is supported on UIManager platforms (ex: Android), + // as lazy view managers are not implemented for all platforms. + // See [UIManager] for details on constants and implementations. + var constants = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getConstants(); + if (constants.ViewManagerNames || constants.LazyViewManagersEnabled) { + // Lazy view managers enabled. + viewConfig = merge(viewConfig, _$$_REQUIRE(_dependencyMap[0], "./UIManager").getDefaultEventTypes()); + } else { + viewConfig.bubblingEventTypes = merge(viewConfig.bubblingEventTypes, constants.genericBubblingEventTypes); + viewConfig.directEventTypes = merge(viewConfig.directEventTypes, constants.genericDirectEventTypes); + } + } - instance.measure(function (x, y, width, height, left, top) { - if (typeof x !== 'number') { - bridge.send('NativeStyleEditor_styleAndLayout', { - id: id, - layout: null, - style: resolvedStyle || null - }); - return; - } - var margin = resolvedStyle != null && resolveBoxStyle('margin', resolvedStyle) || EMPTY_BOX_STYLE; - var padding = resolvedStyle != null && resolveBoxStyle('padding', resolvedStyle) || EMPTY_BOX_STYLE; - bridge.send('NativeStyleEditor_styleAndLayout', { - id: id, - layout: { - x: x, - y: y, - width: width, - height: height, - left: left, - top: top, - margin: margin, - padding: padding - }, - style: resolvedStyle || null - }); - }); + // TODO: Figure out how to avoid all this runtime initialization cost. + function merge(destination, source) { + if (!source) { + return destination; + } + if (!destination) { + return source; + } + for (var key in source) { + if (!source.hasOwnProperty(key)) { + continue; } - function shallowClone(object) { - var cloned = {}; - for (var n in object) { - cloned[n] = object[n]; + var sourceValue = source[key]; + if (destination.hasOwnProperty(key)) { + var destinationValue = destination[key]; + if (typeof sourceValue === 'object' && typeof destinationValue === 'object') { + sourceValue = merge(destinationValue, sourceValue); } - return cloned; } - function renameStyle(agent, id, rendererID, oldName, newName, value) { - var _ref4; - var data = agent.getInstanceAndStyle({ - id: id, - rendererID: rendererID - }); - if (!data || !data.style) { - return; - } - var instance = data.instance, - style = data.style; - var newStyle = newName ? (_ref4 = {}, setupNativeStyleEditor_defineProperty(_ref4, oldName, undefined), setupNativeStyleEditor_defineProperty(_ref4, newName, value), _ref4) : setupNativeStyleEditor_defineProperty({}, oldName, undefined); - var customStyle; + destination[key] = sourceValue; + } + return destination; + } + function getDifferForType(typeName) { + switch (typeName) { + // iOS Types + case 'CATransform3D': + return _$$_REQUIRE(_dependencyMap[3], "../Utilities/differ/matricesDiffer"); + case 'CGPoint': + return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); + case 'CGSize': + return _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/sizesDiffer"); + case 'UIEdgeInsets': + return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); + // Android Types + case 'Point': + return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); + case 'EdgeInsets': + return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); + } + return null; + } + function getProcessorForType(typeName) { + switch (typeName) { + // iOS Types + case 'CGColor': + case 'UIColor': + return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor").default; + case 'CGColorArray': + case 'UIColorArray': + return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); + case 'CGImage': + case 'UIImage': + case 'RCTImageSource': + return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); + // Android Types + case 'Color': + return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor").default; + case 'ColorArray': + return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); + case 'ImageSource': + return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); + } + return null; + } + module.exports = getNativeComponentAttributes; +},229,[230,20,198,238,239,203,240,174,241,242],"node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "nullthrows")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (instance !== null && typeof instance.setNativeProps === 'function') { - var styleOverrides = componentIDToStyleOverrides.get(id); - if (!styleOverrides) { - componentIDToStyleOverrides.set(id, newStyle); - } else { - Object.assign(styleOverrides, newStyle); - } + function isFabricReactTag(reactTag) { + // React reserves even numbers for Fabric. + return reactTag % 2 === 0; + } + var UIManagerImpl = global.RN$Bridgeless === true ? _$$_REQUIRE(_dependencyMap[2], "./BridgelessUIManager") : _$$_REQUIRE(_dependencyMap[3], "./PaperUIManager"); - instance.setNativeProps({ - style: newStyle - }); - } else if (Object(isArray["a"])(style)) { - var lastIndex = style.length - 1; - if (setupNativeStyleEditor_typeof(style[lastIndex]) === 'object' && !Object(isArray["a"])(style[lastIndex])) { - customStyle = shallowClone(style[lastIndex]); - delete customStyle[oldName]; - if (newName) { - customStyle[newName] = value; - } else { - customStyle[oldName] = undefined; - } - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style', lastIndex], - value: customStyle - }); - } else { - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style'], - value: style.concat([newStyle]) - }); - } - } else if (setupNativeStyleEditor_typeof(style) === 'object') { - customStyle = shallowClone(style); - delete customStyle[oldName]; - if (newName) { - customStyle[newName] = value; - } else { - customStyle[oldName] = undefined; - } - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style'], - value: customStyle - }); + // $FlowFixMe[cannot-spread-interface] + var UIManager = Object.assign({}, UIManagerImpl, { + measure: function measure(reactTag, callback) { + if (isFabricReactTag(reactTag)) { + var FabricUIManager = (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[4], "./FabricUIManager").getFabricUIManager)()); + var shadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(reactTag); + if (shadowNode) { + FabricUIManager.measure(shadowNode, callback); } else { - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style'], - value: [style, newStyle] - }); + console.warn(`measure cannot find view with tag #${reactTag}`); + // $FlowFixMe[incompatible-call] + callback(); } - agent.emit('hideNativeHighlight'); + } else { + // Paper + UIManagerImpl.measure(reactTag, callback); } - function setStyle(agent, id, rendererID, name, value) { - var data = agent.getInstanceAndStyle({ - id: id, - rendererID: rendererID - }); - if (!data || !data.style) { - return; - } - var instance = data.instance, - style = data.style; - var newStyle = setupNativeStyleEditor_defineProperty({}, name, value); - - if (instance !== null && typeof instance.setNativeProps === 'function') { - var styleOverrides = componentIDToStyleOverrides.get(id); - if (!styleOverrides) { - componentIDToStyleOverrides.set(id, newStyle); - } else { - Object.assign(styleOverrides, newStyle); - } - - instance.setNativeProps({ - style: newStyle - }); - } else if (Object(isArray["a"])(style)) { - var lastLength = style.length - 1; - if (setupNativeStyleEditor_typeof(style[lastLength]) === 'object' && !Object(isArray["a"])(style[lastLength])) { - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style', lastLength, name], - value: value - }); - } else { - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style'], - value: style.concat([newStyle]) - }); - } + }, + measureInWindow: function measureInWindow(reactTag, callback) { + if (isFabricReactTag(reactTag)) { + var FabricUIManager = (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[4], "./FabricUIManager").getFabricUIManager)()); + var shadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(reactTag); + if (shadowNode) { + FabricUIManager.measureInWindow(shadowNode, callback); } else { - agent.overrideValueAtPath({ - type: 'props', - id: id, - rendererID: rendererID, - path: ['style'], - value: [style, newStyle] - }); - } - agent.emit('hideNativeHighlight'); - } - - installHook(window); - var backend_hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; - var savedComponentFilters = Object(src_utils["e"])(); - - function backend_debug(methodName) { - if (constants["s"]) { - var _console; - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - (_console = console).log.apply(_console, ["%c[core/backend] %c".concat(methodName), 'color: teal; font-weight: bold;', 'font-weight: bold;'].concat(args)); + console.warn(`measure cannot find view with tag #${reactTag}`); + // $FlowFixMe[incompatible-call] + callback(); } + } else { + // Paper + UIManagerImpl.measureInWindow(reactTag, callback); } - function connectToDevTools(options) { - if (backend_hook == null) { - return; - } - var _ref = options || {}, - _ref$host = _ref.host, - host = _ref$host === void 0 ? 'localhost' : _ref$host, - nativeStyleEditorValidAttributes = _ref.nativeStyleEditorValidAttributes, - _ref$useHttps = _ref.useHttps, - useHttps = _ref$useHttps === void 0 ? false : _ref$useHttps, - _ref$port = _ref.port, - port = _ref$port === void 0 ? 8097 : _ref$port, - websocket = _ref.websocket, - _ref$resolveRNStyle = _ref.resolveRNStyle, - resolveRNStyle = _ref$resolveRNStyle === void 0 ? null : _ref$resolveRNStyle, - _ref$retryConnectionD = _ref.retryConnectionDelay, - retryConnectionDelay = _ref$retryConnectionD === void 0 ? 2000 : _ref$retryConnectionD, - _ref$isAppActive = _ref.isAppActive, - isAppActive = _ref$isAppActive === void 0 ? function () { - return true; - } : _ref$isAppActive; - var protocol = useHttps ? 'wss' : 'ws'; - var retryTimeoutID = null; - function scheduleRetry() { - if (retryTimeoutID === null) { - retryTimeoutID = setTimeout(function () { - return connectToDevTools(options); - }, retryConnectionDelay); - } - } - if (!isAppActive()) { - scheduleRetry(); + }, + measureLayout: function measureLayout(reactTag, ancestorReactTag, errorCallback, callback) { + if (isFabricReactTag(reactTag)) { + var FabricUIManager = (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[4], "./FabricUIManager").getFabricUIManager)()); + var shadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(reactTag); + var ancestorShadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(ancestorReactTag); + if (!shadowNode || !ancestorShadowNode) { return; } - var bridge = null; - var messageListeners = []; - var uri = protocol + '://' + host + ':' + port; - - var ws = websocket ? websocket : new window.WebSocket(uri); - ws.onclose = handleClose; - ws.onerror = handleFailed; - ws.onmessage = handleMessage; - ws.onopen = function () { - bridge = new src_bridge({ - listen: function listen(fn) { - messageListeners.push(fn); - return function () { - var index = messageListeners.indexOf(fn); - if (index >= 0) { - messageListeners.splice(index, 1); - } - }; - }, - send: function send(event, payload, transferable) { - if (ws.readyState === ws.OPEN) { - if (constants["s"]) { - backend_debug('wall.send()', event, payload); - } - ws.send(JSON.stringify({ - event: event, - payload: payload - })); - } else { - if (constants["s"]) { - backend_debug('wall.send()', 'Shutting down bridge because of closed WebSocket connection'); - } - if (bridge !== null) { - bridge.shutdown(); - } - scheduleRetry(); - } - } - }); - bridge.addListener('inspectElement', function (_ref2) { - var id = _ref2.id, - rendererID = _ref2.rendererID; - var renderer = agent.rendererInterfaces[rendererID]; - if (renderer != null) { - var nodes = renderer.findNativeNodesForFiberID(id); - if (nodes != null && nodes[0] != null) { - agent.emit('showNativeHighlight', nodes[0]); - } - } - }); - bridge.addListener('updateComponentFilters', function (componentFilters) { - savedComponentFilters = componentFilters; - }); - - if (window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ == null) { - bridge.send('overrideComponentFilters', savedComponentFilters); - } - - var agent = new agent_Agent(bridge); - agent.addListener('shutdown', function () { - backend_hook.emit('shutdown'); + FabricUIManager.measureLayout(shadowNode, ancestorShadowNode, errorCallback, callback); + } else { + // Paper + UIManagerImpl.measureLayout(reactTag, ancestorReactTag, errorCallback, callback); + } + }, + measureLayoutRelativeToParent: function measureLayoutRelativeToParent(reactTag, errorCallback, callback) { + if (isFabricReactTag(reactTag)) { + console.warn('RCTUIManager.measureLayoutRelativeToParent method is deprecated and it will not be implemented in newer versions of RN (Fabric) - T47686450'); + var FabricUIManager = (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[4], "./FabricUIManager").getFabricUIManager)()); + var shadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(reactTag); + if (shadowNode) { + FabricUIManager.measure(shadowNode, function (left, top, width, height, pageX, pageY) { + callback(left, top, width, height); }); - initBackend(backend_hook, agent, window); - - if (resolveRNStyle != null || backend_hook.resolveRNStyle != null) { - setupNativeStyleEditor(bridge, agent, resolveRNStyle || backend_hook.resolveRNStyle, nativeStyleEditorValidAttributes || backend_hook.nativeStyleEditorValidAttributes || null); - } else { - var lazyResolveRNStyle; - var lazyNativeStyleEditorValidAttributes; - var initAfterTick = function initAfterTick() { - if (bridge !== null) { - setupNativeStyleEditor(bridge, agent, lazyResolveRNStyle, lazyNativeStyleEditorValidAttributes); - } - }; - if (!backend_hook.hasOwnProperty('resolveRNStyle')) { - Object.defineProperty(backend_hook, 'resolveRNStyle', { - enumerable: false, - get: function get() { - return lazyResolveRNStyle; - }, - set: function set(value) { - lazyResolveRNStyle = value; - initAfterTick(); - } - }); - } - if (!backend_hook.hasOwnProperty('nativeStyleEditorValidAttributes')) { - Object.defineProperty(backend_hook, 'nativeStyleEditorValidAttributes', { - enumerable: false, - get: function get() { - return lazyNativeStyleEditorValidAttributes; - }, - set: function set(value) { - lazyNativeStyleEditorValidAttributes = value; - initAfterTick(); - } - }); - } - } - }; - function handleClose() { - if (constants["s"]) { - backend_debug('WebSocket.onclose'); - } - if (bridge !== null) { - bridge.emit('shutdown'); - } - scheduleRetry(); - } - function handleFailed() { - if (constants["s"]) { - backend_debug('WebSocket.onerror'); - } - scheduleRetry(); } - function handleMessage(event) { - var data; - try { - if (typeof event.data === 'string') { - data = JSON.parse(event.data); - if (constants["s"]) { - backend_debug('WebSocket.onmessage', data); - } - } else { - throw Error(); - } - } catch (e) { - console.error('[React DevTools] Failed to parse JSON: ' + event.data); - return; - } - messageListeners.forEach(function (fn) { - try { - fn(data); - } catch (error) { - console.log('[React DevTools] Error calling listener', data); - console.log('error:', error); - throw error; - } - }); + } else { + // Paper + UIManagerImpl.measureLayoutRelativeToParent(reactTag, errorCallback, callback); + } + }, + dispatchViewManagerCommand: function dispatchViewManagerCommand(reactTag, commandName, commandArgs) { + if (isFabricReactTag(reactTag)) { + var FabricUIManager = (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[4], "./FabricUIManager").getFabricUIManager)()); + var shadowNode = FabricUIManager.findShadowNodeByTag_DEPRECATED(reactTag); + if (shadowNode) { + // Transform the accidental CommandID into a CommandName which is the stringified number. + // The interop layer knows how to convert this number into the right method name. + // Stringify a string is a no-op, so it's safe. + commandName = `${commandName}`; + FabricUIManager.dispatchCommand(shadowNode, commandName, commandArgs); } + } else { + UIManagerImpl.dispatchViewManagerCommand(reactTag, + // We have some legacy components that are actually already using strings. ยฏ\_(ใƒ„)_/ยฏ + // $FlowFixMe[incompatible-call] + commandName, commandArgs); } - } - ]); }); -},179,[180],"node_modules/react-devtools-core/dist/backend.js"); + module.exports = UIManager; +},230,[3,231,232,234,237],"node_modules/react-native/Libraries/ReactNative/UIManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; - var runtime = _$$_REQUIRE(_dependencyMap[0], "../helpers/regeneratorRuntime")(); - module.exports = runtime; - - try { - regeneratorRuntime = runtime; - } catch (accidentalStrictMode) { - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); + function nullthrows(x, message) { + if (x != null) { + return x; } + var error = new Error(message !== undefined ? message : 'Got unexpected ' + x); + error.framesToPop = 1; // Skip nullthrows's own stack frame. + throw error; } -},180,[181],"node_modules/@babel/runtime/regenerator/index.js"); + module.exports = nullthrows; + module.exports.default = nullthrows; + Object.defineProperty(module.exports, '__esModule', { + value: true + }); +},231,[],"node_modules/nullthrows/nullthrows.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _regeneratorRuntime() { - "use strict"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - module.exports = _regeneratorRuntime = function _regeneratorRuntime() { - return exports; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var exports = {}, - Op = Object.prototype, - hasOwn = Op.hasOwnProperty, - defineProperty = Object.defineProperty || function (obj, key, desc) { - obj[key] = desc.value; - }, - $Symbol = "function" == typeof Symbol ? Symbol : {}, - iteratorSymbol = $Symbol.iterator || "@@iterator", - asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", - toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - function define(obj, key, value) { - return Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }), obj[key]; + 'use strict'; + + var errorMessageForMethod = function errorMessageForMethod(methodName) { + return "[ReactNative Architecture][JS] '" + methodName + "' is not available in the new React Native architecture."; + }; + module.exports = { + getViewManagerConfig: function getViewManagerConfig(viewManagerName) { + console.error(errorMessageForMethod('getViewManagerConfig') + 'Use hasViewManagerConfig instead. viewManagerName: ' + viewManagerName); + return null; + }, + hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { + return (0, _$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistryUnstable").unstable_hasComponent)(viewManagerName); + }, + getConstants: function getConstants() { + console.error(errorMessageForMethod('getConstants')); + return {}; + }, + getConstantsForViewManager: function getConstantsForViewManager(viewManagerName) { + console.error(errorMessageForMethod('getConstantsForViewManager')); + return {}; + }, + getDefaultEventTypes: function getDefaultEventTypes() { + console.error(errorMessageForMethod('getDefaultEventTypes')); + return []; + }, + lazilyLoadView: function lazilyLoadView(name) { + console.error(errorMessageForMethod('lazilyLoadView')); + return {}; + }, + createView: function createView(reactTag, viewName, rootTag, props) { + return console.error(errorMessageForMethod('createView')); + }, + updateView: function updateView(reactTag, viewName, props) { + return console.error(errorMessageForMethod('updateView')); + }, + focus: function focus(reactTag) { + return console.error(errorMessageForMethod('focus')); + }, + blur: function blur(reactTag) { + return console.error(errorMessageForMethod('blur')); + }, + findSubviewIn: function findSubviewIn(reactTag, point, callback) { + return console.error(errorMessageForMethod('findSubviewIn')); + }, + dispatchViewManagerCommand: function dispatchViewManagerCommand(reactTag, commandID, commandArgs) { + return console.error(errorMessageForMethod('dispatchViewManagerCommand')); + }, + measure: function measure(reactTag, callback) { + return console.error(errorMessageForMethod('measure')); + }, + measureInWindow: function measureInWindow(reactTag, callback) { + return console.error(errorMessageForMethod('measureInWindow')); + }, + viewIsDescendantOf: function viewIsDescendantOf(reactTag, ancestorReactTag, callback) { + return console.error(errorMessageForMethod('viewIsDescendantOf')); + }, + measureLayout: function measureLayout(reactTag, ancestorReactTag, errorCallback, callback) { + return console.error(errorMessageForMethod('measureLayout')); + }, + measureLayoutRelativeToParent: function measureLayoutRelativeToParent(reactTag, errorCallback, callback) { + return console.error(errorMessageForMethod('measureLayoutRelativeToParent')); + }, + setJSResponder: function setJSResponder(reactTag, blockNativeResponder) { + return console.error(errorMessageForMethod('setJSResponder')); + }, + clearJSResponder: function clearJSResponder() {}, + // Don't log error here because we're aware it gets called + configureNextLayoutAnimation: function configureNextLayoutAnimation(config, callback, errorCallback) { + return console.error(errorMessageForMethod('configureNextLayoutAnimation')); + }, + removeSubviewsFromContainerWithID: function removeSubviewsFromContainerWithID(containerID) { + return console.error(errorMessageForMethod('removeSubviewsFromContainerWithID')); + }, + replaceExistingNonRootView: function replaceExistingNonRootView(reactTag, newReactTag) { + return console.error(errorMessageForMethod('replaceExistingNonRootView')); + }, + setChildren: function setChildren(containerTag, reactTags) { + return console.error(errorMessageForMethod('setChildren')); + }, + manageChildren: function manageChildren(containerTag, moveFromIndices, moveToIndices, addChildReactTags, addAtIndices, removeAtIndices) { + return console.error(errorMessageForMethod('manageChildren')); + }, + // Android only + setLayoutAnimationEnabledExperimental: function setLayoutAnimationEnabledExperimental(enabled) { + console.error(errorMessageForMethod('setLayoutAnimationEnabledExperimental')); + }, + // Please use AccessibilityInfo.sendAccessibilityEvent instead. + // See SetAccessibilityFocusExample in AccessibilityExample.js for a migration example. + sendAccessibilityEvent: function sendAccessibilityEvent(reactTag, eventType) { + return console.error(errorMessageForMethod('sendAccessibilityEvent')); + }, + showPopupMenu: function showPopupMenu(reactTag, items, error, success) { + return console.error(errorMessageForMethod('showPopupMenu')); + }, + dismissPopupMenu: function dismissPopupMenu() { + return console.error(errorMessageForMethod('dismissPopupMenu')); } - try { - define({}, ""); - } catch (err) { - define = function define(obj, key, value) { - return obj[key] = value; - }; + }; +},232,[233],"node_modules/react-native/Libraries/ReactNative/BridgelessUIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.unstable_hasComponent = unstable_hasComponent; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var componentNameToExists = new Map(); + + /** + * Unstable API. Do not use! + * + * This method returns if the component with name received as a parameter + * is registered in the native platform. + */ + function unstable_hasComponent(name) { + var hasNativeComponent = componentNameToExists.get(name); + if (hasNativeComponent == null) { + if (global.__nativeComponentRegistry__hasComponent) { + hasNativeComponent = global.__nativeComponentRegistry__hasComponent(name); + componentNameToExists.set(name, hasNativeComponent); + } else { + throw `unstable_hasComponent('${name}'): Global function is not registered`; + } } - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, - generator = Object.create(protoGenerator.prototype), - context = new Context(tryLocsList || []); - return defineProperty(generator, "_invoke", { - value: makeInvokeMethod(innerFn, self, context) - }), generator; + return hasNativeComponent; + } +},233,[],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeUIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeUIManager")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var viewManagerConfigs = {}; + var triedLoadingConfig = new Set(); + var NativeUIManagerConstants = {}; + var isNativeUIManagerConstantsSet = false; + function _getConstants() { + if (!isNativeUIManagerConstantsSet) { + NativeUIManagerConstants = _NativeUIManager.default.getConstants(); + isNativeUIManagerConstantsSet = true; } - function tryCatch(fn, obj, arg) { + return NativeUIManagerConstants; + } + function _getViewManagerConfig(viewManagerName) { + if (viewManagerConfigs[viewManagerName] === undefined && global.nativeCallSyncHook && + // If we're in the Chrome Debugger, let's not even try calling the sync method + _NativeUIManager.default.getConstantsForViewManager) { try { - return { - type: "normal", - arg: fn.call(obj, arg) - }; - } catch (err) { - return { - type: "throw", - arg: err - }; + viewManagerConfigs[viewManagerName] = _NativeUIManager.default.getConstantsForViewManager(viewManagerName); + } catch (e) { + console.error("NativeUIManager.getConstantsForViewManager('" + viewManagerName + "') threw an exception.", e); + viewManagerConfigs[viewManagerName] = null; } } - exports.wrap = wrap; - var ContinueSentinel = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var IteratorPrototype = {}; - define(IteratorPrototype, iteratorSymbol, function () { - return this; - }); - var getProto = Object.getPrototypeOf, - NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - define(prototype, method, function (arg) { - return this._invoke(method, arg); - }); - }); + var config = viewManagerConfigs[viewManagerName]; + if (config) { + return config; } - function AsyncIterator(generator, PromiseImpl) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if ("throw" !== record.type) { - var result = record.arg, - value = result.value; - return value && "object" == _$$_REQUIRE(_dependencyMap[0], "./typeof.js")["default"](value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }) : PromiseImpl.resolve(value).then(function (unwrapped) { - result.value = unwrapped, resolve(result); - }, function (error) { - return invoke("throw", error, resolve, reject); - }); - } - reject(record.arg); + + // If we're in the Chrome Debugger, let's not even try calling the sync + // method. + if (!global.nativeCallSyncHook) { + return config; + } + if (_NativeUIManager.default.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) { + var result = _NativeUIManager.default.lazilyLoadView(viewManagerName); + triedLoadingConfig.add(viewManagerName); + if (result != null && result.viewConfig != null) { + _getConstants()[viewManagerName] = result.viewConfig; + lazifyViewManagerConfig(viewManagerName); } - var previousPromise; - defineProperty(this, "_invoke", { - value: function value(method, arg) { - function callInvokeWithMethodAndArg() { - return new PromiseImpl(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); } - function makeInvokeMethod(innerFn, self, context) { - var state = "suspendedStart"; - return function (method, arg) { - if ("executing" === state) throw new Error("Generator is already running"); - if ("completed" === state) { - if ("throw" === method) throw arg; - return doneResult(); - } - for (context.method = method, context.arg = arg;;) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { - if ("suspendedStart" === state) throw state = "completed", context.arg; - context.dispatchException(context.arg); - } else "return" === context.method && context.abrupt("return", context.arg); - state = "executing"; - var record = tryCatch(innerFn, self, context); - if ("normal" === record.type) { - if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; - return { - value: record.arg, - done: context.done - }; - } - "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); - } - }; - } - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (undefined === method) { - if (context.delegate = null, "throw" === context.method) { - if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; - context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); - } - return ContinueSentinel; - } - var record = tryCatch(method, delegate.iterator, context.arg); - if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; - var info = record.arg; - return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); - } - function pushTryEntry(locs) { - var entry = { - tryLoc: locs[0] - }; - 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); - } - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal", delete record.arg, entry.completion = record; - } - function Context(tryLocsList) { - this.tryEntries = [{ - tryLoc: "root" - }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); - } - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) return iteratorMethod.call(iterable); - if ("function" == typeof iterable.next) return iterable; - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - for (; ++i < iterable.length;) { - if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; - } - return next.value = undefined, next.done = !0, next; - }; - return next.next = next; - } + return viewManagerConfigs[viewManagerName]; + } + + /* $FlowFixMe[cannot-spread-interface] (>=0.123.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.123.0 was deployed. To see + * the error, delete this comment and run Flow. */ + var UIManagerJS = Object.assign({}, _NativeUIManager.default, { + createView: function createView(reactTag, viewName, rootTag, props) { + if ("ios" === 'ios' && viewManagerConfigs[viewName] === undefined) { + // This is necessary to force the initialization of native viewManager + // classes in iOS when using static ViewConfigs + _getViewManagerConfig(viewName); } - return { - next: doneResult - }; - } - function doneResult() { - return { - value: undefined, - done: !0 - }; + _NativeUIManager.default.createView(reactTag, viewName, rootTag, props); + }, + getConstants: function getConstants() { + return _getConstants(); + }, + getViewManagerConfig: function getViewManagerConfig(viewManagerName) { + return _getViewManagerConfig(viewManagerName); + }, + hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { + return _getViewManagerConfig(viewManagerName) != null; } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), defineProperty(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { - var ctor = "function" == typeof genFun && genFun.constructor; - return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); - }, exports.mark = function (genFun) { - return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; - }, exports.awrap = function (arg) { - return { - __await: arg - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { - void 0 === PromiseImpl && (PromiseImpl = Promise); - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); - return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { - return this; - }), define(Gp, "toString", function () { - return "[object Generator]"; - }), exports.keys = function (val) { - var object = Object(val), - keys = []; - for (var key in object) { - keys.push(key); - } - return keys.reverse(), function next() { - for (; keys.length;) { - var key = keys.pop(); - if (key in object) return next.value = key, next.done = !1, next; - } - return next.done = !0, next; - }; - }, exports.values = values, Context.prototype = { - constructor: Context, - reset: function reset(skipTempReset) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { - "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); - } - }, - stop: function stop() { - this.done = !0; - var rootRecord = this.tryEntries[0].completion; - if ("throw" === rootRecord.type) throw rootRecord.arg; - return this.rval; - }, - dispatchException: function dispatchException(exception) { - if (this.done) throw exception; - var context = this; - function handle(loc, caught) { - return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i], - record = entry.completion; - if ("root" === entry.tryLoc) return handle("end"); - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"), - hasFinally = hasOwn.call(entry, "finallyLoc"); - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } else if (hasCatch) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - } else { - if (!hasFinally) throw new Error("try statement without catch or finally"); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + }); + + // TODO (T45220498): Remove this. + // 3rd party libs may be calling `NativeModules.UIManager.getViewManagerConfig()` + // instead of `UIManager.getViewManagerConfig()` off UIManager.js. + // This is a workaround for now. + // $FlowFixMe[prop-missing] + _NativeUIManager.default.getViewManagerConfig = UIManagerJS.getViewManagerConfig; + function lazifyViewManagerConfig(viewName) { + var viewConfig = _getConstants()[viewName]; + viewManagerConfigs[viewName] = viewConfig; + if (viewConfig.Manager) { + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Constants', { + get: function get() { + var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; + var constants = {}; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + if (typeof value !== 'function') { + constants[key] = value; } - } - } - }, - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); - var record = finallyEntry ? finallyEntry.completion : {}; - return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); - }, - complete: function complete(record, afterLoc) { - if ("throw" === record.type) throw record.arg; - return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; - }, - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + }); + return constants; } - }, - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if ("throw" === record.type) { - var thrown = record.arg; - resetTryEntry(entry); + }); + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Commands', { + get: function get() { + var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; + var commands = {}; + var index = 0; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + if (typeof value === 'function') { + commands[key] = index++; } - return thrown; - } + }); + return commands; } - throw new Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - return this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }, "next" === this.method && (this.arg = undefined), ContinueSentinel; - } - }, exports; - } - module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; -},181,[48],"node_modules/@babel/runtime/helpers/regeneratorRuntime.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); - var _logError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/logError")); - var _NativeAppState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeAppState")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); - var AppState = function () { - function AppState() { - var _this = this; - (0, _classCallCheck2.default)(this, AppState); - this.currentState = null; - if (_NativeAppState.default == null) { - this.isAvailable = false; - } else { - this.isAvailable = true; - var emitter = new _NativeEventEmitter.default( - _Platform.default.OS !== 'ios' ? null : _NativeAppState.default); - this._emitter = emitter; - this.currentState = _NativeAppState.default.getConstants().initialAppState; - var eventUpdated = false; - - emitter.addListener('appStateDidChange', function (appStateData) { - eventUpdated = true; - _this.currentState = appStateData.app_state; - }); - - _NativeAppState.default.getCurrentAppState(function (appStateData) { - if (!eventUpdated && _this.currentState !== appStateData.app_state) { - _this.currentState = appStateData.app_state; - emitter.emit('appStateDidChange', appStateData); - } - }, _logError.default); - } + }); } + } - (0, _createClass2.default)(AppState, [{ - key: "addEventListener", - value: - function addEventListener(type, handler) { - var emitter = this._emitter; - if (emitter == null) { - throw new Error('Cannot use AppState when `isAvailable` is false.'); + /** + * Copies the ViewManager constants and commands into UIManager. This is + * only needed for iOS, which puts the constants in the ViewManager + * namespace instead of UIManager, unlike Android. + */ + if ("ios" === 'ios') { + Object.keys(_getConstants()).forEach(function (viewName) { + lazifyViewManagerConfig(viewName); + }); + } else if (_getConstants().ViewManagerNames) { + _NativeUIManager.default.getConstants().ViewManagerNames.forEach(function (viewManagerName) { + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { + get: function get() { + return _NativeUIManager.default.getConstantsForViewManager(viewManagerName); } - switch (type) { - case 'change': - var changeHandler = handler; - return emitter.addListener('appStateDidChange', function (appStateData) { - changeHandler(appStateData.app_state); - }); - case 'memoryWarning': - var memoryWarningHandler = handler; - return emitter.addListener('memoryWarning', memoryWarningHandler); - case 'blur': - case 'focus': - var focusOrBlurHandler = handler; - return emitter.addListener('appStateFocusChange', function (hasFocus) { - if (type === 'blur' && !hasFocus) { - focusOrBlurHandler(); - } - if (type === 'focus' && hasFocus) { - focusOrBlurHandler(); - } - }); + }); + }); + } + if (!global.nativeCallSyncHook) { + Object.keys(_getConstants()).forEach(function (viewManagerName) { + if (!_$$_REQUIRE(_dependencyMap[4], "./UIManagerProperties").includes(viewManagerName)) { + if (!viewManagerConfigs[viewManagerName]) { + viewManagerConfigs[viewManagerName] = _getConstants()[viewManagerName]; } - throw new Error('Trying to subscribe to unknown event: ' + type); + _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { + get: function get() { + console.warn(`Accessing view manager configs directly off UIManager via UIManager['${viewManagerName}'] ` + `is no longer supported. Use UIManager.getViewManagerConfig('${viewManagerName}') instead.`); + return UIManagerJS.getViewManagerConfig(viewManagerName); + } + }); } - }]); - return AppState; - }(); - module.exports = new AppState(); -},182,[3,12,13,134,183,184,14],"node_modules/react-native/Libraries/AppState/AppState.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var logError = function logError() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - if (args.length === 1 && args[0] instanceof Error) { - var err = args[0]; - console.error('Error: "' + err.message + '". Stack:\n' + err.stack); - } else { - console.error.apply(console, args); - } - }; - module.exports = logError; -},183,[],"node_modules/react-native/Libraries/Utilities/logError.js"); + }); + } + module.exports = UIManagerJS; +},234,[3,235,33,21,236],"node_modules/react-native/Libraries/ReactNative/PaperUIManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47245,1397 +60104,887 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('AppState'); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.getEnforcing('UIManager'); exports.default = _default; -},184,[16],"node_modules/react-native/Libraries/AppState/NativeAppState.js"); +},235,[19],"node_modules/react-native/Libraries/ReactNative/NativeUIManager.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor")); - var _processTransform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/processTransform")); - var _sizesDiffer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/sizesDiffer")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var colorAttributes = { - process: _processColor.default - }; - var ReactNativeStyleAttributes = { - alignContent: true, - alignItems: true, - alignSelf: true, - aspectRatio: true, - borderBottomWidth: true, - borderEndWidth: true, - borderLeftWidth: true, - borderRightWidth: true, - borderStartWidth: true, - borderTopWidth: true, - borderWidth: true, - bottom: true, - direction: true, - display: true, - end: true, - flex: true, - flexBasis: true, - flexDirection: true, - flexGrow: true, - flexShrink: true, - flexWrap: true, - height: true, - justifyContent: true, - left: true, - margin: true, - marginBottom: true, - marginEnd: true, - marginHorizontal: true, - marginLeft: true, - marginRight: true, - marginStart: true, - marginTop: true, - marginVertical: true, - maxHeight: true, - maxWidth: true, - minHeight: true, - minWidth: true, - overflow: true, - padding: true, - paddingBottom: true, - paddingEnd: true, - paddingHorizontal: true, - paddingLeft: true, - paddingRight: true, - paddingStart: true, - paddingTop: true, - paddingVertical: true, - position: true, - right: true, - start: true, - top: true, - width: true, - zIndex: true, - elevation: true, - shadowColor: colorAttributes, - shadowOffset: { - diff: _sizesDiffer.default - }, - shadowOpacity: true, - shadowRadius: true, - transform: { - process: _processTransform.default - }, - backfaceVisibility: true, - backgroundColor: colorAttributes, - borderBottomColor: colorAttributes, - borderBottomEndRadius: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - borderBottomStartRadius: true, - borderColor: colorAttributes, - borderEndColor: colorAttributes, - borderLeftColor: colorAttributes, - borderRadius: true, - borderRightColor: colorAttributes, - borderStartColor: colorAttributes, - borderStyle: true, - borderTopColor: colorAttributes, - borderTopEndRadius: true, - borderTopLeftRadius: true, - borderTopRightRadius: true, - borderTopStartRadius: true, - opacity: true, - color: colorAttributes, - fontFamily: true, - fontSize: true, - fontStyle: true, - fontVariant: true, - fontWeight: true, - includeFontPadding: true, - letterSpacing: true, - lineHeight: true, - textAlign: true, - textAlignVertical: true, - textDecorationColor: colorAttributes, - textDecorationLine: true, - textDecorationStyle: true, - textShadowColor: colorAttributes, - textShadowOffset: true, - textShadowRadius: true, - textTransform: true, - writingDirection: true, - overlayColor: colorAttributes, - resizeMode: true, - tintColor: colorAttributes - }; - module.exports = ReactNativeStyleAttributes; -},185,[3,159,186,188],"node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js"); + 'use strict'; + + /** + * The list of non-ViewManager related UIManager properties. + * + * In an effort to improve startup performance by lazily loading view managers, + * the interface to access view managers will change from + * UIManager['viewManagerName'] to UIManager.getViewManagerConfig('viewManagerName'). + * By using a function call instead of a property access, the UIManager will + * be able to initialize and load the required view manager from native + * synchronously. All of React Native's core components have been updated to + * use getViewManagerConfig(). For the next few releases, any usage of + * UIManager['viewManagerName'] will result in a warning. Because React Native + * does not support Proxy objects, a view manager access is implied if any of + * UIManager's properties that are not one of the properties below is being + * accessed. Once UIManager property accesses for view managers has been fully + * deprecated, this file will also be removed. + */ + module.exports = ['clearJSResponder', 'configureNextLayoutAnimation', 'createView', 'dismissPopupMenu', 'dispatchViewManagerCommand', 'findSubviewIn', 'getConstantsForViewManager', 'getDefaultEventTypes', 'manageChildren', 'measure', 'measureInWindow', 'measureLayout', 'measureLayoutRelativeToParent', 'removeRootView', 'removeSubviewsFromContainerWithID', 'replaceExistingNonRootView', 'sendAccessibilityEvent', 'setChildren', 'setJSResponder', 'setLayoutAnimationEnabledExperimental', 'showPopupMenu', 'updateView', 'viewIsDescendantOf', 'PopupMenu', 'LazyViewManagersEnabled', 'ViewManagerNames', 'StyleConstants', 'AccessibilityEventTypes', 'UIView', 'getViewManagerConfig', 'hasViewManagerConfig', 'blur', 'focus', 'genericBubblingEventTypes', 'genericDirectEventTypes', 'lazilyLoadView']; +},236,[],"node_modules/react-native/Libraries/ReactNative/UIManagerProperties.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; - function processTransform(transform) { - if (__DEV__) { - _validateTransforms(transform); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getFabricUIManager = getFabricUIManager; + // TODO: type these properly. - if ("ios" === 'android' || "ios" === 'ios') { - return transform; - } - var result = _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").createIdentityMatrix(); - transform.forEach(function (transformation) { - var key = Object.keys(transformation)[0]; - var value = transformation[key]; - switch (key) { - case 'matrix': - _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").multiplyInto(result, result, value); - break; - case 'perspective': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reusePerspectiveCommand, [value]); - break; - case 'rotateX': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateXCommand, [_convertToRadians(value)]); - break; - case 'rotateY': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateYCommand, [_convertToRadians(value)]); - break; - case 'rotate': - case 'rotateZ': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseRotateZCommand, [_convertToRadians(value)]); - break; - case 'scale': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleCommand, [value]); - break; - case 'scaleX': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleXCommand, [value]); - break; - case 'scaleY': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseScaleYCommand, [value]); - break; - case 'translate': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate3dCommand, [value[0], value[1], value[2] || 0]); - break; - case 'translateX': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate2dCommand, [value, 0]); - break; - case 'translateY': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseTranslate2dCommand, [0, value]); - break; - case 'skewX': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseSkewXCommand, [_convertToRadians(value)]); - break; - case 'skewY': - _multiplyTransform(result, _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").reuseSkewYCommand, [_convertToRadians(value)]); - break; - default: - throw new Error('Invalid transform name: ' + key); - } - }); - return result; + // This is exposed as a getter because apps using the legacy renderer AND + // Fabric can define the binding lazily. If we evaluated the global and cached + // it in the module we might be caching an `undefined` value before it is set. + function getFabricUIManager() { + return global.nativeFabricUIManager; } +},237,[],"node_modules/react-native/Libraries/ReactNative/FabricUIManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function _multiplyTransform(result, matrixMathFunction, args) { - var matrixToApply = _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").createIdentityMatrix(); - var argsWithIdentity = [matrixToApply].concat(args); - matrixMathFunction.apply(this, argsWithIdentity); - _$$_REQUIRE(_dependencyMap[0], "../Utilities/MatrixMath").multiplyInto(result, result, matrixToApply); - } + 'use strict'; - function _convertToRadians(value) { - var floatValue = parseFloat(value); - return value.indexOf('rad') > -1 ? floatValue : floatValue * Math.PI / 180; - } - function _validateTransforms(transform) { - transform.forEach(function (transformation) { - var keys = Object.keys(transformation); - _$$_REQUIRE(_dependencyMap[1], "invariant")(keys.length === 1, 'You must specify exactly one property per transform object. Passed properties: %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - var key = keys[0]; - var value = transformation[key]; - _validateTransform(key, value, transformation); - }); - } - function _validateTransform(key, value, transformation) { - _$$_REQUIRE(_dependencyMap[1], "invariant")(!value.getValue, 'You passed an Animated.Value to a normal component. ' + 'You need to wrap that component in an Animated. For example, ' + 'replace by .'); - var multivalueTransforms = ['matrix', 'translate']; - if (multivalueTransforms.indexOf(key) !== -1) { - _$$_REQUIRE(_dependencyMap[1], "invariant")(Array.isArray(value), 'Transform with key of %s must have an array as the value: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - } - switch (key) { - case 'matrix': - _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', - value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - break; - case 'translate': - _$$_REQUIRE(_dependencyMap[1], "invariant")(value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', - value.length, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - break; - case 'rotateX': - case 'rotateY': - case 'rotateZ': - case 'rotate': - case 'skewX': - case 'skewY': - _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'string', 'Transform with key of "%s" must be a string: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - _$$_REQUIRE(_dependencyMap[1], "invariant")(value.indexOf('deg') > -1 || value.indexOf('rad') > -1, 'Rotate transform must be expressed in degrees (deg) or radians ' + '(rad): %s', _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - break; - case 'perspective': - _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - _$$_REQUIRE(_dependencyMap[1], "invariant")(value !== 0, 'Transform with key of "%s" cannot be zero: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - break; - case 'translateX': - case 'translateY': - case 'scale': - case 'scaleX': - case 'scaleY': - _$$_REQUIRE(_dependencyMap[1], "invariant")(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); - break; - default: - _$$_REQUIRE(_dependencyMap[1], "invariant")(false, 'Invalid transform %s: %s', key, _$$_REQUIRE(_dependencyMap[2], "../Utilities/stringifySafe").default(transformation)); + /** + * Unrolls an array comparison specially for matrices. Prioritizes + * checking of indices that are most likely to change so that the comparison + * bails as early as possible. + * + * @param {MatrixMath.Matrix} one First matrix. + * @param {MatrixMath.Matrix} two Second matrix. + * @return {boolean} Whether or not the two matrices differ. + */ + var matricesDiffer = function matricesDiffer(one, two) { + if (one === two) { + return false; } - } - module.exports = processTransform; -},186,[187,17,26],"node_modules/react-native/Libraries/StyleSheet/processTransform.js"); + return !one || !two || one[12] !== two[12] || one[13] !== two[13] || one[14] !== two[14] || one[5] !== two[5] || one[10] !== two[10] || one[0] !== two[0] || one[1] !== two[1] || one[2] !== two[2] || one[3] !== two[3] || one[4] !== two[4] || one[6] !== two[6] || one[7] !== two[7] || one[8] !== two[8] || one[9] !== two[9] || one[11] !== two[11] || one[15] !== two[15]; + }; + module.exports = matricesDiffer; +},238,[],"node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; - var MatrixMath = { - createIdentityMatrix: function createIdentityMatrix() { - return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; - }, - createCopy: function createCopy(m) { - return [m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]]; - }, - createOrthographic: function createOrthographic(left, right, bottom, top, near, far) { - var a = 2 / (right - left); - var b = 2 / (top - bottom); - var c = -2 / (far - near); - var tx = -(right + left) / (right - left); - var ty = -(top + bottom) / (top - bottom); - var tz = -(far + near) / (far - near); - return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1]; - }, - createFrustum: function createFrustum(left, right, bottom, top, near, far) { - var r_width = 1 / (right - left); - var r_height = 1 / (top - bottom); - var r_depth = 1 / (near - far); - var x = 2 * (near * r_width); - var y = 2 * (near * r_height); - var A = (right + left) * r_width; - var B = (top + bottom) * r_height; - var C = (far + near) * r_depth; - var D = 2 * (far * near * r_depth); - return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0]; - }, - createPerspective: function createPerspective(fovInRadians, aspect, near, far) { - var h = 1 / Math.tan(fovInRadians / 2); - var r_depth = 1 / (near - far); - var C = (far + near) * r_depth; - var D = 2 * (far * near * r_depth); - return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0]; - }, - createTranslate2d: function createTranslate2d(x, y) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseTranslate2dCommand(mat, x, y); - return mat; - }, - reuseTranslate2dCommand: function reuseTranslate2dCommand(matrixCommand, x, y) { - matrixCommand[12] = x; - matrixCommand[13] = y; - }, - reuseTranslate3dCommand: function reuseTranslate3dCommand(matrixCommand, x, y, z) { - matrixCommand[12] = x; - matrixCommand[13] = y; - matrixCommand[14] = z; - }, - createScale: function createScale(factor) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseScaleCommand(mat, factor); - return mat; - }, - reuseScaleCommand: function reuseScaleCommand(matrixCommand, factor) { - matrixCommand[0] = factor; - matrixCommand[5] = factor; - }, - reuseScale3dCommand: function reuseScale3dCommand(matrixCommand, x, y, z) { - matrixCommand[0] = x; - matrixCommand[5] = y; - matrixCommand[10] = z; - }, - reusePerspectiveCommand: function reusePerspectiveCommand(matrixCommand, p) { - matrixCommand[11] = -1 / p; - }, - reuseScaleXCommand: function reuseScaleXCommand(matrixCommand, factor) { - matrixCommand[0] = factor; - }, - reuseScaleYCommand: function reuseScaleYCommand(matrixCommand, factor) { - matrixCommand[5] = factor; - }, - reuseScaleZCommand: function reuseScaleZCommand(matrixCommand, factor) { - matrixCommand[10] = factor; - }, - reuseRotateXCommand: function reuseRotateXCommand(matrixCommand, radians) { - matrixCommand[5] = Math.cos(radians); - matrixCommand[6] = Math.sin(radians); - matrixCommand[9] = -Math.sin(radians); - matrixCommand[10] = Math.cos(radians); - }, - reuseRotateYCommand: function reuseRotateYCommand(matrixCommand, amount) { - matrixCommand[0] = Math.cos(amount); - matrixCommand[2] = -Math.sin(amount); - matrixCommand[8] = Math.sin(amount); - matrixCommand[10] = Math.cos(amount); - }, - reuseRotateZCommand: function reuseRotateZCommand(matrixCommand, radians) { - matrixCommand[0] = Math.cos(radians); - matrixCommand[1] = Math.sin(radians); - matrixCommand[4] = -Math.sin(radians); - matrixCommand[5] = Math.cos(radians); - }, - createRotateZ: function createRotateZ(radians) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseRotateZCommand(mat, radians); - return mat; - }, - reuseSkewXCommand: function reuseSkewXCommand(matrixCommand, radians) { - matrixCommand[4] = Math.tan(radians); - }, - reuseSkewYCommand: function reuseSkewYCommand(matrixCommand, radians) { - matrixCommand[1] = Math.tan(radians); - }, - multiplyInto: function multiplyInto(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3], - a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7], - a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11], - a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[4]; - b1 = b[5]; - b2 = b[6]; - b3 = b[7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[8]; - b1 = b[9]; - b2 = b[10]; - b3 = b[11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[12]; - b1 = b[13]; - b2 = b[14]; - b3 = b[15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - }, - determinant: function determinant(matrix) { - var _matrix = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(matrix, 16), - m00 = _matrix[0], - m01 = _matrix[1], - m02 = _matrix[2], - m03 = _matrix[3], - m10 = _matrix[4], - m11 = _matrix[5], - m12 = _matrix[6], - m13 = _matrix[7], - m20 = _matrix[8], - m21 = _matrix[9], - m22 = _matrix[10], - m23 = _matrix[11], - m30 = _matrix[12], - m31 = _matrix[13], - m32 = _matrix[14], - m33 = _matrix[15]; - return m03 * m12 * m21 * m30 - m02 * m13 * m21 * m30 - m03 * m11 * m22 * m30 + m01 * m13 * m22 * m30 + m02 * m11 * m23 * m30 - m01 * m12 * m23 * m30 - m03 * m12 * m20 * m31 + m02 * m13 * m20 * m31 + m03 * m10 * m22 * m31 - m00 * m13 * m22 * m31 - m02 * m10 * m23 * m31 + m00 * m12 * m23 * m31 + m03 * m11 * m20 * m32 - m01 * m13 * m20 * m32 - m03 * m10 * m21 * m32 + m00 * m13 * m21 * m32 + m01 * m10 * m23 * m32 - m00 * m11 * m23 * m32 - m02 * m11 * m20 * m33 + m01 * m12 * m20 * m33 + m02 * m10 * m21 * m33 - m00 * m12 * m21 * m33 - m01 * m10 * m22 * m33 + m00 * m11 * m22 * m33; - }, - inverse: function inverse(matrix) { - var det = MatrixMath.determinant(matrix); - if (!det) { - return matrix; - } - var _matrix2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(matrix, 16), - m00 = _matrix2[0], - m01 = _matrix2[1], - m02 = _matrix2[2], - m03 = _matrix2[3], - m10 = _matrix2[4], - m11 = _matrix2[5], - m12 = _matrix2[6], - m13 = _matrix2[7], - m20 = _matrix2[8], - m21 = _matrix2[9], - m22 = _matrix2[10], - m23 = _matrix2[11], - m30 = _matrix2[12], - m31 = _matrix2[13], - m32 = _matrix2[14], - m33 = _matrix2[15]; - return [(m12 * m23 * m31 - m13 * m22 * m31 + m13 * m21 * m32 - m11 * m23 * m32 - m12 * m21 * m33 + m11 * m22 * m33) / det, (m03 * m22 * m31 - m02 * m23 * m31 - m03 * m21 * m32 + m01 * m23 * m32 + m02 * m21 * m33 - m01 * m22 * m33) / det, (m02 * m13 * m31 - m03 * m12 * m31 + m03 * m11 * m32 - m01 * m13 * m32 - m02 * m11 * m33 + m01 * m12 * m33) / det, (m03 * m12 * m21 - m02 * m13 * m21 - m03 * m11 * m22 + m01 * m13 * m22 + m02 * m11 * m23 - m01 * m12 * m23) / det, (m13 * m22 * m30 - m12 * m23 * m30 - m13 * m20 * m32 + m10 * m23 * m32 + m12 * m20 * m33 - m10 * m22 * m33) / det, (m02 * m23 * m30 - m03 * m22 * m30 + m03 * m20 * m32 - m00 * m23 * m32 - m02 * m20 * m33 + m00 * m22 * m33) / det, (m03 * m12 * m30 - m02 * m13 * m30 - m03 * m10 * m32 + m00 * m13 * m32 + m02 * m10 * m33 - m00 * m12 * m33) / det, (m02 * m13 * m20 - m03 * m12 * m20 + m03 * m10 * m22 - m00 * m13 * m22 - m02 * m10 * m23 + m00 * m12 * m23) / det, (m11 * m23 * m30 - m13 * m21 * m30 + m13 * m20 * m31 - m10 * m23 * m31 - m11 * m20 * m33 + m10 * m21 * m33) / det, (m03 * m21 * m30 - m01 * m23 * m30 - m03 * m20 * m31 + m00 * m23 * m31 + m01 * m20 * m33 - m00 * m21 * m33) / det, (m01 * m13 * m30 - m03 * m11 * m30 + m03 * m10 * m31 - m00 * m13 * m31 - m01 * m10 * m33 + m00 * m11 * m33) / det, (m03 * m11 * m20 - m01 * m13 * m20 - m03 * m10 * m21 + m00 * m13 * m21 + m01 * m10 * m23 - m00 * m11 * m23) / det, (m12 * m21 * m30 - m11 * m22 * m30 - m12 * m20 * m31 + m10 * m22 * m31 + m11 * m20 * m32 - m10 * m21 * m32) / det, (m01 * m22 * m30 - m02 * m21 * m30 + m02 * m20 * m31 - m00 * m22 * m31 - m01 * m20 * m32 + m00 * m21 * m32) / det, (m02 * m11 * m30 - m01 * m12 * m30 - m02 * m10 * m31 + m00 * m12 * m31 + m01 * m10 * m32 - m00 * m11 * m32) / det, (m01 * m12 * m20 - m02 * m11 * m20 + m02 * m10 * m21 - m00 * m12 * m21 - m01 * m10 * m22 + m00 * m11 * m22) / det]; - }, - transpose: function transpose(m) { - return [m[0], m[4], m[8], m[12], m[1], m[5], m[9], m[13], m[2], m[6], m[10], m[14], m[3], m[7], m[11], m[15]]; - }, - multiplyVectorByMatrix: function multiplyVectorByMatrix(v, m) { - var _v = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(v, 4), - vx = _v[0], - vy = _v[1], - vz = _v[2], - vw = _v[3]; - return [vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12], vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13], vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14], vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15]]; - }, - v3Length: function v3Length(a) { - return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]); - }, - v3Normalize: function v3Normalize(vector, v3Length) { - var im = 1 / (v3Length || MatrixMath.v3Length(vector)); - return [vector[0] * im, vector[1] * im, vector[2] * im]; - }, - v3Dot: function v3Dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; - }, - v3Combine: function v3Combine(a, b, aScale, bScale) { - return [aScale * a[0] + bScale * b[0], aScale * a[1] + bScale * b[1], aScale * a[2] + bScale * b[2]]; - }, - v3Cross: function v3Cross(a, b) { - return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; - }, - quaternionToDegreesXYZ: function quaternionToDegreesXYZ(q, matrix, row) { - var _q = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray")(q, 4), - qx = _q[0], - qy = _q[1], - qz = _q[2], - qw = _q[3]; - var qw2 = qw * qw; - var qx2 = qx * qx; - var qy2 = qy * qy; - var qz2 = qz * qz; - var test = qx * qy + qz * qw; - var unit = qw2 + qx2 + qy2 + qz2; - var conv = 180 / Math.PI; - if (test > 0.49999 * unit) { - return [0, 2 * Math.atan2(qx, qw) * conv, 90]; - } - if (test < -0.49999 * unit) { - return [0, -2 * Math.atan2(qx, qw) * conv, -90]; - } - return [MatrixMath.roundTo3Places(Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv)]; - }, - roundTo3Places: function roundTo3Places(n) { - var arr = n.toString().split('e'); - return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001; - }, - decomposeMatrix: function decomposeMatrix(transformMatrix) { - _$$_REQUIRE(_dependencyMap[1], "invariant")(transformMatrix.length === 16, 'Matrix decomposition needs a list of 3d matrix values, received %s', transformMatrix); - - var perspective = []; - var quaternion = []; - var scale = []; - var skew = []; - var translation = []; - - if (!transformMatrix[15]) { - return; - } - var matrix = []; - var perspectiveMatrix = []; - for (var i = 0; i < 4; i++) { - matrix.push([]); - for (var j = 0; j < 4; j++) { - var value = transformMatrix[i * 4 + j] / transformMatrix[15]; - matrix[i].push(value); - perspectiveMatrix.push(j === 3 ? 0 : value); - } - } - perspectiveMatrix[15] = 1; - - if (!MatrixMath.determinant(perspectiveMatrix)) { - return; - } - - if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) { - var rightHandSide = [matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]]; - - var inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix); - var transposedInversePerspectiveMatrix = MatrixMath.transpose(inversePerspectiveMatrix); - perspective = MatrixMath.multiplyVectorByMatrix(rightHandSide, transposedInversePerspectiveMatrix); - } else { - perspective[0] = perspective[1] = perspective[2] = 0; - perspective[3] = 1; - } - - for (var _i = 0; _i < 3; _i++) { - translation[_i] = matrix[3][_i]; - } + var dummyPoint = { + x: undefined, + y: undefined + }; + var pointsDiffer = function pointsDiffer(one, two) { + one = one || dummyPoint; + two = two || dummyPoint; + return one !== two && (one.x !== two.x || one.y !== two.y); + }; + module.exports = pointsDiffer; +},239,[],"node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var row = []; - for (var _i2 = 0; _i2 < 3; _i2++) { - row[_i2] = [matrix[_i2][0], matrix[_i2][1], matrix[_i2][2]]; - } + 'use strict'; - scale[0] = MatrixMath.v3Length(row[0]); - row[0] = MatrixMath.v3Normalize(row[0], scale[0]); + var dummyInsets = { + top: undefined, + left: undefined, + right: undefined, + bottom: undefined + }; + var insetsDiffer = function insetsDiffer(one, two) { + one = one || dummyInsets; + two = two || dummyInsets; + return one !== two && (one.top !== two.top || one.left !== two.left || one.right !== two.right || one.bottom !== two.bottom); + }; + module.exports = insetsDiffer; +},240,[],"node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - skew[0] = MatrixMath.v3Dot(row[0], row[1]); - row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); + 'use strict'; - scale[1] = MatrixMath.v3Length(row[1]); - row[1] = MatrixMath.v3Normalize(row[1], scale[1]); - skew[0] /= scale[1]; + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./processColor")); + var TRANSPARENT = 0; // rgba(0, 0, 0, 0) - skew[1] = MatrixMath.v3Dot(row[0], row[2]); - row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]); - skew[2] = MatrixMath.v3Dot(row[1], row[2]); - row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]); + function processColorArray(colors) { + return colors == null ? null : colors.map(processColorElement); + } + function processColorElement(color) { + var value = (0, _processColor.default)(color); + // For invalid colors, fallback to transparent. + if (value == null) { + console.error('Invalid value in color array:', color); + return TRANSPARENT; + } + return value; + } + module.exports = processColorArray; +},241,[3,174],"node_modules/react-native/Libraries/StyleSheet/processColorArray.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - scale[2] = MatrixMath.v3Length(row[2]); - row[2] = MatrixMath.v3Normalize(row[2], scale[2]); - skew[1] /= scale[2]; - skew[2] /= scale[2]; + // Resolves an asset into a `source` for `Image`. - var pdum3 = MatrixMath.v3Cross(row[1], row[2]); - if (MatrixMath.v3Dot(row[0], pdum3) < 0) { - for (var _i3 = 0; _i3 < 3; _i3++) { - scale[_i3] *= -1; - row[_i3][0] *= -1; - row[_i3][1] *= -1; - row[_i3][2] *= -1; - } - } + 'use strict'; - quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0)); - quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0)); - quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0)); - quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0)); - if (row[2][1] > row[1][2]) { - quaternion[0] = -quaternion[0]; - } - if (row[0][2] > row[2][0]) { - quaternion[1] = -quaternion[1]; + var _customSourceTransformer, _serverURL, _scriptURL; + var _sourceCodeScriptURL; + function getSourceCodeScriptURL() { + if (_sourceCodeScriptURL) { + return _sourceCodeScriptURL; + } + var sourceCode = global.nativeExtensions && global.nativeExtensions.SourceCode; + if (!sourceCode) { + sourceCode = _$$_REQUIRE(_dependencyMap[0], "../NativeModules/specs/NativeSourceCode").default; + } + _sourceCodeScriptURL = sourceCode.getConstants().scriptURL; + return _sourceCodeScriptURL; + } + function getDevServerURL() { + if (_serverURL === undefined) { + var sourceCodeScriptURL = getSourceCodeScriptURL(); + var match = sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\/\/.*?\//); + if (match) { + // jsBundle was loaded from network + _serverURL = match[0]; + } else { + // jsBundle was loaded from file + _serverURL = null; } - if (row[1][0] > row[0][1]) { - quaternion[2] = -quaternion[2]; + } + return _serverURL; + } + function _coerceLocalScriptURL(scriptURL) { + if (scriptURL) { + if (scriptURL.startsWith('assets://')) { + // android: running from within assets, no offline path to use + return null; } - - var rotationDegrees; - if (quaternion[0] < 0.001 && quaternion[0] >= 0 && quaternion[1] < 0.001 && quaternion[1] >= 0) { - rotationDegrees = [0, 0, MatrixMath.roundTo3Places(Math.atan2(row[0][1], row[0][0]) * 180 / Math.PI)]; - } else { - rotationDegrees = MatrixMath.quaternionToDegreesXYZ(quaternion, matrix, row); + scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1); + if (!scriptURL.includes('://')) { + // Add file protocol in case we have an absolute file path and not a URL. + // This shouldn't really be necessary. scriptURL should be a URL. + scriptURL = 'file://' + scriptURL; } - - return { - rotationDegrees: rotationDegrees, - perspective: perspective, - quaternion: quaternion, - scale: scale, - skew: skew, - translation: translation, - rotate: rotationDegrees[2], - rotateX: rotationDegrees[0], - rotateY: rotationDegrees[1], - scaleX: scale[0], - scaleY: scale[1], - translateX: translation[0], - translateY: translation[1] - }; } - }; - module.exports = MatrixMath; -},187,[19,17],"node_modules/react-native/Libraries/Utilities/MatrixMath.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var dummySize = { - width: undefined, - height: undefined - }; - var sizesDiffer = function sizesDiffer(one, two) { - var defaultedOne = one || dummySize; - var defaultedTwo = two || dummySize; - return defaultedOne !== defaultedTwo && (defaultedOne.width !== defaultedTwo.width || defaultedOne.height !== defaultedTwo.height); - }; - module.exports = sizesDiffer; -},188,[],"node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + return scriptURL; + } + function getScriptURL() { + if (_scriptURL === undefined) { + _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL()); + } + return _scriptURL; + } + function setCustomSourceTransformer(transformer) { + _customSourceTransformer = transformer; + } - function flattenStyle(style) { - if (style === null || typeof style !== 'object') { - return undefined; + /** + * `source` is either a number (opaque type returned by require('./foo.png')) + * or an `ImageSource` like { uri: '' } + */ + function resolveAssetSource(source) { + if (typeof source === 'object') { + return source; } - if (!Array.isArray(style)) { - return style; + var asset = _$$_REQUIRE(_dependencyMap[1], "@react-native/assets-registry/registry").getAssetByID(source); + if (!asset) { + return null; } - var result = {}; - for (var i = 0, styleLength = style.length; i < styleLength; ++i) { - var computedStyle = flattenStyle(style[i]); - if (computedStyle) { - for (var key in computedStyle) { - result[key] = computedStyle[key]; - } - } + var resolver = new (_$$_REQUIRE(_dependencyMap[2], "./AssetSourceResolver"))(getDevServerURL(), getScriptURL(), asset); + if (_customSourceTransformer) { + return _customSourceTransformer(resolver); } - return result; + return resolver.defaultAsset(); } - module.exports = flattenStyle; -},189,[],"node_modules/react-native/Libraries/StyleSheet/flattenStyle.js"); + resolveAssetSource.pickScale = _$$_REQUIRE(_dependencyMap[3], "./AssetUtils").pickScale; + resolveAssetSource.setCustomSourceTransformer = setCustomSourceTransformer; + module.exports = resolveAssetSource; +},242,[84,243,244,245],"node_modules/react-native/Libraries/Image/resolveAssetSource.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; - var JSInspector = { - registerAgent: function registerAgent(type) { - if (global.__registerInspectorAgent) { - global.__registerInspectorAgent(type); - } - }, - getTimestamp: function getTimestamp() { - return global.__inspectorTimestamp(); - } + var assets = []; + function registerAsset(asset) { + // `push` returns new array length, so the first asset will + // get id 1 (not 0) to make the value truthy + return assets.push(asset); + } + function getAssetByID(assetId) { + return assets[assetId - 1]; + } + module.exports = { + registerAsset: registerAsset, + getAssetByID: getAssetByID }; - module.exports = JSInspector; -},190,[],"node_modules/react-native/Libraries/JSInspector/JSInspector.js"); +},243,[],"node_modules/@react-native/assets-registry/registry.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var Interceptor = function () { - function Interceptor(agent) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, Interceptor); - this._agent = agent; - this._requests = new Map(); + /** + * Returns a path like 'assets/AwesomeModule/icon@2x.png' + */ + function getScaledAssetPath(asset) { + var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").default.get()); + var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; + var assetDir = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets-registry/path-support").getBasePath(asset); + return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type; + } + + /** + * Returns a path like 'drawable-mdpi/icon.png' + */ + function getAssetPathInDrawableFolder(asset) { + var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").default.get()); + var drawableFolder = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets-registry/path-support").getAndroidResourceFolderName(asset, scale); + var fileName = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets-registry/path-support").getAndroidResourceIdentifier(asset); + return drawableFolder + '/' + fileName + '.' + asset.type; + } + var AssetSourceResolver = /*#__PURE__*/function () { + // where the jsbundle is being run from + + // the asset to resolve + + function AssetSourceResolver(serverUrl, jsbundleUrl, asset) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AssetSourceResolver); + this.serverUrl = serverUrl; + this.jsbundleUrl = jsbundleUrl; + this.asset = asset; } - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(Interceptor, [{ - key: "getData", - value: function getData(requestId) { - return this._requests.get(requestId); + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AssetSourceResolver, [{ + key: "isLoadedFromServer", + value: function isLoadedFromServer() { + return !!this.serverUrl; } }, { - key: "requestSent", - value: function requestSent(id, url, method, headers) { - var requestId = String(id); - this._requests.set(requestId, ''); - var request = { - url: url, - method: method, - headers: headers, - initialPriority: 'Medium' - }; - var event = { - requestId: requestId, - documentURL: '', - frameId: '1', - loaderId: '1', - request: request, - timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), - initiator: { - type: 'other' - }, - type: 'Other' - }; - this._agent.sendEvent('requestWillBeSent', event); + key: "isLoadedFromFileSystem", + value: function isLoadedFromFileSystem() { + return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://')); } }, { - key: "responseReceived", - value: function responseReceived(id, url, status, headers) { - var requestId = String(id); - var response = { - url: url, - status: status, - statusText: String(status), - headers: headers, - requestHeaders: {}, - mimeType: this._getMimeType(headers), - connectionReused: false, - connectionId: -1, - encodedDataLength: 0, - securityState: 'unknown' - }; - var event = { - requestId: requestId, - frameId: '1', - loaderId: '1', - timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), - type: 'Other', - response: response - }; - this._agent.sendEvent('responseReceived', event); + key: "defaultAsset", + value: function defaultAsset() { + if (this.isLoadedFromServer()) { + return this.assetServerURL(); + } + if ("ios" === 'android') { + return this.isLoadedFromFileSystem() ? this.drawableFolderInBundle() : this.resourceIdentifierWithoutScale(); + } else { + return this.scaledAssetURLNearBundle(); + } } + + /** + * Returns an absolute URL which can be used to fetch the asset + * from the devserver + */ }, { - key: "dataReceived", - value: function dataReceived(id, data) { - var requestId = String(id); - var existingData = this._requests.get(requestId) || ''; - this._requests.set(requestId, existingData.concat(data)); - var event = { - requestId: requestId, - timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), - dataLength: data.length, - encodedDataLength: data.length - }; - this._agent.sendEvent('dataReceived', event); + key: "assetServerURL", + value: function assetServerURL() { + _$$_REQUIRE(_dependencyMap[5], "invariant")(!!this.serverUrl, 'need server to load from'); + return this.fromSource(this.serverUrl + getScaledAssetPath(this.asset) + '?platform=' + "ios" + '&hash=' + this.asset.hash); } + + /** + * Resolves to just the scaled asset filename + * E.g. 'assets/AwesomeModule/icon@2x.png' + */ }, { - key: "loadingFinished", - value: function loadingFinished(id, encodedDataLength) { - var event = { - requestId: String(id), - timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), - encodedDataLength: encodedDataLength - }; - this._agent.sendEvent('loadingFinished', event); + key: "scaledAssetPath", + value: function scaledAssetPath() { + return this.fromSource(getScaledAssetPath(this.asset)); } + + /** + * Resolves to where the bundle is running from, with a scaled asset filename + * E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png' + */ }, { - key: "loadingFailed", - value: function loadingFailed(id, error) { - var event = { - requestId: String(id), - timestamp: _$$_REQUIRE(_dependencyMap[4], "./JSInspector").getTimestamp(), - type: 'Other', - errorText: error - }; - this._agent.sendEvent('loadingFailed', event); + key: "scaledAssetURLNearBundle", + value: function scaledAssetURLNearBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource( + // Assets can have relative paths outside of the project root. + // When bundling them we replace `../` with `_` to make sure they + // don't end up outside of the expected assets directory. + path + getScaledAssetPath(this.asset).replace(/\.\.\//g, '_')); } + + /** + * The default location of assets bundled with the app, located by + * resource identifier + * The Android resource system picks the correct scale. + * E.g. 'assets_awesomemodule_icon' + */ }, { - key: "_getMimeType", - value: function _getMimeType(headers) { - var contentType = headers['Content-Type'] || ''; - return contentType.split(';')[0]; - } - }]); - return Interceptor; - }(); - var NetworkAgent = function (_InspectorAgent) { - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")(NetworkAgent, _InspectorAgent); - var _super = _createSuper(NetworkAgent); - function NetworkAgent() { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")(this, NetworkAgent); - return _super.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")(NetworkAgent, [{ - key: "enable", - value: function enable(_ref) { - var maxResourceBufferSize = _ref.maxResourceBufferSize, - maxTotalBufferSize = _ref.maxTotalBufferSize; - this._interceptor = new Interceptor(this); - _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(this._interceptor); + key: "resourceIdentifierWithoutScale", + value: function resourceIdentifierWithoutScale() { + _$$_REQUIRE(_dependencyMap[5], "invariant")("ios" === 'android', 'resource identifiers work on Android'); + return this.fromSource(_$$_REQUIRE(_dependencyMap[2], "@react-native/assets-registry/path-support").getAndroidResourceIdentifier(this.asset)); } + + /** + * If the jsbundle is running from a sideload location, this resolves assets + * relative to its location + * E.g. 'file:///sdcard/AwesomeModule/drawable-mdpi/icon.png' + */ }, { - key: "disable", - value: function disable() { - _$$_REQUIRE(_dependencyMap[6], "../Network/XMLHttpRequest").setInterceptor(null); - this._interceptor = null; + key: "drawableFolderInBundle", + value: function drawableFolderInBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource(path + getAssetPathInDrawableFolder(this.asset)); } }, { - key: "getResponseBody", - value: function getResponseBody(_ref2) { - var requestId = _ref2.requestId; + key: "fromSource", + value: function fromSource(source) { return { - body: this.interceptor().getData(requestId), - base64Encoded: false + __packager_asset: true, + width: this.asset.width, + height: this.asset.height, + uri: source, + scale: _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(this.asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").default.get()) }; } - }, { - key: "interceptor", - value: function interceptor() { - if (this._interceptor) { - return this._interceptor; - } else { - throw Error('_interceptor can not be null'); - } - } - }]); - return NetworkAgent; - }(_$$_REQUIRE(_dependencyMap[7], "./InspectorAgent")); - NetworkAgent.DOMAIN = 'Network'; - module.exports = NetworkAgent; -},191,[46,47,12,13,190,50,114,192],"node_modules/react-native/Libraries/JSInspector/NetworkAgent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var InspectorAgent = function () { - function InspectorAgent(eventSender) { - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, InspectorAgent); - this._eventSender = eventSender; - } - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(InspectorAgent, [{ - key: "sendEvent", - value: function sendEvent(name, params) { - this._eventSender(name, params); - } }]); - return InspectorAgent; + return AssetSourceResolver; }(); - module.exports = InspectorAgent; -},192,[12,13],"node_modules/react-native/Libraries/JSInspector/InspectorAgent.js"); + AssetSourceResolver.pickScale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale; + module.exports = AssetSourceResolver; +},244,[245,246,249,12,13,20],"node_modules/react-native/Libraries/Image/AssetSourceResolver.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getUrlCacheBreaker = getUrlCacheBreaker; + exports.pickScale = pickScale; + exports.setUrlCacheBreaker = setUrlCacheBreaker; + var _PixelRatio = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - 'use strict'; - - if (__DEV__) { - var DevSettings = _$$_REQUIRE(_dependencyMap[0], "../Utilities/DevSettings"); - if (typeof DevSettings.reload !== 'function') { - throw new Error('Could not find the reload() implementation.'); + var cacheBreaker; + var warnIfCacheBreakerUnset = true; + function pickScale(scales, deviceScale) { + if (deviceScale == null) { + deviceScale = _PixelRatio.default.get(); } - - var ReactRefreshRuntime = _$$_REQUIRE(_dependencyMap[1], "react-refresh/runtime"); - ReactRefreshRuntime.injectIntoGlobalHook(global); - var Refresh = { - performFullRefresh: function performFullRefresh(reason) { - DevSettings.reload(reason); - }, - createSignatureFunctionForTransform: ReactRefreshRuntime.createSignatureFunctionForTransform, - isLikelyComponentType: ReactRefreshRuntime.isLikelyComponentType, - getFamilyByType: ReactRefreshRuntime.getFamilyByType, - register: ReactRefreshRuntime.register, - performReactRefresh: function performReactRefresh() { - if (ReactRefreshRuntime.hasUnrecoverableErrors()) { - DevSettings.reload('Fast Refresh - Unrecoverable'); - return; - } - ReactRefreshRuntime.performReactRefresh(); - DevSettings.onFastRefresh(); + // Packager guarantees that `scales` array is sorted + for (var i = 0; i < scales.length; i++) { + if (scales[i] >= deviceScale) { + return scales[i]; } - }; + } - global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__ReactRefresh'] = Refresh; + // If nothing matches, device scale is larger than any available + // scales, so we return the biggest one. Unless the array is empty, + // in which case we default to 1 + return scales[scales.length - 1] || 1; } -},193,[169,194],"node_modules/react-native/Libraries/Core/setUpReactRefresh.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - if (process.env.NODE_ENV === 'production') { - module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-refresh-runtime.production.min.js"); - } else { - module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-refresh-runtime.development.js"); + function setUrlCacheBreaker(appendage) { + cacheBreaker = appendage; + } + function getUrlCacheBreaker() { + if (cacheBreaker == null) { + if (__DEV__ && warnIfCacheBreakerUnset) { + warnIfCacheBreakerUnset = false; + console.warn('AssetUtils.getUrlCacheBreaker: Cache breaker value is unset'); + } + return ''; + } + return cacheBreaker; } -},194,[195,196],"node_modules/react-refresh/runtime.js"); +},245,[3,246],"node_modules/react-native/Libraries/Image/AssetUtils.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** @license React vundefined - * react-refresh-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. + * + * @format + * */ 'use strict'; - throw Error("React Refresh runtime should not be included in the production bundle."); -},195,[],"node_modules/react-refresh/cjs/react-refresh-runtime.production.min.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** @license React vundefined - * react-refresh-runtime.development.js + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * PixelRatio class gives access to the device pixel density. * - * Copyright (c) Facebook, Inc. and its affiliates. + * ## Fetching a correctly sized image * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - 'use strict'; - - if (process.env.NODE_ENV !== "production") { - (function () { - 'use strict'; - - var hasSymbol = typeof Symbol === 'function' && Symbol.for; - - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; - var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; - - var allFamiliesByID = new Map(); - var allFamiliesByType = new PossiblyWeakMap(); - var allSignaturesByType = new PossiblyWeakMap(); - - var updatedFamiliesByType = new PossiblyWeakMap(); - - var pendingUpdates = []; - - var helpersByRendererID = new Map(); - var helpersByRoot = new Map(); - - var mountedRoots = new Set(); - - var failedRoots = new Map(); - var didSomeRootFailOnMount = false; - function computeFullKey(signature) { - if (signature.fullKey !== null) { - return signature.fullKey; - } - var fullKey = signature.ownKey; - var hooks; - try { - hooks = signature.getCustomHooks(); - } catch (err) { - signature.forceReset = true; - signature.fullKey = fullKey; - return fullKey; - } - for (var i = 0; i < hooks.length; i++) { - var hook = hooks[i]; - if (typeof hook !== 'function') { - signature.forceReset = true; - signature.fullKey = fullKey; - return fullKey; - } - var nestedHookSignature = allSignaturesByType.get(hook); - if (nestedHookSignature === undefined) { - continue; - } - var nestedHookKey = computeFullKey(nestedHookSignature); - if (nestedHookSignature.forceReset) { - signature.forceReset = true; - } - fullKey += '\n---\n' + nestedHookKey; - } - signature.fullKey = fullKey; - return fullKey; - } - function haveEqualSignatures(prevType, nextType) { - var prevSignature = allSignaturesByType.get(prevType); - var nextSignature = allSignaturesByType.get(nextType); - if (prevSignature === undefined && nextSignature === undefined) { - return true; - } - if (prevSignature === undefined || nextSignature === undefined) { - return false; - } - if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) { - return false; - } - if (nextSignature.forceReset) { - return false; - } - return true; - } - function isReactClass(type) { - return type.prototype && type.prototype.isReactComponent; - } - function canPreserveStateBetween(prevType, nextType) { - if (isReactClass(prevType) || isReactClass(nextType)) { - return false; - } - if (haveEqualSignatures(prevType, nextType)) { - return true; - } - return false; - } - function resolveFamily(type) { - return updatedFamiliesByType.get(type); + * You should get a higher resolution image if you are on a high pixel density + * device. A good rule of thumb is to multiply the size of the image you display + * by the pixel ratio. + * + * ``` + * var image = getImage({ + * width: PixelRatio.getPixelSizeForLayoutSize(200), + * height: PixelRatio.getPixelSizeForLayoutSize(100), + * }); + * + * ``` + * + * ## Pixel grid snapping + * + * In iOS, you can specify positions and dimensions for elements with arbitrary + * precision, for example 29.674825. But, ultimately the physical display only + * have a fixed number of pixels, for example 640ร—960 for iPhone 4 or 750ร—1334 + * for iPhone 6. iOS tries to be as faithful as possible to the user value by + * spreading one original pixel into multiple ones to trick the eye. The + * downside of this technique is that it makes the resulting element look + * blurry. + * + * In practice, we found out that developers do not want this feature and they + * have to work around it by doing manual rounding in order to avoid having + * blurry elements. In React Native, we are rounding all the pixels + * automatically. + * + * We have to be careful when to do this rounding. You never want to work with + * rounded and unrounded values at the same time as you're going to accumulate + * rounding errors. Having even one rounding error is deadly because a one + * pixel border may vanish or be twice as big. + * + * In React Native, everything in JavaScript and within the layout engine works + * with arbitrary precision numbers. It's only when we set the position and + * dimensions of the native element on the main thread that we round. Also, + * rounding is done relative to the root rather than the parent, again to avoid + * accumulating rounding errors. + * + */ + var PixelRatio = /*#__PURE__*/function () { + function PixelRatio() { + (0, _classCallCheck2.default)(this, PixelRatio); + } + (0, _createClass2.default)(PixelRatio, null, [{ + key: "get", + value: + /** + * Returns the device pixel density. Some examples: + * + * - PixelRatio.get() === 1 + * - mdpi Android devices (160 dpi) + * - PixelRatio.get() === 1.5 + * - hdpi Android devices (240 dpi) + * - PixelRatio.get() === 2 + * - iPhone 4, 4S + * - iPhone 5, 5c, 5s + * - iPhone 6 + * - iPhone 7 + * - iPhone 8 + * - iPhone SE + * - xhdpi Android devices (320 dpi) + * - PixelRatio.get() === 3 + * - iPhone 6 Plus + * - iPhone 7 Plus + * - iPhone 8 Plus + * - iPhone X + * - xxhdpi Android devices (480 dpi) + * - PixelRatio.get() === 3.5 + * - Nexus 6 + */ + function get() { + return _$$_REQUIRE(_dependencyMap[3], "./Dimensions").default.get('window').scale; } - function performReactRefresh() { - { - if (pendingUpdates.length === 0) { - return null; - } - var staleFamilies = new Set(); - var updatedFamilies = new Set(); - var updates = pendingUpdates; - pendingUpdates = []; - updates.forEach(function (_ref) { - var family = _ref[0], - nextType = _ref[1]; - var prevType = family.current; - updatedFamiliesByType.set(prevType, family); - updatedFamiliesByType.set(nextType, family); - family.current = nextType; - - if (canPreserveStateBetween(prevType, nextType)) { - updatedFamilies.add(family); - } else { - staleFamilies.add(family); - } - }); - - var update = { - updatedFamilies: updatedFamilies, - staleFamilies: staleFamilies - }; - - helpersByRendererID.forEach(function (helpers) { - helpers.setRefreshHandler(resolveFamily); - }); - var didError = false; - var firstError = null; - failedRoots.forEach(function (element, root) { - var helpers = helpersByRoot.get(root); - if (helpers === undefined) { - throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); - } - try { - helpers.scheduleRoot(root, element); - } catch (err) { - if (!didError) { - didError = true; - firstError = err; - } - } - }); - mountedRoots.forEach(function (root) { - var helpers = helpersByRoot.get(root); - if (helpers === undefined) { - throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); - } - try { - helpers.scheduleRefresh(root, update); - } catch (err) { - if (!didError) { - didError = true; - firstError = err; - } - } - }); - - if (didError) { - throw firstError; - } - return update; - } + /** + * Returns the scaling factor for font sizes. This is the ratio that is used to calculate the + * absolute font size, so any elements that heavily depend on that should use this to do + * calculations. + * + * If a font scale is not set, this returns the device pixel ratio. + * + * This reflects the user preference set in: + * - Settings > Display > Font size on Android, + * - Settings > Display & Brightness > Text Size on iOS. + */ + }, { + key: "getFontScale", + value: function getFontScale() { + return _$$_REQUIRE(_dependencyMap[3], "./Dimensions").default.get('window').fontScale || PixelRatio.get(); } - function register(type, id) { - { - if (type === null) { - return; - } - if (typeof type !== 'function' && typeof type !== 'object') { - return; - } - - if (allFamiliesByType.has(type)) { - return; - } - - var family = allFamiliesByID.get(id); - if (family === undefined) { - family = { - current: type - }; - allFamiliesByID.set(id, family); - } else { - pendingUpdates.push([family, type]); - } - allFamiliesByType.set(type, family); - if (typeof type === 'object' && type !== null) { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - register(type.render, id + '$render'); - break; - case REACT_MEMO_TYPE: - register(type.type, id + '$type'); - break; - } - } - } - } - function setSignature(type, key) { - var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined; - { - allSignaturesByType.set(type, { - forceReset: forceReset, - ownKey: key, - fullKey: null, - getCustomHooks: getCustomHooks || function () { - return []; - } - }); - } + /** + * Converts a layout size (dp) to pixel size (px). + * + * Guaranteed to return an integer number. + */ + }, { + key: "getPixelSizeForLayoutSize", + value: function getPixelSizeForLayoutSize(layoutSize) { + return Math.round(layoutSize * PixelRatio.get()); } - function collectCustomHooksForSignature(type) { - { - var signature = allSignaturesByType.get(type); - if (signature !== undefined) { - computeFullKey(signature); - } - } - } - function getFamilyByID(id) { - { - return allFamiliesByID.get(id); - } - } - function getFamilyByType(type) { - { - return allFamiliesByType.get(type); - } - } - function findAffectedHostInstances(families) { - { - var affectedInstances = new Set(); - mountedRoots.forEach(function (root) { - var helpers = helpersByRoot.get(root); - if (helpers === undefined) { - throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); - } - var instancesForRoot = helpers.findHostInstancesForRefresh(root, families); - instancesForRoot.forEach(function (inst) { - affectedInstances.add(inst); - }); - }); - return affectedInstances; - } + /** + * Rounds a layout size (dp) to the nearest layout size that corresponds to + * an integer number of pixels. For example, on a device with a PixelRatio + * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to + * exactly (8.33 * 3) = 25 pixels. + */ + }, { + key: "roundToNearestPixel", + value: function roundToNearestPixel(layoutSize) { + var ratio = PixelRatio.get(); + return Math.round(layoutSize * ratio) / ratio; } - function injectIntoGlobalHook(globalObject) { - { - var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook === undefined) { - var nextID = 0; - globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = { - supportsFiber: true, - inject: function inject(injected) { - return nextID++; - }, - onCommitFiberRoot: function onCommitFiberRoot(id, root, maybePriorityLevel, didError) {}, - onCommitFiberUnmount: function onCommitFiberUnmount() {} - }; - } - - var oldInject = hook.inject; - hook.inject = function (injected) { - var id = oldInject.apply(this, arguments); - if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') { - helpersByRendererID.set(id, injected); - } - return id; - }; - var oldOnCommitFiberRoot = hook.onCommitFiberRoot; - hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) { - var helpers = helpersByRendererID.get(id); - if (helpers === undefined) { - return; - } - helpersByRoot.set(root, helpers); - var current = root.current; - var alternate = current.alternate; + // No-op for iOS, but used on the web. Should not be documented. + }, { + key: "startDetecting", + value: function startDetecting() {} + }]); + return PixelRatio; + }(); + var _default = PixelRatio; + exports.default = _default; +},246,[3,12,13,247],"node_modules/react-native/Libraries/Utilities/PixelRatio.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/RCTDeviceEventEmitter")); + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../vendor/emitter/EventEmitter")); + var _NativeDeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeDeviceInfo")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - if (alternate !== null) { - var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null; - var isMounted = current.memoizedState != null && current.memoizedState.element != null; - if (!wasMounted && isMounted) { - mountedRoots.add(root); - failedRoots.delete(root); - } else if (wasMounted && isMounted) { - } else if (wasMounted && !isMounted) { - mountedRoots.delete(root); - if (didError) { - failedRoots.set(root, alternate.memoizedState.element); - } else { - helpersByRoot.delete(root); - } - } else if (!wasMounted && !isMounted) { - if (didError && !failedRoots.has(root)) { - didSomeRootFailOnMount = true; - } - } - } else { - mountedRoots.add(root); - } - return oldOnCommitFiberRoot.apply(this, arguments); - }; - } - } - function hasUnrecoverableErrors() { - return didSomeRootFailOnMount; + var eventEmitter = new _EventEmitter.default(); + var dimensionsInitialized = false; + var dimensions; + var Dimensions = /*#__PURE__*/function () { + function Dimensions() { + (0, _classCallCheck2.default)(this, Dimensions); + } + (0, _createClass2.default)(Dimensions, null, [{ + key: "get", + value: + /** + * NOTE: `useWindowDimensions` is the preferred API for React components. + * + * Initial dimensions are set before `runApplication` is called so they should + * be available before any other require's are run, but may be updated later. + * + * Note: Although dimensions are available immediately, they may change (e.g + * due to device rotation) so any rendering logic or styles that depend on + * these constants should try to call this function on every render, rather + * than caching the value (for example, using inline styles rather than + * setting a value in a `StyleSheet`). + * + * Example: `const {height, width} = Dimensions.get('window');` + * + * @param {string} dim Name of dimension as defined when calling `set`. + * @returns {DisplayMetrics? | DisplayMetricsAndroid?} Value for the dimension. + */ + function get(dim) { + (0, _invariant.default)(dimensions[dim], 'No dimension set for key ' + dim); + return dimensions[dim]; } - function _getMountedRootCount() { - { - return mountedRoots.size; + /** + * This should only be called from native code by sending the + * didUpdateDimensions event. + * + * @param {DimensionsPayload} dims Simple string-keyed object of dimensions to set + */ + }, { + key: "set", + value: function set(dims) { + // We calculate the window dimensions in JS so that we don't encounter loss of + // precision in transferring the dimensions (which could be non-integers) over + // the bridge. + var screen = dims.screen, + window = dims.window; + var windowPhysicalPixels = dims.windowPhysicalPixels; + if (windowPhysicalPixels) { + window = { + width: windowPhysicalPixels.width / windowPhysicalPixels.scale, + height: windowPhysicalPixels.height / windowPhysicalPixels.scale, + scale: windowPhysicalPixels.scale, + fontScale: windowPhysicalPixels.fontScale + }; } - } - - function createSignatureFunctionForTransform() { - { - var status = 'needsSignature'; - var savedType; - var hasCustomHooks; - return function (type, key, forceReset, getCustomHooks) { - switch (status) { - case 'needsSignature': - if (type !== undefined) { - savedType = type; - hasCustomHooks = typeof getCustomHooks === 'function'; - setSignature(type, key, forceReset, getCustomHooks); - - status = 'needsCustomHooks'; - } - break; - case 'needsCustomHooks': - if (hasCustomHooks) { - collectCustomHooksForSignature(savedType); - } - status = 'resolved'; - break; - case 'resolved': - break; - } - return type; + var screenPhysicalPixels = dims.screenPhysicalPixels; + if (screenPhysicalPixels) { + screen = { + width: screenPhysicalPixels.width / screenPhysicalPixels.scale, + height: screenPhysicalPixels.height / screenPhysicalPixels.scale, + scale: screenPhysicalPixels.scale, + fontScale: screenPhysicalPixels.fontScale }; + } else if (screen == null) { + screen = window; } - } - function isLikelyComponentType(type) { - { - switch (typeof type) { - case 'function': - { - if (type.prototype != null) { - if (type.prototype.isReactComponent) { - return true; - } - var ownNames = Object.getOwnPropertyNames(type.prototype); - if (ownNames.length > 1 || ownNames[0] !== 'constructor') { - return false; - } - - if (type.prototype.__proto__ !== Object.prototype) { - return false; - } - } - - var name = type.name || type.displayName; - return typeof name === 'string' && /^[A-Z]/.test(name); - } - case 'object': - { - if (type != null) { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - case REACT_MEMO_TYPE: - return true; - default: - return false; - } - } - return false; - } - default: - { - return false; - } - } + dimensions = { + window: window, + screen: screen + }; + if (dimensionsInitialized) { + // Don't fire 'change' the first time the dimensions are set. + eventEmitter.emit('change', dimensions); + } else { + dimensionsInitialized = true; } } - var ReactFreshRuntime = Object.freeze({ - performReactRefresh: performReactRefresh, - register: register, - setSignature: setSignature, - collectCustomHooksForSignature: collectCustomHooksForSignature, - getFamilyByID: getFamilyByID, - getFamilyByType: getFamilyByType, - findAffectedHostInstances: findAffectedHostInstances, - injectIntoGlobalHook: injectIntoGlobalHook, - hasUnrecoverableErrors: hasUnrecoverableErrors, - _getMountedRootCount: _getMountedRootCount, - createSignatureFunctionForTransform: createSignatureFunctionForTransform, - isLikelyComponentType: isLikelyComponentType - }); - var runtime = ReactFreshRuntime.default || ReactFreshRuntime; - module.exports = runtime; - })(); + /** + * Add an event handler. Supported events: + * + * - `change`: Fires when a property within the `Dimensions` object changes. The argument + * to the event handler is an object with `window` and `screen` properties whose values + * are the same as the return values of `Dimensions.get('window')` and + * `Dimensions.get('screen')`, respectively. + */ + }, { + key: "addEventListener", + value: function addEventListener(type, handler) { + (0, _invariant.default)(type === 'change', 'Trying to subscribe to unknown event: "%s"', type); + return eventEmitter.addListener(type, handler); + } + }]); + return Dimensions; + }(); + var initialDims = global.nativeExtensions && global.nativeExtensions.DeviceInfo && global.nativeExtensions.DeviceInfo.Dimensions; + if (!initialDims) { + // Subscribe before calling getConstants to make sure we don't miss any updates in between. + _RCTDeviceEventEmitter.default.addListener('didUpdateDimensions', function (update) { + Dimensions.set(update); + }); + initialDims = _NativeDeviceInfo.default.getConstants().Dimensions; } -},196,[],"node_modules/react-refresh/cjs/react-refresh-runtime.development.js"); + Dimensions.set(initialDims); + var _default = Dimensions; + exports.default = _default; +},247,[3,12,13,4,5,248,20],"node_modules/react-native/Libraries/Utilities/Dimensions.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - module.exports = { - get BatchedBridge() { - return _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge"); - }, - get ExceptionsManager() { - return _$$_REQUIRE(_dependencyMap[1], "../Core/ExceptionsManager"); - }, - get Platform() { - return _$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform"); - }, - get RCTEventEmitter() { - return _$$_REQUIRE(_dependencyMap[3], "../EventEmitter/RCTEventEmitter"); - }, - get ReactNativeViewConfigRegistry() { - return _$$_REQUIRE(_dependencyMap[4], "../Renderer/shims/ReactNativeViewConfigRegistry"); - }, - get TextInputState() { - return _$$_REQUIRE(_dependencyMap[5], "../Components/TextInput/TextInputState"); - }, - get UIManager() { - return _$$_REQUIRE(_dependencyMap[6], "../ReactNative/UIManager"); - }, - get deepDiffer() { - return _$$_REQUIRE(_dependencyMap[7], "../Utilities/differ/deepDiffer"); - }, - get deepFreezeAndThrowOnMutationInDev() { - return _$$_REQUIRE(_dependencyMap[8], "../Utilities/deepFreezeAndThrowOnMutationInDev"); - }, - get flattenStyle() { - return _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/flattenStyle"); - }, - get ReactFiberErrorDialog() { - return _$$_REQUIRE(_dependencyMap[10], "../Core/ReactFiberErrorDialog").default; - }, - get legacySendAccessibilityEvent() { - return _$$_REQUIRE(_dependencyMap[11], "../Components/AccessibilityInfo/legacySendAccessibilityEvent"); - }, - get RawEventEmitter() { - return _$$_REQUIRE(_dependencyMap[12], "../Core/RawEventEmitter").default; - }, - get CustomEvent() { - return _$$_REQUIRE(_dependencyMap[13], "../Events/CustomEvent").default; + var NativeModule = TurboModuleRegistry.getEnforcing('DeviceInfo'); + var constants = null; + var NativeDeviceInfo = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; } }; -},197,[23,45,14,198,199,200,213,237,27,189,238,33,239,240],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js"); + var _default = NativeDeviceInfo; + exports.default = _default; +},248,[19],"node_modules/react-native/Libraries/Utilities/NativeDeviceInfo.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; - var RCTEventEmitter = { - register: function register(eventEmitter) { - if (global.RN$Bridgeless) { - global.RN$registerCallableModule('RCTEventEmitter', function () { - return eventEmitter; - }); - } else { - _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge").registerCallableModule('RCTEventEmitter', eventEmitter); - } + var androidScaleSuffix = { + '0.75': 'ldpi', + '1': 'mdpi', + '1.5': 'hdpi', + '2': 'xhdpi', + '3': 'xxhdpi', + '4': 'xxxhdpi' + }; + var ANDROID_BASE_DENSITY = 160; + + /** + * FIXME: using number to represent discrete scale numbers is fragile in essence because of + * floating point numbers imprecision. + */ + function getAndroidAssetSuffix(scale) { + if (scale.toString() in androidScaleSuffix) { + return androidScaleSuffix[scale.toString()]; } + // NOTE: Android Gradle Plugin does not fully support the nnndpi format. + // See https://issuetracker.google.com/issues/72884435 + if (Number.isFinite(scale) && scale > 0) { + return Math.round(scale * ANDROID_BASE_DENSITY) + 'dpi'; + } + throw new Error('no such scale ' + scale.toString()); + } + + // See https://developer.android.com/guide/topics/resources/drawable-resource.html + var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'ktx', 'png', 'svg', 'webp', 'xml']); + function getAndroidResourceFolderName(asset, scale) { + if (!drawableFileTypes.has(asset.type)) { + return 'raw'; + } + var suffix = getAndroidAssetSuffix(scale); + if (!suffix) { + throw new Error("Don't know which android drawable suffix to use for scale: " + scale + '\nAsset: ' + JSON.stringify(asset, null, '\t') + '\nPossible scales are:' + JSON.stringify(androidScaleSuffix, null, '\t')); + } + return 'drawable-' + suffix; + } + function getAndroidResourceIdentifier(asset) { + return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_') // Encode folder structure in file name + .replace(/([^a-z0-9_])/g, '') // Remove illegal chars + .replace(/^assets_/, ''); // Remove "assets_" prefix + } + + function getBasePath(asset) { + var basePath = asset.httpServerLocation; + return basePath.startsWith('/') ? basePath.substr(1) : basePath; + } + module.exports = { + getAndroidResourceFolderName: getAndroidResourceFolderName, + getAndroidResourceIdentifier: getAndroidResourceIdentifier, + getBasePath: getBasePath }; - module.exports = RCTEventEmitter; -},198,[23],"node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js"); +},249,[],"node_modules/@react-native/assets-registry/path-support.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @noformat + * + * @generated SignedSource<<47ba85d7f43c9b591d6804827322d00e>> + * + * This file was sync'd from the facebook/react repository. + */ 'use strict'; var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); + // Event configs var customBubblingEventTypes = {}; var customDirectEventTypes = {}; exports.customBubblingEventTypes = customBubblingEventTypes; @@ -48668,6 +61017,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * Registers a native view/component by name. + * A callback is provided to load the view config from UIManager. + * The callback is deferred until the view is actually rendered. + */ exports.register = function (name, callback) { (0, _invariant.default)(!viewConfigCallbacks.has(name), 'Tried to register two views with the same name %s', name); (0, _invariant.default)(typeof callback === 'function', 'View config getter callback for component `%s` must be a function (received `%s`)', name, callback === null ? 'null' : typeof callback); @@ -48675,6 +61029,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return name; }; + /** + * Retrieves a config for the specified view. + * If this is the first time the view has been used, + * This configuration will be lazy-loaded from UIManager. + */ exports.get = function (name) { var viewConfig; if (!viewConfigs.has(name)) { @@ -48686,6 +61045,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e processEventTypes(viewConfig); viewConfigs.set(name, viewConfig); + // Clear the callback after the config is set so that + // we don't mask any errors during registration. viewConfigCallbacks.set(name, null); } else { viewConfig = viewConfigs.get(name); @@ -48693,45092 +61054,47692 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _invariant.default)(viewConfig, 'View config not found for name %s', name); return viewConfig; }; -},199,[3,17],"node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js"); +},250,[3,20],"node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = verifyComponentAttributeEquivalence; + exports.getConfigWithoutViewProps = getConfigWithoutViewProps; + exports.stringifyViewConfig = stringifyViewConfig; + var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../NativeComponent/PlatformBaseViewConfig")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var React = _$$_REQUIRE(_dependencyMap[0], "react"); - var currentlyFocusedInputRef = null; - var inputs = new Set(); - function currentlyFocusedInput() { - return currentlyFocusedInputRef; - } + var IGNORED_KEYS = ['transform', 'hitSlop']; - function currentlyFocusedField() { - if (__DEV__) { - console.error('currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput'); - } - return _$$_REQUIRE(_dependencyMap[1], "../../Renderer/shims/ReactNative").findNodeHandle(currentlyFocusedInputRef); - } - function focusInput(textField) { - if (currentlyFocusedInputRef !== textField && textField != null) { - currentlyFocusedInputRef = textField; - } - } - function blurInput(textField) { - if (currentlyFocusedInputRef === textField && textField != null) { - currentlyFocusedInputRef = null; - } - } - function focusField(textFieldID) { - if (__DEV__) { - console.error('focusField no longer works. Use focusInput'); - } - return; - } - function blurField(textFieldID) { - if (__DEV__) { - console.error('blurField no longer works. Use blurInput'); + /** + * The purpose of this function is to validate that the view config that + * native exposes for a given view manager is the same as the view config + * that is specified for that view manager in JS. + * + * In order to improve perf, we want to avoid calling into native to get + * the view config when each view manager is used. To do this, we are moving + * the configs to JS. In the future we will use these JS based view configs + * to codegen the view manager on native to ensure they stay in sync without + * this runtime check. + * + * If this function fails, that likely means a change was made to the native + * view manager without updating the JS config as well. Ideally you can make + * that direct change to the JS config. If you don't know what the differences + * are, the best approach I've found is to create a view that prints + * the return value of getNativeComponentAttributes, and then copying that + * text and pasting it back into JS: + * {JSON.stringify(getNativeComponentAttributes('RCTView'))} + * + * This is meant to be a stopgap until the time comes when we only have a + * single source of truth. I wonder if this message will still be here two + * years from now... + */ + function verifyComponentAttributeEquivalence(nativeViewConfig, staticViewConfig) { + for (var prop of ['validAttributes', 'bubblingEventTypes', 'directEventTypes']) { + var diff = Object.keys(lefthandObjectDiff(nativeViewConfig[prop], staticViewConfig[prop])); + if (diff.length > 0) { + var _staticViewConfig$uiV; + var name = (_staticViewConfig$uiV = staticViewConfig.uiViewClassName) != null ? _staticViewConfig$uiV : nativeViewConfig.uiViewClassName; + console.error(`'${name}' has a view config that does not match native. ` + `'${prop}' is missing: ${diff.join(', ')}`); + } } - return; } - function focusTextInput(textField) { - if (typeof textField === 'number') { - if (__DEV__) { - console.error('focusTextInput must be called with a host component. Passing a react tag is deprecated.'); - } - return; - } - if (textField != null) { - var _textField$currentPro; - var fieldCanBeFocused = currentlyFocusedInputRef !== textField && - ((_textField$currentPro = textField.currentProps) == null ? void 0 : _textField$currentPro.editable) !== false; - if (!fieldCanBeFocused) { + // Return the different key-value pairs of the right object, by iterating through the keys in the left object + // Note it won't return a difference where a key is missing in the left but exists the right. + function lefthandObjectDiff(leftObj, rightObj) { + var differentKeys = {}; + function compare(leftItem, rightItem, key) { + if (typeof leftItem !== typeof rightItem && leftItem != null) { + differentKeys[key] = rightItem; return; } - focusInput(textField); - if ("ios" === 'ios') { - _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.focus(textField); - } else if ("ios" === 'android') { - _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.focus(textField); + if (typeof leftItem === 'object') { + var objDiff = lefthandObjectDiff(leftItem, rightItem); + if (Object.keys(objDiff).length > 1) { + differentKeys[key] = objDiff; + } + return; } - } - } - - function blurTextInput(textField) { - if (typeof textField === 'number') { - if (__DEV__) { - console.error('blurTextInput must be called with a host component. Passing a react tag is deprecated.'); + if (leftItem !== rightItem) { + differentKeys[key] = rightItem; + return; } - return; } - if (currentlyFocusedInputRef === textField && textField != null) { - blurInput(textField); - if ("ios" === 'ios') { - _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.blur(textField); - } else if ("ios" === 'android') { - _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.blur(textField); + for (var key in leftObj) { + if (IGNORED_KEYS.includes(key)) { + continue; } - } - } - function registerInput(textField) { - if (typeof textField === 'number') { - if (__DEV__) { - console.error('registerInput must be called with a host component. Passing a react tag is deprecated.'); + if (!rightObj) { + differentKeys[key] = {}; + } else if (leftObj.hasOwnProperty(key)) { + compare(leftObj[key], rightObj[key], key); } - return; } - inputs.add(textField); + return differentKeys; } - function unregisterInput(textField) { - if (typeof textField === 'number') { - if (__DEV__) { - console.error('unregisterInput must be called with a host component. Passing a react tag is deprecated.'); - } - return; + function getConfigWithoutViewProps(viewConfig, propName) { + if (!viewConfig[propName]) { + return {}; } - inputs.delete(textField); + return Object.keys(viewConfig[propName]).filter(function (prop) { + return !_PlatformBaseViewConfig.default[propName][prop]; + }).reduce(function (obj, prop) { + obj[prop] = viewConfig[propName][prop]; + return obj; + }, {}); } - function isTextInput(textField) { - if (typeof textField === 'number') { - if (__DEV__) { - console.error('isTextInput must be called with a host component. Passing a react tag is deprecated.'); + function stringifyViewConfig(viewConfig) { + return JSON.stringify(viewConfig, function (key, val) { + if (typeof val === 'function') { + return `ฦ’ ${val.name}`; } - return false; - } - return inputs.has(textField); + return val; + }, 2); } - module.exports = { - currentlyFocusedInput: currentlyFocusedInput, - focusInput: focusInput, - blurInput: blurInput, - currentlyFocusedField: currentlyFocusedField, - focusField: focusField, - blurField: blurField, - focusTextInput: focusTextInput, - blurTextInput: blurTextInput, - registerInput: registerInput, - unregisterInput: unregisterInput, - isTextInput: isTextInput - }; -},200,[36,34,201,236],"node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"); +},251,[3,252],"node_modules/react-native/Libraries/Utilities/verifyComponentAttributeEquivalence.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); - var _RCTTextInputViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./RCTTextInputViewConfig")); - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + exports.default = void 0; + var _BaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./BaseViewConfig")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['focus', 'blur', 'setTextAndSelection'] - }); - exports.Commands = Commands; - var __INTERNAL_VIEW_CONFIG = Object.assign({ - uiViewClassName: 'RCTSinglelineTextInputView' - }, _RCTTextInputViewConfig.default); - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var SinglelineTextInputNativeComponent = NativeComponentRegistry.get('RCTSinglelineTextInputView', function () { - return __INTERNAL_VIEW_CONFIG; - }); + var PlatformBaseViewConfig = _BaseViewConfig.default; - var _default = SinglelineTextInputNativeComponent; + // In Wilde/FB4A, use RNHostComponentListRoute in Bridge mode to verify + // whether the JS props defined here match the native props defined + // in RCTViewManagers in iOS, and ViewManagers in Android. + var _default = PlatformBaseViewConfig; exports.default = _default; -},201,[3,202,209,211],"node_modules/react-native/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js"); +},252,[3,253],"node_modules/react-native/Libraries/NativeComponent/PlatformBaseViewConfig.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; + var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/ReactNativeStyleAttributes")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var dispatchCommand; - if (global.RN$Bridgeless) { - dispatchCommand = _$$_REQUIRE(_dependencyMap[0], "../../Libraries/Renderer/shims/ReactFabric").dispatchCommand; - } else { - dispatchCommand = _$$_REQUIRE(_dependencyMap[1], "../../Libraries/Renderer/shims/ReactNative").dispatchCommand; - } - function codegenNativeCommands(options) { - var commandObj = {}; - options.supportedCommands.forEach(function (command) { - commandObj[command] = function (ref) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - dispatchCommand(ref, command, args); - }; - }); - return commandObj; - } - var _default = codegenNativeCommands; - exports.default = _default; -},202,[203,34],"node_modules/react-native/Libraries/Utilities/codegenNativeCommands.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var ReactFabric; - if (__DEV__) { - ReactFabric = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactFabric-dev"); - } else { - ReactFabric = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactFabric-prod"); - } - if (global.RN$Bridgeless) { - global.RN$stopSurface = ReactFabric.stopSurface; - } else { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); - } - module.exports = ReactFabric; -},203,[204,208,197],"node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - if (__DEV__) { - (function () { - 'use strict'; - - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + var bubblingEventTypes = { + // Generic Events + topPress: { + phasedRegistrationNames: { + bubbled: 'onPress', + captured: 'onPressCapture' } - "use strict"; - var React = _$$_REQUIRE(_dependencyMap[0], "react"); - _$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); - var ReactNativePrivateInterface = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"); - var Scheduler = _$$_REQUIRE(_dependencyMap[3], "scheduler"); - var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - - function warn(format) { - { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - printWarning("warn", format, args); - } - } + }, + topChange: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' } - function error(format) { - { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - printWarning("error", format, args); - } - } + }, + topFocus: { + phasedRegistrationNames: { + bubbled: 'onFocus', + captured: 'onFocusCapture' } - function printWarning(level, format, args) { - { - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - if (stack !== "") { - format += "%s"; - args = args.concat([stack]); - } - - var argsWithFormat = args.map(function (item) { - return String(item); - }); - - argsWithFormat.unshift("Warning: " + format); - - Function.prototype.apply.call(console[level], console, argsWithFormat); - } + }, + topBlur: { + phasedRegistrationNames: { + bubbled: 'onBlur', + captured: 'onBlurCapture' } - function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { - var funcArgs = Array.prototype.slice.call(arguments, 3); - try { - func.apply(context, funcArgs); - } catch (error) { - this.onError(error); - } + }, + topSubmitEditing: { + phasedRegistrationNames: { + bubbled: 'onSubmitEditing', + captured: 'onSubmitEditingCapture' } - var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; - { - if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { - var fakeNode = document.createElement("react"); - invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { - if (typeof document === "undefined" || document === null) { - throw new Error("The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); - } - var evt = document.createEvent("Event"); - var didCall = false; - - var didError = true; - - var windowEvent = window.event; - - var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); - function restoreAfterDispatch() { - fakeNode.removeEventListener(evtType, callCallback, false); - - if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { - window.event = windowEvent; - } - } - - var funcArgs = Array.prototype.slice.call(arguments, 3); - function callCallback() { - didCall = true; - restoreAfterDispatch(); - func.apply(context, funcArgs); - didError = false; - } - - var error; - - var didSetError = false; - var isCrossOriginError = false; - function handleWindowError(event) { - error = event.error; - didSetError = true; - if (error === null && event.colno === 0 && event.lineno === 0) { - isCrossOriginError = true; - } - if (event.defaultPrevented) { - if (error != null && typeof error === "object") { - try { - error._suppressLogging = true; - } catch (inner) { - } - } - } - } - - var evtType = "react-" + (name ? name : "invokeguardedcallback"); - - window.addEventListener("error", handleWindowError); - fakeNode.addEventListener(evtType, callCallback, false); - - evt.initEvent(evtType, false, false); - fakeNode.dispatchEvent(evt); - if (windowEventDescriptor) { - Object.defineProperty(window, "event", windowEventDescriptor); - } - if (didCall && didError) { - if (!didSetError) { - error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); - } else if (isCrossOriginError) { - error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://reactjs.org/link/crossorigin-error for more information."); - } - this.onError(error); - } - - window.removeEventListener("error", handleWindowError); - if (!didCall) { - restoreAfterDispatch(); - return invokeGuardedCallbackProd.apply(this, arguments); - } - }; - } + }, + topEndEditing: { + phasedRegistrationNames: { + bubbled: 'onEndEditing', + captured: 'onEndEditingCapture' } - var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; - var hasError = false; - var caughtError = null; - - var hasRethrowError = false; - var rethrowError = null; - var reporter = { - onError: function onError(error) { - hasError = true; - caughtError = error; - } - }; - - function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - hasError = false; - caughtError = null; - invokeGuardedCallbackImpl$1.apply(reporter, arguments); - } - - function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback.apply(this, arguments); - if (hasError) { - var error = clearCaughtError(); - if (!hasRethrowError) { - hasRethrowError = true; - rethrowError = error; - } - } + }, + topKeyPress: { + phasedRegistrationNames: { + bubbled: 'onKeyPress', + captured: 'onKeyPressCapture' } - - function rethrowCaughtError() { - if (hasRethrowError) { - var error = rethrowError; - hasRethrowError = false; - rethrowError = null; - throw error; - } + }, + // Touch Events + topTouchStart: { + phasedRegistrationNames: { + bubbled: 'onTouchStart', + captured: 'onTouchStartCapture' } - function hasCaughtError() { - return hasError; + }, + topTouchMove: { + phasedRegistrationNames: { + bubbled: 'onTouchMove', + captured: 'onTouchMoveCapture' } - function clearCaughtError() { - if (hasError) { - var error = caughtError; - hasError = false; - caughtError = null; - return error; - } else { - throw new Error("clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); - } + }, + topTouchCancel: { + phasedRegistrationNames: { + bubbled: 'onTouchCancel', + captured: 'onTouchCancelCapture' } - var isArrayImpl = Array.isArray; - - function isArray(a) { - return isArrayImpl(a); + }, + topTouchEnd: { + phasedRegistrationNames: { + bubbled: 'onTouchEnd', + captured: 'onTouchEndCapture' } - var getFiberCurrentPropsFromNode = null; - var getInstanceFromNode = null; - var getNodeFromInstance = null; - function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { - getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; - getInstanceFromNode = getInstanceFromNodeImpl; - getNodeFromInstance = getNodeFromInstanceImpl; - { - if (!getNodeFromInstance || !getInstanceFromNode) { - error("EventPluginUtils.setComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode."); - } - } + }, + // Experimental/Work in Progress Pointer Events (not yet ready for use) + topPointerCancel: { + phasedRegistrationNames: { + captured: 'onPointerCancelCapture', + bubbled: 'onPointerCancel' } - var validateEventDispatches; - { - validateEventDispatches = function validateEventDispatches(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - var listenersIsArr = isArray(dispatchListeners); - var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; - var instancesIsArr = isArray(dispatchInstances); - var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { - error("EventPluginUtils: Invalid `event`."); - } - }; + }, + topPointerDown: { + phasedRegistrationNames: { + captured: 'onPointerDownCapture', + bubbled: 'onPointerDown' } - - function executeDispatch(event, listener, inst) { - var type = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); - event.currentTarget = null; + }, + topPointerMove: { + phasedRegistrationNames: { + captured: 'onPointerMoveCapture', + bubbled: 'onPointerMove' } - - function executeDispatchesInOrder(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - if (isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); - } - } else if (dispatchListeners) { - executeDispatch(event, dispatchListeners, dispatchInstances); - } - event._dispatchListeners = null; - event._dispatchInstances = null; + }, + topPointerUp: { + phasedRegistrationNames: { + captured: 'onPointerUpCapture', + bubbled: 'onPointerUp' } - - function executeDispatchesInOrderStopAtTrueImpl(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - if (isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - if (dispatchListeners[i](event, dispatchInstances[i])) { - return dispatchInstances[i]; - } - } - } else if (dispatchListeners) { - if (dispatchListeners(event, dispatchInstances)) { - return dispatchInstances; - } - } - return null; + }, + topPointerEnter: { + phasedRegistrationNames: { + captured: 'onPointerEnterCapture', + bubbled: 'onPointerEnter', + skipBubbling: true } - - function executeDispatchesInOrderStopAtTrue(event) { - var ret = executeDispatchesInOrderStopAtTrueImpl(event); - event._dispatchInstances = null; - event._dispatchListeners = null; - return ret; + }, + topPointerLeave: { + phasedRegistrationNames: { + captured: 'onPointerLeaveCapture', + bubbled: 'onPointerLeave', + skipBubbling: true } - - function executeDirectDispatch(event) { - { - validateEventDispatches(event); - } - var dispatchListener = event._dispatchListeners; - var dispatchInstance = event._dispatchInstances; - if (isArray(dispatchListener)) { - throw new Error("executeDirectDispatch(...): Invalid `event`."); - } - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - var res = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return res; + }, + topPointerOver: { + phasedRegistrationNames: { + captured: 'onPointerOverCapture', + bubbled: 'onPointerOver' } - - function hasDispatches(event) { - return !!event._dispatchListeners; + }, + topPointerOut: { + phasedRegistrationNames: { + captured: 'onPointerOutCapture', + bubbled: 'onPointerOut' } - var assign = Object.assign; - var EVENT_POOL_SIZE = 10; + } + }; + var directEventTypes = { + topAccessibilityAction: { + registrationName: 'onAccessibilityAction' + }, + topAccessibilityTap: { + registrationName: 'onAccessibilityTap' + }, + topMagicTap: { + registrationName: 'onMagicTap' + }, + topAccessibilityEscape: { + registrationName: 'onAccessibilityEscape' + }, + topLayout: { + registrationName: 'onLayout' + }, + onGestureHandlerEvent: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ + registrationName: 'onGestureHandlerEvent' + }), + onGestureHandlerStateChange: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ + registrationName: 'onGestureHandlerStateChange' + }) + }; + var validAttributesForNonEventProps = { + // View Props + accessible: true, + accessibilityActions: true, + accessibilityLabel: true, + accessibilityHint: true, + accessibilityLanguage: true, + accessibilityValue: true, + accessibilityViewIsModal: true, + accessibilityElementsHidden: true, + accessibilityIgnoresInvertColors: true, + testID: true, + backgroundColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + backfaceVisibility: true, + opacity: true, + shadowColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + shadowOffset: { + diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/sizesDiffer") + }, + shadowOpacity: true, + shadowRadius: true, + needsOffscreenAlphaCompositing: true, + overflow: true, + shouldRasterizeIOS: true, + transform: { + diff: _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/matricesDiffer") + }, + accessibilityRole: true, + accessibilityState: true, + nativeID: true, + pointerEvents: true, + removeClippedSubviews: true, + borderRadius: true, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderCurve: true, + borderWidth: true, + borderStyle: true, + hitSlop: { + diff: _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer") + }, + collapsable: true, + borderTopWidth: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderRightWidth: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderBottomWidth: true, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderLeftWidth: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderStartWidth: true, + borderStartColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderEndWidth: true, + borderEndColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + borderTopEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderBottomEndRadius: true, + borderEndEndRadius: true, + borderEndStartRadius: true, + borderStartEndRadius: true, + borderStartStartRadius: true, + display: true, + zIndex: true, + // ShadowView properties + top: true, + right: true, + start: true, + end: true, + bottom: true, + left: true, + width: true, + height: true, + minWidth: true, + maxWidth: true, + minHeight: true, + maxHeight: true, + // Also declared as ViewProps + // borderTopWidth: true, + // borderRightWidth: true, + // borderBottomWidth: true, + // borderLeftWidth: true, + // borderStartWidth: true, + // borderEndWidth: true, + // borderWidth: true, - var EventInterface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - function functionThatReturnsTrue() { - return true; - } - function functionThatReturnsFalse() { - return false; - } + margin: true, + marginBlock: true, + marginBlockEnd: true, + marginBlockStart: true, + marginBottom: true, + marginEnd: true, + marginHorizontal: true, + marginInline: true, + marginInlineEnd: true, + marginInlineStart: true, + marginLeft: true, + marginRight: true, + marginStart: true, + marginTop: true, + marginVertical: true, + padding: true, + paddingBlock: true, + paddingBlockEnd: true, + paddingBlockStart: true, + paddingBottom: true, + paddingEnd: true, + paddingHorizontal: true, + paddingInline: true, + paddingInlineEnd: true, + paddingInlineStart: true, + paddingLeft: true, + paddingRight: true, + paddingStart: true, + paddingTop: true, + paddingVertical: true, + flex: true, + flexGrow: true, + rowGap: true, + columnGap: true, + gap: true, + flexShrink: true, + flexBasis: true, + flexDirection: true, + flexWrap: true, + justifyContent: true, + alignItems: true, + alignSelf: true, + alignContent: true, + position: true, + aspectRatio: true, + // Also declared as ViewProps + // overflow: true, + // display: true, - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - { - delete this.nativeEvent; - delete this.preventDefault; - delete this.stopPropagation; - delete this.isDefaultPrevented; - delete this.isPropagationStopped; - } - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - this._dispatchListeners = null; - this._dispatchInstances = null; - var Interface = this.constructor.Interface; - for (var propName in Interface) { - if (!Interface.hasOwnProperty(propName)) { - continue; - } - { - delete this[propName]; - } + direction: true, + style: _ReactNativeStyleAttributes.default + }; - var normalize = Interface[propName]; - if (normalize) { - this[propName] = normalize(nativeEvent); - } else { - if (propName === "target") { - this.target = nativeEventTarget; - } else { - this[propName] = nativeEvent[propName]; - } - } - } - var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; - if (defaultPrevented) { - this.isDefaultPrevented = functionThatReturnsTrue; - } else { - this.isDefaultPrevented = functionThatReturnsFalse; - } - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - assign(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = true; - var event = this.nativeEvent; - if (!event) { - return; - } - if (event.preventDefault) { - event.preventDefault(); - } else if (typeof event.returnValue !== "unknown") { - event.returnValue = false; - } - this.isDefaultPrevented = functionThatReturnsTrue; - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - if (!event) { - return; - } - if (event.stopPropagation) { - event.stopPropagation(); - } else if (typeof event.cancelBubble !== "unknown") { - event.cancelBubble = true; - } - this.isPropagationStopped = functionThatReturnsTrue; - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface; - for (var propName in Interface) { - { - Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); - } - } - this.dispatchConfig = null; - this._targetInst = null; - this.nativeEvent = null; - this.isDefaultPrevented = functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - this._dispatchListeners = null; - this._dispatchInstances = null; - { - Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); - Object.defineProperty(this, "isDefaultPrevented", getPooledWarningPropertyDefinition("isDefaultPrevented", functionThatReturnsFalse)); - Object.defineProperty(this, "isPropagationStopped", getPooledWarningPropertyDefinition("isPropagationStopped", functionThatReturnsFalse)); - Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); - Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); - } - } - }); - SyntheticEvent.Interface = EventInterface; + // Props for bubbling and direct events + var validAttributesForEventProps = (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onLayout: true, + onMagicTap: true, + // Accessibility + onAccessibilityAction: true, + onAccessibilityEscape: true, + onAccessibilityTap: true, + // PanResponder handlers + onMoveShouldSetResponder: true, + onMoveShouldSetResponderCapture: true, + onStartShouldSetResponder: true, + onStartShouldSetResponderCapture: true, + onResponderGrant: true, + onResponderReject: true, + onResponderStart: true, + onResponderEnd: true, + onResponderRelease: true, + onResponderMove: true, + onResponderTerminate: true, + onResponderTerminationRequest: true, + onShouldBlockNativeResponder: true, + // Touch events + onTouchStart: true, + onTouchMove: true, + onTouchEnd: true, + onTouchCancel: true, + // Pointer events + onPointerUp: true, + onPointerDown: true, + onPointerCancel: true, + onPointerEnter: true, + onPointerMove: true, + onPointerLeave: true, + onPointerOver: true, + onPointerOut: true + }); - SyntheticEvent.extend = function (Interface) { - var Super = this; - var E = function E() {}; - E.prototype = Super.prototype; - var prototype = new E(); - function Class() { - return Super.apply(this, arguments); - } - assign(prototype, Class.prototype); - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = assign({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - addEventPoolingTo(SyntheticEvent); + /** + * On iOS, view managers define all of a component's props. + * All view managers extend RCTViewManager, and RCTViewManager declares these props. + */ + var PlatformBaseViewConfigIos = { + bubblingEventTypes: bubblingEventTypes, + directEventTypes: directEventTypes, + validAttributes: Object.assign({}, validAttributesForNonEventProps, validAttributesForEventProps) + }; + var _default = PlatformBaseViewConfigIos; + exports.default = _default; +},253,[3,198,254,174,203,238,240],"node_modules/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ConditionallyIgnoredEventHandlers = ConditionallyIgnoredEventHandlers; + exports.DynamicallyInjectedByGestureHandler = DynamicallyInjectedByGestureHandler; + exports.isIgnored = isIgnored; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function getPooledWarningPropertyDefinition(propName, getVal) { - function set(val) { - var action = isFunction ? "setting the method" : "setting the property"; - warn(action, "This is effectively a no-op"); - return val; - } - function get() { - var action = isFunction ? "accessing the method" : "accessing the property"; - var result = isFunction ? "This is a no-op function" : "This is set to null"; - warn(action, result); - return getVal; - } - function warn(action, result) { - { - error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://reactjs.org/link/event-pooling for more information.", action, propName, result); - } - } - var isFunction = typeof getVal === "function"; - return { - configurable: true, - set: set, - get: get - }; - } - function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - var EventConstructor = this; - if (EventConstructor.eventPool.length) { - var instance = EventConstructor.eventPool.pop(); - EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - function releasePooledEvent(event) { - var EventConstructor = this; - if (!(event instanceof EventConstructor)) { - throw new Error("Trying to release an event instance into a pool of a different type."); - } - event.destructor(); - if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { - EventConstructor.eventPool.push(event); - } - } - function addEventPoolingTo(EventConstructor) { - EventConstructor.getPooled = createOrGetPooledEvent; - EventConstructor.eventPool = []; - EventConstructor.release = releasePooledEvent; - } + var ignoredViewConfigProps = new WeakSet(); - var ResponderSyntheticEvent = SyntheticEvent.extend({ - touchHistory: function touchHistory(nativeEvent) { - return null; - } - }); + /** + * Decorates ViewConfig values that are dynamically injected by the library, + * react-native-gesture-handler. (T45765076) + */ + function DynamicallyInjectedByGestureHandler(object) { + ignoredViewConfigProps.add(object); + return object; + } - var TOP_TOUCH_START = "topTouchStart"; - var TOP_TOUCH_MOVE = "topTouchMove"; - var TOP_TOUCH_END = "topTouchEnd"; - var TOP_TOUCH_CANCEL = "topTouchCancel"; - var TOP_SCROLL = "topScroll"; - var TOP_SELECTION_CHANGE = "topSelectionChange"; - function isStartish(topLevelType) { - return topLevelType === TOP_TOUCH_START; - } - function isMoveish(topLevelType) { - return topLevelType === TOP_TOUCH_MOVE; - } - function isEndish(topLevelType) { - return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; - } - var startDependencies = [TOP_TOUCH_START]; - var moveDependencies = [TOP_TOUCH_MOVE]; - var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + /** + * On iOS, ViewManager event declarations generate {eventName}: true entries + * in ViewConfig valueAttributes. These entries aren't generated for Android. + * This annotation allows Static ViewConfigs to insert these entries into + * iOS but not Android. + * + * In the future, we want to remove this platform-inconsistency. We want + * to set RN$ViewConfigEventValidAttributesDisabled = true server-side, + * so that iOS does not generate validAttributes from event props in iOS RCTViewManager, + * since Android does not generate validAttributes from events props in Android ViewManager. + * + * TODO(T110872225): Remove this logic, after achieving platform-consistency + */ + function ConditionallyIgnoredEventHandlers(value) { + if (_Platform.default.OS === 'ios') { + return value; + } + return undefined; + } + function isIgnored(value) { + if (typeof value === 'object' && value != null) { + return ignoredViewConfigProps.has(value); + } + return false; + } +},254,[3,17],"node_modules/react-native/Libraries/NativeComponent/ViewConfigIgnore.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.stringifyValidationResult = stringifyValidationResult; + exports.validate = validate; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var MAX_TOUCH_BANK = 20; - var touchBank = []; - var touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 + /** + * During the migration from native view configs to static view configs, this is + * used to validate that the two are equivalent. + */ + function validate(name, nativeViewConfig, staticViewConfig) { + var differences = []; + accumulateDifferences(differences, [], { + bubblingEventTypes: nativeViewConfig.bubblingEventTypes, + directEventTypes: nativeViewConfig.directEventTypes, + uiViewClassName: nativeViewConfig.uiViewClassName, + validAttributes: nativeViewConfig.validAttributes + }, { + bubblingEventTypes: staticViewConfig.bubblingEventTypes, + directEventTypes: staticViewConfig.directEventTypes, + uiViewClassName: staticViewConfig.uiViewClassName, + validAttributes: staticViewConfig.validAttributes + }); + if (differences.length === 0) { + return { + type: 'valid' }; - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - - function createTouchRecord(touch) { - return { - touchActive: true, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }; - } - function resetTouchRecord(touchRecord, touch) { - touchRecord.touchActive = true; - touchRecord.startPageX = touch.pageX; - touchRecord.startPageY = touch.pageY; - touchRecord.startTimeStamp = timestampForTouch(touch); - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchRecord.previousPageX = touch.pageX; - touchRecord.previousPageY = touch.pageY; - touchRecord.previousTimeStamp = timestampForTouch(touch); - } - function getTouchIdentifier(_ref) { - var identifier = _ref.identifier; - if (identifier == null) { - throw new Error("Touch object is missing identifier."); - } - { - if (identifier > MAX_TOUCH_BANK) { - error("Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK); - } - } - return identifier; + } + return { + type: 'invalid', + differences: differences + }; + } + function stringifyValidationResult(name, validationResult) { + var differences = validationResult.differences; + return [`StaticViewConfigValidator: Invalid static view config for '${name}'.`, ''].concat((0, _toConsumableArray2.default)(differences.map(function (difference) { + var type = difference.type, + path = difference.path; + switch (type) { + case 'missing': + return `- '${path.join('.')}' is missing.`; + case 'unequal': + return `- '${path.join('.')}' is the wrong value.`; + case 'unexpected': + return `- '${path.join('.')}' is present but not expected to be.`; } - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch); - var touchRecord = touchBank[identifier]; - if (touchRecord) { - resetTouchRecord(touchRecord, touch); - } else { - touchBank[identifier] = createTouchRecord(touch); - } - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + })), ['']).join('\n'); + } + function accumulateDifferences(differences, path, nativeObject, staticObject) { + for (var nativeKey in nativeObject) { + var nativeValue = nativeObject[nativeKey]; + if (!staticObject.hasOwnProperty(nativeKey)) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), + type: 'missing', + nativeValue: nativeValue + }); + continue; } - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - if (touchRecord) { - touchRecord.touchActive = true; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - { - warn("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); - } + var staticValue = staticObject[nativeKey]; + var nativeValueIfObject = ifObject(nativeValue); + if (nativeValueIfObject != null) { + var staticValueIfObject = ifObject(staticValue); + if (staticValueIfObject != null) { + path.push(nativeKey); + accumulateDifferences(differences, path, nativeValueIfObject, staticValueIfObject); + path.pop(); + continue; } } - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - if (touchRecord) { - touchRecord.touchActive = false; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - { - warn("Cannot record touch end without a touch start.\n" + "Touch End: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - } + if (nativeValue !== staticValue) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), + type: 'unequal', + nativeValue: nativeValue, + staticValue: staticValue + }); } - function printTouch(touch) { - return JSON.stringify({ - identifier: touch.identifier, - pageX: touch.pageX, - pageY: touch.pageY, - timestamp: timestampForTouch(touch) + } + for (var staticKey in staticObject) { + if (!nativeObject.hasOwnProperty(staticKey) && !(0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").isIgnored)(staticObject[staticKey])) { + differences.push({ + path: [].concat((0, _toConsumableArray2.default)(path), [staticKey]), + type: 'unexpected', + staticValue: staticObject[staticKey] }); } - function printTouchBank() { - var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); - if (touchBank.length > MAX_TOUCH_BANK) { - printed += " (original size: " + touchBank.length + ")"; + } + } + function ifObject(value) { + return typeof value === 'object' && !Array.isArray(value) ? value : null; + } +},255,[3,6,254],"node_modules/react-native/Libraries/NativeComponent/StaticViewConfigValidator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createViewConfig = createViewConfig; + var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PlatformBaseViewConfig")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * Creates a complete `ViewConfig` from a `PartialViewConfig`. + */ + function createViewConfig(partialViewConfig) { + return { + uiViewClassName: partialViewConfig.uiViewClassName, + Commands: {}, + bubblingEventTypes: composeIndexers(_PlatformBaseViewConfig.default.bubblingEventTypes, partialViewConfig.bubblingEventTypes), + directEventTypes: composeIndexers(_PlatformBaseViewConfig.default.directEventTypes, partialViewConfig.directEventTypes), + // $FlowFixMe[incompatible-return] + validAttributes: composeIndexers( + // $FlowFixMe[incompatible-call] `style` property confuses Flow. + _PlatformBaseViewConfig.default.validAttributes, + // $FlowFixMe[incompatible-call] `style` property confuses Flow. + partialViewConfig.validAttributes) + }; + } + function composeIndexers(maybeA, maybeB) { + var _ref; + return maybeA == null || maybeB == null ? (_ref = maybeA != null ? maybeA : maybeB) != null ? _ref : {} : Object.assign({}, maybeA, maybeB); + } +},256,[3,252],"node_modules/react-native/Libraries/NativeComponent/ViewConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + function codegenNativeCommands(options) { + var commandObj = {}; + options.supportedCommands.forEach(function (command) { + // $FlowFixMe[missing-local-annot] + commandObj[command] = function (ref) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - return printed; - } - var instrumentationCallback; - var ResponderTouchHistoryStore = { - instrument: function instrument(callback) { - instrumentationCallback = callback; - }, - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - if (instrumentationCallback != null) { - instrumentationCallback(topLevelType, nativeEvent); - } - if (isMoveish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchMove); - } else if (isStartish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchStart); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - if (touchHistory.numberActiveTouches === 1) { - touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; - } - } else if (isEndish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchEnd); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - if (touchHistory.numberActiveTouches === 1) { - for (var i = 0; i < touchBank.length; i++) { - var touchTrackToCheck = touchBank[i]; - if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { - touchHistory.indexOfSingleActiveTouch = i; - break; - } - } - { - var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; - if (activeRecord == null || !activeRecord.touchActive) { - error("Cannot find single active touch."); - } - } - } - } - }, - touchHistory: touchHistory + // $FlowFixMe[incompatible-call] + _$$_REQUIRE(_dependencyMap[0], "../ReactNative/RendererProxy").dispatchCommand(ref, command, args); }; + }); + return commandObj; + } + var _default = codegenNativeCommands; + exports.default = _default; +},257,[37],"node_modules/react-native/Libraries/Utilities/codegenNativeCommands.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function accumulate(current, next) { - if (next == null) { - throw new Error("accumulate(...): Accumulated items must not be null or undefined."); - } - if (current == null) { - return next; - } + 'use strict'; - if (isArray(current)) { - return current.concat(next); - } - if (isArray(next)) { - return [current].concat(next); - } - return [current, next]; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getAccessibilityRoleFromRole = getAccessibilityRoleFromRole; + // Map role values to AccessibilityRole values + function getAccessibilityRoleFromRole(role) { + switch (role) { + case 'alert': + return 'alert'; + case 'alertdialog': + return undefined; + case 'application': + return undefined; + case 'article': + return undefined; + case 'banner': + return undefined; + case 'button': + return 'button'; + case 'cell': + return undefined; + case 'checkbox': + return 'checkbox'; + case 'columnheader': + return undefined; + case 'combobox': + return 'combobox'; + case 'complementary': + return undefined; + case 'contentinfo': + return undefined; + case 'definition': + return undefined; + case 'dialog': + return undefined; + case 'directory': + return undefined; + case 'document': + return undefined; + case 'feed': + return undefined; + case 'figure': + return undefined; + case 'form': + return undefined; + case 'grid': + return 'grid'; + case 'group': + return undefined; + case 'heading': + return 'header'; + case 'img': + return 'image'; + case 'link': + return 'link'; + case 'list': + return 'list'; + case 'listitem': + return undefined; + case 'log': + return undefined; + case 'main': + return undefined; + case 'marquee': + return undefined; + case 'math': + return undefined; + case 'menu': + return 'menu'; + case 'menubar': + return 'menubar'; + case 'menuitem': + return 'menuitem'; + case 'meter': + return undefined; + case 'navigation': + return undefined; + case 'none': + return 'none'; + case 'note': + return undefined; + case 'option': + return undefined; + case 'presentation': + return 'none'; + case 'progressbar': + return 'progressbar'; + case 'radio': + return 'radio'; + case 'radiogroup': + return 'radiogroup'; + case 'region': + return undefined; + case 'row': + return undefined; + case 'rowgroup': + return undefined; + case 'rowheader': + return undefined; + case 'scrollbar': + return 'scrollbar'; + case 'searchbox': + return 'search'; + case 'separator': + return undefined; + case 'slider': + return 'adjustable'; + case 'spinbutton': + return 'spinbutton'; + case 'status': + return undefined; + case 'summary': + return 'summary'; + case 'switch': + return 'switch'; + case 'tab': + return 'tab'; + case 'table': + return undefined; + case 'tablist': + return 'tablist'; + case 'tabpanel': + return undefined; + case 'term': + return undefined; + case 'timer': + return 'timer'; + case 'toolbar': + return 'toolbar'; + case 'tooltip': + return undefined; + case 'tree': + return undefined; + case 'treegrid': + return undefined; + case 'treeitem': + return undefined; + } + return undefined; + } +},258,[],"node_modules/react-native/Libraries/Utilities/AcessibilityMapping.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function accumulateInto(current, next) { - if (next == null) { - throw new Error("accumulateInto(...): Accumulated items must not be null or undefined."); - } - if (current == null) { - return next; - } + 'use strict'; - if (isArray(current)) { - if (isArray(next)) { - current.push.apply(current, next); - return current; - } - current.push(next); - return current; - } - if (isArray(next)) { - return [current].concat(next); - } - return [current, next]; - } + /** + * This type should be used as the type for anything that is a color. It is + * most useful when using DynamicColorIOS which can be a string or a dynamic + * color object. + * + * type props = {backgroundColor: ColorValue}; + */ - function forEachAccumulated(arr, cb, scope) { - if (Array.isArray(arr)) { - arr.forEach(cb, scope); - } else if (arr) { - cb.call(scope, arr); - } - } - var FunctionComponent = 0; - var ClassComponent = 1; - var IndeterminateComponent = 2; + /** + * This type should be used as the type for a prop that is passed through + * to a 's `style` prop. This ensures call sites of the component + * can't pass styles that View doesn't support such as `fontSize`.` + * + * type Props = {style: ViewStyleProp} + * const MyComponent = (props: Props) => + */ - var HostRoot = 3; + /** + * This type should be used as the type for a prop that is passed through + * to a 's `style` prop. This ensures call sites of the component + * can't pass styles that Text doesn't support such as `resizeMode`.` + * + * type Props = {style: TextStyleProp} + * const MyComponent = (props: Props) => + */ - var HostPortal = 4; + /** + * This type should be used as the type for a prop that is passed through + * to an 's `style` prop. This ensures call sites of the component + * can't pass styles that Image doesn't support such as `fontSize`.` + * + * type Props = {style: ImageStyleProp} + * const MyComponent = (props: Props) => + */ - var HostComponent = 5; - var HostText = 6; - var Fragment = 7; - var Mode = 8; - var ContextConsumer = 9; - var ContextProvider = 10; - var ForwardRef = 11; - var Profiler = 12; - var SuspenseComponent = 13; - var MemoComponent = 14; - var SimpleMemoComponent = 15; - var LazyComponent = 16; - var IncompleteClassComponent = 17; - var DehydratedFragment = 18; - var SuspenseListComponent = 19; - var ScopeComponent = 21; - var OffscreenComponent = 22; - var LegacyHiddenComponent = 23; - var CacheComponent = 24; - var TracingMarkerComponent = 25; + /** + * WARNING: You probably shouldn't be using this type. This type + * is similar to the ones above except it allows styles that are accepted + * by all of View, Text, or Image. It is therefore very unsafe to pass this + * through to an underlying component. Using this is almost always a mistake + * and using one of the other more restrictive types is likely the right choice. + */ - var responderInst = null; + /** + * Utility type for getting the values for specific style keys. + * + * The following is bad because position is more restrictive than 'string': + * ``` + * type Props = {position: string}; + * ``` + * + * You should use the following instead: + * + * ``` + * type Props = {position: TypeForStyleKey<'position'>}; + * ``` + * + * This will correctly give you the type 'absolute' | 'relative' + */ - var trackedTouchCount = 0; - var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - if (ResponderEventPlugin.GlobalResponderHandler !== null) { - ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - }; - var eventTypes = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: [TOP_SCROLL] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: [TOP_SELECTION_CHANGE] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }; + /** + * This type is an object of the different possible style + * properties that can be specified for View. + * + * Note that this isn't a safe way to type a style prop for a component as + * results from StyleSheet.create return an internal identifier, not + * an object of styles. + * + * If you want to type the style prop of a function, + * consider using ViewStyleProp. + * + * A reasonable usage of this type is for helper functions that return an + * object of styles to pass to a View that can't be precomputed with + * StyleSheet.create. + */ - function getParent(inst) { - do { - inst = inst.return; - } while (inst && inst.tag !== HostComponent); - if (inst) { - return inst; - } - return null; - } + /** + * This type is an object of the different possible style + * properties that can be specified for Text. + * + * Note that this isn't a safe way to type a style prop for a component as + * results from StyleSheet.create return an internal identifier, not + * an object of styles. + * + * If you want to type the style prop of a function, + * consider using TextStyleProp. + * + * A reasonable usage of this type is for helper functions that return an + * object of styles to pass to a Text that can't be precomputed with + * StyleSheet.create. + */ - function getLowestCommonAncestor(instA, instB) { - var depthA = 0; - for (var tempA = instA; tempA; tempA = getParent(tempA)) { - depthA++; - } - var depthB = 0; - for (var tempB = instB; tempB; tempB = getParent(tempB)) { - depthB++; - } + /** + * This type is an object of the different possible style + * properties that can be specified for Image. + * + * Note that this isn't a safe way to type a style prop for a component as + * results from StyleSheet.create return an internal identifier, not + * an object of styles. + * + * If you want to type the style prop of a function, + * consider using ImageStyleProp. + * + * A reasonable usage of this type is for helper functions that return an + * object of styles to pass to an Image that can't be precomputed with + * StyleSheet.create. + */ - while (depthA - depthB > 0) { - instA = getParent(instA); - depthA--; - } + /** + * WARNING: You probably shouldn't be using this type. This type is an object + * with all possible style keys and their values. Note that this isn't + * a safe way to type a style prop for a component as results from + * StyleSheet.create return an internal identifier, not an object of styles. + * + * If you want to type the style prop of a function, consider using + * ViewStyleProp, TextStyleProp, or ImageStyleProp. + * + * This should only be used by very core utilities that operate on an object + * containing any possible style value. + */ - while (depthB - depthA > 0) { - instB = getParent(instB); - depthB--; - } + var hairlineWidth = _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").default.roundToNearestPixel(0.4); + if (hairlineWidth === 0) { + hairlineWidth = 1 / _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").default.get(); + } + var absoluteFill = { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + if (__DEV__) { + Object.freeze(absoluteFill); + } - var depth = depthA; - while (depth--) { - if (instA === instB || instA === instB.alternate) { - return instA; - } - instA = getParent(instA); - instB = getParent(instB); - } - return null; + /** + * A StyleSheet is an abstraction similar to CSS StyleSheets + * + * Create a new StyleSheet: + * + * ``` + * const styles = StyleSheet.create({ + * container: { + * borderRadius: 4, + * borderWidth: 0.5, + * borderColor: '#d6d7da', + * }, + * title: { + * fontSize: 19, + * fontWeight: 'bold', + * }, + * activeTitle: { + * color: 'red', + * }, + * }); + * ``` + * + * Use a StyleSheet: + * + * ``` + * + * + * + * ``` + * + * Code quality: + * + * - By moving styles away from the render function, you're making the code + * easier to understand. + * - Naming the styles is a good way to add meaning to the low level components + * in the render function. + * + * Performance: + * + * - Making a stylesheet from a style object makes it possible to refer to it + * by ID instead of creating a new style object every time. + * - It also allows to send the style only once through the bridge. All + * subsequent uses are going to refer an id (not implemented yet). + */ + module.exports = { + /** + * This is defined as the width of a thin line on the platform. It can be + * used as the thickness of a border or division between two elements. + * Example: + * ``` + * { + * borderBottomColor: '#bbb', + * borderBottomWidth: StyleSheet.hairlineWidth + * } + * ``` + * + * This constant will always be a round number of pixels (so a line defined + * by it look crisp) and will try to match the standard width of a thin line + * on the underlying platform. However, you should not rely on it being a + * constant size, because on different platforms and screen densities its + * value may be calculated differently. + * + * A line with hairline width may not be visible if your simulator is downscaled. + */ + hairlineWidth: hairlineWidth, + /** + * A very common pattern is to create overlays with position absolute and zero positioning, + * so `absoluteFill` can be used for convenience and to reduce duplication of these repeated + * styles. + */ + absoluteFill: absoluteFill, + // TODO: This should be updated after we fix downstream Flow sites. + + /** + * Sometimes you may want `absoluteFill` but with a couple tweaks - `absoluteFillObject` can be + * used to create a customized entry in a `StyleSheet`, e.g.: + * + * const styles = StyleSheet.create({ + * wrapper: { + * ...StyleSheet.absoluteFillObject, + * top: 10, + * backgroundColor: 'transparent', + * }, + * }); + */ + absoluteFillObject: absoluteFill, + /** + * Combines two styles such that `style2` will override any styles in `style1`. + * If either style is falsy, the other one is returned without allocating an + * array, saving allocations and maintaining reference equality for + * PureComponent checks. + */ + compose: function compose(style1, style2) { + if (style1 != null && style2 != null) { + return [style1, style2]; + } else { + return style1 != null ? style1 : style2; } - - function isAncestor(instA, instB) { - while (instB) { - if (instA === instB || instA === instB.alternate) { - return true; + }, + /** + * Flattens an array of style objects, into one aggregated style object. + * Alternatively, this method can be used to lookup IDs, returned by + * StyleSheet.register. + * + * > **NOTE**: Exercise caution as abusing this can tax you in terms of + * > optimizations. + * > + * > IDs enable optimizations through the bridge and memory in general. Referring + * > to style objects directly will deprive you of these optimizations. + * + * Example: + * ``` + * const styles = StyleSheet.create({ + * listItem: { + * flex: 1, + * fontSize: 16, + * color: 'white' + * }, + * selectedListItem: { + * color: 'green' + * } + * }); + * + * StyleSheet.flatten([styles.listItem, styles.selectedListItem]) + * // returns { flex: 1, fontSize: 16, color: 'green' } + * ``` + * Alternative use: + * ``` + * StyleSheet.flatten(styles.listItem); + * // return { flex: 1, fontSize: 16, color: 'white' } + * // Simply styles.listItem would return its ID (number) + * ``` + * This method internally uses `StyleSheetRegistry.getStyleByID(style)` + * to resolve style objects represented by IDs. Thus, an array of style + * objects (instances of StyleSheet.create), are individually resolved to, + * their respective objects, merged as one and then returned. This also explains + * the alternative use. + */ + flatten: _$$_REQUIRE(_dependencyMap[1], "./flattenStyle"), + /** + * WARNING: EXPERIMENTAL. Breaking changes will probably happen a lot and will + * not be reliably announced. The whole thing might be deleted, who knows? Use + * at your own risk. + * + * Sets a function to use to pre-process a style property value. This is used + * internally to process color and transform values. You should not use this + * unless you really know what you are doing and have exhausted other options. + */ + setStyleAttributePreprocessor: function setStyleAttributePreprocessor(property, process) { + var _ReactNativeStyleAttr, _ReactNativeStyleAttr2; + var value; + if (_$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === true) { + value = { + process: process + }; + } else if (typeof _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === 'object') { + value = Object.assign({}, _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property], { + process: process + }); + } else { + console.error(`${property} is not a valid style attribute`); + return; + } + if (__DEV__ && typeof value.process === 'function' && typeof ((_ReactNativeStyleAttr = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr.process) === 'function' && value.process !== ((_ReactNativeStyleAttr2 = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr2.process)) { + console.warn(`Overwriting ${property} style attribute preprocessor`); + } + _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] = value; + }, + /** + * Creates a StyleSheet style reference from the given object. + */ + create: function create(obj) { + // TODO: This should return S as the return type. But first, + // we need to codemod all the callsites that are typing this + // return value as a number (even though it was opaque). + if (__DEV__) { + for (var _key in obj) { + if (obj[_key]) { + Object.freeze(obj[_key]); } - instB = getParent(instB); } - return false; } + return obj; + } + }; +},259,[246,207,198],"node_modules/react-native/Libraries/StyleSheet/StyleSheet.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function traverseTwoPhase(inst, fn, arg) { - var path = []; - while (inst) { - path.push(inst); - inst = getParent(inst); - } - var i; - for (i = path.length; i-- > 0;) { - fn(path[i], "captured", arg); + 'use strict'; + + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/Inspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + + // Required for React DevTools to view/edit React Native styles in Flipper. + // Flipper doesn't inject these values when initializing DevTools. + hook.resolveRNStyle = _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/flattenStyle"); + hook.nativeStyleEditorValidAttributes = Object.keys(_$$_REQUIRE(_dependencyMap[4], "../Components/View/ReactNativeStyleAttributes")); + var Inspector = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")(Inspector, _React$Component); + var _super = _createSuper(Inspector); + function Inspector(props) { + var _this; + _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/classCallCheck")(this, Inspector); + _this = _super.call(this, props); + _this._hideTimeoutID = null; + _this._attachToDevtools = function (agent) { + agent.addListener('shutdown', _this._onAgentShutdown); + _this.setState({ + devtoolsAgent: agent + }); + }; + _this._onAgentShutdown = function () { + var agent = _this.state.devtoolsAgent; + if (agent != null) { + agent.removeListener('shutdown', _this._onAgentShutdown); + _this.setState({ + devtoolsAgent: null + }); } - for (i = 0; i < path.length; i++) { - fn(path[i], "bubbled", arg); + }; + _this.state = { + devtoolsAgent: null, + hierarchy: null, + panelPos: 'bottom', + inspecting: true, + perfing: false, + inspected: null, + selection: null, + inspectedView: _this.props.inspectedView, + networking: false + }; + return _this; + } + _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/createClass")(Inspector, [{ + key: "componentDidMount", + value: function componentDidMount() { + hook.on('react-devtools', this._attachToDevtools); + // if devtools is already started + if (hook.reactDevtoolsAgent) { + this._attachToDevtools(hook.reactDevtoolsAgent); } } - function getListener(inst, registrationName) { - var stateNode = inst.stateNode; - if (stateNode === null) { - return null; - } - var props = getFiberCurrentPropsFromNode(stateNode); - if (props === null) { - return null; - } - var listener = props[registrationName]; - if (listener && typeof listener !== "function") { - throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subs) { + this._subs.map(function (fn) { + return fn(); + }); } - return listener; + hook.off('react-devtools', this._attachToDevtools); + this._setTouchedViewData = null; } - function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this.setState({ + inspectedView: newProps.inspectedView + }); } - function accumulateDirectionalDispatches(inst, phase, event) { - { - if (!inst) { - error("Dispatching inst must not be null"); - } - } - var listener = listenerAtPhase(inst, event, phase); - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } + }, { + key: "setSelection", + value: function setSelection(i) { + var _this2 = this; + var hierarchyItem = this.state.hierarchy[i]; + // we pass in findNodeHandle as the method is injected + var _hierarchyItem$getIns = hierarchyItem.getInspectorData(_$$_REQUIRE(_dependencyMap[8], "../ReactNative/RendererProxy").findNodeHandle), + measure = _hierarchyItem$getIns.measure, + props = _hierarchyItem$getIns.props, + source = _hierarchyItem$getIns.source; + measure(function (x, y, width, height, left, top) { + _this2.setState({ + inspected: { + frame: { + left: left, + top: top, + width: width, + height: height + }, + style: props.style, + source: source + }, + selection: i + }); + }); } + }, { + key: "onTouchPoint", + value: function onTouchPoint(locationX, locationY) { + var _this3 = this; + this._setTouchedViewData = function (viewData) { + var hierarchy = viewData.hierarchy, + props = viewData.props, + selectedIndex = viewData.selectedIndex, + source = viewData.source, + frame = viewData.frame, + pointerY = viewData.pointerY, + touchedViewTag = viewData.touchedViewTag, + closestInstance = viewData.closestInstance; - function accumulateDispatches(inst, ignoredDirection, event) { - if (inst && event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName; - var listener = getListener(inst, registrationName); - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + // Sync the touched view with React DevTools. + // Note: This is Paper only. To support Fabric, + // DevTools needs to be updated to not rely on view tags. + var agent = _this3.state.devtoolsAgent; + if (agent) { + agent.selectNode(_$$_REQUIRE(_dependencyMap[8], "../ReactNative/RendererProxy").findNodeHandle(touchedViewTag)); + if (closestInstance != null) { + agent.selectNode(closestInstance); + } } - } - } - - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches(event._targetInst, null, event); - } + _this3.setState({ + panelPos: pointerY > _$$_REQUIRE(_dependencyMap[9], "../Utilities/Dimensions").default.get('window').height / 2 ? 'top' : 'bottom', + selection: selectedIndex, + hierarchy: hierarchy, + inspected: { + style: props.style, + frame: frame, + source: source + } + }); + }; + _$$_REQUIRE(_dependencyMap[10], "./getInspectorDataForViewAtPoint")(this.state.inspectedView, locationX, locationY, function (viewData) { + if (_this3._setTouchedViewData != null) { + _this3._setTouchedViewData(viewData); + _this3._setTouchedViewData = null; + } + return false; + }); } - function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); + }, { + key: "setPerfing", + value: function setPerfing(val) { + this.setState({ + perfing: val, + inspecting: false, + inspected: null, + networking: false + }); } - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - var parentInst = targetInst ? getParent(targetInst) : null; - traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); - } + }, { + key: "setInspecting", + value: function setInspecting(val) { + this.setState({ + inspecting: val, + inspected: null + }); } - function accumulateTwoPhaseDispatchesSkipTarget(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); + }, { + key: "setTouchTargeting", + value: function setTouchTargeting(val) { + var _this4 = this; + _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").setEnabled(val); + this.props.onRequestRerenderApp(function (inspectedView) { + _this4.setState({ + inspectedView: inspectedView + }); + }); } - function accumulateTwoPhaseDispatchesSingle(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } + }, { + key: "setNetworking", + value: function setNetworking(val) { + this.setState({ + networking: val, + perfing: false, + inspecting: false, + inspected: null + }); } - function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + }, { + key: "render", + value: function render() { + var panelContainerStyle = this.state.panelPos === 'bottom' ? { + bottom: 0 + } : { + top: "ios" === 'ios' ? 20 : 0 + }; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { + style: styles.container, + pointerEvents: "box-none", + children: [this.state.inspecting && /*#__PURE__*/_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./InspectorOverlay"), { + inspected: this.state.inspected + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + onTouchPoint: this.onTouchPoint.bind(this) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { + style: [styles.panelContainer, panelContainerStyle], + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./InspectorPanel"), { + devtoolsIsOpen: !!this.state.devtoolsAgent, + inspecting: this.state.inspecting, + perfing: this.state.perfing + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + setPerfing: this.setPerfing.bind(this) + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + setInspecting: this.setInspecting.bind(this), + inspected: this.state.inspected, + hierarchy: this.state.hierarchy, + selection: this.state.selection + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + setSelection: this.setSelection.bind(this), + touchTargeting: _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").isEnabled() + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + setTouchTargeting: this.setTouchTargeting.bind(this), + networking: this.state.networking + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + , + setNetworking: this.setNetworking.bind(this) + }) + })] + }); } + }]); + return Inspector; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ + container: { + position: 'absolute', + backgroundColor: 'transparent', + top: 0, + left: 0, + right: 0, + bottom: 0 + }, + panelContainer: { + position: 'absolute', + left: 0, + right: 0 + } + }); + module.exports = Inspector; +},260,[53,51,41,207,198,49,12,13,37,247,261,262,89,225,264,270,259],"node_modules/react-native/Libraries/Inspector/Inspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; - - var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); - - var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; - var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); - shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - if (skipOverBubbleShouldSetFrom) { - accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); - } else { - accumulateTwoPhaseDispatches(shouldSetEvent); - } - var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); - if (!shouldSetEvent.isPersistent()) { - shouldSetEvent.constructor.release(shouldSetEvent); - } - if (!wantsResponderInst || wantsResponderInst === responderInst) { + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var renderers = findRenderers(); + function findRenderers() { + var allRenderers = Array.from(hook.renderers.values()); + _$$_REQUIRE(_dependencyMap[1], "invariant")(allRenderers.length >= 1, 'Expected to find at least one React Native renderer on DevTools hook.'); + return allRenderers; + } + module.exports = function getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, callback) { + var shouldBreak = false; + // Check all renderers for inspector data. + for (var i = 0; i < renderers.length; i++) { + var _renderer$rendererCon; + if (shouldBreak) { + break; + } + var renderer = renderers[i]; + if ((renderer == null ? void 0 : (_renderer$rendererCon = renderer.rendererConfig) == null ? void 0 : _renderer$rendererCon.getInspectorDataForViewAtPoint) != null) { + renderer.rendererConfig.getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, function (viewData) { + // Only return with non-empty view data since only one renderer will have this view. + if (viewData && viewData.hierarchy.length > 0) { + shouldBreak = callback(viewData); + } + }); + } + } + }; +},261,[41,20],"node_modules/react-native/Libraries/Inspector/getInspectorDataForViewAtPoint.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PressabilityDebugView = PressabilityDebugView; + exports.isEnabled = isEnabled; + exports.setEnabled = setEnabled; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/View")); + var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../StyleSheet/normalizeColor")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Displays a debug overlay to visualize press targets when enabled via the + * React Native Inspector. Calls to this module should be guarded by `__DEV__`, + * for example: + * + * return ( + * + * {children} + * {__DEV__ ? ( + * + * ) : null} + * + * ); + * + */ + function PressabilityDebugView(props) { + if (__DEV__) { + if (isEnabled()) { + var _hitSlop$bottom, _hitSlop$left, _hitSlop$right, _hitSlop$top; + var normalizedColor = (0, _normalizeColor.default)(props.color); + if (typeof normalizedColor !== 'number') { return null; } - var extracted; - var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); - grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(grantEvent); - var blockHostResponder = executeDirectDispatch(grantEvent) === true; - if (responderInst) { - var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); - terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminationRequestEvent); - var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); - if (!terminationRequestEvent.isPersistent()) { - terminationRequestEvent.constructor.release(terminationRequestEvent); - } - if (shouldSwitch) { - var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); - terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminateEvent); - extracted = accumulate(extracted, [grantEvent, terminateEvent]); - changeResponder(wantsResponderInst, blockHostResponder); - } else { - var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); - rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(rejectEvent); - extracted = accumulate(extracted, rejectEvent); + var baseColor = '#' + (normalizedColor != null ? normalizedColor : 0).toString(16).padStart(8, '0'); + var hitSlop = (0, _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/Rect").normalizeRect)(props.hitSlop); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_View.default, { + pointerEvents: "none", + style: + // eslint-disable-next-line react-native/no-inline-styles + { + backgroundColor: baseColor.slice(0, -2) + '0F', + // 15% + borderColor: baseColor.slice(0, -2) + '55', + // 85% + borderStyle: 'dashed', + borderWidth: 1, + bottom: -((_hitSlop$bottom = hitSlop == null ? void 0 : hitSlop.bottom) != null ? _hitSlop$bottom : 0), + left: -((_hitSlop$left = hitSlop == null ? void 0 : hitSlop.left) != null ? _hitSlop$left : 0), + position: 'absolute', + right: -((_hitSlop$right = hitSlop == null ? void 0 : hitSlop.right) != null ? _hitSlop$right : 0), + top: -((_hitSlop$top = hitSlop == null ? void 0 : hitSlop.top) != null ? _hitSlop$top : 0) } - } else { - extracted = accumulate(extracted, grantEvent); - changeResponder(wantsResponderInst, blockHostResponder); - } - return extracted; + }); } + } + return null; + } + var isDebugEnabled = false; + function isEnabled() { + if (__DEV__) { + return isDebugEnabled; + } + return false; + } + function setEnabled(value) { + if (__DEV__) { + isDebugEnabled = value; + } + } +},262,[3,225,175,41,263,89],"node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createSquare = createSquare; + exports.normalizeRect = normalizeRect; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { - return topLevelInst && ( - topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); - } + function createSquare(size) { + return { + bottom: size, + left: size, + right: size, + top: size + }; + } + function normalizeRect(rectOrSize) { + return typeof rectOrSize === 'number' ? createSquare(rectOrSize) : rectOrSize; + } +},263,[],"node_modules/react-native/Libraries/StyleSheet/Rect.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function noResponderTouches(nativeEvent) { - var touches = nativeEvent.touches; - if (!touches || touches.length === 0) { - return true; - } - for (var i = 0; i < touches.length; i++) { - var activeTouch = touches[i]; - var target = activeTouch.target; - if (target !== null && target !== undefined && target !== 0) { - var targetInst = getInstanceFromNode(target); - if (isAncestor(responderInst, targetInst)) { - return false; - } - } - } - return true; - } - var ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { - if (isStartish(topLevelType)) { - trackedTouchCount += 1; - } else if (isEndish(topLevelType)) { - if (trackedTouchCount >= 0) { - trackedTouchCount -= 1; - } else { - { - warn("Ended a touch event which was not counted in `trackedTouchCount`."); - } - return null; - } - } - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + 'use strict'; - var isResponderTouchStart = responderInst && isStartish(topLevelType); - var isResponderTouchMove = responderInst && isMoveish(topLevelType); - var isResponderTouchEnd = responderInst && isEndish(topLevelType); - var incrementalTouch = isResponderTouchStart ? eventTypes.responderStart : isResponderTouchMove ? eventTypes.responderMove : isResponderTouchEnd ? eventTypes.responderEnd : null; - if (incrementalTouch) { - var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); - gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(gesture); - extracted = accumulate(extracted, gesture); - } - var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; - var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); - var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; - if (finalTouch) { - var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); - finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(finalEvent); - extracted = accumulate(extracted, finalEvent); - changeResponder(null); - } - return extracted; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; - } - } + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var InspectorOverlay = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorOverlay, _React$Component); + var _super = _createSuper(InspectorOverlay); + function InspectorOverlay() { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorOverlay); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.findViewForTouchEvent = function (e) { + var _e$nativeEvent$touche = e.nativeEvent.touches[0], + locationX = _e$nativeEvent$touche.locationX, + locationY = _e$nativeEvent$touche.locationY; + _this.props.onTouchPoint(locationX, locationY); }; + _this.shouldSetResponder = function (e) { + _this.findViewForTouchEvent(e); + return true; + }; + return _this; + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorOverlay, [{ + key: "render", + value: function render() { + var content = null; + if (this.props.inspected) { + content = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "./ElementBox"), { + frame: this.props.inspected.frame, + style: this.props.inspected.style + }); + } + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + onStartShouldSetResponder: this.shouldSetResponder, + onResponderMove: this.findViewForTouchEvent, + nativeID: "inspectorOverlay" /* TODO: T68258846. */, + style: [styles.inspector, { + height: _$$_REQUIRE(_dependencyMap[9], "../Utilities/Dimensions").default.get('window').height + }], + children: content + }); + } + }]); + return InspectorOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + inspector: { + backgroundColor: 'transparent', + position: 'absolute', + left: 0, + top: 0, + right: 0 + } + }); + module.exports = InspectorOverlay; +},264,[53,51,41,49,12,13,89,265,225,247,259],"node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var eventPluginOrder = null; - - var namesToPlugins = {}; + 'use strict'; - function recomputePluginOrdering() { - if (!eventPluginOrder) { - return; - } - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName]; - var pluginIndex = eventPluginOrder.indexOf(pluginName); - if (pluginIndex <= -1) { - throw new Error("EventPluginRegistry: Cannot inject event plugins that do not exist in " + ("the plugin ordering, `" + pluginName + "`.")); - } - if (plugins[pluginIndex]) { - continue; + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/ElementBox.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var ElementBox = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementBox, _React$Component); + var _super = _createSuper(ElementBox); + function ElementBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementBox); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementBox, [{ + key: "render", + value: function render() { + // $FlowFixMe[underconstrained-implicit-instantiation] + var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style) || {}; + var margin = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('margin', style); + var padding = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('padding', style); + var frameStyle = Object.assign({}, this.props.frame); + var contentStyle = { + width: this.props.frame.width, + height: this.props.frame.height + }; + if (margin != null) { + margin = resolveRelativeSizes(margin); + frameStyle.top -= margin.top; + frameStyle.left -= margin.left; + frameStyle.height += margin.top + margin.bottom; + frameStyle.width += margin.left + margin.right; + if (margin.top < 0) { + contentStyle.height += margin.top; } - if (!pluginModule.extractEvents) { - throw new Error("EventPluginRegistry: Event plugins must implement an `extractEvents` " + ("method, but `" + pluginName + "` does not.")); + if (margin.bottom < 0) { + contentStyle.height += margin.bottom; } - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; - for (var eventName in publishedEvents) { - if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { - throw new Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); - } + if (margin.left < 0) { + contentStyle.width += margin.left; } - } - } - - function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { - throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("event name, `" + eventName + "`.")); - } - eventNameDispatchConfigs[eventName] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) { - var phasedRegistrationName = phasedRegistrationNames[phaseName]; - publishRegistrationName(phasedRegistrationName, pluginModule, eventName); - } + if (margin.right < 0) { + contentStyle.width += margin.right; } - return true; - } else if (dispatchConfig.registrationName) { - publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); - return true; - } - return false; - } - - function publishRegistrationName(registrationName, pluginModule, eventName) { - if (registrationNameModules[registrationName]) { - throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("registration name, `" + registrationName + "`.")); } - registrationNameModules[registrationName] = pluginModule; - registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - { - var lowerCasedName = registrationName.toLowerCase(); + if (padding != null) { + padding = resolveRelativeSizes(padding); + contentStyle.width -= padding.left + padding.right; + contentStyle.height -= padding.top + padding.bottom; } + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { + style: [styles.frame, frameStyle], + pointerEvents: "none", + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { + box: margin, + style: styles.margin, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { + box: padding, + style: styles.padding, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { + style: [styles.content, contentStyle] + }) + }) + }) + }); } + }]); + return ElementBox; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/StyleSheet").create({ + frame: { + position: 'absolute' + }, + content: { + backgroundColor: 'rgba(200, 230, 255, 0.8)' // blue + }, - var plugins = []; - - var eventNameDispatchConfigs = {}; - - var registrationNameModules = {}; + padding: { + borderColor: 'rgba(77, 255, 0, 0.3)' // green + }, - var registrationNameDependencies = {}; + margin: { + borderColor: 'rgba(255, 132, 0, 0.3)' // orange + } + }); - function injectEventPluginOrder(injectedEventPluginOrder) { - if (eventPluginOrder) { - throw new Error("EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); - } + /** + * Resolves relative sizes (percentages and auto) in a style object. + * + * @param style the style to resolve + * @return a modified copy + */ + function resolveRelativeSizes(style) { + var resolvedStyle = Object.assign({}, style); + resolveSizeInPlace(resolvedStyle, 'top', 'height'); + resolveSizeInPlace(resolvedStyle, 'right', 'width'); + resolveSizeInPlace(resolvedStyle, 'bottom', 'height'); + resolveSizeInPlace(resolvedStyle, 'left', 'width'); + return resolvedStyle; + } - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); + /** + * Resolves the given size of a style object in place. + * + * @param style the style object to modify + * @param direction the direction to resolve (e.g. 'top') + * @param dimension the window dimension that this direction belongs to (e.g. 'height') + */ + function resolveSizeInPlace(style, direction, dimension) { + if (style[direction] !== null && typeof style[direction] === 'string') { + if (style[direction].indexOf('%') !== -1) { + // $FlowFixMe[prop-missing] + style[direction] = parseFloat(style[direction]) / 100.0 * _$$_REQUIRE(_dependencyMap[12], "../Utilities/Dimensions").default.get('window')[dimension]; } - - function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = false; - for (var pluginName in injectedNamesToPlugins) { - if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { - continue; - } - var pluginModule = injectedNamesToPlugins[pluginName]; - if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { - if (namesToPlugins[pluginName]) { - throw new Error("EventPluginRegistry: Cannot inject two different event plugins " + ("using the same name, `" + pluginName + "`.")); - } - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } - } - if (isOrderingDirty) { - recomputePluginOrdering(); - } + if (style[direction] === 'auto') { + // Ignore auto sizing in frame drawing due to complexity of correctly rendering this + // $FlowFixMe[prop-missing] + style[direction] = 0; } + } + } + module.exports = ElementBox; +},265,[53,51,41,49,12,13,207,266,89,225,269,259,247],"node_modules/react-native/Libraries/Inspector/ElementBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { - var stateNode = inst.stateNode; - if (stateNode === null) { - return null; - } + 'use strict'; - var props = getFiberCurrentPropsFromNode(stateNode); - if (props === null) { - return null; - } - var listener = props[registrationName]; - if (listener && typeof listener !== "function") { - throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); - } + /** + * Resolve a style property into its component parts. + * + * For example: + * + * > resolveProperties('margin', {margin: 5, marginBottom: 10}) + * {top: 5, left: 5, right: 5, bottom: 10} + * + * If no parts exist, this returns null. + */ + function resolveBoxStyle(prefix, style) { + var hasParts = false; + var result = { + bottom: 0, + left: 0, + right: 0, + top: 0 + }; - if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) { - return listener; - } + // TODO: Fix issues with multiple properties affecting the same side. - var listeners = []; - if (listener) { - listeners.push(listener); + var styleForAll = style[prefix]; + if (styleForAll != null) { + for (var key of Object.keys(result)) { + result[key] = styleForAll; + } + hasParts = true; + } + var styleForHorizontal = style[prefix + 'Horizontal']; + if (styleForHorizontal != null) { + result.left = styleForHorizontal; + result.right = styleForHorizontal; + hasParts = true; + } else { + var styleForLeft = style[prefix + 'Left']; + if (styleForLeft != null) { + result.left = styleForLeft; + hasParts = true; + } + var styleForRight = style[prefix + 'Right']; + if (styleForRight != null) { + result.right = styleForRight; + hasParts = true; + } + var styleForEnd = style[prefix + 'End']; + if (styleForEnd != null) { + var constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); + if (constants.isRTL && constants.doLeftAndRightSwapInRTL) { + result.left = styleForEnd; + } else { + result.right = styleForEnd; } - - var requestedPhaseIsCapture = phase === "captured"; - var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; - - if (stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length > 0) { - var eventListeners = stateNode.canonical._eventListeners[mangledImperativeRegistrationName]; - eventListeners.forEach(function (listenerObj) { - var isCaptureEvent = listenerObj.options.capture != null && listenerObj.options.capture; - if (isCaptureEvent !== requestedPhaseIsCapture) { - return; - } - - var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { - var eventInst = new ReactNativePrivateInterface.CustomEvent(mangledImperativeRegistrationName, { - detail: syntheticEvent.nativeEvent - }); - eventInst.isTrusted = true; - - eventInst.setSyntheticEvent(syntheticEvent); - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); - }; - - if (listenerObj.options.once) { - listeners.push(function () { - stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); - - if (!listenerObj.invalidated) { - listenerObj.invalidated = true; - listenerObj.listener.apply(listenerObj, arguments); - } - }); - } else { - listeners.push(listenerFnWrapper); - } - }); - } - if (listeners.length === 0) { - return null; - } - if (listeners.length === 1) { - return listeners[0]; - } - return listeners; - } - var customBubblingEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; - - function listenersAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListeners(inst, registrationName, propagationPhase, true); + hasParts = true; } - function accumulateListenersAndInstances(inst, event, listeners) { - var listenersLength = listeners ? isArray(listeners) ? listeners.length : 1 : 0; - if (listenersLength > 0) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); - - if (event._dispatchInstances == null && listenersLength === 1) { - event._dispatchInstances = inst; - } else { - event._dispatchInstances = event._dispatchInstances || []; - if (!isArray(event._dispatchInstances)) { - event._dispatchInstances = [event._dispatchInstances]; - } - for (var i = 0; i < listenersLength; i++) { - event._dispatchInstances.push(inst); - } - } + var styleForStart = style[prefix + 'Start']; + if (styleForStart != null) { + var _constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); + if (_constants.isRTL && _constants.doLeftAndRightSwapInRTL) { + result.right = styleForStart; + } else { + result.left = styleForStart; } + hasParts = true; } - function accumulateDirectionalDispatches$1(inst, phase, event) { - { - if (!inst) { - error("Dispatching inst must not be null"); - } - } - var listeners = listenersAtPhase(inst, event, phase); - accumulateListenersAndInstances(inst, event, listeners); + } + var styleForVertical = style[prefix + 'Vertical']; + if (styleForVertical != null) { + result.bottom = styleForVertical; + result.top = styleForVertical; + hasParts = true; + } else { + var styleForBottom = style[prefix + 'Bottom']; + if (styleForBottom != null) { + result.bottom = styleForBottom; + hasParts = true; } - function getParent$1(inst) { - do { - inst = inst.return; - } while (inst && inst.tag !== HostComponent); - if (inst) { - return inst; - } - return null; + var styleForTop = style[prefix + 'Top']; + if (styleForTop != null) { + result.top = styleForTop; + hasParts = true; } + } + return hasParts ? result : null; + } + module.exports = resolveBoxStyle; +},266,[267],"node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeI18nManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeI18nManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { - var path = []; - while (inst) { - path.push(inst); - inst = getParent$1(inst); - } - var i; - for (i = path.length; i-- > 0;) { - fn(path[i], "captured", arg); - } - if (skipBubbling) { - fn(path[0], "bubbled", arg); - } else { - for (i = 0; i < path.length; i++) { - fn(path[i], "bubbled", arg); - } - } - } - function accumulateTwoPhaseDispatchesSingle$1(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, false); - } + var i18nConstants = getI18nManagerConstants(); + function getI18nManagerConstants() { + if (_NativeI18nManager.default) { + var _NativeI18nManager$ge = _NativeI18nManager.default.getConstants(), + isRTL = _NativeI18nManager$ge.isRTL, + doLeftAndRightSwapInRTL = _NativeI18nManager$ge.doLeftAndRightSwapInRTL, + localeIdentifier = _NativeI18nManager$ge.localeIdentifier; + return { + isRTL: isRTL, + doLeftAndRightSwapInRTL: doLeftAndRightSwapInRTL, + localeIdentifier: localeIdentifier + }; + } + return { + isRTL: false, + doLeftAndRightSwapInRTL: true + }; + } + module.exports = { + getConstants: function getConstants() { + return i18nConstants; + }, + allowRTL: function allowRTL(shouldAllow) { + if (!_NativeI18nManager.default) { + return; } - function accumulateTwoPhaseDispatches$1(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle$1); + _NativeI18nManager.default.allowRTL(shouldAllow); + }, + forceRTL: function forceRTL(shouldForce) { + if (!_NativeI18nManager.default) { + return; } - function accumulateCapturePhaseDispatches(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, true); - } + _NativeI18nManager.default.forceRTL(shouldForce); + }, + swapLeftAndRightInRTL: function swapLeftAndRightInRTL(flipStyles) { + if (!_NativeI18nManager.default) { + return; } + _NativeI18nManager.default.swapLeftAndRightInRTL(flipStyles); + }, + isRTL: i18nConstants.isRTL, + doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL + }; +},267,[3,268],"node_modules/react-native/Libraries/ReactNative/I18nManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('I18nManager'); + exports.default = _default; +},268,[19],"node_modules/react-native/Libraries/ReactNative/NativeI18nManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function accumulateDispatches$1(inst, ignoredDirection, event) { - if (inst && event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName; - var listeners = getListeners(inst, registrationName, "bubbled", false); - accumulateListenersAndInstances(inst, event, listeners); - } - } + 'use strict'; - function accumulateDirectDispatchesSingle$1(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches$1(event._targetInst, null, event); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/BorderBox.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var BorderBox = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BorderBox, _React$Component); + var _super = _createSuper(BorderBox); + function BorderBox() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BorderBox); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BorderBox, [{ + key: "render", + value: function render() { + var box = this.props.box; + if (!box) { + return this.props.children; } + var style = { + borderTopWidth: box.top, + borderBottomWidth: box.bottom, + borderLeftWidth: box.left, + borderRightWidth: box.right + }; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: [style, this.props.style], + children: this.props.children + }); } - function accumulateDirectDispatches$1(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle$1); - } - - var ReactNativeBridgeEventPlugin = { - eventTypes: {}, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (targetInst == null) { - return null; - } - var bubbleDispatchConfig = customBubblingEventTypes[topLevelType]; - var directDispatchConfig = customDirectEventTypes[topLevelType]; - if (!bubbleDispatchConfig && !directDispatchConfig) { - throw new Error( - 'Unsupported top level event type "' + topLevelType + '" dispatched'); - } - var event = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - if (bubbleDispatchConfig) { - var skipBubbling = event != null && event.dispatchConfig.phasedRegistrationNames != null && event.dispatchConfig.phasedRegistrationNames.skipBubbling; - if (skipBubbling) { - accumulateCapturePhaseDispatches(event); - } else { - accumulateTwoPhaseDispatches$1(event); - } - } else if (directDispatchConfig) { - accumulateDirectDispatches$1(event); - } else { - return null; - } - return event; - } - }; - var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + }]); + return BorderBox; + }(React.Component); + module.exports = BorderBox; +},269,[53,51,41,49,12,13,89,225],"node_modules/react-native/Libraries/Inspector/BorderBox.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - injectEventPluginOrder(ReactNativeEventPluginOrder); + 'use strict'; - injectEventPluginsByName({ - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin - }); - function getInstanceFromInstance(instanceHandle) { - return instanceHandle; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _SafeAreaView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Components/SafeAreaView/SafeAreaView")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/InspectorPanel.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[7], "react"); + var InspectorPanel = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(InspectorPanel, _React$Component); + var _super = _createSuper(InspectorPanel); + function InspectorPanel() { + (0, _classCallCheck2.default)(this, InspectorPanel); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(InspectorPanel, [{ + key: "renderWaiting", + value: function renderWaiting() { + if (this.props.inspecting) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.waitingText, + children: "Tap something to inspect it" + }); + } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.waitingText, + children: "Nothing is inspected" + }); } - function getTagFromInstance(inst) { - var nativeInstance = inst.stateNode.canonical; - if (!nativeInstance._nativeTag) { - throw new Error("All native instances should have a tag."); + }, { + key: "render", + value: function render() { + var contents; + if (this.props.inspected) { + contents = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/ScrollView/ScrollView"), { + style: styles.properties, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./ElementProperties"), { + style: this.props.inspected.style, + frame: this.props.inspected.frame, + source: this.props.inspected.source + // $FlowFixMe[incompatible-type] : Hierarchy should be non-nullable + , + hierarchy: this.props.hierarchy, + selection: this.props.selection, + setSelection: this.props.setSelection + }) + }); + } else if (this.props.perfing) { + contents = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "./PerformanceOverlay"), {}); + } else if (this.props.networking) { + contents = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "./NetworkOverlay"), {}); + } else { + contents = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../Components/View/View"), { + style: styles.waiting, + children: this.renderWaiting() + }); } - return nativeInstance; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_SafeAreaView.default, { + style: styles.container, + children: [!this.props.devtoolsIsOpen && contents, /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[14], "../Components/View/View"), { + style: styles.buttonRow, + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(InspectorPanelButton, { + title: 'Inspect', + pressed: this.props.inspecting, + onClick: this.props.setInspecting + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(InspectorPanelButton, { + title: 'Perf', + pressed: this.props.perfing, + onClick: this.props.setPerfing + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(InspectorPanelButton, { + title: 'Network', + pressed: this.props.networking, + onClick: this.props.setNetworking + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(InspectorPanelButton, { + title: 'Touchables', + pressed: this.props.touchTargeting, + onClick: this.props.setTouchTargeting + })] + })] + }); } - function getFiberCurrentPropsFromNode$1(inst) { - return inst.canonical.currentProps; + }]); + return InspectorPanel; + }(React.Component); + var InspectorPanelButton = /*#__PURE__*/function (_React$Component2) { + (0, _inherits2.default)(InspectorPanelButton, _React$Component2); + var _super2 = _createSuper(InspectorPanelButton); + function InspectorPanelButton() { + (0, _classCallCheck2.default)(this, InspectorPanelButton); + return _super2.apply(this, arguments); + } + (0, _createClass2.default)(InspectorPanelButton, [{ + key: "render", + value: function render() { + var _this = this; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[15], "../Components/Touchable/TouchableHighlight"), { + onPress: function onPress() { + return _this.props.onClick(!_this.props.pressed); + }, + style: [styles.button, this.props.pressed && styles.buttonPressed], + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.buttonText, + children: this.props.title + }) + }); } + }]); + return InspectorPanelButton; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ + buttonRow: { + flexDirection: 'row' + }, + button: { + backgroundColor: 'rgba(0, 0, 0, 0.3)', + margin: 2, + height: 30, + justifyContent: 'center', + alignItems: 'center' + }, + buttonPressed: { + backgroundColor: 'rgba(255, 255, 255, 0.3)' + }, + buttonText: { + textAlign: 'center', + color: 'white', + margin: 5 + }, + container: { + backgroundColor: 'rgba(0, 0, 0, 0.7)' + }, + properties: { + height: 200 + }, + waiting: { + height: 100 + }, + waitingText: { + fontSize: 20, + textAlign: 'center', + marginVertical: 20, + color: 'white' + } + }); + module.exports = InspectorPanel; +},270,[3,12,13,49,51,53,271,41,89,287,324,417,424,425,225,418,259],"node_modules/react-native/Libraries/Inspector/InspectorPanel.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../View/View")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var ReactFabricGlobalResponderHandler = { - onChange: function onChange(from, to, blockNativeResponder) { - var fromOrTo = from || to; - var fromOrToStateNode = fromOrTo && fromOrTo.stateNode; - var isFabric = !!(fromOrToStateNode && fromOrToStateNode.canonical._internalInstanceHandle); - if (isFabric) { - if (from) { - nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false, blockNativeResponder || false); - } - if (to) { - nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true, blockNativeResponder || false); - } - } else { - if (to !== null) { - var tag = to.stateNode.canonical._nativeTag; - ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); - } else { - ReactNativePrivateInterface.UIManager.clearJSResponder(); - } - } - } - }; - setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromInstance, getTagFromInstance); - ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactFabricGlobalResponderHandler); + var exported; - function get(key) { - return key._reactInternals; - } - function set(key, value) { - key._reactInternals = value; - } - var enableSchedulingProfiler = false; - var enableProfilerTimer = true; - var enableProfilerCommitHooks = true; - var warnAboutStringRefs = false; - var enableSuspenseAvoidThisFallback = false; - var enableNewReconciler = false; - var enableLazyContextPropagation = false; - var enableLegacyHidden = false; + /** + * Renders nested content and automatically applies paddings reflect the portion + * of the view that is not covered by navigation bars, tab bars, toolbars, and + * other ancestor views. + * + * Moreover, and most importantly, Safe Area's paddings reflect physical + * limitation of the screen, such as rounded corners or camera notches (aka + * sensor housing area on iPhone X). + */ + if (_Platform.default.OS === 'android') { + exported = _View.default; + } else { + exported = _$$_REQUIRE(_dependencyMap[4], "./RCTSafeAreaViewNativeComponent").default; + } + var _default = exported; + exports.default = _default; +},271,[3,17,225,41,272],"node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = (0, _codegenNativeComponent.default)('SafeAreaView', { + paperComponentName: 'RCTSafeAreaView', + interfaceOnly: true + }); + exports.default = _default; +},272,[3,273],"node_modules/react-native/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _requireNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Libraries/ReactNative/requireNativeComponent")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var REACT_ELEMENT_TYPE = Symbol.for("react.element"); - var REACT_PORTAL_TYPE = Symbol.for("react.portal"); - var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); - var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); - var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); - var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); - var REACT_CONTEXT_TYPE = Symbol.for("react.context"); - var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); - var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); - var REACT_MEMO_TYPE = Symbol.for("react.memo"); - var REACT_LAZY_TYPE = Symbol.for("react.lazy"); - var REACT_SCOPE_TYPE = Symbol.for("react.scope"); - var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); - var REACT_CACHE_TYPE = Symbol.for("react.cache"); - var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== "object") { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === "function") { - return maybeIterator; - } - return null; - } - function getWrappedName(outerType, innerType, wrapperName) { - var displayName = outerType.displayName; - if (displayName) { - return displayName; - } - var functionName = innerType.displayName || innerType.name || ""; - return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; - } + // TODO: move this file to shims/ReactNative (requires React update and sync) - function getContextName(type) { - return type.displayName || "Context"; + // TODO: import from CodegenSchema once workspaces are enabled + + // If this function runs then that means the view configs were not + // generated at build time using `GenerateViewConfigJs.js`. Thus + // we need to `requireNativeComponent` to get the view configs from view managers. + // `requireNativeComponent` is not available in Bridgeless mode. + // e.g. This function runs at runtime if `codegenNativeComponent` was not called + // from a file suffixed with NativeComponent.js. + function codegenNativeComponent(componentName, options) { + if (global.RN$Bridgeless === true) { + var errorMessage = "Native Component '" + componentName + "' that calls codegenNativeComponent was not code generated at build time. Please check its definition."; + console.error(errorMessage); + } + var componentNameInUse = options && options.paperComponentName != null ? options.paperComponentName : componentName; + if (options != null && options.paperComponentNameDeprecated != null) { + if (_UIManager.default.hasViewManagerConfig(componentName)) { + componentNameInUse = componentName; + } else if (options.paperComponentNameDeprecated != null && _UIManager.default.hasViewManagerConfig(options.paperComponentNameDeprecated)) { + // $FlowFixMe[incompatible-type] + componentNameInUse = options.paperComponentNameDeprecated; + } else { + var _options$paperCompone; + throw new Error(`Failed to find native component for either ${componentName} or ${(_options$paperCompone = options.paperComponentNameDeprecated) != null ? _options$paperCompone : '(unknown)'}`); } + } + return (0, _requireNativeComponent.default)( + // $FlowFixMe[incompatible-call] + componentNameInUse); + } + var _default = codegenNativeComponent; + exports.default = _default; +},273,[3,274,230],"node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function getComponentNameFromType(type) { - if (type == null) { - return null; - } - { - if (typeof type.tag === "number") { - error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue."); - } - } - if (typeof type === "function") { - return type.displayName || type.name || null; - } - if (typeof type === "string") { - return type; - } - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); - case REACT_MEMO_TYPE: - var outerName = type.displayName || null; - if (outerName !== null) { - return outerName; - } - return getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: - { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return getComponentNameFromType(init(payload)); - } catch (x) { - return null; - } - } + 'use strict'; - } - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /** + * Creates values that can be used like React components which represent native + * view managers. You should create JavaScript modules that wrap these values so + * that the results are memoized. Example: + * + * const View = requireNativeComponent('RCTView'); + * + */ - return null; - } - function getWrappedName$1(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ""; - return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); - } + var requireNativeComponent = function requireNativeComponent(uiViewClassName) { + return _$$_REQUIRE(_dependencyMap[0], "../Renderer/shims/createReactNativeComponentClass")(uiViewClassName, function () { + return _$$_REQUIRE(_dependencyMap[1], "./getNativeComponentAttributes")(uiViewClassName); + }); + }; + var _default = requireNativeComponent; + exports.default = _default; +},274,[275,229],"node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @noformat + * + * @generated SignedSource<> + * + * This file was sync'd from the facebook/react repository. + */ - function getContextName$1(type) { - return type.displayName || "Context"; - } - function getComponentNameFromFiber(fiber) { - var tag = fiber.tag, - type = fiber.type; - switch (tag) { - case CacheComponent: - return "Cache"; - case ContextConsumer: - var context = type; - return getContextName$1(context) + ".Consumer"; - case ContextProvider: - var provider = type; - return getContextName$1(provider._context) + ".Provider"; - case DehydratedFragment: - return "DehydratedFragment"; - case ForwardRef: - return getWrappedName$1(type, type.render, "ForwardRef"); - case Fragment: - return "Fragment"; - case HostComponent: - return type; - case HostPortal: - return "Portal"; - case HostRoot: - return "Root"; - case HostText: - return "Text"; - case LazyComponent: - return getComponentNameFromType(type); - case Mode: - if (type === REACT_STRICT_MODE_TYPE) { - return "StrictMode"; - } - return "Mode"; - case OffscreenComponent: - return "Offscreen"; - case Profiler: - return "Profiler"; - case ScopeComponent: - return "Scope"; - case SuspenseComponent: - return "Suspense"; - case SuspenseListComponent: - return "SuspenseList"; - case TracingMarkerComponent: - return "TracingMarker"; + 'use strict'; - case ClassComponent: - case FunctionComponent: - case IncompleteClassComponent: - case IndeterminateComponent: - case MemoComponent: - case SimpleMemoComponent: - if (typeof type === "function") { - return type.displayName || type.name || null; - } - if (typeof type === "string") { - return type; - } - break; - } - return null; - } + var register = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.register; - var NoFlags = - 0; - var PerformedWork = - 1; + /** + * Creates a renderable ReactNative host component. + * Use this method for view configs that are loaded from UIManager. + * Use createReactNativeComponentClass() for view configs defined within JavaScript. + * + * @param {string} config iOS View configuration. + * @private + */ + var createReactNativeComponentClass = function createReactNativeComponentClass(name, callback) { + return register(name, callback); + }; + module.exports = createReactNativeComponentClass; +},275,[276],"node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var Placement = - 2; - var Update = - 4; - var ChildDeletion = - 16; - var ContentReset = - 32; - var Callback = - 64; - var DidCapture = - 128; - var ForceClientRender = - 256; - var Ref = - 512; - var Snapshot = - 1024; - var Passive = - 2048; - var Hydrating = - 4096; - var Visibility = - 8192; - var StoreConsistency = - 16384; - var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; + // flowlint unsafe-getters-setters:off + module.exports = { + get BatchedBridge() { + return _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge"); + }, + get ExceptionsManager() { + return _$$_REQUIRE(_dependencyMap[1], "../Core/ExceptionsManager"); + }, + get Platform() { + return _$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform"); + }, + get RCTEventEmitter() { + return _$$_REQUIRE(_dependencyMap[3], "../EventEmitter/RCTEventEmitter"); + }, + get ReactNativeViewConfigRegistry() { + return _$$_REQUIRE(_dependencyMap[4], "../Renderer/shims/ReactNativeViewConfigRegistry"); + }, + get TextInputState() { + return _$$_REQUIRE(_dependencyMap[5], "../Components/TextInput/TextInputState"); + }, + get UIManager() { + return _$$_REQUIRE(_dependencyMap[6], "../ReactNative/UIManager"); + }, + get deepDiffer() { + return _$$_REQUIRE(_dependencyMap[7], "../Utilities/differ/deepDiffer"); + }, + get deepFreezeAndThrowOnMutationInDev() { + return _$$_REQUIRE(_dependencyMap[8], "../Utilities/deepFreezeAndThrowOnMutationInDev"); + }, + get flattenStyle() { + // $FlowFixMe[underconstrained-implicit-instantiation] + return _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/flattenStyle"); + }, + get ReactFiberErrorDialog() { + return _$$_REQUIRE(_dependencyMap[10], "../Core/ReactFiberErrorDialog").default; + }, + get legacySendAccessibilityEvent() { + return _$$_REQUIRE(_dependencyMap[11], "../Components/AccessibilityInfo/legacySendAccessibilityEvent"); + }, + get RawEventEmitter() { + return _$$_REQUIRE(_dependencyMap[12], "../Core/RawEventEmitter").default; + }, + get CustomEvent() { + return _$$_REQUIRE(_dependencyMap[13], "../Events/CustomEvent").default; + } + }; +},276,[26,67,17,277,250,278,230,282,30,207,283,34,284,285],"node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var HostEffectMask = - 32767; + 'use strict'; - var Incomplete = - 32768; - var ShouldCapture = - 65536; - var ForceUpdateForLegacySuspense = - 131072; - var Forked = - 1048576; + var RCTEventEmitter = { + register: function register(eventEmitter) { + if (global.RN$Bridgeless) { + global.RN$registerCallableModule('RCTEventEmitter', function () { + return eventEmitter; + }); + } else { + _$$_REQUIRE(_dependencyMap[0], "../BatchedBridge/BatchedBridge").registerCallableModule('RCTEventEmitter', eventEmitter); + } + } + }; + module.exports = RCTEventEmitter; +},277,[26],"node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var RefStatic = - 2097152; - var LayoutStatic = - 4194304; - var PassiveStatic = - 8388608; + // This class is responsible for coordinating the "focused" state for + // TextInputs. All calls relating to the keyboard should be funneled + // through here. - var BeforeMutationMask = - Update | Snapshot | 0; - var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; - var LayoutMask = Update | Callback | Ref | Visibility; + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + var currentlyFocusedInputRef = null; + var inputs = new Set(); + function currentlyFocusedInput() { + return currentlyFocusedInputRef; + } - var PassiveMask = Passive | ChildDeletion; + /** + * Returns the ID of the currently focused text field, if one exists + * If no text field is focused it returns null + */ + function currentlyFocusedField() { + if (__DEV__) { + console.error('currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput'); + } + return _$$_REQUIRE(_dependencyMap[1], "../../ReactNative/RendererProxy").findNodeHandle(currentlyFocusedInputRef); + } + function focusInput(textField) { + if (currentlyFocusedInputRef !== textField && textField != null) { + currentlyFocusedInputRef = textField; + } + } + function blurInput(textField) { + if (currentlyFocusedInputRef === textField && textField != null) { + currentlyFocusedInputRef = null; + } + } + function focusField(textFieldID) { + if (__DEV__) { + console.error('focusField no longer works. Use focusInput'); + } + return; + } + function blurField(textFieldID) { + if (__DEV__) { + console.error('blurField no longer works. Use blurInput'); + } + return; + } - var StaticMask = LayoutStatic | PassiveStatic | RefStatic; - var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; - function getNearestMountedFiber(fiber) { - var node = fiber; - var nearestMounted = fiber; - if (!fiber.alternate) { - var nextNode = node; - do { - node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { - nearestMounted = node.return; - } - nextNode = node.return; - } while (nextNode); - } else { - while (node.return) { - node = node.return; - } - } - if (node.tag === HostRoot) { - return nearestMounted; - } + /** + * @param {number} TextInputID id of the text field to focus + * Focuses the specified text field + * noop if the text field was already focused or if the field is not editable + */ + function focusTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('focusTextInput must be called with a host component. Passing a react tag is deprecated.'); + } + return; + } + if (textField != null) { + var _textField$currentPro; + var fieldCanBeFocused = currentlyFocusedInputRef !== textField && + // $FlowFixMe - `currentProps` is missing in `NativeMethods` + ((_textField$currentPro = textField.currentProps) == null ? void 0 : _textField$currentPro.editable) !== false; + if (!fieldCanBeFocused) { + return; + } + focusInput(textField); + if ("ios" === 'ios') { + // This isn't necessarily a single line text input + // But commands don't actually care as long as the thing being passed in + // actually has a command with that name. So this should work with single + // and multiline text inputs. Ideally we'll merge them into one component + // in the future. + _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.focus(textField); + } else if ("ios" === 'android') { + _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.focus(textField); + } + } + } - return null; + /** + * @param {number} textFieldID id of the text field to unfocus + * Unfocuses the specified text field + * noop if it wasn't focused + */ + function blurTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('blurTextInput must be called with a host component. Passing a react tag is deprecated.'); } - function isFiberMounted(fiber) { - return getNearestMountedFiber(fiber) === fiber; + return; + } + if (currentlyFocusedInputRef === textField && textField != null) { + blurInput(textField); + if ("ios" === 'ios') { + // This isn't necessarily a single line text input + // But commands don't actually care as long as the thing being passed in + // actually has a command with that name. So this should work with single + // and multiline text inputs. Ideally we'll merge them into one component + // in the future. + _$$_REQUIRE(_dependencyMap[2], "../../Components/TextInput/RCTSingelineTextInputNativeComponent").Commands.blur(textField); + } else if ("ios" === 'android') { + _$$_REQUIRE(_dependencyMap[3], "../../Components/TextInput/AndroidTextInputNativeComponent").Commands.blur(textField); } - function isMounted(component) { - { - var owner = ReactCurrentOwner.current; - if (owner !== null && owner.tag === ClassComponent) { - var ownerFiber = owner; - var instance = ownerFiber.stateNode; - if (!instance._warnedAboutRefsInRender) { - error("%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"); - } - instance._warnedAboutRefsInRender = true; - } - } - var fiber = get(component); - if (!fiber) { - return false; - } - return getNearestMountedFiber(fiber) === fiber; + } + } + function registerInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('registerInput must be called with a host component. Passing a react tag is deprecated.'); } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) { - throw new Error("Unable to find node on an unmounted component."); - } + return; + } + inputs.add(textField); + } + function unregisterInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('unregisterInput must be called with a host component. Passing a react tag is deprecated.'); } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - var nearestMounted = getNearestMountedFiber(fiber); - if (nearestMounted === null) { - throw new Error("Unable to find node on an unmounted component."); - } - if (nearestMounted !== fiber) { - return null; - } - return fiber; - } + return; + } + inputs.delete(textField); + } + function isTextInput(textField) { + if (typeof textField === 'number') { + if (__DEV__) { + console.error('isTextInput must be called with a host component. Passing a react tag is deprecated.'); + } + return false; + } + return inputs.has(textField); + } + module.exports = { + currentlyFocusedInput: currentlyFocusedInput, + focusInput: focusInput, + blurInput: blurInput, + currentlyFocusedField: currentlyFocusedField, + focusField: focusField, + blurField: blurField, + focusTextInput: focusTextInput, + blurTextInput: blurTextInput, + registerInput: registerInput, + unregisterInput: unregisterInput, + isTextInput: isTextInput + }; +},278,[41,37,279,281],"node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeCommands")); + var _RCTTextInputViewConfig = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./RCTTextInputViewConfig")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var a = fiber; - var b = alternate; - while (true) { - var parentA = a.return; - if (parentA === null) { - break; - } - var parentB = parentA.alternate; - if (parentB === null) { - var nextParent = parentA.return; - if (nextParent !== null) { - a = b = nextParent; - continue; - } - - break; - } + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['focus', 'blur', 'setTextAndSelection'] + }); + exports.Commands = Commands; + var __INTERNAL_VIEW_CONFIG = Object.assign({ + uiViewClassName: 'RCTSinglelineTextInputView' + }, _RCTTextInputViewConfig.default); + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var SinglelineTextInputNativeComponent = NativeComponentRegistry.get('RCTSinglelineTextInputView', function () { + return __INTERNAL_VIEW_CONFIG; + }); - if (parentA.child === parentB.child) { - var child = parentA.child; - while (child) { - if (child === a) { - assertIsMounted(parentA); - return fiber; - } - if (child === b) { - assertIsMounted(parentA); - return alternate; - } - child = child.sibling; - } + // flowlint-next-line unclear-type:off + var _default = SinglelineTextInputNativeComponent; + exports.default = _default; +},279,[228,3,257,280],"node_modules/react-native/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - throw new Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) { - a = parentA; - b = parentB; - } else { - var didFindChild = false; - var _child = parentA.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = true; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - _child = parentB.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = true; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - throw new Error("Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); - } - } - } - if (a.alternate !== b) { - throw new Error("Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); - } + var RCTTextInputViewConfig = { + bubblingEventTypes: { + topBlur: { + phasedRegistrationNames: { + bubbled: 'onBlur', + captured: 'onBlurCapture' } - - if (a.tag !== HostRoot) { - throw new Error("Unable to find node on an unmounted component."); + }, + topChange: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' } - if (a.stateNode.current === a) { - return fiber; + }, + topContentSizeChange: { + phasedRegistrationNames: { + captured: 'onContentSizeChangeCapture', + bubbled: 'onContentSizeChange' } - - return alternate; - } - function findCurrentHostFiber(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; - } - function findCurrentHostFiberImpl(node) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; + }, + topEndEditing: { + phasedRegistrationNames: { + bubbled: 'onEndEditing', + captured: 'onEndEditingCapture' } - var child = node.child; - while (child !== null) { - var match = findCurrentHostFiberImpl(child); - if (match !== null) { - return match; - } - child = child.sibling; + }, + topFocus: { + phasedRegistrationNames: { + bubbled: 'onFocus', + captured: 'onFocusCapture' } - return null; - } - - function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { - return function () { - if (!callback) { - return undefined; - } - - if (typeof context.__isMounted === "boolean") { - if (!context.__isMounted) { - return undefined; - } - } - - return callback.apply(context, arguments); - }; - } - - var emptyObject = {}; - - var removedKeys = null; - var removedKeyCount = 0; - var deepDifferOptions = { - unsafelyIgnoreFunctions: true - }; - function defaultDiffer(prevProp, nextProp) { - if (typeof nextProp !== "object" || nextProp === null) { - return true; - } else { - return ReactNativePrivateInterface.deepDiffer(prevProp, nextProp, deepDifferOptions); + }, + topKeyPress: { + phasedRegistrationNames: { + bubbled: 'onKeyPress', + captured: 'onKeyPressCapture' } - } - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (isArray(node)) { - var i = node.length; - while (i-- && removedKeyCount > 0) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } - } else if (node && removedKeyCount > 0) { - var obj = node; - for (var propKey in removedKeys) { - if (!removedKeys[propKey]) { - continue; - } - var nextProp = obj[propKey]; - if (nextProp === undefined) { - continue; - } - var attributeConfig = validAttributes[propKey]; - if (!attributeConfig) { - continue; - } - - if (typeof nextProp === "function") { - nextProp = true; - } - if (typeof nextProp === "undefined") { - nextProp = null; - } - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - updatePayload[propKey] = nextValue; - } - removedKeys[propKey] = false; - removedKeyCount--; - } + }, + topSubmitEditing: { + phasedRegistrationNames: { + bubbled: 'onSubmitEditing', + captured: 'onSubmitEditingCapture' } - } - function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { - var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; - var i; - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); + }, + topTouchCancel: { + phasedRegistrationNames: { + bubbled: 'onTouchCancel', + captured: 'onTouchCancelCapture' } - for (; i < prevArray.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); + }, + topTouchEnd: { + phasedRegistrationNames: { + bubbled: 'onTouchEnd', + captured: 'onTouchEndCapture' } - for (; i < nextArray.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); + }, + topTouchMove: { + phasedRegistrationNames: { + bubbled: 'onTouchMove', + captured: 'onTouchMoveCapture' } - return updatePayload; } - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) { - return updatePayload; - } - if (!prevProp || !nextProp) { - if (nextProp) { - return addNestedProperty(updatePayload, nextProp, validAttributes); - } - if (prevProp) { - return clearNestedProperty(updatePayload, prevProp, validAttributes); - } - return updatePayload; - } - if (!isArray(prevProp) && !isArray(nextProp)) { - return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - } - if (isArray(prevProp) && isArray(nextProp)) { - return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); - } - if (isArray(prevProp)) { - return diffProperties(updatePayload, - ReactNativePrivateInterface.flattenStyle(prevProp), - nextProp, validAttributes); - } - return diffProperties(updatePayload, prevProp, - ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes); + }, + directEventTypes: { + topTextInput: { + registrationName: 'onTextInput' + }, + topKeyPressSync: { + registrationName: 'onKeyPressSync' + }, + topScroll: { + registrationName: 'onScroll' + }, + topSelectionChange: { + registrationName: 'onSelectionChange' + }, + topChangeSync: { + registrationName: 'onChangeSync' } + }, + validAttributes: Object.assign({ + fontSize: true, + fontWeight: true, + fontVariant: true, + // flowlint-next-line untyped-import:off + textShadowOffset: { + diff: _$$_REQUIRE(_dependencyMap[0], "../../Utilities/differ/sizesDiffer") + }, + allowFontScaling: true, + fontStyle: true, + textTransform: true, + textAlign: true, + fontFamily: true, + lineHeight: true, + isHighlighted: true, + writingDirection: true, + textDecorationLine: true, + textShadowRadius: true, + letterSpacing: true, + textDecorationStyle: true, + textDecorationColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + color: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + maxFontSizeMultiplier: true, + textShadowColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + editable: true, + inputAccessoryViewID: true, + caretHidden: true, + enablesReturnKeyAutomatically: true, + placeholderTextColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + clearButtonMode: true, + keyboardType: true, + selection: true, + returnKeyType: true, + submitBehavior: true, + mostRecentEventCount: true, + scrollEnabled: true, + selectionColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + contextMenuHidden: true, + secureTextEntry: true, + placeholder: true, + autoCorrect: true, + multiline: true, + textContentType: true, + maxLength: true, + autoCapitalize: true, + keyboardAppearance: true, + passwordRules: true, + spellCheck: true, + selectTextOnFocus: true, + text: true, + clearTextOnFocus: true, + showSoftInputOnFocus: true, + autoFocus: true, + lineBreakStrategyIOS: true + }, (0, _$$_REQUIRE(_dependencyMap[2], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onChange: true, + onSelectionChange: true, + onContentSizeChange: true, + onScroll: true, + onChangeSync: true, + onKeyPressSync: true, + onTextInput: true + })) + }; + module.exports = RCTTextInputViewConfig; +},280,[203,174,254],"node_modules/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeCommands")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) { - return updatePayload; + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['focus', 'blur', 'setTextAndSelection'] + }); + exports.Commands = Commands; + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'AndroidTextInput', + bubblingEventTypes: { + topBlur: { + phasedRegistrationNames: { + bubbled: 'onBlur', + captured: 'onBlurCapture' } - if (!isArray(nextProp)) { - return addProperties(updatePayload, nextProp, validAttributes); + }, + topEndEditing: { + phasedRegistrationNames: { + bubbled: 'onEndEditing', + captured: 'onEndEditingCapture' } - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + }, + topFocus: { + phasedRegistrationNames: { + bubbled: 'onFocus', + captured: 'onFocusCapture' } - return updatePayload; - } - - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) { - return updatePayload; + }, + topKeyPress: { + phasedRegistrationNames: { + bubbled: 'onKeyPress', + captured: 'onKeyPressCapture' } - if (!isArray(prevProp)) { - return clearProperties(updatePayload, prevProp, validAttributes); + }, + topSubmitEditing: { + phasedRegistrationNames: { + bubbled: 'onSubmitEditing', + captured: 'onSubmitEditingCapture' } - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + }, + topTextInput: { + phasedRegistrationNames: { + bubbled: 'onTextInput', + captured: 'onTextInputCapture' } - return updatePayload; } + }, + directEventTypes: { + topScroll: { + registrationName: 'onScroll' + } + }, + validAttributes: { + maxFontSizeMultiplier: true, + adjustsFontSizeToFit: true, + minimumFontScale: true, + autoFocus: true, + placeholder: true, + inlineImagePadding: true, + contextMenuHidden: true, + textShadowColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + maxLength: true, + selectTextOnFocus: true, + textShadowRadius: true, + underlineColorAndroid: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + textDecorationLine: true, + submitBehavior: true, + textAlignVertical: true, + fontStyle: true, + textShadowOffset: true, + selectionColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + placeholderTextColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + importantForAutofill: true, + lineHeight: true, + textTransform: true, + returnKeyType: true, + keyboardType: true, + multiline: true, + color: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + autoComplete: true, + numberOfLines: true, + letterSpacing: true, + returnKeyLabel: true, + fontSize: true, + onKeyPress: true, + cursorColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + text: true, + showSoftInputOnFocus: true, + textAlign: true, + autoCapitalize: true, + autoCorrect: true, + caretHidden: true, + secureTextEntry: true, + textBreakStrategy: true, + onScroll: true, + onContentSizeChange: true, + disableFullscreenUI: true, + includeFontPadding: true, + fontWeight: true, + fontFamily: true, + allowFontScaling: true, + onSelectionChange: true, + mostRecentEventCount: true, + inlineImageLeft: true, + editable: true, + fontVariant: true, + borderBottomRightRadius: true, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + borderRadius: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + borderTopRightRadius: true, + borderStyle: true, + borderBottomLeftRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + }, + borderTopLeftRadius: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor").default + } + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var AndroidTextInputNativeComponent = NativeComponentRegistry.get('AndroidTextInput', function () { + return __INTERNAL_VIEW_CONFIG; + }); - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig; - var nextProp; - var prevProp; - for (var propKey in nextProps) { - attributeConfig = validAttributes[propKey]; - if (!attributeConfig) { - continue; - } - - prevProp = prevProps[propKey]; - nextProp = nextProps[propKey]; - - if (typeof nextProp === "function") { - nextProp = true; - - if (typeof prevProp === "function") { - prevProp = true; - } - } - - if (typeof nextProp === "undefined") { - nextProp = null; - if (typeof prevProp === "undefined") { - prevProp = null; - } - } - if (removedKeys) { - removedKeys[propKey] = false; - } - if (updatePayload && updatePayload[propKey] !== undefined) { - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - updatePayload[propKey] = nextValue; - } - continue; - } - if (prevProp === nextProp) { - continue; - } - - if (typeof attributeConfig !== "object") { - if (defaultDiffer(prevProp, nextProp)) { - (updatePayload || (updatePayload = {}))[propKey] = nextProp; - } - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); - if (shouldUpdate) { - var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - (updatePayload || (updatePayload = {}))[propKey] = _nextValue; - } - } else { - removedKeys = null; - removedKeyCount = 0; - - updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); - if (removedKeyCount > 0 && updatePayload) { - restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); - removedKeys = null; - } - } - } - - for (var _propKey in prevProps) { - if (nextProps[_propKey] !== undefined) { - continue; - } + // flowlint-next-line unclear-type:off + var _default = AndroidTextInputNativeComponent; + exports.default = _default; +},281,[228,3,257,174],"node_modules/react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - attributeConfig = validAttributes[_propKey]; - if (!attributeConfig) { - continue; - } + 'use strict'; - if (updatePayload && updatePayload[_propKey] !== undefined) { - continue; - } - prevProp = prevProps[_propKey]; - if (prevProp === undefined) { - continue; - } + var logListeners; + function unstable_setLogListeners(listeners) { + logListeners = listeners; + } - if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - (updatePayload || (updatePayload = {}))[_propKey] = null; - if (!removedKeys) { - removedKeys = {}; - } - if (!removedKeys[_propKey]) { - removedKeys[_propKey] = true; - removedKeyCount++; - } - } else { - updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); - } + /* + * @returns {bool} true if different, false if equal + */ + var deepDiffer = function deepDiffer(one, two) { + var maxDepthOrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; + var maybeOptions = arguments.length > 3 ? arguments[3] : undefined; + var options = typeof maxDepthOrOptions === 'number' ? maybeOptions : maxDepthOrOptions; + var maxDepth = typeof maxDepthOrOptions === 'number' ? maxDepthOrOptions : -1; + if (maxDepth === 0) { + return true; + } + if (one === two) { + // Short circuit on identical object references instead of traversing them. + return false; + } + if (typeof one === 'function' && typeof two === 'function') { + // We consider all functions equal unless explicitly configured otherwise + var unsafelyIgnoreFunctions = options == null ? void 0 : options.unsafelyIgnoreFunctions; + if (unsafelyIgnoreFunctions == null) { + if (logListeners && logListeners.onDifferentFunctionsIgnored && (!options || !('unsafelyIgnoreFunctions' in options))) { + logListeners.onDifferentFunctionsIgnored(one.name, two.name); } - return updatePayload; + unsafelyIgnoreFunctions = true; } - - function addProperties(updatePayload, props, validAttributes) { - return diffProperties(updatePayload, emptyObject, props, validAttributes); + return !unsafelyIgnoreFunctions; + } + if (typeof one !== 'object' || one === null) { + // Primitives can be directly compared + return one !== two; + } + if (typeof two !== 'object' || two === null) { + // We know they are different because the previous case would have triggered + // otherwise. + return true; + } + if (one.constructor !== two.constructor) { + return true; + } + if (Array.isArray(one)) { + // We know two is also an array because the constructors are equal + var len = one.length; + if (two.length !== len) { + return true; } - - function clearProperties(updatePayload, prevProps, validAttributes) { - return diffProperties(updatePayload, prevProps, emptyObject, validAttributes); + for (var ii = 0; ii < len; ii++) { + if (deepDiffer(one[ii], two[ii], maxDepth - 1, options)) { + return true; + } } - function create(props, validAttributes) { - return addProperties(null, - props, validAttributes); + } else { + for (var key in one) { + if (deepDiffer(one[key], two[key], maxDepth - 1, options)) { + return true; + } } - function diff(prevProps, nextProps, validAttributes) { - return diffProperties(null, - prevProps, nextProps, validAttributes); + for (var twoKey in two) { + // The only case we haven't checked yet is keys that are in two but aren't + // in one, which means they are different. + if (one[twoKey] === undefined && two[twoKey] !== undefined) { + return true; + } } + } + return false; + }; + deepDiffer.unstable_setLogListeners = unstable_setLogListeners; + module.exports = deepDiffer; +},282,[],"node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { - return fn(bookkeeping); - }; - var isInsideEventHandler = false; - function batchedUpdates(fn, bookkeeping) { - if (isInsideEventHandler) { - return fn(bookkeeping); - } - isInsideEventHandler = true; - try { - return batchedUpdatesImpl(fn, bookkeeping); - } finally { - isInsideEventHandler = false; - } + var ReactFiberErrorDialog = { + /** + * Intercept lifecycle errors and ensure they are shown with the correct stack + * trace within the native redbox component. + */ + showErrorDialog: function showErrorDialog(_ref) { + var componentStack = _ref.componentStack, + errorValue = _ref.error; + var error; + + // Typically, `errorValue` should be an error. However, other values such as + // strings (or even null) are sometimes thrown. + if (errorValue instanceof Error) { + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ + error = errorValue; + } else if (typeof errorValue === 'string') { + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ + error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)(errorValue); + } else { + /* $FlowFixMe[class-object-subtyping] added when improving typing for + * this parameters */ + error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)('Unspecified error'); } - function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { - batchedUpdatesImpl = _batchedUpdatesImpl; + try { + error.componentStack = componentStack; + error.isComponentError = true; + } catch (_unused) { + // Ignored. } + (0, _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException)(error, false); - var eventQueue = null; + // Return false here to prevent ReactFiberErrorLogger default behavior of + // logging error details to console.error. Calls to console.error are + // automatically routed to the native redbox controller, which we've already + // done above by calling ExceptionsManager. + return false; + } + }; + var _default = ReactFiberErrorDialog; + exports.default = _default; +},283,[67],"node_modules/react-native/Libraries/Core/ReactFiberErrorDialog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { - if (event) { - executeDispatchesInOrder(event); - if (!event.isPersistent()) { - event.constructor.release(event); - } - } - }; - var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { - return executeDispatchesAndRelease(e); - }; - function runEventsInBatch(events) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } + var RawEventEmitter = new _EventEmitter.default(); - var processingEventQueue = eventQueue; - eventQueue = null; - if (!processingEventQueue) { - return; - } - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - if (eventQueue) { - throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); - } + // See the React renderer / react repo for how this is used. + // Raw events are emitted here when they are received in JS + // and before any event Plugins process them or before components + // have a chance to respond to them. This allows you to implement + // app-specific perf monitoring, which is unimplemented by default, + // making this entire RawEventEmitter do nothing by default until + // *you* add listeners for your own app. + // Besides perf monitoring and maybe debugging, this RawEventEmitter + // should not be used. + var _default = RawEventEmitter; + exports.default = _default; +},284,[3,5],"node_modules/react-native/Libraries/Core/RawEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _EventPolyfill2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./EventPolyfill")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ // Make sure global Event is defined + var CustomEvent = /*#__PURE__*/function (_EventPolyfill) { + (0, _inherits2.default)(CustomEvent, _EventPolyfill); + var _super = _createSuper(CustomEvent); + function CustomEvent(typeArg, options) { + var _this; + (0, _classCallCheck2.default)(this, CustomEvent); + var bubbles = options.bubbles, + cancelable = options.cancelable, + composed = options.composed; + _this = _super.call(this, typeArg, { + bubbles: bubbles, + cancelable: cancelable, + composed: composed + }); + _this.detail = options.detail; // this would correspond to `NativeEvent` in SyntheticEvent + return _this; + } + return (0, _createClass2.default)(CustomEvent); + }(_EventPolyfill2.default); + var _default = CustomEvent; + exports.default = _default; +},285,[3,13,12,49,51,53,286],"node_modules/react-native/Libraries/Events/CustomEvent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + // https://dom.spec.whatwg.org/#dictdef-eventinit + /** + * This is a copy of the Event interface defined in Flow: + * https://github.com/facebook/flow/blob/741104e69c43057ebd32804dd6bcc1b5e97548ea/lib/dom.js + * which is itself a faithful interface of the W3 spec: + * https://dom.spec.whatwg.org/#interface-event + * + * Since Flow assumes that Event is provided and is on the global object, + * we must provide an implementation of Event for CustomEvent (and future + * alignment of React Native's event system with the W3 spec). + */ + var EventPolyfill = /*#__PURE__*/function () { + // Non-standard. See `composed` instead. - rethrowCaughtError(); - } + // https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase - function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = null; - var legacyPlugins = plugins; - for (var i = 0; i < legacyPlugins.length; i++) { - var possiblePlugin = legacyPlugins[i]; - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); - } - } - } - return events; - } - function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - runEventsInBatch(events); - } - function dispatchEvent(target, topLevelType, nativeEvent) { - var targetFiber = target; - var eventTarget = null; - if (targetFiber != null) { - var stateNode = targetFiber.stateNode; + // TODO: nullable + // TODO: nullable + /** @deprecated */ + // TODO: nullable - if (stateNode != null) { - eventTarget = stateNode.canonical; - } - } - batchedUpdates(function () { - var event = { - eventName: topLevelType, - nativeEvent: nativeEvent - }; - ReactNativePrivateInterface.RawEventEmitter.emit(topLevelType, event); - ReactNativePrivateInterface.RawEventEmitter.emit("*", event); + // React Native-specific: proxy data to a SyntheticEvent when + // certain methods are called. + // SyntheticEvent will also have a reference to this instance - + // it is circular - and both classes use this reference to keep + // data with the other in sync. - runExtractedPluginEventsInBatch(topLevelType, targetFiber, nativeEvent, eventTarget); - }); - } + function EventPolyfill(type, eventInitDict) { + (0, _classCallCheck2.default)(this, EventPolyfill); + this.type = type; + this.bubbles = !!(eventInitDict != null && eventInitDict.bubbles || false); + this.cancelable = !!(eventInitDict != null && eventInitDict.cancelable || false); + this.composed = !!(eventInitDict != null && eventInitDict.composed || false); + this.scoped = !!(eventInitDict != null && eventInitDict.scoped || false); - var scheduleCallback = Scheduler.unstable_scheduleCallback; - var cancelCallback = Scheduler.unstable_cancelCallback; - var shouldYield = Scheduler.unstable_shouldYield; - var requestPaint = Scheduler.unstable_requestPaint; - var now = Scheduler.unstable_now; - var ImmediatePriority = Scheduler.unstable_ImmediatePriority; - var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; - var NormalPriority = Scheduler.unstable_NormalPriority; - var IdlePriority = Scheduler.unstable_IdlePriority; - var rendererID = null; - var injectedHook = null; - var hasLoggedError = false; - var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; - function injectInternals(internals) { - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { - return false; - } - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) { - return true; - } - if (!hook.supportsFiber) { - { - error("The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://reactjs.org/link/react-devtools"); - } + // TODO: somehow guarantee that only "private" instantiations of Event + // can set this to true + this.isTrusted = false; - return true; - } - try { - if (enableSchedulingProfiler) { - internals = assign({}, internals, { - getLaneLabelMap: getLaneLabelMap, - injectProfilingHooks: injectProfilingHooks - }); - } - rendererID = hook.inject(internals); + // TODO: in the future we'll want to make sure this has the same + // time-basis as events originating from native + this.timeStamp = Date.now(); + this.defaultPrevented = false; - injectedHook = hook; - } catch (err) { - { - error("React instrumentation encountered an error: %s.", err); - } - } - if (hook.checkDCE) { - return true; - } else { - return false; - } + // https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase + this.NONE = 0; + this.AT_TARGET = 1; + this.BUBBLING_PHASE = 2; + this.CAPTURING_PHASE = 3; + this.eventPhase = this.NONE; + + // $FlowFixMe + this.currentTarget = null; + // $FlowFixMe + this.target = null; + // $FlowFixMe + this.srcElement = null; + } + (0, _createClass2.default)(EventPolyfill, [{ + key: "composedPath", + value: function composedPath() { + throw new Error('TODO: not yet implemented'); } - function onScheduleRoot(root, children) { - { - if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") { - try { - injectedHook.onScheduleFiberRoot(rendererID, root, children); - } catch (err) { - if (!hasLoggedError) { - hasLoggedError = true; - error("React instrumentation encountered an error: %s", err); - } - } - } + }, { + key: "preventDefault", + value: function preventDefault() { + this.defaultPrevented = true; + if (this._syntheticEvent != null) { + // $FlowFixMe + this._syntheticEvent.preventDefault(); } } - function onCommitRoot(root, eventPriority) { - if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { - try { - var didError = (root.current.flags & DidCapture) === DidCapture; - if (enableProfilerTimer) { - var schedulerPriority; - switch (eventPriority) { - case DiscreteEventPriority: - schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority; - break; - } - injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError); - } else { - injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); - } - } catch (err) { - { - if (!hasLoggedError) { - hasLoggedError = true; - error("React instrumentation encountered an error: %s", err); - } - } - } - } + }, { + key: "initEvent", + value: function initEvent(type, bubbles, cancelable) { + throw new Error('TODO: not yet implemented. This method is also deprecated.'); } - function onPostCommitRoot(root) { - if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") { - try { - injectedHook.onPostCommitFiberRoot(rendererID, root); - } catch (err) { - { - if (!hasLoggedError) { - hasLoggedError = true; - error("React instrumentation encountered an error: %s", err); - } - } - } - } + }, { + key: "stopImmediatePropagation", + value: function stopImmediatePropagation() { + throw new Error('TODO: not yet implemented'); } - function onCommitUnmount(fiber) { - if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function") { - try { - injectedHook.onCommitFiberUnmount(rendererID, fiber); - } catch (err) { - { - if (!hasLoggedError) { - hasLoggedError = true; - error("React instrumentation encountered an error: %s", err); - } - } - } + }, { + key: "stopPropagation", + value: function stopPropagation() { + if (this._syntheticEvent != null) { + // $FlowFixMe + this._syntheticEvent.stopPropagation(); } } - function injectProfilingHooks(profilingHooks) {} - function getLaneLabelMap() { - { - return null; - } + }, { + key: "setSyntheticEvent", + value: function setSyntheticEvent(value) { + this._syntheticEvent = value; } - function markComponentRenderStopped() {} - function markComponentErrored(fiber, thrownValue, lanes) {} - function markComponentSuspended(fiber, wakeable, lanes) {} - var NoMode = - 0; - - var ConcurrentMode = - 1; - var ProfileMode = - 2; - var StrictLegacyMode = - 8; - - var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; - - var log = Math.log; - var LN2 = Math.LN2; - function clz32Fallback(x) { - var asUint = x >>> 0; - if (asUint === 0) { - return 32; - } - return 31 - (log(asUint) / LN2 | 0) | 0; + }]); + return EventPolyfill; + }(); // Assertion magic for polyfill follows. + // eslint-disable-line no-unused-vars + /*:: + // This can be a strict mode error at runtime so put it in a Flow comment. + (checkEvent: IEvent); + */ + global.Event = EventPolyfill; + var _default = EventPolyfill; + exports.default = _default; +},286,[3,12,13],"node_modules/react-native/Libraries/Events/EventPolyfill.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var PressabilityDebug = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../Pressability/PressabilityDebug")); + var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Pressability/usePressability")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../StyleSheet/flattenStyle")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../StyleSheet/processColor")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); + var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./TextAncestor")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _excluded = ["accessible", "accessibilityLabel", "accessibilityRole", "accessibilityState", "allowFontScaling", "aria-busy", "aria-checked", "aria-disabled", "aria-expanded", "aria-label", "aria-selected", "ellipsizeMode", "id", "nativeID", "onLongPress", "onPress", "onPressIn", "onPressOut", "onResponderGrant", "onResponderMove", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "onStartShouldSetResponder", "pressRetentionOffset", "role", "suppressHighlighting"]; + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Text/Text.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * Text is the fundamental component for displaying text. + * + * @see https://reactnative.dev/docs/text + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Text = React.forwardRef(function (props, forwardedRef) { + var _accessibilityState2, _accessibilityState3, _style, _style3, _style4; + var accessible = props.accessible, + accessibilityLabel = props.accessibilityLabel, + accessibilityRole = props.accessibilityRole, + accessibilityState = props.accessibilityState, + allowFontScaling = props.allowFontScaling, + ariaBusy = props['aria-busy'], + ariaChecked = props['aria-checked'], + ariaDisabled = props['aria-disabled'], + ariaExpanded = props['aria-expanded'], + ariaLabel = props['aria-label'], + ariaSelected = props['aria-selected'], + ellipsizeMode = props.ellipsizeMode, + id = props.id, + nativeID = props.nativeID, + onLongPress = props.onLongPress, + onPress = props.onPress, + _onPressIn = props.onPressIn, + _onPressOut = props.onPressOut, + _onResponderGrant = props.onResponderGrant, + _onResponderMove = props.onResponderMove, + _onResponderRelease = props.onResponderRelease, + _onResponderTerminate = props.onResponderTerminate, + onResponderTerminationRequest = props.onResponderTerminationRequest, + onStartShouldSetResponder = props.onStartShouldSetResponder, + pressRetentionOffset = props.pressRetentionOffset, + role = props.role, + suppressHighlighting = props.suppressHighlighting, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var _useState = (0, React.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isHighlighted = _useState2[0], + setHighlighted = _useState2[1]; + var _accessibilityState; + if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) { + _accessibilityState = { + busy: ariaBusy != null ? ariaBusy : accessibilityState == null ? void 0 : accessibilityState.busy, + checked: ariaChecked != null ? ariaChecked : accessibilityState == null ? void 0 : accessibilityState.checked, + disabled: ariaDisabled != null ? ariaDisabled : accessibilityState == null ? void 0 : accessibilityState.disabled, + expanded: ariaExpanded != null ? ariaExpanded : accessibilityState == null ? void 0 : accessibilityState.expanded, + selected: ariaSelected != null ? ariaSelected : accessibilityState == null ? void 0 : accessibilityState.selected + }; + } + var _disabled = restProps.disabled != null ? restProps.disabled : (_accessibilityState2 = _accessibilityState) == null ? void 0 : _accessibilityState2.disabled; + var nativeTextAccessibilityState = _disabled !== ((_accessibilityState3 = _accessibilityState) == null ? void 0 : _accessibilityState3.disabled) ? Object.assign({}, _accessibilityState, { + disabled: _disabled + }) : _accessibilityState; + var isPressable = (onPress != null || onLongPress != null || onStartShouldSetResponder != null) && _disabled !== true; + var initialized = useLazyInitialization(isPressable); + var config = (0, React.useMemo)(function () { + return initialized ? { + disabled: !isPressable, + pressRectOffset: pressRetentionOffset, + onLongPress: onLongPress, + onPress: onPress, + onPressIn: function onPressIn(event) { + setHighlighted(!suppressHighlighting); + _onPressIn == null ? void 0 : _onPressIn(event); + }, + onPressOut: function onPressOut(event) { + setHighlighted(false); + _onPressOut == null ? void 0 : _onPressOut(event); + }, + onResponderTerminationRequest_DEPRECATED: onResponderTerminationRequest, + onStartShouldSetResponder_DEPRECATED: onStartShouldSetResponder + } : null; + }, [initialized, isPressable, pressRetentionOffset, onLongPress, onPress, _onPressIn, _onPressOut, onResponderTerminationRequest, onStartShouldSetResponder, suppressHighlighting]); + var eventHandlers = (0, _usePressability.default)(config); + var eventHandlersForText = (0, React.useMemo)(function () { + return eventHandlers == null ? null : { + onResponderGrant: function onResponderGrant(event) { + eventHandlers.onResponderGrant(event); + if (_onResponderGrant != null) { + _onResponderGrant(event); + } + }, + onResponderMove: function onResponderMove(event) { + eventHandlers.onResponderMove(event); + if (_onResponderMove != null) { + _onResponderMove(event); + } + }, + onResponderRelease: function onResponderRelease(event) { + eventHandlers.onResponderRelease(event); + if (_onResponderRelease != null) { + _onResponderRelease(event); + } + }, + onResponderTerminate: function onResponderTerminate(event) { + eventHandlers.onResponderTerminate(event); + if (_onResponderTerminate != null) { + _onResponderTerminate(event); + } + }, + onClick: eventHandlers.onClick, + onResponderTerminationRequest: eventHandlers.onResponderTerminationRequest, + onStartShouldSetResponder: eventHandlers.onStartShouldSetResponder + }; + }, [eventHandlers, _onResponderGrant, _onResponderMove, _onResponderRelease, _onResponderTerminate]); + + // TODO: Move this processing to the view configuration. + var selectionColor = restProps.selectionColor == null ? null : (0, _processColor.default)(restProps.selectionColor); + var style = restProps.style; + if (__DEV__) { + if (PressabilityDebug.isEnabled() && onPress != null) { + style = [restProps.style, { + color: 'magenta' + }]; } + } + var numberOfLines = restProps.numberOfLines; + if (numberOfLines != null && !(numberOfLines >= 0)) { + console.error(`'numberOfLines' in must be a non-negative number, received: ${numberOfLines}. The value will be set to 0.`); + numberOfLines = 0; + } + var hasTextAncestor = (0, React.useContext)(_TextAncestor.default); + var _accessible = _Platform.default.select({ + ios: accessible !== false, + default: accessible + }); - var TotalLanes = 31; - var NoLanes = - 0; - var NoLane = - 0; - var SyncLane = - 1; - var InputContinuousHydrationLane = - 2; - var InputContinuousLane = - 4; - var DefaultHydrationLane = - 8; - var DefaultLane = - 16; - var TransitionHydrationLane = - 32; - var TransitionLanes = - 4194240; - var TransitionLane1 = - 64; - var TransitionLane2 = - 128; - var TransitionLane3 = - 256; - var TransitionLane4 = - 512; - var TransitionLane5 = - 1024; - var TransitionLane6 = - 2048; - var TransitionLane7 = - 4096; - var TransitionLane8 = - 8192; - var TransitionLane9 = - 16384; - var TransitionLane10 = - 32768; - var TransitionLane11 = - 65536; - var TransitionLane12 = - 131072; - var TransitionLane13 = - 262144; - var TransitionLane14 = - 524288; - var TransitionLane15 = - 1048576; - var TransitionLane16 = - 2097152; - var RetryLanes = - 130023424; - var RetryLane1 = - 4194304; - var RetryLane2 = - 8388608; - var RetryLane3 = - 16777216; - var RetryLane4 = - 33554432; - var RetryLane5 = - 67108864; - var SomeRetryLane = RetryLane1; - var SelectiveHydrationLane = - 134217728; - var NonIdleLanes = - 268435455; - var IdleHydrationLane = - 268435456; - var IdleLane = - 536870912; - var OffscreenLane = - 1073741824; - var NoTimestamp = -1; - var nextTransitionLane = TransitionLane1; - var nextRetryLane = RetryLane1; - function getHighestPriorityLanes(lanes) { - switch (getHighestPriorityLane(lanes)) { - case SyncLane: - return SyncLane; - case InputContinuousHydrationLane: - return InputContinuousHydrationLane; - case InputContinuousLane: - return InputContinuousLane; - case DefaultHydrationLane: - return DefaultHydrationLane; - case DefaultLane: - return DefaultLane; - case TransitionHydrationLane: - return TransitionHydrationLane; - case TransitionLane1: - case TransitionLane2: - case TransitionLane3: - case TransitionLane4: - case TransitionLane5: - case TransitionLane6: - case TransitionLane7: - case TransitionLane8: - case TransitionLane9: - case TransitionLane10: - case TransitionLane11: - case TransitionLane12: - case TransitionLane13: - case TransitionLane14: - case TransitionLane15: - case TransitionLane16: - return lanes & TransitionLanes; - case RetryLane1: - case RetryLane2: - case RetryLane3: - case RetryLane4: - case RetryLane5: - return lanes & RetryLanes; - case SelectiveHydrationLane: - return SelectiveHydrationLane; - case IdleHydrationLane: - return IdleHydrationLane; - case IdleLane: - return IdleLane; - case OffscreenLane: - return OffscreenLane; - default: - { - error("Should have found matching lanes. This is a bug in React."); - } + // $FlowFixMe[underconstrained-implicit-instantiation] + style = (0, _flattenStyle.default)(style); + if (typeof ((_style = style) == null ? void 0 : _style.fontWeight) === 'number') { + var _style2; + style.fontWeight = (_style2 = style) == null ? void 0 : _style2.fontWeight.toString(); + } + var _selectable = restProps.selectable; + if (((_style3 = style) == null ? void 0 : _style3.userSelect) != null) { + _selectable = userSelectToSelectableMap[style.userSelect]; + delete style.userSelect; + } + if (((_style4 = style) == null ? void 0 : _style4.verticalAlign) != null) { + style.textAlignVertical = verticalAlignToTextAlignVerticalMap[style.verticalAlign]; + delete style.verticalAlign; + } + var _hasOnPressOrOnLongPress = props.onPress != null || props.onLongPress != null; + return hasTextAncestor ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeVirtualText, Object.assign({}, restProps, eventHandlersForText, { + accessibilityLabel: ariaLabel != null ? ariaLabel : accessibilityLabel, + accessibilityRole: role ? (0, _$$_REQUIRE(_dependencyMap[12], "../Utilities/AcessibilityMapping").getAccessibilityRoleFromRole)(role) : accessibilityRole, + accessibilityState: _accessibilityState, + isHighlighted: isHighlighted, + isPressable: isPressable, + nativeID: id != null ? id : nativeID, + numberOfLines: numberOfLines, + ref: forwardedRef, + selectable: _selectable, + selectionColor: selectionColor, + style: style + })) : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { + value: true, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeText, Object.assign({}, restProps, eventHandlersForText, { + accessibilityLabel: ariaLabel != null ? ariaLabel : accessibilityLabel, + accessibilityRole: role ? (0, _$$_REQUIRE(_dependencyMap[12], "../Utilities/AcessibilityMapping").getAccessibilityRoleFromRole)(role) : accessibilityRole, + accessibilityState: nativeTextAccessibilityState, + accessible: accessible == null && _Platform.default.OS === 'android' ? _hasOnPressOrOnLongPress : _accessible, + allowFontScaling: allowFontScaling !== false, + disabled: _disabled, + ellipsizeMode: ellipsizeMode != null ? ellipsizeMode : 'tail', + isHighlighted: isHighlighted, + nativeID: id != null ? id : nativeID, + numberOfLines: numberOfLines, + ref: forwardedRef, + selectable: _selectable, + selectionColor: selectionColor, + style: style + })) + }); + }); + Text.displayName = 'Text'; - return lanes; - } + /** + * Switch to `deprecated-react-native-prop-types` for compatibility with future + * releases. This is deprecated and will be removed in the future. + */ + Text.propTypes = _$$_REQUIRE(_dependencyMap[13], "deprecated-react-native-prop-types").TextPropTypes; + + /** + * Returns false until the first time `newValue` is true, after which this will + * always return true. This is necessary to lazily initialize `Pressability` so + * we do not eagerly create one for every pressable `Text` component. + */ + function useLazyInitialization(newValue) { + var _useState3 = (0, React.useState)(newValue), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + oldValue = _useState4[0], + setValue = _useState4[1]; + if (!oldValue && newValue) { + setValue(newValue); + } + return oldValue; + } + var userSelectToSelectableMap = { + auto: true, + text: true, + none: false, + contain: true, + all: true + }; + var verticalAlignToTextAlignVerticalMap = { + auto: 'auto', + top: 'top', + bottom: 'bottom', + middle: 'center' + }; + module.exports = Text; +},287,[3,22,149,262,288,207,174,17,226,41,89,294,258,295],"node_modules/react-native/Libraries/Text/Text.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = usePressability; + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Pressability")); + var _react = _$$_REQUIRE(_dependencyMap[2], "react"); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * Creates a persistent instance of `Pressability` that automatically configures + * itself and resets. Accepts null `config` to support lazy initialization. Once + * initialized, will not un-initialize until the component has been unmounted. + */ + function usePressability(config) { + var pressabilityRef = (0, _react.useRef)(null); + if (config != null && pressabilityRef.current == null) { + pressabilityRef.current = new _Pressability.default(config); + } + var pressability = pressabilityRef.current; + + // On the initial mount, this is a no-op. On updates, `pressability` will be + // re-configured to use the new configuration. + (0, _react.useEffect)(function () { + if (config != null && pressability != null) { + pressability.configure(config); } - function getNextLanes(root, wipLanes) { - var pendingLanes = root.pendingLanes; - if (pendingLanes === NoLanes) { - return NoLanes; + }, [config, pressability]); + + // On unmount, reset pending state and timers inside `pressability`. This is + // a separate effect because we do not want to reset when `config` changes. + (0, _react.useEffect)(function () { + if (pressability != null) { + return function () { + pressability.reset(); + }; + } + }, [pressability]); + return pressability == null ? null : pressability.getEventHandlers(); + } +},288,[3,289,41],"node_modules/react-native/Libraries/Pressability/usePressability.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _SoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Components/Sound/SoundManager")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../ReactNative/ReactNativeFeatureFlags")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../ReactNative/UIManager")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); + var _PressabilityPerformanceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./PressabilityPerformanceEventEmitter.js")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var Transitions = 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' + } + }); + var isActiveSignal = function isActiveSignal(signal) { + return signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; + }; + var isActivationSignal = function isActivationSignal(signal) { + return signal === 'RESPONDER_ACTIVE_PRESS_OUT' || signal === 'RESPONDER_ACTIVE_PRESS_IN'; + }; + var isPressInSignal = function isPressInSignal(signal) { + return signal === 'RESPONDER_INACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; + }; + var isTerminalSignal = function isTerminalSignal(signal) { + return signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE'; + }; + var DEFAULT_LONG_PRESS_DELAY_MS = 500; + var DEFAULT_PRESS_RECT_OFFSETS = { + bottom: 30, + left: 20, + right: 20, + top: 20 + }; + var DEFAULT_MIN_PRESS_DURATION = 130; + var DEFAULT_LONG_PRESS_DEACTIVATION_DISTANCE = 10; + var longPressDeactivationDistance = DEFAULT_LONG_PRESS_DEACTIVATION_DISTANCE; + /** + * Pressability implements press handling capabilities. + * + * =========================== Pressability Tutorial =========================== + * + * The `Pressability` class helps you create press interactions by analyzing the + * geometry of elements and observing when another responder (e.g. ScrollView) + * has stolen the touch lock. It offers hooks for your component to provide + * interaction feedback to the user: + * + * - When a press has activated (e.g. highlight an element) + * - When a press has deactivated (e.g. un-highlight an element) + * - When a press sould trigger an action, meaning it activated and deactivated + * while within the geometry of the element without the lock being stolen. + * + * A high quality interaction isn't as simple as you might think. There should + * be a slight delay before activation. Moving your finger beyond an element's + * bounds should trigger deactivation, but moving the same finger back within an + * element's bounds should trigger reactivation. + * + * In order to use `Pressability`, do the following: + * + * 1. Instantiate `Pressability` and store it on your component's state. + * + * state = { + * pressability: new Pressability({ + * // ... + * }), + * }; + * + * 2. Choose the rendered component who should collect the press events. On that + * element, spread `pressability.getEventHandlers()` into its props. + * + * return ( + * + * ); + * + * 3. Reset `Pressability` when your component unmounts. + * + * componentWillUnmount() { + * this.state.pressability.reset(); + * } + * + * ==================== Pressability Implementation Details ==================== + * + * `Pressability` only assumes that there exists a `HitRect` node. The `PressRect` + * is an abstract box that is extended beyond the `HitRect`. + * + * # Geometry + * + * โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + * โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ - Presses start anywhere within `HitRect`, which + * โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ is expanded via the prop `hitSlop`. + * โ”‚ โ”‚ โ”‚ VisualRect โ”‚ โ”‚ โ”‚ + * โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ - When pressed down for sufficient amount of time + * โ”‚ โ”‚ HitRect โ”‚ โ”‚ before letting up, `VisualRect` activates for + * โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ as long as the press stays within `PressRect`. + * โ”‚ PressRect o โ”‚ + * โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚โ”€โ”€โ”€โ”˜ + * Out Region โ””โ”€โ”€โ”€โ”€โ”€โ”€ `PressRect`, which is expanded via the prop + * `pressRectOffset`, allows presses to move + * beyond `HitRect` while maintaining activation + * and being eligible for a "press". + * + * # State Machine + * + * โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ—€โ”€โ”€โ”€โ”€ RESPONDER_RELEASE + * โ”‚ NOT_RESPONDER โ”‚ + * โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ—€โ”€โ”€โ”€โ”€ RESPONDER_TERMINATED + * โ”‚ + * โ”‚ RESPONDER_GRANT (HitRect) + * โ”‚ + * โ–ผ + * โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + * โ”‚ RESPONDER_INACTIVE_ โ”‚ DELAY โ”‚ RESPONDER_ACTIVE_ โ”‚ T + DELAY โ”‚ RESPONDER_ACTIVE_ โ”‚ + * โ”‚ PRESS_IN โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ PRESS_IN โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ LONG_PRESS_IN โ”‚ + * โ””โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + * โ”‚ โ–ฒ โ”‚ โ–ฒ โ”‚ โ–ฒ + * โ”‚LEAVE_ โ”‚ โ”‚LEAVE_ โ”‚ โ”‚LEAVE_ โ”‚ + * โ”‚PRESS_RECT โ”‚ENTER_ โ”‚PRESS_RECT โ”‚ENTER_ โ”‚PRESS_RECT โ”‚ENTER_ + * โ”‚ โ”‚PRESS_RECT โ”‚ โ”‚PRESS_RECT โ”‚ โ”‚PRESS_RECT + * โ–ผ โ”‚ โ–ผ โ”‚ โ–ผ โ”‚ + * โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ” + * โ”‚ RESPONDER_INACTIVE_ โ”‚ DELAY โ”‚ RESPONDER_ACTIVE_ โ”‚ โ”‚ RESPONDER_ACTIVE_ โ”‚ + * โ”‚ PRESS_OUT โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ PRESS_OUT โ”‚ โ”‚ LONG_PRESS_OUT โ”‚ + * โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + * + * T + DELAY => LONG_PRESS_DELAY + DELAY + * + * Not drawn are the side effects of each transition. The most important side + * effect is the invocation of `onPress` and `onLongPress` that occur when a + * responder is release while in the "press in" states. + */ + var Pressability = /*#__PURE__*/function () { + function Pressability(config) { + var _this = this; + (0, _classCallCheck2.default)(this, Pressability); + this._eventHandlers = null; + this._hoverInDelayTimeout = null; + this._hoverOutDelayTimeout = null; + this._isHovered = false; + this._longPressDelayTimeout = null; + this._pressDelayTimeout = null; + this._pressOutDelayTimeout = null; + this._responderID = null; + this._responderRegion = null; + this._touchState = 'NOT_RESPONDER'; + this._measureCallback = function (left, top, width, height, pageX, pageY) { + if (!left && !top && !width && !height && !pageX && !pageY) { + return; } - var nextLanes = NoLanes; - var suspendedLanes = root.suspendedLanes; - var pingedLanes = root.pingedLanes; + _this._responderRegion = { + bottom: pageY + height, + left: pageX, + right: pageX + width, + top: pageY + }; + }; + this.configure(config); + } + (0, _createClass2.default)(Pressability, [{ + key: "configure", + value: function configure(config) { + this._config = config; + } - var nonIdlePendingLanes = pendingLanes & NonIdleLanes; - if (nonIdlePendingLanes !== NoLanes) { - var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; - if (nonIdleUnblockedLanes !== NoLanes) { - nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); - } else { - var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; - if (nonIdlePingedLanes !== NoLanes) { - nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); + /** + * Resets any pending timers. This should be called on unmount. + */ + }, { + key: "reset", + value: function reset() { + this._cancelHoverInDelayTimeout(); + this._cancelHoverOutDelayTimeout(); + this._cancelLongPressDelayTimeout(); + this._cancelPressDelayTimeout(); + this._cancelPressOutDelayTimeout(); + + // Ensure that, if any async event handlers are fired after unmount + // due to a race, we don't call any configured callbacks. + this._config = Object.freeze({}); + } + + /** + * Returns a set of props to spread into the interactive element. + */ + }, { + key: "getEventHandlers", + value: function getEventHandlers() { + if (this._eventHandlers == null) { + this._eventHandlers = this._createEventHandlers(); + } + return this._eventHandlers; + } + }, { + key: "_createEventHandlers", + value: function _createEventHandlers() { + var _this2 = this; + var focusEventHandlers = { + onBlur: function onBlur(event) { + var onBlur = _this2._config.onBlur; + if (onBlur != null) { + onBlur(event); + } + }, + onFocus: function onFocus(event) { + var onFocus = _this2._config.onFocus; + if (onFocus != null) { + onFocus(event); } } - } else { - var unblockedLanes = pendingLanes & ~suspendedLanes; - if (unblockedLanes !== NoLanes) { - nextLanes = getHighestPriorityLanes(unblockedLanes); - } else { - if (pingedLanes !== NoLanes) { - nextLanes = getHighestPriorityLanes(pingedLanes); + }; + var responderEventHandlers = { + onStartShouldSetResponder: function onStartShouldSetResponder() { + var disabled = _this2._config.disabled; + if (disabled == null) { + var onStartShouldSetResponder_DEPRECATED = _this2._config.onStartShouldSetResponder_DEPRECATED; + return onStartShouldSetResponder_DEPRECATED == null ? true : onStartShouldSetResponder_DEPRECATED(); + } + return !disabled; + }, + onResponderGrant: function onResponderGrant(event) { + event.persist(); + _this2._cancelPressOutDelayTimeout(); + _this2._responderID = event.currentTarget; + _this2._touchState = 'NOT_RESPONDER'; + _this2._receiveSignal('RESPONDER_GRANT', event); + var delayPressIn = normalizeDelay(_this2._config.delayPressIn); + if (delayPressIn > 0) { + _this2._pressDelayTimeout = setTimeout(function () { + _this2._receiveSignal('DELAY', event); + }, delayPressIn); + } else { + _this2._receiveSignal('DELAY', event); + } + var delayLongPress = normalizeDelay(_this2._config.delayLongPress, 10, DEFAULT_LONG_PRESS_DELAY_MS - delayPressIn); + _this2._longPressDelayTimeout = setTimeout(function () { + _this2._handleLongPress(event); + }, delayLongPress + delayPressIn); + }, + onResponderMove: function onResponderMove(event) { + var onPressMove = _this2._config.onPressMove; + if (onPressMove != null) { + onPressMove(event); + } + + // Region may not have finished being measured, yet. + var responderRegion = _this2._responderRegion; + if (responderRegion == null) { + return; + } + var touch = getTouchFromPressEvent(event); + if (touch == null) { + _this2._cancelLongPressDelayTimeout(); + _this2._receiveSignal('LEAVE_PRESS_RECT', event); + return; + } + if (_this2._touchActivatePosition != null) { + var deltaX = _this2._touchActivatePosition.pageX - touch.pageX; + var deltaY = _this2._touchActivatePosition.pageY - touch.pageY; + if (Math.hypot(deltaX, deltaY) > longPressDeactivationDistance) { + _this2._cancelLongPressDelayTimeout(); + } + } + if (_this2._isTouchWithinResponderRegion(touch, responderRegion)) { + _this2._receiveSignal('ENTER_PRESS_RECT', event); + } else { + _this2._cancelLongPressDelayTimeout(); + _this2._receiveSignal('LEAVE_PRESS_RECT', event); + } + }, + onResponderRelease: function onResponderRelease(event) { + _this2._receiveSignal('RESPONDER_RELEASE', event); + }, + onResponderTerminate: function onResponderTerminate(event) { + _this2._receiveSignal('RESPONDER_TERMINATED', event); + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + var cancelable = _this2._config.cancelable; + if (cancelable == null) { + var onResponderTerminationRequest_DEPRECATED = _this2._config.onResponderTerminationRequest_DEPRECATED; + return onResponderTerminationRequest_DEPRECATED == null ? true : onResponderTerminationRequest_DEPRECATED(); + } + return cancelable; + }, + onClick: function onClick(event) { + var _this2$_config = _this2._config, + onPress = _this2$_config.onPress, + disabled = _this2$_config.disabled; + if (onPress != null && disabled !== true) { + onPress(event); } } + }; + if (process.env.NODE_ENV === 'test') { + // We are setting this in order to find this node in ReactNativeTestTools + // $FlowFixMe[prop-missing] + responderEventHandlers.onStartShouldSetResponder.testOnly_pressabilityConfig = function () { + return _this2._config; + }; } - if (nextLanes === NoLanes) { - return NoLanes; + if (_ReactNativeFeatureFlags.default.shouldPressibilityUseW3CPointerEventsForHover()) { + var hoverPointerEvents = { + onPointerEnter: undefined, + onPointerLeave: undefined + }; + var _this$_config = this._config, + onHoverIn = _this$_config.onHoverIn, + onHoverOut = _this$_config.onHoverOut; + if (onHoverIn != null) { + hoverPointerEvents.onPointerEnter = function (event) { + _this2._isHovered = true; + _this2._cancelHoverOutDelayTimeout(); + if (onHoverIn != null) { + var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); + if (delayHoverIn > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + onHoverIn(convertPointerEventToMouseEvent(event)); + }, delayHoverIn); + } else { + onHoverIn(convertPointerEventToMouseEvent(event)); + } + } + }; + } + if (onHoverOut != null) { + hoverPointerEvents.onPointerLeave = function (event) { + if (_this2._isHovered) { + _this2._isHovered = false; + _this2._cancelHoverInDelayTimeout(); + if (onHoverOut != null) { + var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); + if (delayHoverOut > 0) { + event.persist(); + _this2._hoverOutDelayTimeout = setTimeout(function () { + onHoverOut(convertPointerEventToMouseEvent(event)); + }, delayHoverOut); + } else { + onHoverOut(convertPointerEventToMouseEvent(event)); + } + } + } + }; + } + return Object.assign({}, focusEventHandlers, responderEventHandlers, hoverPointerEvents); + } else { + var mouseEventHandlers = _Platform.default.OS === 'ios' || _Platform.default.OS === 'android' ? null : { + onMouseEnter: function onMouseEnter(event) { + if ((0, _$$_REQUIRE(_dependencyMap[10], "./HoverState").isHoverEnabled)()) { + _this2._isHovered = true; + _this2._cancelHoverOutDelayTimeout(); + var _onHoverIn = _this2._config.onHoverIn; + if (_onHoverIn != null) { + var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); + if (delayHoverIn > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + _onHoverIn(event); + }, delayHoverIn); + } else { + _onHoverIn(event); + } + } + } + }, + onMouseLeave: function onMouseLeave(event) { + if (_this2._isHovered) { + _this2._isHovered = false; + _this2._cancelHoverInDelayTimeout(); + var _onHoverOut = _this2._config.onHoverOut; + if (_onHoverOut != null) { + var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); + if (delayHoverOut > 0) { + event.persist(); + _this2._hoverInDelayTimeout = setTimeout(function () { + _onHoverOut(event); + }, delayHoverOut); + } else { + _onHoverOut(event); + } + } + } + } + }; + return Object.assign({}, focusEventHandlers, responderEventHandlers, mouseEventHandlers); } + } - if (wipLanes !== NoLanes && wipLanes !== nextLanes && - (wipLanes & suspendedLanes) === NoLanes) { - var nextLane = getHighestPriorityLane(nextLanes); - var wipLane = getHighestPriorityLane(wipLanes); - if ( - nextLane >= wipLane || - nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) { - return wipLanes; - } + /** + * Receives a state machine signal, performs side effects of the transition + * and stores the new state. Validates the transition as well. + */ + }, { + key: "_receiveSignal", + value: function _receiveSignal(signal, event) { + var _Transitions$prevStat; + // Especially on iOS, not all events have timestamps associated. + // For telemetry purposes, this doesn't matter too much, as long as *some* do. + // Since the native timestamp is integral for logging telemetry, just skip + // events if they don't have a timestamp attached. + if (event.nativeEvent.timestamp != null) { + _PressabilityPerformanceEventEmitter.default.emitEvent(function () { + return { + signal: signal, + nativeTimestamp: event.nativeEvent.timestamp + }; + }); } - if ((nextLanes & InputContinuousLane) !== NoLanes) { - nextLanes |= pendingLanes & DefaultLane; + var prevState = this._touchState; + var nextState = (_Transitions$prevStat = Transitions[prevState]) == null ? void 0 : _Transitions$prevStat[signal]; + if (this._responderID == null && signal === 'RESPONDER_RELEASE') { + return; + } + (0, _invariant.default)(nextState != null && nextState !== 'ERROR', 'Pressability: Invalid signal `%s` for state `%s` on responder: %s', signal, prevState, typeof this._responderID === 'number' ? this._responderID : '<>'); + if (prevState !== nextState) { + this._performTransitionSideEffects(prevState, nextState, signal, event); + this._touchState = nextState; } + } - var entangledLanes = root.entangledLanes; - if (entangledLanes !== NoLanes) { - var entanglements = root.entanglements; - var lanes = nextLanes & entangledLanes; - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - nextLanes |= entanglements[index]; - lanes &= ~lane; + /** + * Performs a transition between touchable states and identify any activations + * or deactivations (and callback invocations). + */ + }, { + key: "_performTransitionSideEffects", + value: function _performTransitionSideEffects(prevState, nextState, signal, event) { + if (isTerminalSignal(signal)) { + this._touchActivatePosition = null; + this._cancelLongPressDelayTimeout(); + } + var isInitialTransition = prevState === 'NOT_RESPONDER' && nextState === 'RESPONDER_INACTIVE_PRESS_IN'; + var isActivationTransition = !isActivationSignal(prevState) && isActivationSignal(nextState); + if (isInitialTransition || isActivationTransition) { + this._measureResponderRegion(); + } + if (isPressInSignal(prevState) && signal === 'LONG_PRESS_DETECTED') { + var onLongPress = this._config.onLongPress; + if (onLongPress != null) { + onLongPress(event); } } - return nextLanes; - } - function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; + var isPrevActive = isActiveSignal(prevState); + var isNextActive = isActiveSignal(nextState); + if (!isPrevActive && isNextActive) { + this._activate(event); + } else if (isPrevActive && !isNextActive) { + this._deactivate(event); + } + if (isPressInSignal(prevState) && signal === 'RESPONDER_RELEASE') { + // If we never activated (due to delays), activate and deactivate now. + if (!isNextActive && !isPrevActive) { + this._activate(event); + this._deactivate(event); + } + var _this$_config2 = this._config, + _onLongPress = _this$_config2.onLongPress, + onPress = _this$_config2.onPress, + android_disableSound = _this$_config2.android_disableSound; + if (onPress != null) { + var isPressCanceledByLongPress = _onLongPress != null && prevState === 'RESPONDER_ACTIVE_LONG_PRESS_IN' && this._shouldLongPressCancelPress(); + if (!isPressCanceledByLongPress) { + if (_Platform.default.OS === 'android' && android_disableSound !== true) { + _SoundManager.default.playTouchSound(); + } + onPress(event); + } } - lanes &= ~lane; } - return mostRecentEventTime; + this._cancelPressDelayTimeout(); } - function computeExpirationTime(lane, currentTime) { - switch (lane) { - case SyncLane: - case InputContinuousHydrationLane: - case InputContinuousLane: - return currentTime + 250; - case DefaultHydrationLane: - case DefaultLane: - case TransitionHydrationLane: - case TransitionLane1: - case TransitionLane2: - case TransitionLane3: - case TransitionLane4: - case TransitionLane5: - case TransitionLane6: - case TransitionLane7: - case TransitionLane8: - case TransitionLane9: - case TransitionLane10: - case TransitionLane11: - case TransitionLane12: - case TransitionLane13: - case TransitionLane14: - case TransitionLane15: - case TransitionLane16: - return currentTime + 5000; - case RetryLane1: - case RetryLane2: - case RetryLane3: - case RetryLane4: - case RetryLane5: - return NoTimestamp; - case SelectiveHydrationLane: - case IdleHydrationLane: - case IdleLane: - case OffscreenLane: - return NoTimestamp; - default: - { - error("Should have found matching lanes. This is a bug in React."); - } - return NoTimestamp; + }, { + key: "_activate", + value: function _activate(event) { + var onPressIn = this._config.onPressIn; + var _getTouchFromPressEve = getTouchFromPressEvent(event), + pageX = _getTouchFromPressEve.pageX, + pageY = _getTouchFromPressEve.pageY; + this._touchActivatePosition = { + pageX: pageX, + pageY: pageY + }; + this._touchActivateTime = Date.now(); + if (onPressIn != null) { + onPressIn(event); } } - function markStarvedLanesAsExpired(root, currentTime) { - var pendingLanes = root.pendingLanes; - var suspendedLanes = root.suspendedLanes; - var pingedLanes = root.pingedLanes; - var expirationTimes = root.expirationTimes; - - var lanes = pendingLanes; - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var expirationTime = expirationTimes[index]; - if (expirationTime === NoTimestamp) { - if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { - expirationTimes[index] = computeExpirationTime(lane, currentTime); - } - } else if (expirationTime <= currentTime) { - root.expiredLanes |= lane; + }, { + key: "_deactivate", + value: function _deactivate(event) { + var onPressOut = this._config.onPressOut; + if (onPressOut != null) { + var _this$_touchActivateT; + var minPressDuration = normalizeDelay(this._config.minPressDuration, 0, DEFAULT_MIN_PRESS_DURATION); + var pressDuration = Date.now() - ((_this$_touchActivateT = this._touchActivateTime) != null ? _this$_touchActivateT : 0); + var delayPressOut = Math.max(minPressDuration - pressDuration, normalizeDelay(this._config.delayPressOut)); + if (delayPressOut > 0) { + event.persist(); + this._pressOutDelayTimeout = setTimeout(function () { + onPressOut(event); + }, delayPressOut); + } else { + onPressOut(event); } - lanes &= ~lane; } + this._touchActivateTime = null; } - function getLanesToRetrySynchronouslyOnError(root) { - var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; - if (everythingButOffscreen !== NoLanes) { - return everythingButOffscreen; + }, { + key: "_measureResponderRegion", + value: function _measureResponderRegion() { + if (this._responderID == null) { + return; } - if (everythingButOffscreen & OffscreenLane) { - return OffscreenLane; + if (typeof this._responderID === 'number') { + _UIManager.default.measure(this._responderID, this._measureCallback); + } else { + this._responderID.measure(this._measureCallback); } - return NoLanes; - } - function includesSyncLane(lanes) { - return (lanes & SyncLane) !== NoLanes; - } - function includesNonIdleWork(lanes) { - return (lanes & NonIdleLanes) !== NoLanes; - } - function includesOnlyRetries(lanes) { - return (lanes & RetryLanes) === lanes; - } - function includesOnlyNonUrgentLanes(lanes) { - var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; - return (lanes & UrgentLanes) === NoLanes; - } - function includesOnlyTransitions(lanes) { - return (lanes & TransitionLanes) === lanes; - } - function includesBlockingLane(root, lanes) { - var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane; - return (lanes & SyncDefaultLanes) !== NoLanes; - } - function includesExpiredLane(root, lanes) { - return (lanes & root.expiredLanes) !== NoLanes; - } - function isTransitionLane(lane) { - return (lane & TransitionLanes) !== NoLanes; } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - if ((nextTransitionLane & TransitionLanes) === NoLanes) { - nextTransitionLane = TransitionLane1; + }, { + key: "_isTouchWithinResponderRegion", + value: function _isTouchWithinResponderRegion(touch, responderRegion) { + var _pressRectOffset$bott, _pressRectOffset$left, _pressRectOffset$righ, _pressRectOffset$top; + var hitSlop = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.hitSlop); + var pressRectOffset = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.pressRectOffset); + var regionBottom = responderRegion.bottom; + var regionLeft = responderRegion.left; + var regionRight = responderRegion.right; + var regionTop = responderRegion.top; + if (hitSlop != null) { + if (hitSlop.bottom != null) { + regionBottom += hitSlop.bottom; + } + if (hitSlop.left != null) { + regionLeft -= hitSlop.left; + } + if (hitSlop.right != null) { + regionRight += hitSlop.right; + } + if (hitSlop.top != null) { + regionTop -= hitSlop.top; + } } - return lane; + regionBottom += (_pressRectOffset$bott = pressRectOffset == null ? void 0 : pressRectOffset.bottom) != null ? _pressRectOffset$bott : DEFAULT_PRESS_RECT_OFFSETS.bottom; + regionLeft -= (_pressRectOffset$left = pressRectOffset == null ? void 0 : pressRectOffset.left) != null ? _pressRectOffset$left : DEFAULT_PRESS_RECT_OFFSETS.left; + regionRight += (_pressRectOffset$righ = pressRectOffset == null ? void 0 : pressRectOffset.right) != null ? _pressRectOffset$righ : DEFAULT_PRESS_RECT_OFFSETS.right; + regionTop -= (_pressRectOffset$top = pressRectOffset == null ? void 0 : pressRectOffset.top) != null ? _pressRectOffset$top : DEFAULT_PRESS_RECT_OFFSETS.top; + return touch.pageX > regionLeft && touch.pageX < regionRight && touch.pageY > regionTop && touch.pageY < regionBottom; } - function claimNextRetryLane() { - var lane = nextRetryLane; - nextRetryLane <<= 1; - if ((nextRetryLane & RetryLanes) === NoLanes) { - nextRetryLane = RetryLane1; + }, { + key: "_handleLongPress", + value: function _handleLongPress(event) { + if (this._touchState === 'RESPONDER_ACTIVE_PRESS_IN' || this._touchState === 'RESPONDER_ACTIVE_LONG_PRESS_IN') { + this._receiveSignal('LONG_PRESS_DETECTED', event); } - return lane; - } - function getHighestPriorityLane(lanes) { - return lanes & -lanes; } - function pickArbitraryLane(lanes) { - return getHighestPriorityLane(lanes); - } - function pickArbitraryLaneIndex(lanes) { - return 31 - clz32(lanes); - } - function laneToIndex(lane) { - return pickArbitraryLaneIndex(lane); + }, { + key: "_shouldLongPressCancelPress", + value: function _shouldLongPressCancelPress() { + return this._config.onLongPressShouldCancelPress_DEPRECATED == null || this._config.onLongPressShouldCancelPress_DEPRECATED(); } - function includesSomeLane(a, b) { - return (a & b) !== NoLanes; + }, { + key: "_cancelHoverInDelayTimeout", + value: function _cancelHoverInDelayTimeout() { + if (this._hoverInDelayTimeout != null) { + clearTimeout(this._hoverInDelayTimeout); + this._hoverInDelayTimeout = null; + } } - function isSubsetOfLanes(set, subset) { - return (set & subset) === subset; + }, { + key: "_cancelHoverOutDelayTimeout", + value: function _cancelHoverOutDelayTimeout() { + if (this._hoverOutDelayTimeout != null) { + clearTimeout(this._hoverOutDelayTimeout); + this._hoverOutDelayTimeout = null; + } } - function mergeLanes(a, b) { - return a | b; + }, { + key: "_cancelLongPressDelayTimeout", + value: function _cancelLongPressDelayTimeout() { + if (this._longPressDelayTimeout != null) { + clearTimeout(this._longPressDelayTimeout); + this._longPressDelayTimeout = null; + } } - function removeLanes(set, subset) { - return set & ~subset; + }, { + key: "_cancelPressDelayTimeout", + value: function _cancelPressDelayTimeout() { + if (this._pressDelayTimeout != null) { + clearTimeout(this._pressDelayTimeout); + this._pressDelayTimeout = null; + } } - function intersectLanes(a, b) { - return a & b; + }, { + key: "_cancelPressOutDelayTimeout", + value: function _cancelPressOutDelayTimeout() { + if (this._pressOutDelayTimeout != null) { + clearTimeout(this._pressOutDelayTimeout); + this._pressOutDelayTimeout = null; + } } - - function laneToLanes(lane) { - return lane; + }], [{ + key: "setLongPressDeactivationDistance", + value: function setLongPressDeactivationDistance(distance) { + longPressDeactivationDistance = distance; } - function createLaneMap(initial) { - var laneMap = []; - for (var i = 0; i < TotalLanes; i++) { - laneMap.push(initial); - } - return laneMap; - } - function markRootUpdated(root, updateLane, eventTime) { - root.pendingLanes |= updateLane; - - if (updateLane !== IdleLane) { - root.suspendedLanes = NoLanes; - root.pingedLanes = NoLanes; - } - var eventTimes = root.eventTimes; - var index = laneToIndex(updateLane); - - eventTimes[index] = eventTime; - } - function markRootSuspended(root, suspendedLanes) { - root.suspendedLanes |= suspendedLanes; - root.pingedLanes &= ~suspendedLanes; - - var expirationTimes = root.expirationTimes; - var lanes = suspendedLanes; - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - expirationTimes[index] = NoTimestamp; - lanes &= ~lane; - } - } - function markRootPinged(root, pingedLanes, eventTime) { - root.pingedLanes |= root.suspendedLanes & pingedLanes; + }]); + return Pressability; + }(); + exports.default = Pressability; + function normalizeDelay(delay) { + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + return Math.max(min, delay != null ? delay : fallback); + } + var getTouchFromPressEvent = function getTouchFromPressEvent(event) { + var _event$nativeEvent = event.nativeEvent, + changedTouches = _event$nativeEvent.changedTouches, + touches = _event$nativeEvent.touches; + if (touches != null && touches.length > 0) { + return touches[0]; + } + if (changedTouches != null && changedTouches.length > 0) { + return changedTouches[0]; + } + return event.nativeEvent; + }; + function convertPointerEventToMouseEvent(input) { + var _input$nativeEvent = input.nativeEvent, + clientX = _input$nativeEvent.clientX, + clientY = _input$nativeEvent.clientY; + return Object.assign({}, input, { + nativeEvent: { + clientX: clientX, + clientY: clientY, + pageX: clientX, + pageY: clientY, + timestamp: input.timeStamp } - function markRootFinished(root, remainingLanes) { - var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; - root.pendingLanes = remainingLanes; - - root.suspendedLanes = NoLanes; - root.pingedLanes = NoLanes; - root.expiredLanes &= remainingLanes; - root.mutableReadLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - var entanglements = root.entanglements; - var eventTimes = root.eventTimes; - var expirationTimes = root.expirationTimes; + }); + } +},289,[3,12,13,290,139,230,17,292,20,41,293,263],"node_modules/react-native/Libraries/Pressability/Pressability.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeSoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeSoundManager")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var lanes = noLongerPendingLanes; - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - entanglements[index] = NoLanes; - eventTimes[index] = NoTimestamp; - expirationTimes[index] = NoTimestamp; - lanes &= ~lane; - } - } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = root.entangledLanes |= entangledLanes; - var entanglements = root.entanglements; - var lanes = rootEntangledLanes; - while (lanes) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - if ( - lane & entangledLanes | - entanglements[index] & entangledLanes) { - entanglements[index] |= entangledLanes; - } - lanes &= ~lane; - } + var SoundManager = { + playTouchSound: function playTouchSound() { + if (_NativeSoundManager.default) { + _NativeSoundManager.default.playTouchSound(); } - function getBumpedLaneForHydration(root, renderLanes) { - var renderLane = getHighestPriorityLane(renderLanes); - var lane; - switch (renderLane) { - case InputContinuousLane: - lane = InputContinuousHydrationLane; - break; - case DefaultLane: - lane = DefaultHydrationLane; - break; - case TransitionLane1: - case TransitionLane2: - case TransitionLane3: - case TransitionLane4: - case TransitionLane5: - case TransitionLane6: - case TransitionLane7: - case TransitionLane8: - case TransitionLane9: - case TransitionLane10: - case TransitionLane11: - case TransitionLane12: - case TransitionLane13: - case TransitionLane14: - case TransitionLane15: - case TransitionLane16: - case RetryLane1: - case RetryLane2: - case RetryLane3: - case RetryLane4: - case RetryLane5: - lane = TransitionHydrationLane; - break; - case IdleLane: - lane = IdleHydrationLane; - break; - default: - lane = NoLane; - break; - } - - if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) { - return NoLane; - } - return lane; + } + }; + module.exports = SoundManager; +},290,[3,291],"node_modules/react-native/Libraries/Components/Sound/SoundManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * Native Module used for playing sounds in native platform. + */ + var _default = TurboModuleRegistry.get('SoundManager'); + exports.default = _default; +},291,[19],"node_modules/react-native/Libraries/Components/Sound/NativeSoundManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var PressabilityPerformanceEventEmitter = /*#__PURE__*/function () { + function PressabilityPerformanceEventEmitter() { + (0, _classCallCheck2.default)(this, PressabilityPerformanceEventEmitter); + this._listeners = []; + } + (0, _createClass2.default)(PressabilityPerformanceEventEmitter, [{ + key: "addListener", + value: function addListener(listener) { + this._listeners.push(listener); } - function addFiberToLanesMap(root, fiber, lanes) { - if (!isDevToolsPresent) { - return; - } - var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; - while (lanes > 0) { - var index = laneToIndex(lanes); - var lane = 1 << index; - var updaters = pendingUpdatersLaneMap[index]; - updaters.add(fiber); - lanes &= ~lane; + }, { + key: "removeListener", + value: function removeListener(listener) { + var index = this._listeners.indexOf(listener); + if (index > -1) { + this._listeners.splice(index, 1); } } - function movePendingFibersToMemoized(root, lanes) { - if (!isDevToolsPresent) { + }, { + key: "emitEvent", + value: function emitEvent(constructEvent) { + if (this._listeners.length === 0) { return; } - var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; - var memoizedUpdaters = root.memoizedUpdaters; - while (lanes > 0) { - var index = laneToIndex(lanes); - var lane = 1 << index; - var updaters = pendingUpdatersLaneMap[index]; - if (updaters.size > 0) { - updaters.forEach(function (fiber) { - var alternate = fiber.alternate; - if (alternate === null || !memoizedUpdaters.has(alternate)) { - memoizedUpdaters.add(fiber); - } - }); - updaters.clear(); - } - lanes &= ~lane; - } - } - function getTransitionsForLanes(root, lanes) { - { - return null; - } - } - var DiscreteEventPriority = SyncLane; - var ContinuousEventPriority = InputContinuousLane; - var DefaultEventPriority = DefaultLane; - var IdleEventPriority = IdleLane; - var currentUpdatePriority = NoLane; - function getCurrentUpdatePriority() { - return currentUpdatePriority; - } - function setCurrentUpdatePriority(newPriority) { - currentUpdatePriority = newPriority; - } - function higherEventPriority(a, b) { - return a !== 0 && a < b ? a : b; - } - function lowerEventPriority(a, b) { - return a === 0 || a > b ? a : b; - } - function isHigherEventPriority(a, b) { - return a !== 0 && a < b; - } - function lanesToEventPriority(lanes) { - var lane = getHighestPriorityLane(lanes); - if (!isHigherEventPriority(DiscreteEventPriority, lane)) { - return DiscreteEventPriority; - } - if (!isHigherEventPriority(ContinuousEventPriority, lane)) { - return ContinuousEventPriority; - } - if (includesNonIdleWork(lane)) { - return DefaultEventPriority; - } - return IdleEventPriority; - } - - function shim() { - throw new Error("The current renderer does not support mutation. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - var commitMount = shim; - - function shim$1() { - throw new Error("The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - var isSuspenseInstancePending = shim$1; - var isSuspenseInstanceFallback = shim$1; - var getSuspenseInstanceFallbackErrorDetails = shim$1; - var registerSuspenseInstanceRetry = shim$1; - var hydrateTextInstance = shim$1; - var errorHydratingContainer = shim$1; - var _nativeFabricUIManage = nativeFabricUIManager, - createNode = _nativeFabricUIManage.createNode, - cloneNode = _nativeFabricUIManage.cloneNode, - cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, - cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, - cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, - createChildNodeSet = _nativeFabricUIManage.createChildSet, - appendChildNode = _nativeFabricUIManage.appendChild, - appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, - completeRoot = _nativeFabricUIManage.completeRoot, - registerEventHandler = _nativeFabricUIManage.registerEventHandler, - fabricMeasure = _nativeFabricUIManage.measure, - fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, - fabricMeasureLayout = _nativeFabricUIManage.measureLayout, - FabricDefaultPriority = _nativeFabricUIManage.unstable_DefaultEventPriority, - FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, - fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority; - var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; - - var nextReactTag = 2; - - if (registerEventHandler) { - registerEventHandler(dispatchEvent); + var event = constructEvent(); + this._listeners.forEach(function (listener) { + return listener(event); + }); } + }]); + return PressabilityPerformanceEventEmitter; + }(); + var PressabilityPerformanceEventEmitterSingleton = new PressabilityPerformanceEventEmitter(); + var _default = PressabilityPerformanceEventEmitterSingleton; + exports.default = _default; +},292,[3,12,13],"node_modules/react-native/Libraries/Pressability/PressabilityPerformanceEventEmitter.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isHoverEnabled = isHoverEnabled; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var ReactFabricHostComponent = function () { - function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { - this._nativeTag = tag; - this.viewConfig = viewConfig; - this.currentProps = props; - this._internalInstanceHandle = internalInstanceHandle; - } - var _proto = ReactFabricHostComponent.prototype; - _proto.blur = function blur() { - ReactNativePrivateInterface.TextInputState.blurTextInput(this); - }; - _proto.focus = function focus() { - ReactNativePrivateInterface.TextInputState.focusTextInput(this); - }; - _proto.measure = function measure(callback) { - var stateNode = this._internalInstanceHandle.stateNode; - if (stateNode != null) { - fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - } - }; - _proto.measureInWindow = function measureInWindow(callback) { - var stateNode = this._internalInstanceHandle.stateNode; - if (stateNode != null) { - fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - } - }; - _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) - { - if (typeof relativeToNativeNode === "number" || !(relativeToNativeNode instanceof ReactFabricHostComponent)) { - { - error("Warning: ref.measureLayout must be called with a ref to a native component."); - } - return; - } - var toStateNode = this._internalInstanceHandle.stateNode; - var fromStateNode = relativeToNativeNode._internalInstanceHandle.stateNode; - if (toStateNode != null && fromStateNode != null) { - fabricMeasureLayout(toStateNode.node, fromStateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); - } - }; - _proto.setNativeProps = function setNativeProps(nativeProps) { - { - error("Warning: setNativeProps is not currently supported in Fabric"); - } + var isEnabled = false; + if (_Platform.default.OS === 'web') { + var canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement); + if (canUseDOM) { + /** + * Web browsers emulate mouse events (and hover states) after touch events. + * This code infers when the currently-in-use modality supports hover + * (including for multi-modality devices) and considers "hover" to be enabled + * if a mouse movement occurs more than 1 second after the last touch event. + * This threshold is long enough to account for longer delays between the + * browser firing touch and mouse events on low-powered devices. + */ + var HOVER_THRESHOLD_MS = 1000; + var lastTouchTimestamp = 0; + var enableHover = function enableHover() { + if (isEnabled || Date.now() - lastTouchTimestamp < HOVER_THRESHOLD_MS) { return; - }; - - _proto.addEventListener_unstable = function addEventListener_unstable(eventType, listener, options) { - if (typeof eventType !== "string") { - throw new Error("addEventListener_unstable eventType must be a string"); - } - if (typeof listener !== "function") { - throw new Error("addEventListener_unstable listener must be a function"); - } - - var optionsObj = typeof options === "object" && options !== null ? options : {}; - var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; - var once = optionsObj.once || false; - var passive = optionsObj.passive || false; - var signal = null; - - var eventListeners = this._eventListeners || {}; - if (this._eventListeners == null) { - this._eventListeners = eventListeners; - } - var namedEventListeners = eventListeners[eventType] || []; - if (eventListeners[eventType] == null) { - eventListeners[eventType] = namedEventListeners; - } - namedEventListeners.push({ - listener: listener, - invalidated: false, - options: { - capture: capture, - once: once, - passive: passive, - signal: signal - } - }); - }; - - _proto.removeEventListener_unstable = function removeEventListener_unstable(eventType, listener, options) { - var optionsObj = typeof options === "object" && options !== null ? options : {}; - var capture = (typeof options === "boolean" ? options : optionsObj.capture) || false; - - var eventListeners = this._eventListeners; - if (!eventListeners) { - return; - } - var namedEventListeners = eventListeners[eventType]; - if (!namedEventListeners) { - return; - } - - eventListeners[eventType] = namedEventListeners.filter(function (listenerObj) { - return !(listenerObj.listener === listener && listenerObj.options.capture === capture); - }); - }; - return ReactFabricHostComponent; - }(); - function appendInitialChild(parentInstance, child) { - appendChildNode(parentInstance.node, child.node); - } - function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { - var tag = nextReactTag; - nextReactTag += 2; - var viewConfig = getViewConfigForType(type); - { - for (var key in viewConfig.validAttributes) { - if (props.hasOwnProperty(key)) { - ReactNativePrivateInterface.deepFreezeAndThrowOnMutationInDev(props[key]); - } - } - } - var updatePayload = create(props, viewConfig.validAttributes); - var node = createNode(tag, - viewConfig.uiViewClassName, - rootContainerInstance, - updatePayload, - internalInstanceHandle); - - var component = new ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle); - return { - node: node, - canonical: component - }; - } - function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - { - if (!hostContext.isInAParentText) { - error("Text strings must be rendered within a component."); - } - } - var tag = nextReactTag; - nextReactTag += 2; - var node = createNode(tag, - "RCTRawText", - rootContainerInstance, - { - text: text - }, - internalInstanceHandle); - - return { - node: node - }; - } - function getRootHostContext(rootContainerInstance) { - return { - isInAParentText: false - }; - } - function getChildHostContext(parentHostContext, type, rootContainerInstance) { - var prevIsInAParentText = parentHostContext.isInAParentText; - var isInAParentText = type === "AndroidTextInput" || - type === "RCTMultilineTextInputView" || - type === "RCTSinglelineTextInputView" || - type === "RCTText" || type === "RCTVirtualText"; - - if (prevIsInAParentText !== isInAParentText) { - return { - isInAParentText: isInAParentText - }; - } else { - return parentHostContext; - } - } - function getPublicInstance(instance) { - return instance.canonical; - } - function prepareForCommit(containerInfo) { - return null; - } - function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { - var viewConfig = instance.canonical.viewConfig; - var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); - - instance.canonical.currentProps = newProps; - return updatePayload; - } - function resetAfterCommit(containerInfo) { - } - function shouldSetTextContent(type, props) { - return false; - } - function getCurrentEventPriority() { - var currentEventPriority = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; - if (currentEventPriority != null) { - switch (currentEventPriority) { - case FabricDiscretePriority: - return DiscreteEventPriority; - case FabricDefaultPriority: - default: - return DefaultEventPriority; - } - } - return DefaultEventPriority; - } - - var warnsIfNotActing = false; - var scheduleTimeout = setTimeout; - var cancelTimeout = clearTimeout; - var noTimeout = -1; - function cloneInstance(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle, keepChildren, recyclableInstance) { - var node = instance.node; - var clone; - if (keepChildren) { - if (updatePayload !== null) { - clone = cloneNodeWithNewProps(node, updatePayload); - } else { - clone = cloneNode(node); - } - } else { - if (updatePayload !== null) { - clone = cloneNodeWithNewChildrenAndProps(node, updatePayload); - } else { - clone = cloneNodeWithNewChildren(node); - } } - return { - node: clone, - canonical: instance.canonical - }; - } - function cloneHiddenInstance(instance, type, props, internalInstanceHandle) { - var viewConfig = instance.canonical.viewConfig; - var node = instance.node; - var updatePayload = create({ - style: { - display: "none" - } - }, viewConfig.validAttributes); - return { - node: cloneNodeWithNewProps(node, updatePayload), - canonical: instance.canonical - }; - } - function cloneHiddenTextInstance(instance, text, internalInstanceHandle) { - throw new Error("Not yet implemented."); - } - function createContainerChildSet(container) { - return createChildNodeSet(container); - } - function appendChildToContainerChildSet(childSet, child) { - appendChildNodeToSet(childSet, child.node); - } - function finalizeContainerChildren(container, newChildren) { - completeRoot(container, newChildren); - } - function replaceContainerChildren(container, newChildren) {} - function preparePortalMount(portalInstance) { - } - var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - var ownerName = null; - if (ownerFn) { - ownerName = ownerFn.displayName || ownerFn.name || null; - } - return describeComponentFrame(name, source, ownerName); + isEnabled = true; + }; + var disableHover = function disableHover() { + lastTouchTimestamp = Date.now(); + if (isEnabled) { + isEnabled = false; } - } - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); - } - var BEFORE_SLASH_RE = /^(.*)[\\\/]/; - function describeComponentFrame(name, source, ownerName) { - var sourceInfo = ""; - if (source) { - var path = source.fileName; - var fileName = path.replace(BEFORE_SLASH_RE, ""); + }; + document.addEventListener('touchstart', disableHover, true); + document.addEventListener('touchmove', disableHover, true); + document.addEventListener('mousemove', enableHover, true); + } + } + function isHoverEnabled() { + return isEnabled; + } +},293,[3,17],"node_modules/react-native/Libraries/Pressability/HoverState.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NativeVirtualText = exports.NativeText = void 0; + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../ReactNative/UIManager")); + var _createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Renderer/shims/createReactNativeComponentClass")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (/^index\./.test(fileName)) { - var match = path.match(BEFORE_SLASH_RE); - if (match) { - var pathBeforeSlash = match[1]; - if (pathBeforeSlash) { - var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ""); - fileName = folderName + "/" + fileName; - } - } - } - sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")"; - } else if (ownerName) { - sourceInfo = " (created by " + ownerName + ")"; - } - return "\n in " + (name || "Unknown") + sourceInfo; - } - function describeClassComponentFrame(ctor, source, ownerFn) { - { - return describeFunctionComponentFrame(ctor, source, ownerFn); - } - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - if (!fn) { - return ""; - } - var name = fn.displayName || fn.name || null; - var ownerName = null; - if (ownerFn) { - ownerName = ownerFn.displayName || ownerFn.name || null; - } - return describeComponentFrame(name, source, ownerName); - } - } - function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { - if (type == null) { - return ""; - } - if (typeof type === "function") { - { - return describeFunctionComponentFrame(type, source, ownerFn); - } - } - if (typeof type === "string") { - return describeBuiltInComponentFrame(type, source, ownerFn); - } - switch (type) { - case REACT_SUSPENSE_TYPE: - return describeBuiltInComponentFrame("Suspense", source, ownerFn); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList", source, ownerFn); - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type.render, source, ownerFn); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); - case REACT_LAZY_TYPE: - { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x) {} - } - } - } - return ""; - } - var hasOwnProperty = Object.prototype.hasOwnProperty; - var loggedTypeFailures = {}; - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); - } - } + var textViewConfig = { + validAttributes: { + isHighlighted: true, + isPressable: true, + numberOfLines: true, + ellipsizeMode: true, + allowFontScaling: true, + dynamicTypeRamp: true, + maxFontSizeMultiplier: true, + disabled: true, + selectable: true, + selectionColor: true, + adjustsFontSizeToFit: true, + minimumFontScale: true, + textBreakStrategy: true, + onTextLayout: true, + onInlineViewLayout: true, + dataDetectorType: true, + android_hyphenationFrequency: true, + lineBreakStrategyIOS: true + }, + directEventTypes: { + topTextLayout: { + registrationName: 'onTextLayout' + }, + topInlineViewLayout: { + registrationName: 'onInlineViewLayout' } - function checkPropTypes(typeSpecs, values, location, componentName, element) { - { - var has = Function.call.bind(hasOwnProperty); - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; + }, + uiViewClassName: 'RCTText' + }; + var virtualTextViewConfig = { + validAttributes: { + isHighlighted: true, + isPressable: true, + maxFontSizeMultiplier: true + }, + uiViewClassName: 'RCTVirtualText' + }; + var NativeText = (0, _createReactNativeComponentClass.default)('RCTText', function () { + return (0, _$$_REQUIRE(_dependencyMap[3], "../NativeComponent/ViewConfig").createViewConfig)(textViewConfig); + }); + exports.NativeText = NativeText; + var NativeVirtualText = !global.RN$Bridgeless && !_UIManager.default.hasViewManagerConfig('RCTVirtualText') ? NativeText : (0, _createReactNativeComponentClass.default)('RCTVirtualText', function () { + return (0, _$$_REQUIRE(_dependencyMap[3], "../NativeComponent/ViewConfig").createViewConfig)(virtualTextViewConfig); + }); + exports.NativeVirtualText = NativeVirtualText; +},294,[3,230,275,256],"node_modules/react-native/Libraries/Text/TextNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex) { - error$1 = ex; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { - loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } - } - } - var valueStack = []; - var fiberStack; - { - fiberStack = []; - } - var index = -1; - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - function pop(cursor, fiber) { - if (index < 0) { - { - error("Unexpected pop."); - } - return; - } - { - if (fiber !== fiberStack[index]) { - error("Unexpected Fiber popped."); - } - } - cursor.current = valueStack[index]; - valueStack[index] = null; - { - fiberStack[index] = null; - } - index--; - } - function push(cursor, value, fiber) { - index++; - valueStack[index] = cursor.current; - { - fiberStack[index] = fiber; - } - cursor.current = value; - } - var warnedAboutMissingGetChildContext; - { - warnedAboutMissingGetChildContext = {}; - } - var emptyContextObject = {}; - { - Object.freeze(emptyContextObject); - } + 'use strict'; - var contextStackCursor = createCursor(emptyContextObject); + module.exports = { + get ColorPropType() { + return _$$_REQUIRE(_dependencyMap[0], "./DeprecatedColorPropType"); + }, + get EdgeInsetsPropType() { + return _$$_REQUIRE(_dependencyMap[1], "./DeprecatedEdgeInsetsPropType"); + }, + get ImagePropTypes() { + return _$$_REQUIRE(_dependencyMap[2], "./DeprecatedImagePropType"); + }, + get PointPropType() { + return _$$_REQUIRE(_dependencyMap[3], "./DeprecatedPointPropType"); + }, + get TextInputPropTypes() { + return _$$_REQUIRE(_dependencyMap[4], "./DeprecatedTextInputPropTypes"); + }, + get TextPropTypes() { + return _$$_REQUIRE(_dependencyMap[5], "./DeprecatedTextPropTypes"); + }, + get ViewPropTypes() { + return _$$_REQUIRE(_dependencyMap[6], "./DeprecatedViewPropTypes"); + } + }; +},295,[296,298,309,320,321,322,310],"node_modules/deprecated-react-native-prop-types/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var didPerformWorkStackCursor = createCursor(false); + 'use strict'; - var previousContext = emptyContextObject; - function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { - { - if (didPushOwnContextIfProvider && isContextProvider(Component)) { - return previousContext; - } - return contextStackCursor.current; - } - } - function cacheContext(workInProgress, unmaskedContext, maskedContext) { - { - var instance = workInProgress.stateNode; - instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; - instance.__reactInternalMemoizedMaskedChildContext = maskedContext; - } + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var colorPropType = function colorPropType(isRequired, props, propName, componentName, location, propFullName) { + var color = props[propName]; + if (color == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + (propFullName || propName) + '` was not specified in `' + componentName + '`.'); } - function getMaskedContext(workInProgress, unmaskedContext) { - { - var type = workInProgress.type; - var contextTypes = type.contextTypes; - if (!contextTypes) { - return emptyContextObject; - } - - var instance = workInProgress.stateNode; - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { - return instance.__reactInternalMemoizedMaskedChildContext; - } - var context = {}; - for (var key in contextTypes) { - context[key] = unmaskedContext[key]; - } - { - var name = getComponentNameFromFiber(workInProgress) || "Unknown"; - checkPropTypes(contextTypes, context, "context", name); - } + return; + } + if (typeof color === 'number') { + // Developers should not use a number, but we are using the prop type + // both for user provided colors and for transformed ones. This isn't ideal + // and should be fixed but will do for now... + return; + } + if (typeof color === 'string' && _$$_REQUIRE(_dependencyMap[0], "@react-native/normalize-colors")(color) === null) { + return new Error('Invalid ' + location + ' `' + (propFullName || propName) + '` supplied to `' + componentName + '`: ' + color + '\n' + `Valid color formats are + - '#f0f' (#rgb) + - '#f0fc' (#rgba) + - '#ff00ff' (#rrggbb) + - '#ff00ff00' (#rrggbbaa) + - 'rgb(255, 255, 255)' + - 'rgba(255, 255, 255, 1.0)' + - 'hsl(360, 100%, 100%)' + - 'hsla(360, 100%, 100%, 1.0)' + - 'transparent' + - 'red' + - 0xff00ff00 (0xrrggbbaa) +`); + } + }; + var ColorPropType = colorPropType.bind(null, false /* isRequired */); + ColorPropType.isRequired = colorPropType.bind(null, true /* isRequired */); - if (instance) { - cacheContext(workInProgress, unmaskedContext, context); - } - return context; - } - } - function hasContextChanged() { - { - return didPerformWorkStackCursor.current; - } - } - function isContextProvider(type) { - { - var childContextTypes = type.childContextTypes; - return childContextTypes !== null && childContextTypes !== undefined; - } - } - function popContext(fiber) { - { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - } - function popTopLevelContextObject(fiber) { - { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - } - function pushTopLevelContextObject(fiber, context, didChange) { - { - if (contextStackCursor.current !== emptyContextObject) { - throw new Error("Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); - } - push(contextStackCursor, context, fiber); - push(didPerformWorkStackCursor, didChange, fiber); - } - } - function processChildContext(fiber, type, parentContext) { - { - var instance = fiber.stateNode; - var childContextTypes = type.childContextTypes; + module.exports = ColorPropType; +},296,[297],"node_modules/deprecated-react-native-prop-types/DeprecatedColorPropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - if (typeof instance.getChildContext !== "function") { - { - var componentName = getComponentNameFromFiber(fiber) || "Unknown"; - if (!warnedAboutMissingGetChildContext[componentName]) { - warnedAboutMissingGetChildContext[componentName] = true; - error("%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); - } - } - return parentContext; - } - var childContext = instance.getChildContext(); - for (var contextKey in childContext) { - if (!(contextKey in childContextTypes)) { - throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); - } - } - { - var name = getComponentNameFromFiber(fiber) || "Unknown"; - checkPropTypes(childContextTypes, childContext, "child context", name); - } - return assign({}, parentContext, childContext); - } - } - function pushContextProvider(workInProgress) { - { - var instance = workInProgress.stateNode; + /* eslint no-bitwise: 0 */ - var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; + 'use strict'; - previousContext = contextStackCursor.current; - push(contextStackCursor, memoizedMergedChildContext, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); - return true; - } + function normalizeColor(color) { + if (typeof color === 'number') { + if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) { + return color; } - function invalidateContextProvider(workInProgress, type, didChange) { - { - var instance = workInProgress.stateNode; - if (!instance) { - throw new Error("Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); - } - if (didChange) { - var mergedContext = processChildContext(workInProgress, type, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; + return null; + } + if (typeof color !== 'string') { + return null; + } + var matchers = getMatchers(); + var match; - pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); + // Ordered based on occurrences on Facebook codebase + if (match = matchers.hex6.exec(color)) { + return parseInt(match[1] + 'ff', 16) >>> 0; + } + var colorFromKeyword = normalizeKeyword(color); + if (colorFromKeyword != null) { + return colorFromKeyword; + } + if (match = matchers.rgb.exec(color)) { + return (parse255(match[1]) << 24 | + // r + parse255(match[2]) << 16 | + // g + parse255(match[3]) << 8 | + // b + 0x000000ff) >>> + // a + 0; + } + if (match = matchers.rgba.exec(color)) { + // rgba(R G B / A) notation + if (match[6] !== undefined) { + return (parse255(match[6]) << 24 | + // r + parse255(match[7]) << 16 | + // g + parse255(match[8]) << 8 | + // b + parse1(match[9])) >>> + // a + 0; + } + + // rgba(R, G, B, A) notation + return (parse255(match[2]) << 24 | + // r + parse255(match[3]) << 16 | + // g + parse255(match[4]) << 8 | + // b + parse1(match[5])) >>> + // a + 0; + } + if (match = matchers.hex3.exec(color)) { + return parseInt(match[1] + match[1] + + // r + match[2] + match[2] + + // g + match[3] + match[3] + + // b + 'ff', + // a + 16) >>> 0; + } - push(contextStackCursor, mergedContext, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } else { - pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } - } - } - function findCurrentUnmaskedContext(fiber) { - { - if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { - throw new Error("Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + // https://drafts.csswg.org/css-color-4/#hex-notation + if (match = matchers.hex8.exec(color)) { + return parseInt(match[1], 16) >>> 0; + } + if (match = matchers.hex4.exec(color)) { + return parseInt(match[1] + match[1] + + // r + match[2] + match[2] + + // g + match[3] + match[3] + + // b + match[4] + match[4], + // a + 16) >>> 0; + } + if (match = matchers.hsl.exec(color)) { + return (hslToRgb(parse360(match[1]), + // h + parsePercentage(match[2]), + // s + parsePercentage(match[3]) // l + ) | 0x000000ff) >>> + // a + 0; + } + if (match = matchers.hsla.exec(color)) { + // hsla(H S L / A) notation + if (match[6] !== undefined) { + return (hslToRgb(parse360(match[6]), + // h + parsePercentage(match[7]), + // s + parsePercentage(match[8]) // l + ) | parse1(match[9])) >>> + // a + 0; + } + + // hsla(H, S, L, A) notation + return (hslToRgb(parse360(match[2]), + // h + parsePercentage(match[3]), + // s + parsePercentage(match[4]) // l + ) | parse1(match[5])) >>> + // a + 0; + } + if (match = matchers.hwb.exec(color)) { + return (hwbToRgb(parse360(match[1]), + // h + parsePercentage(match[2]), + // w + parsePercentage(match[3]) // b + ) | 0x000000ff) >>> + // a + 0; + } + return null; + } + function hue2rgb(p, q, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p + (q - p) * 6 * t; + } + if (t < 1 / 2) { + return q; + } + if (t < 2 / 3) { + return p + (q - p) * (2 / 3 - t) * 6; + } + return p; + } + function hslToRgb(h, s, l) { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + var r = hue2rgb(p, q, h + 1 / 3); + var g = hue2rgb(p, q, h); + var b = hue2rgb(p, q, h - 1 / 3); + return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; + } + function hwbToRgb(h, w, b) { + if (w + b >= 1) { + var gray = Math.round(w * 255 / (w + b)); + return gray << 24 | gray << 16 | gray << 8; + } + var red = hue2rgb(0, 1, h + 1 / 3) * (1 - w - b) + w; + var green = hue2rgb(0, 1, h) * (1 - w - b) + w; + var blue = hue2rgb(0, 1, h - 1 / 3) * (1 - w - b) + w; + return Math.round(red * 255) << 24 | Math.round(green * 255) << 16 | Math.round(blue * 255) << 8; + } + var NUMBER = '[-+]?\\d*\\.?\\d+'; + var PERCENTAGE = NUMBER + '%'; + function call() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return '\\(\\s*(' + args.join(')\\s*,?\\s*(') + ')\\s*\\)'; + } + function callWithSlashSeparator() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + return '\\(\\s*(' + args.slice(0, args.length - 1).join(')\\s*,?\\s*(') + ')\\s*/\\s*(' + args[args.length - 1] + ')\\s*\\)'; + } + function commaSeparatedCall() { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; + } + var cachedMatchers; + function getMatchers() { + if (cachedMatchers === undefined) { + cachedMatchers = { + rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), + rgba: new RegExp('rgba(' + commaSeparatedCall(NUMBER, NUMBER, NUMBER, NUMBER) + '|' + callWithSlashSeparator(NUMBER, NUMBER, NUMBER, NUMBER) + ')'), + hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), + hsla: new RegExp('hsla(' + commaSeparatedCall(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + '|' + callWithSlashSeparator(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + ')'), + hwb: new RegExp('hwb' + call(NUMBER, PERCENTAGE, PERCENTAGE)), + hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#([0-9a-fA-F]{6})$/, + hex8: /^#([0-9a-fA-F]{8})$/ + }; + } + return cachedMatchers; + } + function parse255(str) { + var int = parseInt(str, 10); + if (int < 0) { + return 0; + } + if (int > 255) { + return 255; + } + return int; + } + function parse360(str) { + var int = parseFloat(str); + return (int % 360 + 360) % 360 / 360; + } + function parse1(str) { + var num = parseFloat(str); + if (num < 0) { + return 0; + } + if (num > 1) { + return 255; + } + return Math.round(num * 255); + } + function parsePercentage(str) { + // parseFloat conveniently ignores the final % + var int = parseFloat(str); + if (int < 0) { + return 0; + } + if (int > 100) { + return 1; + } + return int / 100; + } + function normalizeKeyword(name) { + // prettier-ignore + switch (name) { + case 'transparent': + return 0x00000000; + // http://www.w3.org/TR/css3-color/#svg-color + case 'aliceblue': + return 0xf0f8ffff; + case 'antiquewhite': + return 0xfaebd7ff; + case 'aqua': + return 0x00ffffff; + case 'aquamarine': + return 0x7fffd4ff; + case 'azure': + return 0xf0ffffff; + case 'beige': + return 0xf5f5dcff; + case 'bisque': + return 0xffe4c4ff; + case 'black': + return 0x000000ff; + case 'blanchedalmond': + return 0xffebcdff; + case 'blue': + return 0x0000ffff; + case 'blueviolet': + return 0x8a2be2ff; + case 'brown': + return 0xa52a2aff; + case 'burlywood': + return 0xdeb887ff; + case 'burntsienna': + return 0xea7e5dff; + case 'cadetblue': + return 0x5f9ea0ff; + case 'chartreuse': + return 0x7fff00ff; + case 'chocolate': + return 0xd2691eff; + case 'coral': + return 0xff7f50ff; + case 'cornflowerblue': + return 0x6495edff; + case 'cornsilk': + return 0xfff8dcff; + case 'crimson': + return 0xdc143cff; + case 'cyan': + return 0x00ffffff; + case 'darkblue': + return 0x00008bff; + case 'darkcyan': + return 0x008b8bff; + case 'darkgoldenrod': + return 0xb8860bff; + case 'darkgray': + return 0xa9a9a9ff; + case 'darkgreen': + return 0x006400ff; + case 'darkgrey': + return 0xa9a9a9ff; + case 'darkkhaki': + return 0xbdb76bff; + case 'darkmagenta': + return 0x8b008bff; + case 'darkolivegreen': + return 0x556b2fff; + case 'darkorange': + return 0xff8c00ff; + case 'darkorchid': + return 0x9932ccff; + case 'darkred': + return 0x8b0000ff; + case 'darksalmon': + return 0xe9967aff; + case 'darkseagreen': + return 0x8fbc8fff; + case 'darkslateblue': + return 0x483d8bff; + case 'darkslategray': + return 0x2f4f4fff; + case 'darkslategrey': + return 0x2f4f4fff; + case 'darkturquoise': + return 0x00ced1ff; + case 'darkviolet': + return 0x9400d3ff; + case 'deeppink': + return 0xff1493ff; + case 'deepskyblue': + return 0x00bfffff; + case 'dimgray': + return 0x696969ff; + case 'dimgrey': + return 0x696969ff; + case 'dodgerblue': + return 0x1e90ffff; + case 'firebrick': + return 0xb22222ff; + case 'floralwhite': + return 0xfffaf0ff; + case 'forestgreen': + return 0x228b22ff; + case 'fuchsia': + return 0xff00ffff; + case 'gainsboro': + return 0xdcdcdcff; + case 'ghostwhite': + return 0xf8f8ffff; + case 'gold': + return 0xffd700ff; + case 'goldenrod': + return 0xdaa520ff; + case 'gray': + return 0x808080ff; + case 'green': + return 0x008000ff; + case 'greenyellow': + return 0xadff2fff; + case 'grey': + return 0x808080ff; + case 'honeydew': + return 0xf0fff0ff; + case 'hotpink': + return 0xff69b4ff; + case 'indianred': + return 0xcd5c5cff; + case 'indigo': + return 0x4b0082ff; + case 'ivory': + return 0xfffff0ff; + case 'khaki': + return 0xf0e68cff; + case 'lavender': + return 0xe6e6faff; + case 'lavenderblush': + return 0xfff0f5ff; + case 'lawngreen': + return 0x7cfc00ff; + case 'lemonchiffon': + return 0xfffacdff; + case 'lightblue': + return 0xadd8e6ff; + case 'lightcoral': + return 0xf08080ff; + case 'lightcyan': + return 0xe0ffffff; + case 'lightgoldenrodyellow': + return 0xfafad2ff; + case 'lightgray': + return 0xd3d3d3ff; + case 'lightgreen': + return 0x90ee90ff; + case 'lightgrey': + return 0xd3d3d3ff; + case 'lightpink': + return 0xffb6c1ff; + case 'lightsalmon': + return 0xffa07aff; + case 'lightseagreen': + return 0x20b2aaff; + case 'lightskyblue': + return 0x87cefaff; + case 'lightslategray': + return 0x778899ff; + case 'lightslategrey': + return 0x778899ff; + case 'lightsteelblue': + return 0xb0c4deff; + case 'lightyellow': + return 0xffffe0ff; + case 'lime': + return 0x00ff00ff; + case 'limegreen': + return 0x32cd32ff; + case 'linen': + return 0xfaf0e6ff; + case 'magenta': + return 0xff00ffff; + case 'maroon': + return 0x800000ff; + case 'mediumaquamarine': + return 0x66cdaaff; + case 'mediumblue': + return 0x0000cdff; + case 'mediumorchid': + return 0xba55d3ff; + case 'mediumpurple': + return 0x9370dbff; + case 'mediumseagreen': + return 0x3cb371ff; + case 'mediumslateblue': + return 0x7b68eeff; + case 'mediumspringgreen': + return 0x00fa9aff; + case 'mediumturquoise': + return 0x48d1ccff; + case 'mediumvioletred': + return 0xc71585ff; + case 'midnightblue': + return 0x191970ff; + case 'mintcream': + return 0xf5fffaff; + case 'mistyrose': + return 0xffe4e1ff; + case 'moccasin': + return 0xffe4b5ff; + case 'navajowhite': + return 0xffdeadff; + case 'navy': + return 0x000080ff; + case 'oldlace': + return 0xfdf5e6ff; + case 'olive': + return 0x808000ff; + case 'olivedrab': + return 0x6b8e23ff; + case 'orange': + return 0xffa500ff; + case 'orangered': + return 0xff4500ff; + case 'orchid': + return 0xda70d6ff; + case 'palegoldenrod': + return 0xeee8aaff; + case 'palegreen': + return 0x98fb98ff; + case 'paleturquoise': + return 0xafeeeeff; + case 'palevioletred': + return 0xdb7093ff; + case 'papayawhip': + return 0xffefd5ff; + case 'peachpuff': + return 0xffdab9ff; + case 'peru': + return 0xcd853fff; + case 'pink': + return 0xffc0cbff; + case 'plum': + return 0xdda0ddff; + case 'powderblue': + return 0xb0e0e6ff; + case 'purple': + return 0x800080ff; + case 'rebeccapurple': + return 0x663399ff; + case 'red': + return 0xff0000ff; + case 'rosybrown': + return 0xbc8f8fff; + case 'royalblue': + return 0x4169e1ff; + case 'saddlebrown': + return 0x8b4513ff; + case 'salmon': + return 0xfa8072ff; + case 'sandybrown': + return 0xf4a460ff; + case 'seagreen': + return 0x2e8b57ff; + case 'seashell': + return 0xfff5eeff; + case 'sienna': + return 0xa0522dff; + case 'silver': + return 0xc0c0c0ff; + case 'skyblue': + return 0x87ceebff; + case 'slateblue': + return 0x6a5acdff; + case 'slategray': + return 0x708090ff; + case 'slategrey': + return 0x708090ff; + case 'snow': + return 0xfffafaff; + case 'springgreen': + return 0x00ff7fff; + case 'steelblue': + return 0x4682b4ff; + case 'tan': + return 0xd2b48cff; + case 'teal': + return 0x008080ff; + case 'thistle': + return 0xd8bfd8ff; + case 'tomato': + return 0xff6347ff; + case 'turquoise': + return 0x40e0d0ff; + case 'violet': + return 0xee82eeff; + case 'wheat': + return 0xf5deb3ff; + case 'white': + return 0xffffffff; + case 'whitesmoke': + return 0xf5f5f5ff; + case 'yellow': + return 0xffff00ff; + case 'yellowgreen': + return 0x9acd32ff; + } + return null; + } + module.exports = normalizeColor; +},297,[],"node_modules/deprecated-react-native-prop-types/node_modules/@react-native/normalize-colors/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + + 'use strict'; + + /** + * @see facebook/react-native/Libraries/StyleSheet/Rect.js + */ + var DeprecatedEdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + bottom: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + left: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + right: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + top: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }); + module.exports = DeprecatedEdgeInsetsPropType; +},298,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedEdgeInsetsPropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + if (process.env.NODE_ENV !== 'production') { + var ReactIs = _$$_REQUIRE(_dependencyMap[0], "react-is"); + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = _$$_REQUIRE(_dependencyMap[1], "./factoryWithTypeCheckers")(ReactIs.isElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = _$$_REQUIRE(_dependencyMap[2], "./factoryWithThrowingShims")(); + } +},299,[300,303,308],"node_modules/prop-types/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/react-is.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/react-is.development.js"); + } +},300,[301,302],"node_modules/prop-types/node_modules/react-is/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.concurrent_mode") : 60111, + n = b ? Symbol.for("react.forward_ref") : 60112, + p = b ? Symbol.for("react.suspense") : 60113, + q = b ? Symbol.for("react.suspense_list") : 60120, + r = b ? Symbol.for("react.memo") : 60115, + t = b ? Symbol.for("react.lazy") : 60116, + v = b ? Symbol.for("react.block") : 60121, + w = b ? Symbol.for("react.fundamental") : 60117, + x = b ? Symbol.for("react.responder") : 60118, + y = b ? Symbol.for("react.scope") : 60119; + function z(a) { + if ("object" === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (a = a.type, a) { + case l: + case m: + case e: + case g: + case f: + case p: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case n: + case t: + case r: + case h: + return a; + default: + return u; + } } - var node = fiber; - do { - switch (node.tag) { - case HostRoot: - return node.stateNode.context; - case ClassComponent: - { - var Component = node.type; - if (isContextProvider(Component)) { - return node.stateNode.__reactInternalMemoizedMergedChildContext; - } - break; - } - } - node = node.return; - } while (node !== null); - throw new Error("Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); - } + case d: + return u; } - var LegacyRoot = 0; - var ConcurrentRoot = 1; + } + } + function A(a) { + return z(a) === m; + } + exports.AsyncMode = l; + exports.ConcurrentMode = m; + exports.ContextConsumer = k; + exports.ContextProvider = h; + exports.Element = c; + exports.ForwardRef = n; + exports.Fragment = e; + exports.Lazy = t; + exports.Memo = r; + exports.Portal = d; + exports.Profiler = g; + exports.StrictMode = f; + exports.Suspense = p; + exports.isAsyncMode = function (a) { + return A(a) || z(a) === l; + }; + exports.isConcurrentMode = A; + exports.isContextConsumer = function (a) { + return z(a) === k; + }; + exports.isContextProvider = function (a) { + return z(a) === h; + }; + exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; + }; + exports.isForwardRef = function (a) { + return z(a) === n; + }; + exports.isFragment = function (a) { + return z(a) === e; + }; + exports.isLazy = function (a) { + return z(a) === t; + }; + exports.isMemo = function (a) { + return z(a) === r; + }; + exports.isPortal = function (a) { + return z(a) === d; + }; + exports.isProfiler = function (a) { + return z(a) === g; + }; + exports.isStrictMode = function (a) { + return z(a) === f; + }; + exports.isSuspense = function (a) { + return z(a) === p; + }; + exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); + }; + exports.typeOf = z; +},301,[],"node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function is(x, y) { - return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; - } + 'use strict'; - var objectIs = typeof Object.is === "function" ? Object.is : is; - var syncQueue = null; - var includesLegacySyncCallbacks = false; - var isFlushingSyncQueue = false; - function scheduleSyncCallback(callback) { - if (syncQueue === null) { - syncQueue = [callback]; - } else { - syncQueue.push(callback); - } - } - function scheduleLegacySyncCallback(callback) { - includesLegacySyncCallbacks = true; - scheduleSyncCallback(callback); + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary + // (unstable) APIs that have been removed. Can we remove the symbols? + + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || + // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); } - function flushSyncCallbacksOnlyInLegacyMode() { - if (includesLegacySyncCallbacks) { - flushSyncCallbacks(); + function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + default: + var $$typeofType = type && type.$$typeof; + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + default: + return $$typeof; + } + } + case REACT_PORTAL_TYPE: + return $$typeof; + } } - } - function flushSyncCallbacks() { - if (!isFlushingSyncQueue && syncQueue !== null) { - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); - try { - var isSync = true; - var queue = syncQueue; + return undefined; + } // AsyncMode is deprecated along with isAsyncMode - setCurrentUpdatePriority(DiscreteEventPriority); - for (; i < queue.length; i++) { - var callback = queue[i]; - do { - callback = callback(isSync); - } while (callback !== null); - } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } + var AsyncMode = REACT_ASYNC_MODE_TYPE; + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; + var ContextConsumer = REACT_CONTEXT_TYPE; + var ContextProvider = REACT_PROVIDER_TYPE; + var Element = REACT_ELEMENT_TYPE; + var ForwardRef = REACT_FORWARD_REF_TYPE; + var Fragment = REACT_FRAGMENT_TYPE; + var Lazy = REACT_LAZY_TYPE; + var Memo = REACT_MEMO_TYPE; + var Portal = REACT_PORTAL_TYPE; + var Profiler = REACT_PROFILER_TYPE; + var StrictMode = REACT_STRICT_MODE_TYPE; + var Suspense = REACT_SUSPENSE_TYPE; + var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated - scheduleCallback(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); } } - return null; + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; } - - function isRootDehydrated(root) { - var currentState = root.current.memoizedState; - return currentState.isDehydrated; + function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; + } + function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; + } + function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; + } + function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; + } + function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; + } + function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; + } + function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; + } + function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; + } + function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; + } + function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; } + function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; + } + exports.AsyncMode = AsyncMode; + exports.ConcurrentMode = ConcurrentMode; + exports.ContextConsumer = ContextConsumer; + exports.ContextProvider = ContextProvider; + exports.Element = Element; + exports.ForwardRef = ForwardRef; + exports.Fragment = Fragment; + exports.Lazy = Lazy; + exports.Memo = Memo; + exports.Portal = Portal; + exports.Profiler = Profiler; + exports.StrictMode = StrictMode; + exports.Suspense = Suspense; + exports.isAsyncMode = isAsyncMode; + exports.isConcurrentMode = isConcurrentMode; + exports.isContextConsumer = isContextConsumer; + exports.isContextProvider = isContextProvider; + exports.isElement = isElement; + exports.isForwardRef = isForwardRef; + exports.isFragment = isFragment; + exports.isLazy = isLazy; + exports.isMemo = isMemo; + exports.isPortal = isPortal; + exports.isProfiler = isProfiler; + exports.isStrictMode = isStrictMode; + exports.isSuspense = isSuspense; + exports.isValidElementType = isValidElementType; + exports.typeOf = typeOf; + })(); + } +},302,[],"node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - var forkStack = []; - var forkStackIndex = 0; - var treeForkProvider = null; - var treeForkCount = 0; - var idStack = []; - var idStackIndex = 0; - var treeContextProvider = null; - var treeContextId = 1; - var treeContextOverflow = ""; - function popTreeContext(workInProgress) { - while (workInProgress === treeForkProvider) { - treeForkProvider = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - treeForkCount = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - } - while (workInProgress === treeContextProvider) { - treeContextProvider = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextOverflow = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextId = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - } + 'use strict'; + + var printWarning = function printWarning() {}; + if (process.env.NODE_ENV !== 'production') { + printWarning = function printWarning(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + } + function emptyFunctionThatReturnsNull() { + return null; + } + module.exports = function (isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. + + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; } - var isHydrating = false; + } - var didSuspendOrErrorDEV = false; + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ + + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bigint: createPrimitiveTypeChecker('bigint'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + elementType: createElementTypeTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker + }; - var hydrationErrors = null; - function didSuspendOrErrorWhileHydratingDEV() { - { - return didSuspendOrErrorDEV; + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ + + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message, data) { + this.message = message; + this.data = data && typeof data === 'object' ? data : {}; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + if (secret !== _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); + err.name = 'Invariant Violation'; + throw err; + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if (!manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3) { + printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } } - } - function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) { - { - return false; + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), { + expectedType: expectedType + }); } + return null; } - function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { - { - throw new Error("Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + return createChainableTypeChecker(validate); + } + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunctionThatReturnsNull); + } + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); } - } - function prepareToHydrateHostTextInstance(fiber) { - { - throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); } - var shouldUpdate = hydrateTextInstance(); - } - function prepareToHydrateHostSuspenseInstance(fiber) { - { - throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")); + if (error instanceof Error) { + return error; + } } + return null; } - function popHydrationState(fiber) { - { - return false; + return createChainableTypeChecker(validate); + } + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); } + return null; } - function upgradeHydrationErrorsToRecoverable() { - if (hydrationErrors !== null) { - queueRecoverableErrors(hydrationErrors); - hydrationErrors = null; + return createChainableTypeChecker(validate); + } + function createElementTypeTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!_$$_REQUIRE(_dependencyMap[1], "react-is").isValidElementType(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); } + return null; } - function getIsHydrating() { - return isHydrating; - } - function queueHydrationError(error) { - if (hydrationErrors === null) { - hydrationErrors = [error]; - } else { - hydrationErrors.push(error); + return createChainableTypeChecker(validate); + } + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); } + return null; } - var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; - var NoTransition = null; - function requestCurrentTransition() { - return ReactCurrentBatchConfig.transition; + return createChainableTypeChecker(validate); + } + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + if (process.env.NODE_ENV !== 'production') { + if (arguments.length > 1) { + printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'); + } else { + printWarning('Invalid argument supplied to oneOf, expected an array.'); + } + } + return emptyFunctionThatReturnsNull; } - - function shallowEqual(objA, objB) { - if (objectIs(objA, objB)) { - return true; + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } } - if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { - return false; + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { + var type = getPreciseType(value); + if (type === 'symbol') { + return String(value); + } + return value; + }); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); + } + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); } - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - if (keysA.length !== keysB.length) { - return false; + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); } - - for (var i = 0; i < keysA.length; i++) { - var currentKey = keysA[i]; - if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) { - return false; + for (var key in propValue) { + if (_$$_REQUIRE(_dependencyMap[2], "./lib/has")(propValue, key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")); + if (error instanceof Error) { + return error; + } } } - return true; + return null; } - function describeFiber(fiber) { - var owner = fiber._debugOwner ? fiber._debugOwner.type : null; - var source = fiber._debugSource; - switch (fiber.tag) { - case HostComponent: - return describeBuiltInComponentFrame(fiber.type, source, owner); - case LazyComponent: - return describeBuiltInComponentFrame("Lazy", source, owner); - case SuspenseComponent: - return describeBuiltInComponentFrame("Suspense", source, owner); - case SuspenseListComponent: - return describeBuiltInComponentFrame("SuspenseList", source, owner); - case FunctionComponent: - case IndeterminateComponent: - case SimpleMemoComponent: - return describeFunctionComponentFrame(fiber.type, source, owner); - case ForwardRef: - return describeFunctionComponentFrame(fiber.type.render, source, owner); - case ClassComponent: - return describeClassComponentFrame(fiber.type, source, owner); - default: - return ""; - } + return createChainableTypeChecker(validate); + } + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunctionThatReturnsNull; } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - var node = workInProgress; - do { - info += describeFiber(node); - node = node.return; - } while (node); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'); + return emptyFunctionThatReturnsNull; } } - var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - var current = null; - var isRendering = false; - function getCurrentFiberOwnerNameInDevOrNull() { - { - if (current === null) { + function validate(props, propName, componentName, location, propFullName) { + var expectedTypes = []; + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + var checkerResult = checker(props, propName, componentName, location, propFullName, _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")); + if (checkerResult == null) { return null; } - var owner = current._debugOwner; - if (owner !== null && typeof owner !== "undefined") { - return getComponentNameFromFiber(owner); + if (checkerResult.data && _$$_REQUIRE(_dependencyMap[2], "./lib/has")(checkerResult.data, 'expectedType')) { + expectedTypes.push(checkerResult.data.expectedType); } } - return null; + var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : ''; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); } - function getCurrentFiberStackInDev() { - { - if (current === null) { - return ""; - } - - return getStackByFiberInDevAndProd(current); + return createChainableTypeChecker(validate); + } + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); } + return null; } - function resetCurrentFiber() { - { - ReactDebugCurrentFrame$1.getCurrentStack = null; - current = null; - isRendering = false; + return createChainableTypeChecker(validate); + } + function invalidValidatorError(componentName, location, propFullName, key, type) { + return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'); + } + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); } - } - function setCurrentFiber(fiber) { - { - ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; - current = fiber; - isRendering = false; + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")); + if (error) { + return error; + } } + return null; } - function getCurrentFiber() { - { - return current; + return createChainableTypeChecker(validate); + } + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); } - } - function setIsRendering(rendering) { - { - isRendering = rendering; + // We need to check all keys in case some are required but missing from props. + var allKeys = _$$_REQUIRE(_dependencyMap[3], "object-assign")({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (_$$_REQUIRE(_dependencyMap[2], "./lib/has")(shapeTypes, key) && typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + if (!checker) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")); + if (error) { + return error; + } } + return null; } - var ReactStrictModeWarnings = { - recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, - flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, - recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, - flushLegacyContextWarning: function flushLegacyContextWarning() {}, - discardPendingWarnings: function discardPendingWarnings() {} - }; - { - var findStrictRoot = function findStrictRoot(fiber) { - var maybeStrictRoot = null; - var node = fiber; - while (node !== null) { - if (node.mode & StrictLegacyMode) { - maybeStrictRoot = node; - } - node = node.return; + return createChainableTypeChecker(validate); + } + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); } - return maybeStrictRoot; - }; - var setToSortedString = function setToSortedString(set) { - var array = []; - set.forEach(function (value) { - array.push(value); - }); - return array.sort().join(", "); - }; - var pendingComponentWillMountWarnings = []; - var pendingUNSAFE_ComponentWillMountWarnings = []; - var pendingComponentWillReceivePropsWarnings = []; - var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; - var pendingComponentWillUpdateWarnings = []; - var pendingUNSAFE_ComponentWillUpdateWarnings = []; - - var didWarnAboutUnsafeLifecycles = new Set(); - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { - if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { - return; - } - if (typeof instance.componentWillMount === "function" && - instance.componentWillMount.__suppressDeprecationWarning !== true) { - pendingComponentWillMountWarnings.push(fiber); - } - if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === "function") { - pendingUNSAFE_ComponentWillMountWarnings.push(fiber); - } - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - pendingComponentWillReceivePropsWarnings.push(fiber); - } - if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === "function") { - pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); - } - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - pendingComponentWillUpdateWarnings.push(fiber); - } - if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === "function") { - pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); - } - }; - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { - var componentWillMountUniqueNames = new Set(); - if (pendingComponentWillMountWarnings.length > 0) { - pendingComponentWillMountWarnings.forEach(function (fiber) { - componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingComponentWillMountWarnings = []; - } - var UNSAFE_componentWillMountUniqueNames = new Set(); - if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { - pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) { - UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingUNSAFE_ComponentWillMountWarnings = []; - } - var componentWillReceivePropsUniqueNames = new Set(); - if (pendingComponentWillReceivePropsWarnings.length > 0) { - pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { - componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingComponentWillReceivePropsWarnings = []; - } - var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); - if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { - pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) { - UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingUNSAFE_ComponentWillReceivePropsWarnings = []; - } - var componentWillUpdateUniqueNames = new Set(); - if (pendingComponentWillUpdateWarnings.length > 0) { - pendingComponentWillUpdateWarnings.forEach(function (fiber) { - componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingComponentWillUpdateWarnings = []; + if (propValue === null || isValidElement(propValue)) { + return true; } - var UNSAFE_componentWillUpdateUniqueNames = new Set(); - if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { - pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) { - UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - pendingUNSAFE_ComponentWillUpdateWarnings = []; + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; } + return true; + default: + return false; + } + } + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - if (UNSAFE_componentWillMountUniqueNames.size > 0) { - var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); - error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames); - } - if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { - var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); - error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames); - } - if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { - var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); - error("Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2); - } - if (componentWillMountUniqueNames.size > 0) { - var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); - warn("componentWillMount has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames3); - } - if (componentWillReceivePropsUniqueNames.size > 0) { - var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); - warn("componentWillReceiveProps has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames4); - } - if (componentWillUpdateUniqueNames.size > 0) { - var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); - warn("componentWillUpdate has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames5); - } - }; - var pendingLegacyContextWarning = new Map(); + // falsy value can't be a Symbol + if (!propValue) { + return false; + } - var didWarnAboutLegacyContext = new Set(); - ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { - var strictRoot = findStrictRoot(fiber); - if (strictRoot === null) { - error("Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); - return; - } + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - if (didWarnAboutLegacyContext.has(fiber.type)) { - return; - } - var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); - if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { - if (warningsForRoot === undefined) { - warningsForRoot = []; - pendingLegacyContextWarning.set(strictRoot, warningsForRoot); - } - warningsForRoot.push(fiber); - } - }; - ReactStrictModeWarnings.flushLegacyContextWarning = function () { - pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { - if (fiberArray.length === 0) { - return; - } - var firstFiber = fiberArray[0]; - var uniqueNames = new Set(); - fiberArray.forEach(function (fiber) { - uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); - didWarnAboutLegacyContext.add(fiber.type); - }); - var sortedNames = setToSortedString(uniqueNames); - try { - setCurrentFiber(firstFiber); - error("Legacy context API has been detected within a strict-mode tree." + "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames); - } finally { - resetCurrentFiber(); - } - }); - }; - ReactStrictModeWarnings.discardPendingWarnings = function () { - pendingComponentWillMountWarnings = []; - pendingUNSAFE_ComponentWillMountWarnings = []; - pendingComponentWillReceivePropsWarnings = []; - pendingUNSAFE_ComponentWillReceivePropsWarnings = []; - pendingComponentWillUpdateWarnings = []; - pendingUNSAFE_ComponentWillUpdateWarnings = []; - pendingLegacyContextWarning = new Map(); - }; + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; } + return false; + } - function typeName(value) { - { - var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; - var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; - return type; - } + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - function willCoercionThrow(value) { - { - try { - testStringCoercion(value); - return false; - } catch (e) { - return true; - } + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; } } - function testStringCoercion(value) { - return "" + value; + return propType; + } + + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; } - function checkKeyStringCoercion(value) { - { - if (willCoercionThrow(value)) { - error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value)); - return testStringCoercion(value); - } - } + } + + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; } + return propValue.constructor.name; + } + ReactPropTypes.checkPropTypes = _$$_REQUIRE(_dependencyMap[4], "./checkPropTypes"); + ReactPropTypes.resetWarningCache = _$$_REQUIRE(_dependencyMap[4], "./checkPropTypes").resetWarningCache; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; + }; +},303,[304,300,305,306,307],"node_modules/prop-types/factoryWithTypeCheckers.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function checkPropStringCoercion(value, propName) { - { - if (willCoercionThrow(value)) { - error("The provided `%s` prop is an unsupported type %s." + " This value must be coerced to a string before before using it here.", propName, typeName(value)); - return testStringCoercion(value); - } - } + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + module.exports = ReactPropTypesSecret; +},304,[],"node_modules/prop-types/lib/ReactPropTypesSecret.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = Function.call.bind(Object.prototype.hasOwnProperty); +},305,[],"node_modules/prop-types/lib/has.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ + + 'use strict'; + + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + return Object(val); + } + function shouldUseNative() { + try { + if (!Object.assign) { + return false; } - function resolveDefaultProps(Component, baseProps) { - if (Component && Component.defaultProps) { - var props = assign({}, baseProps); - var defaultProps = Component.defaultProps; - for (var propName in defaultProps) { - if (props[propName] === undefined) { - props[propName] = defaultProps[propName]; - } - } - return props; - } - return baseProps; + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; } - var valueCursor = createCursor(null); - var rendererSigil; - { - rendererSigil = {}; + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; } - var currentlyRenderingFiber = null; - var lastContextDependency = null; - var lastFullyObservedContext = null; - var isDisallowedContextReadInDEV = false; - function resetContextDependencies() { - currentlyRenderingFiber = null; - lastContextDependency = null; - lastFullyObservedContext = null; - { - isDisallowedContextReadInDEV = false; - } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; } - function enterDisallowedContextReadInDEV() { - { - isDisallowedContextReadInDEV = true; - } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { + return false; } - function exitDisallowedContextReadInDEV() { - { - isDisallowedContextReadInDEV = false; + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; } } - function pushProvider(providerFiber, context, nextValue) { - { - push(valueCursor, context._currentValue2, providerFiber); - context._currentValue2 = nextValue; - { - if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) { - error("Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported."); - } - context._currentRenderer2 = rendererSigil; + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; } } } - function popProvider(context, providerFiber) { - var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); - { - { - context._currentValue2 = currentValue; - } - } + } + return to; + }; +},306,[],"node_modules/object-assign/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var printWarning = function printWarning() {}; + if (process.env.NODE_ENV !== 'production') { + var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret"); + var loggedTypeFailures = {}; + var has = _$$_REQUIRE(_dependencyMap[1], "./lib/has"); + printWarning = function printWarning(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); } - function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { - var node = parent; - while (node !== null) { - var alternate = node.alternate; - if (!isSubsetOfLanes(node.childLanes, renderLanes)) { - node.childLanes = mergeLanes(node.childLanes, renderLanes); - if (alternate !== null) { - alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {/**/} + }; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); + err.name = 'Invariant Violation'; + throw err; } - } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) { - alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; } - if (node === propagationRoot) { - break; + if (error && !(error instanceof Error)) { + printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).'); } - node = node.return; - } - { - if (node !== propagationRoot) { - error("Expected to find the propagation root when scheduling context work. " + "This error is likely caused by a bug in React. Please file an issue."); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + var stack = getStack ? getStack() : ''; + printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')); } } } - function propagateContextChange(workInProgress, context, renderLanes) { - { - propagateContextChange_eager(workInProgress, context, renderLanes); - } + } + } + + /** + * Resets warning cache when testing. + * + * @private + */ + checkPropTypes.resetWarningCache = function () { + if (process.env.NODE_ENV !== 'production') { + loggedTypeFailures = {}; + } + }; + module.exports = checkPropTypes; +},307,[304,305],"node_modules/prop-types/checkPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + function emptyFunction() {} + function emptyFunctionWithReset() {} + emptyFunctionWithReset.resetWarningCache = emptyFunction; + module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === _$$_REQUIRE(_dependencyMap[0], "./lib/ReactPropTypesSecret")) { + // It is still safe when called from React. + return; } - function propagateContextChange_eager(workInProgress, context, renderLanes) { - var fiber = workInProgress.child; - if (fiber !== null) { - fiber.return = workInProgress; - } - while (fiber !== null) { - var nextFiber = void 0; + var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); + err.name = 'Invariant Violation'; + throw err; + } + ; + shim.isRequired = shim; + function getShim() { + return shim; + } + ; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; + }; +},308,[304],"node_modules/prop-types/factoryWithThrowingShims.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var list = fiber.dependencies; - if (list !== null) { - nextFiber = fiber.child; - var dependency = list.firstContext; - while (dependency !== null) { - if (dependency.context === context) { - if (fiber.tag === ClassComponent) { - var lane = pickArbitraryLane(renderLanes); - var update = createUpdate(NoTimestamp, lane); - update.tag = ForceUpdate; + 'use strict'; - var updateQueue = fiber.updateQueue; - if (updateQueue === null) ;else { - var sharedQueue = updateQueue.shared; - var pending = sharedQueue.pending; - if (pending === null) { - update.next = update; - } else { - update.next = pending.next; - pending.next = update; - } - sharedQueue.pending = update; - } - } - fiber.lanes = mergeLanes(fiber.lanes, renderLanes); - var alternate = fiber.alternate; - if (alternate !== null) { - alternate.lanes = mergeLanes(alternate.lanes, renderLanes); - } - scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); + /** + * @see facebook/react-native/Libraries/Image/ImageProps.js + */ + var DeprecatedImagePropType = Object.assign({}, _$$_REQUIRE(_dependencyMap[0], "./DeprecatedViewPropTypes"), { + alt: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + blurRadius: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + capInsets: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedEdgeInsetsPropType"), + crossOrigin: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['anonymous', 'use-credentials']), + defaultSource: _$$_REQUIRE(_dependencyMap[3], "./DeprecatedImageSourcePropType"), + fadeDuration: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + height: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + internal_analyticTag: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + loadingIndicatorSource: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[1], "prop-types").shape({ + uri: _$$_REQUIRE(_dependencyMap[1], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[1], "prop-types").number]), + onError: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onLoad: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onLoadEnd: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onLoadStart: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onPartialLoad: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onProgress: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + progressiveRenderingEnabled: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + referrerPolicy: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url']), + resizeMethod: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['auto', 'resize', 'scale']), + resizeMode: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']), + source: _$$_REQUIRE(_dependencyMap[3], "./DeprecatedImageSourcePropType"), + src: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + srcSet: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + style: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedStyleSheetPropType")(_$$_REQUIRE(_dependencyMap[5], "./DeprecatedImageStylePropTypes")), + testID: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + tintColor: _$$_REQUIRE(_dependencyMap[6], "./DeprecatedColorPropType"), + width: _$$_REQUIRE(_dependencyMap[1], "prop-types").number + }); + module.exports = DeprecatedImagePropType; +},309,[310,299,298,318,312,319,296],"node_modules/deprecated-react-native-prop-types/DeprecatedImagePropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - list.lanes = mergeLanes(list.lanes, renderLanes); + 'use strict'; - break; - } - dependency = dependency.next; - } - } else if (fiber.tag === ContextProvider) { - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - } else if (fiber.tag === DehydratedFragment) { - var parentSuspense = fiber.return; - if (parentSuspense === null) { - throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); - } - parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes); - var _alternate = parentSuspense.alternate; - if (_alternate !== null) { - _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes); - } + var MouseEventPropTypes = { + onMouseEnter: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onMouseLeave: _$$_REQUIRE(_dependencyMap[0], "prop-types").func + }; - scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress); - nextFiber = fiber.sibling; - } else { - nextFiber = fiber.child; - } - if (nextFiber !== null) { - nextFiber.return = fiber; - } else { - nextFiber = fiber; - while (nextFiber !== null) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - var sibling = nextFiber.sibling; - if (sibling !== null) { - sibling.return = nextFiber.return; - nextFiber = sibling; - break; - } + // Experimental/Work in Progress Pointer Event Callbacks (not yet ready for use) + var PointerEventPropTypes = { + onPointerEnter: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerEnterCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerLeave: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerLeaveCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerMove: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerMoveCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerCancel: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerCancelCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerDown: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerDownCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerUp: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerUpCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerOver: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerOverCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerOut: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPointerOutCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func + }; + var FocusEventPropTypes = { + onBlur: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onBlurCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onFocus: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onFocusCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func + }; + var TouchEventPropTypes = { + onTouchCancel: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchCancelCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchEnd: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchEndCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchMove: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchMoveCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchStart: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTouchStartCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func + }; + var GestureResponderEventPropTypes = { + onMoveShouldSetResponder: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onMoveShouldSetResponderCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderEnd: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderGrant: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderMove: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderReject: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderRelease: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderStart: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderTerminate: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderTerminationRequest: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onStartShouldSetResponder: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onStartShouldSetResponderCapture: _$$_REQUIRE(_dependencyMap[0], "prop-types").func + }; - nextFiber = nextFiber.return; - } - } - fiber = nextFiber; - } - } - function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber = workInProgress; - lastContextDependency = null; - lastFullyObservedContext = null; - var dependencies = workInProgress.dependencies; - if (dependencies !== null) { - { - var firstContext = dependencies.firstContext; - if (firstContext !== null) { - if (includesSomeLane(dependencies.lanes, renderLanes)) { - markWorkInProgressReceivedUpdate(); - } + /** + * @see facebook/react-native/Libraries/Components/View/ViewPropTypes.js + */ + var DeprecatedViewPropTypes = Object.assign({}, MouseEventPropTypes, PointerEventPropTypes, FocusEventPropTypes, TouchEventPropTypes, GestureResponderEventPropTypes, { + 'aria-busy': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-checked': _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").bool, _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['mixed'])]), + 'aria-disabled': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-expanded': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-hidden': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-label': _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + 'aria-labelledby': _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + 'aria-live': _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['polite', 'assertive', 'off']), + 'aria-modal': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-selected': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-valuemax': _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + 'aria-valuemin': _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + 'aria-valuenow': _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + 'aria-valuetext': _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityActions: _$$_REQUIRE(_dependencyMap[0], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityActionInfoPropType), + accessibilityElementsHidden: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + accessibilityHint: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityIgnoresInvertColors: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + accessibilityLabel: _$$_REQUIRE(_dependencyMap[0], "prop-types").node, + accessibilityLabelledBy: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").string, _$$_REQUIRE(_dependencyMap[0], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[0], "prop-types").string)]), + accessibilityLanguage: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityLiveRegion: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['assertive', 'none', 'polite']), + accessibilityRole: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityRolePropType, + accessibilityState: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityStatePropType, + accessibilityValue: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityValuePropType, + accessibilityViewIsModal: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + accessible: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + collapsable: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + focusable: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + hitSlop: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[2], "./DeprecatedEdgeInsetsPropType"), _$$_REQUIRE(_dependencyMap[0], "prop-types").number]), + importantForAccessibility: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['auto', 'no', 'no-hide-descendants', 'yes']), + nativeBackgroundAndroid: _$$_REQUIRE(_dependencyMap[0], "prop-types").object, + nativeForegroundAndroid: _$$_REQUIRE(_dependencyMap[0], "prop-types").object, + nativeID: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + onAccessibilityAction: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onAccessibilityEscape: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onAccessibilityTap: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onClick: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onLayout: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onMagicTap: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + pointerEvents: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['auto', 'box-none', 'box-only', 'none']), + removeClippedSubviews: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + renderToHardwareTextureAndroid: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + role: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").RolePropType, + shouldRasterizeIOS: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + style: _$$_REQUIRE(_dependencyMap[3], "./DeprecatedStyleSheetPropType")(_$$_REQUIRE(_dependencyMap[4], "./DeprecatedViewStylePropTypes")), + tabIndex: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf([0, -1]), + testID: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }); + module.exports = DeprecatedViewPropTypes; +},310,[299,311,298,312,314],"node_modules/deprecated-react-native-prop-types/DeprecatedViewPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - dependencies.firstContext = null; - } - } - } - } - function _readContext(context) { - { - if (isDisallowedContextReadInDEV) { - error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); - } - } - var value = context._currentValue2; - if (lastFullyObservedContext === context) ;else { - var contextItem = { - context: context, - memoizedValue: value, - next: null - }; - if (lastContextDependency === null) { - if (currentlyRenderingFiber === null) { - throw new Error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); - } + 'use strict'; - lastContextDependency = contextItem; - currentlyRenderingFiber.dependencies = { - lanes: NoLanes, - firstContext: contextItem - }; - } else { - lastContextDependency = lastContextDependency.next = contextItem; - } - } - return value; - } + /** + * @see facebook/react-native/Libraries/Components/View/ViewAccessibility.js + */ + var DeprecatedViewAccessibility = { + AccessibilityRolePropType: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['adjustable', 'alert', 'button', 'checkbox', 'combobox', 'drawerlayout', 'dropdownlist', 'grid', 'header', 'horizontalscrollview', 'iconmenu', 'image', 'imagebutton', 'keyboardkey', 'link', 'list', 'menu', 'menubar', 'menuitem', 'none', 'pager', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'scrollview', 'search', 'slidingdrawer', 'spinbutton', 'summary', 'switch', 'tab', 'tabbar', 'tablist', 'text', 'timer', 'togglebutton', 'toolbar', 'viewgroup', 'webview']), + AccessibilityStatePropType: _$$_REQUIRE(_dependencyMap[0], "prop-types").object, + AccessibilityActionInfoPropType: _$$_REQUIRE(_dependencyMap[0], "prop-types").object, + AccessibilityValuePropType: _$$_REQUIRE(_dependencyMap[0], "prop-types").object, + RolePropType: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['alert', 'alertdialog', 'application', 'article', 'banner', 'button', 'cell', 'checkbox', 'columnheader', 'combobox', 'complementary', 'contentinfo', 'definition', 'dialog', 'directory', 'document', 'feed', 'figure', 'form', 'grid', 'group', 'heading', 'img', 'link', 'list', 'listitem', 'log', 'main', 'marquee', 'math', 'menu', 'menubar', 'menuitem', 'meter', 'navigation', 'none', 'note', 'option', 'presentation', 'progressbar', 'radio', 'radiogroup', 'region', 'row', 'rowgroup', 'rowheader', 'scrollbar', 'searchbox', 'separator', 'slider', 'spinbutton', 'status', 'summary', 'switch', 'tab', 'table', 'tablist', 'tabpanel', 'term', 'timer', 'toolbar', 'tooltip', 'tree', 'treegrid', 'treeitem']) + }; + module.exports = DeprecatedViewAccessibility; +},311,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedViewAccessibility.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var interleavedQueues = null; - function pushInterleavedQueue(queue) { - if (interleavedQueues === null) { - interleavedQueues = [queue]; - } else { - interleavedQueues.push(queue); - } + 'use strict'; + + function DeprecatedStyleSheetPropType(shape) { + var shapePropType = _$$_REQUIRE(_dependencyMap[0], "./deprecatedCreateStrictShapeTypeChecker")(shape); + return function (props, propName, componentName, location) { + var newProps = props; + if (props[propName]) { + // Just make a dummy prop object with only the flattened style + newProps = {}; + newProps[propName] = flattenStyle(props[propName]); } - function hasInterleavedUpdates() { - return interleavedQueues !== null; + for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) { + rest[_key - 4] = arguments[_key]; } - function enqueueInterleavedUpdates() { - if (interleavedQueues !== null) { - for (var i = 0; i < interleavedQueues.length; i++) { - var queue = interleavedQueues[i]; - var lastInterleavedUpdate = queue.interleaved; - if (lastInterleavedUpdate !== null) { - queue.interleaved = null; - var firstInterleavedUpdate = lastInterleavedUpdate.next; - var lastPendingUpdate = queue.pending; - if (lastPendingUpdate !== null) { - var firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = firstInterleavedUpdate; - lastInterleavedUpdate.next = firstPendingUpdate; - } - queue.pending = lastInterleavedUpdate; - } - } - interleavedQueues = null; + return shapePropType.apply(void 0, [newProps, propName, componentName, location].concat(rest)); + }; + } + function flattenStyle(style) { + if (style === null || typeof style !== 'object') { + return undefined; + } + if (!Array.isArray(style)) { + return style; + } + var result = {}; + for (var i = 0, styleLength = style.length; i < styleLength; ++i) { + var computedStyle = flattenStyle(style[i]); + if (computedStyle) { + for (var key in computedStyle) { + result[key] = computedStyle[key]; } } - var UpdateState = 0; - var ReplaceState = 1; - var ForceUpdate = 2; - var CaptureUpdate = 3; + } + return result; + } + module.exports = DeprecatedStyleSheetPropType; +},312,[313],"node_modules/deprecated-react-native-prop-types/DeprecatedStyleSheetPropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var hasForceUpdate = false; - var didWarnUpdateInsideUpdate; - var currentlyProcessingQueue; - { - didWarnUpdateInsideUpdate = false; - currentlyProcessingQueue = null; - } - function initializeUpdateQueue(fiber) { - var queue = { - baseState: fiber.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { - pending: null, - interleaved: null, - lanes: NoLanes - }, - effects: null - }; - fiber.updateQueue = queue; - } - function cloneUpdateQueue(current, workInProgress) { - var queue = workInProgress.updateQueue; - var currentQueue = current.updateQueue; - if (queue === currentQueue) { - var clone = { - baseState: currentQueue.baseState, - firstBaseUpdate: currentQueue.firstBaseUpdate, - lastBaseUpdate: currentQueue.lastBaseUpdate, - shared: currentQueue.shared, - effects: currentQueue.effects - }; - workInProgress.updateQueue = clone; + 'use strict'; + + function deprecatedCreateStrictShapeTypeChecker(shapeTypes) { + function checkType(isRequired, props, propName, componentName, location) { + if (!props[propName]) { + if (isRequired) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(false, `Required object \`${propName}\` was not specified in ` + `\`${componentName}\`.`); } + return; } - function createUpdate(eventTime, lane) { - var update = { - eventTime: eventTime, - lane: lane, - tag: UpdateState, - payload: null, - callback: null, - next: null - }; - return update; + var propValue = props[propName]; + var propType = typeof propValue; + var locationName = location || '(unknown)'; + if (propType !== 'object') { + _$$_REQUIRE(_dependencyMap[0], "invariant")(false, `Invalid ${locationName} \`${propName}\` of type \`${propType}\` ` + `supplied to \`${componentName}\`, expected \`object\`.`); } - function enqueueUpdate(fiber, update, lane) { - var updateQueue = fiber.updateQueue; - if (updateQueue === null) { - return; - } - var sharedQueue = updateQueue.shared; - if (isInterleavedUpdate(fiber)) { - var interleaved = sharedQueue.interleaved; - if (interleaved === null) { - update.next = update; - - pushInterleavedQueue(sharedQueue); - } else { - update.next = interleaved.next; - interleaved.next = update; - } - sharedQueue.interleaved = update; - } else { - var pending = sharedQueue.pending; - if (pending === null) { - update.next = update; - } else { - update.next = pending.next; - pending.next = update; - } - sharedQueue.pending = update; + // We need to check all keys in case some are required but missing from + // props. + var allKeys = Object.assign({}, props[propName], shapeTypes); + for (var _len = arguments.length, rest = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + rest[_key - 5] = arguments[_key]; + } + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(false, `Invalid props.${propName} key \`${key}\` supplied to \`${componentName}\`.` + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); } - { - if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { - error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); - didWarnUpdateInsideUpdate = true; - } + var error = checker.apply(void 0, [propValue, key, componentName, location].concat(rest)); + if (error) { + _$$_REQUIRE(_dependencyMap[0], "invariant")(false, error.message + '\nBad object: ' + JSON.stringify(props[propName], null, ' ')); } } - function entangleTransitions(root, fiber, lane) { - var updateQueue = fiber.updateQueue; - if (updateQueue === null) { - return; - } - var sharedQueue = updateQueue.shared; - if (isTransitionLane(lane)) { - var queueLanes = sharedQueue.lanes; - - queueLanes = intersectLanes(queueLanes, root.pendingLanes); + } + function chainedCheckType(props, propName, componentName, location) { + for (var _len2 = arguments.length, rest = new Array(_len2 > 4 ? _len2 - 4 : 0), _key2 = 4; _key2 < _len2; _key2++) { + rest[_key2 - 4] = arguments[_key2]; + } + return checkType.apply(void 0, [false, props, propName, componentName, location].concat(rest)); + } + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } + module.exports = deprecatedCreateStrictShapeTypeChecker; +},313,[20],"node_modules/deprecated-react-native-prop-types/deprecatedCreateStrictShapeTypeChecker.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var newQueueLanes = mergeLanes(queueLanes, lane); - sharedQueue.lanes = newQueueLanes; + 'use strict'; - markRootEntangled(root, newQueueLanes); - } - } - function enqueueCapturedUpdate(workInProgress, capturedUpdate) { - var queue = workInProgress.updateQueue; + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var DeprecatedViewStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0], "./DeprecatedLayoutPropTypes"), _$$_REQUIRE(_dependencyMap[1], "./DeprecatedShadowPropTypesIOS"), _$$_REQUIRE(_dependencyMap[2], "./DeprecatedTransformPropTypes"), { + backfaceVisibility: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['hidden', 'visible']), + backgroundColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderBottomColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderBottomEndRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderBottomLeftRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderBottomStartRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderBottomWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderCurve: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['circular', 'continuous']), + borderEndColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderEndEndRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderEndStartRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderLeftColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderLeftWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderRightColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderRightWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderStartColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderStartEndRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderStartStartRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderStyle: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['dashed', 'dotted', 'solid']), + borderTopColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderTopEndRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopLeftRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopRightRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopStartRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + elevation: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + opacity: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + pointerEvents: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['auto', 'box-none', 'box-only', 'none']) + }); + module.exports = DeprecatedViewStylePropTypes; +},314,[315,316,317,299,296],"node_modules/deprecated-react-native-prop-types/DeprecatedViewStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var current = workInProgress.alternate; - if (current !== null) { - var currentQueue = current.updateQueue; - if (queue === currentQueue) { - var newFirst = null; - var newLast = null; - var firstBaseUpdate = queue.firstBaseUpdate; - if (firstBaseUpdate !== null) { - var update = firstBaseUpdate; - do { - var clone = { - eventTime: update.eventTime, - lane: update.lane, - tag: update.tag, - payload: update.payload, - callback: update.callback, - next: null - }; - if (newLast === null) { - newFirst = newLast = clone; - } else { - newLast.next = clone; - newLast = clone; - } - update = update.next; - } while (update !== null); + 'use strict'; - if (newLast === null) { - newFirst = newLast = capturedUpdate; - } else { - newLast.next = capturedUpdate; - newLast = capturedUpdate; - } - } else { - newFirst = newLast = capturedUpdate; - } - queue = { - baseState: currentQueue.baseState, - firstBaseUpdate: newFirst, - lastBaseUpdate: newLast, - shared: currentQueue.shared, - effects: currentQueue.effects - }; - workInProgress.updateQueue = queue; - return; - } - } + var DimensionValuePropType = _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").number, _$$_REQUIRE(_dependencyMap[0], "prop-types").string]); - var lastBaseUpdate = queue.lastBaseUpdate; - if (lastBaseUpdate === null) { - queue.firstBaseUpdate = capturedUpdate; - } else { - lastBaseUpdate.next = capturedUpdate; - } - queue.lastBaseUpdate = capturedUpdate; - } - function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case ReplaceState: - { - var payload = update.payload; - if (typeof payload === "function") { - { - enterDisallowedContextReadInDEV(); - } - var nextState = payload.call(instance, prevState, nextProps); - { - exitDisallowedContextReadInDEV(); - } - return nextState; - } + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var DeprecatedLayoutPropTypes = { + alignContent: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['center', 'flex-end', 'flex-start', 'space-around', 'space-between', 'stretch']), + alignItems: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['baseline', 'center', 'flex-end', 'flex-start', 'stretch']), + alignSelf: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['auto', 'baseline', 'center', 'flex-end', 'flex-start', 'stretch']), + aspectRatio: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").number, _$$_REQUIRE(_dependencyMap[0], "prop-types").string]), + borderBottomWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderEndWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderLeftWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderRightWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderStartWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderTopWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + borderWidth: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + bottom: DimensionValuePropType, + columnGap: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + direction: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['inherit', 'ltr', 'rtl']), + display: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['flex', 'none']), + end: DimensionValuePropType, + flex: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + flexBasis: DimensionValuePropType, + flexDirection: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['column', 'column-reverse', 'row', 'row-reverse']), + flexGrow: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + flexShrink: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + flexWrap: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['nowrap', 'wrap', 'wrap-reverse']), + gap: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + height: DimensionValuePropType, + inset: DimensionValuePropType, + insetBlock: DimensionValuePropType, + insetBlockEnd: DimensionValuePropType, + insetBlockStart: DimensionValuePropType, + insetInline: DimensionValuePropType, + insetInlineEnd: DimensionValuePropType, + insetInlineStart: DimensionValuePropType, + justifyContent: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['center', 'flex-end', 'flex-start', 'space-around', 'space-between', 'space-evenly']), + left: DimensionValuePropType, + margin: DimensionValuePropType, + marginBlock: DimensionValuePropType, + marginBlockEnd: DimensionValuePropType, + marginBlockStart: DimensionValuePropType, + marginBottom: DimensionValuePropType, + marginEnd: DimensionValuePropType, + marginHorizontal: DimensionValuePropType, + marginInline: DimensionValuePropType, + marginInlineEnd: DimensionValuePropType, + marginInlineStart: DimensionValuePropType, + marginLeft: DimensionValuePropType, + marginRight: DimensionValuePropType, + marginStart: DimensionValuePropType, + marginTop: DimensionValuePropType, + marginVertical: DimensionValuePropType, + maxHeight: DimensionValuePropType, + maxWidth: DimensionValuePropType, + minHeight: DimensionValuePropType, + minWidth: DimensionValuePropType, + overflow: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['hidden', 'scroll', 'visible']), + padding: DimensionValuePropType, + paddingBlock: DimensionValuePropType, + paddingBlockEnd: DimensionValuePropType, + paddingBlockStart: DimensionValuePropType, + paddingBottom: DimensionValuePropType, + paddingEnd: DimensionValuePropType, + paddingHorizontal: DimensionValuePropType, + paddingInline: DimensionValuePropType, + paddingInlineEnd: DimensionValuePropType, + paddingInlineStart: DimensionValuePropType, + paddingLeft: DimensionValuePropType, + paddingRight: DimensionValuePropType, + paddingStart: DimensionValuePropType, + paddingTop: DimensionValuePropType, + paddingVertical: DimensionValuePropType, + position: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['absolute', 'relative']), + right: DimensionValuePropType, + rowGap: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + start: DimensionValuePropType, + top: DimensionValuePropType, + width: DimensionValuePropType, + zIndex: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }; + module.exports = DeprecatedLayoutPropTypes; +},315,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedLayoutPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - return payload; - } - case CaptureUpdate: - { - workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture; - } + 'use strict'; - case UpdateState: - { - var _payload = update.payload; - var partialState; - if (typeof _payload === "function") { - { - enterDisallowedContextReadInDEV(); - } - partialState = _payload.call(instance, prevState, nextProps); - { - exitDisallowedContextReadInDEV(); - } - } else { - partialState = _payload; - } - if (partialState === null || partialState === undefined) { - return prevState; - } + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var DeprecatedShadowPropTypesIOS = { + shadowColor: _$$_REQUIRE(_dependencyMap[0], "./DeprecatedColorPropType"), + shadowOffset: _$$_REQUIRE(_dependencyMap[1], "prop-types").shape({ + height: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + width: _$$_REQUIRE(_dependencyMap[1], "prop-types").number + }), + shadowOpacity: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + shadowRadius: _$$_REQUIRE(_dependencyMap[1], "prop-types").number + }; + module.exports = DeprecatedShadowPropTypesIOS; +},316,[296,299],"node_modules/deprecated-react-native-prop-types/DeprecatedShadowPropTypesIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - return assign({}, prevState, partialState); - } - case ForceUpdate: - { - hasForceUpdate = true; - return prevState; - } - } - return prevState; - } - function processUpdateQueue(workInProgress, props, instance, renderLanes) { - var queue = workInProgress.updateQueue; - hasForceUpdate = false; - { - currentlyProcessingQueue = queue.shared; - } - var firstBaseUpdate = queue.firstBaseUpdate; - var lastBaseUpdate = queue.lastBaseUpdate; + 'use strict'; - var pendingQueue = queue.shared.pending; - if (pendingQueue !== null) { - queue.shared.pending = null; + /** + * @see facebook/react-native/Libraries/StyleSheet/private/_TransformStyle.js + */ + var DeprecatedTransformPropTypes = { + transform: _$$_REQUIRE(_dependencyMap[0], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + perspective: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + rotate: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + rotateX: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + rotateY: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + rotateZ: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + scale: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + scaleX: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + scaleY: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + skewX: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + skewY: _$$_REQUIRE(_dependencyMap[0], "prop-types").string + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + translateX: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }), _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + translateY: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + })])) + }; + module.exports = DeprecatedTransformPropTypes; +},317,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedTransformPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var lastPendingUpdate = pendingQueue; - var firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = null; + 'use strict'; - if (lastBaseUpdate === null) { - firstBaseUpdate = firstPendingUpdate; - } else { - lastBaseUpdate.next = firstPendingUpdate; - } - lastBaseUpdate = lastPendingUpdate; + /** + * @see facebook/react-native/Libraries/Image/ImageSource.js + */ + var ImageURISourcePropType = _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + body: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + bundle: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + cache: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['default', 'force-cache', 'only-if-cached', 'reload']), + headers: _$$_REQUIRE(_dependencyMap[0], "prop-types").objectOf(_$$_REQUIRE(_dependencyMap[0], "prop-types").string), + height: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + method: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + scale: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + uri: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + width: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }); + var ImageSourcePropType = _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([ImageURISourcePropType, _$$_REQUIRE(_dependencyMap[0], "prop-types").number, _$$_REQUIRE(_dependencyMap[0], "prop-types").arrayOf(ImageURISourcePropType)]); + module.exports = ImageSourcePropType; +},318,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedImageSourcePropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var current = workInProgress.alternate; - if (current !== null) { - var currentQueue = current.updateQueue; - var currentLastBaseUpdate = currentQueue.lastBaseUpdate; - if (currentLastBaseUpdate !== lastBaseUpdate) { - if (currentLastBaseUpdate === null) { - currentQueue.firstBaseUpdate = firstPendingUpdate; - } else { - currentLastBaseUpdate.next = firstPendingUpdate; - } - currentQueue.lastBaseUpdate = lastPendingUpdate; - } - } - } + 'use strict'; - if (firstBaseUpdate !== null) { - var newState = queue.baseState; + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var DeprecatedImageStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0], "./DeprecatedLayoutPropTypes"), _$$_REQUIRE(_dependencyMap[1], "./DeprecatedShadowPropTypesIOS"), _$$_REQUIRE(_dependencyMap[2], "./DeprecatedTransformPropTypes"), { + backfaceVisibility: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['hidden', 'visible']), + backgroundColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderBottomLeftRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + borderRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopLeftRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderTopRightRadius: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + borderWidth: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + objectFit: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['contain', 'cover', 'fill', 'scale-down']), + opacity: _$$_REQUIRE(_dependencyMap[3], "prop-types").number, + overflow: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['hidden', 'visible']), + overlayColor: _$$_REQUIRE(_dependencyMap[3], "prop-types").string, + tintColor: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedColorPropType"), + resizeMode: _$$_REQUIRE(_dependencyMap[3], "prop-types").oneOf(['center', 'contain', 'cover', 'repeat', 'stretch']) + }); + module.exports = DeprecatedImageStylePropTypes; +},319,[315,316,317,299,296],"node_modules/deprecated-react-native-prop-types/DeprecatedImageStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - var newLanes = NoLanes; - var newBaseState = null; - var newFirstBaseUpdate = null; - var newLastBaseUpdate = null; - var update = firstBaseUpdate; - do { - var updateLane = update.lane; - var updateEventTime = update.eventTime; - if (!isSubsetOfLanes(renderLanes, updateLane)) { - var clone = { - eventTime: updateEventTime, - lane: updateLane, - tag: update.tag, - payload: update.payload, - callback: update.callback, - next: null - }; - if (newLastBaseUpdate === null) { - newFirstBaseUpdate = newLastBaseUpdate = clone; - newBaseState = newState; - } else { - newLastBaseUpdate = newLastBaseUpdate.next = clone; - } + 'use strict'; - newLanes = mergeLanes(newLanes, updateLane); - } else { - if (newLastBaseUpdate !== null) { - var _clone = { - eventTime: updateEventTime, - lane: NoLane, - tag: update.tag, - payload: update.payload, - callback: update.callback, - next: null - }; - newLastBaseUpdate = newLastBaseUpdate.next = _clone; - } + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var PointPropType = _$$_REQUIRE(_dependencyMap[0], "prop-types").shape({ + x: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + y: _$$_REQUIRE(_dependencyMap[0], "prop-types").number + }); + module.exports = PointPropType; +},320,[299],"node_modules/deprecated-react-native-prop-types/DeprecatedPointPropType.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); - var callback = update.callback; - if (callback !== null && - update.lane !== NoLane) { - workInProgress.flags |= Callback; - var effects = queue.effects; - if (effects === null) { - queue.effects = [update]; - } else { - effects.push(update); - } - } - } - update = update.next; - if (update === null) { - pendingQueue = queue.shared.pending; - if (pendingQueue === null) { - break; - } else { - var _lastPendingUpdate = pendingQueue; + 'use strict'; - var _firstPendingUpdate = _lastPendingUpdate.next; - _lastPendingUpdate.next = null; - update = _firstPendingUpdate; - queue.lastBaseUpdate = _lastPendingUpdate; - queue.shared.pending = null; - } - } - } while (true); - if (newLastBaseUpdate === null) { - newBaseState = newState; - } - queue.baseState = newBaseState; - queue.firstBaseUpdate = newFirstBaseUpdate; - queue.lastBaseUpdate = newLastBaseUpdate; + var DataDetectorTypes = ['address', 'all', 'calendarEvent', 'link', 'none', 'phoneNumber']; - var lastInterleaved = queue.shared.interleaved; - if (lastInterleaved !== null) { - var interleaved = lastInterleaved; - do { - newLanes = mergeLanes(newLanes, interleaved.lane); - interleaved = interleaved.next; - } while (interleaved !== lastInterleaved); - } else if (firstBaseUpdate === null) { - queue.shared.lanes = NoLanes; - } + /** + * @see facebook/react-native/Libraries/TextInput/TextInput.js + */ + var DeprecatedTextInputPropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0], "./DeprecatedViewPropTypes"), { + allowFontScaling: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + autoCapitalize: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['none', 'sentences', 'words', 'characters']), + autoComplete: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['additional-name', 'address-line1', 'address-line2', 'bday', 'bday-day', 'bday-month', 'bday-year', 'birthdate-day', 'birthdate-full', 'birthdate-month', 'birthdate-year', 'cc-csc', 'cc-exp', 'cc-exp-day', 'cc-exp-month', 'cc-exp-year', 'cc-number', 'country', 'current-password', 'email', 'family-name', 'gender', 'given-name', 'honorific-prefix', 'honorific-suffix', 'name', 'name-family', 'name-given', 'name-middle', 'name-middle-initial', 'name-prefix', 'name-suffix', 'new-password', 'nickname', 'off', 'one-time-code', 'organization', 'organization-title', 'password', 'password-new', 'postal-address', 'postal-address-country', 'postal-address-extended', 'postal-address-extended-postal-code', 'postal-address-locality', 'postal-address-region', 'postal-code', 'sex', 'sms-otp', 'street-address', 'tel', 'tel-country-code', 'tel-device', 'tel-national', 'url', 'username', 'username-new']), + autoCorrect: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + autoFocus: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + blurOnSubmit: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + caretHidden: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + clearButtonMode: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['always', 'never', 'unless-editing', 'while-editing']), + clearTextOnFocus: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + cursorColor: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedColorPropType"), + contextMenuHidden: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + dataDetectorTypes: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(DataDetectorTypes), _$$_REQUIRE(_dependencyMap[1], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(DataDetectorTypes))]), + defaultValue: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + disableFullscreenUI: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + editable: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + enablesReturnKeyAutomatically: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + enterKeyHint: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['done', 'enter', 'go', 'next', 'previous', 'search', 'send']), + inlineImageLeft: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + inlineImagePadding: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + inputAccessoryViewID: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + inputMode: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', 'url']), + keyboardAppearance: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['default', 'dark', 'light']), + keyboardType: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['ascii-capable', 'ascii-capable-number-pad', 'decimal-pad', 'default', 'email-address', 'name-phone-pad', 'number-pad', 'numbers-and-punctuation', 'numeric', 'phone-pad', 'twitter', 'url', 'visible-password', 'web-search']), + lineBreakStrategyIOS: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['hangul-word', 'none', 'push-out', 'standard']), + maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + maxLength: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + multiline: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + numberOfLines: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + onBlur: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onChange: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onChangeText: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onContentSizeChange: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onEndEditing: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onFocus: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onKeyPress: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onLayout: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onScroll: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onSelectionChange: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onSubmitEditing: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + onTextInput: _$$_REQUIRE(_dependencyMap[1], "prop-types").func, + placeholder: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + placeholderTextColor: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedColorPropType"), + readOnly: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + rejectResponderTermination: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + returnKeyLabel: _$$_REQUIRE(_dependencyMap[1], "prop-types").string, + returnKeyType: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['default', 'done', 'emergency-call', 'go', 'google', 'join', 'next', 'none', 'previous', 'route', 'search', 'send', 'yahoo']), + rows: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + scrollEnabled: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + secureTextEntry: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + selection: _$$_REQUIRE(_dependencyMap[1], "prop-types").shape({ + end: _$$_REQUIRE(_dependencyMap[1], "prop-types").number, + start: _$$_REQUIRE(_dependencyMap[1], "prop-types").number.isRequired + }), + selectionColor: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedColorPropType"), + selectTextOnFocus: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + showSoftInputOnFocus: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + spellCheck: _$$_REQUIRE(_dependencyMap[1], "prop-types").bool, + style: _$$_REQUIRE(_dependencyMap[3], "./DeprecatedTextPropTypes").style, + submitBehavior: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['blurAndSubmit', 'newline', 'submit']), + textBreakStrategy: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['balanced', 'highQuality', 'simple']), + textContentType: _$$_REQUIRE(_dependencyMap[1], "prop-types").oneOf(['addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'newPassword', 'nickname', 'none', 'oneTimeCode', 'organizationName', 'password', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'URL', 'username']), + underlineColorAndroid: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedColorPropType"), + value: _$$_REQUIRE(_dependencyMap[1], "prop-types").string + }); + module.exports = DeprecatedTextInputPropTypes; +},321,[310,299,296,322],"node_modules/deprecated-react-native-prop-types/DeprecatedTextInputPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - markSkippedUpdateLanes(newLanes); - workInProgress.lanes = newLanes; - workInProgress.memoizedState = newState; - } - { - currentlyProcessingQueue = null; - } - } - function callCallback(callback, context) { - if (typeof callback !== "function") { - throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + callback)); - } - callback.call(context); - } - function resetHasForceUpdateBeforeProcessing() { - hasForceUpdate = false; - } - function checkHasForceUpdateAfterProcessing() { - return hasForceUpdate; - } - function commitUpdateQueue(finishedWork, finishedQueue, instance) { - var effects = finishedQueue.effects; - finishedQueue.effects = null; - if (effects !== null) { - for (var i = 0; i < effects.length; i++) { - var effect = effects[i]; - var callback = effect.callback; - if (callback !== null) { - effect.callback = null; - callCallback(callback, instance); - } - } - } - } - var fakeInternalInstance = {}; + 'use strict'; - var emptyRefsObject = new React.Component().refs; - var didWarnAboutStateAssignmentForComponent; - var didWarnAboutUninitializedState; - var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; - var didWarnAboutLegacyLifecyclesAndDerivedState; - var didWarnAboutUndefinedDerivedState; - var warnOnUndefinedDerivedState; - var warnOnInvalidCallback; - var didWarnAboutDirectlyAssigningPropsToState; - var didWarnAboutContextTypeAndContextTypes; - var didWarnAboutInvalidateContextType; - { - didWarnAboutStateAssignmentForComponent = new Set(); - didWarnAboutUninitializedState = new Set(); - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); - didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); - didWarnAboutDirectlyAssigningPropsToState = new Set(); - didWarnAboutUndefinedDerivedState = new Set(); - didWarnAboutContextTypeAndContextTypes = new Set(); - didWarnAboutInvalidateContextType = new Set(); - var didWarnOnInvalidCallback = new Set(); - warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { - if (callback === null || typeof callback === "function") { - return; - } - var key = callerName + "_" + callback; - if (!didWarnOnInvalidCallback.has(key)) { - didWarnOnInvalidCallback.add(key); - error("%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); - } - }; - warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(type, partialState) { - if (partialState === undefined) { - var componentName = getComponentNameFromType(type) || "Component"; - if (!didWarnAboutUndefinedDerivedState.has(componentName)) { - didWarnAboutUndefinedDerivedState.add(componentName); - error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); - } - } - }; + /** + * @see facebook/react-native/Libraries/Text/TextProps.js + */ + var DeprecatedTextPropTypes = { + 'aria-busy': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-checked': _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[0], "prop-types").bool, _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['mixed'])]), + 'aria-disabled': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-expanded': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + 'aria-label': _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + 'aria-labelledby': _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + 'aria-selected': _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + accessibilityActions: _$$_REQUIRE(_dependencyMap[0], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityActionInfoPropType), + accessibilityHint: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityLabel: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityLanguage: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + accessibilityRole: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityRolePropType, + accessibilityState: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").AccessibilityStatePropType, + accessible: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + adjustsFontSizeToFit: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + allowFontScaling: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + dataDetectorType: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['all', 'email', 'link', 'none', 'phoneNumber']), + disabled: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + dynamicTypeRamp: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['body', 'callout', 'caption1', 'caption2', 'footnote', 'headline', 'largeTitle', 'subheadline', 'title1', 'title2', 'title3']), + ellipsizeMode: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['clip', 'head', 'middle', 'tail']), + id: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + lineBreakStrategyIOS: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['hangul-word', 'none', 'push-out', 'standard']), + maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + minimumFontScale: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + nativeID: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + numberOfLines: _$$_REQUIRE(_dependencyMap[0], "prop-types").number, + onAccessibilityAction: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onLayout: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onLongPress: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onMoveShouldSetResponder: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPress: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPressIn: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onPressOut: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderGrant: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderMove: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderRelease: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderTerminate: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onResponderTerminationRequest: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onStartShouldSetResponder: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + onTextLayout: _$$_REQUIRE(_dependencyMap[0], "prop-types").func, + pressRetentionOffset: _$$_REQUIRE(_dependencyMap[2], "./DeprecatedEdgeInsetsPropType"), + role: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedViewAccessibility").RolePropType, + selectable: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + selectionColor: _$$_REQUIRE(_dependencyMap[3], "./DeprecatedColorPropType"), + style: _$$_REQUIRE(_dependencyMap[4], "./DeprecatedStyleSheetPropType")(_$$_REQUIRE(_dependencyMap[5], "./DeprecatedTextStylePropTypes")), + suppressHighlighting: _$$_REQUIRE(_dependencyMap[0], "prop-types").bool, + testID: _$$_REQUIRE(_dependencyMap[0], "prop-types").string, + textBreakStrategy: _$$_REQUIRE(_dependencyMap[0], "prop-types").oneOf(['balanced', 'highQuality', 'simple']) + }; + module.exports = DeprecatedTextPropTypes; +},322,[299,311,298,296,312,323],"node_modules/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - Object.defineProperty(fakeInternalInstance, "_processChildContext", { - enumerable: false, - value: function value() { - throw new Error("_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); - } - }); - Object.freeze(fakeInternalInstance); - } - function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { - var prevState = workInProgress.memoizedState; - var partialState = getDerivedStateFromProps(nextProps, prevState); - { - warnOnUndefinedDerivedState(ctor, partialState); - } + 'use strict'; - var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState); - workInProgress.memoizedState = memoizedState; + /** + * @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js + */ + var DeprecatedTextStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0], "./DeprecatedViewStylePropTypes"), { + color: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedColorPropType"), + fontFamily: _$$_REQUIRE(_dependencyMap[2], "prop-types").string, + fontSize: _$$_REQUIRE(_dependencyMap[2], "prop-types").number, + fontStyle: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['italic', 'normal']), + fontVariant: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOfType([_$$_REQUIRE(_dependencyMap[2], "prop-types").arrayOf(_$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['lining-nums', 'oldstyle-nums', 'proportional-nums', 'small-caps', 'stylistic-eight', 'stylistic-eighteen', 'stylistic-eleven', 'stylistic-fifteen', 'stylistic-five', 'stylistic-four', 'stylistic-fourteen', 'stylistic-nine', 'stylistic-nineteen', 'stylistic-one', 'stylistic-seven', 'stylistic-seventeen', 'stylistic-six', 'stylistic-sixteen', 'stylistic-ten', 'stylistic-thirteen', 'stylistic-three', 'stylistic-twelve', 'stylistic-twenty', 'stylistic-two', 'tabular-nums'])), _$$_REQUIRE(_dependencyMap[2], "prop-types").string]), + fontWeight: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['100', '200', '300', '400', '500', '600', '700', '800', '900', 'black', 'bold', 'condensed', 'condensedBold', 'heavy', 'light', 'medium', 'normal', 'regular', 'semibold', 'thin', 'ultralight', 100, 200, 300, 400, 500, 600, 700, 800, 900]), + includeFontPadding: _$$_REQUIRE(_dependencyMap[2], "prop-types").bool, + letterSpacing: _$$_REQUIRE(_dependencyMap[2], "prop-types").number, + lineHeight: _$$_REQUIRE(_dependencyMap[2], "prop-types").number, + textAlign: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['auto', 'center', 'justify', 'left', 'right']), + textAlignVertical: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['auto', 'bottom', 'center', 'top']), + textDecorationColor: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedColorPropType"), + textDecorationLine: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['line-through', 'none', 'underline line-through', 'underline']), + textDecorationStyle: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['dashed', 'dotted', 'double', 'solid']), + textShadowColor: _$$_REQUIRE(_dependencyMap[1], "./DeprecatedColorPropType"), + textShadowOffset: _$$_REQUIRE(_dependencyMap[2], "prop-types").shape({ + height: _$$_REQUIRE(_dependencyMap[2], "prop-types").number, + width: _$$_REQUIRE(_dependencyMap[2], "prop-types").number + }), + textShadowRadius: _$$_REQUIRE(_dependencyMap[2], "prop-types").number, + textTransform: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['capitalize', 'lowercase', 'none', 'uppercase']), + userSelect: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['all', 'auto', 'contain', 'none', 'text']), + verticalAlign: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['auto', 'bottom', 'middle', 'top']), + writingDirection: _$$_REQUIRE(_dependencyMap[2], "prop-types").oneOf(['auto', 'ltr', 'rtl']) + }); + module.exports = DeprecatedTextStylePropTypes; +},323,[314,296,299],"node_modules/deprecated-react-native-prop-types/DeprecatedTextStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Animated/AnimatedImplementation")); + var _FrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Interaction/FrameRateLogger")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../ReactNative/UIManager")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/flattenStyle")); + var _splitLayoutProps2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../StyleSheet/splitLayoutProps")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../../StyleSheet/StyleSheet")); + var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "../../Utilities/Dimensions")); + var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "../../Utilities/dismissKeyboard")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "../../Utilities/Platform")); + var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "../Keyboard/Keyboard")); + var _TextInputState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "../TextInput/TextInputState")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "../View/View")); + var _AndroidHorizontalScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[20], "./AndroidHorizontalScrollContentViewNativeComponent")); + var _AndroidHorizontalScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[21], "./AndroidHorizontalScrollViewNativeComponent")); + var _processDecelerationRate = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[22], "./processDecelerationRate")); + var _ScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[23], "./ScrollContentViewNativeComponent")); + var _ScrollViewCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[24], "./ScrollViewCommands")); + var _ScrollViewContext = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[25], "./ScrollViewContext")); + var _ScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[26], "./ScrollViewNativeComponent")); + var _ScrollViewStickyHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[27], "./ScrollViewStickyHeader")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[28], "invariant")); + var _memoizeOne = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[29], "memoize-one")); + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[30], "nullthrows")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[31], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + if (_Platform.default.OS === 'ios') { + _$$_REQUIRE(_dependencyMap[32], "../../Renderer/shims/ReactNative"); // Force side effects to prevent T55744311 + } - if (workInProgress.lanes === NoLanes) { - var updateQueue = workInProgress.updateQueue; - updateQueue.baseState = memoizedState; + var _ref = _Platform.default.OS === 'android' ? { + NativeHorizontalScrollViewTuple: [_AndroidHorizontalScrollViewNativeComponent.default, _AndroidHorizontalScrollContentViewNativeComponent.default], + NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _View.default] + } : { + NativeHorizontalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default], + NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default] + }, + NativeHorizontalScrollViewTuple = _ref.NativeHorizontalScrollViewTuple, + NativeVerticalScrollViewTuple = _ref.NativeVerticalScrollViewTuple; + + /* + * iOS scroll event timing nuances: + * =============================== + * + * + * Scrolling without bouncing, if you touch down: + * ------------------------------- + * + * 1. `onMomentumScrollBegin` (when animation begins after letting up) + * ... physical touch starts ... + * 2. `onTouchStartCapture` (when you press down to stop the scroll) + * 3. `onTouchStart` (same, but bubble phase) + * 4. `onResponderRelease` (when lifting up - you could pause forever before * lifting) + * 5. `onMomentumScrollEnd` + * + * + * Scrolling with bouncing, if you touch down: + * ------------------------------- + * + * 1. `onMomentumScrollBegin` (when animation begins after letting up) + * ... bounce begins ... + * ... some time elapses ... + * ... physical touch during bounce ... + * 2. `onMomentumScrollEnd` (Makes no sense why this occurs first during bounce) + * 3. `onTouchStartCapture` (immediately after `onMomentumScrollEnd`) + * 4. `onTouchStart` (same, but bubble phase) + * 5. `onTouchEnd` (You could hold the touch start for a long time) + * 6. `onMomentumScrollBegin` (When releasing the view starts bouncing back) + * + * So when we receive an `onTouchStart`, how can we tell if we are touching + * *during* an animation (which then causes the animation to stop)? The only way + * to tell is if the `touchStart` occurred immediately after the + * `onMomentumScrollEnd`. + * + * This is abstracted out for you, so you can just call this.scrollResponderIsAnimating() if + * necessary + * + * `ScrollView` also includes logic for blurring a currently focused input + * if one is focused while scrolling. This is a natural place + * to put this logic since it can support not dismissing the keyboard while + * scrolling, unless a recognized "tap"-like gesture has occurred. + * + * The public lifecycle API includes events for keyboard interaction, responder + * interaction, and scrolling (among others). The keyboard callbacks + * `onKeyboardWill/Did/*` are *global* events, but are invoked on scroll + * responder's props so that you can guarantee that the scroll responder's + * internal state has been updated accordingly (and deterministically) by + * the time the props callbacks are invoke. Otherwise, you would always wonder + * if the scroll responder is currently in a state where it recognizes new + * keyboard positions etc. If coordinating scrolling with keyboard movement, + * *always* use these hooks instead of listening to your own global keyboard + * events. + * + * Public keyboard lifecycle API: (props callbacks) + * + * Standard Keyboard Appearance Sequence: + * + * this.props.onKeyboardWillShow + * this.props.onKeyboardDidShow + * + * `onScrollResponderKeyboardDismissed` will be invoked if an appropriate + * tap inside the scroll responder's scrollable region was responsible + * for the dismissal of the keyboard. There are other reasons why the + * keyboard could be dismissed. + * + * this.props.onScrollResponderKeyboardDismissed + * + * Standard Keyboard Hide Sequence: + * + * this.props.onKeyboardWillHide + * this.props.onKeyboardDidHide + */ + + // Public methods for ScrollView + var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; + /** + * Component that wraps platform ScrollView while providing + * integration with touch locking "responder" system. + * + * Keep in mind that ScrollViews must have a bounded height in order to work, + * since they contain unbounded-height children into a bounded container (via + * a scroll interaction). In order to bound the height of a ScrollView, either + * set the height of the view directly (discouraged) or make sure all parent + * views have bounded height. Forgetting to transfer `{flex: 1}` down the + * view stack can lead to errors here, which the element inspector makes + * easy to debug. + * + * Doesn't yet support other contained responders from blocking this scroll + * view from becoming the responder. + * + * + * `` vs [``](https://reactnative.dev/docs/flatlist) - which one to use? + * + * `ScrollView` simply renders all its react child components at once. That + * makes it very easy to understand and use. + * + * On the other hand, this has a performance downside. Imagine you have a very + * long list of items you want to display, maybe several screens worth of + * content. Creating JS components and native views for everything all at once, + * much of which may not even be shown, will contribute to slow rendering and + * increased memory usage. + * + * This is where `FlatList` comes into play. `FlatList` renders items lazily, + * just when they are about to appear, and removes items that scroll way off + * screen to save memory and processing time. + * + * `FlatList` is also handy if you want to render separators between your items, + * multiple columns, infinite scroll loading, or any number of other features it + * supports out of the box. + */ + var ScrollView = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(ScrollView, _React$Component); + var _super = _createSuper(ScrollView); + function ScrollView(props) { + var _this$props$contentOf, _this$props$contentOf2, _this$props$contentIn, _this$props$contentIn2; + var _this; + (0, _classCallCheck2.default)(this, ScrollView); + _this = _super.call(this, props); + _this._scrollAnimatedValueAttachment = null; + _this._stickyHeaderRefs = new Map(); + _this._headerLayoutYs = new Map(); + _this._keyboardMetrics = null; + _this._additionalScrollOffset = 0; + _this._isTouching = false; + _this._lastMomentumScrollBeginTime = 0; + _this._lastMomentumScrollEndTime = 0; + // Reset to false every time becomes responder. This is used to: + // - Determine if the scroll view has been scrolled and therefore should + // refuse to give up its responder lock. + // - Determine if releasing should dismiss the keyboard when we are in + // tap-to-dismiss mode (this.props.keyboardShouldPersistTaps !== 'always'). + _this._observedScrollSinceBecomingResponder = false; + _this._becameResponderWhileAnimating = false; + _this._preventNegativeScrollOffset = null; + _this._animated = null; + _this._subscriptionKeyboardWillShow = null; + _this._subscriptionKeyboardWillHide = null; + _this._subscriptionKeyboardDidShow = null; + _this._subscriptionKeyboardDidHide = null; + _this.state = { + layoutHeight: null + }; + /** + * Returns a reference to the underlying scroll responder, which supports + * operations like `scrollTo`. All ScrollView-like components should + * implement this method so that they can be composed while providing access + * to the underlying scroll responder's methods. + */ + _this.getScrollResponder = function () { + // $FlowFixMe[unclear-type] + return (0, _assertThisInitialized2.default)(_this); + }; + _this.getScrollableNode = function () { + return (0, _$$_REQUIRE(_dependencyMap[33], "../../ReactNative/RendererProxy").findNodeHandle)(_this._scrollView.nativeInstance); + }; + _this.getInnerViewNode = function () { + return (0, _$$_REQUIRE(_dependencyMap[33], "../../ReactNative/RendererProxy").findNodeHandle)(_this._innerView.nativeInstance); + }; + _this.getInnerViewRef = function () { + return _this._innerView.nativeInstance; + }; + _this.getNativeScrollRef = function () { + return _this._scrollView.nativeInstance; + }; + /** + * Scrolls to a given x, y offset, either immediately or with a smooth animation. + * + * Example: + * + * `scrollTo({x: 0, y: 0, animated: true})` + * + * Note: The weird function signature is due to the fact that, for historical reasons, + * the function also accepts separate arguments as an alternative to the options object. + * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED. + */ + _this.scrollTo = function (options, deprecatedX, deprecatedAnimated) { + var x, y, animated; + if (typeof options === 'number') { + console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' + 'animated: true})` instead.'); + y = options; + x = deprecatedX; + animated = deprecatedAnimated; + } else if (options) { + y = options.y; + x = options.x; + animated = options.animated; } - } - var classComponentUpdater = { - isMounted: isMounted, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - var fiber = get(inst); - var eventTime = requestEventTime(); - var lane = requestUpdateLane(fiber); - var update = createUpdate(eventTime, lane); - update.payload = payload; - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "setState"); - } - update.callback = callback; - } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); - if (root !== null) { - entangleTransitions(root, fiber, lane); - } - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - var fiber = get(inst); - var eventTime = requestEventTime(); - var lane = requestUpdateLane(fiber); - var update = createUpdate(eventTime, lane); - update.tag = ReplaceState; - update.payload = payload; - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "replaceState"); - } - update.callback = callback; - } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); - if (root !== null) { - entangleTransitions(root, fiber, lane); - } - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - var fiber = get(inst); - var eventTime = requestEventTime(); - var lane = requestUpdateLane(fiber); - var update = createUpdate(eventTime, lane); - update.tag = ForceUpdate; - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "forceUpdate"); - } - update.callback = callback; - } - enqueueUpdate(fiber, update); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); - if (root !== null) { - entangleTransitions(root, fiber, lane); - } + if (_this._scrollView.nativeInstance == null) { + return; } + _ScrollViewCommands.default.scrollTo(_this._scrollView.nativeInstance, x || 0, y || 0, animated !== false); }; - function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { - var instance = workInProgress.stateNode; - if (typeof instance.shouldComponentUpdate === "function") { - var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); - { - if (shouldUpdate === undefined) { - error("%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); - } - } - return shouldUpdate; + /** + * If this is a vertical ScrollView scrolls to the bottom. + * If this is a horizontal ScrollView scrolls to the right. + * + * Use `scrollToEnd({animated: true})` for smooth animated scrolling, + * `scrollToEnd({animated: false})` for immediate scrolling. + * If no options are passed, `animated` defaults to true. + */ + _this.scrollToEnd = function (options) { + // Default to true + var animated = (options && options.animated) !== false; + if (_this._scrollView.nativeInstance == null) { + return; } - if (ctor.prototype && ctor.prototype.isPureReactComponent) { - return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + _ScrollViewCommands.default.scrollToEnd(_this._scrollView.nativeInstance, animated); + }; + /** + * Displays the scroll indicators momentarily. + * + * @platform ios + */ + _this.flashScrollIndicators = function () { + if (_this._scrollView.nativeInstance == null) { + return; } - return true; - } - function checkClassInstance(workInProgress, ctor, newProps) { - var instance = workInProgress.stateNode; - { - var name = getComponentNameFromType(ctor) || "Component"; - var renderPresent = instance.render; - if (!renderPresent) { - if (ctor.prototype && typeof ctor.prototype.render === "function") { - error("%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); - } else { - error("%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); - } - } - if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { - error("getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name); - } - if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { - error("getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name); - } - if (instance.propTypes) { - error("propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name); - } - if (instance.contextType) { - error("contextType was defined as an instance property on %s. Use a static " + "property to define contextType instead.", name); - } - { - if (instance.contextTypes) { - error("contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name); - } - if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { - didWarnAboutContextTypeAndContextTypes.add(ctor); - error("%s declares both contextTypes and contextType static properties. " + "The legacy contextTypes property will be ignored.", name); - } - } - if (typeof instance.componentShouldUpdate === "function") { - error("%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name); - } - if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { - error("%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"); - } - if (typeof instance.componentDidUnmount === "function") { - error("%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name); - } - if (typeof instance.componentDidReceiveProps === "function") { - error("%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name); - } - if (typeof instance.componentWillRecieveProps === "function") { - error("%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name); - } - if (typeof instance.UNSAFE_componentWillRecieveProps === "function") { - error("%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); - } - var hasMutatedProps = instance.props !== newProps; - if (instance.props !== undefined && hasMutatedProps) { - error("%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name); - } - if (instance.defaultProps) { - error("Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name); - } - if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); - error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor)); - } - if (typeof instance.getDerivedStateFromProps === "function") { - error("%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); - } - if (typeof instance.getDerivedStateFromError === "function") { - error("%s: getDerivedStateFromError() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); - } - if (typeof ctor.getSnapshotBeforeUpdate === "function") { - error("%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name); - } - var _state = instance.state; - if (_state && (typeof _state !== "object" || isArray(_state))) { - error("%s.state: must be set to an object or null", name); - } - if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") { - error("%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name); - } + _ScrollViewCommands.default.flashScrollIndicators(_this._scrollView.nativeInstance); + }; + /** + * This method should be used as the callback to onFocus in a TextInputs' + * parent view. Note that any module using this mixin needs to return + * the parent view's ref in getScrollViewRef() in order to use this method. + * @param {number} nodeHandle The TextInput node handle + * @param {number} additionalOffset The scroll view's bottom "contentInset". + * Default is 0. + * @param {bool} preventNegativeScrolling Whether to allow pulling the content + * down to make it meet the keyboard's top. Default is false. + */ + _this.scrollResponderScrollNativeHandleToKeyboard = function (nodeHandle, additionalOffset, preventNegativeScrollOffset) { + _this._additionalScrollOffset = additionalOffset || 0; + _this._preventNegativeScrollOffset = !!preventNegativeScrollOffset; + if (_this._innerView.nativeInstance == null) { + return; } - } - function adoptClassInstance(workInProgress, instance) { - instance.updater = classComponentUpdater; - workInProgress.stateNode = instance; - - set(instance, workInProgress); - { - instance._reactInternalInstance = fakeInternalInstance; + if (typeof nodeHandle === 'number') { + _UIManager.default.measureLayout(nodeHandle, (0, _nullthrows.default)((0, _$$_REQUIRE(_dependencyMap[33], "../../ReactNative/RendererProxy").findNodeHandle)((0, _assertThisInitialized2.default)(_this))), + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + _this._textInputFocusError, _this._inputMeasureAndScrollToKeyboard); + } else { + nodeHandle.measureLayout(_this._innerView.nativeInstance, _this._inputMeasureAndScrollToKeyboard, + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + _this._textInputFocusError); } - } - function constructClassInstance(workInProgress, ctor, props) { - var isLegacyContextConsumer = false; - var unmaskedContext = emptyContextObject; - var context = emptyContextObject; - var contextType = ctor.contextType; - { - if ("contextType" in ctor) { - var isValid = - contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; - - if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { - didWarnAboutInvalidateContextType.add(ctor); - var addendum = ""; - if (contextType === undefined) { - addendum = " However, it is set to undefined. " + "This can be caused by a typo or by mixing up named and default imports. " + "This can also happen due to a circular dependency, so " + "try moving the createContext() call to a separate file."; - } else if (typeof contextType !== "object") { - addendum = " However, it is set to a " + typeof contextType + "."; - } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { - addendum = " Did you accidentally pass the Context.Provider instead?"; - } else if (contextType._context !== undefined) { - addendum = " Did you accidentally pass the Context.Consumer instead?"; - } else { - addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; - } - error("%s defines an invalid contextType. " + "contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(ctor) || "Component", addendum); - } - } + }; + /** + * A helper function to zoom to a specific rect in the scrollview. The argument has the shape + * {x: number; y: number; width: number; height: number; animated: boolean = true} + * + * @platform ios + */ + _this.scrollResponderZoomTo = function (rect, animated // deprecated, put this inside the rect argument instead + ) { + (0, _invariant.default)(_Platform.default.OS === 'ios', 'zoomToRect is not implemented'); + if ('animated' in rect) { + _this._animated = rect.animated; + delete rect.animated; + } else if (typeof animated !== 'undefined') { + console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead'); } - if (typeof contextType === "object" && contextType !== null) { - context = _readContext(contextType); - } else { - unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); - var contextTypes = ctor.contextTypes; - isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; - context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; + if (_this._scrollView.nativeInstance == null) { + return; } - var instance = new ctor(props, context); - - var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; - adoptClassInstance(workInProgress, instance); - { - if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { - var componentName = getComponentNameFromType(ctor) || "Component"; - if (!didWarnAboutUninitializedState.has(componentName)) { - didWarnAboutUninitializedState.add(componentName); - error("`%s` uses `getDerivedStateFromProps` but its initial state is " + "%s. This is not recommended. Instead, define the initial state by " + "assigning an object to `this.state` in the constructor of `%s`. " + "This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); - } + _ScrollViewCommands.default.zoomToRect(_this._scrollView.nativeInstance, rect, animated !== false); + }; + /** + * The calculations performed here assume the scroll view takes up the entire + * screen - even if has some content inset. We then measure the offsets of the + * keyboard, and compensate both for the scroll view's "contentInset". + * + * @param {number} left Position of input w.r.t. table view. + * @param {number} top Position of input w.r.t. table view. + * @param {number} width Width of the text input. + * @param {number} height Height of the text input. + */ + _this._inputMeasureAndScrollToKeyboard = function (left, top, width, height) { + var keyboardScreenY = _Dimensions.default.get('window').height; + var scrollTextInputIntoVisibleRect = function scrollTextInputIntoVisibleRect() { + if (_this._keyboardMetrics != null) { + keyboardScreenY = _this._keyboardMetrics.screenY; } + var scrollOffsetY = top - keyboardScreenY + height + _this._additionalScrollOffset; - if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { - foundWillMountName = "componentWillMount"; - } else if (typeof instance.UNSAFE_componentWillMount === "function") { - foundWillMountName = "UNSAFE_componentWillMount"; - } - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - foundWillReceivePropsName = "componentWillReceiveProps"; - } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; - } - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - foundWillUpdateName = "componentWillUpdate"; - } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { - foundWillUpdateName = "UNSAFE_componentWillUpdate"; - } - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var _componentName = getComponentNameFromType(ctor) || "Component"; - var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; - if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { - didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); - error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); - } - } + // By default, this can scroll with negative offset, pulling the content + // down so that the target component's bottom meets the keyboard's top. + // If requested otherwise, cap the offset at 0 minimum to avoid content + // shifting down. + if (_this._preventNegativeScrollOffset === true) { + scrollOffsetY = Math.max(0, scrollOffsetY); } + _this.scrollTo({ + x: 0, + y: scrollOffsetY, + animated: true + }); + _this._additionalScrollOffset = 0; + _this._preventNegativeScrollOffset = false; + }; + if (_this._keyboardMetrics == null) { + // `_keyboardMetrics` is set inside `scrollResponderKeyboardWillShow` which + // is not guaranteed to be called before `_inputMeasureAndScrollToKeyboard` but native has already scheduled it. + // In case it was not called before `_inputMeasureAndScrollToKeyboard`, we postpone scrolling to + // text input. + setTimeout(function () { + scrollTextInputIntoVisibleRect(); + }, 0); + } else { + scrollTextInputIntoVisibleRect(); } - - if (isLegacyContextConsumer) { - cacheContext(workInProgress, unmaskedContext, context); - } - return instance; - } - function callComponentWillMount(workInProgress, instance) { - var oldState = instance.state; - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); + }; + _this._handleScroll = function (e) { + if (__DEV__) { + if (_this.props.onScroll && _this.props.scrollEventThrottle == null && _Platform.default.OS === 'ios') { + console.log('You specified `onScroll` on a but not ' + '`scrollEventThrottle`. You will only receive one event. ' + 'Using `16` you get all the events but be aware that it may ' + "cause frame drops, use a bigger number if you don't need as " + 'much precision.'); + } } - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); + _this._observedScrollSinceBecomingResponder = true; + _this.props.onScroll && _this.props.onScroll(e); + }; + _this._handleLayout = function (e) { + if (_this.props.invertStickyHeaders === true) { + _this.setState({ + layoutHeight: e.nativeEvent.layout.height + }); } - if (oldState !== instance.state) { - { - error("%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"); - } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + if (_this.props.onLayout) { + _this.props.onLayout(e); } - } - function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { - var oldState = instance.state; - if (typeof instance.componentWillReceiveProps === "function") { - instance.componentWillReceiveProps(newProps, nextContext); + }; + _this._handleContentOnLayout = function (e) { + var _e$nativeEvent$layout = e.nativeEvent.layout, + width = _e$nativeEvent$layout.width, + height = _e$nativeEvent$layout.height; + _this.props.onContentSizeChange && _this.props.onContentSizeChange(width, height); + }; + _this._innerView = createRefForwarder(function (instance) { + return instance; + }); + _this._scrollView = createRefForwarder(function (nativeInstance) { + // This is a hack. Ideally we would forwardRef to the underlying + // host component. However, since ScrollView has it's own methods that can be + // called as well, if we used the standard forwardRef then these + // methods wouldn't be accessible and thus be a breaking change. + // + // Therefore we edit ref to include ScrollView's public methods so that + // they are callable from the ref. + + // $FlowFixMe[prop-missing] - Known issue with appending custom methods. + var publicInstance = Object.assign(nativeInstance, { + getScrollResponder: _this.getScrollResponder, + getScrollableNode: _this.getScrollableNode, + getInnerViewNode: _this.getInnerViewNode, + getInnerViewRef: _this.getInnerViewRef, + getNativeScrollRef: _this.getNativeScrollRef, + scrollTo: _this.scrollTo, + scrollToEnd: _this.scrollToEnd, + flashScrollIndicators: _this.flashScrollIndicators, + scrollResponderZoomTo: _this.scrollResponderZoomTo, + scrollResponderScrollNativeHandleToKeyboard: _this.scrollResponderScrollNativeHandleToKeyboard + }); + return publicInstance; + }); + /** + * Warning, this may be called several times for a single keyboard opening. + * It's best to store the information in this method and then take any action + * at a later point (either in `keyboardDidShow` or other). + * + * Here's the order that events occur in: + * - focus + * - willShow {startCoordinates, endCoordinates} several times + * - didShow several times + * - blur + * - willHide {startCoordinates, endCoordinates} several times + * - didHide several times + * + * The `ScrollResponder` module callbacks for each of these events. + * Even though any user could have easily listened to keyboard events + * themselves, using these `props` callbacks ensures that ordering of events + * is consistent - and not dependent on the order that the keyboard events are + * subscribed to. This matters when telling the scroll view to scroll to where + * the keyboard is headed - the scroll responder better have been notified of + * the keyboard destination before being instructed to scroll to where the + * keyboard will be. Stick to the `ScrollResponder` callbacks, and everything + * will work. + * + * WARNING: These callbacks will fire even if a keyboard is displayed in a + * different navigation pane. Filter out the events to determine if they are + * relevant to you. (For example, only if you receive these callbacks after + * you had explicitly focused a node etc). + */ + _this.scrollResponderKeyboardWillShow = function (e) { + _this._keyboardMetrics = e.endCoordinates; + _this.props.onKeyboardWillShow && _this.props.onKeyboardWillShow(e); + }; + _this.scrollResponderKeyboardWillHide = function (e) { + _this._keyboardMetrics = null; + _this.props.onKeyboardWillHide && _this.props.onKeyboardWillHide(e); + }; + _this.scrollResponderKeyboardDidShow = function (e) { + _this._keyboardMetrics = e.endCoordinates; + _this.props.onKeyboardDidShow && _this.props.onKeyboardDidShow(e); + }; + _this.scrollResponderKeyboardDidHide = function (e) { + _this._keyboardMetrics = null; + _this.props.onKeyboardDidHide && _this.props.onKeyboardDidHide(e); + }; + /** + * Invoke this from an `onMomentumScrollBegin` event. + */ + _this._handleMomentumScrollBegin = function (e) { + _this._lastMomentumScrollBeginTime = global.performance.now(); + _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); + }; + /** + * Invoke this from an `onMomentumScrollEnd` event. + */ + _this._handleMomentumScrollEnd = function (e) { + _FrameRateLogger.default.endScroll(); + _this._lastMomentumScrollEndTime = global.performance.now(); + _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); + }; + /** + * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll + * animation, and there's not an easy way to distinguish a drag vs. stopping + * momentum. + * + * Invoke this from an `onScrollBeginDrag` event. + */ + _this._handleScrollBeginDrag = function (e) { + _FrameRateLogger.default.beginScroll(); // TODO: track all scrolls after implementing onScrollEndAnimation + + if (_Platform.default.OS === 'android' && _this.props.keyboardDismissMode === 'on-drag') { + (0, _dismissKeyboard.default)(); } - if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); + }; + /** + * Invoke this from an `onScrollEndDrag` event. + */ + _this._handleScrollEndDrag = function (e) { + var velocity = e.nativeEvent.velocity; + // - If we are animating, then this is a "drag" that is stopping the scrollview and momentum end + // will fire. + // - If velocity is non-zero, then the interaction will stop when momentum scroll ends or + // another drag starts and ends. + // - If we don't get velocity, better to stop the interaction twice than not stop it. + if (!_this._isAnimating() && (!velocity || velocity.x === 0 && velocity.y === 0)) { + _FrameRateLogger.default.endScroll(); } - if (instance.state !== oldState) { - { - var componentName = getComponentNameFromFiber(workInProgress) || "Component"; - if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { - didWarnAboutStateAssignmentForComponent.add(componentName); - error("%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); - } + _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); + }; + /** + * A helper function for this class that lets us quickly determine if the + * view is currently animating. This is particularly useful to know when + * a touch has just started or ended. + */ + _this._isAnimating = function () { + var now = global.performance.now(); + var timeSinceLastMomentumScrollEnd = now - _this._lastMomentumScrollEndTime; + var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || _this._lastMomentumScrollEndTime < _this._lastMomentumScrollBeginTime; + return isAnimating; + }; + /** + * Invoke this from an `onResponderGrant` event. + */ + _this._handleResponderGrant = function (e) { + _this._observedScrollSinceBecomingResponder = false; + _this.props.onResponderGrant && _this.props.onResponderGrant(e); + _this._becameResponderWhileAnimating = _this._isAnimating(); + }; + /** + * Invoke this from an `onResponderReject` event. + * + * Some other element is not yielding its role as responder. Normally, we'd + * just disable the `UIScrollView`, but a touch has already began on it, the + * `UIScrollView` will not accept being disabled after that. The easiest + * solution for now is to accept the limitation of disallowing this + * altogether. To improve this, find a way to disable the `UIScrollView` after + * a touch has already started. + */ + _this._handleResponderReject = function () {}; + /** + * Invoke this from an `onResponderRelease` event. + */ + _this._handleResponderRelease = function (e) { + _this._isTouching = e.nativeEvent.touches.length !== 0; + _this.props.onResponderRelease && _this.props.onResponderRelease(e); + if (typeof e.target === 'number') { + if (__DEV__) { + console.error('Did not expect event target to be a number. Should have been a native component'); } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + return; } - } - function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { - { - checkClassInstance(workInProgress, ctor, newProps); - } - var instance = workInProgress.stateNode; - instance.props = newProps; - instance.state = workInProgress.memoizedState; - instance.refs = emptyRefsObject; - initializeUpdateQueue(workInProgress); - var contextType = ctor.contextType; - if (typeof contextType === "object" && contextType !== null) { - instance.context = _readContext(contextType); - } else { - var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); - instance.context = getMaskedContext(workInProgress, unmaskedContext); + // By default scroll views will unfocus a textField + // if another touch occurs outside of it + var currentlyFocusedTextInput = _TextInputState.default.currentlyFocusedInput(); + if (currentlyFocusedTextInput != null && _this.props.keyboardShouldPersistTaps !== true && _this.props.keyboardShouldPersistTaps !== 'always' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedTextInput && !_this._observedScrollSinceBecomingResponder && !_this._becameResponderWhileAnimating) { + _TextInputState.default.blurTextInput(currentlyFocusedTextInput); } - { - if (instance.state === newProps) { - var componentName = getComponentNameFromType(ctor) || "Component"; - if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { - didWarnAboutDirectlyAssigningPropsToState.add(componentName); - error("%s: It is not recommended to assign props directly to state " + "because updates to props won't be reflected in state. " + "In most cases, it is better to use props directly.", componentName); - } - } - if (workInProgress.mode & StrictLegacyMode) { - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); - } - { - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); - } + }; + /** + * We will allow the scroll view to give up its lock iff it acquired the lock + * during an animation. This is a very useful default that happens to satisfy + * many common user experiences. + * + * - Stop a scroll on the left edge, then turn that into an outer view's + * backswipe. + * - Stop a scroll mid-bounce at the top, continue pulling to have the outer + * view dismiss. + * - However, without catching the scroll view mid-bounce (while it is + * motionless), if you drag far enough for the scroll view to become + * responder (and therefore drag the scroll view a bit), any backswipe + * navigation of a swipe gesture higher in the view hierarchy, should be + * rejected. + */ + _this._handleResponderTerminationRequest = function () { + return !_this._observedScrollSinceBecomingResponder; + }; + /** + * Invoke this from an `onScroll` event. + */ + _this._handleScrollShouldSetResponder = function () { + // Allow any event touch pass through if the default pan responder is disabled + if (_this.props.disableScrollViewPanResponder === true) { + return false; } - instance.state = workInProgress.memoizedState; - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); - instance.state = workInProgress.memoizedState; + return _this._isTouching; + }; + /** + * Merely touch starting is not sufficient for a scroll view to become the + * responder. Being the "responder" means that the very next touch move/end + * event will result in an action/movement. + * + * Invoke this from an `onStartShouldSetResponder` event. + * + * `onStartShouldSetResponder` is used when the next move/end will trigger + * some UI movement/action, but when you want to yield priority to views + * nested inside of the view. + * + * There may be some cases where scroll views actually should return `true` + * from `onStartShouldSetResponder`: Any time we are detecting a standard tap + * that gives priority to nested views. + * + * - If a single tap on the scroll view triggers an action such as + * recentering a map style view yet wants to give priority to interaction + * views inside (such as dropped pins or labels), then we would return true + * from this method when there is a single touch. + * + * - Similar to the previous case, if a two finger "tap" should trigger a + * zoom, we would check the `touches` count, and if `>= 2`, we would return + * true. + * + */ + _this._handleStartShouldSetResponder = function (e) { + // Allow any event touch pass through if the default pan responder is disabled + if (_this.props.disableScrollViewPanResponder === true) { + return false; } - - if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - callComponentWillMount(workInProgress, instance); - - processUpdateQueue(workInProgress, newProps, instance, renderLanes); - instance.state = workInProgress.memoizedState; + var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); + if (_this.props.keyboardShouldPersistTaps === 'handled' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedInput) { + return true; } - if (typeof instance.componentDidMount === "function") { - var fiberFlags = Update; - workInProgress.flags |= fiberFlags; + return false; + }; + /** + * There are times when the scroll view wants to become the responder + * (meaning respond to the next immediate `touchStart/touchEnd`), in a way + * that *doesn't* give priority to nested views (hence the capture phase): + * + * - Currently animating. + * - Tapping anywhere that is not a text input, while the keyboard is + * up (which should dismiss the keyboard). + * + * Invoke this from an `onStartShouldSetResponderCapture` event. + */ + _this._handleStartShouldSetResponderCapture = function (e) { + // The scroll view should receive taps instead of its descendants if: + // * it is already animating/decelerating + if (_this._isAnimating()) { + return true; } - } - function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) { - var instance = workInProgress.stateNode; - var oldProps = workInProgress.memoizedProps; - instance.props = oldProps; - var oldContext = instance.context; - var contextType = ctor.contextType; - var nextContext = emptyContextObject; - if (typeof contextType === "object" && contextType !== null) { - nextContext = _readContext(contextType); - } else { - var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); - nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); + + // Allow any event touch pass through if the default pan responder is disabled + if (_this.props.disableScrollViewPanResponder === true) { + return false; } - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (oldProps !== newProps || oldContext !== nextContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + // * the keyboard is up, keyboardShouldPersistTaps is 'never' (the default), + // and a new touch starts with a non-textinput target (in which case the + // first tap should be sent to the scroll view and dismiss the keyboard, + // then the second tap goes to the actual interior view) + var keyboardShouldPersistTaps = _this.props.keyboardShouldPersistTaps; + var keyboardNeverPersistTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; + if (typeof e.target === 'number') { + if (__DEV__) { + console.error('Did not expect event target to be a number. Should have been a native component'); } + return false; } - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - processUpdateQueue(workInProgress, newProps, instance, renderLanes); - newState = workInProgress.memoizedState; - if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { - if (typeof instance.componentDidMount === "function") { - var fiberFlags = Update; - workInProgress.flags |= fiberFlags; - } + + // Let presses through if the soft keyboard is detached from the viewport + if (_this._softKeyboardIsDetached()) { return false; } - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; + if (keyboardNeverPersistTaps && _this._keyboardIsDismissible() && e.target != null && + // $FlowFixMe[incompatible-call] + !_TextInputState.default.isTextInput(e.target)) { + return true; } - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); - } - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); - } - } - if (typeof instance.componentDidMount === "function") { - var _fiberFlags = Update; - workInProgress.flags |= _fiberFlags; - } - } else { - if (typeof instance.componentDidMount === "function") { - var _fiberFlags2 = Update; - workInProgress.flags |= _fiberFlags2; - } + return false; + }; + /** + * Do we consider there to be a dismissible soft-keyboard open? + */ + _this._keyboardIsDismissible = function () { + var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; - } + // We cannot dismiss the keyboard without an input to blur, even if a soft + // keyboard is open (e.g. when keyboard is open due to a native component + // not participating in TextInputState). It's also possible that the + // currently focused input isn't a TextInput (such as by calling ref.focus + // on a non-TextInput). + var hasFocusedTextInput = currentlyFocusedInput != null && _TextInputState.default.isTextInput(currentlyFocusedInput); - instance.props = newProps; - instance.state = newState; - instance.context = nextContext; - return shouldUpdate; - } + // Even if an input is focused, we may not have a keyboard to dismiss. E.g + // when using a physical keyboard. Ensure we have an event for an opened + // keyboard. + var softKeyboardMayBeOpen = _this._keyboardMetrics != null || _this._keyboardEventsAreUnreliable(); + return hasFocusedTextInput && softKeyboardMayBeOpen; + }; + /** + * Whether an open soft keyboard is present which does not overlap the + * viewport. E.g. for a VR soft-keyboard which is detached from the app + * viewport. + */ + _this._softKeyboardIsDetached = function () { + return _this._keyboardMetrics != null && _this._keyboardMetrics.height === 0; + }; + _this._keyboardEventsAreUnreliable = function () { + // Android versions prior to API 30 rely on observing layout changes when + // `android:windowSoftInputMode` is set to `adjustResize` or `adjustPan`. + return _Platform.default.OS === 'android' && _Platform.default.Version < 30; + }; + /** + * Invoke this from an `onTouchEnd` event. + * + * @param {PressEvent} e Event. + */ + _this._handleTouchEnd = function (e) { + var nativeEvent = e.nativeEvent; + _this._isTouching = nativeEvent.touches.length !== 0; + var keyboardShouldPersistTaps = _this.props.keyboardShouldPersistTaps; + var keyboardNeverPersistsTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; - function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) { - var instance = workInProgress.stateNode; - cloneUpdateQueue(current, workInProgress); - var unresolvedOldProps = workInProgress.memoizedProps; - var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps); - instance.props = oldProps; - var unresolvedNewProps = workInProgress.pendingProps; - var oldContext = instance.context; - var contextType = ctor.contextType; - var nextContext = emptyContextObject; - if (typeof contextType === "object" && contextType !== null) { - nextContext = _readContext(contextType); - } else { - var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); - nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); + // Dismiss the keyboard now if we didn't become responder in capture phase + // to eat presses, but still want to dismiss on interaction. + // Don't do anything if the target of the touch event is the current input. + var currentlyFocusedTextInput = _TextInputState.default.currentlyFocusedInput(); + if (currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && _this._softKeyboardIsDetached() && _this._keyboardIsDismissible() && keyboardNeverPersistsTaps) { + _TextInputState.default.blurTextInput(currentlyFocusedTextInput); } - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); - } + _this.props.onTouchEnd && _this.props.onTouchEnd(e); + }; + /** + * Invoke this from an `onTouchCancel` event. + * + * @param {PressEvent} e Event. + */ + _this._handleTouchCancel = function (e) { + _this._isTouching = false; + _this.props.onTouchCancel && _this.props.onTouchCancel(e); + }; + /** + * Invoke this from an `onTouchStart` event. + * + * Since we know that the `SimpleEventPlugin` occurs later in the plugin + * order, after `ResponderEventPlugin`, we can detect that we were *not* + * permitted to be the responder (presumably because a contained view became + * responder). The `onResponderReject` won't fire in that case - it only + * fires when a *current* responder rejects our request. + * + * @param {PressEvent} e Touch Start event. + */ + _this._handleTouchStart = function (e) { + _this._isTouching = true; + _this.props.onTouchStart && _this.props.onTouchStart(e); + }; + /** + * Invoke this from an `onTouchMove` event. + * + * Since we know that the `SimpleEventPlugin` occurs later in the plugin + * order, after `ResponderEventPlugin`, we can detect that we were *not* + * permitted to be the responder (presumably because a contained view became + * responder). The `onResponderReject` won't fire in that case - it only + * fires when a *current* responder rejects our request. + * + * @param {PressEvent} e Touch Start event. + */ + _this._handleTouchMove = function (e) { + _this.props.onTouchMove && _this.props.onTouchMove(e); + }; + _this._scrollAnimatedValue = new _AnimatedImplementation.default.Value((_this$props$contentOf = (_this$props$contentOf2 = _this.props.contentOffset) == null ? void 0 : _this$props$contentOf2.y) != null ? _this$props$contentOf : 0); + _this._scrollAnimatedValue.setOffset((_this$props$contentIn = (_this$props$contentIn2 = _this.props.contentInset) == null ? void 0 : _this$props$contentIn2.top) != null ? _this$props$contentIn : 0); + return _this; + } + (0, _createClass2.default)(ScrollView, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (typeof this.props.keyboardShouldPersistTaps === 'boolean') { + console.warn(`'keyboardShouldPersistTaps={${this.props.keyboardShouldPersistTaps === true ? 'true' : 'false'}}' is deprecated. ` + `Use 'keyboardShouldPersistTaps="${this.props.keyboardShouldPersistTaps ? 'always' : 'never'}"' instead`); } - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - processUpdateQueue(workInProgress, newProps, instance, renderLanes); - newState = workInProgress.memoizedState; - if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { - if (typeof instance.componentDidUpdate === "function") { - if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.flags |= Update; - } - } - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.flags |= Snapshot; - } - } - return false; + this._keyboardMetrics = _Keyboard.default.metrics(); + this._additionalScrollOffset = 0; + this._subscriptionKeyboardWillShow = _Keyboard.default.addListener('keyboardWillShow', this.scrollResponderKeyboardWillShow); + this._subscriptionKeyboardWillHide = _Keyboard.default.addListener('keyboardWillHide', this.scrollResponderKeyboardWillHide); + this._subscriptionKeyboardDidShow = _Keyboard.default.addListener('keyboardDidShow', this.scrollResponderKeyboardDidShow); + this._subscriptionKeyboardDidHide = _Keyboard.default.addListener('keyboardDidHide', this.scrollResponderKeyboardDidHide); + this._updateAnimatedNodeAttachment(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var prevContentInsetTop = prevProps.contentInset ? prevProps.contentInset.top : 0; + var newContentInsetTop = this.props.contentInset ? this.props.contentInset.top : 0; + if (prevContentInsetTop !== newContentInsetTop) { + this._scrollAnimatedValue.setOffset(newContentInsetTop || 0); } - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; + this._updateAnimatedNodeAttachment(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscriptionKeyboardWillShow != null) { + this._subscriptionKeyboardWillShow.remove(); } - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || - enableLazyContextPropagation; - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { - if (typeof instance.componentWillUpdate === "function") { - instance.componentWillUpdate(newProps, newState, nextContext); - } - if (typeof instance.UNSAFE_componentWillUpdate === "function") { - instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); - } - } - if (typeof instance.componentDidUpdate === "function") { - workInProgress.flags |= Update; - } - if (typeof instance.getSnapshotBeforeUpdate === "function") { - workInProgress.flags |= Snapshot; - } - } else { - if (typeof instance.componentDidUpdate === "function") { - if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.flags |= Update; - } - } - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.flags |= Snapshot; - } - } - - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; + if (this._subscriptionKeyboardWillHide != null) { + this._subscriptionKeyboardWillHide.remove(); + } + if (this._subscriptionKeyboardDidShow != null) { + this._subscriptionKeyboardDidShow.remove(); + } + if (this._subscriptionKeyboardDidHide != null) { + this._subscriptionKeyboardDidHide.remove(); + } + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); } - - instance.props = newProps; - instance.state = newState; - instance.context = nextContext; - return shouldUpdate; } - var didWarnAboutMaps; - var didWarnAboutGenerators; - var didWarnAboutStringRefs; - var ownerHasKeyUseWarning; - var ownerHasFunctionTypeWarning; - var warnForMissingKey = function warnForMissingKey(child, returnFiber) {}; - { - didWarnAboutMaps = false; - didWarnAboutGenerators = false; - didWarnAboutStringRefs = {}; - - ownerHasKeyUseWarning = {}; - ownerHasFunctionTypeWarning = {}; - warnForMissingKey = function warnForMissingKey(child, returnFiber) { - if (child === null || typeof child !== "object") { - return; - } - if (!child._store || child._store.validated || child.key != null) { - return; - } - if (typeof child._store !== "object") { - throw new Error("React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); - } - child._store.validated = true; - var componentName = getComponentNameFromFiber(returnFiber) || "Component"; - if (ownerHasKeyUseWarning[componentName]) { - return; - } - ownerHasKeyUseWarning[componentName] = true; - error("Each child in a list should have a unique " + '"key" prop. See https://reactjs.org/link/warning-keys for ' + "more information."); - }; + }, { + key: "_textInputFocusError", + value: function _textInputFocusError() { + console.warn('Error measuring text field.'); } - function coerceRef(returnFiber, current, element) { - var mixedRef = element.ref; - if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { - { - if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && - !(element._owner && element._self && element._owner.stateNode !== element._self)) { - var componentName = getComponentNameFromFiber(returnFiber) || "Component"; - if (!didWarnAboutStringRefs[componentName]) { - { - error('A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", mixedRef); - } - didWarnAboutStringRefs[componentName] = true; - } - } - } - if (element._owner) { - var owner = element._owner; - var inst; - if (owner) { - var ownerFiber = owner; - if (ownerFiber.tag !== ClassComponent) { - throw new Error("Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref"); - } - inst = ownerFiber.stateNode; - } - if (!inst) { - throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + "bug in React. Please file an issue."); - } - - var resolvedInst = inst; - { - checkPropStringCoercion(mixedRef, "ref"); - } - var stringRef = "" + mixedRef; - - if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { - return current.ref; - } - var ref = function ref(value) { - var refs = resolvedInst.refs; - if (refs === emptyRefsObject) { - refs = resolvedInst.refs = {}; - } - if (value === null) { - delete refs[stringRef]; - } else { - refs[stringRef] = value; + }, { + key: "_getKeyForIndex", + value: function _getKeyForIndex(index, childArray) { + var child = childArray[index]; + return child && child.key; + } + }, { + key: "_updateAnimatedNodeAttachment", + value: function _updateAnimatedNodeAttachment() { + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); + } + if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { + this._scrollAnimatedValueAttachment = _AnimatedImplementation.default.attachNativeEvent(this._scrollView.nativeInstance, 'onScroll', [{ + nativeEvent: { + contentOffset: { + y: this._scrollAnimatedValue } - }; - ref._stringRef = stringRef; - return ref; - } else { - if (typeof mixedRef !== "string") { - throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); - } - if (!element._owner) { - throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://reactjs.org/link/refs-must-have-owner for more information."); } - } + }]); } - return mixedRef; - } - function throwOnInvalidObjectType(returnFiber, newChild) { - var childString = Object.prototype.toString.call(newChild); - throw new Error("Objects are not valid as a React child (found: " + (childString === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : childString) + "). " + "If you meant to render a collection of children, use an array " + "instead."); } - function warnOnFunctionType(returnFiber) { - { - var componentName = getComponentNameFromFiber(returnFiber) || "Component"; - if (ownerHasFunctionTypeWarning[componentName]) { - return; - } - ownerHasFunctionTypeWarning[componentName] = true; - error("Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it."); + }, { + key: "_setStickyHeaderRef", + value: function _setStickyHeaderRef(key, ref) { + if (ref) { + this._stickyHeaderRefs.set(key, ref); + } else { + this._stickyHeaderRefs.delete(key); } } - function resolveLazy(lazyType) { - var payload = lazyType._payload; - var init = lazyType._init; - return init(payload); - } - - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (!shouldTrackSideEffects) { - return; - } - var deletions = returnFiber.deletions; - if (deletions === null) { - returnFiber.deletions = [childToDelete]; - returnFiber.flags |= ChildDeletion; - } else { - deletions.push(childToDelete); - } + }, { + key: "_onStickyHeaderLayout", + value: function _onStickyHeaderLayout(index, event, key) { + var stickyHeaderIndices = this.props.stickyHeaderIndices; + if (!stickyHeaderIndices) { + return; } - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) { - return null; - } - - var childToDelete = currentFirstChild; - while (childToDelete !== null) { - deleteChild(returnFiber, childToDelete); - childToDelete = childToDelete.sibling; - } - return null; + var childArray = React.Children.toArray(this.props.children); + if (key !== this._getKeyForIndex(index, childArray)) { + // ignore stale layout update + return; } - function mapRemainingChildren(returnFiber, currentFirstChild) { - var existingChildren = new Map(); - var existingChild = currentFirstChild; - while (existingChild !== null) { - if (existingChild.key !== null) { - existingChildren.set(existingChild.key, existingChild); - } else { - existingChildren.set(existingChild.index, existingChild); - } - existingChild = existingChild.sibling; - } - return existingChildren; + var layoutY = event.nativeEvent.layout.y; + this._headerLayoutYs.set(key, layoutY); + var indexOfIndex = stickyHeaderIndices.indexOf(index); + var previousHeaderIndex = stickyHeaderIndices[indexOfIndex - 1]; + if (previousHeaderIndex != null) { + var previousHeader = this._stickyHeaderRefs.get(this._getKeyForIndex(previousHeaderIndex, childArray)); + previousHeader && previousHeader.setNextHeaderY && previousHeader.setNextHeaderY(layoutY); } - function useFiber(fiber, pendingProps) { - var clone = createWorkInProgress(fiber, pendingProps); - clone.index = 0; - clone.sibling = null; - return clone; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + var _ref2 = this.props.horizontal === true ? NativeHorizontalScrollViewTuple : NativeVerticalScrollViewTuple, + _ref3 = (0, _slicedToArray2.default)(_ref2, 2), + NativeDirectionalScrollView = _ref3[0], + NativeDirectionalScrollContentView = _ref3[1]; + var contentContainerStyle = [this.props.horizontal === true && styles.contentContainerHorizontal, this.props.contentContainerStyle]; + if (__DEV__ && this.props.style !== undefined) { + // $FlowFixMe[underconstrained-implicit-instantiation] + var style = (0, _flattenStyle.default)(this.props.style); + var childLayoutProps = ['alignItems', 'justifyContent'].filter(function (prop) { + return style && style[prop] !== undefined; + }); + (0, _invariant.default)(childLayoutProps.length === 0, 'ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); } - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) { - newFiber.flags |= Forked; - return lastPlacedIndex; - } - var current = newFiber.alternate; - if (current !== null) { - var oldIndex = current.index; - if (oldIndex < lastPlacedIndex) { - newFiber.flags |= Placement; - return lastPlacedIndex; + var contentSizeChangeProps = this.props.onContentSizeChange == null ? null : { + onLayout: this._handleContentOnLayout + }; + var stickyHeaderIndices = this.props.stickyHeaderIndices; + var children = this.props.children; + if (stickyHeaderIndices != null && stickyHeaderIndices.length > 0) { + var childArray = React.Children.toArray(this.props.children); + children = childArray.map(function (child, index) { + var indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1; + if (indexOfIndex > -1) { + var key = child.key; + var nextIndex = stickyHeaderIndices[indexOfIndex + 1]; + var StickyHeaderComponent = _this2.props.StickyHeaderComponent || _ScrollViewStickyHeader.default; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(StickyHeaderComponent, { + nativeID: 'StickyHeader-' + key /* TODO: T68258846. */, + ref: function ref(_ref4) { + return _this2._setStickyHeaderRef(key, _ref4); + }, + nextHeaderLayoutY: _this2._headerLayoutYs.get(_this2._getKeyForIndex(nextIndex, childArray)), + onLayout: function onLayout(event) { + return _this2._onStickyHeaderLayout(index, event, key); + }, + scrollAnimatedValue: _this2._scrollAnimatedValue, + inverted: _this2.props.invertStickyHeaders, + hiddenOnScroll: _this2.props.stickyHeaderHiddenOnScroll, + scrollViewHeight: _this2.state.layoutHeight, + children: child + }, key); } else { - return oldIndex; + return child; } - } else { - newFiber.flags |= Placement; - return lastPlacedIndex; - } + }); } - function placeSingleChild(newFiber) { - if (shouldTrackSideEffects && newFiber.alternate === null) { - newFiber.flags |= Placement; - } - return newFiber; + children = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(_ScrollViewContext.default.Provider, { + value: this.props.horizontal === true ? _ScrollViewContext.HORIZONTAL : _ScrollViewContext.VERTICAL, + children: children + }); + var hasStickyHeaders = Array.isArray(stickyHeaderIndices) && stickyHeaderIndices.length > 0; + var contentContainer = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(NativeDirectionalScrollContentView, Object.assign({}, contentSizeChangeProps, { + ref: this._innerView.getForwardingRef(this.props.innerViewRef), + style: contentContainerStyle, + removeClippedSubviews: + // Subview clipping causes issues with sticky headers on Android and + // would be hard to fix properly in a performant way. + _Platform.default.OS === 'android' && hasStickyHeaders ? false : this.props.removeClippedSubviews, + collapsable: false, + children: children + })); + var alwaysBounceHorizontal = this.props.alwaysBounceHorizontal !== undefined ? this.props.alwaysBounceHorizontal : this.props.horizontal; + var alwaysBounceVertical = this.props.alwaysBounceVertical !== undefined ? this.props.alwaysBounceVertical : !this.props.horizontal; + var baseStyle = this.props.horizontal === true ? styles.baseHorizontal : styles.baseVertical; + var props = Object.assign({}, this.props, { + alwaysBounceHorizontal: alwaysBounceHorizontal, + alwaysBounceVertical: alwaysBounceVertical, + style: _StyleSheet.default.compose(baseStyle, this.props.style), + // Override the onContentSizeChange from props, since this event can + // bubble up from TextInputs + 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, + scrollEventThrottle: hasStickyHeaders ? 1 : this.props.scrollEventThrottle, + sendMomentumEvents: this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd ? true : false, + // default to true + snapToStart: this.props.snapToStart !== false, + // default to true + snapToEnd: this.props.snapToEnd !== false, + // pagingEnabled is overridden by snapToInterval / snapToOffsets + pagingEnabled: _Platform.default.select({ + // on iOS, pagingEnabled must be set to false to have snapToInterval / snapToOffsets work + ios: this.props.pagingEnabled === true && this.props.snapToInterval == null && this.props.snapToOffsets == null, + // on Android, pagingEnabled must be set to true to have snapToInterval / snapToOffsets work + android: this.props.pagingEnabled === true || this.props.snapToInterval != null || this.props.snapToOffsets != null + }) + }); + var decelerationRate = this.props.decelerationRate; + if (decelerationRate != null) { + props.decelerationRate = (0, _processDecelerationRate.default)(decelerationRate); } - function updateTextNode(returnFiber, current, textContent, lanes) { - if (current === null || current.tag !== HostText) { - var created = createFiberFromText(textContent, returnFiber.mode, lanes); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, textContent); - existing.return = returnFiber; - return existing; + var refreshControl = this.props.refreshControl; + var scrollViewRef = this._scrollView.getForwardingRef(this.props.scrollViewRef); + if (refreshControl) { + if (_Platform.default.OS === 'ios') { + // On iOS the RefreshControl is a child of the ScrollView. + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsxs)(NativeDirectionalScrollView, Object.assign({}, props, { + ref: scrollViewRef, + children: [refreshControl, contentContainer] + })); + } else if (_Platform.default.OS === 'android') { + // On Android wrap the ScrollView with a AndroidSwipeRefreshLayout. + // Since the ScrollView is wrapped add the style props to the + // AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView. + // Note: we should split props.style on the inner and outer props + // however, the ScrollView still needs the baseStyle to be scrollable + // $FlowFixMe[underconstrained-implicit-instantiation] + var _splitLayoutProps = (0, _splitLayoutProps2.default)((0, _flattenStyle.default)(props.style)), + outer = _splitLayoutProps.outer, + inner = _splitLayoutProps.inner; + return React.cloneElement(refreshControl, { + style: _StyleSheet.default.compose(baseStyle, outer) + }, /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { + style: _StyleSheet.default.compose(baseStyle, inner), + ref: scrollViewRef, + children: contentContainer + }))); } } - function updateElement(returnFiber, current, element, lanes) { - var elementType = element.type; - if (elementType === REACT_FRAGMENT_TYPE) { - return updateFragment(returnFiber, current, element.props.children, lanes, element.key); - } - if (current !== null) { - if (current.elementType === elementType || - isCompatibleFamilyForHotReloading(current, element) || - typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) { - var existing = useFiber(current, element.props); - existing.ref = coerceRef(returnFiber, current, element); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { + ref: scrollViewRef, + children: contentContainer + })); + } + }]); + return ScrollView; + }(React.Component); + ScrollView.Context = _ScrollViewContext.default; + var styles = _StyleSheet.default.create({ + baseVertical: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'column', + overflow: 'scroll' + }, + baseHorizontal: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'row', + overflow: 'scroll' + }, + contentContainerHorizontal: { + flexDirection: 'row' + } + }); + /** + * Helper function that should be replaced with `useCallback` and `useMergeRefs` + * once `ScrollView` is reimplemented as a functional component. + */ + function createRefForwarder(mutator) { + var state = { + getForwardingRef: (0, _memoizeOne.default)(function (forwardedRef) { + return function (nativeInstance) { + var publicInstance = nativeInstance == null ? null : mutator(nativeInstance); + state.nativeInstance = nativeInstance; + state.publicInstance = publicInstance; + if (forwardedRef != null) { + if (typeof forwardedRef === 'function') { + forwardedRef(publicInstance); + } else { + forwardedRef.current = publicInstance; } } + }; + }), + nativeInstance: null, + publicInstance: null + }; + return state; + } - var created = createFiberFromElement(element, returnFiber.mode, lanes); - created.ref = coerceRef(returnFiber, current, element); - created.return = returnFiber; - return created; - } - function updatePortal(returnFiber, current, portal, lanes) { - if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { - var created = createFiberFromPortal(portal, returnFiber.mode, lanes); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, portal.children || []); - existing.return = returnFiber; - return existing; - } - } - function updateFragment(returnFiber, current, fragment, lanes, key) { - if (current === null || current.tag !== Fragment) { - var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, fragment); - existing.return = returnFiber; - return existing; - } + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + function Wrapper(props, ref) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[34], "react/jsx-runtime").jsx)(ScrollView, Object.assign({}, props, { + scrollViewRef: ref + })); + } + Wrapper.displayName = 'ScrollView'; + var ForwardedScrollView = React.forwardRef(Wrapper); + + // $FlowFixMe[prop-missing] Add static context to ForwardedScrollView + ForwardedScrollView.Context = _ScrollViewContext.default; + ForwardedScrollView.displayName = 'ScrollView'; + module.exports = ForwardedScrollView; +},324,[3,22,12,13,52,49,51,53,325,360,230,207,362,259,247,363,17,364,278,225,367,368,369,370,371,372,373,374,20,379,231,41,411,37,89],"node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _DecayAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./animations/DecayAnimation")); + var _SpringAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./animations/SpringAnimation")); + var _TimingAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./animations/TimingAnimation")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./createAnimatedComponent")); + var _AnimatedAddition = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedAddition")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./nodes/AnimatedColor")); + var _AnimatedDiffClamp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./nodes/AnimatedDiffClamp")); + var _AnimatedDivision = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./nodes/AnimatedDivision")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedInterpolation")); + var _AnimatedModulo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./nodes/AnimatedModulo")); + var _AnimatedMultiplication = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./nodes/AnimatedMultiplication")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./nodes/AnimatedNode")); + var _AnimatedSubtraction = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./nodes/AnimatedSubtraction")); + var _AnimatedTracking = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./nodes/AnimatedTracking")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./nodes/AnimatedValue")); + var _AnimatedValueXY = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./nodes/AnimatedValueXY")); + var add = function add(a, b) { + return new _AnimatedAddition.default(a, b); + }; + var subtract = function subtract(a, b) { + return new _AnimatedSubtraction.default(a, b); + }; + var divide = function divide(a, b) { + return new _AnimatedDivision.default(a, b); + }; + var multiply = function multiply(a, b) { + return new _AnimatedMultiplication.default(a, b); + }; + var modulo = function modulo(a, modulus) { + return new _AnimatedModulo.default(a, modulus); + }; + var diffClamp = function diffClamp(a, min, max) { + return new _AnimatedDiffClamp.default(a, min, max); + }; + var _combineCallbacks = function _combineCallbacks(callback, config) { + if (callback && config.onComplete) { + return function () { + config.onComplete && config.onComplete.apply(config, arguments); + callback && callback.apply(void 0, arguments); + }; + } else { + return callback || config.onComplete; + } + }; + var maybeVectorAnim = function maybeVectorAnim(value, config, anim) { + if (value instanceof _AnimatedValueXY.default) { + var configX = Object.assign({}, config); + var configY = Object.assign({}, config); + for (var key in config) { + var _config$key = config[key], + x = _config$key.x, + y = _config$key.y; + if (x !== undefined && y !== undefined) { + configX[key] = x; + configY[key] = y; } - function createChild(returnFiber, newChild, lanes) { - if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { - var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); - created.return = returnFiber; - return created; - } - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _created = createFiberFromElement(newChild, returnFiber.mode, lanes); - _created.ref = coerceRef(returnFiber, null, newChild); - _created.return = returnFiber; - return _created; - } - case REACT_PORTAL_TYPE: - { - var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes); - _created2.return = returnFiber; - return _created2; - } - case REACT_LAZY_TYPE: - { - var payload = newChild._payload; - var init = newChild._init; - return createChild(returnFiber, init(payload), lanes); - } - } - if (isArray(newChild) || getIteratorFn(newChild)) { - var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null); - _created3.return = returnFiber; - return _created3; - } - throwOnInvalidObjectType(returnFiber, newChild); - } - { - if (typeof newChild === "function") { - warnOnFunctionType(returnFiber); - } - } - return null; + } + var aX = anim(value.x, configX); + var aY = anim(value.y, configY); + // We use `stopTogether: false` here because otherwise tracking will break + // because the second animation will get stopped before it can update. + return parallel([aX, aY], { + stopTogether: false + }); + } else if (value instanceof _AnimatedColor.default) { + var configR = Object.assign({}, config); + var configG = Object.assign({}, config); + var configB = Object.assign({}, config); + var configA = Object.assign({}, config); + for (var _key in config) { + var _config$_key = config[_key], + r = _config$_key.r, + g = _config$_key.g, + b = _config$_key.b, + a = _config$_key.a; + if (r !== undefined && g !== undefined && b !== undefined && a !== undefined) { + configR[_key] = r; + configG[_key] = g; + configB[_key] = b; + configA[_key] = a; } - function updateSlot(returnFiber, oldFiber, newChild, lanes) { - var key = oldFiber !== null ? oldFiber.key : null; - if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { - if (key !== null) { - return null; - } - return updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); - } - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - if (newChild.key === key) { - return updateElement(returnFiber, oldFiber, newChild, lanes); - } else { - return null; - } - } - case REACT_PORTAL_TYPE: - { - if (newChild.key === key) { - return updatePortal(returnFiber, oldFiber, newChild, lanes); - } else { - return null; - } - } - case REACT_LAZY_TYPE: - { - var payload = newChild._payload; - var init = newChild._init; - return updateSlot(returnFiber, oldFiber, init(payload), lanes); - } - } - if (isArray(newChild) || getIteratorFn(newChild)) { - if (key !== null) { - return null; - } - return updateFragment(returnFiber, oldFiber, newChild, lanes, null); - } - throwOnInvalidObjectType(returnFiber, newChild); + } + var aR = anim(value.r, configR); + var aG = anim(value.g, configG); + var aB = anim(value.b, configB); + var aA = anim(value.a, configA); + // We use `stopTogether: false` here because otherwise tracking will break + // because the second animation will get stopped before it can update. + return parallel([aR, aG, aB, aA], { + stopTogether: false + }); + } + return null; + }; + var spring = function spring(value, config) { + var _start = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + if (configuration.toValue instanceof _AnimatedNode.default) { + singleValue.track(new _AnimatedTracking.default(singleValue, configuration.toValue, _SpringAnimation.default, singleConfig, callback)); + } else { + singleValue.animate(new _SpringAnimation.default(singleConfig), callback); + } + }; + return maybeVectorAnim(value, config, spring) || { + start: function start(callback) { + _start(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var timing = function timing(value, config) { + var _start2 = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + if (configuration.toValue instanceof _AnimatedNode.default) { + singleValue.track(new _AnimatedTracking.default(singleValue, configuration.toValue, _TimingAnimation.default, singleConfig, callback)); + } else { + singleValue.animate(new _TimingAnimation.default(singleConfig), callback); + } + }; + return maybeVectorAnim(value, config, timing) || { + start: function start(callback) { + _start2(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start2(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var decay = function decay(value, config) { + var _start3 = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + singleValue.animate(new _DecayAnimation.default(singleConfig), callback); + }; + return maybeVectorAnim(value, config, decay) || { + start: function start(callback) { + _start3(value, config, callback); + }, + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = Object.assign({}, config, { + iterations: iterations + }); + _start3(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + var sequence = function sequence(animations) { + var current = 0; + return { + start: function start(callback) { + var onComplete = function onComplete(result) { + if (!result.finished) { + callback && callback(result); + return; } - { - if (typeof newChild === "function") { - warnOnFunctionType(returnFiber); - } + current++; + if (current === animations.length) { + callback && callback(result); + return; } - return null; + animations[current].start(onComplete); + }; + if (animations.length === 0) { + callback && callback({ + finished: true + }); + } else { + animations[current].start(onComplete); } - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { - if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { - var matchedFiber = existingChildren.get(newIdx) || null; - return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); - } - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - return updateElement(returnFiber, _matchedFiber, newChild, lanes); - } - case REACT_PORTAL_TYPE: - { - var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - return updatePortal(returnFiber, _matchedFiber2, newChild, lanes); - } - case REACT_LAZY_TYPE: - var payload = newChild._payload; - var init = newChild._init; - return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes); - } - if (isArray(newChild) || getIteratorFn(newChild)) { - var _matchedFiber3 = existingChildren.get(newIdx) || null; - return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null); - } - throwOnInvalidObjectType(returnFiber, newChild); - } - { - if (typeof newChild === "function") { - warnOnFunctionType(returnFiber); - } - } - return null; + }, + stop: function stop() { + if (current < animations.length) { + animations[current].stop(); } - - function warnOnInvalidKey(child, knownKeys, returnFiber) { - { - if (typeof child !== "object" || child === null) { - return knownKeys; - } - switch (child.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - warnForMissingKey(child, returnFiber); - var key = child.key; - if (typeof key !== "string") { - break; - } - if (knownKeys === null) { - knownKeys = new Set(); - knownKeys.add(key); - break; - } - if (!knownKeys.has(key)) { - knownKeys.add(key); - break; - } - error("Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted โ€” the behavior is unsupported and " + "could change in a future version.", key); - break; - case REACT_LAZY_TYPE: - var payload = child._payload; - var init = child._init; - warnOnInvalidKey(init(payload), knownKeys, returnFiber); - break; - } + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + if (idx <= current) { + animation.reset(); } - return knownKeys; + }); + current = 0; + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.sequence animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + }; + var parallel = function parallel(animations, config) { + var doneCount = 0; + // Make sure we only call stop() at most once for each animation + var hasEnded = {}; + var stopTogether = !(config && config.stopTogether === false); + var result = { + start: function start(callback) { + if (doneCount === animations.length) { + callback && callback({ + finished: true + }); + return; } - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { - { - var knownKeys = null; - for (var i = 0; i < newChildren.length; i++) { - var child = newChildren[i]; - knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); - } - } - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); - if (newFiber === null) { - if (oldFiber === null) { - oldFiber = nextOldFiber; - } - break; - } - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; + animations.forEach(function (animation, idx) { + var cb = function cb(endResult) { + hasEnded[idx] = true; + doneCount++; + if (doneCount === animations.length) { + doneCount = 0; + callback && callback(endResult); + return; } - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (newIdx === newChildren.length) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - if (oldFiber === null) { - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); - if (_newFiber === null) { - continue; - } - lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = _newFiber; - } else { - previousNewFiber.sibling = _newFiber; - } - previousNewFiber = _newFiber; + if (!endResult.finished && stopTogether) { + result.stop(); } - return resultingFirstChild; + }; + if (!animation) { + cb({ + finished: true + }); + } else { + animation.start(cb); } - - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); - - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); - if (_newFiber2 !== null) { - if (shouldTrackSideEffects) { - if (_newFiber2.alternate !== null) { - existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); - } - } - lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = _newFiber2; - } else { - previousNewFiber.sibling = _newFiber2; - } - previousNewFiber = _newFiber2; - } + }); + }, + stop: function stop() { + animations.forEach(function (animation, idx) { + !hasEnded[idx] && animation.stop(); + hasEnded[idx] = true; + }); + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + animation.reset(); + hasEnded[idx] = false; + doneCount = 0; + }); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.parallel animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + return result; + }; + var delay = function delay(time) { + // Would be nice to make a specialized implementation + return timing(new _AnimatedValue.default(0), { + toValue: 0, + delay: time, + duration: 0, + useNativeDriver: false + }); + }; + var stagger = function stagger(time, animations) { + return parallel(animations.map(function (animation, i) { + return sequence([delay(time * i), animation]); + })); + }; + var loop = function loop(animation) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$iterations = _ref.iterations, + iterations = _ref$iterations === void 0 ? -1 : _ref$iterations, + _ref$resetBeforeItera = _ref.resetBeforeIteration, + resetBeforeIteration = _ref$resetBeforeItera === void 0 ? true : _ref$resetBeforeItera; + var isFinished = false; + var iterationsSoFar = 0; + return { + start: function start(callback) { + var restart = function restart() { + var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + finished: true + }; + if (isFinished || iterationsSoFar === iterations || result.finished === false) { + callback && callback(result); + } else { + iterationsSoFar++; + resetBeforeIteration && animation.reset(); + animation.start(restart); } - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); + }; + if (!animation || iterations === 0) { + callback && callback({ + finished: true + }); + } else { + if (animation._isUsingNativeDriver()) { + animation._startNativeLoop(iterations); + } else { + restart(); // Start looping recursively on the js thread } - return resultingFirstChild; } - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { - var iteratorFn = getIteratorFn(newChildrenIterable); - if (typeof iteratorFn !== "function") { - throw new Error("An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); - } - { - if (typeof Symbol === "function" && - newChildrenIterable[Symbol.toStringTag] === "Generator") { - if (!didWarnAboutGenerators) { - error("Using Generators as children is unsupported and will likely yield " + "unexpected results because enumerating a generator mutates it. " + "You may convert it to an array with `Array.from()` or the " + "`[...spread]` operator before rendering. Keep in mind " + "you might need to polyfill these features for older browsers."); - } - didWarnAboutGenerators = true; - } + }, - if (newChildrenIterable.entries === iteratorFn) { - if (!didWarnAboutMaps) { - error("Using Maps as children is not supported. " + "Use an array of keyed ReactElements instead."); - } - didWarnAboutMaps = true; - } + stop: function stop() { + isFinished = true; + animation.stop(); + }, + reset: function reset() { + iterationsSoFar = 0; + isFinished = false; + animation.reset(); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.loop animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return animation._isUsingNativeDriver(); + } + }; + }; + function forkEvent(event, listener) { + if (!event) { + return listener; + } else if (event instanceof _$$_REQUIRE(_dependencyMap[17], "./AnimatedEvent").AnimatedEvent) { + event.__addListener(listener); + return event; + } else { + return function () { + typeof event === 'function' && event.apply(void 0, arguments); + listener.apply(void 0, arguments); + }; + } + } + function unforkEvent(event, listener) { + if (event && event instanceof _$$_REQUIRE(_dependencyMap[17], "./AnimatedEvent").AnimatedEvent) { + event.__removeListener(listener); + } + } + var event = function event(argMapping, config) { + var animatedEvent = new (_$$_REQUIRE(_dependencyMap[17], "./AnimatedEvent").AnimatedEvent)(argMapping, config); + if (animatedEvent.__isNative) { + return animatedEvent; + } else { + return animatedEvent.__getHandler(); + } + }; - var _newChildren = iteratorFn.call(newChildrenIterable); - if (_newChildren) { - var knownKeys = null; - var _step = _newChildren.next(); - for (; !_step.done; _step = _newChildren.next()) { - var child = _step.value; - knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); - } - } - } - var newChildren = iteratorFn.call(newChildrenIterable); - if (newChildren == null) { - throw new Error("An iterable object provided no iterator."); - } - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - var step = newChildren.next(); - for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); - if (newFiber === null) { - if (oldFiber === null) { - oldFiber = nextOldFiber; - } - break; - } - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; - } - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (step.done) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - if (oldFiber === null) { - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber3 = createChild(returnFiber, step.value, lanes); - if (_newFiber3 === null) { - continue; - } - lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = _newFiber3; - } else { - previousNewFiber.sibling = _newFiber3; - } - previousNewFiber = _newFiber3; - } - return resultingFirstChild; - } + // All types of animated nodes that represent scalar numbers and can be interpolated (etc) + /** + * The `Animated` library is designed to make animations fluid, powerful, and + * easy to build and maintain. `Animated` focuses on declarative relationships + * between inputs and outputs, with configurable transforms in between, and + * simple `start`/`stop` methods to control time-based animation execution. + * If additional transforms are added, be sure to include them in + * AnimatedMock.js as well. + * + * See https://reactnative.dev/docs/animated + */ + var _default = { + /** + * Standard value class for driving animations. Typically initialized with + * `new Animated.Value(0);` + * + * See https://reactnative.dev/docs/animated#value + */ + Value: _AnimatedValue.default, + /** + * 2D value class for driving 2D animations, such as pan gestures. + * + * See https://reactnative.dev/docs/animatedvaluexy + */ + ValueXY: _AnimatedValueXY.default, + /** + * Value class for driving color animations. + */ + Color: _AnimatedColor.default, + /** + * Exported to use the Interpolation type in flow. + * + * See https://reactnative.dev/docs/animated#interpolation + */ + Interpolation: _AnimatedInterpolation.default, + /** + * Exported for ease of type checking. All animated values derive from this + * class. + * + * See https://reactnative.dev/docs/animated#node + */ + Node: _AnimatedNode.default, + /** + * Animates a value from an initial velocity to zero based on a decay + * coefficient. + * + * See https://reactnative.dev/docs/animated#decay + */ + decay: decay, + /** + * Animates a value along a timed easing curve. The Easing module has tons of + * predefined curves, or you can use your own function. + * + * See https://reactnative.dev/docs/animated#timing + */ + timing: timing, + /** + * Animates a value according to an analytical spring model based on + * damped harmonic oscillation. + * + * See https://reactnative.dev/docs/animated#spring + */ + spring: spring, + /** + * Creates a new Animated value composed from two Animated values added + * together. + * + * See https://reactnative.dev/docs/animated#add + */ + add: add, + /** + * Creates a new Animated value composed by subtracting the second Animated + * value from the first Animated value. + * + * See https://reactnative.dev/docs/animated#subtract + */ + subtract: subtract, + /** + * Creates a new Animated value composed by dividing the first Animated value + * by the second Animated value. + * + * See https://reactnative.dev/docs/animated#divide + */ + divide: divide, + /** + * Creates a new Animated value composed from two Animated values multiplied + * together. + * + * See https://reactnative.dev/docs/animated#multiply + */ + multiply: multiply, + /** + * Creates a new Animated value that is the (non-negative) modulo of the + * provided Animated value. + * + * See https://reactnative.dev/docs/animated#modulo + */ + modulo: modulo, + /** + * Create a new Animated value that is limited between 2 values. It uses the + * difference between the last value so even if the value is far from the + * bounds it will start changing when the value starts getting closer again. + * + * See https://reactnative.dev/docs/animated#diffclamp + */ + diffClamp: diffClamp, + /** + * Starts an animation after the given delay. + * + * See https://reactnative.dev/docs/animated#delay + */ + delay: delay, + /** + * Starts an array of animations in order, waiting for each to complete + * before starting the next. If the current running animation is stopped, no + * following animations will be started. + * + * See https://reactnative.dev/docs/animated#sequence + */ + sequence: sequence, + /** + * Starts an array of animations all at the same time. By default, if one + * of the animations is stopped, they will all be stopped. You can override + * this with the `stopTogether` flag. + * + * See https://reactnative.dev/docs/animated#parallel + */ + parallel: parallel, + /** + * Array of animations may run in parallel (overlap), but are started in + * sequence with successive delays. Nice for doing trailing effects. + * + * See https://reactnative.dev/docs/animated#stagger + */ + stagger: stagger, + /** + * Loops a given animation continuously, so that each time it reaches the + * end, it resets and begins again from the start. + * + * See https://reactnative.dev/docs/animated#loop + */ + loop: loop, + /** + * Takes an array of mappings and extracts values from each arg accordingly, + * then calls `setValue` on the mapped outputs. + * + * See https://reactnative.dev/docs/animated#event + */ + event: event, + /** + * Make any React component Animatable. Used to create `Animated.View`, etc. + * + * See https://reactnative.dev/docs/animated#createanimatedcomponent + */ + createAnimatedComponent: _createAnimatedComponent.default, + /** + * Imperative API to attach an animated value to an event on a view. Prefer + * using `Animated.event` with `useNativeDrive: true` if possible. + * + * See https://reactnative.dev/docs/animated#attachnativeevent + */ + attachNativeEvent: _$$_REQUIRE(_dependencyMap[17], "./AnimatedEvent").attachNativeEvent, + /** + * Advanced imperative API for snooping on animated events that are passed in + * through props. Use values directly where possible. + * + * See https://reactnative.dev/docs/animated#forkevent + */ + forkEvent: forkEvent, + unforkEvent: unforkEvent, + /** + * Expose Event class, so it can be used as a type for type checkers. + */ + Event: _$$_REQUIRE(_dependencyMap[17], "./AnimatedEvent").AnimatedEvent + }; + exports.default = _default; +},325,[3,326,331,342,343,353,332,354,355,336,356,357,340,358,359,333,351,350],"node_modules/react-native/Libraries/Animated/AnimatedImplementation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + 'use strict'; - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); - if (_newFiber4 !== null) { - if (shouldTrackSideEffects) { - if (_newFiber4.alternate !== null) { - existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); - } - } - lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); - if (previousNewFiber === null) { - resultingFirstChild = _newFiber4; - } else { - previousNewFiber.sibling = _newFiber4; - } - previousNewFiber = _newFiber4; - } - } - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - } - return resultingFirstChild; - } - function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { - if (currentFirstChild !== null && currentFirstChild.tag === HostText) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - var existing = useFiber(currentFirstChild, textContent); - existing.return = returnFiber; - return existing; - } - - deleteRemainingChildren(returnFiber, currentFirstChild); - var created = createFiberFromText(textContent, returnFiber.mode, lanes); - created.return = returnFiber; - return created; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _Animation2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./Animation")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var DecayAnimation = /*#__PURE__*/function (_Animation) { + (0, _inherits2.default)(DecayAnimation, _Animation); + var _super = _createSuper(DecayAnimation); + function DecayAnimation(config) { + var _config$deceleration, _config$isInteraction, _config$iterations; + var _this; + (0, _classCallCheck2.default)(this, DecayAnimation); + _this = _super.call(this); + _this._deceleration = (_config$deceleration = config.deceleration) != null ? _config$deceleration : 0.998; + _this._velocity = config.velocity; + _this._useNativeDriver = _NativeAnimatedHelper.default.shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + return _this; + } + (0, _createClass2.default)(DecayAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + return { + type: 'decay', + deceleration: this._deceleration, + velocity: this._velocity, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + this.__active = true; + this._lastValue = fromValue; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._startTime = Date.now(); + if (this._useNativeDriver) { + this.__startNativeAnimation(animatedValue); + } else { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); } - function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) { - var key = element.key; - var child = currentFirstChild; - while (child !== null) { - if (child.key === key) { - var elementType = element.type; - if (elementType === REACT_FRAGMENT_TYPE) { - if (child.tag === Fragment) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, element.props.children); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; - } - } else { - if (child.elementType === elementType || - isCompatibleFamilyForHotReloading(child, element) || - typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { - deleteRemainingChildren(returnFiber, child.sibling); - var _existing = useFiber(child, element.props); - _existing.ref = coerceRef(returnFiber, child, element); - _existing.return = returnFiber; - { - _existing._debugSource = element._source; - _existing._debugOwner = element._owner; - } - return _existing; - } - } - - deleteRemainingChildren(returnFiber, child); - break; - } else { - deleteChild(returnFiber, child); - } - child = child.sibling; - } - if (element.type === REACT_FRAGMENT_TYPE) { - var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key); - created.return = returnFiber; - return created; - } else { - var _created4 = createFiberFromElement(element, returnFiber.mode, lanes); - _created4.ref = coerceRef(returnFiber, currentFirstChild, element); - _created4.return = returnFiber; - return _created4; - } + } + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + var value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime))); + this._onUpdate(value); + if (Math.abs(this._lastValue - value) < 0.1) { + this.__debouncedOnEnd({ + finished: true + }); + return; } - function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) { - var key = portal.key; - var child = currentFirstChild; - while (child !== null) { - if (child.key === key) { - if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, portal.children || []); - existing.return = returnFiber; - return existing; - } else { - deleteRemainingChildren(returnFiber, child); - break; - } - } else { - deleteChild(returnFiber, child); - } - child = child.sibling; - } - var created = createFiberFromPortal(portal, returnFiber.mode, lanes); - created.return = returnFiber; - return created; + this._lastValue = value; + if (this.__active) { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); } + } + }, { + key: "stop", + value: function stop() { + (0, _get2.default)((0, _getPrototypeOf2.default)(DecayAnimation.prototype), "stop", this).call(this); + this.__active = false; + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + return DecayAnimation; + }(_Animation2.default); + exports.default = DecayAnimation; +},326,[3,12,13,131,49,51,53,327,330],"node_modules/react-native/Libraries/Animated/animations/DecayAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); + var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../EventEmitter/RCTDeviceEventEmitter")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../ReactNative/ReactNativeFeatureFlags")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/Platform")); + var _NativeAnimatedModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeAnimatedModule")); + var _NativeAnimatedTurboModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeAnimatedTurboModule")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { - var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; - if (isUnkeyedTopLevelFragment) { - newChild = newChild.props.children; - } + // TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. + var NativeAnimatedModule = _Platform.default.OS === 'ios' && global.RN$Bridgeless === true ? _NativeAnimatedTurboModule.default : _NativeAnimatedModule.default; + var __nativeAnimatedNodeTagCount = 1; /* used for animated nodes */ + var __nativeAnimationIdCount = 1; /* used for started animations */ - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes)); - case REACT_PORTAL_TYPE: - return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); - case REACT_LAZY_TYPE: - var payload = newChild._payload; - var init = newChild._init; + var nativeEventEmitter; + var waitingForQueuedOperations = new Set(); + var queueOperations = false; + var queue = []; + // $FlowFixMe + var singleOpQueue = []; + var useSingleOpBatching = _Platform.default.OS === 'android' && !!(NativeAnimatedModule != null && NativeAnimatedModule.queueAndExecuteBatchedOperations) && _ReactNativeFeatureFlags.default.animatedShouldUseSingleOp(); + var flushQueueTimeout = null; + var eventListenerGetValueCallbacks = {}; + var eventListenerAnimationFinishedCallbacks = {}; + var globalEventEmitterGetValueListener = null; + var globalEventEmitterAnimationFinishedListener = null; + var nativeOps = useSingleOpBatching ? function () { + var apis = ['createAnimatedNode', + // 1 + 'updateAnimatedNodeConfig', + // 2 + 'getValue', + // 3 + 'startListeningToAnimatedNodeValue', + // 4 + 'stopListeningToAnimatedNodeValue', + // 5 + 'connectAnimatedNodes', + // 6 + 'disconnectAnimatedNodes', + // 7 + 'startAnimatingNode', + // 8 + 'stopAnimation', + // 9 + 'setAnimatedNodeValue', + // 10 + 'setAnimatedNodeOffset', + // 11 + 'flattenAnimatedNodeOffset', + // 12 + 'extractAnimatedNodeOffset', + // 13 + 'connectAnimatedNodeToView', + // 14 + 'disconnectAnimatedNodeFromView', + // 15 + 'restoreDefaultValues', + // 16 + 'dropAnimatedNode', + // 17 + 'addAnimatedEventToView', + // 18 + 'removeAnimatedEventFromView', + // 19 + 'addListener', + // 20 + 'removeListener' // 21 + ]; - return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes); - } - if (isArray(newChild)) { - return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); - } - if (getIteratorFn(newChild)) { - return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); - } - throwOnInvalidObjectType(returnFiber, newChild); - } - if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { - return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, lanes)); - } - { - if (typeof newChild === "function") { - warnOnFunctionType(returnFiber); - } - } + return apis.reduce(function (acc, functionName, i) { + // These indices need to be kept in sync with the indices in native (see NativeAnimatedModule in Java, or the equivalent for any other native platform). + // $FlowFixMe[prop-missing] + acc[functionName] = i + 1; + return acc; + }, {}); + }() : NativeAnimatedModule; - return deleteRemainingChildren(returnFiber, currentFirstChild); - } - return reconcileChildFibers; - } - var reconcileChildFibers = ChildReconciler(true); - var mountChildFibers = ChildReconciler(false); - function cloneChildFibers(current, workInProgress) { - if (current !== null && workInProgress.child !== current.child) { - throw new Error("Resuming work not yet implemented."); - } - if (workInProgress.child === null) { - return; - } - var currentChild = workInProgress.child; - var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); - workInProgress.child = newChild; - newChild.return = workInProgress; - while (currentChild.sibling !== null) { - currentChild = currentChild.sibling; - newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); - newChild.return = workInProgress; + /** + * Wrappers around NativeAnimatedModule to provide flow and autocomplete support for + * the native module methods, and automatic queue management on Android + */ + var API = { + getValue: function getValue(tag, saveValueCallback) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (useSingleOpBatching) { + if (saveValueCallback) { + eventListenerGetValueCallbacks[tag] = saveValueCallback; } - newChild.sibling = null; + // $FlowFixMe + API.queueOperation(nativeOps.getValue, tag); + } else { + API.queueOperation(nativeOps.getValue, tag, saveValueCallback); } - - function resetChildFibers(workInProgress, lanes) { - var child = workInProgress.child; - while (child !== null) { - resetWorkInProgress(child, lanes); - child = child.sibling; - } + }, + setWaitingForIdentifier: function setWaitingForIdentifier(id) { + waitingForQueuedOperations.add(id); + queueOperations = true; + if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush() && flushQueueTimeout) { + clearTimeout(flushQueueTimeout); } - var NO_CONTEXT = {}; - var contextStackCursor$1 = createCursor(NO_CONTEXT); - var contextFiberStackCursor = createCursor(NO_CONTEXT); - var rootInstanceStackCursor = createCursor(NO_CONTEXT); - function requiredContext(c) { - if (c === NO_CONTEXT) { - throw new Error("Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); - } - return c; + }, + unsetWaitingForIdentifier: function unsetWaitingForIdentifier(id) { + waitingForQueuedOperations.delete(id); + if (waitingForQueuedOperations.size === 0) { + queueOperations = false; + API.disableQueue(); } - function getRootHostContainer() { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - return rootInstance; + }, + disableQueue: function disableQueue() { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush()) { + var prevTimeout = flushQueueTimeout; + clearImmediate(prevTimeout); + flushQueueTimeout = setImmediate(API.flushQueue); + } else { + API.flushQueue(); } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - - push(contextFiberStackCursor, fiber, fiber); - - push(contextStackCursor$1, NO_CONTEXT, fiber); - var nextRootContext = getRootHostContext(); + }, + flushQueue: function flushQueue() { + // TODO: (T136971132) + (0, _invariant.default)(NativeAnimatedModule || process.env.NODE_ENV === 'test', 'Native animated module is not available'); + flushQueueTimeout = null; - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); - } - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); + // Early returns before calling any APIs + if (useSingleOpBatching && singleOpQueue.length === 0) { + return; } - function getHostContext() { - var context = requiredContext(contextStackCursor$1.current); - return context; + if (!useSingleOpBatching && queue.length === 0) { + return; } - function pushHostContext(fiber) { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type); - - if (context === nextContext) { - return; + if (useSingleOpBatching) { + // Set up event listener for callbacks if it's not set up + if (!globalEventEmitterGetValueListener || !globalEventEmitterAnimationFinishedListener) { + setupGlobalEventEmitterListeners(); } - - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, nextContext, fiber); - } - function popHostContext(fiber) { - if (contextFiberStackCursor.current !== fiber) { - return; + // Single op batching doesn't use callback functions, instead we + // use RCTDeviceEventEmitter. This reduces overhead of sending lots of + // JSI functions across to native code; but also, TM infrastructure currently + // does not support packing a function into native arrays. + NativeAnimatedModule == null ? void 0 : NativeAnimatedModule.queueAndExecuteBatchedOperations == null ? void 0 : NativeAnimatedModule.queueAndExecuteBatchedOperations(singleOpQueue); + singleOpQueue.length = 0; + } else { + _Platform.default.OS === 'android' && (NativeAnimatedModule == null ? void 0 : NativeAnimatedModule.startOperationBatch == null ? void 0 : NativeAnimatedModule.startOperationBatch()); + for (var q = 0, l = queue.length; q < l; q++) { + queue[q](); } - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); + queue.length = 0; + _Platform.default.OS === 'android' && (NativeAnimatedModule == null ? void 0 : NativeAnimatedModule.finishOperationBatch == null ? void 0 : NativeAnimatedModule.finishOperationBatch()); + } + }, + queueOperation: function queueOperation(fn) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + if (useSingleOpBatching) { + // Get the command ID from the queued function, and push that ID and any arguments needed to execute the operation + // $FlowFixMe: surprise, fn is actually a number + singleOpQueue.push.apply(singleOpQueue, [fn].concat(args)); + return; } - var DefaultSuspenseContext = 0; - - var SubtreeSuspenseContextMask = 1; - - var InvisibleParentSuspenseContext = 1; - var ForceSuspenseFallback = 2; - var suspenseStackCursor = createCursor(DefaultSuspenseContext); - function hasSuspenseContext(parentContext, flag) { - return (parentContext & flag) !== 0; + // If queueing is explicitly on, *or* the queue has not yet + // been flushed, use the queue. This is to prevent operations + // from being executed out of order. + if (queueOperations || queue.length !== 0) { + queue.push(function () { + return fn.apply(void 0, args); + }); + } else { + fn.apply(void 0, args); } - function setDefaultShallowSuspenseContext(parentContext) { - return parentContext & SubtreeSuspenseContextMask; + }, + createAnimatedNode: function createAnimatedNode(tag, config) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.createAnimatedNode, tag, config); + }, + updateAnimatedNodeConfig: function updateAnimatedNodeConfig(tag, config) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (nativeOps.updateAnimatedNodeConfig) { + API.queueOperation(nativeOps.updateAnimatedNodeConfig, tag, config); } - function setShallowSuspenseContext(parentContext, shallowContext) { - return parentContext & SubtreeSuspenseContextMask | shallowContext; + }, + startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.startListeningToAnimatedNodeValue, tag); + }, + stopListeningToAnimatedNodeValue: function stopListeningToAnimatedNodeValue(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.stopListeningToAnimatedNodeValue, tag); + }, + connectAnimatedNodes: function connectAnimatedNodes(parentTag, childTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.connectAnimatedNodes, parentTag, childTag); + }, + disconnectAnimatedNodes: function disconnectAnimatedNodes(parentTag, childTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.disconnectAnimatedNodes, parentTag, childTag); + }, + startAnimatingNode: function startAnimatingNode(animationId, nodeTag, config, endCallback) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + if (useSingleOpBatching) { + if (endCallback) { + eventListenerAnimationFinishedCallbacks[animationId] = endCallback; + } + // $FlowFixMe + API.queueOperation( + // $FlowFixMe[incompatible-call] + nativeOps.startAnimatingNode, animationId, nodeTag, config); + } else { + API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config, endCallback); } - function addSubtreeSuspenseContext(parentContext, subtreeContext) { - return parentContext | subtreeContext; + }, + stopAnimation: function stopAnimation(animationId) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.stopAnimation, animationId); + }, + setAnimatedNodeValue: function setAnimatedNodeValue(nodeTag, value) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.setAnimatedNodeValue, nodeTag, value); + }, + setAnimatedNodeOffset: function setAnimatedNodeOffset(nodeTag, offset) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.setAnimatedNodeOffset, nodeTag, offset); + }, + flattenAnimatedNodeOffset: function flattenAnimatedNodeOffset(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.flattenAnimatedNodeOffset, nodeTag); + }, + extractAnimatedNodeOffset: function extractAnimatedNodeOffset(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.extractAnimatedNodeOffset, nodeTag); + }, + connectAnimatedNodeToView: function connectAnimatedNodeToView(nodeTag, viewTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.connectAnimatedNodeToView, nodeTag, viewTag); + }, + disconnectAnimatedNodeFromView: function disconnectAnimatedNodeFromView(nodeTag, viewTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.disconnectAnimatedNodeFromView, nodeTag, viewTag); + }, + restoreDefaultValues: function restoreDefaultValues(nodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + // Backwards compat with older native runtimes, can be removed later. + if (nativeOps.restoreDefaultValues != null) { + API.queueOperation(nativeOps.restoreDefaultValues, nodeTag); } - function pushSuspenseContext(fiber, newContext) { - push(suspenseStackCursor, newContext, fiber); + }, + dropAnimatedNode: function dropAnimatedNode(tag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.dropAnimatedNode, tag); + }, + addAnimatedEventToView: function addAnimatedEventToView(viewTag, eventName, eventMapping) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.addAnimatedEventToView, viewTag, eventName, eventMapping); + }, + removeAnimatedEventFromView: function removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) { + (0, _invariant.default)(nativeOps, 'Native animated module is not available'); + API.queueOperation(nativeOps.removeAnimatedEventFromView, viewTag, eventName, animatedNodeTag); + } + }; + function setupGlobalEventEmitterListeners() { + globalEventEmitterGetValueListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleGetValue', function (params) { + var tag = params.tag; + var callback = eventListenerGetValueCallbacks[tag]; + if (!callback) { + return; } - function popSuspenseContext(fiber) { - pop(suspenseStackCursor, fiber); + callback(params.value); + delete eventListenerGetValueCallbacks[tag]; + }); + globalEventEmitterAnimationFinishedListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleAnimationFinished', function (params) { + var animationId = params.animationId; + var callback = eventListenerAnimationFinishedCallbacks[animationId]; + if (!callback) { + return; } - function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { - var nextState = workInProgress.memoizedState; - if (nextState !== null) { - if (nextState.dehydrated !== null) { - return true; - } - return false; - } - var props = workInProgress.memoizedProps; + callback(params); + delete eventListenerAnimationFinishedCallbacks[animationId]; + }); + } - { - return true; - } + /** + * Styles allowed by the native animated implementation. + * + * In general native animated implementation should support any numeric or color property that + * doesn't need to be updated through the shadow view hierarchy (all non-layout properties). + */ + var SUPPORTED_COLOR_STYLES = { + backgroundColor: true, + borderBottomColor: true, + borderColor: true, + borderEndColor: true, + borderLeftColor: true, + borderRightColor: true, + borderStartColor: true, + borderTopColor: true, + color: true, + tintColor: true + }; + var SUPPORTED_STYLES = Object.assign({}, SUPPORTED_COLOR_STYLES, { + borderBottomEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderEndEndRadius: true, + borderEndStartRadius: true, + borderRadius: true, + borderTopEndRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + borderStartEndRadius: true, + borderStartStartRadius: true, + elevation: true, + opacity: true, + transform: true, + zIndex: true, + /* ios styles */ + shadowOpacity: true, + shadowRadius: true, + /* legacy android transform properties */ + scaleX: true, + scaleY: true, + translateX: true, + translateY: true + }); + var SUPPORTED_TRANSFORMS = { + translateX: true, + translateY: true, + scale: true, + scaleX: true, + scaleY: true, + rotate: true, + rotateX: true, + rotateY: true, + rotateZ: true, + perspective: true + }; + var SUPPORTED_INTERPOLATION_PARAMS = { + inputRange: true, + outputRange: true, + extrapolate: true, + extrapolateRight: true, + extrapolateLeft: true + }; + function addWhitelistedStyleProp(prop) { + // $FlowFixMe[prop-missing] + SUPPORTED_STYLES[prop] = true; + } + function addWhitelistedTransformProp(prop) { + // $FlowFixMe[prop-missing] + SUPPORTED_TRANSFORMS[prop] = true; + } + function addWhitelistedInterpolationParam(param) { + // $FlowFixMe[prop-missing] + SUPPORTED_INTERPOLATION_PARAMS[param] = true; + } + function isSupportedColorStyleProp(prop) { + return SUPPORTED_COLOR_STYLES.hasOwnProperty(prop); + } + function isSupportedStyleProp(prop) { + return SUPPORTED_STYLES.hasOwnProperty(prop); + } + function isSupportedTransformProp(prop) { + return SUPPORTED_TRANSFORMS.hasOwnProperty(prop); + } + function isSupportedInterpolationParam(param) { + return SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(param); + } + function validateTransform(configs) { + configs.forEach(function (config) { + if (!isSupportedTransformProp(config.property)) { + throw new Error(`Property '${config.property}' is not supported by native animated module`); } - - function findFirstSuspended(row) { - var node = row; - while (node !== null) { - if (node.tag === SuspenseComponent) { - var state = node.memoizedState; - if (state !== null) { - var dehydrated = state.dehydrated; - if (dehydrated === null || isSuspenseInstancePending() || isSuspenseInstanceFallback()) { - return node; - } - } - } else if (node.tag === SuspenseListComponent && - node.memoizedProps.revealOrder !== undefined) { - var didSuspend = (node.flags & DidCapture) !== NoFlags; - if (didSuspend) { - return node; - } - } else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - if (node === row) { - return null; - } - while (node.sibling === null) { - if (node.return === null || node.return === row) { - return null; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - return null; + }); + } + function validateStyles(styles) { + for (var _key2 in styles) { + if (!isSupportedStyleProp(_key2)) { + throw new Error(`Style property '${_key2}' is not supported by native animated module`); } - var NoFlags$1 = - 0; - - var HasEffect = - 1; - - var Insertion = - 2; - var Layout = - 4; - var Passive$1 = - 8; - - var workInProgressSources = []; - function resetWorkInProgressVersions() { - for (var i = 0; i < workInProgressSources.length; i++) { - var mutableSource = workInProgressSources[i]; - { - mutableSource._workInProgressVersionSecondary = null; - } + } + } + function validateInterpolation(config) { + for (var _key3 in config) { + if (!isSupportedInterpolationParam(_key3)) { + throw new Error(`Interpolation property '${_key3}' is not supported by native animated module`); + } + } + } + function generateNewNodeTag() { + return __nativeAnimatedNodeTagCount++; + } + function generateNewAnimationId() { + return __nativeAnimationIdCount++; + } + function assertNativeAnimatedModule() { + (0, _invariant.default)(NativeAnimatedModule, 'Native animated module is not available'); + } + var _warnedMissingNativeAnimated = false; + function shouldUseNativeDriver(config) { + if (config.useNativeDriver == null) { + console.warn('Animated: `useNativeDriver` was not specified. This is a required ' + 'option and must be explicitly set to `true` or `false`'); + } + if (config.useNativeDriver === true && !NativeAnimatedModule) { + if (process.env.NODE_ENV !== 'test') { + if (!_warnedMissingNativeAnimated) { + console.warn('Animated: `useNativeDriver` is not supported because the native ' + 'animated module is missing. Falling back to JS-based animation. To ' + 'resolve this, add `RCTAnimation` module to this app, or remove ' + '`useNativeDriver`. ' + 'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md'); + _warnedMissingNativeAnimated = true; } - workInProgressSources.length = 0; } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; - var didWarnAboutMismatchedHooksForComponent; - var didWarnUncachedGetSnapshot; - { - didWarnAboutMismatchedHooksForComponent = new Set(); + return false; + } + return config.useNativeDriver || false; + } + function transformDataType(value) { + // Change the string type to number type so we can reuse the same logic in + // iOS and Android platform + if (typeof value !== 'string') { + return value; + } + if (/deg$/.test(value)) { + var degrees = parseFloat(value) || 0; + var radians = degrees * Math.PI / 180.0; + return radians; + } else { + return value; + } + } + var _default = { + API: API, + isSupportedColorStyleProp: isSupportedColorStyleProp, + isSupportedStyleProp: isSupportedStyleProp, + isSupportedTransformProp: isSupportedTransformProp, + isSupportedInterpolationParam: isSupportedInterpolationParam, + addWhitelistedStyleProp: addWhitelistedStyleProp, + addWhitelistedTransformProp: addWhitelistedTransformProp, + addWhitelistedInterpolationParam: addWhitelistedInterpolationParam, + validateStyles: validateStyles, + validateTransform: validateTransform, + validateInterpolation: validateInterpolation, + generateNewNodeTag: generateNewNodeTag, + generateNewAnimationId: generateNewAnimationId, + assertNativeAnimatedModule: assertNativeAnimatedModule, + shouldUseNativeDriver: shouldUseNativeDriver, + transformDataType: transformDataType, + // $FlowExpectedError[unsafe-getters-setters] - unsafe getter lint suppression + // $FlowExpectedError[missing-type-arg] - unsafe getter lint suppression + get nativeEventEmitter() { + if (!nativeEventEmitter) { + // $FlowFixMe[underconstrained-implicit-instantiation] + nativeEventEmitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior + _Platform.default.OS !== 'ios' ? null : NativeAnimatedModule); } + return nativeEventEmitter; + } + }; + exports.default = _default; +},327,[3,151,4,139,17,328,329,20],"node_modules/react-native/Libraries/Animated/NativeAnimatedHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + // The config has different keys depending on the type of the Node + // TODO(T54896888): Make these types strict + var _default = TurboModuleRegistry.get('NativeAnimatedModule'); + exports.default = _default; +},328,[19],"node_modules/react-native/Libraries/Animated/NativeAnimatedModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + // The config has different keys depending on the type of the Node + // TODO(T54896888): Make these types strict + var _default = TurboModuleRegistry.get('NativeAnimatedTurboModule'); + exports.default = _default; +},329,[19],"node_modules/react-native/Libraries/Animated/NativeAnimatedTurboModule.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var renderLanes = NoLanes; - - var currentlyRenderingFiber$1 = null; - - var currentHook = null; - var workInProgressHook = null; - - var didScheduleRenderPhaseUpdate = false; - - var didScheduleRenderPhaseUpdateDuringThisPass = false; - - var globalClientIdCounter = 0; - var RE_RENDER_LIMIT = 25; - - var currentHookNameInDev = null; + 'use strict'; - var hookTypesDev = null; - var hookTypesUpdateIndexDev = -1; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../NativeAnimatedHelper")); + var startNativeAnimationNextId = 1; - var ignorePreviousDependencies = false; - function mountHookTypesDev() { - { - var hookName = currentHookNameInDev; - if (hookTypesDev === null) { - hookTypesDev = [hookName]; - } else { - hookTypesDev.push(hookName); - } + // Important note: start() and stop() will only be called at most once. + // Once an animation has been stopped or finished its course, it will + // not be reused. + var Animation = /*#__PURE__*/function () { + function Animation() { + (0, _classCallCheck2.default)(this, Animation); + } + (0, _createClass2.default)(Animation, [{ + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} + }, { + key: "stop", + value: function stop() { + if (this.__nativeId) { + _NativeAnimatedHelper.default.API.stopAnimation(this.__nativeId); } } - function updateHookTypesDev() { - { - var hookName = currentHookNameInDev; - if (hookTypesDev !== null) { - hookTypesUpdateIndexDev++; - if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { - warnOnHookMismatchInDev(hookName); - } - } - } + }, { + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + // Subclasses that have corresponding animation implementation done in native + // should override this method + throw new Error('This animation type cannot be offloaded to native'); } - function checkDepsAreArrayDev(deps) { - { - if (deps !== undefined && deps !== null && !isArray(deps)) { - error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps); - } + // Helper function for subclasses to make sure onEnd is only called once. + }, { + key: "__debouncedOnEnd", + value: function __debouncedOnEnd(result) { + var onEnd = this.__onEnd; + this.__onEnd = null; + onEnd && onEnd(result); + } + }, { + key: "__startNativeAnimation", + value: function __startNativeAnimation(animatedValue) { + var startNativeAnimationWaitId = `${startNativeAnimationNextId}:startAnimation`; + startNativeAnimationNextId += 1; + _NativeAnimatedHelper.default.API.setWaitingForIdentifier(startNativeAnimationWaitId); + try { + var config = this.__getNativeAnimationConfig(); + animatedValue.__makeNative(config.platformConfig); + this.__nativeId = _NativeAnimatedHelper.default.generateNewAnimationId(); + _NativeAnimatedHelper.default.API.startAnimatingNode(this.__nativeId, animatedValue.__getNativeTag(), config, + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + this.__debouncedOnEnd.bind(this)); + } catch (e) { + throw e; + } finally { + _NativeAnimatedHelper.default.API.unsetWaitingForIdentifier(startNativeAnimationWaitId); } } - function warnOnHookMismatchInDev(currentHookName) { - { - var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); - if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { - didWarnAboutMismatchedHooksForComponent.add(componentName); - if (hookTypesDev !== null) { - var table = ""; - var secondColumnStart = 30; - for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { - var oldHookName = hookTypesDev[i]; - var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; - var row = i + 1 + ". " + oldHookName; + }]); + return Animation; + }(); + exports.default = Animation; +},330,[3,12,13,327],"node_modules/react-native/Libraries/Animated/animations/Animation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - while (row.length < secondColumnStart) { - row += " "; - } - row += newHookName + "\n"; - table += row; - } - error("React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); - } - } - } + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../nodes/AnimatedColor")); + var SpringConfig = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "../SpringConfig")); + var _Animation2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./Animation")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "invariant")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var SpringAnimation = /*#__PURE__*/function (_Animation) { + (0, _inherits2.default)(SpringAnimation, _Animation); + var _super = _createSuper(SpringAnimation); + function SpringAnimation(config) { + var _config$overshootClam, _config$restDisplacem, _config$restSpeedThre, _config$velocity, _config$velocity2, _config$delay, _config$isInteraction, _config$iterations; + var _this; + (0, _classCallCheck2.default)(this, SpringAnimation); + _this = _super.call(this); + _this._overshootClamping = (_config$overshootClam = config.overshootClamping) != null ? _config$overshootClam : false; + _this._restDisplacementThreshold = (_config$restDisplacem = config.restDisplacementThreshold) != null ? _config$restDisplacem : 0.001; + _this._restSpeedThreshold = (_config$restSpeedThre = config.restSpeedThreshold) != null ? _config$restSpeedThre : 0.001; + _this._initialVelocity = (_config$velocity = config.velocity) != null ? _config$velocity : 0; + _this._lastVelocity = (_config$velocity2 = config.velocity) != null ? _config$velocity2 : 0; + _this._toValue = config.toValue; + _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; + _this._useNativeDriver = _NativeAnimatedHelper.default.shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + if (config.stiffness !== undefined || config.damping !== undefined || config.mass !== undefined) { + var _config$stiffness, _config$damping, _config$mass; + (0, _invariant.default)(config.bounciness === undefined && config.speed === undefined && config.tension === undefined && config.friction === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + _this._stiffness = (_config$stiffness = config.stiffness) != null ? _config$stiffness : 100; + _this._damping = (_config$damping = config.damping) != null ? _config$damping : 10; + _this._mass = (_config$mass = config.mass) != null ? _config$mass : 1; + } else if (config.bounciness !== undefined || config.speed !== undefined) { + var _config$bounciness, _config$speed; + // Convert the origami bounciness/speed values to stiffness/damping + // We assume mass is 1. + (0, _invariant.default)(config.tension === undefined && config.friction === undefined && config.stiffness === undefined && config.damping === undefined && config.mass === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + var springConfig = SpringConfig.fromBouncinessAndSpeed((_config$bounciness = config.bounciness) != null ? _config$bounciness : 8, (_config$speed = config.speed) != null ? _config$speed : 12); + _this._stiffness = springConfig.stiffness; + _this._damping = springConfig.damping; + _this._mass = 1; + } else { + var _config$tension, _config$friction; + // Convert the origami tension/friction values to stiffness/damping + // We assume mass is 1. + var _springConfig = SpringConfig.fromOrigamiTensionAndFriction((_config$tension = config.tension) != null ? _config$tension : 40, (_config$friction = config.friction) != null ? _config$friction : 7); + _this._stiffness = _springConfig.stiffness; + _this._damping = _springConfig.damping; + _this._mass = 1; } - function throwInvalidHookError() { - throw new 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:\n" + "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + (0, _invariant.default)(_this._stiffness > 0, 'Stiffness value must be greater than 0'); + (0, _invariant.default)(_this._damping > 0, 'Damping value must be greater than 0'); + (0, _invariant.default)(_this._mass > 0, 'Mass value must be greater than 0'); + return _this; + } + (0, _createClass2.default)(SpringAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + var _this$_initialVelocit; + return { + type: 'spring', + overshootClamping: this._overshootClamping, + restDisplacementThreshold: this._restDisplacementThreshold, + restSpeedThreshold: this._restSpeedThreshold, + stiffness: this._stiffness, + damping: this._damping, + mass: this._mass, + initialVelocity: (_this$_initialVelocit = this._initialVelocity) != null ? _this$_initialVelocit : this._lastVelocity, + toValue: this._toValue, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; } - function areHookInputsEqual(nextDeps, prevDeps) { - { - if (ignorePreviousDependencies) { - return false; - } - } - if (prevDeps === null) { - { - error("%s received a final argument during this render, but not during " + "the previous render. Even though the final argument is optional, " + "its type cannot change between renders.", currentHookNameInDev); - } - return false; - } - { - if (nextDeps.length !== prevDeps.length) { - error("The final argument passed to %s changed size between renders. The " + "order and size of this array must remain constant.\n\n" + "Previous: %s\n" + "Incoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); - } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + this.__active = true; + this._startPosition = fromValue; + this._lastPosition = this._startPosition; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._lastTime = Date.now(); + this._frameTime = 0.0; + if (previousAnimation instanceof SpringAnimation) { + var internalState = previousAnimation.getInternalState(); + this._lastPosition = internalState.lastPosition; + this._lastVelocity = internalState.lastVelocity; + // Set the initial velocity to the last velocity + this._initialVelocity = this._lastVelocity; + this._lastTime = internalState.lastTime; } - for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { - if (objectIs(nextDeps[i], prevDeps[i])) { - continue; + var start = function start() { + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2.onUpdate(); } - return false; + }; + + // If this._delay is more than 0, we start after the timeout. + if (this._delay) { + this._timeout = setTimeout(start, this._delay); + } else { + start(); } - return true; } - function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber$1 = workInProgress; - { - hookTypesDev = current !== null ? current._debugHookTypes : null; - hookTypesUpdateIndexDev = -1; + }, { + key: "getInternalState", + value: function getInternalState() { + return { + lastPosition: this._lastPosition, + lastVelocity: this._lastVelocity, + lastTime: this._lastTime + }; + } - ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; + /** + * This spring model is based off of a damped harmonic oscillator + * (https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator). + * + * We use the closed form of the second order differential equation: + * + * x'' + (2ฮถโต_0)x' + โต^2x = 0 + * + * where + * โต_0 = โˆš(k / m) (undamped angular frequency of the oscillator), + * ฮถ = c / 2โˆšmk (damping ratio), + * c = damping constant + * k = stiffness + * m = mass + * + * The derivation of the closed form is described in detail here: + * http://planetmath.org/sites/default/files/texpdf/39745.pdf + * + * This algorithm happens to match the algorithm used by CASpringAnimation, + * a QuartzCore (iOS) API that creates spring animations. + */ + }, { + key: "onUpdate", + value: function onUpdate() { + // If for some reason we lost a lot of frames (e.g. process large payload or + // stopped in the debugger), we only advance by 4 frames worth of + // computation and will continue on the next frame. It's better to have it + // running at faster speed than jumping to the end. + var MAX_STEPS = 64; + var now = Date.now(); + if (now > this._lastTime + MAX_STEPS) { + now = this._lastTime + MAX_STEPS; } - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - workInProgress.lanes = NoLanes; + var deltaTime = (now - this._lastTime) / 1000; + this._frameTime += deltaTime; + var c = this._damping; + var m = this._mass; + var k = this._stiffness; + var v0 = -this._initialVelocity; + var zeta = c / (2 * Math.sqrt(k * m)); // damping ratio + var omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms) + var omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); // exponential decay + var x0 = this._toValue - this._startPosition; // calculate the oscillation from x0 = 1 to x = 0 - { - if (current !== null && current.memoizedState !== null) { - ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; - } else if (hookTypesDev !== null) { - ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; - } else { - ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; - } + var position = 0.0; + var velocity = 0.0; + var t = this._frameTime; + if (zeta < 1) { + // Under damped + var envelope = Math.exp(-zeta * omega0 * t); + position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)); + // This looks crazy -- it's actually just the derivative of the + // oscillation function + velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t)); + } else { + // Critically damped + var _envelope = Math.exp(-omega0 * t); + position = this._toValue - _envelope * (x0 + (v0 + omega0 * x0) * t); + velocity = _envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0)); } - var children = Component(props, secondArg); - - if (didScheduleRenderPhaseUpdateDuringThisPass) { - var numberOfReRenders = 0; - do { - didScheduleRenderPhaseUpdateDuringThisPass = false; - if (numberOfReRenders >= RE_RENDER_LIMIT) { - throw new Error("Too many re-renders. React limits the number of renders to prevent " + "an infinite loop."); - } - numberOfReRenders += 1; - { - ignorePreviousDependencies = false; - } - - currentHook = null; - workInProgressHook = null; - workInProgress.updateQueue = null; - { - hookTypesUpdateIndexDev = -1; - } - ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; - children = Component(props, secondArg); - } while (didScheduleRenderPhaseUpdateDuringThisPass); - } - - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - { - workInProgress._debugHookTypes = hookTypesDev; - } - - var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - renderLanes = NoLanes; - currentlyRenderingFiber$1 = null; - currentHook = null; - workInProgressHook = null; - { - currentHookNameInDev = null; - hookTypesDev = null; - hookTypesUpdateIndexDev = -1; - - if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && - (current.mode & ConcurrentMode) !== NoMode) { - error("Internal React error: Expected static flag was missing. Please " + "notify the React team."); - } - } - didScheduleRenderPhaseUpdate = false; - - if (didRenderTooFewHooks) { - throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental " + "early return statement."); + this._lastTime = now; + this._lastPosition = position; + this._lastVelocity = velocity; + this._onUpdate(position); + if (!this.__active) { + // a listener might have stopped us in _onUpdate + return; } - return children; - } - function bailoutHooks(current, workInProgress, lanes) { - workInProgress.updateQueue = current.updateQueue; - { - workInProgress.flags &= ~(Passive | Update); - } - current.lanes = removeLanes(current.lanes, lanes); - } - function resetHooksAfterThrow() { - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - if (didScheduleRenderPhaseUpdate) { - var hook = currentlyRenderingFiber$1.memoizedState; - while (hook !== null) { - var queue = hook.queue; - if (queue !== null) { - queue.pending = null; - } - hook = hook.next; - } - didScheduleRenderPhaseUpdate = false; - } - renderLanes = NoLanes; - currentlyRenderingFiber$1 = null; - currentHook = null; - workInProgressHook = null; - { - hookTypesDev = null; - hookTypesUpdateIndexDev = -1; - currentHookNameInDev = null; - isUpdatingOpaqueValueInRenderPhase = false; - } - didScheduleRenderPhaseUpdateDuringThisPass = false; - } - function mountWorkInProgressHook() { - var hook = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - if (workInProgressHook === null) { - currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; - } else { - workInProgressHook = workInProgressHook.next = hook; - } - return workInProgressHook; - } - function updateWorkInProgressHook() { - var nextCurrentHook; - if (currentHook === null) { - var current = currentlyRenderingFiber$1.alternate; - if (current !== null) { - nextCurrentHook = current.memoizedState; + // Conditions for stopping the spring animation + var isOvershooting = false; + if (this._overshootClamping && this._stiffness !== 0) { + if (this._startPosition < this._toValue) { + isOvershooting = position > this._toValue; } else { - nextCurrentHook = null; + isOvershooting = position < this._toValue; } - } else { - nextCurrentHook = currentHook.next; } - var nextWorkInProgressHook; - if (workInProgressHook === null) { - nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; - } else { - nextWorkInProgressHook = workInProgressHook.next; + var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold; + var isDisplacement = true; + if (this._stiffness !== 0) { + isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold; } - if (nextWorkInProgressHook !== null) { - workInProgressHook = nextWorkInProgressHook; - nextWorkInProgressHook = workInProgressHook.next; - currentHook = nextCurrentHook; - } else { - if (nextCurrentHook === null) { - throw new Error("Rendered more hooks than during the previous render."); - } - currentHook = nextCurrentHook; - var newHook = { - memoizedState: currentHook.memoizedState, - baseState: currentHook.baseState, - baseQueue: currentHook.baseQueue, - queue: currentHook.queue, - next: null - }; - if (workInProgressHook === null) { - currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; - } else { - workInProgressHook = workInProgressHook.next = newHook; + if (isOvershooting || isVelocity && isDisplacement) { + if (this._stiffness !== 0) { + // Ensure that we end up with a round value + this._lastPosition = this._toValue; + this._lastVelocity = 0; + this._onUpdate(this._toValue); } + this.__debouncedOnEnd({ + finished: true + }); + return; } - return workInProgressHook; + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); } - function createFunctionComponentUpdateQueue() { - return { - lastEffect: null, - stores: null - }; + }, { + key: "stop", + value: function stop() { + (0, _get2.default)((0, _getPrototypeOf2.default)(SpringAnimation.prototype), "stop", this).call(this); + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); } - function basicStateReducer(state, action) { - return typeof action === "function" ? action(state) : action; + }]); + return SpringAnimation; + }(_Animation2.default); + exports.default = SpringAnimation; +},331,[3,12,13,131,49,51,53,327,332,341,330,20],"node_modules/react-native/Libraries/Animated/animations/SpringAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../StyleSheet/normalizeColor")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper")); + var _AnimatedValue = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var NativeAnimatedAPI = _NativeAnimatedHelper.default.API; + var defaultColor = { + r: 0, + g: 0, + b: 0, + a: 1.0 + }; + + /* eslint no-bitwise: 0 */ + function processColor(color) { + if (color === undefined || color === null) { + return null; + } + if (isRgbaValue(color)) { + // $FlowIgnore[incompatible-cast] - Type is verified above + return color; + } + var normalizedColor = (0, _normalizeColor.default)( + // $FlowIgnore[incompatible-cast] - Type is verified above + color); + if (normalizedColor === undefined || normalizedColor === null) { + return null; + } + if (typeof normalizedColor === 'object') { + var processedColorObj = (0, _$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/PlatformColorValueTypes").processColorObject)(normalizedColor); + if (processedColorObj != null) { + return processedColorObj; } - function mountReducer(reducer, initialArg, init) { - var hook = mountWorkInProgressHook(); - var initialState; - if (init !== undefined) { - initialState = init(initialArg); + } else if (typeof normalizedColor === 'number') { + var r = (normalizedColor & 0xff000000) >>> 24; + var g = (normalizedColor & 0x00ff0000) >>> 16; + var b = (normalizedColor & 0x0000ff00) >>> 8; + var a = (normalizedColor & 0x000000ff) / 255; + return { + r: r, + g: g, + b: b, + a: a + }; + } + return null; + } + function isRgbaValue(value) { + return value && typeof value.r === 'number' && typeof value.g === 'number' && typeof value.b === 'number' && typeof value.a === 'number'; + } + function isRgbaAnimatedValue(value) { + return value && value.r instanceof _AnimatedValue.default && value.g instanceof _AnimatedValue.default && value.b instanceof _AnimatedValue.default && value.a instanceof _AnimatedValue.default; + } + var AnimatedColor = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedColor, _AnimatedWithChildren); + var _super = _createSuper(AnimatedColor); + function AnimatedColor(valueIn, config) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedColor); + _this = _super.call(this); + _this._suspendCallbacks = 0; + var value = valueIn != null ? valueIn : defaultColor; + if (isRgbaAnimatedValue(value)) { + // $FlowIgnore[incompatible-cast] - Type is verified above + var rgbaAnimatedValue = value; + _this.r = rgbaAnimatedValue.r; + _this.g = rgbaAnimatedValue.g; + _this.b = rgbaAnimatedValue.b; + _this.a = rgbaAnimatedValue.a; + } else { + var _processColor; + var processedColor = // $FlowIgnore[incompatible-cast] - Type is verified above + (_processColor = processColor(value)) != null ? _processColor : defaultColor; + var initColor = defaultColor; + if (isRgbaValue(processedColor)) { + // $FlowIgnore[incompatible-cast] - Type is verified above + initColor = processedColor; } else { - initialState = initialArg; + // $FlowIgnore[incompatible-cast] - Type is verified above + _this.nativeColor = processedColor; } - hook.memoizedState = hook.baseState = initialState; - var queue = { - pending: null, - interleaved: null, - lanes: NoLanes, - dispatch: null, - lastRenderedReducer: reducer, - lastRenderedState: initialState - }; - hook.queue = queue; - var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue); - return [hook.memoizedState, dispatch]; + _this.r = new _AnimatedValue.default(initColor.r); + _this.g = new _AnimatedValue.default(initColor.g); + _this.b = new _AnimatedValue.default(initColor.b); + _this.a = new _AnimatedValue.default(initColor.a); } - function updateReducer(reducer, initialArg, init) { - var hook = updateWorkInProgressHook(); - var queue = hook.queue; - if (queue === null) { - throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); - } - queue.lastRenderedReducer = reducer; - var current = currentHook; - - var baseQueue = current.baseQueue; + if (config != null && config.useNativeDriver) { + _this.__makeNative(); + } + return _this; + } - var pendingQueue = queue.pending; - if (pendingQueue !== null) { - if (baseQueue !== null) { - var baseFirst = baseQueue.next; - var pendingFirst = pendingQueue.next; - baseQueue.next = pendingFirst; - pendingQueue.next = baseFirst; - } - { - if (current.baseQueue !== baseQueue) { - error("Internal error: Expected work-in-progress queue to be a clone. " + "This is a bug in React."); - } - } - current.baseQueue = baseQueue = pendingQueue; - queue.pending = null; + /** + * Directly set the value. This will stop any animations running on the value + * and update all the bound properties. + */ + (0, _createClass2.default)(AnimatedColor, [{ + key: "setValue", + value: function setValue(value) { + var _processColor2, + _this2 = this; + var shouldUpdateNodeConfig = false; + if (this.__isNative) { + var nativeTag = this.__getNativeTag(); + NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString()); } - if (baseQueue !== null) { - var first = baseQueue.next; - var newState = current.baseState; - var newBaseState = null; - var newBaseQueueFirst = null; - var newBaseQueueLast = null; - var update = first; - do { - var updateLane = update.lane; - if (!isSubsetOfLanes(renderLanes, updateLane)) { - var clone = { - lane: updateLane, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }; - if (newBaseQueueLast === null) { - newBaseQueueFirst = newBaseQueueLast = clone; - newBaseState = newState; - } else { - newBaseQueueLast = newBaseQueueLast.next = clone; - } - - currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); - markSkippedUpdateLanes(updateLane); - } else { - if (newBaseQueueLast !== null) { - var _clone = { - lane: NoLane, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }; - newBaseQueueLast = newBaseQueueLast.next = _clone; - } - - if (update.hasEagerState) { - newState = update.eagerState; - } else { - var action = update.action; - newState = reducer(newState, action); - } + var processedColor = (_processColor2 = processColor(value)) != null ? _processColor2 : defaultColor; + this._withSuspendedCallbacks(function () { + if (isRgbaValue(processedColor)) { + // $FlowIgnore[incompatible-type] - Type is verified above + var rgbaValue = processedColor; + _this2.r.setValue(rgbaValue.r); + _this2.g.setValue(rgbaValue.g); + _this2.b.setValue(rgbaValue.b); + _this2.a.setValue(rgbaValue.a); + if (_this2.nativeColor != null) { + _this2.nativeColor = null; + shouldUpdateNodeConfig = true; } - update = update.next; - } while (update !== null && update !== first); - if (newBaseQueueLast === null) { - newBaseState = newState; } else { - newBaseQueueLast.next = newBaseQueueFirst; + // $FlowIgnore[incompatible-type] - Type is verified above + var nativeColor = processedColor; + if (_this2.nativeColor !== nativeColor) { + _this2.nativeColor = nativeColor; + shouldUpdateNodeConfig = true; + } } - - if (!objectIs(newState, hook.memoizedState)) { - markWorkInProgressReceivedUpdate(); + }); + if (this.__isNative) { + var _nativeTag = this.__getNativeTag(); + if (shouldUpdateNodeConfig) { + NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()); } - hook.memoizedState = newState; - hook.baseState = newBaseState; - hook.baseQueue = newBaseQueueLast; - queue.lastRenderedState = newState; + NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString()); + } else { + (0, _AnimatedValue.flushValue)(this); } - var lastInterleaved = queue.interleaved; - if (lastInterleaved !== null) { - var interleaved = lastInterleaved; - do { - var interleavedLane = interleaved.lane; - currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane); - markSkippedUpdateLanes(interleavedLane); - interleaved = interleaved.next; - } while (interleaved !== lastInterleaved); - } else if (baseQueue === null) { - queue.lanes = NoLanes; - } - var dispatch = queue.dispatch; - return [hook.memoizedState, dispatch]; + // $FlowFixMe[incompatible-call] + this.__callListeners(this.__getValue()); } - function rerenderReducer(reducer, initialArg, init) { - var hook = updateWorkInProgressHook(); - var queue = hook.queue; - if (queue === null) { - throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); - } - queue.lastRenderedReducer = reducer; - - var dispatch = queue.dispatch; - var lastRenderPhaseUpdate = queue.pending; - var newState = hook.memoizedState; - if (lastRenderPhaseUpdate !== null) { - queue.pending = null; - var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; - var update = firstRenderPhaseUpdate; - do { - var action = update.action; - newState = reducer(newState, action); - update = update.next; - } while (update !== firstRenderPhaseUpdate); - - if (!objectIs(newState, hook.memoizedState)) { - markWorkInProgressReceivedUpdate(); - } - hook.memoizedState = newState; - if (hook.baseQueue === null) { - hook.baseState = newState; - } - queue.lastRenderedState = newState; - } - return [newState, dispatch]; - } - function mountMutableSource(source, getSnapshot, subscribe) { - { - return undefined; - } - } - function updateMutableSource(source, getSnapshot, subscribe) { - { - return undefined; - } + /** + * Sets an offset that is applied on top of whatever value is set, whether + * via `setValue`, an animation, or `Animated.event`. Useful for compensating + * things like the start of a pan gesture. + */ + }, { + key: "setOffset", + value: function setOffset(offset) { + this.r.setOffset(offset.r); + this.g.setOffset(offset.g); + this.b.setOffset(offset.b); + this.a.setOffset(offset.a); } - function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber$1; - var hook = mountWorkInProgressHook(); - var nextSnapshot; - { - nextSnapshot = getSnapshot(); - { - if (!didWarnUncachedGetSnapshot) { - var cachedSnapshot = getSnapshot(); - if (!objectIs(nextSnapshot, cachedSnapshot)) { - error("The result of getSnapshot should be cached to avoid an infinite loop"); - didWarnUncachedGetSnapshot = true; - } - } - } - - var root = getWorkInProgressRoot(); - if (root === null) { - throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - } - if (!includesBlockingLane(root, renderLanes)) { - pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - } - } - - hook.memoizedState = nextSnapshot; - var inst = { - value: nextSnapshot, - getSnapshot: getSnapshot - }; - hook.queue = inst; - mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); - - fiber.flags |= Passive; - pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); - return nextSnapshot; + /** + * Merges the offset value into the base value and resets the offset to zero. + * The final output of the value is unchanged. + */ + }, { + key: "flattenOffset", + value: function flattenOffset() { + this.r.flattenOffset(); + this.g.flattenOffset(); + this.b.flattenOffset(); + this.a.flattenOffset(); } - function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber$1; - var hook = updateWorkInProgressHook(); - var nextSnapshot = getSnapshot(); - { - if (!didWarnUncachedGetSnapshot) { - var cachedSnapshot = getSnapshot(); - if (!objectIs(nextSnapshot, cachedSnapshot)) { - error("The result of getSnapshot should be cached to avoid an infinite loop"); - didWarnUncachedGetSnapshot = true; - } - } - } - var prevSnapshot = hook.memoizedState; - var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot); - if (snapshotChanged) { - hook.memoizedState = nextSnapshot; - markWorkInProgressReceivedUpdate(); - } - var inst = hook.queue; - updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + /** + * Sets the offset value to the base value, and resets the base value to + * zero. The final output of the value is unchanged. + */ + }, { + key: "extractOffset", + value: function extractOffset() { + this.r.extractOffset(); + this.g.extractOffset(); + this.b.extractOffset(); + this.a.extractOffset(); + } - if (inst.getSnapshot !== getSnapshot || snapshotChanged || - workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { - fiber.flags |= Passive; - pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); + /** + * Stops any running animation or tracking. `callback` is invoked with the + * final value after stopping the animation, which is useful for updating + * state to match the animation position with layout. + */ + }, { + key: "stopAnimation", + value: function stopAnimation(callback) { + this.r.stopAnimation(); + this.g.stopAnimation(); + this.b.stopAnimation(); + this.a.stopAnimation(); + callback && callback(this.__getValue()); + } - var root = getWorkInProgressRoot(); - if (root === null) { - throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - } - if (!includesBlockingLane(root, renderLanes)) { - pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - } - } - return nextSnapshot; + /** + * Stops any animation and resets the value to its original. + */ + }, { + key: "resetAnimation", + value: function resetAnimation(callback) { + this.r.resetAnimation(); + this.g.resetAnimation(); + this.b.resetAnimation(); + this.a.resetAnimation(); + callback && callback(this.__getValue()); } - function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { - fiber.flags |= StoreConsistency; - var check = { - getSnapshot: getSnapshot, - value: renderedSnapshot - }; - var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; - if (componentUpdateQueue === null) { - componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; - componentUpdateQueue.stores = [check]; + }, { + key: "__getValue", + value: function __getValue() { + if (this.nativeColor != null) { + return this.nativeColor; } else { - var stores = componentUpdateQueue.stores; - if (stores === null) { - componentUpdateQueue.stores = [check]; - } else { - stores.push(check); - } + return `rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`; } } - function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { - inst.value = nextSnapshot; - inst.getSnapshot = getSnapshot; - - if (checkIfSnapshotChanged(inst)) { - forceStoreRerender(fiber); - } + }, { + key: "__attach", + value: function __attach() { + this.r.__addChild(this); + this.g.__addChild(this); + this.b.__addChild(this); + this.a.__addChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__attach", this).call(this); } - function subscribeToStore(fiber, inst, subscribe) { - var handleStoreChange = function handleStoreChange() { - if (checkIfSnapshotChanged(inst)) { - forceStoreRerender(fiber); - } - }; - - return subscribe(handleStoreChange); + }, { + key: "__detach", + value: function __detach() { + this.r.__removeChild(this); + this.g.__removeChild(this); + this.b.__removeChild(this); + this.a.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__detach", this).call(this); } - function checkIfSnapshotChanged(inst) { - var latestGetSnapshot = inst.getSnapshot; - var prevValue = inst.value; - try { - var nextValue = latestGetSnapshot(); - return !objectIs(prevValue, nextValue); - } catch (error) { - return true; + }, { + key: "_withSuspendedCallbacks", + value: function _withSuspendedCallbacks(callback) { + this._suspendCallbacks++; + callback(); + this._suspendCallbacks--; + } + }, { + key: "__callListeners", + value: function __callListeners(value) { + if (this._suspendCallbacks === 0) { + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__callListeners", this).call(this, value); } } - function forceStoreRerender(fiber) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.r.__makeNative(platformConfig); + this.g.__makeNative(platformConfig); + this.b.__makeNative(platformConfig); + this.a.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__makeNative", this).call(this, platformConfig); } - function mountState(initialState) { - var hook = mountWorkInProgressHook(); - if (typeof initialState === "function") { - initialState = initialState(); - } - hook.memoizedState = hook.baseState = initialState; - var queue = { - pending: null, - interleaved: null, - lanes: NoLanes, - dispatch: null, - lastRenderedReducer: basicStateReducer, - lastRenderedState: initialState + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'color', + r: this.r.__getNativeTag(), + g: this.g.__getNativeTag(), + b: this.b.__getNativeTag(), + a: this.a.__getNativeTag(), + nativeColor: this.nativeColor }; - hook.queue = queue; - var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); - return [hook.memoizedState, dispatch]; } - function updateState(initialState) { - return updateReducer(basicStateReducer); + }]); + return AnimatedColor; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedColor; +},332,[3,12,13,131,49,51,53,175,327,333,339,177],"node_modules/react-native/Libraries/Animated/nodes/AnimatedColor.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + exports.flushValue = flushValue; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _InteractionManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Interaction/InteractionManager")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedInterpolation")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var NativeAnimatedAPI = _NativeAnimatedHelper.default.API; + + /** + * Animated works by building a directed acyclic graph of dependencies + * transparently when you render your Animated components. + * + * new Animated.Value(0) + * .interpolate() .interpolate() new Animated.Value(1) + * opacity translateY scale + * style transform + * View#234 style + * View#123 + * + * A) Top Down phase + * When an Animated.Value is updated, we recursively go down through this + * graph in order to find leaf nodes: the views that we flag as needing + * an update. + * + * B) Bottom Up phase + * When a view is flagged as needing an update, we recursively go back up + * in order to build the new value that it needs. The reason why we need + * this two-phases process is to deal with composite props such as + * transform which can receive values from multiple parents. + */ + function flushValue(rootNode) { + var leaves = new Set(); + function findAnimatedStyles(node) { + // $FlowFixMe[prop-missing] + if (typeof node.update === 'function') { + leaves.add(node); + } else { + node.__getChildren().forEach(findAnimatedStyles); } - function rerenderState(initialState) { - return rerenderReducer(basicStateReducer); + } + findAnimatedStyles(rootNode); + leaves.forEach(function (leaf) { + return leaf.update(); + }); + } + + /** + * Some operations are executed only on batch end, which is _mostly_ scheduled when + * Animated component props change. For some of the changes which require immediate execution + * (e.g. setValue), we create a separate batch in case none is scheduled. + */ + function _executeAsAnimatedBatch(id, operation) { + NativeAnimatedAPI.setWaitingForIdentifier(id); + operation(); + NativeAnimatedAPI.unsetWaitingForIdentifier(id); + } + + /** + * Standard value for driving animations. One `Animated.Value` can drive + * multiple properties in a synchronized fashion, but can only be driven by one + * mechanism at a time. Using a new mechanism (e.g. starting a new animation, + * or calling `setValue`) will stop any previous ones. + * + * See https://reactnative.dev/docs/animatedvalue + */ + var AnimatedValue = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedValue, _AnimatedWithChildren); + var _super = _createSuper(AnimatedValue); + function AnimatedValue(value, config) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedValue); + _this = _super.call(this); + if (typeof value !== 'number') { + throw new Error('AnimatedValue: Attempting to set value to undefined'); } - function pushEffect(tag, create, destroy, deps) { - var effect = { - tag: tag, - create: create, - destroy: destroy, - deps: deps, - next: null - }; - var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; - if (componentUpdateQueue === null) { - componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; - componentUpdateQueue.lastEffect = effect.next = effect; - } else { - var lastEffect = componentUpdateQueue.lastEffect; - if (lastEffect === null) { - componentUpdateQueue.lastEffect = effect.next = effect; - } else { - var firstEffect = lastEffect.next; - lastEffect.next = effect; - effect.next = firstEffect; - componentUpdateQueue.lastEffect = effect; - } - } - return effect; + _this._startingValue = _this._value = value; + _this._offset = 0; + _this._animation = null; + if (config && config.useNativeDriver) { + _this.__makeNative(); } - function mountRef(initialValue) { - var hook = mountWorkInProgressHook(); - { - var _ref2 = { - current: initialValue - }; - hook.memoizedState = _ref2; - return _ref2; + return _this; + } + (0, _createClass2.default)(AnimatedValue, [{ + key: "__detach", + value: function __detach() { + var _this2 = this; + if (this.__isNative) { + NativeAnimatedAPI.getValue(this.__getNativeTag(), function (value) { + _this2._value = value - _this2._offset; + }); } + this.stopAnimation(); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedValue.prototype), "__detach", this).call(this); } - function updateRef(initialValue) { - var hook = updateWorkInProgressHook(); - return hook.memoizedState; - } - function mountEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = mountWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps); + }, { + key: "__getValue", + value: function __getValue() { + return this._value + this._offset; } - function updateEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = updateWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - var destroy = undefined; - if (currentHook !== null) { - var prevEffect = currentHook.memoizedState; - destroy = prevEffect.destroy; - if (nextDeps !== null) { - var prevDeps = prevEffect.deps; - if (areHookInputsEqual(nextDeps, prevDeps)) { - hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps); - return; - } - } + + /** + * Directly set the value. This will stop any animations running on the value + * and update all the bound properties. + * + * See https://reactnative.dev/docs/animatedvalue#setvalue + */ + }, { + key: "setValue", + value: function setValue(value) { + var _this3 = this; + if (this._animation) { + this._animation.stop(); + this._animation = null; } - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps); - } - function mountEffect(create, deps) { - { - return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + this._updateValue(value, !this.__isNative /* don't perform a flush for natively driven values */); + + if (this.__isNative) { + _executeAsAnimatedBatch(this.__getNativeTag().toString(), function () { + return NativeAnimatedAPI.setAnimatedNodeValue(_this3.__getNativeTag(), value); + }); } } - function updateEffect(create, deps) { - return updateEffectImpl(Passive, Passive$1, create, deps); - } - function mountInsertionEffect(create, deps) { - return mountEffectImpl(Update, Insertion, create, deps); - } - function updateInsertionEffect(create, deps) { - return updateEffectImpl(Update, Insertion, create, deps); - } - function mountLayoutEffect(create, deps) { - var fiberFlags = Update; - return mountEffectImpl(fiberFlags, Layout, create, deps); - } - function updateLayoutEffect(create, deps) { - return updateEffectImpl(Update, Layout, create, deps); - } - function imperativeHandleEffect(create, ref) { - if (typeof ref === "function") { - var refCallback = ref; - var _inst = create(); - refCallback(_inst); - return function () { - refCallback(null); - }; - } else if (ref !== null && ref !== undefined) { - var refObject = ref; - { - if (!refObject.hasOwnProperty("current")) { - error("Expected useImperativeHandle() first argument to either be a " + "ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}"); - } - } - var _inst2 = create(); - refObject.current = _inst2; - return function () { - refObject.current = null; - }; + + /** + * Sets an offset that is applied on top of whatever value is set, whether via + * `setValue`, an animation, or `Animated.event`. Useful for compensating + * things like the start of a pan gesture. + * + * See https://reactnative.dev/docs/animatedvalue#setoffset + */ + }, { + key: "setOffset", + value: function setOffset(offset) { + this._offset = offset; + if (this.__isNative) { + NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset); } } - function mountImperativeHandle(ref, create, deps) { - { - if (typeof create !== "function") { - error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); - } - } - var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; - var fiberFlags = Update; - return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); - } - function updateImperativeHandle(ref, create, deps) { - { - if (typeof create !== "function") { - error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); - } + /** + * Merges the offset value into the base value and resets the offset to zero. + * The final output of the value is unchanged. + * + * See https://reactnative.dev/docs/animatedvalue#flattenoffset + */ + }, { + key: "flattenOffset", + value: function flattenOffset() { + this._value += this._offset; + this._offset = 0; + if (this.__isNative) { + NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag()); } - - var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; - return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); - } - function mountDebugValue(value, formatterFn) { } - var updateDebugValue = mountDebugValue; - function mountCallback(callback, deps) { - var hook = mountWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - hook.memoizedState = [callback, nextDeps]; - return callback; + + /** + * Sets the offset value to the base value, and resets the base value to zero. + * The final output of the value is unchanged. + * + * See https://reactnative.dev/docs/animatedvalue#extractoffset + */ + }, { + key: "extractOffset", + value: function extractOffset() { + this._offset += this._value; + this._value = 0; + if (this.__isNative) { + NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag()); + } } - function updateCallback(callback, deps) { - var hook = updateWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - var prevState = hook.memoizedState; - if (prevState !== null) { - if (nextDeps !== null) { - var prevDeps = prevState[1]; - if (areHookInputsEqual(nextDeps, prevDeps)) { - return prevState[0]; - } + + /** + * Stops any running animation or tracking. `callback` is invoked with the + * final value after stopping the animation, which is useful for updating + * state to match the animation position with layout. + * + * See https://reactnative.dev/docs/animatedvalue#stopanimation + */ + }, { + key: "stopAnimation", + value: function stopAnimation(callback) { + this.stopTracking(); + this._animation && this._animation.stop(); + this._animation = null; + if (callback) { + if (this.__isNative) { + NativeAnimatedAPI.getValue(this.__getNativeTag(), callback); + } else { + callback(this.__getValue()); } } - hook.memoizedState = [callback, nextDeps]; - return callback; - } - function mountMemo(nextCreate, deps) { - var hook = mountWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - var nextValue = nextCreate(); - hook.memoizedState = [nextValue, nextDeps]; - return nextValue; } - function updateMemo(nextCreate, deps) { - var hook = updateWorkInProgressHook(); - var nextDeps = deps === undefined ? null : deps; - var prevState = hook.memoizedState; - if (prevState !== null) { - if (nextDeps !== null) { - var prevDeps = prevState[1]; - if (areHookInputsEqual(nextDeps, prevDeps)) { - return prevState[0]; - } - } + + /** + * Stops any animation and resets the value to its original. + * + * See https://reactnative.dev/docs/animatedvalue#resetanimation + */ + }, { + key: "resetAnimation", + value: function resetAnimation(callback) { + this.stopAnimation(callback); + this._value = this._startingValue; + if (this.__isNative) { + NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), this._startingValue); } - var nextValue = nextCreate(); - hook.memoizedState = [nextValue, nextDeps]; - return nextValue; } - function mountDeferredValue(value) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = value; - return value; + }, { + key: "__onAnimatedValueUpdateReceived", + value: function __onAnimatedValueUpdateReceived(value) { + this._updateValue(value, false /*flush*/); } - function updateDeferredValue(value) { - var hook = updateWorkInProgressHook(); - var resolvedCurrentHook = currentHook; - var prevValue = resolvedCurrentHook.memoizedState; - return updateDeferredValueImpl(hook, prevValue, value); + + /** + * Interpolates the value before updating the property, e.g. mapping 0-1 to + * 0-10. + */ + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); } - function rerenderDeferredValue(value) { - var hook = updateWorkInProgressHook(); - if (currentHook === null) { - hook.memoizedState = value; - return value; - } else { - var prevValue = currentHook.memoizedState; - return updateDeferredValueImpl(hook, prevValue, value); + + /** + * Typically only used internally, but could be used by a custom Animation + * class. + * + * See https://reactnative.dev/docs/animatedvalue#animate + */ + }, { + key: "animate", + value: function animate(animation, callback) { + var _this4 = this; + var handle = null; + if (animation.__isInteraction) { + handle = _InteractionManager.default.createInteractionHandle(); } + var previousAnimation = this._animation; + this._animation && this._animation.stop(); + this._animation = animation; + animation.start(this._value, function (value) { + // Natively driven animations will never call into that callback, therefore we can always + // pass flush = true to allow the updated value to propagate to native with setNativeProps + _this4._updateValue(value, true /* flush */); + }, function (result) { + _this4._animation = null; + if (handle !== null) { + _InteractionManager.default.clearInteractionHandle(handle); + } + callback && callback(result); + }, previousAnimation, this); } - function updateDeferredValueImpl(hook, prevValue, value) { - var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); - if (shouldDeferValue) { - if (!objectIs(value, prevValue)) { - var deferredLane = claimNextTransitionLane(); - currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); - markSkippedUpdateLanes(deferredLane); - hook.baseState = true; - } + /** + * Typically only used internally. + */ + }, { + key: "stopTracking", + value: function stopTracking() { + this._tracking && this._tracking.__detach(); + this._tracking = null; + } - return prevValue; - } else { - if (hook.baseState) { - hook.baseState = false; - markWorkInProgressReceivedUpdate(); - } - hook.memoizedState = value; - return value; - } + /** + * Typically only used internally. + */ + }, { + key: "track", + value: function track(tracking) { + this.stopTracking(); + this._tracking = tracking; + // Make sure that the tracking animation starts executing + this._tracking && this._tracking.update(); } - function startTransition(setPending, callback, options) { - var previousPriority = getCurrentUpdatePriority(); - setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority)); - setPending(true); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; - var currentTransition = ReactCurrentBatchConfig$1.transition; - { - ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); + }, { + key: "_updateValue", + value: function _updateValue(value, flush) { + if (value === undefined) { + throw new Error('AnimatedValue: Attempting to set value to undefined'); } - try { - setPending(false); - callback(); - } finally { - setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$1.transition = prevTransition; - { - if (prevTransition === null && currentTransition._updatedFibers) { - var updatedFibersCount = currentTransition._updatedFibers.size; - if (updatedFibersCount > 10) { - warn("Detected a large number of updates inside startTransition. " + "If this is due to a subscription please re-write it to use React provided hooks. " + "Otherwise concurrent mode guarantees are off the table."); - } - currentTransition._updatedFibers.clear(); + this._value = value; + if (flush) { + flushValue(this); + } + this.__callListeners(this.__getValue()); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'value', + value: this._value, + offset: this._offset + }; + } + }]); + return AnimatedValue; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedValue; +},333,[3,12,13,131,49,51,53,334,327,336,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValue.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + var _emitter = new _EventEmitter.default(); + var DEBUG_DELAY = 0; + var DEBUG = false; + + /** + * InteractionManager allows long-running work to be scheduled after any + * interactions/animations have completed. In particular, this allows JavaScript + * animations to run smoothly. + * + * Applications can schedule tasks to run after interactions with the following: + * + * ``` + * InteractionManager.runAfterInteractions(() => { + * // ...long-running synchronous task... + * }); + * ``` + * + * Compare this to other scheduling alternatives: + * + * - requestAnimationFrame(): for code that animates a view over time. + * - setImmediate/setTimeout(): run code later, note this may delay animations. + * - runAfterInteractions(): run code later, without delaying active animations. + * + * The touch handling system considers one or more active touches to be an + * 'interaction' and will delay `runAfterInteractions()` callbacks until all + * touches have ended or been cancelled. + * + * InteractionManager also allows applications to register animations by + * creating an interaction 'handle' on animation start, and clearing it upon + * completion: + * + * ``` + * var handle = InteractionManager.createInteractionHandle(); + * // run animation... (`runAfterInteractions` tasks are queued) + * // later, on animation completion: + * InteractionManager.clearInteractionHandle(handle); + * // queued tasks run if all handles were cleared + * ``` + * + * `runAfterInteractions` takes either a plain callback function, or a + * `PromiseTask` object with a `gen` method that returns a `Promise`. If a + * `PromiseTask` is supplied, then it is fully resolved (including asynchronous + * dependencies that also schedule more tasks via `runAfterInteractions`) before + * starting on the next task that might have been queued up synchronously + * earlier. + * + * By default, queued tasks are executed together in a loop in one + * `setImmediate` batch. If `setDeadline` is called with a positive number, then + * tasks will only be executed until the deadline (in terms of js event loop run + * time) approaches, at which point execution will yield via setTimeout, + * allowing events such as touches to start interactions and block queued tasks + * from executing, making apps more responsive. + */ + var InteractionManager = { + Events: { + interactionStart: 'interactionStart', + interactionComplete: 'interactionComplete' + }, + /** + * Schedule a function to run after all interactions have completed. Returns a cancellable + * "promise". + */ + runAfterInteractions: function runAfterInteractions(task) { + var tasks = []; + var promise = new Promise(function (resolve) { + _scheduleUpdate(); + if (task) { + tasks.push(task); + } + tasks.push({ + run: resolve, + name: 'resolve ' + (task && task.name || '?') + }); + _taskQueue.enqueueTasks(tasks); + }); + return { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + then: promise.then.bind(promise), + cancel: function cancel() { + _taskQueue.cancelTasks(tasks); + } + }; + }, + /** + * Notify manager that an interaction has started. + */ + createInteractionHandle: function createInteractionHandle() { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: create interaction handle'); + _scheduleUpdate(); + var handle = ++_inc; + _addInteractionSet.add(handle); + return handle; + }, + /** + * Notify manager that an interaction has completed. + */ + clearInteractionHandle: function clearInteractionHandle(handle) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: clear interaction handle'); + _$$_REQUIRE(_dependencyMap[3], "invariant")(!!handle, 'InteractionManager: Must provide a handle to clear.'); + _scheduleUpdate(); + _addInteractionSet.delete(handle); + _deleteInteractionSet.add(handle); + }, + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + addListener: _emitter.addListener.bind(_emitter), + /** + * A positive number will use setTimeout to schedule any tasks after the + * eventLoopRunningTime hits the deadline value, otherwise all tasks will be + * executed in one setImmediate batch (default). + */ + setDeadline: function setDeadline(deadline) { + _deadline = deadline; + } + }; + var _interactionSet = new Set(); + var _addInteractionSet = new Set(); + var _deleteInteractionSet = new Set(); + var _taskQueue = new (_$$_REQUIRE(_dependencyMap[4], "./TaskQueue"))({ + onMoreTasks: _scheduleUpdate + }); + var _nextUpdateHandle = 0; + var _inc = 0; + var _deadline = -1; + + /** + * Schedule an asynchronous update to the interaction state. + */ + function _scheduleUpdate() { + if (!_nextUpdateHandle) { + if (_deadline > 0) { + _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY); + } else { + _nextUpdateHandle = setImmediate(_processUpdate); + } + } + } + + /** + * Notify listeners, process queue, etc + */ + function _processUpdate() { + _nextUpdateHandle = 0; + var interactionCount = _interactionSet.size; + _addInteractionSet.forEach(function (handle) { + return _interactionSet.add(handle); + }); + _deleteInteractionSet.forEach(function (handle) { + return _interactionSet.delete(handle); + }); + var nextInteractionCount = _interactionSet.size; + if (interactionCount !== 0 && nextInteractionCount === 0) { + // transition from 1+ --> 0 interactions + _emitter.emit(InteractionManager.Events.interactionComplete); + } else if (interactionCount === 0 && nextInteractionCount !== 0) { + // transition from 0 --> 1+ interactions + _emitter.emit(InteractionManager.Events.interactionStart); + } + + // process the queue regardless of a transition + if (nextInteractionCount === 0) { + while (_taskQueue.hasTasksToProcess()) { + _taskQueue.processNext(); + if (_deadline > 0 && _$$_REQUIRE(_dependencyMap[5], "../BatchedBridge/BatchedBridge").getEventLoopRunningTime() >= _deadline) { + // Hit deadline before processing all tasks, so process more later. + _scheduleUpdate(); + break; + } + } + } + _addInteractionSet.clear(); + _deleteInteractionSet.clear(); + } + module.exports = InteractionManager; +},334,[3,5,141,20,335,26],"node_modules/react-native/Libraries/Interaction/InteractionManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + var DEBUG = false; + + /** + * TaskQueue - A system for queueing and executing a mix of simple callbacks and + * trees of dependent tasks based on Promises. No tasks are executed unless + * `processNext` is called. + * + * `enqueue` takes a Task object with either a simple `run` callback, or a + * `gen` function that returns a `Promise` and puts it in the queue. If a gen + * function is supplied, then the promise it returns will block execution of + * tasks already in the queue until it resolves. This can be used to make sure + * the first task is fully resolved (including asynchronous dependencies that + * also schedule more tasks via `enqueue`) before starting on the next task. + * The `onMoreTasks` constructor argument is used to inform the owner that an + * async task has resolved and that the queue should be processed again. + * + * Note: Tasks are only actually executed with explicit calls to `processNext`. + */ + var TaskQueue = /*#__PURE__*/function () { + /** + * TaskQueue instances are self contained and independent, so multiple tasks + * of varying semantics and priority can operate together. + * + * `onMoreTasks` is invoked when `PromiseTask`s resolve if there are more + * tasks to process. + */ + function TaskQueue(_ref) { + var onMoreTasks = _ref.onMoreTasks; + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, TaskQueue); + this._onMoreTasks = onMoreTasks; + this._queueStack = [{ + tasks: [], + popable: false + }]; + } + + /** + * Add a task to the queue. It is recommended to name your tasks for easier + * async debugging. Tasks will not be executed until `processNext` is called + * explicitly. + */ + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(TaskQueue, [{ + key: "enqueue", + value: function enqueue(task) { + this._getCurrentQueue().push(task); + } + }, { + key: "enqueueTasks", + value: function enqueueTasks(tasks) { + var _this = this; + tasks.forEach(function (task) { + return _this.enqueue(task); + }); + } + }, { + key: "cancelTasks", + value: function cancelTasks(tasksToCancel) { + // search through all tasks and remove them. + this._queueStack = this._queueStack.map(function (queue) { + return Object.assign({}, queue, { + tasks: queue.tasks.filter(function (task) { + return tasksToCancel.indexOf(task) === -1; + }) + }); + }).filter(function (queue, idx) { + return queue.tasks.length > 0 || idx === 0; + }); + } + + /** + * Check to see if `processNext` should be called. + * + * @returns {boolean} Returns true if there are tasks that are ready to be + * processed with `processNext`, or returns false if there are no more tasks + * to be processed right now, although there may be tasks in the queue that + * are blocked by earlier `PromiseTask`s that haven't resolved yet. + * `onMoreTasks` will be called after each `PromiseTask` resolves if there are + * tasks ready to run at that point. + */ + }, { + key: "hasTasksToProcess", + value: function hasTasksToProcess() { + return this._getCurrentQueue().length > 0; + } + + /** + * Executes the next task in the queue. + */ + }, { + key: "processNext", + value: function processNext() { + var queue = this._getCurrentQueue(); + if (queue.length) { + var task = queue.shift(); + try { + if (typeof task === 'object' && task.gen) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: genPromise for task ' + task.name); + this._genPromise(task); + } else if (typeof task === 'object' && task.run) { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run task ' + task.name); + task.run(); + } else { + _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof task === 'function', 'Expected Function, SimpleTask, or PromiseTask, but got:\n' + JSON.stringify(task, null, 2)); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run anonymous task'); + task(); } + } catch (e) { + e.message = 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message; + throw e; } } } - function mountTransition() { - var _mountState = mountState(false), - isPending = _mountState[0], - setPending = _mountState[1]; + }, { + key: "_getCurrentQueue", + value: function _getCurrentQueue() { + var stackIdx = this._queueStack.length - 1; + var queue = this._queueStack[stackIdx]; + if (queue.popable && queue.tasks.length === 0 && this._queueStack.length > 1) { + this._queueStack.pop(); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: popped queue: ', { + stackIdx: stackIdx, + queueStackSize: this._queueStack.length + }); + return this._getCurrentQueue(); + } else { + return queue.tasks; + } + } + }, { + key: "_genPromise", + value: function _genPromise(task) { + var _this2 = this; + // Each async task pushes it's own queue onto the queue stack. This + // effectively defers execution of previously queued tasks until the promise + // resolves, at which point we allow the new queue to be popped, which + // happens once it is fully processed. + this._queueStack.push({ + tasks: [], + popable: false + }); + var stackIdx = this._queueStack.length - 1; + var stackItem = this._queueStack[stackIdx]; + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: push new queue: ', { + stackIdx: stackIdx + }); + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: exec gen task ' + task.name); + task.gen().then(function () { + DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: onThen for gen task ' + task.name, { + stackIdx: stackIdx, + queueStackSize: _this2._queueStack.length + }); + stackItem.popable = true; + _this2.hasTasksToProcess() && _this2._onMoreTasks(); + }).catch(function (ex) { + setTimeout(function () { + ex.message = `TaskQueue: Error resolving Promise in task ${task.name}: ${ex.message}`; + throw ex; + }, 0); + }); + } + }]); + return TaskQueue; + }(); + module.exports = TaskQueue; +},335,[12,13,141,20],"node_modules/react-native/Libraries/Interaction/TaskQueue.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var start = startTransition.bind(null, setPending); - var hook = mountWorkInProgressHook(); - hook.memoizedState = start; - return [isPending, start]; + /* eslint no-bitwise: 0 */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../StyleSheet/normalizeColor")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/processColor")); + var _Easing = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../Easing")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../NativeAnimatedHelper")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./AnimatedWithChildren")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "invariant")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + * Very handy helper to map input ranges to output ranges with an easing + * function and custom behavior outside of the ranges. + */ + function createNumericInterpolation(config) { + var outputRange = config.outputRange; + var inputRange = config.inputRange; + var easing = config.easing || _Easing.default.linear; + var extrapolateLeft = 'extend'; + if (config.extrapolateLeft !== undefined) { + extrapolateLeft = config.extrapolateLeft; + } else if (config.extrapolate !== undefined) { + extrapolateLeft = config.extrapolate; + } + var extrapolateRight = 'extend'; + if (config.extrapolateRight !== undefined) { + extrapolateRight = config.extrapolateRight; + } else if (config.extrapolate !== undefined) { + extrapolateRight = config.extrapolate; + } + return function (input) { + (0, _invariant.default)(typeof input === 'number', 'Cannot interpolation an input which is not a number'); + var range = findRange(input, inputRange); + return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight); + }; + } + function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) { + var result = input; + + // Extrapolate + if (result < inputMin) { + if (extrapolateLeft === 'identity') { + return result; + } else if (extrapolateLeft === 'clamp') { + result = inputMin; + } else if (extrapolateLeft === 'extend') { + // noop } - function updateTransition() { - var _updateState = updateState(), - isPending = _updateState[0]; - var hook = updateWorkInProgressHook(); - var start = hook.memoizedState; - return [isPending, start]; + } + if (result > inputMax) { + if (extrapolateRight === 'identity') { + return result; + } else if (extrapolateRight === 'clamp') { + result = inputMax; + } else if (extrapolateRight === 'extend') { + // noop } - function rerenderTransition() { - var _rerenderState = rerenderState(), - isPending = _rerenderState[0]; - var hook = updateWorkInProgressHook(); - var start = hook.memoizedState; - return [isPending, start]; + } + if (outputMin === outputMax) { + return outputMin; + } + if (inputMin === inputMax) { + if (input <= inputMin) { + return outputMin; } - var isUpdatingOpaqueValueInRenderPhase = false; - function getIsUpdatingOpaqueValueInRenderPhaseInDEV() { - { - return isUpdatingOpaqueValueInRenderPhase; + return outputMax; + } + + // Input Range + if (inputMin === -Infinity) { + result = -result; + } else if (inputMax === Infinity) { + result = result - inputMin; + } else { + result = (result - inputMin) / (inputMax - inputMin); + } + + // Easing + result = easing(result); + + // Output Range + if (outputMin === -Infinity) { + result = -result; + } else if (outputMax === Infinity) { + result = result + outputMin; + } else { + result = result * (outputMax - outputMin) + outputMin; + } + return result; + } + var numericComponentRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g; + + // Maps string inputs an RGBA color or an array of numeric components + function mapStringToNumericComponents(input) { + var normalizedColor = (0, _normalizeColor.default)(input); + (0, _invariant.default)(normalizedColor == null || typeof normalizedColor !== 'object', 'PlatformColors are not supported'); + if (typeof normalizedColor === 'number') { + normalizedColor = normalizedColor || 0; + var r = (normalizedColor & 0xff000000) >>> 24; + var g = (normalizedColor & 0x00ff0000) >>> 16; + var b = (normalizedColor & 0x0000ff00) >>> 8; + var a = (normalizedColor & 0x000000ff) / 255; + return { + isColor: true, + components: [r, g, b, a] + }; + } else { + var components = []; + var lastMatchEnd = 0; + var match; + while ((match = numericComponentRegex.exec(input)) != null) { + if (match.index > lastMatchEnd) { + components.push(input.substring(lastMatchEnd, match.index)); } + components.push(parseFloat(match[0])); + lastMatchEnd = match.index + match[0].length; } - function mountId() { - var hook = mountWorkInProgressHook(); - var root = getWorkInProgressRoot(); + (0, _invariant.default)(components.length > 0, 'outputRange must contain color or value with numeric component'); + if (lastMatchEnd < input.length) { + components.push(input.substring(lastMatchEnd, input.length)); + } + return { + isColor: false, + components: components + }; + } + } - var identifierPrefix = root.identifierPrefix; - var id; - { - var globalClientId = globalClientIdCounter++; - id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; - } - hook.memoizedState = id; - return id; + /** + * Supports string shapes by extracting numbers so new values can be computed, + * and recombines those values into new strings of the same shape. Supports + * things like: + * + * rgba(123, 42, 99, 0.36) // colors + * -45deg // values with units + */ + function createStringInterpolation(config) { + (0, _invariant.default)(config.outputRange.length >= 2, 'Bad output range'); + var outputRange = config.outputRange.map(mapStringToNumericComponents); + var isColor = outputRange[0].isColor; + if (__DEV__) { + (0, _invariant.default)(outputRange.every(function (output) { + return output.isColor === isColor; + }), 'All elements of output range should either be a color or a string with numeric components'); + var firstOutput = outputRange[0].components; + (0, _invariant.default)(outputRange.every(function (output) { + return output.components.length === firstOutput.length; + }), 'All elements of output range should have the same number of components'); + (0, _invariant.default)(outputRange.every(function (output) { + return output.components.every(function (component, i) { + return ( + // $FlowIgnoreMe[invalid-compare] + typeof component === 'number' || component === firstOutput[i] + ); + }); + }), 'All elements of output range should have the same non-numeric components'); + } + var numericComponents = outputRange.map(function (output) { + return isColor ? + // $FlowIgnoreMe[incompatible-call] + output.components : + // $FlowIgnoreMe[incompatible-call] + output.components.filter(function (c) { + return typeof c === 'number'; + }); + }); + var interpolations = numericComponents[0].map(function (_, i) { + return createNumericInterpolation(Object.assign({}, config, { + outputRange: numericComponents.map(function (components) { + return components[i]; + }) + })); + }); + if (!isColor) { + return function (input) { + var values = interpolations.map(function (interpolation) { + return interpolation(input); + }); + var i = 0; + return outputRange[0].components.map(function (c) { + return typeof c === 'number' ? values[i++] : c; + }).join(''); + }; + } else { + return function (input) { + var result = interpolations.map(function (interpolation, i) { + var value = interpolation(input); + // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to + // round the opacity (4th column). + return i < 3 ? Math.round(value) : Math.round(value * 1000) / 1000; + }); + return `rgba(${result[0]}, ${result[1]}, ${result[2]}, ${result[3]})`; + }; + } + } + function findRange(input, inputRange) { + var i; + for (i = 1; i < inputRange.length - 1; ++i) { + if (inputRange[i] >= input) { + break; } - function updateId() { - var hook = updateWorkInProgressHook(); - var id = hook.memoizedState; - return id; + } + return i - 1; + } + function checkValidRanges(inputRange, outputRange) { + checkInfiniteRange('outputRange', outputRange); + checkInfiniteRange('inputRange', inputRange); + checkValidInputRange(inputRange); + (0, _invariant.default)(inputRange.length === outputRange.length, 'inputRange (' + inputRange.length + ') and outputRange (' + outputRange.length + ') must have the same length'); + } + function checkValidInputRange(arr) { + (0, _invariant.default)(arr.length >= 2, 'inputRange must have at least 2 elements'); + var message = 'inputRange must be monotonically non-decreasing ' + String(arr); + for (var i = 1; i < arr.length; ++i) { + (0, _invariant.default)(arr[i] >= arr[i - 1], message); + } + } + function checkInfiniteRange(name, arr) { + (0, _invariant.default)(arr.length >= 2, name + ' must have at least 2 elements'); + (0, _invariant.default)(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, + /* $FlowFixMe[incompatible-type] (>=0.13.0) - In the addition expression + * below this comment, one or both of the operands may be something that + * doesn't cleanly convert to a string, like undefined, null, and object, + * etc. If you really mean this implicit string conversion, you can do + * something like String(myThing) */ + // $FlowFixMe[unsafe-addition] + name + 'cannot be ]-infinity;+infinity[ ' + arr); + } + var AnimatedInterpolation = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedInterpolation, _AnimatedWithChildren); + var _super = _createSuper(AnimatedInterpolation); + function AnimatedInterpolation(parent, config) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedInterpolation); + _this = _super.call(this); + _this._parent = parent; + _this._config = config; + if (__DEV__) { + checkValidRanges(config.inputRange, config.outputRange); + + // Create interpolation eagerly in dev, so we can signal errors faster + // even when using the native driver + _this._getInterpolation(); } - function dispatchReducerAction(fiber, queue, action) { - { - if (typeof arguments[3] === "function") { - error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + return _this; + } + (0, _createClass2.default)(AnimatedInterpolation, [{ + key: "_getInterpolation", + value: function _getInterpolation() { + if (!this._interpolation) { + var config = this._config; + if (config.outputRange && typeof config.outputRange[0] === 'string') { + this._interpolation = createStringInterpolation(config); + } else { + this._interpolation = createNumericInterpolation(config); } } - var lane = requestUpdateLane(fiber); - var update = { - lane: lane, - action: action, - hasEagerState: false, - eagerState: null, - next: null + return this._interpolation; + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._parent.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedInterpolation.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + var parentValue = this._parent.__getValue(); + (0, _invariant.default)(typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.'); + return this._getInterpolation()(parentValue); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedInterpolation.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + if (__DEV__) { + _NativeAnimatedHelper.default.validateInterpolation(this._config); + } + + // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here + var outputRange = this._config.outputRange; + var outputType = null; + if (typeof outputRange[0] === 'string') { + // $FlowIgnoreMe[incompatible-cast] + outputRange = outputRange.map(function (value) { + var processedColor = (0, _processColor.default)(value); + if (typeof processedColor === 'number') { + outputType = 'color'; + return processedColor; + } else { + return _NativeAnimatedHelper.default.transformDataType(value); + } + }); + } + return { + inputRange: this._config.inputRange, + outputRange: outputRange, + outputType: outputType, + extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', + extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || 'extend', + type: 'interpolation' }; - if (isRenderPhaseUpdate(fiber)) { - enqueueRenderPhaseUpdate(queue, update); - } else { - enqueueUpdate$1(fiber, queue, update); - var eventTime = requestEventTime(); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); - if (root !== null) { - entangleTransitionUpdate(root, queue, lane); - } + } + }]); + return AnimatedInterpolation; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedInterpolation; +},336,[3,12,13,131,49,51,53,175,174,337,327,339,20],"node_modules/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _ease; + + /** + * The `Easing` module implements common easing functions. This module is used + * by [Animate.timing()](docs/animate.html#timing) to convey physically + * believable motion in animations. + * + * You can find a visualization of some common easing functions at + * http://easings.net/ + * + * ### Predefined animations + * + * The `Easing` module provides several predefined animations through the + * following methods: + * + * - [`back`](docs/easing.html#back) provides a simple animation where the + * object goes slightly back before moving forward + * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation + * - [`ease`](docs/easing.html#ease) provides a simple inertial animation + * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction + * + * ### Standard functions + * + * Three standard easing functions are provided: + * + * - [`linear`](docs/easing.html#linear) + * - [`quad`](docs/easing.html#quad) + * - [`cubic`](docs/easing.html#cubic) + * + * The [`poly`](docs/easing.html#poly) function can be used to implement + * quartic, quintic, and other higher power functions. + * + * ### Additional functions + * + * Additional mathematical functions are provided by the following methods: + * + * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve + * - [`circle`](docs/easing.html#circle) provides a circular function + * - [`sin`](docs/easing.html#sin) provides a sinusoidal function + * - [`exp`](docs/easing.html#exp) provides an exponential function + * + * The following helpers are used to modify other easing functions. + * + * - [`in`](docs/easing.html#in) runs an easing function forwards + * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical + * - [`out`](docs/easing.html#out) runs an easing function backwards + */ + var Easing = { + /** + * A stepping function, returns 1 for any positive value of `n`. + */ + step0: function step0(n) { + return n > 0 ? 1 : 0; + }, + /** + * A stepping function, returns 1 if `n` is greater than or equal to 1. + */ + step1: function step1(n) { + return n >= 1 ? 1 : 0; + }, + /** + * A linear function, `f(t) = t`. Position correlates to elapsed time one to + * one. + * + * http://cubic-bezier.com/#0,0,1,1 + */ + linear: function linear(t) { + return t; + }, + /** + * A simple inertial interaction, similar to an object slowly accelerating to + * speed. + * + * http://cubic-bezier.com/#.42,0,1,1 + */ + ease: function ease(t) { + if (!_ease) { + _ease = Easing.bezier(0.42, 0, 1, 1); + } + return _ease(t); + }, + /** + * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed + * time. + * + * http://easings.net/#easeInQuad + */ + quad: function quad(t) { + return t * t; + }, + /** + * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed + * time. + * + * http://easings.net/#easeInCubic + */ + cubic: function cubic(t) { + return t * t * t; + }, + /** + * A power function. Position is equal to the Nth power of elapsed time. + * + * n = 4: http://easings.net/#easeInQuart + * n = 5: http://easings.net/#easeInQuint + */ + poly: function poly(n) { + return function (t) { + return Math.pow(t, n); + }; + }, + /** + * A sinusoidal function. + * + * http://easings.net/#easeInSine + */ + sin: function sin(t) { + return 1 - Math.cos(t * Math.PI / 2); + }, + /** + * A circular function. + * + * http://easings.net/#easeInCirc + */ + circle: function circle(t) { + return 1 - Math.sqrt(1 - t * t); + }, + /** + * An exponential function. + * + * http://easings.net/#easeInExpo + */ + exp: function exp(t) { + return Math.pow(2, 10 * (t - 1)); + }, + /** + * A simple elastic interaction, similar to a spring oscillating back and + * forth. + * + * Default bounciness is 1, which overshoots a little bit once. 0 bounciness + * doesn't overshoot at all, and bounciness of N > 1 will overshoot about N + * times. + * + * http://easings.net/#easeInElastic + */ + elastic: function elastic() { + var bounciness = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var p = bounciness * Math.PI; + return function (t) { + return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); + }; + }, + /** + * Use with `Animated.parallel()` to create a simple effect where the object + * animates back slightly as the animation starts. + * + * https://easings.net/#easeInBack + */ + back: function back() { + var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1.70158; + return function (t) { + return t * t * ((s + 1) * t - s); + }; + }, + /** + * Provides a simple bouncing effect. + * + * http://easings.net/#easeInBounce + */ + bounce: function bounce(t) { + if (t < 1 / 2.75) { + return 7.5625 * t * t; + } + if (t < 2 / 2.75) { + var _t = t - 1.5 / 2.75; + return 7.5625 * _t * _t + 0.75; + } + if (t < 2.5 / 2.75) { + var _t2 = t - 2.25 / 2.75; + return 7.5625 * _t2 * _t2 + 0.9375; + } + var t2 = t - 2.625 / 2.75; + return 7.5625 * t2 * t2 + 0.984375; + }, + /** + * Provides a cubic bezier curve, equivalent to CSS Transitions' + * `transition-timing-function`. + * + * A useful tool to visualize cubic bezier curves can be found at + * http://cubic-bezier.com/ + */ + bezier: function bezier(x1, y1, x2, y2) { + var _bezier = _$$_REQUIRE(_dependencyMap[0], "./bezier").default; + return _bezier(x1, y1, x2, y2); + }, + /** + * Runs an easing function forwards. + */ + in: function _in(easing) { + return easing; + }, + /** + * Runs an easing function backwards. + */ + out: function out(easing) { + return function (t) { + return 1 - easing(1 - t); + }; + }, + /** + * Makes any easing function symmetrical. The easing function will run + * forwards for half of the duration, then backwards for the rest of the + * duration. + */ + inOut: function inOut(easing) { + return function (t) { + if (t < 0.5) { + return easing(t * 2) / 2; } + return 1 - easing((1 - t) * 2) / 2; + }; + } + }; + var _default = Easing; + exports.default = _default; +},337,[338],"node_modules/react-native/Libraries/Animated/Easing.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Portions Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * BezierEasing - use bezier curve for transition easing function + * https://github.com/gre/bezier-easing + * @copyright 2014-2015 Gaรซtan Renaudeau. MIT License. + */ + + 'use strict'; + + // These values are established by empiricism with tests (tradeoff: performance VS precision) + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = bezier; + var NEWTON_ITERATIONS = 4; + var NEWTON_MIN_SLOPE = 0.001; + var SUBDIVISION_PRECISION = 0.0000001; + var SUBDIVISION_MAX_ITERATIONS = 10; + var kSplineTableSize = 11; + var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); + var float32ArraySupported = typeof Float32Array === 'function'; + function A(aA1, aA2) { + return 1.0 - 3.0 * aA2 + 3.0 * aA1; + } + function B(aA1, aA2) { + return 3.0 * aA2 - 6.0 * aA1; + } + function C(aA1) { + return 3.0 * aA1; + } + + // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2. + function calcBezier(aT, aA1, aA2) { + return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; + } + + // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2. + function getSlope(aT, aA1, aA2) { + return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); + } + function binarySubdivide(aX, _aA, _aB, mX1, mX2) { + var currentX, + currentT, + i = 0, + aA = _aA, + aB = _aB; + do { + currentT = aA + (aB - aA) / 2.0; + currentX = calcBezier(currentT, mX1, mX2) - aX; + if (currentX > 0.0) { + aB = currentT; + } else { + aA = currentT; } - function dispatchSetState(fiber, queue, action) { - { - if (typeof arguments[3] === "function") { - error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); + return currentT; + } + function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) { + var aGuessT = _aGuessT; + for (var i = 0; i < NEWTON_ITERATIONS; ++i) { + var currentSlope = getSlope(aGuessT, mX1, mX2); + if (currentSlope === 0.0) { + return aGuessT; + } + var currentX = calcBezier(aGuessT, mX1, mX2) - aX; + aGuessT -= currentX / currentSlope; + } + return aGuessT; + } + function bezier(mX1, mY1, mX2, mY2) { + if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) { + throw new Error('bezier x values must be in [0, 1] range'); + } + + // Precompute samples table + var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize); + if (mX1 !== mY1 || mX2 !== mY2) { + for (var i = 0; i < kSplineTableSize; ++i) { + sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); + } + } + function getTForX(aX) { + var intervalStart = 0.0; + var currentSample = 1; + var lastSample = kSplineTableSize - 1; + for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { + intervalStart += kSampleStepSize; + } + --currentSample; + + // Interpolate to provide an initial guess for t + var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); + var guessForT = intervalStart + dist * kSampleStepSize; + var initialSlope = getSlope(guessForT, mX1, mX2); + if (initialSlope >= NEWTON_MIN_SLOPE) { + return newtonRaphsonIterate(aX, guessForT, mX1, mX2); + } else if (initialSlope === 0.0) { + return guessForT; + } else { + return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); + } + } + return function BezierEasing(x) { + if (mX1 === mY1 && mX2 === mY2) { + return x; // linear + } + // Because JavaScript number are imprecise, we should guarantee the extremes are right. + if (x === 0) { + return 0; + } + if (x === 1) { + return 1; + } + return calcBezier(getTForX(x), mY1, mY2); + }; + } +},338,[],"node_modules/react-native/Libraries/Animated/bezier.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _AnimatedNode2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedNode")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedWithChildren = /*#__PURE__*/function (_AnimatedNode) { + (0, _inherits2.default)(AnimatedWithChildren, _AnimatedNode); + var _super = _createSuper(AnimatedWithChildren); + function AnimatedWithChildren() { + var _this; + (0, _classCallCheck2.default)(this, AnimatedWithChildren); + _this = _super.call(this); + _this._children = []; + return _this; + } + (0, _createClass2.default)(AnimatedWithChildren, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + if (!this.__isNative) { + this.__isNative = true; + for (var child of this._children) { + child.__makeNative(platformConfig); + _NativeAnimatedHelper.default.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); } } - var lane = requestUpdateLane(fiber); - var update = { - lane: lane, - action: action, - hasEagerState: false, - eagerState: null, - next: null - }; - if (isRenderPhaseUpdate(fiber)) { - enqueueRenderPhaseUpdate(queue, update); - } else { - enqueueUpdate$1(fiber, queue, update); - var alternate = fiber.alternate; - if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { - var lastRenderedReducer = queue.lastRenderedReducer; - if (lastRenderedReducer !== null) { - var prevDispatcher; - { - prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - } - try { - var currentState = queue.lastRenderedState; - var eagerState = lastRenderedReducer(currentState, action); - - update.hasEagerState = true; - update.eagerState = eagerState; - if (objectIs(eagerState, currentState)) { - return; - } - } catch (error) { - } finally { - { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - } + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedWithChildren.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__addChild", + value: function __addChild(child) { + if (this._children.length === 0) { + this.__attach(); + } + this._children.push(child); + if (this.__isNative) { + // Only accept "native" animated nodes as children + child.__makeNative(this.__getPlatformConfig()); + _NativeAnimatedHelper.default.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + } + }, { + key: "__removeChild", + value: function __removeChild(child) { + var index = this._children.indexOf(child); + if (index === -1) { + console.warn("Trying to remove a child that doesn't exist"); + return; + } + if (this.__isNative && child.__isNative) { + _NativeAnimatedHelper.default.API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + this._children.splice(index, 1); + if (this._children.length === 0) { + this.__detach(); + } + } + }, { + key: "__getChildren", + value: function __getChildren() { + return this._children; + } + }, { + key: "__callListeners", + value: function __callListeners(value) { + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedWithChildren.prototype), "__callListeners", this).call(this, value); + if (!this.__isNative) { + for (var child of this._children) { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + if (child.__getValue) { + child.__callListeners(child.__getValue()); } } - var eventTime = requestEventTime(); - var root = scheduleUpdateOnFiber(fiber, lane, eventTime); - if (root !== null) { - entangleTransitionUpdate(root, queue, lane); - } } } - function isRenderPhaseUpdate(fiber) { - var alternate = fiber.alternate; - return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; - } - function enqueueRenderPhaseUpdate(queue, update) { - didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; - var pending = queue.pending; - if (pending === null) { - update.next = update; - } else { - update.next = pending.next; - pending.next = update; + }]); + return AnimatedWithChildren; + }(_AnimatedNode2.default); + exports.default = AnimatedWithChildren; +},339,[3,12,13,131,49,51,53,327,340],"node_modules/react-native/Libraries/Animated/nodes/AnimatedWithChildren.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../NativeAnimatedHelper")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); + var NativeAnimatedAPI = _NativeAnimatedHelper.default.API; + var _uniqueId = 1; + + // Note(vjeux): this would be better as an interface but flow doesn't + // support them yet + var AnimatedNode = /*#__PURE__*/function () { + function AnimatedNode() { + (0, _classCallCheck2.default)(this, AnimatedNode); + this._listeners = {}; + } + (0, _createClass2.default)(AnimatedNode, [{ + key: "__attach", + value: function __attach() {} + }, { + key: "__detach", + value: function __detach() { + this.removeAllListeners(); + if (this.__isNative && this.__nativeTag != null) { + _NativeAnimatedHelper.default.API.dropAnimatedNode(this.__nativeTag); + this.__nativeTag = undefined; } - queue.pending = update; } - function enqueueUpdate$1(fiber, queue, update, lane) { - if (isInterleavedUpdate(fiber)) { - var interleaved = queue.interleaved; - if (interleaved === null) { - update.next = update; + }, { + key: "__getValue", + value: function __getValue() {} + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this.__getValue(); + } + }, { + key: "__addChild", + value: function __addChild(child) {} + }, { + key: "__removeChild", + value: function __removeChild(child) {} + }, { + key: "__getChildren", + value: function __getChildren() { + return []; + } - pushInterleavedQueue(queue); - } else { - update.next = interleaved.next; - interleaved.next = update; - } - queue.interleaved = update; - } else { - var pending = queue.pending; - if (pending === null) { - update.next = update; - } else { - update.next = pending.next; - pending.next = update; - } - queue.pending = update; + /* Methods and props used by native Animated impl */ + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + if (!this.__isNative) { + throw new Error('This node cannot be made a "native" animated node'); + } + this._platformConfig = platformConfig; + if (this.hasListeners()) { + this._startListeningToNativeValueUpdates(); } } - function entangleTransitionUpdate(root, queue, lane) { - if (isTransitionLane(lane)) { - var queueLanes = queue.lanes; - queueLanes = intersectLanes(queueLanes, root.pendingLanes); + /** + * Adds an asynchronous listener to the value so you can observe updates from + * animations. This is useful because there is no way to + * synchronously read the value because it might be driven natively. + * + * See https://reactnative.dev/docs/animatedvalue#addlistener + */ + }, { + key: "addListener", + value: function addListener(callback) { + var id = String(_uniqueId++); + this._listeners[id] = callback; + if (this.__isNative) { + this._startListeningToNativeValueUpdates(); + } + return id; + } - var newQueueLanes = mergeLanes(queueLanes, lane); - queue.lanes = newQueueLanes; + /** + * Unregister a listener. The `id` param shall match the identifier + * previously returned by `addListener()`. + * + * See https://reactnative.dev/docs/animatedvalue#removelistener + */ + }, { + key: "removeListener", + value: function removeListener(id) { + delete this._listeners[id]; + if (this.__isNative && !this.hasListeners()) { + this._stopListeningForNativeValueUpdates(); + } + } - markRootEntangled(root, newQueueLanes); + /** + * Remove all registered listeners. + * + * See https://reactnative.dev/docs/animatedvalue#removealllisteners + */ + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this._listeners = {}; + if (this.__isNative) { + this._stopListeningForNativeValueUpdates(); } } - var ContextOnlyDispatcher = { - readContext: _readContext, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useMutableSource: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - unstable_isNewReconciler: enableNewReconciler - }; - var HooksDispatcherOnMountInDEV = null; - var HooksDispatcherOnMountWithHookTypesInDEV = null; - var HooksDispatcherOnUpdateInDEV = null; - var HooksDispatcherOnRerenderInDEV = null; - var InvalidNestedHooksDispatcherOnMountInDEV = null; - var InvalidNestedHooksDispatcherOnUpdateInDEV = null; - var InvalidNestedHooksDispatcherOnRerenderInDEV = null; - { - var warnInvalidContextAccess = function warnInvalidContextAccess() { - error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); - }; - var warnInvalidHookAccess = function warnInvalidHookAccess() { - error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + "https://reactjs.org/link/rules-of-hooks"); - }; - HooksDispatcherOnMountInDEV = { - readContext: function readContext(context) { - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - return mountCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - mountHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - return mountEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - return mountImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - return mountInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - return mountLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - mountHookTypesDev(); - checkDepsAreArrayDev(deps); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - mountHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - mountHookTypesDev(); - return mountRef(initialValue); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - mountHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - mountHookTypesDev(); - return mountDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - mountHookTypesDev(); - return mountDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - mountHookTypesDev(); - return mountTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - mountHookTypesDev(); - return mountMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - mountHookTypesDev(); - return mountSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - mountHookTypesDev(); - return mountId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - HooksDispatcherOnMountWithHookTypesInDEV = { - readContext: function readContext(context) { - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - updateHookTypesDev(); - return mountCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - updateHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - updateHookTypesDev(); - return mountEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - updateHookTypesDev(); - return mountImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - updateHookTypesDev(); - return mountInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - updateHookTypesDev(); - return mountLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - updateHookTypesDev(); - return mountRef(initialValue); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - updateHookTypesDev(); - return mountDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - updateHookTypesDev(); - return mountDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - updateHookTypesDev(); - return mountTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - updateHookTypesDev(); - return mountMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - updateHookTypesDev(); - return mountSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - updateHookTypesDev(); - return mountId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - HooksDispatcherOnUpdateInDEV = { - readContext: function readContext(context) { - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - updateHookTypesDev(); - return updateCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - updateHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - updateHookTypesDev(); - return updateEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - updateHookTypesDev(); - return updateImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - updateHookTypesDev(); - return updateInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - updateHookTypesDev(); - return updateLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - updateHookTypesDev(); - return updateRef(); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - updateHookTypesDev(); - return updateDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - updateHookTypesDev(); - return updateDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - updateHookTypesDev(); - return updateTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - updateHookTypesDev(); - return updateMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - updateHookTypesDev(); - return updateSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - updateHookTypesDev(); - return updateId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - HooksDispatcherOnRerenderInDEV = { - readContext: function readContext(context) { - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - updateHookTypesDev(); - return updateCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - updateHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - updateHookTypesDev(); - return updateEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - updateHookTypesDev(); - return updateImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - updateHookTypesDev(); - return updateInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - updateHookTypesDev(); - return updateLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; - try { - return updateMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; - try { - return rerenderReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - updateHookTypesDev(); - return updateRef(); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; - try { - return rerenderState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - updateHookTypesDev(); - return updateDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - updateHookTypesDev(); - return rerenderDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - updateHookTypesDev(); - return rerenderTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - updateHookTypesDev(); - return updateMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - updateHookTypesDev(); - return updateSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - updateHookTypesDev(); - return updateId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - InvalidNestedHooksDispatcherOnMountInDEV = { - readContext: function readContext(context) { - warnInvalidContextAccess(); - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - warnInvalidHookAccess(); - mountHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - warnInvalidHookAccess(); - mountHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountRef(initialValue); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; - try { - return mountState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - InvalidNestedHooksDispatcherOnUpdateInDEV = { - readContext: function readContext(context) { - warnInvalidContextAccess(); - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateRef(); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - InvalidNestedHooksDispatcherOnRerenderInDEV = { - readContext: function readContext(context) { - warnInvalidContextAccess(); - return _readContext(context); - }, - useCallback: function useCallback(callback, deps) { - currentHookNameInDev = "useCallback"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateCallback(callback, deps); - }, - useContext: function useContext(context) { - currentHookNameInDev = "useContext"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return _readContext(context); - }, - useEffect: function useEffect(create, deps) { - currentHookNameInDev = "useEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateEffect(create, deps); - }, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - currentHookNameInDev = "useImperativeHandle"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateImperativeHandle(ref, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - currentHookNameInDev = "useInsertionEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateInsertionEffect(create, deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - currentHookNameInDev = "useLayoutEffect"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateLayoutEffect(create, deps); - }, - useMemo: function useMemo(create, deps) { - currentHookNameInDev = "useMemo"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return updateMemo(create, deps); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useReducer: function useReducer(reducer, initialArg, init) { - currentHookNameInDev = "useReducer"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return rerenderReducer(reducer, initialArg, init); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useRef: function useRef(initialValue) { - currentHookNameInDev = "useRef"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateRef(); - }, - useState: function useState(initialState) { - currentHookNameInDev = "useState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - var prevDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; - try { - return rerenderState(initialState); - } finally { - ReactCurrentDispatcher$1.current = prevDispatcher; - } - }, - useDebugValue: function useDebugValue(value, formatterFn) { - currentHookNameInDev = "useDebugValue"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateDebugValue(); - }, - useDeferredValue: function useDeferredValue(value) { - currentHookNameInDev = "useDeferredValue"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderDeferredValue(value); - }, - useTransition: function useTransition() { - currentHookNameInDev = "useTransition"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderTransition(); - }, - useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { - currentHookNameInDev = "useMutableSource"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateMutableSource(); - }, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - currentHookNameInDev = "useSyncExternalStore"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateSyncExternalStore(subscribe, getSnapshot); - }, - useId: function useId() { - currentHookNameInDev = "useId"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateId(); - }, - unstable_isNewReconciler: enableNewReconciler - }; - } - var now$1 = Scheduler.unstable_now; - var commitTime = 0; - var layoutEffectStartTime = -1; - var profilerStartTime = -1; - var passiveEffectStartTime = -1; - - var currentUpdateIsNested = false; - var nestedUpdateScheduled = false; - function isCurrentUpdateNested() { - return currentUpdateIsNested; - } - function markNestedUpdateScheduled() { - { - nestedUpdateScheduled = true; - } - } - function resetNestedUpdateFlag() { - { - currentUpdateIsNested = false; - nestedUpdateScheduled = false; - } + }, { + key: "hasListeners", + value: function hasListeners() { + return !!Object.keys(this._listeners).length; } - function syncNestedUpdateFlag() { - { - currentUpdateIsNested = nestedUpdateScheduled; - nestedUpdateScheduled = false; + }, { + key: "_startListeningToNativeValueUpdates", + value: function _startListeningToNativeValueUpdates() { + var _this = this; + if (this.__nativeAnimatedValueListener && !this.__shouldUpdateListenersForNewNativeTag) { + return; } - } - function getCommitTime() { - return commitTime; - } - function recordCommitTime() { - commitTime = now$1(); - } - function startProfilerTimer(fiber) { - profilerStartTime = now$1(); - if (fiber.actualStartTime < 0) { - fiber.actualStartTime = now$1(); + if (this.__shouldUpdateListenersForNewNativeTag) { + this.__shouldUpdateListenersForNewNativeTag = false; + this._stopListeningForNativeValueUpdates(); } + NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag()); + this.__nativeAnimatedValueListener = _NativeAnimatedHelper.default.nativeEventEmitter.addListener('onAnimatedValueUpdate', function (data) { + if (data.tag !== _this.__getNativeTag()) { + return; + } + _this.__onAnimatedValueUpdateReceived(data.value); + }); } - function stopProfilerTimerIfRunning(fiber) { - profilerStartTime = -1; + }, { + key: "__onAnimatedValueUpdateReceived", + value: function __onAnimatedValueUpdateReceived(value) { + this.__callListeners(value); } - function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { - if (profilerStartTime >= 0) { - var elapsedTime = now$1() - profilerStartTime; - fiber.actualDuration += elapsedTime; - if (overrideBaseTime) { - fiber.selfBaseDuration = elapsedTime; - } - profilerStartTime = -1; + }, { + key: "__callListeners", + value: function __callListeners(value) { + for (var _key in this._listeners) { + this._listeners[_key]({ + value: value + }); } } - function recordLayoutEffectDuration(fiber) { - if (layoutEffectStartTime >= 0) { - var elapsedTime = now$1() - layoutEffectStartTime; - layoutEffectStartTime = -1; - - var parentFiber = fiber.return; - while (parentFiber !== null) { - switch (parentFiber.tag) { - case HostRoot: - var root = parentFiber.stateNode; - root.effectDuration += elapsedTime; - return; - case Profiler: - var parentStateNode = parentFiber.stateNode; - parentStateNode.effectDuration += elapsedTime; - return; - } - parentFiber = parentFiber.return; - } + }, { + key: "_stopListeningForNativeValueUpdates", + value: function _stopListeningForNativeValueUpdates() { + if (!this.__nativeAnimatedValueListener) { + return; } + this.__nativeAnimatedValueListener.remove(); + this.__nativeAnimatedValueListener = null; + NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag()); } - function recordPassiveEffectDuration(fiber) { - if (passiveEffectStartTime >= 0) { - var elapsedTime = now$1() - passiveEffectStartTime; - passiveEffectStartTime = -1; - - var parentFiber = fiber.return; - while (parentFiber !== null) { - switch (parentFiber.tag) { - case HostRoot: - var root = parentFiber.stateNode; - if (root !== null) { - root.passiveEffectDuration += elapsedTime; - } - return; - case Profiler: - var parentStateNode = parentFiber.stateNode; - if (parentStateNode !== null) { - parentStateNode.passiveEffectDuration += elapsedTime; - } - return; - } - parentFiber = parentFiber.return; + }, { + key: "__getNativeTag", + value: function __getNativeTag() { + var _this$__nativeTag; + _NativeAnimatedHelper.default.assertNativeAnimatedModule(); + (0, _invariant.default)(this.__isNative, 'Attempt to get native tag from node not marked as "native"'); + var nativeTag = (_this$__nativeTag = this.__nativeTag) != null ? _this$__nativeTag : _NativeAnimatedHelper.default.generateNewNodeTag(); + if (this.__nativeTag == null) { + this.__nativeTag = nativeTag; + var config = this.__getNativeConfig(); + if (this._platformConfig) { + config.platformConfig = this._platformConfig; } + _NativeAnimatedHelper.default.API.createAnimatedNode(nativeTag, config); + this.__shouldUpdateListenersForNewNativeTag = true; } + return nativeTag; } - function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); - } - function startPassiveEffectTimer() { - passiveEffectStartTime = now$1(); - } - function transferActualDuration(fiber) { - var child = fiber.child; - while (child) { - fiber.actualDuration += child.actualDuration; - child = child.sibling; - } - } - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackByFiberInDevAndProd(source) - }; + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + throw new Error('This JS animated node type cannot be used as native animated node'); } - if (typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog !== "function") { - throw new Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + }, { + key: "toJSON", + value: function toJSON() { + return this.__getValue(); } - function showErrorDialog(boundary, errorInfo) { - var capturedError = { - componentStack: errorInfo.stack !== null ? errorInfo.stack : "", - error: errorInfo.value, - errorBoundary: boundary !== null && boundary.tag === ClassComponent ? boundary.stateNode : null - }; - return ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(capturedError); + }, { + key: "__getPlatformConfig", + value: function __getPlatformConfig() { + return this._platformConfig; } - function logCapturedError(boundary, errorInfo) { - try { - var logError = showErrorDialog(boundary, errorInfo); - - if (logError === false) { - return; - } - var error = errorInfo.value; - if (true) { - var source = errorInfo.source; - var stack = errorInfo.stack; - var componentStack = stack !== null ? stack : ""; - - if (error != null && error._suppressLogging) { - if (boundary.tag === ClassComponent) { - return; - } - - console["error"](error); - } - - var componentName = source ? getComponentNameFromFiber(source) : null; - var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; - var errorBoundaryMessage; - if (boundary.tag === HostRoot) { - errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; - } else { - var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; - errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); - } - var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); - - console["error"](combinedMessage); - } else { - console["error"](error); - } - } catch (e) { - setTimeout(function () { - throw e; - }); - } + }, { + key: "__setPlatformConfig", + value: function __setPlatformConfig(platformConfig) { + this._platformConfig = platformConfig; } - var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; - function createRootErrorUpdate(fiber, errorInfo, lane) { - var update = createUpdate(NoTimestamp, lane); + }]); + return AnimatedNode; + }(); + exports.default = AnimatedNode; +},340,[3,12,13,327,20],"node_modules/react-native/Libraries/Animated/nodes/AnimatedNode.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - update.tag = CaptureUpdate; + 'use strict'; - update.payload = { - element: null - }; - var error = errorInfo.value; - update.callback = function () { - onUncaughtError(error); - logCapturedError(fiber, errorInfo); - }; - return update; - } - function createClassErrorUpdate(fiber, errorInfo, lane) { - var update = createUpdate(NoTimestamp, lane); - update.tag = CaptureUpdate; - var getDerivedStateFromError = fiber.type.getDerivedStateFromError; - if (typeof getDerivedStateFromError === "function") { - var error$1 = errorInfo.value; - update.payload = function () { - return getDerivedStateFromError(error$1); - }; - update.callback = function () { - { - markFailedErrorBoundaryForHotReloading(fiber); - } - logCapturedError(fiber, errorInfo); - }; - } - var inst = fiber.stateNode; - if (inst !== null && typeof inst.componentDidCatch === "function") { - update.callback = function callback() { - { - markFailedErrorBoundaryForHotReloading(fiber); - } - logCapturedError(fiber, errorInfo); - if (typeof getDerivedStateFromError !== "function") { - markLegacyErrorBoundaryAsFailed(this); - } - var error$1 = errorInfo.value; - var stack = errorInfo.stack; - this.componentDidCatch(error$1, { - componentStack: stack !== null ? stack : "" - }); - { - if (typeof getDerivedStateFromError !== "function") { - if (!includesSomeLane(fiber.lanes, SyncLane)) { - error("%s: Error boundaries should implement getDerivedStateFromError(). " + "In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); - } - } - } - }; - } - return update; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.fromBouncinessAndSpeed = fromBouncinessAndSpeed; + exports.fromOrigamiTensionAndFriction = fromOrigamiTensionAndFriction; + function stiffnessFromOrigamiValue(oValue) { + return (oValue - 30) * 3.62 + 194; + } + function dampingFromOrigamiValue(oValue) { + return (oValue - 8) * 3 + 25; + } + function fromOrigamiTensionAndFriction(tension, friction) { + return { + stiffness: stiffnessFromOrigamiValue(tension), + damping: dampingFromOrigamiValue(friction) + }; + } + function fromBouncinessAndSpeed(bounciness, speed) { + function normalize(value, startValue, endValue) { + return (value - startValue) / (endValue - startValue); + } + function projectNormal(n, start, end) { + return start + n * (end - start); + } + function linearInterpolation(t, start, end) { + return t * end + (1 - t) * start; + } + function quadraticOutInterpolation(t, start, end) { + return linearInterpolation(2 * t - t * t, start, end); + } + function b3Friction1(x) { + return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28; + } + function b3Friction2(x) { + return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2; + } + function b3Friction3(x) { + return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84; + } + function b3Nobounce(tension) { + if (tension <= 18) { + return b3Friction1(tension); + } else if (tension > 18 && tension <= 44) { + return b3Friction2(tension); + } else { + return b3Friction3(tension); } - function attachPingListener(root, wakeable, lanes) { - var pingCache = root.pingCache; - var threadIDs; - if (pingCache === null) { - pingCache = root.pingCache = new PossiblyWeakMap$1(); - threadIDs = new Set(); - pingCache.set(wakeable, threadIDs); - } else { - threadIDs = pingCache.get(wakeable); - if (threadIDs === undefined) { - threadIDs = new Set(); - pingCache.set(wakeable, threadIDs); - } + } + var b = normalize(bounciness / 1.7, 0, 20); + b = projectNormal(b, 0, 0.8); + var s = normalize(speed / 1.7, 0, 20); + var bouncyTension = projectNormal(s, 0.5, 200); + var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01); + return { + stiffness: stiffnessFromOrigamiValue(bouncyTension), + damping: dampingFromOrigamiValue(bouncyFriction) + }; + } +},341,[],"node_modules/react-native/Libraries/Animated/SpringConfig.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../nodes/AnimatedColor")); + var _Animation2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./Animation")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _easeInOut; + function easeInOut() { + if (!_easeInOut) { + var Easing = _$$_REQUIRE(_dependencyMap[10], "../Easing").default; + _easeInOut = Easing.inOut(Easing.ease); + } + return _easeInOut; + } + var TimingAnimation = /*#__PURE__*/function (_Animation) { + (0, _inherits2.default)(TimingAnimation, _Animation); + var _super = _createSuper(TimingAnimation); + function TimingAnimation(config) { + var _config$easing, _config$duration, _config$delay, _config$iterations, _config$isInteraction; + var _this; + (0, _classCallCheck2.default)(this, TimingAnimation); + _this = _super.call(this); + _this._toValue = config.toValue; + _this._easing = (_config$easing = config.easing) != null ? _config$easing : easeInOut(); + _this._duration = (_config$duration = config.duration) != null ? _config$duration : 500; + _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; + _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; + _this._useNativeDriver = _NativeAnimatedHelper.default.shouldUseNativeDriver(config); + _this._platformConfig = config.platformConfig; + _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; + return _this; + } + (0, _createClass2.default)(TimingAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + var frameDuration = 1000.0 / 60.0; + var frames = []; + var numFrames = Math.round(this._duration / frameDuration); + for (var frame = 0; frame < numFrames; frame++) { + frames.push(this._easing(frame / numFrames)); } - if (!threadIDs.has(lanes)) { - threadIDs.add(lanes); - var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); - { - if (isDevToolsPresent) { - restorePendingUpdaters(root, lanes); + frames.push(this._easing(1)); + return { + type: 'frames', + frames: frames, + toValue: this._toValue, + iterations: this.__iterations, + platformConfig: this._platformConfig + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + this.__active = true; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + var start = function start() { + // Animations that sometimes have 0 duration and sometimes do not + // still need to use the native driver when duration is 0 so as to + // not cause intermixed JS and native animations. + if (_this2._duration === 0 && !_this2._useNativeDriver) { + _this2._onUpdate(_this2._toValue); + _this2.__debouncedOnEnd({ + finished: true + }); + } else { + _this2._startTime = Date.now(); + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2._animationFrame = requestAnimationFrame( + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + _this2.onUpdate.bind(_this2)); } } - wakeable.then(ping, ping); - } - } - function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { - var wakeables = suspenseBoundary.updateQueue; - if (wakeables === null) { - var updateQueue = new Set(); - updateQueue.add(wakeable); - suspenseBoundary.updateQueue = updateQueue; + }; + if (this._delay) { + this._timeout = setTimeout(start, this._delay); } else { - wakeables.add(wakeable); + start(); } } - function resetSuspendedComponent(sourceFiber, rootRenderLanes) { - - var tag = sourceFiber.tag; - if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { - var currentSource = sourceFiber.alternate; - if (currentSource) { - sourceFiber.updateQueue = currentSource.updateQueue; - sourceFiber.memoizedState = currentSource.memoizedState; - sourceFiber.lanes = currentSource.lanes; + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + if (now >= this._startTime + this._duration) { + if (this._duration === 0) { + this._onUpdate(this._toValue); } else { - sourceFiber.updateQueue = null; - sourceFiber.memoizedState = null; + this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)); } + this.__debouncedOnEnd({ + finished: true + }); + return; + } + this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)); + if (this.__active) { + // $FlowFixMe[method-unbinding] added when improving typing for this parameters + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); } } - function getNearestSuspenseBoundaryToCapture(returnFiber) { - var node = returnFiber; - do { - if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { - return node; - } - - node = node.return; - } while (node !== null); - return null; + }, { + key: "stop", + value: function stop() { + (0, _get2.default)((0, _getPrototypeOf2.default)(TimingAnimation.prototype), "stop", this).call(this); + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + this.__debouncedOnEnd({ + finished: false + }); } - function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { - if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { - if (suspenseBoundary === returnFiber) { - suspenseBoundary.flags |= ShouldCapture; - } else { - suspenseBoundary.flags |= DidCapture; - sourceFiber.flags |= ForceUpdateForLegacySuspense; - - sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); - if (sourceFiber.tag === ClassComponent) { - var currentSourceFiber = sourceFiber.alternate; - if (currentSourceFiber === null) { - sourceFiber.tag = IncompleteClassComponent; - } else { - var update = createUpdate(NoTimestamp, SyncLane); - update.tag = ForceUpdate; - enqueueUpdate(sourceFiber, update); - } - } + }]); + return TimingAnimation; + }(_Animation2.default); + exports.default = TimingAnimation; +},342,[3,12,13,131,49,51,53,327,332,330,337],"node_modules/react-native/Libraries/Animated/animations/TimingAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createAnimatedComponent; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Components/View/View")); + var _useMergeRefs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/useMergeRefs")); + var _useAnimatedProps3 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./useAnimatedProps")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js"; + var _excluded = ["style"]; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function createAnimatedComponent(Component) { + var _this = this; + return React.forwardRef(function (props, forwardedRef) { + var _useAnimatedProps = (0, _useAnimatedProps3.default)( + // $FlowFixMe[incompatible-call] + props), + _useAnimatedProps2 = (0, _slicedToArray2.default)(_useAnimatedProps, 2), + reducedProps = _useAnimatedProps2[0], + callbackRef = _useAnimatedProps2[1]; + var ref = (0, _useMergeRefs.default)(callbackRef, forwardedRef); + + // Some components require explicit passthrough values for animation + // to work properly. For example, if an animated component is + // transformed and Pressable, onPress will not work after transform + // without these passthrough values. + // $FlowFixMe[prop-missing] + var passthroughAnimatedPropExplicitValues = reducedProps.passthroughAnimatedPropExplicitValues, + style = reducedProps.style; + var _ref = passthroughAnimatedPropExplicitValues != null ? passthroughAnimatedPropExplicitValues : {}, + passthroughStyle = _ref.style, + passthroughProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var mergedStyle = Object.assign({}, style, passthroughStyle); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(Component, Object.assign({}, reducedProps, passthroughProps, { + style: mergedStyle, + ref: ref + })); + }); + } +},343,[3,149,22,225,344,345,41,89],"node_modules/react-native/Libraries/Animated/createAnimatedComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useMergeRefs; + var _react = _$$_REQUIRE(_dependencyMap[0], "react"); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); + /** + * Constructs a new ref that forwards new values to each of the given refs. The + * given refs will always be invoked in the order that they are supplied. + * + * WARNING: A known problem of merging refs using this approach is that if any + * of the given refs change, the returned callback ref will also be changed. If + * the returned callback ref is supplied as a `ref` to a React element, this may + * lead to problems with the given refs being invoked more times than desired. + */ + function useMergeRefs() { + for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { + refs[_key] = arguments[_key]; + } + return (0, _react.useCallback)(function (current) { + for (var ref of refs) { + if (ref != null) { + if (typeof ref === 'function') { + ref(current); + } else { + ref.current = current; } - return suspenseBoundary; } - - suspenseBoundary.flags |= ShouldCapture; - - suspenseBoundary.lanes = rootRenderLanes; - return suspenseBoundary; } - function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { - sourceFiber.flags |= Incomplete; - { - if (isDevToolsPresent) { - restorePendingUpdaters(root, rootRenderLanes); - } - } - if (value !== null && typeof value === "object" && typeof value.then === "function") { - var wakeable = value; - resetSuspendedComponent(sourceFiber); - var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); - if (suspenseBoundary !== null) { - suspenseBoundary.flags &= ~ForceClientRender; - markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); - - if (suspenseBoundary.mode & ConcurrentMode) { - attachPingListener(root, wakeable, rootRenderLanes); - } - attachRetryListener(suspenseBoundary, root, wakeable); - return; - } else { - if (!includesSyncLane(rootRenderLanes)) { - attachPingListener(root, wakeable, rootRenderLanes); - renderDidSuspendDelayIfPossible(); - return; - } + }, [].concat(refs) // eslint-disable-line react-hooks/exhaustive-deps + ); + } +},344,[41],"node_modules/react-native/Libraries/Utilities/useMergeRefs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); + 'use strict'; - value = uncaughtSuspenseError; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useAnimatedProps; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _useRefEffect = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/useRefEffect")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAnimatedHelper")); + var _AnimatedProps = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedProps")); + var _react = _$$_REQUIRE(_dependencyMap[5], "react"); + function useAnimatedProps(props) { + var _useReducer = (0, _react.useReducer)(function (count) { + return count + 1; + }, 0), + _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2), + scheduleUpdate = _useReducer2[1]; + var onUpdateRef = (0, _react.useRef)(null); + + // TODO: Only invalidate `node` if animated props or `style` change. In the + // previous implementation, we permitted `style` to override props with the + // same name property name as styles, so we can probably continue doing that. + // The ordering of other props *should* not matter. + var node = (0, _react.useMemo)(function () { + return new _AnimatedProps.default(props, function () { + return onUpdateRef.current == null ? void 0 : onUpdateRef.current(); + }); + }, [props]); + useAnimatedPropsLifecycle(node); + + // TODO: This "effect" does three things: + // + // 1) Call `setNativeView`. + // 2) Update `onUpdateRef`. + // 3) Update listeners for `AnimatedEvent` props. + // + // Ideally, each of these would be separate "effects" so that they are not + // unnecessarily re-run when irrelevant dependencies change. For example, we + // should be able to hoist all `AnimatedEvent` props and only do #3 if either + // the `AnimatedEvent` props change or `instance` changes. + // + // But there is no way to transparently compose three separate callback refs, + // so we just combine them all into one for now. + var refEffect = (0, _react.useCallback)(function (instance) { + // NOTE: This may be called more often than necessary (e.g. when `props` + // changes), but `setNativeView` already optimizes for that. + node.setNativeView(instance); + + // NOTE: This callback is only used by the JavaScript animation driver. + onUpdateRef.current = function () { + if (process.env.NODE_ENV === 'test' || typeof instance !== 'object' || typeof (instance == null ? void 0 : instance.setNativeProps) !== 'function' || isFabricInstance(instance)) { + // Schedule an update for this component to update `reducedProps`, + // but do not compute it immediately. If a parent also updated, we + // need to merge those new props in before updating. + scheduleUpdate(); + } else if (!node.__isNative) { + // $FlowIgnore[not-a-function] - Assume it's still a function. + // $FlowFixMe[incompatible-use] + instance.setNativeProps(node.__getAnimatedValue()); + } else { + 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`'); } - - renderDidError(value); - value = createCapturedValue(value, sourceFiber); - var workInProgress = returnFiber; - do { - switch (workInProgress.tag) { - case HostRoot: - { - var _errorInfo = value; - workInProgress.flags |= ShouldCapture; - var lane = pickArbitraryLane(rootRenderLanes); - workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); - var update = createRootErrorUpdate(workInProgress, _errorInfo, lane); - enqueueCapturedUpdate(workInProgress, update); - return; - } - case ClassComponent: - var errorInfo = value; - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { - workInProgress.flags |= ShouldCapture; - var _lane = pickArbitraryLane(rootRenderLanes); - workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); - - var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane); - enqueueCapturedUpdate(workInProgress, _update); - return; - } - break; - } - workInProgress = workInProgress.return; - } while (workInProgress !== null); - } - function getSuspendedCache() { - { - return null; + }; + var target = getEventTarget(instance); + var events = []; + for (var propName in props) { + var propValue = props[propName]; + if (propValue instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedEvent").AnimatedEvent && propValue.__isNative) { + propValue.__attach(target, propName); + events.push([propName, propValue]); } } + return function () { + onUpdateRef.current = null; + for (var _ref of events) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2); + var _propName = _ref2[0]; + var _propValue = _ref2[1]; + _propValue.__detach(target, _propName); + } + }; + }, [props, node]); + var callbackRef = (0, _useRefEffect.default)(refEffect); + return [reduceAnimatedProps(node), callbackRef]; + } + function reduceAnimatedProps(node) { + // Force `collapsable` to be false so that the native view is not flattened. + // Flattened views cannot be accurately referenced by the native driver. + return Object.assign({}, node.__getValue(), { + collapsable: false + }); + } - var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; - var didReceiveUpdate = false; - var didWarnAboutBadClass; - var didWarnAboutModulePatternComponent; - var didWarnAboutContextTypeOnFunctionComponent; - var didWarnAboutGetDerivedStateOnFunctionComponent; - var didWarnAboutFunctionRefs; - var didWarnAboutReassigningProps; - var didWarnAboutRevealOrder; - var didWarnAboutTailOptions; - { - didWarnAboutBadClass = {}; - didWarnAboutModulePatternComponent = {}; - didWarnAboutContextTypeOnFunctionComponent = {}; - didWarnAboutGetDerivedStateOnFunctionComponent = {}; - didWarnAboutFunctionRefs = {}; - didWarnAboutReassigningProps = false; - didWarnAboutRevealOrder = {}; - didWarnAboutTailOptions = {}; + /** + * Manages the lifecycle of the supplied `AnimatedProps` by invoking `__attach` + * and `__detach`. However, this is more complicated because `AnimatedProps` + * uses reference counting to determine when to recursively detach its children + * nodes. So in order to optimize this, we avoid detaching until the next attach + * unless we are unmounting. + */ + function useAnimatedPropsLifecycle(node) { + var prevNodeRef = (0, _react.useRef)(null); + var isUnmountingRef = (0, _react.useRef)(false); + (0, _react.useEffect)(function () { + // It is ok for multiple components to call `flushQueue` because it noops + // if the queue is empty. When multiple animated components are mounted at + // the same time. Only first component flushes the queue and the others will noop. + _NativeAnimatedHelper.default.API.flushQueue(); + }); + (0, _react.useLayoutEffect)(function () { + isUnmountingRef.current = false; + return function () { + isUnmountingRef.current = true; + }; + }, []); + (0, _react.useLayoutEffect)(function () { + node.__attach(); + if (prevNodeRef.current != null) { + var prevNode = prevNodeRef.current; + // TODO: Stop restoring default values (unless `reset` is called). + prevNode.__restoreDefaultValues(); + prevNode.__detach(); + prevNodeRef.current = null; } - function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { - if (current === null) { - workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes); + return function () { + if (isUnmountingRef.current) { + // NOTE: Do not restore default values on unmount, see D18197735. + node.__detach(); } else { - workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + prevNodeRef.current = node; } + }; + }, [node]); + } + function getEventTarget(instance) { + return typeof instance === 'object' && typeof (instance == null ? void 0 : instance.getScrollableNode) === 'function' ? + // $FlowFixMe[incompatible-use] - Legacy instance assumptions. + instance.getScrollableNode() : instance; + } + + // $FlowFixMe[unclear-type] - Legacy instance assumptions. + function isFabricInstance(instance) { + var _instance$getScrollRe; + return (0, _$$_REQUIRE(_dependencyMap[7], "../Renderer/public/ReactFabricPublicInstanceUtils").isPublicInstance)(instance) || + // Some components have a setNativeProps function but aren't a host component + // such as lists like FlatList and SectionList. These should also use + // forceUpdate in Fabric since setNativeProps doesn't exist on the underlying + // host component. This crazy hack is essentially special casing those lists and + // ScrollView itself to use forceUpdate in Fabric. + // If these components end up using forwardRef then these hacks can go away + // as instance would actually be the underlying host component and the above check + // would be sufficient. + (0, _$$_REQUIRE(_dependencyMap[7], "../Renderer/public/ReactFabricPublicInstanceUtils").isPublicInstance)(instance == null ? void 0 : instance.getNativeScrollRef == null ? void 0 : instance.getNativeScrollRef()) || (0, _$$_REQUIRE(_dependencyMap[7], "../Renderer/public/ReactFabricPublicInstanceUtils").isPublicInstance)(instance == null ? void 0 : instance.getScrollResponder == null ? void 0 : (_instance$getScrollRe = instance.getScrollResponder()) == null ? void 0 : _instance$getScrollRe.getNativeScrollRef == null ? void 0 : _instance$getScrollRe.getNativeScrollRef()); + } +},345,[3,22,346,327,347,41,350,352],"node_modules/react-native/Libraries/Animated/useAnimatedProps.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useRefEffect; + var _react = _$$_REQUIRE(_dependencyMap[0], "react"); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + /** + * Constructs a callback ref that provides similar semantics as `useEffect`. The + * supplied `effect` callback will be called with non-null component instances. + * The `effect` callback can also optionally return a cleanup function. + * + * When a component is updated or unmounted, the cleanup function is called. The + * `effect` callback will then be called again, if applicable. + * + * When a new `effect` callback is supplied, the previously returned cleanup + * function will be called before the new `effect` callback is called with the + * same instance. + * + * WARNING: The `effect` callback should be stable (e.g. using `useCallback`). + */ + function useRefEffect(effect) { + var cleanupRef = (0, _react.useRef)(undefined); + return (0, _react.useCallback)(function (instance) { + if (cleanupRef.current) { + cleanupRef.current(); + cleanupRef.current = undefined; } - function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) { - workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); + if (instance != null) { + cleanupRef.current = effect(instance); + } + }, [effect]); + } +},346,[41],"node_modules/react-native/Libraries/Utilities/useRefEffect.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _AnimatedNode2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedNode")); + var _AnimatedStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedStyle")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "invariant")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedProps = /*#__PURE__*/function (_AnimatedNode) { + (0, _inherits2.default)(AnimatedProps, _AnimatedNode); + var _super = _createSuper(AnimatedProps); + function AnimatedProps(props, callback) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedProps); + _this = _super.call(this); + if (props.style) { + props = Object.assign({}, props, { + style: new _AnimatedStyle.default(props.style) + }); } - function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { - { - if (workInProgress.type !== workInProgress.elementType) { - var innerPropTypes = Component.propTypes; - if (innerPropTypes) { - checkPropTypes(innerPropTypes, nextProps, - "prop", getComponentNameFromType(Component)); - } + _this._props = props; + _this._callback = callback; + return _this; + } + (0, _createClass2.default)(AnimatedProps, [{ + key: "__getValue", + value: function __getValue() { + var props = {}; + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _AnimatedNode2.default) { + props[key] = value.__getValue(); + } else if (value instanceof _$$_REQUIRE(_dependencyMap[11], "../AnimatedEvent").AnimatedEvent) { + props[key] = value.__getHandler(); + } else { + props[key] = value; } } - var render = Component.render; - var ref = workInProgress.ref; - - var nextChildren; - prepareToReadContext(workInProgress, renderLanes); - { - ReactCurrentOwner$1.current = workInProgress; - setIsRendering(true); - nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes); - setIsRendering(false); - } - if (current !== null && !didReceiveUpdate) { - bailoutHooks(current, workInProgress, renderLanes); - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - workInProgress.flags |= PerformedWork; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; + return props; } - function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (current === null) { - var type = Component.type; - if (isSimpleFunctionComponent(type) && Component.compare === null && - Component.defaultProps === undefined) { - var resolvedType = type; - { - resolvedType = resolveFunctionForHotReloading(type); - } - - workInProgress.tag = SimpleMemoComponent; - workInProgress.type = resolvedType; - { - validateFunctionComponentInDev(workInProgress, type); - } - return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes); - } - { - var innerPropTypes = type.propTypes; - if (innerPropTypes) { - checkPropTypes(innerPropTypes, nextProps, - "prop", getComponentNameFromType(type)); - } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + var props = {}; + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _AnimatedNode2.default) { + props[key] = value.__getAnimatedValue(); } - var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); - child.ref = workInProgress.ref; - child.return = workInProgress; - workInProgress.child = child; - return child; } - { - var _type = Component.type; - var _innerPropTypes = _type.propTypes; - if (_innerPropTypes) { - checkPropTypes(_innerPropTypes, nextProps, - "prop", getComponentNameFromType(_type)); + return props; + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _AnimatedNode2.default) { + value.__addChild(this); } } - var currentChild = current.child; - - var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); - if (!hasScheduledUpdateOrContext) { - var prevProps = currentChild.memoizedProps; - - var compare = Component.compare; - compare = compare !== null ? compare : shallowEqual; - if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + }, { + key: "__detach", + value: function __detach() { + if (this.__isNative && this._animatedView) { + this.__disconnectAnimatedView(); + } + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _AnimatedNode2.default) { + value.__removeChild(this); } } - - workInProgress.flags |= PerformedWork; - var newChild = createWorkInProgress(currentChild, nextProps); - newChild.ref = workInProgress.ref; - newChild.return = workInProgress; - workInProgress.child = newChild; - return newChild; + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedProps.prototype), "__detach", this).call(this); } - function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - { - if (workInProgress.type !== workInProgress.elementType) { - var outerMemoType = workInProgress.elementType; - if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { - var lazyComponent = outerMemoType; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - outerMemoType = init(payload); - } catch (x) { - outerMemoType = null; - } - - var outerPropTypes = outerMemoType && outerMemoType.propTypes; - if (outerPropTypes) { - checkPropTypes(outerPropTypes, nextProps, - "prop", getComponentNameFromType(outerMemoType)); - } - } + }, { + key: "update", + value: function update() { + this._callback(); + } + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + for (var key in this._props) { + var value = this._props[key]; + if (value instanceof _AnimatedNode2.default) { + value.__makeNative(platformConfig); } } - if (current !== null) { - var prevProps = current.memoizedProps; - if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && - workInProgress.type === current.type) { - didReceiveUpdate = false; + if (!this.__isNative) { + this.__isNative = true; - workInProgress.pendingProps = nextProps = prevProps; - if (!checkScheduledUpdateOrContext(current, renderLanes)) { - workInProgress.lanes = current.lanes; - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { - didReceiveUpdate = true; - } + // Since this does not call the super.__makeNative, we need to store the + // supplied platformConfig here, before calling __connectAnimatedView + // where it will be needed to traverse the graph of attached values. + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedProps.prototype), "__setPlatformConfig", this).call(this, platformConfig); + if (this._animatedView) { + this.__connectAnimatedView(); } } - return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); } - function updateOffscreenComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps; - var nextChildren = nextProps.children; - var prevState = current !== null ? current.memoizedState : null; - if (nextProps.mode === "hidden" || enableLegacyHidden) { - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - var nextState = { - baseLanes: NoLanes, - cachePool: null, - transitions: null - }; - workInProgress.memoizedState = nextState; - pushRenderLanes(workInProgress, renderLanes); - } else if (!includesSomeLane(renderLanes, OffscreenLane)) { - var spawnedCachePool = null; - - var nextBaseLanes; - if (prevState !== null) { - var prevBaseLanes = prevState.baseLanes; - nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes); - } else { - nextBaseLanes = renderLanes; - } - - workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane); - var _nextState = { - baseLanes: nextBaseLanes, - cachePool: spawnedCachePool, - transitions: null - }; - workInProgress.memoizedState = _nextState; - workInProgress.updateQueue = null; - - pushRenderLanes(workInProgress, nextBaseLanes); - return null; - } else { - var _nextState2 = { - baseLanes: NoLanes, - cachePool: null, - transitions: null - }; - workInProgress.memoizedState = _nextState2; - - var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes; - pushRenderLanes(workInProgress, subtreeRenderLanes); - } - } else { - var _subtreeRenderLanes; - if (prevState !== null) { - _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); - workInProgress.memoizedState = null; - } else { - _subtreeRenderLanes = renderLanes; - } - pushRenderLanes(workInProgress, _subtreeRenderLanes); + }, { + key: "setNativeView", + value: function setNativeView(animatedView) { + if (this._animatedView === animatedView) { + return; + } + this._animatedView = animatedView; + if (this.__isNative) { + this.__connectAnimatedView(); } - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; - } - - function updateFragment(current, workInProgress, renderLanes) { - var nextChildren = workInProgress.pendingProps; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; } - function updateMode(current, workInProgress, renderLanes) { - var nextChildren = workInProgress.pendingProps.children; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; + }, { + key: "__connectAnimatedView", + value: function __connectAnimatedView() { + (0, _invariant.default)(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = (0, _$$_REQUIRE(_dependencyMap[12], "../../ReactNative/RendererProxy").findNodeHandle)(this._animatedView); + (0, _invariant.default)(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + _NativeAnimatedHelper.default.API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag); } - function updateProfiler(current, workInProgress, renderLanes) { - { - workInProgress.flags |= Update; - { - var stateNode = workInProgress.stateNode; - stateNode.effectDuration = 0; - stateNode.passiveEffectDuration = 0; - } - } - var nextProps = workInProgress.pendingProps; - var nextChildren = nextProps.children; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; + }, { + key: "__disconnectAnimatedView", + value: function __disconnectAnimatedView() { + (0, _invariant.default)(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = (0, _$$_REQUIRE(_dependencyMap[12], "../../ReactNative/RendererProxy").findNodeHandle)(this._animatedView); + (0, _invariant.default)(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + _NativeAnimatedHelper.default.API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag); } - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if (current === null && ref !== null || current !== null && current.ref !== ref) { - workInProgress.flags |= Ref; + }, { + key: "__restoreDefaultValues", + value: function __restoreDefaultValues() { + // When using the native driver, view properties need to be restored to + // their default values manually since react no longer tracks them. This + // is needed to handle cases where a prop driven by native animated is removed + // after having been changed natively by an animation. + if (this.__isNative) { + _NativeAnimatedHelper.default.API.restoreDefaultValues(this.__getNativeTag()); } } - function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { - { - if (workInProgress.type !== workInProgress.elementType) { - var innerPropTypes = Component.propTypes; - if (innerPropTypes) { - checkPropTypes(innerPropTypes, nextProps, - "prop", getComponentNameFromType(Component)); - } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var propsConfig = {}; + for (var propKey in this._props) { + var value = this._props[propKey]; + if (value instanceof _AnimatedNode2.default) { + value.__makeNative(this.__getPlatformConfig()); + propsConfig[propKey] = value.__getNativeTag(); } } - var context; - { - var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); - context = getMaskedContext(workInProgress, unmaskedContext); - } - var nextChildren; - prepareToReadContext(workInProgress, renderLanes); - { - ReactCurrentOwner$1.current = workInProgress; - setIsRendering(true); - nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); - setIsRendering(false); - } - if (current !== null && !didReceiveUpdate) { - bailoutHooks(current, workInProgress, renderLanes); - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - workInProgress.flags |= PerformedWork; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; + return { + type: 'props', + props: propsConfig + }; } - function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { - { - switch (shouldError(workInProgress)) { - case false: - { - var _instance = workInProgress.stateNode; - var ctor = workInProgress.type; + }]); + return AnimatedProps; + }(_AnimatedNode2.default); + exports.default = AnimatedProps; +},347,[3,12,13,131,49,51,53,327,340,348,20,350,37],"node_modules/react-native/Libraries/Animated/nodes/AnimatedProps.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context); - var state = tempInstance.state; - _instance.updater.enqueueSetState(_instance, state, null); - break; - } - case true: - { - workInProgress.flags |= DidCapture; - workInProgress.flags |= ShouldCapture; + 'use strict'; - var error$1 = new Error("Simulated error coming from DevTools"); - var lane = pickArbitraryLane(renderLanes); - workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../StyleSheet/flattenStyle")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Utilities/Platform")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../NativeAnimatedHelper")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnimatedNode")); + var _AnimatedTransform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./AnimatedTransform")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + function createAnimatedStyle(inputStyle) { + // $FlowFixMe[underconstrained-implicit-instantiation] + var style = (0, _flattenStyle.default)(inputStyle); + var animatedStyles = {}; + for (var key in style) { + var value = style[key]; + if (key === 'transform') { + animatedStyles[key] = new _AnimatedTransform.default(value); + } else if (value instanceof _AnimatedNode.default) { + animatedStyles[key] = value; + } else if (value && !Array.isArray(value) && typeof value === 'object') { + animatedStyles[key] = createAnimatedStyle(value); + } + } + return animatedStyles; + } + function createStyleWithAnimatedTransform(inputStyle) { + // $FlowFixMe[underconstrained-implicit-instantiation] + var style = (0, _flattenStyle.default)(inputStyle) || {}; + if (style.transform) { + style = Object.assign({}, style, { + transform: new _AnimatedTransform.default(style.transform) + }); + } + return style; + } + var AnimatedStyle = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedStyle, _AnimatedWithChildren); + var _super = _createSuper(AnimatedStyle); + function AnimatedStyle(style) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedStyle); + _this = _super.call(this); + if (_Platform.default.OS === 'web') { + _this._inputStyle = style; + _this._style = createAnimatedStyle(style); + } else { + _this._style = createStyleWithAnimatedTransform(style); + } + return _this; + } - var update = createClassErrorUpdate(workInProgress, createCapturedValue(error$1, workInProgress), lane); - enqueueCapturedUpdate(workInProgress, update); - break; - } - } - if (workInProgress.type !== workInProgress.elementType) { - var innerPropTypes = Component.propTypes; - if (innerPropTypes) { - checkPropTypes(innerPropTypes, nextProps, - "prop", getComponentNameFromType(Component)); - } + // Recursively get values for nested styles (like iOS's shadowOffset) + (0, _createClass2.default)(AnimatedStyle, [{ + key: "_walkStyleAndGetValues", + value: function _walkStyleAndGetValues(style) { + var updatedStyle = {}; + for (var key in style) { + var value = style[key]; + if (value instanceof _AnimatedNode.default) { + updatedStyle[key] = value.__getValue(); + } else if (value && !Array.isArray(value) && typeof value === 'object') { + // Support animating nested values (for example: shadowOffset.height) + updatedStyle[key] = this._walkStyleAndGetValues(value); + } else { + updatedStyle[key] = value; } } - - var hasContext; - if (isContextProvider(Component)) { - hasContext = true; - pushContextProvider(workInProgress); - } else { - hasContext = false; + return updatedStyle; + } + }, { + key: "__getValue", + value: function __getValue() { + if (_Platform.default.OS === 'web') { + return [this._inputStyle, this._walkStyleAndGetValues(this._style)]; } - prepareToReadContext(workInProgress, renderLanes); - var instance = workInProgress.stateNode; - var shouldUpdate; - if (instance === null) { - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + return this._walkStyleAndGetValues(this._style); + } - constructClassInstance(workInProgress, Component, nextProps); - mountClassInstance(workInProgress, Component, nextProps, renderLanes); - shouldUpdate = true; - } else if (current === null) { - shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes); - } else { - shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes); - } - var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes); - { - var inst = workInProgress.stateNode; - if (shouldUpdate && inst.props !== nextProps) { - if (!didWarnAboutReassigningProps) { - error("It looks like %s is reassigning its own `this.props` while rendering. " + "This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"); - } - didWarnAboutReassigningProps = true; + // Recursively get animated values for nested styles (like iOS's shadowOffset) + }, { + key: "_walkStyleAndGetAnimatedValues", + value: function _walkStyleAndGetAnimatedValues(style) { + var updatedStyle = {}; + for (var key in style) { + var value = style[key]; + if (value instanceof _AnimatedNode.default) { + updatedStyle[key] = value.__getAnimatedValue(); + } else if (value && !Array.isArray(value) && typeof value === 'object') { + // Support animating nested values (for example: shadowOffset.height) + updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value); } } - return nextUnitOfWork; + return updatedStyle; } - function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { - markRef(current, workInProgress); - var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; - if (!shouldUpdate && !didCaptureError) { - if (hasContext) { - invalidateContextProvider(workInProgress, Component, false); - } - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - var instance = workInProgress.stateNode; - - ReactCurrentOwner$1.current = workInProgress; - var nextChildren; - if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { - nextChildren = null; - { - stopProfilerTimerIfRunning(); - } - } else { - { - setIsRendering(true); - nextChildren = instance.render(); - setIsRendering(false); + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._walkStyleAndGetAnimatedValues(this._style); + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _AnimatedNode.default) { + value.__addChild(this); } } - - workInProgress.flags |= PerformedWork; - if (current !== null && didCaptureError) { - forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes); - } else { - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - } - - workInProgress.memoizedState = instance.state; - - if (hasContext) { - invalidateContextProvider(workInProgress, Component, true); - } - return workInProgress.child; } - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - if (root.pendingContext) { - pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); - } else if (root.context) { - pushTopLevelContextObject(workInProgress, root.context, false); + }, { + key: "__detach", + value: function __detach() { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _AnimatedNode.default) { + value.__removeChild(this); + } } - pushHostContainer(workInProgress, root.containerInfo); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedStyle.prototype), "__detach", this).call(this); } - function updateHostRoot(current, workInProgress, renderLanes) { - pushHostRootContext(workInProgress); - if (current === null) { - throw new Error("Should have a current fiber. This is a bug in React."); - } - var nextProps = workInProgress.pendingProps; - var prevState = workInProgress.memoizedState; - var prevChildren = prevState.element; - cloneUpdateQueue(current, workInProgress); - processUpdateQueue(workInProgress, nextProps, null, renderLanes); - var nextState = workInProgress.memoizedState; - var root = workInProgress.stateNode; - - var nextChildren = nextState.element; - { - if (nextChildren === prevChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + for (var key in this._style) { + var value = this._style[key]; + if (value instanceof _AnimatedNode.default) { + value.__makeNative(platformConfig); } - reconcileChildren(current, workInProgress, nextChildren, renderLanes); } - return workInProgress.child; + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedStyle.prototype), "__makeNative", this).call(this, platformConfig); } - function updateHostComponent(current, workInProgress, renderLanes) { - pushHostContext(workInProgress); - var type = workInProgress.type; - var nextProps = workInProgress.pendingProps; - var prevProps = current !== null ? current.memoizedProps : null; - var nextChildren = nextProps.children; - if (prevProps !== null && shouldSetTextContent()) { - workInProgress.flags |= ContentReset; + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var styleConfig = {}; + for (var styleKey in this._style) { + if (this._style[styleKey] instanceof _AnimatedNode.default) { + var style = this._style[styleKey]; + style.__makeNative(this.__getPlatformConfig()); + styleConfig[styleKey] = style.__getNativeTag(); + } + // Non-animated styles are set using `setNativeProps`, no need + // to pass those as a part of the node config } - markRef(current, workInProgress); - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; - } - function updateHostText(current, workInProgress) { - return null; + _NativeAnimatedHelper.default.validateStyles(styleConfig); + return { + type: 'style', + style: styleConfig + }; } - function mountLazyComponent(_current, workInProgress, elementType, renderLanes) { - resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); - var props = workInProgress.pendingProps; - var lazyComponent = elementType; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - var Component = init(payload); + }]); + return AnimatedStyle; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedStyle; +},348,[3,12,13,131,49,51,53,207,17,327,340,349,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.type = Component; - var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); - var resolvedProps = resolveDefaultProps(Component, props); - var child; - switch (resolvedTag) { - case FunctionComponent: - { - { - validateFunctionComponentInDev(workInProgress, Component); - workInProgress.type = Component = resolveFunctionForHotReloading(Component); - } - child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes); - return child; - } - case ClassComponent: - { - { - workInProgress.type = Component = resolveClassForHotReloading(Component); - } - child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes); - return child; - } - case ForwardRef: - { - { - workInProgress.type = Component = resolveForwardRefForHotReloading(Component); - } - child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes); - return child; - } - case MemoComponent: - { - { - if (workInProgress.type !== workInProgress.elementType) { - var outerPropTypes = Component.propTypes; - if (outerPropTypes) { - checkPropTypes(outerPropTypes, resolvedProps, - "prop", getComponentNameFromType(Component)); - } - } - } - child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), - renderLanes); - return child; + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedNode")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedTransform = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedTransform, _AnimatedWithChildren); + var _super = _createSuper(AnimatedTransform); + function AnimatedTransform(transforms) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedTransform); + _this = _super.call(this); + _this._transforms = transforms; + return _this; + } + (0, _createClass2.default)(AnimatedTransform, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _AnimatedNode.default) { + value.__makeNative(platformConfig); } - } - var hint = ""; - { - if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { - hint = " Did you wrap a component in React.lazy() more than once?"; } - } - - throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); + }); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedTransform.prototype), "__makeNative", this).call(this, platformConfig); } - function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { - resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); - - workInProgress.tag = ClassComponent; - - var hasContext; - if (isContextProvider(Component)) { - hasContext = true; - pushContextProvider(workInProgress); - } else { - hasContext = false; - } - prepareToReadContext(workInProgress, renderLanes); - constructClassInstance(workInProgress, Component, nextProps); - mountClassInstance(workInProgress, Component, nextProps, renderLanes); - return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + }, { + key: "__getValue", + value: function __getValue() { + return this._get(function (animatedNode) { + return animatedNode.__getValue(); + }); } - function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) { - resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); - var props = workInProgress.pendingProps; - var context; - { - var unmaskedContext = getUnmaskedContext(workInProgress, Component, false); - context = getMaskedContext(workInProgress, unmaskedContext); - } - prepareToReadContext(workInProgress, renderLanes); - var value; - { - if (Component.prototype && typeof Component.prototype.render === "function") { - var componentName = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutBadClass[componentName]) { - error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); - didWarnAboutBadClass[componentName] = true; - } - } - if (workInProgress.mode & StrictLegacyMode) { - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); - } - setIsRendering(true); - ReactCurrentOwner$1.current = workInProgress; - value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes); - setIsRendering(false); - } - workInProgress.flags |= PerformedWork; - { - if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { - var _componentName = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutModulePatternComponent[_componentName]) { - error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName, _componentName, _componentName); - didWarnAboutModulePatternComponent[_componentName] = true; - } - } - } - if ( - typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { - { - var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutModulePatternComponent[_componentName2]) { - error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); - didWarnAboutModulePatternComponent[_componentName2] = true; - } - } - - workInProgress.tag = ClassComponent; - - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - - var hasContext = false; - if (isContextProvider(Component)) { - hasContext = true; - pushContextProvider(workInProgress); - } else { - hasContext = false; - } - workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; - initializeUpdateQueue(workInProgress); - adoptClassInstance(workInProgress, value); - mountClassInstance(workInProgress, Component, props, renderLanes); - return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); - } else { - workInProgress.tag = FunctionComponent; - reconcileChildren(null, workInProgress, value, renderLanes); - { - validateFunctionComponentInDev(workInProgress, Component); - } - return workInProgress.child; - } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._get(function (animatedNode) { + return animatedNode.__getAnimatedValue(); + }); } - function validateFunctionComponentInDev(workInProgress, Component) { - { - if (Component) { - if (Component.childContextTypes) { - error("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"); - } - } - if (workInProgress.ref !== null) { - var info = ""; - var ownerName = getCurrentFiberOwnerNameInDevOrNull(); - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - var warningKey = ownerName || ""; - var debugSource = workInProgress._debugSource; - if (debugSource) { - warningKey = debugSource.fileName + ":" + debugSource.lineNumber; - } - if (!didWarnAboutFunctionRefs[warningKey]) { - didWarnAboutFunctionRefs[warningKey] = true; - error("Function components cannot be given refs. " + "Attempts to access this ref will fail. " + "Did you mean to use React.forwardRef()?%s", info); + }, { + key: "__attach", + value: function __attach() { + var _this2 = this; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _AnimatedNode.default) { + value.__addChild(_this2); } } - if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName3 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) { - error("%s: Function components do not support getDerivedStateFromProps.", _componentName3); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; + }); + } + }, { + key: "__detach", + value: function __detach() { + var _this3 = this; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _AnimatedNode.default) { + value.__removeChild(_this3); } } - if (typeof Component.contextType === "object" && Component.contextType !== null) { - var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { - error("%s: Function components do not support contextType.", _componentName4); - didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + }); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedTransform.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var transConfigs = []; + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + if (value instanceof _AnimatedNode.default) { + transConfigs.push({ + type: 'animated', + property: key, + nodeTag: value.__getNativeTag() + }); + } else { + transConfigs.push({ + type: 'static', + property: key, + value: _NativeAnimatedHelper.default.transformDataType(value) + }); } } - } - } - var SUSPENDED_MARKER = { - dehydrated: null, - treeContext: null, - retryLane: NoLane - }; - function mountSuspenseOffscreenState(renderLanes) { - return { - baseLanes: renderLanes, - cachePool: getSuspendedCache(), - transitions: null - }; - } - function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) { - var cachePool = null; + }); + _NativeAnimatedHelper.default.validateTransform(transConfigs); return { - baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes), - cachePool: cachePool, - transitions: prevOffscreenState.transitions + type: 'transform', + transforms: transConfigs }; } - - function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) { - if (current !== null) { - var suspenseState = current.memoizedState; - if (suspenseState === null) { - return false; + }, { + key: "_get", + value: function _get(getter) { + return this._transforms.map(function (transform) { + var result = {}; + for (var key in transform) { + var value = transform[key]; + if (value instanceof _AnimatedNode.default) { + result[key] = getter(value); + } else if (Array.isArray(value)) { + result[key] = value.map(function (element) { + if (element instanceof _AnimatedNode.default) { + return getter(element); + } else { + return element; + } + }); + } else if (typeof value === 'object') { + result[key] = {}; + for (var _ref of Object.entries(value)) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2); + var nestedKey = _ref2[0]; + var nestedValue = _ref2[1]; + if (nestedValue instanceof _AnimatedNode.default) { + result[key][nestedKey] = getter(nestedValue); + } else { + result[key][nestedKey] = nestedValue; + } + } + } else { + result[key] = value; + } } - } - - return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); - } - function getRemainingWorkInPrimaryTree(current, renderLanes) { - return removeLanes(current.childLanes, renderLanes); + return result; + }); } - function updateSuspenseComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps; + }]); + return AnimatedTransform; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedTransform; +},349,[3,22,12,13,131,49,51,53,327,340,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTransform.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - { - if (shouldSuspend(workInProgress)) { - workInProgress.flags |= DidCapture; - } - } - var suspenseContext = suspenseStackCursor.current; - var showFallback = false; - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; - if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { - showFallback = true; - workInProgress.flags &= ~DidCapture; - } else { - if (current === null || current.memoizedState !== null) { - { - suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); - } - } + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.AnimatedEvent = void 0; + exports.attachNativeEvent = attachNativeEvent; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAnimatedHelper")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedValue")); + var _AnimatedValueXY = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedValueXY")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); + function attachNativeEvent(viewRef, eventName, argMapping, platformConfig) { + // Find animated values in `argMapping` and create an array representing their + // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x']. + var eventMappings = []; + var traverse = function traverse(value, path) { + if (value instanceof _AnimatedValue.default) { + value.__makeNative(platformConfig); + eventMappings.push({ + nativeEventPath: path, + animatedValueTag: value.__getNativeTag() + }); + } else if (value instanceof _AnimatedValueXY.default) { + traverse(value.x, path.concat('x')); + traverse(value.y, path.concat('y')); + } else if (typeof value === 'object') { + for (var _key in value) { + traverse(value[_key], path.concat(_key)); } - suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); - pushSuspenseContext(workInProgress, suspenseContext); + } + }; + (0, _invariant.default)(argMapping[0] && argMapping[0].nativeEvent, 'Native driven events only support animated values contained inside `nativeEvent`.'); - if (current === null) { - var suspenseState = workInProgress.memoizedState; - if (suspenseState !== null) { - var dehydrated = suspenseState.dehydrated; - if (dehydrated !== null) { - return mountDehydratedSuspenseComponent(workInProgress); - } - } - var nextPrimaryChildren = nextProps.children; - var nextFallbackChildren = nextProps.fallback; - if (showFallback) { - var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); - var primaryChildFragment = workInProgress.child; - primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return fallbackFragment; - } else { - return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); - } - } else { - var prevState = current.memoizedState; - if (prevState !== null) { - var _dehydrated = prevState.dehydrated; - if (_dehydrated !== null) { - return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes); - } - } - if (showFallback) { - var _nextFallbackChildren = nextProps.fallback; - var _nextPrimaryChildren = nextProps.children; - var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes); - var _primaryChildFragment2 = workInProgress.child; - var prevOffscreenState = current.child.memoizedState; - _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes); - _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return fallbackChildFragment; - } else { - var _nextPrimaryChildren2 = nextProps.children; - var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes); - workInProgress.memoizedState = null; - return _primaryChildFragment3; - } + // Assume that the event containing `nativeEvent` is always the first argument. + traverse(argMapping[0].nativeEvent, []); + var viewTag = (0, _$$_REQUIRE(_dependencyMap[7], "../ReactNative/RendererProxy").findNodeHandle)(viewRef); + if (viewTag != null) { + eventMappings.forEach(function (mapping) { + _NativeAnimatedHelper.default.API.addAnimatedEventToView(viewTag, eventName, mapping); + }); + } + return { + detach: function detach() { + if (viewTag != null) { + eventMappings.forEach(function (mapping) { + _NativeAnimatedHelper.default.API.removeAnimatedEventFromView(viewTag, eventName, + // $FlowFixMe[incompatible-call] + mapping.animatedValueTag); + }); } } - function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) { - var mode = workInProgress.mode; - var primaryChildProps = { - mode: "visible", - children: primaryChildren - }; - var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); - primaryChildFragment.return = workInProgress; - workInProgress.child = primaryChildFragment; - return primaryChildFragment; + }; + } + function validateMapping(argMapping, args) { + var validate = function validate(recMapping, recEvt, key) { + if (recMapping instanceof _AnimatedValue.default) { + (0, _invariant.default)(typeof recEvt === 'number', 'Bad mapping of event key ' + key + ', should be number but got ' + typeof recEvt); + return; } - function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) { - var mode = workInProgress.mode; - var progressedPrimaryFragment = workInProgress.child; - var primaryChildProps = { - mode: "hidden", - children: primaryChildren - }; - var primaryChildFragment; - var fallbackChildFragment; - if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { - primaryChildFragment = progressedPrimaryFragment; - primaryChildFragment.childLanes = NoLanes; - primaryChildFragment.pendingProps = primaryChildProps; - if (workInProgress.mode & ProfileMode) { - primaryChildFragment.actualDuration = 0; - primaryChildFragment.actualStartTime = -1; - primaryChildFragment.selfBaseDuration = 0; - primaryChildFragment.treeBaseDuration = 0; - } - fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); - } else { - primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); - fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + if (recMapping instanceof _AnimatedValueXY.default) { + (0, _invariant.default)(typeof recEvt.x === 'number' && typeof recEvt.y === 'number', 'Bad mapping of event key ' + key + ', should be XY but got ' + recEvt); + return; + } + if (typeof recEvt === 'number') { + (0, _invariant.default)(recMapping instanceof _AnimatedValue.default, 'Bad mapping of type ' + typeof recMapping + ' for key ' + key + ', event value must map to AnimatedValue'); + return; + } + (0, _invariant.default)(typeof recMapping === 'object', 'Bad mapping of type ' + typeof recMapping + ' for key ' + key); + (0, _invariant.default)(typeof recEvt === 'object', 'Bad event of type ' + typeof recEvt + ' for key ' + key); + for (var mappingKey in recMapping) { + validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey); + } + }; + (0, _invariant.default)(args.length >= argMapping.length, 'Event has less arguments than mapping'); + argMapping.forEach(function (mapping, idx) { + validate(mapping, args[idx], 'arg' + idx); + }); + } + var AnimatedEvent = /*#__PURE__*/function () { + function AnimatedEvent(argMapping, config) { + var _this = this; + (0, _classCallCheck2.default)(this, AnimatedEvent); + this._listeners = []; + this._callListeners = function () { + for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { + args[_key2] = arguments[_key2]; } - primaryChildFragment.return = workInProgress; - fallbackChildFragment.return = workInProgress; - primaryChildFragment.sibling = fallbackChildFragment; - workInProgress.child = primaryChildFragment; - return fallbackChildFragment; + _this._listeners.forEach(function (listener) { + return listener.apply(void 0, args); + }); + }; + this._argMapping = argMapping; + if (config == null) { + console.warn('Animated.event now requires a second argument for options'); + config = { + useNativeDriver: false + }; } - function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) { - return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); + if (config.listener) { + this.__addListener(config.listener); } - function updateWorkInProgressOffscreenFiber(current, offscreenProps) { - return createWorkInProgress(current, offscreenProps); + this._attachedEvent = null; + this.__isNative = _NativeAnimatedHelper.default.shouldUseNativeDriver(config); + this.__platformConfig = config.platformConfig; + } + (0, _createClass2.default)(AnimatedEvent, [{ + key: "__addListener", + value: function __addListener(callback) { + this._listeners.push(callback); } - function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) { - var currentPrimaryChildFragment = current.child; - var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; - var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, { - mode: "visible", - children: primaryChildren + }, { + key: "__removeListener", + value: function __removeListener(callback) { + this._listeners = this._listeners.filter(function (listener) { + return listener !== callback; }); - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - primaryChildFragment.lanes = renderLanes; - } - primaryChildFragment.return = workInProgress; - primaryChildFragment.sibling = null; - if (currentFallbackChildFragment !== null) { - var deletions = workInProgress.deletions; - if (deletions === null) { - workInProgress.deletions = [currentFallbackChildFragment]; - workInProgress.flags |= ChildDeletion; + } + }, { + key: "__attach", + value: function __attach(viewRef, eventName) { + (0, _invariant.default)(this.__isNative, 'Only native driven events need to be attached.'); + this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping, this.__platformConfig); + } + }, { + key: "__detach", + value: function __detach(viewTag, eventName) { + (0, _invariant.default)(this.__isNative, 'Only native driven events need to be detached.'); + this._attachedEvent && this._attachedEvent.detach(); + } + }, { + key: "__getHandler", + value: function __getHandler() { + var _this2 = this; + if (this.__isNative) { + if (__DEV__) { + var _validatedMapping = false; + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { + args[_key3] = arguments[_key3]; + } + if (!_validatedMapping) { + validateMapping(_this2._argMapping, args); + _validatedMapping = true; + } + _this2._callListeners.apply(_this2, args); + }; } else { - deletions.push(currentFallbackChildFragment); + return this._callListeners; } } - workInProgress.child = primaryChildFragment; - return primaryChildFragment; - } - function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { - var mode = workInProgress.mode; - var currentPrimaryChildFragment = current.child; - var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; - var primaryChildProps = { - mode: "hidden", - children: primaryChildren - }; - var primaryChildFragment; - if ( - (mode & ConcurrentMode) === NoMode && - workInProgress.child !== currentPrimaryChildFragment) { - var progressedPrimaryFragment = workInProgress.child; - primaryChildFragment = progressedPrimaryFragment; - primaryChildFragment.childLanes = NoLanes; - primaryChildFragment.pendingProps = primaryChildProps; - if (workInProgress.mode & ProfileMode) { - primaryChildFragment.actualDuration = 0; - primaryChildFragment.actualStartTime = -1; - primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; - primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; + var validatedMapping = false; + return function () { + for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { + args[_key4] = arguments[_key4]; + } + if (__DEV__ && !validatedMapping) { + validateMapping(_this2._argMapping, args); + validatedMapping = true; } + var traverse = function traverse(recMapping, recEvt) { + if (recMapping instanceof _AnimatedValue.default) { + if (typeof recEvt === 'number') { + recMapping.setValue(recEvt); + } + } else if (recMapping instanceof _AnimatedValueXY.default) { + if (typeof recEvt === 'object') { + traverse(recMapping.x, recEvt.x); + traverse(recMapping.y, recEvt.y); + } + } else if (typeof recMapping === 'object') { + for (var mappingKey in recMapping) { + /* $FlowFixMe[prop-missing] (>=0.120.0) This comment suppresses an + * error found when Flow v0.120 was deployed. To see the error, + * delete this comment and run Flow. */ + traverse(recMapping[mappingKey], recEvt[mappingKey]); + } + } + }; + _this2._argMapping.forEach(function (mapping, idx) { + traverse(mapping, args[idx]); + }); + _this2._callListeners.apply(_this2, args); + }; + } + }]); + return AnimatedEvent; + }(); + exports.AnimatedEvent = AnimatedEvent; +},350,[3,12,13,327,333,351,20,37],"node_modules/react-native/Libraries/Animated/AnimatedEvent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.deletions = null; - } else { - primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); + 'use strict'; - primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; - } - var fallbackChildFragment; - if (currentFallbackChildFragment !== null) { - fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); - } else { - fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var _uniqueId = 1; - fallbackChildFragment.flags |= Placement; - } - fallbackChildFragment.return = workInProgress; - primaryChildFragment.return = workInProgress; - primaryChildFragment.sibling = fallbackChildFragment; - workInProgress.child = primaryChildFragment; - return fallbackChildFragment; + /** + * 2D Value for driving 2D animations, such as pan gestures. Almost identical + * API to normal `Animated.Value`, but multiplexed. + * + * See https://reactnative.dev/docs/animatedvaluexy + */ + var AnimatedValueXY = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedValueXY, _AnimatedWithChildren); + var _super = _createSuper(AnimatedValueXY); + function AnimatedValueXY(valueIn, config) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedValueXY); + _this = _super.call(this); + var value = valueIn || { + x: 0, + y: 0 + }; // fixme: shouldn't need `: any` + if (typeof value.x === 'number' && typeof value.y === 'number') { + _this.x = new _AnimatedValue.default(value.x); + _this.y = new _AnimatedValue.default(value.y); + } else { + (0, _invariant.default)(value.x instanceof _AnimatedValue.default && value.y instanceof _AnimatedValue.default, 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.'); + _this.x = value.x; + _this.y = value.y; } - function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { - if (recoverableError !== null) { - queueHydrationError(recoverableError); - } + _this._listeners = {}; + if (config && config.useNativeDriver) { + _this.__makeNative(); + } + return _this; + } - reconcileChildFibers(workInProgress, current.child, null, renderLanes); + /** + * Directly set the value. This will stop any animations running on the value + * and update all the bound properties. + * + * See https://reactnative.dev/docs/animatedvaluexy#setvalue + */ + (0, _createClass2.default)(AnimatedValueXY, [{ + key: "setValue", + value: function setValue(value) { + this.x.setValue(value.x); + this.y.setValue(value.y); + } - var nextProps = workInProgress.pendingProps; - var primaryChildren = nextProps.children; - var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + /** + * Sets an offset that is applied on top of whatever value is set, whether + * via `setValue`, an animation, or `Animated.event`. Useful for compensating + * things like the start of a pan gesture. + * + * See https://reactnative.dev/docs/animatedvaluexy#setoffset + */ + }, { + key: "setOffset", + value: function setOffset(offset) { + this.x.setOffset(offset.x); + this.y.setOffset(offset.y); + } - primaryChildFragment.flags |= Placement; - workInProgress.memoizedState = null; - return primaryChildFragment; + /** + * Merges the offset value into the base value and resets the offset to zero. + * The final output of the value is unchanged. + * + * See https://reactnative.dev/docs/animatedvaluexy#flattenoffset + */ + }, { + key: "flattenOffset", + value: function flattenOffset() { + this.x.flattenOffset(); + this.y.flattenOffset(); } - function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { - var fiberMode = workInProgress.mode; - var primaryChildProps = { - mode: "visible", - children: primaryChildren - }; - var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); - var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); - fallbackChildFragment.flags |= Placement; - primaryChildFragment.return = workInProgress; - fallbackChildFragment.return = workInProgress; - primaryChildFragment.sibling = fallbackChildFragment; - workInProgress.child = primaryChildFragment; - if ((workInProgress.mode & ConcurrentMode) !== NoMode) { - reconcileChildFibers(workInProgress, current.child, null, renderLanes); - } - return fallbackChildFragment; + /** + * Sets the offset value to the base value, and resets the base value to + * zero. The final output of the value is unchanged. + * + * See https://reactnative.dev/docs/animatedvaluexy#extractoffset + */ + }, { + key: "extractOffset", + value: function extractOffset() { + this.x.extractOffset(); + this.y.extractOffset(); } - function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) { - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - { - error("Cannot hydrate Suspense in legacy mode. Switch from " + "ReactDOM.hydrate(element, container) to " + "ReactDOMClient.hydrateRoot(container, )" + ".render(element) or remove the Suspense components from " + "the server rendered components."); - } - workInProgress.lanes = laneToLanes(SyncLane); - } else if (isSuspenseInstanceFallback()) { - workInProgress.lanes = laneToLanes(DefaultHydrationLane); - } else { - workInProgress.lanes = laneToLanes(OffscreenLane); - } - return null; + }, { + key: "__getValue", + value: function __getValue() { + return { + x: this.x.__getValue(), + y: this.y.__getValue() + }; } - function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { - if (!didSuspend) { - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, - null); - } - if (isSuspenseInstanceFallback()) { - var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(), - errorMessage = _getSuspenseInstanceF.errorMessage; - var error = errorMessage ? new Error(errorMessage) : new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, error); - } - var hasContextChanged = includesSomeLane(renderLanes, current.childLanes); - if (didReceiveUpdate || hasContextChanged) { - var root = getWorkInProgressRoot(); - if (root !== null) { - var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes); - if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { - suspenseState.retryLane = attemptHydrationAtLane; + /** + * Stops any animation and resets the value to its original. + * + * See https://reactnative.dev/docs/animatedvaluexy#resetanimation + */ + }, { + key: "resetAnimation", + value: function resetAnimation(callback) { + this.x.resetAnimation(); + this.y.resetAnimation(); + callback && callback(this.__getValue()); + } - var eventTime = NoTimestamp; - scheduleUpdateOnFiber(current, attemptHydrationAtLane, eventTime); - } - } + /** + * Stops any running animation or tracking. `callback` is invoked with the + * final value after stopping the animation, which is useful for updating + * state to match the animation position with layout. + * + * See https://reactnative.dev/docs/animatedvaluexy#stopanimation + */ + }, { + key: "stopAnimation", + value: function stopAnimation(callback) { + this.x.stopAnimation(); + this.y.stopAnimation(); + callback && callback(this.__getValue()); + } - renderDidSuspendDelayIfPossible(); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); - } else if (isSuspenseInstancePending()) { - workInProgress.flags |= DidCapture; + /** + * Adds an asynchronous listener to the value so you can observe updates from + * animations. This is useful because there is no way to synchronously read + * the value because it might be driven natively. + * + * Returns a string that serves as an identifier for the listener. + * + * See https://reactnative.dev/docs/animatedvaluexy#addlistener + */ + }, { + key: "addListener", + value: function addListener(callback) { + var _this2 = this; + var id = String(_uniqueId++); + var jointCallback = function jointCallback(_ref) { + var number = _ref.value; + callback(_this2.__getValue()); + }; + this._listeners[id] = { + x: this.x.addListener(jointCallback), + y: this.y.addListener(jointCallback) + }; + return id; + } - workInProgress.child = current.child; + /** + * Unregister a listener. The `id` param shall match the identifier + * previously returned by `addListener()`. + * + * See https://reactnative.dev/docs/animatedvaluexy#removelistener + */ + }, { + key: "removeListener", + value: function removeListener(id) { + this.x.removeListener(this._listeners[id].x); + this.y.removeListener(this._listeners[id].y); + delete this._listeners[id]; + } - var retry = retryDehydratedSuspenseBoundary.bind(null, current); - registerSuspenseInstanceRetry(); - return null; - } else { - reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext); - var primaryChildren = nextProps.children; - var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); + /** + * Remove all registered listeners. + * + * See https://reactnative.dev/docs/animatedvaluexy#removealllisteners + */ + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this.x.removeAllListeners(); + this.y.removeAllListeners(); + this._listeners = {}; + } - primaryChildFragment.flags |= Hydrating; - return primaryChildFragment; - } - } else { - if (workInProgress.flags & ForceClientRender) { - workInProgress.flags &= ~ForceClientRender; - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); - } else if (workInProgress.memoizedState !== null) { - workInProgress.child = current.child; + /** + * Converts `{x, y}` into `{left, top}` for use in style. + * + * See https://reactnative.dev/docs/animatedvaluexy#getlayout + */ + }, { + key: "getLayout", + value: function getLayout() { + return { + left: this.x, + top: this.y + }; + } - workInProgress.flags |= DidCapture; - return null; - } else { - var nextPrimaryChildren = nextProps.children; - var nextFallbackChildren = nextProps.fallback; - var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); - var _primaryChildFragment4 = workInProgress.child; - _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return fallbackChildFragment; - } - } + /** + * Converts `{x, y}` into a useable translation transform. + * + * See https://reactnative.dev/docs/animatedvaluexy#gettranslatetransform + */ + }, { + key: "getTranslateTransform", + value: function getTranslateTransform() { + return [{ + translateX: this.x + }, { + translateY: this.y + }]; } - function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { - fiber.lanes = mergeLanes(fiber.lanes, renderLanes); - var alternate = fiber.alternate; - if (alternate !== null) { - alternate.lanes = mergeLanes(alternate.lanes, renderLanes); - } - scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + }, { + key: "__attach", + value: function __attach() { + this.x.__addChild(this); + this.y.__addChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedValueXY.prototype), "__attach", this).call(this); } - function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) { - var node = firstChild; - while (node !== null) { - if (node.tag === SuspenseComponent) { - var state = node.memoizedState; - if (state !== null) { - scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); - } - } else if (node.tag === SuspenseListComponent) { - scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); - } else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - if (node === workInProgress) { - return; - } - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } + }, { + key: "__detach", + value: function __detach() { + this.x.__removeChild(this); + this.y.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedValueXY.prototype), "__detach", this).call(this); } - function findLastContentRow(firstChild) { - var row = firstChild; - var lastContentRow = null; - while (row !== null) { - var currentRow = row.alternate; - - if (currentRow !== null && findFirstSuspended(currentRow) === null) { - lastContentRow = row; - } - row = row.sibling; - } - return lastContentRow; + }, { + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.x.__makeNative(platformConfig); + this.y.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedValueXY.prototype), "__makeNative", this).call(this, platformConfig); } - function validateRevealOrder(revealOrder) { - { - if (revealOrder !== undefined && revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "together" && !didWarnAboutRevealOrder[revealOrder]) { - didWarnAboutRevealOrder[revealOrder] = true; - if (typeof revealOrder === "string") { - switch (revealOrder.toLowerCase()) { - case "together": - case "forwards": - case "backwards": - { - error('"%s" is not a valid value for revealOrder on . ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); - break; - } - case "forward": - case "backward": - { - error('"%s" is not a valid value for revealOrder on . ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); - break; - } - default: - error('"%s" is not a supported revealOrder on . ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); - break; - } - } else { - error("%s is not a supported value for revealOrder on . " + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); - } - } - } + }]); + return AnimatedValueXY; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedValueXY; +},351,[3,12,13,131,49,51,53,333,339,20],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValueXY.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isPublicInstance = isPublicInstance; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + /** + * IMPORTANT!! + * + * This module cannot import `ReactFabric` (directly or indirectly) + * because it can be used by apps only using the legacy renderer. + * In that case `nativeFabricUIManager` isn't defined and `ReactFabric` throws. + */ + + function isPublicInstance(maybeInstance) { + return maybeInstance != null && ( + // TODO: implement a better check when the instance is defined in the React Native repository. + maybeInstance.__nativeTag != null || + // TODO: remove this check when syncing the new version of the renderer from React to React Native. + isLegacyFabricInstance(maybeInstance)); + } + function isLegacyFabricInstance(maybeInstance) { + /* eslint-disable dot-notation */ + return maybeInstance != null && + // $FlowExpectedError[incompatible-use] + maybeInstance['_internalInstanceHandle'] != null && maybeInstance['_internalInstanceHandle'].stateNode != null && maybeInstance['_internalInstanceHandle'].stateNode.canonical != null; + } +},352,[],"node_modules/react-native/Libraries/Renderer/public/ReactFabricPublicInstanceUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedAddition = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedAddition, _AnimatedWithChildren); + var _super = _createSuper(AnimatedAddition); + function AnimatedAddition(a, b) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedAddition); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new _AnimatedValue.default(a) : a; + _this._b = typeof b === 'number' ? new _AnimatedValue.default(b) : b; + return _this; + } + (0, _createClass2.default)(AnimatedAddition, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedAddition.prototype), "__makeNative", this).call(this, platformConfig); } - function validateTailOptions(tailMode, revealOrder) { - { - if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) { - if (tailMode !== "collapsed" && tailMode !== "hidden") { - didWarnAboutTailOptions[tailMode] = true; - error('"%s" is not a supported value for tail on . ' + 'Did you mean "collapsed" or "hidden"?', tailMode); - } else if (revealOrder !== "forwards" && revealOrder !== "backwards") { - didWarnAboutTailOptions[tailMode] = true; - error(' is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode); - } - } - } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() + this._b.__getValue(); } - function validateSuspenseListNestedChild(childSlot, index) { - { - var isAnArray = isArray(childSlot); - var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function"; - if (isAnArray || isIterable) { - var type = isAnArray ? "array" : "iterable"; - error("A nested %s was passed to row #%s in . Wrap it in " + "an additional SuspenseList to configure its revealOrder: " + " ... " + "{%s} ... " + "", type, index, type); - return false; - } - } - return true; + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); } - function validateSuspenseListChildren(children, revealOrder) { - { - if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== undefined && children !== null && children !== false) { - if (isArray(children)) { - for (var i = 0; i < children.length; i++) { - if (!validateSuspenseListNestedChild(children[i], i)) { - return; - } - } - } else { - var iteratorFn = getIteratorFn(children); - if (typeof iteratorFn === "function") { - var childrenIterator = iteratorFn.call(children); - if (childrenIterator) { - var step = childrenIterator.next(); - var _i = 0; - for (; !step.done; step = childrenIterator.next()) { - if (!validateSuspenseListNestedChild(step.value, _i)) { - return; - } - _i++; - } - } - } else { - error('A single row was passed to a . ' + "This is not useful since it needs multiple rows. " + "Did you mean to pass multiple children or an array?", revealOrder); - } - } - } - } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); } - function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { - var renderState = workInProgress.memoizedState; - if (renderState === null) { - workInProgress.memoizedState = { - isBackwards: isBackwards, - rendering: null, - renderingStartTime: 0, - last: lastContentRow, - tail: tail, - tailMode: tailMode - }; - } else { - renderState.isBackwards = isBackwards; - renderState.rendering = null; - renderState.renderingStartTime = 0; - renderState.last = lastContentRow; - renderState.tail = tail; - renderState.tailMode = tailMode; - } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedAddition.prototype), "__detach", this).call(this); } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'addition', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedAddition; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedAddition; +},353,[3,12,13,131,49,51,53,336,333,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedAddition.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function updateSuspenseListComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps; - var revealOrder = nextProps.revealOrder; - var tailMode = nextProps.tail; - var newChildren = nextProps.children; - validateRevealOrder(revealOrder); - validateTailOptions(tailMode, revealOrder); - validateSuspenseListChildren(newChildren, revealOrder); - reconcileChildren(current, workInProgress, newChildren, renderLanes); - var suspenseContext = suspenseStackCursor.current; - var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); - if (shouldForceFallback) { - suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); - workInProgress.flags |= DidCapture; - } else { - var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags; - if (didSuspendBefore) { - propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes); - } - suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); - } - pushSuspenseContext(workInProgress, suspenseContext); - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - workInProgress.memoizedState = null; - } else { - switch (revealOrder) { - case "forwards": - { - var lastContentRow = findLastContentRow(workInProgress.child); - var tail; - if (lastContentRow === null) { - tail = workInProgress.child; - workInProgress.child = null; - } else { - tail = lastContentRow.sibling; - lastContentRow.sibling = null; - } - initSuspenseListRenderState(workInProgress, false, - tail, lastContentRow, tailMode); - break; - } - case "backwards": - { - var _tail = null; - var row = workInProgress.child; - workInProgress.child = null; - while (row !== null) { - var currentRow = row.alternate; - - if (currentRow !== null && findFirstSuspended(currentRow) === null) { - workInProgress.child = row; - break; - } - var nextRow = row.sibling; - row.sibling = _tail; - _tail = row; - row = nextRow; - } + 'use strict'; - initSuspenseListRenderState(workInProgress, true, - _tail, null, - tailMode); - break; - } - case "together": - { - initSuspenseListRenderState(workInProgress, false, - null, - null, - undefined); - break; - } - default: - { - workInProgress.memoizedState = null; - } - } - } - return workInProgress.child; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedDiffClamp = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedDiffClamp, _AnimatedWithChildren); + var _super = _createSuper(AnimatedDiffClamp); + function AnimatedDiffClamp(a, min, max) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedDiffClamp); + _this = _super.call(this); + _this._a = a; + _this._min = min; + _this._max = max; + _this._value = _this._lastValue = _this._a.__getValue(); + return _this; + } + (0, _createClass2.default)(AnimatedDiffClamp, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedDiffClamp.prototype), "__makeNative", this).call(this, platformConfig); } - function updatePortalComponent(current, workInProgress, renderLanes) { - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - var nextChildren = workInProgress.pendingProps; - if (current === null) { - workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); - } else { - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - } - return workInProgress.child; + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); } - var hasWarnedAboutUsingNoValuePropOnContextProvider = false; - function updateContextProvider(current, workInProgress, renderLanes) { - var providerType = workInProgress.type; - var context = providerType._context; - var newProps = workInProgress.pendingProps; - var oldProps = workInProgress.memoizedProps; - var newValue = newProps.value; - { - if (!("value" in newProps)) { - if (!hasWarnedAboutUsingNoValuePropOnContextProvider) { - hasWarnedAboutUsingNoValuePropOnContextProvider = true; - error("The `value` prop is required for the ``. Did you misspell it or forget to pass it?"); - } - } - var providerPropTypes = workInProgress.type.propTypes; - if (providerPropTypes) { - checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"); - } - } - pushProvider(workInProgress, context, newValue); - { - if (oldProps !== null) { - var oldValue = oldProps.value; - if (objectIs(oldValue, newValue)) { - if (oldProps.children === newProps.children && !hasContextChanged()) { - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - } else { - propagateContextChange(workInProgress, context, renderLanes); - } - } - } - var newChildren = newProps.children; - reconcileChildren(current, workInProgress, newChildren, renderLanes); - return workInProgress.child; + }, { + key: "__getValue", + value: function __getValue() { + var value = this._a.__getValue(); + var diff = value - this._lastValue; + this._lastValue = value; + this._value = Math.min(Math.max(this._value + diff, this._min), this._max); + return this._value; } - var hasWarnedAboutUsingContextAsConsumer = false; - function updateContextConsumer(current, workInProgress, renderLanes) { - var context = workInProgress.type; - - { - if (context._context === undefined) { - if (context !== context.Consumer) { - if (!hasWarnedAboutUsingContextAsConsumer) { - hasWarnedAboutUsingContextAsConsumer = true; - error("Rendering directly is not supported and will be removed in " + "a future major release. Did you mean to render instead?"); - } - } - } else { - context = context._context; - } - } - var newProps = workInProgress.pendingProps; - var render = newProps.children; - { - if (typeof render !== "function") { - error("A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it."); - } - } - prepareToReadContext(workInProgress, renderLanes); - var newValue = _readContext(context); - var newChildren; - { - ReactCurrentOwner$1.current = workInProgress; - setIsRendering(true); - newChildren = render(newValue); - setIsRendering(false); - } - workInProgress.flags |= PerformedWork; - reconcileChildren(current, workInProgress, newChildren, renderLanes); - return workInProgress.child; + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); } - function markWorkInProgressReceivedUpdate() { - didReceiveUpdate = true; + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedDiffClamp.prototype), "__detach", this).call(this); } - function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { - if ((workInProgress.mode & ConcurrentMode) === NoMode) { - if (current !== null) { - current.alternate = null; - workInProgress.alternate = null; + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'diffclamp', + input: this._a.__getNativeTag(), + min: this._min, + max: this._max + }; + } + }]); + return AnimatedDiffClamp; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedDiffClamp; +},354,[3,12,13,131,49,51,53,336,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDiffClamp.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.flags |= Placement; + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedNode")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedDivision = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedDivision, _AnimatedWithChildren); + var _super = _createSuper(AnimatedDivision); + function AnimatedDivision(a, b) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedDivision); + _this = _super.call(this); + _this._warnedAboutDivideByZero = false; + if (b === 0 || b instanceof _AnimatedNode.default && b.__getValue() === 0) { + console.error('Detected potential division by zero in AnimatedDivision'); + } + _this._a = typeof a === 'number' ? new _AnimatedValue.default(a) : a; + _this._b = typeof b === 'number' ? new _AnimatedValue.default(b) : b; + return _this; + } + (0, _createClass2.default)(AnimatedDivision, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedDivision.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + var a = this._a.__getValue(); + var b = this._b.__getValue(); + if (b === 0) { + // Prevent spamming the console/LogBox + if (!this._warnedAboutDivideByZero) { + console.error('Detected division by zero in AnimatedDivision'); + this._warnedAboutDivideByZero = true; } + // Passing infinity/NaN to Fabric will cause a native crash + return 0; } + this._warnedAboutDivideByZero = false; + return a / b; } - function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { - if (current !== null) { - workInProgress.dependencies = current.dependencies; - } - { - stopProfilerTimerIfRunning(); - } - markSkippedUpdateLanes(workInProgress.lanes); + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedDivision.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'division', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedDivision; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedDivision; +},355,[3,12,13,131,49,51,53,336,340,333,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDivision.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (!includesSomeLane(renderLanes, workInProgress.childLanes)) { - { - return null; - } - } + 'use strict'; - cloneChildFibers(current, workInProgress); - return workInProgress.child; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedModulo = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedModulo, _AnimatedWithChildren); + var _super = _createSuper(AnimatedModulo); + function AnimatedModulo(a, modulus) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedModulo); + _this = _super.call(this); + _this._a = a; + _this._modulus = modulus; + return _this; + } + (0, _createClass2.default)(AnimatedModulo, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedModulo.prototype), "__makeNative", this).call(this, platformConfig); } - function remountFiber(current, oldWorkInProgress, newWorkInProgress) { - { - var returnFiber = oldWorkInProgress.return; - if (returnFiber === null) { - throw new Error("Cannot swap the root fiber."); - } + }, { + key: "__getValue", + value: function __getValue() { + return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedModulo.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'modulus', + input: this._a.__getNativeTag(), + modulus: this._modulus + }; + } + }]); + return AnimatedModulo; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedModulo; +},356,[3,12,13,131,49,51,53,336,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedModulo.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - current.alternate = null; - oldWorkInProgress.alternate = null; + 'use strict'; - newWorkInProgress.index = oldWorkInProgress.index; - newWorkInProgress.sibling = oldWorkInProgress.sibling; - newWorkInProgress.return = oldWorkInProgress.return; - newWorkInProgress.ref = oldWorkInProgress.ref; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedMultiplication = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedMultiplication, _AnimatedWithChildren); + var _super = _createSuper(AnimatedMultiplication); + function AnimatedMultiplication(a, b) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedMultiplication); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new _AnimatedValue.default(a) : a; + _this._b = typeof b === 'number' ? new _AnimatedValue.default(b) : b; + return _this; + } + (0, _createClass2.default)(AnimatedMultiplication, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedMultiplication.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() * this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedMultiplication.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'multiplication', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedMultiplication; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedMultiplication; +},357,[3,12,13,131,49,51,53,336,333,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedMultiplication.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (oldWorkInProgress === returnFiber.child) { - returnFiber.child = newWorkInProgress; - } else { - var prevSibling = returnFiber.child; - if (prevSibling === null) { - throw new Error("Expected parent to have a child."); - } - while (prevSibling.sibling !== oldWorkInProgress) { - prevSibling = prevSibling.sibling; - if (prevSibling === null) { - throw new Error("Expected to find the previous sibling."); - } - } - prevSibling.sibling = newWorkInProgress; - } + 'use strict'; - var deletions = returnFiber.deletions; - if (deletions === null) { - returnFiber.deletions = [current]; - returnFiber.flags |= ChildDeletion; - } else { - deletions.push(current); - } - newWorkInProgress.flags |= Placement; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedValue")); + var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedSubtraction = /*#__PURE__*/function (_AnimatedWithChildren) { + (0, _inherits2.default)(AnimatedSubtraction, _AnimatedWithChildren); + var _super = _createSuper(AnimatedSubtraction); + function AnimatedSubtraction(a, b) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedSubtraction); + _this = _super.call(this); + _this._a = typeof a === 'number' ? new _AnimatedValue.default(a) : a; + _this._b = typeof b === 'number' ? new _AnimatedValue.default(b) : b; + return _this; + } + (0, _createClass2.default)(AnimatedSubtraction, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this._a.__makeNative(platformConfig); + this._b.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedSubtraction.prototype), "__makeNative", this).call(this, platformConfig); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() - this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new _AnimatedInterpolation.default(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + this._b.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedSubtraction.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'subtraction', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + return AnimatedSubtraction; + }(_AnimatedWithChildren2.default); + exports.default = AnimatedSubtraction; +},358,[3,12,13,131,49,51,53,336,333,339],"node_modules/react-native/Libraries/Animated/nodes/AnimatedSubtraction.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - return newWorkInProgress; - } + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper")); + var _AnimatedNode2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedNode")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var AnimatedTracking = /*#__PURE__*/function (_AnimatedNode) { + (0, _inherits2.default)(AnimatedTracking, _AnimatedNode); + var _super = _createSuper(AnimatedTracking); + function AnimatedTracking(value, parent, animationClass, animationConfig, callback) { + var _this; + (0, _classCallCheck2.default)(this, AnimatedTracking); + _this = _super.call(this); + _this._value = value; + _this._parent = parent; + _this._animationClass = animationClass; + _this._animationConfig = animationConfig; + _this._useNativeDriver = _NativeAnimatedHelper.default.shouldUseNativeDriver(animationConfig); + _this._callback = callback; + _this.__attach(); + return _this; + } + (0, _createClass2.default)(AnimatedTracking, [{ + key: "__makeNative", + value: function __makeNative(platformConfig) { + this.__isNative = true; + this._parent.__makeNative(platformConfig); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedTracking.prototype), "__makeNative", this).call(this, platformConfig); + this._value.__makeNative(platformConfig); } - function checkScheduledUpdateOrContext(current, renderLanes) { - var updateLanes = current.lanes; - if (includesSomeLane(updateLanes, renderLanes)) { - return true; + }, { + key: "__getValue", + value: function __getValue() { + return this._parent.__getValue(); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + if (this._useNativeDriver) { + // when the tracking starts we need to convert this node to a "native node" + // so that the parent node will be made "native" too. This is necessary as + // if we don't do this `update` method will get called. At that point it + // may be too late as it would mean the JS driver has already started + // updating node values + var platformConfig = this._animationConfig.platformConfig; + this.__makeNative(platformConfig); } + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedTracking.prototype), "__detach", this).call(this); + } + }, { + key: "update", + value: function update() { + this._value.animate(new this._animationClass(Object.assign({}, this._animationConfig, { + toValue: this._animationConfig.toValue.__getValue() + })), this._callback); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var animation = new this._animationClass(Object.assign({}, this._animationConfig, { + // remove toValue from the config as it's a ref to Animated.Value + toValue: undefined + })); + var animationConfig = animation.__getNativeAnimationConfig(); + return { + type: 'tracking', + animationId: _NativeAnimatedHelper.default.generateNewAnimationId(), + animationConfig: animationConfig, + toValue: this._parent.__getNativeTag(), + value: this._value.__getNativeTag() + }; + } + }]); + return AnimatedTracking; + }(_AnimatedNode2.default); + exports.default = AnimatedTracking; +},359,[3,12,13,131,49,51,53,327,340],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTracking.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeFrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeFrameRateLogger")); /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - return false; + /** + * Flow API for native FrameRateLogger module. If the native module is not installed, function calls + * are just no-ops. + * + * Typical behavior is that `setContext` is called when a new screen is loaded (e.g. via a + * navigation integration), and then `beginScroll` is called by `ScrollResponder` at which point the + * native module then begins tracking frame drops. When `ScrollResponder` calls `endScroll`, the + * native module gathers up all it's frame drop data and reports it via an analytics pipeline for + * analysis. + * + * Note that `beginScroll` may be called multiple times by `ScrollResponder` - unclear if that's a + * bug, but the native module should be robust to that. + * + * In the future we may add support for tracking frame drops in other types of interactions beyond + * scrolling. + */ + var FrameRateLogger = { + /** + * Enable `debug` to see local logs of what's going on. `reportStackTraces` will grab stack traces + * during UI thread stalls and upload them if the native module supports it. + */ + setGlobalOptions: function setGlobalOptions(options) { + if (options.debug !== undefined) { + _$$_REQUIRE(_dependencyMap[2], "invariant")(_NativeFrameRateLogger.default, 'Trying to debug FrameRateLogger without the native module!'); } - function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { - switch (workInProgress.tag) { - case HostRoot: - pushHostRootContext(workInProgress); - var root = workInProgress.stateNode; - break; - case HostComponent: - pushHostContext(workInProgress); - break; - case ClassComponent: - { - var Component = workInProgress.type; - if (isContextProvider(Component)) { - pushContextProvider(workInProgress); - } - break; - } - case HostPortal: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + if (_NativeFrameRateLogger.default) { + // Needs to clone the object first to avoid modifying the argument. + var optionsClone = { + debug: !!options.debug, + reportStackTraces: !!options.reportStackTraces + }; + _NativeFrameRateLogger.default.setGlobalOptions(optionsClone); + } + }, + /** + * Must call `setContext` before any events can be properly tracked, which is done automatically + * in `AppRegistry`, but navigation is also a common place to hook in. + */ + setContext: function setContext(context) { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.setContext(context); + }, + /** + * Called in `ScrollResponder` so any component that uses that module will handle this + * automatically. + */ + beginScroll: function beginScroll() { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.beginScroll(); + }, + /** + * Called in `ScrollResponder` so any component that uses that module will handle this + * automatically. + */ + endScroll: function endScroll() { + _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.endScroll(); + } + }; + module.exports = FrameRateLogger; +},360,[3,361,20],"node_modules/react-native/Libraries/Interaction/FrameRateLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = TurboModuleRegistry.get('FrameRateLogger'); + exports.default = _default; +},361,[19],"node_modules/react-native/Libraries/Interaction/NativeFrameRateLogger.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = splitLayoutProps; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + function splitLayoutProps(props) { + var outer = null; + var inner = null; + if (props != null) { + // $FlowIgnore[incompatible-exact] Will contain a subset of keys from `props`. + outer = {}; + // $FlowIgnore[incompatible-exact] Will contain a subset of keys from `props`. + inner = {}; + for (var prop of Object.keys(props)) { + switch (prop) { + 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 'rowGap': + case 'columnGap': + case 'gap': + // $FlowFixMe[cannot-write] + // $FlowFixMe[incompatible-use] + // $FlowFixMe[prop-missing] + outer[prop] = props[prop]; break; - case ContextProvider: - { - var newValue = workInProgress.memoizedProps.value; - var context = workInProgress.type._context; - pushProvider(workInProgress, context, newValue); - break; - } - case Profiler: - { - var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); - if (hasChildWork) { - workInProgress.flags |= Update; - } - { - var stateNode = workInProgress.stateNode; - stateNode.effectDuration = 0; - stateNode.passiveEffectDuration = 0; - } - } + default: + // $FlowFixMe[cannot-write] + // $FlowFixMe[incompatible-use] + // $FlowFixMe[prop-missing] + inner[prop] = props[prop]; break; - case SuspenseComponent: - { - var state = workInProgress.memoizedState; - if (state !== null) { - if (state.dehydrated !== null) { - pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + } + } + return { + outer: outer, + inner: inner + }; + } +},362,[],"node_modules/react-native/Libraries/StyleSheet/splitLayoutProps.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.flags |= DidCapture; + // This function dismisses the currently-open keyboard, if any. - return null; - } + 'use strict'; - var primaryChildFragment = workInProgress.child; - var primaryChildLanes = primaryChildFragment.childLanes; - if (includesSomeLane(renderLanes, primaryChildLanes)) { - return updateSuspenseComponent(current, workInProgress, renderLanes); - } else { - pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + function dismissKeyboard() { + _$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").blurTextInput(_$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").currentlyFocusedInput()); + } + module.exports = dismissKeyboard; +},363,[278],"node_modules/react-native/Libraries/Utilities/dismissKeyboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../EventEmitter/NativeEventEmitter")); + var _LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../LayoutAnimation/LayoutAnimation")); + var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/dismissKeyboard")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); + var _NativeKeyboardObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./NativeKeyboardObserver")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * `Keyboard` module to control keyboard events. + * + * ### Usage + * + * The Keyboard module allows you to listen for native events and react to them, as + * well as make changes to the keyboard, like dismissing it. + * + *``` + * import React, { Component } from 'react'; + * import { Keyboard, TextInput } from 'react-native'; + * + * class Example extends Component { + * componentWillMount () { + * this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow); + * this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide); + * } + * + * componentWillUnmount () { + * this.keyboardDidShowListener.remove(); + * this.keyboardDidHideListener.remove(); + * } + * + * _keyboardDidShow () { + * alert('Keyboard Shown'); + * } + * + * _keyboardDidHide () { + * alert('Keyboard Hidden'); + * } + * + * render() { + * return ( + * + * ); + * } + * } + *``` + */ + var Keyboard = /*#__PURE__*/function () { + function Keyboard() { + var _this = this; + (0, _classCallCheck2.default)(this, Keyboard); + this._emitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior + _Platform.default.OS !== 'ios' ? null : _NativeKeyboardObserver.default); + this.addListener('keyboardDidShow', function (ev) { + _this._currentlyShowing = ev; + }); + this.addListener('keyboardDidHide', function (_ev) { + _this._currentlyShowing = null; + }); + } - var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - if (child !== null) { - return child.sibling; - } else { - return null; - } - } - } else { - pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); - } - break; - } - case SuspenseListComponent: - { - var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; - var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); - if (didSuspendBefore) { - if (_hasChildWork) { - return updateSuspenseListComponent(current, workInProgress, renderLanes); - } + /** + * The `addListener` function connects a JavaScript function to an identified native + * keyboard notification event. + * + * This function then returns the reference to the listener. + * + * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for. This + *can be any of the following: + * + * - `keyboardWillShow` + * - `keyboardDidShow` + * - `keyboardWillHide` + * - `keyboardDidHide` + * - `keyboardWillChangeFrame` + * - `keyboardDidChangeFrame` + * + * Android versions prior to API 30 rely on observing layout changes when + * `android:windowSoftInputMode` is set to `adjustResize` or `adjustPan`. + * + * `keyboardWillShow` as well as `keyboardWillHide` are not available on Android since there is + * no native corresponding event. + * + * @param {function} callback function to be called when the event fires. + */ + (0, _createClass2.default)(Keyboard, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + return this._emitter.addListener(eventType, listener); + } - workInProgress.flags |= DidCapture; - } + /** + * Removes all listeners for a specific event type. + * + * @param {string} eventType The native event string listeners are watching which will be removed. + */ + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + this._emitter.removeAllListeners(eventType); + } - var renderState = workInProgress.memoizedState; - if (renderState !== null) { - renderState.rendering = null; - renderState.tail = null; - renderState.lastEffect = null; - } - pushSuspenseContext(workInProgress, suspenseStackCursor.current); - if (_hasChildWork) { - break; - } else { - return null; - } - } - case OffscreenComponent: - case LegacyHiddenComponent: - { - workInProgress.lanes = NoLanes; - return updateOffscreenComponent(current, workInProgress, renderLanes); - } - } - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + /** + * Dismisses the active keyboard and removes focus. + */ + }, { + key: "dismiss", + value: function dismiss() { + (0, _dismissKeyboard.default)(); } - function beginWork(current, workInProgress, renderLanes) { - { - if (workInProgress._debugNeedsRemount && current !== null) { - return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes)); - } - } - if (current !== null) { - var oldProps = current.memoizedProps; - var newProps = workInProgress.pendingProps; - if (oldProps !== newProps || hasContextChanged() || - workInProgress.type !== current.type) { - didReceiveUpdate = true; - } else { - var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); - if (!hasScheduledUpdateOrContext && - (workInProgress.flags & DidCapture) === NoFlags) { - didReceiveUpdate = false; - return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); - } - if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { - didReceiveUpdate = true; - } else { - didReceiveUpdate = false; + + /** + * Whether the keyboard is last known to be visible. + */ + }, { + key: "isVisible", + value: function isVisible() { + return !!this._currentlyShowing; + } + + /** + * Return the metrics of the soft-keyboard if visible. + */ + }, { + key: "metrics", + value: function metrics() { + var _this$_currentlyShowi; + return (_this$_currentlyShowi = this._currentlyShowing) == null ? void 0 : _this$_currentlyShowi.endCoordinates; + } + + /** + * Useful for syncing TextInput (or other keyboard accessory view) size of + * position changes with keyboard movements. + */ + }, { + key: "scheduleLayoutAnimation", + value: function scheduleLayoutAnimation(event) { + var duration = event.duration, + easing = event.easing; + if (duration != null && duration !== 0) { + _LayoutAnimation.default.configureNext({ + duration: duration, + update: { + duration: duration, + type: easing != null && _LayoutAnimation.default.Types[easing] || 'keyboard' } - } - } else { - didReceiveUpdate = false; + }); } + } + }]); + return Keyboard; + }(); + module.exports = new Keyboard(); +},364,[3,12,13,151,365,363,17,366],"node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.lanes = NoLanes; - switch (workInProgress.tag) { - case IndeterminateComponent: - { - return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes); - } - case LazyComponent: - { - var elementType = workInProgress.elementType; - return mountLazyComponent(current, workInProgress, elementType, renderLanes); - } - case FunctionComponent: - { - var Component = workInProgress.type; - var unresolvedProps = workInProgress.pendingProps; - var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps); - return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes); - } - case ClassComponent: - { - var _Component = workInProgress.type; - var _unresolvedProps = workInProgress.pendingProps; - var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps); - return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes); - } - case HostRoot: - return updateHostRoot(current, workInProgress, renderLanes); - case HostComponent: - return updateHostComponent(current, workInProgress, renderLanes); - case HostText: - return updateHostText(); - case SuspenseComponent: - return updateSuspenseComponent(current, workInProgress, renderLanes); - case HostPortal: - return updatePortalComponent(current, workInProgress, renderLanes); - case ForwardRef: - { - var type = workInProgress.type; - var _unresolvedProps2 = workInProgress.pendingProps; - var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); - return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes); - } - case Fragment: - return updateFragment(current, workInProgress, renderLanes); - case Mode: - return updateMode(current, workInProgress, renderLanes); - case Profiler: - return updateProfiler(current, workInProgress, renderLanes); - case ContextProvider: - return updateContextProvider(current, workInProgress, renderLanes); - case ContextConsumer: - return updateContextConsumer(current, workInProgress, renderLanes); - case MemoComponent: - { - var _type2 = workInProgress.type; - var _unresolvedProps3 = workInProgress.pendingProps; + 'use strict'; - var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); - { - if (workInProgress.type !== workInProgress.elementType) { - var outerPropTypes = _type2.propTypes; - if (outerPropTypes) { - checkPropTypes(outerPropTypes, _resolvedProps3, - "prop", getComponentNameFromType(_type2)); - } - } - } - _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); - return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes); - } - case SimpleMemoComponent: - { - return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); - } - case IncompleteClassComponent: - { - var _Component2 = workInProgress.type; - var _unresolvedProps4 = workInProgress.pendingProps; - var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4); - return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes); - } - case SuspenseListComponent: - { - return updateSuspenseListComponent(current, workInProgress, renderLanes); - } - case ScopeComponent: - { - break; - } - case OffscreenComponent: - { - return updateOffscreenComponent(current, workInProgress, renderLanes); - } - } - throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); - } - function markUpdate(workInProgress) { - workInProgress.flags |= Update; - } - function markRef$1(workInProgress) { - workInProgress.flags |= Ref; - } - function hadNoMutationsEffects(current, completedWork) { - var didBailout = current !== null && current.child === completedWork.child; - if (didBailout) { - return true; - } - if ((completedWork.flags & ChildDeletion) !== NoFlags) { - return false; - } + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../ReactNative/ReactNativeFeatureFlags")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); + // Reexport type - var child = completedWork.child; - while (child !== null) { - if ((child.flags & MutationMask) !== NoFlags || (child.subtreeFlags & MutationMask) !== NoFlags) { - return false; - } - child = child.sibling; - } - return true; - } - var _appendAllChildren; - var updateHostContainer; - var updateHostComponent$1; - var updateHostText$1; - { - _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { - var node = workInProgress.child; - while (node !== null) { - if (node.tag === HostComponent) { - var instance = node.stateNode; - if (needsVisibilityToggle && isHidden) { - var props = node.memoizedProps; - var type = node.type; - instance = cloneHiddenInstance(instance); - } - appendInitialChild(parent, instance); - } else if (node.tag === HostText) { - var _instance = node.stateNode; - if (needsVisibilityToggle && isHidden) { - var text = node.memoizedProps; - _instance = cloneHiddenTextInstance(); - } - appendInitialChild(parent, _instance); - } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { - var child = node.child; - if (child !== null) { - child.return = node; - } - _appendAllChildren(parent, node, true, true); - } else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } + var isLayoutAnimationEnabled = _ReactNativeFeatureFlags.default.isLayoutAnimationEnabled(); + function setEnabled(value) { + isLayoutAnimationEnabled = isLayoutAnimationEnabled; + } - node = node; - if (node === workInProgress) { - return; - } - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - }; + /** + * Configures the next commit to be animated. + * + * onAnimationDidEnd is guaranteed to be called when the animation completes. + * onAnimationDidFail is *never* called in the classic, pre-Fabric renderer, + * and never has been. In the new renderer (Fabric) it is called only if configuration + * parsing fails. + */ + function configureNext(config, onAnimationDidEnd, onAnimationDidFail) { + var _config$duration; + if (_Platform.default.isTesting) { + return; + } + if (!isLayoutAnimationEnabled) { + return; + } - var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { - var node = workInProgress.child; - while (node !== null) { - if (node.tag === HostComponent) { - var instance = node.stateNode; - if (needsVisibilityToggle && isHidden) { - var props = node.memoizedProps; - var type = node.type; - instance = cloneHiddenInstance(instance); - } - appendChildToContainerChildSet(containerChildSet, instance); - } else if (node.tag === HostText) { - var _instance2 = node.stateNode; - if (needsVisibilityToggle && isHidden) { - var text = node.memoizedProps; - _instance2 = cloneHiddenTextInstance(); - } - appendChildToContainerChildSet(containerChildSet, _instance2); - } else if (node.tag === HostPortal) ;else if (node.tag === OffscreenComponent && node.memoizedState !== null) { - var child = node.child; - if (child !== null) { - child.return = node; - } - appendAllChildrenToContainer(containerChildSet, node, true, true); - } else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } + // Since LayoutAnimations may possibly be disabled for now on iOS (Fabric), + // or Android (non-Fabric) we race a setTimeout with animation completion, + // in case onComplete is never called + // from native. Once LayoutAnimations+Fabric unconditionally ship everywhere, we can + // delete this mechanism at least in the Fabric branch. + var animationCompletionHasRun = false; + var onAnimationComplete = function onAnimationComplete() { + if (animationCompletionHasRun) { + return; + } + animationCompletionHasRun = true; + clearTimeout(raceWithAnimationId); + onAnimationDidEnd == null ? void 0 : onAnimationDidEnd(); + }; + var raceWithAnimationId = setTimeout(onAnimationComplete, ((_config$duration = config.duration) != null ? _config$duration : 0) + 17 /* one frame + 1ms */); - node = node; - if (node === workInProgress) { - return; - } - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - }; - updateHostContainer = function updateHostContainer(current, workInProgress) { - var portalOrRoot = workInProgress.stateNode; - var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); - if (childrenUnchanged) ;else { - var container = portalOrRoot.containerInfo; - var newChildSet = createContainerChildSet(container); + // In Fabric, LayoutAnimations are unconditionally enabled for Android, and + // conditionally enabled on iOS (pending fully shipping; this is a temporary state). + var FabricUIManager = (0, _$$_REQUIRE(_dependencyMap[3], "../ReactNative/FabricUIManager").getFabricUIManager)(); + if (FabricUIManager != null && FabricUIManager.configureNextLayoutAnimation) { + var _global, _global$nativeFabricU; + (_global = global) == null ? void 0 : (_global$nativeFabricU = _global.nativeFabricUIManager) == null ? void 0 : _global$nativeFabricU.configureNextLayoutAnimation(config, onAnimationComplete, onAnimationDidFail != null ? onAnimationDidFail : function () {} /* this will only be called if configuration parsing fails */); + return; + } - appendAllChildrenToContainer(newChildSet, workInProgress, false, false); - portalOrRoot.pendingChildren = newChildSet; + // This will only run if Fabric is *not* installed. + // If you have Fabric + non-Fabric running in the same VM, non-Fabric LayoutAnimations + // will not work. + if (_$$_REQUIRE(_dependencyMap[4], "../ReactNative/UIManager") != null && _$$_REQUIRE(_dependencyMap[4], "../ReactNative/UIManager").configureNextLayoutAnimation) { + _$$_REQUIRE(_dependencyMap[4], "../ReactNative/UIManager").configureNextLayoutAnimation(config, onAnimationComplete != null ? onAnimationComplete : function () {}, onAnimationDidFail != null ? onAnimationDidFail : function () {} /* this should never be called in Non-Fabric */); + } + } + function create(duration, type, property) { + return { + duration: duration, + create: { + type: type, + property: property + }, + update: { + type: type + }, + delete: { + type: type, + property: property + } + }; + } + var Presets = { + easeInEaseOut: create(300, 'easeInEaseOut', 'opacity'), + linear: create(500, 'linear', 'opacity'), + spring: { + duration: 700, + create: { + type: 'linear', + property: 'opacity' + }, + update: { + type: 'spring', + springDamping: 0.4 + }, + delete: { + type: 'linear', + property: 'opacity' + } + } + }; - markUpdate(workInProgress); - finalizeContainerChildren(container, newChildSet); - } - }; - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance) { - var currentInstance = current.stateNode; - var oldProps = current.memoizedProps; + /** + * Automatically animates views to their new positions when the + * next layout happens. + * + * A common way to use this API is to call it before calling `setState`. + * + * Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`: + * + * UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true); + */ + var LayoutAnimation = { + /** + * Schedules an animation to happen on the next layout. + * + * @param config Specifies animation properties: + * + * - `duration` in milliseconds + * - `create`, `AnimationConfig` for animating in new views + * - `update`, `AnimationConfig` for animating views that have been updated + * + * @param onAnimationDidEnd Called when the animation finished. + * Only supported on iOS. + * @param onError Called on error. Only supported on iOS. + */ + configureNext: configureNext, + /** + * Helper for creating a config for `configureNext`. + */ + create: create, + 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 checkConfig() { + console.error('LayoutAnimation.checkConfig(...) has been disabled.'); + }, + Presets: Presets, + easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut), + linear: configureNext.bind(null, Presets.linear), + spring: configureNext.bind(null, Presets.spring), + setEnabled: setEnabled + }; + module.exports = LayoutAnimation; +},365,[3,139,17,237,230],"node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('KeyboardObserver'); + exports.default = _default; +},366,[19],"node_modules/react-native/Libraries/Components/Keyboard/NativeKeyboardObserver.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = (0, _codegenNativeComponent.default)('AndroidHorizontalScrollContentView'); + exports.default = _default; +},367,[3,273],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var childrenUnchanged = hadNoMutationsEffects(current, workInProgress); - if (childrenUnchanged && oldProps === newProps) { - workInProgress.stateNode = currentInstance; - return; - } - var recyclableInstance = workInProgress.stateNode; - var currentHostContext = getHostContext(); - var updatePayload = null; - if (oldProps !== newProps) { - updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps); - } - if (childrenUnchanged && updatePayload === null) { - workInProgress.stateNode = currentInstance; - return; - } - var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged); - workInProgress.stateNode = newInstance; - if (childrenUnchanged) { - markUpdate(workInProgress); - } else { - _appendAllChildren(newInstance, workInProgress, false, false); - } - }; - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - if (oldText !== newText) { - var rootContainerInstance = getRootHostContainer(); - var currentHostContext = getHostContext(); - workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'AndroidHorizontalScrollView', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: { + decelerationRate: true, + disableIntervalMomentum: true, + endFillColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + fadingEdgeLength: true, + nestedScrollEnabled: true, + overScrollMode: true, + pagingEnabled: true, + persistentScrollbar: true, + scrollEnabled: true, + scrollPerfTag: true, + sendMomentumEvents: true, + showsHorizontalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToStart: true, + snapToOffsets: true, + contentOffset: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderRadius: true, + borderStyle: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + borderTopLeftRadius: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + removeClippedSubviews: true, + borderTopRightRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor").default + }, + pointerEvents: true + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var AndroidHorizontalScrollViewNativeComponent = NativeComponentRegistry.get('AndroidHorizontalScrollView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = AndroidHorizontalScrollViewNativeComponent; + exports.default = _default; +},368,[228,174],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - markUpdate(workInProgress); - } else { - workInProgress.stateNode = current.stateNode; - } - }; - } - function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { - switch (renderState.tailMode) { - case "hidden": - { - var tailNode = renderState.tail; - var lastTailNode = null; - while (tailNode !== null) { - if (tailNode.alternate !== null) { - lastTailNode = tailNode; - } - tailNode = tailNode.sibling; - } + function processDecelerationRate(decelerationRate) { + if (decelerationRate === 'normal') { + return _Platform.default.select({ + ios: 0.998, + android: 0.985 + }); + } else if (decelerationRate === 'fast') { + return _Platform.default.select({ + ios: 0.99, + android: 0.9 + }); + } + return decelerationRate; + } + module.exports = processDecelerationRate; +},369,[3,17],"node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - if (lastTailNode === null) { - renderState.tail = null; - } else { - lastTailNode.sibling = null; - } - break; - } - case "collapsed": - { - var _tailNode = renderState.tail; - var _lastTailNode = null; - while (_tailNode !== null) { - if (_tailNode.alternate !== null) { - _lastTailNode = _tailNode; - } - _tailNode = _tailNode.sibling; - } + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'RCTScrollContentView', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: {} + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ScrollContentViewNativeComponent = NativeComponentRegistry.get('RCTScrollContentView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ScrollContentViewNativeComponent; + exports.default = _default; +},370,[228],"node_modules/react-native/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = (0, _codegenNativeCommands.default)({ + supportedCommands: ['flashScrollIndicators', 'scrollTo', 'scrollToEnd', 'zoomToRect'] + }); + exports.default = _default; +},371,[3,257,41],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewCommands.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.VERTICAL = exports.HORIZONTAL = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - if (_lastTailNode === null) { - if (!hasRenderedATailFallback && renderState.tail !== null) { - renderState.tail.sibling = null; - } else { - renderState.tail = null; - } - } else { - _lastTailNode.sibling = null; - } - break; - } + var ScrollViewContext = React.createContext(null); + if (__DEV__) { + ScrollViewContext.displayName = 'ScrollViewContext'; + } + var _default = ScrollViewContext; + exports.default = _default; + var HORIZONTAL = Object.freeze({ + horizontal: true + }); + exports.HORIZONTAL = HORIZONTAL; + var VERTICAL = Object.freeze({ + horizontal: false + }); + exports.VERTICAL = VERTICAL; +},372,[41],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTScrollView', + bubblingEventTypes: {}, + directEventTypes: { + topMomentumScrollBegin: { + registrationName: 'onMomentumScrollBegin' + }, + topMomentumScrollEnd: { + registrationName: 'onMomentumScrollEnd' + }, + topScroll: { + registrationName: 'onScroll' + }, + topScrollBeginDrag: { + registrationName: 'onScrollBeginDrag' + }, + topScrollEndDrag: { + registrationName: 'onScrollEndDrag' + } + }, + validAttributes: { + contentOffset: { + diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") + }, + decelerationRate: true, + disableIntervalMomentum: true, + pagingEnabled: true, + scrollEnabled: true, + showsVerticalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToOffsets: true, + snapToStart: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + sendMomentumEvents: true, + borderRadius: true, + nestedScrollEnabled: true, + borderStyle: true, + borderRightColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + borderBottomColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + persistentScrollbar: true, + endFillColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + fadingEdgeLength: true, + overScrollMode: true, + borderTopLeftRadius: true, + scrollPerfTag: true, + borderTopColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + removeClippedSubviews: true, + borderTopRightRadius: true, + borderLeftColor: { + process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor").default + }, + pointerEvents: true + } + } : { + 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: true, + alwaysBounceVertical: true, + automaticallyAdjustContentInsets: true, + automaticallyAdjustKeyboardInsets: true, + automaticallyAdjustsScrollIndicatorInsets: true, + bounces: true, + bouncesZoom: true, + canCancelContentTouches: true, + centerContent: true, + contentInset: { + diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") + }, + contentOffset: { + diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") + }, + contentInsetAdjustmentBehavior: true, + decelerationRate: true, + directionalLockEnabled: true, + disableIntervalMomentum: true, + indicatorStyle: true, + inverted: true, + keyboardDismissMode: true, + maintainVisibleContentPosition: true, + maximumZoomScale: true, + minimumZoomScale: true, + pagingEnabled: true, + pinchGestureEnabled: true, + scrollEnabled: true, + scrollEventThrottle: true, + scrollIndicatorInsets: { + diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") + }, + scrollToOverflowEnabled: true, + scrollsToTop: true, + showsHorizontalScrollIndicator: true, + showsVerticalScrollIndicator: true, + snapToAlignment: true, + snapToEnd: true, + snapToInterval: true, + snapToOffsets: true, + snapToStart: true, + zoomScale: true + }, (0, _$$_REQUIRE(_dependencyMap[6], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onScrollBeginDrag: true, + onMomentumScrollEnd: true, + onScrollEndDrag: true, + onMomentumScrollBegin: true, + onScrollToTop: true, + onScroll: true + })) + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ScrollViewNativeComponent = NativeComponentRegistry.get('RCTScrollView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ScrollViewNativeComponent; + exports.default = _default; +},373,[228,3,17,239,174,240,254],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _Animated = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Animated/Animated")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); + var _useMergeRefs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/useMergeRefs")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ScrollViewStickyHeaderWithForwardedRef = React.forwardRef(function ScrollViewStickyHeader(props, forwardedRef) { + var inverted = props.inverted, + scrollViewHeight = props.scrollViewHeight, + hiddenOnScroll = props.hiddenOnScroll, + scrollAnimatedValue = props.scrollAnimatedValue, + _nextHeaderLayoutY = props.nextHeaderLayoutY; + var _useState = (0, React.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + measured = _useState2[0], + setMeasured = _useState2[1]; + var _useState3 = (0, React.useState)(0), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + layoutY = _useState4[0], + setLayoutY = _useState4[1]; + var _useState5 = (0, React.useState)(0), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + layoutHeight = _useState6[0], + setLayoutHeight = _useState6[1]; + var _useState7 = (0, React.useState)(null), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + translateY = _useState8[0], + setTranslateY = _useState8[1]; + var _useState9 = (0, React.useState)(_nextHeaderLayoutY), + _useState10 = (0, _slicedToArray2.default)(_useState9, 2), + nextHeaderLayoutY = _useState10[0], + setNextHeaderLayoutY = _useState10[1]; + var _useState11 = (0, React.useState)(false), + _useState12 = (0, _slicedToArray2.default)(_useState11, 2), + isFabric = _useState12[0], + setIsFabric = _useState12[1]; + var callbackRef = function callbackRef(ref) { + if (ref == null) { + return; + } + ref.setNextHeaderY = function (value) { + setNextHeaderLayoutY(value); + }; + setIsFabric((0, _$$_REQUIRE(_dependencyMap[7], "../../Renderer/public/ReactFabricPublicInstanceUtils").isPublicInstance)(ref)); + }; + var ref = + // $FlowFixMe[incompatible-type] - Ref is mutated by `callbackRef`. + (0, _useMergeRefs.default)(callbackRef, forwardedRef); + var offset = (0, React.useMemo)(function () { + return hiddenOnScroll === true ? _Animated.default.diffClamp(scrollAnimatedValue.interpolate({ + extrapolateLeft: 'clamp', + inputRange: [layoutY, layoutY + 1], + outputRange: [0, 1] + }).interpolate({ + inputRange: [0, 1], + outputRange: [0, -1] + }), -layoutHeight, 0) : null; + }, [scrollAnimatedValue, layoutHeight, layoutY, hiddenOnScroll]); + var _useState13 = (0, React.useState)(function () { + var inputRange = [-1, 0]; + var outputRange = [0, 0]; + var initialTranslateY = scrollAnimatedValue.interpolate({ + inputRange: inputRange, + outputRange: outputRange + }); + if (offset != null) { + return _Animated.default.add(initialTranslateY, offset); } + return initialTranslateY; + }), + _useState14 = (0, _slicedToArray2.default)(_useState13, 2), + animatedTranslateY = _useState14[0], + setAnimatedTranslateY = _useState14[1]; + var _haveReceivedInitialZeroTranslateY = (0, React.useRef)(true); + var _timer = (0, React.useRef)(null); + (0, React.useEffect)(function () { + if (translateY !== 0 && translateY != null) { + _haveReceivedInitialZeroTranslateY.current = false; + } + }, [translateY]); + + // This is called whenever the (Interpolated) Animated Value + // updates, which is several times per frame during scrolling. + // To ensure that the Fabric ShadowTree has the most recent + // translate style of this node, we debounce the value and then + // pass it through to the underlying node during render. + // This is: + // 1. Only an issue in Fabric. + // 2. Worse in Android than iOS. In Android, but not iOS, you + // can touch and move your finger slightly and still trigger + // a "tap" event. In iOS, moving will cancel the tap in + // both Fabric and non-Fabric. On Android when you move + // your finger, the hit-detection moves from the Android + // platform to JS, so we need the ShadowTree to have knowledge + // of the current position. + var animatedValueListener = (0, React.useCallback)(function (_ref) { + var value = _ref.value; + var _debounceTimeout = _Platform.default.OS === 'android' ? 15 : 64; + // When the AnimatedInterpolation is recreated, it always initializes + // to a value of zero and emits a value change of 0 to its listeners. + if (value === 0 && !_haveReceivedInitialZeroTranslateY.current) { + _haveReceivedInitialZeroTranslateY.current = true; + return; } - function bubbleProperties(completedWork) { - var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; - var newChildLanes = NoLanes; - var subtreeFlags = NoFlags; - if (!didBailout) { - if ((completedWork.mode & ProfileMode) !== NoMode) { - var actualDuration = completedWork.actualDuration; - var treeBaseDuration = completedWork.selfBaseDuration; - var child = completedWork.child; - while (child !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); - subtreeFlags |= child.subtreeFlags; - subtreeFlags |= child.flags; - - actualDuration += child.actualDuration; - treeBaseDuration += child.treeBaseDuration; - child = child.sibling; - } - completedWork.actualDuration = actualDuration; - completedWork.treeBaseDuration = treeBaseDuration; - } else { - var _child = completedWork.child; - while (_child !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); - subtreeFlags |= _child.subtreeFlags; - subtreeFlags |= _child.flags; - - _child.return = completedWork; - _child = _child.sibling; + if (_timer.current != null) { + clearTimeout(_timer.current); + } + _timer.current = setTimeout(function () { + if (value !== translateY) { + setTranslateY(value); + } + }, _debounceTimeout); + }, [translateY]); + (0, React.useEffect)(function () { + var inputRange = [-1, 0]; + var outputRange = [0, 0]; + if (measured) { + if (inverted === true) { + // The interpolation looks like: + // - Negative scroll: no translation + // - `stickStartPoint` is the point at which the header will start sticking. + // It is calculated using the ScrollView viewport height so it is a the bottom. + // - Headers that are in the initial viewport will never stick, `stickStartPoint` + // will be negative. + // - From 0 to `stickStartPoint` no translation. This will cause the header + // to scroll normally until it reaches the top of the scroll view. + // - From `stickStartPoint` to when the next header y hits the bottom edge of the header: translate + // equally to scroll. This will cause the header to stay at the top of the scroll view. + // - Past the collision with the next header y: no more translation. This will cause the + // header to continue scrolling up and make room for the next sticky header. + // In the case that there is no next header just translate equally to + // scroll indefinitely. + if (scrollViewHeight != null) { + var stickStartPoint = layoutY + layoutHeight - scrollViewHeight; + if (stickStartPoint > 0) { + inputRange.push(stickStartPoint); + outputRange.push(0); + inputRange.push(stickStartPoint + 1); + outputRange.push(1); + // If the next sticky header has not loaded yet (probably windowing) or is the last + // we can just keep it sticked forever. + var collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight; + if (collisionPoint > stickStartPoint) { + inputRange.push(collisionPoint, collisionPoint + 1); + outputRange.push(collisionPoint - stickStartPoint, collisionPoint - stickStartPoint); + } } } - completedWork.subtreeFlags |= subtreeFlags; } else { - if ((completedWork.mode & ProfileMode) !== NoMode) { - var _treeBaseDuration = completedWork.selfBaseDuration; - var _child2 = completedWork.child; - while (_child2 !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); - - subtreeFlags |= _child2.subtreeFlags & StaticMask; - subtreeFlags |= _child2.flags & StaticMask; - _treeBaseDuration += _child2.treeBaseDuration; - _child2 = _child2.sibling; - } - completedWork.treeBaseDuration = _treeBaseDuration; + // The interpolation looks like: + // - Negative scroll: no translation + // - From 0 to the y of the header: no translation. This will cause the header + // to scroll normally until it reaches the top of the scroll view. + // - From header y to when the next header y hits the bottom edge of the header: translate + // equally to scroll. This will cause the header to stay at the top of the scroll view. + // - Past the collision with the next header y: no more translation. This will cause the + // header to continue scrolling up and make room for the next sticky header. + // In the case that there is no next header just translate equally to + // scroll indefinitely. + inputRange.push(layoutY); + outputRange.push(0); + // If the next sticky header has not loaded yet (probably windowing) or is the last + // we can just keep it sticked forever. + var _collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight; + if (_collisionPoint >= layoutY) { + inputRange.push(_collisionPoint, _collisionPoint + 1); + outputRange.push(_collisionPoint - layoutY, _collisionPoint - layoutY); } else { - var _child3 = completedWork.child; - while (_child3 !== null) { - newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); - - subtreeFlags |= _child3.subtreeFlags & StaticMask; - subtreeFlags |= _child3.flags & StaticMask; - - _child3.return = completedWork; - _child3 = _child3.sibling; - } + inputRange.push(layoutY + 1); + outputRange.push(1); } - completedWork.subtreeFlags |= subtreeFlags; } - completedWork.childLanes = newChildLanes; - return didBailout; } - function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) { - var wasHydrated = popHydrationState(); - if (nextState !== null && nextState.dehydrated !== null) { - if (current === null) { - if (!wasHydrated) { - throw new Error("A dehydrated suspense component was completed without a hydrated node. " + "This is probably a bug in React."); - } - prepareToHydrateHostSuspenseInstance(); - bubbleProperties(workInProgress); - { - if ((workInProgress.mode & ProfileMode) !== NoMode) { - var isTimedOutSuspense = nextState !== null; - if (isTimedOutSuspense) { - var primaryChildFragment = workInProgress.child; - if (primaryChildFragment !== null) { - workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; - } - } - } - } - return false; - } else { - if ((workInProgress.flags & DidCapture) === NoFlags) { - workInProgress.memoizedState = null; - } + var newAnimatedTranslateY = scrollAnimatedValue.interpolate({ + inputRange: inputRange, + outputRange: outputRange + }); + if (offset != null) { + newAnimatedTranslateY = _Animated.default.add(newAnimatedTranslateY, offset); + } - workInProgress.flags |= Update; - bubbleProperties(workInProgress); - { - if ((workInProgress.mode & ProfileMode) !== NoMode) { - var _isTimedOutSuspense = nextState !== null; - if (_isTimedOutSuspense) { - var _primaryChildFragment = workInProgress.child; - if (_primaryChildFragment !== null) { - workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; - } - } - } - } - return false; - } - } else { - upgradeHydrationErrorsToRecoverable(); + // add the event listener + var animatedListenerId; + if (isFabric) { + animatedListenerId = newAnimatedTranslateY.addListener(animatedValueListener); + } + setAnimatedTranslateY(newAnimatedTranslateY); - return true; + // clean up the event listener and timer + return function () { + if (animatedListenerId) { + newAnimatedTranslateY.removeListener(animatedListenerId); } + if (_timer.current != null) { + clearTimeout(_timer.current); + } + }; + }, [nextHeaderLayoutY, measured, layoutHeight, layoutY, scrollViewHeight, scrollAnimatedValue, inverted, offset, animatedValueListener, isFabric]); + var _onLayout = function _onLayout(event) { + setLayoutY(event.nativeEvent.layout.y); + setLayoutHeight(event.nativeEvent.layout.height); + setMeasured(true); + props.onLayout(event); + var child = React.Children.only(props.children); + if (child.props.onLayout) { + child.props.onLayout(event); } - function completeWork(current, workInProgress, renderLanes) { - var newProps = workInProgress.pendingProps; + }; + var child = React.Children.only(props.children); - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case IndeterminateComponent: - case LazyComponent: - case SimpleMemoComponent: - case FunctionComponent: - case ForwardRef: - case Fragment: - case Mode: - case Profiler: - case ContextConsumer: - case MemoComponent: - bubbleProperties(workInProgress); - return null; - case ClassComponent: - { - var Component = workInProgress.type; - if (isContextProvider(Component)) { - popContext(workInProgress); - } - bubbleProperties(workInProgress); - return null; - } - case HostRoot: - { - var fiberRoot = workInProgress.stateNode; - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - resetWorkInProgressVersions(); - if (fiberRoot.pendingContext) { - fiberRoot.context = fiberRoot.pendingContext; - fiberRoot.pendingContext = null; - } - if (current === null || current.child === null) { - var wasHydrated = popHydrationState(); - if (wasHydrated) { - markUpdate(workInProgress); - } else { - if (current !== null) { - var prevState = current.memoizedState; - if ( - !prevState.isDehydrated || - (workInProgress.flags & ForceClientRender) !== NoFlags) { - workInProgress.flags |= Snapshot; + // TODO T68319535: remove this if NativeAnimated is rewritten for Fabric + var passthroughAnimatedPropExplicitValues = isFabric && translateY != null ? { + style: { + transform: [{ + translateY: translateY + }] + } + } : null; + return ( + /*#__PURE__*/ + /* $FlowFixMe[prop-missing] passthroughAnimatedPropExplicitValues isn't properly + included in the Animated.View flow type. */ + (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Animated.default.View, { + collapsable: false, + nativeID: props.nativeID, + onLayout: _onLayout, + ref: ref, + style: [child.props.style, styles.header, { + transform: [{ + translateY: animatedTranslateY + }] + }], + passthroughAnimatedPropExplicitValues: passthroughAnimatedPropExplicitValues, + children: React.cloneElement(child, { + style: styles.fill, + // We transfer the child style to the wrapper. + onLayout: undefined // we call this manually through our this._onLayout + }) + }) + ); + }); - upgradeHydrationErrorsToRecoverable(); - } - } - } - } - updateHostContainer(current, workInProgress); - bubbleProperties(workInProgress); - return null; - } - case HostComponent: - { - popHostContext(workInProgress); - var rootContainerInstance = getRootHostContainer(); - var type = workInProgress.type; - if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance); - if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); - } - } else { - if (!newProps) { - if (workInProgress.stateNode === null) { - throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - } + var styles = _StyleSheet.default.create({ + header: { + zIndex: 10, + position: 'relative' + }, + fill: { + flex: 1 + } + }); + var _default = ScrollViewStickyHeaderWithForwardedRef; + exports.default = _default; +},374,[3,22,375,259,17,344,41,352,89],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./AnimatedImplementation")); + var _AnimatedMock = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./AnimatedMock")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - bubbleProperties(workInProgress); - return null; - } - var currentHostContext = getHostContext(); + var Animated = _Platform.default.isTesting ? _AnimatedMock.default : _AnimatedImplementation.default; + var _default = Object.assign({ + get FlatList() { + return _$$_REQUIRE(_dependencyMap[4], "./components/AnimatedFlatList").default; + }, + get Image() { + return _$$_REQUIRE(_dependencyMap[5], "./components/AnimatedImage").default; + }, + get ScrollView() { + return _$$_REQUIRE(_dependencyMap[6], "./components/AnimatedScrollView").default; + }, + get SectionList() { + return _$$_REQUIRE(_dependencyMap[7], "./components/AnimatedSectionList").default; + }, + get Text() { + return _$$_REQUIRE(_dependencyMap[8], "./components/AnimatedText").default; + }, + get View() { + return _$$_REQUIRE(_dependencyMap[9], "./components/AnimatedView").default; + } + }, Animated); + exports.default = _default; +},375,[3,17,325,376,377,394,403,407,409,410],"node_modules/react-native/Libraries/Animated/Animated.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var _wasHydrated = popHydrationState(); - if (_wasHydrated) { - if (prepareToHydrateHostInstance()) { - markUpdate(workInProgress); - } - } else { - var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); - _appendAllChildren(instance, workInProgress, false, false); - workInProgress.stateNode = instance; - } + 'use strict'; - if (workInProgress.ref !== null) { - markRef$1(workInProgress); - } - } - bubbleProperties(workInProgress); - return null; - } - case HostText: - { - var newText = newProps; - if (current && workInProgress.stateNode != null) { - var oldText = current.memoizedProps; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./AnimatedImplementation")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./createAnimatedComponent")); + var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./nodes/AnimatedColor")); + var _AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedInterpolation")); + var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedNode")); + var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./nodes/AnimatedValue")); + var _AnimatedValueXY = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./nodes/AnimatedValueXY")); + /** + * Animations are a source of flakiness in snapshot testing. This mock replaces + * animation functions from AnimatedImplementation with empty animations for + * predictability in tests. When possible the animation will run immediately + * to the final state. + */ - updateHostText$1(current, workInProgress, oldText, newText); - } else { - if (typeof newText !== "string") { - if (workInProgress.stateNode === null) { - throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - } - } + // Prevent any callback invocation from recursively triggering another + // callback, which may trigger another animation + var inAnimationCallback = false; + function mockAnimationStart(start) { + return function (callback) { + var guardedCallback = callback == null ? callback : function () { + if (inAnimationCallback) { + console.warn('Ignoring recursive animation callback when running mock animations'); + return; + } + inAnimationCallback = true; + try { + callback.apply(void 0, arguments); + } finally { + inAnimationCallback = false; + } + }; + start(guardedCallback); + }; + } + var emptyAnimation = { + start: function start() {}, + stop: function stop() {}, + reset: function reset() {}, + _startNativeLoop: function _startNativeLoop() {}, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + var mockCompositeAnimation = function mockCompositeAnimation(animations) { + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + animations.forEach(function (animation) { + return animation.start(); + }); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var spring = function spring(value, config) { + var anyValue = value; + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + anyValue.setValue(config.toValue); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var timing = function timing(value, config) { + var anyValue = value; + return Object.assign({}, emptyAnimation, { + start: mockAnimationStart(function (callback) { + anyValue.setValue(config.toValue); + callback == null ? void 0 : callback({ + finished: true + }); + }) + }); + }; + var decay = function decay(value, config) { + return emptyAnimation; + }; + var sequence = function sequence(animations) { + return mockCompositeAnimation(animations); + }; + var parallel = function parallel(animations, config) { + return mockCompositeAnimation(animations); + }; + var delay = function delay(time) { + return emptyAnimation; + }; + var stagger = function stagger(time, animations) { + return mockCompositeAnimation(animations); + }; + var loop = function loop(animation) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$iterations = _ref.iterations, + iterations = _ref$iterations === void 0 ? -1 : _ref$iterations; + return emptyAnimation; + }; + var _default = { + Value: _AnimatedValue.default, + ValueXY: _AnimatedValueXY.default, + Color: _AnimatedColor.default, + Interpolation: _AnimatedInterpolation.default, + Node: _AnimatedNode.default, + decay: decay, + timing: timing, + spring: spring, + add: _AnimatedImplementation.default.add, + subtract: _AnimatedImplementation.default.subtract, + divide: _AnimatedImplementation.default.divide, + multiply: _AnimatedImplementation.default.multiply, + modulo: _AnimatedImplementation.default.modulo, + diffClamp: _AnimatedImplementation.default.diffClamp, + delay: delay, + sequence: sequence, + parallel: parallel, + stagger: stagger, + loop: loop, + event: _AnimatedImplementation.default.event, + createAnimatedComponent: _createAnimatedComponent.default, + attachNativeEvent: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").attachNativeEvent, + forkEvent: _AnimatedImplementation.default.forkEvent, + unforkEvent: _AnimatedImplementation.default.unforkEvent, + Event: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").AnimatedEvent + }; + exports.default = _default; +},376,[3,325,343,332,336,340,333,351,350],"node_modules/react-native/Libraries/Animated/AnimatedMock.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _FlatList = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Lists/FlatList")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../createAnimatedComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * @see https://github.com/facebook/react-native/commit/b8c8562 + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var FlatListWithEventThrottle = React.forwardRef(function (props, ref) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_FlatList.default, Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: ref + })); + }); + var _default = (0, _createAnimatedComponent.default)(FlatListWithEventThrottle); + exports.default = _default; +},377,[3,378,343,41,89],"node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); + var _memoizeOne = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "memoize-one")); + var _excluded = ["numColumns", "columnWrapperStyle", "removeClippedSubviews", "strictMode"]; + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Lists/FlatList.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var React = _$$_REQUIRE(_dependencyMap[9], "react"); + /** + * Default Props Helper Functions + * Use the following helper functions for default values + */ // removeClippedSubviewsOrDefault(this.props.removeClippedSubviews) + function removeClippedSubviewsOrDefault(removeClippedSubviews) { + return removeClippedSubviews != null ? removeClippedSubviews : "ios" === 'android'; + } - var _rootContainerInstance = getRootHostContainer(); - var _currentHostContext = getHostContext(); - var _wasHydrated2 = popHydrationState(); - if (_wasHydrated2) { - if (prepareToHydrateHostTextInstance()) { - markUpdate(workInProgress); - } - } else { - workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress); - } - } - bubbleProperties(workInProgress); - return null; + // numColumnsOrDefault(this.props.numColumns) + function numColumnsOrDefault(numColumns) { + return numColumns != null ? numColumns : 1; + } + function isArrayLike(data) { + // $FlowExpectedError[incompatible-use] + return typeof Object(data).length === 'number'; + } + /** + * A performant interface for rendering simple, flat lists, supporting the most handy features: + * + * - Fully cross-platform. + * - Optional horizontal mode. + * - Configurable viewability callbacks. + * - Header support. + * - Footer support. + * - Separator support. + * - Pull to Refresh. + * - Scroll loading. + * - ScrollToIndex support. + * + * If you need section support, use [``](docs/sectionlist.html). + * + * Minimal Example: + * + * {item.key}} + * /> + * + * More complex, multi-select example demonstrating `PureComponent` usage for perf optimization and avoiding bugs. + * + * - By binding the `onPressItem` handler, the props will remain `===` and `PureComponent` will + * prevent wasteful re-renders unless the actual `id`, `selected`, or `title` props change, even + * if the components rendered in `MyListItem` did not have such optimizations. + * - By passing `extraData={this.state}` to `FlatList` we make sure `FlatList` itself will re-render + * when the `state.selected` changes. Without setting this prop, `FlatList` would not know it + * needs to re-render any items because it is also a `PureComponent` and the prop comparison will + * not show any changes. + * - `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property. + * + * + * class MyListItem extends React.PureComponent { + * _onPress = () => { + * this.props.onPressItem(this.props.id); + * }; + * + * render() { + * const textColor = this.props.selected ? "red" : "black"; + * return ( + * + * + * + * {this.props.title} + * + * + * + * ); + * } + * } + * + * class MultiSelectList extends React.PureComponent { + * state = {selected: (new Map(): Map)}; + * + * _keyExtractor = (item, index) => item.id; + * + * _onPressItem = (id: string) => { + * // updater functions are preferred for transactional updates + * this.setState((state) => { + * // copy the map rather than modifying state. + * const selected = new Map(state.selected); + * selected.set(id, !selected.get(id)); // toggle + * return {selected}; + * }); + * }; + * + * _renderItem = ({item}) => ( + * + * ); + * + * render() { + * return ( + * + * ); + * } + * } + * + * This is a convenience wrapper around [``](docs/virtualizedlist.html), + * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed + * here, along with the following caveats: + * + * - Internal state is not preserved when content scrolls out of the render window. Make sure all + * your data is captured in the item data or external stores like Flux, Redux, or Relay. + * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow- + * equal. Make sure that everything your `renderItem` function depends on is passed as a prop + * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on + * changes. This includes the `data` prop and parent component state. + * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously + * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see + * blank content. This is a tradeoff that can be adjusted to suit the needs of each application, + * and we are working on improving it behind the scenes. + * - By default, the list looks for a `key` prop on each item and uses that for the React key. + * Alternatively, you can provide a custom `keyExtractor` prop. + * + * Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation. + */ + var FlatList = /*#__PURE__*/function (_React$PureComponent) { + (0, _inherits2.default)(FlatList, _React$PureComponent); + var _super = _createSuper(FlatList); + function FlatList(_props) { + var _this; + (0, _classCallCheck2.default)(this, FlatList); + _this = _super.call(this, _props); + _this._virtualizedListPairs = []; + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + _this._getItem = function (data, index) { + var numColumns = numColumnsOrDefault(_this.props.numColumns); + if (numColumns > 1) { + var ret = []; + for (var kk = 0; kk < numColumns; kk++) { + var itemIndex = index * numColumns + kk; + if (itemIndex < data.length) { + var _item = data[itemIndex]; + ret.push(_item); } - case SuspenseComponent: - { - popSuspenseContext(workInProgress); - var nextState = workInProgress.memoizedState; - - if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) { - var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState); - if (!fallthroughToNormalSuspensePath) { - if (workInProgress.flags & ShouldCapture) { - return workInProgress; - } else { - return null; - } - } - } - - if ((workInProgress.flags & DidCapture) !== NoFlags) { - workInProgress.lanes = renderLanes; - - if ((workInProgress.mode & ProfileMode) !== NoMode) { - transferActualDuration(workInProgress); - } - - return workInProgress; - } - var nextDidTimeout = nextState !== null; - var prevDidTimeout = current !== null && current.memoizedState !== null; - - if (nextDidTimeout !== prevDidTimeout) { - - if (nextDidTimeout) { - var _offscreenFiber2 = workInProgress.child; - _offscreenFiber2.flags |= Visibility; + } + return ret; + } else { + return data[index]; + } + }; + _this._getItemCount = function (data) { + // Legacy behavior of FlatList was to forward "undefined" length if invalid + // data like a non-arraylike object is passed. VirtualizedList would then + // coerce this, and the math would work out to no-op. For compatibility, if + // invalid data is passed, we tell VirtualizedList there are zero items + // available to prevent it from trying to read from the invalid data + // (without propagating invalidly typed data). + if (data != null && isArrayLike(data)) { + var numColumns = numColumnsOrDefault(_this.props.numColumns); + return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length; + } else { + return 0; + } + }; + _this._keyExtractor = function (items, index) { + var _this$props$keyExtrac; + var numColumns = numColumnsOrDefault(_this.props.numColumns); + var keyExtractor = (_this$props$keyExtrac = _this.props.keyExtractor) != null ? _this$props$keyExtrac : _$$_REQUIRE(_dependencyMap[10], "@react-native/virtualized-lists").keyExtractor; + if (numColumns > 1) { + _$$_REQUIRE(_dependencyMap[11], "invariant")(Array.isArray(items), 'FlatList: Encountered internal consistency error, expected each item to consist of an ' + 'array with 1-%s columns; instead, received a single item.', numColumns); + return items.map(function (item, kk) { + return keyExtractor(item, index * numColumns + kk); + }).join(':'); + } - if ((workInProgress.mode & ConcurrentMode) !== NoMode) { - var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); - if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { - renderDidSuspend(); - } else { - renderDidSuspendDelayIfPossible(); - } - } - } - } - var wakeables = workInProgress.updateQueue; - if (wakeables !== null) { - workInProgress.flags |= Update; - } - bubbleProperties(workInProgress); - { - if ((workInProgress.mode & ProfileMode) !== NoMode) { - if (nextDidTimeout) { - var primaryChildFragment = workInProgress.child; - if (primaryChildFragment !== null) { - workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; - } - } - } - } - return null; - } - case HostPortal: - popHostContainer(workInProgress); - updateHostContainer(current, workInProgress); - if (current === null) { - preparePortalMount(workInProgress.stateNode.containerInfo); - } - bubbleProperties(workInProgress); - return null; - case ContextProvider: - var context = workInProgress.type._context; - popProvider(context, workInProgress); - bubbleProperties(workInProgress); + // $FlowFixMe[incompatible-call] Can't call keyExtractor with an array + return keyExtractor(items, index); + }; + _this._renderer = function (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData + // $FlowFixMe[missing-local-annot] + ) { + var cols = numColumnsOrDefault(numColumns); + var render = function render(props) { + if (ListItemComponent) { + // $FlowFixMe[not-a-component] Component isn't valid + // $FlowFixMe[incompatible-type-arg] Component isn't valid + // $FlowFixMe[incompatible-return] Component isn't valid + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(ListItemComponent, Object.assign({}, props)); + } else if (renderItem) { + // $FlowFixMe[incompatible-call] + return renderItem(props); + } else { return null; - case IncompleteClassComponent: - { - var _Component = workInProgress.type; - if (isContextProvider(_Component)) { - popContext(workInProgress); - } - bubbleProperties(workInProgress); - return null; - } - case SuspenseListComponent: - { - popSuspenseContext(workInProgress); - var renderState = workInProgress.memoizedState; - if (renderState === null) { - bubbleProperties(workInProgress); - return null; - } - var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; - var renderedTail = renderState.rendering; - if (renderedTail === null) { - if (!didSuspendAlready) { - var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags); - if (!cannotBeSuspended) { - var row = workInProgress.child; - while (row !== null) { - var suspended = findFirstSuspended(row); - if (suspended !== null) { - didSuspendAlready = true; - workInProgress.flags |= DidCapture; - cutOffTailIfNeeded(renderState, false); - - var newThenables = suspended.updateQueue; - if (newThenables !== null) { - workInProgress.updateQueue = newThenables; - workInProgress.flags |= Update; - } - - workInProgress.subtreeFlags = NoFlags; - resetChildFibers(workInProgress, renderLanes); - - pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); - - return workInProgress.child; - } - row = row.sibling; - } - } - if (renderState.tail !== null && now() > getRenderTargetTime()) { - workInProgress.flags |= DidCapture; - didSuspendAlready = true; - cutOffTailIfNeeded(renderState, false); - - workInProgress.lanes = SomeRetryLane; - } - } else { - cutOffTailIfNeeded(renderState, false); - } - } else { - if (!didSuspendAlready) { - var _suspended = findFirstSuspended(renderedTail); - if (_suspended !== null) { - workInProgress.flags |= DidCapture; - didSuspendAlready = true; - - var _newThenables = _suspended.updateQueue; - if (_newThenables !== null) { - workInProgress.updateQueue = _newThenables; - workInProgress.flags |= Update; - } - cutOffTailIfNeeded(renderState, true); - - if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating()) { - bubbleProperties(workInProgress); - return null; - } - } else if ( - now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) { - workInProgress.flags |= DidCapture; - didSuspendAlready = true; - cutOffTailIfNeeded(renderState, false); - - workInProgress.lanes = SomeRetryLane; - } - } - if (renderState.isBackwards) { - renderedTail.sibling = workInProgress.child; - workInProgress.child = renderedTail; - } else { - var previousSibling = renderState.last; - if (previousSibling !== null) { - previousSibling.sibling = renderedTail; - } else { - workInProgress.child = renderedTail; - } - renderState.last = renderedTail; - } - } - if (renderState.tail !== null) { - var next = renderState.tail; - renderState.rendering = next; - renderState.tail = next.sibling; - renderState.renderingStartTime = now(); - next.sibling = null; - - var suspenseContext = suspenseStackCursor.current; - if (didSuspendAlready) { - suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); - } else { - suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); - } - pushSuspenseContext(workInProgress, suspenseContext); - - return next; - } - bubbleProperties(workInProgress); - return null; - } - case ScopeComponent: - { - break; - } - case OffscreenComponent: - case LegacyHiddenComponent: - { - popRenderLanes(workInProgress); - var _nextState = workInProgress.memoizedState; - var nextIsHidden = _nextState !== null; - if (current !== null) { - var _prevState = current.memoizedState; - var prevIsHidden = _prevState !== null; - if (prevIsHidden !== nextIsHidden && - !enableLegacyHidden) { - workInProgress.flags |= Visibility; - } - } - if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) { - bubbleProperties(workInProgress); - } else { - if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { - bubbleProperties(workInProgress); - } - } - return null; - } - case CacheComponent: - { - return null; - } - case TracingMarkerComponent: - { - return null; - } - } - throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); + } + }; + var renderProp = function renderProp(info) { + if (cols > 1) { + var _item2 = info.item, + _index = info.index; + _$$_REQUIRE(_dependencyMap[11], "invariant")(Array.isArray(_item2), 'Expected array of items with numColumns > 1'); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { + style: _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").compose(styles.row, columnWrapperStyle), + children: _item2.map(function (it, kk) { + var element = render({ + // $FlowFixMe[incompatible-call] + item: it, + index: _index * cols + kk, + separators: info.separators + }); + return element != null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(React.Fragment, { + children: element + }, kk) : null; + }) + }); + } else { + return render(info); + } + }; + return ListItemComponent ? { + ListItemComponent: renderProp + } : { + renderItem: renderProp + }; + }; + // $FlowFixMe[missing-local-annot] + _this._memoizedRenderer = (0, _memoizeOne.default)(_this._renderer); + _this._checkProps(_this.props); + if (_this.props.viewabilityConfigCallbackPairs) { + _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityConfig: pair.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged) + }; + }); + } else if (_this.props.onViewableItemsChanged) { + _this._virtualizedListPairs.push({ + /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.63 was deployed. To + * see the error delete this comment and run Flow. */ + viewabilityConfig: _this.props.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged) + }); } - function unwindWork(current, workInProgress, renderLanes) { - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case ClassComponent: - { - var Component = workInProgress.type; - if (isContextProvider(Component)) { - popContext(workInProgress); - } - var flags = workInProgress.flags; - if (flags & ShouldCapture) { - workInProgress.flags = flags & ~ShouldCapture | DidCapture; - if ((workInProgress.mode & ProfileMode) !== NoMode) { - transferActualDuration(workInProgress); - } - return workInProgress; - } - return null; - } - case HostRoot: - { - var root = workInProgress.stateNode; - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - resetWorkInProgressVersions(); - var _flags = workInProgress.flags; - if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { - workInProgress.flags = _flags & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - case HostComponent: - { - popHostContext(workInProgress); - return null; - } - case SuspenseComponent: - { - popSuspenseContext(workInProgress); - var suspenseState = workInProgress.memoizedState; - if (suspenseState !== null && suspenseState.dehydrated !== null) { - if (workInProgress.alternate === null) { - throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in " + "React. Please file an issue."); - } - } - var _flags2 = workInProgress.flags; - if (_flags2 & ShouldCapture) { - workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; - - if ((workInProgress.mode & ProfileMode) !== NoMode) { - transferActualDuration(workInProgress); - } - return workInProgress; - } - return null; - } - case SuspenseListComponent: - { - popSuspenseContext(workInProgress); + return _this; + } - return null; - } - case HostPortal: - popHostContainer(workInProgress); - return null; - case ContextProvider: - var context = workInProgress.type._context; - popProvider(context, workInProgress); - return null; - case OffscreenComponent: - case LegacyHiddenComponent: - popRenderLanes(workInProgress); - return null; - case CacheComponent: - return null; - default: - return null; + // $FlowFixMe[missing-local-annot] + (0, _createClass2.default)(FlatList, [{ + key: "scrollToEnd", + value: + /** + * Scrolls to the end of the content. May be janky without `getItemLayout` prop. + */ + function scrollToEnd(params) { + if (this._listRef) { + this._listRef.scrollToEnd(params); } } - function unwindInterruptedWork(current, interruptedWork, renderLanes) { - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { - case ClassComponent: - { - var childContextTypes = interruptedWork.type.childContextTypes; - if (childContextTypes !== null && childContextTypes !== undefined) { - popContext(interruptedWork); - } - break; - } - case HostRoot: - { - var root = interruptedWork.stateNode; - popHostContainer(interruptedWork); - popTopLevelContextObject(interruptedWork); - resetWorkInProgressVersions(); - break; - } - case HostComponent: - { - popHostContext(interruptedWork); - break; - } - case HostPortal: - popHostContainer(interruptedWork); - break; - case SuspenseComponent: - popSuspenseContext(interruptedWork); - break; - case SuspenseListComponent: - popSuspenseContext(interruptedWork); - break; - case ContextProvider: - var context = interruptedWork.type._context; - popProvider(context, interruptedWork); - break; - case OffscreenComponent: - case LegacyHiddenComponent: - popRenderLanes(interruptedWork); - break; + + /** + * Scrolls to the item at the specified index such that it is positioned in the viewable area + * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the + * middle. `viewOffset` is a fixed number of pixels to offset the final target position. + * + * Note: cannot scroll to locations outside the render window without specifying the + * `getItemLayout` prop. + */ + }, { + key: "scrollToIndex", + value: function scrollToIndex(params) { + if (this._listRef) { + this._listRef.scrollToIndex(params); } } - var didWarnAboutUndefinedSnapshotBeforeUpdate = null; - { - didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); - } - var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; - var nextEffect = null; - var inProgressLanes = null; - var inProgressRoot = null; - function reportUncaughtErrorInDEV(error) { - { - invokeGuardedCallback(null, function () { - throw error; - }); - clearCaughtError(); + /** + * Requires linear scan through data - use `scrollToIndex` instead if possible. + * + * Note: cannot scroll to locations outside the render window without specifying the + * `getItemLayout` prop. + */ + }, { + key: "scrollToItem", + value: function scrollToItem(params) { + if (this._listRef) { + this._listRef.scrollToItem(params); } } - var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { - instance.props = current.memoizedProps; - instance.state = current.memoizedState; - if (current.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - instance.componentWillUnmount(); - } finally { - recordLayoutEffectDuration(current); - } - } else { - instance.componentWillUnmount(); - } - }; - function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { - try { - callComponentWillUnmountWithTimer(current, instance); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); + /** + * Scroll to a specific content pixel offset in the list. + * + * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList + */ + }, { + key: "scrollToOffset", + value: function scrollToOffset(params) { + if (this._listRef) { + this._listRef.scrollToOffset(params); } } - function safelyDetachRef(current, nearestMountedAncestor) { - var ref = current.ref; - if (ref !== null) { - if (typeof ref === "function") { - var retVal; - try { - if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - retVal = ref(null); - } finally { - recordLayoutEffectDuration(current); - } - } else { - retVal = ref(null); - } - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } - { - if (typeof retVal === "function") { - error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(current)); - } - } - } else { - ref.current = null; - } + /** + * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g. + * if `waitForInteractions` is true and the user has not scrolled. This is typically called by + * taps on items or by navigation actions. + */ + }, { + key: "recordInteraction", + value: function recordInteraction() { + if (this._listRef) { + this._listRef.recordInteraction(); } } - function safelyCallDestroy(current, nearestMountedAncestor, destroy) { - try { - destroy(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); + + /** + * Displays the scroll indicators momentarily. + * + * @platform ios + */ + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + if (this._listRef) { + this._listRef.flashScrollIndicators(); } } - var focusedInstanceHandle = null; - var shouldFireAfterActiveInstanceBlur = false; - function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); - nextEffect = firstChild; - commitBeforeMutationEffects_begin(); - var shouldFire = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = false; - focusedInstanceHandle = null; - return shouldFire; + /** + * Provides a handle to the underlying scroll responder. + */ + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + if (this._listRef) { + return this._listRef.getScrollResponder(); + } } - function commitBeforeMutationEffects_begin() { - while (nextEffect !== null) { - var fiber = nextEffect; - var child = fiber.child; - if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { - child.return = fiber; - nextEffect = child; - } else { - commitBeforeMutationEffects_complete(); - } + /** + * Provides a reference to the underlying host component + */ + }, { + key: "getNativeScrollRef", + value: function getNativeScrollRef() { + if (this._listRef) { + /* $FlowFixMe[incompatible-return] Suppresses errors found when fixing + * TextInput typing */ + return this._listRef.getScrollRef(); } } - function commitBeforeMutationEffects_complete() { - while (nextEffect !== null) { - var fiber = nextEffect; - setCurrentFiber(fiber); - try { - commitBeforeMutationEffectsOnFiber(fiber); - } catch (error) { - captureCommitPhaseError(fiber, fiber.return, error); - } - resetCurrentFiber(); - var sibling = fiber.sibling; - if (sibling !== null) { - sibling.return = fiber.return; - nextEffect = sibling; - return; - } - nextEffect = fiber.return; + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._listRef) { + return this._listRef.getScrollableNode(); } } - function commitBeforeMutationEffectsOnFiber(finishedWork) { - var current = finishedWork.alternate; - var flags = finishedWork.flags; - if ((flags & Snapshot) !== NoFlags) { - setCurrentFiber(finishedWork); - switch (finishedWork.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - break; - } - case ClassComponent: - { - if (current !== null) { - var prevProps = current.memoizedProps; - var prevState = current.memoizedState; - var instance = finishedWork.stateNode; - - { - if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { - if (instance.props !== finishedWork.memoizedProps) { - error("Expected %s props to match memoized props before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - if (instance.state !== finishedWork.memoizedState) { - error("Expected %s state to match memoized state before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - } - } - var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); - { - var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; - if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { - didWarnSet.add(finishedWork.type); - error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); - } - } - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - break; - } - case HostRoot: - { - break; - } - case HostComponent: - case HostText: - case HostPortal: - case IncompleteClassComponent: - break; - default: - { - throw new 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."); - } - } - resetCurrentFiber(); + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._listRef) { + this._listRef.setNativeProps(props); } } - function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { - var updateQueue = finishedWork.updateQueue; - var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; - if (lastEffect !== null) { - var firstEffect = lastEffect.next; - var effect = firstEffect; - do { - if ((effect.tag & flags) === flags) { - var destroy = effect.destroy; - effect.destroy = undefined; - if (destroy !== undefined) { - { - if ((flags & Insertion) !== NoFlags$1) { - setIsRunningInsertionEffect(true); - } - } - safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); - { - if ((flags & Insertion) !== NoFlags$1) { - setIsRunningInsertionEffect(false); - } - } - } - } - effect = effect.next; - } while (effect !== firstEffect); - } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + _$$_REQUIRE(_dependencyMap[11], "invariant")(prevProps.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.'); + _$$_REQUIRE(_dependencyMap[11], "invariant")(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, 'Changing onViewableItemsChanged on the fly is not supported'); + _$$_REQUIRE(_dependencyMap[11], "invariant")(!_$$_REQUIRE(_dependencyMap[15], "../Utilities/differ/deepDiffer")(prevProps.viewabilityConfig, this.props.viewabilityConfig), 'Changing viewabilityConfig on the fly is not supported'); + _$$_REQUIRE(_dependencyMap[11], "invariant")(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, 'Changing viewabilityConfigCallbackPairs on the fly is not supported'); + this._checkProps(this.props); } - function commitHookEffectListMount(flags, finishedWork) { - var updateQueue = finishedWork.updateQueue; - var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; - if (lastEffect !== null) { - var firstEffect = lastEffect.next; - var effect = firstEffect; - do { - if ((effect.tag & flags) === flags) { - var create = effect.create; - { - if ((flags & Insertion) !== NoFlags$1) { - setIsRunningInsertionEffect(true); - } - } - effect.destroy = create(); - { - if ((flags & Insertion) !== NoFlags$1) { - setIsRunningInsertionEffect(false); - } - } - { - var destroy = effect.destroy; - if (destroy !== undefined && typeof destroy !== "function") { - var hookName = void 0; - if ((effect.tag & Layout) !== NoFlags) { - hookName = "useLayoutEffect"; - } else if ((effect.tag & Insertion) !== NoFlags) { - hookName = "useInsertionEffect"; - } else { - hookName = "useEffect"; - } - var addendum = void 0; - if (destroy === null) { - addendum = " You returned null. If your effect does not require clean " + "up, return undefined (or nothing)."; - } else if (typeof destroy.then === "function") { - addendum = "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. " + "Instead, write the async function inside your effect " + "and call it immediately:\n\n" + hookName + "(() => {\n" + " async function fetchData() {\n" + " // You can await here\n" + " const response = await MyAPI.getData(someId);\n" + " // ...\n" + " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; - } else { - addendum = " You returned: " + destroy; - } - error("%s must not return anything besides a function, " + "which is used for clean-up.%s", hookName, addendum); - } - } - } - effect = effect.next; - } while (effect !== firstEffect); + }, { + key: "_checkProps", + value: + // $FlowFixMe[missing-local-annot] + function _checkProps(props) { + var getItem = props.getItem, + getItemCount = props.getItemCount, + horizontal = props.horizontal, + columnWrapperStyle = props.columnWrapperStyle, + onViewableItemsChanged = props.onViewableItemsChanged, + viewabilityConfigCallbackPairs = props.viewabilityConfigCallbackPairs; + var numColumns = numColumnsOrDefault(this.props.numColumns); + _$$_REQUIRE(_dependencyMap[11], "invariant")(!getItem && !getItemCount, 'FlatList does not support custom data formats.'); + if (numColumns > 1) { + _$$_REQUIRE(_dependencyMap[11], "invariant")(!horizontal, 'numColumns does not support horizontal.'); + } else { + _$$_REQUIRE(_dependencyMap[11], "invariant")(!columnWrapperStyle, 'columnWrapperStyle not supported for single column lists'); } + _$$_REQUIRE(_dependencyMap[11], "invariant")(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), 'FlatList does not support setting both onViewableItemsChanged and ' + 'viewabilityConfigCallbackPairs.'); } - function commitPassiveEffectDurations(finishedRoot, finishedWork) { - { - if ((finishedWork.flags & Update) !== NoFlags) { - switch (finishedWork.tag) { - case Profiler: - { - var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; - var _finishedWork$memoize = finishedWork.memoizedProps, - id = _finishedWork$memoize.id, - onPostCommit = _finishedWork$memoize.onPostCommit; - - var commitTime = getCommitTime(); - var phase = finishedWork.alternate === null ? "mount" : "update"; - { - if (isCurrentUpdateNested()) { - phase = "nested-update"; - } - } - if (typeof onPostCommit === "function") { - onPostCommit(id, phase, passiveEffectDuration, commitTime); - } - - var parentFiber = finishedWork.return; - outer: while (parentFiber !== null) { - switch (parentFiber.tag) { - case HostRoot: - var root = parentFiber.stateNode; - root.passiveEffectDuration += passiveEffectDuration; - break outer; - case Profiler: - var parentStateNode = parentFiber.stateNode; - parentStateNode.passiveEffectDuration += passiveEffectDuration; - break outer; - } - parentFiber = parentFiber.return; - } - break; - } + }, { + key: "_pushMultiColumnViewable", + value: function _pushMultiColumnViewable(arr, v) { + var _this$props$keyExtrac2; + var numColumns = numColumnsOrDefault(this.props.numColumns); + var keyExtractor = (_this$props$keyExtrac2 = this.props.keyExtractor) != null ? _this$props$keyExtrac2 : _$$_REQUIRE(_dependencyMap[10], "@react-native/virtualized-lists").keyExtractor; + v.item.forEach(function (item, ii) { + _$$_REQUIRE(_dependencyMap[11], "invariant")(v.index != null, 'Missing index!'); + var index = v.index * numColumns + ii; + arr.push(Object.assign({}, v, { + item: item, + key: keyExtractor(item, index), + index: index + })); + }); + } + }, { + key: "_createOnViewableItemsChanged", + value: function _createOnViewableItemsChanged(onViewableItemsChanged + // $FlowFixMe[missing-local-annot] + ) { + var _this2 = this; + return function (info) { + var numColumns = numColumnsOrDefault(_this2.props.numColumns); + if (onViewableItemsChanged) { + if (numColumns > 1) { + var changed = []; + var viewableItems = []; + info.viewableItems.forEach(function (v) { + return _this2._pushMultiColumnViewable(viewableItems, v); + }); + info.changed.forEach(function (v) { + return _this2._pushMultiColumnViewable(changed, v); + }); + onViewableItemsChanged({ + viewableItems: viewableItems, + changed: changed + }); + } else { + onViewableItemsChanged(info); } } - } + }; } - function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) { - if ((finishedWork.flags & LayoutMask) !== NoFlags) { - switch (finishedWork.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - { - if (finishedWork.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - commitHookEffectListMount(Layout | HasEffect, finishedWork); - } finally { - recordLayoutEffectDuration(finishedWork); - } - } else { - commitHookEffectListMount(Layout | HasEffect, finishedWork); - } - } - break; - } - case ClassComponent: - { - var instance = finishedWork.stateNode; - if (finishedWork.flags & Update) { - { - if (current === null) { - { - if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { - if (instance.props !== finishedWork.memoizedProps) { - error("Expected %s props to match memoized props before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - if (instance.state !== finishedWork.memoizedState) { - error("Expected %s state to match memoized state before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - } - } - if (finishedWork.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - instance.componentDidMount(); - } finally { - recordLayoutEffectDuration(finishedWork); - } - } else { - instance.componentDidMount(); - } - } else { - var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); - var prevState = current.memoizedState; - - { - if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { - if (instance.props !== finishedWork.memoizedProps) { - error("Expected %s props to match memoized props before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - if (instance.state !== finishedWork.memoizedState) { - error("Expected %s state to match memoized state before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - } - } - if (finishedWork.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); - } finally { - recordLayoutEffectDuration(finishedWork); - } - } else { - instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); - } - } - } - } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + numColumns = _this$props.numColumns, + columnWrapperStyle = _this$props.columnWrapperStyle, + _removeClippedSubviews = _this$props.removeClippedSubviews, + _this$props$strictMod = _this$props.strictMode, + strictMode = _this$props$strictMod === void 0 ? false : _this$props$strictMod, + restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var renderer = strictMode ? this._memoizedRenderer : this._renderer; + return ( + /*#__PURE__*/ + // $FlowFixMe[incompatible-exact] - `restProps` (`Props`) is inexact. + (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "@react-native/virtualized-lists").VirtualizedList, Object.assign({}, restProps, { + getItem: this._getItem, + getItemCount: this._getItemCount, + keyExtractor: this._keyExtractor, + ref: this._captureRef, + viewabilityConfigCallbackPairs: this._virtualizedListPairs, + removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews) + }, renderer(this.props.ListItemComponent, this.props.renderItem, columnWrapperStyle, numColumns, this.props.extraData))) + ); + } + }]); + return FlatList; + }(React.PureComponent); + var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ + row: { + flexDirection: 'row' + } + }); + module.exports = FlatList; +},378,[3,149,12,13,52,49,51,53,379,41,380,20,89,225,259,282],"node_modules/react-native/Libraries/Lists/FlatList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; - var updateQueue = finishedWork.updateQueue; - if (updateQueue !== null) { - { - if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { - if (instance.props !== finishedWork.memoizedProps) { - error("Expected %s props to match memoized props before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - if (instance.state !== finishedWork.memoizedState) { - error("Expected %s state to match memoized state before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); - } - } - } + var safeIsNaN = Number.isNaN || function ponyfill(value) { + return typeof value === 'number' && value !== value; + }; + function isEqual(first, second) { + if (first === second) { + return true; + } + if (safeIsNaN(first) && safeIsNaN(second)) { + return true; + } + return false; + } + function areInputsEqual(newInputs, lastInputs) { + if (newInputs.length !== lastInputs.length) { + return false; + } + for (var i = 0; i < newInputs.length; i++) { + if (!isEqual(newInputs[i], lastInputs[i])) { + return false; + } + } + return true; + } + function memoizeOne(resultFn, isEqual) { + if (isEqual === void 0) { + isEqual = areInputsEqual; + } + var lastThis; + var lastArgs = []; + var lastResult; + var calledOnce = false; + function memoized() { + var newArgs = []; + for (var _i = 0; _i < arguments.length; _i++) { + newArgs[_i] = arguments[_i]; + } + if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) { + return lastResult; + } + lastResult = resultFn.apply(this, newArgs); + calledOnce = true; + lastThis = this; + lastArgs = newArgs; + return lastResult; + } + return memoized; + } + module.exports = memoizeOne; +},379,[],"node_modules/memoize-one/dist/memoize-one.cjs.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - commitUpdateQueue(finishedWork, updateQueue, instance); - } - break; - } - case HostRoot: - { - var _updateQueue = finishedWork.updateQueue; - if (_updateQueue !== null) { - var _instance = null; - if (finishedWork.child !== null) { - switch (finishedWork.child.tag) { - case HostComponent: - _instance = getPublicInstance(finishedWork.child.stateNode); - break; - case ClassComponent: - _instance = finishedWork.child.stateNode; - break; - } - } - commitUpdateQueue(finishedWork, _updateQueue, _instance); - } - break; - } - case HostComponent: - { - var _instance2 = finishedWork.stateNode; + 'use strict'; - if (current === null && finishedWork.flags & Update) { - var type = finishedWork.type; - var props = finishedWork.memoizedProps; - commitMount(); - } - break; - } - case HostText: - { - break; - } - case HostPortal: - { - break; - } - case Profiler: - { - { - var _finishedWork$memoize2 = finishedWork.memoizedProps, - onCommit = _finishedWork$memoize2.onCommit, - onRender = _finishedWork$memoize2.onRender; - var effectDuration = finishedWork.stateNode.effectDuration; - var commitTime = getCommitTime(); - var phase = current === null ? "mount" : "update"; - { - if (isCurrentUpdateNested()) { - phase = "nested-update"; - } - } - if (typeof onRender === "function") { - onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime); - } - { - if (typeof onCommit === "function") { - onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime); - } + module.exports = { + keyExtractor: _$$_REQUIRE(_dependencyMap[0], "./Lists/VirtualizeUtils").keyExtractor, + get VirtualizedList() { + return _$$_REQUIRE(_dependencyMap[1], "./Lists/VirtualizedList"); + }, + get VirtualizedSectionList() { + return _$$_REQUIRE(_dependencyMap[2], "./Lists/VirtualizedSectionList"); + }, + get VirtualizedListContextResetter() { + var VirtualizedListContext = _$$_REQUIRE(_dependencyMap[3], "./Lists/VirtualizedListContext"); + return VirtualizedListContext.VirtualizedListContextResetter; + }, + get ViewabilityHelper() { + return _$$_REQUIRE(_dependencyMap[4], "./Lists/ViewabilityHelper"); + }, + get FillRateHelper() { + return _$$_REQUIRE(_dependencyMap[5], "./Lists/FillRateHelper"); + } + }; +},380,[381,382,393,391,389,387],"node_modules/@react-native/virtualized-lists/index.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - enqueuePendingPassiveProfilerEffect(finishedWork); + 'use strict'; - var parentFiber = finishedWork.return; - outer: while (parentFiber !== null) { - switch (parentFiber.tag) { - case HostRoot: - var root = parentFiber.stateNode; - root.effectDuration += effectDuration; - break outer; - case Profiler: - var parentStateNode = parentFiber.stateNode; - parentStateNode.effectDuration += effectDuration; - break outer; - } - parentFiber = parentFiber.return; - } - } - } - break; - } - case SuspenseComponent: - { - break; - } - case SuspenseListComponent: - case IncompleteClassComponent: - case ScopeComponent: - case OffscreenComponent: - case LegacyHiddenComponent: - case TracingMarkerComponent: - { - break; - } - default: - throw new 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."); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.computeWindowedRenderLimits = computeWindowedRenderLimits; + exports.elementsThatOverlapOffsets = elementsThatOverlapOffsets; + exports.keyExtractor = keyExtractor; + exports.newRangeCount = newRangeCount; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + /** + * Used to find the indices of the frames that overlap the given offsets. Useful for finding the + * items that bound different windows of content, such as the visible area or the buffered overscan + * area. + */ + function elementsThatOverlapOffsets(offsets, props, getFrameMetrics) { + var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + var itemCount = props.getItemCount(props.data); + var result = []; + for (var offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) { + var currentOffset = offsets[offsetIndex]; + var left = 0; + var right = itemCount - 1; + while (left <= right) { + // eslint-disable-next-line no-bitwise + var mid = left + (right - left >>> 1); + var frame = getFrameMetrics(mid, props); + var scaledOffsetStart = frame.offset * zoomScale; + var scaledOffsetEnd = (frame.offset + frame.length) * zoomScale; + + // We want the first frame that contains the offset, with inclusive bounds. Thus, for the + // first frame the scaledOffsetStart is inclusive, while for other frames it is exclusive. + if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) { + right = mid - 1; + } else if (currentOffset > scaledOffsetEnd) { + left = mid + 1; + } else { + result[offsetIndex] = mid; + break; } - { - { - if (finishedWork.flags & Ref) { - commitAttachRef(finishedWork); - } - } + } + } + return result; + } + + /** + * Computes the number of elements in the `next` range that are new compared to the `prev` range. + * Handy for calculating how many new items will be rendered when the render window changes so we + * can restrict the number of new items render at once so that content can appear on the screen + * faster. + */ + function newRangeCount(prev, next) { + return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first)); + } + + /** + * Custom logic for determining which items should be rendered given the current frame and scroll + * metrics, as well as the previous render state. The algorithm may evolve over time, but generally + * prioritizes the visible area first, then expands that with overscan regions ahead and behind, + * biased in the direction of scroll. + */ + function computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) { + var itemCount = props.getItemCount(props.data); + if (itemCount === 0) { + return { + first: 0, + last: -1 + }; + } + var offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength, + _scrollMetrics$zoomSc = scrollMetrics.zoomScale, + zoomScale = _scrollMetrics$zoomSc === void 0 ? 1 : _scrollMetrics$zoomSc; + + // Start with visible area, then compute maximum overscan region by expanding from there, biased + // in the direction of scroll. Total overscan area is capped, which should cap memory consumption + // too. + var visibleBegin = Math.max(0, offset); + var visibleEnd = visibleBegin + visibleLength; + var overscanLength = (windowSize - 1) * visibleLength; + + // Considering velocity seems to introduce more churn than it's worth. + var leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5)); + + var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none'; + var overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength); + var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength); + var lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale; + if (lastItemOffset < overscanBegin) { + // Entire list is before our overscan window + return { + first: Math.max(0, itemCount - 1 - maxToRenderPerBatch), + last: itemCount - 1 + }; + } + + // Find the indices that correspond to the items at the render boundaries we're targeting. + var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], props, getFrameMetricsApprox, zoomScale), + _elementsThatOverlapO2 = (0, _slicedToArray2.default)(_elementsThatOverlapO, 4), + overscanFirst = _elementsThatOverlapO2[0], + first = _elementsThatOverlapO2[1], + last = _elementsThatOverlapO2[2], + overscanLast = _elementsThatOverlapO2[3]; + overscanFirst = overscanFirst == null ? 0 : overscanFirst; + first = first == null ? Math.max(0, overscanFirst) : first; + overscanLast = overscanLast == null ? itemCount - 1 : overscanLast; + last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last; + var visible = { + first: first, + last: last + }; + + // We want to limit the number of new cells we're rendering per batch so that we can fill the + // content on the screen quickly. If we rendered the entire overscan window at once, the user + // could be staring at white space for a long time waiting for a bunch of offscreen content to + // render. + var newCellCount = newRangeCount(prev, visible); + while (true) { + if (first <= overscanFirst && last >= overscanLast) { + // If we fill the entire overscan range, we're done. + break; + } + var maxNewCells = newCellCount >= maxToRenderPerBatch; + var firstWillAddMore = first <= prev.first || first > prev.last; + var firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore); + var lastWillAddMore = last >= prev.last || last < prev.first; + var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore); + if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) { + // We only want to stop if we've hit maxNewCells AND we cannot increment first or last + // without rendering new items. This let's us preserve as many already rendered items as + // possible, reducing render churn and keeping the rendered overscan range as large as + // possible. + break; + } + if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) { + if (firstWillAddMore) { + newCellCount++; } + first--; } - function commitAttachRef(finishedWork) { - var ref = finishedWork.ref; - if (ref !== null) { - var instance = finishedWork.stateNode; - var instanceToUse; - switch (finishedWork.tag) { - case HostComponent: - instanceToUse = getPublicInstance(instance); - break; - default: - instanceToUse = instance; - } + if (lastShouldIncrement && !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)) { + if (lastWillAddMore) { + newCellCount++; + } + last++; + } + } + if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) { + throw new Error('Bad window calculation ' + JSON.stringify({ + first: first, + last: last, + itemCount: itemCount, + overscanFirst: overscanFirst, + overscanLast: overscanLast, + visible: visible + })); + } + return { + first: first, + last: last + }; + } + function keyExtractor(item, index) { + if (typeof item === 'object' && (item == null ? void 0 : item.key) != null) { + return item.key; + } + if (typeof item === 'object' && (item == null ? void 0 : item.id) != null) { + return item.id; + } + return String(index); + } +},381,[3,22],"node_modules/@react-native/virtualized-lists/Lists/VirtualizeUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/defineProperty")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); + var _reactNative = _$$_REQUIRE(_dependencyMap[9], "react-native"); + var _Batchinator = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../Interaction/Batchinator")); + var _clamp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../Utilities/clamp")); + var _infoLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../Utilities/infoLog")); + var _ChildListCollection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./ChildListCollection")); + var _FillRateHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "./FillRateHelper")); + var _StateSafePureComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "./StateSafePureComponent")); + var _ViewabilityHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "./ViewabilityHelper")); + var _VirtualizedListCellRenderer = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "./VirtualizedListCellRenderer")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "invariant")); + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "nullthrows")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[20], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/@react-native/virtualized-lists/Lists/VirtualizedList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var ON_EDGE_REACHED_EPSILON = 0.001; + var _usedIndexForKey = false; + var _keylessItemComponentName = ''; + /** + * Default Props Helper Functions + * Use the following helper functions for default values + */ // horizontalOrDefault(this.props.horizontal) + function horizontalOrDefault(horizontal) { + return horizontal != null ? horizontal : false; + } - if (typeof ref === "function") { - var retVal; - if (finishedWork.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - retVal = ref(instanceToUse); - } finally { - recordLayoutEffectDuration(finishedWork); - } + // initialNumToRenderOrDefault(this.props.initialNumToRender) + function initialNumToRenderOrDefault(initialNumToRender) { + return initialNumToRender != null ? initialNumToRender : 10; + } + + // maxToRenderPerBatchOrDefault(this.props.maxToRenderPerBatch) + function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) { + return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10; + } + + // onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold) + function onStartReachedThresholdOrDefault(onStartReachedThreshold) { + return onStartReachedThreshold != null ? onStartReachedThreshold : 2; + } + + // onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold) + function onEndReachedThresholdOrDefault(onEndReachedThreshold) { + return onEndReachedThreshold != null ? onEndReachedThreshold : 2; + } + + // getScrollingThreshold(visibleLength, onEndReachedThreshold) + function getScrollingThreshold(threshold, visibleLength) { + return threshold * visibleLength / 2; + } + + // scrollEventThrottleOrDefault(this.props.scrollEventThrottle) + function scrollEventThrottleOrDefault(scrollEventThrottle) { + return scrollEventThrottle != null ? scrollEventThrottle : 50; + } + + // windowSizeOrDefault(this.props.windowSize) + function windowSizeOrDefault(windowSize) { + return windowSize != null ? windowSize : 21; + } + function findLastWhere(arr, predicate) { + for (var i = arr.length - 1; i >= 0; i--) { + if (predicate(arr[i])) { + return arr[i]; + } + } + return null; + } + + /** + * Base implementation for the more convenient [``](https://reactnative.dev/docs/flatlist) + * and [``](https://reactnative.dev/docs/sectionlist) components, which are also better + * documented. In general, this should only really be used if you need more flexibility than + * `FlatList` provides, e.g. for use with immutable data instead of plain arrays. + * + * Virtualization massively improves memory consumption and performance of large lists by + * maintaining a finite render window of active items and replacing all items outside of the render + * window with appropriately sized blank space. The window adapts to scrolling behavior, and items + * are rendered incrementally with low-pri (after any running interactions) if they are far from the + * visible area, or with hi-pri otherwise to minimize the potential of seeing blank space. + * + * Some caveats: + * + * - Internal state is not preserved when content scrolls out of the render window. Make sure all + * your data is captured in the item data or external stores like Flux, Redux, or Relay. + * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow- + * equal. Make sure that everything your `renderItem` function depends on is passed as a prop + * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on + * changes. This includes the `data` prop and parent component state. + * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously + * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see + * blank content. This is a tradeoff that can be adjusted to suit the needs of each application, + * and we are working on improving it behind the scenes. + * - By default, the list looks for a `key` or `id` prop on each item and uses that for the React key. + * Alternatively, you can provide a custom `keyExtractor` prop. + * - As an effort to remove defaultProps, use helper functions when referencing certain props + * + */ + var VirtualizedList = /*#__PURE__*/function (_StateSafePureCompone) { + (0, _inherits2.default)(VirtualizedList, _StateSafePureCompone); + var _super = _createSuper(VirtualizedList); + function VirtualizedList(_props) { + var _this$props$updateCel, _this$props$maintainV, _this$props$maintainV2; + var _this; + (0, _classCallCheck2.default)(this, VirtualizedList); + _this = _super.call(this, _props); + // $FlowFixMe[missing-local-annot] + _this._getScrollMetrics = function () { + return _this._scrollMetrics; + }; + // $FlowFixMe[missing-local-annot] + _this._getOutermostParentListRef = function () { + if (_this._isNestedWithSameOrientation()) { + return _this.context.getOutermostParentListRef(); + } else { + return (0, _assertThisInitialized2.default)(_this); + } + }; + _this._registerAsNestedChild = function (childList) { + _this._nestedChildLists.add(childList.ref, childList.cellKey); + if (_this._hasInteracted) { + childList.ref.recordInteraction(); + } + }; + _this._unregisterAsNestedChild = function (childList) { + _this._nestedChildLists.remove(childList.ref); + }; + _this._onUpdateSeparators = function (keys, newProps) { + keys.forEach(function (key) { + var ref = key != null && _this._cellRefs[key]; + ref && ref.updateSeparatorProps(newProps); + }); + }; + _this._getSpacerKey = function (isVertical) { + return isVertical ? 'height' : 'width'; + }; + _this._averageCellLength = 0; + _this._cellRefs = {}; + _this._frames = {}; + _this._footerLength = 0; + // Used for preventing scrollToIndex from being called multiple times for initialScrollIndex + _this._hasTriggeredInitialScrollToIndex = false; + _this._hasInteracted = false; + _this._hasMore = false; + _this._hasWarned = {}; + _this._headerLength = 0; + _this._hiPriInProgress = false; + // flag to prevent infinite hiPri cell limit update + _this._highestMeasuredFrameIndex = 0; + _this._indicesToKeys = new Map(); + _this._lastFocusedCellKey = null; + _this._nestedChildLists = new _ChildListCollection.default(); + _this._offsetFromParentVirtualizedList = 0; + _this._prevParentOffset = 0; + // $FlowFixMe[missing-local-annot] + _this._scrollMetrics = { + contentLength: 0, + dOffset: 0, + dt: 10, + offset: 0, + timestamp: 0, + velocity: 0, + visibleLength: 0, + zoomScale: 1 + }; + _this._scrollRef = null; + _this._sentStartForContentLength = 0; + _this._sentEndForContentLength = 0; + _this._totalCellLength = 0; + _this._totalCellsMeasured = 0; + _this._viewabilityTuples = []; + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + _this._captureScrollRef = function (ref) { + _this._scrollRef = ref; + }; + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + _this._defaultRenderScrollComponent = function (props) { + var onRefresh = props.onRefresh; + if (_this._isNestedWithSameOrientation()) { + // $FlowFixMe[prop-missing] - Typing ReactNativeComponent revealed errors + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, Object.assign({}, props)); + } else if (onRefresh) { + var _props$refreshing; + (0, _invariant.default)(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify((_props$refreshing = props.refreshing) != null ? _props$refreshing : 'undefined') + '`'); + return ( + /*#__PURE__*/ + // $FlowFixMe[prop-missing] Invalid prop usage + // $FlowFixMe[incompatible-use] + (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.ScrollView, Object.assign({}, props, { + refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.RefreshControl + // $FlowFixMe[incompatible-type] + , { + refreshing: props.refreshing, + onRefresh: onRefresh, + progressViewOffset: props.progressViewOffset + }) : props.refreshControl + })) + ); + } else { + // $FlowFixMe[prop-missing] Invalid prop usage + // $FlowFixMe[incompatible-use] + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.ScrollView, Object.assign({}, props)); + } + }; + _this._onCellLayout = function (e, cellKey, index) { + var layout = e.nativeEvent.layout; + var next = { + offset: _this._selectOffset(layout), + length: _this._selectLength(layout), + index: index, + inLayout: true + }; + var curr = _this._frames[cellKey]; + if (!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index) { + _this._totalCellLength += next.length - (curr ? curr.length : 0); + _this._totalCellsMeasured += curr ? 0 : 1; + _this._averageCellLength = _this._totalCellLength / _this._totalCellsMeasured; + _this._frames[cellKey] = next; + _this._highestMeasuredFrameIndex = Math.max(_this._highestMeasuredFrameIndex, index); + _this._scheduleCellsToRenderUpdate(); + } else { + _this._frames[cellKey].inLayout = true; + } + _this._triggerRemeasureForChildListsInCell(cellKey); + _this._computeBlankness(); + _this._updateViewableItems(_this.props, _this.state.cellsAroundViewport); + }; + _this._onCellUnmount = function (cellKey) { + delete _this._cellRefs[cellKey]; + var curr = _this._frames[cellKey]; + if (curr) { + _this._frames[cellKey] = Object.assign({}, curr, { + inLayout: false + }); + } + }; + _this._onLayout = function (e) { + if (_this._isNestedWithSameOrientation()) { + // Need to adjust our scroll metrics to be relative to our containing + // VirtualizedList before we can make claims about list item viewability + _this.measureLayoutRelativeToContainingList(); + } else { + _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout); + } + _this.props.onLayout && _this.props.onLayout(e); + _this._scheduleCellsToRenderUpdate(); + _this._maybeCallOnEdgeReached(); + }; + _this._onLayoutEmpty = function (e) { + _this.props.onLayout && _this.props.onLayout(e); + }; + _this._onLayoutFooter = function (e) { + _this._triggerRemeasureForChildListsInCell(_this._getFooterCellKey()); + _this._footerLength = _this._selectLength(e.nativeEvent.layout); + }; + _this._onLayoutHeader = function (e) { + _this._headerLength = _this._selectLength(e.nativeEvent.layout); + }; + _this._onContentSizeChange = function (width, height) { + if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasTriggeredInitialScrollToIndex) { + if (_this.props.contentOffset == null) { + if (_this.props.initialScrollIndex < _this.props.getItemCount(_this.props.data)) { + _this.scrollToIndex({ + animated: false, + index: (0, _nullthrows.default)(_this.props.initialScrollIndex) + }); } else { - retVal = ref(instanceToUse); - } - { - if (typeof retVal === "function") { - error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(finishedWork)); - } - } - } else { - { - if (!ref.hasOwnProperty("current")) { - error("Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)); - } + _this.scrollToEnd({ + animated: false + }); } - ref.current = instanceToUse; } + _this._hasTriggeredInitialScrollToIndex = true; } - } - function detachFiberMutation(fiber) { - var alternate = fiber.alternate; - if (alternate !== null) { - alternate.return = null; + if (_this.props.onContentSizeChange) { + _this.props.onContentSizeChange(width, height); } - fiber.return = null; - } - function detachFiberAfterEffects(fiber) { - var alternate = fiber.alternate; - if (alternate !== null) { - fiber.alternate = null; - detachFiberAfterEffects(alternate); + _this._scrollMetrics.contentLength = _this._selectLength({ + height: height, + width: width + }); + _this._scheduleCellsToRenderUpdate(); + _this._maybeCallOnEdgeReached(); + }; + /* Translates metrics from a scroll event in a parent VirtualizedList into + * coordinates relative to the child list. + */ + _this._convertParentScrollMetrics = function (metrics) { + // Offset of the top of the nested list relative to the top of its parent's viewport + var offset = metrics.offset - _this._offsetFromParentVirtualizedList; + // Child's visible length is the same as its parent's + var visibleLength = metrics.visibleLength; + var dOffset = offset - _this._scrollMetrics.offset; + var contentLength = _this._scrollMetrics.contentLength; + return { + visibleLength: visibleLength, + contentLength: contentLength, + offset: offset, + dOffset: dOffset + }; + }; + _this._onScroll = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList._onScroll(e); + }); + if (_this.props.onScroll) { + _this.props.onScroll(e); } - - { - fiber.child = null; - fiber.deletions = null; - fiber.sibling = null; - - if (fiber.tag === HostComponent) { - var hostInstance = fiber.stateNode; + var timestamp = e.timeStamp; + var visibleLength = _this._selectLength(e.nativeEvent.layoutMeasurement); + var contentLength = _this._selectLength(e.nativeEvent.contentSize); + var offset = _this._selectOffset(e.nativeEvent.contentOffset); + var dOffset = offset - _this._scrollMetrics.offset; + if (_this._isNestedWithSameOrientation()) { + if (_this._scrollMetrics.contentLength === 0) { + // Ignore scroll events until onLayout has been called and we + // know our offset from our offset from our parent + return; } - fiber.stateNode = null; + var _this$_convertParentS = _this._convertParentScrollMetrics({ + visibleLength: visibleLength, + offset: offset + }); + visibleLength = _this$_convertParentS.visibleLength; + contentLength = _this$_convertParentS.contentLength; + offset = _this$_convertParentS.offset; + dOffset = _this$_convertParentS.dOffset; + } + var dt = _this._scrollMetrics.timestamp ? Math.max(1, timestamp - _this._scrollMetrics.timestamp) : 1; + var velocity = dOffset / dt; + if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) { + (0, _infoLog.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: dt, + prevDt: _this._scrollMetrics.dt, + contentLength: contentLength + }); + _this._hasWarned.perf = true; + } - { - fiber._debugOwner = null; + // For invalid negative values (w/ RTL), set this to 1. + var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale; + _this._scrollMetrics = { + contentLength: contentLength, + dt: dt, + dOffset: dOffset, + offset: offset, + timestamp: timestamp, + velocity: velocity, + visibleLength: visibleLength, + zoomScale: zoomScale + }; + if (_this.state.pendingScrollUpdateCount > 0) { + _this.setState(function (state) { + return { + pendingScrollUpdateCount: state.pendingScrollUpdateCount - 1 + }; + }); + } + _this._updateViewableItems(_this.props, _this.state.cellsAroundViewport); + if (!_this.props) { + return; + } + _this._maybeCallOnEdgeReached(); + if (velocity !== 0) { + _this._fillRateHelper.activate(); + } + _this._computeBlankness(); + _this._scheduleCellsToRenderUpdate(); + }; + _this._onScrollBeginDrag = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList._onScrollBeginDrag(e); + }); + _this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.recordInteraction(); + }); + _this._hasInteracted = true; + _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); + }; + _this._onScrollEndDrag = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList._onScrollEndDrag(e); + }); + var velocity = e.nativeEvent.velocity; + if (velocity) { + _this._scrollMetrics.velocity = _this._selectOffset(velocity); + } + _this._computeBlankness(); + _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); + }; + _this._onMomentumScrollBegin = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList._onMomentumScrollBegin(e); + }); + _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); + }; + _this._onMomentumScrollEnd = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList._onMomentumScrollEnd(e); + }); + _this._scrollMetrics.velocity = 0; + _this._computeBlankness(); + _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); + }; + _this._updateCellsToRender = function () { + _this._updateViewableItems(_this.props, _this.state.cellsAroundViewport); + _this.setState(function (state, props) { + var cellsAroundViewport = _this._adjustCellsAroundViewport(props, state.cellsAroundViewport, state.pendingScrollUpdateCount); + var renderMask = VirtualizedList._createRenderMask(props, cellsAroundViewport, _this._getNonViewportRenderRegions(props)); + if (cellsAroundViewport.first === state.cellsAroundViewport.first && cellsAroundViewport.last === state.cellsAroundViewport.last && renderMask.equals(state.renderMask)) { + return null; } - { - fiber.return = null; - fiber.dependencies = null; - fiber.memoizedProps = null; - fiber.memoizedState = null; - fiber.pendingProps = null; - fiber.stateNode = null; - - fiber.updateQueue = null; + return { + cellsAroundViewport: cellsAroundViewport, + renderMask: renderMask + }; + }); + }; + _this._createViewToken = function (index, isViewable, props + // $FlowFixMe[missing-local-annot] + ) { + var data = props.data, + getItem = props.getItem; + var item = getItem(data, index); + return { + index: index, + item: item, + key: VirtualizedList._keyExtractor(item, index, props), + isViewable: isViewable + }; + }; + /** + * Gets an approximate offset to an item at a given index. Supports + * fractional indices. + */ + _this._getOffsetApprox = function (index, props) { + if (Number.isInteger(index)) { + return _this.__getFrameMetricsApprox(index, props).offset; + } else { + var frameMetrics = _this.__getFrameMetricsApprox(Math.floor(index), props); + var remainder = index - Math.floor(index); + return frameMetrics.offset + remainder * frameMetrics.length; + } + }; + _this.__getFrameMetricsApprox = function (index, props) { + var frame = _this._getFrameMetrics(index, props); + if (frame && frame.index === index) { + // check for invalid frames due to row re-ordering + return frame; + } else { + var data = props.data, + getItemCount = props.getItemCount, + getItemLayout = props.getItemLayout; + (0, _invariant.default)(index >= 0 && index < getItemCount(data), 'Tried to get frame for out of range index ' + index); + (0, _invariant.default)(!getItemLayout, 'Should not have to estimate frames when a measurement metrics function is provided'); + return { + length: _this._averageCellLength, + offset: _this._averageCellLength * index + }; + } + }; + _this._getFrameMetrics = function (index, props) { + var data = props.data, + getItemCount = props.getItemCount, + getItemLayout = props.getItemLayout; + (0, _invariant.default)(index >= 0 && index < getItemCount(data), 'Tried to get frame for out of range index ' + index); + var frame = _this._frames[VirtualizedList._getItemKey(props, index)]; + if (!frame || frame.index !== index) { + if (getItemLayout) { + /* $FlowFixMe[prop-missing] (>=0.63.0 site=react_native_fb) This comment + * suppresses an error found when Flow v0.63 was deployed. To see the error + * delete this comment and run Flow. */ + return getItemLayout(data, index); } } + return frame; + }; + _this._getNonViewportRenderRegions = function (props) { + // Keep a viewport's worth of content around the last focused cell to allow + // random navigation around it without any blanking. E.g. tabbing from one + // focused item out of viewport to another. + if (!(_this._lastFocusedCellKey && _this._cellRefs[_this._lastFocusedCellKey])) { + return []; + } + var lastFocusedCellRenderer = _this._cellRefs[_this._lastFocusedCellKey]; + var focusedCellIndex = lastFocusedCellRenderer.props.index; + var itemCount = props.getItemCount(props.data); + + // The last cell we rendered may be at a new index. Bail if we don't know + // where it is. + if (focusedCellIndex >= itemCount || VirtualizedList._getItemKey(props, focusedCellIndex) !== _this._lastFocusedCellKey) { + return []; + } + var first = focusedCellIndex; + var heightOfCellsBeforeFocused = 0; + for (var i = first - 1; i >= 0 && heightOfCellsBeforeFocused < _this._scrollMetrics.visibleLength; i--) { + first--; + heightOfCellsBeforeFocused += _this.__getFrameMetricsApprox(i, props).length; + } + var last = focusedCellIndex; + var heightOfCellsAfterFocused = 0; + for (var _i = last + 1; _i < itemCount && heightOfCellsAfterFocused < _this._scrollMetrics.visibleLength; _i++) { + last++; + heightOfCellsAfterFocused += _this.__getFrameMetricsApprox(_i, props).length; + } + return [{ + first: first, + last: last + }]; + }; + _this._checkProps(_props); + _this._fillRateHelper = new _FillRateHelper.default(_this._getFrameMetrics); + _this._updateCellsToRenderBatcher = new _Batchinator.default(_this._updateCellsToRender, (_this$props$updateCel = _this.props.updateCellsBatchingPeriod) != null ? _this$props$updateCel : 50); + if (_this.props.viewabilityConfigCallbackPairs) { + _this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityHelper: new _ViewabilityHelper.default(pair.viewabilityConfig), + onViewableItemsChanged: pair.onViewableItemsChanged + }; + }); + } else { + var _this$props = _this.props, + onViewableItemsChanged = _this$props.onViewableItemsChanged, + viewabilityConfig = _this$props.viewabilityConfig; + if (onViewableItemsChanged) { + _this._viewabilityTuples.push({ + viewabilityHelper: new _ViewabilityHelper.default(viewabilityConfig), + onViewableItemsChanged: onViewableItemsChanged + }); + } } - function emptyPortalContainer(current) { - var portal = current.stateNode; - var containerInfo = portal.containerInfo; - var emptyChildSet = createContainerChildSet(containerInfo); - } - function commitPlacement(finishedWork) { - { + var initialRenderRegion = VirtualizedList._initialRenderRegion(_props); + var minIndexForVisible = (_this$props$maintainV = (_this$props$maintainV2 = _this.props.maintainVisibleContentPosition) == null ? void 0 : _this$props$maintainV2.minIndexForVisible) != null ? _this$props$maintainV : 0; + _this.state = { + cellsAroundViewport: initialRenderRegion, + renderMask: VirtualizedList._createRenderMask(_props, initialRenderRegion), + firstVisibleItemKey: _this.props.getItemCount(_this.props.data) > minIndexForVisible ? VirtualizedList._getItemKey(_this.props, minIndexForVisible) : null, + // When we have a non-zero initialScrollIndex, we will receive a + // scroll event later so this will prevent the window from updating + // until we get a valid offset. + pendingScrollUpdateCount: _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 ? 1 : 0 + }; + return _this; + } + (0, _createClass2.default)(VirtualizedList, [{ + key: "scrollToEnd", + value: + // scrollToEnd may be janky without getItemLayout prop + function scrollToEnd(params) { + var animated = params ? params.animated : true; + var veryLast = this.props.getItemCount(this.props.data) - 1; + if (veryLast < 0) { + return; + } + var frame = this.__getFrameMetricsApprox(veryLast, this.props); + var offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength); + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); return; } + this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); } - function commitDeletionEffects(root, returnFiber, deletedFiber) { - { - commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); + // scrollToIndex may be janky without getItemLayout prop + }, { + key: "scrollToIndex", + value: function scrollToIndex(params) { + var _this$props2 = this.props, + data = _this$props2.data, + horizontal = _this$props2.horizontal, + getItemCount = _this$props2.getItemCount, + getItemLayout = _this$props2.getItemLayout, + onScrollToIndexFailed = _this$props2.onScrollToIndexFailed; + var animated = params.animated, + index = params.index, + viewOffset = params.viewOffset, + viewPosition = params.viewPosition; + (0, _invariant.default)(index >= 0, `scrollToIndex out of range: requested index ${index} but minimum is 0`); + (0, _invariant.default)(getItemCount(data) >= 1, `scrollToIndex out of range: item length ${getItemCount(data)} but minimum is 1`); + (0, _invariant.default)(index < getItemCount(data), `scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`); + if (!getItemLayout && index > this._highestMeasuredFrameIndex) { + (0, _invariant.default)(!!onScrollToIndexFailed, '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.'); + onScrollToIndexFailed({ + averageItemLength: this._averageCellLength, + highestMeasuredFrameIndex: this._highestMeasuredFrameIndex, + index: index + }); + return; } - detachFiberMutation(deletedFiber); - } - function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { - var child = parent.child; - while (child !== null) { - commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); - child = child.sibling; + var frame = this.__getFrameMetricsApprox(Math.floor(index), this.props); + var offset = Math.max(0, this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0); + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); + return; } + this._scrollRef.scrollTo(horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); } - function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { - onCommitUnmount(deletedFiber); - switch (deletedFiber.tag) { - case HostComponent: - { - { - safelyDetachRef(deletedFiber, nearestMountedAncestor); - } - } + // scrollToItem may be janky without getItemLayout prop. Required linear scan through items - + // use scrollToIndex instead if possible. + }, { + key: "scrollToItem", + value: function scrollToItem(params) { + var item = params.item; + var _this$props3 = this.props, + data = _this$props3.data, + getItem = _this$props3.getItem, + getItemCount = _this$props3.getItemCount; + var itemCount = getItemCount(data); + for (var _index = 0; _index < itemCount; _index++) { + if (getItem(data, _index) === item) { + this.scrollToIndex(Object.assign({}, params, { + index: _index + })); + break; + } + } + } - case HostText: - { - { - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - } - return; - } - case DehydratedFragment: - { - return; - } - case HostPortal: - { - { - emptyPortalContainer(deletedFiber); - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - } - return; - } - case FunctionComponent: - case ForwardRef: - case MemoComponent: - case SimpleMemoComponent: - { - { - var updateQueue = deletedFiber.updateQueue; - if (updateQueue !== null) { - var lastEffect = updateQueue.lastEffect; - if (lastEffect !== null) { - var firstEffect = lastEffect.next; - var effect = firstEffect; - do { - var _effect = effect, - destroy = _effect.destroy, - tag = _effect.tag; - if (destroy !== undefined) { - if ((tag & Insertion) !== NoFlags$1) { - safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); - } else if ((tag & Layout) !== NoFlags$1) { - if (deletedFiber.mode & ProfileMode) { - startLayoutEffectTimer(); - safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); - recordLayoutEffectDuration(deletedFiber); - } else { - safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); - } - } - } - effect = effect.next; - } while (effect !== firstEffect); - } - } - } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - return; - } - case ClassComponent: - { - { - safelyDetachRef(deletedFiber, nearestMountedAncestor); - var instance = deletedFiber.stateNode; - if (typeof instance.componentWillUnmount === "function") { - safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance); - } - } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - return; - } - case ScopeComponent: - { - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - return; - } - case OffscreenComponent: - { - { - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - } - break; - } - default: - { - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - return; - } + /** + * Scroll to a specific content pixel offset in the list. + * + * Param `offset` expects the offset to scroll to. + * In case of `horizontal` is true, the offset is the x-value, + * in any other case the offset is the y-value. + * + * Param `animated` (`true` by default) defines whether the list + * should do an animation while scrolling. + */ + }, { + key: "scrollToOffset", + value: function scrollToOffset(params) { + var animated = params.animated, + offset = params.offset; + if (this._scrollRef == null) { + return; + } + if (this._scrollRef.scrollTo == null) { + console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); + return; } + this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); } - function commitSuspenseCallback(finishedWork) { - var newState = finishedWork.memoizedState; + }, { + key: "recordInteraction", + value: function recordInteraction() { + this._nestedChildLists.forEach(function (childList) { + childList.recordInteraction(); + }); + this._viewabilityTuples.forEach(function (t) { + t.viewabilityHelper.recordInteraction(); + }); + this._updateViewableItems(this.props, this.state.cellsAroundViewport); } - function attachSuspenseRetryListeners(finishedWork) { - var wakeables = finishedWork.updateQueue; - if (wakeables !== null) { - finishedWork.updateQueue = null; - var retryCache = finishedWork.stateNode; - if (retryCache === null) { - retryCache = finishedWork.stateNode = new PossiblyWeakSet(); - } - wakeables.forEach(function (wakeable) { - var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); - if (!retryCache.has(wakeable)) { - retryCache.add(wakeable); - { - if (isDevToolsPresent) { - if (inProgressLanes !== null && inProgressRoot !== null) { - restorePendingUpdaters(inProgressRoot, inProgressLanes); - } else { - throw Error("Expected finished root and lanes to be set. This is a bug in React."); - } - } - } - wakeable.then(retry, retry); - } - }); + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + if (this._scrollRef == null) { + return; } + this._scrollRef.flashScrollIndicators(); } - function commitMutationEffects(root, finishedWork, committedLanes) { - inProgressLanes = committedLanes; - inProgressRoot = root; - setCurrentFiber(finishedWork); - commitMutationEffectsOnFiber(finishedWork, root); - setCurrentFiber(finishedWork); - inProgressLanes = null; - inProgressRoot = null; + + /** + * Provides a handle to the underlying scroll responder. + * Note that `this._scrollRef` might not be a `ScrollView`, so we + * need to check that it responds to `getScrollResponder` before calling it. + */ + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + if (this._scrollRef && this._scrollRef.getScrollResponder) { + return this._scrollRef.getScrollResponder(); + } } - function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { - var deletions = parentFiber.deletions; - if (deletions !== null) { - for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - try { - commitDeletionEffects(root, parentFiber, childToDelete); - } catch (error) { - captureCommitPhaseError(childToDelete, parentFiber, error); - } - } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._scrollRef && this._scrollRef.getScrollableNode) { + return this._scrollRef.getScrollableNode(); + } else { + return (0, _reactNative.findNodeHandle)(this._scrollRef); } - var prevDebugFiber = getCurrentFiber(); - if (parentFiber.subtreeFlags & MutationMask) { - var child = parentFiber.child; - while (child !== null) { - setCurrentFiber(child); - commitMutationEffectsOnFiber(child, root); - child = child.sibling; - } + } + }, { + key: "getScrollRef", + value: function getScrollRef() { + if (this._scrollRef && this._scrollRef.getScrollRef) { + return this._scrollRef.getScrollRef(); + } else { + return this._scrollRef; } - setCurrentFiber(prevDebugFiber); } - function commitMutationEffectsOnFiber(finishedWork, root, lanes) { - var current = finishedWork.alternate; - var flags = finishedWork.flags; - - switch (finishedWork.tag) { - case FunctionComponent: - case ForwardRef: - case MemoComponent: - case SimpleMemoComponent: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Update) { - try { - commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return); - commitHookEffectListMount(Insertion | HasEffect, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - - if (finishedWork.mode & ProfileMode) { - try { - startLayoutEffectTimer(); - commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - recordLayoutEffectDuration(finishedWork); - } else { - try { - commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } - return; - } - case ClassComponent: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Ref) { - if (current !== null) { - safelyDetachRef(current, current.return); - } - } - return; - } - case HostComponent: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Ref) { - if (current !== null) { - safelyDetachRef(current, current.return); - } - } - return; - } - case HostText: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - return; - } - case HostRoot: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Update) { - { - var containerInfo = root.containerInfo; - var pendingChildren = root.pendingChildren; - try { - replaceContainerChildren(containerInfo, pendingChildren); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } - return; - } - case HostPortal: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Update) { - { - var portal = finishedWork.stateNode; - var _containerInfo = portal.containerInfo; - var _pendingChildren = portal.pendingChildren; - try { - replaceContainerChildren(_containerInfo, _pendingChildren); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - } - return; - } - case SuspenseComponent: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - var offscreenFiber = finishedWork.child; - if (offscreenFiber.flags & Visibility) { - var newState = offscreenFiber.memoizedState; - var isHidden = newState !== null; - if (isHidden) { - var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; - if (!wasHidden) { - markCommitTimeOfFallback(); - } - } - } - if (flags & Update) { - try { - commitSuspenseCallback(finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - attachSuspenseRetryListeners(finishedWork); - } - return; - } - case OffscreenComponent: - { - var _wasHidden = current !== null && current.memoizedState !== null; - { - recursivelyTraverseMutationEffects(root, finishedWork); - } - commitReconciliationEffects(finishedWork); - if (flags & Visibility) { - var _newState = finishedWork.memoizedState; - } - return; - } - case SuspenseListComponent: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & Update) { - attachSuspenseRetryListeners(finishedWork); - } - return; - } - case ScopeComponent: - { - return; - } - default: - { - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - return; - } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._scrollRef) { + this._scrollRef.setNativeProps(props); } } - function commitReconciliationEffects(finishedWork) { - var flags = finishedWork.flags; - if (flags & Placement) { - try { - commitPlacement(finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); + }, { + key: "_getCellKey", + value: function _getCellKey() { + var _this$context; + return ((_this$context = this.context) == null ? void 0 : _this$context.cellKey) || 'rootList'; + } + }, { + key: "hasMore", + value: function hasMore() { + return this._hasMore; + } + }, { + key: "_checkProps", + value: function _checkProps(props) { + var onScroll = props.onScroll, + windowSize = props.windowSize, + getItemCount = props.getItemCount, + data = props.data, + initialScrollIndex = props.initialScrollIndex; + (0, _invariant.default)( + // $FlowFixMe[prop-missing] + !onScroll || !onScroll.__isNative, 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' + 'to support native onScroll events with useNativeDriver'); + (0, _invariant.default)(windowSizeOrDefault(windowSize) > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'); + (0, _invariant.default)(getItemCount, 'VirtualizedList: The "getItemCount" prop must be provided'); + var itemCount = getItemCount(data); + if (initialScrollIndex != null && !this._hasTriggeredInitialScrollToIndex && (initialScrollIndex < 0 || itemCount > 0 && initialScrollIndex >= itemCount) && !this._hasWarned.initialScrollIndex) { + console.warn(`initialScrollIndex "${initialScrollIndex}" is not valid (list has ${itemCount} items)`); + this._hasWarned.initialScrollIndex = true; + } + if (__DEV__ && !this._hasWarned.flexWrap) { + // $FlowFixMe[underconstrained-implicit-instantiation] + var flatStyles = _reactNative.StyleSheet.flatten(this.props.contentContainerStyle); + if (flatStyles != null && flatStyles.flexWrap === 'wrap') { + console.warn('`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' + 'Consider using `numColumns` with `FlatList` instead.'); + this._hasWarned.flexWrap = true; } + } + } + }, { + key: "_adjustCellsAroundViewport", + value: function _adjustCellsAroundViewport(props, cellsAroundViewport, pendingScrollUpdateCount) { + var data = props.data, + getItemCount = props.getItemCount; + var onEndReachedThreshold = onEndReachedThresholdOrDefault(props.onEndReachedThreshold); + var _this$_scrollMetrics = this._scrollMetrics, + contentLength = _this$_scrollMetrics.contentLength, + offset = _this$_scrollMetrics.offset, + visibleLength = _this$_scrollMetrics.visibleLength; + var distanceFromEnd = contentLength - visibleLength - offset; - finishedWork.flags &= ~Placement; + // Wait until the scroll view metrics have been set up. And until then, + // we will trust the initialNumToRender suggestion + if (visibleLength <= 0 || contentLength <= 0) { + return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport; } - if (flags & Hydrating) { - finishedWork.flags &= ~Hydrating; + var newCellsAroundViewport; + if (props.disableVirtualization) { + var renderAhead = distanceFromEnd < onEndReachedThreshold * visibleLength ? maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch) : 0; + newCellsAroundViewport = { + first: 0, + last: Math.min(cellsAroundViewport.last + renderAhead, getItemCount(data) - 1) + }; + } else { + // If we have a pending scroll update, we should not adjust the render window as it + // might override the correct window. + if (pendingScrollUpdateCount > 0) { + return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport; + } + newCellsAroundViewport = (0, _$$_REQUIRE(_dependencyMap[22], "./VirtualizeUtils").computeWindowedRenderLimits)(props, maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch), windowSizeOrDefault(props.windowSize), cellsAroundViewport, this.__getFrameMetricsApprox, this._scrollMetrics); + (0, _invariant.default)(newCellsAroundViewport.last < getItemCount(data), 'computeWindowedRenderLimits() should return range in-bounds'); } + if (this._nestedChildLists.size() > 0) { + // If some cell in the new state has a child list in it, we should only render + // up through that item, so that we give that list a chance to render. + // Otherwise there's churn from multiple child lists mounting and un-mounting + // their items. + + // Will this prevent rendering if the nested list doesn't realize the end? + var childIdx = this._findFirstChildWithMore(newCellsAroundViewport.first, newCellsAroundViewport.last); + newCellsAroundViewport.last = childIdx != null ? childIdx : newCellsAroundViewport.last; + } + return newCellsAroundViewport; } - function commitLayoutEffects(finishedWork, root, committedLanes) { - inProgressLanes = committedLanes; - inProgressRoot = root; - nextEffect = finishedWork; - commitLayoutEffects_begin(finishedWork, root, committedLanes); - inProgressLanes = null; - inProgressRoot = null; - } - function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { - var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; - while (nextEffect !== null) { - var fiber = nextEffect; - var firstChild = fiber.child; - if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) { - firstChild.return = fiber; - nextEffect = firstChild; - } else { - commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes); + }, { + key: "_findFirstChildWithMore", + value: function _findFirstChildWithMore(first, last) { + for (var ii = first; ii <= last; ii++) { + var cellKeyForIndex = this._indicesToKeys.get(ii); + if (cellKeyForIndex != null && this._nestedChildLists.anyInCell(cellKeyForIndex, function (childList) { + return childList.hasMore(); + })) { + return ii; } } + return null; } - function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) { - while (nextEffect !== null) { - var fiber = nextEffect; - if ((fiber.flags & LayoutMask) !== NoFlags) { - var current = fiber.alternate; - setCurrentFiber(fiber); - try { - commitLayoutEffectOnFiber(root, current, fiber, committedLanes); - } catch (error) { - captureCommitPhaseError(fiber, fiber.return, error); - } - resetCurrentFiber(); - } - if (fiber === subtreeRoot) { - nextEffect = null; - return; - } - var sibling = fiber.sibling; - if (sibling !== null) { - sibling.return = fiber.return; - nextEffect = sibling; - return; - } - nextEffect = fiber.return; + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this._isNestedWithSameOrientation()) { + this.context.registerAsNestedChild({ + ref: this, + cellKey: this.context.cellKey + }); } } - function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) { - nextEffect = finishedWork; - commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions); + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._isNestedWithSameOrientation()) { + this.context.unregisterAsNestedChild({ + ref: this + }); + } + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.dispose(); + }); + this._fillRateHelper.deactivateAndFlush(); } - function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) { - while (nextEffect !== null) { - var fiber = nextEffect; - var firstChild = fiber.child; - if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) { - firstChild.return = fiber; - nextEffect = firstChild; - } else { - commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions); + }, { + key: "_pushCells", + value: function _pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, first, last, inversionStyle) { + var _this2 = this; + var _this$props4 = this.props, + CellRendererComponent = _this$props4.CellRendererComponent, + ItemSeparatorComponent = _this$props4.ItemSeparatorComponent, + ListHeaderComponent = _this$props4.ListHeaderComponent, + ListItemComponent = _this$props4.ListItemComponent, + data = _this$props4.data, + debug = _this$props4.debug, + getItem = _this$props4.getItem, + getItemCount = _this$props4.getItemCount, + getItemLayout = _this$props4.getItemLayout, + horizontal = _this$props4.horizontal, + renderItem = _this$props4.renderItem; + var stickyOffset = ListHeaderComponent ? 1 : 0; + var end = getItemCount(data) - 1; + var prevCellKey; + last = Math.min(end, last); + var _loop = function _loop() { + var item = getItem(data, ii); + var key = VirtualizedList._keyExtractor(item, ii, _this2.props); + _this2._indicesToKeys.set(ii, key); + if (stickyIndicesFromProps.has(ii + stickyOffset)) { + stickyHeaderIndices.push(cells.length); } + var shouldListenForLayout = getItemLayout == null || debug || _this2._fillRateHelper.enabled(); + cells.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_VirtualizedListCellRenderer.default, Object.assign({ + CellRendererComponent: CellRendererComponent, + ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined, + ListItemComponent: ListItemComponent, + cellKey: key, + horizontal: horizontal, + index: ii, + inversionStyle: inversionStyle, + item: item, + prevCellKey: prevCellKey, + onUpdateSeparators: _this2._onUpdateSeparators, + onCellFocusCapture: function onCellFocusCapture(e) { + return _this2._onCellFocusCapture(key); + }, + onUnmount: _this2._onCellUnmount, + ref: function ref(_ref) { + _this2._cellRefs[key] = _ref; + }, + renderItem: renderItem + }, shouldListenForLayout && { + onCellLayout: _this2._onCellLayout + }), key)); + prevCellKey = key; + }; + for (var ii = first; ii <= last; ii++) { + _loop(); } } - function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { - while (nextEffect !== null) { - var fiber = nextEffect; - if ((fiber.flags & Passive) !== NoFlags) { - setCurrentFiber(fiber); - try { - commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); - } catch (error) { - captureCommitPhaseError(fiber, fiber.return, error); - } - resetCurrentFiber(); - } - if (fiber === subtreeRoot) { - nextEffect = null; - return; - } - var sibling = fiber.sibling; - if (sibling !== null) { - sibling.return = fiber.return; - nextEffect = sibling; - return; + }, { + key: "_isNestedWithSameOrientation", + value: function _isNestedWithSameOrientation() { + var nestedContext = this.context; + return !!(nestedContext && !!nestedContext.horizontal === horizontalOrDefault(this.props.horizontal)); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + this._checkProps(this.props); + var _this$props5 = this.props, + ListEmptyComponent = _this$props5.ListEmptyComponent, + ListFooterComponent = _this$props5.ListFooterComponent, + ListHeaderComponent = _this$props5.ListHeaderComponent; + var _this$props6 = this.props, + data = _this$props6.data, + horizontal = _this$props6.horizontal; + var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles.horizontallyInverted : styles.verticallyInverted : null; + var cells = []; + var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices); + var stickyHeaderIndices = []; + + // 1. Add cell for ListHeaderComponent + if (ListHeaderComponent) { + if (stickyIndicesFromProps.has(0)) { + stickyHeaderIndices.push(0); } - nextEffect = fiber.return; + var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : + /*#__PURE__*/ + // $FlowFixMe[not-a-component] + // $FlowFixMe[incompatible-type-arg] + (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(ListHeaderComponent, {}); + cells.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[23], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this._getCellKey() + '-header', + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View + // We expect that header component will be a single native view so make it + // not collapsable to avoid this view being flattened and make this assumption + // no longer true. + , { + collapsable: false, + onLayout: this._onLayoutHeader, + style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListHeaderComponentStyle), + children: + // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors + _element + }) + }, "$header")); } - } - function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { - switch (finishedWork.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - if (finishedWork.mode & ProfileMode) { - startPassiveEffectTimer(); - try { - commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); - } finally { - recordPassiveEffectDuration(finishedWork); + + // 2a. Add a cell for ListEmptyComponent if applicable + var itemCount = this.props.getItemCount(data); + if (itemCount === 0 && ListEmptyComponent) { + var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : + /*#__PURE__*/ + // $FlowFixMe[not-a-component] + // $FlowFixMe[incompatible-type-arg] + (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(ListEmptyComponent, {}); + cells.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[23], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this._getCellKey() + '-empty', + children: React.cloneElement(_element2, { + onLayout: function onLayout(event) { + _this3._onLayoutEmpty(event); + if (_element2.props.onLayout) { + _element2.props.onLayout(event); } - } else { - commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); - } - break; - } + }, + style: _reactNative.StyleSheet.compose(inversionStyle, _element2.props.style) + }) + }, "$empty")); } - } - function commitPassiveUnmountEffects(firstChild) { - nextEffect = firstChild; - commitPassiveUnmountEffects_begin(); - } - function commitPassiveUnmountEffects_begin() { - while (nextEffect !== null) { - var fiber = nextEffect; - var child = fiber.child; - if ((nextEffect.flags & ChildDeletion) !== NoFlags) { - var deletions = fiber.deletions; - if (deletions !== null) { - for (var i = 0; i < deletions.length; i++) { - var fiberToDelete = deletions[i]; - nextEffect = fiberToDelete; - commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); - } - { - var previousFiber = fiber.alternate; - if (previousFiber !== null) { - var detachedChild = previousFiber.child; - if (detachedChild !== null) { - previousFiber.child = null; - do { - var detachedSibling = detachedChild.sibling; - detachedChild.sibling = null; - detachedChild = detachedSibling; - } while (detachedChild !== null); - } - } + + // 2b. Add cells and spacers for each item + if (itemCount > 0) { + _usedIndexForKey = false; + _keylessItemComponentName = ''; + var spacerKey = this._getSpacerKey(!horizontal); + var renderRegions = this.state.renderMask.enumerateRegions(); + var lastSpacer = findLastWhere(renderRegions, function (r) { + return r.isSpacer; + }); + for (var section of renderRegions) { + if (section.isSpacer) { + // Legacy behavior is to avoid spacers when virtualization is + // disabled (including head spacers on initial render). + if (this.props.disableVirtualization) { + continue; } - nextEffect = fiber; + + // Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to + // prevent the user for hyperscrolling into un-measured area because otherwise content will + // likely jump around as it renders in above the viewport. + var isLastSpacer = section === lastSpacer; + var constrainToMeasured = isLastSpacer && !this.props.getItemLayout; + var last = constrainToMeasured ? (0, _clamp.default)(section.first - 1, section.last, this._highestMeasuredFrameIndex) : section.last; + var firstMetrics = this.__getFrameMetricsApprox(section.first, this.props); + var lastMetrics = this.__getFrameMetricsApprox(last, this.props); + var spacerSize = lastMetrics.offset + lastMetrics.length - firstMetrics.offset; + cells.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, { + style: (0, _defineProperty2.default)({}, spacerKey, spacerSize) + }, `$spacer-${section.first}`)); + } else { + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, section.first, section.last, inversionStyle); } } - if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) { - child.return = fiber; - nextEffect = child; - } else { - commitPassiveUnmountEffects_complete(); + if (!this._hasWarned.keys && _usedIndexForKey) { + console.warn('VirtualizedList: missing keys for items, make sure to specify a key or id property on each ' + 'item or provide a custom keyExtractor.', _keylessItemComponentName); + this._hasWarned.keys = true; } } - } - function commitPassiveUnmountEffects_complete() { - while (nextEffect !== null) { - var fiber = nextEffect; - if ((fiber.flags & Passive) !== NoFlags) { - setCurrentFiber(fiber); - commitPassiveUnmountOnFiber(fiber); - resetCurrentFiber(); - } - var sibling = fiber.sibling; - if (sibling !== null) { - sibling.return = fiber.return; - nextEffect = sibling; - return; - } - nextEffect = fiber.return; + + // 3. Add cell for ListFooterComponent + if (ListFooterComponent) { + var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : + /*#__PURE__*/ + // $FlowFixMe[not-a-component] + // $FlowFixMe[incompatible-type-arg] + (0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(ListFooterComponent, {}); + cells.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[23], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this._getFooterCellKey(), + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, { + onLayout: this._onLayoutFooter, + style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListFooterComponentStyle), + children: + // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors + _element3 + }) + }, "$footer")); } - } - function commitPassiveUnmountOnFiber(finishedWork) { - switch (finishedWork.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - if (finishedWork.mode & ProfileMode) { - startPassiveEffectTimer(); - commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); - recordPassiveEffectDuration(finishedWork); - } else { - commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + + // 4. Render the ScrollView + var scrollProps = 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: scrollEventThrottleOrDefault(this.props.scrollEventThrottle), + // TODO: Android support + invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted, + stickyHeaderIndices: stickyHeaderIndices, + style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style, + isInvertedVirtualizedList: this.props.inverted, + maintainVisibleContentPosition: this.props.maintainVisibleContentPosition != null ? Object.assign({}, this.props.maintainVisibleContentPosition, { + // Adjust index to account for ListHeaderComponent. + minIndexForVisible: this.props.maintainVisibleContentPosition.minIndexForVisible + (this.props.ListHeaderComponent ? 1 : 0) + }) : undefined + }); + this._hasMore = this.state.cellsAroundViewport.last < itemCount - 1; + var innerRet = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[23], "./VirtualizedListContext.js").VirtualizedListContextProvider, { + value: { + cellKey: null, + getScrollMetrics: this._getScrollMetrics, + horizontal: horizontalOrDefault(this.props.horizontal), + getOutermostParentListRef: this._getOutermostParentListRef, + registerAsNestedChild: this._registerAsNestedChild, + unregisterAsNestedChild: this._unregisterAsNestedChild + }, + children: React.cloneElement((this.props.renderScrollComponent || this._defaultRenderScrollComponent)(scrollProps), { + ref: this._captureScrollRef + }, cells) + }); + var ret = innerRet; + if (__DEV__) { + ret = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.ScrollView.Context.Consumer, { + children: function children(scrollContext) { + if (scrollContext != null && !scrollContext.horizontal === !horizontalOrDefault(_this3.props.horizontal) && !_this3._hasWarned.nesting && _this3.context == null && _this3.props.scrollEnabled !== false) { + // TODO (T46547044): use React.warn once 16.9 is sync'd: https://github.com/facebook/react/pull/15170 + console.error('VirtualizedLists should never be nested inside plain ScrollViews with the same ' + 'orientation because it can break windowing and other functionality - use another ' + 'VirtualizedList-backed container instead.'); + _this3._hasWarned.nesting = true; } - break; + return innerRet; } + }); + } + if (this.props.debug) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: styles.debug, + children: [ret, this._renderDebugOverlay()] + }); + } else { + return ret; } } - function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { - while (nextEffect !== null) { - var fiber = nextEffect; - - setCurrentFiber(fiber); - commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); - resetCurrentFiber(); - var child = fiber.child; - - if (child !== null) { - child.return = fiber; - nextEffect = child; - } else { - commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot); - } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props7 = this.props, + data = _this$props7.data, + extraData = _this$props7.extraData; + if (data !== prevProps.data || extraData !== prevProps.extraData) { + // clear the viewableIndices cache to also trigger + // the onViewableItemsChanged callback with the new data + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.resetViewableIndices(); + }); + } + // The `this._hiPriInProgress` is guaranteeing a hiPri cell update will only happen + // once per fiber update. The `_scheduleCellsToRenderUpdate` will set it to true + // if a hiPri update needs to perform. If `componentDidUpdate` is triggered with + // `this._hiPriInProgress=true`, means it's triggered by the hiPri update. The + // `_scheduleCellsToRenderUpdate` will check this condition and not perform + // another hiPri update. + var hiPriInProgress = this._hiPriInProgress; + this._scheduleCellsToRenderUpdate(); + // Make sure setting `this._hiPriInProgress` back to false after `componentDidUpdate` + // is triggered with `this._hiPriInProgress = true` + if (hiPriInProgress) { + this._hiPriInProgress = false; } } - function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) { - while (nextEffect !== null) { - var fiber = nextEffect; - var sibling = fiber.sibling; - var returnFiber = fiber.return; - { - detachFiberAfterEffects(fiber); - if (fiber === deletedSubtreeRoot) { - nextEffect = null; - return; - } - } - if (sibling !== null) { - sibling.return = returnFiber; - nextEffect = sibling; + }, { + key: "_computeBlankness", + value: function _computeBlankness() { + this._fillRateHelper.computeBlankness(this.props, this.state.cellsAroundViewport, this._scrollMetrics); + } + }, { + key: "_onCellFocusCapture", + value: function _onCellFocusCapture(cellKey) { + this._lastFocusedCellKey = cellKey; + this._updateCellsToRender(); + } + }, { + key: "_triggerRemeasureForChildListsInCell", + value: function _triggerRemeasureForChildListsInCell(cellKey) { + this._nestedChildLists.forEachInCell(cellKey, function (childList) { + childList.measureLayoutRelativeToContainingList(); + }); + } + }, { + key: "measureLayoutRelativeToContainingList", + value: function measureLayoutRelativeToContainingList() { + var _this4 = this; + // TODO (T35574538): findNodeHandle sometimes crashes with "Unable to find + // node on an unmounted component" during scrolling + try { + if (!this._scrollRef) { return; } - nextEffect = returnFiber; - } - } - function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) { - switch (current.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - if (current.mode & ProfileMode) { - startPassiveEffectTimer(); - commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); - recordPassiveEffectDuration(current); - } else { - commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); - } - break; + // We are assuming that getOutermostParentListRef().getScrollRef() + // is a non-null reference to a ScrollView + this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) { + _this4._offsetFromParentVirtualizedList = _this4._selectOffset({ + x: x, + y: y + }); + _this4._scrollMetrics.contentLength = _this4._selectLength({ + width: width, + height: height + }); + var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.getScrollMetrics()); + var metricsChanged = _this4._scrollMetrics.visibleLength !== scrollMetrics.visibleLength || _this4._scrollMetrics.offset !== scrollMetrics.offset; + if (metricsChanged) { + _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength; + _this4._scrollMetrics.offset = scrollMetrics.offset; + + // If metrics of the scrollView changed, then we triggered remeasure for child list + // to ensure VirtualizedList has the right information. + _this4._nestedChildLists.forEach(function (childList) { + childList.measureLayoutRelativeToContainingList(); + }); } + }, function (error) { + console.warn("VirtualizedList: Encountered an error while measuring a list's" + ' offset from its containing VirtualizedList.'); + }); + } catch (error) { + console.warn('measureLayoutRelativeToContainingList threw an error', error.stack); } } - - var COMPONENT_TYPE = 0; - var HAS_PSEUDO_CLASS_TYPE = 1; - var ROLE_TYPE = 2; - var TEST_NAME_TYPE = 3; - var TEXT_TYPE = 4; - if (typeof Symbol === "function" && Symbol.for) { - var symbolFor = Symbol.for; - COMPONENT_TYPE = symbolFor("selector.component"); - HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); - ROLE_TYPE = symbolFor("selector.role"); - TEST_NAME_TYPE = symbolFor("selector.test_id"); - TEXT_TYPE = symbolFor("selector.text"); - } - var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; - function isLegacyActEnvironment(fiber) { - { - var isReactActEnvironmentGlobal = - typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; - return warnsIfNotActing; - } + }, { + key: "_getFooterCellKey", + value: function _getFooterCellKey() { + return this._getCellKey() + '-footer'; } - function isConcurrentActEnvironment() { - { - var isReactActEnvironmentGlobal = - typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; - if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { - error("The current testing environment is not configured to support " + "act(...)"); + }, { + key: "_renderDebugOverlay", + value: + // $FlowFixMe[missing-local-annot] + function _renderDebugOverlay() { + var _this5 = this; + var normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1); + var framesInLayout = []; + var itemCount = this.props.getItemCount(this.props.data); + for (var ii = 0; ii < itemCount; ii++) { + var frame = this.__getFrameMetricsApprox(ii, this.props); + /* $FlowFixMe[prop-missing] (>=0.68.0 site=react_native_fb) This comment + * suppresses an error found when Flow v0.68 was deployed. To see the + * error delete this comment and run Flow. */ + if (frame.inLayout) { + framesInLayout.push(frame); } - return isReactActEnvironmentGlobal; } + var windowTop = this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first, this.props).offset; + var frameLast = this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last, this.props); + var windowLen = frameLast.offset + frameLast.length - windowTop; + var visTop = this._scrollMetrics.offset; + var visLen = this._scrollMetrics.visibleLength; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsxs)(_reactNative.View, { + style: [styles.debugOverlayBase, styles.debugOverlay], + children: [framesInLayout.map(function (f, ii) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.debugOverlayBase, styles.debugOverlayFrame, { + top: f.offset * normalize, + height: f.length * normalize + }] + }, 'f' + ii); + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.debugOverlayBase, styles.debugOverlayFrameLast, { + top: windowTop * normalize, + height: windowLen * normalize + }] + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[21], "react/jsx-runtime").jsx)(_reactNative.View, { + style: [styles.debugOverlayBase, styles.debugOverlayFrameVis, { + top: visTop * normalize, + height: visLen * normalize + }] + })] + }); } - var ceil = Math.ceil; - var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; - var NoContext = - 0; - var BatchedContext = - 1; - var RenderContext = - 2; - var CommitContext = - 4; - var RootInProgress = 0; - var RootFatalErrored = 1; - var RootErrored = 2; - var RootSuspended = 3; - var RootSuspendedWithDelay = 4; - var RootCompleted = 5; - var RootDidNotComplete = 6; - - var executionContext = NoContext; - - var workInProgressRoot = null; - - var workInProgress = null; - - var workInProgressRootRenderLanes = NoLanes; - - var subtreeRenderLanes = NoLanes; - var subtreeRenderLanesCursor = createCursor(NoLanes); - - var workInProgressRootExitStatus = RootInProgress; - - var workInProgressRootFatalError = null; - - var workInProgressRootIncludedLanes = NoLanes; - - var workInProgressRootSkippedLanes = NoLanes; - - var workInProgressRootInterleavedUpdatedLanes = NoLanes; - - var workInProgressRootPingedLanes = NoLanes; - - var workInProgressRootConcurrentErrors = null; - - var workInProgressRootRecoverableErrors = null; - - var globalMostRecentFallbackTime = 0; - var FALLBACK_THROTTLE_MS = 500; - - var workInProgressRootRenderTargetTime = Infinity; - - var RENDER_TIMEOUT_MS = 500; - var workInProgressTransitions = null; - function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; - } - function getRenderTargetTime() { - return workInProgressRootRenderTargetTime; + }, { + key: "_selectLength", + value: function _selectLength(metrics) { + return !horizontalOrDefault(this.props.horizontal) ? metrics.height : metrics.width; } - var hasUncaughtError = false; - var firstUncaughtError = null; - var legacyErrorBoundariesThatAlreadyFailed = null; - var rootDoesHavePassiveEffects = false; - var rootWithPendingPassiveEffects = null; - var pendingPassiveEffectsLanes = NoLanes; - var pendingPassiveProfilerEffects = []; - var pendingPassiveTransitions = null; - - var NESTED_UPDATE_LIMIT = 50; - var nestedUpdateCount = 0; - var rootWithNestedUpdates = null; - var isFlushingPassiveEffects = false; - var didScheduleUpdateDuringPassiveEffects = false; - var NESTED_PASSIVE_UPDATE_LIMIT = 50; - var nestedPassiveUpdateCount = 0; - var rootWithPassiveNestedUpdates = null; - - var currentEventTime = NoTimestamp; - var currentEventTransitionLane = NoLanes; - var isRunningInsertionEffect = false; - function getWorkInProgressRoot() { - return workInProgressRoot; + }, { + key: "_selectOffset", + value: function _selectOffset(metrics) { + return !horizontalOrDefault(this.props.horizontal) ? metrics.y : metrics.x; } - function requestEventTime() { - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - return now(); + }, { + key: "_maybeCallOnEdgeReached", + value: function _maybeCallOnEdgeReached() { + var _this$props8 = this.props, + data = _this$props8.data, + getItemCount = _this$props8.getItemCount, + onStartReached = _this$props8.onStartReached, + onStartReachedThreshold = _this$props8.onStartReachedThreshold, + onEndReached = _this$props8.onEndReached, + onEndReachedThreshold = _this$props8.onEndReachedThreshold; + // If we have any pending scroll updates it means that the scroll metrics + // are out of date and we should not call any of the edge reached callbacks. + if (this.state.pendingScrollUpdateCount > 0) { + return; } + var _this$_scrollMetrics2 = this._scrollMetrics, + contentLength = _this$_scrollMetrics2.contentLength, + visibleLength = _this$_scrollMetrics2.visibleLength, + offset = _this$_scrollMetrics2.offset; + var distanceFromStart = offset; + var distanceFromEnd = contentLength - visibleLength - offset; - if (currentEventTime !== NoTimestamp) { - return currentEventTime; + // Especially when oERT is zero it's necessary to 'floor' very small distance values to be 0 + // since debouncing causes us to not fire this event for every single "pixel" we scroll and can thus + // be at the edge of the list with a distance approximating 0 but not quite there. + if (distanceFromStart < ON_EDGE_REACHED_EPSILON) { + distanceFromStart = 0; } - - currentEventTime = now(); - return currentEventTime; - } - function requestUpdateLane(fiber) { - var mode = fiber.mode; - if ((mode & ConcurrentMode) === NoMode) { - return SyncLane; - } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { - return pickArbitraryLane(workInProgressRootRenderLanes); + if (distanceFromEnd < ON_EDGE_REACHED_EPSILON) { + distanceFromEnd = 0; } - var isTransition = requestCurrentTransition() !== NoTransition; - if (isTransition) { - if (ReactCurrentBatchConfig$2.transition !== null) { - var transition = ReactCurrentBatchConfig$2.transition; - if (!transition._updatedFibers) { - transition._updatedFibers = new Set(); - } - transition._updatedFibers.add(fiber); - } - if (currentEventTransitionLane === NoLane) { - currentEventTransitionLane = claimNextTransitionLane(); - } - return currentEventTransitionLane; + // TODO: T121172172 Look into why we're "defaulting" to a threshold of 2px + // when oERT is not present (different from 2 viewports used elsewhere) + var DEFAULT_THRESHOLD_PX = 2; + var startThreshold = onStartReachedThreshold != null ? onStartReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX; + var endThreshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX; + var isWithinStartThreshold = distanceFromStart <= startThreshold; + var isWithinEndThreshold = distanceFromEnd <= endThreshold; + + // First check if the user just scrolled within the end threshold + // and call onEndReached only once for a given content length, + // and only if onStartReached is not being executed + if (onEndReached && this.state.cellsAroundViewport.last === getItemCount(data) - 1 && isWithinEndThreshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) { + this._sentEndForContentLength = this._scrollMetrics.contentLength; + onEndReached({ + distanceFromEnd: distanceFromEnd + }); } - var updateLane = getCurrentUpdatePriority(); - if (updateLane !== NoLane) { - return updateLane; + // Next check if the user just scrolled within the start threshold + // and call onStartReached only once for a given content length, + // and only if onEndReached is not being executed + else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) { + this._sentStartForContentLength = this._scrollMetrics.contentLength; + onStartReached({ + distanceFromStart: distanceFromStart + }); } - var eventLane = getCurrentEventPriority(); - return eventLane; - } - function requestRetryLane(fiber) { - var mode = fiber.mode; - if ((mode & ConcurrentMode) === NoMode) { - return SyncLane; + // If the user scrolls away from the start or end and back again, + // cause onStartReached or onEndReached to be triggered again + else { + this._sentStartForContentLength = isWithinStartThreshold ? this._sentStartForContentLength : 0; + this._sentEndForContentLength = isWithinEndThreshold ? this._sentEndForContentLength : 0; } - return claimNextRetryLane(); } - function scheduleUpdateOnFiber(fiber, lane, eventTime) { - checkForNestedUpdates(); - { - if (isRunningInsertionEffect) { - error("useInsertionEffect must not schedule updates."); - } - } - var root = markUpdateLaneFromFiberToRoot(fiber, lane); - if (root === null) { - return null; - } - { - if (isFlushingPassiveEffects) { - didScheduleUpdateDuringPassiveEffects = true; - } - } - - markRootUpdated(root, lane, eventTime); - if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { - warnAboutRenderPhaseUpdatesInDEV(fiber); + }, { + key: "_scheduleCellsToRenderUpdate", + value: function _scheduleCellsToRenderUpdate() { + var _this$state$cellsArou = this.state.cellsAroundViewport, + first = _this$state$cellsArou.first, + last = _this$state$cellsArou.last; + var _this$_scrollMetrics3 = this._scrollMetrics, + offset = _this$_scrollMetrics3.offset, + visibleLength = _this$_scrollMetrics3.visibleLength, + velocity = _this$_scrollMetrics3.velocity; + var itemCount = this.props.getItemCount(this.props.data); + var hiPri = false; + var onStartReachedThreshold = onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold); + var onEndReachedThreshold = onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold); + // Mark as high priority if we're close to the start of the first item + // But only if there are items before the first rendered item + if (first > 0) { + var distTop = offset - this.__getFrameMetricsApprox(first, this.props).offset; + hiPri = distTop < 0 || velocity < -2 && distTop < getScrollingThreshold(onStartReachedThreshold, visibleLength); + } + // Mark as high priority if we're close to the end of the last item + // But only if there are items after the last rendered item + if (!hiPri && last >= 0 && last < itemCount - 1) { + var distBottom = this.__getFrameMetricsApprox(last, this.props).offset - (offset + visibleLength); + hiPri = distBottom < 0 || velocity > 2 && distBottom < getScrollingThreshold(onEndReachedThreshold, visibleLength); + } + // Only trigger high-priority updates if we've actually rendered cells, + // and with that size estimate, accurately compute how many cells we should render. + // Otherwise, it would just render as many cells as it can (of zero dimension), + // each time through attempting to render more (limited by maxToRenderPerBatch), + // starving the renderer from actually laying out the objects and computing _averageCellLength. + // If this is triggered in an `componentDidUpdate` followed by a hiPri cellToRenderUpdate + // We shouldn't do another hipri cellToRenderUpdate + if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) { + this._hiPriInProgress = true; + // Don't worry about interactions when scrolling quickly; focus on filling content as fast + // as possible. + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + this._updateCellsToRender(); + return; } else { - { - if (isDevToolsPresent) { - addFiberToLanesMap(root, fiber, lane); - } - } - warnIfUpdatesNotWrappedWithActDEV(fiber); - if (root === workInProgressRoot) { - if ((executionContext & RenderContext) === NoContext) { - workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); - } - if (workInProgressRootExitStatus === RootSuspendedWithDelay) { - markRootSuspended$1(root, workInProgressRootRenderLanes); - } - } - ensureRootIsScheduled(root, eventTime); - if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && - !ReactCurrentActQueue$1.isBatchingLegacy) { - resetRenderTimer(); - flushSyncCallbacksOnlyInLegacyMode(); - } + this._updateCellsToRenderBatcher.schedule(); } - return root; } - - function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { - sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); - var alternate = sourceFiber.alternate; - if (alternate !== null) { - alternate.lanes = mergeLanes(alternate.lanes, lane); + }, { + key: "_updateViewableItems", + value: function _updateViewableItems(props, cellsAroundViewport) { + var _this6 = this; + // If we have any pending scroll updates it means that the scroll metrics + // are out of date and we should not call any of the visibility callbacks. + if (this.state.pendingScrollUpdateCount > 0) { + return; } - { - if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { - warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.onUpdate(props, _this6._scrollMetrics.offset, _this6._scrollMetrics.visibleLength, _this6._getFrameMetrics, _this6._createViewToken, tuple.onViewableItemsChanged, cellsAroundViewport); + }); + } + }], [{ + key: "_findItemIndexWithKey", + value: function _findItemIndexWithKey(props, key, hint) { + var itemCount = props.getItemCount(props.data); + if (hint != null && hint >= 0 && hint < itemCount) { + var curKey = VirtualizedList._getItemKey(props, hint); + if (curKey === key) { + return hint; } } - - var node = sourceFiber; - var parent = sourceFiber.return; - while (parent !== null) { - parent.childLanes = mergeLanes(parent.childLanes, lane); - alternate = parent.alternate; - if (alternate !== null) { - alternate.childLanes = mergeLanes(alternate.childLanes, lane); - } else { - { - if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { - warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); - } - } + for (var ii = 0; ii < itemCount; ii++) { + var _curKey = VirtualizedList._getItemKey(props, ii); + if (_curKey === key) { + return ii; } - node = parent; - parent = parent.return; - } - if (node.tag === HostRoot) { - var root = node.stateNode; - return root; - } else { - return null; } + return null; } - function isInterleavedUpdate(fiber, lane) { - return ( - (workInProgressRoot !== null || - hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && - (executionContext & RenderContext) === NoContext - ); + }, { + key: "_getItemKey", + value: function _getItemKey(props, index) { + var item = props.getItem(props.data, index); + return VirtualizedList._keyExtractor(item, index, props); } - - function ensureRootIsScheduled(root, currentTime) { - var existingCallbackNode = root.callbackNode; - - markStarvedLanesAsExpired(root, currentTime); - - var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); - if (nextLanes === NoLanes) { - if (existingCallbackNode !== null) { - cancelCallback$1(existingCallbackNode); + }, { + key: "_createRenderMask", + value: function _createRenderMask(props, cellsAroundViewport, additionalRegions) { + var itemCount = props.getItemCount(props.data); + (0, _invariant.default)(cellsAroundViewport.first >= 0 && cellsAroundViewport.last >= cellsAroundViewport.first - 1 && cellsAroundViewport.last < itemCount, `Invalid cells around viewport "[${cellsAroundViewport.first}, ${cellsAroundViewport.last}]" was passed to VirtualizedList._createRenderMask`); + var renderMask = new (_$$_REQUIRE(_dependencyMap[24], "./CellRenderMask").CellRenderMask)(itemCount); + if (itemCount > 0) { + var allRegions = [cellsAroundViewport].concat((0, _toConsumableArray2.default)(additionalRegions != null ? additionalRegions : [])); + for (var region of allRegions) { + renderMask.addCells(region); } - root.callbackNode = null; - root.callbackPriority = NoLane; - return; - } - var newCallbackPriority = getHighestPriorityLane(nextLanes); - - var existingCallbackPriority = root.callbackPriority; - if (existingCallbackPriority === newCallbackPriority && - !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { - { - if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { - error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); - } + // The initially rendered cells are retained as part of the + // "scroll-to-top" optimization + if (props.initialScrollIndex == null || props.initialScrollIndex <= 0) { + var initialRegion = VirtualizedList._initialRenderRegion(props); + renderMask.addCells(initialRegion); } - return; + // The layout coordinates of sticker headers may be off-screen while the + // actual header is on-screen. Keep the most recent before the viewport + // rendered, even if its layout coordinates are not in viewport. + var stickyIndicesSet = new Set(props.stickyHeaderIndices); + VirtualizedList._ensureClosestStickyHeader(props, stickyIndicesSet, renderMask, cellsAroundViewport.first); } - if (existingCallbackNode != null) { - cancelCallback$1(existingCallbackNode); + return renderMask; + } + }, { + key: "_initialRenderRegion", + value: function _initialRenderRegion(props) { + var _props$initialScrollI; + var itemCount = props.getItemCount(props.data); + var firstCellIndex = Math.max(0, Math.min(itemCount - 1, Math.floor((_props$initialScrollI = props.initialScrollIndex) != null ? _props$initialScrollI : 0))); + var lastCellIndex = Math.min(itemCount, firstCellIndex + initialNumToRenderOrDefault(props.initialNumToRender)) - 1; + return { + first: firstCellIndex, + last: lastCellIndex + }; + } + }, { + key: "_ensureClosestStickyHeader", + value: function _ensureClosestStickyHeader(props, stickyIndicesSet, renderMask, cellIdx) { + var stickyOffset = props.ListHeaderComponent ? 1 : 0; + for (var itemIdx = cellIdx - 1; itemIdx >= 0; itemIdx--) { + if (stickyIndicesSet.has(itemIdx + stickyOffset)) { + renderMask.addCells({ + first: itemIdx, + last: itemIdx + }); + break; + } } - - var newCallbackNode; - if (newCallbackPriority === SyncLane) { - if (root.tag === LegacyRoot) { - if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { - ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; - } - scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); + } + }, { + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(newProps, prevState) { + var _newProps$maintainVis, _newProps$maintainVis2; + // first and last could be stale (e.g. if a new, shorter items props is passed in), so we make + // sure we're rendering a reasonable range here. + var itemCount = newProps.getItemCount(newProps.data); + if (itemCount === prevState.renderMask.numCells()) { + return prevState; + } + var maintainVisibleContentPositionAdjustment = null; + var prevFirstVisibleItemKey = prevState.firstVisibleItemKey; + var minIndexForVisible = (_newProps$maintainVis = (_newProps$maintainVis2 = newProps.maintainVisibleContentPosition) == null ? void 0 : _newProps$maintainVis2.minIndexForVisible) != null ? _newProps$maintainVis : 0; + var newFirstVisibleItemKey = newProps.getItemCount(newProps.data) > minIndexForVisible ? VirtualizedList._getItemKey(newProps, minIndexForVisible) : null; + if (newProps.maintainVisibleContentPosition != null && prevFirstVisibleItemKey != null && newFirstVisibleItemKey != null) { + if (newFirstVisibleItemKey !== prevFirstVisibleItemKey) { + // Fast path if items were added at the start of the list. + var hint = itemCount - prevState.renderMask.numCells() + minIndexForVisible; + var firstVisibleItemIndex = VirtualizedList._findItemIndexWithKey(newProps, prevFirstVisibleItemKey, hint); + maintainVisibleContentPositionAdjustment = firstVisibleItemIndex != null ? firstVisibleItemIndex - minIndexForVisible : null; } else { - scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); - } - { - scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); - } - newCallbackNode = null; - } else { - var schedulerPriorityLevel; - switch (lanesToEventPriority(nextLanes)) { - case DiscreteEventPriority: - schedulerPriorityLevel = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriorityLevel = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriorityLevel = NormalPriority; - break; - case IdleEventPriority: - schedulerPriorityLevel = IdlePriority; - break; - default: - schedulerPriorityLevel = NormalPriority; - break; + maintainVisibleContentPositionAdjustment = null; } - newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root)); } - root.callbackPriority = newCallbackPriority; - root.callbackNode = newCallbackNode; + var constrainedCells = VirtualizedList._constrainToItemCount(maintainVisibleContentPositionAdjustment != null ? { + first: prevState.cellsAroundViewport.first + maintainVisibleContentPositionAdjustment, + last: prevState.cellsAroundViewport.last + maintainVisibleContentPositionAdjustment + } : prevState.cellsAroundViewport, newProps); + return { + cellsAroundViewport: constrainedCells, + renderMask: VirtualizedList._createRenderMask(newProps, constrainedCells), + firstVisibleItemKey: newFirstVisibleItemKey, + pendingScrollUpdateCount: maintainVisibleContentPositionAdjustment != null ? prevState.pendingScrollUpdateCount + 1 : prevState.pendingScrollUpdateCount + }; } - - function performConcurrentWorkOnRoot(root, didTimeout) { - { - resetNestedUpdateFlag(); - } - - currentEventTime = NoTimestamp; - currentEventTransitionLane = NoLanes; - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - throw new Error("Should not already be working."); + }, { + key: "_constrainToItemCount", + value: function _constrainToItemCount(cells, props) { + var itemCount = props.getItemCount(props.data); + var last = Math.min(itemCount - 1, cells.last); + var maxToRenderPerBatch = maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch); + return { + first: (0, _clamp.default)(0, itemCount - 1 - maxToRenderPerBatch, cells.first), + last: last + }; + } + }, { + key: "_keyExtractor", + value: function _keyExtractor(item, index, props) { + if (props.keyExtractor != null) { + return props.keyExtractor(item, index); } - - var originalCallbackNode = root.callbackNode; - var didFlushPassiveEffects = flushPassiveEffects(); - if (didFlushPassiveEffects) { - if (root.callbackNode !== originalCallbackNode) { - return null; + var key = (0, _$$_REQUIRE(_dependencyMap[22], "./VirtualizeUtils").keyExtractor)(item, index); + if (key === String(index)) { + _usedIndexForKey = true; + if (item.type && item.type.displayName) { + _keylessItemComponentName = item.type.displayName; } } + return key; + } + }]); + return VirtualizedList; + }(_StateSafePureComponent.default); + VirtualizedList.contextType = _$$_REQUIRE(_dependencyMap[23], "./VirtualizedListContext.js").VirtualizedListContext; + var styles = _reactNative.StyleSheet.create({ + verticallyInverted: _reactNative.Platform.OS === 'android' ? { + 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 + } + }); + module.exports = VirtualizedList; +},382,[3,6,202,12,13,52,49,51,53,1,383,384,385,386,387,388,389,390,20,231,41,89,381,391,392],"node_modules/@react-native/virtualized-lists/Lists/VirtualizedList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); - if (lanes === NoLanes) { - return null; - } - - var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; - var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - if (exitStatus === RootErrored) { - var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); - if (errorRetryLanes !== NoLanes) { - lanes = errorRetryLanes; - exitStatus = recoverFromConcurrentError(root, errorRetryLanes); - } - } - if (exitStatus === RootFatalErrored) { - var fatalError = workInProgressRootFatalError; - prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); - throw fatalError; - } - if (exitStatus === RootDidNotComplete) { - markRootSuspended$1(root, lanes); - } else { - var renderWasConcurrent = !includesBlockingLane(root, lanes); - var finishedWork = root.current.alternate; - if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { - exitStatus = renderRootSync(root, lanes); - - if (exitStatus === RootErrored) { - var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); - if (_errorRetryLanes !== NoLanes) { - lanes = _errorRetryLanes; - exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); - } - } + 'use strict'; - if (exitStatus === RootFatalErrored) { - var _fatalError = workInProgressRootFatalError; - prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); - throw _fatalError; - } - } + var _require = _$$_REQUIRE(_dependencyMap[0], "react-native"), + InteractionManager = _require.InteractionManager; - root.finishedWork = finishedWork; - root.finishedLanes = lanes; - finishConcurrentRender(root, exitStatus, lanes); + /** + * A simple class for batching up invocations of a low-pri callback. A timeout is set to run the + * callback once after a delay, no matter how many times it's scheduled. Once the delay is reached, + * InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri + * interactions are done running. + * + * Make sure to cleanup with dispose(). Example: + * + * class Widget extends React.Component { + * _batchedSave: new Batchinator(() => this._saveState, 1000); + * _saveSate() { + * // save this.state to disk + * } + * componentDidUpdate() { + * this._batchedSave.schedule(); + * } + * componentWillUnmount() { + * this._batchedSave.dispose(); + * } + * ... + * } + */ + var Batchinator = /*#__PURE__*/function () { + function Batchinator(callback, delayMS) { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, Batchinator); + this._delay = delayMS; + this._callback = callback; + } + /* + * Cleanup any pending tasks. + * + * By default, if there is a pending task the callback is run immediately. Set the option abort to + * true to not call the callback if it was pending. + */ + _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")(Batchinator, [{ + key: "dispose", + value: function dispose() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + abort: false + }; + if (this._taskHandle) { + this._taskHandle.cancel(); + if (!options.abort) { + this._callback(); } + this._taskHandle = null; } - ensureRootIsScheduled(root, now()); - if (root.callbackNode === originalCallbackNode) { - return performConcurrentWorkOnRoot.bind(null, root); - } - return null; } - function recoverFromConcurrentError(root, errorRetryLanes) { - var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; - if (isRootDehydrated(root)) { - var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); - rootWorkInProgress.flags |= ForceClientRender; - { - errorHydratingContainer(root.containerInfo); - } + }, { + key: "schedule", + value: function schedule() { + var _this = this; + if (this._taskHandle) { + return; } - var exitStatus = renderRootSync(root, errorRetryLanes); - if (exitStatus !== RootErrored) { - var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorsFromFirstAttempt; - - if (errorsFromSecondAttempt !== null) { - queueRecoverableErrors(errorsFromSecondAttempt); + var timeoutHandle = setTimeout(function () { + _this._taskHandle = InteractionManager.runAfterInteractions(function () { + // Note that we clear the handle before invoking the callback so that if the callback calls + // schedule again, it will actually schedule another task. + _this._taskHandle = null; + _this._callback(); + }); + }, this._delay); + this._taskHandle = { + cancel: function cancel() { + return clearTimeout(timeoutHandle); } - } - return exitStatus; - } - function queueRecoverableErrors(errors) { - if (workInProgressRootRecoverableErrors === null) { - workInProgressRootRecoverableErrors = errors; - } else { - workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); - } + }; } - function finishConcurrentRender(root, exitStatus, lanes) { - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - { - throw new Error("Root did not complete. This is a bug in React."); - } - - case RootErrored: - { - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - } - case RootSuspended: - { - markRootSuspended$1(root, lanes); - - if (includesOnlyRetries(lanes) && - !shouldForceFlushFallbacksInDEV()) { - var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); - - if (msUntilTimeout > 10) { - var nextLanes = getNextLanes(root, NoLanes); - if (nextLanes !== NoLanes) { - break; - } - var suspendedLanes = root.suspendedLanes; - if (!isSubsetOfLanes(suspendedLanes, lanes)) { - var eventTime = requestEventTime(); - markRootPinged(root, suspendedLanes); - break; - } + }]); + return Batchinator; + }(); + module.exports = Batchinator; +},383,[1,12,13],"node_modules/@react-native/virtualized-lists/Interaction/Batchinator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); - break; - } - } + 'use strict'; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - } - case RootSuspendedWithDelay: - { - markRootSuspended$1(root, lanes); - if (includesOnlyTransitions(lanes)) { - break; - } - if (!shouldForceFlushFallbacksInDEV()) { - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; + function clamp(min, value, max) { + if (value < min) { + return min; + } + if (value > max) { + return max; + } + return value; + } + module.exports = clamp; +},384,[],"node_modules/@react-native/virtualized-lists/Utilities/clamp.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - if (_msUntilTimeout > 10) { - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); - break; - } - } + 'use strict'; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - } - case RootCompleted: - { - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - } - default: - { - throw new Error("Unknown root exit status."); - } + /** + * Intentional info-level logging for clear separation from ad-hoc console debug logging. + */ + function infoLog() { + var _console; + return (_console = console).log.apply(_console, arguments); + } + module.exports = infoLog; +},385,[],"node_modules/@react-native/virtualized-lists/Utilities/infoLog.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var ChildListCollection = /*#__PURE__*/function () { + function ChildListCollection() { + (0, _classCallCheck2.default)(this, ChildListCollection); + this._cellKeyToChildren = new Map(); + this._childrenToCellKey = new Map(); + } + (0, _createClass2.default)(ChildListCollection, [{ + key: "add", + value: function add(list, cellKey) { + var _this$_cellKeyToChild; + (0, _invariant.default)(!this._childrenToCellKey.has(list), 'Trying to add already present child list'); + var cellLists = (_this$_cellKeyToChild = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild : new Set(); + cellLists.add(list); + this._cellKeyToChildren.set(cellKey, cellLists); + this._childrenToCellKey.set(list, cellKey); + } + }, { + key: "remove", + value: function remove(list) { + var cellKey = this._childrenToCellKey.get(list); + (0, _invariant.default)(cellKey != null, 'Trying to remove non-present child list'); + this._childrenToCellKey.delete(list); + var cellLists = this._cellKeyToChildren.get(cellKey); + (0, _invariant.default)(cellLists, '_cellKeyToChildren should contain cellKey'); + cellLists.delete(list); + if (cellLists.size === 0) { + this._cellKeyToChildren.delete(cellKey); } } - function isRenderConsistentWithExternalStores(finishedWork) { - var node = finishedWork; - while (true) { - if (node.flags & StoreConsistency) { - var updateQueue = node.updateQueue; - if (updateQueue !== null) { - var checks = updateQueue.stores; - if (checks !== null) { - for (var i = 0; i < checks.length; i++) { - var check = checks[i]; - var getSnapshot = check.getSnapshot; - var renderedValue = check.value; - try { - if (!objectIs(getSnapshot(), renderedValue)) { - return false; - } - } catch (error) { - return false; - } - } - } - } - } - var child = node.child; - if (node.subtreeFlags & StoreConsistency && child !== null) { - child.return = node; - node = child; - continue; + }, { + key: "forEach", + value: function forEach(fn) { + for (var listSet of this._cellKeyToChildren.values()) { + for (var list of listSet) { + fn(list); } - if (node === finishedWork) { + } + } + }, { + key: "forEachInCell", + value: function forEachInCell(cellKey, fn) { + var _this$_cellKeyToChild2; + var listSet = (_this$_cellKeyToChild2 = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild2 : []; + for (var list of listSet) { + fn(list); + } + } + }, { + key: "anyInCell", + value: function anyInCell(cellKey, fn) { + var _this$_cellKeyToChild3; + var listSet = (_this$_cellKeyToChild3 = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild3 : []; + for (var list of listSet) { + if (fn(list)) { return true; } - while (node.sibling === null) { - if (node.return === null || node.return === finishedWork) { - return true; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; } - - return true; + return false; } - function markRootSuspended$1(root, suspendedLanes) { - suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); - suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); - markRootSuspended(root, suspendedLanes); + }, { + key: "size", + value: function size() { + return this._childrenToCellKey.size; } + }]); + return ChildListCollection; + }(); + exports.default = ChildListCollection; +},386,[3,12,13,20],"node_modules/@react-native/virtualized-lists/Lists/ChildListCollection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function performSyncWorkOnRoot(root) { - { - syncNestedUpdateFlag(); + 'use strict'; + + var Info = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function Info() { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, Info); + 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; + }); + var DEBUG = false; + var _listeners = []; + var _minSampleCount = 10; + var _sampleRate = DEBUG ? 1 : null; + + /** + * A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded. + * By default the sampling rate is set to zero and this will do nothing. If you want to collect + * samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`. + * + * Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with + * `SceneTracker.getActiveScene` to determine the context of the events. + */ + var FillRateHelper = /*#__PURE__*/function () { + function FillRateHelper(getFrameMetrics) { + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, FillRateHelper); + this._anyBlankStartTime = null; + this._enabled = false; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; + this._getFrameMetrics = getFrameMetrics; + this._enabled = (_sampleRate || 0) > Math.random(); + this._resetData(); + } + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(FillRateHelper, [{ + key: "activate", + value: function activate() { + if (this._enabled && this._samplesStartTime == null) { + DEBUG && console.debug('FillRateHelper: activate'); + this._samplesStartTime = global.performance.now(); } - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - throw new Error("Should not already be working."); + } + }, { + key: "deactivateAndFlush", + value: function deactivateAndFlush() { + if (!this._enabled) { + return; } - flushPassiveEffects(); - var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { - ensureRootIsScheduled(root, now()); - return null; + var start = this._samplesStartTime; // const for flow + if (start == null) { + DEBUG && console.debug('FillRateHelper: bail on deactivate with no start time'); + return; } - var exitStatus = renderRootSync(root, lanes); - if (root.tag !== LegacyRoot && exitStatus === RootErrored) { - var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); - if (errorRetryLanes !== NoLanes) { - lanes = errorRetryLanes; - exitStatus = recoverFromConcurrentError(root, errorRetryLanes); - } + if (this._info.sample_count < _minSampleCount) { + // Don't bother with under-sampled events. + this._resetData(); + return; } - if (exitStatus === RootFatalErrored) { - var fatalError = workInProgressRootFatalError; - prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); - throw fatalError; + var total_time_spent = global.performance.now() - start; + var info = Object.assign({}, this._info, { + total_time_spent: total_time_spent + }); + if (DEBUG) { + var derived = { + avg_blankness: this._info.pixels_blank / this._info.pixels_sampled, + avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000), + avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count, + any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1000 / 60), + any_blank_time_frac: this._info.any_blank_ms / total_time_spent, + mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1000 / 60), + mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent + }; + for (var key in derived) { + // $FlowFixMe[prop-missing] + derived[key] = Math.round(1000 * derived[key]) / 1000; + } + console.debug('FillRateHelper deactivateAndFlush: ', { + derived: derived, + info: info + }); } - if (exitStatus === RootDidNotComplete) { - throw new Error("Root did not complete. This is a bug in React."); + _listeners.forEach(function (listener) { + return listener(info); + }); + this._resetData(); + } + }, { + key: "computeBlankness", + value: function computeBlankness(props, cellsAroundViewport, scrollMetrics) { + if (!this._enabled || props.getItemCount(props.data) === 0 || cellsAroundViewport.last < cellsAroundViewport.first || this._samplesStartTime == null) { + return 0; } + var dOffset = scrollMetrics.dOffset, + offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength; - var finishedWork = root.current.alternate; - root.finishedWork = finishedWork; - root.finishedLanes = lanes; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - - ensureRootIsScheduled(root, now()); - return null; - } - function batchedUpdates$1(fn, a) { - var prevExecutionContext = executionContext; - executionContext |= BatchedContext; - try { - return fn(a); - } finally { - executionContext = prevExecutionContext; + // Denominator metrics that we track for all events - most of the time there is no blankness and + // we want to capture that. + this._info.sample_count++; + this._info.pixels_sampled += Math.round(visibleLength); + this._info.pixels_scrolled += Math.round(Math.abs(dOffset)); + var scrollSpeed = Math.round(Math.abs(velocity) * 1000); // px / sec - if (executionContext === NoContext && - !ReactCurrentActQueue$1.isBatchingLegacy) { - resetRenderTimer(); - flushSyncCallbacksOnlyInLegacyMode(); - } + // Whether blank now or not, record the elapsed time blank if we were blank last time. + var now = global.performance.now(); + if (this._anyBlankStartTime != null) { + this._info.any_blank_ms += now - this._anyBlankStartTime; } - } - - function flushSync(fn) { - if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { - flushPassiveEffects(); + this._anyBlankStartTime = null; + if (this._mostlyBlankStartTime != null) { + this._info.mostly_blank_ms += now - this._mostlyBlankStartTime; } - var prevExecutionContext = executionContext; - executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$2.transition; - var previousPriority = getCurrentUpdatePriority(); - try { - ReactCurrentBatchConfig$2.transition = null; - setCurrentUpdatePriority(DiscreteEventPriority); - if (fn) { - return fn(); - } else { - return undefined; - } - } finally { - setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; - executionContext = prevExecutionContext; - - if ((executionContext & (RenderContext | CommitContext)) === NoContext) { - flushSyncCallbacks(); - } + this._mostlyBlankStartTime = null; + var blankTop = 0; + var first = cellsAroundViewport.first; + var firstFrame = this._getFrameMetrics(first, props); + while (first <= cellsAroundViewport.last && (!firstFrame || !firstFrame.inLayout)) { + firstFrame = this._getFrameMetrics(first, props); + first++; } - } - function pushRenderLanes(fiber, lanes) { - push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber); - subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes); - workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes); - } - function popRenderLanes(fiber) { - subtreeRenderLanes = subtreeRenderLanesCursor.current; - pop(subtreeRenderLanesCursor, fiber); - } - function prepareFreshStack(root, lanes) { - root.finishedWork = null; - root.finishedLanes = NoLanes; - var timeoutHandle = root.timeoutHandle; - if (timeoutHandle !== noTimeout) { - root.timeoutHandle = noTimeout; - - cancelTimeout(timeoutHandle); + // Only count blankTop if we aren't rendering the first item, otherwise we will count the header + // as blank. + if (firstFrame && first > 0) { + blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset)); } - if (workInProgress !== null) { - var interruptedWork = workInProgress.return; - while (interruptedWork !== null) { - var current = interruptedWork.alternate; - unwindInterruptedWork(current, interruptedWork); - interruptedWork = interruptedWork.return; - } + var blankBottom = 0; + var last = cellsAroundViewport.last; + var lastFrame = this._getFrameMetrics(last, props); + while (last >= cellsAroundViewport.first && (!lastFrame || !lastFrame.inLayout)) { + lastFrame = this._getFrameMetrics(last, props); + last--; } - workInProgressRoot = root; - var rootWorkInProgress = createWorkInProgress(root.current, null); - workInProgress = rootWorkInProgress; - workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes; - workInProgressRootExitStatus = RootInProgress; - workInProgressRootFatalError = null; - workInProgressRootSkippedLanes = NoLanes; - workInProgressRootInterleavedUpdatedLanes = NoLanes; - workInProgressRootPingedLanes = NoLanes; - workInProgressRootConcurrentErrors = null; - workInProgressRootRecoverableErrors = null; - enqueueInterleavedUpdates(); - { - ReactStrictModeWarnings.discardPendingWarnings(); + // Only count blankBottom if we aren't rendering the last item, otherwise we will count the + // footer as blank. + if (lastFrame && last < props.getItemCount(props.data) - 1) { + var bottomEdge = lastFrame.offset + lastFrame.length; + blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge)); } - return rootWorkInProgress; - } - function handleError(root, thrownValue) { - do { - var erroredWork = workInProgress; - try { - resetContextDependencies(); - resetHooksAfterThrow(); - resetCurrentFiber(); - - ReactCurrentOwner$2.current = null; - if (erroredWork === null || erroredWork.return === null) { - workInProgressRootExitStatus = RootFatalErrored; - workInProgressRootFatalError = thrownValue; - - workInProgress = null; - return; - } - if (enableProfilerTimer && erroredWork.mode & ProfileMode) { - stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); - } - if (enableSchedulingProfiler) { - markComponentRenderStopped(); - if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { - var wakeable = thrownValue; - markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes); - } else { - markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); - } - } - throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); - completeUnitOfWork(erroredWork); - } catch (yetAnotherThrownValue) { - thrownValue = yetAnotherThrownValue; - if (workInProgress === erroredWork && erroredWork !== null) { - erroredWork = erroredWork.return; - workInProgress = erroredWork; - } else { - erroredWork = workInProgress; - } - continue; + var pixels_blank = Math.round(blankTop + blankBottom); + var blankness = pixels_blank / visibleLength; + if (blankness > 0) { + this._anyBlankStartTime = now; + this._info.any_blank_speed_sum += scrollSpeed; + this._info.any_blank_count++; + this._info.pixels_blank += pixels_blank; + if (blankness > 0.5) { + this._mostlyBlankStartTime = now; + this._info.mostly_blank_count++; } - - return; - } while (true); - } - function pushDispatcher() { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; - if (prevDispatcher === null) { - return ContextOnlyDispatcher; - } else { - return prevDispatcher; + } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) { + this.deactivateAndFlush(); } + return blankness; } - function popDispatcher(prevDispatcher) { - ReactCurrentDispatcher$2.current = prevDispatcher; - } - function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + }, { + key: "enabled", + value: function enabled() { + return this._enabled; } - function markSkippedUpdateLanes(lane) { - workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); + }, { + key: "_resetData", + value: function _resetData() { + this._anyBlankStartTime = null; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; } - function renderDidSuspend() { - if (workInProgressRootExitStatus === RootInProgress) { - workInProgressRootExitStatus = RootSuspended; + }], [{ + key: "addListener", + value: function addListener(callback) { + if (_sampleRate === null) { + console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'); } + _listeners.push(callback); + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); + } + }; } - function renderDidSuspendDelayIfPossible() { - if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { - workInProgressRootExitStatus = RootSuspendedWithDelay; - } - - if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); - } + }, { + key: "setSampleRate", + value: function setSampleRate(sampleRate) { + _sampleRate = sampleRate; } - function renderDidError(error) { - if (workInProgressRootExitStatus !== RootSuspendedWithDelay) { - workInProgressRootExitStatus = RootErrored; - } - if (workInProgressRootConcurrentErrors === null) { - workInProgressRootConcurrentErrors = [error]; + }, { + key: "setMinSampleCount", + value: function setMinSampleCount(minSampleCount) { + _minSampleCount = minSampleCount; + } + }]); + return FillRateHelper; + }(); + module.exports = FillRateHelper; +},387,[13,12],"node_modules/@react-native/virtualized-lists/Lists/FillRateHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * `setState` is called asynchronously, and should not rely on the value of + * `this.props` or `this.state`: + * https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous + * + * SafePureComponent adds runtime enforcement, to catch cases where these + * variables are read in a state updater function, instead of the ones passed + * in. + */ + var StateSafePureComponent = /*#__PURE__*/function (_React$PureComponent) { + (0, _inherits2.default)(StateSafePureComponent, _React$PureComponent); + var _super = _createSuper(StateSafePureComponent); + function StateSafePureComponent(props) { + var _this; + (0, _classCallCheck2.default)(this, StateSafePureComponent); + _this = _super.call(this, props); + _this._inAsyncStateUpdate = false; + _this._installSetStateHooks(); + return _this; + } + (0, _createClass2.default)(StateSafePureComponent, [{ + key: "setState", + value: function setState(partialState, callback) { + var _this2 = this; + if (typeof partialState === 'function') { + (0, _get2.default)((0, _getPrototypeOf2.default)(StateSafePureComponent.prototype), "setState", this).call(this, function (state, props) { + _this2._inAsyncStateUpdate = true; + var ret; + try { + ret = partialState(state, props); + } catch (err) { + throw err; + } finally { + _this2._inAsyncStateUpdate = false; + } + return ret; + }, callback); } else { - workInProgressRootConcurrentErrors.push(error); + (0, _get2.default)((0, _getPrototypeOf2.default)(StateSafePureComponent.prototype), "setState", this).call(this, partialState, callback); } } - - function renderHasNotSuspendedYet() { - return workInProgressRootExitStatus === RootInProgress; - } - function renderRootSync(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(); - - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { - { - if (isDevToolsPresent) { - var memoizedUpdaters = root.memoizedUpdaters; - if (memoizedUpdaters.size > 0) { - restorePendingUpdaters(root, workInProgressRootRenderLanes); - memoizedUpdaters.clear(); - } - - movePendingFibersToMemoized(root, lanes); - } + }, { + key: "_installSetStateHooks", + value: function _installSetStateHooks() { + var that = this; + var props = this.props, + state = this.state; + Object.defineProperty(this, 'props', { + get: function get() { + (0, _invariant.default)(!that._inAsyncStateUpdate, '"this.props" should not be accessed during state updates'); + return props; + }, + set: function set(newProps) { + props = newProps; } - workInProgressTransitions = getTransitionsForLanes(); - prepareFreshStack(root, lanes); - } - do { - try { - workLoopSync(); - break; - } catch (thrownValue) { - handleError(root, thrownValue); + }); + Object.defineProperty(this, 'state', { + get: function get() { + (0, _invariant.default)(!that._inAsyncStateUpdate, '"this.state" should not be acceessed during state updates'); + return state; + }, + set: function set(newState) { + state = newState; } - } while (true); - resetContextDependencies(); - executionContext = prevExecutionContext; - popDispatcher(prevDispatcher); - if (workInProgress !== null) { - throw new Error("Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); - } - workInProgressRoot = null; - workInProgressRootRenderLanes = NoLanes; - return workInProgressRootExitStatus; + }); } + }]); + return StateSafePureComponent; + }(React.PureComponent); + exports.default = StateSafePureComponent; +},388,[3,12,13,131,49,51,53,20,41],"node_modules/@react-native/virtualized-lists/Lists/StateSafePureComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - function workLoopSync() { - while (workInProgress !== null) { - performUnitOfWork(workInProgress); - } - } - function renderRootConcurrent(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(); + 'use strict'; - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { - { - if (isDevToolsPresent) { - var memoizedUpdaters = root.memoizedUpdaters; - if (memoizedUpdaters.size > 0) { - restorePendingUpdaters(root, workInProgressRootRenderLanes); - memoizedUpdaters.clear(); - } + /** + * A Utility class for calculating viewable items based on current metrics like scroll position and + * layout. + * + * An item is said to be in a "viewable" state when any of the following + * is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction` + * is true): + * + * - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item + * visible in the view area >= `itemVisiblePercentThreshold`. + * - Entirely visible on screen + */ + var ViewabilityHelper = /*#__PURE__*/function () { + function ViewabilityHelper() { + var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + viewAreaCoveragePercentThreshold: 0 + }; + _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, ViewabilityHelper); + this._hasInteracted = false; + this._timers = new Set(); + this._viewableIndices = []; + this._viewableItems = new Map(); + this._config = config; + } - movePendingFibersToMemoized(root, lanes); - } - } - workInProgressTransitions = getTransitionsForLanes(); - resetRenderTimer(); - prepareFreshStack(root, lanes); + /** + * Cleanup, e.g. on unmount. Clears any pending timers. + */ + _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(ViewabilityHelper, [{ + key: "dispose", + value: function dispose() { + /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.63 was deployed. To see + * the error delete this comment and run Flow. */ + this._timers.forEach(clearTimeout); + } + + /** + * Determines which items are viewable based on the current metrics and config. + */ + }, { + key: "computeViewableItems", + value: function computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics, + // Optional optimization to reduce the scan size + renderRange) { + var itemCount = props.getItemCount(props.data); + var _this$_config = this._config, + itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold, + viewAreaCoveragePercentThreshold = _this$_config.viewAreaCoveragePercentThreshold; + var viewAreaMode = viewAreaCoveragePercentThreshold != null; + var viewablePercentThreshold = viewAreaMode ? viewAreaCoveragePercentThreshold : itemVisiblePercentThreshold; + _$$_REQUIRE(_dependencyMap[2], "invariant")(viewablePercentThreshold != null && itemVisiblePercentThreshold != null !== (viewAreaCoveragePercentThreshold != null), 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold'); + var viewableIndices = []; + if (itemCount === 0) { + return viewableIndices; } - do { - try { - workLoopConcurrent(); + var firstVisible = -1; + var _ref = renderRange || { + first: 0, + last: itemCount - 1 + }, + first = _ref.first, + last = _ref.last; + if (last >= itemCount) { + console.warn('Invalid render range computing viewability ' + JSON.stringify({ + renderRange: renderRange, + itemCount: itemCount + })); + return []; + } + for (var idx = first; idx <= last; idx++) { + var metrics = getFrameMetrics(idx, props); + if (!metrics) { + continue; + } + var top = metrics.offset - scrollOffset; + var bottom = top + metrics.length; + if (top < viewportHeight && bottom > 0) { + firstVisible = idx; + if (_isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, metrics.length)) { + viewableIndices.push(idx); + } + } else if (firstVisible >= 0) { break; - } catch (thrownValue) { - handleError(root, thrownValue); } - } while (true); - resetContextDependencies(); - popDispatcher(prevDispatcher); - executionContext = prevExecutionContext; - if (workInProgress !== null) { - return RootInProgress; - } else { - workInProgressRoot = null; - workInProgressRootRenderLanes = NoLanes; - - return workInProgressRootExitStatus; } + return viewableIndices; } - function workLoopConcurrent() { - while (workInProgress !== null && !shouldYield()) { - performUnitOfWork(workInProgress); + /** + * Figures out which items are viewable and how that has changed from before and calls + * `onViewableItemsChanged` as appropriate. + */ + }, { + key: "onUpdate", + value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, + // Optional optimization to reduce the scan size + renderRange) { + var _this = this; + var itemCount = props.getItemCount(props.data); + if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0, props)) { + return; } - } - function performUnitOfWork(unitOfWork) { - var current = unitOfWork.alternate; - setCurrentFiber(unitOfWork); - var next; - if ((unitOfWork.mode & ProfileMode) !== NoMode) { - startProfilerTimer(unitOfWork); - next = beginWork$1(current, unitOfWork, subtreeRenderLanes); - stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); - } else { - next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + var viewableIndices = []; + if (itemCount) { + viewableIndices = this.computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics, renderRange); } - resetCurrentFiber(); - unitOfWork.memoizedProps = unitOfWork.pendingProps; - if (next === null) { - completeUnitOfWork(unitOfWork); + if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) { + return v === viewableIndices[ii]; + })) { + // We might get a lot of scroll events where visibility doesn't change and we don't want to do + // extra work in those cases. + return; + } + this._viewableIndices = viewableIndices; + if (this._config.minimumViewTime) { + var handle = setTimeout(function () { + /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.63 was deployed. To + * see the error delete this comment and run Flow. */ + _this._timers.delete(handle); + _this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken); + }, this._config.minimumViewTime); + /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.63 was deployed. To see + * the error delete this comment and run Flow. */ + this._timers.add(handle); } else { - workInProgress = next; + this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken); } - ReactCurrentOwner$2.current = null; } - function completeUnitOfWork(unitOfWork) { - var completedWork = unitOfWork; - do { - var current = completedWork.alternate; - var returnFiber = completedWork.return; - if ((completedWork.flags & Incomplete) === NoFlags) { - setCurrentFiber(completedWork); - var next = void 0; - if ((completedWork.mode & ProfileMode) === NoMode) { - next = completeWork(current, completedWork, subtreeRenderLanes); - } else { - startProfilerTimer(completedWork); - next = completeWork(current, completedWork, subtreeRenderLanes); - - stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); - } - resetCurrentFiber(); - if (next !== null) { - workInProgress = next; - return; - } - } else { - var _next = unwindWork(current, completedWork); - - if (_next !== null) { - _next.flags &= HostEffectMask; - workInProgress = _next; - return; - } - if ((completedWork.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + /** + * clean-up cached _viewableIndices to evaluate changed items on next update + */ + }, { + key: "resetViewableIndices", + value: function resetViewableIndices() { + this._viewableIndices = []; + } - var actualDuration = completedWork.actualDuration; - var child = completedWork.child; - while (child !== null) { - actualDuration += child.actualDuration; - child = child.sibling; - } - completedWork.actualDuration = actualDuration; - } - if (returnFiber !== null) { - returnFiber.flags |= Incomplete; - returnFiber.subtreeFlags = NoFlags; - returnFiber.deletions = null; - } else { - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - return; - } + /** + * Records that an interaction has happened even if there has been no scroll. + */ + }, { + key: "recordInteraction", + value: function recordInteraction() { + this._hasInteracted = true; + } + }, { + key: "_onUpdateSync", + value: function _onUpdateSync(props, viewableIndicesToCheck, onViewableItemsChanged, createViewToken) { + var _this2 = this; + // Filter out indices that have gone out of view since this call was scheduled. + viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) { + return _this2._viewableIndices.includes(ii); + }); + var prevItems = this._viewableItems; + var nextItems = new Map(viewableIndicesToCheck.map(function (ii) { + var viewable = createViewToken(ii, true, props); + return [viewable.key, viewable]; + })); + var changed = []; + for (var _ref2 of nextItems) { + var _ref3 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref2, 2); + var key = _ref3[0]; + var viewable = _ref3[1]; + if (!prevItems.has(key)) { + changed.push(viewable); } - var siblingFiber = completedWork.sibling; - if (siblingFiber !== null) { - workInProgress = siblingFiber; - return; + } + for (var _ref4 of prevItems) { + var _ref5 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref4, 2); + var _key = _ref5[0]; + var _viewable = _ref5[1]; + if (!nextItems.has(_key)) { + changed.push(Object.assign({}, _viewable, { + isViewable: false + })); } - - completedWork = returnFiber; - - workInProgress = completedWork; - } while (completedWork !== null); - - if (workInProgressRootExitStatus === RootInProgress) { - workInProgressRootExitStatus = RootCompleted; } - } - function commitRoot(root, recoverableErrors, transitions) { - var previousUpdateLanePriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$2.transition; - try { - ReactCurrentBatchConfig$2.transition = null; - setCurrentUpdatePriority(DiscreteEventPriority); - commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); - } finally { - ReactCurrentBatchConfig$2.transition = prevTransition; - setCurrentUpdatePriority(previousUpdateLanePriority); + if (changed.length > 0) { + this._viewableItems = nextItems; + onViewableItemsChanged({ + viewableItems: Array.from(nextItems.values()), + changed: changed, + viewabilityConfig: this._config + }); } - return null; } - function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { - do { - flushPassiveEffects(); - } while (rootWithPendingPassiveEffects !== null); - flushRenderPhaseStrictModeWarningsInDEV(); - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - throw new Error("Should not already be working."); - } - var finishedWork = root.finishedWork; - var lanes = root.finishedLanes; - if (finishedWork === null) { - return null; - } else { - { - if (lanes === NoLanes) { - error("root.finishedLanes should not be empty during a commit. This is a " + "bug in React."); - } - } - } - root.finishedWork = null; - root.finishedLanes = NoLanes; - if (finishedWork === root.current) { - throw new Error("Cannot commit the same tree as before. This error is likely caused by " + "a bug in React. Please file an issue."); - } - - root.callbackNode = null; - root.callbackPriority = NoLane; - - var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); - markRootFinished(root, remainingLanes); - if (root === workInProgressRoot) { - workInProgressRoot = null; - workInProgress = null; - workInProgressRootRenderLanes = NoLanes; - } - - if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { - if (!rootDoesHavePassiveEffects) { - rootDoesHavePassiveEffects = true; - - pendingPassiveTransitions = transitions; - scheduleCallback$1(NormalPriority, function () { - flushPassiveEffects(); - - return null; - }); - } - } - - var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; - var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; - if (subtreeHasEffects || rootHasEffect) { - var prevTransition = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; - var previousPriority = getCurrentUpdatePriority(); - setCurrentUpdatePriority(DiscreteEventPriority); - var prevExecutionContext = executionContext; - executionContext |= CommitContext; - - ReactCurrentOwner$2.current = null; - - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork); - { - recordCommitTime(); - } - commitMutationEffects(root, finishedWork, lanes); - resetAfterCommit(root.containerInfo); - - root.current = finishedWork; - - commitLayoutEffects(finishedWork, root, lanes); - - requestPaint(); - executionContext = prevExecutionContext; - - setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; - } else { - root.current = finishedWork; - - { - recordCommitTime(); - } - } - if (rootDoesHavePassiveEffects) { - rootDoesHavePassiveEffects = false; - rootWithPendingPassiveEffects = root; - pendingPassiveEffectsLanes = lanes; - } else { - { - nestedPassiveUpdateCount = 0; - rootWithPassiveNestedUpdates = null; - } - } - - remainingLanes = root.pendingLanes; - - if (remainingLanes === NoLanes) { - legacyErrorBoundariesThatAlreadyFailed = null; - } - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - { - if (isDevToolsPresent) { - root.memoizedUpdaters.clear(); - } + }]); + return ViewabilityHelper; + }(); + function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) { + if (_isEntirelyVisible(top, bottom, viewportHeight)) { + return true; + } else { + var pixels = _getPixelsVisible(top, bottom, viewportHeight); + var percent = 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength); + return percent >= viewablePercentThreshold; + } + } + function _getPixelsVisible(top, bottom, viewportHeight) { + var visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0); + return Math.max(0, visibleHeight); + } + function _isEntirelyVisible(top, bottom, viewportHeight) { + return top >= 0 && bottom <= viewportHeight && bottom > top; + } + module.exports = ViewabilityHelper; +},389,[12,13,20,22],"node_modules/@react-native/virtualized-lists/Lists/ViewabilityHelper.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _reactNative = _$$_REQUIRE(_dependencyMap[6], "react-native"); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/@react-native/virtualized-lists/Lists/VirtualizedListCellRenderer.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var CellRenderer = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(CellRenderer, _React$Component); + var _super = _createSuper(CellRenderer); + function CellRenderer() { + var _this; + (0, _classCallCheck2.default)(this, CellRenderer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + separatorProps: { + highlighted: false, + leadingItem: _this.props.item } - - ensureRootIsScheduled(root, now()); - if (recoverableErrors !== null) { - var onRecoverableError = root.onRecoverableError; - for (var i = 0; i < recoverableErrors.length; i++) { - var recoverableError = recoverableErrors[i]; - onRecoverableError(recoverableError); - } + }; + // TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not + // reused by SectionList and we can keep VirtualizedList simpler. + // $FlowFixMe[missing-local-annot] + _this._separators = { + highlight: function highlight() { + var _this$props = _this.props, + cellKey = _this$props.cellKey, + prevCellKey = _this$props.prevCellKey; + _this.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: true + }); + }, + unhighlight: function unhighlight() { + var _this$props2 = _this.props, + cellKey = _this$props2.cellKey, + prevCellKey = _this$props2.prevCellKey; + _this.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: false + }); + }, + updateProps: function updateProps(select, newProps) { + var _this$props3 = _this.props, + cellKey = _this$props3.cellKey, + prevCellKey = _this$props3.prevCellKey; + _this.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps); } - if (hasUncaughtError) { - hasUncaughtError = false; - var error$1 = firstUncaughtError; - firstUncaughtError = null; - throw error$1; + }; + _this._onLayout = function (nativeEvent) { + _this.props.onCellLayout && _this.props.onCellLayout(nativeEvent, _this.props.cellKey, _this.props.index); + }; + return _this; + } + (0, _createClass2.default)(CellRenderer, [{ + key: "updateSeparatorProps", + value: function updateSeparatorProps(newProps) { + this.setState(function (state) { + return { + separatorProps: Object.assign({}, state.separatorProps, newProps) + }; + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.props.onUnmount(this.props.cellKey); + } + }, { + key: "_renderElement", + value: function _renderElement(renderItem, ListItemComponent, item, index) { + if (renderItem && ListItemComponent) { + console.warn('VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take' + ' precedence over renderItem.'); } - - if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { - flushPassiveEffects(); + if (ListItemComponent) { + /* $FlowFixMe[not-a-component] (>=0.108.0 site=react_native_fb) This + * comment suppresses an error found when Flow v0.108 was deployed. To + * see the error, delete this comment and run Flow. */ + /* $FlowFixMe[incompatible-type-arg] (>=0.108.0 site=react_native_fb) + * This comment suppresses an error found when Flow v0.108 was deployed. + * To see the error, delete this comment and run Flow. */ + return React.createElement(ListItemComponent, { + item: item, + index: index, + separators: this._separators + }); } - - remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { - { - markNestedUpdateScheduled(); - } - - if (root === rootWithNestedUpdates) { - nestedUpdateCount++; - } else { - nestedUpdateCount = 0; - rootWithNestedUpdates = root; - } - } else { - nestedUpdateCount = 0; + if (renderItem) { + return renderItem({ + item: item, + index: index, + separators: this._separators + }); } - - flushSyncCallbacks(); - return null; + (0, _invariant.default)(false, 'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.'); } - function flushPassiveEffects() { - if (rootWithPendingPassiveEffects !== null) { - var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - var priority = lowerEventPriority(DefaultEventPriority, renderPriority); - var prevTransition = ReactCurrentBatchConfig$2.transition; - var previousPriority = getCurrentUpdatePriority(); - try { - ReactCurrentBatchConfig$2.transition = null; - setCurrentUpdatePriority(priority); - return flushPassiveEffectsImpl(); - } finally { - setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; - } - } + }, { + key: "render", + value: function render() { + var _this$props4 = this.props, + CellRendererComponent = _this$props4.CellRendererComponent, + ItemSeparatorComponent = _this$props4.ItemSeparatorComponent, + ListItemComponent = _this$props4.ListItemComponent, + cellKey = _this$props4.cellKey, + horizontal = _this$props4.horizontal, + item = _this$props4.item, + index = _this$props4.index, + inversionStyle = _this$props4.inversionStyle, + onCellFocusCapture = _this$props4.onCellFocusCapture, + onCellLayout = _this$props4.onCellLayout, + renderItem = _this$props4.renderItem; + var element = this._renderElement(renderItem, ListItemComponent, item, index); - return false; + // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and + // called explicitly by `ScrollViewStickyHeader`. + var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? + // $FlowFixMe[incompatible-type] + ItemSeparatorComponent : + // $FlowFixMe[incompatible-type] + ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps)); + var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle; + var result = !CellRendererComponent ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_reactNative.View, Object.assign({ + style: cellStyle, + onFocusCapture: onCellFocusCapture + }, onCellLayout && { + onLayout: this._onLayout + }, { + children: [element, itemSeparator] + })) : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(CellRendererComponent, Object.assign({ + cellKey: cellKey, + index: index, + item: item, + style: cellStyle, + onFocusCapture: onCellFocusCapture + }, onCellLayout && { + onLayout: this._onLayout + }, { + children: [element, itemSeparator] + })); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { + cellKey: this.props.cellKey, + children: result + }); } - function enqueuePendingPassiveProfilerEffect(fiber) { - { - pendingPassiveProfilerEffects.push(fiber); - if (!rootDoesHavePassiveEffects) { - rootDoesHavePassiveEffects = true; - scheduleCallback$1(NormalPriority, function () { - flushPassiveEffects(); - return null; - }); - } - } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, prevState) { + return { + separatorProps: Object.assign({}, prevState.separatorProps, { + leadingItem: props.item + }) + }; } - function flushPassiveEffectsImpl() { - if (rootWithPendingPassiveEffects === null) { - return false; - } + }]); + return CellRenderer; + }(React.Component); + exports.default = CellRenderer; + var styles = _reactNative.StyleSheet.create({ + row: { + flexDirection: 'row' + }, + rowReverse: { + flexDirection: 'row-reverse' + }, + columnReverse: { + flexDirection: 'column-reverse' + } + }); +},390,[3,12,13,49,51,53,1,20,41,89,391],"node_modules/@react-native/virtualized-lists/Lists/VirtualizedListCellRenderer.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VirtualizedListCellContextProvider = VirtualizedListCellContextProvider; + exports.VirtualizedListContext = void 0; + exports.VirtualizedListContextProvider = VirtualizedListContextProvider; + exports.VirtualizedListContextResetter = VirtualizedListContextResetter; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/@react-native/virtualized-lists/Lists/VirtualizedListContext.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var VirtualizedListContext = React.createContext(null); + exports.VirtualizedListContext = VirtualizedListContext; + if (__DEV__) { + VirtualizedListContext.displayName = 'VirtualizedListContext'; + } - var transitions = pendingPassiveTransitions; - pendingPassiveTransitions = null; - var root = rootWithPendingPassiveEffects; - var lanes = pendingPassiveEffectsLanes; - rootWithPendingPassiveEffects = null; + /** + * Resets the context. Intended for use by portal-like components (e.g. Modal). + */ + function VirtualizedListContextResetter(_ref) { + var children = _ref.children; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: null, + children: children + }); + } - pendingPassiveEffectsLanes = NoLanes; - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - throw new Error("Cannot flush passive effects while already rendering."); + /** + * Sets the context with memoization. Intended to be used by `VirtualizedList`. + */ + function VirtualizedListContextProvider(_ref2) { + var children = _ref2.children, + value = _ref2.value; + // Avoid setting a newly created context object if the values are identical. + var context = (0, React.useMemo)(function () { + return { + cellKey: null, + getScrollMetrics: value.getScrollMetrics, + horizontal: value.horizontal, + getOutermostParentListRef: value.getOutermostParentListRef, + registerAsNestedChild: value.registerAsNestedChild, + unregisterAsNestedChild: value.unregisterAsNestedChild + }; + }, [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.registerAsNestedChild, value.unregisterAsNestedChild]); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: context, + children: children + }); + } + + /** + * Sets the `cellKey`. Intended to be used by `VirtualizedList` for each cell. + */ + function VirtualizedListCellContextProvider(_ref3) { + var cellKey = _ref3.cellKey, + children = _ref3.children; + // Avoid setting a newly created context object if the values are identical. + var currContext = (0, React.useContext)(VirtualizedListContext); + var context = (0, React.useMemo)(function () { + return currContext == null ? null : Object.assign({}, currContext, { + cellKey: cellKey + }); + }, [currContext, cellKey]); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { + value: context, + children: children + }); + } +},391,[41,89],"node_modules/@react-native/virtualized-lists/Lists/VirtualizedListContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.CellRenderMask = void 0; + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var CellRenderMask = /*#__PURE__*/function () { + function CellRenderMask(numCells) { + (0, _classCallCheck2.default)(this, CellRenderMask); + (0, _invariant.default)(numCells >= 0, 'CellRenderMask must contain a non-negative number os cells'); + this._numCells = numCells; + if (numCells === 0) { + this._regions = []; + } else { + this._regions = [{ + first: 0, + last: numCells - 1, + isSpacer: true + }]; + } + } + (0, _createClass2.default)(CellRenderMask, [{ + key: "enumerateRegions", + value: function enumerateRegions() { + return this._regions; + } + }, { + key: "addCells", + value: function addCells(cells) { + var _this$_regions; + (0, _invariant.default)(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, 'CellRenderMask.addCells called with invalid cell range'); + + // VirtualizedList uses inclusive ranges, where zero-count states are + // possible. E.g. [0, -1] for no cells, starting at 0. + if (cells.last < cells.first) { + return; } - { - isFlushingPassiveEffects = true; - didScheduleUpdateDuringPassiveEffects = false; + var _this$_findRegion = this._findRegion(cells.first), + _this$_findRegion2 = (0, _slicedToArray2.default)(_this$_findRegion, 2), + firstIntersect = _this$_findRegion2[0], + firstIntersectIdx = _this$_findRegion2[1]; + var _this$_findRegion3 = this._findRegion(cells.last), + _this$_findRegion4 = (0, _slicedToArray2.default)(_this$_findRegion3, 2), + lastIntersect = _this$_findRegion4[0], + lastIntersectIdx = _this$_findRegion4[1]; + + // Fast-path if the cells to add are already all present in the mask. We + // will otherwise need to do some mutation. + if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) { + return; } - var prevExecutionContext = executionContext; - executionContext |= CommitContext; - commitPassiveUnmountEffects(root.current); - commitPassiveMountEffects(root, root.current, lanes, transitions); - { - var profilerEffects = pendingPassiveProfilerEffects; - pendingPassiveProfilerEffects = []; - for (var i = 0; i < profilerEffects.length; i++) { - var _fiber = profilerEffects[i]; - commitPassiveEffectDurations(root, _fiber); + // We need to replace the existing covered regions with 1-3 new regions + // depending whether we need to split spacers out of overlapping regions. + var newLeadRegion = []; + var newTailRegion = []; + var newMainRegion = Object.assign({}, cells, { + isSpacer: false + }); + if (firstIntersect.first < newMainRegion.first) { + if (firstIntersect.isSpacer) { + newLeadRegion.push({ + first: firstIntersect.first, + last: newMainRegion.first - 1, + isSpacer: true + }); + } else { + newMainRegion.first = firstIntersect.first; } } - executionContext = prevExecutionContext; - flushSyncCallbacks(); - { - if (didScheduleUpdateDuringPassiveEffects) { - if (root === rootWithPassiveNestedUpdates) { - nestedPassiveUpdateCount++; - } else { - nestedPassiveUpdateCount = 0; - rootWithPassiveNestedUpdates = root; - } + if (lastIntersect.last > newMainRegion.last) { + if (lastIntersect.isSpacer) { + newTailRegion.push({ + first: newMainRegion.last + 1, + last: lastIntersect.last, + isSpacer: true + }); } else { - nestedPassiveUpdateCount = 0; + newMainRegion.last = lastIntersect.last; } - isFlushingPassiveEffects = false; - didScheduleUpdateDuringPassiveEffects = false; - } - - onPostCommitRoot(root); - { - var stateNode = root.current.stateNode; - stateNode.effectDuration = 0; - stateNode.passiveEffectDuration = 0; } - return true; + var replacementRegions = [].concat(newLeadRegion, [newMainRegion], newTailRegion); + var numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1; + (_this$_regions = this._regions).splice.apply(_this$_regions, [firstIntersectIdx, numRegionsToDelete].concat((0, _toConsumableArray2.default)(replacementRegions))); } - function isAlreadyFailedLegacyErrorBoundary(instance) { - return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + }, { + key: "numCells", + value: function numCells() { + return this._numCells; } - function markLegacyErrorBoundaryAsFailed(instance) { - if (legacyErrorBoundariesThatAlreadyFailed === null) { - legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); - } else { - legacyErrorBoundariesThatAlreadyFailed.add(instance); - } + }, { + key: "equals", + value: function equals(other) { + return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(function (region, i) { + return region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer; + }); } - function prepareToThrowUncaughtError(error) { - if (!hasUncaughtError) { - hasUncaughtError = true; - firstUncaughtError = error; - } + }, { + key: "_findRegion", + value: function _findRegion(cellIdx) { + var firstIdx = 0; + var lastIdx = this._regions.length - 1; + while (firstIdx <= lastIdx) { + var middleIdx = Math.floor((firstIdx + lastIdx) / 2); + var middleRegion = this._regions[middleIdx]; + if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) { + return [middleRegion, middleIdx]; + } else if (cellIdx < middleRegion.first) { + lastIdx = middleIdx - 1; + } else if (cellIdx > middleRegion.last) { + firstIdx = middleIdx + 1; + } + } + (0, _invariant.default)(false, `A region was not found containing cellIdx ${cellIdx}`); } - var onUncaughtError = prepareToThrowUncaughtError; - function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { - var errorInfo = createCapturedValue(error, sourceFiber); - var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - enqueueUpdate(rootFiber, update); - var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane); - if (root !== null) { - markRootUpdated(root, SyncLane, eventTime); - ensureRootIsScheduled(root, eventTime); - } + }]); + return CellRenderMask; + }(); + exports.CellRenderMask = CellRenderMask; +},392,[3,6,22,12,13,20],"node_modules/@react-native/virtualized-lists/Lists/CellRenderMask.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); + var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); + var _reactNative = _$$_REQUIRE(_dependencyMap[9], "react-native"); + var _VirtualizedList = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./VirtualizedList")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); + var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"]; + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/@react-native/virtualized-lists/Lists/VirtualizedSectionList.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * Right now this just flattens everything into one list and uses VirtualizedList under the + * hood. The only operation that might not scale well is concatting the data arrays of all the + * sections when new props are received, which should be plenty fast for up to ~10,000 items. + */ + var VirtualizedSectionList = /*#__PURE__*/function (_React$PureComponent) { + (0, _inherits2.default)(VirtualizedSectionList, _React$PureComponent); + var _super = _createSuper(VirtualizedSectionList); + function VirtualizedSectionList() { + var _this; + (0, _classCallCheck2.default)(this, VirtualizedSectionList); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { - { - reportUncaughtErrorInDEV(error$1); - setIsRunningInsertionEffect(false); - } - if (sourceFiber.tag === HostRoot) { - captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); - return; + _this = _super.call.apply(_super, [this].concat(args)); + // $FlowFixMe[missing-local-annot] + _this._keyExtractor = function (item, index) { + var info = _this._subExtractor(index); + return info && info.key || String(index); + }; + _this._convertViewable = function (viewable) { + var _info$index; + (0, _invariant.default)(viewable.index != null, 'Received a broken ViewToken'); + var info = _this._subExtractor(viewable.index); + if (!info) { + return null; } - var fiber = null; - { - fiber = sourceFiber.return; + var keyExtractorWithNullableIndex = info.section.keyExtractor; + var keyExtractorWithNonNullableIndex = _this.props.keyExtractor || _$$_REQUIRE(_dependencyMap[13], "./VirtualizeUtils").keyExtractor; + var key = keyExtractorWithNullableIndex != null ? keyExtractorWithNullableIndex(viewable.item, info.index) : keyExtractorWithNonNullableIndex(viewable.item, (_info$index = info.index) != null ? _info$index : 0); + return Object.assign({}, viewable, { + index: info.index, + key: key, + section: info.section + }); + }; + _this._onViewableItemsChanged = function (_ref) { + var viewableItems = _ref.viewableItems, + changed = _ref.changed; + var onViewableItemsChanged = _this.props.onViewableItemsChanged; + if (onViewableItemsChanged != null) { + onViewableItemsChanged({ + viewableItems: viewableItems.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean), + changed: changed.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean) + }); } - while (fiber !== null) { - if (fiber.tag === HostRoot) { - captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1); - return; - } else if (fiber.tag === ClassComponent) { - var ctor = fiber.type; - var instance = fiber.stateNode; - if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { - var errorInfo = createCapturedValue(error$1, sourceFiber); - var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - enqueueUpdate(fiber, update); - var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane); - if (root !== null) { - markRootUpdated(root, SyncLane, eventTime); - ensureRootIsScheduled(root, eventTime); + }; + _this._renderItem = function (listItemCount) { + return ( + // eslint-disable-next-line react/no-unstable-nested-components + function (_ref2) { + var item = _ref2.item, + index = _ref2.index; + var info = _this._subExtractor(index); + if (!info) { + return null; + } + var infoIndex = info.index; + if (infoIndex == null) { + var section = info.section; + if (info.header === true) { + var renderSectionHeader = _this.props.renderSectionHeader; + return renderSectionHeader ? renderSectionHeader({ + section: section + }) : null; + } else { + var renderSectionFooter = _this.props.renderSectionFooter; + return renderSectionFooter ? renderSectionFooter({ + section: section + }) : null; } - return; + } else { + var renderItem = info.section.renderItem || _this.props.renderItem; + var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount); + (0, _invariant.default)(renderItem, 'no renderItem!'); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(ItemWithSeparator, { + SeparatorComponent: SeparatorComponent, + LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined, + cellKey: info.key, + index: infoIndex, + item: item, + leadingItem: info.leadingItem, + leadingSection: info.leadingSection, + prevCellKey: (_this._subExtractor(index - 1) || {}).key + // Callback to provide updateHighlight for this item + , + setSelfHighlightCallback: _this._setUpdateHighlightFor, + setSelfUpdatePropsCallback: _this._setUpdatePropsFor + // Provide child ability to set highlight/updateProps for previous item using prevCellKey + , + updateHighlightFor: _this._updateHighlightFor, + updatePropsFor: _this._updatePropsFor, + renderItem: renderItem, + section: info.section, + trailingItem: info.trailingItem, + trailingSection: info.trailingSection, + inverted: !!_this.props.inverted + }); } } - fiber = fiber.return; - } - { - error("Internal React error: Attempted to capture a commit phase error " + "inside a detached tree. This indicates a bug in React. Likely " + "causes include deleting the same fiber more than once, committing an " + "already-finished tree, or an inconsistent return pointer.\n\n" + "Error message:\n\n%s", error$1); - } - } - function pingSuspendedRoot(root, wakeable, pingedLanes) { - var pingCache = root.pingCache; - if (pingCache !== null) { - pingCache.delete(wakeable); + ); + }; + _this._updatePropsFor = function (cellKey, value) { + var updateProps = _this._updatePropsMap[cellKey]; + if (updateProps != null) { + updateProps(value); } - var eventTime = requestEventTime(); - markRootPinged(root, pingedLanes); - warnIfSuspenseResolutionNotWrappedWithActDEV(root); - if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { - if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { - prepareFreshStack(root, NoLanes); - } else { - workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); - } + }; + _this._updateHighlightFor = function (cellKey, value) { + var updateHighlight = _this._updateHighlightMap[cellKey]; + if (updateHighlight != null) { + updateHighlight(value); } - ensureRootIsScheduled(root, eventTime); - } - function retryTimedOutBoundary(boundaryFiber, retryLane) { - if (retryLane === NoLane) { - retryLane = requestRetryLane(boundaryFiber); + }; + _this._setUpdateHighlightFor = function (cellKey, updateHighlightFn) { + if (updateHighlightFn != null) { + _this._updateHighlightMap[cellKey] = updateHighlightFn; + } else { + // $FlowFixMe[prop-missing] + delete _this._updateHighlightFor[cellKey]; } - - var eventTime = requestEventTime(); - var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); - if (root !== null) { - markRootUpdated(root, retryLane, eventTime); - ensureRootIsScheduled(root, eventTime); + }; + _this._setUpdatePropsFor = function (cellKey, updatePropsFn) { + if (updatePropsFn != null) { + _this._updatePropsMap[cellKey] = updatePropsFn; + } else { + delete _this._updatePropsMap[cellKey]; } - } - function retryDehydratedSuspenseBoundary(boundaryFiber) { - var suspenseState = boundaryFiber.memoizedState; - var retryLane = NoLane; - if (suspenseState !== null) { - retryLane = suspenseState.retryLane; + }; + _this._updateHighlightMap = {}; + _this._updatePropsMap = {}; + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + return _this; + } + (0, _createClass2.default)(VirtualizedSectionList, [{ + key: "scrollToLocation", + value: function scrollToLocation(params) { + var index = params.itemIndex; + for (var i = 0; i < params.sectionIndex; i++) { + index += this.props.getItemCount(this.props.sections[i].data) + 2; } - retryTimedOutBoundary(boundaryFiber, retryLane); - } - function resolveRetryWakeable(boundaryFiber, wakeable) { - var retryLane = NoLane; - - var retryCache; - switch (boundaryFiber.tag) { - case SuspenseComponent: - retryCache = boundaryFiber.stateNode; - var suspenseState = boundaryFiber.memoizedState; - if (suspenseState !== null) { - retryLane = suspenseState.retryLane; - } - break; - case SuspenseListComponent: - retryCache = boundaryFiber.stateNode; - break; - default: - throw new Error("Pinged unknown suspense boundary type. " + "This is probably a bug in React."); + var viewOffset = params.viewOffset || 0; + if (this._listRef == null) { + return; } - if (retryCache !== null) { - retryCache.delete(wakeable); + if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) { + var frame = this._listRef.__getFrameMetricsApprox(index - params.itemIndex, this._listRef.props); + viewOffset += frame.length; } - retryTimedOutBoundary(boundaryFiber, retryLane); + var toIndexParams = Object.assign({}, params, { + viewOffset: viewOffset, + index: index + }); + // $FlowFixMe[incompatible-use] + this._listRef.scrollToIndex(toIndexParams); } - - function jnd(timeElapsed) { - return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + }, { + key: "getListRef", + value: function getListRef() { + return this._listRef; } - function checkForNestedUpdates() { - if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { - nestedUpdateCount = 0; - rootWithNestedUpdates = null; - throw new Error("Maximum update depth exceeded. This can happen when a component " + "repeatedly calls setState inside componentWillUpdate or " + "componentDidUpdate. React limits the number of nested updates to " + "prevent infinite loops."); - } - { - if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { - nestedPassiveUpdateCount = 0; - rootWithPassiveNestedUpdates = null; - error("Maximum update depth exceeded. This can happen when a component " + "calls setState inside useEffect, but useEffect either doesn't " + "have a dependency array, or one of the dependencies changes on " + "every render."); + }, { + key: "render", + value: function render() { + var _this2 = this; + var _this$props = this.props, + ItemSeparatorComponent = _this$props.ItemSeparatorComponent, + SectionSeparatorComponent = _this$props.SectionSeparatorComponent, + _renderItem = _this$props.renderItem, + renderSectionFooter = _this$props.renderSectionFooter, + renderSectionHeader = _this$props.renderSectionHeader, + _sections = _this$props.sections, + stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, + passThroughProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0; + var stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : undefined; + var itemCount = 0; + for (var section of this.props.sections) { + // Track the section header indices + if (stickyHeaderIndices != null) { + stickyHeaderIndices.push(itemCount + listHeaderOffset); } + + // Add two for the section header and footer. + itemCount += 2; + itemCount += this.props.getItemCount(section.data); } + var renderItem = this._renderItem(itemCount); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_VirtualizedList.default, Object.assign({}, passThroughProps, { + keyExtractor: this._keyExtractor, + stickyHeaderIndices: stickyHeaderIndices, + renderItem: renderItem, + data: this.props.sections, + getItem: function getItem(sections, index) { + return _this2._getItem(_this2.props, sections, index); + }, + getItemCount: function getItemCount() { + return itemCount; + }, + onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined, + ref: this._captureRef + })); } - function flushRenderPhaseStrictModeWarningsInDEV() { - { - ReactStrictModeWarnings.flushLegacyContextWarning(); - { - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); - } + }, { + key: "_getItem", + value: function _getItem(props, sections, index) { + if (!sections) { + return null; } - } - var didWarnStateUpdateForNotYetMountedComponent = null; - function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { - { - if ((executionContext & RenderContext) !== NoContext) { - return; - } - if (!(fiber.mode & ConcurrentMode)) { - return; - } - var tag = fiber.tag; - if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { - return; - } - - var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; - if (didWarnStateUpdateForNotYetMountedComponent !== null) { - if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) { - return; - } - didWarnStateUpdateForNotYetMountedComponent.add(componentName); + var itemIdx = index - 1; + for (var i = 0; i < sections.length; i++) { + var section = sections[i]; + var sectionData = section.data; + var itemCount = props.getItemCount(sectionData); + if (itemIdx === -1 || itemIdx === itemCount) { + // We intend for there to be overflow by one on both ends of the list. + // This will be for headers and footers. When returning a header or footer + // item the section itself is the item. + return section; + } else if (itemIdx < itemCount) { + // If we are in the bounds of the list's data then return the item. + return props.getItem(sectionData, itemIdx); } else { - didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]); - } - var previousFiber = current; - try { - setCurrentFiber(fiber); - error("Can't perform a React state update on a component that hasn't mounted yet. " + "This indicates that you have a side-effect in your render function that " + "asynchronously later calls tries to update the component. Move this work to " + "useEffect instead."); - } finally { - if (previousFiber) { - setCurrentFiber(fiber); - } else { - resetCurrentFiber(); - } + itemIdx -= itemCount + 2; // Add two for the header and footer } } - } - var beginWork$1; - { - var dummyFiber = null; - beginWork$1 = function beginWork$1(current, unitOfWork, lanes) { - var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); - try { - return beginWork(current, unitOfWork, lanes); - } catch (originalError) { - if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === "object" && typeof originalError.then === "function") { - throw originalError; - } - - resetContextDependencies(); - resetHooksAfterThrow(); - - unwindInterruptedWork(current, unitOfWork); - - assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); - if (unitOfWork.mode & ProfileMode) { - startProfilerTimer(unitOfWork); - } - - invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); - if (hasCaughtError()) { - var replayError = clearCaughtError(); - if (typeof replayError === "object" && replayError !== null && replayError._suppressLogging && typeof originalError === "object" && originalError !== null && !originalError._suppressLogging) { - originalError._suppressLogging = true; - } - } - throw originalError; - } - }; - } - var didWarnAboutUpdateInRender = false; - var didWarnAboutUpdateInRenderForAnotherComponent; - { - didWarnAboutUpdateInRenderForAnotherComponent = new Set(); + return null; } - function warnAboutRenderPhaseUpdatesInDEV(fiber) { - { - if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) { - switch (fiber.tag) { - case FunctionComponent: - case ForwardRef: - case SimpleMemoComponent: - { - var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; - - var dedupeKey = renderingComponentName; - if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { - didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); - var setStateComponentName = getComponentNameFromFiber(fiber) || "Unknown"; - error("Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName); - } - break; - } - case ClassComponent: - { - if (!didWarnAboutUpdateInRender) { - error("Cannot update during an existing state transition (such as " + "within `render`). Render methods should be a pure " + "function of props and state."); - didWarnAboutUpdateInRender = true; - } - break; - } - } + }, { + key: "_subExtractor", + value: function _subExtractor(index) { + var itemIndex = index; + var _this$props2 = this.props, + getItem = _this$props2.getItem, + getItemCount = _this$props2.getItemCount, + keyExtractor = _this$props2.keyExtractor, + sections = _this$props2.sections; + for (var i = 0; i < sections.length; i++) { + var section = sections[i]; + var sectionData = section.data; + var key = section.key || String(i); + itemIndex -= 1; // The section adds an item for the header + if (itemIndex >= getItemCount(sectionData) + 1) { + itemIndex -= getItemCount(sectionData) + 1; // The section adds an item for the footer. + } else if (itemIndex === -1) { + return { + section: section, + key: key + ':header', + index: null, + header: true, + trailingSection: sections[i + 1] + }; + } else if (itemIndex === getItemCount(sectionData)) { + return { + section: section, + key: key + ':footer', + index: null, + header: false, + trailingSection: sections[i + 1] + }; + } else { + var extractor = section.keyExtractor || keyExtractor || _$$_REQUIRE(_dependencyMap[13], "./VirtualizeUtils").keyExtractor; + return { + section: section, + key: key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex), + index: itemIndex, + leadingItem: getItem(sectionData, itemIndex - 1), + leadingSection: sections[i - 1], + trailingItem: getItem(sectionData, itemIndex + 1), + trailingSection: sections[i + 1] + }; } } } - function restorePendingUpdaters(root, lanes) { - { - if (isDevToolsPresent) { - var memoizedUpdaters = root.memoizedUpdaters; - memoizedUpdaters.forEach(function (schedulingFiber) { - addFiberToLanesMap(root, schedulingFiber, lanes); - }); - } + }, { + key: "_getSeparatorComponent", + value: function _getSeparatorComponent(index, info, listItemCount) { + info = info || this._subExtractor(index); + if (!info) { + return null; } - } - - var fakeActCallbackNode = {}; - function scheduleCallback$1(priorityLevel, callback) { - { - var actQueue = ReactCurrentActQueue$1.current; - if (actQueue !== null) { - actQueue.push(callback); - return fakeActCallbackNode; - } else { - return scheduleCallback(priorityLevel, callback); - } + var ItemSeparatorComponent = info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent; + var SectionSeparatorComponent = this.props.SectionSeparatorComponent; + var isLastItemInList = index === listItemCount - 1; + var isLastItemInSection = info.index === this.props.getItemCount(info.section.data) - 1; + if (SectionSeparatorComponent && isLastItemInSection) { + return SectionSeparatorComponent; } - } - function cancelCallback$1(callbackNode) { - if (callbackNode === fakeActCallbackNode) { - return; + if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) { + return ItemSeparatorComponent; } - - return cancelCallback(callbackNode); - } - function shouldForceFlushFallbacksInDEV() { - return ReactCurrentActQueue$1.current !== null; + return null; } - function warnIfUpdatesNotWrappedWithActDEV(fiber) { - { - if (fiber.mode & ConcurrentMode) { - if (!isConcurrentActEnvironment()) { - return; - } - } else { - if (!isLegacyActEnvironment()) { - return; - } - if (executionContext !== NoContext) { - return; - } - if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { - return; - } - } - if (ReactCurrentActQueue$1.current === null) { - var previousFiber = current; - try { - setCurrentFiber(fiber); - error("An update to %s inside a test was not wrapped in act(...).\n\n" + "When testing, code that causes React state updates should be " + "wrapped into act(...):\n\n" + "act(() => {\n" + " /* fire events that update state */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); - } finally { - if (previousFiber) { - setCurrentFiber(fiber); - } else { - resetCurrentFiber(); - } - } - } + }]); + return VirtualizedSectionList; + }(React.PureComponent); + function ItemWithSeparator(props) { + var LeadingSeparatorComponent = props.LeadingSeparatorComponent, + SeparatorComponent = props.SeparatorComponent, + cellKey = props.cellKey, + prevCellKey = props.prevCellKey, + setSelfHighlightCallback = props.setSelfHighlightCallback, + updateHighlightFor = props.updateHighlightFor, + setSelfUpdatePropsCallback = props.setSelfUpdatePropsCallback, + updatePropsFor = props.updatePropsFor, + item = props.item, + index = props.index, + section = props.section, + inverted = props.inverted; + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + leadingSeparatorHiglighted = _React$useState2[0], + setLeadingSeparatorHighlighted = _React$useState2[1]; + var _React$useState3 = React.useState(false), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + separatorHighlighted = _React$useState4[0], + setSeparatorHighlighted = _React$useState4[1]; + var _React$useState5 = React.useState({ + leadingItem: props.leadingItem, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.item, + trailingSection: props.trailingSection + }), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + leadingSeparatorProps = _React$useState6[0], + setLeadingSeparatorProps = _React$useState6[1]; + var _React$useState7 = React.useState({ + leadingItem: props.item, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.trailingItem, + trailingSection: props.trailingSection + }), + _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), + separatorProps = _React$useState8[0], + setSeparatorProps = _React$useState8[1]; + React.useEffect(function () { + setSelfHighlightCallback(cellKey, setSeparatorHighlighted); + // $FlowFixMe[incompatible-call] + setSelfUpdatePropsCallback(cellKey, setSeparatorProps); + return function () { + setSelfUpdatePropsCallback(cellKey, null); + setSelfHighlightCallback(cellKey, null); + }; + }, [cellKey, setSelfHighlightCallback, setSeparatorProps, setSelfUpdatePropsCallback]); + var separators = { + highlight: function highlight() { + setLeadingSeparatorHighlighted(true); + setSeparatorHighlighted(true); + if (prevCellKey != null) { + updateHighlightFor(prevCellKey, true); } - } - function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { - { - if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) { - error("A suspended resource finished loading inside a test, but the event " + "was not wrapped in act(...).\n\n" + "When testing, code that resolves suspended data should be wrapped " + "into act(...):\n\n" + "act(() => {\n" + " /* finish loading suspended data */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act"); + }, + unhighlight: function unhighlight() { + setLeadingSeparatorHighlighted(false); + setSeparatorHighlighted(false); + if (prevCellKey != null) { + updateHighlightFor(prevCellKey, false); + } + }, + updateProps: function updateProps(select, newProps) { + if (select === 'leading') { + if (LeadingSeparatorComponent != null) { + setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps)); + } else if (prevCellKey != null) { + // update the previous item's separator + updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps)); } + } else if (select === 'trailing' && SeparatorComponent != null) { + setSeparatorProps(Object.assign({}, separatorProps, newProps)); } } - function setIsRunningInsertionEffect(isRunning) { - { - isRunningInsertionEffect = isRunning; - } - } - - var resolveFamily = null; - - var failedBoundaries = null; - var setRefreshHandler = function setRefreshHandler(handler) { - { - resolveFamily = handler; - } - }; - function resolveFunctionForHotReloading(type) { - { - if (resolveFamily === null) { - return type; - } - var family = resolveFamily(type); - if (family === undefined) { - return type; - } + }; + var element = props.renderItem({ + item: item, + index: index, + section: section, + separators: separators + }); + var leadingSeparator = LeadingSeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(LeadingSeparatorComponent, Object.assign({ + highlighted: leadingSeparatorHiglighted + }, leadingSeparatorProps)); + var separator = SeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(SeparatorComponent, Object.assign({ + highlighted: separatorHighlighted + }, separatorProps)); + return leadingSeparator || separator ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsxs)(_reactNative.View, { + children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator] + }) : element; + } - return family.current; - } + /* $FlowFixMe[class-object-subtyping] added when improving typing for this + * parameters */ + // $FlowFixMe[method-unbinding] + module.exports = VirtualizedSectionList; +},393,[3,22,149,12,13,52,49,51,53,1,382,20,41,381,89],"node_modules/@react-native/virtualized-lists/Lists/VirtualizedSectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Image/Image")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../createAnimatedComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = (0, _createAnimatedComponent.default)(_Image.default); + exports.default = _default; +},394,[3,395,343,41],"node_modules/react-native/Libraries/Animated/components/AnimatedImage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/asyncToGenerator")); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../StyleSheet/flattenStyle")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../StyleSheet/StyleSheet")); + var _ImageAnalyticsTagContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./ImageAnalyticsTagContext")); + var _ImageInjection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./ImageInjection")); + var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./ImageViewNativeComponent")); + var _NativeImageLoaderIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeImageLoaderIOS")); + var _resolveAssetSource = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./resolveAssetSource")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _excluded = ["aria-busy", "aria-checked", "aria-disabled", "aria-expanded", "aria-selected", "height", "src", "width"]; + var _queryCache, + _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Image/Image.ios.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getSize(uri, success, failure) { + _NativeImageLoaderIOS.default.getSize(uri).then(function (_ref) { + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), + width = _ref2[0], + height = _ref2[1]; + return success(width, height); + }).catch(failure || function () { + console.warn('Failed to get size for image ' + uri); + }); + } + function getSizeWithHeaders(uri, headers, success, failure) { + return _NativeImageLoaderIOS.default.getSizeWithHeaders(uri, headers).then(function (sizes) { + success(sizes.width, sizes.height); + }).catch(failure || function () { + console.warn('Failed to get size for image: ' + uri); + }); + } + function prefetchWithMetadata(url, queryRootName, rootTag) { + if (_NativeImageLoaderIOS.default.prefetchImageWithMetadata) { + // number params like rootTag cannot be nullable before TurboModules is available + return _NativeImageLoaderIOS.default.prefetchImageWithMetadata(url, queryRootName, + // NOTE: RootTag type + // $FlowFixMe[incompatible-call] RootTag: number is incompatible with RootTag + rootTag ? rootTag : 0); + } else { + return _NativeImageLoaderIOS.default.prefetchImage(url); + } + } + function prefetch(url) { + return _NativeImageLoaderIOS.default.prefetchImage(url); + } + function queryCache(_x) { + return (_queryCache = _queryCache || (0, _asyncToGenerator2.default)(function* (urls) { + return yield _NativeImageLoaderIOS.default.queryCache(urls); + })).apply(this, arguments); + } + /** + * A React component for displaying different types of images, + * including network images, static resources, temporary local images, and + * images from local disk, such as the camera roll. + * + * See https://reactnative.dev/docs/image + */ + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + var BaseImage = function BaseImage(props, forwardedRef) { + var _props$accessibilityS, _props$accessibilityS2, _props$accessibilityS3, _props$accessibilityS4, _props$accessibilityS5, _props$ariaLabel; + var source = (0, _$$_REQUIRE(_dependencyMap[12], "./ImageSourceUtils").getImageSourcesFromImageProps)(props) || { + uri: undefined, + width: undefined, + height: undefined + }; + var sources; + var style; + if (Array.isArray(source)) { + // $FlowFixMe[underconstrained-implicit-instantiation] + style = (0, _flattenStyle.default)([styles.base, props.style]) || {}; + sources = source; + } else { + // $FlowFixMe[incompatible-type] + var _source$width = source.width, + _width = _source$width === void 0 ? props.width : _source$width, + _source$height = source.height, + _height = _source$height === void 0 ? props.height : _source$height, + uri = source.uri; + // $FlowFixMe[underconstrained-implicit-instantiation] + style = (0, _flattenStyle.default)([{ + width: _width, + height: _height + }, styles.base, props.style]) || {}; + sources = [source]; + if (uri === '') { + console.warn('source.uri should not be an empty string'); } - function resolveClassForHotReloading(type) { - return resolveFunctionForHotReloading(type); + } + var objectFit = + // $FlowFixMe[prop-missing] + style && style.objectFit ? (0, _$$_REQUIRE(_dependencyMap[13], "./ImageUtils").convertObjectFitToResizeMode)(style.objectFit) : null; + var resizeMode = + // $FlowFixMe[prop-missing] + objectFit || props.resizeMode || style && style.resizeMode || 'cover'; + // $FlowFixMe[prop-missing] + var tintColor = props.tintColor || style.tintColor; + if (props.children != null) { + 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 ariaBusy = props['aria-busy'], + ariaChecked = props['aria-checked'], + ariaDisabled = props['aria-disabled'], + ariaExpanded = props['aria-expanded'], + ariaSelected = props['aria-selected'], + height = props.height, + src = props.src, + width = props.width, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var _accessibilityState = { + busy: ariaBusy != null ? ariaBusy : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.busy, + checked: ariaChecked != null ? ariaChecked : (_props$accessibilityS2 = props.accessibilityState) == null ? void 0 : _props$accessibilityS2.checked, + disabled: ariaDisabled != null ? ariaDisabled : (_props$accessibilityS3 = props.accessibilityState) == null ? void 0 : _props$accessibilityS3.disabled, + expanded: ariaExpanded != null ? ariaExpanded : (_props$accessibilityS4 = props.accessibilityState) == null ? void 0 : _props$accessibilityS4.expanded, + selected: ariaSelected != null ? ariaSelected : (_props$accessibilityS5 = props.accessibilityState) == null ? void 0 : _props$accessibilityS5.selected + }; + var accessibilityLabel = (_props$ariaLabel = props['aria-label']) != null ? _props$ariaLabel : props.accessibilityLabel; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_ImageAnalyticsTagContext.default.Consumer, { + children: function children(analyticTag) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_ImageViewNativeComponent.default, Object.assign({ + accessibilityState: _accessibilityState + }, restProps, { + accessible: props.alt !== undefined ? true : props.accessible, + accessibilityLabel: accessibilityLabel != null ? accessibilityLabel : props.alt, + ref: forwardedRef, + style: style, + resizeMode: resizeMode, + tintColor: tintColor, + source: sources, + internal_analyticTag: analyticTag + })); } - function resolveForwardRefForHotReloading(type) { - { - if (resolveFamily === null) { - return type; - } - var family = resolveFamily(type); - if (family === undefined) { - if (type !== null && type !== undefined && typeof type.render === "function") { - var currentRender = resolveFunctionForHotReloading(type.render); - if (type.render !== currentRender) { - var syntheticType = { - $$typeof: REACT_FORWARD_REF_TYPE, - render: currentRender - }; - if (type.displayName !== undefined) { - syntheticType.displayName = type.displayName; - } - return syntheticType; - } - } - return type; - } + }); + }; + var ImageForwardRef = React.forwardRef(BaseImage); + var Image = ImageForwardRef; + if (_ImageInjection.default.unstable_createImageComponent != null) { + Image = _ImageInjection.default.unstable_createImageComponent(Image); + } + Image.displayName = 'Image'; - return family.current; - } - } - function isCompatibleFamilyForHotReloading(fiber, element) { - { - if (resolveFamily === null) { - return false; - } - var prevType = fiber.elementType; - var nextType = element.type; + /** + * Retrieve the width and height (in pixels) of an image prior to displaying it. + * + * See https://reactnative.dev/docs/image#getsize + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.getSize = getSize; - var needsCompareFamilies = false; - var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; - switch (fiber.tag) { - case ClassComponent: - { - if (typeof nextType === "function") { - needsCompareFamilies = true; - } - break; - } - case FunctionComponent: - { - if (typeof nextType === "function") { - needsCompareFamilies = true; - } else if ($$typeofNextType === REACT_LAZY_TYPE) { - needsCompareFamilies = true; - } - break; - } - case ForwardRef: - { - if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { - needsCompareFamilies = true; - } else if ($$typeofNextType === REACT_LAZY_TYPE) { - needsCompareFamilies = true; - } - break; - } - case MemoComponent: - case SimpleMemoComponent: - { - if ($$typeofNextType === REACT_MEMO_TYPE) { - needsCompareFamilies = true; - } else if ($$typeofNextType === REACT_LAZY_TYPE) { - needsCompareFamilies = true; - } - break; - } - default: - return false; - } + /** + * Retrieve the width and height (in pixels) of an image prior to displaying it + * with the ability to provide the headers for the request. + * + * See https://reactnative.dev/docs/image#getsizewithheaders + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.getSizeWithHeaders = getSizeWithHeaders; - if (needsCompareFamilies) { - var prevFamily = resolveFamily(prevType); - if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { - return true; - } - } - return false; - } - } - function markFailedErrorBoundaryForHotReloading(fiber) { - { - if (resolveFamily === null) { - return; - } - if (typeof WeakSet !== "function") { - return; - } - if (failedBoundaries === null) { - failedBoundaries = new WeakSet(); - } - failedBoundaries.add(fiber); - } - } - var scheduleRefresh = function scheduleRefresh(root, update) { - { - if (resolveFamily === null) { - return; - } - var staleFamilies = update.staleFamilies, - updatedFamilies = update.updatedFamilies; - flushPassiveEffects(); - flushSync(function () { - scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); - }); - } - }; - var scheduleRoot = function scheduleRoot(root, element) { - { - if (root.context !== emptyContextObject) { - return; - } - flushPassiveEffects(); - flushSync(function () { - updateContainer(element, root, null, null); - }); - } - }; - function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { - { - var alternate = fiber.alternate, - child = fiber.child, - sibling = fiber.sibling, - tag = fiber.tag, - type = fiber.type; - var candidateType = null; - switch (tag) { - case FunctionComponent: - case SimpleMemoComponent: - case ClassComponent: - candidateType = type; - break; - case ForwardRef: - candidateType = type.render; - break; - } - if (resolveFamily === null) { - throw new Error("Expected resolveFamily to be set during hot reload."); - } - var needsRender = false; - var needsRemount = false; - if (candidateType !== null) { - var family = resolveFamily(candidateType); - if (family !== undefined) { - if (staleFamilies.has(family)) { - needsRemount = true; - } else if (updatedFamilies.has(family)) { - if (tag === ClassComponent) { - needsRemount = true; - } else { - needsRender = true; - } - } - } - } - if (failedBoundaries !== null) { - if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { - needsRemount = true; - } - } - if (needsRemount) { - fiber._debugNeedsRemount = true; - } - if (needsRemount || needsRender) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); - } - if (child !== null && !needsRemount) { - scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); - } - if (sibling !== null) { - scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); - } - } - } - var findHostInstancesForRefresh = function findHostInstancesForRefresh(root, families) { - { - var hostInstances = new Set(); - var types = new Set(families.map(function (family) { - return family.current; - })); - findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); - return hostInstances; - } - }; - function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { - { - var child = fiber.child, - sibling = fiber.sibling, - tag = fiber.tag, - type = fiber.type; - var candidateType = null; - switch (tag) { - case FunctionComponent: - case SimpleMemoComponent: - case ClassComponent: - candidateType = type; - break; - case ForwardRef: - candidateType = type.render; - break; - } - var didMatch = false; - if (candidateType !== null) { - if (types.has(candidateType)) { - didMatch = true; - } - } - if (didMatch) { - findHostInstancesForFiberShallowly(fiber, hostInstances); - } else { - if (child !== null) { - findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); - } - } - if (sibling !== null) { - findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); - } - } - } - function findHostInstancesForFiberShallowly(fiber, hostInstances) { - { - var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); - if (foundHostInstances) { - return; - } + /** + * Prefetches a remote image for later use by downloading it to the disk + * cache. + * + * See https://reactnative.dev/docs/image#prefetch + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.prefetch = prefetch; - var node = fiber; - while (true) { - switch (node.tag) { - case HostComponent: - hostInstances.add(node.stateNode); - return; - case HostPortal: - hostInstances.add(node.stateNode.containerInfo); - return; - case HostRoot: - hostInstances.add(node.stateNode.containerInfo); - return; - } - if (node.return === null) { - throw new Error("Expected to reach root first."); - } - node = node.return; - } - } - } - function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { - { - var node = fiber; - var foundHostInstances = false; - while (true) { - if (node.tag === HostComponent) { - foundHostInstances = true; - hostInstances.add(node.stateNode); - } else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - if (node === fiber) { - return foundHostInstances; - } - while (node.sibling === null) { - if (node.return === null || node.return === fiber) { - return foundHostInstances; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - } - return false; - } - var hasBadMapPolyfill; - { - hasBadMapPolyfill = false; - try { - var nonExtensibleObject = Object.preventExtensions({}); + /** + * Prefetches a remote image for later use by downloading it to the disk + * cache, and adds metadata for queryRootName and rootTag. + * + * See https://reactnative.dev/docs/image#prefetch + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.prefetchWithMetadata = prefetchWithMetadata; - new Map([[nonExtensibleObject, null]]); - new Set([nonExtensibleObject]); - } catch (e) { - hasBadMapPolyfill = true; - } - } - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.elementType = null; - this.type = null; - this.stateNode = null; + /** + * Performs cache interrogation. + * + * See https://reactnative.dev/docs/image#querycache + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.queryCache = queryCache; - this.return = null; - this.child = null; - this.sibling = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.memoizedProps = null; - this.updateQueue = null; - this.memoizedState = null; - this.dependencies = null; - this.mode = mode; + /** + * Resolves an asset reference into an object. + * + * See https://reactnative.dev/docs/image#resolveassetsource + */ + /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment + * suppresses an error found when Flow v0.89 was deployed. To see the error, + * delete this comment and run Flow. */ + Image.resolveAssetSource = _resolveAssetSource.default; - this.flags = NoFlags; - this.subtreeFlags = NoFlags; - this.deletions = null; - this.lanes = NoLanes; - this.childLanes = NoLanes; - this.alternate = null; - { - this.actualDuration = Number.NaN; - this.actualStartTime = Number.NaN; - this.selfBaseDuration = Number.NaN; - this.treeBaseDuration = Number.NaN; + /** + * Switch to `deprecated-react-native-prop-types` for compatibility with future + * releases. This is deprecated and will be removed in the future. + */ + Image.propTypes = _$$_REQUIRE(_dependencyMap[15], "deprecated-react-native-prop-types").ImagePropTypes; + var styles = _StyleSheet.default.create({ + base: { + overflow: 'hidden' + } + }); + module.exports = Image; +},395,[3,149,82,22,207,259,396,397,398,400,242,41,401,402,89,295],"node_modules/react-native/Libraries/Image/Image.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - this.actualDuration = 0; - this.actualStartTime = -1; - this.selfBaseDuration = 0; - this.treeBaseDuration = 0; - } - { - this._debugSource = null; - this._debugOwner = null; - this._debugNeedsRemount = false; - this._debugHookTypes = null; - if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { - Object.preventExtensions(this); - } - } - } + var Context = React.createContext(null); + if (__DEV__) { + Context.displayName = 'ImageAnalyticsTagContext'; + } + var _default = Context; + exports.default = _default; +},396,[41],"node_modules/react-native/Libraries/Image/ImageAnalyticsTagContext.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./ImageViewNativeComponent")); + var _TextInlineImageNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./TextInlineImageNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format strict-local + * + */ + var _default = { + unstable_createImageComponent: null + }; + exports.default = _default; +},397,[3,398,399,41],"node_modules/react-native/Libraries/Image/ImageInjection.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); + var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var createFiber = function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); - }; - function shouldConstruct(Component) { - var prototype = Component.prototype; - return !!(prototype && prototype.isReactComponent); + var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { + uiViewClassName: 'RCTImageView', + bubblingEventTypes: {}, + directEventTypes: { + topLoadStart: { + registrationName: 'onLoadStart' + }, + topProgress: { + registrationName: 'onProgress' + }, + topError: { + registrationName: 'onError' + }, + topLoad: { + registrationName: 'onLoad' + }, + topLoadEnd: { + registrationName: 'onLoadEnd' } - function isSimpleFunctionComponent(type) { - return typeof type === "function" && !shouldConstruct(type) && type.defaultProps === undefined; + }, + validAttributes: { + blurRadius: true, + internal_analyticTag: true, + resizeMode: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderBottomLeftRadius: true, + borderTopLeftRadius: true, + resizeMethod: true, + src: true, + borderRadius: true, + headers: true, + shouldNotifyLoadEvents: true, + defaultSrc: true, + overlayColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + borderColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default + }, + accessible: true, + progressiveRenderingEnabled: true, + fadeDuration: true, + borderBottomRightRadius: true, + borderTopRightRadius: true, + loadingIndicatorSrc: true + } + } : { + uiViewClassName: 'RCTImageView', + bubblingEventTypes: {}, + directEventTypes: { + topLoadStart: { + registrationName: 'onLoadStart' + }, + topProgress: { + registrationName: 'onProgress' + }, + topError: { + registrationName: 'onError' + }, + topPartialLoad: { + registrationName: 'onPartialLoad' + }, + topLoad: { + registrationName: 'onLoad' + }, + topLoadEnd: { + registrationName: 'onLoadEnd' } - function resolveLazyComponentTag(Component) { - if (typeof Component === "function") { - return shouldConstruct(Component) ? ClassComponent : FunctionComponent; - } else if (Component !== undefined && Component !== null) { - var $$typeof = Component.$$typeof; - if ($$typeof === REACT_FORWARD_REF_TYPE) { - return ForwardRef; - } - if ($$typeof === REACT_MEMO_TYPE) { - return MemoComponent; - } - } - return IndeterminateComponent; + }, + validAttributes: Object.assign({ + blurRadius: true, + capInsets: { + diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/insetsDiffer") + }, + defaultSource: { + process: _$$_REQUIRE(_dependencyMap[5], "./resolveAssetSource") + }, + internal_analyticTag: true, + resizeMode: true, + source: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor").default } + }, (0, _$$_REQUIRE(_dependencyMap[6], "../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ + onLoadStart: true, + onLoad: true, + onLoadEnd: true, + onProgress: true, + onError: true, + onPartialLoad: true + })) + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var ImageViewNativeComponent = NativeComponentRegistry.get('RCTImageView', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = ImageViewNativeComponent; + exports.default = _default; +},398,[228,3,17,174,240,242,254],"node_modules/react-native/Libraries/Image/ImageViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - function createWorkInProgress(current, pendingProps) { - var workInProgress = current.alternate; - if (workInProgress === null) { - workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); - workInProgress.elementType = current.elementType; - workInProgress.type = current.type; - workInProgress.stateNode = current.stateNode; - { - workInProgress._debugSource = current._debugSource; - workInProgress._debugOwner = current._debugOwner; - workInProgress._debugHookTypes = current._debugHookTypes; - } - workInProgress.alternate = current; - current.alternate = workInProgress; - } else { - workInProgress.pendingProps = pendingProps; + 'use strict'; - workInProgress.type = current.type; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; + var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var __INTERNAL_VIEW_CONFIG = { + uiViewClassName: 'RCTTextInlineImage', + bubblingEventTypes: {}, + directEventTypes: {}, + validAttributes: { + resizeMode: true, + src: true, + tintColor: { + process: _$$_REQUIRE(_dependencyMap[1], "../StyleSheet/processColor").default + }, + headers: true + } + }; + exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; + var TextInlineImage = NativeComponentRegistry.get('RCTTextInlineImage', function () { + return __INTERNAL_VIEW_CONFIG; + }); + var _default = TextInlineImage; + exports.default = _default; +},399,[228,174],"node_modules/react-native/Libraries/Image/TextInlineImageNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.getEnforcing('ImageLoader'); + exports.default = _default; +},400,[19],"node_modules/react-native/Libraries/Image/NativeImageLoaderIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.flags = NoFlags; + 'use strict'; - workInProgress.subtreeFlags = NoFlags; - workInProgress.deletions = null; - { - workInProgress.actualDuration = 0; - workInProgress.actualStartTime = -1; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getImageSourcesFromImageProps = getImageSourcesFromImageProps; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _resolveAssetSource = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./resolveAssetSource")); + /** + * A function which returns the appropriate value for image source + * by resolving the `source`, `src` and `srcSet` props. + */ + function getImageSourcesFromImageProps(imageProps) { + var source = (0, _resolveAssetSource.default)(imageProps.source); + var sources; + var crossOrigin = imageProps.crossOrigin, + referrerPolicy = imageProps.referrerPolicy, + src = imageProps.src, + srcSet = imageProps.srcSet, + width = imageProps.width, + height = imageProps.height; + var headers = {}; + if (crossOrigin === 'use-credentials') { + headers['Access-Control-Allow-Credentials'] = 'true'; + } + if (referrerPolicy != null) { + headers['Referrer-Policy'] = referrerPolicy; + } + if (srcSet != null) { + var sourceList = []; + var srcSetList = srcSet.split(', '); + // `src` prop should be used with default scale if `srcSet` does not have 1x scale. + var shouldUseSrcForDefaultScale = true; + srcSetList.forEach(function (imageSrc) { + var _imageSrc$split = imageSrc.split(' '), + _imageSrc$split2 = (0, _slicedToArray2.default)(_imageSrc$split, 2), + uri = _imageSrc$split2[0], + _imageSrc$split2$ = _imageSrc$split2[1], + xScale = _imageSrc$split2$ === void 0 ? '1x' : _imageSrc$split2$; + if (!xScale.endsWith('x')) { + console.warn('The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.'); + } else { + var scale = parseInt(xScale.split('x')[0], 10); + if (!isNaN(scale)) { + // 1x scale is provided in `srcSet` prop so ignore the `src` prop if provided. + shouldUseSrcForDefaultScale = scale === 1 ? false : shouldUseSrcForDefaultScale; + sourceList.push({ + headers: headers, + scale: scale, + uri: uri, + width: width, + height: height + }); } } + }); + if (shouldUseSrcForDefaultScale && src != null) { + sourceList.push({ + headers: headers, + scale: 1, + uri: src, + width: width, + height: height + }); + } + if (sourceList.length === 0) { + console.warn('The provided value for srcSet is not valid.'); + } + sources = sourceList; + } else if (src != null) { + sources = [{ + uri: src, + headers: headers, + width: width, + height: height + }]; + } else { + sources = source; + } + return sources; + } +},401,[3,22,242],"node_modules/react-native/Libraries/Image/ImageSourceUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.convertObjectFitToResizeMode = convertObjectFitToResizeMode; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - workInProgress.flags = current.flags & StaticMask; - workInProgress.childLanes = current.childLanes; - workInProgress.lanes = current.lanes; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - - var currentDependencies = current.dependencies; - workInProgress.dependencies = currentDependencies === null ? null : { - lanes: currentDependencies.lanes, - firstContext: currentDependencies.firstContext + function convertObjectFitToResizeMode(objectFit) { + var objectFitMap = { + contain: 'contain', + cover: 'cover', + fill: 'stretch', + 'scale-down': 'contain' + }; + return objectFitMap[objectFit]; + } +},402,[],"node_modules/react-native/Libraries/Image/ImageUtils.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _RefreshControl = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/RefreshControl/RefreshControl")); + var _ScrollView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Components/ScrollView/ScrollView")); + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/flattenStyle")); + var _splitLayoutProps2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/splitLayoutProps")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); + var _useMergeRefs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Utilities/useMergeRefs")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../createAnimatedComponent")); + var _useAnimatedProps5 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../useAnimatedProps")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * @see https://github.com/facebook/react-native/commit/b8c8562 + */ + var AnimatedScrollView = React.forwardRef(function (props, forwardedRef) { + // (Android only) When a ScrollView has a RefreshControl and + // any `style` property set with an Animated.Value, the CSS + // gets incorrectly applied twice. This is because ScrollView + // swaps the parent/child relationship of itself and the + // RefreshControl component (see ScrollView.js for more details). + if (_Platform.default.OS === 'android' && props.refreshControl != null && props.style != null) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(AnimatedScrollViewWithInvertedRefreshControl, Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: forwardedRef, + refreshControl: props.refreshControl + })); + } else { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(AnimatedScrollViewWithoutInvertedRefreshControl, Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: forwardedRef + })); + } + }); + var AnimatedScrollViewWithInvertedRefreshControl = React.forwardRef(function (props, forwardedRef) { + // Split `props` into the animate-able props for the parent (RefreshControl) + // and child (ScrollView). + var _useMemo = (0, React.useMemo)(function () { + // $FlowFixMe[underconstrained-implicit-instantiation] + var _splitLayoutProps = (0, _splitLayoutProps2.default)((0, _flattenStyle.default)(props.style)), + outer = _splitLayoutProps.outer, + inner = _splitLayoutProps.inner; + return { + intermediatePropsForRefreshControl: { + style: outer + }, + intermediatePropsForScrollView: Object.assign({}, props, { + style: inner + }) }; + }, [props]), + intermediatePropsForRefreshControl = _useMemo.intermediatePropsForRefreshControl, + intermediatePropsForScrollView = _useMemo.intermediatePropsForScrollView; + + // Handle animated props on `refreshControl`. + var _useAnimatedProps = (0, _useAnimatedProps5.default)(intermediatePropsForRefreshControl), + _useAnimatedProps2 = (0, _slicedToArray2.default)(_useAnimatedProps, 2), + refreshControlAnimatedProps = _useAnimatedProps2[0], + refreshControlRef = _useAnimatedProps2[1]; + // NOTE: Assumes that refreshControl.ref` and `refreshControl.style` can be + // safely clobbered. + var refreshControl = React.cloneElement(props.refreshControl, Object.assign({}, refreshControlAnimatedProps, { + ref: refreshControlRef + })); - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - { - workInProgress.selfBaseDuration = current.selfBaseDuration; - workInProgress.treeBaseDuration = current.treeBaseDuration; - } - { - workInProgress._debugNeedsRemount = current._debugNeedsRemount; - switch (workInProgress.tag) { - case IndeterminateComponent: - case FunctionComponent: - case SimpleMemoComponent: - workInProgress.type = resolveFunctionForHotReloading(current.type); - break; - case ClassComponent: - workInProgress.type = resolveClassForHotReloading(current.type); - break; - case ForwardRef: - workInProgress.type = resolveForwardRefForHotReloading(current.type); - break; - } - } - return workInProgress; + // Handle animated props on `NativeDirectionalScrollView`. + var _useAnimatedProps3 = (0, _useAnimatedProps5.default)(intermediatePropsForScrollView), + _useAnimatedProps4 = (0, _slicedToArray2.default)(_useAnimatedProps3, 2), + scrollViewAnimatedProps = _useAnimatedProps4[0], + scrollViewRef = _useAnimatedProps4[1]; + var ref = (0, _useMergeRefs.default)(scrollViewRef, forwardedRef); + return ( + /*#__PURE__*/ + // $FlowFixMe[incompatible-use] Investigate useAnimatedProps return value + (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_ScrollView.default, Object.assign({}, scrollViewAnimatedProps, { + ref: ref, + refreshControl: refreshControl + // Because `refreshControl` is a clone of `props.refreshControl` with + // `refreshControlAnimatedProps` added, we need to pass ScrollView.js + // the combined styles since it also splits the outer/inner styles for + // its parent/child, respectively. Without this, the refreshControl + // styles would be ignored. + , + style: _StyleSheet.default.compose(scrollViewAnimatedProps.style, refreshControlAnimatedProps.style) + })) + ); + }); + var AnimatedScrollViewWithoutInvertedRefreshControl = (0, _createAnimatedComponent.default)(_ScrollView.default); + var _default = AnimatedScrollView; + exports.default = _default; +},403,[3,22,404,324,207,362,259,17,344,343,345,41,89],"node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _AndroidSwipeRefreshLayoutNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./AndroidSwipeRefreshLayoutNativeComponent")); + var _PullToRefreshViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./PullToRefreshViewNativeComponent")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"; + var _excluded = ["enabled", "colors", "progressBackgroundColor", "size"], + _excluded2 = ["tintColor", "titleColor", "title"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var React = _$$_REQUIRE(_dependencyMap[9], "react"); + /** + * This component is used inside a ScrollView or ListView to add pull to refresh + * functionality. When the ScrollView is at `scrollY: 0`, swiping down + * triggers an `onRefresh` event. + * + * ### Usage example + * + * ``` js + * class RefreshableList extends Component { + * constructor(props) { + * super(props); + * this.state = { + * refreshing: false, + * }; + * } + * + * _onRefresh() { + * this.setState({refreshing: true}); + * fetchData().then(() => { + * this.setState({refreshing: false}); + * }); + * } + * + * render() { + * return ( + * + * } + * ... + * > + * ... + * + * ); + * } + * ... + * } + * ``` + * + * __Note:__ `refreshing` is a controlled prop, this is why it needs to be set to true + * in the `onRefresh` function otherwise the refresh indicator will stop immediately. + */ + var RefreshControl = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(RefreshControl, _React$Component); + var _super = _createSuper(RefreshControl); + function RefreshControl() { + var _this; + (0, _classCallCheck2.default)(this, RefreshControl); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } + _this = _super.call.apply(_super, [this].concat(args)); + _this._lastNativeRefreshing = false; + _this._onRefresh = function () { + _this._lastNativeRefreshing = true; - function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= StaticMask | Placement; - - var current = workInProgress.alternate; - if (current === null) { - workInProgress.childLanes = NoLanes; - workInProgress.lanes = renderLanes; - workInProgress.child = null; - workInProgress.subtreeFlags = NoFlags; - workInProgress.memoizedProps = null; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - workInProgress.dependencies = null; - workInProgress.stateNode = null; - { - workInProgress.selfBaseDuration = 0; - workInProgress.treeBaseDuration = 0; - } - } else { - workInProgress.childLanes = current.childLanes; - workInProgress.lanes = current.lanes; - workInProgress.child = current.child; - workInProgress.subtreeFlags = NoFlags; - workInProgress.deletions = null; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - - workInProgress.type = current.type; + // $FlowFixMe[unused-promise] + _this.props.onRefresh && _this.props.onRefresh(); - var currentDependencies = current.dependencies; - workInProgress.dependencies = currentDependencies === null ? null : { - lanes: currentDependencies.lanes, - firstContext: currentDependencies.firstContext - }; - { - workInProgress.selfBaseDuration = current.selfBaseDuration; - workInProgress.treeBaseDuration = current.treeBaseDuration; + // The native component will start refreshing so force an update to + // make sure it stays in sync with the js component. + _this.forceUpdate(); + }; + _this._setNativeRef = function (ref) { + _this._nativeRef = ref; + }; + return _this; + } + (0, _createClass2.default)(RefreshControl, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._lastNativeRefreshing = this.props.refreshing; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // RefreshControl is a controlled component so if the native refreshing + // value doesn't match the current js refreshing prop update it to + // the js value. + if (this.props.refreshing !== prevProps.refreshing) { + this._lastNativeRefreshing = this.props.refreshing; + } else if (this.props.refreshing !== this._lastNativeRefreshing && this._nativeRef) { + if ("ios" === 'android') { + _AndroidSwipeRefreshLayoutNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); + } else { + _PullToRefreshViewNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); } + this._lastNativeRefreshing = this.props.refreshing; } - return workInProgress; } - function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) { - var mode; - if (tag === ConcurrentRoot) { - mode = ConcurrentMode; - if (isStrictMode === true) { - mode |= StrictLegacyMode; - } + }, { + key: "render", + value: function render() { + if ("ios" === 'ios') { + var _this$props = this.props, + enabled = _this$props.enabled, + colors = _this$props.colors, + progressBackgroundColor = _this$props.progressBackgroundColor, + size = _this$props.size, + props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_PullToRefreshViewNativeComponent.default, Object.assign({}, props, { + ref: this._setNativeRef, + onRefresh: this._onRefresh + })); } else { - mode = NoMode; - } - if (isDevToolsPresent) { - mode |= ProfileMode; + var _this$props2 = this.props, + tintColor = _this$props2.tintColor, + titleColor = _this$props2.titleColor, + title = _this$props2.title, + _props = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_AndroidSwipeRefreshLayoutNativeComponent.default, Object.assign({}, _props, { + ref: this._setNativeRef, + onRefresh: this._onRefresh + })); } - return createFiber(HostRoot, null, null, mode); } - function createFiberFromTypeAndProps(type, - key, pendingProps, owner, mode, lanes) { - var fiberTag = IndeterminateComponent; + }]); + return RefreshControl; + }(React.Component); + module.exports = RefreshControl; +},404,[3,149,12,13,49,51,53,405,406,41,89],"node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var resolvedType = type; - if (typeof type === "function") { - if (shouldConstruct(type)) { - fiberTag = ClassComponent; - { - resolvedType = resolveClassForHotReloading(resolvedType); - } - } else { - { - resolvedType = resolveFunctionForHotReloading(resolvedType); - } - } - } else if (typeof type === "string") { - fiberTag = HostComponent; - } else { - getTag: switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, lanes, key); - case REACT_STRICT_MODE_TYPE: - fiberTag = Mode; - mode |= StrictLegacyMode; - break; - case REACT_PROFILER_TYPE: - return createFiberFromProfiler(pendingProps, mode, lanes, key); - case REACT_SUSPENSE_TYPE: - return createFiberFromSuspense(pendingProps, mode, lanes, key); - case REACT_SUSPENSE_LIST_TYPE: - return createFiberFromSuspenseList(pendingProps, mode, lanes, key); - case REACT_OFFSCREEN_TYPE: - return createFiberFromOffscreen(pendingProps, mode, lanes, key); - case REACT_LEGACY_HIDDEN_TYPE: - - case REACT_SCOPE_TYPE: - - case REACT_CACHE_TYPE: + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeRefreshing'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('AndroidSwipeRefreshLayout'); + exports.default = _default; +},405,[3,257,273,41],"node_modules/react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - case REACT_TRACING_MARKER_TYPE: + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['setNativeRefreshing'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('PullToRefreshView', { + paperComponentName: 'RCTRefreshControl', + excludedPlatforms: ['android'] + }); + exports.default = _default; +},406,[3,257,273,41],"node_modules/react-native/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _SectionList = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Lists/SectionList")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../createAnimatedComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * @see https://github.com/facebook/react-native/commit/b8c8562 + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var SectionListWithEventThrottle = React.forwardRef(function (props, ref) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_SectionList.default, Object.assign({ + scrollEventThrottle: 0.0001 + }, props, { + ref: ref + })); + }); + var _default = (0, _createAnimatedComponent.default)(SectionListWithEventThrottle); + exports.default = _default; +},407,[3,408,343,41,89],"node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - case REACT_DEBUG_TRACING_MODE_TYPE: + 'use strict'; - default: - { - if (typeof type === "object" && type !== null) { - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - fiberTag = ContextProvider; - break getTag; - case REACT_CONTEXT_TYPE: - fiberTag = ContextConsumer; - break getTag; - case REACT_FORWARD_REF_TYPE: - fiberTag = ForwardRef; - { - resolvedType = resolveForwardRefForHotReloading(resolvedType); - } - break getTag; - case REACT_MEMO_TYPE: - fiberTag = MemoComponent; - break getTag; - case REACT_LAZY_TYPE: - fiberTag = LazyComponent; - resolvedType = null; - break getTag; - } - } - var info = ""; - { - if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; - } - var ownerName = owner ? getComponentNameFromFiber(owner) : null; - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - } - throw new Error("Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + ("but got: " + (type == null ? type : typeof type) + "." + info)); - } - } - } - var fiber = createFiber(fiberTag, pendingProps, key, mode); - fiber.elementType = type; - fiber.type = resolvedType; - fiber.lanes = lanes; - { - fiber._debugOwner = owner; - } - return fiber; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Lists/SectionList.js"; + var _excluded = ["stickySectionHeadersEnabled"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + * A performant interface for rendering sectioned lists, supporting the most handy features: + * + * - Fully cross-platform. + * - Configurable viewability callbacks. + * - List header support. + * - List footer support. + * - Item separator support. + * - Section header support. + * - Section separator support. + * - Heterogeneous data and item rendering support. + * - Pull to Refresh. + * - Scroll loading. + * + * If you don't need section support and want a simpler interface, use + * [``](https://reactnative.dev/docs/flatlist). + * + * Simple Examples: + * + * } + * renderSectionHeader={({section}) =>
} + * sections={[ // homogeneous rendering between sections + * {data: [...], title: ...}, + * {data: [...], title: ...}, + * {data: [...], title: ...}, + * ]} + * /> + * + * + * + * This is a convenience wrapper around [``](docs/virtualizedlist), + * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed + * here, along with the following caveats: + * + * - Internal state is not preserved when content scrolls out of the render window. Make sure all + * your data is captured in the item data or external stores like Flux, Redux, or Relay. + * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow- + * equal. Make sure that everything your `renderItem` function depends on is passed as a prop + * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on + * changes. This includes the `data` prop and parent component state. + * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously + * offscreen. This means it's possible to scroll faster than the fill rate and momentarily see + * blank content. This is a tradeoff that can be adjusted to suit the needs of each application, + * and we are working on improving it behind the scenes. + * - By default, the list looks for a `key` prop on each item and uses that for the React key. + * Alternatively, you can provide a custom `keyExtractor` prop. + * + */ + var SectionList = /*#__PURE__*/function (_React$PureComponent) { + (0, _inherits2.default)(SectionList, _React$PureComponent); + var _super = _createSuper(SectionList); + function SectionList() { + var _this; + (0, _classCallCheck2.default)(this, SectionList); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - function createFiberFromElement(element, mode, lanes) { - var owner = null; - { - owner = element._owner; - } - var type = element.type; - var key = element.key; - var pendingProps = element.props; - var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes); - { - fiber._debugSource = element._source; - fiber._debugOwner = element._owner; + _this = _super.call.apply(_super, [this].concat(args)); + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ + _this._captureRef = function (ref) { + _this._wrapperListRef = ref; + }; + return _this; + } + (0, _createClass2.default)(SectionList, [{ + key: "scrollToLocation", + value: + /** + * Scrolls to the item at the specified `sectionIndex` and `itemIndex` (within the section) + * positioned in the viewable area such that `viewPosition` 0 places it at the top (and may be + * covered by a sticky header), 1 at the bottom, and 0.5 centered in the middle. `viewOffset` is a + * fixed number of pixels to offset the final target position, e.g. to compensate for sticky + * headers. + * + * Note: cannot scroll to locations outside the render window without specifying the + * `getItemLayout` prop. + */ + function scrollToLocation(params) { + if (this._wrapperListRef != null) { + this._wrapperListRef.scrollToLocation(params); } - return fiber; } - function createFiberFromFragment(elements, mode, lanes, key) { - var fiber = createFiber(Fragment, elements, key, mode); - fiber.lanes = lanes; - return fiber; + + /** + * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g. + * if `waitForInteractions` is true and the user has not scrolled. This is typically called by + * taps on items or by navigation actions. + */ + }, { + key: "recordInteraction", + value: function recordInteraction() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + listRef && listRef.recordInteraction(); } - function createFiberFromProfiler(pendingProps, mode, lanes, key) { - { - if (typeof pendingProps.id !== "string") { - error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id); - } - } - var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); - fiber.elementType = REACT_PROFILER_TYPE; - fiber.lanes = lanes; - { - fiber.stateNode = { - effectDuration: 0, - passiveEffectDuration: 0 - }; - } - return fiber; + + /** + * Displays the scroll indicators momentarily. + * + * @platform ios + */ + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + listRef && listRef.flashScrollIndicators(); } - function createFiberFromSuspense(pendingProps, mode, lanes, key) { - var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); - fiber.elementType = REACT_SUSPENSE_TYPE; - fiber.lanes = lanes; - return fiber; + + /** + * Provides a handle to the underlying scroll responder. + */ + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + return listRef.getScrollResponder(); + } } - function createFiberFromSuspenseList(pendingProps, mode, lanes, key) { - var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); - fiber.elementType = REACT_SUSPENSE_LIST_TYPE; - fiber.lanes = lanes; - return fiber; + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + return listRef.getScrollableNode(); + } } - function createFiberFromOffscreen(pendingProps, mode, lanes, key) { - var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); - fiber.elementType = REACT_OFFSCREEN_TYPE; - fiber.lanes = lanes; - var primaryChildInstance = {}; - fiber.stateNode = primaryChildInstance; - return fiber; + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + if (listRef) { + listRef.setNativeProps(props); + } } - function createFiberFromText(content, mode, lanes) { - var fiber = createFiber(HostText, content, null, mode); - fiber.lanes = lanes; - return fiber; + }, { + key: "render", + value: function render() { + var _this$props = this.props, + _stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, + restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var stickySectionHeadersEnabled = _stickySectionHeadersEnabled != null ? _stickySectionHeadersEnabled : _Platform.default.OS === 'ios'; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "@react-native/virtualized-lists").VirtualizedSectionList, Object.assign({}, restProps, { + stickySectionHeadersEnabled: stickySectionHeadersEnabled, + ref: this._captureRef + // $FlowFixMe[missing-local-annot] + , + getItemCount: function getItemCount(items) { + return items.length; + } + // $FlowFixMe[missing-local-annot] + , + getItem: function getItem(items, index) { + return items[index]; + } + })); } - function createFiberFromPortal(portal, mode, lanes) { - var pendingProps = portal.children !== null ? portal.children : []; - var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); - fiber.lanes = lanes; - fiber.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return fiber; + }]); + return SectionList; + }(React.PureComponent); + exports.default = SectionList; +},408,[3,149,12,13,49,51,53,17,41,89,380],"node_modules/react-native/Libraries/Lists/SectionList.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Text/Text")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../createAnimatedComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = (0, _createAnimatedComponent.default)(_Text.default); + exports.default = _default; +},409,[3,287,343,41],"node_modules/react-native/Libraries/Animated/components/AnimatedText.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _createAnimatedComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../createAnimatedComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = (0, _createAnimatedComponent.default)(_View.default); + exports.default = _default; +},410,[3,225,343,41],"node_modules/react-native/Libraries/Animated/components/AnimatedView.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @noformat + * + * @generated SignedSource<<744176db456e2656dac661d36e55f42a>> + * + * This file was sync'd from the facebook/react repository. + */ + + 'use strict'; + + var ReactNative; + if (__DEV__) { + ReactNative = _$$_REQUIRE(_dependencyMap[0], "../implementations/ReactNativeRenderer-dev"); + } else { + ReactNative = _$$_REQUIRE(_dependencyMap[1], "../implementations/ReactNativeRenderer-prod"); + } + module.exports = ReactNative; +},411,[412,416],"node_modules/react-native/Libraries/Renderer/shims/ReactNative.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @nolint + * @providesModule ReactNativeRenderer-dev + * @preventMunge + * @generated SignedSource<> + */ + + 'use strict'; + + if (__DEV__) { + (function () { + 'use strict'; + + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } + "use strict"; + var React = _$$_REQUIRE(_dependencyMap[0], "react"); + _$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var ReactNativePrivateInterface = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"); + var Scheduler = _$$_REQUIRE(_dependencyMap[3], "scheduler"); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function assignFiberPropertiesInDEV(target, source) { - if (target === null) { - target = createFiber(IndeterminateComponent, null, null, NoMode); - } + // by calls to these methods by a Babel plugin. + // + // In PROD (or in packages without access to React internals), + // they are left as they are instead. - target.tag = source.tag; - target.key = source.key; - target.elementType = source.elementType; - target.type = source.type; - target.stateNode = source.stateNode; - target.return = source.return; - target.child = source.child; - target.sibling = source.sibling; - target.index = source.index; - target.ref = source.ref; - target.pendingProps = source.pendingProps; - target.memoizedProps = source.memoizedProps; - target.updateQueue = source.updateQueue; - target.memoizedState = source.memoizedState; - target.dependencies = source.dependencies; - target.mode = source.mode; - target.flags = source.flags; - target.subtreeFlags = source.subtreeFlags; - target.deletions = source.deletions; - target.lanes = source.lanes; - target.childLanes = source.childLanes; - target.alternate = source.alternate; + function warn(format) { { - target.actualDuration = source.actualDuration; - target.actualStartTime = source.actualStartTime; - target.selfBaseDuration = source.selfBaseDuration; - target.treeBaseDuration = source.treeBaseDuration; + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } } - target._debugSource = source._debugSource; - target._debugOwner = source._debugOwner; - target._debugNeedsRemount = source._debugNeedsRemount; - target._debugHookTypes = source._debugHookTypes; - return target; } - function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { - this.tag = tag; - this.containerInfo = containerInfo; - this.pendingChildren = null; - this.current = null; - this.pingCache = null; - this.finishedWork = null; - this.timeoutHandle = noTimeout; - this.context = null; - this.pendingContext = null; - this.callbackNode = null; - this.callbackPriority = NoLane; - this.eventTimes = createLaneMap(NoLanes); - this.expirationTimes = createLaneMap(NoTimestamp); - this.pendingLanes = NoLanes; - this.suspendedLanes = NoLanes; - this.pingedLanes = NoLanes; - this.expiredLanes = NoLanes; - this.mutableReadLanes = NoLanes; - this.finishedLanes = NoLanes; - this.entangledLanes = NoLanes; - this.entanglements = createLaneMap(NoLanes); - this.identifierPrefix = identifierPrefix; - this.onRecoverableError = onRecoverableError; - { - this.effectDuration = 0; - this.passiveEffectDuration = 0; - } + function error(format) { { - this.memoizedUpdaters = new Set(); - var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = []; - for (var _i = 0; _i < TotalLanes; _i++) { - pendingUpdatersLaneMap.push(new Set()); + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); } } + } + function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. { - switch (tag) { - case ConcurrentRoot: - this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; - break; - case LegacyRoot: - this._debugRootType = hydrate ? "hydrate()" : "render()"; - break; - } + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } // eslint-disable-next-line react-internal/safe-string-coercion + + var argsWithFormat = args.map(function (item) { + return String(item); + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift("Warning: " + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); } } - function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, - identifierPrefix, onRecoverableError, transitionCallbacks) { - var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); + function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + } + var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; + { + // In DEV mode, we swap out invokeGuardedCallback for a special version + // that plays more nicely with the browser's DevTools. The idea is to preserve + // "Pause on exceptions" behavior. Because React wraps all user-provided + // functions in invokeGuardedCallback, and the production version of + // invokeGuardedCallback uses a try-catch, all user exceptions are treated + // like caught exceptions, and the DevTools won't pause unless the developer + // takes the extra step of enabling pause on caught exceptions. This is + // unintuitive, though, because even though React has caught the error, from + // the developer's perspective, the error is uncaught. + // + // To preserve the expected "Pause on exceptions" behavior, we don't use a + // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake + // DOM node, and call the user-provided callback from inside an event handler + // for that fake event. If the callback throws, the error is "captured" using + // a global event handler. But because the error happens in a different + // event loop context, it does not interrupt the normal program flow. + // Effectively, this gives us try-catch behavior without actually using + // try-catch. Neat! + // Check that the browser supports the APIs we need to implement our special + // DEV version of invokeGuardedCallback + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + // If document doesn't exist we know for sure we will crash in this method + // when we call document.createEvent(). However this can cause confusing + // errors: https://github.com/facebook/create-react-app/issues/3482 + // So we preemptively throw with a better message instead. + if (typeof document === "undefined" || document === null) { + throw new Error("The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); + } + var evt = document.createEvent("Event"); + var didCall = false; // Keeps track of whether the user-provided callback threw an error. We + // set this to true at the beginning, then set it to false right after + // calling the function. If the function errors, `didError` will never be + // set to false. This strategy works even if the browser is flaky and + // fails to call our global error handler, because it doesn't rely on + // the error event at all. - var uninitializedFiber = createHostRootFiber(tag, isStrictMode); - root.current = uninitializedFiber; - uninitializedFiber.stateNode = root; - { - var _initialState = { - element: initialChildren, - isDehydrated: hydrate, - cache: null, - transitions: null, - pendingSuspenseBoundaries: null + var didError = true; // Keeps track of the value of window.event so that we can reset it + // during the callback to let user code access window.event in the + // browsers that support it. + + var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event + // dispatching: https://github.com/facebook/react/issues/13688 + + var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); + function restoreAfterDispatch() { + // We immediately remove the callback from event listeners so that + // nested `invokeGuardedCallback` calls do not clash. Otherwise, a + // nested call would trigger the fake event handlers of any call higher + // in the stack. + fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the + // window.event assignment in both IE <= 10 as they throw an error + // "Member not found" in strict mode, and in Firefox which does not + // support window.event. + + if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { + window.event = windowEvent; + } + } // Create an event handler for our fake event. We will synchronously + // dispatch our fake event using `dispatchEvent`. Inside the handler, we + // call the user-provided callback. + + var funcArgs = Array.prototype.slice.call(arguments, 3); + function callCallback() { + didCall = true; + restoreAfterDispatch(); + func.apply(context, funcArgs); + didError = false; + } // Create a global error event handler. We use this to capture the value + // that was thrown. It's possible that this error handler will fire more + // than once; for example, if non-React code also calls `dispatchEvent` + // and a handler for that event throws. We should be resilient to most of + // those cases. Even if our error event handler fires more than once, the + // last error event is always used. If the callback actually does error, + // we know that the last error event is the correct one, because it's not + // possible for anything else to have happened in between our callback + // erroring and the code that follows the `dispatchEvent` call below. If + // the callback doesn't error, but the error event was fired, we know to + // ignore it because `didError` will be false, as described above. + + var error; // Use this to track whether the error event is ever called. + + var didSetError = false; + var isCrossOriginError = false; + function handleWindowError(event) { + error = event.error; + didSetError = true; + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + if (event.defaultPrevented) { + // Some other error handler has prevented default. + // Browsers silence the error report if this happens. + // We'll remember this to later decide whether to log it or not. + if (error != null && typeof error === "object") { + try { + error._suppressLogging = true; + } catch (inner) { + // Ignore. + } + } + } + } // Create a fake event type. + + var evtType = "react-" + (name ? name : "invokeguardedcallback"); // Attach our event handlers + + window.addEventListener("error", handleWindowError); + fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function + // errors, it will trigger our global error handler. + + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + if (windowEventDescriptor) { + Object.defineProperty(window, "event", windowEventDescriptor); + } + if (didCall && didError) { + if (!didSetError) { + // The callback errored, but the error event never fired. + // eslint-disable-next-line react-internal/prod-error-codes + error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); + } else if (isCrossOriginError) { + // eslint-disable-next-line react-internal/prod-error-codes + error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://reactjs.org/link/crossorigin-error for more information."); + } + this.onError(error); + } // Remove our event listeners + + window.removeEventListener("error", handleWindowError); + if (!didCall) { + // Something went really wrong, and our event was not dispatched. + // https://github.com/facebook/react/issues/16734 + // https://github.com/facebook/react/issues/16585 + // Fall back to the production implementation. + restoreAfterDispatch(); + return invokeGuardedCallbackProd.apply(this, arguments); + } }; - uninitializedFiber.memoizedState = _initialState; } - initializeUpdateQueue(uninitializedFiber); - return root; } - var ReactVersion = "18.2.0-next-d300cebde-20220601"; - function createPortal(children, containerInfo, - implementation) { - var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - { - checkKeyStringCoercion(key); + var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; + var hasError = false; + var caughtError = null; // Used by event system to capture/rethrow the first error. + + var hasRethrowError = false; + var rethrowError = null; + var reporter = { + onError: function onError(error) { + hasError = true; + caughtError = error; } - return { - $$typeof: REACT_PORTAL_TYPE, - key: key == null ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; + }; + /** + * Call a function while guarding against errors that happens within it. + * Returns an error if it throws, otherwise null. + * + * In production, this is implemented using a try-catch. The reason we don't + * use a try-catch directly is so that we can swap out a different + * implementation in DEV mode. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ + + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = false; + caughtError = null; + invokeGuardedCallbackImpl$1.apply(reporter, arguments); } - var didWarnAboutNestedUpdates; - var didWarnAboutFindNodeInStrictMode; - { - didWarnAboutNestedUpdates = false; - didWarnAboutFindNodeInStrictMode = {}; + /** + * Same as invokeGuardedCallback, but instead of returning an error, it stores + * it in a global so it can be rethrown by `rethrowCaughtError` later. + * TODO: See if caughtError and rethrowError can be unified. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ + + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + var error = clearCaughtError(); + if (!hasRethrowError) { + hasRethrowError = true; + rethrowError = error; + } + } } - function getContextForSubtree(parentComponent) { - if (!parentComponent) { - return emptyContextObject; + /** + * During execution of guarded functions we will capture the first error which + * we will rethrow to be handled by the top level error handler. + */ + + function rethrowCaughtError() { + if (hasRethrowError) { + var error = rethrowError; + hasRethrowError = false; + rethrowError = null; + throw error; } - var fiber = get(parentComponent); - var parentContext = findCurrentUnmaskedContext(fiber); - if (fiber.tag === ClassComponent) { - var Component = fiber.type; - if (isContextProvider(Component)) { - return processChildContext(fiber, Component, parentContext); - } + } + function hasCaughtError() { + return hasError; + } + function clearCaughtError() { + if (hasError) { + var error = caughtError; + hasError = false; + caughtError = null; + return error; + } else { + throw new Error("clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); } - return parentContext; } - function findHostInstanceWithWarning(component, methodName) { + var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare + + function isArray(a) { + return isArrayImpl(a); + } + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { + getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; + getInstanceFromNode = getInstanceFromNodeImpl; + getNodeFromInstance = getNodeFromInstanceImpl; { - var fiber = get(component); - if (fiber === undefined) { - if (typeof component.render === "function") { - throw new Error("Unable to find node on an unmounted component."); - } else { - var keys = Object.keys(component).join(","); - throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys); - } - } - var hostFiber = findCurrentHostFiber(fiber); - if (hostFiber === null) { - return null; - } - if (hostFiber.mode & StrictLegacyMode) { - var componentName = getComponentNameFromFiber(fiber) || "Component"; - if (!didWarnAboutFindNodeInStrictMode[componentName]) { - didWarnAboutFindNodeInStrictMode[componentName] = true; - var previousFiber = current; - try { - setCurrentFiber(hostFiber); - if (fiber.mode & StrictLegacyMode) { - error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); - } else { - error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); - } - } finally { - if (previousFiber) { - setCurrentFiber(previousFiber); - } else { - resetCurrentFiber(); - } - } - } + if (!getNodeFromInstance || !getInstanceFromNode) { + error("EventPluginUtils.setComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode."); } - return hostFiber.stateNode; } } - function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) { - var hydrate = false; - var initialChildren = null; - return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); + var validateEventDispatches; + { + validateEventDispatches = function validateEventDispatches(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { + error("EventPluginUtils: Invalid `event`."); + } + }; } - function updateContainer(element, container, parentComponent, callback) { + /** + * Dispatch the event to the listener. + * @param {SyntheticEvent} event SyntheticEvent to handle + * @param {function} listener Application-level callback + * @param {*} inst Internal component instance + */ + + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + /** + * Standard/simple iteration through an event's collected dispatches. + */ + + function executeDispatchesInOrder(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; { - onScheduleRoot(container, element); + validateEventDispatches(event); } - var current$1 = container.current; - var eventTime = requestEventTime(); - var lane = requestUpdateLane(current$1); - var context = getContextForSubtree(parentComponent); - if (container.context === null) { - container.context = context; - } else { - container.pendingContext = context; + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } // Listeners and Instances are two parallel arrays that are always in sync. + + executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, dispatchListeners, dispatchInstances); } + event._dispatchListeners = null; + event._dispatchInstances = null; + } + /** + * Standard/simple iteration through an event's collected dispatches, but stops + * at the first dispatch execution returning true, and returns that id. + * + * @return {?string} id of the first dispatch execution who's listener returns + * true, or null if no listener returned true. + */ + + function executeDispatchesInOrderStopAtTrueImpl(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; { - if (isRendering && current !== null && !didWarnAboutNestedUpdates) { - didWarnAboutNestedUpdates = true; - error("Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); - } + validateEventDispatches(event); } - var update = createUpdate(eventTime, lane); + if (isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } // Listeners and Instances are two parallel arrays that are always in sync. - update.payload = { - element: element - }; - callback = callback === undefined ? null : callback; - if (callback !== null) { - { - if (typeof callback !== "function") { - error("render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback); + if (dispatchListeners[i](event, dispatchInstances[i])) { + return dispatchInstances[i]; } } - update.callback = callback; - } - enqueueUpdate(current$1, update); - var root = scheduleUpdateOnFiber(current$1, lane, eventTime); - if (root !== null) { - entangleTransitions(root, current$1, lane); + } else if (dispatchListeners) { + if (dispatchListeners(event, dispatchInstances)) { + return dispatchInstances; + } } - return lane; + return null; } - function getPublicRootInstance(container) { - var containerFiber = container.current; - if (!containerFiber.child) { - return null; + /** + * @see executeDispatchesInOrderStopAtTrueImpl + */ + + function executeDispatchesInOrderStopAtTrue(event) { + var ret = executeDispatchesInOrderStopAtTrueImpl(event); + event._dispatchInstances = null; + event._dispatchListeners = null; + return ret; + } + /** + * Execution of a "direct" dispatch - there must be at most one dispatch + * accumulated on the event or it is considered an error. It doesn't really make + * sense for an event with multiple dispatches (bubbled) to keep track of the + * return values at each dispatch execution, but it does tend to make sense when + * dealing with "direct" dispatches. + * + * @return {*} The return value of executing the single dispatch. + */ + + function executeDirectDispatch(event) { + { + validateEventDispatches(event); } - switch (containerFiber.child.tag) { - case HostComponent: - return getPublicInstance(containerFiber.child.stateNode); - default: - return containerFiber.child.stateNode; + var dispatchListener = event._dispatchListeners; + var dispatchInstance = event._dispatchInstances; + if (isArray(dispatchListener)) { + throw new Error("executeDirectDispatch(...): Invalid `event`."); } + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + var res = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return res; } - var shouldErrorImpl = function shouldErrorImpl(fiber) { - return null; + /** + * @param {SyntheticEvent} event + * @return {boolean} True iff number of dispatches accumulated is greater than 0. + */ + + function hasDispatches(event) { + return !!event._dispatchListeners; + } + var assign = Object.assign; + var EVENT_POOL_SIZE = 10; + /** + * @interface Event + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var EventInterface = { + type: null, + target: null, + // currentTarget is set when dispatching; no use in copying it here + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null }; - function shouldError(fiber) { - return shouldErrorImpl(fiber); + function functionThatReturnsTrue() { + return true; } - var shouldSuspendImpl = function shouldSuspendImpl(fiber) { + function functionThatReturnsFalse() { return false; - }; - function shouldSuspend(fiber) { - return shouldSuspendImpl(fiber); } - var overrideHookState = null; - var overrideHookStateDeletePath = null; - var overrideHookStateRenamePath = null; - var overrideProps = null; - var overridePropsDeletePath = null; - var overridePropsRenamePath = null; - var scheduleUpdate = null; - var setErrorHandler = null; - var setSuspenseHandler = null; - { - var copyWithDeleteImpl = function copyWithDeleteImpl(obj, path, index) { - var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); - if (index + 1 === path.length) { - if (isArray(updated)) { - updated.splice(key, 1); - } else { - delete updated[key]; - } - return updated; - } + /** + * Synthetic events are dispatched by event plugins, typically in response to a + * top-level event delegation handler. + * + * These systems should generally use pooling to reduce the frequency of garbage + * collection. The system should check `isPersistent` to determine whether the + * event should be released into the pool after being dispatched. Users that + * need a persisted event should invoke `persist`. + * + * Synthetic events (and subclasses) implement the DOM Level 3 Events API by + * normalizing browser quirks. Subclasses do not necessarily have to implement a + * DOM interface; custom application-specific events can also subclass this. + * + * @param {object} dispatchConfig Configuration used to dispatch this event. + * @param {*} targetInst Marker identifying the event target. + * @param {object} nativeEvent Native browser event. + * @param {DOMEventTarget} nativeEventTarget Target node. + */ - updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); - return updated; - }; - var copyWithDelete = function copyWithDelete(obj, path) { - return copyWithDeleteImpl(obj, path, 0); - }; - var copyWithRenameImpl = function copyWithRenameImpl(obj, oldPath, newPath, index) { - var oldKey = oldPath[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); - if (index + 1 === oldPath.length) { - var newKey = newPath[index]; + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + // these have a getter/setter for warnings + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + delete this.isDefaultPrevented; + delete this.isPropagationStopped; + } + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchListeners = null; + this._dispatchInstances = null; + var Interface = this.constructor.Interface; + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + { + delete this[propName]; // this has a getter/setter for warnings + } - updated[newKey] = updated[oldKey]; - if (isArray(updated)) { - updated.splice(oldKey, 1); + var normalize = Interface[propName]; + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === "target") { + this.target = nativeEventTarget; } else { - delete updated[oldKey]; + this[propName] = nativeEvent[propName]; } - } else { - updated[oldKey] = copyWithRenameImpl( - obj[oldKey], oldPath, newPath, index + 1); } - return updated; - }; - var copyWithRename = function copyWithRename(obj, oldPath, newPath) { - if (oldPath.length !== newPath.length) { - warn("copyWithRename() expects paths of the same length"); + } + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = true; + var event = this.nativeEvent; + if (!event) { return; - } else { - for (var i = 0; i < newPath.length - 1; i++) { - if (oldPath[i] !== newPath[i]) { - warn("copyWithRename() expects paths to be the same except for the deepest key"); - return; - } - } - } - return copyWithRenameImpl(obj, oldPath, newPath, 0); - }; - var copyWithSetImpl = function copyWithSetImpl(obj, path, index, value) { - if (index >= path.length) { - return value; - } - var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); - - updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); - return updated; - }; - var copyWithSet = function copyWithSet(obj, path, value) { - return copyWithSetImpl(obj, path, 0, value); - }; - var findHook = function findHook(fiber, id) { - var currentHook = fiber.memoizedState; - while (currentHook !== null && id > 0) { - currentHook = currentHook.next; - id--; } - return currentHook; - }; - - overrideHookState = function overrideHookState(fiber, id, path, value) { - var hook = findHook(fiber, id); - if (hook !== null) { - var newState = copyWithSet(hook.memoizedState, path, value); - hook.memoizedState = newState; - hook.baseState = newState; - - fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== "unknown") { + event.returnValue = false; } - }; - overrideHookStateDeletePath = function overrideHookStateDeletePath(fiber, id, path) { - var hook = findHook(fiber, id); - if (hook !== null) { - var newState = copyWithDelete(hook.memoizedState, path); - hook.memoizedState = newState; - hook.baseState = newState; - - fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + if (!event) { + return; } - }; - overrideHookStateRenamePath = function overrideHookStateRenamePath(fiber, id, oldPath, newPath) { - var hook = findHook(fiber, id); - if (hook !== null) { - var newState = copyWithRename(hook.memoizedState, oldPath, newPath); - hook.memoizedState = newState; - hook.baseState = newState; - - fiber.memoizedProps = assign({}, fiber.memoizedProps); - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== "unknown") { + // The ChangeEventPlugin registers a "propertychange" event for + // IE. This event does not support bubbling or cancelling, and + // any references to cancelBubble throw "Member not found". A + // typeof check of "unknown" circumvents this issue (and is also + // IE specific). + event.cancelBubble = true; } - }; - - overrideProps = function overrideProps(fiber, path, value) { - fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); - if (fiber.alternate) { - fiber.alternate.pendingProps = fiber.pendingProps; + this.isPropagationStopped = functionThatReturnsTrue; + }, + /** + * We release all dispatched `SyntheticEvent`s after each event loop, adding + * them back into the pool. This allows a way to hold onto a reference that + * won't be added back into the pool. + */ + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + /** + * Checks if this event should be released back into the pool. + * + * @return {boolean} True if this should not be released, false otherwise. + */ + isPersistent: functionThatReturnsFalse, + /** + * `PooledClass` looks for `destructor` on each instance it releases. + */ + destructor: function destructor() { + var Interface = this.constructor.Interface; + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); - }; - overridePropsDeletePath = function overridePropsDeletePath(fiber, path) { - fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); - if (fiber.alternate) { - fiber.alternate.pendingProps = fiber.pendingProps; + this.dispatchConfig = null; + this._targetInst = null; + this.nativeEvent = null; + this.isDefaultPrevented = functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + this._dispatchListeners = null; + this._dispatchInstances = null; + { + Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); + Object.defineProperty(this, "isDefaultPrevented", getPooledWarningPropertyDefinition("isDefaultPrevented", functionThatReturnsFalse)); + Object.defineProperty(this, "isPropagationStopped", getPooledWarningPropertyDefinition("isPropagationStopped", functionThatReturnsFalse)); + Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); + Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); - }; - overridePropsRenamePath = function overridePropsRenamePath(fiber, oldPath, newPath) { - fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); - if (fiber.alternate) { - fiber.alternate.pendingProps = fiber.pendingProps; + } + }); + SyntheticEvent.Interface = EventInterface; + /** + * Helper to reduce boilerplate when creating subclasses. + */ + + SyntheticEvent.extend = function (Interface) { + var Super = this; + var E = function E() {}; + E.prototype = Super.prototype; + var prototype = new E(); + function Class() { + return Super.apply(this, arguments); + } + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + /** + * Helper to nullify syntheticEvent instance properties when destructing + * + * @param {String} propName + * @param {?object} getVal + * @return {object} defineProperty object + */ + + function getPooledWarningPropertyDefinition(propName, getVal) { + function set(val) { + var action = isFunction ? "setting the method" : "setting the property"; + warn(action, "This is effectively a no-op"); + return val; + } + function get() { + var action = isFunction ? "accessing the method" : "accessing the property"; + var result = isFunction ? "This is a no-op function" : "This is set to null"; + warn(action, result); + return getVal; + } + function warn(action, result) { + { + error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://reactjs.org/link/event-pooling for more information.", action, propName, result); } - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); - }; - scheduleUpdate = function scheduleUpdate(fiber) { - scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp); - }; - setErrorHandler = function setErrorHandler(newShouldErrorImpl) { - shouldErrorImpl = newShouldErrorImpl; - }; - setSuspenseHandler = function setSuspenseHandler(newShouldSuspendImpl) { - shouldSuspendImpl = newShouldSuspendImpl; + } + var isFunction = typeof getVal === "function"; + return { + configurable: true, + set: set, + get: get }; } - function findHostInstanceByFiber(fiber) { - var hostFiber = findCurrentHostFiber(fiber); - if (hostFiber === null) { - return null; + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; } - return hostFiber.stateNode; + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); } - function emptyFindFiberByHostInstance(instance) { - return null; + function releasePooledEvent(event) { + var EventConstructor = this; + if (!(event instanceof EventConstructor)) { + throw new Error("Trying to release an event instance into a pool of a different type."); + } + event.destructor(); + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } } - function getCurrentFiberForDevTools() { - return current; + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; } - function injectIntoDevTools(devToolsConfig) { - var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; - var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; - return injectInternals({ - bundleType: devToolsConfig.bundleType, - version: devToolsConfig.version, - rendererPackageName: devToolsConfig.rendererPackageName, - rendererConfig: devToolsConfig.rendererConfig, - overrideHookState: overrideHookState, - overrideHookStateDeletePath: overrideHookStateDeletePath, - overrideHookStateRenamePath: overrideHookStateRenamePath, - overrideProps: overrideProps, - overridePropsDeletePath: overridePropsDeletePath, - overridePropsRenamePath: overridePropsRenamePath, - setErrorHandler: setErrorHandler, - setSuspenseHandler: setSuspenseHandler, - scheduleUpdate: scheduleUpdate, - currentDispatcherRef: ReactCurrentDispatcher, - findHostInstanceByFiber: findHostInstanceByFiber, - findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, - findHostInstancesForRefresh: findHostInstancesForRefresh, - scheduleRefresh: scheduleRefresh, - scheduleRoot: scheduleRoot, - setRefreshHandler: setRefreshHandler, - getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: ReactVersion - }); + + /** + * `touchHistory` isn't actually on the native event, but putting it in the + * interface will ensure that it is cleaned up when pooled/destroyed. The + * `ResponderEventPlugin` will populate it appropriately. + */ + + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory(nativeEvent) { + return null; // Actually doesn't even look at the native event. + } + }); + + var TOP_TOUCH_START = "topTouchStart"; + var TOP_TOUCH_MOVE = "topTouchMove"; + var TOP_TOUCH_END = "topTouchEnd"; + var TOP_TOUCH_CANCEL = "topTouchCancel"; + var TOP_SCROLL = "topScroll"; + var TOP_SELECTION_CHANGE = "topSelectionChange"; + function isStartish(topLevelType) { + return topLevelType === TOP_TOUCH_START; } - var instanceCache = new Map(); - function getInstanceFromTag(tag) { - return instanceCache.get(tag) || null; + function isMoveish(topLevelType) { + return topLevelType === TOP_TOUCH_MOVE; } - var emptyObject$1 = {}; - { - Object.freeze(emptyObject$1); + function isEndish(topLevelType) { + return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; } - var createHierarchy; - var getHostNode; - var getHostProps; - var lastNonHostInstance; - var getOwnerHierarchy; - var _traverseOwnerTreeUp; - { - createHierarchy = function createHierarchy(fiberHierarchy) { - return fiberHierarchy.map(function (fiber) { - return { - name: getComponentNameFromType(fiber.type), - getInspectorData: function getInspectorData(findNodeHandle) { - return { - props: getHostProps(fiber), - source: fiber._debugSource, - measure: function measure(callback) { - var hostFiber = findCurrentHostFiber(fiber); - var shadowNode = hostFiber != null && hostFiber.stateNode !== null && hostFiber.stateNode.node; - if (shadowNode) { - nativeFabricUIManager.measure(shadowNode, callback); - } else { - return ReactNativePrivateInterface.UIManager.measure(getHostNode(fiber, findNodeHandle), callback); - } - } - }; - } - }; - }); - }; - getHostNode = function getHostNode(fiber, findNodeHandle) { - var hostNode; + var startDependencies = [TOP_TOUCH_START]; + var moveDependencies = [TOP_TOUCH_MOVE]; + var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; - while (fiber) { - if (fiber.stateNode !== null && fiber.tag === HostComponent) { - hostNode = findNodeHandle(fiber.stateNode); - } - if (hostNode) { - return hostNode; - } - fiber = fiber.child; - } - return null; - }; - getHostProps = function getHostProps(fiber) { - var host = findCurrentHostFiber(fiber); - if (host) { - return host.memoizedProps || emptyObject$1; - } - return emptyObject$1; + /** + * Tracks the position and time of each active touch by `touch.identifier`. We + * should typically only see IDs in the range of 1-20 because IDs get recycled + * when touches end and start again. + */ + + var MAX_TOUCH_BANK = 20; + var touchBank = []; + var touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + // If there is only one active touch, we remember its location. This prevents + // us having to loop through all of the touches all the time in the most + // common case. + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + // The legacy internal implementation provides "timeStamp", which has been + // renamed to "timestamp". Let both work for now while we iron it out + // TODO (evv): rename timeStamp to timestamp in internal code + return touch.timeStamp || touch.timestamp; + } + /** + * TODO: Instead of making gestures recompute filtered velocity, we could + * include a built in velocity computation that can be reused globally. + */ + + function createTouchRecord(touch) { + return { + touchActive: true, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) }; - exports.getInspectorDataForInstance = function (closestInstance) { - if (!closestInstance) { - return { - hierarchy: [], - props: emptyObject$1, - selectedIndex: null, - source: null - }; + } + function resetTouchRecord(touchRecord, touch) { + touchRecord.touchActive = true; + touchRecord.startPageX = touch.pageX; + touchRecord.startPageY = touch.pageY; + touchRecord.startTimeStamp = timestampForTouch(touch); + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchRecord.previousPageX = touch.pageX; + touchRecord.previousPageY = touch.pageY; + touchRecord.previousTimeStamp = timestampForTouch(touch); + } + function getTouchIdentifier(_ref) { + var identifier = _ref.identifier; + if (identifier == null) { + throw new Error("Touch object is missing identifier."); + } + { + if (identifier > MAX_TOUCH_BANK) { + error("Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK); } - var fiber = findCurrentFiberUsingSlowPath(closestInstance); - var fiberHierarchy = getOwnerHierarchy(fiber); - var instance = lastNonHostInstance(fiberHierarchy); - var hierarchy = createHierarchy(fiberHierarchy); - var props = getHostProps(instance); - var source = instance._debugSource; - var selectedIndex = fiberHierarchy.indexOf(instance); - return { - hierarchy: hierarchy, - props: props, - selectedIndex: selectedIndex, - source: source - }; - }; - getOwnerHierarchy = function getOwnerHierarchy(instance) { - var hierarchy = []; - _traverseOwnerTreeUp(hierarchy, instance); - return hierarchy; - }; - lastNonHostInstance = function lastNonHostInstance(hierarchy) { - for (var i = hierarchy.length - 1; i > 1; i--) { - var instance = hierarchy[i]; - if (instance.tag !== HostComponent) { - return instance; - } + } + return identifier; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch); + var touchRecord = touchBank[identifier]; + if (touchRecord) { + resetTouchRecord(touchRecord, touch); + } else { + touchBank[identifier] = createTouchRecord(touch); + } + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = true; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); } - return hierarchy[0]; - }; - _traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { - if (instance) { - hierarchy.unshift(instance); - _traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + if (touchRecord) { + touchRecord.touchActive = false; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + { + warn("Cannot record touch end without a touch start.\n" + "Touch End: %s\n" + "Touch Bank: %s", printTouch(touch), printTouchBank()); } - }; + } } - var getInspectorDataForViewTag; - var getInspectorDataForViewAtPoint; - { - getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { - var closestInstance = getInstanceFromTag(viewTag); - - if (!closestInstance) { - return { - hierarchy: [], - props: emptyObject$1, - selectedIndex: null, - source: null - }; + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); + if (touchBank.length > MAX_TOUCH_BANK) { + printed += " (original size: " + touchBank.length + ")"; + } + return printed; + } + var instrumentationCallback; + var ResponderTouchHistoryStore = { + /** + * Registers a listener which can be used to instrument every touch event. + */ + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (instrumentationCallback != null) { + instrumentationCallback(topLevelType, nativeEvent); } - var fiber = findCurrentFiberUsingSlowPath(closestInstance); - var fiberHierarchy = getOwnerHierarchy(fiber); - var instance = lastNonHostInstance(fiberHierarchy); - var hierarchy = createHierarchy(fiberHierarchy); - var props = getHostProps(instance); - var source = instance._debugSource; - var selectedIndex = fiberHierarchy.indexOf(instance); - return { - hierarchy: hierarchy, - props: props, - selectedIndex: selectedIndex, - source: source - }; - }; - getInspectorDataForViewAtPoint = function getInspectorDataForViewAtPoint(findNodeHandle, inspectedView, locationX, locationY, callback) { - var closestInstance = null; - if (inspectedView._internalInstanceHandle != null) { - nativeFabricUIManager.findNodeAtPoint(inspectedView._internalInstanceHandle.stateNode.node, locationX, locationY, function (internalInstanceHandle) { - if (internalInstanceHandle == null) { - callback(assign({ - pointerY: locationY, - frame: { - left: 0, - top: 0, - width: 0, - height: 0 - } - }, exports.getInspectorDataForInstance(closestInstance))); + if (isMoveish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchMove); + } else if (isStartish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchStart); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; + } + } else if (isEndish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchEnd); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + if (touchHistory.numberActiveTouches === 1) { + for (var i = 0; i < touchBank.length; i++) { + var touchTrackToCheck = touchBank[i]; + if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { + touchHistory.indexOfSingleActiveTouch = i; + break; + } + } + { + var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; + if (activeRecord == null || !activeRecord.touchActive) { + error("Cannot find single active touch."); + } } - closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; - - var nativeViewTag = internalInstanceHandle.stateNode.canonical._nativeTag; - nativeFabricUIManager.measure(internalInstanceHandle.stateNode.node, function (x, y, width, height, pageX, pageY) { - var inspectorData = exports.getInspectorDataForInstance(closestInstance); - callback(assign({}, inspectorData, { - pointerY: locationY, - frame: { - left: pageX, - top: pageY, - width: width, - height: height - }, - touchedViewTag: nativeViewTag - })); - }); - }); - } else if (inspectedView._internalFiberInstanceHandleDEV != null) { - ReactNativePrivateInterface.UIManager.findSubviewIn(findNodeHandle(inspectedView), [locationX, locationY], function (nativeViewTag, left, top, width, height) { - var inspectorData = exports.getInspectorDataForInstance(getInstanceFromTag(nativeViewTag)); - callback(assign({}, inspectorData, { - pointerY: locationY, - frame: { - left: left, - top: top, - width: width, - height: height - }, - touchedViewTag: nativeViewTag - })); - }); - } else { - error("getInspectorDataForViewAtPoint expects to receive a host component"); - return; - } - }; - } - var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; - function findHostInstance_DEPRECATED(componentOrHandle) { - { - var owner = ReactCurrentOwner$3.current; - if (owner !== null && owner.stateNode !== null) { - if (!owner.stateNode._warnedAboutRefsInRender) { - error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); } - owner.stateNode._warnedAboutRefsInRender = true; } + }, + touchHistory: touchHistory + }; + + /** + * Accumulates items that must not be null or undefined. + * + * This is used to conserve memory by avoiding array allocations. + * + * @return {*|array<*>} An accumulation of items. + */ + + function accumulate(current, next) { + if (next == null) { + throw new Error("accumulate(...): Accumulated items must not be null or undefined."); } - if (componentOrHandle == null) { - return null; + if (current == null) { + return next; + } // Both are not empty. Warning: Never call x.concat(y) when you are not + // certain that x is an Array (x could be a string with concat method). + + if (isArray(current)) { + return current.concat(next); + } + if (isArray(next)) { + return [current].concat(next); } + return [current, next]; + } - if (componentOrHandle._nativeTag) { - return componentOrHandle; + /** + * Accumulates items that must not be null or undefined into the first one. This + * is used to conserve memory by avoiding array allocations, and thus sacrifices + * API cleanness. Since `current` can be null before being passed in and not + * null after this function, make sure to assign it back to `current`: + * + * `a = accumulateInto(a, b);` + * + * This API should be sparingly used. Try `accumulate` for something cleaner. + * + * @return {*|array<*>} An accumulation of items. + */ + + function accumulateInto(current, next) { + if (next == null) { + throw new Error("accumulateInto(...): Accumulated items must not be null or undefined."); } + if (current == null) { + return next; + } // Both are not empty. Warning: Never call x.concat(y) when you are not + // certain that x is an Array (x could be a string with concat method). - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { - return componentOrHandle.canonical; + if (isArray(current)) { + if (isArray(next)) { + current.push.apply(current, next); + return current; + } + current.push(next); + return current; } - var hostInstance; - { - hostInstance = findHostInstanceWithWarning(componentOrHandle, "findHostInstance_DEPRECATED"); + if (isArray(next)) { + // A bit too dangerous to mutate `next`. + return [current].concat(next); } - if (hostInstance == null) { - return hostInstance; + return [current, next]; + } + + /** + * @param {array} arr an "accumulation" of items which is either an Array or + * a single item. Useful when paired with the `accumulate` module. This is a + * simple utility that allows us to reason about a collection of items, but + * handling the case when there is exactly one item (and we do not need to + * allocate an array). + * @param {function} cb Callback invoked with each element or a collection. + * @param {?} [scope] Scope used as `this` in a callback. + */ + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); } - if (hostInstance.canonical) { - return hostInstance.canonical; + } + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; // Before we know whether it is function or class + + var HostRoot = 3; // Root of a host tree. Could be nested inside another node. + + var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. + + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + + /** + * Instance of element that should respond to touch/move types of interactions, + * as indicated explicitly by relevant callbacks. + */ + + var responderInst = null; + /** + * Count of current touches. A textInput should become responder iff the + * selection changes while there is a touch on the screen. + */ + + var trackedTouchCount = 0; + var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (ResponderEventPlugin.GlobalResponderHandler !== null) { + ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + }; + var eventTypes = { + /** + * On a `touchStart`/`mouseDown`, is it desired that this element become the + * responder? + */ + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + /** + * On a `scroll`, is it desired that this element become the responder? This + * is usually not needed, but should be used to retroactively infer that a + * `touchStart` had occurred during momentum scroll. During a momentum scroll, + * a touch start will be immediately followed by a scroll event if the view is + * currently scrolling. + * + * TODO: This shouldn't bubble. + */ + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: [TOP_SCROLL] + }, + /** + * On text selection change, should this element become the responder? This + * is needed for text inputs or other views with native selection, so the + * JS view can claim the responder. + * + * TODO: This shouldn't bubble. + */ + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: [TOP_SELECTION_CHANGE] + }, + /** + * On a `touchMove`/`mouseMove`, is it desired that this element become the + * responder? + */ + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + /** + * Direct responder events dispatched directly to responder. Do not bubble. + */ + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] } + }; // Start of inline: the below functions were inlined from + // EventPropagator.js, as they deviated from ReactDOM's newer + // implementations. - return hostInstance; + function getParent(inst) { + do { + inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. + // That is depending on if we want nested subtrees (layers) to bubble + // events to their parent. We could also go through parentNode on the + // host node but that wouldn't work for React Native and doesn't let us + // do the portal feature. + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; } - function findNodeHandle(componentOrHandle) { - { - var owner = ReactCurrentOwner$3.current; - if (owner !== null && owner.stateNode !== null) { - if (!owner.stateNode._warnedAboutRefsInRender) { - error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); - } - owner.stateNode._warnedAboutRefsInRender = true; + /** + * Return the lowest common ancestor of A and B, or null if they are in + * different trees. + */ + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + var depthB = 0; + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } // If A is deeper, crawl up. + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } // If B is deeper, crawl up. + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } // Walk in lockstep until we find a match. + + var depth = depthA; + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; } + instA = getParent(instA); + instB = getParent(instB); } - if (componentOrHandle == null) { - return null; + return null; + } + /** + * Return if A is an ancestor of B. + */ + + function isAncestor(instA, instB) { + while (instB) { + if (instA === instB || instA === instB.alternate) { + return true; + } + instB = getParent(instB); } - if (typeof componentOrHandle === "number") { - return componentOrHandle; + return false; + } + /** + * Simulates the traversal of a two-phase, capture/bubble event dispatch. + */ + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent(inst); } - if (componentOrHandle._nativeTag) { - return componentOrHandle._nativeTag; + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); } - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { - return componentOrHandle.canonical._nativeTag; + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); } - var hostInstance; - { - hostInstance = findHostInstanceWithWarning(componentOrHandle, "findNodeHandle"); + } + function getListener(inst, registrationName) { + var stateNode = inst.stateNode; + if (stateNode === null) { + // Work in progress (ex: onload events in incremental mode). + return null; } - if (hostInstance == null) { - return hostInstance; + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + // Work in progress. + return null; } - - if (hostInstance.canonical) { - return hostInstance.canonical._nativeTag; + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); } - return hostInstance._nativeTag; + return listener; } - function dispatchCommand(handle, command, args) { - if (handle._nativeTag == null) { - { - error("dispatchCommand was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + function accumulateDirectionalDispatches(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); } - return; } - if (handle._internalInstanceHandle != null) { - var stateNode = handle._internalInstanceHandle.stateNode; - if (stateNode != null) { - nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); - } - } else { - ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args); + var listener = listenerAtPhase(inst, event, phase); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); } } - function sendAccessibilityEvent(handle, eventType) { - if (handle._nativeTag == null) { - { - error("sendAccessibilityEvent was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); - } - return; - } - if (handle._internalInstanceHandle != null) { - var stateNode = handle._internalInstanceHandle.stateNode; - if (stateNode != null) { - nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType); + /** + * Accumulates without regard to direction, does not look for phased + * registration names. Same as `accumulateDirectDispatchesSingle` but without + * requiring that the `dispatchMarker` be the same as the dispatched ID. + */ + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); } - } else { - ReactNativePrivateInterface.legacySendAccessibilityEvent(handle._nativeTag, eventType); } } - function onRecoverableError(error$1) { - error(error$1); - } - function render(element, containerTag, callback, concurrentRoot) { - var root = roots.get(containerTag); - if (!root) { - root = createContainer(containerTag, concurrentRoot ? ConcurrentRoot : LegacyRoot, null, false, null, "", onRecoverableError); - roots.set(containerTag, root); - } - updateContainer(element, root, null, callback); + /** + * Accumulates dispatches on an `SyntheticEvent`, but only for the + * `dispatchMarker`. + * @param {SyntheticEvent} event + */ - return getPublicRootInstance(root); + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } } - function unmountComponentAtNode(containerTag) { - this.stopSurface(containerTag); + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); } - function stopSurface(containerTag) { - var root = roots.get(containerTag); - if (root) { - updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + var parentInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); } } - function createPortal$1(children, containerTag) { - var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return createPortal(children, containerTag, null, key); + function accumulateTwoPhaseDispatchesSkipTarget(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); } - setBatchingImplementation(batchedUpdates$1); - var roots = new Map(); - injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromInstance, - bundleType: 1, - version: ReactVersion, - rendererPackageName: "react-native-renderer", - rendererConfig: { - getInspectorDataForViewTag: getInspectorDataForViewTag, - getInspectorDataForViewAtPoint: getInspectorDataForViewAtPoint.bind(null, findNodeHandle) + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); } - }); - exports.createPortal = createPortal$1; - exports.dispatchCommand = dispatchCommand; - exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; - exports.findNodeHandle = findNodeHandle; - exports.render = render; - exports.sendAccessibilityEvent = sendAccessibilityEvent; - exports.stopSurface = stopSurface; - exports.unmountComponentAtNode = unmountComponentAtNode; - - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } - })(); - } -},204,[36,39,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } // End of inline - if (process.env.NODE_ENV === 'production') { - module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/scheduler.production.min.js"); - } else { - module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/scheduler.development.js"); - } -},205,[206,207],"node_modules/scheduler/index.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; + /** + * + * Responder System: + * ---------------- + * + * - A global, solitary "interaction lock" on a view. + * - If a node becomes the responder, it should convey visual feedback + * immediately to indicate so, either by highlighting or moving accordingly. + * - To be the responder means, that touches are exclusively important to that + * responder view, and no other view. + * - While touches are still occurring, the responder lock can be transferred to + * a new view, but only to increasingly "higher" views (meaning ancestors of + * the current responder). + * + * Responder being granted: + * ------------------------ + * + * - Touch starts, moves, and scrolls can cause an ID to become the responder. + * - We capture/bubble `startShouldSetResponder`/`moveShouldSetResponder` to + * the "appropriate place". + * - If nothing is currently the responder, the "appropriate place" is the + * initiating event's `targetID`. + * - If something *is* already the responder, the "appropriate place" is the + * first common ancestor of the event target and the current `responderInst`. + * - Some negotiation happens: See the timing diagram below. + * - Scrolled views automatically become responder. The reasoning is that a + * platform scroll view that isn't built on top of the responder system has + * began scrolling, and the active responder must now be notified that the + * interaction is no longer locked to it - the system has taken over. + * + * - Responder being released: + * As soon as no more touches that *started* inside of descendants of the + * *current* responderInst, an `onResponderRelease` event is dispatched to the + * current responder, and the responder lock is released. + * + * TODO: + * - on "end", a callback hook for `onResponderEndShouldRemainResponder` that + * determines if the responder lock should remain. + * - If a view shouldn't "remain" the responder, any active touches should by + * default be considered "dead" and do not influence future negotiations or + * bubble paths. It should be as if those touches do not exist. + * -- For multitouch: Usually a translate-z will choose to "remain" responder + * after one out of many touches ended. For translate-y, usually the view + * doesn't wish to "remain" responder after one of many touches end. + * - Consider building this on top of a `stopPropagation` model similar to + * `W3C` events. + * - Ensure that `onResponderTerminate` is called on touch cancels, whether or + * not `onResponderTerminationRequest` returns `true` or `false`. + * + */ - function f(a, b) { - var c = a.length; - a.push(b); - a: for (; 0 < c;) { - var d = c - 1 >>> 1, - e = a[d]; - if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;else break a; - } - } - function h(a) { - return 0 === a.length ? null : a[0]; - } - function k(a) { - if (0 === a.length) return null; - var b = a[0], - c = a.pop(); - if (c !== b) { - a[0] = c; - a: for (var d = 0, e = a.length, w = e >>> 1; d < w;) { - var m = 2 * (d + 1) - 1, - C = a[m], - n = m + 1, - x = a[n]; - if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n;else break a; + /* Negotiation Performed + +-----------------------+ + / \ + Process low level events to + Current Responder + wantsResponderID + determine who to perform negot-| (if any exists at all) | + iation/transition | Otherwise just pass through| + -------------------------------+----------------------------+------------------+ + Bubble to find first ID | | + to return true:wantsResponderID| | + | | + +-------------+ | | + | onTouchStart| | | + +------+------+ none | | + | return| | + +-----------v-------------+true| +------------------------+ | + |onStartShouldSetResponder|----->|onResponderStart (cur) |<-----------+ + +-----------+-------------+ | +------------------------+ | | + | | | +--------+-------+ + | returned true for| false:REJECT +-------->|onResponderReject + | wantsResponderID | | | +----------------+ + | (now attempt | +------------------+-----+ | + | handoff) | | onResponder | | + +------------------->| TerminationRequest| | + | +------------------+-----+ | + | | | +----------------+ + | true:GRANT +-------->|onResponderGrant| + | | +--------+-------+ + | +------------------------+ | | + | | onResponderTerminate |<-----------+ + | +------------------+-----+ | + | | | +----------------+ + | +-------->|onResponderStart| + | | +----------------+ + Bubble to find first ID | | + to return true:wantsResponderID| | + | | + +-------------+ | | + | onTouchMove | | | + +------+------+ none | | + | return| | + +-----------v-------------+true| +------------------------+ | + |onMoveShouldSetResponder |----->|onResponderMove (cur) |<-----------+ + +-----------+-------------+ | +------------------------+ | | + | | | +--------+-------+ + | returned true for| false:REJECT +-------->|onResponderRejec| + | wantsResponderID | | | +----------------+ + | (now attempt | +------------------+-----+ | + | handoff) | | onResponder | | + +------------------->| TerminationRequest| | + | +------------------+-----+ | + | | | +----------------+ + | true:GRANT +-------->|onResponderGrant| + | | +--------+-------+ + | +------------------------+ | | + | | onResponderTerminate |<-----------+ + | +------------------+-----+ | + | | | +----------------+ + | +-------->|onResponderMove | + | | +----------------+ + | | + | | + Some active touch started| | + inside current responder | +------------------------+ | + +------------------------->| onResponderEnd | | + | | +------------------------+ | + +---+---------+ | | + | onTouchEnd | | | + +---+---------+ | | + | | +------------------------+ | + +------------------------->| onResponderEnd | | + No active touches started| +-----------+------------+ | + inside current responder | | | + | v | + | +------------------------+ | + | | onResponderRelease | | + | +------------------------+ | + | | + + + */ + + /** + * A note about event ordering in the `EventPluginRegistry`. + * + * Suppose plugins are injected in the following order: + * + * `[R, S, C]` + * + * To help illustrate the example, assume `S` is `SimpleEventPlugin` (for + * `onClick` etc) and `R` is `ResponderEventPlugin`. + * + * "Deferred-Dispatched Events": + * + * - The current event plugin system will traverse the list of injected plugins, + * in order, and extract events by collecting the plugin's return value of + * `extractEvents()`. + * - These events that are returned from `extractEvents` are "deferred + * dispatched events". + * - When returned from `extractEvents`, deferred-dispatched events contain an + * "accumulation" of deferred dispatches. + * - These deferred dispatches are accumulated/collected before they are + * returned, but processed at a later time by the `EventPluginRegistry` (hence the + * name deferred). + * + * In the process of returning their deferred-dispatched events, event plugins + * themselves can dispatch events on-demand without returning them from + * `extractEvents`. Plugins might want to do this, so that they can use event + * dispatching as a tool that helps them decide which events should be extracted + * in the first place. + * + * "On-Demand-Dispatched Events": + * + * - On-demand-dispatched events are not returned from `extractEvents`. + * - On-demand-dispatched events are dispatched during the process of returning + * the deferred-dispatched events. + * - They should not have side effects. + * - They should be avoided, and/or eventually be replaced with another + * abstraction that allows event plugins to perform multiple "rounds" of event + * extraction. + * + * Therefore, the sequence of event dispatches becomes: + * + * - `R`s on-demand events (if any) (dispatched by `R` on-demand) + * - `S`s on-demand events (if any) (dispatched by `S` on-demand) + * - `C`s on-demand events (if any) (dispatched by `C` on-demand) + * - `R`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * - `S`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * - `C`s extracted events (if any) (dispatched by `EventPluginRegistry`) + * + * In the case of `ResponderEventPlugin`: If the `startShouldSetResponder` + * on-demand dispatch returns `true` (and some other details are satisfied) the + * `onResponderGrant` deferred dispatched event is returned from + * `extractEvents`. The sequence of dispatch executions in this case + * will appear as follows: + * + * - `startShouldSetResponder` (`ResponderEventPlugin` dispatches on-demand) + * - `touchStartCapture` (`EventPluginRegistry` dispatches as usual) + * - `touchStart` (`EventPluginRegistry` dispatches as usual) + * - `responderGrant/Reject` (`EventPluginRegistry` dispatches as usual) + */ + + function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; // TODO: stop one short of the current responder. + + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); // When capturing/bubbling the "shouldSet" event, we want to skip the target + // (deepest ID) if it happens to be the current responder. The reasoning: + // It's strange to get an `onMoveShouldSetResponder` when you're *already* + // the responder. + + var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; + var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); + shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + if (skipOverBubbleShouldSetFrom) { + accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); + } else { + accumulateTwoPhaseDispatches(shouldSetEvent); + } + var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); + if (!shouldSetEvent.isPersistent()) { + shouldSetEvent.constructor.release(shouldSetEvent); + } + if (!wantsResponderInst || wantsResponderInst === responderInst) { + return null; + } + var extracted; + var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); + grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(grantEvent); + var blockHostResponder = executeDirectDispatch(grantEvent) === true; + if (responderInst) { + var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); + terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminationRequestEvent); + var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); + if (!terminationRequestEvent.isPersistent()) { + terminationRequestEvent.constructor.release(terminationRequestEvent); + } + if (shouldSwitch) { + var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminateEvent); + extracted = accumulate(extracted, [grantEvent, terminateEvent]); + changeResponder(wantsResponderInst, blockHostResponder); + } else { + var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); + rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(rejectEvent); + extracted = accumulate(extracted, rejectEvent); + } + } else { + extracted = accumulate(extracted, grantEvent); + changeResponder(wantsResponderInst, blockHostResponder); + } + return extracted; } - } - return b; - } - function g(a, b) { - var c = a.sortIndex - b.sortIndex; - return 0 !== c ? c : a.id - b.id; - } - if ("object" === typeof performance && "function" === typeof performance.now) { - var l = performance; - exports.unstable_now = function () { - return l.now(); - }; - } else { - var p = Date, - q = p.now(); - exports.unstable_now = function () { - return p.now() - q; - }; - } - var r = [], - t = [], - u = 1, - v = null, - y = 3, - z = !1, - A = !1, - B = !1, - D = "function" === typeof setTimeout ? setTimeout : null, - E = "function" === typeof clearTimeout ? clearTimeout : null, - F = "undefined" !== typeof setImmediate ? setImmediate : null; - "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function G(a) { - for (var b = h(t); null !== b;) { - if (null === b.callback) k(t);else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b);else break; - b = h(t); - } - } - function H(a) { - B = !1; - G(a); - if (!A) if (null !== h(r)) A = !0, I(J);else { - var b = h(t); - null !== b && K(H, b.startTime - a); - } - } - function J(a, b) { - A = !1; - B && (B = !1, E(L), L = -1); - z = !0; - var c = y; - try { - G(b); - for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M());) { - var d = v.callback; - if ("function" === typeof d) { - v.callback = null; - y = v.priorityLevel; - var e = d(v.expirationTime <= b); - b = exports.unstable_now(); - "function" === typeof e ? v.callback = e : v === h(r) && k(r); - G(b); - } else k(r); - v = h(r); - } - if (null !== v) var w = !0;else { - var m = h(t); - null !== m && K(H, m.startTime - b); - w = !1; - } - return w; - } finally { - v = null, y = c, z = !1; - } - } - var N = !1, - O = null, - L = -1, - P = 5, - Q = -1; - function M() { - return exports.unstable_now() - Q < P ? !1 : !0; - } - function R() { - if (null !== O) { - var a = exports.unstable_now(); - Q = a; - var b = !0; - try { - b = O(!0, a); - } finally { - b ? S() : (N = !1, O = null); + /** + * A transfer is a negotiation between a currently set responder and the next + * element to claim responder status. Any start event could trigger a transfer + * of responderInst. Any move event could trigger a transfer. + * + * @param {string} topLevelType Record from `BrowserEventConstants`. + * @return {boolean} True if a transfer of responder could possibly occur. + */ + + function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { + return topLevelInst && ( + // responderIgnoreScroll: We are trying to migrate away from specifically + // tracking native scroll events here and responderIgnoreScroll indicates we + // will send topTouchCancel to handle canceling touch events instead + topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); } - } else N = !1; - } - var S; - if ("function" === typeof F) S = function S() { - F(R); - };else if ("undefined" !== typeof MessageChannel) { - var T = new MessageChannel(), - U = T.port2; - T.port1.onmessage = R; - S = function S() { - U.postMessage(null); - }; - } else S = function S() { - D(R, 0); - }; - function I(a) { - O = a; - N || (N = !0, S()); - } - function K(a, b) { - L = D(function () { - a(exports.unstable_now()); - }, b); - } - exports.unstable_IdlePriority = 5; - exports.unstable_ImmediatePriority = 1; - exports.unstable_LowPriority = 4; - exports.unstable_NormalPriority = 3; - exports.unstable_Profiling = null; - exports.unstable_UserBlockingPriority = 2; - exports.unstable_cancelCallback = function (a) { - a.callback = null; - }; - exports.unstable_continueExecution = function () { - A || z || (A = !0, I(J)); - }; - exports.unstable_forceFrameRate = function (a) { - 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1E3 / a) : 5; - }; - exports.unstable_getCurrentPriorityLevel = function () { - return y; - }; - exports.unstable_getFirstCallbackNode = function () { - return h(r); - }; - exports.unstable_next = function (a) { - switch (y) { - case 1: - case 2: - case 3: - var b = 3; - break; - default: - b = y; - } - var c = y; - y = b; - try { - return a(); - } finally { - y = c; - } - }; - exports.unstable_pauseExecution = function () {}; - exports.unstable_requestPaint = function () {}; - exports.unstable_runWithPriority = function (a, b) { - switch (a) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - a = 3; - } - var c = y; - y = a; - try { - return b(); - } finally { - y = c; - } - }; - exports.unstable_scheduleCallback = function (a, b, c) { - var d = exports.unstable_now(); - "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; - switch (a) { - case 1: - var e = -1; - break; - case 2: - e = 250; - break; - case 5: - e = 1073741823; - break; - case 4: - e = 1E4; - break; - default: - e = 5E3; - } - e = c + e; - a = { - id: u++, - callback: b, - priorityLevel: a, - startTime: c, - expirationTime: e, - sortIndex: -1 - }; - c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = !0, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = !0, I(J))); - return a; - }; - exports.unstable_shouldYield = M; - exports.unstable_wrapCallback = function (a) { - var b = y; - return function () { - var c = y; - y = b; - try { - return a.apply(this, arguments); - } finally { - y = c; + /** + * Returns whether or not this touch end event makes it such that there are no + * longer any touches that started inside of the current `responderInst`. + * + * @param {NativeEvent} nativeEvent Native touch end event. + * @return {boolean} Whether or not this touch end event ends the responder. + */ + + function noResponderTouches(nativeEvent) { + var touches = nativeEvent.touches; + if (!touches || touches.length === 0) { + return true; + } + for (var i = 0; i < touches.length; i++) { + var activeTouch = touches[i]; + var target = activeTouch.target; + if (target !== null && target !== undefined && target !== 0) { + // Is the original touch location inside of the current responder? + var targetInst = getInstanceFromNode(target); + if (isAncestor(responderInst, targetInst)) { + return false; + } + } + } + return true; } - }; - }; -},206,[],"node_modules/scheduler/cjs/scheduler.production.min.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** - * @license React - * scheduler.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + var ResponderEventPlugin = { + /* For unit testing only */ + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + /** + * We must be resilient to `targetInst` being `null` on `touchMove` or + * `touchEnd`. On certain platforms, this means that a native scroll has + * assumed control and the original touch targets are destroyed. + */ + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + if (isStartish(topLevelType)) { + trackedTouchCount += 1; + } else if (isEndish(topLevelType)) { + if (trackedTouchCount >= 0) { + trackedTouchCount -= 1; + } else { + { + warn("Ended a touch event which was not counted in `trackedTouchCount`."); + } + return null; + } + } + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; // Responder may or may not have transferred on a new touch start/move. + // Regardless, whoever is the responder after any potential transfer, we + // direct all touch start/move/ends to them in the form of + // `onResponderMove/Start/End`. These will be called for *every* additional + // finger that move/start/end, dispatched directly to whoever is the + // current responder at that moment, until the responder is "released". + // + // These multiple individual change touch events are are always bookended + // by `onResponderGrant`, and one of + // (`onResponderRelease/onResponderTerminate`). - 'use strict'; + var isResponderTouchStart = responderInst && isStartish(topLevelType); + var isResponderTouchMove = responderInst && isMoveish(topLevelType); + var isResponderTouchEnd = responderInst && isEndish(topLevelType); + var incrementalTouch = isResponderTouchStart ? eventTypes.responderStart : isResponderTouchMove ? eventTypes.responderMove : isResponderTouchEnd ? eventTypes.responderEnd : null; + if (incrementalTouch) { + var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); + gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(gesture); + extracted = accumulate(extracted, gesture); + } + var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; + var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); + var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; + if (finalTouch) { + var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); + finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(finalEvent); + extracted = accumulate(extracted, finalEvent); + changeResponder(null); + } + return extracted; + }, + GlobalResponderHandler: null, + injection: { + /** + * @param {{onChange: (ReactID, ReactID) => void} GlobalResponderHandler + * Object that handles any change in responder. Use this to inject + * integration with an existing touch handling system etc. + */ + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }; - if (process.env.NODE_ENV !== "production") { - (function () { - 'use strict'; + /** + * Injectable ordering of event plugins. + */ + var eventPluginOrder = null; + /** + * Injectable mapping from names to event plugin modules. + */ - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - } - var enableSchedulerDebugging = false; - var enableProfiling = false; - var frameYieldMs = 5; - function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); - } - function peek(heap) { - return heap.length === 0 ? null : heap[0]; - } - function pop(heap) { - if (heap.length === 0) { - return null; - } - var first = heap[0]; - var last = heap.pop(); - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); + var namesToPlugins = {}; + /** + * Recomputes the plugin list using the injected plugins and plugin ordering. + * + * @private + */ + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + // Wait until an `eventPluginOrder` is injected. + return; } - return first; - } - function siftUp(heap, node, i) { - var index = i; - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - if (compare(parent, node) > 0) { - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - return; + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + if (pluginIndex <= -1) { + throw new Error("EventPluginRegistry: Cannot inject event plugins that do not exist in " + ("the plugin ordering, `" + pluginName + "`.")); + } + if (plugins[pluginIndex]) { + continue; + } + if (!pluginModule.extractEvents) { + throw new Error("EventPluginRegistry: Event plugins must implement an `extractEvents` " + ("method, but `" + pluginName + "` does not.")); + } + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + for (var eventName in publishedEvents) { + if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { + throw new Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } } } } - function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; + /** + * Publishes an event so that it can be dispatched by the supplied plugin. + * + * @param {object} dispatchConfig Dispatch configuration for the event. + * @param {object} PluginModule Plugin publishing the event. + * @return {boolean} True if the event was successfully published. + * @private + */ - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("event name, `" + eventName + "`.")); + } + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - return; } + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; } + return false; } - function compare(a, b) { - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; - } - - var ImmediatePriority = 1; - var UserBlockingPriority = 2; - var NormalPriority = 3; - var LowPriority = 4; - var IdlePriority = 5; - function markTaskErrored(task, ms) {} + /** + * Publishes a registration name that is used to identify dispatched events. + * + * @param {string} registrationName Registration name to add. + * @param {object} PluginModule Plugin publishing the event. + * @private + */ - var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function'; - if (hasPerformanceNow) { - var localPerformance = performance; - exports.unstable_now = function () { - return localPerformance.now(); - }; - } else { - var localDate = Date; - var initialTime = localDate.now(); - exports.unstable_now = function () { - return localDate.now() - initialTime; - }; + function publishRegistrationName(registrationName, pluginModule, eventName) { + if (registrationNameModules[registrationName]) { + throw new Error("EventPluginRegistry: More than one plugin attempted to publish the same " + ("registration name, `" + registrationName + "`.")); + } + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + } } + /** + * Registers plugins so that they can extract and dispatch events. + */ - var maxSigned31BitInt = 1073741823; + /** + * Ordered list of injected plugins. + */ - var IMMEDIATE_PRIORITY_TIMEOUT = -1; + var plugins = []; + /** + * Mapping from event name to dispatch config + */ - var USER_BLOCKING_PRIORITY_TIMEOUT = 250; - var NORMAL_PRIORITY_TIMEOUT = 5000; - var LOW_PRIORITY_TIMEOUT = 10000; + var eventNameDispatchConfigs = {}; + /** + * Mapping from registration name to plugin module + */ - var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + var registrationNameModules = {}; + /** + * Mapping from registration name to event name + */ - var taskQueue = []; - var timerQueue = []; + var registrationNameDependencies = {}; - var taskIdCounter = 1; - var currentTask = null; - var currentPriorityLevel = NormalPriority; + /** + * Injects an ordering of plugins (by plugin name). This allows the ordering + * to be decoupled from injection of the actual plugins so that ordering is + * always deterministic regardless of packaging, on-the-fly injection, etc. + * + * @param {array} InjectedEventPluginOrder + * @internal + */ - var isPerformingWork = false; - var isHostCallbackScheduled = false; - var isHostTimeoutScheduled = false; + function injectEventPluginOrder(injectedEventPluginOrder) { + if (eventPluginOrder) { + throw new Error("EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); + } // Clone the ordering so it cannot be dynamically mutated. - var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; - var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; - var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + /** + * Injects plugins to be used by plugin event system. The plugin names must be + * in the ordering injected by `injectEventPluginOrder`. + * + * Plugins can be injected as part of page initialization or on-the-fly. + * + * @param {object} injectedNamesToPlugins Map from names to plugin modules. + * @internal + */ - var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; - function advanceTimers(currentTime) { - var timer = peek(timerQueue); - while (timer !== null) { - if (timer.callback === null) { - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - return; + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; } - timer = peek(timerQueue); - } - } - function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + var pluginModule = injectedNamesToPlugins[pluginName]; + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + if (namesToPlugins[pluginName]) { + throw new Error("EventPluginRegistry: Cannot inject two different event plugins " + ("using the same name, `" + pluginName + "`.")); } + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; } } + if (isOrderingDirty) { + recomputePluginOrdering(); + } } - function flushWork(hasTimeRemaining, initialTime) { - isHostCallbackScheduled = false; - if (isHostTimeoutScheduled) { - isHostTimeoutScheduled = false; - cancelHostTimeout(); + + /** + * Get a list of listeners for a specific event, in-order. + * For React Native we treat the props-based function handlers + * as the first-class citizens, and they are always executed first + * for both capture and bubbling phase. + * + * We need "phase" propagated to this point to support the HostComponent + * EventEmitter API, which does not mutate the name of the handler based + * on phase (whereas prop handlers are registered as `onMyEvent` and `onMyEvent_Capture`). + * + * Native system events emitted into React Native + * will be emitted both to the prop handler function and to imperative event + * listeners. + * + * This will either return null, a single Function without an array, or + * an array of 2+ items. + */ + + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (stateNode === null) { + return null; + } // If null: Work in progress (ex: onload events in incremental mode). + + var props = getFiberCurrentPropsFromNode(stateNode); + if (props === null) { + // Work in progress. + return null; } - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - try { - if (enableProfiling) { - try { - return workLoop(hasTimeRemaining, initialTime); - } catch (error) { - if (currentTask !== null) { - var currentTime = exports.unstable_now(); - markTaskErrored(currentTask, currentTime); - currentTask.isQueued = false; + var listener = props[registrationName]; + if (listener && typeof listener !== "function") { + throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); + } // If there are no imperative listeners, early exit. + + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) { + return listener; + } // Below this is the de-optimized path. + // If you are using _eventListeners, we do not (yet) + // expect this to be as performant as the props-only path. + // If/when this becomes a bottleneck, it can be refactored + // to avoid unnecessary closures and array allocations. + // + // Previously, there was only one possible listener for an event: + // the onEventName property in props. + // Now, it is also possible to have N listeners + // for a specific event on a node. Thus, we accumulate all of the listeners, + // including the props listener, and return a function that calls them all in + // order, starting with the handler prop and then the listeners in order. + // We return either a non-empty array or null. + + var listeners = []; + if (listener) { + listeners.push(listener); + } // TODO: for now, all of these events get an `rn:` prefix to enforce + // that the user knows they're only getting non-W3C-compliant events + // through this imperative event API. + // Events might not necessarily be noncompliant, but we currently have + // no verification that /any/ events are compliant. + // Thus, we prefix to ensure no collision with W3C event names. + + var requestedPhaseIsCapture = phase === "captured"; + var mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; // Get imperative event listeners for this event + + if (stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length > 0) { + var eventListeners = stateNode.canonical._eventListeners[mangledImperativeRegistrationName]; + eventListeners.forEach(function (listenerObj) { + // Make sure phase of listener matches requested phase + var isCaptureEvent = listenerObj.options.capture != null && listenerObj.options.capture; + if (isCaptureEvent !== requestedPhaseIsCapture) { + return; + } // For now (this is an area of future optimization) we must wrap + // all imperative event listeners in a function to unwrap the SyntheticEvent + // and pass them an Event. + // When this API is more stable and used more frequently, we can revisit. + + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new ReactNativePrivateInterface.CustomEvent(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = true; // setSyntheticEvent is present on the React Native Event shim. + // It is used to forward method calls on Event to the underlying SyntheticEvent. + // $FlowFixMe + + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - throw error; + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; // Only call once? + // If so, we ensure that it's only called once by setting a flag + // and by removing it from eventListeners once it is called (but only + // when it's actually been executed). + + if (listenerObj.options.once) { + listeners.push(function () { + // Remove from the event listener once it's been called + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); // Guard against function being called more than once in + // case there are somehow multiple in-flight references to + // it being processed + + if (!listenerObj.invalidated) { + listenerObj.invalidated = true; + listenerObj.listener.apply(listenerObj, arguments); + } + }); + } else { + listeners.push(listenerFnWrapper); } + }); + } + if (listeners.length === 0) { + return null; + } + if (listeners.length === 1) { + return listeners[0]; + } + return listeners; + } + var customBubblingEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes; // Start of inline: the below functions were inlined from + // EventPropagator.js, as they deviated from ReactDOM's newer + // implementations. + + function listenersAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListeners(inst, registrationName, propagationPhase, true); + } + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArray(listeners) ? listeners.length : 1 : 0; + if (listenersLength > 0) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners); // Avoid allocating additional arrays here + + if (event._dispatchInstances == null && listenersLength === 1) { + event._dispatchInstances = inst; } else { - return workLoop(hasTimeRemaining, initialTime); + event._dispatchInstances = event._dispatchInstances || []; + if (!isArray(event._dispatchInstances)) { + event._dispatchInstances = [event._dispatchInstances]; + } + for (var i = 0; i < listenersLength; i++) { + event._dispatchInstances.push(inst); + } } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; } } - function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - while (currentTask !== null && !enableSchedulerDebugging) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - break; - } - var callback = currentTask.callback; - if (typeof callback === 'function') { - currentTask.callback = null; - currentPriorityLevel = currentTask.priorityLevel; - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = exports.unstable_now(); - if (typeof continuationCallback === 'function') { - currentTask.callback = continuationCallback; - } else { - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - } - advanceTimers(currentTime); - } else { - pop(taskQueue); + function accumulateDirectionalDispatches$1(inst, phase, event) { + { + if (!inst) { + error("Dispatching inst must not be null"); } - currentTask = peek(taskQueue); } + var listeners = listenersAtPhase(inst, event, phase); + accumulateListenersAndInstances(inst, event, listeners); + } + function getParent$1(inst) { + do { + inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. + // That is depending on if we want nested subtrees (layers) to bubble + // events to their parent. We could also go through parentNode on the + // host node but that wouldn't work for React Native and doesn't let us + // do the portal feature. + } while (inst && inst.tag !== HostComponent); + if (inst) { + return inst; + } + return null; + } + /** + * Simulates the traversal of a two-phase, capture/bubble event dispatch. + */ - if (currentTask !== null) { - return true; + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + var path = []; + while (inst) { + path.push(inst); + inst = getParent$1(inst); + } + var i; + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + if (skipBubbling) { + // Dispatch on target only + fn(path[0], "bubbled", arg); } else { - var firstTimer = peek(timerQueue); - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); } - return false; } } - function unstable_runWithPriority(priorityLevel, eventHandler) { - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - case LowPriority: - case IdlePriority: - break; - default: - priorityLevel = NormalPriority; + function accumulateTwoPhaseDispatchesSingle$1(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, false); } - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; + } + function accumulateTwoPhaseDispatches$1(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle$1); + } + function accumulateCapturePhaseDispatches(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, true); } } - function unstable_next(eventHandler) { - var priorityLevel; - switch (currentPriorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - priorityLevel = NormalPriority; - break; - default: - priorityLevel = currentPriorityLevel; - break; + /** + * Accumulates without regard to direction, does not look for phased + * registration names. Same as `accumulateDirectDispatchesSingle` but without + * requiring that the `dispatchMarker` be the same as the dispatched ID. + */ + + function accumulateDispatches$1(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listeners = getListeners(inst, registrationName, "bubbled", false); + accumulateListenersAndInstances(inst, event, listeners); } - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; + } + /** + * Accumulates dispatches on an `SyntheticEvent`, but only for the + * `dispatchMarker`. + * @param {SyntheticEvent} event + */ + + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches$1(event._targetInst, null, event); } } - function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel; - return function () { - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = parentPriorityLevel; - try { - return callback.apply(this, arguments); - } finally { - currentPriorityLevel = previousPriorityLevel; + function accumulateDirectDispatches$1(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle$1); + } // End of inline + + var ReactNativeBridgeEventPlugin = { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (targetInst == null) { + // Probably a node belonging to another renderer's tree. + return null; } - }; - } - function unstable_scheduleCallback(priorityLevel, callback, options) { - var currentTime = exports.unstable_now(); - var startTime; - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType]; + var directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) { + throw new Error( + // $FlowFixMe - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque + 'Unsupported top level event type "' + topLevelType + '" dispatched'); } - } else { - startTime = currentTime; - } - var timeout; - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - if (startTime > currentTime) { - newTask.sortIndex = startTime; - push(timerQueue, newTask); - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - if (isHostTimeoutScheduled) { - cancelHostTimeout(); + var event = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) { + var skipBubbling = event != null && event.dispatchConfig.phasedRegistrationNames != null && event.dispatchConfig.phasedRegistrationNames.skipBubbling; + if (skipBubbling) { + accumulateCapturePhaseDispatches(event); } else { - isHostTimeoutScheduled = true; + accumulateTwoPhaseDispatches$1(event); } - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); + } else if (directDispatchConfig) { + accumulateDirectDispatches$1(event); + } else { + return null; } + return event; } - return newTask; + }; + var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + + /** + * Make sure essential globals are available and are patched correctly. Please don't remove this + * line. Bundles created by react-packager `require` it before executing any application code. This + * ensures it exists in the dependency graph and can be `require`d. + * TODO: require this in packager, not in React #10932517 + */ + /** + * Inject module for resolving DOM hierarchy and plugin ordering. + */ + + injectEventPluginOrder(ReactNativeEventPluginOrder); + /** + * Some important event plugins included by default (without having to require + * them). + */ + + injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + var instanceCache = new Map(); + var instanceProps = new Map(); + function precacheFiberNode(hostInst, tag) { + instanceCache.set(tag, hostInst); + } + function uncacheFiberNode(tag) { + instanceCache.delete(tag); + instanceProps.delete(tag); + } + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; } - function unstable_pauseExecution() {} - function unstable_continueExecution() { - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); + function getTagFromInstance(inst) { + var nativeInstance = inst.stateNode; + var tag = nativeInstance._nativeTag; + if (tag === undefined) { + nativeInstance = nativeInstance.canonical; + tag = nativeInstance._nativeTag; + } + if (!tag) { + throw new Error("All native instances should have a tag."); } + return nativeInstance; + } + function getFiberCurrentPropsFromNode$1(stateNode) { + return instanceProps.get(stateNode._nativeTag) || null; } - function unstable_getFirstCallbackNode() { - return peek(taskQueue); + function updateFiberProps(tag, props) { + instanceProps.set(tag, props); } - function unstable_cancelCallback(task) { - task.callback = null; + // Used as a way to call batchedUpdates when we don't have a reference to + // the renderer. Such as when we're dispatching events or if third party + // libraries need to call batchedUpdates. Eventually, this API will go away when + // everything is batched by default. We'll then have a similar API to opt-out of + // scheduled work and instead do synchronous work. + // Defaults + var batchedUpdatesImpl = function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + }; + var isInsideEventHandler = false; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) { + // If we are currently inside another batch, we need to wait until it + // fully completes before restoring state. + return fn(bookkeeping); + } + isInsideEventHandler = true; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = false; + } } - function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel; + function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl) { + batchedUpdatesImpl = _batchedUpdatesImpl; } - var isMessageLoopRunning = false; - var scheduledHostCallback = null; - var taskTimeoutID = -1; - var frameInterval = frameYieldMs; - var startTime = -1; - function shouldYieldToHost() { - var timeElapsed = exports.unstable_now() - startTime; - if (timeElapsed < frameInterval) { - return false; + /** + * Internal queue of events that have accumulated their dispatches and are + * waiting to have their dispatches executed. + */ + + var eventQueue = null; + /** + * Dispatches an event and releases it back into the pool, unless persistent. + * + * @param {?object} event Synthetic event to be dispatched. + * @private + */ + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) { + if (event) { + executeDispatchesInOrder(event); + if (!event.isPersistent()) { + event.constructor.release(event); + } } + }; + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e); + }; + function runEventsInBatch(events) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } // Set `eventQueue` to null before processing it so that we can tell if more + // events get enqueued while processing. - return true; - } - function requestPaint() {} - function forceFrameRate(fps) { - if (fps < 0 || fps > 125) { - console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported'); + var processingEventQueue = eventQueue; + eventQueue = null; + if (!processingEventQueue) { return; } - if (fps > 0) { - frameInterval = Math.floor(1000 / fps); - } else { - frameInterval = frameYieldMs; - } + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + if (eventQueue) { + throw new Error("processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + } // This would be a good time to rethrow if any of the event handlers threw. + + rethrowCaughtError(); } - var performWorkUntilDeadline = function performWorkUntilDeadline() { - if (scheduledHostCallback !== null) { - var currentTime = exports.unstable_now(); - startTime = currentTime; - var hasTimeRemaining = true; + /** + * Version of `ReactBrowserEventEmitter` that works on the receiving side of a + * serialized worker boundary. + */ + // Shared default empty native event - conserve memory. - var hasMoreWork = true; - try { - hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); - } finally { - if (hasMoreWork) { - schedulePerformWorkUntilDeadline(); - } else { - isMessageLoopRunning = false; - scheduledHostCallback = null; - } + var EMPTY_NATIVE_EVENT = {}; + /** + * Selects a subsequence of `Touch`es, without destroying `touches`. + * + * @param {Array} touches Deserialized touch objects. + * @param {Array} indices Indices by which to pull subsequence. + * @return {Array} Subsequence of touch objects. + */ + + var touchSubsequence = function touchSubsequence(touches, indices) { + var ret = []; + for (var i = 0; i < indices.length; i++) { + ret.push(touches[indices[i]]); + } + return ret; + }; + /** + * TODO: Pool all of this. + * + * Destroys `touches` by removing touch objects at indices `indices`. This is + * to maintain compatibility with W3C touch "end" events, where the active + * touches don't include the set that has just been "ended". + * + * @param {Array} touches Deserialized touch objects. + * @param {Array} indices Indices to remove from `touches`. + * @return {Array} Subsequence of removed touch objects. + */ + + var removeTouchesAtIndices = function removeTouchesAtIndices(touches, indices) { + var rippedOut = []; // use an unsafe downcast to alias to nullable elements, + // so we can delete and then compact. + + var temp = touches; + for (var i = 0; i < indices.length; i++) { + var index = indices[i]; + rippedOut.push(touches[index]); + temp[index] = null; + } + var fillAt = 0; + for (var j = 0; j < temp.length; j++) { + var cur = temp[j]; + if (cur !== null) { + temp[fillAt++] = cur; } - } else { - isMessageLoopRunning = false; } + temp.length = fillAt; + return rippedOut; }; + /** + * Internal version of `receiveEvent` in terms of normalized (non-tag) + * `rootNodeID`. + * + * @see receiveEvent. + * + * @param {rootNodeID} rootNodeID React root node ID that event occurred on. + * @param {TopLevelType} topLevelType Top level type of event. + * @param {?object} nativeEventParam Object passed from native. + */ - var schedulePerformWorkUntilDeadline; - if (typeof localSetImmediate === 'function') { - schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { - localSetImmediate(performWorkUntilDeadline); - }; - } else if (typeof MessageChannel !== 'undefined') { - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = performWorkUntilDeadline; - schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { - port.postMessage(null); - }; - } else { - schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { - localSetTimeout(performWorkUntilDeadline, 0); - }; + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT; + var inst = getInstanceFromTag(rootNodeID); + var target = null; + if (inst != null) { + target = inst.stateNode; + } + batchedUpdates(function () { + runExtractedPluginEventsInBatch(topLevelType, inst, nativeEvent, target); + }); // React Native doesn't use ReactControlledComponent but if it did, here's + // where it would do it. } - function requestHostCallback(callback) { - scheduledHostCallback = callback; - if (!isMessageLoopRunning) { - isMessageLoopRunning = true; - schedulePerformWorkUntilDeadline(); + /** + * Allows registered plugins an opportunity to extract events from top-level + * native browser events. + * + * @return {*} An accumulation of synthetic events. + * @internal + */ + + function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + var legacyPlugins = plugins; + for (var i = 0; i < legacyPlugins.length; i++) { + // Not every plugin in the ordering may be loaded at runtime. + var possiblePlugin = legacyPlugins[i]; + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } } + return events; } - function requestHostTimeout(callback, ms) { - taskTimeoutID = localSetTimeout(function () { - callback(exports.unstable_now()); - }, ms); + function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events); } - function cancelHostTimeout() { - localClearTimeout(taskTimeoutID); - taskTimeoutID = -1; + /** + * Publicly exposed method on module for native objc to invoke when a top + * level event is extracted. + * @param {rootNodeID} rootNodeID React root node ID that event occurred on. + * @param {TopLevelType} topLevelType Top level type of event. + * @param {object} nativeEventParam Object passed from native. + */ + + function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); } - var unstable_requestPaint = requestPaint; - var unstable_Profiling = null; - exports.unstable_IdlePriority = IdlePriority; - exports.unstable_ImmediatePriority = ImmediatePriority; - exports.unstable_LowPriority = LowPriority; - exports.unstable_NormalPriority = NormalPriority; - exports.unstable_Profiling = unstable_Profiling; - exports.unstable_UserBlockingPriority = UserBlockingPriority; - exports.unstable_cancelCallback = unstable_cancelCallback; - exports.unstable_continueExecution = unstable_continueExecution; - exports.unstable_forceFrameRate = forceFrameRate; - exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; - exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; - exports.unstable_next = unstable_next; - exports.unstable_pauseExecution = unstable_pauseExecution; - exports.unstable_requestPaint = unstable_requestPaint; - exports.unstable_runWithPriority = unstable_runWithPriority; - exports.unstable_scheduleCallback = unstable_scheduleCallback; - exports.unstable_shouldYield = shouldYieldToHost; - exports.unstable_wrapCallback = unstable_wrapCallback; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + /** + * Simple multi-wrapper around `receiveEvent` that is intended to receive an + * efficient representation of `Touch` objects, and other information that + * can be used to construct W3C compliant `Event` and `Touch` lists. + * + * This may create dispatch behavior that differs than web touch handling. We + * loop through each of the changed touches and receive it as a single event. + * So two `touchStart`/`touchMove`s that occur simultaneously are received as + * two separate touch event dispatches - when they arguably should be one. + * + * This implementation reuses the `Touch` objects themselves as the `Event`s + * since we dispatch an event for each touch (though that might not be spec + * compliant). The main purpose of reusing them is to save allocations. + * + * TODO: Dispatch multiple changed touches in one event. The bubble path + * could be the first common ancestor of all the `changedTouches`. + * + * One difference between this behavior and W3C spec: cancelled touches will + * not appear in `.touches`, or in any future `.touches`, though they may + * still be "actively touching the surface". + * + * Web desktop polyfills only need to construct a fake touch event with + * identifier 0, also abandoning traditional click handlers. + */ + + function receiveTouches(eventTopLevelType, touches, changedIndices) { + var changedTouches = eventTopLevelType === "topTouchEnd" || eventTopLevelType === "topTouchCancel" ? removeTouchesAtIndices(touches, changedIndices) : touchSubsequence(touches, changedIndices); + for (var jj = 0; jj < changedTouches.length; jj++) { + var touch = changedTouches[jj]; // Touch objects can fulfill the role of `DOM` `Event` objects if we set + // the `changedTouches`/`touches`. This saves allocations. + + touch.changedTouches = changedTouches; + touch.touches = touches; + var nativeEvent = touch; + var rootNodeID = null; + var target = nativeEvent.target; + if (target !== null && target !== undefined) { + if (target < 1) { + { + error("A view is reporting that a touch occurred on tag zero."); + } + } else { + rootNodeID = target; + } + } // $FlowFixMe Shouldn't we *not* call it if rootNodeID is null? + + _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); + } } - })(); - } -},207,[],"node_modules/scheduler/cjs/scheduler.development.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - "use strict"; + // Module provided by RN: + var ReactNativeGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + if (to !== null) { + var tag = to.stateNode._nativeTag; + ReactNativePrivateInterface.UIManager.setJSResponder(tag, blockNativeResponder); + } else { + ReactNativePrivateInterface.UIManager.clearJSResponder(); + } + } + }; - _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); - var React = _$$_REQUIRE(_dependencyMap[1], "react"); - function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { - var funcArgs = Array.prototype.slice.call(arguments, 3); - try { - func.apply(context, funcArgs); - } catch (error) { - this.onError(error); - } - } - var hasError = !1, - caughtError = null, - hasRethrowError = !1, - rethrowError = null, - reporter = { - onError: function onError(error) { - hasError = !0; - caughtError = error; + /** + * Register the event emitter with the native bridge + */ + + ReactNativePrivateInterface.RCTEventEmitter.register({ + receiveEvent: receiveEvent, + receiveTouches: receiveTouches + }); + setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromTag, getTagFromInstance); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactNativeGlobalResponderHandler); + + /** + * `ReactInstanceMap` maintains a mapping from a public facing stateful + * instance (key) and the internal representation (value). This allows public + * methods to accept the user facing instance as an argument and map them back + * to internal methods. + * + * Note that this module is currently shared and assumed to be stateless. + * If this becomes an actual Map, that will break. + */ + function get(key) { + return key._reactInternals; } - }; - function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - hasError = !1; - caughtError = null; - invokeGuardedCallbackImpl.apply(reporter, arguments); - } - function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback.apply(this, arguments); - if (hasError) { - if (hasError) { - var error = caughtError; - hasError = !1; - caughtError = null; - } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); - hasRethrowError || (hasRethrowError = !0, rethrowError = error); - } - } - var isArrayImpl = Array.isArray, - getFiberCurrentPropsFromNode = null, - getInstanceFromNode = null, - getNodeFromInstance = null; - function executeDispatch(event, listener, inst) { - var type = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); - event.currentTarget = null; - } - function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - dispatchListener = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return dispatchListener; - } - var assign = Object.assign; - function functionThatReturnsTrue() { - return !0; - } - function functionThatReturnsFalse() { - return !1; - } - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - this._dispatchInstances = this._dispatchListeners = null; - dispatchConfig = this.constructor.Interface; - for (var propName in dispatchConfig) { - dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); - } - this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - assign(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface, - propName; - for (propName in Interface) { - this[propName] = null; + function set(key, value) { + key._reactInternals = value; } - this.nativeEvent = this._targetInst = this.dispatchConfig = null; - this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; - this._dispatchInstances = this._dispatchListeners = null; - } - }); - SyntheticEvent.Interface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - SyntheticEvent.extend = function (Interface) { - function E() {} - function Class() { - return Super.apply(this, arguments); - } - var Super = this; - E.prototype = Super.prototype; - var prototype = new E(); - assign(prototype, Class.prototype); - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = assign({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - addEventPoolingTo(SyntheticEvent); - function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - if (this.eventPool.length) { - var instance = this.eventPool.pop(); - this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - function releasePooledEvent(event) { - if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); - event.destructor(); - 10 > this.eventPool.length && this.eventPool.push(event); - } - function addEventPoolingTo(EventConstructor) { - EventConstructor.getPooled = createOrGetPooledEvent; - EventConstructor.eventPool = []; - EventConstructor.release = releasePooledEvent; - } - var ResponderSyntheticEvent = SyntheticEvent.extend({ - touchHistory: function touchHistory() { - return null; - } - }); - function isStartish(topLevelType) { - return "topTouchStart" === topLevelType; - } - function isMoveish(topLevelType) { - return "topTouchMove" === topLevelType; - } - var startDependencies = ["topTouchStart"], - moveDependencies = ["topTouchMove"], - endDependencies = ["topTouchCancel", "topTouchEnd"], - touchBank = [], - touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - function getTouchIdentifier(_ref) { - _ref = _ref.identifier; - if (null == _ref) throw Error("Touch object is missing identifier."); - return _ref; - } - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch), - touchRecord = touchBank[identifier]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { - touchActive: !0, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }, touchBank[identifier] = touchRecord); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); - } - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); - } - var instrumentationCallback, - ResponderTouchHistoryStore = { - instrument: function instrument(callback) { - instrumentationCallback = callback; - }, - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); - if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { - if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { - touchHistory.indexOfSingleActiveTouch = topLevelType; - break; - } + var enableSchedulingProfiler = false; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var warnAboutStringRefs = false; + var enableSuspenseAvoidThisFallback = false; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + + // ATTENTION + // When adding new symbols to this file, + // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' + // The Symbol used to tag the ReactElement-like types. + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; } - }, - touchHistory: touchHistory - }; - function accumulate(current, next) { - if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); - return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; - } - function accumulateInto(current, next) { - if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); - if (null == current) return next; - if (isArrayImpl(current)) { - if (isArrayImpl(next)) return current.push.apply(current, next), current; - current.push(next); - return current; - } - return isArrayImpl(next) ? [current].concat(next) : [current, next]; - } - function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - } - var responderInst = null, - trackedTouchCount = 0; - function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - var eventTypes = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: ["topScroll"] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: ["topSelectionChange"] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }; - function getParent(inst) { - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - return inst ? inst : null; - } - function traverseTwoPhase(inst, fn, arg) { - for (var path = []; inst;) { - path.push(inst), inst = getParent(inst); - } - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - function getListener(inst, registrationName) { - inst = inst.stateNode; - if (null === inst) return null; - inst = getFiberCurrentPropsFromNode(inst); - if (null === inst) return null; - if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); - return inst; - } - function accumulateDirectionalDispatches(inst, phase, event) { - if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - if (inst && event && event.dispatchConfig.registrationName) { - var listener = getListener(inst, event.dispatchConfig.registrationName); - listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; } - } - } - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - targetInst = targetInst ? getParent(targetInst) : null; - traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); - } - } - function accumulateTwoPhaseDispatchesSingle(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - var ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; - if (responderInst) b: { - var JSCompiler_temp = responderInst; - for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) { - depthA++; - } - tempA = 0; - for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { - tempA++; - } - for (; 0 < depthA - tempA;) { - JSCompiler_temp = getParent(JSCompiler_temp), depthA--; - } - for (; 0 < tempA - depthA;) { - targetInst = getParent(targetInst), tempA--; - } - for (; depthA--;) { - if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; - JSCompiler_temp = getParent(JSCompiler_temp); - targetInst = getParent(targetInst); - } - JSCompiler_temp = null; - } else JSCompiler_temp = targetInst; - targetInst = JSCompiler_temp; - JSCompiler_temp = targetInst === responderInst; - shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); - shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; - JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); - b: { - JSCompiler_temp = shouldSetEventType._dispatchListeners; - targetInst = shouldSetEventType._dispatchInstances; - if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { - if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { - JSCompiler_temp = targetInst[depthA]; - break b; - } - } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { - JSCompiler_temp = targetInst; - break b; - } - JSCompiler_temp = null; + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } // Keep in sync with react-reconciler/getComponentNameFromFiber + + function getContextName(type) { + return type.displayName || "Context"; + } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. + + function getComponentNameFromType(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue."); } - shouldSetEventType._dispatchInstances = null; - shouldSetEventType._dispatchListeners = null; - shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); - if (JSCompiler_temp && JSCompiler_temp !== responderInst) { - if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { - if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { - depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); - depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; - forEachAccumulated(depthA, accumulateDirectDispatchesSingle); - var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); - changeResponder(JSCompiler_temp, targetInst); - } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); - } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); - } else JSCompiler_temp$jscomp$0 = null; - } else JSCompiler_temp$jscomp$0 = null; - shouldSetEventType = responderInst && isStartish(topLevelType); - JSCompiler_temp = responderInst && isMoveish(topLevelType); - targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); - if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); - shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; - if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { - if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) { - if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { - depthA = getInstanceFromNode(targetInst); - b: { - for (targetInst = responderInst; depthA;) { - if (targetInst === depthA || targetInst === depthA.alternate) { - targetInst = !0; - break b; - } - depthA = getParent(depthA); - } - targetInst = !1; + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; } - if (targetInst) { - topLevelType = !1; - break a; + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } } - } + + // eslint-disable-next-line no-fallthrough } - topLevelType = !0; - } - if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); - return JSCompiler_temp$jscomp$0; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; } + + return null; } - }, - eventPluginOrder = null, - namesToPlugins = {}; - function recomputePluginOrdering() { - if (eventPluginOrder) for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); - if (!plugins[pluginIndex]) { - if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); - plugins[pluginIndex] = pluginModule; - pluginIndex = pluginModule.eventTypes; - for (var eventName in pluginIndex) { - var JSCompiler_inline_result = void 0; - var dispatchConfig = pluginIndex[eventName], - eventName$jscomp$0 = eventName; - if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); - eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (JSCompiler_inline_result in phasedRegistrationNames) { - phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } // Keep in sync with shared/getComponentNameFromType + + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, + type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + // Host component type is the display name (e.g. "div", "View") + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + // Name comes from the type in this case; we don't have a tag. + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + // Don't be less specific than shared/getComponentNameFromType + return "StrictMode"; } - JSCompiler_inline_result = !0; - } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; - if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + // The display name for this tags come from the user-provided type: + + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; } + return null; } - } - } - function publishRegistrationName(registrationName, pluginModule) { - if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); - registrationNameModules[registrationName] = pluginModule; - } - var plugins = [], - eventNameDispatchConfigs = {}, - registrationNameModules = {}; - function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { - var stateNode = inst.stateNode; - if (null === stateNode) return null; - inst = getFiberCurrentPropsFromNode(stateNode); - if (null === inst) return null; - if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); - if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; - var listeners = []; - inst && listeners.push(inst); - var requestedPhaseIsCapture = "captured" === phase, - mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; - stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { - if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { - var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { - var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { - detail: syntheticEvent.nativeEvent - }); - eventInst.isTrusted = !0; - eventInst.setSyntheticEvent(syntheticEvent); - for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; + + // Don't change these two values. They're used by React Dev Tools. + var NoFlags = /* */ + 0; + var PerformedWork = /* */ + 1; // You can change the rest (and add more). + + var Placement = /* */ + 2; + var Update = /* */ + 4; + var ChildDeletion = /* */ + 16; + var ContentReset = /* */ + 32; + var Callback = /* */ + 64; + var DidCapture = /* */ + 128; + var ForceClientRender = /* */ + 256; + var Ref = /* */ + 512; + var Snapshot = /* */ + 1024; + var Passive = /* */ + 2048; + var Hydrating = /* */ + 4096; + var Visibility = /* */ + 8192; + var StoreConsistency = /* */ + 16384; + var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) + + var HostEffectMask = /* */ + 32767; // These are not really side effects, but we still reuse this field. + + var Incomplete = /* */ + 32768; + var ShouldCapture = /* */ + 65536; + var ForceUpdateForLegacySuspense = /* */ + 131072; + var Forked = /* */ + 1048576; // Static tags describe aspects of a fiber that are not specific to a render, + // e.g. a fiber uses a passive effect (even if there are no updates on this particular render). + // This enables us to defer more work in the unmount case, + // since we can defer traversing the tree during layout to look for Passive effects, + // and instead rely on the static flag as a signal that there may be cleanup work. + + var RefStatic = /* */ + 2097152; + var LayoutStatic = /* */ + 4194304; + var PassiveStatic = /* */ + 8388608; // These flags allow us to traverse to fibers that have effects on mount + // don't contain effects, by checking subtreeFlags. + + var BeforeMutationMask = + // TODO: Remove Update flag from before mutation phase by re-landing Visibility + // flag logic (see #20043) + Update | Snapshot | 0; + var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; + var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask + + var PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones. + // This allows certain concepts to persist without recalculating them, + // e.g. whether a subtree contains passive effects or portals. + + var StaticMask = LayoutStatic | PassiveStatic | RefStatic; + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + // If there is no alternate, this might be a new tree that isn't inserted + // yet. If it is, then it will have a pending insertion effect on it. + var nextNode = node; + do { + node = nextNode; + if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + // This is an insertion or in-progress hydration. The nearest possible + // mounted fiber is the parent but we need to continue to figure out + // if that one is still mounted. + nearestMounted = node.return; + } + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; } - listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); - }; - listenerObj.options.once ? listeners.push(function () { - stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); - listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); - }) : listeners.push(listenerFnWrapper); - } - }); - return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; - } - var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; - function accumulateListenersAndInstances(inst, event, listeners) { - var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; - if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) { - event._dispatchInstances.push(inst); - } - } - function accumulateDirectionalDispatches$1(inst, phase, event) { - phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); - accumulateListenersAndInstances(inst, event, phase); - } - function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { - for (var path = []; inst;) { - path.push(inst); - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - inst = inst ? inst : null; - } - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - function accumulateTwoPhaseDispatchesSingle$1(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); - } - function accumulateDirectDispatchesSingle$1(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - if (inst && event && event.dispatchConfig.registrationName) { - var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); - accumulateListenersAndInstances(inst, event, listeners); - } - } - } - if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); - recomputePluginOrdering(); - var injectedNamesToPlugins$jscomp$inline_218 = { - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: { - eventTypes: {}, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (null == targetInst) return null; - var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], - directDispatchConfig = customDirectEventTypes[topLevelType]; - if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); - topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; - return topLevelType; } + if (node.tag === HostRoot) { + // TODO: Check if this was a nested HostRoot when used with + // renderContainerIntoSubtree. + return nearestMounted; + } // If we didn't hit the root, that means that we're in an disconnected tree + // that has been unmounted. + + return null; } - }, - isOrderingDirty$jscomp$inline_219 = !1, - pluginName$jscomp$inline_220; - for (pluginName$jscomp$inline_220 in injectedNamesToPlugins$jscomp$inline_218) { - if (injectedNamesToPlugins$jscomp$inline_218.hasOwnProperty(pluginName$jscomp$inline_220)) { - var pluginModule$jscomp$inline_221 = injectedNamesToPlugins$jscomp$inline_218[pluginName$jscomp$inline_220]; - if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_220) || namesToPlugins[pluginName$jscomp$inline_220] !== pluginModule$jscomp$inline_221) { - if (namesToPlugins[pluginName$jscomp$inline_220]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_220 + "`.")); - namesToPlugins[pluginName$jscomp$inline_220] = pluginModule$jscomp$inline_221; - isOrderingDirty$jscomp$inline_219 = !0; + function isFiberMounted(fiber) { + return getNearestMountedFiber(fiber) === fiber; } - } - } - isOrderingDirty$jscomp$inline_219 && recomputePluginOrdering(); - function getInstanceFromInstance(instanceHandle) { - return instanceHandle; - } - getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(inst) { - return inst.canonical.currentProps; - }; - getInstanceFromNode = getInstanceFromInstance; - getNodeFromInstance = function getNodeFromInstance(inst) { - inst = inst.stateNode.canonical; - if (!inst._nativeTag) throw Error("All native instances should have a tag."); - return inst; - }; - ResponderEventPlugin.injection.injectGlobalResponderHandler({ - onChange: function onChange(from, to, blockNativeResponder) { - var fromOrTo = from || to; - (fromOrTo = fromOrTo && fromOrTo.stateNode) && fromOrTo.canonical._internalInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.stateNode.node, !1, blockNativeResponder || !1), to && nativeFabricUIManager.setIsJSResponder(to.stateNode.node, !0, blockNativeResponder || !1)) : null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); - } - }); - var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"); - Symbol.for("react.scope"); - Symbol.for("react.debug_trace_mode"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - Symbol.for("react.legacy_hidden"); - Symbol.for("react.cache"); - Symbol.for("react.tracing_marker"); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) return type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if ("object" === typeof type) switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return (type.displayName || "Context") + ".Consumer"; - case REACT_PROVIDER_TYPE: - return (type._context.displayName || "Context") + ".Provider"; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); - return type; - case REACT_MEMO_TYPE: - return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return (type.displayName || "Context") + ".Consumer"; - case 10: - return (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); - case 7: - return "Fragment"; - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 17: - case 2: - case 14: - case 15: - if ("function" === typeof type) return type.displayName || type.name || null; - if ("string" === typeof type) return type; - } - return null; - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return;) { - node = node.return; - } else { - fiber = node; - do { - node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; - } while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate;;) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + if (!instance._warnedAboutRefsInRender) { + error("%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"); + } + instance._warnedAboutRefsInRender = true; + } } - break; + var fiber = get(component); + if (!fiber) { + return false; + } + return getNearestMountedFiber(fiber) === fiber; } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB;) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error("Unable to find node on an unmounted component."); } - throw Error("Unable to find node on an unmounted component."); } - if (a.return !== b.return) a = parentA, b = parentB;else { - for (var didFindChild = !1, child$0 = parentA.child; child$0;) { - if (child$0 === a) { - didFindChild = !0; - a = parentA; - b = parentB; + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + // If there is no alternate, then we only need to check if it is mounted. + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error("Unable to find node on an unmounted component."); + } + if (nearestMounted !== fiber) { + return null; + } + return fiber; + } // If we have two possible branches, we'll walk backwards up to the root + // to see what path the root points to. On the way we may hit one of the + // special cases and we'll deal with them. + + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + // We're at the root. break; } - if (child$0 === b) { - didFindChild = !0; - b = parentA; - a = parentB; + var parentB = parentA.alternate; + if (parentB === null) { + // There is no alternate. This is an unusual case. Currently, it only + // happens when a Suspense component is hidden. An extra fragment fiber + // is inserted in between the Suspense fiber and its children. Skip + // over this extra fragment fiber and proceed to the next parent. + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } // If there's no parent, we're at the root. + break; + } // If both copies of the parent fiber point to the same child, we can + // assume that the child is current. This happens when we bailout on low + // priority: the bailed out fiber's child reuses the current child. + + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + // We've determined that A is the current branch. + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + // We've determined that B is the current branch. + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } // We should never have an alternate for any mounting node. So the only + // way this could possibly happen is if this was unmounted, if at all. + + throw new Error("Unable to find node on an unmounted component."); } - child$0 = child$0.sibling; - } - if (!didFindChild) { - for (child$0 = parentB.child; child$0;) { - if (child$0 === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; + if (a.return !== b.return) { + // The return pointer of A and the return pointer of B point to different + // fibers. We assume that return pointers never criss-cross, so A must + // belong to the child set of A.return, and B must belong to the child + // set of B.return. + a = parentA; + b = parentB; + } else { + // The return pointers point to the same fiber. We'll have to use the + // default, slow path: scan the child sets of each parent alternate to see + // which child belongs to which set. + // + // Search parent A's child set + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; } - if (child$0 === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; + if (!didFindChild) { + // Search parent B's child set + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error("Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); + } } - child$0 = child$0.sibling; } - if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); - } - } - if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); - } - if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - if (5 === node.tag || 6 === node.tag) return node; - for (node = node.child; null !== node;) { - var match = findCurrentHostFiberImpl(node); - if (null !== match) return match; - node = node.sibling; - } - return null; - } - function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { - return function () { - if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); - }; - } - var emptyObject = {}, - removedKeys = null, - removedKeyCount = 0, - deepDifferOptions = { - unsafelyIgnoreFunctions: !0 - }; - function defaultDiffer(prevProp, nextProp) { - return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); - } - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } else if (node && 0 < removedKeyCount) for (i in removedKeys) { - if (removedKeys[i]) { - var nextProp = node[i]; - if (void 0 !== nextProp) { - var attributeConfig = validAttributes[i]; - if (attributeConfig) { - "function" === typeof nextProp && (nextProp = !0); - "undefined" === typeof nextProp && (nextProp = null); - if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; - removedKeys[i] = !1; - removedKeyCount--; + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); } + } // If the root is not a host container, we're in a disconnected tree. I.e. + // unmounted. + + if (a.tag !== HostRoot) { + throw new Error("Unable to find node on an unmounted component."); } + if (a.stateNode.current === a) { + // We've determined that A is the current branch. + return fiber; + } // Otherwise B has to be current branch. + + return alternate; } - } - } - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) return updatePayload; - if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; - if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { - var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, - i; - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); - } - for (; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - for (; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; } - return updatePayload; - } - return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); - } - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) return updatePayload; - if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - return updatePayload; - } - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) return updatePayload; - if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - return updatePayload; - } - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig, propKey; - for (propKey in nextProps) { - if (attributeConfig = validAttributes[propKey]) { - var prevProp = prevProps[propKey]; - var nextProp = nextProps[propKey]; - "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); - "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); - removedKeys && (removedKeys[propKey] = !1); - if (updatePayload && void 0 !== updatePayload[propKey]) { - if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { - if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + function findCurrentHostFiberImpl(node) { + // Next we'll drill down this component to find the first HostComponent/Text. + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } + var child = node.child; + while (child !== null) { + var match = findCurrentHostFiberImpl(child); + if (match !== null) { + return match; } - } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { - if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; - } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + child = child.sibling; + } + return null; } - } - for (var propKey$2 in prevProps) { - void 0 === nextProps[propKey$2] && (!(attributeConfig = validAttributes[propKey$2]) || updatePayload && void 0 !== updatePayload[propKey$2] || (prevProp = prevProps[propKey$2], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$2] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$2] || (removedKeys[propKey$2] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); - } - return updatePayload; - } - function batchedUpdatesImpl(fn, bookkeeping) { - return fn(bookkeeping); - } - var isInsideEventHandler = !1; - function batchedUpdates(fn, bookkeeping) { - if (isInsideEventHandler) return fn(bookkeeping); - isInsideEventHandler = !0; - try { - return batchedUpdatesImpl(fn, bookkeeping); - } finally { - isInsideEventHandler = !1; - } - } - var eventQueue = null; - function executeDispatchesAndReleaseTopLevel(e) { - if (e) { - var dispatchListeners = e._dispatchListeners, - dispatchInstances = e._dispatchInstances; - if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { - executeDispatch(e, dispatchListeners[i], dispatchInstances[i]); - } else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); - e._dispatchListeners = null; - e._dispatchInstances = null; - e.isPersistent() || e.constructor.release(e); - } - } - function dispatchEvent(target, topLevelType, nativeEvent) { - var eventTarget = null; - if (null != target) { - var stateNode = target.stateNode; - null != stateNode && (eventTarget = stateNode.canonical); - } - batchedUpdates(function () { - var event = { - eventName: topLevelType, - nativeEvent: nativeEvent + + // Modules provided by RN: + var emptyObject = {}; + /** + * Create a payload that contains all the updates between two sets of props. + * + * These helpers are all encapsulated into a single module, because they use + * mutation as a performance optimization which leads to subtle shared + * dependencies between the code paths. To avoid this mutable state leaking + * across modules, I've kept them isolated to this module. + */ + + // Tracks removed keys + var removedKeys = null; + var removedKeyCount = 0; + var deepDifferOptions = { + unsafelyIgnoreFunctions: true }; - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit(topLevelType, event); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit("*", event); - event = eventTarget; - for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { - var possiblePlugin = legacyPlugins[i]; - possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, target, nativeEvent, event)) && (events = accumulateInto(events, possiblePlugin)); - } - event = events; - null !== event && (eventQueue = accumulateInto(eventQueue, event)); - event = eventQueue; - eventQueue = null; - if (event) { - forEachAccumulated(event, executeDispatchesAndReleaseTopLevel); - if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); - if (hasRethrowError) throw event = rethrowError, hasRethrowError = !1, rethrowError = null, event; - } - }); - } - var rendererID = null, - injectedHook = null; - function onCommitRoot(root) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { - injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); - } catch (err) {} - } - var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, - log = Math.log, - LN2 = Math.LN2; - function clz32Fallback(x) { - x >>>= 0; - return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; - } - var nextTransitionLane = 64, - nextRetryLane = 4194304; - function getHighestPriorityLanes(lanes) { - switch (lanes & -lanes) { - case 1: - return 1; - case 2: - return 2; - case 4: - return 4; - case 8: - return 8; - case 16: - return 16; - case 32: - return 32; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return lanes & 4194240; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return lanes & 130023424; - case 134217728: - return 134217728; - case 268435456: - return 268435456; - case 536870912: - return 536870912; - case 1073741824: - return 1073741824; - default: - return lanes; - } - } - function getNextLanes(root, wipLanes) { - var pendingLanes = root.pendingLanes; - if (0 === pendingLanes) return 0; - var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - nonIdlePendingLanes = pendingLanes & 268435455; - if (0 !== nonIdlePendingLanes) { - var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; - 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); - } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); - if (0 === nextLanes) return 0; - if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; - 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); - wipLanes = root.entangledLanes; - if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) { - pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; - } - return nextLanes; - } - function computeExpirationTime(lane, currentTime) { - switch (lane) { - case 1: - case 2: - case 4: - return currentTime + 250; - case 8: - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return currentTime + 5e3; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return -1; - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; - default: - return -1; - } - } - function getLanesToRetrySynchronouslyOnError(root) { - root = root.pendingLanes & -1073741825; - return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; - } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); - return lane; - } - function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) { - laneMap.push(initial); - } - return laneMap; - } - function markRootUpdated(root, updateLane, eventTime) { - root.pendingLanes |= updateLane; - 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); - root = root.eventTimes; - updateLane = 31 - clz32(updateLane); - root[updateLane] = eventTime; - } - function markRootFinished(root, remainingLanes) { - var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.expiredLanes &= remainingLanes; - root.mutableReadLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - remainingLanes = root.entanglements; - var eventTimes = root.eventTimes; - for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { - var index$7 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$7; - remainingLanes[index$7] = 0; - eventTimes[index$7] = -1; - root[index$7] = -1; - noLongerPendingLanes &= ~lane; - } - } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = root.entangledLanes |= entangledLanes; - for (root = root.entanglements; rootEntangledLanes;) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - lane & entangledLanes | root[index$8] & entangledLanes && (root[index$8] |= entangledLanes); - rootEntangledLanes &= ~lane; - } - } - var currentUpdatePriority = 0; - function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; - } - function shim$1() { - throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); - } - var _nativeFabricUIManage = nativeFabricUIManager, - createNode = _nativeFabricUIManage.createNode, - cloneNode = _nativeFabricUIManage.cloneNode, - cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, - cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, - cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, - createChildNodeSet = _nativeFabricUIManage.createChildSet, - appendChildNode = _nativeFabricUIManage.appendChild, - appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, - completeRoot = _nativeFabricUIManage.completeRoot, - registerEventHandler = _nativeFabricUIManage.registerEventHandler, - fabricMeasure = _nativeFabricUIManage.measure, - fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, - fabricMeasureLayout = _nativeFabricUIManage.measureLayout, - FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, - fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority, - getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, - nextReactTag = 2; - registerEventHandler && registerEventHandler(dispatchEvent); - var ReactFabricHostComponent = function () { - function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { - this._nativeTag = tag; - this.viewConfig = viewConfig; - this.currentProps = props; - this._internalInstanceHandle = internalInstanceHandle; - } - var _proto = ReactFabricHostComponent.prototype; - _proto.blur = function () { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); - }; - _proto.focus = function () { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); - }; - _proto.measure = function (callback) { - var stateNode = this._internalInstanceHandle.stateNode; - null != stateNode && fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureInWindow = function (callback) { - var stateNode = this._internalInstanceHandle.stateNode; - null != stateNode && fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - if ("number" !== typeof relativeToNativeNode && relativeToNativeNode instanceof ReactFabricHostComponent) { - var toStateNode = this._internalInstanceHandle.stateNode; - relativeToNativeNode = relativeToNativeNode._internalInstanceHandle.stateNode; - null != toStateNode && null != relativeToNativeNode && fabricMeasureLayout(toStateNode.node, relativeToNativeNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); - } - }; - _proto.setNativeProps = function () {}; - _proto.addEventListener_unstable = function (eventType, listener, options) { - if ("string" !== typeof eventType) throw Error("addEventListener_unstable eventType must be a string"); - if ("function" !== typeof listener) throw Error("addEventListener_unstable listener must be a function"); - var optionsObj = "object" === typeof options && null !== options ? options : {}; - options = ("boolean" === typeof options ? options : optionsObj.capture) || !1; - var once = optionsObj.once || !1; - optionsObj = optionsObj.passive || !1; - var eventListeners = this._eventListeners || {}; - null == this._eventListeners && (this._eventListeners = eventListeners); - var namedEventListeners = eventListeners[eventType] || []; - null == eventListeners[eventType] && (eventListeners[eventType] = namedEventListeners); - namedEventListeners.push({ - listener: listener, - invalidated: !1, - options: { - capture: options, - once: once, - passive: optionsObj, - signal: null - } - }); - }; - _proto.removeEventListener_unstable = function (eventType, listener, options) { - var optionsObj = "object" === typeof options && null !== options ? options : {}, - capture = ("boolean" === typeof options ? options : optionsObj.capture) || !1; - (options = this._eventListeners) && (optionsObj = options[eventType]) && (options[eventType] = optionsObj.filter(function (listenerObj) { - return !(listenerObj.listener === listener && listenerObj.options.capture === capture); - })); - }; - return ReactFabricHostComponent; - }(); - function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - hostContext = nextReactTag; - nextReactTag += 2; - return { - node: createNode(hostContext, "RCTRawText", rootContainerInstance, { - text: text - }, internalInstanceHandle) - }; - } - var scheduleTimeout = setTimeout, - cancelTimeout = clearTimeout; - function cloneHiddenInstance(instance) { - var node = instance.node; - var JSCompiler_inline_result = diffProperties(null, emptyObject, { - style: { - display: "none" - } - }, instance.canonical.viewConfig.validAttributes); - return { - node: cloneNodeWithNewProps(node, JSCompiler_inline_result), - canonical: instance.canonical - }; - } - function describeComponentFrame(name, source, ownerName) { - source = ""; - ownerName && (source = " (created by " + ownerName + ")"); - return "\n in " + (name || "Unknown") + source; - } - function describeFunctionComponentFrame(fn, source) { - return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; - } - var hasOwnProperty = Object.prototype.hasOwnProperty, - valueStack = [], - index = -1; - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - function pop(cursor) { - 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); - } - function push(cursor, value) { - index++; - valueStack[index] = cursor.current; - cursor.current = value; - } - var emptyContextObject = {}, - contextStackCursor = createCursor(emptyContextObject), - didPerformWorkStackCursor = createCursor(!1), - previousContext = emptyContextObject; - function getMaskedContext(workInProgress, unmaskedContext) { - var contextTypes = workInProgress.type.contextTypes; - if (!contextTypes) return emptyContextObject; - var instance = workInProgress.stateNode; - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; - var context = {}, - key; - for (key in contextTypes) { - context[key] = unmaskedContext[key]; - } - instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return context; - } - function isContextProvider(type) { - type = type.childContextTypes; - return null !== type && void 0 !== type; - } - function popContext() { - pop(didPerformWorkStackCursor); - pop(contextStackCursor); - } - function pushTopLevelContextObject(fiber, context, didChange) { - if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context); - push(didPerformWorkStackCursor, didChange); - } - function processChildContext(fiber, type, parentContext) { - var instance = fiber.stateNode; - type = type.childContextTypes; - if ("function" !== typeof instance.getChildContext) return parentContext; - instance = instance.getChildContext(); - for (var contextKey in instance) { - if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); - } - return assign({}, parentContext, instance); - } - function pushContextProvider(workInProgress) { - workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); - return !0; - } - function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); - didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); - push(didPerformWorkStackCursor, didChange); - } - function is(x, y) { - return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; - } - var objectIs = "function" === typeof Object.is ? Object.is : is, - syncQueue = null, - includesLegacySyncCallbacks = !1, - isFlushingSyncQueue = !1; - function flushSyncCallbacks() { - if (!isFlushingSyncQueue && null !== syncQueue) { - isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { - var callback = queue[i]; - do { - callback = callback(!0); - } while (null !== callback); + function defaultDiffer(prevProp, nextProp) { + if (typeof nextProp !== "object" || nextProp === null) { + // Scalars have already been checked for equality + return true; + } else { + // For objects and arrays, the default diffing algorithm is a deep compare + return ReactNativePrivateInterface.deepDiffer(prevProp, nextProp, deepDifferOptions); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; - } finally { - currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; - } - } - return null; - } - var forkStack = [], - forkStackIndex = 0, - treeForkProvider = null, - idStack = [], - idStackIndex = 0, - treeContextProvider = null; - function popTreeContext(workInProgress) { - for (; workInProgress === treeForkProvider;) { - treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; - } - for (; workInProgress === treeContextProvider;) { - treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; - } - } - var hydrationErrors = null, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; - function shallowEqual(objA, objB) { - if (objectIs(objA, objB)) return !0; - if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - for (keysB = 0; keysB < keysA.length; keysB++) { - var currentKey = keysA[keysB]; - if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; - } - return !0; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 5: - return describeComponentFrame(fiber.type, null, null); - case 16: - return describeComponentFrame("Lazy", null, null); - case 13: - return describeComponentFrame("Suspense", null, null); - case 19: - return describeComponentFrame("SuspenseList", null, null); - case 0: - case 2: - case 15: - return describeFunctionComponentFrame(fiber.type, null); - case 11: - return describeFunctionComponentFrame(fiber.type.render, null); - case 1: - return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; - default: - return ""; - } - } - function resolveDefaultProps(Component, baseProps) { - if (Component && Component.defaultProps) { - baseProps = assign({}, baseProps); - Component = Component.defaultProps; - for (var propName in Component) { - void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); } - return baseProps; - } - return baseProps; - } - var valueCursor = createCursor(null), - currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; - function resetContextDependencies() { - lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; - } - function popProvider(context) { - var currentValue = valueCursor.current; - pop(valueCursor); - context._currentValue2 = currentValue; - } - function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { - for (; null !== parent;) { - var alternate = parent.alternate; - (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); - if (parent === propagationRoot) break; - parent = parent.return; - } - } - function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; - workInProgress = workInProgress.dependencies; - null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); - } - function readContext(context) { - var value = context._currentValue2; - if (lastFullyObservedContext !== context) if (context = { - context: context, - memoizedValue: value, - next: null - }, null === lastContextDependency) { - if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); - lastContextDependency = context; - currentlyRenderingFiber.dependencies = { - lanes: 0, - firstContext: context - }; - } else lastContextDependency = lastContextDependency.next = context; - return value; - } - var interleavedQueues = null, - hasForceUpdate = !1; - function initializeUpdateQueue(fiber) { - fiber.updateQueue = { - baseState: fiber.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { - pending: null, - interleaved: null, - lanes: 0 - }, - effects: null - }; - } - function cloneUpdateQueue(current, workInProgress) { - current = current.updateQueue; - workInProgress.updateQueue === current && (workInProgress.updateQueue = { - baseState: current.baseState, - firstBaseUpdate: current.firstBaseUpdate, - lastBaseUpdate: current.lastBaseUpdate, - shared: current.shared, - effects: current.effects - }); - } - function createUpdate(eventTime, lane) { - return { - eventTime: eventTime, - lane: lane, - tag: 0, - payload: null, - callback: null, - next: null - }; - } - function enqueueUpdate(fiber, update) { - var updateQueue = fiber.updateQueue; - null !== updateQueue && (updateQueue = updateQueue.shared, isInterleavedUpdate(fiber) ? (fiber = updateQueue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [updateQueue] : interleavedQueues.push(updateQueue)) : (update.next = fiber.next, fiber.next = update), updateQueue.interleaved = update) : (fiber = updateQueue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), updateQueue.pending = update)); - } - function entangleTransitions(root, fiber, lane) { - fiber = fiber.updateQueue; - if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { - var queueLanes = fiber.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - fiber.lanes = lane; - markRootEntangled(root, lane); - } - } - function enqueueCapturedUpdate(workInProgress, capturedUpdate) { - var queue = workInProgress.updateQueue, - current = workInProgress.alternate; - if (null !== current && (current = current.updateQueue, queue === current)) { - var newFirst = null, - newLast = null; - queue = queue.firstBaseUpdate; - if (null !== queue) { - do { - var clone = { - eventTime: queue.eventTime, - lane: queue.lane, - tag: queue.tag, - payload: queue.payload, - callback: queue.callback, - next: null - }; - null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; - queue = queue.next; - } while (null !== queue); - null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; - } else newFirst = newLast = capturedUpdate; - queue = { - baseState: current.baseState, - firstBaseUpdate: newFirst, - lastBaseUpdate: newLast, - shared: current.shared, - effects: current.effects - }; - workInProgress.updateQueue = queue; - return; - } - workInProgress = queue.lastBaseUpdate; - null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; - queue.lastBaseUpdate = capturedUpdate; - } - function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { - var queue = workInProgress$jscomp$0.updateQueue; - hasForceUpdate = !1; - var firstBaseUpdate = queue.firstBaseUpdate, - lastBaseUpdate = queue.lastBaseUpdate, - pendingQueue = queue.shared.pending; - if (null !== pendingQueue) { - queue.shared.pending = null; - var lastPendingUpdate = pendingQueue, - firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = null; - null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; - lastBaseUpdate = lastPendingUpdate; - var current = workInProgress$jscomp$0.alternate; - null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); - } - if (null !== firstBaseUpdate) { - var newState = queue.baseState; - lastBaseUpdate = 0; - current = firstPendingUpdate = lastPendingUpdate = null; - pendingQueue = firstBaseUpdate; - do { - var updateLane = pendingQueue.lane, - updateEventTime = pendingQueue.eventTime; - if ((renderLanes & updateLane) === updateLane) { - null !== current && (current = current.next = { - eventTime: updateEventTime, - lane: 0, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: pendingQueue.callback, - next: null - }); - a: { - var workInProgress = workInProgress$jscomp$0, - update = pendingQueue; - updateLane = props; - updateEventTime = instance; - switch (update.tag) { - case 1: - workInProgress = update.payload; - if ("function" === typeof workInProgress) { - newState = workInProgress.call(updateEventTime, newState, updateLane); - break a; - } - newState = workInProgress; - break a; - case 3: - workInProgress.flags = workInProgress.flags & -65537 | 128; - case 0: - workInProgress = update.payload; - updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; - if (null === updateLane || void 0 === updateLane) break a; - newState = assign({}, newState, updateLane); - break a; - case 2: - hasForceUpdate = !0; + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArray(node)) { + var i = node.length; + while (i-- && removedKeyCount > 0) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } + } else if (node && removedKeyCount > 0) { + var obj = node; + for (var propKey in removedKeys) { + if (!removedKeys[propKey]) { + continue; + } + var nextProp = obj[propKey]; + if (nextProp === undefined) { + continue; + } + var attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; // not a valid native prop } + + if (typeof nextProp === "function") { + nextProp = true; + } + if (typeof nextProp === "undefined") { + nextProp = null; + } + if (typeof attributeConfig !== "object") { + // case: !Object is the default case + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + removedKeys[propKey] = false; + removedKeyCount--; } - null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); - } else updateEventTime = { - eventTime: updateEventTime, - lane: updateLane, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: pendingQueue.callback, - next: null - }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; - pendingQueue = pendingQueue.next; - if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; - } while (1); - null === current && (lastPendingUpdate = newState); - queue.baseState = lastPendingUpdate; - queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current; - props = queue.shared.interleaved; - if (null !== props) { - queue = props; - do { - lastBaseUpdate |= queue.lane, queue = queue.next; - } while (queue !== props); - } else null === firstBaseUpdate && (queue.shared.lanes = 0); - workInProgressRootSkippedLanes |= lastBaseUpdate; - workInProgress$jscomp$0.lanes = lastBaseUpdate; - workInProgress$jscomp$0.memoizedState = newState; - } - } - function commitUpdateQueue(finishedWork, finishedQueue, instance) { - finishedWork = finishedQueue.effects; - finishedQueue.effects = null; - if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { - var effect = finishedWork[finishedQueue], - callback = effect.callback; - if (null !== callback) { - effect.callback = null; - if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); - callback.call(instance); - } - } - } - var emptyRefsObject = new React.Component().refs; - function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { - ctor = workInProgress.memoizedState; - getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); - getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); - workInProgress.memoizedState = getDerivedStateFromProps; - 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); - } - var classComponentUpdater = { - isMounted: function isMounted(component) { - return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; - }, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - payload = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== payload && entangleTransitions(payload, inst, lane); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 1; - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - payload = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== payload && entangleTransitions(payload, inst, lane); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 2; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - callback = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== callback && entangleTransitions(callback, inst, lane); - } - }; - function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { - workInProgress = workInProgress.stateNode; - return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; - } - function constructClassInstance(workInProgress, ctor, props) { - var isLegacyContextConsumer = !1, - unmaskedContext = emptyContextObject; - var context = ctor.contextType; - "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); - ctor = new ctor(props, context); - workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; - ctor.updater = classComponentUpdater; - workInProgress.stateNode = ctor; - ctor._reactInternals = workInProgress; - isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return ctor; - } - function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { - workInProgress = instance.state; - "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); - "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); - instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { - var instance = workInProgress.stateNode; - instance.props = newProps; - instance.state = workInProgress.memoizedState; - instance.refs = emptyRefsObject; - initializeUpdateQueue(workInProgress); - var contextType = ctor.contextType; - "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); - instance.state = workInProgress.memoizedState; - contextType = ctor.getDerivedStateFromProps; - "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); - "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); - "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); - } - function coerceRef(returnFiber, current, element) { - returnFiber = element.ref; - if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { - if (element._owner) { - element = element._owner; - if (element) { - if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); - var inst = element.stateNode; } - if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); - var resolvedInst = inst, - stringRef = "" + returnFiber; - if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; - current = function current(value) { - var refs = resolvedInst.refs; - refs === emptyRefsObject && (refs = resolvedInst.refs = {}); - null === value ? delete refs[stringRef] : refs[stringRef] = value; - }; - current._stringRef = stringRef; - return current; - } - if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); - if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); - } - return returnFiber; - } - function throwOnInvalidObjectType(returnFiber, newChild) { - returnFiber = Object.prototype.toString.call(newChild); - throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); - } - function resolveLazy(lazyType) { - var init = lazyType._init; - return init(lazyType._payload); - } - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (shouldTrackSideEffects) { - var deletions = returnFiber.deletions; - null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); - } - } - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) return null; - for (; null !== currentFirstChild;) { - deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; - } - return null; - } - function mapRemainingChildren(returnFiber, currentFirstChild) { - for (returnFiber = new Map(); null !== currentFirstChild;) { - null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; } - return returnFiber; - } - function useFiber(fiber, pendingProps) { - fiber = createWorkInProgress(fiber, pendingProps); - fiber.index = 0; - fiber.sibling = null; - return fiber; - } - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; - newIndex = newFiber.alternate; - if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; - newFiber.flags |= 2; - return lastPlacedIndex; - } - function placeSingleChild(newFiber) { - shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); - return newFiber; - } - function updateTextNode(returnFiber, current, textContent, lanes) { - if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; - current = useFiber(current, textContent); - current.return = returnFiber; - return current; - } - function updateElement(returnFiber, current, element, lanes) { - var elementType = element.type; - if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); - if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; - lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); - lanes.ref = coerceRef(returnFiber, current, element); - lanes.return = returnFiber; - return lanes; - } - function updatePortal(returnFiber, current, portal, lanes) { - if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; - current = useFiber(current, portal.children || []); - current.return = returnFiber; - return current; - } - function updateFragment(returnFiber, current, fragment, lanes, key) { - if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; - current = useFiber(current, fragment); - current.return = returnFiber; - return current; - } - function createChild(returnFiber, newChild, lanes) { - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; - case REACT_PORTAL_TYPE: - return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; - case REACT_LAZY_TYPE: - var init = newChild._init; - return createChild(returnFiber, init(newChild._payload), lanes); + function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { + var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; + var i; + for (i = 0; i < minLength; i++) { + // Diff any items in the array in the forward direction. Repeated keys + // will be overwritten by later values. + updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateSlot(returnFiber, oldFiber, newChild, lanes) { - var key = null !== oldFiber ? oldFiber.key : null; - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; - case REACT_PORTAL_TYPE: - return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; - case REACT_LAZY_TYPE: - return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); + for (; i < prevArray.length; i++) { + // Clear out all remaining properties. + updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); - case REACT_PORTAL_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); - case REACT_LAZY_TYPE: - var init = newChild._init; - return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); + for (; i < nextArray.length; i++) { + // Add all remaining properties. + updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); - throwOnInvalidObjectType(returnFiber, newChild); + return updatePayload; } - return null; - } - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { - for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) { + // If no properties have been added, then we can bail out quickly on object + // equality. + return updatePayload; } - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; - if (null === oldFiber) { - for (; newIdx < newChildren.length; newIdx++) { - oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + if (!prevProp || !nextProp) { + if (nextProp) { + return addNestedProperty(updatePayload, nextProp, validAttributes); + } + if (prevProp) { + return clearNestedProperty(updatePayload, prevProp, validAttributes); + } + return updatePayload; } - return resultingFirstChild; - } - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { - nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + if (!isArray(prevProp) && !isArray(nextProp)) { + // Both are leaves, we can diff the leaves. + return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp) && isArray(nextProp)) { + // Both are arrays, we can diff the arrays. + return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); + } + if (isArray(prevProp)) { + return diffProperties(updatePayload, + // $FlowFixMe - We know that this is always an object when the input is. + ReactNativePrivateInterface.flattenStyle(prevProp), + // $FlowFixMe - We know that this isn't an array because of above flow. + nextProp, validAttributes); + } + return diffProperties(updatePayload, prevProp, + // $FlowFixMe - We know that this is always an object when the input is. + ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes); } - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return resultingFirstChild; - } - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { - var iteratorFn = getIteratorFn(newChildrenIterable); - if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); - newChildrenIterable = iteratorFn.call(newChildrenIterable); - if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); - for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; + /** + * addNestedProperty takes a single set of props and valid attribute + * attribute configurations. It processes each prop and adds it to the + * updatePayload. + */ + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) { + return updatePayload; } - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; - if (null === oldFiber) { - for (; !step.done; newIdx++, step = newChildrenIterable.next()) { - step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + if (!isArray(nextProp)) { + // Add each property of the leaf. + return addProperties(updatePayload, nextProp, validAttributes); } - return iteratorFn; + for (var i = 0; i < nextProp.length; i++) { + // Add all the properties of the array. + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + return updatePayload; } - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { - step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + /** + * clearNestedProperty takes a single set of props and valid attributes. It + * adds a null sentinel to the updatePayload, for each prop key. + */ + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) { + return updatePayload; + } + if (!isArray(prevProp)) { + // Add each property of the leaf. + return clearProperties(updatePayload, prevProp, validAttributes); + } + for (var i = 0; i < prevProp.length; i++) { + // Add all the properties of the array. + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + return updatePayload; } - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return iteratorFn; - } - function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { - "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - a: { - for (var key = newChild.key, child = currentFirstChild; null !== child;) { - if (child.key === key) { - key = newChild.type; - if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props.children); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - currentFirstChild.ref = coerceRef(returnFiber, child, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - deleteRemainingChildren(returnFiber, child); - break; - } else deleteChild(returnFiber, child); - child = child.sibling; - } - newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); + /** + * diffProperties takes two sets of props and a set of valid attributes + * and write to updatePayload the values that changed or were deleted. + * If no updatePayload is provided, a new one is created and returned if + * anything changed. + */ + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig; + var nextProp; + var prevProp; + for (var propKey in nextProps) { + attributeConfig = validAttributes[propKey]; + if (!attributeConfig) { + continue; // not a valid native prop + } + + prevProp = prevProps[propKey]; + nextProp = nextProps[propKey]; // functions are converted to booleans as markers that the associated + // events should be sent from native. + + if (typeof nextProp === "function") { + nextProp = true; // If nextProp is not a function, then don't bother changing prevProp + // since nextProp will win and go into the updatePayload regardless. + + if (typeof prevProp === "function") { + prevProp = true; } - return placeSingleChild(returnFiber); - case REACT_PORTAL_TYPE: - a: { - for (child = newChild.key; null !== currentFirstChild;) { - if (currentFirstChild.key === child) { - if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - currentFirstChild = useFiber(currentFirstChild, newChild.children || []); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, currentFirstChild); - break; - } - } else deleteChild(returnFiber, currentFirstChild); - currentFirstChild = currentFirstChild.sibling; - } - currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + } // An explicit value of undefined is treated as a null because it overrides + // any other preceding value. + + if (typeof nextProp === "undefined") { + nextProp = null; + if (typeof prevProp === "undefined") { + prevProp = null; } - return placeSingleChild(returnFiber); - case REACT_LAZY_TYPE: - return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); + } + if (removedKeys) { + removedKeys[propKey] = false; + } + if (updatePayload && updatePayload[propKey] !== undefined) { + // Something else already triggered an update to this key because another + // value diffed. Since we're now later in the nested arrays our value is + // more important so we need to calculate it and override the existing + // value. It doesn't matter if nothing changed, we'll set it anyway. + // Pattern match on: attributeConfig + if (typeof attributeConfig !== "object") { + // case: !Object is the default case + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + continue; + } + if (prevProp === nextProp) { + continue; // nothing changed + } // Pattern match on: attributeConfig + + if (typeof attributeConfig !== "object") { + // case: !Object is the default case + if (defaultDiffer(prevProp, nextProp)) { + // a normal leaf has changed + (updatePayload || (updatePayload = {}))[propKey] = nextProp; + } + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration + var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); + if (shouldUpdate) { + var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + (updatePayload || (updatePayload = {}))[propKey] = _nextValue; + } + } else { + // default: fallthrough case when nested properties are defined + removedKeys = null; + removedKeyCount = 0; // We think that attributeConfig is not CustomAttributeConfiguration at + // this point so we assume it must be AttributeConfiguration. + + updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); + if (removedKeyCount > 0 && updatePayload) { + restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); + removedKeys = null; + } + } + } // Also iterate through all the previous props to catch any that have been + // removed and make sure native gets the signal so it can reset them to the + // default. + + for (var _propKey in prevProps) { + if (nextProps[_propKey] !== undefined) { + continue; // we've already covered this key in the previous pass + } + + attributeConfig = validAttributes[_propKey]; + if (!attributeConfig) { + continue; // not a valid native prop + } + + if (updatePayload && updatePayload[_propKey] !== undefined) { + // This was already updated to a diff result earlier. + continue; + } + prevProp = prevProps[_propKey]; + if (prevProp === undefined) { + continue; // was already empty anyway + } // Pattern match on: attributeConfig + + if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + // case: CustomAttributeConfiguration | !Object + // Flag the leaf property for removal by sending a sentinel. + (updatePayload || (updatePayload = {}))[_propKey] = null; + if (!removedKeys) { + removedKeys = {}; + } + if (!removedKeys[_propKey]) { + removedKeys[_propKey] = true; + removedKeyCount++; + } + } else { + // default: + // This is a nested attribute configuration where all the properties + // were removed so we need to go through and clear out all of them. + updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); + } } - if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); - if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); - throwOnInvalidObjectType(returnFiber, newChild); + return updatePayload; } - return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); - } - return reconcileChildFibers; - } - var reconcileChildFibers = ChildReconciler(!0), - mountChildFibers = ChildReconciler(!1), - NO_CONTEXT = {}, - contextStackCursor$1 = createCursor(NO_CONTEXT), - contextFiberStackCursor = createCursor(NO_CONTEXT), - rootInstanceStackCursor = createCursor(NO_CONTEXT); - function requiredContext(c) { - if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); - return c; - } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance); - push(contextFiberStackCursor, fiber); - push(contextStackCursor$1, NO_CONTEXT); - pop(contextStackCursor$1); - push(contextStackCursor$1, { - isInAParentText: !1 - }); - } - function popHostContainer() { - pop(contextStackCursor$1); - pop(contextFiberStackCursor); - pop(rootInstanceStackCursor); - } - function pushHostContext(fiber) { - requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var JSCompiler_inline_result = fiber.type; - JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; - JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { - isInAParentText: JSCompiler_inline_result - } : context; - context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); - } - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); - } - var suspenseStackCursor = createCursor(0); - function findFirstSuspended(row) { - for (var node = row; null !== node;) { - if (13 === node.tag) { - var state = node.memoizedState; - if (null !== state && (null === state.dehydrated || shim$1() || shim$1())) return node; - } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { - if (0 !== (node.flags & 128)) return node; - } else if (null !== node.child) { - node.child.return = node; - node = node.child; - continue; + /** + * addProperties adds all the valid props to the payload after being processed. + */ + + function addProperties(updatePayload, props, validAttributes) { + // TODO: Fast path + return diffProperties(updatePayload, emptyObject, props, validAttributes); } - if (node === row) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === row) return null; - node = node.return; + /** + * clearProperties clears all the previous props by adding a null sentinel + * to the payload for each valid key. + */ + + function clearProperties(updatePayload, prevProps, validAttributes) { + // TODO: Fast path + return diffProperties(updatePayload, prevProps, emptyObject, validAttributes); } - node.sibling.return = node.return; - node = node.sibling; - } - return null; - } - var workInProgressSources = []; - function resetWorkInProgressVersions() { - for (var i = 0; i < workInProgressSources.length; i++) { - workInProgressSources[i]._workInProgressVersionSecondary = null; - } - workInProgressSources.length = 0; - } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber$1 = null, - currentHook = null, - workInProgressHook = null, - didScheduleRenderPhaseUpdate = !1, - didScheduleRenderPhaseUpdateDuringThisPass = !1, - globalClientIdCounter = 0; - function throwInvalidHookError() { - 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); - } - function areHookInputsEqual(nextDeps, prevDeps) { - if (null === prevDeps) return !1; - for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { - if (!objectIs(nextDeps[i], prevDeps[i])) return !1; - } - return !0; - } - function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber$1 = workInProgress; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - workInProgress.lanes = 0; - ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; - current = Component(props, secondArg); - if (didScheduleRenderPhaseUpdateDuringThisPass) { - nextRenderLanes = 0; - do { - didScheduleRenderPhaseUpdateDuringThisPass = !1; - if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); - nextRenderLanes += 1; - workInProgressHook = currentHook = null; - workInProgress.updateQueue = null; - ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; - current = Component(props, secondArg); - } while (didScheduleRenderPhaseUpdateDuringThisPass); - } - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - workInProgress = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; - didScheduleRenderPhaseUpdate = !1; - if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); - return current; - } - function mountWorkInProgressHook() { - var hook = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; - return workInProgressHook; - } - function updateWorkInProgressHook() { - if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber$1.alternate; - nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; - } else nextCurrentHook = currentHook.next; - var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; - if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { - if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); - currentHook = nextCurrentHook; - nextCurrentHook = { - memoizedState: currentHook.memoizedState, - baseState: currentHook.baseState, - baseQueue: currentHook.baseQueue, - queue: currentHook.queue, - next: null - }; - null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; - } - return workInProgressHook; - } - function basicStateReducer(state, action) { - return "function" === typeof action ? action(state) : action; - } - function updateReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); - queue.lastRenderedReducer = reducer; - var current = currentHook, - baseQueue = current.baseQueue, - pendingQueue = queue.pending; - if (null !== pendingQueue) { - if (null !== baseQueue) { - var baseFirst = baseQueue.next; - baseQueue.next = pendingQueue.next; - pendingQueue.next = baseFirst; + function create(props, validAttributes) { + return addProperties(null, + // updatePayload + props, validAttributes); } - current.baseQueue = baseQueue = pendingQueue; - queue.pending = null; - } - if (null !== baseQueue) { - pendingQueue = baseQueue.next; - current = current.baseState; - var newBaseQueueFirst = baseFirst = null, - newBaseQueueLast = null, - update = pendingQueue; - do { - var updateLane = update.lane; - if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { - lane: 0, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { - var clone = { - lane: updateLane, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }; - null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; - currentlyRenderingFiber$1.lanes |= updateLane; - workInProgressRootSkippedLanes |= updateLane; + function diff(prevProps, nextProps, validAttributes) { + return diffProperties(null, + // updatePayload + prevProps, nextProps, validAttributes); + } + + /** + * In the future, we should cleanup callbacks by cancelling them instead of + * using this. + */ + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (!callback) { + return undefined; + } // This protects against createClass() components. + // We don't know if there is code depending on it. + // We intentionally don't use isMounted() because even accessing + // isMounted property on a React ES6 class will trigger a warning. + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } // FIXME: there used to be other branches that protected + // against unmounted host components. But RN host components don't + // define isMounted() anymore, so those checks didn't do anything. + // They caused false positive warning noise so we removed them: + // https://github.com/facebook/react-native/issues/18868#issuecomment-413579095 + // However, this means that the callback is NOT guaranteed to be safe + // for host components. The solution we should implement is to make + // UIManager.measure() and similar calls truly cancelable. Then we + // can change our own code calling them to cancel when something unmounts. + + return callback.apply(context, arguments); + }; + } + function warnForStyleProps(props, validAttributes) { + { + for (var key in validAttributes.style) { + if (!(validAttributes[key] || props[key] === undefined)) { + error("You are setting the style `{ %s" + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { %s" + ": ... } }`", key, key); + } + } } - update = update.next; - } while (null !== update && update !== pendingQueue); - null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; - objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = current; - hook.baseState = baseFirst; - hook.baseQueue = newBaseQueueLast; - queue.lastRenderedState = current; - } - reducer = queue.interleaved; - if (null !== reducer) { - baseQueue = reducer; - do { - pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; - } while (baseQueue !== reducer); - } else null === baseQueue && (queue.lanes = 0); - return [hook.memoizedState, queue.dispatch]; - } - function rerenderReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); - queue.lastRenderedReducer = reducer; - var dispatch = queue.dispatch, - lastRenderPhaseUpdate = queue.pending, - newState = hook.memoizedState; - if (null !== lastRenderPhaseUpdate) { - queue.pending = null; - var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; - do { - newState = reducer(newState, update.action), update = update.next; - } while (update !== lastRenderPhaseUpdate); - objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = newState; - null === hook.baseQueue && (hook.baseState = newState); - queue.lastRenderedState = newState; - } - return [newState, dispatch]; - } - function updateMutableSource() {} - function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber$1, - hook = updateWorkInProgressHook(), - nextSnapshot = getSnapshot(), - snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); - snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); - hook = hook.queue; - updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); - if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { - fiber.flags |= 2048; - pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); - if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - } - return nextSnapshot; - } - function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { - fiber.flags |= 16384; - fiber = { - getSnapshot: getSnapshot, - value: renderedSnapshot - }; - getSnapshot = currentlyRenderingFiber$1.updateQueue; - null === getSnapshot ? (getSnapshot = { - lastEffect: null, - stores: null - }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); - } - function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { - inst.value = nextSnapshot; - inst.getSnapshot = getSnapshot; - checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); - } - function subscribeToStore(fiber, inst, subscribe) { - return subscribe(function () { - checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); - }); - } - function checkIfSnapshotChanged(inst) { - var latestGetSnapshot = inst.getSnapshot; - inst = inst.value; - try { - var nextValue = latestGetSnapshot(); - return !objectIs(inst, nextValue); - } catch (error) { - return !0; - } - } - function mountState(initialState) { - var hook = mountWorkInProgressHook(); - "function" === typeof initialState && (initialState = initialState()); - hook.memoizedState = hook.baseState = initialState; - initialState = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: basicStateReducer, - lastRenderedState: initialState - }; - hook.queue = initialState; - initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); - return [hook.memoizedState, initialState]; - } - function pushEffect(tag, create, destroy, deps) { - tag = { - tag: tag, - create: create, - destroy: destroy, - deps: deps, - next: null - }; - create = currentlyRenderingFiber$1.updateQueue; - null === create ? (create = { - lastEffect: null, - stores: null - }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); - return tag; - } - function updateRef() { - return updateWorkInProgressHook().memoizedState; - } - function mountEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = mountWorkInProgressHook(); - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); - } - function updateEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var destroy = void 0; - if (null !== currentHook) { - var prevEffect = currentHook.memoizedState; - destroy = prevEffect.destroy; - if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { - hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); - return; } - } - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); - } - function mountEffect(create, deps) { - return mountEffectImpl(8390656, 8, create, deps); - } - function updateEffect(create, deps) { - return updateEffectImpl(2048, 8, create, deps); - } - function updateInsertionEffect(create, deps) { - return updateEffectImpl(4, 2, create, deps); - } - function updateLayoutEffect(create, deps) { - return updateEffectImpl(4, 4, create, deps); - } - function imperativeHandleEffect(create, ref) { - if ("function" === typeof ref) return create = create(), ref(create), function () { - ref(null); - }; - if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { - ref.current = null; - }; - } - function updateImperativeHandle(ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); - } - function mountDebugValue() {} - function updateCallback(callback, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; - hook.memoizedState = [callback, deps]; - return callback; - } - function updateMemo(nextCreate, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; - } - function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; - objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); - return prevValue; - } - function startTransition(setPending, callback) { - var previousPriority = currentUpdatePriority; - currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; - setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; - try { - setPending(!1), callback(); - } finally { - currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; - } - } - function updateId() { - return updateWorkInProgressHook().memoizedState; - } - function dispatchReducerAction(fiber, queue, action) { - var lane = requestUpdateLane(fiber); - action = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (enqueueUpdate$1(fiber, queue, action), action = requestEventTime(), fiber = scheduleUpdateOnFiber(fiber, lane, action), null !== fiber && entangleTransitionUpdate(fiber, queue, lane)); - } - function dispatchSetState(fiber, queue, action) { - var lane = requestUpdateLane(fiber), - update = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { - enqueueUpdate$1(fiber, queue, update); - var alternate = fiber.alternate; - if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { - var currentState = queue.lastRenderedState, - eagerState = alternate(currentState, action); - update.hasEagerState = !0; - update.eagerState = eagerState; - if (objectIs(eagerState, currentState)) return; - } catch (error) {} finally {} - action = requestEventTime(); - fiber = scheduleUpdateOnFiber(fiber, lane, action); - null !== fiber && entangleTransitionUpdate(fiber, queue, lane); - } - } - function isRenderPhaseUpdate(fiber) { - var alternate = fiber.alternate; - return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; - } - function enqueueRenderPhaseUpdate(queue, update) { - didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; - var pending = queue.pending; - null === pending ? update.next = update : (update.next = pending.next, pending.next = update); - queue.pending = update; - } - function enqueueUpdate$1(fiber, queue, update) { - isInterleavedUpdate(fiber) ? (fiber = queue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [queue] : interleavedQueues.push(queue)) : (update.next = fiber.next, fiber.next = update), queue.interleaved = update) : (fiber = queue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), queue.pending = update); - } - function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { - var queueLanes = queue.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - queue.lanes = lane; - markRootEntangled(root, lane); - } - } - var ContextOnlyDispatcher = { - readContext: readContext, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useMutableSource: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnMount = { - readContext: readContext, - useCallback: function useCallback(callback, deps) { - mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; - return callback; - }, - useContext: readContext, - useEffect: mountEffect, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - return mountEffectImpl(4, 4, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - return mountEffectImpl(4, 2, create, deps); - }, - useMemo: function useMemo(nextCreate, deps) { - var hook = mountWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; - }, - useReducer: function useReducer(reducer, initialArg, init) { - var hook = mountWorkInProgressHook(); - initialArg = void 0 !== init ? init(initialArg) : initialArg; - hook.memoizedState = hook.baseState = initialArg; - reducer = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: reducer, - lastRenderedState: initialArg + var ReactNativeFiberHostComponent = /*#__PURE__*/function () { + function ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandleDEV) { + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; + { + this._internalFiberInstanceHandleDEV = internalInstanceHandleDEV; + } + } + var _proto = ReactNativeFiberHostComponent.prototype; + _proto.blur = function blur() { + ReactNativePrivateInterface.TextInputState.blurTextInput(this); }; - hook.queue = reducer; - reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); - return [hook.memoizedState, reducer]; - }, - useRef: function useRef(initialValue) { - var hook = mountWorkInProgressHook(); - initialValue = { - current: initialValue + _proto.focus = function focus() { + ReactNativePrivateInterface.TextInputState.focusTextInput(this); }; - return hook.memoizedState = initialValue; - }, - useState: mountState, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - return mountWorkInProgressHook().memoizedState = value; - }, - useTransition: function useTransition() { - var _mountState = mountState(!1), - isPending = _mountState[0]; - _mountState = startTransition.bind(null, _mountState[1]); - mountWorkInProgressHook().memoizedState = _mountState; - return [isPending, _mountState]; - }, - useMutableSource: function useMutableSource() {}, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber$1, - hook = mountWorkInProgressHook(); - var nextSnapshot = getSnapshot(); - if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - hook.memoizedState = nextSnapshot; - var inst = { - value: nextSnapshot, - getSnapshot: getSnapshot + _proto.measure = function measure(callback) { + ReactNativePrivateInterface.UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); }; - hook.queue = inst; - mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); - fiber.flags |= 2048; - pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); - return nextSnapshot; - }, - useId: function useId() { - var hook = mountWorkInProgressHook(), - identifierPrefix = workInProgressRoot.identifierPrefix, - globalClientId = globalClientIdCounter++; - identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; - return hook.memoizedState = identifierPrefix; - }, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnUpdate = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: updateReducer, - useRef: updateRef, - useState: function useState() { - return updateReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - var hook = updateWorkInProgressHook(); - return updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function useTransition() { - var isPending = updateReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnRerender = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: rerenderReducer, - useRef: updateRef, - useState: function useState() { - return rerenderReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - var hook = updateWorkInProgressHook(); - return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function useTransition() { - var isPending = rerenderReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId, - unstable_isNewReconciler: !1 - }; - function createCapturedValue(value, source) { - try { - var info = "", - node = source; - do { - info += describeFiber(node), node = node.return; - } while (node); - var JSCompiler_inline_result = info; - } catch (x) { - JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; - } - return { - value: value, - source: source, - stack: JSCompiler_inline_result - }; - } - if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); - function logCapturedError(boundary, errorInfo) { - try { - !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ - componentStack: null !== errorInfo.stack ? errorInfo.stack : "", - error: errorInfo.value, - errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null - }) && console.error(errorInfo.value); - } catch (e) { - setTimeout(function () { - throw e; - }); - } - } - var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; - function createRootErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - lane.payload = { - element: null - }; - var error = errorInfo.value; - lane.callback = function () { - hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); - logCapturedError(fiber, errorInfo); - }; - return lane; - } - function createClassErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - var getDerivedStateFromError = fiber.type.getDerivedStateFromError; - if ("function" === typeof getDerivedStateFromError) { - var error = errorInfo.value; - lane.payload = function () { - return getDerivedStateFromError(error); - }; - lane.callback = function () { - logCapturedError(fiber, errorInfo); - }; - } - var inst = fiber.stateNode; - null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { - logCapturedError(fiber, errorInfo); - "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); - var stack = errorInfo.stack; - this.componentDidCatch(errorInfo.value, { - componentStack: null !== stack ? stack : "" - }); - }); - return lane; - } - function attachPingListener(root, wakeable, lanes) { - var pingCache = root.pingCache; - if (null === pingCache) { - pingCache = root.pingCache = new PossiblyWeakMap(); - var threadIDs = new Set(); - pingCache.set(wakeable, threadIDs); - } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); - threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); - } - var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - didReceiveUpdate = !1; - function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { - workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); - } - function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { - Component = Component.render; - var ref = workInProgress.ref; - prepareToReadContext(workInProgress, renderLanes); - nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); - if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, nextProps, renderLanes); - return workInProgress.child; - } - function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (null === current) { - var type = Component.type; - if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); - current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); - current.ref = workInProgress.ref; - current.return = workInProgress; - return workInProgress.child = current; - } - type = current.child; - if (0 === (current.lanes & renderLanes)) { - var prevProps = type.memoizedProps; - Component = Component.compare; - Component = null !== Component ? Component : shallowEqual; - if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - workInProgress.flags |= 1; - current = createWorkInProgress(type, nextProps); - current.ref = workInProgress.ref; - current.return = workInProgress; - return workInProgress.child = current; - } - function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (null !== current) { - var prevProps = current.memoizedProps; - if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); - } - function updateOffscreenComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - nextChildren = nextProps.children, - prevState = null !== current ? current.memoizedState : null; - if ("hidden" === nextProps.mode) { - if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { - baseLanes: 0, - cachePool: null, - transitions: null - }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { - if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { - baseLanes: current, - cachePool: null, - transitions: null - }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; - workInProgress.memoizedState = { - baseLanes: 0, - cachePool: null, - transitions: null + _proto.measureInWindow = function measureInWindow(callback) { + ReactNativePrivateInterface.UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); }; - nextProps = null !== prevState ? prevState.baseLanes : renderLanes; - push(subtreeRenderLanesCursor, subtreeRenderLanes); - subtreeRenderLanes |= nextProps; - } - } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; - } - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; - } - function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { - var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); - prepareToReadContext(workInProgress, renderLanes); - Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); - if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, Component, renderLanes); - return workInProgress.child; - } - function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (isContextProvider(Component)) { - var hasContext = !0; - pushContextProvider(workInProgress); - } else hasContext = !1; - prepareToReadContext(workInProgress, renderLanes); - if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { - var instance = workInProgress.stateNode, - oldProps = workInProgress.memoizedProps; - instance.props = oldProps; - var oldContext = instance.context, - contextType = Component.contextType; - "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); - var getDerivedStateFromProps = Component.getDerivedStateFromProps, - hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; - hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); - hasForceUpdate = !1; - var oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - oldContext = workInProgress.memoizedState; - oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); - } else { - instance = workInProgress.stateNode; - cloneUpdateQueue(current, workInProgress); - oldProps = workInProgress.memoizedProps; - contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); - instance.props = contextType; - hasNewLifecycles = workInProgress.pendingProps; - oldState = instance.context; - oldContext = Component.contextType; - "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); - var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; - (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); - hasForceUpdate = !1; - oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - var newState = workInProgress.memoizedState; - oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); - } - return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); - } - function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { - markRef(current, workInProgress); - var didCaptureError = 0 !== (workInProgress.flags & 128); - if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - shouldUpdate = workInProgress.stateNode; - ReactCurrentOwner$1.current = workInProgress; - var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); - workInProgress.flags |= 1; - null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); - workInProgress.memoizedState = shouldUpdate.state; - hasContext && invalidateContextProvider(workInProgress, Component, !0); - return workInProgress.child; - } - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); - pushHostContainer(workInProgress, root.containerInfo); - } - var SUSPENDED_MARKER = { - dehydrated: null, - treeContext: null, - retryLane: 0 - }; - function mountSuspenseOffscreenState(renderLanes) { - return { - baseLanes: renderLanes, - cachePool: null, - transitions: null - }; - } - function updateSuspenseComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - suspenseContext = suspenseStackCursor.current, - showFallback = !1, - didSuspend = 0 !== (workInProgress.flags & 128), - JSCompiler_temp; - (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); - if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; - push(suspenseStackCursor, suspenseContext & 1); - if (null === current) { - current = workInProgress.memoizedState; - if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim$1() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; - didSuspend = nextProps.children; - current = nextProps.fallback; - return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { - mode: "hidden", - children: didSuspend - }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); - } - suspenseContext = current.memoizedState; - if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); - if (showFallback) { - showFallback = nextProps.fallback; - didSuspend = workInProgress.mode; - suspenseContext = current.child; - JSCompiler_temp = suspenseContext.sibling; - var primaryChildProps = { - mode: "hidden", - children: nextProps.children - }; - 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); - null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); - showFallback.return = workInProgress; - nextProps.return = workInProgress; - nextProps.sibling = showFallback; - workInProgress.child = nextProps; - nextProps = showFallback; - showFallback = workInProgress.child; - didSuspend = current.child.memoizedState; - didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { - baseLanes: didSuspend.baseLanes | renderLanes, - cachePool: null, - transitions: didSuspend.transitions - }; - showFallback.memoizedState = didSuspend; - showFallback.childLanes = current.childLanes & ~renderLanes; - workInProgress.memoizedState = SUSPENDED_MARKER; - return nextProps; - } - showFallback = current.child; - current = showFallback.sibling; - nextProps = createWorkInProgress(showFallback, { - mode: "visible", - children: nextProps.children - }); - 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); - nextProps.return = workInProgress; - nextProps.sibling = null; - null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); - workInProgress.child = nextProps; - workInProgress.memoizedState = null; - return nextProps; - } - function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { - primaryChildren = createFiberFromOffscreen({ - mode: "visible", - children: primaryChildren - }, workInProgress.mode, 0, null); - primaryChildren.return = workInProgress; - return workInProgress.child = primaryChildren; - } - function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { - null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); - reconcileChildFibers(workInProgress, current.child, null, renderLanes); - current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); - current.flags |= 2; - workInProgress.memoizedState = null; - return current; - } - function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { - if (didSuspend) { - if (workInProgress.flags & 256) return workInProgress.flags &= -257, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); - if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; - suspenseState = nextProps.fallback; - didSuspend = workInProgress.mode; - nextProps = createFiberFromOffscreen({ - mode: "visible", - children: nextProps.children - }, didSuspend, 0, null); - suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); - suspenseState.flags |= 2; - nextProps.return = workInProgress; - suspenseState.return = workInProgress; - nextProps.sibling = suspenseState; - workInProgress.child = nextProps; - 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); - workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return suspenseState; - } - if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); - if (shim$1()) return suspenseState = shim$1().errorMessage, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState ? Error(suspenseState) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")); - didSuspend = 0 !== (renderLanes & current.childLanes); - if (didReceiveUpdate || didSuspend) { - nextProps = workInProgressRoot; - if (null !== nextProps) { - switch (renderLanes & -renderLanes) { - case 4: - didSuspend = 2; - break; - case 16: - didSuspend = 8; - break; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - didSuspend = 32; - break; - case 536870912: - didSuspend = 268435456; - break; - default: - didSuspend = 0; + _proto.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) /* currently unused */ + { + var relativeNode; + if (typeof relativeToNativeNode === "number") { + // Already a node handle + relativeNode = relativeToNativeNode; + } else { + var nativeNode = relativeToNativeNode; + if (nativeNode._nativeTag) { + relativeNode = nativeNode._nativeTag; + } + } + if (relativeNode == null) { + { + error("Warning: ref.measureLayout must be called with a node handle or a ref to a native component."); + } + return; + } + ReactNativePrivateInterface.UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + }; + _proto.setNativeProps = function setNativeProps(nativeProps) { + { + warnForStyleProps(nativeProps, this.viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, this.viewConfig.validAttributes); // Avoid the overhead of bridge calls if there's no update. + // This is an expensive no-op for Android, and causes an unnecessary + // view invalidation for certain components (eg RCTTextInput) on iOS. + + if (updatePayload != null) { + ReactNativePrivateInterface.UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); + } + }; + return ReactNativeFiberHostComponent; + }(); // eslint-disable-next-line no-unused-expressions + + // This module only exists as an ESM wrapper around the external CommonJS + var scheduleCallback = Scheduler.unstable_scheduleCallback; + var cancelCallback = Scheduler.unstable_cancelCallback; + var shouldYield = Scheduler.unstable_shouldYield; + var requestPaint = Scheduler.unstable_requestPaint; + var now = Scheduler.unstable_now; + var ImmediatePriority = Scheduler.unstable_ImmediatePriority; + var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; + var NormalPriority = Scheduler.unstable_NormalPriority; + var IdlePriority = Scheduler.unstable_IdlePriority; + var rendererID = null; + var injectedHook = null; + var hasLoggedError = false; + var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + // No DevTools + return false; } - nextProps = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; - 0 !== nextProps && nextProps !== suspenseState.retryLane && (suspenseState.retryLane = nextProps, scheduleUpdateOnFiber(current, nextProps, -1)); - } - renderDidSuspendDelayIfPossible(); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); - } - if (shim$1()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim$1(), null; - current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); - current.flags |= 4096; - return current; - } - function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { - fiber.lanes |= renderLanes; - var alternate = fiber.alternate; - null !== alternate && (alternate.lanes |= renderLanes); - scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); - } - function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { - var renderState = workInProgress.memoizedState; - null === renderState ? workInProgress.memoizedState = { - isBackwards: isBackwards, - rendering: null, - renderingStartTime: 0, - last: lastContentRow, - tail: tail, - tailMode: tailMode - } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); - } - function updateSuspenseListComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - revealOrder = nextProps.revealOrder, - tailMode = nextProps.tail; - reconcileChildren(current, workInProgress, nextProps.children, renderLanes); - nextProps = suspenseStackCursor.current; - if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { - if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { - if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { - current.child.return = current; - current = current.child; - continue; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) { + // This isn't a real property on the hook, but it can be set to opt out + // of DevTools integration and associated warnings and logs. + // https://github.com/facebook/react/issues/3877 + return true; } - if (current === workInProgress) break a; - for (; null === current.sibling;) { - if (null === current.return || current.return === workInProgress) break a; - current = current.return; + if (!hook.supportsFiber) { + { + error("The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://reactjs.org/link/react-devtools"); + } // DevTools exists, even though it doesn't support Fiber. + + return true; + } + try { + if (enableSchedulingProfiler) { + // Conditionally inject these hooks only if Timeline profiler is supported by this build. + // This gives DevTools a way to feature detect that isn't tied to version number + // (since profiling and timeline are controlled by different feature flags). + internals = assign({}, internals, { + getLaneLabelMap: getLaneLabelMap, + injectProfilingHooks: injectProfilingHooks + }); + } + rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks. + + injectedHook = hook; + } catch (err) { + // Catch all errors because it is unsafe to throw during initialization. + { + error("React instrumentation encountered an error: %s.", err); + } + } + if (hook.checkDCE) { + // This is the real DevTools. + return true; + } else { + // This is likely a hook installed by Fast Refresh runtime. + return false; } - current.sibling.return = current.return; - current = current.sibling; } - nextProps &= 1; - } - push(suspenseStackCursor, nextProps); - if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { - case "forwards": - renderLanes = workInProgress.child; - for (revealOrder = null; null !== renderLanes;) { - current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + function onScheduleRoot(root, children) { + { + if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") { + try { + injectedHook.onScheduleFiberRoot(rendererID, root, children); + } catch (err) { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } } - renderLanes = revealOrder; - null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); - initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); - break; - case "backwards": - renderLanes = null; - revealOrder = workInProgress.child; - for (workInProgress.child = null; null !== revealOrder;) { - current = revealOrder.alternate; - if (null !== current && null === findFirstSuspended(current)) { - workInProgress.child = revealOrder; - break; + } + function onCommitRoot(root, eventPriority) { + if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { + try { + var didError = (root.current.flags & DidCapture) === DidCapture; + if (enableProfilerTimer) { + var schedulerPriority; + switch (eventPriority) { + case DiscreteEventPriority: + schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority; + break; + } + injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError); + } else { + injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); + } + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } } - current = revealOrder.sibling; - revealOrder.sibling = renderLanes; - renderLanes = revealOrder; - revealOrder = current; } - initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); - break; - case "together": - initSuspenseListRenderState(workInProgress, !1, null, null, void 0); - break; - default: - workInProgress.memoizedState = null; - } - return workInProgress.child; - } - function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { - 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); - } - function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { - null !== current && (workInProgress.dependencies = current.dependencies); - workInProgressRootSkippedLanes |= workInProgress.lanes; - if (0 === (renderLanes & workInProgress.childLanes)) return null; - if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); - if (null !== workInProgress.child) { - current = workInProgress.child; - renderLanes = createWorkInProgress(current, current.pendingProps); - workInProgress.child = renderLanes; - for (renderLanes.return = workInProgress; null !== current.sibling;) { - current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; } - renderLanes.sibling = null; - } - return workInProgress.child; - } - function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { - switch (workInProgress.tag) { - case 3: - pushHostRootContext(workInProgress); - break; - case 5: - pushHostContext(workInProgress); - break; - case 1: - isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); - break; - case 4: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - case 10: - var context = workInProgress.type._context, - nextValue = workInProgress.memoizedProps.value; - push(valueCursor, context._currentValue2); - context._currentValue2 = nextValue; - break; - case 13: - context = workInProgress.memoizedState; - if (null !== context) { - if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; - if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); - push(suspenseStackCursor, suspenseStackCursor.current & 1); - current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - return null !== current ? current.sibling : null; + function onPostCommitRoot(root) { + if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") { + try { + injectedHook.onPostCommitFiberRoot(rendererID, root); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } } - push(suspenseStackCursor, suspenseStackCursor.current & 1); - break; - case 19: - context = 0 !== (renderLanes & workInProgress.childLanes); - if (0 !== (current.flags & 128)) { - if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); - workInProgress.flags |= 128; + } + function onCommitUnmount(fiber) { + if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function") { + try { + injectedHook.onCommitFiberUnmount(rendererID, fiber); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } } - nextValue = workInProgress.memoizedState; - null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); - push(suspenseStackCursor, suspenseStackCursor.current); - if (context) break;else return null; - case 22: - case 23: - return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); - } - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - function hadNoMutationsEffects(current, completedWork) { - if (null !== current && current.child === completedWork.child) return !0; - if (0 !== (completedWork.flags & 16)) return !1; - for (current = completedWork.child; null !== current;) { - if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854)) return !1; - current = current.sibling; - } - return !0; - } - var _appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; - _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { - for (var node = workInProgress.child; null !== node;) { - if (5 === node.tag) { - var instance = node.stateNode; - needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); - appendChildNode(parent.node, instance.node); - } else if (6 === node.tag) { - instance = node.stateNode; - if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); - appendChildNode(parent.node, instance.node); - } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), _appendAllChildren(parent, node, !0, !0);else if (null !== node.child) { - node.child.return = node; - node = node.child; - continue; } - if (node === workInProgress) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === workInProgress) return; - node = node.return; + function injectProfilingHooks(profilingHooks) {} + function getLaneLabelMap() { + { + return null; + } } - node.sibling.return = node.return; - node = node.sibling; - } - }; - function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { - for (var node = workInProgress.child; null !== node;) { - if (5 === node.tag) { - var instance = node.stateNode; - needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); - appendChildNodeToSet(containerChildSet, instance.node); - } else if (6 === node.tag) { - instance = node.stateNode; - if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); - appendChildNodeToSet(containerChildSet, instance.node); - } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), appendAllChildrenToContainer(containerChildSet, node, !0, !0);else if (null !== node.child) { - node.child.return = node; - node = node.child; - continue; + function markComponentRenderStopped() {} + function markComponentErrored(fiber, thrownValue, lanes) {} + function markComponentSuspended(fiber, wakeable, lanes) {} + var NoMode = /* */ + 0; // TODO: Remove ConcurrentMode by reading from the root tag instead + + var ConcurrentMode = /* */ + 1; + var ProfileMode = /* */ + 2; + var StrictLegacyMode = /* */ + 8; + + // TODO: This is pretty well supported by browsers. Maybe we can drop it. + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. + // Based on: + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 + + var log = Math.log; + var LN2 = Math.LN2; + function clz32Fallback(x) { + var asUint = x >>> 0; + if (asUint === 0) { + return 32; + } + return 31 - (log(asUint) / LN2 | 0) | 0; } - if (node === workInProgress) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === workInProgress) return; - node = node.return; + + // If those values are changed that package should be rebuilt and redeployed. + + var TotalLanes = 31; + var NoLanes = /* */ + 0; + var NoLane = /* */ + 0; + var SyncLane = /* */ + 1; + var InputContinuousHydrationLane = /* */ + 2; + var InputContinuousLane = /* */ + 4; + var DefaultHydrationLane = /* */ + 8; + var DefaultLane = /* */ + 16; + var TransitionHydrationLane = /* */ + 32; + var TransitionLanes = /* */ + 4194240; + var TransitionLane1 = /* */ + 64; + var TransitionLane2 = /* */ + 128; + var TransitionLane3 = /* */ + 256; + var TransitionLane4 = /* */ + 512; + var TransitionLane5 = /* */ + 1024; + var TransitionLane6 = /* */ + 2048; + var TransitionLane7 = /* */ + 4096; + var TransitionLane8 = /* */ + 8192; + var TransitionLane9 = /* */ + 16384; + var TransitionLane10 = /* */ + 32768; + var TransitionLane11 = /* */ + 65536; + var TransitionLane12 = /* */ + 131072; + var TransitionLane13 = /* */ + 262144; + var TransitionLane14 = /* */ + 524288; + var TransitionLane15 = /* */ + 1048576; + var TransitionLane16 = /* */ + 2097152; + var RetryLanes = /* */ + 130023424; + var RetryLane1 = /* */ + 4194304; + var RetryLane2 = /* */ + 8388608; + var RetryLane3 = /* */ + 16777216; + var RetryLane4 = /* */ + 33554432; + var RetryLane5 = /* */ + 67108864; + var SomeRetryLane = RetryLane1; + var SelectiveHydrationLane = /* */ + 134217728; + var NonIdleLanes = /* */ + 268435455; + var IdleHydrationLane = /* */ + 268435456; + var IdleLane = /* */ + 536870912; + var OffscreenLane = /* */ + 1073741824; // This function is used for the experimental timeline (react-devtools-timeline) + var NoTimestamp = -1; + var nextTransitionLane = TransitionLane1; + var nextRetryLane = RetryLane1; + function getHighestPriorityLanes(lanes) { + switch (getHighestPriorityLane(lanes)) { + case SyncLane: + return SyncLane; + case InputContinuousHydrationLane: + return InputContinuousHydrationLane; + case InputContinuousLane: + return InputContinuousLane; + case DefaultHydrationLane: + return DefaultHydrationLane; + case DefaultLane: + return DefaultLane; + case TransitionHydrationLane: + return TransitionHydrationLane; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return lanes & TransitionLanes; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return lanes & RetryLanes; + case SelectiveHydrationLane: + return SelectiveHydrationLane; + case IdleHydrationLane: + return IdleHydrationLane; + case IdleLane: + return IdleLane; + case OffscreenLane: + return OffscreenLane; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } // This shouldn't be reachable, but as a fallback, return the entire bitmask. + + return lanes; + } } - node.sibling.return = node.return; - node = node.sibling; - } - } - updateHostContainer = function updateHostContainer(current, workInProgress) { - var portalOrRoot = workInProgress.stateNode; - if (!hadNoMutationsEffects(current, workInProgress)) { - current = portalOrRoot.containerInfo; - var newChildSet = createChildNodeSet(current); - appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1); - portalOrRoot.pendingChildren = newChildSet; - workInProgress.flags |= 4; - completeRoot(current, newChildSet); - } - }; - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { - type = current.stateNode; - var oldProps = current.memoizedProps; - if ((current = hadNoMutationsEffects(current, workInProgress)) && oldProps === newProps) workInProgress.stateNode = type;else { - var recyclableInstance = workInProgress.stateNode; - requiredContext(contextStackCursor$1.current); - var updatePayload = null; - oldProps !== newProps && (oldProps = diffProperties(null, oldProps, newProps, recyclableInstance.canonical.viewConfig.validAttributes), recyclableInstance.canonical.currentProps = newProps, updatePayload = oldProps); - current && null === updatePayload ? workInProgress.stateNode = type : (newProps = updatePayload, oldProps = type.node, type = { - node: current ? null !== newProps ? cloneNodeWithNewProps(oldProps, newProps) : cloneNode(oldProps) : null !== newProps ? cloneNodeWithNewChildrenAndProps(oldProps, newProps) : cloneNodeWithNewChildren(oldProps), - canonical: type.canonical - }, workInProgress.stateNode = type, current ? workInProgress.flags |= 4 : _appendAllChildren(type, workInProgress, !1, !1)); - } - }; - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - oldText !== newText ? (current = requiredContext(rootInstanceStackCursor.current), oldText = requiredContext(contextStackCursor$1.current), workInProgress.stateNode = createTextInstance(newText, current, oldText, workInProgress), workInProgress.flags |= 4) : workInProgress.stateNode = current.stateNode; - }; - function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { - switch (renderState.tailMode) { - case "hidden": - hasRenderedATailFallback = renderState.tail; - for (var lastTailNode = null; null !== hasRenderedATailFallback;) { - null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + function getNextLanes(root, wipLanes) { + // Early bailout if there's no pending work left. + var pendingLanes = root.pendingLanes; + if (pendingLanes === NoLanes) { + return NoLanes; } - null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; - break; - case "collapsed": - lastTailNode = renderState.tail; - for (var lastTailNode$60 = null; null !== lastTailNode;) { - null !== lastTailNode.alternate && (lastTailNode$60 = lastTailNode), lastTailNode = lastTailNode.sibling; + var nextLanes = NoLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished, + // even if the work is suspended. + + var nonIdlePendingLanes = pendingLanes & NonIdleLanes; + if (nonIdlePendingLanes !== NoLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + if (nonIdleUnblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); + } else { + var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; + if (nonIdlePingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); + } + } + } else { + // The only remaining work is Idle. + var unblockedLanes = pendingLanes & ~suspendedLanes; + if (unblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(unblockedLanes); + } else { + if (pingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(pingedLanes); + } + } } - null === lastTailNode$60 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$60.sibling = null; - } - } - function bubbleProperties(completedWork) { - var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, - newChildLanes = 0, - subtreeFlags = 0; - if (didBailout) for (var child$61 = completedWork.child; null !== child$61;) { - newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags & 14680064, subtreeFlags |= child$61.flags & 14680064, child$61.return = completedWork, child$61 = child$61.sibling; - } else for (child$61 = completedWork.child; null !== child$61;) { - newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags, subtreeFlags |= child$61.flags, child$61.return = completedWork, child$61 = child$61.sibling; - } - completedWork.subtreeFlags |= subtreeFlags; - completedWork.childLanes = newChildLanes; - return didBailout; - } - function completeWork(current, workInProgress, renderLanes) { - var newProps = workInProgress.pendingProps; - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return bubbleProperties(workInProgress), null; - case 1: - return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; - case 3: - return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; - case 5: - popHostContext(workInProgress); - renderLanes = requiredContext(rootInstanceStackCursor.current); - var type = workInProgress.type; - if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { - if (!newProps) { - if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - bubbleProperties(workInProgress); - return null; + if (nextLanes === NoLanes) { + // This should only be reachable if we're suspended + // TODO: Consider warning in this path if a fallback timer is not scheduled. + return NoLanes; + } // If we're already in the middle of a render, switching lanes will interrupt + // it and we'll lose our progress. We should only do this if the new lanes are + // higher priority. + + if (wipLanes !== NoLanes && wipLanes !== nextLanes && + // If we already suspended with a delay, then interrupting is fine. Don't + // bother waiting until the root is complete. + (wipLanes & suspendedLanes) === NoLanes) { + var nextLane = getHighestPriorityLane(nextLanes); + var wipLane = getHighestPriorityLane(wipLanes); + if ( + // Tests whether the next lane is equal or lower priority than the wip + // one. This works because the bits decrease in priority as you go left. + nextLane >= wipLane || + // Default priority updates should not interrupt transition updates. The + // only difference between default updates and transition updates is that + // default updates do not support refresh transitions. + nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) { + // Keep working on the existing in-progress tree. Do not interrupt. + return wipLanes; } - requiredContext(contextStackCursor$1.current); - current = nextReactTag; - nextReactTag += 2; - type = getViewConfigForType(type); - var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); - renderLanes = createNode(current, type.uiViewClassName, renderLanes, updatePayload, workInProgress); - current = new ReactFabricHostComponent(current, type, newProps, workInProgress); - current = { - node: renderLanes, - canonical: current - }; - _appendAllChildren(current, workInProgress, !1, !1); - workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 512); } - bubbleProperties(workInProgress); - return null; - case 6: - if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { - if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - current = requiredContext(rootInstanceStackCursor.current); - renderLanes = requiredContext(contextStackCursor$1.current); - workInProgress.stateNode = createTextInstance(newProps, current, renderLanes, workInProgress); + if ((nextLanes & InputContinuousLane) !== NoLanes) { + // When updates are sync by default, we entangle continuous priority updates + // and default updates, so they render in the same batch. The only reason + // they use separate lanes is because continuous updates should interrupt + // transitions, but default updates should not. + nextLanes |= pendingLanes & DefaultLane; + } // Check for entangled lanes and add them to the batch. + // + // A lane is said to be entangled with another when it's not allowed to render + // in a batch that does not also include the other lane. Typically we do this + // when multiple updates have the same source, and we only want to respond to + // the most recent event from that source. + // + // Note that we apply entanglements *after* checking for partial work above. + // This means that if a lane is entangled during an interleaved event while + // it's already rendering, we won't interrupt it. This is intentional, since + // entanglement is usually "best effort": we'll try our best to render the + // lanes in the same batch, but it's not worth throwing out partially + // completed work in order to do it. + // TODO: Reconsider this. The counter-argument is that the partial work + // represents an intermediate state, which we don't want to show to the user. + // And by spending extra time finishing it, we're increasing the amount of + // time it takes to show the final state, which is what they are actually + // waiting for. + // + // For those exceptions where entanglement is semantically important, like + // useMutableSource, we should ensure that there is no partial work at the + // time we apply the entanglement. + + var entangledLanes = root.entangledLanes; + if (entangledLanes !== NoLanes) { + var entanglements = root.entanglements; + var lanes = nextLanes & entangledLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + nextLanes |= entanglements[index]; + lanes &= ~lane; + } } - bubbleProperties(workInProgress); - return null; - case 13: - pop(suspenseStackCursor); - newProps = workInProgress.memoizedState; - if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { - if (null !== newProps && null !== newProps.dehydrated) { - if (null === current) { - throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); - throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + return nextLanes; + } + function getMostRecentEventTime(root, lanes) { + var eventTimes = root.eventTimes; + var mostRecentEventTime = NoTimestamp; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var eventTime = eventTimes[index]; + if (eventTime > mostRecentEventTime) { + mostRecentEventTime = eventTime; + } + lanes &= ~lane; + } + return mostRecentEventTime; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case SyncLane: + case InputContinuousHydrationLane: + case InputContinuousLane: + // User interactions should expire slightly more quickly. + // + // NOTE: This is set to the corresponding constant as in Scheduler.js. + // When we made it larger, a product metric in www regressed, suggesting + // there's a user interaction that's being starved by a series of + // synchronous updates. If that theory is correct, the proper solution is + // to fix the starvation. However, this scenario supports the idea that + // expiration times are an important safeguard when starvation + // does happen. + return currentTime + 250; + case DefaultHydrationLane: + case DefaultLane: + case TransitionHydrationLane: + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return currentTime + 5000; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + // TODO: Retries should be allowed to expire if they are CPU bound for + // too long, but when I made this change it caused a spike in browser + // crashes. There must be some other underlying bug; not super urgent but + // ideally should figure out why and fix it. Unfortunately we don't have + // a repro for the crashes, only detected via production metrics. + return NoTimestamp; + case SelectiveHydrationLane: + case IdleHydrationLane: + case IdleLane: + case OffscreenLane: + // Anything idle priority or lower should never expire. + return NoTimestamp; + default: + { + error("Should have found matching lanes. This is a bug in React."); } - 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); - workInProgress.flags |= 4; - bubbleProperties(workInProgress); - type = !1; - } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; - if (!type) return workInProgress.flags & 65536 ? workInProgress : null; + return NoTimestamp; } - if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; - renderLanes = null !== newProps; - renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); - null !== workInProgress.updateQueue && (workInProgress.flags |= 4); - bubbleProperties(workInProgress); - return null; - case 4: - return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; - case 10: - return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; - case 17: - return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; - case 19: - pop(suspenseStackCursor); - type = workInProgress.memoizedState; - if (null === type) return bubbleProperties(workInProgress), null; - newProps = 0 !== (workInProgress.flags & 128); - updatePayload = type.rendering; - if (null === updatePayload) { - if (newProps) cutOffTailIfNeeded(type, !1);else { - if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { - updatePayload = findFirstSuspended(current); - if (null !== updatePayload) { - workInProgress.flags |= 128; - cutOffTailIfNeeded(type, !1); - current = updatePayload.updateQueue; - null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); - workInProgress.subtreeFlags = 0; - current = renderLanes; - for (renderLanes = workInProgress.child; null !== renderLanes;) { - newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { - lanes: type.lanes, - firstContext: type.firstContext - }), renderLanes = renderLanes.sibling; - } - push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); - return workInProgress.child; - } - current = current.sibling; + } + function markStarvedLanesAsExpired(root, currentTime) { + // TODO: This gets called every time we yield. We can optimize by storing + // the earliest expiration time on the root. Then use that to quickly bail out + // of this function. + var pendingLanes = root.pendingLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their + // expiration time. If so, we'll assume the update is being starved and mark + // it as expired to force it to finish. + + var lanes = pendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + var expirationTime = expirationTimes[index]; + if (expirationTime === NoTimestamp) { + // Found a pending lane with no expiration time. If it's not suspended, or + // if it's pinged, assume it's CPU-bound. Compute a new expiration time + // using the current time. + if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { + // Assumes timestamps are monotonically increasing. + expirationTimes[index] = computeExpirationTime(lane, currentTime); } - null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + } else if (expirationTime <= currentTime) { + // This lane expired + root.expiredLanes |= lane; } - } else { - if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { - if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; - } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); - type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); + lanes &= ~lane; } - if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; - bubbleProperties(workInProgress); - return null; - case 22: - case 23: - return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && bubbleProperties(workInProgress) : bubbleProperties(workInProgress), null; - case 24: - return null; - case 25: - return null; - } - throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); - } - function unwindWork(current, workInProgress) { - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 1: - return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 3: - return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 5: - return popHostContext(workInProgress), null; - case 13: - pop(suspenseStackCursor); - current = workInProgress.memoizedState; - if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); - current = workInProgress.flags; - return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 19: - return pop(suspenseStackCursor), null; - case 4: - return popHostContainer(), null; - case 10: - return popProvider(workInProgress.type._context), null; - case 22: - case 23: - return popRenderLanes(), null; - case 24: - return null; - default: - return null; - } - } - var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null; - function safelyDetachRef(current, nearestMountedAncestor) { - var ref = current.ref; - if (null !== ref) if ("function" === typeof ref) try { - ref(null); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } else ref.current = null; - } - function safelyCallDestroy(current, nearestMountedAncestor, destroy) { - try { - destroy(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } - } - var shouldFireAfterActiveInstanceBlur = !1; - function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect;) { - if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { - root = nextEffect; - try { - var current = root.alternate; - if (0 !== (root.flags & 1024)) switch (root.tag) { - case 0: - case 11: - case 15: - break; - case 1: - if (null !== current) { - var prevProps = current.memoizedProps, - prevState = current.memoizedState, - instance = root.stateNode, - snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - break; - case 3: - break; - case 5: - case 6: - case 4: - case 17: - break; - default: - 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."); - } - } catch (error) { - captureCommitPhaseError(root, root.return, error); + } // This returns the highest priority pending lanes regardless of whether they + function getLanesToRetrySynchronouslyOnError(root) { + var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; + if (everythingButOffscreen !== NoLanes) { + return everythingButOffscreen; } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + if (everythingButOffscreen & OffscreenLane) { + return OffscreenLane; } - nextEffect = root.return; + return NoLanes; } - } - current = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return current; - } - function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { - var updateQueue = finishedWork.updateQueue; - updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; - if (null !== updateQueue) { - var effect = updateQueue = updateQueue.next; - do { - if ((effect.tag & flags) === flags) { - var destroy = effect.destroy; - effect.destroy = void 0; - void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); - } - effect = effect.next; - } while (effect !== updateQueue); - } - } - function commitHookEffectListMount(flags, finishedWork) { - finishedWork = finishedWork.updateQueue; - finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; - if (null !== finishedWork) { - var effect = finishedWork = finishedWork.next; - do { - if ((effect.tag & flags) === flags) { - var create$73 = effect.create; - effect.destroy = create$73(); - } - effect = effect.next; - } while (effect !== finishedWork); - } - } - function detachFiberAfterEffects(fiber) { - var alternate = fiber.alternate; - null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); - fiber.child = null; - fiber.deletions = null; - fiber.sibling = null; - fiber.stateNode = null; - fiber.return = null; - fiber.dependencies = null; - fiber.memoizedProps = null; - fiber.memoizedState = null; - fiber.pendingProps = null; - fiber.stateNode = null; - fiber.updateQueue = null; - } - function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { - for (parent = parent.child; null !== parent;) { - commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; - } - } - function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { - injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); - } catch (err) {} - switch (deletedFiber.tag) { - case 5: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - case 6: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 18: - break; - case 4: - createChildNodeSet(deletedFiber.stateNode.containerInfo); - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 0: - case 11: - case 14: - case 15: - var updateQueue = deletedFiber.updateQueue; - if (null !== updateQueue && (updateQueue = updateQueue.lastEffect, null !== updateQueue)) { - var effect = updateQueue = updateQueue.next; - do { - var _effect = effect, - destroy = _effect.destroy; - _effect = _effect.tag; - void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); - effect = effect.next; - } while (effect !== updateQueue); + function includesSyncLane(lanes) { + return (lanes & SyncLane) !== NoLanes; + } + function includesNonIdleWork(lanes) { + return (lanes & NonIdleLanes) !== NoLanes; + } + function includesOnlyRetries(lanes) { + return (lanes & RetryLanes) === lanes; + } + function includesOnlyNonUrgentLanes(lanes) { + var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; + return (lanes & UrgentLanes) === NoLanes; + } + function includesOnlyTransitions(lanes) { + return (lanes & TransitionLanes) === lanes; + } + function includesBlockingLane(root, lanes) { + var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane; + return (lanes & SyncDefaultLanes) !== NoLanes; + } + function includesExpiredLane(root, lanes) { + // This is a separate check from includesBlockingLane because a lane can + // expire after a render has already started. + return (lanes & root.expiredLanes) !== NoLanes; + } + function isTransitionLane(lane) { + return (lane & TransitionLanes) !== NoLanes; + } + function claimNextTransitionLane() { + // Cycle through the lanes, assigning each new transition to the next lane. + // In most cases, this means every transition gets its own lane, until we + // run out of lanes and cycle back to the beginning. + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + if ((nextTransitionLane & TransitionLanes) === NoLanes) { + nextTransitionLane = TransitionLane1; } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 1: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - updateQueue = deletedFiber.stateNode; - if ("function" === typeof updateQueue.componentWillUnmount) try { - updateQueue.props = deletedFiber.memoizedProps, updateQueue.state = deletedFiber.memoizedState, updateQueue.componentWillUnmount(); - } catch (error) { - captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + if ((nextRetryLane & RetryLanes) === NoLanes) { + nextRetryLane = RetryLane1; } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 21: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 22: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - default: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - } - } - function attachSuspenseRetryListeners(finishedWork) { - var wakeables = finishedWork.updateQueue; - if (null !== wakeables) { - finishedWork.updateQueue = null; - var retryCache = finishedWork.stateNode; - null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); - wakeables.forEach(function (wakeable) { - var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); - retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); - }); - } - } - function recursivelyTraverseMutationEffects(root, parentFiber) { - var deletions = parentFiber.deletions; - if (null !== deletions) for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - try { - commitDeletionEffectsOnFiber(root, parentFiber, childToDelete); - var alternate = childToDelete.alternate; - null !== alternate && (alternate.return = null); - childToDelete.return = null; - } catch (error) { - captureCommitPhaseError(childToDelete, parentFiber, error); + return lane; } - } - if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) { - commitMutationEffectsOnFiber(parentFiber, root), parentFiber = parentFiber.sibling; - } - } - function commitMutationEffectsOnFiber(finishedWork, root) { - var current = finishedWork.alternate, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 4) { - try { - commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - try { - commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$77) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$77); - } + function getHighestPriorityLane(lanes) { + return lanes & -lanes; + } + function pickArbitraryLane(lanes) { + // This wrapper function gets inlined. Only exists so to communicate that it + // doesn't matter which bit is selected; you can pick any bit without + // affecting the algorithms where its used. Here I'm using + // getHighestPriorityLane because it requires the fewest operations. + return getHighestPriorityLane(lanes); + } + function pickArbitraryLaneIndex(lanes) { + return 31 - clz32(lanes); + } + function laneToIndex(lane) { + return pickArbitraryLaneIndex(lane); + } + function includesSomeLane(a, b) { + return (a & b) !== NoLanes; + } + function isSubsetOfLanes(set, subset) { + return (set & subset) === subset; + } + function mergeLanes(a, b) { + return a | b; + } + function removeLanes(set, subset) { + return set & ~subset; + } + function intersectLanes(a, b) { + return a & b; + } // Seems redundant, but it changes the type from a single lane (used for + // updates) to a group of lanes (used for flushing work). + + function laneToLanes(lane) { + return lane; + } + function createLaneMap(initial) { + // Intentionally pushing one by one. + // https://v8.dev/blog/elements-kinds#avoid-creating-holes + var laneMap = []; + for (var i = 0; i < TotalLanes; i++) { + laneMap.push(initial); } - break; - case 1: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && null !== current && safelyDetachRef(current, current.return); - break; - case 5: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && null !== current && safelyDetachRef(current, current.return); - break; - case 6: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 3: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 4: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 13: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - root = finishedWork.child; - root.flags & 8192 && null !== root.memoizedState && (null === root.alternate || null === root.alternate.memoizedState) && (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - flags & 4 && attachSuspenseRetryListeners(finishedWork); - break; - case 22: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 19: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 4 && attachSuspenseRetryListeners(finishedWork); - break; - case 21: - break; - default: - recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); - } - } - function commitReconciliationEffects(finishedWork) { - var flags = finishedWork.flags; - flags & 2 && (finishedWork.flags &= -3); - flags & 4096 && (finishedWork.flags &= -4097); - } - function commitLayoutEffects(finishedWork) { - for (nextEffect = finishedWork; null !== nextEffect;) { - var fiber = nextEffect, - firstChild = fiber.child; - if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { - firstChild = nextEffect; - if (0 !== (firstChild.flags & 8772)) { - var current = firstChild.alternate; - try { - if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(5, firstChild); - break; - case 1: - var instance = firstChild.stateNode; - if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { - var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); - instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); - } - var updateQueue = firstChild.updateQueue; - null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); - break; - case 3: - var updateQueue$74 = firstChild.updateQueue; - if (null !== updateQueue$74) { - current = null; - if (null !== firstChild.child) switch (firstChild.child.tag) { - case 5: - current = firstChild.child.stateNode.canonical; - break; - case 1: - current = firstChild.child.stateNode; - } - commitUpdateQueue(firstChild, updateQueue$74, current); - } - break; - case 5: - if (null === current && firstChild.flags & 4) throw Error("The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."); - break; - case 6: - break; - case 4: - break; - case 12: - break; - case 13: - break; - case 19: - case 17: - case 21: - case 22: - case 23: - case 25: - break; - default: - 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 (firstChild.flags & 512) { - current = void 0; - var ref = firstChild.ref; - if (null !== ref) { - var instance$jscomp$0 = firstChild.stateNode; - switch (firstChild.tag) { - case 5: - current = instance$jscomp$0.canonical; - break; - default: - current = instance$jscomp$0; - } - "function" === typeof ref ? ref(current) : ref.current = current; - } - } - } catch (error) { - captureCommitPhaseError(firstChild, firstChild.return, error); - } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update + // could unblock them. Clear the suspended lanes so that we can try rendering + // them again. + // + // TODO: We really only need to unsuspend only lanes that are in the + // `subtreeLanes` of the updated fiber, or the update lanes of the return + // path. This would exclude suspended updates in an unrelated sibling tree, + // since there's no way for this update to unblock it. + // + // We don't do this if the incoming update is idle, because we never process + // idle updates until after all the regular updates have finished; there's no + // way it could unblock a transition. + + if (updateLane !== IdleLane) { + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; } - if (firstChild === fiber) { - nextEffect = null; - break; + var eventTimes = root.eventTimes; + var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most + // recent event, and we assume time is monotonically increasing. + + eventTimes[index] = eventTime; + } + function markRootSuspended(root, suspendedLanes) { + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. + + var expirationTimes = root.expirationTimes; + var lanes = suspendedLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; } - current = firstChild.sibling; - if (null !== current) { - current.return = firstChild.return; - nextEffect = current; - break; + } + function markRootPinged(root, pingedLanes, eventTime) { + root.pingedLanes |= root.suspendedLanes & pingedLanes; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; // Let's try everything again + + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + var entanglements = root.entanglements; + var eventTimes = root.eventTimes; + var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work + + var lanes = noLongerPendingLanes; + while (lanes > 0) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + entanglements[index] = NoLanes; + eventTimes[index] = NoTimestamp; + expirationTimes[index] = NoTimestamp; + lanes &= ~lane; } - nextEffect = firstChild.return; } - } - } - var ceil = Math.ceil, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - executionContext = 0, - workInProgressRoot = null, - workInProgress = null, - workInProgressRootRenderLanes = 0, - subtreeRenderLanes = 0, - subtreeRenderLanesCursor = createCursor(0), - workInProgressRootExitStatus = 0, - workInProgressRootFatalError = null, - workInProgressRootSkippedLanes = 0, - workInProgressRootInterleavedUpdatedLanes = 0, - workInProgressRootPingedLanes = 0, - workInProgressRootConcurrentErrors = null, - workInProgressRootRecoverableErrors = null, - globalMostRecentFallbackTime = 0, - workInProgressRootRenderTargetTime = Infinity, - workInProgressTransitions = null, - hasUncaughtError = !1, - firstUncaughtError = null, - legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, - rootWithPendingPassiveEffects = null, - pendingPassiveEffectsLanes = 0, - nestedUpdateCount = 0, - rootWithNestedUpdates = null, - currentEventTime = -1, - currentEventTransitionLane = 0; - function requestEventTime() { - return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); - } - function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; - if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; - fiber = currentUpdatePriority; - if (0 === fiber) a: { - fiber = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; - if (null != fiber) switch (fiber) { - case FabricDiscretePriority: - fiber = 1; - break a; + function markRootEntangled(root, entangledLanes) { + // In addition to entangling each of the given lanes with each other, we also + // have to consider _transitive_ entanglements. For each lane that is already + // entangled with *any* of the given lanes, that lane is now transitively + // entangled with *all* the given lanes. + // + // Translated: If C is entangled with A, then entangling A with B also + // entangles C with B. + // + // If this is hard to grasp, it might help to intentionally break this + // function and look at the tests that fail in ReactTransition-test.js. Try + // commenting out one of the conditions below. + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + var entanglements = root.entanglements; + var lanes = rootEntangledLanes; + while (lanes) { + var index = pickArbitraryLaneIndex(lanes); + var lane = 1 << index; + if ( + // Is this one of the newly entangled lanes? + lane & entangledLanes | + // Is this lane transitively entangled with the newly entangled lanes? + entanglements[index] & entangledLanes) { + entanglements[index] |= entangledLanes; + } + lanes &= ~lane; + } } - fiber = 16; - } - return fiber; - } - function scheduleUpdateOnFiber(fiber, lane, eventTime) { - if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); - var root = markUpdateLaneFromFiberToRoot(fiber, lane); - if (null === root) return null; - markRootUpdated(root, lane, eventTime); - if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); - return root; - } - function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { - sourceFiber.lanes |= lane; - var alternate = sourceFiber.alternate; - null !== alternate && (alternate.lanes |= lane); - alternate = sourceFiber; - for (sourceFiber = sourceFiber.return; null !== sourceFiber;) { - sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; - } - return 3 === alternate.tag ? alternate.stateNode : null; - } - function isInterleavedUpdate(fiber) { - return (null !== workInProgressRoot || null !== interleavedQueues) && 0 !== (fiber.mode & 1) && 0 === (executionContext & 2); - } - function ensureRootIsScheduled(root, currentTime) { - for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; - if (-1 === expirationTime) { - if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$5] = computeExpirationTime(lane, currentTime); - } else expirationTime <= currentTime && (root.expiredLanes |= lane); - lanes &= ~lane; - } - suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); - if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { - null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); - if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { - switch (lanesToEventPriority(suspendedLanes)) { - case 1: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; + function getBumpedLaneForHydration(root, renderLanes) { + var renderLane = getHighestPriorityLane(renderLanes); + var lane; + switch (renderLane) { + case InputContinuousLane: + lane = InputContinuousHydrationLane; break; - case 4: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; + case DefaultLane: + lane = DefaultHydrationLane; break; - case 16: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + lane = TransitionHydrationLane; break; - case 536870912: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; + case IdleLane: + lane = IdleHydrationLane; break; default: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + // Everything else is already either a hydration lane, or shouldn't + // be retried at a hydration lane. + lane = NoLane; + break; + } // Check if the lane we chose is suspended. If so, that indicates that we + // already attempted and failed to hydrate at that level. Also check if we're + // already rendering that lane, which is rare but could happen. + + if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) { + // Give up trying to hydrate and fall back to client render. + return NoLane; } - existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); + return lane; } - root.callbackPriority = currentTime; - root.callbackNode = existingCallbackNode; - } - } - function performConcurrentWorkOnRoot(root, didTimeout) { - currentEventTime = -1; - currentEventTransitionLane = 0; - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - var originalCallbackNode = root.callbackNode; - if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; - var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); - if (0 === lanes) return null; - if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { - didTimeout = lanes; - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); - do { - try { - workLoopConcurrent(); - break; - } catch (thrownValue) { - handleError(root, thrownValue); + function addFiberToLanesMap(root, fiber, lanes) { + if (!isDevToolsPresent) { + return; } - } while (1); - resetContextDependencies(); - ReactCurrentDispatcher$2.current = prevDispatcher; - executionContext = prevExecutionContext; - null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); - } - if (0 !== didTimeout) { - 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); - if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; - if (6 === didTimeout) markRootSuspended$1(root, lanes);else { - prevExecutionContext = root.current.alternate; - if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; - root.finishedWork = prevExecutionContext; - root.finishedLanes = lanes; - switch (didTimeout) { - case 0: - case 1: - throw Error("Root did not complete. This is a bug in React."); - case 2: - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 3: - markRootSuspended$1(root, lanes); - if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { - if (0 !== getNextLanes(root, 0)) break; - prevExecutionContext = root.suspendedLanes; - if ((prevExecutionContext & lanes) !== lanes) { - requestEventTime(); - root.pingedLanes |= root.suspendedLanes & prevExecutionContext; - break; - } - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); - break; - } - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 4: - markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; - didTimeout = root.eventTimes; - for (prevExecutionContext = -1; 0 < lanes;) { - var index$4 = 31 - clz32(lanes); - prevDispatcher = 1 << index$4; - index$4 = didTimeout[index$4]; - index$4 > prevExecutionContext && (prevExecutionContext = index$4); - lanes &= ~prevDispatcher; - } - lanes = prevExecutionContext; - lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; - lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; - if (10 < lanes) { - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); - break; - } - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 5: - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - default: - throw Error("Unknown root exit status."); + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + updaters.add(fiber); + lanes &= ~lane; } } - } - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; - } - function recoverFromConcurrentError(root, errorRetryLanes) { - var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; - root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); - root = renderRootSync(root, errorRetryLanes); - 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); - return root; - } - function queueRecoverableErrors(errors) { - null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); - } - function isRenderConsistentWithExternalStores(finishedWork) { - for (var node = finishedWork;;) { - if (node.flags & 16384) { - var updateQueue = node.updateQueue; - if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { - var check = updateQueue[i], - getSnapshot = check.getSnapshot; - check = check.value; - try { - if (!objectIs(getSnapshot(), check)) return !1; - } catch (error) { - return !1; + function movePendingFibersToMemoized(root, lanes) { + if (!isDevToolsPresent) { + return; + } + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap; + var memoizedUpdaters = root.memoizedUpdaters; + while (lanes > 0) { + var index = laneToIndex(lanes); + var lane = 1 << index; + var updaters = pendingUpdatersLaneMap[index]; + if (updaters.size > 0) { + updaters.forEach(function (fiber) { + var alternate = fiber.alternate; + if (alternate === null || !memoizedUpdaters.has(alternate)) { + memoizedUpdaters.add(fiber); + } + }); + updaters.clear(); } + lanes &= ~lane; } } - updateQueue = node.child; - if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { - if (node === finishedWork) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === finishedWork) return !0; - node = node.return; + function getTransitionsForLanes(root, lanes) { + { + return null; } - node.sibling.return = node.return; - node = node.sibling; } - } - return !0; - } - function markRootSuspended$1(root, suspendedLanes) { - suspendedLanes &= ~workInProgressRootPingedLanes; - suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; - root.suspendedLanes |= suspendedLanes; - root.pingedLanes &= ~suspendedLanes; - for (root = root.expirationTimes; 0 < suspendedLanes;) { - var index$6 = 31 - clz32(suspendedLanes), - lane = 1 << index$6; - root[index$6] = -1; - suspendedLanes &= ~lane; - } - } - function performSyncWorkOnRoot(root) { - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - flushPassiveEffects(); - var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; - var exitStatus = renderRootSync(root, lanes); - if (0 !== root.tag && 2 === exitStatus) { - var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); - 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); - } - if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; - if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); - root.finishedWork = root.current.alternate; - root.finishedLanes = lanes; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - return null; - } - function popRenderLanes() { - subtreeRenderLanes = subtreeRenderLanesCursor.current; - pop(subtreeRenderLanesCursor); - } - function prepareFreshStack(root, lanes) { - root.finishedWork = null; - root.finishedLanes = 0; - var timeoutHandle = root.timeoutHandle; - -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); - if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { - var interruptedWork = timeoutHandle; - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { - case 1: - interruptedWork = interruptedWork.type.childContextTypes; - null !== interruptedWork && void 0 !== interruptedWork && popContext(); - break; - case 3: - popHostContainer(); - pop(didPerformWorkStackCursor); - pop(contextStackCursor); - resetWorkInProgressVersions(); - break; - case 5: - popHostContext(interruptedWork); - break; - case 4: - popHostContainer(); - break; - case 13: - pop(suspenseStackCursor); - break; - case 19: - pop(suspenseStackCursor); - break; - case 10: - popProvider(interruptedWork.type._context); - break; - case 22: - case 23: - popRenderLanes(); + var DiscreteEventPriority = SyncLane; + var ContinuousEventPriority = InputContinuousLane; + var DefaultEventPriority = DefaultLane; + var IdleEventPriority = IdleLane; + var currentUpdatePriority = NoLane; + function getCurrentUpdatePriority() { + return currentUpdatePriority; } - timeoutHandle = timeoutHandle.return; - } - workInProgressRoot = root; - workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = subtreeRenderLanes = lanes; - workInProgressRootExitStatus = 0; - workInProgressRootFatalError = null; - workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; - workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; - if (null !== interleavedQueues) { - for (lanes = 0; lanes < interleavedQueues.length; lanes++) { - if (timeoutHandle = interleavedQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { - timeoutHandle.interleaved = null; - var firstInterleavedUpdate = interruptedWork.next, - lastPendingUpdate = timeoutHandle.pending; - if (null !== lastPendingUpdate) { - var firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = firstInterleavedUpdate; - interruptedWork.next = firstPendingUpdate; - } - timeoutHandle.pending = interruptedWork; - } + function setCurrentUpdatePriority(newPriority) { + currentUpdatePriority = newPriority; } - interleavedQueues = null; - } - return root; - } - function handleError(root$jscomp$0, thrownValue) { - do { - var erroredWork = workInProgress; - try { - resetContextDependencies(); - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { - var queue = hook.queue; - null !== queue && (queue.pending = null); - hook = hook.next; - } - didScheduleRenderPhaseUpdate = !1; + function higherEventPriority(a, b) { + return a !== 0 && a < b ? a : b; + } + function lowerEventPriority(a, b) { + return a === 0 || a > b ? a : b; + } + function isHigherEventPriority(a, b) { + return a !== 0 && a < b; + } + function lanesToEventPriority(lanes) { + var lane = getHighestPriorityLane(lanes); + if (!isHigherEventPriority(DiscreteEventPriority, lane)) { + return DiscreteEventPriority; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; - didScheduleRenderPhaseUpdateDuringThisPass = !1; - ReactCurrentOwner$2.current = null; - if (null === erroredWork || null === erroredWork.return) { - workInProgressRootExitStatus = 1; - workInProgressRootFatalError = thrownValue; - workInProgress = null; - break; + if (!isHigherEventPriority(ContinuousEventPriority, lane)) { + return ContinuousEventPriority; } - a: { - var root = root$jscomp$0, - returnFiber = erroredWork.return, - sourceFiber = erroredWork, - value = thrownValue; - thrownValue = workInProgressRootRenderLanes; - sourceFiber.flags |= 32768; - if (null !== value && "object" === typeof value && "function" === typeof value.then) { - var wakeable = value, - sourceFiber$jscomp$0 = sourceFiber, - tag = sourceFiber$jscomp$0.tag; - if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { - var currentSource = sourceFiber$jscomp$0.alternate; - currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); - } - b: { - sourceFiber$jscomp$0 = returnFiber; - do { - var JSCompiler_temp; - if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { - var nextState = sourceFiber$jscomp$0.memoizedState; - JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; - } - if (JSCompiler_temp) { - var suspenseBoundary = sourceFiber$jscomp$0; - break b; - } - sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; - } while (null !== sourceFiber$jscomp$0); - suspenseBoundary = null; - } - if (null !== suspenseBoundary) { - suspenseBoundary.flags &= -257; - value = suspenseBoundary; - sourceFiber$jscomp$0 = thrownValue; - if (0 === (value.mode & 1)) { - if (value === returnFiber) value.flags |= 65536;else { - value.flags |= 128; - sourceFiber.flags |= 131072; - sourceFiber.flags &= -52805; - if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { - var update = createUpdate(-1, 1); - update.tag = 2; - enqueueUpdate(sourceFiber, update); - } - sourceFiber.lanes |= 1; - } - } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; - suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); - thrownValue = suspenseBoundary; - root = wakeable; - var wakeables = thrownValue.updateQueue; - if (null === wakeables) { - var updateQueue = new Set(); - updateQueue.add(root); - thrownValue.updateQueue = updateQueue; - } else wakeables.add(root); - break a; - } else { - if (0 === (thrownValue & 1)) { - attachPingListener(root, wakeable, thrownValue); - renderDidSuspendDelayIfPossible(); - break a; - } - value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); - } - } - root = value; - 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); - null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); - value = createCapturedValue(value, sourceFiber); - root = returnFiber; - do { - switch (root.tag) { - case 3: - wakeable = value; - root.flags |= 65536; - thrownValue &= -thrownValue; - root.lanes |= thrownValue; - var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); - enqueueCapturedUpdate(root, update$jscomp$0); - break a; - case 1: - wakeable = value; - var ctor = root.type, - instance = root.stateNode; - if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { - root.flags |= 65536; - thrownValue &= -thrownValue; - root.lanes |= thrownValue; - var update$32 = createClassErrorUpdate(root, wakeable, thrownValue); - enqueueCapturedUpdate(root, update$32); - break a; - } - } - root = root.return; - } while (null !== root); + if (includesNonIdleWork(lane)) { + return DefaultEventPriority; } - completeUnitOfWork(erroredWork); - } catch (yetAnotherThrownValue) { - thrownValue = yetAnotherThrownValue; - workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); - continue; - } - break; - } while (1); - } - function pushDispatcher() { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; - return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; - } - function renderDidSuspendDelayIfPossible() { - if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; - null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); - } - function renderRootSync(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); - do { - try { - workLoopSync(); - break; - } catch (thrownValue) { - handleError(root, thrownValue); + return IdleEventPriority; } - } while (1); - resetContextDependencies(); - executionContext = prevExecutionContext; - ReactCurrentDispatcher$2.current = prevDispatcher; - if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - return workInProgressRootExitStatus; - } - function workLoopSync() { - for (; null !== workInProgress;) { - performUnitOfWork(workInProgress); - } - } - function workLoopConcurrent() { - for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) { - performUnitOfWork(workInProgress); - } - } - function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); - unitOfWork.memoizedProps = unitOfWork.pendingProps; - null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; - ReactCurrentOwner$2.current = null; - } - function completeUnitOfWork(unitOfWork) { - var completedWork = unitOfWork; - do { - var current = completedWork.alternate; - unitOfWork = completedWork.return; - if (0 === (completedWork.flags & 32768)) { - if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { - workInProgress = current; - return; - } - } else { - current = unwindWork(current, completedWork); - if (null !== current) { - current.flags &= 32767; - workInProgress = current; - return; + + // Renderers that don't support hydration + // can re-export everything from this module. + function shim() { + throw new Error("The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } // Hydration (when unsupported) + var isSuspenseInstancePending = shim; + var isSuspenseInstanceFallback = shim; + var getSuspenseInstanceFallbackErrorDetails = shim; + var registerSuspenseInstanceRetry = shim; + var hydrateTextInstance = shim; + var clearSuspenseBoundary = shim; + var clearSuspenseBoundaryFromContainer = shim; + var errorHydratingContainer = shim; + var getViewConfigForType = ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; + var UPDATE_SIGNAL = {}; + { + Object.freeze(UPDATE_SIGNAL); + } // Counter for uniquely identifying views. + // % 10 === 1 means it is a rootTag. + // % 2 === 0 means it is a Fabric tag. + + var nextReactTag = 3; + function allocateTag() { + var tag = nextReactTag; + if (tag % 10 === 1) { + tag += 2; } - if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { - workInProgressRootExitStatus = 6; - workInProgress = null; - return; + nextReactTag = tag + 2; + return tag; + } + function recursivelyUncacheFiberNode(node) { + if (typeof node === "number") { + // Leaf node (eg text) + uncacheFiberNode(node); + } else { + uncacheFiberNode(node._nativeTag); + node._children.forEach(recursivelyUncacheFiberNode); } } - completedWork = completedWork.sibling; - if (null !== completedWork) { - workInProgress = completedWork; - return; + function appendInitialChild(parentInstance, child) { + parentInstance._children.push(child); } - workInProgress = completedWork = unitOfWork; - } while (null !== completedWork); - 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); - } - function commitRoot(root, recoverableErrors, transitions) { - var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$2.transition; - try { - ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); - } finally { - ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; - } - return null; - } - function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { - do { - flushPassiveEffects(); - } while (null !== rootWithPendingPassiveEffects); - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - transitions = root.finishedWork; - var lanes = root.finishedLanes; - if (null === transitions) return null; - root.finishedWork = null; - root.finishedLanes = 0; - if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); - root.callbackNode = null; - root.callbackPriority = 0; - var remainingLanes = transitions.lanes | transitions.childLanes; - markRootFinished(root, remainingLanes); - root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); - 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { - flushPassiveEffects(); - return null; - })); - remainingLanes = 0 !== (transitions.flags & 15990); - if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { - remainingLanes = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; - var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; - var prevExecutionContext = executionContext; - executionContext |= 4; - ReactCurrentOwner$2.current = null; - commitBeforeMutationEffects(root, transitions); - commitMutationEffectsOnFiber(transitions, root); - root.current = transitions; - commitLayoutEffects(transitions, root, lanes); - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); - executionContext = prevExecutionContext; - currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$2.transition = remainingLanes; - } else root.current = transitions; - rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(transitions.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) { - renderPriorityLevel(recoverableErrors[transitions]); - } - if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; - 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; - flushSyncCallbacks(); - return null; - } - function flushPassiveEffects() { - if (null !== rootWithPendingPassiveEffects) { - var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), - prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = currentUpdatePriority; - try { - ReactCurrentBatchConfig$2.transition = null; - currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; - if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { - renderPriority = rootWithPendingPassiveEffects; - rootWithPendingPassiveEffects = null; - pendingPassiveEffectsLanes = 0; - if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); - var prevExecutionContext = executionContext; - executionContext |= 4; - for (nextEffect = renderPriority.current; null !== nextEffect;) { - var fiber = nextEffect, - child = fiber.child; - if (0 !== (nextEffect.flags & 16)) { - var deletions = fiber.deletions; - if (null !== deletions) { - for (var i = 0; i < deletions.length; i++) { - var fiberToDelete = deletions[i]; - for (nextEffect = fiberToDelete; null !== nextEffect;) { - var fiber$jscomp$0 = nextEffect; - switch (fiber$jscomp$0.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); - } - var child$jscomp$0 = fiber$jscomp$0.child; - if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { - fiber$jscomp$0 = nextEffect; - var sibling = fiber$jscomp$0.sibling, - returnFiber = fiber$jscomp$0.return; - detachFiberAfterEffects(fiber$jscomp$0); - if (fiber$jscomp$0 === fiberToDelete) { - nextEffect = null; - break; - } - if (null !== sibling) { - sibling.return = returnFiber; - nextEffect = sibling; - break; - } - nextEffect = returnFiber; - } - } - } - var previousFiber = fiber.alternate; - if (null !== previousFiber) { - var detachedChild = previousFiber.child; - if (null !== detachedChild) { - previousFiber.child = null; - do { - var detachedSibling = detachedChild.sibling; - detachedChild.sibling = null; - detachedChild = detachedSibling; - } while (null !== detachedChild); - } - } - nextEffect = fiber; - } - } - if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { - fiber = nextEffect; - if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(9, fiber, fiber.return); - } - var sibling$jscomp$0 = fiber.sibling; - if (null !== sibling$jscomp$0) { - sibling$jscomp$0.return = fiber.return; - nextEffect = sibling$jscomp$0; - break b; - } - nextEffect = fiber.return; - } - } - var finishedWork = renderPriority.current; - for (nextEffect = finishedWork; null !== nextEffect;) { - child = nextEffect; - var firstChild = child.child; - if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { - deletions = nextEffect; - if (0 !== (deletions.flags & 2048)) try { - switch (deletions.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(9, deletions); - } - } catch (error) { - captureCommitPhaseError(deletions, deletions.return, error); - } - if (deletions === child) { - nextEffect = null; - break b; - } - var sibling$jscomp$1 = deletions.sibling; - if (null !== sibling$jscomp$1) { - sibling$jscomp$1.return = deletions.return; - nextEffect = sibling$jscomp$1; - break b; - } - nextEffect = deletions.return; + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var tag = allocateTag(); + var viewConfig = getViewConfigForType(type); + { + for (var key in viewConfig.validAttributes) { + if (props.hasOwnProperty(key)) { + ReactNativePrivateInterface.deepFreezeAndThrowOnMutationInDev(props[key]); } } - executionContext = prevExecutionContext; - flushSyncCallbacks(); - if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { - injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); - } catch (err) {} - JSCompiler_inline_result = !0; } - return JSCompiler_inline_result; - } finally { - currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; + var updatePayload = create(props, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.createView(tag, + // reactTag + viewConfig.uiViewClassName, + // viewName + rootContainerInstance, + // rootTag + updatePayload // props + ); + + var component = new ReactNativeFiberHostComponent(tag, viewConfig, internalInstanceHandle); + precacheFiberNode(internalInstanceHandle, tag); + updateFiberProps(tag, props); // Not sure how to avoid this cast. Flow is okay if the component is defined + // in the same file but if it's external it can't see the types. + + return component; } - } - return !1; - } - function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { - sourceFiber = createCapturedValue(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - enqueueUpdate(rootFiber, sourceFiber); - sourceFiber = requestEventTime(); - rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1); - null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); - } - function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { - if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { - if (3 === nearestMountedAncestor.tag) { - captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); - break; - } else if (1 === nearestMountedAncestor.tag) { - var instance = nearestMountedAncestor.stateNode; - if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { - sourceFiber = createCapturedValue(error, sourceFiber); - sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); - enqueueUpdate(nearestMountedAncestor, sourceFiber); - sourceFiber = requestEventTime(); - nearestMountedAncestor = markUpdateLaneFromFiberToRoot(nearestMountedAncestor, 1); - null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); - break; + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + if (!hostContext.isInAParentText) { + throw new Error("Text strings must be rendered within a component."); } + var tag = allocateTag(); + ReactNativePrivateInterface.UIManager.createView(tag, + // reactTag + "RCTRawText", + // viewName + rootContainerInstance, + // rootTag + { + text: text + } // props + ); + + precacheFiberNode(internalInstanceHandle, tag); + return tag; } - nearestMountedAncestor = nearestMountedAncestor.return; - } - } - function pingSuspendedRoot(root, wakeable, pingedLanes) { - var pingCache = root.pingCache; - null !== pingCache && pingCache.delete(wakeable); - wakeable = requestEventTime(); - root.pingedLanes |= root.suspendedLanes & pingedLanes; - workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); - ensureRootIsScheduled(root, wakeable); - } - function retryTimedOutBoundary(boundaryFiber, retryLane) { - 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); - var eventTime = requestEventTime(); - boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); - null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); - } - function retryDehydratedSuspenseBoundary(boundaryFiber) { - var suspenseState = boundaryFiber.memoizedState, - retryLane = 0; - null !== suspenseState && (retryLane = suspenseState.retryLane); - retryTimedOutBoundary(boundaryFiber, retryLane); - } - function resolveRetryWakeable(boundaryFiber, wakeable) { - var retryLane = 0; - switch (boundaryFiber.tag) { - case 13: - var retryCache = boundaryFiber.stateNode; - var suspenseState = boundaryFiber.memoizedState; - null !== suspenseState && (retryLane = suspenseState.retryLane); - break; - case 19: - retryCache = boundaryFiber.stateNode; - break; - default: - throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); - } - null !== retryCache && retryCache.delete(wakeable); - retryTimedOutBoundary(boundaryFiber, retryLane); - } - var beginWork$1; - beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { - if (null !== current) { - if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { - if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); - didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; + function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { + // Don't send a no-op message over the bridge. + if (parentInstance._children.length === 0) { + return false; + } // Map from child objects to native tags. + // Either way we need to pass a copy of the Array to prevent it from being frozen. + + var nativeTags = parentInstance._children.map(function (child) { + return typeof child === "number" ? child // Leaf node (eg text) + : child._nativeTag; + }); + ReactNativePrivateInterface.UIManager.setChildren(parentInstance._nativeTag, + // containerTag + nativeTags // reactTags + ); + + return false; } - } else didReceiveUpdate = !1; - workInProgress.lanes = 0; - switch (workInProgress.tag) { - case 2: - var Component = workInProgress.type; - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - var context = getMaskedContext(workInProgress, contextStackCursor.current); - prepareToReadContext(workInProgress, renderLanes); - context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); - workInProgress.flags |= 1; - if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { - workInProgress.tag = 1; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - if (isContextProvider(Component)) { - var hasContext = !0; - pushContextProvider(workInProgress); - } else hasContext = !1; - workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; - initializeUpdateQueue(workInProgress); - context.updater = classComponentUpdater; - workInProgress.stateNode = context; - context._reactInternals = workInProgress; - mountClassInstance(workInProgress, Component, current, renderLanes); - workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); - } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; - return workInProgress; - case 16: - Component = workInProgress.elementType; - a: { - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - context = Component._init; - Component = context(Component._payload); - workInProgress.type = Component; - context = workInProgress.tag = resolveLazyComponentTag(Component); - current = resolveDefaultProps(Component, current); - switch (context) { - case 0: - workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); - break a; - case 1: - workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); - break a; - case 11: - workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); - break a; - case 14: - workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); - break a; - } - throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); + function getRootHostContext(rootContainerInstance) { + return { + isInAParentText: false + }; + } + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + var prevIsInAParentText = parentHostContext.isInAParentText; + var isInAParentText = type === "AndroidTextInput" || + // Android + type === "RCTMultilineTextInputView" || + // iOS + type === "RCTSinglelineTextInputView" || + // iOS + type === "RCTText" || type === "RCTVirtualText"; + if (prevIsInAParentText !== isInAParentText) { + return { + isInAParentText: isInAParentText + }; + } else { + return parentHostContext; } - return workInProgress; - case 0: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); - case 1: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); - case 3: - pushHostRootContext(workInProgress); - if (null === current) throw Error("Should have a current fiber. This is a bug in React."); - context = workInProgress.pendingProps; - Component = workInProgress.memoizedState.element; - cloneUpdateQueue(current, workInProgress); - processUpdateQueue(workInProgress, context, null, renderLanes); - context = workInProgress.memoizedState.element; - context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); - return workInProgress; - case 5: - return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 6: + } + function getPublicInstance(instance) { + return instance; + } + function prepareForCommit(containerInfo) { + // Noop return null; - case 13: - return updateSuspenseComponent(current, workInProgress, renderLanes); - case 4: - return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 11: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); - case 7: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; - case 8: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; - case 12: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; - case 10: - a: { - Component = workInProgress.type._context; - context = workInProgress.pendingProps; - hasContext = workInProgress.memoizedProps; - var newValue = context.value; - push(valueCursor, Component._currentValue2); - Component._currentValue2 = newValue; - if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { - if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { - workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - break a; - } - } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { - var list = hasContext.dependencies; - if (null !== list) { - newValue = hasContext.child; - for (var dependency = list.firstContext; null !== dependency;) { - if (dependency.context === Component) { - if (1 === hasContext.tag) { - dependency = createUpdate(-1, renderLanes & -renderLanes); - dependency.tag = 2; - var updateQueue = hasContext.updateQueue; - if (null !== updateQueue) { - updateQueue = updateQueue.shared; - var pending = updateQueue.pending; - null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); - updateQueue.pending = dependency; - } - } - hasContext.lanes |= renderLanes; - dependency = hasContext.alternate; - null !== dependency && (dependency.lanes |= renderLanes); - scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); - list.lanes |= renderLanes; - break; - } - dependency = dependency.next; - } - } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { - newValue = hasContext.return; - if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); - newValue.lanes |= renderLanes; - list = newValue.alternate; - null !== list && (list.lanes |= renderLanes); - scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); - newValue = hasContext.sibling; - } else newValue = hasContext.child; - if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { - if (newValue === workInProgress) { - newValue = null; - break; - } - hasContext = newValue.sibling; - if (null !== hasContext) { - hasContext.return = newValue.return; - newValue = hasContext; - break; - } - newValue = newValue.return; - } - hasContext = newValue; - } - reconcileChildren(current, workInProgress, context.children, renderLanes); - workInProgress = workInProgress.child; + } + function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { + return UPDATE_SIGNAL; + } + function resetAfterCommit(containerInfo) { + // Noop + } + var scheduleTimeout = setTimeout; + var cancelTimeout = clearTimeout; + var noTimeout = -1; + function shouldSetTextContent(type, props) { + // TODO (bvaughn) Revisit this decision. + // Always returning false simplifies the createInstance() implementation, + // But creates an additional child Fiber for raw text children. + // No additional native views are created though. + // It's not clear to me which is better so I'm deferring for now. + // More context @ github.com/facebook/react/pull/8560#discussion_r92111303 + return false; + } + function getCurrentEventPriority() { + return DefaultEventPriority; + } // ------------------- + function appendChild(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + var children = parentInstance._children; + var index = children.indexOf(child); + if (index >= 0) { + children.splice(index, 1); + children.push(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + // containerTag + [index], + // moveFromIndices + [children.length - 1], + // moveToIndices + [], + // addChildReactTags + [], + // addAtIndices + [] // removeAtIndices + ); + } else { + children.push(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + // containerTag + [], + // moveFromIndices + [], + // moveToIndices + [childTag], + // addChildReactTags + [children.length - 1], + // addAtIndices + [] // removeAtIndices + ); } - return workInProgress; - case 9: - return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 14: - return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); - case 15: - return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); - case 17: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); - case 19: - return updateSuspenseListComponent(current, workInProgress, renderLanes); - case 22: - return updateOffscreenComponent(current, workInProgress, renderLanes); - } - throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); - }; - function scheduleCallback$1(priorityLevel, callback) { - return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); - } - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = mode; - this.subtreeFlags = this.flags = 0; - this.deletions = null; - this.childLanes = this.lanes = 0; - this.alternate = null; - } - function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); - } - function shouldConstruct(Component) { - Component = Component.prototype; - return !(!Component || !Component.isReactComponent); - } - function resolveLazyComponentTag(Component) { - if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; - if (void 0 !== Component && null !== Component) { - Component = Component.$$typeof; - if (Component === REACT_FORWARD_REF_TYPE) return 11; - if (Component === REACT_MEMO_TYPE) return 14; - } - return 2; - } - function createWorkInProgress(current, pendingProps) { - var workInProgress = current.alternate; - null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); - workInProgress.flags = current.flags & 14680064; - workInProgress.childLanes = current.childLanes; - workInProgress.lanes = current.lanes; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - pendingProps = current.dependencies; - workInProgress.dependencies = null === pendingProps ? null : { - lanes: pendingProps.lanes, - firstContext: pendingProps.firstContext - }; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - return workInProgress; - } - function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { - var fiberTag = 2; - owner = type; - if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, lanes, key); - case REACT_STRICT_MODE_TYPE: - fiberTag = 8; - mode |= 8; - break; - case REACT_PROFILER_TYPE: - return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; - case REACT_SUSPENSE_TYPE: - return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; - case REACT_SUSPENSE_LIST_TYPE: - return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; - case REACT_OFFSCREEN_TYPE: - return createFiberFromOffscreen(pendingProps, mode, lanes, key); - default: - if ("object" === typeof type && null !== type) switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - fiberTag = 10; - break a; - case REACT_CONTEXT_TYPE: - fiberTag = 9; - break a; - case REACT_FORWARD_REF_TYPE: - fiberTag = 11; - break a; - case REACT_MEMO_TYPE: - fiberTag = 14; - break a; - case REACT_LAZY_TYPE: - fiberTag = 16; - owner = null; - break a; + } + + function appendChildToContainer(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + ReactNativePrivateInterface.UIManager.setChildren(parentInstance, + // containerTag + [childTag] // reactTags + ); + } + + function commitTextUpdate(textInstance, oldText, newText) { + ReactNativePrivateInterface.UIManager.updateView(textInstance, + // reactTag + "RCTRawText", + // viewName + { + text: newText + } // props + ); + } + + function commitUpdate(instance, updatePayloadTODO, type, oldProps, newProps, internalInstanceHandle) { + var viewConfig = instance.viewConfig; + updateFiberProps(instance._nativeTag, newProps); + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); // Avoid the overhead of bridge calls if there's no update. + // This is an expensive no-op for Android, and causes an unnecessary + // view invalidation for certain components (eg RCTTextInput) on iOS. + + if (updatePayload != null) { + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, + // reactTag + viewConfig.uiViewClassName, + // viewName + updatePayload // props + ); } - throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); - } - key = createFiber(fiberTag, pendingProps, key, mode); - key.elementType = type; - key.type = owner; - key.lanes = lanes; - return key; - } - function createFiberFromFragment(elements, mode, lanes, key) { - elements = createFiber(7, elements, key, mode); - elements.lanes = lanes; - return elements; - } - function createFiberFromOffscreen(pendingProps, mode, lanes, key) { - pendingProps = createFiber(22, pendingProps, key, mode); - pendingProps.elementType = REACT_OFFSCREEN_TYPE; - pendingProps.lanes = lanes; - pendingProps.stateNode = {}; - return pendingProps; - } - function createFiberFromText(content, mode, lanes) { - content = createFiber(6, content, null, mode); - content.lanes = lanes; - return content; - } - function createFiberFromPortal(portal, mode, lanes) { - mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); - mode.lanes = lanes; - mode.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return mode; - } - function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { - this.tag = tag; - this.containerInfo = containerInfo; - this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; - this.timeoutHandle = -1; - this.callbackNode = this.pendingContext = this.context = null; - this.callbackPriority = 0; - this.eventTimes = createLaneMap(0); - this.expirationTimes = createLaneMap(-1); - this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; - this.entanglements = createLaneMap(0); - this.identifierPrefix = identifierPrefix; - this.onRecoverableError = onRecoverableError; - } - function createPortal(children, containerInfo, implementation) { - var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: null == key ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - function findHostInstance(component) { - var fiber = component._reactInternals; - if (void 0 === fiber) { - if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); - component = Object.keys(component).join(","); - throw Error("Argument appears to not be a ReactComponent. Keys: " + component); - } - component = findCurrentHostFiber(fiber); - return null === component ? null : component.stateNode; - } - function updateContainer(element, container, parentComponent, callback) { - var current = container.current, - eventTime = requestEventTime(), - lane = requestUpdateLane(current); - a: if (parentComponent) { - parentComponent = parentComponent._reactInternals; - b: { - if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); - var JSCompiler_inline_result = parentComponent; - do { - switch (JSCompiler_inline_result.tag) { - case 3: - JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; - break b; - case 1: - if (isContextProvider(JSCompiler_inline_result.type)) { - JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; - break b; - } - } - JSCompiler_inline_result = JSCompiler_inline_result.return; - } while (null !== JSCompiler_inline_result); - throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); } - if (1 === parentComponent.tag) { - var Component = parentComponent.type; - if (isContextProvider(Component)) { - parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); - break a; + + function insertBefore(parentInstance, child, beforeChild) { + var children = parentInstance._children; + var index = children.indexOf(child); // Move existing child or add new child? + + if (index >= 0) { + children.splice(index, 1); + var beforeChildIndex = children.indexOf(beforeChild); + children.splice(beforeChildIndex, 0, child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + // containerID + [index], + // moveFromIndices + [beforeChildIndex], + // moveToIndices + [], + // addChildReactTags + [], + // addAtIndices + [] // removeAtIndices + ); + } else { + var _beforeChildIndex = children.indexOf(beforeChild); + children.splice(_beforeChildIndex, 0, child); + var childTag = typeof child === "number" ? child : child._nativeTag; + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + // containerID + [], + // moveFromIndices + [], + // moveToIndices + [childTag], + // addChildReactTags + [_beforeChildIndex], + // addAtIndices + [] // removeAtIndices + ); } } - parentComponent = JSCompiler_inline_result; - } else parentComponent = emptyContextObject; - null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; - container = createUpdate(eventTime, lane); - container.payload = { - element: element - }; - callback = void 0 === callback ? null : callback; - null !== callback && (container.callback = callback); - enqueueUpdate(current, container); - element = scheduleUpdateOnFiber(current, lane, eventTime); - null !== element && entangleTransitions(element, current, lane); - return lane; - } - function emptyFindFiberByHostInstance() { - return null; - } - function findNodeHandle(componentOrHandle) { - if (null == componentOrHandle) return null; - if ("number" === typeof componentOrHandle) return componentOrHandle; - if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; - componentOrHandle = findHostInstance(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; - } - function onRecoverableError(error) { - console.error(error); - } - batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { - var prevExecutionContext = executionContext; - executionContext |= 1; - try { - return fn(a); - } finally { - executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); - } - }; - var roots = new Map(), - devToolsConfig$jscomp$inline_925 = { - findFiberByHostInstance: getInstanceFromInstance, - bundleType: 0, - version: "18.2.0-next-d300cebde-20220601", - rendererPackageName: "react-native-renderer", - rendererConfig: { - getInspectorDataForViewTag: function getInspectorDataForViewTag() { - throw Error("getInspectorDataForViewTag() is not available in production"); - }, - getInspectorDataForViewAtPoint: function () { - throw Error("getInspectorDataForViewAtPoint() is not available in production."); - }.bind(null, findNodeHandle) + + function insertInContainerBefore(parentInstance, child, beforeChild) { + // TODO (bvaughn): Remove this check when... + // We create a wrapper object for the container in ReactNative render() + // Or we refactor to remove wrapper objects entirely. + // For more info on pros/cons see PR #8560 description. + if (typeof parentInstance === "number") { + throw new Error("Container does not support insertBefore operation"); + } + } + function removeChild(parentInstance, child) { + recursivelyUncacheFiberNode(child); + var children = parentInstance._children; + var index = children.indexOf(child); + children.splice(index, 1); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance._nativeTag, + // containerID + [], + // moveFromIndices + [], + // moveToIndices + [], + // addChildReactTags + [], + // addAtIndices + [index] // removeAtIndices + ); } - }; - var internals$jscomp$inline_1171 = { - bundleType: devToolsConfig$jscomp$inline_925.bundleType, - version: devToolsConfig$jscomp$inline_925.version, - rendererPackageName: devToolsConfig$jscomp$inline_925.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_925.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: devToolsConfig$jscomp$inline_925.findFiberByHostInstance || emptyFindFiberByHostInstance, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: "18.2.0-next-d300cebde-20220601" - }; - if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1172 = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (!hook$jscomp$inline_1172.isDisabled && hook$jscomp$inline_1172.supportsFiber) try { - rendererID = hook$jscomp$inline_1172.inject(internals$jscomp$inline_1171), injectedHook = hook$jscomp$inline_1172; - } catch (err) {} - } - exports.createPortal = function (children, containerTag) { - return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); - }; - exports.dispatchCommand = function (handle, command, args) { - null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); - }; - exports.findHostInstance_DEPRECATED = function (componentOrHandle) { - if (null == componentOrHandle) return null; - if (componentOrHandle._nativeTag) return componentOrHandle; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; - componentOrHandle = findHostInstance(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; - }; - exports.findNodeHandle = findNodeHandle; - exports.getInspectorDataForInstance = void 0; - exports.render = function (element, containerTag, callback, concurrentRoot) { - var root = roots.get(containerTag); - root || (root = concurrentRoot ? 1 : 0, concurrentRoot = new FiberRootNode(containerTag, root, !1, "", onRecoverableError), root = createFiber(3, null, null, 1 === root ? 1 : 0), concurrentRoot.current = root, root.stateNode = concurrentRoot, root.memoizedState = { - element: null, - isDehydrated: !1, - cache: null, - transitions: null, - pendingSuspenseBoundaries: null - }, initializeUpdateQueue(root), root = concurrentRoot, roots.set(containerTag, root)); - updateContainer(element, root, null, callback); - a: if (element = root.current, element.child) switch (element.child.tag) { - case 5: - element = element.child.stateNode.canonical; - break a; - default: - element = element.child.stateNode; - } else element = null; - return element; - }; - exports.sendAccessibilityEvent = function (handle, eventType) { - null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); - }; - exports.stopSurface = function (containerTag) { - var root = roots.get(containerTag); - root && updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - }; - exports.unmountComponentAtNode = function (containerTag) { - this.stopSurface(containerTag); - }; -},208,[39,36,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var RCTTextInputViewConfig = { - bubblingEventTypes: { - topBlur: { - phasedRegistrationNames: { - bubbled: 'onBlur', - captured: 'onBlurCapture' + function removeChildFromContainer(parentInstance, child) { + recursivelyUncacheFiberNode(child); + ReactNativePrivateInterface.UIManager.manageChildren(parentInstance, + // containerID + [], + // moveFromIndices + [], + // moveToIndices + [], + // addChildReactTags + [], + // addAtIndices + [0] // removeAtIndices + ); + } + + function resetTextContent(instance) { + // Noop + } + function hideInstance(instance) { + var viewConfig = instance.viewConfig; + var updatePayload = create({ + style: { + display: "none" + } + }, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + function hideTextInstance(textInstance) { + throw new Error("Not yet implemented."); + } + function unhideInstance(instance, props) { + var viewConfig = instance.viewConfig; + var updatePayload = diff(assign({}, props, { + style: [props.style, { + display: "none" + }] + }), props, viewConfig.validAttributes); + ReactNativePrivateInterface.UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + function clearContainer(container) { + // TODO Implement this for React Native + // UIManager does not expose a "remove all" type method. + } + function unhideTextInstance(textInstance, text) { + throw new Error("Not yet implemented."); + } + function preparePortalMount(portalInstance) { + // noop + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); } - }, - topChange: { - phasedRegistrationNames: { - bubbled: 'onChange', - captured: 'onChangeCapture' + } + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + function describeComponentFrame(name, source, ownerName) { + var sourceInfo = ""; + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ""); // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ""); + fileName = folderName + "/" + fileName; + } + } + } + sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")"; + } else if (ownerName) { + sourceInfo = " (created by " + ownerName + ")"; } - }, - topContentSizeChange: { - phasedRegistrationNames: { - captured: 'onContentSizeChangeCapture', - bubbled: 'onContentSizeChange' + return "\n in " + (name || "Unknown") + sourceInfo; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeFunctionComponentFrame(ctor, source, ownerFn); } - }, - topEndEditing: { - phasedRegistrationNames: { - bubbled: 'onEndEditing', - captured: 'onEndEditingCapture' + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + if (!fn) { + return ""; + } + var name = fn.displayName || fn.name || null; + var ownerName = null; + if (ownerFn) { + ownerName = ownerFn.displayName || ownerFn.name || null; + } + return describeComponentFrame(name, source, ownerName); } - }, - topFocus: { - phasedRegistrationNames: { - bubbled: 'onFocus', - captured: 'onFocusCapture' + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; } - }, - topKeyPress: { - phasedRegistrationNames: { - bubbled: 'onKeyPress', - captured: 'onKeyPressCapture' + if (typeof type === "function") { + { + return describeFunctionComponentFrame(type, source, ownerFn); + } } - }, - topSubmitEditing: { - phasedRegistrationNames: { - bubbled: 'onSubmitEditing', - captured: 'onSubmitEditingCapture' + if (typeof type === "string") { + return describeBuiltInComponentFrame(type, source, ownerFn); } - }, - topTouchCancel: { - phasedRegistrationNames: { - bubbled: 'onTouchCancel', - captured: 'onTouchCancelCapture' + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense", source, ownerFn); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList", source, ownerFn); } - }, - topTouchEnd: { - phasedRegistrationNames: { - bubbled: 'onTouchEnd', - captured: 'onTouchEndCapture' + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render, source, ownerFn); + case REACT_MEMO_TYPE: + // Memo may contain any component type so we recursively resolve it. + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: + { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + // Lazy may contain any component type so we recursively resolve it. + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) {} + } + } } - }, - topTouchMove: { - phasedRegistrationNames: { - bubbled: 'onTouchMove', - captured: 'onTouchMoveCapture' - } - } - }, - directEventTypes: { - topTextInput: { - registrationName: 'onTextInput' - }, - topKeyPressSync: { - registrationName: 'onKeyPressSync' - }, - topScroll: { - registrationName: 'onScroll' - }, - topSelectionChange: { - registrationName: 'onSelectionChange' - }, - topChangeSync: { - registrationName: 'onChangeSync' + return ""; } - }, - validAttributes: Object.assign({ - fontSize: true, - fontWeight: true, - fontVariant: true, - textShadowOffset: { - diff: _$$_REQUIRE(_dependencyMap[0], "../../Utilities/differ/sizesDiffer") - }, - allowFontScaling: true, - fontStyle: true, - textTransform: true, - textAlign: true, - fontFamily: true, - lineHeight: true, - isHighlighted: true, - writingDirection: true, - textDecorationLine: true, - textShadowRadius: true, - letterSpacing: true, - textDecorationStyle: true, - textDecorationColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") - }, - color: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") - }, - maxFontSizeMultiplier: true, - textShadowColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") - }, - editable: true, - inputAccessoryViewID: true, - caretHidden: true, - enablesReturnKeyAutomatically: true, - placeholderTextColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") - }, - clearButtonMode: true, - keyboardType: true, - selection: true, - returnKeyType: true, - blurOnSubmit: true, - mostRecentEventCount: true, - scrollEnabled: true, - selectionColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") - }, - contextMenuHidden: true, - secureTextEntry: true, - placeholder: true, - autoCorrect: true, - multiline: true, - textContentType: true, - maxLength: true, - autoCapitalize: true, - keyboardAppearance: true, - passwordRules: true, - spellCheck: true, - selectTextOnFocus: true, - text: true, - clearTextOnFocus: true, - showSoftInputOnFocus: true, - autoFocus: true - }, (0, _$$_REQUIRE(_dependencyMap[2], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ - onChange: true, - onSelectionChange: true, - onContentSizeChange: true, - onScroll: true, - onChangeSync: true, - onKeyPressSync: true, - onTextInput: true - })) - }; - module.exports = RCTTextInputViewConfig; -},209,[188,159,210],"node_modules/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ConditionallyIgnoredEventHandlers = ConditionallyIgnoredEventHandlers; - exports.DynamicallyInjectedByGestureHandler = DynamicallyInjectedByGestureHandler; - exports.isIgnored = isIgnored; - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); - - var ignoredViewConfigProps = new WeakSet(); - - function DynamicallyInjectedByGestureHandler(object) { - ignoredViewConfigProps.add(object); - return object; - } - - function ConditionallyIgnoredEventHandlers(value) { - if (_Platform.default.OS === 'ios' && !(global.RN$ViewConfigEventValidAttributesDisabled === true)) { - return value; - } - return undefined; - } - function isIgnored(value) { - if (typeof value === 'object' && value != null) { - return ignoredViewConfigProps.has(value); - } - return false; - } -},210,[3,14],"node_modules/react-native/Libraries/NativeComponent/ViewConfigIgnore.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.get = get; - exports.getWithFallback_DEPRECATED = getWithFallback_DEPRECATED; - exports.setRuntimeConfigProvider = setRuntimeConfigProvider; - exports.unstable_hasStaticViewConfig = unstable_hasStaticViewConfig; - var StaticViewConfigValidator = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "./StaticViewConfigValidator")); - var _UIManager = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); - var _ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/ReactNativeViewConfigRegistry")); - var _getNativeComponentAttributes = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../ReactNative/getNativeComponentAttributes")); - var _verifyComponentAttributeEquivalence = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/verifyComponentAttributeEquivalence")); - var _invariant = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var getRuntimeConfig; - - function setRuntimeConfigProvider(runtimeConfigProvider) { - (0, _invariant.default)(getRuntimeConfig == null, 'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'); - getRuntimeConfig = runtimeConfigProvider; - } - - function get(name, viewConfigProvider) { - _ReactNativeViewConfigRegistry.default.register(name, function () { - var _getRuntimeConfig; - var _ref = (_getRuntimeConfig = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig : { - native: true, - strict: false, - verify: false - }, - native = _ref.native, - strict = _ref.strict, - verify = _ref.verify; - var viewConfig = native ? (0, _getNativeComponentAttributes.default)(name) : (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()); - if (verify) { - var nativeViewConfig = native ? viewConfig : (0, _getNativeComponentAttributes.default)(name); - var staticViewConfig = native ? (0, _$$_REQUIRE(_dependencyMap[8], "./ViewConfig").createViewConfig)(viewConfigProvider()) : viewConfig; - if (strict) { - var validationOutput = StaticViewConfigValidator.validate(name, nativeViewConfig, staticViewConfig); - if (validationOutput.type === 'invalid') { - console.error(StaticViewConfigValidator.stringifyValidationResult(name, validationOutput)); + var hasOwnProperty = Object.prototype.hasOwnProperty; + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); } - } else { - (0, _verifyComponentAttributeEquivalence.default)(nativeViewConfig, staticViewConfig); } } - return viewConfig; - }); - - return name; - } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + // $FlowFixMe This is okay but Flow doesn't know it. + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. - function getWithFallback_DEPRECATED(name, viewConfigProvider) { - if (getRuntimeConfig == null) { - if (hasNativeViewConfig(name)) { - return get(name, viewConfigProvider); - } - } else { - if (getRuntimeConfig(name) != null) { - return get(name, viewConfigProvider); + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== "function") { + // eslint-disable-next-line react-internal/prod-error-codes + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } } - } - var FallbackNativeComponent = function FallbackNativeComponent(props) { - return null; - }; - FallbackNativeComponent.displayName = "Fallback(" + name + ")"; - return FallbackNativeComponent; - } - function hasNativeViewConfig(name) { - (0, _invariant.default)(getRuntimeConfig == null, 'Unexpected invocation!'); - return _UIManager.default.getViewManagerConfig(name) != null; - } - - function unstable_hasStaticViewConfig(name) { - var _getRuntimeConfig2; - var _ref2 = (_getRuntimeConfig2 = getRuntimeConfig == null ? void 0 : getRuntimeConfig(name)) != null ? _getRuntimeConfig2 : { - native: true - }, - native = _ref2.native; - return !native; - } -},211,[212,3,213,199,219,232,17,36,235],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistry.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.stringifyValidationResult = stringifyValidationResult; - exports.validate = validate; - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); - - function validate(name, nativeViewConfig, staticViewConfig) { - var differences = []; - accumulateDifferences(differences, [], { - bubblingEventTypes: nativeViewConfig.bubblingEventTypes, - directEventTypes: nativeViewConfig.directEventTypes, - uiViewClassName: nativeViewConfig.uiViewClassName, - validAttributes: nativeViewConfig.validAttributes - }, { - bubblingEventTypes: staticViewConfig.bubblingEventTypes, - directEventTypes: staticViewConfig.directEventTypes, - uiViewClassName: staticViewConfig.uiViewClassName, - validAttributes: staticViewConfig.validAttributes - }); - if (differences.length === 0) { - return { - type: 'valid' - }; - } - return { - type: 'invalid', - differences: differences - }; - } - function stringifyValidationResult(name, validationResult) { - var differences = validationResult.differences; - return ["StaticViewConfigValidator: Invalid static view config for '" + name + "'.", ''].concat((0, _toConsumableArray2.default)(differences.map(function (difference) { - var type = difference.type, - path = difference.path; - switch (type) { - case 'missing': - return "- '" + path.join('.') + "' is missing."; - case 'unequal': - return "- '" + path.join('.') + "' is the wrong value."; - case 'unexpected': - return "- '" + path.join('.') + "' is present but not expected to be."; + var valueStack = []; + var fiberStack; + { + fiberStack = []; } - })), ['']).join('\n'); - } - function accumulateDifferences(differences, path, nativeObject, staticObject) { - for (var nativeKey in nativeObject) { - var nativeValue = nativeObject[nativeKey]; - if (!staticObject.hasOwnProperty(nativeKey)) { - differences.push({ - path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), - type: 'missing', - nativeValue: nativeValue - }); - continue; + var index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; } - var staticValue = staticObject[nativeKey]; - var nativeValueIfObject = ifObject(nativeValue); - if (nativeValueIfObject != null) { - var staticValueIfObject = ifObject(staticValue); - if (staticValueIfObject != null) { - path.push(nativeKey); - accumulateDifferences(differences, path, nativeValueIfObject, staticValueIfObject); - path.pop(); - continue; + function pop(cursor, fiber) { + if (index < 0) { + { + error("Unexpected pop."); + } + return; + } + { + if (fiber !== fiberStack[index]) { + error("Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; } + index--; } - if (nativeValue !== staticValue) { - differences.push({ - path: [].concat((0, _toConsumableArray2.default)(path), [nativeKey]), - type: 'unequal', - nativeValue: nativeValue, - staticValue: staticValue - }); + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; } - } - for (var staticKey in staticObject) { - if (!nativeObject.hasOwnProperty(staticKey) && !(0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").isIgnored)(staticObject[staticKey])) { - differences.push({ - path: [].concat((0, _toConsumableArray2.default)(path), [staticKey]), - type: 'unexpected', - staticValue: staticObject[staticKey] - }); + var warnedAboutMissingGetChildContext; + { + warnedAboutMissingGetChildContext = {}; } - } - } - function ifObject(value) { - return typeof value === 'object' && !Array.isArray(value) ? value : null; - } -},212,[3,6,210],"node_modules/react-native/Libraries/NativeComponent/StaticViewConfigValidator.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - var UIManager = global.RN$Bridgeless === true ? _$$_REQUIRE(_dependencyMap[0], "./BridgelessUIManager") : _$$_REQUIRE(_dependencyMap[1], "./PaperUIManager"); - module.exports = UIManager; -},213,[214,216],"node_modules/react-native/Libraries/ReactNative/UIManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + var emptyContextObject = {}; + { + Object.freeze(emptyContextObject); + } // A cursor to the current merged context object on the stack. - var errorMessageForMethod = function errorMessageForMethod(methodName) { - return "[ReactNative Architecture][JS] '" + methodName + "' is not available in the new React Native architecture."; - }; - module.exports = { - getViewManagerConfig: function getViewManagerConfig(viewManagerName) { - console.error(errorMessageForMethod('getViewManagerConfig') + 'Use hasViewManagerConfig instead. viewManagerName: ' + viewManagerName); - return null; - }, - hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { - return (0, _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable").unstable_hasComponent)(viewManagerName); - }, - getConstants: function getConstants() { - console.error(errorMessageForMethod('getConstants')); - return {}; - }, - getConstantsForViewManager: function getConstantsForViewManager(viewManagerName) { - console.error(errorMessageForMethod('getConstantsForViewManager')); - return {}; - }, - getDefaultEventTypes: function getDefaultEventTypes() { - console.error(errorMessageForMethod('getDefaultEventTypes')); - return []; - }, - lazilyLoadView: function lazilyLoadView(name) { - console.error(errorMessageForMethod('lazilyLoadView')); - return {}; - }, - createView: function createView(reactTag, viewName, rootTag, props) { - return console.error(errorMessageForMethod('createView')); - }, - updateView: function updateView(reactTag, viewName, props) { - return console.error(errorMessageForMethod('updateView')); - }, - focus: function focus(reactTag) { - return console.error(errorMessageForMethod('focus')); - }, - blur: function blur(reactTag) { - return console.error(errorMessageForMethod('blur')); - }, - findSubviewIn: function findSubviewIn(reactTag, point, callback) { - return console.error(errorMessageForMethod('findSubviewIn')); - }, - dispatchViewManagerCommand: function dispatchViewManagerCommand(reactTag, commandID, commandArgs) { - return console.error(errorMessageForMethod('dispatchViewManagerCommand')); - }, - measure: function measure(reactTag, callback) { - return console.error(errorMessageForMethod('measure')); - }, - measureInWindow: function measureInWindow(reactTag, callback) { - return console.error(errorMessageForMethod('measureInWindow')); - }, - viewIsDescendantOf: function viewIsDescendantOf(reactTag, ancestorReactTag, callback) { - return console.error(errorMessageForMethod('viewIsDescendantOf')); - }, - measureLayout: function measureLayout(reactTag, ancestorReactTag, errorCallback, callback) { - return console.error(errorMessageForMethod('measureLayout')); - }, - measureLayoutRelativeToParent: function measureLayoutRelativeToParent(reactTag, errorCallback, callback) { - return console.error(errorMessageForMethod('measureLayoutRelativeToParent')); - }, - setJSResponder: function setJSResponder(reactTag, blockNativeResponder) { - return console.error(errorMessageForMethod('setJSResponder')); - }, - clearJSResponder: function clearJSResponder() {}, - configureNextLayoutAnimation: function configureNextLayoutAnimation(config, callback, errorCallback) { - return console.error(errorMessageForMethod('configureNextLayoutAnimation')); - }, - removeSubviewsFromContainerWithID: function removeSubviewsFromContainerWithID(containerID) { - return console.error(errorMessageForMethod('removeSubviewsFromContainerWithID')); - }, - replaceExistingNonRootView: function replaceExistingNonRootView(reactTag, newReactTag) { - return console.error(errorMessageForMethod('replaceExistingNonRootView')); - }, - setChildren: function setChildren(containerTag, reactTags) { - return console.error(errorMessageForMethod('setChildren')); - }, - manageChildren: function manageChildren(containerTag, moveFromIndices, moveToIndices, addChildReactTags, addAtIndices, removeAtIndices) { - return console.error(errorMessageForMethod('manageChildren')); - }, - setLayoutAnimationEnabledExperimental: function setLayoutAnimationEnabledExperimental(enabled) { - console.error(errorMessageForMethod('setLayoutAnimationEnabledExperimental')); - }, - sendAccessibilityEvent: function sendAccessibilityEvent(reactTag, eventType) { - return console.error(errorMessageForMethod('sendAccessibilityEvent')); - }, - showPopupMenu: function showPopupMenu(reactTag, items, error, success) { - return console.error(errorMessageForMethod('showPopupMenu')); - }, - dismissPopupMenu: function dismissPopupMenu() { - return console.error(errorMessageForMethod('dismissPopupMenu')); - } - }; -},214,[215],"node_modules/react-native/Libraries/ReactNative/BridgelessUIManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.unstable_hasComponent = unstable_hasComponent; + var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. - var componentNameToExists = new Map(); + var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack. + // We use this to get access to the parent context after we have already + // pushed the next context provider, and now need to merge their contexts. - function unstable_hasComponent(name) { - var hasNativeComponent = componentNameToExists.get(name); - if (hasNativeComponent == null) { - if (global.__nativeComponentRegistry__hasComponent) { - hasNativeComponent = global.__nativeComponentRegistry__hasComponent(name); - componentNameToExists.set(name, hasNativeComponent); - } else { - throw "unstable_hasComponent('" + name + "'): Global function is not registered"; + var previousContext = emptyContextObject; + function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { + { + if (didPushOwnContextIfProvider && isContextProvider(Component)) { + // If the fiber is a context provider itself, when we read its context + // we may have already pushed its own child context on the stack. A context + // provider should not "see" its own child context. Therefore we read the + // previous (parent) context instead for a context provider. + return previousContext; + } + return contextStackCursor.current; + } } - } - return hasNativeComponent; - } -},215,[],"node_modules/react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeUIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeUIManager")); - var viewManagerConfigs = {}; - var triedLoadingConfig = new Set(); - var NativeUIManagerConstants = {}; - var isNativeUIManagerConstantsSet = false; - function _getConstants() { - if (!isNativeUIManagerConstantsSet) { - NativeUIManagerConstants = _NativeUIManager.default.getConstants(); - isNativeUIManagerConstantsSet = true; - } - return NativeUIManagerConstants; - } - function _getViewManagerConfig(viewManagerName) { - if (viewManagerConfigs[viewManagerName] === undefined && global.nativeCallSyncHook && - _NativeUIManager.default.getConstantsForViewManager) { - try { - viewManagerConfigs[viewManagerName] = _NativeUIManager.default.getConstantsForViewManager(viewManagerName); - } catch (e) { - console.error("NativeUIManager.getConstantsForViewManager('" + viewManagerName + "') threw an exception.", e); - viewManagerConfigs[viewManagerName] = null; + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } } - } - var config = viewManagerConfigs[viewManagerName]; - if (config) { - return config; - } + function getMaskedContext(workInProgress, unmaskedContext) { + { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + if (!contextTypes) { + return emptyContextObject; + } // Avoid recreating masked context unless unmasked context has changed. + // Failing to do this will result in unnecessary calls to componentWillReceiveProps. + // This may trigger infinite loops if componentWillReceiveProps calls setState. - if (!global.nativeCallSyncHook) { - return config; - } - if (_NativeUIManager.default.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) { - var result = _NativeUIManager.default.lazilyLoadView(viewManagerName); - triedLoadingConfig.add(viewManagerName); - if (result != null && result.viewConfig != null) { - _getConstants()[viewManagerName] = result.viewConfig; - lazifyViewManagerConfig(viewManagerName); - } - } - return viewManagerConfigs[viewManagerName]; - } + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + var context = {}; + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + { + var name = getComponentNameFromFiber(workInProgress) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name); + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // Context is created before the class component is instantiated so check for instance. - var UIManagerJS = Object.assign({}, _NativeUIManager.default, { - createView: function createView(reactTag, viewName, rootTag, props) { - if ("ios" === 'ios' && viewManagerConfigs[viewName] === undefined) { - _getViewManagerConfig(viewName); + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + return context; + } } - _NativeUIManager.default.createView(reactTag, viewName, rootTag, props); - }, - getConstants: function getConstants() { - return _getConstants(); - }, - getViewManagerConfig: function getViewManagerConfig(viewManagerName) { - return _getViewManagerConfig(viewManagerName); - }, - hasViewManagerConfig: function hasViewManagerConfig(viewManagerName) { - return _getViewManagerConfig(viewManagerName) != null; - } - }); - - _NativeUIManager.default.getViewManagerConfig = UIManagerJS.getViewManagerConfig; - function lazifyViewManagerConfig(viewName) { - var viewConfig = _getConstants()[viewName]; - viewManagerConfigs[viewName] = viewConfig; - if (viewConfig.Manager) { - _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Constants', { - get: function get() { - var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; - var constants = {}; - viewManager && Object.keys(viewManager).forEach(function (key) { - var value = viewManager[key]; - if (typeof value !== 'function') { - constants[key] = value; - } - }); - return constants; + function hasContextChanged() { + { + return didPerformWorkStackCursor.current; } - }); - _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(viewConfig, 'Commands', { - get: function get() { - var viewManager = _$$_REQUIRE(_dependencyMap[3], "../BatchedBridge/NativeModules")[viewConfig.Manager]; - var commands = {}; - var index = 0; - viewManager && Object.keys(viewManager).forEach(function (key) { - var value = viewManager[key]; - if (typeof value === 'function') { - commands[key] = index++; - } - }); - return commands; + } + function isContextProvider(type) { + { + var childContextTypes = type.childContextTypes; + return childContextTypes !== null && childContextTypes !== undefined; } - }); - } - } - - if ("ios" === 'ios') { - Object.keys(_getConstants()).forEach(function (viewName) { - lazifyViewManagerConfig(viewName); - }); - } else if (_getConstants().ViewManagerNames) { - _NativeUIManager.default.getConstants().ViewManagerNames.forEach(function (viewManagerName) { - _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { - get: function get() { - return _NativeUIManager.default.getConstantsForViewManager(viewManagerName); + } + function popContext(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); } - }); - }); - } - if (!global.nativeCallSyncHook) { - Object.keys(_getConstants()).forEach(function (viewManagerName) { - if (!_$$_REQUIRE(_dependencyMap[4], "./UIManagerProperties").includes(viewManagerName)) { - if (!viewManagerConfigs[viewManagerName]) { - viewManagerConfigs[viewManagerName] = _getConstants()[viewManagerName]; + } + function popTopLevelContextObject(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); } - _$$_REQUIRE(_dependencyMap[2], "../Utilities/defineLazyObjectProperty")(_NativeUIManager.default, viewManagerName, { - get: function get() { - console.warn("Accessing view manager configs directly off UIManager via UIManager['" + viewManagerName + "'] " + ("is no longer supported. Use UIManager.getViewManagerConfig('" + viewManagerName + "') instead.")); - return UIManagerJS.getViewManagerConfig(viewManagerName); + } + function pushTopLevelContextObject(fiber, context, didChange) { + { + if (contextStackCursor.current !== emptyContextObject) { + throw new Error("Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); } - }); + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } } - }); - } - module.exports = UIManagerJS; -},216,[3,217,30,18,218],"node_modules/react-native/Libraries/ReactNative/PaperUIManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('UIManager'); - exports.default = _default; -},217,[16],"node_modules/react-native/Libraries/ReactNative/NativeUIManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - module.exports = ['clearJSResponder', 'configureNextLayoutAnimation', 'createView', 'dismissPopupMenu', 'dispatchViewManagerCommand', 'findSubviewIn', 'getConstantsForViewManager', 'getDefaultEventTypes', 'manageChildren', 'measure', 'measureInWindow', 'measureLayout', 'measureLayoutRelativeToParent', 'removeRootView', 'removeSubviewsFromContainerWithID', 'replaceExistingNonRootView', 'sendAccessibilityEvent', 'setChildren', 'setJSResponder', 'setLayoutAnimationEnabledExperimental', 'showPopupMenu', 'updateView', 'viewIsDescendantOf', 'PopupMenu', 'LazyViewManagersEnabled', 'ViewManagerNames', 'StyleConstants', 'AccessibilityEventTypes', 'UIView', 'getViewManagerConfig', 'hasViewManagerConfig', 'blur', 'focus', 'genericBubblingEventTypes', 'genericDirectEventTypes', 'lazilyLoadView']; -},218,[],"node_modules/react-native/Libraries/ReactNative/UIManagerProperties.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function processChildContext(fiber, type, parentContext) { + { + var instance = fiber.stateNode; + var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future. + // It has only been added in Fiber to match the (unintentional) behavior in Stack. - 'use strict'; + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentNameFromFiber(fiber) || "Unknown"; + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + error("%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + var childContext = instance.getChildContext(); + for (var contextKey in childContext) { + if (!(contextKey in childContextTypes)) { + throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + } + { + var name = getComponentNameFromFiber(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name); + } + return assign({}, parentContext, childContext); + } + } + function pushContextProvider(workInProgress) { + { + var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity. + // If the instance does not exist yet, we will push null at first, + // and replace it on the stack later when invalidating the context. - function getNativeComponentAttributes(uiViewClassName) { - var _bubblingEventTypes, _directEventTypes; - var viewConfig = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(uiViewClassName); - _$$_REQUIRE(_dependencyMap[1], "invariant")(viewConfig != null && viewConfig.NativeProps != null, 'requireNativeComponent: "%s" was not found in the UIManager.', uiViewClassName); + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later. + // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. - var baseModuleName = viewConfig.baseModuleName, - bubblingEventTypes = viewConfig.bubblingEventTypes, - directEventTypes = viewConfig.directEventTypes; - var nativeProps = viewConfig.NativeProps; - bubblingEventTypes = (_bubblingEventTypes = bubblingEventTypes) != null ? _bubblingEventTypes : {}; - directEventTypes = (_directEventTypes = directEventTypes) != null ? _directEventTypes : {}; - while (baseModuleName) { - var baseModule = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getViewManagerConfig(baseModuleName); - if (!baseModule) { - baseModuleName = null; - } else { - bubblingEventTypes = Object.assign({}, baseModule.bubblingEventTypes, bubblingEventTypes); - directEventTypes = Object.assign({}, baseModule.directEventTypes, directEventTypes); - nativeProps = Object.assign({}, baseModule.NativeProps, nativeProps); - baseModuleName = baseModule.baseModuleName; + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } } - } - var validAttributes = {}; - for (var key in nativeProps) { - var typeName = nativeProps[key]; - var diff = getDifferForType(typeName); - var process = getProcessorForType(typeName); - - validAttributes[key] = diff == null ? process == null ? true : { - process: process - } : process == null ? { - diff: diff - } : { - diff: diff, - process: process - }; - } + function invalidateContextProvider(workInProgress, type, didChange) { + { + var instance = workInProgress.stateNode; + if (!instance) { + throw new Error("Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); + } + if (didChange) { + // Merge parent and own context. + // Skip this if we're not updating due to sCU. + // This avoids unnecessarily recomputing memoized values. + var mergedContext = processChildContext(workInProgress, type, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one. + // It is important to unwind the context in the reverse order. - validAttributes.style = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes"); - Object.assign(viewConfig, { - uiViewClassName: uiViewClassName, - validAttributes: validAttributes, - bubblingEventTypes: bubblingEventTypes, - directEventTypes: directEventTypes - }); - attachDefaultEventTypes(viewConfig); - return viewConfig; - } - function attachDefaultEventTypes(viewConfig) { - var constants = _$$_REQUIRE(_dependencyMap[0], "./UIManager").getConstants(); - if (constants.ViewManagerNames || constants.LazyViewManagersEnabled) { - viewConfig = merge(viewConfig, _$$_REQUIRE(_dependencyMap[0], "./UIManager").getDefaultEventTypes()); - } else { - viewConfig.bubblingEventTypes = merge(viewConfig.bubblingEventTypes, constants.genericBubblingEventTypes); - viewConfig.directEventTypes = merge(viewConfig.directEventTypes, constants.genericDirectEventTypes); - } - } + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed. - function merge(destination, source) { - if (!source) { - return destination; - } - if (!destination) { - return source; - } - for (var key in source) { - if (!source.hasOwnProperty(key)) { - continue; + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } } - var sourceValue = source[key]; - if (destination.hasOwnProperty(key)) { - var destinationValue = destination[key]; - if (typeof sourceValue === 'object' && typeof destinationValue === 'object') { - sourceValue = merge(destinationValue, sourceValue); + function findCurrentUnmaskedContext(fiber) { + { + // Currently this is only used with renderSubtreeIntoContainer; not sure if it + // makes sense elsewhere + if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { + throw new Error("Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var node = fiber; + do { + switch (node.tag) { + case HostRoot: + return node.stateNode.context; + case ClassComponent: + { + var Component = node.type; + if (isContextProvider(Component)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + break; + } + } + node = node.return; + } while (node !== null); + throw new Error("Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); } } - destination[key] = sourceValue; - } - return destination; - } - function getDifferForType(typeName) { - switch (typeName) { - case 'CATransform3D': - return _$$_REQUIRE(_dependencyMap[3], "../Utilities/differ/matricesDiffer"); - case 'CGPoint': - return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); - case 'CGSize': - return _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/sizesDiffer"); - case 'UIEdgeInsets': - return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); - case 'Point': - return _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/pointsDiffer"); - case 'EdgeInsets': - return _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer"); - } - return null; - } - function getProcessorForType(typeName) { - switch (typeName) { - case 'CGColor': - case 'UIColor': - return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor"); - case 'CGColorArray': - case 'UIColorArray': - return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); - case 'CGImage': - case 'UIImage': - case 'RCTImageSource': - return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); - case 'Color': - return _$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor"); - case 'ColorArray': - return _$$_REQUIRE(_dependencyMap[8], "../StyleSheet/processColorArray"); - case 'ImageSource': - return _$$_REQUIRE(_dependencyMap[9], "../Image/resolveAssetSource"); - } - return null; - } - module.exports = getNativeComponentAttributes; -},219,[213,17,185,220,221,188,222,159,223,224],"node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var matricesDiffer = function matricesDiffer(one, two) { - if (one === two) { - return false; - } - return !one || !two || one[12] !== two[12] || one[13] !== two[13] || one[14] !== two[14] || one[5] !== two[5] || one[10] !== two[10] || one[0] !== two[0] || one[1] !== two[1] || one[2] !== two[2] || one[3] !== two[3] || one[4] !== two[4] || one[6] !== two[6] || one[7] !== two[7] || one[8] !== two[8] || one[9] !== two[9] || one[11] !== two[11] || one[15] !== two[15]; - }; - module.exports = matricesDiffer; -},220,[],"node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + var LegacyRoot = 0; + var ConcurrentRoot = 1; - var dummyPoint = { - x: undefined, - y: undefined - }; - var pointsDiffer = function pointsDiffer(one, two) { - one = one || dummyPoint; - two = two || dummyPoint; - return one !== two && (one.x !== two.x || one.y !== two.y); - }; - module.exports = pointsDiffer; -},221,[],"node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare + ; + } - 'use strict'; + var objectIs = typeof Object.is === "function" ? Object.is : is; + var syncQueue = null; + var includesLegacySyncCallbacks = false; + var isFlushingSyncQueue = false; + function scheduleSyncCallback(callback) { + // Push this callback into an internal queue. We'll flush these either in + // the next tick, or earlier if something calls `flushSyncCallbackQueue`. + if (syncQueue === null) { + syncQueue = [callback]; + } else { + // Push onto existing queue. Don't need to schedule a callback because + // we already scheduled one when we created the queue. + syncQueue.push(callback); + } + } + function scheduleLegacySyncCallback(callback) { + includesLegacySyncCallbacks = true; + scheduleSyncCallback(callback); + } + function flushSyncCallbacksOnlyInLegacyMode() { + // Only flushes the queue if there's a legacy sync callback scheduled. + // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So + // it might make more sense for the queue to be a list of roots instead of a + // list of generic callbacks. Then we can have two: one for legacy roots, one + // for concurrent roots. And this method would only flush the legacy ones. + if (includesLegacySyncCallbacks) { + flushSyncCallbacks(); + } + } + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && syncQueue !== null) { + // Prevent re-entrance. + isFlushingSyncQueue = true; + var i = 0; + var previousUpdatePriority = getCurrentUpdatePriority(); + try { + var isSync = true; + var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases. - var dummyInsets = { - top: undefined, - left: undefined, - right: undefined, - bottom: undefined - }; - var insetsDiffer = function insetsDiffer(one, two) { - one = one || dummyInsets; - two = two || dummyInsets; - return one !== two && (one.top !== two.top || one.left !== two.left || one.right !== two.right || one.bottom !== two.bottom); - }; - module.exports = insetsDiffer; -},222,[],"node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + setCurrentUpdatePriority(DiscreteEventPriority); + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(isSync); + } while (callback !== null); + } + syncQueue = null; + includesLegacySyncCallbacks = false; + } catch (error) { + // If something throws, leave the remaining callbacks on the queue. + if (syncQueue !== null) { + syncQueue = syncQueue.slice(i + 1); + } // Resume flushing in the next tick - 'use strict'; + scheduleCallback(ImmediatePriority, flushSyncCallbacks); + throw error; + } finally { + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; + } + } + return null; + } - var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./processColor")); - var TRANSPARENT = 0; + // This is imported by the event replaying implementation in React DOM. It's + // in a separate file to break a circular dependency between the renderer and + // the reconciler. + function isRootDehydrated(root) { + var currentState = root.current.memoizedState; + return currentState.isDehydrated; + } - function processColorArray(colors) { - return colors == null ? null : colors.map(processColorElement); - } - function processColorElement(color) { - var value = (0, _processColor.default)(color); - if (value == null) { - console.error('Invalid value in color array:', color); - return TRANSPARENT; - } - return value; - } - module.exports = processColorArray; -},223,[3,159],"node_modules/react-native/Libraries/StyleSheet/processColorArray.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + // TODO: Use the unified fiber stack module instead of this local one? + // Intentionally not using it yet to derisk the initial implementation, because + // the way we push/pop these values is a bit unusual. If there's a mistake, I'd + // rather the ids be wrong than crash the whole reconciler. + var forkStack = []; + var forkStackIndex = 0; + var treeForkProvider = null; + var treeForkCount = 0; + var idStack = []; + var idStackIndex = 0; + var treeContextProvider = null; + var treeContextId = 1; + var treeContextOverflow = ""; + function popTreeContext(workInProgress) { + // Restore the previous values. + // This is a bit more complicated than other context-like modules in Fiber + // because the same Fiber may appear on the stack multiple times and for + // different reasons. We have to keep popping until the work-in-progress is + // no longer at the top of the stack. + while (workInProgress === treeForkProvider) { + treeForkProvider = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + treeForkCount = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + } + while (workInProgress === treeContextProvider) { + treeContextProvider = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextOverflow = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextId = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + } + } + var isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches + // due to earlier mismatches or a suspended fiber. - 'use strict'; + var didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary - var _customSourceTransformer, _serverURL, _scriptURL; - var _sourceCodeScriptURL; - function getSourceCodeScriptURL() { - if (_sourceCodeScriptURL) { - return _sourceCodeScriptURL; - } - var sourceCode = global.nativeExtensions && global.nativeExtensions.SourceCode; - if (!sourceCode) { - sourceCode = _$$_REQUIRE(_dependencyMap[0], "../NativeModules/specs/NativeSourceCode").default; - } - _sourceCodeScriptURL = sourceCode.getConstants().scriptURL; - return _sourceCodeScriptURL; - } - function getDevServerURL() { - if (_serverURL === undefined) { - var sourceCodeScriptURL = getSourceCodeScriptURL(); - var match = sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\/\/.*?\//); - if (match) { - _serverURL = match[0]; - } else { - _serverURL = null; + var hydrationErrors = null; + function didSuspendOrErrorWhileHydratingDEV() { + { + return didSuspendOrErrorDEV; + } } - } - return _serverURL; - } - function _coerceLocalScriptURL(scriptURL) { - if (scriptURL) { - if (scriptURL.startsWith('assets://')) { - return null; + function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) { + { + return false; + } } - scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1); - if (!scriptURL.includes('://')) { - scriptURL = 'file://' + scriptURL; + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + { + throw new Error("Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function prepareToHydrateHostTextInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + var shouldUpdate = hydrateTextInstance(); + } + function prepareToHydrateHostSuspenseInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + function popHydrationState(fiber) { + { + return false; + } + } + function upgradeHydrationErrorsToRecoverable() { + if (hydrationErrors !== null) { + // Successfully completed a forced client render. The errors that occurred + // during the hydration attempt are now recovered. We will log them in + // commit phase, once the entire tree has finished. + queueRecoverableErrors(hydrationErrors); + hydrationErrors = null; + } + } + function getIsHydrating() { + return isHydrating; + } + function queueHydrationError(error) { + if (hydrationErrors === null) { + hydrationErrors = [error]; + } else { + hydrationErrors.push(error); + } + } + var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + var NoTransition = null; + function requestCurrentTransition() { + return ReactCurrentBatchConfig.transition; } - } - return scriptURL; - } - function getScriptURL() { - if (_scriptURL === undefined) { - _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL()); - } - return _scriptURL; - } - function setCustomSourceTransformer(transformer) { - _customSourceTransformer = transformer; - } - - function resolveAssetSource(source) { - if (typeof source === 'object') { - return source; - } - var asset = _$$_REQUIRE(_dependencyMap[1], "@react-native/assets/registry").getAssetByID(source); - if (!asset) { - return null; - } - var resolver = new (_$$_REQUIRE(_dependencyMap[2], "./AssetSourceResolver"))(getDevServerURL(), getScriptURL(), asset); - if (_customSourceTransformer) { - return _customSourceTransformer(resolver); - } - return resolver.defaultAsset(); - } - module.exports = resolveAssetSource; - module.exports.pickScale = _$$_REQUIRE(_dependencyMap[3], "./AssetUtils").pickScale; - module.exports.setCustomSourceTransformer = setCustomSourceTransformer; -},224,[67,225,226,227],"node_modules/react-native/Libraries/Image/resolveAssetSource.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var assets = []; - function registerAsset(asset) { - return assets.push(asset); - } - function getAssetByID(assetId) { - return assets[assetId - 1]; - } - module.exports = { - registerAsset: registerAsset, - getAssetByID: getAssetByID - }; -},225,[],"node_modules/@react-native/assets/registry.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - function getScaledAssetPath(asset) { - var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()); - var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; - var assetDir = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getBasePath(asset); - return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type; - } + /** + * Performs equality by iterating through keys on an object and returning false + * when any key has values which are not strictly equal between the arguments. + * Returns true when the values of all keys are strictly equal. + */ - function getAssetPathInDrawableFolder(asset) { - var scale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()); - var drawbleFolder = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceFolderName(asset, scale); - var fileName = _$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceIdentifier(asset); - return drawbleFolder + '/' + fileName + '.' + asset.type; - } - var AssetSourceResolver = function () { + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) { + return true; + } + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + if (keysA.length !== keysB.length) { + return false; + } // Test for A's keys different from B. - function AssetSourceResolver(serverUrl, jsbundleUrl, asset) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AssetSourceResolver); - this.serverUrl = serverUrl; - this.jsbundleUrl = jsbundleUrl; - this.asset = asset; - } - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AssetSourceResolver, [{ - key: "isLoadedFromServer", - value: function isLoadedFromServer() { - return !!this.serverUrl; + for (var i = 0; i < keysA.length; i++) { + var currentKey = keysA[i]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) { + return false; + } + } + return true; } - }, { - key: "isLoadedFromFileSystem", - value: function isLoadedFromFileSystem() { - return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://')); + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type, source, owner); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy", source, owner); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense", source, owner); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList", source, owner); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type, source, owner); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render, source, owner); + case ClassComponent: + return describeClassComponentFrame(fiber.type, source, owner); + default: + return ""; + } } - }, { - key: "defaultAsset", - value: function defaultAsset() { - if (this.isLoadedFromServer()) { - return this.assetServerURL(); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + var node = workInProgress; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } - if ("ios" === 'android') { - return this.isLoadedFromFileSystem() ? this.drawableFolderInBundle() : this.resourceIdentifierWithoutScale(); - } else { - return this.scaledAssetURLNearBundle(); + } + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } } + return null; } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } // Safe because if current fiber exists, we are reconciling, + // and it is guaranteed to be the work-in-progress version. - }, { - key: "assetServerURL", - value: - function assetServerURL() { - _$$_REQUIRE(_dependencyMap[5], "invariant")(!!this.serverUrl, 'need server to load from'); - return this.fromSource(this.serverUrl + getScaledAssetPath(this.asset) + '?platform=' + "ios" + '&hash=' + this.asset.hash); + return getStackByFiberInDevAndProd(current); + } } - - }, { - key: "scaledAssetPath", - value: - function scaledAssetPath() { - return this.fromSource(getScaledAssetPath(this.asset)); + function resetCurrentFiber() { + { + ReactDebugCurrentFrame$1.getCurrentStack = null; + current = null; + isRendering = false; + } } - - }, { - key: "scaledAssetURLNearBundle", - value: - function scaledAssetURLNearBundle() { - var path = this.jsbundleUrl || 'file://'; - return this.fromSource( - path + getScaledAssetPath(this.asset).replace(/\.\.\//g, '_')); + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } } - - }, { - key: "resourceIdentifierWithoutScale", - value: - function resourceIdentifierWithoutScale() { - _$$_REQUIRE(_dependencyMap[5], "invariant")("ios" === 'android', 'resource identifiers work on Android'); - return this.fromSource(_$$_REQUIRE(_dependencyMap[2], "@react-native/assets/path-support").getAndroidResourceIdentifier(this.asset)); + function getCurrentFiber() { + { + return current; + } } - - }, { - key: "drawableFolderInBundle", - value: - function drawableFolderInBundle() { - var path = this.jsbundleUrl || 'file://'; - return this.fromSource(path + getAssetPathInDrawableFolder(this.asset)); + function setIsRendering(rendering) { + { + isRendering = rendering; + } } - }, { - key: "fromSource", - value: function fromSource(source) { - return { - __packager_asset: true, - width: this.asset.width, - height: this.asset.height, - uri: source, - scale: _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale(this.asset.scales, _$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio").get()) + var ReactStrictModeWarnings = { + recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, + flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, + recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, + flushLegacyContextWarning: function flushLegacyContextWarning() {}, + discardPendingWarnings: function discardPendingWarnings() {} + }; + { + var findStrictRoot = function findStrictRoot(fiber) { + var maybeStrictRoot = null; + var node = fiber; + while (node !== null) { + if (node.mode & StrictLegacyMode) { + maybeStrictRoot = node; + } + node = node.return; + } + return maybeStrictRoot; }; - } - }]); - return AssetSourceResolver; - }(); - AssetSourceResolver.pickScale = _$$_REQUIRE(_dependencyMap[0], "./AssetUtils").pickScale; - module.exports = AssetSourceResolver; -},226,[227,228,231,12,13,17],"node_modules/react-native/Libraries/Image/AssetSourceResolver.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getUrlCacheBreaker = getUrlCacheBreaker; - exports.pickScale = pickScale; - exports.setUrlCacheBreaker = setUrlCacheBreaker; - var _PixelRatio = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/PixelRatio")); + var setToSortedString = function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + }; + var pendingComponentWillMountWarnings = []; + var pendingUNSAFE_ComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about. - var cacheBreaker; - var warnIfCacheBreakerUnset = true; - function pickScale(scales, deviceScale) { - if (deviceScale == null) { - deviceScale = _PixelRatio.default.get(); - } - for (var i = 0; i < scales.length; i++) { - if (scales[i] >= deviceScale) { - return scales[i]; - } - } + var didWarnAboutUnsafeLifecycles = new Set(); + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + // Dedupe strategy: Warn once per component. + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + if (typeof instance.componentWillMount === "function" && + // Don't warn about react-lifecycles-compat polyfilled components. + instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === "function") { + pendingUNSAFE_ComponentWillMountWarnings.push(fiber); + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === "function") { + pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === "function") { + pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); + } + }; + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + // We do an initial pass to gather component names + var componentWillMountUniqueNames = new Set(); + if (pendingComponentWillMountWarnings.length > 0) { + pendingComponentWillMountWarnings.forEach(function (fiber) { + componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillMountWarnings = []; + } + var UNSAFE_componentWillMountUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { + pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) { + UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillMountWarnings = []; + } + var componentWillReceivePropsUniqueNames = new Set(); + if (pendingComponentWillReceivePropsWarnings.length > 0) { + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillReceivePropsWarnings = []; + } + var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { + pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) { + UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + } + var componentWillUpdateUniqueNames = new Set(); + if (pendingComponentWillUpdateWarnings.length > 0) { + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillUpdateWarnings = []; + } + var UNSAFE_componentWillUpdateUniqueNames = new Set(); + if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { + pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) { + UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillUpdateWarnings = []; + } // Finally, we flush all the warnings + // UNSAFE_ ones before the deprecated ones, since they'll be 'louder' - return scales[scales.length - 1] || 1; - } - function setUrlCacheBreaker(appendage) { - cacheBreaker = appendage; - } - function getUrlCacheBreaker() { - if (cacheBreaker == null) { - if (__DEV__ && warnIfCacheBreakerUnset) { - warnIfCacheBreakerUnset = false; - console.warn('AssetUtils.getUrlCacheBreaker: Cache breaker value is unset'); - } - return ''; - } - return cacheBreaker; - } -},227,[3,228],"node_modules/react-native/Libraries/Image/AssetUtils.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + if (UNSAFE_componentWillMountUniqueNames.size > 0) { + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames); + } + if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames); + } + if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + error("Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2); + } + if (componentWillMountUniqueNames.size > 0) { + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + warn("componentWillMount has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames3); + } + if (componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + warn("componentWillReceiveProps has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames4); + } + if (componentWillUpdateUniqueNames.size > 0) { + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + warn("componentWillUpdate has been renamed, and is not recommended for use. " + "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + "`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n" + "\nPlease update the following components: %s", _sortedNames5); + } + }; + var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about. - 'use strict'; + var didWarnAboutLegacyContext = new Set(); + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + if (strictRoot === null) { + error("Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } // Dedup strategy: Warn once per component. - var PixelRatio = function () { - function PixelRatio() { - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, PixelRatio); - } - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(PixelRatio, null, [{ - key: "get", - value: - function get() { - return _$$_REQUIRE(_dependencyMap[2], "./Dimensions").get('window').scale; + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + warningsForRoot.push(fiber); + } + }; + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + if (fiberArray.length === 0) { + return; + } + var firstFiber = fiberArray[0]; + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + try { + setCurrentFiber(firstFiber); + error("Legacy context API has been detected within a strict-mode tree." + "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames); + } finally { + resetCurrentFiber(); + } + }); + }; + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingUNSAFE_ComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUNSAFE_ComponentWillUpdateWarnings = []; + pendingLegacyContextWarning = new Map(); + }; } - }, { - key: "getFontScale", - value: - function getFontScale() { - return _$$_REQUIRE(_dependencyMap[2], "./Dimensions").get('window').fontScale || PixelRatio.get(); - } + /* + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol + * and Temporal.* types. See https://github.com/facebook/react/pull/22064. + * + * The functions in this module will throw an easier-to-understand, + * easier-to-debug exception with a clear errors message message explaining the + * problem. (Instead of a confusing exception thrown inside the implementation + * of the `value` object). + */ + // $FlowFixMe only called in DEV, so void return is not possible. + function typeName(value) { + { + // toStringTag is needed for namespaced types like Temporal.Instant + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } // $FlowFixMe only called in DEV, so void return is not possible. - }, { - key: "getPixelSizeForLayoutSize", - value: - function getPixelSizeForLayoutSize(layoutSize) { - return Math.round(layoutSize * PixelRatio.get()); + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } } - - }, { - key: "roundToNearestPixel", - value: - function roundToNearestPixel(layoutSize) { - var ratio = PixelRatio.get(); - return Math.round(layoutSize * ratio) / ratio; + function testStringCoercion(value) { + // If you ended up here by following an exception call stack, here's what's + // happened: you supplied an object or symbol value to React (as a prop, key, + // DOM attribute, CSS property, string ref, etc.) and when React tried to + // coerce it to a string using `'' + value`, an exception was thrown. + // + // The most common types that will cause this exception are `Symbol` instances + // and Temporal objects like `Temporal.Instant`. But any object that has a + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this + // exception. (Library authors do this to prevent users from using built-in + // numeric operators like `+` or comparison operators like `>=` because custom + // methods are needed to perform accurate arithmetic or comparison.) + // + // To fix the problem, coerce this object or symbol value to a string before + // passing it to React. The most reliable way is usually `String(value)`. + // + // To find which value is throwing, check the browser or debugger console. + // Before this exception was thrown, there should be `console.error` output + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the + // problem and how that type was used: key, atrribute, input value prop, etc. + // In most cases, this console output also shows the component and its + // ancestor components where the exception happened. + // + // eslint-disable-next-line react-internal/safe-string-coercion + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) + } + } } - }, { - key: "startDetecting", - value: - function startDetecting() {} - }]); - return PixelRatio; - }(); - module.exports = PixelRatio; -},228,[12,13,229],"node_modules/react-native/Libraries/Utilities/PixelRatio.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../vendor/emitter/EventEmitter")); - var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../EventEmitter/RCTDeviceEventEmitter")); - var _NativeDeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativeDeviceInfo")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); - - var eventEmitter = new _EventEmitter.default(); - var dimensionsInitialized = false; - var dimensions; - var Dimensions = function () { - function Dimensions() { - (0, _classCallCheck2.default)(this, Dimensions); - } - (0, _createClass2.default)(Dimensions, null, [{ - key: "get", - value: - function get(dim) { - (0, _invariant.default)(dimensions[dim], 'No dimension set for key ' + dim); - return dimensions[dim]; + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s." + " This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); // throw (to help callers find troubleshooting comments) + } + } } - }, { - key: "set", - value: - function set(dims) { - var screen = dims.screen, - window = dims.window; - var windowPhysicalPixels = dims.windowPhysicalPixels; - if (windowPhysicalPixels) { - window = { - width: windowPhysicalPixels.width / windowPhysicalPixels.scale, - height: windowPhysicalPixels.height / windowPhysicalPixels.scale, - scale: windowPhysicalPixels.scale, - fontScale: windowPhysicalPixels.fontScale - }; + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + // Resolve default props. Taken from ReactElement + var props = assign({}, baseProps); + var defaultProps = Component.defaultProps; + for (var propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + return props; } - var screenPhysicalPixels = dims.screenPhysicalPixels; - if (screenPhysicalPixels) { - screen = { - width: screenPhysicalPixels.width / screenPhysicalPixels.scale, - height: screenPhysicalPixels.height / screenPhysicalPixels.scale, - scale: screenPhysicalPixels.scale, - fontScale: screenPhysicalPixels.fontScale - }; - } else if (screen == null) { - screen = window; + return baseProps; + } + var valueCursor = createCursor(null); + var rendererSigil; + { + // Use this to detect multiple renderers using the same context + rendererSigil = {}; + } + var currentlyRenderingFiber = null; + var lastContextDependency = null; + var lastFullyObservedContext = null; + var isDisallowedContextReadInDEV = false; + function resetContextDependencies() { + // This is called right before React yields execution, to ensure `readContext` + // cannot be called outside the render phase. + currentlyRenderingFiber = null; + lastContextDependency = null; + lastFullyObservedContext = null; + { + isDisallowedContextReadInDEV = false; } - dimensions = { - window: window, - screen: screen - }; - if (dimensionsInitialized) { - eventEmitter.emit('change', dimensions); - } else { - dimensionsInitialized = true; + } + function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; } } - - }, { - key: "addEventListener", - value: - function addEventListener(type, handler) { - (0, _invariant.default)(type === 'change', 'Trying to subscribe to unknown event: "%s"', type); - return eventEmitter.addListener(type, handler); + function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } } - }]); - return Dimensions; - }(); - var initialDims = global.nativeExtensions && global.nativeExtensions.DeviceInfo && global.nativeExtensions.DeviceInfo.Dimensions; - if (!initialDims) { - _RCTDeviceEventEmitter.default.addListener('didUpdateDimensions', function (update) { - Dimensions.set(update); - }); - initialDims = _NativeDeviceInfo.default.getConstants().Dimensions; - } - Dimensions.set(initialDims); - module.exports = Dimensions; -},229,[3,12,13,5,4,230,17],"node_modules/react-native/Libraries/Utilities/Dimensions.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var NativeModule = TurboModuleRegistry.getEnforcing('DeviceInfo'); - var constants = null; - var NativeDeviceInfo = { - getConstants: function getConstants() { - if (constants == null) { - constants = NativeModule.getConstants(); + function pushProvider(providerFiber, context, nextValue) { + { + push(valueCursor, context._currentValue, providerFiber); + context._currentValue = nextValue; + { + if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { + error("Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported."); + } + context._currentRenderer = rendererSigil; + } + } } - return constants; - } - }; - var _default = NativeDeviceInfo; - exports.default = _default; -},230,[16],"node_modules/react-native/Libraries/Utilities/NativeDeviceInfo.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + function popProvider(context, providerFiber) { + var currentValue = valueCursor.current; + pop(valueCursor, providerFiber); + { + { + context._currentValue = currentValue; + } + } + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + // Update the child lanes of all the ancestors, including the alternates. + var node = parent; + while (node !== null) { + var alternate = node.alternate; + if (!isSubsetOfLanes(node.childLanes, renderLanes)) { + node.childLanes = mergeLanes(node.childLanes, renderLanes); + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); + } + if (node === propagationRoot) { + break; + } + node = node.return; + } + { + if (node !== propagationRoot) { + error("Expected to find the propagation root when scheduling context work. " + "This error is likely caused by a bug in React. Please file an issue."); + } + } + } + function propagateContextChange(workInProgress, context, renderLanes) { + { + propagateContextChange_eager(workInProgress, context, renderLanes); + } + } + function propagateContextChange_eager(workInProgress, context, renderLanes) { + var fiber = workInProgress.child; + if (fiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + fiber.return = workInProgress; + } + while (fiber !== null) { + var nextFiber = void 0; // Visit this fiber. - var androidScaleSuffix = { - '0.75': 'ldpi', - '1': 'mdpi', - '1.5': 'hdpi', - '2': 'xhdpi', - '3': 'xxhdpi', - '4': 'xxxhdpi' - }; + var list = fiber.dependencies; + if (list !== null) { + nextFiber = fiber.child; + var dependency = list.firstContext; + while (dependency !== null) { + // Check if the context matches. + if (dependency.context === context) { + // Match! Schedule an update on this fiber. + if (fiber.tag === ClassComponent) { + // Schedule a force update on the work-in-progress. + var lane = pickArbitraryLane(renderLanes); + var update = createUpdate(NoTimestamp, lane); + update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the + // update to the current fiber, too, which means it will persist even if + // this render is thrown away. Since it's a race condition, not sure it's + // worth fixing. + // Inlined `enqueueUpdate` to remove interleaved update check - function getAndroidAssetSuffix(scale) { - if (scale.toString() in androidScaleSuffix) { - return androidScaleSuffix[scale.toString()]; - } - throw new Error('no such scale ' + scale.toString()); - } + var updateQueue = fiber.updateQueue; + if (updateQueue === null) ;else { + var sharedQueue = updateQueue.shared; + var pending = sharedQueue.pending; + if (pending === null) { + // This is the first update. Create a circular list. + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + } + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too. - var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'png', 'svg', 'webp', 'xml']); - function getAndroidResourceFolderName(asset, scale) { - if (!drawableFileTypes.has(asset.type)) { - return 'raw'; - } - var suffix = getAndroidAssetSuffix(scale); - if (!suffix) { - throw new Error("Don't know which android drawable suffix to use for scale: " + scale + '\nAsset: ' + JSON.stringify(asset, null, '\t') + '\nPossible scales are:' + JSON.stringify(androidScaleSuffix, null, '\t')); - } - return 'drawable-' + suffix; - } - function getAndroidResourceIdentifier(asset) { - return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, ''); - } + list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the + // dependency list. - function getBasePath(asset) { - var basePath = asset.httpServerLocation; - return basePath.startsWith('/') ? basePath.substr(1) : basePath; - } - module.exports = { - getAndroidResourceFolderName: getAndroidResourceFolderName, - getAndroidResourceIdentifier: getAndroidResourceIdentifier, - getBasePath: getBasePath - }; -},231,[],"node_modules/@react-native/assets/path-support.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = verifyComponentAttributeEquivalence; - exports.getConfigWithoutViewProps = getConfigWithoutViewProps; - exports.stringifyViewConfig = stringifyViewConfig; - var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../NativeComponent/PlatformBaseViewConfig")); + break; + } + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + // Don't scan deeper if this is a matching provider + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + } else if (fiber.tag === DehydratedFragment) { + // If a dehydrated suspense boundary is in this subtree, we don't know + // if it will have any context consumers in it. The best we can do is + // mark it as having updates. + var parentSuspense = fiber.return; + if (parentSuspense === null) { + throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); + } + parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes); + var _alternate = parentSuspense.alternate; + if (_alternate !== null) { + _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes); + } // This is intentionally passing this fiber as the parent + // because we want to schedule this fiber as having work + // on its children. We'll use the childLanes on + // this fiber to indicate that a context has changed. - var IGNORED_KEYS = ['transform', 'hitSlop']; + scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress); + nextFiber = fiber.sibling; + } else { + // Traverse down. + nextFiber = fiber.child; + } + if (nextFiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + nextFiber.return = fiber; + } else { + // No child. Traverse to next sibling. + nextFiber = fiber; + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + // We're back to the root of this subtree. Exit. + nextFiber = null; + break; + } + var sibling = nextFiber.sibling; + if (sibling !== null) { + // Set the return pointer of the sibling to the work-in-progress fiber. + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } // No more siblings. Traverse up. - function verifyComponentAttributeEquivalence(nativeViewConfig, staticViewConfig) { - for (var prop of ['validAttributes', 'bubblingEventTypes', 'directEventTypes']) { - var diff = Object.keys(lefthandObjectDiff(nativeViewConfig[prop], staticViewConfig[prop])); - if (diff.length > 0) { - var _staticViewConfig$uiV; - var name = (_staticViewConfig$uiV = staticViewConfig.uiViewClassName) != null ? _staticViewConfig$uiV : nativeViewConfig.uiViewClassName; - console.error("'" + name + "' has a view config that does not match native. " + ("'" + prop + "' is missing: " + diff.join(', '))); + nextFiber = nextFiber.return; + } + } + fiber = nextFiber; + } } - } - } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastContextDependency = null; + lastFullyObservedContext = null; + var dependencies = workInProgress.dependencies; + if (dependencies !== null) { + { + var firstContext = dependencies.firstContext; + if (firstContext !== null) { + if (includesSomeLane(dependencies.lanes, renderLanes)) { + // Context list has a pending update. Mark that this fiber performed work. + markWorkInProgressReceivedUpdate(); + } // Reset the work-in-progress list - function lefthandObjectDiff(leftObj, rightObj) { - var differentKeys = {}; - function compare(leftItem, rightItem, key) { - if (typeof leftItem !== typeof rightItem && leftItem != null) { - differentKeys[key] = rightItem; - return; - } - if (typeof leftItem === 'object') { - var objDiff = lefthandObjectDiff(leftItem, rightItem); - if (Object.keys(objDiff).length > 1) { - differentKeys[key] = objDiff; + dependencies.firstContext = null; + } + } } - return; } - if (leftItem !== rightItem) { - differentKeys[key] = rightItem; - return; + function _readContext(context) { + { + // This warning would fire if you read context inside a Hook like useMemo. + // Unlike the class check below, it's not enforced in production for perf. + if (isDisallowedContextReadInDEV) { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } + } + var value = context._currentValue; + if (lastFullyObservedContext === context) ;else { + var contextItem = { + context: context, + memoizedValue: value, + next: null + }; + if (lastContextDependency === null) { + if (currentlyRenderingFiber === null) { + throw new Error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + } // This is the first dependency for this component. Create a new list. + + lastContextDependency = contextItem; + currentlyRenderingFiber.dependencies = { + lanes: NoLanes, + firstContext: contextItem + }; + } else { + // Append a new context item. + lastContextDependency = lastContextDependency.next = contextItem; + } + } + return value; } - } - for (var key in leftObj) { - if (IGNORED_KEYS.includes(key)) { - continue; + + // render. When this render exits, either because it finishes or because it is + // interrupted, the interleaved updates will be transferred onto the main part + // of the queue. + + var concurrentQueues = null; + function pushConcurrentUpdateQueue(queue) { + if (concurrentQueues === null) { + concurrentQueues = [queue]; + } else { + concurrentQueues.push(queue); + } + } + function finishQueueingConcurrentUpdates() { + // Transfer the interleaved updates onto the main queue. Each queue has a + // `pending` field and an `interleaved` field. When they are not null, they + // point to the last node in a circular linked list. We need to append the + // interleaved list to the end of the pending list by joining them into a + // single, circular list. + if (concurrentQueues !== null) { + for (var i = 0; i < concurrentQueues.length; i++) { + var queue = concurrentQueues[i]; + var lastInterleavedUpdate = queue.interleaved; + if (lastInterleavedUpdate !== null) { + queue.interleaved = null; + var firstInterleavedUpdate = lastInterleavedUpdate.next; + var lastPendingUpdate = queue.pending; + if (lastPendingUpdate !== null) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + lastInterleavedUpdate.next = firstPendingUpdate; + } + queue.pending = lastInterleavedUpdate; + } + } + concurrentQueues = null; + } } - if (!rightObj) { - differentKeys[key] = {}; - } else if (leftObj.hasOwnProperty(key)) { - compare(leftObj[key], rightObj[key], key); + function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. + + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); } - } - return differentKeys; - } - function getConfigWithoutViewProps(viewConfig, propName) { - if (!viewConfig[propName]) { - return {}; - } - return Object.keys(viewConfig[propName]).filter(function (prop) { - return !_PlatformBaseViewConfig.default[propName][prop]; - }).reduce(function (obj, prop) { - obj[prop] = viewConfig[propName][prop]; - return obj; - }, {}); - } - function stringifyViewConfig(viewConfig) { - return JSON.stringify(viewConfig, function (key, val) { - if (typeof val === 'function') { - return "\u0192 " + val.name; + function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. + + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; } - return val; - }, 2); - } -},232,[3,233],"node_modules/react-native/Libraries/Utilities/verifyComponentAttributeEquivalence.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _BaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./BaseViewConfig")); + function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + // This is the first update. Create a circular list. + update.next = update; // At the end of the current render, this queue's interleaved updates will + // be transferred to the pending queue. - var PlatformBaseViewConfig = _BaseViewConfig.default; + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function enqueueConcurrentRenderForLane(fiber, lane) { + return markUpdateLaneFromFiberToRoot(fiber, lane); + } // Calling this function outside this module should only be done for backwards + // compatibility and should always be accompanied by a warning. - var _default = PlatformBaseViewConfig; - exports.default = _default; -},233,[3,234],"node_modules/react-native/Libraries/NativeComponent/PlatformBaseViewConfig.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/ReactNativeStyleAttributes")); + var unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot; + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + // Update the source fiber's lanes + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); + var alternate = sourceFiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, lane); + } + { + if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } // Walk the parent path to the root and update the child lanes. - var bubblingEventTypes = { - topPress: { - phasedRegistrationNames: { - bubbled: 'onPress', - captured: 'onPressCapture' + var node = sourceFiber; + var parent = sourceFiber.return; + while (parent !== null) { + parent.childLanes = mergeLanes(parent.childLanes, lane); + alternate = parent.alternate; + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, lane); + } else { + { + if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + } + node = parent; + parent = parent.return; + } + if (node.tag === HostRoot) { + var root = node.stateNode; + return root; + } else { + return null; + } } - }, - topChange: { - phasedRegistrationNames: { - bubbled: 'onChange', - captured: 'onChangeCapture' + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`. + // It should only be read right after calling `processUpdateQueue`, via + // `checkHasForceUpdateAfterProcessing`. + + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate; + var currentlyProcessingQueue; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; } - }, - topFocus: { - phasedRegistrationNames: { - bubbled: 'onFocus', - captured: 'onFocusCapture' + function initializeUpdateQueue(fiber) { + var queue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: NoLanes + }, + effects: null + }; + fiber.updateQueue = queue; } - }, - topBlur: { - phasedRegistrationNames: { - bubbled: 'onBlur', - captured: 'onBlurCapture' + function cloneUpdateQueue(current, workInProgress) { + // Clone the update queue from current. Unless it's already a clone. + var queue = workInProgress.updateQueue; + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + var clone = { + baseState: currentQueue.baseState, + firstBaseUpdate: currentQueue.firstBaseUpdate, + lastBaseUpdate: currentQueue.lastBaseUpdate, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = clone; + } } - }, - 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' - } - }, - 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: true - } - }, - topPointerLeave: { - phasedRegistrationNames: { - captured: 'onPointerLeaveCapture', - bubbled: 'onPointerLeave', - skipBubbling: true - } - }, - topPointerOver: { - phasedRegistrationNames: { - captured: 'onPointerOverCapture', - bubbled: 'onPointerOver' + function createUpdate(eventTime, lane) { + var update = { + eventTime: eventTime, + lane: lane, + tag: UpdateState, + payload: null, + callback: null, + next: null + }; + return update; } - }, - topPointerOut: { - phasedRegistrationNames: { - captured: 'onPointerOutCapture', - bubbled: 'onPointerOut' + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + // Only occurs if the fiber has been unmounted. + return null; + } + var sharedQueue = updateQueue.shared; + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error("An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; + } + } + if (isUnsafeClassRenderPhaseUpdate()) { + // This is an unsafe render phase update. Add directly to the update + // queue so we can process it immediately during the current render. + var pending = sharedQueue.pending; + if (pending === null) { + // This is the first update. Create a circular list. + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering + // this fiber. This is for backwards compatibility in the case where you + // update a different component during render phase than the one that is + // currently renderings (a pattern that is accompanied by a warning). + + return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane); + } else { + return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane); + } } - } - }; - var directEventTypes = { - topAccessibilityAction: { - registrationName: 'onAccessibilityAction' - }, - topAccessibilityTap: { - registrationName: 'onAccessibilityTap' - }, - topMagicTap: { - registrationName: 'onMagicTap' - }, - topAccessibilityEscape: { - registrationName: 'onAccessibilityEscape' - }, - topLayout: { - registrationName: 'onLayout' - }, - onGestureHandlerEvent: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ - registrationName: 'onGestureHandlerEvent' - }), - onGestureHandlerStateChange: (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").DynamicallyInjectedByGestureHandler)({ - registrationName: 'onGestureHandlerStateChange' - }) - }; - var validAttributesForNonEventProps = { - accessible: true, - accessibilityActions: true, - accessibilityLabel: true, - accessibilityHint: true, - accessibilityLanguage: true, - accessibilityValue: true, - accessibilityViewIsModal: true, - accessibilityElementsHidden: true, - accessibilityIgnoresInvertColors: true, - testID: true, - backgroundColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - backfaceVisibility: true, - opacity: true, - shadowColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - shadowOffset: { - diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/sizesDiffer") - }, - shadowOpacity: true, - shadowRadius: true, - needsOffscreenAlphaCompositing: true, - overflow: true, - shouldRasterizeIOS: true, - transform: { - diff: _$$_REQUIRE(_dependencyMap[5], "../Utilities/differ/matricesDiffer") - }, - accessibilityRole: true, - accessibilityState: true, - nativeID: true, - pointerEvents: true, - removeClippedSubviews: true, - borderRadius: true, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderWidth: true, - borderStyle: true, - hitSlop: { - diff: _$$_REQUIRE(_dependencyMap[6], "../Utilities/differ/insetsDiffer") - }, - collapsable: true, - borderTopWidth: true, - borderTopColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderRightWidth: true, - borderRightColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderBottomWidth: true, - borderBottomColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderLeftWidth: true, - borderLeftColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderStartWidth: true, - borderStartColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderEndWidth: true, - borderEndColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderTopLeftRadius: true, - borderTopRightRadius: true, - borderTopStartRadius: true, - borderTopEndRadius: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - borderBottomStartRadius: true, - borderBottomEndRadius: true, - display: true, - zIndex: true, - top: true, - right: true, - start: true, - end: true, - bottom: true, - left: true, - width: true, - height: true, - minWidth: true, - maxWidth: true, - minHeight: true, - maxHeight: true, + function entangleTransitions(root, fiber, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + // Only occurs if the fiber has been unmounted. + return; + } + var sharedQueue = updateQueue.shared; + if (isTransitionLane(lane)) { + var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must + // have finished. We can remove them from the shared queue, which represents + // a superset of the actually pending lanes. In some cases we may entangle + // more than we need to, but that's OK. In fact it's worse if we *don't* + // entangle when we should. - marginTop: true, - marginRight: true, - marginBottom: true, - marginLeft: true, - marginStart: true, - marginEnd: true, - marginVertical: true, - marginHorizontal: true, - margin: true, - paddingTop: true, - paddingRight: true, - paddingBottom: true, - paddingLeft: true, - paddingStart: true, - paddingEnd: true, - paddingVertical: true, - paddingHorizontal: true, - padding: true, - flex: true, - flexGrow: true, - flexShrink: true, - flexBasis: true, - flexDirection: true, - flexWrap: true, - justifyContent: true, - alignItems: true, - alignSelf: true, - alignContent: true, - position: true, - aspectRatio: true, + queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes. - direction: true, - style: _ReactNativeStyleAttributes.default - }; + var newQueueLanes = mergeLanes(queueLanes, lane); + sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if + // the lane finished since the last time we entangled it. So we need to + // entangle it again, just to be sure. - var validAttributesForEventProps = (0, _$$_REQUIRE(_dependencyMap[2], "./ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ - onLayout: true, - onMagicTap: true, - onAccessibilityAction: true, - onAccessibilityEscape: true, - onAccessibilityTap: true, - onMoveShouldSetResponder: true, - onMoveShouldSetResponderCapture: true, - onStartShouldSetResponder: true, - onStartShouldSetResponderCapture: true, - onResponderGrant: true, - onResponderReject: true, - onResponderStart: true, - onResponderEnd: true, - onResponderRelease: true, - onResponderMove: true, - onResponderTerminate: true, - onResponderTerminationRequest: true, - onShouldBlockNativeResponder: true, - onTouchStart: true, - onTouchMove: true, - onTouchEnd: true, - onTouchCancel: true, - onPointerUp: true, - onPointerDown: true, - onPointerCancel: true, - onPointerEnter: true, - onPointerMove: true, - onPointerLeave: true, - onPointerOver: true, - onPointerOut: true - }); + markRootEntangled(root, newQueueLanes); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + // Captured updates are updates that are thrown by a child during the render + // phase. They should be discarded if the render is aborted. Therefore, + // we should only put them on the work-in-progress queue, not the current one. + var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone. - var PlatformBaseViewConfigIos = { - bubblingEventTypes: bubblingEventTypes, - directEventTypes: directEventTypes, - validAttributes: Object.assign({}, validAttributesForNonEventProps, validAttributesForEventProps) - }; - var _default = PlatformBaseViewConfigIos; - exports.default = _default; -},234,[3,185,210,159,188,220,222],"node_modules/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.createViewConfig = createViewConfig; - var _PlatformBaseViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PlatformBaseViewConfig")); + var current = workInProgress.alternate; + if (current !== null) { + var currentQueue = current.updateQueue; + if (queue === currentQueue) { + // The work-in-progress queue is the same as current. This happens when + // we bail out on a parent fiber that then captures an error thrown by + // a child. Since we want to append the update only to the work-in + // -progress queue, we need to clone the updates. We usually clone during + // processUpdateQueue, but that didn't happen in this case because we + // skipped over the parent when we bailed out. + var newFirst = null; + var newLast = null; + var firstBaseUpdate = queue.firstBaseUpdate; + if (firstBaseUpdate !== null) { + // Loop through the updates and clone them. + var update = firstBaseUpdate; + do { + var clone = { + eventTime: update.eventTime, + lane: update.lane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLast === null) { + newFirst = newLast = clone; + } else { + newLast.next = clone; + newLast = clone; + } + update = update.next; + } while (update !== null); // Append the captured update the end of the cloned list. - function createViewConfig(partialViewConfig) { - return { - uiViewClassName: partialViewConfig.uiViewClassName, - Commands: {}, - bubblingEventTypes: composeIndexers(_PlatformBaseViewConfig.default.bubblingEventTypes, partialViewConfig.bubblingEventTypes), - directEventTypes: composeIndexers(_PlatformBaseViewConfig.default.directEventTypes, partialViewConfig.directEventTypes), - validAttributes: composeIndexers( - _PlatformBaseViewConfig.default.validAttributes, - partialViewConfig.validAttributes) - }; - } - function composeIndexers(maybeA, maybeB) { - var _ref; - return maybeA == null || maybeB == null ? (_ref = maybeA != null ? maybeA : maybeB) != null ? _ref : {} : Object.assign({}, maybeA, maybeB); - } -},235,[3,233],"node_modules/react-native/Libraries/NativeComponent/ViewConfig.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "../../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + if (newLast === null) { + newFirst = newLast = capturedUpdate; + } else { + newLast.next = capturedUpdate; + newLast = capturedUpdate; + } + } else { + // There are no base updates. + newFirst = newLast = capturedUpdate; + } + queue = { + baseState: currentQueue.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = queue; + return; + } + } // Append the update to the end of the list. - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['focus', 'blur', 'setTextAndSelection'] - }); - exports.Commands = Commands; - var __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' - } - }, - topTextInput: { - phasedRegistrationNames: { - bubbled: 'onTextInput', - captured: 'onTextInputCapture' + var lastBaseUpdate = queue.lastBaseUpdate; + if (lastBaseUpdate === null) { + queue.firstBaseUpdate = capturedUpdate; + } else { + lastBaseUpdate.next = capturedUpdate; } + queue.lastBaseUpdate = capturedUpdate; } - }, - directEventTypes: { - topScroll: { - registrationName: 'onScroll' - } - }, - validAttributes: { - maxFontSizeMultiplier: true, - adjustsFontSizeToFit: true, - minimumFontScale: true, - autoFocus: true, - placeholder: true, - inlineImagePadding: true, - contextMenuHidden: true, - textShadowColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - maxLength: true, - selectTextOnFocus: true, - textShadowRadius: true, - underlineColorAndroid: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - textDecorationLine: true, - blurOnSubmit: true, - textAlignVertical: true, - fontStyle: true, - textShadowOffset: true, - selectionColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - selection: true, - placeholderTextColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - importantForAutofill: true, - lineHeight: true, - textTransform: true, - returnKeyType: true, - keyboardType: true, - multiline: true, - color: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - autoComplete: true, - numberOfLines: true, - letterSpacing: true, - returnKeyLabel: true, - fontSize: true, - onKeyPress: true, - cursorColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - text: true, - showSoftInputOnFocus: true, - textAlign: true, - autoCapitalize: true, - autoCorrect: true, - caretHidden: true, - secureTextEntry: true, - textBreakStrategy: true, - onScroll: true, - onContentSizeChange: true, - disableFullscreenUI: true, - includeFontPadding: true, - fontWeight: true, - fontFamily: true, - allowFontScaling: true, - onSelectionChange: true, - mostRecentEventCount: true, - inlineImageLeft: true, - editable: true, - fontVariant: true, - borderBottomRightRadius: true, - borderBottomColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - borderRadius: true, - borderRightColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - borderTopRightRadius: true, - borderStyle: true, - borderBottomLeftRadius: true, - borderLeftColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - }, - borderTopLeftRadius: true, - borderTopColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor") - } - } - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var AndroidTextInputNativeComponent = NativeComponentRegistry.get('AndroidTextInput', function () { - return __INTERNAL_VIEW_CONFIG; - }); - - var _default = AndroidTextInputNativeComponent; - exports.default = _default; -},236,[3,202,211,159],"node_modules/react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var payload = update.payload; + if (typeof payload === "function") { + // Updater function + { + enterDisallowedContextReadInDEV(); + } + var nextState = payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + return nextState; + } // State object - 'use strict'; + return payload; + } + case CaptureUpdate: + { + workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture; + } + // Intentional fallthrough - var logListeners; - function unstable_setLogListeners(listeners) { - logListeners = listeners; - } + case UpdateState: + { + var _payload = update.payload; + var partialState; + if (typeof _payload === "function") { + // Updater function + { + enterDisallowedContextReadInDEV(); + } + partialState = _payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + } else { + // Partial state object + partialState = _payload; + } + if (partialState === null || partialState === undefined) { + // Null and undefined are treated as no-ops. + return prevState; + } // Merge the partial state and the previous state. - var deepDiffer = function deepDiffer(one, two) { - var maxDepthOrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - var maybeOptions = arguments.length > 3 ? arguments[3] : undefined; - var options = typeof maxDepthOrOptions === 'number' ? maybeOptions : maxDepthOrOptions; - var maxDepth = typeof maxDepthOrOptions === 'number' ? maxDepthOrOptions : -1; - if (maxDepth === 0) { - return true; - } - if (one === two) { - return false; - } - if (typeof one === 'function' && typeof two === 'function') { - var unsafelyIgnoreFunctions = options == null ? void 0 : options.unsafelyIgnoreFunctions; - if (unsafelyIgnoreFunctions == null) { - if (logListeners && logListeners.onDifferentFunctionsIgnored && (!options || !('unsafelyIgnoreFunctions' in options))) { - logListeners.onDifferentFunctionsIgnored(one.name, two.name); - } - unsafelyIgnoreFunctions = true; - } - return !unsafelyIgnoreFunctions; - } - if (typeof one !== 'object' || one === null) { - return one !== two; - } - if (typeof two !== 'object' || two === null) { - return true; - } - if (one.constructor !== two.constructor) { - return true; - } - if (Array.isArray(one)) { - var len = one.length; - if (two.length !== len) { - return true; - } - for (var ii = 0; ii < len; ii++) { - if (deepDiffer(one[ii], two[ii], maxDepth - 1, options)) { - return true; - } - } - } else { - for (var key in one) { - if (deepDiffer(one[key], two[key], maxDepth - 1, options)) { - return true; + return assign({}, prevState, partialState); + } + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } } + return prevState; } - for (var twoKey in two) { - if (one[twoKey] === undefined && two[twoKey] !== undefined) { - return true; + function processUpdateQueue(workInProgress, props, instance, renderLanes) { + // This is always non-null on a ClassComponent or HostRoot + var queue = workInProgress.updateQueue; + hasForceUpdate = false; + { + currentlyProcessingQueue = queue.shared; } - } - } - return false; - }; - module.exports = deepDiffer; - module.exports.unstable_setLogListeners = unstable_setLogListeners; -},237,[],"node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; + var firstBaseUpdate = queue.firstBaseUpdate; + var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue. - var ReactFiberErrorDialog = { - showErrorDialog: function showErrorDialog(_ref) { - var componentStack = _ref.componentStack, - errorValue = _ref.error; - var error; + var pendingQueue = queue.shared.pending; + if (pendingQueue !== null) { + queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first + // and last so that it's non-circular. - if (errorValue instanceof Error) { - error = errorValue; - } else if (typeof errorValue === 'string') { - error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)(errorValue); - } else { - error = new (_$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").SyntheticError)('Unspecified error'); - } - try { - error.componentStack = componentStack; - error.isComponentError = true; - } catch (_unused) { - } - (0, _$$_REQUIRE(_dependencyMap[0], "./ExceptionsManager").handleException)(error, false); + var lastPendingUpdate = pendingQueue; + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; // Append pending updates to base queue - return false; - } - }; - var _default = ReactFiberErrorDialog; - exports.default = _default; -},238,[45],"node_modules/react-native/Libraries/Core/ReactFiberErrorDialog.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); + if (lastBaseUpdate === null) { + firstBaseUpdate = firstPendingUpdate; + } else { + lastBaseUpdate.next = firstPendingUpdate; + } + lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then + // we need to transfer the updates to that queue, too. Because the base + // queue is a singly-linked list with no cycles, we can append to both + // lists and take advantage of structural sharing. + // TODO: Pass `current` as argument - var RawEventEmitter = new _EventEmitter.default(); + var current = workInProgress.alternate; + if (current !== null) { + // This is always non-null on a ClassComponent or HostRoot + var currentQueue = current.updateQueue; + var currentLastBaseUpdate = currentQueue.lastBaseUpdate; + if (currentLastBaseUpdate !== lastBaseUpdate) { + if (currentLastBaseUpdate === null) { + currentQueue.firstBaseUpdate = firstPendingUpdate; + } else { + currentLastBaseUpdate.next = firstPendingUpdate; + } + currentQueue.lastBaseUpdate = lastPendingUpdate; + } + } + } // These values may change as we process the queue. - var _default = RawEventEmitter; - exports.default = _default; -},239,[3,5],"node_modules/react-native/Libraries/Core/RawEventEmitter.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var _EventPolyfill2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./EventPolyfill")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var CustomEvent = function (_EventPolyfill) { - (0, _inherits2.default)(CustomEvent, _EventPolyfill); - var _super = _createSuper(CustomEvent); - function CustomEvent(typeArg, options) { - var _this; - (0, _classCallCheck2.default)(this, CustomEvent); - var bubbles = options.bubbles, - cancelable = options.cancelable, - composed = options.composed; - _this = _super.call(this, typeArg, { - bubbles: bubbles, - cancelable: cancelable, - composed: composed - }); - _this.detail = options.detail; - return _this; - } - return (0, _createClass2.default)(CustomEvent); - }(_EventPolyfill2.default); - var _default = CustomEvent; - exports.default = _default; -},240,[3,13,12,50,47,46,241],"node_modules/react-native/Libraries/Events/CustomEvent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var EventPolyfill = function () { + if (firstBaseUpdate !== null) { + // Iterate through the list of updates to compute the result. + var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes + // from the original lanes. - function EventPolyfill(type, eventInitDict) { - (0, _classCallCheck2.default)(this, EventPolyfill); - this.type = type; - this.bubbles = !!(eventInitDict != null && eventInitDict.bubbles || false); - this.cancelable = !!(eventInitDict != null && eventInitDict.cancelable || false); - this.composed = !!(eventInitDict != null && eventInitDict.composed || false); - this.scoped = !!(eventInitDict != null && eventInitDict.scoped || false); + var newLanes = NoLanes; + var newBaseState = null; + var newFirstBaseUpdate = null; + var newLastBaseUpdate = null; + var update = firstBaseUpdate; + do { + var updateLane = update.lane; + var updateEventTime = update.eventTime; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. + var clone = { + eventTime: updateEventTime, + lane: updateLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLastBaseUpdate === null) { + newFirstBaseUpdate = newLastBaseUpdate = clone; + newBaseState = newState; + } else { + newLastBaseUpdate = newLastBaseUpdate.next = clone; + } // Update the remaining priority in the queue. - this.isTrusted = false; + newLanes = mergeLanes(newLanes, updateLane); + } else { + // This update does have sufficient priority. + if (newLastBaseUpdate !== null) { + var _clone = { + eventTime: updateEventTime, + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. + lane: NoLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + newLastBaseUpdate = newLastBaseUpdate.next = _clone; + } // Process this update. - this.timeStamp = Date.now(); - this.defaultPrevented = false; + newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); + var callback = update.callback; + if (callback !== null && + // If the update was already committed, we should not queue its + // callback again. + update.lane !== NoLane) { + workInProgress.flags |= Callback; + var effects = queue.effects; + if (effects === null) { + queue.effects = [update]; + } else { + effects.push(update); + } + } + } + update = update.next; + if (update === null) { + pendingQueue = queue.shared.pending; + if (pendingQueue === null) { + break; + } else { + // An update was scheduled from inside a reducer. Add the new + // pending updates to the end of the list and keep processing. + var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we + // unravel them when transferring them to the base queue. - this.NONE = 0; - this.AT_TARGET = 1; - this.BUBBLING_PHASE = 2; - this.CAPTURING_PHASE = 3; - this.eventPhase = this.NONE; + var _firstPendingUpdate = _lastPendingUpdate.next; + _lastPendingUpdate.next = null; + update = _firstPendingUpdate; + queue.lastBaseUpdate = _lastPendingUpdate; + queue.shared.pending = null; + } + } + } while (true); + if (newLastBaseUpdate === null) { + newBaseState = newState; + } + queue.baseState = newBaseState; + queue.firstBaseUpdate = newFirstBaseUpdate; + queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to + // process them during this render, but we do need to track which lanes + // are remaining. - this.currentTarget = null; - this.target = null; - this.srcElement = null; - } - (0, _createClass2.default)(EventPolyfill, [{ - key: "composedPath", - value: function composedPath() { - throw new Error('TODO: not yet implemented'); + var lastInterleaved = queue.shared.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + newLanes = mergeLanes(newLanes, interleaved.lane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (firstBaseUpdate === null) { + // `queue.lanes` is used for entangling transitions. We can set it back to + // zero once the queue is empty. + queue.shared.lanes = NoLanes; + } // Set the remaining expiration time to be whatever is remaining in the queue. + // This should be fine because the only two other things that contribute to + // expiration time are props and context. We're already in the middle of the + // begin phase by the time we start processing the queue, so we've already + // dealt with the props. Context in components that specify + // shouldComponentUpdate is tricky; but we'll have to account for + // that regardless. + + markSkippedUpdateLanes(newLanes); + workInProgress.lanes = newLanes; + workInProgress.memoizedState = newState; + } + { + currentlyProcessingQueue = null; + } } - }, { - key: "preventDefault", - value: function preventDefault() { - this.defaultPrevented = true; - if (this._syntheticEvent != null) { - this._syntheticEvent.preventDefault(); + function callCallback(callback, context) { + if (typeof callback !== "function") { + throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + callback)); } + callback.call(context); } - }, { - key: "initEvent", - value: function initEvent(type, bubbles, cancelable) { - throw new Error('TODO: not yet implemented. This method is also deprecated.'); + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; } - }, { - key: "stopImmediatePropagation", - value: function stopImmediatePropagation() { - throw new Error('TODO: not yet implemented'); + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; } - }, { - key: "stopPropagation", - value: function stopPropagation() { - if (this._syntheticEvent != null) { - this._syntheticEvent.stopPropagation(); + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + // Commit the effects + var effects = finishedQueue.effects; + finishedQueue.effects = null; + if (effects !== null) { + for (var i = 0; i < effects.length; i++) { + var effect = effects[i]; + var callback = effect.callback; + if (callback !== null) { + effect.callback = null; + callCallback(callback, instance); + } + } } } - }, { - key: "setSyntheticEvent", - value: function setSyntheticEvent(value) { - this._syntheticEvent = value; - } - }]); - return EventPolyfill; - }(); + var fakeInternalInstance = {}; // React.Component uses a shared frozen object by default. + // We'll use it to determine whether we need to initialize legacy refs. - global.Event = EventPolyfill; - var _default = EventPolyfill; - exports.default = _default; -},241,[3,12,13],"node_modules/react-native/Libraries/Events/EventPolyfill.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var emptyRefsObject = new React.Component().refs; + var didWarnAboutStateAssignmentForComponent; + var didWarnAboutUninitializedState; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; + var didWarnAboutLegacyLifecyclesAndDerivedState; + var didWarnAboutUndefinedDerivedState; + var warnOnUndefinedDerivedState; + var warnOnInvalidCallback; + var didWarnAboutDirectlyAssigningPropsToState; + var didWarnAboutContextTypeAndContextTypes; + var didWarnAboutInvalidateContextType; + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutDirectlyAssigningPropsToState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + didWarnAboutContextTypeAndContextTypes = new Set(); + didWarnAboutInvalidateContextType = new Set(); + var didWarnOnInvalidCallback = new Set(); + warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + var key = callerName + "_" + callback; + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + error("%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); + } + }; + warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(type, partialState) { + if (partialState === undefined) { + var componentName = getComponentNameFromType(type) || "Component"; + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); + } + } + }; // This is so gross but it's at least non-critical and can be removed if + // it causes problems. This is meant to give a nicer error message for + // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component, + // ...)) which otherwise throws a "_processChildContext is not a function" + // exception. - "use strict"; + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function value() { + throw new Error("_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(ctor, partialState); + } // Merge the partial state and the previous state. - _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); - var React = _$$_REQUIRE(_dependencyMap[1], "react"); - function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { - var funcArgs = Array.prototype.slice.call(arguments, 3); - try { - func.apply(context, funcArgs); - } catch (error) { - this.onError(error); - } - } - var hasError = !1, - caughtError = null, - hasRethrowError = !1, - rethrowError = null, - reporter = { - onError: function onError(error) { - hasError = !0; - caughtError = error; + var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the + // base state. + + if (workInProgress.lanes === NoLanes) { + // Queue is always non-null for classes + var updateQueue = workInProgress.updateQueue; + updateQueue.baseState = memoizedState; + } } - }; - function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - hasError = !1; - caughtError = null; - invokeGuardedCallbackImpl.apply(reporter, arguments); - } - function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback.apply(this, arguments); - if (hasError) { - if (hasError) { - var error = caughtError; - hasError = !1; - caughtError = null; - } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); - hasRethrowError || (hasRethrowError = !0, rethrowError = error); - } - } - var isArrayImpl = Array.isArray, - getFiberCurrentPropsFromNode = null, - getInstanceFromNode = null, - getNodeFromInstance = null; - function executeDispatch(event, listener, inst) { - var type = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); - event.currentTarget = null; - } - function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - dispatchListener = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return dispatchListener; - } - var assign = Object.assign; - function functionThatReturnsTrue() { - return !0; - } - function functionThatReturnsFalse() { - return !1; - } - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - this._dispatchInstances = this._dispatchListeners = null; - dispatchConfig = this.constructor.Interface; - for (var propName in dispatchConfig) { - dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); - } - this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - assign(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface, - propName; - for (propName in Interface) { - this[propName] = null; - } - this.nativeEvent = this._targetInst = this.dispatchConfig = null; - this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; - this._dispatchInstances = this._dispatchListeners = null; - } - }); - SyntheticEvent.Interface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - SyntheticEvent.extend = function (Interface) { - function E() {} - function Class() { - return Super.apply(this, arguments); - } - var Super = this; - E.prototype = Super.prototype; - var prototype = new E(); - assign(prototype, Class.prototype); - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = assign({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - addEventPoolingTo(SyntheticEvent); - function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - if (this.eventPool.length) { - var instance = this.eventPool.pop(); - this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - function releasePooledEvent(event) { - if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); - event.destructor(); - 10 > this.eventPool.length && this.eventPool.push(event); - } - function addEventPoolingTo(EventConstructor) { - EventConstructor.getPooled = createOrGetPooledEvent; - EventConstructor.eventPool = []; - EventConstructor.release = releasePooledEvent; - } - var ResponderSyntheticEvent = SyntheticEvent.extend({ - touchHistory: function touchHistory() { - return null; - } - }); - function isStartish(topLevelType) { - return "topTouchStart" === topLevelType; - } - function isMoveish(topLevelType) { - return "topTouchMove" === topLevelType; - } - var startDependencies = ["topTouchStart"], - moveDependencies = ["topTouchMove"], - endDependencies = ["topTouchCancel", "topTouchEnd"], - touchBank = [], - touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - function getTouchIdentifier(_ref) { - _ref = _ref.identifier; - if (null == _ref) throw Error("Touch object is missing identifier."); - return _ref; - } - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch), - touchRecord = touchBank[identifier]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { - touchActive: !0, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }, touchBank[identifier] = touchRecord); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); - } - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); - } - var instrumentationCallback, - ResponderTouchHistoryStore = { - instrument: function instrument(callback) { - instrumentationCallback = callback; - }, - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); - if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { - if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { - touchHistory.indexOfSingleActiveTouch = topLevelType; - break; + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; } - } - }, - touchHistory: touchHistory - }; - function accumulate(current, next) { - if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); - return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; - } - function accumulateInto(current, next) { - if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); - if (null == current) return next; - if (isArrayImpl(current)) { - if (isArrayImpl(next)) return current.push.apply(current, next), current; - current.push(next); - return current; - } - return isArrayImpl(next) ? [current].concat(next) : [current, next]; - } - function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - } - var responderInst = null, - trackedTouchCount = 0; - function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - var eventTypes = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: ["topScroll"] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: ["topSelectionChange"] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }; - function getParent(inst) { - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - return inst ? inst : null; - } - function traverseTwoPhase(inst, fn, arg) { - for (var path = []; inst;) { - path.push(inst), inst = getParent(inst); - } - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - function getListener(inst, registrationName) { - inst = inst.stateNode; - if (null === inst) return null; - inst = getFiberCurrentPropsFromNode(inst); - if (null === inst) return null; - if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); - return inst; - } - function accumulateDirectionalDispatches(inst, phase, event) { - if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - if (inst && event && event.dispatchConfig.registrationName) { - var listener = getListener(inst, event.dispatchConfig.registrationName); - listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); - } - } - } - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - targetInst = targetInst ? getParent(targetInst) : null; - traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); - } - } - function accumulateTwoPhaseDispatchesSingle(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - var ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; - if (responderInst) b: { - var JSCompiler_temp = responderInst; - for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) { - depthA++; + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ReplaceState; + update.payload = payload; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); } - tempA = 0; - for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { - tempA++; + update.callback = callback; + } + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ForceUpdate; + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); } - for (; 0 < depthA - tempA;) { - JSCompiler_temp = getParent(JSCompiler_temp), depthA--; + update.callback = callback; + } + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + var instance = workInProgress.stateNode; + if (typeof instance.shouldComponentUpdate === "function") { + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); + { + if (shouldUpdate === undefined) { + error("%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); } - for (; 0 < tempA - depthA;) { - targetInst = getParent(targetInst), tempA--; + } + return shouldUpdate; + } + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + return true; + } + function checkClassInstance(workInProgress, ctor, newProps) { + var instance = workInProgress.stateNode; + { + var name = getComponentNameFromType(ctor) || "Component"; + var renderPresent = instance.render; + if (!renderPresent) { + if (ctor.prototype && typeof ctor.prototype.render === "function") { + error("%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); + } else { + error("%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); } - for (; depthA--;) { - if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; - JSCompiler_temp = getParent(JSCompiler_temp); - targetInst = getParent(targetInst); + } + if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { + error("getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name); + } + if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { + error("getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name); + } + if (instance.propTypes) { + error("propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name); + } + if (instance.contextType) { + error("contextType was defined as an instance property on %s. Use a static " + "property to define contextType instead.", name); + } + { + if (instance.contextTypes) { + error("contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name); } - JSCompiler_temp = null; - } else JSCompiler_temp = targetInst; - targetInst = JSCompiler_temp; - JSCompiler_temp = targetInst === responderInst; - shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); - shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; - JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); - b: { - JSCompiler_temp = shouldSetEventType._dispatchListeners; - targetInst = shouldSetEventType._dispatchInstances; - if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { - if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { - JSCompiler_temp = targetInst[depthA]; - break b; - } - } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { - JSCompiler_temp = targetInst; - break b; + if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { + didWarnAboutContextTypeAndContextTypes.add(ctor); + error("%s declares both contextTypes and contextType static properties. " + "The legacy contextTypes property will be ignored.", name); } - JSCompiler_temp = null; } - shouldSetEventType._dispatchInstances = null; - shouldSetEventType._dispatchListeners = null; - shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); - if (JSCompiler_temp && JSCompiler_temp !== responderInst) { - if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { - if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { - depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); - depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; - forEachAccumulated(depthA, accumulateDirectDispatchesSingle); - var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); - changeResponder(JSCompiler_temp, targetInst); - } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); - } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); - } else JSCompiler_temp$jscomp$0 = null; - } else JSCompiler_temp$jscomp$0 = null; - shouldSetEventType = responderInst && isStartish(topLevelType); - JSCompiler_temp = responderInst && isMoveish(topLevelType); - targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); - if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); - shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; - if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { - if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) { - if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { - depthA = getInstanceFromNode(targetInst); - b: { - for (targetInst = responderInst; depthA;) { - if (targetInst === depthA || targetInst === depthA.alternate) { - targetInst = !0; - break b; - } - depthA = getParent(depthA); - } - targetInst = !1; - } - if (targetInst) { - topLevelType = !1; - break a; - } - } + if (typeof instance.componentShouldUpdate === "function") { + error("%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name); + } + if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + error("%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"); + } + if (typeof instance.componentDidUnmount === "function") { + error("%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name); + } + if (typeof instance.componentDidReceiveProps === "function") { + error("%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name); + } + if (typeof instance.componentWillRecieveProps === "function") { + error("%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name); + } + if (typeof instance.UNSAFE_componentWillRecieveProps === "function") { + error("%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); + } + var hasMutatedProps = instance.props !== newProps; + if (instance.props !== undefined && hasMutatedProps) { + error("%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name); + } + if (instance.defaultProps) { + error("Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name); + } + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); + error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor)); + } + if (typeof instance.getDerivedStateFromProps === "function") { + error("%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof instance.getDerivedStateFromError === "function") { + error("%s: getDerivedStateFromError() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof ctor.getSnapshotBeforeUpdate === "function") { + error("%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name); + } + var _state = instance.state; + if (_state && (typeof _state !== "object" || isArray(_state))) { + error("%s.state: must be set to an object or null", name); + } + if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") { + error("%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name); } - topLevelType = !0; } - if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); - return JSCompiler_temp$jscomp$0; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates + + set(instance, workInProgress); + { + instance._reactInternalInstance = fakeInternalInstance; } } - }, - eventPluginOrder = null, - namesToPlugins = {}; - function recomputePluginOrdering() { - if (eventPluginOrder) for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); - if (!plugins[pluginIndex]) { - if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); - plugins[pluginIndex] = pluginModule; - pluginIndex = pluginModule.eventTypes; - for (var eventName in pluginIndex) { - var JSCompiler_inline_result = void 0; - var dispatchConfig = pluginIndex[eventName], - eventName$jscomp$0 = eventName; - if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); - eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (JSCompiler_inline_result in phasedRegistrationNames) { - phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = false; + var unmaskedContext = emptyContextObject; + var context = emptyContextObject; + var contextType = ctor.contextType; + { + if ("contextType" in ctor) { + var isValid = + // Allow null for conditional declaration + contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a + + if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { + didWarnAboutInvalidateContextType.add(ctor); + var addendum = ""; + if (contextType === undefined) { + addendum = " However, it is set to undefined. " + "This can be caused by a typo or by mixing up named and default imports. " + "This can also happen due to a circular dependency, so " + "try moving the createContext() call to a separate file."; + } else if (typeof contextType !== "object") { + addendum = " However, it is set to a " + typeof contextType + "."; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = " Did you accidentally pass the Context.Provider instead?"; + } else if (contextType._context !== undefined) { + // + addendum = " Did you accidentally pass the Context.Consumer instead?"; + } else { + addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; + } + error("%s defines an invalid contextType. " + "contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(ctor) || "Component", addendum); } - JSCompiler_inline_result = !0; - } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; - if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } } - } - } - } - function publishRegistrationName(registrationName, pluginModule) { - if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); - registrationNameModules[registrationName] = pluginModule; - } - var plugins = [], - eventNameDispatchConfigs = {}, - registrationNameModules = {}; - function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { - var stateNode = inst.stateNode; - if (null === stateNode) return null; - inst = getFiberCurrentPropsFromNode(stateNode); - if (null === inst) return null; - if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); - if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; - var listeners = []; - inst && listeners.push(inst); - var requestedPhaseIsCapture = "captured" === phase, - mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; - stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { - if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { - var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { - var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { - detail: syntheticEvent.nativeEvent - }); - eventInst.isTrusted = !0; - eventInst.setSyntheticEvent(syntheticEvent); - for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; + if (typeof contextType === "object" && contextType !== null) { + context = _readContext(contextType); + } else { + unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + var contextTypes = ctor.contextTypes; + isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; + context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; + } + var instance = new ctor(props, context); // Instantiate twice to help detect side-effects. + + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + error("`%s` uses `getDerivedStateFromProps` but its initial state is " + "%s. This is not recommended. Instead, define the initial state by " + "assigning an object to `this.state` in the constructor of `%s`. " + "This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); + } + } // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Warn about these lifecycles if they are present. + // Don't warn about react-lifecycles-compat polyfilled methods though. + + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentNameFromType(ctor) || "Component"; + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } } - listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); - }; - listenerObj.options.once ? listeners.push(function () { - stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); - listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); - }) : listeners.push(listenerFnWrapper); - } - }); - return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; - } - var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; - function accumulateListenersAndInstances(inst, event, listeners) { - var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; - if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) { - event._dispatchInstances.push(inst); - } - } - function accumulateDirectionalDispatches$1(inst, phase, event) { - phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); - accumulateListenersAndInstances(inst, event, phase); - } - function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { - for (var path = []; inst;) { - path.push(inst); - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - inst = inst ? inst : null; - } - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - function accumulateTwoPhaseDispatchesSingle$1(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); - } - function accumulateDirectDispatchesSingle$1(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - if (inst && event && event.dispatchConfig.registrationName) { - var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); - accumulateListenersAndInstances(inst, event, listeners); - } - } - } - if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); - recomputePluginOrdering(); - var injectedNamesToPlugins$jscomp$inline_225 = { - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: { - eventTypes: {}, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (null == targetInst) return null; - var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], - directDispatchConfig = customDirectEventTypes[topLevelType]; - if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); - topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; - return topLevelType; + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // ReactFiberContext usually updates this cache but can't for newly-created instances. + + if (isLegacyContextConsumer) { + cacheContext(workInProgress, unmaskedContext, context); } + return instance; } - }, - isOrderingDirty$jscomp$inline_226 = !1, - pluginName$jscomp$inline_227; - for (pluginName$jscomp$inline_227 in injectedNamesToPlugins$jscomp$inline_225) { - if (injectedNamesToPlugins$jscomp$inline_225.hasOwnProperty(pluginName$jscomp$inline_227)) { - var pluginModule$jscomp$inline_228 = injectedNamesToPlugins$jscomp$inline_225[pluginName$jscomp$inline_227]; - if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_227) || namesToPlugins[pluginName$jscomp$inline_227] !== pluginModule$jscomp$inline_228) { - if (namesToPlugins[pluginName$jscomp$inline_227]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_227 + "`.")); - namesToPlugins[pluginName$jscomp$inline_227] = pluginModule$jscomp$inline_228; - isOrderingDirty$jscomp$inline_226 = !0; - } - } - } - isOrderingDirty$jscomp$inline_226 && recomputePluginOrdering(); - var instanceCache = new Map(), - instanceProps = new Map(); - function getInstanceFromTag(tag) { - return instanceCache.get(tag) || null; - } - function batchedUpdatesImpl(fn, bookkeeping) { - return fn(bookkeeping); - } - var isInsideEventHandler = !1; - function batchedUpdates(fn, bookkeeping) { - if (isInsideEventHandler) return fn(bookkeeping); - isInsideEventHandler = !0; - try { - return batchedUpdatesImpl(fn, bookkeeping); - } finally { - isInsideEventHandler = !1; - } - } - var eventQueue = null; - function executeDispatchesAndReleaseTopLevel(e) { - if (e) { - var dispatchListeners = e._dispatchListeners, - dispatchInstances = e._dispatchInstances; - if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { - executeDispatch(e, dispatchListeners[i], dispatchInstances[i]); - } else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); - e._dispatchListeners = null; - e._dispatchInstances = null; - e.isPersistent() || e.constructor.release(e); - } - } - var EMPTY_NATIVE_EVENT = {}; - function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { - var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT, - inst = getInstanceFromTag(rootNodeID), - target = null; - null != inst && (target = inst.stateNode); - batchedUpdates(function () { - var JSCompiler_inline_result = target; - for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { - var possiblePlugin = legacyPlugins[i]; - possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, inst, nativeEvent, JSCompiler_inline_result)) && (events = accumulateInto(events, possiblePlugin)); - } - JSCompiler_inline_result = events; - null !== JSCompiler_inline_result && (eventQueue = accumulateInto(eventQueue, JSCompiler_inline_result)); - JSCompiler_inline_result = eventQueue; - eventQueue = null; - if (JSCompiler_inline_result) { - forEachAccumulated(JSCompiler_inline_result, executeDispatchesAndReleaseTopLevel); - if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); - if (hasRethrowError) throw JSCompiler_inline_result = rethrowError, hasRethrowError = !1, rethrowError = null, JSCompiler_inline_result; - } - }); - } - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RCTEventEmitter.register({ - receiveEvent: function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { - _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); - }, - receiveTouches: function receiveTouches(eventTopLevelType, touches, changedIndices) { - if ("topTouchEnd" === eventTopLevelType || "topTouchCancel" === eventTopLevelType) { - var JSCompiler_temp = []; - for (var i = 0; i < changedIndices.length; i++) { - var index$0 = changedIndices[i]; - JSCompiler_temp.push(touches[index$0]); - touches[index$0] = null; + function callComponentWillMount(workInProgress, instance) { + var oldState = instance.state; + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); } - for (i = changedIndices = 0; i < touches.length; i++) { - index$0 = touches[i], null !== index$0 && (touches[changedIndices++] = index$0); + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); } - touches.length = changedIndices; - } else for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++) { - JSCompiler_temp.push(touches[changedIndices[i]]); - } - for (changedIndices = 0; changedIndices < JSCompiler_temp.length; changedIndices++) { - i = JSCompiler_temp[changedIndices]; - i.changedTouches = JSCompiler_temp; - i.touches = touches; - index$0 = null; - var target = i.target; - null === target || void 0 === target || 1 > target || (index$0 = target); - _receiveRootNodeIDEvent(index$0, eventTopLevelType, i); - } - } - }); - getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(stateNode) { - return instanceProps.get(stateNode._nativeTag) || null; - }; - getInstanceFromNode = getInstanceFromTag; - getNodeFromInstance = function getNodeFromInstance(inst) { - inst = inst.stateNode; - var tag = inst._nativeTag; - void 0 === tag && (inst = inst.canonical, tag = inst._nativeTag); - if (!tag) throw Error("All native instances should have a tag."); - return inst; - }; - ResponderEventPlugin.injection.injectGlobalResponderHandler({ - onChange: function onChange(from, to, blockNativeResponder) { - null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); - } - }); - var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"); - Symbol.for("react.scope"); - Symbol.for("react.debug_trace_mode"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - Symbol.for("react.legacy_hidden"); - Symbol.for("react.cache"); - Symbol.for("react.tracing_marker"); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) return type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if ("object" === typeof type) switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return (type.displayName || "Context") + ".Consumer"; - case REACT_PROVIDER_TYPE: - return (type._context.displayName || "Context") + ".Provider"; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); - return type; - case REACT_MEMO_TYPE: - return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return (type.displayName || "Context") + ".Consumer"; - case 10: - return (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); - case 7: - return "Fragment"; - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 17: - case 2: - case 14: - case 15: - if ("function" === typeof type) return type.displayName || type.name || null; - if ("string" === typeof type) return type; - } - return null; - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return;) { - node = node.return; - } else { - fiber = node; - do { - node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; - } while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate;;) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; + if (oldState !== instance.state) { + { + error("%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); } - break; } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB;) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + var oldState = instance.state; + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, nextContext); } - throw Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) a = parentA, b = parentB;else { - for (var didFindChild = !1, child$1 = parentA.child; child$1;) { - if (child$1 === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (child$1 === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - child$1 = child$1.sibling; + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); } - if (!didFindChild) { - for (child$1 = parentB.child; child$1;) { - if (child$1 === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (child$1 === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; + if (instance.state !== oldState) { + { + var componentName = getComponentNameFromFiber(workInProgress) || "Component"; + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + error("%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); } - child$1 = child$1.sibling; } - if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); } - } - if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); - } - if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - if (5 === node.tag || 6 === node.tag) return node; - for (node = node.child; null !== node;) { - var match = findCurrentHostFiberImpl(node); - if (null !== match) return match; - node = node.sibling; - } - return null; - } - var emptyObject = {}, - removedKeys = null, - removedKeyCount = 0, - deepDifferOptions = { - unsafelyIgnoreFunctions: !0 - }; - function defaultDiffer(prevProp, nextProp) { - return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); - } - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } else if (node && 0 < removedKeyCount) for (i in removedKeys) { - if (removedKeys[i]) { - var nextProp = node[i]; - if (void 0 !== nextProp) { - var attributeConfig = validAttributes[i]; - if (attributeConfig) { - "function" === typeof nextProp && (nextProp = !0); - "undefined" === typeof nextProp && (nextProp = null); - if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; - removedKeys[i] = !1; - removedKeyCount--; + } // Invokes the mount life-cycles on a previously never rendered instance. + + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + { + checkClassInstance(workInProgress, ctor, newProps); + } + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + if (typeof contextType === "object" && contextType !== null) { + instance.context = _readContext(contextType); + } else { + var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + instance.context = getMaskedContext(workInProgress, unmaskedContext); + } + { + if (instance.state === newProps) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { + didWarnAboutDirectlyAssigningPropsToState.add(componentName); + error("%s: It is not recommended to assign props directly to state " + "because updates to props won't be reflected in state. " + "In most cases, it is better to use props directly.", componentName); + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); } } + instance.state = workInProgress.memoizedState; + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + instance.state = workInProgress.memoizedState; + } // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's + // process them now. + + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + instance.state = workInProgress.memoizedState; + } + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } } - } - } - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) return updatePayload; - if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; - if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { - var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, - i; - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); - } - for (; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - for (; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - return updatePayload; - } - return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); - } - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) return updatePayload; - if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - return updatePayload; - } - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) return updatePayload; - if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - return updatePayload; - } - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig, propKey; - for (propKey in nextProps) { - if (attributeConfig = validAttributes[propKey]) { - var prevProp = prevProps[propKey]; - var nextProp = nextProps[propKey]; - "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); - "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); - removedKeys && (removedKeys[propKey] = !1); - if (updatePayload && void 0 !== updatePayload[propKey]) { - if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { - if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); } - } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { - if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; - } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); - } - } - for (var propKey$3 in prevProps) { - void 0 === nextProps[propKey$3] && (!(attributeConfig = validAttributes[propKey$3]) || updatePayload && void 0 !== updatePayload[propKey$3] || (prevProp = prevProps[propKey$3], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$3] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$3] || (removedKeys[propKey$3] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); - } - return updatePayload; - } - function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { - return function () { - if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); - }; - } - var ReactNativeFiberHostComponent = function () { - function ReactNativeFiberHostComponent(tag, viewConfig) { - this._nativeTag = tag; - this._children = []; - this.viewConfig = viewConfig; - } - var _proto = ReactNativeFiberHostComponent.prototype; - _proto.blur = function () { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); - }; - _proto.focus = function () { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); - }; - _proto.measure = function (callback) { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureInWindow = function (callback) { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); - }; - _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - if ("number" === typeof relativeToNativeNode) var relativeNode = relativeToNativeNode;else relativeToNativeNode._nativeTag && (relativeNode = relativeToNativeNode._nativeTag); - null != relativeNode && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); - }; - _proto.setNativeProps = function (nativeProps) { - nativeProps = diffProperties(null, emptyObject, nativeProps, this.viewConfig.validAttributes); - null != nativeProps && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); - }; - return ReactNativeFiberHostComponent; - }(), - rendererID = null, - injectedHook = null; - function onCommitRoot(root) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { - injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); - } catch (err) {} - } - var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, - log = Math.log, - LN2 = Math.LN2; - function clz32Fallback(x) { - x >>>= 0; - return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; - } - var nextTransitionLane = 64, - nextRetryLane = 4194304; - function getHighestPriorityLanes(lanes) { - switch (lanes & -lanes) { - case 1: - return 1; - case 2: - return 2; - case 4: - return 4; - case 8: - return 8; - case 16: - return 16; - case 32: - return 32; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return lanes & 4194240; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return lanes & 130023424; - case 134217728: - return 134217728; - case 268435456: - return 268435456; - case 536870912: - return 536870912; - case 1073741824: - return 1073741824; - default: - return lanes; - } - } - function getNextLanes(root, wipLanes) { - var pendingLanes = root.pendingLanes; - if (0 === pendingLanes) return 0; - var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - nonIdlePendingLanes = pendingLanes & 268435455; - if (0 !== nonIdlePendingLanes) { - var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; - 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); - } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); - if (0 === nextLanes) return 0; - if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; - 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); - wipLanes = root.entangledLanes; - if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) { - pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; - } - return nextLanes; - } - function computeExpirationTime(lane, currentTime) { - switch (lane) { - case 1: - case 2: - case 4: - return currentTime + 250; - case 8: - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return currentTime + 5e3; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return -1; - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; - default: - return -1; - } - } - function getLanesToRetrySynchronouslyOnError(root) { - root = root.pendingLanes & -1073741825; - return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; - } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); - return lane; - } - function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) { - laneMap.push(initial); - } - return laneMap; - } - function markRootUpdated(root, updateLane, eventTime) { - root.pendingLanes |= updateLane; - 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); - root = root.eventTimes; - updateLane = 31 - clz32(updateLane); - root[updateLane] = eventTime; - } - function markRootFinished(root, remainingLanes) { - var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.expiredLanes &= remainingLanes; - root.mutableReadLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - remainingLanes = root.entanglements; - var eventTimes = root.eventTimes; - for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - eventTimes[index$8] = -1; - root[index$8] = -1; - noLongerPendingLanes &= ~lane; - } - } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = root.entangledLanes |= entangledLanes; - for (root = root.entanglements; rootEntangledLanes;) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - lane & entangledLanes | root[index$9] & entangledLanes && (root[index$9] |= entangledLanes); - rootEntangledLanes &= ~lane; - } - } - var currentUpdatePriority = 0; - function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; - } - function shim() { - throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); - } - var getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, - UPDATE_SIGNAL = {}, - nextReactTag = 3; - function allocateTag() { - var tag = nextReactTag; - 1 === tag % 10 && (tag += 2); - nextReactTag = tag + 2; - return tag; - } - function recursivelyUncacheFiberNode(node) { - if ("number" === typeof node) instanceCache.delete(node), instanceProps.delete(node);else { - var tag = node._nativeTag; - instanceCache.delete(tag); - instanceProps.delete(tag); - node._children.forEach(recursivelyUncacheFiberNode); - } - } - function finalizeInitialChildren(parentInstance) { - if (0 === parentInstance._children.length) return !1; - var nativeTags = parentInstance._children.map(function (child) { - return "number" === typeof child ? child : child._nativeTag; - }); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parentInstance._nativeTag, nativeTags); - return !1; - } - var scheduleTimeout = setTimeout, - cancelTimeout = clearTimeout; - function describeComponentFrame(name, source, ownerName) { - source = ""; - ownerName && (source = " (created by " + ownerName + ")"); - return "\n in " + (name || "Unknown") + source; - } - function describeFunctionComponentFrame(fn, source) { - return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; - } - var hasOwnProperty = Object.prototype.hasOwnProperty, - valueStack = [], - index = -1; - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - function pop(cursor) { - 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); - } - function push(cursor, value) { - index++; - valueStack[index] = cursor.current; - cursor.current = value; - } - var emptyContextObject = {}, - contextStackCursor = createCursor(emptyContextObject), - didPerformWorkStackCursor = createCursor(!1), - previousContext = emptyContextObject; - function getMaskedContext(workInProgress, unmaskedContext) { - var contextTypes = workInProgress.type.contextTypes; - if (!contextTypes) return emptyContextObject; - var instance = workInProgress.stateNode; - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; - var context = {}, - key; - for (key in contextTypes) { - context[key] = unmaskedContext[key]; - } - instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return context; - } - function isContextProvider(type) { - type = type.childContextTypes; - return null !== type && void 0 !== type; - } - function popContext() { - pop(didPerformWorkStackCursor); - pop(contextStackCursor); - } - function pushTopLevelContextObject(fiber, context, didChange) { - if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context); - push(didPerformWorkStackCursor, didChange); - } - function processChildContext(fiber, type, parentContext) { - var instance = fiber.stateNode; - type = type.childContextTypes; - if ("function" !== typeof instance.getChildContext) return parentContext; - instance = instance.getChildContext(); - for (var contextKey in instance) { - if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); - } - return assign({}, parentContext, instance); - } - function pushContextProvider(workInProgress) { - workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); - return !0; - } - function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); - didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); - push(didPerformWorkStackCursor, didChange); - } - function is(x, y) { - return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; - } - var objectIs = "function" === typeof Object.is ? Object.is : is, - syncQueue = null, - includesLegacySyncCallbacks = !1, - isFlushingSyncQueue = !1; - function flushSyncCallbacks() { - if (!isFlushingSyncQueue && null !== syncQueue) { - isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { - var callback = queue[i]; - do { - callback = callback(!0); - } while (null !== callback); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; - } finally { - currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress.flags |= fiberFlags; + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); + if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + } + if (typeof instance.componentDidMount === "function") { + var _fiberFlags = Update; + workInProgress.flags |= _fiberFlags; + } + } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidMount === "function") { + var _fiberFlags2 = Update; + workInProgress.flags |= _fiberFlags2; + } // If shouldComponentUpdate returned false, we should still update the + // memoized state to indicate that this work can be reused. + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } // Invokes the update life-cycles and returns false if it shouldn't rerender. + + function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + var unresolvedOldProps = workInProgress.memoizedProps; + var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps); + instance.props = oldProps; + var unresolvedNewProps = workInProgress.pendingProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = _readContext(contextType); + } else { + var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderLanes); + newState = workInProgress.memoizedState; + if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || + // TODO: In some cases, we'll end up checking if context has changed twice, + // both before and after `shouldComponentUpdate` has been called. Not ideal, + // but I'm loath to refactor this function. This only happens for memoized + // components so it's not that common. + enableLazyContextPropagation; + if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, nextContext); + } + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); + } + } + if (typeof instance.componentDidUpdate === "function") { + workInProgress.flags |= Update; + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress.flags |= Snapshot; + } + } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.flags |= Snapshot; + } + } // If shouldComponentUpdate returned false, we should still update the + // memoized props/state to indicate that this work can be reused. + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; } - } - return null; - } - var forkStack = [], - forkStackIndex = 0, - treeForkProvider = null, - idStack = [], - idStackIndex = 0, - treeContextProvider = null; - function popTreeContext(workInProgress) { - for (; workInProgress === treeForkProvider;) { - treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; - } - for (; workInProgress === treeContextProvider;) { - treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; - } - } - var hydrationErrors = null, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; - function shallowEqual(objA, objB) { - if (objectIs(objA, objB)) return !0; - if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - for (keysB = 0; keysB < keysA.length; keysB++) { - var currentKey = keysA[keysB]; - if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; - } - return !0; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 5: - return describeComponentFrame(fiber.type, null, null); - case 16: - return describeComponentFrame("Lazy", null, null); - case 13: - return describeComponentFrame("Suspense", null, null); - case 19: - return describeComponentFrame("SuspenseList", null, null); - case 0: - case 2: - case 15: - return describeFunctionComponentFrame(fiber.type, null); - case 11: - return describeFunctionComponentFrame(fiber.type.render, null); - case 1: - return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress), workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function resolveDefaultProps(Component, baseProps) { - if (Component && Component.defaultProps) { - baseProps = assign({}, baseProps); - Component = Component.defaultProps; - for (var propName in Component) { - void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); + var didWarnAboutMaps; + var didWarnAboutGenerators; + var didWarnAboutStringRefs; + var ownerHasKeyUseWarning; + var ownerHasFunctionTypeWarning; + var warnForMissingKey = function warnForMissingKey(child, returnFiber) {}; + { + didWarnAboutMaps = false; + didWarnAboutGenerators = false; + didWarnAboutStringRefs = {}; + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + warnForMissingKey = function warnForMissingKey(child, returnFiber) { + if (child === null || typeof child !== "object") { + return; + } + if (!child._store || child._store.validated || child.key != null) { + return; + } + if (typeof child._store !== "object") { + throw new Error("React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); + } + child._store.validated = true; + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasKeyUseWarning[componentName]) { + return; + } + ownerHasKeyUseWarning[componentName] = true; + error("Each child in a list should have a unique " + '"key" prop. See https://reactjs.org/link/warning-keys for ' + "more information."); + }; } - return baseProps; - } - return baseProps; - } - var valueCursor = createCursor(null), - currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; - function resetContextDependencies() { - lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; - } - function popProvider(context) { - var currentValue = valueCursor.current; - pop(valueCursor); - context._currentValue = currentValue; - } - function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { - for (; null !== parent;) { - var alternate = parent.alternate; - (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); - if (parent === propagationRoot) break; - parent = parent.return; - } - } - function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; - workInProgress = workInProgress.dependencies; - null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); - } - function readContext(context) { - var value = context._currentValue; - if (lastFullyObservedContext !== context) if (context = { - context: context, - memoizedValue: value, - next: null - }, null === lastContextDependency) { - if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); - lastContextDependency = context; - currentlyRenderingFiber.dependencies = { - lanes: 0, - firstContext: context - }; - } else lastContextDependency = lastContextDependency.next = context; - return value; - } - var interleavedQueues = null, - hasForceUpdate = !1; - function initializeUpdateQueue(fiber) { - fiber.updateQueue = { - baseState: fiber.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { - pending: null, - interleaved: null, - lanes: 0 - }, - effects: null - }; - } - function cloneUpdateQueue(current, workInProgress) { - current = current.updateQueue; - workInProgress.updateQueue === current && (workInProgress.updateQueue = { - baseState: current.baseState, - firstBaseUpdate: current.firstBaseUpdate, - lastBaseUpdate: current.lastBaseUpdate, - shared: current.shared, - effects: current.effects - }); - } - function createUpdate(eventTime, lane) { - return { - eventTime: eventTime, - lane: lane, - tag: 0, - payload: null, - callback: null, - next: null - }; - } - function enqueueUpdate(fiber, update) { - var updateQueue = fiber.updateQueue; - null !== updateQueue && (updateQueue = updateQueue.shared, isInterleavedUpdate(fiber) ? (fiber = updateQueue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [updateQueue] : interleavedQueues.push(updateQueue)) : (update.next = fiber.next, fiber.next = update), updateQueue.interleaved = update) : (fiber = updateQueue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), updateQueue.pending = update)); - } - function entangleTransitions(root, fiber, lane) { - fiber = fiber.updateQueue; - if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { - var queueLanes = fiber.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - fiber.lanes = lane; - markRootEntangled(root, lane); - } - } - function enqueueCapturedUpdate(workInProgress, capturedUpdate) { - var queue = workInProgress.updateQueue, - current = workInProgress.alternate; - if (null !== current && (current = current.updateQueue, queue === current)) { - var newFirst = null, - newLast = null; - queue = queue.firstBaseUpdate; - if (null !== queue) { - do { - var clone = { - eventTime: queue.eventTime, - lane: queue.lane, - tag: queue.tag, - payload: queue.payload, - callback: queue.callback, - next: null - }; - null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; - queue = queue.next; - } while (null !== queue); - null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; - } else newFirst = newLast = capturedUpdate; - queue = { - baseState: current.baseState, - firstBaseUpdate: newFirst, - lastBaseUpdate: newLast, - shared: current.shared, - effects: current.effects - }; - workInProgress.updateQueue = queue; - return; - } - workInProgress = queue.lastBaseUpdate; - null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; - queue.lastBaseUpdate = capturedUpdate; - } - function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { - var queue = workInProgress$jscomp$0.updateQueue; - hasForceUpdate = !1; - var firstBaseUpdate = queue.firstBaseUpdate, - lastBaseUpdate = queue.lastBaseUpdate, - pendingQueue = queue.shared.pending; - if (null !== pendingQueue) { - queue.shared.pending = null; - var lastPendingUpdate = pendingQueue, - firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = null; - null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; - lastBaseUpdate = lastPendingUpdate; - var current = workInProgress$jscomp$0.alternate; - null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); - } - if (null !== firstBaseUpdate) { - var newState = queue.baseState; - lastBaseUpdate = 0; - current = firstPendingUpdate = lastPendingUpdate = null; - pendingQueue = firstBaseUpdate; - do { - var updateLane = pendingQueue.lane, - updateEventTime = pendingQueue.eventTime; - if ((renderLanes & updateLane) === updateLane) { - null !== current && (current = current.next = { - eventTime: updateEventTime, - lane: 0, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: pendingQueue.callback, - next: null - }); - a: { - var workInProgress = workInProgress$jscomp$0, - update = pendingQueue; - updateLane = props; - updateEventTime = instance; - switch (update.tag) { - case 1: - workInProgress = update.payload; - if ("function" === typeof workInProgress) { - newState = workInProgress.call(updateEventTime, newState, updateLane); - break a; + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + // TODO: Clean this up once we turn on the string ref warning for + // everyone, because the strict mode case will no longer be relevant + if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && + // We warn in ReactElement.js if owner and self are equal for string refs + // because these cannot be automatically converted to an arrow function + // using a codemod. Therefore, we don't have to warn about string refs again. + !(element._owner && element._self && element._owner.stateNode !== element._self)) { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (!didWarnAboutStringRefs[componentName]) { + { + error('A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", mixedRef); } - newState = workInProgress; - break a; - case 3: - workInProgress.flags = workInProgress.flags & -65537 | 128; - case 0: - workInProgress = update.payload; - updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; - if (null === updateLane || void 0 === updateLane) break a; - newState = assign({}, newState, updateLane); - break a; - case 2: - hasForceUpdate = !0; + didWarnAboutStringRefs[componentName] = true; + } + } + } + if (element._owner) { + var owner = element._owner; + var inst; + if (owner) { + var ownerFiber = owner; + if (ownerFiber.tag !== ClassComponent) { + throw new Error("Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref"); + } + inst = ownerFiber.stateNode; + } + if (!inst) { + throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + "bug in React. Please file an issue."); + } // Assigning this to a const so Flow knows it won't change in the closure + + var resolvedInst = inst; + { + checkPropStringCoercion(mixedRef, "ref"); + } + var stringRef = "" + mixedRef; // Check if previous string ref matches new string ref + + if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { + return current.ref; + } + var ref = function ref(value) { + var refs = resolvedInst.refs; + if (refs === emptyRefsObject) { + // This is a lazy pooled frozen object, so we need to initialize. + refs = resolvedInst.refs = {}; + } + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + ref._stringRef = stringRef; + return ref; + } else { + if (typeof mixedRef !== "string") { + throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + } + if (!element._owner) { + throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://reactjs.org/link/refs-must-have-owner for more information."); } } - null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); - } else updateEventTime = { - eventTime: updateEventTime, - lane: updateLane, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: pendingQueue.callback, - next: null - }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; - pendingQueue = pendingQueue.next; - if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; - } while (1); - null === current && (lastPendingUpdate = newState); - queue.baseState = lastPendingUpdate; - queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current; - props = queue.shared.interleaved; - if (null !== props) { - queue = props; - do { - lastBaseUpdate |= queue.lane, queue = queue.next; - } while (queue !== props); - } else null === firstBaseUpdate && (queue.shared.lanes = 0); - workInProgressRootSkippedLanes |= lastBaseUpdate; - workInProgress$jscomp$0.lanes = lastBaseUpdate; - workInProgress$jscomp$0.memoizedState = newState; - } - } - function commitUpdateQueue(finishedWork, finishedQueue, instance) { - finishedWork = finishedQueue.effects; - finishedQueue.effects = null; - if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { - var effect = finishedWork[finishedQueue], - callback = effect.callback; - if (null !== callback) { - effect.callback = null; - if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); - callback.call(instance); - } - } - } - var emptyRefsObject = new React.Component().refs; - function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { - ctor = workInProgress.memoizedState; - getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); - getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); - workInProgress.memoizedState = getDerivedStateFromProps; - 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); - } - var classComponentUpdater = { - isMounted: function isMounted(component) { - return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; - }, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - payload = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== payload && entangleTransitions(payload, inst, lane); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 1; - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - payload = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== payload && entangleTransitions(payload, inst, lane); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 2; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update); - callback = scheduleUpdateOnFiber(inst, lane, eventTime); - null !== callback && entangleTransitions(callback, inst, lane); - } - }; - function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { - workInProgress = workInProgress.stateNode; - return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; - } - function constructClassInstance(workInProgress, ctor, props) { - var isLegacyContextConsumer = !1, - unmaskedContext = emptyContextObject; - var context = ctor.contextType; - "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); - ctor = new ctor(props, context); - workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; - ctor.updater = classComponentUpdater; - workInProgress.stateNode = ctor; - ctor._reactInternals = workInProgress; - isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return ctor; - } - function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { - workInProgress = instance.state; - "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); - "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); - instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { - var instance = workInProgress.stateNode; - instance.props = newProps; - instance.state = workInProgress.memoizedState; - instance.refs = emptyRefsObject; - initializeUpdateQueue(workInProgress); - var contextType = ctor.contextType; - "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); - instance.state = workInProgress.memoizedState; - contextType = ctor.getDerivedStateFromProps; - "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); - "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); - "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); - } - function coerceRef(returnFiber, current, element) { - returnFiber = element.ref; - if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { - if (element._owner) { - element = element._owner; - if (element) { - if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); - var inst = element.stateNode; } - if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); - var resolvedInst = inst, - stringRef = "" + returnFiber; - if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; - current = function current(value) { - var refs = resolvedInst.refs; - refs === emptyRefsObject && (refs = resolvedInst.refs = {}); - null === value ? delete refs[stringRef] : refs[stringRef] = value; - }; - current._stringRef = stringRef; - return current; - } - if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); - if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); - } - return returnFiber; - } - function throwOnInvalidObjectType(returnFiber, newChild) { - returnFiber = Object.prototype.toString.call(newChild); - throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); - } - function resolveLazy(lazyType) { - var init = lazyType._init; - return init(lazyType._payload); - } - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (shouldTrackSideEffects) { - var deletions = returnFiber.deletions; - null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); + return mixedRef; } - } - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) return null; - for (; null !== currentFirstChild;) { - deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + function throwOnInvalidObjectType(returnFiber, newChild) { + var childString = Object.prototype.toString.call(newChild); + throw new Error("Objects are not valid as a React child (found: " + (childString === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : childString) + "). " + "If you meant to render a collection of children, use an array " + "instead."); } - return null; - } - function mapRemainingChildren(returnFiber, currentFirstChild) { - for (returnFiber = new Map(); null !== currentFirstChild;) { - null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + function warnOnFunctionType(returnFiber) { + { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasFunctionTypeWarning[componentName]) { + return; + } + ownerHasFunctionTypeWarning[componentName] = true; + error("Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it."); + } } - return returnFiber; - } - function useFiber(fiber, pendingProps) { - fiber = createWorkInProgress(fiber, pendingProps); - fiber.index = 0; - fiber.sibling = null; - return fiber; - } - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; - newIndex = newFiber.alternate; - if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; - newFiber.flags |= 2; - return lastPlacedIndex; - } - function placeSingleChild(newFiber) { - shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); - return newFiber; - } - function updateTextNode(returnFiber, current, textContent, lanes) { - if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; - current = useFiber(current, textContent); - current.return = returnFiber; - return current; - } - function updateElement(returnFiber, current, element, lanes) { - var elementType = element.type; - if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); - if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; - lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); - lanes.ref = coerceRef(returnFiber, current, element); - lanes.return = returnFiber; - return lanes; - } - function updatePortal(returnFiber, current, portal, lanes) { - if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; - current = useFiber(current, portal.children || []); - current.return = returnFiber; - return current; - } - function updateFragment(returnFiber, current, fragment, lanes, key) { - if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; - current = useFiber(current, fragment); - current.return = returnFiber; - return current; - } - function createChild(returnFiber, newChild, lanes) { - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; - case REACT_PORTAL_TYPE: - return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; - case REACT_LAZY_TYPE: - var init = newChild._init; - return createChild(returnFiber, init(newChild._payload), lanes); + function resolveLazy(lazyType) { + var payload = lazyType._payload; + var init = lazyType._init; + return init(payload); + } // This wrapper function exists because I expect to clone the code in each path + // to be able to optimize each path individually by branching early. This needs + // a compiler or we can do it manually. Helpers that don't need this branching + // live outside of this function. + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + // Noop. + return; + } + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [childToDelete]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(childToDelete); + } } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateSlot(returnFiber, oldFiber, newChild, lanes) { - var key = null !== oldFiber ? oldFiber.key : null; - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; - case REACT_PORTAL_TYPE: - return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; - case REACT_LAZY_TYPE: - return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + // Noop. + return null; + } // TODO: For the shouldClone case, this could be micro-optimized a bit by + // assuming that after the first child we've already added everything. + + var childToDelete = currentFirstChild; + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + return null; } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { - if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); - case REACT_PORTAL_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); - case REACT_LAZY_TYPE: - var init = newChild._init; - return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); + function mapRemainingChildren(returnFiber, currentFirstChild) { + // Add the remaining children to a temporary map so that we can find them by + // keys quickly. Implicit (null) keys get added to this set with their index + // instead. + var existingChildren = new Map(); + var existingChild = currentFirstChild; + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + existingChild = existingChild.sibling; + } + return existingChildren; } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); - throwOnInvalidObjectType(returnFiber, newChild); + function useFiber(fiber, pendingProps) { + // We currently set sibling to null and index to 0 here because it is easy + // to forget to do before returning it. E.g. for the single child case. + var clone = createWorkInProgress(fiber, pendingProps); + clone.index = 0; + clone.sibling = null; + return clone; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) { + // During hydration, the useId algorithm needs to know which fibers are + // part of a list of children (arrays, iterators). + newFiber.flags |= Forked; + return lastPlacedIndex; + } + var current = newFiber.alternate; + if (current !== null) { + var oldIndex = current.index; + if (oldIndex < lastPlacedIndex) { + // This is a move. + newFiber.flags |= Placement; + return lastPlacedIndex; + } else { + // This item can stay in place. + return oldIndex; + } + } else { + // This is an insertion. + newFiber.flags |= Placement; + return lastPlacedIndex; + } + } + function placeSingleChild(newFiber) { + // This is simpler for the single child case. We only need to do a + // placement for inserting new children. + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.flags |= Placement; + } + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (current === null || current.tag !== HostText) { + // Insert + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, textContent); + existing.return = returnFiber; + return existing; + } + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + } + if (current !== null) { + if (current.elementType === elementType || + // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(current, element) || + // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) { + // Move based on index + var existing = useFiber(current, element.props); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } // Insert + + var created = createFiberFromElement(element, returnFiber.mode, lanes); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + // Insert + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, portal.children || []); + existing.return = returnFiber; + return existing; + } + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (current === null || current.tag !== Fragment) { + // Insert + var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, fragment); + existing.return = returnFiber; + return existing; + } + } + function createChild(returnFiber, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. + var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, lanes); + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes); + _created2.return = returnFiber; + return _created2; + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return createChild(returnFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null); + _created3.return = returnFiber; + return _created3; + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + // Update the fiber if the keys match, otherwise return null. + var key = oldFiber !== null ? oldFiber.key : null; + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. + if (key !== null) { + return null; + } + return updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + return updateElement(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_LAZY_TYPE: + { + var payload = newChild._payload; + var init = newChild._init; + return updateSlot(returnFiber, oldFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + return updateFragment(returnFiber, oldFiber, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + // Text nodes don't have keys, so we neither have to check the old nor + // new node for the key. If both are text nodes, they match. + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updateElement(returnFiber, _matchedFiber, newChild, lanes); + } + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updatePortal(returnFiber, _matchedFiber2, newChild, lanes); + } + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes); + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + /** + * Warns if there is a duplicate or missing key + */ + + function warnOnInvalidKey(child, knownKeys, returnFiber) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child, returnFiber); + var key = child.key; + if (typeof key !== "string") { + break; + } + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + error("Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted โ€” the behavior is unsupported and " + "could change in a future version.", key); + break; + case REACT_LAZY_TYPE: + var payload = child._payload; + var init = child._init; + warnOnInvalidKey(init(payload), knownKeys, returnFiber); + break; + } + } + return knownKeys; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + // This algorithm can't optimize by searching from both ends since we + // don't have backpointers on fibers. I'm trying to see how far we can get + // with that model. If it ends up not being worth the tradeoffs, we can + // add it later. + // Even with a two ended optimization, we'd want to optimize for the case + // where there are few changes and brute force the comparison instead of + // going for the Map. It'd like to explore hitting that path first in + // forward-only mode and only go for the Map once we notice that we need + // lots of look ahead. This doesn't handle reversal as well as two ended + // search but that's unusual. Besides, for the two ended optimization to + // work on Iterables, we'd need to copy the whole set. + // In this first iteration, we'll just live with hitting the bad case + // (adding everything to a Map) in for every insert/move. + // If you change this code, also update reconcileChildrenIterator() which + // uses the same algorithm. + { + // First, validate keys. + var knownKeys = null; + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = newFiber; + } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) { + // We've reached the end of the new children. We can delete the rest. + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); + if (_newFiber === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + previousNewFiber = _newFiber; + } + return resultingFirstChild; + } // Add all children to a key map for quick lookups. + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); + if (_newFiber2 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + previousNewFiber = _newFiber2; + } + } + if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + // This is the same implementation as reconcileChildrenArray(), + // but using the iterator instead. + var iteratorFn = getIteratorFn(newChildrenIterable); + if (typeof iteratorFn !== "function") { + throw new Error("An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); + } + { + // We don't support rendering Generators because it's a mutation. + // See https://github.com/facebook/react/issues/12995 + if (typeof Symbol === "function" && + // $FlowFixMe Flow doesn't know about toStringTag + newChildrenIterable[Symbol.toStringTag] === "Generator") { + if (!didWarnAboutGenerators) { + error("Using Generators as children is unsupported and will likely yield " + "unexpected results because enumerating a generator mutates it. " + "You may convert it to an array with `Array.from()` or the " + "`[...spread]` operator before rendering. Keep in mind " + "you might need to polyfill these features for older browsers."); + } + didWarnAboutGenerators = true; + } // Warn about using Maps as children + + if (newChildrenIterable.entries === iteratorFn) { + if (!didWarnAboutMaps) { + error("Using Maps as children is not supported. " + "Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } // First, validate keys. + // We'll get a different iterator later for the main pass. + + var _newChildren = iteratorFn.call(newChildrenIterable); + if (_newChildren) { + var knownKeys = null; + var _step = _newChildren.next(); + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + if (newChildren == null) { + throw new Error("An iterable object provided no iterator."); + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = newFiber; + } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) { + // We've reached the end of the new children. We can delete the rest. + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, lanes); + if (_newFiber3 === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + previousNewFiber = _newFiber3; + } + return resultingFirstChild; + } // Add all children to a key map for quick lookups. + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + previousNewFiber = _newFiber4; + } + } + if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + return resultingFirstChild; + } + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { + // There's no need to check for keys on text nodes since we don't have a + // way to define them. + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + // We already have an existing node so let's just update it and delete + // the rest. + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent); + existing.return = returnFiber; + return existing; + } // The existing first child is not a text node so we need to create one + // and delete the existing ones. + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) { + var key = element.key; + var child = currentFirstChild; + while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. + if (child.key === key) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + if (child.tag === Fragment) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.props.children); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } else { + if (child.elementType === elementType || + // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(child, element) || + // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var _existing = useFiber(child, element.props); + _existing.ref = coerceRef(returnFiber, child, element); + _existing.return = returnFiber; + { + _existing._debugSource = element._source; + _existing._debugOwner = element._owner; + } + return _existing; + } + } // Didn't match. + + deleteRemainingChildren(returnFiber, child); + break; + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, lanes); + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) { + var key = portal.key; + var child = currentFirstChild; + while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || []); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } // This API will tag the children with the side-effect of the reconciliation + // itself. They will be added to the side-effect list as we pass through the + // children and the parent. + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + // This function is not recursive. + // If the top level item is an array, we treat it as a set of children, + // not as a fragment. Nested arrays on the other hand will be treated as + // fragment nodes. Recursion happens at the normal flow. + // Handle top level unkeyed fragments as if they were arrays. + // This leads to an ambiguity between <>{[...]} and <>.... + // We treat the ambiguous cases above the same. + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } // Handle object types + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; // TODO: This function is supposed to be non-recursive. + + return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes); + } + if (isArray(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + } + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, lanes)); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } // Remaining cases are all treated as empty. + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; } - return null; - } - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { - for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + function cloneChildFibers(current, workInProgress) { + if (current !== null && workInProgress.child !== current.child) { + throw new Error("Resuming work not yet implemented."); + } + if (workInProgress.child === null) { + return; + } + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); + workInProgress.child = newChild; + newChild.return = workInProgress; + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); + newChild.return = workInProgress; + } + newChild.sibling = null; + } // Reset a workInProgress child set to prepare it for a second pass. + + function resetChildFibers(workInProgress, lanes) { + var child = workInProgress.child; + while (child !== null) { + resetWorkInProgress(child, lanes); + child = child.sibling; } - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; } - if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; - if (null === oldFiber) { - for (; newIdx < newChildren.length; newIdx++) { - oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) { + throw new Error("Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); } - return resultingFirstChild; + return c; } - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { - nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; } - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return resultingFirstChild; - } - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { - var iteratorFn = getIteratorFn(newChildrenIterable); - if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); - newChildrenIterable = iteratorFn.call(newChildrenIterable); - if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); - for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; - } - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; + function pushHostContainer(fiber, nextRootInstance) { + // Push current root instance onto the stack; + // This allows us to reset root when portals are popped. + push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + + push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack. + // However, we can't just call getRootHostContext() and push it because + // we'd have a different number of entries on the stack depending on + // whether getRootHostContext() throws somewhere in renderer code or not. + // So we push an empty value first. This lets us safely unwind on errors. + + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(); // Now that we know this function doesn't throw, replace it. + + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); } - if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; - if (null === oldFiber) { - for (; !step.done; newIdx++, step = newChildrenIterable.next()) { - step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. + + if (context === nextContext) { + return; + } // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + function popHostContext(fiber) { + // Do not pop unless this Fiber provided the current context. + // pushHostContext() only pushes Fibers that provide unique contexts. + if (contextFiberStackCursor.current !== fiber) { + return; } - return iteratorFn; + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); } - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { - step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is + // inherited deeply down the subtree. The upper bits only affect + // this immediate suspense boundary and gets reset each new + // boundary or suspense list. + + var SubtreeSuspenseContextMask = 1; // Subtree Flags: + // InvisibleParentSuspenseContext indicates that one of our parent Suspense + // boundaries is not currently showing visible main content. + // Either because it is already showing a fallback or is not mounted at all. + // We can use this to determine if it is desirable to trigger a fallback at + // the parent. If not, then we might need to trigger undesirable boundaries + // and/or suspend the commit to avoid hiding the parent content. + + var InvisibleParentSuspenseContext = 1; // Shallow Flags: + // ForceSuspenseFallback can be used by SuspenseList to force newly added + // items into their fallback state during one of the render passes. + + var ForceSuspenseFallback = 2; + var suspenseStackCursor = createCursor(DefaultSuspenseContext); + function hasSuspenseContext(parentContext, flag) { + return (parentContext & flag) !== 0; } - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return iteratorFn; - } - function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { - "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - a: { - for (var key = newChild.key, child = currentFirstChild; null !== child;) { - if (child.key === key) { - key = newChild.type; - if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props.children); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - currentFirstChild.ref = coerceRef(returnFiber, child, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - deleteRemainingChildren(returnFiber, child); - break; - } else deleteChild(returnFiber, child); - child = child.sibling; + function setDefaultShallowSuspenseContext(parentContext) { + return parentContext & SubtreeSuspenseContextMask; + } + function setShallowSuspenseContext(parentContext, shallowContext) { + return parentContext & SubtreeSuspenseContextMask | shallowContext; + } + function addSubtreeSuspenseContext(parentContext, subtreeContext) { + return parentContext | subtreeContext; + } + function pushSuspenseContext(fiber, newContext) { + push(suspenseStackCursor, newContext, fiber); + } + function popSuspenseContext(fiber) { + pop(suspenseStackCursor, fiber); + } + function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { + // If it was the primary children that just suspended, capture and render the + // fallback. Otherwise, don't capture and bubble to the next boundary. + var nextState = workInProgress.memoizedState; + if (nextState !== null) { + if (nextState.dehydrated !== null) { + // A dehydrated boundary always captures. + return true; + } + return false; + } + var props = workInProgress.memoizedProps; // Regular boundaries always capture. + + { + return true; + } // If it's a boundary we should avoid, then we prefer to bubble up to the + } + + function findFirstSuspended(row) { + var node = row; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + var dehydrated = state.dehydrated; + if (dehydrated === null || isSuspenseInstancePending() || isSuspenseInstanceFallback()) { + return node; } - newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); } - return placeSingleChild(returnFiber); - case REACT_PORTAL_TYPE: - a: { - for (child = newChild.key; null !== currentFirstChild;) { - if (currentFirstChild.key === child) { - if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - currentFirstChild = useFiber(currentFirstChild, newChild.children || []); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, currentFirstChild); - break; - } - } else deleteChild(returnFiber, currentFirstChild); - currentFirstChild = currentFirstChild.sibling; - } - currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + } else if (node.tag === SuspenseListComponent && + // revealOrder undefined can't be trusted because it don't + // keep track of whether it suspended or not. + node.memoizedProps.revealOrder !== undefined) { + var didSuspend = (node.flags & DidCapture) !== NoFlags; + if (didSuspend) { + return node; } - return placeSingleChild(returnFiber); - case REACT_LAZY_TYPE: - return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) { + return null; + } + while (node.sibling === null) { + if (node.return === null || node.return === row) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; } - if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); - if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); - throwOnInvalidObjectType(returnFiber, newChild); + return null; } - return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); - } - return reconcileChildFibers; - } - var reconcileChildFibers = ChildReconciler(!0), - mountChildFibers = ChildReconciler(!1), - NO_CONTEXT = {}, - contextStackCursor$1 = createCursor(NO_CONTEXT), - contextFiberStackCursor = createCursor(NO_CONTEXT), - rootInstanceStackCursor = createCursor(NO_CONTEXT); - function requiredContext(c) { - if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); - return c; - } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance); - push(contextFiberStackCursor, fiber); - push(contextStackCursor$1, NO_CONTEXT); - pop(contextStackCursor$1); - push(contextStackCursor$1, { - isInAParentText: !1 - }); - } - function popHostContainer() { - pop(contextStackCursor$1); - pop(contextFiberStackCursor); - pop(rootInstanceStackCursor); - } - function pushHostContext(fiber) { - requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var JSCompiler_inline_result = fiber.type; - JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; - JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { - isInAParentText: JSCompiler_inline_result - } : context; - context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); - } - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); - } - var suspenseStackCursor = createCursor(0); - function findFirstSuspended(row) { - for (var node = row; null !== node;) { - if (13 === node.tag) { - var state = node.memoizedState; - if (null !== state && (null === state.dehydrated || shim() || shim())) return node; - } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { - if (0 !== (node.flags & 128)) return node; - } else if (null !== node.child) { - node.child.return = node; - node = node.child; - continue; + var NoFlags$1 = /* */ + 0; // Represents whether effect should fire. + + var HasEffect = /* */ + 1; // Represents the phase in which the effect (not the clean-up) fires. + + var Insertion = /* */ + 2; + var Layout = /* */ + 4; + var Passive$1 = /* */ + 8; + + // and should be reset before starting a new render. + // This tracks which mutable sources need to be reset after a render. + + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + var mutableSource = workInProgressSources[i]; + { + mutableSource._workInProgressVersionPrimary = null; + } + } + workInProgressSources.length = 0; } - if (node === row) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === row) return null; - node = node.return; + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + var didWarnAboutMismatchedHooksForComponent; + var didWarnUncachedGetSnapshot; + { + didWarnAboutMismatchedHooksForComponent = new Set(); } - node.sibling.return = node.return; - node = node.sibling; - } - return null; - } - var workInProgressSources = []; - function resetWorkInProgressVersions() { - for (var i = 0; i < workInProgressSources.length; i++) { - workInProgressSources[i]._workInProgressVersionPrimary = null; - } - workInProgressSources.length = 0; - } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber$1 = null, - currentHook = null, - workInProgressHook = null, - didScheduleRenderPhaseUpdate = !1, - didScheduleRenderPhaseUpdateDuringThisPass = !1, - globalClientIdCounter = 0; - function throwInvalidHookError() { - 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); - } - function areHookInputsEqual(nextDeps, prevDeps) { - if (null === prevDeps) return !1; - for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { - if (!objectIs(nextDeps[i], prevDeps[i])) return !1; - } - return !0; - } - function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber$1 = workInProgress; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - workInProgress.lanes = 0; - ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; - current = Component(props, secondArg); - if (didScheduleRenderPhaseUpdateDuringThisPass) { - nextRenderLanes = 0; - do { - didScheduleRenderPhaseUpdateDuringThisPass = !1; - if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); - nextRenderLanes += 1; - workInProgressHook = currentHook = null; + + // These are set right before calling the component. + var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from + // the work-in-progress hook. + + var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The + // current hook list is the list that belongs to the current fiber. The + // work-in-progress hook list is a new list that will be added to the + // work-in-progress fiber. + + var currentHook = null; + var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This + // does not get reset if we do another render pass; only when we're completely + // finished evaluating this component. This is an optimization so we know + // whether we need to clear render phase updates after a throw. + + var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This + // gets reset after each attempt. + // TODO: Maybe there's some way to consolidate this with + // `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`. + + var didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component. + // hydration). This counter is global, so client ids are not stable across + // render attempts. + + var globalClientIdCounter = 0; + var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook + + var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders. + // The list stores the order of hooks used during the initial render (mount). + // Subsequent renders (updates) reference this list. + + var hookTypesDev = null; + var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore + // the dependencies for Hooks that need them (e.g. useEffect or useMemo). + // When true, such Hooks will always be "remounted". Only used during hot reload. + + var ignorePreviousDependencies = false; + function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } + } + function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } + } + function checkDepsAreArrayDev(deps) { + { + if (deps !== undefined && deps !== null && !isArray(deps)) { + // Verify deps, but only on mount to avoid extra checks. + // It's unlikely their type would change as usually you define them inline. + error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps); + } + } + } + function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + if (hookTypesDev !== null) { + var table = ""; + var secondColumnStart = 30; + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up + // lol @ IE not supporting String#repeat + + while (row.length < secondColumnStart) { + row += " "; + } + row += newHookName + "\n"; + table += row; + } + error("React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); + } + } + } + } + function throwInvalidHookError() { + throw new 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:\n" + "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + { + if (ignorePreviousDependencies) { + // Only true when this component is being hot reloaded. + return false; + } + } + if (prevDeps === null) { + { + error("%s received a final argument during this render, but not during " + "the previous render. Even though the final argument is optional, " + "its type cannot change between renders.", currentHookNameInDev); + } + return false; + } + { + // Don't bother comparing lengths in prod because these arrays should be + // passed inline. + if (nextDeps.length !== prevDeps.length) { + error("The final argument passed to %s changed size between renders. The " + "order and size of this array must remain constant.\n\n" + "Previous: %s\n" + "Incoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); + } + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + { + hookTypesDev = current !== null ? current._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; // Used for hot reloading: + + ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; + } + workInProgress.memoizedState = null; workInProgress.updateQueue = null; - ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; - current = Component(props, secondArg); - } while (didScheduleRenderPhaseUpdateDuringThisPass); - } - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - workInProgress = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; - didScheduleRenderPhaseUpdate = !1; - if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); - return current; - } - function mountWorkInProgressHook() { - var hook = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; - return workInProgressHook; - } - function updateWorkInProgressHook() { - if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber$1.alternate; - nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; - } else nextCurrentHook = currentHook.next; - var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; - if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { - if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); - currentHook = nextCurrentHook; - nextCurrentHook = { - memoizedState: currentHook.memoizedState, - baseState: currentHook.baseState, - baseQueue: currentHook.baseQueue, - queue: currentHook.queue, - next: null - }; - null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; - } - return workInProgressHook; - } - function basicStateReducer(state, action) { - return "function" === typeof action ? action(state) : action; - } - function updateReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); - queue.lastRenderedReducer = reducer; - var current = currentHook, - baseQueue = current.baseQueue, - pendingQueue = queue.pending; - if (null !== pendingQueue) { - if (null !== baseQueue) { - var baseFirst = baseQueue.next; - baseQueue.next = pendingQueue.next; - pendingQueue.next = baseFirst; + workInProgress.lanes = NoLanes; // The following should have already been reset + // currentHook = null; + // workInProgressHook = null; + // didScheduleRenderPhaseUpdate = false; + // localIdCounter = 0; + // TODO Warn if no hooks are used at all during mount, then some are used during update. + // Currently we will identify the update render as a mount because memoizedState === null. + // This is tricky because it's valid for certain types of components (e.g. React.lazy) + // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used. + // Non-stateful hooks (e.g. context) don't get added to memoizedState, + // so memoizedState would be null during updates and mounts. + + { + if (current !== null && current.memoizedState !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + // This dispatcher handles an edge case where a component is updating, + // but no stateful hooks have been used. + // We want to match the production code behavior (which will use HooksDispatcherOnMount), + // but with the extra DEV validation to ensure hooks ordering hasn't changed. + // This dispatcher does that. + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; + } + } + var children = Component(props, secondArg); // Check if there was a render phase update + + if (didScheduleRenderPhaseUpdateDuringThisPass) { + // Keep rendering in a loop for as long as render phase updates continue to + // be scheduled. Use a counter to prevent infinite loops. + var numberOfReRenders = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = false; + if (numberOfReRenders >= RE_RENDER_LIMIT) { + throw new Error("Too many re-renders. React limits the number of renders to prevent " + "an infinite loop."); + } + numberOfReRenders += 1; + { + // Even when hot reloading, allow dependencies to stabilize + // after first render to prevent infinite render phase updates. + ignorePreviousDependencies = false; + } // Start over from the beginning of the list + + currentHook = null; + workInProgressHook = null; + workInProgress.updateQueue = null; + { + // Also validate hook order for cascading updates. + hookTypesUpdateIndexDev = -1; + } + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; + children = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrance. + + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + { + workInProgress._debugHookTypes = hookTypesDev; + } // This check uses currentHook so that it works the same in DEV and prod bundles. + // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. + + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last + // render. If this fires, it suggests that we incorrectly reset the static + // flags in some other part of the codebase. This has happened before, for + // example, in the SuspenseList implementation. + + if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && + // Disable this warning in legacy mode, because legacy Suspense is weird + // and creates false positives. To make this work in legacy mode, we'd + // need to mark fibers that commit in an incomplete state, somehow. For + // now I'll disable the warning that most of the bugs that would trigger + // it are either exclusive to concurrent mode or exist in both. + (current.mode & ConcurrentMode) !== NoMode) { + error("Internal React error: Expected static flag was missing. Please " + "notify the React team."); + } + } + didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook + // localIdCounter = 0; + + if (didRenderTooFewHooks) { + throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental " + "early return statement."); + } + return children; } - current.baseQueue = baseQueue = pendingQueue; - queue.pending = null; - } - if (null !== baseQueue) { - pendingQueue = baseQueue.next; - current = current.baseState; - var newBaseQueueFirst = baseFirst = null, - newBaseQueueLast = null, - update = pendingQueue; - do { - var updateLane = update.lane; - if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { - lane: 0, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, + function bailoutHooks(current, workInProgress, lanes) { + workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the + // complete phase (bubbleProperties). + + { + workInProgress.flags &= ~(Passive | Update); + } + current.lanes = removeLanes(current.lanes, lanes); + } + function resetHooksAfterThrow() { + // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrance. + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + // There were render phase updates. These are only valid for this render + // phase, which we are now aborting. Remove the updates from the queues so + // they do not persist to the next render. Do not remove updates from hooks + // that weren't processed. + // + // Only reset the updates from the queue if it has a clone. If it does + // not have a clone, that means it wasn't processed, and the updates were + // scheduled before we entered the render phase. + var hook = currentlyRenderingFiber$1.memoizedState; + while (hook !== null) { + var queue = hook.queue; + if (queue !== null) { + queue.pending = null; + } + hook = hook.next; + } + didScheduleRenderPhaseUpdate = false; + } + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + currentHookNameInDev = null; + isUpdatingOpaqueValueInRenderPhase = false; + } + didScheduleRenderPhaseUpdateDuringThisPass = false; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, next: null - }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { - var clone = { - lane: updateLane, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, + }; + if (workInProgressHook === null) { + // This is the first hook in the list + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; + } else { + // Append to the end of the list + workInProgressHook = workInProgressHook.next = hook; + } + return workInProgressHook; + } + function updateWorkInProgressHook() { + // This function is used both for updates and for re-renders triggered by a + // render phase update. It assumes there is either a current hook we can + // clone, or a work-in-progress hook from a previous render pass that we can + // use as a base. When we reach the end of the base list, we must switch to + // the dispatcher used for mounts. + var nextCurrentHook; + if (currentHook === null) { + var current = currentlyRenderingFiber$1.alternate; + if (current !== null) { + nextCurrentHook = current.memoizedState; + } else { + nextCurrentHook = null; + } + } else { + nextCurrentHook = currentHook.next; + } + var nextWorkInProgressHook; + if (workInProgressHook === null) { + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; + } else { + nextWorkInProgressHook = workInProgressHook.next; + } + if (nextWorkInProgressHook !== null) { + // There's already a work-in-progress. Reuse it. + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + currentHook = nextCurrentHook; + } else { + // Clone from the current hook. + if (nextCurrentHook === null) { + throw new Error("Rendered more hooks than during the previous render."); + } + currentHook = nextCurrentHook; + var newHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, next: null }; - null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; - currentlyRenderingFiber$1.lanes |= updateLane; - workInProgressRootSkippedLanes |= updateLane; + if (workInProgressHook === null) { + // This is the first hook in the list. + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; + } else { + // Append to the end of the list. + workInProgressHook = workInProgressHook.next = newHook; + } } - update = update.next; - } while (null !== update && update !== pendingQueue); - null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; - objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = current; - hook.baseState = baseFirst; - hook.baseQueue = newBaseQueueLast; - queue.lastRenderedState = current; - } - reducer = queue.interleaved; - if (null !== reducer) { - baseQueue = reducer; - do { - pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; - } while (baseQueue !== reducer); - } else null === baseQueue && (queue.lanes = 0); - return [hook.memoizedState, queue.dispatch]; - } - function rerenderReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); - queue.lastRenderedReducer = reducer; - var dispatch = queue.dispatch, - lastRenderPhaseUpdate = queue.pending, - newState = hook.memoizedState; - if (null !== lastRenderPhaseUpdate) { - queue.pending = null; - var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; - do { - newState = reducer(newState, update.action), update = update.next; - } while (update !== lastRenderPhaseUpdate); - objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = newState; - null === hook.baseQueue && (hook.baseState = newState); - queue.lastRenderedState = newState; - } - return [newState, dispatch]; - } - function updateMutableSource() {} - function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber$1, - hook = updateWorkInProgressHook(), - nextSnapshot = getSnapshot(), - snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); - snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); - hook = hook.queue; - updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); - if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { - fiber.flags |= 2048; - pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); - if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - } - return nextSnapshot; - } - function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { - fiber.flags |= 16384; - fiber = { - getSnapshot: getSnapshot, - value: renderedSnapshot - }; - getSnapshot = currentlyRenderingFiber$1.updateQueue; - null === getSnapshot ? (getSnapshot = { - lastEffect: null, - stores: null - }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); - } - function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { - inst.value = nextSnapshot; - inst.getSnapshot = getSnapshot; - checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); - } - function subscribeToStore(fiber, inst, subscribe) { - return subscribe(function () { - checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1); - }); - } - function checkIfSnapshotChanged(inst) { - var latestGetSnapshot = inst.getSnapshot; - inst = inst.value; - try { - var nextValue = latestGetSnapshot(); - return !objectIs(inst, nextValue); - } catch (error) { - return !0; - } - } - function mountState(initialState) { - var hook = mountWorkInProgressHook(); - "function" === typeof initialState && (initialState = initialState()); - hook.memoizedState = hook.baseState = initialState; - initialState = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: basicStateReducer, - lastRenderedState: initialState - }; - hook.queue = initialState; - initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); - return [hook.memoizedState, initialState]; - } - function pushEffect(tag, create, destroy, deps) { - tag = { - tag: tag, - create: create, - destroy: destroy, - deps: deps, - next: null - }; - create = currentlyRenderingFiber$1.updateQueue; - null === create ? (create = { - lastEffect: null, - stores: null - }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); - return tag; - } - function updateRef() { - return updateWorkInProgressHook().memoizedState; - } - function mountEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = mountWorkInProgressHook(); - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); - } - function updateEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var destroy = void 0; - if (null !== currentHook) { - var prevEffect = currentHook.memoizedState; - destroy = prevEffect.destroy; - if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { - hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); - return; + return workInProgressHook; } - } - currentlyRenderingFiber$1.flags |= fiberFlags; - hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); - } - function mountEffect(create, deps) { - return mountEffectImpl(8390656, 8, create, deps); - } - function updateEffect(create, deps) { - return updateEffectImpl(2048, 8, create, deps); - } - function updateInsertionEffect(create, deps) { - return updateEffectImpl(4, 2, create, deps); - } - function updateLayoutEffect(create, deps) { - return updateEffectImpl(4, 4, create, deps); - } - function imperativeHandleEffect(create, ref) { - if ("function" === typeof ref) return create = create(), ref(create), function () { - ref(null); - }; - if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { - ref.current = null; - }; - } - function updateImperativeHandle(ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); - } - function mountDebugValue() {} - function updateCallback(callback, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; - hook.memoizedState = [callback, deps]; - return callback; - } - function updateMemo(nextCreate, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; - } - function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; - objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); - return prevValue; - } - function startTransition(setPending, callback) { - var previousPriority = currentUpdatePriority; - currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; - setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; - try { - setPending(!1), callback(); - } finally { - currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; - } - } - function updateId() { - return updateWorkInProgressHook().memoizedState; - } - function dispatchReducerAction(fiber, queue, action) { - var lane = requestUpdateLane(fiber); - action = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (enqueueUpdate$1(fiber, queue, action), action = requestEventTime(), fiber = scheduleUpdateOnFiber(fiber, lane, action), null !== fiber && entangleTransitionUpdate(fiber, queue, lane)); - } - function dispatchSetState(fiber, queue, action) { - var lane = requestUpdateLane(fiber), - update = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { - enqueueUpdate$1(fiber, queue, update); - var alternate = fiber.alternate; - if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { - var currentState = queue.lastRenderedState, - eagerState = alternate(currentState, action); - update.hasEagerState = !0; - update.eagerState = eagerState; - if (objectIs(eagerState, currentState)) return; - } catch (error) {} finally {} - action = requestEventTime(); - fiber = scheduleUpdateOnFiber(fiber, lane, action); - null !== fiber && entangleTransitionUpdate(fiber, queue, lane); - } - } - function isRenderPhaseUpdate(fiber) { - var alternate = fiber.alternate; - return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; - } - function enqueueRenderPhaseUpdate(queue, update) { - didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; - var pending = queue.pending; - null === pending ? update.next = update : (update.next = pending.next, pending.next = update); - queue.pending = update; - } - function enqueueUpdate$1(fiber, queue, update) { - isInterleavedUpdate(fiber) ? (fiber = queue.interleaved, null === fiber ? (update.next = update, null === interleavedQueues ? interleavedQueues = [queue] : interleavedQueues.push(queue)) : (update.next = fiber.next, fiber.next = update), queue.interleaved = update) : (fiber = queue.pending, null === fiber ? update.next = update : (update.next = fiber.next, fiber.next = update), queue.pending = update); - } - function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { - var queueLanes = queue.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - queue.lanes = lane; - markRootEntangled(root, lane); - } - } - var ContextOnlyDispatcher = { - readContext: readContext, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useMutableSource: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnMount = { - readContext: readContext, - useCallback: function useCallback(callback, deps) { - mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; - return callback; - }, - useContext: readContext, - useEffect: mountEffect, - useImperativeHandle: function useImperativeHandle(ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); - }, - useLayoutEffect: function useLayoutEffect(create, deps) { - return mountEffectImpl(4, 4, create, deps); - }, - useInsertionEffect: function useInsertionEffect(create, deps) { - return mountEffectImpl(4, 2, create, deps); - }, - useMemo: function useMemo(nextCreate, deps) { - var hook = mountWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; - }, - useReducer: function useReducer(reducer, initialArg, init) { + function createFunctionComponentUpdateQueue() { + return { + lastEffect: null, + stores: null + }; + } + function basicStateReducer(state, action) { + // $FlowFixMe: Flow doesn't like mixed types + return typeof action === "function" ? action(state) : action; + } + function mountReducer(reducer, initialArg, init) { var hook = mountWorkInProgressHook(); - initialArg = void 0 !== init ? init(initialArg) : initialArg; - hook.memoizedState = hook.baseState = initialArg; - reducer = { + var initialState; + if (init !== undefined) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + hook.memoizedState = hook.baseState = initialState; + var queue = { pending: null, interleaved: null, - lanes: 0, + lanes: NoLanes, dispatch: null, lastRenderedReducer: reducer, - lastRenderedState: initialArg + lastRenderedState: initialState }; - hook.queue = reducer; - reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); - return [hook.memoizedState, reducer]; - }, - useRef: function useRef(initialValue) { + hook.queue = queue; + var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + var current = currentHook; // The last rebase update that is NOT part of the base state. + + var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet. + + var pendingQueue = queue.pending; + if (pendingQueue !== null) { + // We have new updates that haven't been processed yet. + // We'll add them to the base queue. + if (baseQueue !== null) { + // Merge the pending queue and the base queue. + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + { + if (current.baseQueue !== baseQueue) { + // Internal invariant that should never happen, but feasibly could in + // the future if we implement resuming, or some form of that. + error("Internal error: Expected work-in-progress queue to be a clone. " + "This is a bug in React."); + } + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (baseQueue !== null) { + // We have a queue to process. + var first = baseQueue.next; + var newState = current.baseState; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + var update = first; + do { + var updateLane = update.lane; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } // Update the remaining priority in the queue. + // TODO: Don't need to accumulate this. Instead, we can remove + // renderLanes from the original lanes. + + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); + markSkippedUpdateLanes(updateLane); + } else { + // This update does have sufficient priority. + if (newBaseQueueLast !== null) { + var _clone = { + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. + lane: NoLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } // Process this update. + + if (update.hasEagerState) { + // If this update is a state update (not a reducer) and was processed eagerly, + // we can use the eagerly computed state + newState = update.eagerState; + } else { + var action = update.action; + newState = reducer(newState, action); + } + } + update = update.next; + } while (update !== null && update !== first); + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } // Mark that the fiber performed work, but only if the new state is + // different from the current state. + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + hook.baseState = newBaseState; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = newState; + } // Interleaved updates are stored on a separate queue. We aren't going to + // process them during this render, but we do need to track which lanes + // are remaining. + + var lastInterleaved = queue.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + var interleavedLane = interleaved.lane; + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane); + markSkippedUpdateLanes(interleavedLane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (baseQueue === null) { + // `queue.lanes` is used for entangling transitions. We can set it back to + // zero once the queue is empty. + queue.lanes = NoLanes; + } + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; + } + function rerenderReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous + // work-in-progress hook. + + var dispatch = queue.dispatch; + var lastRenderPhaseUpdate = queue.pending; + var newState = hook.memoizedState; + if (lastRenderPhaseUpdate !== null) { + // The queue doesn't persist past this render pass. + queue.pending = null; + var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; + var update = firstRenderPhaseUpdate; + do { + // Process this render phase update. We don't have to check the + // priority because it will always be the same as the current + // render's. + var action = update.action; + newState = reducer(newState, action); + update = update.next; + } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is + // different from the current state. + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to + // the base state unless the queue is empty. + // TODO: Not sure if this is the desired semantics, but it's what we + // do for gDSFP. I can't remember why. + + if (hook.baseQueue === null) { + hook.baseState = newState; + } + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function mountMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function updateMutableSource(source, getSnapshot, subscribe) { + { + return undefined; + } + } + function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; var hook = mountWorkInProgressHook(); - initialValue = { - current: initialValue - }; - return hook.memoizedState = initialValue; - }, - useState: mountState, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - return mountWorkInProgressHook().memoizedState = value; - }, - useTransition: function useTransition() { - var _mountState = mountState(!1), - isPending = _mountState[0]; - _mountState = startTransition.bind(null, _mountState[1]); - mountWorkInProgressHook().memoizedState = _mountState; - return [isPending, _mountState]; - }, - useMutableSource: function useMutableSource() {}, - useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber$1, - hook = mountWorkInProgressHook(); - var nextSnapshot = getSnapshot(); - if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + var nextSnapshot; + { + nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } // Unless we're rendering a blocking lane, schedule a consistency check. + // Right before committing, we will walk the tree and check if any of the + // stores were mutated. + // + // We won't do this if we're hydrating server-rendered content, because if + // the content is stale, it's already visible anyway. Instead we'll patch + // it up in a passive effect. + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } // Read the current snapshot from the store on every render. This breaks the + // normal rules of React, and only works because store updates are + // always synchronous. + hook.memoizedState = nextSnapshot; var inst = { value: nextSnapshot, getSnapshot: getSnapshot }; - hook.queue = inst; - mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); - fiber.flags |= 2048; - pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + hook.queue = inst; // Schedule an effect to subscribe to the store. + + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update + // this whenever subscribe, getSnapshot, or value changes. Because there's no + // clean-up function, and we track the deps correctly, we can call pushEffect + // directly, without storing any additional state. For the same reason, we + // don't need to set a static flag, either. + // TODO: We can move this to the passive phase once we add a pre-commit + // consistency check. See the next comment. + + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); return nextSnapshot; - }, - useId: function useId() { - var hook = mountWorkInProgressHook(), - identifierPrefix = workInProgressRoot.identifierPrefix, - globalClientId = globalClientIdCounter++; - identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; - return hook.memoizedState = identifierPrefix; - }, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnUpdate = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: updateReducer, - useRef: updateRef, - useState: function useState() { + } + function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the + // normal rules of React, and only works because store updates are + // always synchronous. + + var nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + var prevSnapshot = hook.memoizedState; + var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot); + if (snapshotChanged) { + hook.memoizedState = nextSnapshot; + markWorkInProgressReceivedUpdate(); + } + var inst = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the + // commit phase if there was an interleaved mutation. In concurrent mode + // this can happen all the time, but even in synchronous mode, an earlier + // effect may have mutated the store. + + if (inst.getSnapshot !== getSnapshot || snapshotChanged || + // Check if the susbcribe function changed. We can save some memory by + // checking whether we scheduled a subscription effect above. + workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check. + // Right before committing, we will walk the tree and check if any of the + // stores were mutated. + + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= StoreConsistency; + var check = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.stores = [check]; + } else { + var stores = componentUpdateQueue.stores; + if (stores === null) { + componentUpdateQueue.stores = [check]; + } else { + stores.push(check); + } + } + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + // These are updated in the passive phase + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could + // have been in an event that fired before the passive effects, or it could + // have been in a layout effect. In that case, we would have used the old + // snapsho and getSnapshot values to bail out. We need to check one more time. + + if (checkIfSnapshotChanged(inst)) { + // Force a re-render. + forceStoreRerender(fiber); + } + } + function subscribeToStore(fiber, inst, subscribe) { + var handleStoreChange = function handleStoreChange() { + // The store changed. Check if the snapshot changed since the last time we + // read from the store. + if (checkIfSnapshotChanged(inst)) { + // Force a re-render. + forceStoreRerender(fiber); + } + }; // Subscribe to the store and return a clean-up function. + + return subscribe(handleStoreChange); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + var prevValue = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(prevValue, nextValue); + } catch (error) { + return true; + } + } + function forceStoreRerender(fiber) { + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + if (typeof initialState === "function") { + // $FlowFixMe: Flow doesn't like mixed types + initialState = initialState(); + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateState(initialState) { return updateReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - var hook = updateWorkInProgressHook(); - return updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function useTransition() { - var isPending = updateReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId, - unstable_isNewReconciler: !1 - }, - HooksDispatcherOnRerender = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: rerenderReducer, - useRef: updateRef, - useState: function useState() { + } + function rerenderState(initialState) { return rerenderReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function useDeferredValue(value) { - var hook = updateWorkInProgressHook(); - return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function useTransition() { - var isPending = rerenderReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId, - unstable_isNewReconciler: !1 - }; - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackByFiberInDevAndProd(source) - }; - } - if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); - function logCapturedError(boundary, errorInfo) { - try { - !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ - componentStack: null !== errorInfo.stack ? errorInfo.stack : "", - error: errorInfo.value, - errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null - }) && console.error(errorInfo.value); - } catch (e) { - setTimeout(function () { - throw e; - }); - } - } - var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; - function createRootErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - lane.payload = { - element: null - }; - var error = errorInfo.value; - lane.callback = function () { - hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); - logCapturedError(fiber, errorInfo); - }; - return lane; - } - function createClassErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - var getDerivedStateFromError = fiber.type.getDerivedStateFromError; - if ("function" === typeof getDerivedStateFromError) { - var error = errorInfo.value; - lane.payload = function () { - return getDerivedStateFromError(error); - }; - lane.callback = function () { - logCapturedError(fiber, errorInfo); - }; - } - var inst = fiber.stateNode; - null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { - logCapturedError(fiber, errorInfo); - "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); - var stack = errorInfo.stack; - this.componentDidCatch(errorInfo.value, { - componentStack: null !== stack ? stack : "" - }); - }); - return lane; - } - function attachPingListener(root, wakeable, lanes) { - var pingCache = root.pingCache; - if (null === pingCache) { - pingCache = root.pingCache = new PossiblyWeakMap(); - var threadIDs = new Set(); - pingCache.set(wakeable, threadIDs); - } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); - threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); - } - var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - didReceiveUpdate = !1; - function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { - workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); - } - function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { - Component = Component.render; - var ref = workInProgress.ref; - prepareToReadContext(workInProgress, renderLanes); - nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); - if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, nextProps, renderLanes); - return workInProgress.child; - } - function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (null === current) { - var type = Component.type; - if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); - current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); - current.ref = workInProgress.ref; - current.return = workInProgress; - return workInProgress.child = current; - } - type = current.child; - if (0 === (current.lanes & renderLanes)) { - var prevProps = type.memoizedProps; - Component = Component.compare; - Component = null !== Component ? Component : shallowEqual; - if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - workInProgress.flags |= 1; - current = createWorkInProgress(type, nextProps); - current.ref = workInProgress.ref; - current.return = workInProgress; - return workInProgress.child = current; - } - function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (null !== current) { - var prevProps = current.memoizedProps; - if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); - } - function updateOffscreenComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - nextChildren = nextProps.children, - prevState = null !== current ? current.memoizedState : null; - if ("hidden" === nextProps.mode) { - if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { - baseLanes: 0, - cachePool: null, - transitions: null - }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { - if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { - baseLanes: current, - cachePool: null, - transitions: null - }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; - workInProgress.memoizedState = { - baseLanes: 0, - cachePool: null, - transitions: null + } + function pushEffect(tag, create, destroy, deps) { + var effect = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + // Circular + next: null }; - nextProps = null !== prevState ? prevState.baseLanes : renderLanes; - push(subtreeRenderLanesCursor, subtreeRenderLanes); - subtreeRenderLanes |= nextProps; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var lastEffect = componentUpdateQueue.lastEffect; + if (lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = lastEffect.next; + lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + return effect; } - } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; - } - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; - } - function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { - var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); - prepareToReadContext(workInProgress, renderLanes); - Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); - if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, Component, renderLanes); - return workInProgress.child; - } - function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { - if (isContextProvider(Component)) { - var hasContext = !0; - pushContextProvider(workInProgress); - } else hasContext = !1; - prepareToReadContext(workInProgress, renderLanes); - if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { - var instance = workInProgress.stateNode, - oldProps = workInProgress.memoizedProps; - instance.props = oldProps; - var oldContext = instance.context, - contextType = Component.contextType; - "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); - var getDerivedStateFromProps = Component.getDerivedStateFromProps, - hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; - hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); - hasForceUpdate = !1; - var oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - oldContext = workInProgress.memoizedState; - oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); - } else { - instance = workInProgress.stateNode; - cloneUpdateQueue(current, workInProgress); - oldProps = workInProgress.memoizedProps; - contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); - instance.props = contextType; - hasNewLifecycles = workInProgress.pendingProps; - oldState = instance.context; - oldContext = Component.contextType; - "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); - var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; - (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); - hasForceUpdate = !1; - oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - var newState = workInProgress.memoizedState; - oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); - } - return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); - } - function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { - markRef(current, workInProgress); - var didCaptureError = 0 !== (workInProgress.flags & 128); - if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - shouldUpdate = workInProgress.stateNode; - ReactCurrentOwner$1.current = workInProgress; - var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); - workInProgress.flags |= 1; - null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); - workInProgress.memoizedState = shouldUpdate.state; - hasContext && invalidateContextProvider(workInProgress, Component, !0); - return workInProgress.child; - } - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); - pushHostContainer(workInProgress, root.containerInfo); - } - var SUSPENDED_MARKER = { - dehydrated: null, - treeContext: null, - retryLane: 0 - }; - function mountSuspenseOffscreenState(renderLanes) { - return { - baseLanes: renderLanes, - cachePool: null, - transitions: null - }; - } - function updateSuspenseComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - suspenseContext = suspenseStackCursor.current, - showFallback = !1, - didSuspend = 0 !== (workInProgress.flags & 128), - JSCompiler_temp; - (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); - if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; - push(suspenseStackCursor, suspenseContext & 1); - if (null === current) { - current = workInProgress.memoizedState; - if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; - didSuspend = nextProps.children; - current = nextProps.fallback; - return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { - mode: "hidden", - children: didSuspend - }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); - } - suspenseContext = current.memoizedState; - if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); - if (showFallback) { - showFallback = nextProps.fallback; - didSuspend = workInProgress.mode; - suspenseContext = current.child; - JSCompiler_temp = suspenseContext.sibling; - var primaryChildProps = { - mode: "hidden", - children: nextProps.children - }; - 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); - null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); - showFallback.return = workInProgress; - nextProps.return = workInProgress; - nextProps.sibling = showFallback; - workInProgress.child = nextProps; - nextProps = showFallback; - showFallback = workInProgress.child; - didSuspend = current.child.memoizedState; - didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { - baseLanes: didSuspend.baseLanes | renderLanes, - cachePool: null, - transitions: didSuspend.transitions - }; - showFallback.memoizedState = didSuspend; - showFallback.childLanes = current.childLanes & ~renderLanes; - workInProgress.memoizedState = SUSPENDED_MARKER; - return nextProps; - } - showFallback = current.child; - current = showFallback.sibling; - nextProps = createWorkInProgress(showFallback, { - mode: "visible", - children: nextProps.children - }); - 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); - nextProps.return = workInProgress; - nextProps.sibling = null; - null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); - workInProgress.child = nextProps; - workInProgress.memoizedState = null; - return nextProps; - } - function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { - primaryChildren = createFiberFromOffscreen({ - mode: "visible", - children: primaryChildren - }, workInProgress.mode, 0, null); - primaryChildren.return = workInProgress; - return workInProgress.child = primaryChildren; - } - function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { - null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); - reconcileChildFibers(workInProgress, current.child, null, renderLanes); - current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); - current.flags |= 2; - workInProgress.memoizedState = null; - return current; - } - function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { - if (didSuspend) { - if (workInProgress.flags & 256) return workInProgress.flags &= -257, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); - if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; - suspenseState = nextProps.fallback; - didSuspend = workInProgress.mode; - nextProps = createFiberFromOffscreen({ - mode: "visible", - children: nextProps.children - }, didSuspend, 0, null); - suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); - suspenseState.flags |= 2; - nextProps.return = workInProgress; - suspenseState.return = workInProgress; - nextProps.sibling = suspenseState; - workInProgress.child = nextProps; - 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); - workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return suspenseState; - } - if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); - if (shim()) return suspenseState = shim().errorMessage, retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState ? Error(suspenseState) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")); - didSuspend = 0 !== (renderLanes & current.childLanes); - if (didReceiveUpdate || didSuspend) { - nextProps = workInProgressRoot; - if (null !== nextProps) { - switch (renderLanes & -renderLanes) { - case 4: - didSuspend = 2; - break; - case 16: - didSuspend = 8; - break; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - didSuspend = 32; - break; - case 536870912: - didSuspend = 268435456; - break; - default: - didSuspend = 0; + function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + { + var _ref2 = { + current: initialValue + }; + hook.memoizedState = _ref2; + return _ref2; } - nextProps = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; - 0 !== nextProps && nextProps !== suspenseState.retryLane && (suspenseState.retryLane = nextProps, scheduleUpdateOnFiber(current, nextProps, -1)); } - renderDidSuspendDelayIfPossible(); - return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); - } - if (shim()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim(), null; - current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); - current.flags |= 4096; - return current; - } - function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { - fiber.lanes |= renderLanes; - var alternate = fiber.alternate; - null !== alternate && (alternate.lanes |= renderLanes); - scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); - } - function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { - var renderState = workInProgress.memoizedState; - null === renderState ? workInProgress.memoizedState = { - isBackwards: isBackwards, - rendering: null, - renderingStartTime: 0, - last: lastContentRow, - tail: tail, - tailMode: tailMode - } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); - } - function updateSuspenseListComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - revealOrder = nextProps.revealOrder, - tailMode = nextProps.tail; - reconcileChildren(current, workInProgress, nextProps.children, renderLanes); - nextProps = suspenseStackCursor.current; - if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { - if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { - if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { - current.child.return = current; - current = current.child; - continue; + function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var destroy = undefined; + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + if (areHookInputsEqual(nextDeps, prevDeps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps); + return; + } + } } - if (current === workInProgress) break a; - for (; null === current.sibling;) { - if (null === current.return || current.return === workInProgress) break a; - current = current.return; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps); + } + function mountEffect(create, deps) { + { + return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); } - current.sibling.return = current.return; - current = current.sibling; } - nextProps &= 1; - } - push(suspenseStackCursor, nextProps); - if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { - case "forwards": - renderLanes = workInProgress.child; - for (revealOrder = null; null !== renderLanes;) { - current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + function updateEffect(create, deps) { + return updateEffectImpl(Passive, Passive$1, create, deps); + } + function mountInsertionEffect(create, deps) { + return mountEffectImpl(Update, Insertion, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(Update, Insertion, create, deps); + } + function mountLayoutEffect(create, deps) { + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(Update, Layout, create, deps); + } + function imperativeHandleEffect(create, ref) { + if (typeof ref === "function") { + var refCallback = ref; + var _inst = create(); + refCallback(_inst); + return function () { + refCallback(null); + }; + } else if (ref !== null && ref !== undefined) { + var refObject = ref; + { + if (!refObject.hasOwnProperty("current")) { + error("Expected useImperativeHandle() first argument to either be a " + "ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}"); + } + } + var _inst2 = create(); + refObject.current = _inst2; + return function () { + refObject.current = null; + }; } - renderLanes = revealOrder; - null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); - initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); - break; - case "backwards": - renderLanes = null; - revealOrder = workInProgress.child; - for (workInProgress.child = null; null !== revealOrder;) { - current = revealOrder.alternate; - if (null !== current && null === findFirstSuspended(current)) { - workInProgress.child = revealOrder; - break; + } + function mountImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } // TODO: If deps are provided, should we skip comparing the ref itself? + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function updateImperativeHandle(ref, create, deps) { + { + if (typeof create !== "function") { + error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create !== null ? typeof create : "null"); + } + } // TODO: If deps are provided, should we skip comparing the ref itself? + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + function mountDebugValue(value, formatterFn) { + // This hook is normally a no-op. + // The react-debug-hooks package injects its own implementation + // so that e.g. DevTools can display custom hook values. + } + var updateDebugValue = mountDebugValue; + function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } } - current = revealOrder.sibling; - revealOrder.sibling = renderLanes; - renderLanes = revealOrder; - revealOrder = current; } - initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); - break; - case "together": - initSuspenseListRenderState(workInProgress, !1, null, null, void 0); - break; - default: - workInProgress.memoizedState = null; - } - return workInProgress.child; - } - function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { - 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); - } - function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { - null !== current && (workInProgress.dependencies = current.dependencies); - workInProgressRootSkippedLanes |= workInProgress.lanes; - if (0 === (renderLanes & workInProgress.childLanes)) return null; - if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); - if (null !== workInProgress.child) { - current = workInProgress.child; - renderLanes = createWorkInProgress(current, current.pendingProps); - workInProgress.child = renderLanes; - for (renderLanes.return = workInProgress; null !== current.sibling;) { - current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; + hook.memoizedState = [callback, nextDeps]; + return callback; } - renderLanes.sibling = null; - } - return workInProgress.child; - } - function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { - switch (workInProgress.tag) { - case 3: - pushHostRootContext(workInProgress); - break; - case 5: - pushHostContext(workInProgress); - break; - case 1: - isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); - break; - case 4: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - case 10: - var context = workInProgress.type._context, - nextValue = workInProgress.memoizedProps.value; - push(valueCursor, context._currentValue); - context._currentValue = nextValue; - break; - case 13: - context = workInProgress.memoizedState; - if (null !== context) { - if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; - if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); - push(suspenseStackCursor, suspenseStackCursor.current & 1); - current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - return null !== current ? current.sibling : null; + function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + // Assume these are defined. If they're not, areHookInputsEqual will warn. + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } } - push(suspenseStackCursor, suspenseStackCursor.current & 1); - break; - case 19: - context = 0 !== (renderLanes & workInProgress.childLanes); - if (0 !== (current.flags & 128)) { - if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); - workInProgress.flags |= 128; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function mountDeferredValue(value) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = value; + return value; + } + function updateDeferredValue(value) { + var hook = updateWorkInProgressHook(); + var resolvedCurrentHook = currentHook; + var prevValue = resolvedCurrentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + function rerenderDeferredValue(value) { + var hook = updateWorkInProgressHook(); + if (currentHook === null) { + // This is a rerender during a mount. + hook.memoizedState = value; + return value; + } else { + // This is a rerender during an update. + var prevValue = currentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); } - nextValue = workInProgress.memoizedState; - null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); - push(suspenseStackCursor, suspenseStackCursor.current); - if (context) break;else return null; - case 22: - case 23: - return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); - } - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - var appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; - appendAllChildren = function appendAllChildren(parent, workInProgress) { - for (var node = workInProgress.child; null !== node;) { - if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);else if (4 !== node.tag && null !== node.child) { - node.child.return = node; - node = node.child; - continue; } - if (node === workInProgress) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === workInProgress) return; - node = node.return; + function updateDeferredValueImpl(hook, prevValue, value) { + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + if (shouldDeferValue) { + // This is an urgent update. If the value has changed, keep using the + // previous value and spawn a deferred render to update it later. + if (!objectIs(value, prevValue)) { + // Schedule a deferred render + var deferredLane = claimNextTransitionLane(); + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); + markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent + // from the latest value. The name "baseState" doesn't really match how we + // use it because we're reusing a state hook field instead of creating a + // new one. + + hook.baseState = true; + } // Reuse the previous value + + return prevValue; + } else { + // This is not an urgent update, so we can use the latest value regardless + // of what it is. No need to defer it. + // However, if we're currently inside a spawned render, then we need to mark + // this as an update to prevent the fiber from bailing out. + // + // `baseState` is true when the current value is different from the rendered + // value. The name doesn't really match how we use it because we're reusing + // a state hook field instead of creating a new one. + if (hook.baseState) { + // Flip this back to false. + hook.baseState = false; + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = value; + return value; + } } - node.sibling.return = node.return; - node = node.sibling; - } - }; - updateHostContainer = function updateHostContainer() {}; - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { - current.memoizedProps !== newProps && (requiredContext(contextStackCursor$1.current), workInProgress.updateQueue = UPDATE_SIGNAL) && (workInProgress.flags |= 4); - }; - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - oldText !== newText && (workInProgress.flags |= 4); - }; - function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { - switch (renderState.tailMode) { - case "hidden": - hasRenderedATailFallback = renderState.tail; - for (var lastTailNode = null; null !== hasRenderedATailFallback;) { - null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + function startTransition(setPending, callback, options) { + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority)); + setPending(true); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + var currentTransition = ReactCurrentBatchConfig$1.transition; + { + ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); } - null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; - break; - case "collapsed": - lastTailNode = renderState.tail; - for (var lastTailNode$60 = null; null !== lastTailNode;) { - null !== lastTailNode.alternate && (lastTailNode$60 = lastTailNode), lastTailNode = lastTailNode.sibling; + try { + setPending(false); + callback(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$1.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. " + "If this is due to a subscription please re-write it to use React provided hooks. " + "Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } } - null === lastTailNode$60 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$60.sibling = null; - } - } - function bubbleProperties(completedWork) { - var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, - newChildLanes = 0, - subtreeFlags = 0; - if (didBailout) for (var child$61 = completedWork.child; null !== child$61;) { - newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags & 14680064, subtreeFlags |= child$61.flags & 14680064, child$61.return = completedWork, child$61 = child$61.sibling; - } else for (child$61 = completedWork.child; null !== child$61;) { - newChildLanes |= child$61.lanes | child$61.childLanes, subtreeFlags |= child$61.subtreeFlags, subtreeFlags |= child$61.flags, child$61.return = completedWork, child$61 = child$61.sibling; - } - completedWork.subtreeFlags |= subtreeFlags; - completedWork.childLanes = newChildLanes; - return didBailout; - } - function completeWork(current, workInProgress, renderLanes) { - var newProps = workInProgress.pendingProps; - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return bubbleProperties(workInProgress), null; - case 1: - return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; - case 3: - return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; - case 5: - popHostContext(workInProgress); - renderLanes = requiredContext(rootInstanceStackCursor.current); - var type = workInProgress.type; - if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { - if (!newProps) { - if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - bubbleProperties(workInProgress); - return null; + } + function mountTransition() { + var _mountState = mountState(false), + isPending = _mountState[0], + setPending = _mountState[1]; // The `start` method never changes. + + var start = startTransition.bind(null, setPending); + var hook = mountWorkInProgressHook(); + hook.memoizedState = start; + return [isPending, start]; + } + function updateTransition() { + var _updateState = updateState(), + isPending = _updateState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + function rerenderTransition() { + var _rerenderState = rerenderState(), + isPending = _rerenderState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + var isUpdatingOpaqueValueInRenderPhase = false; + function getIsUpdatingOpaqueValueInRenderPhaseInDEV() { + { + return isUpdatingOpaqueValueInRenderPhase; + } + } + function mountId() { + var hook = mountWorkInProgressHook(); + var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we + // should do this in Fiber, too? Deferring this decision for now because + // there's no other place to store the prefix except for an internal field on + // the public createRoot object, which the fiber tree does not currently have + // a reference to. + + var identifierPrefix = root.identifierPrefix; + var id; + { + // Use a lowercase r prefix for client-generated ids. + var globalClientId = globalClientIdCounter++; + id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + } + hook.memoizedState = id; + return id; + } + function updateId() { + var hook = updateWorkInProgressHook(); + var id = hook.memoizedState; + return id; + } + function dispatchReducerAction(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); } - requiredContext(contextStackCursor$1.current); - current = allocateTag(); - type = getViewConfigForType(type); - var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(current, type.uiViewClassName, renderLanes, updatePayload); - renderLanes = new ReactNativeFiberHostComponent(current, type, workInProgress); - instanceCache.set(current, workInProgress); - instanceProps.set(current, newProps); - appendAllChildren(renderLanes, workInProgress, !1, !1); - workInProgress.stateNode = renderLanes; - finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4); - null !== workInProgress.ref && (workInProgress.flags |= 512); } - bubbleProperties(workInProgress); - return null; - case 6: - if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { - if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - current = requiredContext(rootInstanceStackCursor.current); - if (!requiredContext(contextStackCursor$1.current).isInAParentText) throw Error("Text strings must be rendered within a component."); - renderLanes = allocateTag(); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(renderLanes, "RCTRawText", current, { - text: newProps - }); - instanceCache.set(renderLanes, workInProgress); - workInProgress.stateNode = renderLanes; + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitionUpdate(root, queue, lane); + } } - bubbleProperties(workInProgress); - return null; - case 13: - pop(suspenseStackCursor); - newProps = workInProgress.memoizedState; - if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { - if (null !== newProps && null !== newProps.dehydrated) { - if (null === current) { - throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); - throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); - } - 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); - workInProgress.flags |= 4; - bubbleProperties(workInProgress); - type = !1; - } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; - if (!type) return workInProgress.flags & 65536 ? workInProgress : null; + } + function dispatchSetState(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the " + "second callback argument. To execute a side effect after " + "rendering, declare it in the component body with useEffect()."); + } } - if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; - renderLanes = null !== newProps; - renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); - null !== workInProgress.updateQueue && (workInProgress.flags |= 4); - bubbleProperties(workInProgress); - return null; - case 4: - return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; - case 10: - return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; - case 17: - return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; - case 19: - pop(suspenseStackCursor); - type = workInProgress.memoizedState; - if (null === type) return bubbleProperties(workInProgress), null; - newProps = 0 !== (workInProgress.flags & 128); - updatePayload = type.rendering; - if (null === updatePayload) { - if (newProps) cutOffTailIfNeeded(type, !1);else { - if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { - updatePayload = findFirstSuspended(current); - if (null !== updatePayload) { - workInProgress.flags |= 128; - cutOffTailIfNeeded(type, !1); - current = updatePayload.updateQueue; - null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); - workInProgress.subtreeFlags = 0; - current = renderLanes; - for (renderLanes = workInProgress.child; null !== renderLanes;) { - newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { - lanes: type.lanes, - firstContext: type.firstContext - }), renderLanes = renderLanes.sibling; + var lane = requestUpdateLane(fiber); + var update = { + lane: lane, + action: action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + var alternate = fiber.alternate; + if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { + // The queue is currently empty, which means we can eagerly compute the + // next state before entering the render phase. If the new state is the + // same as the current state, we may be able to bail out entirely. + var lastRenderedReducer = queue.lastRenderedReducer; + if (lastRenderedReducer !== null) { + var prevDispatcher; + { + prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + try { + var currentState = queue.lastRenderedState; + var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute + // it, on the update object. If the reducer hasn't changed by the + // time we enter the render phase, then the eager state can be used + // without calling the reducer again. + + update.hasEagerState = true; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + // Fast path. We can bail out without scheduling React to re-render. + // It's still possible that we'll need to rebase this update later, + // if the component re-renders for a different reason and by that + // time the reducer has changed. + // TODO: Do we still need to entangle transitions in this case? + enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane); + return; + } + } catch (error) { + // Suppress the error. It will throw again in the render phase. + } finally { + { + ReactCurrentDispatcher$1.current = prevDispatcher; } - push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); - return workInProgress.child; } - current = current.sibling; } - null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); } + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitionUpdate(root, queue, lane); + } + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + // This is a render phase update. Stash it in a lazily-created map of + // queue -> linked list of updates. After this render pass, we'll restart + // and apply the stashed updates on top of the work-in-progress hook. + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; + var pending = queue.pending; + if (pending === null) { + // This is the first update. Create a circular list. + update.next = update; } else { - if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { - if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; - } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); - type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); + update.next = pending.next; + pending.next = update; } - if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; - bubbleProperties(workInProgress); - return null; - case 22: - case 23: - return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), null; - case 24: - return null; - case 25: - return null; - } - throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); - } - function unwindWork(current, workInProgress) { - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 1: - return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 3: - return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 5: - return popHostContext(workInProgress), null; - case 13: - pop(suspenseStackCursor); - current = workInProgress.memoizedState; - if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); - current = workInProgress.flags; - return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; - case 19: - return pop(suspenseStackCursor), null; - case 4: - return popHostContainer(), null; - case 10: - return popProvider(workInProgress.type._context), null; - case 22: - case 23: - return popRenderLanes(), null; - case 24: - return null; - default: - return null; - } - } - var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null; - function safelyDetachRef(current, nearestMountedAncestor) { - var ref = current.ref; - if (null !== ref) if ("function" === typeof ref) try { - ref(null); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } else ref.current = null; - } - function safelyCallDestroy(current, nearestMountedAncestor, destroy) { - try { - destroy(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } - } - var shouldFireAfterActiveInstanceBlur = !1; - function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect;) { - if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { - root = nextEffect; - try { - var current = root.alternate; - if (0 !== (root.flags & 1024)) switch (root.tag) { - case 0: - case 11: - case 15: - break; - case 1: - if (null !== current) { - var prevProps = current.memoizedProps, - prevState = current.memoizedState, - instance = root.stateNode, - snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - break; - case 3: - break; - case 5: - case 6: - case 4: - case 17: - break; - default: - 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."); - } - } catch (error) { - captureCommitPhaseError(root, root.return, error); - } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; - } - nextEffect = root.return; - } - } - current = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return current; - } - function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { - var updateQueue = finishedWork.updateQueue; - updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; - if (null !== updateQueue) { - var effect = updateQueue = updateQueue.next; - do { - if ((effect.tag & flags) === flags) { - var destroy = effect.destroy; - effect.destroy = void 0; - void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); - } - effect = effect.next; - } while (effect !== updateQueue); - } - } - function commitHookEffectListMount(flags, finishedWork) { - finishedWork = finishedWork.updateQueue; - finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; - if (null !== finishedWork) { - var effect = finishedWork = finishedWork.next; - do { - if ((effect.tag & flags) === flags) { - var create$73 = effect.create; - effect.destroy = create$73(); - } - effect = effect.next; - } while (effect !== finishedWork); - } - } - function detachFiberAfterEffects(fiber) { - var alternate = fiber.alternate; - null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); - fiber.child = null; - fiber.deletions = null; - fiber.sibling = null; - fiber.stateNode = null; - fiber.return = null; - fiber.dependencies = null; - fiber.memoizedProps = null; - fiber.memoizedState = null; - fiber.pendingProps = null; - fiber.stateNode = null; - fiber.updateQueue = null; - } - function isHostParent(fiber) { - return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; - } - function getHostSibling(fiber) { - a: for (;;) { - for (; null === fiber.sibling;) { - if (null === fiber.return || isHostParent(fiber.return)) return null; - fiber = fiber.return; - } - fiber.sibling.return = fiber.return; - for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;) { - if (fiber.flags & 2) continue a; - if (null === fiber.child || 4 === fiber.tag) continue a;else fiber.child.return = fiber, fiber = fiber.child; - } - if (!(fiber.flags & 2)) return fiber.stateNode; - } - } - function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { - var tag = node.tag; - if (5 === tag || 6 === tag) { - if (node = node.stateNode, before) { - if ("number" === typeof parent) throw Error("Container does not support insertBefore operation"); - } else _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parent, ["number" === typeof node ? node : node._nativeTag]); - } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node;) { - insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; - } - } - function insertOrAppendPlacementNode(node, before, parent) { - var tag = node.tag; - if (5 === tag || 6 === tag) { - if (node = node.stateNode, before) { - tag = parent._children; - var index = tag.indexOf(node); - 0 <= index ? (tag.splice(index, 1), before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [before], [], [], [])) : (before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], ["number" === typeof node ? node : node._nativeTag], [before], [])); - } else before = "number" === typeof node ? node : node._nativeTag, tag = parent._children, index = tag.indexOf(node), 0 <= index ? (tag.splice(index, 1), tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [tag.length - 1], [], [], [])) : (tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], [before], [tag.length - 1], [])); - } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node;) { - insertOrAppendPlacementNode(node, before, parent), node = node.sibling; - } - } - var hostParent = null, - hostParentIsContainer = !1; - function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { - for (parent = parent.child; null !== parent;) { - commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; - } - } - function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { - injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); - } catch (err) {} - switch (deletedFiber.tag) { - case 5: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - case 6: - var prevHostParent = hostParent, - prevHostParentIsContainer = hostParentIsContainer; - hostParent = null; - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - hostParent = prevHostParent; - hostParentIsContainer = prevHostParentIsContainer; - null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, recursivelyUncacheFiberNode(deletedFiber.stateNode), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot, [], [], [], [], [0])) : (finishedRoot = hostParent, nearestMountedAncestor = deletedFiber.stateNode, recursivelyUncacheFiberNode(nearestMountedAncestor), deletedFiber = finishedRoot._children, nearestMountedAncestor = deletedFiber.indexOf(nearestMountedAncestor), deletedFiber.splice(nearestMountedAncestor, 1), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot._nativeTag, [], [], [], [], [nearestMountedAncestor]))); - break; - case 18: - null !== hostParent && shim(hostParent, deletedFiber.stateNode); - break; - case 4: - prevHostParent = hostParent; - prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode.containerInfo; - hostParentIsContainer = !0; - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - hostParent = prevHostParent; - hostParentIsContainer = prevHostParentIsContainer; - break; - case 0: - case 11: - case 14: - case 15: - prevHostParent = deletedFiber.updateQueue; - if (null !== prevHostParent && (prevHostParent = prevHostParent.lastEffect, null !== prevHostParent)) { - prevHostParentIsContainer = prevHostParent = prevHostParent.next; - do { - var _effect = prevHostParentIsContainer, - destroy = _effect.destroy; - _effect = _effect.tag; - void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); - prevHostParentIsContainer = prevHostParentIsContainer.next; - } while (prevHostParentIsContainer !== prevHostParent); - } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 1: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - prevHostParent = deletedFiber.stateNode; - if ("function" === typeof prevHostParent.componentWillUnmount) try { - prevHostParent.props = deletedFiber.memoizedProps, prevHostParent.state = deletedFiber.memoizedState, prevHostParent.componentWillUnmount(); - } catch (error) { - captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); - } - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 21: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - case 22: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - break; - default: - recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); - } - } - function attachSuspenseRetryListeners(finishedWork) { - var wakeables = finishedWork.updateQueue; - if (null !== wakeables) { - finishedWork.updateQueue = null; - var retryCache = finishedWork.stateNode; - null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); - wakeables.forEach(function (wakeable) { - var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); - retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); - }); - } - } - function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { - var deletions = parentFiber.deletions; - if (null !== deletions) for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - try { - var root = root$jscomp$0, - returnFiber = parentFiber, - parent = returnFiber; - a: for (; null !== parent;) { - switch (parent.tag) { - case 5: - hostParent = parent.stateNode; - hostParentIsContainer = !1; - break a; - case 3: - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = !0; - break a; - case 4: - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = !0; - break a; - } - parent = parent.return; + queue.pending = update; + } // TODO: Move to ReactFiberConcurrentUpdates? + + function entangleTransitionUpdate(root, queue, lane) { + if (isTransitionLane(lane)) { + var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they + // must have finished. We can remove them from the shared queue, which + // represents a superset of the actually pending lanes. In some cases we + // may entangle more than we need to, but that's OK. In fact it's worse if + // we *don't* entangle when we should. + + queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes. + + var newQueueLanes = mergeLanes(queueLanes, lane); + queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if + // the lane finished since the last time we entangled it. So we need to + // entangle it again, just to be sure. + + markRootEntangled(root, newQueueLanes); } - if (null === hostParent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); - commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); - hostParent = null; - hostParentIsContainer = !1; - var alternate = childToDelete.alternate; - null !== alternate && (alternate.return = null); - childToDelete.return = null; - } catch (error) { - captureCommitPhaseError(childToDelete, parentFiber, error); } - } - if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) { - commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; - } - } - function commitMutationEffectsOnFiber(finishedWork, root) { - var current = finishedWork.alternate, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 4) { - try { - commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - try { - commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$83) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$83); - } - } - break; - case 1: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && null !== current && safelyDetachRef(current, current.return); - break; - case 5: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && null !== current && safelyDetachRef(current, current.return); - if (flags & 4) { - var instance$85 = finishedWork.stateNode; - if (null != instance$85) { - var newProps = finishedWork.memoizedProps, - oldProps = null !== current ? current.memoizedProps : newProps, - updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - if (null !== updatePayload) try { - var viewConfig = instance$85.viewConfig; - instanceProps.set(instance$85._nativeTag, newProps); - var updatePayload$jscomp$0 = diffProperties(null, oldProps, newProps, viewConfig.validAttributes); - null != updatePayload$jscomp$0 && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$85._nativeTag, viewConfig.uiViewClassName, updatePayload$jscomp$0); - } catch (error$86) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$86); + var ContextOnlyDispatcher = { + readContext: _readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: enableNewReconciler + }; + var HooksDispatcherOnMountInDEV = null; + var HooksDispatcherOnMountWithHookTypesInDEV = null; + var HooksDispatcherOnUpdateInDEV = null; + var HooksDispatcherOnRerenderInDEV = null; + var InvalidNestedHooksDispatcherOnMountInDEV = null; + var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + var InvalidNestedHooksDispatcherOnRerenderInDEV = null; + { + var warnInvalidContextAccess = function warnInvalidContextAccess() { + error("Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + "In function components, you can read it directly in the function body, but not " + "inside Hooks like useReducer() or useMemo()."); + }; + var warnInvalidHookAccess = function warnInvalidHookAccess() { + error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + "https://reactjs.org/link/rules-of-hooks"); + }; + HooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - } - } - break; - case 6: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 4) { - if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); - viewConfig = finishedWork.stateNode; - updatePayload$jscomp$0 = finishedWork.memoizedProps; - try { - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(viewConfig, "RCTRawText", { - text: updatePayload$jscomp$0 - }); - } catch (error$87) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$87); - } - } - break; - case 3: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 4: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 13: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - viewConfig = finishedWork.child; - viewConfig.flags & 8192 && null !== viewConfig.memoizedState && (null === viewConfig.alternate || null === viewConfig.alternate.memoizedState) && (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - flags & 4 && attachSuspenseRetryListeners(finishedWork); - break; - case 22: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 8192) a: for (viewConfig = null !== finishedWork.memoizedState, updatePayload$jscomp$0 = null, current = finishedWork;;) { - if (5 === current.tag) { - if (null === updatePayload$jscomp$0) { - updatePayload$jscomp$0 = current; - try { - if (instance$85 = current.stateNode, viewConfig) newProps = instance$85.viewConfig, oldProps = diffProperties(null, emptyObject, { - style: { - display: "none" - } - }, newProps.validAttributes), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$85._nativeTag, newProps.uiViewClassName, oldProps);else { - updatePayload = current.stateNode; - var props = current.memoizedProps, - viewConfig$jscomp$0 = updatePayload.viewConfig, - prevProps = assign({}, props, { - style: [props.style, { - display: "none" - }] - }); - var updatePayload$jscomp$1 = diffProperties(null, prevProps, props, viewConfig$jscomp$0.validAttributes); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(updatePayload._nativeTag, viewConfig$jscomp$0.uiViewClassName, updatePayload$jscomp$1); - } - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - } else if (6 === current.tag) { - if (null === updatePayload$jscomp$0) try { - throw Error("Not yet implemented."); - } catch (error$78) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$78); + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - } else if ((22 !== current.tag && 23 !== current.tag || null === current.memoizedState || current === finishedWork) && null !== current.child) { - current.child.return = current; - current = current.child; - continue; - } - if (current === finishedWork) break a; - for (; null === current.sibling;) { - if (null === current.return || current.return === finishedWork) break a; - updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); - current = current.return; - } - updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); - current.sibling.return = current.return; - current = current.sibling; - } - break; - case 19: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 4 && attachSuspenseRetryListeners(finishedWork); - break; - case 21: - break; - default: - recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); - } - } - function commitReconciliationEffects(finishedWork) { - var flags = finishedWork.flags; - if (flags & 2) { - try { - a: { - for (var parent = finishedWork.return; null !== parent;) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - parent = parent.return; - } - throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); - } - switch (JSCompiler_inline_result.tag) { - case 5: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && (JSCompiler_inline_result.flags &= -33); - var before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 3: - case 4: - var parent$79 = JSCompiler_inline_result.stateNode.containerInfo, - before$80 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer(finishedWork, before$80, parent$79); - break; - default: - throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); - } - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - finishedWork.flags &= -3; - } - flags & 4096 && (finishedWork.flags &= -4097); - } - function commitLayoutEffects(finishedWork) { - for (nextEffect = finishedWork; null !== nextEffect;) { - var fiber = nextEffect, - firstChild = fiber.child; - if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { - firstChild = nextEffect; - if (0 !== (firstChild.flags & 8772)) { - var current = firstChild.alternate; - try { - if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(5, firstChild); - break; - case 1: - var instance = firstChild.stateNode; - if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { - var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); - instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); - } - var updateQueue = firstChild.updateQueue; - null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); - break; - case 3: - var updateQueue$74 = firstChild.updateQueue; - if (null !== updateQueue$74) { - current = null; - if (null !== firstChild.child) switch (firstChild.child.tag) { - case 5: - current = firstChild.child.stateNode; - break; - case 1: - current = firstChild.child.stateNode; - } - commitUpdateQueue(firstChild, updateQueue$74, current); - } - break; - case 5: - break; - case 6: - break; - case 4: - break; - case 12: - break; - case 13: - break; - case 19: - case 17: - case 21: - case 22: - case 23: - case 25: - break; - default: - 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."); + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - if (firstChild.flags & 512) { - current = void 0; - var ref = firstChild.ref; - if (null !== ref) { - var instance$jscomp$0 = firstChild.stateNode; - switch (firstChild.tag) { - case 5: - current = instance$jscomp$0; - break; - default: - current = instance$jscomp$0; - } - "function" === typeof ref ? ref(current) : ref.current = current; - } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - } catch (error) { - captureCommitPhaseError(firstChild, firstChild.return, error); - } - } - if (firstChild === fiber) { - nextEffect = null; - break; - } - current = firstChild.sibling; - if (null !== current) { - current.return = firstChild.return; - nextEffect = current; - break; - } - nextEffect = firstChild.return; - } - } - } - var ceil = Math.ceil, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - executionContext = 0, - workInProgressRoot = null, - workInProgress = null, - workInProgressRootRenderLanes = 0, - subtreeRenderLanes = 0, - subtreeRenderLanesCursor = createCursor(0), - workInProgressRootExitStatus = 0, - workInProgressRootFatalError = null, - workInProgressRootSkippedLanes = 0, - workInProgressRootInterleavedUpdatedLanes = 0, - workInProgressRootPingedLanes = 0, - workInProgressRootConcurrentErrors = null, - workInProgressRootRecoverableErrors = null, - globalMostRecentFallbackTime = 0, - workInProgressRootRenderTargetTime = Infinity, - workInProgressTransitions = null, - hasUncaughtError = !1, - firstUncaughtError = null, - legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, - rootWithPendingPassiveEffects = null, - pendingPassiveEffectsLanes = 0, - nestedUpdateCount = 0, - rootWithNestedUpdates = null, - currentEventTime = -1, - currentEventTransitionLane = 0; - function requestEventTime() { - return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); - } - function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; - if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; - fiber = currentUpdatePriority; - return 0 !== fiber ? fiber : 16; - } - function scheduleUpdateOnFiber(fiber, lane, eventTime) { - if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); - var root = markUpdateLaneFromFiberToRoot(fiber, lane); - if (null === root) return null; - markRootUpdated(root, lane, eventTime); - if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); - return root; - } - function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { - sourceFiber.lanes |= lane; - var alternate = sourceFiber.alternate; - null !== alternate && (alternate.lanes |= lane); - alternate = sourceFiber; - for (sourceFiber = sourceFiber.return; null !== sourceFiber;) { - sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; - } - return 3 === alternate.tag ? alternate.stateNode : null; - } - function isInterleavedUpdate(fiber) { - return (null !== workInProgressRoot || null !== interleavedQueues) && 0 !== (fiber.mode & 1) && 0 === (executionContext & 2); - } - function ensureRootIsScheduled(root, currentTime) { - for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; - if (-1 === expirationTime) { - if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$6] = computeExpirationTime(lane, currentTime); - } else expirationTime <= currentTime && (root.expiredLanes |= lane); - lanes &= ~lane; - } - suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); - if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { - null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); - if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { - switch (lanesToEventPriority(suspendedLanes)) { - case 1: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; - break; - case 4: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; - break; - case 16: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; - break; - case 536870912: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; - break; - default: - existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; - } - existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); - } - root.callbackPriority = currentTime; - root.callbackNode = existingCallbackNode; - } - } - function performConcurrentWorkOnRoot(root, didTimeout) { - currentEventTime = -1; - currentEventTransitionLane = 0; - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - var originalCallbackNode = root.callbackNode; - if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; - var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); - if (0 === lanes) return null; - if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { - didTimeout = lanes; - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); - do { - try { - workLoopConcurrent(); - break; - } catch (thrownValue) { - handleError(root, thrownValue); - } - } while (1); - resetContextDependencies(); - ReactCurrentDispatcher$2.current = prevDispatcher; - executionContext = prevExecutionContext; - null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); - } - if (0 !== didTimeout) { - 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); - if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; - if (6 === didTimeout) markRootSuspended$1(root, lanes);else { - prevExecutionContext = root.current.alternate; - if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; - root.finishedWork = prevExecutionContext; - root.finishedLanes = lanes; - switch (didTimeout) { - case 0: - case 1: - throw Error("Root did not complete. This is a bug in React."); - case 2: - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 3: - markRootSuspended$1(root, lanes); - if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { - if (0 !== getNextLanes(root, 0)) break; - prevExecutionContext = root.suspendedLanes; - if ((prevExecutionContext & lanes) !== lanes) { - requestEventTime(); - root.pingedLanes |= root.suspendedLanes & prevExecutionContext; - break; - } - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); - break; + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 4: - markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; - didTimeout = root.eventTimes; - for (prevExecutionContext = -1; 0 < lanes;) { - var index$5 = 31 - clz32(lanes); - prevDispatcher = 1 << index$5; - index$5 = didTimeout[index$5]; - index$5 > prevExecutionContext && (prevExecutionContext = index$5); - lanes &= ~prevDispatcher; + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - lanes = prevExecutionContext; - lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; - lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; - if (10 < lanes) { - root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); - break; + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; } - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - case 5: - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - break; - default: - throw Error("Unknown root exit status."); - } - } - } - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; - } - function recoverFromConcurrentError(root, errorRetryLanes) { - var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; - root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); - root = renderRootSync(root, errorRetryLanes); - 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); - return root; - } - function queueRecoverableErrors(errors) { - null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); - } - function isRenderConsistentWithExternalStores(finishedWork) { - for (var node = finishedWork;;) { - if (node.flags & 16384) { - var updateQueue = node.updateQueue; - if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { - var check = updateQueue[i], - getSnapshot = check.getSnapshot; - check = check.value; - try { - if (!objectIs(getSnapshot(), check)) return !1; - } catch (error) { - return !1; - } - } - } - updateQueue = node.child; - if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { - if (node === finishedWork) break; - for (; null === node.sibling;) { - if (null === node.return || node.return === finishedWork) return !0; - node = node.return; + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnRerenderInDEV = { + readContext: function readContext(context) { + warnInvalidContextAccess(); + return _readContext(context); + }, + useCallback: function useCallback(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function useContext(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return _readContext(context); + }, + useEffect: function useEffect(create, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create, deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function useMemo(create, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function useReducer(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function useRef(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function useState(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function useDebugValue(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function useDeferredValue(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function useTransition() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function useMutableSource(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function useId() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + } + var now$1 = Scheduler.unstable_now; + var commitTime = 0; + var layoutEffectStartTime = -1; + var profilerStartTime = -1; + var passiveEffectStartTime = -1; + /** + * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect). + * + * The overall sequence is: + * 1. render + * 2. commit (and call `onRender`, `onCommit`) + * 3. check for nested updates + * 4. flush passive effects (and call `onPostCommit`) + * + * Nested updates are identified in step 3 above, + * but step 4 still applies to the work that was just committed. + * We use two flags to track nested updates then: + * one tracks whether the upcoming update is a nested update, + * and the other tracks whether the current update was a nested update. + * The first value gets synced to the second at the start of the render phase. + */ + + var currentUpdateIsNested = false; + var nestedUpdateScheduled = false; + function isCurrentUpdateNested() { + return currentUpdateIsNested; + } + function markNestedUpdateScheduled() { + { + nestedUpdateScheduled = true; } - node.sibling.return = node.return; - node = node.sibling; } - } - return !0; - } - function markRootSuspended$1(root, suspendedLanes) { - suspendedLanes &= ~workInProgressRootPingedLanes; - suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; - root.suspendedLanes |= suspendedLanes; - root.pingedLanes &= ~suspendedLanes; - for (root = root.expirationTimes; 0 < suspendedLanes;) { - var index$7 = 31 - clz32(suspendedLanes), - lane = 1 << index$7; - root[index$7] = -1; - suspendedLanes &= ~lane; - } - } - function performSyncWorkOnRoot(root) { - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - flushPassiveEffects(); - var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; - var exitStatus = renderRootSync(root, lanes); - if (0 !== root.tag && 2 === exitStatus) { - var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); - 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); - } - if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; - if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); - root.finishedWork = root.current.alternate; - root.finishedLanes = lanes; - commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - return null; - } - function popRenderLanes() { - subtreeRenderLanes = subtreeRenderLanesCursor.current; - pop(subtreeRenderLanesCursor); - } - function prepareFreshStack(root, lanes) { - root.finishedWork = null; - root.finishedLanes = 0; - var timeoutHandle = root.timeoutHandle; - -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); - if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { - var interruptedWork = timeoutHandle; - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { - case 1: - interruptedWork = interruptedWork.type.childContextTypes; - null !== interruptedWork && void 0 !== interruptedWork && popContext(); - break; - case 3: - popHostContainer(); - pop(didPerformWorkStackCursor); - pop(contextStackCursor); - resetWorkInProgressVersions(); - break; - case 5: - popHostContext(interruptedWork); - break; - case 4: - popHostContainer(); - break; - case 13: - pop(suspenseStackCursor); - break; - case 19: - pop(suspenseStackCursor); - break; - case 10: - popProvider(interruptedWork.type._context); - break; - case 22: - case 23: - popRenderLanes(); + function resetNestedUpdateFlag() { + { + currentUpdateIsNested = false; + nestedUpdateScheduled = false; + } } - timeoutHandle = timeoutHandle.return; - } - workInProgressRoot = root; - workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = subtreeRenderLanes = lanes; - workInProgressRootExitStatus = 0; - workInProgressRootFatalError = null; - workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; - workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; - if (null !== interleavedQueues) { - for (lanes = 0; lanes < interleavedQueues.length; lanes++) { - if (timeoutHandle = interleavedQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { - timeoutHandle.interleaved = null; - var firstInterleavedUpdate = interruptedWork.next, - lastPendingUpdate = timeoutHandle.pending; - if (null !== lastPendingUpdate) { - var firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = firstInterleavedUpdate; - interruptedWork.next = firstPendingUpdate; - } - timeoutHandle.pending = interruptedWork; + function syncNestedUpdateFlag() { + { + currentUpdateIsNested = nestedUpdateScheduled; + nestedUpdateScheduled = false; } } - interleavedQueues = null; - } - return root; - } - function handleError(root$jscomp$0, thrownValue) { - do { - var erroredWork = workInProgress; - try { - resetContextDependencies(); - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { - var queue = hook.queue; - null !== queue && (queue.pending = null); - hook = hook.next; - } - didScheduleRenderPhaseUpdate = !1; + function getCommitTime() { + return commitTime; + } + function recordCommitTime() { + commitTime = now$1(); + } + function startProfilerTimer(fiber) { + profilerStartTime = now$1(); + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = now$1(); } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; - didScheduleRenderPhaseUpdateDuringThisPass = !1; - ReactCurrentOwner$2.current = null; - if (null === erroredWork || null === erroredWork.return) { - workInProgressRootExitStatus = 1; - workInProgressRootFatalError = thrownValue; - workInProgress = null; - break; + } + function stopProfilerTimerIfRunning(fiber) { + profilerStartTime = -1; + } + function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + if (profilerStartTime >= 0) { + var elapsedTime = now$1() - profilerStartTime; + fiber.actualDuration += elapsedTime; + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + profilerStartTime = -1; } - a: { - var root = root$jscomp$0, - returnFiber = erroredWork.return, - sourceFiber = erroredWork, - value = thrownValue; - thrownValue = workInProgressRootRenderLanes; - sourceFiber.flags |= 32768; - if (null !== value && "object" === typeof value && "function" === typeof value.then) { - var wakeable = value, - sourceFiber$jscomp$0 = sourceFiber, - tag = sourceFiber$jscomp$0.tag; - if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { - var currentSource = sourceFiber$jscomp$0.alternate; - currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); + } + function recordLayoutEffectDuration(fiber) { + if (layoutEffectStartTime >= 0) { + var elapsedTime = now$1() - layoutEffectStartTime; + layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor + // Or the root (for the DevTools Profiler to read) + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += elapsedTime; + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += elapsedTime; + return; } - b: { - sourceFiber$jscomp$0 = returnFiber; - do { - var JSCompiler_temp; - if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { - var nextState = sourceFiber$jscomp$0.memoizedState; - JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; + parentFiber = parentFiber.return; + } + } + } + function recordPassiveEffectDuration(fiber) { + if (passiveEffectStartTime >= 0) { + var elapsedTime = now$1() - passiveEffectStartTime; + passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor + // Or the root (for the DevTools Profiler to read) + + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + if (root !== null) { + root.passiveEffectDuration += elapsedTime; } - if (JSCompiler_temp) { - var suspenseBoundary = sourceFiber$jscomp$0; - break b; + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + if (parentStateNode !== null) { + // Detached fibers have their state node cleared out. + // In this case, the return pointer is also cleared out, + // so we won't be able to report the time spent in this Profiler's subtree. + parentStateNode.passiveEffectDuration += elapsedTime; } - sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; - } while (null !== sourceFiber$jscomp$0); - suspenseBoundary = null; + return; } - if (null !== suspenseBoundary) { - suspenseBoundary.flags &= -257; - value = suspenseBoundary; - sourceFiber$jscomp$0 = thrownValue; - if (0 === (value.mode & 1)) { - if (value === returnFiber) value.flags |= 65536;else { - value.flags |= 128; - sourceFiber.flags |= 131072; - sourceFiber.flags &= -52805; - if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { - var update = createUpdate(-1, 1); - update.tag = 2; - enqueueUpdate(sourceFiber, update); - } - sourceFiber.lanes |= 1; - } - } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; - suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); - thrownValue = suspenseBoundary; - root = wakeable; - var wakeables = thrownValue.updateQueue; - if (null === wakeables) { - var updateQueue = new Set(); - updateQueue.add(root); - thrownValue.updateQueue = updateQueue; - } else wakeables.add(root); - break a; + parentFiber = parentFiber.return; + } + } + } + function startLayoutEffectTimer() { + layoutEffectStartTime = now$1(); + } + function startPassiveEffectTimer() { + passiveEffectStartTime = now$1(); + } + function transferActualDuration(fiber) { + // Transfer time spent rendering these children so we don't lose it + // after we rerender. This is used as a helper in special cases + // where we should count the work of multiple passes. + var child = fiber.child; + while (child) { + fiber.actualDuration += child.actualDuration; + child = child.sibling; + } + } + function createCapturedValueAtFiber(value, source) { + // If the value is an error, call this function immediately after it is thrown + // so the stack is accurate. + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source), + digest: null + }; + } + function createCapturedValue(value, digest, stack) { + return { + value: value, + source: null, + stack: stack != null ? stack : null, + digest: digest != null ? digest : null + }; + } + if (typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog !== "function") { + throw new Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + } + function showErrorDialog(boundary, errorInfo) { + var capturedError = { + componentStack: errorInfo.stack !== null ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: boundary !== null && boundary.tag === ClassComponent ? boundary.stateNode : null + }; + return ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(capturedError); + } + function logCapturedError(boundary, errorInfo) { + try { + var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging. + // This enables renderers like ReactNative to better manage redbox behavior. + + if (logError === false) { + return; + } + var error = errorInfo.value; + if (true) { + var source = errorInfo.source; + var stack = errorInfo.stack; + var componentStack = stack !== null ? stack : ""; // Browsers support silencing uncaught errors by calling + // `preventDefault()` in window `error` handler. + // We record this information as an expando on the error. + + if (error != null && error._suppressLogging) { + if (boundary.tag === ClassComponent) { + // The error is recoverable and was silenced. + // Ignore it and don't print the stack addendum. + // This is handy for testing error boundaries without noise. + return; + } // The error is fatal. Since the silencing might have + // been accidental, we'll surface it anyway. + // However, the browser would have silenced the original error + // so we'll print it first, and then print the stack addendum. + + console["error"](error); // Don't transform to our wrapper + // For a more detailed description of this block, see: + // https://github.com/facebook/react/pull/13384 + } + + var componentName = source ? getComponentNameFromFiber(source) : null; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage; + if (boundary.tag === HostRoot) { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; } else { - if (0 === (thrownValue & 1)) { - attachPingListener(root, wakeable, thrownValue); - renderDidSuspendDelayIfPossible(); - break a; - } - value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); } + var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack. + // We don't include the original error message and JS stack because the browser + // has already printed it. Even if the application swallows the error, it is still + // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. + + console["error"](combinedMessage); // Don't transform to our wrapper + } else { + // In production, we print the error directly. + // This will include the message, the JS stack, and anything the browser wants to show. + // We pass the error object instead of custom message so that the browser displays the error natively. + console["error"](error); // Don't transform to our wrapper } - root = value; - 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); - null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); - value = createCapturedValue(value, sourceFiber); - root = returnFiber; - do { - switch (root.tag) { - case 3: - wakeable = value; - root.flags |= 65536; - thrownValue &= -thrownValue; - root.lanes |= thrownValue; - var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); - enqueueCapturedUpdate(root, update$jscomp$0); - break a; - case 1: - wakeable = value; - var ctor = root.type, - instance = root.stateNode; - if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { - root.flags |= 65536; - thrownValue &= -thrownValue; - root.lanes |= thrownValue; - var update$34 = createClassErrorUpdate(root, wakeable, thrownValue); - enqueueCapturedUpdate(root, update$34); - break a; - } - } - root = root.return; - } while (null !== root); + } catch (e) { + // This method must not throw, or React internal state will get messed up. + // If console.error is overridden, or logCapturedError() shows a dialog that throws, + // we want to report this error outside of the normal stack as a last resort. + // https://github.com/facebook/react/issues/13188 + setTimeout(function () { + throw e; + }); } - completeUnitOfWork(erroredWork); - } catch (yetAnotherThrownValue) { - thrownValue = yetAnotherThrownValue; - workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); - continue; } - break; - } while (1); - } - function pushDispatcher() { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; - return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; - } - function renderDidSuspendDelayIfPossible() { - if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; - null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); - } - function renderRootSync(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); - do { - try { - workLoopSync(); - break; - } catch (thrownValue) { - handleError(root, thrownValue); + var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null. + + update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property + // being called "element". + + update.payload = { + element: null + }; + var error = errorInfo.value; + update.callback = function () { + onUncaughtError(error); + logCapturedError(fiber, errorInfo); + }; + return update; } - } while (1); - resetContextDependencies(); - executionContext = prevExecutionContext; - ReactCurrentDispatcher$2.current = prevDispatcher; - if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - return workInProgressRootExitStatus; - } - function workLoopSync() { - for (; null !== workInProgress;) { - performUnitOfWork(workInProgress); - } - } - function workLoopConcurrent() { - for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) { - performUnitOfWork(workInProgress); - } - } - function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); - unitOfWork.memoizedProps = unitOfWork.pendingProps; - null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; - ReactCurrentOwner$2.current = null; - } - function completeUnitOfWork(unitOfWork) { - var completedWork = unitOfWork; - do { - var current = completedWork.alternate; - unitOfWork = completedWork.return; - if (0 === (completedWork.flags & 32768)) { - if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { - workInProgress = current; - return; + function createClassErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + update.tag = CaptureUpdate; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if (typeof getDerivedStateFromError === "function") { + var error$1 = errorInfo.value; + update.payload = function () { + return getDerivedStateFromError(error$1); + }; + update.callback = function () { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + }; } - } else { - current = unwindWork(current, completedWork); - if (null !== current) { - current.flags &= 32767; - workInProgress = current; - return; + var inst = fiber.stateNode; + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + if (typeof getDerivedStateFromError !== "function") { + // To preserve the preexisting retry behavior of error boundaries, + // we keep track of which ones already failed during this batch. + // This gets reset before we yield back to the browser. + // TODO: Warn in strict mode if getDerivedStateFromError is + // not defined. + markLegacyErrorBoundaryAsFailed(this); + } + var error$1 = errorInfo.value; + var stack = errorInfo.stack; + this.componentDidCatch(error$1, { + componentStack: stack !== null ? stack : "" + }); + { + if (typeof getDerivedStateFromError !== "function") { + // If componentDidCatch is the only error boundary method defined, + // then it needs to call setState to recover from errors. + // If no state update is scheduled then the boundary will swallow the error. + if (!includesSomeLane(fiber.lanes, SyncLane)) { + error("%s: Error boundaries should implement getDerivedStateFromError(). " + "In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); + } + } + } + }; } - if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { - workInProgressRootExitStatus = 6; - workInProgress = null; - return; + return update; + } + function attachPingListener(root, wakeable, lanes) { + // Attach a ping listener + // + // The data might resolve before we have a chance to commit the fallback. Or, + // in the case of a refresh, we'll never commit a fallback. So we need to + // attach a listener now. When it resolves ("pings"), we can decide whether to + // try rendering the tree again. + // + // Only attach a listener if one does not already exist for the lanes + // we're currently rendering (which acts like a "thread ID" here). + // + // We only need to do this in concurrent mode. Legacy Suspense always + // commits fallbacks synchronously, so there are no pings. + var pingCache = root.pingCache; + var threadIDs; + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap$1(); + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else { + threadIDs = pingCache.get(wakeable); + if (threadIDs === undefined) { + threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } + } + if (!threadIDs.has(lanes)) { + // Memoize using the thread ID to prevent redundant listeners. + threadIDs.add(lanes); + var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); + { + if (isDevToolsPresent) { + // If we have pending work still, restore the original updaters + restorePendingUpdaters(root, lanes); + } + } + wakeable.then(ping, ping); } } - completedWork = completedWork.sibling; - if (null !== completedWork) { - workInProgress = completedWork; - return; + function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { + // Retry listener + // + // If the fallback does commit, we need to attach a different type of + // listener. This one schedules an update on the Suspense boundary to turn + // the fallback state off. + // + // Stash the wakeable on the boundary fiber so we can access it in the + // commit phase. + // + // When the wakeable resolves, we'll attempt to render the boundary + // again ("retry"). + var wakeables = suspenseBoundary.updateQueue; + if (wakeables === null) { + var updateQueue = new Set(); + updateQueue.add(wakeable); + suspenseBoundary.updateQueue = updateQueue; + } else { + wakeables.add(wakeable); + } } - workInProgress = completedWork = unitOfWork; - } while (null !== completedWork); - 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); - } - function commitRoot(root, recoverableErrors, transitions) { - var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$2.transition; - try { - ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); - } finally { - ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; - } - return null; - } - function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { - do { - flushPassiveEffects(); - } while (null !== rootWithPendingPassiveEffects); - if (0 !== (executionContext & 6)) throw Error("Should not already be working."); - transitions = root.finishedWork; - var lanes = root.finishedLanes; - if (null === transitions) return null; - root.finishedWork = null; - root.finishedLanes = 0; - if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); - root.callbackNode = null; - root.callbackPriority = 0; - var remainingLanes = transitions.lanes | transitions.childLanes; - markRootFinished(root, remainingLanes); - root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); - 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { - flushPassiveEffects(); - return null; - })); - remainingLanes = 0 !== (transitions.flags & 15990); - if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { - remainingLanes = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; - var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; - var prevExecutionContext = executionContext; - executionContext |= 4; - ReactCurrentOwner$2.current = null; - commitBeforeMutationEffects(root, transitions); - commitMutationEffectsOnFiber(transitions, root); - root.current = transitions; - commitLayoutEffects(transitions, root, lanes); - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); - executionContext = prevExecutionContext; - currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$2.transition = remainingLanes; - } else root.current = transitions; - rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(transitions.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); - if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) { - renderPriorityLevel(recoverableErrors[transitions]); - } - if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; - 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; - flushSyncCallbacks(); - return null; - } - function flushPassiveEffects() { - if (null !== rootWithPendingPassiveEffects) { - var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), - prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = currentUpdatePriority; - try { - ReactCurrentBatchConfig$2.transition = null; - currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; - if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { - renderPriority = rootWithPendingPassiveEffects; - rootWithPendingPassiveEffects = null; - pendingPassiveEffectsLanes = 0; - if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); - var prevExecutionContext = executionContext; - executionContext |= 4; - for (nextEffect = renderPriority.current; null !== nextEffect;) { - var fiber = nextEffect, - child = fiber.child; - if (0 !== (nextEffect.flags & 16)) { - var deletions = fiber.deletions; - if (null !== deletions) { - for (var i = 0; i < deletions.length; i++) { - var fiberToDelete = deletions[i]; - for (nextEffect = fiberToDelete; null !== nextEffect;) { - var fiber$jscomp$0 = nextEffect; - switch (fiber$jscomp$0.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); - } - var child$jscomp$0 = fiber$jscomp$0.child; - if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { - fiber$jscomp$0 = nextEffect; - var sibling = fiber$jscomp$0.sibling, - returnFiber = fiber$jscomp$0.return; - detachFiberAfterEffects(fiber$jscomp$0); - if (fiber$jscomp$0 === fiberToDelete) { - nextEffect = null; - break; - } - if (null !== sibling) { - sibling.return = returnFiber; - nextEffect = sibling; - break; - } - nextEffect = returnFiber; - } - } - } - var previousFiber = fiber.alternate; - if (null !== previousFiber) { - var detachedChild = previousFiber.child; - if (null !== detachedChild) { - previousFiber.child = null; - do { - var detachedSibling = detachedChild.sibling; - detachedChild.sibling = null; - detachedChild = detachedSibling; - } while (null !== detachedChild); - } - } - nextEffect = fiber; + function resetSuspendedComponent(sourceFiber, rootRenderLanes) { + // A legacy mode Suspense quirk, only relevant to hook components. + + var tag = sourceFiber.tag; + if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { + var currentSource = sourceFiber.alternate; + if (currentSource) { + sourceFiber.updateQueue = currentSource.updateQueue; + sourceFiber.memoizedState = currentSource.memoizedState; + sourceFiber.lanes = currentSource.lanes; + } else { + sourceFiber.updateQueue = null; + sourceFiber.memoizedState = null; + } + } + } + function getNearestSuspenseBoundaryToCapture(returnFiber) { + var node = returnFiber; + do { + if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { + return node; + } // This boundary already captured during this render. Continue to the next + // boundary. + + node = node.return; + } while (node !== null); + return null; + } + function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { + // This marks a Suspense boundary so that when we're unwinding the stack, + // it captures the suspended "exception" and does a second (fallback) pass. + if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { + // Legacy Mode Suspense + // + // If the boundary is in legacy mode, we should *not* + // suspend the commit. Pretend as if the suspended component rendered + // null and keep rendering. When the Suspense boundary completes, + // we'll do a second pass to render the fallback. + if (suspenseBoundary === returnFiber) { + // Special case where we suspended while reconciling the children of + // a Suspense boundary's inner Offscreen wrapper fiber. This happens + // when a React.lazy component is a direct child of a + // Suspense boundary. + // + // Suspense boundaries are implemented as multiple fibers, but they + // are a single conceptual unit. The legacy mode behavior where we + // pretend the suspended fiber committed as `null` won't work, + // because in this case the "suspended" fiber is the inner + // Offscreen wrapper. + // + // Because the contents of the boundary haven't started rendering + // yet (i.e. nothing in the tree has partially rendered) we can + // switch to the regular, concurrent mode behavior: mark the + // boundary with ShouldCapture and enter the unwind phase. + suspenseBoundary.flags |= ShouldCapture; + } else { + suspenseBoundary.flags |= DidCapture; + sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete. + // But we shouldn't call any lifecycle methods or callbacks. Remove + // all lifecycle effect tags. + + sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); + if (sourceFiber.tag === ClassComponent) { + var currentSourceFiber = sourceFiber.alternate; + if (currentSourceFiber === null) { + // This is a new mount. Change the tag so it's not mistaken for a + // completed class component. For example, we should not call + // componentWillUnmount if it is deleted. + sourceFiber.tag = IncompleteClassComponent; + } else { + // When we try rendering again, we should not reuse the current fiber, + // since it's known to be in an inconsistent state. Use a force update to + // prevent a bail out. + var update = createUpdate(NoTimestamp, SyncLane); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update, SyncLane); } + } // The source fiber did not complete. Mark it with Sync priority to + // indicate that it still has pending work. + + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); + } + return suspenseBoundary; + } // Confirmed that the boundary is in a concurrent mode tree. Continue + // with the normal suspend path. + // + // After this we'll use a set of heuristics to determine whether this + // render pass will run to completion or restart or "suspend" the commit. + // The actual logic for this is spread out in different places. + // + // This first principle is that if we're going to suspend when we complete + // a root, then we should also restart if we get an update or ping that + // might unsuspend it, and vice versa. The only reason to suspend is + // because you think you might want to restart before committing. However, + // it doesn't make sense to restart only while in the period we're suspended. + // + // Restarting too aggressively is also not good because it starves out any + // intermediate loading state. So we use heuristics to determine when. + // Suspense Heuristics + // + // If nothing threw a Promise or all the same fallbacks are already showing, + // then don't suspend/restart. + // + // If this is an initial render of a new tree of Suspense boundaries and + // those trigger a fallback, then don't suspend/restart. We want to ensure + // that we can show the initial loading state as quickly as possible. + // + // If we hit a "Delayed" case, such as when we'd switch from content back into + // a fallback, then we should always suspend/restart. Transitions apply + // to this case. If none is defined, JND is used instead. + // + // If we're already showing a fallback and it gets "retried", allowing us to show + // another level, but there's still an inner boundary that would show a fallback, + // then we suspend/restart for 500ms since the last time we showed a fallback + // anywhere in the tree. This effectively throttles progressive loading into a + // consistent train of commits. This also gives us an opportunity to restart to + // get to the completed state slightly earlier. + // + // If there's ambiguity due to batching it's resolved in preference of: + // 1) "delayed", 2) "initial render", 3) "retry". + // + // We want to ensure that a "busy" state doesn't get force committed. We want to + // ensure that new initial loading states can commit as soon as possible. + + suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in + // the begin phase to prevent an early bailout. + + suspenseBoundary.lanes = rootRenderLanes; + return suspenseBoundary; + } + function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { + // The source fiber did not complete. + sourceFiber.flags |= Incomplete; + { + if (isDevToolsPresent) { + // If we have pending work still, restore the original updaters + restorePendingUpdaters(root, rootRenderLanes); + } + } + if (value !== null && typeof value === "object" && typeof value.then === "function") { + // This is a wakeable. The component suspended. + var wakeable = value; + resetSuspendedComponent(sourceFiber); + var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); + if (suspenseBoundary !== null) { + suspenseBoundary.flags &= ~ForceClientRender; + markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always + // commits fallbacks synchronously, so there are no pings. + + if (suspenseBoundary.mode & ConcurrentMode) { + attachPingListener(root, wakeable, rootRenderLanes); } - if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { - fiber = nextEffect; - if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(9, fiber, fiber.return); + attachRetryListener(suspenseBoundary, root, wakeable); + return; + } else { + // No boundary was found. Unless this is a sync update, this is OK. + // We can suspend and wait for more data to arrive. + if (!includesSyncLane(rootRenderLanes)) { + // This is not a sync update. Suspend. Since we're not activating a + // Suspense boundary, this will unwind all the way to the root without + // performing a second pass to render a fallback. (This is arguably how + // refresh transitions should work, too, since we're not going to commit + // the fallbacks anyway.) + // + // This case also applies to initial hydration. + attachPingListener(root, wakeable, rootRenderLanes); + renderDidSuspendDelayIfPossible(); + return; + } // This is a sync/discrete update. We treat this case like an error + // because discrete renders are expected to produce a complete tree + // synchronously to maintain consistency with external state. + + var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This " + "will cause the UI to be replaced with a loading indicator. To " + "fix, updates that suspend should be wrapped " + "with startTransition."); // If we're outside a transition, fall through to the regular error path. + // The error will be caught by the nearest suspense boundary. + + value = uncaughtSuspenseError; + } + } + value = createCapturedValueAtFiber(value, sourceFiber); + renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start + // over and traverse parent path again, this time treating the exception + // as an error. + + var workInProgress = returnFiber; + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.flags |= ShouldCapture; + var lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); + var update = createRootErrorUpdate(workInProgress, _errorInfo, lane); + enqueueCapturedUpdate(workInProgress, update); + return; } - var sibling$jscomp$0 = fiber.sibling; - if (null !== sibling$jscomp$0) { - sibling$jscomp$0.return = fiber.return; - nextEffect = sibling$jscomp$0; - break b; + case ClassComponent: + // Capture and retry + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.flags |= ShouldCapture; + var _lane = pickArbitraryLane(rootRenderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state + + var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane); + enqueueCapturedUpdate(workInProgress, _update); + return; } - nextEffect = fiber.return; + break; + } + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + function getSuspendedCache() { + { + return null; + } // This function is called when a Suspense boundary suspends. It returns the + } + + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var didReceiveUpdate = false; + var didWarnAboutBadClass; + var didWarnAboutModulePatternComponent; + var didWarnAboutContextTypeOnFunctionComponent; + var didWarnAboutGetDerivedStateOnFunctionComponent; + var didWarnAboutFunctionRefs; + var didWarnAboutReassigningProps; + var didWarnAboutRevealOrder; + var didWarnAboutTailOptions; + { + didWarnAboutBadClass = {}; + didWarnAboutModulePatternComponent = {}; + didWarnAboutContextTypeOnFunctionComponent = {}; + didWarnAboutGetDerivedStateOnFunctionComponent = {}; + didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; + didWarnAboutRevealOrder = {}; + didWarnAboutTailOptions = {}; + } + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + if (current === null) { + // If this is a fresh new component that hasn't been rendered yet, we + // won't update its child set by applying minimal side-effects. Instead, + // we will add them all to the child before it gets rendered. That means + // we can optimize this reconciliation pass by not tracking side-effects. + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + // If the current child is the same as the work in progress, it means that + // we haven't yet started any work on these children. Therefore, we use + // the clone algorithm to create a copy of all the current children. + // If we had any progressed work already, that is invalid at this point so + // let's throw it out. + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + } + function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) { + // This function is fork of reconcileChildren. It's used in cases where we + // want to reconcile without matching against the existing set. This has the + // effect of all current children being unmounted; even if the type and key + // are the same, the old child is unmounted and a new child is created. + // + // To do this, we're going to go through the reconcile algorithm twice. In + // the first pass, we schedule a deletion for all the current children by + // passing null. + workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we + // pass null in place of where we usually pass the current child set. This has + // the effect of remounting all children regardless of whether their + // identities match. + + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens after the first render suspends. + // We'll need to figure out if this is fine or can cause issues. + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + // Resolved props + "prop", getComponentNameFromType(Component)); } } - var finishedWork = renderPriority.current; - for (nextEffect = finishedWork; null !== nextEffect;) { - child = nextEffect; - var firstChild = child.child; - if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { - deletions = nextEffect; - if (0 !== (deletions.flags & 2048)) try { - switch (deletions.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(9, deletions); - } - } catch (error) { - captureCommitPhaseError(deletions, deletions.return, error); - } - if (deletions === child) { - nextEffect = null; - break b; - } - var sibling$jscomp$1 = deletions.sibling; - if (null !== sibling$jscomp$1) { - sibling$jscomp$1.return = deletions.return; - nextEffect = sibling$jscomp$1; - break b; + } + var render = Component.render; + var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent + + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (current === null) { + var type = Component.type; + if (isSimpleFunctionComponent(type) && Component.compare === null && + // SimpleMemoComponent codepath doesn't resolve outer props either. + Component.defaultProps === undefined) { + var resolvedType = type; + { + resolvedType = resolveFunctionForHotReloading(type); + } // If this is a plain function component without default props, + // and with only the default shallow comparison, we upgrade it + // to a SimpleMemoComponent to allow fast path updates. + + workInProgress.tag = SimpleMemoComponent; + workInProgress.type = resolvedType; + { + validateFunctionComponentInDev(workInProgress, type); + } + return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes); + } + { + var innerPropTypes = type.propTypes; + if (innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes(innerPropTypes, nextProps, + // Resolved props + "prop", getComponentNameFromType(type)); + } + } + var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + child.ref = workInProgress.ref; + child.return = workInProgress; + workInProgress.child = child; + return child; + } + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + if (_innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes(_innerPropTypes, nextProps, + // Resolved props + "prop", getComponentNameFromType(_type)); + } + } + var currentChild = current.child; // This is always exactly one child + + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext) { + // This will be the props with resolved defaultProps, + // unlike current.memoizedProps which will be the unresolved ones. + var prevProps = currentChild.memoizedProps; // Default to shallow comparison + + var compare = Component.compare; + compare = compare !== null ? compare : shallowEqual; + if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + } // React DevTools reads this flag. + + workInProgress.flags |= PerformedWork; + var newChild = createWorkInProgress(currentChild, nextProps); + newChild.ref = workInProgress.ref; + newChild.return = workInProgress; + workInProgress.child = newChild; + return newChild; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens when the inner render suspends. + // We'll need to figure out if this is fine or can cause issues. + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var outerMemoType = workInProgress.elementType; + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + // We warn when you define propTypes on lazy() + // so let's just skip over it to find memo() outer wrapper. + // Inner props for memo are validated later. + var lazyComponent = outerMemoType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + outerMemoType = init(payload); + } catch (x) { + outerMemoType = null; + } // Inner propTypes will be validated in the function component path. + + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, nextProps, + // Resolved (SimpleMemoComponent has no defaultProps) + "prop", getComponentNameFromType(outerMemoType)); } - nextEffect = deletions.return; } } - executionContext = prevExecutionContext; - flushSyncCallbacks(); - if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { - injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); - } catch (err) {} - JSCompiler_inline_result = !0; } - return JSCompiler_inline_result; - } finally { - currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; + if (current !== null) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && + // Prevent bailout if the implementation changed due to hot reload. + workInProgress.type === current.type) { + didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we + // would during a normal fiber bailout. + // + // We don't have strong guarantees that the props object is referentially + // equal during updates where we can't bail out anyway โ€” like if the props + // are shallowly equal, but there's a local state or context update in the + // same batch. + // + // However, as a principle, we should aim to make the behavior consistent + // across different ways of memoizing a component. For example, React.memo + // has a different internal Fiber layout if you pass a normal function + // component (SimpleMemoComponent) versus if you pass a different type + // like forwardRef (MemoComponent). But this is an implementation detail. + // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't + // affect whether the props object is reused during a bailout. + + workInProgress.pendingProps = nextProps = prevProps; + if (!checkScheduledUpdateOrContext(current, renderLanes)) { + // The pending lanes were cleared at the beginning of beginWork. We're + // about to bail out, but there might be other lanes that weren't + // included in the current render. Usually, the priority level of the + // remaining updates is accumulated during the evaluation of the + // component (i.e. when processing the update queue). But since since + // we're bailing out early *without* evaluating the component, we need + // to account for it here, too. Reset to the value of the current fiber. + // NOTE: This only applies to SimpleMemoComponent, not MemoComponent, + // because a MemoComponent fiber does not have hooks or an update queue; + // rather, it wraps around an inner component, which may or may not + // contains hooks. + // TODO: Move the reset at in beginWork out of the common path so that + // this is no longer necessary. + workInProgress.lanes = current.lanes; + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + // This is a special case that only exists for legacy mode. + // See https://github.com/facebook/react/pull/19216. + didReceiveUpdate = true; + } + } + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); } - } - return !1; - } - function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { - sourceFiber = createCapturedValue(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - enqueueUpdate(rootFiber, sourceFiber); - sourceFiber = requestEventTime(); - rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1); - null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); - } - function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { - if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { - if (3 === nearestMountedAncestor.tag) { - captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); - break; - } else if (1 === nearestMountedAncestor.tag) { - var instance = nearestMountedAncestor.stateNode; - if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { - sourceFiber = createCapturedValue(error, sourceFiber); - sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); - enqueueUpdate(nearestMountedAncestor, sourceFiber); - sourceFiber = requestEventTime(); - nearestMountedAncestor = markUpdateLaneFromFiberToRoot(nearestMountedAncestor, 1); - null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); - break; + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + var prevState = current !== null ? current.memoizedState : null; + if (nextProps.mode === "hidden" || enableLegacyHidden) { + // Rendering a hidden tree. + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + // In legacy sync mode, don't defer the subtree. Render it now. + // TODO: Consider how Offscreen should work with transitions in the future + var nextState = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = nextState; + pushRenderLanes(workInProgress, renderLanes); + } else if (!includesSomeLane(renderLanes, OffscreenLane)) { + var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out + // and resume this tree later. + + var nextBaseLanes; + if (prevState !== null) { + var prevBaseLanes = prevState.baseLanes; + nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes); + } else { + nextBaseLanes = renderLanes; + } // Schedule this fiber to re-render at offscreen priority. Then bailout. + + workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane); + var _nextState = { + baseLanes: nextBaseLanes, + cachePool: spawnedCachePool, + transitions: null + }; + workInProgress.memoizedState = _nextState; + workInProgress.updateQueue = null; + // to avoid a push/pop misalignment. + + pushRenderLanes(workInProgress, nextBaseLanes); + return null; + } else { + // This is the second render. The surrounding visible content has already + // committed. Now we resume rendering the hidden tree. + // Rendering at offscreen, so we can clear the base lanes. + var _nextState2 = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out. + + var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes; + pushRenderLanes(workInProgress, subtreeRenderLanes); + } + } else { + // Rendering a visible tree. + var _subtreeRenderLanes; + if (prevState !== null) { + // We're going from hidden -> visible. + _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); + workInProgress.memoizedState = null; + } else { + // We weren't previously hidden, and we still aren't, so there's nothing + // special to do. Need to push to the stack regardless, though, to avoid + // a push/pop misalignment. + _subtreeRenderLanes = renderLanes; + } + pushRenderLanes(workInProgress, _subtreeRenderLanes); } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } // Note: These happen to have identical begin phases, for now. We shouldn't hold + + function updateFragment(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; } - nearestMountedAncestor = nearestMountedAncestor.return; - } - } - function pingSuspendedRoot(root, wakeable, pingedLanes) { - var pingCache = root.pingCache; - null !== pingCache && pingCache.delete(wakeable); - wakeable = requestEventTime(); - root.pingedLanes |= root.suspendedLanes & pingedLanes; - workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); - ensureRootIsScheduled(root, wakeable); - } - function retryTimedOutBoundary(boundaryFiber, retryLane) { - 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); - var eventTime = requestEventTime(); - boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); - null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); - } - function retryDehydratedSuspenseBoundary(boundaryFiber) { - var suspenseState = boundaryFiber.memoizedState, - retryLane = 0; - null !== suspenseState && (retryLane = suspenseState.retryLane); - retryTimedOutBoundary(boundaryFiber, retryLane); - } - function resolveRetryWakeable(boundaryFiber, wakeable) { - var retryLane = 0; - switch (boundaryFiber.tag) { - case 13: - var retryCache = boundaryFiber.stateNode; - var suspenseState = boundaryFiber.memoizedState; - null !== suspenseState && (retryLane = suspenseState.retryLane); - break; - case 19: - retryCache = boundaryFiber.stateNode; - break; - default: - throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); - } - null !== retryCache && retryCache.delete(wakeable); - retryTimedOutBoundary(boundaryFiber, retryLane); - } - var beginWork$1; - beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { - if (null !== current) { - if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { - if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); - didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; + function updateMode(current, workInProgress, renderLanes) { + var nextChildren = workInProgress.pendingProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; } - } else didReceiveUpdate = !1; - workInProgress.lanes = 0; - switch (workInProgress.tag) { - case 2: - var Component = workInProgress.type; - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - var context = getMaskedContext(workInProgress, contextStackCursor.current); - prepareToReadContext(workInProgress, renderLanes); - context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); - workInProgress.flags |= 1; - if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { - workInProgress.tag = 1; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - if (isContextProvider(Component)) { - var hasContext = !0; - pushContextProvider(workInProgress); - } else hasContext = !1; - workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; - initializeUpdateQueue(workInProgress); - context.updater = classComponentUpdater; - workInProgress.stateNode = context; - context._reactInternals = workInProgress; - mountClassInstance(workInProgress, Component, current, renderLanes); - workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); - } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; - return workInProgress; - case 16: - Component = workInProgress.elementType; - a: { - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - context = Component._init; - Component = context(Component._payload); - workInProgress.type = Component; - context = workInProgress.tag = resolveLazyComponentTag(Component); - current = resolveDefaultProps(Component, current); - switch (context) { - case 0: - workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); - break a; - case 1: - workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); - break a; - case 11: - workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); - break a; - case 14: - workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); - break a; + function updateProfiler(current, workInProgress, renderLanes) { + { + workInProgress.flags |= Update; + { + // Reset effect durations for the next eventual effect phase. + // These are reset during render to allow the DevTools commit hook a chance to read them, + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; } - throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); } - return workInProgress; - case 0: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); - case 1: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); - case 3: - pushHostRootContext(workInProgress); - if (null === current) throw Error("Should have a current fiber. This is a bug in React."); - context = workInProgress.pendingProps; - Component = workInProgress.memoizedState.element; - cloneUpdateQueue(current, workInProgress); - processUpdateQueue(workInProgress, context, null, renderLanes); - context = workInProgress.memoizedState.element; - context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); - return workInProgress; - case 5: - return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 6: - return null; - case 13: - return updateSuspenseComponent(current, workInProgress, renderLanes); - case 4: - return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 11: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); - case 7: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; - case 8: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; - case 12: - return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; - case 10: - a: { - Component = workInProgress.type._context; - context = workInProgress.pendingProps; - hasContext = workInProgress.memoizedProps; - var newValue = context.value; - push(valueCursor, Component._currentValue); - Component._currentValue = newValue; - if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { - if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { - workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - break a; + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (current === null && ref !== null || current !== null && current.ref !== ref) { + // Schedule a Ref effect + workInProgress.flags |= Ref; + } + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + // Resolved props + "prop", getComponentNameFromType(Component)); } - } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { - var list = hasContext.dependencies; - if (null !== list) { - newValue = hasContext.child; - for (var dependency = list.firstContext; null !== dependency;) { - if (dependency.context === Component) { - if (1 === hasContext.tag) { - dependency = createUpdate(-1, renderLanes & -renderLanes); - dependency.tag = 2; - var updateQueue = hasContext.updateQueue; - if (null !== updateQueue) { - updateQueue = updateQueue.shared; - var pending = updateQueue.pending; - null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); - updateQueue.pending = dependency; - } - } - hasContext.lanes |= renderLanes; - dependency = hasContext.alternate; - null !== dependency && (dependency.lanes |= renderLanes); - scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); - list.lanes |= renderLanes; - break; - } - dependency = dependency.next; - } - } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { - newValue = hasContext.return; - if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); - newValue.lanes |= renderLanes; - list = newValue.alternate; - null !== list && (list.lanes |= renderLanes); - scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); - newValue = hasContext.sibling; - } else newValue = hasContext.child; - if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { - if (newValue === workInProgress) { - newValue = null; + } + } + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); + context = getMaskedContext(workInProgress, unmaskedContext); + } + var nextChildren; + prepareToReadContext(workInProgress, renderLanes); + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + setIsRendering(false); + } + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderLanes); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + { + // This is used by DevTools to force a boundary to error. + switch (shouldError(workInProgress)) { + case false: + { + var _instance = workInProgress.stateNode; + var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack. + // Is there a better way to do this? + + var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context); + var state = tempInstance.state; + _instance.updater.enqueueSetState(_instance, state, null); break; } - hasContext = newValue.sibling; - if (null !== hasContext) { - hasContext.return = newValue.return; - newValue = hasContext; + case true: + { + workInProgress.flags |= DidCapture; + workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes + + var error$1 = new Error("Simulated error coming from DevTools"); + var lane = pickArbitraryLane(renderLanes); + workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state + + var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane); + enqueueCapturedUpdate(workInProgress, update); break; } - newValue = newValue.return; + } + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes(innerPropTypes, nextProps, + // Resolved props + "prop", getComponentNameFromType(Component)); } - hasContext = newValue; } - reconcileChildren(current, workInProgress, context.children, renderLanes); - workInProgress = workInProgress.child; + } // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. + + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; } - return workInProgress; - case 9: - return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; - case 14: - return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); - case 15: - return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); - case 17: - return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); - case 19: - return updateSuspenseListComponent(current, workInProgress, renderLanes); - case 22: - return updateOffscreenComponent(current, workInProgress, renderLanes); - } - throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); - }; - function scheduleCallback$1(priorityLevel, callback) { - return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); - } - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = mode; - this.subtreeFlags = this.flags = 0; - this.deletions = null; - this.childLanes = this.lanes = 0; - this.alternate = null; - } - function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); - } - function shouldConstruct(Component) { - Component = Component.prototype; - return !(!Component || !Component.isReactComponent); - } - function resolveLazyComponentTag(Component) { - if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; - if (void 0 !== Component && null !== Component) { - Component = Component.$$typeof; - if (Component === REACT_FORWARD_REF_TYPE) return 11; - if (Component === REACT_MEMO_TYPE) return 14; - } - return 2; - } - function createWorkInProgress(current, pendingProps) { - var workInProgress = current.alternate; - null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); - workInProgress.flags = current.flags & 14680064; - workInProgress.childLanes = current.childLanes; - workInProgress.lanes = current.lanes; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - pendingProps = current.dependencies; - workInProgress.dependencies = null === pendingProps ? null : { - lanes: pendingProps.lanes, - firstContext: pendingProps.firstContext - }; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - return workInProgress; - } - function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { - var fiberTag = 2; - owner = type; - if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, lanes, key); - case REACT_STRICT_MODE_TYPE: - fiberTag = 8; - mode |= 8; - break; - case REACT_PROFILER_TYPE: - return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; - case REACT_SUSPENSE_TYPE: - return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; - case REACT_SUSPENSE_LIST_TYPE: - return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; - case REACT_OFFSCREEN_TYPE: - return createFiberFromOffscreen(pendingProps, mode, lanes, key); - default: - if ("object" === typeof type && null !== type) switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - fiberTag = 10; - break a; - case REACT_CONTEXT_TYPE: - fiberTag = 9; - break a; - case REACT_FORWARD_REF_TYPE: - fiberTag = 11; - break a; - case REACT_MEMO_TYPE: - fiberTag = 14; - break a; - case REACT_LAZY_TYPE: - fiberTag = 16; - owner = null; - break a; + prepareToReadContext(workInProgress, renderLanes); + var instance = workInProgress.stateNode; + var shouldUpdate; + if (instance === null) { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance. + + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + shouldUpdate = true; + } else if (current === null) { + // In a resume, we'll already have an instance we can reuse. + shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes); + } else { + shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes); } - throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); - } - key = createFiber(fiberTag, pendingProps, key, mode); - key.elementType = type; - key.type = owner; - key.lanes = lanes; - return key; - } - function createFiberFromFragment(elements, mode, lanes, key) { - elements = createFiber(7, elements, key, mode); - elements.lanes = lanes; - return elements; - } - function createFiberFromOffscreen(pendingProps, mode, lanes, key) { - pendingProps = createFiber(22, pendingProps, key, mode); - pendingProps.elementType = REACT_OFFSCREEN_TYPE; - pendingProps.lanes = lanes; - pendingProps.stateNode = {}; - return pendingProps; - } - function createFiberFromText(content, mode, lanes) { - content = createFiber(6, content, null, mode); - content.lanes = lanes; - return content; - } - function createFiberFromPortal(portal, mode, lanes) { - mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); - mode.lanes = lanes; - mode.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return mode; - } - function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { - this.tag = tag; - this.containerInfo = containerInfo; - this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; - this.timeoutHandle = -1; - this.callbackNode = this.pendingContext = this.context = null; - this.callbackPriority = 0; - this.eventTimes = createLaneMap(0); - this.expirationTimes = createLaneMap(-1); - this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; - this.entanglements = createLaneMap(0); - this.identifierPrefix = identifierPrefix; - this.onRecoverableError = onRecoverableError; - } - function createPortal(children, containerInfo, implementation) { - var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: null == key ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - function findHostInstance(component) { - var fiber = component._reactInternals; - if (void 0 === fiber) { - if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); - component = Object.keys(component).join(","); - throw Error("Argument appears to not be a ReactComponent. Keys: " + component); - } - component = findCurrentHostFiber(fiber); - return null === component ? null : component.stateNode; - } - function updateContainer(element, container, parentComponent, callback) { - var current = container.current, - eventTime = requestEventTime(), - lane = requestUpdateLane(current); - a: if (parentComponent) { - parentComponent = parentComponent._reactInternals; - b: { - if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); - var JSCompiler_inline_result = parentComponent; - do { - switch (JSCompiler_inline_result.tag) { - case 3: - JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; - break b; - case 1: - if (isContextProvider(JSCompiler_inline_result.type)) { - JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; - break b; - } + var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes); + { + var inst = workInProgress.stateNode; + if (shouldUpdate && inst.props !== nextProps) { + if (!didWarnAboutReassigningProps) { + error("It looks like %s is reassigning its own `this.props` while rendering. " + "This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"); + } + didWarnAboutReassigningProps = true; } - JSCompiler_inline_result = JSCompiler_inline_result.return; - } while (null !== JSCompiler_inline_result); - throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + return nextUnitOfWork; } - if (1 === parentComponent.tag) { - var Component = parentComponent.type; - if (isContextProvider(Component)) { - parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); - break a; + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + // Refs should update even if shouldComponentUpdate returns false + markRef(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + if (!shouldUpdate && !didCaptureError) { + // Context providers should defer to sCU for rendering + if (hasContext) { + invalidateContextProvider(workInProgress, Component, false); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + var instance = workInProgress.stateNode; // Rerender + + ReactCurrentOwner$1.current = workInProgress; + var nextChildren; + if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { + // If we captured an error, but getDerivedStateFromError is not defined, + // unmount all the children. componentDidCatch will schedule an update to + // re-render a fallback. This is temporary until we migrate everyone to + // the new API. + // TODO: Warn in a future release. + nextChildren = null; + { + stopProfilerTimerIfRunning(); + } + } else { + { + setIsRendering(true); + nextChildren = instance.render(); + setIsRendering(false); + } + } // React DevTools reads this flag. + + workInProgress.flags |= PerformedWork; + if (current !== null && didCaptureError) { + // If we're recovering from an error, reconcile without reusing any of + // the existing children. Conceptually, the normal children and the children + // that are shown on error are two different sets, so we shouldn't reuse + // normal children even if their identities match. + forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } // Memoize state using the values we just used to render. + // TODO: Restructure so we never read values from the instance. + + workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it. + + if (hasContext) { + invalidateContextProvider(workInProgress, Component, true); } + return workInProgress.child; } - parentComponent = JSCompiler_inline_result; - } else parentComponent = emptyContextObject; - null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; - container = createUpdate(eventTime, lane); - container.payload = { - element: element - }; - callback = void 0 === callback ? null : callback; - null !== callback && (container.callback = callback); - enqueueUpdate(current, container); - element = scheduleUpdateOnFiber(current, lane, eventTime); - null !== element && entangleTransitions(element, current, lane); - return lane; - } - function emptyFindFiberByHostInstance() { - return null; - } - function findNodeHandle(componentOrHandle) { - if (null == componentOrHandle) return null; - if ("number" === typeof componentOrHandle) return componentOrHandle; - if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; - componentOrHandle = findHostInstance(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; - } - function onRecoverableError(error) { - console.error(error); - } - function unmountComponentAtNode(containerTag) { - var root = roots.get(containerTag); - root && updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - } - batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { - var prevExecutionContext = executionContext; - executionContext |= 1; - try { - return fn(a); - } finally { - executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); - } - }; - var roots = new Map(), - devToolsConfig$jscomp$inline_967 = { - findFiberByHostInstance: getInstanceFromTag, - bundleType: 0, - version: "18.2.0-next-d300cebde-20220601", - rendererPackageName: "react-native-renderer", - rendererConfig: { - getInspectorDataForViewTag: function getInspectorDataForViewTag() { - throw Error("getInspectorDataForViewTag() is not available in production"); - }, - getInspectorDataForViewAtPoint: function () { - throw Error("getInspectorDataForViewAtPoint() is not available in production."); - }.bind(null, findNodeHandle) + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + // Should always be set + pushTopLevelContextObject(workInProgress, root.context, false); + } + pushHostContainer(workInProgress, root.containerInfo); } - }; - var internals$jscomp$inline_1239 = { - bundleType: devToolsConfig$jscomp$inline_967.bundleType, - version: devToolsConfig$jscomp$inline_967.version, - rendererPackageName: devToolsConfig$jscomp$inline_967.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_967.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: devToolsConfig$jscomp$inline_967.findFiberByHostInstance || emptyFindFiberByHostInstance, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: "18.2.0-next-d300cebde-20220601" - }; - if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (!hook$jscomp$inline_1240.isDisabled && hook$jscomp$inline_1240.supportsFiber) try { - rendererID = hook$jscomp$inline_1240.inject(internals$jscomp$inline_1239), injectedHook = hook$jscomp$inline_1240; - } catch (err) {} - } - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { - computeComponentStackForErrorReporting: function computeComponentStackForErrorReporting(reactTag) { - return (reactTag = getInstanceFromTag(reactTag)) ? getStackByFiberInDevAndProd(reactTag) : ""; - } - }; - exports.createPortal = function (children, containerTag) { - return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); - }; - exports.dispatchCommand = function (handle, command, args) { - null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); - }; - exports.findHostInstance_DEPRECATED = function (componentOrHandle) { - if (null == componentOrHandle) return null; - if (componentOrHandle._nativeTag) return componentOrHandle; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; - componentOrHandle = findHostInstance(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; - }; - exports.findNodeHandle = findNodeHandle; - exports.getInspectorDataForInstance = void 0; - exports.render = function (element, containerTag, callback) { - var root = roots.get(containerTag); - if (!root) { - root = new FiberRootNode(containerTag, 0, !1, "", onRecoverableError); - var JSCompiler_inline_result = createFiber(3, null, null, 0); - root.current = JSCompiler_inline_result; - JSCompiler_inline_result.stateNode = root; - JSCompiler_inline_result.memoizedState = { - element: null, - isDehydrated: !1, - cache: null, - transitions: null, - pendingSuspenseBoundaries: null - }; - initializeUpdateQueue(JSCompiler_inline_result); - roots.set(containerTag, root); - } - updateContainer(element, root, null, callback); - a: if (element = root.current, element.child) switch (element.child.tag) { - case 5: - element = element.child.stateNode; - break a; - default: - element = element.child.stateNode; - } else element = null; - return element; - }; - exports.sendAccessibilityEvent = function (handle, eventType) { - null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); - }; - exports.unmountComponentAtNode = unmountComponentAtNode; - exports.unmountComponentAtNodeAndRemoveContainer = function (containerTag) { - unmountComponentAtNode(containerTag); - _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.removeRootView(containerTag); - }; - exports.unstable_batchedUpdates = batchedUpdates; -},242,[39,36,197,205],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function updateHostRoot(current, workInProgress, renderLanes) { + pushHostRootContext(workInProgress); + if (current === null) { + throw new Error("Should have a current fiber. This is a bug in React."); + } + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, nextProps, null, renderLanes); + var nextState = workInProgress.memoizedState; + var root = workInProgress.stateNode; + // being called "element". - 'use strict'; + var nextChildren = nextState.element; + { + if (nextChildren === prevChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + } + return workInProgress.child; + } + function updateHostComponent(current, workInProgress, renderLanes) { + pushHostContext(workInProgress); + var type = workInProgress.type; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + var nextChildren = nextProps.children; + if (prevProps !== null && shouldSetTextContent()) { + // If we're switching from a direct text child to a normal child, or to + // empty, we need to schedule the text content to be reset. + workInProgress.flags |= ContentReset; + } + markRef(current, workInProgress); + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function updateHostText(current, workInProgress) { + // immediately after. - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../View/View")); - var _excluded = ["animating", "color", "hidesWhenStopped", "onLayout", "size", "style"]; - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var PlatformActivityIndicator = _Platform.default.OS === 'android' ? _$$_REQUIRE(_dependencyMap[6], "../ProgressBarAndroid/ProgressBarAndroid") : _$$_REQUIRE(_dependencyMap[7], "./ActivityIndicatorViewNativeComponent").default; - var GRAY = '#999999'; - var ActivityIndicator = function ActivityIndicator(_ref, forwardedRef) { - var _ref$animating = _ref.animating, - animating = _ref$animating === void 0 ? true : _ref$animating, - _ref$color = _ref.color, - color = _ref$color === void 0 ? _Platform.default.OS === 'ios' ? GRAY : null : _ref$color, - _ref$hidesWhenStopped = _ref.hidesWhenStopped, - hidesWhenStopped = _ref$hidesWhenStopped === void 0 ? true : _ref$hidesWhenStopped, - onLayout = _ref.onLayout, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 'small' : _ref$size, - style = _ref.style, - restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); - var sizeStyle; - var sizeProp; - switch (size) { - case 'small': - sizeStyle = styles.sizeSmall; - sizeProp = 'small'; - break; - case 'large': - sizeStyle = styles.sizeLarge; - sizeProp = 'large'; - break; - default: - sizeStyle = { - height: size, - width: size - }; - break; - } - var nativeProps = Object.assign({ - animating: animating, - color: color, - hidesWhenStopped: hidesWhenStopped - }, restProps, { - ref: forwardedRef, - style: sizeStyle, - size: sizeProp - }); - var androidProps = { - styleAttr: 'Normal', - indeterminate: true - }; - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { - onLayout: onLayout, - style: _StyleSheet.default.compose(styles.container, style), - children: _Platform.default.OS === 'android' ? (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps, androidProps)) : (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps)) - }); - }; + return null; + } + function mountLazyComponent(_current, workInProgress, elementType, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var lazyComponent = elementType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + var Component = init(payload); // Store the unwrapped component in the type. - var ActivityIndicatorWithRef = React.forwardRef(ActivityIndicator); - ActivityIndicatorWithRef.displayName = 'ActivityIndicator'; - var styles = _StyleSheet.default.create({ - container: { - alignItems: 'center', - justifyContent: 'center' - }, - sizeSmall: { - width: 20, - height: 20 - }, - sizeLarge: { - width: 36, - height: 36 - } - }); - module.exports = ActivityIndicatorWithRef; -},243,[3,132,36,14,244,245,248,250,73],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + workInProgress.type = Component; + var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); + var resolvedProps = resolveDefaultProps(Component, props); + var child; + switch (resolvedTag) { + case FunctionComponent: + { + { + validateFunctionComponentInDev(workInProgress, Component); + workInProgress.type = Component = resolveFunctionForHotReloading(Component); + } + child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ClassComponent: + { + { + workInProgress.type = Component = resolveClassForHotReloading(Component); + } + child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case ForwardRef: + { + { + workInProgress.type = Component = resolveForwardRefForHotReloading(Component); + } + child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes); + return child; + } + case MemoComponent: + { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = Component.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, resolvedProps, + // Resolved for outer only + "prop", getComponentNameFromType(Component)); + } + } + } + child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), + // The inner type can have defaults too + renderLanes); + return child; + } + } + var hint = ""; + { + if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { + hint = " Did you wrap a component in React.lazy() more than once?"; + } + } // This message intentionally doesn't mention ForwardRef or MemoComponent + // because the fact that it's a separate type of work is an + // implementation detail. - 'use strict'; + throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); + } + function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again. - var hairlineWidth = _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").roundToNearestPixel(0.4); - if (hairlineWidth === 0) { - hairlineWidth = 1 / _$$_REQUIRE(_dependencyMap[0], "../Utilities/PixelRatio").get(); - } - var absoluteFill = { - position: 'absolute', - left: 0, - right: 0, - top: 0, - bottom: 0 - }; - if (__DEV__) { - Object.freeze(absoluteFill); - } + workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent` + // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. - module.exports = { - hairlineWidth: hairlineWidth, - absoluteFill: absoluteFill, + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress, renderLanes); + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } + function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); + var props = workInProgress.pendingProps; + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, false); + context = getMaskedContext(workInProgress, unmaskedContext); + } + prepareToReadContext(workInProgress, renderLanes); + var value; + { + if (Component.prototype && typeof Component.prototype.render === "function") { + var componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutBadClass[componentName]) { + error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + if (workInProgress.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + setIsRendering(true); + ReactCurrentOwner$1.current = workInProgress; + value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes); + setIsRendering(false); + } + workInProgress.flags |= PerformedWork; + { + // Support for module components is deprecated and is removed behind a flag. + // Whether or not it would crash later, we want to show a good message in DEV first. + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + var _componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName, _componentName, _componentName); + didWarnAboutModulePatternComponent[_componentName] = true; + } + } + } + if ( + // Run these checks in production only if the flag is off. + // Eventually we'll delete this branch altogether. + typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + { + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName2]) { + error("The <%s /> component appears to be a function component that returns a class instance. " + "Change %s to a class that extends React.Component instead. " + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + "cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); + didWarnAboutModulePatternComponent[_componentName2] = true; + } + } // Proceed under the assumption that this is a class instance - absoluteFillObject: absoluteFill, - compose: function compose(style1, style2) { - if (style1 != null && style2 != null) { - return [style1, style2]; - } else { - return style1 != null ? style1 : style2; + workInProgress.tag = ClassComponent; // Throw out any hooks that were used. + + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. + + var hasContext = false; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + initializeUpdateQueue(workInProgress); + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, Component, props, renderLanes); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); + } else { + // Proceed under the assumption that this is a function component + workInProgress.tag = FunctionComponent; + reconcileChildren(null, workInProgress, value, renderLanes); + { + validateFunctionComponentInDev(workInProgress, Component); + } + return workInProgress.child; + } } - }, - flatten: _$$_REQUIRE(_dependencyMap[1], "./flattenStyle"), - setStyleAttributePreprocessor: function setStyleAttributePreprocessor(property, process) { - var _ReactNativeStyleAttr, _ReactNativeStyleAttr2; - var value; - if (_$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === true) { - value = { - process: process - }; - } else if (typeof _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] === 'object') { - value = Object.assign({}, _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property], { - process: process - }); - } else { - console.error(property + " is not a valid style attribute"); - return; + function validateFunctionComponentInDev(workInProgress, Component) { + { + if (Component) { + if (Component.childContextTypes) { + error("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"); + } + } + if (workInProgress.ref !== null) { + var info = ""; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + var warningKey = ownerName || ""; + var debugSource = workInProgress._debugSource; + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + error("Function components cannot be given refs. " + "Attempts to access this ref will fail. " + "Did you mean to use React.forwardRef()?%s", info); + } + } + if (typeof Component.getDerivedStateFromProps === "function") { + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) { + error("%s: Function components do not support getDerivedStateFromProps.", _componentName3); + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; + } + } + if (typeof Component.contextType === "object" && Component.contextType !== null) { + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + error("%s: Function components do not support contextType.", _componentName4); + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + } + } + } } - if (__DEV__ && typeof value.process === 'function' && typeof ((_ReactNativeStyleAttr = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr.process) === 'function' && value.process !== ((_ReactNativeStyleAttr2 = _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property]) == null ? void 0 : _ReactNativeStyleAttr2.process)) { - console.warn("Overwriting " + property + " style attribute preprocessor"); + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: NoLane + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: getSuspendedCache(), + transitions: null + }; } - _$$_REQUIRE(_dependencyMap[2], "../Components/View/ReactNativeStyleAttributes")[property] = value; - }, - create: function create(obj) { - if (__DEV__) { - for (var _key in obj) { - if (obj[_key]) { - Object.freeze(obj[_key]); + function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) { + var cachePool = null; + return { + baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes), + cachePool: cachePool, + transitions: prevOffscreenState.transitions + }; + } // TODO: Probably should inline this back + + function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) { + // If we're already showing a fallback, there are cases where we need to + // remain on that fallback regardless of whether the content has resolved. + // For example, SuspenseList coordinates when nested content appears. + if (current !== null) { + var suspenseState = current.memoizedState; + if (suspenseState === null) { + // Currently showing content. Don't hide it, even if ForceSuspenseFallback + // is true. More precise name might be "ForceRemainSuspenseFallback". + // Note: This is a factoring smell. Can't remain on a fallback if there's + // no fallback to remain on. + return false; } - } + } // Not currently showing content. Consult the Suspense context. + + return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); } - return obj; - } - }; -},244,[228,189,185],"node_modules/react-native/Libraries/StyleSheet/StyleSheet.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _ViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./ViewNativeComponent")); - var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Text/TextAncestor")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/View/View.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var View = React.forwardRef(function (props, forwardedRef) { - return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { - value: false, - children: (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_ViewNativeComponent.default, Object.assign({}, props, { - ref: forwardedRef - })) - }); - }); - View.displayName = 'View'; - module.exports = View; -},245,[3,246,247,36,73],"node_modules/react-native/Libraries/Components/View/View.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeCommands")); - var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getRemainingWorkInPrimaryTree(current, renderLanes) { + // TODO: Should not remove render lanes that were pinged during this render + return removeLanes(current.childLanes, renderLanes); + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend. - var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { - uiViewClassName: 'RCTView', - validAttributes: { - removeClippedSubviews: true, - accessible: true, - hasTVPreferredFocus: true, - nextFocusDown: true, - nextFocusForward: true, - nextFocusLeft: true, - nextFocusRight: true, - nextFocusUp: true, - borderRadius: true, - borderTopLeftRadius: true, - borderTopRightRadius: true, - borderBottomRightRadius: true, - borderBottomLeftRadius: true, - borderTopStartRadius: true, - borderTopEndRadius: true, - borderBottomStartRadius: true, - borderBottomEndRadius: true, - borderStyle: true, - hitSlop: true, - pointerEvents: true, - nativeBackgroundAndroid: true, - nativeForegroundAndroid: true, - needsOffscreenAlphaCompositing: true, - borderWidth: true, - borderLeftWidth: true, - borderRightWidth: true, - borderTopWidth: true, - borderBottomWidth: true, - borderStartWidth: true, - borderEndWidth: true, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderLeftColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderRightColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderTopColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderBottomColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderStartColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - borderEndColor: { - process: _$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/processColor") - }, - focusable: true, - overflow: true, - backfaceVisibility: true - } - } : { - uiViewClassName: 'RCTView' - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var ViewNativeComponent = NativeComponentRegistry.get('RCTView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['hotspotUpdate', 'setPressed'] - }); - exports.Commands = Commands; - var _default = ViewNativeComponent; - exports.default = _default; -},246,[211,3,202,14,36,159],"node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + { + if (shouldSuspend(workInProgress)) { + workInProgress.flags |= DidCapture; + } + } + var suspenseContext = suspenseStackCursor.current; + var showFallback = false; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { + // Something in this boundary's subtree already suspended. Switch to + // rendering the fallback children. + showFallback = true; + workInProgress.flags &= ~DidCapture; + } else { + // Attempting the main content + if (current === null || current.memoizedState !== null) { + // This is a new mount or this boundary is already showing a fallback state. + // Mark this subtree context as having at least one invisible parent that could + // handle the fallback state. + // Avoided boundaries are not considered since they cannot handle preferred fallback states. + { + suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); + } + } + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense + // boundary's children. This involves some custom reconciliation logic. Two + // main reasons this is so complicated. + // + // First, Legacy Mode has different semantics for backwards compatibility. The + // primary tree will commit in an inconsistent state, so when we do the + // second pass to render the fallback, we do some exceedingly, uh, clever + // hacks to make that not totally break. Like transferring effects and + // deletions from hidden tree. In Concurrent Mode, it's much simpler, + // because we bailout on the primary tree completely and leave it in its old + // state, no effects. Same as what we do for Offscreen (except that + // Offscreen doesn't have the first render pass). + // + // Second is hydration. During hydration, the Suspense fiber has a slightly + // different layout, where the child points to a dehydrated fragment, which + // contains the DOM rendered by the server. + // + // Third, even if you set all that aside, Suspense is like error boundaries in + // that we first we try to render one tree, and if that fails, we render again + // and switch to a different tree. Like a try/catch block. So we have to track + // which branch we're currently rendering. Ideally we would model this using + // a stack. - 'use strict'; + if (current === null) { + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null) { + var dehydrated = suspenseState.dehydrated; + if (dehydrated !== null) { + return mountDehydratedSuspenseComponent(workInProgress); + } + } + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + if (showFallback) { + var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var primaryChildFragment = workInProgress.child; + primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackFragment; + } else { + return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); + } + } else { + // This is an update. + // Special path for hydration + var prevState = current.memoizedState; + if (prevState !== null) { + var _dehydrated = prevState.dehydrated; + if (_dehydrated !== null) { + return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes); + } + } + if (showFallback) { + var _nextFallbackChildren = nextProps.fallback; + var _nextPrimaryChildren = nextProps.children; + var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes); + var _primaryChildFragment2 = workInProgress.child; + var prevOffscreenState = current.child.memoizedState; + _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes); + _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } else { + var _nextPrimaryChildren2 = nextProps.children; + var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes); + workInProgress.memoizedState = null; + return _primaryChildFragment3; + } + } + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) { + var mode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + primaryChildFragment.return = workInProgress; + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var progressedPrimaryFragment = workInProgress.child; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + var fallbackChildFragment; + if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { + // In legacy mode, we commit the primary tree as if it successfully + // completed, even though it's in an inconsistent state. + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + // Reset the durations from the first pass so they aren't included in the + // final amounts. This seems counterintuitive, since we're intentionally + // not measuring part of the render phase, but this makes it match what we + // do in Concurrent Mode. + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = 0; + primaryChildFragment.treeBaseDuration = 0; + } + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } else { + primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); + } + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) { + // The props argument to `createFiberFromOffscreen` is `any` typed, so we use + // this wrapper function to constrain it. + return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); + } + function updateWorkInProgressOffscreenFiber(current, offscreenProps) { + // The props argument to `createWorkInProgress` is `any` typed, so we use this + // wrapper function to constrain it. + return createWorkInProgress(current, offscreenProps); + } + function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) { + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, { + mode: "visible", + children: primaryChildren + }); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + primaryChildFragment.lanes = renderLanes; + } + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = null; + if (currentFallbackChildFragment !== null) { + // Delete the fallback child fragment + var deletions = workInProgress.deletions; + if (deletions === null) { + workInProgress.deletions = [currentFallbackChildFragment]; + workInProgress.flags |= ChildDeletion; + } else { + deletions.push(currentFallbackChildFragment); + } + } + workInProgress.child = primaryChildFragment; + return primaryChildFragment; + } + function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var mode = workInProgress.mode; + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + if ( + // In legacy mode, we commit the primary tree as if it successfully + // completed, even though it's in an inconsistent state. + (mode & ConcurrentMode) === NoMode && + // Make sure we're on the second pass, i.e. the primary child fragment was + // already cloned. In legacy mode, the only case where this isn't true is + // when DevTools forces us to display a fallback; we skip the first render + // pass entirely and go straight to rendering the fallback. (In Concurrent + // Mode, SuspenseList can also trigger this scenario, but this is a legacy- + // only codepath.) + workInProgress.child !== currentPrimaryChildFragment) { + var progressedPrimaryFragment = workInProgress.child; + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress.mode & ProfileMode) { + // Reset the durations from the first pass so they aren't included in the + // final amounts. This seems counterintuitive, since we're intentionally + // not measuring part of the render phase, but this makes it match what we + // do in Concurrent Mode. + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; + primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; + } // The fallback fiber was added as a deletion during the first pass. + // However, since we're going to remain on the fallback, we no longer want + // to delete it. - var React = _$$_REQUIRE(_dependencyMap[0], "react"); + workInProgress.deletions = null; + } else { + primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too. + // (We don't do this in legacy mode, because in legacy mode we don't re-use + // the current tree; see previous branch.) - var TextAncestorContext = React.createContext(false); - if (__DEV__) { - TextAncestorContext.displayName = 'TextAncestorContext'; - } - module.exports = TextAncestorContext; -},247,[36],"node_modules/react-native/Libraries/Text/TextAncestor.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; + } + var fallbackChildFragment; + if (currentFallbackChildFragment !== null) { + fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); + } else { + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already + // mounted but this is a new fiber. - 'use strict'; + fallbackChildFragment.flags |= Placement; + } + fallbackChildFragment.return = workInProgress; + primaryChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + // Falling back to client rendering. Because this has performance + // implications, it's considered a recoverable error, even though the user + // likely won't observe anything wrong with the UI. + // + // The error is passed in as an argument to enforce that every caller provide + // a custom message, or explicitly opt out (currently the only path that opts + // out is legacy mode; every concurrent path provides an error). + if (recoverableError !== null) { + queueHydrationError(recoverableError); + } // This will add the old fiber to the deletion list - module.exports = _$$_REQUIRE(_dependencyMap[0], "../UnimplementedViews/UnimplementedView"); -},248,[249],"node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated. - 'use strict'; + var nextProps = workInProgress.pendingProps; + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already + // mounted but this is a new fiber. - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../StyleSheet/StyleSheet")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var UnimplementedView = function (_React$Component) { - (0, _inherits2.default)(UnimplementedView, _React$Component); - var _super = _createSuper(UnimplementedView); - function UnimplementedView() { - (0, _classCallCheck2.default)(this, UnimplementedView); - return _super.apply(this, arguments); - } - (0, _createClass2.default)(UnimplementedView, [{ - key: "render", - value: function render() { - var View = _$$_REQUIRE(_dependencyMap[8], "../View/View"); - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(View, { - style: [styles.unimplementedView, this.props.style], - children: this.props.children - }); + primaryChildFragment.flags |= Placement; + workInProgress.memoizedState = null; + return primaryChildFragment; } - }]); - return UnimplementedView; - }(React.Component); - var styles = _StyleSheet.default.create({ - unimplementedView: __DEV__ ? { - alignSelf: 'flex-start', - borderColor: 'red', - borderWidth: 1 - } : {} - }); - module.exports = UnimplementedView; -},249,[3,12,13,50,47,46,36,244,245,73],"node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('ActivityIndicatorView', { - paperComponentName: 'RCTActivityIndicatorView' - }); - exports.default = _default; -},250,[3,251],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _requireNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Libraries/ReactNative/requireNativeComponent")); - var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); + function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) { + var fiberMode = workInProgress.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); + var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense + // boundary) already mounted but this is a new fiber. - function codegenNativeComponent(componentName, options) { - if (global.RN$Bridgeless === true) { - var errorMessage = "Native Component '" + componentName + "' that calls codegenNativeComponent was not code generated at build time. Please check its definition."; - console.error(errorMessage); - } - var componentNameInUse = options && options.paperComponentName != null ? options.paperComponentName : componentName; - if (options != null && options.paperComponentNameDeprecated != null) { - if (_UIManager.default.hasViewManagerConfig(componentName)) { - componentNameInUse = componentName; - } else if (options.paperComponentNameDeprecated != null && _UIManager.default.hasViewManagerConfig(options.paperComponentNameDeprecated)) { - componentNameInUse = options.paperComponentNameDeprecated; - } else { - var _options$paperCompone; - throw new Error("Failed to find native component for either " + componentName + " or " + ((_options$paperCompone = options.paperComponentNameDeprecated) != null ? _options$paperCompone : '(unknown)')); + fallbackChildFragment.flags |= Placement; + primaryChildFragment.return = workInProgress; + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress.child = primaryChildFragment; + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + // We will have dropped the effect list which contains the + // deletion. We need to reconcile to delete the current child. + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + } + return fallbackChildFragment; } - } - return (0, _requireNativeComponent.default)(componentNameInUse); - } - var _default = codegenNativeComponent; - exports.default = _default; -},251,[3,252,213],"node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) { + // During the first pass, we'll bail out and not drill into the children. + // Instead, we'll leave the content in place and try to hydrate it later. + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + { + error("Cannot hydrate Suspense in legacy mode. Switch from " + "ReactDOM.hydrate(element, container) to " + "ReactDOMClient.hydrateRoot(container, )" + ".render(element) or remove the Suspense components from " + "the server rendered components."); + } + workInProgress.lanes = laneToLanes(SyncLane); + } else if (isSuspenseInstanceFallback()) { + // This is a client-only boundary. Since we won't get any content from the server + // for this, we need to schedule that at a higher priority based on when it would + // have timed out. In theory we could render it in this pass but it would have the + // wrong priority associated with it and will prevent hydration of parent path. + // Instead, we'll leave work left on it to render it in a separate commit. + // TODO This time should be the time at which the server rendered response that is + // a parent to this boundary was displayed. However, since we currently don't have + // a protocol to transfer that time, we'll just estimate it by using the current + // time. This will mean that Suspense timeouts are slightly shifted to later than + // they should be. + // Schedule a normal pri update to render this content. + workInProgress.lanes = laneToLanes(DefaultHydrationLane); + } else { + // We'll continue hydrating the rest at offscreen priority since we'll already + // be showing the right content coming from the server, it is no rush. + workInProgress.lanes = laneToLanes(OffscreenLane); + } + return null; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (!didSuspend) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, + // TODO: When we delete legacy mode, we should make this error argument + // required โ€” every concurrent mode path that causes hydration to + // de-opt to client rendering should have an error message. + null); + } + if (isSuspenseInstanceFallback()) { + // This boundary is in a permanent fallback state. In this case, we'll never + // get an update and we'll never be able to hydrate the final content. Let's just try the + // client side render instead. + var digest, message, stack; + { + var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(); + digest = _getSuspenseInstanceF.digest; + message = _getSuspenseInstanceF.message; + stack = _getSuspenseInstanceF.stack; + } + var error; + if (message) { + // eslint-disable-next-line react-internal/prod-error-codes + error = new Error(message); + } else { + error = new Error("The server could not finish this Suspense boundary, likely " + "due to an error during server rendering. Switched to " + "client rendering."); + } + var capturedValue = createCapturedValue(error, digest, stack); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue); + } + // any context has changed, we need to treat is as if the input might have changed. - var requireNativeComponent = function requireNativeComponent(uiViewClassName) { - return _$$_REQUIRE(_dependencyMap[0], "../Renderer/shims/createReactNativeComponentClass")(uiViewClassName, function () { - return _$$_REQUIRE(_dependencyMap[1], "./getNativeComponentAttributes")(uiViewClassName); - }); - }; - module.exports = requireNativeComponent; -},252,[253,219],"node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var hasContextChanged = includesSomeLane(renderLanes, current.childLanes); + if (didReceiveUpdate || hasContextChanged) { + // This boundary has changed since the first render. This means that we are now unable to + // hydrate it. We might still be able to hydrate it using a higher priority lane. + var root = getWorkInProgressRoot(); + if (root !== null) { + var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes); + if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { + // Intentionally mutating since this render will get interrupted. This + // is one of the very rare times where we mutate the current tree + // during the render phase. + suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render - 'use strict'; + var eventTime = NoTimestamp; + enqueueConcurrentRenderForLane(current, attemptHydrationAtLane); + scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime); + } + } // If we have scheduled higher pri work above, this will probably just abort the render + // since we now have higher priority work, but in case it doesn't, we need to prepare to + // render something, if we time out. Even if that requires us to delete everything and + // skip hydration. + // Delay having to do this as long as the suspense timeout allows us. - var register = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.register; + renderDidSuspendDelayIfPossible(); + var _capturedValue = createCapturedValue(new Error("This Suspense boundary received an update before it finished " + "hydrating. This caused the boundary to switch to client rendering. " + "The usual way to fix this is to wrap the original update " + "in startTransition.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue); + } else if (isSuspenseInstancePending()) { + // This component is still pending more data from the server, so we can't hydrate its + // content. We treat it as if this component suspended itself. It might seem as if + // we could just try to render it client-side instead. However, this will perform a + // lot of unnecessary work and is unlikely to complete since it often will suspend + // on missing data anyway. Additionally, the server might be able to render more + // than we can on the client yet. In that case we'd end up with more fallback states + // on the client than if we just leave it alone. If the server times out or errors + // these should update this boundary to the permanent Fallback state instead. + // Mark it as having captured (i.e. suspended). + workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment. + + workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result. - var createReactNativeComponentClass = function createReactNativeComponentClass(name, callback) { - return register(name, callback); - }; - module.exports = createReactNativeComponentClass; -},253,[197],"node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var retry = retryDehydratedSuspenseBoundary.bind(null, current); + registerSuspenseInstanceRetry(); + return null; + } else { + // This is the first attempt. + reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext); + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this + // tree is part of a hydrating tree. This is used to determine if a child + // node has fully mounted yet, and for scheduling event replaying. + // Conceptually this is similar to Placement in that a new subtree is + // inserted into the React tree here. It just happens to not need DOM + // mutations because it already exists. - 'use strict'; + primaryChildFragment.flags |= Hydrating; + return primaryChildFragment; + } + } else { + // This is the second render pass. We already attempted to hydrated, but + // something either suspended or errored. + if (workInProgress.flags & ForceClientRender) { + // Something errored during hydration. Try again without hydrating. + workInProgress.flags &= ~ForceClientRender; + var _capturedValue2 = createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. " + "Switched to client rendering.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2); + } else if (workInProgress.memoizedState !== null) { + // Something suspended and we should still be in dehydrated mode. + // Leave the existing child in place. + workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there + // but the normal suspense pass doesn't. - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../Text/Text")); - var _TouchableNativeFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./Touchable/TouchableNativeFeedback")); - var _TouchableOpacity = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./Touchable/TouchableOpacity")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./View/View")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "invariant")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Button.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var Button = function (_React$Component) { - (0, _inherits2.default)(Button, _React$Component); - var _super = _createSuper(Button); - function Button() { - (0, _classCallCheck2.default)(this, Button); - return _super.apply(this, arguments); - } - (0, _createClass2.default)(Button, [{ - key: "render", - value: function render() { - var _this$props$accessibi, _this$props$accessibi2; - var _this$props = this.props, - accessibilityLabel = _this$props.accessibilityLabel, - color = _this$props.color, - onPress = _this$props.onPress, - touchSoundDisabled = _this$props.touchSoundDisabled, - title = _this$props.title, - hasTVPreferredFocus = _this$props.hasTVPreferredFocus, - nextFocusDown = _this$props.nextFocusDown, - nextFocusForward = _this$props.nextFocusForward, - nextFocusLeft = _this$props.nextFocusLeft, - nextFocusRight = _this$props.nextFocusRight, - nextFocusUp = _this$props.nextFocusUp, - testID = _this$props.testID, - accessible = _this$props.accessible, - accessibilityActions = _this$props.accessibilityActions, - accessibilityHint = _this$props.accessibilityHint, - accessibilityLanguage = _this$props.accessibilityLanguage, - onAccessibilityAction = _this$props.onAccessibilityAction; - var buttonStyles = [styles.button]; - var textStyles = [styles.text]; - if (color) { - if (_Platform.default.OS === 'ios') { - textStyles.push({ - color: color - }); + workInProgress.flags |= DidCapture; + return null; } else { - buttonStyles.push({ - backgroundColor: color - }); + // Suspended but we should no longer be in dehydrated mode. + // Therefore we now have to render the fallback. + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes); + var _primaryChildFragment4 = workInProgress.child; + _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; } } - var disabled = this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled; - var accessibilityState = disabled !== ((_this$props$accessibi2 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi2.disabled) ? Object.assign({}, this.props.accessibilityState, { - disabled: disabled - }) : this.props.accessibilityState; - if (disabled) { - buttonStyles.push(styles.buttonDisabled); - textStyles.push(styles.textDisabled); + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes = mergeLanes(fiber.lanes, renderLanes); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes); } - (0, _invariant.default)(typeof title === 'string', 'The title prop of a Button must be a string'); - var formattedTitle = _Platform.default.OS === 'android' ? title.toUpperCase() : title; - var Touchable = _Platform.default.OS === 'android' ? _TouchableNativeFeedback.default : _TouchableOpacity.default; - return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(Touchable, { - accessible: accessible, - accessibilityActions: accessibilityActions, - onAccessibilityAction: onAccessibilityAction, - accessibilityLabel: accessibilityLabel, - accessibilityHint: accessibilityHint, - accessibilityLanguage: accessibilityLanguage, - accessibilityRole: "button", - accessibilityState: accessibilityState, - hasTVPreferredFocus: hasTVPreferredFocus, - nextFocusDown: nextFocusDown, - nextFocusForward: nextFocusForward, - nextFocusLeft: nextFocusLeft, - nextFocusRight: nextFocusRight, - nextFocusUp: nextFocusUp, - testID: testID, - disabled: disabled, - onPress: onPress, - touchSoundDisabled: touchSoundDisabled, - children: (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_View.default, { - style: buttonStyles, - children: (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(_Text.default, { - style: textStyles, - disabled: disabled, - children: formattedTitle - }) - }) - }); - } - }]); - return Button; - }(React.Component); - var styles = _StyleSheet.default.create({ - button: _Platform.default.select({ - ios: {}, - android: { - elevation: 4, - backgroundColor: '#2196F3', - borderRadius: 2 - } - }), - text: Object.assign({ - textAlign: 'center', - margin: 8 - }, _Platform.default.select({ - ios: { - color: '#007AFF', - fontSize: 18 - }, - android: { - color: 'white', - fontWeight: '500' - } - })), - buttonDisabled: _Platform.default.select({ - ios: {}, - android: { - elevation: 0, - backgroundColor: '#dfdfdf' - } - }), - textDisabled: _Platform.default.select({ - ios: { - color: '#cdcdcd' - }, - android: { - color: '#a1a1a1' + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); } - }) - }); - module.exports = Button; -},254,[3,12,13,50,47,46,36,14,244,255,267,268,245,17,73],"node_modules/react-native/Libraries/Components/Button.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); - var PressabilityDebug = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "../Pressability/PressabilityDebug")); - var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Pressability/usePressability")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../StyleSheet/StyleSheet")); - var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../StyleSheet/processColor")); - var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./TextAncestor")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); - var _excluded = ["accessible", "allowFontScaling", "ellipsizeMode", "onLongPress", "onPress", "onPressIn", "onPressOut", "onResponderGrant", "onResponderMove", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "onStartShouldSetResponder", "pressRetentionOffset", "suppressHighlighting"]; - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Text/Text.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var Text = React.forwardRef(function (props, forwardedRef) { - var _props$accessibilityS, _props$accessibilityS2; - var accessible = props.accessible, - allowFontScaling = props.allowFontScaling, - ellipsizeMode = props.ellipsizeMode, - onLongPress = props.onLongPress, - onPress = props.onPress, - _onPressIn = props.onPressIn, - _onPressOut = props.onPressOut, - _onResponderGrant = props.onResponderGrant, - _onResponderMove = props.onResponderMove, - _onResponderRelease = props.onResponderRelease, - _onResponderTerminate = props.onResponderTerminate, - onResponderTerminationRequest = props.onResponderTerminationRequest, - onStartShouldSetResponder = props.onStartShouldSetResponder, - pressRetentionOffset = props.pressRetentionOffset, - suppressHighlighting = props.suppressHighlighting, - restProps = (0, _objectWithoutProperties2.default)(props, _excluded); - var _useState = (0, React.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - isHighlighted = _useState2[0], - setHighlighted = _useState2[1]; - var _disabled = restProps.disabled != null ? restProps.disabled : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled; - var _accessibilityState = _disabled !== ((_props$accessibilityS2 = props.accessibilityState) == null ? void 0 : _props$accessibilityS2.disabled) ? Object.assign({}, props.accessibilityState, { - disabled: _disabled - }) : props.accessibilityState; - var isPressable = (onPress != null || onLongPress != null || onStartShouldSetResponder != null) && _disabled !== true; - var initialized = useLazyInitialization(isPressable); - var config = (0, React.useMemo)(function () { - return initialized ? { - disabled: !isPressable, - pressRectOffset: pressRetentionOffset, - onLongPress: onLongPress, - onPress: onPress, - onPressIn: function onPressIn(event) { - setHighlighted(!suppressHighlighting); - _onPressIn == null ? void 0 : _onPressIn(event); - }, - onPressOut: function onPressOut(event) { - setHighlighted(false); - _onPressOut == null ? void 0 : _onPressOut(event); - }, - onResponderTerminationRequest_DEPRECATED: onResponderTerminationRequest, - onStartShouldSetResponder_DEPRECATED: onStartShouldSetResponder - } : null; - }, [initialized, isPressable, pressRetentionOffset, onLongPress, onPress, _onPressIn, _onPressOut, onResponderTerminationRequest, onStartShouldSetResponder, suppressHighlighting]); - var eventHandlers = (0, _usePressability.default)(config); - var eventHandlersForText = (0, React.useMemo)(function () { - return eventHandlers == null ? null : { - onResponderGrant: function onResponderGrant(event) { - eventHandlers.onResponderGrant(event); - if (_onResponderGrant != null) { - _onResponderGrant(event); - } - }, - onResponderMove: function onResponderMove(event) { - eventHandlers.onResponderMove(event); - if (_onResponderMove != null) { - _onResponderMove(event); - } - }, - onResponderRelease: function onResponderRelease(event) { - eventHandlers.onResponderRelease(event); - if (_onResponderRelease != null) { - _onResponderRelease(event); + function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) { + // Mark any Suspense boundaries with fallbacks as having work to do. + // If they were previously forced into fallbacks, they may now be able + // to unblock. + var node = firstChild; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } + } else if (node.tag === SuspenseListComponent) { + // If the tail is hidden there might not be an Suspense boundaries + // to schedule work on. In this case we have to schedule it on the + // list itself. + // We don't have to traverse to the children of the list since + // the list will propagate the change when it rerenders. + scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; } - }, - onResponderTerminate: function onResponderTerminate(event) { - eventHandlers.onResponderTerminate(event); - if (_onResponderTerminate != null) { - _onResponderTerminate(event); + if (node === workInProgress) { + return; } - }, - onClick: eventHandlers.onClick, - onResponderTerminationRequest: eventHandlers.onResponderTerminationRequest, - onStartShouldSetResponder: eventHandlers.onStartShouldSetResponder - }; - }, [eventHandlers, _onResponderGrant, _onResponderMove, _onResponderRelease, _onResponderTerminate]); - - var selectionColor = restProps.selectionColor == null ? null : (0, _processColor.default)(restProps.selectionColor); - var style = restProps.style; - if (__DEV__) { - if (PressabilityDebug.isEnabled() && onPress != null) { - style = _StyleSheet.default.compose(restProps.style, { - color: 'magenta' - }); - } - } - var numberOfLines = restProps.numberOfLines; - if (numberOfLines != null && !(numberOfLines >= 0)) { - console.error("'numberOfLines' in must be a non-negative number, received: " + numberOfLines + ". The value will be set to 0."); - numberOfLines = 0; - } - var hasTextAncestor = (0, React.useContext)(_TextAncestor.default); - var _accessible = _Platform.default.select({ - ios: accessible !== false, - default: accessible - }); - return hasTextAncestor ? (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeVirtualText, Object.assign({}, restProps, eventHandlersForText, { - isHighlighted: isHighlighted, - isPressable: isPressable, - numberOfLines: numberOfLines, - selectionColor: selectionColor, - style: style, - ref: forwardedRef - })) : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { - value: true, - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "./TextNativeComponent").NativeText, Object.assign({}, restProps, eventHandlersForText, { - disabled: _disabled, - accessible: _accessible, - accessibilityState: _accessibilityState, - allowFontScaling: allowFontScaling !== false, - ellipsizeMode: ellipsizeMode != null ? ellipsizeMode : 'tail', - isHighlighted: isHighlighted, - numberOfLines: numberOfLines, - selectionColor: selectionColor, - style: style, - ref: forwardedRef - })) - }); - }); - Text.displayName = 'Text'; - - function useLazyInitialization(newValue) { - var _useState3 = (0, React.useState)(newValue), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - oldValue = _useState4[0], - setValue = _useState4[1]; - if (!oldValue && newValue) { - setValue(newValue); - } - return oldValue; - } - module.exports = Text; -},255,[3,19,132,14,256,258,244,159,247,36,73,265],"node_modules/react-native/Libraries/Text/Text.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PressabilityDebugView = PressabilityDebugView; - exports.isEnabled = isEnabled; - exports.setEnabled = setEnabled; - var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../StyleSheet/normalizeColor")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Components/View/View")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function PressabilityDebugView(props) { - if (__DEV__) { - if (isEnabled()) { - var _hitSlop$bottom, _hitSlop$left, _hitSlop$right, _hitSlop$top; - var normalizedColor = (0, _normalizeColor.default)(props.color); - if (typeof normalizedColor !== 'number') { - return null; - } - var baseColor = '#' + (normalizedColor != null ? normalizedColor : 0).toString(16).padStart(8, '0'); - var hitSlop = (0, _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/Rect").normalizeRect)(props.hitSlop); - return (0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_View.default, { - pointerEvents: "none", - style: - { - backgroundColor: baseColor.slice(0, -2) + '0F', - borderColor: baseColor.slice(0, -2) + '55', - borderStyle: 'dashed', - borderWidth: 1, - bottom: -((_hitSlop$bottom = hitSlop == null ? void 0 : hitSlop.bottom) != null ? _hitSlop$bottom : 0), - left: -((_hitSlop$left = hitSlop == null ? void 0 : hitSlop.left) != null ? _hitSlop$left : 0), - position: 'absolute', - right: -((_hitSlop$right = hitSlop == null ? void 0 : hitSlop.right) != null ? _hitSlop$right : 0), - top: -((_hitSlop$top = hitSlop == null ? void 0 : hitSlop.top) != null ? _hitSlop$top : 0) + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; } - }); - } - } - return null; - } - var isDebugEnabled = false; - function isEnabled() { - if (__DEV__) { - return isDebugEnabled; - } - return false; - } - function setEnabled(value) { - if (__DEV__) { - isDebugEnabled = value; - } - } -},256,[3,160,245,36,257,73],"node_modules/react-native/Libraries/Pressability/PressabilityDebug.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.createSquare = createSquare; - exports.normalizeRect = normalizeRect; - - function createSquare(size) { - return { - bottom: size, - left: size, - right: size, - top: size - }; - } - function normalizeRect(rectOrSize) { - return typeof rectOrSize === 'number' ? createSquare(rectOrSize) : rectOrSize; - } -},257,[],"node_modules/react-native/Libraries/StyleSheet/Rect.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = usePressability; - var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Pressability")); - var _react = _$$_REQUIRE(_dependencyMap[2], "react"); - - function usePressability(config) { - var pressabilityRef = (0, _react.useRef)(null); - if (config != null && pressabilityRef.current == null) { - pressabilityRef.current = new _Pressability.default(config); - } - var pressability = pressabilityRef.current; - - (0, _react.useEffect)(function () { - if (config != null && pressability != null) { - pressability.configure(config); - } - }, [config, pressability]); - - (0, _react.useEffect)(function () { - if (pressability != null) { - return function () { - pressability.reset(); - }; - } - }, [pressability]); - return pressability == null ? null : pressability.getEventHandlers(); - } -},258,[3,259,36],"node_modules/react-native/Libraries/Pressability/usePressability.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); - var _SoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Components/Sound/SoundManager")); - var _PressabilityPerformanceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./PressabilityPerformanceEventEmitter.js")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); - var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../ReactNative/UIManager")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); - var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../ReactNative/ReactNativeFeatureFlags")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Transitions = 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' - } - }); - var isActiveSignal = function isActiveSignal(signal) { - return signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; - }; - var isActivationSignal = function isActivationSignal(signal) { - return signal === 'RESPONDER_ACTIVE_PRESS_OUT' || signal === 'RESPONDER_ACTIVE_PRESS_IN'; - }; - var isPressInSignal = function isPressInSignal(signal) { - return signal === 'RESPONDER_INACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_PRESS_IN' || signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; - }; - var isTerminalSignal = function isTerminalSignal(signal) { - return signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE'; - }; - var DEFAULT_LONG_PRESS_DELAY_MS = 500; - var DEFAULT_PRESS_RECT_OFFSETS = { - bottom: 30, - left: 20, - right: 20, - top: 20 - }; - var DEFAULT_MIN_PRESS_DURATION = 130; - - var Pressability = function () { - function Pressability(config) { - var _this = this; - (0, _classCallCheck2.default)(this, Pressability); - this._eventHandlers = null; - this._hoverInDelayTimeout = null; - this._hoverOutDelayTimeout = null; - this._isHovered = false; - this._longPressDelayTimeout = null; - this._pressDelayTimeout = null; - this._pressOutDelayTimeout = null; - this._responderID = null; - this._responderRegion = null; - this._touchState = 'NOT_RESPONDER'; - this._measureCallback = function (left, top, width, height, pageX, pageY) { - if (!left && !top && !width && !height && !pageX && !pageY) { - return; + node.sibling.return = node.return; + node = node.sibling; } - _this._responderRegion = { - bottom: pageY + height, - left: pageX, - right: pageX + width, - top: pageY - }; - }; - this.configure(config); - } - (0, _createClass2.default)(Pressability, [{ - key: "configure", - value: function configure(config) { - this._config = config; - } - - }, { - key: "reset", - value: - function reset() { - this._cancelHoverInDelayTimeout(); - this._cancelHoverOutDelayTimeout(); - this._cancelLongPressDelayTimeout(); - this._cancelPressDelayTimeout(); - this._cancelPressOutDelayTimeout(); - - this._config = Object.freeze({}); } + function findLastContentRow(firstChild) { + // This is going to find the last row among these children that is already + // showing content on the screen, as opposed to being in fallback state or + // new. If a row has multiple Suspense boundaries, any of them being in the + // fallback state, counts as the whole row being in a fallback state. + // Note that the "rows" will be workInProgress, but any nested children + // will still be current since we haven't rendered them yet. The mounted + // order may not be the same as the new order. We use the new order. + var row = firstChild; + var lastContentRow = null; + while (row !== null) { + var currentRow = row.alternate; // New rows can't be content rows. - }, { - key: "getEventHandlers", - value: - function getEventHandlers() { - if (this._eventHandlers == null) { - this._eventHandlers = this._createEventHandlers(); + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + lastContentRow = row; + } + row = row.sibling; } - return this._eventHandlers; + return lastContentRow; } - }, { - key: "_createEventHandlers", - value: function _createEventHandlers() { - var _this2 = this; - var focusEventHandlers = { - onBlur: function onBlur(event) { - var onBlur = _this2._config.onBlur; - if (onBlur != null) { - onBlur(event); - } - }, - onFocus: function onFocus(event) { - var onFocus = _this2._config.onFocus; - if (onFocus != null) { - onFocus(event); - } - } - }; - var responderEventHandlers = { - onStartShouldSetResponder: function onStartShouldSetResponder() { - var disabled = _this2._config.disabled; - if (disabled == null) { - var onStartShouldSetResponder_DEPRECATED = _this2._config.onStartShouldSetResponder_DEPRECATED; - return onStartShouldSetResponder_DEPRECATED == null ? true : onStartShouldSetResponder_DEPRECATED(); - } - return !disabled; - }, - onResponderGrant: function onResponderGrant(event) { - event.persist(); - _this2._cancelPressOutDelayTimeout(); - _this2._responderID = event.currentTarget; - _this2._touchState = 'NOT_RESPONDER'; - _this2._receiveSignal('RESPONDER_GRANT', event); - var delayPressIn = normalizeDelay(_this2._config.delayPressIn); - if (delayPressIn > 0) { - _this2._pressDelayTimeout = setTimeout(function () { - _this2._receiveSignal('DELAY', event); - }, delayPressIn); - } else { - _this2._receiveSignal('DELAY', event); - } - var delayLongPress = normalizeDelay(_this2._config.delayLongPress, 10, DEFAULT_LONG_PRESS_DELAY_MS - delayPressIn); - _this2._longPressDelayTimeout = setTimeout(function () { - _this2._handleLongPress(event); - }, delayLongPress + delayPressIn); - }, - onResponderMove: function onResponderMove(event) { - var onPressMove = _this2._config.onPressMove; - if (onPressMove != null) { - onPressMove(event); - } - - var responderRegion = _this2._responderRegion; - if (responderRegion == null) { - return; - } - var touch = getTouchFromPressEvent(event); - if (touch == null) { - _this2._cancelLongPressDelayTimeout(); - _this2._receiveSignal('LEAVE_PRESS_RECT', event); - return; - } - if (_this2._touchActivatePosition != null) { - var deltaX = _this2._touchActivatePosition.pageX - touch.pageX; - var deltaY = _this2._touchActivatePosition.pageY - touch.pageY; - if (Math.hypot(deltaX, deltaY) > 10) { - _this2._cancelLongPressDelayTimeout(); + function validateRevealOrder(revealOrder) { + { + if (revealOrder !== undefined && revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "together" && !didWarnAboutRevealOrder[revealOrder]) { + didWarnAboutRevealOrder[revealOrder] = true; + if (typeof revealOrder === "string") { + switch (revealOrder.toLowerCase()) { + case "together": + case "forwards": + case "backwards": + { + error('"%s" is not a valid value for revealOrder on . ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + case "forward": + case "backward": + { + error('"%s" is not a valid value for revealOrder on . ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + default: + error('"%s" is not a supported revealOrder on . ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + break; } - } - if (_this2._isTouchWithinResponderRegion(touch, responderRegion)) { - _this2._receiveSignal('ENTER_PRESS_RECT', event); } else { - _this2._cancelLongPressDelayTimeout(); - _this2._receiveSignal('LEAVE_PRESS_RECT', event); - } - }, - onResponderRelease: function onResponderRelease(event) { - _this2._receiveSignal('RESPONDER_RELEASE', event); - }, - onResponderTerminate: function onResponderTerminate(event) { - _this2._receiveSignal('RESPONDER_TERMINATED', event); - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - var cancelable = _this2._config.cancelable; - if (cancelable == null) { - var onResponderTerminationRequest_DEPRECATED = _this2._config.onResponderTerminationRequest_DEPRECATED; - return onResponderTerminationRequest_DEPRECATED == null ? true : onResponderTerminationRequest_DEPRECATED(); + error("%s is not a supported value for revealOrder on . " + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); } - return cancelable; - }, - onClick: function onClick(event) { - var _this2$_config = _this2._config, - onPress = _this2$_config.onPress, - disabled = _this2$_config.disabled; - if (onPress != null && disabled !== true) { - onPress(event); + } + } + } + function validateTailOptions(tailMode, revealOrder) { + { + if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) { + if (tailMode !== "collapsed" && tailMode !== "hidden") { + didWarnAboutTailOptions[tailMode] = true; + error('"%s" is not a supported value for tail on . ' + 'Did you mean "collapsed" or "hidden"?', tailMode); + } else if (revealOrder !== "forwards" && revealOrder !== "backwards") { + didWarnAboutTailOptions[tailMode] = true; + error(' is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode); } } - }; - if (process.env.NODE_ENV === 'test') { - responderEventHandlers.onStartShouldSetResponder.testOnly_pressabilityConfig = function () { - return _this2._config; - }; } - if (_ReactNativeFeatureFlags.default.shouldPressibilityUseW3CPointerEventsForHover()) { - var hoverPointerEvents = { - onPointerEnter: undefined, - onPointerLeave: undefined - }; - var _this$_config = this._config, - onHoverIn = _this$_config.onHoverIn, - onHoverOut = _this$_config.onHoverOut; - if (onHoverIn != null) { - hoverPointerEvents.onPointerEnter = function (event) { - _this2._isHovered = true; - _this2._cancelHoverOutDelayTimeout(); - if (onHoverIn != null) { - var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); - if (delayHoverIn > 0) { - event.persist(); - _this2._hoverInDelayTimeout = setTimeout(function () { - onHoverIn(convertPointerEventToMouseEvent(event)); - }, delayHoverIn); - } else { - onHoverIn(convertPointerEventToMouseEvent(event)); + } + function validateSuspenseListNestedChild(childSlot, index) { + { + var isAnArray = isArray(childSlot); + var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function"; + if (isAnArray || isIterable) { + var type = isAnArray ? "array" : "iterable"; + error("A nested %s was passed to row #%s in . Wrap it in " + "an additional SuspenseList to configure its revealOrder: " + " ... " + "{%s} ... " + "", type, index, type); + return false; + } + } + return true; + } + function validateSuspenseListChildren(children, revealOrder) { + { + if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== undefined && children !== null && children !== false) { + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + if (!validateSuspenseListNestedChild(children[i], i)) { + return; } } - }; - } - if (onHoverOut != null) { - hoverPointerEvents.onPointerLeave = function (event) { - if (_this2._isHovered) { - _this2._isHovered = false; - _this2._cancelHoverInDelayTimeout(); - if (onHoverOut != null) { - var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); - if (delayHoverOut > 0) { - event.persist(); - _this2._hoverOutDelayTimeout = setTimeout(function () { - onHoverOut(convertPointerEventToMouseEvent(event)); - }, delayHoverOut); - } else { - onHoverOut(convertPointerEventToMouseEvent(event)); + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var childrenIterator = iteratorFn.call(children); + if (childrenIterator) { + var step = childrenIterator.next(); + var _i = 0; + for (; !step.done; step = childrenIterator.next()) { + if (!validateSuspenseListNestedChild(step.value, _i)) { + return; + } + _i++; } } + } else { + error('A single row was passed to a . ' + "This is not useful since it needs multiple rows. " + "Did you mean to pass multiple children or an array?", revealOrder); } - }; + } } - return Object.assign({}, focusEventHandlers, responderEventHandlers, hoverPointerEvents); + } + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + if (renderState === null) { + workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + }; } else { - var mouseEventHandlers = _Platform.default.OS === 'ios' || _Platform.default.OS === 'android' ? null : { - onMouseEnter: function onMouseEnter(event) { - if ((0, _$$_REQUIRE(_dependencyMap[10], "./HoverState").isHoverEnabled)()) { - _this2._isHovered = true; - _this2._cancelHoverOutDelayTimeout(); - var _onHoverIn = _this2._config.onHoverIn; - if (_onHoverIn != null) { - var delayHoverIn = normalizeDelay(_this2._config.delayHoverIn); - if (delayHoverIn > 0) { - event.persist(); - _this2._hoverInDelayTimeout = setTimeout(function () { - _onHoverIn(event); - }, delayHoverIn); - } else { - _onHoverIn(event); - } + // We can reuse the existing object from previous renders. + renderState.isBackwards = isBackwards; + renderState.rendering = null; + renderState.renderingStartTime = 0; + renderState.last = lastContentRow; + renderState.tail = tail; + renderState.tailMode = tailMode; + } + } // This can end up rendering this component multiple passes. + // The first pass splits the children fibers into two sets. A head and tail. + // We first render the head. If anything is in fallback state, we do another + // pass through beginWork to rerender all children (including the tail) with + // the force suspend context. If the first render didn't have anything in + // in fallback state. Then we render each row in the tail one-by-one. + // That happens in the completeWork phase without going back to beginWork. + + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps; + var revealOrder = nextProps.revealOrder; + var tailMode = nextProps.tail; + var newChildren = nextProps.children; + validateRevealOrder(revealOrder); + validateTailOptions(tailMode, revealOrder); + validateSuspenseListChildren(newChildren, revealOrder); + reconcileChildren(current, workInProgress, newChildren, renderLanes); + var suspenseContext = suspenseStackCursor.current; + var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + if (shouldForceFallback) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + workInProgress.flags |= DidCapture; + } else { + var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags; + if (didSuspendBefore) { + // If we previously forced a fallback, we need to schedule work + // on any nested boundaries to let them know to try to render + // again. This is the same as context updating. + propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes); + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + // In legacy mode, SuspenseList doesn't work so we just + // use make it a noop by treating it as the default revealOrder. + workInProgress.memoizedState = null; + } else { + switch (revealOrder) { + case "forwards": + { + var lastContentRow = findLastContentRow(workInProgress.child); + var tail; + if (lastContentRow === null) { + // The whole list is part of the tail. + // TODO: We could fast path by just rendering the tail now. + tail = workInProgress.child; + workInProgress.child = null; + } else { + // Disconnect the tail rows after the content row. + // We're going to render them separately later. + tail = lastContentRow.sibling; + lastContentRow.sibling = null; } + initSuspenseListRenderState(workInProgress, false, + // isBackwards + tail, lastContentRow, tailMode); + break; } - }, - onMouseLeave: function onMouseLeave(event) { - if (_this2._isHovered) { - _this2._isHovered = false; - _this2._cancelHoverInDelayTimeout(); - var _onHoverOut = _this2._config.onHoverOut; - if (_onHoverOut != null) { - var delayHoverOut = normalizeDelay(_this2._config.delayHoverOut); - if (delayHoverOut > 0) { - event.persist(); - _this2._hoverInDelayTimeout = setTimeout(function () { - _onHoverOut(event); - }, delayHoverOut); - } else { - _onHoverOut(event); + case "backwards": + { + // We're going to find the first row that has existing content. + // At the same time we're going to reverse the list of everything + // we pass in the meantime. That's going to be our tail in reverse + // order. + var _tail = null; + var row = workInProgress.child; + workInProgress.child = null; + while (row !== null) { + var currentRow = row.alternate; // New rows can't be content rows. + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + // This is the beginning of the main content. + workInProgress.child = row; + break; } - } + var nextRow = row.sibling; + row.sibling = _tail; + _tail = row; + row = nextRow; + } // TODO: If workInProgress.child is null, we can continue on the tail immediately. + + initSuspenseListRenderState(workInProgress, true, + // isBackwards + _tail, null, + // last + tailMode); + break; } - } - }; - return Object.assign({}, focusEventHandlers, responderEventHandlers, mouseEventHandlers); + case "together": + { + initSuspenseListRenderState(workInProgress, false, + // isBackwards + null, + // tail + null, + // last + undefined); + break; + } + default: + { + // The default reveal order is the same as not having + // a boundary. + workInProgress.memoizedState = null; + } + } } + return workInProgress.child; } - - }, { - key: "_receiveSignal", - value: - function _receiveSignal(signal, event) { - var _Transitions$prevStat; - if (event.nativeEvent.timestamp != null) { - _PressabilityPerformanceEventEmitter.default.emitEvent(function () { - return { - signal: signal, - nativeTimestamp: event.nativeEvent.timestamp - }; - }); - } - var prevState = this._touchState; - var nextState = (_Transitions$prevStat = Transitions[prevState]) == null ? void 0 : _Transitions$prevStat[signal]; - if (this._responderID == null && signal === 'RESPONDER_RELEASE') { - return; - } - (0, _invariant.default)(nextState != null && nextState !== 'ERROR', 'Pressability: Invalid signal `%s` for state `%s` on responder: %s', signal, prevState, typeof this._responderID === 'number' ? this._responderID : '<>'); - if (prevState !== nextState) { - this._performTransitionSideEffects(prevState, nextState, signal, event); - this._touchState = nextState; + function updatePortalComponent(current, workInProgress, renderLanes) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + if (current === null) { + // Portals are special because we don't append the children during mount + // but at commit. Therefore we need to track insertions which the normal + // flow doesn't do during mount. This doesn't happen at the root because + // the root always starts with a "current" with a null child. + // TODO: Consider unifying this with how the root works. + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderLanes); } + return workInProgress.child; } - - }, { - key: "_performTransitionSideEffects", - value: - function _performTransitionSideEffects(prevState, nextState, signal, event) { - if (isTerminalSignal(signal)) { - this._touchActivatePosition = null; - this._cancelLongPressDelayTimeout(); - } - var isInitialTransition = prevState === 'NOT_RESPONDER' && nextState === 'RESPONDER_INACTIVE_PRESS_IN'; - var isActivationTransition = !isActivationSignal(prevState) && isActivationSignal(nextState); - if (isInitialTransition || isActivationTransition) { - this._measureResponderRegion(); - } - if (isPressInSignal(prevState) && signal === 'LONG_PRESS_DETECTED') { - var onLongPress = this._config.onLongPress; - if (onLongPress != null) { - onLongPress(event); + var hasWarnedAboutUsingNoValuePropOnContextProvider = false; + function updateContextProvider(current, workInProgress, renderLanes) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = newProps.value; + { + if (!("value" in newProps)) { + if (!hasWarnedAboutUsingNoValuePropOnContextProvider) { + hasWarnedAboutUsingNoValuePropOnContextProvider = true; + error("The `value` prop is required for the ``. Did you misspell it or forget to pass it?"); + } } - } - var isPrevActive = isActiveSignal(prevState); - var isNextActive = isActiveSignal(nextState); - if (!isPrevActive && isNextActive) { - this._activate(event); - } else if (isPrevActive && !isNextActive) { - this._deactivate(event); - } - if (isPressInSignal(prevState) && signal === 'RESPONDER_RELEASE') { - if (!isNextActive && !isPrevActive) { - this._activate(event); - this._deactivate(event); + var providerPropTypes = workInProgress.type.propTypes; + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"); } - var _this$_config2 = this._config, - _onLongPress = _this$_config2.onLongPress, - onPress = _this$_config2.onPress, - android_disableSound = _this$_config2.android_disableSound; - if (onPress != null) { - var isPressCanceledByLongPress = _onLongPress != null && prevState === 'RESPONDER_ACTIVE_LONG_PRESS_IN' && this._shouldLongPressCancelPress(); - if (!isPressCanceledByLongPress) { - if (_Platform.default.OS === 'android' && android_disableSound !== true) { - _SoundManager.default.playTouchSound(); + } + pushProvider(workInProgress, context, newValue); + { + if (oldProps !== null) { + var oldValue = oldProps.value; + if (objectIs(oldValue, newValue)) { + // No change. Bailout early if children are the same. + if (oldProps.children === newProps.children && !hasContextChanged()) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - onPress(event); + } else { + // The context value changed. Search for matching consumers and schedule + // them to update. + propagateContextChange(workInProgress, context, renderLanes); } } } - this._cancelPressDelayTimeout(); - } - }, { - key: "_activate", - value: function _activate(event) { - var onPressIn = this._config.onPressIn; - var _getTouchFromPressEve = getTouchFromPressEvent(event), - pageX = _getTouchFromPressEve.pageX, - pageY = _getTouchFromPressEve.pageY; - this._touchActivatePosition = { - pageX: pageX, - pageY: pageY - }; - this._touchActivateTime = Date.now(); - if (onPressIn != null) { - onPressIn(event); - } + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; } - }, { - key: "_deactivate", - value: function _deactivate(event) { - var onPressOut = this._config.onPressOut; - if (onPressOut != null) { - var _this$_touchActivateT; - var minPressDuration = normalizeDelay(this._config.minPressDuration, 0, DEFAULT_MIN_PRESS_DURATION); - var pressDuration = Date.now() - ((_this$_touchActivateT = this._touchActivateTime) != null ? _this$_touchActivateT : 0); - var delayPressOut = Math.max(minPressDuration - pressDuration, normalizeDelay(this._config.delayPressOut)); - if (delayPressOut > 0) { - event.persist(); - this._pressOutDelayTimeout = setTimeout(function () { - onPressOut(event); - }, delayPressOut); + var hasWarnedAboutUsingContextAsConsumer = false; + function updateContextConsumer(current, workInProgress, renderLanes) { + var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In + // DEV mode, we create a separate object for Context.Consumer that acts + // like a proxy to Context. This proxy object adds unnecessary code in PROD + // so we use the old behaviour (Context.Consumer references Context) to + // reduce size and overhead. The separate object references context via + // a property called "_context", which also gives us the ability to check + // in DEV mode if this property exists or not and warn if it does not. + + { + if (context._context === undefined) { + // This may be because it's a Context (rather than a Consumer). + // Or it may be because it's older React where they're the same thing. + // We only want to warn if we're sure it's a new React. + if (context !== context.Consumer) { + if (!hasWarnedAboutUsingContextAsConsumer) { + hasWarnedAboutUsingContextAsConsumer = true; + error("Rendering directly is not supported and will be removed in " + "a future major release. Did you mean to render instead?"); + } + } } else { - onPressOut(event); + context = context._context; } } - this._touchActivateTime = null; - } - }, { - key: "_measureResponderRegion", - value: function _measureResponderRegion() { - if (this._responderID == null) { - return; - } - if (typeof this._responderID === 'number') { - _UIManager.default.measure(this._responderID, this._measureCallback); - } else { - this._responderID.measure(this._measureCallback); - } - } - }, { - key: "_isTouchWithinResponderRegion", - value: function _isTouchWithinResponderRegion(touch, responderRegion) { - var _pressRectOffset$bott, _pressRectOffset$left, _pressRectOffset$righ, _pressRectOffset$top; - var hitSlop = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.hitSlop); - var pressRectOffset = (0, _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/Rect").normalizeRect)(this._config.pressRectOffset); - var regionBottom = responderRegion.bottom; - var regionLeft = responderRegion.left; - var regionRight = responderRegion.right; - var regionTop = responderRegion.top; - if (hitSlop != null) { - if (hitSlop.bottom != null) { - regionBottom += hitSlop.bottom; - } - if (hitSlop.left != null) { - regionLeft -= hitSlop.left; - } - if (hitSlop.right != null) { - regionRight += hitSlop.right; - } - if (hitSlop.top != null) { - regionTop -= hitSlop.top; + var newProps = workInProgress.pendingProps; + var render = newProps.children; + { + if (typeof render !== "function") { + error("A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it."); } } - regionBottom += (_pressRectOffset$bott = pressRectOffset == null ? void 0 : pressRectOffset.bottom) != null ? _pressRectOffset$bott : DEFAULT_PRESS_RECT_OFFSETS.bottom; - regionLeft -= (_pressRectOffset$left = pressRectOffset == null ? void 0 : pressRectOffset.left) != null ? _pressRectOffset$left : DEFAULT_PRESS_RECT_OFFSETS.left; - regionRight += (_pressRectOffset$righ = pressRectOffset == null ? void 0 : pressRectOffset.right) != null ? _pressRectOffset$righ : DEFAULT_PRESS_RECT_OFFSETS.right; - regionTop -= (_pressRectOffset$top = pressRectOffset == null ? void 0 : pressRectOffset.top) != null ? _pressRectOffset$top : DEFAULT_PRESS_RECT_OFFSETS.top; - return touch.pageX > regionLeft && touch.pageX < regionRight && touch.pageY > regionTop && touch.pageY < regionBottom; - } - }, { - key: "_handleLongPress", - value: function _handleLongPress(event) { - if (this._touchState === 'RESPONDER_ACTIVE_PRESS_IN' || this._touchState === 'RESPONDER_ACTIVE_LONG_PRESS_IN') { - this._receiveSignal('LONG_PRESS_DETECTED', event); + prepareToReadContext(workInProgress, renderLanes); + var newValue = _readContext(context); + var newChildren; + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + newChildren = render(newValue); + setIsRendering(false); } + workInProgress.flags |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren, renderLanes); + return workInProgress.child; } - }, { - key: "_shouldLongPressCancelPress", - value: function _shouldLongPressCancelPress() { - return this._config.onLongPressShouldCancelPress_DEPRECATED == null || this._config.onLongPressShouldCancelPress_DEPRECATED(); + function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; } - }, { - key: "_cancelHoverInDelayTimeout", - value: function _cancelHoverInDelayTimeout() { - if (this._hoverInDelayTimeout != null) { - clearTimeout(this._hoverInDelayTimeout); - this._hoverInDelayTimeout = null; + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + if ((workInProgress.mode & ConcurrentMode) === NoMode) { + if (current !== null) { + // A lazy component only mounts if it suspended inside a non- + // concurrent tree, in an inconsistent state. We want to treat it like + // a new mount, even though an empty version of it already committed. + // Disconnect the alternate pointers. + current.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect + + workInProgress.flags |= Placement; + } } } - }, { - key: "_cancelHoverOutDelayTimeout", - value: function _cancelHoverOutDelayTimeout() { - if (this._hoverOutDelayTimeout != null) { - clearTimeout(this._hoverOutDelayTimeout); - this._hoverOutDelayTimeout = null; - } - } - }, { - key: "_cancelLongPressDelayTimeout", - value: function _cancelLongPressDelayTimeout() { - if (this._longPressDelayTimeout != null) { - clearTimeout(this._longPressDelayTimeout); - this._longPressDelayTimeout = null; - } - } - }, { - key: "_cancelPressDelayTimeout", - value: function _cancelPressDelayTimeout() { - if (this._pressDelayTimeout != null) { - clearTimeout(this._pressDelayTimeout); - this._pressDelayTimeout = null; + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + if (current !== null) { + // Reuse previous dependencies + workInProgress.dependencies = current.dependencies; } - } - }, { - key: "_cancelPressOutDelayTimeout", - value: function _cancelPressOutDelayTimeout() { - if (this._pressOutDelayTimeout != null) { - clearTimeout(this._pressOutDelayTimeout); - this._pressOutDelayTimeout = null; + { + // Don't update "base" render times for bailouts. + stopProfilerTimerIfRunning(); } - } - }]); - return Pressability; - }(); - exports.default = Pressability; - function normalizeDelay(delay) { - var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - return Math.max(min, delay != null ? delay : fallback); - } - var getTouchFromPressEvent = function getTouchFromPressEvent(event) { - var _event$nativeEvent = event.nativeEvent, - changedTouches = _event$nativeEvent.changedTouches, - touches = _event$nativeEvent.touches; - if (touches != null && touches.length > 0) { - return touches[0]; - } - if (changedTouches != null && changedTouches.length > 0) { - return changedTouches[0]; - } - return event.nativeEvent; - }; - function convertPointerEventToMouseEvent(input) { - var _input$nativeEvent = input.nativeEvent, - clientX = _input$nativeEvent.clientX, - clientY = _input$nativeEvent.clientY; - return Object.assign({}, input, { - nativeEvent: { - clientX: clientX, - clientY: clientY, - pageX: clientX, - pageY: clientY, - timestamp: input.timeStamp - } - }); - } -},259,[3,12,13,17,260,262,14,213,36,263,264,257],"node_modules/react-native/Libraries/Pressability/Pressability.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeSoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeSoundManager")); + markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work. - var SoundManager = { - playTouchSound: function playTouchSound() { - if (_NativeSoundManager.default) { - _NativeSoundManager.default.playTouchSound(); - } - } - }; - module.exports = SoundManager; -},260,[3,261],"node_modules/react-native/Libraries/Components/Sound/SoundManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('SoundManager'); - exports.default = _default; -},261,[16],"node_modules/react-native/Libraries/Components/Sound/NativeSoundManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var PressabilityPerformanceEventEmitter = function () { - function PressabilityPerformanceEventEmitter() { - (0, _classCallCheck2.default)(this, PressabilityPerformanceEventEmitter); - this._listeners = []; - } - (0, _createClass2.default)(PressabilityPerformanceEventEmitter, [{ - key: "addListener", - value: function addListener(listener) { - this._listeners.push(listener); - } - }, { - key: "removeListener", - value: function removeListener(listener) { - var index = this._listeners.indexOf(listener); - if (index > -1) { - this._listeners.splice(index, 1); - } - } - }, { - key: "emitEvent", - value: function emitEvent(constructEvent) { - if (this._listeners.length === 0) { - return; - } - var event = constructEvent(); - this._listeners.forEach(function (listener) { - return listener(event); - }); + if (!includesSomeLane(renderLanes, workInProgress.childLanes)) { + // The children don't have any work either. We can skip them. + // TODO: Once we add back resuming, we should check if the children are + // a work-in-progress set. If so, we need to transfer their effects. + { + return null; + } + } // This fiber doesn't have work, but its subtree does. Clone the child + // fibers and continue. + + cloneChildFibers(current, workInProgress); + return workInProgress.child; } - }]); - return PressabilityPerformanceEventEmitter; - }(); - var PressabilityPerformanceEventEmitterSingleton = new PressabilityPerformanceEventEmitter(); - var _default = PressabilityPerformanceEventEmitterSingleton; - exports.default = _default; -},262,[3,12,13],"node_modules/react-native/Libraries/Pressability/PressabilityPerformanceEventEmitter.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function remountFiber(current, oldWorkInProgress, newWorkInProgress) { + { + var returnFiber = oldWorkInProgress.return; + if (returnFiber === null) { + // eslint-disable-next-line react-internal/prod-error-codes + throw new Error("Cannot swap the root fiber."); + } // Disconnect from the old current. + // It will get deleted. - 'use strict'; + current.alternate = null; + oldWorkInProgress.alternate = null; // Connect to the new tree. - var ReactNativeFeatureFlags = { - isLayoutAnimationEnabled: function isLayoutAnimationEnabled() { - return true; - }, - shouldEmitW3CPointerEvents: function shouldEmitW3CPointerEvents() { - return false; - }, - shouldPressibilityUseW3CPointerEventsForHover: function shouldPressibilityUseW3CPointerEventsForHover() { - return false; - }, - animatedShouldDebounceQueueFlush: function animatedShouldDebounceQueueFlush() { - return false; - }, - animatedShouldUseSingleOp: function animatedShouldUseSingleOp() { - return false; - } - }; - module.exports = ReactNativeFeatureFlags; -},263,[],"node_modules/react-native/Libraries/ReactNative/ReactNativeFeatureFlags.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isHoverEnabled = isHoverEnabled; - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); + newWorkInProgress.index = oldWorkInProgress.index; + newWorkInProgress.sibling = oldWorkInProgress.sibling; + newWorkInProgress.return = oldWorkInProgress.return; + newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it. - var isEnabled = false; - if (_Platform.default.OS === 'web') { - var canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement); - if (canUseDOM) { - var HOVER_THRESHOLD_MS = 1000; - var lastTouchTimestamp = 0; - var enableHover = function enableHover() { - if (isEnabled || Date.now() - lastTouchTimestamp < HOVER_THRESHOLD_MS) { - return; - } - isEnabled = true; - }; - var disableHover = function disableHover() { - lastTouchTimestamp = Date.now(); - if (isEnabled) { - isEnabled = false; - } - }; - document.addEventListener('touchstart', disableHover, true); - document.addEventListener('touchmove', disableHover, true); - document.addEventListener('mousemove', enableHover, true); - } - } - function isHoverEnabled() { - return isEnabled; - } -},264,[3,14],"node_modules/react-native/Libraries/Pressability/HoverState.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.NativeVirtualText = exports.NativeText = void 0; - var _ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/ReactNativeViewAttributes")); - var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/UIManager")); - var _createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/createReactNativeComponentClass")); + if (oldWorkInProgress === returnFiber.child) { + returnFiber.child = newWorkInProgress; + } else { + var prevSibling = returnFiber.child; + if (prevSibling === null) { + // eslint-disable-next-line react-internal/prod-error-codes + throw new Error("Expected parent to have a child."); + } + while (prevSibling.sibling !== oldWorkInProgress) { + prevSibling = prevSibling.sibling; + if (prevSibling === null) { + // eslint-disable-next-line react-internal/prod-error-codes + throw new Error("Expected to find the previous sibling."); + } + } + prevSibling.sibling = newWorkInProgress; + } // Delete the old fiber and place the new one. + // Since the old fiber is disconnected, we have to schedule it manually. - var NativeText = (0, _createReactNativeComponentClass.default)('RCTText', function () { - return { - validAttributes: Object.assign({}, _ReactNativeViewAttributes.default.UIView, { - isHighlighted: true, - isPressable: true, - numberOfLines: true, - ellipsizeMode: true, - allowFontScaling: true, - maxFontSizeMultiplier: true, - disabled: true, - selectable: true, - selectionColor: true, - adjustsFontSizeToFit: true, - minimumFontScale: true, - textBreakStrategy: true, - onTextLayout: true, - onInlineViewLayout: true, - dataDetectorType: true, - android_hyphenationFrequency: true - }), - directEventTypes: { - topTextLayout: { - registrationName: 'onTextLayout' - }, - topInlineViewLayout: { - registrationName: 'onInlineViewLayout' - } - }, - uiViewClassName: 'RCTText' - }; - }); - exports.NativeText = NativeText; - var NativeVirtualText = !global.RN$Bridgeless && !_UIManager.default.hasViewManagerConfig('RCTVirtualText') ? NativeText : (0, _createReactNativeComponentClass.default)('RCTVirtualText', function () { - return { - validAttributes: Object.assign({}, _ReactNativeViewAttributes.default.UIView, { - isHighlighted: true, - isPressable: true, - maxFontSizeMultiplier: true - }), - uiViewClassName: 'RCTVirtualText' - }; - }); - exports.NativeVirtualText = NativeVirtualText; -},265,[3,266,213,253],"node_modules/react-native/Libraries/Text/TextNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [current]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(current); + } + newWorkInProgress.flags |= Placement; // Restart work from the new fiber. - 'use strict'; + return newWorkInProgress; + } + } + function checkScheduledUpdateOrContext(current, renderLanes) { + // Before performing an early bailout, we must check if there are pending + // updates or context. + var updateLanes = current.lanes; + if (includesSomeLane(updateLanes, renderLanes)) { + return true; + } // No pending update, but because context is propagated lazily, we need - var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./ReactNativeStyleAttributes")); - var UIView = { - pointerEvents: true, - accessible: true, - accessibilityActions: true, - accessibilityLabel: true, - accessibilityLiveRegion: true, - accessibilityRole: true, - accessibilityState: true, - accessibilityValue: true, - accessibilityHint: true, - accessibilityLanguage: true, - importantForAccessibility: true, - nativeID: true, - testID: true, - renderToHardwareTextureAndroid: true, - shouldRasterizeIOS: true, - onLayout: true, - onAccessibilityAction: true, - onAccessibilityTap: true, - onMagicTap: true, - onAccessibilityEscape: true, - collapsable: true, - needsOffscreenAlphaCompositing: true, - style: _ReactNativeStyleAttributes.default - }; - var RCTView = Object.assign({}, UIView, { - removeClippedSubviews: true - }); - var ReactNativeViewAttributes = { - UIView: UIView, - RCTView: RCTView - }; - module.exports = ReactNativeViewAttributes; -},266,[3,185],"node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); - var _ReactNative = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "react-native/Libraries/Renderer/shims/ReactNative")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Platform")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Components/View/View")); - var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/processColor")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "invariant")); - var _excluded = ["onBlur", "onFocus"]; - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var TouchableNativeFeedback = function (_React$Component) { - (0, _inherits2.default)(TouchableNativeFeedback, _React$Component); - var _super = _createSuper(TouchableNativeFeedback); - function TouchableNativeFeedback() { - var _this; - (0, _classCallCheck2.default)(this, TouchableNativeFeedback); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + return false; } - _this = _super.call.apply(_super, [this].concat(args)); - _this.state = { - pressability: new _Pressability.default(_this._createPressabilityConfig()) - }; - return _this; - } - (0, _createClass2.default)(TouchableNativeFeedback, [{ - key: "_createPressabilityConfig", - value: function _createPressabilityConfig() { - var _this$props$accessibi, - _this2 = this; - return { - cancelable: !this.props.rejectResponderTermination, - disabled: this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, - hitSlop: this.props.hitSlop, - delayLongPress: this.props.delayLongPress, - delayPressIn: this.props.delayPressIn, - delayPressOut: this.props.delayPressOut, - minPressDuration: 0, - pressRectOffset: this.props.pressRetentionOffset, - android_disableSound: this.props.touchSoundDisabled, - onLongPress: this.props.onLongPress, - onPress: this.props.onPress, - onPressIn: function onPressIn(event) { - if (_Platform.default.OS === 'android') { - _this2._dispatchHotspotUpdate(event); - _this2._dispatchPressedStateChange(true); + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + // This fiber does not have any pending work. Bailout without entering + // the begin phase. There's still some bookkeeping we that needs to be done + // in this optimized path, mostly pushing stuff onto the stack. + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + var root = workInProgress.stateNode; + break; + case HostComponent: + pushHostContext(workInProgress); + break; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + pushContextProvider(workInProgress); + } + break; } - if (_this2.props.onPressIn != null) { - _this2.props.onPressIn(event); + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case ContextProvider: + { + var newValue = workInProgress.memoizedProps.value; + var context = workInProgress.type._context; + pushProvider(workInProgress, context, newValue); + break; } - }, - onPressMove: function onPressMove(event) { - if (_Platform.default.OS === 'android') { - _this2._dispatchHotspotUpdate(event); + case Profiler: + { + // Profiler should only call onRender when one of its descendants actually rendered. + var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (hasChildWork) { + workInProgress.flags |= Update; + } + { + // Reset effect durations for the next eventual effect phase. + // These are reset during render to allow the DevTools commit hook a chance to read them, + var stateNode = workInProgress.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } } - }, - onPressOut: function onPressOut(event) { - if (_Platform.default.OS === 'android') { - _this2._dispatchPressedStateChange(false); + break; + case SuspenseComponent: + { + var state = workInProgress.memoizedState; + if (state !== null) { + if (state.dehydrated !== null) { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has + // been unsuspended it has committed as a resolved Suspense component. + // If it needs to be retried, it should have work scheduled on it. + + workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we + // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork. + + return null; + } // If this boundary is currently timed out, we need to decide + // whether to retry the primary children, or to skip over it and + // go straight to the fallback. Check the priority of the primary + // child fragment. + + var primaryChildFragment = workInProgress.child; + var primaryChildLanes = primaryChildFragment.childLanes; + if (includesSomeLane(renderLanes, primaryChildLanes)) { + // The primary children have pending work. Use the normal path + // to attempt to render the primary children again. + return updateSuspenseComponent(current, workInProgress, renderLanes); + } else { + // The primary child fragment does not have pending work marked + // on it + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient + // priority. Bailout. + + var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + if (child !== null) { + // The fallback children have pending work. Skip over the + // primary children and work on the fallback. + return child.sibling; + } else { + // Note: We can return `null` here because we already checked + // whether there were nested context consumers, via the call to + // `bailoutOnAlreadyFinishedWork` above. + return null; + } + } + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + break; } - if (_this2.props.onPressOut != null) { - _this2.props.onPressOut(event); + case SuspenseListComponent: + { + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes); + if (didSuspendBefore) { + if (_hasChildWork) { + // If something was in fallback state last time, and we have all the + // same children then we're still in progressive loading state. + // Something might get unblocked by state updates or retries in the + // tree which will affect the tail. So we need to use the normal + // path to compute the correct tail. + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. + + workInProgress.flags |= DidCapture; + } // If nothing suspended before and we're rendering the same children, + // then the tail doesn't matter. Anything new that suspends will work + // in the "together" mode, so we can continue from the state we had. + + var renderState = workInProgress.memoizedState; + if (renderState !== null) { + // Reset to the "together" mode in case we've started a different + // update in the past but didn't complete it. + renderState.rendering = null; + renderState.tail = null; + renderState.lastEffect = null; + } + pushSuspenseContext(workInProgress, suspenseStackCursor.current); + if (_hasChildWork) { + break; + } else { + // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. + return null; + } + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + // Need to check if the tree still needs to be deferred. This is + // almost identical to the logic used in the normal update path, + // so we'll just enter that. The only difference is we'll bail out + // at the next level instead of this one, because the child props + // have not changed. Which is fine. + // TODO: Probably should refactor `beginWork` to split the bailout + // path from the normal path. I'm tempted to do a labeled break here + // but I won't :) + workInProgress.lanes = NoLanes; + return updateOffscreenComponent(current, workInProgress, renderLanes); } - } - }; - } - }, { - key: "_dispatchPressedStateChange", - value: function _dispatchPressedStateChange(pressed) { - if (_Platform.default.OS === 'android') { - var hostComponentRef = _ReactNative.default.findHostInstance_DEPRECATED(this); - if (hostComponentRef == null) { - console.warn('Touchable: Unable to find HostComponent instance. ' + 'Has your Touchable component been unmounted?'); - } else { - _$$_REQUIRE(_dependencyMap[14], "react-native/Libraries/Components/View/ViewNativeComponent").Commands.setPressed(hostComponentRef, pressed); - } } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - }, { - key: "_dispatchHotspotUpdate", - value: function _dispatchHotspotUpdate(event) { - if (_Platform.default.OS === 'android') { - var _event$nativeEvent = event.nativeEvent, - locationX = _event$nativeEvent.locationX, - locationY = _event$nativeEvent.locationY; - var hostComponentRef = _ReactNative.default.findHostInstance_DEPRECATED(this); - if (hostComponentRef == null) { - console.warn('Touchable: Unable to find HostComponent instance. ' + 'Has your Touchable component been unmounted?'); - } else { - _$$_REQUIRE(_dependencyMap[14], "react-native/Libraries/Components/View/ViewNativeComponent").Commands.hotspotUpdate(hostComponentRef, locationX != null ? locationX : 0, locationY != null ? locationY : 0); + function beginWork(current, workInProgress, renderLanes) { + { + if (workInProgress._debugNeedsRemount && current !== null) { + // This will restart the begin phase with a new fiber. + return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes)); } } - } - }, { - key: "render", - value: function render() { - var element = React.Children.only(this.props.children); - var children = [element.props.children]; - if (__DEV__) { - if (element.type === _View.default) { - children.push((0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[16], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: "brown", - hitSlop: this.props.hitSlop - })); + if (current !== null) { + var oldProps = current.memoizedProps; + var newProps = workInProgress.pendingProps; + if (oldProps !== newProps || hasContextChanged() || + // Force a re-render if the implementation changed due to hot reload: + workInProgress.type !== current.type) { + // If props or context changed, mark the fiber as having performed work. + // This may be unset if the props are determined to be equal later (memo). + didReceiveUpdate = true; + } else { + // Neither props nor legacy context changes. Check if there's a pending + // update or context change. + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); + if (!hasScheduledUpdateOrContext && + // If this is the second pass of an error or suspense boundary, there + // may not be work scheduled on `current`, so we check for this flag. + (workInProgress.flags & DidCapture) === NoFlags) { + // No pending updates or context. Bail out now. + didReceiveUpdate = false; + return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + } + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + // This is a special case that only exists for legacy mode. + // See https://github.com/facebook/react/pull/19216. + didReceiveUpdate = true; + } else { + // An update was scheduled on this fiber, but there are no new props + // nor legacy context. Set this to false. If an update queue or context + // consumer produces a changed value, it will set this to true. Otherwise, + // the component will assume the children have not changed and bail out. + didReceiveUpdate = false; + } } - } + } else { + didReceiveUpdate = false; + } // Before entering the begin phase, clear pending update priority. + // TODO: This assumes that we're about to evaluate the component and process + // the update queue. However, there's an exception: SimpleMemoComponent + // sometimes bails out later in the begin phase. This indicates that we should + // move this assignment out of the common path and into each branch. - var _this$state$pressabil = this.state.pressability.getEventHandlers(), - onBlur = _this$state$pressabil.onBlur, - onFocus = _this$state$pressabil.onFocus, - eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); - var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { - disabled: this.props.disabled - }) : this.props.accessibilityState; - return React.cloneElement.apply(React, [element, Object.assign({}, eventHandlersWithoutBlurAndFocus, getBackgroundProp(this.props.background === undefined ? TouchableNativeFeedback.SelectableBackground() : this.props.background, this.props.useForeground === true), { - accessible: this.props.accessible !== false, - accessibilityHint: this.props.accessibilityHint, - accessibilityLanguage: this.props.accessibilityLanguage, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityRole: this.props.accessibilityRole, - accessibilityState: accessibilityState, - accessibilityActions: this.props.accessibilityActions, - onAccessibilityAction: this.props.onAccessibilityAction, - accessibilityValue: this.props.accessibilityValue, - importantForAccessibility: this.props.importantForAccessibility, - accessibilityLiveRegion: this.props.accessibilityLiveRegion, - accessibilityViewIsModal: this.props.accessibilityViewIsModal, - accessibilityElementsHidden: this.props.accessibilityElementsHidden, - hasTVPreferredFocus: this.props.hasTVPreferredFocus, - hitSlop: this.props.hitSlop, - focusable: this.props.focusable !== false && this.props.onPress !== undefined && !this.props.disabled, - nativeID: this.props.nativeID, - nextFocusDown: this.props.nextFocusDown, - nextFocusForward: this.props.nextFocusForward, - nextFocusLeft: this.props.nextFocusLeft, - nextFocusRight: this.props.nextFocusRight, - nextFocusUp: this.props.nextFocusUp, - onLayout: this.props.onLayout, - testID: this.props.testID - })].concat(children)); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState) { - this.state.pressability.configure(this._createPressabilityConfig()); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.state.pressability.reset(); - } - }]); - return TouchableNativeFeedback; - }(React.Component); - TouchableNativeFeedback.SelectableBackground = function (rippleRadius) { - return { - type: 'ThemeAttrAndroid', - attribute: 'selectableItemBackground', - rippleRadius: rippleRadius - }; - }; - TouchableNativeFeedback.SelectableBackgroundBorderless = function (rippleRadius) { - return { - type: 'ThemeAttrAndroid', - attribute: 'selectableItemBackgroundBorderless', - rippleRadius: rippleRadius - }; - }; - TouchableNativeFeedback.Ripple = function (color, borderless, rippleRadius) { - var processedColor = (0, _processColor.default)(color); - (0, _invariant.default)(processedColor == null || typeof processedColor === 'number', 'Unexpected color given for Ripple color'); - return { - type: 'RippleAndroid', - color: processedColor, - borderless: borderless, - rippleRadius: rippleRadius - }; - }; - TouchableNativeFeedback.canUseNativeForeground = function () { - return _Platform.default.OS === 'android' && _Platform.default.Version >= 23; - }; - var getBackgroundProp = _Platform.default.OS === 'android' ? - function (background, useForeground) { - return useForeground && TouchableNativeFeedback.canUseNativeForeground() ? { - nativeForegroundAndroid: background - } : { - nativeBackgroundAndroid: background - }; - } : - function (background, useForeground) { - return null; - }; - TouchableNativeFeedback.displayName = 'TouchableNativeFeedback'; - module.exports = TouchableNativeFeedback; -},267,[3,132,12,13,50,47,46,259,34,14,245,159,36,17,246,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); - var _Animated = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "react-native/Libraries/Animated/Animated")); - var _Easing = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/Animated/Easing")); - var _flattenStyle4 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "react-native/Libraries/StyleSheet/flattenStyle")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js", - _this3 = this; - var _excluded = ["onBlur", "onFocus"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var TouchableOpacity = function (_React$Component) { - (0, _inherits2.default)(TouchableOpacity, _React$Component); - var _super = _createSuper(TouchableOpacity); - function TouchableOpacity() { - var _this; - (0, _classCallCheck2.default)(this, TouchableOpacity); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this.state = { - anim: new _Animated.default.Value(_this._getChildStyleOpacityWithDefault()), - pressability: new _Pressability.default(_this._createPressabilityConfig()) - }; - return _this; - } - (0, _createClass2.default)(TouchableOpacity, [{ - key: "_createPressabilityConfig", - value: function _createPressabilityConfig() { - var _this$props$disabled, - _this$props$accessibi, - _this2 = this; - return { - cancelable: !this.props.rejectResponderTermination, - disabled: (_this$props$disabled = this.props.disabled) != null ? _this$props$disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, - hitSlop: this.props.hitSlop, - delayLongPress: this.props.delayLongPress, - delayPressIn: this.props.delayPressIn, - delayPressOut: this.props.delayPressOut, - minPressDuration: 0, - pressRectOffset: this.props.pressRetentionOffset, - onBlur: function onBlur(event) { - if (_Platform.default.isTV) { - _this2._opacityInactive(250); - } - if (_this2.props.onBlur != null) { - _this2.props.onBlur(event); + workInProgress.lanes = NoLanes; + switch (workInProgress.tag) { + case IndeterminateComponent: + { + return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes); } - }, - onFocus: function onFocus(event) { - if (_Platform.default.isTV) { - _this2._opacityActive(150); + case LazyComponent: + { + var elementType = workInProgress.elementType; + return mountLazyComponent(current, workInProgress, elementType, renderLanes); } - if (_this2.props.onFocus != null) { - _this2.props.onFocus(event); + case FunctionComponent: + { + var Component = workInProgress.type; + var unresolvedProps = workInProgress.pendingProps; + var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps); + return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes); } - }, - onLongPress: this.props.onLongPress, - onPress: this.props.onPress, - onPressIn: function onPressIn(event) { - _this2._opacityActive(event.dispatchConfig.registrationName === 'onResponderGrant' ? 0 : 150); - if (_this2.props.onPressIn != null) { - _this2.props.onPressIn(event); + case ClassComponent: + { + var _Component = workInProgress.type; + var _unresolvedProps = workInProgress.pendingProps; + var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps); + return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes); } - }, - onPressOut: function onPressOut(event) { - _this2._opacityInactive(250); - if (_this2.props.onPressOut != null) { - _this2.props.onPressOut(event); + case HostRoot: + return updateHostRoot(current, workInProgress, renderLanes); + case HostComponent: + return updateHostComponent(current, workInProgress, renderLanes); + case HostText: + return updateHostText(); + case SuspenseComponent: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case HostPortal: + return updatePortalComponent(current, workInProgress, renderLanes); + case ForwardRef: + { + var type = workInProgress.type; + var _unresolvedProps2 = workInProgress.pendingProps; + var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); + return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes); } - } - }; - } + case Fragment: + return updateFragment(current, workInProgress, renderLanes); + case Mode: + return updateMode(current, workInProgress, renderLanes); + case Profiler: + return updateProfiler(current, workInProgress, renderLanes); + case ContextProvider: + return updateContextProvider(current, workInProgress, renderLanes); + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderLanes); + case MemoComponent: + { + var _type2 = workInProgress.type; + var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props. - }, { - key: "_setOpacityTo", - value: - function _setOpacityTo(toValue, duration) { - _Animated.default.timing(this.state.anim, { - toValue: toValue, - duration: duration, - easing: _Easing.default.inOut(_Easing.default.quad), - useNativeDriver: true - }).start(); - } - }, { - key: "_opacityActive", - value: function _opacityActive(duration) { - var _this$props$activeOpa; - this._setOpacityTo((_this$props$activeOpa = this.props.activeOpacity) != null ? _this$props$activeOpa : 0.2, duration); + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = _type2.propTypes; + if (outerPropTypes) { + checkPropTypes(outerPropTypes, _resolvedProps3, + // Resolved for outer only + "prop", getComponentNameFromType(_type2)); + } + } + } + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes); + } + case SimpleMemoComponent: + { + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + } + case IncompleteClassComponent: + { + var _Component2 = workInProgress.type; + var _unresolvedProps4 = workInProgress.pendingProps; + var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4); + return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes); + } + case SuspenseListComponent: + { + return updateSuspenseListComponent(current, workInProgress, renderLanes); + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + { + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + } + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); } - }, { - key: "_opacityInactive", - value: function _opacityInactive(duration) { - this._setOpacityTo(this._getChildStyleOpacityWithDefault(), duration); + function markUpdate(workInProgress) { + // Tag the fiber with an update effect. This turns a Placement into + // a PlacementAndUpdate. + workInProgress.flags |= Update; } - }, { - key: "_getChildStyleOpacityWithDefault", - value: function _getChildStyleOpacityWithDefault() { - var _flattenStyle; - var opacity = (_flattenStyle = (0, _flattenStyle4.default)(this.props.style)) == null ? void 0 : _flattenStyle.opacity; - return typeof opacity === 'number' ? opacity : 1; + function markRef$1(workInProgress) { + workInProgress.flags |= Ref; } - }, { - key: "render", - value: function render() { - var _this$state$pressabil = this.state.pressability.getEventHandlers(), - onBlur = _this$state$pressabil.onBlur, - onFocus = _this$state$pressabil.onFocus, - eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); - var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { - disabled: this.props.disabled - }) : this.props.accessibilityState; - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Animated.default.View, Object.assign({ - accessible: this.props.accessible !== false, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityHint: this.props.accessibilityHint, - accessibilityLanguage: this.props.accessibilityLanguage, - accessibilityRole: this.props.accessibilityRole, - accessibilityState: accessibilityState, - accessibilityActions: this.props.accessibilityActions, - onAccessibilityAction: this.props.onAccessibilityAction, - accessibilityValue: this.props.accessibilityValue, - importantForAccessibility: this.props.importantForAccessibility, - accessibilityLiveRegion: this.props.accessibilityLiveRegion, - accessibilityViewIsModal: this.props.accessibilityViewIsModal, - accessibilityElementsHidden: this.props.accessibilityElementsHidden, - style: [this.props.style, { - opacity: this.state.anim - }], - nativeID: this.props.nativeID, - testID: this.props.testID, - onLayout: this.props.onLayout, - nextFocusDown: this.props.nextFocusDown, - nextFocusForward: this.props.nextFocusForward, - nextFocusLeft: this.props.nextFocusLeft, - nextFocusRight: this.props.nextFocusRight, - nextFocusUp: this.props.nextFocusUp, - hasTVPreferredFocus: this.props.hasTVPreferredFocus, - hitSlop: this.props.hitSlop, - focusable: this.props.focusable !== false && this.props.onPress !== undefined, - ref: this.props.hostRef - }, eventHandlersWithoutBlurAndFocus, { - children: [this.props.children, __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: "cyan", - hitSlop: this.props.hitSlop - }) : null] - })); + var appendAllChildren; + var updateHostContainer; + var updateHostComponent$1; + var updateHostText$1; + { + // Mutation mode + appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + // We only have the top Fiber that was created but we need recurse down its + // children to find all the terminal nodes. + var node = workInProgress.child; + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) ;else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function updateHostContainer(current, workInProgress) { + // Noop + }; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance) { + // If we have an alternate, that means this is an update and we need to + // schedule a side-effect to do the updates. + var oldProps = current.memoizedProps; + if (oldProps === newProps) { + // In mutation mode, this is sufficient for a bailout because + // we won't touch this node even if children changed. + return; + } // If we get updated because one of our children updated, we don't + // have newProps so we'll have to reuse them. + // TODO: Split the update API as separate for the props vs. children. + // Even better would be if children weren't special cased at all tho. + + var instance = workInProgress.stateNode; + var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host + // component is hitting the resume path. Figure out why. Possibly + // related to `hidden`. + + var updatePayload = prepareUpdate(); // TODO: Type this specific to this type of component. + + workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there + // is a new ref we mark this as an update. All the work is done in commitWork. + + if (updatePayload) { + markUpdate(workInProgress); + } + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + // If the text differs, mark it as an update. All the work in done in commitWork. + if (oldText !== newText) { + markUpdate(workInProgress); + } + }; } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState) { - var _flattenStyle2, _flattenStyle3; - this.state.pressability.configure(this._createPressabilityConfig()); - if (this.props.disabled !== prevProps.disabled || ((_flattenStyle2 = (0, _flattenStyle4.default)(prevProps.style)) == null ? void 0 : _flattenStyle2.opacity) !== ((_flattenStyle3 = (0, _flattenStyle4.default)(this.props.style)) == null ? void 0 : _flattenStyle3.opacity) !== undefined) { - this._opacityInactive(250); + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. + var tailNode = renderState.tail; + var lastTailNode = null; + while (tailNode !== null) { + if (tailNode.alternate !== null) { + lastTailNode = tailNode; + } + tailNode = tailNode.sibling; + } // Next we're simply going to delete all insertions after the + // last rendered item. + + if (lastTailNode === null) { + // All remaining items in the tail are insertions. + renderState.tail = null; + } else { + // Detach the insertion after the last node that was already + // inserted. + lastTailNode.sibling = null; + } + break; + } + case "collapsed": + { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. + var _tailNode = renderState.tail; + var _lastTailNode = null; + while (_tailNode !== null) { + if (_tailNode.alternate !== null) { + _lastTailNode = _tailNode; + } + _tailNode = _tailNode.sibling; + } // Next we're simply going to delete all insertions after the + // last rendered item. + + if (_lastTailNode === null) { + // All remaining items in the tail are insertions. + if (!hasRenderedATailFallback && renderState.tail !== null) { + // We suspended during the head. We want to show at least one + // row at the tail. So we'll keep on and cut off the rest. + renderState.tail.sibling = null; + } else { + renderState.tail = null; + } + } else { + // Detach the insertion after the last node that was already + // inserted. + _lastTailNode.sibling = null; + } + break; + } } } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.state.pressability.reset(); - } - }]); - return TouchableOpacity; - }(React.Component); - var Touchable = React.forwardRef(function (props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(TouchableOpacity, Object.assign({}, props, { - hostRef: ref - })); - }); - Touchable.displayName = 'TouchableOpacity'; - module.exports = Touchable; -},268,[3,132,12,13,50,47,46,259,269,294,189,14,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); - var AnimatedMock = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "./AnimatedMock")); - var AnimatedImplementation = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./AnimatedImplementation")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function bubbleProperties(completedWork) { + var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; + var newChildLanes = NoLanes; + var subtreeFlags = NoFlags; + if (!didBailout) { + // Bubble up the earliest expiration time. + if ((completedWork.mode & ProfileMode) !== NoMode) { + // In profiling mode, resetChildExpirationTime is also used to reset + // profiler durations. + var actualDuration = completedWork.actualDuration; + var treeBaseDuration = completedWork.selfBaseDuration; + var child = completedWork.child; + while (child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); + subtreeFlags |= child.subtreeFlags; + subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will + // only be updated if work is done on the fiber (i.e. it doesn't bailout). + // When work is done, it should bubble to the parent's actualDuration. If + // the fiber has not been cloned though, (meaning no work was done), then + // this value will reflect the amount of time spent working on a previous + // render. In that case it should not bubble. We determine whether it was + // cloned by comparing the child pointer. - var Animated = _Platform.default.isTesting ? AnimatedMock : AnimatedImplementation; - module.exports = Object.assign({ - get FlatList() { - return _$$_REQUIRE(_dependencyMap[4], "./components/AnimatedFlatList"); - }, - get Image() { - return _$$_REQUIRE(_dependencyMap[5], "./components/AnimatedImage"); - }, - get ScrollView() { - return _$$_REQUIRE(_dependencyMap[6], "./components/AnimatedScrollView"); - }, - get SectionList() { - return _$$_REQUIRE(_dependencyMap[7], "./components/AnimatedSectionList"); - }, - get Text() { - return _$$_REQUIRE(_dependencyMap[8], "./components/AnimatedText"); - }, - get View() { - return _$$_REQUIRE(_dependencyMap[9], "./components/AnimatedView"); - } - }, Animated); -},269,[3,14,270,282,304,333,340,341,344,345],"node_modules/react-native/Libraries/Animated/Animated.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + actualDuration += child.actualDuration; + treeBaseDuration += child.treeBaseDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + completedWork.treeBaseDuration = treeBaseDuration; + } else { + var _child = completedWork.child; + while (_child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); + subtreeFlags |= _child.subtreeFlags; + subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code + // smell because it assumes the commit phase is never concurrent with + // the render phase. Will address during refactor to alternate model. - 'use strict'; + _child.return = completedWork; + _child = _child.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } else { + // Bubble up the earliest expiration time. + if ((completedWork.mode & ProfileMode) !== NoMode) { + // In profiling mode, resetChildExpirationTime is also used to reset + // profiler durations. + var _treeBaseDuration = completedWork.selfBaseDuration; + var _child2 = completedWork.child; + while (_child2 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to, + // so we should bubble those up even during a bailout. All the other + // flags have a lifetime only of a single render + commit, so we should + // ignore them. - var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedColor")); + subtreeFlags |= _child2.subtreeFlags & StaticMask; + subtreeFlags |= _child2.flags & StaticMask; + _treeBaseDuration += _child2.treeBaseDuration; + _child2 = _child2.sibling; + } + completedWork.treeBaseDuration = _treeBaseDuration; + } else { + var _child3 = completedWork.child; + while (_child3 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to, + // so we should bubble those up even during a bailout. All the other + // flags have a lifetime only of a single render + commit, so we should + // ignore them. - var inAnimationCallback = false; - function mockAnimationStart(start) { - return function (callback) { - var guardedCallback = callback == null ? callback : function () { - if (inAnimationCallback) { - console.warn('Ignoring recursive animation callback when running mock animations'); - return; + subtreeFlags |= _child3.subtreeFlags & StaticMask; + subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code + // smell because it assumes the commit phase is never concurrent with + // the render phase. Will address during refactor to alternate model. + + _child3.return = completedWork; + _child3 = _child3.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; } - inAnimationCallback = true; - try { - callback.apply(void 0, arguments); - } finally { - inAnimationCallback = false; + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) { + var wasHydrated = popHydrationState(); + if (nextState !== null && nextState.dehydrated !== null) { + // We might be inside a hydration state the first time we're picking up this + // Suspense boundary, and also after we've reentered it for further hydration. + if (current === null) { + if (!wasHydrated) { + throw new Error("A dehydrated suspense component was completed without a hydrated node. " + "This is probably a bug in React."); + } + prepareToHydrateHostSuspenseInstance(); + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var isTimedOutSuspense = nextState !== null; + if (isTimedOutSuspense) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } else { + if ((workInProgress.flags & DidCapture) === NoFlags) { + // This boundary did not suspend so it's now hydrated and unsuspended. + workInProgress.memoizedState = null; + } // If nothing suspended, we need to schedule an effect to mark this boundary + // as having hydrated so events know that they're free to be invoked. + // It's also a signal to replay events and the suspense callback. + // If something suspended, schedule an effect to attach retry listeners. + // So we might as well always mark this. + + workInProgress.flags |= Update; + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + var _isTimedOutSuspense = nextState !== null; + if (_isTimedOutSuspense) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. + var _primaryChildFragment = workInProgress.child; + if (_primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } + } else { + // Successfully completed this tree. If this was a forced client render, + // there may have been recoverable errors during first hydration + // attempt. If so, add them to a queue so we can log them in the + // commit phase. + upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path + + return true; } - }; - start(guardedCallback); - }; - } - var emptyAnimation = { - start: function start() {}, - stop: function stop() {}, - reset: function reset() {}, - _startNativeLoop: function _startNativeLoop() {}, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return false; - } - }; - var mockCompositeAnimation = function mockCompositeAnimation(animations) { - return Object.assign({}, emptyAnimation, { - start: mockAnimationStart(function (callback) { - animations.forEach(function (animation) { - return animation.start(); - }); - callback == null ? void 0 : callback({ - finished: true - }); - }) - }); - }; - var spring = function spring(value, config) { - var anyValue = value; - return Object.assign({}, emptyAnimation, { - start: mockAnimationStart(function (callback) { - anyValue.setValue(config.toValue); - callback == null ? void 0 : callback({ - finished: true - }); - }) - }); - }; - var timing = function timing(value, config) { - var anyValue = value; - return Object.assign({}, emptyAnimation, { - start: mockAnimationStart(function (callback) { - anyValue.setValue(config.toValue); - callback == null ? void 0 : callback({ - finished: true - }); - }) - }); - }; - var decay = function decay(value, config) { - return emptyAnimation; - }; - var sequence = function sequence(animations) { - return mockCompositeAnimation(animations); - }; - var parallel = function parallel(animations, config) { - return mockCompositeAnimation(animations); - }; - var delay = function delay(time) { - return emptyAnimation; - }; - var stagger = function stagger(time, animations) { - return mockCompositeAnimation(animations); - }; - var loop = function loop(animation) { - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$iterations = _ref.iterations, - iterations = _ref$iterations === void 0 ? -1 : _ref$iterations; - return emptyAnimation; - }; - module.exports = { - Value: _$$_REQUIRE(_dependencyMap[2], "./nodes/AnimatedValue"), - ValueXY: _$$_REQUIRE(_dependencyMap[3], "./nodes/AnimatedValueXY"), - Color: _AnimatedColor.default, - Interpolation: _$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedInterpolation"), - Node: _$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedNode"), - decay: decay, - timing: timing, - spring: spring, - add: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").add, - subtract: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").subtract, - divide: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").divide, - multiply: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").multiply, - modulo: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").modulo, - diffClamp: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").diffClamp, - delay: delay, - sequence: sequence, - parallel: parallel, - stagger: stagger, - loop: loop, - event: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").event, - createAnimatedComponent: _$$_REQUIRE(_dependencyMap[7], "./createAnimatedComponent"), - attachNativeEvent: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").attachNativeEvent, - forkEvent: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").forkEvent, - unforkEvent: _$$_REQUIRE(_dependencyMap[6], "./AnimatedImplementation").unforkEvent, - Event: _$$_REQUIRE(_dependencyMap[8], "./AnimatedEvent").AnimatedEvent - }; -},270,[3,271,272,281,276,278,282,298,297],"node_modules/react-native/Libraries/Animated/AnimatedMock.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. - 'use strict'; + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case IndeterminateComponent: + case LazyComponent: + case SimpleMemoComponent: + case FunctionComponent: + case ForwardRef: + case Fragment: + case Mode: + case Profiler: + case ContextConsumer: + case MemoComponent: + bubbleProperties(workInProgress); + return null; + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case HostRoot: + { + var fiberRoot = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + if (current === null || current.child === null) { + // If we hydrated, pop so that we can delete any remaining children + // that weren't hydrated. + var wasHydrated = popHydrationState(); + if (wasHydrated) { + // If we hydrated, then we'll need to schedule an update for + // the commit side-effects on the root. + markUpdate(workInProgress); + } else { + if (current !== null) { + var prevState = current.memoizedState; + if ( + // Check if this is a client root + !prevState.isDehydrated || + // Check if we reverted to client rendering (e.g. due to an error) + (workInProgress.flags & ForceClientRender) !== NoFlags) { + // Schedule an effect to clear this container at the start of the + // next commit. This handles the case of React rendering into a + // container with previous children. It's also safe to do for + // updates too, because current.child would only be null if the + // previous render was null (so the container would already + // be empty). + workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been + // recoverable errors during first hydration attempt. If so, add + // them to a queue so we can log them in the commit phase. - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _AnimatedValue = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./AnimatedValue")); - var _AnimatedWithChildren2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - var _normalizeColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../StyleSheet/normalizeColor")); - var _NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../NativeAnimatedHelper")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var NativeAnimatedAPI = _NativeAnimatedHelper.default.API; - var defaultColor = { - r: 0, - g: 0, - b: 0, - a: 1.0 - }; - var _uniqueId = 1; + upgradeHydrationErrorsToRecoverable(); + } + } + } + } + updateHostContainer(current, workInProgress); + bubbleProperties(workInProgress); + return null; + } + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + if (current !== null && workInProgress.stateNode != null) { + updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance); + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } // This can happen when we abort work. - function processColor(color) { - if (color === undefined || color === null) { - return null; - } - if (isRgbaValue(color)) { - return color; - } - var normalizedColor = (0, _normalizeColor.default)( - color); - if (normalizedColor === undefined || normalizedColor === null) { - return null; - } - if (typeof normalizedColor === 'object') { - var processedColorObj = (0, _$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/PlatformColorValueTypes").processColorObject)(normalizedColor); - if (processedColorObj != null) { - return processedColorObj; - } - } else if (typeof normalizedColor === 'number') { - var r = (normalizedColor & 0xff000000) >>> 24; - var g = (normalizedColor & 0x00ff0000) >>> 16; - var b = (normalizedColor & 0x0000ff00) >>> 8; - var a = (normalizedColor & 0x000000ff) / 255; - return { - r: r, - g: g, - b: b, - a: a - }; - } - return null; - } - function isRgbaValue(value) { - return value && typeof value.r === 'number' && typeof value.g === 'number' && typeof value.b === 'number' && typeof value.a === 'number'; - } - function isRgbaAnimatedValue(value) { - return value && value.r instanceof _AnimatedValue.default && value.g instanceof _AnimatedValue.default && value.b instanceof _AnimatedValue.default && value.a instanceof _AnimatedValue.default; - } - var AnimatedColor = function (_AnimatedWithChildren) { - (0, _inherits2.default)(AnimatedColor, _AnimatedWithChildren); - var _super = _createSuper(AnimatedColor); - function AnimatedColor(valueIn, config) { - var _this; - (0, _classCallCheck2.default)(this, AnimatedColor); - _this = _super.call(this); - _this._listeners = {}; - var value = valueIn != null ? valueIn : defaultColor; - if (isRgbaAnimatedValue(value)) { - var rgbaAnimatedValue = value; - _this.r = rgbaAnimatedValue.r; - _this.g = rgbaAnimatedValue.g; - _this.b = rgbaAnimatedValue.b; - _this.a = rgbaAnimatedValue.a; - } else { - var _processColor; - var processedColor = (_processColor = processColor(value)) != null ? _processColor : defaultColor; - var initColor = defaultColor; - if (isRgbaValue(processedColor)) { - initColor = processedColor; - } else { - _this.nativeColor = processedColor; - } - _this.r = new _AnimatedValue.default(initColor.r); - _this.g = new _AnimatedValue.default(initColor.g); - _this.b = new _AnimatedValue.default(initColor.b); - _this.a = new _AnimatedValue.default(initColor.a); - } - if (_this.nativeColor || config && config.useNativeDriver) { - _this.__makeNative(); - } - return _this; - } + bubbleProperties(workInProgress); + return null; + } + var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context + // "stack" as the parent. Then append children as we go in beginWork + // or completeWork depending on whether we want to add them top->down or + // bottom->up. Top->down is faster in IE11. - (0, _createClass2.default)(AnimatedColor, [{ - key: "setValue", - value: - function setValue(value) { - var _processColor2; - var shouldUpdateNodeConfig = false; - if (this.__isNative) { - var nativeTag = this.__getNativeTag(); - NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString()); - } - var processedColor = (_processColor2 = processColor(value)) != null ? _processColor2 : defaultColor; - if (isRgbaValue(processedColor)) { - var rgbaValue = processedColor; - this.r.setValue(rgbaValue.r); - this.g.setValue(rgbaValue.g); - this.b.setValue(rgbaValue.b); - this.a.setValue(rgbaValue.a); - if (this.nativeColor != null) { - this.nativeColor = null; - shouldUpdateNodeConfig = true; - } - } else { - var nativeColor = processedColor; - if (this.nativeColor !== nativeColor) { - this.nativeColor = nativeColor; - shouldUpdateNodeConfig = true; - } - } - if (this.__isNative) { - var _nativeTag = this.__getNativeTag(); - if (shouldUpdateNodeConfig) { - NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()); - } - NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString()); - } - } + var _wasHydrated = popHydrationState(); + if (_wasHydrated) { + // TODO: Move this and createInstance step into the beginPhase + // to consolidate. + if (prepareToHydrateHostInstance()) { + // If changes to the hydrated node need to be applied at the + // commit-phase we mark this as such. + markUpdate(workInProgress); + } + } else { + var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); + appendAllChildren(instance, workInProgress, false, false); + workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount. + // (eg DOM renderer supports auto-focus for certain elements). + // Make sure such renderers get scheduled for later work. - }, { - key: "setOffset", - value: - function setOffset(offset) { - this.r.setOffset(offset.r); - this.g.setOffset(offset.g); - this.b.setOffset(offset.b); - this.a.setOffset(offset.a); - } + if (finalizeInitialChildren(instance)) { + markUpdate(workInProgress); + } + } + if (workInProgress.ref !== null) { + // If there is a ref on a host node we need to schedule a callback + markRef$1(workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case HostText: + { + var newText = newProps; + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need + // to schedule a side-effect to do the updates. - }, { - key: "flattenOffset", - value: - function flattenOffset() { - this.r.flattenOffset(); - this.g.flattenOffset(); - this.b.flattenOffset(); - this.a.flattenOffset(); - } + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== "string") { + if (workInProgress.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + } // This can happen when we abort work. + } - }, { - key: "extractOffset", - value: - function extractOffset() { - this.r.extractOffset(); - this.g.extractOffset(); - this.b.extractOffset(); - this.a.extractOffset(); - } + var _rootContainerInstance = getRootHostContainer(); + var _currentHostContext = getHostContext(); + var _wasHydrated2 = popHydrationState(); + if (_wasHydrated2) { + if (prepareToHydrateHostTextInstance()) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress); + } + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this + // to its own fiber type so that we can add other kinds of hydration + // boundaries that aren't associated with a Suspense tree. In anticipation + // of such a refactor, all the hydration logic is contained in + // this branch. - }, { - key: "addListener", - value: - function addListener(callback) { - var _this2 = this; - var id = String(_uniqueId++); - var jointCallback = function jointCallback(_ref) { - var number = _ref.value; - callback(_this2.__getValue()); - }; - this._listeners[id] = { - r: this.r.addListener(jointCallback), - g: this.g.addListener(jointCallback), - b: this.b.addListener(jointCallback), - a: this.a.addListener(jointCallback) - }; - return id; - } + if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) { + var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState); + if (!fallthroughToNormalSuspensePath) { + if (workInProgress.flags & ShouldCapture) { + // Special case. There were remaining unhydrated nodes. We treat + // this as a mismatch. Revert to client rendering. + return workInProgress; + } else { + // Did not finish hydrating, either because this is the initial + // render or because something suspended. + return null; + } + } // Continue with the normal Suspense path. + } - }, { - key: "removeListener", - value: - function removeListener(id) { - this.r.removeListener(this._listeners[id].r); - this.g.removeListener(this._listeners[id].g); - this.b.removeListener(this._listeners[id].b); - this.a.removeListener(this._listeners[id].a); - delete this._listeners[id]; - } + if ((workInProgress.flags & DidCapture) !== NoFlags) { + // Something suspended. Re-render with the fallback children. + workInProgress.lanes = renderLanes; // Do not reset the effect list. - }, { - key: "removeAllListeners", - value: - function removeAllListeners() { - this.r.removeAllListeners(); - this.g.removeAllListeners(); - this.b.removeAllListeners(); - this.a.removeAllListeners(); - this._listeners = {}; - } + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } // Don't bubble properties in this case. - }, { - key: "stopAnimation", - value: - function stopAnimation(callback) { - this.r.stopAnimation(); - this.g.stopAnimation(); - this.b.stopAnimation(); - this.a.stopAnimation(); - callback && callback(this.__getValue()); - } + return workInProgress; + } + var nextDidTimeout = nextState !== null; + var prevDidTimeout = current !== null && current.memoizedState !== null; + // a passive effect, which is when we process the transitions - }, { - key: "resetAnimation", - value: - function resetAnimation(callback) { - this.r.resetAnimation(); - this.g.resetAnimation(); - this.b.resetAnimation(); - this.a.resetAnimation(); - callback && callback(this.__getValue()); - } - }, { - key: "__getValue", - value: function __getValue() { - if (this.nativeColor != null) { - return this.nativeColor; - } else { - return "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")"; - } - } - }, { - key: "__attach", - value: function __attach() { - this.r.__addChild(this); - this.g.__addChild(this); - this.b.__addChild(this); - this.a.__addChild(this); - (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__attach", this).call(this); - } - }, { - key: "__detach", - value: function __detach() { - this.r.__removeChild(this); - this.g.__removeChild(this); - this.b.__removeChild(this); - this.a.__removeChild(this); - (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__detach", this).call(this); - } - }, { - key: "__makeNative", - value: function __makeNative(platformConfig) { - this.r.__makeNative(platformConfig); - this.g.__makeNative(platformConfig); - this.b.__makeNative(platformConfig); - this.a.__makeNative(platformConfig); - (0, _get2.default)((0, _getPrototypeOf2.default)(AnimatedColor.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'color', - r: this.r.__getNativeTag(), - g: this.g.__getNativeTag(), - b: this.b.__getNativeTag(), - a: this.a.__getNativeTag(), - nativeColor: this.nativeColor - }; - } - }]); - return AnimatedColor; - }(_AnimatedWithChildren2.default); - exports.default = AnimatedColor; -},271,[3,12,13,115,50,47,46,272,277,160,273,162],"node_modules/react-native/Libraries/Animated/nodes/AnimatedColor.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + if (nextDidTimeout !== prevDidTimeout) { + // an effect to toggle the subtree's visibility. When we switch from + // fallback -> primary, the inner Offscreen fiber schedules this effect + // as part of its normal complete phase. But when we switch from + // primary -> fallback, the inner Offscreen fiber does not have a complete + // phase. So we need to schedule its effect here. + // + // We also use this flag to connect/disconnect the effects, but the same + // logic applies: when re-connecting, the Offscreen fiber's complete + // phase will handle scheduling the effect. It's only when the fallback + // is active that we have to do anything special. - 'use strict'; + if (nextDidTimeout) { + var _offscreenFiber2 = workInProgress.child; + _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything + // in the concurrent tree already suspended during this render. + // This is a known bug. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - function _flush(rootNode) { - var animatedStyles = new Set(); - function findAnimatedStyles(node) { - if (typeof node.update === 'function') { - animatedStyles.add(node); - } else { - node.__getChildren().forEach(findAnimatedStyles); - } - } - findAnimatedStyles(rootNode); - animatedStyles.forEach(function (animatedStyle) { - return animatedStyle.update(); - }); - } + if ((workInProgress.mode & ConcurrentMode) !== NoMode) { + // TODO: Move this back to throwException because this is too late + // if this is a large tree which is common for initial loads. We + // don't know if we should restart a render or not until we get + // this marker, and this is too late. + // If this render already had a ping or lower pri updates, + // and this is the first time we know we're going to suspend we + // should be able to immediately restart from within throwException. + var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); + if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + // If this was in an invisible tree or a new render, then showing + // this boundary is ok. + renderDidSuspend(); + } else { + // Otherwise, we're going to have to hide content so we should + // suspend for longer if possible. + renderDidSuspendDelayIfPossible(); + } + } + } + } + var wakeables = workInProgress.updateQueue; + if (wakeables !== null) { + // Schedule an effect to attach a retry listener to the promise. + // TODO: Move to passive phase + workInProgress.flags |= Update; + } + bubbleProperties(workInProgress); + { + if ((workInProgress.mode & ProfileMode) !== NoMode) { + if (nextDidTimeout) { + // Don't count time spent in a timed out Suspense subtree as part of the base duration. + var primaryChildFragment = workInProgress.child; + if (primaryChildFragment !== null) { + // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return null; + } + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(current, workInProgress); + if (current === null) { + preparePortalMount(workInProgress.stateNode.containerInfo); + } + bubbleProperties(workInProgress); + return null; + case ContextProvider: + // Pop provider fiber + var context = workInProgress.type._context; + popProvider(context, workInProgress); + bubbleProperties(workInProgress); + return null; + case IncompleteClassComponent: + { + // Same as class component case. I put it down here so that the tags are + // sequential to ensure this switch is compiled to a jump table. + var _Component = workInProgress.type; + if (isContextProvider(_Component)) { + popContext(workInProgress); + } + bubbleProperties(workInProgress); + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + var renderState = workInProgress.memoizedState; + if (renderState === null) { + // We're running in the default, "independent" mode. + // We don't do anything in this mode. + bubbleProperties(workInProgress); + return null; + } + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var renderedTail = renderState.rendering; + if (renderedTail === null) { + // We just rendered the head. + if (!didSuspendAlready) { + // This is the first pass. We need to figure out if anything is still + // suspended in the rendered set. + // If new content unsuspended, but there's still some content that + // didn't. Then we need to do a second pass that forces everything + // to keep showing their fallbacks. + // We might be suspended if something in this render pass suspended, or + // something in the previous committed pass suspended. Otherwise, + // there's no chance so we can skip the expensive call to + // findFirstSuspended. + var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags); + if (!cannotBeSuspended) { + var row = workInProgress.child; + while (row !== null) { + var suspended = findFirstSuspended(row); + if (suspended !== null) { + didSuspendAlready = true; + workInProgress.flags |= DidCapture; + cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as + // part of the second pass. In that case nothing will subscribe to + // its thenables. Instead, we'll transfer its thenables to the + // SuspenseList so that it can retry if they resolve. + // There might be multiple of these in the list but since we're + // going to wait for all of them anyway, it doesn't really matter + // which ones gets to ping. In theory we could get clever and keep + // track of how many dependencies remain but it gets tricky because + // in the meantime, we can add/remove/change items and dependencies. + // We might bail out of the loop before finding any but that + // doesn't matter since that means that the other boundaries that + // we did find already has their listeners attached. - function _executeAsAnimatedBatch(id, operation) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setWaitingForIdentifier(id); - operation(); - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.unsetWaitingForIdentifier(id); - } + var newThenables = suspended.updateQueue; + if (newThenables !== null) { + workInProgress.updateQueue = newThenables; + workInProgress.flags |= Update; + } // Rerender the whole list, but this time, we'll force fallbacks + // to stay in place. + // Reset the effect flags before doing the second pass since that's now invalid. + // Reset the child fibers to their original state. - var AnimatedValue = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(AnimatedValue, _AnimatedWithChildren); - var _super = _createSuper(AnimatedValue); - function AnimatedValue(value, config) { - var _this; - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, AnimatedValue); - _this = _super.call(this); - if (typeof value !== 'number') { - throw new Error('AnimatedValue: Attempting to set value to undefined'); - } - _this._startingValue = _this._value = value; - _this._offset = 0; - _this._animation = null; - if (config && config.useNativeDriver) { - _this.__makeNative(); - } - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedValue, [{ - key: "__detach", - value: function __detach() { - var _this2 = this; - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.getValue(this.__getNativeTag(), function (value) { - _this2._value = value - _this2._offset; - }); + workInProgress.subtreeFlags = NoFlags; + resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately + // rerender the children. + + pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case. + + return workInProgress.child; + } + row = row.sibling; + } + } + if (renderState.tail !== null && now() > getRenderTargetTime()) { + // We have already passed our CPU deadline but we still have rows + // left in the tail. We'll just give up further attempts to render + // the main content and only render fallbacks. + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this + // to get it started back up to attempt the next item. While in terms + // of priority this work has the same priority as this current render, + // it's not part of the same transition once the transition has + // committed. If it's sync, we still want to yield so that it can be + // painted. Conceptually, this is really the same as pinging. + // We can use any RetryLane even if it's the one currently rendering + // since we're leaving it behind on this node. + + workInProgress.lanes = SomeRetryLane; + } + } else { + cutOffTailIfNeeded(renderState, false); + } // Next we're going to render the tail. + } else { + // Append the rendered row to the child list. + if (!didSuspendAlready) { + var _suspended = findFirstSuspended(renderedTail); + if (_suspended !== null) { + workInProgress.flags |= DidCapture; + didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't + // get lost if this row ends up dropped during a second pass. + + var _newThenables = _suspended.updateQueue; + if (_newThenables !== null) { + workInProgress.updateQueue = _newThenables; + workInProgress.flags |= Update; + } + cutOffTailIfNeeded(renderState, true); // This might have been modified. + + if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating. + ) { + // We're done. + bubbleProperties(workInProgress); + return null; + } + } else if ( + // The time it took to render last row is greater than the remaining + // time we have to render. So rendering one more row would likely + // exceed it. + now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) { + // We have now passed our CPU deadline and we'll just give up further + // attempts to render the main content and only render fallbacks. + // The assumption is that this is usually faster. + workInProgress.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this + // to get it started back up to attempt the next item. While in terms + // of priority this work has the same priority as this current render, + // it's not part of the same transition once the transition has + // committed. If it's sync, we still want to yield so that it can be + // painted. Conceptually, this is really the same as pinging. + // We can use any RetryLane even if it's the one currently rendering + // since we're leaving it behind on this node. + + workInProgress.lanes = SomeRetryLane; + } + } + if (renderState.isBackwards) { + // The effect list of the backwards tail will have been added + // to the end. This breaks the guarantee that life-cycles fire in + // sibling order but that isn't a strong guarantee promised by React. + // Especially since these might also just pop in during future commits. + // Append to the beginning of the list. + renderedTail.sibling = workInProgress.child; + workInProgress.child = renderedTail; + } else { + var previousSibling = renderState.last; + if (previousSibling !== null) { + previousSibling.sibling = renderedTail; + } else { + workInProgress.child = renderedTail; + } + renderState.last = renderedTail; + } + } + if (renderState.tail !== null) { + // We still have tail rows to render. + // Pop a row. + var next = renderState.tail; + renderState.rendering = next; + renderState.tail = next.sibling; + renderState.renderingStartTime = now(); + next.sibling = null; // Restore the context. + // TODO: We can probably just avoid popping it instead and only + // setting it the first time we go from not suspended to suspended. + + var suspenseContext = suspenseStackCursor.current; + if (didSuspendAlready) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + } else { + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row. + // Don't bubble properties in this case. + + return next; + } + bubbleProperties(workInProgress); + return null; + } + case ScopeComponent: + { + break; + } + case OffscreenComponent: + case LegacyHiddenComponent: + { + popRenderLanes(workInProgress); + var _nextState = workInProgress.memoizedState; + var nextIsHidden = _nextState !== null; + if (current !== null) { + var _prevState = current.memoizedState; + var prevIsHidden = _prevState !== null; + if (prevIsHidden !== nextIsHidden && + // LegacyHidden doesn't do any hiding โ€” it only pre-renders. + !enableLegacyHidden) { + workInProgress.flags |= Visibility; + } + } + if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) { + bubbleProperties(workInProgress); + } else { + // Don't bubble properties for hidden children unless we're rendering + // at offscreen priority. + if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { + bubbleProperties(workInProgress); + { + // Check if there was an insertion or update in the hidden subtree. + // If so, we need to hide those nodes in the commit phase, so + // schedule a visibility effect. + if (workInProgress.subtreeFlags & (Placement | Update)) { + workInProgress.flags |= Visibility; + } + } + } + } + return null; + } + case CacheComponent: + { + return null; + } + case TracingMarkerComponent: + { + return null; + } } - this.stopAnimation(); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValue.prototype), "__detach", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._value + this._offset; + throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + "React. Please file an issue."); } + function unwindWork(current, workInProgress, renderLanes) { + // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case ClassComponent: + { + var Component = workInProgress.type; + if (isContextProvider(Component)) { + popContext(workInProgress); + } + var flags = workInProgress.flags; + if (flags & ShouldCapture) { + workInProgress.flags = flags & ~ShouldCapture | DidCapture; + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case HostRoot: + { + var root = workInProgress.stateNode; + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + resetWorkInProgressVersions(); + var _flags = workInProgress.flags; + if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { + // There was an error during render that wasn't captured by a suspense + // boundary. Do a second pass on the root to unmount the children. + workInProgress.flags = _flags & ~ShouldCapture | DidCapture; + return workInProgress; + } // We unwound to the root without completing it. Exit. - }, { - key: "setValue", - value: - function setValue(value) { - var _this3 = this; - if (this._animation) { - this._animation.stop(); - this._animation = null; - } - this._updateValue(value, !this.__isNative); + return null; + } + case HostComponent: + { + // TODO: popHydrationState + popHostContext(workInProgress); + return null; + } + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var suspenseState = workInProgress.memoizedState; + if (suspenseState !== null && suspenseState.dehydrated !== null) { + if (workInProgress.alternate === null) { + throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in " + "React. Please file an issue."); + } + } + var _flags2 = workInProgress.flags; + if (_flags2 & ShouldCapture) { + workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary. - if (this.__isNative) { - _executeAsAnimatedBatch(this.__getNativeTag().toString(), function () { - return _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeValue(_this3.__getNativeTag(), value); - }); + if ((workInProgress.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress); + } + return workInProgress; + } + return null; + } + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been + // caught by a nested boundary. If not, it should bubble through. + + return null; + } + case HostPortal: + popHostContainer(workInProgress); + return null; + case ContextProvider: + var context = workInProgress.type._context; + popProvider(context, workInProgress); + return null; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(workInProgress); + return null; + case CacheComponent: + return null; + default: + return null; } } - - }, { - key: "setOffset", - value: - function setOffset(offset) { - this._offset = offset; - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeOffset(this.__getNativeTag(), offset); + function unwindInterruptedWork(current, interruptedWork, renderLanes) { + // Note: This intentionally doesn't check if we're hydrating because comparing + // to the current tree provider fiber is just as fast and less error-prone. + // Ideally we would have a special version of the work loop only + // for hydration. + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case ClassComponent: + { + var childContextTypes = interruptedWork.type.childContextTypes; + if (childContextTypes !== null && childContextTypes !== undefined) { + popContext(interruptedWork); + } + break; + } + case HostRoot: + { + var root = interruptedWork.stateNode; + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + resetWorkInProgressVersions(); + break; + } + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + case HostPortal: + popHostContainer(interruptedWork); + break; + case SuspenseComponent: + popSuspenseContext(interruptedWork); + break; + case SuspenseListComponent: + popSuspenseContext(interruptedWork); + break; + case ContextProvider: + var context = interruptedWork.type._context; + popProvider(context, interruptedWork); + break; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(interruptedWork); + break; } } + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } // Used during the commit phase to track the state of the Offscreen component stack. + var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; + var nextEffect = null; // Used for Profiling builds to track updaters. - }, { - key: "flattenOffset", - value: - function flattenOffset() { - this._value += this._offset; - this._offset = 0; - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.flattenAnimatedNodeOffset(this.__getNativeTag()); + var inProgressLanes = null; + var inProgressRoot = null; + function reportUncaughtErrorInDEV(error) { + // Wrapping each small part of the commit phase into a guarded + // callback is a bit too slow (https://github.com/facebook/react/pull/21666). + // But we rely on it to surface errors to DEV tools like overlays + // (https://github.com/facebook/react/issues/21712). + // As a compromise, rethrow only caught errors in a guard. + { + invokeGuardedCallback(null, function () { + throw error; + }); + clearCaughtError(); } } + var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + if (current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentWillUnmount(); + } finally { + recordLayoutEffectDuration(current); + } + } else { + instance.componentWillUnmount(); + } + }; // Capture errors so they don't interrupt mounting. - }, { - key: "extractOffset", - value: - function extractOffset() { - this._offset += this._value; - this._value = 0; - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.extractAnimatedNodeOffset(this.__getNativeTag()); + function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { + try { + callComponentWillUnmountWithTimer(current, instance); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); } - } + } // Capture errors so they don't interrupt mounting. - }, { - key: "stopAnimation", - value: - function stopAnimation(callback) { - this.stopTracking(); - this._animation && this._animation.stop(); - this._animation = null; - if (callback) { - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.getValue(this.__getNativeTag(), callback); + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (ref !== null) { + if (typeof ref === "function") { + var retVal; + try { + if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(null); + } finally { + recordLayoutEffectDuration(current); + } + } else { + retVal = ref(null); + } + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(current)); + } + } } else { - callback(this.__getValue()); + ref.current = null; } } } - - }, { - key: "resetAnimation", - value: - function resetAnimation(callback) { - this.stopAnimation(callback); - this._value = this._startingValue; - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setAnimatedNodeValue(this.__getNativeTag(), this._startingValue); + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); } } - }, { - key: "__onAnimatedValueUpdateReceived", - value: function __onAnimatedValueUpdateReceived(value) { - this._updateValue(value, false); - } + var focusedInstanceHandle = null; + var shouldFireAfterActiveInstanceBlur = false; + function commitBeforeMutationEffects(root, firstChild) { + focusedInstanceHandle = prepareForCommit(root.containerInfo); + nextEffect = firstChild; + commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber - }, { - key: "interpolate", - value: - function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); + var shouldFire = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = false; + focusedInstanceHandle = null; + return shouldFire; } + function commitBeforeMutationEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur. - }, { - key: "animate", - value: - function animate(animation, callback) { - var _this4 = this; - var handle = null; - if (animation.__isInteraction) { - handle = _$$_REQUIRE(_dependencyMap[8], "../../Interaction/InteractionManager").createInteractionHandle(); - } - var previousAnimation = this._animation; - this._animation && this._animation.stop(); - this._animation = animation; - animation.start(this._value, function (value) { - _this4._updateValue(value, true); - }, function (result) { - _this4._animation = null; - if (handle !== null) { - _$$_REQUIRE(_dependencyMap[8], "../../Interaction/InteractionManager").clearInteractionHandle(handle); + var child = fiber.child; + if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitBeforeMutationEffects_complete(); } - callback && callback(result); - }, previousAnimation, this); - } - - }, { - key: "stopTracking", - value: - function stopTracking() { - this._tracking && this._tracking.__detach(); - this._tracking = null; - } - - }, { - key: "track", - value: - function track(tracking) { - this.stopTracking(); - this._tracking = tracking; - this._tracking && this._tracking.update(); - } - }, { - key: "_updateValue", - value: function _updateValue(value, flush) { - if (value === undefined) { - throw new Error('AnimatedValue: Attempting to set value to undefined'); - } - this._value = value; - if (flush) { - _flush(this); } - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValue.prototype), "__callListeners", this).call(this, this.__getValue()); } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'value', - value: this._value, - offset: this._offset - }; + function commitBeforeMutationEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + setCurrentFiber(fiber); + try { + commitBeforeMutationEffectsOnFiber(fiber); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } } - }]); - return AnimatedValue; - }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); - module.exports = AnimatedValue; -},272,[46,47,273,50,12,13,115,276,279,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValue.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeAnimatedModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeAnimatedModule")); - var _NativeAnimatedTurboModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeAnimatedTurboModule")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../Utilities/Platform")); - var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../ReactNative/ReactNativeFeatureFlags")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); - var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTDeviceEventEmitter")); - - var NativeAnimatedModule = _Platform.default.OS === 'ios' && global.RN$Bridgeless === true ? _NativeAnimatedTurboModule.default : _NativeAnimatedModule.default; - var __nativeAnimatedNodeTagCount = 1; - var __nativeAnimationIdCount = 1; + function commitBeforeMutationEffectsOnFiber(finishedWork) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; + if ((flags & Snapshot) !== NoFlags) { + setCurrentFiber(finishedWork); + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + break; + } + case ClassComponent: + { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + var instance = finishedWork.stateNode; // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. - var nativeEventEmitter; - var waitingForQueuedOperations = new Set(); - var queueOperations = false; - var queue = []; - var singleOpQueue = []; - var useSingleOpBatching = _Platform.default.OS === 'android' && !!(NativeAnimatedModule != null && NativeAnimatedModule.queueAndExecuteBatchedOperations) && _ReactNativeFeatureFlags.default.animatedShouldUseSingleOp(); - var flushQueueTimeout = null; - var eventListenerGetValueCallbacks = {}; - var eventListenerAnimationFinishedCallbacks = {}; - var globalEventEmitterGetValueListener = null; - var globalEventEmitterAnimationFinishedListener = null; - var nativeOps = useSingleOpBatching ? function () { - var apis = ['createAnimatedNode', - 'updateAnimatedNodeConfig', - 'getValue', - 'startListeningToAnimatedNodeValue', - 'stopListeningToAnimatedNodeValue', - 'connectAnimatedNodes', - 'disconnectAnimatedNodes', - 'startAnimatingNode', - 'stopAnimation', - 'setAnimatedNodeValue', - 'setAnimatedNodeOffset', - 'flattenAnimatedNodeOffset', - 'extractAnimatedNodeOffset', - 'connectAnimatedNodeToView', - 'disconnectAnimatedNodeFromView', - 'restoreDefaultValues', - 'dropAnimatedNode', - 'addAnimatedEventToView', - 'removeAnimatedEventFromView', - 'addListener', - 'removeListener']; - - return apis.reduce(function (acc, functionName, i) { - acc[functionName] = i + 1; - return acc; - }, {}); - }() : NativeAnimatedModule; - - var API = { - getValue: function getValue(tag, saveValueCallback) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - if (useSingleOpBatching) { - if (saveValueCallback) { - eventListenerGetValueCallbacks[tag] = saveValueCallback; + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "getSnapshotBeforeUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + } + case HostRoot: + { + { + var root = finishedWork.stateNode; + clearContainer(root.containerInfo); + } + break; + } + case HostComponent: + case HostText: + case HostPortal: + case IncompleteClassComponent: + // Nothing to do for these component types + break; + default: + { + throw new 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."); + } + } + resetCurrentFiber(); } - API.queueOperation(nativeOps.getValue, tag); - } else { - API.queueOperation(nativeOps.getValue, tag, saveValueCallback); - } - }, - setWaitingForIdentifier: function setWaitingForIdentifier(id) { - waitingForQueuedOperations.add(id); - queueOperations = true; - if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush() && flushQueueTimeout) { - clearTimeout(flushQueueTimeout); - } - }, - unsetWaitingForIdentifier: function unsetWaitingForIdentifier(id) { - waitingForQueuedOperations.delete(id); - if (waitingForQueuedOperations.size === 0) { - queueOperations = false; - API.disableQueue(); - } - }, - disableQueue: function disableQueue() { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - if (_ReactNativeFeatureFlags.default.animatedShouldDebounceQueueFlush()) { - var prevTimeout = flushQueueTimeout; - clearImmediate(prevTimeout); - flushQueueTimeout = setImmediate(API.flushQueue); - } else { - API.flushQueue(); - } - }, - flushQueue: function flushQueue() { - (0, _invariant.default)(NativeAnimatedModule, 'Native animated module is not available'); - flushQueueTimeout = null; - - if (useSingleOpBatching && singleOpQueue.length === 0) { - return; } - if (!useSingleOpBatching && queue.length === 0) { - return; - } - if (useSingleOpBatching) { - if (!globalEventEmitterGetValueListener || !globalEventEmitterAnimationFinishedListener) { - setupGlobalEventEmitterListeners(); - } - NativeAnimatedModule.queueAndExecuteBatchedOperations == null ? void 0 : NativeAnimatedModule.queueAndExecuteBatchedOperations(singleOpQueue); - singleOpQueue.length = 0; - } else { - _Platform.default.OS === 'android' && (NativeAnimatedModule.startOperationBatch == null ? void 0 : NativeAnimatedModule.startOperationBatch()); - for (var q = 0, l = queue.length; q < l; q++) { - queue[q](); + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + // Unmount + var destroy = effect.destroy; + effect.destroy = undefined; + if (destroy !== undefined) { + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + } + } + effect = effect.next; + } while (effect !== firstEffect); } - queue.length = 0; - _Platform.default.OS === 'android' && (NativeAnimatedModule.finishOperationBatch == null ? void 0 : NativeAnimatedModule.finishOperationBatch()); - } - }, - queueOperation: function queueOperation(fn) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - if (useSingleOpBatching) { - singleOpQueue.push.apply(singleOpQueue, [fn].concat(args)); - return; - } - - if (queueOperations || queue.length !== 0) { - queue.push(function () { - return fn.apply(void 0, args); - }); - } else { - fn.apply(void 0, args); - } - }, - createAnimatedNode: function createAnimatedNode(tag, config) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.createAnimatedNode, tag, config); - }, - updateAnimatedNodeConfig: function updateAnimatedNodeConfig(tag, config) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - if (nativeOps.updateAnimatedNodeConfig) { - API.queueOperation(nativeOps.updateAnimatedNodeConfig, tag, config); } - }, - startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.startListeningToAnimatedNodeValue, tag); - }, - stopListeningToAnimatedNodeValue: function stopListeningToAnimatedNodeValue(tag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.stopListeningToAnimatedNodeValue, tag); - }, - connectAnimatedNodes: function connectAnimatedNodes(parentTag, childTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.connectAnimatedNodes, parentTag, childTag); - }, - disconnectAnimatedNodes: function disconnectAnimatedNodes(parentTag, childTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.disconnectAnimatedNodes, parentTag, childTag); - }, - startAnimatingNode: function startAnimatingNode(animationId, nodeTag, config, endCallback) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - if (useSingleOpBatching) { - if (endCallback) { - eventListenerAnimationFinishedCallbacks[animationId] = endCallback; + function commitHookEffectListMount(flags, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var create = effect.create; + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + effect.destroy = create(); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + { + var destroy = effect.destroy; + if (destroy !== undefined && typeof destroy !== "function") { + var hookName = void 0; + if ((effect.tag & Layout) !== NoFlags) { + hookName = "useLayoutEffect"; + } else if ((effect.tag & Insertion) !== NoFlags) { + hookName = "useInsertionEffect"; + } else { + hookName = "useEffect"; + } + var addendum = void 0; + if (destroy === null) { + addendum = " You returned null. If your effect does not require clean " + "up, return undefined (or nothing)."; + } else if (typeof destroy.then === "function") { + addendum = "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. " + "Instead, write the async function inside your effect " + "and call it immediately:\n\n" + hookName + "(() => {\n" + " async function fetchData() {\n" + " // You can await here\n" + " const response = await MyAPI.getData(someId);\n" + " // ...\n" + " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + } else { + addendum = " You returned: " + destroy; + } + error("%s must not return anything besides a function, " + "which is used for clean-up.%s", hookName, addendum); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); } - API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config); - } else { - API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config, endCallback); - } - }, - stopAnimation: function stopAnimation(animationId) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.stopAnimation, animationId); - }, - setAnimatedNodeValue: function setAnimatedNodeValue(nodeTag, value) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.setAnimatedNodeValue, nodeTag, value); - }, - setAnimatedNodeOffset: function setAnimatedNodeOffset(nodeTag, offset) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.setAnimatedNodeOffset, nodeTag, offset); - }, - flattenAnimatedNodeOffset: function flattenAnimatedNodeOffset(nodeTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.flattenAnimatedNodeOffset, nodeTag); - }, - extractAnimatedNodeOffset: function extractAnimatedNodeOffset(nodeTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.extractAnimatedNodeOffset, nodeTag); - }, - connectAnimatedNodeToView: function connectAnimatedNodeToView(nodeTag, viewTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.connectAnimatedNodeToView, nodeTag, viewTag); - }, - disconnectAnimatedNodeFromView: function disconnectAnimatedNodeFromView(nodeTag, viewTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.disconnectAnimatedNodeFromView, nodeTag, viewTag); - }, - restoreDefaultValues: function restoreDefaultValues(nodeTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - if (nativeOps.restoreDefaultValues != null) { - API.queueOperation(nativeOps.restoreDefaultValues, nodeTag); - } - }, - dropAnimatedNode: function dropAnimatedNode(tag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.dropAnimatedNode, tag); - }, - addAnimatedEventToView: function addAnimatedEventToView(viewTag, eventName, eventMapping) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.addAnimatedEventToView, viewTag, eventName, eventMapping); - }, - removeAnimatedEventFromView: function removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) { - (0, _invariant.default)(nativeOps, 'Native animated module is not available'); - API.queueOperation(nativeOps.removeAnimatedEventFromView, viewTag, eventName, animatedNodeTag); - } - }; - function setupGlobalEventEmitterListeners() { - globalEventEmitterGetValueListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleGetValue', function (params) { - var tag = params.tag; - var callback = eventListenerGetValueCallbacks[tag]; - if (!callback) { - return; - } - callback(params.value); - delete eventListenerGetValueCallbacks[tag]; - }); - globalEventEmitterAnimationFinishedListener = _RCTDeviceEventEmitter.default.addListener('onNativeAnimatedModuleAnimationFinished', function (params) { - var animationId = params.animationId; - var callback = eventListenerAnimationFinishedCallbacks[animationId]; - if (!callback) { - return; - } - callback(params); - delete eventListenerAnimationFinishedCallbacks[animationId]; - }); - } - - var SUPPORTED_COLOR_STYLES = { - backgroundColor: true, - borderBottomColor: true, - borderColor: true, - borderEndColor: true, - borderLeftColor: true, - borderRightColor: true, - borderStartColor: true, - borderTopColor: true, - color: true, - tintColor: true - }; - var SUPPORTED_STYLES = Object.assign({}, SUPPORTED_COLOR_STYLES, { - borderBottomEndRadius: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - borderBottomStartRadius: true, - borderRadius: true, - borderTopEndRadius: true, - borderTopLeftRadius: true, - borderTopRightRadius: true, - borderTopStartRadius: true, - elevation: true, - opacity: true, - transform: true, - zIndex: true, - shadowOpacity: true, - shadowRadius: true, - scaleX: true, - scaleY: true, - translateX: true, - translateY: true - }); - var SUPPORTED_TRANSFORMS = { - translateX: true, - translateY: true, - scale: true, - scaleX: true, - scaleY: true, - rotate: true, - rotateX: true, - rotateY: true, - rotateZ: true, - perspective: true - }; - var SUPPORTED_INTERPOLATION_PARAMS = { - inputRange: true, - outputRange: true, - extrapolate: true, - extrapolateRight: true, - extrapolateLeft: true - }; - function addWhitelistedStyleProp(prop) { - SUPPORTED_STYLES[prop] = true; - } - function addWhitelistedTransformProp(prop) { - SUPPORTED_TRANSFORMS[prop] = true; - } - function addWhitelistedInterpolationParam(param) { - SUPPORTED_INTERPOLATION_PARAMS[param] = true; - } - function isSupportedColorStyleProp(prop) { - return SUPPORTED_COLOR_STYLES.hasOwnProperty(prop); - } - function isSupportedStyleProp(prop) { - return SUPPORTED_STYLES.hasOwnProperty(prop); - } - function isSupportedTransformProp(prop) { - return SUPPORTED_TRANSFORMS.hasOwnProperty(prop); - } - function isSupportedInterpolationParam(param) { - return SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(param); - } - function validateTransform(configs) { - configs.forEach(function (config) { - if (!isSupportedTransformProp(config.property)) { - throw new Error("Property '" + config.property + "' is not supported by native animated module"); } - }); - } - function validateStyles(styles) { - for (var _key2 in styles) { - if (!isSupportedStyleProp(_key2)) { - throw new Error("Style property '" + _key2 + "' is not supported by native animated module"); - } - } - } - function validateInterpolation(config) { - for (var _key3 in config) { - if (!isSupportedInterpolationParam(_key3)) { - throw new Error("Interpolation property '" + _key3 + "' is not supported by native animated module"); - } - } - } - function generateNewNodeTag() { - return __nativeAnimatedNodeTagCount++; - } - function generateNewAnimationId() { - return __nativeAnimationIdCount++; - } - function assertNativeAnimatedModule() { - (0, _invariant.default)(NativeAnimatedModule, 'Native animated module is not available'); - } - var _warnedMissingNativeAnimated = false; - function shouldUseNativeDriver(config) { - if (config.useNativeDriver == null) { - console.warn('Animated: `useNativeDriver` was not specified. This is a required ' + 'option and must be explicitly set to `true` or `false`'); - } - if (config.useNativeDriver === true && !NativeAnimatedModule) { - if (!_warnedMissingNativeAnimated) { - console.warn('Animated: `useNativeDriver` is not supported because the native ' + 'animated module is missing. Falling back to JS-based animation. To ' + 'resolve this, add `RCTAnimation` module to this app, or remove ' + '`useNativeDriver`. ' + 'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md'); - _warnedMissingNativeAnimated = true; - } - return false; - } - return config.useNativeDriver || false; - } - function transformDataType(value) { - if (typeof value !== 'string') { - return value; - } - if (/deg$/.test(value)) { - var degrees = parseFloat(value) || 0; - var radians = degrees * Math.PI / 180.0; - return radians; - } else { - return value; - } - } - module.exports = { - API: API, - isSupportedColorStyleProp: isSupportedColorStyleProp, - isSupportedStyleProp: isSupportedStyleProp, - isSupportedTransformProp: isSupportedTransformProp, - isSupportedInterpolationParam: isSupportedInterpolationParam, - addWhitelistedStyleProp: addWhitelistedStyleProp, - addWhitelistedTransformProp: addWhitelistedTransformProp, - addWhitelistedInterpolationParam: addWhitelistedInterpolationParam, - validateStyles: validateStyles, - validateTransform: validateTransform, - validateInterpolation: validateInterpolation, - generateNewNodeTag: generateNewNodeTag, - generateNewAnimationId: generateNewAnimationId, - assertNativeAnimatedModule: assertNativeAnimatedModule, - shouldUseNativeDriver: shouldUseNativeDriver, - transformDataType: transformDataType, - get nativeEventEmitter() { - if (!nativeEventEmitter) { - nativeEventEmitter = new _NativeEventEmitter.default( - _Platform.default.OS !== 'ios' ? null : NativeAnimatedModule); - } - return nativeEventEmitter; - } - }; -},273,[3,274,275,134,14,263,17,4],"node_modules/react-native/Libraries/Animated/NativeAnimatedHelper.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('NativeAnimatedModule'); - exports.default = _default; -},274,[16],"node_modules/react-native/Libraries/Animated/NativeAnimatedModule.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('NativeAnimatedTurboModule'); - exports.default = _default; -},275,[16],"node_modules/react-native/Libraries/Animated/NativeAnimatedTurboModule.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var linear = function linear(t) { - return t; - }; + function commitPassiveEffectDurations(finishedRoot, finishedWork) { + { + // Only Profilers with work in their subtree will have an Update effect scheduled. + if ((finishedWork.flags & Update) !== NoFlags) { + switch (finishedWork.tag) { + case Profiler: + { + var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase. + // It does not get reset until the start of the next commit phase. - function createInterpolation(config) { - if (config.outputRange && typeof config.outputRange[0] === 'string') { - return createInterpolationFromStringOutputRange(config); - } - var outputRange = config.outputRange; - var inputRange = config.inputRange; - if (__DEV__) { - checkInfiniteRange('outputRange', outputRange); - checkInfiniteRange('inputRange', inputRange); - checkValidInputRange(inputRange); - _$$_REQUIRE(_dependencyMap[2], "invariant")(inputRange.length === outputRange.length, 'inputRange (' + inputRange.length + ') and outputRange (' + outputRange.length + ') must have the same length'); - } - var easing = config.easing || linear; - var extrapolateLeft = 'extend'; - if (config.extrapolateLeft !== undefined) { - extrapolateLeft = config.extrapolateLeft; - } else if (config.extrapolate !== undefined) { - extrapolateLeft = config.extrapolate; - } - var extrapolateRight = 'extend'; - if (config.extrapolateRight !== undefined) { - extrapolateRight = config.extrapolateRight; - } else if (config.extrapolate !== undefined) { - extrapolateRight = config.extrapolate; - } - return function (input) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof input === 'number', 'Cannot interpolation an input which is not a number'); - var range = findRange(input, inputRange); - return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight); - }; - } - function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) { - var result = input; + var commitTime = getCommitTime(); + var phase = finishedWork.alternate === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onPostCommit === "function") { + onPostCommit(id, phase, passiveEffectDuration, commitTime); + } // Bubble times to the next nearest ancestor Profiler. + // After we process that Profiler, we'll bubble further up. - if (result < inputMin) { - if (extrapolateLeft === 'identity') { - return result; - } else if (extrapolateLeft === 'clamp') { - result = inputMin; - } else if (extrapolateLeft === 'extend') { - } - } - if (result > inputMax) { - if (extrapolateRight === 'identity') { - return result; - } else if (extrapolateRight === 'clamp') { - result = inputMax; - } else if (extrapolateRight === 'extend') { - } - } - if (outputMin === outputMax) { - return outputMin; - } - if (inputMin === inputMax) { - if (input <= inputMin) { - return outputMin; + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.passiveEffectDuration += passiveEffectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.passiveEffectDuration += passiveEffectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + break; + } + } + } + } } - return outputMax; - } + function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) { + if ((finishedWork.flags & LayoutMask) !== NoFlags) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + { + // At this point layout effects have already been destroyed (during mutation phase). + // This is done to prevent sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } + } + break; + } + case ClassComponent: + { + var instance = finishedWork.stateNode; + if (finishedWork.flags & Update) { + { + if (current === null) { + // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidMount. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidMount(); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidMount(); + } + } else { + var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); + var prevState = current.memoizedState; // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. - if (inputMin === -Infinity) { - result = -result; - } else if (inputMax === Infinity) { - result = result - inputMin; - } else { - result = (result - inputMin) / (inputMax - inputMin); - } + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "componentDidUpdate. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } + } + } + } // TODO: I think this is now always non-null by the time it reaches the + // commit phase. Consider removing the type check. - result = easing(result); + var updateQueue = finishedWork.updateQueue; + if (updateQueue !== null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.props`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before " + "processing the update queue. " + "This might either be because of a bug in React, or because " + "a component reassigns its own `this.state`. " + "Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. - if (outputMin === -Infinity) { - result = -result; - } else if (outputMax === Infinity) { - result = result + outputMin; - } else { - result = result * (outputMax - outputMin) + outputMin; - } - return result; - } - function colorToRgba(input) { - var normalizedColor = _$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/normalizeColor")(input); - if (normalizedColor === null || typeof normalizedColor !== 'number') { - return input; - } - normalizedColor = normalizedColor || 0; - var r = (normalizedColor & 0xff000000) >>> 24; - var g = (normalizedColor & 0x00ff0000) >>> 16; - var b = (normalizedColor & 0x0000ff00) >>> 8; - var a = (normalizedColor & 0x000000ff) / 255; - return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")"; - } - var stringShapeRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g; + commitUpdateQueue(finishedWork, updateQueue, instance); + } + break; + } + case HostRoot: + { + // TODO: I think this is now always non-null by the time it reaches the + // commit phase. Consider removing the type check. + var _updateQueue = finishedWork.updateQueue; + if (_updateQueue !== null) { + var _instance = null; + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + commitUpdateQueue(finishedWork, _updateQueue, _instance); + } + break; + } + case HostComponent: + { + var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted + // (eg DOM renderer may schedule auto-focus for inputs and form controls). + // These effects should only be committed when components are first mounted, + // aka when there is no current/alternate. - function createInterpolationFromStringOutputRange(config) { - var outputRange = config.outputRange; - _$$_REQUIRE(_dependencyMap[2], "invariant")(outputRange.length >= 2, 'Bad output range'); - outputRange = outputRange.map(colorToRgba); - checkPattern(outputRange); + if (current === null && finishedWork.flags & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + } + break; + } + case HostText: + { + // We have no life-cycles associated with text. + break; + } + case HostPortal: + { + // We have no life-cycles associated with portals. + break; + } + case Profiler: + { + { + var _finishedWork$memoize2 = finishedWork.memoizedProps, + onCommit = _finishedWork$memoize2.onCommit, + onRender = _finishedWork$memoize2.onRender; + var effectDuration = finishedWork.stateNode.effectDuration; + var commitTime = getCommitTime(); + var phase = current === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onRender === "function") { + onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime); + } + { + if (typeof onCommit === "function") { + onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime); + } // Schedule a passive effect for this Profiler to call onPostCommit hooks. + // This effect should be scheduled even if there is no onPostCommit callback for this Profiler, + // because the effect is also where times bubble to parent Profilers. - var outputRanges = outputRange[0].match(stringShapeRegex).map(function () { - return []; - }); - outputRange.forEach(function (value) { - value.match(stringShapeRegex).forEach(function (number, i) { - outputRanges[i].push(+number); - }); - }); - var interpolations = outputRange[0].match(stringShapeRegex) - .map(function (value, i) { - return createInterpolation(Object.assign({}, config, { - outputRange: outputRanges[i] - })); - }); + enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor. + // Do not reset these values until the next render so DevTools has a chance to read them first. - var shouldRound = isRgbOrRgba(outputRange[0]); - return function (input) { - var i = 0; - return outputRange[0].replace(stringShapeRegex, function () { - var val = +interpolations[i++](input); - if (shouldRound) { - val = i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000; + var parentFiber = finishedWork.return; + outer: while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += effectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += effectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + } + } + break; + } + case SuspenseComponent: + { + break; + } + case SuspenseListComponent: + case IncompleteClassComponent: + case ScopeComponent: + case OffscreenComponent: + case LegacyHiddenComponent: + case TracingMarkerComponent: + { + break; + } + default: + throw new 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 (finishedWork.flags & Ref) { + commitAttachRef(finishedWork); + } + } } - return String(val); - }); - }; - } - function isRgbOrRgba(range) { - return typeof range === 'string' && range.startsWith('rgb'); - } - function checkPattern(arr) { - var pattern = arr[0].replace(stringShapeRegex, ''); - for (var i = 1; i < arr.length; ++i) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(pattern === arr[i].replace(stringShapeRegex, ''), 'invalid pattern ' + arr[0] + ' and ' + arr[i]); - } - } - function findRange(input, inputRange) { - var i; - for (i = 1; i < inputRange.length - 1; ++i) { - if (inputRange[i] >= input) { - break; - } - } - return i - 1; - } - function checkValidInputRange(arr) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length >= 2, 'inputRange must have at least 2 elements'); - var message = 'inputRange must be monotonically non-decreasing ' + String(arr); - for (var i = 1; i < arr.length; ++i) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(arr[i] >= arr[i - 1], message); - } - } - function checkInfiniteRange(name, arr) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length >= 2, name + ' must have at least 2 elements'); - _$$_REQUIRE(_dependencyMap[2], "invariant")(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, - name + 'cannot be ]-infinity;+infinity[ ' + arr); - } - var AnimatedInterpolation = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")(AnimatedInterpolation, _AnimatedWithChildren); - var _super = _createSuper(AnimatedInterpolation); - - function AnimatedInterpolation(parent, config) { - var _this; - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/classCallCheck")(this, AnimatedInterpolation); - _this = _super.call(this); - _this._parent = parent; - _this._config = config; - _this._interpolation = createInterpolation(config); - return _this; - } - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedInterpolation, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._parent.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedInterpolation.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - var parentValue = this._parent.__getValue(); - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.'); - return this._interpolation(parentValue); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._parent.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._parent.__removeChild(this); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedInterpolation.prototype), "__detach", this).call(this); - } - }, { - key: "__transformDataType", - value: function __transformDataType(range) { - return range.map(_$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").transformDataType); } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - if (__DEV__) { - _$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").validateInterpolation(this._config); + function hideOrUnhideAllChildren(finishedWork, isHidden) { + // Only hide or unhide the top-most host nodes. + var hostSubtreeRoot = null; + { + // We only have the top Fiber that was inserted but we need to recurse down its + // children to find all the terminal nodes. + var node = finishedWork; + while (true) { + if (node.tag === HostComponent) { + if (hostSubtreeRoot === null) { + hostSubtreeRoot = node; + try { + var instance = node.stateNode; + if (isHidden) { + hideInstance(instance); + } else { + unhideInstance(node.stateNode, node.memoizedProps); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } else if (node.tag === HostText) { + if (hostSubtreeRoot === null) { + try { + var _instance3 = node.stateNode; + if (isHidden) { + hideTextInstance(_instance3); + } else { + unhideTextInstance(_instance3, node.memoizedProps); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ;else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === finishedWork) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node = node.return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node.sibling.return = node.return; + node = node.sibling; + } } - return { - inputRange: this._config.inputRange, - outputRange: this.__transformDataType(this._config.outputRange), - extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', - extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || 'extend', - type: 'interpolation' - }; } - }]); - return AnimatedInterpolation; - }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); - AnimatedInterpolation.__createInterpolation = createInterpolation; - module.exports = AnimatedInterpolation; -},276,[46,47,17,160,50,12,13,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse; + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + default: + instanceToUse = instance; + } // Moved outside to ensure DCE works with this flag - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedWithChildren = function (_AnimatedNode) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedWithChildren, _AnimatedNode); - var _super = _createSuper(AnimatedWithChildren); - function AnimatedWithChildren() { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedWithChildren); - _this = _super.call(this); - _this._children = []; - return _this; - } - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedWithChildren, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - if (!this.__isNative) { - this.__isNative = true; - for (var child of this._children) { - child.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + if (typeof ref === "function") { + var retVal; + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(instanceToUse); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + retVal = ref(instanceToUse); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. " + "A callback ref should not return a function.", getComponentNameFromFiber(finishedWork)); + } + } + } else { + { + if (!ref.hasOwnProperty("current")) { + error("Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)); + } + } + ref.current = instanceToUse; } } - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedWithChildren.prototype), "__makeNative", this).call(this, platformConfig); } - }, { - key: "__addChild", - value: function __addChild(child) { - if (this._children.length === 0) { - this.__attach(); - } - this._children.push(child); - if (this.__isNative) { - child.__makeNative(this.__getPlatformConfig()); - _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + function detachFiberMutation(fiber) { + // Cut off the return pointer to disconnect it from the tree. + // This enables us to detect and warn against state updates on an unmounted component. + // It also prevents events from bubbling from within disconnected components. + // + // Ideally, we should also clear the child pointer of the parent alternate to let this + // get GC:ed but we don't know which for sure which parent is the current + // one so we'll settle for GC:ing the subtree of this child. + // This child itself will be GC:ed when the parent updates the next time. + // + // Note that we can't clear child or sibling pointers yet. + // They're needed for passive effects and for findDOMNode. + // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects). + // + // Don't reset the alternate yet, either. We need that so we can detach the + // alternate's fields in the passive phase. Clearing the return pointer is + // sufficient for findDOMNode semantics. + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.return = null; } + fiber.return = null; } - }, { - key: "__removeChild", - value: function __removeChild(child) { - var index = this._children.indexOf(child); - if (index === -1) { - console.warn("Trying to remove a child that doesn't exist"); - return; - } - if (this.__isNative && child.__isNative) { - _$$_REQUIRE(_dependencyMap[5], "../NativeAnimatedHelper").API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + fiber.alternate = null; + detachFiberAfterEffects(alternate); + } // Note: Defensively using negation instead of < in case + // `deletedTreeCleanUpLevel` is undefined. + + { + // Clear cyclical Fiber fields. This level alone is designed to roughly + // approximate the planned Fiber refactor. In that world, `setState` will be + // bound to a special "instance" object instead of a Fiber. The Instance + // object will not have any of these fields. It will only be connected to + // the fiber tree via a single link at the root. So if this level alone is + // sufficient to fix memory issues, that bodes well for our plans. + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host + // tree, which has its own pointers to children, parents, and siblings. + // The other host nodes also point back to fibers, so we should detach that + // one, too. + + if (fiber.tag === HostComponent) { + var hostInstance = fiber.stateNode; + } + fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We + // already disconnect the `return` pointer at the root of the deleted + // subtree (in `detachFiberMutation`). Besides, `return` by itself is not + // cyclical โ€” it's only cyclical when combined with `child`, `sibling`, and + // `alternate`. But we'll clear it in the next level anyway, just in case. + + { + fiber._debugOwner = null; + } + { + // Theoretically, nothing in here should be necessary, because we already + // disconnected the fiber from the tree. So even if something leaks this + // particular fiber, it won't leak anything else + // + // The purpose of this branch is to be super aggressive so we can measure + // if there's any difference in memory impact. If there is, that could + // indicate a React leak we don't know about. + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead. + + fiber.updateQueue = null; + } } - this._children.splice(index, 1); - if (this._children.length === 0) { - this.__detach(); + } + function getHostParentFiber(fiber) { + var parent = fiber.return; + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + parent = parent.return; } + throw new Error("Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); } - }, { - key: "__getChildren", - value: function __getChildren() { - return this._children; + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; } - }, { - key: "__callListeners", - value: function __callListeners(value) { - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedWithChildren.prototype), "__callListeners", this).call(this, value); - if (!this.__isNative) { - for (var child of this._children) { - if (child.__getValue) { - child.__callListeners(child.__getValue()); + function getHostSibling(fiber) { + // We're going to search forward into the tree until we find a sibling host + // node. Unfortunately, if multiple insertions are done in a row we have to + // search past them. This leads to exponential search for the next sibling. + // TODO: Find a more efficient way to do this. + var node = fiber; + siblings: while (true) { + // If we didn't find anything, let's try the next sibling. + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + // If we pop out of the root or hit the parent the fiber we are the + // last sibling. + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) { + // If it is not host node and, we might have a host node inside it. + // Try to search down until we find one. + if (node.flags & Placement) { + // If we don't have a child, try the siblings instead. + continue siblings; + } // If we don't have a child, try the siblings instead. + // We also skip portals because they are not part of this host tree. + + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; } + } // Check if this host node is stable or about to be placed. + + if (!(node.flags & Placement)) { + // Found it! + return node.stateNode; } } } - }]); - return AnimatedWithChildren; - }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")); - module.exports = AnimatedWithChildren; -},277,[46,47,50,12,13,273,115,278],"node_modules/react-native/Libraries/Animated/nodes/AnimatedWithChildren.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function commitPlacement(finishedWork) { + var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together. - 'use strict'; + switch (parentFiber.tag) { + case HostComponent: + { + var parent = parentFiber.stateNode; + if (parentFiber.flags & ContentReset) { + parentFiber.flags &= ~ContentReset; + } + var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its + // children to find all the terminal nodes. - var _uniqueId = 1; + insertOrAppendPlacementNode(finishedWork, before, parent); + break; + } + case HostRoot: + case HostPortal: + { + var _parent = parentFiber.stateNode.containerInfo; + var _before = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent); + break; + } + // eslint-disable-next-line-no-fallthrough - var AnimatedNode = function () { - function AnimatedNode() { - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, AnimatedNode); - this._listeners = {}; - } - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(AnimatedNode, [{ - key: "__attach", - value: function __attach() {} - }, { - key: "__detach", - value: function __detach() { - if (this.__isNative && this.__nativeTag != null) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.dropAnimatedNode(this.__nativeTag); - this.__nativeTag = undefined; + default: + throw new Error("Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); } } - }, { - key: "__getValue", - value: function __getValue() {} - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this.__getValue(); - } - }, { - key: "__addChild", - value: function __addChild(child) {} - }, { - key: "__removeChild", - value: function __removeChild(child) {} - }, { - key: "__getChildren", - value: function __getChildren() { - return []; + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertInContainerBefore(parent); + } else { + appendChildToContainer(parent, stateNode); + } + } else if (tag === HostPortal) ;else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNodeIntoContainer(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNodeIntoContainer(sibling, before, parent); + sibling = sibling.sibling; + } + } + } } + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertBefore(parent, stateNode, before); + } else { + appendChild(parent, stateNode); + } + } else if (tag === HostPortal) ;else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNode(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNode(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } // These are tracked on the stack as we recursively traverse a + // deleted subtree. + // TODO: Update these during the whole mutation phase, not just during + // a deletion. - }, { - key: "__makeNative", - value: function __makeNative(platformConfig) { - if (!this.__isNative) { - throw new Error('This node cannot be made a "native" animated node'); + var hostParent = null; + var hostParentIsContainer = false; + function commitDeletionEffects(root, returnFiber, deletedFiber) { + { + // We only have the top Fiber that was deleted but we need to recurse down its + // children to find all the terminal nodes. + // Recursively delete all host nodes from the parent, detach refs, clean + // up mounted layout effects, and call componentWillUnmount. + // We only need to remove the topmost host child in each branch. But then we + // still need to keep traversing to unmount effects, refs, and cWU. TODO: We + // could split this into two separate traversals functions, where the second + // one doesn't include any removeChild logic. This is maybe the same + // function as "disappearLayoutEffects" (or whatever that turns into after + // the layout phase is refactored to use recursion). + // Before starting, find the nearest host parent on the stack so we know + // which instance/container to remove the children from. + // TODO: Instead of searching up the fiber return path on every deletion, we + // can track the nearest host component on the JS stack as we traverse the + // tree during the commit phase. This would make insertions faster, too. + var parent = returnFiber; + findParent: while (parent !== null) { + switch (parent.tag) { + case HostComponent: + { + hostParent = parent.stateNode; + hostParentIsContainer = false; + break findParent; + } + case HostRoot: + { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + case HostPortal: + { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + } + parent = parent.return; + } + if (hostParent === null) { + throw new Error("Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); + } + commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); + hostParent = null; + hostParentIsContainer = false; } - this._platformConfig = platformConfig; - if (this.hasListeners()) { - this._startListeningToNativeValueUpdates(); + detachFiberMutation(deletedFiber); + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + // TODO: Use a static flag to skip trees that don't have unmount effects + var child = parent.child; + while (child !== null) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); + child = child.sibling; } } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse + // into their subtree. There are simpler cases in the inner switch + // that don't modify the stack. - }, { - key: "addListener", - value: - function addListener(callback) { - var id = String(_uniqueId++); - this._listeners[id] = callback; - if (this.__isNative) { - this._startListeningToNativeValueUpdates(); + switch (deletedFiber.tag) { + case HostComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + } // Intentional fallthrough to next branch + } + // eslint-disable-next-line-no-fallthrough + + case HostText: + { + // We only need to remove the nearest host child. Set the host parent + // to `null` on the stack to indicate that nested children don't + // need to be removed. + { + var prevHostParent = hostParent; + var prevHostParentIsContainer = hostParentIsContainer; + hostParent = null; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + if (hostParent !== null) { + // Now that all the child effects have unmounted, we can remove the + // node from the tree. + if (hostParentIsContainer) { + removeChildFromContainer(hostParent, deletedFiber.stateNode); + } else { + removeChild(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case DehydratedFragment: + { + // Delete the dehydrated suspense boundary and all of its content. + + { + if (hostParent !== null) { + if (hostParentIsContainer) { + clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode); + } else { + clearSuspenseBoundary(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case HostPortal: + { + { + // When we go into a portal, it becomes the parent to remove from. + var _prevHostParent = hostParent; + var _prevHostParentIsContainer = hostParentIsContainer; + hostParent = deletedFiber.stateNode.containerInfo; + hostParentIsContainer = true; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = _prevHostParent; + hostParentIsContainer = _prevHostParentIsContainer; + } + return; + } + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + { + var updateQueue = deletedFiber.updateQueue; + if (updateQueue !== null) { + var lastEffect = updateQueue.lastEffect; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + var _effect = effect, + destroy = _effect.destroy, + tag = _effect.tag; + if (destroy !== undefined) { + if ((tag & Insertion) !== NoFlags$1) { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } else if ((tag & Layout) !== NoFlags$1) { + if (deletedFiber.mode & ProfileMode) { + startLayoutEffectTimer(); + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + recordLayoutEffectDuration(deletedFiber); + } else { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ClassComponent: + { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + var instance = deletedFiber.stateNode; + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance); + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ScopeComponent: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case OffscreenComponent: + { + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + break; + } + default: + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } } - return id; } + function commitSuspenseCallback(finishedWork) { + // TODO: Move this to passive phase + var newState = finishedWork.memoizedState; + } + function attachSuspenseRetryListeners(finishedWork) { + // If this boundary just timed out, then it will have a set of wakeables. + // For each wakeable, attach a listener so that when it resolves, React + // attempts to re-render the boundary in the primary (pre-timeout) state. + var wakeables = finishedWork.updateQueue; + if (wakeables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet(); + } + wakeables.forEach(function (wakeable) { + // Memoize using the boundary fiber to prevent redundant listeners. + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + if (!retryCache.has(wakeable)) { + retryCache.add(wakeable); + { + if (isDevToolsPresent) { + if (inProgressLanes !== null && inProgressRoot !== null) { + // If we have pending work still, associate the original updaters with it. + restorePendingUpdaters(inProgressRoot, inProgressLanes); + } else { + throw Error("Expected finished root and lanes to be set. This is a bug in React."); + } + } + } + wakeable.then(retry, retry); + } + }); + } + } // This function detects when a Suspense boundary goes from visible to hidden. + function commitMutationEffects(root, finishedWork, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + setCurrentFiber(finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + setCurrentFiber(finishedWork); + inProgressLanes = null; + inProgressRoot = null; + } + function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { + // Deletions effects can be scheduled on any fiber type. They need to happen + // before the children effects hae fired. + var deletions = parentFiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffects(root, parentFiber, childToDelete); + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + } + var prevDebugFiber = getCurrentFiber(); + if (parentFiber.subtreeFlags & MutationMask) { + var child = parentFiber.child; + while (child !== null) { + setCurrentFiber(child); + commitMutationEffectsOnFiber(child, root); + child = child.sibling; + } + } + setCurrentFiber(prevDebugFiber); + } + function commitMutationEffectsOnFiber(finishedWork, root, lanes) { + var current = finishedWork.alternate; + var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber, + // because the fiber tag is more specific. An exception is any flag related + // to reconcilation, because those can be set on all fiber types. - }, { - key: "removeListener", - value: - function removeListener(id) { - delete this._listeners[id]; - if (this.__isNative && !this.hasListeners()) { - this._stopListeningForNativeValueUpdates(); + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + try { + commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return); + commitHookEffectListMount(Insertion | HasEffect, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } // Layout effects are destroyed during the mutation phase so that all + // destroy functions for all fibers are called before any create functions. + // This prevents sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. + + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + recordLayoutEffectDuration(finishedWork); + } else { + try { + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case ClassComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + return; + } + case HostComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current !== null) { + safelyDetachRef(current, current.return); + } + } + { + // TODO: ContentReset gets cleared by the children during the commit + // phase. This is a refactor hazard because it means we must read + // flags the flags after `commitReconciliationEffects` has already run; + // the order matters. We should refactor so that ContentReset does not + // rely on mutating the flag during commit. Like by setting a flag + // during the render phase instead. + if (finishedWork.flags & ContentReset) { + var instance = finishedWork.stateNode; + try { + resetTextContent(instance); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + if (flags & Update) { + var _instance4 = finishedWork.stateNode; + if (_instance4 != null) { + // Commit the work prepared earlier. + var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps + // as the newProps. The updatePayload will contain the real change in + // this case. + + var oldProps = current !== null ? current.memoizedProps : newProps; + var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components. + + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + if (updatePayload !== null) { + try { + commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + } + } + return; + } + case HostText: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + if (finishedWork.stateNode === null) { + throw new Error("This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); + } + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps + // as the newProps. The updatePayload will contain the real change in + // this case. + + var oldText = current !== null ? current.memoizedProps : newText; + try { + commitTextUpdate(textInstance, oldText, newText); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + } + } + return; + } + case HostRoot: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case HostPortal: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case SuspenseComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + var offscreenFiber = finishedWork.child; + if (offscreenFiber.flags & Visibility) { + var offscreenInstance = offscreenFiber.stateNode; + var newState = offscreenFiber.memoizedState; + var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can + // read it during an event + + offscreenInstance.isHidden = isHidden; + if (isHidden) { + var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; + if (!wasHidden) { + // TODO: Move to passive phase + markCommitTimeOfFallback(); + } + } + } + if (flags & Update) { + try { + commitSuspenseCallback(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case OffscreenComponent: + { + var _wasHidden = current !== null && current.memoizedState !== null; + { + recursivelyTraverseMutationEffects(root, finishedWork); + } + commitReconciliationEffects(finishedWork); + if (flags & Visibility) { + var _offscreenInstance = finishedWork.stateNode; + var _newState = finishedWork.memoizedState; + var _isHidden = _newState !== null; + var offscreenBoundary = finishedWork; // Track the current state on the Offscreen instance so we can + // read it during an event + + _offscreenInstance.isHidden = _isHidden; + { + // TODO: This needs to run whenever there's an insertion or update + // inside a hidden Offscreen tree. + hideOrUnhideAllChildren(offscreenBoundary, _isHidden); + } + } + return; + } + case SuspenseListComponent: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case ScopeComponent: + { + return; + } + default: + { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } } } + function commitReconciliationEffects(finishedWork) { + // Placement effects (insertions, reorders) can be scheduled on any fiber + // type. They needs to happen after the children effects have fired, but + // before the effects on this fiber have fired. + var flags = finishedWork.flags; + if (flags & Placement) { + try { + commitPlacement(finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } // Clear the "placement" from effect tag so that we know that this is + // inserted, before any life-cycles like componentDidMount gets called. + // TODO: findDOMNode doesn't rely on this any more but isMounted does + // and isMounted is deprecated anyway so we should be able to kill this. - }, { - key: "removeAllListeners", - value: - function removeAllListeners() { - this._listeners = {}; - if (this.__isNative) { - this._stopListeningForNativeValueUpdates(); + finishedWork.flags &= ~Placement; + } + if (flags & Hydrating) { + finishedWork.flags &= ~Hydrating; } } - }, { - key: "hasListeners", - value: function hasListeners() { - return !!Object.keys(this._listeners).length; + function commitLayoutEffects(finishedWork, root, committedLanes) { + inProgressLanes = committedLanes; + inProgressRoot = root; + nextEffect = finishedWork; + commitLayoutEffects_begin(finishedWork, root, committedLanes); + inProgressLanes = null; + inProgressRoot = null; } - }, { - key: "_startListeningToNativeValueUpdates", - value: function _startListeningToNativeValueUpdates() { - var _this = this; - if (this.__nativeAnimatedValueListener && !this.__shouldUpdateListenersForNewNativeTag) { - return; - } - if (this.__shouldUpdateListenersForNewNativeTag) { - this.__shouldUpdateListenersForNewNativeTag = false; - this._stopListeningForNativeValueUpdates(); + function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { + // Suspense layout effects semantics don't change for legacy roots. + var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes); + } } - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.startListeningToAnimatedNodeValue(this.__getNativeTag()); - this.__nativeAnimatedValueListener = _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").nativeEventEmitter.addListener('onAnimatedValueUpdate', function (data) { - if (data.tag !== _this.__getNativeTag()) { + } + function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & LayoutMask) !== NoFlags) { + var current = fiber.alternate; + setCurrentFiber(fiber); + try { + commitLayoutEffectOnFiber(root, current, fiber, committedLanes); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; return; } - _this.__onAnimatedValueUpdateReceived(data.value); - }); + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } } - }, { - key: "__onAnimatedValueUpdateReceived", - value: function __onAnimatedValueUpdateReceived(value) { - this.__callListeners(value); + function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) { + nextEffect = finishedWork; + commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions); } - }, { - key: "__callListeners", - value: function __callListeners(value) { - for (var _key in this._listeners) { - this._listeners[_key]({ - value: value - }); + function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions); + } } } - }, { - key: "_stopListeningForNativeValueUpdates", - value: function _stopListeningForNativeValueUpdates() { - if (!this.__nativeAnimatedValueListener) { - return; + function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + try { + commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); + } catch (error) { + captureCommitPhaseError(fiber, fiber.return, error); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; } - this.__nativeAnimatedValueListener.remove(); - this.__nativeAnimatedValueListener = null; - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.stopListeningToAnimatedNodeValue(this.__getNativeTag()); } - }, { - key: "__getNativeTag", - value: function __getNativeTag() { - var _this$__nativeTag; - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").assertNativeAnimatedModule(); - _$$_REQUIRE(_dependencyMap[3], "invariant")(this.__isNative, 'Attempt to get native tag from node not marked as "native"'); - var nativeTag = (_this$__nativeTag = this.__nativeTag) != null ? _this$__nativeTag : _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").generateNewNodeTag(); - if (this.__nativeTag == null) { - this.__nativeTag = nativeTag; - var config = this.__getNativeConfig(); - if (this._platformConfig) { - config.platformConfig = this._platformConfig; - } - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.createAnimatedNode(nativeTag, config); - this.__shouldUpdateListenersForNewNativeTag = true; + function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + try { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } finally { + recordPassiveEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } + break; + } } - return nativeTag; } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - throw new Error('This JS animated node type cannot be used as native animated node'); + function commitPassiveUnmountEffects(firstChild) { + nextEffect = firstChild; + commitPassiveUnmountEffects_begin(); } - }, { - key: "toJSON", - value: function toJSON() { - return this.__getValue(); + function commitPassiveUnmountEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + var child = fiber.child; + if ((nextEffect.flags & ChildDeletion) !== NoFlags) { + var deletions = fiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + nextEffect = fiberToDelete; + commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); + } + { + // A fiber was deleted from this parent fiber, but it's still part of + // the previous (alternate) parent fiber's list of children. Because + // children are a linked list, an earlier sibling that's still alive + // will be connected to the deleted fiber via its `alternate`: + // + // live fiber + // --alternate--> previous live fiber + // --sibling--> deleted fiber + // + // We can't disconnect `alternate` on nodes that haven't been deleted + // yet, but we can disconnect the `sibling` and `child` pointers. + var previousFiber = fiber.alternate; + if (previousFiber !== null) { + var detachedChild = previousFiber.child; + if (detachedChild !== null) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (detachedChild !== null); + } + } + } + nextEffect = fiber; + } + } + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffects_complete(); + } + } } - }, { - key: "__getPlatformConfig", - value: function __getPlatformConfig() { - return this._platformConfig; + function commitPassiveUnmountEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + commitPassiveUnmountOnFiber(fiber); + resetCurrentFiber(); + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } } - }, { - key: "__setPlatformConfig", - value: function __setPlatformConfig(platformConfig) { - this._platformConfig = platformConfig; + function commitPassiveUnmountOnFiber(finishedWork) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + recordPassiveEffectDuration(finishedWork); + } else { + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + } + break; + } + } } - }]); - return AnimatedNode; - }(); - module.exports = AnimatedNode; -},278,[12,13,273,17],"node_modules/react-native/Libraries/Animated/nodes/AnimatedNode.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _EventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../vendor/emitter/EventEmitter")); - var _emitter = new _EventEmitter.default(); - var DEBUG_DELAY = 0; - var DEBUG = false; + function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { + while (nextEffect !== null) { + var fiber = nextEffect; // Deletion effects fire in parent -> child order + // TODO: Check if fiber has a PassiveStatic flag - var InteractionManager = { - Events: { - interactionStart: 'interactionStart', - interactionComplete: 'interactionComplete' - }, - runAfterInteractions: function runAfterInteractions(task) { - var tasks = []; - var promise = new Promise(function (resolve) { - _scheduleUpdate(); - if (task) { - tasks.push(task); + setCurrentFiber(fiber); + commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); + resetCurrentFiber(); + var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we + // do this, still need to handle `deletedTreeCleanUpLevel` correctly.) + + if (child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot); + } } - tasks.push({ - run: resolve, - name: 'resolve ' + (task && task.name || '?') - }); - _taskQueue.enqueueTasks(tasks); - }); - return { - then: promise.then.bind(promise), - cancel: function cancel() { - _taskQueue.cancelTasks(tasks); + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) { + while (nextEffect !== null) { + var fiber = nextEffect; + var sibling = fiber.sibling; + var returnFiber = fiber.return; + { + // Recursively traverse the entire deleted tree and clean up fiber fields. + // This is more aggressive than ideal, and the long term goal is to only + // have to detach the deleted tree at the root. + detachFiberAfterEffects(fiber); + if (fiber === deletedSubtreeRoot) { + nextEffect = null; + return; + } + } + if (sibling !== null) { + sibling.return = returnFiber; + nextEffect = sibling; + return; + } + nextEffect = returnFiber; } - }; - }, - createInteractionHandle: function createInteractionHandle() { - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: create interaction handle'); - _scheduleUpdate(); - var handle = ++_inc; - _addInteractionSet.add(handle); - return handle; - }, - clearInteractionHandle: function clearInteractionHandle(handle) { - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('InteractionManager: clear interaction handle'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(!!handle, 'InteractionManager: Must provide a handle to clear.'); - _scheduleUpdate(); - _addInteractionSet.delete(handle); - _deleteInteractionSet.add(handle); - }, - addListener: _emitter.addListener.bind(_emitter), - setDeadline: function setDeadline(deadline) { - _deadline = deadline; - } - }; - var _interactionSet = new Set(); - var _addInteractionSet = new Set(); - var _deleteInteractionSet = new Set(); - var _taskQueue = new (_$$_REQUIRE(_dependencyMap[4], "./TaskQueue"))({ - onMoreTasks: _scheduleUpdate - }); - var _nextUpdateHandle = 0; - var _inc = 0; - var _deadline = -1; - - function _scheduleUpdate() { - if (!_nextUpdateHandle) { - if (_deadline > 0) { - _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY); - } else { - _nextUpdateHandle = setImmediate(_processUpdate); } - } - } + function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) { + switch (current.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + if (current.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + recordPassiveEffectDuration(current); + } else { + commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor); + } + break; + } + } + } // TODO: Reuse reappearLayoutEffects traversal here? - function _processUpdate() { - _nextUpdateHandle = 0; - var interactionCount = _interactionSet.size; - _addInteractionSet.forEach(function (handle) { - return _interactionSet.add(handle); - }); - _deleteInteractionSet.forEach(function (handle) { - return _interactionSet.delete(handle); - }); - var nextInteractionCount = _interactionSet.size; - if (interactionCount !== 0 && nextInteractionCount === 0) { - _emitter.emit(InteractionManager.Events.interactionComplete); - } else if (interactionCount === 0 && nextInteractionCount !== 0) { - _emitter.emit(InteractionManager.Events.interactionStart); - } + var COMPONENT_TYPE = 0; + var HAS_PSEUDO_CLASS_TYPE = 1; + var ROLE_TYPE = 2; + var TEST_NAME_TYPE = 3; + var TEXT_TYPE = 4; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + COMPONENT_TYPE = symbolFor("selector.component"); + HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); + ROLE_TYPE = symbolFor("selector.role"); + TEST_NAME_TYPE = symbolFor("selector.test_id"); + TEXT_TYPE = symbolFor("selector.text"); + } + var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; + function isLegacyActEnvironment(fiber) { + { + // Legacy mode. We preserve the behavior of React 17's act. It assumes an + // act environment whenever `jest` is defined, but you can still turn off + // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly + // to false. + var isReactActEnvironmentGlobal = + // $FlowExpectedError โ€“ Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest - if (nextInteractionCount === 0) { - while (_taskQueue.hasTasksToProcess()) { - _taskQueue.processNext(); - if (_deadline > 0 && _$$_REQUIRE(_dependencyMap[5], "../BatchedBridge/BatchedBridge").getEventLoopRunningTime() >= _deadline) { - _scheduleUpdate(); - break; + var jestIsDefined = typeof jest !== "undefined"; + return jestIsDefined && isReactActEnvironmentGlobal !== false; } } - } - _addInteractionSet.clear(); - _deleteInteractionSet.clear(); - } - module.exports = InteractionManager; -},279,[3,5,124,17,280,23],"node_modules/react-native/Libraries/Interaction/InteractionManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function isConcurrentActEnvironment() { + { + var isReactActEnvironmentGlobal = + // $FlowExpectedError โ€“ Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; + if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { + // TODO: Include link to relevant documentation page. + error("The current testing environment is not configured to support " + "act(...)"); + } + return isReactActEnvironmentGlobal; + } + } + var ceil = Math.ceil; + var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; + var NoContext = /* */ + 0; + var BatchedContext = /* */ + 1; + var RenderContext = /* */ + 2; + var CommitContext = /* */ + 4; + var RootInProgress = 0; + var RootFatalErrored = 1; + var RootErrored = 2; + var RootSuspended = 3; + var RootSuspendedWithDelay = 4; + var RootCompleted = 5; + var RootDidNotComplete = 6; // Describes where we are in the React execution stack - 'use strict'; + var executionContext = NoContext; // The root we're working on - var DEBUG = false; + var workInProgressRoot = null; // The fiber we're working on - var TaskQueue = function () { - function TaskQueue(_ref) { - var onMoreTasks = _ref.onMoreTasks; - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, TaskQueue); - this._onMoreTasks = onMoreTasks; - this._queueStack = [{ - tasks: [], - popable: false - }]; - } + var workInProgress = null; // The lanes we're rendering - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(TaskQueue, [{ - key: "enqueue", - value: - function enqueue(task) { - this._getCurrentQueue().push(task); - } - }, { - key: "enqueueTasks", - value: function enqueueTasks(tasks) { - var _this = this; - tasks.forEach(function (task) { - return _this.enqueue(task); - }); - } - }, { - key: "cancelTasks", - value: function cancelTasks(tasksToCancel) { - this._queueStack = this._queueStack.map(function (queue) { - return Object.assign({}, queue, { - tasks: queue.tasks.filter(function (task) { - return tasksToCancel.indexOf(task) === -1; - }) - }); - }).filter(function (queue, idx) { - return queue.tasks.length > 0 || idx === 0; - }); - } + var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree + // This is a superset of the lanes we started working on at the root. The only + // case where it's different from `workInProgressRootRenderLanes` is when we + // enter a subtree that is hidden and needs to be unhidden: Suspense and + // Offscreen component. + // + // Most things in the work loop should deal with workInProgressRootRenderLanes. + // Most things in begin/complete phases should deal with subtreeRenderLanes. - }, { - key: "hasTasksToProcess", - value: - function hasTasksToProcess() { - return this._getCurrentQueue().length > 0; - } + var subtreeRenderLanes = NoLanes; + var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc. - }, { - key: "processNext", - value: - function processNext() { - var queue = this._getCurrentQueue(); - if (queue.length) { - var task = queue.shift(); - try { - if (typeof task === 'object' && task.gen) { - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: genPromise for task ' + task.name); - this._genPromise(task); - } else if (typeof task === 'object' && task.run) { - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run task ' + task.name); - task.run(); - } else { - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof task === 'function', 'Expected Function, SimpleTask, or PromiseTask, but got:\n' + JSON.stringify(task, null, 2)); - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: run anonymous task'); - task(); - } - } catch (e) { - e.message = 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message; - throw e; - } - } - } - }, { - key: "_getCurrentQueue", - value: function _getCurrentQueue() { - var stackIdx = this._queueStack.length - 1; - var queue = this._queueStack[stackIdx]; - if (queue.popable && queue.tasks.length === 0 && this._queueStack.length > 1) { - this._queueStack.pop(); - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: popped queue: ', { - stackIdx: stackIdx, - queueStackSize: this._queueStack.length - }); - return this._getCurrentQueue(); - } else { - return queue.tasks; - } - } - }, { - key: "_genPromise", - value: function _genPromise(task) { - var _this2 = this; - this._queueStack.push({ - tasks: [], - popable: false - }); - var stackIdx = this._queueStack.length - 1; - var stackItem = this._queueStack[stackIdx]; - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: push new queue: ', { - stackIdx: stackIdx - }); - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: exec gen task ' + task.name); - task.gen().then(function () { - DEBUG && _$$_REQUIRE(_dependencyMap[2], "../Utilities/infoLog")('TaskQueue: onThen for gen task ' + task.name, { - stackIdx: stackIdx, - queueStackSize: _this2._queueStack.length - }); - stackItem.popable = true; - _this2.hasTasksToProcess() && _this2._onMoreTasks(); - }).catch(function (ex) { - setTimeout(function () { - ex.message = "TaskQueue: Error resolving Promise in task " + task.name + ": " + ex.message; - throw ex; - }, 0); - }); - } - }]); - return TaskQueue; - }(); - module.exports = TaskQueue; -},280,[12,13,124,17],"node_modules/react-native/Libraries/Interaction/TaskQueue.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown - 'use strict'; + var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's + // slightly different than `renderLanes` because `renderLanes` can change as you + // enter and exit an Offscreen tree. This value is the combination of all render + // lanes for the entire render phase. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var _uniqueId = 1; + var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only + // includes unprocessed updates, not work in bailed out children. - var AnimatedValueXY = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedValueXY, _AnimatedWithChildren); - var _super = _createSuper(AnimatedValueXY); - function AnimatedValueXY(valueIn, config) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedValueXY); - _this = _super.call(this); - var value = valueIn || { - x: 0, - y: 0 - }; - if (typeof value.x === 'number' && typeof value.y === 'number') { - _this.x = new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(value.x); - _this.y = new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(value.y); - } else { - _$$_REQUIRE(_dependencyMap[5], "invariant")(value.x instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedValue") && value.y instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"), 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.'); - _this.x = value.x; - _this.y = value.y; - } - _this._listeners = {}; - if (config && config.useNativeDriver) { - _this.__makeNative(); - } - return _this; - } + var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render. - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedValueXY, [{ - key: "setValue", - value: - function setValue(value) { - this.x.setValue(value.x); - this.y.setValue(value.y); - } + var workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event). - }, { - key: "setOffset", - value: - function setOffset(offset) { - this.x.setOffset(offset.x); - this.y.setOffset(offset.y); - } + var workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase. - }, { - key: "flattenOffset", - value: - function flattenOffset() { - this.x.flattenOffset(); - this.y.flattenOffset(); - } + var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI. + // We will log them once the tree commits. - }, { - key: "extractOffset", - value: - function extractOffset() { - this.x.extractOffset(); - this.y.extractOffset(); - } - }, { - key: "__getValue", - value: function __getValue() { - return { - x: this.x.__getValue(), - y: this.y.__getValue() - }; - } + var workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train + // model where we don't commit new loading states in too quick succession. - }, { - key: "resetAnimation", - value: - function resetAnimation(callback) { - this.x.resetAnimation(); - this.y.resetAnimation(); - callback && callback(this.__getValue()); - } + var globalMostRecentFallbackTime = 0; + var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering + // more and prefer CPU suspense heuristics instead. - }, { - key: "stopAnimation", - value: - function stopAnimation(callback) { - this.x.stopAnimation(); - this.y.stopAnimation(); - callback && callback(this.__getValue()); - } + var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU + // suspense heuristics and opt out of rendering more content. - }, { - key: "addListener", - value: - function addListener(callback) { - var _this2 = this; - var id = String(_uniqueId++); - var jointCallback = function jointCallback(_ref) { - var number = _ref.value; - callback(_this2.__getValue()); - }; - this._listeners[id] = { - x: this.x.addListener(jointCallback), - y: this.y.addListener(jointCallback) - }; - return id; + var RENDER_TIMEOUT_MS = 500; + var workInProgressTransitions = null; + function resetRenderTimer() { + workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; } - - }, { - key: "removeListener", - value: - function removeListener(id) { - this.x.removeListener(this._listeners[id].x); - this.y.removeListener(this._listeners[id].y); - delete this._listeners[id]; + function getRenderTargetTime() { + return workInProgressRootRenderTargetTime; } + var hasUncaughtError = false; + var firstUncaughtError = null; + var legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true; + var rootDoesHavePassiveEffects = false; + var rootWithPendingPassiveEffects = null; + var pendingPassiveEffectsLanes = NoLanes; + var pendingPassiveProfilerEffects = []; + var pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates - }, { - key: "removeAllListeners", - value: - function removeAllListeners() { - this.x.removeAllListeners(); - this.y.removeAllListeners(); - this._listeners = {}; - } + var NESTED_UPDATE_LIMIT = 50; + var nestedUpdateCount = 0; + var rootWithNestedUpdates = null; + var isFlushingPassiveEffects = false; + var didScheduleUpdateDuringPassiveEffects = false; + var NESTED_PASSIVE_UPDATE_LIMIT = 50; + var nestedPassiveUpdateCount = 0; + var rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their + // event times as simultaneous, even if the actual clock time has advanced + // between the first and second call. - }, { - key: "getLayout", - value: - function getLayout() { - return { - left: this.x, - top: this.y - }; + var currentEventTime = NoTimestamp; + var currentEventTransitionLane = NoLanes; + var isRunningInsertionEffect = false; + function getWorkInProgressRoot() { + return workInProgressRoot; } + function requestEventTime() { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + // We're inside React, so it's fine to read the actual time. + return now(); + } // We're not inside React, so we may be in the middle of a browser event. - }, { - key: "getTranslateTransform", - value: - function getTranslateTransform() { - return [{ - translateX: this.x - }, { - translateY: this.y - }]; - } - }, { - key: "__attach", - value: function __attach() { - this.x.__addChild(this); - this.y.__addChild(this); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__attach", this).call(this); - } - }, { - key: "__detach", - value: function __detach() { - this.x.__removeChild(this); - this.y.__removeChild(this); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__detach", this).call(this); - } - }, { - key: "__makeNative", - value: function __makeNative(platformConfig) { - this.x.__makeNative(platformConfig); - this.y.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedValueXY.prototype), "__makeNative", this).call(this, platformConfig); + if (currentEventTime !== NoTimestamp) { + // Use the same start time for all updates until we enter React again. + return currentEventTime; + } // This is the first update since React yielded. Compute a new start time. + + currentEventTime = now(); + return currentEventTime; } - }]); - return AnimatedValueXY; - }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - module.exports = AnimatedValueXY; -},281,[46,47,50,12,272,17,13,115,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedValueXY.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function requestUpdateLane(fiber) { + // Special cases + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { + // This is a render phase update. These are not officially supported. The + // old behavior is to give this the same "thread" (lanes) as + // whatever is currently rendering. So if you call `setState` on a component + // that happens later in the same render, it will flush. Ideally, we want to + // remove the special case and treat them as if they came from an + // interleaved event. Regardless, this pattern is not officially supported. + // This behavior is only a fallback. The flag only exists until we can roll + // out the setState warning, since existing code might accidentally rely on + // the current behavior. + return pickArbitraryLane(workInProgressRootRenderLanes); + } + var isTransition = requestCurrentTransition() !== NoTransition; + if (isTransition) { + if (ReactCurrentBatchConfig$2.transition !== null) { + var transition = ReactCurrentBatchConfig$2.transition; + if (!transition._updatedFibers) { + transition._updatedFibers = new Set(); + } + transition._updatedFibers.add(fiber); + } // The algorithm for assigning an update to a lane should be stable for all + // updates at the same priority within the same event. To do this, the + // inputs to the algorithm must be the same. + // + // The trick we use is to cache the first of each of these inputs within an + // event. Then reset the cached values once we can be sure the event is + // over. Our heuristic for that is whenever we enter a concurrent work loop. - 'use strict'; + if (currentEventTransitionLane === NoLane) { + // All transitions within the same event are assigned the same lane. + currentEventTransitionLane = claimNextTransitionLane(); + } + return currentEventTransitionLane; + } // Updates originating inside certain React methods, like flushSync, have + // their priority set by tracking it with a context variable. + // + // The opaque type returned by the host config is internally a lane, so we can + // use that directly. + // TODO: Move this type conversion to the event priority module. - var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedColor")); - var add = function add(a, b) { - return new (_$$_REQUIRE(_dependencyMap[2], "./nodes/AnimatedAddition"))(a, b); - }; - var subtract = function subtract(a, b) { - return new (_$$_REQUIRE(_dependencyMap[3], "./nodes/AnimatedSubtraction"))(a, b); - }; - var divide = function divide(a, b) { - return new (_$$_REQUIRE(_dependencyMap[4], "./nodes/AnimatedDivision"))(a, b); - }; - var multiply = function multiply(a, b) { - return new (_$$_REQUIRE(_dependencyMap[5], "./nodes/AnimatedMultiplication"))(a, b); - }; - var modulo = function modulo(a, modulus) { - return new (_$$_REQUIRE(_dependencyMap[6], "./nodes/AnimatedModulo"))(a, modulus); - }; - var diffClamp = function diffClamp(a, min, max) { - return new (_$$_REQUIRE(_dependencyMap[7], "./nodes/AnimatedDiffClamp"))(a, min, max); - }; - var _combineCallbacks = function _combineCallbacks(callback, config) { - if (callback && config.onComplete) { - return function () { - config.onComplete && config.onComplete.apply(config, arguments); - callback && callback.apply(void 0, arguments); - }; - } else { - return callback || config.onComplete; - } - }; - var maybeVectorAnim = function maybeVectorAnim(value, config, anim) { - if (value instanceof _$$_REQUIRE(_dependencyMap[8], "./nodes/AnimatedValueXY")) { - var configX = Object.assign({}, config); - var configY = Object.assign({}, config); - for (var key in config) { - var _config$key = config[key], - x = _config$key.x, - y = _config$key.y; - if (x !== undefined && y !== undefined) { - configX[key] = x; - configY[key] = y; - } + var updateLane = getCurrentUpdatePriority(); + if (updateLane !== NoLane) { + return updateLane; + } // This update originated outside React. Ask the host environment for an + // appropriate priority, based on the type of event. + // + // The opaque type returned by the host config is internally a lane, so we can + // use that directly. + // TODO: Move this type conversion to the event priority module. + + var eventLane = getCurrentEventPriority(); + return eventLane; } - var aX = anim(value.x, configX); - var aY = anim(value.y, configY); - return parallel([aX, aY], { - stopTogether: false - }); - } else if (value instanceof _AnimatedColor.default) { - var configR = Object.assign({}, config); - var configG = Object.assign({}, config); - var configB = Object.assign({}, config); - var configA = Object.assign({}, config); - for (var _key in config) { - var _config$_key = config[_key], - r = _config$_key.r, - g = _config$_key.g, - b = _config$_key.b, - a = _config$_key.a; - if (r !== undefined && g !== undefined && b !== undefined && a !== undefined) { - configR[_key] = r; - configG[_key] = g; - configB[_key] = b; - configA[_key] = a; + function requestRetryLane(fiber) { + // This is a fork of `requestUpdateLane` designed specifically for Suspense + // "retries" โ€” a special update that attempts to flip a Suspense boundary + // from its placeholder state to its primary/resolved state. + // Special cases + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; } + return claimNextRetryLane(); } - var aR = anim(value.r, configR); - var aG = anim(value.g, configG); - var aB = anim(value.b, configB); - var aA = anim(value.a, configA); - return parallel([aR, aG, aB, aA], { - stopTogether: false - }); - } - return null; - }; - var spring = function spring(value, config) { - var _start = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - if (configuration.toValue instanceof _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode")) { - singleValue.track(new (_$$_REQUIRE(_dependencyMap[10], "./nodes/AnimatedTracking"))(singleValue, configuration.toValue, _$$_REQUIRE(_dependencyMap[11], "./animations/SpringAnimation"), singleConfig, callback)); - } else { - singleValue.animate(new (_$$_REQUIRE(_dependencyMap[11], "./animations/SpringAnimation"))(singleConfig), callback); - } - }; - return maybeVectorAnim(value, config, spring) || { - start: function start(callback) { - _start(value, config, callback); - }, - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = Object.assign({}, config, { - iterations: iterations - }); - _start(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - var timing = function timing(value, config) { - var _start2 = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - if (configuration.toValue instanceof _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode")) { - singleValue.track(new (_$$_REQUIRE(_dependencyMap[10], "./nodes/AnimatedTracking"))(singleValue, configuration.toValue, _$$_REQUIRE(_dependencyMap[12], "./animations/TimingAnimation"), singleConfig, callback)); - } else { - singleValue.animate(new (_$$_REQUIRE(_dependencyMap[12], "./animations/TimingAnimation"))(singleConfig), callback); - } - }; - return maybeVectorAnim(value, config, timing) || { - start: function start(callback) { - _start2(value, config, callback); - }, - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = Object.assign({}, config, { - iterations: iterations - }); - _start2(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - var decay = function decay(value, config) { - var _start3 = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - singleValue.animate(new (_$$_REQUIRE(_dependencyMap[13], "./animations/DecayAnimation"))(singleConfig), callback); - }; - return maybeVectorAnim(value, config, decay) || { - start: function start(callback) { - _start3(value, config, callback); - }, - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = Object.assign({}, config, { - iterations: iterations - }); - _start3(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - var sequence = function sequence(animations) { - var current = 0; - return { - start: function start(callback) { - var onComplete = function onComplete(result) { - if (!result.finished) { - callback && callback(result); - return; + function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { + checkForNestedUpdates(); + { + if (isRunningInsertionEffect) { + error("useInsertionEffect must not schedule updates."); } - current++; - if (current === animations.length) { - callback && callback(result); - return; + } + { + if (isFlushingPassiveEffects) { + didScheduleUpdateDuringPassiveEffects = true; } - animations[current].start(onComplete); - }; - if (animations.length === 0) { - callback && callback({ - finished: true - }); + } // Mark that the root has a pending update. + + markRootUpdated(root, lane, eventTime); + if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { + // This update was dispatched during the render phase. This is a mistake + // if the update originates from user space (with the exception of local + // hook updates, which are handled differently and don't reach this + // function), but there are some internal React features that use this as + // an implementation detail, like selective hydration. + warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase } else { - animations[current].start(onComplete); - } - }, - stop: function stop() { - if (current < animations.length) { - animations[current].stop(); - } - }, - reset: function reset() { - animations.forEach(function (animation, idx) { - if (idx <= current) { - animation.reset(); + // This is a normal update, scheduled from outside the render phase. For + // example, during an input event. + { + if (isDevToolsPresent) { + addFiberToLanesMap(root, fiber, lane); + } } - }); - current = 0; - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.sequence animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return false; + warnIfUpdatesNotWrappedWithActDEV(fiber); + if (root === workInProgressRoot) { + // Received an update to a tree that's in the middle of rendering. Mark + // that there was an interleaved update work on this root. Unless the + // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render + // phase update. In that case, we don't treat render phase updates as if + // they were interleaved, for backwards compat reasons. + if ((executionContext & RenderContext) === NoContext) { + workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); + } + if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + // The root already suspended with a delay, which means this render + // definitely won't finish. Since we have a new update, let's mark it as + // suspended now, right before marking the incoming update. This has the + // effect of interrupting the current render and switching to the update. + // TODO: Make sure this doesn't override pings that happen while we've + // already started rendering. + markRootSuspended$1(root, workInProgressRootRenderLanes); + } + } + ensureRootIsScheduled(root, eventTime); + if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && + // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. + !ReactCurrentActQueue$1.isBatchingLegacy) { + // Flush the synchronous work now, unless we're already working or inside + // a batch. This is intentionally inside scheduleUpdateOnFiber instead of + // scheduleCallbackForFiber to preserve the ability to schedule a callback + // without immediately flushing it. We only do this for user-initiated + // updates, to preserve historical behavior of legacy mode. + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } } - }; - }; - var parallel = function parallel(animations, config) { - var doneCount = 0; - var hasEnded = {}; - var stopTogether = !(config && config.stopTogether === false); - var result = { - start: function start(callback) { - if (doneCount === animations.length) { - callback && callback({ - finished: true - }); + function isUnsafeClassRenderPhaseUpdate(fiber) { + // Check if this is a render phase update. Only called by class components, + // which special (deprecated) behavior for UNSAFE_componentWillReceive props. + return ( + // TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We + // decided not to enable it. + (executionContext & RenderContext) !== NoContext + ); + } // Use this function to schedule a task for a root. There's only one task per + // root; if a task was already scheduled, we'll check to make sure the priority + // of the existing task is the same as the priority of the next level that the + // root has work on. This function is called on every update, and right before + // exiting a task. + + function ensureRootIsScheduled(root, currentTime) { + var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as + // expired so we know to work on those next. + + markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority. + + var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (nextLanes === NoLanes) { + // Special case: There's nothing to work on. + if (existingCallbackNode !== null) { + cancelCallback$1(existingCallbackNode); + } + root.callbackNode = null; + root.callbackPriority = NoLane; return; - } - animations.forEach(function (animation, idx) { - var cb = function cb(endResult) { - hasEnded[idx] = true; - doneCount++; - if (doneCount === animations.length) { - doneCount = 0; - callback && callback(endResult); - return; + } // We use the highest priority lane to represent the priority of the callback. + + var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it. + + var existingCallbackPriority = root.callbackPriority; + if (existingCallbackPriority === newCallbackPriority && + // Special case related to `act`. If the currently scheduled task is a + // Scheduler task, rather than an `act` task, cancel it and re-scheduled + // on the `act` queue. + !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { + { + // If we're going to re-use an existing task, it needs to exist. + // Assume that discrete update microtasks are non-cancellable and null. + // TODO: Temporary until we confirm this warning is not fired. + if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { + error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); } - if (!endResult.finished && stopTogether) { - result.stop(); + } // The priority hasn't changed. We can reuse the existing task. Exit. + + return; + } + if (existingCallbackNode != null) { + // Cancel the existing callback. We'll schedule a new one below. + cancelCallback$1(existingCallbackNode); + } // Schedule a new callback. + + var newCallbackNode; + if (newCallbackPriority === SyncLane) { + // Special case: Sync React callbacks are scheduled on a special + // internal queue + if (root.tag === LegacyRoot) { + if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { + ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; } - }; - if (!animation) { - cb({ - finished: true - }); + scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); } else { - animation.start(cb); + scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); } - }); - }, - stop: function stop() { - animations.forEach(function (animation, idx) { - !hasEnded[idx] && animation.stop(); - hasEnded[idx] = true; - }); - }, - reset: function reset() { - animations.forEach(function (animation, idx) { - animation.reset(); - hasEnded[idx] = false; - doneCount = 0; - }); - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.parallel animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return false; - } - }; - return result; - }; - var delay = function delay(time) { - return timing(new (_$$_REQUIRE(_dependencyMap[14], "./nodes/AnimatedValue"))(0), { - toValue: 0, - delay: time, - duration: 0, - useNativeDriver: false - }); - }; - var stagger = function stagger(time, animations) { - return parallel(animations.map(function (animation, i) { - return sequence([delay(time * i), animation]); - })); - }; - var loop = function loop(animation) { - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$iterations = _ref.iterations, - iterations = _ref$iterations === void 0 ? -1 : _ref$iterations, - _ref$resetBeforeItera = _ref.resetBeforeIteration, - resetBeforeIteration = _ref$resetBeforeItera === void 0 ? true : _ref$resetBeforeItera; - var isFinished = false; - var iterationsSoFar = 0; - return { - start: function start(callback) { - var restart = function restart() { - var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - finished: true - }; - if (isFinished || iterationsSoFar === iterations || result.finished === false) { - callback && callback(result); - } else { - iterationsSoFar++; - resetBeforeIteration && animation.reset(); - animation.start(restart); + { + // Flush the queue in an Immediate task. + scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); } - }; - if (!animation || iterations === 0) { - callback && callback({ - finished: true - }); + newCallbackNode = null; } else { - if (animation._isUsingNativeDriver()) { - animation._startNativeLoop(iterations); - } else { - restart(); + var schedulerPriorityLevel; + switch (lanesToEventPriority(nextLanes)) { + case DiscreteEventPriority: + schedulerPriorityLevel = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriorityLevel = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriorityLevel = NormalPriority; + break; + case IdleEventPriority: + schedulerPriorityLevel = IdlePriority; + break; + default: + schedulerPriorityLevel = NormalPriority; + break; } + newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root)); } - }, + root.callbackPriority = newCallbackPriority; + root.callbackNode = newCallbackNode; + } // This is the entry point for every concurrent task, i.e. anything that + // goes through Scheduler. - stop: function stop() { - isFinished = true; - animation.stop(); - }, - reset: function reset() { - iterationsSoFar = 0; - isFinished = false; - animation.reset(); - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.loop animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return animation._isUsingNativeDriver(); - } - }; - }; - function forkEvent(event, listener) { - if (!event) { - return listener; - } else if (event instanceof _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent) { - event.__addListener(listener); - return event; - } else { - return function () { - typeof event === 'function' && event.apply(void 0, arguments); - listener.apply(void 0, arguments); - }; - } - } - function unforkEvent(event, listener) { - if (event && event instanceof _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent) { - event.__removeListener(listener); - } - } - var event = function event(argMapping, config) { - var animatedEvent = new (_$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent)(argMapping, config); - if (animatedEvent.__isNative) { - return animatedEvent; - } else { - return animatedEvent.__getHandler(); - } - }; + function performConcurrentWorkOnRoot(root, didTimeout) { + { + resetNestedUpdateFlag(); + } // Since we know we're in a React event, we can clear the current + // event time. The next update will compute a new event time. - module.exports = { - Value: _$$_REQUIRE(_dependencyMap[14], "./nodes/AnimatedValue"), - ValueXY: _$$_REQUIRE(_dependencyMap[8], "./nodes/AnimatedValueXY"), - Color: _AnimatedColor.default, - Interpolation: _$$_REQUIRE(_dependencyMap[16], "./nodes/AnimatedInterpolation"), - Node: _$$_REQUIRE(_dependencyMap[9], "./nodes/AnimatedNode"), - decay: decay, - timing: timing, - spring: spring, - add: add, - subtract: subtract, - divide: divide, - multiply: multiply, - modulo: modulo, - diffClamp: diffClamp, - delay: delay, - sequence: sequence, - parallel: parallel, - stagger: stagger, - loop: loop, - event: event, - createAnimatedComponent: _$$_REQUIRE(_dependencyMap[17], "./createAnimatedComponent"), - attachNativeEvent: _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").attachNativeEvent, - forkEvent: forkEvent, - unforkEvent: unforkEvent, - Event: _$$_REQUIRE(_dependencyMap[15], "./AnimatedEvent").AnimatedEvent - }; -},282,[3,271,283,284,285,286,287,288,281,278,289,290,293,296,272,297,276,298],"node_modules/react-native/Libraries/Animated/AnimatedImplementation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + currentEventTime = NoTimestamp; + currentEventTransitionLane = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } // Flush any pending passive effects before deciding which lanes to work on, + // in case they schedule additional work. - 'use strict'; + var originalCallbackNode = root.callbackNode; + var didFlushPassiveEffects = flushPassiveEffects(); + if (didFlushPassiveEffects) { + // Something in the passive effect phase may have canceled the current task. + // Check if the task node for this root was changed. + if (root.callbackNode !== originalCallbackNode) { + // The current task was canceled. Exit. We don't need to call + // `ensureRootIsScheduled` because the check above implies either that + // there's a new task, or that there's no remaining work on this root. + return null; + } + } // Determine the next lanes to work on, using the fields stored + // on the root. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedAddition = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedAddition, _AnimatedWithChildren); - var _super = _createSuper(AnimatedAddition); - function AnimatedAddition(a, b) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedAddition); - _this = _super.call(this); - _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; - _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedAddition, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - this._b.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedAddition.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() + this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - this._b.__removeChild(this); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedAddition.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'addition', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - return AnimatedAddition; - }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - module.exports = AnimatedAddition; -},283,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedAddition.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (lanes === NoLanes) { + // Defensive coding. This is never expected to happen. + return null; + } // We disable time-slicing in some cases: if the work has been CPU-bound + // for too long ("expired" work, to prevent starvation), or we're in + // sync-updates-by-default mode. + // TODO: We only check `didTimeout` defensively, to account for a Scheduler + // bug we're still investigating. Once the bug in Scheduler is fixed, + // we can remove this, since we track expiration ourselves. - 'use strict'; + var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; + var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + if (exitStatus === RootErrored) { + // If something threw an error, try rendering one more time. We'll + // render synchronously to block concurrent data mutations, and we'll + // includes all pending updates are included. If it still fails after + // the second attempt, we'll give up and commit the resulting tree. + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + // The render unwound without completing the tree. This happens in special + // cases where need to exit the current render without producing a + // consistent tree or committing. + // + // This should only happen during a concurrent render, not a discrete or + // synchronous update. We should have already checked for this when we + // unwound the stack. + markRootSuspended$1(root, lanes); + } else { + // The render completed. + // Check if this render may have yielded to a concurrent event, and if so, + // confirm that any newly rendered stores are consistent. + // TODO: It's possible that even a concurrent render may never have yielded + // to the main thread, if it was fast enough, or if it expired. We could + // skip the consistency check in that case, too. + var renderWasConcurrent = !includesBlockingLane(root, lanes); + var finishedWork = root.current.alternate; + if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { + // A store was mutated in an interleaved event. Render again, + // synchronously, to block further mutations. + exitStatus = renderRootSync(root, lanes); // We need to check again if something threw - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedSubtraction = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedSubtraction, _AnimatedWithChildren); - var _super = _createSuper(AnimatedSubtraction); - function AnimatedSubtraction(a, b) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedSubtraction); - _this = _super.call(this); - _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; - _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedSubtraction, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - this._b.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedSubtraction.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() - this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - this._b.__removeChild(this); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedSubtraction.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'subtraction', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - return AnimatedSubtraction; - }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - module.exports = AnimatedSubtraction; -},284,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedSubtraction.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + if (exitStatus === RootErrored) { + var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (_errorRetryLanes !== NoLanes) { + lanes = _errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any + // concurrent events. + } + } - 'use strict'; + if (exitStatus === RootFatalErrored) { + var _fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw _fatalError; + } + } // We now have a consistent tree. The next step is either to commit it, + // or, if something suspended, wait to commit it after a timeout. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedDivision = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedDivision, _AnimatedWithChildren); - var _super = _createSuper(AnimatedDivision); - function AnimatedDivision(a, b) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedDivision); - _this = _super.call(this); - _this._warnedAboutDivideByZero = false; - if (b === 0 || b instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedNode") && b.__getValue() === 0) { - console.error('Detected potential division by zero in AnimatedDivision'); - } - _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedValue"))(a) : a; - _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedValue"))(b) : b; - return _this; - } - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedDivision, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - this._b.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDivision.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - var a = this._a.__getValue(); - var b = this._b.__getValue(); - if (b === 0) { - if (!this._warnedAboutDivideByZero) { - console.error('Detected division by zero in AnimatedDivision'); - this._warnedAboutDivideByZero = true; + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + finishConcurrentRender(root, exitStatus, lanes); } - return 0; } - this._warnedAboutDivideByZero = false; - return a / b; - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[8], "./AnimatedInterpolation"))(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - this._b.__addChild(this); + ensureRootIsScheduled(root, now()); + if (root.callbackNode === originalCallbackNode) { + // The task node scheduled for this root is the same one that's + // currently executed. Need to return a continuation. + return performConcurrentWorkOnRoot.bind(null, root); + } + return null; } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - this._b.__removeChild(this); - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDivision.prototype), "__detach", this).call(this); + function recoverFromConcurrentError(root, errorRetryLanes) { + // If an error occurred during hydration, discard server response and fall + // back to client side render. + // Before rendering again, save the errors from the previous attempt. + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + if (isRootDehydrated(root)) { + // The shell failed to hydrate. Set a flag to force a client rendering + // during the next attempt. To do this, we call prepareFreshStack now + // to create the root work-in-progress fiber. This is a bit weird in terms + // of factoring, because it relies on renderRootSync not calling + // prepareFreshStack again in the call below, which happens because the + // root and lanes haven't changed. + // + // TODO: I think what we should do is set ForceClientRender inside + // throwException, like we do for nested Suspense boundaries. The reason + // it's here instead is so we can switch to the synchronous work loop, too. + // Something to consider for a future refactor. + var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); + rootWorkInProgress.flags |= ForceClientRender; + { + errorHydratingContainer(root.containerInfo); + } + } + var exitStatus = renderRootSync(root, errorRetryLanes); + if (exitStatus !== RootErrored) { + // Successfully finished rendering on retry + // The errors from the failed first attempt have been recovered. Add + // them to the collection of recoverable errors. We'll log them in the + // commit phase. + var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors + // from the first attempt, to preserve the causal sequence. + + if (errorsFromSecondAttempt !== null) { + queueRecoverableErrors(errorsFromSecondAttempt); + } + } + return exitStatus; } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'division', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; + function queueRecoverableErrors(errors) { + if (workInProgressRootRecoverableErrors === null) { + workInProgressRootRecoverableErrors = errors; + } else { + workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } } - }]); - return AnimatedDivision; - }(_$$_REQUIRE(_dependencyMap[9], "./AnimatedWithChildren")); - module.exports = AnimatedDivision; -},285,[46,47,50,12,278,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDivision.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function finishConcurrentRender(root, exitStatus, lanes) { + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + { + throw new Error("Root did not complete. This is a bug in React."); + } + // Flow knows about invariant, so it complains if I add a break + // statement, but eslint doesn't know about invariant, so it complains + // if I do. eslint-disable-next-line no-fallthrough - 'use strict'; + case RootErrored: + { + // We should have already attempted to retry this tree. If we reached + // this point, it errored again. Commit it. + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspended: + { + markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + // should immediately commit it or wait a bit. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedMultiplication = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedMultiplication, _AnimatedWithChildren); - var _super = _createSuper(AnimatedMultiplication); - function AnimatedMultiplication(a, b) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedMultiplication); - _this = _super.call(this); - _this._a = typeof a === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(a) : a; - _this._b = typeof b === 'number' ? new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedValue"))(b) : b; - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedMultiplication, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - this._b.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedMultiplication.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() * this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[7], "./AnimatedInterpolation"))(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - this._b.__removeChild(this); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedMultiplication.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'multiplication', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - return AnimatedMultiplication; - }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - module.exports = AnimatedMultiplication; -},286,[46,47,50,12,272,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedMultiplication.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + if (includesOnlyRetries(lanes) && + // do not delay if we're inside an act() scope + !shouldForceFlushFallbacksInDEV()) { + // This render only included retries, no updates. Throttle committing + // retries so that we don't show too many loading states too quickly. + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. - 'use strict'; + if (msUntilTimeout > 10) { + var nextLanes = getNextLanes(root, NoLanes); + if (nextLanes !== NoLanes) { + // There's additional work on this root. + break; + } + var suspendedLanes = root.suspendedLanes; + if (!isSubsetOfLanes(suspendedLanes, lanes)) { + // We should prefer to render the fallback of at the last + // suspended level. Ping the last suspended level to try + // rendering it again. + // FIXME: What if the suspended lanes are Idle? Should not restart. + var eventTime = requestEventTime(); + markRootPinged(root, suspendedLanes); + break; + } // The render is suspended, it hasn't timed out, and there's no + // lower priority work to do. Instead of committing the fallback + // immediately, wait for more data to arrive. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedModulo = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedModulo, _AnimatedWithChildren); - var _super = _createSuper(AnimatedModulo); - function AnimatedModulo(a, modulus) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedModulo); - _this = _super.call(this); - _this._a = a; - _this._modulus = modulus; - return _this; - } - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedModulo, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedModulo.prototype), "__makeNative", this).call(this, platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[6], "./AnimatedInterpolation"))(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedModulo.prototype), "__detach", this).call(this); + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); + break; + } + } // The work expired. Commit immediately. + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspendedWithDelay: + { + markRootSuspended$1(root, lanes); + if (includesOnlyTransitions(lanes)) { + // This is a transition, so we should exit without committing a + // placeholder and without scheduling a timeout. Delay indefinitely + // until we receive more data. + break; + } + if (!shouldForceFlushFallbacksInDEV()) { + // This is not a transition, but we did trigger an avoided state. + // Schedule a placeholder to display after a short delay, using the Just + // Noticeable Difference. + // TODO: Is the JND optimization worth the added complexity? If this is + // the only reason we track the event time, then probably not. + // Consider removing. + var mostRecentEventTime = getMostRecentEventTime(root, lanes); + var eventTimeMs = mostRecentEventTime; + var timeElapsedMs = now() - eventTimeMs; + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. + + if (_msUntilTimeout > 10) { + // Instead of committing the fallback immediately, wait for more data + // to arrive. + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); + break; + } + } // Commit the placeholder. + + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootCompleted: + { + // The work completed. Ready to commit. + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + default: + { + throw new Error("Unknown root exit status."); + } + } } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'modulus', - input: this._a.__getNativeTag(), - modulus: this._modulus - }; + function isRenderConsistentWithExternalStores(finishedWork) { + // Search the rendered tree for external store reads, and check whether the + // stores were mutated in a concurrent event. Intentionally using an iterative + // loop instead of recursion so we can exit early. + var node = finishedWork; + while (true) { + if (node.flags & StoreConsistency) { + var updateQueue = node.updateQueue; + if (updateQueue !== null) { + var checks = updateQueue.stores; + if (checks !== null) { + for (var i = 0; i < checks.length; i++) { + var check = checks[i]; + var getSnapshot = check.getSnapshot; + var renderedValue = check.value; + try { + if (!objectIs(getSnapshot(), renderedValue)) { + // Found an inconsistent store. + return false; + } + } catch (error) { + // If `getSnapshot` throws, return `false`. This will schedule + // a re-render, and the error will be rethrown during render. + return false; + } + } + } + } + } + var child = node.child; + if (node.subtreeFlags & StoreConsistency && child !== null) { + child.return = node; + node = child; + continue; + } + if (node === finishedWork) { + return true; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return true; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } // Flow doesn't know this is unreachable, but eslint does + // eslint-disable-next-line no-unreachable + + return true; } - }]); - return AnimatedModulo; - }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedWithChildren")); - module.exports = AnimatedModulo; -},287,[46,47,50,12,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedModulo.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function markRootSuspended$1(root, suspendedLanes) { + // When suspending, we should always exclude lanes that were pinged or (more + // rarely, since we try to avoid it) updated during the render phase. + // TODO: Lol maybe there's a better way to factor this besides this + // obnoxiously named function :) + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); + markRootSuspended(root, suspendedLanes); + } // This is the entry point for synchronous tasks that don't go + // through Scheduler - 'use strict'; + function performSyncWorkOnRoot(root) { + { + syncNestedUpdateFlag(); + } + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + flushPassiveEffects(); + var lanes = getNextLanes(root, NoLanes); + if (!includesSomeLane(lanes, SyncLane)) { + // There's no remaining sync work left. + ensureRootIsScheduled(root, now()); + return null; + } + var exitStatus = renderRootSync(root, lanes); + if (root.tag !== LegacyRoot && exitStatus === RootErrored) { + // If something threw an error, try rendering one more time. We'll render + // synchronously to block concurrent data mutations, and we'll includes + // all pending updates are included. If it still fails after the second + // attempt, we'll give up and commit the resulting tree. + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + throw new Error("Root did not complete. This is a bug in React."); + } // We now have a consistent tree. Because this is a sync render, we + // will commit it even if something suspended. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedDiffClamp = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedDiffClamp, _AnimatedWithChildren); - var _super = _createSuper(AnimatedDiffClamp); - function AnimatedDiffClamp(a, min, max) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedDiffClamp); - _this = _super.call(this); - _this._a = a; - _this._min = min; - _this._max = max; - _this._value = _this._lastValue = _this._a.__getValue(); - return _this; - } - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedDiffClamp, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._a.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDiffClamp.prototype), "__makeNative", this).call(this, platformConfig); + var finishedWork = root.current.alternate; + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next + // pending level. + + ensureRootIsScheduled(root, now()); + return null; } - }, { - key: "interpolate", - value: function interpolate(config) { - return new (_$$_REQUIRE(_dependencyMap[6], "./AnimatedInterpolation"))(this, config); + function batchedUpdates$1(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer + // most batchedUpdates-like method. + + if (executionContext === NoContext && + // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } } - }, { - key: "__getValue", - value: function __getValue() { - var value = this._a.__getValue(); - var diff = value - this._lastValue; - this._lastValue = value; - this._value = Math.min(Math.max(this._value + diff, this._min), this._max); - return this._value; + // Warning, this opts-out of checking the function body. + + // eslint-disable-next-line no-redeclare + function flushSync(fn) { + // In legacy mode, we flush pending passive effects at the beginning of the + // next event, not at the end of the previous one. + if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { + flushPassiveEffects(); + } + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + if (fn) { + return fn(); + } else { + return undefined; + } + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. + // Note that this will happen even if batchedUpdates is higher up + // the stack. + + if ((executionContext & (RenderContext | CommitContext)) === NoContext) { + flushSyncCallbacks(); + } + } } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); + function pushRenderLanes(fiber, lanes) { + push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber); + subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes); + workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes); } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedDiffClamp.prototype), "__detach", this).call(this); + function popRenderLanes(fiber) { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor, fiber); } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'diffclamp', - input: this._a.__getNativeTag(), - min: this._min, - max: this._max - }; + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = NoLanes; + var timeoutHandle = root.timeoutHandle; + if (timeoutHandle !== noTimeout) { + // The root previous suspended and scheduled a timeout to commit a fallback + // state. Now that we have additional work, cancel the timeout. + root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above + + cancelTimeout(timeoutHandle); + } + if (workInProgress !== null) { + var interruptedWork = workInProgress.return; + while (interruptedWork !== null) { + var current = interruptedWork.alternate; + unwindInterruptedWork(current, interruptedWork); + interruptedWork = interruptedWork.return; + } + } + workInProgressRoot = root; + var rootWorkInProgress = createWorkInProgress(root.current, null); + workInProgress = rootWorkInProgress; + workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes; + workInProgressRootExitStatus = RootInProgress; + workInProgressRootFatalError = null; + workInProgressRootSkippedLanes = NoLanes; + workInProgressRootInterleavedUpdatedLanes = NoLanes; + workInProgressRootPingedLanes = NoLanes; + workInProgressRootConcurrentErrors = null; + workInProgressRootRecoverableErrors = null; + finishQueueingConcurrentUpdates(); + { + ReactStrictModeWarnings.discardPendingWarnings(); + } + return rootWorkInProgress; } - }]); - return AnimatedDiffClamp; - }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedWithChildren")); - module.exports = AnimatedDiffClamp; -},288,[46,47,50,12,13,115,276,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedDiffClamp.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function handleError(root, thrownValue) { + do { + var erroredWork = workInProgress; + try { + // Reset module-level state that was set during the render phase. + resetContextDependencies(); + resetHooksAfterThrow(); + resetCurrentFiber(); // TODO: I found and added this missing line while investigating a + // separate issue. Write a regression test using string refs. - 'use strict'; + ReactCurrentOwner$2.current = null; + if (erroredWork === null || erroredWork.return === null) { + // Expected to be working on a non-root fiber. This is a fatal error + // because there's no ancestor that can handle it; the root is + // supposed to capture all errors that weren't caught by an error + // boundary. + workInProgressRootExitStatus = RootFatalErrored; + workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next + // sibling, or the parent if there are no siblings. But since the root + // has no siblings nor a parent, we set it to null. Usually this is + // handled by `completeUnitOfWork` or `unwindWork`, but since we're + // intentionally not calling those, we need set it here. + // TODO: Consider calling `unwindWork` to pop the contexts. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedTracking = function (_AnimatedNode) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedTracking, _AnimatedNode); - var _super = _createSuper(AnimatedTracking); - function AnimatedTracking(value, parent, animationClass, animationConfig, callback) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedTracking); - _this = _super.call(this); - _this._value = value; - _this._parent = parent; - _this._animationClass = animationClass; - _this._animationConfig = animationConfig; - _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").shouldUseNativeDriver(animationConfig); - _this._callback = callback; - _this.__attach(); - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedTracking, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this.__isNative = true; - this._parent.__makeNative(platformConfig); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTracking.prototype), "__makeNative", this).call(this, platformConfig); - this._value.__makeNative(platformConfig); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._parent.__getValue(); + workInProgress = null; + return; + } + if (enableProfilerTimer && erroredWork.mode & ProfileMode) { + // Record the time spent rendering before an error was thrown. This + // avoids inaccurate Profiler durations in the case of a + // suspended render. + stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); + } + if (enableSchedulingProfiler) { + markComponentRenderStopped(); + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + var wakeable = thrownValue; + markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes); + } else { + markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); + } + } + throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + // Something in the return path also threw. + thrownValue = yetAnotherThrownValue; + if (workInProgress === erroredWork && erroredWork !== null) { + // If this boundary has already errored, then we had trouble processing + // the error. Bubble it to the next boundary. + erroredWork = erroredWork.return; + workInProgress = erroredWork; + } else { + erroredWork = workInProgress; + } + continue; + } // Return to the normal work loop. + + return; + } while (true); } - }, { - key: "__attach", - value: function __attach() { - this._parent.__addChild(this); - if (this._useNativeDriver) { - var platformConfig = this._animationConfig.platformConfig; - this.__makeNative(platformConfig); + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + if (prevDispatcher === null) { + // The React isomorphic package does not include a default dispatcher. + // Instead the first renderer will lazily attach one, in order to give + // nicer error messages. + return ContextOnlyDispatcher; + } else { + return prevDispatcher; } } - }, { - key: "__detach", - value: function __detach() { - this._parent.__removeChild(this); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTracking.prototype), "__detach", this).call(this); + function popDispatcher(prevDispatcher) { + ReactCurrentDispatcher$2.current = prevDispatcher; } - }, { - key: "update", - value: function update() { - this._value.animate(new this._animationClass(Object.assign({}, this._animationConfig, { - toValue: this._animationConfig.toValue.__getValue() - })), this._callback); + function markCommitTimeOfFallback() { + globalMostRecentFallbackTime = now(); } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var animation = new this._animationClass(Object.assign({}, this._animationConfig, { - toValue: undefined - })); - var animationConfig = animation.__getNativeAnimationConfig(); - return { - type: 'tracking', - animationId: _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").generateNewAnimationId(), - animationConfig: animationConfig, - toValue: this._parent.__getNativeTag(), - value: this._value.__getNativeTag() - }; + function markSkippedUpdateLanes(lane) { + workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); } - }]); - return AnimatedTracking; - }(_$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")); - module.exports = AnimatedTracking; -},289,[46,47,50,12,273,13,115,278],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTracking.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../nodes/AnimatedColor")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var SpringAnimation = function (_Animation) { - (0, _inherits2.default)(SpringAnimation, _Animation); - var _super = _createSuper(SpringAnimation); - function SpringAnimation(config) { - var _config$overshootClam, _config$restDisplacem, _config$restSpeedThre, _config$velocity, _config$velocity2, _config$delay, _config$isInteraction, _config$iterations; - var _this; - (0, _classCallCheck2.default)(this, SpringAnimation); - _this = _super.call(this); - _this._overshootClamping = (_config$overshootClam = config.overshootClamping) != null ? _config$overshootClam : false; - _this._restDisplacementThreshold = (_config$restDisplacem = config.restDisplacementThreshold) != null ? _config$restDisplacem : 0.001; - _this._restSpeedThreshold = (_config$restSpeedThre = config.restSpeedThreshold) != null ? _config$restSpeedThre : 0.001; - _this._initialVelocity = (_config$velocity = config.velocity) != null ? _config$velocity : 0; - _this._lastVelocity = (_config$velocity2 = config.velocity) != null ? _config$velocity2 : 0; - _this._toValue = config.toValue; - _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; - _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[8], "../NativeAnimatedHelper").shouldUseNativeDriver(config); - _this._platformConfig = config.platformConfig; - _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; - _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; - if (config.stiffness !== undefined || config.damping !== undefined || config.mass !== undefined) { - var _config$stiffness, _config$damping, _config$mass; - _$$_REQUIRE(_dependencyMap[9], "invariant")(config.bounciness === undefined && config.speed === undefined && config.tension === undefined && config.friction === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); - _this._stiffness = (_config$stiffness = config.stiffness) != null ? _config$stiffness : 100; - _this._damping = (_config$damping = config.damping) != null ? _config$damping : 10; - _this._mass = (_config$mass = config.mass) != null ? _config$mass : 1; - } else if (config.bounciness !== undefined || config.speed !== undefined) { - var _config$bounciness, _config$speed; - _$$_REQUIRE(_dependencyMap[9], "invariant")(config.tension === undefined && config.friction === undefined && config.stiffness === undefined && config.damping === undefined && config.mass === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); - var springConfig = _$$_REQUIRE(_dependencyMap[10], "../SpringConfig").fromBouncinessAndSpeed((_config$bounciness = config.bounciness) != null ? _config$bounciness : 8, (_config$speed = config.speed) != null ? _config$speed : 12); - _this._stiffness = springConfig.stiffness; - _this._damping = springConfig.damping; - _this._mass = 1; - } else { - var _config$tension, _config$friction; - var _springConfig = _$$_REQUIRE(_dependencyMap[10], "../SpringConfig").fromOrigamiTensionAndFriction((_config$tension = config.tension) != null ? _config$tension : 40, (_config$friction = config.friction) != null ? _config$friction : 7); - _this._stiffness = _springConfig.stiffness; - _this._damping = _springConfig.damping; - _this._mass = 1; + function renderDidSuspend() { + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootSuspended; + } } - _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._stiffness > 0, 'Stiffness value must be greater than 0'); - _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._damping > 0, 'Damping value must be greater than 0'); - _$$_REQUIRE(_dependencyMap[9], "invariant")(_this._mass > 0, 'Mass value must be greater than 0'); - return _this; - } - (0, _createClass2.default)(SpringAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - var _this$_initialVelocit; - return { - type: 'spring', - overshootClamping: this._overshootClamping, - restDisplacementThreshold: this._restDisplacementThreshold, - restSpeedThreshold: this._restSpeedThreshold, - stiffness: this._stiffness, - damping: this._damping, - mass: this._mass, - initialVelocity: (_this$_initialVelocit = this._initialVelocity) != null ? _this$_initialVelocit : this._lastVelocity, - toValue: this._toValue, - iterations: this.__iterations, - platformConfig: this._platformConfig - }; + function renderDidSuspendDelayIfPossible() { + if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { + workInProgressRootExitStatus = RootSuspendedWithDelay; + } // Check if there are updates that we skipped tree that might have unblocked + // this render. + + if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { + // Mark the current render as suspended so that we switch to working on + // the updates that were skipped. Usually we only suspend at the end of + // the render phase. + // TODO: We should probably always mark the root as suspended immediately + // (inside this function), since by suspending at the end of the render + // phase introduces a potential mistake where we suspend lanes that were + // pinged or updated while we were rendering. + markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - var _this2 = this; - this.__active = true; - this._startPosition = fromValue; - this._lastPosition = this._startPosition; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - this._lastTime = Date.now(); - this._frameTime = 0.0; - if (previousAnimation instanceof SpringAnimation) { - var internalState = previousAnimation.getInternalState(); - this._lastPosition = internalState.lastPosition; - this._lastVelocity = internalState.lastVelocity; - this._initialVelocity = this._lastVelocity; - this._lastTime = internalState.lastTime; + function renderDidError(error) { + if (workInProgressRootExitStatus !== RootSuspendedWithDelay) { + workInProgressRootExitStatus = RootErrored; } - var start = function start() { - if (_this2._useNativeDriver) { - _this2.__startNativeAnimation(animatedValue); - } else { - _this2.onUpdate(); - } - }; - - if (this._delay) { - this._timeout = setTimeout(start, this._delay); + if (workInProgressRootConcurrentErrors === null) { + workInProgressRootConcurrentErrors = [error]; } else { - start(); + workInProgressRootConcurrentErrors.push(error); } + } // Called during render to determine if anything has suspended. + // Returns false if we're not sure. + + function renderHasNotSuspendedYet() { + // If something errored or completed, we can't really be sure, + // so those are false. + return workInProgressRootExitStatus === RootInProgress; } - }, { - key: "getInternalState", - value: function getInternalState() { - return { - lastPosition: this._lastPosition, - lastVelocity: this._lastVelocity, - lastTime: this._lastTime - }; - } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. - }, { - key: "onUpdate", - value: - function onUpdate() { - var MAX_STEPS = 64; - var now = Date.now(); - if (now > this._lastTime + MAX_STEPS) { - now = this._lastTime + MAX_STEPS; - } - var deltaTime = (now - this._lastTime) / 1000; - this._frameTime += deltaTime; - var c = this._damping; - var m = this._mass; - var k = this._stiffness; - var v0 = -this._initialVelocity; - var zeta = c / (2 * Math.sqrt(k * m)); - var omega0 = Math.sqrt(k / m); - var omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); - var x0 = this._toValue - this._startPosition; + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set. + // If we bailout on this work, we'll move them back (like above). + // It's important to move them now in case the work spawns more work at the same priority with different updaters. + // That way we can keep the current update and future updates separate. - var position = 0.0; - var velocity = 0.0; - var t = this._frameTime; - if (zeta < 1) { - var envelope = Math.exp(-zeta * omega0 * t); - position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)); - velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t)); - } else { - var _envelope = Math.exp(-omega0 * t); - position = this._toValue - _envelope * (x0 + (v0 + omega0 * x0) * t); - velocity = _envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0)); + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + prepareFreshStack(root, lanes); } - this._lastTime = now; - this._lastPosition = position; - this._lastVelocity = velocity; - this._onUpdate(position); - if (!this.__active) { - return; + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + if (workInProgress !== null) { + // This is a sync render, so we should have finished the whole tree. + throw new Error("Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); } + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + return workInProgressRootExitStatus; + } // The work loop is an extremely hot path. Tell Closure not to inline it. - var isOvershooting = false; - if (this._overshootClamping && this._stiffness !== 0) { - if (this._startPosition < this._toValue) { - isOvershooting = position > this._toValue; - } else { - isOvershooting = position < this._toValue; - } + /** @noinline */ + + function workLoopSync() { + // Already timed out, so perform work without checking if we need to yield. + while (workInProgress !== null) { + performUnitOfWork(workInProgress); } - var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold; - var isDisplacement = true; - if (this._stiffness !== 0) { - isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold; + } + function renderRootConcurrent(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. + + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + if (memoizedUpdaters.size > 0) { + restorePendingUpdaters(root, workInProgressRootRenderLanes); + memoizedUpdaters.clear(); + } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set. + // If we bailout on this work, we'll move them back (like above). + // It's important to move them now in case the work spawns more work at the same priority with different updaters. + // That way we can keep the current update and future updates separate. + + movePendingFibersToMemoized(root, lanes); + } + } + workInProgressTransitions = getTransitionsForLanes(); + resetRenderTimer(); + prepareFreshStack(root, lanes); } - if (isOvershooting || isVelocity && isDisplacement) { - if (this._stiffness !== 0) { - this._lastPosition = this._toValue; - this._lastVelocity = 0; - this._onUpdate(this._toValue); + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); } - this.__debouncedOnEnd({ - finished: true - }); - return; + } while (true); + resetContextDependencies(); + popDispatcher(prevDispatcher); + executionContext = prevExecutionContext; + if (workInProgress !== null) { + return RootInProgress; + } else { + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; // Return the final exit status. + + return workInProgressRootExitStatus; } - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); } - }, { - key: "stop", - value: function stop() { - (0, _get2.default)((0, _getPrototypeOf2.default)(SpringAnimation.prototype), "stop", this).call(this); - this.__active = false; - clearTimeout(this._timeout); - global.cancelAnimationFrame(this._animationFrame); - this.__debouncedOnEnd({ - finished: false - }); + /** @noinline */ + + function workLoopConcurrent() { + // Perform work until Scheduler asks us to yield + while (workInProgress !== null && !shouldYield()) { + performUnitOfWork(workInProgress); + } } - }]); - return SpringAnimation; - }(_$$_REQUIRE(_dependencyMap[11], "./Animation")); - module.exports = SpringAnimation; -},290,[3,12,13,115,50,47,46,271,273,17,291,292],"node_modules/react-native/Libraries/Animated/animations/SpringAnimation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function performUnitOfWork(unitOfWork) { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. + var current = unitOfWork.alternate; + setCurrentFiber(unitOfWork); + var next; + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + startProfilerTimer(unitOfWork); + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); + } else { + next = beginWork$1(current, unitOfWork, subtreeRenderLanes); + } + resetCurrentFiber(); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + if (next === null) { + // If this doesn't spawn new work, complete the current work. + completeUnitOfWork(unitOfWork); + } else { + workInProgress = next; + } + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + // Attempt to complete the current unit of work, then move to the next + // sibling. If there are no more siblings, return to the parent fiber. + var completedWork = unitOfWork; + do { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. + var current = completedWork.alternate; + var returnFiber = completedWork.return; // Check if the work completed or if something threw. - 'use strict'; + if ((completedWork.flags & Incomplete) === NoFlags) { + setCurrentFiber(completedWork); + var next = void 0; + if ((completedWork.mode & ProfileMode) === NoMode) { + next = completeWork(current, completedWork, subtreeRenderLanes); + } else { + startProfilerTimer(completedWork); + next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error. - function stiffnessFromOrigamiValue(oValue) { - return (oValue - 30) * 3.62 + 194; - } - function dampingFromOrigamiValue(oValue) { - return (oValue - 8) * 3 + 25; - } - function fromOrigamiTensionAndFriction(tension, friction) { - return { - stiffness: stiffnessFromOrigamiValue(tension), - damping: dampingFromOrigamiValue(friction) - }; - } - function fromBouncinessAndSpeed(bounciness, speed) { - function normalize(value, startValue, endValue) { - return (value - startValue) / (endValue - startValue); - } - function projectNormal(n, start, end) { - return start + n * (end - start); - } - function linearInterpolation(t, start, end) { - return t * end + (1 - t) * start; - } - function quadraticOutInterpolation(t, start, end) { - return linearInterpolation(2 * t - t * t, start, end); - } - function b3Friction1(x) { - return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28; - } - function b3Friction2(x) { - return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2; - } - function b3Friction3(x) { - return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84; - } - function b3Nobounce(tension) { - if (tension <= 18) { - return b3Friction1(tension); - } else if (tension > 18 && tension <= 44) { - return b3Friction2(tension); - } else { - return b3Friction3(tension); - } - } - var b = normalize(bounciness / 1.7, 0, 20); - b = projectNormal(b, 0, 0.8); - var s = normalize(speed / 1.7, 0, 20); - var bouncyTension = projectNormal(s, 0.5, 200); - var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01); - return { - stiffness: stiffnessFromOrigamiValue(bouncyTension), - damping: dampingFromOrigamiValue(bouncyFriction) - }; - } - module.exports = { - fromOrigamiTensionAndFriction: fromOrigamiTensionAndFriction, - fromBouncinessAndSpeed: fromBouncinessAndSpeed - }; -},291,[],"node_modules/react-native/Libraries/Animated/SpringConfig.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + } + resetCurrentFiber(); + if (next !== null) { + // Completing this fiber spawned new work. Work on that next. + workInProgress = next; + return; + } + } else { + // This fiber did not complete because something threw. Pop values off + // the stack without entering the complete phase. If this is a boundary, + // capture values if possible. + var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes. - 'use strict'; + if (_next !== null) { + // If completing this work spawned new work, do that next. We'll come + // back here again. + // Since we're restarting, remove anything that is not a host effect + // from the effect tag. + _next.flags &= HostEffectMask; + workInProgress = _next; + return; + } + if ((completedWork.mode & ProfileMode) !== NoMode) { + // Record the render duration for the fiber that errored. + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing. - var startNativeAnimationNextId = 1; + var actualDuration = completedWork.actualDuration; + var child = completedWork.child; + while (child !== null) { + actualDuration += child.actualDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + } + if (returnFiber !== null) { + // Mark the parent fiber as incomplete and clear its subtree flags. + returnFiber.flags |= Incomplete; + returnFiber.subtreeFlags = NoFlags; + returnFiber.deletions = null; + } else { + // We've unwound all the way to the root. + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + return; + } + } + var siblingFiber = completedWork.sibling; + if (siblingFiber !== null) { + // If there is more work to do in this returnFiber, do that next. + workInProgress = siblingFiber; + return; + } // Otherwise, return to the parent - var Animation = function () { - function Animation() { - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, Animation); - } - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(Animation, [{ - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} - }, { - key: "stop", - value: function stop() { - if (this.__nativeId) { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.stopAnimation(this.__nativeId); + completedWork = returnFiber; // Update the next thing we're working on in case something throws. + + workInProgress = completedWork; + } while (completedWork !== null); // We've reached the root. + + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootCompleted; } } - }, { - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - throw new Error('This animation type cannot be offloaded to native'); - } - }, { - key: "__debouncedOnEnd", - value: - function __debouncedOnEnd(result) { - var onEnd = this.__onEnd; - this.__onEnd = null; - onEnd && onEnd(result); - } - }, { - key: "__startNativeAnimation", - value: function __startNativeAnimation(animatedValue) { - var startNativeAnimationWaitId = startNativeAnimationNextId + ":startAnimation"; - startNativeAnimationNextId += 1; - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.setWaitingForIdentifier(startNativeAnimationWaitId); + function commitRoot(root, recoverableErrors, transitions) { + // TODO: This no longer makes any sense. We already wrap the mutation and + // layout phases. Should be able to remove. + var previousUpdateLanePriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig$2.transition; try { - var config = this.__getNativeAnimationConfig(); - animatedValue.__makeNative(config.platformConfig); - this.__nativeId = _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").generateNewAnimationId(); - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.startAnimatingNode(this.__nativeId, animatedValue.__getNativeTag(), config, - this.__debouncedOnEnd.bind(this)); - } catch (e) { - throw e; + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); } finally { - _$$_REQUIRE(_dependencyMap[2], "../NativeAnimatedHelper").API.unsetWaitingForIdentifier(startNativeAnimationWaitId); + ReactCurrentBatchConfig$2.transition = prevTransition; + setCurrentUpdatePriority(previousUpdateLanePriority); } + return null; } - }]); - return Animation; - }(); - module.exports = Animation; -},292,[12,13,273],"node_modules/react-native/Libraries/Animated/animations/Animation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which + // means `flushPassiveEffects` will sometimes result in additional + // passive effects. So we need to keep flushing in a loop until there are + // no more pending effects. + // TODO: Might be better if `flushPassiveEffects` did not automatically + // flush synchronous work at the end, to avoid factoring hazards like this. + flushPassiveEffects(); + } while (rootWithPendingPassiveEffects !== null); + flushRenderPhaseStrictModeWarningsInDEV(); + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + var finishedWork = root.finishedWork; + var lanes = root.finishedLanes; + if (finishedWork === null) { + return null; + } else { + { + if (lanes === NoLanes) { + error("root.finishedLanes should not be empty during a commit. This is a " + "bug in React."); + } + } + } + root.finishedWork = null; + root.finishedLanes = NoLanes; + if (finishedWork === root.current) { + throw new Error("Cannot commit the same tree as before. This error is likely caused by " + "a bug in React. Please file an issue."); + } // commitRoot never returns a continuation; it always finishes synchronously. + // So we can clear these now to allow a new callback to be scheduled. - 'use strict'; + root.callbackNode = null; + root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first + // pending time is whatever is left on the root fiber. - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _get2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/get")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _AnimatedColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../nodes/AnimatedColor")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var _easeInOut; - function easeInOut() { - if (!_easeInOut) { - var Easing = _$$_REQUIRE(_dependencyMap[8], "../Easing"); - _easeInOut = Easing.inOut(Easing.ease); - } - return _easeInOut; - } - var TimingAnimation = function (_Animation) { - (0, _inherits2.default)(TimingAnimation, _Animation); - var _super = _createSuper(TimingAnimation); - function TimingAnimation(config) { - var _config$easing, _config$duration, _config$delay, _config$iterations, _config$isInteraction; - var _this; - (0, _classCallCheck2.default)(this, TimingAnimation); - _this = _super.call(this); - _this._toValue = config.toValue; - _this._easing = (_config$easing = config.easing) != null ? _config$easing : easeInOut(); - _this._duration = (_config$duration = config.duration) != null ? _config$duration : 500; - _this._delay = (_config$delay = config.delay) != null ? _config$delay : 0; - _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; - _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[9], "../NativeAnimatedHelper").shouldUseNativeDriver(config); - _this._platformConfig = config.platformConfig; - _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; - return _this; - } - (0, _createClass2.default)(TimingAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - var frameDuration = 1000.0 / 60.0; - var frames = []; - var numFrames = Math.round(this._duration / frameDuration); - for (var frame = 0; frame < numFrames; frame++) { - frames.push(this._easing(frame / numFrames)); - } - frames.push(this._easing(1)); - return { - type: 'frames', - frames: frames, - toValue: this._toValue, - iterations: this.__iterations, - platformConfig: this._platformConfig - }; - } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - var _this2 = this; - this.__active = true; - this._fromValue = fromValue; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - var start = function start() { - if (_this2._duration === 0 && !_this2._useNativeDriver) { - _this2._onUpdate(_this2._toValue); - _this2.__debouncedOnEnd({ - finished: true + var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); + markRootFinished(root, remainingLanes); + if (root === workInProgressRoot) { + // We can reset these now that they are finished. + workInProgressRoot = null; + workInProgress = null; + workInProgressRootRenderLanes = NoLanes; + } // If there are pending passive effects, schedule a callback to process them. + // Do this as early as possible, so it is queued before anything else that + // might get scheduled in the commit phase. (See #16714.) + // TODO: Delete all other places that schedule the passive effect callback + // They're redundant. + + if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + // to store it in pendingPassiveTransitions until they get processed + // We need to pass this through as an argument to commitRoot + // because workInProgressTransitions might have changed between + // the previous render and commit if we throttle the commit + // with setTimeout + + pendingPassiveTransitions = transitions; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); // This render triggered passive effects: release the root cache pool + // *after* passive effects fire to avoid freeing a cache pool that may + // be referenced by a node in the tree (HostRoot, Cache boundary etc) + + return null; }); - } else { - _this2._startTime = Date.now(); - if (_this2._useNativeDriver) { - _this2.__startNativeAnimation(animatedValue); - } else { - _this2._animationFrame = requestAnimationFrame( - _this2.onUpdate.bind(_this2)); - } } - }; - if (this._delay) { - this._timeout = setTimeout(start, this._delay); + } // Check if there are any effects in the whole tree. + // TODO: This is left over from the effect list implementation, where we had + // to check for the existence of `firstEffect` to satisfy Flow. I think the + // only other reason this optimization exists is because it affects profiling. + // Reconsider whether this is necessary. + + var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + if (subtreeHasEffects || rootHasEffect) { + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var prevExecutionContext = executionContext; + executionContext |= CommitContext; // Reset this to null before calling lifecycles + + ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + // of the effect list for each phase: all mutation effects come before all + // layout effects, and so on. + // The first phase a "before mutation" phase. We use this phase to read the + // state of the host tree right before we mutate it. This is where + // getSnapshotBeforeUpdate is called. + + var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork); + { + // Mark the current commit time to be shared by all Profilers in this + // batch. This enables them to be grouped later. + recordCommitTime(); + } + commitMutationEffects(root, finishedWork, lanes); + resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after + // the mutation phase, so that the previous tree is still current during + // componentWillUnmount, but before the layout phase, so that the finished + // work is current during componentDidMount/Update. + + root.current = finishedWork; // The next phase is the layout phase, where we call effects that read + + commitLayoutEffects(finishedWork, root, lanes); + // opportunity to paint. + + requestPaint(); + executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. + + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; } else { - start(); + // No effects. + root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were + // no effects. + // TODO: Maybe there's a better way to report this. + + { + recordCommitTime(); + } } - } - }, { - key: "onUpdate", - value: function onUpdate() { - var now = Date.now(); - if (now >= this._startTime + this._duration) { - if (this._duration === 0) { - this._onUpdate(this._toValue); - } else { - this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)); + if (rootDoesHavePassiveEffects) { + // This commit has passive effects. Stash a reference to them. But don't + // schedule a callback until after flushing layout work. + rootDoesHavePassiveEffects = false; + rootWithPendingPassiveEffects = root; + pendingPassiveEffectsLanes = lanes; + } else { + { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; } - this.__debouncedOnEnd({ - finished: true - }); - return; + } // Read this again, since an effect might have updated it + + remainingLanes = root.pendingLanes; // Check if there's remaining work on this root + // TODO: This is part of the `componentDidCatch` implementation. Its purpose + // is to detect whether something might have called setState inside + // `componentDidCatch`. The mechanism is known to be flawed because `setState` + // inside `componentDidCatch` is itself flawed โ€” that's why we recommend + // `getDerivedStateFromError` instead. However, it could be improved by + // checking if remainingLanes includes Sync work, instead of whether there's + // any work remaining at all (which would also include stuff like Suspense + // retries or transitions). It's been like this for a while, though, so fixing + // it probably isn't that urgent. + + if (remainingLanes === NoLanes) { + // If there's no remaining work, we can clear the set of already failed + // error boundaries. + legacyErrorBoundariesThatAlreadyFailed = null; } - this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)); - if (this.__active) { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + { + if (isDevToolsPresent) { + root.memoizedUpdaters.clear(); + } } - } - }, { - key: "stop", - value: function stop() { - (0, _get2.default)((0, _getPrototypeOf2.default)(TimingAnimation.prototype), "stop", this).call(this); - this.__active = false; - clearTimeout(this._timeout); - global.cancelAnimationFrame(this._animationFrame); - this.__debouncedOnEnd({ - finished: false - }); - } - }]); - return TimingAnimation; - }(_$$_REQUIRE(_dependencyMap[10], "./Animation")); - module.exports = TimingAnimation; -},293,[3,12,13,115,50,47,46,271,294,273,292],"node_modules/react-native/Libraries/Animated/animations/TimingAnimation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + // additional work on this root is scheduled. - 'use strict'; + ensureRootIsScheduled(root, now()); + if (recoverableErrors !== null) { + // There were errors during this render, but recovered from them without + // needing to surface it to the UI. We log them here. + var onRecoverableError = root.onRecoverableError; + for (var i = 0; i < recoverableErrors.length; i++) { + var recoverableError = recoverableErrors[i]; + var componentStack = recoverableError.stack; + var digest = recoverableError.digest; + onRecoverableError(recoverableError.value, { + componentStack: componentStack, + digest: digest + }); + } + } + if (hasUncaughtError) { + hasUncaughtError = false; + var error$1 = firstUncaughtError; + firstUncaughtError = null; + throw error$1; + } // If the passive effects are the result of a discrete render, flush them + // synchronously at the end of the current task so that the result is + // immediately observable. Otherwise, we assume that they are not + // order-dependent and do not need to be observed by external systems, so we + // can wait until after paint. + // TODO: We can optimize this by not scheduling the callback earlier. Since we + // currently schedule the callback in multiple places, will wait until those + // are consolidated. - var _ease; + if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { + flushPassiveEffects(); + } // Read this again, since a passive effect might have updated it - var Easing = { - step0: function step0(n) { - return n > 0 ? 1 : 0; - }, - step1: function step1(n) { - return n >= 1 ? 1 : 0; - }, - linear: function linear(t) { - return t; - }, - ease: function ease(t) { - if (!_ease) { - _ease = Easing.bezier(0.42, 0, 1, 1); - } - return _ease(t); - }, - quad: function quad(t) { - return t * t; - }, - cubic: function cubic(t) { - return t * t * t; - }, - poly: function poly(n) { - return function (t) { - return Math.pow(t, n); - }; - }, - sin: function sin(t) { - return 1 - Math.cos(t * Math.PI / 2); - }, - circle: function circle(t) { - return 1 - Math.sqrt(1 - t * t); - }, - exp: function exp(t) { - return Math.pow(2, 10 * (t - 1)); - }, - elastic: function elastic() { - var bounciness = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - var p = bounciness * Math.PI; - return function (t) { - return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); - }; - }, - back: function back() { - var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1.70158; - return function (t) { - return t * t * ((s + 1) * t - s); - }; - }, - bounce: function bounce(t) { - if (t < 1 / 2.75) { - return 7.5625 * t * t; - } - if (t < 2 / 2.75) { - var _t = t - 1.5 / 2.75; - return 7.5625 * _t * _t + 0.75; - } - if (t < 2.5 / 2.75) { - var _t2 = t - 2.25 / 2.75; - return 7.5625 * _t2 * _t2 + 0.9375; - } - var t2 = t - 2.625 / 2.75; - return 7.5625 * t2 * t2 + 0.984375; - }, - bezier: function bezier(x1, y1, x2, y2) { - var _bezier = _$$_REQUIRE(_dependencyMap[0], "./bezier"); - return _bezier(x1, y1, x2, y2); - }, - in: function _in(easing) { - return easing; - }, - out: function out(easing) { - return function (t) { - return 1 - easing(1 - t); - }; - }, - inOut: function inOut(easing) { - return function (t) { - if (t < 0.5) { - return easing(t * 2) / 2; - } - return 1 - easing((1 - t) * 2) / 2; - }; - } - }; - module.exports = Easing; -},294,[295],"node_modules/react-native/Libraries/Animated/Easing.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var NEWTON_ITERATIONS = 4; - var NEWTON_MIN_SLOPE = 0.001; - var SUBDIVISION_PRECISION = 0.0000001; - var SUBDIVISION_MAX_ITERATIONS = 10; - var kSplineTableSize = 11; - var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); - var float32ArraySupported = typeof Float32Array === 'function'; - function A(aA1, aA2) { - return 1.0 - 3.0 * aA2 + 3.0 * aA1; - } - function B(aA1, aA2) { - return 3.0 * aA2 - 6.0 * aA1; - } - function C(aA1) { - return 3.0 * aA1; - } - - function calcBezier(aT, aA1, aA2) { - return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; - } + remainingLanes = root.pendingLanes; + if (includesSomeLane(remainingLanes, SyncLane)) { + { + markNestedUpdateScheduled(); + } // Count the number of times the root synchronously re-renders without + // finishing. If there are too many, it indicates an infinite update loop. - function getSlope(aT, aA1, aA2) { - return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); - } - function binarySubdivide(aX, _aA, _aB, mX1, mX2) { - var currentX, - currentT, - i = 0, - aA = _aA, - aB = _aB; - do { - currentT = aA + (aB - aA) / 2.0; - currentX = calcBezier(currentT, mX1, mX2) - aX; - if (currentX > 0.0) { - aB = currentT; - } else { - aA = currentT; - } - } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); - return currentT; - } - function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) { - var aGuessT = _aGuessT; - for (var i = 0; i < NEWTON_ITERATIONS; ++i) { - var currentSlope = getSlope(aGuessT, mX1, mX2); - if (currentSlope === 0.0) { - return aGuessT; - } - var currentX = calcBezier(aGuessT, mX1, mX2) - aX; - aGuessT -= currentX / currentSlope; - } - return aGuessT; - } - module.exports = function bezier(mX1, mY1, mX2, mY2) { - if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) { - throw new Error('bezier x values must be in [0, 1] range'); - } + if (root === rootWithNestedUpdates) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + rootWithNestedUpdates = root; + } + } else { + nestedUpdateCount = 0; + } // If layout work was scheduled, flush it now. - var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize); - if (mX1 !== mY1 || mX2 !== mY2) { - for (var i = 0; i < kSplineTableSize; ++i) { - sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); - } - } - function getTForX(aX) { - var intervalStart = 0.0; - var currentSample = 1; - var lastSample = kSplineTableSize - 1; - for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { - intervalStart += kSampleStepSize; + flushSyncCallbacks(); + return null; } - --currentSample; + function flushPassiveEffects() { + // Returns whether passive effects were flushed. + // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should + // probably just combine the two functions. I believe they were only separate + // in the first place because we used to wrap it with + // `Scheduler.runWithPriority`, which accepts a function. But now we track the + // priority within React itself, so we can mutate the variable directly. + if (rootWithPendingPassiveEffects !== null) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); + var priority = lowerEventPriority(DefaultEventPriority, renderPriority); + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(priority); + return flushPassiveEffectsImpl(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; // Once passive effects have run for the tree - giving components a + } + } - var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); - var guessForT = intervalStart + dist * kSampleStepSize; - var initialSlope = getSlope(guessForT, mX1, mX2); - if (initialSlope >= NEWTON_MIN_SLOPE) { - return newtonRaphsonIterate(aX, guessForT, mX1, mX2); - } else if (initialSlope === 0.0) { - return guessForT; - } else { - return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); - } - } - return function BezierEasing(x) { - if (mX1 === mY1 && mX2 === mY2) { - return x; - } - if (x === 0) { - return 0; + return false; } - if (x === 1) { - return 1; + function enqueuePendingPassiveProfilerEffect(fiber) { + { + pendingPassiveProfilerEffects.push(fiber); + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + scheduleCallback$1(NormalPriority, function () { + flushPassiveEffects(); + return null; + }); + } + } } - return calcBezier(getTForX(x), mY1, mY2); - }; - }; -},295,[],"node_modules/react-native/Libraries/Animated/bezier.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function flushPassiveEffectsImpl() { + if (rootWithPendingPassiveEffects === null) { + return false; + } // Cache and clear the transitions flag - 'use strict'; + var transitions = pendingPassiveTransitions; + pendingPassiveTransitions = null; + var root = rootWithPendingPassiveEffects; + var lanes = pendingPassiveEffectsLanes; + rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects. + // Figure out why and fix it. It's not causing any known issues (probably + // because it's only used for profiling), but it's a refactor hazard. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var DecayAnimation = function (_Animation) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(DecayAnimation, _Animation); - var _super = _createSuper(DecayAnimation); - function DecayAnimation(config) { - var _config$deceleration, _config$isInteraction, _config$iterations; - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, DecayAnimation); - _this = _super.call(this); - _this._deceleration = (_config$deceleration = config.deceleration) != null ? _config$deceleration : 0.998; - _this._velocity = config.velocity; - _this._useNativeDriver = _$$_REQUIRE(_dependencyMap[4], "../NativeAnimatedHelper").shouldUseNativeDriver(config); - _this._platformConfig = config.platformConfig; - _this.__isInteraction = (_config$isInteraction = config.isInteraction) != null ? _config$isInteraction : !_this._useNativeDriver; - _this.__iterations = (_config$iterations = config.iterations) != null ? _config$iterations : 1; - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(DecayAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - return { - type: 'decay', - deceleration: this._deceleration, - velocity: this._velocity, - iterations: this.__iterations, - platformConfig: this._platformConfig - }; - } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - this.__active = true; - this._lastValue = fromValue; - this._fromValue = fromValue; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - this._startTime = Date.now(); - if (this._useNativeDriver) { - this.__startNativeAnimation(animatedValue); - } else { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); - } - } - }, { - key: "onUpdate", - value: function onUpdate() { - var now = Date.now(); - var value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime))); - this._onUpdate(value); - if (Math.abs(this._lastValue - value) < 0.1) { - this.__debouncedOnEnd({ - finished: true - }); - return; + pendingPassiveEffectsLanes = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Cannot flush passive effects while already rendering."); } - this._lastValue = value; - if (this.__active) { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + { + isFlushingPassiveEffects = true; + didScheduleUpdateDuringPassiveEffects = false; } - } - }, { - key: "stop", - value: function stop() { - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(DecayAnimation.prototype), "stop", this).call(this); - this.__active = false; - global.cancelAnimationFrame(this._animationFrame); - this.__debouncedOnEnd({ - finished: false - }); - } - }]); - return DecayAnimation; - }(_$$_REQUIRE(_dependencyMap[7], "./Animation")); - module.exports = DecayAnimation; -},296,[46,47,50,12,273,13,115,292],"node_modules/react-native/Libraries/Animated/animations/DecayAnimation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitPassiveUnmountEffects(root.current); + commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects - function attachNativeEvent(viewRef, eventName, argMapping, platformConfig) { - var eventMappings = []; - var traverse = function traverse(value, path) { - if (value instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { - value.__makeNative(platformConfig); - eventMappings.push({ - nativeEventPath: path, - animatedValueTag: value.__getNativeTag() - }); - } else if (value instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { - traverse(value.x, path.concat('x')); - traverse(value.y, path.concat('y')); - } else if (typeof value === 'object') { - for (var _key in value) { - traverse(value[_key], path.concat(_key)); + { + var profilerEffects = pendingPassiveProfilerEffects; + pendingPassiveProfilerEffects = []; + for (var i = 0; i < profilerEffects.length; i++) { + var _fiber = profilerEffects[i]; + commitPassiveEffectDurations(root, _fiber); + } } - } - }; - _$$_REQUIRE(_dependencyMap[2], "invariant")(argMapping[0] && argMapping[0].nativeEvent, 'Native driven events only support animated values contained inside `nativeEvent`.'); + executionContext = prevExecutionContext; + flushSyncCallbacks(); + { + // If additional passive effects were scheduled, increment a counter. If this + // exceeds the limit, we'll fire a warning. + if (didScheduleUpdateDuringPassiveEffects) { + if (root === rootWithPassiveNestedUpdates) { + nestedPassiveUpdateCount++; + } else { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = root; + } + } else { + nestedPassiveUpdateCount = 0; + } + isFlushingPassiveEffects = false; + didScheduleUpdateDuringPassiveEffects = false; + } // TODO: Move to commitPassiveMountEffects - traverse(argMapping[0].nativeEvent, []); - var viewTag = _$$_REQUIRE(_dependencyMap[3], "../Renderer/shims/ReactNative").findNodeHandle(viewRef); - if (viewTag != null) { - eventMappings.forEach(function (mapping) { - _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").API.addAnimatedEventToView(viewTag, eventName, mapping); - }); - } - return { - detach: function detach() { - if (viewTag != null) { - eventMappings.forEach(function (mapping) { - _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").API.removeAnimatedEventFromView(viewTag, eventName, - mapping.animatedValueTag); - }); + onPostCommitRoot(root); + { + var stateNode = root.current.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; } + return true; } - }; - } - function validateMapping(argMapping, args) { - var validate = function validate(recMapping, recEvt, key) { - if (recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt === 'number', 'Bad mapping of event key ' + key + ', should be number but got ' + typeof recEvt); - return; - } - if (recMapping instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt.x === 'number' && typeof recEvt.y === 'number', 'Bad mapping of event key ' + key + ', should be XY but got ' + recEvt); - return; - } - if (typeof recEvt === 'number') { - _$$_REQUIRE(_dependencyMap[2], "invariant")(recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue"), 'Bad mapping of type ' + typeof recMapping + ' for key ' + key + ', event value must map to AnimatedValue'); - return; - } - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recMapping === 'object', 'Bad mapping of type ' + typeof recMapping + ' for key ' + key); - _$$_REQUIRE(_dependencyMap[2], "invariant")(typeof recEvt === 'object', 'Bad event of type ' + typeof recEvt + ' for key ' + key); - for (var mappingKey in recMapping) { - validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey); + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); } - }; - _$$_REQUIRE(_dependencyMap[2], "invariant")(args.length >= argMapping.length, 'Event has less arguments than mapping'); - argMapping.forEach(function (mapping, idx) { - validate(mapping, args[idx], 'arg' + idx); - }); - } - var AnimatedEvent = function () { - function AnimatedEvent(argMapping, config) { - var _this = this; - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/classCallCheck")(this, AnimatedEvent); - this._listeners = []; - this._callListeners = function () { - for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { - args[_key2] = arguments[_key2]; + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); } - _this._listeners.forEach(function (listener) { - return listener.apply(void 0, args); - }); - }; - this._argMapping = argMapping; - if (config == null) { - console.warn('Animated.event now requires a second argument for options'); - config = { - useNativeDriver: false - }; - } - if (config.listener) { - this.__addListener(config.listener); - } - this._attachedEvent = null; - this.__isNative = _$$_REQUIRE(_dependencyMap[4], "./NativeAnimatedHelper").shouldUseNativeDriver(config); - this.__platformConfig = config.platformConfig; - } - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedEvent, [{ - key: "__addListener", - value: function __addListener(callback) { - this._listeners.push(callback); - } - }, { - key: "__removeListener", - value: function __removeListener(callback) { - this._listeners = this._listeners.filter(function (listener) { - return listener !== callback; - }); } - }, { - key: "__attach", - value: function __attach(viewRef, eventName) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(this.__isNative, 'Only native driven events need to be attached.'); - this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping, this.__platformConfig); + function prepareToThrowUncaughtError(error) { + if (!hasUncaughtError) { + hasUncaughtError = true; + firstUncaughtError = error; + } } - }, { - key: "__detach", - value: function __detach(viewTag, eventName) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(this.__isNative, 'Only native driven events need to be detached.'); - this._attachedEvent && this._attachedEvent.detach(); + var onUncaughtError = prepareToThrowUncaughtError; + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + var errorInfo = createCapturedValueAtFiber(error, sourceFiber); + var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); + var eventTime = requestEventTime(); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } } - }, { - key: "__getHandler", - value: function __getHandler() { - var _this2 = this; - if (this.__isNative) { - if (__DEV__) { - var _validatedMapping = false; - return function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { - args[_key3] = arguments[_key3]; - } - if (!_validatedMapping) { - validateMapping(_this2._argMapping, args); - _validatedMapping = true; - } - _this2._callListeners.apply(_this2, args); - }; - } else { - return this._callListeners; - } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { + { + reportUncaughtErrorInDEV(error$1); + setIsRunningInsertionEffect(false); } - var validatedMapping = false; - return function () { - for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { - args[_key4] = arguments[_key4]; - } - if (__DEV__ && !validatedMapping) { - validateMapping(_this2._argMapping, args); - validatedMapping = true; - } - var traverse = function traverse(recMapping, recEvt) { - if (recMapping instanceof _$$_REQUIRE(_dependencyMap[0], "./nodes/AnimatedValue")) { - if (typeof recEvt === 'number') { - recMapping.setValue(recEvt); - } - } else if (recMapping instanceof _$$_REQUIRE(_dependencyMap[1], "./nodes/AnimatedValueXY")) { - if (typeof recEvt === 'object') { - traverse(recMapping.x, recEvt.x); - traverse(recMapping.y, recEvt.y); - } - } else if (typeof recMapping === 'object') { - for (var mappingKey in recMapping) { - traverse(recMapping[mappingKey], recEvt[mappingKey]); + if (sourceFiber.tag === HostRoot) { + // Error was thrown at the root. There is no parent, so the root + // itself should capture it. + captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); + return; + } + var fiber = null; + { + fiber = sourceFiber.return; + } + while (fiber !== null) { + if (fiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1); + return; + } else if (fiber.tag === ClassComponent) { + var ctor = fiber.type; + var instance = fiber.stateNode; + if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); + var eventTime = requestEventTime(); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); } + return; } - }; - _this2._argMapping.forEach(function (mapping, idx) { - traverse(mapping, args[idx]); - }); - _this2._callListeners.apply(_this2, args); - }; + } + fiber = fiber.return; + } + { + // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning + // will fire for errors that are thrown by destroy functions inside deleted + // trees. What it should instead do is propagate the error to the parent of + // the deleted tree. In the meantime, do not add this warning to the + // allowlist; this is only for our internal use. + error("Internal React error: Attempted to capture a commit phase error " + "inside a detached tree. This indicates a bug in React. Likely " + "causes include deleting the same fiber more than once, committing an " + "already-finished tree, or an inconsistent return pointer.\n\n" + "Error message:\n\n%s", error$1); + } } - }]); - return AnimatedEvent; - }(); - module.exports = { - AnimatedEvent: AnimatedEvent, - attachNativeEvent: attachNativeEvent - }; -},297,[272,281,17,34,273,12,13],"node_modules/react-native/Libraries/Animated/AnimatedEvent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var createAnimatedComponentInjection = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./createAnimatedComponentInjection")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js", - _createAnimatedCompon; - var _excluded = ["style"], - _excluded2 = ["style"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[8], "react"); - var animatedComponentNextId = 1; - function createAnimatedComponent(Component) { - _$$_REQUIRE(_dependencyMap[9], "invariant")(typeof Component !== 'function' || Component.prototype && Component.prototype.isReactComponent, '`createAnimatedComponent` does not support stateless functional components; ' + 'use a class component instead.'); - var AnimatedComponent = function (_React$Component) { - (0, _inherits2.default)(AnimatedComponent, _React$Component); - var _super = _createSuper(AnimatedComponent); - function AnimatedComponent() { - var _this; - (0, _classCallCheck2.default)(this, AnimatedComponent); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + if (pingCache !== null) { + // The wakeable resolved, so we no longer need to memoize, because it will + // never be thrown again. + pingCache.delete(wakeable); } - _this = _super.call.apply(_super, [this].concat(args)); - _this._invokeAnimatedPropsCallbackOnMount = false; - _this._eventDetachers = []; - _this._animatedComponentId = animatedComponentNextId++ + ":animatedComponent"; - _this._isFabric = function () { - var _this$_component$_int, _this$_component$_int2, _this$_component$getN, _this$_component$getN2, _this$_component$getS, _this$_component$getS2; - if (_this._component == null) { - return false; - } - return ( - ((_this$_component$_int = _this._component['_internalInstanceHandle']) == null ? void 0 : (_this$_component$_int2 = _this$_component$_int.stateNode) == null ? void 0 : _this$_component$_int2.canonical) != null || - _this._component.getNativeScrollRef != null && _this._component.getNativeScrollRef() != null && - ((_this$_component$getN = _this._component.getNativeScrollRef()['_internalInstanceHandle']) == null ? void 0 : (_this$_component$getN2 = _this$_component$getN.stateNode) == null ? void 0 : _this$_component$getN2.canonical) != null || _this._component.getScrollResponder != null && _this._component.getScrollResponder() != null && _this._component.getScrollResponder().getNativeScrollRef != null && _this._component.getScrollResponder().getNativeScrollRef() != null && ((_this$_component$getS = _this._component.getScrollResponder().getNativeScrollRef()[ - '_internalInstanceHandle']) == null ? void 0 : (_this$_component$getS2 = _this$_component$getS.stateNode) == null ? void 0 : _this$_component$getS2.canonical) != null - ); - }; - _this._waitForUpdate = function () { - if (_this._isFabric()) { - _$$_REQUIRE(_dependencyMap[10], "./NativeAnimatedHelper").API.setWaitingForIdentifier(_this._animatedComponentId); - } - }; - _this._markUpdateComplete = function () { - if (_this._isFabric()) { - _$$_REQUIRE(_dependencyMap[10], "./NativeAnimatedHelper").API.unsetWaitingForIdentifier(_this._animatedComponentId); - } - }; - _this._animatedPropsCallback = function () { - if (_this._component == null) { - _this._invokeAnimatedPropsCallbackOnMount = true; - } else if (process.env.NODE_ENV === 'test' || - typeof _this._component.setNativeProps !== 'function' || - _this._isFabric()) { - _this.forceUpdate(); - } else if (!_this._propsAnimated.__isNative) { - _this._component.setNativeProps(_this._propsAnimated.__getAnimatedValue()); + var eventTime = requestEventTime(); + markRootPinged(root, pingedLanes); + warnIfSuspenseResolutionNotWrappedWithActDEV(root); + if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { + // Received a ping at the same priority level at which we're currently + // rendering. We might want to restart this render. This should mirror + // the logic of whether or not a root suspends once it completes. + // TODO: If we're rendering sync either due to Sync, Batched or expired, + // we should probably never restart. + // If we're suspended with delay, or if it's a retry, we'll always suspend + // so we can always restart. + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + // Restart from the root. + prepareFreshStack(root, NoLanes); } else { - 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`'); - } - }; - _this._setComponentRef = _$$_REQUIRE(_dependencyMap[11], "../Utilities/setAndForwardRef")({ - getForwardedRef: function getForwardedRef() { - return _this.props.forwardedRef; - }, - setLocalRef: function setLocalRef(ref) { - _this._prevComponent = _this._component; - _this._component = ref; + // Even though we can't restart right now, we might get an + // opportunity later. So we mark this render as having a ping. + workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); } - }); - return _this; + } + ensureRootIsScheduled(root, eventTime); } - (0, _createClass2.default)(AnimatedComponent, [{ - key: "_attachNativeEvents", - value: function _attachNativeEvents() { - var _this$_component, - _this2 = this; - var scrollableNode = (_this$_component = this._component) != null && _this$_component.getScrollableNode ? this._component.getScrollableNode() : this._component; - var _loop = function _loop(key) { - var prop = _this2.props[key]; - if (prop instanceof _$$_REQUIRE(_dependencyMap[12], "./AnimatedEvent").AnimatedEvent && prop.__isNative) { - prop.__attach(scrollableNode, key); - _this2._eventDetachers.push(function () { - return prop.__detach(scrollableNode, key); - }); - } - }; - for (var key in this.props) { - _loop(key); - } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + // The boundary fiber (a Suspense component or SuspenseList component) + // previously was rendered in its fallback state. One of the promises that + // suspended it has resolved, which means at least part of the tree was + // likely unblocked. Try rendering again, at a new lanes. + if (retryLane === NoLane) { + // TODO: Assign this to `suspenseState.retryLane`? to avoid + // unnecessary entanglement? + retryLane = requestRetryLane(boundaryFiber); + } // TODO: Special case idle priority? + + var eventTime = requestEventTime(); + var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); + if (root !== null) { + markRootUpdated(root, retryLane, eventTime); + ensureRootIsScheduled(root, eventTime); } - }, { - key: "_detachNativeEvents", - value: function _detachNativeEvents() { - this._eventDetachers.forEach(function (remove) { - return remove(); - }); - this._eventDetachers = []; + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState; + var retryLane = NoLane; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; } - }, { - key: "_attachProps", - value: function _attachProps(nextProps) { - var oldPropsAnimated = this._propsAnimated; - this._propsAnimated = new (_$$_REQUIRE(_dependencyMap[13], "./nodes/AnimatedProps"))(nextProps, this._animatedPropsCallback); - this._propsAnimated.__attach(); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = NoLane; // Default - if (oldPropsAnimated) { - oldPropsAnimated.__restoreDefaultValues(); - oldPropsAnimated.__detach(); - } + var retryCache; + switch (boundaryFiber.tag) { + case SuspenseComponent: + retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + break; + case SuspenseListComponent: + retryCache = boundaryFiber.stateNode; + break; + default: + throw new Error("Pinged unknown suspense boundary type. " + "This is probably a bug in React."); } - }, { - key: "render", - value: function render() { - var initialPropsIfFabric = this._isFabric() ? this._initialAnimatedProps : null; - var animatedProps = this._propsAnimated.__getValue(initialPropsIfFabric) || {}; - if (!this._initialAnimatedProps) { - this._initialAnimatedProps = animatedProps; - } - var _animatedProps$style = animatedProps.style, - style = _animatedProps$style === void 0 ? {} : _animatedProps$style, - props = (0, _objectWithoutProperties2.default)(animatedProps, _excluded); - var _ref = this.props.passthroughAnimatedPropExplicitValues || {}, - _ref$style = _ref.style, - passthruStyle = _ref$style === void 0 ? {} : _ref$style, - passthruProps = (0, _objectWithoutProperties2.default)(_ref, _excluded2); - var mergedStyle = Object.assign({}, style, passthruStyle); - - return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(Component, Object.assign({}, props, passthruProps, { - collapsable: false, - style: mergedStyle, - ref: this._setComponentRef - })); + if (retryCache !== null) { + // The wakeable resolved, so we no longer need to memoize, because it will + // never be thrown again. + retryCache.delete(wakeable); } - }, { - key: "UNSAFE_componentWillMount", - value: function UNSAFE_componentWillMount() { - this._waitForUpdate(); - this._attachProps(this.props); + retryTimedOutBoundary(boundaryFiber, retryLane); + } // Computes the next Just Noticeable Difference (JND) boundary. + // The theory is that a person can't tell the difference between small differences in time. + // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable + // difference in the experience. However, waiting for longer might mean that we can avoid + // showing an intermediate loading state. The longer we have already waited, the harder it + // is to tell small differences in time. Therefore, the longer we've already waited, + // the longer we can wait additionally. At some point we have to give up though. + // We pick a train model where the next boundary commits at a consistent schedule. + // These particular numbers are vague estimates. We expect to adjust them based on research. + + function jnd(timeElapsed) { + return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + } + function checkForNestedUpdates() { + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + nestedUpdateCount = 0; + rootWithNestedUpdates = null; + throw new Error("Maximum update depth exceeded. This can happen when a component " + "repeatedly calls setState inside componentWillUpdate or " + "componentDidUpdate. React limits the number of nested updates to " + "prevent infinite loops."); } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this._invokeAnimatedPropsCallbackOnMount) { - this._invokeAnimatedPropsCallbackOnMount = false; - this._animatedPropsCallback(); + { + if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + error("Maximum update depth exceeded. This can happen when a component " + "calls setState inside useEffect, but useEffect either doesn't " + "have a dependency array, or one of the dependencies changes on " + "every render."); } - this._propsAnimated.setNativeView(this._component); - this._attachNativeEvents(); - this._markUpdateComplete(); } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - this._waitForUpdate(); - this._attachProps(newProps); + } + function flushRenderPhaseStrictModeWarningsInDEV() { + { + ReactStrictModeWarnings.flushLegacyContextWarning(); + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + } } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this._component !== this._prevComponent) { - this._propsAnimated.setNativeView(this._component); + } + var didWarnStateUpdateForNotYetMountedComponent = null; + function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { + { + if ((executionContext & RenderContext) !== NoContext) { + // We let the other warning about render phase updates deal with this one. + return; } - if (this._component !== this._prevComponent || prevProps !== this.props) { - this._detachNativeEvents(); - this._attachNativeEvents(); + if (!(fiber.mode & ConcurrentMode)) { + return; } - this._markUpdateComplete(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._propsAnimated && this._propsAnimated.__detach(); - this._detachNativeEvents(); - this._markUpdateComplete(); - this._component = null; - this._prevComponent = null; - } - }]); - return AnimatedComponent; - }(React.Component); - return React.forwardRef(function AnimatedComponentWrapper(props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(AnimatedComponent, Object.assign({}, props, ref == null ? null : { - forwardedRef: ref - })); - }); - } - - module.exports = (_createAnimatedCompon = createAnimatedComponentInjection.recordAndRetrieve()) != null ? _createAnimatedCompon : createAnimatedComponent; -},298,[3,132,12,13,50,47,46,299,36,17,273,300,297,301,73],"node_modules/react-native/Libraries/Animated/createAnimatedComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.inject = inject; - exports.recordAndRetrieve = recordAndRetrieve; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var injected; + var tag = fiber.tag; + if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { + // Only warn for user-defined components, not internal ones like Suspense. + return; + } // We show the whole stack but dedupe on the top component's name because + // the problematic code almost always lies inside that component. - function inject(newInjected) { - if (injected !== undefined) { - if (__DEV__) { - console.error('createAnimatedComponentInjection: ' + (injected == null ? 'Must be called before `createAnimatedComponent`.' : 'Cannot be called more than once.')); + var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; + if (didWarnStateUpdateForNotYetMountedComponent !== null) { + if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) { + return; + } + didWarnStateUpdateForNotYetMountedComponent.add(componentName); + } else { + didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]); + } + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("Can't perform a React state update on a component that hasn't mounted yet. " + "This indicates that you have a side-effect in your render function that " + "asynchronously later calls tries to update the component. Move this work to " + "useEffect instead."); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } } - return; - } - injected = newInjected; - } - - function recordAndRetrieve() { - if (injected === undefined) { - injected = null; - } - return injected; - } -},299,[36],"node_modules/react-native/Libraries/Animated/createAnimatedComponentInjection.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var beginWork$1; + { + var dummyFiber = null; + beginWork$1 = function beginWork$1(current, unitOfWork, lanes) { + // If a component throws an error, we replay it again in a synchronously + // dispatched event, so that the debugger will treat it as an uncaught + // error See ReactErrorUtils for more information. + // Before entering the begin phase, copy the work-in-progress onto a dummy + // fiber. If beginWork throws, we'll use this to reset the state. + var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); + try { + return beginWork(current, unitOfWork, lanes); + } catch (originalError) { + if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === "object" && typeof originalError.then === "function") { + // Don't replay promises. + // Don't replay errors if we are hydrating and have already suspended or handled an error + throw originalError; + } // Keep this code in sync with handleError; any changes here must have + // corresponding changes there. - 'use strict'; + resetContextDependencies(); + resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the + // same fiber again. + // Unwind the failed stack frame - function setAndForwardRef(_ref) { - var getForwardedRef = _ref.getForwardedRef, - setLocalRef = _ref.setLocalRef; - return function forwardRef(ref) { - var forwardedRef = getForwardedRef(); - setLocalRef(ref); + unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber. - if (typeof forwardedRef === 'function') { - forwardedRef(ref); - } else if (typeof forwardedRef === 'object' && forwardedRef != null) { - forwardedRef.current = ref; - } - }; - } - module.exports = setAndForwardRef; -},300,[],"node_modules/react-native/Libraries/Utilities/setAndForwardRef.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); + if (unitOfWork.mode & ProfileMode) { + // Reset the profiler timer. + startProfilerTimer(unitOfWork); + } // Run beginWork again. - 'use strict'; + invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + if (hasCaughtError()) { + var replayError = clearCaughtError(); + if (typeof replayError === "object" && replayError !== null && replayError._suppressLogging && typeof originalError === "object" && originalError !== null && !originalError._suppressLogging) { + // If suppressed, let the flag carry over to the original error which is the one we'll rethrow. + originalError._suppressLogging = true; + } + } // We always throw the original error in case the second render pass is not idempotent. + // This can happen if a memoized function or CommonJS module doesn't throw after first invocation. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedProps = function (_AnimatedNode) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedProps, _AnimatedNode); - var _super = _createSuper(AnimatedProps); - function AnimatedProps(props, callback) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedProps); - _this = _super.call(this); - if (props.style) { - props = Object.assign({}, props, { - style: new (_$$_REQUIRE(_dependencyMap[4], "./AnimatedStyle"))(props.style) - }); - } - _this._props = props; - _this._callback = callback; - return _this; - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(AnimatedProps, [{ - key: "__getValue", - value: function __getValue(initialProps) { - var props = {}; - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - if (value instanceof _$$_REQUIRE(_dependencyMap[4], "./AnimatedStyle")) { - props[key] = value.__getValue(initialProps == null ? void 0 : initialProps.style); - } else if (!initialProps || !value.__isNative) { - props[key] = value.__getValue(); - } else if (initialProps.hasOwnProperty(key)) { - props[key] = initialProps[key]; - } - } else if (value instanceof _$$_REQUIRE(_dependencyMap[7], "../AnimatedEvent").AnimatedEvent) { - props[key] = value.__getHandler(); - } else { - props[key] = value; + throw originalError; } - } - return props; + }; } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - var props = {}; - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - props[key] = value.__getAnimatedValue(); - } - } - return props; + var didWarnAboutUpdateInRender = false; + var didWarnAboutUpdateInRenderForAnotherComponent; + { + didWarnAboutUpdateInRenderForAnotherComponent = new Set(); } - }, { - key: "__attach", - value: function __attach() { - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - value.__addChild(this); + function warnAboutRenderPhaseUpdatesInDEV(fiber) { + { + if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) { + switch (fiber.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; // Dedupe by the rendering component because it's the one that needs to be fixed. + + var dedupeKey = renderingComponentName; + if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { + didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); + var setStateComponentName = getComponentNameFromFiber(fiber) || "Unknown"; + error("Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName); + } + break; + } + case ClassComponent: + { + if (!didWarnAboutUpdateInRender) { + error("Cannot update during an existing state transition (such as " + "within `render`). Render methods should be a pure " + "function of props and state."); + didWarnAboutUpdateInRender = true; + } + break; + } + } } } } - }, { - key: "__detach", - value: function __detach() { - if (this.__isNative && this._animatedView) { - this.__disconnectAnimatedView(); - } - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - value.__removeChild(this); + function restorePendingUpdaters(root, lanes) { + { + if (isDevToolsPresent) { + var memoizedUpdaters = root.memoizedUpdaters; + memoizedUpdaters.forEach(function (schedulingFiber) { + addFiberToLanesMap(root, schedulingFiber, lanes); + }); // This function intentionally does not clear memoized updaters. + // Those may still be relevant to the current commit + // and a future one (e.g. Suspense). } } - _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedProps.prototype), "__detach", this).call(this); - } - }, { - key: "update", - value: function update() { - this._callback(); } - }, { - key: "__makeNative", - value: function __makeNative(platformConfig) { - if (!this.__isNative) { - this.__isNative = true; - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - value.__makeNative(platformConfig); - } - } - _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedProps.prototype), "__setPlatformConfig", this).call(this, platformConfig); - if (this._animatedView) { - this.__connectAnimatedView(); + var fakeActCallbackNode = {}; + function scheduleCallback$1(priorityLevel, callback) { + { + // If we're currently inside an `act` scope, bypass Scheduler and push to + // the `act` queue instead. + var actQueue = ReactCurrentActQueue$1.current; + if (actQueue !== null) { + actQueue.push(callback); + return fakeActCallbackNode; + } else { + return scheduleCallback(priorityLevel, callback); } } } - }, { - key: "setNativeView", - value: function setNativeView(animatedView) { - if (this._animatedView === animatedView) { + function cancelCallback$1(callbackNode) { + if (callbackNode === fakeActCallbackNode) { return; - } - this._animatedView = animatedView; - if (this.__isNative) { - this.__connectAnimatedView(); - } - } - }, { - key: "__connectAnimatedView", - value: function __connectAnimatedView() { - _$$_REQUIRE(_dependencyMap[9], "invariant")(this.__isNative, 'Expected node to be marked as "native"'); - var nativeViewTag = _$$_REQUIRE(_dependencyMap[10], "../../Renderer/shims/ReactNative").findNodeHandle(this._animatedView); - _$$_REQUIRE(_dependencyMap[9], "invariant")(nativeViewTag != null, 'Unable to locate attached view in the native tree'); - _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag); - } - }, { - key: "__disconnectAnimatedView", - value: function __disconnectAnimatedView() { - _$$_REQUIRE(_dependencyMap[9], "invariant")(this.__isNative, 'Expected node to be marked as "native"'); - var nativeViewTag = _$$_REQUIRE(_dependencyMap[10], "../../Renderer/shims/ReactNative").findNodeHandle(this._animatedView); - _$$_REQUIRE(_dependencyMap[9], "invariant")(nativeViewTag != null, 'Unable to locate attached view in the native tree'); - _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag); - } - }, { - key: "__restoreDefaultValues", - value: function __restoreDefaultValues() { - if (this.__isNative) { - _$$_REQUIRE(_dependencyMap[11], "../NativeAnimatedHelper").API.restoreDefaultValues(this.__getNativeTag()); - } - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var propsConfig = {}; - for (var propKey in this._props) { - var value = this._props[propKey]; - if (value instanceof _$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")) { - value.__makeNative(this.__getPlatformConfig()); - propsConfig[propKey] = value.__getNativeTag(); - } - } - return { - type: 'props', - props: propsConfig - }; - } - }]); - return AnimatedProps; - }(_$$_REQUIRE(_dependencyMap[6], "./AnimatedNode")); - module.exports = AnimatedProps; -},301,[46,47,50,12,302,13,278,297,115,17,34,273],"node_modules/react-native/Libraries/Animated/nodes/AnimatedProps.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + } // In production, always call Scheduler. This function will be stripped out. - 'use strict'; - - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedStyle = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedStyle, _AnimatedWithChildren); - var _super = _createSuper(AnimatedStyle); - function AnimatedStyle(style) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedStyle); - _this = _super.call(this); - style = _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/flattenStyle")(style) || {}; - if (style.transform) { - style = Object.assign({}, style, { - transform: new (_$$_REQUIRE(_dependencyMap[5], "./AnimatedTransform"))(style.transform) - }); + return cancelCallback(callbackNode); } - _this._style = style; - return _this; - } - - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/createClass")(AnimatedStyle, [{ - key: "_walkStyleAndGetValues", - value: - function _walkStyleAndGetValues(style, initialStyle) { - var updatedStyle = {}; - for (var key in style) { - var value = style[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - if (!initialStyle || !value.__isNative) { - updatedStyle[key] = value.__getValue(); - } else if (initialStyle.hasOwnProperty(key)) { - updatedStyle[key] = initialStyle[key]; + function shouldForceFlushFallbacksInDEV() { + // Never force flush in production. This function should get stripped out. + return ReactCurrentActQueue$1.current !== null; + } + function warnIfUpdatesNotWrappedWithActDEV(fiber) { + { + if (fiber.mode & ConcurrentMode) { + if (!isConcurrentActEnvironment()) { + // Not in an act environment. No need to warn. + return; } - } else if (value && !Array.isArray(value) && typeof value === 'object') { - updatedStyle[key] = this._walkStyleAndGetValues(value, initialStyle); } else { - updatedStyle[key] = value; + // Legacy mode has additional cases where we suppress a warning. + if (!isLegacyActEnvironment()) { + // Not in an act environment. No need to warn. + return; + } + if (executionContext !== NoContext) { + // Legacy mode doesn't warn if the update is batched, i.e. + // batchedUpdates or flushSync. + return; + } + if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { + // For backwards compatibility with pre-hooks code, legacy mode only + // warns for updates that originate from a hook. + return; + } + } + if (ReactCurrentActQueue$1.current === null) { + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("An update to %s inside a test was not wrapped in act(...).\n\n" + "When testing, code that causes React state updates should be " + "wrapped into act(...):\n\n" + "act(() => {\n" + " /* fire events that update state */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } } } - return updatedStyle; - } - }, { - key: "__getValue", - value: function __getValue(initialStyle) { - return this._walkStyleAndGetValues(this._style, initialStyle); } - - }, { - key: "_walkStyleAndGetAnimatedValues", - value: - function _walkStyleAndGetAnimatedValues(style) { - var updatedStyle = {}; - for (var key in style) { - var value = style[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - updatedStyle[key] = value.__getAnimatedValue(); - } else if (value && !Array.isArray(value) && typeof value === 'object') { - updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value); + function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { + { + if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) { + error("A suspended resource finished loading inside a test, but the event " + "was not wrapped in act(...).\n\n" + "When testing, code that resolves suspended data should be wrapped " + "into act(...):\n\n" + "act(() => {\n" + " /* finish loading suspended data */\n" + "});\n" + "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + " Learn more at https://reactjs.org/link/wrap-tests-with-act"); } } - return updatedStyle; - } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this._walkStyleAndGetAnimatedValues(this._style); } - }, { - key: "__attach", - value: function __attach() { - for (var key in this._style) { - var value = this._style[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - value.__addChild(this); - } + function setIsRunningInsertionEffect(isRunning) { + { + isRunningInsertionEffect = isRunning; } } - }, { - key: "__detach", - value: function __detach() { - for (var key in this._style) { - var value = this._style[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - value.__removeChild(this); + + /* eslint-disable react-internal/prod-error-codes */ + var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below. + + var failedBoundaries = null; + var setRefreshHandler = function setRefreshHandler(handler) { + { + resolveFamily = handler; + } + }; + function resolveFunctionForHotReloading(type) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return type; } + var family = resolveFamily(type); + if (family === undefined) { + return type; + } // Use the latest known implementation. + + return family.current; } - _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedStyle.prototype), "__detach", this).call(this); } - }, { - key: "__makeNative", - value: function __makeNative(platformConfig) { - for (var key in this._style) { - var value = this._style[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - value.__makeNative(platformConfig); + function resolveClassForHotReloading(type) { + // No implementation differences. + return resolveFunctionForHotReloading(type); + } + function resolveForwardRefForHotReloading(type) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return type; } + var family = resolveFamily(type); + if (family === undefined) { + // Check if we're dealing with a real forwardRef. Don't want to crash early. + if (type !== null && type !== undefined && typeof type.render === "function") { + // ForwardRef is special because its resolved .type is an object, + // but it's possible that we only have its inner render function in the map. + // If that inner render function is different, we'll build a new forwardRef type. + var currentRender = resolveFunctionForHotReloading(type.render); + if (type.render !== currentRender) { + var syntheticType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: currentRender + }; + if (type.displayName !== undefined) { + syntheticType.displayName = type.displayName; + } + return syntheticType; + } + } + return type; + } // Use the latest known implementation. + + return family.current; } - _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedStyle.prototype), "__makeNative", this).call(this, platformConfig); } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var styleConfig = {}; - for (var styleKey in this._style) { - if (this._style[styleKey] instanceof _$$_REQUIRE(_dependencyMap[7], "./AnimatedNode")) { - var style = this._style[styleKey]; - style.__makeNative(this.__getPlatformConfig()); - styleConfig[styleKey] = style.__getNativeTag(); + function isCompatibleFamilyForHotReloading(fiber, element) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return false; } - } + var prevType = fiber.elementType; + var nextType = element.type; // If we got here, we know types aren't === equal. - _$$_REQUIRE(_dependencyMap[9], "../NativeAnimatedHelper").validateStyles(styleConfig); - return { - type: 'style', - style: styleConfig - }; - } - }]); - return AnimatedStyle; - }(_$$_REQUIRE(_dependencyMap[10], "./AnimatedWithChildren")); - module.exports = AnimatedStyle; -},302,[46,47,50,12,189,303,13,278,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedStyle.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + var needsCompareFamilies = false; + var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; + switch (fiber.tag) { + case ClassComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } + break; + } + case FunctionComponent: + { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + // We don't know the inner type yet. + // We're going to assume that the lazy inner type is stable, + // and so it is sufficient to avoid reconciling it away. + // We're not going to unwrap or actually use the new lazy type. + needsCompareFamilies = true; + } + break; + } + case ForwardRef: + { + if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case MemoComponent: + case SimpleMemoComponent: + { + if ($$typeofNextType === REACT_MEMO_TYPE) { + // TODO: if it was but can no longer be simple, + // we shouldn't set this. + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + default: + return false; + } // Check if both types have a family and it's the same one. - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedTransform = function (_AnimatedWithChildren) { - _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/inherits")(AnimatedTransform, _AnimatedWithChildren); - var _super = _createSuper(AnimatedTransform); - function AnimatedTransform(transforms) { - var _this; - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")(this, AnimatedTransform); - _this = _super.call(this); - _this._transforms = transforms; - return _this; - } - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")(AnimatedTransform, [{ - key: "__makeNative", - value: function __makeNative(platformConfig) { - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - value.__makeNative(platformConfig); + if (needsCompareFamilies) { + // Note: memo() and forwardRef() we'll compare outer rather than inner type. + // This means both of them need to be registered to preserve state. + // If we unwrapped and compared the inner types for wrappers instead, + // then we would risk falsely saying two separate memo(Foo) + // calls are equivalent because they wrap the same Foo function. + var prevFamily = resolveFamily(prevType); + if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { + return true; } } - }); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTransform.prototype), "__makeNative", this).call(this, platformConfig); + return false; + } } - }, { - key: "__getValue", - value: function __getValue() { - return this._transforms.map(function (transform) { - var result = {}; - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - result[key] = value.__getValue(); - } else { - result[key] = value; - } + function markFailedErrorBoundaryForHotReloading(fiber) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return; } - return result; - }); - } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this._transforms.map(function (transform) { - var result = {}; - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - result[key] = value.__getAnimatedValue(); - } else { - result[key] = value; - } + if (typeof WeakSet !== "function") { + return; } - return result; - }); - } - }, { - key: "__attach", - value: function __attach() { - var _this2 = this; - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - value.__addChild(_this2); - } + if (failedBoundaries === null) { + failedBoundaries = new WeakSet(); } - }); + failedBoundaries.add(fiber); + } } - }, { - key: "__detach", - value: function __detach() { - var _this3 = this; - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - value.__removeChild(_this3); + var scheduleRefresh = function scheduleRefresh(root, update) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return; + } + var staleFamilies = update.staleFamilies, + updatedFamilies = update.updatedFamilies; + flushPassiveEffects(); + flushSync(function () { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }; + var scheduleRoot = function scheduleRoot(root, element) { + { + if (root.context !== emptyContextObject) { + // Super edge case: root has a legacy _renderSubtree context + // but we don't know the parentComponent so we can't pass it. + // Just ignore. We'll delete this with _renderSubtree code path later. + return; + } + flushPassiveEffects(); + flushSync(function () { + updateContainer(element, root, null, null); + }); + } + }; + function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { + { + var alternate = fiber.alternate, + child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + if (resolveFamily === null) { + throw new Error("Expected resolveFamily to be set during hot reload."); + } + var needsRender = false; + var needsRemount = false; + if (candidateType !== null) { + var family = resolveFamily(candidateType); + if (family !== undefined) { + if (staleFamilies.has(family)) { + needsRemount = true; + } else if (updatedFamilies.has(family)) { + if (tag === ClassComponent) { + needsRemount = true; + } else { + needsRender = true; + } + } } } - }); - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/get")(_$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(AnimatedTransform.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var transConfigs = []; - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - if (value instanceof _$$_REQUIRE(_dependencyMap[5], "./AnimatedNode")) { - transConfigs.push({ - type: 'animated', - property: key, - nodeTag: value.__getNativeTag() - }); - } else { - transConfigs.push({ - type: 'static', - property: key, - value: _$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper").transformDataType(value) - }); + if (failedBoundaries !== null) { + if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { + needsRemount = true; } } - }); - _$$_REQUIRE(_dependencyMap[7], "../NativeAnimatedHelper").validateTransform(transConfigs); - return { - type: 'transform', - transforms: transConfigs - }; - } - }]); - return AnimatedTransform; - }(_$$_REQUIRE(_dependencyMap[8], "./AnimatedWithChildren")); - module.exports = AnimatedTransform; -},303,[46,47,50,12,13,278,115,273,277],"node_modules/react-native/Libraries/Animated/nodes/AnimatedTransform.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var FlatListWithEventThrottle = React.forwardRef(function (props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "../../Lists/FlatList"), Object.assign({ - scrollEventThrottle: 0.0001 - }, props, { - ref: ref - })); - }); - module.exports = _$$_REQUIRE(_dependencyMap[3], "../createAnimatedComponent")(FlatListWithEventThrottle); -},304,[36,73,305,298],"node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/defineProperty")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); - var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); - var _memoizeOne = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "memoize-one")); - var _excluded = ["numColumns", "columnWrapperStyle", "removeClippedSubviews", "strictMode"]; - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/FlatList.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[10], "react"); - - function removeClippedSubviewsOrDefault(removeClippedSubviews) { - return removeClippedSubviews != null ? removeClippedSubviews : "ios" === 'android'; - } - - function numColumnsOrDefault(numColumns) { - return numColumns != null ? numColumns : 1; - } - var FlatList = function (_React$PureComponent) { - (0, _inherits2.default)(FlatList, _React$PureComponent); - var _super = _createSuper(FlatList); - function FlatList(_props) { - var _this; - (0, _classCallCheck2.default)(this, FlatList); - _this = _super.call(this, _props); - _this._virtualizedListPairs = []; - _this._captureRef = function (ref) { - _this._listRef = ref; - }; - _this._getItem = function (data, index) { - var numColumns = numColumnsOrDefault(_this.props.numColumns); - if (numColumns > 1) { - var ret = []; - for (var kk = 0; kk < numColumns; kk++) { - var _item = data[index * numColumns + kk]; - if (_item != null) { - ret.push(_item); + if (needsRemount) { + fiber._debugNeedsRemount = true; + } + if (needsRemount || needsRender) { + var _root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (_root !== null) { + scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp); } } - return ret; - } else { - return data[index]; + if (child !== null && !needsRemount) { + scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); + } + if (sibling !== null) { + scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); + } } - }; - _this._getItemCount = function (data) { - if (data) { - var numColumns = numColumnsOrDefault(_this.props.numColumns); - return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length; - } else { - return 0; + } + var findHostInstancesForRefresh = function findHostInstancesForRefresh(root, families) { + { + var hostInstances = new Set(); + var types = new Set(families.map(function (family) { + return family.current; + })); + findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); + return hostInstances; } }; - _this._keyExtractor = function (items, index) { - var _this$props$keyExtrac; - var numColumns = numColumnsOrDefault(_this.props.numColumns); - var keyExtractor = (_this$props$keyExtrac = _this.props.keyExtractor) != null ? _this$props$keyExtrac : _$$_REQUIRE(_dependencyMap[11], "./VirtualizeUtils").keyExtractor; - if (numColumns > 1) { - if (Array.isArray(items)) { - return items.map(function (item, kk) { - return keyExtractor(item, index * numColumns + kk); - }).join(':'); - } else { - _$$_REQUIRE(_dependencyMap[12], "invariant")(Array.isArray(items), 'FlatList: Encountered internal consistency error, expected each item to consist of an ' + 'array with 1-%s columns; instead, received a single item.', numColumns); + function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { + { + var child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; } - } else { - return keyExtractor(items, index); - } - }; - _this._renderer = function (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) { - var cols = numColumnsOrDefault(numColumns); - var virtualizedListRenderKey = ListItemComponent ? 'ListItemComponent' : 'renderItem'; - var renderer = function renderer(props) { - if (ListItemComponent) { - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ListItemComponent, Object.assign({}, props)); - } else if (renderItem) { - return renderItem(props); - } else { - return null; + var didMatch = false; + if (candidateType !== null) { + if (types.has(candidateType)) { + didMatch = true; + } } - }; - return (0, _defineProperty2.default)({}, virtualizedListRenderKey, function (info) { - if (cols > 1) { - var _item2 = info.item, - _index = info.index; - _$$_REQUIRE(_dependencyMap[12], "invariant")(Array.isArray(_item2), 'Expected array of items with numColumns > 1'); - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../Components/View/View"), { - style: _$$_REQUIRE(_dependencyMap[15], "../StyleSheet/StyleSheet").compose(styles.row, columnWrapperStyle), - children: _item2.map(function (it, kk) { - var element = renderer({ - item: it, - index: _index * cols + kk, - separators: info.separators - }); - return element != null ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(React.Fragment, { - children: element - }, kk) : null; - }) - }); + if (didMatch) { + // We have a match. This only drills down to the closest host components. + // There's no need to search deeper because for the purpose of giving + // visual feedback, "flashing" outermost parent rectangles is sufficient. + findHostInstancesForFiberShallowly(fiber, hostInstances); } else { - return renderer(info); + // If there's no match, maybe there will be one further down in the child tree. + if (child !== null) { + findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); + } + } + if (sibling !== null) { + findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); } - }); - }; - _this._memoizedRenderer = (0, _memoizeOne.default)(_this._renderer); - _this._checkProps(_this.props); - if (_this.props.viewabilityConfigCallbackPairs) { - _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { - return { - viewabilityConfig: pair.viewabilityConfig, - onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged) - }; - }); - } else if (_this.props.onViewableItemsChanged) { - _this._virtualizedListPairs.push({ - viewabilityConfig: _this.props.viewabilityConfig, - onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged) - }); - } - return _this; - } - (0, _createClass2.default)(FlatList, [{ - key: "scrollToEnd", - value: - function scrollToEnd(params) { - if (this._listRef) { - this._listRef.scrollToEnd(params); - } - } - - }, { - key: "scrollToIndex", - value: - function scrollToIndex(params) { - if (this._listRef) { - this._listRef.scrollToIndex(params); } } + function findHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); + if (foundHostInstances) { + return; + } // If we didn't find any host children, fallback to closest host parent. - }, { - key: "scrollToItem", - value: - function scrollToItem(params) { - if (this._listRef) { - this._listRef.scrollToItem(params); + var node = fiber; + while (true) { + switch (node.tag) { + case HostComponent: + hostInstances.add(node.stateNode); + return; + case HostPortal: + hostInstances.add(node.stateNode.containerInfo); + return; + case HostRoot: + hostInstances.add(node.stateNode.containerInfo); + return; + } + if (node.return === null) { + throw new Error("Expected to reach root first."); + } + node = node.return; + } } } - - }, { - key: "scrollToOffset", - value: - function scrollToOffset(params) { - if (this._listRef) { - this._listRef.scrollToOffset(params); + function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var node = fiber; + var foundHostInstances = false; + while (true) { + if (node.tag === HostComponent) { + // We got a match. + foundHostInstances = true; + hostInstances.add(node.stateNode); // There may still be more, so keep searching. + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return foundHostInstances; + } + while (node.sibling === null) { + if (node.return === null || node.return === fiber) { + return foundHostInstances; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } } + return false; } + var hasBadMapPolyfill; + { + hasBadMapPolyfill = false; + try { + var nonExtensibleObject = Object.preventExtensions({}); + /* eslint-disable no-new */ - }, { - key: "recordInteraction", - value: - function recordInteraction() { - if (this._listRef) { - this._listRef.recordInteraction(); + new Map([[nonExtensibleObject, null]]); + new Set([nonExtensibleObject]); + /* eslint-enable no-new */ + } catch (e) { + // TODO: Consider warning about bad polyfills + hasBadMapPolyfill = true; } } + function FiberNode(tag, pendingProps, key, mode) { + // Instance + this.tag = tag; + this.key = key; + this.elementType = null; + this.type = null; + this.stateNode = null; // Fiber - }, { - key: "flashScrollIndicators", - value: - function flashScrollIndicators() { - if (this._listRef) { - this._listRef.flashScrollIndicators(); - } - } + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.dependencies = null; + this.mode = mode; // Effects - }, { - key: "getScrollResponder", - value: - function getScrollResponder() { - if (this._listRef) { - return this._listRef.getScrollResponder(); - } - } + this.flags = NoFlags; + this.subtreeFlags = NoFlags; + this.deletions = null; + this.lanes = NoLanes; + this.childLanes = NoLanes; + this.alternate = null; + { + // Note: The following is done to avoid a v8 performance cliff. + // + // Initializing the fields below to smis and later updating them with + // double values will cause Fibers to end up having separate shapes. + // This behavior/bug has something to do with Object.preventExtension(). + // Fortunately this only impacts DEV builds. + // Unfortunately it makes React unusably slow for some applications. + // To work around this, initialize the fields below with doubles. + // + // Learn more about this here: + // https://github.com/facebook/react/issues/14365 + // https://bugs.chromium.org/p/v8/issues/detail?id=8538 + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization. + // This won't trigger the performance cliff mentioned above, + // and it simplifies other profiler code (including DevTools). - }, { - key: "getNativeScrollRef", - value: - function getNativeScrollRef() { - if (this._listRef) { - return this._listRef.getScrollRef(); - } - } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - if (this._listRef) { - return this._listRef.getScrollableNode(); - } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - if (this._listRef) { - this._listRef.setNativeProps(props); + this.actualDuration = 0; + this.actualStartTime = -1; + this.selfBaseDuration = 0; + this.treeBaseDuration = 0; } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.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.'); - _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, 'Changing onViewableItemsChanged on the fly is not supported'); - _$$_REQUIRE(_dependencyMap[12], "invariant")(!_$$_REQUIRE(_dependencyMap[16], "../Utilities/differ/deepDiffer")(prevProps.viewabilityConfig, this.props.viewabilityConfig), 'Changing viewabilityConfig on the fly is not supported'); - _$$_REQUIRE(_dependencyMap[12], "invariant")(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, 'Changing viewabilityConfigCallbackPairs on the fly is not supported'); - this._checkProps(this.props); - } - }, { - key: "_checkProps", - value: function _checkProps(props) { - var getItem = props.getItem, - getItemCount = props.getItemCount, - horizontal = props.horizontal, - columnWrapperStyle = props.columnWrapperStyle, - onViewableItemsChanged = props.onViewableItemsChanged, - viewabilityConfigCallbackPairs = props.viewabilityConfigCallbackPairs; - var numColumns = numColumnsOrDefault(this.props.numColumns); - _$$_REQUIRE(_dependencyMap[12], "invariant")(!getItem && !getItemCount, 'FlatList does not support custom data formats.'); - if (numColumns > 1) { - _$$_REQUIRE(_dependencyMap[12], "invariant")(!horizontal, 'numColumns does not support horizontal.'); - } else { - _$$_REQUIRE(_dependencyMap[12], "invariant")(!columnWrapperStyle, 'columnWrapperStyle not supported for single column lists'); + { + // This isn't directly used but is handy for debugging internals: + this._debugSource = null; + this._debugOwner = null; + this._debugNeedsRemount = false; + this._debugHookTypes = null; + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } } - _$$_REQUIRE(_dependencyMap[12], "invariant")(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), 'FlatList does not support setting both onViewableItemsChanged and ' + 'viewabilityConfigCallbackPairs.'); + } // This is a constructor function, rather than a POJO constructor, still + // please ensure we do the following: + // 1) Nobody should add any instance methods on this. Instance methods can be + // more difficult to predict when they get optimized and they are almost + // never inlined properly in static compilers. + // 2) Nobody should rely on `instanceof Fiber` for type testing. We should + // always know when it is a fiber. + // 3) We might want to experiment with using numeric keys since they are easier + // to optimize in a non-JIT environment. + // 4) We can easily go from a constructor to a createFiber object literal if that + // is faster. + // 5) It should be easy to port this to a C struct and keep a C implementation + // compatible. + + var createFiber = function createFiber(tag, pendingProps, key, mode) { + // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors + return new FiberNode(tag, pendingProps, key, mode); + }; + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); } - }, { - key: "_pushMultiColumnViewable", - value: function _pushMultiColumnViewable(arr, v) { - var _this$props$keyExtrac2; - var numColumns = numColumnsOrDefault(this.props.numColumns); - var keyExtractor = (_this$props$keyExtrac2 = this.props.keyExtractor) != null ? _this$props$keyExtrac2 : _$$_REQUIRE(_dependencyMap[11], "./VirtualizeUtils").keyExtractor; - v.item.forEach(function (item, ii) { - _$$_REQUIRE(_dependencyMap[12], "invariant")(v.index != null, 'Missing index!'); - var index = v.index * numColumns + ii; - arr.push(Object.assign({}, v, { - item: item, - key: keyExtractor(item, index), - index: index - })); - }); + function isSimpleFunctionComponent(type) { + return typeof type === "function" && !shouldConstruct(type) && type.defaultProps === undefined; } - }, { - key: "_createOnViewableItemsChanged", - value: function _createOnViewableItemsChanged(onViewableItemsChanged) { - var _this2 = this; - return function (info) { - var numColumns = numColumnsOrDefault(_this2.props.numColumns); - if (onViewableItemsChanged) { - if (numColumns > 1) { - var changed = []; - var viewableItems = []; - info.viewableItems.forEach(function (v) { - return _this2._pushMultiColumnViewable(viewableItems, v); - }); - info.changed.forEach(function (v) { - return _this2._pushMultiColumnViewable(changed, v); - }); - onViewableItemsChanged({ - viewableItems: viewableItems, - changed: changed - }); - } else { - onViewableItemsChanged(info); - } + function resolveLazyComponentTag(Component) { + if (typeof Component === "function") { + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; + } else if (Component !== undefined && Component !== null) { + var $$typeof = Component.$$typeof; + if ($$typeof === REACT_FORWARD_REF_TYPE) { + return ForwardRef; } - }; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - numColumns = _this$props.numColumns, - columnWrapperStyle = _this$props.columnWrapperStyle, - _removeClippedSubviews = _this$props.removeClippedSubviews, - _this$props$strictMod = _this$props.strictMode, - strictMode = _this$props$strictMod === void 0 ? false : _this$props$strictMod, - restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var renderer = strictMode ? this._memoizedRenderer : this._renderer; - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[17], "./VirtualizedList"), Object.assign({}, restProps, { - getItem: this._getItem, - getItemCount: this._getItemCount, - keyExtractor: this._keyExtractor, - ref: this._captureRef, - viewabilityConfigCallbackPairs: this._virtualizedListPairs, - removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews) - }, renderer(this.props.ListItemComponent, this.props.renderItem, columnWrapperStyle, numColumns, this.props.extraData))); - } - }]); - return FlatList; - }(React.PureComponent); - var styles = _$$_REQUIRE(_dependencyMap[15], "../StyleSheet/StyleSheet").create({ - row: { - flexDirection: 'row' - } - }); - module.exports = FlatList; -},305,[3,132,306,12,13,49,50,47,46,307,36,308,17,73,245,244,237,309],"node_modules/react-native/Libraries/Lists/FlatList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; -},306,[],"node_modules/@babel/runtime/helpers/defineProperty.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; + if ($$typeof === REACT_MEMO_TYPE) { + return MemoComponent; + } + } + return IndeterminateComponent; + } // This is used to create an alternate fiber to do work on. - var safeIsNaN = Number.isNaN || function ponyfill(value) { - return typeof value === 'number' && value !== value; - }; - function isEqual(first, second) { - if (first === second) { - return true; - } - if (safeIsNaN(first) && safeIsNaN(second)) { - return true; - } - return false; - } - function areInputsEqual(newInputs, lastInputs) { - if (newInputs.length !== lastInputs.length) { - return false; - } - for (var i = 0; i < newInputs.length; i++) { - if (!isEqual(newInputs[i], lastInputs[i])) { - return false; - } - } - return true; - } - function memoizeOne(resultFn, isEqual) { - if (isEqual === void 0) { - isEqual = areInputsEqual; - } - var lastThis; - var lastArgs = []; - var lastResult; - var calledOnce = false; - function memoized() { - var newArgs = []; - for (var _i = 0; _i < arguments.length; _i++) { - newArgs[_i] = arguments[_i]; - } - if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) { - return lastResult; - } - lastResult = resultFn.apply(this, newArgs); - calledOnce = true; - lastThis = this; - lastArgs = newArgs; - return lastResult; - } - return memoized; - } - module.exports = memoizeOne; -},307,[],"node_modules/memoize-one/dist/memoize-one.cjs.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + if (workInProgress === null) { + // We use a double buffering pooling technique because we know that we'll + // only ever need at most two versions of a tree. We pool the "other" unused + // node that we're free to reuse. This is lazily created to avoid allocating + // extra objects for things that are never updated. It also allow us to + // reclaim the extra memory if needed. + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.elementType = current.elementType; + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + { + // DEV-only fields + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + workInProgress._debugHookTypes = current._debugHookTypes; + } + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type. - 'use strict'; + workInProgress.type = current.type; // We already have an alternate. + // Reset the effect tag. - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.computeWindowedRenderLimits = computeWindowedRenderLimits; - exports.elementsThatOverlapOffsets = elementsThatOverlapOffsets; - exports.keyExtractor = keyExtractor; - exports.newRangeCount = newRangeCount; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "invariant")); - function elementsThatOverlapOffsets(offsets, itemCount, getFrameMetrics) { - var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; - var result = []; - for (var offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) { - var currentOffset = offsets[offsetIndex]; - var left = 0; - var right = itemCount - 1; - while (left <= right) { - var mid = left + (right - left >>> 1); - var frame = getFrameMetrics(mid); - var scaledOffsetStart = frame.offset * zoomScale; - var scaledOffsetEnd = (frame.offset + frame.length) * zoomScale; + workInProgress.flags = NoFlags; // The effects are no longer valid. - if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) { - right = mid - 1; - } else if (currentOffset > scaledOffsetEnd) { - left = mid + 1; - } else { - result[offsetIndex] = mid; - break; - } - } - } - return result; - } + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + { + // We intentionally reset, rather than copy, actualDuration & actualStartTime. + // This prevents time from endlessly accumulating in new commits. + // This has the downside of resetting values for different priority renders, + // But works for yielding (the common case) and should support resuming. + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = -1; + } + } // Reset all effects except static ones. + // Static effects are not specific to a render. - function newRangeCount(prev, next) { - return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first)); - } + workInProgress.flags = current.flags & StaticMask; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. - function computeWindowedRenderLimits(data, getItemCount, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) { - var itemCount = getItemCount(data); - if (itemCount === 0) { - return prev; - } - var offset = scrollMetrics.offset, - velocity = scrollMetrics.velocity, - visibleLength = scrollMetrics.visibleLength, - _scrollMetrics$zoomSc = scrollMetrics.zoomScale, - zoomScale = _scrollMetrics$zoomSc === void 0 ? 1 : _scrollMetrics$zoomSc; + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; // These will be overridden during the parent's reconciliation - var visibleBegin = Math.max(0, offset); - var visibleEnd = visibleBegin + visibleLength; - var overscanLength = (windowSize - 1) * visibleLength; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + { + workInProgress._debugNeedsRemount = current._debugNeedsRemount; + switch (workInProgress.tag) { + case IndeterminateComponent: + case FunctionComponent: + case SimpleMemoComponent: + workInProgress.type = resolveFunctionForHotReloading(current.type); + break; + case ClassComponent: + workInProgress.type = resolveClassForHotReloading(current.type); + break; + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; + } + } + return workInProgress; + } // Used to reuse a Fiber for a second pass. - var leadFactor = 0.5; + function resetWorkInProgress(workInProgress, renderLanes) { + // This resets the Fiber to what createFiber or createWorkInProgress would + // have set the values to before during the first pass. Ideally this wouldn't + // be necessary but unfortunately many code paths reads from the workInProgress + // when they should be reading from current and writing to workInProgress. + // We assume pendingProps, index, key, ref, return are still untouched to + // avoid doing another reconciliation. + // Reset the effect flags but keep any Placement tags, since that's something + // that child fiber is setting, not the reconciliation. + workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid. - var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none'; - var overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength); - var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength); - var lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset * zoomScale; - if (lastItemOffset < overscanBegin) { - return { - first: Math.max(0, itemCount - 1 - maxToRenderPerBatch), - last: itemCount - 1 - }; - } + var current = workInProgress.alternate; + if (current === null) { + // Reset to createFiber's initial values. + workInProgress.childLanes = NoLanes; + workInProgress.lanes = renderLanes; + workInProgress.child = null; + workInProgress.subtreeFlags = NoFlags; + workInProgress.memoizedProps = null; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.dependencies = null; + workInProgress.stateNode = null; + { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. + workInProgress.selfBaseDuration = 0; + workInProgress.treeBaseDuration = 0; + } + } else { + // Reset to the cloned values that createWorkInProgress would've. + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.subtreeFlags = NoFlags; + workInProgress.deletions = null; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type. - var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], itemCount, getFrameMetricsApprox, zoomScale), - _elementsThatOverlapO2 = (0, _slicedToArray2.default)(_elementsThatOverlapO, 4), - overscanFirst = _elementsThatOverlapO2[0], - first = _elementsThatOverlapO2[1], - last = _elementsThatOverlapO2[2], - overscanLast = _elementsThatOverlapO2[3]; - overscanFirst = overscanFirst == null ? 0 : overscanFirst; - first = first == null ? Math.max(0, overscanFirst) : first; - overscanLast = overscanLast == null ? itemCount - 1 : overscanLast; - last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last; - var visible = { - first: first, - last: last - }; + workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. - var newCellCount = newRangeCount(prev, visible); - while (true) { - if (first <= overscanFirst && last >= overscanLast) { - break; - } - var maxNewCells = newCellCount >= maxToRenderPerBatch; - var firstWillAddMore = first <= prev.first || first > prev.last; - var firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore); - var lastWillAddMore = last >= prev.last || last < prev.first; - var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore); - if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) { - break; - } - if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) { - if (firstWillAddMore) { - newCellCount++; + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } } - first--; + return workInProgress; } - if (lastShouldIncrement && !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)) { - if (lastWillAddMore) { - newCellCount++; + function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) { + var mode; + if (tag === ConcurrentRoot) { + mode = ConcurrentMode; + if (isStrictMode === true) { + mode |= StrictLegacyMode; + } + } else { + mode = NoMode; } - last++; + if (isDevToolsPresent) { + // Always collect profile timings when DevTools are present. + // This enables DevTools to start capturing timing at any pointโ€“ + // Without some nodes in the tree having empty base times. + mode |= ProfileMode; + } + return createFiber(HostRoot, null, null, mode); } - } - if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) { - throw new Error('Bad window calculation ' + JSON.stringify({ - first: first, - last: last, - itemCount: itemCount, - overscanFirst: overscanFirst, - overscanLast: overscanLast, - visible: visible - })); - } - return { - first: first, - last: last - }; - } - function keyExtractor(item, index) { - if (typeof item === 'object' && (item == null ? void 0 : item.key) != null) { - return item.key; - } - if (typeof item === 'object' && (item == null ? void 0 : item.id) != null) { - return item.id; - } - return String(index); - } -},308,[3,19,17],"node_modules/react-native/Libraries/Lists/VirtualizeUtils.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedList.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var ON_END_REACHED_EPSILON = 0.001; - var _usedIndexForKey = false; - var _keylessItemComponentName = ''; + function createFiberFromTypeAndProps(type, + // React$ElementType + key, pendingProps, owner, mode, lanes) { + var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy. - function horizontalOrDefault(horizontal) { - return horizontal != null ? horizontal : false; - } + var resolvedType = type; + if (typeof type === "function") { + if (shouldConstruct(type)) { + fiberTag = ClassComponent; + { + resolvedType = resolveClassForHotReloading(resolvedType); + } + } else { + { + resolvedType = resolveFunctionForHotReloading(resolvedType); + } + } + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + getTag: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictLegacyMode; + break; + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_TYPE: + return createFiberFromSuspense(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_LIST_TYPE: + return createFiberFromSuspenseList(pendingProps, mode, lanes, key); + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + case REACT_LEGACY_HIDDEN_TYPE: - function initialNumToRenderOrDefault(initialNumToRender) { - return initialNumToRender != null ? initialNumToRender : 10; - } + // eslint-disable-next-line no-fallthrough - function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) { - return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10; - } + case REACT_SCOPE_TYPE: - function onEndReachedThresholdOrDefault(onEndReachedThreshold) { - return onEndReachedThreshold != null ? onEndReachedThreshold : 2; - } + // eslint-disable-next-line no-fallthrough - function scrollEventThrottleOrDefault(scrollEventThrottle) { - return scrollEventThrottle != null ? scrollEventThrottle : 50; - } + case REACT_CACHE_TYPE: - function windowSizeOrDefault(windowSize) { - return windowSize != null ? windowSize : 21; - } + // eslint-disable-next-line no-fallthrough - var VirtualizedList = function (_React$PureComponent) { - (0, _inherits2.default)(VirtualizedList, _React$PureComponent); - var _super = _createSuper(VirtualizedList); - function VirtualizedList(_props) { - var _this$props$updateCel; - var _this; - (0, _classCallCheck2.default)(this, VirtualizedList); - _this = _super.call(this, _props); - _this._getScrollMetrics = function () { - return _this._scrollMetrics; - }; - _this._getOutermostParentListRef = function () { - if (_this._isNestedWithSameOrientation()) { - return _this.context.getOutermostParentListRef(); - } else { - return (0, _assertThisInitialized2.default)(_this); + case REACT_TRACING_MARKER_TYPE: + + // eslint-disable-next-line no-fallthrough + + case REACT_DEBUG_TRACING_MODE_TYPE: + + // eslint-disable-next-line no-fallthrough + + default: + { + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = ContextProvider; + break getTag; + case REACT_CONTEXT_TYPE: + // This is a consumer + fiberTag = ContextConsumer; + break getTag; + case REACT_FORWARD_REF_TYPE: + fiberTag = ForwardRef; + { + resolvedType = resolveForwardRefForHotReloading(resolvedType); + } + break getTag; + case REACT_MEMO_TYPE: + fiberTag = MemoComponent; + break getTag; + case REACT_LAZY_TYPE: + fiberTag = LazyComponent; + resolvedType = null; + break getTag; + } + } + var info = ""; + { + if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; + } + var ownerName = owner ? getComponentNameFromFiber(owner) : null; + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + throw new Error("Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + ("but got: " + (type == null ? type : typeof type) + "." + info)); + } + } } - }; - _this._getNestedChildState = function (key) { - var existingChildData = _this._nestedChildLists.get(key); - return existingChildData && existingChildData.state; - }; - _this._registerAsNestedChild = function (childList) { - var childListsInCell = _this._cellKeysToChildListKeys.get(childList.cellKey) || new Set(); - childListsInCell.add(childList.key); - _this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell); - var existingChildData = _this._nestedChildLists.get(childList.key); - if (existingChildData && existingChildData.ref !== null) { - console.error('A VirtualizedList contains a cell which itself contains ' + 'more than one VirtualizedList of the same orientation as the parent ' + 'list. You must pass a unique listKey prop to each sibling list.\n\n' + describeNestedLists(Object.assign({}, childList, { - horizontal: !!childList.ref.props.horizontal - }))); - } - _this._nestedChildLists.set(childList.key, { - ref: childList.ref, - state: null - }); - if (_this._hasInteracted) { - childList.ref.recordInteraction(); - } - }; - _this._unregisterAsNestedChild = function (childList) { - _this._nestedChildLists.set(childList.key, { - ref: null, - state: childList.state - }); - }; - _this._onUpdateSeparators = function (keys, newProps) { - keys.forEach(function (key) { - var ref = key != null && _this._cellRefs[key]; - ref && ref.updateSeparatorProps(newProps); - }); - }; - _this._getSpacerKey = function (isVertical) { - return isVertical ? 'height' : 'width'; - }; - _this._averageCellLength = 0; - _this._cellKeysToChildListKeys = new Map(); - _this._cellRefs = {}; - _this._frames = {}; - _this._footerLength = 0; - _this._hasTriggeredInitialScrollToIndex = false; - _this._hasInteracted = false; - _this._hasMore = false; - _this._hasWarned = {}; - _this._headerLength = 0; - _this._hiPriInProgress = false; - _this._highestMeasuredFrameIndex = 0; - _this._indicesToKeys = new Map(); - _this._nestedChildLists = new Map(); - _this._offsetFromParentVirtualizedList = 0; - _this._prevParentOffset = 0; - _this._scrollMetrics = { - contentLength: 0, - dOffset: 0, - dt: 10, - offset: 0, - timestamp: 0, - velocity: 0, - visibleLength: 0, - zoomScale: 1 - }; - _this._scrollRef = null; - _this._sentEndForContentLength = 0; - _this._totalCellLength = 0; - _this._totalCellsMeasured = 0; - _this._viewabilityTuples = []; - _this._captureScrollRef = function (ref) { - _this._scrollRef = ref; - }; - _this._defaultRenderScrollComponent = function (props) { - var onRefresh = props.onRefresh; - if (_this._isNestedWithSameOrientation()) { - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), Object.assign({}, props)); - } else if (onRefresh) { - var _props$refreshing; - _$$_REQUIRE(_dependencyMap[11], "invariant")(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify((_props$refreshing = props.refreshing) != null ? _props$refreshing : 'undefined') + '`'); - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), Object.assign({}, props, { - refreshControl: props.refreshControl == null ? (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../Components/RefreshControl/RefreshControl"), { - refreshing: props.refreshing, - onRefresh: onRefresh, - progressViewOffset: props.progressViewOffset - }) : props.refreshControl - })); - } else { - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), Object.assign({}, props)); - } - }; - _this._onCellLayout = function (e, cellKey, index) { - var layout = e.nativeEvent.layout; - var next = { - offset: _this._selectOffset(layout), - length: _this._selectLength(layout), - index: index, - inLayout: true - }; - var curr = _this._frames[cellKey]; - if (!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index) { - _this._totalCellLength += next.length - (curr ? curr.length : 0); - _this._totalCellsMeasured += curr ? 0 : 1; - _this._averageCellLength = _this._totalCellLength / _this._totalCellsMeasured; - _this._frames[cellKey] = next; - _this._highestMeasuredFrameIndex = Math.max(_this._highestMeasuredFrameIndex, index); - _this._scheduleCellsToRenderUpdate(); - } else { - _this._frames[cellKey].inLayout = true; - } - _this._triggerRemeasureForChildListsInCell(cellKey); - _this._computeBlankness(); - _this._updateViewableItems(_this.props.data); - }; - _this._onCellUnmount = function (cellKey) { - var curr = _this._frames[cellKey]; - if (curr) { - _this._frames[cellKey] = Object.assign({}, curr, { - inLayout: false - }); - } - }; - _this._onLayout = function (e) { - if (_this._isNestedWithSameOrientation()) { - _this.measureLayoutRelativeToContainingList(); - } else { - _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout); - } - _this.props.onLayout && _this.props.onLayout(e); - _this._scheduleCellsToRenderUpdate(); - _this._maybeCallOnEndReached(); - }; - _this._onLayoutEmpty = function (e) { - _this.props.onLayout && _this.props.onLayout(e); - }; - _this._onLayoutFooter = function (e) { - _this._triggerRemeasureForChildListsInCell(_this._getFooterCellKey()); - _this._footerLength = _this._selectLength(e.nativeEvent.layout); - }; - _this._onLayoutHeader = function (e) { - _this._headerLength = _this._selectLength(e.nativeEvent.layout); - }; - _this._onContentSizeChange = function (width, height) { - if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasTriggeredInitialScrollToIndex) { - if (_this.props.contentOffset == null) { - _this.scrollToIndex({ - animated: false, - index: _this.props.initialScrollIndex - }); - } - _this._hasTriggeredInitialScrollToIndex = true; - } - if (_this.props.onContentSizeChange) { - _this.props.onContentSizeChange(width, height); - } - _this._scrollMetrics.contentLength = _this._selectLength({ - height: height, - width: width - }); - _this._scheduleCellsToRenderUpdate(); - _this._maybeCallOnEndReached(); - }; - _this._convertParentScrollMetrics = function (metrics) { - var offset = metrics.offset - _this._offsetFromParentVirtualizedList; - var visibleLength = metrics.visibleLength; - var dOffset = offset - _this._scrollMetrics.offset; - var contentLength = _this._scrollMetrics.contentLength; - return { - visibleLength: visibleLength, - contentLength: contentLength, - offset: offset, - dOffset: dOffset - }; - }; - _this._onScroll = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onScroll(e); - }); - if (_this.props.onScroll) { - _this.props.onScroll(e); - } - var timestamp = e.timeStamp; - var visibleLength = _this._selectLength(e.nativeEvent.layoutMeasurement); - var contentLength = _this._selectLength(e.nativeEvent.contentSize); - var offset = _this._selectOffset(e.nativeEvent.contentOffset); - var dOffset = offset - _this._scrollMetrics.offset; - if (_this._isNestedWithSameOrientation()) { - if (_this._scrollMetrics.contentLength === 0) { - return; - } - var _this$_convertParentS = _this._convertParentScrollMetrics({ - visibleLength: visibleLength, - offset: offset - }); - visibleLength = _this$_convertParentS.visibleLength; - contentLength = _this$_convertParentS.contentLength; - offset = _this$_convertParentS.offset; - dOffset = _this$_convertParentS.dOffset; - } - var dt = _this._scrollMetrics.timestamp ? Math.max(1, timestamp - _this._scrollMetrics.timestamp) : 1; - var velocity = dOffset / dt; - if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) { - _$$_REQUIRE(_dependencyMap[14], "../Utilities/infoLog")('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: dt, - prevDt: _this._scrollMetrics.dt, - contentLength: contentLength - }); - _this._hasWarned.perf = true; - } - - var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale; - _this._scrollMetrics = { - contentLength: contentLength, - dt: dt, - dOffset: dOffset, - offset: offset, - timestamp: timestamp, - velocity: velocity, - visibleLength: visibleLength, - zoomScale: zoomScale - }; - _this._updateViewableItems(_this.props.data); - if (!_this.props) { - return; - } - _this._maybeCallOnEndReached(); - if (velocity !== 0) { - _this._fillRateHelper.activate(); - } - _this._computeBlankness(); - _this._scheduleCellsToRenderUpdate(); - }; - _this._onScrollBeginDrag = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onScrollBeginDrag(e); - }); - _this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.recordInteraction(); - }); - _this._hasInteracted = true; - _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); - }; - _this._onScrollEndDrag = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onScrollEndDrag(e); - }); - var velocity = e.nativeEvent.velocity; - if (velocity) { - _this._scrollMetrics.velocity = _this._selectOffset(velocity); + var fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.elementType = type; + fiber.type = resolvedType; + fiber.lanes = lanes; + { + fiber._debugOwner = owner; } - _this._computeBlankness(); - _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); - }; - _this._onMomentumScrollBegin = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onMomentumScrollBegin(e); - }); - _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); - }; - _this._onMomentumScrollEnd = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onMomentumScrollEnd(e); - }); - _this._scrollMetrics.velocity = 0; - _this._computeBlankness(); - _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); - }; - _this._updateCellsToRender = function () { - var _this$props = _this.props, - data = _this$props.data, - getItemCount = _this$props.getItemCount, - _onEndReachedThreshold = _this$props.onEndReachedThreshold; - var onEndReachedThreshold = onEndReachedThresholdOrDefault(_onEndReachedThreshold); - var isVirtualizationDisabled = _this._isVirtualizationDisabled(); - _this._updateViewableItems(data); - if (!data) { - return; + return fiber; + } + function createFiberFromElement(element, mode, lanes) { + var owner = null; + { + owner = element._owner; } - _this.setState(function (state) { - var newState; - var _this$_scrollMetrics = _this._scrollMetrics, - contentLength = _this$_scrollMetrics.contentLength, - offset = _this$_scrollMetrics.offset, - visibleLength = _this$_scrollMetrics.visibleLength; - var distanceFromEnd = contentLength - visibleLength - offset; - if (!isVirtualizationDisabled) { - if (visibleLength > 0 && contentLength > 0) { - - if (!_this.props.initialScrollIndex || _this._scrollMetrics.offset || Math.abs(distanceFromEnd) < Number.EPSILON) { - newState = (0, _$$_REQUIRE(_dependencyMap[15], "./VirtualizeUtils").computeWindowedRenderLimits)(_this.props.data, _this.props.getItemCount, maxToRenderPerBatchOrDefault(_this.props.maxToRenderPerBatch), windowSizeOrDefault(_this.props.windowSize), state, _this.__getFrameMetricsApprox, _this._scrollMetrics); - } - } - } else { - var renderAhead = distanceFromEnd < onEndReachedThreshold * visibleLength ? maxToRenderPerBatchOrDefault(_this.props.maxToRenderPerBatch) : 0; - newState = { - first: 0, - last: Math.min(state.last + renderAhead, getItemCount(data) - 1) - }; - } - if (newState && _this._nestedChildLists.size > 0) { - var newFirst = newState.first; - var newLast = newState.last; - for (var ii = newFirst; ii <= newLast; ii++) { - var cellKeyForIndex = _this._indicesToKeys.get(ii); - var childListKeys = cellKeyForIndex && _this._cellKeysToChildListKeys.get(cellKeyForIndex); - if (!childListKeys) { - continue; - } - var someChildHasMore = false; - for (var childKey of childListKeys) { - var childList = _this._nestedChildLists.get(childKey); - if (childList && childList.ref && childList.ref.hasMore()) { - someChildHasMore = true; - break; - } - } - if (someChildHasMore) { - newState.last = ii; - break; - } - } - } - if (newState != null && newState.first === state.first && newState.last === state.last) { - newState = null; - } - return newState; - }); - }; - _this._createViewToken = function (index, isViewable) { - var _this$props2 = _this.props, - data = _this$props2.data, - getItem = _this$props2.getItem; - var item = getItem(data, index); - return { - index: index, - item: item, - key: _this._keyExtractor(item, index), - isViewable: isViewable - }; - }; - _this.__getFrameMetricsApprox = function (index) { - var frame = _this._getFrameMetrics(index); - if (frame && frame.index === index) { - return frame; - } else { - var getItemLayout = _this.props.getItemLayout; - _$$_REQUIRE(_dependencyMap[11], "invariant")(!getItemLayout, 'Should not have to estimate frames when a measurement metrics function is provided'); - return { - length: _this._averageCellLength, - offset: _this._averageCellLength * index - }; + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes); + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; } - }; - _this._getFrameMetrics = function (index) { - var _this$props3 = _this.props, - data = _this$props3.data, - getItem = _this$props3.getItem, - getItemCount = _this$props3.getItemCount, - getItemLayout = _this$props3.getItemLayout; - _$$_REQUIRE(_dependencyMap[11], "invariant")(getItemCount(data) > index, 'Tried to get frame for out of range index ' + index); - var item = getItem(data, index); - var frame = item && _this._frames[_this._keyExtractor(item, index)]; - if (!frame || frame.index !== index) { - if (getItemLayout) { - return getItemLayout(data, index); + return fiber; + } + function createFiberFromFragment(elements, mode, lanes, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromProfiler(pendingProps, mode, lanes, key) { + { + if (typeof pendingProps.id !== "string") { + error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id); } } - return frame; - }; - _$$_REQUIRE(_dependencyMap[11], "invariant")( - !_props.onScroll || !_props.onScroll.__isNative, 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' + 'to support native onScroll events with useNativeDriver'); - _$$_REQUIRE(_dependencyMap[11], "invariant")(windowSizeOrDefault(_props.windowSize) > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'); - _this._fillRateHelper = new (_$$_REQUIRE(_dependencyMap[16], "./FillRateHelper"))(_this._getFrameMetrics); - _this._updateCellsToRenderBatcher = new (_$$_REQUIRE(_dependencyMap[17], "../Interaction/Batchinator"))(_this._updateCellsToRender, (_this$props$updateCel = _this.props.updateCellsBatchingPeriod) != null ? _this$props$updateCel : 50); - if (_this.props.viewabilityConfigCallbackPairs) { - _this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { - return { - viewabilityHelper: new (_$$_REQUIRE(_dependencyMap[18], "./ViewabilityHelper"))(pair.viewabilityConfig), - onViewableItemsChanged: pair.onViewableItemsChanged + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.elementType = REACT_PROFILER_TYPE; + fiber.lanes = lanes; + { + fiber.stateNode = { + effectDuration: 0, + passiveEffectDuration: 0 }; - }); - } else { - var _this$props4 = _this.props, - onViewableItemsChanged = _this$props4.onViewableItemsChanged, - viewabilityConfig = _this$props4.viewabilityConfig; - if (onViewableItemsChanged) { - _this._viewabilityTuples.push({ - viewabilityHelper: new (_$$_REQUIRE(_dependencyMap[18], "./ViewabilityHelper"))(viewabilityConfig), - onViewableItemsChanged: onViewableItemsChanged - }); } + return fiber; } - var initialState = { - first: _this.props.initialScrollIndex || 0, - last: Math.min(_this.props.getItemCount(_this.props.data), (_this.props.initialScrollIndex || 0) + initialNumToRenderOrDefault(_this.props.initialNumToRender)) - 1 - }; - if (_this._isNestedWithSameOrientation()) { - var storedState = _this.context.getNestedChildState(_this._getListKey()); - if (storedState) { - initialState = storedState; - _this.state = storedState; - _this._frames = storedState.frames; - } + function createFiberFromSuspense(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_TYPE; + fiber.lanes = lanes; + return fiber; } - _this.state = initialState; - return _this; - } - (0, _createClass2.default)(VirtualizedList, [{ - key: "scrollToEnd", - value: - function scrollToEnd(params) { - var animated = params ? params.animated : true; - var veryLast = this.props.getItemCount(this.props.data) - 1; - var frame = this.__getFrameMetricsApprox(veryLast); - var offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength); - if (this._scrollRef == null) { - return; - } - if (this._scrollRef.scrollTo == null) { - console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); - return; - } - this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); + function createFiberFromSuspenseList(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_LIST_TYPE; + fiber.lanes = lanes; + return fiber; } - - }, { - key: "scrollToIndex", - value: - function scrollToIndex(params) { - var _this$props5 = this.props, - data = _this$props5.data, - horizontal = _this$props5.horizontal, - getItemCount = _this$props5.getItemCount, - getItemLayout = _this$props5.getItemLayout, - onScrollToIndexFailed = _this$props5.onScrollToIndexFailed; - var animated = params.animated, - index = params.index, - viewOffset = params.viewOffset, - viewPosition = params.viewPosition; - _$$_REQUIRE(_dependencyMap[11], "invariant")(index >= 0, "scrollToIndex out of range: requested index " + index + " but minimum is 0"); - _$$_REQUIRE(_dependencyMap[11], "invariant")(getItemCount(data) >= 1, "scrollToIndex out of range: item length " + getItemCount(data) + " but minimum is 1"); - _$$_REQUIRE(_dependencyMap[11], "invariant")(index < getItemCount(data), "scrollToIndex out of range: requested index " + index + " is out of 0 to " + (getItemCount(data) - 1)); - if (!getItemLayout && index > this._highestMeasuredFrameIndex) { - _$$_REQUIRE(_dependencyMap[11], "invariant")(!!onScrollToIndexFailed, '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.'); - onScrollToIndexFailed({ - averageItemLength: this._averageCellLength, - highestMeasuredFrameIndex: this._highestMeasuredFrameIndex, - index: index - }); - return; - } - var frame = this.__getFrameMetricsApprox(index); - var offset = Math.max(0, frame.offset - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0); - if (this._scrollRef == null) { - return; - } - if (this._scrollRef.scrollTo == null) { - console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); - return; - } - this._scrollRef.scrollTo(horizontal ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); + fiber.elementType = REACT_OFFSCREEN_TYPE; + fiber.lanes = lanes; + var primaryChildInstance = { + isHidden: false + }; + fiber.stateNode = primaryChildInstance; + return fiber; } - - }, { - key: "scrollToItem", - value: - function scrollToItem(params) { - var item = params.item; - var _this$props6 = this.props, - data = _this$props6.data, - getItem = _this$props6.getItem, - getItemCount = _this$props6.getItemCount; - var itemCount = getItemCount(data); - for (var _index = 0; _index < itemCount; _index++) { - if (getItem(data, _index) === item) { - this.scrollToIndex(Object.assign({}, params, { - index: _index - })); - break; - } - } + function createFiberFromText(content, mode, lanes) { + var fiber = createFiber(HostText, content, null, mode); + fiber.lanes = lanes; + return fiber; } + function createFiberFromPortal(portal, mode, lanes) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.lanes = lanes; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + // Used by persistent updates + implementation: portal.implementation + }; + return fiber; + } // Used for stashing WIP properties to replay failed work in DEV. - }, { - key: "scrollToOffset", - value: - function scrollToOffset(params) { - var animated = params.animated, - offset = params.offset; - if (this._scrollRef == null) { - return; - } - if (this._scrollRef.scrollTo == null) { - console.warn('No scrollTo method provided. This may be because you have two nested ' + 'VirtualizedLists with the same orientation, or because you are ' + 'using a custom component that does not implement scrollTo.'); - return; - } - this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); - } - }, { - key: "recordInteraction", - value: function recordInteraction() { - this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref.recordInteraction(); - }); - this._viewabilityTuples.forEach(function (t) { - t.viewabilityHelper.recordInteraction(); - }); - this._updateViewableItems(this.props.data); - } - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() { - if (this._scrollRef == null) { - return; - } - this._scrollRef.flashScrollIndicators(); - } + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + // This Fiber's initial properties will always be overwritten. + // We only use a Fiber to ensure the same hidden class so DEV isn't slow. + target = createFiber(IndeterminateComponent, null, null, NoMode); + } // This is intentionally written as a list of all properties. + // We tried to use Object.assign() instead but this is called in + // the hottest path, and Object.assign() was too slow: + // https://github.com/facebook/react/issues/12502 + // This code is DEV-only so size is not a concern. - }, { - key: "getScrollResponder", - value: - function getScrollResponder() { - if (this._scrollRef && this._scrollRef.getScrollResponder) { - return this._scrollRef.getScrollResponder(); + target.tag = source.tag; + target.key = source.key; + target.elementType = source.elementType; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.dependencies = source.dependencies; + target.mode = source.mode; + target.flags = source.flags; + target.subtreeFlags = source.subtreeFlags; + target.deletions = source.deletions; + target.lanes = source.lanes; + target.childLanes = source.childLanes; + target.alternate = source.alternate; + { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseDuration = source.selfBaseDuration; + target.treeBaseDuration = source.treeBaseDuration; } + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugNeedsRemount = source._debugNeedsRemount; + target._debugHookTypes = source._debugHookTypes; + return target; } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - if (this._scrollRef && this._scrollRef.getScrollableNode) { - return this._scrollRef.getScrollableNode(); - } else { - return _$$_REQUIRE(_dependencyMap[19], "../Renderer/shims/ReactNative").findNodeHandle(this._scrollRef); + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.pendingChildren = null; + this.current = null; + this.pingCache = null; + this.finishedWork = null; + this.timeoutHandle = noTimeout; + this.context = null; + this.pendingContext = null; + this.callbackNode = null; + this.callbackPriority = NoLane; + this.eventTimes = createLaneMap(NoLanes); + this.expirationTimes = createLaneMap(NoTimestamp); + this.pendingLanes = NoLanes; + this.suspendedLanes = NoLanes; + this.pingedLanes = NoLanes; + this.expiredLanes = NoLanes; + this.mutableReadLanes = NoLanes; + this.finishedLanes = NoLanes; + this.entangledLanes = NoLanes; + this.entanglements = createLaneMap(NoLanes); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + { + this.effectDuration = 0; + this.passiveEffectDuration = 0; } - } - }, { - key: "getScrollRef", - value: function getScrollRef() { - if (this._scrollRef && this._scrollRef.getScrollRef) { - return this._scrollRef.getScrollRef(); - } else { - return this._scrollRef; + { + this.memoizedUpdaters = new Set(); + var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = []; + for (var _i = 0; _i < TotalLanes; _i++) { + pendingUpdatersLaneMap.push(new Set()); + } } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - if (this._scrollRef) { - this._scrollRef.setNativeProps(props); + { + switch (tag) { + case ConcurrentRoot: + this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; + break; + case LegacyRoot: + this._debugRootType = hydrate ? "hydrate()" : "render()"; + break; + } } } - }, { - key: "_getCellKey", - value: function _getCellKey() { - var _this$context; - return ((_this$context = this.context) == null ? void 0 : _this$context.cellKey) || 'rootList'; - } - }, { - key: "_getListKey", - value: function _getListKey() { - return this.props.listKey || this._getCellKey(); - } - }, { - key: "_getDebugInfo", - value: function _getDebugInfo() { - var _this$context2; - return { - listKey: this._getListKey(), - cellKey: this._getCellKey(), - horizontal: horizontalOrDefault(this.props.horizontal), - parent: (_this$context2 = this.context) == null ? void 0 : _this$context2.debugInfo - }; - } - }, { - key: "hasMore", - value: function hasMore() { - return this._hasMore; - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this._isNestedWithSameOrientation()) { - this.context.registerAsNestedChild({ - cellKey: this._getCellKey(), - key: this._getListKey(), - ref: this, - parentDebugInfo: this.context.debugInfo - }); + function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, + // TODO: We have several of these arguments that are conceptually part of the + // host config, but because they are passed in at runtime, we have to thread + // them through the root constructor. Perhaps we should put them all into a + // single type, like a DynamicHostConfig that is defined by the renderer. + identifierPrefix, onRecoverableError, transitionCallbacks) { + var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); + // stateNode is any. + + var uninitializedFiber = createHostRootFiber(tag, isStrictMode); + root.current = uninitializedFiber; + uninitializedFiber.stateNode = root; + { + var _initialState = { + element: initialChildren, + isDehydrated: hydrate, + cache: null, + // not enabled yet + transitions: null, + pendingSuspenseBoundaries: null + }; + uninitializedFiber.memoizedState = _initialState; } + initializeUpdateQueue(uninitializedFiber); + return root; } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._isNestedWithSameOrientation()) { - this.context.unregisterAsNestedChild({ - key: this._getListKey(), - state: { - first: this.state.first, - last: this.state.last, - frames: this._frames - } - }); + var ReactVersion = "18.2.0-next-9e3b772b8-20220608"; + function createPortal(children, containerInfo, + // TODO: figure out the API for cross-renderer implementation. + implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + { + checkKeyStringCoercion(key); } - this._updateViewableItems(null); - this._updateCellsToRenderBatcher.dispose({ - abort: true - }); - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.dispose(); - }); - this._fillRateHelper.deactivateAndFlush(); - } - }, { - key: "_pushCells", - value: function _pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, first, last, inversionStyle) { - var _this2 = this; - var _this$props7 = this.props, - CellRendererComponent = _this$props7.CellRendererComponent, - ItemSeparatorComponent = _this$props7.ItemSeparatorComponent, - ListHeaderComponent = _this$props7.ListHeaderComponent, - ListItemComponent = _this$props7.ListItemComponent, - data = _this$props7.data, - debug = _this$props7.debug, - getItem = _this$props7.getItem, - getItemCount = _this$props7.getItemCount, - getItemLayout = _this$props7.getItemLayout, - horizontal = _this$props7.horizontal, - renderItem = _this$props7.renderItem; - var stickyOffset = ListHeaderComponent ? 1 : 0; - var end = getItemCount(data) - 1; - var prevCellKey; - last = Math.min(end, last); - var _loop = function _loop(ii) { - var item = getItem(data, ii); - var key = _this2._keyExtractor(item, ii); - _this2._indicesToKeys.set(ii, key); - if (stickyIndicesFromProps.has(ii + stickyOffset)) { - stickyHeaderIndices.push(cells.length); - } - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(CellRenderer, { - CellRendererComponent: CellRendererComponent, - ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined, - ListItemComponent: ListItemComponent, - cellKey: key, - debug: debug, - fillRateHelper: _this2._fillRateHelper, - getItemLayout: getItemLayout, - horizontal: horizontal, - index: ii, - inversionStyle: inversionStyle, - item: item, - prevCellKey: prevCellKey, - onCellLayout: _this2._onCellLayout, - onUpdateSeparators: _this2._onUpdateSeparators, - onUnmount: _this2._onCellUnmount, - ref: function ref(_ref) { - _this2._cellRefs[key] = _ref; - }, - renderItem: renderItem - }, key)); - prevCellKey = key; + return { + // This tag allow us to uniquely identify this as a React Portal + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation }; - for (var ii = first; ii <= last; ii++) { - _loop(ii); - } - } - }, { - key: "_isVirtualizationDisabled", - value: function _isVirtualizationDisabled() { - return this.props.disableVirtualization || false; } - }, { - key: "_isNestedWithSameOrientation", - value: function _isNestedWithSameOrientation() { - var nestedContext = this.context; - return !!(nestedContext && !!nestedContext.horizontal === horizontalOrDefault(this.props.horizontal)); + var didWarnAboutNestedUpdates; + var didWarnAboutFindNodeInStrictMode; + { + didWarnAboutNestedUpdates = false; + didWarnAboutFindNodeInStrictMode = {}; } - }, { - key: "_keyExtractor", - value: function _keyExtractor(item, index) { - if (this.props.keyExtractor != null) { - return this.props.keyExtractor(item, index); + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyContextObject; } - var key = (0, _$$_REQUIRE(_dependencyMap[15], "./VirtualizeUtils").keyExtractor)(item, index); - if (key === String(index)) { - _usedIndexForKey = true; - if (item.type && item.type.displayName) { - _keylessItemComponentName = item.type.displayName; + var fiber = get(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + if (fiber.tag === ClassComponent) { + var Component = fiber.type; + if (isContextProvider(Component)) { + return processChildContext(fiber, Component, parentContext); } } - return key; + return parentContext; } - }, { - key: "render", - value: function render() { - var _this3 = this; - if (__DEV__) { - var flatStyles = _$$_REQUIRE(_dependencyMap[20], "../StyleSheet/flattenStyle")(this.props.contentContainerStyle); - if (flatStyles != null && flatStyles.flexWrap === 'wrap') { - console.warn('`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' + 'Consider using `numColumns` with `FlatList` instead.'); + function findHostInstanceWithWarning(component, methodName) { + { + var fiber = get(component); + if (fiber === undefined) { + if (typeof component.render === "function") { + throw new Error("Unable to find node on an unmounted component."); + } else { + var keys = Object.keys(component).join(","); + throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys); + } } - } - var _this$props8 = this.props, - ListEmptyComponent = _this$props8.ListEmptyComponent, - ListFooterComponent = _this$props8.ListFooterComponent, - ListHeaderComponent = _this$props8.ListHeaderComponent; - var _this$props9 = this.props, - data = _this$props9.data, - horizontal = _this$props9.horizontal; - var isVirtualizationDisabled = this._isVirtualizationDisabled(); - var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles.horizontallyInverted : styles.verticallyInverted : null; - var cells = []; - var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices); - var stickyHeaderIndices = []; - if (ListHeaderComponent) { - if (stickyIndicesFromProps.has(0)) { - stickyHeaderIndices.push(0); + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; } - var element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListHeaderComponent, {}); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { - cellKey: this._getCellKey() + '-header', - children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - onLayout: this._onLayoutHeader, - style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, this.props.ListHeaderComponentStyle), - children: - element - }) - }, "$header")); - } - var itemCount = this.props.getItemCount(data); - if (itemCount > 0) { - _usedIndexForKey = false; - _keylessItemComponentName = ''; - var spacerKey = this._getSpacerKey(!horizontal); - var lastInitialIndex = this.props.initialScrollIndex ? -1 : initialNumToRenderOrDefault(this.props.initialNumToRender) - 1; - var _this$state = this.state, - first = _this$state.first, - last = _this$state.last; - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, 0, lastInitialIndex, inversionStyle); - var firstAfterInitial = Math.max(lastInitialIndex + 1, first); - if (!isVirtualizationDisabled && first > lastInitialIndex + 1) { - var insertedStickySpacer = false; - if (stickyIndicesFromProps.size > 0) { - var stickyOffset = ListHeaderComponent ? 1 : 0; - for (var ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) { - if (stickyIndicesFromProps.has(ii + stickyOffset)) { - var initBlock = this.__getFrameMetricsApprox(lastInitialIndex); - var stickyBlock = this.__getFrameMetricsApprox(ii); - var leadSpace = stickyBlock.offset - initBlock.offset - (this.props.initialScrollIndex ? 0 : initBlock.length); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: (0, _defineProperty2.default)({}, spacerKey, leadSpace) - }, "$sticky_lead")); - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, ii, ii, inversionStyle); - var trailSpace = this.__getFrameMetricsApprox(first).offset - (stickyBlock.offset + stickyBlock.length); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: (0, _defineProperty2.default)({}, spacerKey, trailSpace) - }, "$sticky_trail")); - insertedStickySpacer = true; - break; + if (hostFiber.mode & StrictLegacyMode) { + var componentName = getComponentNameFromFiber(fiber) || "Component"; + if (!didWarnAboutFindNodeInStrictMode[componentName]) { + didWarnAboutFindNodeInStrictMode[componentName] = true; + var previousFiber = current; + try { + setCurrentFiber(hostFiber); + if (fiber.mode & StrictLegacyMode) { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } else { + error("%s is deprecated in StrictMode. " + "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName); + } + } finally { + // Ideally this should reset to previous but this shouldn't be called in + // render and there's another warning for that anyway. + if (previousFiber) { + setCurrentFiber(previousFiber); + } else { + resetCurrentFiber(); } } } - if (!insertedStickySpacer) { - var _initBlock = this.__getFrameMetricsApprox(lastInitialIndex); - var firstSpace = this.__getFrameMetricsApprox(first).offset - (_initBlock.offset + _initBlock.length); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: (0, _defineProperty2.default)({}, spacerKey, firstSpace) - }, "$lead_spacer")); - } - } - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, firstAfterInitial, last, inversionStyle); - if (!this._hasWarned.keys && _usedIndexForKey) { - console.warn('VirtualizedList: missing keys for items, make sure to specify a key or id property on each ' + 'item or provide a custom keyExtractor.', _keylessItemComponentName); - this._hasWarned.keys = true; } - if (!isVirtualizationDisabled && last < itemCount - 1) { - var lastFrame = this.__getFrameMetricsApprox(last); - var end = this.props.getItemLayout ? itemCount - 1 : Math.min(itemCount - 1, this._highestMeasuredFrameIndex); - var endFrame = this.__getFrameMetricsApprox(end); - var tailSpacerLength = endFrame.offset + endFrame.length - (lastFrame.offset + lastFrame.length); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: (0, _defineProperty2.default)({}, spacerKey, tailSpacerLength) - }, "$tail_spacer")); - } - } else if (ListEmptyComponent) { - var _element = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListEmptyComponent, {}); - cells.push(React.cloneElement(_element, { - key: '$empty', - onLayout: function onLayout(event) { - _this3._onLayoutEmpty(event); - if (_element.props.onLayout) { - _element.props.onLayout(event); - } - }, - style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, _element.props.style) - })); - } - if (ListFooterComponent) { - var _element2 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ListFooterComponent, {}); - cells.push((0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { - cellKey: this._getFooterCellKey(), - children: (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - onLayout: this._onLayoutFooter, - style: _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").compose(inversionStyle, this.props.ListFooterComponentStyle), - children: - _element2 - }) - }, "$footer")); - } - var scrollProps = 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: scrollEventThrottleOrDefault(this.props.scrollEventThrottle), - invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted, - stickyHeaderIndices: stickyHeaderIndices, - style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style - }); - this._hasMore = this.state.last < this.props.getItemCount(this.props.data) - 1; - var innerRet = (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListContextProvider, { - value: { - cellKey: null, - getScrollMetrics: this._getScrollMetrics, - horizontal: horizontalOrDefault(this.props.horizontal), - getOutermostParentListRef: this._getOutermostParentListRef, - getNestedChildState: this._getNestedChildState, - registerAsNestedChild: this._registerAsNestedChild, - unregisterAsNestedChild: this._unregisterAsNestedChild, - debugInfo: this._getDebugInfo() - }, - children: React.cloneElement((this.props.renderScrollComponent || this._defaultRenderScrollComponent)(scrollProps), { - ref: this._captureScrollRef - }, cells) - }); - var ret = innerRet; - if (__DEV__) { - ret = (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView").Context.Consumer, { - children: function children(scrollContext) { - if (scrollContext != null && !scrollContext.horizontal === !horizontalOrDefault(_this3.props.horizontal) && !_this3._hasWarned.nesting && _this3.context == null) { - console.error('VirtualizedLists should never be nested inside plain ScrollViews with the same ' + 'orientation because it can break windowing and other functionality - use another ' + 'VirtualizedList-backed container instead.'); - _this3._hasWarned.nesting = true; - } - return innerRet; - } - }); - } - if (this.props.debug) { - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: styles.debug, - children: [ret, this._renderDebugOverlay()] - }); - } else { - return ret; + return hostFiber.stateNode; } } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props10 = this.props, - data = _this$props10.data, - extraData = _this$props10.extraData; - if (data !== prevProps.data || extraData !== prevProps.extraData) { - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.resetViewableIndices(); - }); + function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) { + var hydrate = false; + var initialChildren = null; + return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); + } + function updateContainer(element, container, parentComponent, callback) { + { + onScheduleRoot(container, element); } - var hiPriInProgress = this._hiPriInProgress; - this._scheduleCellsToRenderUpdate(); - if (hiPriInProgress) { - this._hiPriInProgress = false; + var current$1 = container.current; + var eventTime = requestEventTime(); + var lane = requestUpdateLane(current$1); + var context = getContextForSubtree(parentComponent); + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; } - } - }, { - key: "_computeBlankness", - value: function _computeBlankness() { - this._fillRateHelper.computeBlankness(this.props, this.state, this._scrollMetrics); - } - - }, { - key: "_triggerRemeasureForChildListsInCell", - value: function _triggerRemeasureForChildListsInCell(cellKey) { - var childListKeys = this._cellKeysToChildListKeys.get(cellKey); - if (childListKeys) { - for (var childKey of childListKeys) { - var childList = this._nestedChildLists.get(childKey); - childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); + { + if (isRendering && current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + error("Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); } } - } - }, { - key: "measureLayoutRelativeToContainingList", - value: function measureLayoutRelativeToContainingList() { - var _this4 = this; - try { - if (!this._scrollRef) { - return; - } - this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) { - _this4._offsetFromParentVirtualizedList = _this4._selectOffset({ - x: x, - y: y - }); - _this4._scrollMetrics.contentLength = _this4._selectLength({ - width: width, - height: height - }); - var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.getScrollMetrics()); - var metricsChanged = _this4._scrollMetrics.visibleLength !== scrollMetrics.visibleLength || _this4._scrollMetrics.offset !== scrollMetrics.offset; - if (metricsChanged) { - _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength; - _this4._scrollMetrics.offset = scrollMetrics.offset; + var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property + // being called "element". - _this4._cellKeysToChildListKeys.forEach(function (childListKeys) { - if (childListKeys) { - for (var childKey of childListKeys) { - var childList = _this4._nestedChildLists.get(childKey); - childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); - } - } - }); + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + if (callback !== null) { + { + if (typeof callback !== "function") { + error("render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback); } - }, function (error) { - console.warn("VirtualizedList: Encountered an error while measuring a list's" + ' offset from its containing VirtualizedList.'); - }); - } catch (error) { - console.warn('measureLayoutRelativeToContainingList threw an error', error.stack); - } - } - }, { - key: "_getFooterCellKey", - value: function _getFooterCellKey() { - return this._getCellKey() + '-footer'; - } - }, { - key: "_renderDebugOverlay", - value: function _renderDebugOverlay() { - var _this5 = this; - var normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1); - var framesInLayout = []; - var itemCount = this.props.getItemCount(this.props.data); - for (var ii = 0; ii < itemCount; ii++) { - var frame = this.__getFrameMetricsApprox(ii); - if (frame.inLayout) { - framesInLayout.push(frame); } + update.callback = callback; } - var windowTop = this.__getFrameMetricsApprox(this.state.first).offset; - var frameLast = this.__getFrameMetricsApprox(this.state.last); - var windowLen = frameLast.offset + frameLast.length - windowTop; - var visTop = this._scrollMetrics.offset; - var visLen = this._scrollMetrics.visibleLength; - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: [styles.debugOverlayBase, styles.debugOverlay], - children: [framesInLayout.map(function (f, ii) { - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: [styles.debugOverlayBase, styles.debugOverlayFrame, { - top: f.offset * normalize, - height: f.length * normalize - }] - }, 'f' + ii); - }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: [styles.debugOverlayBase, styles.debugOverlayFrameLast, { - top: windowTop * normalize, - height: windowLen * normalize - }] - }), (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: [styles.debugOverlayBase, styles.debugOverlayFrameVis, { - top: visTop * normalize, - height: visLen * normalize - }] - })] - }); - } - }, { - key: "_selectLength", - value: function _selectLength(metrics) { - return !horizontalOrDefault(this.props.horizontal) ? metrics.height : metrics.width; - } - }, { - key: "_selectOffset", - value: function _selectOffset(metrics) { - return !horizontalOrDefault(this.props.horizontal) ? metrics.y : metrics.x; - } - }, { - key: "_maybeCallOnEndReached", - value: function _maybeCallOnEndReached() { - var _this$props11 = this.props, - data = _this$props11.data, - getItemCount = _this$props11.getItemCount, - onEndReached = _this$props11.onEndReached, - onEndReachedThreshold = _this$props11.onEndReachedThreshold; - var _this$_scrollMetrics2 = this._scrollMetrics, - contentLength = _this$_scrollMetrics2.contentLength, - visibleLength = _this$_scrollMetrics2.visibleLength, - offset = _this$_scrollMetrics2.offset; - var distanceFromEnd = contentLength - visibleLength - offset; - - if (distanceFromEnd < ON_END_REACHED_EPSILON) { - distanceFromEnd = 0; - } - - var threshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : 2; - if (onEndReached && this.state.last === getItemCount(data) - 1 && distanceFromEnd <= threshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) { - this._sentEndForContentLength = this._scrollMetrics.contentLength; - onEndReached({ - distanceFromEnd: distanceFromEnd - }); - } else if (distanceFromEnd > threshold) { - this._sentEndForContentLength = 0; + var root = enqueueUpdate(current$1, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, current$1, lane, eventTime); + entangleTransitions(root, current$1, lane); } + return lane; } - }, { - key: "_scheduleCellsToRenderUpdate", - value: function _scheduleCellsToRenderUpdate() { - var _this$state2 = this.state, - first = _this$state2.first, - last = _this$state2.last; - var _this$_scrollMetrics3 = this._scrollMetrics, - offset = _this$_scrollMetrics3.offset, - visibleLength = _this$_scrollMetrics3.visibleLength, - velocity = _this$_scrollMetrics3.velocity; - var itemCount = this.props.getItemCount(this.props.data); - var hiPri = false; - var onEndReachedThreshold = onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold); - var scrollingThreshold = onEndReachedThreshold * visibleLength / 2; - if (first > 0) { - var distTop = offset - this.__getFrameMetricsApprox(first).offset; - hiPri = hiPri || distTop < 0 || velocity < -2 && distTop < scrollingThreshold; - } - if (last < itemCount - 1) { - var distBottom = this.__getFrameMetricsApprox(last).offset - (offset + visibleLength); - hiPri = hiPri || distBottom < 0 || velocity > 2 && distBottom < scrollingThreshold; + function getPublicRootInstance(container) { + var containerFiber = container.current; + if (!containerFiber.child) { + return null; } - if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) { - this._hiPriInProgress = true; - this._updateCellsToRenderBatcher.dispose({ - abort: true - }); - this._updateCellsToRender(); - return; - } else { - this._updateCellsToRenderBatcher.schedule(); + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + default: + return containerFiber.child.stateNode; } } - }, { - key: "_updateViewableItems", - value: function _updateViewableItems(data) { - var _this6 = this; - var getItemCount = this.props.getItemCount; - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.onUpdate(getItemCount(data), _this6._scrollMetrics.offset, _this6._scrollMetrics.visibleLength, _this6._getFrameMetrics, _this6._createViewToken, tuple.onViewableItemsChanged, _this6.state); - }); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(newProps, prevState) { - var data = newProps.data, - getItemCount = newProps.getItemCount; - var maxToRenderPerBatch = maxToRenderPerBatchOrDefault(newProps.maxToRenderPerBatch); - return { - first: Math.max(0, Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch)), - last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)) - }; - } - }]); - return VirtualizedList; - }(React.PureComponent); - VirtualizedList.contextType = _$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListContext; - var CellRenderer = function (_React$Component) { - (0, _inherits2.default)(CellRenderer, _React$Component); - var _super2 = _createSuper(CellRenderer); - function CellRenderer() { - var _this7; - (0, _classCallCheck2.default)(this, CellRenderer); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this7 = _super2.call.apply(_super2, [this].concat(args)); - _this7.state = { - separatorProps: { - highlighted: false, - leadingItem: _this7.props.item - } - }; - _this7._separators = { - highlight: function highlight() { - var _this7$props = _this7.props, - cellKey = _this7$props.cellKey, - prevCellKey = _this7$props.prevCellKey; - _this7.props.onUpdateSeparators([cellKey, prevCellKey], { - highlighted: true - }); - }, - unhighlight: function unhighlight() { - var _this7$props2 = _this7.props, - cellKey = _this7$props2.cellKey, - prevCellKey = _this7$props2.prevCellKey; - _this7.props.onUpdateSeparators([cellKey, prevCellKey], { - highlighted: false - }); - }, - updateProps: function updateProps(select, newProps) { - var _this7$props3 = _this7.props, - cellKey = _this7$props3.cellKey, - prevCellKey = _this7$props3.prevCellKey; - _this7.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps); - } + var shouldErrorImpl = function shouldErrorImpl(fiber) { + return null; }; - _this7._onLayout = function (nativeEvent) { - _this7.props.onCellLayout && _this7.props.onCellLayout(nativeEvent, _this7.props.cellKey, _this7.props.index); + function shouldError(fiber) { + return shouldErrorImpl(fiber); + } + var shouldSuspendImpl = function shouldSuspendImpl(fiber) { + return false; }; - return _this7; - } - (0, _createClass2.default)(CellRenderer, [{ - key: "updateSeparatorProps", - value: function updateSeparatorProps(newProps) { - this.setState(function (state) { - return { - separatorProps: Object.assign({}, state.separatorProps, newProps) - }; - }); + function shouldSuspend(fiber) { + return shouldSuspendImpl(fiber); } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.props.onUnmount(this.props.cellKey); + var overrideHookState = null; + var overrideHookStateDeletePath = null; + var overrideHookStateRenamePath = null; + var overrideProps = null; + var overridePropsDeletePath = null; + var overridePropsRenamePath = null; + var scheduleUpdate = null; + var setErrorHandler = null; + var setSuspenseHandler = null; + { + var copyWithDeleteImpl = function copyWithDeleteImpl(obj, path, index) { + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === path.length) { + if (isArray(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; + } + return updated; + } // $FlowFixMe number or string is fine here + + updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); + return updated; + }; + var copyWithDelete = function copyWithDelete(obj, path) { + return copyWithDeleteImpl(obj, path, 0); + }; + var copyWithRenameImpl = function copyWithRenameImpl(obj, oldPath, newPath, index) { + var oldKey = oldPath[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === oldPath.length) { + var newKey = newPath[index]; // $FlowFixMe number or string is fine here + + updated[newKey] = updated[oldKey]; + if (isArray(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + // $FlowFixMe number or string is fine here + updated[oldKey] = copyWithRenameImpl( + // $FlowFixMe number or string is fine here + obj[oldKey], oldPath, newPath, index + 1); + } + return updated; + }; + var copyWithRename = function copyWithRename(obj, oldPath, newPath) { + if (oldPath.length !== newPath.length) { + warn("copyWithRename() expects paths of the same length"); + return; + } else { + for (var i = 0; i < newPath.length - 1; i++) { + if (oldPath[i] !== newPath[i]) { + warn("copyWithRename() expects paths to be the same except for the deepest key"); + return; + } + } + } + return copyWithRenameImpl(obj, oldPath, newPath, 0); + }; + var copyWithSetImpl = function copyWithSetImpl(obj, path, index, value) { + if (index >= path.length) { + return value; + } + var key = path[index]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here + + updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); + return updated; + }; + var copyWithSet = function copyWithSet(obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; + var findHook = function findHook(fiber, id) { + // For now, the "id" of stateful hooks is just the stateful hook index. + // This may change in the future with e.g. nested hooks. + var currentHook = fiber.memoizedState; + while (currentHook !== null && id > 0) { + currentHook = currentHook.next; + id--; + } + return currentHook; + }; // Support DevTools editable values for useState and useReducer. + + overrideHookState = function overrideHookState(fiber, id, path, value) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithSet(hook.memoizedState, path, value); + hook.memoizedState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; + overrideHookStateDeletePath = function overrideHookStateDeletePath(fiber, id, path) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithDelete(hook.memoizedState, path); + hook.memoizedState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; + overrideHookStateRenamePath = function overrideHookStateRenamePath(fiber, id, oldPath, newPath) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithRename(hook.memoizedState, oldPath, newPath); + hook.memoizedState = newState; + hook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. + + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; // Support DevTools props for function components, forwardRef, memo, host components, etc. + + overrideProps = function overrideProps(fiber, path, value) { + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + overridePropsDeletePath = function overridePropsDeletePath(fiber, path) { + fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + overridePropsRenamePath = function overridePropsRenamePath(fiber, oldPath, newPath) { + fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + scheduleUpdate = function scheduleUpdate(fiber) { + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + setErrorHandler = function setErrorHandler(newShouldErrorImpl) { + shouldErrorImpl = newShouldErrorImpl; + }; + setSuspenseHandler = function setSuspenseHandler(newShouldSuspendImpl) { + shouldSuspendImpl = newShouldSuspendImpl; + }; } - }, { - key: "_renderElement", - value: function _renderElement(renderItem, ListItemComponent, item, index) { - if (renderItem && ListItemComponent) { - console.warn('VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take' + ' precedence over renderItem.'); - } - if (ListItemComponent) { - return React.createElement(ListItemComponent, { - item: item, - index: index, - separators: this._separators - }); - } - if (renderItem) { - return renderItem({ - item: item, - index: index, - separators: this._separators - }); + function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; } - _$$_REQUIRE(_dependencyMap[11], "invariant")(false, 'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.'); + return hostFiber.stateNode; } - }, { - key: "render", - value: function render() { - var _this$props12 = this.props, - CellRendererComponent = _this$props12.CellRendererComponent, - ItemSeparatorComponent = _this$props12.ItemSeparatorComponent, - ListItemComponent = _this$props12.ListItemComponent, - debug = _this$props12.debug, - fillRateHelper = _this$props12.fillRateHelper, - getItemLayout = _this$props12.getItemLayout, - horizontal = _this$props12.horizontal, - item = _this$props12.item, - index = _this$props12.index, - inversionStyle = _this$props12.inversionStyle, - renderItem = _this$props12.renderItem; - var element = this._renderElement(renderItem, ListItemComponent, item, index); - var onLayout = getItemLayout && !debug && !fillRateHelper.enabled() || !this.props.onCellLayout ? undefined : this._onLayout; - var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps)); - var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle; - var result = !CellRendererComponent ? (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[10], "../Components/View/View"), { - style: cellStyle, - onLayout: onLayout, - children: [element, itemSeparator] - }) : (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsxs)(CellRendererComponent, Object.assign({}, this.props, { - style: cellStyle, - onLayout: onLayout, - children: [element, itemSeparator] - })); - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[21], "./VirtualizedListContext.js").VirtualizedListCellContextProvider, { - cellKey: this.props.cellKey, - children: result + function emptyFindFiberByHostInstance(instance) { + return null; + } + function getCurrentFiberForDevTools() { + return current; + } + function injectIntoDevTools(devToolsConfig) { + var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals({ + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState: overrideHookState, + overrideHookStateDeletePath: overrideHookStateDeletePath, + overrideHookStateRenamePath: overrideHookStateRenamePath, + overrideProps: overrideProps, + overridePropsDeletePath: overridePropsDeletePath, + overridePropsRenamePath: overridePropsRenamePath, + setErrorHandler: setErrorHandler, + setSuspenseHandler: setSuspenseHandler, + scheduleUpdate: scheduleUpdate, + currentDispatcherRef: ReactCurrentDispatcher, + findHostInstanceByFiber: findHostInstanceByFiber, + findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, + // React Refresh + findHostInstancesForRefresh: findHostInstancesForRefresh, + scheduleRefresh: scheduleRefresh, + scheduleRoot: scheduleRoot, + setRefreshHandler: setRefreshHandler, + // Enables DevTools to append owner stacks to error messages in DEV mode. + getCurrentFiber: getCurrentFiberForDevTools, + // Enables DevTools to detect reconciler version rather than renderer version + // which may not match for third party renderers. + reconcilerVersion: ReactVersion }); } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props, prevState) { - return { - separatorProps: Object.assign({}, prevState.separatorProps, { - leadingItem: props.item - }) - }; + var emptyObject$1 = {}; + { + Object.freeze(emptyObject$1); } + var createHierarchy; + var getHostNode; + var getHostProps; + var lastNonHostInstance; + var getOwnerHierarchy; + var _traverseOwnerTreeUp; + { + createHierarchy = function createHierarchy(fiberHierarchy) { + return fiberHierarchy.map(function (fiber) { + return { + name: getComponentNameFromType(fiber.type), + getInspectorData: function getInspectorData(findNodeHandle) { + return { + props: getHostProps(fiber), + source: fiber._debugSource, + measure: function measure(callback) { + // If this is Fabric, we'll find a ShadowNode and use that to measure. + var hostFiber = findCurrentHostFiber(fiber); + var shadowNode = hostFiber != null && hostFiber.stateNode !== null && hostFiber.stateNode.node; + if (shadowNode) { + nativeFabricUIManager.measure(shadowNode, callback); + } else { + return ReactNativePrivateInterface.UIManager.measure(getHostNode(fiber, findNodeHandle), callback); + } + } + }; + } + }; + }); + }; + getHostNode = function getHostNode(fiber, findNodeHandle) { + var hostNode; // look for children first for the hostNode + // as composite fibers do not have a hostNode - }]); - return CellRenderer; - }(React.Component); - function describeNestedLists(childList) { - var trace = 'VirtualizedList trace:\n' + (" Child (" + (childList.horizontal ? 'horizontal' : 'vertical') + "):\n") + (" listKey: " + childList.key + "\n") + (" cellKey: " + childList.cellKey); - var debugInfo = childList.parentDebugInfo; - while (debugInfo) { - trace += "\n Parent (" + (debugInfo.horizontal ? 'horizontal' : 'vertical') + "):\n" + (" listKey: " + debugInfo.listKey + "\n") + (" cellKey: " + debugInfo.cellKey); - debugInfo = debugInfo.parent; - } - return trace; - } - var styles = _$$_REQUIRE(_dependencyMap[22], "../StyleSheet/StyleSheet").create({ - verticallyInverted: { - transform: [{ - scaleY: -1 - }] - }, - horizontallyInverted: { - transform: [{ - scaleX: -1 - }] - }, - row: { - flexDirection: 'row' - }, - rowReverse: { - flexDirection: 'row-reverse' - }, - columnReverse: { - flexDirection: 'column-reverse' - }, - 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 - } - }); - module.exports = VirtualizedList; -},309,[3,306,12,13,49,50,47,46,36,73,245,17,310,326,124,308,329,330,331,34,189,332,244],"node_modules/react-native/Libraries/Lists/VirtualizedList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/assertThisInitialized")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); - var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Animated/AnimatedImplementation")); - var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Dimensions")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); - var _ReactNative = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../Renderer/shims/ReactNative")); - var _ScrollViewStickyHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./ScrollViewStickyHeader")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "../View/View")); - var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[16], "../../ReactNative/UIManager")); - var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[17], "../Keyboard/Keyboard")); - var _FrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[18], "../../Interaction/FrameRateLogger")); - var _TextInputState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[19], "../TextInput/TextInputState")); - var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[20], "../../Utilities/dismissKeyboard")); - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[21], "../../StyleSheet/flattenStyle")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[22], "invariant")); - var _processDecelerationRate = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[23], "./processDecelerationRate")); - var _splitLayoutProps2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[24], "../../StyleSheet/splitLayoutProps")); - var _setAndForwardRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[25], "../../Utilities/setAndForwardRef")); - var _ScrollViewContext = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[26], "./ScrollViewContext")); - var _ScrollViewCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[27], "./ScrollViewCommands")); - var _AndroidHorizontalScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[28], "./AndroidHorizontalScrollContentViewNativeComponent")); - var _AndroidHorizontalScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[29], "./AndroidHorizontalScrollViewNativeComponent")); - var _ScrollContentViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[30], "./ScrollContentViewNativeComponent")); - var _ScrollViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[31], "./ScrollViewNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - _$$_REQUIRE(_dependencyMap[12], "../../Renderer/shims/ReactNative"); + while (fiber) { + if (fiber.stateNode !== null && fiber.tag === HostComponent) { + hostNode = findNodeHandle(fiber.stateNode); + } + if (hostNode) { + return hostNode; + } + fiber = fiber.child; + } + return null; + }; + getHostProps = function getHostProps(fiber) { + var host = findCurrentHostFiber(fiber); + if (host) { + return host.memoizedProps || emptyObject$1; + } + return emptyObject$1; + }; + exports.getInspectorDataForInstance = function (closestInstance) { + // Handle case where user clicks outside of ReactNative + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getOwnerHierarchy = function getOwnerHierarchy(instance) { + var hierarchy = []; + _traverseOwnerTreeUp(hierarchy, instance); + return hierarchy; + }; + lastNonHostInstance = function lastNonHostInstance(hierarchy) { + for (var i = hierarchy.length - 1; i > 1; i--) { + var instance = hierarchy[i]; + if (instance.tag !== HostComponent) { + return instance; + } + } + return hierarchy[0]; + }; + _traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { + if (instance) { + hierarchy.unshift(instance); + _traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + }; + } + var getInspectorDataForViewTag; + var getInspectorDataForViewAtPoint; + { + getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { + var closestInstance = getInstanceFromTag(viewTag); // Handle case where user clicks outside of ReactNative - var _ref = _Platform.default.OS === 'android' ? { - NativeHorizontalScrollViewTuple: [_AndroidHorizontalScrollViewNativeComponent.default, _AndroidHorizontalScrollContentViewNativeComponent.default], - NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _View.default] - } : { - NativeHorizontalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default], - NativeVerticalScrollViewTuple: [_ScrollViewNativeComponent.default, _ScrollContentViewNativeComponent.default] - }, - NativeHorizontalScrollViewTuple = _ref.NativeHorizontalScrollViewTuple, - NativeVerticalScrollViewTuple = _ref.NativeVerticalScrollViewTuple; + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject$1, + selectedIndex: null, + source: null + }; + } + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selectedIndex = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selectedIndex: selectedIndex, + source: source + }; + }; + getInspectorDataForViewAtPoint = function getInspectorDataForViewAtPoint(findNodeHandle, inspectedView, locationX, locationY, callback) { + var closestInstance = null; + if (inspectedView._internalInstanceHandle != null) { + // For Fabric we can look up the instance handle directly and measure it. + nativeFabricUIManager.findNodeAtPoint(inspectedView._internalInstanceHandle.stateNode.node, locationX, locationY, function (internalInstanceHandle) { + if (internalInstanceHandle == null) { + callback(assign({ + pointerY: locationY, + frame: { + left: 0, + top: 0, + width: 0, + height: 0 + } + }, exports.getInspectorDataForInstance(closestInstance))); + } + closestInstance = internalInstanceHandle.stateNode.canonical._internalInstanceHandle; // Note: this is deprecated and we want to remove it ASAP. Keeping it here for React DevTools compatibility for now. - var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; - var ScrollView = function (_React$Component) { - (0, _inherits2.default)(ScrollView, _React$Component); - var _super = _createSuper(ScrollView); - function ScrollView(props) { - var _this$props$contentOf, _this$props$contentOf2, _this$props$contentIn, _this$props$contentIn2; - var _this; - (0, _classCallCheck2.default)(this, ScrollView); - _this = _super.call(this, props); - _this._scrollAnimatedValueAttachment = null; - _this._stickyHeaderRefs = new Map(); - _this._headerLayoutYs = new Map(); - _this._keyboardMetrics = null; - _this._additionalScrollOffset = 0; - _this._isTouching = false; - _this._lastMomentumScrollBeginTime = 0; - _this._lastMomentumScrollEndTime = 0; - _this._observedScrollSinceBecomingResponder = false; - _this._becameResponderWhileAnimating = false; - _this._preventNegativeScrollOffset = null; - _this._animated = null; - _this._subscriptionKeyboardWillShow = null; - _this._subscriptionKeyboardWillHide = null; - _this._subscriptionKeyboardDidShow = null; - _this._subscriptionKeyboardDidHide = null; - _this.state = { - layoutHeight: null - }; - _this._setNativeRef = (0, _setAndForwardRef.default)({ - getForwardedRef: function getForwardedRef() { - return _this.props.scrollViewRef; - }, - setLocalRef: function setLocalRef(ref) { - _this._scrollViewRef = ref; - - if (ref) { - ref.getScrollResponder = _this.getScrollResponder; - ref.getScrollableNode = _this.getScrollableNode; - ref.getInnerViewNode = _this.getInnerViewNode; - ref.getInnerViewRef = _this.getInnerViewRef; - ref.getNativeScrollRef = _this.getNativeScrollRef; - ref.scrollTo = _this.scrollTo; - ref.scrollToEnd = _this.scrollToEnd; - ref.flashScrollIndicators = _this.flashScrollIndicators; - ref.scrollResponderZoomTo = _this.scrollResponderZoomTo; - ref.scrollResponderScrollNativeHandleToKeyboard = _this.scrollResponderScrollNativeHandleToKeyboard; + var nativeViewTag = internalInstanceHandle.stateNode.canonical._nativeTag; + nativeFabricUIManager.measure(internalInstanceHandle.stateNode.node, function (x, y, width, height, pageX, pageY) { + var inspectorData = exports.getInspectorDataForInstance(closestInstance); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: pageX, + top: pageY, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + }); + } else if (inspectedView._internalFiberInstanceHandleDEV != null) { + // For Paper we fall back to the old strategy using the React tag. + ReactNativePrivateInterface.UIManager.findSubviewIn(findNodeHandle(inspectedView), [locationX, locationY], function (nativeViewTag, left, top, width, height) { + var inspectorData = exports.getInspectorDataForInstance(getInstanceFromTag(nativeViewTag)); + callback(assign({}, inspectorData, { + pointerY: locationY, + frame: { + left: left, + top: top, + width: width, + height: height + }, + touchedViewTag: nativeViewTag + })); + }); + } else { + error("getInspectorDataForViewAtPoint expects to receive a host component"); + return; + } + }; + } + var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; + function findHostInstance_DEPRECATED(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; } } - }); - _this.getScrollResponder = function () { - return (0, _assertThisInitialized2.default)(_this); - }; - _this.getScrollableNode = function () { - return _ReactNative.default.findNodeHandle(_this._scrollViewRef); - }; - _this.getInnerViewNode = function () { - return _ReactNative.default.findNodeHandle(_this._innerViewRef); - }; - _this.getInnerViewRef = function () { - return _this._innerViewRef; - }; - _this.getNativeScrollRef = function () { - return _this._scrollViewRef; - }; - _this.scrollTo = function (options, deprecatedX, deprecatedAnimated) { - var x, y, animated; - if (typeof options === 'number') { - console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' + 'animated: true})` instead.'); - y = options; - x = deprecatedX; - animated = deprecatedAnimated; - } else if (options) { - y = options.y; - x = options.x; - animated = options.animated; - } - if (_this._scrollViewRef == null) { - return; - } - _ScrollViewCommands.default.scrollTo(_this._scrollViewRef, x || 0, y || 0, animated !== false); - }; - _this.scrollToEnd = function (options) { - var animated = (options && options.animated) !== false; - if (_this._scrollViewRef == null) { - return; - } - _ScrollViewCommands.default.scrollToEnd(_this._scrollViewRef, animated); - }; - _this.flashScrollIndicators = function () { - if (_this._scrollViewRef == null) { - return; + if (componentOrHandle == null) { + return null; } - _ScrollViewCommands.default.flashScrollIndicators(_this._scrollViewRef); - }; - _this.scrollResponderScrollNativeHandleToKeyboard = function (nodeHandle, additionalOffset, preventNegativeScrollOffset) { - _this._additionalScrollOffset = additionalOffset || 0; - _this._preventNegativeScrollOffset = !!preventNegativeScrollOffset; - if (_this._innerViewRef == null) { - return; + if (componentOrHandle._nativeTag) { + return componentOrHandle; } - if (typeof nodeHandle === 'number') { - _UIManager.default.measureLayout(nodeHandle, _ReactNative.default.findNodeHandle((0, _assertThisInitialized2.default)(_this)), - _this._textInputFocusError, _this._inputMeasureAndScrollToKeyboard); - } else { - nodeHandle.measureLayout(_this._innerViewRef, _this._inputMeasureAndScrollToKeyboard, - _this._textInputFocusError); + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical; } - }; - _this.scrollResponderZoomTo = function (rect, animated) { - (0, _invariant.default)(_Platform.default.OS === 'ios', 'zoomToRect is not implemented'); - if ('animated' in rect) { - _this._animated = rect.animated; - delete rect.animated; - } else if (typeof animated !== 'undefined') { - console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead'); + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findHostInstance_DEPRECATED"); } - if (_this._scrollViewRef == null) { - return; + if (hostInstance == null) { + return hostInstance; } - _ScrollViewCommands.default.zoomToRect(_this._scrollViewRef, rect, animated !== false); - }; - _this._inputMeasureAndScrollToKeyboard = function (left, top, width, height) { - var keyboardScreenY = _Dimensions.default.get('window').height; - var scrollTextInputIntoVisibleRect = function scrollTextInputIntoVisibleRect() { - if (_this._keyboardMetrics != null) { - keyboardScreenY = _this._keyboardMetrics.screenY; - } - var scrollOffsetY = top - keyboardScreenY + height + _this._additionalScrollOffset; + if (hostInstance.canonical) { + // Fabric + return hostInstance.canonical; + } // $FlowFixMe[incompatible-return] - if (_this._preventNegativeScrollOffset === true) { - scrollOffsetY = Math.max(0, scrollOffsetY); + return hostInstance; + } + function findNodeHandle(componentOrHandle) { + { + var owner = ReactCurrentOwner$3.current; + if (owner !== null && owner.stateNode !== null) { + if (!owner.stateNode._warnedAboutRefsInRender) { + error("%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentNameFromType(owner.type) || "A component"); + } + owner.stateNode._warnedAboutRefsInRender = true; } - _this.scrollTo({ - x: 0, - y: scrollOffsetY, - animated: true - }); - _this._additionalScrollOffset = 0; - _this._preventNegativeScrollOffset = false; - }; - if (_this._keyboardMetrics == null) { - setTimeout(function () { - scrollTextInputIntoVisibleRect(); - }, 0); - } else { - scrollTextInputIntoVisibleRect(); } - }; - _this._handleScroll = function (e) { - if (__DEV__) { - if (_this.props.onScroll && _this.props.scrollEventThrottle == null && _Platform.default.OS === 'ios') { - console.log('You specified `onScroll` on a but not ' + '`scrollEventThrottle`. You will only receive one event. ' + 'Using `16` you get all the events but be aware that it may ' + "cause frame drops, use a bigger number if you don't need as " + 'much precision.'); - } + if (componentOrHandle == null) { + return null; } - _this._observedScrollSinceBecomingResponder = true; - _this.props.onScroll && _this.props.onScroll(e); - }; - _this._handleLayout = function (e) { - if (_this.props.invertStickyHeaders === true) { - _this.setState({ - layoutHeight: e.nativeEvent.layout.height - }); + if (typeof componentOrHandle === "number") { + // Already a node handle + return componentOrHandle; } - if (_this.props.onLayout) { - _this.props.onLayout(e); + if (componentOrHandle._nativeTag) { + return componentOrHandle._nativeTag; } - }; - _this._handleContentOnLayout = function (e) { - var _e$nativeEvent$layout = e.nativeEvent.layout, - width = _e$nativeEvent$layout.width, - height = _e$nativeEvent$layout.height; - _this.props.onContentSizeChange && _this.props.onContentSizeChange(width, height); - }; - _this._scrollViewRef = null; - _this._innerViewRef = null; - _this._setInnerViewRef = (0, _setAndForwardRef.default)({ - getForwardedRef: function getForwardedRef() { - return _this.props.innerViewRef; - }, - setLocalRef: function setLocalRef(ref) { - _this._innerViewRef = ref; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical._nativeTag; } - }); - _this.scrollResponderKeyboardWillShow = function (e) { - _this._keyboardMetrics = e.endCoordinates; - _this.props.onKeyboardWillShow && _this.props.onKeyboardWillShow(e); - }; - _this.scrollResponderKeyboardWillHide = function (e) { - _this._keyboardMetrics = null; - _this.props.onKeyboardWillHide && _this.props.onKeyboardWillHide(e); - }; - _this.scrollResponderKeyboardDidShow = function (e) { - _this._keyboardMetrics = e.endCoordinates; - _this.props.onKeyboardDidShow && _this.props.onKeyboardDidShow(e); - }; - _this.scrollResponderKeyboardDidHide = function (e) { - _this._keyboardMetrics = null; - _this.props.onKeyboardDidHide && _this.props.onKeyboardDidHide(e); - }; - _this._handleMomentumScrollBegin = function (e) { - _this._lastMomentumScrollBeginTime = global.performance.now(); - _this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e); - }; - _this._handleMomentumScrollEnd = function (e) { - _FrameRateLogger.default.endScroll(); - _this._lastMomentumScrollEndTime = global.performance.now(); - _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); - }; - _this._handleScrollBeginDrag = function (e) { - _FrameRateLogger.default.beginScroll(); - - if (_Platform.default.OS === 'android' && _this.props.keyboardDismissMode === 'on-drag') { - (0, _dismissKeyboard.default)(); + var hostInstance; + { + hostInstance = findHostInstanceWithWarning(componentOrHandle, "findNodeHandle"); } - _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); - }; - _this._handleScrollEndDrag = function (e) { - var velocity = e.nativeEvent.velocity; - if (!_this._isAnimating() && (!velocity || velocity.x === 0 && velocity.y === 0)) { - _FrameRateLogger.default.endScroll(); + if (hostInstance == null) { + return hostInstance; } - _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); - }; - _this._isAnimating = function () { - var now = global.performance.now(); - var timeSinceLastMomentumScrollEnd = now - _this._lastMomentumScrollEndTime; - var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || _this._lastMomentumScrollEndTime < _this._lastMomentumScrollBeginTime; - return isAnimating; - }; - _this._handleResponderGrant = function (e) { - _this._observedScrollSinceBecomingResponder = false; - _this.props.onResponderGrant && _this.props.onResponderGrant(e); - _this._becameResponderWhileAnimating = _this._isAnimating(); - }; - _this._handleResponderReject = function () {}; - _this._handleResponderRelease = function (e) { - _this._isTouching = e.nativeEvent.touches.length !== 0; - _this.props.onResponderRelease && _this.props.onResponderRelease(e); - if (typeof e.target === 'number') { - if (__DEV__) { - console.error('Did not expect event target to be a number. Should have been a native component'); + if (hostInstance.canonical) { + // Fabric + return hostInstance.canonical._nativeTag; + } + return hostInstance._nativeTag; + } + function dispatchCommand(handle, command, args) { + if (handle._nativeTag == null) { + { + error("dispatchCommand was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); } return; } - - var currentlyFocusedTextInput = _TextInputState.default.currentlyFocusedInput(); - if (_this.props.keyboardShouldPersistTaps !== true && _this.props.keyboardShouldPersistTaps !== 'always' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedTextInput && !_this._observedScrollSinceBecomingResponder && !_this._becameResponderWhileAnimating) { - _TextInputState.default.blurTextInput(currentlyFocusedTextInput); - } - }; - _this._handleResponderTerminationRequest = function () { - return !_this._observedScrollSinceBecomingResponder; - }; - _this._handleScrollShouldSetResponder = function () { - if (_this.props.disableScrollViewPanResponder === true) { - return false; - } - return _this._isTouching; - }; - _this._handleStartShouldSetResponder = function (e) { - if (_this.props.disableScrollViewPanResponder === true) { - return false; - } - var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); - if (_this.props.keyboardShouldPersistTaps === 'handled' && _this._keyboardIsDismissible() && e.target !== currentlyFocusedInput) { - return true; - } - return false; - }; - _this._handleStartShouldSetResponderCapture = function (e) { - if (_this._isAnimating()) { - return true; - } - - if (_this.props.disableScrollViewPanResponder === true) { - return false; - } - - var keyboardShouldPersistTaps = _this.props.keyboardShouldPersistTaps; - var keyboardNeverPersistTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; - if (typeof e.target === 'number') { - if (__DEV__) { - console.error('Did not expect event target to be a number. Should have been a native component'); + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); } - return false; + } else { + ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args); } - if (keyboardNeverPersistTaps && _this._keyboardIsDismissible() && e.target != null && - !_TextInputState.default.isTextInput(e.target)) { - return true; + } + function sendAccessibilityEvent(handle, eventType) { + if (handle._nativeTag == null) { + { + error("sendAccessibilityEvent was called with a ref that isn't a " + "native component. Use React.forwardRef to get access to the underlying native component"); + } + return; } - return false; - }; - _this._keyboardIsDismissible = function () { - var currentlyFocusedInput = _TextInputState.default.currentlyFocusedInput(); - - var hasFocusedTextInput = currentlyFocusedInput != null && _TextInputState.default.isTextInput(currentlyFocusedInput); - - var softKeyboardMayBeOpen = _this._keyboardMetrics != null || _Platform.default.OS === 'android'; - return hasFocusedTextInput && softKeyboardMayBeOpen; - }; - _this._handleTouchEnd = function (e) { - var nativeEvent = e.nativeEvent; - _this._isTouching = nativeEvent.touches.length !== 0; - _this.props.onTouchEnd && _this.props.onTouchEnd(e); - }; - _this._handleTouchCancel = function (e) { - _this._isTouching = false; - _this.props.onTouchCancel && _this.props.onTouchCancel(e); - }; - _this._handleTouchStart = function (e) { - _this._isTouching = true; - _this.props.onTouchStart && _this.props.onTouchStart(e); - }; - _this._handleTouchMove = function (e) { - _this.props.onTouchMove && _this.props.onTouchMove(e); - }; - _this._scrollAnimatedValue = new _AnimatedImplementation.default.Value((_this$props$contentOf = (_this$props$contentOf2 = _this.props.contentOffset) == null ? void 0 : _this$props$contentOf2.y) != null ? _this$props$contentOf : 0); - _this._scrollAnimatedValue.setOffset((_this$props$contentIn = (_this$props$contentIn2 = _this.props.contentInset) == null ? void 0 : _this$props$contentIn2.top) != null ? _this$props$contentIn : 0); - return _this; - } - (0, _createClass2.default)(ScrollView, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (typeof this.props.keyboardShouldPersistTaps === 'boolean') { - console.warn("'keyboardShouldPersistTaps={" + (this.props.keyboardShouldPersistTaps === true ? 'true' : 'false') + "}' is deprecated. " + ("Use 'keyboardShouldPersistTaps=\"" + (this.props.keyboardShouldPersistTaps ? 'always' : 'never') + "\"' instead")); + if (handle._internalInstanceHandle != null) { + var stateNode = handle._internalInstanceHandle.stateNode; + if (stateNode != null) { + nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType); + } + } else { + ReactNativePrivateInterface.legacySendAccessibilityEvent(handle._nativeTag, eventType); } - this._keyboardMetrics = _Keyboard.default.metrics(); - this._additionalScrollOffset = 0; - this._subscriptionKeyboardWillShow = _Keyboard.default.addListener('keyboardWillShow', this.scrollResponderKeyboardWillShow); - this._subscriptionKeyboardWillHide = _Keyboard.default.addListener('keyboardWillHide', this.scrollResponderKeyboardWillHide); - this._subscriptionKeyboardDidShow = _Keyboard.default.addListener('keyboardDidShow', this.scrollResponderKeyboardDidShow); - this._subscriptionKeyboardDidHide = _Keyboard.default.addListener('keyboardDidHide', this.scrollResponderKeyboardDidHide); - this._updateAnimatedNodeAttachment(); } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var prevContentInsetTop = prevProps.contentInset ? prevProps.contentInset.top : 0; - var newContentInsetTop = this.props.contentInset ? this.props.contentInset.top : 0; - if (prevContentInsetTop !== newContentInsetTop) { - this._scrollAnimatedValue.setOffset(newContentInsetTop || 0); - } - this._updateAnimatedNodeAttachment(); + function onRecoverableError(error$1) { + // TODO: Expose onRecoverableError option to userspace + // eslint-disable-next-line react-internal/no-production-logging, react-internal/warning-args + error(error$1); } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subscriptionKeyboardWillShow != null) { - this._subscriptionKeyboardWillShow.remove(); - } - if (this._subscriptionKeyboardWillHide != null) { - this._subscriptionKeyboardWillHide.remove(); - } - if (this._subscriptionKeyboardDidShow != null) { - this._subscriptionKeyboardDidShow.remove(); - } - if (this._subscriptionKeyboardDidHide != null) { - this._subscriptionKeyboardDidHide.remove(); - } - if (this._scrollAnimatedValueAttachment) { - this._scrollAnimatedValueAttachment.detach(); + function render(element, containerTag, callback) { + var root = roots.get(containerTag); + if (!root) { + // TODO (bvaughn): If we decide to keep the wrapper component, + // We could create a wrapper for containerTag as well to reduce special casing. + root = createContainer(containerTag, LegacyRoot, null, false, null, "", onRecoverableError); + roots.set(containerTag, root); } + updateContainer(element, root, null, callback); // $FlowIssue Flow has hardcoded values for React DOM that don't work with RN + + return getPublicRootInstance(root); } - }, { - key: "_textInputFocusError", - value: function _textInputFocusError() { - console.warn('Error measuring text field.'); + function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + if (root) { + // TODO: Is it safe to reset this now or should I wait since this unmount could be deferred? + updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } } + function unmountComponentAtNodeAndRemoveContainer(containerTag) { + unmountComponentAtNode(containerTag); // Call back into native to remove all of the subviews from this container - }, { - key: "_getKeyForIndex", - value: function _getKeyForIndex(index, childArray) { - var child = childArray[index]; - return child && child.key; + ReactNativePrivateInterface.UIManager.removeRootView(containerTag); } - }, { - key: "_updateAnimatedNodeAttachment", - value: function _updateAnimatedNodeAttachment() { - if (this._scrollAnimatedValueAttachment) { - this._scrollAnimatedValueAttachment.detach(); - } - if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { - this._scrollAnimatedValueAttachment = _AnimatedImplementation.default.attachNativeEvent(this._scrollViewRef, 'onScroll', [{ - nativeEvent: { - contentOffset: { - y: this._scrollAnimatedValue - } - } - }]); - } + function createPortal$1(children, containerTag) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + return createPortal(children, containerTag, null, key); } - }, { - key: "_setStickyHeaderRef", - value: function _setStickyHeaderRef(key, ref) { - if (ref) { - this._stickyHeaderRefs.set(key, ref); - } else { - this._stickyHeaderRefs.delete(key); + setBatchingImplementation(batchedUpdates$1); + function computeComponentStackForErrorReporting(reactTag) { + var fiber = getInstanceFromTag(reactTag); + if (!fiber) { + return ""; } + return getStackByFiberInDevAndProd(fiber); } - }, { - key: "_onStickyHeaderLayout", - value: function _onStickyHeaderLayout(index, event, key) { - var stickyHeaderIndices = this.props.stickyHeaderIndices; - if (!stickyHeaderIndices) { - return; + var roots = new Map(); + var Internals = { + computeComponentStackForErrorReporting: computeComponentStackForErrorReporting + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromTag, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: getInspectorDataForViewTag, + getInspectorDataForViewAtPoint: getInspectorDataForViewAtPoint.bind(null, findNodeHandle) } - var childArray = React.Children.toArray(this.props.children); - if (key !== this._getKeyForIndex(index, childArray)) { - return; + }); + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; + exports.createPortal = createPortal$1; + exports.dispatchCommand = dispatchCommand; + exports.findHostInstance_DEPRECATED = findHostInstance_DEPRECATED; + exports.findNodeHandle = findNodeHandle; + exports.render = render; + exports.sendAccessibilityEvent = sendAccessibilityEvent; + exports.unmountComponentAtNode = unmountComponentAtNode; + exports.unmountComponentAtNodeAndRemoveContainer = unmountComponentAtNodeAndRemoveContainer; + exports.unstable_batchedUpdates = batchedUpdates; + + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } +},412,[41,44,276,413],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], "./cjs/scheduler.native.production.min.js"); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], "./cjs/scheduler.native.development.js"); + } +},413,[414,415],"node_modules/scheduler/index.native.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * @license React + * scheduler.native.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + function f(a, b) { + var c = a.length; + a.push(b); + a: for (; 0 < c;) { + var d = c - 1 >>> 1, + e = a[d]; + if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;else break a; + } + } + function h(a) { + return 0 === a.length ? null : a[0]; + } + function k(a) { + if (0 === a.length) return null; + var b = a[0], + c = a.pop(); + if (c !== b) { + a[0] = c; + a: for (var d = 0, e = a.length, t = e >>> 1; d < t;) { + var m = 2 * (d + 1) - 1, + E = a[m], + n = m + 1, + A = a[n]; + if (0 > g(E, c)) n < e && 0 > g(A, E) ? (a[d] = A, a[n] = c, d = n) : (a[d] = E, a[m] = c, d = m);else if (n < e && 0 > g(A, c)) a[d] = A, a[n] = c, d = n;else break a; + } + } + return b; + } + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; + } + var l; + if ("object" === typeof performance && "function" === typeof performance.now) { + var p = performance; + l = function l() { + return p.now(); + }; + } else { + var q = Date, + r = q.now(); + l = function l() { + return q.now() - r; + }; + } + var u = [], + v = [], + w = 1, + x = null, + y = 3, + z = !1, + B = !1, + C = !1, + D = "function" === typeof setTimeout ? setTimeout : null, + F = "function" === typeof clearTimeout ? clearTimeout : null, + G = "undefined" !== typeof setImmediate ? setImmediate : null; + "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function H(a) { + for (var b = h(v); null !== b;) { + if (null === b.callback) k(v);else if (b.startTime <= a) k(v), b.sortIndex = b.expirationTime, f(u, b);else break; + b = h(v); + } + } + function I(a) { + C = !1; + H(a); + if (!B) if (null !== h(u)) B = !0, J = K, L || (L = !0, M());else { + var b = h(v); + null !== b && N(I, b.startTime - a); + } + } + function K(a, b) { + B = !1; + C && (C = !1, F(O), O = -1); + z = !0; + var c = y; + try { + a: { + H(b); + for (x = h(u); null !== x && (!(x.expirationTime > b) || a && !P());) { + var d = x.callback; + if ("function" === typeof d) { + x.callback = null; + y = x.priorityLevel; + var e = d(x.expirationTime <= b); + b = l(); + if ("function" === typeof e) { + x.callback = e; + H(b); + var t = !0; + break a; + } else x === h(u) && k(u), H(b); + } else k(u); + x = h(u); } - var layoutY = event.nativeEvent.layout.y; - this._headerLayoutYs.set(key, layoutY); - var indexOfIndex = stickyHeaderIndices.indexOf(index); - var previousHeaderIndex = stickyHeaderIndices[indexOfIndex - 1]; - if (previousHeaderIndex != null) { - var previousHeader = this._stickyHeaderRefs.get(this._getKeyForIndex(previousHeaderIndex, childArray)); - previousHeader && previousHeader.setNextHeaderY && previousHeader.setNextHeaderY(layoutY); + if (null !== x) t = !0;else { + var m = h(v); + null !== m && N(I, m.startTime - b); + t = !1; } } - }, { - key: "render", - value: function render() { - var _this2 = this; - var _ref2 = this.props.horizontal === true ? NativeHorizontalScrollViewTuple : NativeVerticalScrollViewTuple, - _ref3 = (0, _slicedToArray2.default)(_ref2, 2), - NativeDirectionalScrollView = _ref3[0], - NativeDirectionalScrollContentView = _ref3[1]; - var contentContainerStyle = [this.props.horizontal === true && styles.contentContainerHorizontal, this.props.contentContainerStyle]; - if (__DEV__ && this.props.style !== undefined) { - var style = (0, _flattenStyle.default)(this.props.style); - var childLayoutProps = ['alignItems', 'justifyContent'].filter(function (prop) { - return style && style[prop] !== undefined; - }); - (0, _invariant.default)(childLayoutProps.length === 0, 'ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); - } - var contentSizeChangeProps = this.props.onContentSizeChange == null ? null : { - onLayout: this._handleContentOnLayout - }; - var stickyHeaderIndices = this.props.stickyHeaderIndices; - var children = this.props.children; - if (stickyHeaderIndices != null && stickyHeaderIndices.length > 0) { - var childArray = React.Children.toArray(this.props.children); - children = childArray.map(function (child, index) { - var indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1; - if (indexOfIndex > -1) { - var key = child.key; - var nextIndex = stickyHeaderIndices[indexOfIndex + 1]; - var StickyHeaderComponent = _this2.props.StickyHeaderComponent || _ScrollViewStickyHeader.default; - return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(StickyHeaderComponent, { - nativeID: 'StickyHeader-' + key, - ref: function ref(_ref4) { - return _this2._setStickyHeaderRef(key, _ref4); - }, - nextHeaderLayoutY: _this2._headerLayoutYs.get(_this2._getKeyForIndex(nextIndex, childArray)), - onLayout: function onLayout(event) { - return _this2._onStickyHeaderLayout(index, event, key); - }, - scrollAnimatedValue: _this2._scrollAnimatedValue, - inverted: _this2.props.invertStickyHeaders, - hiddenOnScroll: _this2.props.stickyHeaderHiddenOnScroll, - scrollViewHeight: _this2.state.layoutHeight, - children: child - }, key); - } else { - return child; - } - }); - } - children = (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(_ScrollViewContext.default.Provider, { - value: this.props.horizontal === true ? _ScrollViewContext.HORIZONTAL : _ScrollViewContext.VERTICAL, - children: children - }); - var hasStickyHeaders = Array.isArray(stickyHeaderIndices) && stickyHeaderIndices.length > 0; - var contentContainer = (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollContentView, Object.assign({}, contentSizeChangeProps, { - ref: this._setInnerViewRef, - style: contentContainerStyle, - removeClippedSubviews: - _Platform.default.OS === 'android' && hasStickyHeaders ? false : this.props.removeClippedSubviews, - collapsable: false, - children: children - })); - var alwaysBounceHorizontal = this.props.alwaysBounceHorizontal !== undefined ? this.props.alwaysBounceHorizontal : this.props.horizontal; - var alwaysBounceVertical = this.props.alwaysBounceVertical !== undefined ? this.props.alwaysBounceVertical : !this.props.horizontal; - var baseStyle = this.props.horizontal === true ? styles.baseHorizontal : styles.baseVertical; - var props = Object.assign({}, this.props, { - alwaysBounceHorizontal: alwaysBounceHorizontal, - alwaysBounceVertical: alwaysBounceVertical, - style: _StyleSheet.default.compose(baseStyle, 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, - scrollEventThrottle: hasStickyHeaders ? 1 : this.props.scrollEventThrottle, - sendMomentumEvents: this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd ? true : false, - snapToStart: this.props.snapToStart !== false, - snapToEnd: this.props.snapToEnd !== false, - pagingEnabled: _Platform.default.select({ - ios: this.props.pagingEnabled === true && this.props.snapToInterval == null && this.props.snapToOffsets == null, - android: this.props.pagingEnabled === true || this.props.snapToInterval != null || this.props.snapToOffsets != null - }) - }); - var decelerationRate = this.props.decelerationRate; - if (decelerationRate != null) { - props.decelerationRate = (0, _processDecelerationRate.default)(decelerationRate); - } - var refreshControl = this.props.refreshControl; - if (refreshControl) { - if (_Platform.default.OS === 'ios') { - return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsxs)(NativeDirectionalScrollView, Object.assign({}, props, { - ref: this._setNativeRef, - children: [refreshControl, contentContainer] - })); - } else if (_Platform.default.OS === 'android') { - var _splitLayoutProps = (0, _splitLayoutProps2.default)((0, _flattenStyle.default)(props.style)), - outer = _splitLayoutProps.outer, - inner = _splitLayoutProps.inner; - return React.cloneElement(refreshControl, { - style: _StyleSheet.default.compose(baseStyle, outer) - }, (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { - style: _StyleSheet.default.compose(baseStyle, inner), - ref: this._setNativeRef, - children: contentContainer - }))); - } - } - return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(NativeDirectionalScrollView, Object.assign({}, props, { - ref: this._setNativeRef, - children: contentContainer - })); - } - }]); - return ScrollView; - }(React.Component); - ScrollView.Context = _ScrollViewContext.default; - var styles = _StyleSheet.default.create({ - baseVertical: { - flexGrow: 1, - flexShrink: 1, - flexDirection: 'column', - overflow: 'scroll' - }, - baseHorizontal: { - flexGrow: 1, - flexShrink: 1, - flexDirection: 'row', - overflow: 'scroll' - }, - contentContainerHorizontal: { - flexDirection: 'row' + return t; + } finally { + x = null, y = c, z = !1; } - }); - - function Wrapper(props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[32], "react/jsx-runtime").jsx)(ScrollView, Object.assign({}, props, { - scrollViewRef: ref - })); } - Wrapper.displayName = 'ScrollView'; - var ForwardedScrollView = React.forwardRef(Wrapper); - - ForwardedScrollView.Context = _ScrollViewContext.default; - ForwardedScrollView.displayName = 'ScrollView'; - module.exports = ForwardedScrollView; -},310,[3,19,12,13,49,50,47,46,282,229,14,36,34,311,244,245,213,312,316,200,314,189,17,318,319,300,320,321,322,323,324,325,73],"node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"); + function Q(a, b, c) { + var d = l(); + "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1E4; + break; + default: + e = 5E3; + } + e = c + e; + a = { + id: w++, + callback: b, + priorityLevel: a, + startTime: c, + expirationTime: e, + sortIndex: -1 + }; + c > d ? (a.sortIndex = c, f(v, a), null === h(u) && a === h(v) && (C ? (F(O), O = -1) : C = !0, N(I, c - d))) : (a.sortIndex = e, f(u, a), B || z || (B = !0, J = K, L || (L = !0, M()))); + return a; + } + function R(a) { + a.callback = null; + } + function S() { + return y; + } + var L = !1, + J = null, + O = -1, + T = -1; + function P() { + return 5 > l() - T ? !1 : !0; + } + function U() {} + function V() { + if (null !== J) { + var a = l(); + T = a; + var b = !0; + try { + b = J(!0, a); + } finally { + b ? M() : (L = !1, J = null); + } + } else L = !1; + } + var M; + if ("function" === typeof G) M = function M() { + G(V); + };else if ("undefined" !== typeof MessageChannel) { + var W = new MessageChannel(), + X = W.port2; + W.port1.onmessage = V; + M = function M() { + X.postMessage(null); + }; + } else M = function M() { + D(V, 0); + }; + function N(a, b) { + O = D(function () { + a(l()); + }, b); + } + var Y = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_UserBlockingPriority : 2, + aa = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_NormalPriority : 3, + ba = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_LowPriority : 4, + ca = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_ImmediatePriority : 1, + da = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_scheduleCallback : Q, + ea = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_cancelCallback : R, + fa = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_getCurrentPriorityLevel : S, + ha = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_shouldYield : P, + ia = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_requestPaint : U, + ja = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_now : l; + function Z() { + throw Error("Not implemented."); + } + exports.unstable_IdlePriority = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.unstable_IdlePriority : 5; + exports.unstable_ImmediatePriority = ca; + exports.unstable_LowPriority = ba; + exports.unstable_NormalPriority = aa; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = Y; + exports.unstable_cancelCallback = ea; + exports.unstable_continueExecution = Z; + exports.unstable_forceFrameRate = Z; + exports.unstable_getCurrentPriorityLevel = fa; + exports.unstable_getFirstCallbackNode = Z; + exports.unstable_next = Z; + exports.unstable_now = ja; + exports.unstable_pauseExecution = Z; + exports.unstable_requestPaint = ia; + exports.unstable_runWithPriority = Z; + exports.unstable_scheduleCallback = da; + exports.unstable_shouldYield = ha; + exports.unstable_wrapCallback = Z; +},414,[],"node_modules/scheduler/cjs/scheduler.native.production.min.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var _AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Animated/AnimatedImplementation")); - var _AnimatedAddition = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Animated/nodes/AnimatedAddition")); - var _AnimatedDiffClamp = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Animated/nodes/AnimatedDiffClamp")); - var _AnimatedNode = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Animated/nodes/AnimatedNode")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../View/View")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../../Utilities/Platform")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AnimatedView = _AnimatedImplementation.default.createAnimatedComponent(_View.default); - var ScrollViewStickyHeader = function (_React$Component) { - (0, _inherits2.default)(ScrollViewStickyHeader, _React$Component); - var _super = _createSuper(ScrollViewStickyHeader); - function ScrollViewStickyHeader() { - var _this; - (0, _classCallCheck2.default)(this, ScrollViewStickyHeader); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + /** + * @license React + * scheduler.native.development.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var enableSchedulerDebugging = false; + var enableProfiling = false; + var frameYieldMs = 5; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); } - _this = _super.call.apply(_super, [this].concat(args)); - _this.state = { - measured: false, - layoutY: 0, - layoutHeight: 0, - nextHeaderLayoutY: _this.props.nextHeaderLayoutY, - translateY: null - }; - _this._translateY = null; - _this._shouldRecreateTranslateY = true; - _this._haveReceivedInitialZeroTranslateY = true; - _this._debounceTimeout = _Platform.default.OS === 'android' ? 15 : 64; - _this.setNextHeaderY = function (y) { - _this._shouldRecreateTranslateY = true; - _this.setState({ - nextHeaderLayoutY: y - }); - }; - _this._onLayout = function (event) { - var layoutY = event.nativeEvent.layout.y; - var layoutHeight = event.nativeEvent.layout.height; - var measured = true; - if (layoutY !== _this.state.layoutY || layoutHeight !== _this.state.layoutHeight || measured !== _this.state.measured) { - _this._shouldRecreateTranslateY = true; - } - _this.setState({ - measured: measured, - layoutY: layoutY, - layoutHeight: layoutHeight - }); - _this.props.onLayout(event); - var child = React.Children.only(_this.props.children); - if (child.props.onCellLayout) { - child.props.onCellLayout(event, child.props.cellKey, child.props.index); - } else if (child.props.onLayout) { - child.props.onLayout(event); - } - }; - _this._setComponentRef = function (ref) { - _this._ref = ref; - }; - return _this; - } - (0, _createClass2.default)(ScrollViewStickyHeader, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._translateY != null && this._animatedValueListenerId != null) { - this._translateY.removeListener(this._animatedValueListenerId); + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; } - if (this._timer) { - clearTimeout(this._timer); + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); } + return first; } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.scrollViewHeight !== this.props.scrollViewHeight || nextProps.scrollAnimatedValue !== this.props.scrollAnimatedValue || nextProps.inverted !== this.props.inverted) { - this._shouldRecreateTranslateY = true; + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + // The parent is larger. Swap positions. + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + // The parent is smaller. Exit. + return; + } } } - }, { - key: "updateTranslateListener", - value: function updateTranslateListener(translateY, isFabric, offset) { - var _this2 = this; - if (this._translateY != null && this._animatedValueListenerId != null) { - this._translateY.removeListener(this._animatedValueListenerId); + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. + + if (compare(left, node) < 0) { + if (rightIndex < length && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + // Neither child is smaller. Exit. + return; + } } - offset ? this._translateY = new _AnimatedAddition.default(translateY, offset) : this._translateY = translateY; - this._shouldRecreateTranslateY = false; - if (!isFabric) { - return; + } + function compare(a, b) { + // Compare sort index first, then task id. + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + + // TODO: Use symbols? + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) {} + + /* eslint-disable no-var */ + var getCurrentTime; + var hasPerformanceNow = + // $FlowFixMe[method-unbinding] + typeof performance === 'object' && typeof performance.now === 'function'; + if (hasPerformanceNow) { + var localPerformance = performance; + getCurrentTime = function getCurrentTime() { + return localPerformance.now(); + }; + } else { + var localDate = Date; + var initialTime = localDate.now(); + getCurrentTime = function getCurrentTime() { + return localDate.now() - initialTime; + }; + } // Max 31 bit integer. The max integer size in V8 for 32-bit systems. + // Math.pow(2, 30) - 1 + // 0b111111111111111111111111111111 + + var maxSigned31BitInt = 1073741823; // Times out immediately + + var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out + + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5000; + var LOW_PRIORITY_TIMEOUT = 10000; // Never times out + + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap + + var taskQueue = []; + var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. + + var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. + var currentTask = null; + var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. + + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. + + var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; + var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; + var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom + + typeof navigator !== 'undefined' && + // $FlowFixMe[prop-missing] + navigator.scheduling !== undefined && + // $FlowFixMe[incompatible-type] + navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function advanceTimers(currentTime) { + // Check for tasks that are no longer delayed and add them to the queue. + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + // Timer was cancelled. + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + // Timer fired. Transfer to the task queue. + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + // Remaining timers are pending. + return; + } + timer = peek(timerQueue); } - if (!this._animatedValueListener) { - this._animatedValueListener = function (_ref) { - var value = _ref.value; - if (value === 0 && !_this2._haveReceivedInitialZeroTranslateY) { - _this2._haveReceivedInitialZeroTranslateY = true; - return; - } - if (_this2._timer) { - clearTimeout(_this2._timer); + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); } - _this2._timer = setTimeout(function () { - if (value !== _this2.state.translateY) { - _this2.setState({ - translateY: value - }); - } - }, _this2._debounceTimeout); - }; + } + } + } + function flushWork(hasTimeRemaining, initialTime) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + // We scheduled a timeout but it's no longer needed. Cancel it. + isHostTimeoutScheduled = false; + cancelHostTimeout(); } - if (this.state.translateY !== 0 && this.state.translateY != null) { - this._haveReceivedInitialZeroTranslateY = false; + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + var currentTime; + if (enableProfiling) ;else { + // No catch in prod code path. + return workLoop(hasTimeRemaining, initialTime); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; } - this._animatedValueListenerId = translateY.addListener(this._animatedValueListener); } - }, { - key: "render", - value: function render() { - var _this$_ref$_internalI, _this$_ref$_internalI2; - var isFabric = !!( - this._ref && (_this$_ref$_internalI = this._ref['_internalInstanceHandle']) != null && (_this$_ref$_internalI2 = _this$_ref$_internalI.stateNode) != null && _this$_ref$_internalI2.canonical); - if (this._shouldRecreateTranslateY) { - var _this$props = this.props, - inverted = _this$props.inverted, - scrollViewHeight = _this$props.scrollViewHeight; - var _this$state = this.state, - measured = _this$state.measured, - layoutHeight = _this$state.layoutHeight, - layoutY = _this$state.layoutY, - nextHeaderLayoutY = _this$state.nextHeaderLayoutY; - var inputRange = [-1, 0]; - var outputRange = [0, 0]; - if (measured) { - if (inverted) { - if (scrollViewHeight != null) { - var stickStartPoint = layoutY + layoutHeight - scrollViewHeight; - if (stickStartPoint > 0) { - inputRange.push(stickStartPoint); - outputRange.push(0); - inputRange.push(stickStartPoint + 1); - outputRange.push(1); - var collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight; - if (collisionPoint > stickStartPoint) { - inputRange.push(collisionPoint, collisionPoint + 1); - outputRange.push(collisionPoint - stickStartPoint, collisionPoint - stickStartPoint); - } - } - } + function workLoop(hasTimeRemaining, initialTime) { + var currentTime = initialTime; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + // This currentTask hasn't expired, and we've reached the deadline. + break; + } // $FlowFixMe[incompatible-use] found when upgrading Flow + + var callback = currentTask.callback; + if (typeof callback === 'function') { + // $FlowFixMe[incompatible-use] found when upgrading Flow + currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow + + currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow + + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = getCurrentTime(); + if (typeof continuationCallback === 'function') { + // If a continuation is returned, immediately yield to the main thread + // regardless of how much time is left in the current time slice. + // $FlowFixMe[incompatible-use] found when upgrading Flow + currentTask.callback = continuationCallback; + advanceTimers(currentTime); + return true; } else { - inputRange.push(layoutY); - outputRange.push(0); - var _collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight; - if (_collisionPoint >= layoutY) { - inputRange.push(_collisionPoint, _collisionPoint + 1); - outputRange.push(_collisionPoint - layoutY, _collisionPoint - layoutY); - } else { - inputRange.push(layoutY + 1); - outputRange.push(1); + if (currentTask === peek(taskQueue)) { + pop(taskQueue); } + advanceTimers(currentTime); } + } else { + pop(taskQueue); } - this.updateTranslateListener(this.props.scrollAnimatedValue.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }), isFabric, this.props.hiddenOnScroll ? new _AnimatedDiffClamp.default(this.props.scrollAnimatedValue.interpolate({ - extrapolateLeft: 'clamp', - inputRange: [layoutY, layoutY + 1], - outputRange: [0, 1] - }).interpolate({ - inputRange: [0, 1], - outputRange: [0, -1] - }), -this.state.layoutHeight, 0) : null); - } - var child = React.Children.only(this.props.children); + currentTask = peek(taskQueue); + } // Return whether there's additional work - var passthroughAnimatedPropExplicitValues = isFabric && this.state.translateY != null ? { - style: { - transform: [{ - translateY: this.state.translateY - }] + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); } - } : null; - return (0, _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime").jsx)(AnimatedView, { - collapsable: false, - nativeID: this.props.nativeID, - onLayout: this._onLayout, - ref: this._setComponentRef, - style: [child.props.style, styles.header, { - transform: [{ - translateY: this._translateY - }] - }], - passthroughAnimatedPropExplicitValues: passthroughAnimatedPropExplicitValues, - children: React.cloneElement(child, { - style: styles.fill, - onLayout: undefined - }) - }); + return false; + } } - }]); - return ScrollViewStickyHeader; - }(React.Component); - var styles = _StyleSheet.default.create({ - header: { - zIndex: 10, - position: 'relative' - }, - fill: { - flex: 1 - } - }); - module.exports = ScrollViewStickyHeader; -},311,[3,12,13,50,47,46,282,283,288,278,36,244,245,14,73],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../EventEmitter/NativeEventEmitter")); - var _LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../LayoutAnimation/LayoutAnimation")); - var _dismissKeyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/dismissKeyboard")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); - var _NativeKeyboardObserver = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./NativeKeyboardObserver")); - var Keyboard = function () { - function Keyboard() { - var _this = this; - (0, _classCallCheck2.default)(this, Keyboard); - this._emitter = new _NativeEventEmitter.default( - _Platform.default.OS !== 'ios' ? null : _NativeKeyboardObserver.default); - this.addListener('keyboardDidShow', function (ev) { - _this._currentlyShowing = ev; - }); - this.addListener('keyboardDidHide', function (_ev) { - _this._currentlyShowing = null; - }); - } + function unstable_scheduleCallback$1(priorityLevel, callback, options) { + var currentTime = getCurrentTime(); + var startTime; + if (typeof options === 'object' && options !== null) { + var delay = options.delay; + if (typeof delay === 'number' && delay > 0) { + startTime = currentTime + delay; + } else { + startTime = currentTime; + } + } else { + startTime = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime + timeout; + var newTask = { + id: taskIdCounter++, + callback: callback, + priorityLevel: priorityLevel, + startTime: startTime, + expirationTime: expirationTime, + sortIndex: -1 + }; + if (startTime > currentTime) { + // This is a delayed task. + newTask.sortIndex = startTime; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + // All tasks are delayed, and this is the task with the earliest delay. + if (isHostTimeoutScheduled) { + // Cancel an existing timeout. + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } // Schedule a timeout. - (0, _createClass2.default)(Keyboard, [{ - key: "addListener", - value: - function addListener(eventType, listener, context) { - return this._emitter.addListener(eventType, listener); - } + requestHostTimeout(handleTimeout, startTime - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + // wait until the next time we yield. - }, { - key: "removeAllListeners", - value: - function removeAllListeners(eventType) { - this._emitter.removeAllListeners(eventType); + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; } + function unstable_cancelCallback$1(task) { + // remove from the queue because you can't remove arbitrary nodes from an + // array based heap, only the first one.) - }, { - key: "dismiss", - value: - function dismiss() { - (0, _dismissKeyboard.default)(); + task.callback = null; } - - }, { - key: "isVisible", - value: - function isVisible() { - return !!this._currentlyShowing; + function unstable_getCurrentPriorityLevel$1() { + return currentPriorityLevel; } + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main + // thread, like user events. By default, it yields multiple times per frame. + // It does not attempt to align with frame boundaries, since most tasks don't + // need to be frame aligned; for those that do, use requestAnimationFrame. - }, { - key: "metrics", - value: - function metrics() { - var _this$_currentlyShowi; - return (_this$_currentlyShowi = this._currentlyShowing) == null ? void 0 : _this$_currentlyShowi.endCoordinates; + var frameInterval = frameYieldMs; + var startTime = -1; + function shouldYieldToHost() { + var timeElapsed = getCurrentTime() - startTime; + if (timeElapsed < frameInterval) { + // The main thread has only been blocked for a really short amount of time; + // smaller than a single frame. Don't yield yet. + return false; + } // The main thread has been blocked for a non-negligible amount of time. We + + return true; } + function requestPaint() {} + var performWorkUntilDeadline = function performWorkUntilDeadline() { + if (scheduledHostCallback !== null) { + var currentTime = getCurrentTime(); // Keep track of the start time so we can measure how long the main thread + // has been blocked. - }, { - key: "scheduleLayoutAnimation", - value: - function scheduleLayoutAnimation(event) { - var duration = event.duration, - easing = event.easing; - if (duration != null && duration !== 0) { - _LayoutAnimation.default.configureNext({ - duration: duration, - update: { - duration: duration, - type: easing != null && _LayoutAnimation.default.Types[easing] || 'keyboard' + startTime = currentTime; + var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the + // error can be observed. + // + // Intentionally not using a try-catch, since that makes some debugging + // techniques harder. Instead, if `scheduledHostCallback` errors, then + // `hasMoreWork` will remain true, and we'll continue the work loop. + + var hasMoreWork = true; + try { + // $FlowFixMe[not-a-function] found when upgrading Flow + hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + } finally { + if (hasMoreWork) { + // If there's more work, schedule the next message event at the end + // of the preceding one. + schedulePerformWorkUntilDeadline(); + } else { + isMessageLoopRunning = false; + scheduledHostCallback = null; } - }); + } + } else { + isMessageLoopRunning = false; + } // Yielding to the browser will give it a chance to paint, so we can + }; + + var schedulePerformWorkUntilDeadline; + if (typeof localSetImmediate === 'function') { + // Node.js and old IE. + // There's a few reasons for why we prefer setImmediate. + // + // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. + // (Even though this is a DOM fork of the Scheduler, you could get here + // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) + // https://github.com/facebook/react/issues/20756 + // + // But also, it runs earlier which is the semantic we want. + // If other browsers ever implement it, it's better to use it. + // Although both of these would be inferior to native scheduling. + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + localSetImmediate(performWorkUntilDeadline); + }; + } else if (typeof MessageChannel !== 'undefined') { + // DOM and Worker environments. + // We prefer MessageChannel because of the 4ms setTimeout clamping. + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + port.postMessage(null); + }; + } else { + // We should only fallback here in non-browser environments. + schedulePerformWorkUntilDeadline = function schedulePerformWorkUntilDeadline() { + // $FlowFixMe[not-a-function] nullable value + localSetTimeout(performWorkUntilDeadline, 0); + }; + } + function requestHostCallback(callback) { + scheduledHostCallback = callback; + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + schedulePerformWorkUntilDeadline(); } } - }]); - return Keyboard; - }(); - module.exports = new Keyboard(); -},312,[3,12,13,134,313,314,14,315],"node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; + function requestHostTimeout(callback, ms) { + // $FlowFixMe[not-a-function] nullable value + taskTimeoutID = localSetTimeout(function () { + callback(getCurrentTime()); + }, ms); + } + function cancelHostTimeout() { + // $FlowFixMe[not-a-function] nullable value + localClearTimeout(taskTimeoutID); + taskTimeoutID = -1; + } - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/Platform")); - var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../ReactNative/ReactNativeFeatureFlags")); - var isLayoutAnimationEnabled = _ReactNativeFeatureFlags.default.isLayoutAnimationEnabled(); - function setEnabled(value) { - isLayoutAnimationEnabled = isLayoutAnimationEnabled; + // https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp + + var unstable_UserBlockingPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_UserBlockingPriority : UserBlockingPriority; + var unstable_NormalPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_NormalPriority : NormalPriority; + var unstable_IdlePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_IdlePriority : IdlePriority; + var unstable_LowPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_LowPriority : LowPriority; + var unstable_ImmediatePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_ImmediatePriority : ImmediatePriority; + var unstable_scheduleCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_scheduleCallback : unstable_scheduleCallback$1; + var unstable_cancelCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_cancelCallback : unstable_cancelCallback$1; + var unstable_getCurrentPriorityLevel = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_getCurrentPriorityLevel : unstable_getCurrentPriorityLevel$1; + var unstable_shouldYield = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_shouldYield : shouldYieldToHost; + var unstable_requestPaint = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_requestPaint : requestPaint; + var unstable_now = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_now : getCurrentTime; // These were never implemented on the native scheduler because React never calls them. + // For consistency, let's disable them altogether and make them throw. + + var unstable_next = throwNotImplemented; + var unstable_runWithPriority = throwNotImplemented; + var unstable_wrapCallback = throwNotImplemented; + var unstable_continueExecution = throwNotImplemented; + var unstable_pauseExecution = throwNotImplemented; + var unstable_getFirstCallbackNode = throwNotImplemented; + var unstable_forceFrameRate = throwNotImplemented; + var unstable_Profiling = null; + function throwNotImplemented() { + throw Error('Not implemented.'); + } // Flow magic to verify the exports of this file match the original version. + + exports.unstable_IdlePriority = unstable_IdlePriority; + exports.unstable_ImmediatePriority = unstable_ImmediatePriority; + exports.unstable_LowPriority = unstable_LowPriority; + exports.unstable_NormalPriority = unstable_NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = unstable_UserBlockingPriority; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_forceFrameRate = unstable_forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_now = unstable_now; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = unstable_requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_shouldYield = unstable_shouldYield; + exports.unstable_wrapCallback = unstable_wrapCallback; + })(); } +},415,[],"node_modules/scheduler/cjs/scheduler.native.development.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @nolint + * @providesModule ReactNativeRenderer-prod + * @preventMunge + * @generated SignedSource<<07cf699c0d1c149943b7a02432aa1550>> + */ - function configureNext(config, onAnimationDidEnd, onAnimationDidFail) { - var _config$duration, _global; - if (_Platform.default.isTesting) { - return; - } - if (!isLayoutAnimationEnabled) { - return; - } - - var animationCompletionHasRun = false; - var onAnimationComplete = function onAnimationComplete() { - if (animationCompletionHasRun) { - return; - } - animationCompletionHasRun = true; - clearTimeout(raceWithAnimationId); - onAnimationDidEnd == null ? void 0 : onAnimationDidEnd(); - }; - var raceWithAnimationId = setTimeout(onAnimationComplete, ((_config$duration = config.duration) != null ? _config$duration : 0) + 17); - - var FabricUIManager = (_global = global) == null ? void 0 : _global.nativeFabricUIManager; - if (FabricUIManager != null && FabricUIManager.configureNextLayoutAnimation) { - var _global2, _global2$nativeFabric; - (_global2 = global) == null ? void 0 : (_global2$nativeFabric = _global2.nativeFabricUIManager) == null ? void 0 : _global2$nativeFabric.configureNextLayoutAnimation(config, onAnimationComplete, onAnimationDidFail != null ? onAnimationDidFail : function () {}); - return; - } + "use strict"; - if (_$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager") != null && _$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager").configureNextLayoutAnimation) { - _$$_REQUIRE(_dependencyMap[3], "../ReactNative/UIManager").configureNextLayoutAnimation(config, onAnimationComplete != null ? onAnimationComplete : function () {}, onAnimationDidFail != null ? onAnimationDidFail : function () {}); + _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var React = _$$_REQUIRE(_dependencyMap[1], "react"); + function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); } } - function create(duration, type, property) { - return { - duration: duration, - create: { - type: type, - property: property - }, - update: { - type: type - }, - delete: { - type: type, - property: property + var hasError = !1, + caughtError = null, + hasRethrowError = !1, + rethrowError = null, + reporter = { + onError: function onError(error) { + hasError = !0; + caughtError = error; } }; + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = !1; + caughtError = null; + invokeGuardedCallbackImpl.apply(reporter, arguments); } - var Presets = { - easeInEaseOut: create(300, 'easeInEaseOut', 'opacity'), - linear: create(500, 'linear', 'opacity'), - spring: { - duration: 700, - create: { - type: 'linear', - property: 'opacity' - }, - update: { - type: 'spring', - springDamping: 0.4 - }, - delete: { - type: 'linear', - property: 'opacity' - } + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + if (hasError) { + var error = caughtError; + hasError = !1; + caughtError = null; + } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + hasRethrowError || (hasRethrowError = !0, rethrowError = error); } - }; - - var LayoutAnimation = { - configureNext: configureNext, - create: create, - 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 checkConfig() { - console.error('LayoutAnimation.checkConfig(...) has been disabled.'); - }, - Presets: Presets, - easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut), - linear: configureNext.bind(null, Presets.linear), - spring: configureNext.bind(null, Presets.spring), - setEnabled: setEnabled - }; - module.exports = LayoutAnimation; -},313,[3,14,263,213],"node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function dismissKeyboard() { - _$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").blurTextInput(_$$_REQUIRE(_dependencyMap[0], "../Components/TextInput/TextInputState").currentlyFocusedInput()); } - module.exports = dismissKeyboard; -},314,[200],"node_modules/react-native/Libraries/Utilities/dismissKeyboard.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('KeyboardObserver'); - exports.default = _default; -},315,[16],"node_modules/react-native/Libraries/Components/Keyboard/NativeKeyboardObserver.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeFrameRateLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeFrameRateLogger")); - var FrameRateLogger = { - setGlobalOptions: function setGlobalOptions(options) { - if (options.debug !== undefined) { - _$$_REQUIRE(_dependencyMap[2], "invariant")(_NativeFrameRateLogger.default, 'Trying to debug FrameRateLogger without the native module!'); - } - if (_NativeFrameRateLogger.default) { - var optionsClone = { - debug: !!options.debug, - reportStackTraces: !!options.reportStackTraces - }; - _NativeFrameRateLogger.default.setGlobalOptions(optionsClone); - } + var isArrayImpl = Array.isArray, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); + event.currentTarget = null; + } + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + var assign = Object.assign; + function functionThatReturnsTrue() { + return !0; + } + function functionThatReturnsFalse() { + return !1; + } + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchInstances = this._dispatchListeners = null; + dispatchConfig = this.constructor.Interface; + for (var propName in dispatchConfig) dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); }, - setContext: function setContext(context) { - _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.setContext(context); + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); }, - beginScroll: function beginScroll() { - _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.beginScroll(); + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; }, - endScroll: function endScroll() { - _NativeFrameRateLogger.default && _NativeFrameRateLogger.default.endScroll(); + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + for (propName in Interface) this[propName] = null; + this.nativeEvent = this._targetInst = this.dispatchConfig = null; + this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; + this._dispatchInstances = this._dispatchListeners = null; } - }; - module.exports = FrameRateLogger; -},316,[3,317,17],"node_modules/react-native/Libraries/Interaction/FrameRateLogger.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('FrameRateLogger'); - exports.default = _default; -},317,[16],"node_modules/react-native/Libraries/Interaction/NativeFrameRateLogger.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); - - function processDecelerationRate(decelerationRate) { - if (decelerationRate === 'normal') { - return _Platform.default.select({ - ios: 0.998, - android: 0.985 - }); - } else if (decelerationRate === 'fast') { - return _Platform.default.select({ - ios: 0.99, - android: 0.9 - }); + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + SyntheticEvent.extend = function (Interface) { + function E() {} + function Class() { + return Super.apply(this, arguments); } - return decelerationRate; + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); } - module.exports = processDecelerationRate; -},318,[3,14],"node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = splitLayoutProps; - - function splitLayoutProps(props) { - var outer = null; - var inner = null; - if (props != null) { - outer = {}; - inner = {}; - for (var prop of Object.keys(props)) { - switch (prop) { - 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': - outer[prop] = props[prop]; - break; - default: - inner[prop] = props[prop]; - break; - } - } + function releasePooledEvent(event) { + if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; } - return { - outer: outer, - inner: inner + }); + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; } -},319,[],"node_modules/react-native/Libraries/StyleSheet/splitLayoutProps.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.VERTICAL = exports.HORIZONTAL = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var ScrollViewContext = React.createContext(null); - if (__DEV__) { - ScrollViewContext.displayName = 'ScrollViewContext'; + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + if (null == _ref) throw Error("Touch object is missing identifier."); + return _ref; } - var _default = ScrollViewContext; - exports.default = _default; - var HORIZONTAL = Object.freeze({ - horizontal: true - }); - exports.HORIZONTAL = HORIZONTAL; - var VERTICAL = Object.freeze({ - horizontal: false - }); - exports.VERTICAL = VERTICAL; -},320,[36],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewContext.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = (0, _codegenNativeCommands.default)({ - supportedCommands: ['flashScrollIndicators', 'scrollTo', 'scrollToEnd', 'zoomToRect'] - }); - exports.default = _default; -},321,[3,202,36],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewCommands.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('AndroidHorizontalScrollContentView'); - exports.default = _default; -},322,[3,251],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var __INTERNAL_VIEW_CONFIG = { - uiViewClassName: 'AndroidHorizontalScrollView', - bubblingEventTypes: {}, - directEventTypes: {}, - validAttributes: { - decelerationRate: true, - disableIntervalMomentum: true, - endFillColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + var instrumentationCallback, + ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; }, - fadingEdgeLength: true, - nestedScrollEnabled: true, - overScrollMode: true, - pagingEnabled: true, - persistentScrollbar: true, - scrollEnabled: true, - scrollPerfTag: true, - sendMomentumEvents: true, - showsHorizontalScrollIndicator: true, - snapToAlignment: true, - snapToEnd: true, - snapToInterval: true, - snapToStart: true, - snapToOffsets: true, - contentOffset: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - borderRadius: true, - borderStyle: true, - borderRightColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } }, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + touchHistory: touchHistory + }; + function accumulate(current, next) { + if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); + return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function accumulateInto(current, next) { + if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + if (isArrayImpl(current)) { + if (isArrayImpl(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + return isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + var responderInst = null, + trackedTouchCount = 0; + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" }, - borderBottomColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" }, - borderTopLeftRadius: true, - borderTopColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + dependencies: ["topScroll"] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" }, - removeClippedSubviews: true, - borderTopRightRadius: true, - borderLeftColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../../StyleSheet/processColor") + dependencies: ["topSelectionChange"] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" }, - pointerEvents: true + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] } }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var AndroidHorizontalScrollViewNativeComponent = NativeComponentRegistry.get('AndroidHorizontalScrollView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var _default = AndroidHorizontalScrollViewNativeComponent; - exports.default = _default; -},323,[211,159],"node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var __INTERNAL_VIEW_CONFIG = { - uiViewClassName: 'RCTScrollContentView', - bubblingEventTypes: {}, - directEventTypes: {}, - validAttributes: {} - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var ScrollContentViewNativeComponent = NativeComponentRegistry.get('RCTScrollContentView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var _default = ScrollContentViewNativeComponent; - exports.default = _default; -},324,[211],"node_modules/react-native/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../NativeComponent/NativeComponentRegistry")); - var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { - uiViewClassName: 'RCTScrollView', - bubblingEventTypes: {}, - directEventTypes: { - topMomentumScrollBegin: { - registrationName: 'onMomentumScrollBegin' - }, - topMomentumScrollEnd: { - registrationName: 'onMomentumScrollEnd' - }, - topScroll: { - registrationName: 'onScroll' - }, - topScrollBeginDrag: { - registrationName: 'onScrollBeginDrag' - }, - topScrollEndDrag: { - registrationName: 'onScrollEndDrag' + function getParent(inst) { + do inst = inst.return; while (inst && 5 !== inst.tag); + return inst ? inst : null; + } + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) path.push(inst), inst = getParent(inst); + for (inst = path.length; 0 < inst--;) fn(path[inst], "captured", arg); + for (inst = 0; inst < path.length; inst++) fn(path[inst], "bubbled", arg); + } + function getListener(inst, registrationName) { + inst = inst.stateNode; + if (null === inst) return null; + inst = getFiberCurrentPropsFromNode(inst); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + return inst; + } + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); } - }, - validAttributes: { - contentOffset: { - diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") - }, - decelerationRate: true, - disableIntervalMomentum: true, - pagingEnabled: true, - scrollEnabled: true, - showsVerticalScrollIndicator: true, - snapToAlignment: true, - snapToEnd: true, - snapToInterval: true, - snapToOffsets: true, - snapToStart: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - sendMomentumEvents: true, - borderRadius: true, - nestedScrollEnabled: true, - borderStyle: true, - borderRightColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - borderBottomColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - persistentScrollbar: true, - endFillColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - fadingEdgeLength: true, - overScrollMode: true, - borderTopLeftRadius: true, - scrollPerfTag: true, - borderTopColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - removeClippedSubviews: true, - borderTopRightRadius: true, - borderLeftColor: { - process: _$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/processColor") - }, - pointerEvents: true } - } : { - uiViewClassName: 'RCTScrollView', - bubblingEventTypes: {}, - directEventTypes: { - topMomentumScrollBegin: { - registrationName: 'onMomentumScrollBegin' - }, - topMomentumScrollEnd: { - registrationName: 'onMomentumScrollEnd' - }, - topScroll: { - registrationName: 'onScroll' - }, - topScrollBeginDrag: { - registrationName: 'onScrollBeginDrag' + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); + } + } + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; }, - topScrollEndDrag: { - registrationName: 'onScrollEndDrag' + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp = responderInst; + for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) depthA++; + tempA = 0; + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) tempA++; + for (; 0 < depthA - tempA;) JSCompiler_temp = getParent(JSCompiler_temp), depthA--; + for (; 0 < tempA - depthA;) targetInst = getParent(targetInst), tempA--; + for (; depthA--;) { + if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; + JSCompiler_temp = getParent(JSCompiler_temp); + targetInst = getParent(targetInst); + } + JSCompiler_temp = null; + } else JSCompiler_temp = targetInst; + targetInst = JSCompiler_temp; + JSCompiler_temp = targetInst === responderInst; + shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); + shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; + JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); + b: { + JSCompiler_temp = shouldSetEventType._dispatchListeners; + targetInst = shouldSetEventType._dispatchInstances; + if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + shouldSetEventType._dispatchInstances = null; + shouldSetEventType._dispatchListeners = null; + shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); + if (JSCompiler_temp && JSCompiler_temp !== responderInst) { + if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { + if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { + depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; + forEachAccumulated(depthA, accumulateDirectDispatchesSingle); + var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); + changeResponder(JSCompiler_temp, targetInst); + } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); + } else JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = null; + shouldSetEventType = responderInst && isStartish(topLevelType); + JSCompiler_temp = responderInst && isMoveish(topLevelType); + targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { + depthA = getInstanceFromNode(targetInst); + b: { + for (targetInst = responderInst; depthA;) { + if (targetInst === depthA || targetInst === depthA.alternate) { + targetInst = !0; + break b; + } + depthA = getParent(depthA); + } + targetInst = !1; + } + if (targetInst) { + topLevelType = !1; + break a; + } + } + topLevelType = !0; + } + if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); + return JSCompiler_temp$jscomp$0; }, - topScrollToTop: { - registrationName: 'onScrollToTop' + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } } }, - validAttributes: Object.assign({ - alwaysBounceHorizontal: true, - alwaysBounceVertical: true, - automaticallyAdjustContentInsets: true, - automaticallyAdjustKeyboardInsets: true, - automaticallyAdjustsScrollIndicatorInsets: true, - bounces: true, - bouncesZoom: true, - canCancelContentTouches: true, - centerContent: true, - contentInset: { - diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") - }, - contentOffset: { - diff: _$$_REQUIRE(_dependencyMap[3], "../../Utilities/differ/pointsDiffer") - }, - contentInsetAdjustmentBehavior: true, - decelerationRate: true, - directionalLockEnabled: true, - disableIntervalMomentum: true, - indicatorStyle: true, - inverted: true, - keyboardDismissMode: true, - maintainVisibleContentPosition: true, - maximumZoomScale: true, - minimumZoomScale: true, - pagingEnabled: true, - pinchGestureEnabled: true, - scrollEnabled: true, - scrollEventThrottle: true, - scrollIndicatorInsets: { - diff: _$$_REQUIRE(_dependencyMap[5], "../../Utilities/differ/insetsDiffer") - }, - scrollToOverflowEnabled: true, - scrollsToTop: true, - showsHorizontalScrollIndicator: true, - showsVerticalScrollIndicator: true, - snapToAlignment: true, - snapToEnd: true, - snapToInterval: true, - snapToOffsets: true, - snapToStart: true, - zoomScale: true - }, (0, _$$_REQUIRE(_dependencyMap[6], "../../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ - onScrollBeginDrag: true, - onMomentumScrollEnd: true, - onScrollEndDrag: true, - onMomentumScrollBegin: true, - onScrollToTop: true, - onScroll: true - })) - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var ScrollViewNativeComponent = NativeComponentRegistry.get('RCTScrollView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var _default = ScrollViewNativeComponent; - exports.default = _default; -},325,[211,3,14,221,159,222,210],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _AndroidSwipeRefreshLayoutNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./AndroidSwipeRefreshLayoutNativeComponent")); - var _PullToRefreshViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./PullToRefreshViewNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"; - var _excluded = ["enabled", "colors", "progressBackgroundColor", "size"], - _excluded2 = ["tintColor", "titleColor", "title"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[9], "react"); - var RefreshControl = function (_React$Component) { - (0, _inherits2.default)(RefreshControl, _React$Component); - var _super = _createSuper(RefreshControl); - function RefreshControl() { - var _this; - (0, _classCallCheck2.default)(this, RefreshControl); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + eventPluginOrder = null, + namesToPlugins = {}; + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); + if (!plugins[pluginIndex]) { + if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + eventName$jscomp$0 = eventName; + if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); + } } - _this = _super.call.apply(_super, [this].concat(args)); - _this._lastNativeRefreshing = false; - _this._onRefresh = function () { - _this._lastNativeRefreshing = true; - _this.props.onRefresh && _this.props.onRefresh(); - - _this.forceUpdate(); - }; - _this._setNativeRef = function (ref) { - _this._nativeRef = ref; - }; - return _this; } - (0, _createClass2.default)(RefreshControl, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._lastNativeRefreshing = this.props.refreshing; + } + function publishRegistrationName(registrationName, pluginModule) { + if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); + registrationNameModules[registrationName] = pluginModule; + } + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}; + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (null === stateNode) return null; + inst = getFiberCurrentPropsFromNode(stateNode); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; + var listeners = []; + inst && listeners.push(inst); + var requestedPhaseIsCapture = "captured" === phase, + mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { + if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent + }); + eventInst.isTrusted = !0; + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + listenerObj.options.once ? listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); + }) : listeners.push(listenerFnWrapper); } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.refreshing !== prevProps.refreshing) { - this._lastNativeRefreshing = this.props.refreshing; - } else if (this.props.refreshing !== this._lastNativeRefreshing && this._nativeRef) { - if ("ios" === 'android') { - _AndroidSwipeRefreshLayoutNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); - } else { - _PullToRefreshViewNativeComponent.Commands.setNativeRefreshing(this._nativeRef, this.props.refreshing); - } - this._lastNativeRefreshing = this.props.refreshing; + }); + return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; + } + var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; + if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) event._dispatchInstances.push(inst); + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); + accumulateListenersAndInstances(inst, event, phase); + } + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + for (var path = []; inst;) { + path.push(inst); + do inst = inst.return; while (inst && 5 !== inst.tag); + inst = inst ? inst : null; + } + for (inst = path.length; 0 < inst--;) fn(path[inst], "captured", arg); + if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) fn(path[inst], "bubbled", arg); + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); + } + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); + accumulateListenersAndInstances(inst, event, listeners); + } + } + } + if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + recomputePluginOrdering(); + var injectedNamesToPlugins$jscomp$inline_229 = { + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], + directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; + return topLevelType; } } - }, { - key: "render", - value: function render() { - if ("ios" === 'ios') { - var _this$props = this.props, - enabled = _this$props.enabled, - colors = _this$props.colors, - progressBackgroundColor = _this$props.progressBackgroundColor, - size = _this$props.size, - props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_PullToRefreshViewNativeComponent.default, Object.assign({}, props, { - ref: this._setNativeRef, - onRefresh: this._onRefresh - })); - } else { - var _this$props2 = this.props, - tintColor = _this$props2.tintColor, - titleColor = _this$props2.titleColor, - title = _this$props2.title, - _props = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2); - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_AndroidSwipeRefreshLayoutNativeComponent.default, Object.assign({}, _props, { - ref: this._setNativeRef, - onRefresh: this._onRefresh - })); + }, + isOrderingDirty$jscomp$inline_230 = !1, + pluginName$jscomp$inline_231; + for (pluginName$jscomp$inline_231 in injectedNamesToPlugins$jscomp$inline_229) if (injectedNamesToPlugins$jscomp$inline_229.hasOwnProperty(pluginName$jscomp$inline_231)) { + var pluginModule$jscomp$inline_232 = injectedNamesToPlugins$jscomp$inline_229[pluginName$jscomp$inline_231]; + if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_231) || namesToPlugins[pluginName$jscomp$inline_231] !== pluginModule$jscomp$inline_232) { + if (namesToPlugins[pluginName$jscomp$inline_231]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_231 + "`.")); + namesToPlugins[pluginName$jscomp$inline_231] = pluginModule$jscomp$inline_232; + isOrderingDirty$jscomp$inline_230 = !0; + } + } + isOrderingDirty$jscomp$inline_230 && recomputePluginOrdering(); + var instanceCache = new Map(), + instanceProps = new Map(); + function getInstanceFromTag(tag) { + return instanceCache.get(tag) || null; + } + function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + } + var isInsideEventHandler = !1; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) return fn(bookkeeping); + isInsideEventHandler = !0; + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = !1; + } + } + var eventQueue = null; + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + var EMPTY_NATIVE_EVENT = {}; + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT, + inst = getInstanceFromTag(rootNodeID), + target = null; + null != inst && (target = inst.stateNode); + batchedUpdates(function () { + var JSCompiler_inline_result = target; + for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, inst, nativeEvent, JSCompiler_inline_result)) && (events = accumulateInto(events, possiblePlugin)); + } + JSCompiler_inline_result = events; + null !== JSCompiler_inline_result && (eventQueue = accumulateInto(eventQueue, JSCompiler_inline_result)); + JSCompiler_inline_result = eventQueue; + eventQueue = null; + if (JSCompiler_inline_result) { + forEachAccumulated(JSCompiler_inline_result, executeDispatchesAndReleaseTopLevel); + if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); + if (hasRethrowError) throw JSCompiler_inline_result = rethrowError, hasRethrowError = !1, rethrowError = null, JSCompiler_inline_result; + } + }); + } + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RCTEventEmitter.register({ + receiveEvent: function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); + }, + receiveTouches: function receiveTouches(eventTopLevelType, touches, changedIndices) { + if ("topTouchEnd" === eventTopLevelType || "topTouchCancel" === eventTopLevelType) { + var JSCompiler_temp = []; + for (var i = 0; i < changedIndices.length; i++) { + var index$0 = changedIndices[i]; + JSCompiler_temp.push(touches[index$0]); + touches[index$0] = null; } + for (i = changedIndices = 0; i < touches.length; i++) index$0 = touches[i], null !== index$0 && (touches[changedIndices++] = index$0); + touches.length = changedIndices; + } else for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++) JSCompiler_temp.push(touches[changedIndices[i]]); + for (changedIndices = 0; changedIndices < JSCompiler_temp.length; changedIndices++) { + i = JSCompiler_temp[changedIndices]; + i.changedTouches = JSCompiler_temp; + i.touches = touches; + index$0 = null; + var target = i.target; + null === target || void 0 === target || 1 > target || (index$0 = target); + _receiveRootNodeIDEvent(index$0, eventTopLevelType, i); } - }]); - return RefreshControl; - }(React.Component); - module.exports = RefreshControl; -},326,[3,132,12,13,50,47,46,327,328,36,73],"node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Commands = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeCommands")); - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/codegenNativeComponent")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['setNativeRefreshing'] - }); - exports.Commands = Commands; - var _default = (0, _codegenNativeComponent.default)('AndroidSwipeRefreshLayout'); - exports.default = _default; -},327,[36,3,202,251],"node_modules/react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Commands = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeCommands")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['setNativeRefreshing'] - }); - exports.Commands = Commands; - var _default = (0, _codegenNativeComponent.default)('PullToRefreshView', { - paperComponentName: 'RCTRefreshControl', - excludedPlatforms: ['android'] + } }); - exports.default = _default; -},328,[36,3,251,202],"node_modules/react-native/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var Info = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(function Info() { - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, Info); - 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; + getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(stateNode) { + return instanceProps.get(stateNode._nativeTag) || null; + }; + getInstanceFromNode = getInstanceFromTag; + getNodeFromInstance = function getNodeFromInstance(inst) { + inst = inst.stateNode; + var tag = inst._nativeTag; + void 0 === tag && (inst = inst.canonical, tag = inst._nativeTag); + if (!tag) throw Error("All native instances should have a tag."); + return inst; + }; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); + } }); - var DEBUG = false; - var _listeners = []; - var _minSampleCount = 10; - var _sampleRate = DEBUG ? 1 : null; - - var FillRateHelper = function () { - function FillRateHelper(getFrameMetrics) { - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")(this, FillRateHelper); - this._anyBlankStartTime = null; - this._enabled = false; - this._info = new Info(); - this._mostlyBlankStartTime = null; - this._samplesStartTime = null; - this._getFrameMetrics = getFrameMetrics; - this._enabled = (_sampleRate || 0) > Math.random(); - this._resetData(); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"); + Symbol.for("react.scope"); + Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + Symbol.for("react.legacy_hidden"); + Symbol.for("react.cache"); + Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; } - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/createClass")(FillRateHelper, [{ - key: "activate", - value: function activate() { - if (this._enabled && this._samplesStartTime == null) { - DEBUG && console.debug('FillRateHelper: activate'); - this._samplesStartTime = global.performance.now(); + if ("object" === typeof type) switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); + return type; + case REACT_MEMO_TYPE: + return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + } + return null; + } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return;) node = node.return;else { + fiber = node; + do node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate;;) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; } + break; } - }, { - key: "deactivateAndFlush", - value: function deactivateAndFlush() { - if (!this._enabled) { - return; - } - var start = this._samplesStartTime; - if (start == null) { - DEBUG && console.debug('FillRateHelper: bail on deactivate with no start time'); - return; + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB;) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; } - if (this._info.sample_count < _minSampleCount) { - this._resetData(); - return; + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) a = parentA, b = parentB;else { + for (var didFindChild = !1, child$1 = parentA.child; child$1;) { + if (child$1 === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (child$1 === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + child$1 = child$1.sibling; } - var total_time_spent = global.performance.now() - start; - var info = Object.assign({}, this._info, { - total_time_spent: total_time_spent - }); - if (DEBUG) { - var derived = { - avg_blankness: this._info.pixels_blank / this._info.pixels_sampled, - avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000), - avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count, - any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1000 / 60), - any_blank_time_frac: this._info.any_blank_ms / total_time_spent, - mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1000 / 60), - mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent - }; - for (var key in derived) { - derived[key] = Math.round(1000 * derived[key]) / 1000; + if (!didFindChild) { + for (child$1 = parentB.child; child$1;) { + if (child$1 === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (child$1 === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + child$1 = child$1.sibling; } - console.debug('FillRateHelper deactivateAndFlush: ', { - derived: derived, - info: info - }); + if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); } - _listeners.forEach(function (listener) { - return listener(info); - }); - this._resetData(); } - }, { - key: "computeBlankness", - value: function computeBlankness(props, state, scrollMetrics) { - if (!this._enabled || props.getItemCount(props.data) === 0 || this._samplesStartTime == null) { - return 0; + if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + if (5 === node.tag || 6 === node.tag) return node; + for (node = node.child; null !== node;) { + var match = findCurrentHostFiberImpl(node); + if (null !== match) return match; + node = node.sibling; + } + return null; + } + var emptyObject = {}, + removedKeys = null, + removedKeyCount = 0, + deepDifferOptions = { + unsafelyIgnoreFunctions: !0 + }; + function defaultDiffer(prevProp, nextProp) { + return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes);else if (node && 0 < removedKeyCount) for (i in removedKeys) if (removedKeys[i]) { + var nextProp = node[i]; + if (void 0 !== nextProp) { + var attributeConfig = validAttributes[i]; + if (attributeConfig) { + "function" === typeof nextProp && (nextProp = !0); + "undefined" === typeof nextProp && (nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; + removedKeys[i] = !1; + removedKeyCount--; } - var dOffset = scrollMetrics.dOffset, - offset = scrollMetrics.offset, - velocity = scrollMetrics.velocity, - visibleLength = scrollMetrics.visibleLength; - - this._info.sample_count++; - this._info.pixels_sampled += Math.round(visibleLength); - this._info.pixels_scrolled += Math.round(Math.abs(dOffset)); - var scrollSpeed = Math.round(Math.abs(velocity) * 1000); - - var now = global.performance.now(); - if (this._anyBlankStartTime != null) { - this._info.any_blank_ms += now - this._anyBlankStartTime; - } - this._anyBlankStartTime = null; - if (this._mostlyBlankStartTime != null) { - this._info.mostly_blank_ms += now - this._mostlyBlankStartTime; - } - this._mostlyBlankStartTime = null; - var blankTop = 0; - var first = state.first; - var firstFrame = this._getFrameMetrics(first); - while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) { - firstFrame = this._getFrameMetrics(first); - first++; - } - if (firstFrame && first > 0) { - blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset)); - } - var blankBottom = 0; - var last = state.last; - var lastFrame = this._getFrameMetrics(last); - while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) { - lastFrame = this._getFrameMetrics(last); - last--; - } - if (lastFrame && last < props.getItemCount(props.data) - 1) { - var bottomEdge = lastFrame.offset + lastFrame.length; - blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge)); - } - var pixels_blank = Math.round(blankTop + blankBottom); - var blankness = pixels_blank / visibleLength; - if (blankness > 0) { - this._anyBlankStartTime = now; - this._info.any_blank_speed_sum += scrollSpeed; - this._info.any_blank_count++; - this._info.pixels_blank += pixels_blank; - if (blankness > 0.5) { - this._mostlyBlankStartTime = now; - this._info.mostly_blank_count++; - } - } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) { - this.deactivateAndFlush(); - } - return blankness; - } - }, { - key: "enabled", - value: function enabled() { - return this._enabled; - } - }, { - key: "_resetData", - value: function _resetData() { - this._anyBlankStartTime = null; - this._info = new Info(); - this._mostlyBlankStartTime = null; - this._samplesStartTime = null; - } - }], [{ - key: "addListener", - value: function addListener(callback) { - if (_sampleRate === null) { - console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'); - } - _listeners.push(callback); - return { - remove: function remove() { - _listeners = _listeners.filter(function (listener) { - return callback !== listener; - }); - } - }; - } - }, { - key: "setSampleRate", - value: function setSampleRate(sampleRate) { - _sampleRate = sampleRate; - } - }, { - key: "setMinSampleCount", - value: function setMinSampleCount(minSampleCount) { - _minSampleCount = minSampleCount; } - }]); - return FillRateHelper; - }(); - module.exports = FillRateHelper; -},329,[13,12],"node_modules/react-native/Libraries/Lists/FillRateHelper.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var Batchinator = function () { - function Batchinator(callback, delayMS) { - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, Batchinator); - this._delay = delayMS; - this._callback = callback; } - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(Batchinator, [{ - key: "dispose", - value: - function dispose() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - abort: false - }; - if (this._taskHandle) { - this._taskHandle.cancel(); - if (!options.abort) { - this._callback(); - } - this._taskHandle = null; - } - } - }, { - key: "schedule", - value: function schedule() { - var _this = this; - if (this._taskHandle) { - return; - } - var timeoutHandle = setTimeout(function () { - _this._taskHandle = _$$_REQUIRE(_dependencyMap[2], "./InteractionManager").runAfterInteractions(function () { - _this._taskHandle = null; - _this._callback(); - }); - }, this._delay); - this._taskHandle = { - cancel: function cancel() { - return clearTimeout(timeoutHandle); - } - }; + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + for (i = 0; i < minLength; i++) updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + for (; i < prevProp.length; i++) updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + for (; i < nextProp.length; i++) updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + return updatePayload; + } + return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); + } + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); + for (var i = 0; i < nextProp.length; i++) updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + return updatePayload; + } + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); + for (var i = 0; i < prevProp.length; i++) updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + return updatePayload; + } + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + for (propKey in nextProps) if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + for (var propKey$3 in prevProps) void 0 === nextProps[propKey$3] && (!(attributeConfig = validAttributes[propKey$3]) || updatePayload && void 0 !== updatePayload[propKey$3] || (prevProp = prevProps[propKey$3], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$3] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$3] || (removedKeys[propKey$3] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + return updatePayload; + } + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); + }; + } + var ReactNativeFiberHostComponent = function () { + function ReactNativeFiberHostComponent(tag, viewConfig) { + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; } - }]); - return Batchinator; - }(); - module.exports = Batchinator; -},330,[12,13,279],"node_modules/react-native/Libraries/Interaction/Batchinator.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var ViewabilityHelper = function () { - function ViewabilityHelper() { - var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - viewAreaCoveragePercentThreshold: 0 + var _proto = ReactNativeFiberHostComponent.prototype; + _proto.blur = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); }; - _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/classCallCheck")(this, ViewabilityHelper); - this._hasInteracted = false; - this._timers = new Set(); - this._viewableIndices = []; - this._viewableItems = new Map(); - this._config = config; + _proto.focus = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); + }; + _proto.measure = function (callback) { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measure(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureInWindow = function (callback) { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureInWindow(this._nativeTag, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + if ("number" === typeof relativeToNativeNode) var relativeNode = relativeToNativeNode;else relativeToNativeNode._nativeTag && (relativeNode = relativeToNativeNode._nativeTag); + null != relativeNode && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.measureLayout(this._nativeTag, relativeNode, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); + }; + _proto.setNativeProps = function (nativeProps) { + nativeProps = diffProperties(null, emptyObject, nativeProps, this.viewConfig.validAttributes); + null != nativeProps && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); + }; + return ReactNativeFiberHostComponent; + }(), + rendererID = null, + injectedHook = null; + function onCommitRoot(root) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { + injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); + } catch (err) {} + } + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, + log = Math.log, + LN2 = Math.LN2; + function clz32Fallback(x) { + x >>>= 0; + return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; + } + var nextTransitionLane = 64, + nextRetryLane = 4194304; + function getHighestPriorityLanes(lanes) { + switch (lanes & -lanes) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return lanes & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return lanes; } - - _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")(ViewabilityHelper, [{ - key: "dispose", - value: - function dispose() { - this._timers.forEach(clearTimeout); - } - - }, { - key: "computeViewableItems", - value: - function computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, - renderRange) { - var _this$_config = this._config, - itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold, - viewAreaCoveragePercentThreshold = _this$_config.viewAreaCoveragePercentThreshold; - var viewAreaMode = viewAreaCoveragePercentThreshold != null; - var viewablePercentThreshold = viewAreaMode ? viewAreaCoveragePercentThreshold : itemVisiblePercentThreshold; - _$$_REQUIRE(_dependencyMap[2], "invariant")(viewablePercentThreshold != null && itemVisiblePercentThreshold != null !== (viewAreaCoveragePercentThreshold != null), 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold'); - var viewableIndices = []; - if (itemCount === 0) { - return viewableIndices; - } - var firstVisible = -1; - var _ref = renderRange || { - first: 0, - last: itemCount - 1 - }, - first = _ref.first, - last = _ref.last; - if (last >= itemCount) { - console.warn('Invalid render range computing viewability ' + JSON.stringify({ - renderRange: renderRange, - itemCount: itemCount - })); - return []; - } - for (var idx = first; idx <= last; idx++) { - var metrics = getFrameMetrics(idx); - if (!metrics) { - continue; - } - var top = metrics.offset - scrollOffset; - var bottom = top + metrics.length; - if (top < viewportHeight && bottom > 0) { - firstVisible = idx; - if (_isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, metrics.length)) { - viewableIndices.push(idx); - } - } else if (firstVisible >= 0) { - break; - } - } - return viewableIndices; - } - - }, { - key: "onUpdate", - value: - function onUpdate(itemCount, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, - renderRange) { - var _this = this; - if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0)) { - return; - } - var viewableIndices = []; - if (itemCount) { - viewableIndices = this.computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange); - } - if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) { - return v === viewableIndices[ii]; - })) { - return; - } - this._viewableIndices = viewableIndices; - if (this._config.minimumViewTime) { - var handle = setTimeout(function () { - _this._timers.delete(handle); - _this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); - }, this._config.minimumViewTime); - this._timers.add(handle); - } else { - this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); - } - } - - }, { - key: "resetViewableIndices", - value: - function resetViewableIndices() { - this._viewableIndices = []; - } - - }, { - key: "recordInteraction", - value: - function recordInteraction() { - this._hasInteracted = true; - } - }, { - key: "_onUpdateSync", - value: function _onUpdateSync(viewableIndicesToCheck, onViewableItemsChanged, createViewToken) { - var _this2 = this; - viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) { - return _this2._viewableIndices.includes(ii); - }); - var prevItems = this._viewableItems; - var nextItems = new Map(viewableIndicesToCheck.map(function (ii) { - var viewable = createViewToken(ii, true); - return [viewable.key, viewable]; - })); - var changed = []; - for (var _ref2 of nextItems) { - var _ref3 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref2, 2); - var key = _ref3[0]; - var viewable = _ref3[1]; - if (!prevItems.has(key)) { - changed.push(viewable); - } - } - for (var _ref4 of prevItems) { - var _ref5 = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray")(_ref4, 2); - var _key = _ref5[0]; - var _viewable = _ref5[1]; - if (!nextItems.has(_key)) { - changed.push(Object.assign({}, _viewable, { - isViewable: false - })); - } - } - if (changed.length > 0) { - this._viewableItems = nextItems; - onViewableItemsChanged({ - viewableItems: Array.from(nextItems.values()), - changed: changed, - viewabilityConfig: this._config - }); - } - } - }]); - return ViewabilityHelper; - }(); - function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) { - if (_isEntirelyVisible(top, bottom, viewportHeight)) { - return true; - } else { - var pixels = _getPixelsVisible(top, bottom, viewportHeight); - var percent = 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength); - return percent >= viewablePercentThreshold; + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + nonIdlePendingLanes = pendingLanes & 268435455; + if (0 !== nonIdlePendingLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); + } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); + if (0 === nextLanes) return 0; + if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; + 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); + wipLanes = root.entangledLanes; + if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; + return nextLanes; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + return currentTime + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; } } - function _getPixelsVisible(top, bottom, viewportHeight) { - var visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0); - return Math.max(0, visibleHeight); + function getLanesToRetrySynchronouslyOnError(root) { + root = root.pendingLanes & -1073741825; + return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } - function _isEntirelyVisible(top, bottom, viewportHeight) { - return top >= 0 && bottom <= viewportHeight && bottom > top; + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + return lane; } - module.exports = ViewabilityHelper; -},331,[12,13,17,19],"node_modules/react-native/Libraries/Lists/ViewabilityHelper.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.VirtualizedListCellContextProvider = VirtualizedListCellContextProvider; - exports.VirtualizedListContext = void 0; - exports.VirtualizedListContextProvider = VirtualizedListContextProvider; - exports.VirtualizedListContextResetter = VirtualizedListContextResetter; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedListContext.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var VirtualizedListContext = React.createContext(null); - exports.VirtualizedListContext = VirtualizedListContext; - if (__DEV__) { - VirtualizedListContext.displayName = 'VirtualizedListContext'; + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; } - - function VirtualizedListContextResetter(_ref) { - var children = _ref.children; - return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { - value: null, - children: children - }); + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); + root = root.eventTimes; + updateLane = 31 - clz32(updateLane); + root[updateLane] = eventTime; } - - function VirtualizedListContextProvider(_ref2) { - var children = _ref2.children, - value = _ref2.value; - var context = (0, React.useMemo)(function () { - return { - cellKey: null, - getScrollMetrics: value.getScrollMetrics, - horizontal: value.horizontal, - getOutermostParentListRef: value.getOutermostParentListRef, - getNestedChildState: value.getNestedChildState, - registerAsNestedChild: value.registerAsNestedChild, - unregisterAsNestedChild: value.unregisterAsNestedChild, - debugInfo: { - cellKey: value.debugInfo.cellKey, - horizontal: value.debugInfo.horizontal, - listKey: value.debugInfo.listKey, - parent: value.debugInfo.parent - } - }; - }, [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.getNestedChildState, value.registerAsNestedChild, value.unregisterAsNestedChild, value.debugInfo.cellKey, value.debugInfo.horizontal, value.debugInfo.listKey, value.debugInfo.parent]); - return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { - value: context, - children: children - }); + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + remainingLanes = root.entanglements; + var eventTimes = root.eventTimes; + for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { + var index$8 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$8; + remainingLanes[index$8] = 0; + eventTimes[index$8] = -1; + root[index$8] = -1; + noLongerPendingLanes &= ~lane; + } } - - function VirtualizedListCellContextProvider(_ref3) { - var cellKey = _ref3.cellKey, - children = _ref3.children; - var currContext = (0, React.useContext)(VirtualizedListContext); - var context = (0, React.useMemo)(function () { - return currContext == null ? null : Object.assign({}, currContext, { - cellKey: cellKey - }); - }, [currContext, cellKey]); - return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(VirtualizedListContext.Provider, { - value: context, - children: children - }); + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + for (root = root.entanglements; rootEntangledLanes;) { + var index$9 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$9; + lane & entangledLanes | root[index$9] & entangledLanes && (root[index$9] |= entangledLanes); + rootEntangledLanes &= ~lane; + } } -},332,[36,73],"node_modules/react-native/Libraries/Lists/VirtualizedListContext.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Image/Image")); -},333,[36,298,334],"node_modules/react-native/Libraries/Animated/components/AnimatedImage.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../StyleSheet/StyleSheet")); - var _ImageInjection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./ImageInjection")); - var _ImageAnalyticsTagContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./ImageAnalyticsTagContext")); - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../StyleSheet/flattenStyle")); - var _resolveAssetSource = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./resolveAssetSource")); - var _NativeImageLoaderIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeImageLoaderIOS")); - var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./ImageViewNativeComponent")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Image/Image.ios.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function getSize(uri, success, failure) { - _NativeImageLoaderIOS.default.getSize(uri).then(function (_ref) { - var _ref2 = (0, _slicedToArray2.default)(_ref, 2), - width = _ref2[0], - height = _ref2[1]; - return success(width, height); - }).catch(failure || function () { - console.warn('Failed to get size for image ' + uri); - }); + var currentUpdatePriority = 0; + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; } - function getSizeWithHeaders(uri, headers, success, failure) { - return _NativeImageLoaderIOS.default.getSizeWithHeaders(uri, headers).then(function (sizes) { - success(sizes.width, sizes.height); - }).catch(failure || function () { - console.warn('Failed to get size for image: ' + uri); - }); + function shim() { + throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); } - function prefetchWithMetadata(url, queryRootName, rootTag) { - if (_NativeImageLoaderIOS.default.prefetchImageWithMetadata) { - return _NativeImageLoaderIOS.default.prefetchImageWithMetadata(url, queryRootName, - rootTag ? rootTag : 0); - } else { - return _NativeImageLoaderIOS.default.prefetchImage(url); + var getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, + UPDATE_SIGNAL = {}, + nextReactTag = 3; + function allocateTag() { + var tag = nextReactTag; + 1 === tag % 10 && (tag += 2); + nextReactTag = tag + 2; + return tag; + } + function recursivelyUncacheFiberNode(node) { + if ("number" === typeof node) instanceCache.delete(node), instanceProps.delete(node);else { + var tag = node._nativeTag; + instanceCache.delete(tag); + instanceProps.delete(tag); + node._children.forEach(recursivelyUncacheFiberNode); } } - function prefetch(url) { - return _NativeImageLoaderIOS.default.prefetchImage(url); + function finalizeInitialChildren(parentInstance) { + if (0 === parentInstance._children.length) return !1; + var nativeTags = parentInstance._children.map(function (child) { + return "number" === typeof child ? child : child._nativeTag; + }); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parentInstance._nativeTag, nativeTags); + return !1; } - function queryCache(_x) { - return _queryCache.apply(this, arguments); + var scheduleTimeout = setTimeout, + cancelTimeout = clearTimeout; + function describeComponentFrame(name, source, ownerName) { + source = ""; + ownerName && (source = " (created by " + ownerName + ")"); + return "\n in " + (name || "Unknown") + source; } - function _queryCache() { - _queryCache = (0, _asyncToGenerator2.default)(function* (urls) { - return yield _NativeImageLoaderIOS.default.queryCache(urls); - }); - return _queryCache.apply(this, arguments); + function describeFunctionComponentFrame(fn, source) { + return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; } - var BaseImage = function BaseImage(props, forwardedRef) { - var source = (0, _resolveAssetSource.default)(props.source) || { - uri: undefined, - width: undefined, - height: undefined + var hasOwnProperty = Object.prototype.hasOwnProperty, + valueStack = [], + index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue }; - var sources; - var style; - if (Array.isArray(source)) { - style = (0, _flattenStyle.default)([styles.base, props.style]) || {}; - sources = source; - } else { - var _width = source.width, - _height = source.height, - uri = source.uri; - style = (0, _flattenStyle.default)([{ - width: _width, - height: _height - }, styles.base, props.style]) || {}; - sources = [source]; - if (uri === '') { - console.warn('source.uri should not be an empty string'); + } + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + var emptyContextObject = {}, + contextStackCursor = createCursor(emptyContextObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyContextObject; + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyContextObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + for (key in contextTypes) context[key] = unmaskedContext[key]; + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + function isContextProvider(type) { + type = type.childContextTypes; + return null !== type && void 0 !== type; + } + function popContext() { + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + } + function pushTopLevelContextObject(fiber, context, didChange) { + if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context); + push(didPerformWorkStackCursor, didChange); + } + function processChildContext(fiber, type, parentContext) { + var instance = fiber.stateNode; + type = type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + for (var contextKey in instance) if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); + push(didPerformWorkStackCursor, didChange); + } + function is(x, y) { + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; + } + var objectIs = "function" === typeof Object.is ? Object.is : is, + syncQueue = null, + includesLegacySyncCallbacks = !1, + isFlushingSyncQueue = !1; + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && null !== syncQueue) { + isFlushingSyncQueue = !0; + var i = 0, + previousUpdatePriority = currentUpdatePriority; + try { + var queue = syncQueue; + for (currentUpdatePriority = 1; i < queue.length; i++) { + var callback = queue[i]; + do callback = callback(!0); while (null !== callback); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + } catch (error) { + throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; + } finally { + currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; } } - var resizeMode = props.resizeMode || style.resizeMode || 'cover'; - var tintColor = style.tintColor; - if (props.src != null) { - console.warn('The component requires a `source` property rather than `src`.'); + return null; + } + var forkStack = [], + forkStackIndex = 0, + treeForkProvider = null, + idStack = [], + idStackIndex = 0, + treeContextProvider = null; + function popTreeContext(workInProgress) { + for (; workInProgress === treeForkProvider;) treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; + for (; workInProgress === treeContextProvider;) treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; + } + var hydrationErrors = null, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + for (keysB = 0; keysB < keysA.length; keysB++) { + var currentKey = keysA[keysB]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; } - if (props.children != null) { - 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.'); + return !0; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 5: + return describeComponentFrame(fiber.type, null, null); + case 16: + return describeComponentFrame("Lazy", null, null); + case 13: + return describeComponentFrame("Suspense", null, null); + case 19: + return describeComponentFrame("SuspenseList", null, null); + case 0: + case 2: + case 15: + return describeFunctionComponentFrame(fiber.type, null); + case 11: + return describeFunctionComponentFrame(fiber.type.render, null); + case 1: + return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; + default: + return ""; } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_ImageAnalyticsTagContext.default.Consumer, { - children: function children(analyticTag) { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_ImageViewNativeComponent.default, Object.assign({}, props, { - ref: forwardedRef, - style: style, - resizeMode: resizeMode, - tintColor: tintColor, - source: sources, - internal_analyticTag: analyticTag - })); - } - }); - }; - var ImageForwardRef = React.forwardRef(BaseImage); - var Image = ImageForwardRef; - if (_ImageInjection.default.unstable_createImageComponent != null) { - Image = _ImageInjection.default.unstable_createImageComponent(Image); } - Image.displayName = 'Image'; - - Image.getSize = getSize; - - Image.getSizeWithHeaders = getSizeWithHeaders; - - Image.prefetch = prefetch; - - Image.prefetchWithMetadata = prefetchWithMetadata; - - Image.queryCache = queryCache; - - Image.resolveAssetSource = _resolveAssetSource.default; - var styles = _StyleSheet.default.create({ - base: { - overflow: 'hidden' + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do info += describeFiber(workInProgress), workInProgress = workInProgress.return; while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } - }); - module.exports = Image; -},334,[3,65,19,36,244,335,338,189,224,339,336,73],"node_modules/react-native/Libraries/Image/Image.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _ImageViewNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./ImageViewNativeComponent")); - var _TextInlineImageNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./TextInlineImageNativeComponent")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = { - unstable_createImageComponent: null - }; - exports.default = _default; -},335,[36,3,336,337],"node_modules/react-native/Libraries/Image/ImageInjection.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); - var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var __INTERNAL_VIEW_CONFIG = _Platform.default.OS === 'android' ? { - uiViewClassName: 'RCTImageView', - bubblingEventTypes: {}, - directEventTypes: { - topLoadStart: { - registrationName: 'onLoadStart' - }, - topProgress: { - registrationName: 'onProgress' - }, - topError: { - registrationName: 'onError' - }, - topLoad: { - registrationName: 'onLoad' - }, - topLoadEnd: { - registrationName: 'onLoadEnd' - } - }, - validAttributes: { - blurRadius: true, - internal_analyticTag: true, - resizeMode: true, - tintColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderBottomLeftRadius: true, - borderTopLeftRadius: true, - resizeMethod: true, - src: true, - borderRadius: true, - headers: true, - shouldNotifyLoadEvents: true, - defaultSrc: true, - overlayColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - borderColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - }, - accessible: true, - progressiveRenderingEnabled: true, - fadeDuration: true, - borderBottomRightRadius: true, - borderTopRightRadius: true, - loadingIndicatorSrc: true + } + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + baseProps = assign({}, baseProps); + Component = Component.defaultProps; + for (var propName in Component) void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); + return baseProps; } - } : { - 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: true, - capInsets: { - diff: _$$_REQUIRE(_dependencyMap[4], "../Utilities/differ/insetsDiffer") - }, - defaultSource: { - process: _$$_REQUIRE(_dependencyMap[5], "./resolveAssetSource") - }, - internal_analyticTag: true, - resizeMode: true, - source: true, - tintColor: { - process: _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/processColor") - } - }, (0, _$$_REQUIRE(_dependencyMap[6], "../NativeComponent/ViewConfigIgnore").ConditionallyIgnoredEventHandlers)({ - onLoadStart: true, - onLoad: true, - onLoadEnd: true, - onProgress: true, - onError: true, - onPartialLoad: true - })) - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var ImageViewNativeComponent = NativeComponentRegistry.get('RCTImageView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var _default = ImageViewNativeComponent; - exports.default = _default; -},336,[211,3,14,159,222,224,210],"node_modules/react-native/Libraries/Image/ImageViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = void 0; - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var __INTERNAL_VIEW_CONFIG = { - uiViewClassName: 'RCTTextInlineImage', - bubblingEventTypes: {}, - directEventTypes: {}, - validAttributes: { - resizeMode: true, - src: true, - tintColor: { - process: _$$_REQUIRE(_dependencyMap[1], "../StyleSheet/processColor") - }, - headers: true + return baseProps; + } + var valueCursor = createCursor(null), + currentlyRenderingFiber = null, + lastContextDependency = null, + lastFullyObservedContext = null; + function resetContextDependencies() { + lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; + } + function popProvider(context) { + var currentValue = valueCursor.current; + pop(valueCursor); + context._currentValue = currentValue; + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + for (; null !== parent;) { + var alternate = parent.alternate; + (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); + if (parent === propagationRoot) break; + parent = parent.return; } - }; - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var TextInlineImage = NativeComponentRegistry.get('RCTTextInlineImage', function () { - return __INTERNAL_VIEW_CONFIG; - }); - var _default = TextInlineImage; - exports.default = _default; -},337,[211,159],"node_modules/react-native/Libraries/Image/TextInlineImageNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Context = React.createContext(null); - if (__DEV__) { - Context.displayName = 'ImageAnalyticsTagContext'; } - var _default = Context; - exports.default = _default; -},338,[36],"node_modules/react-native/Libraries/Image/ImageAnalyticsTagContext.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('ImageLoader'); - exports.default = _default; -},339,[16],"node_modules/react-native/Libraries/Image/NativeImageLoaderIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var ScrollViewWithEventThrottle = React.forwardRef(function (props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[1], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[2], "../../Components/ScrollView/ScrollView"), Object.assign({ - scrollEventThrottle: 0.0001 - }, props, { - ref: ref - })); - }); - module.exports = _$$_REQUIRE(_dependencyMap[3], "../createAnimatedComponent")(ScrollViewWithEventThrottle); -},340,[36,73,310,298],"node_modules/react-native/Libraries/Animated/components/AnimatedScrollView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _SectionList = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Lists/SectionList")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var SectionListWithEventThrottle = React.forwardRef(function (props, ref) { - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_SectionList.default, Object.assign({ - scrollEventThrottle: 0.0001 - }, props, { - ref: ref - })); - }); - module.exports = _$$_REQUIRE(_dependencyMap[4], "../createAnimatedComponent")(SectionListWithEventThrottle); -},341,[36,3,342,73,298],"node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); - var _VirtualizedSectionList = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./VirtualizedSectionList")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/SectionList.js"; - var _excluded = ["stickySectionHeadersEnabled"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var SectionList = function (_React$PureComponent) { - (0, _inherits2.default)(SectionList, _React$PureComponent); - var _super = _createSuper(SectionList); - function SectionList() { - var _this; - (0, _classCallCheck2.default)(this, SectionList); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._captureRef = function (ref) { - _this._wrapperListRef = ref; + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastFullyObservedContext = lastContextDependency = null; + workInProgress = workInProgress.dependencies; + null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); + } + function readContext(context) { + var value = context._currentValue; + if (lastFullyObservedContext !== context) if (context = { + context: context, + memoizedValue: value, + next: null + }, null === lastContextDependency) { + if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + lastContextDependency = context; + currentlyRenderingFiber.dependencies = { + lanes: 0, + firstContext: context }; - return _this; + } else lastContextDependency = lastContextDependency.next = context; + return value; + } + var concurrentQueues = null; + function pushConcurrentUpdateQueue(queue) { + null === concurrentQueues ? concurrentQueues = [queue] : concurrentQueues.push(queue); + } + function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + null === interleaved ? (update.next = update, pushConcurrentUpdateQueue(queue)) : (update.next = interleaved.next, interleaved.next = update); + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes |= lane; + var alternate = sourceFiber.alternate; + null !== alternate && (alternate.lanes |= lane); + alternate = sourceFiber; + for (sourceFiber = sourceFiber.return; null !== sourceFiber;) sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; + return 3 === alternate.tag ? alternate.stateNode : null; + } + var hasForceUpdate = !1; + function initializeUpdateQueue(fiber) { + fiber.updateQueue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; + } + function cloneUpdateQueue(current, workInProgress) { + current = current.updateQueue; + workInProgress.updateQueue === current && (workInProgress.updateQueue = { + baseState: current.baseState, + firstBaseUpdate: current.firstBaseUpdate, + lastBaseUpdate: current.lastBaseUpdate, + shared: current.shared, + effects: current.effects + }); + } + function createUpdate(eventTime, lane) { + return { + eventTime: eventTime, + lane: lane, + tag: 0, + payload: null, + callback: null, + next: null + }; + } + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (null === updateQueue) return null; + updateQueue = updateQueue.shared; + if (0 !== (executionContext & 2)) { + var pending = updateQueue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + updateQueue.pending = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + pending = updateQueue.interleaved; + null === pending ? (update.next = update, pushConcurrentUpdateQueue(updateQueue)) : (update.next = pending.next, pending.next = update); + updateQueue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function entangleTransitions(root, fiber, lane) { + fiber = fiber.updateQueue; + if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { + var queueLanes = fiber.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + fiber.lanes = lane; + markRootEntangled(root, lane); } - (0, _createClass2.default)(SectionList, [{ - key: "scrollToLocation", - value: - function scrollToLocation(params) { - if (this._wrapperListRef != null) { - this._wrapperListRef.scrollToLocation(params); - } - } - - }, { - key: "recordInteraction", - value: - function recordInteraction() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - listRef && listRef.recordInteraction(); - } - - }, { - key: "flashScrollIndicators", - value: - function flashScrollIndicators() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - listRef && listRef.flashScrollIndicators(); - } - - }, { - key: "getScrollResponder", - value: - function getScrollResponder() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - if (listRef) { - return listRef.getScrollResponder(); - } - } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - if (listRef) { - return listRef.getScrollableNode(); - } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - if (listRef) { - listRef.setNativeProps(props); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - _stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, - restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var stickySectionHeadersEnabled = _stickySectionHeadersEnabled != null ? _stickySectionHeadersEnabled : _Platform.default.OS === 'ios'; - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_VirtualizedSectionList.default, Object.assign({}, restProps, { - stickySectionHeadersEnabled: stickySectionHeadersEnabled, - ref: this._captureRef, - getItemCount: function getItemCount(items) { - return items.length; - }, - getItem: function getItem(items, index) { - return items[index]; - } - })); - } - }]); - return SectionList; - }(React.PureComponent); - exports.default = SectionList; -},342,[3,132,12,13,50,47,46,14,36,343,73],"node_modules/react-native/Libraries/Lists/SectionList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); - var _assertThisInitialized2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/assertThisInitialized")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/getPrototypeOf")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); - var _reactNative = _$$_REQUIRE(_dependencyMap[11], "react-native"); - var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"]; - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var VirtualizedSectionList = function (_React$PureComponent) { - (0, _inherits2.default)(VirtualizedSectionList, _React$PureComponent); - var _super = _createSuper(VirtualizedSectionList); - function VirtualizedSectionList() { - var _this; - (0, _classCallCheck2.default)(this, VirtualizedSectionList); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._keyExtractor = function (item, index) { - var info = _this._subExtractor(index); - return info && info.key || String(index); - }; - _this._convertViewable = function (viewable) { - var _info$index; - (0, _invariant.default)(viewable.index != null, 'Received a broken ViewToken'); - var info = _this._subExtractor(viewable.index); - if (!info) { - return null; - } - var keyExtractorWithNullableIndex = info.section.keyExtractor; - var keyExtractorWithNonNullableIndex = _this.props.keyExtractor || _$$_REQUIRE(_dependencyMap[12], "./VirtualizeUtils").keyExtractor; - var key = keyExtractorWithNullableIndex != null ? keyExtractorWithNullableIndex(viewable.item, info.index) : keyExtractorWithNonNullableIndex(viewable.item, (_info$index = info.index) != null ? _info$index : 0); - return Object.assign({}, viewable, { - index: info.index, - key: key, - section: info.section - }); + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue, + current = workInProgress.alternate; + if (null !== current && (current = current.updateQueue, queue === current)) { + var newFirst = null, + newLast = null; + queue = queue.firstBaseUpdate; + if (null !== queue) { + do { + var clone = { + eventTime: queue.eventTime, + lane: queue.lane, + tag: queue.tag, + payload: queue.payload, + callback: queue.callback, + next: null + }; + null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; + queue = queue.next; + } while (null !== queue); + null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; + } else newFirst = newLast = capturedUpdate; + queue = { + baseState: current.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: current.shared, + effects: current.effects }; - _this._onViewableItemsChanged = function (_ref) { - var viewableItems = _ref.viewableItems, - changed = _ref.changed; - var onViewableItemsChanged = _this.props.onViewableItemsChanged; - if (onViewableItemsChanged != null) { - onViewableItemsChanged({ - viewableItems: viewableItems.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean), - changed: changed.map(_this._convertViewable, (0, _assertThisInitialized2.default)(_this)).filter(Boolean) + workInProgress.updateQueue = queue; + return; + } + workInProgress = queue.lastBaseUpdate; + null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; + queue.lastBaseUpdate = capturedUpdate; + } + function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { + var queue = workInProgress$jscomp$0.updateQueue; + hasForceUpdate = !1; + var firstBaseUpdate = queue.firstBaseUpdate, + lastBaseUpdate = queue.lastBaseUpdate, + pendingQueue = queue.shared.pending; + if (null !== pendingQueue) { + queue.shared.pending = null; + var lastPendingUpdate = pendingQueue, + firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; + lastBaseUpdate = lastPendingUpdate; + var current = workInProgress$jscomp$0.alternate; + null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); + } + if (null !== firstBaseUpdate) { + var newState = queue.baseState; + lastBaseUpdate = 0; + current = firstPendingUpdate = lastPendingUpdate = null; + pendingQueue = firstBaseUpdate; + do { + var updateLane = pendingQueue.lane, + updateEventTime = pendingQueue.eventTime; + if ((renderLanes & updateLane) === updateLane) { + null !== current && (current = current.next = { + eventTime: updateEventTime, + lane: 0, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null }); - } - }; - _this._renderItem = function (listItemCount) { - return ( - function (_ref2) { - var item = _ref2.item, - index = _ref2.index; - var info = _this._subExtractor(index); - if (!info) { - return null; - } - var infoIndex = info.index; - if (infoIndex == null) { - var section = info.section; - if (info.header === true) { - var renderSectionHeader = _this.props.renderSectionHeader; - return renderSectionHeader ? renderSectionHeader({ - section: section - }) : null; - } else { - var renderSectionFooter = _this.props.renderSectionFooter; - return renderSectionFooter ? renderSectionFooter({ - section: section - }) : null; - } - } else { - var renderItem = info.section.renderItem || _this.props.renderItem; - var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount); - (0, _invariant.default)(renderItem, 'no renderItem!'); - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(ItemWithSeparator, { - SeparatorComponent: SeparatorComponent, - LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined, - cellKey: info.key, - index: infoIndex, - item: item, - leadingItem: info.leadingItem, - leadingSection: info.leadingSection, - prevCellKey: (_this._subExtractor(index - 1) || {}).key - , - setSelfHighlightCallback: _this._setUpdateHighlightFor, - setSelfUpdatePropsCallback: _this._setUpdatePropsFor - , - updateHighlightFor: _this._updateHighlightFor, - updatePropsFor: _this._updatePropsFor, - renderItem: renderItem, - section: info.section, - trailingItem: info.trailingItem, - trailingSection: info.trailingSection, - inverted: !!_this.props.inverted - }); + a: { + var workInProgress = workInProgress$jscomp$0, + update = pendingQueue; + updateLane = props; + updateEventTime = instance; + switch (update.tag) { + case 1: + workInProgress = update.payload; + if ("function" === typeof workInProgress) { + newState = workInProgress.call(updateEventTime, newState, updateLane); + break a; + } + newState = workInProgress; + break a; + case 3: + workInProgress.flags = workInProgress.flags & -65537 | 128; + case 0: + workInProgress = update.payload; + updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; + if (null === updateLane || void 0 === updateLane) break a; + newState = assign({}, newState, updateLane); + break a; + case 2: + hasForceUpdate = !0; } } - ); - }; - _this._updatePropsFor = function (cellKey, value) { - var updateProps = _this._updatePropsMap[cellKey]; - if (updateProps != null) { - updateProps(value); - } - }; - _this._updateHighlightFor = function (cellKey, value) { - var updateHighlight = _this._updateHighlightMap[cellKey]; - if (updateHighlight != null) { - updateHighlight(value); - } - }; - _this._setUpdateHighlightFor = function (cellKey, updateHighlightFn) { - if (updateHighlightFn != null) { - _this._updateHighlightMap[cellKey] = updateHighlightFn; - } else { - delete _this._updateHighlightFor[cellKey]; - } - }; - _this._setUpdatePropsFor = function (cellKey, updatePropsFn) { - if (updatePropsFn != null) { - _this._updatePropsMap[cellKey] = updatePropsFn; - } else { - delete _this._updatePropsMap[cellKey]; - } - }; - _this._updateHighlightMap = {}; - _this._updatePropsMap = {}; - _this._captureRef = function (ref) { - _this._listRef = ref; - }; - return _this; + null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); + } else updateEventTime = { + eventTime: updateEventTime, + lane: updateLane, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; + pendingQueue = pendingQueue.next; + if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; + } while (1); + null === current && (lastPendingUpdate = newState); + queue.baseState = lastPendingUpdate; + queue.firstBaseUpdate = firstPendingUpdate; + queue.lastBaseUpdate = current; + props = queue.shared.interleaved; + if (null !== props) { + queue = props; + do lastBaseUpdate |= queue.lane, queue = queue.next; while (queue !== props); + } else null === firstBaseUpdate && (queue.shared.lanes = 0); + workInProgressRootSkippedLanes |= lastBaseUpdate; + workInProgress$jscomp$0.lanes = lastBaseUpdate; + workInProgress$jscomp$0.memoizedState = newState; } - (0, _createClass2.default)(VirtualizedSectionList, [{ - key: "scrollToLocation", - value: function scrollToLocation(params) { - var index = params.itemIndex; - for (var i = 0; i < params.sectionIndex; i++) { - index += this.props.getItemCount(this.props.sections[i].data) + 2; - } - var viewOffset = params.viewOffset || 0; - if (this._listRef == null) { - return; - } - if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) { - var frame = this._listRef.__getFrameMetricsApprox(index - params.itemIndex); - viewOffset += frame.length; - } - var toIndexParams = Object.assign({}, params, { - viewOffset: viewOffset, - index: index - }); - this._listRef.scrollToIndex(toIndexParams); - } - }, { - key: "getListRef", - value: function getListRef() { - return this._listRef; + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + finishedWork = finishedQueue.effects; + finishedQueue.effects = null; + if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { + var effect = finishedWork[finishedQueue], + callback = effect.callback; + if (null !== callback) { + effect.callback = null; + if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); + callback.call(instance); } - }, { - key: "render", - value: function render() { - var _this2 = this; - var _this$props = this.props, - ItemSeparatorComponent = _this$props.ItemSeparatorComponent, - SectionSeparatorComponent = _this$props.SectionSeparatorComponent, - _renderItem = _this$props.renderItem, - renderSectionFooter = _this$props.renderSectionFooter, - renderSectionHeader = _this$props.renderSectionHeader, - _sections = _this$props.sections, - stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled, - passThroughProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0; - var stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : undefined; - var itemCount = 0; - for (var section of this.props.sections) { - if (stickyHeaderIndices != null) { - stickyHeaderIndices.push(itemCount + listHeaderOffset); - } - - itemCount += 2; - itemCount += this.props.getItemCount(section.data); + } + } + var emptyRefsObject = new React.Component().refs; + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + ctor = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); + getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); + workInProgress.memoizedState = getDerivedStateFromProps; + 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); + } + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + payload = enqueueUpdate(inst, update, lane); + null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + payload = enqueueUpdate(inst, update, lane); + null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + callback = enqueueUpdate(inst, update, lane); + null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + workInProgress = workInProgress.stateNode; + return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = !1, + unmaskedContext = emptyContextObject; + var context = ctor.contextType; + "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); + ctor = new ctor(props, context); + workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; + ctor.updater = classComponentUpdater; + workInProgress.stateNode = ctor; + ctor._reactInternals = workInProgress; + isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return ctor; + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); + instance.state = workInProgress.memoizedState; + contextType = ctor.getDerivedStateFromProps; + "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); + "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); + } + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + if (element) { + if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + var inst = element.stateNode; } - var renderItem = this._renderItem(itemCount); - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_reactNative.VirtualizedList, Object.assign({}, passThroughProps, { - keyExtractor: this._keyExtractor, - stickyHeaderIndices: stickyHeaderIndices, - renderItem: renderItem, - data: this.props.sections, - getItem: function getItem(sections, index) { - return _this2._getItem(_this2.props, sections, index); - }, - getItemCount: function getItemCount() { - return itemCount; - }, - onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined, - ref: this._captureRef - })); + if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); + var resolvedInst = inst, + stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + current = function current(value) { + var refs = resolvedInst.refs; + refs === emptyRefsObject && (refs = resolvedInst.refs = {}); + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + current._stringRef = stringRef; + return current; } - }, { - key: "_getItem", - value: function _getItem(props, sections, index) { - if (!sections) { - return null; - } - var itemIdx = index - 1; - for (var i = 0; i < sections.length; i++) { - var section = sections[i]; - var sectionData = section.data; - var itemCount = props.getItemCount(sectionData); - if (itemIdx === -1 || itemIdx === itemCount) { - return section; - } else if (itemIdx < itemCount) { - return props.getItem(sectionData, itemIdx); - } else { - itemIdx -= itemCount + 2; - } - } - - return null; + if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + return returnFiber; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + returnFiber = Object.prototype.toString.call(newChild); + throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); + } + function resolveLazy(lazyType) { + var init = lazyType._init; + return init(lazyType._payload); + } + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var deletions = returnFiber.deletions; + null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); } - }, { - key: "_subExtractor", - value: function _subExtractor(index) { - var itemIndex = index; - var _this$props2 = this.props, - getItem = _this$props2.getItem, - getItemCount = _this$props2.getItemCount, - keyExtractor = _this$props2.keyExtractor, - sections = _this$props2.sections; - for (var i = 0; i < sections.length; i++) { - var section = sections[i]; - var sectionData = section.data; - var key = section.key || String(i); - itemIndex -= 1; - if (itemIndex >= getItemCount(sectionData) + 1) { - itemIndex -= getItemCount(sectionData) + 1; - } else if (itemIndex === -1) { - return { - section: section, - key: key + ':header', - index: null, - header: true, - trailingSection: sections[i + 1] - }; - } else if (itemIndex === getItemCount(sectionData)) { - return { - section: section, - key: key + ':footer', - index: null, - header: false, - trailingSection: sections[i + 1] - }; - } else { - var extractor = section.keyExtractor || keyExtractor || _$$_REQUIRE(_dependencyMap[12], "./VirtualizeUtils").keyExtractor; - return { - section: section, - key: key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex), - index: itemIndex, - leadingItem: getItem(sectionData, itemIndex - 1), - leadingSection: sections[i - 1], - trailingItem: getItem(sectionData, itemIndex + 1), - trailingSection: sections[i + 1] - }; - } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + for (; null !== currentFirstChild;) deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + return returnFiber; + } + function useFiber(fiber, pendingProps) { + fiber = createWorkInProgress(fiber, pendingProps); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; + newFiber.flags |= 2; + return lastPlacedIndex; + } + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, textContent); + current.return = returnFiber; + return current; + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; + lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); + lanes.ref = coerceRef(returnFiber, current, element); + lanes.return = returnFiber; + return lanes; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, portal.children || []); + current.return = returnFiber; + return current; + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; + current = useFiber(current, fragment); + current.return = returnFiber; + return current; + } + function createChild(returnFiber, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + case REACT_LAZY_TYPE: + var init = newChild._init; + return createChild(returnFiber, init(newChild._payload), lanes); } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); } - }, { - key: "_getSeparatorComponent", - value: function _getSeparatorComponent(index, info, listItemCount) { - info = info || this._subExtractor(index); - if (!info) { - return null; - } - var ItemSeparatorComponent = info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent; - var SectionSeparatorComponent = this.props.SectionSeparatorComponent; - var isLastItemInList = index === listItemCount - 1; - var isLastItemInSection = info.index === this.props.getItemCount(info.section.data) - 1; - if (SectionSeparatorComponent && isLastItemInSection) { - return SectionSeparatorComponent; - } - if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) { - return ItemSeparatorComponent; + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_LAZY_TYPE: + return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); } - return null; + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); } - }]); - return VirtualizedSectionList; - }(React.PureComponent); - function ItemWithSeparator(props) { - var LeadingSeparatorComponent = props.LeadingSeparatorComponent, - SeparatorComponent = props.SeparatorComponent, - cellKey = props.cellKey, - prevCellKey = props.prevCellKey, - setSelfHighlightCallback = props.setSelfHighlightCallback, - updateHighlightFor = props.updateHighlightFor, - setSelfUpdatePropsCallback = props.setSelfUpdatePropsCallback, - updatePropsFor = props.updatePropsFor, - item = props.item, - index = props.index, - section = props.section, - inverted = props.inverted; - var _React$useState = React.useState(false), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - leadingSeparatorHiglighted = _React$useState2[0], - setLeadingSeparatorHighlighted = _React$useState2[1]; - var _React$useState3 = React.useState(false), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), - separatorHighlighted = _React$useState4[0], - setSeparatorHighlighted = _React$useState4[1]; - var _React$useState5 = React.useState({ - leadingItem: props.leadingItem, - leadingSection: props.leadingSection, - section: props.section, - trailingItem: props.item, - trailingSection: props.trailingSection - }), - _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), - leadingSeparatorProps = _React$useState6[0], - setLeadingSeparatorProps = _React$useState6[1]; - var _React$useState7 = React.useState({ - leadingItem: props.item, - leadingSection: props.leadingSection, - section: props.section, - trailingItem: props.trailingItem, - trailingSection: props.trailingSection - }), - _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), - separatorProps = _React$useState8[0], - setSeparatorProps = _React$useState8[1]; - React.useEffect(function () { - setSelfHighlightCallback(cellKey, setSeparatorHighlighted); - setSelfUpdatePropsCallback(cellKey, setSeparatorProps); - return function () { - setSelfUpdatePropsCallback(cellKey, null); - setSelfHighlightCallback(cellKey, null); - }; - }, [cellKey, setSelfHighlightCallback, setSeparatorProps, setSelfUpdatePropsCallback]); - var separators = { - highlight: function highlight() { - setLeadingSeparatorHighlighted(true); - setSeparatorHighlighted(true); - if (prevCellKey != null) { - updateHighlightFor(prevCellKey, true); - } - }, - unhighlight: function unhighlight() { - setLeadingSeparatorHighlighted(false); - setSeparatorHighlighted(false); - if (prevCellKey != null) { - updateHighlightFor(prevCellKey, false); - } - }, - updateProps: function updateProps(select, newProps) { - if (select === 'leading') { - if (LeadingSeparatorComponent != null) { - setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps)); - } else if (prevCellKey != null) { - updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps)); - } - } else if (select === 'trailing' && SeparatorComponent != null) { - setSeparatorProps(Object.assign({}, separatorProps, newProps)); + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); + case REACT_LAZY_TYPE: + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); } - }; - var element = props.renderItem({ - item: item, - index: index, - section: section, - separators: separators - }); - var leadingSeparator = LeadingSeparatorComponent != null && (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(LeadingSeparatorComponent, Object.assign({ - highlighted: leadingSeparatorHiglighted - }, leadingSeparatorProps)); - var separator = SeparatorComponent != null && (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(SeparatorComponent, Object.assign({ - highlighted: separatorHighlighted - }, separatorProps)); - return leadingSeparator || separator ? (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_reactNative.View, { - children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator] - }) : element; - } - - module.exports = VirtualizedSectionList; -},343,[3,19,132,12,13,49,50,47,46,17,36,1,308,73],"node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Text/Text")); -},344,[36,298,255],"node_modules/react-native/Libraries/Animated/components/AnimatedText.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - module.exports = _$$_REQUIRE(_dependencyMap[1], "../createAnimatedComponent")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); -},345,[36,298,245],"node_modules/react-native/Libraries/Animated/components/AnimatedView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _RCTDatePickerNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./RCTDatePickerNativeComponent")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../View/View")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "invariant")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var DatePickerIOS = function (_React$Component) { - (0, _inherits2.default)(DatePickerIOS, _React$Component); - var _super = _createSuper(DatePickerIOS); - function DatePickerIOS() { - var _this; - (0, _classCallCheck2.default)(this, DatePickerIOS); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._picker = null; - _this._onChange = function (event) { - var nativeTimeStamp = event.nativeEvent.timestamp; - _this.props.onDateChange && _this.props.onDateChange(new Date(nativeTimeStamp)); - _this.props.onChange && _this.props.onChange(event); - _this.forceUpdate(); - }; - return _this; + return null; } - (0, _createClass2.default)(DatePickerIOS, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (this.props.date) { - var propsTimeStamp = this.props.date.getTime(); - if (this._picker) { - _RCTDatePickerNativeComponent.Commands.setNativeDate(this._picker, propsTimeStamp); - } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; } - }, { - key: "render", - value: function render() { - var _props$mode, - _this2 = this; - var props = this.props; - var mode = (_props$mode = props.mode) != null ? _props$mode : 'datetime'; - (0, _invariant.default)(props.date || props.initialDate, 'A selected date or initial date should be specified.'); - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: props.style, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_RCTDatePickerNativeComponent.default, { - testID: props.testID, - ref: function ref(picker) { - _this2._picker = picker; - }, - style: getHeight(props.pickerStyle, mode), - date: props.date ? props.date.getTime() : props.initialDate ? props.initialDate.getTime() : undefined, - locale: props.locale != null && props.locale !== '' ? props.locale : undefined, - maximumDate: props.maximumDate ? props.maximumDate.getTime() : undefined, - minimumDate: props.minimumDate ? props.minimumDate.getTime() : undefined, - mode: mode, - minuteInterval: props.minuteInterval, - timeZoneOffsetInMinutes: props.timeZoneOffsetInMinutes, - onChange: this._onChange, - onStartShouldSetResponder: function onStartShouldSetResponder() { - return true; - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - return false; - }, - pickerStyle: props.pickerStyle - }) - }); + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + return resultingFirstChild; } - }]); - return DatePickerIOS; - }(React.Component); - var inlineHeightForDatePicker = 318.5; - var inlineHeightForTimePicker = 49.5; - var compactHeight = 40; - var spinnerHeight = 216; - var styles = _StyleSheet.default.create({ - datePickerIOS: { - height: spinnerHeight - }, - datePickerIOSCompact: { - height: compactHeight - }, - datePickerIOSInline: { - height: inlineHeightForDatePicker + inlineHeightForTimePicker * 2 - }, - datePickerIOSInlineDate: { - height: inlineHeightForDatePicker + inlineHeightForTimePicker - }, - datePickerIOSInlineTime: { - height: inlineHeightForTimePicker - } - }); - function getHeight(pickerStyle, mode) { - if (pickerStyle === 'compact') { - return styles.datePickerIOSCompact; + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return resultingFirstChild; } - if (pickerStyle === 'inline') { - switch (mode) { - case 'date': - return styles.datePickerIOSInlineDate; - case 'time': - return styles.datePickerIOSInlineTime; - default: - return styles.datePickerIOSInline; + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; } - } - return styles.datePickerIOS; - } - module.exports = DatePickerIOS; -},346,[3,12,13,50,47,46,36,347,244,245,17,73],"node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Commands = void 0; - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react-native/Libraries/Utilities/codegenNativeCommands")); - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeComponent")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['setNativeDate'] - }); - exports.Commands = Commands; - var _default = (0, _codegenNativeComponent.default)('DatePicker', { - paperComponentName: 'RCTDatePicker', - excludedPlatforms: ['android'] - }); - exports.default = _default; -},347,[3,202,251,36],"node_modules/react-native/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], "../UnimplementedViews/UnimplementedView"); -},348,[249],"node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./Image")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../StyleSheet/StyleSheet")); - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../StyleSheet/flattenStyle")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../Components/View/View")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Image/ImageBackground.js"; - var _excluded = ["children", "style", "imageStyle", "imageRef"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var ImageBackground = function (_React$Component) { - (0, _inherits2.default)(ImageBackground, _React$Component); - var _super = _createSuper(ImageBackground); - function ImageBackground() { - var _this; - (0, _classCallCheck2.default)(this, ImageBackground); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + return iteratorFn; } - _this = _super.call.apply(_super, [this].concat(args)); - _this._viewRef = null; - _this._captureRef = function (ref) { - _this._viewRef = ref; - }; - return _this; - } - (0, _createClass2.default)(ImageBackground, [{ - key: "setNativeProps", - value: function setNativeProps(props) { - var viewRef = this._viewRef; - if (viewRef) { - viewRef.setNativeProps(props); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - style = _this$props.style, - imageStyle = _this$props.imageStyle, - imageRef = _this$props.imageRef, - props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var flattenedStyle = (0, _flattenStyle.default)(style); - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_View.default, { - accessibilityIgnoresInvertColors: true, - style: style, - ref: this._captureRef, - children: [(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Image.default, Object.assign({}, props, { - style: [_StyleSheet.default.absoluteFill, { - width: flattenedStyle == null ? void 0 : flattenedStyle.width, - height: flattenedStyle == null ? void 0 : flattenedStyle.height - }, imageStyle], - ref: imageRef - })), children] - }); - } - }]); - return ImageBackground; - }(React.Component); - module.exports = ImageBackground; -},349,[3,132,12,13,50,47,46,334,36,244,189,245,73],"node_modules/react-native/Libraries/Image/ImageBackground.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); - var _RCTInputAccessoryViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./RCTInputAccessoryViewNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var InputAccessoryView = function (_React$Component) { - (0, _inherits2.default)(InputAccessoryView, _React$Component); - var _super = _createSuper(InputAccessoryView); - function InputAccessoryView() { - (0, _classCallCheck2.default)(this, InputAccessoryView); - return _super.apply(this, arguments); - } - (0, _createClass2.default)(InputAccessoryView, [{ - key: "render", - value: function render() { - if (_Platform.default.OS === 'ios') { - if (React.Children.count(this.props.children) === 0) { - return null; - } - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_RCTInputAccessoryViewNativeComponent.default, { - style: [this.props.style, styles.container], - nativeID: this.props.nativeID, - backgroundColor: this.props.backgroundColor, - children: this.props.children - }); - } else { - console.warn(' is only supported on iOS.'); - return null; - } - } - }]); - return InputAccessoryView; - }(React.Component); - var styles = _StyleSheet.default.create({ - container: { - position: 'absolute' - } - }); - module.exports = InputAccessoryView; -},350,[3,12,13,50,47,46,36,14,244,351,73],"node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('InputAccessory', { - interfaceOnly: true, - paperComponentName: 'RCTInputAccessoryView', - excludedPlatforms: ['android'] - }); - exports.default = _default; -},351,[3,251],"node_modules/react-native/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/asyncToGenerator")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/getPrototypeOf")); - var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./Keyboard")); - var _LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../LayoutAnimation/LayoutAnimation")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "../View/View")); - var _AccessibilityInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[14], "../AccessibilityInfo/AccessibilityInfo")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"; - var _excluded = ["behavior", "children", "contentContainerStyle", "enabled", "keyboardVerticalOffset", "style", "onLayout"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var KeyboardAvoidingView = function (_React$Component) { - (0, _inherits2.default)(KeyboardAvoidingView, _React$Component); - var _super = _createSuper(KeyboardAvoidingView); - function KeyboardAvoidingView(props) { - var _this; - (0, _classCallCheck2.default)(this, KeyboardAvoidingView); - _this = _super.call(this, props); - _this._frame = null; - _this._keyboardEvent = null; - _this._subscriptions = []; - _this._initialFrameHeight = 0; - _this._onKeyboardChange = function (event) { - _this._keyboardEvent = event; - _this._updateBottomIfNecessary(); - }; - _this._onLayout = function () { - var _ref = (0, _asyncToGenerator2.default)(function* (event) { - var wasFrameNull = _this._frame == null; - _this._frame = event.nativeEvent.layout; - if (!_this._initialFrameHeight) { - _this._initialFrameHeight = _this._frame.height; - } - if (wasFrameNull) { - yield _this._updateBottomIfNecessary(); - } - if (_this.props.onLayout) { - _this.props.onLayout(event); - } - }); - return function (_x) { - return _ref.apply(this, arguments); - }; - }(); - _this._updateBottomIfNecessary = (0, _asyncToGenerator2.default)(function* () { - if (_this._keyboardEvent == null) { - _this.setState({ - bottom: 0 - }); - return; - } - var _this$_keyboardEvent = _this._keyboardEvent, - duration = _this$_keyboardEvent.duration, - easing = _this$_keyboardEvent.easing, - endCoordinates = _this$_keyboardEvent.endCoordinates; - var height = yield _this._relativeKeyboardHeight(endCoordinates); - if (_this.state.bottom === height) { - return; - } - if (duration && easing) { - _LayoutAnimation.default.configureNext({ - duration: duration > 10 ? duration : 10, - update: { - duration: duration > 10 ? duration : 10, - type: _LayoutAnimation.default.Types[easing] || 'keyboard' - } - }); - } - _this.setState({ - bottom: height - }); + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); }); - _this.state = { - bottom: 0 - }; - _this.viewRef = React.createRef(); - return _this; + return iteratorFn; } - (0, _createClass2.default)(KeyboardAvoidingView, [{ - key: "_relativeKeyboardHeight", - value: function () { - var _relativeKeyboardHeight2 = (0, _asyncToGenerator2.default)(function* (keyboardFrame) { - var _this$props$keyboardV; - var frame = this._frame; - if (!frame || !keyboardFrame) { - return 0; - } - - if (_Platform.default.OS === 'ios' && keyboardFrame.screenY === 0 && (yield _AccessibilityInfo.default.prefersCrossFadeTransitions())) { - return 0; - } - var keyboardY = keyboardFrame.screenY - ((_this$props$keyboardV = this.props.keyboardVerticalOffset) != null ? _this$props$keyboardV : 0); - - return Math.max(frame.y + frame.height - keyboardY, 0); - }); - function _relativeKeyboardHeight(_x2) { - return _relativeKeyboardHeight2.apply(this, arguments); - } - return _relativeKeyboardHeight; - }() - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (_Platform.default.OS === 'ios') { - this._subscriptions = [_Keyboard.default.addListener('keyboardWillChangeFrame', this._onKeyboardChange)]; - } else { - this._subscriptions = [_Keyboard.default.addListener('keyboardDidHide', this._onKeyboardChange), _Keyboard.default.addListener('keyboardDidShow', this._onKeyboardChange)]; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._subscriptions.forEach(function (subscription) { - subscription.remove(); - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - behavior = _this$props.behavior, - children = _this$props.children, - contentContainerStyle = _this$props.contentContainerStyle, - _this$props$enabled = _this$props.enabled, - enabled = _this$props$enabled === void 0 ? true : _this$props$enabled, - _this$props$keyboardV2 = _this$props.keyboardVerticalOffset, - keyboardVerticalOffset = _this$props$keyboardV2 === void 0 ? 0 : _this$props$keyboardV2, - style = _this$props.style, - onLayout = _this$props.onLayout, - props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var bottomHeight = enabled === true ? this.state.bottom : 0; - switch (behavior) { - case 'height': - var heightStyle; - if (this._frame != null && this.state.bottom > 0) { - heightStyle = { - height: this._initialFrameHeight - bottomHeight, - flex: 0 - }; + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + for (var key = newChild.key, child = currentFirstChild; null !== child;) { + if (child.key === key) { + key = newChild.type; + if (key === REACT_FRAGMENT_TYPE) { + if (7 === child.tag) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props.children); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props); + currentFirstChild.ref = coerceRef(returnFiber, child, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + deleteRemainingChildren(returnFiber, child); + break; + } else deleteChild(returnFiber, child); + child = child.sibling; + } + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); } - return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ - ref: this.viewRef, - style: _StyleSheet.default.compose(style, heightStyle), - onLayout: this._onLayout - }, props, { - children: children - })); - case 'position': - return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ - ref: this.viewRef, - style: style, - onLayout: this._onLayout - }, props, { - children: (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, { - style: _StyleSheet.default.compose(contentContainerStyle, { - bottom: bottomHeight - }), - children: children - }) - })); - case 'padding': - return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ - ref: this.viewRef, - style: _StyleSheet.default.compose(style, { - paddingBottom: bottomHeight - }), - onLayout: this._onLayout - }, props, { - children: children - })); - default: - return (0, _$$_REQUIRE(_dependencyMap[15], "react/jsx-runtime").jsx)(_View.default, Object.assign({ - ref: this.viewRef, - onLayout: this._onLayout, - style: style - }, props, { - children: children - })); + return placeSingleChild(returnFiber); + case REACT_PORTAL_TYPE: + a: { + for (child = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === child) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || []); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + return placeSingleChild(returnFiber); + case REACT_LAZY_TYPE: + return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); } + if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + throwOnInvalidObjectType(returnFiber, newChild); } - }]); - return KeyboardAvoidingView; - }(React.Component); - var _default = KeyboardAvoidingView; - exports.default = _default; -},352,[3,132,65,12,13,50,47,46,312,313,14,36,244,245,2,73],"node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../View/View")); - var _RCTMaskedViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./RCTMaskedViewNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"; - var _excluded = ["maskElement", "children"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var MaskedViewIOS = function (_React$Component) { - (0, _inherits2.default)(MaskedViewIOS, _React$Component); - var _super = _createSuper(MaskedViewIOS); - function MaskedViewIOS() { - var _this; - (0, _classCallCheck2.default)(this, MaskedViewIOS); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._hasWarnedInvalidRenderMask = false; - return _this; + return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } - (0, _createClass2.default)(MaskedViewIOS, [{ - key: "render", - value: function render() { - var _this$props = this.props, - maskElement = _this$props.maskElement, - children = _this$props.children, - otherViewProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - if (!React.isValidElement(maskElement)) { - if (!this._hasWarnedInvalidRenderMask) { - console.warn('MaskedView: Invalid `maskElement` prop was passed to MaskedView. ' + 'Expected a React Element. No mask will render.'); - this._hasWarnedInvalidRenderMask = true; - } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, Object.assign({}, otherViewProps, { - children: children - })); - } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_RCTMaskedViewNativeComponent.default, Object.assign({}, otherViewProps, { - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - pointerEvents: "none", - style: _StyleSheet.default.absoluteFill, - children: maskElement - }), children] - })); + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance); + push(contextFiberStackCursor, fiber); + push(contextStackCursor$1, NO_CONTEXT); + pop(contextStackCursor$1); + push(contextStackCursor$1, { + isInAParentText: !1 + }); + } + function popHostContainer() { + pop(contextStackCursor$1); + pop(contextFiberStackCursor); + pop(rootInstanceStackCursor); + } + function pushHostContext(fiber) { + requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var JSCompiler_inline_result = fiber.type; + JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; + JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { + isInAParentText: JSCompiler_inline_result + } : context; + context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); + } + var suspenseStackCursor = createCursor(0); + function findFirstSuspended(row) { + for (var node = row; null !== node;) { + if (13 === node.tag) { + var state = node.memoizedState; + if (null !== state && (null === state.dehydrated || shim() || shim())) return node; + } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { + if (0 !== (node.flags & 128)) return node; + } else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; } - }]); - return MaskedViewIOS; - }(React.Component); - module.exports = MaskedViewIOS; -},353,[3,132,12,13,50,47,46,36,244,245,354,73],"node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('RCTMaskedView'); - exports.default = _default; -},354,[3,251],"node_modules/react-native/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/defineProperty")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _ModalInjection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./ModalInjection")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../EventEmitter/NativeEventEmitter")); - var _NativeModalManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeModalManager")); - var _RCTModalHostViewNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./RCTModalHostViewNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Modal/Modal.js", - _container, - _ModalInjection$unsta; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[11], "react"); - var ModalEventEmitter = "ios" === 'ios' && _NativeModalManager.default != null ? new _NativeEventEmitter.default( - "ios" !== 'ios' ? null : _NativeModalManager.default) : null; - - var uniqueModalIdentifier = 0; - function confirmProps(props) { - if (__DEV__) { - if (props.presentationStyle && props.presentationStyle !== 'overFullScreen' && props.transparent === true) { - console.warn("Modal with '" + props.presentationStyle + "' presentation style and 'transparent' value is not supported."); + if (node === row) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === row) return null; + node = node.return; } + node.sibling.return = node.return; + node = node.sibling; } + return null; } - var Modal = function (_React$Component) { - (0, _inherits2.default)(Modal, _React$Component); - var _super = _createSuper(Modal); - function Modal(props) { - var _this; - (0, _classCallCheck2.default)(this, Modal); - _this = _super.call(this, props); - if (__DEV__) { - confirmProps(props); - } - _this._identifier = uniqueModalIdentifier++; - return _this; + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) workInProgressSources[i]._workInProgressVersionPrimary = null; + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes = 0, + currentlyRenderingFiber$1 = null, + currentHook = null, + workInProgressHook = null, + didScheduleRenderPhaseUpdate = !1, + didScheduleRenderPhaseUpdateDuringThisPass = !1, + globalClientIdCounter = 0; + function throwInvalidHookError() { + 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (null === prevDeps) return !1; + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1; + return !0; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = 0; + ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; + current = Component(props, secondArg); + if (didScheduleRenderPhaseUpdateDuringThisPass) { + nextRenderLanes = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = !1; + if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + nextRenderLanes += 1; + workInProgressHook = currentHook = null; + workInProgress.updateQueue = null; + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; + current = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); } - (0, _createClass2.default)(Modal, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - if (ModalEventEmitter) { - this._eventSubscription = ModalEventEmitter.addListener('modalDismissed', function (event) { - if (event.modalID === _this2._identifier && _this2.props.onDismiss) { - _this2.props.onDismiss(); - } - }); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._eventSubscription) { - this._eventSubscription.remove(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (__DEV__) { - confirmProps(this.props); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - if (this.props.visible !== true) { - return null; - } - var containerStyles = { - backgroundColor: this.props.transparent === true ? 'transparent' : 'white' - }; - var animationType = this.props.animationType || 'none'; - var presentationStyle = this.props.presentationStyle; - if (!presentationStyle) { - presentationStyle = 'fullScreen'; - if (this.props.transparent === true) { - presentationStyle = 'overFullScreen'; - } - } - var innerChildren = __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../ReactNative/AppContainer"), { - rootTag: this.context, - children: this.props.children - }) : this.props.children; - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_RCTModalHostViewNativeComponent.default, { - animationType: animationType, - presentationStyle: presentationStyle, - transparent: this.props.transparent, - hardwareAccelerated: this.props.hardwareAccelerated, - onRequestClose: this.props.onRequestClose, - onShow: this.props.onShow, - onDismiss: function onDismiss() { - if (_this3.props.onDismiss) { - _this3.props.onDismiss(); - } - }, - visible: this.props.visible, - statusBarTranslucent: this.props.statusBarTranslucent, - identifier: this._identifier, - style: styles.modal - , - onStartShouldSetResponder: this._shouldSetResponder, - supportedOrientations: this.props.supportedOrientations, - onOrientationChange: this.props.onOrientationChange, - testID: this.props.testID, - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[14], "../Lists/VirtualizedListContext.js").VirtualizedListContextResetter, { - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[15], "../Components/ScrollView/ScrollView").Context.Provider, { - value: null, - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[16], "../Components/View/View"), { - style: [styles.container, containerStyles], - collapsable: false, - children: innerChildren - }) - }) - }) - }); - } - - }, { - key: "_shouldSetResponder", - value: - function _shouldSetResponder() { - return true; - } - }]); - return Modal; - }(React.Component); - Modal.defaultProps = { - visible: true, - hardwareAccelerated: false - }; - Modal.contextType = _$$_REQUIRE(_dependencyMap[17], "../ReactNative/RootTag").RootTagContext; - var side = _$$_REQUIRE(_dependencyMap[18], "../ReactNative/I18nManager").getConstants().isRTL ? 'right' : 'left'; - var styles = _$$_REQUIRE(_dependencyMap[19], "../StyleSheet/StyleSheet").create({ - modal: { - position: 'absolute' - }, - container: (_container = {}, (0, _defineProperty2.default)(_container, side, 0), (0, _defineProperty2.default)(_container, "top", 0), (0, _defineProperty2.default)(_container, "flex", 1), _container) - }); - var ExportedModal = (_ModalInjection$unsta = _ModalInjection.default.unstable_Modal) != null ? _ModalInjection$unsta : Modal; - module.exports = ExportedModal; -},355,[3,306,12,13,50,47,46,356,134,357,358,36,73,359,332,310,245,386,364,244],"node_modules/react-native/Libraries/Modal/Modal.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _default = { - unstable_Modal: null - }; - exports.default = _default; -},356,[],"node_modules/react-native/Libraries/Modal/ModalInjection.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('ModalManager'); - exports.default = _default; -},357,[16],"node_modules/react-native/Libraries/Modal/NativeModalManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('ModalHostView', { - interfaceOnly: true, - paperComponentName: 'RCTModalHostView' - }); - exports.default = _default; -},358,[3,251],"node_modules/react-native/Libraries/Modal/RCTModalHostViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Components/View/View")); - var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../EventEmitter/RCTDeviceEventEmitter")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../StyleSheet/StyleSheet")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/ReactNative/AppContainer.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var AppContainer = function (_React$Component) { - (0, _inherits2.default)(AppContainer, _React$Component); - var _super = _createSuper(AppContainer); - function AppContainer() { - var _this; - (0, _classCallCheck2.default)(this, AppContainer); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this.state = { - inspector: null, - mainKey: 1, - hasError: false + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + workInProgress = null !== currentHook && null !== currentHook.next; + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdate = !1; + if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + return current; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; + return workInProgressHook; + } + function updateWorkInProgressHook() { + if (null === currentHook) { + var nextCurrentHook = currentlyRenderingFiber$1.alternate; + nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; + } else nextCurrentHook = currentHook.next; + var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; + if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { + if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); + currentHook = nextCurrentHook; + nextCurrentHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null }; - _this._subscription = null; - return _this; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; } - (0, _createClass2.default)(AppContainer, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - this._subscription = _RCTDeviceEventEmitter.default.addListener('toggleElementInspector', function () { - var Inspector = _$$_REQUIRE(_dependencyMap[10], "../Inspector/Inspector"); - var inspector = _this2.state.inspector ? null : (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Inspector, { - inspectedView: _this2._mainRef, - onRequestRerenderApp: function onRequestRerenderApp(updateInspectedView) { - _this2.setState(function (s) { - return { - mainKey: s.mainKey + 1 - }; - }, function () { - return updateInspectedView(_this2._mainRef); - }); - } - }); - _this2.setState({ - inspector: inspector - }); - }); - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subscription != null) { - this._subscription.remove(); - } + return workInProgressHook; + } + function basicStateReducer(state, action) { + return "function" === typeof action ? action(state) : action; + } + function updateReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var current = currentHook, + baseQueue = current.baseQueue, + pendingQueue = queue.pending; + if (null !== pendingQueue) { + if (null !== baseQueue) { + var baseFirst = baseQueue.next; + baseQueue.next = pendingQueue.next; + pendingQueue.next = baseFirst; } - }, { - key: "render", - value: function render() { - var _this3 = this; - var logBox = null; - if (__DEV__) { - if (!global.__RCTProfileIsProfiling && !this.props.internal_excludeLogBox) { - var LogBoxNotificationContainer = _$$_REQUIRE(_dependencyMap[12], "../LogBox/LogBoxNotificationContainer").default; - logBox = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(LogBoxNotificationContainer, {}); - } - } - var innerView = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - collapsable: !this.state.inspector, - pointerEvents: "box-none", - style: styles.appContainer, - ref: function ref(_ref) { - _this3._mainRef = _ref; - }, - children: this.props.children - }, this.state.mainKey); - var Wrapper = this.props.WrapperComponent; - if (Wrapper != null) { - innerView = (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Wrapper, { - initialProps: this.props.initialProps, - fabric: this.props.fabric === true, - showArchitectureIndicator: this.props.showArchitectureIndicator === true, - children: innerView - }); + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (null !== baseQueue) { + pendingQueue = baseQueue.next; + current = current.baseState; + var newBaseQueueFirst = baseFirst = null, + newBaseQueueLast = null, + update = pendingQueue; + do { + var updateLane = update.lane; + if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { + lane: 0, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; + currentlyRenderingFiber$1.lanes |= updateLane; + workInProgressRootSkippedLanes |= updateLane; } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "./RootTag").RootTagContext.Provider, { - value: (0, _$$_REQUIRE(_dependencyMap[13], "./RootTag").createRootTag)(this.props.rootTag), - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { - style: styles.appContainer, - pointerEvents: "box-none", - children: [!this.state.hasError && innerView, this.state.inspector, logBox] - }) - }); - } - }]); - return AppContainer; - }(React.Component); - AppContainer.getDerivedStateFromError = undefined; - var styles = _StyleSheet.default.create({ - appContainer: { - flex: 1 + update = update.next; + } while (null !== update && update !== pendingQueue); + null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; + objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = current; + hook.baseState = baseFirst; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = current; } - }); - module.exports = AppContainer; -},359,[3,12,13,50,47,46,245,4,244,36,360,73,379,386],"node_modules/react-native/Libraries/ReactNative/AppContainer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/Inspector.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; - var renderers = findRenderers(); - - hook.resolveRNStyle = _$$_REQUIRE(_dependencyMap[3], "../StyleSheet/flattenStyle"); - hook.nativeStyleEditorValidAttributes = Object.keys(_$$_REQUIRE(_dependencyMap[4], "../Components/View/ReactNativeStyleAttributes")); - function findRenderers() { - var allRenderers = Array.from(hook.renderers.values()); - _$$_REQUIRE(_dependencyMap[5], "invariant")(allRenderers.length >= 1, 'Expected to find at least one React Native renderer on DevTools hook.'); - return allRenderers; + reducer = queue.interleaved; + if (null !== reducer) { + baseQueue = reducer; + do pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; while (baseQueue !== reducer); + } else null === baseQueue && (queue.lanes = 0); + return [hook.memoizedState, queue.dispatch]; } - function getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, callback) { - for (var i = 0; i < renderers.length; i++) { - var _renderer$rendererCon; - var renderer = renderers[i]; - if ((renderer == null ? void 0 : (_renderer$rendererCon = renderer.rendererConfig) == null ? void 0 : _renderer$rendererCon.getInspectorDataForViewAtPoint) != null) { - renderer.rendererConfig.getInspectorDataForViewAtPoint(inspectedView, locationX, locationY, function (viewData) { - if (viewData && viewData.hierarchy.length > 0) { - callback(viewData); - } - }); - } + function rerenderReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var dispatch = queue.dispatch, + lastRenderPhaseUpdate = queue.pending, + newState = hook.memoizedState; + if (null !== lastRenderPhaseUpdate) { + queue.pending = null; + var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + do newState = reducer(newState, update.action), update = update.next; while (update !== lastRenderPhaseUpdate); + objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = newState; + null === hook.baseQueue && (hook.baseState = newState); + queue.lastRenderedState = newState; } + return [newState, dispatch]; } - var Inspector = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits")(Inspector, _React$Component); - var _super = _createSuper(Inspector); - function Inspector(props) { - var _this; - _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/classCallCheck")(this, Inspector); - _this = _super.call(this, props); - _this._hideTimeoutID = null; - _this._attachToDevtools = function (agent) { - agent.addListener('hideNativeHighlight', _this._onAgentHideNativeHighlight); - agent.addListener('showNativeHighlight', _this._onAgentShowNativeHighlight); - agent.addListener('shutdown', _this._onAgentShutdown); - _this.setState({ - devtoolsAgent: agent - }); - }; - _this._onAgentHideNativeHighlight = function () { - if (_this.state.inspected === null) { - return; - } - _this._hideTimeoutID = setTimeout(function () { - _this.setState({ - inspected: null - }); - }, 100); - }; - _this._onAgentShowNativeHighlight = function (node) { - var _node$canonical; - clearTimeout(_this._hideTimeoutID); - - var component = (_node$canonical = node.canonical) != null ? _node$canonical : node; - component.measure(function (x, y, width, height, left, top) { - _this.setState({ - hierarchy: [], - inspected: { - frame: { - left: left, - top: top, - width: width, - height: height - } - } - }); - }); - }; - _this._onAgentShutdown = function () { - var agent = _this.state.devtoolsAgent; - if (agent != null) { - agent.removeListener('hideNativeHighlight', _this._onAgentHideNativeHighlight); - agent.removeListener('showNativeHighlight', _this._onAgentShowNativeHighlight); - agent.removeListener('shutdown', _this._onAgentShutdown); - _this.setState({ - devtoolsAgent: null - }); - } - }; - _this.state = { - devtoolsAgent: null, - hierarchy: null, - panelPos: 'bottom', - inspecting: true, - perfing: false, - inspected: null, - selection: null, - inspectedView: _this.props.inspectedView, - networking: false - }; - return _this; + function updateMutableSource() {} + function updateSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = updateWorkInProgressHook(), + nextSnapshot = getSnapshot(), + snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); + snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); + hook = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); + if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } - _$$_REQUIRE(_dependencyMap[8], "@babel/runtime/helpers/createClass")(Inspector, [{ - key: "componentDidMount", - value: function componentDidMount() { - hook.on('react-devtools', this._attachToDevtools); - if (hook.reactDevtoolsAgent) { - this._attachToDevtools(hook.reactDevtoolsAgent); - } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= 16384; + fiber = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + getSnapshot = currentlyRenderingFiber$1.updateQueue; + null === getSnapshot ? (getSnapshot = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); + } + function subscribeToStore(fiber, inst, subscribe) { + return subscribe(function () { + checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); + }); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + inst = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(inst, nextValue); + } catch (error) { + return !0; + } + } + function forceStoreRerender(fiber) { + var root = markUpdateLaneFromFiberToRoot(fiber, 1); + null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + "function" === typeof initialState && (initialState = initialState()); + hook.memoizedState = hook.baseState = initialState; + initialState = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = initialState; + initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); + return [hook.memoizedState, initialState]; + } + function pushEffect(tag, create, destroy, deps) { + tag = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + create = currentlyRenderingFiber$1.updateQueue; + null === create ? (create = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); + return tag; + } + function updateRef() { + return updateWorkInProgressHook().memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var destroy = void 0; + if (null !== currentHook) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); + return; } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subs) { - this._subs.map(function (fn) { - return fn(); - }); - } - hook.off('react-devtools', this._attachToDevtools); - this._setTouchedViewData = null; - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - this.setState({ - inspectedView: newProps.inspectedView - }); - } - }, { - key: "setSelection", - value: function setSelection(i) { - var _this2 = this; - var hierarchyItem = this.state.hierarchy[i]; - var _hierarchyItem$getIns = hierarchyItem.getInspectorData(_$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactNative").findNodeHandle), - measure = _hierarchyItem$getIns.measure, - props = _hierarchyItem$getIns.props, - source = _hierarchyItem$getIns.source; - measure(function (x, y, width, height, left, top) { - _this2.setState({ - inspected: { - frame: { - left: left, - top: top, - width: width, - height: height - }, - style: props.style, - source: source - }, - selection: i - }); - }); - } - }, { - key: "onTouchPoint", - value: function onTouchPoint(locationX, locationY) { - var _this3 = this; - this._setTouchedViewData = function (viewData) { - var hierarchy = viewData.hierarchy, - props = viewData.props, - selectedIndex = viewData.selectedIndex, - source = viewData.source, - frame = viewData.frame, - pointerY = viewData.pointerY, - touchedViewTag = viewData.touchedViewTag; - - if (_this3.state.devtoolsAgent && touchedViewTag) { - _this3.state.devtoolsAgent.selectNode(_$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactNative").findNodeHandle(touchedViewTag)); - } - _this3.setState({ - panelPos: pointerY > _$$_REQUIRE(_dependencyMap[10], "../Utilities/Dimensions").get('window').height / 2 ? 'top' : 'bottom', - selection: selectedIndex, - hierarchy: hierarchy, - inspected: { - style: props.style, - frame: frame, - source: source - } - }); - }; - getInspectorDataForViewAtPoint(this.state.inspectedView, locationX, locationY, function (viewData) { - if (_this3._setTouchedViewData != null) { - _this3._setTouchedViewData(viewData); - _this3._setTouchedViewData = null; - } - }); - } - }, { - key: "setPerfing", - value: function setPerfing(val) { - this.setState({ - perfing: val, - inspecting: false, - inspected: null, - networking: false - }); - } - }, { - key: "setInspecting", - value: function setInspecting(val) { - this.setState({ - inspecting: val, - inspected: null - }); - } - }, { - key: "setTouchTargeting", - value: function setTouchTargeting(val) { - var _this4 = this; - _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").setEnabled(val); - this.props.onRequestRerenderApp(function (inspectedView) { - _this4.setState({ - inspectedView: inspectedView - }); - }); - } - }, { - key: "setNetworking", - value: function setNetworking(val) { - this.setState({ - networking: val, - perfing: false, - inspecting: false, - inspected: null - }); - } - }, { - key: "render", - value: function render() { - var panelContainerStyle = this.state.panelPos === 'bottom' ? { - bottom: 0 - } : { - top: "ios" === 'ios' ? 20 : 0 - }; - return _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { - style: styles.container, - pointerEvents: "box-none", - children: [this.state.inspecting && _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./InspectorOverlay"), { - inspected: this.state.inspected - , - onTouchPoint: this.onTouchPoint.bind(this) - }), _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Components/View/View"), { - style: [styles.panelContainer, panelContainerStyle], - children: _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./InspectorPanel"), { - devtoolsIsOpen: !!this.state.devtoolsAgent, - inspecting: this.state.inspecting, - perfing: this.state.perfing - , - setPerfing: this.setPerfing.bind(this) - , - setInspecting: this.setInspecting.bind(this), - inspected: this.state.inspected, - hierarchy: this.state.hierarchy, - selection: this.state.selection - , - setSelection: this.setSelection.bind(this), - touchTargeting: _$$_REQUIRE(_dependencyMap[11], "../Pressability/PressabilityDebug").isEnabled() - , - setTouchTargeting: this.setTouchTargeting.bind(this), - networking: this.state.networking - , - setNetworking: this.setNetworking.bind(this) - }) - })] - }); - } - }]); - return Inspector; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ - container: { - position: 'absolute', - backgroundColor: 'transparent', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - panelContainer: { - position: 'absolute', - left: 0, - right: 0 } - }); - module.exports = Inspector; -},360,[46,47,36,189,185,17,50,12,13,34,229,256,73,245,361,367,244],"node_modules/react-native/Libraries/Inspector/Inspector.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var InspectorOverlay = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorOverlay, _React$Component); - var _super = _createSuper(InspectorOverlay); - function InspectorOverlay() { - var _this; - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorOverlay); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this.findViewForTouchEvent = function (e) { - var _e$nativeEvent$touche = e.nativeEvent.touches[0], - locationX = _e$nativeEvent$touche.locationX, - locationY = _e$nativeEvent$touche.locationY; - _this.props.onTouchPoint(locationX, locationY); - }; - _this.shouldSetResponser = function (e) { - _this.findViewForTouchEvent(e); - return true; - }; - return _this; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); + } + function mountEffect(create, deps) { + return mountEffectImpl(8390656, 8, create, deps); + } + function updateEffect(create, deps) { + return updateEffectImpl(2048, 8, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(4, 2, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(4, 4, create, deps); + } + function imperativeHandleEffect(create, ref) { + if ("function" === typeof ref) return create = create(), ref(create), function () { + ref(null); + }; + if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { + ref.current = null; + }; + } + function updateImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + } + function mountDebugValue() {} + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + hook.memoizedState = [callback, deps]; + return callback; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + } + function updateDeferredValueImpl(hook, prevValue, value) { + if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; + objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); + return prevValue; + } + function startTransition(setPending, callback) { + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + setPending(!0); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + try { + setPending(!1), callback(); + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorOverlay, [{ - key: "render", - value: function render() { - var content = null; - if (this.props.inspected) { - content = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "./ElementBox"), { - frame: this.props.inspected.frame, - style: this.props.inspected.style - }); + } + function updateId() { + return updateWorkInProgressHook().memoizedState; + } + function dispatchReducerAction(fiber, queue, action) { + var lane = requestUpdateLane(fiber); + action = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action);else if (action = enqueueConcurrentHookUpdate(fiber, queue, action, lane), null !== action) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(action, fiber, lane, eventTime); + entangleTransitionUpdate(action, queue, lane); + } + } + function dispatchSetState(fiber, queue, action) { + var lane = requestUpdateLane(fiber), + update = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { + var alternate = fiber.alternate; + if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { + var currentState = queue.lastRenderedState, + eagerState = alternate(currentState, action); + update.hasEagerState = !0; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + var interleaved = queue.interleaved; + null === interleaved ? (update.next = update, pushConcurrentUpdateQueue(queue)) : (update.next = interleaved.next, interleaved.next = update); + queue.interleaved = update; + return; } - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - onStartShouldSetResponder: this.shouldSetResponser, - onResponderMove: this.findViewForTouchEvent, - nativeID: "inspectorOverlay", - style: [styles.inspector, { - height: _$$_REQUIRE(_dependencyMap[9], "../Utilities/Dimensions").get('window').height - }], - children: content - }); - } - }]); - return InspectorOverlay; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ - inspector: { - backgroundColor: 'transparent', - position: 'absolute', - left: 0, - top: 0, - right: 0 + } catch (error) {} finally {} + action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + null !== action && (update = requestEventTime(), scheduleUpdateOnFiber(action, fiber, lane, update), entangleTransitionUpdate(action, queue, lane)); } - }); - module.exports = InspectorOverlay; -},361,[46,47,36,50,12,13,73,362,245,229,244],"node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/ElementBox.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var ElementBox = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementBox, _React$Component); - var _super = _createSuper(ElementBox); - function ElementBox() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementBox); - return _super.apply(this, arguments); + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; + var pending = queue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + queue.pending = update; + } + function entangleTransitionUpdate(root, queue, lane) { + if (0 !== (lane & 4194240)) { + var queueLanes = queue.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + queue.lanes = lane; + markRootEntangled(root, lane); } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementBox, [{ - key: "render", - value: function render() { - var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style) || {}; - var margin = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('margin', style); - var padding = _$$_REQUIRE(_dependencyMap[7], "./resolveBoxStyle")('padding', style); - var frameStyle = Object.assign({}, this.props.frame); - var contentStyle = { - width: this.props.frame.width, - height: this.props.frame.height - }; - if (margin != null) { - margin = resolveRelativeSizes(margin); - frameStyle.top -= margin.top; - frameStyle.left -= margin.left; - frameStyle.height += margin.top + margin.bottom; - frameStyle.width += margin.left + margin.right; - if (margin.top < 0) { - contentStyle.height += margin.top; - } - if (margin.bottom < 0) { - contentStyle.height += margin.bottom; - } - if (margin.left < 0) { - contentStyle.width += margin.left; - } - if (margin.right < 0) { - contentStyle.width += margin.right; - } - } - if (padding != null) { - padding = resolveRelativeSizes(padding); - contentStyle.width -= padding.left + padding.right; - contentStyle.height -= padding.top + padding.bottom; - } - return _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { - style: [styles.frame, frameStyle], - pointerEvents: "none", - children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { - box: margin, - style: styles.margin, - children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./BorderBox"), { - box: padding, - style: styles.padding, - children: _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Components/View/View"), { - style: [styles.content, contentStyle] - }) - }) - }) - }); - } - }]); - return ElementBox; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[11], "../StyleSheet/StyleSheet").create({ - frame: { - position: 'absolute' + } + var ContextOnlyDispatcher = { + readContext: readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: !1 }, - content: { - backgroundColor: 'rgba(200, 230, 255, 0.8)' + HooksDispatcherOnMount = { + readContext: readContext, + useCallback: function useCallback(callback, deps) { + mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; + return callback; + }, + useContext: readContext, + useEffect: mountEffect, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + return mountEffectImpl(4, 4, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + return mountEffectImpl(4, 2, create, deps); + }, + useMemo: function useMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + }, + useReducer: function useReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + initialArg = void 0 !== init ? init(initialArg) : initialArg; + hook.memoizedState = hook.baseState = initialArg; + reducer = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialArg + }; + hook.queue = reducer; + reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); + return [hook.memoizedState, reducer]; + }, + useRef: function useRef(initialValue) { + var hook = mountWorkInProgressHook(); + initialValue = { + current: initialValue + }; + return hook.memoizedState = initialValue; + }, + useState: mountState, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + return mountWorkInProgressHook().memoizedState = value; + }, + useTransition: function useTransition() { + var _mountState = mountState(!1), + isPending = _mountState[0]; + _mountState = startTransition.bind(null, _mountState[1]); + mountWorkInProgressHook().memoizedState = _mountState; + return [isPending, _mountState]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = mountWorkInProgressHook(); + var nextSnapshot = getSnapshot(); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + return nextSnapshot; + }, + useId: function useId() { + var hook = mountWorkInProgressHook(), + identifierPrefix = workInProgressRoot.identifierPrefix, + globalClientId = globalClientIdCounter++; + identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + return hook.memoizedState = identifierPrefix; + }, + unstable_isNewReconciler: !1 }, - - padding: { - borderColor: 'rgba(77, 255, 0, 0.3)' + HooksDispatcherOnUpdate = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: updateReducer, + useRef: updateRef, + useState: function useState() { + return updateReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = updateReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 }, - - margin: { - borderColor: 'rgba(255, 132, 0, 0.3)' - } - }); - - function resolveRelativeSizes(style) { - var resolvedStyle = Object.assign({}, style); - resolveSizeInPlace(resolvedStyle, 'top', 'height'); - resolveSizeInPlace(resolvedStyle, 'right', 'width'); - resolveSizeInPlace(resolvedStyle, 'bottom', 'height'); - resolveSizeInPlace(resolvedStyle, 'left', 'width'); - return resolvedStyle; + HooksDispatcherOnRerender = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: rerenderReducer, + useRef: updateRef, + useState: function useState() { + return rerenderReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = rerenderReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }; + function createCapturedValueAtFiber(value, source) { + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source), + digest: null + }; } - - function resolveSizeInPlace(style, direction, dimension) { - if (style[direction] !== null && typeof style[direction] === 'string') { - if (style[direction].indexOf('%') !== -1) { - style[direction] = parseFloat(style[direction]) / 100.0 * _$$_REQUIRE(_dependencyMap[12], "../Utilities/Dimensions").get('window')[dimension]; - } - if (style[direction] === 'auto') { - style[direction] = 0; - } + function createCapturedValue(value, digest, stack) { + return { + value: value, + source: null, + stack: null != stack ? stack : null, + digest: null != digest ? digest : null + }; + } + if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + function logCapturedError(boundary, errorInfo) { + try { + !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ + componentStack: null !== errorInfo.stack ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null + }) && console.error(errorInfo.value); + } catch (e) { + setTimeout(function () { + throw e; + }); } } - module.exports = ElementBox; -},362,[46,47,36,50,12,13,189,363,73,245,366,244,229],"node_modules/react-native/Libraries/Inspector/ElementBox.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function resolveBoxStyle(prefix, style) { - var hasParts = false; - var result = { - bottom: 0, - left: 0, - right: 0, - top: 0 + var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + lane.payload = { + element: null }; - - var styleForAll = style[prefix]; - if (styleForAll != null) { - for (var key of Object.keys(result)) { - result[key] = styleForAll; - } - hasParts = true; + var error = errorInfo.value; + lane.callback = function () { + hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); + logCapturedError(fiber, errorInfo); + }; + return lane; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if ("function" === typeof getDerivedStateFromError) { + var error = errorInfo.value; + lane.payload = function () { + return getDerivedStateFromError(error); + }; + lane.callback = function () { + logCapturedError(fiber, errorInfo); + }; } - var styleForHorizontal = style[prefix + 'Horizontal']; - if (styleForHorizontal != null) { - result.left = styleForHorizontal; - result.right = styleForHorizontal; - hasParts = true; - } else { - var styleForLeft = style[prefix + 'Left']; - if (styleForLeft != null) { - result.left = styleForLeft; - hasParts = true; - } - var styleForRight = style[prefix + 'Right']; - if (styleForRight != null) { - result.right = styleForRight; - hasParts = true; - } - var styleForEnd = style[prefix + 'End']; - if (styleForEnd != null) { - var constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); - if (constants.isRTL && constants.doLeftAndRightSwapInRTL) { - result.left = styleForEnd; - } else { - result.right = styleForEnd; - } - hasParts = true; - } - var styleForStart = style[prefix + 'Start']; - if (styleForStart != null) { - var _constants = _$$_REQUIRE(_dependencyMap[0], "../ReactNative/I18nManager").getConstants(); - if (_constants.isRTL && _constants.doLeftAndRightSwapInRTL) { - result.right = styleForStart; - } else { - result.left = styleForStart; - } - hasParts = true; - } + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { + logCapturedError(fiber, errorInfo); + "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); + var stack = errorInfo.stack; + this.componentDidCatch(errorInfo.value, { + componentStack: null !== stack ? stack : "" + }); + }); + return lane; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + if (null === pingCache) { + pingCache = root.pingCache = new PossiblyWeakMap(); + var threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); + threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, + didReceiveUpdate = !1; + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + Component = Component.render; + var ref = workInProgress.ref; + prepareToReadContext(workInProgress, renderLanes); + nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, nextProps, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null === current) { + var type = Component.type; + if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); + current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; } - var styleForVertical = style[prefix + 'Vertical']; - if (styleForVertical != null) { - result.bottom = styleForVertical; - result.top = styleForVertical; - hasParts = true; - } else { - var styleForBottom = style[prefix + 'Bottom']; - if (styleForBottom != null) { - result.bottom = styleForBottom; - hasParts = true; - } - var styleForTop = style[prefix + 'Top']; - if (styleForTop != null) { - result.top = styleForTop; - hasParts = true; - } + type = current.child; + if (0 === (current.lanes & renderLanes)) { + var prevProps = type.memoizedProps; + Component = Component.compare; + Component = null !== Component ? Component : shallowEqual; + if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - return hasParts ? result : null; + workInProgress.flags |= 1; + current = createWorkInProgress(type, nextProps); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; } - module.exports = resolveBoxStyle; -},363,[364],"node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeI18nManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeI18nManager")); - - var i18nConstants = getI18nManagerConstants(); - function getI18nManagerConstants() { - if (_NativeI18nManager.default) { - var _NativeI18nManager$ge = _NativeI18nManager.default.getConstants(), - isRTL = _NativeI18nManager$ge.isRTL, - doLeftAndRightSwapInRTL = _NativeI18nManager$ge.doLeftAndRightSwapInRTL, - localeIdentifier = _NativeI18nManager$ge.localeIdentifier; - return { - isRTL: isRTL, - doLeftAndRightSwapInRTL: doLeftAndRightSwapInRTL, - localeIdentifier: localeIdentifier - }; + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null !== current) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } - return { - isRTL: false, - doLeftAndRightSwapInRTL: true - }; + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); } - module.exports = { - getConstants: function getConstants() { - return i18nConstants; - }, - allowRTL: function allowRTL(shouldAllow) { - if (!_NativeI18nManager.default) { - return; - } - _NativeI18nManager.default.allowRTL(shouldAllow); - }, - forceRTL: function forceRTL(shouldForce) { - if (!_NativeI18nManager.default) { - return; - } - _NativeI18nManager.default.forceRTL(shouldForce); - }, - swapLeftAndRightInRTL: function swapLeftAndRightInRTL(flipStyles) { - if (!_NativeI18nManager.default) { - return; + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + nextChildren = nextProps.children, + prevState = null !== current ? current.memoizedState : null; + if ("hidden" === nextProps.mode) { + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { + if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { + baseLanes: current, + cachePool: null, + transitions: null + }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; + workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + nextProps = null !== prevState ? prevState.baseLanes : renderLanes; + push(subtreeRenderLanesCursor, subtreeRenderLanes); + subtreeRenderLanes |= nextProps; } - _NativeI18nManager.default.swapLeftAndRightInRTL(flipStyles); - }, - isRTL: i18nConstants.isRTL, - doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL + } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + prepareToReadContext(workInProgress, renderLanes); + Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, Component, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + prepareToReadContext(workInProgress, renderLanes); + if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { + var instance = workInProgress.stateNode, + oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context, + contextType = Component.contextType; + "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); + var getDerivedStateFromProps = Component.getDerivedStateFromProps, + hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; + hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + oldContext = workInProgress.memoizedState; + oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); + } else { + instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + oldProps = workInProgress.memoizedProps; + contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); + instance.props = contextType; + hasNewLifecycles = workInProgress.pendingProps; + oldState = instance.context; + oldContext = Component.contextType; + "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); + var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; + (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); + hasForceUpdate = !1; + oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + var newState = workInProgress.memoizedState; + oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); + } + return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.flags & 128); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner$1.current = workInProgress; + var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); + workInProgress.flags |= 1; + null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); + workInProgress.memoizedState = shouldUpdate.state; + hasContext && invalidateContextProvider(workInProgress, Component, !0); + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: 0 }; -},364,[3,365],"node_modules/react-native/Libraries/ReactNative/I18nManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('I18nManager'); - exports.default = _default; -},365,[16],"node_modules/react-native/Libraries/ReactNative/NativeI18nManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/BorderBox.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var BorderBox = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BorderBox, _React$Component); - var _super = _createSuper(BorderBox); - function BorderBox() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BorderBox); - return _super.apply(this, arguments); + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: null, + transitions: null + }; + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + suspenseContext = suspenseStackCursor.current, + showFallback = !1, + didSuspend = 0 !== (workInProgress.flags & 128), + JSCompiler_temp; + (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); + if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; + push(suspenseStackCursor, suspenseContext & 1); + if (null === current) { + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; + didSuspend = nextProps.children; + current = nextProps.fallback; + return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { + mode: "hidden", + children: didSuspend + }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BorderBox, [{ - key: "render", - value: function render() { - var box = this.props.box; - if (!box) { - return this.props.children; - } - var style = { - borderTopWidth: box.top, - borderBottomWidth: box.bottom, - borderLeftWidth: box.left, - borderRightWidth: box.right - }; - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: [style, this.props.style], - children: this.props.children - }); - } - }]); - return BorderBox; - }(React.Component); - module.exports = BorderBox; -},366,[46,47,36,50,12,13,73,245],"node_modules/react-native/Libraries/Inspector/BorderBox.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/InspectorPanel.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var InspectorPanel = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorPanel, _React$Component); - var _super = _createSuper(InspectorPanel); - function InspectorPanel() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorPanel); - return _super.apply(this, arguments); + suspenseContext = current.memoizedState; + if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); + if (showFallback) { + showFallback = nextProps.fallback; + didSuspend = workInProgress.mode; + suspenseContext = current.child; + JSCompiler_temp = suspenseContext.sibling; + var primaryChildProps = { + mode: "hidden", + children: nextProps.children + }; + 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); + null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); + showFallback.return = workInProgress; + nextProps.return = workInProgress; + nextProps.sibling = showFallback; + workInProgress.child = nextProps; + nextProps = showFallback; + showFallback = workInProgress.child; + didSuspend = current.child.memoizedState; + didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { + baseLanes: didSuspend.baseLanes | renderLanes, + cachePool: null, + transitions: didSuspend.transitions + }; + showFallback.memoizedState = didSuspend; + showFallback.childLanes = current.childLanes & ~renderLanes; + workInProgress.memoizedState = SUSPENDED_MARKER; + return nextProps; } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorPanel, [{ - key: "renderWaiting", - value: function renderWaiting() { - if (this.props.inspecting) { - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.waitingText, - children: "Tap something to inspect it" - }); - } - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.waitingText, - children: "Nothing is inspected" - }); - } - }, { - key: "render", - value: function render() { - var contents; - if (this.props.inspected) { - contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/ScrollView/ScrollView"), { - style: styles.properties, - children: _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "./ElementProperties"), { - style: this.props.inspected.style, - frame: this.props.inspected.frame, - source: this.props.inspected.source - , - hierarchy: this.props.hierarchy, - selection: this.props.selection, - setSelection: this.props.setSelection - }) - }); - } else if (this.props.perfing) { - contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "./PerformanceOverlay"), {}); - } else if (this.props.networking) { - contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[11], "./NetworkOverlay"), {}); - } else { - contents = _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.waiting, - children: this.renderWaiting() - }); + showFallback = current.child; + current = showFallback.sibling; + nextProps = createWorkInProgress(showFallback, { + mode: "visible", + children: nextProps.children + }); + 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); + nextProps.return = workInProgress; + nextProps.sibling = null; + null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); + workInProgress.child = nextProps; + workInProgress.memoizedState = null; + return nextProps; + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { + primaryChildren = createFiberFromOffscreen({ + mode: "visible", + children: primaryChildren + }, workInProgress.mode, 0, null); + primaryChildren.return = workInProgress; + return workInProgress.child = primaryChildren; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); + current.flags |= 2; + workInProgress.memoizedState = null; + return current; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (didSuspend) { + if (workInProgress.flags & 256) return workInProgress.flags &= -257, suspenseState = createCapturedValue(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")), retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); + if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; + suspenseState = nextProps.fallback; + didSuspend = workInProgress.mode; + nextProps = createFiberFromOffscreen({ + mode: "visible", + children: nextProps.children + }, didSuspend, 0, null); + suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); + suspenseState.flags |= 2; + nextProps.return = workInProgress; + suspenseState.return = workInProgress; + nextProps.sibling = suspenseState; + workInProgress.child = nextProps; + 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); + workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return suspenseState; + } + if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); + if (shim()) return suspenseState = shim().digest, suspenseState = createCapturedValue(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), suspenseState, void 0), retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); + didSuspend = 0 !== (renderLanes & current.childLanes); + if (didReceiveUpdate || didSuspend) { + nextProps = workInProgressRoot; + if (null !== nextProps) { + switch (renderLanes & -renderLanes) { + case 4: + didSuspend = 2; + break; + case 16: + didSuspend = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + didSuspend = 32; + break; + case 536870912: + didSuspend = 268435456; + break; + default: + didSuspend = 0; } - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.container, - children: [!this.props.devtoolsIsOpen && contents, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.buttonRow, - children: [_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { - title: 'Inspect', - pressed: this.props.inspecting, - onClick: this.props.setInspecting - }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { - title: 'Perf', - pressed: this.props.perfing, - onClick: this.props.setPerfing - }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { - title: 'Network', - pressed: this.props.networking, - onClick: this.props.setNetworking - }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(InspectorPanelButton, { - title: 'Touchables', - pressed: this.props.touchTargeting, - onClick: this.props.setTouchTargeting - })] - })] - }); + didSuspend = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; + 0 !== didSuspend && didSuspend !== suspenseState.retryLane && (suspenseState.retryLane = didSuspend, markUpdateLaneFromFiberToRoot(current, didSuspend), scheduleUpdateOnFiber(nextProps, current, didSuspend, -1)); } - }]); - return InspectorPanel; - }(React.Component); - var InspectorPanelButton = function (_React$Component2) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(InspectorPanelButton, _React$Component2); - var _super2 = _createSuper(InspectorPanelButton); - function InspectorPanelButton() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, InspectorPanelButton); - return _super2.apply(this, arguments); + renderDidSuspendDelayIfPossible(); + suspenseState = createCapturedValue(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(InspectorPanelButton, [{ - key: "render", - value: function render() { - var _this = this; - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Components/Touchable/TouchableHighlight"), { - onPress: function onPress() { - return _this.props.onClick(!_this.props.pressed); - }, - style: [styles.button, this.props.pressed && styles.buttonPressed], - children: _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.buttonText, - children: this.props.title - }) - }); + if (shim()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim(), null; + current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); + current.flags |= 4096; + return current; + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes |= renderLanes; + var alternate = fiber.alternate; + null !== alternate && (alternate.lanes |= renderLanes); + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + null === renderState ? workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); + } + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + revealOrder = nextProps.revealOrder, + tailMode = nextProps.tail; + reconcileChildren(current, workInProgress, nextProps.children, renderLanes); + nextProps = suspenseStackCursor.current; + if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { + if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { + if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { + current.child.return = current; + current = current.child; + continue; + } + if (current === workInProgress) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === workInProgress) break a; + current = current.return; + } + current.sibling.return = current.return; + current = current.sibling; } - }]); - return InspectorPanelButton; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ - buttonRow: { - flexDirection: 'row' - }, - button: { - backgroundColor: 'rgba(0, 0, 0, 0.3)', - margin: 2, - height: 30, - justifyContent: 'center', - alignItems: 'center' - }, - buttonPressed: { - backgroundColor: 'rgba(255, 255, 255, 0.3)' - }, - buttonText: { - textAlign: 'center', - color: 'white', - margin: 5 - }, - container: { - backgroundColor: 'rgba(0, 0, 0, 0.7)' - }, - properties: { - height: 200 - }, - waiting: { - height: 100 - }, - waitingText: { - fontSize: 20, - textAlign: 'center', - marginVertical: 20, - color: 'white' + nextProps &= 1; } - }); - module.exports = InspectorPanel; -},367,[46,47,36,50,12,13,73,255,310,368,375,376,245,369,244],"node_modules/react-native/Libraries/Inspector/InspectorPanel.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/ElementProperties.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var ElementProperties = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementProperties, _React$Component); - var _super = _createSuper(ElementProperties); - function ElementProperties() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementProperties); - return _super.apply(this, arguments); + push(suspenseStackCursor, nextProps); + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { + case "forwards": + renderLanes = workInProgress.child; + for (revealOrder = null; null !== renderLanes;) current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + renderLanes = revealOrder; + null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); + initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); + break; + case "backwards": + renderLanes = null; + revealOrder = workInProgress.child; + for (workInProgress.child = null; null !== revealOrder;) { + current = revealOrder.alternate; + if (null !== current && null === findFirstSuspended(current)) { + workInProgress.child = revealOrder; + break; + } + current = revealOrder.sibling; + revealOrder.sibling = renderLanes; + renderLanes = revealOrder; + revealOrder = current; + } + initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); + break; + case "together": + initSuspenseListRenderState(workInProgress, !1, null, null, void 0); + break; + default: + workInProgress.memoizedState = null; } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementProperties, [{ - key: "render", - value: function render() { - var _this = this; - var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style); - var selection = this.props.selection; - var openFileButton; - var source = this.props.source; - var _ref = source || {}, - fileName = _ref.fileName, - lineNumber = _ref.lineNumber; - if (fileName && lineNumber) { - var parts = fileName.split('/'); - var fileNameShort = parts[parts.length - 1]; - openFileButton = _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { - style: styles.openButton, - onPress: _$$_REQUIRE(_dependencyMap[9], "../Core/Devtools/openFileInEditor").bind(null, fileName, lineNumber), - children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { - style: styles.openButtonTitle, - numberOfLines: 1, - children: [fileNameShort, ":", lineNumber] - }) - }); + return workInProgress.child; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + null !== current && (workInProgress.dependencies = current.dependencies); + workInProgressRootSkippedLanes |= workInProgress.lanes; + if (0 === (renderLanes & workInProgress.childLanes)) return null; + if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); + if (null !== workInProgress.child) { + current = workInProgress.child; + renderLanes = createWorkInProgress(current, current.pendingProps); + workInProgress.child = renderLanes; + for (renderLanes.return = workInProgress; null !== current.sibling;) current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; + renderLanes.sibling = null; + } + return workInProgress.child; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + case 5: + pushHostContext(workInProgress); + break; + case 1: + isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); + break; + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case 10: + var context = workInProgress.type._context, + nextValue = workInProgress.memoizedProps.value; + push(valueCursor, context._currentValue); + context._currentValue = nextValue; + break; + case 13: + context = workInProgress.memoizedState; + if (null !== context) { + if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; + if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); + push(suspenseStackCursor, suspenseStackCursor.current & 1); + current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + return null !== current ? current.sibling : null; } - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[11], "../Components/Touchable/TouchableWithoutFeedback"), { - children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.info, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.breadcrumb, - children: _$$_REQUIRE(_dependencyMap[13], "../Utilities/mapWithSeparator")(this.props.hierarchy, function (hierarchyItem, i) { - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { - style: [styles.breadItem, i === selection && styles.selected] - , - onPress: function onPress() { - return _this.props.setSelection(i); - }, - children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { - style: styles.breadItemText, - children: hierarchyItem.name - }) - }, 'item-' + i); - }, function (i) { - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { - style: styles.breadSep, - children: "\u25B8" - }, 'sep-' + i); - }) - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.row, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { - style: styles.col, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./StyleInspector"), { - style: style - }), openFileButton] - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./BoxInspector"), { - style: style, - frame: this.props.frame - })] - })] - }) - }); - } - }]); - return ElementProperties; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ - breadSep: { - fontSize: 8, - color: 'white' - }, - breadcrumb: { - flexDirection: 'row', - flexWrap: 'wrap', - alignItems: 'flex-start', - marginBottom: 5 - }, - selected: { - borderColor: 'white', - borderRadius: 5 - }, - breadItem: { - borderWidth: 1, - borderColor: 'transparent', - marginHorizontal: 2 - }, - breadItemText: { - fontSize: 10, - color: 'white', - marginHorizontal: 5 - }, - row: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-between' - }, - col: { - flex: 1 - }, - info: { - padding: 10 - }, - openButton: { - padding: 10, - backgroundColor: '#000', - marginVertical: 5, - marginRight: 5, - borderRadius: 2 - }, - openButtonTitle: { - color: 'white', - fontSize: 8 + push(suspenseStackCursor, suspenseStackCursor.current & 1); + break; + case 19: + context = 0 !== (renderLanes & workInProgress.childLanes); + if (0 !== (current.flags & 128)) { + if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); + workInProgress.flags |= 128; + } + nextValue = workInProgress.memoizedState; + null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); + push(suspenseStackCursor, suspenseStackCursor.current); + if (context) break;else return null; + case 22: + case 23: + return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); } - }); - module.exports = ElementProperties; -},368,[46,47,36,50,12,13,189,73,369,370,255,371,245,372,373,374,244],"node_modules/react-native/Libraries/Inspector/ElementProperties.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../StyleSheet/StyleSheet")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Utilities/Platform")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Components/View/View")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js", - _this3 = this; - var _excluded = ["onBlur", "onFocus"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var TouchableHighlight = function (_React$Component) { - (0, _inherits2.default)(TouchableHighlight, _React$Component); - var _super = _createSuper(TouchableHighlight); - function TouchableHighlight() { - var _this; - (0, _classCallCheck2.default)(this, TouchableHighlight); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + var appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; + appendAllChildren = function appendAllChildren(parent, workInProgress) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);else if (4 !== node.tag && null !== node.child) { + node.child.return = node; + node = node.child; + continue; } - _this = _super.call.apply(_super, [this].concat(args)); - _this._isMounted = false; - _this.state = { - pressability: new _Pressability.default(_this._createPressabilityConfig()), - extraStyles: _this.props.testOnly_pressed === true ? _this._createExtraStyles() : null - }; - return _this; - } - (0, _createClass2.default)(TouchableHighlight, [{ - key: "_createPressabilityConfig", - value: function _createPressabilityConfig() { - var _this$props$accessibi, - _this2 = this; - return { - cancelable: !this.props.rejectResponderTermination, - disabled: this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, - hitSlop: this.props.hitSlop, - delayLongPress: this.props.delayLongPress, - delayPressIn: this.props.delayPressIn, - delayPressOut: this.props.delayPressOut, - minPressDuration: 0, - pressRectOffset: this.props.pressRetentionOffset, - android_disableSound: this.props.touchSoundDisabled, - onBlur: function onBlur(event) { - if (_Platform.default.isTV) { - _this2._hideUnderlay(); - } - if (_this2.props.onBlur != null) { - _this2.props.onBlur(event); - } - }, - onFocus: function onFocus(event) { - if (_Platform.default.isTV) { - _this2._showUnderlay(); - } - if (_this2.props.onFocus != null) { - _this2.props.onFocus(event); - } - }, - onLongPress: this.props.onLongPress, - onPress: function onPress(event) { - if (_this2._hideTimeout != null) { - clearTimeout(_this2._hideTimeout); - } - if (!_Platform.default.isTV) { - var _this2$props$delayPre; - _this2._showUnderlay(); - _this2._hideTimeout = setTimeout(function () { - _this2._hideUnderlay(); - }, (_this2$props$delayPre = _this2.props.delayPressOut) != null ? _this2$props$delayPre : 0); - } - if (_this2.props.onPress != null) { - _this2.props.onPress(event); - } - }, - onPressIn: function onPressIn(event) { - if (_this2._hideTimeout != null) { - clearTimeout(_this2._hideTimeout); - _this2._hideTimeout = null; - } - _this2._showUnderlay(); - if (_this2.props.onPressIn != null) { - _this2.props.onPressIn(event); - } - }, - onPressOut: function onPressOut(event) { - if (_this2._hideTimeout == null) { - _this2._hideUnderlay(); - } - if (_this2.props.onPressOut != null) { - _this2.props.onPressOut(event); - } - } - }; + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; } - }, { - key: "_createExtraStyles", - value: function _createExtraStyles() { - var _this$props$activeOpa; - return { - child: { - opacity: (_this$props$activeOpa = this.props.activeOpacity) != null ? _this$props$activeOpa : 0.85 - }, - underlay: { - backgroundColor: this.props.underlayColor === undefined ? 'black' : this.props.underlayColor + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function updateHostContainer() {}; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { + current.memoizedProps !== newProps && (requiredContext(contextStackCursor$1.current), workInProgress.updateQueue = UPDATE_SIGNAL) && (workInProgress.flags |= 4); + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText && (workInProgress.flags |= 4); + }; + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + hasRenderedATailFallback = renderState.tail; + for (var lastTailNode = null; null !== hasRenderedATailFallback;) null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; + break; + case "collapsed": + lastTailNode = renderState.tail; + for (var lastTailNode$62 = null; null !== lastTailNode;) null !== lastTailNode.alternate && (lastTailNode$62 = lastTailNode), lastTailNode = lastTailNode.sibling; + null === lastTailNode$62 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$62.sibling = null; + } + } + function bubbleProperties(completedWork) { + var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, + newChildLanes = 0, + subtreeFlags = 0; + if (didBailout) for (var child$63 = completedWork.child; null !== child$63;) newChildLanes |= child$63.lanes | child$63.childLanes, subtreeFlags |= child$63.subtreeFlags & 14680064, subtreeFlags |= child$63.flags & 14680064, child$63.return = completedWork, child$63 = child$63.sibling;else for (child$63 = completedWork.child; null !== child$63;) newChildLanes |= child$63.lanes | child$63.childLanes, subtreeFlags |= child$63.subtreeFlags, subtreeFlags |= child$63.flags, child$63.return = completedWork, child$63 = child$63.sibling; + completedWork.subtreeFlags |= subtreeFlags; + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return bubbleProperties(workInProgress), null; + case 1: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 3: + return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 5: + popHostContext(workInProgress); + renderLanes = requiredContext(rootInstanceStackCursor.current); + var type = workInProgress.type; + if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { + if (!newProps) { + if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + bubbleProperties(workInProgress); + return null; } - }; - } - }, { - key: "_showUnderlay", - value: function _showUnderlay() { - if (!this._isMounted || !this._hasPressHandler()) { - return; - } - this.setState({ - extraStyles: this._createExtraStyles() - }); - if (this.props.onShowUnderlay != null) { - this.props.onShowUnderlay(); + requiredContext(contextStackCursor$1.current); + current = allocateTag(); + type = getViewConfigForType(type); + var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(current, type.uiViewClassName, renderLanes, updatePayload); + renderLanes = new ReactNativeFiberHostComponent(current, type, workInProgress); + instanceCache.set(current, workInProgress); + instanceProps.set(current, newProps); + appendAllChildren(renderLanes, workInProgress, !1, !1); + workInProgress.stateNode = renderLanes; + finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4); + null !== workInProgress.ref && (workInProgress.flags |= 512); } - } - }, { - key: "_hideUnderlay", - value: function _hideUnderlay() { - if (this._hideTimeout != null) { - clearTimeout(this._hideTimeout); - this._hideTimeout = null; + bubbleProperties(workInProgress); + return null; + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + current = requiredContext(rootInstanceStackCursor.current); + if (!requiredContext(contextStackCursor$1.current).isInAParentText) throw Error("Text strings must be rendered within a component."); + renderLanes = allocateTag(); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.createView(renderLanes, "RCTRawText", current, { + text: newProps + }); + instanceCache.set(renderLanes, workInProgress); + workInProgress.stateNode = renderLanes; } - if (this.props.testOnly_pressed === true) { - return; + bubbleProperties(workInProgress); + return null; + case 13: + pop(suspenseStackCursor); + newProps = workInProgress.memoizedState; + if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { + if (null !== newProps && null !== newProps.dehydrated) { + if (null === current) { + throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); + workInProgress.flags |= 4; + bubbleProperties(workInProgress); + type = !1; + } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; + if (!type) return workInProgress.flags & 65536 ? workInProgress : null; } - if (this._hasPressHandler()) { - this.setState({ - extraStyles: null - }); - if (this.props.onHideUnderlay != null) { - this.props.onHideUnderlay(); + if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; + renderLanes = null !== newProps; + renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); + null !== workInProgress.updateQueue && (workInProgress.flags |= 4); + bubbleProperties(workInProgress); + return null; + case 4: + return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 10: + return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; + case 17: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 19: + pop(suspenseStackCursor); + type = workInProgress.memoizedState; + if (null === type) return bubbleProperties(workInProgress), null; + newProps = 0 !== (workInProgress.flags & 128); + updatePayload = type.rendering; + if (null === updatePayload) { + if (newProps) cutOffTailIfNeeded(type, !1);else { + if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { + updatePayload = findFirstSuspended(current); + if (null !== updatePayload) { + workInProgress.flags |= 128; + cutOffTailIfNeeded(type, !1); + current = updatePayload.updateQueue; + null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); + workInProgress.subtreeFlags = 0; + current = renderLanes; + for (renderLanes = workInProgress.child; null !== renderLanes;) newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { + lanes: type.lanes, + firstContext: type.firstContext + }), renderLanes = renderLanes.sibling; + push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); + return workInProgress.child; + } + current = current.sibling; + } + null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); } + } else { + if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { + if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; + } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); } - } - }, { - key: "_hasPressHandler", - value: function _hasPressHandler() { - return this.props.onPress != null || this.props.onPressIn != null || this.props.onPressOut != null || this.props.onLongPress != null; - } - }, { - key: "render", - value: function render() { - var _this$state$extraStyl, _this$state$extraStyl2; - var child = React.Children.only(this.props.children); - - var _this$state$pressabil = this.state.pressability.getEventHandlers(), - onBlur = _this$state$pressabil.onBlur, - onFocus = _this$state$pressabil.onFocus, - eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); - var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { - disabled: this.props.disabled - }) : this.props.accessibilityState; - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_View.default, Object.assign({ - accessible: this.props.accessible !== false, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityHint: this.props.accessibilityHint, - accessibilityLanguage: this.props.accessibilityLanguage, - accessibilityRole: this.props.accessibilityRole, - accessibilityState: accessibilityState, - accessibilityValue: this.props.accessibilityValue, - accessibilityActions: this.props.accessibilityActions, - onAccessibilityAction: this.props.onAccessibilityAction, - importantForAccessibility: this.props.importantForAccessibility, - accessibilityLiveRegion: this.props.accessibilityLiveRegion, - accessibilityViewIsModal: this.props.accessibilityViewIsModal, - accessibilityElementsHidden: this.props.accessibilityElementsHidden, - style: _StyleSheet.default.compose(this.props.style, (_this$state$extraStyl = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl.underlay), - onLayout: this.props.onLayout, - hitSlop: this.props.hitSlop, - hasTVPreferredFocus: this.props.hasTVPreferredFocus, - nextFocusDown: this.props.nextFocusDown, - nextFocusForward: this.props.nextFocusForward, - nextFocusLeft: this.props.nextFocusLeft, - nextFocusRight: this.props.nextFocusRight, - nextFocusUp: this.props.nextFocusUp, - focusable: this.props.focusable !== false && this.props.onPress !== undefined, - nativeID: this.props.nativeID, - testID: this.props.testID, - ref: this.props.hostRef - }, eventHandlersWithoutBlurAndFocus, { - children: [React.cloneElement(child, { - style: _StyleSheet.default.compose(child.props.style, (_this$state$extraStyl2 = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl2.child) - }), __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: "green", - hitSlop: this.props.hitSlop - }) : null] - })); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._isMounted = true; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState) { - this.state.pressability.configure(this._createPressabilityConfig()); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._isMounted = false; - if (this._hideTimeout != null) { - clearTimeout(this._hideTimeout); + if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; + bubbleProperties(workInProgress); + return null; + case 22: + case 23: + return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), null; + case 24: + return null; + case 25: + return null; + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function unwindWork(current, workInProgress) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 1: + return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 3: + return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 5: + return popHostContext(workInProgress), null; + case 13: + pop(suspenseStackCursor); + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + current = workInProgress.flags; + return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 19: + return pop(suspenseStackCursor), null; + case 4: + return popHostContainer(), null; + case 10: + return popProvider(workInProgress.type._context), null; + case 22: + case 23: + return popRenderLanes(), null; + case 24: + return null; + default: + return null; + } + } + var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, + nextEffect = null; + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } else ref.current = null; + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var shouldFireAfterActiveInstanceBlur = !1; + function commitBeforeMutationEffects(root, firstChild) { + for (nextEffect = firstChild; null !== nextEffect;) if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { + root = nextEffect; + try { + var current = root.alternate; + if (0 !== (root.flags & 1024)) switch (root.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = root.stateNode, + snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + case 3: + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + 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."); } - this.state.pressability.reset(); + } catch (error) { + captureCommitPhaseError(root, root.return, error); } - }]); - return TouchableHighlight; - }(React.Component); - var Touchable = React.forwardRef(function (props, hostRef) { - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(TouchableHighlight, Object.assign({}, props, { - hostRef: hostRef - })); - }); - Touchable.displayName = 'TouchableHighlight'; - module.exports = Touchable; -},369,[3,132,12,13,50,47,46,259,244,14,245,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function openFileInEditor(file, lineNumber) { - fetch(_$$_REQUIRE(_dependencyMap[0], "./getDevServer")().url + 'open-stack-frame', { - method: 'POST', - body: JSON.stringify({ - file: file, - lineNumber: lineNumber - }) - }); - } - module.exports = openFileInEditor; -},370,[66],"node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); - var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Pressability/Pressability")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Components/View/View")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); - var _excluded = ["onBlur", "onFocus"]; - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var PASSTHROUGH_PROPS = ['accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityLanguage', 'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLiveRegion', 'accessibilityRole', 'accessibilityValue', 'accessibilityViewIsModal', 'hitSlop', 'importantForAccessibility', 'nativeID', 'onAccessibilityAction', 'onBlur', 'onFocus', 'onLayout', 'testID']; - var TouchableWithoutFeedback = function (_React$Component) { - (0, _inherits2.default)(TouchableWithoutFeedback, _React$Component); - var _super = _createSuper(TouchableWithoutFeedback); - function TouchableWithoutFeedback() { - var _this; - (0, _classCallCheck2.default)(this, TouchableWithoutFeedback); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + firstChild = root.sibling; + if (null !== firstChild) { + firstChild.return = root.return; + nextEffect = firstChild; + break; } - _this = _super.call.apply(_super, [this].concat(args)); - _this.state = { - pressability: new _Pressability.default(createPressabilityConfig(_this.props)) - }; - return _this; + nextEffect = root.return; } - (0, _createClass2.default)(TouchableWithoutFeedback, [{ - key: "render", - value: function render() { - var element = React.Children.only(this.props.children); - var children = [element.props.children]; - if (__DEV__) { - if (element.type === _View.default) { - children.push((0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: "red", - hitSlop: this.props.hitSlop - })); - } + current = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = !1; + return current; + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; + if (null !== updateQueue) { + var effect = updateQueue = updateQueue.next; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = void 0; + void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); } - - var _this$state$pressabil = this.state.pressability.getEventHandlers(), - onBlur = _this$state$pressabil.onBlur, - onFocus = _this$state$pressabil.onFocus, - eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); - var elementProps = Object.assign({}, eventHandlersWithoutBlurAndFocus, { - accessible: this.props.accessible !== false, - accessibilityState: this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { - disabled: this.props.disabled - }) : this.props.accessibilityState, - focusable: this.props.focusable !== false && this.props.onPress !== undefined - }); - for (var prop of PASSTHROUGH_PROPS) { - if (this.props[prop] !== undefined) { - elementProps[prop] = this.props[prop]; - } + effect = effect.next; + } while (effect !== updateQueue); + } + } + function commitHookEffectListMount(flags, finishedWork) { + finishedWork = finishedWork.updateQueue; + finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; + if (null !== finishedWork) { + var effect = finishedWork = finishedWork.next; + do { + if ((effect.tag & flags) === flags) { + var create$75 = effect.create; + effect.destroy = create$75(); } - return React.cloneElement.apply(React, [element, elementProps].concat(children)); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - this.state.pressability.configure(createPressabilityConfig(this.props)); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.state.pressability.reset(); - } - }]); - return TouchableWithoutFeedback; - }(React.Component); - function createPressabilityConfig(props) { - var _props$accessibilityS; - return { - cancelable: !props.rejectResponderTermination, - disabled: props.disabled !== null ? props.disabled : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled, - hitSlop: props.hitSlop, - delayLongPress: props.delayLongPress, - delayPressIn: props.delayPressIn, - delayPressOut: props.delayPressOut, - minPressDuration: 0, - pressRectOffset: props.pressRetentionOffset, - android_disableSound: props.touchSoundDisabled, - onBlur: props.onBlur, - onFocus: props.onFocus, - onLongPress: props.onLongPress, - onPress: props.onPress, - onPressIn: props.onPressIn, - onPressOut: props.onPressOut - }; + effect = effect.next; + } while (effect !== finishedWork); + } } - TouchableWithoutFeedback.displayName = 'TouchableWithoutFeedback'; - module.exports = TouchableWithoutFeedback; -},371,[3,132,12,13,50,47,46,259,245,36,73,256],"node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function mapWithSeparator(items, itemRenderer, spacerRenderer) { - var mapped = []; - if (items.length > 0) { - mapped.push(itemRenderer(items[0], 0, items)); - for (var ii = 1; ii < items.length; ii++) { - mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items)); + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + fiber.stateNode = null; + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + fiber.updateQueue = null; + } + function isHostParent(fiber) { + return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; + } + function getHostSibling(fiber) { + a: for (;;) { + for (; null === fiber.sibling;) { + if (null === fiber.return || isHostParent(fiber.return)) return null; + fiber = fiber.return; + } + fiber.sibling.return = fiber.return; + for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;) { + if (fiber.flags & 2) continue a; + if (null === fiber.child || 4 === fiber.tag) continue a;else fiber.child.return = fiber, fiber = fiber.child; } + if (!(fiber.flags & 2)) return fiber.stateNode; } - return mapped; } - module.exports = mapWithSeparator; -},372,[],"node_modules/react-native/Libraries/Utilities/mapWithSeparator.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/StyleInspector.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var StyleInspector = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(StyleInspector, _React$Component); - var _super = _createSuper(StyleInspector); - function StyleInspector() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, StyleInspector); - return _super.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(StyleInspector, [{ - key: "render", - value: function render() { - var _this = this; - if (!this.props.style) { - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.noStyle, - children: "No style" - }); + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + if (5 === tag || 6 === tag) { + if (node = node.stateNode, before) { + if ("number" === typeof parent) throw Error("Container does not support insertBefore operation"); + } else _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setChildren(parent, ["number" === typeof node ? node : node._nativeTag]); + } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node;) insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; + } + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + if (5 === tag || 6 === tag) { + if (node = node.stateNode, before) { + tag = parent._children; + var index = tag.indexOf(node); + 0 <= index ? (tag.splice(index, 1), before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [before], [], [], [])) : (before = tag.indexOf(before), tag.splice(before, 0, node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], ["number" === typeof node ? node : node._nativeTag], [before], [])); + } else before = "number" === typeof node ? node : node._nativeTag, tag = parent._children, index = tag.indexOf(node), 0 <= index ? (tag.splice(index, 1), tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [index], [tag.length - 1], [], [], [])) : (tag.push(node), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(parent._nativeTag, [], [], [before], [tag.length - 1], [])); + } else if (4 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node;) insertOrAppendPlacementNode(node, before, parent), node = node.sibling; + } + var hostParent = null, + hostParentIsContainer = !1; + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + for (parent = parent.child; null !== parent;) commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { + injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); + } catch (err) {} + switch (deletedFiber.tag) { + case 5: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + case 6: + var prevHostParent = hostParent, + prevHostParentIsContainer = hostParentIsContainer; + hostParent = null; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, recursivelyUncacheFiberNode(deletedFiber.stateNode), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot, [], [], [], [], [0])) : (finishedRoot = hostParent, nearestMountedAncestor = deletedFiber.stateNode, recursivelyUncacheFiberNode(nearestMountedAncestor), deletedFiber = finishedRoot._children, nearestMountedAncestor = deletedFiber.indexOf(nearestMountedAncestor), deletedFiber.splice(nearestMountedAncestor, 1), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.manageChildren(finishedRoot._nativeTag, [], [], [], [], [nearestMountedAncestor]))); + break; + case 18: + null !== hostParent && shim(hostParent, deletedFiber.stateNode); + break; + case 4: + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; + hostParent = deletedFiber.stateNode.containerInfo; + hostParentIsContainer = !0; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + break; + case 0: + case 11: + case 14: + case 15: + prevHostParent = deletedFiber.updateQueue; + if (null !== prevHostParent && (prevHostParent = prevHostParent.lastEffect, null !== prevHostParent)) { + prevHostParentIsContainer = prevHostParent = prevHostParent.next; + do { + var _effect = prevHostParentIsContainer, + destroy = _effect.destroy; + _effect = _effect.tag; + void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); + prevHostParentIsContainer = prevHostParentIsContainer.next; + } while (prevHostParentIsContainer !== prevHostParent); } - var names = Object.keys(this.props.style); - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.container, - children: [_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - children: names.map(function (name) { - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.attr, - children: [name, ":"] - }, name); - }) - }), _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - children: names.map(function (name) { - var value = _this.props.style[name]; - return _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { - style: styles.value, - children: typeof value !== 'string' && typeof value !== 'number' ? JSON.stringify(value) : value - }, name); - }) - })] - }); - } - }]); - return StyleInspector; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/StyleSheet").create({ - container: { - flexDirection: 'row' - }, - attr: { - fontSize: 10, - color: '#ccc' - }, - value: { - fontSize: 10, - color: 'white', - marginLeft: 10 - }, - noStyle: { - color: 'white', - fontSize: 10 - } - }); - module.exports = StyleInspector; -},373,[46,47,36,50,12,13,73,255,245,244],"node_modules/react-native/Libraries/Inspector/StyleInspector.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/BoxInspector.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var blank = { - top: 0, - left: 0, - right: 0, - bottom: 0 - }; - var BoxInspector = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxInspector, _React$Component); - var _super = _createSuper(BoxInspector); - function BoxInspector() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxInspector); - return _super.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxInspector, [{ - key: "render", - value: function render() { - var frame = this.props.frame; - var style = this.props.style; - var margin = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('margin', style) || blank; - var padding = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('padding', style) || blank; - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { - title: "margin", - titleStyle: styles.marginLabel, - box: margin, - children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { - title: "padding", - box: padding, - children: _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.innerText, - children: ["(", (frame.left || 0).toFixed(1), ", ", (frame.top || 0).toFixed(1), ")"] - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.innerText, - children: [(frame.width || 0).toFixed(1), " \xD7", ' ', (frame.height || 0).toFixed(1)] - })] - }) - }) - }); - } - }]); - return BoxInspector; - }(React.Component); - var BoxContainer = function (_React$Component2) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxContainer, _React$Component2); - var _super2 = _createSuper(BoxContainer); - function BoxContainer() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxContainer); - return _super2.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxContainer, [{ - key: "render", - value: function render() { - var box = this.props.box; - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.box, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.row, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: [this.props.titleStyle, styles.label], - children: this.props.title - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.boxText, - children: box.top - })] - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.row, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.boxText, - children: box.left - }), this.props.children, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.boxText, - children: box.right - })] - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: styles.boxText, - children: box.bottom - })] - }); - } - }]); - return BoxContainer; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ - row: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-around' - }, - marginLabel: { - width: 60 - }, - label: { - fontSize: 10, - color: 'rgb(255,100,0)', - marginLeft: 5, - flex: 1, - textAlign: 'left', - top: -3 - }, - innerText: { - color: 'yellow', - fontSize: 12, - textAlign: 'center', - width: 70 - }, - box: { - borderWidth: 1, - borderColor: 'grey' - }, - boxText: { - color: 'white', - fontSize: 12, - marginHorizontal: 3, - marginVertical: 2, - textAlign: 'center' - } - }); - module.exports = BoxInspector; -},374,[46,47,36,50,12,13,363,73,245,255,244],"node_modules/react-native/Libraries/Inspector/BoxInspector.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var PerformanceOverlay = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(PerformanceOverlay, _React$Component); - var _super = _createSuper(PerformanceOverlay); - function PerformanceOverlay() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, PerformanceOverlay); - return _super.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(PerformanceOverlay, [{ - key: "render", - value: function render() { - var perfLogs = _$$_REQUIRE(_dependencyMap[6], "../Utilities/GlobalPerformanceLogger").getTimespans(); - var items = []; - for (var key in perfLogs) { - var _perfLogs$key; - if ((_perfLogs$key = perfLogs[key]) != null && _perfLogs$key.totalTime) { - var unit = key === 'BundleSize' ? 'b' : 'ms'; - items.push(_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.row, - children: [_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: [styles.text, styles.label], - children: key - }), _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { - style: [styles.text, styles.totalTime], - children: perfLogs[key].totalTime + unit - })] - }, key)); - } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 1: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + prevHostParent = deletedFiber.stateNode; + if ("function" === typeof prevHostParent.componentWillUnmount) try { + prevHostParent.props = deletedFiber.memoizedProps, prevHostParent.state = deletedFiber.memoizedState, prevHostParent.componentWillUnmount(); + } catch (error) { + captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); } - return _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { - style: styles.container, - children: items - }); - } - }]); - return PerformanceOverlay; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ - container: { - height: 100, - paddingTop: 10 - }, - label: { - flex: 1 - }, - row: { - flexDirection: 'row', - paddingHorizontal: 10 - }, - text: { - color: 'white', - fontSize: 12 - }, - totalTime: { - paddingRight: 100 - } - }); - module.exports = PerformanceOverlay; -},375,[46,47,36,50,12,13,122,73,245,255,244],"node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"; - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var LISTVIEW_CELL_HEIGHT = 15; - - var nextXHRId = 0; - function getStringByValue(value) { - if (value === undefined) { - return 'undefined'; - } - if (typeof value === 'object') { - return JSON.stringify(value); - } - if (typeof value === 'string' && value.length > 500) { - return String(value).substr(0, 500).concat('\n***TRUNCATED TO 500 CHARACTERS***'); + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 21: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 22: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + default: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); } - return value; } - function getTypeShortName(type) { - if (type === 'XMLHttpRequest') { - return 'XHR'; - } else if (type === 'WebSocket') { - return 'WS'; + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (null !== wakeables) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); + }); } - return ''; - } - function keyExtractor(request) { - return String(request.id); } - - var NetworkOverlay = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(NetworkOverlay, _React$Component); - var _super = _createSuper(NetworkOverlay); - function NetworkOverlay() { - var _this; - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, NetworkOverlay); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._requestsListViewScrollMetrics = { - offset: 0, - visibleLength: 0, - contentLength: 0 - }; - _this._socketIdMap = {}; - _this._xhrIdMap = {}; - _this.state = { - detailRowId: null, - requests: [] - }; - _this._renderItem = function (_ref) { - var item = _ref.item, - index = _ref.index; - var tableRowViewStyle = [styles.tableRow, index % 2 === 1 ? styles.tableRowOdd : styles.tableRowEven, index === _this.state.detailRowId && styles.tableRowPressed]; - var urlCellViewStyle = styles.urlCellView; - var methodCellViewStyle = styles.methodCellView; - return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { - onPress: function onPress() { - _this._pressRow(index); - }, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: tableRowViewStyle, - children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: urlCellViewStyle, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: styles.cellText, - numberOfLines: 1, - children: item.url - }) - }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: methodCellViewStyle, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: styles.cellText, - numberOfLines: 1, - children: getTypeShortName(item.type) - }) - })] - }) - }) - }); - }; - _this._indicateAdditionalRequests = function () { - if (_this._requestsListView) { - var distanceFromEndThreshold = LISTVIEW_CELL_HEIGHT * 2; - var _this$_requestsListVi = _this._requestsListViewScrollMetrics, - offset = _this$_requestsListVi.offset, - visibleLength = _this$_requestsListVi.visibleLength, - contentLength = _this$_requestsListVi.contentLength; - var distanceFromEnd = contentLength - visibleLength - offset; - var isCloseToEnd = distanceFromEnd <= distanceFromEndThreshold; - if (isCloseToEnd) { - _this._requestsListView.scrollToEnd(); - } else { - _this._requestsListView.flashScrollIndicators(); + function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { + var deletions = parentFiber.deletions; + if (null !== deletions) for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + var root = root$jscomp$0, + returnFiber = parentFiber, + parent = returnFiber; + a: for (; null !== parent;) { + switch (parent.tag) { + case 5: + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + case 3: + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = !0; + break a; + case 4: + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = !0; + break a; } + parent = parent.return; } - }; - _this._captureRequestsListView = function (listRef) { - _this._requestsListView = listRef; - }; - _this._requestsListViewOnScroll = function (e) { - _this._requestsListViewScrollMetrics.offset = e.nativeEvent.contentOffset.y; - _this._requestsListViewScrollMetrics.visibleLength = e.nativeEvent.layoutMeasurement.height; - _this._requestsListViewScrollMetrics.contentLength = e.nativeEvent.contentSize.height; - }; - _this._scrollDetailToTop = function () { - if (_this._detailScrollView) { - _this._detailScrollView.scrollTo({ - y: 0, - animated: false - }); - } - }; - _this._closeButtonClicked = function () { - _this.setState({ - detailRowId: null - }); - }; - return _this; + if (null === hostParent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); + hostParent = null; + hostParentIsContainer = !1; + var alternate = childToDelete.alternate; + null !== alternate && (alternate.return = null); + childToDelete.return = null; + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } } - _$$_REQUIRE(_dependencyMap[9], "@babel/runtime/helpers/createClass")(NetworkOverlay, [{ - key: "_enableXHRInterception", - value: function _enableXHRInterception() { - var _this2 = this; - if (_$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").isInterceptorEnabled()) { - return; - } - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setOpenCallback(function (method, url, xhr) { - xhr._index = nextXHRId++; - var xhrIndex = _this2.state.requests.length; - _this2._xhrIdMap[xhr._index] = xhrIndex; - var _xhr = { - id: xhrIndex, - type: 'XMLHttpRequest', - method: method, - url: url - }; - _this2.setState({ - requests: _this2.state.requests.concat(_xhr) - }, _this2._indicateAdditionalRequests); - }); - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setRequestHeaderCallback(function (header, value, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - if (xhrIndex === -1) { - return; - } - _this2.setState(function (_ref2) { - var requests = _ref2.requests; - var networkRequestInfo = requests[xhrIndex]; - if (!networkRequestInfo.requestHeaders) { - networkRequestInfo.requestHeaders = {}; - } - networkRequestInfo.requestHeaders[header] = value; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setSendCallback(function (data, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - if (xhrIndex === -1) { - return; - } - _this2.setState(function (_ref3) { - var requests = _ref3.requests; - var networkRequestInfo = requests[xhrIndex]; - networkRequestInfo.dataSent = data; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setHeaderReceivedCallback(function (type, size, responseHeaders, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - if (xhrIndex === -1) { - return; + if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; + } + function commitMutationEffectsOnFiber(finishedWork, root) { + var current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + try { + commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } - _this2.setState(function (_ref4) { - var requests = _ref4.requests; - var networkRequestInfo = requests[xhrIndex]; - networkRequestInfo.responseContentType = type; - networkRequestInfo.responseSize = size; - networkRequestInfo.responseHeaders = responseHeaders; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setResponseCallback(function (status, timeout, response, responseURL, responseType, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - if (xhrIndex === -1) { - return; + try { + commitHookEffectListUnmount(5, finishedWork, finishedWork.return); + } catch (error$85) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$85); } - _this2.setState(function (_ref5) { - var requests = _ref5.requests; - var networkRequestInfo = requests[xhrIndex]; - networkRequestInfo.status = status; - networkRequestInfo.timeout = timeout; - networkRequestInfo.response = response; - networkRequestInfo.responseURL = responseURL; - networkRequestInfo.responseType = responseType; - return { - requests: requests - }; - }); - }); - - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").enableInterception(); - } - }, { - key: "_enableWebSocketInterception", - value: function _enableWebSocketInterception() { - var _this3 = this; - if (_$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").isInterceptorEnabled()) { - return; } - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setConnectCallback(function (url, protocols, options, socketId) { - var socketIndex = _this3.state.requests.length; - _this3._socketIdMap[socketId] = socketIndex; - var _webSocket = { - id: socketIndex, - type: 'WebSocket', - url: url, - protocols: protocols - }; - _this3.setState({ - requests: _this3.state.requests.concat(_webSocket) - }, _this3._indicateAdditionalRequests); - }); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setCloseCallback(function (statusCode, closeReason, socketId) { - var socketIndex = _this3._socketIdMap[socketId]; - if (socketIndex === undefined) { - return; + break; + case 1: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 5: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + if (flags & 4) { + var instance$87 = finishedWork.stateNode; + if (null != instance$87) { + var newProps = finishedWork.memoizedProps, + oldProps = null !== current ? current.memoizedProps : newProps, + updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + if (null !== updatePayload) try { + var viewConfig = instance$87.viewConfig; + instanceProps.set(instance$87._nativeTag, newProps); + var updatePayload$jscomp$0 = diffProperties(null, oldProps, newProps, viewConfig.validAttributes); + null != updatePayload$jscomp$0 && _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$87._nativeTag, viewConfig.uiViewClassName, updatePayload$jscomp$0); + } catch (error$88) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$88); + } } - if (statusCode !== null && closeReason !== null) { - _this3.setState(function (_ref6) { - var requests = _ref6.requests; - var networkRequestInfo = requests[socketIndex]; - networkRequestInfo.status = statusCode; - networkRequestInfo.closeReason = closeReason; - return { - requests: requests - }; + } + break; + case 6: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + viewConfig = finishedWork.stateNode; + updatePayload$jscomp$0 = finishedWork.memoizedProps; + try { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(viewConfig, "RCTRawText", { + text: updatePayload$jscomp$0 }); + } catch (error$89) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$89); } - }); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setSendCallback(function (data, socketId) { - var socketIndex = _this3._socketIdMap[socketId]; - if (socketIndex === undefined) { - return; - } - _this3.setState(function (_ref7) { - var requests = _ref7.requests; - var networkRequestInfo = requests[socketIndex]; - if (!networkRequestInfo.messages) { - networkRequestInfo.messages = ''; + } + break; + case 3: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 4: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 13: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + viewConfig = finishedWork.child; + viewConfig.flags & 8192 && (updatePayload$jscomp$0 = null !== viewConfig.memoizedState, viewConfig.stateNode.isHidden = updatePayload$jscomp$0, !updatePayload$jscomp$0 || null !== viewConfig.alternate && null !== viewConfig.alternate.memoizedState || (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now())); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 22: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 8192) a: for (viewConfig = null !== finishedWork.memoizedState, finishedWork.stateNode.isHidden = viewConfig, updatePayload$jscomp$0 = null, current = finishedWork;;) { + if (5 === current.tag) { + if (null === updatePayload$jscomp$0) { + updatePayload$jscomp$0 = current; + try { + if (instance$87 = current.stateNode, viewConfig) newProps = instance$87.viewConfig, oldProps = diffProperties(null, emptyObject, { + style: { + display: "none" + } + }, newProps.validAttributes), _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(instance$87._nativeTag, newProps.uiViewClassName, oldProps);else { + updatePayload = current.stateNode; + var props = current.memoizedProps, + viewConfig$jscomp$0 = updatePayload.viewConfig, + prevProps = assign({}, props, { + style: [props.style, { + display: "none" + }] + }); + var updatePayload$jscomp$1 = diffProperties(null, prevProps, props, viewConfig$jscomp$0.validAttributes); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.updateView(updatePayload._nativeTag, viewConfig$jscomp$0.uiViewClassName, updatePayload$jscomp$1); + } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } } - networkRequestInfo.messages += 'Sent: ' + JSON.stringify(data) + '\n'; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnMessageCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - if (socketIndex === undefined) { - return; - } - _this3.setState(function (_ref8) { - var requests = _ref8.requests; - var networkRequestInfo = requests[socketIndex]; - if (!networkRequestInfo.messages) { - networkRequestInfo.messages = ''; + } else if (6 === current.tag) { + if (null === updatePayload$jscomp$0) try { + throw Error("Not yet implemented."); + } catch (error$80) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$80); } - networkRequestInfo.messages += 'Received: ' + JSON.stringify(message) + '\n'; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnCloseCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - if (socketIndex === undefined) { - return; + } else if ((22 !== current.tag && 23 !== current.tag || null === current.memoizedState || current === finishedWork) && null !== current.child) { + current.child.return = current; + current = current.child; + continue; } - _this3.setState(function (_ref9) { - var requests = _ref9.requests; - var networkRequestInfo = requests[socketIndex]; - networkRequestInfo.serverClose = message; - return { - requests: requests - }; - }); - }); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnErrorCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - if (socketIndex === undefined) { - return; + if (current === finishedWork) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === finishedWork) break a; + updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); + current = current.return; } - _this3.setState(function (_ref10) { - var requests = _ref10.requests; - var networkRequestInfo = requests[socketIndex]; - networkRequestInfo.serverError = message; - return { - requests: requests - }; - }); - }); - - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").enableInterception(); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._enableXHRInterception(); - this._enableWebSocketInterception(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").disableInterception(); - _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").disableInterception(); - } - }, { - key: "_renderItemDetail", - value: function _renderItemDetail(id) { - var _this4 = this; - var requestItem = this.state.requests[id]; - var details = Object.keys(requestItem).map(function (key) { - if (key === 'id') { - return; + updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null); + current.sibling.return = current.return; + current = current.sibling; + } + break; + case 19: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 21: + break; + default: + recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + if (flags & 2) { + try { + a: { + for (var parent = finishedWork.return; null !== parent;) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; + } + parent = parent.return; } - return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.detailViewRow, - children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: [styles.detailViewText, styles.detailKeyCellView], - children: key - }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: [styles.detailViewText, styles.detailValueCellView], - children: getStringByValue(requestItem[key]) - })] - }, key); - }); - return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { - style: styles.closeButton, - onPress: this._closeButtonClicked, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: styles.closeButtonText, - children: "v" - }) - }) - }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), { - style: styles.detailScrollView, - ref: function ref(scrollRef) { - return _this4._detailScrollView = scrollRef; - }, - children: details - })] - }); - } - }, { - key: "_pressRow", - value: - function _pressRow(rowId) { - this.setState({ - detailRowId: rowId - }, this._scrollDetailToTop); - } - }, { - key: "_getRequestIndexByXHRID", - value: function _getRequestIndexByXHRID(index) { - if (index === undefined) { - return -1; + throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); } - var xhrIndex = this._xhrIdMap[index]; - if (xhrIndex === undefined) { - return -1; - } else { - return xhrIndex; + switch (JSCompiler_inline_result.tag) { + case 5: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && (JSCompiler_inline_result.flags &= -33); + var before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 3: + case 4: + var parent$81 = JSCompiler_inline_result.stateNode.containerInfo, + before$82 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer(finishedWork, before$82, parent$81); + break; + default: + throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); } + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } - }, { - key: "render", - value: function render() { - var _this$state = this.state, - requests = _this$state.requests, - detailRowId = _this$state.detailRowId; - return _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.container, - children: [detailRowId != null && this._renderItemDetail(detailRowId), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.listViewTitle, - children: requests.length > 0 && _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.tableRow, - children: [_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.urlTitleCellView, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: styles.cellText, - numberOfLines: 1, - children: "URL" - }) - }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { - style: styles.methodTitleCellView, - children: _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { - style: styles.cellText, - numberOfLines: 1, - children: "Type" - }) - })] - }) - }), _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Lists/FlatList"), { - ref: this._captureRequestsListView, - onScroll: this._requestsListViewOnScroll, - style: styles.listView, - data: requests, - renderItem: this._renderItem, - keyExtractor: keyExtractor, - extraData: this.state - })] - }); - } - }]); - return NetworkOverlay; - }(React.Component); - var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ - container: { - paddingTop: 10, - paddingBottom: 10, - paddingLeft: 5, - paddingRight: 5 - }, - listViewTitle: { - height: 20 - }, - listView: { - flex: 1, - height: 60 - }, - tableRow: { - flexDirection: 'row', - flex: 1, - height: LISTVIEW_CELL_HEIGHT - }, - tableRowEven: { - backgroundColor: '#555' - }, - tableRowOdd: { - backgroundColor: '#000' - }, - tableRowPressed: { - backgroundColor: '#3B5998' - }, - cellText: { - color: 'white', - fontSize: 12 - }, - methodTitleCellView: { - height: 18, - borderColor: '#DCD7CD', - borderTopWidth: 1, - borderBottomWidth: 1, - borderRightWidth: 1, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#444', - flex: 1 - }, - urlTitleCellView: { - height: 18, - borderColor: '#DCD7CD', - borderTopWidth: 1, - borderBottomWidth: 1, - borderLeftWidth: 1, - borderRightWidth: 1, - justifyContent: 'center', - backgroundColor: '#444', - flex: 5, - paddingLeft: 3 - }, - methodCellView: { - height: 15, - borderColor: '#DCD7CD', - borderRightWidth: 1, - alignItems: 'center', - justifyContent: 'center', - flex: 1 - }, - urlCellView: { - height: 15, - borderColor: '#DCD7CD', - borderLeftWidth: 1, - borderRightWidth: 1, - justifyContent: 'center', - flex: 5, - paddingLeft: 3 - }, - detailScrollView: { - flex: 1, - height: 180, - marginTop: 5, - marginBottom: 5 - }, - detailKeyCellView: { - flex: 1.3 - }, - detailValueCellView: { - flex: 2 - }, - detailViewRow: { - flexDirection: 'row', - paddingHorizontal: 3 - }, - detailViewText: { - color: 'white', - fontSize: 11 - }, - closeButtonText: { - color: 'white', - fontSize: 10 - }, - closeButton: { - marginTop: 5, - backgroundColor: '#888', - justifyContent: 'center', - alignItems: 'center' + finishedWork.flags &= -3; } - }); - module.exports = NetworkOverlay; -},376,[46,47,36,50,12,73,369,245,255,13,377,378,310,305,244],"node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var originalXHROpen = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open; - var originalXHRSend = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send; - var originalXHRSetRequestHeader = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader; - var openCallback; - var sendCallback; - var requestHeaderCallback; - var headerReceivedCallback; - var responseCallback; - var _isInterceptorEnabled = false; - - var XHRInterceptor = { - setOpenCallback: function setOpenCallback(callback) { - openCallback = callback; - }, - setSendCallback: function setSendCallback(callback) { - sendCallback = callback; - }, - setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) { - headerReceivedCallback = callback; - }, - setResponseCallback: function setResponseCallback(callback) { - responseCallback = callback; - }, - setRequestHeaderCallback: function setRequestHeaderCallback(callback) { - requestHeaderCallback = callback; - }, - isInterceptorEnabled: function isInterceptorEnabled() { - return _isInterceptorEnabled; - }, - enableInterception: function enableInterception() { - if (_isInterceptorEnabled) { - return; - } - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = function (method, url) { - if (openCallback) { - openCallback(method, url, this); - } - originalXHROpen.apply(this, arguments); - }; - - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = function (header, value) { - if (requestHeaderCallback) { - requestHeaderCallback(header, value, this); - } - originalXHRSetRequestHeader.apply(this, arguments); - }; - - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = function (data) { - var _this = this; - if (sendCallback) { - sendCallback(data, this); - } - if (this.addEventListener) { - this.addEventListener('readystatechange', function () { - if (!_isInterceptorEnabled) { - return; - } - if (_this.readyState === _this.HEADERS_RECEIVED) { - var contentTypeString = _this.getResponseHeader('Content-Type'); - var contentLengthString = _this.getResponseHeader('Content-Length'); - var responseContentType, responseSize; - if (contentTypeString) { - responseContentType = contentTypeString.split(';')[0]; - } - if (contentLengthString) { - responseSize = parseInt(contentLengthString, 10); - } - if (headerReceivedCallback) { - headerReceivedCallback(responseContentType, responseSize, _this.getAllResponseHeaders(), _this); - } + flags & 4096 && (finishedWork.flags &= -4097); + } + function commitLayoutEffects(finishedWork) { + for (nextEffect = finishedWork; null !== nextEffect;) { + var fiber = nextEffect, + firstChild = fiber.child; + if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { + firstChild = nextEffect; + if (0 !== (firstChild.flags & 8772)) { + var current = firstChild.alternate; + try { + if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(5, firstChild); + break; + case 1: + var instance = firstChild.stateNode; + if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { + var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); + instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = firstChild.updateQueue; + null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); + break; + case 3: + var updateQueue$76 = firstChild.updateQueue; + if (null !== updateQueue$76) { + current = null; + if (null !== firstChild.child) switch (firstChild.child.tag) { + case 5: + current = firstChild.child.stateNode; + break; + case 1: + current = firstChild.child.stateNode; + } + commitUpdateQueue(firstChild, updateQueue$76, current); + } + break; + case 5: + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + 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 (_this.readyState === _this.DONE) { - if (responseCallback) { - responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this); + if (firstChild.flags & 512) { + current = void 0; + var ref = firstChild.ref; + if (null !== ref) { + var instance$jscomp$0 = firstChild.stateNode; + switch (firstChild.tag) { + case 5: + current = instance$jscomp$0; + break; + default: + current = instance$jscomp$0; + } + "function" === typeof ref ? ref(current) : ref.current = current; } } - }, false); - } - originalXHRSend.apply(this, arguments); - }; - _isInterceptorEnabled = true; - }, - disableInterception: function disableInterception() { - if (!_isInterceptorEnabled) { - return; - } - _isInterceptorEnabled = false; - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = originalXHRSend; - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = originalXHROpen; - _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = originalXHRSetRequestHeader; - responseCallback = null; - openCallback = null; - sendCallback = null; - headerReceivedCallback = null; - requestHeaderCallback = null; - } - }; - module.exports = XHRInterceptor; -},377,[114],"node_modules/react-native/Libraries/Network/XHRInterceptor.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); - var _NativeWebSocketModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeWebSocketModule")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Utilities/Platform")); - var _base64Js = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "base64-js")); - - var originalRCTWebSocketConnect = _NativeWebSocketModule.default.connect; - var originalRCTWebSocketSend = _NativeWebSocketModule.default.send; - var originalRCTWebSocketSendBinary = _NativeWebSocketModule.default.sendBinary; - var originalRCTWebSocketClose = _NativeWebSocketModule.default.close; - var eventEmitter; - var subscriptions; - var closeCallback; - var sendCallback; - var connectCallback; - var onOpenCallback; - var onMessageCallback; - var onErrorCallback; - var onCloseCallback; - var _isInterceptorEnabled = false; - - var WebSocketInterceptor = { - setCloseCallback: function setCloseCallback(callback) { - closeCallback = callback; - }, - setSendCallback: function setSendCallback(callback) { - sendCallback = callback; - }, - setConnectCallback: function setConnectCallback(callback) { - connectCallback = callback; - }, - setOnOpenCallback: function setOnOpenCallback(callback) { - onOpenCallback = callback; - }, - setOnMessageCallback: function setOnMessageCallback(callback) { - onMessageCallback = callback; - }, - setOnErrorCallback: function setOnErrorCallback(callback) { - onErrorCallback = callback; - }, - setOnCloseCallback: function setOnCloseCallback(callback) { - onCloseCallback = callback; - }, - isInterceptorEnabled: function isInterceptorEnabled() { - return _isInterceptorEnabled; - }, - _unregisterEvents: function _unregisterEvents() { - subscriptions.forEach(function (e) { - return e.remove(); - }); - subscriptions = []; - }, - _registerEvents: function _registerEvents() { - subscriptions = [eventEmitter.addListener('websocketMessage', function (ev) { - if (onMessageCallback) { - onMessageCallback(ev.id, ev.type === 'binary' ? WebSocketInterceptor._arrayBufferToString(ev.data) : ev.data); - } - }), eventEmitter.addListener('websocketOpen', function (ev) { - if (onOpenCallback) { - onOpenCallback(ev.id); - } - }), eventEmitter.addListener('websocketClosed', function (ev) { - if (onCloseCallback) { - onCloseCallback(ev.id, { - code: ev.code, - reason: ev.reason - }); - } - }), eventEmitter.addListener('websocketFailed', function (ev) { - if (onErrorCallback) { - onErrorCallback(ev.id, { - message: ev.message - }); - } - })]; - }, - enableInterception: function enableInterception() { - if (_isInterceptorEnabled) { - return; - } - eventEmitter = new _NativeEventEmitter.default( - _Platform.default.OS !== 'ios' ? null : _NativeWebSocketModule.default); - WebSocketInterceptor._registerEvents(); - - _NativeWebSocketModule.default.connect = function (url, protocols, options, socketId) { - if (connectCallback) { - connectCallback(url, protocols, options, socketId); - } - originalRCTWebSocketConnect.apply(this, arguments); - }; - - _NativeWebSocketModule.default.send = function (data, socketId) { - if (sendCallback) { - sendCallback(data, socketId); + } catch (error) { + captureCommitPhaseError(firstChild, firstChild.return, error); + } } - originalRCTWebSocketSend.apply(this, arguments); - }; - - _NativeWebSocketModule.default.sendBinary = function (data, socketId) { - if (sendCallback) { - sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId); + if (firstChild === fiber) { + nextEffect = null; + break; } - originalRCTWebSocketSendBinary.apply(this, arguments); - }; - - _NativeWebSocketModule.default.close = function () { - if (closeCallback) { - if (arguments.length === 3) { - closeCallback(arguments[0], arguments[1], arguments[2]); - } else { - closeCallback(null, null, arguments[0]); - } + current = firstChild.sibling; + if (null !== current) { + current.return = firstChild.return; + nextEffect = current; + break; } - originalRCTWebSocketClose.apply(this, arguments); - }; - _isInterceptorEnabled = true; - }, - _arrayBufferToString: function _arrayBufferToString(data) { - var value = _base64Js.default.toByteArray(data).buffer; - if (value === undefined || value === null) { - return '(no value)'; - } - if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && value instanceof ArrayBuffer) { - return "ArrayBuffer {" + String(Array.from(new Uint8Array(value))) + "}"; - } - return value; - }, - disableInterception: function disableInterception() { - if (!_isInterceptorEnabled) { - return; - } - _isInterceptorEnabled = false; - _NativeWebSocketModule.default.send = originalRCTWebSocketSend; - _NativeWebSocketModule.default.sendBinary = originalRCTWebSocketSendBinary; - _NativeWebSocketModule.default.close = originalRCTWebSocketClose; - _NativeWebSocketModule.default.connect = originalRCTWebSocketConnect; - connectCallback = null; - closeCallback = null; - sendCallback = null; - onOpenCallback = null; - onMessageCallback = null; - onCloseCallback = null; - onErrorCallback = null; - WebSocketInterceptor._unregisterEvents(); - } - }; - module.exports = WebSocketInterceptor; -},378,[3,134,135,14,125],"node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports._LogBoxNotificationContainer = _LogBoxNotificationContainer; - exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../Components/View/View")); - var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "./Data/LogBoxData")); - var _LogBoxLog = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Data/LogBoxLog")); - var _LogBoxNotification = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./UI/LogBoxNotification")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _LogBoxNotificationContainer(props) { - var logs = props.logs; - var onDismissWarns = function onDismissWarns() { - LogBoxData.clearWarnings(); - }; - var onDismissErrors = function onDismissErrors() { - LogBoxData.clearErrors(); - }; - var setSelectedLog = function setSelectedLog(index) { - LogBoxData.setSelectedLog(index); - }; - function openLog(log) { - var index = logs.length - 1; - - while (index > 0 && logs[index] !== log) { - index -= 1; + nextEffect = firstChild.return; } - setSelectedLog(index); - } - if (logs.length === 0 || props.isDisabled === true) { - return null; - } - var warnings = logs.filter(function (log) { - return log.level === 'warn'; - }); - var errors = logs.filter(function (log) { - return log.level === 'error' || log.level === 'fatal'; - }); - return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { - style: styles.list, - children: [warnings.length > 0 && (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { - style: styles.toast, - children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { - log: warnings[warnings.length - 1], - level: "warn", - totalLogCount: warnings.length, - onPressOpen: function onPressOpen() { - return openLog(warnings[warnings.length - 1]); - }, - onPressDismiss: onDismissWarns - }) - }), errors.length > 0 && (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { - style: styles.toast, - children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { - log: errors[errors.length - 1], - level: "error", - totalLogCount: errors.length, - onPressOpen: function onPressOpen() { - return openLog(errors[errors.length - 1]); - }, - onPressDismiss: onDismissErrors - }) - })] - }); - } - var styles = _StyleSheet.default.create({ - list: { - bottom: 20, - left: 10, - right: 10, - position: 'absolute' - }, - toast: { - borderRadius: 8, - marginBottom: 5, - overflow: 'hidden' } - }); - var _default = LogBoxData.withSubscription(_LogBoxNotificationContainer); - exports.default = _default; -},379,[36,3,244,245,61,62,380,73],"node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _Image = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Image/Image")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); - var _LogBoxLog = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Data/LogBoxLog")); - var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxMessage")); - var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "../Data/LogBoxData")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function LogBoxLogNotification(props) { - var totalLogCount = props.totalLogCount, - level = props.level, - log = props.log; - - React.useEffect(function () { - LogBoxData.symbolicateLogLazy(log); - }, [log]); - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: toastStyles.container, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { - onPress: props.onPressOpen, - style: toastStyles.press, - backgroundColor: { - default: LogBoxStyle.getBackgroundColor(1), - pressed: LogBoxStyle.getBackgroundColor(0.9) - }, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { - style: toastStyles.content, - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(CountBadge, { - count: totalLogCount, - level: level - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Message, { - message: log.message - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(DismissButton, { - onPress: props.onPressDismiss - })] - }) - }) - }); } - function CountBadge(props) { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: countStyles.outside, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: [countStyles.inside, countStyles[props.level]], - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { - style: countStyles.text, - children: props.count <= 1 ? '!' : props.count - }) - }) - }); + var ceil = Math.ceil, + ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + executionContext = 0, + workInProgressRoot = null, + workInProgress = null, + workInProgressRootRenderLanes = 0, + subtreeRenderLanes = 0, + subtreeRenderLanesCursor = createCursor(0), + workInProgressRootExitStatus = 0, + workInProgressRootFatalError = null, + workInProgressRootSkippedLanes = 0, + workInProgressRootInterleavedUpdatedLanes = 0, + workInProgressRootPingedLanes = 0, + workInProgressRootConcurrentErrors = null, + workInProgressRootRecoverableErrors = null, + globalMostRecentFallbackTime = 0, + workInProgressRootRenderTargetTime = Infinity, + workInProgressTransitions = null, + hasUncaughtError = !1, + firstUncaughtError = null, + legacyErrorBoundariesThatAlreadyFailed = null, + rootDoesHavePassiveEffects = !1, + rootWithPendingPassiveEffects = null, + pendingPassiveEffectsLanes = 0, + nestedUpdateCount = 0, + rootWithNestedUpdates = null, + currentEventTime = -1, + currentEventTransitionLane = 0; + function requestEventTime() { + return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); } - function Message(props) { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: messageStyles.container, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { - numberOfLines: 1, - style: messageStyles.text, - children: props.message && (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { - plaintext: true, - message: props.message, - style: messageStyles.substitutionText - }) - }) - }); + function requestUpdateLane(fiber) { + if (0 === (fiber.mode & 1)) return 1; + if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; + if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; + fiber = currentUpdatePriority; + return 0 !== fiber ? fiber : 16; } - function DismissButton(props) { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { - style: dismissStyles.container, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { - backgroundColor: { - default: LogBoxStyle.getTextColor(0.3), - pressed: LogBoxStyle.getTextColor(0.5) - }, - hitSlop: { - top: 12, - right: 10, - bottom: 12, - left: 10 - }, - onPress: props.onPress, - style: dismissStyles.press, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Image.default, { - source: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/close.png"), - style: dismissStyles.image - }) - }) - }); + function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { + if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + markRootUpdated(root, lane, eventTime); + if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); } - var countStyles = _StyleSheet.default.create({ - warn: { - backgroundColor: LogBoxStyle.getWarningColor(1) - }, - error: { - backgroundColor: LogBoxStyle.getErrorColor(1) - }, - log: { - backgroundColor: LogBoxStyle.getLogColor(1) - }, - outside: { - padding: 2, - borderRadius: 25, - backgroundColor: '#fff', - marginRight: 8 - }, - inside: { - minWidth: 18, - paddingLeft: 4, - paddingRight: 4, - borderRadius: 25, - fontWeight: '600' - }, - text: { - color: LogBoxStyle.getTextColor(1), - fontSize: 14, - lineHeight: 18, - textAlign: 'center', - fontWeight: '600', - textShadowColor: LogBoxStyle.getBackgroundColor(0.4), - textShadowOffset: { - width: 0, - height: 0 - }, - textShadowRadius: 3 - } - }); - var messageStyles = _StyleSheet.default.create({ - container: { - alignSelf: 'stretch', - flexGrow: 1, - flexShrink: 1, - flexBasis: 'auto', - borderLeftColor: LogBoxStyle.getTextColor(0.2), - borderLeftWidth: 1, - paddingLeft: 8 - }, - text: { - color: LogBoxStyle.getTextColor(1), - flex: 1, - fontSize: 14, - lineHeight: 22 - }, - substitutionText: { - color: LogBoxStyle.getTextColor(0.6) + function ensureRootIsScheduled(root, currentTime) { + for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6, + expirationTime = expirationTimes[index$6]; + if (-1 === expirationTime) { + if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + } else expirationTime <= currentTime && (root.expiredLanes |= lane); + lanes &= ~lane; } - }); - var dismissStyles = _StyleSheet.default.create({ - container: { - alignSelf: 'center', - flexDirection: 'row', - flexGrow: 0, - flexShrink: 0, - flexBasis: 'auto', - marginLeft: 5 - }, - press: { - height: 20, - width: 20, - borderRadius: 25, - alignSelf: 'flex-end', - alignItems: 'center', - justifyContent: 'center' - }, - image: { - height: 8, - width: 8, - tintColor: LogBoxStyle.getBackgroundColor(1) + suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { + null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); + if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { + switch (lanesToEventPriority(suspendedLanes)) { + case 1: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; + break; + case 4: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; + break; + case 16: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + break; + case 536870912: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; + break; + default: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + } + existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = currentTime; + root.callbackNode = existingCallbackNode; } - }); - var toastStyles = _StyleSheet.default.create({ - container: { - height: 48, - position: 'relative', - width: '100%', - justifyContent: 'center', - marginTop: 0.5, - backgroundColor: LogBoxStyle.getTextColor(1) - }, - press: { - height: 48, - position: 'relative', - width: '100%', - justifyContent: 'center', - marginTop: 0.5, - paddingHorizontal: 12 - }, - content: { - alignItems: 'flex-start', - flexDirection: 'row', - borderRadius: 8, - flexGrow: 0, - flexShrink: 0, - flexBasis: 'auto' + } + function performConcurrentWorkOnRoot(root, didTimeout) { + currentEventTime = -1; + currentEventTransitionLane = 0; + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + var originalCallbackNode = root.callbackNode; + if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === lanes) return null; + if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { + didTimeout = lanes; + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); + do try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } while (1); + resetContextDependencies(); + ReactCurrentDispatcher$2.current = prevDispatcher; + executionContext = prevExecutionContext; + null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); } - }); - var _default = LogBoxLogNotification; - exports.default = _default; -},380,[36,3,334,244,255,245,381,382,62,383,61,73,384],"node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); - var _TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/Touchable/TouchableWithoutFeedback")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function LogBoxButton(props) { - var _React$useState = React.useState(false), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - pressed = _React$useState2[0], - setPressed = _React$useState2[1]; - var backgroundColor = props.backgroundColor; - if (!backgroundColor) { - backgroundColor = { - default: LogBoxStyle.getBackgroundColor(0.95), - pressed: LogBoxStyle.getBackgroundColor(0.6) - }; + if (0 !== didTimeout) { + 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); + if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + if (6 === didTimeout) markRootSuspended$1(root, lanes);else { + prevExecutionContext = root.current.alternate; + if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + root.finishedWork = prevExecutionContext; + root.finishedLanes = lanes; + switch (didTimeout) { + case 0: + case 1: + throw Error("Root did not complete. This is a bug in React."); + case 2: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 3: + markRootSuspended$1(root, lanes); + if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { + if (0 !== getNextLanes(root, 0)) break; + prevExecutionContext = root.suspendedLanes; + if ((prevExecutionContext & lanes) !== lanes) { + requestEventTime(); + root.pingedLanes |= root.suspendedLanes & prevExecutionContext; + break; + } + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 4: + markRootSuspended$1(root, lanes); + if ((lanes & 4194240) === lanes) break; + didTimeout = root.eventTimes; + for (prevExecutionContext = -1; 0 < lanes;) { + var index$5 = 31 - clz32(lanes); + prevDispatcher = 1 << index$5; + index$5 = didTimeout[index$5]; + index$5 > prevExecutionContext && (prevExecutionContext = index$5); + lanes &= ~prevDispatcher; + } + lanes = prevExecutionContext; + lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; + lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; + if (10 < lanes) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 5: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + default: + throw Error("Unknown root exit status."); + } + } } - var content = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { - style: _StyleSheet.default.compose({ - backgroundColor: pressed ? backgroundColor.pressed : backgroundColor.default - }, props.style), - children: props.children - }); - return props.onPress == null ? content : (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TouchableWithoutFeedback.default, { - hitSlop: props.hitSlop, - onPress: props.onPress, - onPressIn: function onPressIn() { - return setPressed(true); - }, - onPressOut: function onPressOut() { - return setPressed(false); - }, - children: content - }); - } - var _default = LogBoxButton; - exports.default = _default; -},381,[3,19,36,244,371,245,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getBackgroundColor = getBackgroundColor; - exports.getBackgroundDarkColor = getBackgroundDarkColor; - exports.getBackgroundLightColor = getBackgroundLightColor; - exports.getDividerColor = getDividerColor; - exports.getErrorColor = getErrorColor; - exports.getErrorDarkColor = getErrorDarkColor; - exports.getFatalColor = getFatalColor; - exports.getFatalDarkColor = getFatalDarkColor; - exports.getHighlightColor = getHighlightColor; - exports.getLogColor = getLogColor; - exports.getTextColor = getTextColor; - exports.getWarningColor = getWarningColor; - exports.getWarningDarkColor = getWarningDarkColor; - exports.getWarningHighlightColor = getWarningHighlightColor; - - function getBackgroundColor(opacity) { - return "rgba(51, 51, 51, " + (opacity == null ? 1 : opacity) + ")"; + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; } - function getBackgroundLightColor(opacity) { - return "rgba(69, 69, 69, " + (opacity == null ? 1 : opacity) + ")"; + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); + root = renderRootSync(root, errorRetryLanes); + 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); + return root; } - function getBackgroundDarkColor(opacity) { - return "rgba(34, 34, 34, " + (opacity == null ? 1 : opacity) + ")"; + function queueRecoverableErrors(errors) { + null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); } - function getWarningColor(opacity) { - return "rgba(250, 186, 48, " + (opacity == null ? 1 : opacity) + ")"; + function isRenderConsistentWithExternalStores(finishedWork) { + for (var node = finishedWork;;) { + if (node.flags & 16384) { + var updateQueue = node.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { + var check = updateQueue[i], + getSnapshot = check.getSnapshot; + check = check.value; + try { + if (!objectIs(getSnapshot(), check)) return !1; + } catch (error) { + return !1; + } + } + } + updateQueue = node.child; + if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { + if (node === finishedWork) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === finishedWork) return !0; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return !0; } - function getWarningDarkColor(opacity) { - return "rgba(224, 167, 8, " + (opacity == null ? 1 : opacity) + ")"; + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes &= ~workInProgressRootPingedLanes; + suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + for (root = root.expirationTimes; 0 < suspendedLanes;) { + var index$7 = 31 - clz32(suspendedLanes), + lane = 1 << index$7; + root[index$7] = -1; + suspendedLanes &= ~lane; + } } - function getFatalColor(opacity) { - return "rgba(243, 83, 105, " + (opacity == null ? 1 : opacity) + ")"; + function performSyncWorkOnRoot(root) { + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + flushPassiveEffects(); + var lanes = getNextLanes(root, 0); + if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; + var exitStatus = renderRootSync(root, lanes); + if (0 !== root.tag && 2 === exitStatus) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); + } + if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; + if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); + root.finishedWork = root.current.alternate; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return null; } - function getFatalDarkColor(opacity) { - return "rgba(208, 75, 95, " + (opacity == null ? 1 : opacity) + ")"; + function popRenderLanes() { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor); } - function getErrorColor(opacity) { - return "rgba(243, 83, 105, " + (opacity == null ? 1 : opacity) + ")"; + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = 0; + var timeoutHandle = root.timeoutHandle; + -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); + if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { + var interruptedWork = timeoutHandle; + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case 1: + interruptedWork = interruptedWork.type.childContextTypes; + null !== interruptedWork && void 0 !== interruptedWork && popContext(); + break; + case 3: + popHostContainer(); + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + resetWorkInProgressVersions(); + break; + case 5: + popHostContext(interruptedWork); + break; + case 4: + popHostContainer(); + break; + case 13: + pop(suspenseStackCursor); + break; + case 19: + pop(suspenseStackCursor); + break; + case 10: + popProvider(interruptedWork.type._context); + break; + case 22: + case 23: + popRenderLanes(); + } + timeoutHandle = timeoutHandle.return; + } + workInProgressRoot = root; + workInProgress = root = createWorkInProgress(root.current, null); + workInProgressRootRenderLanes = subtreeRenderLanes = lanes; + workInProgressRootExitStatus = 0; + workInProgressRootFatalError = null; + workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; + workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; + if (null !== concurrentQueues) { + for (lanes = 0; lanes < concurrentQueues.length; lanes++) if (timeoutHandle = concurrentQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { + timeoutHandle.interleaved = null; + var firstInterleavedUpdate = interruptedWork.next, + lastPendingUpdate = timeoutHandle.pending; + if (null !== lastPendingUpdate) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + interruptedWork.next = firstPendingUpdate; + } + timeoutHandle.pending = interruptedWork; + } + concurrentQueues = null; + } + return root; } - function getErrorDarkColor(opacity) { - return "rgba(208, 75, 95, " + (opacity == null ? 1 : opacity) + ")"; + function handleError(root$jscomp$0, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { + var queue = hook.queue; + null !== queue && (queue.pending = null); + hook = hook.next; + } + didScheduleRenderPhaseUpdate = !1; + } + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdateDuringThisPass = !1; + ReactCurrentOwner$2.current = null; + if (null === erroredWork || null === erroredWork.return) { + workInProgressRootExitStatus = 1; + workInProgressRootFatalError = thrownValue; + workInProgress = null; + break; + } + a: { + var root = root$jscomp$0, + returnFiber = erroredWork.return, + sourceFiber = erroredWork, + value = thrownValue; + thrownValue = workInProgressRootRenderLanes; + sourceFiber.flags |= 32768; + if (null !== value && "object" === typeof value && "function" === typeof value.then) { + var wakeable = value, + sourceFiber$jscomp$0 = sourceFiber, + tag = sourceFiber$jscomp$0.tag; + if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { + var currentSource = sourceFiber$jscomp$0.alternate; + currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); + } + b: { + sourceFiber$jscomp$0 = returnFiber; + do { + var JSCompiler_temp; + if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { + var nextState = sourceFiber$jscomp$0.memoizedState; + JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; + } + if (JSCompiler_temp) { + var suspenseBoundary = sourceFiber$jscomp$0; + break b; + } + sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; + } while (null !== sourceFiber$jscomp$0); + suspenseBoundary = null; + } + if (null !== suspenseBoundary) { + suspenseBoundary.flags &= -257; + value = suspenseBoundary; + sourceFiber$jscomp$0 = thrownValue; + if (0 === (value.mode & 1)) { + if (value === returnFiber) value.flags |= 65536;else { + value.flags |= 128; + sourceFiber.flags |= 131072; + sourceFiber.flags &= -52805; + if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { + var update = createUpdate(-1, 1); + update.tag = 2; + enqueueUpdate(sourceFiber, update, 1); + } + sourceFiber.lanes |= 1; + } + } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; + suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); + thrownValue = suspenseBoundary; + root = wakeable; + var wakeables = thrownValue.updateQueue; + if (null === wakeables) { + var updateQueue = new Set(); + updateQueue.add(root); + thrownValue.updateQueue = updateQueue; + } else wakeables.add(root); + break a; + } else { + if (0 === (thrownValue & 1)) { + attachPingListener(root, wakeable, thrownValue); + renderDidSuspendDelayIfPossible(); + break a; + } + value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + } + } + root = value = createCapturedValueAtFiber(value, sourceFiber); + 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); + null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); + root = returnFiber; + do { + switch (root.tag) { + case 3: + wakeable = value; + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$jscomp$0); + break a; + case 1: + wakeable = value; + var ctor = root.type, + instance = root.stateNode; + if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$34 = createClassErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$34); + break a; + } + } + root = root.return; + } while (null !== root); + } + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); + continue; + } + break; + } while (1); } - function getLogColor(opacity) { - return "rgba(119, 119, 119, " + (opacity == null ? 1 : opacity) + ")"; + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; } - function getWarningHighlightColor(opacity) { - return "rgba(252, 176, 29, " + (opacity == null ? 1 : opacity) + ")"; + function renderDidSuspendDelayIfPossible() { + if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; + null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); } - function getDividerColor(opacity) { - return "rgba(255, 255, 255, " + (opacity == null ? 1 : opacity) + ")"; + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); + do try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } while (1); + resetContextDependencies(); + executionContext = prevExecutionContext; + ReactCurrentDispatcher$2.current = prevDispatcher; + if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + return workInProgressRootExitStatus; } - function getHighlightColor(opacity) { - return "rgba(252, 176, 29, " + (opacity == null ? 1 : opacity) + ")"; + function workLoopSync() { + for (; null !== workInProgress;) performUnitOfWork(workInProgress); } - function getTextColor(opacity) { - return "rgba(255, 255, 255, " + (opacity == null ? 1 : opacity) + ")"; + function workLoopConcurrent() { + for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) performUnitOfWork(workInProgress); } -},382,[],"node_modules/react-native/Libraries/LogBox/UI/LogBoxStyle.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Text/Text")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var cleanContent = function cleanContent(content) { - return content.replace(/^(TransformError |Warning: (Warning: )?|Error: )/g, ''); - }; - function LogBoxMessage(props) { - var _this = this; - var _props$message = props.message, - content = _props$message.content, - substitutions = _props$message.substitutions; - if (props.plaintext === true) { - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_Text.default, { - children: cleanContent(content) - }); - } - var maxLength = props.maxLength != null ? props.maxLength : Infinity; - var substitutionStyle = props.style; - var elements = []; - var length = 0; - var createUnderLength = function createUnderLength(key, message, style) { - var cleanMessage = cleanContent(message); - if (props.maxLength != null) { - cleanMessage = cleanMessage.slice(0, props.maxLength - length); - } - if (length < maxLength) { - elements.push((0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_Text.default, { - style: style, - children: cleanMessage - }, key)); + function performUnitOfWork(unitOfWork) { + var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + unitOfWork = completedWork.return; + if (0 === (completedWork.flags & 32768)) { + if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { + workInProgress = current; + return; + } + } else { + current = unwindWork(current, completedWork); + if (null !== current) { + current.flags &= 32767; + workInProgress = current; + return; + } + if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { + workInProgressRootExitStatus = 6; + workInProgress = null; + return; + } } - length += cleanMessage.length; - }; - var lastOffset = substitutions.reduce(function (prevOffset, substitution, index) { - var key = String(index); - if (substitution.offset > prevOffset) { - var prevPart = content.substr(prevOffset, substitution.offset - prevOffset); - createUnderLength(key, prevPart); + completedWork = completedWork.sibling; + if (null !== completedWork) { + workInProgress = completedWork; + return; } - var substititionPart = content.substr(substitution.offset, substitution.length); - createUnderLength(key + '.5', substititionPart, substitutionStyle); - return substitution.offset + substitution.length; - }, 0); - if (lastOffset < content.length) { - var lastPart = content.substr(lastOffset); - createUnderLength('-1', lastPart); - } - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").Fragment, { - children: elements - }); - } - var _default = LogBoxMessage; - exports.default = _default; -},383,[36,3,255,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", - "width": 28, - "height": 28, - "scales": [1], - "hash": "369745d4a4a6fa62fa0ed495f89aa964", - "name": "close", - "type": "png" - }); -},384,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/close.png"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], "@react-native/assets/registry"); -},385,[225],"node_modules/react-native/Libraries/Image/AssetRegistry.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.RootTagContext = void 0; - exports.createRootTag = createRootTag; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var RootTagContext = React.createContext(0); - exports.RootTagContext = RootTagContext; - if (__DEV__) { - RootTagContext.displayName = 'RootTagContext'; + workInProgress = completedWork = unitOfWork; + } while (null !== completedWork); + 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } - - function createRootTag(rootTag) { - return rootTag; + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = currentUpdatePriority, + prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; + } + return null; } -},386,[36],"node_modules/react-native/Libraries/ReactNative/RootTag.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _useAndroidRippleForView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./useAndroidRippleForView")); - var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Pressability/usePressability")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../View/View")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Pressable/Pressable.js"; - var _excluded = ["accessible", "android_disableSound", "android_ripple", "cancelable", "children", "delayHoverIn", "delayHoverOut", "delayLongPress", "disabled", "focusable", "hitSlop", "onHoverIn", "onHoverOut", "onLongPress", "onPress", "onPressIn", "onPressOut", "pressRetentionOffset", "style", "testOnly_pressed", "unstable_pressDelay"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function Pressable(props, forwardedRef) { - var accessible = props.accessible, - android_disableSound = props.android_disableSound, - android_ripple = props.android_ripple, - cancelable = props.cancelable, - children = props.children, - delayHoverIn = props.delayHoverIn, - delayHoverOut = props.delayHoverOut, - delayLongPress = props.delayLongPress, - disabled = props.disabled, - focusable = props.focusable, - hitSlop = props.hitSlop, - onHoverIn = props.onHoverIn, - onHoverOut = props.onHoverOut, - onLongPress = props.onLongPress, - onPress = props.onPress, - _onPressIn = props.onPressIn, - _onPressOut = props.onPressOut, - pressRetentionOffset = props.pressRetentionOffset, - style = props.style, - testOnly_pressed = props.testOnly_pressed, - unstable_pressDelay = props.unstable_pressDelay, - restProps = (0, _objectWithoutProperties2.default)(props, _excluded); - var viewRef = (0, React.useRef)(null); - (0, React.useImperativeHandle)(forwardedRef, function () { - return viewRef.current; - }); - var android_rippleConfig = (0, _useAndroidRippleForView.default)(android_ripple, viewRef); - var _usePressState = usePressState(testOnly_pressed === true), - _usePressState2 = (0, _slicedToArray2.default)(_usePressState, 2), - pressed = _usePressState2[0], - setPressed = _usePressState2[1]; - var accessibilityState = disabled != null ? Object.assign({}, props.accessibilityState, { - disabled: disabled - }) : props.accessibilityState; - var restPropsWithDefaults = Object.assign({}, restProps, android_rippleConfig == null ? void 0 : android_rippleConfig.viewProps, { - accessible: accessible !== false, - accessibilityState: accessibilityState, - focusable: focusable !== false, - hitSlop: hitSlop - }); - var config = (0, React.useMemo)(function () { - return { - cancelable: cancelable, - disabled: disabled, - hitSlop: hitSlop, - pressRectOffset: pressRetentionOffset, - android_disableSound: android_disableSound, - delayHoverIn: delayHoverIn, - delayHoverOut: delayHoverOut, - delayLongPress: delayLongPress, - delayPressIn: unstable_pressDelay, - onHoverIn: onHoverIn, - onHoverOut: onHoverOut, - onLongPress: onLongPress, - onPress: onPress, - onPressIn: function onPressIn(event) { - if (android_rippleConfig != null) { - android_rippleConfig.onPressIn(event); - } - setPressed(true); - if (_onPressIn != null) { - _onPressIn(event); - } - }, - onPressMove: android_rippleConfig == null ? void 0 : android_rippleConfig.onPressMove, - onPressOut: function onPressOut(event) { - if (android_rippleConfig != null) { - android_rippleConfig.onPressOut(event); - } - setPressed(false); - if (_onPressOut != null) { - _onPressOut(event); - } - } - }; - }, [android_disableSound, android_rippleConfig, cancelable, delayHoverIn, delayHoverOut, delayLongPress, disabled, hitSlop, onHoverIn, onHoverOut, onLongPress, onPress, _onPressIn, _onPressOut, pressRetentionOffset, setPressed, unstable_pressDelay]); - var eventHandlers = (0, _usePressability.default)(config); - return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, Object.assign({}, restPropsWithDefaults, eventHandlers, { - ref: viewRef, - style: typeof style === 'function' ? style({ - pressed: pressed - }) : style, - collapsable: false, - children: [typeof children === 'function' ? children({ - pressed: pressed - }) : children, __DEV__ ? (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[8], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: "red", - hitSlop: hitSlop - }) : null] + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + transitions = root.finishedWork; + var lanes = root.finishedLanes; + if (null === transitions) return null; + root.finishedWork = null; + root.finishedLanes = 0; + if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + root.callbackNode = null; + root.callbackPriority = 0; + var remainingLanes = transitions.lanes | transitions.childLanes; + markRootFinished(root, remainingLanes); + root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); + 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { + flushPassiveEffects(); + return null; })); + remainingLanes = 0 !== (transitions.flags & 15990); + if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { + remainingLanes = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 1; + var prevExecutionContext = executionContext; + executionContext |= 4; + ReactCurrentOwner$2.current = null; + commitBeforeMutationEffects(root, transitions); + commitMutationEffectsOnFiber(transitions, root); + root.current = transitions; + commitLayoutEffects(transitions, root, lanes); + _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); + executionContext = prevExecutionContext; + currentUpdatePriority = previousPriority; + ReactCurrentBatchConfig$2.transition = remainingLanes; + } else root.current = transitions; + rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); + remainingLanes = root.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + onCommitRoot(transitions.stateNode, renderPriorityLevel); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) lanes = recoverableErrors[transitions], renderPriorityLevel(lanes.value, { + componentStack: lanes.stack, + digest: lanes.digest + }); + if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; + 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); + remainingLanes = root.pendingLanes; + 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; + flushSyncCallbacks(); + return null; } - function usePressState(forcePressed) { - var _useState = (0, React.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - pressed = _useState2[0], - setPressed = _useState2[1]; - return [pressed || forcePressed, setPressed]; - } - var MemoedPressable = React.memo(React.forwardRef(Pressable)); - MemoedPressable.displayName = 'Pressable'; - var _default = MemoedPressable; - exports.default = _default; -},387,[3,19,132,36,388,258,245,73,256],"node_modules/react-native/Libraries/Components/Pressable/Pressable.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useAndroidRippleForView; - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - function useAndroidRippleForView(rippleConfig, viewRef) { - var _ref = rippleConfig != null ? rippleConfig : {}, - color = _ref.color, - borderless = _ref.borderless, - radius = _ref.radius, - foreground = _ref.foreground; - return (0, React.useMemo)(function () { - if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= 21 && (color != null || borderless != null || radius != null)) { - var processedColor = (0, _reactNative.processColor)(color); - (0, _invariant.default)(processedColor == null || typeof processedColor === 'number', 'Unexpected color given for Ripple color'); - var nativeRippleValue = { - type: 'RippleAndroid', - color: processedColor, - borderless: borderless === true, - rippleRadius: radius - }; - return { - viewProps: foreground === true ? { - nativeForegroundAndroid: nativeRippleValue - } : { - nativeBackgroundAndroid: nativeRippleValue - }, - onPressIn: function onPressIn(event) { - var view = viewRef.current; - if (view != null) { - var _event$nativeEvent$lo, _event$nativeEvent$lo2; - _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.hotspotUpdate(view, (_event$nativeEvent$lo = event.nativeEvent.locationX) != null ? _event$nativeEvent$lo : 0, (_event$nativeEvent$lo2 = event.nativeEvent.locationY) != null ? _event$nativeEvent$lo2 : 0); - _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.setPressed(view, true); + function flushPassiveEffects() { + if (null !== rootWithPendingPassiveEffects) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), + prevTransition = ReactCurrentBatchConfig$2.transition, + previousPriority = currentUpdatePriority; + try { + ReactCurrentBatchConfig$2.transition = null; + currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; + if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { + renderPriority = rootWithPendingPassiveEffects; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsLanes = 0; + if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); + var prevExecutionContext = executionContext; + executionContext |= 4; + for (nextEffect = renderPriority.current; null !== nextEffect;) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (nextEffect.flags & 16)) { + var deletions = fiber.deletions; + if (null !== deletions) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + for (nextEffect = fiberToDelete; null !== nextEffect;) { + var fiber$jscomp$0 = nextEffect; + switch (fiber$jscomp$0.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); + } + var child$jscomp$0 = fiber$jscomp$0.child; + if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { + fiber$jscomp$0 = nextEffect; + var sibling = fiber$jscomp$0.sibling, + returnFiber = fiber$jscomp$0.return; + detachFiberAfterEffects(fiber$jscomp$0); + if (fiber$jscomp$0 === fiberToDelete) { + nextEffect = null; + break; + } + if (null !== sibling) { + sibling.return = returnFiber; + nextEffect = sibling; + break; + } + nextEffect = returnFiber; + } + } + } + var previousFiber = fiber.alternate; + if (null !== previousFiber) { + var detachedChild = previousFiber.child; + if (null !== detachedChild) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (null !== detachedChild); + } + } + nextEffect = fiber; + } } - }, - onPressMove: function onPressMove(event) { - var view = viewRef.current; - if (view != null) { - var _event$nativeEvent$lo3, _event$nativeEvent$lo4; - _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.hotspotUpdate(view, (_event$nativeEvent$lo3 = event.nativeEvent.locationX) != null ? _event$nativeEvent$lo3 : 0, (_event$nativeEvent$lo4 = event.nativeEvent.locationY) != null ? _event$nativeEvent$lo4 : 0); + if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { + fiber = nextEffect; + if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(9, fiber, fiber.return); + } + var sibling$jscomp$0 = fiber.sibling; + if (null !== sibling$jscomp$0) { + sibling$jscomp$0.return = fiber.return; + nextEffect = sibling$jscomp$0; + break b; + } + nextEffect = fiber.return; } - }, - onPressOut: function onPressOut(event) { - var view = viewRef.current; - if (view != null) { - _$$_REQUIRE(_dependencyMap[4], "../View/ViewNativeComponent").Commands.setPressed(view, false); + } + var finishedWork = renderPriority.current; + for (nextEffect = finishedWork; null !== nextEffect;) { + child = nextEffect; + var firstChild = child.child; + if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { + deletions = nextEffect; + if (0 !== (deletions.flags & 2048)) try { + switch (deletions.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(9, deletions); + } + } catch (error) { + captureCommitPhaseError(deletions, deletions.return, error); + } + if (deletions === child) { + nextEffect = null; + break b; + } + var sibling$jscomp$1 = deletions.sibling; + if (null !== sibling$jscomp$1) { + sibling$jscomp$1.return = deletions.return; + nextEffect = sibling$jscomp$1; + break b; + } + nextEffect = deletions.return; } } - }; + executionContext = prevExecutionContext; + flushSyncCallbacks(); + if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { + injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); + } catch (err) {} + JSCompiler_inline_result = !0; + } + return JSCompiler_inline_result; + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; } - return null; - }, [borderless, color, foreground, radius, viewRef]); + } + return !1; } -},388,[3,17,1,36,246],"node_modules/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); - var _RCTProgressViewNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./RCTProgressViewNativeComponent")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var ProgressViewIOS = function ProgressViewIOS(props, forwardedRef) { - return (0, _$$_REQUIRE(_dependencyMap[4], "react/jsx-runtime").jsx)(_RCTProgressViewNativeComponent.default, Object.assign({}, props, { - style: [styles.progressView, props.style], - ref: forwardedRef - })); - }; - var styles = _StyleSheet.default.create({ - progressView: { - height: 2 + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + sourceFiber = createCapturedValueAtFiber(error, sourceFiber); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 1); + sourceFiber = requestEventTime(); + null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { + if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { + if (3 === nearestMountedAncestor.tag) { + captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); + break; + } else if (1 === nearestMountedAncestor.tag) { + var instance = nearestMountedAncestor.stateNode; + if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + sourceFiber = createCapturedValueAtFiber(error, sourceFiber); + sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); + nearestMountedAncestor = enqueueUpdate(nearestMountedAncestor, sourceFiber, 1); + sourceFiber = requestEventTime(); + null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); + break; + } + } + nearestMountedAncestor = nearestMountedAncestor.return; } - }); - var ProgressViewIOSWithRef = React.forwardRef(ProgressViewIOS); - module.exports = ProgressViewIOSWithRef; -},389,[36,3,244,390,73],"node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('RCTProgressView'); - exports.default = _default; -},390,[3,251],"node_modules/react-native/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../View/View")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var exported; - - if (_Platform.default.OS === 'android') { - exported = _View.default; - } else { - exported = _$$_REQUIRE(_dependencyMap[4], "./RCTSafeAreaViewNativeComponent").default; } - var _default = exported; - exports.default = _default; -},391,[3,14,36,245,392],"node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('SafeAreaView', { - paperComponentName: 'RCTSafeAreaView', - interfaceOnly: true - }); - exports.default = _default; -},392,[3,251],"node_modules/react-native/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); - var _SliderNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./SliderNativeComponent")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); - var _excluded = ["value", "minimumValue", "maximumValue", "step", "onValueChange", "onSlidingComplete"]; - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Slider/Slider.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var Slider = function Slider(props, forwardedRef) { - var _props$accessibilityS; - var style = _StyleSheet.default.compose(styles.slider, props.style); - var _props$value = props.value, - value = _props$value === void 0 ? 0.5 : _props$value, - _props$minimumValue = props.minimumValue, - minimumValue = _props$minimumValue === void 0 ? 0 : _props$minimumValue, - _props$maximumValue = props.maximumValue, - maximumValue = _props$maximumValue === void 0 ? 1 : _props$maximumValue, - _props$step = props.step, - step = _props$step === void 0 ? 0 : _props$step, - onValueChange = props.onValueChange, - onSlidingComplete = props.onSlidingComplete, - localProps = (0, _objectWithoutProperties2.default)(props, _excluded); - var onValueChangeEvent = onValueChange ? function (event) { - var userEvent = true; - if (_Platform.default.OS === 'android') { - userEvent = event.nativeEvent.fromUser != null && event.nativeEvent.fromUser; + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + null !== pingCache && pingCache.delete(wakeable); + wakeable = requestEventTime(); + root.pingedLanes |= root.suspendedLanes & pingedLanes; + workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); + ensureRootIsScheduled(root, wakeable); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + var eventTime = requestEventTime(); + boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState, + retryLane = 0; + null !== suspenseState && (retryLane = suspenseState.retryLane); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = 0; + switch (boundaryFiber.tag) { + case 13: + var retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + null !== suspenseState && (retryLane = suspenseState.retryLane); + break; + case 19: + retryCache = boundaryFiber.stateNode; + break; + default: + throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + null !== retryCache && retryCache.delete(wakeable); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + var beginWork$1; + beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { + if (null !== current) { + if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { + if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; } - userEvent && onValueChange(event.nativeEvent.value); - } : null; - var onSlidingCompleteEvent = onSlidingComplete ? function (event) { - onSlidingComplete(event.nativeEvent.value); - } : null; - var disabled = props.disabled === true || ((_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled) === true; - var accessibilityState = disabled ? Object.assign({}, props.accessibilityState, { - disabled: true - }) : props.accessibilityState; - return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_SliderNativeComponent.default, Object.assign({}, localProps, { - accessibilityState: accessibilityState - , - enabled: !disabled, - disabled: disabled, - maximumValue: maximumValue, - minimumValue: minimumValue, - onResponderTerminationRequest: function onResponderTerminationRequest() { - return false; - }, - onSlidingComplete: onSlidingCompleteEvent, - onStartShouldSetResponder: function onStartShouldSetResponder() { - return true; - }, - onValueChange: onValueChangeEvent, - ref: forwardedRef, - step: step, - style: style, - value: value - })); + } else didReceiveUpdate = !1; + workInProgress.lanes = 0; + switch (workInProgress.tag) { + case 2: + var Component = workInProgress.type; + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + var context = getMaskedContext(workInProgress, contextStackCursor.current); + prepareToReadContext(workInProgress, renderLanes); + context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); + workInProgress.flags |= 1; + if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { + workInProgress.tag = 1; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; + initializeUpdateQueue(workInProgress); + context.updater = classComponentUpdater; + workInProgress.stateNode = context; + context._reactInternals = workInProgress; + mountClassInstance(workInProgress, Component, current, renderLanes); + workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); + } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; + return workInProgress; + case 16: + Component = workInProgress.elementType; + a: { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + context = Component._init; + Component = context(Component._payload); + workInProgress.type = Component; + context = workInProgress.tag = resolveLazyComponentTag(Component); + current = resolveDefaultProps(Component, current); + switch (context) { + case 0: + workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 1: + workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 11: + workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); + break a; + case 14: + workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); + break a; + } + throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); + } + return workInProgress; + case 0: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); + case 1: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); + case 3: + pushHostRootContext(workInProgress); + if (null === current) throw Error("Should have a current fiber. This is a bug in React."); + context = workInProgress.pendingProps; + Component = workInProgress.memoizedState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, context, null, renderLanes); + context = workInProgress.memoizedState.element; + context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); + return workInProgress; + case 5: + return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 6: + return null; + case 13: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 11: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); + case 7: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; + case 8: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 12: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 10: + a: { + Component = workInProgress.type._context; + context = workInProgress.pendingProps; + hasContext = workInProgress.memoizedProps; + var newValue = context.value; + push(valueCursor, Component._currentValue); + Component._currentValue = newValue; + if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { + if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { + workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + break a; + } + } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { + var list = hasContext.dependencies; + if (null !== list) { + newValue = hasContext.child; + for (var dependency = list.firstContext; null !== dependency;) { + if (dependency.context === Component) { + if (1 === hasContext.tag) { + dependency = createUpdate(-1, renderLanes & -renderLanes); + dependency.tag = 2; + var updateQueue = hasContext.updateQueue; + if (null !== updateQueue) { + updateQueue = updateQueue.shared; + var pending = updateQueue.pending; + null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); + updateQueue.pending = dependency; + } + } + hasContext.lanes |= renderLanes; + dependency = hasContext.alternate; + null !== dependency && (dependency.lanes |= renderLanes); + scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); + list.lanes |= renderLanes; + break; + } + dependency = dependency.next; + } + } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { + newValue = hasContext.return; + if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); + newValue.lanes |= renderLanes; + list = newValue.alternate; + null !== list && (list.lanes |= renderLanes); + scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); + newValue = hasContext.sibling; + } else newValue = hasContext.child; + if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { + if (newValue === workInProgress) { + newValue = null; + break; + } + hasContext = newValue.sibling; + if (null !== hasContext) { + hasContext.return = newValue.return; + newValue = hasContext; + break; + } + newValue = newValue.return; + } + hasContext = newValue; + } + reconcileChildren(current, workInProgress, context.children, renderLanes); + workInProgress = workInProgress.child; + } + return workInProgress; + case 9: + return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 14: + return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); + case 15: + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + case 17: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); + case 19: + return updateSuspenseListComponent(current, workInProgress, renderLanes); + case 22: + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); }; - var SliderWithRef = React.forwardRef(Slider); - var styles; - if (_Platform.default.OS === 'ios') { - styles = _StyleSheet.default.create({ - slider: { - height: 40 - } - }); - } else { - styles = _StyleSheet.default.create({ - slider: {} - }); + function scheduleCallback$1(priorityLevel, callback) { + return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); } - module.exports = SliderWithRef; -},393,[3,132,36,14,394,244,73],"node_modules/react-native/Libraries/Components/Slider/Slider.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); - var _default = (0, _codegenNativeComponent.default)('Slider', { - interfaceOnly: true, - paperComponentName: 'RCTSlider' - }); - exports.default = _default; -},394,[3,251],"node_modules/react-native/Libraries/Components/Slider/SliderNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "invariant")); - var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../StyleSheet/processColor")); - var _NativeStatusBarManagerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NativeStatusBarManagerAndroid")); - var _NativeStatusBarManagerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./NativeStatusBarManagerIOS")); - var _NativeStatusBarManag; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - function mergePropsStack(propsStack, defaultValues) { - return propsStack.reduce(function (prev, cur) { - for (var prop in cur) { - if (cur[prop] != null) { - prev[prop] = cur[prop]; + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + } + function shouldConstruct(Component) { + Component = Component.prototype; + return !(!Component || !Component.isReactComponent); + } + function resolveLazyComponentTag(Component) { + if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; + if (void 0 !== Component && null !== Component) { + Component = Component.$$typeof; + if (Component === REACT_FORWARD_REF_TYPE) return 11; + if (Component === REACT_MEMO_TYPE) return 14; + } + return 2; + } + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); + workInProgress.flags = current.flags & 14680064; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + pendingProps = current.dependencies; + workInProgress.dependencies = null === pendingProps ? null : { + lanes: pendingProps.lanes, + firstContext: pendingProps.firstContext + }; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { + var fiberTag = 2; + owner = type; + if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = 8; + mode |= 8; + break; + case REACT_PROFILER_TYPE: + return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_TYPE: + return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_LIST_TYPE: + return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + default: + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = 10; + break a; + case REACT_CONTEXT_TYPE: + fiberTag = 9; + break a; + case REACT_FORWARD_REF_TYPE: + fiberTag = 11; + break a; + case REACT_MEMO_TYPE: + fiberTag = 14; + break a; + case REACT_LAZY_TYPE: + fiberTag = 16; + owner = null; + break a; } - } - return prev; - }, Object.assign({}, defaultValues)); + throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); + } + key = createFiber(fiberTag, pendingProps, key, mode); + key.elementType = type; + key.type = owner; + key.lanes = lanes; + return key; } - - function createStackEntry(props) { - var _props$animated, _props$showHideTransi; - var animated = (_props$animated = props.animated) != null ? _props$animated : false; - var showHideTransition = (_props$showHideTransi = props.showHideTransition) != null ? _props$showHideTransi : 'fade'; + function createFiberFromFragment(elements, mode, lanes, key) { + elements = createFiber(7, elements, key, mode); + elements.lanes = lanes; + return elements; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + pendingProps = createFiber(22, pendingProps, key, mode); + pendingProps.elementType = REACT_OFFSCREEN_TYPE; + pendingProps.lanes = lanes; + pendingProps.stateNode = { + isHidden: !1 + }; + return pendingProps; + } + function createFiberFromText(content, mode, lanes) { + content = createFiber(6, content, null, mode); + content.lanes = lanes; + return content; + } + function createFiberFromPortal(portal, mode, lanes) { + mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.lanes = lanes; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = createLaneMap(0); + this.expirationTimes = createLaneMap(-1); + this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; + this.entanglements = createLaneMap(0); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + } + function createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { - backgroundColor: props.backgroundColor != null ? { - value: props.backgroundColor, - animated: animated - } : null, - barStyle: props.barStyle != null ? { - value: props.barStyle, - animated: animated - } : null, - translucent: props.translucent, - hidden: props.hidden != null ? { - value: props.hidden, - animated: animated, - transition: showHideTransition - } : null, - networkActivityIndicatorVisible: props.networkActivityIndicatorVisible + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation }; } - - var StatusBar = function (_React$Component) { - (0, _inherits2.default)(StatusBar, _React$Component); - var _super = _createSuper(StatusBar); - function StatusBar() { - var _this; - (0, _classCallCheck2.default)(this, StatusBar); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - _this._stackEntry = null; - return _this; + function findHostInstance(component) { + var fiber = component._reactInternals; + if (void 0 === fiber) { + if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); + component = Object.keys(component).join(","); + throw Error("Argument appears to not be a ReactComponent. Keys: " + component); } - (0, _createClass2.default)(StatusBar, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._stackEntry = StatusBar.pushStackEntry(this.props); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - StatusBar.popStackEntry(this._stackEntry); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - this._stackEntry = StatusBar.replaceStackEntry(this._stackEntry, this.props); - } - - }, { - key: "render", - value: function render() { - return null; + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + eventTime = requestEventTime(), + lane = requestUpdateLane(current); + a: if (parentComponent) { + parentComponent = parentComponent._reactInternals; + b: { + if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + var JSCompiler_inline_result = parentComponent; + do { + switch (JSCompiler_inline_result.tag) { + case 3: + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; + break b; + case 1: + if (isContextProvider(JSCompiler_inline_result.type)) { + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + } + JSCompiler_inline_result = JSCompiler_inline_result.return; + } while (null !== JSCompiler_inline_result); + throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); } - }], [{ - key: "setHidden", - value: - - function setHidden(hidden, animation) { - animation = animation || 'none'; - StatusBar._defaultProps.hidden.value = hidden; - if (_Platform.default.OS === 'ios') { - _NativeStatusBarManagerIOS.default.setHidden(hidden, animation); - } else if (_Platform.default.OS === 'android') { - _NativeStatusBarManagerAndroid.default.setHidden(hidden); + if (1 === parentComponent.tag) { + var Component = parentComponent.type; + if (isContextProvider(Component)) { + parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); + break a; } } - - }, { - key: "setBarStyle", - value: - function setBarStyle(style, animated) { - animated = animated || false; - StatusBar._defaultProps.barStyle.value = style; - if (_Platform.default.OS === 'ios') { - _NativeStatusBarManagerIOS.default.setStyle(style, animated); - } else if (_Platform.default.OS === 'android') { - _NativeStatusBarManagerAndroid.default.setStyle(style); - } + parentComponent = JSCompiler_inline_result; + } else parentComponent = emptyContextObject; + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = createUpdate(eventTime, lane); + container.payload = { + element: element + }; + callback = void 0 === callback ? null : callback; + null !== callback && (container.callback = callback); + element = enqueueUpdate(current, container, lane); + null !== element && (scheduleUpdateOnFiber(element, current, lane, eventTime), entangleTransitions(element, current, lane)); + return lane; + } + function emptyFindFiberByHostInstance() { + return null; + } + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + function onRecoverableError(error) { + console.error(error); + } + function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= 1; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + } + }; + var roots = new Map(), + devToolsConfig$jscomp$inline_979 = { + findFiberByHostInstance: getInstanceFromTag, + bundleType: 0, + version: "18.2.0-next-9e3b772b8-20220608", + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: function getInspectorDataForViewTag() { + throw Error("getInspectorDataForViewTag() is not available in production"); + }, + getInspectorDataForViewAtPoint: function () { + throw Error("getInspectorDataForViewAtPoint() is not available in production."); + }.bind(null, findNodeHandle) } + }; + var internals$jscomp$inline_1247 = { + bundleType: devToolsConfig$jscomp$inline_979.bundleType, + version: devToolsConfig$jscomp$inline_979.version, + rendererPackageName: devToolsConfig$jscomp$inline_979.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_979.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: devToolsConfig$jscomp$inline_979.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "18.2.0-next-9e3b772b8-20220608" + }; + if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + var hook$jscomp$inline_1248 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!hook$jscomp$inline_1248.isDisabled && hook$jscomp$inline_1248.supportsFiber) try { + rendererID = hook$jscomp$inline_1248.inject(internals$jscomp$inline_1247), injectedHook = hook$jscomp$inline_1248; + } catch (err) {} + } + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { + computeComponentStackForErrorReporting: function computeComponentStackForErrorReporting(reactTag) { + return (reactTag = getInstanceFromTag(reactTag)) ? getStackByFiberInDevAndProd(reactTag) : ""; + } + }; + exports.createPortal = function (children, containerTag) { + return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }; + exports.dispatchCommand = function (handle, command, args) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); + }; + exports.findHostInstance_DEPRECATED = function (componentOrHandle) { + if (null == componentOrHandle) return null; + if (componentOrHandle._nativeTag) return componentOrHandle; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; + }; + exports.findNodeHandle = findNodeHandle; + exports.getInspectorDataForInstance = void 0; + exports.render = function (element, containerTag, callback) { + var root = roots.get(containerTag); + if (!root) { + root = new FiberRootNode(containerTag, 0, !1, "", onRecoverableError); + var JSCompiler_inline_result = createFiber(3, null, null, 0); + root.current = JSCompiler_inline_result; + JSCompiler_inline_result.stateNode = root; + JSCompiler_inline_result.memoizedState = { + element: null, + isDehydrated: !1, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }; + initializeUpdateQueue(JSCompiler_inline_result); + roots.set(containerTag, root); + } + updateContainer(element, root, null, callback); + a: if (element = root.current, element.child) switch (element.child.tag) { + case 5: + element = element.child.stateNode; + break a; + default: + element = element.child.stateNode; + } else element = null; + return element; + }; + exports.sendAccessibilityEvent = function (handle, eventType) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); + }; + exports.unmountComponentAtNode = unmountComponentAtNode; + exports.unmountComponentAtNodeAndRemoveContainer = function (containerTag) { + unmountComponentAtNode(containerTag); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.removeRootView(containerTag); + }; + exports.unstable_batchedUpdates = batchedUpdates; +},416,[44,41,276,413],"node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - }, { - key: "setNetworkActivityIndicatorVisible", - value: - function setNetworkActivityIndicatorVisible(visible) { - if (_Platform.default.OS !== 'ios') { - console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); - return; + 'use strict'; + + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/ElementProperties.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var ElementProperties = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(ElementProperties, _React$Component); + var _super = _createSuper(ElementProperties); + function ElementProperties() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, ElementProperties); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(ElementProperties, [{ + key: "render", + value: function render() { + var _this = this; + var style = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/flattenStyle")(this.props.style); + var selection = this.props.selection; + var openFileButton; + var source = this.props.source; + var _ref = source || {}, + fileName = _ref.fileName, + lineNumber = _ref.lineNumber; + if (fileName && lineNumber) { + var parts = fileName.split('/'); + var fileNameShort = parts[parts.length - 1]; + openFileButton = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { + style: styles.openButton, + onPress: _$$_REQUIRE(_dependencyMap[9], "../Core/Devtools/openFileInEditor").bind(null, fileName, lineNumber), + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.openButtonTitle, + numberOfLines: 1, + children: [fileNameShort, ":", lineNumber] + }) + }); } - StatusBar._defaultProps.networkActivityIndicatorVisible = visible; - _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(visible); + // Without the `TouchableWithoutFeedback`, taps on this inspector pane + // would change the inspected element to whatever is under the inspector + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[11], "../Components/Touchable/TouchableWithoutFeedback"), { + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.info, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.breadcrumb, + children: _$$_REQUIRE(_dependencyMap[13], "../Utilities/mapWithSeparator")(this.props.hierarchy, function (hierarchyItem, i) { + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/Touchable/TouchableHighlight"), { + style: [styles.breadItem, i === selection && styles.selected] + // $FlowFixMe[not-a-function] found when converting React.createClass to ES6 + , + onPress: function onPress() { + return _this.props.setSelection(i); + }, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.breadItemText, + children: hierarchyItem.name + }) + }, 'item-' + i); + }, function (i) { + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[10], "../Text/Text"), { + style: styles.breadSep, + children: "\u25B8" + }, 'sep-' + i); + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.row, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[12], "../Components/View/View"), { + style: styles.col, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[14], "./StyleInspector"), { + style: style + }), openFileButton] + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[15], "./BoxInspector"), { + style: style, + frame: this.props.frame + })] + })] + }) + }); + } + }]); + return ElementProperties; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[16], "../StyleSheet/StyleSheet").create({ + breadSep: { + fontSize: 8, + color: 'white' + }, + breadcrumb: { + flexDirection: 'row', + flexWrap: 'wrap', + alignItems: 'flex-start', + marginBottom: 5 + }, + selected: { + borderColor: 'white', + borderRadius: 5 + }, + breadItem: { + borderWidth: 1, + borderColor: 'transparent', + marginHorizontal: 2 + }, + breadItemText: { + fontSize: 10, + color: 'white', + marginHorizontal: 5 + }, + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between' + }, + col: { + flex: 1 + }, + info: { + padding: 10 + }, + openButton: { + padding: 10, + backgroundColor: '#000', + marginVertical: 5, + marginRight: 5, + borderRadius: 2 + }, + openButtonTitle: { + color: 'white', + fontSize: 8 + } + }); + module.exports = ElementProperties; +},417,[53,51,41,49,12,13,207,89,418,419,287,420,225,421,422,423,259],"node_modules/react-native/Libraries/Inspector/ElementProperties.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Components/View/View")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Pressability/Pressability")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Utilities/Platform")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js", + _this3 = this; + var _excluded = ["onBlur", "onFocus"]; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + /** + * A wrapper for making views respond properly to touches. + * On press down, the opacity of the wrapped view is decreased, which allows + * the underlay color to show through, darkening or tinting the view. + * + * The underlay comes from wrapping the child in a new View, which can affect + * layout, and sometimes cause unwanted visual artifacts if not used correctly, + * for example if the backgroundColor of the wrapped view isn't explicitly set + * to an opaque color. + * + * TouchableHighlight must have one child (not zero or more than one). + * If you wish to have several child components, wrap them in a View. + * + * Example: + * + * ``` + * renderButton: function() { + * return ( + * + * + * + * ); + * }, + * ``` + * + * + * ### Example + * + * ```ReactNativeWebPlayer + * import React, { Component } from 'react' + * import { + * AppRegistry, + * StyleSheet, + * TouchableHighlight, + * Text, + * View, + * } from 'react-native' + * + * class App extends Component { + * constructor(props) { + * super(props) + * this.state = { count: 0 } + * } + * + * onPress = () => { + * this.setState({ + * count: this.state.count+1 + * }) + * } + * + * render() { + * return ( + * + * + * Touch Here + * + * + * + * { this.state.count !== 0 ? this.state.count: null} + * + * + * + * ) + * } + * } + * + * const styles = StyleSheet.create({ + * container: { + * flex: 1, + * justifyContent: 'center', + * paddingHorizontal: 10 + * }, + * button: { + * alignItems: 'center', + * backgroundColor: '#DDDDDD', + * padding: 10 + * }, + * countContainer: { + * alignItems: 'center', + * padding: 10 + * }, + * countText: { + * color: '#FF00FF' + * } + * }) + * + * AppRegistry.registerComponent('App', () => App) + * ``` + * + */ + var TouchableHighlight = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(TouchableHighlight, _React$Component); + var _super = _createSuper(TouchableHighlight); + function TouchableHighlight() { + var _this; + (0, _classCallCheck2.default)(this, TouchableHighlight); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this._isMounted = false; + _this.state = { + pressability: new _Pressability.default(_this._createPressabilityConfig()), + extraStyles: _this.props.testOnly_pressed === true ? _this._createExtraStyles() : null + }; + return _this; + } + (0, _createClass2.default)(TouchableHighlight, [{ + key: "_createPressabilityConfig", + value: function _createPressabilityConfig() { + var _this$props$accessibi, + _this2 = this; + return { + cancelable: !this.props.rejectResponderTermination, + disabled: this.props.disabled != null ? this.props.disabled : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.disabled, + hitSlop: this.props.hitSlop, + delayLongPress: this.props.delayLongPress, + delayPressIn: this.props.delayPressIn, + delayPressOut: this.props.delayPressOut, + minPressDuration: 0, + pressRectOffset: this.props.pressRetentionOffset, + android_disableSound: this.props.touchSoundDisabled, + onBlur: function onBlur(event) { + if (_Platform.default.isTV) { + _this2._hideUnderlay(); + } + if (_this2.props.onBlur != null) { + _this2.props.onBlur(event); + } + }, + onFocus: function onFocus(event) { + if (_Platform.default.isTV) { + _this2._showUnderlay(); + } + if (_this2.props.onFocus != null) { + _this2.props.onFocus(event); + } + }, + onLongPress: this.props.onLongPress, + onPress: function onPress(event) { + if (_this2._hideTimeout != null) { + clearTimeout(_this2._hideTimeout); + } + if (!_Platform.default.isTV) { + var _this2$props$delayPre; + _this2._showUnderlay(); + _this2._hideTimeout = setTimeout(function () { + _this2._hideUnderlay(); + }, (_this2$props$delayPre = _this2.props.delayPressOut) != null ? _this2$props$delayPre : 0); + } + if (_this2.props.onPress != null) { + _this2.props.onPress(event); + } + }, + onPressIn: function onPressIn(event) { + if (_this2._hideTimeout != null) { + clearTimeout(_this2._hideTimeout); + _this2._hideTimeout = null; + } + _this2._showUnderlay(); + if (_this2.props.onPressIn != null) { + _this2.props.onPressIn(event); + } + }, + onPressOut: function onPressOut(event) { + if (_this2._hideTimeout == null) { + _this2._hideUnderlay(); + } + if (_this2.props.onPressOut != null) { + _this2.props.onPressOut(event); + } + } + }; } - }, { - key: "setBackgroundColor", - value: - function setBackgroundColor(color, animated) { - if (_Platform.default.OS !== 'android') { - console.warn('`setBackgroundColor` is only available on Android'); + key: "_createExtraStyles", + value: function _createExtraStyles() { + var _this$props$activeOpa; + return { + child: { + opacity: (_this$props$activeOpa = this.props.activeOpacity) != null ? _this$props$activeOpa : 0.85 + }, + underlay: { + backgroundColor: this.props.underlayColor === undefined ? 'black' : this.props.underlayColor + } + }; + } + }, { + key: "_showUnderlay", + value: function _showUnderlay() { + if (!this._isMounted || !this._hasPressHandler()) { return; } - animated = animated || false; - StatusBar._defaultProps.backgroundColor.value = color; - var processedColor = (0, _processColor.default)(color); - if (processedColor == null) { - console.warn("`StatusBar.setBackgroundColor`: Color " + color + " parsed to null or undefined"); - return; + this.setState({ + extraStyles: this._createExtraStyles() + }); + if (this.props.onShowUnderlay != null) { + this.props.onShowUnderlay(); } - (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given for StatusBar.setBackgroundColor'); - _NativeStatusBarManagerAndroid.default.setColor(processedColor, animated); } - }, { - key: "setTranslucent", - value: - function setTranslucent(translucent) { - if (_Platform.default.OS !== 'android') { - console.warn('`setTranslucent` is only available on Android'); + key: "_hideUnderlay", + value: function _hideUnderlay() { + if (this._hideTimeout != null) { + clearTimeout(this._hideTimeout); + this._hideTimeout = null; + } + if (this.props.testOnly_pressed === true) { return; } - StatusBar._defaultProps.translucent = translucent; - _NativeStatusBarManagerAndroid.default.setTranslucent(translucent); + if (this._hasPressHandler()) { + this.setState({ + extraStyles: null + }); + if (this.props.onHideUnderlay != null) { + this.props.onHideUnderlay(); + } + } } - }, { - key: "pushStackEntry", - value: - function pushStackEntry(props) { - var entry = createStackEntry(props); - StatusBar._propsStack.push(entry); - StatusBar._updatePropsStack(); - return entry; + key: "_hasPressHandler", + value: function _hasPressHandler() { + return this.props.onPress != null || this.props.onPressIn != null || this.props.onPressOut != null || this.props.onLongPress != null; } + }, { + key: "render", + value: function render() { + var _this$props$ariaValu, _this$props$accessibi2, _this$props$ariaValu2, _this$props$accessibi3, _this$props$ariaValu3, _this$props$accessibi4, _this$props$ariaValu4, _this$props$accessibi5, _this$props$ariaLive, _this$props$ariaLabe, _this$props$ariaModa, _this$props$ariaHidd, _this$state$extraStyl, _this$state$extraStyl2; + var child = React.Children.only(this.props.children); + // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before + // adopting `Pressability`, so preserve that behavior. + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var accessibilityState = this.props.disabled != null ? Object.assign({}, this.props.accessibilityState, { + disabled: this.props.disabled + }) : this.props.accessibilityState; + var accessibilityValue = { + max: (_this$props$ariaValu = this.props['aria-valuemax']) != null ? _this$props$ariaValu : (_this$props$accessibi2 = this.props.accessibilityValue) == null ? void 0 : _this$props$accessibi2.max, + min: (_this$props$ariaValu2 = this.props['aria-valuemin']) != null ? _this$props$ariaValu2 : (_this$props$accessibi3 = this.props.accessibilityValue) == null ? void 0 : _this$props$accessibi3.min, + now: (_this$props$ariaValu3 = this.props['aria-valuenow']) != null ? _this$props$ariaValu3 : (_this$props$accessibi4 = this.props.accessibilityValue) == null ? void 0 : _this$props$accessibi4.now, + text: (_this$props$ariaValu4 = this.props['aria-valuetext']) != null ? _this$props$ariaValu4 : (_this$props$accessibi5 = this.props.accessibilityValue) == null ? void 0 : _this$props$accessibi5.text + }; + var accessibilityLiveRegion = this.props['aria-live'] === 'off' ? 'none' : (_this$props$ariaLive = this.props['aria-live']) != null ? _this$props$ariaLive : this.props.accessibilityLiveRegion; + var accessibilityLabel = (_this$props$ariaLabe = this.props['aria-label']) != null ? _this$props$ariaLabe : this.props.accessibilityLabel; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_View.default, Object.assign({ + accessible: this.props.accessible !== false, + accessibilityLabel: accessibilityLabel, + accessibilityHint: this.props.accessibilityHint, + accessibilityLanguage: this.props.accessibilityLanguage, + accessibilityRole: this.props.accessibilityRole, + accessibilityState: accessibilityState, + accessibilityValue: accessibilityValue, + accessibilityActions: this.props.accessibilityActions, + onAccessibilityAction: this.props.onAccessibilityAction, + importantForAccessibility: this.props['aria-hidden'] === true ? 'no-hide-descendants' : this.props.importantForAccessibility, + accessibilityViewIsModal: (_this$props$ariaModa = this.props['aria-modal']) != null ? _this$props$ariaModa : this.props.accessibilityViewIsModal, + accessibilityLiveRegion: accessibilityLiveRegion, + accessibilityElementsHidden: (_this$props$ariaHidd = this.props['aria-hidden']) != null ? _this$props$ariaHidd : this.props.accessibilityElementsHidden, + style: _StyleSheet.default.compose(this.props.style, (_this$state$extraStyl = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl.underlay), + onLayout: this.props.onLayout, + hitSlop: this.props.hitSlop, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + nextFocusDown: this.props.nextFocusDown, + nextFocusForward: this.props.nextFocusForward, + nextFocusLeft: this.props.nextFocusLeft, + nextFocusRight: this.props.nextFocusRight, + nextFocusUp: this.props.nextFocusUp, + focusable: this.props.focusable !== false && this.props.onPress !== undefined, + nativeID: this.props.nativeID, + testID: this.props.testID, + ref: this.props.hostRef + }, eventHandlersWithoutBlurAndFocus, { + children: [React.cloneElement(child, { + style: _StyleSheet.default.compose(child.props.style, (_this$state$extraStyl2 = this.state.extraStyles) == null ? void 0 : _this$state$extraStyl2.child) + }), __DEV__ ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[13], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "green", + hitSlop: this.props.hitSlop + }) : null] + })); + } }, { - key: "popStackEntry", - value: - function popStackEntry(entry) { - var index = StatusBar._propsStack.indexOf(entry); - if (index !== -1) { - StatusBar._propsStack.splice(index, 1); - } - StatusBar._updatePropsStack(); + key: "componentDidMount", + value: function componentDidMount() { + this._isMounted = true; } - }, { - key: "replaceStackEntry", - value: - function replaceStackEntry(entry, props) { - var newEntry = createStackEntry(props); - var index = StatusBar._propsStack.indexOf(entry); - if (index !== -1) { - StatusBar._propsStack[index] = newEntry; + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + this.state.pressability.configure(this._createPressabilityConfig()); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._isMounted = false; + if (this._hideTimeout != null) { + clearTimeout(this._hideTimeout); } - StatusBar._updatePropsStack(); - return newEntry; + this.state.pressability.reset(); } }]); - return StatusBar; + return TouchableHighlight; }(React.Component); - StatusBar._propsStack = []; - StatusBar._defaultProps = createStackEntry({ - backgroundColor: _Platform.default.OS === 'android' ? (_NativeStatusBarManag = _NativeStatusBarManagerAndroid.default.getConstants().DEFAULT_BACKGROUND_COLOR) != null ? _NativeStatusBarManag : 'black' : 'black', - barStyle: 'default', - translucent: false, - hidden: false, - networkActivityIndicatorVisible: false + var Touchable = React.forwardRef(function (props, hostRef) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(TouchableHighlight, Object.assign({}, props, { + hostRef: hostRef + })); }); - StatusBar._updateImmediate = null; - StatusBar._currentValues = null; - StatusBar.currentHeight = _Platform.default.OS === 'android' ? _NativeStatusBarManagerAndroid.default.getConstants().HEIGHT : null; - StatusBar._updatePropsStack = function () { - clearImmediate(StatusBar._updateImmediate); - StatusBar._updateImmediate = setImmediate(function () { - var oldProps = StatusBar._currentValues; - var mergedProps = mergePropsStack(StatusBar._propsStack, StatusBar._defaultProps); + Touchable.displayName = 'TouchableHighlight'; + module.exports = Touchable; +},418,[3,149,12,13,49,51,53,225,289,259,17,41,89,262],"node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - if (_Platform.default.OS === 'ios') { - if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { - _NativeStatusBarManagerIOS.default.setStyle(mergedProps.barStyle.value, mergedProps.barStyle.animated || false); - } - if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { - _NativeStatusBarManagerIOS.default.setHidden(mergedProps.hidden.value, mergedProps.hidden.animated ? mergedProps.hidden.transition : 'none'); - } - if (!oldProps || oldProps.networkActivityIndicatorVisible !== mergedProps.networkActivityIndicatorVisible) { - _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(mergedProps.networkActivityIndicatorVisible); - } - } else if (_Platform.default.OS === 'android') { - _NativeStatusBarManagerAndroid.default.setStyle(mergedProps.barStyle.value); - var processedColor = (0, _processColor.default)(mergedProps.backgroundColor.value); - if (processedColor == null) { - console.warn("`StatusBar._updatePropsStack`: Color " + mergedProps.backgroundColor.value + " parsed to null or undefined"); - } else { - (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given in StatusBar._updatePropsStack'); - _NativeStatusBarManagerAndroid.default.setColor(processedColor, mergedProps.backgroundColor.animated); - } - if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { - _NativeStatusBarManagerAndroid.default.setHidden(mergedProps.hidden.value); - } - if (!oldProps || oldProps.translucent !== mergedProps.translucent || mergedProps.translucent) { - _NativeStatusBarManagerAndroid.default.setTranslucent(mergedProps.translucent); - } - } - StatusBar._currentValues = mergedProps; + 'use strict'; + + function openFileInEditor(file, lineNumber) { + // $FlowFixMe[unused-promise] + fetch(_$$_REQUIRE(_dependencyMap[0], "./getDevServer")().url + 'open-stack-frame', { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ + file: file, + lineNumber: lineNumber + }) }); - }; - module.exports = StatusBar; -},395,[3,12,13,50,47,46,36,14,17,159,396,397],"node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js"); + } + module.exports = openFileInEditor; +},419,[83],"node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/getPrototypeOf")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Components/View/View")); + var _Pressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Pressability/Pressability")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _excluded = ["onBlur", "onFocus"], + _excluded2 = ["aria-disabled"]; + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"; function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var PASSTHROUGH_PROPS = ['accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityLanguage', 'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLiveRegion', 'accessibilityRole', 'accessibilityValue', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'accessibilityViewIsModal', 'aria-modal', 'hitSlop', 'importantForAccessibility', 'nativeID', 'onAccessibilityAction', 'onBlur', 'onFocus', 'onLayout', 'testID']; + var TouchableWithoutFeedback = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(TouchableWithoutFeedback, _React$Component); + var _super = _createSuper(TouchableWithoutFeedback); + function TouchableWithoutFeedback() { + var _this; + (0, _classCallCheck2.default)(this, TouchableWithoutFeedback); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + pressability: new _Pressability.default(createPressabilityConfig(_this.props)) + }; + return _this; + } + (0, _createClass2.default)(TouchableWithoutFeedback, [{ + key: "render", + value: function render() { + var _this$props$ariaBusy, _this$props$accessibi, _this$props$ariaChec, _this$props$accessibi2, _this$props$ariaDisa, _this$props$accessibi3, _this$props$ariaExpa, _this$props$accessibi4, _this$props$ariaSele, _this$props$accessibi5, _this$props$ariaHidd, _this$props$id; + var element = React.Children.only(this.props.children); + var children = [element.props.children]; + var ariaLive = this.props['aria-live']; + if (__DEV__) { + if (element.type === _View.default) { + children.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[11], "../../Pressability/PressabilityDebug").PressabilityDebugView, { + color: "red", + hitSlop: this.props.hitSlop + })); + } + } + var _accessibilityState = { + busy: (_this$props$ariaBusy = this.props['aria-busy']) != null ? _this$props$ariaBusy : (_this$props$accessibi = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi.busy, + checked: (_this$props$ariaChec = this.props['aria-checked']) != null ? _this$props$ariaChec : (_this$props$accessibi2 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi2.checked, + disabled: (_this$props$ariaDisa = this.props['aria-disabled']) != null ? _this$props$ariaDisa : (_this$props$accessibi3 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi3.disabled, + expanded: (_this$props$ariaExpa = this.props['aria-expanded']) != null ? _this$props$ariaExpa : (_this$props$accessibi4 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi4.expanded, + selected: (_this$props$ariaSele = this.props['aria-selected']) != null ? _this$props$ariaSele : (_this$props$accessibi5 = this.props.accessibilityState) == null ? void 0 : _this$props$accessibi5.selected + }; - var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); - var constants = null; - var NativeStatusBarManager = { - getConstants: function getConstants() { - if (constants == null) { - constants = NativeModule.getConstants(); + // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before + // adopting `Pressability`, so preserve that behavior. + var _this$state$pressabil = this.state.pressability.getEventHandlers(), + onBlur = _this$state$pressabil.onBlur, + onFocus = _this$state$pressabil.onFocus, + eventHandlersWithoutBlurAndFocus = (0, _objectWithoutProperties2.default)(_this$state$pressabil, _excluded); + var elementProps = Object.assign({}, eventHandlersWithoutBlurAndFocus, { + accessible: this.props.accessible !== false, + accessibilityState: this.props.disabled != null ? Object.assign({}, _accessibilityState, { + disabled: this.props.disabled + }) : _accessibilityState, + focusable: this.props.focusable !== false && this.props.onPress !== undefined, + accessibilityElementsHidden: (_this$props$ariaHidd = this.props['aria-hidden']) != null ? _this$props$ariaHidd : this.props.accessibilityElementsHidden, + importantForAccessibility: this.props['aria-hidden'] === true ? 'no-hide-descendants' : this.props.importantForAccessibility, + accessibilityLiveRegion: ariaLive === 'off' ? 'none' : ariaLive != null ? ariaLive : this.props.accessibilityLiveRegion, + nativeID: (_this$props$id = this.props.id) != null ? _this$props$id : this.props.nativeID + }); + for (var prop of PASSTHROUGH_PROPS) { + if (this.props[prop] !== undefined) { + elementProps[prop] = this.props[prop]; + } + } + return React.cloneElement.apply(React, [element, elementProps].concat(children)); } - return constants; - }, - setColor: function setColor(color, animated) { - NativeModule.setColor(color, animated); + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this.state.pressability.configure(createPressabilityConfig(this.props)); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.state.pressability.reset(); + } + }]); + return TouchableWithoutFeedback; + }(React.Component); + function createPressabilityConfig(_ref) { + var _props$accessibilityS; + var ariaDisabled = _ref['aria-disabled'], + props = (0, _objectWithoutProperties2.default)(_ref, _excluded2); + var accessibilityStateDisabled = ariaDisabled != null ? ariaDisabled : (_props$accessibilityS = props.accessibilityState) == null ? void 0 : _props$accessibilityS.disabled; + return { + cancelable: !props.rejectResponderTermination, + disabled: props.disabled !== null ? props.disabled : accessibilityStateDisabled, + hitSlop: props.hitSlop, + delayLongPress: props.delayLongPress, + delayPressIn: props.delayPressIn, + delayPressOut: props.delayPressOut, + minPressDuration: 0, + pressRectOffset: props.pressRetentionOffset, + android_disableSound: props.touchSoundDisabled, + onBlur: props.onBlur, + onFocus: props.onFocus, + onLongPress: props.onLongPress, + onPress: props.onPress, + onPressIn: props.onPressIn, + onPressOut: props.onPressOut + }; + } + TouchableWithoutFeedback.displayName = 'TouchableWithoutFeedback'; + module.exports = TouchableWithoutFeedback; +},420,[3,149,12,13,49,51,53,225,289,41,89,262],"node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + function mapWithSeparator(items, itemRenderer, spacerRenderer) { + var mapped = []; + if (items.length > 0) { + mapped.push(itemRenderer(items[0], 0, items)); + for (var ii = 1; ii < items.length; ii++) { + mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items)); + } + } + return mapped; + } + module.exports = mapWithSeparator; +},421,[],"node_modules/react-native/Libraries/Utilities/mapWithSeparator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + + 'use strict'; + + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/StyleInspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var StyleInspector = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(StyleInspector, _React$Component); + var _super = _createSuper(StyleInspector); + function StyleInspector() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, StyleInspector); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(StyleInspector, [{ + key: "render", + value: function render() { + var _this = this; + if (!this.props.style) { + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.noStyle, + children: "No style" + }); + } + var names = Object.keys(this.props.style); + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.container, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: names.map(function (name) { + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.attr, + children: [name, ":"] + }, name); + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: names.map(function (name) { + var value = _this.props.style[name]; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Text/Text"), { + style: styles.value, + children: typeof value !== 'string' && typeof value !== 'number' ? JSON.stringify(value) : value + }, name); + }) + })] + }); + } + }]); + return StyleInspector; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[9], "../StyleSheet/StyleSheet").create({ + container: { + flexDirection: 'row' }, - setTranslucent: function setTranslucent(translucent) { - NativeModule.setTranslucent(translucent); + attr: { + fontSize: 10, + color: '#ccc' }, - setStyle: function setStyle(statusBarStyle) { - NativeModule.setStyle(statusBarStyle); + value: { + fontSize: 10, + color: 'white', + marginLeft: 10 }, - setHidden: function setHidden(hidden) { - NativeModule.setHidden(hidden); + noStyle: { + color: 'white', + fontSize: 10 } - }; - var _default = NativeStatusBarManager; - exports.default = _default; -},396,[16],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + module.exports = StyleInspector; +},422,[53,51,41,49,12,13,89,287,225,259],"node_modules/react-native/Libraries/Inspector/StyleInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); - var constants = null; - var NativeStatusBarManager = { - getConstants: function getConstants() { - if (constants == null) { - constants = NativeModule.getConstants(); + 'use strict'; + + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/BoxInspector.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var blank = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + var BoxInspector = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxInspector, _React$Component); + var _super = _createSuper(BoxInspector); + function BoxInspector() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxInspector); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxInspector, [{ + key: "render", + value: function render() { + var frame = this.props.frame; + var style = this.props.style; + var margin = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('margin', style) || blank; + var padding = style && _$$_REQUIRE(_dependencyMap[6], "./resolveBoxStyle")('padding', style) || blank; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { + title: "margin", + titleStyle: styles.marginLabel, + box: margin, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(BoxContainer, { + title: "padding", + box: padding, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.innerText, + children: ["(", (frame.left || 0).toFixed(1), ", ", (frame.top || 0).toFixed(1), ")"] + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.innerText, + children: [(frame.width || 0).toFixed(1), " \xD7", ' ', (frame.height || 0).toFixed(1)] + })] + }) + }) + }); } - return constants; - }, - getHeight: function getHeight(callback) { - NativeModule.getHeight(callback); + }]); + return BoxInspector; + }(React.Component); + var BoxContainer = /*#__PURE__*/function (_React$Component2) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(BoxContainer, _React$Component2); + var _super2 = _createSuper(BoxContainer); + function BoxContainer() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, BoxContainer); + return _super2.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(BoxContainer, [{ + key: "render", + value: function render() { + var box = this.props.box; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.box, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [this.props.titleStyle, styles.label], + children: this.props.title + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.top + })] + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.left + }), this.props.children, /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.right + })] + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: styles.boxText, + children: box.bottom + })] + }); + } + }]); + return BoxContainer; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-around' }, - setNetworkActivityIndicatorVisible: function setNetworkActivityIndicatorVisible(visible) { - NativeModule.setNetworkActivityIndicatorVisible(visible); + marginLabel: { + width: 60 }, - addListener: function addListener(eventType) { - NativeModule.addListener(eventType); + label: { + fontSize: 10, + color: 'rgb(255,100,0)', + marginLeft: 5, + flex: 1, + textAlign: 'left', + top: -3 }, - removeListeners: function removeListeners(count) { - NativeModule.removeListeners(count); + innerText: { + color: 'yellow', + fontSize: 12, + textAlign: 'center', + width: 70 }, - setStyle: function setStyle(statusBarStyle, animated) { - NativeModule.setStyle(statusBarStyle, animated); + box: { + borderWidth: 1, + borderColor: 'grey' }, - setHidden: function setHidden(hidden, withAnimation) { - NativeModule.setHidden(hidden, withAnimation); + boxText: { + color: 'white', + fontSize: 12, + marginHorizontal: 3, + marginVertical: 2, + textAlign: 'center' } - }; - var _default = NativeStatusBarManager; - exports.default = _default; -},397,[16],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true }); - exports.default = void 0; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); - var _useMergeRefs = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/useMergeRefs")); - var _AndroidSwitchNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./AndroidSwitchNativeComponent")); - var _SwitchNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./SwitchNativeComponent")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Switch/Switch.js"; - var _excluded = ["disabled", "ios_backgroundColor", "onChange", "onValueChange", "style", "thumbColor", "trackColor", "value"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var returnsFalse = function returnsFalse() { - return false; - }; - var returnsTrue = function returnsTrue() { - return true; - }; + module.exports = BoxInspector; +},423,[53,51,41,49,12,13,266,89,225,287,259],"node_modules/react-native/Libraries/Inspector/BoxInspector.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var SwitchWithForwardedRef = React.forwardRef(function Switch(props, forwardedRef) { - var disabled = props.disabled, - ios_backgroundColor = props.ios_backgroundColor, - onChange = props.onChange, - onValueChange = props.onValueChange, - style = props.style, - thumbColor = props.thumbColor, - trackColor = props.trackColor, - value = props.value, - restProps = (0, _objectWithoutProperties2.default)(props, _excluded); - var trackColorForFalse = trackColor == null ? void 0 : trackColor.false; - var trackColorForTrue = trackColor == null ? void 0 : trackColor.true; - var nativeSwitchRef = React.useRef(null); - var ref = (0, _useMergeRefs.default)(nativeSwitchRef, forwardedRef); - var _React$useState = React.useState({ - value: null - }), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - native = _React$useState2[0], - setNative = _React$useState2[1]; - var handleChange = function handleChange(event) { - onChange == null ? void 0 : onChange(event); - onValueChange == null ? void 0 : onValueChange(event.nativeEvent.value); - setNative({ - value: event.nativeEvent.value - }); - }; - React.useLayoutEffect(function () { - var _nativeSwitchRef$curr; - var jsValue = value === true; - var shouldUpdateNativeSwitch = native.value != null && native.value !== jsValue; - if (shouldUpdateNativeSwitch && ((_nativeSwitchRef$curr = nativeSwitchRef.current) == null ? void 0 : _nativeSwitchRef$curr.setNativeProps) != null) { - if (_Platform.default.OS === 'android') { - _AndroidSwitchNativeComponent.Commands.setNativeValue(nativeSwitchRef.current, jsValue); - } else { - _SwitchNativeComponent.Commands.setValue(nativeSwitchRef.current, jsValue); + 'use strict'; + + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var PerformanceOverlay = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(PerformanceOverlay, _React$Component); + var _super = _createSuper(PerformanceOverlay); + function PerformanceOverlay() { + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, PerformanceOverlay); + return _super.apply(this, arguments); + } + _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(PerformanceOverlay, [{ + key: "render", + value: function render() { + var perfLogs = _$$_REQUIRE(_dependencyMap[6], "../Utilities/GlobalPerformanceLogger").getTimespans(); + var items = []; + for (var key in perfLogs) { + var _perfLogs$key; + if ((_perfLogs$key = perfLogs[key]) != null && _perfLogs$key.totalTime) { + var unit = key === 'BundleSize' ? 'b' : 'ms'; + items.push( /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.row, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [styles.text, styles.label], + children: key + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[9], "../Text/Text"), { + style: [styles.text, styles.totalTime], + children: perfLogs[key].totalTime + unit + })] + }, key)); + } } + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Components/View/View"), { + style: styles.container, + children: items + }); } - }, [value, native]); - if (_Platform.default.OS === 'android') { - var _props$accessibilityR; - var accessibilityState = restProps.accessibilityState; - var _disabled = disabled != null ? disabled : accessibilityState == null ? void 0 : accessibilityState.disabled; - var _accessibilityState = _disabled !== (accessibilityState == null ? void 0 : accessibilityState.disabled) ? Object.assign({}, accessibilityState, { - disabled: _disabled - }) : accessibilityState; - var platformProps = { - accessibilityState: _accessibilityState, - enabled: _disabled !== true, - on: value === true, - style: style, - thumbTintColor: thumbColor, - trackColorForFalse: trackColorForFalse, - trackColorForTrue: trackColorForTrue, - trackTintColor: value === true ? trackColorForTrue : trackColorForFalse - }; - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_AndroidSwitchNativeComponent.default, Object.assign({}, restProps, platformProps, { - accessibilityRole: (_props$accessibilityR = props.accessibilityRole) != null ? _props$accessibilityR : 'switch', - onChange: handleChange, - onResponderTerminationRequest: returnsFalse, - onStartShouldSetResponder: returnsTrue, - ref: ref - })); - } else { - var _props$accessibilityR2; - var _platformProps = { - disabled: disabled, - onTintColor: trackColorForTrue, - style: _StyleSheet.default.compose({ - height: 31, - width: 51 - }, _StyleSheet.default.compose(style, ios_backgroundColor == null ? null : { - backgroundColor: ios_backgroundColor, - borderRadius: 16 - })), - thumbTintColor: thumbColor, - tintColor: trackColorForFalse, - value: value === true - }; - return (0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_SwitchNativeComponent.default, Object.assign({}, restProps, _platformProps, { - accessibilityRole: (_props$accessibilityR2 = props.accessibilityRole) != null ? _props$accessibilityR2 : 'switch', - onChange: handleChange, - onResponderTerminationRequest: returnsFalse, - onStartShouldSetResponder: returnsTrue, - ref: ref - })); - } - }); - var _default = SwitchWithForwardedRef; - exports.default = _default; -},398,[3,19,132,14,36,244,399,400,401,73],"node_modules/react-native/Libraries/Components/Switch/Switch.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useMergeRefs; - var _react = _$$_REQUIRE(_dependencyMap[0], "react"); - - function useMergeRefs() { - for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { - refs[_key] = arguments[_key]; + }]); + return PerformanceOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[10], "../StyleSheet/StyleSheet").create({ + container: { + height: 100, + paddingTop: 10 + }, + label: { + flex: 1 + }, + row: { + flexDirection: 'row', + paddingHorizontal: 10 + }, + text: { + color: 'white', + fontSize: 12 + }, + totalTime: { + paddingRight: 100 } - return (0, _react.useCallback)(function (current) { - for (var ref of refs) { - if (ref != null) { - if (typeof ref === 'function') { - ref(current); - } else { - ref.current = current; - } - } - } - }, [].concat(refs)); - } -},399,[36],"node_modules/react-native/Libraries/Utilities/useMergeRefs.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Commands = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/Utilities/codegenNativeCommands")); - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeComponent")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['setNativeValue'] - }); - exports.Commands = Commands; - var _default = (0, _codegenNativeComponent.default)('AndroidSwitch', { - interfaceOnly: true }); - exports.default = _default; -},400,[36,3,202,251],"node_modules/react-native/Libraries/Components/Switch/AndroidSwitchNativeComponent.js"); + module.exports = PerformanceOverlay; +},424,[53,51,41,49,12,13,138,89,225,287,259],"node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Commands = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "react-native/Libraries/Utilities/codegenNativeCommands")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['setValue'] - }); - exports.Commands = Commands; - var _default = (0, _codegenNativeComponent.default)('Switch', { - paperComponentName: 'RCTSwitch', - excludedPlatforms: ['android'] - }); - exports.default = _default; -},401,[36,3,251,202],"node_modules/react-native/Libraries/Components/Switch/SwitchNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Text/Text")); - var _TextAncestor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Text/TextAncestor")); - var _TextInputState = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./TextInputState")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "invariant")); - var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "nullthrows")); - var _setAndForwardRef = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Utilities/setAndForwardRef")); - var _usePressability = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "../../Pressability/usePressability")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/TextInput/TextInput.js"; - var _excluded = ["onBlur", "onFocus"], - _excluded2 = ["allowFontScaling", "rejectResponderTermination", "underlineColorAndroid"]; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var useLayoutEffect = React.useLayoutEffect, - useRef = React.useRef, - useState = React.useState; - var AndroidTextInput; - var AndroidTextInputCommands; - var RCTSinglelineTextInputView; - var RCTSinglelineTextInputNativeCommands; - var RCTMultilineTextInputView; - var RCTMultilineTextInputNativeCommands; - if (_Platform.default.OS === 'android') { - AndroidTextInput = _$$_REQUIRE(_dependencyMap[13], "./AndroidTextInputNativeComponent").default; - AndroidTextInputCommands = _$$_REQUIRE(_dependencyMap[13], "./AndroidTextInputNativeComponent").Commands; - } else if (_Platform.default.OS === 'ios') { - RCTSinglelineTextInputView = _$$_REQUIRE(_dependencyMap[14], "./RCTSingelineTextInputNativeComponent").default; - RCTSinglelineTextInputNativeCommands = _$$_REQUIRE(_dependencyMap[14], "./RCTSingelineTextInputNativeComponent").Commands; - RCTMultilineTextInputView = _$$_REQUIRE(_dependencyMap[15], "./RCTMultilineTextInputNativeComponent").default; - RCTMultilineTextInputNativeCommands = _$$_REQUIRE(_dependencyMap[15], "./RCTMultilineTextInputNativeComponent").Commands; - } - var emptyFunctionThatReturnsTrue = function emptyFunctionThatReturnsTrue() { - return true; - }; + 'use strict'; - function InternalTextInput(props) { - var _props$selection$end, _props$blurOnSubmit; - var inputRef = useRef(null); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var React = _$$_REQUIRE(_dependencyMap[2], "react"); + var LISTVIEW_CELL_HEIGHT = 15; - var selection = props.selection == null ? null : { - start: props.selection.start, - end: (_props$selection$end = props.selection.end) != null ? _props$selection$end : props.selection.start - }; - var _useState = useState(0), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - mostRecentEventCount = _useState2[0], - setMostRecentEventCount = _useState2[1]; - var _useState3 = useState(props.value), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - lastNativeText = _useState4[0], - setLastNativeText = _useState4[1]; - var _useState5 = useState({ - selection: selection, - mostRecentEventCount: mostRecentEventCount - }), - _useState6 = (0, _slicedToArray2.default)(_useState5, 2), - lastNativeSelectionState = _useState6[0], - setLastNativeSelection = _useState6[1]; - var lastNativeSelection = lastNativeSelectionState.selection; - var lastNativeSelectionEventCount = lastNativeSelectionState.mostRecentEventCount; - if (lastNativeSelectionEventCount < mostRecentEventCount) { - selection = null; + // Global id for the intercepted XMLHttpRequest objects. + var nextXHRId = 0; + function getStringByValue(value) { + if (value === undefined) { + return 'undefined'; } - var viewCommands; - if (AndroidTextInputCommands) { - viewCommands = AndroidTextInputCommands; - } else { - viewCommands = props.multiline === true ? RCTMultilineTextInputNativeCommands : RCTSinglelineTextInputNativeCommands; + if (typeof value === 'object') { + return JSON.stringify(value); } - var text = typeof props.value === 'string' ? props.value : typeof props.defaultValue === 'string' ? props.defaultValue : ''; + if (typeof value === 'string' && value.length > 500) { + return String(value).substr(0, 500).concat('\n***TRUNCATED TO 500 CHARACTERS***'); + } + return value; + } + function getTypeShortName(type) { + if (type === 'XMLHttpRequest') { + return 'XHR'; + } else if (type === 'WebSocket') { + return 'WS'; + } + return ''; + } + function keyExtractor(request) { + return String(request.id); + } - useLayoutEffect(function () { - var nativeUpdate = {}; - if (lastNativeText !== props.value && typeof props.value === 'string') { - nativeUpdate.text = props.value; - setLastNativeText(props.value); + /** + * Show all the intercepted network requests over the InspectorPanel. + */ + var NetworkOverlay = /*#__PURE__*/function (_React$Component) { + _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(NetworkOverlay, _React$Component); + var _super = _createSuper(NetworkOverlay); + function NetworkOverlay() { + var _this; + _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, NetworkOverlay); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - if (selection && lastNativeSelection && (lastNativeSelection.start !== selection.start || lastNativeSelection.end !== selection.end)) { - nativeUpdate.selection = selection; - setLastNativeSelection({ - selection: selection, - mostRecentEventCount: mostRecentEventCount + _this = _super.call.apply(_super, [this].concat(args)); + // Metrics are used to decide when if the request list should be sticky, and + // scroll to the bottom as new network requests come in, or if the user has + // intentionally scrolled away from the bottom - to instead flash the scroll bar + // and keep the current position + _this._requestsListViewScrollMetrics = { + offset: 0, + visibleLength: 0, + contentLength: 0 + }; + // Map of `socketId` -> `index in `this.state.requests`. + _this._socketIdMap = {}; + // Map of `xhr._index` -> `index in `this.state.requests`. + _this._xhrIdMap = {}; + _this.state = { + detailRowId: null, + requests: [] + }; + _this._renderItem = function (_ref) { + var item = _ref.item, + index = _ref.index; + var tableRowViewStyle = [styles.tableRow, index % 2 === 1 ? styles.tableRowOdd : styles.tableRowEven, index === _this.state.detailRowId && styles.tableRowPressed]; + var urlCellViewStyle = styles.urlCellView; + var methodCellViewStyle = styles.methodCellView; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { + onPress: function onPress() { + _this._pressRow(index); + }, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: tableRowViewStyle, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: urlCellViewStyle, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: item.url + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: methodCellViewStyle, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: getTypeShortName(item.type) + }) + })] + }) + }) }); - } - if (Object.keys(nativeUpdate).length === 0) { - return; - } - if (inputRef.current != null) { - var _selection$start, _selection, _selection$end, _selection2; - viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, text, (_selection$start = (_selection = selection) == null ? void 0 : _selection.start) != null ? _selection$start : -1, (_selection$end = (_selection2 = selection) == null ? void 0 : _selection2.end) != null ? _selection$end : -1); - } - }, [mostRecentEventCount, inputRef, props.value, props.defaultValue, lastNativeText, selection, lastNativeSelection, text, viewCommands]); - useLayoutEffect(function () { - var inputRefValue = inputRef.current; - if (inputRefValue != null) { - _TextInputState.default.registerInput(inputRefValue); - return function () { - _TextInputState.default.unregisterInput(inputRefValue); - if (_TextInputState.default.currentlyFocusedInput() === inputRefValue) { - (0, _nullthrows.default)(inputRefValue).blur(); + }; + _this._indicateAdditionalRequests = function () { + if (_this._requestsListView) { + var distanceFromEndThreshold = LISTVIEW_CELL_HEIGHT * 2; + var _this$_requestsListVi = _this._requestsListViewScrollMetrics, + offset = _this$_requestsListVi.offset, + visibleLength = _this$_requestsListVi.visibleLength, + contentLength = _this$_requestsListVi.contentLength; + var distanceFromEnd = contentLength - visibleLength - offset; + var isCloseToEnd = distanceFromEnd <= distanceFromEndThreshold; + if (isCloseToEnd) { + _this._requestsListView.scrollToEnd(); + } else { + _this._requestsListView.flashScrollIndicators(); } - }; - } - }, [inputRef]); - function clear() { - if (inputRef.current != null) { - viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, '', 0, 0); - } - } - function setSelection(start, end) { - if (inputRef.current != null) { - viewCommands.setTextAndSelection(inputRef.current, mostRecentEventCount, null, start, end); - } - } - - function isFocused() { - return _TextInputState.default.currentlyFocusedInput() === inputRef.current; - } - function getNativeRef() { - return inputRef.current; + } + }; + _this._captureRequestsListView = function (listRef) { + _this._requestsListView = listRef; + }; + _this._requestsListViewOnScroll = function (e) { + _this._requestsListViewScrollMetrics.offset = e.nativeEvent.contentOffset.y; + _this._requestsListViewScrollMetrics.visibleLength = e.nativeEvent.layoutMeasurement.height; + _this._requestsListViewScrollMetrics.contentLength = e.nativeEvent.contentSize.height; + }; + _this._scrollDetailToTop = function () { + if (_this._detailScrollView) { + _this._detailScrollView.scrollTo({ + y: 0, + animated: false + }); + } + }; + _this._closeButtonClicked = function () { + _this.setState({ + detailRowId: null + }); + }; + return _this; } - var _setNativeRef = (0, _setAndForwardRef.default)({ - getForwardedRef: function getForwardedRef() { - return props.forwardedRef; - }, - setLocalRef: function setLocalRef(ref) { - inputRef.current = ref; + _$$_REQUIRE(_dependencyMap[9], "@babel/runtime/helpers/createClass")(NetworkOverlay, [{ + key: "_enableXHRInterception", + value: function _enableXHRInterception() { + var _this2 = this; + if (_$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").isInterceptorEnabled()) { + return; + } + // Show the XHR request item in listView as soon as it was opened. + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setOpenCallback(function (method, url, xhr) { + // Generate a global id for each intercepted xhr object, add this id + // to the xhr object as a private `_index` property to identify it, + // so that we can distinguish different xhr objects in callbacks. + xhr._index = nextXHRId++; + var xhrIndex = _this2.state.requests.length; + _this2._xhrIdMap[xhr._index] = xhrIndex; + var _xhr = { + id: xhrIndex, + type: 'XMLHttpRequest', + method: method, + url: url + }; + _this2.setState({ + requests: _this2.state.requests.concat(_xhr) + }, _this2._indicateAdditionalRequests); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setRequestHeaderCallback(function (header, value, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref2) { + var requests = _ref2.requests; + var networkRequestInfo = requests[xhrIndex]; + if (!networkRequestInfo.requestHeaders) { + networkRequestInfo.requestHeaders = {}; + } + networkRequestInfo.requestHeaders[header] = value; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setSendCallback(function (data, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref3) { + var requests = _ref3.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.dataSent = data; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setHeaderReceivedCallback(function (type, size, responseHeaders, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref4) { + var requests = _ref4.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.responseContentType = type; + networkRequestInfo.responseSize = size; + networkRequestInfo.responseHeaders = responseHeaders; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").setResponseCallback(function (status, timeout, response, responseURL, responseType, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + if (xhrIndex === -1) { + return; + } + _this2.setState(function (_ref5) { + var requests = _ref5.requests; + var networkRequestInfo = requests[xhrIndex]; + networkRequestInfo.status = status; + networkRequestInfo.timeout = timeout; + networkRequestInfo.response = response; + networkRequestInfo.responseURL = responseURL; + networkRequestInfo.responseType = responseType; + return { + requests: requests + }; + }); + }); - if (ref) { - ref.clear = clear; - ref.isFocused = isFocused; - ref.getNativeRef = getNativeRef; - ref.setSelection = setSelection; + // Fire above callbacks. + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").enableInterception(); + } + }, { + key: "_enableWebSocketInterception", + value: function _enableWebSocketInterception() { + var _this3 = this; + if (_$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").isInterceptorEnabled()) { + return; } + // Show the WebSocket request item in listView when 'connect' is called. + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setConnectCallback(function (url, protocols, options, socketId) { + var socketIndex = _this3.state.requests.length; + _this3._socketIdMap[socketId] = socketIndex; + var _webSocket = { + id: socketIndex, + type: 'WebSocket', + url: url, + protocols: protocols + }; + _this3.setState({ + requests: _this3.state.requests.concat(_webSocket) + }, _this3._indicateAdditionalRequests); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setCloseCallback(function (statusCode, closeReason, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + if (statusCode !== null && closeReason !== null) { + _this3.setState(function (_ref6) { + var requests = _ref6.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.status = statusCode; + networkRequestInfo.closeReason = closeReason; + return { + requests: requests + }; + }); + } + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setSendCallback(function (data, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref7) { + var requests = _ref7.requests; + var networkRequestInfo = requests[socketIndex]; + if (!networkRequestInfo.messages) { + networkRequestInfo.messages = ''; + } + networkRequestInfo.messages += 'Sent: ' + JSON.stringify(data) + '\n'; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnMessageCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref8) { + var requests = _ref8.requests; + var networkRequestInfo = requests[socketIndex]; + if (!networkRequestInfo.messages) { + networkRequestInfo.messages = ''; + } + networkRequestInfo.messages += 'Received: ' + JSON.stringify(message) + '\n'; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnCloseCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref9) { + var requests = _ref9.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.serverClose = message; + return { + requests: requests + }; + }); + }); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").setOnErrorCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + if (socketIndex === undefined) { + return; + } + _this3.setState(function (_ref10) { + var requests = _ref10.requests; + var networkRequestInfo = requests[socketIndex]; + networkRequestInfo.serverError = message; + return { + requests: requests + }; + }); + }); + + // Fire above callbacks. + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").enableInterception(); } - }); - var _onChange = function _onChange(event) { - var currentText = event.nativeEvent.text; - props.onChange && props.onChange(event); - props.onChangeText && props.onChangeText(currentText); - if (inputRef.current == null) { - return; + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._enableXHRInterception(); + this._enableWebSocketInterception(); } - setLastNativeText(currentText); - setMostRecentEventCount(event.nativeEvent.eventCount); - }; - var _onChangeSync = function _onChangeSync(event) { - var currentText = event.nativeEvent.text; - props.unstable_onChangeSync && props.unstable_onChangeSync(event); - props.unstable_onChangeTextSync && props.unstable_onChangeTextSync(currentText); - if (inputRef.current == null) { - return; + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _$$_REQUIRE(_dependencyMap[10], "../Network/XHRInterceptor").disableInterception(); + _$$_REQUIRE(_dependencyMap[11], "../WebSocket/WebSocketInterceptor").disableInterception(); } - setLastNativeText(currentText); - setMostRecentEventCount(event.nativeEvent.eventCount); - }; - var _onSelectionChange = function _onSelectionChange(event) { - props.onSelectionChange && props.onSelectionChange(event); - if (inputRef.current == null) { - return; + }, { + key: "_renderItemDetail", + value: function _renderItemDetail(id) { + var _this4 = this; + var requestItem = this.state.requests[id]; + var details = Object.keys(requestItem).map(function (key) { + if (key === 'id') { + return; + } + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.detailViewRow, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: [styles.detailViewText, styles.detailKeyCellView], + children: key + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: [styles.detailViewText, styles.detailValueCellView], + children: getStringByValue(requestItem[key]) + })] + }, key); + }); + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[6], "../Components/Touchable/TouchableHighlight"), { + style: styles.closeButton, + onPress: this._closeButtonClicked, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.closeButtonText, + children: "v" + }) + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[12], "../Components/ScrollView/ScrollView"), { + style: styles.detailScrollView, + ref: function ref(scrollRef) { + return _this4._detailScrollView = scrollRef; + }, + children: details + })] + }); } - setLastNativeSelection({ - selection: event.nativeEvent.selection, - mostRecentEventCount: mostRecentEventCount - }); - }; - var _onFocus = function _onFocus(event) { - _TextInputState.default.focusInput(inputRef.current); - if (props.onFocus) { - props.onFocus(event); + }, { + key: "_pressRow", + value: + /** + * Popup a scrollView to dynamically show detailed information of + * the request, when pressing a row in the network flow listView. + */ + function _pressRow(rowId) { + this.setState({ + detailRowId: rowId + }, this._scrollDetailToTop); } - }; - var _onBlur = function _onBlur(event) { - _TextInputState.default.blurInput(inputRef.current); - if (props.onBlur) { - props.onBlur(event); + }, { + key: "_getRequestIndexByXHRID", + value: function _getRequestIndexByXHRID(index) { + if (index === undefined) { + return -1; + } + var xhrIndex = this._xhrIdMap[index]; + if (xhrIndex === undefined) { + return -1; + } else { + return xhrIndex; + } } - }; - var _onScroll = function _onScroll(event) { - props.onScroll && props.onScroll(event); - }; - var textInput = null; - - var blurOnSubmit = (_props$blurOnSubmit = props.blurOnSubmit) != null ? _props$blurOnSubmit : !props.multiline; - var accessible = props.accessible !== false; - var focusable = props.focusable !== false; - var config = React.useMemo(function () { - return { - onPress: function onPress(event) { - if (props.editable !== false) { - if (inputRef.current != null) { - inputRef.current.focus(); - } - } - }, - onPressIn: props.onPressIn, - onPressOut: props.onPressOut, - cancelable: _Platform.default.OS === 'ios' ? !props.rejectResponderTermination : null - }; - }, [props.editable, props.onPressIn, props.onPressOut, props.rejectResponderTermination]); - - var caretHidden = props.caretHidden; - if (_Platform.default.isTesting) { - caretHidden = true; - } - - var _ref = (0, _usePressability.default)(config) || {}, - onBlur = _ref.onBlur, - onFocus = _ref.onFocus, - eventHandlers = (0, _objectWithoutProperties2.default)(_ref, _excluded); - if (_Platform.default.OS === 'ios') { - var RCTTextInputView = props.multiline === true ? RCTMultilineTextInputView : RCTSinglelineTextInputView; - var style = props.multiline === true ? _StyleSheet.default.flatten([styles.multilineInput, props.style]) : props.style; - var useOnChangeSync = (props.unstable_onChangeSync || props.unstable_onChangeTextSync) && !(props.onChange || props.onChangeText); - textInput = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(RCTTextInputView, Object.assign({ - ref: _setNativeRef - }, props, eventHandlers, { - accessible: accessible, - blurOnSubmit: blurOnSubmit, - caretHidden: caretHidden, - dataDetectorTypes: props.dataDetectorTypes, - focusable: focusable, - mostRecentEventCount: mostRecentEventCount, - onBlur: _onBlur, - onKeyPressSync: props.unstable_onKeyPressSync, - onChange: _onChange, - onChangeSync: useOnChangeSync === true ? _onChangeSync : null, - onContentSizeChange: props.onContentSizeChange, - onFocus: _onFocus, - onScroll: _onScroll, - onSelectionChange: _onSelectionChange, - onSelectionChangeShouldSetResponder: emptyFunctionThatReturnsTrue, - selection: selection, - style: style, - text: text - })); - } else if (_Platform.default.OS === 'android') { - var _props$placeholder; - var _style = [props.style]; - var autoCapitalize = props.autoCapitalize || 'sentences'; - var placeholder = (_props$placeholder = props.placeholder) != null ? _props$placeholder : ''; - var children = props.children; - var childCount = React.Children.count(children); - (0, _invariant.default)(!(props.value != null && childCount), 'Cannot specify both value and children.'); - if (childCount > 1) { - children = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_Text.default, { - children: children + }, { + key: "render", + value: function render() { + var _this$state = this.state, + requests = _this$state.requests, + detailRowId = _this$state.detailRowId; + return /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.container, + children: [detailRowId != null && this._renderItemDetail(detailRowId), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.listViewTitle, + children: requests.length > 0 && /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsxs(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.tableRow, + children: [/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.urlTitleCellView, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: "URL" + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[7], "../Components/View/View"), { + style: styles.methodTitleCellView, + children: /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[8], "../Text/Text"), { + style: styles.cellText, + numberOfLines: 1, + children: "Type" + }) + })] + }) + }), /*#__PURE__*/_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx(_$$_REQUIRE(_dependencyMap[13], "../Lists/FlatList"), { + ref: this._captureRequestsListView, + onScroll: this._requestsListViewOnScroll, + style: styles.listView, + data: requests, + renderItem: this._renderItem, + keyExtractor: keyExtractor, + extraData: this.state + })] }); } - textInput = (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(AndroidTextInput, Object.assign({ - ref: _setNativeRef - }, props, eventHandlers, { - accessible: accessible, - autoCapitalize: autoCapitalize, - blurOnSubmit: blurOnSubmit, - caretHidden: caretHidden, - children: children, - disableFullscreenUI: props.disableFullscreenUI, - focusable: focusable, - mostRecentEventCount: mostRecentEventCount, - onBlur: _onBlur, - onChange: _onChange, - onFocus: _onFocus - , - onScroll: _onScroll, - onSelectionChange: _onSelectionChange, - placeholder: placeholder, - selection: selection, - style: _style, - text: text, - textBreakStrategy: props.textBreakStrategy - })); - } - return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_TextAncestor.default.Provider, { - value: true, - children: textInput - }); - } - var ExportedForwardRef = React.forwardRef(function TextInput(_ref2, forwardedRef) { - var _ref2$allowFontScalin = _ref2.allowFontScaling, - allowFontScaling = _ref2$allowFontScalin === void 0 ? true : _ref2$allowFontScalin, - _ref2$rejectResponder = _ref2.rejectResponderTermination, - rejectResponderTermination = _ref2$rejectResponder === void 0 ? true : _ref2$rejectResponder, - _ref2$underlineColorA = _ref2.underlineColorAndroid, - underlineColorAndroid = _ref2$underlineColorA === void 0 ? 'transparent' : _ref2$underlineColorA, - restProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded2); - return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(InternalTextInput, Object.assign({ - allowFontScaling: allowFontScaling, - rejectResponderTermination: rejectResponderTermination, - underlineColorAndroid: underlineColorAndroid - }, restProps, { - forwardedRef: forwardedRef - })); - }); - - ExportedForwardRef.State = { - currentlyFocusedInput: _TextInputState.default.currentlyFocusedInput, - currentlyFocusedField: _TextInputState.default.currentlyFocusedField, - focusTextInput: _TextInputState.default.focusTextInput, - blurTextInput: _TextInputState.default.blurTextInput - }; - var styles = _StyleSheet.default.create({ - multilineInput: { - paddingTop: 5 - } - }); - - module.exports = ExportedForwardRef; -},402,[3,132,19,36,14,244,255,247,200,17,403,300,258,236,201,404,73],"node_modules/react-native/Libraries/Components/TextInput/TextInput.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - function nullthrows(x, message) { - if (x != null) { - return x; - } - var error = new Error(message !== undefined ? message : 'Got unexpected ' + x); - error.framesToPop = 1; - throw error; - } - module.exports = nullthrows; - module.exports.default = nullthrows; - Object.defineProperty(module.exports, '__esModule', { - value: true - }); -},403,[],"node_modules/nullthrows/nullthrows.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.__INTERNAL_VIEW_CONFIG = exports.Commands = void 0; - var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); - var _RCTTextInputViewConfig = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./RCTTextInputViewConfig")); - var NativeComponentRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "../../NativeComponent/NativeComponentRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - var Commands = (0, _codegenNativeCommands.default)({ - supportedCommands: ['focus', 'blur', 'setTextAndSelection'] - }); - exports.Commands = Commands; - var __INTERNAL_VIEW_CONFIG = Object.assign({ - uiViewClassName: 'RCTMultilineTextInputView' - }, _RCTTextInputViewConfig.default, { - validAttributes: Object.assign({}, _RCTTextInputViewConfig.default.validAttributes, { - dataDetectorTypes: true - }) - }); - exports.__INTERNAL_VIEW_CONFIG = __INTERNAL_VIEW_CONFIG; - var MultilineTextInputNativeComponent = NativeComponentRegistry.get('RCTMultilineTextInputView', function () { - return __INTERNAL_VIEW_CONFIG; - }); - - var _default = MultilineTextInputNativeComponent; - exports.default = _default; -},404,[3,202,209,211],"node_modules/react-native/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _BoundingDimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./BoundingDimensions")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); - var _Position = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./Position")); - var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../ReactNative/UIManager")); - var _SoundManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Sound/SoundManager")); - var _this2 = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/Components/Touchable/Touchable.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var extractSingleTouch = function extractSingleTouch(nativeEvent) { - var touches = nativeEvent.touches; - var changedTouches = nativeEvent.changedTouches; - var hasTouches = touches && touches.length > 0; - var hasChangedTouches = changedTouches && changedTouches.length > 0; - return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent; - }; - - var States = { - NOT_RESPONDER: 'NOT_RESPONDER', - RESPONDER_INACTIVE_PRESS_IN: 'RESPONDER_INACTIVE_PRESS_IN', - RESPONDER_INACTIVE_PRESS_OUT: 'RESPONDER_INACTIVE_PRESS_OUT', - RESPONDER_ACTIVE_PRESS_IN: 'RESPONDER_ACTIVE_PRESS_IN', - RESPONDER_ACTIVE_PRESS_OUT: 'RESPONDER_ACTIVE_PRESS_OUT', - RESPONDER_ACTIVE_LONG_PRESS_IN: 'RESPONDER_ACTIVE_LONG_PRESS_IN', - RESPONDER_ACTIVE_LONG_PRESS_OUT: 'RESPONDER_ACTIVE_LONG_PRESS_OUT', - ERROR: 'ERROR' - }; - - var baseStatesConditions = { - NOT_RESPONDER: false, - RESPONDER_INACTIVE_PRESS_IN: false, - RESPONDER_INACTIVE_PRESS_OUT: false, - RESPONDER_ACTIVE_PRESS_IN: false, - RESPONDER_ACTIVE_PRESS_OUT: false, - RESPONDER_ACTIVE_LONG_PRESS_IN: false, - RESPONDER_ACTIVE_LONG_PRESS_OUT: false, - ERROR: false - }; - var IsActive = Object.assign({}, baseStatesConditions, { - RESPONDER_ACTIVE_PRESS_OUT: true, - RESPONDER_ACTIVE_PRESS_IN: true - }); - - var IsPressingIn = Object.assign({}, baseStatesConditions, { - RESPONDER_INACTIVE_PRESS_IN: true, - RESPONDER_ACTIVE_PRESS_IN: true, - RESPONDER_ACTIVE_LONG_PRESS_IN: true - }); - var IsLongPressingIn = Object.assign({}, baseStatesConditions, { - RESPONDER_ACTIVE_LONG_PRESS_IN: true - }); - - var Signals = { - DELAY: 'DELAY', - RESPONDER_GRANT: 'RESPONDER_GRANT', - RESPONDER_RELEASE: 'RESPONDER_RELEASE', - RESPONDER_TERMINATED: 'RESPONDER_TERMINATED', - ENTER_PRESS_RECT: 'ENTER_PRESS_RECT', - LEAVE_PRESS_RECT: 'LEAVE_PRESS_RECT', - LONG_PRESS_DETECTED: 'LONG_PRESS_DETECTED' - }; - var Transitions = { - NOT_RESPONDER: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, - RESPONDER_RELEASE: States.ERROR, - RESPONDER_TERMINATED: States.ERROR, - ENTER_PRESS_RECT: States.ERROR, - LEAVE_PRESS_RECT: States.ERROR, - LONG_PRESS_DETECTED: States.ERROR + }]); + return NetworkOverlay; + }(React.Component); + var styles = _$$_REQUIRE(_dependencyMap[14], "../StyleSheet/StyleSheet").create({ + container: { + paddingTop: 10, + paddingBottom: 10, + paddingLeft: 5, + paddingRight: 5 }, - RESPONDER_INACTIVE_PRESS_IN: { - DELAY: States.RESPONDER_ACTIVE_PRESS_IN, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR + listViewTitle: { + height: 20 }, - RESPONDER_INACTIVE_PRESS_OUT: { - DELAY: States.RESPONDER_ACTIVE_PRESS_OUT, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR + listView: { + flex: 1, + height: 60 }, - RESPONDER_ACTIVE_PRESS_IN: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + tableRow: { + flexDirection: 'row', + flex: 1, + height: LISTVIEW_CELL_HEIGHT }, - RESPONDER_ACTIVE_PRESS_OUT: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR + tableRowEven: { + backgroundColor: '#555' }, - RESPONDER_ACTIVE_LONG_PRESS_IN: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, - LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + tableRowOdd: { + backgroundColor: '#000' }, - RESPONDER_ACTIVE_LONG_PRESS_OUT: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR + tableRowPressed: { + backgroundColor: '#3B5998' }, - error: { - DELAY: States.NOT_RESPONDER, - RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.NOT_RESPONDER, - LEAVE_PRESS_RECT: States.NOT_RESPONDER, - LONG_PRESS_DETECTED: States.NOT_RESPONDER - } - }; - - var HIGHLIGHT_DELAY_MS = 130; - var PRESS_EXPAND_PX = 20; - var LONG_PRESS_THRESHOLD = 500; - var LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS; - var LONG_PRESS_ALLOWED_MOVEMENT = 10; - - var TouchableMixin = { - componentDidMount: function componentDidMount() { - if (!_Platform.default.isTV) { - return; - } + cellText: { + color: 'white', + fontSize: 12 }, - componentWillUnmount: function componentWillUnmount() { - this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); - this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); - this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); + methodTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: '#444', + flex: 1 }, - touchableGetInitialState: function touchableGetInitialState() { - return { - touchable: { - touchState: undefined, - responderID: null - } - }; + urlTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + backgroundColor: '#444', + flex: 5, + paddingLeft: 3 }, - touchableHandleResponderTerminationRequest: function touchableHandleResponderTerminationRequest() { - return !this.props.rejectResponderTermination; + methodCellView: { + height: 15, + borderColor: '#DCD7CD', + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + flex: 1 }, - touchableHandleStartShouldSetResponder: function touchableHandleStartShouldSetResponder() { - return !this.props.disabled; + urlCellView: { + height: 15, + borderColor: '#DCD7CD', + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + flex: 5, + paddingLeft: 3 }, - touchableLongPressCancelsPress: function touchableLongPressCancelsPress() { - return true; + detailScrollView: { + flex: 1, + height: 180, + marginTop: 5, + marginBottom: 5 }, - touchableHandleResponderGrant: function touchableHandleResponderGrant(e) { - var dispatchID = e.currentTarget; - e.persist(); - this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); - this.pressOutDelayTimeout = null; - this.state.touchable.touchState = States.NOT_RESPONDER; - this.state.touchable.responderID = dispatchID; - this._receiveSignal(Signals.RESPONDER_GRANT, e); - var delayMS = this.touchableGetHighlightDelayMS !== undefined ? Math.max(this.touchableGetHighlightDelayMS(), 0) : HIGHLIGHT_DELAY_MS; - delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS; - if (delayMS !== 0) { - this.touchableDelayTimeout = setTimeout(this._handleDelay.bind(this, e), delayMS); - } else { - this._handleDelay(e); - } - var longDelayMS = this.touchableGetLongPressDelayMS !== undefined ? Math.max(this.touchableGetLongPressDelayMS(), 10) : LONG_PRESS_DELAY_MS; - longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS; - this.longPressDelayTimeout = setTimeout(this._handleLongDelay.bind(this, e), longDelayMS + delayMS); + detailKeyCellView: { + flex: 1.3 }, - touchableHandleResponderRelease: function touchableHandleResponderRelease(e) { - this.pressInLocation = null; - this._receiveSignal(Signals.RESPONDER_RELEASE, e); + detailValueCellView: { + flex: 2 }, - touchableHandleResponderTerminate: function touchableHandleResponderTerminate(e) { - this.pressInLocation = null; - this._receiveSignal(Signals.RESPONDER_TERMINATED, e); + detailViewRow: { + flexDirection: 'row', + paddingHorizontal: 3 }, - touchableHandleResponderMove: function touchableHandleResponderMove(e) { - if (!this.state.touchable.positionOnActivate) { - return; - } - var positionOnActivate = this.state.touchable.positionOnActivate; - var dimensionsOnActivate = this.state.touchable.dimensionsOnActivate; - var pressRectOffset = this.touchableGetPressRectOffset ? this.touchableGetPressRectOffset() : { - left: PRESS_EXPAND_PX, - right: PRESS_EXPAND_PX, - top: PRESS_EXPAND_PX, - bottom: PRESS_EXPAND_PX - }; - var pressExpandLeft = pressRectOffset.left; - var pressExpandTop = pressRectOffset.top; - var pressExpandRight = pressRectOffset.right; - var pressExpandBottom = pressRectOffset.bottom; - var hitSlop = this.touchableGetHitSlop ? this.touchableGetHitSlop() : null; - if (hitSlop) { - pressExpandLeft += hitSlop.left || 0; - pressExpandTop += hitSlop.top || 0; - pressExpandRight += hitSlop.right || 0; - pressExpandBottom += hitSlop.bottom || 0; - } - var touch = extractSingleTouch(e.nativeEvent); - var pageX = touch && touch.pageX; - var pageY = touch && touch.pageY; - if (this.pressInLocation) { - var movedDistance = this._getDistanceBetweenPoints(pageX, pageY, this.pressInLocation.pageX, this.pressInLocation.pageY); - if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) { - this._cancelLongPressDelayTimeout(); - } - } - var isTouchWithinActive = pageX > positionOnActivate.left - pressExpandLeft && pageY > positionOnActivate.top - pressExpandTop && pageX < positionOnActivate.left + dimensionsOnActivate.width + pressExpandRight && pageY < positionOnActivate.top + dimensionsOnActivate.height + pressExpandBottom; - if (isTouchWithinActive) { - var prevState = this.state.touchable.touchState; - this._receiveSignal(Signals.ENTER_PRESS_RECT, e); - var curState = this.state.touchable.touchState; - if (curState === States.RESPONDER_INACTIVE_PRESS_IN && prevState !== States.RESPONDER_INACTIVE_PRESS_IN) { - this._cancelLongPressDelayTimeout(); - } - } else { - this._cancelLongPressDelayTimeout(); - this._receiveSignal(Signals.LEAVE_PRESS_RECT, e); - } - }, - touchableHandleFocus: function touchableHandleFocus(e) { - this.props.onFocus && this.props.onFocus(e); + detailViewText: { + color: 'white', + fontSize: 11 }, - touchableHandleBlur: function touchableHandleBlur(e) { - this.props.onBlur && this.props.onBlur(e); + closeButtonText: { + color: 'white', + fontSize: 10 }, + closeButton: { + marginTop: 5, + backgroundColor: '#888', + justifyContent: 'center', + alignItems: 'center' + } + }); + module.exports = NetworkOverlay; +},425,[53,51,41,49,12,89,418,225,287,13,426,427,324,378,259],"node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - _remeasureMetricsOnActivation: function _remeasureMetricsOnActivation() { - var responderID = this.state.touchable.responderID; - if (responderID == null) { - return; - } - if (typeof responderID === 'number') { - _UIManager.default.measure(responderID, this._handleQueryLayout); - } else { - responderID.measure(this._handleQueryLayout); - } - }, - _handleQueryLayout: function _handleQueryLayout(l, t, w, h, globalX, globalY) { - if (!l && !t && !w && !h && !globalX && !globalY) { - return; - } - this.state.touchable.positionOnActivate && _Position.default.release(this.state.touchable.positionOnActivate); - this.state.touchable.dimensionsOnActivate && _BoundingDimensions.default.release(this.state.touchable.dimensionsOnActivate); - this.state.touchable.positionOnActivate = _Position.default.getPooled(globalX, globalY); - this.state.touchable.dimensionsOnActivate = _BoundingDimensions.default.getPooled(w, h); - }, - _handleDelay: function _handleDelay(e) { - this.touchableDelayTimeout = null; - this._receiveSignal(Signals.DELAY, e); - }, - _handleLongDelay: function _handleLongDelay(e) { - this.longPressDelayTimeout = null; - var curState = this.state.touchable.touchState; - if (curState === States.RESPONDER_ACTIVE_PRESS_IN || curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN) { - this._receiveSignal(Signals.LONG_PRESS_DETECTED, e); - } + 'use strict'; + + var originalXHROpen = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open; + var originalXHRSend = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send; + var originalXHRSetRequestHeader = _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader; + var openCallback; + var sendCallback; + var requestHeaderCallback; + var headerReceivedCallback; + var responseCallback; + var _isInterceptorEnabled = false; + + /** + * A network interceptor which monkey-patches XMLHttpRequest methods + * to gather all network requests/responses, in order to show their + * information in the React Native inspector development tool. + * This supports interception with XMLHttpRequest API, including Fetch API + * and any other third party libraries that depend on XMLHttpRequest. + */ + var XHRInterceptor = { + /** + * Invoked before XMLHttpRequest.open(...) is called. + */ + setOpenCallback: function setOpenCallback(callback) { + openCallback = callback; }, - _receiveSignal: function _receiveSignal(signal, e) { - var responderID = this.state.touchable.responderID; - var curState = this.state.touchable.touchState; - var nextState = Transitions[curState] && Transitions[curState][signal]; - if (!responderID && signal === Signals.RESPONDER_RELEASE) { - return; - } - if (!nextState) { - throw new Error('Unrecognized signal `' + signal + '` or state `' + curState + '` for Touchable responder `' + typeof this.state.touchable.responderID === 'number' ? this.state.touchable.responderID : 'host component' + '`'); - } - if (nextState === States.ERROR) { - throw new Error('Touchable cannot transition from `' + curState + '` to `' + signal + '` for responder `' + typeof this.state.touchable.responderID === 'number' ? this.state.touchable.responderID : '<>' + '`'); - } - if (curState !== nextState) { - this._performSideEffectsForTransition(curState, nextState, signal, e); - this.state.touchable.touchState = nextState; - } + /** + * Invoked before XMLHttpRequest.send(...) is called. + */ + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; }, - _cancelLongPressDelayTimeout: function _cancelLongPressDelayTimeout() { - this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); - this.longPressDelayTimeout = null; + /** + * Invoked after xhr's readyState becomes xhr.HEADERS_RECEIVED. + */ + setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) { + headerReceivedCallback = callback; }, - _isHighlight: function _isHighlight(state) { - return state === States.RESPONDER_ACTIVE_PRESS_IN || state === States.RESPONDER_ACTIVE_LONG_PRESS_IN; + /** + * Invoked after xhr's readyState becomes xhr.DONE. + */ + setResponseCallback: function setResponseCallback(callback) { + responseCallback = callback; }, - _savePressInLocation: function _savePressInLocation(e) { - var touch = extractSingleTouch(e.nativeEvent); - var pageX = touch && touch.pageX; - var pageY = touch && touch.pageY; - var locationX = touch && touch.locationX; - var locationY = touch && touch.locationY; - this.pressInLocation = { - pageX: pageX, - pageY: pageY, - locationX: locationX, - locationY: locationY - }; + /** + * Invoked before XMLHttpRequest.setRequestHeader(...) is called. + */ + setRequestHeaderCallback: function setRequestHeaderCallback(callback) { + requestHeaderCallback = callback; }, - _getDistanceBetweenPoints: function _getDistanceBetweenPoints(aX, aY, bX, bY) { - var deltaX = aX - bX; - var deltaY = aY - bY; - return Math.sqrt(deltaX * deltaX + deltaY * deltaY); + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; }, - _performSideEffectsForTransition: function _performSideEffectsForTransition(curState, nextState, signal, e) { - var curIsHighlight = this._isHighlight(curState); - var newIsHighlight = this._isHighlight(nextState); - var isFinalSignal = signal === Signals.RESPONDER_TERMINATED || signal === Signals.RESPONDER_RELEASE; - if (isFinalSignal) { - this._cancelLongPressDelayTimeout(); - } - var isInitialTransition = curState === States.NOT_RESPONDER && nextState === States.RESPONDER_INACTIVE_PRESS_IN; - var isActiveTransition = !IsActive[curState] && IsActive[nextState]; - if (isInitialTransition || isActiveTransition) { - this._remeasureMetricsOnActivation(); - } - if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) { - this.touchableHandleLongPress && this.touchableHandleLongPress(e); - } - if (newIsHighlight && !curIsHighlight) { - this._startHighlight(e); - } else if (!newIsHighlight && curIsHighlight) { - this._endHighlight(e); + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; } - if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) { - var hasLongPressHandler = !!this.props.onLongPress; - var pressIsLongButStillCallOnPress = IsLongPressingIn[curState] && ( - !hasLongPressHandler || !this.touchableLongPressCancelsPress()); + // Override `open` method for all XHR requests to intercept the request + // method and url, then pass them through the `openCallback`. + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = function (method, url) { + if (openCallback) { + openCallback(method, url, this); + } + originalXHROpen.apply(this, arguments); + }; - var shouldInvokePress = !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress; - if (shouldInvokePress && this.touchableHandlePress) { - if (!newIsHighlight && !curIsHighlight) { - this._startHighlight(e); - this._endHighlight(e); - } - if (_Platform.default.OS === 'android' && !this.props.touchSoundDisabled) { - _SoundManager.default.playTouchSound(); - } - this.touchableHandlePress(e); + // Override `setRequestHeader` method for all XHR requests to intercept + // the request headers, then pass them through the `requestHeaderCallback`. + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = function (header, value) { + if (requestHeaderCallback) { + requestHeaderCallback(header, value, this); } - } - this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); - this.touchableDelayTimeout = null; - }, - _startHighlight: function _startHighlight(e) { - this._savePressInLocation(e); - this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e); - }, - _endHighlight: function _endHighlight(e) { - var _this = this; - if (this.touchableHandleActivePressOut) { - if (this.touchableGetPressOutDelayMS && this.touchableGetPressOutDelayMS()) { - this.pressOutDelayTimeout = setTimeout(function () { - _this.touchableHandleActivePressOut(e); - }, this.touchableGetPressOutDelayMS()); - } else { - this.touchableHandleActivePressOut(e); + originalXHRSetRequestHeader.apply(this, arguments); + }; + + // Override `send` method of all XHR requests to intercept the data sent, + // register listeners to intercept the response, and invoke the callbacks. + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = function (data) { + var _this = this; + if (sendCallback) { + sendCallback(data, this); } - } + if (this.addEventListener) { + this.addEventListener('readystatechange', function () { + if (!_isInterceptorEnabled) { + return; + } + if (_this.readyState === _this.HEADERS_RECEIVED) { + var contentTypeString = _this.getResponseHeader('Content-Type'); + var contentLengthString = _this.getResponseHeader('Content-Length'); + var responseContentType, responseSize; + if (contentTypeString) { + responseContentType = contentTypeString.split(';')[0]; + } + if (contentLengthString) { + responseSize = parseInt(contentLengthString, 10); + } + if (headerReceivedCallback) { + headerReceivedCallback(responseContentType, responseSize, _this.getAllResponseHeaders(), _this); + } + } + if (_this.readyState === _this.DONE) { + if (responseCallback) { + responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this); + } + } + }, false); + } + originalXHRSend.apply(this, arguments); + }; + _isInterceptorEnabled = true; }, - withoutDefaultFocusAndBlur: {} - }; - - var touchableHandleFocus = TouchableMixin.touchableHandleFocus, - touchableHandleBlur = TouchableMixin.touchableHandleBlur, - TouchableMixinWithoutDefaultFocusAndBlur = (0, _objectWithoutProperties2.default)(TouchableMixin, ["touchableHandleFocus", "touchableHandleBlur"]); - TouchableMixin.withoutDefaultFocusAndBlur = TouchableMixinWithoutDefaultFocusAndBlur; - var Touchable = { - Mixin: TouchableMixin, - renderDebugView: function renderDebugView(_ref) { - var color = _ref.color, - hitSlop = _ref.hitSlop; - if (__DEV__) { - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[9], "../../Pressability/PressabilityDebug").PressabilityDebugView, { - color: color, - hitSlop: hitSlop - }); + // Unpatch XMLHttpRequest methods and remove the callbacks. + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; } - return null; + _isInterceptorEnabled = false; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.send = originalXHRSend; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.open = originalXHROpen; + _$$_REQUIRE(_dependencyMap[0], "./XMLHttpRequest").prototype.setRequestHeader = originalXHRSetRequestHeader; + responseCallback = null; + openCallback = null; + sendCallback = null; + headerReceivedCallback = null; + requestHeaderCallback = null; } }; - module.exports = Touchable; -},405,[3,132,36,406,14,408,213,260,73,256],"node_modules/react-native/Libraries/Components/Touchable/Touchable.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var _PooledClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PooledClass")); - var twoArgumentPooler = _PooledClass.default.twoArgumentPooler; - - function BoundingDimensions(width, height) { - this.width = width; - this.height = height; - } - BoundingDimensions.prototype.destructor = function () { - this.width = null; - this.height = null; - }; - - BoundingDimensions.getPooledFromElement = function (element) { - return BoundingDimensions.getPooled(element.offsetWidth, element.offsetHeight); - }; - _PooledClass.default.addPoolingTo(BoundingDimensions, twoArgumentPooler); - module.exports = BoundingDimensions; -},406,[3,407],"node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"); + module.exports = XHRInterceptor; +},426,[130],"node_modules/react-native/Libraries/Network/XHRInterceptor.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/NativeEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/Platform")); + var _NativeWebSocketModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeWebSocketModule")); + var _base64Js = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "base64-js")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ - 'use strict'; - - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "invariant")); - var oneArgumentPooler = function oneArgumentPooler(copyFieldsFrom) { - var Klass = this; - if (Klass.instancePool.length) { - var _instance = Klass.instancePool.pop(); - Klass.call(_instance, copyFieldsFrom); - return _instance; - } else { - return new Klass(copyFieldsFrom); - } - }; - - var twoArgumentPooler = function twoArgumentPooler(a1, a2) { - var Klass = this; - if (Klass.instancePool.length) { - var _instance2 = Klass.instancePool.pop(); - Klass.call(_instance2, a1, a2); - return _instance2; - } else { - return new Klass(a1, a2); - } - }; + var originalRCTWebSocketConnect = _NativeWebSocketModule.default.connect; + var originalRCTWebSocketSend = _NativeWebSocketModule.default.send; + var originalRCTWebSocketSendBinary = _NativeWebSocketModule.default.sendBinary; + var originalRCTWebSocketClose = _NativeWebSocketModule.default.close; + var eventEmitter; + var subscriptions; + var closeCallback; + var sendCallback; + var connectCallback; + var onOpenCallback; + var onMessageCallback; + var onErrorCallback; + var onCloseCallback; + var _isInterceptorEnabled = false; - var threeArgumentPooler = function threeArgumentPooler(a1, a2, a3) { - var Klass = this; - if (Klass.instancePool.length) { - var _instance3 = Klass.instancePool.pop(); - Klass.call(_instance3, a1, a2, a3); - return _instance3; - } else { - return new Klass(a1, a2, a3); - } - }; + /** + * A network interceptor which monkey-patches RCTWebSocketModule methods + * to gather all websocket network requests/responses, in order to show + * their information in the React Native inspector development tool. + */ - var fourArgumentPooler = function fourArgumentPooler(a1, a2, a3, a4) { - var Klass = this; - if (Klass.instancePool.length) { - var _instance4 = Klass.instancePool.pop(); - Klass.call(_instance4, a1, a2, a3, a4); - return _instance4; - } else { - return new Klass(a1, a2, a3, a4); - } - }; + var WebSocketInterceptor = { + /** + * Invoked when RCTWebSocketModule.close(...) is called. + */ + setCloseCallback: function setCloseCallback(callback) { + closeCallback = callback; + }, + /** + * Invoked when RCTWebSocketModule.send(...) or sendBinary(...) is called. + */ + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; + }, + /** + * Invoked when RCTWebSocketModule.connect(...) is called. + */ + setConnectCallback: function setConnectCallback(callback) { + connectCallback = callback; + }, + /** + * Invoked when event "websocketOpen" happens. + */ + setOnOpenCallback: function setOnOpenCallback(callback) { + onOpenCallback = callback; + }, + /** + * Invoked when event "websocketMessage" happens. + */ + setOnMessageCallback: function setOnMessageCallback(callback) { + onMessageCallback = callback; + }, + /** + * Invoked when event "websocketFailed" happens. + */ + setOnErrorCallback: function setOnErrorCallback(callback) { + onErrorCallback = callback; + }, + /** + * Invoked when event "websocketClosed" happens. + */ + setOnCloseCallback: function setOnCloseCallback(callback) { + onCloseCallback = callback; + }, + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; + }, + _unregisterEvents: function _unregisterEvents() { + subscriptions.forEach(function (e) { + return e.remove(); + }); + subscriptions = []; + }, + /** + * Add listeners to the RCTWebSocketModule events to intercept them. + */ + _registerEvents: function _registerEvents() { + subscriptions = [eventEmitter.addListener('websocketMessage', function (ev) { + if (onMessageCallback) { + onMessageCallback(ev.id, ev.type === 'binary' ? WebSocketInterceptor._arrayBufferToString(ev.data) : ev.data); + } + }), eventEmitter.addListener('websocketOpen', function (ev) { + if (onOpenCallback) { + onOpenCallback(ev.id); + } + }), eventEmitter.addListener('websocketClosed', function (ev) { + if (onCloseCallback) { + onCloseCallback(ev.id, { + code: ev.code, + reason: ev.reason + }); + } + }), eventEmitter.addListener('websocketFailed', function (ev) { + if (onErrorCallback) { + onErrorCallback(ev.id, { + message: ev.message + }); + } + })]; + }, + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; + } + eventEmitter = new _NativeEventEmitter.default( + // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior + // If you want to use the native module on other platforms, please remove this condition and test its behavior + _Platform.default.OS !== 'ios' ? null : _NativeWebSocketModule.default); + WebSocketInterceptor._registerEvents(); - var standardReleaser = function standardReleaser(instance) { - var Klass = this; - (0, _invariant.default)(instance instanceof Klass, 'Trying to release an instance into a pool of a different type.'); - instance.destructor(); - if (Klass.instancePool.length < Klass.poolSize) { - Klass.instancePool.push(instance); - } - }; - var DEFAULT_POOL_SIZE = 10; - var DEFAULT_POOLER = oneArgumentPooler; - var addPoolingTo = function addPoolingTo(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - NewKlass.instancePool = []; - NewKlass.getPooled = pooler || DEFAULT_POOLER; - if (!NewKlass.poolSize) { - NewKlass.poolSize = DEFAULT_POOL_SIZE; - } - NewKlass.release = standardReleaser; - return NewKlass; - }; - var PooledClass = { - addPoolingTo: addPoolingTo, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: twoArgumentPooler, - threeArgumentPooler: threeArgumentPooler, - fourArgumentPooler: fourArgumentPooler - }; - module.exports = PooledClass; -},407,[3,17],"node_modules/react-native/Libraries/Components/Touchable/PooledClass.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + // Override `connect` method for all RCTWebSocketModule requests + // to intercept the request url, protocols, options and socketId, + // then pass them through the `connectCallback`. + _NativeWebSocketModule.default.connect = function (url, protocols, options, socketId) { + if (connectCallback) { + connectCallback(url, protocols, options, socketId); + } + originalRCTWebSocketConnect.apply(this, arguments); + }; - 'use strict'; + // Override `send` method for all RCTWebSocketModule requests to intercept + // the data sent, then pass them through the `sendCallback`. + _NativeWebSocketModule.default.send = function (data, socketId) { + if (sendCallback) { + sendCallback(data, socketId); + } + originalRCTWebSocketSend.apply(this, arguments); + }; - var _PooledClass = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./PooledClass")); - var twoArgumentPooler = _PooledClass.default.twoArgumentPooler; + // Override `sendBinary` method for all RCTWebSocketModule requests to + // intercept the data sent, then pass them through the `sendCallback`. + _NativeWebSocketModule.default.sendBinary = function (data, socketId) { + if (sendCallback) { + sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId); + } + originalRCTWebSocketSendBinary.apply(this, arguments); + }; - function Position(left, top) { - this.left = left; - this.top = top; - } - Position.prototype.destructor = function () { - this.left = null; - this.top = null; - }; - _PooledClass.default.addPoolingTo(Position, twoArgumentPooler); - module.exports = Position; -},408,[3,407],"node_modules/react-native/Libraries/Components/Touchable/Position.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); - var _NativeActionSheetManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeActionSheetManager")); - var _excluded = ["tintColor", "cancelButtonTintColor", "destructiveButtonIndex"]; - var ActionSheetIOS = { - showActionSheetWithOptions: function showActionSheetWithOptions(options, callback) { - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof callback === 'function', 'Must provide a valid callback'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); - var tintColor = options.tintColor, - cancelButtonTintColor = options.cancelButtonTintColor, - destructiveButtonIndex = options.destructiveButtonIndex, - remainingOptions = (0, _objectWithoutProperties2.default)(options, _excluded); - var destructiveButtonIndices = null; - if (Array.isArray(destructiveButtonIndex)) { - destructiveButtonIndices = destructiveButtonIndex; - } else if (typeof destructiveButtonIndex === 'number') { - destructiveButtonIndices = [destructiveButtonIndex]; - } - var processedTintColor = _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(tintColor); - var processedCancelButtonTintColor = _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(cancelButtonTintColor); - _$$_REQUIRE(_dependencyMap[3], "invariant")(processedTintColor == null || typeof processedTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(processedCancelButtonTintColor == null || typeof processedCancelButtonTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor'); - _NativeActionSheetManager.default.showActionSheetWithOptions(Object.assign({}, remainingOptions, { - tintColor: processedTintColor, - cancelButtonTintColor: processedCancelButtonTintColor, - destructiveButtonIndices: destructiveButtonIndices - }), callback); + // Override `close` method for all RCTWebSocketModule requests to intercept + // the close information, then pass them through the `closeCallback`. + _NativeWebSocketModule.default.close = function () { + if (closeCallback) { + if (arguments.length === 3) { + closeCallback(arguments[0], arguments[1], arguments[2]); + } else { + closeCallback(null, null, arguments[0]); + } + } + originalRCTWebSocketClose.apply(this, arguments); + }; + _isInterceptorEnabled = true; }, - showShareActionSheetWithOptions: function showShareActionSheetWithOptions(options, failureCallback, successCallback) { - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof failureCallback === 'function', 'Must provide a valid failureCallback'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(typeof successCallback === 'function', 'Must provide a valid successCallback'); - _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); - _NativeActionSheetManager.default.showShareActionSheetWithOptions(Object.assign({}, options, { - tintColor: _$$_REQUIRE(_dependencyMap[4], "../StyleSheet/processColor")(options.tintColor) - }), failureCallback, successCallback); + _arrayBufferToString: function _arrayBufferToString(data) { + var value = _base64Js.default.toByteArray(data).buffer; + if (value === undefined || value === null) { + return '(no value)'; + } + if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && value instanceof ArrayBuffer) { + return `ArrayBuffer {${String(Array.from(new Uint8Array(value)))}}`; + } + return value; }, - dismissActionSheet: function dismissActionSheet() { - _$$_REQUIRE(_dependencyMap[3], "invariant")(_NativeActionSheetManager.default, "ActionSheetManager doesn't exist"); - if (typeof _NativeActionSheetManager.default.dismissActionSheet === 'function') { - _NativeActionSheetManager.default.dismissActionSheet(); + // Unpatch RCTWebSocketModule methods and remove the callbacks. + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; } + _isInterceptorEnabled = false; + _NativeWebSocketModule.default.send = originalRCTWebSocketSend; + _NativeWebSocketModule.default.sendBinary = originalRCTWebSocketSendBinary; + _NativeWebSocketModule.default.close = originalRCTWebSocketClose; + _NativeWebSocketModule.default.connect = originalRCTWebSocketConnect; + connectCallback = null; + closeCallback = null; + sendCallback = null; + onOpenCallback = null; + onMessageCallback = null; + onCloseCallback = null; + onErrorCallback = null; + WebSocketInterceptor._unregisterEvents(); } }; - module.exports = ActionSheetIOS; -},409,[3,132,410,17,159],"node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js"); + module.exports = WebSocketInterceptor; +},427,[3,151,17,152,142],"node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + exports.default = DevtoolsOverlay; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Components/View/View")); + var _ReactNativeFeatureFlags = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../ReactNative/ReactNativeFeatureFlags")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../StyleSheet/StyleSheet")); + var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../Utilities/Dimensions")); + var _ElementBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./ElementBox")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Inspector/DevtoolsOverlay.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('ActionSheetManager'); - exports.default = _default; -},410,[16],"node_modules/react-native/Libraries/ActionSheetIOS/NativeActionSheetManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _createPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/createPerformanceLogger")); - var _NativeHeadlessJsTaskSupport = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeHeadlessJsTaskSupport")); - var _HeadlessJsTaskError = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./HeadlessJsTaskError")); - var runnables = {}; - var runCount = 1; - var sections = {}; - var taskProviders = new Map(); - var taskCancelProviders = new Map(); - var componentProviderInstrumentationHook = function componentProviderInstrumentationHook(component) { - return component(); - }; - var wrapperComponentProvider; - var showArchitectureIndicator = false; + var useEffect = React.useEffect, + useState = React.useState, + useCallback = React.useCallback, + useRef = React.useRef; + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + function DevtoolsOverlay(_ref) { + var inspectedView = _ref.inspectedView; + var _useState = useState(null), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + inspected = _useState2[0], + setInspected = _useState2[1]; + var _useState3 = useState(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isInspecting = _useState4[0], + setIsInspecting = _useState4[1]; + var devToolsAgentRef = useRef(null); + useEffect(function () { + var devToolsAgent = null; + var hideTimeoutId = null; + function onAgentHideNativeHighlight() { + // we wait to actually hide in order to avoid flicker + clearTimeout(hideTimeoutId); + hideTimeoutId = setTimeout(function () { + setInspected(null); + }, 100); + } + function onAgentShowNativeHighlight(node) { + var _ref2, _node$publicInstance; + clearTimeout(hideTimeoutId); - var AppRegistry = { - setWrapperComponentProvider: function setWrapperComponentProvider(provider) { - wrapperComponentProvider = provider; - }, - enableArchitectureIndicator: function enableArchitectureIndicator(enabled) { - showArchitectureIndicator = enabled; - }, - registerConfig: function registerConfig(config) { - config.forEach(function (appConfig) { - if (appConfig.run) { - AppRegistry.registerRunnable(appConfig.appKey, appConfig.run); - } else { - _$$_REQUIRE(_dependencyMap[4], "invariant")(appConfig.component != null, 'AppRegistry.registerConfig(...): Every config is expected to set ' + 'either `run` or `component`, but `%s` has neither.', appConfig.appKey); - AppRegistry.registerComponent(appConfig.appKey, appConfig.component, appConfig.section); - } - }); - }, - registerComponent: function registerComponent(appKey, componentProvider, section) { - var scopedPerformanceLogger = (0, _createPerformanceLogger.default)(); - runnables[appKey] = { - componentProvider: componentProvider, - run: function run(appParameters, displayMode) { - var _appParameters$initia; - var concurrentRootEnabled = ((_appParameters$initia = appParameters.initialProps) == null ? void 0 : _appParameters$initia.concurrentRoot) || appParameters.concurrentRoot; - _$$_REQUIRE(_dependencyMap[5], "./renderApplication")(componentProviderInstrumentationHook(componentProvider, scopedPerformanceLogger), appParameters.initialProps, appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric, showArchitectureIndicator, scopedPerformanceLogger, appKey === 'LogBox', appKey, (0, _$$_REQUIRE(_dependencyMap[6], "./DisplayMode").coerceDisplayMode)(displayMode), concurrentRootEnabled); + // `publicInstance` => Fabric + // TODO: remove this check when syncing the new version of the renderer from React to React Native. + // `canonical` => Legacy Fabric + // `node` => Legacy renderer + var component = (_ref2 = (_node$publicInstance = node.publicInstance) != null ? _node$publicInstance : node.canonical) != null ? _ref2 : node; + if (!component || !component.measure) { + return; } - }; - if (section) { - sections[appKey] = runnables[appKey]; - } - return appKey; - }, - registerRunnable: function registerRunnable(appKey, run) { - runnables[appKey] = { - run: run - }; - return appKey; - }, - registerSection: function registerSection(appKey, component) { - AppRegistry.registerComponent(appKey, component, true); - }, - getAppKeys: function getAppKeys() { - return Object.keys(runnables); - }, - getSectionKeys: function getSectionKeys() { - return Object.keys(sections); - }, - getSections: function getSections() { - return Object.assign({}, sections); - }, - getRunnable: function getRunnable(appKey) { - return runnables[appKey]; - }, - getRegistry: function getRegistry() { - return { - sections: AppRegistry.getSectionKeys(), - runnables: Object.assign({}, runnables) - }; - }, - setComponentProviderInstrumentationHook: function setComponentProviderInstrumentationHook(hook) { - componentProviderInstrumentationHook = hook; - }, - runApplication: function runApplication(appKey, appParameters, displayMode) { - if (appKey !== 'LogBox') { - var logParams = __DEV__ ? '" with ' + JSON.stringify(appParameters) : ''; - var msg = 'Running "' + appKey + logParams; - _$$_REQUIRE(_dependencyMap[7], "../Utilities/infoLog")(msg); - _$$_REQUIRE(_dependencyMap[8], "../BugReporting/BugReporting").addSource('AppRegistry.runApplication' + runCount++, function () { - return msg; - }); - } - _$$_REQUIRE(_dependencyMap[4], "invariant")(runnables[appKey] && runnables[appKey].run, "\"" + appKey + "\" has not been registered. This can happen if:\n" + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); - _$$_REQUIRE(_dependencyMap[9], "../Utilities/SceneTracker").setActiveScene({ - name: appKey - }); - runnables[appKey].run(appParameters, displayMode); - }, - setSurfaceProps: function setSurfaceProps(appKey, appParameters, displayMode) { - if (appKey !== 'LogBox') { - var msg = 'Updating props for Surface "' + appKey + '" with ' + JSON.stringify(appParameters); - _$$_REQUIRE(_dependencyMap[7], "../Utilities/infoLog")(msg); - _$$_REQUIRE(_dependencyMap[8], "../BugReporting/BugReporting").addSource('AppRegistry.setSurfaceProps' + runCount++, function () { - return msg; + component.measure(function (x, y, width, height, left, top) { + setInspected({ + frame: { + left: left, + top: top, + width: width, + height: height + } + }); }); } - _$$_REQUIRE(_dependencyMap[4], "invariant")(runnables[appKey] && runnables[appKey].run, "\"" + appKey + "\" has not been registered. This can happen if:\n" + '* Metro (the local dev server) is run from the wrong folder. ' + 'Check if Metro is running, stop it and restart it in the current project.\n' + "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."); - runnables[appKey].run(appParameters, displayMode); - }, - unmountApplicationComponentAtRootTag: function unmountApplicationComponentAtRootTag(rootTag) { - _$$_REQUIRE(_dependencyMap[10], "../Renderer/shims/ReactNative").unmountComponentAtNodeAndRemoveContainer(rootTag); - }, - registerHeadlessTask: function registerHeadlessTask(taskKey, taskProvider) { - this.registerCancellableHeadlessTask(taskKey, taskProvider, function () { - return function () { - }; - }); - }, - registerCancellableHeadlessTask: function registerCancellableHeadlessTask(taskKey, taskProvider, taskCancelProvider) { - if (taskProviders.has(taskKey)) { - console.warn("registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '" + taskKey + "'"); + function cleanup() { + var currentAgent = devToolsAgent; + if (currentAgent != null) { + currentAgent.removeListener('hideNativeHighlight', onAgentHideNativeHighlight); + currentAgent.removeListener('showNativeHighlight', onAgentShowNativeHighlight); + currentAgent.removeListener('shutdown', cleanup); + currentAgent.removeListener('startInspectingNative', onStartInspectingNative); + currentAgent.removeListener('stopInspectingNative', onStopInspectingNative); + devToolsAgent = null; + } + devToolsAgentRef.current = null; + } + function onStartInspectingNative() { + setIsInspecting(true); + } + function onStopInspectingNative() { + setIsInspecting(false); + } + function _attachToDevtools(agent) { + devToolsAgent = agent; + devToolsAgentRef.current = agent; + agent.addListener('hideNativeHighlight', onAgentHideNativeHighlight); + agent.addListener('showNativeHighlight', onAgentShowNativeHighlight); + agent.addListener('shutdown', cleanup); + agent.addListener('startInspectingNative', onStartInspectingNative); + agent.addListener('stopInspectingNative', onStopInspectingNative); + } + hook.on('react-devtools', _attachToDevtools); + if (hook.reactDevtoolsAgent) { + _attachToDevtools(hook.reactDevtoolsAgent); } - taskProviders.set(taskKey, taskProvider); - taskCancelProviders.set(taskKey, taskCancelProvider); - }, - startHeadlessTask: function startHeadlessTask(taskId, taskKey, data) { - var taskProvider = taskProviders.get(taskKey); - if (!taskProvider) { - console.warn("No task registered for key " + taskKey); - if (_NativeHeadlessJsTaskSupport.default) { - _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); - } + return function () { + hook.off('react-devtools', _attachToDevtools); + cleanup(); + }; + }, []); + var findViewForLocation = useCallback(function (x, y) { + var agent = devToolsAgentRef.current; + if (agent == null) { return; } - taskProvider()(data).then(function () { - if (_NativeHeadlessJsTaskSupport.default) { - _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); - } - }).catch(function (reason) { - console.error(reason); - if (_NativeHeadlessJsTaskSupport.default && reason instanceof _HeadlessJsTaskError.default) { - _NativeHeadlessJsTaskSupport.default.notifyTaskRetry(taskId).then(function (retryPosted) { - if (!retryPosted) { - _NativeHeadlessJsTaskSupport.default.notifyTaskFinished(taskId); - } + _$$_REQUIRE(_dependencyMap[8], "./getInspectorDataForViewAtPoint")(inspectedView, x, y, function (viewData) { + var touchedViewTag = viewData.touchedViewTag, + closestInstance = viewData.closestInstance, + frame = viewData.frame; + if (closestInstance != null || touchedViewTag != null) { + // We call `selectNode` for both non-fabric(viewTag) and fabric(instance), + // this makes sure it works for both architectures. + agent.selectNode(_$$_REQUIRE(_dependencyMap[9], "../ReactNative/RendererProxy").findNodeHandle(touchedViewTag)); + if (closestInstance != null) { + agent.selectNode(closestInstance); + } + setInspected({ + frame: frame }); + return true; } + return false; }); - }, - cancelHeadlessTask: function cancelHeadlessTask(taskId, taskKey) { - var taskCancelProvider = taskCancelProviders.get(taskKey); - if (!taskCancelProvider) { - throw new Error("No task canceller registered for key '" + taskKey + "'"); + }, [inspectedView]); + var stopInspecting = useCallback(function () { + var agent = devToolsAgentRef.current; + if (agent == null) { + return; } - taskCancelProvider()(); - } - }; - if (!(global.RN$Bridgeless === true)) { - _$$_REQUIRE(_dependencyMap[11], "../BatchedBridge/BatchedBridge").registerCallableModule('AppRegistry', AppRegistry); - if (__DEV__) { - var LogBoxInspector = _$$_REQUIRE(_dependencyMap[12], "../LogBox/LogBoxInspectorContainer").default; - AppRegistry.registerComponent('LogBox', function () { - return LogBoxInspector; - }); - } else { - AppRegistry.registerComponent('LogBox', function () { - return function NoOp() { - return null; - }; - }); + agent.stopInspectingNative(true); + setIsInspecting(false); + setInspected(null); + }, []); + var onPointerMove = useCallback(function (e) { + findViewForLocation(e.nativeEvent.x, e.nativeEvent.y); + }, [findViewForLocation]); + var onResponderMove = useCallback(function (e) { + findViewForLocation(e.nativeEvent.touches[0].locationX, e.nativeEvent.touches[0].locationY); + }, [findViewForLocation]); + var shouldSetResponder = useCallback(function (e) { + onResponderMove(e); + return true; + }, [onResponderMove]); + var highlight = inspected ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_ElementBox.default, { + frame: inspected.frame + }) : null; + if (isInspecting) { + var events = + // Pointer events only work on fabric + _ReactNativeFeatureFlags.default.shouldEmitW3CPointerEvents() ? { + onPointerMove: onPointerMove, + onPointerDown: onPointerMove, + onPointerUp: stopInspecting + } : { + onStartShouldSetResponder: shouldSetResponder, + onResponderMove: onResponderMove, + onResponderRelease: stopInspecting + }; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, Object.assign({ + nativeID: "devToolsInspectorOverlay", + style: [styles.inspector, { + height: _Dimensions.default.get('window').height + }] + }, events, { + children: highlight + })); } + return highlight; } - module.exports = AppRegistry; -},411,[3,123,412,413,17,414,418,124,419,422,34,23,423],"node_modules/react-native/Libraries/ReactNative/AppRegistry.js"); + var styles = _StyleSheet.default.create({ + inspector: { + backgroundColor: 'transparent', + position: 'absolute', + left: 0, + top: 0, + right: 0 + } + }); +},428,[3,22,225,139,259,247,265,41,261,37,89],"node_modules/react-native/Libraries/Inspector/DevtoolsOverlay.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + exports.default = TraceUpdateOverlay; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _UIManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../ReactNative/UIManager")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/processColor")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/Platform")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../View/View")); + var _TraceUpdateOverlayNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./TraceUpdateOverlayNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('HeadlessJsTaskSupport'); - exports.default = _default; -},412,[16],"node_modules/react-native/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/createClass")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/wrapNativeSuper")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var HeadlessJsTaskError = function (_Error) { - (0, _inherits2.default)(HeadlessJsTaskError, _Error); - var _super = _createSuper(HeadlessJsTaskError); - function HeadlessJsTaskError() { - (0, _classCallCheck2.default)(this, HeadlessJsTaskError); - return _super.apply(this, arguments); - } - return (0, _createClass2.default)(HeadlessJsTaskError); - }((0, _wrapNativeSuper2.default)(Error)); - exports.default = HeadlessJsTaskError; -},413,[3,13,12,50,47,46,52],"node_modules/react-native/Libraries/ReactNative/HeadlessJsTaskError.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Utilities/GlobalPerformanceLogger")); - var _PerformanceLoggerContext = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../Utilities/PerformanceLoggerContext")); - var _getCachedComponentWithDebugName = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./getCachedComponentWithDebugName")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/ReactNative/renderApplication.js"; - var React = _$$_REQUIRE(_dependencyMap[4], "react"); - _$$_REQUIRE(_dependencyMap[5], "../Utilities/BackHandler"); - function renderApplication(RootComponent, initialProps, rootTag, WrapperComponent, fabric, showArchitectureIndicator, scopedPerformanceLogger, isLogBox, debugName, displayMode, useConcurrentRoot) { - _$$_REQUIRE(_dependencyMap[6], "invariant")(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); - var performanceLogger = scopedPerformanceLogger != null ? scopedPerformanceLogger : _GlobalPerformanceLogger.default; - var renderable = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_PerformanceLoggerContext.default.Provider, { - value: performanceLogger, - children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[8], "./AppContainer"), { - rootTag: rootTag, - fabric: fabric, - showArchitectureIndicator: showArchitectureIndicator, - WrapperComponent: WrapperComponent, - initialProps: initialProps != null ? initialProps : Object.freeze({}), - internal_excludeLogBox: isLogBox, - children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(RootComponent, Object.assign({}, initialProps, { - rootTag: rootTag - })) + var useEffect = React.useEffect, + useRef = React.useRef, + useState = React.useState; + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var isNativeComponentReady = _Platform.default.OS === 'android' && _UIManager.default.hasViewManagerConfig('TraceUpdateOverlay'); + var devToolsAgent; + function TraceUpdateOverlay() { + var _useState = useState(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + overlayDisabled = _useState2[0], + setOverlayDisabled = _useState2[1]; + // This effect is designed to be explicitly shown here to avoid re-subscribe from the same + // overlay component. + useEffect(function () { + if (!isNativeComponentReady) { + return; + } + function attachToDevtools(agent) { + devToolsAgent = agent; + agent.addListener('drawTraceUpdates', onAgentDrawTraceUpdates); + agent.addListener('disableTraceUpdates', onAgentDisableTraceUpdates); + } + function subscribe() { + hook == null ? void 0 : hook.on('react-devtools', attachToDevtools); + if (hook != null && hook.reactDevtoolsAgent) { + attachToDevtools(hook.reactDevtoolsAgent); + } + } + function unsubscribe() { + hook == null ? void 0 : hook.off('react-devtools', attachToDevtools); + var agent = devToolsAgent; + if (agent != null) { + agent.removeListener('drawTraceUpdates', onAgentDrawTraceUpdates); + agent.removeListener('disableTraceUpdates', onAgentDisableTraceUpdates); + devToolsAgent = null; + } + } + function onAgentDrawTraceUpdates() { + var nodesToDraw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + // If overlay is disabled before, now it's enabled. + setOverlayDisabled(false); + var newFramesToDraw = []; + nodesToDraw.forEach(function (_ref) { + var _ref2, _node$publicInstance; + var node = _ref.node, + color = _ref.color; + // `publicInstance` => Fabric + // TODO: remove this check when syncing the new version of the renderer from React to React Native. + // `canonical` => Legacy Fabric + // `node` => Legacy renderer + var component = (_ref2 = (_node$publicInstance = node.publicInstance) != null ? _node$publicInstance : node.canonical) != null ? _ref2 : node; + if (!component || !component.measure) { + return; + } + var frameToDrawPromise = new Promise(function (resolve) { + // The if statement here is to make flow happy + if (component.measure) { + // TODO(T145522797): We should refactor this to use `getBoundingClientRect` when Paper is no longer supported. + component.measure(function (x, y, width, height, left, top) { + resolve({ + rect: { + left: left, + top: top, + width: width, + height: height + }, + color: (0, _processColor.default)(color) + }); + }); + } + }); + newFramesToDraw.push(frameToDrawPromise); + }); + Promise.all(newFramesToDraw).then(function (results) { + if (nativeComponentRef.current != null) { + _TraceUpdateOverlayNativeComponent.Commands.draw(nativeComponentRef.current, JSON.stringify(results.filter(function (_ref3) { + var rect = _ref3.rect, + color = _ref3.color; + return rect.width >= 0 && rect.height >= 0; + }))); + } + }, function (err) { + console.error(`Failed to measure updated traces. Error: ${err}`); + }); + } + function onAgentDisableTraceUpdates() { + // When trace updates are disabled from the backend, we won't receive draw events until it's enabled by the next draw. We can safely remove the overlay as it's not needed now. + setOverlayDisabled(true); + } + subscribe(); + return unsubscribe; + }, []); // Only run once when the overlay initially rendered + + var nativeComponentRef = useRef(null); + return !overlayDisabled && isNativeComponentReady && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_View.default, { + pointerEvents: "none", + style: styles.overlay, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(_TraceUpdateOverlayNativeComponent.default, { + ref: nativeComponentRef, + style: styles.overlay }) }); - if (__DEV__ && debugName) { - var RootComponentWithMeaningfulName = (0, _getCachedComponentWithDebugName.default)(debugName + "(RootComponent)"); - renderable = (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(RootComponentWithMeaningfulName, { - children: renderable - }); - } - performanceLogger.startTimespan('renderApplication_React_render'); - performanceLogger.setExtra('usedReactConcurrentRoot', useConcurrentRoot ? '1' : '0'); - performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0'); - if (fabric) { - _$$_REQUIRE(_dependencyMap[9], "../Renderer/shims/ReactFabric").render(renderable, rootTag, null, useConcurrentRoot); - } else { - _$$_REQUIRE(_dependencyMap[10], "../Renderer/shims/ReactNative").render(renderable, rootTag); - } - performanceLogger.stopTimespan('renderApplication_React_render'); } - module.exports = renderApplication; -},414,[3,122,415,416,36,417,17,73,359,203,34],"node_modules/react-native/Libraries/ReactNative/renderApplication.js"); + var styles = _StyleSheet.default.create({ + overlay: { + position: 'absolute', + top: 0, + bottom: 0, + left: 0, + right: 0 + } + }); +},429,[3,22,230,174,259,17,225,430,41,89],"node_modules/react-native/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - exports.usePerformanceLogger = usePerformanceLogger; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _GlobalPerformanceLogger = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./GlobalPerformanceLogger")); + exports.default = exports.Commands = void 0; + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeCommands")); + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/codegenNativeComponent")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - var PerformanceLoggerContext = React.createContext(_GlobalPerformanceLogger.default); - if (__DEV__) { - PerformanceLoggerContext.displayName = 'PerformanceLoggerContext'; - } - function usePerformanceLogger() { - return (0, React.useContext)(PerformanceLoggerContext); - } - var _default = PerformanceLoggerContext; + var Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['draw'] + }); + exports.Commands = Commands; + var _default = (0, _codegenNativeComponent.default)('TraceUpdateOverlay'); exports.default = _default; -},415,[36,3,122],"node_modules/react-native/Libraries/Utilities/PerformanceLoggerContext.js"); +},430,[3,257,273,41],"node_modules/react-native/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlayNativeComponent.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = getCachedComponentWithDisplayName; + exports._LogBoxNotificationContainer = _LogBoxNotificationContainer; + exports.default = void 0; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../StyleSheet/StyleSheet")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "./Data/LogBoxData")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./Data/LogBoxLog")); + var _LogBoxNotification = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./UI/LogBoxNotification")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _LogBoxNotificationContainer(props) { + var logs = props.logs; + var onDismissWarns = function onDismissWarns() { + LogBoxData.clearWarnings(); + }; + var onDismissErrors = function onDismissErrors() { + LogBoxData.clearErrors(); + }; + var setSelectedLog = function setSelectedLog(index) { + LogBoxData.setSelectedLog(index); + }; + function openLog(log) { + var index = logs.length - 1; - var cache = new Map(); - function getCachedComponentWithDisplayName(displayName) { - var ComponentWithDisplayName = cache.get(displayName); - if (!ComponentWithDisplayName) { - ComponentWithDisplayName = function ComponentWithDisplayName(_ref) { - var children = _ref.children; - return children; - }; - ComponentWithDisplayName.displayName = displayName; - cache.set(displayName, ComponentWithDisplayName); + // Stop at zero because if we don't find any log, we'll open the first log. + while (index > 0 && logs[index] !== log) { + index -= 1; + } + setSelectedLog(index); } - return ComponentWithDisplayName; + if (logs.length === 0 || props.isDisabled === true) { + return null; + } + var warnings = logs.filter(function (log) { + return log.level === 'warn'; + }); + var errors = logs.filter(function (log) { + return log.level === 'error' || log.level === 'fatal'; + }); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.list, + children: [warnings.length > 0 && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: styles.toast, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { + log: warnings[warnings.length - 1], + level: "warn", + totalLogCount: warnings.length, + onPressOpen: function onPressOpen() { + return openLog(warnings[warnings.length - 1]); + }, + onPressDismiss: onDismissWarns + }) + }), errors.length > 0 && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: styles.toast, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxNotification.default, { + log: errors[errors.length - 1], + level: "error", + totalLogCount: errors.length, + onPressOpen: function onPressOpen() { + return openLog(errors[errors.length - 1]); + }, + onPressDismiss: onDismissErrors + }) + })] + }); } -},416,[],"node_modules/react-native/Libraries/ReactNative/getCachedComponentWithDebugName.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], "../Components/UnimplementedViews/UnimplementedView"); - function emptyFunction() {} - var BackHandler = { - exitApp: emptyFunction, - addEventListener: function addEventListener(_eventName, _handler) { - return { - remove: emptyFunction - }; + var styles = _StyleSheet.default.create({ + list: { + bottom: 20, + left: 10, + right: 10, + position: 'absolute' }, - removeEventListener: function removeEventListener(_eventName, _handler) {} - }; - module.exports = BackHandler; -},417,[249],"node_modules/react-native/Libraries/Utilities/BackHandler.ios.js"); + toast: { + borderRadius: 8, + marginBottom: 5, + overflow: 'hidden' + } + }); + var _default = LogBoxData.withSubscription(_LogBoxNotificationContainer); + exports.default = _default; +},431,[3,225,259,77,79,432,41,89],"node_modules/react-native/Libraries/LogBox/LogBoxNotificationContainer.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.coerceDisplayMode = coerceDisplayMode; exports.default = void 0; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Image/Image")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "../Data/LogBoxData")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Data/LogBoxLog")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); + var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxMessage")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxLogNotification(props) { + var totalLogCount = props.totalLogCount, + level = props.level, + log = props.log; - var DisplayMode = Object.freeze({ - VISIBLE: 1, - SUSPENDED: 2, - HIDDEN: 3 - }); - function coerceDisplayMode(value) { - switch (value) { - case DisplayMode.SUSPENDED: - return DisplayMode.SUSPENDED; - case DisplayMode.HIDDEN: - return DisplayMode.HIDDEN; - default: - return DisplayMode.VISIBLE; - } - } - var _default = DisplayMode; - exports.default = _default; -},418,[],"node_modules/react-native/Libraries/ReactNative/DisplayMode.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../EventEmitter/RCTDeviceEventEmitter")); - var _NativeRedBox = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../NativeModules/specs/NativeRedBox")); - var _NativeBugReporting = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./NativeBugReporting")); - - function defaultExtras() { - BugReporting.addFileSource('react_hierarchy.txt', function () { - return _$$_REQUIRE(_dependencyMap[7], "./dumpReactTree")(); + // Eagerly symbolicate so the stack is available when pressing to inspect. + React.useEffect(function () { + LogBoxData.symbolicateLogLazy(log); + }, [log]); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: toastStyles.container, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + onPress: props.onPressOpen, + style: toastStyles.press, + backgroundColor: { + default: LogBoxStyle.getBackgroundColor(1), + pressed: LogBoxStyle.getBackgroundColor(0.9) + }, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_View.default, { + style: toastStyles.content, + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(CountBadge, { + count: totalLogCount, + level: level + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Message, { + message: log.message + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(DismissButton, { + onPress: props.onPressDismiss + })] + }) + }) }); } - - var BugReporting = function () { - function BugReporting() { - (0, _classCallCheck2.default)(this, BugReporting); + function CountBadge(props) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: countStyles.outside, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: [countStyles.inside, countStyles[props.level]], + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + style: countStyles.text, + children: props.count <= 1 ? '!' : props.count + }) + }) + }); + } + function Message(props) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: messageStyles.container, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + numberOfLines: 1, + style: messageStyles.text, + children: props.message && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { + plaintext: true, + message: props.message, + style: messageStyles.substitutionText + }) + }) + }); + } + function DismissButton(props) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: dismissStyles.container, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: { + default: LogBoxStyle.getTextColor(0.3), + pressed: LogBoxStyle.getTextColor(0.5) + }, + hitSlop: { + top: 12, + right: 10, + bottom: 12, + left: 10 + }, + onPress: props.onPress, + style: dismissStyles.press, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Image.default, { + source: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/close.png"), + style: dismissStyles.image + }) + }) + }); + } + var countStyles = _StyleSheet.default.create({ + warn: { + backgroundColor: LogBoxStyle.getWarningColor(1) + }, + error: { + backgroundColor: LogBoxStyle.getErrorColor(1) + }, + log: { + backgroundColor: LogBoxStyle.getLogColor(1) + }, + outside: { + padding: 2, + borderRadius: 25, + backgroundColor: '#fff', + marginRight: 8 + }, + inside: { + minWidth: 18, + paddingLeft: 4, + paddingRight: 4, + borderRadius: 25, + fontWeight: '600' + }, + text: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + lineHeight: 18, + textAlign: 'center', + fontWeight: '600', + textShadowColor: LogBoxStyle.getBackgroundColor(0.4), + textShadowOffset: { + width: 0, + height: 0 + }, + textShadowRadius: 3 } - (0, _createClass2.default)(BugReporting, null, [{ - key: "_maybeInit", - value: function _maybeInit() { - if (!BugReporting._subscription) { - BugReporting._subscription = _RCTDeviceEventEmitter.default.addListener('collectBugExtraData', - BugReporting.collectExtraData, null); - defaultExtras(); - } - if (!BugReporting._redboxSubscription) { - BugReporting._redboxSubscription = _RCTDeviceEventEmitter.default.addListener('collectRedBoxExtraData', - BugReporting.collectExtraData, null); - } + }); + var messageStyles = _StyleSheet.default.create({ + container: { + alignSelf: 'stretch', + flexGrow: 1, + flexShrink: 1, + flexBasis: 'auto', + borderLeftColor: LogBoxStyle.getTextColor(0.2), + borderLeftWidth: 1, + paddingLeft: 8 + }, + text: { + color: LogBoxStyle.getTextColor(1), + flex: 1, + fontSize: 14, + lineHeight: 22 + }, + substitutionText: { + color: LogBoxStyle.getTextColor(0.6) + } + }); + var dismissStyles = _StyleSheet.default.create({ + container: { + alignSelf: 'center', + flexDirection: 'row', + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto', + marginLeft: 5 + }, + press: { + height: 20, + width: 20, + borderRadius: 25, + alignSelf: 'flex-end', + alignItems: 'center', + justifyContent: 'center' + }, + image: { + height: 8, + width: 8, + tintColor: LogBoxStyle.getBackgroundColor(1) + } + }); + var toastStyles = _StyleSheet.default.create({ + container: { + height: 48, + position: 'relative', + width: '100%', + justifyContent: 'center', + marginTop: 0.5, + backgroundColor: LogBoxStyle.getTextColor(1) + }, + press: { + height: 48, + position: 'relative', + width: '100%', + justifyContent: 'center', + marginTop: 0.5, + paddingHorizontal: 12 + }, + content: { + alignItems: 'flex-start', + flexDirection: 'row', + borderRadius: 8, + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto' + } + }); + var _default = LogBoxLogNotification; + exports.default = _default; +},432,[3,225,395,259,287,77,79,433,435,434,41,89,439],"node_modules/react-native/Libraries/LogBox/UI/LogBoxNotification.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/Touchable/TouchableWithoutFeedback")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function LogBoxButton(props) { + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + pressed = _React$useState2[0], + setPressed = _React$useState2[1]; + var backgroundColor = props.backgroundColor; + if (!backgroundColor) { + backgroundColor = { + default: LogBoxStyle.getBackgroundColor(0.95), + pressed: LogBoxStyle.getBackgroundColor(0.6) + }; + } + var content = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: _StyleSheet.default.compose({ + backgroundColor: pressed ? backgroundColor.pressed : backgroundColor.default + }, props.style), + children: props.children + }); + return props.onPress == null ? content : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_TouchableWithoutFeedback.default, { + hitSlop: props.hitSlop, + onPress: props.onPress, + onPressIn: function onPressIn() { + return setPressed(true); + }, + onPressOut: function onPressOut() { + return setPressed(false); + }, + children: content + }); + } + var _default = LogBoxButton; + exports.default = _default; +},433,[3,22,420,225,259,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxButton.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getBackgroundColor = getBackgroundColor; + exports.getBackgroundDarkColor = getBackgroundDarkColor; + exports.getBackgroundLightColor = getBackgroundLightColor; + exports.getDividerColor = getDividerColor; + exports.getErrorColor = getErrorColor; + exports.getErrorDarkColor = getErrorDarkColor; + exports.getFatalColor = getFatalColor; + exports.getFatalDarkColor = getFatalDarkColor; + exports.getHighlightColor = getHighlightColor; + exports.getLogColor = getLogColor; + exports.getTextColor = getTextColor; + exports.getWarningColor = getWarningColor; + exports.getWarningDarkColor = getWarningDarkColor; + exports.getWarningHighlightColor = getWarningHighlightColor; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + function getBackgroundColor(opacity) { + return `rgba(51, 51, 51, ${opacity == null ? 1 : opacity})`; + } + function getBackgroundLightColor(opacity) { + return `rgba(69, 69, 69, ${opacity == null ? 1 : opacity})`; + } + function getBackgroundDarkColor(opacity) { + return `rgba(34, 34, 34, ${opacity == null ? 1 : opacity})`; + } + function getWarningColor(opacity) { + return `rgba(250, 186, 48, ${opacity == null ? 1 : opacity})`; + } + function getWarningDarkColor(opacity) { + return `rgba(224, 167, 8, ${opacity == null ? 1 : opacity})`; + } + function getFatalColor(opacity) { + return `rgba(243, 83, 105, ${opacity == null ? 1 : opacity})`; + } + function getFatalDarkColor(opacity) { + return `rgba(208, 75, 95, ${opacity == null ? 1 : opacity})`; + } + function getErrorColor(opacity) { + return `rgba(243, 83, 105, ${opacity == null ? 1 : opacity})`; + } + function getErrorDarkColor(opacity) { + return `rgba(208, 75, 95, ${opacity == null ? 1 : opacity})`; + } + function getLogColor(opacity) { + return `rgba(119, 119, 119, ${opacity == null ? 1 : opacity})`; + } + function getWarningHighlightColor(opacity) { + return `rgba(252, 176, 29, ${opacity == null ? 1 : opacity})`; + } + function getDividerColor(opacity) { + return `rgba(255, 255, 255, ${opacity == null ? 1 : opacity})`; + } + function getHighlightColor(opacity) { + return `rgba(252, 176, 29, ${opacity == null ? 1 : opacity})`; + } + function getTextColor(opacity) { + return `rgba(255, 255, 255, ${opacity == null ? 1 : opacity})`; + } +},434,[],"node_modules/react-native/Libraries/LogBox/UI/LogBoxStyle.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _Linking = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Linking/Linking")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function getLinkRanges(string) { + var regex = /https?:\/\/[^\s$.?#].[^\s]*/gi; + var matches = []; + var regexResult; + while ((regexResult = regex.exec(string)) !== null) { + if (regexResult != null) { + matches.push({ + lowerBound: regexResult.index, + upperBound: regex.lastIndex + }); } + } + return matches; + } + function TappableLinks(props) { + var _this = this; + var matches = getLinkRanges(props.content); + if (matches.length === 0) { + // No URLs detected. Just return the content. + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + style: props.style, + children: props.content + }); + } - }, { - key: "addSource", - value: - function addSource(key, callback) { - return this._addSource(key, callback, BugReporting._extraSources); + // URLs were detected. Construct array of Text nodes. + + var fragments = []; + var indexCounter = 0; + var startIndex = 0; + var _loop = function _loop() { + if (startIndex < linkRange.lowerBound) { + var _text = props.content.substring(startIndex, linkRange.lowerBound); + fragments.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + children: _text + }, ++indexCounter)); + } + var link = props.content.substring(linkRange.lowerBound, linkRange.upperBound); + fragments.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + onPress: function onPress() { + // $FlowFixMe[unused-promise] + _Linking.default.openURL(link); + }, + style: styles.linkText, + children: link + }, ++indexCounter)); + startIndex = linkRange.upperBound; + }; + for (var linkRange of matches) { + _loop(); + } + if (startIndex < props.content.length) { + var text = props.content.substring(startIndex); + fragments.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + style: props.style, + children: text + }, ++indexCounter)); + } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + style: props.style, + children: fragments + }); + } + var cleanContent = function cleanContent(content) { + return content.replace(/^(TransformError |Warning: (Warning: )?|Error: )/g, ''); + }; + function LogBoxMessage(props) { + var _this2 = this; + var _props$message = props.message, + content = _props$message.content, + substitutions = _props$message.substitutions; + if (props.plaintext === true) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_Text.default, { + children: cleanContent(content) + }); + } + var maxLength = props.maxLength != null ? props.maxLength : Infinity; + var substitutionStyle = props.style; + var elements = []; + var length = 0; + var createUnderLength = function createUnderLength(key, message, style) { + var cleanMessage = cleanContent(message); + if (props.maxLength != null) { + cleanMessage = cleanMessage.slice(0, props.maxLength - length); + } + if (length < maxLength) { + elements.push( /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(TappableLinks, { + content: cleanMessage, + style: style + }, key)); + } + length += cleanMessage.length; + }; + var lastOffset = substitutions.reduce(function (prevOffset, substitution, index) { + var key = String(index); + if (substitution.offset > prevOffset) { + var prevPart = content.substr(prevOffset, substitution.offset - prevOffset); + createUnderLength(key, prevPart); } + var substitutionPart = content.substr(substitution.offset, substitution.length); + createUnderLength(key + '.5', substitutionPart, substitutionStyle); + return substitution.offset + substitution.length; + }, 0); + if (lastOffset < content.length) { + var lastPart = content.substr(lastOffset); + createUnderLength('-1', lastPart); + } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime").Fragment, { + children: elements + }); + } + var styles = _StyleSheet.default.create({ + linkText: { + textDecorationLine: 'underline' + } + }); + var _default = LogBoxMessage; + exports.default = _default; +},435,[3,436,259,287,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxMessage.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _NativeEventEmitter2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../EventEmitter/NativeEventEmitter")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Utilities/Platform")); + var _NativeIntentAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./NativeIntentAndroid")); + var _NativeLinkingManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeLinkingManager")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "invariant")); + var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "nullthrows")); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + /** + * `Linking` gives you a general interface to interact with both incoming + * and outgoing app links. + * + * See https://reactnative.dev/docs/linking + */ + var Linking = /*#__PURE__*/function (_NativeEventEmitter) { + (0, _inherits2.default)(Linking, _NativeEventEmitter); + var _super = _createSuper(Linking); + function Linking() { + (0, _classCallCheck2.default)(this, Linking); + return _super.call(this, _Platform.default.OS === 'ios' ? (0, _nullthrows.default)(_NativeLinkingManager.default) : undefined); + } - }, { - key: "addFileSource", - value: - function addFileSource(key, callback) { - return this._addSource(key, callback, BugReporting._fileSources); + /** + * Add a handler to Linking changes by listening to the `url` event type + * and providing the handler + * + * See https://reactnative.dev/docs/linking#addeventlistener + */ + (0, _createClass2.default)(Linking, [{ + key: "addEventListener", + value: function addEventListener(eventType, listener, context) { + return this.addListener(eventType, listener); } + + /** + * Try to open the given `url` with any of the installed apps. + * + * See https://reactnative.dev/docs/linking#openurl + */ }, { - key: "_addSource", - value: function _addSource(key, callback, source) { - BugReporting._maybeInit(); - if (source.has(key)) { - console.warn("BugReporting.add* called multiple times for same key '" + key + "'"); + key: "openURL", + value: function openURL(url) { + this._validateURL(url); + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).openURL(url); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).openURL(url); } - source.set(key, callback); - return { - remove: function remove() { - source.delete(key); - } - }; } + /** + * Determine whether or not an installed app can handle a given URL. + * + * See https://reactnative.dev/docs/linking#canopenurl + */ }, { - key: "collectExtraData", - value: - function collectExtraData() { - var extraData = {}; - for (var _ref of BugReporting._extraSources) { - var _ref2 = (0, _slicedToArray2.default)(_ref, 2); - var _key = _ref2[0]; - var callback = _ref2[1]; - extraData[_key] = callback(); - } - var fileData = {}; - for (var _ref3 of BugReporting._fileSources) { - var _ref4 = (0, _slicedToArray2.default)(_ref3, 2); - var _key2 = _ref4[0]; - var _callback = _ref4[1]; - fileData[_key2] = _callback(); + key: "canOpenURL", + value: function canOpenURL(url) { + this._validateURL(url); + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).canOpenURL(url); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).canOpenURL(url); } - if (_NativeBugReporting.default != null && _NativeBugReporting.default.setExtraData != null) { - _NativeBugReporting.default.setExtraData(extraData, fileData); + } + + /** + * Open app settings. + * + * See https://reactnative.dev/docs/linking#opensettings + */ + }, { + key: "openSettings", + value: function openSettings() { + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).openSettings(); + } else { + return (0, _nullthrows.default)(_NativeLinkingManager.default).openSettings(); } - if (_NativeRedBox.default != null && _NativeRedBox.default.setExtraData != null) { - _NativeRedBox.default.setExtraData(extraData, 'From BugReporting.js'); + } + + /** + * If the app launch was triggered by an app link, + * it will give the link url, otherwise it will give `null` + * + * See https://reactnative.dev/docs/linking#getinitialurl + */ + }, { + key: "getInitialURL", + value: function getInitialURL() { + return _Platform.default.OS === 'android' ? (0, _nullthrows.default)(_NativeIntentAndroid.default).getInitialURL() : (0, _nullthrows.default)(_NativeLinkingManager.default).getInitialURL(); + } + + /* + * Launch an Android intent with extras (optional) + * + * @platform android + * + * See https://reactnative.dev/docs/linking#sendintent + */ + }, { + key: "sendIntent", + value: function sendIntent(action, extras) { + if (_Platform.default.OS === 'android') { + return (0, _nullthrows.default)(_NativeIntentAndroid.default).sendIntent(action, extras); + } else { + return new Promise(function (resolve, reject) { + return reject(new Error('Unsupported')); + }); } - return { - extras: extraData, - files: fileData - }; + } + }, { + key: "_validateURL", + value: function _validateURL(url) { + (0, _invariant.default)(typeof url === 'string', 'Invalid URL: should be a string. Was: ' + url); + (0, _invariant.default)(url, 'Invalid URL: cannot be empty'); } }]); - return BugReporting; - }(); - BugReporting._extraSources = new Map(); - BugReporting._fileSources = new Map(); - BugReporting._subscription = null; - BugReporting._redboxSubscription = null; - module.exports = BugReporting; -},419,[3,19,12,13,4,157,420,421],"node_modules/react-native/Libraries/BugReporting/BugReporting.js"); + return Linking; + }(_NativeEventEmitter2.default); + module.exports = new Linking(); +},436,[3,12,13,49,51,53,151,17,437,438,20,231],"node_modules/react-native/Libraries/Linking/Linking.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -93787,57 +108748,249 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('BugReporting'); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('IntentAndroid'); + exports.default = _default; +},437,[19],"node_modules/react-native/Libraries/Linking/NativeIntentAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _default = TurboModuleRegistry.get('LinkingManager'); exports.default = _default; -},420,[16],"node_modules/react-native/Libraries/BugReporting/NativeBugReporting.js"); +},438,[19],"node_modules/react-native/Libraries/Linking/NativeLinkingManager.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 28, + "height": 28, + "scales": [1], + "hash": "369745d4a4a6fa62fa0ed495f89aa964", + "name": "close", + "type": "png" + }); +},439,[440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/close.png"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ 'use strict'; - function dumpReactTree() { - try { - return getReactTree(); - } catch (e) { - return 'Failed to dump react tree: ' + e; - } + module.exports = _$$_REQUIRE(_dependencyMap[0], "@react-native/assets-registry/registry"); +},440,[243],"node_modules/react-native/Libraries/Image/AssetRegistry.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.RootTagContext = void 0; + exports.createRootTag = createRootTag; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var RootTagContext = React.createContext(0); + exports.RootTagContext = RootTagContext; + if (__DEV__) { + RootTagContext.displayName = 'RootTagContext'; } - function getReactTree() { - return 'React tree dumps have been temporarily disabled while React is ' + 'upgraded to Fiber.'; + + /** + * Intended to only be used by `AppContainer`. + */ + function createRootTag(rootTag) { + return rootTag; } +},441,[41],"node_modules/react-native/Libraries/ReactNative/RootTag.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.coerceDisplayMode = coerceDisplayMode; + exports.default = void 0; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ - module.exports = dumpReactTree; -},421,[],"node_modules/react-native/Libraries/BugReporting/dumpReactTree.js"); + /** DisplayMode should be in sync with the method displayModeToInt from + * react/renderer/uimanager/primitives.h. */ + var DisplayMode = Object.freeze({ + VISIBLE: 1, + SUSPENDED: 2, + HIDDEN: 3 + }); + function coerceDisplayMode(value) { + switch (value) { + case DisplayMode.SUSPENDED: + return DisplayMode.SUSPENDED; + case DisplayMode.HIDDEN: + return DisplayMode.HIDDEN; + default: + return DisplayMode.VISIBLE; + } + } + var _default = DisplayMode; + exports.default = _default; +},442,[],"node_modules/react-native/Libraries/ReactNative/DisplayMode.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getCachedComponentWithDisplayName; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var cache = new Map(); + function getCachedComponentWithDisplayName(displayName) { + var ComponentWithDisplayName = cache.get(displayName); + if (!ComponentWithDisplayName) { + ComponentWithDisplayName = function ComponentWithDisplayName(_ref) { + var children = _ref.children; + return children; + }; + // $FlowFixMe[prop-missing] + ComponentWithDisplayName.displayName = displayName; + cache.set(displayName, ComponentWithDisplayName); + } + return ComponentWithDisplayName; + } +},443,[41],"node_modules/react-native/Libraries/ReactNative/getCachedComponentWithDebugName.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ 'use strict'; - var _listeners = []; - var _activeScene = { - name: 'default' - }; - var SceneTracker = { - setActiveScene: function setActiveScene(scene) { - _activeScene = scene; - _listeners.forEach(function (listener) { - return listener(_activeScene); - }); - }, - getActiveScene: function getActiveScene() { - return _activeScene; - }, - addActiveSceneChangedListener: function addActiveSceneChangedListener(callback) { - _listeners.push(callback); + module.exports = _$$_REQUIRE(_dependencyMap[0], "../Components/UnimplementedViews/UnimplementedView"); + function emptyFunction() {} + var BackHandler = { + exitApp: emptyFunction, + addEventListener: function addEventListener(_eventName, _handler) { return { - remove: function remove() { - _listeners = _listeners.filter(function (listener) { - return callback !== listener; - }); - } + remove: emptyFunction }; - } + }, + removeEventListener: function removeEventListener(_eventName, _handler) {} }; - module.exports = SceneTracker; -},422,[],"node_modules/react-native/Libraries/Utilities/SceneTracker.js"); + module.exports = BackHandler; +},444,[445],"node_modules/react-native/Libraries/Utilities/BackHandler.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../StyleSheet/StyleSheet")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Common implementation for a simple stubbed view. Simply applies the view's styles to the inner + * View component and renders its children. + */ + var UnimplementedView = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(UnimplementedView, _React$Component); + var _super = _createSuper(UnimplementedView); + function UnimplementedView() { + (0, _classCallCheck2.default)(this, UnimplementedView); + return _super.apply(this, arguments); + } + (0, _createClass2.default)(UnimplementedView, [{ + key: "render", + value: function render() { + // Workaround require cycle from requireNativeComponent + var View = _$$_REQUIRE(_dependencyMap[8], "../View/View"); + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9], "react/jsx-runtime").jsx)(View, { + style: [styles.unimplementedView, this.props.style], + children: this.props.children + }); + } + }]); + return UnimplementedView; + }(React.Component); + var styles = _StyleSheet.default.create({ + unimplementedView: __DEV__ ? { + alignSelf: 'flex-start', + borderColor: 'red', + borderWidth: 1 + } : {} + }); + module.exports = UnimplementedView; +},445,[3,12,13,49,51,53,259,41,225,89],"node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -93848,16 +109001,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); - var _reactNative = _$$_REQUIRE(_dependencyMap[7], "react-native"); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../StyleSheet/StyleSheet")); var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./Data/LogBoxData")); var _LogBoxInspector = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./UI/LogBoxInspector")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"; function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var _LogBoxInspectorContainer = function (_React$Component) { + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + var _LogBoxInspectorContainer = /*#__PURE__*/function (_React$Component) { (0, _inherits2.default)(_LogBoxInspectorContainer, _React$Component); var _super = _createSuper(_LogBoxInspectorContainer); function _LogBoxInspectorContainer() { @@ -93868,6 +109030,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } _this = _super.call.apply(_super, [this].concat(args)); _this._handleDismiss = function () { + // Here we handle the cases when the log is dismissed and it + // was either the last log, or when the current index + // is now outside the bounds of the log array. var _this$props = _this.props, selectedLogIndex = _this$props.selectedLogIndex, logs = _this$props.logs; @@ -93892,9 +109057,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _createClass2.default)(_LogBoxInspectorContainer, [{ key: "render", value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.View, { - style: _reactNative.StyleSheet.absoluteFill, - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_LogBoxInspector.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + style: _StyleSheet.default.absoluteFill, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxInspector.default, { onDismiss: this._handleDismiss, onMinimize: this._handleMinimize, onChangeSelectedIndex: this._handleSetSelectedLog, @@ -93909,28 +109074,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports._LogBoxInspectorContainer = _LogBoxInspectorContainer; var _default = LogBoxData.withSubscription(_LogBoxInspectorContainer); exports.default = _default; -},423,[3,12,13,50,47,46,36,1,61,424,73],"node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"); +},446,[3,12,13,49,51,53,225,259,77,447,41,89],"node_modules/react-native/Libraries/LogBox/LogBoxInspectorContainer.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _LogBoxInspectorCodeFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./LogBoxInspectorCodeFrame")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _ScrollView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/ScrollView/ScrollView")); + var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/Keyboard/Keyboard")); + var _ScrollView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Components/ScrollView/ScrollView")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); - var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "../Data/LogBoxData")); - var _Keyboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../../Components/Keyboard/Keyboard")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "../Data/LogBoxData")); + var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Data/LogBoxLog")); + var _LogBoxInspectorCodeFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxInspectorCodeFrame")); var _LogBoxInspectorFooter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorFooter")); - var _LogBoxInspectorMessageHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./LogBoxInspectorMessageHeader")); - var _LogBoxInspectorReactFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./LogBoxInspectorReactFrames")); - var _LogBoxInspectorStackFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./LogBoxInspectorStackFrames")); - var _LogBoxInspectorHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./LogBoxInspectorHeader")); + var _LogBoxInspectorHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./LogBoxInspectorHeader")); + var _LogBoxInspectorMessageHeader = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./LogBoxInspectorMessageHeader")); + var _LogBoxInspectorReactFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "./LogBoxInspectorReactFrames")); + var _LogBoxInspectorStackFrames = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[13], "./LogBoxInspectorStackFrames")); var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14], "./LogBoxStyle")); - var _LogBoxLog = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[15], "../Data/LogBoxLog")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspector(props) { @@ -93943,6 +109117,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [log]); React.useEffect(function () { + // Optimistically symbolicate the last and next logs. if (logs.length > 1) { var selected = selectedIndex; var lastIndex = logs.length - 1; @@ -93961,17 +109136,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (log == null) { return null; } - return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_View.default, { style: styles.root, - children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorHeader.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorHeader.default, { onSelectIndex: props.onChangeSelectedIndex, selectedIndex: selectedIndex, total: logs.length, level: log.level - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(LogBoxInspectorBody, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(LogBoxInspectorBody, { log: log, onRetry: _handleRetry - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorFooter.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorFooter.default, { onDismiss: props.onDismiss, onMinimize: props.onMinimize, level: log.level @@ -93996,8 +109171,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [props.log]); var headerTitle = (_props$log$type = props.log.type) != null ? _props$log$type : headerTitleMap[props.log.isComponentError ? 'component' : props.log.level]; if (collapsed) { - return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").Fragment, { - children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").Fragment, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { collapsed: collapsed, onPress: function onPress() { return setCollapsed(!collapsed); @@ -94005,22 +109180,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e message: props.log.message, level: props.log.level, title: headerTitle - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { style: styles.scrollBody, - children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { codeFrame: props.log.codeFrame - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { log: props.log - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { log: props.log, onRetry: props.onRetry })] })] }); } - return (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsxs)(_ScrollView.default, { style: styles.scrollBody, - children: [(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorMessageHeader.default, { collapsed: collapsed, onPress: function onPress() { return setCollapsed(!collapsed); @@ -94028,11 +109203,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e message: props.log.message, level: props.log.level, title: headerTitle - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorCodeFrame.default, { codeFrame: props.log.codeFrame - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorReactFrames.default, { log: props.log - }), (0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[16], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrames.default, { log: props.log, onRetry: props.onRetry })] @@ -94050,25 +109225,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspector; exports.default = _default; -},424,[3,19,425,36,310,244,245,61,312,429,431,432,433,438,382,62,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"); +},447,[3,22,364,324,225,259,77,79,448,452,454,460,461,462,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspector.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); - var _ScrollView = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Components/ScrollView/ScrollView")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxButton")); - var _openFileInEditor = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "../../Core/Devtools/openFileInEditor")); - var _AnsiHighlight = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./AnsiHighlight")); - var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./LogBoxInspectorSection")); - var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "../Data/LogBoxData")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"; + var _ScrollView = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/ScrollView/ScrollView")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Core/Devtools/openFileInEditor")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); + var LogBoxData = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "../Data/LogBoxData")); + var _AnsiHighlight = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./AnsiHighlight")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxButton")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./LogBoxInspectorSection")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspectorCodeFrame(props) { @@ -94077,35 +109261,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } function getFileName() { + // $FlowFixMe[incompatible-use] var matches = /[^/]*$/.exec(codeFrame.fileName); if (matches && matches.length > 0) { return matches[0]; } + // $FlowFixMe[incompatible-use] return codeFrame.fileName; } function getLocation() { + // $FlowFixMe[incompatible-use] var location = codeFrame.location; if (location != null) { - return " (" + location.row + ":" + (location.column + 1) + ")"; + return ` (${location.row}:${location.column + 1 /* Code frame columns are zero indexed */})`; } return null; } - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxInspectorSection.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxInspectorSection.default, { heading: "Source", - action: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(AppInfo, {}), - children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_View.default, { + action: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(AppInfo, {}), + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_View.default, { style: styles.box, - children: [(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_View.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_View.default, { style: styles.frame, - children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_ScrollView.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_ScrollView.default, { horizontal: true, - children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_AnsiHighlight.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_AnsiHighlight.default, { style: styles.content, text: codeFrame.content }) }) - }), (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundDarkColor(1) @@ -94115,7 +109302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codeFrame$location$r, _codeFrame$location; (0, _openFileInEditor.default)(codeFrame.fileName, (_codeFrame$location$r = (_codeFrame$location = codeFrame.location) == null ? void 0 : _codeFrame$location.row) != null ? _codeFrame$location$r : 0); }, - children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { style: styles.fileText, children: [getFileName(), getLocation()] }) @@ -94128,14 +109315,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (appInfo == null) { return null; } - return (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsx)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: appInfo.onPress ? LogBoxStyle.getBackgroundColor(1) : 'transparent' }, style: appInfoStyles.buildButton, onPress: appInfo.onPress, - children: (0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime").jsxs)(_Text.default, { style: appInfoStyles.text, children: [appInfo.appVersion, " (", appInfo.engine, ")"] }) @@ -94198,15 +109385,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorCodeFrame; exports.default = _default; -},425,[36,3,14,310,244,255,245,382,381,370,426,428,61,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"); +},448,[3,324,225,419,259,287,17,77,449,433,451,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Ansi; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + // Afterglow theme from https://iterm2colorschemes.com/ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } var COLORS = { @@ -94217,6 +109416,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 'ansi-blue': 'rgb(125, 169, 199)', 'ansi-magenta': 'rgb(176, 101, 151)', 'ansi-cyan': 'rgb(140, 220, 216)', + // Instead of white, use the default color provided to the component + // 'ansi-white': 'rgb(216, 216, 216)', 'ansi-bright-black': 'rgb(98, 98, 98)', 'ansi-bright-red': 'rgb(187, 86, 83)', 'ansi-bright-green': 'rgb(144, 157, 98)', @@ -94232,7 +109433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style = _ref.style; var commonWhitespaceLength = Infinity; var parsedLines = text.split(/\n/).map(function (line) { - return (0, _$$_REQUIRE(_dependencyMap[2], "anser").ansiToJson)(line, { + return (0, _$$_REQUIRE(_dependencyMap[5], "anser").ansiToJson)(line, { json: true, remove_empty: true, use_classes: true @@ -94240,6 +109441,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); parsedLines.map(function (lines) { var _lines$, _lines$$content, _match$; + // The third item on each line includes the whitespace of the source code. + // We are looking for the least amount of common whitespace to trim all lines. + // Example: Array [" ", " 96 |", " text", ...] var match = lines[2] && ((_lines$ = lines[2]) == null ? void 0 : (_lines$$content = _lines$.content) == null ? void 0 : _lines$$content.match(/^ +/)); var whitespaceLength = match && ((_match$ = match[0]) == null ? void 0 : _match$.length) || 0; if (whitespaceLength < commonWhitespaceLength) { @@ -94247,18 +109451,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); + /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ var getText = function getText(content, key) { if (key === 1) { + // Remove the vertical bar after line numbers return content.replace(/\| $/, ' '); } else if (key === 2 && commonWhitespaceLength < Infinity) { + // Remove common whitespace at the beginning of the line return content.substr(commonWhitespaceLength); } else { return content; } }; - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_View.default, { children: parsedLines.map(function (items, i) { - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.View, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_View.default, { style: styles.line, children: items.map(function (bundle, key) { var textStyle = bundle.fg && COLORS[bundle.fg] ? { @@ -94267,7 +109475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } : { backgroundColor: bundle.bg && COLORS[bundle.bg] }; - return (0, _$$_REQUIRE(_dependencyMap[3], "react/jsx-runtime").jsx)(_reactNative.Text, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_Text.default, { style: [style, textStyle], children: getText(bundle.content, key) }, key); @@ -94276,15 +109484,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } - var styles = _reactNative.StyleSheet.create({ + var styles = _StyleSheet.default.create({ line: { flexDirection: 'row' } }); -},426,[36,1,427,73],"node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"); +},449,[3,225,259,287,41,450,89],"node_modules/react-native/Libraries/LogBox/UI/AnsiHighlight.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; + // This file was originally written by @drudru (https://github.com/drudru/ansi_up), MIT, 2011 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { @@ -94358,34 +109567,112 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Anser = function () { _createClass(Anser, null, [{ key: "escapeForHtml", + /** + * Anser.escapeForHtml + * Escape the input HTML. + * + * This does the minimum escaping of text to make it compliant with HTML. + * In particular, the '&','<', and '>' characters are escaped. This should + * be run prior to `ansiToHtml`. + * + * @name Anser.escapeForHtml + * @function + * @param {String} txt The input text (containing the ANSI snippets). + * @returns {String} The escaped html. + */ value: function escapeForHtml(txt) { return new Anser().escapeForHtml(txt); } + /** + * Anser.linkify + * Adds the links in the HTML. + * + * This replaces any links in the text with anchor tags that display the + * link. The links should have at least one whitespace character + * surrounding it. Also, you should apply this after you have run + * `ansiToHtml` on the text. + * + * @name Anser.linkify + * @function + * @param {String} txt The input text. + * @returns {String} The HTML containing the tags (unescaped). + */ }, { key: "linkify", value: function linkify(txt) { return new Anser().linkify(txt); } + /** + * Anser.ansiToHtml + * This replaces ANSI terminal escape codes with SPAN tags that wrap the + * content. + * + * This function only interprets ANSI SGR (Select Graphic Rendition) codes + * that can be represented in HTML. + * For example, cursor movement codes are ignored and hidden from output. + * The default style uses colors that are very close to the prescribed + * standard. The standard assumes that the text will have a black + * background. These colors are set as inline styles on the SPAN tags. + * + * Another option is to set `use_classes: true` in the options argument. + * This will instead set classes on the spans so the colors can be set via + * CSS. The class names used are of the format `ansi-*-fg/bg` and + * `ansi-bright-*-fg/bg` where `*` is the color name, + * i.e black/red/green/yellow/blue/magenta/cyan/white. + * + * @name Anser.ansiToHtml + * @function + * @param {String} txt The input text. + * @param {Object} options The options passed to the ansiToHTML method. + * @returns {String} The HTML output. + */ }, { key: "ansiToHtml", value: function ansiToHtml(txt, options) { return new Anser().ansiToHtml(txt, options); } + /** + * Anser.ansiToJson + * Converts ANSI input into JSON output. + * + * @name Anser.ansiToJson + * @function + * @param {String} txt The input text. + * @param {Object} options The options passed to the ansiToHTML method. + * @returns {String} The HTML output. + */ }, { key: "ansiToJson", value: function ansiToJson(txt, options) { return new Anser().ansiToJson(txt, options); } + /** + * Anser.ansiToText + * Converts ANSI input into text output. + * + * @name Anser.ansiToText + * @function + * @param {String} txt The input text. + * @returns {String} The text output. + */ }, { key: "ansiToText", value: function ansiToText(txt) { return new Anser().ansiToText(txt); } + /** + * Anser + * The `Anser` class. + * + * @name Anser + * @function + * @returns {Anser} + */ }]); function Anser() { @@ -94394,17 +109681,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.bright = 0; } + /** + * setupPalette + * Sets up the palette. + * + * @name setupPalette + * @function + */ + _createClass(Anser, [{ key: "setupPalette", value: function setupPalette() { this.PALETTE_COLORS = []; + // Index 0..15 : System color for (var i = 0; i < 2; ++i) { for (var j = 0; j < 8; ++j) { this.PALETTE_COLORS.push(ANSI_COLORS[i][j].color); } } + // Index 16..231 : RGB 6x6x6 + // https://gist.github.com/jasonm23/2868981#file-xterm-256color-yaml var levels = [0, 95, 135, 175, 215, 255]; var format = function format(r, g, b) { return levels[r] + ", " + levels[g] + ", " + levels[b]; @@ -94420,12 +109718,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + // Index 232..255 : Grayscale var level = 8; for (var _i = 0; _i < 24; ++_i, level += 10) { this.PALETTE_COLORS.push(format(level, level, level)); } } + /** + * escapeForHtml + * Escapes the input text. + * + * @name escapeForHtml + * @function + * @param {String} txt The input text. + * @returns {String} The escpaed HTML output. + */ }, { key: "escapeForHtml", value: function escapeForHtml(txt) { @@ -94434,6 +109742,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + /** + * linkify + * Adds HTML link elements. + * + * @name linkify + * @function + * @param {String} txt The input text. + * @returns {String} The HTML output containing link elements. + */ }, { key: "linkify", value: function linkify(txt) { @@ -94442,12 +109759,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } + /** + * ansiToHtml + * Converts ANSI input into HTML output. + * + * @name ansiToHtml + * @function + * @param {String} txt The input text. + * @param {Object} options The options passed ot the `process` method. + * @returns {String} The HTML output. + */ }, { key: "ansiToHtml", value: function ansiToHtml(txt, options) { return this.process(txt, options, true); } + /** + * ansiToJson + * Converts ANSI input into HTML output. + * + * @name ansiToJson + * @function + * @param {String} txt The input text. + * @param {Object} options The options passed ot the `process` method. + * @returns {String} The JSON output. + */ }, { key: "ansiToJson", value: function ansiToJson(txt, options) { @@ -94457,24 +109794,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.process(txt, options, true); } + /** + * ansiToText + * Converts ANSI input into HTML output. + * + * @name ansiToText + * @function + * @param {String} txt The input text. + * @returns {String} The text output. + */ }, { key: "ansiToText", value: function ansiToText(txt) { return this.process(txt, {}, false); } + /** + * process + * Processes the input. + * + * @name process + * @function + * @param {String} txt The input text. + * @param {Object} options An object passed to `processChunk` method, extended with: + * + * - `json` (Boolean): If `true`, the result will be an object. + * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. + * + * @param {Boolean} markup + */ }, { key: "process", value: function process(txt, options, markup) { var _this = this; var self = this; var raw_text_chunks = txt.split(/\033\[/); - var first_chunk = raw_text_chunks.shift(); + var first_chunk = raw_text_chunks.shift(); // the first chunk is not the result of the split if (options === undefined || options === null) { options = {}; } - options.clearLine = /\r/.test(txt); + options.clearLine = /\r/.test(txt); // check for Carriage Return var color_chunks = raw_text_chunks.map(function (chunk) { return _this.processChunk(chunk, options, markup); }); @@ -94495,9 +109855,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return color_chunks.join(""); } + /** + * processChunkJson + * Processes the current chunk into json output. + * + * @name processChunkJson + * @function + * @param {String} text The input text. + * @param {Object} options An object containing the following fields: + * + * - `json` (Boolean): If `true`, the result will be an object. + * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. + * + * @param {Boolean} markup If false, the colors will not be parsed. + * @return {Object} The result object: + * + * - `content` (String): The text. + * - `fg` (String|null): The foreground color. + * - `bg` (String|null): The background color. + * - `fg_truecolor` (String|null): The foreground true color (if 16m color is enabled). + * - `bg_truecolor` (String|null): The background true color (if 16m color is enabled). + * - `clearLine` (Boolean): `true` if a carriageReturn \r was fount at end of line. + * - `was_processed` (Bolean): `true` if the colors were processed, `false` otherwise. + * - `isEmpty` (Function): A function returning `true` if the content is empty, or `false` otherwise. + * + */ }, { key: "processChunkJson", value: function processChunkJson(text, options, markup) { + // Are we using classes or styles? options = typeof options == "undefined" ? {} : options; var use_classes = options.use_classes = typeof options.use_classes != "undefined" && options.use_classes; var key = options.key = use_classes ? "class" : "color"; @@ -94515,11 +109901,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; + // Each "chunk" is the text after the CSI (ESC + "[") and before the next CSI/EOF. + // + // This regex matches four groups within a chunk. + // + // The first and third groups match code type. + // We supported only SGR command. It has empty first group and "m" in third. + // + // The second group matches all of the number+semicolon command sequences + // before the "m" (or other trailing) character. + // These are the graphics or SGR commands. + // + // The last group is the text (including newlines) that is colored by + // the other group"s commands. var matches = text.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m); if (!matches) return result; var orig_txt = result.content = matches[4]; var nums = matches[2].split(";"); + // We currently support only "SGR" (Select Graphic Rendition) + // Simply ignore if not a SGR command. if (matches[1] !== "" || matches[3] !== "m") { return result; } @@ -94537,6 +109938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e self.decoration = "bold"; } else if (num === 2) { self.decoration = "dim"; + // Enable code 2 to get string } else if (num == 3) { self.decoration = "italic"; } else if (num == 4) { @@ -94547,25 +109949,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e self.decoration = "reverse"; } else if (num === 8) { self.decoration = "hidden"; + // Enable code 9 to get strikethrough } else if (num === 9) { self.decoration = "strikethrough"; } else if (num == 39) { self.fg = null; } else if (num == 49) { self.bg = null; + // Foreground color } else if (num >= 30 && num < 38) { self.fg = ANSI_COLORS[0][num % 10][key]; + // Foreground bright color } else if (num >= 90 && num < 98) { self.fg = ANSI_COLORS[1][num % 10][key]; + // Background color } else if (num >= 40 && num < 48) { self.bg = ANSI_COLORS[0][num % 10][key]; + // Background bright color } else if (num >= 100 && num < 108) { self.bg = ANSI_COLORS[1][num % 10][key]; } else if (num === 38 || num === 48) { + // extend color (38=fg, 48=bg) var is_foreground = num === 38; if (nums.length >= 1) { var mode = nums.shift(); if (mode === "5" && nums.length >= 1) { + // palette color var palette_index = parseInt(nums.shift()); if (palette_index >= 0 && palette_index <= 255) { if (!use_classes) { @@ -94587,6 +109996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } else if (mode === "2" && nums.length >= 3) { + // true color var r = parseInt(nums.shift()); var g = parseInt(nums.shift()); var b = parseInt(nums.shift()); @@ -94628,6 +110038,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + /** + * processChunk + * Processes the current chunk of text. + * + * @name processChunk + * @function + * @param {String} text The input text. + * @param {Object} options An object containing the following fields: + * + * - `json` (Boolean): If `true`, the result will be an object. + * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. + * + * @param {Boolean} markup If false, the colors will not be parsed. + * @return {Object|String} The result (object if `json` is wanted back or string otherwise). + */ }, { key: "processChunk", value: function processChunk(text, options, markup) { @@ -94689,6 +110114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e styles.push("opacity:0.5"); } else if (jsonChunk.decoration === "italic") { styles.push("font-style:italic"); + // underline and blink are treated bellow } else if (jsonChunk.decoration === "reverse") { styles.push("filter:invert(100%)"); } else if (jsonChunk.decoration === "hidden") { @@ -94710,30 +110136,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); ; module.exports = Anser; -},427,[],"node_modules/anser/lib/index.js"); +},450,[],"node_modules/anser/lib/index.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspectorSection(props) { - return (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { style: styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsxs)(_View.default, { style: styles.heading, - children: [(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_Text.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_Text.default, { style: styles.headingText, children: props.heading }), props.action] - }), (0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_View.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[6], "react/jsx-runtime").jsx)(_View.default, { style: styles.body, children: props.children })] @@ -94763,57 +110198,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorSection; exports.default = _default; -},428,[36,3,244,255,245,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"); +},451,[3,225,259,287,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _DeviceInfo = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/DeviceInfo")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _DeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/DeviceInfo")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspectorFooter(props) { if (props.level === 'syntax') { - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { style: styles.root, - children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { style: styles.button, - children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { style: styles.syntaxErrorText, children: "This error cannot be dismissed." }) }) }); } - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_View.default, { style: styles.root, - children: [(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { text: "Dismiss", onPress: props.onDismiss - }), (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(FooterButton, { text: "Minimize", onPress: props.onMinimize })] }); } function FooterButton(props) { - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundDarkColor() }, onPress: props.onPress, style: buttonStyles.safeArea, - children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { style: buttonStyles.content, - children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { style: buttonStyles.label, children: props.text }) @@ -94823,6 +110267,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var buttonStyles = _StyleSheet.default.create({ safeArea: { flex: 1, + // $FlowFixMe[sketchy-null-bool] paddingBottom: _DeviceInfo.default.getConstants().isIPhoneX_deprecated ? 30 : 0 }, content: { @@ -94866,152 +110311,864 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorFooter; exports.default = _default; -},429,[36,3,430,244,255,245,381,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"); +},452,[3,225,259,287,453,433,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooter.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _NativeDeviceInfo = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeDeviceInfo")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ module.exports = _NativeDeviceInfo.default; -},430,[3,230],"node_modules/react-native/Libraries/Utilities/DeviceInfo.js"); +},453,[3,248],"node_modules/react-native/Libraries/Utilities/DeviceInfo.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); - var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxMessage")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"; + var _StatusBar = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/StatusBar/StatusBar")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); + var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Image/Image")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var SHOW_MORE_MESSAGE_LENGTH = 300; - function LogBoxInspectorMessageHeader(props) { - function renderShowMore() { - if (props.message.content.length < SHOW_MORE_MESSAGE_LENGTH || !props.collapsed) { - return null; - } - return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { - style: messageStyles.collapse, - onPress: function onPress() { - return props.onPress(); - }, - children: "... See More" + function LogBoxInspectorHeader(props) { + if (props.level === 'syntax') { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: [styles.safeArea, styles[props.level]], + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.header, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.title, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.titleText, + children: "Failed to compile" + }) + }) + }) }); } - return (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { - style: messageStyles.body, - children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { - style: messageStyles.heading, - children: (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { - style: [messageStyles.headingText, messageStyles[props.level]], - children: props.title - }) - }), (0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_Text.default, { - style: messageStyles.bodyText, - children: [(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { - maxLength: props.collapsed ? SHOW_MORE_MESSAGE_LENGTH : Infinity, - message: props.message, - style: messageStyles.messageText - }), renderShowMore()] - })] + var prevIndex = props.selectedIndex - 1 < 0 ? props.total - 1 : props.selectedIndex - 1; + var nextIndex = props.selectedIndex + 1 > props.total - 1 ? 0 : props.selectedIndex + 1; + var titleText = `Log ${props.selectedIndex + 1} of ${props.total}`; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: [styles.safeArea, styles[props.level]], + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_View.default, { + style: styles.header, + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { + disabled: props.total <= 1, + level: props.level, + image: _$$_REQUIRE(_dependencyMap[11], "./LogBoxImages/chevron-left.png"), + onPress: function onPress() { + return props.onSelectIndex(prevIndex); + } + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { + style: styles.title, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { + style: styles.titleText, + children: titleText + }) + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { + disabled: props.total <= 1, + level: props.level, + image: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/chevron-right.png"), + onPress: function onPress() { + return props.onSelectIndex(nextIndex); + } + })] + }) }); } - var messageStyles = _StyleSheet.default.create({ - body: { - backgroundColor: LogBoxStyle.getBackgroundColor(1), - shadowColor: '#000', - shadowOffset: { - width: 0, - height: 2 + var backgroundForLevel = function backgroundForLevel(level) { + return { + warn: { + default: 'transparent', + pressed: LogBoxStyle.getWarningDarkColor() }, - shadowRadius: 2, - shadowOpacity: 0.5, - flex: 0 - }, - bodyText: { - color: LogBoxStyle.getTextColor(1), - fontSize: 14, - includeFontPadding: false, - lineHeight: 20, - fontWeight: '500', - paddingHorizontal: 12, - paddingBottom: 10 - }, - heading: { + error: { + default: 'transparent', + pressed: LogBoxStyle.getErrorDarkColor() + }, + fatal: { + default: 'transparent', + pressed: LogBoxStyle.getFatalDarkColor() + }, + syntax: { + default: 'transparent', + pressed: LogBoxStyle.getFatalDarkColor() + } + }[level]; + }; + function LogBoxInspectorHeaderButton(props) { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + backgroundColor: backgroundForLevel(props.level), + onPress: props.disabled ? null : props.onPress, + style: headerStyles.button, + children: props.disabled ? null : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Image.default, { + source: props.image, + style: headerStyles.buttonImage + }) + }); + } + var headerStyles = _StyleSheet.default.create({ + button: { alignItems: 'center', - flexDirection: 'row', - paddingHorizontal: 12, - marginTop: 10, - marginBottom: 5 + aspectRatio: 1, + justifyContent: 'center', + marginTop: 5, + marginRight: 6, + marginLeft: 6, + marginBottom: -8, + borderRadius: 3 }, - headingText: { - flex: 1, - fontSize: 20, - fontWeight: '600', - includeFontPadding: false, - lineHeight: 28 + buttonImage: { + height: 14, + width: 8, + tintColor: LogBoxStyle.getTextColor() + } + }); + var styles = _StyleSheet.default.create({ + syntax: { + backgroundColor: LogBoxStyle.getFatalColor() + }, + fatal: { + backgroundColor: LogBoxStyle.getFatalColor() }, warn: { - color: LogBoxStyle.getWarningColor(1) + backgroundColor: LogBoxStyle.getWarningColor() }, error: { - color: LogBoxStyle.getErrorColor(1) - }, - fatal: { - color: LogBoxStyle.getFatalColor(1) + backgroundColor: LogBoxStyle.getErrorColor() }, - syntax: { - color: LogBoxStyle.getFatalColor(1) + header: { + flexDirection: 'row', + height: _Platform.default.select({ + android: 48, + ios: 44 + }) }, - messageText: { - color: LogBoxStyle.getTextColor(0.6) + title: { + alignItems: 'center', + flex: 1, + justifyContent: 'center' }, - collapse: { - color: LogBoxStyle.getTextColor(0.7), - fontSize: 14, - fontWeight: '300', - lineHeight: 12 + titleText: { + color: LogBoxStyle.getTextColor(), + fontSize: 16, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 20 }, - button: { - paddingVertical: 5, - paddingHorizontal: 10, - borderRadius: 3 + safeArea: { + paddingTop: _Platform.default.OS === 'android' ? _StatusBar.default.currentHeight : 40 } }); - var _default = LogBoxInspectorMessageHeader; + var _default = LogBoxInspectorHeader; exports.default = _default; -},431,[36,3,244,255,245,382,383,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"); +},454,[3,455,225,395,259,287,17,433,434,41,89,458,459],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./LogBoxStyle")); - var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorSection")); - var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "../../Core/Devtools/openFileInEditor")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"; + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _processColor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../StyleSheet/processColor")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Utilities/Platform")); + var _NativeStatusBarManagerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./NativeStatusBarManagerAndroid")); + var _NativeStatusBarManagerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeStatusBarManagerIOS")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _class, _NativeStatusBarManag; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var BEFORE_SLASH_RE = /^(.*)[\\/]/; + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + * Status bar style + */ - function getPrettyFileName(path) { - var fileName = path.replace(BEFORE_SLASH_RE, ''); + /** + * Status bar animation + */ - if (/^index\./.test(fileName)) { - var match = path.match(BEFORE_SLASH_RE); - if (match) { - var pathBeforeSlash = match[1]; + /** + * Merges the prop stack with the default values. + */ + function mergePropsStack(propsStack, defaultValues) { + return propsStack.reduce(function (prev, cur) { + for (var prop in cur) { + if (cur[prop] != null) { + prev[prop] = cur[prop]; + } + } + return prev; + }, Object.assign({}, defaultValues)); + } + + /** + * Returns an object to insert in the props stack from the props + * and the transition/animation info. + */ + function createStackEntry(props) { + var _props$animated, _props$showHideTransi; + var animated = (_props$animated = props.animated) != null ? _props$animated : false; + var showHideTransition = (_props$showHideTransi = props.showHideTransition) != null ? _props$showHideTransi : 'fade'; + return { + backgroundColor: props.backgroundColor != null ? { + value: props.backgroundColor, + animated: animated + } : null, + barStyle: props.barStyle != null ? { + value: props.barStyle, + animated: animated + } : null, + translucent: props.translucent, + hidden: props.hidden != null ? { + value: props.hidden, + animated: animated, + transition: showHideTransition + } : null, + networkActivityIndicatorVisible: props.networkActivityIndicatorVisible + }; + } + + /** + * Component to control the app status bar. + * + * ### Usage with Navigator + * + * It is possible to have multiple `StatusBar` components mounted at the same + * time. The props will be merged in the order the `StatusBar` components were + * mounted. One use case is to specify status bar styles per route using `Navigator`. + * + * ``` + * + * + * + * + * + * } + * /> + * + * ``` + * + * ### Imperative API + * + * For cases where using a component is not ideal, there are static methods + * to manipulate the `StatusBar` display stack. These methods have the same + * behavior as mounting and unmounting a `StatusBar` component. + * + * For example, you can call `StatusBar.pushStackEntry` to update the status bar + * before launching a third-party native UI component, and then call + * `StatusBar.popStackEntry` when completed. + * + * ``` + * const openThirdPartyBugReporter = async () => { + * // The bug reporter has a dark background, so we push a new status bar style. + * const stackEntry = StatusBar.pushStackEntry({barStyle: 'light-content'}); + * + * // `open` returns a promise that resolves when the UI is dismissed. + * await BugReporter.open(); + * + * // Don't forget to call `popStackEntry` when you're done. + * StatusBar.popStackEntry(stackEntry); + * }; + * ``` + * + * There is a legacy imperative API that enables you to manually update the + * status bar styles. However, the legacy API does not update the internal + * `StatusBar` display stack, which means that any changes will be overridden + * whenever a `StatusBar` component is mounted or unmounted. + * + * It is strongly advised that you use `pushStackEntry`, `popStackEntry`, or + * `replaceStackEntry` instead of the static methods beginning with `set`. + * + * ### Constants + * + * `currentHeight` (Android only) The height of the status bar. + */ + var StatusBar = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(StatusBar, _React$Component); + var _super = _createSuper(StatusBar); + function StatusBar() { + var _this; + (0, _classCallCheck2.default)(this, StatusBar); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + // $FlowFixMe[missing-local-annot] + _this._stackEntry = null; + return _this; + } + (0, _createClass2.default)(StatusBar, [{ + key: "componentDidMount", + value: function componentDidMount() { + // Every time a StatusBar component is mounted, we push it's prop to a stack + // and always update the native status bar with the props from the top of then + // stack. This allows having multiple StatusBar components and the one that is + // added last or is deeper in the view hierarchy will have priority. + this._stackEntry = StatusBar.pushStackEntry(this.props); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + // When a StatusBar is unmounted, remove itself from the stack and update + // the native bar with the next props. + StatusBar.popStackEntry(this._stackEntry); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this._stackEntry = StatusBar.replaceStackEntry(this._stackEntry, this.props); + } + + /** + * Updates the native status bar with the props from the stack. + */ + }, { + key: "render", + value: function render() { + return null; + } + }], [{ + key: "setHidden", + value: + // Provide an imperative API as static functions of the component. + // See the corresponding prop for more detail. + /** + * Show or hide the status bar + * @param hidden Hide the status bar. + * @param animation Optional animation when + * changing the status bar hidden property. + */ + function setHidden(hidden, animation) { + animation = animation || 'none'; + StatusBar._defaultProps.hidden.value = hidden; + if (_Platform.default.OS === 'ios') { + _NativeStatusBarManagerIOS.default.setHidden(hidden, animation); + } else if (_Platform.default.OS === 'android') { + _NativeStatusBarManagerAndroid.default.setHidden(hidden); + } + } + + /** + * Set the status bar style + * @param style Status bar style to set + * @param animated Animate the style change. + */ + }, { + key: "setBarStyle", + value: function setBarStyle(style, animated) { + animated = animated || false; + StatusBar._defaultProps.barStyle.value = style; + if (_Platform.default.OS === 'ios') { + _NativeStatusBarManagerIOS.default.setStyle(style, animated); + } else if (_Platform.default.OS === 'android') { + _NativeStatusBarManagerAndroid.default.setStyle(style); + } + } + + /** + * Control the visibility of the network activity indicator + * @param visible Show the indicator. + */ + }, { + key: "setNetworkActivityIndicatorVisible", + value: function setNetworkActivityIndicatorVisible(visible) { + if (_Platform.default.OS !== 'ios') { + console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); + return; + } + StatusBar._defaultProps.networkActivityIndicatorVisible = visible; + _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(visible); + } + + /** + * Set the background color for the status bar + * @param color Background color. + * @param animated Animate the style change. + */ + }, { + key: "setBackgroundColor", + value: function setBackgroundColor(color, animated) { + if (_Platform.default.OS !== 'android') { + console.warn('`setBackgroundColor` is only available on Android'); + return; + } + animated = animated || false; + StatusBar._defaultProps.backgroundColor.value = color; + var processedColor = (0, _processColor.default)(color); + if (processedColor == null) { + console.warn(`\`StatusBar.setBackgroundColor\`: Color ${color} parsed to null or undefined`); + return; + } + (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given for StatusBar.setBackgroundColor'); + _NativeStatusBarManagerAndroid.default.setColor(processedColor, animated); + } + + /** + * Control the translucency of the status bar + * @param translucent Set as translucent. + */ + }, { + key: "setTranslucent", + value: function setTranslucent(translucent) { + if (_Platform.default.OS !== 'android') { + console.warn('`setTranslucent` is only available on Android'); + return; + } + StatusBar._defaultProps.translucent = translucent; + _NativeStatusBarManagerAndroid.default.setTranslucent(translucent); + } + + /** + * Push a StatusBar entry onto the stack. + * The return value should be passed to `popStackEntry` when complete. + * + * @param props Object containing the StatusBar props to use in the stack entry. + */ + }, { + key: "pushStackEntry", + value: function pushStackEntry(props) { + var entry = createStackEntry(props); + StatusBar._propsStack.push(entry); + StatusBar._updatePropsStack(); + return entry; + } + + /** + * Pop a StatusBar entry from the stack. + * + * @param entry Entry returned from `pushStackEntry`. + */ + }, { + key: "popStackEntry", + value: function popStackEntry(entry) { + var index = StatusBar._propsStack.indexOf(entry); + if (index !== -1) { + StatusBar._propsStack.splice(index, 1); + } + StatusBar._updatePropsStack(); + } + + /** + * Replace an existing StatusBar stack entry with new props. + * + * @param entry Entry returned from `pushStackEntry` to replace. + * @param props Object containing the StatusBar props to use in the replacement stack entry. + */ + }, { + key: "replaceStackEntry", + value: function replaceStackEntry(entry, props) { + var newEntry = createStackEntry(props); + var index = StatusBar._propsStack.indexOf(entry); + if (index !== -1) { + StatusBar._propsStack[index] = newEntry; + } + StatusBar._updatePropsStack(); + return newEntry; + } + }]); + return StatusBar; + }(React.Component); + _class = StatusBar; + StatusBar._propsStack = []; + StatusBar._defaultProps = createStackEntry({ + backgroundColor: _Platform.default.OS === 'android' ? (_NativeStatusBarManag = _NativeStatusBarManagerAndroid.default.getConstants().DEFAULT_BACKGROUND_COLOR) != null ? _NativeStatusBarManag : 'black' : 'black', + barStyle: 'default', + translucent: false, + hidden: false, + networkActivityIndicatorVisible: false + }); + // Timer for updating the native module values at the end of the frame. + // $FlowFixMe[missing-local-annot] + StatusBar._updateImmediate = null; + // The current merged values from the props stack. + // $FlowFixMe[missing-local-annot] + StatusBar._currentValues = null; + // TODO(janic): Provide a real API to deal with status bar height. See the + // discussion in #6195. + /** + * The current height of the status bar on the device. + * + * @platform android + */ + StatusBar.currentHeight = _Platform.default.OS === 'android' ? _NativeStatusBarManagerAndroid.default.getConstants().HEIGHT : null; + StatusBar._updatePropsStack = function () { + // Send the update to the native module only once at the end of the frame. + clearImmediate(_class._updateImmediate); + _class._updateImmediate = setImmediate(function () { + var oldProps = _class._currentValues; + var mergedProps = mergePropsStack(_class._propsStack, _class._defaultProps); + + // Update the props that have changed using the merged values from the props stack. + if (_Platform.default.OS === 'ios') { + if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { + _NativeStatusBarManagerIOS.default.setStyle(mergedProps.barStyle.value, mergedProps.barStyle.animated || false); + } + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + _NativeStatusBarManagerIOS.default.setHidden(mergedProps.hidden.value, mergedProps.hidden.animated ? mergedProps.hidden.transition : 'none'); + } + if (!oldProps || oldProps.networkActivityIndicatorVisible !== mergedProps.networkActivityIndicatorVisible) { + _NativeStatusBarManagerIOS.default.setNetworkActivityIndicatorVisible(mergedProps.networkActivityIndicatorVisible); + } + } else if (_Platform.default.OS === 'android') { + //todo(T60684787): Add back optimization to only update bar style and + //background color if the new value is different from the old value. + _NativeStatusBarManagerAndroid.default.setStyle(mergedProps.barStyle.value); + var processedColor = (0, _processColor.default)(mergedProps.backgroundColor.value); + if (processedColor == null) { + console.warn(`\`StatusBar._updatePropsStack\`: Color ${mergedProps.backgroundColor.value} parsed to null or undefined`); + } else { + (0, _invariant.default)(typeof processedColor === 'number', 'Unexpected color given in StatusBar._updatePropsStack'); + _NativeStatusBarManagerAndroid.default.setColor(processedColor, mergedProps.backgroundColor.animated); + } + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + _NativeStatusBarManagerAndroid.default.setHidden(mergedProps.hidden.value); + } + // Activities are not translucent by default, so always set if true. + if (!oldProps || oldProps.translucent !== mergedProps.translucent || mergedProps.translucent) { + _NativeStatusBarManagerAndroid.default.setTranslucent(mergedProps.translucent); + } + } + // Update the current prop values. + _class._currentValues = mergedProps; + }); + }; + module.exports = StatusBar; +},455,[3,12,13,49,51,53,174,17,456,457,20,41],"node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); + var constants = null; + var NativeStatusBarManager = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + }, + setColor: function setColor(color, animated) { + NativeModule.setColor(color, animated); + }, + setTranslucent: function setTranslucent(translucent) { + NativeModule.setTranslucent(translucent); + }, + /** + * - statusBarStyles can be: + * - 'default' + * - 'dark-content' + */ + setStyle: function setStyle(statusBarStyle) { + NativeModule.setStyle(statusBarStyle); + }, + setHidden: function setHidden(hidden) { + NativeModule.setHidden(hidden); + } + }; + var _default = NativeStatusBarManager; + exports.default = _default; +},456,[19],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + + var NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager'); + var constants = null; + var NativeStatusBarManager = { + getConstants: function getConstants() { + if (constants == null) { + constants = NativeModule.getConstants(); + } + return constants; + }, + // TODO(T47754272) Can we remove this method? + getHeight: function getHeight(callback) { + NativeModule.getHeight(callback); + }, + setNetworkActivityIndicatorVisible: function setNetworkActivityIndicatorVisible(visible) { + NativeModule.setNetworkActivityIndicatorVisible(visible); + }, + addListener: function addListener(eventType) { + NativeModule.addListener(eventType); + }, + removeListeners: function removeListeners(count) { + NativeModule.removeListeners(count); + }, + /** + * - statusBarStyles can be: + * - 'default' + * - 'dark-content' + * - 'light-content' + */ + setStyle: function setStyle(statusBarStyle, animated) { + NativeModule.setStyle(statusBarStyle, animated); + }, + /** + * - withAnimation can be: 'none' | 'fade' | 'slide' + */ + setHidden: function setHidden(hidden, withAnimation) { + NativeModule.setHidden(hidden, withAnimation); + } + }; + var _default = NativeStatusBarManager; + exports.default = _default; +},457,[19],"node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 16, + "height": 28, + "scales": [1], + "hash": "5b50965d3dfbc518fe50ce36c314a6ec", + "name": "chevron-left", + "type": "png" + }); +},458,[440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", + "width": 16, + "height": 28, + "scales": [1], + "hash": "e62addcde857ebdb7342e6b9f1095e97", + "name": "chevron-right", + "type": "png" + }); +},459,[440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-right.png"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _LogBoxMessage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./LogBoxMessage")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var SHOW_MORE_MESSAGE_LENGTH = 300; + function LogBoxInspectorMessageHeader(props) { + function renderShowMore() { + if (props.message.content.length < SHOW_MORE_MESSAGE_LENGTH || !props.collapsed) { + return null; + } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { + style: messageStyles.collapse, + onPress: function onPress() { + return props.onPress(); + }, + children: "... See More" + }); + } + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_View.default, { + style: messageStyles.body, + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_View.default, { + style: messageStyles.heading, + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_Text.default, { + style: [messageStyles.headingText, messageStyles[props.level]], + children: props.title + }) + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsxs)(_Text.default, { + style: messageStyles.bodyText, + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[7], "react/jsx-runtime").jsx)(_LogBoxMessage.default, { + maxLength: props.collapsed ? SHOW_MORE_MESSAGE_LENGTH : Infinity, + message: props.message, + style: messageStyles.messageText + }), renderShowMore()] + })] + }); + } + var messageStyles = _StyleSheet.default.create({ + body: { + backgroundColor: LogBoxStyle.getBackgroundColor(1), + shadowColor: '#000', + shadowOffset: { + width: 0, + height: 2 + }, + shadowRadius: 2, + shadowOpacity: 0.5, + flex: 0 + }, + bodyText: { + color: LogBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 20, + fontWeight: '500', + paddingHorizontal: 12, + paddingBottom: 10 + }, + heading: { + alignItems: 'center', + flexDirection: 'row', + paddingHorizontal: 12, + marginTop: 10, + marginBottom: 5 + }, + headingText: { + flex: 1, + fontSize: 20, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 28 + }, + warn: { + color: LogBoxStyle.getWarningColor(1) + }, + error: { + color: LogBoxStyle.getErrorColor(1) + }, + fatal: { + color: LogBoxStyle.getFatalColor(1) + }, + syntax: { + color: LogBoxStyle.getFatalColor(1) + }, + messageText: { + color: LogBoxStyle.getTextColor(0.6) + }, + collapse: { + color: LogBoxStyle.getTextColor(0.7), + fontSize: 14, + fontWeight: '300', + lineHeight: 12 + }, + button: { + paddingVertical: 5, + paddingHorizontal: 10, + borderRadius: 3 + } + }); + var _default = LogBoxInspectorMessageHeader; + exports.default = _default; +},460,[3,225,259,287,435,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Core/Devtools/openFileInEditor")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Utilities/Platform")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxInspectorSection")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var BEFORE_SLASH_RE = /^(.*)[\\/]/; + + // Taken from React https://github.com/facebook/react/blob/206d61f72214e8ae5b935f0bf8628491cb7f0797/packages/react-devtools-shared/src/backend/describeComponentFrame.js#L27-L41 + function getPrettyFileName(path) { + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; if (pathBeforeSlash) { var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + // Note the below string contains a zero width space after the "/" character. + // This is to prevent browsers like Chrome from formatting the file name as a link. + // (Since this is a source link, it would not work to open the source file anyway.) fileName = folderName + '/โ€‹' + fileName; } } @@ -95040,49 +111197,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var count = props.log.componentStack.length - 3; if (collapsed) { - return "See " + count + " more components"; + return `See ${count} more components`; } else { - return "Collapse " + count + " components"; + return `Collapse ${count} components`; } } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { heading: "Component Stack", children: [getStackList().map(function (frame, index) { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default + // Unfortunately we don't have a unique identifier for stack traces. , { style: componentStyles.frameContainer, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundColor(1) }, onPress: + // Older versions of DevTools do not provide full path. + // This will not work on Windows, remove check once the + // DevTools return the full file path. frame.fileName.startsWith('/') ? function () { var _frame$location$row, _frame$location; return (0, _openFileInEditor.default)(frame.fileName, (_frame$location$row = (_frame$location = frame.location) == null ? void 0 : _frame$location.row) != null ? _frame$location$row : 1); } : null, style: componentStyles.frame, - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { style: componentStyles.component, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { style: componentStyles.frameName, - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { style: componentStyles.bracket, children: '<' - }), frame.content, (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + }), frame.content, /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { style: componentStyles.bracket, children: ' />' })] }) - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_Text.default, { style: componentStyles.frameLocation, - children: [getPrettyFileName(frame.fileName), frame.location ? ":" + frame.location.row : ''] + children: [getPrettyFileName(frame.fileName), frame.location ? `:${frame.location.row}` : ''] })] }) }, index); - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_View.default, { style: componentStyles.collapseContainer, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundColor(1) @@ -95091,7 +111252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return setCollapsed(!collapsed); }, style: componentStyles.collapseButton, - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { style: componentStyles.collapse, children: getCollapseMessage() }) @@ -95162,7 +111323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorReactFrames; exports.default = _default; -},432,[3,19,36,244,14,255,245,381,382,428,370,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"); +},461,[3,22,225,419,259,287,17,433,451,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95170,17 +111331,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = void 0; exports.getCollapseMessage = getCollapseMessage; var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Components/View/View")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Components/View/View")); + var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Core/Devtools/openFileInEditor")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); - var _LogBoxInspectorSourceMapStatus = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxInspectorSourceMapStatus")); - var _LogBoxInspectorStackFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxInspectorStackFrame")); - var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorSection")); + var _LogBoxInspectorSection = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxInspectorSection")); + var _LogBoxInspectorSourceMapStatus = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxInspectorSourceMapStatus")); + var _LogBoxInspectorStackFrame = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./LogBoxInspectorStackFrame")); var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10], "./LogBoxStyle")); - var _openFileInEditor = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "../../Core/Devtools/openFileInEditor")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"; + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function getCollapseMessage(stackFrames, collapsed) { @@ -95197,15 +111367,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (collapsedCount === 0) { return 'Showing all frames'; } - var framePlural = "frame" + (collapsedCount > 1 ? 's' : ''); + var framePlural = `frame${collapsedCount > 1 ? 's' : ''}`; if (collapsedCount === stackFrames.length) { - return collapsed ? "See" + (collapsedCount > 1 ? ' all ' : ' ') + collapsedCount + " collapsed " + framePlural : "Collapse" + (collapsedCount > 1 ? ' all ' : ' ') + collapsedCount + " " + framePlural; + return collapsed ? `See${collapsedCount > 1 ? ' all ' : ' '}${collapsedCount} collapsed ${framePlural}` : `Collapse${collapsedCount > 1 ? ' all ' : ' '}${collapsedCount} ${framePlural}`; } else { - return collapsed ? "See " + collapsedCount + " more " + framePlural : "Collapse " + collapsedCount + " " + framePlural; + return collapsed ? `See ${collapsedCount} more ${framePlural}` : `Collapse ${collapsedCount} ${framePlural}`; } } function LogBoxInspectorStackFrames(props) { var _React$useState = React.useState(function () { + // Only collapse frames initially if some frames are not collapsed. return props.log.getAvailableStack().some(function (_ref2) { var collapse = _ref2.collapse; return !collapse; @@ -95227,22 +111398,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (props.log.getAvailableStack().length === 0) { return null; } - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsxs)(_LogBoxInspectorSection.default, { heading: "Call Stack", - action: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorSourceMapStatus.default, { + action: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorSourceMapStatus.default, { onPress: props.log.symbolicated.status === 'FAILED' ? props.onRetry : null, status: props.log.symbolicated.status }), - children: [props.log.symbolicated.status !== 'COMPLETE' && (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { + children: [props.log.symbolicated.status !== 'COMPLETE' && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { style: stackStyles.hintBox, - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { style: stackStyles.hintText, children: "This call stack is not symbolicated. Some features are unavailable such as viewing the function name or tapping to open files." }) - }), (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameList, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameList, { list: getStackList(), status: props.log.symbolicated.status - }), (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameFooter, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(StackFrameFooter, { onPress: function onPress() { return setCollapsed(!collapsed); }, @@ -95252,11 +111423,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function StackFrameList(props) { var _this = this; - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").Fragment, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").Fragment, { children: props.list.map(function (frame, index) { var file = frame.file, lineNumber = frame.lineNumber; - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrame.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxInspectorStackFrame.default, { frame: frame, onPress: props.status === 'COMPLETE' && file != null && lineNumber != null ? function () { return (0, _openFileInEditor.default)(file, lineNumber); @@ -95266,16 +111437,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } function StackFrameFooter(props) { - return (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_View.default, { style: stackStyles.collapseContainer, - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxButton.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundColor(1) }, onPress: props.onPress, style: stackStyles.collapseButton, - children: (0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[12], "react/jsx-runtime").jsx)(_Text.default, { style: stackStyles.collapse, children: props.message }) @@ -95346,7 +111517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorStackFrames; exports.default = _default; -},433,[3,19,36,244,255,245,381,434,437,428,382,370,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"); +},462,[3,22,225,419,259,287,433,451,463,466,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95355,12 +111526,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); var _Animated = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Animated/Animated")); var _Easing = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Animated/Easing")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Text/Text")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"; + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspectorSourceMapStatus(props) { @@ -95381,6 +111561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e toValue: 1, useNativeDriver: true })); + // $FlowFixMe[incompatible-call] setState({ animation: animation, rotate: animated.interpolate({ @@ -95420,7 +111601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (props.status === 'COMPLETE' || image == null) { return null; } - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: LogBoxStyle.getBackgroundColor(1) @@ -95433,7 +111614,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, onPress: props.onPress, style: styles.root, - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Animated.default.Image, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Animated.default.Image, { source: image, style: [styles.image, { tintColor: color @@ -95442,7 +111623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotate: state.rotate }] }] - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_Text.default, { style: [styles.text, { color: color }], @@ -95472,7 +111653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorSourceMapStatus; exports.default = _default; -},434,[3,19,269,294,36,244,255,381,382,435,436,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"); +},463,[3,22,375,337,259,287,433,434,41,464,465,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ "__packager_asset": true, @@ -95484,7 +111665,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "alert-triangle", "type": "png" }); -},435,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png"); +},464,[440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ "__packager_asset": true, @@ -95496,20 +111677,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "loader", "type": "png" }); -},436,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/loader.png"); +},465,[440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/loader.png"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Components/View/View")); - var _Platform = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Utilities/Platform")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"; + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Components/View/View")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Text/Text")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../Utilities/Platform")); + var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./LogBoxButton")); + var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "./LogBoxStyle")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"; + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function LogBoxInspectorStackFrame(props) { @@ -95517,19 +111707,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress = props.onPress; var column = frame.column != null && parseInt(frame.column, 10); var location = getFileName(frame.file) + (frame.lineNumber != null ? ':' + frame.lineNumber + (column && !isNaN(column) ? ':' + (column + 1) : '') : ''); - return (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { style: styles.frameContainer, - children: (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { + children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsxs)(_LogBoxButton.default, { backgroundColor: { default: 'transparent', pressed: onPress ? LogBoxStyle.getBackgroundColor(1) : 'transparent' }, onPress: onPress, style: styles.frame, - children: [(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + children: [/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { style: [styles.name, frame.collapse === true && styles.dim], children: frame.methodName - }), (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { + }), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_Text.default, { ellipsizeMode: "middle", numberOfLines: 1, style: [styles.location, frame.collapse === true && styles.dim], @@ -95592,7586 +111782,139016 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = LogBoxInspectorStackFrame; exports.default = _default; -},437,[36,3,244,255,245,14,381,382,73],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"); +},466,[3,225,259,287,17,433,434,41,89],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js"); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _Image = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Image/Image")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../Utilities/Platform")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../../StyleSheet/StyleSheet")); - var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "../../Text/Text")); - var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../../Components/View/View")); - var _StatusBar = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../../Components/StatusBar/StatusBar")); - var _LogBoxButton = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./LogBoxButton")); - var LogBoxStyle = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9], "./LogBoxStyle")); - var _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function LogBoxInspectorHeader(props) { - if (props.level === 'syntax') { - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { - style: [styles.safeArea, styles[props.level]], - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { - style: styles.header, - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { - style: styles.title, - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { - style: styles.titleText, - children: "Failed to compile" - }) - }) - }) - }); + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @nolint + * @providesModule ReactFabric-prod + * @preventMunge + * @generated SignedSource<> + */ + + "use strict"; + + _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore"); + var React = _$$_REQUIRE(_dependencyMap[1], "react"); + function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); } - var prevIndex = props.selectedIndex - 1 < 0 ? props.total - 1 : props.selectedIndex - 1; - var nextIndex = props.selectedIndex + 1 > props.total - 1 ? 0 : props.selectedIndex + 1; - var titleText = "Log " + (props.selectedIndex + 1) + " of " + props.total; - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { - style: [styles.safeArea, styles[props.level]], - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_View.default, { - style: styles.header, - children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { - disabled: props.total <= 1, - level: props.level, - image: _$$_REQUIRE(_dependencyMap[11], "./LogBoxImages/chevron-left.png"), - onPress: function onPress() { - return props.onSelectIndex(prevIndex); - } - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_View.default, { - style: styles.title, - children: (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Text.default, { - style: styles.titleText, - children: titleText - }) - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(LogBoxInspectorHeaderButton, { - disabled: props.total <= 1, - level: props.level, - image: _$$_REQUIRE(_dependencyMap[12], "./LogBoxImages/chevron-right.png"), - onPress: function onPress() { - return props.onSelectIndex(nextIndex); - } - })] - }) - }); } - var backgroundForLevel = function backgroundForLevel(level) { - return { - warn: { - default: 'transparent', - pressed: LogBoxStyle.getWarningDarkColor() - }, - error: { - default: 'transparent', - pressed: LogBoxStyle.getErrorDarkColor() - }, - fatal: { - default: 'transparent', - pressed: LogBoxStyle.getFatalDarkColor() - }, - syntax: { - default: 'transparent', - pressed: LogBoxStyle.getFatalDarkColor() + var hasError = !1, + caughtError = null, + hasRethrowError = !1, + rethrowError = null, + reporter = { + onError: function onError(error) { + hasError = !0; + caughtError = error; } - }[level]; - }; - function LogBoxInspectorHeaderButton(props) { - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_LogBoxButton.default, { - backgroundColor: backgroundForLevel(props.level), - onPress: props.disabled ? null : props.onPress, - style: headerStyles.button, - children: props.disabled ? null : (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_Image.default, { - source: props.image, - style: headerStyles.buttonImage - }) - }); + }; + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = !1; + caughtError = null; + invokeGuardedCallbackImpl.apply(reporter, arguments); } - var headerStyles = _StyleSheet.default.create({ - button: { - alignItems: 'center', - aspectRatio: 1, - justifyContent: 'center', - marginTop: 5, - marginRight: 6, - marginLeft: 6, - marginBottom: -8, - borderRadius: 3 - }, - buttonImage: { - height: 14, - width: 8, - tintColor: LogBoxStyle.getTextColor() + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + if (hasError) { + if (hasError) { + var error = caughtError; + hasError = !1; + caughtError = null; + } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + hasRethrowError || (hasRethrowError = !0, rethrowError = error); } - }); - var styles = _StyleSheet.default.create({ - syntax: { - backgroundColor: LogBoxStyle.getFatalColor() - }, - fatal: { - backgroundColor: LogBoxStyle.getFatalColor() - }, - warn: { - backgroundColor: LogBoxStyle.getWarningColor() + } + var isArrayImpl = Array.isArray, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + function executeDispatch(event, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event); + event.currentTarget = null; + } + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + if (isArrayImpl(dispatchListener)) throw Error("executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + var assign = Object.assign; + function functionThatReturnsTrue() { + return !0; + } + function functionThatReturnsFalse() { + return !1; + } + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + this._dispatchInstances = this._dispatchListeners = null; + dispatchConfig = this.constructor.Interface; + for (var propName in dispatchConfig) dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + assign(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); }, - error: { - backgroundColor: LogBoxStyle.getErrorColor() + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); }, - header: { - flexDirection: 'row', - height: _Platform.default.select({ - android: 48, - ios: 44 - }) + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; }, - title: { - alignItems: 'center', - flex: 1, - justifyContent: 'center' + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + for (propName in Interface) this[propName] = null; + this.nativeEvent = this._targetInst = this.dispatchConfig = null; + this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse; + this._dispatchInstances = this._dispatchListeners = null; + } + }); + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; }, - titleText: { - color: LogBoxStyle.getTextColor(), - fontSize: 16, - fontWeight: '600', - includeFontPadding: false, - lineHeight: 20 + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); }, - safeArea: { - paddingTop: _Platform.default.OS === 'android' ? _StatusBar.default.currentHeight : 40 + defaultPrevented: null, + isTrusted: null + }; + SyntheticEvent.extend = function (Interface) { + function E() {} + function Class() { + return Super.apply(this, arguments); + } + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + assign(prototype, Class.prototype); + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + addEventPoolingTo(SyntheticEvent); + function createOrGetPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + function releasePooledEvent(event) { + if (!(event instanceof this)) throw Error("Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + function addEventPoolingTo(EventConstructor) { + EventConstructor.getPooled = createOrGetPooledEvent; + EventConstructor.eventPool = []; + EventConstructor.release = releasePooledEvent; + } + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; } }); - var _default = LogBoxInspectorHeader; - exports.default = _default; -},438,[3,334,14,36,244,255,245,395,381,382,73,439,440],"node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", - "width": 16, - "height": 28, - "scales": [1], - "hash": "5b50965d3dfbc518fe50ce36c314a6ec", - "name": "chevron-left", - "type": "png" - }); -},439,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages", - "width": 16, - "height": 28, - "scales": [1], - "hash": "e62addcde857ebdb7342e6b9f1095e97", - "name": "chevron-right", - "type": "png" - }); -},440,[385],"node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-right.png"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _NativeAsyncLocalStorage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeAsyncLocalStorage")); - var _NativeAsyncSQLiteDBStorage = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./NativeAsyncSQLiteDBStorage")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "invariant")); - - var RCTAsyncStorage = _NativeAsyncSQLiteDBStorage.default || _NativeAsyncLocalStorage.default; - var AsyncStorage = { - _getRequests: [], - _getKeys: [], - _immediate: null, - getItem: function getItem(key, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiGet([key], function (errors, result) { - var value = result && result[0] && result[0][1] ? result[0][1] : null; - var errs = convertErrors(errors); - callback && callback(errs && errs[0], value); - if (errs) { - reject(errs[0]); - } else { - resolve(value); - } - }); - }); + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + if (null == _ref) throw Error("Touch object is missing identifier."); + return _ref; + } + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord && (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)); + } + var instrumentationCallback, + ResponderTouchHistoryStore = { + instrument: function instrument(callback) { + instrumentationCallback = callback; + }, + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + null != instrumentationCallback && instrumentationCallback(topLevelType, nativeEvent); + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } + }, + touchHistory: touchHistory + }; + function accumulate(current, next) { + if (null == next) throw Error("accumulate(...): Accumulated items must not be null or undefined."); + return null == current ? next : isArrayImpl(current) ? current.concat(next) : isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function accumulateInto(current, next) { + if (null == next) throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + if (isArrayImpl(current)) { + if (isArrayImpl(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + return isArrayImpl(next) ? [current].concat(next) : [current, next]; + } + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + var responderInst = null, + trackedTouchCount = 0; + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + var eventTypes = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies }, - setItem: function setItem(key, value, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiSet([[key, value]], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - if (errs) { - reject(errs[0]); - } else { - resolve(); - } - }); - }); + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: ["topScroll"] }, - removeItem: function removeItem(key, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiRemove([key], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - if (errs) { - reject(errs[0]); - } else { - resolve(); - } - }); - }); + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: ["topSelectionChange"] }, - mergeItem: function mergeItem(key, value, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiMerge([[key, value]], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - if (errs) { - reject(errs[0]); - } else { - resolve(); - } - }); - }); + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies }, - clear: function clear(callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.clear(function (error) { - callback && callback(convertError(error)); - if (error && convertError(error)) { - reject(convertError(error)); - } else { - resolve(); - } - }); - }); + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies }, - getAllKeys: function getAllKeys(callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.getAllKeys(function (error, keys) { - callback && callback(convertError(error), keys); - if (error) { - reject(convertError(error)); - } else { - resolve(keys); - } - }); - }); + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies }, - - flushGetRequests: function flushGetRequests() { - var getRequests = this._getRequests; - var getKeys = this._getKeys; - this._getRequests = []; - this._getKeys = []; - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - RCTAsyncStorage.multiGet(getKeys, function (errors, result) { - var map = {}; - result && result.forEach(function (_ref) { - var _ref2 = (0, _slicedToArray2.default)(_ref, 2), - key = _ref2[0], - value = _ref2[1]; - map[key] = value; - return value; - }); - var reqLength = getRequests.length; - for (var i = 0; i < reqLength; i++) { - var request = getRequests[i]; - var requestKeys = request.keys; - var requestResult = requestKeys.map(function (key) { - return [key, map[key]]; - }); - request.callback && request.callback(null, requestResult); - request.resolve && request.resolve(requestResult); - } - }); + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies }, - multiGet: function multiGet(keys, callback) { - var _this = this; - if (!this._immediate) { - this._immediate = setImmediate(function () { - _this._immediate = null; - _this.flushGetRequests(); - }); - } - return new Promise(function (resolve, reject) { - _this._getRequests.push({ - keys: keys, - callback: callback, - keyIndex: _this._getKeys.length, - resolve: resolve, - reject: reject - }); - keys.forEach(function (key) { - if (_this._getKeys.indexOf(key) === -1) { - _this._getKeys.push(key); - } - }); - }); + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies }, - multiSet: function multiSet(keyValuePairs, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiSet(keyValuePairs, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - if (error) { - reject(error); - } else { - resolve(); - } - }); - }); + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] }, - multiRemove: function multiRemove(keys, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiRemove(keys, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - if (error) { - reject(error); - } else { - resolve(); - } - }); - }); + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] }, - multiMerge: function multiMerge(keyValuePairs, callback) { - (0, _invariant.default)(RCTAsyncStorage, 'RCTAsyncStorage not available'); - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiMerge(keyValuePairs, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - if (error) { - reject(error); - } else { - resolve(); - } - }); - }); + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] } }; - - if (RCTAsyncStorage && !RCTAsyncStorage.multiMerge) { - delete AsyncStorage.mergeItem; - delete AsyncStorage.multiMerge; + function getParent(inst) { + do inst = inst.return; while (inst && 5 !== inst.tag); + return inst ? inst : null; } - function convertErrors( - errs) { - if (!errs) { - return null; - } - return (Array.isArray(errs) ? errs : [errs]).map(function (e) { - return convertError(e); - }); + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) path.push(inst), inst = getParent(inst); + for (inst = path.length; 0 < inst--;) fn(path[inst], "captured", arg); + for (inst = 0; inst < path.length; inst++) fn(path[inst], "bubbled", arg); } - function convertError(error) { - if (!error) { - return null; - } - var out = new Error(error.message); - out.key = error.key; - return out; + function getListener(inst, registrationName) { + inst = inst.stateNode; + if (null === inst) return null; + inst = getFiberCurrentPropsFromNode(inst); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + return inst; } - module.exports = AsyncStorage; -},441,[3,19,442,443,17],"node_modules/react-native/Libraries/Storage/AsyncStorage.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('AsyncLocalStorage'); - exports.default = _default; -},442,[16],"node_modules/react-native/Libraries/Storage/NativeAsyncLocalStorage.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('AsyncSQLiteDBStorage'); - exports.default = _default; -},443,[16],"node_modules/react-native/Libraries/Storage/NativeAsyncSQLiteDBStorage.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeClipboard = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeClipboard")); - - module.exports = { - getString: function getString() { - return _NativeClipboard.default.getString(); - }, - setString: function setString(content) { - _NativeClipboard.default.setString(content); - } - }; -},444,[3,445],"node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('Clipboard'); - exports.default = _default; -},445,[16],"node_modules/react-native/Libraries/Components/Clipboard/NativeClipboard.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeImagePickerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeImagePickerIOS")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "invariant")); - - var ImagePickerIOS = { - canRecordVideos: function canRecordVideos(callback) { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - return _NativeImagePickerIOS.default.canRecordVideos(callback); - }, - canUseCamera: function canUseCamera(callback) { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - return _NativeImagePickerIOS.default.canUseCamera(callback); - }, - openCameraDialog: function openCameraDialog(config, successCallback, cancelCallback) { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - var newConfig = { - videoMode: true, - unmirrorFrontFacingCamera: false - }; - if (config.videoMode != null) { - newConfig.videoMode = config.videoMode; - } - if (config.unmirrorFrontFacingCamera != null) { - newConfig.unmirrorFrontFacingCamera = config.unmirrorFrontFacingCamera; - } - return _NativeImagePickerIOS.default.openCameraDialog(newConfig, successCallback, cancelCallback); - }, - openSelectDialog: function openSelectDialog(config, successCallback, cancelCallback) { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - var newConfig = { - showImages: true, - showVideos: false - }; - if (config.showImages != null) { - newConfig.showImages = config.showImages; - } - if (config.showVideos != null) { - newConfig.showVideos = config.showVideos; + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); } - return _NativeImagePickerIOS.default.openSelectDialog(newConfig, successCallback, cancelCallback); - }, - removePendingVideo: function removePendingVideo(url) { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - _NativeImagePickerIOS.default.removePendingVideo(url); - }, - clearAllPendingVideos: function clearAllPendingVideos() { - (0, _invariant.default)(_NativeImagePickerIOS.default, 'ImagePickerIOS is not available'); - _NativeImagePickerIOS.default.clearAllPendingVideos(); } - }; - module.exports = ImagePickerIOS; -},446,[3,447,17],"node_modules/react-native/Libraries/Image/ImagePickerIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('ImagePickerIOS'); - exports.default = _default; -},447,[16],"node_modules/react-native/Libraries/Image/NativeImagePickerIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); - var _NativeEventEmitter2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../EventEmitter/NativeEventEmitter")); - var _InteractionManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Interaction/InteractionManager")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Utilities/Platform")); - var _NativeLinkingManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./NativeLinkingManager")); - var _NativeIntentAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./NativeIntentAndroid")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "invariant")); - var _nullthrows = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "nullthrows")); - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var Linking = function (_NativeEventEmitter) { - (0, _inherits2.default)(Linking, _NativeEventEmitter); - var _super = _createSuper(Linking); - function Linking() { - (0, _classCallCheck2.default)(this, Linking); - return _super.call(this, _Platform.default.OS === 'ios' ? (0, _nullthrows.default)(_NativeLinkingManager.default) : undefined); + } + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); } - - (0, _createClass2.default)(Linking, [{ - key: "addEventListener", - value: - function addEventListener(eventType, listener, context) { - return this.addListener(eventType, listener); - } - - }, { - key: "openURL", - value: - function openURL(url) { - this._validateURL(url); - if (_Platform.default.OS === 'android') { - return (0, _nullthrows.default)(_NativeIntentAndroid.default).openURL(url); - } else { - return (0, _nullthrows.default)(_NativeLinkingManager.default).openURL(url); + } + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp = responderInst; + for (var depthA = 0, tempA = JSCompiler_temp; tempA; tempA = getParent(tempA)) depthA++; + tempA = 0; + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) tempA++; + for (; 0 < depthA - tempA;) JSCompiler_temp = getParent(JSCompiler_temp), depthA--; + for (; 0 < tempA - depthA;) targetInst = getParent(targetInst), tempA--; + for (; depthA--;) { + if (JSCompiler_temp === targetInst || JSCompiler_temp === targetInst.alternate) break b; + JSCompiler_temp = getParent(JSCompiler_temp); + targetInst = getParent(targetInst); + } + JSCompiler_temp = null; + } else JSCompiler_temp = targetInst; + targetInst = JSCompiler_temp; + JSCompiler_temp = targetInst === responderInst; + shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, targetInst, nativeEvent, nativeEventTarget); + shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory; + JSCompiler_temp ? forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(shouldSetEventType, accumulateTwoPhaseDispatchesSingle); + b: { + JSCompiler_temp = shouldSetEventType._dispatchListeners; + targetInst = shouldSetEventType._dispatchInstances; + if (isArrayImpl(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !shouldSetEventType.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](shouldSetEventType, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(shouldSetEventType, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + shouldSetEventType._dispatchInstances = null; + shouldSetEventType._dispatchListeners = null; + shouldSetEventType.isPersistent() || shouldSetEventType.constructor.release(shouldSetEventType); + if (JSCompiler_temp && JSCompiler_temp !== responderInst) { + if (shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), targetInst = !0 === executeDirectDispatch(shouldSetEventType), responderInst) { + if (depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), depthA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(depthA, accumulateDirectDispatchesSingle), tempA = !depthA._dispatchListeners || executeDirectDispatch(depthA), depthA.isPersistent() || depthA.constructor.release(depthA), tempA) { + depthA = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + depthA.touchHistory = ResponderTouchHistoryStore.touchHistory; + forEachAccumulated(depthA, accumulateDirectDispatchesSingle); + var JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [shouldSetEventType, depthA]); + changeResponder(JSCompiler_temp, targetInst); + } else shouldSetEventType = ResponderSyntheticEvent.getPooled(eventTypes.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + } else JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType), changeResponder(JSCompiler_temp, targetInst); + } else JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = null; + shouldSetEventType = responderInst && isStartish(topLevelType); + JSCompiler_temp = responderInst && isMoveish(topLevelType); + targetInst = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (shouldSetEventType = shouldSetEventType ? eventTypes.responderStart : JSCompiler_temp ? eventTypes.responderMove : targetInst ? eventTypes.responderEnd : null) shouldSetEventType = ResponderSyntheticEvent.getPooled(shouldSetEventType, responderInst, nativeEvent, nativeEventTarget), shouldSetEventType.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(shouldSetEventType, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, shouldSetEventType); + shouldSetEventType = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !shouldSetEventType && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (JSCompiler_temp = 0; JSCompiler_temp < topLevelType.length; JSCompiler_temp++) if (targetInst = topLevelType[JSCompiler_temp].target, null !== targetInst && void 0 !== targetInst && 0 !== targetInst) { + depthA = getInstanceFromNode(targetInst); + b: { + for (targetInst = responderInst; depthA;) { + if (targetInst === depthA || targetInst === depthA.alternate) { + targetInst = !0; + break b; + } + depthA = getParent(depthA); + } + targetInst = !1; + } + if (targetInst) { + topLevelType = !1; + break a; + } + } + topLevelType = !0; } - } - - }, { - key: "canOpenURL", - value: - function canOpenURL(url) { - this._validateURL(url); - if (_Platform.default.OS === 'android') { - return (0, _nullthrows.default)(_NativeIntentAndroid.default).canOpenURL(url); - } else { - return (0, _nullthrows.default)(_NativeLinkingManager.default).canOpenURL(url); + if (topLevelType = shouldSetEventType ? eventTypes.responderTerminate : topLevelType ? eventTypes.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, nativeEvent), changeResponder(null); + return JSCompiler_temp$jscomp$0; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; } } - - }, { - key: "openSettings", - value: - function openSettings() { - if (_Platform.default.OS === 'android') { - return (0, _nullthrows.default)(_NativeIntentAndroid.default).openSettings(); - } else { - return (0, _nullthrows.default)(_NativeLinkingManager.default).openSettings(); + }, + eventPluginOrder = null, + namesToPlugins = {}; + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + if (-1 >= pluginIndex) throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + (pluginName + "`.")); + if (!plugins[pluginIndex]) { + if (!pluginModule.extractEvents) throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + (pluginName + "` does not.")); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + eventName$jscomp$0 = eventName; + if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0)) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + (eventName$jscomp$0 + "`.")); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule, eventName$jscomp$0); + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + if (!JSCompiler_inline_result) throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); } } - - }, { - key: "getInitialURL", - value: - function getInitialURL() { - return _Platform.default.OS === 'android' ? _InteractionManager.default.runAfterInteractions().then(function () { - return (0, _nullthrows.default)(_NativeIntentAndroid.default).getInitialURL(); - }) : (0, _nullthrows.default)(_NativeLinkingManager.default).getInitialURL(); - } - - }, { - key: "sendIntent", - value: - function sendIntent(action, extras) { - if (_Platform.default.OS === 'android') { - return (0, _nullthrows.default)(_NativeIntentAndroid.default).sendIntent(action, extras); - } else { - return new Promise(function (resolve, reject) { - return reject(new Error('Unsupported')); + } + } + function publishRegistrationName(registrationName, pluginModule) { + if (registrationNameModules[registrationName]) throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + (registrationName + "`.")); + registrationNameModules[registrationName] = pluginModule; + } + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}; + function getListeners(inst, registrationName, phase, dispatchToImperativeListeners) { + var stateNode = inst.stateNode; + if (null === stateNode) return null; + inst = getFiberCurrentPropsFromNode(stateNode); + if (null === inst) return null; + if ((inst = inst[registrationName]) && "function" !== typeof inst) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof inst + "` type."); + if (!(dispatchToImperativeListeners && stateNode.canonical && stateNode.canonical._eventListeners)) return inst; + var listeners = []; + inst && listeners.push(inst); + var requestedPhaseIsCapture = "captured" === phase, + mangledImperativeRegistrationName = requestedPhaseIsCapture ? "rn:" + registrationName.replace(/Capture$/, "") : "rn:" + registrationName; + stateNode.canonical._eventListeners[mangledImperativeRegistrationName] && 0 < stateNode.canonical._eventListeners[mangledImperativeRegistrationName].length && stateNode.canonical._eventListeners[mangledImperativeRegistrationName].forEach(function (listenerObj) { + if ((null != listenerObj.options.capture && listenerObj.options.capture) === requestedPhaseIsCapture) { + var listenerFnWrapper = function listenerFnWrapper(syntheticEvent) { + var eventInst = new (_$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").CustomEvent)(mangledImperativeRegistrationName, { + detail: syntheticEvent.nativeEvent }); - } - } - }, { - key: "_validateURL", - value: function _validateURL(url) { - (0, _invariant.default)(typeof url === 'string', 'Invalid URL: should be a string. Was: ' + url); - (0, _invariant.default)(url, 'Invalid URL: cannot be empty'); + eventInst.isTrusted = !0; + eventInst.setSyntheticEvent(syntheticEvent); + for (var _len = arguments.length, args = Array(1 < _len ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; + listenerObj.listener.apply(listenerObj, [eventInst].concat(args)); + }; + listenerObj.options.once ? listeners.push(function () { + stateNode.canonical.removeEventListener_unstable(mangledImperativeRegistrationName, listenerObj.listener, listenerObj.capture); + listenerObj.invalidated || (listenerObj.invalidated = !0, listenerObj.listener.apply(listenerObj, arguments)); + }) : listeners.push(listenerFnWrapper); } - }]); - return Linking; - }(_NativeEventEmitter2.default); - module.exports = new Linking(); -},448,[3,12,13,50,47,46,134,279,14,449,450,17,403],"node_modules/react-native/Libraries/Linking/Linking.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('LinkingManager'); - exports.default = _default; -},449,[16],"node_modules/react-native/Libraries/Linking/NativeLinkingManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('IntentAndroid'); - exports.default = _default; -},450,[16],"node_modules/react-native/Libraries/Linking/NativeIntentAndroid.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var PanResponder = { - _initializeGestureState: function _initializeGestureState(gestureState) { - gestureState.moveX = 0; - gestureState.moveY = 0; - gestureState.x0 = 0; - gestureState.y0 = 0; - gestureState.dx = 0; - gestureState.dy = 0; - gestureState.vx = 0; - gestureState.vy = 0; - gestureState.numberActiveTouches = 0; - gestureState._accountsForMovesUpTo = 0; - }, - _updateGestureStateOnMove: function _updateGestureStateOnMove(gestureState, touchHistory) { - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - gestureState.moveX = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); - gestureState.moveY = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); - var movedAfter = gestureState._accountsForMovesUpTo; - var prevX = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); - var x = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); - var prevY = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); - var y = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); - var nextDX = gestureState.dx + (x - prevX); - var nextDY = gestureState.dy + (y - prevY); - - var dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo; - gestureState.vx = (nextDX - gestureState.dx) / dt; - gestureState.vy = (nextDY - gestureState.dy) / dt; - gestureState.dx = nextDX; - gestureState.dy = nextDY; - gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp; - }, - create: function create(config) { - var interactionState = { - handle: null - }; - var gestureState = { - stateID: Math.random(), - moveX: 0, - moveY: 0, - x0: 0, - y0: 0, - dx: 0, - dy: 0, - vx: 0, - vy: 0, - numberActiveTouches: 0, - _accountsForMovesUpTo: 0 - }; - var panHandlers = { - onStartShouldSetResponder: function onStartShouldSetResponder(event) { - return config.onStartShouldSetPanResponder == null ? false : config.onStartShouldSetPanResponder(event, gestureState); - }, - onMoveShouldSetResponder: function onMoveShouldSetResponder(event) { - return config.onMoveShouldSetPanResponder == null ? false : config.onMoveShouldSetPanResponder(event, gestureState); - }, - onStartShouldSetResponderCapture: function onStartShouldSetResponderCapture(event) { - if (event.nativeEvent.touches.length === 1) { - PanResponder._initializeGestureState(gestureState); - } - gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches; - return config.onStartShouldSetPanResponderCapture != null ? config.onStartShouldSetPanResponderCapture(event, gestureState) : false; - }, - onMoveShouldSetResponderCapture: function onMoveShouldSetResponderCapture(event) { - var touchHistory = event.touchHistory; - if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { - return false; - } - PanResponder._updateGestureStateOnMove(gestureState, touchHistory); - return config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(event, gestureState) : false; - }, - onResponderGrant: function onResponderGrant(event) { - if (!interactionState.handle) { - interactionState.handle = _$$_REQUIRE(_dependencyMap[1], "./InteractionManager").createInteractionHandle(); - } - gestureState.x0 = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidX(event.touchHistory); - gestureState.y0 = _$$_REQUIRE(_dependencyMap[0], "./TouchHistoryMath").currentCentroidY(event.touchHistory); - gestureState.dx = 0; - gestureState.dy = 0; - if (config.onPanResponderGrant) { - config.onPanResponderGrant(event, gestureState); - } - return config.onShouldBlockNativeResponder == null ? true : config.onShouldBlockNativeResponder(event, gestureState); - }, - onResponderReject: function onResponderReject(event) { - clearInteractionHandle(interactionState, config.onPanResponderReject, event, gestureState); - }, - onResponderRelease: function onResponderRelease(event) { - clearInteractionHandle(interactionState, config.onPanResponderRelease, event, gestureState); - PanResponder._initializeGestureState(gestureState); - }, - onResponderStart: function onResponderStart(event) { - var touchHistory = event.touchHistory; - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - if (config.onPanResponderStart) { - config.onPanResponderStart(event, gestureState); - } - }, - onResponderMove: function onResponderMove(event) { - var touchHistory = event.touchHistory; - if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { - return; - } - PanResponder._updateGestureStateOnMove(gestureState, touchHistory); - if (config.onPanResponderMove) { - config.onPanResponderMove(event, gestureState); - } - }, - onResponderEnd: function onResponderEnd(event) { - var touchHistory = event.touchHistory; - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - clearInteractionHandle(interactionState, config.onPanResponderEnd, event, gestureState); - }, - onResponderTerminate: function onResponderTerminate(event) { - clearInteractionHandle(interactionState, config.onPanResponderTerminate, event, gestureState); - PanResponder._initializeGestureState(gestureState); - }, - onResponderTerminationRequest: function onResponderTerminationRequest(event) { - return config.onPanResponderTerminationRequest == null ? true : config.onPanResponderTerminationRequest(event, gestureState); - } - }; - return { - panHandlers: panHandlers, - getInteractionHandle: function getInteractionHandle() { - return interactionState.handle; - } - }; - } - }; - function clearInteractionHandle(interactionState, callback, event, gestureState) { - if (interactionState.handle) { - _$$_REQUIRE(_dependencyMap[1], "./InteractionManager").clearInteractionHandle(interactionState.handle); - interactionState.handle = null; + }); + return 0 === listeners.length ? null : 1 === listeners.length ? listeners[0] : listeners; + } + var customBubblingEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.customDirectEventTypes; + function accumulateListenersAndInstances(inst, event, listeners) { + var listenersLength = listeners ? isArrayImpl(listeners) ? listeners.length : 1 : 0; + if (0 < listenersLength) if (event._dispatchListeners = accumulateInto(event._dispatchListeners, listeners), null == event._dispatchInstances && 1 === listenersLength) event._dispatchInstances = inst;else for (event._dispatchInstances = event._dispatchInstances || [], isArrayImpl(event._dispatchInstances) || (event._dispatchInstances = [event._dispatchInstances]), listeners = 0; listeners < listenersLength; listeners++) event._dispatchInstances.push(inst); + } + function accumulateDirectionalDispatches$1(inst, phase, event) { + phase = getListeners(inst, event.dispatchConfig.phasedRegistrationNames[phase], phase, !0); + accumulateListenersAndInstances(inst, event, phase); + } + function traverseTwoPhase$1(inst, fn, arg, skipBubbling) { + for (var path = []; inst;) { + path.push(inst); + do inst = inst.return; while (inst && 5 !== inst.tag); + inst = inst ? inst : null; } - if (callback) { - callback(event, gestureState); + for (inst = path.length; 0 < inst--;) fn(path[inst], "captured", arg); + if (skipBubbling) fn(path[0], "bubbled", arg);else for (inst = 0; inst < path.length; inst++) fn(path[inst], "bubbled", arg); + } + function accumulateTwoPhaseDispatchesSingle$1(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(event._targetInst, accumulateDirectionalDispatches$1, event, !1); + } + function accumulateDirectDispatchesSingle$1(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + if (inst && event && event.dispatchConfig.registrationName) { + var listeners = getListeners(inst, event.dispatchConfig.registrationName, "bubbled", !1); + accumulateListenersAndInstances(inst, event, listeners); + } } } - module.exports = PanResponder; -},451,[452,279],"node_modules/react-native/Libraries/Interaction/PanResponder.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - var TouchHistoryMath = { - centroidDimension: function centroidDimension(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) { - var touchBank = touchHistory.touchBank; - var total = 0; - var count = 0; - var oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null; - if (oneTouchData !== null) { - if (oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter) { - total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY; - count = 1; - } - } else { - for (var i = 0; i < touchBank.length; i++) { - var touchTrack = touchBank[i]; - if (touchTrack !== null && touchTrack !== undefined && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) { - var toAdd = void 0; - if (ofCurrent && isXAxis) { - toAdd = touchTrack.currentPageX; - } else if (ofCurrent && !isXAxis) { - toAdd = touchTrack.currentPageY; - } else if (!ofCurrent && isXAxis) { - toAdd = touchTrack.previousPageX; - } else { - toAdd = touchTrack.previousPageY; - } - total += toAdd; - count++; - } + if (eventPluginOrder) throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + recomputePluginOrdering(); + var injectedNamesToPlugins$jscomp$inline_223 = { + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: { + eventTypes: {}, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes[topLevelType], + directDispatchConfig = customDirectEventTypes[topLevelType]; + if (!bubbleDispatchConfig && !directDispatchConfig) throw Error('Unsupported top level event type "' + topLevelType + '" dispatched'); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) null != topLevelType && null != topLevelType.dispatchConfig.phasedRegistrationNames && topLevelType.dispatchConfig.phasedRegistrationNames.skipBubbling ? topLevelType && topLevelType.dispatchConfig.phasedRegistrationNames && traverseTwoPhase$1(topLevelType._targetInst, accumulateDirectionalDispatches$1, topLevelType, !0) : forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle$1);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle$1);else return null; + return topLevelType; } } - return count > 0 ? total / count : TouchHistoryMath.noCentroid; - }, - currentCentroidXOfTouchesChangedAfter: function currentCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, - true); - }, - - currentCentroidYOfTouchesChangedAfter: function currentCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, - true); - }, - - previousCentroidXOfTouchesChangedAfter: function previousCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, - false); - }, - - previousCentroidYOfTouchesChangedAfter: function previousCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, - false); - }, - - currentCentroidX: function currentCentroidX(touchHistory) { - return TouchHistoryMath.centroidDimension(touchHistory, 0, - true, - true); - }, - - currentCentroidY: function currentCentroidY(touchHistory) { - return TouchHistoryMath.centroidDimension(touchHistory, 0, - false, - true); }, - - noCentroid: -1 + isOrderingDirty$jscomp$inline_224 = !1, + pluginName$jscomp$inline_225; + for (pluginName$jscomp$inline_225 in injectedNamesToPlugins$jscomp$inline_223) if (injectedNamesToPlugins$jscomp$inline_223.hasOwnProperty(pluginName$jscomp$inline_225)) { + var pluginModule$jscomp$inline_226 = injectedNamesToPlugins$jscomp$inline_223[pluginName$jscomp$inline_225]; + if (!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_225) || namesToPlugins[pluginName$jscomp$inline_225] !== pluginModule$jscomp$inline_226) { + if (namesToPlugins[pluginName$jscomp$inline_225]) throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + (pluginName$jscomp$inline_225 + "`.")); + namesToPlugins[pluginName$jscomp$inline_225] = pluginModule$jscomp$inline_226; + isOrderingDirty$jscomp$inline_224 = !0; + } + } + isOrderingDirty$jscomp$inline_224 && recomputePluginOrdering(); + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; + } + getFiberCurrentPropsFromNode = function getFiberCurrentPropsFromNode(inst) { + return inst.canonical.currentProps; }; - module.exports = TouchHistoryMath; -},452,[],"node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator")); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass")); - var _NativeDialogManagerAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../NativeModules/specs/NativeDialogManagerAndroid")); - var _NativePermissionsAndroid = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./NativePermissionsAndroid")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "invariant")); - var PERMISSION_REQUEST_RESULT = Object.freeze({ - GRANTED: 'granted', - DENIED: 'denied', - NEVER_ASK_AGAIN: 'never_ask_again' - }); - var PERMISSIONS = 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', - 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_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', - NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES' + getInstanceFromNode = getInstanceFromInstance; + getNodeFromInstance = function getNodeFromInstance(inst) { + inst = inst.stateNode.canonical; + if (!inst._nativeTag) throw Error("All native instances should have a tag."); + return inst; + }; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + var fromOrTo = from || to; + (fromOrTo = fromOrTo && fromOrTo.stateNode) && fromOrTo.canonical._internalInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.stateNode.node, !1, blockNativeResponder || !1), to && nativeFabricUIManager.setIsJSResponder(to.stateNode.node, !0, blockNativeResponder || !1)) : null !== to ? _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.clearJSResponder(); + } }); - - var PermissionsAndroid = function () { - function PermissionsAndroid() { - (0, _classCallCheck2.default)(this, PermissionsAndroid); - this.PERMISSIONS = PERMISSIONS; - this.RESULTS = PERMISSION_REQUEST_RESULT; + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"); + Symbol.for("react.scope"); + Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + Symbol.for("react.legacy_hidden"); + Symbol.for("react.cache"); + Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; } - (0, _createClass2.default)(PermissionsAndroid, [{ - key: "checkPermission", - value: - function checkPermission(permission) { - console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'); - if ("ios" !== 'android') { - console.warn('"PermissionsAndroid" module works only for Android platform.'); - return Promise.resolve(false); + if ("object" === typeof type) switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); + return type; + case REACT_MEMO_TYPE: + return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof type) return type.displayName || type.name || null; + if ("string" === typeof type) return type; + } + return null; + } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return;) node = node.return;else { + fiber = node; + do node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate;;) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; } - (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); - return _NativePermissionsAndroid.default.checkPermission(permission); + break; } - - }, { - key: "check", - value: - function check(permission) { - if ("ios" !== 'android') { - console.warn('"PermissionsAndroid" module works only for Android platform.'); - return Promise.resolve(false); + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB;) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; } - (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); - return _NativePermissionsAndroid.default.checkPermission(permission); + throw Error("Unable to find node on an unmounted component."); } - - }, { - key: "requestPermission", - value: function () { - var _requestPermission = (0, _asyncToGenerator2.default)(function* (permission, rationale) { - console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'); - if ("ios" !== 'android') { - console.warn('"PermissionsAndroid" module works only for Android platform.'); - return Promise.resolve(false); + if (a.return !== b.return) a = parentA, b = parentB;else { + for (var didFindChild = !1, child$0 = parentA.child; child$0;) { + if (child$0 === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; } - var response = yield this.request(permission, rationale); - return response === this.RESULTS.GRANTED; - }); - function requestPermission(_x, _x2) { - return _requestPermission.apply(this, arguments); - } - return requestPermission; - }() - }, { - key: "request", - value: function () { - var _request = (0, _asyncToGenerator2.default)(function* (permission, rationale) { - if ("ios" !== 'android') { - console.warn('"PermissionsAndroid" module works only for Android platform.'); - return Promise.resolve(this.RESULTS.DENIED); + if (child$0 === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; } - (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); - if (rationale) { - var shouldShowRationale = yield _NativePermissionsAndroid.default.shouldShowRequestPermissionRationale(permission); - if (shouldShowRationale && !!_NativeDialogManagerAndroid.default) { - return new Promise(function (resolve, reject) { - var options = Object.assign({}, rationale); - _NativeDialogManagerAndroid.default.showAlert( - options, function () { - return reject(new Error('Error showing rationale')); - }, function () { - return resolve(_NativePermissionsAndroid.default.requestPermission(permission)); - }); - }); + child$0 = child$0.sibling; + } + if (!didFindChild) { + for (child$0 = parentB.child; child$0;) { + if (child$0 === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (child$0 === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; } + child$0 = child$0.sibling; } - return _NativePermissionsAndroid.default.requestPermission(permission); - }); - function request(_x3, _x4) { - return _request.apply(this, arguments); - } - return request; - }() - }, { - key: "requestMultiple", - value: - function requestMultiple(permissions) { - if ("ios" !== 'android') { - console.warn('"PermissionsAndroid" module works only for Android platform.'); - return Promise.resolve({}); + if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); } - (0, _invariant.default)(_NativePermissionsAndroid.default, 'PermissionsAndroid is not installed correctly.'); - return _NativePermissionsAndroid.default.requestMultiplePermissions(permissions); - } - }]); - return PermissionsAndroid; - }(); - var PermissionsAndroidInstance = new PermissionsAndroid(); - module.exports = PermissionsAndroidInstance; -},453,[3,65,12,13,146,454,17],"node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('PermissionsAndroid'); - exports.default = _default; -},454,[16],"node_modules/react-native/Libraries/PermissionsAndroid/NativePermissionsAndroid.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../EventEmitter/NativeEventEmitter")); - var _NativePushNotificationManagerIOS = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativePushNotificationManagerIOS")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "invariant")); - var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../Utilities/Platform")); - - var PushNotificationEmitter = new _NativeEventEmitter.default( - _Platform.default.OS !== 'ios' ? null : _NativePushNotificationManagerIOS.default); - var _notifHandlers = new Map(); - var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived'; - var NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered'; - var NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError'; - var DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived'; - var PushNotificationIOS = function () { - function PushNotificationIOS(nativeNotif) { - var _this = this; - (0, _classCallCheck2.default)(this, PushNotificationIOS); - this._data = {}; - this._remoteNotificationCompleteCallbackCalled = false; - this._isRemote = nativeNotif.remote; - if (this._isRemote) { - this._notificationId = nativeNotif.notificationId; - } - if (nativeNotif.remote) { - Object.keys(nativeNotif).forEach(function (notifKey) { - var notifVal = nativeNotif[notifKey]; - if (notifKey === 'aps') { - _this._alert = notifVal.alert; - _this._sound = notifVal.sound; - _this._badgeCount = notifVal.badge; - _this._category = notifVal.category; - _this._contentAvailable = notifVal['content-available']; - _this._threadID = notifVal['thread-id']; - } else { - _this._data[notifKey] = notifVal; - } - }); - } else { - this._badgeCount = nativeNotif.applicationIconBadgeNumber; - this._sound = nativeNotif.soundName; - this._alert = nativeNotif.alertBody; - this._data = nativeNotif.userInfo; - this._category = nativeNotif.category; } + if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); } - - (0, _createClass2.default)(PushNotificationIOS, [{ - key: "finish", - value: - function finish(fetchResult) { - if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCallbackCalled) { - return; + if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + if (5 === node.tag || 6 === node.tag) return node; + for (node = node.child; null !== node;) { + var match = findCurrentHostFiberImpl(node); + if (null !== match) return match; + node = node.sibling; + } + return null; + } + function mountSafeCallback_NOT_REALLY_SAFE(context, callback) { + return function () { + if (callback && ("boolean" !== typeof context.__isMounted || context.__isMounted)) return callback.apply(context, arguments); + }; + } + var emptyObject = {}, + removedKeys = null, + removedKeyCount = 0, + deepDifferOptions = { + unsafelyIgnoreFunctions: !0 + }; + function defaultDiffer(prevProp, nextProp) { + return "object" !== typeof nextProp || null === nextProp ? !0 : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").deepDiffer(prevProp, nextProp, deepDifferOptions); + } + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (isArrayImpl(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes);else if (node && 0 < removedKeyCount) for (i in removedKeys) if (removedKeys[i]) { + var nextProp = node[i]; + if (void 0 !== nextProp) { + var attributeConfig = validAttributes[i]; + if (attributeConfig) { + "function" === typeof nextProp && (nextProp = !0); + "undefined" === typeof nextProp && (nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[i] = nextProp; + removedKeys[i] = !1; + removedKeyCount--; } - this._remoteNotificationCompleteCallbackCalled = true; - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.onFinishRemoteNotification(this._notificationId, fetchResult); - } - - }, { - key: "getMessage", - value: - function getMessage() { - return this._alert; - } - - }, { - key: "getSound", - value: - function getSound() { - return this._sound; - } - - }, { - key: "getCategory", - value: - function getCategory() { - return this._category; - } - - }, { - key: "getAlert", - value: - function getAlert() { - return this._alert; - } - - }, { - key: "getContentAvailable", - value: - function getContentAvailable() { - return this._contentAvailable; - } - - }, { - key: "getBadgeCount", - value: - function getBadgeCount() { - return this._badgeCount; - } - - }, { - key: "getData", - value: - function getData() { - return this._data; - } - - }, { - key: "getThreadID", - value: - function getThreadID() { - return this._threadID; } - }], [{ - key: "presentLocalNotification", - value: - function presentLocalNotification(details) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.presentLocalNotification(details); - } - - }, { - key: "scheduleLocalNotification", - value: - function scheduleLocalNotification(details) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.scheduleLocalNotification(details); - } - - }, { - key: "cancelAllLocalNotifications", - value: - function cancelAllLocalNotifications() { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.cancelAllLocalNotifications(); - } - - }, { - key: "removeAllDeliveredNotifications", - value: - function removeAllDeliveredNotifications() { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.removeAllDeliveredNotifications(); - } - - }, { - key: "getDeliveredNotifications", - value: - function getDeliveredNotifications(callback) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.getDeliveredNotifications(callback); - } - - }, { - key: "removeDeliveredNotifications", - value: - function removeDeliveredNotifications(identifiers) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.removeDeliveredNotifications(identifiers); - } - - }, { - key: "setApplicationIconBadgeNumber", - value: - function setApplicationIconBadgeNumber(number) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.setApplicationIconBadgeNumber(number); - } - - }, { - key: "getApplicationIconBadgeNumber", - value: - function getApplicationIconBadgeNumber(callback) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.getApplicationIconBadgeNumber(callback); - } - - }, { - key: "cancelLocalNotifications", - value: - function cancelLocalNotifications(userInfo) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.cancelLocalNotifications(userInfo); - } - - }, { - key: "getScheduledLocalNotifications", - value: - function getScheduledLocalNotifications(callback) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.getScheduledLocalNotifications(callback); - } - - }, { - key: "addEventListener", - value: - function addEventListener(type, handler) { - (0, _invariant.default)(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); - var listener; - if (type === 'notification') { - listener = PushNotificationEmitter.addListener(DEVICE_NOTIF_EVENT, function (notifData) { - handler(new PushNotificationIOS(notifData)); - }); - } else if (type === 'localNotification') { - listener = PushNotificationEmitter.addListener(DEVICE_LOCAL_NOTIF_EVENT, function (notifData) { - handler(new PushNotificationIOS(notifData)); - }); - } else if (type === 'register') { - listener = PushNotificationEmitter.addListener(NOTIF_REGISTER_EVENT, function (registrationInfo) { - handler(registrationInfo.deviceToken); - }); - } else if (type === 'registrationError') { - listener = PushNotificationEmitter.addListener(NOTIF_REGISTRATION_ERROR_EVENT, function (errorInfo) { - handler(errorInfo); - }); - } - _notifHandlers.set(type, listener); - } - - }, { - key: "removeEventListener", - value: - function removeEventListener(type, handler) { - (0, _invariant.default)(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); - var listener = _notifHandlers.get(type); - if (!listener) { - return; - } - listener.remove(); - _notifHandlers.delete(type); - } - - }, { - key: "requestPermissions", - value: - function requestPermissions(permissions) { - var requestedPermissions = { - alert: true, - badge: true, - sound: true - }; - if (permissions) { - requestedPermissions = { - alert: !!permissions.alert, - badge: !!permissions.badge, - sound: !!permissions.sound - }; - } - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - return _NativePushNotificationManagerIOS.default.requestPermissions(requestedPermissions); - } - - }, { - key: "abandonPermissions", - value: - function abandonPermissions() { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.abandonPermissions(); - } - - }, { - key: "checkPermissions", - value: - function checkPermissions(callback) { - (0, _invariant.default)(typeof callback === 'function', 'Must provide a valid callback'); - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.checkPermissions(callback); - } - - }, { - key: "getInitialNotification", - value: - function getInitialNotification() { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - return _NativePushNotificationManagerIOS.default.getInitialNotification().then(function (notification) { - return notification && new PushNotificationIOS(notification); - }); - } - - }, { - key: "getAuthorizationStatus", - value: - function getAuthorizationStatus(callback) { - (0, _invariant.default)(_NativePushNotificationManagerIOS.default, 'PushNotificationManager is not available.'); - _NativePushNotificationManagerIOS.default.getAuthorizationStatus(callback); - } - - }]); - return PushNotificationIOS; - }(); - PushNotificationIOS.FetchResult = { - NewData: 'UIBackgroundFetchResultNewData', - NoData: 'UIBackgroundFetchResultNoData', - ResultFailed: 'UIBackgroundFetchResultFailed' - }; - module.exports = PushNotificationIOS; -},455,[3,12,13,134,456,17,14],"node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('PushNotificationManager'); - exports.default = _default; -},456,[16],"node_modules/react-native/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../EventEmitter/RCTDeviceEventEmitter")); - var _NativeSettingsManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./NativeSettingsManager")); - var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "invariant")); - - var subscriptions = []; - var Settings = { - _settings: _NativeSettingsManager.default && _NativeSettingsManager.default.getConstants().settings, - get: function get(key) { - return this._settings[key]; - }, - set: function set(settings) { - this._settings = Object.assign(this._settings, settings); - _NativeSettingsManager.default.setValues(settings); - }, - watchKeys: function watchKeys(keys, callback) { - if (typeof keys === 'string') { - keys = [keys]; - } - (0, _invariant.default)(Array.isArray(keys), 'keys should be a string or array of strings'); - var sid = subscriptions.length; - subscriptions.push({ - keys: keys, - callback: callback - }); - return sid; - }, - clearWatch: function clearWatch(watchId) { - if (watchId < subscriptions.length) { - subscriptions[watchId] = { - keys: [], - callback: null - }; - } - }, - _sendObservations: function _sendObservations(body) { - var _this = this; - Object.keys(body).forEach(function (key) { - var newValue = body[key]; - var didChange = _this._settings[key] !== newValue; - _this._settings[key] = newValue; - if (didChange) { - subscriptions.forEach(function (sub) { - if (sub.keys.indexOf(key) !== -1 && sub.callback) { - sub.callback(); - } - }); - } - }); - } - }; - _RCTDeviceEventEmitter.default.addListener('settingsUpdated', Settings._sendObservations.bind(Settings)); - module.exports = Settings; -},457,[3,4,458,17],"node_modules/react-native/Libraries/Settings/Settings.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('SettingsManager'); - exports.default = _default; -},458,[16],"node_modules/react-native/Libraries/Settings/NativeSettingsManager.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); - var _NativeActionSheetManager = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../ActionSheetIOS/NativeActionSheetManager")); - var _NativeShareModule = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./NativeShareModule")); - var Share = function () { - function Share() { - (0, _classCallCheck2.default)(this, Share); } - (0, _createClass2.default)(Share, null, [{ - key: "share", - value: - function share(content) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof content === 'object' && content !== null, 'Content to share must be a valid object'); - _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required'); - _$$_REQUIRE(_dependencyMap[5], "invariant")(typeof options === 'object' && options !== null, 'Options must be a valid object'); - if ("ios" === 'android') { - _$$_REQUIRE(_dependencyMap[5], "invariant")(_NativeShareModule.default, 'ShareModule should be registered on Android.'); - _$$_REQUIRE(_dependencyMap[5], "invariant")(content.title == null || typeof content.title === 'string', 'Invalid title: title should be a string.'); - var newContent = { - title: content.title, - message: typeof content.message === 'string' ? content.message : undefined - }; - return _NativeShareModule.default.share(newContent, options.dialogTitle).then(function (result) { - return Object.assign({ - activityType: null - }, result); - }); - } else if ("ios" === 'ios') { - return new Promise(function (resolve, reject) { - var tintColor = _$$_REQUIRE(_dependencyMap[6], "../StyleSheet/processColor")(options.tintColor); - _$$_REQUIRE(_dependencyMap[5], "invariant")(tintColor == null || typeof tintColor === 'number', 'Unexpected color given for options.tintColor'); - _$$_REQUIRE(_dependencyMap[5], "invariant")(_NativeActionSheetManager.default, 'NativeActionSheetManager is not registered on iOS, but it should be.'); - _NativeActionSheetManager.default.showShareActionSheetWithOptions({ - message: typeof content.message === 'string' ? content.message : undefined, - url: typeof content.url === 'string' ? content.url : undefined, - subject: options.subject, - tintColor: typeof tintColor === 'number' ? tintColor : undefined, - excludedActivityTypes: options.excludedActivityTypes - }, function (error) { - return reject(error); - }, function (success, activityType) { - if (success) { - resolve({ - action: 'sharedAction', - activityType: activityType - }); - } else { - resolve({ - action: 'dismissedAction', - activityType: null - }); - } - }); - }); - } else { - return Promise.reject(new Error('Unsupported platform')); - } - } - - }]); - return Share; - }(); - Share.sharedAction = 'sharedAction'; - Share.dismissedAction = 'dismissedAction'; - module.exports = Share; -},459,[3,12,13,410,460,17,159],"node_modules/react-native/Libraries/Share/Share.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.get('ShareModule'); - exports.default = _default; -},460,[16],"node_modules/react-native/Libraries/Share/NativeShareModule.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - var ToastAndroid = { - show: function show(message, duration) { - console.warn('ToastAndroid is not supported on this platform.'); - }, - showWithGravity: function showWithGravity(message, duration, gravity) { - console.warn('ToastAndroid is not supported on this platform.'); - }, - showWithGravityAndOffset: function showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset) { - console.warn('ToastAndroid is not supported on this platform.'); + } + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + for (i = 0; i < minLength; i++) updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + for (; i < prevProp.length; i++) updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + for (; i < nextProp.length; i++) updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + return updatePayload; } - }; - module.exports = ToastAndroid; -},461,[],"node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useColorScheme; - var _Appearance = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./Appearance")); - function useColorScheme() { - return (0, _$$_REQUIRE(_dependencyMap[2], "use-sync-external-store/shim").useSyncExternalStore)(function (callback) { - var appearanceSubscription = _Appearance.default.addChangeListener(callback); - return function () { - return appearanceSubscription.remove(); - }; - }, function () { - return _Appearance.default.getColorScheme(); - }); + return isArrayImpl(prevProp) ? diffProperties(updatePayload, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").flattenStyle(nextProp), validAttributes); } -},462,[3,164,463],"node_modules/react-native/Libraries/Utilities/useColorScheme.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - if (process.env.NODE_ENV === 'production') { - module.exports = _$$_REQUIRE(_dependencyMap[0], "../cjs/use-sync-external-store-shim.native.production.min.js"); - } else { - module.exports = _$$_REQUIRE(_dependencyMap[1], "../cjs/use-sync-external-store-shim.native.development.js"); + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!isArrayImpl(nextProp)) return diffProperties(updatePayload, emptyObject, nextProp, validAttributes); + for (var i = 0; i < nextProp.length; i++) updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + return updatePayload; } -},463,[464,465],"node_modules/use-sync-external-store/shim/index.native.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** - * @license React - * use-sync-external-store-shim.native.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; - - var e = _$$_REQUIRE(_dependencyMap[0], "react"); - function h(a, b) { - return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!isArrayImpl(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject, validAttributes); + for (var i = 0; i < prevProp.length; i++) updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + return updatePayload; } - var k = "function" === typeof Object.is ? Object.is : h, - l = e.useState, - m = e.useEffect, - n = e.useLayoutEffect, - p = e.useDebugValue; - function q(a, b) { - var d = b(), - f = l({ - inst: { - value: d, - getSnapshot: b - } - }), - c = f[0].inst, - g = f[1]; - n(function () { - c.value = d; - c.getSnapshot = b; - r(c) && g({ - inst: c - }); - }, [a, d, b]); - m(function () { - r(c) && g({ - inst: c - }); - return a(function () { - r(c) && g({ - inst: c - }); - }); - }, [a]); - p(d); - return d; + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + for (propKey in nextProps) if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) defaultDiffer(prevProp, nextProp) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + for (var propKey$2 in prevProps) void 0 === nextProps[propKey$2] && (!(attributeConfig = validAttributes[propKey$2]) || updatePayload && void 0 !== updatePayload[propKey$2] || (prevProp = prevProps[propKey$2], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[propKey$2] = null, removedKeys || (removedKeys = {}), removedKeys[propKey$2] || (removedKeys[propKey$2] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + return updatePayload; } - function r(a) { - var b = a.getSnapshot; - a = a.value; + function batchedUpdatesImpl(fn, bookkeeping) { + return fn(bookkeeping); + } + var isInsideEventHandler = !1; + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) return fn(bookkeeping); + isInsideEventHandler = !0; try { - var d = b(); - return !k(a, d); - } catch (f) { - return !0; + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = !1; } } - exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : q; -},464,[36],"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - /** - * @license React - * use-sync-external-store-shim.native.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - 'use strict'; - - if (process.env.NODE_ENV !== "production") { - (function () { - 'use strict'; - - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - } - var React = _$$_REQUIRE(_dependencyMap[0], "react"); - var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function error(format) { - { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - printWarning('error', format, args); - } - } - } - function printWarning(level, format, args) { - { - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - if (stack !== '') { - format += '%s'; - args = args.concat([stack]); - } - - var argsWithFormat = args.map(function (item) { - return String(item); - }); - - argsWithFormat.unshift('Warning: ' + format); - - Function.prototype.apply.call(console[level], console, argsWithFormat); - } - } - - function is(x, y) { - return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; - } - - var objectIs = typeof Object.is === 'function' ? Object.is : is; - - var useState = React.useState, - useEffect = React.useEffect, - useLayoutEffect = React.useLayoutEffect, - useDebugValue = React.useDebugValue; - var didWarnOld18Alpha = false; - var didWarnUncachedGetSnapshot = false; - - function useSyncExternalStore(subscribe, getSnapshot, - getServerSnapshot) { - { - if (!didWarnOld18Alpha) { - if (React.startTransition !== undefined) { - didWarnOld18Alpha = true; - error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.'); - } - } - } - - var value = getSnapshot(); - { - if (!didWarnUncachedGetSnapshot) { - var cachedValue = getSnapshot(); - if (!objectIs(value, cachedValue)) { - error('The result of getSnapshot should be cached to avoid an infinite loop'); - didWarnUncachedGetSnapshot = true; - } - } - } - - var _useState = useState({ - inst: { - value: value, - getSnapshot: getSnapshot - } - }), - inst = _useState[0].inst, - forceUpdate = _useState[1]; - - useLayoutEffect(function () { - inst.value = value; - inst.getSnapshot = getSnapshot; - - if (checkIfSnapshotChanged(inst)) { - forceUpdate({ - inst: inst - }); - } - }, [subscribe, value, getSnapshot]); - useEffect(function () { - if (checkIfSnapshotChanged(inst)) { - forceUpdate({ - inst: inst - }); - } - var handleStoreChange = function handleStoreChange() { - if (checkIfSnapshotChanged(inst)) { - forceUpdate({ - inst: inst - }); - } - }; - - return subscribe(handleStoreChange); - }, [subscribe]); - useDebugValue(value); - return value; - } - function checkIfSnapshotChanged(inst) { - var latestGetSnapshot = inst.getSnapshot; - var prevValue = inst.value; - try { - var nextValue = latestGetSnapshot(); - return !objectIs(prevValue, nextValue); - } catch (error) { - return true; - } + var eventQueue = null; + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (isArrayImpl(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);else dispatchListeners && executeDispatch(e, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + function dispatchEvent(target, topLevelType, nativeEvent) { + var eventTarget = null; + if (null != target) { + var stateNode = target.stateNode; + null != stateNode && (eventTarget = stateNode.canonical); + } + batchedUpdates(function () { + var event = { + eventName: topLevelType, + nativeEvent: nativeEvent + }; + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit(topLevelType, event); + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").RawEventEmitter.emit("*", event); + event = eventTarget; + for (var events = null, legacyPlugins = plugins, i = 0; i < legacyPlugins.length; i++) { + var possiblePlugin = legacyPlugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, target, nativeEvent, event)) && (events = accumulateInto(events, possiblePlugin)); } - var shim = useSyncExternalStore; - var useSyncExternalStore$1 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim; - exports.useSyncExternalStore = useSyncExternalStore$1; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function') { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + event = events; + null !== event && (eventQueue = accumulateInto(eventQueue, event)); + event = eventQueue; + eventQueue = null; + if (event) { + forEachAccumulated(event, executeDispatchesAndReleaseTopLevel); + if (eventQueue) throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); + if (hasRethrowError) throw event = rethrowError, hasRethrowError = !1, rethrowError = null, event; } - })(); + }); } -},465,[36],"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useWindowDimensions; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/slicedToArray")); - var _Dimensions = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./Dimensions")); - var _react = _$$_REQUIRE(_dependencyMap[3], "react"); - - function useWindowDimensions() { - var _useState = (0, _react.useState)(function () { - return _Dimensions.default.get('window'); - }), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - dimensions = _useState2[0], - setDimensions = _useState2[1]; - (0, _react.useEffect)(function () { - function handleChange(_ref) { - var window = _ref.window; - if (dimensions.width !== window.width || dimensions.height !== window.height || dimensions.scale !== window.scale || dimensions.fontScale !== window.fontScale) { - setDimensions(window); - } - } - var subscription = _Dimensions.default.addEventListener('change', handleChange); - handleChange({ - window: _Dimensions.default.get('window') - }); - return function () { - subscription.remove(); - }; - }, [dimensions]); - return dimensions; + var rendererID = null, + injectedHook = null; + function onCommitRoot(root) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { + injectedHook.onCommitFiberRoot(rendererID, root, void 0, 128 === (root.current.flags & 128)); + } catch (err) {} } -},466,[3,19,229,36],"node_modules/react-native/Libraries/Utilities/useWindowDimensions.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var _NativeVibration = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "./NativeVibration")); - - var _vibrating = false; - var _id = 0; - var _default_vibration_length = 400; - function vibrateByPattern(pattern) { - var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (_vibrating) { - return; - } - _vibrating = true; - if (pattern[0] === 0) { - _NativeVibration.default.vibrate(_default_vibration_length); - pattern = pattern.slice(1); + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, + log = Math.log, + LN2 = Math.LN2; + function clz32Fallback(x) { + x >>>= 0; + return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; + } + var nextTransitionLane = 64, + nextRetryLane = 4194304; + function getHighestPriorityLanes(lanes) { + switch (lanes & -lanes) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return lanes & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return lanes; } - if (pattern.length === 0) { - _vibrating = false; - return; + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + nonIdlePendingLanes = pendingLanes & 268435455; + if (0 !== nonIdlePendingLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + 0 !== nonIdleUnblockedLanes ? nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes))); + } else nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes)); + if (0 === nextLanes) return 0; + if (0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, pingedLanes = wipLanes & -wipLanes, suspendedLanes >= pingedLanes || 16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) return wipLanes; + 0 !== (nextLanes & 4) && (nextLanes |= pendingLanes & 16); + wipLanes = root.entangledLanes; + if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes;) pendingLanes = 31 - clz32(wipLanes), suspendedLanes = 1 << pendingLanes, nextLanes |= root[pendingLanes], wipLanes &= ~suspendedLanes; + return nextLanes; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + return currentTime + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; } - setTimeout(function () { - return vibrateScheduler(++_id, pattern, repeat, 1); - }, pattern[0]); } - function vibrateScheduler(id, pattern, repeat, nextIndex) { - if (!_vibrating || id !== _id) { - return; + function getLanesToRetrySynchronouslyOnError(root) { + root = root.pendingLanes & -1073741825; + return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + 536870912 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0); + root = root.eventTimes; + updateLane = 31 - clz32(updateLane); + root[updateLane] = eventTime; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + remainingLanes = root.entanglements; + var eventTimes = root.eventTimes; + for (root = root.expirationTimes; 0 < noLongerPendingLanes;) { + var index$7 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$7; + remainingLanes[index$7] = 0; + eventTimes[index$7] = -1; + root[index$7] = -1; + noLongerPendingLanes &= ~lane; } - _NativeVibration.default.vibrate(_default_vibration_length); - if (nextIndex >= pattern.length) { - if (repeat) { - nextIndex = 0; - } else { - _vibrating = false; - return; - } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + for (root = root.entanglements; rootEntangledLanes;) { + var index$8 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$8; + lane & entangledLanes | root[index$8] & entangledLanes && (root[index$8] |= entangledLanes); + rootEntangledLanes &= ~lane; } - setTimeout(function () { - return vibrateScheduler(id, pattern, repeat, nextIndex + 1); - }, pattern[nextIndex]); } - var Vibration = { - vibrate: function vibrate() { - var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _default_vibration_length; - var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if ("ios" === 'android') { - if (typeof pattern === 'number') { - _NativeVibration.default.vibrate(pattern); - } else if (Array.isArray(pattern)) { - _NativeVibration.default.vibrateByPattern(pattern, repeat ? 0 : -1); - } else { - throw new Error('Vibration pattern should be a number or array'); - } - } else { - if (_vibrating) { - return; - } - if (typeof pattern === 'number') { - _NativeVibration.default.vibrate(pattern); - } else if (Array.isArray(pattern)) { - vibrateByPattern(pattern, repeat); - } else { - throw new Error('Vibration pattern should be a number or array'); - } - } - }, - cancel: function cancel() { - if ("ios" === 'ios') { - _vibrating = false; - } else { - _NativeVibration.default.cancel(); - } + var currentUpdatePriority = 0; + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 1 < lanes ? 4 < lanes ? 0 !== (lanes & 268435455) ? 16 : 536870912 : 4 : 1; + } + function shim$1() { + throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); + } + var _nativeFabricUIManage = nativeFabricUIManager, + createNode = _nativeFabricUIManage.createNode, + cloneNode = _nativeFabricUIManage.cloneNode, + cloneNodeWithNewChildren = _nativeFabricUIManage.cloneNodeWithNewChildren, + cloneNodeWithNewChildrenAndProps = _nativeFabricUIManage.cloneNodeWithNewChildrenAndProps, + cloneNodeWithNewProps = _nativeFabricUIManage.cloneNodeWithNewProps, + createChildNodeSet = _nativeFabricUIManage.createChildSet, + appendChildNode = _nativeFabricUIManage.appendChild, + appendChildNodeToSet = _nativeFabricUIManage.appendChildToSet, + completeRoot = _nativeFabricUIManage.completeRoot, + registerEventHandler = _nativeFabricUIManage.registerEventHandler, + fabricMeasure = _nativeFabricUIManage.measure, + fabricMeasureInWindow = _nativeFabricUIManage.measureInWindow, + fabricMeasureLayout = _nativeFabricUIManage.measureLayout, + FabricDiscretePriority = _nativeFabricUIManage.unstable_DiscreteEventPriority, + fabricGetCurrentEventPriority = _nativeFabricUIManage.unstable_getCurrentEventPriority, + _setNativeProps = _nativeFabricUIManage.setNativeProps, + getViewConfigForType = _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactNativeViewConfigRegistry.get, + nextReactTag = 2; + registerEventHandler && registerEventHandler(dispatchEvent); + var ReactFabricHostComponent = function () { + function ReactFabricHostComponent(tag, viewConfig, props, internalInstanceHandle) { + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + this._internalInstanceHandle = internalInstanceHandle; } - }; - module.exports = Vibration; -},467,[3,468],"node_modules/react-native/Libraries/Vibration/Vibration.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var TurboModuleRegistry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "../TurboModule/TurboModuleRegistry")); - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var _default = TurboModuleRegistry.getEnforcing('Vibration'); - exports.default = _default; -},468,[16],"node_modules/react-native/Libraries/Vibration/NativeVibration.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - - 'use strict'; - - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/getPrototypeOf")(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/possibleConstructorReturn")(this, result); }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var React = _$$_REQUIRE(_dependencyMap[2], "react"); - var YellowBox; - if (__DEV__) { - YellowBox = function (_React$Component) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(YellowBox, _React$Component); - var _super = _createSuper(YellowBox); - function YellowBox() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, YellowBox); - return _super.apply(this, arguments); - } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(YellowBox, [{ - key: "render", - value: function render() { - return null; - } - }], [{ - key: "ignoreWarnings", - value: function ignoreWarnings(patterns) { - console.warn('YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.'); - _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").ignoreLogs(patterns); - } - }, { - key: "install", - value: function install() { - console.warn('YellowBox has been replaced with LogBox. Please call LogBox.install() instead.'); - _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").install(); - } - }, { - key: "uninstall", - value: function uninstall() { - console.warn('YellowBox has been replaced with LogBox. Please call LogBox.uninstall() instead.'); - _$$_REQUIRE(_dependencyMap[6], "../LogBox/LogBox").uninstall(); - } - }]); - return YellowBox; - }(React.Component); - } else { - YellowBox = function (_React$Component2) { - _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")(YellowBox, _React$Component2); - var _super2 = _createSuper(YellowBox); - function YellowBox() { - _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/classCallCheck")(this, YellowBox); - return _super2.apply(this, arguments); + var _proto = ReactFabricHostComponent.prototype; + _proto.blur = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.blurTextInput(this); + }; + _proto.focus = function () { + _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").TextInputState.focusTextInput(this); + }; + _proto.measure = function (callback) { + var stateNode = this._internalInstanceHandle.stateNode; + null != stateNode && fabricMeasure(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureInWindow = function (callback) { + var stateNode = this._internalInstanceHandle.stateNode; + null != stateNode && fabricMeasureInWindow(stateNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, callback)); + }; + _proto.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + if ("number" !== typeof relativeToNativeNode && relativeToNativeNode instanceof ReactFabricHostComponent) { + var toStateNode = this._internalInstanceHandle.stateNode; + relativeToNativeNode = relativeToNativeNode._internalInstanceHandle.stateNode; + null != toStateNode && null != relativeToNativeNode && fabricMeasureLayout(toStateNode.node, relativeToNativeNode.node, mountSafeCallback_NOT_REALLY_SAFE(this, onFail), mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)); } - _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/createClass")(YellowBox, [{ - key: "render", - value: function render() { - return null; - } - }], [{ - key: "ignoreWarnings", - value: function ignoreWarnings(patterns) { - } - }, { - key: "install", - value: function install() { - } - }, { - key: "uninstall", - value: function uninstall() { + }; + _proto.setNativeProps = function (nativeProps) { + nativeProps = diffProperties(null, emptyObject, nativeProps, this.viewConfig.validAttributes); + var stateNode = this._internalInstanceHandle.stateNode; + null != stateNode && null != nativeProps && _setNativeProps(stateNode.node, nativeProps); + }; + _proto.addEventListener_unstable = function (eventType, listener, options) { + if ("string" !== typeof eventType) throw Error("addEventListener_unstable eventType must be a string"); + if ("function" !== typeof listener) throw Error("addEventListener_unstable listener must be a function"); + var optionsObj = "object" === typeof options && null !== options ? options : {}; + options = ("boolean" === typeof options ? options : optionsObj.capture) || !1; + var once = optionsObj.once || !1; + optionsObj = optionsObj.passive || !1; + var eventListeners = this._eventListeners || {}; + null == this._eventListeners && (this._eventListeners = eventListeners); + var namedEventListeners = eventListeners[eventType] || []; + null == eventListeners[eventType] && (eventListeners[eventType] = namedEventListeners); + namedEventListeners.push({ + listener: listener, + invalidated: !1, + options: { + capture: options, + once: once, + passive: optionsObj, + signal: null } - }]); - return YellowBox; - }(React.Component); - } - - module.exports = YellowBox; -},469,[46,47,36,50,12,13,59],"node_modules/react-native/Libraries/YellowBox/YellowBoxDeprecated.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.DynamicColorIOS = void 0; - - var DynamicColorIOS = function DynamicColorIOS(tuple) { - return (0, _$$_REQUIRE(_dependencyMap[0], "./PlatformColorValueTypes").DynamicColorIOSPrivate)({ - light: tuple.light, - dark: tuple.dark, - highContrastLight: tuple.highContrastLight, - highContrastDark: tuple.highContrastDark - }); - }; - exports.DynamicColorIOS = DynamicColorIOS; -},470,[162],"node_modules/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _react = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "react")); - var _SettingsScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "./screens/SettingsScreen")); - var _CheckoutScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "./screens/CheckoutScreen")); - var _ResultScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "./screens/ResultScreen")); - var _NewLineItemSreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "./screens/NewLineItemSreen")); - var _RawCardDataScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "./screens/RawCardDataScreen")); - var _RawPhoneNumberScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "./screens/RawPhoneNumberScreen")); - var _RawAdyenBancontactCardScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "./screens/RawAdyenBancontactCardScreen")); - var _RawRetailOutletScreen = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./screens/RawRetailOutletScreen")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/App.tsx"; - var Stack = (0, _$$_REQUIRE(_dependencyMap[10], "@react-navigation/native-stack").createNativeStackNavigator)(); - var App = function App() { - return (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(_$$_REQUIRE(_dependencyMap[12], "@react-navigation/native").NavigationContainer, { - children: (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsxs)(Stack.Navigator, { - children: [(0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "Settings", - component: _SettingsScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "NewLineItem", - component: _NewLineItemSreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "Checkout", - component: _CheckoutScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "HUC", - component: _$$_REQUIRE(_dependencyMap[13], "./screens/HeadlessCheckoutScreen").HeadlessCheckoutScreen - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "Result", - component: _ResultScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "RawCardData", - component: _RawCardDataScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "RawPhoneNumberData", - component: _RawPhoneNumberScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "RawAdyenBancontactCard", - component: _RawAdyenBancontactCardScreen.default - }), (0, _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime").jsx)(Stack.Screen, { - name: "RawRetailOutlet", - component: _RawRetailOutletScreen.default - })] - }) + }); + }; + _proto.removeEventListener_unstable = function (eventType, listener, options) { + var optionsObj = "object" === typeof options && null !== options ? options : {}, + capture = ("boolean" === typeof options ? options : optionsObj.capture) || !1; + (options = this._eventListeners) && (optionsObj = options[eventType]) && (options[eventType] = optionsObj.filter(function (listenerObj) { + return !(listenerObj.listener === listener && listenerObj.options.capture === capture); + })); + }; + return ReactFabricHostComponent; + }(); + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + hostContext = nextReactTag; + nextReactTag += 2; + return { + node: createNode(hostContext, "RCTRawText", rootContainerInstance, { + text: text + }, internalInstanceHandle) + }; + } + var scheduleTimeout = setTimeout, + cancelTimeout = clearTimeout; + function cloneHiddenInstance(instance) { + var node = instance.node; + var JSCompiler_inline_result = diffProperties(null, emptyObject, { + style: { + display: "none" + } + }, instance.canonical.viewConfig.validAttributes); + return { + node: cloneNodeWithNewProps(node, JSCompiler_inline_result), + canonical: instance.canonical + }; + } + function describeComponentFrame(name, source, ownerName) { + source = ""; + ownerName && (source = " (created by " + ownerName + ")"); + return "\n in " + (name || "Unknown") + source; + } + function describeFunctionComponentFrame(fn, source) { + return fn ? describeComponentFrame(fn.displayName || fn.name || null, source, null) : ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty, + valueStack = [], + index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + var emptyContextObject = {}, + contextStackCursor = createCursor(emptyContextObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyContextObject; + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyContextObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + for (key in contextTypes) context[key] = unmaskedContext[key]; + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + function isContextProvider(type) { + type = type.childContextTypes; + return null !== type && void 0 !== type; + } + function popContext() { + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + } + function pushTopLevelContextObject(fiber, context, didChange) { + if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context); + push(didPerformWorkStackCursor, didChange); + } + function processChildContext(fiber, type, parentContext) { + var instance = fiber.stateNode; + type = type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + for (var contextKey in instance) if (!(contextKey in type)) throw Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + workInProgress = (workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext || emptyContextObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + didChange ? (workInProgress = processChildContext(workInProgress, type, previousContext), instance.__reactInternalMemoizedMergedChildContext = workInProgress, pop(didPerformWorkStackCursor), pop(contextStackCursor), push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); + push(didPerformWorkStackCursor, didChange); + } + function is(x, y) { + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; + } + var objectIs = "function" === typeof Object.is ? Object.is : is, + syncQueue = null, + includesLegacySyncCallbacks = !1, + isFlushingSyncQueue = !1; + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && null !== syncQueue) { + isFlushingSyncQueue = !0; + var i = 0, + previousUpdatePriority = currentUpdatePriority; + try { + var queue = syncQueue; + for (currentUpdatePriority = 1; i < queue.length; i++) { + var callback = queue[i]; + do callback = callback(!0); while (null !== callback); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + } catch (error) { + throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), error; + } finally { + currentUpdatePriority = previousUpdatePriority, isFlushingSyncQueue = !1; + } + } + return null; + } + var forkStack = [], + forkStackIndex = 0, + treeForkProvider = null, + idStack = [], + idStackIndex = 0, + treeContextProvider = null; + function popTreeContext(workInProgress) { + for (; workInProgress === treeForkProvider;) treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, --forkStackIndex, forkStack[forkStackIndex] = null; + for (; workInProgress === treeContextProvider;) treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null, --idStackIndex, idStack[idStackIndex] = null; + } + var hydrationErrors = null, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + for (keysB = 0; keysB < keysA.length; keysB++) { + var currentKey = keysA[keysB]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; + } + return !0; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 5: + return describeComponentFrame(fiber.type, null, null); + case 16: + return describeComponentFrame("Lazy", null, null); + case 13: + return describeComponentFrame("Suspense", null, null); + case 19: + return describeComponentFrame("SuspenseList", null, null); + case 0: + case 2: + case 15: + return describeFunctionComponentFrame(fiber.type, null); + case 11: + return describeFunctionComponentFrame(fiber.type.render, null); + case 1: + return fiber = describeFunctionComponentFrame(fiber.type, null), fiber; + default: + return ""; + } + } + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + baseProps = assign({}, baseProps); + Component = Component.defaultProps; + for (var propName in Component) void 0 === baseProps[propName] && (baseProps[propName] = Component[propName]); + return baseProps; + } + return baseProps; + } + var valueCursor = createCursor(null), + currentlyRenderingFiber = null, + lastContextDependency = null, + lastFullyObservedContext = null; + function resetContextDependencies() { + lastFullyObservedContext = lastContextDependency = currentlyRenderingFiber = null; + } + function popProvider(context) { + var currentValue = valueCursor.current; + pop(valueCursor); + context._currentValue2 = currentValue; + } + function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { + for (; null !== parent;) { + var alternate = parent.alternate; + (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); + if (parent === propagationRoot) break; + parent = parent.return; + } + } + function prepareToReadContext(workInProgress, renderLanes) { + currentlyRenderingFiber = workInProgress; + lastFullyObservedContext = lastContextDependency = null; + workInProgress = workInProgress.dependencies; + null !== workInProgress && null !== workInProgress.firstContext && (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), workInProgress.firstContext = null); + } + function readContext(context) { + var value = context._currentValue2; + if (lastFullyObservedContext !== context) if (context = { + context: context, + memoizedValue: value, + next: null + }, null === lastContextDependency) { + if (null === currentlyRenderingFiber) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + lastContextDependency = context; + currentlyRenderingFiber.dependencies = { + lanes: 0, + firstContext: context + }; + } else lastContextDependency = lastContextDependency.next = context; + return value; + } + var concurrentQueues = null; + function pushConcurrentUpdateQueue(queue) { + null === concurrentQueues ? concurrentQueues = [queue] : concurrentQueues.push(queue); + } + function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + null === interleaved ? (update.next = update, pushConcurrentUpdateQueue(queue)) : (update.next = interleaved.next, interleaved.next = update); + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes |= lane; + var alternate = sourceFiber.alternate; + null !== alternate && (alternate.lanes |= lane); + alternate = sourceFiber; + for (sourceFiber = sourceFiber.return; null !== sourceFiber;) sourceFiber.childLanes |= lane, alternate = sourceFiber.alternate, null !== alternate && (alternate.childLanes |= lane), alternate = sourceFiber, sourceFiber = sourceFiber.return; + return 3 === alternate.tag ? alternate.stateNode : null; + } + var hasForceUpdate = !1; + function initializeUpdateQueue(fiber) { + fiber.updateQueue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; + } + function cloneUpdateQueue(current, workInProgress) { + current = current.updateQueue; + workInProgress.updateQueue === current && (workInProgress.updateQueue = { + baseState: current.baseState, + firstBaseUpdate: current.firstBaseUpdate, + lastBaseUpdate: current.lastBaseUpdate, + shared: current.shared, + effects: current.effects }); - }; - var _default = App; - exports.default = _default; -},471,[3,36,472,499,578,579,580,581,582,583,584,73,590,731],"src/App.tsx"); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.customClientToken = exports.customApiKey = void 0; - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray")); - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray")); - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3], "react")); - var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); - var _segmentedControl = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@react-native-segmented-control/segmented-control")); - var _TextField = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../components/TextField")); - var _this = this, - _jsxFileName = "/Users/evangelos/VSCode/primer-sdk-react-native/ReactNativeExample/src/screens/SettingsScreen.tsx"; - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - var customApiKey; - exports.customApiKey = customApiKey; - var customClientToken; - - exports.customClientToken = customClientToken; - var SettingsScreen = function SettingsScreen(_ref) { - var _appPaymentParameters, _appPaymentParameters2, _appPaymentParameters3, _appPaymentParameters4, _appPaymentParameters5, _appPaymentParameters6, _appPaymentParameters7, _appPaymentParameters8, _appPaymentParameters9, _appPaymentParameters10, _appPaymentParameters11, _appPaymentParameters12, _appPaymentParameters13, _appPaymentParameters14, _appPaymentParameters15, _appPaymentParameters16, _appPaymentParameters17, _appPaymentParameters18, _appPaymentParameters19, _appPaymentParameters20, _appPaymentParameters21, _appPaymentParameters22, _appPaymentParameters23, _appPaymentParameters24, _appPaymentParameters25, _appPaymentParameters26, _appPaymentParameters27, _appPaymentParameters28, _appPaymentParameters29, _appPaymentParameters30, _appPaymentParameters31, _appPaymentParameters32, _appPaymentParameters33, _appPaymentParameters34, _appPaymentParameters35, _appPaymentParameters36, _appPaymentParameters37, _appPaymentParameters38, _appPaymentParameters39, _appPaymentParameters40, _appPaymentParameters41, _appPaymentParameters42; - var navigation = _ref.navigation; - var isDarkMode = (0, _reactNative.useColorScheme)() === 'dark'; - var _React$useState = React.useState(_$$_REQUIRE(_dependencyMap[7], "../network/Environment").Environment.Sandbox), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - environment = _React$useState2[0], - setEnvironment = _React$useState2[1]; - var _React$useState3 = React.useState(customApiKey), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), - apiKey = _React$useState4[0], - setApiKey = _React$useState4[1]; - var _React$useState5 = React.useState(undefined), - _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), - clientToken = _React$useState6[0], - setClientToken = _React$useState6[1]; - var _React$useState7 = React.useState(_$$_REQUIRE(_dependencyMap[7], "../network/Environment").PaymentHandling.Auto), - _React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2), - paymentHandling = _React$useState8[0], - setPaymentHandling = _React$useState8[1]; - var _React$useState9 = React.useState(((_appPaymentParameters = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.order) == null ? void 0 : _appPaymentParameters.lineItems) || []), - _React$useState10 = (0, _slicedToArray2.default)(_React$useState9, 2), - lineItems = _React$useState10[0], - setLineItems = _React$useState10[1]; - var _React$useState11 = React.useState("EUR"), - _React$useState12 = (0, _slicedToArray2.default)(_React$useState11, 2), - currency = _React$useState12[0], - setCurrency = _React$useState12[1]; - var _React$useState13 = React.useState("PT"), - _React$useState14 = (0, _slicedToArray2.default)(_React$useState13, 2), - countryCode = _React$useState14[0], - setCountryCode = _React$useState14[1]; - var _React$useState15 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.orderId), - _React$useState16 = (0, _slicedToArray2.default)(_React$useState15, 2), - orderId = _React$useState16[0], - setOrderId = _React$useState16[1]; - var _React$useState17 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.merchantName), - _React$useState18 = (0, _slicedToArray2.default)(_React$useState17, 2), - merchantName = _React$useState18[0], - setMerchantName = _React$useState18[1]; - var _React$useState19 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer !== undefined), - _React$useState20 = (0, _slicedToArray2.default)(_React$useState19, 2), - isCustomerApplied = _React$useState20[0], - setIsCustomerApplied = _React$useState20[1]; - var _React$useState21 = React.useState(_$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customerId), - _React$useState22 = (0, _slicedToArray2.default)(_React$useState21, 2), - customerId = _React$useState22[0], - setCustomerId = _React$useState22[1]; - var _React$useState23 = React.useState((_appPaymentParameters2 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters2.firstName), - _React$useState24 = (0, _slicedToArray2.default)(_React$useState23, 2), - firstName = _React$useState24[0], - setFirstName = _React$useState24[1]; - var _React$useState25 = React.useState((_appPaymentParameters3 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters3.lastName), - _React$useState26 = (0, _slicedToArray2.default)(_React$useState25, 2), - lastName = _React$useState26[0], - setLastName = _React$useState26[1]; - var _React$useState27 = React.useState((_appPaymentParameters4 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters4.emailAddress), - _React$useState28 = (0, _slicedToArray2.default)(_React$useState27, 2), - email = _React$useState28[0], - setEmail = _React$useState28[1]; - var _React$useState29 = React.useState((_appPaymentParameters5 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters5.mobileNumber), - _React$useState30 = (0, _slicedToArray2.default)(_React$useState29, 2), - phoneNumber = _React$useState30[0], - setPhoneNumber = _React$useState30[1]; - var _React$useState31 = React.useState((_appPaymentParameters6 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters6.nationalDocumentId), - _React$useState32 = (0, _slicedToArray2.default)(_React$useState31, 2), - nationalDocumentId = _React$useState32[0], - setNationalDocumentId = _React$useState32[1]; - var _React$useState33 = React.useState(((_appPaymentParameters7 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : _appPaymentParameters7.billingAddress) !== undefined), - _React$useState34 = (0, _slicedToArray2.default)(_React$useState33, 2), - isAddressApplied = _React$useState34[0], - setIsAddressApplied = _React$useState34[1]; - var _React$useState35 = React.useState((_appPaymentParameters8 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters9 = _appPaymentParameters8.billingAddress) == null ? void 0 : _appPaymentParameters9.addressLine1), - _React$useState36 = (0, _slicedToArray2.default)(_React$useState35, 2), - addressLine1 = _React$useState36[0], - setAddressLine1 = _React$useState36[1]; - var _React$useState37 = React.useState((_appPaymentParameters10 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters11 = _appPaymentParameters10.billingAddress) == null ? void 0 : _appPaymentParameters11.addressLine2), - _React$useState38 = (0, _slicedToArray2.default)(_React$useState37, 2), - addressLine2 = _React$useState38[0], - setAddressLine2 = _React$useState38[1]; - var _React$useState39 = React.useState((_appPaymentParameters12 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters13 = _appPaymentParameters12.billingAddress) == null ? void 0 : _appPaymentParameters13.postalCode), - _React$useState40 = (0, _slicedToArray2.default)(_React$useState39, 2), - postalCode = _React$useState40[0], - setPostalCode = _React$useState40[1]; - var _React$useState41 = React.useState((_appPaymentParameters14 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters15 = _appPaymentParameters14.billingAddress) == null ? void 0 : _appPaymentParameters15.city), - _React$useState42 = (0, _slicedToArray2.default)(_React$useState41, 2), - city = _React$useState42[0], - setCity = _React$useState42[1]; - var _React$useState43 = React.useState((_appPaymentParameters16 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters17 = _appPaymentParameters16.billingAddress) == null ? void 0 : _appPaymentParameters17.state), - _React$useState44 = (0, _slicedToArray2.default)(_React$useState43, 2), - state = _React$useState44[0], - setState = _React$useState44[1]; - var _React$useState45 = React.useState((_appPaymentParameters18 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.customer) == null ? void 0 : (_appPaymentParameters19 = _appPaymentParameters18.billingAddress) == null ? void 0 : _appPaymentParameters19.countryCode), - _React$useState46 = (0, _slicedToArray2.default)(_React$useState45, 2), - customerAddressCountryCode = _React$useState46[0], - setCustomerAddressCountryCode = _React$useState46[1]; - var _React$useState47 = React.useState(true), - _React$useState48 = (0, _slicedToArray2.default)(_React$useState47, 2), - isSurchargeApplied = _React$useState48[0], - setIsSurchargeApplied = _React$useState48[1]; - var _React$useState49 = React.useState((_appPaymentParameters20 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters21 = _appPaymentParameters20.options) == null ? void 0 : (_appPaymentParameters22 = _appPaymentParameters21.APPLE_PAY) == null ? void 0 : _appPaymentParameters22.surcharge.amount), - _React$useState50 = (0, _slicedToArray2.default)(_React$useState49, 2), - applePaySurcharge = _React$useState50[0], - setApplePaySurcharge = _React$useState50[1]; - var _React$useState51 = React.useState((_appPaymentParameters23 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters24 = _appPaymentParameters23.options) == null ? void 0 : (_appPaymentParameters25 = _appPaymentParameters24.GOOGLE_PAY) == null ? void 0 : _appPaymentParameters25.surcharge.amount), - _React$useState52 = (0, _slicedToArray2.default)(_React$useState51, 2), - googlePaySurcharge = _React$useState52[0], - setGooglePaySurcharge = _React$useState52[1]; - var _React$useState53 = React.useState((_appPaymentParameters26 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters27 = _appPaymentParameters26.options) == null ? void 0 : (_appPaymentParameters28 = _appPaymentParameters27.ADYEN_GIROPAY) == null ? void 0 : _appPaymentParameters28.surcharge.amount), - _React$useState54 = (0, _slicedToArray2.default)(_React$useState53, 2), - adyenGiropaySurcharge = _React$useState54[0], - setAdyenGiropaySurcharge = _React$useState54[1]; - var _React$useState55 = React.useState((_appPaymentParameters29 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters30 = _appPaymentParameters29.options) == null ? void 0 : (_appPaymentParameters31 = _appPaymentParameters30.ADYEN_IDEAL) == null ? void 0 : _appPaymentParameters31.surcharge.amount), - _React$useState56 = (0, _slicedToArray2.default)(_React$useState55, 2), - adyenIdealSurcharge = _React$useState56[0], - setAdyenIdealSurcharge = _React$useState56[1]; - var _React$useState57 = React.useState((_appPaymentParameters32 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters33 = _appPaymentParameters32.options) == null ? void 0 : (_appPaymentParameters34 = _appPaymentParameters33.ADYEN_SOFORT) == null ? void 0 : _appPaymentParameters34.surcharge.amount), - _React$useState58 = (0, _slicedToArray2.default)(_React$useState57, 2), - adyenSofortSurcharge = _React$useState58[0], - setAdyenSofortySurcharge = _React$useState58[1]; - var _React$useState59 = React.useState((_appPaymentParameters35 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters36 = _appPaymentParameters35.options) == null ? void 0 : (_appPaymentParameters37 = _appPaymentParameters36.PAYMENT_CARD) == null ? void 0 : (_appPaymentParameters38 = _appPaymentParameters37.networks.VISA) == null ? void 0 : _appPaymentParameters38.surcharge.amount), - _React$useState60 = (0, _slicedToArray2.default)(_React$useState59, 2), - visaSurcharge = _React$useState60[0], - setVisaSurcharge = _React$useState60[1]; - var _React$useState61 = React.useState((_appPaymentParameters39 = _$$_REQUIRE(_dependencyMap[8], "../models/IClientSessionRequestBody").appPaymentParameters.clientSessionRequestBody.paymentMethod) == null ? void 0 : (_appPaymentParameters40 = _appPaymentParameters39.options) == null ? void 0 : (_appPaymentParameters41 = _appPaymentParameters40.PAYMENT_CARD) == null ? void 0 : (_appPaymentParameters42 = _appPaymentParameters41.networks.MASTERCARD) == null ? void 0 : _appPaymentParameters42.surcharge.amount), - _React$useState62 = (0, _slicedToArray2.default)(_React$useState61, 2), - masterCardSurcharge = _React$useState62[0], - setMasterCardSurcharge = _React$useState62[1]; - var backgroundStyle = { - backgroundColor: isDarkMode ? _$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/NewAppScreen").Colors.black : _$$_REQUIRE(_dependencyMap[9], "react-native/Libraries/NewAppScreen").Colors.white + } + function createUpdate(eventTime, lane) { + return { + eventTime: eventTime, + lane: lane, + tag: 0, + payload: null, + callback: null, + next: null }; - var renderEnvironmentSection = function renderEnvironmentSection() { - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { - style: { - marginTop: 12, - marginBottom: 8 - }, - children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { - style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), - children: "Environment" - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_segmentedControl.default, { - style: { - marginTop: 6 - }, - values: ['Dev', 'Sandbox', 'Staging', 'Production'], - selectedIndex: environment, - onChange: function onChange(event) { - var selectedIndex = event.nativeEvent.selectedSegmentIndex; - var selectedEnvironment = (0, _$$_REQUIRE(_dependencyMap[7], "../network/Environment").makeEnvironmentFromIntVal)(selectedIndex); - setEnvironment(selectedEnvironment); - } - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { - title: "API Key", - style: { - marginVertical: 8 - }, - value: apiKey, - placeholder: 'Set API key', - onChangeText: function onChangeText(text) { - setApiKey(text); - exports.customApiKey = customApiKey = text; - } - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_TextField.default, { - title: "Client token", - style: { - marginVertical: 8 - }, - value: clientToken, - placeholder: 'Set client token', - onChangeText: function onChangeText(text) { - setClientToken(text); + } + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (null === updateQueue) return null; + updateQueue = updateQueue.shared; + if (0 !== (executionContext & 2)) { + var pending = updateQueue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + updateQueue.pending = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + pending = updateQueue.interleaved; + null === pending ? (update.next = update, pushConcurrentUpdateQueue(updateQueue)) : (update.next = pending.next, pending.next = update); + updateQueue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function entangleTransitions(root, fiber, lane) { + fiber = fiber.updateQueue; + if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194240))) { + var queueLanes = fiber.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + fiber.lanes = lane; + markRootEntangled(root, lane); + } + } + function enqueueCapturedUpdate(workInProgress, capturedUpdate) { + var queue = workInProgress.updateQueue, + current = workInProgress.alternate; + if (null !== current && (current = current.updateQueue, queue === current)) { + var newFirst = null, + newLast = null; + queue = queue.firstBaseUpdate; + if (null !== queue) { + do { + var clone = { + eventTime: queue.eventTime, + lane: queue.lane, + tag: queue.tag, + payload: queue.payload, + callback: queue.callback, + next: null + }; + null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; + queue = queue.next; + } while (null !== queue); + null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; + } else newFirst = newLast = capturedUpdate; + queue = { + baseState: current.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: current.shared, + effects: current.effects + }; + workInProgress.updateQueue = queue; + return; + } + workInProgress = queue.lastBaseUpdate; + null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; + queue.lastBaseUpdate = capturedUpdate; + } + function processUpdateQueue(workInProgress$jscomp$0, props, instance, renderLanes) { + var queue = workInProgress$jscomp$0.updateQueue; + hasForceUpdate = !1; + var firstBaseUpdate = queue.firstBaseUpdate, + lastBaseUpdate = queue.lastBaseUpdate, + pendingQueue = queue.shared.pending; + if (null !== pendingQueue) { + queue.shared.pending = null; + var lastPendingUpdate = pendingQueue, + firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; + lastBaseUpdate = lastPendingUpdate; + var current = workInProgress$jscomp$0.alternate; + null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); + } + if (null !== firstBaseUpdate) { + var newState = queue.baseState; + lastBaseUpdate = 0; + current = firstPendingUpdate = lastPendingUpdate = null; + pendingQueue = firstBaseUpdate; + do { + var updateLane = pendingQueue.lane, + updateEventTime = pendingQueue.eventTime; + if ((renderLanes & updateLane) === updateLane) { + null !== current && (current = current.next = { + eventTime: updateEventTime, + lane: 0, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }); + a: { + var workInProgress = workInProgress$jscomp$0, + update = pendingQueue; + updateLane = props; + updateEventTime = instance; + switch (update.tag) { + case 1: + workInProgress = update.payload; + if ("function" === typeof workInProgress) { + newState = workInProgress.call(updateEventTime, newState, updateLane); + break a; + } + newState = workInProgress; + break a; + case 3: + workInProgress.flags = workInProgress.flags & -65537 | 128; + case 0: + workInProgress = update.payload; + updateLane = "function" === typeof workInProgress ? workInProgress.call(updateEventTime, newState, updateLane) : workInProgress; + if (null === updateLane || void 0 === updateLane) break a; + newState = assign({}, newState, updateLane); + break a; + case 2: + hasForceUpdate = !0; + } } - })] + null !== pendingQueue.callback && 0 !== pendingQueue.lane && (workInProgress$jscomp$0.flags |= 64, updateLane = queue.effects, null === updateLane ? queue.effects = [pendingQueue] : updateLane.push(pendingQueue)); + } else updateEventTime = { + eventTime: updateEventTime, + lane: updateLane, + tag: pendingQueue.tag, + payload: pendingQueue.payload, + callback: pendingQueue.callback, + next: null + }, null === current ? (firstPendingUpdate = current = updateEventTime, lastPendingUpdate = newState) : current = current.next = updateEventTime, lastBaseUpdate |= updateLane; + pendingQueue = pendingQueue.next; + if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break;else updateLane = pendingQueue, pendingQueue = updateLane.next, updateLane.next = null, queue.lastBaseUpdate = updateLane, queue.shared.pending = null; + } while (1); + null === current && (lastPendingUpdate = newState); + queue.baseState = lastPendingUpdate; + queue.firstBaseUpdate = firstPendingUpdate; + queue.lastBaseUpdate = current; + props = queue.shared.interleaved; + if (null !== props) { + queue = props; + do lastBaseUpdate |= queue.lane, queue = queue.next; while (queue !== props); + } else null === firstBaseUpdate && (queue.shared.lanes = 0); + workInProgressRootSkippedLanes |= lastBaseUpdate; + workInProgress$jscomp$0.lanes = lastBaseUpdate; + workInProgress$jscomp$0.memoizedState = newState; + } + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + finishedWork = finishedQueue.effects; + finishedQueue.effects = null; + if (null !== finishedWork) for (finishedQueue = 0; finishedQueue < finishedWork.length; finishedQueue++) { + var effect = finishedWork[finishedQueue], + callback = effect.callback; + if (null !== callback) { + effect.callback = null; + if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); + callback.call(instance); + } + } + } + var emptyRefsObject = new React.Component().refs; + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + ctor = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); + getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); + workInProgress.memoizedState = getDerivedStateFromProps; + 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); + } + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + payload = enqueueUpdate(inst, update, lane); + null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + payload = enqueueUpdate(inst, update, lane); + null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternals; + var eventTime = requestEventTime(), + lane = requestUpdateLane(inst), + update = createUpdate(eventTime, lane); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + callback = enqueueUpdate(inst, update, lane); + null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); + } + }; + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + workInProgress = workInProgress.stateNode; + return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = !1, + unmaskedContext = emptyContextObject; + var context = ctor.contextType; + "object" === typeof context && null !== context ? context = readContext(context) : (unmaskedContext = isContextProvider(ctor) ? previousContext : contextStackCursor.current, isLegacyContextConsumer = ctor.contextTypes, context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject); + ctor = new ctor(props, context); + workInProgress.memoizedState = null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; + ctor.updater = classComponentUpdater; + workInProgress.stateNode = ctor; + ctor._reactInternals = workInProgress; + isLegacyContextConsumer && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return ctor; + } + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + "object" === typeof contextType && null !== contextType ? instance.context = readContext(contextType) : (contextType = isContextProvider(ctor) ? previousContext : contextStackCursor.current, instance.context = getMaskedContext(workInProgress, contextType)); + instance.state = workInProgress.memoizedState; + contextType = ctor.getDerivedStateFromProps; + "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), processUpdateQueue(workInProgress, newProps, instance, renderLanes), instance.state = workInProgress.memoizedState); + "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4); + } + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + if (element) { + if (1 !== element.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + var inst = element.stateNode; + } + if (!inst) throw Error("Missing owner for string ref " + returnFiber + ". This error is likely caused by a bug in React. Please file an issue."); + var resolvedInst = inst, + stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + current = function current(value) { + var refs = resolvedInst.refs; + refs === emptyRefsObject && (refs = resolvedInst.refs = {}); + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + current._stringRef = stringRef; + return current; + } + if ("string" !== typeof returnFiber) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + if (!element._owner) throw Error("Element ref was specified as a string (" + returnFiber + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + return returnFiber; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + returnFiber = Object.prototype.toString.call(newChild); + throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); + } + function resolveLazy(lazyType) { + var init = lazyType._init; + return init(lazyType._payload); + } + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var deletions = returnFiber.deletions; + null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + for (; null !== currentFirstChild;) deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + return returnFiber; + } + function useFiber(fiber, pendingProps) { + fiber = createWorkInProgress(fiber, pendingProps); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 2, lastPlacedIndex) : newIndex; + newFiber.flags |= 2; + return lastPlacedIndex; + } + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 2); + return newFiber; + } + function updateTextNode(returnFiber, current, textContent, lanes) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, textContent); + current.return = returnFiber; + return current; + } + function updateElement(returnFiber, current, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); + if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return lanes = useFiber(current, element.props), lanes.ref = coerceRef(returnFiber, current, element), lanes.return = returnFiber, lanes; + lanes = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); + lanes.ref = coerceRef(returnFiber, current, element); + lanes.return = returnFiber; + return lanes; + } + function updatePortal(returnFiber, current, portal, lanes) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current; + current = useFiber(current, portal.children || []); + current.return = returnFiber; + return current; + } + function updateFragment(returnFiber, current, fragment, lanes, key) { + if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; + current = useFiber(current, fragment); + current.return = returnFiber; + return current; + } + function createChild(returnFiber, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, null, newChild), lanes.return = returnFiber, lanes; + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; + case REACT_LAZY_TYPE: + var init = newChild._init; + return createChild(returnFiber, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; + case REACT_LAZY_TYPE: + return key = newChild._init, updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); + case REACT_LAZY_TYPE: + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(newChild._payload), lanes); + } + if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + return null; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); + return resultingFirstChild; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); }); - }; - var renderPaymentHandlingSection = function renderPaymentHandlingSection() { - return (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsxs)(_reactNative.View, { - style: { - marginTop: 12, - marginBottom: 8 - }, - children: [(0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_reactNative.Text, { - style: Object.assign({}, _$$_REQUIRE(_dependencyMap[11], "../styles").styles.heading1), - children: "Payment Handling" - }), (0, _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime").jsx)(_segmentedControl.default, { - style: { - marginTop: 6 - }, - values: ['Auto', 'Manual'], - selectedIndex: paymentHandling, - onChange: function onChange(event) { - var selectedIndex = event.nativeEvent.selectedSegmentIndex; - var selectedPaymentHandling = (0, _$$_REQUIRE(_dependencyMap[7], "../network/Environment").makePaymentHandlingFromIntVal)(selectedIndex); - setPaymentHandling(selectedPaymentHandling); - } - })] + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if ("function" !== typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + if (null == newChildrenIterable) throw Error("An iterable object provided no iterator."); + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + return iteratorFn; + } + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); }); + return iteratorFn; + } + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) { + "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + for (var key = newChild.key, child = currentFirstChild; null !== child;) { + if (child.key === key) { + key = newChild.type; + if (key === REACT_FRAGMENT_TYPE) { + if (7 === child.tag) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props.children); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + } else if (child.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + currentFirstChild = useFiber(child, newChild.props); + currentFirstChild.ref = coerceRef(returnFiber, child, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } + deleteRemainingChildren(returnFiber, child); + break; + } else deleteChild(returnFiber, child); + child = child.sibling; + } + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), lanes.ref = coerceRef(returnFiber, currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes); + } + return placeSingleChild(returnFiber); + case REACT_PORTAL_TYPE: + a: { + for (child = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === child) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || []); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, lanes); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + return placeSingleChild(returnFiber); + case REACT_LAZY_TYPE: + return child = newChild._init, reconcileChildFibers(returnFiber, currentFirstChild, child(newChild._payload), lanes); + } + if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + throwOnInvalidObjectType(returnFiber, newChild); + } + return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, lanes), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers; + } + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + function requiredContext(c) { + if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance); + push(contextFiberStackCursor, fiber); + push(contextStackCursor$1, NO_CONTEXT); + pop(contextStackCursor$1); + push(contextStackCursor$1, { + isInAParentText: !1 + }); + } + function popHostContainer() { + pop(contextStackCursor$1); + pop(contextFiberStackCursor); + pop(rootInstanceStackCursor); + } + function pushHostContext(fiber) { + requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var JSCompiler_inline_result = fiber.type; + JSCompiler_inline_result = "AndroidTextInput" === JSCompiler_inline_result || "RCTMultilineTextInputView" === JSCompiler_inline_result || "RCTSinglelineTextInputView" === JSCompiler_inline_result || "RCTText" === JSCompiler_inline_result || "RCTVirtualText" === JSCompiler_inline_result; + JSCompiler_inline_result = context.isInAParentText !== JSCompiler_inline_result ? { + isInAParentText: JSCompiler_inline_result + } : context; + context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor$1, JSCompiler_inline_result)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1), pop(contextFiberStackCursor)); + } + var suspenseStackCursor = createCursor(0); + function findFirstSuspended(row) { + for (var node = row; null !== node;) { + if (13 === node.tag) { + var state = node.memoizedState; + if (null !== state && (null === state.dehydrated || shim$1() || shim$1())) return node; + } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { + if (0 !== (node.flags & 128)) return node; + } else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === row) return null; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) workInProgressSources[i]._workInProgressVersionSecondary = null; + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes = 0, + currentlyRenderingFiber$1 = null, + currentHook = null, + workInProgressHook = null, + didScheduleRenderPhaseUpdate = !1, + didScheduleRenderPhaseUpdateDuringThisPass = !1, + globalClientIdCounter = 0; + function throwInvalidHookError() { + 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (null === prevDeps) return !1; + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1; + return !0; + } + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.lanes = 0; + ReactCurrentDispatcher$1.current = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; + current = Component(props, secondArg); + if (didScheduleRenderPhaseUpdateDuringThisPass) { + nextRenderLanes = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = !1; + if (25 <= nextRenderLanes) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + nextRenderLanes += 1; + workInProgressHook = currentHook = null; + workInProgress.updateQueue = null; + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; + current = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + workInProgress = null !== currentHook && null !== currentHook.next; + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdate = !1; + if (workInProgress) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + return current; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; + return workInProgressHook; + } + function updateWorkInProgressHook() { + if (null === currentHook) { + var nextCurrentHook = currentlyRenderingFiber$1.alternate; + nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; + } else nextCurrentHook = currentHook.next; + var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; + if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;else { + if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); + currentHook = nextCurrentHook; + nextCurrentHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; + } + return workInProgressHook; + } + function basicStateReducer(state, action) { + return "function" === typeof action ? action(state) : action; + } + function updateReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var current = currentHook, + baseQueue = current.baseQueue, + pendingQueue = queue.pending; + if (null !== pendingQueue) { + if (null !== baseQueue) { + var baseFirst = baseQueue.next; + baseQueue.next = pendingQueue.next; + pendingQueue.next = baseFirst; + } + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (null !== baseQueue) { + pendingQueue = baseQueue.next; + current = current.baseState; + var newBaseQueueFirst = baseFirst = null, + newBaseQueueLast = null, + update = pendingQueue; + do { + var updateLane = update.lane; + if ((renderLanes & updateLane) === updateLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { + lane: 0, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }), current = update.hasEagerState ? update.eagerState : reducer(current, update.action);else { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, baseFirst = current) : newBaseQueueLast = newBaseQueueLast.next = clone; + currentlyRenderingFiber$1.lanes |= updateLane; + workInProgressRootSkippedLanes |= updateLane; + } + update = update.next; + } while (null !== update && update !== pendingQueue); + null === newBaseQueueLast ? baseFirst = current : newBaseQueueLast.next = newBaseQueueFirst; + objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = current; + hook.baseState = baseFirst; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = current; + } + reducer = queue.interleaved; + if (null !== reducer) { + baseQueue = reducer; + do pendingQueue = baseQueue.lane, currentlyRenderingFiber$1.lanes |= pendingQueue, workInProgressRootSkippedLanes |= pendingQueue, baseQueue = baseQueue.next; while (baseQueue !== reducer); + } else null === baseQueue && (queue.lanes = 0); + return [hook.memoizedState, queue.dispatch]; + } + function rerenderReducer(reducer) { + var hook = updateWorkInProgressHook(), + queue = hook.queue; + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + queue.lastRenderedReducer = reducer; + var dispatch = queue.dispatch, + lastRenderPhaseUpdate = queue.pending, + newState = hook.memoizedState; + if (null !== lastRenderPhaseUpdate) { + queue.pending = null; + var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + do newState = reducer(newState, update.action), update = update.next; while (update !== lastRenderPhaseUpdate); + objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); + hook.memoizedState = newState; + null === hook.baseQueue && (hook.baseState = newState); + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function updateMutableSource() {} + function updateSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = updateWorkInProgressHook(), + nextSnapshot = getSnapshot(), + snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot); + snapshotChanged && (hook.memoizedState = nextSnapshot, didReceiveUpdate = !0); + hook = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); + if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), void 0, null); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= 16384; + fiber = { + getSnapshot: getSnapshot, + value: renderedSnapshot + }; + getSnapshot = currentlyRenderingFiber$1.updateQueue; + null === getSnapshot ? (getSnapshot = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); + } + function subscribeToStore(fiber, inst, subscribe) { + return subscribe(function () { + checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); + }); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + inst = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(inst, nextValue); + } catch (error) { + return !0; + } + } + function forceStoreRerender(fiber) { + var root = markUpdateLaneFromFiberToRoot(fiber, 1); + null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + "function" === typeof initialState && (initialState = initialState()); + hook.memoizedState = hook.baseState = initialState; + initialState = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = initialState; + initialState = initialState.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, initialState); + return [hook.memoizedState, initialState]; + } + function pushEffect(tag, create, destroy, deps) { + tag = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + next: null + }; + create = currentlyRenderingFiber$1.updateQueue; + null === create ? (create = { + lastEffect: null, + stores: null + }, currentlyRenderingFiber$1.updateQueue = create, create.lastEffect = tag.next = tag) : (destroy = create.lastEffect, null === destroy ? create.lastEffect = tag.next = tag : (deps = destroy.next, destroy.next = tag, tag.next = deps, create.lastEffect = tag)); + return tag; + } + function updateRef() { + return updateWorkInProgressHook().memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = mountWorkInProgressHook(); + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps); + } + function updateEffectImpl(fiberFlags, hookFlags, create, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var destroy = void 0; + if (null !== currentHook) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { + hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); + return; + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); + } + function mountEffect(create, deps) { + return mountEffectImpl(8390656, 8, create, deps); + } + function updateEffect(create, deps) { + return updateEffectImpl(2048, 8, create, deps); + } + function updateInsertionEffect(create, deps) { + return updateEffectImpl(4, 2, create, deps); + } + function updateLayoutEffect(create, deps) { + return updateEffectImpl(4, 4, create, deps); + } + function imperativeHandleEffect(create, ref) { + if ("function" === typeof ref) return create = create(), ref(create), function () { + ref(null); + }; + if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function () { + ref.current = null; + }; + } + function updateImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + } + function mountDebugValue() {} + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + hook.memoizedState = [callback, deps]; + return callback; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + var prevState = hook.memoizedState; + if (null !== prevState && null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + } + function updateDeferredValueImpl(hook, prevValue, value) { + if (0 === (renderLanes & 21)) return hook.baseState && (hook.baseState = !1, didReceiveUpdate = !0), hook.memoizedState = value; + objectIs(value, prevValue) || (value = claimNextTransitionLane(), currentlyRenderingFiber$1.lanes |= value, workInProgressRootSkippedLanes |= value, hook.baseState = !0); + return prevValue; + } + function startTransition(setPending, callback) { + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + setPending(!0); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + try { + setPending(!1), callback(); + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$1.transition = prevTransition; + } + } + function updateId() { + return updateWorkInProgressHook().memoizedState; + } + function dispatchReducerAction(fiber, queue, action) { + var lane = requestUpdateLane(fiber); + action = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action);else if (action = enqueueConcurrentHookUpdate(fiber, queue, action, lane), null !== action) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(action, fiber, lane, eventTime); + entangleTransitionUpdate(action, queue, lane); + } + } + function dispatchSetState(fiber, queue, action) { + var lane = requestUpdateLane(fiber), + update = { + lane: lane, + action: action, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);else { + var alternate = fiber.alternate; + if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { + var currentState = queue.lastRenderedState, + eagerState = alternate(currentState, action); + update.hasEagerState = !0; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + var interleaved = queue.interleaved; + null === interleaved ? (update.next = update, pushConcurrentUpdateQueue(queue)) : (update.next = interleaved.next, interleaved.next = update); + queue.interleaved = update; + return; + } + } catch (error) {} finally {} + action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + null !== action && (update = requestEventTime(), scheduleUpdateOnFiber(action, fiber, lane, update), entangleTransitionUpdate(action, queue, lane)); + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; + var pending = queue.pending; + null === pending ? update.next = update : (update.next = pending.next, pending.next = update); + queue.pending = update; + } + function entangleTransitionUpdate(root, queue, lane) { + if (0 !== (lane & 4194240)) { + var queueLanes = queue.lanes; + queueLanes &= root.pendingLanes; + lane |= queueLanes; + queue.lanes = lane; + markRootEntangled(root, lane); + } + } + var ContextOnlyDispatcher = { + readContext: readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnMount = { + readContext: readContext, + useCallback: function useCallback(callback, deps) { + mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; + return callback; + }, + useContext: readContext, + useEffect: mountEffect, + useImperativeHandle: function useImperativeHandle(ref, create, deps) { + deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; + return mountEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); + }, + useLayoutEffect: function useLayoutEffect(create, deps) { + return mountEffectImpl(4, 4, create, deps); + }, + useInsertionEffect: function useInsertionEffect(create, deps) { + return mountEffectImpl(4, 2, create, deps); + }, + useMemo: function useMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + deps = void 0 === deps ? null : deps; + nextCreate = nextCreate(); + hook.memoizedState = [nextCreate, deps]; + return nextCreate; + }, + useReducer: function useReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + initialArg = void 0 !== init ? init(initialArg) : initialArg; + hook.memoizedState = hook.baseState = initialArg; + reducer = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialArg + }; + hook.queue = reducer; + reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, reducer); + return [hook.memoizedState, reducer]; + }, + useRef: function useRef(initialValue) { + var hook = mountWorkInProgressHook(); + initialValue = { + current: initialValue + }; + return hook.memoizedState = initialValue; + }, + useState: mountState, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + return mountWorkInProgressHook().memoizedState = value; + }, + useTransition: function useTransition() { + var _mountState = mountState(!1), + isPending = _mountState[0]; + _mountState = startTransition.bind(null, _mountState[1]); + mountWorkInProgressHook().memoizedState = _mountState; + return [isPending, _mountState]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(subscribe, getSnapshot) { + var fiber = currentlyRenderingFiber$1, + hook = mountWorkInProgressHook(); + var nextSnapshot = getSnapshot(); + if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== (renderLanes & 30) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot: getSnapshot + }; + hook.queue = inst; + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + fiber.flags |= 2048; + pushEffect(9, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + return nextSnapshot; + }, + useId: function useId() { + var hook = mountWorkInProgressHook(), + identifierPrefix = workInProgressRoot.identifierPrefix, + globalClientId = globalClientIdCounter++; + identifierPrefix = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + return hook.memoizedState = identifierPrefix; + }, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnUpdate = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: updateReducer, + useRef: updateRef, + useState: function useState() { + return updateReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = updateReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }, + HooksDispatcherOnRerender = { + readContext: readContext, + useCallback: updateCallback, + useContext: readContext, + useEffect: updateEffect, + useImperativeHandle: updateImperativeHandle, + useInsertionEffect: updateInsertionEffect, + useLayoutEffect: updateLayoutEffect, + useMemo: updateMemo, + useReducer: rerenderReducer, + useRef: updateRef, + useState: function useState() { + return rerenderReducer(basicStateReducer); + }, + useDebugValue: mountDebugValue, + useDeferredValue: function useDeferredValue(value) { + var hook = updateWorkInProgressHook(); + return null === currentHook ? hook.memoizedState = value : updateDeferredValueImpl(hook, currentHook.memoizedState, value); + }, + useTransition: function useTransition() { + var isPending = rerenderReducer(basicStateReducer)[0], + start = updateWorkInProgressHook().memoizedState; + return [isPending, start]; + }, + useMutableSource: updateMutableSource, + useSyncExternalStore: updateSyncExternalStore, + useId: updateId, + unstable_isNewReconciler: !1 + }; + function createCapturedValueAtFiber(value, source) { + try { + var info = "", + node = source; + do info += describeFiber(node), node = node.return; while (node); + var JSCompiler_inline_result = info; + } catch (x) { + JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; + } + return { + value: value, + source: source, + stack: JSCompiler_inline_result, + digest: null + }; + } + function createCapturedValue(value, digest, stack) { + return { + value: value, + source: null, + stack: null != stack ? stack : null, + digest: null != digest ? digest : null + }; + } + if ("function" !== typeof _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog) throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function."); + function logCapturedError(boundary, errorInfo) { + try { + !1 !== _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").ReactFiberErrorDialog.showErrorDialog({ + componentStack: null !== errorInfo.stack ? errorInfo.stack : "", + error: errorInfo.value, + errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null + }) && console.error(errorInfo.value); + } catch (e) { + setTimeout(function () { + throw e; + }); + } + } + var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + lane.payload = { + element: null + }; + var error = errorInfo.value; + lane.callback = function () { + hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error); + logCapturedError(fiber, errorInfo); + }; + return lane; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + lane = createUpdate(-1, lane); + lane.tag = 3; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if ("function" === typeof getDerivedStateFromError) { + var error = errorInfo.value; + lane.payload = function () { + return getDerivedStateFromError(error); + }; + lane.callback = function () { + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (lane.callback = function () { + logCapturedError(fiber, errorInfo); + "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); + var stack = errorInfo.stack; + this.componentDidCatch(errorInfo.value, { + componentStack: null !== stack ? stack : "" + }); + }); + return lane; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + if (null === pingCache) { + pingCache = root.pingCache = new PossiblyWeakMap(); + var threadIDs = new Set(); + pingCache.set(wakeable, threadIDs); + } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); + threadIDs.has(lanes) || (threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, + didReceiveUpdate = !1; + function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); + } + function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { + Component = Component.render; + var ref = workInProgress.ref; + prepareToReadContext(workInProgress, renderLanes); + nextProps = renderWithHooks(current, workInProgress, Component, nextProps, ref, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, nextProps, renderLanes); + return workInProgress.child; + } + function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null === current) { + var type = Component.type; + if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); + current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + type = current.child; + if (0 === (current.lanes & renderLanes)) { + var prevProps = type.memoizedProps; + Component = Component.compare; + Component = null !== Component ? Component : shallowEqual; + if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + workInProgress.flags |= 1; + current = createWorkInProgress(type, nextProps); + current.ref = workInProgress.ref; + current.return = workInProgress; + return workInProgress.child = current; + } + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (null !== current) { + var prevProps = current.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, 0 !== (current.lanes & renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); + } + function updateOffscreenComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + nextChildren = nextProps.children, + prevState = null !== current ? current.memoizedState : null; + if ("hidden" === nextProps.mode) { + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= renderLanes;else { + if (0 === (renderLanes & 1073741824)) return current = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = { + baseLanes: current, + cachePool: null, + transitions: null + }, workInProgress.updateQueue = null, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= current, null; + workInProgress.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + nextProps = null !== prevState ? prevState.baseLanes : renderLanes; + push(subtreeRenderLanesCursor, subtreeRenderLanes); + subtreeRenderLanes |= nextProps; + } + } else null !== prevState ? (nextProps = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : nextProps = renderLanes, push(subtreeRenderLanesCursor, subtreeRenderLanes), subtreeRenderLanes |= nextProps; + reconcileChildren(current, workInProgress, nextChildren, renderLanes); + return workInProgress.child; + } + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.flags |= 512; + } + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { + var context = isContextProvider(Component) ? previousContext : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + prepareToReadContext(workInProgress, renderLanes); + Component = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes); + if (null !== current && !didReceiveUpdate) return workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~renderLanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + workInProgress.flags |= 1; + reconcileChildren(current, workInProgress, Component, renderLanes); + return workInProgress.child; + } + function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + prepareToReadContext(workInProgress, renderLanes); + if (null === workInProgress.stateNode) resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), constructClassInstance(workInProgress, Component, nextProps), mountClassInstance(workInProgress, Component, nextProps, renderLanes), nextProps = !0;else if (null === current) { + var instance = workInProgress.stateNode, + oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context, + contextType = Component.contextType; + "object" === typeof contextType && null !== contextType ? contextType = readContext(contextType) : (contextType = isContextProvider(Component) ? previousContext : contextStackCursor.current, contextType = getMaskedContext(workInProgress, contextType)); + var getDerivedStateFromProps = Component.getDerivedStateFromProps, + hasNewLifecycles = "function" === typeof getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate; + hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== nextProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, instance, nextProps, contextType); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + oldContext = workInProgress.memoizedState; + oldProps !== nextProps || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (hasNewLifecycles || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || ("function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" === typeof instance.componentDidMount && (workInProgress.flags |= 4)) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), instance.props = nextProps, instance.state = oldContext, instance.context = contextType, nextProps = oldProps) : ("function" === typeof instance.componentDidMount && (workInProgress.flags |= 4), nextProps = !1); + } else { + instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + oldProps = workInProgress.memoizedProps; + contextType = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); + instance.props = contextType; + hasNewLifecycles = workInProgress.pendingProps; + oldState = instance.context; + oldContext = Component.contextType; + "object" === typeof oldContext && null !== oldContext ? oldContext = readContext(oldContext) : (oldContext = isContextProvider(Component) ? previousContext : contextStackCursor.current, oldContext = getMaskedContext(workInProgress, oldContext)); + var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; + (getDerivedStateFromProps = "function" === typeof getDerivedStateFromProps$jscomp$0 || "function" === typeof instance.getSnapshotBeforeUpdate) || "function" !== typeof instance.UNSAFE_componentWillReceiveProps && "function" !== typeof instance.componentWillReceiveProps || (oldProps !== hasNewLifecycles || oldState !== oldContext) && callComponentWillReceiveProps(workInProgress, instance, nextProps, oldContext); + hasForceUpdate = !1; + oldState = workInProgress.memoizedState; + instance.state = oldState; + processUpdateQueue(workInProgress, nextProps, instance, renderLanes); + var newState = workInProgress.memoizedState; + oldProps !== hasNewLifecycles || oldState !== newState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps$jscomp$0, nextProps), newState = workInProgress.memoizedState), (contextType = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType, nextProps, oldState, newState, oldContext) || !1) ? (getDerivedStateFromProps || "function" !== typeof instance.UNSAFE_componentWillUpdate && "function" !== typeof instance.componentWillUpdate || ("function" === typeof instance.componentWillUpdate && instance.componentWillUpdate(nextProps, newState, oldContext), "function" === typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(nextProps, newState, oldContext)), "function" === typeof instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), instance.props = nextProps, instance.state = newState, instance.context = oldContext, nextProps = contextType) : ("function" !== typeof instance.componentDidUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof instance.getSnapshotBeforeUpdate || oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); + } + return finishClassComponent(current, workInProgress, Component, nextProps, hasContext, renderLanes); + } + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.flags & 128); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner$1.current = workInProgress; + var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null : shouldUpdate.render(); + workInProgress.flags |= 1; + null !== current && didCaptureError ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren, renderLanes); + workInProgress.memoizedState = shouldUpdate.state; + hasContext && invalidateContextProvider(workInProgress, Component, !0); + return workInProgress.child; + } + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: 0 + }; + function mountSuspenseOffscreenState(renderLanes) { + return { + baseLanes: renderLanes, + cachePool: null, + transitions: null + }; + } + function updateSuspenseComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + suspenseContext = suspenseStackCursor.current, + showFallback = !1, + didSuspend = 0 !== (workInProgress.flags & 128), + JSCompiler_temp; + (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseContext & 2)); + if (JSCompiler_temp) showFallback = !0, workInProgress.flags &= -129;else if (null === current || null !== current.memoizedState) suspenseContext |= 1; + push(suspenseStackCursor, suspenseContext & 1); + if (null === current) { + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated) return 0 === (workInProgress.mode & 1) ? workInProgress.lanes = 1 : shim$1() ? workInProgress.lanes = 8 : workInProgress.lanes = 1073741824, null; + didSuspend = nextProps.children; + current = nextProps.fallback; + return showFallback ? (nextProps = workInProgress.mode, showFallback = workInProgress.child, didSuspend = { + mode: "hidden", + children: didSuspend + }, 0 === (nextProps & 1) && null !== showFallback ? (showFallback.childLanes = 0, showFallback.pendingProps = didSuspend) : showFallback = createFiberFromOffscreen(didSuspend, nextProps, 0, null), current = createFiberFromFragment(current, nextProps, renderLanes, null), showFallback.return = workInProgress, current.return = workInProgress, showFallback.sibling = current, workInProgress.child = showFallback, workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, current) : mountSuspensePrimaryChildren(workInProgress, didSuspend); + } + suspenseContext = current.memoizedState; + if (null !== suspenseContext && (JSCompiler_temp = suspenseContext.dehydrated, null !== JSCompiler_temp)) return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, JSCompiler_temp, suspenseContext, renderLanes); + if (showFallback) { + showFallback = nextProps.fallback; + didSuspend = workInProgress.mode; + suspenseContext = current.child; + JSCompiler_temp = suspenseContext.sibling; + var primaryChildProps = { + mode: "hidden", + children: nextProps.children + }; + 0 === (didSuspend & 1) && workInProgress.child !== suspenseContext ? (nextProps = workInProgress.child, nextProps.childLanes = 0, nextProps.pendingProps = primaryChildProps, workInProgress.deletions = null) : (nextProps = createWorkInProgress(suspenseContext, primaryChildProps), nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064); + null !== JSCompiler_temp ? showFallback = createWorkInProgress(JSCompiler_temp, showFallback) : (showFallback = createFiberFromFragment(showFallback, didSuspend, renderLanes, null), showFallback.flags |= 2); + showFallback.return = workInProgress; + nextProps.return = workInProgress; + nextProps.sibling = showFallback; + workInProgress.child = nextProps; + nextProps = showFallback; + showFallback = workInProgress.child; + didSuspend = current.child.memoizedState; + didSuspend = null === didSuspend ? mountSuspenseOffscreenState(renderLanes) : { + baseLanes: didSuspend.baseLanes | renderLanes, + cachePool: null, + transitions: didSuspend.transitions + }; + showFallback.memoizedState = didSuspend; + showFallback.childLanes = current.childLanes & ~renderLanes; + workInProgress.memoizedState = SUSPENDED_MARKER; + return nextProps; + } + showFallback = current.child; + current = showFallback.sibling; + nextProps = createWorkInProgress(showFallback, { + mode: "visible", + children: nextProps.children + }); + 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); + nextProps.return = workInProgress; + nextProps.sibling = null; + null !== current && (renderLanes = workInProgress.deletions, null === renderLanes ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : renderLanes.push(current)); + workInProgress.child = nextProps; + workInProgress.memoizedState = null; + return nextProps; + } + function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { + primaryChildren = createFiberFromOffscreen({ + mode: "visible", + children: primaryChildren + }, workInProgress.mode, 0, null); + primaryChildren.return = workInProgress; + return workInProgress.child = primaryChildren; + } + function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) { + null !== recoverableError && (null === hydrationErrors ? hydrationErrors = [recoverableError] : hydrationErrors.push(recoverableError)); + reconcileChildFibers(workInProgress, current.child, null, renderLanes); + current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); + current.flags |= 2; + workInProgress.memoizedState = null; + return current; + } + function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) { + if (didSuspend) { + if (workInProgress.flags & 256) return workInProgress.flags &= -257, suspenseState = createCapturedValue(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")), retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); + if (null !== workInProgress.memoizedState) return workInProgress.child = current.child, workInProgress.flags |= 128, null; + suspenseState = nextProps.fallback; + didSuspend = workInProgress.mode; + nextProps = createFiberFromOffscreen({ + mode: "visible", + children: nextProps.children + }, didSuspend, 0, null); + suspenseState = createFiberFromFragment(suspenseState, didSuspend, renderLanes, null); + suspenseState.flags |= 2; + nextProps.return = workInProgress; + suspenseState.return = workInProgress; + nextProps.sibling = suspenseState; + workInProgress.child = nextProps; + 0 !== (workInProgress.mode & 1) && reconcileChildFibers(workInProgress, current.child, null, renderLanes); + workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes); + workInProgress.memoizedState = SUSPENDED_MARKER; + return suspenseState; + } + if (0 === (workInProgress.mode & 1)) return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, null); + if (shim$1()) return suspenseState = shim$1().digest, suspenseState = createCapturedValue(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), suspenseState, void 0), retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); + didSuspend = 0 !== (renderLanes & current.childLanes); + if (didReceiveUpdate || didSuspend) { + nextProps = workInProgressRoot; + if (null !== nextProps) { + switch (renderLanes & -renderLanes) { + case 4: + didSuspend = 2; + break; + case 16: + didSuspend = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + didSuspend = 32; + break; + case 536870912: + didSuspend = 268435456; + break; + default: + didSuspend = 0; + } + didSuspend = 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) ? 0 : didSuspend; + 0 !== didSuspend && didSuspend !== suspenseState.retryLane && (suspenseState.retryLane = didSuspend, markUpdateLaneFromFiberToRoot(current, didSuspend), scheduleUpdateOnFiber(nextProps, current, didSuspend, -1)); + } + renderDidSuspendDelayIfPossible(); + suspenseState = createCapturedValue(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, suspenseState); + } + if (shim$1()) return workInProgress.flags |= 128, workInProgress.child = current.child, retryDehydratedSuspenseBoundary.bind(null, current), shim$1(), null; + current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); + current.flags |= 4096; + return current; + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { + fiber.lanes |= renderLanes; + var alternate = fiber.alternate; + null !== alternate && (alternate.lanes |= renderLanes); + scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); + } + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress.memoizedState; + null === renderState ? workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailMode: tailMode + } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); + } + function updateSuspenseListComponent(current, workInProgress, renderLanes) { + var nextProps = workInProgress.pendingProps, + revealOrder = nextProps.revealOrder, + tailMode = nextProps.tail; + reconcileChildren(current, workInProgress, nextProps.children, renderLanes); + nextProps = suspenseStackCursor.current; + if (0 !== (nextProps & 2)) nextProps = nextProps & 1 | 2, workInProgress.flags |= 128;else { + if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { + if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);else if (null !== current.child) { + current.child.return = current; + current = current.child; + continue; + } + if (current === workInProgress) break a; + for (; null === current.sibling;) { + if (null === current.return || current.return === workInProgress) break a; + current = current.return; + } + current.sibling.return = current.return; + current = current.sibling; + } + nextProps &= 1; + } + push(suspenseStackCursor, nextProps); + if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;else switch (revealOrder) { + case "forwards": + renderLanes = workInProgress.child; + for (revealOrder = null; null !== renderLanes;) current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; + renderLanes = revealOrder; + null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); + initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode); + break; + case "backwards": + renderLanes = null; + revealOrder = workInProgress.child; + for (workInProgress.child = null; null !== revealOrder;) { + current = revealOrder.alternate; + if (null !== current && null === findFirstSuspended(current)) { + workInProgress.child = revealOrder; + break; + } + current = revealOrder.sibling; + revealOrder.sibling = renderLanes; + renderLanes = revealOrder; + revealOrder = current; + } + initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode); + break; + case "together": + initSuspenseListRenderState(workInProgress, !1, null, null, void 0); + break; + default: + workInProgress.memoizedState = null; + } + return workInProgress.child; + } + function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { + 0 === (workInProgress.mode & 1) && null !== current && (current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2); + } + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { + null !== current && (workInProgress.dependencies = current.dependencies); + workInProgressRootSkippedLanes |= workInProgress.lanes; + if (0 === (renderLanes & workInProgress.childLanes)) return null; + if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); + if (null !== workInProgress.child) { + current = workInProgress.child; + renderLanes = createWorkInProgress(current, current.pendingProps); + workInProgress.child = renderLanes; + for (renderLanes.return = workInProgress; null !== current.sibling;) current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; + renderLanes.sibling = null; + } + return workInProgress.child; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + case 5: + pushHostContext(workInProgress); + break; + case 1: + isContextProvider(workInProgress.type) && pushContextProvider(workInProgress); + break; + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + case 10: + var context = workInProgress.type._context, + nextValue = workInProgress.memoizedProps.value; + push(valueCursor, context._currentValue2); + context._currentValue2 = nextValue; + break; + case 13: + context = workInProgress.memoizedState; + if (null !== context) { + if (null !== context.dehydrated) return push(suspenseStackCursor, suspenseStackCursor.current & 1), workInProgress.flags |= 128, null; + if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); + push(suspenseStackCursor, suspenseStackCursor.current & 1); + current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + return null !== current ? current.sibling : null; + } + push(suspenseStackCursor, suspenseStackCursor.current & 1); + break; + case 19: + context = 0 !== (renderLanes & workInProgress.childLanes); + if (0 !== (current.flags & 128)) { + if (context) return updateSuspenseListComponent(current, workInProgress, renderLanes); + workInProgress.flags |= 128; + } + nextValue = workInProgress.memoizedState; + null !== nextValue && (nextValue.rendering = null, nextValue.tail = null, nextValue.lastEffect = null); + push(suspenseStackCursor, suspenseStackCursor.current); + if (context) break;else return null; + case 22: + case 23: + return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes); + } + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + } + function hadNoMutationsEffects(current, completedWork) { + if (null !== current && current.child === completedWork.child) return !0; + if (0 !== (completedWork.flags & 16)) return !1; + for (current = completedWork.child; null !== current;) { + if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854)) return !1; + current = current.sibling; + } + return !0; + } + var _appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1; + _appendAllChildren = function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag) { + var instance = node.stateNode; + needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); + appendChildNode(parent.node, instance.node); + } else if (6 === node.tag) { + instance = node.stateNode; + if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); + appendChildNode(parent.node, instance.node); + } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), _appendAllChildren(parent, node, !0, !0);else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag) { + var instance = node.stateNode; + needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance)); + appendChildNodeToSet(containerChildSet, instance.node); + } else if (6 === node.tag) { + instance = node.stateNode; + if (needsVisibilityToggle && isHidden) throw Error("Not yet implemented."); + appendChildNodeToSet(containerChildSet, instance.node); + } else if (4 !== node.tag) if (22 === node.tag && null !== node.memoizedState) instance = node.child, null !== instance && (instance.return = node), appendAllChildrenToContainer(containerChildSet, node, !0, !0);else if (null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + updateHostContainer = function updateHostContainer(current, workInProgress) { + var portalOrRoot = workInProgress.stateNode; + if (!hadNoMutationsEffects(current, workInProgress)) { + current = portalOrRoot.containerInfo; + var newChildSet = createChildNodeSet(current); + appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1); + portalOrRoot.pendingChildren = newChildSet; + workInProgress.flags |= 4; + completeRoot(current, newChildSet); + } + }; + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, type, newProps) { + type = current.stateNode; + var oldProps = current.memoizedProps; + if ((current = hadNoMutationsEffects(current, workInProgress)) && oldProps === newProps) workInProgress.stateNode = type;else { + var recyclableInstance = workInProgress.stateNode; + requiredContext(contextStackCursor$1.current); + var updatePayload = null; + oldProps !== newProps && (oldProps = diffProperties(null, oldProps, newProps, recyclableInstance.canonical.viewConfig.validAttributes), recyclableInstance.canonical.currentProps = newProps, updatePayload = oldProps); + current && null === updatePayload ? workInProgress.stateNode = type : (newProps = updatePayload, oldProps = type.node, type = { + node: current ? null !== newProps ? cloneNodeWithNewProps(oldProps, newProps) : cloneNode(oldProps) : null !== newProps ? cloneNodeWithNewChildrenAndProps(oldProps, newProps) : cloneNodeWithNewChildren(oldProps), + canonical: type.canonical + }, workInProgress.stateNode = type, current ? workInProgress.flags |= 4 : _appendAllChildren(type, workInProgress, !1, !1)); + } + }; + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText ? (current = requiredContext(rootInstanceStackCursor.current), oldText = requiredContext(contextStackCursor$1.current), workInProgress.stateNode = createTextInstance(newText, current, oldText, workInProgress), workInProgress.flags |= 4) : workInProgress.stateNode = current.stateNode; + }; + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": + hasRenderedATailFallback = renderState.tail; + for (var lastTailNode = null; null !== hasRenderedATailFallback;) null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; + null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; + break; + case "collapsed": + lastTailNode = renderState.tail; + for (var lastTailNode$62 = null; null !== lastTailNode;) null !== lastTailNode.alternate && (lastTailNode$62 = lastTailNode), lastTailNode = lastTailNode.sibling; + null === lastTailNode$62 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$62.sibling = null; + } + } + function bubbleProperties(completedWork) { + var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, + newChildLanes = 0, + subtreeFlags = 0; + if (didBailout) for (var child$63 = completedWork.child; null !== child$63;) newChildLanes |= child$63.lanes | child$63.childLanes, subtreeFlags |= child$63.subtreeFlags & 14680064, subtreeFlags |= child$63.flags & 14680064, child$63.return = completedWork, child$63 = child$63.sibling;else for (child$63 = completedWork.child; null !== child$63;) newChildLanes |= child$63.lanes | child$63.childLanes, subtreeFlags |= child$63.subtreeFlags, subtreeFlags |= child$63.flags, child$63.return = completedWork, child$63 = child$63.sibling; + completedWork.subtreeFlags |= subtreeFlags; + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeWork(current, workInProgress, renderLanes) { + var newProps = workInProgress.pendingProps; + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return bubbleProperties(workInProgress), null; + case 1: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 3: + return renderLanes = workInProgress.stateNode, popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), null !== current && null !== current.child || null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null)), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 5: + popHostContext(workInProgress); + renderLanes = requiredContext(rootInstanceStackCursor.current); + var type = workInProgress.type; + if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, renderLanes), current.ref !== workInProgress.ref && (workInProgress.flags |= 512);else { + if (!newProps) { + if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + bubbleProperties(workInProgress); + return null; + } + requiredContext(contextStackCursor$1.current); + current = nextReactTag; + nextReactTag += 2; + type = getViewConfigForType(type); + var updatePayload = diffProperties(null, emptyObject, newProps, type.validAttributes); + renderLanes = createNode(current, type.uiViewClassName, renderLanes, updatePayload, workInProgress); + current = new ReactFabricHostComponent(current, type, newProps, workInProgress); + current = { + node: renderLanes, + canonical: current + }; + _appendAllChildren(current, workInProgress, !1, !1); + workInProgress.stateNode = current; + null !== workInProgress.ref && (workInProgress.flags |= 512); + } + bubbleProperties(workInProgress); + return null; + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + current = requiredContext(rootInstanceStackCursor.current); + renderLanes = requiredContext(contextStackCursor$1.current); + workInProgress.stateNode = createTextInstance(newProps, current, renderLanes, workInProgress); + } + bubbleProperties(workInProgress); + return null; + case 13: + pop(suspenseStackCursor); + newProps = workInProgress.memoizedState; + if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { + if (null !== newProps && null !== newProps.dehydrated) { + if (null === current) { + throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null); + workInProgress.flags |= 4; + bubbleProperties(workInProgress); + type = !1; + } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), hydrationErrors = null), type = !0; + if (!type) return workInProgress.flags & 65536 ? workInProgress : null; + } + if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; + renderLanes = null !== newProps; + renderLanes !== (null !== current && null !== current.memoizedState) && renderLanes && (workInProgress.child.flags |= 8192, 0 !== (workInProgress.mode & 1) && (null === current || 0 !== (suspenseStackCursor.current & 1) ? 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3) : renderDidSuspendDelayIfPossible())); + null !== workInProgress.updateQueue && (workInProgress.flags |= 4); + bubbleProperties(workInProgress); + return null; + case 4: + return popHostContainer(), updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null; + case 10: + return popProvider(workInProgress.type._context), bubbleProperties(workInProgress), null; + case 17: + return isContextProvider(workInProgress.type) && popContext(), bubbleProperties(workInProgress), null; + case 19: + pop(suspenseStackCursor); + type = workInProgress.memoizedState; + if (null === type) return bubbleProperties(workInProgress), null; + newProps = 0 !== (workInProgress.flags & 128); + updatePayload = type.rendering; + if (null === updatePayload) { + if (newProps) cutOffTailIfNeeded(type, !1);else { + if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { + updatePayload = findFirstSuspended(current); + if (null !== updatePayload) { + workInProgress.flags |= 128; + cutOffTailIfNeeded(type, !1); + current = updatePayload.updateQueue; + null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4); + workInProgress.subtreeFlags = 0; + current = renderLanes; + for (renderLanes = workInProgress.child; null !== renderLanes;) newProps = renderLanes, type = current, newProps.flags &= 14680066, updatePayload = newProps.alternate, null === updatePayload ? (newProps.childLanes = 0, newProps.lanes = type, newProps.child = null, newProps.subtreeFlags = 0, newProps.memoizedProps = null, newProps.memoizedState = null, newProps.updateQueue = null, newProps.dependencies = null, newProps.stateNode = null) : (newProps.childLanes = updatePayload.childLanes, newProps.lanes = updatePayload.lanes, newProps.child = updatePayload.child, newProps.subtreeFlags = 0, newProps.deletions = null, newProps.memoizedProps = updatePayload.memoizedProps, newProps.memoizedState = updatePayload.memoizedState, newProps.updateQueue = updatePayload.updateQueue, newProps.type = updatePayload.type, type = updatePayload.dependencies, newProps.dependencies = null === type ? null : { + lanes: type.lanes, + firstContext: type.firstContext + }), renderLanes = renderLanes.sibling; + push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); + return workInProgress.child; + } + current = current.sibling; + } + null !== type.tail && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + } + } else { + if (!newProps) if (current = findFirstSuspended(updatePayload), null !== current) { + if (workInProgress.flags |= 128, newProps = !0, current = current.updateQueue, null !== current && (workInProgress.updateQueue = current, workInProgress.flags |= 4), cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && !updatePayload.alternate) return bubbleProperties(workInProgress), null; + } else 2 * _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && (workInProgress.flags |= 128, newProps = !0, cutOffTailIfNeeded(type, !1), workInProgress.lanes = 4194304); + type.isBackwards ? (updatePayload.sibling = workInProgress.child, workInProgress.child = updatePayload) : (current = type.last, null !== current ? current.sibling = updatePayload : workInProgress.child = updatePayload, type.last = updatePayload); + } + if (null !== type.tail) return workInProgress = type.tail, type.rendering = workInProgress, type.tail = workInProgress.sibling, type.renderingStartTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), workInProgress.sibling = null, current = suspenseStackCursor.current, push(suspenseStackCursor, newProps ? current & 1 | 2 : current & 1), workInProgress; + bubbleProperties(workInProgress); + return null; + case 22: + case 23: + return popRenderLanes(), renderLanes = null !== workInProgress.memoizedState, null !== current && null !== current.memoizedState !== renderLanes && (workInProgress.flags |= 8192), renderLanes && 0 !== (workInProgress.mode & 1) ? 0 !== (subtreeRenderLanes & 1073741824) && bubbleProperties(workInProgress) : bubbleProperties(workInProgress), null; + case 24: + return null; + case 25: + return null; + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function unwindWork(current, workInProgress) { + popTreeContext(workInProgress); + switch (workInProgress.tag) { + case 1: + return isContextProvider(workInProgress.type) && popContext(), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 3: + return popHostContainer(), pop(didPerformWorkStackCursor), pop(contextStackCursor), resetWorkInProgressVersions(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 5: + return popHostContext(workInProgress), null; + case 13: + pop(suspenseStackCursor); + current = workInProgress.memoizedState; + if (null !== current && null !== current.dehydrated && null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + current = workInProgress.flags; + return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; + case 19: + return pop(suspenseStackCursor), null; + case 4: + return popHostContainer(), null; + case 10: + return popProvider(workInProgress.type._context), null; + case 22: + case 23: + return popRenderLanes(), null; + case 24: + return null; + default: + return null; + } + } + var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, + nextEffect = null; + function safelyDetachRef(current, nearestMountedAncestor) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } else ref.current = null; + } + function safelyCallDestroy(current, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error) { + captureCommitPhaseError(current, nearestMountedAncestor, error); + } + } + var shouldFireAfterActiveInstanceBlur = !1; + function commitBeforeMutationEffects(root, firstChild) { + for (nextEffect = firstChild; null !== nextEffect;) if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild) firstChild.return = root, nextEffect = firstChild;else for (; null !== nextEffect;) { + root = nextEffect; + try { + var current = root.alternate; + if (0 !== (root.flags & 1024)) switch (root.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = root.stateNode, + snapshot = instance.getSnapshotBeforeUpdate(root.elementType === root.type ? prevProps : resolveDefaultProps(root.type, prevProps), prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + case 3: + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + 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."); + } + } catch (error) { + captureCommitPhaseError(root, root.return, error); + } + firstChild = root.sibling; + if (null !== firstChild) { + firstChild.return = root.return; + nextEffect = firstChild; + break; + } + nextEffect = root.return; + } + current = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = !1; + return current; + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; + if (null !== updateQueue) { + var effect = updateQueue = updateQueue.next; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = void 0; + void 0 !== destroy && safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + } + effect = effect.next; + } while (effect !== updateQueue); + } + } + function commitHookEffectListMount(flags, finishedWork) { + finishedWork = finishedWork.updateQueue; + finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; + if (null !== finishedWork) { + var effect = finishedWork = finishedWork.next; + do { + if ((effect.tag & flags) === flags) { + var create$75 = effect.create; + effect.destroy = create$75(); + } + effect = effect.next; + } while (effect !== finishedWork); + } + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + fiber.stateNode = null; + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + fiber.updateQueue = null; + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + for (parent = parent.child; null !== parent;) commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { + injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); + } catch (err) {} + switch (deletedFiber.tag) { + case 5: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + case 6: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 18: + break; + case 4: + createChildNodeSet(deletedFiber.stateNode.containerInfo); + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 0: + case 11: + case 14: + case 15: + var updateQueue = deletedFiber.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.lastEffect, null !== updateQueue)) { + var effect = updateQueue = updateQueue.next; + do { + var _effect = effect, + destroy = _effect.destroy; + _effect = _effect.tag; + void 0 !== destroy && (0 !== (_effect & 2) ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) : 0 !== (_effect & 4) && safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)); + effect = effect.next; + } while (effect !== updateQueue); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 1: + safelyDetachRef(deletedFiber, nearestMountedAncestor); + updateQueue = deletedFiber.stateNode; + if ("function" === typeof updateQueue.componentWillUnmount) try { + updateQueue.props = deletedFiber.memoizedProps, updateQueue.state = deletedFiber.memoizedState, updateQueue.componentWillUnmount(); + } catch (error) { + captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 21: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + case 22: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + break; + default: + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (null !== wakeables) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); + wakeables.forEach(function (wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + retryCache.has(wakeable) || (retryCache.add(wakeable), wakeable.then(retry, retry)); + }); + } + } + function recursivelyTraverseMutationEffects(root, parentFiber) { + var deletions = parentFiber.deletions; + if (null !== deletions) for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffectsOnFiber(root, parentFiber, childToDelete); + var alternate = childToDelete.alternate; + null !== alternate && (alternate.return = null); + childToDelete.return = null; + } catch (error) { + captureCommitPhaseError(childToDelete, parentFiber, error); + } + } + if (parentFiber.subtreeFlags & 12854) for (parentFiber = parentFiber.child; null !== parentFiber;) commitMutationEffectsOnFiber(parentFiber, root), parentFiber = parentFiber.sibling; + } + function commitMutationEffectsOnFiber(finishedWork, root) { + var current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & 4) { + try { + commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } + try { + commitHookEffectListUnmount(5, finishedWork, finishedWork.return); + } catch (error$79) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$79); + } + } + break; + case 1: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 5: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && null !== current && safelyDetachRef(current, current.return); + break; + case 6: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 3: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 4: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + break; + case 13: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + root = finishedWork.child; + root.flags & 8192 && (current = null !== root.memoizedState, root.stateNode.isHidden = current, !current || null !== root.alternate && null !== root.alternate.memoizedState || (globalMostRecentFallbackTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now())); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 22: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 8192 && (finishedWork.stateNode.isHidden = null !== finishedWork.memoizedState); + break; + case 19: + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 4 && attachSuspenseRetryListeners(finishedWork); + break; + case 21: + break; + default: + recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + flags & 2 && (finishedWork.flags &= -3); + flags & 4096 && (finishedWork.flags &= -4097); + } + function commitLayoutEffects(finishedWork) { + for (nextEffect = finishedWork; null !== nextEffect;) { + var fiber = nextEffect, + firstChild = fiber.child; + if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild) firstChild.return = fiber, nextEffect = firstChild;else for (fiber = finishedWork; null !== nextEffect;) { + firstChild = nextEffect; + if (0 !== (firstChild.flags & 8772)) { + var current = firstChild.alternate; + try { + if (0 !== (firstChild.flags & 8772)) switch (firstChild.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(5, firstChild); + break; + case 1: + var instance = firstChild.stateNode; + if (firstChild.flags & 4) if (null === current) instance.componentDidMount();else { + var prevProps = firstChild.elementType === firstChild.type ? current.memoizedProps : resolveDefaultProps(firstChild.type, current.memoizedProps); + instance.componentDidUpdate(prevProps, current.memoizedState, instance.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = firstChild.updateQueue; + null !== updateQueue && commitUpdateQueue(firstChild, updateQueue, instance); + break; + case 3: + var updateQueue$76 = firstChild.updateQueue; + if (null !== updateQueue$76) { + current = null; + if (null !== firstChild.child) switch (firstChild.child.tag) { + case 5: + current = firstChild.child.stateNode.canonical; + break; + case 1: + current = firstChild.child.stateNode; + } + commitUpdateQueue(firstChild, updateQueue$76, current); + } + break; + case 5: + if (null === current && firstChild.flags & 4) throw Error("The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."); + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + 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 (firstChild.flags & 512) { + current = void 0; + var ref = firstChild.ref; + if (null !== ref) { + var instance$jscomp$0 = firstChild.stateNode; + switch (firstChild.tag) { + case 5: + current = instance$jscomp$0.canonical; + break; + default: + current = instance$jscomp$0; + } + "function" === typeof ref ? ref(current) : ref.current = current; + } + } + } catch (error) { + captureCommitPhaseError(firstChild, firstChild.return, error); + } + } + if (firstChild === fiber) { + nextEffect = null; + break; + } + current = firstChild.sibling; + if (null !== current) { + current.return = firstChild.return; + nextEffect = current; + break; + } + nextEffect = firstChild.return; + } + } + } + var ceil = Math.ceil, + ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + executionContext = 0, + workInProgressRoot = null, + workInProgress = null, + workInProgressRootRenderLanes = 0, + subtreeRenderLanes = 0, + subtreeRenderLanesCursor = createCursor(0), + workInProgressRootExitStatus = 0, + workInProgressRootFatalError = null, + workInProgressRootSkippedLanes = 0, + workInProgressRootInterleavedUpdatedLanes = 0, + workInProgressRootPingedLanes = 0, + workInProgressRootConcurrentErrors = null, + workInProgressRootRecoverableErrors = null, + globalMostRecentFallbackTime = 0, + workInProgressRootRenderTargetTime = Infinity, + workInProgressTransitions = null, + hasUncaughtError = !1, + firstUncaughtError = null, + legacyErrorBoundariesThatAlreadyFailed = null, + rootDoesHavePassiveEffects = !1, + rootWithPendingPassiveEffects = null, + pendingPassiveEffectsLanes = 0, + nestedUpdateCount = 0, + rootWithNestedUpdates = null, + currentEventTime = -1, + currentEventTransitionLane = 0; + function requestEventTime() { + return 0 !== (executionContext & 6) ? _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(); + } + function requestUpdateLane(fiber) { + if (0 === (fiber.mode & 1)) return 1; + if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; + if (null !== ReactCurrentBatchConfig.transition) return 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), currentEventTransitionLane; + fiber = currentUpdatePriority; + if (0 === fiber) a: { + fiber = fabricGetCurrentEventPriority ? fabricGetCurrentEventPriority() : null; + if (null != fiber) switch (fiber) { + case FabricDiscretePriority: + fiber = 1; + break a; + } + fiber = 16; + } + return fiber; + } + function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { + if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + markRootUpdated(root, lane, eventTime); + if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), 1 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + } + function ensureRootIsScheduled(root, currentTime) { + for (var existingCallbackNode = root.callbackNode, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes; 0 < lanes;) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5, + expirationTime = expirationTimes[index$5]; + if (-1 === expirationTime) { + if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + } else expirationTime <= currentTime && (root.expiredLanes |= lane); + lanes &= ~lane; + } + suspendedLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === suspendedLanes) null !== existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0;else if (currentTime = suspendedLanes & -suspendedLanes, root.callbackPriority !== currentTime) { + null != existingCallbackNode && _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_cancelCallback(existingCallbackNode); + if (1 === currentTime) 0 === root.tag ? (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), includesLegacySyncCallbacks = !0, null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)) : (existingCallbackNode = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? syncQueue = [existingCallbackNode] : syncQueue.push(existingCallbackNode)), _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority, flushSyncCallbacks), existingCallbackNode = null;else { + switch (lanesToEventPriority(suspendedLanes)) { + case 1: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_ImmediatePriority; + break; + case 4: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_UserBlockingPriority; + break; + case 16: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + break; + case 536870912: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_IdlePriority; + break; + default: + existingCallbackNode = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority; + } + existingCallbackNode = scheduleCallback$1(existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = currentTime; + root.callbackNode = existingCallbackNode; + } + } + function performConcurrentWorkOnRoot(root, didTimeout) { + currentEventTime = -1; + currentEventTransitionLane = 0; + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + var originalCallbackNode = root.callbackNode; + if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0); + if (0 === lanes) return null; + if (0 !== (lanes & 30) || 0 !== (lanes & root.expiredLanes) || didTimeout) didTimeout = renderRootSync(root, lanes);else { + didTimeout = lanes; + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== didTimeout) workInProgressTransitions = null, workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, prepareFreshStack(root, didTimeout); + do try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } while (1); + resetContextDependencies(); + ReactCurrentDispatcher$2.current = prevDispatcher; + executionContext = prevExecutionContext; + null !== workInProgress ? didTimeout = 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, didTimeout = workInProgressRootExitStatus); + } + if (0 !== didTimeout) { + 2 === didTimeout && (prevExecutionContext = getLanesToRetrySynchronouslyOnError(root), 0 !== prevExecutionContext && (lanes = prevExecutionContext, didTimeout = recoverFromConcurrentError(root, prevExecutionContext))); + if (1 === didTimeout) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + if (6 === didTimeout) markRootSuspended$1(root, lanes);else { + prevExecutionContext = root.current.alternate; + if (0 === (lanes & 30) && !isRenderConsistentWithExternalStores(prevExecutionContext) && (didTimeout = renderRootSync(root, lanes), 2 === didTimeout && (prevDispatcher = getLanesToRetrySynchronouslyOnError(root), 0 !== prevDispatcher && (lanes = prevDispatcher, didTimeout = recoverFromConcurrentError(root, prevDispatcher))), 1 === didTimeout)) throw originalCallbackNode = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), originalCallbackNode; + root.finishedWork = prevExecutionContext; + root.finishedLanes = lanes; + switch (didTimeout) { + case 0: + case 1: + throw Error("Root did not complete. This is a bug in React."); + case 2: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 3: + markRootSuspended$1(root, lanes); + if ((lanes & 130023424) === lanes && (didTimeout = globalMostRecentFallbackTime + 500 - _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now(), 10 < didTimeout)) { + if (0 !== getNextLanes(root, 0)) break; + prevExecutionContext = root.suspendedLanes; + if ((prevExecutionContext & lanes) !== lanes) { + requestEventTime(); + root.pingedLanes |= root.suspendedLanes & prevExecutionContext; + break; + } + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), didTimeout); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 4: + markRootSuspended$1(root, lanes); + if ((lanes & 4194240) === lanes) break; + didTimeout = root.eventTimes; + for (prevExecutionContext = -1; 0 < lanes;) { + var index$4 = 31 - clz32(lanes); + prevDispatcher = 1 << index$4; + index$4 = didTimeout[index$4]; + index$4 > prevExecutionContext && (prevExecutionContext = index$4); + lanes &= ~prevDispatcher; + } + lanes = prevExecutionContext; + lanes = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - lanes; + lanes = (120 > lanes ? 120 : 480 > lanes ? 480 : 1080 > lanes ? 1080 : 1920 > lanes ? 1920 : 3e3 > lanes ? 3e3 : 4320 > lanes ? 4320 : 1960 * ceil(lanes / 1960)) - lanes; + if (10 < lanes) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), lanes); + break; + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + case 5: + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + default: + throw Error("Unknown root exit status."); + } + } + } + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return root.callbackNode === originalCallbackNode ? performConcurrentWorkOnRoot.bind(null, root) : null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + root.current.memoizedState.isDehydrated && (prepareFreshStack(root, errorRetryLanes).flags |= 256); + root = renderRootSync(root, errorRetryLanes); + 2 !== root && (errorRetryLanes = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = errorsFromFirstAttempt, null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes)); + return root; + } + function queueRecoverableErrors(errors) { + null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = errors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + function isRenderConsistentWithExternalStores(finishedWork) { + for (var node = finishedWork;;) { + if (node.flags & 16384) { + var updateQueue = node.updateQueue; + if (null !== updateQueue && (updateQueue = updateQueue.stores, null !== updateQueue)) for (var i = 0; i < updateQueue.length; i++) { + var check = updateQueue[i], + getSnapshot = check.getSnapshot; + check = check.value; + try { + if (!objectIs(getSnapshot(), check)) return !1; + } catch (error) { + return !1; + } + } + } + updateQueue = node.child; + if (node.subtreeFlags & 16384 && null !== updateQueue) updateQueue.return = node, node = updateQueue;else { + if (node === finishedWork) break; + for (; null === node.sibling;) { + if (null === node.return || node.return === finishedWork) return !0; + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return !0; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes &= ~workInProgressRootPingedLanes; + suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + for (root = root.expirationTimes; 0 < suspendedLanes;) { + var index$6 = 31 - clz32(suspendedLanes), + lane = 1 << index$6; + root[index$6] = -1; + suspendedLanes &= ~lane; + } + } + function performSyncWorkOnRoot(root) { + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + flushPassiveEffects(); + var lanes = getNextLanes(root, 0); + if (0 === (lanes & 1)) return ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), null; + var exitStatus = renderRootSync(root, lanes); + if (0 !== root.tag && 2 === exitStatus) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + 0 !== errorRetryLanes && (lanes = errorRetryLanes, exitStatus = recoverFromConcurrentError(root, errorRetryLanes)); + } + if (1 === exitStatus) throw exitStatus = workInProgressRootFatalError, prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()), exitStatus; + if (6 === exitStatus) throw Error("Root did not complete. This is a bug in React."); + root.finishedWork = root.current.alternate; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + return null; + } + function popRenderLanes() { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = 0; + var timeoutHandle = root.timeoutHandle; + -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); + if (null !== workInProgress) for (timeoutHandle = workInProgress.return; null !== timeoutHandle;) { + var interruptedWork = timeoutHandle; + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case 1: + interruptedWork = interruptedWork.type.childContextTypes; + null !== interruptedWork && void 0 !== interruptedWork && popContext(); + break; + case 3: + popHostContainer(); + pop(didPerformWorkStackCursor); + pop(contextStackCursor); + resetWorkInProgressVersions(); + break; + case 5: + popHostContext(interruptedWork); + break; + case 4: + popHostContainer(); + break; + case 13: + pop(suspenseStackCursor); + break; + case 19: + pop(suspenseStackCursor); + break; + case 10: + popProvider(interruptedWork.type._context); + break; + case 22: + case 23: + popRenderLanes(); + } + timeoutHandle = timeoutHandle.return; + } + workInProgressRoot = root; + workInProgress = root = createWorkInProgress(root.current, null); + workInProgressRootRenderLanes = subtreeRenderLanes = lanes; + workInProgressRootExitStatus = 0; + workInProgressRootFatalError = null; + workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; + workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; + if (null !== concurrentQueues) { + for (lanes = 0; lanes < concurrentQueues.length; lanes++) if (timeoutHandle = concurrentQueues[lanes], interruptedWork = timeoutHandle.interleaved, null !== interruptedWork) { + timeoutHandle.interleaved = null; + var firstInterleavedUpdate = interruptedWork.next, + lastPendingUpdate = timeoutHandle.pending; + if (null !== lastPendingUpdate) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + interruptedWork.next = firstPendingUpdate; + } + timeoutHandle.pending = interruptedWork; + } + concurrentQueues = null; + } + return root; + } + function handleError(root$jscomp$0, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;) { + var queue = hook.queue; + null !== queue && (queue.pending = null); + hook = hook.next; + } + didScheduleRenderPhaseUpdate = !1; + } + renderLanes = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; + didScheduleRenderPhaseUpdateDuringThisPass = !1; + ReactCurrentOwner$2.current = null; + if (null === erroredWork || null === erroredWork.return) { + workInProgressRootExitStatus = 1; + workInProgressRootFatalError = thrownValue; + workInProgress = null; + break; + } + a: { + var root = root$jscomp$0, + returnFiber = erroredWork.return, + sourceFiber = erroredWork, + value = thrownValue; + thrownValue = workInProgressRootRenderLanes; + sourceFiber.flags |= 32768; + if (null !== value && "object" === typeof value && "function" === typeof value.then) { + var wakeable = value, + sourceFiber$jscomp$0 = sourceFiber, + tag = sourceFiber$jscomp$0.tag; + if (0 === (sourceFiber$jscomp$0.mode & 1) && (0 === tag || 11 === tag || 15 === tag)) { + var currentSource = sourceFiber$jscomp$0.alternate; + currentSource ? (sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue, sourceFiber$jscomp$0.memoizedState = currentSource.memoizedState, sourceFiber$jscomp$0.lanes = currentSource.lanes) : (sourceFiber$jscomp$0.updateQueue = null, sourceFiber$jscomp$0.memoizedState = null); + } + b: { + sourceFiber$jscomp$0 = returnFiber; + do { + var JSCompiler_temp; + if (JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag) { + var nextState = sourceFiber$jscomp$0.memoizedState; + JSCompiler_temp = null !== nextState ? null !== nextState.dehydrated ? !0 : !1 : !0; + } + if (JSCompiler_temp) { + var suspenseBoundary = sourceFiber$jscomp$0; + break b; + } + sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return; + } while (null !== sourceFiber$jscomp$0); + suspenseBoundary = null; + } + if (null !== suspenseBoundary) { + suspenseBoundary.flags &= -257; + value = suspenseBoundary; + sourceFiber$jscomp$0 = thrownValue; + if (0 === (value.mode & 1)) { + if (value === returnFiber) value.flags |= 65536;else { + value.flags |= 128; + sourceFiber.flags |= 131072; + sourceFiber.flags &= -52805; + if (1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;else { + var update = createUpdate(-1, 1); + update.tag = 2; + enqueueUpdate(sourceFiber, update, 1); + } + sourceFiber.lanes |= 1; + } + } else value.flags |= 65536, value.lanes = sourceFiber$jscomp$0; + suspenseBoundary.mode & 1 && attachPingListener(root, wakeable, thrownValue); + thrownValue = suspenseBoundary; + root = wakeable; + var wakeables = thrownValue.updateQueue; + if (null === wakeables) { + var updateQueue = new Set(); + updateQueue.add(root); + thrownValue.updateQueue = updateQueue; + } else wakeables.add(root); + break a; + } else { + if (0 === (thrownValue & 1)) { + attachPingListener(root, wakeable, thrownValue); + renderDidSuspendDelayIfPossible(); + break a; + } + value = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + } + } + root = value = createCapturedValueAtFiber(value, sourceFiber); + 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); + null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [root] : workInProgressRootConcurrentErrors.push(root); + root = returnFiber; + do { + switch (root.tag) { + case 3: + wakeable = value; + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$jscomp$0 = createRootErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$jscomp$0); + break a; + case 1: + wakeable = value; + var ctor = root.type, + instance = root.stateNode; + if (0 === (root.flags & 128) && ("function" === typeof ctor.getDerivedStateFromError || null !== instance && "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) { + root.flags |= 65536; + thrownValue &= -thrownValue; + root.lanes |= thrownValue; + var update$32 = createClassErrorUpdate(root, wakeable, thrownValue); + enqueueCapturedUpdate(root, update$32); + break a; + } + } + root = root.return; + } while (null !== root); + } + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + workInProgress === erroredWork && null !== erroredWork && (workInProgress = erroredWork = erroredWork.return); + continue; + } + break; + } while (1); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; + } + function renderDidSuspendDelayIfPossible() { + if (0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus || 2 === workInProgressRootExitStatus) workInProgressRootExitStatus = 4; + null === workInProgressRoot || 0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455) || markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= 2; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); + do try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } while (1); + resetContextDependencies(); + executionContext = prevExecutionContext; + ReactCurrentDispatcher$2.current = prevDispatcher; + if (null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + return workInProgressRootExitStatus; + } + function workLoopSync() { + for (; null !== workInProgress;) performUnitOfWork(workInProgress); + } + function workLoopConcurrent() { + for (; null !== workInProgress && !_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_shouldYield();) performUnitOfWork(workInProgress); + } + function performUnitOfWork(unitOfWork) { + var next = beginWork$1(unitOfWork.alternate, unitOfWork, subtreeRenderLanes); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current = completedWork.alternate; + unitOfWork = completedWork.return; + if (0 === (completedWork.flags & 32768)) { + if (current = completeWork(current, completedWork, subtreeRenderLanes), null !== current) { + workInProgress = current; + return; + } + } else { + current = unwindWork(current, completedWork); + if (null !== current) { + current.flags &= 32767; + workInProgress = current; + return; + } + if (null !== unitOfWork) unitOfWork.flags |= 32768, unitOfWork.subtreeFlags = 0, unitOfWork.deletions = null;else { + workInProgressRootExitStatus = 6; + workInProgress = null; + return; + } + } + completedWork = completedWork.sibling; + if (null !== completedWork) { + workInProgress = completedWork; + return; + } + workInProgress = completedWork = unitOfWork; + } while (null !== completedWork); + 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = currentUpdatePriority, + prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null, currentUpdatePriority = 1, commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition, currentUpdatePriority = previousUpdateLanePriority; + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) throw Error("Should not already be working."); + transitions = root.finishedWork; + var lanes = root.finishedLanes; + if (null === transitions) return null; + root.finishedWork = null; + root.finishedLanes = 0; + if (transitions === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + root.callbackNode = null; + root.callbackPriority = 0; + var remainingLanes = transitions.lanes | transitions.childLanes; + markRootFinished(root, remainingLanes); + root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); + 0 === (transitions.subtreeFlags & 2064) && 0 === (transitions.flags & 2064) || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback$1(_$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_NormalPriority, function () { + flushPassiveEffects(); + return null; + })); + remainingLanes = 0 !== (transitions.flags & 15990); + if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) { + remainingLanes = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = currentUpdatePriority; + currentUpdatePriority = 1; + var prevExecutionContext = executionContext; + executionContext |= 4; + ReactCurrentOwner$2.current = null; + commitBeforeMutationEffects(root, transitions); + commitMutationEffectsOnFiber(transitions, root); + root.current = transitions; + commitLayoutEffects(transitions, root, lanes); + _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_requestPaint(); + executionContext = prevExecutionContext; + currentUpdatePriority = previousPriority; + ReactCurrentBatchConfig$2.transition = remainingLanes; + } else root.current = transitions; + rootDoesHavePassiveEffects && (rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root, pendingPassiveEffectsLanes = lanes); + remainingLanes = root.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + onCommitRoot(transitions.stateNode, renderPriorityLevel); + ensureRootIsScheduled(root, _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now()); + if (null !== recoverableErrors) for (renderPriorityLevel = root.onRecoverableError, transitions = 0; transitions < recoverableErrors.length; transitions++) lanes = recoverableErrors[transitions], renderPriorityLevel(lanes.value, { + componentStack: lanes.stack, + digest: lanes.digest + }); + if (hasUncaughtError) throw hasUncaughtError = !1, root = firstUncaughtError, firstUncaughtError = null, root; + 0 !== (pendingPassiveEffectsLanes & 1) && 0 !== root.tag && flushPassiveEffects(); + remainingLanes = root.pendingLanes; + 0 !== (remainingLanes & 1) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (null !== rootWithPendingPassiveEffects) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), + prevTransition = ReactCurrentBatchConfig$2.transition, + previousPriority = currentUpdatePriority; + try { + ReactCurrentBatchConfig$2.transition = null; + currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority; + if (null === rootWithPendingPassiveEffects) var JSCompiler_inline_result = !1;else { + renderPriority = rootWithPendingPassiveEffects; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsLanes = 0; + if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); + var prevExecutionContext = executionContext; + executionContext |= 4; + for (nextEffect = renderPriority.current; null !== nextEffect;) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (nextEffect.flags & 16)) { + var deletions = fiber.deletions; + if (null !== deletions) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + for (nextEffect = fiberToDelete; null !== nextEffect;) { + var fiber$jscomp$0 = nextEffect; + switch (fiber$jscomp$0.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(8, fiber$jscomp$0, fiber); + } + var child$jscomp$0 = fiber$jscomp$0.child; + if (null !== child$jscomp$0) child$jscomp$0.return = fiber$jscomp$0, nextEffect = child$jscomp$0;else for (; null !== nextEffect;) { + fiber$jscomp$0 = nextEffect; + var sibling = fiber$jscomp$0.sibling, + returnFiber = fiber$jscomp$0.return; + detachFiberAfterEffects(fiber$jscomp$0); + if (fiber$jscomp$0 === fiberToDelete) { + nextEffect = null; + break; + } + if (null !== sibling) { + sibling.return = returnFiber; + nextEffect = sibling; + break; + } + nextEffect = returnFiber; + } + } + } + var previousFiber = fiber.alternate; + if (null !== previousFiber) { + var detachedChild = previousFiber.child; + if (null !== detachedChild) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (null !== detachedChild); + } + } + nextEffect = fiber; + } + } + if (0 !== (fiber.subtreeFlags & 2064) && null !== child) child.return = fiber, nextEffect = child;else b: for (; null !== nextEffect;) { + fiber = nextEffect; + if (0 !== (fiber.flags & 2048)) switch (fiber.tag) { + case 0: + case 11: + case 15: + commitHookEffectListUnmount(9, fiber, fiber.return); + } + var sibling$jscomp$0 = fiber.sibling; + if (null !== sibling$jscomp$0) { + sibling$jscomp$0.return = fiber.return; + nextEffect = sibling$jscomp$0; + break b; + } + nextEffect = fiber.return; + } + } + var finishedWork = renderPriority.current; + for (nextEffect = finishedWork; null !== nextEffect;) { + child = nextEffect; + var firstChild = child.child; + if (0 !== (child.subtreeFlags & 2064) && null !== firstChild) firstChild.return = child, nextEffect = firstChild;else b: for (child = finishedWork; null !== nextEffect;) { + deletions = nextEffect; + if (0 !== (deletions.flags & 2048)) try { + switch (deletions.tag) { + case 0: + case 11: + case 15: + commitHookEffectListMount(9, deletions); + } + } catch (error) { + captureCommitPhaseError(deletions, deletions.return, error); + } + if (deletions === child) { + nextEffect = null; + break b; + } + var sibling$jscomp$1 = deletions.sibling; + if (null !== sibling$jscomp$1) { + sibling$jscomp$1.return = deletions.return; + nextEffect = sibling$jscomp$1; + break b; + } + nextEffect = deletions.return; + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { + injectedHook.onPostCommitFiberRoot(rendererID, renderPriority); + } catch (err) {} + JSCompiler_inline_result = !0; + } + return JSCompiler_inline_result; + } finally { + currentUpdatePriority = previousPriority, ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + return !1; + } + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + sourceFiber = createCapturedValueAtFiber(error, sourceFiber); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 1); + sourceFiber = requestEventTime(); + null !== rootFiber && (markRootUpdated(rootFiber, 1, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { + if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);else for (nearestMountedAncestor = sourceFiber.return; null !== nearestMountedAncestor;) { + if (3 === nearestMountedAncestor.tag) { + captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); + break; + } else if (1 === nearestMountedAncestor.tag) { + var instance = nearestMountedAncestor.stateNode; + if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + sourceFiber = createCapturedValueAtFiber(error, sourceFiber); + sourceFiber = createClassErrorUpdate(nearestMountedAncestor, sourceFiber, 1); + nearestMountedAncestor = enqueueUpdate(nearestMountedAncestor, sourceFiber, 1); + sourceFiber = requestEventTime(); + null !== nearestMountedAncestor && (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); + break; + } + } + nearestMountedAncestor = nearestMountedAncestor.return; + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + null !== pingCache && pingCache.delete(wakeable); + wakeable = requestEventTime(); + root.pingedLanes |= root.suspendedLanes & pingedLanes; + workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 130023424) === workInProgressRootRenderLanes && 500 > _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() - globalMostRecentFallbackTime ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes); + ensureRootIsScheduled(root, wakeable); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + 0 === retryLane && (0 === (boundaryFiber.mode & 1) ? retryLane = 1 : (retryLane = nextRetryLane, nextRetryLane <<= 1, 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + var eventTime = requestEventTime(); + boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane); + null !== boundaryFiber && (markRootUpdated(boundaryFiber, retryLane, eventTime), ensureRootIsScheduled(boundaryFiber, eventTime)); + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState, + retryLane = 0; + null !== suspenseState && (retryLane = suspenseState.retryLane); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = 0; + switch (boundaryFiber.tag) { + case 13: + var retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + null !== suspenseState && (retryLane = suspenseState.retryLane); + break; + case 19: + retryCache = boundaryFiber.stateNode; + break; + default: + throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + null !== retryCache && retryCache.delete(wakeable); + retryTimedOutBoundary(boundaryFiber, retryLane); + } + var beginWork$1; + beginWork$1 = function beginWork$1(current, workInProgress, renderLanes) { + if (null !== current) { + if (current.memoizedProps !== workInProgress.pendingProps || didPerformWorkStackCursor.current) didReceiveUpdate = !0;else { + if (0 === (current.lanes & renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); + didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; + } + } else didReceiveUpdate = !1; + workInProgress.lanes = 0; + switch (workInProgress.tag) { + case 2: + var Component = workInProgress.type; + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + var context = getMaskedContext(workInProgress, contextStackCursor.current); + prepareToReadContext(workInProgress, renderLanes); + context = renderWithHooks(null, workInProgress, Component, current, context, renderLanes); + workInProgress.flags |= 1; + if ("object" === typeof context && null !== context && "function" === typeof context.render && void 0 === context.$$typeof) { + workInProgress.tag = 1; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + if (isContextProvider(Component)) { + var hasContext = !0; + pushContextProvider(workInProgress); + } else hasContext = !1; + workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; + initializeUpdateQueue(workInProgress); + context.updater = classComponentUpdater; + workInProgress.stateNode = context; + context._reactInternals = workInProgress; + mountClassInstance(workInProgress, Component, current, renderLanes); + workInProgress = finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes); + } else workInProgress.tag = 0, reconcileChildren(null, workInProgress, context, renderLanes), workInProgress = workInProgress.child; + return workInProgress; + case 16: + Component = workInProgress.elementType; + a: { + resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); + current = workInProgress.pendingProps; + context = Component._init; + Component = context(Component._payload); + workInProgress.type = Component; + context = workInProgress.tag = resolveLazyComponentTag(Component); + current = resolveDefaultProps(Component, current); + switch (context) { + case 0: + workInProgress = updateFunctionComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 1: + workInProgress = updateClassComponent(null, workInProgress, Component, current, renderLanes); + break a; + case 11: + workInProgress = updateForwardRef(null, workInProgress, Component, current, renderLanes); + break a; + case 14: + workInProgress = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, current), renderLanes); + break a; + } + throw Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function."); + } + return workInProgress; + case 0: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateFunctionComponent(current, workInProgress, Component, context, renderLanes); + case 1: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateClassComponent(current, workInProgress, Component, context, renderLanes); + case 3: + pushHostRootContext(workInProgress); + if (null === current) throw Error("Should have a current fiber. This is a bug in React."); + context = workInProgress.pendingProps; + Component = workInProgress.memoizedState.element; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, context, null, renderLanes); + context = workInProgress.memoizedState.element; + context === Component ? workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) : (reconcileChildren(current, workInProgress, context, renderLanes), workInProgress = workInProgress.child); + return workInProgress; + case 5: + return pushHostContext(workInProgress), Component = workInProgress.pendingProps.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 6: + return null; + case 13: + return updateSuspenseComponent(current, workInProgress, renderLanes); + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), Component = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 11: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), updateForwardRef(current, workInProgress, Component, context, renderLanes); + case 7: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; + case 8: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 12: + return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; + case 10: + a: { + Component = workInProgress.type._context; + context = workInProgress.pendingProps; + hasContext = workInProgress.memoizedProps; + var newValue = context.value; + push(valueCursor, Component._currentValue2); + Component._currentValue2 = newValue; + if (null !== hasContext) if (objectIs(hasContext.value, newValue)) { + if (hasContext.children === context.children && !didPerformWorkStackCursor.current) { + workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); + break a; + } + } else for (hasContext = workInProgress.child, null !== hasContext && (hasContext.return = workInProgress); null !== hasContext;) { + var list = hasContext.dependencies; + if (null !== list) { + newValue = hasContext.child; + for (var dependency = list.firstContext; null !== dependency;) { + if (dependency.context === Component) { + if (1 === hasContext.tag) { + dependency = createUpdate(-1, renderLanes & -renderLanes); + dependency.tag = 2; + var updateQueue = hasContext.updateQueue; + if (null !== updateQueue) { + updateQueue = updateQueue.shared; + var pending = updateQueue.pending; + null === pending ? dependency.next = dependency : (dependency.next = pending.next, pending.next = dependency); + updateQueue.pending = dependency; + } + } + hasContext.lanes |= renderLanes; + dependency = hasContext.alternate; + null !== dependency && (dependency.lanes |= renderLanes); + scheduleContextWorkOnParentPath(hasContext.return, renderLanes, workInProgress); + list.lanes |= renderLanes; + break; + } + dependency = dependency.next; + } + } else if (10 === hasContext.tag) newValue = hasContext.type === workInProgress.type ? null : hasContext.child;else if (18 === hasContext.tag) { + newValue = hasContext.return; + if (null === newValue) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); + newValue.lanes |= renderLanes; + list = newValue.alternate; + null !== list && (list.lanes |= renderLanes); + scheduleContextWorkOnParentPath(newValue, renderLanes, workInProgress); + newValue = hasContext.sibling; + } else newValue = hasContext.child; + if (null !== newValue) newValue.return = hasContext;else for (newValue = hasContext; null !== newValue;) { + if (newValue === workInProgress) { + newValue = null; + break; + } + hasContext = newValue.sibling; + if (null !== hasContext) { + hasContext.return = newValue.return; + newValue = hasContext; + break; + } + newValue = newValue.return; + } + hasContext = newValue; + } + reconcileChildren(current, workInProgress, context.children, renderLanes); + workInProgress = workInProgress.child; + } + return workInProgress; + case 9: + return context = workInProgress.type, Component = workInProgress.pendingProps.children, prepareToReadContext(workInProgress, renderLanes), context = readContext(context), Component = Component(context), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child; + case 14: + return Component = workInProgress.type, context = resolveDefaultProps(Component, workInProgress.pendingProps), context = resolveDefaultProps(Component.type, context), updateMemoComponent(current, workInProgress, Component, context, renderLanes); + case 15: + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); + case 17: + return Component = workInProgress.type, context = workInProgress.pendingProps, context = workInProgress.elementType === Component ? context : resolveDefaultProps(Component, context), resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), workInProgress.tag = 1, isContextProvider(Component) ? (current = !0, pushContextProvider(workInProgress)) : current = !1, prepareToReadContext(workInProgress, renderLanes), constructClassInstance(workInProgress, Component, context), mountClassInstance(workInProgress, Component, context, renderLanes), finishClassComponent(null, workInProgress, Component, !0, current, renderLanes); + case 19: + return updateSuspenseListComponent(current, workInProgress, renderLanes); + case 22: + return updateOffscreenComponent(current, workInProgress, renderLanes); + } + throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); + }; + function scheduleCallback$1(priorityLevel, callback) { + return _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_scheduleCallback(priorityLevel, callback); + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + } + function shouldConstruct(Component) { + Component = Component.prototype; + return !(!Component || !Component.isReactComponent); + } + function resolveLazyComponentTag(Component) { + if ("function" === typeof Component) return shouldConstruct(Component) ? 1 : 0; + if (void 0 !== Component && null !== Component) { + Component = Component.$$typeof; + if (Component === REACT_FORWARD_REF_TYPE) return 11; + if (Component === REACT_MEMO_TYPE) return 14; + } + return 2; + } + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); + workInProgress.flags = current.flags & 14680064; + workInProgress.childLanes = current.childLanes; + workInProgress.lanes = current.lanes; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + pendingProps = current.dependencies; + workInProgress.dependencies = null === pendingProps ? null : { + lanes: pendingProps.lanes, + firstContext: pendingProps.firstContext + }; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { + var fiberTag = 2; + owner = type; + if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);else if ("string" === typeof type) fiberTag = 5;else a: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = 8; + mode |= 8; + break; + case REACT_PROFILER_TYPE: + return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_TYPE: + return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; + case REACT_SUSPENSE_LIST_TYPE: + return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + default: + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = 10; + break a; + case REACT_CONTEXT_TYPE: + fiberTag = 9; + break a; + case REACT_FORWARD_REF_TYPE: + fiberTag = 11; + break a; + case REACT_MEMO_TYPE: + fiberTag = 14; + break a; + case REACT_LAZY_TYPE: + fiberTag = 16; + owner = null; + break a; + } + throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == type ? type : typeof type) + ".")); + } + key = createFiber(fiberTag, pendingProps, key, mode); + key.elementType = type; + key.type = owner; + key.lanes = lanes; + return key; + } + function createFiberFromFragment(elements, mode, lanes, key) { + elements = createFiber(7, elements, key, mode); + elements.lanes = lanes; + return elements; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + pendingProps = createFiber(22, pendingProps, key, mode); + pendingProps.elementType = REACT_OFFSCREEN_TYPE; + pendingProps.lanes = lanes; + pendingProps.stateNode = { + isHidden: !1 + }; + return pendingProps; + } + function createFiberFromText(content, mode, lanes) { + content = createFiber(6, content, null, mode); + content.lanes = lanes; + return content; + } + function createFiberFromPortal(portal, mode, lanes) { + mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.lanes = lanes; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) { + this.tag = tag; + this.containerInfo = containerInfo; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = createLaneMap(0); + this.expirationTimes = createLaneMap(-1); + this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; + this.entanglements = createLaneMap(0); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError; + } + function createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + function findHostInstance(component) { + var fiber = component._reactInternals; + if (void 0 === fiber) { + if ("function" === typeof component.render) throw Error("Unable to find node on an unmounted component."); + component = Object.keys(component).join(","); + throw Error("Argument appears to not be a ReactComponent. Keys: " + component); + } + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + eventTime = requestEventTime(), + lane = requestUpdateLane(current); + a: if (parentComponent) { + parentComponent = parentComponent._reactInternals; + b: { + if (getNearestMountedFiber(parentComponent) !== parentComponent || 1 !== parentComponent.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + var JSCompiler_inline_result = parentComponent; + do { + switch (JSCompiler_inline_result.tag) { + case 3: + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.context; + break b; + case 1: + if (isContextProvider(JSCompiler_inline_result.type)) { + JSCompiler_inline_result = JSCompiler_inline_result.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + } + JSCompiler_inline_result = JSCompiler_inline_result.return; + } while (null !== JSCompiler_inline_result); + throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + if (1 === parentComponent.tag) { + var Component = parentComponent.type; + if (isContextProvider(Component)) { + parentComponent = processChildContext(parentComponent, Component, JSCompiler_inline_result); + break a; + } + } + parentComponent = JSCompiler_inline_result; + } else parentComponent = emptyContextObject; + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = createUpdate(eventTime, lane); + container.payload = { + element: element + }; + callback = void 0 === callback ? null : callback; + null !== callback && (container.callback = callback); + element = enqueueUpdate(current, container, lane); + null !== element && (scheduleUpdateOnFiber(element, current, lane, eventTime), entangleTransitions(element, current, lane)); + return lane; + } + function emptyFindFiberByHostInstance() { + return null; + } + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + function onRecoverableError(error) { + console.error(error); + } + batchedUpdatesImpl = function batchedUpdatesImpl(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= 1; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext, 0 === executionContext && (workInProgressRootRenderTargetTime = _$$_REQUIRE(_dependencyMap[3], "scheduler").unstable_now() + 500, includesLegacySyncCallbacks && flushSyncCallbacks()); + } + }; + var roots = new Map(), + devToolsConfig$jscomp$inline_938 = { + findFiberByHostInstance: getInstanceFromInstance, + bundleType: 0, + version: "18.2.0-next-9e3b772b8-20220608", + rendererPackageName: "react-native-renderer", + rendererConfig: { + getInspectorDataForViewTag: function getInspectorDataForViewTag() { + throw Error("getInspectorDataForViewTag() is not available in production"); + }, + getInspectorDataForViewAtPoint: function () { + throw Error("getInspectorDataForViewAtPoint() is not available in production."); + }.bind(null, findNodeHandle) + } + }; + var internals$jscomp$inline_1180 = { + bundleType: devToolsConfig$jscomp$inline_938.bundleType, + version: devToolsConfig$jscomp$inline_938.version, + rendererPackageName: devToolsConfig$jscomp$inline_938.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_938.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: devToolsConfig$jscomp$inline_938.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "18.2.0-next-9e3b772b8-20220608" + }; + if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + var hook$jscomp$inline_1181 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!hook$jscomp$inline_1181.isDisabled && hook$jscomp$inline_1181.supportsFiber) try { + rendererID = hook$jscomp$inline_1181.inject(internals$jscomp$inline_1180), injectedHook = hook$jscomp$inline_1181; + } catch (err) {} + } + exports.createPortal = function (children, containerTag) { + return createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }; + exports.dispatchCommand = function (handle, command, args) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); + }; + exports.findHostInstance_DEPRECATED = function (componentOrHandle) { + if (null == componentOrHandle) return null; + if (componentOrHandle._nativeTag) return componentOrHandle; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical; + componentOrHandle = findHostInstance(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical : componentOrHandle; + }; + exports.findNodeHandle = findNodeHandle; + exports.getInspectorDataForInstance = void 0; + exports.render = function (element, containerTag, callback, concurrentRoot) { + var root = roots.get(containerTag); + root || (root = concurrentRoot ? 1 : 0, concurrentRoot = new FiberRootNode(containerTag, root, !1, "", onRecoverableError), root = createFiber(3, null, null, 1 === root ? 1 : 0), concurrentRoot.current = root, root.stateNode = concurrentRoot, root.memoizedState = { + element: null, + isDehydrated: !1, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null + }, initializeUpdateQueue(root), root = concurrentRoot, roots.set(containerTag, root)); + updateContainer(element, root, null, callback); + a: if (element = root.current, element.child) switch (element.child.tag) { + case 5: + element = element.child.stateNode.canonical; + break a; + default: + element = element.child.stateNode; + } else element = null; + return element; + }; + exports.sendAccessibilityEvent = function (handle, eventType) { + null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType)) : _$$_REQUIRE(_dependencyMap[2], "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface").legacySendAccessibilityEvent(handle._nativeTag, eventType)); + }; + exports.stopSurface = function (containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + }; + exports.unmountComponentAtNode = function (containerTag) { + this.stopSurface(containerTag); + }; +},467,[44,41,276,413],"node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + * @generate-docs + */ + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "../../StyleSheet/StyleSheet")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "../../Utilities/Platform")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "../View/View")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "react")); + var _excluded = ["animating", "color", "hidesWhenStopped", "onLayout", "size", "style"]; + var _this = this, + _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var PlatformActivityIndicator = _Platform.default.OS === 'android' ? _$$_REQUIRE(_dependencyMap[6], "../ProgressBarAndroid/ProgressBarAndroid") : _$$_REQUIRE(_dependencyMap[7], "./ActivityIndicatorViewNativeComponent").default; + var GRAY = '#999999'; + var ActivityIndicator = function ActivityIndicator(_ref, forwardedRef) { + var _ref$animating = _ref.animating, + animating = _ref$animating === void 0 ? true : _ref$animating, + _ref$color = _ref.color, + color = _ref$color === void 0 ? _Platform.default.OS === 'ios' ? GRAY : null : _ref$color, + _ref$hidesWhenStopped = _ref.hidesWhenStopped, + hidesWhenStopped = _ref$hidesWhenStopped === void 0 ? true : _ref$hidesWhenStopped, + onLayout = _ref.onLayout, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'small' : _ref$size, + style = _ref.style, + restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var sizeStyle; + var sizeProp; + switch (size) { + case 'small': + sizeStyle = styles.sizeSmall; + sizeProp = 'small'; + break; + case 'large': + sizeStyle = styles.sizeLarge; + sizeProp = 'large'; + break; + default: + sizeStyle = { + height: size, + width: size + }; + break; + } + var nativeProps = Object.assign({ + animating: animating, + color: color, + hidesWhenStopped: hidesWhenStopped + }, restProps, { + ref: forwardedRef, + style: sizeStyle, + size: sizeProp + }); + var androidProps = { + styleAttr: 'Normal', + indeterminate: true + }; + return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(_View.default, { + onLayout: onLayout, + style: _StyleSheet.default.compose(styles.container, style), + children: _Platform.default.OS === 'android' ? + /*#__PURE__*/ + // $FlowFixMe[prop-missing] Flow doesn't know when this is the android component + (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps, androidProps)) : + /*#__PURE__*/ + /* $FlowFixMe[prop-missing] (>=0.106.0 site=react_native_android_fb) This comment + * suppresses an error found when Flow v0.106 was deployed. To see the + * error, delete this comment and run Flow. */ + (0, _$$_REQUIRE(_dependencyMap[8], "react/jsx-runtime").jsx)(PlatformActivityIndicator, Object.assign({}, nativeProps)) + }); + }; + + /** + Displays a circular loading indicator. + + ```SnackPlayer name=ActivityIndicator%20Function%20Component%20Example + import React from "react"; + import { ActivityIndicator, StyleSheet, Text, View } from "react-native"; + + const App = () => ( + + + + + + + ); + + const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: "center" + }, + horizontal: { + flexDirection: "row", + justifyContent: "space-around", + padding: 10 + } + }); + export default App; + ``` + + ```SnackPlayer name=ActivityIndicator%20Class%20Component%20Example + import React, { Component } from "react"; + import { ActivityIndicator, StyleSheet, Text, View } from "react-native"; + + class App extends Component { + render() { + return ( + + + + + + + ); + } + } + + const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: "center" + }, + horizontal: { + flexDirection: "row", + justifyContent: "space-around", + padding: 10 + } + }); + export default App; + ``` + */ + + var ActivityIndicatorWithRef = React.forwardRef(ActivityIndicator); + ActivityIndicatorWithRef.displayName = 'ActivityIndicator'; + var styles = _StyleSheet.default.create({ + container: { + alignItems: 'center', + justifyContent: 'center' + }, + sizeSmall: { + width: 20, + height: 20 + }, + sizeLarge: { + width: 36, + height: 36 + } + }); + var _default = ActivityIndicatorWithRef; + exports.default = _default; +},468,[3,149,259,17,225,41,469,470,89],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], "../UnimplementedViews/UnimplementedView"); +},469,[445],"node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "../../Utilities/codegenNativeComponent")); + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + */ + var _default = (0, _codegenNativeComponent.default)('ActivityIndicatorView', { + paperComponentName: 'RCTActivityIndicatorView' + }); + exports.default = _default; +},470,[3,273],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js"); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + /** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * + * @generate-docs + */ + + 'use strict'; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck")); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass")); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/inherits")); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn")); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf")); + var _StyleSheet = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[6], "../StyleSheet/StyleSheet")); + var _Text = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[7], "../Text/Text")); + var _Platform = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[8], "../Utilities/Platform")); + var _TouchableNativeFeedback = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[9], "./Touchable/TouchableNativeFeedback")); + var _TouchableOpacity = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[10], "./Touchable/TouchableOpacity")); + var _View = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[11], "./View/View")); + var _invariant = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault")(_$$_REQUIRE(_dependencyMap[12], "invariant")); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13], "react")); + var _jsxFileName = "/Users/jack/dev/primer-sdk-react-native/example/node_modules/react-native/Libraries/Components/Button.js"; + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /** + A basic button component that should render nicely on any platform. Supports a + minimal level of customization. + + If this button doesn't look right for your app, you can build your own button + using [TouchableOpacity](touchableopacity) or + [TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at + the [source code for this button component][button:source]. Or, take a look at + the [wide variety of button components built by the community] + [button:examples]. + + [button:source]: + https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js + + [button:examples]: + https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button + + ```jsx +